diff --git a/gen-proto-ibc-go.sh b/gen-proto-ibc-go.sh index b884062d..506cbe1d 100755 --- a/gen-proto-ibc-go.sh +++ b/gen-proto-ibc-go.sh @@ -5,14 +5,14 @@ rm -r ./proto-thirdparty-tmp rm -rf ./ibc-go git clone git@github.com:cosmos/ibc-go.git -cd ibc-go && git checkout v4.3.0 && cd ../ +cd ibc-go && git checkout v7.2.0 && cd proto && buf export . --output=../../proto-thirdparty-tmp && cd ../.. -git clone git@github.com:Ethernal-Tech/admin-module.git + git clone git@github.com:neutron-org/admin-module.git + cd admin-module && git checkout feat/admin-module-sdk47 && cd proto && buf export . --output=../../proto-thirdparty-tmp && cd ../.. cp -r ibc-go/proto ./proto -cp -r ibc-go/third_party/proto ./proto-thirdparty-tmp mv ./proto-thirdparty-tmp/tendermint ./proto/ -cp -r ./admin-module/proto/adminmodule ./proto/ +cp -r ./admin-module/proto/cosmos ./proto/ proto_dirs=$(find ./proto -path -prune -o -name '*.proto' -print0 | xargs -0 -n1 dirname | sort | uniq) proto_files=() diff --git a/src/generated/ibc/proto.cjs b/src/generated/ibc/proto.cjs index 623b6379..586804bd 100644 --- a/src/generated/ibc/proto.cjs +++ b/src/generated/ibc/proto.cjs @@ -160,6 +160,39 @@ * @variation 2 */ + /** + * Callback as used by {@link cosmos.adminmodule.adminmodule.Msg#submitProposalLegacy}. + * @memberof cosmos.adminmodule.adminmodule.Msg + * @typedef SubmitProposalLegacyCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {cosmos.adminmodule.adminmodule.MsgSubmitProposalLegacyResponse} [response] MsgSubmitProposalLegacyResponse + */ + + /** + * Calls SubmitProposalLegacy. + * @function submitProposalLegacy + * @memberof cosmos.adminmodule.adminmodule.Msg + * @instance + * @param {cosmos.adminmodule.adminmodule.IMsgSubmitProposalLegacy} request MsgSubmitProposalLegacy message or plain object + * @param {cosmos.adminmodule.adminmodule.Msg.SubmitProposalLegacyCallback} callback Node-style callback called with the error, if any, and MsgSubmitProposalLegacyResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Msg.prototype.submitProposalLegacy = function submitProposalLegacy(request, callback) { + return this.rpcCall(submitProposalLegacy, $root.cosmos.adminmodule.adminmodule.MsgSubmitProposalLegacy, $root.cosmos.adminmodule.adminmodule.MsgSubmitProposalLegacyResponse, request, callback); + }, "name", { value: "SubmitProposalLegacy" }); + + /** + * Calls SubmitProposalLegacy. + * @function submitProposalLegacy + * @memberof cosmos.adminmodule.adminmodule.Msg + * @instance + * @param {cosmos.adminmodule.adminmodule.IMsgSubmitProposalLegacy} request MsgSubmitProposalLegacy message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + return Msg; })(); @@ -855,13 +888,405 @@ return MsgAddAdminResponse; })(); + adminmodule.MsgSubmitProposalLegacy = (function() { + + /** + * Properties of a MsgSubmitProposalLegacy. + * @memberof cosmos.adminmodule.adminmodule + * @interface IMsgSubmitProposalLegacy + * @property {google.protobuf.IAny|null} [content] MsgSubmitProposalLegacy content + * @property {string|null} [proposer] MsgSubmitProposalLegacy proposer + */ + + /** + * Constructs a new MsgSubmitProposalLegacy. + * @memberof cosmos.adminmodule.adminmodule + * @classdesc Represents a MsgSubmitProposalLegacy. + * @implements IMsgSubmitProposalLegacy + * @constructor + * @param {cosmos.adminmodule.adminmodule.IMsgSubmitProposalLegacy=} [properties] Properties to set + */ + function MsgSubmitProposalLegacy(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * MsgSubmitProposalLegacy content. + * @member {google.protobuf.IAny|null|undefined} content + * @memberof cosmos.adminmodule.adminmodule.MsgSubmitProposalLegacy + * @instance + */ + MsgSubmitProposalLegacy.prototype.content = null; + + /** + * MsgSubmitProposalLegacy proposer. + * @member {string} proposer + * @memberof cosmos.adminmodule.adminmodule.MsgSubmitProposalLegacy + * @instance + */ + MsgSubmitProposalLegacy.prototype.proposer = ""; + + /** + * Encodes the specified MsgSubmitProposalLegacy message. Does not implicitly {@link cosmos.adminmodule.adminmodule.MsgSubmitProposalLegacy.verify|verify} messages. + * @function encode + * @memberof cosmos.adminmodule.adminmodule.MsgSubmitProposalLegacy + * @static + * @param {cosmos.adminmodule.adminmodule.IMsgSubmitProposalLegacy} message MsgSubmitProposalLegacy message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MsgSubmitProposalLegacy.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.content != null && Object.hasOwnProperty.call(message, "content")) + $root.google.protobuf.Any.encode(message.content, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.proposer != null && Object.hasOwnProperty.call(message, "proposer")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.proposer); + return writer; + }; + + /** + * Encodes the specified MsgSubmitProposalLegacy message, length delimited. Does not implicitly {@link cosmos.adminmodule.adminmodule.MsgSubmitProposalLegacy.verify|verify} messages. + * @function encodeDelimited + * @memberof cosmos.adminmodule.adminmodule.MsgSubmitProposalLegacy + * @static + * @param {cosmos.adminmodule.adminmodule.IMsgSubmitProposalLegacy} message MsgSubmitProposalLegacy message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MsgSubmitProposalLegacy.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a MsgSubmitProposalLegacy message from the specified reader or buffer. + * @function decode + * @memberof cosmos.adminmodule.adminmodule.MsgSubmitProposalLegacy + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {cosmos.adminmodule.adminmodule.MsgSubmitProposalLegacy} MsgSubmitProposalLegacy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MsgSubmitProposalLegacy.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.cosmos.adminmodule.adminmodule.MsgSubmitProposalLegacy(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.content = $root.google.protobuf.Any.decode(reader, reader.uint32()); + break; + case 2: + message.proposer = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a MsgSubmitProposalLegacy message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof cosmos.adminmodule.adminmodule.MsgSubmitProposalLegacy + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {cosmos.adminmodule.adminmodule.MsgSubmitProposalLegacy} MsgSubmitProposalLegacy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MsgSubmitProposalLegacy.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a MsgSubmitProposalLegacy message. + * @function verify + * @memberof cosmos.adminmodule.adminmodule.MsgSubmitProposalLegacy + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MsgSubmitProposalLegacy.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.content != null && message.hasOwnProperty("content")) { + var error = $root.google.protobuf.Any.verify(message.content); + if (error) + return "content." + error; + } + if (message.proposer != null && message.hasOwnProperty("proposer")) + if (!$util.isString(message.proposer)) + return "proposer: string expected"; + return null; + }; + + /** + * Creates a MsgSubmitProposalLegacy message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof cosmos.adminmodule.adminmodule.MsgSubmitProposalLegacy + * @static + * @param {Object.} object Plain object + * @returns {cosmos.adminmodule.adminmodule.MsgSubmitProposalLegacy} MsgSubmitProposalLegacy + */ + MsgSubmitProposalLegacy.fromObject = function fromObject(object) { + if (object instanceof $root.cosmos.adminmodule.adminmodule.MsgSubmitProposalLegacy) + return object; + var message = new $root.cosmos.adminmodule.adminmodule.MsgSubmitProposalLegacy(); + if (object.content != null) { + if (typeof object.content !== "object") + throw TypeError(".cosmos.adminmodule.adminmodule.MsgSubmitProposalLegacy.content: object expected"); + message.content = $root.google.protobuf.Any.fromObject(object.content); + } + if (object.proposer != null) + message.proposer = String(object.proposer); + return message; + }; + + /** + * Creates a plain object from a MsgSubmitProposalLegacy message. Also converts values to other types if specified. + * @function toObject + * @memberof cosmos.adminmodule.adminmodule.MsgSubmitProposalLegacy + * @static + * @param {cosmos.adminmodule.adminmodule.MsgSubmitProposalLegacy} message MsgSubmitProposalLegacy + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MsgSubmitProposalLegacy.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.content = null; + object.proposer = ""; + } + if (message.content != null && message.hasOwnProperty("content")) + object.content = $root.google.protobuf.Any.toObject(message.content, options); + if (message.proposer != null && message.hasOwnProperty("proposer")) + object.proposer = message.proposer; + return object; + }; + + /** + * Converts this MsgSubmitProposalLegacy to JSON. + * @function toJSON + * @memberof cosmos.adminmodule.adminmodule.MsgSubmitProposalLegacy + * @instance + * @returns {Object.} JSON object + */ + MsgSubmitProposalLegacy.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return MsgSubmitProposalLegacy; + })(); + + adminmodule.MsgSubmitProposalLegacyResponse = (function() { + + /** + * Properties of a MsgSubmitProposalLegacyResponse. + * @memberof cosmos.adminmodule.adminmodule + * @interface IMsgSubmitProposalLegacyResponse + * @property {Long|null} [proposal_id] MsgSubmitProposalLegacyResponse proposal_id + */ + + /** + * Constructs a new MsgSubmitProposalLegacyResponse. + * @memberof cosmos.adminmodule.adminmodule + * @classdesc Represents a MsgSubmitProposalLegacyResponse. + * @implements IMsgSubmitProposalLegacyResponse + * @constructor + * @param {cosmos.adminmodule.adminmodule.IMsgSubmitProposalLegacyResponse=} [properties] Properties to set + */ + function MsgSubmitProposalLegacyResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * MsgSubmitProposalLegacyResponse proposal_id. + * @member {Long} proposal_id + * @memberof cosmos.adminmodule.adminmodule.MsgSubmitProposalLegacyResponse + * @instance + */ + MsgSubmitProposalLegacyResponse.prototype.proposal_id = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + + /** + * Encodes the specified MsgSubmitProposalLegacyResponse message. Does not implicitly {@link cosmos.adminmodule.adminmodule.MsgSubmitProposalLegacyResponse.verify|verify} messages. + * @function encode + * @memberof cosmos.adminmodule.adminmodule.MsgSubmitProposalLegacyResponse + * @static + * @param {cosmos.adminmodule.adminmodule.IMsgSubmitProposalLegacyResponse} message MsgSubmitProposalLegacyResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MsgSubmitProposalLegacyResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.proposal_id != null && Object.hasOwnProperty.call(message, "proposal_id")) + writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.proposal_id); + return writer; + }; + + /** + * Encodes the specified MsgSubmitProposalLegacyResponse message, length delimited. Does not implicitly {@link cosmos.adminmodule.adminmodule.MsgSubmitProposalLegacyResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof cosmos.adminmodule.adminmodule.MsgSubmitProposalLegacyResponse + * @static + * @param {cosmos.adminmodule.adminmodule.IMsgSubmitProposalLegacyResponse} message MsgSubmitProposalLegacyResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MsgSubmitProposalLegacyResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a MsgSubmitProposalLegacyResponse message from the specified reader or buffer. + * @function decode + * @memberof cosmos.adminmodule.adminmodule.MsgSubmitProposalLegacyResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {cosmos.adminmodule.adminmodule.MsgSubmitProposalLegacyResponse} MsgSubmitProposalLegacyResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MsgSubmitProposalLegacyResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.cosmos.adminmodule.adminmodule.MsgSubmitProposalLegacyResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposal_id = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a MsgSubmitProposalLegacyResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof cosmos.adminmodule.adminmodule.MsgSubmitProposalLegacyResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {cosmos.adminmodule.adminmodule.MsgSubmitProposalLegacyResponse} MsgSubmitProposalLegacyResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MsgSubmitProposalLegacyResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a MsgSubmitProposalLegacyResponse message. + * @function verify + * @memberof cosmos.adminmodule.adminmodule.MsgSubmitProposalLegacyResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MsgSubmitProposalLegacyResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.proposal_id != null && message.hasOwnProperty("proposal_id")) + if (!$util.isInteger(message.proposal_id) && !(message.proposal_id && $util.isInteger(message.proposal_id.low) && $util.isInteger(message.proposal_id.high))) + return "proposal_id: integer|Long expected"; + return null; + }; + + /** + * Creates a MsgSubmitProposalLegacyResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof cosmos.adminmodule.adminmodule.MsgSubmitProposalLegacyResponse + * @static + * @param {Object.} object Plain object + * @returns {cosmos.adminmodule.adminmodule.MsgSubmitProposalLegacyResponse} MsgSubmitProposalLegacyResponse + */ + MsgSubmitProposalLegacyResponse.fromObject = function fromObject(object) { + if (object instanceof $root.cosmos.adminmodule.adminmodule.MsgSubmitProposalLegacyResponse) + return object; + var message = new $root.cosmos.adminmodule.adminmodule.MsgSubmitProposalLegacyResponse(); + if (object.proposal_id != null) + if ($util.Long) + (message.proposal_id = $util.Long.fromValue(object.proposal_id)).unsigned = true; + else if (typeof object.proposal_id === "string") + message.proposal_id = parseInt(object.proposal_id, 10); + else if (typeof object.proposal_id === "number") + message.proposal_id = object.proposal_id; + else if (typeof object.proposal_id === "object") + message.proposal_id = new $util.LongBits(object.proposal_id.low >>> 0, object.proposal_id.high >>> 0).toNumber(true); + return message; + }; + + /** + * Creates a plain object from a MsgSubmitProposalLegacyResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof cosmos.adminmodule.adminmodule.MsgSubmitProposalLegacyResponse + * @static + * @param {cosmos.adminmodule.adminmodule.MsgSubmitProposalLegacyResponse} message MsgSubmitProposalLegacyResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MsgSubmitProposalLegacyResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + if ($util.Long) { + var long = new $util.Long(0, 0, true); + object.proposal_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.proposal_id = options.longs === String ? "0" : 0; + if (message.proposal_id != null && message.hasOwnProperty("proposal_id")) + if (typeof message.proposal_id === "number") + object.proposal_id = options.longs === String ? String(message.proposal_id) : message.proposal_id; + else + object.proposal_id = options.longs === String ? $util.Long.prototype.toString.call(message.proposal_id) : options.longs === Number ? new $util.LongBits(message.proposal_id.low >>> 0, message.proposal_id.high >>> 0).toNumber(true) : message.proposal_id; + return object; + }; + + /** + * Converts this MsgSubmitProposalLegacyResponse to JSON. + * @function toJSON + * @memberof cosmos.adminmodule.adminmodule.MsgSubmitProposalLegacyResponse + * @instance + * @returns {Object.} JSON object + */ + MsgSubmitProposalLegacyResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return MsgSubmitProposalLegacyResponse; + })(); + adminmodule.MsgSubmitProposal = (function() { /** * Properties of a MsgSubmitProposal. * @memberof cosmos.adminmodule.adminmodule * @interface IMsgSubmitProposal - * @property {google.protobuf.IAny|null} [content] MsgSubmitProposal content + * @property {Array.|null} [messages] MsgSubmitProposal messages * @property {string|null} [proposer] MsgSubmitProposal proposer */ @@ -874,6 +1299,7 @@ * @param {cosmos.adminmodule.adminmodule.IMsgSubmitProposal=} [properties] Properties to set */ function MsgSubmitProposal(properties) { + this.messages = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -881,12 +1307,12 @@ } /** - * MsgSubmitProposal content. - * @member {google.protobuf.IAny|null|undefined} content + * MsgSubmitProposal messages. + * @member {Array.} messages * @memberof cosmos.adminmodule.adminmodule.MsgSubmitProposal * @instance */ - MsgSubmitProposal.prototype.content = null; + MsgSubmitProposal.prototype.messages = $util.emptyArray; /** * MsgSubmitProposal proposer. @@ -908,8 +1334,9 @@ MsgSubmitProposal.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.content != null && Object.hasOwnProperty.call(message, "content")) - $root.google.protobuf.Any.encode(message.content, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.messages != null && message.messages.length) + for (var i = 0; i < message.messages.length; ++i) + $root.google.protobuf.Any.encode(message.messages[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.proposer != null && Object.hasOwnProperty.call(message, "proposer")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.proposer); return writer; @@ -947,7 +1374,9 @@ var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.content = $root.google.protobuf.Any.decode(reader, reader.uint32()); + if (!(message.messages && message.messages.length)) + message.messages = []; + message.messages.push($root.google.protobuf.Any.decode(reader, reader.uint32())); break; case 2: message.proposer = reader.string(); @@ -987,10 +1416,14 @@ MsgSubmitProposal.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.content != null && message.hasOwnProperty("content")) { - var error = $root.google.protobuf.Any.verify(message.content); - if (error) - return "content." + error; + if (message.messages != null && message.hasOwnProperty("messages")) { + if (!Array.isArray(message.messages)) + return "messages: array expected"; + for (var i = 0; i < message.messages.length; ++i) { + var error = $root.google.protobuf.Any.verify(message.messages[i]); + if (error) + return "messages." + error; + } } if (message.proposer != null && message.hasOwnProperty("proposer")) if (!$util.isString(message.proposer)) @@ -1010,10 +1443,15 @@ if (object instanceof $root.cosmos.adminmodule.adminmodule.MsgSubmitProposal) return object; var message = new $root.cosmos.adminmodule.adminmodule.MsgSubmitProposal(); - if (object.content != null) { - if (typeof object.content !== "object") - throw TypeError(".cosmos.adminmodule.adminmodule.MsgSubmitProposal.content: object expected"); - message.content = $root.google.protobuf.Any.fromObject(object.content); + if (object.messages) { + if (!Array.isArray(object.messages)) + throw TypeError(".cosmos.adminmodule.adminmodule.MsgSubmitProposal.messages: array expected"); + message.messages = []; + for (var i = 0; i < object.messages.length; ++i) { + if (typeof object.messages[i] !== "object") + throw TypeError(".cosmos.adminmodule.adminmodule.MsgSubmitProposal.messages: object expected"); + message.messages[i] = $root.google.protobuf.Any.fromObject(object.messages[i]); + } } if (object.proposer != null) message.proposer = String(object.proposer); @@ -1033,12 +1471,15 @@ if (!options) options = {}; var object = {}; - if (options.defaults) { - object.content = null; + if (options.arrays || options.defaults) + object.messages = []; + if (options.defaults) object.proposer = ""; + if (message.messages && message.messages.length) { + object.messages = []; + for (var j = 0; j < message.messages.length; ++j) + object.messages[j] = $root.google.protobuf.Any.toObject(message.messages[j], options); } - if (message.content != null && message.hasOwnProperty("content")) - object.content = $root.google.protobuf.Any.toObject(message.content, options); if (message.proposer != null && message.hasOwnProperty("proposer")) object.proposer = message.proposer; return object; @@ -1331,6 +1772,39 @@ * @variation 2 */ + /** + * Callback as used by {@link cosmos.adminmodule.adminmodule.Query#archivedProposalsLegacy}. + * @memberof cosmos.adminmodule.adminmodule.Query + * @typedef ArchivedProposalsLegacyCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {cosmos.adminmodule.adminmodule.QueryArchivedProposalsLegacyResponse} [response] QueryArchivedProposalsLegacyResponse + */ + + /** + * Calls ArchivedProposalsLegacy. + * @function archivedProposalsLegacy + * @memberof cosmos.adminmodule.adminmodule.Query + * @instance + * @param {cosmos.adminmodule.adminmodule.IQueryArchivedProposalsLegacyRequest} request QueryArchivedProposalsLegacyRequest message or plain object + * @param {cosmos.adminmodule.adminmodule.Query.ArchivedProposalsLegacyCallback} callback Node-style callback called with the error, if any, and QueryArchivedProposalsLegacyResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Query.prototype.archivedProposalsLegacy = function archivedProposalsLegacy(request, callback) { + return this.rpcCall(archivedProposalsLegacy, $root.cosmos.adminmodule.adminmodule.QueryArchivedProposalsLegacyRequest, $root.cosmos.adminmodule.adminmodule.QueryArchivedProposalsLegacyResponse, request, callback); + }, "name", { value: "ArchivedProposalsLegacy" }); + + /** + * Calls ArchivedProposalsLegacy. + * @function archivedProposalsLegacy + * @memberof cosmos.adminmodule.adminmodule.Query + * @instance + * @param {cosmos.adminmodule.adminmodule.IQueryArchivedProposalsLegacyRequest} request QueryArchivedProposalsLegacyRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + return Query; })(); @@ -1821,13 +2295,357 @@ return QueryArchivedProposalsRequest; })(); + adminmodule.QueryArchivedProposalsLegacyRequest = (function() { + + /** + * Properties of a QueryArchivedProposalsLegacyRequest. + * @memberof cosmos.adminmodule.adminmodule + * @interface IQueryArchivedProposalsLegacyRequest + */ + + /** + * Constructs a new QueryArchivedProposalsLegacyRequest. + * @memberof cosmos.adminmodule.adminmodule + * @classdesc Represents a QueryArchivedProposalsLegacyRequest. + * @implements IQueryArchivedProposalsLegacyRequest + * @constructor + * @param {cosmos.adminmodule.adminmodule.IQueryArchivedProposalsLegacyRequest=} [properties] Properties to set + */ + function QueryArchivedProposalsLegacyRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Encodes the specified QueryArchivedProposalsLegacyRequest message. Does not implicitly {@link cosmos.adminmodule.adminmodule.QueryArchivedProposalsLegacyRequest.verify|verify} messages. + * @function encode + * @memberof cosmos.adminmodule.adminmodule.QueryArchivedProposalsLegacyRequest + * @static + * @param {cosmos.adminmodule.adminmodule.IQueryArchivedProposalsLegacyRequest} message QueryArchivedProposalsLegacyRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + QueryArchivedProposalsLegacyRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Encodes the specified QueryArchivedProposalsLegacyRequest message, length delimited. Does not implicitly {@link cosmos.adminmodule.adminmodule.QueryArchivedProposalsLegacyRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof cosmos.adminmodule.adminmodule.QueryArchivedProposalsLegacyRequest + * @static + * @param {cosmos.adminmodule.adminmodule.IQueryArchivedProposalsLegacyRequest} message QueryArchivedProposalsLegacyRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + QueryArchivedProposalsLegacyRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a QueryArchivedProposalsLegacyRequest message from the specified reader or buffer. + * @function decode + * @memberof cosmos.adminmodule.adminmodule.QueryArchivedProposalsLegacyRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {cosmos.adminmodule.adminmodule.QueryArchivedProposalsLegacyRequest} QueryArchivedProposalsLegacyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + QueryArchivedProposalsLegacyRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.cosmos.adminmodule.adminmodule.QueryArchivedProposalsLegacyRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a QueryArchivedProposalsLegacyRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof cosmos.adminmodule.adminmodule.QueryArchivedProposalsLegacyRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {cosmos.adminmodule.adminmodule.QueryArchivedProposalsLegacyRequest} QueryArchivedProposalsLegacyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + QueryArchivedProposalsLegacyRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a QueryArchivedProposalsLegacyRequest message. + * @function verify + * @memberof cosmos.adminmodule.adminmodule.QueryArchivedProposalsLegacyRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + QueryArchivedProposalsLegacyRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + /** + * Creates a QueryArchivedProposalsLegacyRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof cosmos.adminmodule.adminmodule.QueryArchivedProposalsLegacyRequest + * @static + * @param {Object.} object Plain object + * @returns {cosmos.adminmodule.adminmodule.QueryArchivedProposalsLegacyRequest} QueryArchivedProposalsLegacyRequest + */ + QueryArchivedProposalsLegacyRequest.fromObject = function fromObject(object) { + if (object instanceof $root.cosmos.adminmodule.adminmodule.QueryArchivedProposalsLegacyRequest) + return object; + return new $root.cosmos.adminmodule.adminmodule.QueryArchivedProposalsLegacyRequest(); + }; + + /** + * Creates a plain object from a QueryArchivedProposalsLegacyRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof cosmos.adminmodule.adminmodule.QueryArchivedProposalsLegacyRequest + * @static + * @param {cosmos.adminmodule.adminmodule.QueryArchivedProposalsLegacyRequest} message QueryArchivedProposalsLegacyRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + QueryArchivedProposalsLegacyRequest.toObject = function toObject() { + return {}; + }; + + /** + * Converts this QueryArchivedProposalsLegacyRequest to JSON. + * @function toJSON + * @memberof cosmos.adminmodule.adminmodule.QueryArchivedProposalsLegacyRequest + * @instance + * @returns {Object.} JSON object + */ + QueryArchivedProposalsLegacyRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return QueryArchivedProposalsLegacyRequest; + })(); + + adminmodule.QueryProposalsResponse = (function() { + + /** + * Properties of a QueryProposalsResponse. + * @memberof cosmos.adminmodule.adminmodule + * @interface IQueryProposalsResponse + * @property {Array.|null} [proposals] QueryProposalsResponse proposals + */ + + /** + * Constructs a new QueryProposalsResponse. + * @memberof cosmos.adminmodule.adminmodule + * @classdesc Represents a QueryProposalsResponse. + * @implements IQueryProposalsResponse + * @constructor + * @param {cosmos.adminmodule.adminmodule.IQueryProposalsResponse=} [properties] Properties to set + */ + function QueryProposalsResponse(properties) { + this.proposals = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * QueryProposalsResponse proposals. + * @member {Array.} proposals + * @memberof cosmos.adminmodule.adminmodule.QueryProposalsResponse + * @instance + */ + QueryProposalsResponse.prototype.proposals = $util.emptyArray; + + /** + * Encodes the specified QueryProposalsResponse message. Does not implicitly {@link cosmos.adminmodule.adminmodule.QueryProposalsResponse.verify|verify} messages. + * @function encode + * @memberof cosmos.adminmodule.adminmodule.QueryProposalsResponse + * @static + * @param {cosmos.adminmodule.adminmodule.IQueryProposalsResponse} message QueryProposalsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + QueryProposalsResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.proposals != null && message.proposals.length) + for (var i = 0; i < message.proposals.length; ++i) + $root.cosmos.gov.v1.Proposal.encode(message.proposals[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified QueryProposalsResponse message, length delimited. Does not implicitly {@link cosmos.adminmodule.adminmodule.QueryProposalsResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof cosmos.adminmodule.adminmodule.QueryProposalsResponse + * @static + * @param {cosmos.adminmodule.adminmodule.IQueryProposalsResponse} message QueryProposalsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + QueryProposalsResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a QueryProposalsResponse message from the specified reader or buffer. + * @function decode + * @memberof cosmos.adminmodule.adminmodule.QueryProposalsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {cosmos.adminmodule.adminmodule.QueryProposalsResponse} QueryProposalsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + QueryProposalsResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.cosmos.adminmodule.adminmodule.QueryProposalsResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.proposals && message.proposals.length)) + message.proposals = []; + message.proposals.push($root.cosmos.gov.v1.Proposal.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a QueryProposalsResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof cosmos.adminmodule.adminmodule.QueryProposalsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {cosmos.adminmodule.adminmodule.QueryProposalsResponse} QueryProposalsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + QueryProposalsResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a QueryProposalsResponse message. + * @function verify + * @memberof cosmos.adminmodule.adminmodule.QueryProposalsResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + QueryProposalsResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.proposals != null && message.hasOwnProperty("proposals")) { + if (!Array.isArray(message.proposals)) + return "proposals: array expected"; + for (var i = 0; i < message.proposals.length; ++i) { + var error = $root.cosmos.gov.v1.Proposal.verify(message.proposals[i]); + if (error) + return "proposals." + error; + } + } + return null; + }; + + /** + * Creates a QueryProposalsResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof cosmos.adminmodule.adminmodule.QueryProposalsResponse + * @static + * @param {Object.} object Plain object + * @returns {cosmos.adminmodule.adminmodule.QueryProposalsResponse} QueryProposalsResponse + */ + QueryProposalsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.cosmos.adminmodule.adminmodule.QueryProposalsResponse) + return object; + var message = new $root.cosmos.adminmodule.adminmodule.QueryProposalsResponse(); + if (object.proposals) { + if (!Array.isArray(object.proposals)) + throw TypeError(".cosmos.adminmodule.adminmodule.QueryProposalsResponse.proposals: array expected"); + message.proposals = []; + for (var i = 0; i < object.proposals.length; ++i) { + if (typeof object.proposals[i] !== "object") + throw TypeError(".cosmos.adminmodule.adminmodule.QueryProposalsResponse.proposals: object expected"); + message.proposals[i] = $root.cosmos.gov.v1.Proposal.fromObject(object.proposals[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a QueryProposalsResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof cosmos.adminmodule.adminmodule.QueryProposalsResponse + * @static + * @param {cosmos.adminmodule.adminmodule.QueryProposalsResponse} message QueryProposalsResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + QueryProposalsResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.proposals = []; + if (message.proposals && message.proposals.length) { + object.proposals = []; + for (var j = 0; j < message.proposals.length; ++j) + object.proposals[j] = $root.cosmos.gov.v1.Proposal.toObject(message.proposals[j], options); + } + return object; + }; + + /** + * Converts this QueryProposalsResponse to JSON. + * @function toJSON + * @memberof cosmos.adminmodule.adminmodule.QueryProposalsResponse + * @instance + * @returns {Object.} JSON object + */ + QueryProposalsResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return QueryProposalsResponse; + })(); + adminmodule.QueryArchivedProposalsResponse = (function() { /** * Properties of a QueryArchivedProposalsResponse. * @memberof cosmos.adminmodule.adminmodule * @interface IQueryArchivedProposalsResponse - * @property {Array.|null} [proposals] QueryArchivedProposalsResponse proposals + * @property {Array.|null} [proposals] QueryArchivedProposalsResponse proposals */ /** @@ -1848,7 +2666,7 @@ /** * QueryArchivedProposalsResponse proposals. - * @member {Array.} proposals + * @member {Array.} proposals * @memberof cosmos.adminmodule.adminmodule.QueryArchivedProposalsResponse * @instance */ @@ -1868,7 +2686,7 @@ writer = $Writer.create(); if (message.proposals != null && message.proposals.length) for (var i = 0; i < message.proposals.length; ++i) - $root.cosmos.gov.v1beta1.Proposal.encode(message.proposals[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.cosmos.gov.v1.Proposal.encode(message.proposals[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; @@ -1906,7 +2724,7 @@ case 1: if (!(message.proposals && message.proposals.length)) message.proposals = []; - message.proposals.push($root.cosmos.gov.v1beta1.Proposal.decode(reader, reader.uint32())); + message.proposals.push($root.cosmos.gov.v1.Proposal.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -1947,7 +2765,7 @@ if (!Array.isArray(message.proposals)) return "proposals: array expected"; for (var i = 0; i < message.proposals.length; ++i) { - var error = $root.cosmos.gov.v1beta1.Proposal.verify(message.proposals[i]); + var error = $root.cosmos.gov.v1.Proposal.verify(message.proposals[i]); if (error) return "proposals." + error; } @@ -1974,7 +2792,7 @@ for (var i = 0; i < object.proposals.length; ++i) { if (typeof object.proposals[i] !== "object") throw TypeError(".cosmos.adminmodule.adminmodule.QueryArchivedProposalsResponse.proposals: object expected"); - message.proposals[i] = $root.cosmos.gov.v1beta1.Proposal.fromObject(object.proposals[i]); + message.proposals[i] = $root.cosmos.gov.v1.Proposal.fromObject(object.proposals[i]); } } return message; @@ -1998,7 +2816,7 @@ if (message.proposals && message.proposals.length) { object.proposals = []; for (var j = 0; j < message.proposals.length; ++j) - object.proposals[j] = $root.cosmos.gov.v1beta1.Proposal.toObject(message.proposals[j], options); + object.proposals[j] = $root.cosmos.gov.v1.Proposal.toObject(message.proposals[j], options); } return object; }; @@ -2017,6 +2835,202 @@ return QueryArchivedProposalsResponse; })(); + adminmodule.QueryArchivedProposalsLegacyResponse = (function() { + + /** + * Properties of a QueryArchivedProposalsLegacyResponse. + * @memberof cosmos.adminmodule.adminmodule + * @interface IQueryArchivedProposalsLegacyResponse + * @property {Array.|null} [proposalsLegacy] QueryArchivedProposalsLegacyResponse proposalsLegacy + */ + + /** + * Constructs a new QueryArchivedProposalsLegacyResponse. + * @memberof cosmos.adminmodule.adminmodule + * @classdesc Represents a QueryArchivedProposalsLegacyResponse. + * @implements IQueryArchivedProposalsLegacyResponse + * @constructor + * @param {cosmos.adminmodule.adminmodule.IQueryArchivedProposalsLegacyResponse=} [properties] Properties to set + */ + function QueryArchivedProposalsLegacyResponse(properties) { + this.proposalsLegacy = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * QueryArchivedProposalsLegacyResponse proposalsLegacy. + * @member {Array.} proposalsLegacy + * @memberof cosmos.adminmodule.adminmodule.QueryArchivedProposalsLegacyResponse + * @instance + */ + QueryArchivedProposalsLegacyResponse.prototype.proposalsLegacy = $util.emptyArray; + + /** + * Encodes the specified QueryArchivedProposalsLegacyResponse message. Does not implicitly {@link cosmos.adminmodule.adminmodule.QueryArchivedProposalsLegacyResponse.verify|verify} messages. + * @function encode + * @memberof cosmos.adminmodule.adminmodule.QueryArchivedProposalsLegacyResponse + * @static + * @param {cosmos.adminmodule.adminmodule.IQueryArchivedProposalsLegacyResponse} message QueryArchivedProposalsLegacyResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + QueryArchivedProposalsLegacyResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.proposalsLegacy != null && message.proposalsLegacy.length) + for (var i = 0; i < message.proposalsLegacy.length; ++i) + $root.cosmos.gov.v1beta1.Proposal.encode(message.proposalsLegacy[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified QueryArchivedProposalsLegacyResponse message, length delimited. Does not implicitly {@link cosmos.adminmodule.adminmodule.QueryArchivedProposalsLegacyResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof cosmos.adminmodule.adminmodule.QueryArchivedProposalsLegacyResponse + * @static + * @param {cosmos.adminmodule.adminmodule.IQueryArchivedProposalsLegacyResponse} message QueryArchivedProposalsLegacyResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + QueryArchivedProposalsLegacyResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a QueryArchivedProposalsLegacyResponse message from the specified reader or buffer. + * @function decode + * @memberof cosmos.adminmodule.adminmodule.QueryArchivedProposalsLegacyResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {cosmos.adminmodule.adminmodule.QueryArchivedProposalsLegacyResponse} QueryArchivedProposalsLegacyResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + QueryArchivedProposalsLegacyResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.cosmos.adminmodule.adminmodule.QueryArchivedProposalsLegacyResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.proposalsLegacy && message.proposalsLegacy.length)) + message.proposalsLegacy = []; + message.proposalsLegacy.push($root.cosmos.gov.v1beta1.Proposal.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a QueryArchivedProposalsLegacyResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof cosmos.adminmodule.adminmodule.QueryArchivedProposalsLegacyResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {cosmos.adminmodule.adminmodule.QueryArchivedProposalsLegacyResponse} QueryArchivedProposalsLegacyResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + QueryArchivedProposalsLegacyResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a QueryArchivedProposalsLegacyResponse message. + * @function verify + * @memberof cosmos.adminmodule.adminmodule.QueryArchivedProposalsLegacyResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + QueryArchivedProposalsLegacyResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.proposalsLegacy != null && message.hasOwnProperty("proposalsLegacy")) { + if (!Array.isArray(message.proposalsLegacy)) + return "proposalsLegacy: array expected"; + for (var i = 0; i < message.proposalsLegacy.length; ++i) { + var error = $root.cosmos.gov.v1beta1.Proposal.verify(message.proposalsLegacy[i]); + if (error) + return "proposalsLegacy." + error; + } + } + return null; + }; + + /** + * Creates a QueryArchivedProposalsLegacyResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof cosmos.adminmodule.adminmodule.QueryArchivedProposalsLegacyResponse + * @static + * @param {Object.} object Plain object + * @returns {cosmos.adminmodule.adminmodule.QueryArchivedProposalsLegacyResponse} QueryArchivedProposalsLegacyResponse + */ + QueryArchivedProposalsLegacyResponse.fromObject = function fromObject(object) { + if (object instanceof $root.cosmos.adminmodule.adminmodule.QueryArchivedProposalsLegacyResponse) + return object; + var message = new $root.cosmos.adminmodule.adminmodule.QueryArchivedProposalsLegacyResponse(); + if (object.proposalsLegacy) { + if (!Array.isArray(object.proposalsLegacy)) + throw TypeError(".cosmos.adminmodule.adminmodule.QueryArchivedProposalsLegacyResponse.proposalsLegacy: array expected"); + message.proposalsLegacy = []; + for (var i = 0; i < object.proposalsLegacy.length; ++i) { + if (typeof object.proposalsLegacy[i] !== "object") + throw TypeError(".cosmos.adminmodule.adminmodule.QueryArchivedProposalsLegacyResponse.proposalsLegacy: object expected"); + message.proposalsLegacy[i] = $root.cosmos.gov.v1beta1.Proposal.fromObject(object.proposalsLegacy[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a QueryArchivedProposalsLegacyResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof cosmos.adminmodule.adminmodule.QueryArchivedProposalsLegacyResponse + * @static + * @param {cosmos.adminmodule.adminmodule.QueryArchivedProposalsLegacyResponse} message QueryArchivedProposalsLegacyResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + QueryArchivedProposalsLegacyResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.proposalsLegacy = []; + if (message.proposalsLegacy && message.proposalsLegacy.length) { + object.proposalsLegacy = []; + for (var j = 0; j < message.proposalsLegacy.length; ++j) + object.proposalsLegacy[j] = $root.cosmos.gov.v1beta1.Proposal.toObject(message.proposalsLegacy[j], options); + } + return object; + }; + + /** + * Converts this QueryArchivedProposalsLegacyResponse to JSON. + * @function toJSON + * @memberof cosmos.adminmodule.adminmodule.QueryArchivedProposalsLegacyResponse + * @instance + * @returns {Object.} JSON object + */ + QueryArchivedProposalsLegacyResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return QueryArchivedProposalsLegacyResponse; + })(); + adminmodule.GenesisState = (function() { /** @@ -4607,46 +5621,54 @@ return v1beta1; })(); - return gov; - })(); - - cosmos.base = (function() { - - /** - * Namespace base. - * @memberof cosmos - * @namespace - */ - var base = {}; - - base.v1beta1 = (function() { + gov.v1 = (function() { /** - * Namespace v1beta1. - * @memberof cosmos.base + * Namespace v1. + * @memberof cosmos.gov * @namespace */ - var v1beta1 = {}; + var v1 = {}; - v1beta1.Coin = (function() { + /** + * VoteOption enum. + * @name cosmos.gov.v1.VoteOption + * @enum {number} + * @property {number} VOTE_OPTION_UNSPECIFIED=0 VOTE_OPTION_UNSPECIFIED value + * @property {number} VOTE_OPTION_YES=1 VOTE_OPTION_YES value + * @property {number} VOTE_OPTION_ABSTAIN=2 VOTE_OPTION_ABSTAIN value + * @property {number} VOTE_OPTION_NO=3 VOTE_OPTION_NO value + * @property {number} VOTE_OPTION_NO_WITH_VETO=4 VOTE_OPTION_NO_WITH_VETO value + */ + v1.VoteOption = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "VOTE_OPTION_UNSPECIFIED"] = 0; + values[valuesById[1] = "VOTE_OPTION_YES"] = 1; + values[valuesById[2] = "VOTE_OPTION_ABSTAIN"] = 2; + values[valuesById[3] = "VOTE_OPTION_NO"] = 3; + values[valuesById[4] = "VOTE_OPTION_NO_WITH_VETO"] = 4; + return values; + })(); + + v1.WeightedVoteOption = (function() { /** - * Properties of a Coin. - * @memberof cosmos.base.v1beta1 - * @interface ICoin - * @property {string|null} [denom] Coin denom - * @property {string|null} [amount] Coin amount + * Properties of a WeightedVoteOption. + * @memberof cosmos.gov.v1 + * @interface IWeightedVoteOption + * @property {cosmos.gov.v1.VoteOption|null} [option] WeightedVoteOption option + * @property {string|null} [weight] WeightedVoteOption weight */ /** - * Constructs a new Coin. - * @memberof cosmos.base.v1beta1 - * @classdesc Represents a Coin. - * @implements ICoin + * Constructs a new WeightedVoteOption. + * @memberof cosmos.gov.v1 + * @classdesc Represents a WeightedVoteOption. + * @implements IWeightedVoteOption * @constructor - * @param {cosmos.base.v1beta1.ICoin=} [properties] Properties to set + * @param {cosmos.gov.v1.IWeightedVoteOption=} [properties] Properties to set */ - function Coin(properties) { + function WeightedVoteOption(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -4654,76 +5676,76 @@ } /** - * Coin denom. - * @member {string} denom - * @memberof cosmos.base.v1beta1.Coin + * WeightedVoteOption option. + * @member {cosmos.gov.v1.VoteOption} option + * @memberof cosmos.gov.v1.WeightedVoteOption * @instance */ - Coin.prototype.denom = ""; + WeightedVoteOption.prototype.option = 0; /** - * Coin amount. - * @member {string} amount - * @memberof cosmos.base.v1beta1.Coin + * WeightedVoteOption weight. + * @member {string} weight + * @memberof cosmos.gov.v1.WeightedVoteOption * @instance */ - Coin.prototype.amount = ""; + WeightedVoteOption.prototype.weight = ""; /** - * Encodes the specified Coin message. Does not implicitly {@link cosmos.base.v1beta1.Coin.verify|verify} messages. + * Encodes the specified WeightedVoteOption message. Does not implicitly {@link cosmos.gov.v1.WeightedVoteOption.verify|verify} messages. * @function encode - * @memberof cosmos.base.v1beta1.Coin + * @memberof cosmos.gov.v1.WeightedVoteOption * @static - * @param {cosmos.base.v1beta1.ICoin} message Coin message or plain object to encode + * @param {cosmos.gov.v1.IWeightedVoteOption} message WeightedVoteOption message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Coin.encode = function encode(message, writer) { + WeightedVoteOption.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.denom != null && Object.hasOwnProperty.call(message, "denom")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.denom); - if (message.amount != null && Object.hasOwnProperty.call(message, "amount")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.amount); + if (message.option != null && Object.hasOwnProperty.call(message, "option")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.option); + if (message.weight != null && Object.hasOwnProperty.call(message, "weight")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.weight); return writer; }; /** - * Encodes the specified Coin message, length delimited. Does not implicitly {@link cosmos.base.v1beta1.Coin.verify|verify} messages. + * Encodes the specified WeightedVoteOption message, length delimited. Does not implicitly {@link cosmos.gov.v1.WeightedVoteOption.verify|verify} messages. * @function encodeDelimited - * @memberof cosmos.base.v1beta1.Coin + * @memberof cosmos.gov.v1.WeightedVoteOption * @static - * @param {cosmos.base.v1beta1.ICoin} message Coin message or plain object to encode + * @param {cosmos.gov.v1.IWeightedVoteOption} message WeightedVoteOption message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Coin.encodeDelimited = function encodeDelimited(message, writer) { + WeightedVoteOption.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Coin message from the specified reader or buffer. + * Decodes a WeightedVoteOption message from the specified reader or buffer. * @function decode - * @memberof cosmos.base.v1beta1.Coin + * @memberof cosmos.gov.v1.WeightedVoteOption * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {cosmos.base.v1beta1.Coin} Coin + * @returns {cosmos.gov.v1.WeightedVoteOption} WeightedVoteOption * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Coin.decode = function decode(reader, length) { + WeightedVoteOption.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.cosmos.base.v1beta1.Coin(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.cosmos.gov.v1.WeightedVoteOption(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.denom = reader.string(); + message.option = reader.int32(); break; case 2: - message.amount = reader.string(); + message.weight = reader.string(); break; default: reader.skipType(tag & 7); @@ -4734,117 +5756,147 @@ }; /** - * Decodes a Coin message from the specified reader or buffer, length delimited. + * Decodes a WeightedVoteOption message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof cosmos.base.v1beta1.Coin + * @memberof cosmos.gov.v1.WeightedVoteOption * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {cosmos.base.v1beta1.Coin} Coin + * @returns {cosmos.gov.v1.WeightedVoteOption} WeightedVoteOption * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Coin.decodeDelimited = function decodeDelimited(reader) { + WeightedVoteOption.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Coin message. + * Verifies a WeightedVoteOption message. * @function verify - * @memberof cosmos.base.v1beta1.Coin + * @memberof cosmos.gov.v1.WeightedVoteOption * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Coin.verify = function verify(message) { + WeightedVoteOption.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.denom != null && message.hasOwnProperty("denom")) - if (!$util.isString(message.denom)) - return "denom: string expected"; - if (message.amount != null && message.hasOwnProperty("amount")) - if (!$util.isString(message.amount)) - return "amount: string expected"; + if (message.option != null && message.hasOwnProperty("option")) + switch (message.option) { + default: + return "option: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + break; + } + if (message.weight != null && message.hasOwnProperty("weight")) + if (!$util.isString(message.weight)) + return "weight: string expected"; return null; }; /** - * Creates a Coin message from a plain object. Also converts values to their respective internal types. + * Creates a WeightedVoteOption message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof cosmos.base.v1beta1.Coin + * @memberof cosmos.gov.v1.WeightedVoteOption * @static * @param {Object.} object Plain object - * @returns {cosmos.base.v1beta1.Coin} Coin + * @returns {cosmos.gov.v1.WeightedVoteOption} WeightedVoteOption */ - Coin.fromObject = function fromObject(object) { - if (object instanceof $root.cosmos.base.v1beta1.Coin) + WeightedVoteOption.fromObject = function fromObject(object) { + if (object instanceof $root.cosmos.gov.v1.WeightedVoteOption) return object; - var message = new $root.cosmos.base.v1beta1.Coin(); - if (object.denom != null) - message.denom = String(object.denom); - if (object.amount != null) - message.amount = String(object.amount); + var message = new $root.cosmos.gov.v1.WeightedVoteOption(); + switch (object.option) { + case "VOTE_OPTION_UNSPECIFIED": + case 0: + message.option = 0; + break; + case "VOTE_OPTION_YES": + case 1: + message.option = 1; + break; + case "VOTE_OPTION_ABSTAIN": + case 2: + message.option = 2; + break; + case "VOTE_OPTION_NO": + case 3: + message.option = 3; + break; + case "VOTE_OPTION_NO_WITH_VETO": + case 4: + message.option = 4; + break; + } + if (object.weight != null) + message.weight = String(object.weight); return message; }; /** - * Creates a plain object from a Coin message. Also converts values to other types if specified. + * Creates a plain object from a WeightedVoteOption message. Also converts values to other types if specified. * @function toObject - * @memberof cosmos.base.v1beta1.Coin + * @memberof cosmos.gov.v1.WeightedVoteOption * @static - * @param {cosmos.base.v1beta1.Coin} message Coin + * @param {cosmos.gov.v1.WeightedVoteOption} message WeightedVoteOption * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Coin.toObject = function toObject(message, options) { + WeightedVoteOption.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.denom = ""; - object.amount = ""; + object.option = options.enums === String ? "VOTE_OPTION_UNSPECIFIED" : 0; + object.weight = ""; } - if (message.denom != null && message.hasOwnProperty("denom")) - object.denom = message.denom; - if (message.amount != null && message.hasOwnProperty("amount")) - object.amount = message.amount; + if (message.option != null && message.hasOwnProperty("option")) + object.option = options.enums === String ? $root.cosmos.gov.v1.VoteOption[message.option] : message.option; + if (message.weight != null && message.hasOwnProperty("weight")) + object.weight = message.weight; return object; }; /** - * Converts this Coin to JSON. + * Converts this WeightedVoteOption to JSON. * @function toJSON - * @memberof cosmos.base.v1beta1.Coin + * @memberof cosmos.gov.v1.WeightedVoteOption * @instance * @returns {Object.} JSON object */ - Coin.prototype.toJSON = function toJSON() { + WeightedVoteOption.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Coin; + return WeightedVoteOption; })(); - v1beta1.DecCoin = (function() { + v1.Deposit = (function() { /** - * Properties of a DecCoin. - * @memberof cosmos.base.v1beta1 - * @interface IDecCoin - * @property {string|null} [denom] DecCoin denom - * @property {string|null} [amount] DecCoin amount + * Properties of a Deposit. + * @memberof cosmos.gov.v1 + * @interface IDeposit + * @property {Long|null} [proposal_id] Deposit proposal_id + * @property {string|null} [depositor] Deposit depositor + * @property {Array.|null} [amount] Deposit amount */ /** - * Constructs a new DecCoin. - * @memberof cosmos.base.v1beta1 - * @classdesc Represents a DecCoin. - * @implements IDecCoin + * Constructs a new Deposit. + * @memberof cosmos.gov.v1 + * @classdesc Represents a Deposit. + * @implements IDeposit * @constructor - * @param {cosmos.base.v1beta1.IDecCoin=} [properties] Properties to set + * @param {cosmos.gov.v1.IDeposit=} [properties] Properties to set */ - function DecCoin(properties) { + function Deposit(properties) { + this.amount = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -4852,76 +5904,92 @@ } /** - * DecCoin denom. - * @member {string} denom - * @memberof cosmos.base.v1beta1.DecCoin + * Deposit proposal_id. + * @member {Long} proposal_id + * @memberof cosmos.gov.v1.Deposit * @instance */ - DecCoin.prototype.denom = ""; + Deposit.prototype.proposal_id = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** - * DecCoin amount. - * @member {string} amount - * @memberof cosmos.base.v1beta1.DecCoin + * Deposit depositor. + * @member {string} depositor + * @memberof cosmos.gov.v1.Deposit * @instance */ - DecCoin.prototype.amount = ""; + Deposit.prototype.depositor = ""; /** - * Encodes the specified DecCoin message. Does not implicitly {@link cosmos.base.v1beta1.DecCoin.verify|verify} messages. + * Deposit amount. + * @member {Array.} amount + * @memberof cosmos.gov.v1.Deposit + * @instance + */ + Deposit.prototype.amount = $util.emptyArray; + + /** + * Encodes the specified Deposit message. Does not implicitly {@link cosmos.gov.v1.Deposit.verify|verify} messages. * @function encode - * @memberof cosmos.base.v1beta1.DecCoin + * @memberof cosmos.gov.v1.Deposit * @static - * @param {cosmos.base.v1beta1.IDecCoin} message DecCoin message or plain object to encode + * @param {cosmos.gov.v1.IDeposit} message Deposit message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DecCoin.encode = function encode(message, writer) { + Deposit.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.denom != null && Object.hasOwnProperty.call(message, "denom")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.denom); - if (message.amount != null && Object.hasOwnProperty.call(message, "amount")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.amount); + if (message.proposal_id != null && Object.hasOwnProperty.call(message, "proposal_id")) + writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.proposal_id); + if (message.depositor != null && Object.hasOwnProperty.call(message, "depositor")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.depositor); + if (message.amount != null && message.amount.length) + for (var i = 0; i < message.amount.length; ++i) + $root.cosmos.base.v1beta1.Coin.encode(message.amount[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified DecCoin message, length delimited. Does not implicitly {@link cosmos.base.v1beta1.DecCoin.verify|verify} messages. + * Encodes the specified Deposit message, length delimited. Does not implicitly {@link cosmos.gov.v1.Deposit.verify|verify} messages. * @function encodeDelimited - * @memberof cosmos.base.v1beta1.DecCoin + * @memberof cosmos.gov.v1.Deposit * @static - * @param {cosmos.base.v1beta1.IDecCoin} message DecCoin message or plain object to encode + * @param {cosmos.gov.v1.IDeposit} message Deposit message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DecCoin.encodeDelimited = function encodeDelimited(message, writer) { + Deposit.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DecCoin message from the specified reader or buffer. + * Decodes a Deposit message from the specified reader or buffer. * @function decode - * @memberof cosmos.base.v1beta1.DecCoin + * @memberof cosmos.gov.v1.Deposit * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {cosmos.base.v1beta1.DecCoin} DecCoin + * @returns {cosmos.gov.v1.Deposit} Deposit * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DecCoin.decode = function decode(reader, length) { + Deposit.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.cosmos.base.v1beta1.DecCoin(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.cosmos.gov.v1.Deposit(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.denom = reader.string(); + message.proposal_id = reader.uint64(); break; case 2: - message.amount = reader.string(); + message.depositor = reader.string(); + break; + case 3: + if (!(message.amount && message.amount.length)) + message.amount = []; + message.amount.push($root.cosmos.base.v1beta1.Coin.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -4932,116 +6000,170 @@ }; /** - * Decodes a DecCoin message from the specified reader or buffer, length delimited. + * Decodes a Deposit message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof cosmos.base.v1beta1.DecCoin + * @memberof cosmos.gov.v1.Deposit * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {cosmos.base.v1beta1.DecCoin} DecCoin + * @returns {cosmos.gov.v1.Deposit} Deposit * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DecCoin.decodeDelimited = function decodeDelimited(reader) { + Deposit.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DecCoin message. + * Verifies a Deposit message. * @function verify - * @memberof cosmos.base.v1beta1.DecCoin + * @memberof cosmos.gov.v1.Deposit * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DecCoin.verify = function verify(message) { + Deposit.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.denom != null && message.hasOwnProperty("denom")) - if (!$util.isString(message.denom)) - return "denom: string expected"; - if (message.amount != null && message.hasOwnProperty("amount")) - if (!$util.isString(message.amount)) - return "amount: string expected"; + if (message.proposal_id != null && message.hasOwnProperty("proposal_id")) + if (!$util.isInteger(message.proposal_id) && !(message.proposal_id && $util.isInteger(message.proposal_id.low) && $util.isInteger(message.proposal_id.high))) + return "proposal_id: integer|Long expected"; + if (message.depositor != null && message.hasOwnProperty("depositor")) + if (!$util.isString(message.depositor)) + return "depositor: string expected"; + if (message.amount != null && message.hasOwnProperty("amount")) { + if (!Array.isArray(message.amount)) + return "amount: array expected"; + for (var i = 0; i < message.amount.length; ++i) { + var error = $root.cosmos.base.v1beta1.Coin.verify(message.amount[i]); + if (error) + return "amount." + error; + } + } return null; }; /** - * Creates a DecCoin message from a plain object. Also converts values to their respective internal types. + * Creates a Deposit message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof cosmos.base.v1beta1.DecCoin + * @memberof cosmos.gov.v1.Deposit * @static * @param {Object.} object Plain object - * @returns {cosmos.base.v1beta1.DecCoin} DecCoin + * @returns {cosmos.gov.v1.Deposit} Deposit */ - DecCoin.fromObject = function fromObject(object) { - if (object instanceof $root.cosmos.base.v1beta1.DecCoin) + Deposit.fromObject = function fromObject(object) { + if (object instanceof $root.cosmos.gov.v1.Deposit) return object; - var message = new $root.cosmos.base.v1beta1.DecCoin(); - if (object.denom != null) - message.denom = String(object.denom); - if (object.amount != null) - message.amount = String(object.amount); + var message = new $root.cosmos.gov.v1.Deposit(); + if (object.proposal_id != null) + if ($util.Long) + (message.proposal_id = $util.Long.fromValue(object.proposal_id)).unsigned = true; + else if (typeof object.proposal_id === "string") + message.proposal_id = parseInt(object.proposal_id, 10); + else if (typeof object.proposal_id === "number") + message.proposal_id = object.proposal_id; + else if (typeof object.proposal_id === "object") + message.proposal_id = new $util.LongBits(object.proposal_id.low >>> 0, object.proposal_id.high >>> 0).toNumber(true); + if (object.depositor != null) + message.depositor = String(object.depositor); + if (object.amount) { + if (!Array.isArray(object.amount)) + throw TypeError(".cosmos.gov.v1.Deposit.amount: array expected"); + message.amount = []; + for (var i = 0; i < object.amount.length; ++i) { + if (typeof object.amount[i] !== "object") + throw TypeError(".cosmos.gov.v1.Deposit.amount: object expected"); + message.amount[i] = $root.cosmos.base.v1beta1.Coin.fromObject(object.amount[i]); + } + } return message; }; /** - * Creates a plain object from a DecCoin message. Also converts values to other types if specified. + * Creates a plain object from a Deposit message. Also converts values to other types if specified. * @function toObject - * @memberof cosmos.base.v1beta1.DecCoin + * @memberof cosmos.gov.v1.Deposit * @static - * @param {cosmos.base.v1beta1.DecCoin} message DecCoin + * @param {cosmos.gov.v1.Deposit} message Deposit * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DecCoin.toObject = function toObject(message, options) { + Deposit.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.amount = []; if (options.defaults) { - object.denom = ""; - object.amount = ""; + if ($util.Long) { + var long = new $util.Long(0, 0, true); + object.proposal_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.proposal_id = options.longs === String ? "0" : 0; + object.depositor = ""; + } + if (message.proposal_id != null && message.hasOwnProperty("proposal_id")) + if (typeof message.proposal_id === "number") + object.proposal_id = options.longs === String ? String(message.proposal_id) : message.proposal_id; + else + object.proposal_id = options.longs === String ? $util.Long.prototype.toString.call(message.proposal_id) : options.longs === Number ? new $util.LongBits(message.proposal_id.low >>> 0, message.proposal_id.high >>> 0).toNumber(true) : message.proposal_id; + if (message.depositor != null && message.hasOwnProperty("depositor")) + object.depositor = message.depositor; + if (message.amount && message.amount.length) { + object.amount = []; + for (var j = 0; j < message.amount.length; ++j) + object.amount[j] = $root.cosmos.base.v1beta1.Coin.toObject(message.amount[j], options); } - if (message.denom != null && message.hasOwnProperty("denom")) - object.denom = message.denom; - if (message.amount != null && message.hasOwnProperty("amount")) - object.amount = message.amount; return object; }; /** - * Converts this DecCoin to JSON. + * Converts this Deposit to JSON. * @function toJSON - * @memberof cosmos.base.v1beta1.DecCoin + * @memberof cosmos.gov.v1.Deposit * @instance * @returns {Object.} JSON object */ - DecCoin.prototype.toJSON = function toJSON() { + Deposit.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DecCoin; + return Deposit; })(); - v1beta1.IntProto = (function() { + v1.Proposal = (function() { /** - * Properties of an IntProto. - * @memberof cosmos.base.v1beta1 - * @interface IIntProto - * @property {string|null} [int] IntProto int + * Properties of a Proposal. + * @memberof cosmos.gov.v1 + * @interface IProposal + * @property {Long|null} [id] Proposal id + * @property {Array.|null} [messages] Proposal messages + * @property {cosmos.gov.v1.ProposalStatus|null} [status] Proposal status + * @property {cosmos.gov.v1.ITallyResult|null} [final_tally_result] Proposal final_tally_result + * @property {google.protobuf.ITimestamp|null} [submit_time] Proposal submit_time + * @property {google.protobuf.ITimestamp|null} [deposit_end_time] Proposal deposit_end_time + * @property {Array.|null} [total_deposit] Proposal total_deposit + * @property {google.protobuf.ITimestamp|null} [voting_start_time] Proposal voting_start_time + * @property {google.protobuf.ITimestamp|null} [voting_end_time] Proposal voting_end_time + * @property {string|null} [metadata] Proposal metadata + * @property {string|null} [title] Proposal title + * @property {string|null} [summary] Proposal summary + * @property {string|null} [proposer] Proposal proposer */ /** - * Constructs a new IntProto. - * @memberof cosmos.base.v1beta1 - * @classdesc Represents an IntProto. - * @implements IIntProto + * Constructs a new Proposal. + * @memberof cosmos.gov.v1 + * @classdesc Represents a Proposal. + * @implements IProposal * @constructor - * @param {cosmos.base.v1beta1.IIntProto=} [properties] Properties to set + * @param {cosmos.gov.v1.IProposal=} [properties] Properties to set */ - function IntProto(properties) { + function Proposal(properties) { + this.messages = []; + this.total_deposit = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -5049,63 +6171,225 @@ } /** - * IntProto int. - * @member {string} int - * @memberof cosmos.base.v1beta1.IntProto + * Proposal id. + * @member {Long} id + * @memberof cosmos.gov.v1.Proposal * @instance */ - IntProto.prototype.int = ""; + Proposal.prototype.id = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** - * Encodes the specified IntProto message. Does not implicitly {@link cosmos.base.v1beta1.IntProto.verify|verify} messages. + * Proposal messages. + * @member {Array.} messages + * @memberof cosmos.gov.v1.Proposal + * @instance + */ + Proposal.prototype.messages = $util.emptyArray; + + /** + * Proposal status. + * @member {cosmos.gov.v1.ProposalStatus} status + * @memberof cosmos.gov.v1.Proposal + * @instance + */ + Proposal.prototype.status = 0; + + /** + * Proposal final_tally_result. + * @member {cosmos.gov.v1.ITallyResult|null|undefined} final_tally_result + * @memberof cosmos.gov.v1.Proposal + * @instance + */ + Proposal.prototype.final_tally_result = null; + + /** + * Proposal submit_time. + * @member {google.protobuf.ITimestamp|null|undefined} submit_time + * @memberof cosmos.gov.v1.Proposal + * @instance + */ + Proposal.prototype.submit_time = null; + + /** + * Proposal deposit_end_time. + * @member {google.protobuf.ITimestamp|null|undefined} deposit_end_time + * @memberof cosmos.gov.v1.Proposal + * @instance + */ + Proposal.prototype.deposit_end_time = null; + + /** + * Proposal total_deposit. + * @member {Array.} total_deposit + * @memberof cosmos.gov.v1.Proposal + * @instance + */ + Proposal.prototype.total_deposit = $util.emptyArray; + + /** + * Proposal voting_start_time. + * @member {google.protobuf.ITimestamp|null|undefined} voting_start_time + * @memberof cosmos.gov.v1.Proposal + * @instance + */ + Proposal.prototype.voting_start_time = null; + + /** + * Proposal voting_end_time. + * @member {google.protobuf.ITimestamp|null|undefined} voting_end_time + * @memberof cosmos.gov.v1.Proposal + * @instance + */ + Proposal.prototype.voting_end_time = null; + + /** + * Proposal metadata. + * @member {string} metadata + * @memberof cosmos.gov.v1.Proposal + * @instance + */ + Proposal.prototype.metadata = ""; + + /** + * Proposal title. + * @member {string} title + * @memberof cosmos.gov.v1.Proposal + * @instance + */ + Proposal.prototype.title = ""; + + /** + * Proposal summary. + * @member {string} summary + * @memberof cosmos.gov.v1.Proposal + * @instance + */ + Proposal.prototype.summary = ""; + + /** + * Proposal proposer. + * @member {string} proposer + * @memberof cosmos.gov.v1.Proposal + * @instance + */ + Proposal.prototype.proposer = ""; + + /** + * Encodes the specified Proposal message. Does not implicitly {@link cosmos.gov.v1.Proposal.verify|verify} messages. * @function encode - * @memberof cosmos.base.v1beta1.IntProto + * @memberof cosmos.gov.v1.Proposal * @static - * @param {cosmos.base.v1beta1.IIntProto} message IntProto message or plain object to encode + * @param {cosmos.gov.v1.IProposal} message Proposal message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - IntProto.encode = function encode(message, writer) { + Proposal.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.int != null && Object.hasOwnProperty.call(message, "int")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.int); + if (message.id != null && Object.hasOwnProperty.call(message, "id")) + writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.id); + if (message.messages != null && message.messages.length) + for (var i = 0; i < message.messages.length; ++i) + $root.google.protobuf.Any.encode(message.messages[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.status != null && Object.hasOwnProperty.call(message, "status")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.status); + if (message.final_tally_result != null && Object.hasOwnProperty.call(message, "final_tally_result")) + $root.cosmos.gov.v1.TallyResult.encode(message.final_tally_result, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.submit_time != null && Object.hasOwnProperty.call(message, "submit_time")) + $root.google.protobuf.Timestamp.encode(message.submit_time, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.deposit_end_time != null && Object.hasOwnProperty.call(message, "deposit_end_time")) + $root.google.protobuf.Timestamp.encode(message.deposit_end_time, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.total_deposit != null && message.total_deposit.length) + for (var i = 0; i < message.total_deposit.length; ++i) + $root.cosmos.base.v1beta1.Coin.encode(message.total_deposit[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.voting_start_time != null && Object.hasOwnProperty.call(message, "voting_start_time")) + $root.google.protobuf.Timestamp.encode(message.voting_start_time, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.voting_end_time != null && Object.hasOwnProperty.call(message, "voting_end_time")) + $root.google.protobuf.Timestamp.encode(message.voting_end_time, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata")) + writer.uint32(/* id 10, wireType 2 =*/82).string(message.metadata); + if (message.title != null && Object.hasOwnProperty.call(message, "title")) + writer.uint32(/* id 11, wireType 2 =*/90).string(message.title); + if (message.summary != null && Object.hasOwnProperty.call(message, "summary")) + writer.uint32(/* id 12, wireType 2 =*/98).string(message.summary); + if (message.proposer != null && Object.hasOwnProperty.call(message, "proposer")) + writer.uint32(/* id 13, wireType 2 =*/106).string(message.proposer); return writer; }; /** - * Encodes the specified IntProto message, length delimited. Does not implicitly {@link cosmos.base.v1beta1.IntProto.verify|verify} messages. + * Encodes the specified Proposal message, length delimited. Does not implicitly {@link cosmos.gov.v1.Proposal.verify|verify} messages. * @function encodeDelimited - * @memberof cosmos.base.v1beta1.IntProto + * @memberof cosmos.gov.v1.Proposal * @static - * @param {cosmos.base.v1beta1.IIntProto} message IntProto message or plain object to encode + * @param {cosmos.gov.v1.IProposal} message Proposal message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - IntProto.encodeDelimited = function encodeDelimited(message, writer) { + Proposal.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an IntProto message from the specified reader or buffer. + * Decodes a Proposal message from the specified reader or buffer. * @function decode - * @memberof cosmos.base.v1beta1.IntProto + * @memberof cosmos.gov.v1.Proposal * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {cosmos.base.v1beta1.IntProto} IntProto + * @returns {cosmos.gov.v1.Proposal} Proposal * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - IntProto.decode = function decode(reader, length) { + Proposal.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.cosmos.base.v1beta1.IntProto(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.cosmos.gov.v1.Proposal(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.int = reader.string(); + message.id = reader.uint64(); + break; + case 2: + if (!(message.messages && message.messages.length)) + message.messages = []; + message.messages.push($root.google.protobuf.Any.decode(reader, reader.uint32())); + break; + case 3: + message.status = reader.int32(); + break; + case 4: + message.final_tally_result = $root.cosmos.gov.v1.TallyResult.decode(reader, reader.uint32()); + break; + case 5: + message.submit_time = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 6: + message.deposit_end_time = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 7: + if (!(message.total_deposit && message.total_deposit.length)) + message.total_deposit = []; + message.total_deposit.push($root.cosmos.base.v1beta1.Coin.decode(reader, reader.uint32())); + break; + case 8: + message.voting_start_time = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 9: + message.voting_end_time = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 10: + message.metadata = reader.string(); + break; + case 11: + message.title = reader.string(); + break; + case 12: + message.summary = reader.string(); + break; + case 13: + message.proposer = reader.string(); break; default: reader.skipType(tag & 7); @@ -5116,107 +6400,337 @@ }; /** - * Decodes an IntProto message from the specified reader or buffer, length delimited. + * Decodes a Proposal message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof cosmos.base.v1beta1.IntProto + * @memberof cosmos.gov.v1.Proposal * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {cosmos.base.v1beta1.IntProto} IntProto + * @returns {cosmos.gov.v1.Proposal} Proposal * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - IntProto.decodeDelimited = function decodeDelimited(reader) { + Proposal.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an IntProto message. + * Verifies a Proposal message. * @function verify - * @memberof cosmos.base.v1beta1.IntProto + * @memberof cosmos.gov.v1.Proposal * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - IntProto.verify = function verify(message) { + Proposal.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.int != null && message.hasOwnProperty("int")) - if (!$util.isString(message.int)) - return "int: string expected"; + if (message.id != null && message.hasOwnProperty("id")) + if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high))) + return "id: integer|Long expected"; + if (message.messages != null && message.hasOwnProperty("messages")) { + if (!Array.isArray(message.messages)) + return "messages: array expected"; + for (var i = 0; i < message.messages.length; ++i) { + var error = $root.google.protobuf.Any.verify(message.messages[i]); + if (error) + return "messages." + error; + } + } + if (message.status != null && message.hasOwnProperty("status")) + switch (message.status) { + default: + return "status: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + break; + } + if (message.final_tally_result != null && message.hasOwnProperty("final_tally_result")) { + var error = $root.cosmos.gov.v1.TallyResult.verify(message.final_tally_result); + if (error) + return "final_tally_result." + error; + } + if (message.submit_time != null && message.hasOwnProperty("submit_time")) { + var error = $root.google.protobuf.Timestamp.verify(message.submit_time); + if (error) + return "submit_time." + error; + } + if (message.deposit_end_time != null && message.hasOwnProperty("deposit_end_time")) { + var error = $root.google.protobuf.Timestamp.verify(message.deposit_end_time); + if (error) + return "deposit_end_time." + error; + } + if (message.total_deposit != null && message.hasOwnProperty("total_deposit")) { + if (!Array.isArray(message.total_deposit)) + return "total_deposit: array expected"; + for (var i = 0; i < message.total_deposit.length; ++i) { + var error = $root.cosmos.base.v1beta1.Coin.verify(message.total_deposit[i]); + if (error) + return "total_deposit." + error; + } + } + if (message.voting_start_time != null && message.hasOwnProperty("voting_start_time")) { + var error = $root.google.protobuf.Timestamp.verify(message.voting_start_time); + if (error) + return "voting_start_time." + error; + } + if (message.voting_end_time != null && message.hasOwnProperty("voting_end_time")) { + var error = $root.google.protobuf.Timestamp.verify(message.voting_end_time); + if (error) + return "voting_end_time." + error; + } + if (message.metadata != null && message.hasOwnProperty("metadata")) + if (!$util.isString(message.metadata)) + return "metadata: string expected"; + if (message.title != null && message.hasOwnProperty("title")) + if (!$util.isString(message.title)) + return "title: string expected"; + if (message.summary != null && message.hasOwnProperty("summary")) + if (!$util.isString(message.summary)) + return "summary: string expected"; + if (message.proposer != null && message.hasOwnProperty("proposer")) + if (!$util.isString(message.proposer)) + return "proposer: string expected"; return null; }; /** - * Creates an IntProto message from a plain object. Also converts values to their respective internal types. + * Creates a Proposal message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof cosmos.base.v1beta1.IntProto + * @memberof cosmos.gov.v1.Proposal * @static * @param {Object.} object Plain object - * @returns {cosmos.base.v1beta1.IntProto} IntProto + * @returns {cosmos.gov.v1.Proposal} Proposal */ - IntProto.fromObject = function fromObject(object) { - if (object instanceof $root.cosmos.base.v1beta1.IntProto) + Proposal.fromObject = function fromObject(object) { + if (object instanceof $root.cosmos.gov.v1.Proposal) return object; - var message = new $root.cosmos.base.v1beta1.IntProto(); - if (object.int != null) - message.int = String(object.int); + var message = new $root.cosmos.gov.v1.Proposal(); + if (object.id != null) + if ($util.Long) + (message.id = $util.Long.fromValue(object.id)).unsigned = true; + else if (typeof object.id === "string") + message.id = parseInt(object.id, 10); + else if (typeof object.id === "number") + message.id = object.id; + else if (typeof object.id === "object") + message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber(true); + if (object.messages) { + if (!Array.isArray(object.messages)) + throw TypeError(".cosmos.gov.v1.Proposal.messages: array expected"); + message.messages = []; + for (var i = 0; i < object.messages.length; ++i) { + if (typeof object.messages[i] !== "object") + throw TypeError(".cosmos.gov.v1.Proposal.messages: object expected"); + message.messages[i] = $root.google.protobuf.Any.fromObject(object.messages[i]); + } + } + switch (object.status) { + case "PROPOSAL_STATUS_UNSPECIFIED": + case 0: + message.status = 0; + break; + case "PROPOSAL_STATUS_DEPOSIT_PERIOD": + case 1: + message.status = 1; + break; + case "PROPOSAL_STATUS_VOTING_PERIOD": + case 2: + message.status = 2; + break; + case "PROPOSAL_STATUS_PASSED": + case 3: + message.status = 3; + break; + case "PROPOSAL_STATUS_REJECTED": + case 4: + message.status = 4; + break; + case "PROPOSAL_STATUS_FAILED": + case 5: + message.status = 5; + break; + } + if (object.final_tally_result != null) { + if (typeof object.final_tally_result !== "object") + throw TypeError(".cosmos.gov.v1.Proposal.final_tally_result: object expected"); + message.final_tally_result = $root.cosmos.gov.v1.TallyResult.fromObject(object.final_tally_result); + } + if (object.submit_time != null) { + if (typeof object.submit_time !== "object") + throw TypeError(".cosmos.gov.v1.Proposal.submit_time: object expected"); + message.submit_time = $root.google.protobuf.Timestamp.fromObject(object.submit_time); + } + if (object.deposit_end_time != null) { + if (typeof object.deposit_end_time !== "object") + throw TypeError(".cosmos.gov.v1.Proposal.deposit_end_time: object expected"); + message.deposit_end_time = $root.google.protobuf.Timestamp.fromObject(object.deposit_end_time); + } + if (object.total_deposit) { + if (!Array.isArray(object.total_deposit)) + throw TypeError(".cosmos.gov.v1.Proposal.total_deposit: array expected"); + message.total_deposit = []; + for (var i = 0; i < object.total_deposit.length; ++i) { + if (typeof object.total_deposit[i] !== "object") + throw TypeError(".cosmos.gov.v1.Proposal.total_deposit: object expected"); + message.total_deposit[i] = $root.cosmos.base.v1beta1.Coin.fromObject(object.total_deposit[i]); + } + } + if (object.voting_start_time != null) { + if (typeof object.voting_start_time !== "object") + throw TypeError(".cosmos.gov.v1.Proposal.voting_start_time: object expected"); + message.voting_start_time = $root.google.protobuf.Timestamp.fromObject(object.voting_start_time); + } + if (object.voting_end_time != null) { + if (typeof object.voting_end_time !== "object") + throw TypeError(".cosmos.gov.v1.Proposal.voting_end_time: object expected"); + message.voting_end_time = $root.google.protobuf.Timestamp.fromObject(object.voting_end_time); + } + if (object.metadata != null) + message.metadata = String(object.metadata); + if (object.title != null) + message.title = String(object.title); + if (object.summary != null) + message.summary = String(object.summary); + if (object.proposer != null) + message.proposer = String(object.proposer); return message; }; /** - * Creates a plain object from an IntProto message. Also converts values to other types if specified. + * Creates a plain object from a Proposal message. Also converts values to other types if specified. * @function toObject - * @memberof cosmos.base.v1beta1.IntProto + * @memberof cosmos.gov.v1.Proposal * @static - * @param {cosmos.base.v1beta1.IntProto} message IntProto + * @param {cosmos.gov.v1.Proposal} message Proposal * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - IntProto.toObject = function toObject(message, options) { + Proposal.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.int = ""; - if (message.int != null && message.hasOwnProperty("int")) - object.int = message.int; + if (options.arrays || options.defaults) { + object.messages = []; + object.total_deposit = []; + } + if (options.defaults) { + if ($util.Long) { + var long = new $util.Long(0, 0, true); + object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.id = options.longs === String ? "0" : 0; + object.status = options.enums === String ? "PROPOSAL_STATUS_UNSPECIFIED" : 0; + object.final_tally_result = null; + object.submit_time = null; + object.deposit_end_time = null; + object.voting_start_time = null; + object.voting_end_time = null; + object.metadata = ""; + object.title = ""; + object.summary = ""; + object.proposer = ""; + } + if (message.id != null && message.hasOwnProperty("id")) + if (typeof message.id === "number") + object.id = options.longs === String ? String(message.id) : message.id; + else + object.id = options.longs === String ? $util.Long.prototype.toString.call(message.id) : options.longs === Number ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber(true) : message.id; + if (message.messages && message.messages.length) { + object.messages = []; + for (var j = 0; j < message.messages.length; ++j) + object.messages[j] = $root.google.protobuf.Any.toObject(message.messages[j], options); + } + if (message.status != null && message.hasOwnProperty("status")) + object.status = options.enums === String ? $root.cosmos.gov.v1.ProposalStatus[message.status] : message.status; + if (message.final_tally_result != null && message.hasOwnProperty("final_tally_result")) + object.final_tally_result = $root.cosmos.gov.v1.TallyResult.toObject(message.final_tally_result, options); + if (message.submit_time != null && message.hasOwnProperty("submit_time")) + object.submit_time = $root.google.protobuf.Timestamp.toObject(message.submit_time, options); + if (message.deposit_end_time != null && message.hasOwnProperty("deposit_end_time")) + object.deposit_end_time = $root.google.protobuf.Timestamp.toObject(message.deposit_end_time, options); + if (message.total_deposit && message.total_deposit.length) { + object.total_deposit = []; + for (var j = 0; j < message.total_deposit.length; ++j) + object.total_deposit[j] = $root.cosmos.base.v1beta1.Coin.toObject(message.total_deposit[j], options); + } + if (message.voting_start_time != null && message.hasOwnProperty("voting_start_time")) + object.voting_start_time = $root.google.protobuf.Timestamp.toObject(message.voting_start_time, options); + if (message.voting_end_time != null && message.hasOwnProperty("voting_end_time")) + object.voting_end_time = $root.google.protobuf.Timestamp.toObject(message.voting_end_time, options); + if (message.metadata != null && message.hasOwnProperty("metadata")) + object.metadata = message.metadata; + if (message.title != null && message.hasOwnProperty("title")) + object.title = message.title; + if (message.summary != null && message.hasOwnProperty("summary")) + object.summary = message.summary; + if (message.proposer != null && message.hasOwnProperty("proposer")) + object.proposer = message.proposer; return object; }; /** - * Converts this IntProto to JSON. + * Converts this Proposal to JSON. * @function toJSON - * @memberof cosmos.base.v1beta1.IntProto + * @memberof cosmos.gov.v1.Proposal * @instance * @returns {Object.} JSON object */ - IntProto.prototype.toJSON = function toJSON() { + Proposal.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return IntProto; + return Proposal; })(); - v1beta1.DecProto = (function() { + /** + * ProposalStatus enum. + * @name cosmos.gov.v1.ProposalStatus + * @enum {number} + * @property {number} PROPOSAL_STATUS_UNSPECIFIED=0 PROPOSAL_STATUS_UNSPECIFIED value + * @property {number} PROPOSAL_STATUS_DEPOSIT_PERIOD=1 PROPOSAL_STATUS_DEPOSIT_PERIOD value + * @property {number} PROPOSAL_STATUS_VOTING_PERIOD=2 PROPOSAL_STATUS_VOTING_PERIOD value + * @property {number} PROPOSAL_STATUS_PASSED=3 PROPOSAL_STATUS_PASSED value + * @property {number} PROPOSAL_STATUS_REJECTED=4 PROPOSAL_STATUS_REJECTED value + * @property {number} PROPOSAL_STATUS_FAILED=5 PROPOSAL_STATUS_FAILED value + */ + v1.ProposalStatus = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "PROPOSAL_STATUS_UNSPECIFIED"] = 0; + values[valuesById[1] = "PROPOSAL_STATUS_DEPOSIT_PERIOD"] = 1; + values[valuesById[2] = "PROPOSAL_STATUS_VOTING_PERIOD"] = 2; + values[valuesById[3] = "PROPOSAL_STATUS_PASSED"] = 3; + values[valuesById[4] = "PROPOSAL_STATUS_REJECTED"] = 4; + values[valuesById[5] = "PROPOSAL_STATUS_FAILED"] = 5; + return values; + })(); + + v1.TallyResult = (function() { /** - * Properties of a DecProto. - * @memberof cosmos.base.v1beta1 - * @interface IDecProto - * @property {string|null} [dec] DecProto dec + * Properties of a TallyResult. + * @memberof cosmos.gov.v1 + * @interface ITallyResult + * @property {string|null} [yes_count] TallyResult yes_count + * @property {string|null} [abstain_count] TallyResult abstain_count + * @property {string|null} [no_count] TallyResult no_count + * @property {string|null} [no_with_veto_count] TallyResult no_with_veto_count */ /** - * Constructs a new DecProto. - * @memberof cosmos.base.v1beta1 - * @classdesc Represents a DecProto. - * @implements IDecProto + * Constructs a new TallyResult. + * @memberof cosmos.gov.v1 + * @classdesc Represents a TallyResult. + * @implements ITallyResult * @constructor - * @param {cosmos.base.v1beta1.IDecProto=} [properties] Properties to set + * @param {cosmos.gov.v1.ITallyResult=} [properties] Properties to set */ - function DecProto(properties) { + function TallyResult(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -5224,63 +6738,102 @@ } /** - * DecProto dec. - * @member {string} dec - * @memberof cosmos.base.v1beta1.DecProto + * TallyResult yes_count. + * @member {string} yes_count + * @memberof cosmos.gov.v1.TallyResult * @instance */ - DecProto.prototype.dec = ""; + TallyResult.prototype.yes_count = ""; /** - * Encodes the specified DecProto message. Does not implicitly {@link cosmos.base.v1beta1.DecProto.verify|verify} messages. + * TallyResult abstain_count. + * @member {string} abstain_count + * @memberof cosmos.gov.v1.TallyResult + * @instance + */ + TallyResult.prototype.abstain_count = ""; + + /** + * TallyResult no_count. + * @member {string} no_count + * @memberof cosmos.gov.v1.TallyResult + * @instance + */ + TallyResult.prototype.no_count = ""; + + /** + * TallyResult no_with_veto_count. + * @member {string} no_with_veto_count + * @memberof cosmos.gov.v1.TallyResult + * @instance + */ + TallyResult.prototype.no_with_veto_count = ""; + + /** + * Encodes the specified TallyResult message. Does not implicitly {@link cosmos.gov.v1.TallyResult.verify|verify} messages. * @function encode - * @memberof cosmos.base.v1beta1.DecProto + * @memberof cosmos.gov.v1.TallyResult * @static - * @param {cosmos.base.v1beta1.IDecProto} message DecProto message or plain object to encode + * @param {cosmos.gov.v1.ITallyResult} message TallyResult message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DecProto.encode = function encode(message, writer) { + TallyResult.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.dec != null && Object.hasOwnProperty.call(message, "dec")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.dec); + if (message.yes_count != null && Object.hasOwnProperty.call(message, "yes_count")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.yes_count); + if (message.abstain_count != null && Object.hasOwnProperty.call(message, "abstain_count")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.abstain_count); + if (message.no_count != null && Object.hasOwnProperty.call(message, "no_count")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.no_count); + if (message.no_with_veto_count != null && Object.hasOwnProperty.call(message, "no_with_veto_count")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.no_with_veto_count); return writer; }; /** - * Encodes the specified DecProto message, length delimited. Does not implicitly {@link cosmos.base.v1beta1.DecProto.verify|verify} messages. + * Encodes the specified TallyResult message, length delimited. Does not implicitly {@link cosmos.gov.v1.TallyResult.verify|verify} messages. * @function encodeDelimited - * @memberof cosmos.base.v1beta1.DecProto + * @memberof cosmos.gov.v1.TallyResult * @static - * @param {cosmos.base.v1beta1.IDecProto} message DecProto message or plain object to encode + * @param {cosmos.gov.v1.ITallyResult} message TallyResult message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DecProto.encodeDelimited = function encodeDelimited(message, writer) { + TallyResult.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DecProto message from the specified reader or buffer. + * Decodes a TallyResult message from the specified reader or buffer. * @function decode - * @memberof cosmos.base.v1beta1.DecProto + * @memberof cosmos.gov.v1.TallyResult * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {cosmos.base.v1beta1.DecProto} DecProto + * @returns {cosmos.gov.v1.TallyResult} TallyResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DecProto.decode = function decode(reader, length) { + TallyResult.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.cosmos.base.v1beta1.DecProto(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.cosmos.gov.v1.TallyResult(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.dec = reader.string(); + message.yes_count = reader.string(); + break; + case 2: + message.abstain_count = reader.string(); + break; + case 3: + message.no_count = reader.string(); + break; + case 4: + message.no_with_veto_count = reader.string(); break; default: reader.skipType(tag & 7); @@ -5291,761 +6844,492 @@ }; /** - * Decodes a DecProto message from the specified reader or buffer, length delimited. + * Decodes a TallyResult message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof cosmos.base.v1beta1.DecProto + * @memberof cosmos.gov.v1.TallyResult * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {cosmos.base.v1beta1.DecProto} DecProto + * @returns {cosmos.gov.v1.TallyResult} TallyResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DecProto.decodeDelimited = function decodeDelimited(reader) { + TallyResult.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DecProto message. + * Verifies a TallyResult message. * @function verify - * @memberof cosmos.base.v1beta1.DecProto + * @memberof cosmos.gov.v1.TallyResult * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DecProto.verify = function verify(message) { + TallyResult.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.dec != null && message.hasOwnProperty("dec")) - if (!$util.isString(message.dec)) - return "dec: string expected"; + if (message.yes_count != null && message.hasOwnProperty("yes_count")) + if (!$util.isString(message.yes_count)) + return "yes_count: string expected"; + if (message.abstain_count != null && message.hasOwnProperty("abstain_count")) + if (!$util.isString(message.abstain_count)) + return "abstain_count: string expected"; + if (message.no_count != null && message.hasOwnProperty("no_count")) + if (!$util.isString(message.no_count)) + return "no_count: string expected"; + if (message.no_with_veto_count != null && message.hasOwnProperty("no_with_veto_count")) + if (!$util.isString(message.no_with_veto_count)) + return "no_with_veto_count: string expected"; return null; }; /** - * Creates a DecProto message from a plain object. Also converts values to their respective internal types. + * Creates a TallyResult message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof cosmos.base.v1beta1.DecProto + * @memberof cosmos.gov.v1.TallyResult * @static * @param {Object.} object Plain object - * @returns {cosmos.base.v1beta1.DecProto} DecProto + * @returns {cosmos.gov.v1.TallyResult} TallyResult */ - DecProto.fromObject = function fromObject(object) { - if (object instanceof $root.cosmos.base.v1beta1.DecProto) + TallyResult.fromObject = function fromObject(object) { + if (object instanceof $root.cosmos.gov.v1.TallyResult) return object; - var message = new $root.cosmos.base.v1beta1.DecProto(); - if (object.dec != null) - message.dec = String(object.dec); + var message = new $root.cosmos.gov.v1.TallyResult(); + if (object.yes_count != null) + message.yes_count = String(object.yes_count); + if (object.abstain_count != null) + message.abstain_count = String(object.abstain_count); + if (object.no_count != null) + message.no_count = String(object.no_count); + if (object.no_with_veto_count != null) + message.no_with_veto_count = String(object.no_with_veto_count); return message; }; /** - * Creates a plain object from a DecProto message. Also converts values to other types if specified. + * Creates a plain object from a TallyResult message. Also converts values to other types if specified. * @function toObject - * @memberof cosmos.base.v1beta1.DecProto + * @memberof cosmos.gov.v1.TallyResult * @static - * @param {cosmos.base.v1beta1.DecProto} message DecProto + * @param {cosmos.gov.v1.TallyResult} message TallyResult * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DecProto.toObject = function toObject(message, options) { + TallyResult.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.dec = ""; - if (message.dec != null && message.hasOwnProperty("dec")) - object.dec = message.dec; + if (options.defaults) { + object.yes_count = ""; + object.abstain_count = ""; + object.no_count = ""; + object.no_with_veto_count = ""; + } + if (message.yes_count != null && message.hasOwnProperty("yes_count")) + object.yes_count = message.yes_count; + if (message.abstain_count != null && message.hasOwnProperty("abstain_count")) + object.abstain_count = message.abstain_count; + if (message.no_count != null && message.hasOwnProperty("no_count")) + object.no_count = message.no_count; + if (message.no_with_veto_count != null && message.hasOwnProperty("no_with_veto_count")) + object.no_with_veto_count = message.no_with_veto_count; return object; }; /** - * Converts this DecProto to JSON. + * Converts this TallyResult to JSON. * @function toJSON - * @memberof cosmos.base.v1beta1.DecProto + * @memberof cosmos.gov.v1.TallyResult * @instance * @returns {Object.} JSON object */ - DecProto.prototype.toJSON = function toJSON() { + TallyResult.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DecProto; + return TallyResult; })(); - return v1beta1; - })(); + v1.Vote = (function() { - base.query = (function() { + /** + * Properties of a Vote. + * @memberof cosmos.gov.v1 + * @interface IVote + * @property {Long|null} [proposal_id] Vote proposal_id + * @property {string|null} [voter] Vote voter + * @property {Array.|null} [options] Vote options + * @property {string|null} [metadata] Vote metadata + */ - /** - * Namespace query. - * @memberof cosmos.base - * @namespace - */ - var query = {}; + /** + * Constructs a new Vote. + * @memberof cosmos.gov.v1 + * @classdesc Represents a Vote. + * @implements IVote + * @constructor + * @param {cosmos.gov.v1.IVote=} [properties] Properties to set + */ + function Vote(properties) { + this.options = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - query.v1beta1 = (function() { + /** + * Vote proposal_id. + * @member {Long} proposal_id + * @memberof cosmos.gov.v1.Vote + * @instance + */ + Vote.prototype.proposal_id = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** - * Namespace v1beta1. - * @memberof cosmos.base.query - * @namespace + * Vote voter. + * @member {string} voter + * @memberof cosmos.gov.v1.Vote + * @instance */ - var v1beta1 = {}; + Vote.prototype.voter = ""; - v1beta1.PageRequest = (function() { + /** + * Vote options. + * @member {Array.} options + * @memberof cosmos.gov.v1.Vote + * @instance + */ + Vote.prototype.options = $util.emptyArray; - /** - * Properties of a PageRequest. - * @memberof cosmos.base.query.v1beta1 - * @interface IPageRequest - * @property {Uint8Array|null} [key] PageRequest key - * @property {Long|null} [offset] PageRequest offset - * @property {Long|null} [limit] PageRequest limit - * @property {boolean|null} [count_total] PageRequest count_total - */ - - /** - * Constructs a new PageRequest. - * @memberof cosmos.base.query.v1beta1 - * @classdesc Represents a PageRequest. - * @implements IPageRequest - * @constructor - * @param {cosmos.base.query.v1beta1.IPageRequest=} [properties] Properties to set - */ - function PageRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * PageRequest key. - * @member {Uint8Array} key - * @memberof cosmos.base.query.v1beta1.PageRequest - * @instance - */ - PageRequest.prototype.key = $util.newBuffer([]); - - /** - * PageRequest offset. - * @member {Long} offset - * @memberof cosmos.base.query.v1beta1.PageRequest - * @instance - */ - PageRequest.prototype.offset = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + /** + * Vote metadata. + * @member {string} metadata + * @memberof cosmos.gov.v1.Vote + * @instance + */ + Vote.prototype.metadata = ""; - /** - * PageRequest limit. - * @member {Long} limit - * @memberof cosmos.base.query.v1beta1.PageRequest - * @instance - */ - PageRequest.prototype.limit = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + /** + * Encodes the specified Vote message. Does not implicitly {@link cosmos.gov.v1.Vote.verify|verify} messages. + * @function encode + * @memberof cosmos.gov.v1.Vote + * @static + * @param {cosmos.gov.v1.IVote} message Vote message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Vote.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.proposal_id != null && Object.hasOwnProperty.call(message, "proposal_id")) + writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.proposal_id); + if (message.voter != null && Object.hasOwnProperty.call(message, "voter")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.voter); + if (message.options != null && message.options.length) + for (var i = 0; i < message.options.length; ++i) + $root.cosmos.gov.v1.WeightedVoteOption.encode(message.options[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.metadata); + return writer; + }; - /** - * PageRequest count_total. - * @member {boolean} count_total - * @memberof cosmos.base.query.v1beta1.PageRequest - * @instance - */ - PageRequest.prototype.count_total = false; + /** + * Encodes the specified Vote message, length delimited. Does not implicitly {@link cosmos.gov.v1.Vote.verify|verify} messages. + * @function encodeDelimited + * @memberof cosmos.gov.v1.Vote + * @static + * @param {cosmos.gov.v1.IVote} message Vote message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Vote.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Encodes the specified PageRequest message. Does not implicitly {@link cosmos.base.query.v1beta1.PageRequest.verify|verify} messages. - * @function encode - * @memberof cosmos.base.query.v1beta1.PageRequest - * @static - * @param {cosmos.base.query.v1beta1.IPageRequest} message PageRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PageRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.key != null && Object.hasOwnProperty.call(message, "key")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.key); - if (message.offset != null && Object.hasOwnProperty.call(message, "offset")) - writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.offset); - if (message.limit != null && Object.hasOwnProperty.call(message, "limit")) - writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.limit); - if (message.count_total != null && Object.hasOwnProperty.call(message, "count_total")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.count_total); - return writer; - }; + /** + * Decodes a Vote message from the specified reader or buffer. + * @function decode + * @memberof cosmos.gov.v1.Vote + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {cosmos.gov.v1.Vote} Vote + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Vote.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.cosmos.gov.v1.Vote(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposal_id = reader.uint64(); + break; + case 2: + message.voter = reader.string(); + break; + case 4: + if (!(message.options && message.options.length)) + message.options = []; + message.options.push($root.cosmos.gov.v1.WeightedVoteOption.decode(reader, reader.uint32())); + break; + case 5: + message.metadata = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Encodes the specified PageRequest message, length delimited. Does not implicitly {@link cosmos.base.query.v1beta1.PageRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof cosmos.base.query.v1beta1.PageRequest - * @static - * @param {cosmos.base.query.v1beta1.IPageRequest} message PageRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PageRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Decodes a Vote message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof cosmos.gov.v1.Vote + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {cosmos.gov.v1.Vote} Vote + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Vote.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Decodes a PageRequest message from the specified reader or buffer. - * @function decode - * @memberof cosmos.base.query.v1beta1.PageRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {cosmos.base.query.v1beta1.PageRequest} PageRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PageRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.cosmos.base.query.v1beta1.PageRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.key = reader.bytes(); - break; - case 2: - message.offset = reader.uint64(); - break; - case 3: - message.limit = reader.uint64(); - break; - case 4: - message.count_total = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } + /** + * Verifies a Vote message. + * @function verify + * @memberof cosmos.gov.v1.Vote + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Vote.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.proposal_id != null && message.hasOwnProperty("proposal_id")) + if (!$util.isInteger(message.proposal_id) && !(message.proposal_id && $util.isInteger(message.proposal_id.low) && $util.isInteger(message.proposal_id.high))) + return "proposal_id: integer|Long expected"; + if (message.voter != null && message.hasOwnProperty("voter")) + if (!$util.isString(message.voter)) + return "voter: string expected"; + if (message.options != null && message.hasOwnProperty("options")) { + if (!Array.isArray(message.options)) + return "options: array expected"; + for (var i = 0; i < message.options.length; ++i) { + var error = $root.cosmos.gov.v1.WeightedVoteOption.verify(message.options[i]); + if (error) + return "options." + error; } - return message; - }; + } + if (message.metadata != null && message.hasOwnProperty("metadata")) + if (!$util.isString(message.metadata)) + return "metadata: string expected"; + return null; + }; - /** - * Decodes a PageRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof cosmos.base.query.v1beta1.PageRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {cosmos.base.query.v1beta1.PageRequest} PageRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PageRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Creates a Vote message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof cosmos.gov.v1.Vote + * @static + * @param {Object.} object Plain object + * @returns {cosmos.gov.v1.Vote} Vote + */ + Vote.fromObject = function fromObject(object) { + if (object instanceof $root.cosmos.gov.v1.Vote) + return object; + var message = new $root.cosmos.gov.v1.Vote(); + if (object.proposal_id != null) + if ($util.Long) + (message.proposal_id = $util.Long.fromValue(object.proposal_id)).unsigned = true; + else if (typeof object.proposal_id === "string") + message.proposal_id = parseInt(object.proposal_id, 10); + else if (typeof object.proposal_id === "number") + message.proposal_id = object.proposal_id; + else if (typeof object.proposal_id === "object") + message.proposal_id = new $util.LongBits(object.proposal_id.low >>> 0, object.proposal_id.high >>> 0).toNumber(true); + if (object.voter != null) + message.voter = String(object.voter); + if (object.options) { + if (!Array.isArray(object.options)) + throw TypeError(".cosmos.gov.v1.Vote.options: array expected"); + message.options = []; + for (var i = 0; i < object.options.length; ++i) { + if (typeof object.options[i] !== "object") + throw TypeError(".cosmos.gov.v1.Vote.options: object expected"); + message.options[i] = $root.cosmos.gov.v1.WeightedVoteOption.fromObject(object.options[i]); + } + } + if (object.metadata != null) + message.metadata = String(object.metadata); + return message; + }; - /** - * Verifies a PageRequest message. - * @function verify - * @memberof cosmos.base.query.v1beta1.PageRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - PageRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.key != null && message.hasOwnProperty("key")) - if (!(message.key && typeof message.key.length === "number" || $util.isString(message.key))) - return "key: buffer expected"; - if (message.offset != null && message.hasOwnProperty("offset")) - if (!$util.isInteger(message.offset) && !(message.offset && $util.isInteger(message.offset.low) && $util.isInteger(message.offset.high))) - return "offset: integer|Long expected"; - if (message.limit != null && message.hasOwnProperty("limit")) - if (!$util.isInteger(message.limit) && !(message.limit && $util.isInteger(message.limit.low) && $util.isInteger(message.limit.high))) - return "limit: integer|Long expected"; - if (message.count_total != null && message.hasOwnProperty("count_total")) - if (typeof message.count_total !== "boolean") - return "count_total: boolean expected"; - return null; - }; + /** + * Creates a plain object from a Vote message. Also converts values to other types if specified. + * @function toObject + * @memberof cosmos.gov.v1.Vote + * @static + * @param {cosmos.gov.v1.Vote} message Vote + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Vote.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.options = []; + if (options.defaults) { + if ($util.Long) { + var long = new $util.Long(0, 0, true); + object.proposal_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.proposal_id = options.longs === String ? "0" : 0; + object.voter = ""; + object.metadata = ""; + } + if (message.proposal_id != null && message.hasOwnProperty("proposal_id")) + if (typeof message.proposal_id === "number") + object.proposal_id = options.longs === String ? String(message.proposal_id) : message.proposal_id; + else + object.proposal_id = options.longs === String ? $util.Long.prototype.toString.call(message.proposal_id) : options.longs === Number ? new $util.LongBits(message.proposal_id.low >>> 0, message.proposal_id.high >>> 0).toNumber(true) : message.proposal_id; + if (message.voter != null && message.hasOwnProperty("voter")) + object.voter = message.voter; + if (message.options && message.options.length) { + object.options = []; + for (var j = 0; j < message.options.length; ++j) + object.options[j] = $root.cosmos.gov.v1.WeightedVoteOption.toObject(message.options[j], options); + } + if (message.metadata != null && message.hasOwnProperty("metadata")) + object.metadata = message.metadata; + return object; + }; - /** - * Creates a PageRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof cosmos.base.query.v1beta1.PageRequest - * @static - * @param {Object.} object Plain object - * @returns {cosmos.base.query.v1beta1.PageRequest} PageRequest - */ - PageRequest.fromObject = function fromObject(object) { - if (object instanceof $root.cosmos.base.query.v1beta1.PageRequest) - return object; - var message = new $root.cosmos.base.query.v1beta1.PageRequest(); - if (object.key != null) - if (typeof object.key === "string") - $util.base64.decode(object.key, message.key = $util.newBuffer($util.base64.length(object.key)), 0); - else if (object.key.length) - message.key = object.key; - if (object.offset != null) - if ($util.Long) - (message.offset = $util.Long.fromValue(object.offset)).unsigned = true; - else if (typeof object.offset === "string") - message.offset = parseInt(object.offset, 10); - else if (typeof object.offset === "number") - message.offset = object.offset; - else if (typeof object.offset === "object") - message.offset = new $util.LongBits(object.offset.low >>> 0, object.offset.high >>> 0).toNumber(true); - if (object.limit != null) - if ($util.Long) - (message.limit = $util.Long.fromValue(object.limit)).unsigned = true; - else if (typeof object.limit === "string") - message.limit = parseInt(object.limit, 10); - else if (typeof object.limit === "number") - message.limit = object.limit; - else if (typeof object.limit === "object") - message.limit = new $util.LongBits(object.limit.low >>> 0, object.limit.high >>> 0).toNumber(true); - if (object.count_total != null) - message.count_total = Boolean(object.count_total); - return message; - }; + /** + * Converts this Vote to JSON. + * @function toJSON + * @memberof cosmos.gov.v1.Vote + * @instance + * @returns {Object.} JSON object + */ + Vote.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Creates a plain object from a PageRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof cosmos.base.query.v1beta1.PageRequest - * @static - * @param {cosmos.base.query.v1beta1.PageRequest} message PageRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - PageRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - if (options.bytes === String) - object.key = ""; - else { - object.key = []; - if (options.bytes !== Array) - object.key = $util.newBuffer(object.key); - } - if ($util.Long) { - var long = new $util.Long(0, 0, true); - object.offset = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.offset = options.longs === String ? "0" : 0; - if ($util.Long) { - var long = new $util.Long(0, 0, true); - object.limit = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.limit = options.longs === String ? "0" : 0; - object.count_total = false; - } - if (message.key != null && message.hasOwnProperty("key")) - object.key = options.bytes === String ? $util.base64.encode(message.key, 0, message.key.length) : options.bytes === Array ? Array.prototype.slice.call(message.key) : message.key; - if (message.offset != null && message.hasOwnProperty("offset")) - if (typeof message.offset === "number") - object.offset = options.longs === String ? String(message.offset) : message.offset; - else - object.offset = options.longs === String ? $util.Long.prototype.toString.call(message.offset) : options.longs === Number ? new $util.LongBits(message.offset.low >>> 0, message.offset.high >>> 0).toNumber(true) : message.offset; - if (message.limit != null && message.hasOwnProperty("limit")) - if (typeof message.limit === "number") - object.limit = options.longs === String ? String(message.limit) : message.limit; - else - object.limit = options.longs === String ? $util.Long.prototype.toString.call(message.limit) : options.longs === Number ? new $util.LongBits(message.limit.low >>> 0, message.limit.high >>> 0).toNumber(true) : message.limit; - if (message.count_total != null && message.hasOwnProperty("count_total")) - object.count_total = message.count_total; - return object; - }; + return Vote; + })(); - /** - * Converts this PageRequest to JSON. - * @function toJSON - * @memberof cosmos.base.query.v1beta1.PageRequest - * @instance - * @returns {Object.} JSON object - */ - PageRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + v1.DepositParams = (function() { - return PageRequest; - })(); + /** + * Properties of a DepositParams. + * @memberof cosmos.gov.v1 + * @interface IDepositParams + * @property {Array.|null} [min_deposit] DepositParams min_deposit + * @property {google.protobuf.IDuration|null} [max_deposit_period] DepositParams max_deposit_period + */ - v1beta1.PageResponse = (function() { + /** + * Constructs a new DepositParams. + * @memberof cosmos.gov.v1 + * @classdesc Represents a DepositParams. + * @implements IDepositParams + * @constructor + * @param {cosmos.gov.v1.IDepositParams=} [properties] Properties to set + */ + function DepositParams(properties) { + this.min_deposit = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Properties of a PageResponse. - * @memberof cosmos.base.query.v1beta1 - * @interface IPageResponse - * @property {Uint8Array|null} [next_key] PageResponse next_key - * @property {Long|null} [total] PageResponse total - */ + /** + * DepositParams min_deposit. + * @member {Array.} min_deposit + * @memberof cosmos.gov.v1.DepositParams + * @instance + */ + DepositParams.prototype.min_deposit = $util.emptyArray; - /** - * Constructs a new PageResponse. - * @memberof cosmos.base.query.v1beta1 - * @classdesc Represents a PageResponse. - * @implements IPageResponse - * @constructor - * @param {cosmos.base.query.v1beta1.IPageResponse=} [properties] Properties to set - */ - function PageResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * DepositParams max_deposit_period. + * @member {google.protobuf.IDuration|null|undefined} max_deposit_period + * @memberof cosmos.gov.v1.DepositParams + * @instance + */ + DepositParams.prototype.max_deposit_period = null; - /** - * PageResponse next_key. - * @member {Uint8Array} next_key - * @memberof cosmos.base.query.v1beta1.PageResponse - * @instance - */ - PageResponse.prototype.next_key = $util.newBuffer([]); - - /** - * PageResponse total. - * @member {Long} total - * @memberof cosmos.base.query.v1beta1.PageResponse - * @instance - */ - PageResponse.prototype.total = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * Encodes the specified PageResponse message. Does not implicitly {@link cosmos.base.query.v1beta1.PageResponse.verify|verify} messages. - * @function encode - * @memberof cosmos.base.query.v1beta1.PageResponse - * @static - * @param {cosmos.base.query.v1beta1.IPageResponse} message PageResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PageResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.next_key != null && Object.hasOwnProperty.call(message, "next_key")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.next_key); - if (message.total != null && Object.hasOwnProperty.call(message, "total")) - writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.total); - return writer; - }; - - /** - * Encodes the specified PageResponse message, length delimited. Does not implicitly {@link cosmos.base.query.v1beta1.PageResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof cosmos.base.query.v1beta1.PageResponse - * @static - * @param {cosmos.base.query.v1beta1.IPageResponse} message PageResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PageResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a PageResponse message from the specified reader or buffer. - * @function decode - * @memberof cosmos.base.query.v1beta1.PageResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {cosmos.base.query.v1beta1.PageResponse} PageResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PageResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.cosmos.base.query.v1beta1.PageResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.next_key = reader.bytes(); - break; - case 2: - message.total = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a PageResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof cosmos.base.query.v1beta1.PageResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {cosmos.base.query.v1beta1.PageResponse} PageResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PageResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a PageResponse message. - * @function verify - * @memberof cosmos.base.query.v1beta1.PageResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - PageResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.next_key != null && message.hasOwnProperty("next_key")) - if (!(message.next_key && typeof message.next_key.length === "number" || $util.isString(message.next_key))) - return "next_key: buffer expected"; - if (message.total != null && message.hasOwnProperty("total")) - if (!$util.isInteger(message.total) && !(message.total && $util.isInteger(message.total.low) && $util.isInteger(message.total.high))) - return "total: integer|Long expected"; - return null; - }; - - /** - * Creates a PageResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof cosmos.base.query.v1beta1.PageResponse - * @static - * @param {Object.} object Plain object - * @returns {cosmos.base.query.v1beta1.PageResponse} PageResponse - */ - PageResponse.fromObject = function fromObject(object) { - if (object instanceof $root.cosmos.base.query.v1beta1.PageResponse) - return object; - var message = new $root.cosmos.base.query.v1beta1.PageResponse(); - if (object.next_key != null) - if (typeof object.next_key === "string") - $util.base64.decode(object.next_key, message.next_key = $util.newBuffer($util.base64.length(object.next_key)), 0); - else if (object.next_key.length) - message.next_key = object.next_key; - if (object.total != null) - if ($util.Long) - (message.total = $util.Long.fromValue(object.total)).unsigned = true; - else if (typeof object.total === "string") - message.total = parseInt(object.total, 10); - else if (typeof object.total === "number") - message.total = object.total; - else if (typeof object.total === "object") - message.total = new $util.LongBits(object.total.low >>> 0, object.total.high >>> 0).toNumber(true); - return message; - }; - - /** - * Creates a plain object from a PageResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof cosmos.base.query.v1beta1.PageResponse - * @static - * @param {cosmos.base.query.v1beta1.PageResponse} message PageResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - PageResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - if (options.bytes === String) - object.next_key = ""; - else { - object.next_key = []; - if (options.bytes !== Array) - object.next_key = $util.newBuffer(object.next_key); - } - if ($util.Long) { - var long = new $util.Long(0, 0, true); - object.total = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.total = options.longs === String ? "0" : 0; - } - if (message.next_key != null && message.hasOwnProperty("next_key")) - object.next_key = options.bytes === String ? $util.base64.encode(message.next_key, 0, message.next_key.length) : options.bytes === Array ? Array.prototype.slice.call(message.next_key) : message.next_key; - if (message.total != null && message.hasOwnProperty("total")) - if (typeof message.total === "number") - object.total = options.longs === String ? String(message.total) : message.total; - else - object.total = options.longs === String ? $util.Long.prototype.toString.call(message.total) : options.longs === Number ? new $util.LongBits(message.total.low >>> 0, message.total.high >>> 0).toNumber(true) : message.total; - return object; - }; - - /** - * Converts this PageResponse to JSON. - * @function toJSON - * @memberof cosmos.base.query.v1beta1.PageResponse - * @instance - * @returns {Object.} JSON object - */ - PageResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return PageResponse; - })(); - - return v1beta1; - })(); - - return query; - })(); - - return base; - })(); - - cosmos.upgrade = (function() { - - /** - * Namespace upgrade. - * @memberof cosmos - * @namespace - */ - var upgrade = {}; - - upgrade.v1beta1 = (function() { - - /** - * Namespace v1beta1. - * @memberof cosmos.upgrade - * @namespace - */ - var v1beta1 = {}; - - v1beta1.Plan = (function() { - - /** - * Properties of a Plan. - * @memberof cosmos.upgrade.v1beta1 - * @interface IPlan - * @property {string|null} [name] Plan name - * @property {google.protobuf.ITimestamp|null} [time] Plan time - * @property {Long|null} [height] Plan height - * @property {string|null} [info] Plan info - */ - - /** - * Constructs a new Plan. - * @memberof cosmos.upgrade.v1beta1 - * @classdesc Represents a Plan. - * @implements IPlan - * @constructor - * @param {cosmos.upgrade.v1beta1.IPlan=} [properties] Properties to set - */ - function Plan(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Plan name. - * @member {string} name - * @memberof cosmos.upgrade.v1beta1.Plan - * @instance - */ - Plan.prototype.name = ""; - - /** - * Plan time. - * @member {google.protobuf.ITimestamp|null|undefined} time - * @memberof cosmos.upgrade.v1beta1.Plan - * @instance - */ - Plan.prototype.time = null; - - /** - * Plan height. - * @member {Long} height - * @memberof cosmos.upgrade.v1beta1.Plan - * @instance - */ - Plan.prototype.height = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * Plan info. - * @member {string} info - * @memberof cosmos.upgrade.v1beta1.Plan - * @instance - */ - Plan.prototype.info = ""; - - /** - * Encodes the specified Plan message. Does not implicitly {@link cosmos.upgrade.v1beta1.Plan.verify|verify} messages. - * @function encode - * @memberof cosmos.upgrade.v1beta1.Plan - * @static - * @param {cosmos.upgrade.v1beta1.IPlan} message Plan message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Plan.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.time != null && Object.hasOwnProperty.call(message, "time")) - $root.google.protobuf.Timestamp.encode(message.time, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.height != null && Object.hasOwnProperty.call(message, "height")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.height); - if (message.info != null && Object.hasOwnProperty.call(message, "info")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.info); - return writer; - }; + /** + * Encodes the specified DepositParams message. Does not implicitly {@link cosmos.gov.v1.DepositParams.verify|verify} messages. + * @function encode + * @memberof cosmos.gov.v1.DepositParams + * @static + * @param {cosmos.gov.v1.IDepositParams} message DepositParams message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DepositParams.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.min_deposit != null && message.min_deposit.length) + for (var i = 0; i < message.min_deposit.length; ++i) + $root.cosmos.base.v1beta1.Coin.encode(message.min_deposit[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.max_deposit_period != null && Object.hasOwnProperty.call(message, "max_deposit_period")) + $root.google.protobuf.Duration.encode(message.max_deposit_period, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; /** - * Encodes the specified Plan message, length delimited. Does not implicitly {@link cosmos.upgrade.v1beta1.Plan.verify|verify} messages. + * Encodes the specified DepositParams message, length delimited. Does not implicitly {@link cosmos.gov.v1.DepositParams.verify|verify} messages. * @function encodeDelimited - * @memberof cosmos.upgrade.v1beta1.Plan + * @memberof cosmos.gov.v1.DepositParams * @static - * @param {cosmos.upgrade.v1beta1.IPlan} message Plan message or plain object to encode + * @param {cosmos.gov.v1.IDepositParams} message DepositParams message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Plan.encodeDelimited = function encodeDelimited(message, writer) { + DepositParams.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Plan message from the specified reader or buffer. + * Decodes a DepositParams message from the specified reader or buffer. * @function decode - * @memberof cosmos.upgrade.v1beta1.Plan + * @memberof cosmos.gov.v1.DepositParams * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {cosmos.upgrade.v1beta1.Plan} Plan + * @returns {cosmos.gov.v1.DepositParams} DepositParams * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Plan.decode = function decode(reader, length) { + DepositParams.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.cosmos.upgrade.v1beta1.Plan(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.cosmos.gov.v1.DepositParams(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + if (!(message.min_deposit && message.min_deposit.length)) + message.min_deposit = []; + message.min_deposit.push($root.cosmos.base.v1beta1.Coin.decode(reader, reader.uint32())); break; case 2: - message.time = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 3: - message.height = reader.int64(); - break; - case 4: - message.info = reader.string(); + message.max_deposit_period = $root.google.protobuf.Duration.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -6056,153 +7340,138 @@ }; /** - * Decodes a Plan message from the specified reader or buffer, length delimited. + * Decodes a DepositParams message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof cosmos.upgrade.v1beta1.Plan + * @memberof cosmos.gov.v1.DepositParams * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {cosmos.upgrade.v1beta1.Plan} Plan + * @returns {cosmos.gov.v1.DepositParams} DepositParams * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Plan.decodeDelimited = function decodeDelimited(reader) { + DepositParams.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Plan message. + * Verifies a DepositParams message. * @function verify - * @memberof cosmos.upgrade.v1beta1.Plan + * @memberof cosmos.gov.v1.DepositParams * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Plan.verify = function verify(message) { + DepositParams.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.time != null && message.hasOwnProperty("time")) { - var error = $root.google.protobuf.Timestamp.verify(message.time); + if (message.min_deposit != null && message.hasOwnProperty("min_deposit")) { + if (!Array.isArray(message.min_deposit)) + return "min_deposit: array expected"; + for (var i = 0; i < message.min_deposit.length; ++i) { + var error = $root.cosmos.base.v1beta1.Coin.verify(message.min_deposit[i]); + if (error) + return "min_deposit." + error; + } + } + if (message.max_deposit_period != null && message.hasOwnProperty("max_deposit_period")) { + var error = $root.google.protobuf.Duration.verify(message.max_deposit_period); if (error) - return "time." + error; + return "max_deposit_period." + error; } - if (message.height != null && message.hasOwnProperty("height")) - if (!$util.isInteger(message.height) && !(message.height && $util.isInteger(message.height.low) && $util.isInteger(message.height.high))) - return "height: integer|Long expected"; - if (message.info != null && message.hasOwnProperty("info")) - if (!$util.isString(message.info)) - return "info: string expected"; return null; }; /** - * Creates a Plan message from a plain object. Also converts values to their respective internal types. + * Creates a DepositParams message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof cosmos.upgrade.v1beta1.Plan + * @memberof cosmos.gov.v1.DepositParams * @static * @param {Object.} object Plain object - * @returns {cosmos.upgrade.v1beta1.Plan} Plan + * @returns {cosmos.gov.v1.DepositParams} DepositParams */ - Plan.fromObject = function fromObject(object) { - if (object instanceof $root.cosmos.upgrade.v1beta1.Plan) + DepositParams.fromObject = function fromObject(object) { + if (object instanceof $root.cosmos.gov.v1.DepositParams) return object; - var message = new $root.cosmos.upgrade.v1beta1.Plan(); - if (object.name != null) - message.name = String(object.name); - if (object.time != null) { - if (typeof object.time !== "object") - throw TypeError(".cosmos.upgrade.v1beta1.Plan.time: object expected"); - message.time = $root.google.protobuf.Timestamp.fromObject(object.time); + var message = new $root.cosmos.gov.v1.DepositParams(); + if (object.min_deposit) { + if (!Array.isArray(object.min_deposit)) + throw TypeError(".cosmos.gov.v1.DepositParams.min_deposit: array expected"); + message.min_deposit = []; + for (var i = 0; i < object.min_deposit.length; ++i) { + if (typeof object.min_deposit[i] !== "object") + throw TypeError(".cosmos.gov.v1.DepositParams.min_deposit: object expected"); + message.min_deposit[i] = $root.cosmos.base.v1beta1.Coin.fromObject(object.min_deposit[i]); + } + } + if (object.max_deposit_period != null) { + if (typeof object.max_deposit_period !== "object") + throw TypeError(".cosmos.gov.v1.DepositParams.max_deposit_period: object expected"); + message.max_deposit_period = $root.google.protobuf.Duration.fromObject(object.max_deposit_period); } - if (object.height != null) - if ($util.Long) - (message.height = $util.Long.fromValue(object.height)).unsigned = false; - else if (typeof object.height === "string") - message.height = parseInt(object.height, 10); - else if (typeof object.height === "number") - message.height = object.height; - else if (typeof object.height === "object") - message.height = new $util.LongBits(object.height.low >>> 0, object.height.high >>> 0).toNumber(); - if (object.info != null) - message.info = String(object.info); return message; }; /** - * Creates a plain object from a Plan message. Also converts values to other types if specified. + * Creates a plain object from a DepositParams message. Also converts values to other types if specified. * @function toObject - * @memberof cosmos.upgrade.v1beta1.Plan + * @memberof cosmos.gov.v1.DepositParams * @static - * @param {cosmos.upgrade.v1beta1.Plan} message Plan + * @param {cosmos.gov.v1.DepositParams} message DepositParams * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Plan.toObject = function toObject(message, options) { + DepositParams.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.name = ""; - object.time = null; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.height = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.height = options.longs === String ? "0" : 0; - object.info = ""; + if (options.arrays || options.defaults) + object.min_deposit = []; + if (options.defaults) + object.max_deposit_period = null; + if (message.min_deposit && message.min_deposit.length) { + object.min_deposit = []; + for (var j = 0; j < message.min_deposit.length; ++j) + object.min_deposit[j] = $root.cosmos.base.v1beta1.Coin.toObject(message.min_deposit[j], options); } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.time != null && message.hasOwnProperty("time")) - object.time = $root.google.protobuf.Timestamp.toObject(message.time, options); - if (message.height != null && message.hasOwnProperty("height")) - if (typeof message.height === "number") - object.height = options.longs === String ? String(message.height) : message.height; - else - object.height = options.longs === String ? $util.Long.prototype.toString.call(message.height) : options.longs === Number ? new $util.LongBits(message.height.low >>> 0, message.height.high >>> 0).toNumber() : message.height; - if (message.info != null && message.hasOwnProperty("info")) - object.info = message.info; + if (message.max_deposit_period != null && message.hasOwnProperty("max_deposit_period")) + object.max_deposit_period = $root.google.protobuf.Duration.toObject(message.max_deposit_period, options); return object; }; /** - * Converts this Plan to JSON. + * Converts this DepositParams to JSON. * @function toJSON - * @memberof cosmos.upgrade.v1beta1.Plan + * @memberof cosmos.gov.v1.DepositParams * @instance * @returns {Object.} JSON object */ - Plan.prototype.toJSON = function toJSON() { + DepositParams.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Plan; + return DepositParams; })(); - v1beta1.SoftwareUpgradeProposal = (function() { + v1.VotingParams = (function() { /** - * Properties of a SoftwareUpgradeProposal. - * @memberof cosmos.upgrade.v1beta1 - * @interface ISoftwareUpgradeProposal - * @property {string|null} [title] SoftwareUpgradeProposal title - * @property {string|null} [description] SoftwareUpgradeProposal description - * @property {cosmos.upgrade.v1beta1.IPlan|null} [plan] SoftwareUpgradeProposal plan + * Properties of a VotingParams. + * @memberof cosmos.gov.v1 + * @interface IVotingParams + * @property {google.protobuf.IDuration|null} [voting_period] VotingParams voting_period */ /** - * Constructs a new SoftwareUpgradeProposal. - * @memberof cosmos.upgrade.v1beta1 - * @classdesc Represents a SoftwareUpgradeProposal. - * @implements ISoftwareUpgradeProposal + * Constructs a new VotingParams. + * @memberof cosmos.gov.v1 + * @classdesc Represents a VotingParams. + * @implements IVotingParams * @constructor - * @param {cosmos.upgrade.v1beta1.ISoftwareUpgradeProposal=} [properties] Properties to set + * @param {cosmos.gov.v1.IVotingParams=} [properties] Properties to set */ - function SoftwareUpgradeProposal(properties) { + function VotingParams(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -6210,89 +7479,63 @@ } /** - * SoftwareUpgradeProposal title. - * @member {string} title - * @memberof cosmos.upgrade.v1beta1.SoftwareUpgradeProposal - * @instance - */ - SoftwareUpgradeProposal.prototype.title = ""; - - /** - * SoftwareUpgradeProposal description. - * @member {string} description - * @memberof cosmos.upgrade.v1beta1.SoftwareUpgradeProposal - * @instance - */ - SoftwareUpgradeProposal.prototype.description = ""; - - /** - * SoftwareUpgradeProposal plan. - * @member {cosmos.upgrade.v1beta1.IPlan|null|undefined} plan - * @memberof cosmos.upgrade.v1beta1.SoftwareUpgradeProposal + * VotingParams voting_period. + * @member {google.protobuf.IDuration|null|undefined} voting_period + * @memberof cosmos.gov.v1.VotingParams * @instance */ - SoftwareUpgradeProposal.prototype.plan = null; + VotingParams.prototype.voting_period = null; /** - * Encodes the specified SoftwareUpgradeProposal message. Does not implicitly {@link cosmos.upgrade.v1beta1.SoftwareUpgradeProposal.verify|verify} messages. + * Encodes the specified VotingParams message. Does not implicitly {@link cosmos.gov.v1.VotingParams.verify|verify} messages. * @function encode - * @memberof cosmos.upgrade.v1beta1.SoftwareUpgradeProposal + * @memberof cosmos.gov.v1.VotingParams * @static - * @param {cosmos.upgrade.v1beta1.ISoftwareUpgradeProposal} message SoftwareUpgradeProposal message or plain object to encode + * @param {cosmos.gov.v1.IVotingParams} message VotingParams message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SoftwareUpgradeProposal.encode = function encode(message, writer) { + VotingParams.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.title != null && Object.hasOwnProperty.call(message, "title")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.title); - if (message.description != null && Object.hasOwnProperty.call(message, "description")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.description); - if (message.plan != null && Object.hasOwnProperty.call(message, "plan")) - $root.cosmos.upgrade.v1beta1.Plan.encode(message.plan, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.voting_period != null && Object.hasOwnProperty.call(message, "voting_period")) + $root.google.protobuf.Duration.encode(message.voting_period, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified SoftwareUpgradeProposal message, length delimited. Does not implicitly {@link cosmos.upgrade.v1beta1.SoftwareUpgradeProposal.verify|verify} messages. + * Encodes the specified VotingParams message, length delimited. Does not implicitly {@link cosmos.gov.v1.VotingParams.verify|verify} messages. * @function encodeDelimited - * @memberof cosmos.upgrade.v1beta1.SoftwareUpgradeProposal + * @memberof cosmos.gov.v1.VotingParams * @static - * @param {cosmos.upgrade.v1beta1.ISoftwareUpgradeProposal} message SoftwareUpgradeProposal message or plain object to encode + * @param {cosmos.gov.v1.IVotingParams} message VotingParams message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SoftwareUpgradeProposal.encodeDelimited = function encodeDelimited(message, writer) { + VotingParams.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SoftwareUpgradeProposal message from the specified reader or buffer. + * Decodes a VotingParams message from the specified reader or buffer. * @function decode - * @memberof cosmos.upgrade.v1beta1.SoftwareUpgradeProposal + * @memberof cosmos.gov.v1.VotingParams * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {cosmos.upgrade.v1beta1.SoftwareUpgradeProposal} SoftwareUpgradeProposal + * @returns {cosmos.gov.v1.VotingParams} VotingParams * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SoftwareUpgradeProposal.decode = function decode(reader, length) { + VotingParams.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.cosmos.upgrade.v1beta1.SoftwareUpgradeProposal(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.cosmos.gov.v1.VotingParams(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.title = reader.string(); - break; - case 2: - message.description = reader.string(); - break; - case 3: - message.plan = $root.cosmos.upgrade.v1beta1.Plan.decode(reader, reader.uint32()); + message.voting_period = $root.google.protobuf.Duration.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -6303,130 +7546,114 @@ }; /** - * Decodes a SoftwareUpgradeProposal message from the specified reader or buffer, length delimited. + * Decodes a VotingParams message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof cosmos.upgrade.v1beta1.SoftwareUpgradeProposal + * @memberof cosmos.gov.v1.VotingParams * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {cosmos.upgrade.v1beta1.SoftwareUpgradeProposal} SoftwareUpgradeProposal + * @returns {cosmos.gov.v1.VotingParams} VotingParams * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SoftwareUpgradeProposal.decodeDelimited = function decodeDelimited(reader) { + VotingParams.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SoftwareUpgradeProposal message. + * Verifies a VotingParams message. * @function verify - * @memberof cosmos.upgrade.v1beta1.SoftwareUpgradeProposal + * @memberof cosmos.gov.v1.VotingParams * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SoftwareUpgradeProposal.verify = function verify(message) { + VotingParams.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.title != null && message.hasOwnProperty("title")) - if (!$util.isString(message.title)) - return "title: string expected"; - if (message.description != null && message.hasOwnProperty("description")) - if (!$util.isString(message.description)) - return "description: string expected"; - if (message.plan != null && message.hasOwnProperty("plan")) { - var error = $root.cosmos.upgrade.v1beta1.Plan.verify(message.plan); + if (message.voting_period != null && message.hasOwnProperty("voting_period")) { + var error = $root.google.protobuf.Duration.verify(message.voting_period); if (error) - return "plan." + error; + return "voting_period." + error; } return null; }; /** - * Creates a SoftwareUpgradeProposal message from a plain object. Also converts values to their respective internal types. + * Creates a VotingParams message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof cosmos.upgrade.v1beta1.SoftwareUpgradeProposal + * @memberof cosmos.gov.v1.VotingParams * @static * @param {Object.} object Plain object - * @returns {cosmos.upgrade.v1beta1.SoftwareUpgradeProposal} SoftwareUpgradeProposal + * @returns {cosmos.gov.v1.VotingParams} VotingParams */ - SoftwareUpgradeProposal.fromObject = function fromObject(object) { - if (object instanceof $root.cosmos.upgrade.v1beta1.SoftwareUpgradeProposal) + VotingParams.fromObject = function fromObject(object) { + if (object instanceof $root.cosmos.gov.v1.VotingParams) return object; - var message = new $root.cosmos.upgrade.v1beta1.SoftwareUpgradeProposal(); - if (object.title != null) - message.title = String(object.title); - if (object.description != null) - message.description = String(object.description); - if (object.plan != null) { - if (typeof object.plan !== "object") - throw TypeError(".cosmos.upgrade.v1beta1.SoftwareUpgradeProposal.plan: object expected"); - message.plan = $root.cosmos.upgrade.v1beta1.Plan.fromObject(object.plan); + var message = new $root.cosmos.gov.v1.VotingParams(); + if (object.voting_period != null) { + if (typeof object.voting_period !== "object") + throw TypeError(".cosmos.gov.v1.VotingParams.voting_period: object expected"); + message.voting_period = $root.google.protobuf.Duration.fromObject(object.voting_period); } return message; }; /** - * Creates a plain object from a SoftwareUpgradeProposal message. Also converts values to other types if specified. + * Creates a plain object from a VotingParams message. Also converts values to other types if specified. * @function toObject - * @memberof cosmos.upgrade.v1beta1.SoftwareUpgradeProposal + * @memberof cosmos.gov.v1.VotingParams * @static - * @param {cosmos.upgrade.v1beta1.SoftwareUpgradeProposal} message SoftwareUpgradeProposal + * @param {cosmos.gov.v1.VotingParams} message VotingParams * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SoftwareUpgradeProposal.toObject = function toObject(message, options) { + VotingParams.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.title = ""; - object.description = ""; - object.plan = null; - } - if (message.title != null && message.hasOwnProperty("title")) - object.title = message.title; - if (message.description != null && message.hasOwnProperty("description")) - object.description = message.description; - if (message.plan != null && message.hasOwnProperty("plan")) - object.plan = $root.cosmos.upgrade.v1beta1.Plan.toObject(message.plan, options); + if (options.defaults) + object.voting_period = null; + if (message.voting_period != null && message.hasOwnProperty("voting_period")) + object.voting_period = $root.google.protobuf.Duration.toObject(message.voting_period, options); return object; }; /** - * Converts this SoftwareUpgradeProposal to JSON. + * Converts this VotingParams to JSON. * @function toJSON - * @memberof cosmos.upgrade.v1beta1.SoftwareUpgradeProposal + * @memberof cosmos.gov.v1.VotingParams * @instance * @returns {Object.} JSON object */ - SoftwareUpgradeProposal.prototype.toJSON = function toJSON() { + VotingParams.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return SoftwareUpgradeProposal; + return VotingParams; })(); - v1beta1.CancelSoftwareUpgradeProposal = (function() { + v1.TallyParams = (function() { /** - * Properties of a CancelSoftwareUpgradeProposal. - * @memberof cosmos.upgrade.v1beta1 - * @interface ICancelSoftwareUpgradeProposal - * @property {string|null} [title] CancelSoftwareUpgradeProposal title - * @property {string|null} [description] CancelSoftwareUpgradeProposal description + * Properties of a TallyParams. + * @memberof cosmos.gov.v1 + * @interface ITallyParams + * @property {string|null} [quorum] TallyParams quorum + * @property {string|null} [threshold] TallyParams threshold + * @property {string|null} [veto_threshold] TallyParams veto_threshold */ /** - * Constructs a new CancelSoftwareUpgradeProposal. - * @memberof cosmos.upgrade.v1beta1 - * @classdesc Represents a CancelSoftwareUpgradeProposal. - * @implements ICancelSoftwareUpgradeProposal + * Constructs a new TallyParams. + * @memberof cosmos.gov.v1 + * @classdesc Represents a TallyParams. + * @implements ITallyParams * @constructor - * @param {cosmos.upgrade.v1beta1.ICancelSoftwareUpgradeProposal=} [properties] Properties to set + * @param {cosmos.gov.v1.ITallyParams=} [properties] Properties to set */ - function CancelSoftwareUpgradeProposal(properties) { + function TallyParams(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -6434,76 +7661,89 @@ } /** - * CancelSoftwareUpgradeProposal title. - * @member {string} title - * @memberof cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal + * TallyParams quorum. + * @member {string} quorum + * @memberof cosmos.gov.v1.TallyParams * @instance */ - CancelSoftwareUpgradeProposal.prototype.title = ""; + TallyParams.prototype.quorum = ""; /** - * CancelSoftwareUpgradeProposal description. - * @member {string} description - * @memberof cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal + * TallyParams threshold. + * @member {string} threshold + * @memberof cosmos.gov.v1.TallyParams * @instance */ - CancelSoftwareUpgradeProposal.prototype.description = ""; + TallyParams.prototype.threshold = ""; /** - * Encodes the specified CancelSoftwareUpgradeProposal message. Does not implicitly {@link cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal.verify|verify} messages. + * TallyParams veto_threshold. + * @member {string} veto_threshold + * @memberof cosmos.gov.v1.TallyParams + * @instance + */ + TallyParams.prototype.veto_threshold = ""; + + /** + * Encodes the specified TallyParams message. Does not implicitly {@link cosmos.gov.v1.TallyParams.verify|verify} messages. * @function encode - * @memberof cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal + * @memberof cosmos.gov.v1.TallyParams * @static - * @param {cosmos.upgrade.v1beta1.ICancelSoftwareUpgradeProposal} message CancelSoftwareUpgradeProposal message or plain object to encode + * @param {cosmos.gov.v1.ITallyParams} message TallyParams message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CancelSoftwareUpgradeProposal.encode = function encode(message, writer) { + TallyParams.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.title != null && Object.hasOwnProperty.call(message, "title")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.title); - if (message.description != null && Object.hasOwnProperty.call(message, "description")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.description); + if (message.quorum != null && Object.hasOwnProperty.call(message, "quorum")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.quorum); + if (message.threshold != null && Object.hasOwnProperty.call(message, "threshold")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.threshold); + if (message.veto_threshold != null && Object.hasOwnProperty.call(message, "veto_threshold")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.veto_threshold); return writer; }; /** - * Encodes the specified CancelSoftwareUpgradeProposal message, length delimited. Does not implicitly {@link cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal.verify|verify} messages. + * Encodes the specified TallyParams message, length delimited. Does not implicitly {@link cosmos.gov.v1.TallyParams.verify|verify} messages. * @function encodeDelimited - * @memberof cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal + * @memberof cosmos.gov.v1.TallyParams * @static - * @param {cosmos.upgrade.v1beta1.ICancelSoftwareUpgradeProposal} message CancelSoftwareUpgradeProposal message or plain object to encode + * @param {cosmos.gov.v1.ITallyParams} message TallyParams message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CancelSoftwareUpgradeProposal.encodeDelimited = function encodeDelimited(message, writer) { + TallyParams.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CancelSoftwareUpgradeProposal message from the specified reader or buffer. + * Decodes a TallyParams message from the specified reader or buffer. * @function decode - * @memberof cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal + * @memberof cosmos.gov.v1.TallyParams * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal} CancelSoftwareUpgradeProposal + * @returns {cosmos.gov.v1.TallyParams} TallyParams * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CancelSoftwareUpgradeProposal.decode = function decode(reader, length) { + TallyParams.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.cosmos.gov.v1.TallyParams(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.title = reader.string(); + message.quorum = reader.string(); break; case 2: - message.description = reader.string(); + message.threshold = reader.string(); + break; + case 3: + message.veto_threshold = reader.string(); break; default: reader.skipType(tag & 7); @@ -6514,143 +7754,134 @@ }; /** - * Decodes a CancelSoftwareUpgradeProposal message from the specified reader or buffer, length delimited. + * Decodes a TallyParams message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal + * @memberof cosmos.gov.v1.TallyParams * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal} CancelSoftwareUpgradeProposal + * @returns {cosmos.gov.v1.TallyParams} TallyParams * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CancelSoftwareUpgradeProposal.decodeDelimited = function decodeDelimited(reader) { + TallyParams.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CancelSoftwareUpgradeProposal message. + * Verifies a TallyParams message. * @function verify - * @memberof cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal + * @memberof cosmos.gov.v1.TallyParams * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CancelSoftwareUpgradeProposal.verify = function verify(message) { + TallyParams.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.title != null && message.hasOwnProperty("title")) - if (!$util.isString(message.title)) - return "title: string expected"; - if (message.description != null && message.hasOwnProperty("description")) - if (!$util.isString(message.description)) - return "description: string expected"; + if (message.quorum != null && message.hasOwnProperty("quorum")) + if (!$util.isString(message.quorum)) + return "quorum: string expected"; + if (message.threshold != null && message.hasOwnProperty("threshold")) + if (!$util.isString(message.threshold)) + return "threshold: string expected"; + if (message.veto_threshold != null && message.hasOwnProperty("veto_threshold")) + if (!$util.isString(message.veto_threshold)) + return "veto_threshold: string expected"; return null; }; /** - * Creates a CancelSoftwareUpgradeProposal message from a plain object. Also converts values to their respective internal types. + * Creates a TallyParams message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal + * @memberof cosmos.gov.v1.TallyParams * @static * @param {Object.} object Plain object - * @returns {cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal} CancelSoftwareUpgradeProposal + * @returns {cosmos.gov.v1.TallyParams} TallyParams */ - CancelSoftwareUpgradeProposal.fromObject = function fromObject(object) { - if (object instanceof $root.cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal) + TallyParams.fromObject = function fromObject(object) { + if (object instanceof $root.cosmos.gov.v1.TallyParams) return object; - var message = new $root.cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal(); - if (object.title != null) - message.title = String(object.title); - if (object.description != null) - message.description = String(object.description); + var message = new $root.cosmos.gov.v1.TallyParams(); + if (object.quorum != null) + message.quorum = String(object.quorum); + if (object.threshold != null) + message.threshold = String(object.threshold); + if (object.veto_threshold != null) + message.veto_threshold = String(object.veto_threshold); return message; }; /** - * Creates a plain object from a CancelSoftwareUpgradeProposal message. Also converts values to other types if specified. + * Creates a plain object from a TallyParams message. Also converts values to other types if specified. * @function toObject - * @memberof cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal + * @memberof cosmos.gov.v1.TallyParams * @static - * @param {cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal} message CancelSoftwareUpgradeProposal + * @param {cosmos.gov.v1.TallyParams} message TallyParams * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CancelSoftwareUpgradeProposal.toObject = function toObject(message, options) { + TallyParams.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.title = ""; - object.description = ""; + object.quorum = ""; + object.threshold = ""; + object.veto_threshold = ""; } - if (message.title != null && message.hasOwnProperty("title")) - object.title = message.title; - if (message.description != null && message.hasOwnProperty("description")) - object.description = message.description; + if (message.quorum != null && message.hasOwnProperty("quorum")) + object.quorum = message.quorum; + if (message.threshold != null && message.hasOwnProperty("threshold")) + object.threshold = message.threshold; + if (message.veto_threshold != null && message.hasOwnProperty("veto_threshold")) + object.veto_threshold = message.veto_threshold; return object; }; /** - * Converts this CancelSoftwareUpgradeProposal to JSON. + * Converts this TallyParams to JSON. * @function toJSON - * @memberof cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal + * @memberof cosmos.gov.v1.TallyParams * @instance * @returns {Object.} JSON object */ - CancelSoftwareUpgradeProposal.prototype.toJSON = function toJSON() { + TallyParams.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CancelSoftwareUpgradeProposal; + return TallyParams; })(); - return v1beta1; - })(); - - return upgrade; - })(); - - cosmos.auth = (function() { - - /** - * Namespace auth. - * @memberof cosmos - * @namespace - */ - var auth = {}; - - auth.v1beta1 = (function() { - - /** - * Namespace v1beta1. - * @memberof cosmos.auth - * @namespace - */ - var v1beta1 = {}; - - v1beta1.BaseAccount = (function() { + v1.Params = (function() { /** - * Properties of a BaseAccount. - * @memberof cosmos.auth.v1beta1 - * @interface IBaseAccount - * @property {string|null} [address] BaseAccount address - * @property {google.protobuf.IAny|null} [pub_key] BaseAccount pub_key - * @property {Long|null} [account_number] BaseAccount account_number - * @property {Long|null} [sequence] BaseAccount sequence + * Properties of a Params. + * @memberof cosmos.gov.v1 + * @interface IParams + * @property {Array.|null} [min_deposit] Params min_deposit + * @property {google.protobuf.IDuration|null} [max_deposit_period] Params max_deposit_period + * @property {google.protobuf.IDuration|null} [voting_period] Params voting_period + * @property {string|null} [quorum] Params quorum + * @property {string|null} [threshold] Params threshold + * @property {string|null} [veto_threshold] Params veto_threshold + * @property {string|null} [min_initial_deposit_ratio] Params min_initial_deposit_ratio + * @property {boolean|null} [burn_vote_quorum] Params burn_vote_quorum + * @property {boolean|null} [burn_proposal_deposit_prevote] Params burn_proposal_deposit_prevote + * @property {boolean|null} [burn_vote_veto] Params burn_vote_veto */ /** - * Constructs a new BaseAccount. - * @memberof cosmos.auth.v1beta1 - * @classdesc Represents a BaseAccount. - * @implements IBaseAccount + * Constructs a new Params. + * @memberof cosmos.gov.v1 + * @classdesc Represents a Params. + * @implements IParams * @constructor - * @param {cosmos.auth.v1beta1.IBaseAccount=} [properties] Properties to set + * @param {cosmos.gov.v1.IParams=} [properties] Properties to set */ - function BaseAccount(properties) { + function Params(properties) { + this.min_deposit = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -6658,102 +7889,183 @@ } /** - * BaseAccount address. - * @member {string} address - * @memberof cosmos.auth.v1beta1.BaseAccount + * Params min_deposit. + * @member {Array.} min_deposit + * @memberof cosmos.gov.v1.Params * @instance */ - BaseAccount.prototype.address = ""; + Params.prototype.min_deposit = $util.emptyArray; /** - * BaseAccount pub_key. - * @member {google.protobuf.IAny|null|undefined} pub_key - * @memberof cosmos.auth.v1beta1.BaseAccount + * Params max_deposit_period. + * @member {google.protobuf.IDuration|null|undefined} max_deposit_period + * @memberof cosmos.gov.v1.Params * @instance */ - BaseAccount.prototype.pub_key = null; + Params.prototype.max_deposit_period = null; /** - * BaseAccount account_number. - * @member {Long} account_number - * @memberof cosmos.auth.v1beta1.BaseAccount + * Params voting_period. + * @member {google.protobuf.IDuration|null|undefined} voting_period + * @memberof cosmos.gov.v1.Params * @instance */ - BaseAccount.prototype.account_number = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + Params.prototype.voting_period = null; /** - * BaseAccount sequence. - * @member {Long} sequence - * @memberof cosmos.auth.v1beta1.BaseAccount + * Params quorum. + * @member {string} quorum + * @memberof cosmos.gov.v1.Params * @instance */ - BaseAccount.prototype.sequence = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + Params.prototype.quorum = ""; /** - * Encodes the specified BaseAccount message. Does not implicitly {@link cosmos.auth.v1beta1.BaseAccount.verify|verify} messages. + * Params threshold. + * @member {string} threshold + * @memberof cosmos.gov.v1.Params + * @instance + */ + Params.prototype.threshold = ""; + + /** + * Params veto_threshold. + * @member {string} veto_threshold + * @memberof cosmos.gov.v1.Params + * @instance + */ + Params.prototype.veto_threshold = ""; + + /** + * Params min_initial_deposit_ratio. + * @member {string} min_initial_deposit_ratio + * @memberof cosmos.gov.v1.Params + * @instance + */ + Params.prototype.min_initial_deposit_ratio = ""; + + /** + * Params burn_vote_quorum. + * @member {boolean} burn_vote_quorum + * @memberof cosmos.gov.v1.Params + * @instance + */ + Params.prototype.burn_vote_quorum = false; + + /** + * Params burn_proposal_deposit_prevote. + * @member {boolean} burn_proposal_deposit_prevote + * @memberof cosmos.gov.v1.Params + * @instance + */ + Params.prototype.burn_proposal_deposit_prevote = false; + + /** + * Params burn_vote_veto. + * @member {boolean} burn_vote_veto + * @memberof cosmos.gov.v1.Params + * @instance + */ + Params.prototype.burn_vote_veto = false; + + /** + * Encodes the specified Params message. Does not implicitly {@link cosmos.gov.v1.Params.verify|verify} messages. * @function encode - * @memberof cosmos.auth.v1beta1.BaseAccount + * @memberof cosmos.gov.v1.Params * @static - * @param {cosmos.auth.v1beta1.IBaseAccount} message BaseAccount message or plain object to encode + * @param {cosmos.gov.v1.IParams} message Params message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BaseAccount.encode = function encode(message, writer) { + Params.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.address != null && Object.hasOwnProperty.call(message, "address")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.address); - if (message.pub_key != null && Object.hasOwnProperty.call(message, "pub_key")) - $root.google.protobuf.Any.encode(message.pub_key, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.account_number != null && Object.hasOwnProperty.call(message, "account_number")) - writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.account_number); - if (message.sequence != null && Object.hasOwnProperty.call(message, "sequence")) - writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.sequence); + if (message.min_deposit != null && message.min_deposit.length) + for (var i = 0; i < message.min_deposit.length; ++i) + $root.cosmos.base.v1beta1.Coin.encode(message.min_deposit[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.max_deposit_period != null && Object.hasOwnProperty.call(message, "max_deposit_period")) + $root.google.protobuf.Duration.encode(message.max_deposit_period, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.voting_period != null && Object.hasOwnProperty.call(message, "voting_period")) + $root.google.protobuf.Duration.encode(message.voting_period, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.quorum != null && Object.hasOwnProperty.call(message, "quorum")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.quorum); + if (message.threshold != null && Object.hasOwnProperty.call(message, "threshold")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.threshold); + if (message.veto_threshold != null && Object.hasOwnProperty.call(message, "veto_threshold")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.veto_threshold); + if (message.min_initial_deposit_ratio != null && Object.hasOwnProperty.call(message, "min_initial_deposit_ratio")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.min_initial_deposit_ratio); + if (message.burn_vote_quorum != null && Object.hasOwnProperty.call(message, "burn_vote_quorum")) + writer.uint32(/* id 13, wireType 0 =*/104).bool(message.burn_vote_quorum); + if (message.burn_proposal_deposit_prevote != null && Object.hasOwnProperty.call(message, "burn_proposal_deposit_prevote")) + writer.uint32(/* id 14, wireType 0 =*/112).bool(message.burn_proposal_deposit_prevote); + if (message.burn_vote_veto != null && Object.hasOwnProperty.call(message, "burn_vote_veto")) + writer.uint32(/* id 15, wireType 0 =*/120).bool(message.burn_vote_veto); return writer; }; /** - * Encodes the specified BaseAccount message, length delimited. Does not implicitly {@link cosmos.auth.v1beta1.BaseAccount.verify|verify} messages. + * Encodes the specified Params message, length delimited. Does not implicitly {@link cosmos.gov.v1.Params.verify|verify} messages. * @function encodeDelimited - * @memberof cosmos.auth.v1beta1.BaseAccount + * @memberof cosmos.gov.v1.Params * @static - * @param {cosmos.auth.v1beta1.IBaseAccount} message BaseAccount message or plain object to encode + * @param {cosmos.gov.v1.IParams} message Params message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BaseAccount.encodeDelimited = function encodeDelimited(message, writer) { + Params.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BaseAccount message from the specified reader or buffer. + * Decodes a Params message from the specified reader or buffer. * @function decode - * @memberof cosmos.auth.v1beta1.BaseAccount + * @memberof cosmos.gov.v1.Params * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {cosmos.auth.v1beta1.BaseAccount} BaseAccount + * @returns {cosmos.gov.v1.Params} Params * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BaseAccount.decode = function decode(reader, length) { + Params.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.cosmos.auth.v1beta1.BaseAccount(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.cosmos.gov.v1.Params(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.address = reader.string(); + if (!(message.min_deposit && message.min_deposit.length)) + message.min_deposit = []; + message.min_deposit.push($root.cosmos.base.v1beta1.Coin.decode(reader, reader.uint32())); break; case 2: - message.pub_key = $root.google.protobuf.Any.decode(reader, reader.uint32()); + message.max_deposit_period = $root.google.protobuf.Duration.decode(reader, reader.uint32()); break; case 3: - message.account_number = reader.uint64(); + message.voting_period = $root.google.protobuf.Duration.decode(reader, reader.uint32()); break; case 4: - message.sequence = reader.uint64(); + message.quorum = reader.string(); + break; + case 5: + message.threshold = reader.string(); + break; + case 6: + message.veto_threshold = reader.string(); + break; + case 7: + message.min_initial_deposit_ratio = reader.string(); + break; + case 13: + message.burn_vote_quorum = reader.bool(); + break; + case 14: + message.burn_proposal_deposit_prevote = reader.bool(); + break; + case 15: + message.burn_vote_veto = reader.bool(); break; default: reader.skipType(tag & 7); @@ -6764,168 +8076,233 @@ }; /** - * Decodes a BaseAccount message from the specified reader or buffer, length delimited. + * Decodes a Params message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof cosmos.auth.v1beta1.BaseAccount + * @memberof cosmos.gov.v1.Params * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {cosmos.auth.v1beta1.BaseAccount} BaseAccount + * @returns {cosmos.gov.v1.Params} Params * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BaseAccount.decodeDelimited = function decodeDelimited(reader) { + Params.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a BaseAccount message. + * Verifies a Params message. * @function verify - * @memberof cosmos.auth.v1beta1.BaseAccount + * @memberof cosmos.gov.v1.Params * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BaseAccount.verify = function verify(message) { + Params.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.address != null && message.hasOwnProperty("address")) - if (!$util.isString(message.address)) - return "address: string expected"; - if (message.pub_key != null && message.hasOwnProperty("pub_key")) { - var error = $root.google.protobuf.Any.verify(message.pub_key); + if (message.min_deposit != null && message.hasOwnProperty("min_deposit")) { + if (!Array.isArray(message.min_deposit)) + return "min_deposit: array expected"; + for (var i = 0; i < message.min_deposit.length; ++i) { + var error = $root.cosmos.base.v1beta1.Coin.verify(message.min_deposit[i]); + if (error) + return "min_deposit." + error; + } + } + if (message.max_deposit_period != null && message.hasOwnProperty("max_deposit_period")) { + var error = $root.google.protobuf.Duration.verify(message.max_deposit_period); if (error) - return "pub_key." + error; + return "max_deposit_period." + error; } - if (message.account_number != null && message.hasOwnProperty("account_number")) - if (!$util.isInteger(message.account_number) && !(message.account_number && $util.isInteger(message.account_number.low) && $util.isInteger(message.account_number.high))) - return "account_number: integer|Long expected"; - if (message.sequence != null && message.hasOwnProperty("sequence")) - if (!$util.isInteger(message.sequence) && !(message.sequence && $util.isInteger(message.sequence.low) && $util.isInteger(message.sequence.high))) - return "sequence: integer|Long expected"; + if (message.voting_period != null && message.hasOwnProperty("voting_period")) { + var error = $root.google.protobuf.Duration.verify(message.voting_period); + if (error) + return "voting_period." + error; + } + if (message.quorum != null && message.hasOwnProperty("quorum")) + if (!$util.isString(message.quorum)) + return "quorum: string expected"; + if (message.threshold != null && message.hasOwnProperty("threshold")) + if (!$util.isString(message.threshold)) + return "threshold: string expected"; + if (message.veto_threshold != null && message.hasOwnProperty("veto_threshold")) + if (!$util.isString(message.veto_threshold)) + return "veto_threshold: string expected"; + if (message.min_initial_deposit_ratio != null && message.hasOwnProperty("min_initial_deposit_ratio")) + if (!$util.isString(message.min_initial_deposit_ratio)) + return "min_initial_deposit_ratio: string expected"; + if (message.burn_vote_quorum != null && message.hasOwnProperty("burn_vote_quorum")) + if (typeof message.burn_vote_quorum !== "boolean") + return "burn_vote_quorum: boolean expected"; + if (message.burn_proposal_deposit_prevote != null && message.hasOwnProperty("burn_proposal_deposit_prevote")) + if (typeof message.burn_proposal_deposit_prevote !== "boolean") + return "burn_proposal_deposit_prevote: boolean expected"; + if (message.burn_vote_veto != null && message.hasOwnProperty("burn_vote_veto")) + if (typeof message.burn_vote_veto !== "boolean") + return "burn_vote_veto: boolean expected"; return null; }; /** - * Creates a BaseAccount message from a plain object. Also converts values to their respective internal types. + * Creates a Params message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof cosmos.auth.v1beta1.BaseAccount + * @memberof cosmos.gov.v1.Params * @static * @param {Object.} object Plain object - * @returns {cosmos.auth.v1beta1.BaseAccount} BaseAccount + * @returns {cosmos.gov.v1.Params} Params */ - BaseAccount.fromObject = function fromObject(object) { - if (object instanceof $root.cosmos.auth.v1beta1.BaseAccount) + Params.fromObject = function fromObject(object) { + if (object instanceof $root.cosmos.gov.v1.Params) return object; - var message = new $root.cosmos.auth.v1beta1.BaseAccount(); - if (object.address != null) - message.address = String(object.address); - if (object.pub_key != null) { - if (typeof object.pub_key !== "object") - throw TypeError(".cosmos.auth.v1beta1.BaseAccount.pub_key: object expected"); - message.pub_key = $root.google.protobuf.Any.fromObject(object.pub_key); + var message = new $root.cosmos.gov.v1.Params(); + if (object.min_deposit) { + if (!Array.isArray(object.min_deposit)) + throw TypeError(".cosmos.gov.v1.Params.min_deposit: array expected"); + message.min_deposit = []; + for (var i = 0; i < object.min_deposit.length; ++i) { + if (typeof object.min_deposit[i] !== "object") + throw TypeError(".cosmos.gov.v1.Params.min_deposit: object expected"); + message.min_deposit[i] = $root.cosmos.base.v1beta1.Coin.fromObject(object.min_deposit[i]); + } } - if (object.account_number != null) - if ($util.Long) - (message.account_number = $util.Long.fromValue(object.account_number)).unsigned = true; - else if (typeof object.account_number === "string") - message.account_number = parseInt(object.account_number, 10); - else if (typeof object.account_number === "number") - message.account_number = object.account_number; - else if (typeof object.account_number === "object") - message.account_number = new $util.LongBits(object.account_number.low >>> 0, object.account_number.high >>> 0).toNumber(true); - if (object.sequence != null) - if ($util.Long) - (message.sequence = $util.Long.fromValue(object.sequence)).unsigned = true; - else if (typeof object.sequence === "string") - message.sequence = parseInt(object.sequence, 10); - else if (typeof object.sequence === "number") - message.sequence = object.sequence; - else if (typeof object.sequence === "object") - message.sequence = new $util.LongBits(object.sequence.low >>> 0, object.sequence.high >>> 0).toNumber(true); + if (object.max_deposit_period != null) { + if (typeof object.max_deposit_period !== "object") + throw TypeError(".cosmos.gov.v1.Params.max_deposit_period: object expected"); + message.max_deposit_period = $root.google.protobuf.Duration.fromObject(object.max_deposit_period); + } + if (object.voting_period != null) { + if (typeof object.voting_period !== "object") + throw TypeError(".cosmos.gov.v1.Params.voting_period: object expected"); + message.voting_period = $root.google.protobuf.Duration.fromObject(object.voting_period); + } + if (object.quorum != null) + message.quorum = String(object.quorum); + if (object.threshold != null) + message.threshold = String(object.threshold); + if (object.veto_threshold != null) + message.veto_threshold = String(object.veto_threshold); + if (object.min_initial_deposit_ratio != null) + message.min_initial_deposit_ratio = String(object.min_initial_deposit_ratio); + if (object.burn_vote_quorum != null) + message.burn_vote_quorum = Boolean(object.burn_vote_quorum); + if (object.burn_proposal_deposit_prevote != null) + message.burn_proposal_deposit_prevote = Boolean(object.burn_proposal_deposit_prevote); + if (object.burn_vote_veto != null) + message.burn_vote_veto = Boolean(object.burn_vote_veto); return message; }; /** - * Creates a plain object from a BaseAccount message. Also converts values to other types if specified. + * Creates a plain object from a Params message. Also converts values to other types if specified. * @function toObject - * @memberof cosmos.auth.v1beta1.BaseAccount + * @memberof cosmos.gov.v1.Params * @static - * @param {cosmos.auth.v1beta1.BaseAccount} message BaseAccount + * @param {cosmos.gov.v1.Params} message Params * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BaseAccount.toObject = function toObject(message, options) { + Params.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.min_deposit = []; if (options.defaults) { - object.address = ""; - object.pub_key = null; - if ($util.Long) { - var long = new $util.Long(0, 0, true); - object.account_number = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.account_number = options.longs === String ? "0" : 0; - if ($util.Long) { - var long = new $util.Long(0, 0, true); - object.sequence = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.sequence = options.longs === String ? "0" : 0; + object.max_deposit_period = null; + object.voting_period = null; + object.quorum = ""; + object.threshold = ""; + object.veto_threshold = ""; + object.min_initial_deposit_ratio = ""; + object.burn_vote_quorum = false; + object.burn_proposal_deposit_prevote = false; + object.burn_vote_veto = false; } - if (message.address != null && message.hasOwnProperty("address")) - object.address = message.address; - if (message.pub_key != null && message.hasOwnProperty("pub_key")) - object.pub_key = $root.google.protobuf.Any.toObject(message.pub_key, options); - if (message.account_number != null && message.hasOwnProperty("account_number")) - if (typeof message.account_number === "number") - object.account_number = options.longs === String ? String(message.account_number) : message.account_number; - else - object.account_number = options.longs === String ? $util.Long.prototype.toString.call(message.account_number) : options.longs === Number ? new $util.LongBits(message.account_number.low >>> 0, message.account_number.high >>> 0).toNumber(true) : message.account_number; - if (message.sequence != null && message.hasOwnProperty("sequence")) - if (typeof message.sequence === "number") - object.sequence = options.longs === String ? String(message.sequence) : message.sequence; - else - object.sequence = options.longs === String ? $util.Long.prototype.toString.call(message.sequence) : options.longs === Number ? new $util.LongBits(message.sequence.low >>> 0, message.sequence.high >>> 0).toNumber(true) : message.sequence; + if (message.min_deposit && message.min_deposit.length) { + object.min_deposit = []; + for (var j = 0; j < message.min_deposit.length; ++j) + object.min_deposit[j] = $root.cosmos.base.v1beta1.Coin.toObject(message.min_deposit[j], options); + } + if (message.max_deposit_period != null && message.hasOwnProperty("max_deposit_period")) + object.max_deposit_period = $root.google.protobuf.Duration.toObject(message.max_deposit_period, options); + if (message.voting_period != null && message.hasOwnProperty("voting_period")) + object.voting_period = $root.google.protobuf.Duration.toObject(message.voting_period, options); + if (message.quorum != null && message.hasOwnProperty("quorum")) + object.quorum = message.quorum; + if (message.threshold != null && message.hasOwnProperty("threshold")) + object.threshold = message.threshold; + if (message.veto_threshold != null && message.hasOwnProperty("veto_threshold")) + object.veto_threshold = message.veto_threshold; + if (message.min_initial_deposit_ratio != null && message.hasOwnProperty("min_initial_deposit_ratio")) + object.min_initial_deposit_ratio = message.min_initial_deposit_ratio; + if (message.burn_vote_quorum != null && message.hasOwnProperty("burn_vote_quorum")) + object.burn_vote_quorum = message.burn_vote_quorum; + if (message.burn_proposal_deposit_prevote != null && message.hasOwnProperty("burn_proposal_deposit_prevote")) + object.burn_proposal_deposit_prevote = message.burn_proposal_deposit_prevote; + if (message.burn_vote_veto != null && message.hasOwnProperty("burn_vote_veto")) + object.burn_vote_veto = message.burn_vote_veto; return object; }; /** - * Converts this BaseAccount to JSON. + * Converts this Params to JSON. * @function toJSON - * @memberof cosmos.auth.v1beta1.BaseAccount + * @memberof cosmos.gov.v1.Params * @instance * @returns {Object.} JSON object */ - BaseAccount.prototype.toJSON = function toJSON() { + Params.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return BaseAccount; + return Params; })(); - v1beta1.ModuleAccount = (function() { + return v1; + })(); + + return gov; + })(); + + cosmos.base = (function() { + + /** + * Namespace base. + * @memberof cosmos + * @namespace + */ + var base = {}; + + base.v1beta1 = (function() { + + /** + * Namespace v1beta1. + * @memberof cosmos.base + * @namespace + */ + var v1beta1 = {}; + + v1beta1.Coin = (function() { /** - * Properties of a ModuleAccount. - * @memberof cosmos.auth.v1beta1 - * @interface IModuleAccount - * @property {cosmos.auth.v1beta1.IBaseAccount|null} [base_account] ModuleAccount base_account - * @property {string|null} [name] ModuleAccount name - * @property {Array.|null} [permissions] ModuleAccount permissions + * Properties of a Coin. + * @memberof cosmos.base.v1beta1 + * @interface ICoin + * @property {string|null} [denom] Coin denom + * @property {string|null} [amount] Coin amount */ /** - * Constructs a new ModuleAccount. - * @memberof cosmos.auth.v1beta1 - * @classdesc Represents a ModuleAccount. - * @implements IModuleAccount - * @constructor - * @param {cosmos.auth.v1beta1.IModuleAccount=} [properties] Properties to set - */ - function ModuleAccount(properties) { - this.permissions = []; + * Constructs a new Coin. + * @memberof cosmos.base.v1beta1 + * @classdesc Represents a Coin. + * @implements ICoin + * @constructor + * @param {cosmos.base.v1beta1.ICoin=} [properties] Properties to set + */ + function Coin(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -6933,92 +8310,76 @@ } /** - * ModuleAccount base_account. - * @member {cosmos.auth.v1beta1.IBaseAccount|null|undefined} base_account - * @memberof cosmos.auth.v1beta1.ModuleAccount - * @instance - */ - ModuleAccount.prototype.base_account = null; - - /** - * ModuleAccount name. - * @member {string} name - * @memberof cosmos.auth.v1beta1.ModuleAccount + * Coin denom. + * @member {string} denom + * @memberof cosmos.base.v1beta1.Coin * @instance */ - ModuleAccount.prototype.name = ""; + Coin.prototype.denom = ""; /** - * ModuleAccount permissions. - * @member {Array.} permissions - * @memberof cosmos.auth.v1beta1.ModuleAccount + * Coin amount. + * @member {string} amount + * @memberof cosmos.base.v1beta1.Coin * @instance */ - ModuleAccount.prototype.permissions = $util.emptyArray; + Coin.prototype.amount = ""; /** - * Encodes the specified ModuleAccount message. Does not implicitly {@link cosmos.auth.v1beta1.ModuleAccount.verify|verify} messages. + * Encodes the specified Coin message. Does not implicitly {@link cosmos.base.v1beta1.Coin.verify|verify} messages. * @function encode - * @memberof cosmos.auth.v1beta1.ModuleAccount + * @memberof cosmos.base.v1beta1.Coin * @static - * @param {cosmos.auth.v1beta1.IModuleAccount} message ModuleAccount message or plain object to encode + * @param {cosmos.base.v1beta1.ICoin} message Coin message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ModuleAccount.encode = function encode(message, writer) { + Coin.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.base_account != null && Object.hasOwnProperty.call(message, "base_account")) - $root.cosmos.auth.v1beta1.BaseAccount.encode(message.base_account, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.name); - if (message.permissions != null && message.permissions.length) - for (var i = 0; i < message.permissions.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.permissions[i]); + if (message.denom != null && Object.hasOwnProperty.call(message, "denom")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.denom); + if (message.amount != null && Object.hasOwnProperty.call(message, "amount")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.amount); return writer; }; /** - * Encodes the specified ModuleAccount message, length delimited. Does not implicitly {@link cosmos.auth.v1beta1.ModuleAccount.verify|verify} messages. + * Encodes the specified Coin message, length delimited. Does not implicitly {@link cosmos.base.v1beta1.Coin.verify|verify} messages. * @function encodeDelimited - * @memberof cosmos.auth.v1beta1.ModuleAccount + * @memberof cosmos.base.v1beta1.Coin * @static - * @param {cosmos.auth.v1beta1.IModuleAccount} message ModuleAccount message or plain object to encode + * @param {cosmos.base.v1beta1.ICoin} message Coin message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ModuleAccount.encodeDelimited = function encodeDelimited(message, writer) { + Coin.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ModuleAccount message from the specified reader or buffer. + * Decodes a Coin message from the specified reader or buffer. * @function decode - * @memberof cosmos.auth.v1beta1.ModuleAccount + * @memberof cosmos.base.v1beta1.Coin * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {cosmos.auth.v1beta1.ModuleAccount} ModuleAccount + * @returns {cosmos.base.v1beta1.Coin} Coin * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ModuleAccount.decode = function decode(reader, length) { + Coin.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.cosmos.auth.v1beta1.ModuleAccount(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.cosmos.base.v1beta1.Coin(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.base_account = $root.cosmos.auth.v1beta1.BaseAccount.decode(reader, reader.uint32()); + message.denom = reader.string(); break; case 2: - message.name = reader.string(); - break; - case 3: - if (!(message.permissions && message.permissions.length)) - message.permissions = []; - message.permissions.push(reader.string()); + message.amount = reader.string(); break; default: reader.skipType(tag & 7); @@ -7029,146 +8390,117 @@ }; /** - * Decodes a ModuleAccount message from the specified reader or buffer, length delimited. + * Decodes a Coin message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof cosmos.auth.v1beta1.ModuleAccount + * @memberof cosmos.base.v1beta1.Coin * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {cosmos.auth.v1beta1.ModuleAccount} ModuleAccount + * @returns {cosmos.base.v1beta1.Coin} Coin * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ModuleAccount.decodeDelimited = function decodeDelimited(reader) { + Coin.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ModuleAccount message. + * Verifies a Coin message. * @function verify - * @memberof cosmos.auth.v1beta1.ModuleAccount + * @memberof cosmos.base.v1beta1.Coin * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ModuleAccount.verify = function verify(message) { + Coin.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.base_account != null && message.hasOwnProperty("base_account")) { - var error = $root.cosmos.auth.v1beta1.BaseAccount.verify(message.base_account); - if (error) - return "base_account." + error; - } - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.permissions != null && message.hasOwnProperty("permissions")) { - if (!Array.isArray(message.permissions)) - return "permissions: array expected"; - for (var i = 0; i < message.permissions.length; ++i) - if (!$util.isString(message.permissions[i])) - return "permissions: string[] expected"; - } + if (message.denom != null && message.hasOwnProperty("denom")) + if (!$util.isString(message.denom)) + return "denom: string expected"; + if (message.amount != null && message.hasOwnProperty("amount")) + if (!$util.isString(message.amount)) + return "amount: string expected"; return null; }; /** - * Creates a ModuleAccount message from a plain object. Also converts values to their respective internal types. + * Creates a Coin message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof cosmos.auth.v1beta1.ModuleAccount + * @memberof cosmos.base.v1beta1.Coin * @static * @param {Object.} object Plain object - * @returns {cosmos.auth.v1beta1.ModuleAccount} ModuleAccount + * @returns {cosmos.base.v1beta1.Coin} Coin */ - ModuleAccount.fromObject = function fromObject(object) { - if (object instanceof $root.cosmos.auth.v1beta1.ModuleAccount) + Coin.fromObject = function fromObject(object) { + if (object instanceof $root.cosmos.base.v1beta1.Coin) return object; - var message = new $root.cosmos.auth.v1beta1.ModuleAccount(); - if (object.base_account != null) { - if (typeof object.base_account !== "object") - throw TypeError(".cosmos.auth.v1beta1.ModuleAccount.base_account: object expected"); - message.base_account = $root.cosmos.auth.v1beta1.BaseAccount.fromObject(object.base_account); - } - if (object.name != null) - message.name = String(object.name); - if (object.permissions) { - if (!Array.isArray(object.permissions)) - throw TypeError(".cosmos.auth.v1beta1.ModuleAccount.permissions: array expected"); - message.permissions = []; - for (var i = 0; i < object.permissions.length; ++i) - message.permissions[i] = String(object.permissions[i]); - } + var message = new $root.cosmos.base.v1beta1.Coin(); + if (object.denom != null) + message.denom = String(object.denom); + if (object.amount != null) + message.amount = String(object.amount); return message; }; /** - * Creates a plain object from a ModuleAccount message. Also converts values to other types if specified. + * Creates a plain object from a Coin message. Also converts values to other types if specified. * @function toObject - * @memberof cosmos.auth.v1beta1.ModuleAccount + * @memberof cosmos.base.v1beta1.Coin * @static - * @param {cosmos.auth.v1beta1.ModuleAccount} message ModuleAccount + * @param {cosmos.base.v1beta1.Coin} message Coin * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ModuleAccount.toObject = function toObject(message, options) { + Coin.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.permissions = []; if (options.defaults) { - object.base_account = null; - object.name = ""; - } - if (message.base_account != null && message.hasOwnProperty("base_account")) - object.base_account = $root.cosmos.auth.v1beta1.BaseAccount.toObject(message.base_account, options); - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.permissions && message.permissions.length) { - object.permissions = []; - for (var j = 0; j < message.permissions.length; ++j) - object.permissions[j] = message.permissions[j]; + object.denom = ""; + object.amount = ""; } + if (message.denom != null && message.hasOwnProperty("denom")) + object.denom = message.denom; + if (message.amount != null && message.hasOwnProperty("amount")) + object.amount = message.amount; return object; }; /** - * Converts this ModuleAccount to JSON. + * Converts this Coin to JSON. * @function toJSON - * @memberof cosmos.auth.v1beta1.ModuleAccount + * @memberof cosmos.base.v1beta1.Coin * @instance * @returns {Object.} JSON object */ - ModuleAccount.prototype.toJSON = function toJSON() { + Coin.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ModuleAccount; + return Coin; })(); - v1beta1.Params = (function() { + v1beta1.DecCoin = (function() { /** - * Properties of a Params. - * @memberof cosmos.auth.v1beta1 - * @interface IParams - * @property {Long|null} [max_memo_characters] Params max_memo_characters - * @property {Long|null} [tx_sig_limit] Params tx_sig_limit - * @property {Long|null} [tx_size_cost_per_byte] Params tx_size_cost_per_byte - * @property {Long|null} [sig_verify_cost_ed25519] Params sig_verify_cost_ed25519 - * @property {Long|null} [sig_verify_cost_secp256k1] Params sig_verify_cost_secp256k1 + * Properties of a DecCoin. + * @memberof cosmos.base.v1beta1 + * @interface IDecCoin + * @property {string|null} [denom] DecCoin denom + * @property {string|null} [amount] DecCoin amount */ /** - * Constructs a new Params. - * @memberof cosmos.auth.v1beta1 - * @classdesc Represents a Params. - * @implements IParams + * Constructs a new DecCoin. + * @memberof cosmos.base.v1beta1 + * @classdesc Represents a DecCoin. + * @implements IDecCoin * @constructor - * @param {cosmos.auth.v1beta1.IParams=} [properties] Properties to set + * @param {cosmos.base.v1beta1.IDecCoin=} [properties] Properties to set */ - function Params(properties) { + function DecCoin(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -7176,115 +8508,76 @@ } /** - * Params max_memo_characters. - * @member {Long} max_memo_characters - * @memberof cosmos.auth.v1beta1.Params - * @instance - */ - Params.prototype.max_memo_characters = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * Params tx_sig_limit. - * @member {Long} tx_sig_limit - * @memberof cosmos.auth.v1beta1.Params - * @instance - */ - Params.prototype.tx_sig_limit = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * Params tx_size_cost_per_byte. - * @member {Long} tx_size_cost_per_byte - * @memberof cosmos.auth.v1beta1.Params - * @instance - */ - Params.prototype.tx_size_cost_per_byte = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * Params sig_verify_cost_ed25519. - * @member {Long} sig_verify_cost_ed25519 - * @memberof cosmos.auth.v1beta1.Params + * DecCoin denom. + * @member {string} denom + * @memberof cosmos.base.v1beta1.DecCoin * @instance */ - Params.prototype.sig_verify_cost_ed25519 = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + DecCoin.prototype.denom = ""; /** - * Params sig_verify_cost_secp256k1. - * @member {Long} sig_verify_cost_secp256k1 - * @memberof cosmos.auth.v1beta1.Params + * DecCoin amount. + * @member {string} amount + * @memberof cosmos.base.v1beta1.DecCoin * @instance */ - Params.prototype.sig_verify_cost_secp256k1 = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + DecCoin.prototype.amount = ""; /** - * Encodes the specified Params message. Does not implicitly {@link cosmos.auth.v1beta1.Params.verify|verify} messages. + * Encodes the specified DecCoin message. Does not implicitly {@link cosmos.base.v1beta1.DecCoin.verify|verify} messages. * @function encode - * @memberof cosmos.auth.v1beta1.Params + * @memberof cosmos.base.v1beta1.DecCoin * @static - * @param {cosmos.auth.v1beta1.IParams} message Params message or plain object to encode + * @param {cosmos.base.v1beta1.IDecCoin} message DecCoin message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Params.encode = function encode(message, writer) { + DecCoin.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.max_memo_characters != null && Object.hasOwnProperty.call(message, "max_memo_characters")) - writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.max_memo_characters); - if (message.tx_sig_limit != null && Object.hasOwnProperty.call(message, "tx_sig_limit")) - writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.tx_sig_limit); - if (message.tx_size_cost_per_byte != null && Object.hasOwnProperty.call(message, "tx_size_cost_per_byte")) - writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.tx_size_cost_per_byte); - if (message.sig_verify_cost_ed25519 != null && Object.hasOwnProperty.call(message, "sig_verify_cost_ed25519")) - writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.sig_verify_cost_ed25519); - if (message.sig_verify_cost_secp256k1 != null && Object.hasOwnProperty.call(message, "sig_verify_cost_secp256k1")) - writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.sig_verify_cost_secp256k1); + if (message.denom != null && Object.hasOwnProperty.call(message, "denom")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.denom); + if (message.amount != null && Object.hasOwnProperty.call(message, "amount")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.amount); return writer; }; /** - * Encodes the specified Params message, length delimited. Does not implicitly {@link cosmos.auth.v1beta1.Params.verify|verify} messages. + * Encodes the specified DecCoin message, length delimited. Does not implicitly {@link cosmos.base.v1beta1.DecCoin.verify|verify} messages. * @function encodeDelimited - * @memberof cosmos.auth.v1beta1.Params + * @memberof cosmos.base.v1beta1.DecCoin * @static - * @param {cosmos.auth.v1beta1.IParams} message Params message or plain object to encode + * @param {cosmos.base.v1beta1.IDecCoin} message DecCoin message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Params.encodeDelimited = function encodeDelimited(message, writer) { + DecCoin.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Params message from the specified reader or buffer. + * Decodes a DecCoin message from the specified reader or buffer. * @function decode - * @memberof cosmos.auth.v1beta1.Params + * @memberof cosmos.base.v1beta1.DecCoin * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {cosmos.auth.v1beta1.Params} Params + * @returns {cosmos.base.v1beta1.DecCoin} DecCoin * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Params.decode = function decode(reader, length) { + DecCoin.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.cosmos.auth.v1beta1.Params(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.cosmos.base.v1beta1.DecCoin(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.max_memo_characters = reader.uint64(); + message.denom = reader.string(); break; case 2: - message.tx_sig_limit = reader.uint64(); - break; - case 3: - message.tx_size_cost_per_byte = reader.uint64(); - break; - case 4: - message.sig_verify_cost_ed25519 = reader.uint64(); - break; - case 5: - message.sig_verify_cost_secp256k1 = reader.uint64(); + message.amount = reader.string(); break; default: reader.skipType(tag & 7); @@ -7295,1571 +8588,6238 @@ }; /** - * Decodes a Params message from the specified reader or buffer, length delimited. + * Decodes a DecCoin message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof cosmos.auth.v1beta1.Params + * @memberof cosmos.base.v1beta1.DecCoin * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {cosmos.auth.v1beta1.Params} Params + * @returns {cosmos.base.v1beta1.DecCoin} DecCoin * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Params.decodeDelimited = function decodeDelimited(reader) { + DecCoin.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Params message. + * Verifies a DecCoin message. * @function verify - * @memberof cosmos.auth.v1beta1.Params + * @memberof cosmos.base.v1beta1.DecCoin * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Params.verify = function verify(message) { + DecCoin.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.max_memo_characters != null && message.hasOwnProperty("max_memo_characters")) - if (!$util.isInteger(message.max_memo_characters) && !(message.max_memo_characters && $util.isInteger(message.max_memo_characters.low) && $util.isInteger(message.max_memo_characters.high))) - return "max_memo_characters: integer|Long expected"; - if (message.tx_sig_limit != null && message.hasOwnProperty("tx_sig_limit")) - if (!$util.isInteger(message.tx_sig_limit) && !(message.tx_sig_limit && $util.isInteger(message.tx_sig_limit.low) && $util.isInteger(message.tx_sig_limit.high))) - return "tx_sig_limit: integer|Long expected"; - if (message.tx_size_cost_per_byte != null && message.hasOwnProperty("tx_size_cost_per_byte")) - if (!$util.isInteger(message.tx_size_cost_per_byte) && !(message.tx_size_cost_per_byte && $util.isInteger(message.tx_size_cost_per_byte.low) && $util.isInteger(message.tx_size_cost_per_byte.high))) - return "tx_size_cost_per_byte: integer|Long expected"; - if (message.sig_verify_cost_ed25519 != null && message.hasOwnProperty("sig_verify_cost_ed25519")) - if (!$util.isInteger(message.sig_verify_cost_ed25519) && !(message.sig_verify_cost_ed25519 && $util.isInteger(message.sig_verify_cost_ed25519.low) && $util.isInteger(message.sig_verify_cost_ed25519.high))) - return "sig_verify_cost_ed25519: integer|Long expected"; - if (message.sig_verify_cost_secp256k1 != null && message.hasOwnProperty("sig_verify_cost_secp256k1")) - if (!$util.isInteger(message.sig_verify_cost_secp256k1) && !(message.sig_verify_cost_secp256k1 && $util.isInteger(message.sig_verify_cost_secp256k1.low) && $util.isInteger(message.sig_verify_cost_secp256k1.high))) - return "sig_verify_cost_secp256k1: integer|Long expected"; + if (message.denom != null && message.hasOwnProperty("denom")) + if (!$util.isString(message.denom)) + return "denom: string expected"; + if (message.amount != null && message.hasOwnProperty("amount")) + if (!$util.isString(message.amount)) + return "amount: string expected"; return null; }; /** - * Creates a Params message from a plain object. Also converts values to their respective internal types. + * Creates a DecCoin message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof cosmos.auth.v1beta1.Params + * @memberof cosmos.base.v1beta1.DecCoin * @static * @param {Object.} object Plain object - * @returns {cosmos.auth.v1beta1.Params} Params + * @returns {cosmos.base.v1beta1.DecCoin} DecCoin */ - Params.fromObject = function fromObject(object) { - if (object instanceof $root.cosmos.auth.v1beta1.Params) + DecCoin.fromObject = function fromObject(object) { + if (object instanceof $root.cosmos.base.v1beta1.DecCoin) return object; - var message = new $root.cosmos.auth.v1beta1.Params(); - if (object.max_memo_characters != null) - if ($util.Long) - (message.max_memo_characters = $util.Long.fromValue(object.max_memo_characters)).unsigned = true; - else if (typeof object.max_memo_characters === "string") - message.max_memo_characters = parseInt(object.max_memo_characters, 10); - else if (typeof object.max_memo_characters === "number") - message.max_memo_characters = object.max_memo_characters; - else if (typeof object.max_memo_characters === "object") - message.max_memo_characters = new $util.LongBits(object.max_memo_characters.low >>> 0, object.max_memo_characters.high >>> 0).toNumber(true); - if (object.tx_sig_limit != null) - if ($util.Long) - (message.tx_sig_limit = $util.Long.fromValue(object.tx_sig_limit)).unsigned = true; - else if (typeof object.tx_sig_limit === "string") - message.tx_sig_limit = parseInt(object.tx_sig_limit, 10); - else if (typeof object.tx_sig_limit === "number") - message.tx_sig_limit = object.tx_sig_limit; - else if (typeof object.tx_sig_limit === "object") - message.tx_sig_limit = new $util.LongBits(object.tx_sig_limit.low >>> 0, object.tx_sig_limit.high >>> 0).toNumber(true); - if (object.tx_size_cost_per_byte != null) - if ($util.Long) - (message.tx_size_cost_per_byte = $util.Long.fromValue(object.tx_size_cost_per_byte)).unsigned = true; - else if (typeof object.tx_size_cost_per_byte === "string") - message.tx_size_cost_per_byte = parseInt(object.tx_size_cost_per_byte, 10); - else if (typeof object.tx_size_cost_per_byte === "number") - message.tx_size_cost_per_byte = object.tx_size_cost_per_byte; - else if (typeof object.tx_size_cost_per_byte === "object") - message.tx_size_cost_per_byte = new $util.LongBits(object.tx_size_cost_per_byte.low >>> 0, object.tx_size_cost_per_byte.high >>> 0).toNumber(true); - if (object.sig_verify_cost_ed25519 != null) - if ($util.Long) - (message.sig_verify_cost_ed25519 = $util.Long.fromValue(object.sig_verify_cost_ed25519)).unsigned = true; - else if (typeof object.sig_verify_cost_ed25519 === "string") - message.sig_verify_cost_ed25519 = parseInt(object.sig_verify_cost_ed25519, 10); - else if (typeof object.sig_verify_cost_ed25519 === "number") - message.sig_verify_cost_ed25519 = object.sig_verify_cost_ed25519; - else if (typeof object.sig_verify_cost_ed25519 === "object") - message.sig_verify_cost_ed25519 = new $util.LongBits(object.sig_verify_cost_ed25519.low >>> 0, object.sig_verify_cost_ed25519.high >>> 0).toNumber(true); - if (object.sig_verify_cost_secp256k1 != null) - if ($util.Long) - (message.sig_verify_cost_secp256k1 = $util.Long.fromValue(object.sig_verify_cost_secp256k1)).unsigned = true; - else if (typeof object.sig_verify_cost_secp256k1 === "string") - message.sig_verify_cost_secp256k1 = parseInt(object.sig_verify_cost_secp256k1, 10); - else if (typeof object.sig_verify_cost_secp256k1 === "number") - message.sig_verify_cost_secp256k1 = object.sig_verify_cost_secp256k1; - else if (typeof object.sig_verify_cost_secp256k1 === "object") - message.sig_verify_cost_secp256k1 = new $util.LongBits(object.sig_verify_cost_secp256k1.low >>> 0, object.sig_verify_cost_secp256k1.high >>> 0).toNumber(true); + var message = new $root.cosmos.base.v1beta1.DecCoin(); + if (object.denom != null) + message.denom = String(object.denom); + if (object.amount != null) + message.amount = String(object.amount); return message; }; /** - * Creates a plain object from a Params message. Also converts values to other types if specified. + * Creates a plain object from a DecCoin message. Also converts values to other types if specified. * @function toObject - * @memberof cosmos.auth.v1beta1.Params + * @memberof cosmos.base.v1beta1.DecCoin * @static - * @param {cosmos.auth.v1beta1.Params} message Params + * @param {cosmos.base.v1beta1.DecCoin} message DecCoin * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Params.toObject = function toObject(message, options) { + DecCoin.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - if ($util.Long) { - var long = new $util.Long(0, 0, true); - object.max_memo_characters = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.max_memo_characters = options.longs === String ? "0" : 0; - if ($util.Long) { - var long = new $util.Long(0, 0, true); - object.tx_sig_limit = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.tx_sig_limit = options.longs === String ? "0" : 0; - if ($util.Long) { - var long = new $util.Long(0, 0, true); - object.tx_size_cost_per_byte = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.tx_size_cost_per_byte = options.longs === String ? "0" : 0; - if ($util.Long) { - var long = new $util.Long(0, 0, true); - object.sig_verify_cost_ed25519 = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.sig_verify_cost_ed25519 = options.longs === String ? "0" : 0; - if ($util.Long) { - var long = new $util.Long(0, 0, true); - object.sig_verify_cost_secp256k1 = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.sig_verify_cost_secp256k1 = options.longs === String ? "0" : 0; + object.denom = ""; + object.amount = ""; } - if (message.max_memo_characters != null && message.hasOwnProperty("max_memo_characters")) - if (typeof message.max_memo_characters === "number") - object.max_memo_characters = options.longs === String ? String(message.max_memo_characters) : message.max_memo_characters; - else - object.max_memo_characters = options.longs === String ? $util.Long.prototype.toString.call(message.max_memo_characters) : options.longs === Number ? new $util.LongBits(message.max_memo_characters.low >>> 0, message.max_memo_characters.high >>> 0).toNumber(true) : message.max_memo_characters; - if (message.tx_sig_limit != null && message.hasOwnProperty("tx_sig_limit")) - if (typeof message.tx_sig_limit === "number") - object.tx_sig_limit = options.longs === String ? String(message.tx_sig_limit) : message.tx_sig_limit; - else - object.tx_sig_limit = options.longs === String ? $util.Long.prototype.toString.call(message.tx_sig_limit) : options.longs === Number ? new $util.LongBits(message.tx_sig_limit.low >>> 0, message.tx_sig_limit.high >>> 0).toNumber(true) : message.tx_sig_limit; - if (message.tx_size_cost_per_byte != null && message.hasOwnProperty("tx_size_cost_per_byte")) - if (typeof message.tx_size_cost_per_byte === "number") - object.tx_size_cost_per_byte = options.longs === String ? String(message.tx_size_cost_per_byte) : message.tx_size_cost_per_byte; - else - object.tx_size_cost_per_byte = options.longs === String ? $util.Long.prototype.toString.call(message.tx_size_cost_per_byte) : options.longs === Number ? new $util.LongBits(message.tx_size_cost_per_byte.low >>> 0, message.tx_size_cost_per_byte.high >>> 0).toNumber(true) : message.tx_size_cost_per_byte; - if (message.sig_verify_cost_ed25519 != null && message.hasOwnProperty("sig_verify_cost_ed25519")) - if (typeof message.sig_verify_cost_ed25519 === "number") - object.sig_verify_cost_ed25519 = options.longs === String ? String(message.sig_verify_cost_ed25519) : message.sig_verify_cost_ed25519; - else - object.sig_verify_cost_ed25519 = options.longs === String ? $util.Long.prototype.toString.call(message.sig_verify_cost_ed25519) : options.longs === Number ? new $util.LongBits(message.sig_verify_cost_ed25519.low >>> 0, message.sig_verify_cost_ed25519.high >>> 0).toNumber(true) : message.sig_verify_cost_ed25519; - if (message.sig_verify_cost_secp256k1 != null && message.hasOwnProperty("sig_verify_cost_secp256k1")) - if (typeof message.sig_verify_cost_secp256k1 === "number") - object.sig_verify_cost_secp256k1 = options.longs === String ? String(message.sig_verify_cost_secp256k1) : message.sig_verify_cost_secp256k1; - else - object.sig_verify_cost_secp256k1 = options.longs === String ? $util.Long.prototype.toString.call(message.sig_verify_cost_secp256k1) : options.longs === Number ? new $util.LongBits(message.sig_verify_cost_secp256k1.low >>> 0, message.sig_verify_cost_secp256k1.high >>> 0).toNumber(true) : message.sig_verify_cost_secp256k1; + if (message.denom != null && message.hasOwnProperty("denom")) + object.denom = message.denom; + if (message.amount != null && message.hasOwnProperty("amount")) + object.amount = message.amount; return object; }; /** - * Converts this Params to JSON. + * Converts this DecCoin to JSON. * @function toJSON - * @memberof cosmos.auth.v1beta1.Params + * @memberof cosmos.base.v1beta1.DecCoin * @instance * @returns {Object.} JSON object */ - Params.prototype.toJSON = function toJSON() { + DecCoin.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Params; + return DecCoin; })(); - return v1beta1; - })(); - - return auth; - })(); + v1beta1.IntProto = (function() { - return cosmos; - })(); + /** + * Properties of an IntProto. + * @memberof cosmos.base.v1beta1 + * @interface IIntProto + * @property {string|null} [int] IntProto int + */ - $root.gogoproto = (function() { + /** + * Constructs a new IntProto. + * @memberof cosmos.base.v1beta1 + * @classdesc Represents an IntProto. + * @implements IIntProto + * @constructor + * @param {cosmos.base.v1beta1.IIntProto=} [properties] Properties to set + */ + function IntProto(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Namespace gogoproto. - * @exports gogoproto - * @namespace - */ - var gogoproto = {}; + /** + * IntProto int. + * @member {string} int + * @memberof cosmos.base.v1beta1.IntProto + * @instance + */ + IntProto.prototype.int = ""; - return gogoproto; - })(); + /** + * Encodes the specified IntProto message. Does not implicitly {@link cosmos.base.v1beta1.IntProto.verify|verify} messages. + * @function encode + * @memberof cosmos.base.v1beta1.IntProto + * @static + * @param {cosmos.base.v1beta1.IIntProto} message IntProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + IntProto.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.int != null && Object.hasOwnProperty.call(message, "int")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.int); + return writer; + }; - $root.cosmos_proto = (function() { + /** + * Encodes the specified IntProto message, length delimited. Does not implicitly {@link cosmos.base.v1beta1.IntProto.verify|verify} messages. + * @function encodeDelimited + * @memberof cosmos.base.v1beta1.IntProto + * @static + * @param {cosmos.base.v1beta1.IIntProto} message IntProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + IntProto.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Namespace cosmos_proto. - * @exports cosmos_proto - * @namespace - */ - var cosmos_proto = {}; + /** + * Decodes an IntProto message from the specified reader or buffer. + * @function decode + * @memberof cosmos.base.v1beta1.IntProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {cosmos.base.v1beta1.IntProto} IntProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + IntProto.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.cosmos.base.v1beta1.IntProto(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.int = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - return cosmos_proto; - })(); + /** + * Decodes an IntProto message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof cosmos.base.v1beta1.IntProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {cosmos.base.v1beta1.IntProto} IntProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + IntProto.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - $root.google = (function() { + /** + * Verifies an IntProto message. + * @function verify + * @memberof cosmos.base.v1beta1.IntProto + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + IntProto.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.int != null && message.hasOwnProperty("int")) + if (!$util.isString(message.int)) + return "int: string expected"; + return null; + }; - /** - * Namespace google. - * @exports google - * @namespace - */ - var google = {}; + /** + * Creates an IntProto message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof cosmos.base.v1beta1.IntProto + * @static + * @param {Object.} object Plain object + * @returns {cosmos.base.v1beta1.IntProto} IntProto + */ + IntProto.fromObject = function fromObject(object) { + if (object instanceof $root.cosmos.base.v1beta1.IntProto) + return object; + var message = new $root.cosmos.base.v1beta1.IntProto(); + if (object.int != null) + message.int = String(object.int); + return message; + }; - google.protobuf = (function() { + /** + * Creates a plain object from an IntProto message. Also converts values to other types if specified. + * @function toObject + * @memberof cosmos.base.v1beta1.IntProto + * @static + * @param {cosmos.base.v1beta1.IntProto} message IntProto + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + IntProto.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.int = ""; + if (message.int != null && message.hasOwnProperty("int")) + object.int = message.int; + return object; + }; - /** - * Namespace protobuf. - * @memberof google - * @namespace - */ - var protobuf = {}; + /** + * Converts this IntProto to JSON. + * @function toJSON + * @memberof cosmos.base.v1beta1.IntProto + * @instance + * @returns {Object.} JSON object + */ + IntProto.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - protobuf.FileDescriptorSet = (function() { + return IntProto; + })(); - /** - * Properties of a FileDescriptorSet. - * @memberof google.protobuf - * @interface IFileDescriptorSet - * @property {Array.|null} [file] FileDescriptorSet file - */ + v1beta1.DecProto = (function() { - /** - * Constructs a new FileDescriptorSet. - * @memberof google.protobuf - * @classdesc Represents a FileDescriptorSet. - * @implements IFileDescriptorSet - * @constructor - * @param {google.protobuf.IFileDescriptorSet=} [properties] Properties to set - */ - function FileDescriptorSet(properties) { - this.file = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Properties of a DecProto. + * @memberof cosmos.base.v1beta1 + * @interface IDecProto + * @property {string|null} [dec] DecProto dec + */ - /** - * FileDescriptorSet file. - * @member {Array.} file - * @memberof google.protobuf.FileDescriptorSet - * @instance - */ - FileDescriptorSet.prototype.file = $util.emptyArray; + /** + * Constructs a new DecProto. + * @memberof cosmos.base.v1beta1 + * @classdesc Represents a DecProto. + * @implements IDecProto + * @constructor + * @param {cosmos.base.v1beta1.IDecProto=} [properties] Properties to set + */ + function DecProto(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Encodes the specified FileDescriptorSet message. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages. - * @function encode - * @memberof google.protobuf.FileDescriptorSet - * @static - * @param {google.protobuf.IFileDescriptorSet} message FileDescriptorSet message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FileDescriptorSet.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.file != null && message.file.length) - for (var i = 0; i < message.file.length; ++i) - $root.google.protobuf.FileDescriptorProto.encode(message.file[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; + /** + * DecProto dec. + * @member {string} dec + * @memberof cosmos.base.v1beta1.DecProto + * @instance + */ + DecProto.prototype.dec = ""; - /** - * Encodes the specified FileDescriptorSet message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.FileDescriptorSet - * @static - * @param {google.protobuf.IFileDescriptorSet} message FileDescriptorSet message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FileDescriptorSet.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified DecProto message. Does not implicitly {@link cosmos.base.v1beta1.DecProto.verify|verify} messages. + * @function encode + * @memberof cosmos.base.v1beta1.DecProto + * @static + * @param {cosmos.base.v1beta1.IDecProto} message DecProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DecProto.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.dec != null && Object.hasOwnProperty.call(message, "dec")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.dec); + return writer; + }; - /** - * Decodes a FileDescriptorSet message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.FileDescriptorSet - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.FileDescriptorSet} FileDescriptorSet - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FileDescriptorSet.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FileDescriptorSet(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.file && message.file.length)) - message.file = []; - message.file.push($root.google.protobuf.FileDescriptorProto.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; + /** + * Encodes the specified DecProto message, length delimited. Does not implicitly {@link cosmos.base.v1beta1.DecProto.verify|verify} messages. + * @function encodeDelimited + * @memberof cosmos.base.v1beta1.DecProto + * @static + * @param {cosmos.base.v1beta1.IDecProto} message DecProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DecProto.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DecProto message from the specified reader or buffer. + * @function decode + * @memberof cosmos.base.v1beta1.DecProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {cosmos.base.v1beta1.DecProto} DecProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DecProto.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.cosmos.base.v1beta1.DecProto(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.dec = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } } - } - return message; - }; + return message; + }; - /** - * Decodes a FileDescriptorSet message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.FileDescriptorSet - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.FileDescriptorSet} FileDescriptorSet - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FileDescriptorSet.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a DecProto message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof cosmos.base.v1beta1.DecProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {cosmos.base.v1beta1.DecProto} DecProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DecProto.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies a FileDescriptorSet message. - * @function verify - * @memberof google.protobuf.FileDescriptorSet - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - FileDescriptorSet.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.file != null && message.hasOwnProperty("file")) { - if (!Array.isArray(message.file)) - return "file: array expected"; - for (var i = 0; i < message.file.length; ++i) { - var error = $root.google.protobuf.FileDescriptorProto.verify(message.file[i]); - if (error) - return "file." + error; - } - } - return null; - }; + /** + * Verifies a DecProto message. + * @function verify + * @memberof cosmos.base.v1beta1.DecProto + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DecProto.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.dec != null && message.hasOwnProperty("dec")) + if (!$util.isString(message.dec)) + return "dec: string expected"; + return null; + }; - /** - * Creates a FileDescriptorSet message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.FileDescriptorSet - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.FileDescriptorSet} FileDescriptorSet - */ - FileDescriptorSet.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.FileDescriptorSet) + /** + * Creates a DecProto message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof cosmos.base.v1beta1.DecProto + * @static + * @param {Object.} object Plain object + * @returns {cosmos.base.v1beta1.DecProto} DecProto + */ + DecProto.fromObject = function fromObject(object) { + if (object instanceof $root.cosmos.base.v1beta1.DecProto) + return object; + var message = new $root.cosmos.base.v1beta1.DecProto(); + if (object.dec != null) + message.dec = String(object.dec); + return message; + }; + + /** + * Creates a plain object from a DecProto message. Also converts values to other types if specified. + * @function toObject + * @memberof cosmos.base.v1beta1.DecProto + * @static + * @param {cosmos.base.v1beta1.DecProto} message DecProto + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DecProto.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.dec = ""; + if (message.dec != null && message.hasOwnProperty("dec")) + object.dec = message.dec; return object; - var message = new $root.google.protobuf.FileDescriptorSet(); - if (object.file) { - if (!Array.isArray(object.file)) - throw TypeError(".google.protobuf.FileDescriptorSet.file: array expected"); - message.file = []; - for (var i = 0; i < object.file.length; ++i) { - if (typeof object.file[i] !== "object") - throw TypeError(".google.protobuf.FileDescriptorSet.file: object expected"); - message.file[i] = $root.google.protobuf.FileDescriptorProto.fromObject(object.file[i]); - } - } - return message; - }; + }; - /** - * Creates a plain object from a FileDescriptorSet message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.FileDescriptorSet - * @static - * @param {google.protobuf.FileDescriptorSet} message FileDescriptorSet - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - FileDescriptorSet.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.file = []; - if (message.file && message.file.length) { - object.file = []; - for (var j = 0; j < message.file.length; ++j) - object.file[j] = $root.google.protobuf.FileDescriptorProto.toObject(message.file[j], options); - } - return object; - }; + /** + * Converts this DecProto to JSON. + * @function toJSON + * @memberof cosmos.base.v1beta1.DecProto + * @instance + * @returns {Object.} JSON object + */ + DecProto.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Converts this FileDescriptorSet to JSON. - * @function toJSON - * @memberof google.protobuf.FileDescriptorSet - * @instance - * @returns {Object.} JSON object - */ - FileDescriptorSet.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + return DecProto; + })(); - return FileDescriptorSet; + return v1beta1; })(); - protobuf.FileDescriptorProto = (function() { + base.query = (function() { /** - * Properties of a FileDescriptorProto. - * @memberof google.protobuf - * @interface IFileDescriptorProto - * @property {string|null} [name] FileDescriptorProto name - * @property {string|null} ["package"] FileDescriptorProto package - * @property {Array.|null} [dependency] FileDescriptorProto dependency - * @property {Array.|null} [public_dependency] FileDescriptorProto public_dependency - * @property {Array.|null} [weak_dependency] FileDescriptorProto weak_dependency - * @property {Array.|null} [message_type] FileDescriptorProto message_type - * @property {Array.|null} [enum_type] FileDescriptorProto enum_type - * @property {Array.|null} [service] FileDescriptorProto service - * @property {Array.|null} [extension] FileDescriptorProto extension - * @property {google.protobuf.IFileOptions|null} [options] FileDescriptorProto options - * @property {google.protobuf.ISourceCodeInfo|null} [source_code_info] FileDescriptorProto source_code_info - * @property {string|null} [syntax] FileDescriptorProto syntax - */ - - /** - * Constructs a new FileDescriptorProto. - * @memberof google.protobuf - * @classdesc Represents a FileDescriptorProto. - * @implements IFileDescriptorProto - * @constructor - * @param {google.protobuf.IFileDescriptorProto=} [properties] Properties to set + * Namespace query. + * @memberof cosmos.base + * @namespace */ - function FileDescriptorProto(properties) { - this.dependency = []; - this.public_dependency = []; - this.weak_dependency = []; - this.message_type = []; - this.enum_type = []; - this.service = []; - this.extension = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + var query = {}; - /** - * FileDescriptorProto name. - * @member {string} name - * @memberof google.protobuf.FileDescriptorProto - * @instance - */ - FileDescriptorProto.prototype.name = ""; + query.v1beta1 = (function() { - /** - * FileDescriptorProto package. - * @member {string} package - * @memberof google.protobuf.FileDescriptorProto - * @instance - */ - FileDescriptorProto.prototype["package"] = ""; + /** + * Namespace v1beta1. + * @memberof cosmos.base.query + * @namespace + */ + var v1beta1 = {}; - /** - * FileDescriptorProto dependency. - * @member {Array.} dependency - * @memberof google.protobuf.FileDescriptorProto - * @instance - */ - FileDescriptorProto.prototype.dependency = $util.emptyArray; + v1beta1.PageRequest = (function() { - /** - * FileDescriptorProto public_dependency. - * @member {Array.} public_dependency - * @memberof google.protobuf.FileDescriptorProto - * @instance - */ - FileDescriptorProto.prototype.public_dependency = $util.emptyArray; + /** + * Properties of a PageRequest. + * @memberof cosmos.base.query.v1beta1 + * @interface IPageRequest + * @property {Uint8Array|null} [key] PageRequest key + * @property {Long|null} [offset] PageRequest offset + * @property {Long|null} [limit] PageRequest limit + * @property {boolean|null} [count_total] PageRequest count_total + * @property {boolean|null} [reverse] PageRequest reverse + */ - /** - * FileDescriptorProto weak_dependency. - * @member {Array.} weak_dependency - * @memberof google.protobuf.FileDescriptorProto - * @instance - */ - FileDescriptorProto.prototype.weak_dependency = $util.emptyArray; + /** + * Constructs a new PageRequest. + * @memberof cosmos.base.query.v1beta1 + * @classdesc Represents a PageRequest. + * @implements IPageRequest + * @constructor + * @param {cosmos.base.query.v1beta1.IPageRequest=} [properties] Properties to set + */ + function PageRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * FileDescriptorProto message_type. - * @member {Array.} message_type - * @memberof google.protobuf.FileDescriptorProto - * @instance - */ - FileDescriptorProto.prototype.message_type = $util.emptyArray; + /** + * PageRequest key. + * @member {Uint8Array} key + * @memberof cosmos.base.query.v1beta1.PageRequest + * @instance + */ + PageRequest.prototype.key = $util.newBuffer([]); - /** - * FileDescriptorProto enum_type. - * @member {Array.} enum_type - * @memberof google.protobuf.FileDescriptorProto - * @instance - */ - FileDescriptorProto.prototype.enum_type = $util.emptyArray; + /** + * PageRequest offset. + * @member {Long} offset + * @memberof cosmos.base.query.v1beta1.PageRequest + * @instance + */ + PageRequest.prototype.offset = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - /** - * FileDescriptorProto service. - * @member {Array.} service - * @memberof google.protobuf.FileDescriptorProto - * @instance - */ - FileDescriptorProto.prototype.service = $util.emptyArray; + /** + * PageRequest limit. + * @member {Long} limit + * @memberof cosmos.base.query.v1beta1.PageRequest + * @instance + */ + PageRequest.prototype.limit = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - /** - * FileDescriptorProto extension. - * @member {Array.} extension - * @memberof google.protobuf.FileDescriptorProto - * @instance - */ - FileDescriptorProto.prototype.extension = $util.emptyArray; + /** + * PageRequest count_total. + * @member {boolean} count_total + * @memberof cosmos.base.query.v1beta1.PageRequest + * @instance + */ + PageRequest.prototype.count_total = false; - /** - * FileDescriptorProto options. - * @member {google.protobuf.IFileOptions|null|undefined} options - * @memberof google.protobuf.FileDescriptorProto - * @instance - */ - FileDescriptorProto.prototype.options = null; + /** + * PageRequest reverse. + * @member {boolean} reverse + * @memberof cosmos.base.query.v1beta1.PageRequest + * @instance + */ + PageRequest.prototype.reverse = false; - /** - * FileDescriptorProto source_code_info. - * @member {google.protobuf.ISourceCodeInfo|null|undefined} source_code_info - * @memberof google.protobuf.FileDescriptorProto - * @instance - */ - FileDescriptorProto.prototype.source_code_info = null; + /** + * Encodes the specified PageRequest message. Does not implicitly {@link cosmos.base.query.v1beta1.PageRequest.verify|verify} messages. + * @function encode + * @memberof cosmos.base.query.v1beta1.PageRequest + * @static + * @param {cosmos.base.query.v1beta1.IPageRequest} message PageRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PageRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.key != null && Object.hasOwnProperty.call(message, "key")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.key); + if (message.offset != null && Object.hasOwnProperty.call(message, "offset")) + writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.offset); + if (message.limit != null && Object.hasOwnProperty.call(message, "limit")) + writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.limit); + if (message.count_total != null && Object.hasOwnProperty.call(message, "count_total")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.count_total); + if (message.reverse != null && Object.hasOwnProperty.call(message, "reverse")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.reverse); + return writer; + }; - /** - * FileDescriptorProto syntax. - * @member {string} syntax - * @memberof google.protobuf.FileDescriptorProto - * @instance - */ - FileDescriptorProto.prototype.syntax = ""; + /** + * Encodes the specified PageRequest message, length delimited. Does not implicitly {@link cosmos.base.query.v1beta1.PageRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof cosmos.base.query.v1beta1.PageRequest + * @static + * @param {cosmos.base.query.v1beta1.IPageRequest} message PageRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PageRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Encodes the specified FileDescriptorProto message. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages. - * @function encode - * @memberof google.protobuf.FileDescriptorProto - * @static - * @param {google.protobuf.IFileDescriptorProto} message FileDescriptorProto message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FileDescriptorProto.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message["package"] != null && Object.hasOwnProperty.call(message, "package")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message["package"]); - if (message.dependency != null && message.dependency.length) - for (var i = 0; i < message.dependency.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.dependency[i]); - if (message.message_type != null && message.message_type.length) - for (var i = 0; i < message.message_type.length; ++i) - $root.google.protobuf.DescriptorProto.encode(message.message_type[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.enum_type != null && message.enum_type.length) - for (var i = 0; i < message.enum_type.length; ++i) - $root.google.protobuf.EnumDescriptorProto.encode(message.enum_type[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.service != null && message.service.length) - for (var i = 0; i < message.service.length; ++i) - $root.google.protobuf.ServiceDescriptorProto.encode(message.service[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.extension != null && message.extension.length) - for (var i = 0; i < message.extension.length; ++i) - $root.google.protobuf.FieldDescriptorProto.encode(message.extension[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.options != null && Object.hasOwnProperty.call(message, "options")) - $root.google.protobuf.FileOptions.encode(message.options, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.source_code_info != null && Object.hasOwnProperty.call(message, "source_code_info")) - $root.google.protobuf.SourceCodeInfo.encode(message.source_code_info, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - if (message.public_dependency != null && message.public_dependency.length) - for (var i = 0; i < message.public_dependency.length; ++i) - writer.uint32(/* id 10, wireType 0 =*/80).int32(message.public_dependency[i]); - if (message.weak_dependency != null && message.weak_dependency.length) - for (var i = 0; i < message.weak_dependency.length; ++i) - writer.uint32(/* id 11, wireType 0 =*/88).int32(message.weak_dependency[i]); - if (message.syntax != null && Object.hasOwnProperty.call(message, "syntax")) - writer.uint32(/* id 12, wireType 2 =*/98).string(message.syntax); - return writer; - }; + /** + * Decodes a PageRequest message from the specified reader or buffer. + * @function decode + * @memberof cosmos.base.query.v1beta1.PageRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {cosmos.base.query.v1beta1.PageRequest} PageRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PageRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.cosmos.base.query.v1beta1.PageRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.key = reader.bytes(); + break; + case 2: + message.offset = reader.uint64(); + break; + case 3: + message.limit = reader.uint64(); + break; + case 4: + message.count_total = reader.bool(); + break; + case 5: + message.reverse = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Encodes the specified FileDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.FileDescriptorProto - * @static - * @param {google.protobuf.IFileDescriptorProto} message FileDescriptorProto message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FileDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Decodes a PageRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof cosmos.base.query.v1beta1.PageRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {cosmos.base.query.v1beta1.PageRequest} PageRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PageRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Decodes a FileDescriptorProto message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.FileDescriptorProto - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.FileDescriptorProto} FileDescriptorProto - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FileDescriptorProto.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FileDescriptorProto(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message["package"] = reader.string(); - break; - case 3: - if (!(message.dependency && message.dependency.length)) - message.dependency = []; - message.dependency.push(reader.string()); - break; - case 10: - if (!(message.public_dependency && message.public_dependency.length)) - message.public_dependency = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.public_dependency.push(reader.int32()); - } else - message.public_dependency.push(reader.int32()); - break; - case 11: - if (!(message.weak_dependency && message.weak_dependency.length)) - message.weak_dependency = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.weak_dependency.push(reader.int32()); - } else - message.weak_dependency.push(reader.int32()); - break; - case 4: - if (!(message.message_type && message.message_type.length)) - message.message_type = []; - message.message_type.push($root.google.protobuf.DescriptorProto.decode(reader, reader.uint32())); - break; - case 5: - if (!(message.enum_type && message.enum_type.length)) - message.enum_type = []; - message.enum_type.push($root.google.protobuf.EnumDescriptorProto.decode(reader, reader.uint32())); - break; - case 6: - if (!(message.service && message.service.length)) - message.service = []; - message.service.push($root.google.protobuf.ServiceDescriptorProto.decode(reader, reader.uint32())); - break; - case 7: - if (!(message.extension && message.extension.length)) - message.extension = []; - message.extension.push($root.google.protobuf.FieldDescriptorProto.decode(reader, reader.uint32())); - break; - case 8: - message.options = $root.google.protobuf.FileOptions.decode(reader, reader.uint32()); - break; - case 9: - message.source_code_info = $root.google.protobuf.SourceCodeInfo.decode(reader, reader.uint32()); - break; - case 12: - message.syntax = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Verifies a PageRequest message. + * @function verify + * @memberof cosmos.base.query.v1beta1.PageRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + PageRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.key != null && message.hasOwnProperty("key")) + if (!(message.key && typeof message.key.length === "number" || $util.isString(message.key))) + return "key: buffer expected"; + if (message.offset != null && message.hasOwnProperty("offset")) + if (!$util.isInteger(message.offset) && !(message.offset && $util.isInteger(message.offset.low) && $util.isInteger(message.offset.high))) + return "offset: integer|Long expected"; + if (message.limit != null && message.hasOwnProperty("limit")) + if (!$util.isInteger(message.limit) && !(message.limit && $util.isInteger(message.limit.low) && $util.isInteger(message.limit.high))) + return "limit: integer|Long expected"; + if (message.count_total != null && message.hasOwnProperty("count_total")) + if (typeof message.count_total !== "boolean") + return "count_total: boolean expected"; + if (message.reverse != null && message.hasOwnProperty("reverse")) + if (typeof message.reverse !== "boolean") + return "reverse: boolean expected"; + return null; + }; - /** - * Decodes a FileDescriptorProto message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.FileDescriptorProto - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.FileDescriptorProto} FileDescriptorProto - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FileDescriptorProto.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Creates a PageRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof cosmos.base.query.v1beta1.PageRequest + * @static + * @param {Object.} object Plain object + * @returns {cosmos.base.query.v1beta1.PageRequest} PageRequest + */ + PageRequest.fromObject = function fromObject(object) { + if (object instanceof $root.cosmos.base.query.v1beta1.PageRequest) + return object; + var message = new $root.cosmos.base.query.v1beta1.PageRequest(); + if (object.key != null) + if (typeof object.key === "string") + $util.base64.decode(object.key, message.key = $util.newBuffer($util.base64.length(object.key)), 0); + else if (object.key.length) + message.key = object.key; + if (object.offset != null) + if ($util.Long) + (message.offset = $util.Long.fromValue(object.offset)).unsigned = true; + else if (typeof object.offset === "string") + message.offset = parseInt(object.offset, 10); + else if (typeof object.offset === "number") + message.offset = object.offset; + else if (typeof object.offset === "object") + message.offset = new $util.LongBits(object.offset.low >>> 0, object.offset.high >>> 0).toNumber(true); + if (object.limit != null) + if ($util.Long) + (message.limit = $util.Long.fromValue(object.limit)).unsigned = true; + else if (typeof object.limit === "string") + message.limit = parseInt(object.limit, 10); + else if (typeof object.limit === "number") + message.limit = object.limit; + else if (typeof object.limit === "object") + message.limit = new $util.LongBits(object.limit.low >>> 0, object.limit.high >>> 0).toNumber(true); + if (object.count_total != null) + message.count_total = Boolean(object.count_total); + if (object.reverse != null) + message.reverse = Boolean(object.reverse); + return message; + }; - /** - * Verifies a FileDescriptorProto message. - * @function verify - * @memberof google.protobuf.FileDescriptorProto - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - FileDescriptorProto.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message["package"] != null && message.hasOwnProperty("package")) - if (!$util.isString(message["package"])) - return "package: string expected"; - if (message.dependency != null && message.hasOwnProperty("dependency")) { - if (!Array.isArray(message.dependency)) - return "dependency: array expected"; - for (var i = 0; i < message.dependency.length; ++i) - if (!$util.isString(message.dependency[i])) - return "dependency: string[] expected"; - } - if (message.public_dependency != null && message.hasOwnProperty("public_dependency")) { - if (!Array.isArray(message.public_dependency)) - return "public_dependency: array expected"; - for (var i = 0; i < message.public_dependency.length; ++i) - if (!$util.isInteger(message.public_dependency[i])) - return "public_dependency: integer[] expected"; + /** + * Creates a plain object from a PageRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof cosmos.base.query.v1beta1.PageRequest + * @static + * @param {cosmos.base.query.v1beta1.PageRequest} message PageRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + PageRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + if (options.bytes === String) + object.key = ""; + else { + object.key = []; + if (options.bytes !== Array) + object.key = $util.newBuffer(object.key); + } + if ($util.Long) { + var long = new $util.Long(0, 0, true); + object.offset = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.offset = options.longs === String ? "0" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, true); + object.limit = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.limit = options.longs === String ? "0" : 0; + object.count_total = false; + object.reverse = false; + } + if (message.key != null && message.hasOwnProperty("key")) + object.key = options.bytes === String ? $util.base64.encode(message.key, 0, message.key.length) : options.bytes === Array ? Array.prototype.slice.call(message.key) : message.key; + if (message.offset != null && message.hasOwnProperty("offset")) + if (typeof message.offset === "number") + object.offset = options.longs === String ? String(message.offset) : message.offset; + else + object.offset = options.longs === String ? $util.Long.prototype.toString.call(message.offset) : options.longs === Number ? new $util.LongBits(message.offset.low >>> 0, message.offset.high >>> 0).toNumber(true) : message.offset; + if (message.limit != null && message.hasOwnProperty("limit")) + if (typeof message.limit === "number") + object.limit = options.longs === String ? String(message.limit) : message.limit; + else + object.limit = options.longs === String ? $util.Long.prototype.toString.call(message.limit) : options.longs === Number ? new $util.LongBits(message.limit.low >>> 0, message.limit.high >>> 0).toNumber(true) : message.limit; + if (message.count_total != null && message.hasOwnProperty("count_total")) + object.count_total = message.count_total; + if (message.reverse != null && message.hasOwnProperty("reverse")) + object.reverse = message.reverse; + return object; + }; + + /** + * Converts this PageRequest to JSON. + * @function toJSON + * @memberof cosmos.base.query.v1beta1.PageRequest + * @instance + * @returns {Object.} JSON object + */ + PageRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return PageRequest; + })(); + + v1beta1.PageResponse = (function() { + + /** + * Properties of a PageResponse. + * @memberof cosmos.base.query.v1beta1 + * @interface IPageResponse + * @property {Uint8Array|null} [next_key] PageResponse next_key + * @property {Long|null} [total] PageResponse total + */ + + /** + * Constructs a new PageResponse. + * @memberof cosmos.base.query.v1beta1 + * @classdesc Represents a PageResponse. + * @implements IPageResponse + * @constructor + * @param {cosmos.base.query.v1beta1.IPageResponse=} [properties] Properties to set + */ + function PageResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * PageResponse next_key. + * @member {Uint8Array} next_key + * @memberof cosmos.base.query.v1beta1.PageResponse + * @instance + */ + PageResponse.prototype.next_key = $util.newBuffer([]); + + /** + * PageResponse total. + * @member {Long} total + * @memberof cosmos.base.query.v1beta1.PageResponse + * @instance + */ + PageResponse.prototype.total = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + + /** + * Encodes the specified PageResponse message. Does not implicitly {@link cosmos.base.query.v1beta1.PageResponse.verify|verify} messages. + * @function encode + * @memberof cosmos.base.query.v1beta1.PageResponse + * @static + * @param {cosmos.base.query.v1beta1.IPageResponse} message PageResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PageResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.next_key != null && Object.hasOwnProperty.call(message, "next_key")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.next_key); + if (message.total != null && Object.hasOwnProperty.call(message, "total")) + writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.total); + return writer; + }; + + /** + * Encodes the specified PageResponse message, length delimited. Does not implicitly {@link cosmos.base.query.v1beta1.PageResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof cosmos.base.query.v1beta1.PageResponse + * @static + * @param {cosmos.base.query.v1beta1.IPageResponse} message PageResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PageResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a PageResponse message from the specified reader or buffer. + * @function decode + * @memberof cosmos.base.query.v1beta1.PageResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {cosmos.base.query.v1beta1.PageResponse} PageResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PageResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.cosmos.base.query.v1beta1.PageResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.next_key = reader.bytes(); + break; + case 2: + message.total = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a PageResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof cosmos.base.query.v1beta1.PageResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {cosmos.base.query.v1beta1.PageResponse} PageResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PageResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a PageResponse message. + * @function verify + * @memberof cosmos.base.query.v1beta1.PageResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + PageResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.next_key != null && message.hasOwnProperty("next_key")) + if (!(message.next_key && typeof message.next_key.length === "number" || $util.isString(message.next_key))) + return "next_key: buffer expected"; + if (message.total != null && message.hasOwnProperty("total")) + if (!$util.isInteger(message.total) && !(message.total && $util.isInteger(message.total.low) && $util.isInteger(message.total.high))) + return "total: integer|Long expected"; + return null; + }; + + /** + * Creates a PageResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof cosmos.base.query.v1beta1.PageResponse + * @static + * @param {Object.} object Plain object + * @returns {cosmos.base.query.v1beta1.PageResponse} PageResponse + */ + PageResponse.fromObject = function fromObject(object) { + if (object instanceof $root.cosmos.base.query.v1beta1.PageResponse) + return object; + var message = new $root.cosmos.base.query.v1beta1.PageResponse(); + if (object.next_key != null) + if (typeof object.next_key === "string") + $util.base64.decode(object.next_key, message.next_key = $util.newBuffer($util.base64.length(object.next_key)), 0); + else if (object.next_key.length) + message.next_key = object.next_key; + if (object.total != null) + if ($util.Long) + (message.total = $util.Long.fromValue(object.total)).unsigned = true; + else if (typeof object.total === "string") + message.total = parseInt(object.total, 10); + else if (typeof object.total === "number") + message.total = object.total; + else if (typeof object.total === "object") + message.total = new $util.LongBits(object.total.low >>> 0, object.total.high >>> 0).toNumber(true); + return message; + }; + + /** + * Creates a plain object from a PageResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof cosmos.base.query.v1beta1.PageResponse + * @static + * @param {cosmos.base.query.v1beta1.PageResponse} message PageResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + PageResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + if (options.bytes === String) + object.next_key = ""; + else { + object.next_key = []; + if (options.bytes !== Array) + object.next_key = $util.newBuffer(object.next_key); + } + if ($util.Long) { + var long = new $util.Long(0, 0, true); + object.total = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.total = options.longs === String ? "0" : 0; + } + if (message.next_key != null && message.hasOwnProperty("next_key")) + object.next_key = options.bytes === String ? $util.base64.encode(message.next_key, 0, message.next_key.length) : options.bytes === Array ? Array.prototype.slice.call(message.next_key) : message.next_key; + if (message.total != null && message.hasOwnProperty("total")) + if (typeof message.total === "number") + object.total = options.longs === String ? String(message.total) : message.total; + else + object.total = options.longs === String ? $util.Long.prototype.toString.call(message.total) : options.longs === Number ? new $util.LongBits(message.total.low >>> 0, message.total.high >>> 0).toNumber(true) : message.total; + return object; + }; + + /** + * Converts this PageResponse to JSON. + * @function toJSON + * @memberof cosmos.base.query.v1beta1.PageResponse + * @instance + * @returns {Object.} JSON object + */ + PageResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return PageResponse; + })(); + + return v1beta1; + })(); + + return query; + })(); + + return base; + })(); + + cosmos.upgrade = (function() { + + /** + * Namespace upgrade. + * @memberof cosmos + * @namespace + */ + var upgrade = {}; + + upgrade.v1beta1 = (function() { + + /** + * Namespace v1beta1. + * @memberof cosmos.upgrade + * @namespace + */ + var v1beta1 = {}; + + v1beta1.Plan = (function() { + + /** + * Properties of a Plan. + * @memberof cosmos.upgrade.v1beta1 + * @interface IPlan + * @property {string|null} [name] Plan name + * @property {google.protobuf.ITimestamp|null} [time] Plan time + * @property {Long|null} [height] Plan height + * @property {string|null} [info] Plan info + * @property {google.protobuf.IAny|null} [upgraded_client_state] Plan upgraded_client_state + */ + + /** + * Constructs a new Plan. + * @memberof cosmos.upgrade.v1beta1 + * @classdesc Represents a Plan. + * @implements IPlan + * @constructor + * @param {cosmos.upgrade.v1beta1.IPlan=} [properties] Properties to set + */ + function Plan(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Plan name. + * @member {string} name + * @memberof cosmos.upgrade.v1beta1.Plan + * @instance + */ + Plan.prototype.name = ""; + + /** + * Plan time. + * @member {google.protobuf.ITimestamp|null|undefined} time + * @memberof cosmos.upgrade.v1beta1.Plan + * @instance + */ + Plan.prototype.time = null; + + /** + * Plan height. + * @member {Long} height + * @memberof cosmos.upgrade.v1beta1.Plan + * @instance + */ + Plan.prototype.height = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Plan info. + * @member {string} info + * @memberof cosmos.upgrade.v1beta1.Plan + * @instance + */ + Plan.prototype.info = ""; + + /** + * Plan upgraded_client_state. + * @member {google.protobuf.IAny|null|undefined} upgraded_client_state + * @memberof cosmos.upgrade.v1beta1.Plan + * @instance + */ + Plan.prototype.upgraded_client_state = null; + + /** + * Encodes the specified Plan message. Does not implicitly {@link cosmos.upgrade.v1beta1.Plan.verify|verify} messages. + * @function encode + * @memberof cosmos.upgrade.v1beta1.Plan + * @static + * @param {cosmos.upgrade.v1beta1.IPlan} message Plan message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Plan.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.time != null && Object.hasOwnProperty.call(message, "time")) + $root.google.protobuf.Timestamp.encode(message.time, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.height != null && Object.hasOwnProperty.call(message, "height")) + writer.uint32(/* id 3, wireType 0 =*/24).int64(message.height); + if (message.info != null && Object.hasOwnProperty.call(message, "info")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.info); + if (message.upgraded_client_state != null && Object.hasOwnProperty.call(message, "upgraded_client_state")) + $root.google.protobuf.Any.encode(message.upgraded_client_state, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified Plan message, length delimited. Does not implicitly {@link cosmos.upgrade.v1beta1.Plan.verify|verify} messages. + * @function encodeDelimited + * @memberof cosmos.upgrade.v1beta1.Plan + * @static + * @param {cosmos.upgrade.v1beta1.IPlan} message Plan message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Plan.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Plan message from the specified reader or buffer. + * @function decode + * @memberof cosmos.upgrade.v1beta1.Plan + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {cosmos.upgrade.v1beta1.Plan} Plan + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Plan.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.cosmos.upgrade.v1beta1.Plan(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.time = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 3: + message.height = reader.int64(); + break; + case 4: + message.info = reader.string(); + break; + case 5: + message.upgraded_client_state = $root.google.protobuf.Any.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Plan message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof cosmos.upgrade.v1beta1.Plan + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {cosmos.upgrade.v1beta1.Plan} Plan + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Plan.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Plan message. + * @function verify + * @memberof cosmos.upgrade.v1beta1.Plan + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Plan.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.time != null && message.hasOwnProperty("time")) { + var error = $root.google.protobuf.Timestamp.verify(message.time); + if (error) + return "time." + error; + } + if (message.height != null && message.hasOwnProperty("height")) + if (!$util.isInteger(message.height) && !(message.height && $util.isInteger(message.height.low) && $util.isInteger(message.height.high))) + return "height: integer|Long expected"; + if (message.info != null && message.hasOwnProperty("info")) + if (!$util.isString(message.info)) + return "info: string expected"; + if (message.upgraded_client_state != null && message.hasOwnProperty("upgraded_client_state")) { + var error = $root.google.protobuf.Any.verify(message.upgraded_client_state); + if (error) + return "upgraded_client_state." + error; + } + return null; + }; + + /** + * Creates a Plan message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof cosmos.upgrade.v1beta1.Plan + * @static + * @param {Object.} object Plain object + * @returns {cosmos.upgrade.v1beta1.Plan} Plan + */ + Plan.fromObject = function fromObject(object) { + if (object instanceof $root.cosmos.upgrade.v1beta1.Plan) + return object; + var message = new $root.cosmos.upgrade.v1beta1.Plan(); + if (object.name != null) + message.name = String(object.name); + if (object.time != null) { + if (typeof object.time !== "object") + throw TypeError(".cosmos.upgrade.v1beta1.Plan.time: object expected"); + message.time = $root.google.protobuf.Timestamp.fromObject(object.time); + } + if (object.height != null) + if ($util.Long) + (message.height = $util.Long.fromValue(object.height)).unsigned = false; + else if (typeof object.height === "string") + message.height = parseInt(object.height, 10); + else if (typeof object.height === "number") + message.height = object.height; + else if (typeof object.height === "object") + message.height = new $util.LongBits(object.height.low >>> 0, object.height.high >>> 0).toNumber(); + if (object.info != null) + message.info = String(object.info); + if (object.upgraded_client_state != null) { + if (typeof object.upgraded_client_state !== "object") + throw TypeError(".cosmos.upgrade.v1beta1.Plan.upgraded_client_state: object expected"); + message.upgraded_client_state = $root.google.protobuf.Any.fromObject(object.upgraded_client_state); + } + return message; + }; + + /** + * Creates a plain object from a Plan message. Also converts values to other types if specified. + * @function toObject + * @memberof cosmos.upgrade.v1beta1.Plan + * @static + * @param {cosmos.upgrade.v1beta1.Plan} message Plan + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Plan.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.time = null; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.height = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.height = options.longs === String ? "0" : 0; + object.info = ""; + object.upgraded_client_state = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.time != null && message.hasOwnProperty("time")) + object.time = $root.google.protobuf.Timestamp.toObject(message.time, options); + if (message.height != null && message.hasOwnProperty("height")) + if (typeof message.height === "number") + object.height = options.longs === String ? String(message.height) : message.height; + else + object.height = options.longs === String ? $util.Long.prototype.toString.call(message.height) : options.longs === Number ? new $util.LongBits(message.height.low >>> 0, message.height.high >>> 0).toNumber() : message.height; + if (message.info != null && message.hasOwnProperty("info")) + object.info = message.info; + if (message.upgraded_client_state != null && message.hasOwnProperty("upgraded_client_state")) + object.upgraded_client_state = $root.google.protobuf.Any.toObject(message.upgraded_client_state, options); + return object; + }; + + /** + * Converts this Plan to JSON. + * @function toJSON + * @memberof cosmos.upgrade.v1beta1.Plan + * @instance + * @returns {Object.} JSON object + */ + Plan.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return Plan; + })(); + + v1beta1.SoftwareUpgradeProposal = (function() { + + /** + * Properties of a SoftwareUpgradeProposal. + * @memberof cosmos.upgrade.v1beta1 + * @interface ISoftwareUpgradeProposal + * @property {string|null} [title] SoftwareUpgradeProposal title + * @property {string|null} [description] SoftwareUpgradeProposal description + * @property {cosmos.upgrade.v1beta1.IPlan|null} [plan] SoftwareUpgradeProposal plan + */ + + /** + * Constructs a new SoftwareUpgradeProposal. + * @memberof cosmos.upgrade.v1beta1 + * @classdesc Represents a SoftwareUpgradeProposal. + * @implements ISoftwareUpgradeProposal + * @constructor + * @param {cosmos.upgrade.v1beta1.ISoftwareUpgradeProposal=} [properties] Properties to set + */ + function SoftwareUpgradeProposal(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * SoftwareUpgradeProposal title. + * @member {string} title + * @memberof cosmos.upgrade.v1beta1.SoftwareUpgradeProposal + * @instance + */ + SoftwareUpgradeProposal.prototype.title = ""; + + /** + * SoftwareUpgradeProposal description. + * @member {string} description + * @memberof cosmos.upgrade.v1beta1.SoftwareUpgradeProposal + * @instance + */ + SoftwareUpgradeProposal.prototype.description = ""; + + /** + * SoftwareUpgradeProposal plan. + * @member {cosmos.upgrade.v1beta1.IPlan|null|undefined} plan + * @memberof cosmos.upgrade.v1beta1.SoftwareUpgradeProposal + * @instance + */ + SoftwareUpgradeProposal.prototype.plan = null; + + /** + * Encodes the specified SoftwareUpgradeProposal message. Does not implicitly {@link cosmos.upgrade.v1beta1.SoftwareUpgradeProposal.verify|verify} messages. + * @function encode + * @memberof cosmos.upgrade.v1beta1.SoftwareUpgradeProposal + * @static + * @param {cosmos.upgrade.v1beta1.ISoftwareUpgradeProposal} message SoftwareUpgradeProposal message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SoftwareUpgradeProposal.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.title != null && Object.hasOwnProperty.call(message, "title")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.title); + if (message.description != null && Object.hasOwnProperty.call(message, "description")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.description); + if (message.plan != null && Object.hasOwnProperty.call(message, "plan")) + $root.cosmos.upgrade.v1beta1.Plan.encode(message.plan, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified SoftwareUpgradeProposal message, length delimited. Does not implicitly {@link cosmos.upgrade.v1beta1.SoftwareUpgradeProposal.verify|verify} messages. + * @function encodeDelimited + * @memberof cosmos.upgrade.v1beta1.SoftwareUpgradeProposal + * @static + * @param {cosmos.upgrade.v1beta1.ISoftwareUpgradeProposal} message SoftwareUpgradeProposal message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SoftwareUpgradeProposal.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SoftwareUpgradeProposal message from the specified reader or buffer. + * @function decode + * @memberof cosmos.upgrade.v1beta1.SoftwareUpgradeProposal + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {cosmos.upgrade.v1beta1.SoftwareUpgradeProposal} SoftwareUpgradeProposal + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SoftwareUpgradeProposal.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.cosmos.upgrade.v1beta1.SoftwareUpgradeProposal(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.title = reader.string(); + break; + case 2: + message.description = reader.string(); + break; + case 3: + message.plan = $root.cosmos.upgrade.v1beta1.Plan.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SoftwareUpgradeProposal message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof cosmos.upgrade.v1beta1.SoftwareUpgradeProposal + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {cosmos.upgrade.v1beta1.SoftwareUpgradeProposal} SoftwareUpgradeProposal + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SoftwareUpgradeProposal.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SoftwareUpgradeProposal message. + * @function verify + * @memberof cosmos.upgrade.v1beta1.SoftwareUpgradeProposal + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SoftwareUpgradeProposal.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.title != null && message.hasOwnProperty("title")) + if (!$util.isString(message.title)) + return "title: string expected"; + if (message.description != null && message.hasOwnProperty("description")) + if (!$util.isString(message.description)) + return "description: string expected"; + if (message.plan != null && message.hasOwnProperty("plan")) { + var error = $root.cosmos.upgrade.v1beta1.Plan.verify(message.plan); + if (error) + return "plan." + error; + } + return null; + }; + + /** + * Creates a SoftwareUpgradeProposal message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof cosmos.upgrade.v1beta1.SoftwareUpgradeProposal + * @static + * @param {Object.} object Plain object + * @returns {cosmos.upgrade.v1beta1.SoftwareUpgradeProposal} SoftwareUpgradeProposal + */ + SoftwareUpgradeProposal.fromObject = function fromObject(object) { + if (object instanceof $root.cosmos.upgrade.v1beta1.SoftwareUpgradeProposal) + return object; + var message = new $root.cosmos.upgrade.v1beta1.SoftwareUpgradeProposal(); + if (object.title != null) + message.title = String(object.title); + if (object.description != null) + message.description = String(object.description); + if (object.plan != null) { + if (typeof object.plan !== "object") + throw TypeError(".cosmos.upgrade.v1beta1.SoftwareUpgradeProposal.plan: object expected"); + message.plan = $root.cosmos.upgrade.v1beta1.Plan.fromObject(object.plan); + } + return message; + }; + + /** + * Creates a plain object from a SoftwareUpgradeProposal message. Also converts values to other types if specified. + * @function toObject + * @memberof cosmos.upgrade.v1beta1.SoftwareUpgradeProposal + * @static + * @param {cosmos.upgrade.v1beta1.SoftwareUpgradeProposal} message SoftwareUpgradeProposal + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SoftwareUpgradeProposal.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.title = ""; + object.description = ""; + object.plan = null; + } + if (message.title != null && message.hasOwnProperty("title")) + object.title = message.title; + if (message.description != null && message.hasOwnProperty("description")) + object.description = message.description; + if (message.plan != null && message.hasOwnProperty("plan")) + object.plan = $root.cosmos.upgrade.v1beta1.Plan.toObject(message.plan, options); + return object; + }; + + /** + * Converts this SoftwareUpgradeProposal to JSON. + * @function toJSON + * @memberof cosmos.upgrade.v1beta1.SoftwareUpgradeProposal + * @instance + * @returns {Object.} JSON object + */ + SoftwareUpgradeProposal.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return SoftwareUpgradeProposal; + })(); + + v1beta1.CancelSoftwareUpgradeProposal = (function() { + + /** + * Properties of a CancelSoftwareUpgradeProposal. + * @memberof cosmos.upgrade.v1beta1 + * @interface ICancelSoftwareUpgradeProposal + * @property {string|null} [title] CancelSoftwareUpgradeProposal title + * @property {string|null} [description] CancelSoftwareUpgradeProposal description + */ + + /** + * Constructs a new CancelSoftwareUpgradeProposal. + * @memberof cosmos.upgrade.v1beta1 + * @classdesc Represents a CancelSoftwareUpgradeProposal. + * @implements ICancelSoftwareUpgradeProposal + * @constructor + * @param {cosmos.upgrade.v1beta1.ICancelSoftwareUpgradeProposal=} [properties] Properties to set + */ + function CancelSoftwareUpgradeProposal(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * CancelSoftwareUpgradeProposal title. + * @member {string} title + * @memberof cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal + * @instance + */ + CancelSoftwareUpgradeProposal.prototype.title = ""; + + /** + * CancelSoftwareUpgradeProposal description. + * @member {string} description + * @memberof cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal + * @instance + */ + CancelSoftwareUpgradeProposal.prototype.description = ""; + + /** + * Encodes the specified CancelSoftwareUpgradeProposal message. Does not implicitly {@link cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal.verify|verify} messages. + * @function encode + * @memberof cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal + * @static + * @param {cosmos.upgrade.v1beta1.ICancelSoftwareUpgradeProposal} message CancelSoftwareUpgradeProposal message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CancelSoftwareUpgradeProposal.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.title != null && Object.hasOwnProperty.call(message, "title")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.title); + if (message.description != null && Object.hasOwnProperty.call(message, "description")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.description); + return writer; + }; + + /** + * Encodes the specified CancelSoftwareUpgradeProposal message, length delimited. Does not implicitly {@link cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal.verify|verify} messages. + * @function encodeDelimited + * @memberof cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal + * @static + * @param {cosmos.upgrade.v1beta1.ICancelSoftwareUpgradeProposal} message CancelSoftwareUpgradeProposal message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CancelSoftwareUpgradeProposal.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CancelSoftwareUpgradeProposal message from the specified reader or buffer. + * @function decode + * @memberof cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal} CancelSoftwareUpgradeProposal + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CancelSoftwareUpgradeProposal.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.title = reader.string(); + break; + case 2: + message.description = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CancelSoftwareUpgradeProposal message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal} CancelSoftwareUpgradeProposal + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CancelSoftwareUpgradeProposal.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CancelSoftwareUpgradeProposal message. + * @function verify + * @memberof cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CancelSoftwareUpgradeProposal.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.title != null && message.hasOwnProperty("title")) + if (!$util.isString(message.title)) + return "title: string expected"; + if (message.description != null && message.hasOwnProperty("description")) + if (!$util.isString(message.description)) + return "description: string expected"; + return null; + }; + + /** + * Creates a CancelSoftwareUpgradeProposal message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal + * @static + * @param {Object.} object Plain object + * @returns {cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal} CancelSoftwareUpgradeProposal + */ + CancelSoftwareUpgradeProposal.fromObject = function fromObject(object) { + if (object instanceof $root.cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal) + return object; + var message = new $root.cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal(); + if (object.title != null) + message.title = String(object.title); + if (object.description != null) + message.description = String(object.description); + return message; + }; + + /** + * Creates a plain object from a CancelSoftwareUpgradeProposal message. Also converts values to other types if specified. + * @function toObject + * @memberof cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal + * @static + * @param {cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal} message CancelSoftwareUpgradeProposal + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CancelSoftwareUpgradeProposal.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.title = ""; + object.description = ""; + } + if (message.title != null && message.hasOwnProperty("title")) + object.title = message.title; + if (message.description != null && message.hasOwnProperty("description")) + object.description = message.description; + return object; + }; + + /** + * Converts this CancelSoftwareUpgradeProposal to JSON. + * @function toJSON + * @memberof cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal + * @instance + * @returns {Object.} JSON object + */ + CancelSoftwareUpgradeProposal.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return CancelSoftwareUpgradeProposal; + })(); + + v1beta1.ModuleVersion = (function() { + + /** + * Properties of a ModuleVersion. + * @memberof cosmos.upgrade.v1beta1 + * @interface IModuleVersion + * @property {string|null} [name] ModuleVersion name + * @property {Long|null} [version] ModuleVersion version + */ + + /** + * Constructs a new ModuleVersion. + * @memberof cosmos.upgrade.v1beta1 + * @classdesc Represents a ModuleVersion. + * @implements IModuleVersion + * @constructor + * @param {cosmos.upgrade.v1beta1.IModuleVersion=} [properties] Properties to set + */ + function ModuleVersion(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ModuleVersion name. + * @member {string} name + * @memberof cosmos.upgrade.v1beta1.ModuleVersion + * @instance + */ + ModuleVersion.prototype.name = ""; + + /** + * ModuleVersion version. + * @member {Long} version + * @memberof cosmos.upgrade.v1beta1.ModuleVersion + * @instance + */ + ModuleVersion.prototype.version = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + + /** + * Encodes the specified ModuleVersion message. Does not implicitly {@link cosmos.upgrade.v1beta1.ModuleVersion.verify|verify} messages. + * @function encode + * @memberof cosmos.upgrade.v1beta1.ModuleVersion + * @static + * @param {cosmos.upgrade.v1beta1.IModuleVersion} message ModuleVersion message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ModuleVersion.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.version != null && Object.hasOwnProperty.call(message, "version")) + writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.version); + return writer; + }; + + /** + * Encodes the specified ModuleVersion message, length delimited. Does not implicitly {@link cosmos.upgrade.v1beta1.ModuleVersion.verify|verify} messages. + * @function encodeDelimited + * @memberof cosmos.upgrade.v1beta1.ModuleVersion + * @static + * @param {cosmos.upgrade.v1beta1.IModuleVersion} message ModuleVersion message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ModuleVersion.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ModuleVersion message from the specified reader or buffer. + * @function decode + * @memberof cosmos.upgrade.v1beta1.ModuleVersion + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {cosmos.upgrade.v1beta1.ModuleVersion} ModuleVersion + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ModuleVersion.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.cosmos.upgrade.v1beta1.ModuleVersion(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.version = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ModuleVersion message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof cosmos.upgrade.v1beta1.ModuleVersion + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {cosmos.upgrade.v1beta1.ModuleVersion} ModuleVersion + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ModuleVersion.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ModuleVersion message. + * @function verify + * @memberof cosmos.upgrade.v1beta1.ModuleVersion + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ModuleVersion.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.version != null && message.hasOwnProperty("version")) + if (!$util.isInteger(message.version) && !(message.version && $util.isInteger(message.version.low) && $util.isInteger(message.version.high))) + return "version: integer|Long expected"; + return null; + }; + + /** + * Creates a ModuleVersion message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof cosmos.upgrade.v1beta1.ModuleVersion + * @static + * @param {Object.} object Plain object + * @returns {cosmos.upgrade.v1beta1.ModuleVersion} ModuleVersion + */ + ModuleVersion.fromObject = function fromObject(object) { + if (object instanceof $root.cosmos.upgrade.v1beta1.ModuleVersion) + return object; + var message = new $root.cosmos.upgrade.v1beta1.ModuleVersion(); + if (object.name != null) + message.name = String(object.name); + if (object.version != null) + if ($util.Long) + (message.version = $util.Long.fromValue(object.version)).unsigned = true; + else if (typeof object.version === "string") + message.version = parseInt(object.version, 10); + else if (typeof object.version === "number") + message.version = object.version; + else if (typeof object.version === "object") + message.version = new $util.LongBits(object.version.low >>> 0, object.version.high >>> 0).toNumber(true); + return message; + }; + + /** + * Creates a plain object from a ModuleVersion message. Also converts values to other types if specified. + * @function toObject + * @memberof cosmos.upgrade.v1beta1.ModuleVersion + * @static + * @param {cosmos.upgrade.v1beta1.ModuleVersion} message ModuleVersion + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ModuleVersion.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + if ($util.Long) { + var long = new $util.Long(0, 0, true); + object.version = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.version = options.longs === String ? "0" : 0; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.version != null && message.hasOwnProperty("version")) + if (typeof message.version === "number") + object.version = options.longs === String ? String(message.version) : message.version; + else + object.version = options.longs === String ? $util.Long.prototype.toString.call(message.version) : options.longs === Number ? new $util.LongBits(message.version.low >>> 0, message.version.high >>> 0).toNumber(true) : message.version; + return object; + }; + + /** + * Converts this ModuleVersion to JSON. + * @function toJSON + * @memberof cosmos.upgrade.v1beta1.ModuleVersion + * @instance + * @returns {Object.} JSON object + */ + ModuleVersion.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ModuleVersion; + })(); + + return v1beta1; + })(); + + return upgrade; + })(); + + cosmos.auth = (function() { + + /** + * Namespace auth. + * @memberof cosmos + * @namespace + */ + var auth = {}; + + auth.v1beta1 = (function() { + + /** + * Namespace v1beta1. + * @memberof cosmos.auth + * @namespace + */ + var v1beta1 = {}; + + v1beta1.BaseAccount = (function() { + + /** + * Properties of a BaseAccount. + * @memberof cosmos.auth.v1beta1 + * @interface IBaseAccount + * @property {string|null} [address] BaseAccount address + * @property {google.protobuf.IAny|null} [pub_key] BaseAccount pub_key + * @property {Long|null} [account_number] BaseAccount account_number + * @property {Long|null} [sequence] BaseAccount sequence + */ + + /** + * Constructs a new BaseAccount. + * @memberof cosmos.auth.v1beta1 + * @classdesc Represents a BaseAccount. + * @implements IBaseAccount + * @constructor + * @param {cosmos.auth.v1beta1.IBaseAccount=} [properties] Properties to set + */ + function BaseAccount(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * BaseAccount address. + * @member {string} address + * @memberof cosmos.auth.v1beta1.BaseAccount + * @instance + */ + BaseAccount.prototype.address = ""; + + /** + * BaseAccount pub_key. + * @member {google.protobuf.IAny|null|undefined} pub_key + * @memberof cosmos.auth.v1beta1.BaseAccount + * @instance + */ + BaseAccount.prototype.pub_key = null; + + /** + * BaseAccount account_number. + * @member {Long} account_number + * @memberof cosmos.auth.v1beta1.BaseAccount + * @instance + */ + BaseAccount.prototype.account_number = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + + /** + * BaseAccount sequence. + * @member {Long} sequence + * @memberof cosmos.auth.v1beta1.BaseAccount + * @instance + */ + BaseAccount.prototype.sequence = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + + /** + * Encodes the specified BaseAccount message. Does not implicitly {@link cosmos.auth.v1beta1.BaseAccount.verify|verify} messages. + * @function encode + * @memberof cosmos.auth.v1beta1.BaseAccount + * @static + * @param {cosmos.auth.v1beta1.IBaseAccount} message BaseAccount message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BaseAccount.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.address != null && Object.hasOwnProperty.call(message, "address")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.address); + if (message.pub_key != null && Object.hasOwnProperty.call(message, "pub_key")) + $root.google.protobuf.Any.encode(message.pub_key, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.account_number != null && Object.hasOwnProperty.call(message, "account_number")) + writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.account_number); + if (message.sequence != null && Object.hasOwnProperty.call(message, "sequence")) + writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.sequence); + return writer; + }; + + /** + * Encodes the specified BaseAccount message, length delimited. Does not implicitly {@link cosmos.auth.v1beta1.BaseAccount.verify|verify} messages. + * @function encodeDelimited + * @memberof cosmos.auth.v1beta1.BaseAccount + * @static + * @param {cosmos.auth.v1beta1.IBaseAccount} message BaseAccount message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BaseAccount.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a BaseAccount message from the specified reader or buffer. + * @function decode + * @memberof cosmos.auth.v1beta1.BaseAccount + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {cosmos.auth.v1beta1.BaseAccount} BaseAccount + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BaseAccount.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.cosmos.auth.v1beta1.BaseAccount(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.address = reader.string(); + break; + case 2: + message.pub_key = $root.google.protobuf.Any.decode(reader, reader.uint32()); + break; + case 3: + message.account_number = reader.uint64(); + break; + case 4: + message.sequence = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a BaseAccount message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof cosmos.auth.v1beta1.BaseAccount + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {cosmos.auth.v1beta1.BaseAccount} BaseAccount + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BaseAccount.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a BaseAccount message. + * @function verify + * @memberof cosmos.auth.v1beta1.BaseAccount + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + BaseAccount.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.address != null && message.hasOwnProperty("address")) + if (!$util.isString(message.address)) + return "address: string expected"; + if (message.pub_key != null && message.hasOwnProperty("pub_key")) { + var error = $root.google.protobuf.Any.verify(message.pub_key); + if (error) + return "pub_key." + error; + } + if (message.account_number != null && message.hasOwnProperty("account_number")) + if (!$util.isInteger(message.account_number) && !(message.account_number && $util.isInteger(message.account_number.low) && $util.isInteger(message.account_number.high))) + return "account_number: integer|Long expected"; + if (message.sequence != null && message.hasOwnProperty("sequence")) + if (!$util.isInteger(message.sequence) && !(message.sequence && $util.isInteger(message.sequence.low) && $util.isInteger(message.sequence.high))) + return "sequence: integer|Long expected"; + return null; + }; + + /** + * Creates a BaseAccount message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof cosmos.auth.v1beta1.BaseAccount + * @static + * @param {Object.} object Plain object + * @returns {cosmos.auth.v1beta1.BaseAccount} BaseAccount + */ + BaseAccount.fromObject = function fromObject(object) { + if (object instanceof $root.cosmos.auth.v1beta1.BaseAccount) + return object; + var message = new $root.cosmos.auth.v1beta1.BaseAccount(); + if (object.address != null) + message.address = String(object.address); + if (object.pub_key != null) { + if (typeof object.pub_key !== "object") + throw TypeError(".cosmos.auth.v1beta1.BaseAccount.pub_key: object expected"); + message.pub_key = $root.google.protobuf.Any.fromObject(object.pub_key); + } + if (object.account_number != null) + if ($util.Long) + (message.account_number = $util.Long.fromValue(object.account_number)).unsigned = true; + else if (typeof object.account_number === "string") + message.account_number = parseInt(object.account_number, 10); + else if (typeof object.account_number === "number") + message.account_number = object.account_number; + else if (typeof object.account_number === "object") + message.account_number = new $util.LongBits(object.account_number.low >>> 0, object.account_number.high >>> 0).toNumber(true); + if (object.sequence != null) + if ($util.Long) + (message.sequence = $util.Long.fromValue(object.sequence)).unsigned = true; + else if (typeof object.sequence === "string") + message.sequence = parseInt(object.sequence, 10); + else if (typeof object.sequence === "number") + message.sequence = object.sequence; + else if (typeof object.sequence === "object") + message.sequence = new $util.LongBits(object.sequence.low >>> 0, object.sequence.high >>> 0).toNumber(true); + return message; + }; + + /** + * Creates a plain object from a BaseAccount message. Also converts values to other types if specified. + * @function toObject + * @memberof cosmos.auth.v1beta1.BaseAccount + * @static + * @param {cosmos.auth.v1beta1.BaseAccount} message BaseAccount + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + BaseAccount.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.address = ""; + object.pub_key = null; + if ($util.Long) { + var long = new $util.Long(0, 0, true); + object.account_number = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.account_number = options.longs === String ? "0" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, true); + object.sequence = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.sequence = options.longs === String ? "0" : 0; + } + if (message.address != null && message.hasOwnProperty("address")) + object.address = message.address; + if (message.pub_key != null && message.hasOwnProperty("pub_key")) + object.pub_key = $root.google.protobuf.Any.toObject(message.pub_key, options); + if (message.account_number != null && message.hasOwnProperty("account_number")) + if (typeof message.account_number === "number") + object.account_number = options.longs === String ? String(message.account_number) : message.account_number; + else + object.account_number = options.longs === String ? $util.Long.prototype.toString.call(message.account_number) : options.longs === Number ? new $util.LongBits(message.account_number.low >>> 0, message.account_number.high >>> 0).toNumber(true) : message.account_number; + if (message.sequence != null && message.hasOwnProperty("sequence")) + if (typeof message.sequence === "number") + object.sequence = options.longs === String ? String(message.sequence) : message.sequence; + else + object.sequence = options.longs === String ? $util.Long.prototype.toString.call(message.sequence) : options.longs === Number ? new $util.LongBits(message.sequence.low >>> 0, message.sequence.high >>> 0).toNumber(true) : message.sequence; + return object; + }; + + /** + * Converts this BaseAccount to JSON. + * @function toJSON + * @memberof cosmos.auth.v1beta1.BaseAccount + * @instance + * @returns {Object.} JSON object + */ + BaseAccount.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return BaseAccount; + })(); + + v1beta1.ModuleAccount = (function() { + + /** + * Properties of a ModuleAccount. + * @memberof cosmos.auth.v1beta1 + * @interface IModuleAccount + * @property {cosmos.auth.v1beta1.IBaseAccount|null} [base_account] ModuleAccount base_account + * @property {string|null} [name] ModuleAccount name + * @property {Array.|null} [permissions] ModuleAccount permissions + */ + + /** + * Constructs a new ModuleAccount. + * @memberof cosmos.auth.v1beta1 + * @classdesc Represents a ModuleAccount. + * @implements IModuleAccount + * @constructor + * @param {cosmos.auth.v1beta1.IModuleAccount=} [properties] Properties to set + */ + function ModuleAccount(properties) { + this.permissions = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ModuleAccount base_account. + * @member {cosmos.auth.v1beta1.IBaseAccount|null|undefined} base_account + * @memberof cosmos.auth.v1beta1.ModuleAccount + * @instance + */ + ModuleAccount.prototype.base_account = null; + + /** + * ModuleAccount name. + * @member {string} name + * @memberof cosmos.auth.v1beta1.ModuleAccount + * @instance + */ + ModuleAccount.prototype.name = ""; + + /** + * ModuleAccount permissions. + * @member {Array.} permissions + * @memberof cosmos.auth.v1beta1.ModuleAccount + * @instance + */ + ModuleAccount.prototype.permissions = $util.emptyArray; + + /** + * Encodes the specified ModuleAccount message. Does not implicitly {@link cosmos.auth.v1beta1.ModuleAccount.verify|verify} messages. + * @function encode + * @memberof cosmos.auth.v1beta1.ModuleAccount + * @static + * @param {cosmos.auth.v1beta1.IModuleAccount} message ModuleAccount message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ModuleAccount.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.base_account != null && Object.hasOwnProperty.call(message, "base_account")) + $root.cosmos.auth.v1beta1.BaseAccount.encode(message.base_account, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.name); + if (message.permissions != null && message.permissions.length) + for (var i = 0; i < message.permissions.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.permissions[i]); + return writer; + }; + + /** + * Encodes the specified ModuleAccount message, length delimited. Does not implicitly {@link cosmos.auth.v1beta1.ModuleAccount.verify|verify} messages. + * @function encodeDelimited + * @memberof cosmos.auth.v1beta1.ModuleAccount + * @static + * @param {cosmos.auth.v1beta1.IModuleAccount} message ModuleAccount message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ModuleAccount.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ModuleAccount message from the specified reader or buffer. + * @function decode + * @memberof cosmos.auth.v1beta1.ModuleAccount + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {cosmos.auth.v1beta1.ModuleAccount} ModuleAccount + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ModuleAccount.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.cosmos.auth.v1beta1.ModuleAccount(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.base_account = $root.cosmos.auth.v1beta1.BaseAccount.decode(reader, reader.uint32()); + break; + case 2: + message.name = reader.string(); + break; + case 3: + if (!(message.permissions && message.permissions.length)) + message.permissions = []; + message.permissions.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ModuleAccount message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof cosmos.auth.v1beta1.ModuleAccount + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {cosmos.auth.v1beta1.ModuleAccount} ModuleAccount + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ModuleAccount.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ModuleAccount message. + * @function verify + * @memberof cosmos.auth.v1beta1.ModuleAccount + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ModuleAccount.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.base_account != null && message.hasOwnProperty("base_account")) { + var error = $root.cosmos.auth.v1beta1.BaseAccount.verify(message.base_account); + if (error) + return "base_account." + error; + } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.permissions != null && message.hasOwnProperty("permissions")) { + if (!Array.isArray(message.permissions)) + return "permissions: array expected"; + for (var i = 0; i < message.permissions.length; ++i) + if (!$util.isString(message.permissions[i])) + return "permissions: string[] expected"; + } + return null; + }; + + /** + * Creates a ModuleAccount message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof cosmos.auth.v1beta1.ModuleAccount + * @static + * @param {Object.} object Plain object + * @returns {cosmos.auth.v1beta1.ModuleAccount} ModuleAccount + */ + ModuleAccount.fromObject = function fromObject(object) { + if (object instanceof $root.cosmos.auth.v1beta1.ModuleAccount) + return object; + var message = new $root.cosmos.auth.v1beta1.ModuleAccount(); + if (object.base_account != null) { + if (typeof object.base_account !== "object") + throw TypeError(".cosmos.auth.v1beta1.ModuleAccount.base_account: object expected"); + message.base_account = $root.cosmos.auth.v1beta1.BaseAccount.fromObject(object.base_account); + } + if (object.name != null) + message.name = String(object.name); + if (object.permissions) { + if (!Array.isArray(object.permissions)) + throw TypeError(".cosmos.auth.v1beta1.ModuleAccount.permissions: array expected"); + message.permissions = []; + for (var i = 0; i < object.permissions.length; ++i) + message.permissions[i] = String(object.permissions[i]); + } + return message; + }; + + /** + * Creates a plain object from a ModuleAccount message. Also converts values to other types if specified. + * @function toObject + * @memberof cosmos.auth.v1beta1.ModuleAccount + * @static + * @param {cosmos.auth.v1beta1.ModuleAccount} message ModuleAccount + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ModuleAccount.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.permissions = []; + if (options.defaults) { + object.base_account = null; + object.name = ""; + } + if (message.base_account != null && message.hasOwnProperty("base_account")) + object.base_account = $root.cosmos.auth.v1beta1.BaseAccount.toObject(message.base_account, options); + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.permissions && message.permissions.length) { + object.permissions = []; + for (var j = 0; j < message.permissions.length; ++j) + object.permissions[j] = message.permissions[j]; + } + return object; + }; + + /** + * Converts this ModuleAccount to JSON. + * @function toJSON + * @memberof cosmos.auth.v1beta1.ModuleAccount + * @instance + * @returns {Object.} JSON object + */ + ModuleAccount.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ModuleAccount; + })(); + + v1beta1.ModuleCredential = (function() { + + /** + * Properties of a ModuleCredential. + * @memberof cosmos.auth.v1beta1 + * @interface IModuleCredential + * @property {string|null} [module_name] ModuleCredential module_name + * @property {Array.|null} [derivation_keys] ModuleCredential derivation_keys + */ + + /** + * Constructs a new ModuleCredential. + * @memberof cosmos.auth.v1beta1 + * @classdesc Represents a ModuleCredential. + * @implements IModuleCredential + * @constructor + * @param {cosmos.auth.v1beta1.IModuleCredential=} [properties] Properties to set + */ + function ModuleCredential(properties) { + this.derivation_keys = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ModuleCredential module_name. + * @member {string} module_name + * @memberof cosmos.auth.v1beta1.ModuleCredential + * @instance + */ + ModuleCredential.prototype.module_name = ""; + + /** + * ModuleCredential derivation_keys. + * @member {Array.} derivation_keys + * @memberof cosmos.auth.v1beta1.ModuleCredential + * @instance + */ + ModuleCredential.prototype.derivation_keys = $util.emptyArray; + + /** + * Encodes the specified ModuleCredential message. Does not implicitly {@link cosmos.auth.v1beta1.ModuleCredential.verify|verify} messages. + * @function encode + * @memberof cosmos.auth.v1beta1.ModuleCredential + * @static + * @param {cosmos.auth.v1beta1.IModuleCredential} message ModuleCredential message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ModuleCredential.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.module_name != null && Object.hasOwnProperty.call(message, "module_name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.module_name); + if (message.derivation_keys != null && message.derivation_keys.length) + for (var i = 0; i < message.derivation_keys.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.derivation_keys[i]); + return writer; + }; + + /** + * Encodes the specified ModuleCredential message, length delimited. Does not implicitly {@link cosmos.auth.v1beta1.ModuleCredential.verify|verify} messages. + * @function encodeDelimited + * @memberof cosmos.auth.v1beta1.ModuleCredential + * @static + * @param {cosmos.auth.v1beta1.IModuleCredential} message ModuleCredential message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ModuleCredential.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ModuleCredential message from the specified reader or buffer. + * @function decode + * @memberof cosmos.auth.v1beta1.ModuleCredential + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {cosmos.auth.v1beta1.ModuleCredential} ModuleCredential + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ModuleCredential.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.cosmos.auth.v1beta1.ModuleCredential(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.module_name = reader.string(); + break; + case 2: + if (!(message.derivation_keys && message.derivation_keys.length)) + message.derivation_keys = []; + message.derivation_keys.push(reader.bytes()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ModuleCredential message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof cosmos.auth.v1beta1.ModuleCredential + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {cosmos.auth.v1beta1.ModuleCredential} ModuleCredential + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ModuleCredential.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ModuleCredential message. + * @function verify + * @memberof cosmos.auth.v1beta1.ModuleCredential + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ModuleCredential.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.module_name != null && message.hasOwnProperty("module_name")) + if (!$util.isString(message.module_name)) + return "module_name: string expected"; + if (message.derivation_keys != null && message.hasOwnProperty("derivation_keys")) { + if (!Array.isArray(message.derivation_keys)) + return "derivation_keys: array expected"; + for (var i = 0; i < message.derivation_keys.length; ++i) + if (!(message.derivation_keys[i] && typeof message.derivation_keys[i].length === "number" || $util.isString(message.derivation_keys[i]))) + return "derivation_keys: buffer[] expected"; + } + return null; + }; + + /** + * Creates a ModuleCredential message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof cosmos.auth.v1beta1.ModuleCredential + * @static + * @param {Object.} object Plain object + * @returns {cosmos.auth.v1beta1.ModuleCredential} ModuleCredential + */ + ModuleCredential.fromObject = function fromObject(object) { + if (object instanceof $root.cosmos.auth.v1beta1.ModuleCredential) + return object; + var message = new $root.cosmos.auth.v1beta1.ModuleCredential(); + if (object.module_name != null) + message.module_name = String(object.module_name); + if (object.derivation_keys) { + if (!Array.isArray(object.derivation_keys)) + throw TypeError(".cosmos.auth.v1beta1.ModuleCredential.derivation_keys: array expected"); + message.derivation_keys = []; + for (var i = 0; i < object.derivation_keys.length; ++i) + if (typeof object.derivation_keys[i] === "string") + $util.base64.decode(object.derivation_keys[i], message.derivation_keys[i] = $util.newBuffer($util.base64.length(object.derivation_keys[i])), 0); + else if (object.derivation_keys[i].length) + message.derivation_keys[i] = object.derivation_keys[i]; + } + return message; + }; + + /** + * Creates a plain object from a ModuleCredential message. Also converts values to other types if specified. + * @function toObject + * @memberof cosmos.auth.v1beta1.ModuleCredential + * @static + * @param {cosmos.auth.v1beta1.ModuleCredential} message ModuleCredential + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ModuleCredential.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.derivation_keys = []; + if (options.defaults) + object.module_name = ""; + if (message.module_name != null && message.hasOwnProperty("module_name")) + object.module_name = message.module_name; + if (message.derivation_keys && message.derivation_keys.length) { + object.derivation_keys = []; + for (var j = 0; j < message.derivation_keys.length; ++j) + object.derivation_keys[j] = options.bytes === String ? $util.base64.encode(message.derivation_keys[j], 0, message.derivation_keys[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.derivation_keys[j]) : message.derivation_keys[j]; + } + return object; + }; + + /** + * Converts this ModuleCredential to JSON. + * @function toJSON + * @memberof cosmos.auth.v1beta1.ModuleCredential + * @instance + * @returns {Object.} JSON object + */ + ModuleCredential.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ModuleCredential; + })(); + + v1beta1.Params = (function() { + + /** + * Properties of a Params. + * @memberof cosmos.auth.v1beta1 + * @interface IParams + * @property {Long|null} [max_memo_characters] Params max_memo_characters + * @property {Long|null} [tx_sig_limit] Params tx_sig_limit + * @property {Long|null} [tx_size_cost_per_byte] Params tx_size_cost_per_byte + * @property {Long|null} [sig_verify_cost_ed25519] Params sig_verify_cost_ed25519 + * @property {Long|null} [sig_verify_cost_secp256k1] Params sig_verify_cost_secp256k1 + */ + + /** + * Constructs a new Params. + * @memberof cosmos.auth.v1beta1 + * @classdesc Represents a Params. + * @implements IParams + * @constructor + * @param {cosmos.auth.v1beta1.IParams=} [properties] Properties to set + */ + function Params(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Params max_memo_characters. + * @member {Long} max_memo_characters + * @memberof cosmos.auth.v1beta1.Params + * @instance + */ + Params.prototype.max_memo_characters = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + + /** + * Params tx_sig_limit. + * @member {Long} tx_sig_limit + * @memberof cosmos.auth.v1beta1.Params + * @instance + */ + Params.prototype.tx_sig_limit = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + + /** + * Params tx_size_cost_per_byte. + * @member {Long} tx_size_cost_per_byte + * @memberof cosmos.auth.v1beta1.Params + * @instance + */ + Params.prototype.tx_size_cost_per_byte = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + + /** + * Params sig_verify_cost_ed25519. + * @member {Long} sig_verify_cost_ed25519 + * @memberof cosmos.auth.v1beta1.Params + * @instance + */ + Params.prototype.sig_verify_cost_ed25519 = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + + /** + * Params sig_verify_cost_secp256k1. + * @member {Long} sig_verify_cost_secp256k1 + * @memberof cosmos.auth.v1beta1.Params + * @instance + */ + Params.prototype.sig_verify_cost_secp256k1 = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + + /** + * Encodes the specified Params message. Does not implicitly {@link cosmos.auth.v1beta1.Params.verify|verify} messages. + * @function encode + * @memberof cosmos.auth.v1beta1.Params + * @static + * @param {cosmos.auth.v1beta1.IParams} message Params message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Params.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.max_memo_characters != null && Object.hasOwnProperty.call(message, "max_memo_characters")) + writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.max_memo_characters); + if (message.tx_sig_limit != null && Object.hasOwnProperty.call(message, "tx_sig_limit")) + writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.tx_sig_limit); + if (message.tx_size_cost_per_byte != null && Object.hasOwnProperty.call(message, "tx_size_cost_per_byte")) + writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.tx_size_cost_per_byte); + if (message.sig_verify_cost_ed25519 != null && Object.hasOwnProperty.call(message, "sig_verify_cost_ed25519")) + writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.sig_verify_cost_ed25519); + if (message.sig_verify_cost_secp256k1 != null && Object.hasOwnProperty.call(message, "sig_verify_cost_secp256k1")) + writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.sig_verify_cost_secp256k1); + return writer; + }; + + /** + * Encodes the specified Params message, length delimited. Does not implicitly {@link cosmos.auth.v1beta1.Params.verify|verify} messages. + * @function encodeDelimited + * @memberof cosmos.auth.v1beta1.Params + * @static + * @param {cosmos.auth.v1beta1.IParams} message Params message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Params.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Params message from the specified reader or buffer. + * @function decode + * @memberof cosmos.auth.v1beta1.Params + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {cosmos.auth.v1beta1.Params} Params + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Params.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.cosmos.auth.v1beta1.Params(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.max_memo_characters = reader.uint64(); + break; + case 2: + message.tx_sig_limit = reader.uint64(); + break; + case 3: + message.tx_size_cost_per_byte = reader.uint64(); + break; + case 4: + message.sig_verify_cost_ed25519 = reader.uint64(); + break; + case 5: + message.sig_verify_cost_secp256k1 = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Params message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof cosmos.auth.v1beta1.Params + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {cosmos.auth.v1beta1.Params} Params + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Params.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Params message. + * @function verify + * @memberof cosmos.auth.v1beta1.Params + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Params.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.max_memo_characters != null && message.hasOwnProperty("max_memo_characters")) + if (!$util.isInteger(message.max_memo_characters) && !(message.max_memo_characters && $util.isInteger(message.max_memo_characters.low) && $util.isInteger(message.max_memo_characters.high))) + return "max_memo_characters: integer|Long expected"; + if (message.tx_sig_limit != null && message.hasOwnProperty("tx_sig_limit")) + if (!$util.isInteger(message.tx_sig_limit) && !(message.tx_sig_limit && $util.isInteger(message.tx_sig_limit.low) && $util.isInteger(message.tx_sig_limit.high))) + return "tx_sig_limit: integer|Long expected"; + if (message.tx_size_cost_per_byte != null && message.hasOwnProperty("tx_size_cost_per_byte")) + if (!$util.isInteger(message.tx_size_cost_per_byte) && !(message.tx_size_cost_per_byte && $util.isInteger(message.tx_size_cost_per_byte.low) && $util.isInteger(message.tx_size_cost_per_byte.high))) + return "tx_size_cost_per_byte: integer|Long expected"; + if (message.sig_verify_cost_ed25519 != null && message.hasOwnProperty("sig_verify_cost_ed25519")) + if (!$util.isInteger(message.sig_verify_cost_ed25519) && !(message.sig_verify_cost_ed25519 && $util.isInteger(message.sig_verify_cost_ed25519.low) && $util.isInteger(message.sig_verify_cost_ed25519.high))) + return "sig_verify_cost_ed25519: integer|Long expected"; + if (message.sig_verify_cost_secp256k1 != null && message.hasOwnProperty("sig_verify_cost_secp256k1")) + if (!$util.isInteger(message.sig_verify_cost_secp256k1) && !(message.sig_verify_cost_secp256k1 && $util.isInteger(message.sig_verify_cost_secp256k1.low) && $util.isInteger(message.sig_verify_cost_secp256k1.high))) + return "sig_verify_cost_secp256k1: integer|Long expected"; + return null; + }; + + /** + * Creates a Params message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof cosmos.auth.v1beta1.Params + * @static + * @param {Object.} object Plain object + * @returns {cosmos.auth.v1beta1.Params} Params + */ + Params.fromObject = function fromObject(object) { + if (object instanceof $root.cosmos.auth.v1beta1.Params) + return object; + var message = new $root.cosmos.auth.v1beta1.Params(); + if (object.max_memo_characters != null) + if ($util.Long) + (message.max_memo_characters = $util.Long.fromValue(object.max_memo_characters)).unsigned = true; + else if (typeof object.max_memo_characters === "string") + message.max_memo_characters = parseInt(object.max_memo_characters, 10); + else if (typeof object.max_memo_characters === "number") + message.max_memo_characters = object.max_memo_characters; + else if (typeof object.max_memo_characters === "object") + message.max_memo_characters = new $util.LongBits(object.max_memo_characters.low >>> 0, object.max_memo_characters.high >>> 0).toNumber(true); + if (object.tx_sig_limit != null) + if ($util.Long) + (message.tx_sig_limit = $util.Long.fromValue(object.tx_sig_limit)).unsigned = true; + else if (typeof object.tx_sig_limit === "string") + message.tx_sig_limit = parseInt(object.tx_sig_limit, 10); + else if (typeof object.tx_sig_limit === "number") + message.tx_sig_limit = object.tx_sig_limit; + else if (typeof object.tx_sig_limit === "object") + message.tx_sig_limit = new $util.LongBits(object.tx_sig_limit.low >>> 0, object.tx_sig_limit.high >>> 0).toNumber(true); + if (object.tx_size_cost_per_byte != null) + if ($util.Long) + (message.tx_size_cost_per_byte = $util.Long.fromValue(object.tx_size_cost_per_byte)).unsigned = true; + else if (typeof object.tx_size_cost_per_byte === "string") + message.tx_size_cost_per_byte = parseInt(object.tx_size_cost_per_byte, 10); + else if (typeof object.tx_size_cost_per_byte === "number") + message.tx_size_cost_per_byte = object.tx_size_cost_per_byte; + else if (typeof object.tx_size_cost_per_byte === "object") + message.tx_size_cost_per_byte = new $util.LongBits(object.tx_size_cost_per_byte.low >>> 0, object.tx_size_cost_per_byte.high >>> 0).toNumber(true); + if (object.sig_verify_cost_ed25519 != null) + if ($util.Long) + (message.sig_verify_cost_ed25519 = $util.Long.fromValue(object.sig_verify_cost_ed25519)).unsigned = true; + else if (typeof object.sig_verify_cost_ed25519 === "string") + message.sig_verify_cost_ed25519 = parseInt(object.sig_verify_cost_ed25519, 10); + else if (typeof object.sig_verify_cost_ed25519 === "number") + message.sig_verify_cost_ed25519 = object.sig_verify_cost_ed25519; + else if (typeof object.sig_verify_cost_ed25519 === "object") + message.sig_verify_cost_ed25519 = new $util.LongBits(object.sig_verify_cost_ed25519.low >>> 0, object.sig_verify_cost_ed25519.high >>> 0).toNumber(true); + if (object.sig_verify_cost_secp256k1 != null) + if ($util.Long) + (message.sig_verify_cost_secp256k1 = $util.Long.fromValue(object.sig_verify_cost_secp256k1)).unsigned = true; + else if (typeof object.sig_verify_cost_secp256k1 === "string") + message.sig_verify_cost_secp256k1 = parseInt(object.sig_verify_cost_secp256k1, 10); + else if (typeof object.sig_verify_cost_secp256k1 === "number") + message.sig_verify_cost_secp256k1 = object.sig_verify_cost_secp256k1; + else if (typeof object.sig_verify_cost_secp256k1 === "object") + message.sig_verify_cost_secp256k1 = new $util.LongBits(object.sig_verify_cost_secp256k1.low >>> 0, object.sig_verify_cost_secp256k1.high >>> 0).toNumber(true); + return message; + }; + + /** + * Creates a plain object from a Params message. Also converts values to other types if specified. + * @function toObject + * @memberof cosmos.auth.v1beta1.Params + * @static + * @param {cosmos.auth.v1beta1.Params} message Params + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Params.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + if ($util.Long) { + var long = new $util.Long(0, 0, true); + object.max_memo_characters = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.max_memo_characters = options.longs === String ? "0" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, true); + object.tx_sig_limit = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.tx_sig_limit = options.longs === String ? "0" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, true); + object.tx_size_cost_per_byte = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.tx_size_cost_per_byte = options.longs === String ? "0" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, true); + object.sig_verify_cost_ed25519 = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.sig_verify_cost_ed25519 = options.longs === String ? "0" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, true); + object.sig_verify_cost_secp256k1 = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.sig_verify_cost_secp256k1 = options.longs === String ? "0" : 0; + } + if (message.max_memo_characters != null && message.hasOwnProperty("max_memo_characters")) + if (typeof message.max_memo_characters === "number") + object.max_memo_characters = options.longs === String ? String(message.max_memo_characters) : message.max_memo_characters; + else + object.max_memo_characters = options.longs === String ? $util.Long.prototype.toString.call(message.max_memo_characters) : options.longs === Number ? new $util.LongBits(message.max_memo_characters.low >>> 0, message.max_memo_characters.high >>> 0).toNumber(true) : message.max_memo_characters; + if (message.tx_sig_limit != null && message.hasOwnProperty("tx_sig_limit")) + if (typeof message.tx_sig_limit === "number") + object.tx_sig_limit = options.longs === String ? String(message.tx_sig_limit) : message.tx_sig_limit; + else + object.tx_sig_limit = options.longs === String ? $util.Long.prototype.toString.call(message.tx_sig_limit) : options.longs === Number ? new $util.LongBits(message.tx_sig_limit.low >>> 0, message.tx_sig_limit.high >>> 0).toNumber(true) : message.tx_sig_limit; + if (message.tx_size_cost_per_byte != null && message.hasOwnProperty("tx_size_cost_per_byte")) + if (typeof message.tx_size_cost_per_byte === "number") + object.tx_size_cost_per_byte = options.longs === String ? String(message.tx_size_cost_per_byte) : message.tx_size_cost_per_byte; + else + object.tx_size_cost_per_byte = options.longs === String ? $util.Long.prototype.toString.call(message.tx_size_cost_per_byte) : options.longs === Number ? new $util.LongBits(message.tx_size_cost_per_byte.low >>> 0, message.tx_size_cost_per_byte.high >>> 0).toNumber(true) : message.tx_size_cost_per_byte; + if (message.sig_verify_cost_ed25519 != null && message.hasOwnProperty("sig_verify_cost_ed25519")) + if (typeof message.sig_verify_cost_ed25519 === "number") + object.sig_verify_cost_ed25519 = options.longs === String ? String(message.sig_verify_cost_ed25519) : message.sig_verify_cost_ed25519; + else + object.sig_verify_cost_ed25519 = options.longs === String ? $util.Long.prototype.toString.call(message.sig_verify_cost_ed25519) : options.longs === Number ? new $util.LongBits(message.sig_verify_cost_ed25519.low >>> 0, message.sig_verify_cost_ed25519.high >>> 0).toNumber(true) : message.sig_verify_cost_ed25519; + if (message.sig_verify_cost_secp256k1 != null && message.hasOwnProperty("sig_verify_cost_secp256k1")) + if (typeof message.sig_verify_cost_secp256k1 === "number") + object.sig_verify_cost_secp256k1 = options.longs === String ? String(message.sig_verify_cost_secp256k1) : message.sig_verify_cost_secp256k1; + else + object.sig_verify_cost_secp256k1 = options.longs === String ? $util.Long.prototype.toString.call(message.sig_verify_cost_secp256k1) : options.longs === Number ? new $util.LongBits(message.sig_verify_cost_secp256k1.low >>> 0, message.sig_verify_cost_secp256k1.high >>> 0).toNumber(true) : message.sig_verify_cost_secp256k1; + return object; + }; + + /** + * Converts this Params to JSON. + * @function toJSON + * @memberof cosmos.auth.v1beta1.Params + * @instance + * @returns {Object.} JSON object + */ + Params.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return Params; + })(); + + return v1beta1; + })(); + + return auth; + })(); + + cosmos.ics23 = (function() { + + /** + * Namespace ics23. + * @memberof cosmos + * @namespace + */ + var ics23 = {}; + + ics23.v1 = (function() { + + /** + * Namespace v1. + * @memberof cosmos.ics23 + * @namespace + */ + var v1 = {}; + + /** + * HashOp enum. + * @name cosmos.ics23.v1.HashOp + * @enum {number} + * @property {number} NO_HASH=0 NO_HASH value + * @property {number} SHA256=1 SHA256 value + * @property {number} SHA512=2 SHA512 value + * @property {number} KECCAK=3 KECCAK value + * @property {number} RIPEMD160=4 RIPEMD160 value + * @property {number} BITCOIN=5 BITCOIN value + * @property {number} SHA512_256=6 SHA512_256 value + */ + v1.HashOp = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "NO_HASH"] = 0; + values[valuesById[1] = "SHA256"] = 1; + values[valuesById[2] = "SHA512"] = 2; + values[valuesById[3] = "KECCAK"] = 3; + values[valuesById[4] = "RIPEMD160"] = 4; + values[valuesById[5] = "BITCOIN"] = 5; + values[valuesById[6] = "SHA512_256"] = 6; + return values; + })(); + + /** + * LengthOp defines how to process the key and value of the LeafOp + * to include length information. After encoding the length with the given + * algorithm, the length will be prepended to the key and value bytes. + * (Each one with it's own encoded length) + * @name cosmos.ics23.v1.LengthOp + * @enum {number} + * @property {number} NO_PREFIX=0 NO_PREFIX value + * @property {number} VAR_PROTO=1 VAR_PROTO value + * @property {number} VAR_RLP=2 VAR_RLP value + * @property {number} FIXED32_BIG=3 FIXED32_BIG value + * @property {number} FIXED32_LITTLE=4 FIXED32_LITTLE value + * @property {number} FIXED64_BIG=5 FIXED64_BIG value + * @property {number} FIXED64_LITTLE=6 FIXED64_LITTLE value + * @property {number} REQUIRE_32_BYTES=7 REQUIRE_32_BYTES value + * @property {number} REQUIRE_64_BYTES=8 REQUIRE_64_BYTES value + */ + v1.LengthOp = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "NO_PREFIX"] = 0; + values[valuesById[1] = "VAR_PROTO"] = 1; + values[valuesById[2] = "VAR_RLP"] = 2; + values[valuesById[3] = "FIXED32_BIG"] = 3; + values[valuesById[4] = "FIXED32_LITTLE"] = 4; + values[valuesById[5] = "FIXED64_BIG"] = 5; + values[valuesById[6] = "FIXED64_LITTLE"] = 6; + values[valuesById[7] = "REQUIRE_32_BYTES"] = 7; + values[valuesById[8] = "REQUIRE_64_BYTES"] = 8; + return values; + })(); + + v1.ExistenceProof = (function() { + + /** + * Properties of an ExistenceProof. + * @memberof cosmos.ics23.v1 + * @interface IExistenceProof + * @property {Uint8Array|null} [key] ExistenceProof key + * @property {Uint8Array|null} [value] ExistenceProof value + * @property {cosmos.ics23.v1.ILeafOp|null} [leaf] ExistenceProof leaf + * @property {Array.|null} [path] ExistenceProof path + */ + + /** + * Constructs a new ExistenceProof. + * @memberof cosmos.ics23.v1 + * @classdesc ExistenceProof takes a key and a value and a set of steps to perform on it. + * The result of peforming all these steps will provide a "root hash", which can + * be compared to the value in a header. + * + * Since it is computationally infeasible to produce a hash collission for any of the used + * cryptographic hash functions, if someone can provide a series of operations to transform + * a given key and value into a root hash that matches some trusted root, these key and values + * must be in the referenced merkle tree. + * + * The only possible issue is maliablity in LeafOp, such as providing extra prefix data, + * which should be controlled by a spec. Eg. with lengthOp as NONE, + * prefix = FOO, key = BAR, value = CHOICE + * and + * prefix = F, key = OOBAR, value = CHOICE + * would produce the same value. + * + * With LengthOp this is tricker but not impossible. Which is why the "leafPrefixEqual" field + * in the ProofSpec is valuable to prevent this mutability. And why all trees should + * length-prefix the data before hashing it. + * @implements IExistenceProof + * @constructor + * @param {cosmos.ics23.v1.IExistenceProof=} [properties] Properties to set + */ + function ExistenceProof(properties) { + this.path = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; } - if (message.weak_dependency != null && message.hasOwnProperty("weak_dependency")) { - if (!Array.isArray(message.weak_dependency)) - return "weak_dependency: array expected"; - for (var i = 0; i < message.weak_dependency.length; ++i) - if (!$util.isInteger(message.weak_dependency[i])) - return "weak_dependency: integer[] expected"; + + /** + * ExistenceProof key. + * @member {Uint8Array} key + * @memberof cosmos.ics23.v1.ExistenceProof + * @instance + */ + ExistenceProof.prototype.key = $util.newBuffer([]); + + /** + * ExistenceProof value. + * @member {Uint8Array} value + * @memberof cosmos.ics23.v1.ExistenceProof + * @instance + */ + ExistenceProof.prototype.value = $util.newBuffer([]); + + /** + * ExistenceProof leaf. + * @member {cosmos.ics23.v1.ILeafOp|null|undefined} leaf + * @memberof cosmos.ics23.v1.ExistenceProof + * @instance + */ + ExistenceProof.prototype.leaf = null; + + /** + * ExistenceProof path. + * @member {Array.} path + * @memberof cosmos.ics23.v1.ExistenceProof + * @instance + */ + ExistenceProof.prototype.path = $util.emptyArray; + + /** + * Encodes the specified ExistenceProof message. Does not implicitly {@link cosmos.ics23.v1.ExistenceProof.verify|verify} messages. + * @function encode + * @memberof cosmos.ics23.v1.ExistenceProof + * @static + * @param {cosmos.ics23.v1.IExistenceProof} message ExistenceProof message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExistenceProof.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.key != null && Object.hasOwnProperty.call(message, "key")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.key); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.value); + if (message.leaf != null && Object.hasOwnProperty.call(message, "leaf")) + $root.cosmos.ics23.v1.LeafOp.encode(message.leaf, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.path != null && message.path.length) + for (var i = 0; i < message.path.length; ++i) + $root.cosmos.ics23.v1.InnerOp.encode(message.path[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ExistenceProof message, length delimited. Does not implicitly {@link cosmos.ics23.v1.ExistenceProof.verify|verify} messages. + * @function encodeDelimited + * @memberof cosmos.ics23.v1.ExistenceProof + * @static + * @param {cosmos.ics23.v1.IExistenceProof} message ExistenceProof message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExistenceProof.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an ExistenceProof message from the specified reader or buffer. + * @function decode + * @memberof cosmos.ics23.v1.ExistenceProof + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {cosmos.ics23.v1.ExistenceProof} ExistenceProof + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExistenceProof.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.cosmos.ics23.v1.ExistenceProof(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.key = reader.bytes(); + break; + case 2: + message.value = reader.bytes(); + break; + case 3: + message.leaf = $root.cosmos.ics23.v1.LeafOp.decode(reader, reader.uint32()); + break; + case 4: + if (!(message.path && message.path.length)) + message.path = []; + message.path.push($root.cosmos.ics23.v1.InnerOp.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an ExistenceProof message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof cosmos.ics23.v1.ExistenceProof + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {cosmos.ics23.v1.ExistenceProof} ExistenceProof + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExistenceProof.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an ExistenceProof message. + * @function verify + * @memberof cosmos.ics23.v1.ExistenceProof + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExistenceProof.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.key != null && message.hasOwnProperty("key")) + if (!(message.key && typeof message.key.length === "number" || $util.isString(message.key))) + return "key: buffer expected"; + if (message.value != null && message.hasOwnProperty("value")) + if (!(message.value && typeof message.value.length === "number" || $util.isString(message.value))) + return "value: buffer expected"; + if (message.leaf != null && message.hasOwnProperty("leaf")) { + var error = $root.cosmos.ics23.v1.LeafOp.verify(message.leaf); + if (error) + return "leaf." + error; + } + if (message.path != null && message.hasOwnProperty("path")) { + if (!Array.isArray(message.path)) + return "path: array expected"; + for (var i = 0; i < message.path.length; ++i) { + var error = $root.cosmos.ics23.v1.InnerOp.verify(message.path[i]); + if (error) + return "path." + error; + } + } + return null; + }; + + /** + * Creates an ExistenceProof message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof cosmos.ics23.v1.ExistenceProof + * @static + * @param {Object.} object Plain object + * @returns {cosmos.ics23.v1.ExistenceProof} ExistenceProof + */ + ExistenceProof.fromObject = function fromObject(object) { + if (object instanceof $root.cosmos.ics23.v1.ExistenceProof) + return object; + var message = new $root.cosmos.ics23.v1.ExistenceProof(); + if (object.key != null) + if (typeof object.key === "string") + $util.base64.decode(object.key, message.key = $util.newBuffer($util.base64.length(object.key)), 0); + else if (object.key.length) + message.key = object.key; + if (object.value != null) + if (typeof object.value === "string") + $util.base64.decode(object.value, message.value = $util.newBuffer($util.base64.length(object.value)), 0); + else if (object.value.length) + message.value = object.value; + if (object.leaf != null) { + if (typeof object.leaf !== "object") + throw TypeError(".cosmos.ics23.v1.ExistenceProof.leaf: object expected"); + message.leaf = $root.cosmos.ics23.v1.LeafOp.fromObject(object.leaf); + } + if (object.path) { + if (!Array.isArray(object.path)) + throw TypeError(".cosmos.ics23.v1.ExistenceProof.path: array expected"); + message.path = []; + for (var i = 0; i < object.path.length; ++i) { + if (typeof object.path[i] !== "object") + throw TypeError(".cosmos.ics23.v1.ExistenceProof.path: object expected"); + message.path[i] = $root.cosmos.ics23.v1.InnerOp.fromObject(object.path[i]); + } + } + return message; + }; + + /** + * Creates a plain object from an ExistenceProof message. Also converts values to other types if specified. + * @function toObject + * @memberof cosmos.ics23.v1.ExistenceProof + * @static + * @param {cosmos.ics23.v1.ExistenceProof} message ExistenceProof + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ExistenceProof.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.path = []; + if (options.defaults) { + if (options.bytes === String) + object.key = ""; + else { + object.key = []; + if (options.bytes !== Array) + object.key = $util.newBuffer(object.key); + } + if (options.bytes === String) + object.value = ""; + else { + object.value = []; + if (options.bytes !== Array) + object.value = $util.newBuffer(object.value); + } + object.leaf = null; + } + if (message.key != null && message.hasOwnProperty("key")) + object.key = options.bytes === String ? $util.base64.encode(message.key, 0, message.key.length) : options.bytes === Array ? Array.prototype.slice.call(message.key) : message.key; + if (message.value != null && message.hasOwnProperty("value")) + object.value = options.bytes === String ? $util.base64.encode(message.value, 0, message.value.length) : options.bytes === Array ? Array.prototype.slice.call(message.value) : message.value; + if (message.leaf != null && message.hasOwnProperty("leaf")) + object.leaf = $root.cosmos.ics23.v1.LeafOp.toObject(message.leaf, options); + if (message.path && message.path.length) { + object.path = []; + for (var j = 0; j < message.path.length; ++j) + object.path[j] = $root.cosmos.ics23.v1.InnerOp.toObject(message.path[j], options); + } + return object; + }; + + /** + * Converts this ExistenceProof to JSON. + * @function toJSON + * @memberof cosmos.ics23.v1.ExistenceProof + * @instance + * @returns {Object.} JSON object + */ + ExistenceProof.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ExistenceProof; + })(); + + v1.NonExistenceProof = (function() { + + /** + * Properties of a NonExistenceProof. + * @memberof cosmos.ics23.v1 + * @interface INonExistenceProof + * @property {Uint8Array|null} [key] NonExistenceProof key + * @property {cosmos.ics23.v1.IExistenceProof|null} [left] NonExistenceProof left + * @property {cosmos.ics23.v1.IExistenceProof|null} [right] NonExistenceProof right + */ + + /** + * Constructs a new NonExistenceProof. + * @memberof cosmos.ics23.v1 + * @classdesc Represents a NonExistenceProof. + * @implements INonExistenceProof + * @constructor + * @param {cosmos.ics23.v1.INonExistenceProof=} [properties] Properties to set + */ + function NonExistenceProof(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * NonExistenceProof key. + * @member {Uint8Array} key + * @memberof cosmos.ics23.v1.NonExistenceProof + * @instance + */ + NonExistenceProof.prototype.key = $util.newBuffer([]); + + /** + * NonExistenceProof left. + * @member {cosmos.ics23.v1.IExistenceProof|null|undefined} left + * @memberof cosmos.ics23.v1.NonExistenceProof + * @instance + */ + NonExistenceProof.prototype.left = null; + + /** + * NonExistenceProof right. + * @member {cosmos.ics23.v1.IExistenceProof|null|undefined} right + * @memberof cosmos.ics23.v1.NonExistenceProof + * @instance + */ + NonExistenceProof.prototype.right = null; + + /** + * Encodes the specified NonExistenceProof message. Does not implicitly {@link cosmos.ics23.v1.NonExistenceProof.verify|verify} messages. + * @function encode + * @memberof cosmos.ics23.v1.NonExistenceProof + * @static + * @param {cosmos.ics23.v1.INonExistenceProof} message NonExistenceProof message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NonExistenceProof.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.key != null && Object.hasOwnProperty.call(message, "key")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.key); + if (message.left != null && Object.hasOwnProperty.call(message, "left")) + $root.cosmos.ics23.v1.ExistenceProof.encode(message.left, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.right != null && Object.hasOwnProperty.call(message, "right")) + $root.cosmos.ics23.v1.ExistenceProof.encode(message.right, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified NonExistenceProof message, length delimited. Does not implicitly {@link cosmos.ics23.v1.NonExistenceProof.verify|verify} messages. + * @function encodeDelimited + * @memberof cosmos.ics23.v1.NonExistenceProof + * @static + * @param {cosmos.ics23.v1.INonExistenceProof} message NonExistenceProof message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NonExistenceProof.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a NonExistenceProof message from the specified reader or buffer. + * @function decode + * @memberof cosmos.ics23.v1.NonExistenceProof + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {cosmos.ics23.v1.NonExistenceProof} NonExistenceProof + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NonExistenceProof.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.cosmos.ics23.v1.NonExistenceProof(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.key = reader.bytes(); + break; + case 2: + message.left = $root.cosmos.ics23.v1.ExistenceProof.decode(reader, reader.uint32()); + break; + case 3: + message.right = $root.cosmos.ics23.v1.ExistenceProof.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a NonExistenceProof message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof cosmos.ics23.v1.NonExistenceProof + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {cosmos.ics23.v1.NonExistenceProof} NonExistenceProof + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NonExistenceProof.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a NonExistenceProof message. + * @function verify + * @memberof cosmos.ics23.v1.NonExistenceProof + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NonExistenceProof.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.key != null && message.hasOwnProperty("key")) + if (!(message.key && typeof message.key.length === "number" || $util.isString(message.key))) + return "key: buffer expected"; + if (message.left != null && message.hasOwnProperty("left")) { + var error = $root.cosmos.ics23.v1.ExistenceProof.verify(message.left); + if (error) + return "left." + error; + } + if (message.right != null && message.hasOwnProperty("right")) { + var error = $root.cosmos.ics23.v1.ExistenceProof.verify(message.right); + if (error) + return "right." + error; + } + return null; + }; + + /** + * Creates a NonExistenceProof message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof cosmos.ics23.v1.NonExistenceProof + * @static + * @param {Object.} object Plain object + * @returns {cosmos.ics23.v1.NonExistenceProof} NonExistenceProof + */ + NonExistenceProof.fromObject = function fromObject(object) { + if (object instanceof $root.cosmos.ics23.v1.NonExistenceProof) + return object; + var message = new $root.cosmos.ics23.v1.NonExistenceProof(); + if (object.key != null) + if (typeof object.key === "string") + $util.base64.decode(object.key, message.key = $util.newBuffer($util.base64.length(object.key)), 0); + else if (object.key.length) + message.key = object.key; + if (object.left != null) { + if (typeof object.left !== "object") + throw TypeError(".cosmos.ics23.v1.NonExistenceProof.left: object expected"); + message.left = $root.cosmos.ics23.v1.ExistenceProof.fromObject(object.left); + } + if (object.right != null) { + if (typeof object.right !== "object") + throw TypeError(".cosmos.ics23.v1.NonExistenceProof.right: object expected"); + message.right = $root.cosmos.ics23.v1.ExistenceProof.fromObject(object.right); + } + return message; + }; + + /** + * Creates a plain object from a NonExistenceProof message. Also converts values to other types if specified. + * @function toObject + * @memberof cosmos.ics23.v1.NonExistenceProof + * @static + * @param {cosmos.ics23.v1.NonExistenceProof} message NonExistenceProof + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + NonExistenceProof.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + if (options.bytes === String) + object.key = ""; + else { + object.key = []; + if (options.bytes !== Array) + object.key = $util.newBuffer(object.key); + } + object.left = null; + object.right = null; + } + if (message.key != null && message.hasOwnProperty("key")) + object.key = options.bytes === String ? $util.base64.encode(message.key, 0, message.key.length) : options.bytes === Array ? Array.prototype.slice.call(message.key) : message.key; + if (message.left != null && message.hasOwnProperty("left")) + object.left = $root.cosmos.ics23.v1.ExistenceProof.toObject(message.left, options); + if (message.right != null && message.hasOwnProperty("right")) + object.right = $root.cosmos.ics23.v1.ExistenceProof.toObject(message.right, options); + return object; + }; + + /** + * Converts this NonExistenceProof to JSON. + * @function toJSON + * @memberof cosmos.ics23.v1.NonExistenceProof + * @instance + * @returns {Object.} JSON object + */ + NonExistenceProof.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return NonExistenceProof; + })(); + + v1.CommitmentProof = (function() { + + /** + * Properties of a CommitmentProof. + * @memberof cosmos.ics23.v1 + * @interface ICommitmentProof + * @property {cosmos.ics23.v1.IExistenceProof|null} [exist] CommitmentProof exist + * @property {cosmos.ics23.v1.INonExistenceProof|null} [nonexist] CommitmentProof nonexist + * @property {cosmos.ics23.v1.IBatchProof|null} [batch] CommitmentProof batch + * @property {cosmos.ics23.v1.ICompressedBatchProof|null} [compressed] CommitmentProof compressed + */ + + /** + * Constructs a new CommitmentProof. + * @memberof cosmos.ics23.v1 + * @classdesc Represents a CommitmentProof. + * @implements ICommitmentProof + * @constructor + * @param {cosmos.ics23.v1.ICommitmentProof=} [properties] Properties to set + */ + function CommitmentProof(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * CommitmentProof exist. + * @member {cosmos.ics23.v1.IExistenceProof|null|undefined} exist + * @memberof cosmos.ics23.v1.CommitmentProof + * @instance + */ + CommitmentProof.prototype.exist = null; + + /** + * CommitmentProof nonexist. + * @member {cosmos.ics23.v1.INonExistenceProof|null|undefined} nonexist + * @memberof cosmos.ics23.v1.CommitmentProof + * @instance + */ + CommitmentProof.prototype.nonexist = null; + + /** + * CommitmentProof batch. + * @member {cosmos.ics23.v1.IBatchProof|null|undefined} batch + * @memberof cosmos.ics23.v1.CommitmentProof + * @instance + */ + CommitmentProof.prototype.batch = null; + + /** + * CommitmentProof compressed. + * @member {cosmos.ics23.v1.ICompressedBatchProof|null|undefined} compressed + * @memberof cosmos.ics23.v1.CommitmentProof + * @instance + */ + CommitmentProof.prototype.compressed = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * CommitmentProof proof. + * @member {"exist"|"nonexist"|"batch"|"compressed"|undefined} proof + * @memberof cosmos.ics23.v1.CommitmentProof + * @instance + */ + Object.defineProperty(CommitmentProof.prototype, "proof", { + get: $util.oneOfGetter($oneOfFields = ["exist", "nonexist", "batch", "compressed"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Encodes the specified CommitmentProof message. Does not implicitly {@link cosmos.ics23.v1.CommitmentProof.verify|verify} messages. + * @function encode + * @memberof cosmos.ics23.v1.CommitmentProof + * @static + * @param {cosmos.ics23.v1.ICommitmentProof} message CommitmentProof message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CommitmentProof.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.exist != null && Object.hasOwnProperty.call(message, "exist")) + $root.cosmos.ics23.v1.ExistenceProof.encode(message.exist, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nonexist != null && Object.hasOwnProperty.call(message, "nonexist")) + $root.cosmos.ics23.v1.NonExistenceProof.encode(message.nonexist, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.batch != null && Object.hasOwnProperty.call(message, "batch")) + $root.cosmos.ics23.v1.BatchProof.encode(message.batch, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.compressed != null && Object.hasOwnProperty.call(message, "compressed")) + $root.cosmos.ics23.v1.CompressedBatchProof.encode(message.compressed, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified CommitmentProof message, length delimited. Does not implicitly {@link cosmos.ics23.v1.CommitmentProof.verify|verify} messages. + * @function encodeDelimited + * @memberof cosmos.ics23.v1.CommitmentProof + * @static + * @param {cosmos.ics23.v1.ICommitmentProof} message CommitmentProof message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CommitmentProof.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CommitmentProof message from the specified reader or buffer. + * @function decode + * @memberof cosmos.ics23.v1.CommitmentProof + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {cosmos.ics23.v1.CommitmentProof} CommitmentProof + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CommitmentProof.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.cosmos.ics23.v1.CommitmentProof(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.exist = $root.cosmos.ics23.v1.ExistenceProof.decode(reader, reader.uint32()); + break; + case 2: + message.nonexist = $root.cosmos.ics23.v1.NonExistenceProof.decode(reader, reader.uint32()); + break; + case 3: + message.batch = $root.cosmos.ics23.v1.BatchProof.decode(reader, reader.uint32()); + break; + case 4: + message.compressed = $root.cosmos.ics23.v1.CompressedBatchProof.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CommitmentProof message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof cosmos.ics23.v1.CommitmentProof + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {cosmos.ics23.v1.CommitmentProof} CommitmentProof + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CommitmentProof.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CommitmentProof message. + * @function verify + * @memberof cosmos.ics23.v1.CommitmentProof + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CommitmentProof.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.exist != null && message.hasOwnProperty("exist")) { + properties.proof = 1; + { + var error = $root.cosmos.ics23.v1.ExistenceProof.verify(message.exist); + if (error) + return "exist." + error; + } + } + if (message.nonexist != null && message.hasOwnProperty("nonexist")) { + if (properties.proof === 1) + return "proof: multiple values"; + properties.proof = 1; + { + var error = $root.cosmos.ics23.v1.NonExistenceProof.verify(message.nonexist); + if (error) + return "nonexist." + error; + } + } + if (message.batch != null && message.hasOwnProperty("batch")) { + if (properties.proof === 1) + return "proof: multiple values"; + properties.proof = 1; + { + var error = $root.cosmos.ics23.v1.BatchProof.verify(message.batch); + if (error) + return "batch." + error; + } + } + if (message.compressed != null && message.hasOwnProperty("compressed")) { + if (properties.proof === 1) + return "proof: multiple values"; + properties.proof = 1; + { + var error = $root.cosmos.ics23.v1.CompressedBatchProof.verify(message.compressed); + if (error) + return "compressed." + error; + } + } + return null; + }; + + /** + * Creates a CommitmentProof message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof cosmos.ics23.v1.CommitmentProof + * @static + * @param {Object.} object Plain object + * @returns {cosmos.ics23.v1.CommitmentProof} CommitmentProof + */ + CommitmentProof.fromObject = function fromObject(object) { + if (object instanceof $root.cosmos.ics23.v1.CommitmentProof) + return object; + var message = new $root.cosmos.ics23.v1.CommitmentProof(); + if (object.exist != null) { + if (typeof object.exist !== "object") + throw TypeError(".cosmos.ics23.v1.CommitmentProof.exist: object expected"); + message.exist = $root.cosmos.ics23.v1.ExistenceProof.fromObject(object.exist); + } + if (object.nonexist != null) { + if (typeof object.nonexist !== "object") + throw TypeError(".cosmos.ics23.v1.CommitmentProof.nonexist: object expected"); + message.nonexist = $root.cosmos.ics23.v1.NonExistenceProof.fromObject(object.nonexist); + } + if (object.batch != null) { + if (typeof object.batch !== "object") + throw TypeError(".cosmos.ics23.v1.CommitmentProof.batch: object expected"); + message.batch = $root.cosmos.ics23.v1.BatchProof.fromObject(object.batch); + } + if (object.compressed != null) { + if (typeof object.compressed !== "object") + throw TypeError(".cosmos.ics23.v1.CommitmentProof.compressed: object expected"); + message.compressed = $root.cosmos.ics23.v1.CompressedBatchProof.fromObject(object.compressed); + } + return message; + }; + + /** + * Creates a plain object from a CommitmentProof message. Also converts values to other types if specified. + * @function toObject + * @memberof cosmos.ics23.v1.CommitmentProof + * @static + * @param {cosmos.ics23.v1.CommitmentProof} message CommitmentProof + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CommitmentProof.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.exist != null && message.hasOwnProperty("exist")) { + object.exist = $root.cosmos.ics23.v1.ExistenceProof.toObject(message.exist, options); + if (options.oneofs) + object.proof = "exist"; + } + if (message.nonexist != null && message.hasOwnProperty("nonexist")) { + object.nonexist = $root.cosmos.ics23.v1.NonExistenceProof.toObject(message.nonexist, options); + if (options.oneofs) + object.proof = "nonexist"; + } + if (message.batch != null && message.hasOwnProperty("batch")) { + object.batch = $root.cosmos.ics23.v1.BatchProof.toObject(message.batch, options); + if (options.oneofs) + object.proof = "batch"; + } + if (message.compressed != null && message.hasOwnProperty("compressed")) { + object.compressed = $root.cosmos.ics23.v1.CompressedBatchProof.toObject(message.compressed, options); + if (options.oneofs) + object.proof = "compressed"; + } + return object; + }; + + /** + * Converts this CommitmentProof to JSON. + * @function toJSON + * @memberof cosmos.ics23.v1.CommitmentProof + * @instance + * @returns {Object.} JSON object + */ + CommitmentProof.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return CommitmentProof; + })(); + + v1.LeafOp = (function() { + + /** + * Properties of a LeafOp. + * @memberof cosmos.ics23.v1 + * @interface ILeafOp + * @property {cosmos.ics23.v1.HashOp|null} [hash] LeafOp hash + * @property {cosmos.ics23.v1.HashOp|null} [prehash_key] LeafOp prehash_key + * @property {cosmos.ics23.v1.HashOp|null} [prehash_value] LeafOp prehash_value + * @property {cosmos.ics23.v1.LengthOp|null} [length] LeafOp length + * @property {Uint8Array|null} [prefix] LeafOp prefix + */ + + /** + * Constructs a new LeafOp. + * @memberof cosmos.ics23.v1 + * @classdesc LeafOp represents the raw key-value data we wish to prove, and + * must be flexible to represent the internal transformation from + * the original key-value pairs into the basis hash, for many existing + * merkle trees. + * + * key and value are passed in. So that the signature of this operation is: + * leafOp(key, value) -> output + * + * To process this, first prehash the keys and values if needed (ANY means no hash in this case): + * hkey = prehashKey(key) + * hvalue = prehashValue(value) + * + * Then combine the bytes, and hash it + * output = hash(prefix || length(hkey) || hkey || length(hvalue) || hvalue) + * @implements ILeafOp + * @constructor + * @param {cosmos.ics23.v1.ILeafOp=} [properties] Properties to set + */ + function LeafOp(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; } - if (message.message_type != null && message.hasOwnProperty("message_type")) { - if (!Array.isArray(message.message_type)) - return "message_type: array expected"; - for (var i = 0; i < message.message_type.length; ++i) { - var error = $root.google.protobuf.DescriptorProto.verify(message.message_type[i]); - if (error) - return "message_type." + error; + + /** + * LeafOp hash. + * @member {cosmos.ics23.v1.HashOp} hash + * @memberof cosmos.ics23.v1.LeafOp + * @instance + */ + LeafOp.prototype.hash = 0; + + /** + * LeafOp prehash_key. + * @member {cosmos.ics23.v1.HashOp} prehash_key + * @memberof cosmos.ics23.v1.LeafOp + * @instance + */ + LeafOp.prototype.prehash_key = 0; + + /** + * LeafOp prehash_value. + * @member {cosmos.ics23.v1.HashOp} prehash_value + * @memberof cosmos.ics23.v1.LeafOp + * @instance + */ + LeafOp.prototype.prehash_value = 0; + + /** + * LeafOp length. + * @member {cosmos.ics23.v1.LengthOp} length + * @memberof cosmos.ics23.v1.LeafOp + * @instance + */ + LeafOp.prototype.length = 0; + + /** + * LeafOp prefix. + * @member {Uint8Array} prefix + * @memberof cosmos.ics23.v1.LeafOp + * @instance + */ + LeafOp.prototype.prefix = $util.newBuffer([]); + + /** + * Encodes the specified LeafOp message. Does not implicitly {@link cosmos.ics23.v1.LeafOp.verify|verify} messages. + * @function encode + * @memberof cosmos.ics23.v1.LeafOp + * @static + * @param {cosmos.ics23.v1.ILeafOp} message LeafOp message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + LeafOp.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.hash != null && Object.hasOwnProperty.call(message, "hash")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.hash); + if (message.prehash_key != null && Object.hasOwnProperty.call(message, "prehash_key")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.prehash_key); + if (message.prehash_value != null && Object.hasOwnProperty.call(message, "prehash_value")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.prehash_value); + if (message.length != null && Object.hasOwnProperty.call(message, "length")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.length); + if (message.prefix != null && Object.hasOwnProperty.call(message, "prefix")) + writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.prefix); + return writer; + }; + + /** + * Encodes the specified LeafOp message, length delimited. Does not implicitly {@link cosmos.ics23.v1.LeafOp.verify|verify} messages. + * @function encodeDelimited + * @memberof cosmos.ics23.v1.LeafOp + * @static + * @param {cosmos.ics23.v1.ILeafOp} message LeafOp message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + LeafOp.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a LeafOp message from the specified reader or buffer. + * @function decode + * @memberof cosmos.ics23.v1.LeafOp + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {cosmos.ics23.v1.LeafOp} LeafOp + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + LeafOp.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.cosmos.ics23.v1.LeafOp(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.hash = reader.int32(); + break; + case 2: + message.prehash_key = reader.int32(); + break; + case 3: + message.prehash_value = reader.int32(); + break; + case 4: + message.length = reader.int32(); + break; + case 5: + message.prefix = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a LeafOp message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof cosmos.ics23.v1.LeafOp + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {cosmos.ics23.v1.LeafOp} LeafOp + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + LeafOp.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a LeafOp message. + * @function verify + * @memberof cosmos.ics23.v1.LeafOp + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + LeafOp.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.hash != null && message.hasOwnProperty("hash")) + switch (message.hash) { + default: + return "hash: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + break; + } + if (message.prehash_key != null && message.hasOwnProperty("prehash_key")) + switch (message.prehash_key) { + default: + return "prehash_key: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + break; + } + if (message.prehash_value != null && message.hasOwnProperty("prehash_value")) + switch (message.prehash_value) { + default: + return "prehash_value: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + break; + } + if (message.length != null && message.hasOwnProperty("length")) + switch (message.length) { + default: + return "length: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + break; + } + if (message.prefix != null && message.hasOwnProperty("prefix")) + if (!(message.prefix && typeof message.prefix.length === "number" || $util.isString(message.prefix))) + return "prefix: buffer expected"; + return null; + }; + + /** + * Creates a LeafOp message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof cosmos.ics23.v1.LeafOp + * @static + * @param {Object.} object Plain object + * @returns {cosmos.ics23.v1.LeafOp} LeafOp + */ + LeafOp.fromObject = function fromObject(object) { + if (object instanceof $root.cosmos.ics23.v1.LeafOp) + return object; + var message = new $root.cosmos.ics23.v1.LeafOp(); + switch (object.hash) { + case "NO_HASH": + case 0: + message.hash = 0; + break; + case "SHA256": + case 1: + message.hash = 1; + break; + case "SHA512": + case 2: + message.hash = 2; + break; + case "KECCAK": + case 3: + message.hash = 3; + break; + case "RIPEMD160": + case 4: + message.hash = 4; + break; + case "BITCOIN": + case 5: + message.hash = 5; + break; + case "SHA512_256": + case 6: + message.hash = 6; + break; + } + switch (object.prehash_key) { + case "NO_HASH": + case 0: + message.prehash_key = 0; + break; + case "SHA256": + case 1: + message.prehash_key = 1; + break; + case "SHA512": + case 2: + message.prehash_key = 2; + break; + case "KECCAK": + case 3: + message.prehash_key = 3; + break; + case "RIPEMD160": + case 4: + message.prehash_key = 4; + break; + case "BITCOIN": + case 5: + message.prehash_key = 5; + break; + case "SHA512_256": + case 6: + message.prehash_key = 6; + break; + } + switch (object.prehash_value) { + case "NO_HASH": + case 0: + message.prehash_value = 0; + break; + case "SHA256": + case 1: + message.prehash_value = 1; + break; + case "SHA512": + case 2: + message.prehash_value = 2; + break; + case "KECCAK": + case 3: + message.prehash_value = 3; + break; + case "RIPEMD160": + case 4: + message.prehash_value = 4; + break; + case "BITCOIN": + case 5: + message.prehash_value = 5; + break; + case "SHA512_256": + case 6: + message.prehash_value = 6; + break; + } + switch (object.length) { + case "NO_PREFIX": + case 0: + message.length = 0; + break; + case "VAR_PROTO": + case 1: + message.length = 1; + break; + case "VAR_RLP": + case 2: + message.length = 2; + break; + case "FIXED32_BIG": + case 3: + message.length = 3; + break; + case "FIXED32_LITTLE": + case 4: + message.length = 4; + break; + case "FIXED64_BIG": + case 5: + message.length = 5; + break; + case "FIXED64_LITTLE": + case 6: + message.length = 6; + break; + case "REQUIRE_32_BYTES": + case 7: + message.length = 7; + break; + case "REQUIRE_64_BYTES": + case 8: + message.length = 8; + break; } + if (object.prefix != null) + if (typeof object.prefix === "string") + $util.base64.decode(object.prefix, message.prefix = $util.newBuffer($util.base64.length(object.prefix)), 0); + else if (object.prefix.length) + message.prefix = object.prefix; + return message; + }; + + /** + * Creates a plain object from a LeafOp message. Also converts values to other types if specified. + * @function toObject + * @memberof cosmos.ics23.v1.LeafOp + * @static + * @param {cosmos.ics23.v1.LeafOp} message LeafOp + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + LeafOp.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.hash = options.enums === String ? "NO_HASH" : 0; + object.prehash_key = options.enums === String ? "NO_HASH" : 0; + object.prehash_value = options.enums === String ? "NO_HASH" : 0; + object.length = options.enums === String ? "NO_PREFIX" : 0; + if (options.bytes === String) + object.prefix = ""; + else { + object.prefix = []; + if (options.bytes !== Array) + object.prefix = $util.newBuffer(object.prefix); + } + } + if (message.hash != null && message.hasOwnProperty("hash")) + object.hash = options.enums === String ? $root.cosmos.ics23.v1.HashOp[message.hash] : message.hash; + if (message.prehash_key != null && message.hasOwnProperty("prehash_key")) + object.prehash_key = options.enums === String ? $root.cosmos.ics23.v1.HashOp[message.prehash_key] : message.prehash_key; + if (message.prehash_value != null && message.hasOwnProperty("prehash_value")) + object.prehash_value = options.enums === String ? $root.cosmos.ics23.v1.HashOp[message.prehash_value] : message.prehash_value; + if (message.length != null && message.hasOwnProperty("length")) + object.length = options.enums === String ? $root.cosmos.ics23.v1.LengthOp[message.length] : message.length; + if (message.prefix != null && message.hasOwnProperty("prefix")) + object.prefix = options.bytes === String ? $util.base64.encode(message.prefix, 0, message.prefix.length) : options.bytes === Array ? Array.prototype.slice.call(message.prefix) : message.prefix; + return object; + }; + + /** + * Converts this LeafOp to JSON. + * @function toJSON + * @memberof cosmos.ics23.v1.LeafOp + * @instance + * @returns {Object.} JSON object + */ + LeafOp.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return LeafOp; + })(); + + v1.InnerOp = (function() { + + /** + * Properties of an InnerOp. + * @memberof cosmos.ics23.v1 + * @interface IInnerOp + * @property {cosmos.ics23.v1.HashOp|null} [hash] InnerOp hash + * @property {Uint8Array|null} [prefix] InnerOp prefix + * @property {Uint8Array|null} [suffix] InnerOp suffix + */ + + /** + * Constructs a new InnerOp. + * @memberof cosmos.ics23.v1 + * @classdesc InnerOp represents a merkle-proof step that is not a leaf. + * It represents concatenating two children and hashing them to provide the next result. + * + * The result of the previous step is passed in, so the signature of this op is: + * innerOp(child) -> output + * + * The result of applying InnerOp should be: + * output = op.hash(op.prefix || child || op.suffix) + * + * where the || operator is concatenation of binary data, + * and child is the result of hashing all the tree below this step. + * + * Any special data, like prepending child with the length, or prepending the entire operation with + * some value to differentiate from leaf nodes, should be included in prefix and suffix. + * If either of prefix or suffix is empty, we just treat it as an empty string + * @implements IInnerOp + * @constructor + * @param {cosmos.ics23.v1.IInnerOp=} [properties] Properties to set + */ + function InnerOp(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; } - if (message.enum_type != null && message.hasOwnProperty("enum_type")) { - if (!Array.isArray(message.enum_type)) - return "enum_type: array expected"; - for (var i = 0; i < message.enum_type.length; ++i) { - var error = $root.google.protobuf.EnumDescriptorProto.verify(message.enum_type[i]); - if (error) - return "enum_type." + error; + + /** + * InnerOp hash. + * @member {cosmos.ics23.v1.HashOp} hash + * @memberof cosmos.ics23.v1.InnerOp + * @instance + */ + InnerOp.prototype.hash = 0; + + /** + * InnerOp prefix. + * @member {Uint8Array} prefix + * @memberof cosmos.ics23.v1.InnerOp + * @instance + */ + InnerOp.prototype.prefix = $util.newBuffer([]); + + /** + * InnerOp suffix. + * @member {Uint8Array} suffix + * @memberof cosmos.ics23.v1.InnerOp + * @instance + */ + InnerOp.prototype.suffix = $util.newBuffer([]); + + /** + * Encodes the specified InnerOp message. Does not implicitly {@link cosmos.ics23.v1.InnerOp.verify|verify} messages. + * @function encode + * @memberof cosmos.ics23.v1.InnerOp + * @static + * @param {cosmos.ics23.v1.IInnerOp} message InnerOp message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InnerOp.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.hash != null && Object.hasOwnProperty.call(message, "hash")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.hash); + if (message.prefix != null && Object.hasOwnProperty.call(message, "prefix")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.prefix); + if (message.suffix != null && Object.hasOwnProperty.call(message, "suffix")) + writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.suffix); + return writer; + }; + + /** + * Encodes the specified InnerOp message, length delimited. Does not implicitly {@link cosmos.ics23.v1.InnerOp.verify|verify} messages. + * @function encodeDelimited + * @memberof cosmos.ics23.v1.InnerOp + * @static + * @param {cosmos.ics23.v1.IInnerOp} message InnerOp message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InnerOp.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an InnerOp message from the specified reader or buffer. + * @function decode + * @memberof cosmos.ics23.v1.InnerOp + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {cosmos.ics23.v1.InnerOp} InnerOp + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InnerOp.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.cosmos.ics23.v1.InnerOp(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.hash = reader.int32(); + break; + case 2: + message.prefix = reader.bytes(); + break; + case 3: + message.suffix = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an InnerOp message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof cosmos.ics23.v1.InnerOp + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {cosmos.ics23.v1.InnerOp} InnerOp + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InnerOp.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an InnerOp message. + * @function verify + * @memberof cosmos.ics23.v1.InnerOp + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + InnerOp.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.hash != null && message.hasOwnProperty("hash")) + switch (message.hash) { + default: + return "hash: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + break; + } + if (message.prefix != null && message.hasOwnProperty("prefix")) + if (!(message.prefix && typeof message.prefix.length === "number" || $util.isString(message.prefix))) + return "prefix: buffer expected"; + if (message.suffix != null && message.hasOwnProperty("suffix")) + if (!(message.suffix && typeof message.suffix.length === "number" || $util.isString(message.suffix))) + return "suffix: buffer expected"; + return null; + }; + + /** + * Creates an InnerOp message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof cosmos.ics23.v1.InnerOp + * @static + * @param {Object.} object Plain object + * @returns {cosmos.ics23.v1.InnerOp} InnerOp + */ + InnerOp.fromObject = function fromObject(object) { + if (object instanceof $root.cosmos.ics23.v1.InnerOp) + return object; + var message = new $root.cosmos.ics23.v1.InnerOp(); + switch (object.hash) { + case "NO_HASH": + case 0: + message.hash = 0; + break; + case "SHA256": + case 1: + message.hash = 1; + break; + case "SHA512": + case 2: + message.hash = 2; + break; + case "KECCAK": + case 3: + message.hash = 3; + break; + case "RIPEMD160": + case 4: + message.hash = 4; + break; + case "BITCOIN": + case 5: + message.hash = 5; + break; + case "SHA512_256": + case 6: + message.hash = 6; + break; + } + if (object.prefix != null) + if (typeof object.prefix === "string") + $util.base64.decode(object.prefix, message.prefix = $util.newBuffer($util.base64.length(object.prefix)), 0); + else if (object.prefix.length) + message.prefix = object.prefix; + if (object.suffix != null) + if (typeof object.suffix === "string") + $util.base64.decode(object.suffix, message.suffix = $util.newBuffer($util.base64.length(object.suffix)), 0); + else if (object.suffix.length) + message.suffix = object.suffix; + return message; + }; + + /** + * Creates a plain object from an InnerOp message. Also converts values to other types if specified. + * @function toObject + * @memberof cosmos.ics23.v1.InnerOp + * @static + * @param {cosmos.ics23.v1.InnerOp} message InnerOp + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + InnerOp.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.hash = options.enums === String ? "NO_HASH" : 0; + if (options.bytes === String) + object.prefix = ""; + else { + object.prefix = []; + if (options.bytes !== Array) + object.prefix = $util.newBuffer(object.prefix); + } + if (options.bytes === String) + object.suffix = ""; + else { + object.suffix = []; + if (options.bytes !== Array) + object.suffix = $util.newBuffer(object.suffix); + } } + if (message.hash != null && message.hasOwnProperty("hash")) + object.hash = options.enums === String ? $root.cosmos.ics23.v1.HashOp[message.hash] : message.hash; + if (message.prefix != null && message.hasOwnProperty("prefix")) + object.prefix = options.bytes === String ? $util.base64.encode(message.prefix, 0, message.prefix.length) : options.bytes === Array ? Array.prototype.slice.call(message.prefix) : message.prefix; + if (message.suffix != null && message.hasOwnProperty("suffix")) + object.suffix = options.bytes === String ? $util.base64.encode(message.suffix, 0, message.suffix.length) : options.bytes === Array ? Array.prototype.slice.call(message.suffix) : message.suffix; + return object; + }; + + /** + * Converts this InnerOp to JSON. + * @function toJSON + * @memberof cosmos.ics23.v1.InnerOp + * @instance + * @returns {Object.} JSON object + */ + InnerOp.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return InnerOp; + })(); + + v1.ProofSpec = (function() { + + /** + * Properties of a ProofSpec. + * @memberof cosmos.ics23.v1 + * @interface IProofSpec + * @property {cosmos.ics23.v1.ILeafOp|null} [leaf_spec] ProofSpec leaf_spec + * @property {cosmos.ics23.v1.IInnerSpec|null} [inner_spec] ProofSpec inner_spec + * @property {number|null} [max_depth] ProofSpec max_depth + * @property {number|null} [min_depth] ProofSpec min_depth + */ + + /** + * Constructs a new ProofSpec. + * @memberof cosmos.ics23.v1 + * @classdesc ProofSpec defines what the expected parameters are for a given proof type. + * This can be stored in the client and used to validate any incoming proofs. + * + * verify(ProofSpec, Proof) -> Proof | Error + * + * As demonstrated in tests, if we don't fix the algorithm used to calculate the + * LeafHash for a given tree, there are many possible key-value pairs that can + * generate a given hash (by interpretting the preimage differently). + * We need this for proper security, requires client knows a priori what + * tree format server uses. But not in code, rather a configuration object. + * @implements IProofSpec + * @constructor + * @param {cosmos.ics23.v1.IProofSpec=} [properties] Properties to set + */ + function ProofSpec(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; } - if (message.service != null && message.hasOwnProperty("service")) { - if (!Array.isArray(message.service)) - return "service: array expected"; - for (var i = 0; i < message.service.length; ++i) { - var error = $root.google.protobuf.ServiceDescriptorProto.verify(message.service[i]); + + /** + * ProofSpec leaf_spec. + * @member {cosmos.ics23.v1.ILeafOp|null|undefined} leaf_spec + * @memberof cosmos.ics23.v1.ProofSpec + * @instance + */ + ProofSpec.prototype.leaf_spec = null; + + /** + * ProofSpec inner_spec. + * @member {cosmos.ics23.v1.IInnerSpec|null|undefined} inner_spec + * @memberof cosmos.ics23.v1.ProofSpec + * @instance + */ + ProofSpec.prototype.inner_spec = null; + + /** + * ProofSpec max_depth. + * @member {number} max_depth + * @memberof cosmos.ics23.v1.ProofSpec + * @instance + */ + ProofSpec.prototype.max_depth = 0; + + /** + * ProofSpec min_depth. + * @member {number} min_depth + * @memberof cosmos.ics23.v1.ProofSpec + * @instance + */ + ProofSpec.prototype.min_depth = 0; + + /** + * Encodes the specified ProofSpec message. Does not implicitly {@link cosmos.ics23.v1.ProofSpec.verify|verify} messages. + * @function encode + * @memberof cosmos.ics23.v1.ProofSpec + * @static + * @param {cosmos.ics23.v1.IProofSpec} message ProofSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ProofSpec.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.leaf_spec != null && Object.hasOwnProperty.call(message, "leaf_spec")) + $root.cosmos.ics23.v1.LeafOp.encode(message.leaf_spec, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.inner_spec != null && Object.hasOwnProperty.call(message, "inner_spec")) + $root.cosmos.ics23.v1.InnerSpec.encode(message.inner_spec, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.max_depth != null && Object.hasOwnProperty.call(message, "max_depth")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.max_depth); + if (message.min_depth != null && Object.hasOwnProperty.call(message, "min_depth")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.min_depth); + return writer; + }; + + /** + * Encodes the specified ProofSpec message, length delimited. Does not implicitly {@link cosmos.ics23.v1.ProofSpec.verify|verify} messages. + * @function encodeDelimited + * @memberof cosmos.ics23.v1.ProofSpec + * @static + * @param {cosmos.ics23.v1.IProofSpec} message ProofSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ProofSpec.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ProofSpec message from the specified reader or buffer. + * @function decode + * @memberof cosmos.ics23.v1.ProofSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {cosmos.ics23.v1.ProofSpec} ProofSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ProofSpec.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.cosmos.ics23.v1.ProofSpec(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.leaf_spec = $root.cosmos.ics23.v1.LeafOp.decode(reader, reader.uint32()); + break; + case 2: + message.inner_spec = $root.cosmos.ics23.v1.InnerSpec.decode(reader, reader.uint32()); + break; + case 3: + message.max_depth = reader.int32(); + break; + case 4: + message.min_depth = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ProofSpec message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof cosmos.ics23.v1.ProofSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {cosmos.ics23.v1.ProofSpec} ProofSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ProofSpec.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ProofSpec message. + * @function verify + * @memberof cosmos.ics23.v1.ProofSpec + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ProofSpec.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.leaf_spec != null && message.hasOwnProperty("leaf_spec")) { + var error = $root.cosmos.ics23.v1.LeafOp.verify(message.leaf_spec); if (error) - return "service." + error; + return "leaf_spec." + error; } - } - if (message.extension != null && message.hasOwnProperty("extension")) { - if (!Array.isArray(message.extension)) - return "extension: array expected"; - for (var i = 0; i < message.extension.length; ++i) { - var error = $root.google.protobuf.FieldDescriptorProto.verify(message.extension[i]); + if (message.inner_spec != null && message.hasOwnProperty("inner_spec")) { + var error = $root.cosmos.ics23.v1.InnerSpec.verify(message.inner_spec); if (error) - return "extension." + error; - } - } - if (message.options != null && message.hasOwnProperty("options")) { - var error = $root.google.protobuf.FileOptions.verify(message.options); - if (error) - return "options." + error; - } - if (message.source_code_info != null && message.hasOwnProperty("source_code_info")) { - var error = $root.google.protobuf.SourceCodeInfo.verify(message.source_code_info); - if (error) - return "source_code_info." + error; - } - if (message.syntax != null && message.hasOwnProperty("syntax")) - if (!$util.isString(message.syntax)) - return "syntax: string expected"; - return null; - }; + return "inner_spec." + error; + } + if (message.max_depth != null && message.hasOwnProperty("max_depth")) + if (!$util.isInteger(message.max_depth)) + return "max_depth: integer expected"; + if (message.min_depth != null && message.hasOwnProperty("min_depth")) + if (!$util.isInteger(message.min_depth)) + return "min_depth: integer expected"; + return null; + }; - /** - * Creates a FileDescriptorProto message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.FileDescriptorProto - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.FileDescriptorProto} FileDescriptorProto - */ - FileDescriptorProto.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.FileDescriptorProto) + /** + * Creates a ProofSpec message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof cosmos.ics23.v1.ProofSpec + * @static + * @param {Object.} object Plain object + * @returns {cosmos.ics23.v1.ProofSpec} ProofSpec + */ + ProofSpec.fromObject = function fromObject(object) { + if (object instanceof $root.cosmos.ics23.v1.ProofSpec) + return object; + var message = new $root.cosmos.ics23.v1.ProofSpec(); + if (object.leaf_spec != null) { + if (typeof object.leaf_spec !== "object") + throw TypeError(".cosmos.ics23.v1.ProofSpec.leaf_spec: object expected"); + message.leaf_spec = $root.cosmos.ics23.v1.LeafOp.fromObject(object.leaf_spec); + } + if (object.inner_spec != null) { + if (typeof object.inner_spec !== "object") + throw TypeError(".cosmos.ics23.v1.ProofSpec.inner_spec: object expected"); + message.inner_spec = $root.cosmos.ics23.v1.InnerSpec.fromObject(object.inner_spec); + } + if (object.max_depth != null) + message.max_depth = object.max_depth | 0; + if (object.min_depth != null) + message.min_depth = object.min_depth | 0; + return message; + }; + + /** + * Creates a plain object from a ProofSpec message. Also converts values to other types if specified. + * @function toObject + * @memberof cosmos.ics23.v1.ProofSpec + * @static + * @param {cosmos.ics23.v1.ProofSpec} message ProofSpec + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ProofSpec.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.leaf_spec = null; + object.inner_spec = null; + object.max_depth = 0; + object.min_depth = 0; + } + if (message.leaf_spec != null && message.hasOwnProperty("leaf_spec")) + object.leaf_spec = $root.cosmos.ics23.v1.LeafOp.toObject(message.leaf_spec, options); + if (message.inner_spec != null && message.hasOwnProperty("inner_spec")) + object.inner_spec = $root.cosmos.ics23.v1.InnerSpec.toObject(message.inner_spec, options); + if (message.max_depth != null && message.hasOwnProperty("max_depth")) + object.max_depth = message.max_depth; + if (message.min_depth != null && message.hasOwnProperty("min_depth")) + object.min_depth = message.min_depth; return object; - var message = new $root.google.protobuf.FileDescriptorProto(); - if (object.name != null) - message.name = String(object.name); - if (object["package"] != null) - message["package"] = String(object["package"]); - if (object.dependency) { - if (!Array.isArray(object.dependency)) - throw TypeError(".google.protobuf.FileDescriptorProto.dependency: array expected"); - message.dependency = []; - for (var i = 0; i < object.dependency.length; ++i) - message.dependency[i] = String(object.dependency[i]); - } - if (object.public_dependency) { - if (!Array.isArray(object.public_dependency)) - throw TypeError(".google.protobuf.FileDescriptorProto.public_dependency: array expected"); - message.public_dependency = []; - for (var i = 0; i < object.public_dependency.length; ++i) - message.public_dependency[i] = object.public_dependency[i] | 0; - } - if (object.weak_dependency) { - if (!Array.isArray(object.weak_dependency)) - throw TypeError(".google.protobuf.FileDescriptorProto.weak_dependency: array expected"); - message.weak_dependency = []; - for (var i = 0; i < object.weak_dependency.length; ++i) - message.weak_dependency[i] = object.weak_dependency[i] | 0; + }; + + /** + * Converts this ProofSpec to JSON. + * @function toJSON + * @memberof cosmos.ics23.v1.ProofSpec + * @instance + * @returns {Object.} JSON object + */ + ProofSpec.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ProofSpec; + })(); + + v1.InnerSpec = (function() { + + /** + * Properties of an InnerSpec. + * @memberof cosmos.ics23.v1 + * @interface IInnerSpec + * @property {Array.|null} [child_order] InnerSpec child_order + * @property {number|null} [child_size] InnerSpec child_size + * @property {number|null} [min_prefix_length] InnerSpec min_prefix_length + * @property {number|null} [max_prefix_length] InnerSpec max_prefix_length + * @property {Uint8Array|null} [empty_child] InnerSpec empty_child + * @property {cosmos.ics23.v1.HashOp|null} [hash] InnerSpec hash + */ + + /** + * Constructs a new InnerSpec. + * @memberof cosmos.ics23.v1 + * @classdesc Represents an InnerSpec. + * @implements IInnerSpec + * @constructor + * @param {cosmos.ics23.v1.IInnerSpec=} [properties] Properties to set + */ + function InnerSpec(properties) { + this.child_order = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; } - if (object.message_type) { - if (!Array.isArray(object.message_type)) - throw TypeError(".google.protobuf.FileDescriptorProto.message_type: array expected"); - message.message_type = []; - for (var i = 0; i < object.message_type.length; ++i) { - if (typeof object.message_type[i] !== "object") - throw TypeError(".google.protobuf.FileDescriptorProto.message_type: object expected"); - message.message_type[i] = $root.google.protobuf.DescriptorProto.fromObject(object.message_type[i]); + + /** + * InnerSpec child_order. + * @member {Array.} child_order + * @memberof cosmos.ics23.v1.InnerSpec + * @instance + */ + InnerSpec.prototype.child_order = $util.emptyArray; + + /** + * InnerSpec child_size. + * @member {number} child_size + * @memberof cosmos.ics23.v1.InnerSpec + * @instance + */ + InnerSpec.prototype.child_size = 0; + + /** + * InnerSpec min_prefix_length. + * @member {number} min_prefix_length + * @memberof cosmos.ics23.v1.InnerSpec + * @instance + */ + InnerSpec.prototype.min_prefix_length = 0; + + /** + * InnerSpec max_prefix_length. + * @member {number} max_prefix_length + * @memberof cosmos.ics23.v1.InnerSpec + * @instance + */ + InnerSpec.prototype.max_prefix_length = 0; + + /** + * InnerSpec empty_child. + * @member {Uint8Array} empty_child + * @memberof cosmos.ics23.v1.InnerSpec + * @instance + */ + InnerSpec.prototype.empty_child = $util.newBuffer([]); + + /** + * InnerSpec hash. + * @member {cosmos.ics23.v1.HashOp} hash + * @memberof cosmos.ics23.v1.InnerSpec + * @instance + */ + InnerSpec.prototype.hash = 0; + + /** + * Encodes the specified InnerSpec message. Does not implicitly {@link cosmos.ics23.v1.InnerSpec.verify|verify} messages. + * @function encode + * @memberof cosmos.ics23.v1.InnerSpec + * @static + * @param {cosmos.ics23.v1.IInnerSpec} message InnerSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InnerSpec.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.child_order != null && message.child_order.length) { + writer.uint32(/* id 1, wireType 2 =*/10).fork(); + for (var i = 0; i < message.child_order.length; ++i) + writer.int32(message.child_order[i]); + writer.ldelim(); } - } - if (object.enum_type) { - if (!Array.isArray(object.enum_type)) - throw TypeError(".google.protobuf.FileDescriptorProto.enum_type: array expected"); - message.enum_type = []; - for (var i = 0; i < object.enum_type.length; ++i) { - if (typeof object.enum_type[i] !== "object") - throw TypeError(".google.protobuf.FileDescriptorProto.enum_type: object expected"); - message.enum_type[i] = $root.google.protobuf.EnumDescriptorProto.fromObject(object.enum_type[i]); + if (message.child_size != null && Object.hasOwnProperty.call(message, "child_size")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.child_size); + if (message.min_prefix_length != null && Object.hasOwnProperty.call(message, "min_prefix_length")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.min_prefix_length); + if (message.max_prefix_length != null && Object.hasOwnProperty.call(message, "max_prefix_length")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.max_prefix_length); + if (message.empty_child != null && Object.hasOwnProperty.call(message, "empty_child")) + writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.empty_child); + if (message.hash != null && Object.hasOwnProperty.call(message, "hash")) + writer.uint32(/* id 6, wireType 0 =*/48).int32(message.hash); + return writer; + }; + + /** + * Encodes the specified InnerSpec message, length delimited. Does not implicitly {@link cosmos.ics23.v1.InnerSpec.verify|verify} messages. + * @function encodeDelimited + * @memberof cosmos.ics23.v1.InnerSpec + * @static + * @param {cosmos.ics23.v1.IInnerSpec} message InnerSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InnerSpec.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an InnerSpec message from the specified reader or buffer. + * @function decode + * @memberof cosmos.ics23.v1.InnerSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {cosmos.ics23.v1.InnerSpec} InnerSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InnerSpec.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.cosmos.ics23.v1.InnerSpec(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.child_order && message.child_order.length)) + message.child_order = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.child_order.push(reader.int32()); + } else + message.child_order.push(reader.int32()); + break; + case 2: + message.child_size = reader.int32(); + break; + case 3: + message.min_prefix_length = reader.int32(); + break; + case 4: + message.max_prefix_length = reader.int32(); + break; + case 5: + message.empty_child = reader.bytes(); + break; + case 6: + message.hash = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } } - } - if (object.service) { - if (!Array.isArray(object.service)) - throw TypeError(".google.protobuf.FileDescriptorProto.service: array expected"); - message.service = []; - for (var i = 0; i < object.service.length; ++i) { - if (typeof object.service[i] !== "object") - throw TypeError(".google.protobuf.FileDescriptorProto.service: object expected"); - message.service[i] = $root.google.protobuf.ServiceDescriptorProto.fromObject(object.service[i]); + return message; + }; + + /** + * Decodes an InnerSpec message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof cosmos.ics23.v1.InnerSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {cosmos.ics23.v1.InnerSpec} InnerSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InnerSpec.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an InnerSpec message. + * @function verify + * @memberof cosmos.ics23.v1.InnerSpec + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + InnerSpec.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.child_order != null && message.hasOwnProperty("child_order")) { + if (!Array.isArray(message.child_order)) + return "child_order: array expected"; + for (var i = 0; i < message.child_order.length; ++i) + if (!$util.isInteger(message.child_order[i])) + return "child_order: integer[] expected"; + } + if (message.child_size != null && message.hasOwnProperty("child_size")) + if (!$util.isInteger(message.child_size)) + return "child_size: integer expected"; + if (message.min_prefix_length != null && message.hasOwnProperty("min_prefix_length")) + if (!$util.isInteger(message.min_prefix_length)) + return "min_prefix_length: integer expected"; + if (message.max_prefix_length != null && message.hasOwnProperty("max_prefix_length")) + if (!$util.isInteger(message.max_prefix_length)) + return "max_prefix_length: integer expected"; + if (message.empty_child != null && message.hasOwnProperty("empty_child")) + if (!(message.empty_child && typeof message.empty_child.length === "number" || $util.isString(message.empty_child))) + return "empty_child: buffer expected"; + if (message.hash != null && message.hasOwnProperty("hash")) + switch (message.hash) { + default: + return "hash: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + break; + } + return null; + }; + + /** + * Creates an InnerSpec message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof cosmos.ics23.v1.InnerSpec + * @static + * @param {Object.} object Plain object + * @returns {cosmos.ics23.v1.InnerSpec} InnerSpec + */ + InnerSpec.fromObject = function fromObject(object) { + if (object instanceof $root.cosmos.ics23.v1.InnerSpec) + return object; + var message = new $root.cosmos.ics23.v1.InnerSpec(); + if (object.child_order) { + if (!Array.isArray(object.child_order)) + throw TypeError(".cosmos.ics23.v1.InnerSpec.child_order: array expected"); + message.child_order = []; + for (var i = 0; i < object.child_order.length; ++i) + message.child_order[i] = object.child_order[i] | 0; + } + if (object.child_size != null) + message.child_size = object.child_size | 0; + if (object.min_prefix_length != null) + message.min_prefix_length = object.min_prefix_length | 0; + if (object.max_prefix_length != null) + message.max_prefix_length = object.max_prefix_length | 0; + if (object.empty_child != null) + if (typeof object.empty_child === "string") + $util.base64.decode(object.empty_child, message.empty_child = $util.newBuffer($util.base64.length(object.empty_child)), 0); + else if (object.empty_child.length) + message.empty_child = object.empty_child; + switch (object.hash) { + case "NO_HASH": + case 0: + message.hash = 0; + break; + case "SHA256": + case 1: + message.hash = 1; + break; + case "SHA512": + case 2: + message.hash = 2; + break; + case "KECCAK": + case 3: + message.hash = 3; + break; + case "RIPEMD160": + case 4: + message.hash = 4; + break; + case "BITCOIN": + case 5: + message.hash = 5; + break; + case "SHA512_256": + case 6: + message.hash = 6; + break; } + return message; + }; + + /** + * Creates a plain object from an InnerSpec message. Also converts values to other types if specified. + * @function toObject + * @memberof cosmos.ics23.v1.InnerSpec + * @static + * @param {cosmos.ics23.v1.InnerSpec} message InnerSpec + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + InnerSpec.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.child_order = []; + if (options.defaults) { + object.child_size = 0; + object.min_prefix_length = 0; + object.max_prefix_length = 0; + if (options.bytes === String) + object.empty_child = ""; + else { + object.empty_child = []; + if (options.bytes !== Array) + object.empty_child = $util.newBuffer(object.empty_child); + } + object.hash = options.enums === String ? "NO_HASH" : 0; + } + if (message.child_order && message.child_order.length) { + object.child_order = []; + for (var j = 0; j < message.child_order.length; ++j) + object.child_order[j] = message.child_order[j]; + } + if (message.child_size != null && message.hasOwnProperty("child_size")) + object.child_size = message.child_size; + if (message.min_prefix_length != null && message.hasOwnProperty("min_prefix_length")) + object.min_prefix_length = message.min_prefix_length; + if (message.max_prefix_length != null && message.hasOwnProperty("max_prefix_length")) + object.max_prefix_length = message.max_prefix_length; + if (message.empty_child != null && message.hasOwnProperty("empty_child")) + object.empty_child = options.bytes === String ? $util.base64.encode(message.empty_child, 0, message.empty_child.length) : options.bytes === Array ? Array.prototype.slice.call(message.empty_child) : message.empty_child; + if (message.hash != null && message.hasOwnProperty("hash")) + object.hash = options.enums === String ? $root.cosmos.ics23.v1.HashOp[message.hash] : message.hash; + return object; + }; + + /** + * Converts this InnerSpec to JSON. + * @function toJSON + * @memberof cosmos.ics23.v1.InnerSpec + * @instance + * @returns {Object.} JSON object + */ + InnerSpec.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return InnerSpec; + })(); + + v1.BatchProof = (function() { + + /** + * Properties of a BatchProof. + * @memberof cosmos.ics23.v1 + * @interface IBatchProof + * @property {Array.|null} [entries] BatchProof entries + */ + + /** + * Constructs a new BatchProof. + * @memberof cosmos.ics23.v1 + * @classdesc Represents a BatchProof. + * @implements IBatchProof + * @constructor + * @param {cosmos.ics23.v1.IBatchProof=} [properties] Properties to set + */ + function BatchProof(properties) { + this.entries = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; } - if (object.extension) { - if (!Array.isArray(object.extension)) - throw TypeError(".google.protobuf.FileDescriptorProto.extension: array expected"); - message.extension = []; - for (var i = 0; i < object.extension.length; ++i) { - if (typeof object.extension[i] !== "object") - throw TypeError(".google.protobuf.FileDescriptorProto.extension: object expected"); - message.extension[i] = $root.google.protobuf.FieldDescriptorProto.fromObject(object.extension[i]); + + /** + * BatchProof entries. + * @member {Array.} entries + * @memberof cosmos.ics23.v1.BatchProof + * @instance + */ + BatchProof.prototype.entries = $util.emptyArray; + + /** + * Encodes the specified BatchProof message. Does not implicitly {@link cosmos.ics23.v1.BatchProof.verify|verify} messages. + * @function encode + * @memberof cosmos.ics23.v1.BatchProof + * @static + * @param {cosmos.ics23.v1.IBatchProof} message BatchProof message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BatchProof.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.entries != null && message.entries.length) + for (var i = 0; i < message.entries.length; ++i) + $root.cosmos.ics23.v1.BatchEntry.encode(message.entries[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified BatchProof message, length delimited. Does not implicitly {@link cosmos.ics23.v1.BatchProof.verify|verify} messages. + * @function encodeDelimited + * @memberof cosmos.ics23.v1.BatchProof + * @static + * @param {cosmos.ics23.v1.IBatchProof} message BatchProof message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BatchProof.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a BatchProof message from the specified reader or buffer. + * @function decode + * @memberof cosmos.ics23.v1.BatchProof + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {cosmos.ics23.v1.BatchProof} BatchProof + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BatchProof.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.cosmos.ics23.v1.BatchProof(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.entries && message.entries.length)) + message.entries = []; + message.entries.push($root.cosmos.ics23.v1.BatchEntry.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } } - } - if (object.options != null) { - if (typeof object.options !== "object") - throw TypeError(".google.protobuf.FileDescriptorProto.options: object expected"); - message.options = $root.google.protobuf.FileOptions.fromObject(object.options); - } - if (object.source_code_info != null) { - if (typeof object.source_code_info !== "object") - throw TypeError(".google.protobuf.FileDescriptorProto.source_code_info: object expected"); - message.source_code_info = $root.google.protobuf.SourceCodeInfo.fromObject(object.source_code_info); - } - if (object.syntax != null) - message.syntax = String(object.syntax); - return message; - }; + return message; + }; - /** - * Creates a plain object from a FileDescriptorProto message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.FileDescriptorProto - * @static - * @param {google.protobuf.FileDescriptorProto} message FileDescriptorProto - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - FileDescriptorProto.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) { - object.dependency = []; - object.message_type = []; - object.enum_type = []; - object.service = []; - object.extension = []; - object.public_dependency = []; - object.weak_dependency = []; - } - if (options.defaults) { - object.name = ""; - object["package"] = ""; - object.options = null; - object.source_code_info = null; - object.syntax = ""; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message["package"] != null && message.hasOwnProperty("package")) - object["package"] = message["package"]; - if (message.dependency && message.dependency.length) { - object.dependency = []; - for (var j = 0; j < message.dependency.length; ++j) - object.dependency[j] = message.dependency[j]; - } - if (message.message_type && message.message_type.length) { - object.message_type = []; - for (var j = 0; j < message.message_type.length; ++j) - object.message_type[j] = $root.google.protobuf.DescriptorProto.toObject(message.message_type[j], options); - } - if (message.enum_type && message.enum_type.length) { - object.enum_type = []; - for (var j = 0; j < message.enum_type.length; ++j) - object.enum_type[j] = $root.google.protobuf.EnumDescriptorProto.toObject(message.enum_type[j], options); - } - if (message.service && message.service.length) { - object.service = []; - for (var j = 0; j < message.service.length; ++j) - object.service[j] = $root.google.protobuf.ServiceDescriptorProto.toObject(message.service[j], options); - } - if (message.extension && message.extension.length) { - object.extension = []; - for (var j = 0; j < message.extension.length; ++j) - object.extension[j] = $root.google.protobuf.FieldDescriptorProto.toObject(message.extension[j], options); - } - if (message.options != null && message.hasOwnProperty("options")) - object.options = $root.google.protobuf.FileOptions.toObject(message.options, options); - if (message.source_code_info != null && message.hasOwnProperty("source_code_info")) - object.source_code_info = $root.google.protobuf.SourceCodeInfo.toObject(message.source_code_info, options); - if (message.public_dependency && message.public_dependency.length) { - object.public_dependency = []; - for (var j = 0; j < message.public_dependency.length; ++j) - object.public_dependency[j] = message.public_dependency[j]; - } - if (message.weak_dependency && message.weak_dependency.length) { - object.weak_dependency = []; - for (var j = 0; j < message.weak_dependency.length; ++j) - object.weak_dependency[j] = message.weak_dependency[j]; - } - if (message.syntax != null && message.hasOwnProperty("syntax")) - object.syntax = message.syntax; - return object; - }; + /** + * Decodes a BatchProof message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof cosmos.ics23.v1.BatchProof + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {cosmos.ics23.v1.BatchProof} BatchProof + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BatchProof.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Converts this FileDescriptorProto to JSON. - * @function toJSON - * @memberof google.protobuf.FileDescriptorProto - * @instance - * @returns {Object.} JSON object - */ - FileDescriptorProto.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Verifies a BatchProof message. + * @function verify + * @memberof cosmos.ics23.v1.BatchProof + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + BatchProof.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.entries != null && message.hasOwnProperty("entries")) { + if (!Array.isArray(message.entries)) + return "entries: array expected"; + for (var i = 0; i < message.entries.length; ++i) { + var error = $root.cosmos.ics23.v1.BatchEntry.verify(message.entries[i]); + if (error) + return "entries." + error; + } + } + return null; + }; + + /** + * Creates a BatchProof message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof cosmos.ics23.v1.BatchProof + * @static + * @param {Object.} object Plain object + * @returns {cosmos.ics23.v1.BatchProof} BatchProof + */ + BatchProof.fromObject = function fromObject(object) { + if (object instanceof $root.cosmos.ics23.v1.BatchProof) + return object; + var message = new $root.cosmos.ics23.v1.BatchProof(); + if (object.entries) { + if (!Array.isArray(object.entries)) + throw TypeError(".cosmos.ics23.v1.BatchProof.entries: array expected"); + message.entries = []; + for (var i = 0; i < object.entries.length; ++i) { + if (typeof object.entries[i] !== "object") + throw TypeError(".cosmos.ics23.v1.BatchProof.entries: object expected"); + message.entries[i] = $root.cosmos.ics23.v1.BatchEntry.fromObject(object.entries[i]); + } + } + return message; + }; - return FileDescriptorProto; - })(); + /** + * Creates a plain object from a BatchProof message. Also converts values to other types if specified. + * @function toObject + * @memberof cosmos.ics23.v1.BatchProof + * @static + * @param {cosmos.ics23.v1.BatchProof} message BatchProof + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + BatchProof.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.entries = []; + if (message.entries && message.entries.length) { + object.entries = []; + for (var j = 0; j < message.entries.length; ++j) + object.entries[j] = $root.cosmos.ics23.v1.BatchEntry.toObject(message.entries[j], options); + } + return object; + }; - protobuf.DescriptorProto = (function() { + /** + * Converts this BatchProof to JSON. + * @function toJSON + * @memberof cosmos.ics23.v1.BatchProof + * @instance + * @returns {Object.} JSON object + */ + BatchProof.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Properties of a DescriptorProto. - * @memberof google.protobuf - * @interface IDescriptorProto - * @property {string|null} [name] DescriptorProto name - * @property {Array.|null} [field] DescriptorProto field - * @property {Array.|null} [extension] DescriptorProto extension - * @property {Array.|null} [nested_type] DescriptorProto nested_type - * @property {Array.|null} [enum_type] DescriptorProto enum_type - * @property {Array.|null} [extension_range] DescriptorProto extension_range - * @property {Array.|null} [oneof_decl] DescriptorProto oneof_decl - * @property {google.protobuf.IMessageOptions|null} [options] DescriptorProto options - * @property {Array.|null} [reserved_range] DescriptorProto reserved_range - * @property {Array.|null} [reserved_name] DescriptorProto reserved_name - */ + return BatchProof; + })(); - /** - * Constructs a new DescriptorProto. - * @memberof google.protobuf - * @classdesc Represents a DescriptorProto. - * @implements IDescriptorProto - * @constructor - * @param {google.protobuf.IDescriptorProto=} [properties] Properties to set - */ - function DescriptorProto(properties) { - this.field = []; - this.extension = []; - this.nested_type = []; - this.enum_type = []; - this.extension_range = []; - this.oneof_decl = []; - this.reserved_range = []; - this.reserved_name = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + v1.BatchEntry = (function() { - /** - * DescriptorProto name. - * @member {string} name - * @memberof google.protobuf.DescriptorProto - * @instance - */ - DescriptorProto.prototype.name = ""; + /** + * Properties of a BatchEntry. + * @memberof cosmos.ics23.v1 + * @interface IBatchEntry + * @property {cosmos.ics23.v1.IExistenceProof|null} [exist] BatchEntry exist + * @property {cosmos.ics23.v1.INonExistenceProof|null} [nonexist] BatchEntry nonexist + */ - /** - * DescriptorProto field. - * @member {Array.} field - * @memberof google.protobuf.DescriptorProto - * @instance - */ - DescriptorProto.prototype.field = $util.emptyArray; + /** + * Constructs a new BatchEntry. + * @memberof cosmos.ics23.v1 + * @classdesc Represents a BatchEntry. + * @implements IBatchEntry + * @constructor + * @param {cosmos.ics23.v1.IBatchEntry=} [properties] Properties to set + */ + function BatchEntry(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * DescriptorProto extension. - * @member {Array.} extension - * @memberof google.protobuf.DescriptorProto - * @instance - */ - DescriptorProto.prototype.extension = $util.emptyArray; + /** + * BatchEntry exist. + * @member {cosmos.ics23.v1.IExistenceProof|null|undefined} exist + * @memberof cosmos.ics23.v1.BatchEntry + * @instance + */ + BatchEntry.prototype.exist = null; - /** - * DescriptorProto nested_type. - * @member {Array.} nested_type - * @memberof google.protobuf.DescriptorProto - * @instance - */ - DescriptorProto.prototype.nested_type = $util.emptyArray; + /** + * BatchEntry nonexist. + * @member {cosmos.ics23.v1.INonExistenceProof|null|undefined} nonexist + * @memberof cosmos.ics23.v1.BatchEntry + * @instance + */ + BatchEntry.prototype.nonexist = null; - /** - * DescriptorProto enum_type. - * @member {Array.} enum_type - * @memberof google.protobuf.DescriptorProto - * @instance - */ - DescriptorProto.prototype.enum_type = $util.emptyArray; + // OneOf field names bound to virtual getters and setters + var $oneOfFields; - /** - * DescriptorProto extension_range. - * @member {Array.} extension_range - * @memberof google.protobuf.DescriptorProto - * @instance - */ - DescriptorProto.prototype.extension_range = $util.emptyArray; + /** + * BatchEntry proof. + * @member {"exist"|"nonexist"|undefined} proof + * @memberof cosmos.ics23.v1.BatchEntry + * @instance + */ + Object.defineProperty(BatchEntry.prototype, "proof", { + get: $util.oneOfGetter($oneOfFields = ["exist", "nonexist"]), + set: $util.oneOfSetter($oneOfFields) + }); - /** - * DescriptorProto oneof_decl. - * @member {Array.} oneof_decl - * @memberof google.protobuf.DescriptorProto - * @instance - */ - DescriptorProto.prototype.oneof_decl = $util.emptyArray; + /** + * Encodes the specified BatchEntry message. Does not implicitly {@link cosmos.ics23.v1.BatchEntry.verify|verify} messages. + * @function encode + * @memberof cosmos.ics23.v1.BatchEntry + * @static + * @param {cosmos.ics23.v1.IBatchEntry} message BatchEntry message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BatchEntry.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.exist != null && Object.hasOwnProperty.call(message, "exist")) + $root.cosmos.ics23.v1.ExistenceProof.encode(message.exist, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nonexist != null && Object.hasOwnProperty.call(message, "nonexist")) + $root.cosmos.ics23.v1.NonExistenceProof.encode(message.nonexist, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; - /** - * DescriptorProto options. - * @member {google.protobuf.IMessageOptions|null|undefined} options - * @memberof google.protobuf.DescriptorProto - * @instance - */ - DescriptorProto.prototype.options = null; + /** + * Encodes the specified BatchEntry message, length delimited. Does not implicitly {@link cosmos.ics23.v1.BatchEntry.verify|verify} messages. + * @function encodeDelimited + * @memberof cosmos.ics23.v1.BatchEntry + * @static + * @param {cosmos.ics23.v1.IBatchEntry} message BatchEntry message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BatchEntry.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * DescriptorProto reserved_range. - * @member {Array.} reserved_range - * @memberof google.protobuf.DescriptorProto - * @instance - */ - DescriptorProto.prototype.reserved_range = $util.emptyArray; + /** + * Decodes a BatchEntry message from the specified reader or buffer. + * @function decode + * @memberof cosmos.ics23.v1.BatchEntry + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {cosmos.ics23.v1.BatchEntry} BatchEntry + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BatchEntry.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.cosmos.ics23.v1.BatchEntry(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.exist = $root.cosmos.ics23.v1.ExistenceProof.decode(reader, reader.uint32()); + break; + case 2: + message.nonexist = $root.cosmos.ics23.v1.NonExistenceProof.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * DescriptorProto reserved_name. - * @member {Array.} reserved_name - * @memberof google.protobuf.DescriptorProto - * @instance - */ - DescriptorProto.prototype.reserved_name = $util.emptyArray; + /** + * Decodes a BatchEntry message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof cosmos.ics23.v1.BatchEntry + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {cosmos.ics23.v1.BatchEntry} BatchEntry + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BatchEntry.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Encodes the specified DescriptorProto message. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages. - * @function encode - * @memberof google.protobuf.DescriptorProto - * @static - * @param {google.protobuf.IDescriptorProto} message DescriptorProto message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DescriptorProto.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.field != null && message.field.length) - for (var i = 0; i < message.field.length; ++i) - $root.google.protobuf.FieldDescriptorProto.encode(message.field[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.nested_type != null && message.nested_type.length) - for (var i = 0; i < message.nested_type.length; ++i) - $root.google.protobuf.DescriptorProto.encode(message.nested_type[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.enum_type != null && message.enum_type.length) - for (var i = 0; i < message.enum_type.length; ++i) - $root.google.protobuf.EnumDescriptorProto.encode(message.enum_type[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.extension_range != null && message.extension_range.length) - for (var i = 0; i < message.extension_range.length; ++i) - $root.google.protobuf.DescriptorProto.ExtensionRange.encode(message.extension_range[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.extension != null && message.extension.length) - for (var i = 0; i < message.extension.length; ++i) - $root.google.protobuf.FieldDescriptorProto.encode(message.extension[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.options != null && Object.hasOwnProperty.call(message, "options")) - $root.google.protobuf.MessageOptions.encode(message.options, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.oneof_decl != null && message.oneof_decl.length) - for (var i = 0; i < message.oneof_decl.length; ++i) - $root.google.protobuf.OneofDescriptorProto.encode(message.oneof_decl[i], writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.reserved_range != null && message.reserved_range.length) - for (var i = 0; i < message.reserved_range.length; ++i) - $root.google.protobuf.DescriptorProto.ReservedRange.encode(message.reserved_range[i], writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - if (message.reserved_name != null && message.reserved_name.length) - for (var i = 0; i < message.reserved_name.length; ++i) - writer.uint32(/* id 10, wireType 2 =*/82).string(message.reserved_name[i]); - return writer; - }; + /** + * Verifies a BatchEntry message. + * @function verify + * @memberof cosmos.ics23.v1.BatchEntry + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + BatchEntry.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.exist != null && message.hasOwnProperty("exist")) { + properties.proof = 1; + { + var error = $root.cosmos.ics23.v1.ExistenceProof.verify(message.exist); + if (error) + return "exist." + error; + } + } + if (message.nonexist != null && message.hasOwnProperty("nonexist")) { + if (properties.proof === 1) + return "proof: multiple values"; + properties.proof = 1; + { + var error = $root.cosmos.ics23.v1.NonExistenceProof.verify(message.nonexist); + if (error) + return "nonexist." + error; + } + } + return null; + }; - /** - * Encodes the specified DescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.DescriptorProto - * @static - * @param {google.protobuf.IDescriptorProto} message DescriptorProto message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Creates a BatchEntry message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof cosmos.ics23.v1.BatchEntry + * @static + * @param {Object.} object Plain object + * @returns {cosmos.ics23.v1.BatchEntry} BatchEntry + */ + BatchEntry.fromObject = function fromObject(object) { + if (object instanceof $root.cosmos.ics23.v1.BatchEntry) + return object; + var message = new $root.cosmos.ics23.v1.BatchEntry(); + if (object.exist != null) { + if (typeof object.exist !== "object") + throw TypeError(".cosmos.ics23.v1.BatchEntry.exist: object expected"); + message.exist = $root.cosmos.ics23.v1.ExistenceProof.fromObject(object.exist); + } + if (object.nonexist != null) { + if (typeof object.nonexist !== "object") + throw TypeError(".cosmos.ics23.v1.BatchEntry.nonexist: object expected"); + message.nonexist = $root.cosmos.ics23.v1.NonExistenceProof.fromObject(object.nonexist); + } + return message; + }; - /** - * Decodes a DescriptorProto message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.DescriptorProto - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.DescriptorProto} DescriptorProto - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DescriptorProto.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.DescriptorProto(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - if (!(message.field && message.field.length)) - message.field = []; - message.field.push($root.google.protobuf.FieldDescriptorProto.decode(reader, reader.uint32())); - break; - case 6: - if (!(message.extension && message.extension.length)) - message.extension = []; - message.extension.push($root.google.protobuf.FieldDescriptorProto.decode(reader, reader.uint32())); - break; - case 3: - if (!(message.nested_type && message.nested_type.length)) - message.nested_type = []; - message.nested_type.push($root.google.protobuf.DescriptorProto.decode(reader, reader.uint32())); - break; - case 4: - if (!(message.enum_type && message.enum_type.length)) - message.enum_type = []; - message.enum_type.push($root.google.protobuf.EnumDescriptorProto.decode(reader, reader.uint32())); - break; - case 5: - if (!(message.extension_range && message.extension_range.length)) - message.extension_range = []; - message.extension_range.push($root.google.protobuf.DescriptorProto.ExtensionRange.decode(reader, reader.uint32())); - break; - case 8: - if (!(message.oneof_decl && message.oneof_decl.length)) - message.oneof_decl = []; - message.oneof_decl.push($root.google.protobuf.OneofDescriptorProto.decode(reader, reader.uint32())); - break; - case 7: - message.options = $root.google.protobuf.MessageOptions.decode(reader, reader.uint32()); - break; - case 9: - if (!(message.reserved_range && message.reserved_range.length)) - message.reserved_range = []; - message.reserved_range.push($root.google.protobuf.DescriptorProto.ReservedRange.decode(reader, reader.uint32())); - break; - case 10: - if (!(message.reserved_name && message.reserved_name.length)) - message.reserved_name = []; - message.reserved_name.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; + /** + * Creates a plain object from a BatchEntry message. Also converts values to other types if specified. + * @function toObject + * @memberof cosmos.ics23.v1.BatchEntry + * @static + * @param {cosmos.ics23.v1.BatchEntry} message BatchEntry + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + BatchEntry.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.exist != null && message.hasOwnProperty("exist")) { + object.exist = $root.cosmos.ics23.v1.ExistenceProof.toObject(message.exist, options); + if (options.oneofs) + object.proof = "exist"; + } + if (message.nonexist != null && message.hasOwnProperty("nonexist")) { + object.nonexist = $root.cosmos.ics23.v1.NonExistenceProof.toObject(message.nonexist, options); + if (options.oneofs) + object.proof = "nonexist"; } + return object; + }; + + /** + * Converts this BatchEntry to JSON. + * @function toJSON + * @memberof cosmos.ics23.v1.BatchEntry + * @instance + * @returns {Object.} JSON object + */ + BatchEntry.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return BatchEntry; + })(); + + v1.CompressedBatchProof = (function() { + + /** + * Properties of a CompressedBatchProof. + * @memberof cosmos.ics23.v1 + * @interface ICompressedBatchProof + * @property {Array.|null} [entries] CompressedBatchProof entries + * @property {Array.|null} [lookup_inners] CompressedBatchProof lookup_inners + */ + + /** + * Constructs a new CompressedBatchProof. + * @memberof cosmos.ics23.v1 + * @classdesc Represents a CompressedBatchProof. + * @implements ICompressedBatchProof + * @constructor + * @param {cosmos.ics23.v1.ICompressedBatchProof=} [properties] Properties to set + */ + function CompressedBatchProof(properties) { + this.entries = []; + this.lookup_inners = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; } - return message; - }; - /** - * Decodes a DescriptorProto message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.DescriptorProto - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.DescriptorProto} DescriptorProto - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DescriptorProto.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * CompressedBatchProof entries. + * @member {Array.} entries + * @memberof cosmos.ics23.v1.CompressedBatchProof + * @instance + */ + CompressedBatchProof.prototype.entries = $util.emptyArray; - /** - * Verifies a DescriptorProto message. - * @function verify - * @memberof google.protobuf.DescriptorProto - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - DescriptorProto.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.field != null && message.hasOwnProperty("field")) { - if (!Array.isArray(message.field)) - return "field: array expected"; - for (var i = 0; i < message.field.length; ++i) { - var error = $root.google.protobuf.FieldDescriptorProto.verify(message.field[i]); - if (error) - return "field." + error; + /** + * CompressedBatchProof lookup_inners. + * @member {Array.} lookup_inners + * @memberof cosmos.ics23.v1.CompressedBatchProof + * @instance + */ + CompressedBatchProof.prototype.lookup_inners = $util.emptyArray; + + /** + * Encodes the specified CompressedBatchProof message. Does not implicitly {@link cosmos.ics23.v1.CompressedBatchProof.verify|verify} messages. + * @function encode + * @memberof cosmos.ics23.v1.CompressedBatchProof + * @static + * @param {cosmos.ics23.v1.ICompressedBatchProof} message CompressedBatchProof message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CompressedBatchProof.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.entries != null && message.entries.length) + for (var i = 0; i < message.entries.length; ++i) + $root.cosmos.ics23.v1.CompressedBatchEntry.encode(message.entries[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.lookup_inners != null && message.lookup_inners.length) + for (var i = 0; i < message.lookup_inners.length; ++i) + $root.cosmos.ics23.v1.InnerOp.encode(message.lookup_inners[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified CompressedBatchProof message, length delimited. Does not implicitly {@link cosmos.ics23.v1.CompressedBatchProof.verify|verify} messages. + * @function encodeDelimited + * @memberof cosmos.ics23.v1.CompressedBatchProof + * @static + * @param {cosmos.ics23.v1.ICompressedBatchProof} message CompressedBatchProof message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CompressedBatchProof.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CompressedBatchProof message from the specified reader or buffer. + * @function decode + * @memberof cosmos.ics23.v1.CompressedBatchProof + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {cosmos.ics23.v1.CompressedBatchProof} CompressedBatchProof + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CompressedBatchProof.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.cosmos.ics23.v1.CompressedBatchProof(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.entries && message.entries.length)) + message.entries = []; + message.entries.push($root.cosmos.ics23.v1.CompressedBatchEntry.decode(reader, reader.uint32())); + break; + case 2: + if (!(message.lookup_inners && message.lookup_inners.length)) + message.lookup_inners = []; + message.lookup_inners.push($root.cosmos.ics23.v1.InnerOp.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } } - } - if (message.extension != null && message.hasOwnProperty("extension")) { - if (!Array.isArray(message.extension)) - return "extension: array expected"; - for (var i = 0; i < message.extension.length; ++i) { - var error = $root.google.protobuf.FieldDescriptorProto.verify(message.extension[i]); - if (error) - return "extension." + error; + return message; + }; + + /** + * Decodes a CompressedBatchProof message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof cosmos.ics23.v1.CompressedBatchProof + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {cosmos.ics23.v1.CompressedBatchProof} CompressedBatchProof + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CompressedBatchProof.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CompressedBatchProof message. + * @function verify + * @memberof cosmos.ics23.v1.CompressedBatchProof + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CompressedBatchProof.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.entries != null && message.hasOwnProperty("entries")) { + if (!Array.isArray(message.entries)) + return "entries: array expected"; + for (var i = 0; i < message.entries.length; ++i) { + var error = $root.cosmos.ics23.v1.CompressedBatchEntry.verify(message.entries[i]); + if (error) + return "entries." + error; + } } - } - if (message.nested_type != null && message.hasOwnProperty("nested_type")) { - if (!Array.isArray(message.nested_type)) - return "nested_type: array expected"; - for (var i = 0; i < message.nested_type.length; ++i) { - var error = $root.google.protobuf.DescriptorProto.verify(message.nested_type[i]); - if (error) - return "nested_type." + error; + if (message.lookup_inners != null && message.hasOwnProperty("lookup_inners")) { + if (!Array.isArray(message.lookup_inners)) + return "lookup_inners: array expected"; + for (var i = 0; i < message.lookup_inners.length; ++i) { + var error = $root.cosmos.ics23.v1.InnerOp.verify(message.lookup_inners[i]); + if (error) + return "lookup_inners." + error; + } } - } - if (message.enum_type != null && message.hasOwnProperty("enum_type")) { - if (!Array.isArray(message.enum_type)) - return "enum_type: array expected"; - for (var i = 0; i < message.enum_type.length; ++i) { - var error = $root.google.protobuf.EnumDescriptorProto.verify(message.enum_type[i]); - if (error) - return "enum_type." + error; + return null; + }; + + /** + * Creates a CompressedBatchProof message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof cosmos.ics23.v1.CompressedBatchProof + * @static + * @param {Object.} object Plain object + * @returns {cosmos.ics23.v1.CompressedBatchProof} CompressedBatchProof + */ + CompressedBatchProof.fromObject = function fromObject(object) { + if (object instanceof $root.cosmos.ics23.v1.CompressedBatchProof) + return object; + var message = new $root.cosmos.ics23.v1.CompressedBatchProof(); + if (object.entries) { + if (!Array.isArray(object.entries)) + throw TypeError(".cosmos.ics23.v1.CompressedBatchProof.entries: array expected"); + message.entries = []; + for (var i = 0; i < object.entries.length; ++i) { + if (typeof object.entries[i] !== "object") + throw TypeError(".cosmos.ics23.v1.CompressedBatchProof.entries: object expected"); + message.entries[i] = $root.cosmos.ics23.v1.CompressedBatchEntry.fromObject(object.entries[i]); + } } - } - if (message.extension_range != null && message.hasOwnProperty("extension_range")) { - if (!Array.isArray(message.extension_range)) - return "extension_range: array expected"; - for (var i = 0; i < message.extension_range.length; ++i) { - var error = $root.google.protobuf.DescriptorProto.ExtensionRange.verify(message.extension_range[i]); - if (error) - return "extension_range." + error; + if (object.lookup_inners) { + if (!Array.isArray(object.lookup_inners)) + throw TypeError(".cosmos.ics23.v1.CompressedBatchProof.lookup_inners: array expected"); + message.lookup_inners = []; + for (var i = 0; i < object.lookup_inners.length; ++i) { + if (typeof object.lookup_inners[i] !== "object") + throw TypeError(".cosmos.ics23.v1.CompressedBatchProof.lookup_inners: object expected"); + message.lookup_inners[i] = $root.cosmos.ics23.v1.InnerOp.fromObject(object.lookup_inners[i]); + } } - } - if (message.oneof_decl != null && message.hasOwnProperty("oneof_decl")) { - if (!Array.isArray(message.oneof_decl)) - return "oneof_decl: array expected"; - for (var i = 0; i < message.oneof_decl.length; ++i) { - var error = $root.google.protobuf.OneofDescriptorProto.verify(message.oneof_decl[i]); - if (error) - return "oneof_decl." + error; + return message; + }; + + /** + * Creates a plain object from a CompressedBatchProof message. Also converts values to other types if specified. + * @function toObject + * @memberof cosmos.ics23.v1.CompressedBatchProof + * @static + * @param {cosmos.ics23.v1.CompressedBatchProof} message CompressedBatchProof + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CompressedBatchProof.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.entries = []; + object.lookup_inners = []; } - } - if (message.options != null && message.hasOwnProperty("options")) { - var error = $root.google.protobuf.MessageOptions.verify(message.options); - if (error) - return "options." + error; - } - if (message.reserved_range != null && message.hasOwnProperty("reserved_range")) { - if (!Array.isArray(message.reserved_range)) - return "reserved_range: array expected"; - for (var i = 0; i < message.reserved_range.length; ++i) { - var error = $root.google.protobuf.DescriptorProto.ReservedRange.verify(message.reserved_range[i]); - if (error) - return "reserved_range." + error; + if (message.entries && message.entries.length) { + object.entries = []; + for (var j = 0; j < message.entries.length; ++j) + object.entries[j] = $root.cosmos.ics23.v1.CompressedBatchEntry.toObject(message.entries[j], options); } + if (message.lookup_inners && message.lookup_inners.length) { + object.lookup_inners = []; + for (var j = 0; j < message.lookup_inners.length; ++j) + object.lookup_inners[j] = $root.cosmos.ics23.v1.InnerOp.toObject(message.lookup_inners[j], options); + } + return object; + }; + + /** + * Converts this CompressedBatchProof to JSON. + * @function toJSON + * @memberof cosmos.ics23.v1.CompressedBatchProof + * @instance + * @returns {Object.} JSON object + */ + CompressedBatchProof.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return CompressedBatchProof; + })(); + + v1.CompressedBatchEntry = (function() { + + /** + * Properties of a CompressedBatchEntry. + * @memberof cosmos.ics23.v1 + * @interface ICompressedBatchEntry + * @property {cosmos.ics23.v1.ICompressedExistenceProof|null} [exist] CompressedBatchEntry exist + * @property {cosmos.ics23.v1.ICompressedNonExistenceProof|null} [nonexist] CompressedBatchEntry nonexist + */ + + /** + * Constructs a new CompressedBatchEntry. + * @memberof cosmos.ics23.v1 + * @classdesc Represents a CompressedBatchEntry. + * @implements ICompressedBatchEntry + * @constructor + * @param {cosmos.ics23.v1.ICompressedBatchEntry=} [properties] Properties to set + */ + function CompressedBatchEntry(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; } - if (message.reserved_name != null && message.hasOwnProperty("reserved_name")) { - if (!Array.isArray(message.reserved_name)) - return "reserved_name: array expected"; - for (var i = 0; i < message.reserved_name.length; ++i) - if (!$util.isString(message.reserved_name[i])) - return "reserved_name: string[] expected"; - } - return null; - }; - /** - * Creates a DescriptorProto message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.DescriptorProto - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.DescriptorProto} DescriptorProto - */ - DescriptorProto.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.DescriptorProto) - return object; - var message = new $root.google.protobuf.DescriptorProto(); - if (object.name != null) - message.name = String(object.name); - if (object.field) { - if (!Array.isArray(object.field)) - throw TypeError(".google.protobuf.DescriptorProto.field: array expected"); - message.field = []; - for (var i = 0; i < object.field.length; ++i) { - if (typeof object.field[i] !== "object") - throw TypeError(".google.protobuf.DescriptorProto.field: object expected"); - message.field[i] = $root.google.protobuf.FieldDescriptorProto.fromObject(object.field[i]); + /** + * CompressedBatchEntry exist. + * @member {cosmos.ics23.v1.ICompressedExistenceProof|null|undefined} exist + * @memberof cosmos.ics23.v1.CompressedBatchEntry + * @instance + */ + CompressedBatchEntry.prototype.exist = null; + + /** + * CompressedBatchEntry nonexist. + * @member {cosmos.ics23.v1.ICompressedNonExistenceProof|null|undefined} nonexist + * @memberof cosmos.ics23.v1.CompressedBatchEntry + * @instance + */ + CompressedBatchEntry.prototype.nonexist = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * CompressedBatchEntry proof. + * @member {"exist"|"nonexist"|undefined} proof + * @memberof cosmos.ics23.v1.CompressedBatchEntry + * @instance + */ + Object.defineProperty(CompressedBatchEntry.prototype, "proof", { + get: $util.oneOfGetter($oneOfFields = ["exist", "nonexist"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Encodes the specified CompressedBatchEntry message. Does not implicitly {@link cosmos.ics23.v1.CompressedBatchEntry.verify|verify} messages. + * @function encode + * @memberof cosmos.ics23.v1.CompressedBatchEntry + * @static + * @param {cosmos.ics23.v1.ICompressedBatchEntry} message CompressedBatchEntry message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CompressedBatchEntry.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.exist != null && Object.hasOwnProperty.call(message, "exist")) + $root.cosmos.ics23.v1.CompressedExistenceProof.encode(message.exist, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nonexist != null && Object.hasOwnProperty.call(message, "nonexist")) + $root.cosmos.ics23.v1.CompressedNonExistenceProof.encode(message.nonexist, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified CompressedBatchEntry message, length delimited. Does not implicitly {@link cosmos.ics23.v1.CompressedBatchEntry.verify|verify} messages. + * @function encodeDelimited + * @memberof cosmos.ics23.v1.CompressedBatchEntry + * @static + * @param {cosmos.ics23.v1.ICompressedBatchEntry} message CompressedBatchEntry message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CompressedBatchEntry.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CompressedBatchEntry message from the specified reader or buffer. + * @function decode + * @memberof cosmos.ics23.v1.CompressedBatchEntry + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {cosmos.ics23.v1.CompressedBatchEntry} CompressedBatchEntry + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CompressedBatchEntry.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.cosmos.ics23.v1.CompressedBatchEntry(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.exist = $root.cosmos.ics23.v1.CompressedExistenceProof.decode(reader, reader.uint32()); + break; + case 2: + message.nonexist = $root.cosmos.ics23.v1.CompressedNonExistenceProof.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } } - } - if (object.extension) { - if (!Array.isArray(object.extension)) - throw TypeError(".google.protobuf.DescriptorProto.extension: array expected"); - message.extension = []; - for (var i = 0; i < object.extension.length; ++i) { - if (typeof object.extension[i] !== "object") - throw TypeError(".google.protobuf.DescriptorProto.extension: object expected"); - message.extension[i] = $root.google.protobuf.FieldDescriptorProto.fromObject(object.extension[i]); + return message; + }; + + /** + * Decodes a CompressedBatchEntry message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof cosmos.ics23.v1.CompressedBatchEntry + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {cosmos.ics23.v1.CompressedBatchEntry} CompressedBatchEntry + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CompressedBatchEntry.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CompressedBatchEntry message. + * @function verify + * @memberof cosmos.ics23.v1.CompressedBatchEntry + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CompressedBatchEntry.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.exist != null && message.hasOwnProperty("exist")) { + properties.proof = 1; + { + var error = $root.cosmos.ics23.v1.CompressedExistenceProof.verify(message.exist); + if (error) + return "exist." + error; + } } - } - if (object.nested_type) { - if (!Array.isArray(object.nested_type)) - throw TypeError(".google.protobuf.DescriptorProto.nested_type: array expected"); - message.nested_type = []; - for (var i = 0; i < object.nested_type.length; ++i) { - if (typeof object.nested_type[i] !== "object") - throw TypeError(".google.protobuf.DescriptorProto.nested_type: object expected"); - message.nested_type[i] = $root.google.protobuf.DescriptorProto.fromObject(object.nested_type[i]); + if (message.nonexist != null && message.hasOwnProperty("nonexist")) { + if (properties.proof === 1) + return "proof: multiple values"; + properties.proof = 1; + { + var error = $root.cosmos.ics23.v1.CompressedNonExistenceProof.verify(message.nonexist); + if (error) + return "nonexist." + error; + } } - } - if (object.enum_type) { - if (!Array.isArray(object.enum_type)) - throw TypeError(".google.protobuf.DescriptorProto.enum_type: array expected"); - message.enum_type = []; - for (var i = 0; i < object.enum_type.length; ++i) { - if (typeof object.enum_type[i] !== "object") - throw TypeError(".google.protobuf.DescriptorProto.enum_type: object expected"); - message.enum_type[i] = $root.google.protobuf.EnumDescriptorProto.fromObject(object.enum_type[i]); + return null; + }; + + /** + * Creates a CompressedBatchEntry message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof cosmos.ics23.v1.CompressedBatchEntry + * @static + * @param {Object.} object Plain object + * @returns {cosmos.ics23.v1.CompressedBatchEntry} CompressedBatchEntry + */ + CompressedBatchEntry.fromObject = function fromObject(object) { + if (object instanceof $root.cosmos.ics23.v1.CompressedBatchEntry) + return object; + var message = new $root.cosmos.ics23.v1.CompressedBatchEntry(); + if (object.exist != null) { + if (typeof object.exist !== "object") + throw TypeError(".cosmos.ics23.v1.CompressedBatchEntry.exist: object expected"); + message.exist = $root.cosmos.ics23.v1.CompressedExistenceProof.fromObject(object.exist); } - } - if (object.extension_range) { - if (!Array.isArray(object.extension_range)) - throw TypeError(".google.protobuf.DescriptorProto.extension_range: array expected"); - message.extension_range = []; - for (var i = 0; i < object.extension_range.length; ++i) { - if (typeof object.extension_range[i] !== "object") - throw TypeError(".google.protobuf.DescriptorProto.extension_range: object expected"); - message.extension_range[i] = $root.google.protobuf.DescriptorProto.ExtensionRange.fromObject(object.extension_range[i]); + if (object.nonexist != null) { + if (typeof object.nonexist !== "object") + throw TypeError(".cosmos.ics23.v1.CompressedBatchEntry.nonexist: object expected"); + message.nonexist = $root.cosmos.ics23.v1.CompressedNonExistenceProof.fromObject(object.nonexist); } - } - if (object.oneof_decl) { - if (!Array.isArray(object.oneof_decl)) - throw TypeError(".google.protobuf.DescriptorProto.oneof_decl: array expected"); - message.oneof_decl = []; - for (var i = 0; i < object.oneof_decl.length; ++i) { - if (typeof object.oneof_decl[i] !== "object") - throw TypeError(".google.protobuf.DescriptorProto.oneof_decl: object expected"); - message.oneof_decl[i] = $root.google.protobuf.OneofDescriptorProto.fromObject(object.oneof_decl[i]); + return message; + }; + + /** + * Creates a plain object from a CompressedBatchEntry message. Also converts values to other types if specified. + * @function toObject + * @memberof cosmos.ics23.v1.CompressedBatchEntry + * @static + * @param {cosmos.ics23.v1.CompressedBatchEntry} message CompressedBatchEntry + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CompressedBatchEntry.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.exist != null && message.hasOwnProperty("exist")) { + object.exist = $root.cosmos.ics23.v1.CompressedExistenceProof.toObject(message.exist, options); + if (options.oneofs) + object.proof = "exist"; } - } - if (object.options != null) { - if (typeof object.options !== "object") - throw TypeError(".google.protobuf.DescriptorProto.options: object expected"); - message.options = $root.google.protobuf.MessageOptions.fromObject(object.options); - } - if (object.reserved_range) { - if (!Array.isArray(object.reserved_range)) - throw TypeError(".google.protobuf.DescriptorProto.reserved_range: array expected"); - message.reserved_range = []; - for (var i = 0; i < object.reserved_range.length; ++i) { - if (typeof object.reserved_range[i] !== "object") - throw TypeError(".google.protobuf.DescriptorProto.reserved_range: object expected"); - message.reserved_range[i] = $root.google.protobuf.DescriptorProto.ReservedRange.fromObject(object.reserved_range[i]); + if (message.nonexist != null && message.hasOwnProperty("nonexist")) { + object.nonexist = $root.cosmos.ics23.v1.CompressedNonExistenceProof.toObject(message.nonexist, options); + if (options.oneofs) + object.proof = "nonexist"; } - } - if (object.reserved_name) { - if (!Array.isArray(object.reserved_name)) - throw TypeError(".google.protobuf.DescriptorProto.reserved_name: array expected"); - message.reserved_name = []; - for (var i = 0; i < object.reserved_name.length; ++i) - message.reserved_name[i] = String(object.reserved_name[i]); - } - return message; - }; + return object; + }; - /** - * Creates a plain object from a DescriptorProto message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.DescriptorProto - * @static - * @param {google.protobuf.DescriptorProto} message DescriptorProto - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - DescriptorProto.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) { - object.field = []; - object.nested_type = []; - object.enum_type = []; - object.extension_range = []; - object.extension = []; - object.oneof_decl = []; - object.reserved_range = []; - object.reserved_name = []; - } - if (options.defaults) { - object.name = ""; - object.options = null; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.field && message.field.length) { - object.field = []; - for (var j = 0; j < message.field.length; ++j) - object.field[j] = $root.google.protobuf.FieldDescriptorProto.toObject(message.field[j], options); - } - if (message.nested_type && message.nested_type.length) { - object.nested_type = []; - for (var j = 0; j < message.nested_type.length; ++j) - object.nested_type[j] = $root.google.protobuf.DescriptorProto.toObject(message.nested_type[j], options); - } - if (message.enum_type && message.enum_type.length) { - object.enum_type = []; - for (var j = 0; j < message.enum_type.length; ++j) - object.enum_type[j] = $root.google.protobuf.EnumDescriptorProto.toObject(message.enum_type[j], options); - } - if (message.extension_range && message.extension_range.length) { - object.extension_range = []; - for (var j = 0; j < message.extension_range.length; ++j) - object.extension_range[j] = $root.google.protobuf.DescriptorProto.ExtensionRange.toObject(message.extension_range[j], options); - } - if (message.extension && message.extension.length) { - object.extension = []; - for (var j = 0; j < message.extension.length; ++j) - object.extension[j] = $root.google.protobuf.FieldDescriptorProto.toObject(message.extension[j], options); - } - if (message.options != null && message.hasOwnProperty("options")) - object.options = $root.google.protobuf.MessageOptions.toObject(message.options, options); - if (message.oneof_decl && message.oneof_decl.length) { - object.oneof_decl = []; - for (var j = 0; j < message.oneof_decl.length; ++j) - object.oneof_decl[j] = $root.google.protobuf.OneofDescriptorProto.toObject(message.oneof_decl[j], options); - } - if (message.reserved_range && message.reserved_range.length) { - object.reserved_range = []; - for (var j = 0; j < message.reserved_range.length; ++j) - object.reserved_range[j] = $root.google.protobuf.DescriptorProto.ReservedRange.toObject(message.reserved_range[j], options); - } - if (message.reserved_name && message.reserved_name.length) { - object.reserved_name = []; - for (var j = 0; j < message.reserved_name.length; ++j) - object.reserved_name[j] = message.reserved_name[j]; - } - return object; - }; + /** + * Converts this CompressedBatchEntry to JSON. + * @function toJSON + * @memberof cosmos.ics23.v1.CompressedBatchEntry + * @instance + * @returns {Object.} JSON object + */ + CompressedBatchEntry.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Converts this DescriptorProto to JSON. - * @function toJSON - * @memberof google.protobuf.DescriptorProto - * @instance - * @returns {Object.} JSON object - */ - DescriptorProto.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + return CompressedBatchEntry; + })(); - DescriptorProto.ExtensionRange = (function() { + v1.CompressedExistenceProof = (function() { /** - * Properties of an ExtensionRange. - * @memberof google.protobuf.DescriptorProto - * @interface IExtensionRange - * @property {number|null} [start] ExtensionRange start - * @property {number|null} [end] ExtensionRange end + * Properties of a CompressedExistenceProof. + * @memberof cosmos.ics23.v1 + * @interface ICompressedExistenceProof + * @property {Uint8Array|null} [key] CompressedExistenceProof key + * @property {Uint8Array|null} [value] CompressedExistenceProof value + * @property {cosmos.ics23.v1.ILeafOp|null} [leaf] CompressedExistenceProof leaf + * @property {Array.|null} [path] CompressedExistenceProof path */ /** - * Constructs a new ExtensionRange. - * @memberof google.protobuf.DescriptorProto - * @classdesc Represents an ExtensionRange. - * @implements IExtensionRange + * Constructs a new CompressedExistenceProof. + * @memberof cosmos.ics23.v1 + * @classdesc Represents a CompressedExistenceProof. + * @implements ICompressedExistenceProof * @constructor - * @param {google.protobuf.DescriptorProto.IExtensionRange=} [properties] Properties to set + * @param {cosmos.ics23.v1.ICompressedExistenceProof=} [properties] Properties to set */ - function ExtensionRange(properties) { + function CompressedExistenceProof(properties) { + this.path = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -8867,76 +14827,113 @@ } /** - * ExtensionRange start. - * @member {number} start - * @memberof google.protobuf.DescriptorProto.ExtensionRange + * CompressedExistenceProof key. + * @member {Uint8Array} key + * @memberof cosmos.ics23.v1.CompressedExistenceProof * @instance */ - ExtensionRange.prototype.start = 0; + CompressedExistenceProof.prototype.key = $util.newBuffer([]); /** - * ExtensionRange end. - * @member {number} end - * @memberof google.protobuf.DescriptorProto.ExtensionRange + * CompressedExistenceProof value. + * @member {Uint8Array} value + * @memberof cosmos.ics23.v1.CompressedExistenceProof * @instance */ - ExtensionRange.prototype.end = 0; + CompressedExistenceProof.prototype.value = $util.newBuffer([]); /** - * Encodes the specified ExtensionRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages. + * CompressedExistenceProof leaf. + * @member {cosmos.ics23.v1.ILeafOp|null|undefined} leaf + * @memberof cosmos.ics23.v1.CompressedExistenceProof + * @instance + */ + CompressedExistenceProof.prototype.leaf = null; + + /** + * CompressedExistenceProof path. + * @member {Array.} path + * @memberof cosmos.ics23.v1.CompressedExistenceProof + * @instance + */ + CompressedExistenceProof.prototype.path = $util.emptyArray; + + /** + * Encodes the specified CompressedExistenceProof message. Does not implicitly {@link cosmos.ics23.v1.CompressedExistenceProof.verify|verify} messages. * @function encode - * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @memberof cosmos.ics23.v1.CompressedExistenceProof * @static - * @param {google.protobuf.DescriptorProto.IExtensionRange} message ExtensionRange message or plain object to encode + * @param {cosmos.ics23.v1.ICompressedExistenceProof} message CompressedExistenceProof message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExtensionRange.encode = function encode(message, writer) { + CompressedExistenceProof.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.start != null && Object.hasOwnProperty.call(message, "start")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.start); - if (message.end != null && Object.hasOwnProperty.call(message, "end")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.end); + if (message.key != null && Object.hasOwnProperty.call(message, "key")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.key); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.value); + if (message.leaf != null && Object.hasOwnProperty.call(message, "leaf")) + $root.cosmos.ics23.v1.LeafOp.encode(message.leaf, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.path != null && message.path.length) { + writer.uint32(/* id 4, wireType 2 =*/34).fork(); + for (var i = 0; i < message.path.length; ++i) + writer.int32(message.path[i]); + writer.ldelim(); + } return writer; }; /** - * Encodes the specified ExtensionRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages. + * Encodes the specified CompressedExistenceProof message, length delimited. Does not implicitly {@link cosmos.ics23.v1.CompressedExistenceProof.verify|verify} messages. * @function encodeDelimited - * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @memberof cosmos.ics23.v1.CompressedExistenceProof * @static - * @param {google.protobuf.DescriptorProto.IExtensionRange} message ExtensionRange message or plain object to encode + * @param {cosmos.ics23.v1.ICompressedExistenceProof} message CompressedExistenceProof message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExtensionRange.encodeDelimited = function encodeDelimited(message, writer) { + CompressedExistenceProof.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ExtensionRange message from the specified reader or buffer. + * Decodes a CompressedExistenceProof message from the specified reader or buffer. * @function decode - * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @memberof cosmos.ics23.v1.CompressedExistenceProof * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.DescriptorProto.ExtensionRange} ExtensionRange + * @returns {cosmos.ics23.v1.CompressedExistenceProof} CompressedExistenceProof * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExtensionRange.decode = function decode(reader, length) { + CompressedExistenceProof.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.DescriptorProto.ExtensionRange(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.cosmos.ics23.v1.CompressedExistenceProof(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.start = reader.int32(); + message.key = reader.bytes(); break; case 2: - message.end = reader.int32(); + message.value = reader.bytes(); + break; + case 3: + message.leaf = $root.cosmos.ics23.v1.LeafOp.decode(reader, reader.uint32()); + break; + case 4: + if (!(message.path && message.path.length)) + message.path = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.path.push(reader.int32()); + } else + message.path.push(reader.int32()); break; default: reader.skipType(tag & 7); @@ -8947,117 +14944,170 @@ }; /** - * Decodes an ExtensionRange message from the specified reader or buffer, length delimited. + * Decodes a CompressedExistenceProof message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @memberof cosmos.ics23.v1.CompressedExistenceProof * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.DescriptorProto.ExtensionRange} ExtensionRange + * @returns {cosmos.ics23.v1.CompressedExistenceProof} CompressedExistenceProof * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExtensionRange.decodeDelimited = function decodeDelimited(reader) { + CompressedExistenceProof.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ExtensionRange message. + * Verifies a CompressedExistenceProof message. * @function verify - * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @memberof cosmos.ics23.v1.CompressedExistenceProof * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ExtensionRange.verify = function verify(message) { + CompressedExistenceProof.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.start != null && message.hasOwnProperty("start")) - if (!$util.isInteger(message.start)) - return "start: integer expected"; - if (message.end != null && message.hasOwnProperty("end")) - if (!$util.isInteger(message.end)) - return "end: integer expected"; + if (message.key != null && message.hasOwnProperty("key")) + if (!(message.key && typeof message.key.length === "number" || $util.isString(message.key))) + return "key: buffer expected"; + if (message.value != null && message.hasOwnProperty("value")) + if (!(message.value && typeof message.value.length === "number" || $util.isString(message.value))) + return "value: buffer expected"; + if (message.leaf != null && message.hasOwnProperty("leaf")) { + var error = $root.cosmos.ics23.v1.LeafOp.verify(message.leaf); + if (error) + return "leaf." + error; + } + if (message.path != null && message.hasOwnProperty("path")) { + if (!Array.isArray(message.path)) + return "path: array expected"; + for (var i = 0; i < message.path.length; ++i) + if (!$util.isInteger(message.path[i])) + return "path: integer[] expected"; + } return null; }; /** - * Creates an ExtensionRange message from a plain object. Also converts values to their respective internal types. + * Creates a CompressedExistenceProof message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @memberof cosmos.ics23.v1.CompressedExistenceProof * @static * @param {Object.} object Plain object - * @returns {google.protobuf.DescriptorProto.ExtensionRange} ExtensionRange + * @returns {cosmos.ics23.v1.CompressedExistenceProof} CompressedExistenceProof */ - ExtensionRange.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.DescriptorProto.ExtensionRange) + CompressedExistenceProof.fromObject = function fromObject(object) { + if (object instanceof $root.cosmos.ics23.v1.CompressedExistenceProof) return object; - var message = new $root.google.protobuf.DescriptorProto.ExtensionRange(); - if (object.start != null) - message.start = object.start | 0; - if (object.end != null) - message.end = object.end | 0; + var message = new $root.cosmos.ics23.v1.CompressedExistenceProof(); + if (object.key != null) + if (typeof object.key === "string") + $util.base64.decode(object.key, message.key = $util.newBuffer($util.base64.length(object.key)), 0); + else if (object.key.length) + message.key = object.key; + if (object.value != null) + if (typeof object.value === "string") + $util.base64.decode(object.value, message.value = $util.newBuffer($util.base64.length(object.value)), 0); + else if (object.value.length) + message.value = object.value; + if (object.leaf != null) { + if (typeof object.leaf !== "object") + throw TypeError(".cosmos.ics23.v1.CompressedExistenceProof.leaf: object expected"); + message.leaf = $root.cosmos.ics23.v1.LeafOp.fromObject(object.leaf); + } + if (object.path) { + if (!Array.isArray(object.path)) + throw TypeError(".cosmos.ics23.v1.CompressedExistenceProof.path: array expected"); + message.path = []; + for (var i = 0; i < object.path.length; ++i) + message.path[i] = object.path[i] | 0; + } return message; }; /** - * Creates a plain object from an ExtensionRange message. Also converts values to other types if specified. + * Creates a plain object from a CompressedExistenceProof message. Also converts values to other types if specified. * @function toObject - * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @memberof cosmos.ics23.v1.CompressedExistenceProof * @static - * @param {google.protobuf.DescriptorProto.ExtensionRange} message ExtensionRange + * @param {cosmos.ics23.v1.CompressedExistenceProof} message CompressedExistenceProof * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ExtensionRange.toObject = function toObject(message, options) { + CompressedExistenceProof.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.path = []; if (options.defaults) { - object.start = 0; - object.end = 0; + if (options.bytes === String) + object.key = ""; + else { + object.key = []; + if (options.bytes !== Array) + object.key = $util.newBuffer(object.key); + } + if (options.bytes === String) + object.value = ""; + else { + object.value = []; + if (options.bytes !== Array) + object.value = $util.newBuffer(object.value); + } + object.leaf = null; + } + if (message.key != null && message.hasOwnProperty("key")) + object.key = options.bytes === String ? $util.base64.encode(message.key, 0, message.key.length) : options.bytes === Array ? Array.prototype.slice.call(message.key) : message.key; + if (message.value != null && message.hasOwnProperty("value")) + object.value = options.bytes === String ? $util.base64.encode(message.value, 0, message.value.length) : options.bytes === Array ? Array.prototype.slice.call(message.value) : message.value; + if (message.leaf != null && message.hasOwnProperty("leaf")) + object.leaf = $root.cosmos.ics23.v1.LeafOp.toObject(message.leaf, options); + if (message.path && message.path.length) { + object.path = []; + for (var j = 0; j < message.path.length; ++j) + object.path[j] = message.path[j]; } - if (message.start != null && message.hasOwnProperty("start")) - object.start = message.start; - if (message.end != null && message.hasOwnProperty("end")) - object.end = message.end; return object; }; /** - * Converts this ExtensionRange to JSON. + * Converts this CompressedExistenceProof to JSON. * @function toJSON - * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @memberof cosmos.ics23.v1.CompressedExistenceProof * @instance * @returns {Object.} JSON object */ - ExtensionRange.prototype.toJSON = function toJSON() { + CompressedExistenceProof.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ExtensionRange; + return CompressedExistenceProof; })(); - DescriptorProto.ReservedRange = (function() { + v1.CompressedNonExistenceProof = (function() { /** - * Properties of a ReservedRange. - * @memberof google.protobuf.DescriptorProto - * @interface IReservedRange - * @property {number|null} [start] ReservedRange start - * @property {number|null} [end] ReservedRange end + * Properties of a CompressedNonExistenceProof. + * @memberof cosmos.ics23.v1 + * @interface ICompressedNonExistenceProof + * @property {Uint8Array|null} [key] CompressedNonExistenceProof key + * @property {cosmos.ics23.v1.ICompressedExistenceProof|null} [left] CompressedNonExistenceProof left + * @property {cosmos.ics23.v1.ICompressedExistenceProof|null} [right] CompressedNonExistenceProof right */ /** - * Constructs a new ReservedRange. - * @memberof google.protobuf.DescriptorProto - * @classdesc Represents a ReservedRange. - * @implements IReservedRange + * Constructs a new CompressedNonExistenceProof. + * @memberof cosmos.ics23.v1 + * @classdesc Represents a CompressedNonExistenceProof. + * @implements ICompressedNonExistenceProof * @constructor - * @param {google.protobuf.DescriptorProto.IReservedRange=} [properties] Properties to set + * @param {cosmos.ics23.v1.ICompressedNonExistenceProof=} [properties] Properties to set */ - function ReservedRange(properties) { + function CompressedNonExistenceProof(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -9065,76 +15115,89 @@ } /** - * ReservedRange start. - * @member {number} start - * @memberof google.protobuf.DescriptorProto.ReservedRange + * CompressedNonExistenceProof key. + * @member {Uint8Array} key + * @memberof cosmos.ics23.v1.CompressedNonExistenceProof * @instance */ - ReservedRange.prototype.start = 0; + CompressedNonExistenceProof.prototype.key = $util.newBuffer([]); /** - * ReservedRange end. - * @member {number} end - * @memberof google.protobuf.DescriptorProto.ReservedRange + * CompressedNonExistenceProof left. + * @member {cosmos.ics23.v1.ICompressedExistenceProof|null|undefined} left + * @memberof cosmos.ics23.v1.CompressedNonExistenceProof * @instance */ - ReservedRange.prototype.end = 0; + CompressedNonExistenceProof.prototype.left = null; /** - * Encodes the specified ReservedRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages. + * CompressedNonExistenceProof right. + * @member {cosmos.ics23.v1.ICompressedExistenceProof|null|undefined} right + * @memberof cosmos.ics23.v1.CompressedNonExistenceProof + * @instance + */ + CompressedNonExistenceProof.prototype.right = null; + + /** + * Encodes the specified CompressedNonExistenceProof message. Does not implicitly {@link cosmos.ics23.v1.CompressedNonExistenceProof.verify|verify} messages. * @function encode - * @memberof google.protobuf.DescriptorProto.ReservedRange + * @memberof cosmos.ics23.v1.CompressedNonExistenceProof * @static - * @param {google.protobuf.DescriptorProto.IReservedRange} message ReservedRange message or plain object to encode + * @param {cosmos.ics23.v1.ICompressedNonExistenceProof} message CompressedNonExistenceProof message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReservedRange.encode = function encode(message, writer) { + CompressedNonExistenceProof.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.start != null && Object.hasOwnProperty.call(message, "start")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.start); - if (message.end != null && Object.hasOwnProperty.call(message, "end")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.end); + if (message.key != null && Object.hasOwnProperty.call(message, "key")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.key); + if (message.left != null && Object.hasOwnProperty.call(message, "left")) + $root.cosmos.ics23.v1.CompressedExistenceProof.encode(message.left, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.right != null && Object.hasOwnProperty.call(message, "right")) + $root.cosmos.ics23.v1.CompressedExistenceProof.encode(message.right, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified ReservedRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages. + * Encodes the specified CompressedNonExistenceProof message, length delimited. Does not implicitly {@link cosmos.ics23.v1.CompressedNonExistenceProof.verify|verify} messages. * @function encodeDelimited - * @memberof google.protobuf.DescriptorProto.ReservedRange + * @memberof cosmos.ics23.v1.CompressedNonExistenceProof * @static - * @param {google.protobuf.DescriptorProto.IReservedRange} message ReservedRange message or plain object to encode + * @param {cosmos.ics23.v1.ICompressedNonExistenceProof} message CompressedNonExistenceProof message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReservedRange.encodeDelimited = function encodeDelimited(message, writer) { + CompressedNonExistenceProof.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ReservedRange message from the specified reader or buffer. + * Decodes a CompressedNonExistenceProof message from the specified reader or buffer. * @function decode - * @memberof google.protobuf.DescriptorProto.ReservedRange + * @memberof cosmos.ics23.v1.CompressedNonExistenceProof * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.DescriptorProto.ReservedRange} ReservedRange + * @returns {cosmos.ics23.v1.CompressedNonExistenceProof} CompressedNonExistenceProof * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReservedRange.decode = function decode(reader, length) { + CompressedNonExistenceProof.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.DescriptorProto.ReservedRange(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.cosmos.ics23.v1.CompressedNonExistenceProof(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.start = reader.int32(); + message.key = reader.bytes(); break; case 2: - message.end = reader.int32(); + message.left = $root.cosmos.ics23.v1.CompressedExistenceProof.decode(reader, reader.uint32()); + break; + case 3: + message.right = $root.cosmos.ics23.v1.CompressedExistenceProof.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -9145,877 +15208,686 @@ }; /** - * Decodes a ReservedRange message from the specified reader or buffer, length delimited. + * Decodes a CompressedNonExistenceProof message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.protobuf.DescriptorProto.ReservedRange + * @memberof cosmos.ics23.v1.CompressedNonExistenceProof * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.DescriptorProto.ReservedRange} ReservedRange + * @returns {cosmos.ics23.v1.CompressedNonExistenceProof} CompressedNonExistenceProof * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReservedRange.decodeDelimited = function decodeDelimited(reader) { + CompressedNonExistenceProof.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ReservedRange message. + * Verifies a CompressedNonExistenceProof message. * @function verify - * @memberof google.protobuf.DescriptorProto.ReservedRange + * @memberof cosmos.ics23.v1.CompressedNonExistenceProof * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ReservedRange.verify = function verify(message) { + CompressedNonExistenceProof.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.start != null && message.hasOwnProperty("start")) - if (!$util.isInteger(message.start)) - return "start: integer expected"; - if (message.end != null && message.hasOwnProperty("end")) - if (!$util.isInteger(message.end)) - return "end: integer expected"; + if (message.key != null && message.hasOwnProperty("key")) + if (!(message.key && typeof message.key.length === "number" || $util.isString(message.key))) + return "key: buffer expected"; + if (message.left != null && message.hasOwnProperty("left")) { + var error = $root.cosmos.ics23.v1.CompressedExistenceProof.verify(message.left); + if (error) + return "left." + error; + } + if (message.right != null && message.hasOwnProperty("right")) { + var error = $root.cosmos.ics23.v1.CompressedExistenceProof.verify(message.right); + if (error) + return "right." + error; + } return null; }; /** - * Creates a ReservedRange message from a plain object. Also converts values to their respective internal types. + * Creates a CompressedNonExistenceProof message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.protobuf.DescriptorProto.ReservedRange + * @memberof cosmos.ics23.v1.CompressedNonExistenceProof * @static * @param {Object.} object Plain object - * @returns {google.protobuf.DescriptorProto.ReservedRange} ReservedRange + * @returns {cosmos.ics23.v1.CompressedNonExistenceProof} CompressedNonExistenceProof */ - ReservedRange.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.DescriptorProto.ReservedRange) + CompressedNonExistenceProof.fromObject = function fromObject(object) { + if (object instanceof $root.cosmos.ics23.v1.CompressedNonExistenceProof) return object; - var message = new $root.google.protobuf.DescriptorProto.ReservedRange(); - if (object.start != null) - message.start = object.start | 0; - if (object.end != null) - message.end = object.end | 0; + var message = new $root.cosmos.ics23.v1.CompressedNonExistenceProof(); + if (object.key != null) + if (typeof object.key === "string") + $util.base64.decode(object.key, message.key = $util.newBuffer($util.base64.length(object.key)), 0); + else if (object.key.length) + message.key = object.key; + if (object.left != null) { + if (typeof object.left !== "object") + throw TypeError(".cosmos.ics23.v1.CompressedNonExistenceProof.left: object expected"); + message.left = $root.cosmos.ics23.v1.CompressedExistenceProof.fromObject(object.left); + } + if (object.right != null) { + if (typeof object.right !== "object") + throw TypeError(".cosmos.ics23.v1.CompressedNonExistenceProof.right: object expected"); + message.right = $root.cosmos.ics23.v1.CompressedExistenceProof.fromObject(object.right); + } return message; }; /** - * Creates a plain object from a ReservedRange message. Also converts values to other types if specified. + * Creates a plain object from a CompressedNonExistenceProof message. Also converts values to other types if specified. * @function toObject - * @memberof google.protobuf.DescriptorProto.ReservedRange + * @memberof cosmos.ics23.v1.CompressedNonExistenceProof * @static - * @param {google.protobuf.DescriptorProto.ReservedRange} message ReservedRange + * @param {cosmos.ics23.v1.CompressedNonExistenceProof} message CompressedNonExistenceProof * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReservedRange.toObject = function toObject(message, options) { + CompressedNonExistenceProof.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.start = 0; - object.end = 0; + if (options.bytes === String) + object.key = ""; + else { + object.key = []; + if (options.bytes !== Array) + object.key = $util.newBuffer(object.key); + } + object.left = null; + object.right = null; } - if (message.start != null && message.hasOwnProperty("start")) - object.start = message.start; - if (message.end != null && message.hasOwnProperty("end")) - object.end = message.end; + if (message.key != null && message.hasOwnProperty("key")) + object.key = options.bytes === String ? $util.base64.encode(message.key, 0, message.key.length) : options.bytes === Array ? Array.prototype.slice.call(message.key) : message.key; + if (message.left != null && message.hasOwnProperty("left")) + object.left = $root.cosmos.ics23.v1.CompressedExistenceProof.toObject(message.left, options); + if (message.right != null && message.hasOwnProperty("right")) + object.right = $root.cosmos.ics23.v1.CompressedExistenceProof.toObject(message.right, options); return object; }; /** - * Converts this ReservedRange to JSON. + * Converts this CompressedNonExistenceProof to JSON. * @function toJSON - * @memberof google.protobuf.DescriptorProto.ReservedRange + * @memberof cosmos.ics23.v1.CompressedNonExistenceProof * @instance * @returns {Object.} JSON object */ - ReservedRange.prototype.toJSON = function toJSON() { + CompressedNonExistenceProof.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ReservedRange; + return CompressedNonExistenceProof; })(); - return DescriptorProto; + return v1; })(); - protobuf.FieldDescriptorProto = (function() { - - /** - * Properties of a FieldDescriptorProto. - * @memberof google.protobuf - * @interface IFieldDescriptorProto - * @property {string|null} [name] FieldDescriptorProto name - * @property {number|null} [number] FieldDescriptorProto number - * @property {google.protobuf.FieldDescriptorProto.Label|null} [label] FieldDescriptorProto label - * @property {google.protobuf.FieldDescriptorProto.Type|null} [type] FieldDescriptorProto type - * @property {string|null} [type_name] FieldDescriptorProto type_name - * @property {string|null} [extendee] FieldDescriptorProto extendee - * @property {string|null} [default_value] FieldDescriptorProto default_value - * @property {number|null} [oneof_index] FieldDescriptorProto oneof_index - * @property {string|null} [json_name] FieldDescriptorProto json_name - * @property {google.protobuf.IFieldOptions|null} [options] FieldDescriptorProto options - */ - - /** - * Constructs a new FieldDescriptorProto. - * @memberof google.protobuf - * @classdesc Represents a FieldDescriptorProto. - * @implements IFieldDescriptorProto - * @constructor - * @param {google.protobuf.IFieldDescriptorProto=} [properties] Properties to set - */ - function FieldDescriptorProto(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * FieldDescriptorProto name. - * @member {string} name - * @memberof google.protobuf.FieldDescriptorProto - * @instance - */ - FieldDescriptorProto.prototype.name = ""; - - /** - * FieldDescriptorProto number. - * @member {number} number - * @memberof google.protobuf.FieldDescriptorProto - * @instance - */ - FieldDescriptorProto.prototype.number = 0; - - /** - * FieldDescriptorProto label. - * @member {google.protobuf.FieldDescriptorProto.Label} label - * @memberof google.protobuf.FieldDescriptorProto - * @instance - */ - FieldDescriptorProto.prototype.label = 1; - - /** - * FieldDescriptorProto type. - * @member {google.protobuf.FieldDescriptorProto.Type} type - * @memberof google.protobuf.FieldDescriptorProto - * @instance - */ - FieldDescriptorProto.prototype.type = 1; - - /** - * FieldDescriptorProto type_name. - * @member {string} type_name - * @memberof google.protobuf.FieldDescriptorProto - * @instance - */ - FieldDescriptorProto.prototype.type_name = ""; - - /** - * FieldDescriptorProto extendee. - * @member {string} extendee - * @memberof google.protobuf.FieldDescriptorProto - * @instance - */ - FieldDescriptorProto.prototype.extendee = ""; - - /** - * FieldDescriptorProto default_value. - * @member {string} default_value - * @memberof google.protobuf.FieldDescriptorProto - * @instance - */ - FieldDescriptorProto.prototype.default_value = ""; + return ics23; + })(); - /** - * FieldDescriptorProto oneof_index. - * @member {number} oneof_index - * @memberof google.protobuf.FieldDescriptorProto - * @instance - */ - FieldDescriptorProto.prototype.oneof_index = 0; + return cosmos; + })(); - /** - * FieldDescriptorProto json_name. - * @member {string} json_name - * @memberof google.protobuf.FieldDescriptorProto - * @instance - */ - FieldDescriptorProto.prototype.json_name = ""; + $root.gogoproto = (function() { - /** - * FieldDescriptorProto options. - * @member {google.protobuf.IFieldOptions|null|undefined} options - * @memberof google.protobuf.FieldDescriptorProto - * @instance - */ - FieldDescriptorProto.prototype.options = null; + /** + * Namespace gogoproto. + * @exports gogoproto + * @namespace + */ + var gogoproto = {}; - /** - * Encodes the specified FieldDescriptorProto message. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages. - * @function encode - * @memberof google.protobuf.FieldDescriptorProto - * @static - * @param {google.protobuf.IFieldDescriptorProto} message FieldDescriptorProto message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FieldDescriptorProto.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.extendee != null && Object.hasOwnProperty.call(message, "extendee")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.extendee); - if (message.number != null && Object.hasOwnProperty.call(message, "number")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.number); - if (message.label != null && Object.hasOwnProperty.call(message, "label")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.label); - if (message.type != null && Object.hasOwnProperty.call(message, "type")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.type); - if (message.type_name != null && Object.hasOwnProperty.call(message, "type_name")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.type_name); - if (message.default_value != null && Object.hasOwnProperty.call(message, "default_value")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.default_value); - if (message.options != null && Object.hasOwnProperty.call(message, "options")) - $root.google.protobuf.FieldOptions.encode(message.options, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.oneof_index != null && Object.hasOwnProperty.call(message, "oneof_index")) - writer.uint32(/* id 9, wireType 0 =*/72).int32(message.oneof_index); - if (message.json_name != null && Object.hasOwnProperty.call(message, "json_name")) - writer.uint32(/* id 10, wireType 2 =*/82).string(message.json_name); - return writer; - }; + return gogoproto; + })(); - /** - * Encodes the specified FieldDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.FieldDescriptorProto - * @static - * @param {google.protobuf.IFieldDescriptorProto} message FieldDescriptorProto message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FieldDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + $root.cosmos_proto = (function() { - /** - * Decodes a FieldDescriptorProto message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.FieldDescriptorProto - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.FieldDescriptorProto} FieldDescriptorProto - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FieldDescriptorProto.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FieldDescriptorProto(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 3: - message.number = reader.int32(); - break; - case 4: - message.label = reader.int32(); - break; - case 5: - message.type = reader.int32(); - break; - case 6: - message.type_name = reader.string(); - break; - case 2: - message.extendee = reader.string(); - break; - case 7: - message.default_value = reader.string(); - break; - case 9: - message.oneof_index = reader.int32(); - break; - case 10: - message.json_name = reader.string(); - break; - case 8: - message.options = $root.google.protobuf.FieldOptions.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Namespace cosmos_proto. + * @exports cosmos_proto + * @namespace + */ + var cosmos_proto = {}; - /** - * Decodes a FieldDescriptorProto message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.FieldDescriptorProto - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.FieldDescriptorProto} FieldDescriptorProto - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FieldDescriptorProto.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + cosmos_proto.InterfaceDescriptor = (function() { - /** - * Verifies a FieldDescriptorProto message. - * @function verify - * @memberof google.protobuf.FieldDescriptorProto - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - FieldDescriptorProto.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.number != null && message.hasOwnProperty("number")) - if (!$util.isInteger(message.number)) - return "number: integer expected"; - if (message.label != null && message.hasOwnProperty("label")) - switch (message.label) { - default: - return "label: enum value expected"; - case 1: - case 2: - case 3: - break; - } - if (message.type != null && message.hasOwnProperty("type")) - switch (message.type) { - default: - return "type: enum value expected"; - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - case 10: - case 11: - case 12: - case 13: - case 14: - case 15: - case 16: - case 17: - case 18: - break; - } - if (message.type_name != null && message.hasOwnProperty("type_name")) - if (!$util.isString(message.type_name)) - return "type_name: string expected"; - if (message.extendee != null && message.hasOwnProperty("extendee")) - if (!$util.isString(message.extendee)) - return "extendee: string expected"; - if (message.default_value != null && message.hasOwnProperty("default_value")) - if (!$util.isString(message.default_value)) - return "default_value: string expected"; - if (message.oneof_index != null && message.hasOwnProperty("oneof_index")) - if (!$util.isInteger(message.oneof_index)) - return "oneof_index: integer expected"; - if (message.json_name != null && message.hasOwnProperty("json_name")) - if (!$util.isString(message.json_name)) - return "json_name: string expected"; - if (message.options != null && message.hasOwnProperty("options")) { - var error = $root.google.protobuf.FieldOptions.verify(message.options); - if (error) - return "options." + error; - } - return null; - }; + /** + * Properties of an InterfaceDescriptor. + * @memberof cosmos_proto + * @interface IInterfaceDescriptor + * @property {string|null} [name] InterfaceDescriptor name + * @property {string|null} [description] InterfaceDescriptor description + */ - /** - * Creates a FieldDescriptorProto message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.FieldDescriptorProto - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.FieldDescriptorProto} FieldDescriptorProto - */ - FieldDescriptorProto.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.FieldDescriptorProto) - return object; - var message = new $root.google.protobuf.FieldDescriptorProto(); - if (object.name != null) - message.name = String(object.name); - if (object.number != null) - message.number = object.number | 0; - switch (object.label) { - case "LABEL_OPTIONAL": - case 1: - message.label = 1; - break; - case "LABEL_REQUIRED": - case 2: - message.label = 2; - break; - case "LABEL_REPEATED": - case 3: - message.label = 3; - break; - } - switch (object.type) { - case "TYPE_DOUBLE": - case 1: - message.type = 1; - break; - case "TYPE_FLOAT": - case 2: - message.type = 2; - break; - case "TYPE_INT64": - case 3: - message.type = 3; - break; - case "TYPE_UINT64": - case 4: - message.type = 4; - break; - case "TYPE_INT32": - case 5: - message.type = 5; - break; - case "TYPE_FIXED64": - case 6: - message.type = 6; - break; - case "TYPE_FIXED32": - case 7: - message.type = 7; - break; - case "TYPE_BOOL": - case 8: - message.type = 8; - break; - case "TYPE_STRING": - case 9: - message.type = 9; - break; - case "TYPE_GROUP": - case 10: - message.type = 10; - break; - case "TYPE_MESSAGE": - case 11: - message.type = 11; - break; - case "TYPE_BYTES": - case 12: - message.type = 12; - break; - case "TYPE_UINT32": - case 13: - message.type = 13; - break; - case "TYPE_ENUM": - case 14: - message.type = 14; - break; - case "TYPE_SFIXED32": - case 15: - message.type = 15; - break; - case "TYPE_SFIXED64": - case 16: - message.type = 16; + /** + * Constructs a new InterfaceDescriptor. + * @memberof cosmos_proto + * @classdesc Represents an InterfaceDescriptor. + * @implements IInterfaceDescriptor + * @constructor + * @param {cosmos_proto.IInterfaceDescriptor=} [properties] Properties to set + */ + function InterfaceDescriptor(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * InterfaceDescriptor name. + * @member {string} name + * @memberof cosmos_proto.InterfaceDescriptor + * @instance + */ + InterfaceDescriptor.prototype.name = ""; + + /** + * InterfaceDescriptor description. + * @member {string} description + * @memberof cosmos_proto.InterfaceDescriptor + * @instance + */ + InterfaceDescriptor.prototype.description = ""; + + /** + * Encodes the specified InterfaceDescriptor message. Does not implicitly {@link cosmos_proto.InterfaceDescriptor.verify|verify} messages. + * @function encode + * @memberof cosmos_proto.InterfaceDescriptor + * @static + * @param {cosmos_proto.IInterfaceDescriptor} message InterfaceDescriptor message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InterfaceDescriptor.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.description != null && Object.hasOwnProperty.call(message, "description")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.description); + return writer; + }; + + /** + * Encodes the specified InterfaceDescriptor message, length delimited. Does not implicitly {@link cosmos_proto.InterfaceDescriptor.verify|verify} messages. + * @function encodeDelimited + * @memberof cosmos_proto.InterfaceDescriptor + * @static + * @param {cosmos_proto.IInterfaceDescriptor} message InterfaceDescriptor message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InterfaceDescriptor.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an InterfaceDescriptor message from the specified reader or buffer. + * @function decode + * @memberof cosmos_proto.InterfaceDescriptor + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {cosmos_proto.InterfaceDescriptor} InterfaceDescriptor + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InterfaceDescriptor.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.cosmos_proto.InterfaceDescriptor(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); break; - case "TYPE_SINT32": - case 17: - message.type = 17; + case 2: + message.description = reader.string(); break; - case "TYPE_SINT64": - case 18: - message.type = 18; + default: + reader.skipType(tag & 7); break; } - if (object.type_name != null) - message.type_name = String(object.type_name); - if (object.extendee != null) - message.extendee = String(object.extendee); - if (object.default_value != null) - message.default_value = String(object.default_value); - if (object.oneof_index != null) - message.oneof_index = object.oneof_index | 0; - if (object.json_name != null) - message.json_name = String(object.json_name); - if (object.options != null) { - if (typeof object.options !== "object") - throw TypeError(".google.protobuf.FieldDescriptorProto.options: object expected"); - message.options = $root.google.protobuf.FieldOptions.fromObject(object.options); - } - return message; - }; + } + return message; + }; - /** - * Creates a plain object from a FieldDescriptorProto message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.FieldDescriptorProto - * @static - * @param {google.protobuf.FieldDescriptorProto} message FieldDescriptorProto - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - FieldDescriptorProto.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.name = ""; - object.extendee = ""; - object.number = 0; - object.label = options.enums === String ? "LABEL_OPTIONAL" : 1; - object.type = options.enums === String ? "TYPE_DOUBLE" : 1; - object.type_name = ""; - object.default_value = ""; - object.options = null; - object.oneof_index = 0; - object.json_name = ""; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.extendee != null && message.hasOwnProperty("extendee")) - object.extendee = message.extendee; - if (message.number != null && message.hasOwnProperty("number")) - object.number = message.number; - if (message.label != null && message.hasOwnProperty("label")) - object.label = options.enums === String ? $root.google.protobuf.FieldDescriptorProto.Label[message.label] : message.label; - if (message.type != null && message.hasOwnProperty("type")) - object.type = options.enums === String ? $root.google.protobuf.FieldDescriptorProto.Type[message.type] : message.type; - if (message.type_name != null && message.hasOwnProperty("type_name")) - object.type_name = message.type_name; - if (message.default_value != null && message.hasOwnProperty("default_value")) - object.default_value = message.default_value; - if (message.options != null && message.hasOwnProperty("options")) - object.options = $root.google.protobuf.FieldOptions.toObject(message.options, options); - if (message.oneof_index != null && message.hasOwnProperty("oneof_index")) - object.oneof_index = message.oneof_index; - if (message.json_name != null && message.hasOwnProperty("json_name")) - object.json_name = message.json_name; + /** + * Decodes an InterfaceDescriptor message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof cosmos_proto.InterfaceDescriptor + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {cosmos_proto.InterfaceDescriptor} InterfaceDescriptor + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InterfaceDescriptor.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an InterfaceDescriptor message. + * @function verify + * @memberof cosmos_proto.InterfaceDescriptor + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + InterfaceDescriptor.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.description != null && message.hasOwnProperty("description")) + if (!$util.isString(message.description)) + return "description: string expected"; + return null; + }; + + /** + * Creates an InterfaceDescriptor message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof cosmos_proto.InterfaceDescriptor + * @static + * @param {Object.} object Plain object + * @returns {cosmos_proto.InterfaceDescriptor} InterfaceDescriptor + */ + InterfaceDescriptor.fromObject = function fromObject(object) { + if (object instanceof $root.cosmos_proto.InterfaceDescriptor) return object; - }; + var message = new $root.cosmos_proto.InterfaceDescriptor(); + if (object.name != null) + message.name = String(object.name); + if (object.description != null) + message.description = String(object.description); + return message; + }; - /** - * Converts this FieldDescriptorProto to JSON. - * @function toJSON - * @memberof google.protobuf.FieldDescriptorProto - * @instance - * @returns {Object.} JSON object - */ - FieldDescriptorProto.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from an InterfaceDescriptor message. Also converts values to other types if specified. + * @function toObject + * @memberof cosmos_proto.InterfaceDescriptor + * @static + * @param {cosmos_proto.InterfaceDescriptor} message InterfaceDescriptor + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + InterfaceDescriptor.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.description = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.description != null && message.hasOwnProperty("description")) + object.description = message.description; + return object; + }; - /** - * Type enum. - * @name google.protobuf.FieldDescriptorProto.Type - * @enum {number} - * @property {number} TYPE_DOUBLE=1 TYPE_DOUBLE value - * @property {number} TYPE_FLOAT=2 TYPE_FLOAT value - * @property {number} TYPE_INT64=3 TYPE_INT64 value - * @property {number} TYPE_UINT64=4 TYPE_UINT64 value - * @property {number} TYPE_INT32=5 TYPE_INT32 value - * @property {number} TYPE_FIXED64=6 TYPE_FIXED64 value - * @property {number} TYPE_FIXED32=7 TYPE_FIXED32 value - * @property {number} TYPE_BOOL=8 TYPE_BOOL value - * @property {number} TYPE_STRING=9 TYPE_STRING value - * @property {number} TYPE_GROUP=10 TYPE_GROUP value - * @property {number} TYPE_MESSAGE=11 TYPE_MESSAGE value - * @property {number} TYPE_BYTES=12 TYPE_BYTES value - * @property {number} TYPE_UINT32=13 TYPE_UINT32 value - * @property {number} TYPE_ENUM=14 TYPE_ENUM value - * @property {number} TYPE_SFIXED32=15 TYPE_SFIXED32 value - * @property {number} TYPE_SFIXED64=16 TYPE_SFIXED64 value - * @property {number} TYPE_SINT32=17 TYPE_SINT32 value - * @property {number} TYPE_SINT64=18 TYPE_SINT64 value - */ - FieldDescriptorProto.Type = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[1] = "TYPE_DOUBLE"] = 1; - values[valuesById[2] = "TYPE_FLOAT"] = 2; - values[valuesById[3] = "TYPE_INT64"] = 3; - values[valuesById[4] = "TYPE_UINT64"] = 4; - values[valuesById[5] = "TYPE_INT32"] = 5; - values[valuesById[6] = "TYPE_FIXED64"] = 6; - values[valuesById[7] = "TYPE_FIXED32"] = 7; - values[valuesById[8] = "TYPE_BOOL"] = 8; - values[valuesById[9] = "TYPE_STRING"] = 9; - values[valuesById[10] = "TYPE_GROUP"] = 10; - values[valuesById[11] = "TYPE_MESSAGE"] = 11; - values[valuesById[12] = "TYPE_BYTES"] = 12; - values[valuesById[13] = "TYPE_UINT32"] = 13; - values[valuesById[14] = "TYPE_ENUM"] = 14; - values[valuesById[15] = "TYPE_SFIXED32"] = 15; - values[valuesById[16] = "TYPE_SFIXED64"] = 16; - values[valuesById[17] = "TYPE_SINT32"] = 17; - values[valuesById[18] = "TYPE_SINT64"] = 18; - return values; - })(); + /** + * Converts this InterfaceDescriptor to JSON. + * @function toJSON + * @memberof cosmos_proto.InterfaceDescriptor + * @instance + * @returns {Object.} JSON object + */ + InterfaceDescriptor.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Label enum. - * @name google.protobuf.FieldDescriptorProto.Label - * @enum {number} - * @property {number} LABEL_OPTIONAL=1 LABEL_OPTIONAL value - * @property {number} LABEL_REQUIRED=2 LABEL_REQUIRED value - * @property {number} LABEL_REPEATED=3 LABEL_REPEATED value - */ - FieldDescriptorProto.Label = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[1] = "LABEL_OPTIONAL"] = 1; - values[valuesById[2] = "LABEL_REQUIRED"] = 2; - values[valuesById[3] = "LABEL_REPEATED"] = 3; - return values; - })(); + return InterfaceDescriptor; + })(); - return FieldDescriptorProto; - })(); + cosmos_proto.ScalarDescriptor = (function() { - protobuf.OneofDescriptorProto = (function() { + /** + * Properties of a ScalarDescriptor. + * @memberof cosmos_proto + * @interface IScalarDescriptor + * @property {string|null} [name] ScalarDescriptor name + * @property {string|null} [description] ScalarDescriptor description + * @property {Array.|null} [field_type] ScalarDescriptor field_type + */ - /** - * Properties of an OneofDescriptorProto. - * @memberof google.protobuf - * @interface IOneofDescriptorProto - * @property {string|null} [name] OneofDescriptorProto name - * @property {google.protobuf.IOneofOptions|null} [options] OneofDescriptorProto options - */ + /** + * Constructs a new ScalarDescriptor. + * @memberof cosmos_proto + * @classdesc Represents a ScalarDescriptor. + * @implements IScalarDescriptor + * @constructor + * @param {cosmos_proto.IScalarDescriptor=} [properties] Properties to set + */ + function ScalarDescriptor(properties) { + this.field_type = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Constructs a new OneofDescriptorProto. - * @memberof google.protobuf - * @classdesc Represents an OneofDescriptorProto. - * @implements IOneofDescriptorProto - * @constructor - * @param {google.protobuf.IOneofDescriptorProto=} [properties] Properties to set - */ - function OneofDescriptorProto(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * ScalarDescriptor name. + * @member {string} name + * @memberof cosmos_proto.ScalarDescriptor + * @instance + */ + ScalarDescriptor.prototype.name = ""; - /** - * OneofDescriptorProto name. - * @member {string} name - * @memberof google.protobuf.OneofDescriptorProto - * @instance - */ - OneofDescriptorProto.prototype.name = ""; + /** + * ScalarDescriptor description. + * @member {string} description + * @memberof cosmos_proto.ScalarDescriptor + * @instance + */ + ScalarDescriptor.prototype.description = ""; - /** - * OneofDescriptorProto options. - * @member {google.protobuf.IOneofOptions|null|undefined} options - * @memberof google.protobuf.OneofDescriptorProto - * @instance - */ - OneofDescriptorProto.prototype.options = null; + /** + * ScalarDescriptor field_type. + * @member {Array.} field_type + * @memberof cosmos_proto.ScalarDescriptor + * @instance + */ + ScalarDescriptor.prototype.field_type = $util.emptyArray; - /** - * Encodes the specified OneofDescriptorProto message. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages. - * @function encode - * @memberof google.protobuf.OneofDescriptorProto - * @static - * @param {google.protobuf.IOneofDescriptorProto} message OneofDescriptorProto message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - OneofDescriptorProto.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.options != null && Object.hasOwnProperty.call(message, "options")) - $root.google.protobuf.OneofOptions.encode(message.options, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; + /** + * Encodes the specified ScalarDescriptor message. Does not implicitly {@link cosmos_proto.ScalarDescriptor.verify|verify} messages. + * @function encode + * @memberof cosmos_proto.ScalarDescriptor + * @static + * @param {cosmos_proto.IScalarDescriptor} message ScalarDescriptor message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ScalarDescriptor.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.description != null && Object.hasOwnProperty.call(message, "description")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.description); + if (message.field_type != null && message.field_type.length) { + writer.uint32(/* id 3, wireType 2 =*/26).fork(); + for (var i = 0; i < message.field_type.length; ++i) + writer.int32(message.field_type[i]); + writer.ldelim(); + } + return writer; + }; - /** - * Encodes the specified OneofDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.OneofDescriptorProto - * @static - * @param {google.protobuf.IOneofDescriptorProto} message OneofDescriptorProto message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - OneofDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified ScalarDescriptor message, length delimited. Does not implicitly {@link cosmos_proto.ScalarDescriptor.verify|verify} messages. + * @function encodeDelimited + * @memberof cosmos_proto.ScalarDescriptor + * @static + * @param {cosmos_proto.IScalarDescriptor} message ScalarDescriptor message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ScalarDescriptor.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes an OneofDescriptorProto message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.OneofDescriptorProto - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.OneofDescriptorProto} OneofDescriptorProto - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - OneofDescriptorProto.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.OneofDescriptorProto(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { + /** + * Decodes a ScalarDescriptor message from the specified reader or buffer. + * @function decode + * @memberof cosmos_proto.ScalarDescriptor + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {cosmos_proto.ScalarDescriptor} ScalarDescriptor + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ScalarDescriptor.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.cosmos_proto.ScalarDescriptor(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.description = reader.string(); + break; + case 3: + if (!(message.field_type && message.field_type.length)) + message.field_type = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.field_type.push(reader.int32()); + } else + message.field_type.push(reader.int32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ScalarDescriptor message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof cosmos_proto.ScalarDescriptor + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {cosmos_proto.ScalarDescriptor} ScalarDescriptor + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ScalarDescriptor.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ScalarDescriptor message. + * @function verify + * @memberof cosmos_proto.ScalarDescriptor + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ScalarDescriptor.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.description != null && message.hasOwnProperty("description")) + if (!$util.isString(message.description)) + return "description: string expected"; + if (message.field_type != null && message.hasOwnProperty("field_type")) { + if (!Array.isArray(message.field_type)) + return "field_type: array expected"; + for (var i = 0; i < message.field_type.length; ++i) + switch (message.field_type[i]) { + default: + return "field_type: enum value[] expected"; + case 0: case 1: - message.name = reader.string(); - break; case 2: - message.options = $root.google.protobuf.OneofOptions.decode(reader, reader.uint32()); break; + } + } + return null; + }; + + /** + * Creates a ScalarDescriptor message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof cosmos_proto.ScalarDescriptor + * @static + * @param {Object.} object Plain object + * @returns {cosmos_proto.ScalarDescriptor} ScalarDescriptor + */ + ScalarDescriptor.fromObject = function fromObject(object) { + if (object instanceof $root.cosmos_proto.ScalarDescriptor) + return object; + var message = new $root.cosmos_proto.ScalarDescriptor(); + if (object.name != null) + message.name = String(object.name); + if (object.description != null) + message.description = String(object.description); + if (object.field_type) { + if (!Array.isArray(object.field_type)) + throw TypeError(".cosmos_proto.ScalarDescriptor.field_type: array expected"); + message.field_type = []; + for (var i = 0; i < object.field_type.length; ++i) + switch (object.field_type[i]) { default: - reader.skipType(tag & 7); + case "SCALAR_TYPE_UNSPECIFIED": + case 0: + message.field_type[i] = 0; + break; + case "SCALAR_TYPE_STRING": + case 1: + message.field_type[i] = 1; + break; + case "SCALAR_TYPE_BYTES": + case 2: + message.field_type[i] = 2; break; } - } - return message; - }; + } + return message; + }; - /** - * Decodes an OneofDescriptorProto message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.OneofDescriptorProto - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.OneofDescriptorProto} OneofDescriptorProto - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - OneofDescriptorProto.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Creates a plain object from a ScalarDescriptor message. Also converts values to other types if specified. + * @function toObject + * @memberof cosmos_proto.ScalarDescriptor + * @static + * @param {cosmos_proto.ScalarDescriptor} message ScalarDescriptor + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ScalarDescriptor.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.field_type = []; + if (options.defaults) { + object.name = ""; + object.description = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.description != null && message.hasOwnProperty("description")) + object.description = message.description; + if (message.field_type && message.field_type.length) { + object.field_type = []; + for (var j = 0; j < message.field_type.length; ++j) + object.field_type[j] = options.enums === String ? $root.cosmos_proto.ScalarType[message.field_type[j]] : message.field_type[j]; + } + return object; + }; - /** - * Verifies an OneofDescriptorProto message. - * @function verify - * @memberof google.protobuf.OneofDescriptorProto - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - OneofDescriptorProto.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.options != null && message.hasOwnProperty("options")) { - var error = $root.google.protobuf.OneofOptions.verify(message.options); - if (error) - return "options." + error; - } - return null; - }; + /** + * Converts this ScalarDescriptor to JSON. + * @function toJSON + * @memberof cosmos_proto.ScalarDescriptor + * @instance + * @returns {Object.} JSON object + */ + ScalarDescriptor.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ScalarDescriptor; + })(); + + /** + * ScalarType enum. + * @name cosmos_proto.ScalarType + * @enum {number} + * @property {number} SCALAR_TYPE_UNSPECIFIED=0 SCALAR_TYPE_UNSPECIFIED value + * @property {number} SCALAR_TYPE_STRING=1 SCALAR_TYPE_STRING value + * @property {number} SCALAR_TYPE_BYTES=2 SCALAR_TYPE_BYTES value + */ + cosmos_proto.ScalarType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "SCALAR_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "SCALAR_TYPE_STRING"] = 1; + values[valuesById[2] = "SCALAR_TYPE_BYTES"] = 2; + return values; + })(); - /** - * Creates an OneofDescriptorProto message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.OneofDescriptorProto - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.OneofDescriptorProto} OneofDescriptorProto - */ - OneofDescriptorProto.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.OneofDescriptorProto) - return object; - var message = new $root.google.protobuf.OneofDescriptorProto(); - if (object.name != null) - message.name = String(object.name); - if (object.options != null) { - if (typeof object.options !== "object") - throw TypeError(".google.protobuf.OneofDescriptorProto.options: object expected"); - message.options = $root.google.protobuf.OneofOptions.fromObject(object.options); - } - return message; - }; + return cosmos_proto; + })(); - /** - * Creates a plain object from an OneofDescriptorProto message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.OneofDescriptorProto - * @static - * @param {google.protobuf.OneofDescriptorProto} message OneofDescriptorProto - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - OneofDescriptorProto.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.name = ""; - object.options = null; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.options != null && message.hasOwnProperty("options")) - object.options = $root.google.protobuf.OneofOptions.toObject(message.options, options); - return object; - }; + $root.amino = (function() { - /** - * Converts this OneofDescriptorProto to JSON. - * @function toJSON - * @memberof google.protobuf.OneofDescriptorProto - * @instance - * @returns {Object.} JSON object - */ - OneofDescriptorProto.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Namespace amino. + * @exports amino + * @namespace + */ + var amino = {}; - return OneofDescriptorProto; - })(); + return amino; + })(); - protobuf.EnumDescriptorProto = (function() { + $root.google = (function() { + + /** + * Namespace google. + * @exports google + * @namespace + */ + var google = {}; + + google.protobuf = (function() { + + /** + * Namespace protobuf. + * @memberof google + * @namespace + */ + var protobuf = {}; + + protobuf.FileDescriptorSet = (function() { /** - * Properties of an EnumDescriptorProto. + * Properties of a FileDescriptorSet. * @memberof google.protobuf - * @interface IEnumDescriptorProto - * @property {string|null} [name] EnumDescriptorProto name - * @property {Array.|null} [value] EnumDescriptorProto value - * @property {google.protobuf.IEnumOptions|null} [options] EnumDescriptorProto options + * @interface IFileDescriptorSet + * @property {Array.|null} [file] FileDescriptorSet file */ /** - * Constructs a new EnumDescriptorProto. + * Constructs a new FileDescriptorSet. * @memberof google.protobuf - * @classdesc Represents an EnumDescriptorProto. - * @implements IEnumDescriptorProto + * @classdesc Represents a FileDescriptorSet. + * @implements IFileDescriptorSet * @constructor - * @param {google.protobuf.IEnumDescriptorProto=} [properties] Properties to set + * @param {google.protobuf.IFileDescriptorSet=} [properties] Properties to set */ - function EnumDescriptorProto(properties) { - this.value = []; + function FileDescriptorSet(properties) { + this.file = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -10023,92 +15895,66 @@ } /** - * EnumDescriptorProto name. - * @member {string} name - * @memberof google.protobuf.EnumDescriptorProto - * @instance - */ - EnumDescriptorProto.prototype.name = ""; - - /** - * EnumDescriptorProto value. - * @member {Array.} value - * @memberof google.protobuf.EnumDescriptorProto - * @instance - */ - EnumDescriptorProto.prototype.value = $util.emptyArray; - - /** - * EnumDescriptorProto options. - * @member {google.protobuf.IEnumOptions|null|undefined} options - * @memberof google.protobuf.EnumDescriptorProto + * FileDescriptorSet file. + * @member {Array.} file + * @memberof google.protobuf.FileDescriptorSet * @instance */ - EnumDescriptorProto.prototype.options = null; + FileDescriptorSet.prototype.file = $util.emptyArray; /** - * Encodes the specified EnumDescriptorProto message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages. + * Encodes the specified FileDescriptorSet message. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages. * @function encode - * @memberof google.protobuf.EnumDescriptorProto + * @memberof google.protobuf.FileDescriptorSet * @static - * @param {google.protobuf.IEnumDescriptorProto} message EnumDescriptorProto message or plain object to encode + * @param {google.protobuf.IFileDescriptorSet} message FileDescriptorSet message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EnumDescriptorProto.encode = function encode(message, writer) { + FileDescriptorSet.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.value != null && message.value.length) - for (var i = 0; i < message.value.length; ++i) - $root.google.protobuf.EnumValueDescriptorProto.encode(message.value[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.options != null && Object.hasOwnProperty.call(message, "options")) - $root.google.protobuf.EnumOptions.encode(message.options, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.file != null && message.file.length) + for (var i = 0; i < message.file.length; ++i) + $root.google.protobuf.FileDescriptorProto.encode(message.file[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified EnumDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages. + * Encodes the specified FileDescriptorSet message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages. * @function encodeDelimited - * @memberof google.protobuf.EnumDescriptorProto + * @memberof google.protobuf.FileDescriptorSet * @static - * @param {google.protobuf.IEnumDescriptorProto} message EnumDescriptorProto message or plain object to encode + * @param {google.protobuf.IFileDescriptorSet} message FileDescriptorSet message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EnumDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { + FileDescriptorSet.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an EnumDescriptorProto message from the specified reader or buffer. + * Decodes a FileDescriptorSet message from the specified reader or buffer. * @function decode - * @memberof google.protobuf.EnumDescriptorProto + * @memberof google.protobuf.FileDescriptorSet * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.EnumDescriptorProto} EnumDescriptorProto + * @returns {google.protobuf.FileDescriptorSet} FileDescriptorSet * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EnumDescriptorProto.decode = function decode(reader, length) { + FileDescriptorSet.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.EnumDescriptorProto(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FileDescriptorSet(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); - break; - case 2: - if (!(message.value && message.value.length)) - message.value = []; - message.value.push($root.google.protobuf.EnumValueDescriptorProto.decode(reader, reader.uint32())); - break; - case 3: - message.options = $root.google.protobuf.EnumOptions.decode(reader, reader.uint32()); + if (!(message.file && message.file.length)) + message.file = []; + message.file.push($root.google.protobuf.FileDescriptorProto.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -10119,149 +15965,142 @@ }; /** - * Decodes an EnumDescriptorProto message from the specified reader or buffer, length delimited. + * Decodes a FileDescriptorSet message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.protobuf.EnumDescriptorProto + * @memberof google.protobuf.FileDescriptorSet * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.EnumDescriptorProto} EnumDescriptorProto + * @returns {google.protobuf.FileDescriptorSet} FileDescriptorSet * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EnumDescriptorProto.decodeDelimited = function decodeDelimited(reader) { + FileDescriptorSet.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an EnumDescriptorProto message. + * Verifies a FileDescriptorSet message. * @function verify - * @memberof google.protobuf.EnumDescriptorProto + * @memberof google.protobuf.FileDescriptorSet * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - EnumDescriptorProto.verify = function verify(message) { + FileDescriptorSet.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.value != null && message.hasOwnProperty("value")) { - if (!Array.isArray(message.value)) - return "value: array expected"; - for (var i = 0; i < message.value.length; ++i) { - var error = $root.google.protobuf.EnumValueDescriptorProto.verify(message.value[i]); + if (message.file != null && message.hasOwnProperty("file")) { + if (!Array.isArray(message.file)) + return "file: array expected"; + for (var i = 0; i < message.file.length; ++i) { + var error = $root.google.protobuf.FileDescriptorProto.verify(message.file[i]); if (error) - return "value." + error; + return "file." + error; } } - if (message.options != null && message.hasOwnProperty("options")) { - var error = $root.google.protobuf.EnumOptions.verify(message.options); - if (error) - return "options." + error; - } return null; }; /** - * Creates an EnumDescriptorProto message from a plain object. Also converts values to their respective internal types. + * Creates a FileDescriptorSet message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.protobuf.EnumDescriptorProto + * @memberof google.protobuf.FileDescriptorSet * @static * @param {Object.} object Plain object - * @returns {google.protobuf.EnumDescriptorProto} EnumDescriptorProto + * @returns {google.protobuf.FileDescriptorSet} FileDescriptorSet */ - EnumDescriptorProto.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.EnumDescriptorProto) + FileDescriptorSet.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.FileDescriptorSet) return object; - var message = new $root.google.protobuf.EnumDescriptorProto(); - if (object.name != null) - message.name = String(object.name); - if (object.value) { - if (!Array.isArray(object.value)) - throw TypeError(".google.protobuf.EnumDescriptorProto.value: array expected"); - message.value = []; - for (var i = 0; i < object.value.length; ++i) { - if (typeof object.value[i] !== "object") - throw TypeError(".google.protobuf.EnumDescriptorProto.value: object expected"); - message.value[i] = $root.google.protobuf.EnumValueDescriptorProto.fromObject(object.value[i]); + var message = new $root.google.protobuf.FileDescriptorSet(); + if (object.file) { + if (!Array.isArray(object.file)) + throw TypeError(".google.protobuf.FileDescriptorSet.file: array expected"); + message.file = []; + for (var i = 0; i < object.file.length; ++i) { + if (typeof object.file[i] !== "object") + throw TypeError(".google.protobuf.FileDescriptorSet.file: object expected"); + message.file[i] = $root.google.protobuf.FileDescriptorProto.fromObject(object.file[i]); } } - if (object.options != null) { - if (typeof object.options !== "object") - throw TypeError(".google.protobuf.EnumDescriptorProto.options: object expected"); - message.options = $root.google.protobuf.EnumOptions.fromObject(object.options); - } return message; }; /** - * Creates a plain object from an EnumDescriptorProto message. Also converts values to other types if specified. + * Creates a plain object from a FileDescriptorSet message. Also converts values to other types if specified. * @function toObject - * @memberof google.protobuf.EnumDescriptorProto + * @memberof google.protobuf.FileDescriptorSet * @static - * @param {google.protobuf.EnumDescriptorProto} message EnumDescriptorProto + * @param {google.protobuf.FileDescriptorSet} message FileDescriptorSet * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - EnumDescriptorProto.toObject = function toObject(message, options) { + FileDescriptorSet.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.value = []; - if (options.defaults) { - object.name = ""; - object.options = null; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.value && message.value.length) { - object.value = []; - for (var j = 0; j < message.value.length; ++j) - object.value[j] = $root.google.protobuf.EnumValueDescriptorProto.toObject(message.value[j], options); + object.file = []; + if (message.file && message.file.length) { + object.file = []; + for (var j = 0; j < message.file.length; ++j) + object.file[j] = $root.google.protobuf.FileDescriptorProto.toObject(message.file[j], options); } - if (message.options != null && message.hasOwnProperty("options")) - object.options = $root.google.protobuf.EnumOptions.toObject(message.options, options); return object; }; /** - * Converts this EnumDescriptorProto to JSON. + * Converts this FileDescriptorSet to JSON. * @function toJSON - * @memberof google.protobuf.EnumDescriptorProto + * @memberof google.protobuf.FileDescriptorSet * @instance * @returns {Object.} JSON object */ - EnumDescriptorProto.prototype.toJSON = function toJSON() { + FileDescriptorSet.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return EnumDescriptorProto; + return FileDescriptorSet; })(); - protobuf.EnumValueDescriptorProto = (function() { + protobuf.FileDescriptorProto = (function() { /** - * Properties of an EnumValueDescriptorProto. + * Properties of a FileDescriptorProto. * @memberof google.protobuf - * @interface IEnumValueDescriptorProto - * @property {string|null} [name] EnumValueDescriptorProto name - * @property {number|null} [number] EnumValueDescriptorProto number - * @property {google.protobuf.IEnumValueOptions|null} [options] EnumValueDescriptorProto options + * @interface IFileDescriptorProto + * @property {string|null} [name] FileDescriptorProto name + * @property {string|null} ["package"] FileDescriptorProto package + * @property {Array.|null} [dependency] FileDescriptorProto dependency + * @property {Array.|null} [public_dependency] FileDescriptorProto public_dependency + * @property {Array.|null} [weak_dependency] FileDescriptorProto weak_dependency + * @property {Array.|null} [message_type] FileDescriptorProto message_type + * @property {Array.|null} [enum_type] FileDescriptorProto enum_type + * @property {Array.|null} [service] FileDescriptorProto service + * @property {Array.|null} [extension] FileDescriptorProto extension + * @property {google.protobuf.IFileOptions|null} [options] FileDescriptorProto options + * @property {google.protobuf.ISourceCodeInfo|null} [source_code_info] FileDescriptorProto source_code_info + * @property {string|null} [syntax] FileDescriptorProto syntax */ /** - * Constructs a new EnumValueDescriptorProto. + * Constructs a new FileDescriptorProto. * @memberof google.protobuf - * @classdesc Represents an EnumValueDescriptorProto. - * @implements IEnumValueDescriptorProto + * @classdesc Represents a FileDescriptorProto. + * @implements IFileDescriptorProto * @constructor - * @param {google.protobuf.IEnumValueDescriptorProto=} [properties] Properties to set + * @param {google.protobuf.IFileDescriptorProto=} [properties] Properties to set */ - function EnumValueDescriptorProto(properties) { + function FileDescriptorProto(properties) { + this.dependency = []; + this.public_dependency = []; + this.weak_dependency = []; + this.message_type = []; + this.enum_type = []; + this.service = []; + this.extension = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -10269,305 +16108,175 @@ } /** - * EnumValueDescriptorProto name. + * FileDescriptorProto name. * @member {string} name - * @memberof google.protobuf.EnumValueDescriptorProto + * @memberof google.protobuf.FileDescriptorProto * @instance */ - EnumValueDescriptorProto.prototype.name = ""; + FileDescriptorProto.prototype.name = ""; /** - * EnumValueDescriptorProto number. - * @member {number} number - * @memberof google.protobuf.EnumValueDescriptorProto + * FileDescriptorProto package. + * @member {string} package + * @memberof google.protobuf.FileDescriptorProto * @instance */ - EnumValueDescriptorProto.prototype.number = 0; + FileDescriptorProto.prototype["package"] = ""; /** - * EnumValueDescriptorProto options. - * @member {google.protobuf.IEnumValueOptions|null|undefined} options - * @memberof google.protobuf.EnumValueDescriptorProto + * FileDescriptorProto dependency. + * @member {Array.} dependency + * @memberof google.protobuf.FileDescriptorProto * @instance */ - EnumValueDescriptorProto.prototype.options = null; - - /** - * Encodes the specified EnumValueDescriptorProto message. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages. - * @function encode - * @memberof google.protobuf.EnumValueDescriptorProto - * @static - * @param {google.protobuf.IEnumValueDescriptorProto} message EnumValueDescriptorProto message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EnumValueDescriptorProto.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.number != null && Object.hasOwnProperty.call(message, "number")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.number); - if (message.options != null && Object.hasOwnProperty.call(message, "options")) - $root.google.protobuf.EnumValueOptions.encode(message.options, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified EnumValueDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.EnumValueDescriptorProto - * @static - * @param {google.protobuf.IEnumValueDescriptorProto} message EnumValueDescriptorProto message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EnumValueDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an EnumValueDescriptorProto message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.EnumValueDescriptorProto - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.EnumValueDescriptorProto} EnumValueDescriptorProto - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EnumValueDescriptorProto.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.EnumValueDescriptorProto(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.number = reader.int32(); - break; - case 3: - message.options = $root.google.protobuf.EnumValueOptions.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an EnumValueDescriptorProto message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.EnumValueDescriptorProto - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.EnumValueDescriptorProto} EnumValueDescriptorProto - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EnumValueDescriptorProto.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + FileDescriptorProto.prototype.dependency = $util.emptyArray; /** - * Verifies an EnumValueDescriptorProto message. - * @function verify - * @memberof google.protobuf.EnumValueDescriptorProto - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * FileDescriptorProto public_dependency. + * @member {Array.} public_dependency + * @memberof google.protobuf.FileDescriptorProto + * @instance */ - EnumValueDescriptorProto.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.number != null && message.hasOwnProperty("number")) - if (!$util.isInteger(message.number)) - return "number: integer expected"; - if (message.options != null && message.hasOwnProperty("options")) { - var error = $root.google.protobuf.EnumValueOptions.verify(message.options); - if (error) - return "options." + error; - } - return null; - }; + FileDescriptorProto.prototype.public_dependency = $util.emptyArray; /** - * Creates an EnumValueDescriptorProto message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.EnumValueDescriptorProto - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.EnumValueDescriptorProto} EnumValueDescriptorProto + * FileDescriptorProto weak_dependency. + * @member {Array.} weak_dependency + * @memberof google.protobuf.FileDescriptorProto + * @instance */ - EnumValueDescriptorProto.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.EnumValueDescriptorProto) - return object; - var message = new $root.google.protobuf.EnumValueDescriptorProto(); - if (object.name != null) - message.name = String(object.name); - if (object.number != null) - message.number = object.number | 0; - if (object.options != null) { - if (typeof object.options !== "object") - throw TypeError(".google.protobuf.EnumValueDescriptorProto.options: object expected"); - message.options = $root.google.protobuf.EnumValueOptions.fromObject(object.options); - } - return message; - }; + FileDescriptorProto.prototype.weak_dependency = $util.emptyArray; /** - * Creates a plain object from an EnumValueDescriptorProto message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.EnumValueDescriptorProto - * @static - * @param {google.protobuf.EnumValueDescriptorProto} message EnumValueDescriptorProto - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * FileDescriptorProto message_type. + * @member {Array.} message_type + * @memberof google.protobuf.FileDescriptorProto + * @instance */ - EnumValueDescriptorProto.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.name = ""; - object.number = 0; - object.options = null; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.number != null && message.hasOwnProperty("number")) - object.number = message.number; - if (message.options != null && message.hasOwnProperty("options")) - object.options = $root.google.protobuf.EnumValueOptions.toObject(message.options, options); - return object; - }; + FileDescriptorProto.prototype.message_type = $util.emptyArray; - /** - * Converts this EnumValueDescriptorProto to JSON. - * @function toJSON - * @memberof google.protobuf.EnumValueDescriptorProto + /** + * FileDescriptorProto enum_type. + * @member {Array.} enum_type + * @memberof google.protobuf.FileDescriptorProto * @instance - * @returns {Object.} JSON object */ - EnumValueDescriptorProto.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return EnumValueDescriptorProto; - })(); - - protobuf.ServiceDescriptorProto = (function() { + FileDescriptorProto.prototype.enum_type = $util.emptyArray; /** - * Properties of a ServiceDescriptorProto. - * @memberof google.protobuf - * @interface IServiceDescriptorProto - * @property {string|null} [name] ServiceDescriptorProto name - * @property {Array.|null} [method] ServiceDescriptorProto method - * @property {google.protobuf.IServiceOptions|null} [options] ServiceDescriptorProto options + * FileDescriptorProto service. + * @member {Array.} service + * @memberof google.protobuf.FileDescriptorProto + * @instance */ + FileDescriptorProto.prototype.service = $util.emptyArray; /** - * Constructs a new ServiceDescriptorProto. - * @memberof google.protobuf - * @classdesc Represents a ServiceDescriptorProto. - * @implements IServiceDescriptorProto - * @constructor - * @param {google.protobuf.IServiceDescriptorProto=} [properties] Properties to set + * FileDescriptorProto extension. + * @member {Array.} extension + * @memberof google.protobuf.FileDescriptorProto + * @instance */ - function ServiceDescriptorProto(properties) { - this.method = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + FileDescriptorProto.prototype.extension = $util.emptyArray; /** - * ServiceDescriptorProto name. - * @member {string} name - * @memberof google.protobuf.ServiceDescriptorProto + * FileDescriptorProto options. + * @member {google.protobuf.IFileOptions|null|undefined} options + * @memberof google.protobuf.FileDescriptorProto * @instance */ - ServiceDescriptorProto.prototype.name = ""; + FileDescriptorProto.prototype.options = null; /** - * ServiceDescriptorProto method. - * @member {Array.} method - * @memberof google.protobuf.ServiceDescriptorProto + * FileDescriptorProto source_code_info. + * @member {google.protobuf.ISourceCodeInfo|null|undefined} source_code_info + * @memberof google.protobuf.FileDescriptorProto * @instance */ - ServiceDescriptorProto.prototype.method = $util.emptyArray; + FileDescriptorProto.prototype.source_code_info = null; /** - * ServiceDescriptorProto options. - * @member {google.protobuf.IServiceOptions|null|undefined} options - * @memberof google.protobuf.ServiceDescriptorProto + * FileDescriptorProto syntax. + * @member {string} syntax + * @memberof google.protobuf.FileDescriptorProto * @instance */ - ServiceDescriptorProto.prototype.options = null; + FileDescriptorProto.prototype.syntax = ""; /** - * Encodes the specified ServiceDescriptorProto message. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages. + * Encodes the specified FileDescriptorProto message. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages. * @function encode - * @memberof google.protobuf.ServiceDescriptorProto + * @memberof google.protobuf.FileDescriptorProto * @static - * @param {google.protobuf.IServiceDescriptorProto} message ServiceDescriptorProto message or plain object to encode + * @param {google.protobuf.IFileDescriptorProto} message FileDescriptorProto message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ServiceDescriptorProto.encode = function encode(message, writer) { + FileDescriptorProto.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.method != null && message.method.length) - for (var i = 0; i < message.method.length; ++i) - $root.google.protobuf.MethodDescriptorProto.encode(message.method[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message["package"] != null && Object.hasOwnProperty.call(message, "package")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message["package"]); + if (message.dependency != null && message.dependency.length) + for (var i = 0; i < message.dependency.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.dependency[i]); + if (message.message_type != null && message.message_type.length) + for (var i = 0; i < message.message_type.length; ++i) + $root.google.protobuf.DescriptorProto.encode(message.message_type[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.enum_type != null && message.enum_type.length) + for (var i = 0; i < message.enum_type.length; ++i) + $root.google.protobuf.EnumDescriptorProto.encode(message.enum_type[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.service != null && message.service.length) + for (var i = 0; i < message.service.length; ++i) + $root.google.protobuf.ServiceDescriptorProto.encode(message.service[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.extension != null && message.extension.length) + for (var i = 0; i < message.extension.length; ++i) + $root.google.protobuf.FieldDescriptorProto.encode(message.extension[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); if (message.options != null && Object.hasOwnProperty.call(message, "options")) - $root.google.protobuf.ServiceOptions.encode(message.options, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + $root.google.protobuf.FileOptions.encode(message.options, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.source_code_info != null && Object.hasOwnProperty.call(message, "source_code_info")) + $root.google.protobuf.SourceCodeInfo.encode(message.source_code_info, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.public_dependency != null && message.public_dependency.length) + for (var i = 0; i < message.public_dependency.length; ++i) + writer.uint32(/* id 10, wireType 0 =*/80).int32(message.public_dependency[i]); + if (message.weak_dependency != null && message.weak_dependency.length) + for (var i = 0; i < message.weak_dependency.length; ++i) + writer.uint32(/* id 11, wireType 0 =*/88).int32(message.weak_dependency[i]); + if (message.syntax != null && Object.hasOwnProperty.call(message, "syntax")) + writer.uint32(/* id 12, wireType 2 =*/98).string(message.syntax); return writer; }; /** - * Encodes the specified ServiceDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages. + * Encodes the specified FileDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages. * @function encodeDelimited - * @memberof google.protobuf.ServiceDescriptorProto + * @memberof google.protobuf.FileDescriptorProto * @static - * @param {google.protobuf.IServiceDescriptorProto} message ServiceDescriptorProto message or plain object to encode + * @param {google.protobuf.IFileDescriptorProto} message FileDescriptorProto message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ServiceDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { + FileDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ServiceDescriptorProto message from the specified reader or buffer. + * Decodes a FileDescriptorProto message from the specified reader or buffer. * @function decode - * @memberof google.protobuf.ServiceDescriptorProto + * @memberof google.protobuf.FileDescriptorProto * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.ServiceDescriptorProto} ServiceDescriptorProto + * @returns {google.protobuf.FileDescriptorProto} FileDescriptorProto * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ServiceDescriptorProto.decode = function decode(reader, length) { + FileDescriptorProto.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.ServiceDescriptorProto(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FileDescriptorProto(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -10575,12 +16284,61 @@ message.name = reader.string(); break; case 2: - if (!(message.method && message.method.length)) - message.method = []; - message.method.push($root.google.protobuf.MethodDescriptorProto.decode(reader, reader.uint32())); + message["package"] = reader.string(); break; case 3: - message.options = $root.google.protobuf.ServiceOptions.decode(reader, reader.uint32()); + if (!(message.dependency && message.dependency.length)) + message.dependency = []; + message.dependency.push(reader.string()); + break; + case 10: + if (!(message.public_dependency && message.public_dependency.length)) + message.public_dependency = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.public_dependency.push(reader.int32()); + } else + message.public_dependency.push(reader.int32()); + break; + case 11: + if (!(message.weak_dependency && message.weak_dependency.length)) + message.weak_dependency = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.weak_dependency.push(reader.int32()); + } else + message.weak_dependency.push(reader.int32()); + break; + case 4: + if (!(message.message_type && message.message_type.length)) + message.message_type = []; + message.message_type.push($root.google.protobuf.DescriptorProto.decode(reader, reader.uint32())); + break; + case 5: + if (!(message.enum_type && message.enum_type.length)) + message.enum_type = []; + message.enum_type.push($root.google.protobuf.EnumDescriptorProto.decode(reader, reader.uint32())); + break; + case 6: + if (!(message.service && message.service.length)) + message.service = []; + message.service.push($root.google.protobuf.ServiceDescriptorProto.decode(reader, reader.uint32())); + break; + case 7: + if (!(message.extension && message.extension.length)) + message.extension = []; + message.extension.push($root.google.protobuf.FieldDescriptorProto.decode(reader, reader.uint32())); + break; + case 8: + message.options = $root.google.protobuf.FileOptions.decode(reader, reader.uint32()); + break; + case 9: + message.source_code_info = $root.google.protobuf.SourceCodeInfo.decode(reader, reader.uint32()); + break; + case 12: + message.syntax = reader.string(); break; default: reader.skipType(tag & 7); @@ -10591,152 +16349,329 @@ }; /** - * Decodes a ServiceDescriptorProto message from the specified reader or buffer, length delimited. + * Decodes a FileDescriptorProto message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.protobuf.ServiceDescriptorProto + * @memberof google.protobuf.FileDescriptorProto * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.ServiceDescriptorProto} ServiceDescriptorProto + * @returns {google.protobuf.FileDescriptorProto} FileDescriptorProto * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ServiceDescriptorProto.decodeDelimited = function decodeDelimited(reader) { + FileDescriptorProto.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ServiceDescriptorProto message. + * Verifies a FileDescriptorProto message. * @function verify - * @memberof google.protobuf.ServiceDescriptorProto + * @memberof google.protobuf.FileDescriptorProto * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ServiceDescriptorProto.verify = function verify(message) { + FileDescriptorProto.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; - if (message.method != null && message.hasOwnProperty("method")) { - if (!Array.isArray(message.method)) - return "method: array expected"; - for (var i = 0; i < message.method.length; ++i) { - var error = $root.google.protobuf.MethodDescriptorProto.verify(message.method[i]); + if (message["package"] != null && message.hasOwnProperty("package")) + if (!$util.isString(message["package"])) + return "package: string expected"; + if (message.dependency != null && message.hasOwnProperty("dependency")) { + if (!Array.isArray(message.dependency)) + return "dependency: array expected"; + for (var i = 0; i < message.dependency.length; ++i) + if (!$util.isString(message.dependency[i])) + return "dependency: string[] expected"; + } + if (message.public_dependency != null && message.hasOwnProperty("public_dependency")) { + if (!Array.isArray(message.public_dependency)) + return "public_dependency: array expected"; + for (var i = 0; i < message.public_dependency.length; ++i) + if (!$util.isInteger(message.public_dependency[i])) + return "public_dependency: integer[] expected"; + } + if (message.weak_dependency != null && message.hasOwnProperty("weak_dependency")) { + if (!Array.isArray(message.weak_dependency)) + return "weak_dependency: array expected"; + for (var i = 0; i < message.weak_dependency.length; ++i) + if (!$util.isInteger(message.weak_dependency[i])) + return "weak_dependency: integer[] expected"; + } + if (message.message_type != null && message.hasOwnProperty("message_type")) { + if (!Array.isArray(message.message_type)) + return "message_type: array expected"; + for (var i = 0; i < message.message_type.length; ++i) { + var error = $root.google.protobuf.DescriptorProto.verify(message.message_type[i]); if (error) - return "method." + error; + return "message_type." + error; + } + } + if (message.enum_type != null && message.hasOwnProperty("enum_type")) { + if (!Array.isArray(message.enum_type)) + return "enum_type: array expected"; + for (var i = 0; i < message.enum_type.length; ++i) { + var error = $root.google.protobuf.EnumDescriptorProto.verify(message.enum_type[i]); + if (error) + return "enum_type." + error; + } + } + if (message.service != null && message.hasOwnProperty("service")) { + if (!Array.isArray(message.service)) + return "service: array expected"; + for (var i = 0; i < message.service.length; ++i) { + var error = $root.google.protobuf.ServiceDescriptorProto.verify(message.service[i]); + if (error) + return "service." + error; + } + } + if (message.extension != null && message.hasOwnProperty("extension")) { + if (!Array.isArray(message.extension)) + return "extension: array expected"; + for (var i = 0; i < message.extension.length; ++i) { + var error = $root.google.protobuf.FieldDescriptorProto.verify(message.extension[i]); + if (error) + return "extension." + error; } } if (message.options != null && message.hasOwnProperty("options")) { - var error = $root.google.protobuf.ServiceOptions.verify(message.options); + var error = $root.google.protobuf.FileOptions.verify(message.options); if (error) return "options." + error; } + if (message.source_code_info != null && message.hasOwnProperty("source_code_info")) { + var error = $root.google.protobuf.SourceCodeInfo.verify(message.source_code_info); + if (error) + return "source_code_info." + error; + } + if (message.syntax != null && message.hasOwnProperty("syntax")) + if (!$util.isString(message.syntax)) + return "syntax: string expected"; return null; }; /** - * Creates a ServiceDescriptorProto message from a plain object. Also converts values to their respective internal types. + * Creates a FileDescriptorProto message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.protobuf.ServiceDescriptorProto + * @memberof google.protobuf.FileDescriptorProto * @static * @param {Object.} object Plain object - * @returns {google.protobuf.ServiceDescriptorProto} ServiceDescriptorProto + * @returns {google.protobuf.FileDescriptorProto} FileDescriptorProto */ - ServiceDescriptorProto.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.ServiceDescriptorProto) + FileDescriptorProto.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.FileDescriptorProto) return object; - var message = new $root.google.protobuf.ServiceDescriptorProto(); + var message = new $root.google.protobuf.FileDescriptorProto(); if (object.name != null) message.name = String(object.name); - if (object.method) { - if (!Array.isArray(object.method)) - throw TypeError(".google.protobuf.ServiceDescriptorProto.method: array expected"); - message.method = []; - for (var i = 0; i < object.method.length; ++i) { - if (typeof object.method[i] !== "object") - throw TypeError(".google.protobuf.ServiceDescriptorProto.method: object expected"); - message.method[i] = $root.google.protobuf.MethodDescriptorProto.fromObject(object.method[i]); + if (object["package"] != null) + message["package"] = String(object["package"]); + if (object.dependency) { + if (!Array.isArray(object.dependency)) + throw TypeError(".google.protobuf.FileDescriptorProto.dependency: array expected"); + message.dependency = []; + for (var i = 0; i < object.dependency.length; ++i) + message.dependency[i] = String(object.dependency[i]); + } + if (object.public_dependency) { + if (!Array.isArray(object.public_dependency)) + throw TypeError(".google.protobuf.FileDescriptorProto.public_dependency: array expected"); + message.public_dependency = []; + for (var i = 0; i < object.public_dependency.length; ++i) + message.public_dependency[i] = object.public_dependency[i] | 0; + } + if (object.weak_dependency) { + if (!Array.isArray(object.weak_dependency)) + throw TypeError(".google.protobuf.FileDescriptorProto.weak_dependency: array expected"); + message.weak_dependency = []; + for (var i = 0; i < object.weak_dependency.length; ++i) + message.weak_dependency[i] = object.weak_dependency[i] | 0; + } + if (object.message_type) { + if (!Array.isArray(object.message_type)) + throw TypeError(".google.protobuf.FileDescriptorProto.message_type: array expected"); + message.message_type = []; + for (var i = 0; i < object.message_type.length; ++i) { + if (typeof object.message_type[i] !== "object") + throw TypeError(".google.protobuf.FileDescriptorProto.message_type: object expected"); + message.message_type[i] = $root.google.protobuf.DescriptorProto.fromObject(object.message_type[i]); + } + } + if (object.enum_type) { + if (!Array.isArray(object.enum_type)) + throw TypeError(".google.protobuf.FileDescriptorProto.enum_type: array expected"); + message.enum_type = []; + for (var i = 0; i < object.enum_type.length; ++i) { + if (typeof object.enum_type[i] !== "object") + throw TypeError(".google.protobuf.FileDescriptorProto.enum_type: object expected"); + message.enum_type[i] = $root.google.protobuf.EnumDescriptorProto.fromObject(object.enum_type[i]); + } + } + if (object.service) { + if (!Array.isArray(object.service)) + throw TypeError(".google.protobuf.FileDescriptorProto.service: array expected"); + message.service = []; + for (var i = 0; i < object.service.length; ++i) { + if (typeof object.service[i] !== "object") + throw TypeError(".google.protobuf.FileDescriptorProto.service: object expected"); + message.service[i] = $root.google.protobuf.ServiceDescriptorProto.fromObject(object.service[i]); + } + } + if (object.extension) { + if (!Array.isArray(object.extension)) + throw TypeError(".google.protobuf.FileDescriptorProto.extension: array expected"); + message.extension = []; + for (var i = 0; i < object.extension.length; ++i) { + if (typeof object.extension[i] !== "object") + throw TypeError(".google.protobuf.FileDescriptorProto.extension: object expected"); + message.extension[i] = $root.google.protobuf.FieldDescriptorProto.fromObject(object.extension[i]); } } if (object.options != null) { if (typeof object.options !== "object") - throw TypeError(".google.protobuf.ServiceDescriptorProto.options: object expected"); - message.options = $root.google.protobuf.ServiceOptions.fromObject(object.options); + throw TypeError(".google.protobuf.FileDescriptorProto.options: object expected"); + message.options = $root.google.protobuf.FileOptions.fromObject(object.options); + } + if (object.source_code_info != null) { + if (typeof object.source_code_info !== "object") + throw TypeError(".google.protobuf.FileDescriptorProto.source_code_info: object expected"); + message.source_code_info = $root.google.protobuf.SourceCodeInfo.fromObject(object.source_code_info); } + if (object.syntax != null) + message.syntax = String(object.syntax); return message; }; /** - * Creates a plain object from a ServiceDescriptorProto message. Also converts values to other types if specified. + * Creates a plain object from a FileDescriptorProto message. Also converts values to other types if specified. * @function toObject - * @memberof google.protobuf.ServiceDescriptorProto + * @memberof google.protobuf.FileDescriptorProto * @static - * @param {google.protobuf.ServiceDescriptorProto} message ServiceDescriptorProto + * @param {google.protobuf.FileDescriptorProto} message FileDescriptorProto * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ServiceDescriptorProto.toObject = function toObject(message, options) { + FileDescriptorProto.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.method = []; + if (options.arrays || options.defaults) { + object.dependency = []; + object.message_type = []; + object.enum_type = []; + object.service = []; + object.extension = []; + object.public_dependency = []; + object.weak_dependency = []; + } if (options.defaults) { object.name = ""; + object["package"] = ""; object.options = null; + object.source_code_info = null; + object.syntax = ""; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; - if (message.method && message.method.length) { - object.method = []; - for (var j = 0; j < message.method.length; ++j) - object.method[j] = $root.google.protobuf.MethodDescriptorProto.toObject(message.method[j], options); + if (message["package"] != null && message.hasOwnProperty("package")) + object["package"] = message["package"]; + if (message.dependency && message.dependency.length) { + object.dependency = []; + for (var j = 0; j < message.dependency.length; ++j) + object.dependency[j] = message.dependency[j]; + } + if (message.message_type && message.message_type.length) { + object.message_type = []; + for (var j = 0; j < message.message_type.length; ++j) + object.message_type[j] = $root.google.protobuf.DescriptorProto.toObject(message.message_type[j], options); + } + if (message.enum_type && message.enum_type.length) { + object.enum_type = []; + for (var j = 0; j < message.enum_type.length; ++j) + object.enum_type[j] = $root.google.protobuf.EnumDescriptorProto.toObject(message.enum_type[j], options); + } + if (message.service && message.service.length) { + object.service = []; + for (var j = 0; j < message.service.length; ++j) + object.service[j] = $root.google.protobuf.ServiceDescriptorProto.toObject(message.service[j], options); + } + if (message.extension && message.extension.length) { + object.extension = []; + for (var j = 0; j < message.extension.length; ++j) + object.extension[j] = $root.google.protobuf.FieldDescriptorProto.toObject(message.extension[j], options); } if (message.options != null && message.hasOwnProperty("options")) - object.options = $root.google.protobuf.ServiceOptions.toObject(message.options, options); + object.options = $root.google.protobuf.FileOptions.toObject(message.options, options); + if (message.source_code_info != null && message.hasOwnProperty("source_code_info")) + object.source_code_info = $root.google.protobuf.SourceCodeInfo.toObject(message.source_code_info, options); + if (message.public_dependency && message.public_dependency.length) { + object.public_dependency = []; + for (var j = 0; j < message.public_dependency.length; ++j) + object.public_dependency[j] = message.public_dependency[j]; + } + if (message.weak_dependency && message.weak_dependency.length) { + object.weak_dependency = []; + for (var j = 0; j < message.weak_dependency.length; ++j) + object.weak_dependency[j] = message.weak_dependency[j]; + } + if (message.syntax != null && message.hasOwnProperty("syntax")) + object.syntax = message.syntax; return object; }; /** - * Converts this ServiceDescriptorProto to JSON. + * Converts this FileDescriptorProto to JSON. * @function toJSON - * @memberof google.protobuf.ServiceDescriptorProto + * @memberof google.protobuf.FileDescriptorProto * @instance * @returns {Object.} JSON object */ - ServiceDescriptorProto.prototype.toJSON = function toJSON() { + FileDescriptorProto.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ServiceDescriptorProto; + return FileDescriptorProto; })(); - protobuf.MethodDescriptorProto = (function() { + protobuf.DescriptorProto = (function() { /** - * Properties of a MethodDescriptorProto. + * Properties of a DescriptorProto. * @memberof google.protobuf - * @interface IMethodDescriptorProto - * @property {string|null} [name] MethodDescriptorProto name - * @property {string|null} [input_type] MethodDescriptorProto input_type - * @property {string|null} [output_type] MethodDescriptorProto output_type - * @property {google.protobuf.IMethodOptions|null} [options] MethodDescriptorProto options - * @property {boolean|null} [client_streaming] MethodDescriptorProto client_streaming - * @property {boolean|null} [server_streaming] MethodDescriptorProto server_streaming + * @interface IDescriptorProto + * @property {string|null} [name] DescriptorProto name + * @property {Array.|null} [field] DescriptorProto field + * @property {Array.|null} [extension] DescriptorProto extension + * @property {Array.|null} [nested_type] DescriptorProto nested_type + * @property {Array.|null} [enum_type] DescriptorProto enum_type + * @property {Array.|null} [extension_range] DescriptorProto extension_range + * @property {Array.|null} [oneof_decl] DescriptorProto oneof_decl + * @property {google.protobuf.IMessageOptions|null} [options] DescriptorProto options + * @property {Array.|null} [reserved_range] DescriptorProto reserved_range + * @property {Array.|null} [reserved_name] DescriptorProto reserved_name */ /** - * Constructs a new MethodDescriptorProto. + * Constructs a new DescriptorProto. * @memberof google.protobuf - * @classdesc Represents a MethodDescriptorProto. - * @implements IMethodDescriptorProto + * @classdesc Represents a DescriptorProto. + * @implements IDescriptorProto * @constructor - * @param {google.protobuf.IMethodDescriptorProto=} [properties] Properties to set + * @param {google.protobuf.IDescriptorProto=} [properties] Properties to set */ - function MethodDescriptorProto(properties) { + function DescriptorProto(properties) { + this.field = []; + this.extension = []; + this.nested_type = []; + this.enum_type = []; + this.extension_range = []; + this.oneof_decl = []; + this.reserved_range = []; + this.reserved_name = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -10744,108 +16679,156 @@ } /** - * MethodDescriptorProto name. + * DescriptorProto name. * @member {string} name - * @memberof google.protobuf.MethodDescriptorProto + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.name = ""; + + /** + * DescriptorProto field. + * @member {Array.} field + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.field = $util.emptyArray; + + /** + * DescriptorProto extension. + * @member {Array.} extension + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.extension = $util.emptyArray; + + /** + * DescriptorProto nested_type. + * @member {Array.} nested_type + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.nested_type = $util.emptyArray; + + /** + * DescriptorProto enum_type. + * @member {Array.} enum_type + * @memberof google.protobuf.DescriptorProto * @instance */ - MethodDescriptorProto.prototype.name = ""; + DescriptorProto.prototype.enum_type = $util.emptyArray; /** - * MethodDescriptorProto input_type. - * @member {string} input_type - * @memberof google.protobuf.MethodDescriptorProto + * DescriptorProto extension_range. + * @member {Array.} extension_range + * @memberof google.protobuf.DescriptorProto * @instance */ - MethodDescriptorProto.prototype.input_type = ""; + DescriptorProto.prototype.extension_range = $util.emptyArray; /** - * MethodDescriptorProto output_type. - * @member {string} output_type - * @memberof google.protobuf.MethodDescriptorProto + * DescriptorProto oneof_decl. + * @member {Array.} oneof_decl + * @memberof google.protobuf.DescriptorProto * @instance */ - MethodDescriptorProto.prototype.output_type = ""; + DescriptorProto.prototype.oneof_decl = $util.emptyArray; /** - * MethodDescriptorProto options. - * @member {google.protobuf.IMethodOptions|null|undefined} options - * @memberof google.protobuf.MethodDescriptorProto + * DescriptorProto options. + * @member {google.protobuf.IMessageOptions|null|undefined} options + * @memberof google.protobuf.DescriptorProto * @instance */ - MethodDescriptorProto.prototype.options = null; + DescriptorProto.prototype.options = null; /** - * MethodDescriptorProto client_streaming. - * @member {boolean} client_streaming - * @memberof google.protobuf.MethodDescriptorProto + * DescriptorProto reserved_range. + * @member {Array.} reserved_range + * @memberof google.protobuf.DescriptorProto * @instance */ - MethodDescriptorProto.prototype.client_streaming = false; + DescriptorProto.prototype.reserved_range = $util.emptyArray; /** - * MethodDescriptorProto server_streaming. - * @member {boolean} server_streaming - * @memberof google.protobuf.MethodDescriptorProto + * DescriptorProto reserved_name. + * @member {Array.} reserved_name + * @memberof google.protobuf.DescriptorProto * @instance */ - MethodDescriptorProto.prototype.server_streaming = false; + DescriptorProto.prototype.reserved_name = $util.emptyArray; /** - * Encodes the specified MethodDescriptorProto message. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages. + * Encodes the specified DescriptorProto message. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages. * @function encode - * @memberof google.protobuf.MethodDescriptorProto + * @memberof google.protobuf.DescriptorProto * @static - * @param {google.protobuf.IMethodDescriptorProto} message MethodDescriptorProto message or plain object to encode + * @param {google.protobuf.IDescriptorProto} message DescriptorProto message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MethodDescriptorProto.encode = function encode(message, writer) { + DescriptorProto.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.input_type != null && Object.hasOwnProperty.call(message, "input_type")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.input_type); - if (message.output_type != null && Object.hasOwnProperty.call(message, "output_type")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.output_type); + if (message.field != null && message.field.length) + for (var i = 0; i < message.field.length; ++i) + $root.google.protobuf.FieldDescriptorProto.encode(message.field[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.nested_type != null && message.nested_type.length) + for (var i = 0; i < message.nested_type.length; ++i) + $root.google.protobuf.DescriptorProto.encode(message.nested_type[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.enum_type != null && message.enum_type.length) + for (var i = 0; i < message.enum_type.length; ++i) + $root.google.protobuf.EnumDescriptorProto.encode(message.enum_type[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.extension_range != null && message.extension_range.length) + for (var i = 0; i < message.extension_range.length; ++i) + $root.google.protobuf.DescriptorProto.ExtensionRange.encode(message.extension_range[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.extension != null && message.extension.length) + for (var i = 0; i < message.extension.length; ++i) + $root.google.protobuf.FieldDescriptorProto.encode(message.extension[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); if (message.options != null && Object.hasOwnProperty.call(message, "options")) - $root.google.protobuf.MethodOptions.encode(message.options, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.client_streaming != null && Object.hasOwnProperty.call(message, "client_streaming")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.client_streaming); - if (message.server_streaming != null && Object.hasOwnProperty.call(message, "server_streaming")) - writer.uint32(/* id 6, wireType 0 =*/48).bool(message.server_streaming); + $root.google.protobuf.MessageOptions.encode(message.options, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.oneof_decl != null && message.oneof_decl.length) + for (var i = 0; i < message.oneof_decl.length; ++i) + $root.google.protobuf.OneofDescriptorProto.encode(message.oneof_decl[i], writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.reserved_range != null && message.reserved_range.length) + for (var i = 0; i < message.reserved_range.length; ++i) + $root.google.protobuf.DescriptorProto.ReservedRange.encode(message.reserved_range[i], writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.reserved_name != null && message.reserved_name.length) + for (var i = 0; i < message.reserved_name.length; ++i) + writer.uint32(/* id 10, wireType 2 =*/82).string(message.reserved_name[i]); return writer; }; /** - * Encodes the specified MethodDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages. + * Encodes the specified DescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages. * @function encodeDelimited - * @memberof google.protobuf.MethodDescriptorProto + * @memberof google.protobuf.DescriptorProto * @static - * @param {google.protobuf.IMethodDescriptorProto} message MethodDescriptorProto message or plain object to encode + * @param {google.protobuf.IDescriptorProto} message DescriptorProto message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MethodDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { + DescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MethodDescriptorProto message from the specified reader or buffer. + * Decodes a DescriptorProto message from the specified reader or buffer. * @function decode - * @memberof google.protobuf.MethodDescriptorProto + * @memberof google.protobuf.DescriptorProto * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.MethodDescriptorProto} MethodDescriptorProto + * @returns {google.protobuf.DescriptorProto} DescriptorProto * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MethodDescriptorProto.decode = function decode(reader, length) { + DescriptorProto.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.MethodDescriptorProto(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.DescriptorProto(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -10853,19 +16836,47 @@ message.name = reader.string(); break; case 2: - message.input_type = reader.string(); + if (!(message.field && message.field.length)) + message.field = []; + message.field.push($root.google.protobuf.FieldDescriptorProto.decode(reader, reader.uint32())); + break; + case 6: + if (!(message.extension && message.extension.length)) + message.extension = []; + message.extension.push($root.google.protobuf.FieldDescriptorProto.decode(reader, reader.uint32())); break; case 3: - message.output_type = reader.string(); + if (!(message.nested_type && message.nested_type.length)) + message.nested_type = []; + message.nested_type.push($root.google.protobuf.DescriptorProto.decode(reader, reader.uint32())); break; case 4: - message.options = $root.google.protobuf.MethodOptions.decode(reader, reader.uint32()); + if (!(message.enum_type && message.enum_type.length)) + message.enum_type = []; + message.enum_type.push($root.google.protobuf.EnumDescriptorProto.decode(reader, reader.uint32())); break; case 5: - message.client_streaming = reader.bool(); + if (!(message.extension_range && message.extension_range.length)) + message.extension_range = []; + message.extension_range.push($root.google.protobuf.DescriptorProto.ExtensionRange.decode(reader, reader.uint32())); break; - case 6: - message.server_streaming = reader.bool(); + case 8: + if (!(message.oneof_decl && message.oneof_decl.length)) + message.oneof_decl = []; + message.oneof_decl.push($root.google.protobuf.OneofDescriptorProto.decode(reader, reader.uint32())); + break; + case 7: + message.options = $root.google.protobuf.MessageOptions.decode(reader, reader.uint32()); + break; + case 9: + if (!(message.reserved_range && message.reserved_range.length)) + message.reserved_range = []; + message.reserved_range.push($root.google.protobuf.DescriptorProto.ReservedRange.decode(reader, reader.uint32())); + break; + case 10: + if (!(message.reserved_name && message.reserved_name.length)) + message.reserved_name = []; + message.reserved_name.push(reader.string()); break; default: reader.skipType(tag & 7); @@ -10876,865 +16887,904 @@ }; /** - * Decodes a MethodDescriptorProto message from the specified reader or buffer, length delimited. + * Decodes a DescriptorProto message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.protobuf.MethodDescriptorProto + * @memberof google.protobuf.DescriptorProto * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.MethodDescriptorProto} MethodDescriptorProto + * @returns {google.protobuf.DescriptorProto} DescriptorProto * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MethodDescriptorProto.decodeDelimited = function decodeDelimited(reader) { + DescriptorProto.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MethodDescriptorProto message. + * Verifies a DescriptorProto message. * @function verify - * @memberof google.protobuf.MethodDescriptorProto + * @memberof google.protobuf.DescriptorProto * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MethodDescriptorProto.verify = function verify(message) { + DescriptorProto.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; - if (message.input_type != null && message.hasOwnProperty("input_type")) - if (!$util.isString(message.input_type)) - return "input_type: string expected"; - if (message.output_type != null && message.hasOwnProperty("output_type")) - if (!$util.isString(message.output_type)) - return "output_type: string expected"; + if (message.field != null && message.hasOwnProperty("field")) { + if (!Array.isArray(message.field)) + return "field: array expected"; + for (var i = 0; i < message.field.length; ++i) { + var error = $root.google.protobuf.FieldDescriptorProto.verify(message.field[i]); + if (error) + return "field." + error; + } + } + if (message.extension != null && message.hasOwnProperty("extension")) { + if (!Array.isArray(message.extension)) + return "extension: array expected"; + for (var i = 0; i < message.extension.length; ++i) { + var error = $root.google.protobuf.FieldDescriptorProto.verify(message.extension[i]); + if (error) + return "extension." + error; + } + } + if (message.nested_type != null && message.hasOwnProperty("nested_type")) { + if (!Array.isArray(message.nested_type)) + return "nested_type: array expected"; + for (var i = 0; i < message.nested_type.length; ++i) { + var error = $root.google.protobuf.DescriptorProto.verify(message.nested_type[i]); + if (error) + return "nested_type." + error; + } + } + if (message.enum_type != null && message.hasOwnProperty("enum_type")) { + if (!Array.isArray(message.enum_type)) + return "enum_type: array expected"; + for (var i = 0; i < message.enum_type.length; ++i) { + var error = $root.google.protobuf.EnumDescriptorProto.verify(message.enum_type[i]); + if (error) + return "enum_type." + error; + } + } + if (message.extension_range != null && message.hasOwnProperty("extension_range")) { + if (!Array.isArray(message.extension_range)) + return "extension_range: array expected"; + for (var i = 0; i < message.extension_range.length; ++i) { + var error = $root.google.protobuf.DescriptorProto.ExtensionRange.verify(message.extension_range[i]); + if (error) + return "extension_range." + error; + } + } + if (message.oneof_decl != null && message.hasOwnProperty("oneof_decl")) { + if (!Array.isArray(message.oneof_decl)) + return "oneof_decl: array expected"; + for (var i = 0; i < message.oneof_decl.length; ++i) { + var error = $root.google.protobuf.OneofDescriptorProto.verify(message.oneof_decl[i]); + if (error) + return "oneof_decl." + error; + } + } if (message.options != null && message.hasOwnProperty("options")) { - var error = $root.google.protobuf.MethodOptions.verify(message.options); + var error = $root.google.protobuf.MessageOptions.verify(message.options); if (error) return "options." + error; } - if (message.client_streaming != null && message.hasOwnProperty("client_streaming")) - if (typeof message.client_streaming !== "boolean") - return "client_streaming: boolean expected"; - if (message.server_streaming != null && message.hasOwnProperty("server_streaming")) - if (typeof message.server_streaming !== "boolean") - return "server_streaming: boolean expected"; + if (message.reserved_range != null && message.hasOwnProperty("reserved_range")) { + if (!Array.isArray(message.reserved_range)) + return "reserved_range: array expected"; + for (var i = 0; i < message.reserved_range.length; ++i) { + var error = $root.google.protobuf.DescriptorProto.ReservedRange.verify(message.reserved_range[i]); + if (error) + return "reserved_range." + error; + } + } + if (message.reserved_name != null && message.hasOwnProperty("reserved_name")) { + if (!Array.isArray(message.reserved_name)) + return "reserved_name: array expected"; + for (var i = 0; i < message.reserved_name.length; ++i) + if (!$util.isString(message.reserved_name[i])) + return "reserved_name: string[] expected"; + } return null; }; /** - * Creates a MethodDescriptorProto message from a plain object. Also converts values to their respective internal types. + * Creates a DescriptorProto message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.protobuf.MethodDescriptorProto + * @memberof google.protobuf.DescriptorProto * @static * @param {Object.} object Plain object - * @returns {google.protobuf.MethodDescriptorProto} MethodDescriptorProto + * @returns {google.protobuf.DescriptorProto} DescriptorProto */ - MethodDescriptorProto.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.MethodDescriptorProto) + DescriptorProto.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.DescriptorProto) return object; - var message = new $root.google.protobuf.MethodDescriptorProto(); + var message = new $root.google.protobuf.DescriptorProto(); if (object.name != null) message.name = String(object.name); - if (object.input_type != null) - message.input_type = String(object.input_type); - if (object.output_type != null) - message.output_type = String(object.output_type); + if (object.field) { + if (!Array.isArray(object.field)) + throw TypeError(".google.protobuf.DescriptorProto.field: array expected"); + message.field = []; + for (var i = 0; i < object.field.length; ++i) { + if (typeof object.field[i] !== "object") + throw TypeError(".google.protobuf.DescriptorProto.field: object expected"); + message.field[i] = $root.google.protobuf.FieldDescriptorProto.fromObject(object.field[i]); + } + } + if (object.extension) { + if (!Array.isArray(object.extension)) + throw TypeError(".google.protobuf.DescriptorProto.extension: array expected"); + message.extension = []; + for (var i = 0; i < object.extension.length; ++i) { + if (typeof object.extension[i] !== "object") + throw TypeError(".google.protobuf.DescriptorProto.extension: object expected"); + message.extension[i] = $root.google.protobuf.FieldDescriptorProto.fromObject(object.extension[i]); + } + } + if (object.nested_type) { + if (!Array.isArray(object.nested_type)) + throw TypeError(".google.protobuf.DescriptorProto.nested_type: array expected"); + message.nested_type = []; + for (var i = 0; i < object.nested_type.length; ++i) { + if (typeof object.nested_type[i] !== "object") + throw TypeError(".google.protobuf.DescriptorProto.nested_type: object expected"); + message.nested_type[i] = $root.google.protobuf.DescriptorProto.fromObject(object.nested_type[i]); + } + } + if (object.enum_type) { + if (!Array.isArray(object.enum_type)) + throw TypeError(".google.protobuf.DescriptorProto.enum_type: array expected"); + message.enum_type = []; + for (var i = 0; i < object.enum_type.length; ++i) { + if (typeof object.enum_type[i] !== "object") + throw TypeError(".google.protobuf.DescriptorProto.enum_type: object expected"); + message.enum_type[i] = $root.google.protobuf.EnumDescriptorProto.fromObject(object.enum_type[i]); + } + } + if (object.extension_range) { + if (!Array.isArray(object.extension_range)) + throw TypeError(".google.protobuf.DescriptorProto.extension_range: array expected"); + message.extension_range = []; + for (var i = 0; i < object.extension_range.length; ++i) { + if (typeof object.extension_range[i] !== "object") + throw TypeError(".google.protobuf.DescriptorProto.extension_range: object expected"); + message.extension_range[i] = $root.google.protobuf.DescriptorProto.ExtensionRange.fromObject(object.extension_range[i]); + } + } + if (object.oneof_decl) { + if (!Array.isArray(object.oneof_decl)) + throw TypeError(".google.protobuf.DescriptorProto.oneof_decl: array expected"); + message.oneof_decl = []; + for (var i = 0; i < object.oneof_decl.length; ++i) { + if (typeof object.oneof_decl[i] !== "object") + throw TypeError(".google.protobuf.DescriptorProto.oneof_decl: object expected"); + message.oneof_decl[i] = $root.google.protobuf.OneofDescriptorProto.fromObject(object.oneof_decl[i]); + } + } if (object.options != null) { if (typeof object.options !== "object") - throw TypeError(".google.protobuf.MethodDescriptorProto.options: object expected"); - message.options = $root.google.protobuf.MethodOptions.fromObject(object.options); + throw TypeError(".google.protobuf.DescriptorProto.options: object expected"); + message.options = $root.google.protobuf.MessageOptions.fromObject(object.options); } - if (object.client_streaming != null) - message.client_streaming = Boolean(object.client_streaming); - if (object.server_streaming != null) - message.server_streaming = Boolean(object.server_streaming); - return message; - }; - - /** - * Creates a plain object from a MethodDescriptorProto message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.MethodDescriptorProto - * @static - * @param {google.protobuf.MethodDescriptorProto} message MethodDescriptorProto - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - MethodDescriptorProto.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.name = ""; - object.input_type = ""; - object.output_type = ""; - object.options = null; - object.client_streaming = false; - object.server_streaming = false; + if (object.reserved_range) { + if (!Array.isArray(object.reserved_range)) + throw TypeError(".google.protobuf.DescriptorProto.reserved_range: array expected"); + message.reserved_range = []; + for (var i = 0; i < object.reserved_range.length; ++i) { + if (typeof object.reserved_range[i] !== "object") + throw TypeError(".google.protobuf.DescriptorProto.reserved_range: object expected"); + message.reserved_range[i] = $root.google.protobuf.DescriptorProto.ReservedRange.fromObject(object.reserved_range[i]); + } } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.input_type != null && message.hasOwnProperty("input_type")) - object.input_type = message.input_type; - if (message.output_type != null && message.hasOwnProperty("output_type")) - object.output_type = message.output_type; - if (message.options != null && message.hasOwnProperty("options")) - object.options = $root.google.protobuf.MethodOptions.toObject(message.options, options); - if (message.client_streaming != null && message.hasOwnProperty("client_streaming")) - object.client_streaming = message.client_streaming; - if (message.server_streaming != null && message.hasOwnProperty("server_streaming")) - object.server_streaming = message.server_streaming; - return object; - }; - - /** - * Converts this MethodDescriptorProto to JSON. - * @function toJSON - * @memberof google.protobuf.MethodDescriptorProto - * @instance - * @returns {Object.} JSON object - */ - MethodDescriptorProto.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return MethodDescriptorProto; - })(); - - protobuf.FileOptions = (function() { - - /** - * Properties of a FileOptions. - * @memberof google.protobuf - * @interface IFileOptions - * @property {string|null} [java_package] FileOptions java_package - * @property {string|null} [java_outer_classname] FileOptions java_outer_classname - * @property {boolean|null} [java_multiple_files] FileOptions java_multiple_files - * @property {boolean|null} [java_generate_equals_and_hash] FileOptions java_generate_equals_and_hash - * @property {boolean|null} [java_string_check_utf8] FileOptions java_string_check_utf8 - * @property {google.protobuf.FileOptions.OptimizeMode|null} [optimize_for] FileOptions optimize_for - * @property {string|null} [go_package] FileOptions go_package - * @property {boolean|null} [cc_generic_services] FileOptions cc_generic_services - * @property {boolean|null} [java_generic_services] FileOptions java_generic_services - * @property {boolean|null} [py_generic_services] FileOptions py_generic_services - * @property {boolean|null} [deprecated] FileOptions deprecated - * @property {boolean|null} [cc_enable_arenas] FileOptions cc_enable_arenas - * @property {string|null} [objc_class_prefix] FileOptions objc_class_prefix - * @property {string|null} [csharp_namespace] FileOptions csharp_namespace - * @property {Array.|null} [uninterpreted_option] FileOptions uninterpreted_option - * @property {boolean|null} [".gogoproto.goproto_getters_all"] FileOptions .gogoproto.goproto_getters_all - * @property {boolean|null} [".gogoproto.goproto_enum_prefix_all"] FileOptions .gogoproto.goproto_enum_prefix_all - * @property {boolean|null} [".gogoproto.goproto_stringer_all"] FileOptions .gogoproto.goproto_stringer_all - * @property {boolean|null} [".gogoproto.verbose_equal_all"] FileOptions .gogoproto.verbose_equal_all - * @property {boolean|null} [".gogoproto.face_all"] FileOptions .gogoproto.face_all - * @property {boolean|null} [".gogoproto.gostring_all"] FileOptions .gogoproto.gostring_all - * @property {boolean|null} [".gogoproto.populate_all"] FileOptions .gogoproto.populate_all - * @property {boolean|null} [".gogoproto.stringer_all"] FileOptions .gogoproto.stringer_all - * @property {boolean|null} [".gogoproto.onlyone_all"] FileOptions .gogoproto.onlyone_all - * @property {boolean|null} [".gogoproto.equal_all"] FileOptions .gogoproto.equal_all - * @property {boolean|null} [".gogoproto.description_all"] FileOptions .gogoproto.description_all - * @property {boolean|null} [".gogoproto.testgen_all"] FileOptions .gogoproto.testgen_all - * @property {boolean|null} [".gogoproto.benchgen_all"] FileOptions .gogoproto.benchgen_all - * @property {boolean|null} [".gogoproto.marshaler_all"] FileOptions .gogoproto.marshaler_all - * @property {boolean|null} [".gogoproto.unmarshaler_all"] FileOptions .gogoproto.unmarshaler_all - * @property {boolean|null} [".gogoproto.stable_marshaler_all"] FileOptions .gogoproto.stable_marshaler_all - * @property {boolean|null} [".gogoproto.sizer_all"] FileOptions .gogoproto.sizer_all - * @property {boolean|null} [".gogoproto.goproto_enum_stringer_all"] FileOptions .gogoproto.goproto_enum_stringer_all - * @property {boolean|null} [".gogoproto.enum_stringer_all"] FileOptions .gogoproto.enum_stringer_all - * @property {boolean|null} [".gogoproto.unsafe_marshaler_all"] FileOptions .gogoproto.unsafe_marshaler_all - * @property {boolean|null} [".gogoproto.unsafe_unmarshaler_all"] FileOptions .gogoproto.unsafe_unmarshaler_all - * @property {boolean|null} [".gogoproto.goproto_extensions_map_all"] FileOptions .gogoproto.goproto_extensions_map_all - * @property {boolean|null} [".gogoproto.goproto_unrecognized_all"] FileOptions .gogoproto.goproto_unrecognized_all - * @property {boolean|null} [".gogoproto.gogoproto_import"] FileOptions .gogoproto.gogoproto_import - * @property {boolean|null} [".gogoproto.protosizer_all"] FileOptions .gogoproto.protosizer_all - * @property {boolean|null} [".gogoproto.compare_all"] FileOptions .gogoproto.compare_all - * @property {boolean|null} [".gogoproto.typedecl_all"] FileOptions .gogoproto.typedecl_all - * @property {boolean|null} [".gogoproto.enumdecl_all"] FileOptions .gogoproto.enumdecl_all - * @property {boolean|null} [".gogoproto.goproto_registration"] FileOptions .gogoproto.goproto_registration - * @property {boolean|null} [".gogoproto.messagename_all"] FileOptions .gogoproto.messagename_all - * @property {boolean|null} [".gogoproto.goproto_sizecache_all"] FileOptions .gogoproto.goproto_sizecache_all - * @property {boolean|null} [".gogoproto.goproto_unkeyed_all"] FileOptions .gogoproto.goproto_unkeyed_all - */ - - /** - * Constructs a new FileOptions. - * @memberof google.protobuf - * @classdesc Represents a FileOptions. - * @implements IFileOptions - * @constructor - * @param {google.protobuf.IFileOptions=} [properties] Properties to set - */ - function FileOptions(properties) { - this.uninterpreted_option = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * FileOptions java_package. - * @member {string} java_package - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.java_package = ""; - - /** - * FileOptions java_outer_classname. - * @member {string} java_outer_classname - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.java_outer_classname = ""; - - /** - * FileOptions java_multiple_files. - * @member {boolean} java_multiple_files - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.java_multiple_files = false; - - /** - * FileOptions java_generate_equals_and_hash. - * @member {boolean} java_generate_equals_and_hash - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.java_generate_equals_and_hash = false; - - /** - * FileOptions java_string_check_utf8. - * @member {boolean} java_string_check_utf8 - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.java_string_check_utf8 = false; - - /** - * FileOptions optimize_for. - * @member {google.protobuf.FileOptions.OptimizeMode} optimize_for - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.optimize_for = 1; + if (object.reserved_name) { + if (!Array.isArray(object.reserved_name)) + throw TypeError(".google.protobuf.DescriptorProto.reserved_name: array expected"); + message.reserved_name = []; + for (var i = 0; i < object.reserved_name.length; ++i) + message.reserved_name[i] = String(object.reserved_name[i]); + } + return message; + }; /** - * FileOptions go_package. - * @member {string} go_package - * @memberof google.protobuf.FileOptions - * @instance + * Creates a plain object from a DescriptorProto message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.DescriptorProto + * @static + * @param {google.protobuf.DescriptorProto} message DescriptorProto + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - FileOptions.prototype.go_package = ""; + DescriptorProto.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.field = []; + object.nested_type = []; + object.enum_type = []; + object.extension_range = []; + object.extension = []; + object.oneof_decl = []; + object.reserved_range = []; + object.reserved_name = []; + } + if (options.defaults) { + object.name = ""; + object.options = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.field && message.field.length) { + object.field = []; + for (var j = 0; j < message.field.length; ++j) + object.field[j] = $root.google.protobuf.FieldDescriptorProto.toObject(message.field[j], options); + } + if (message.nested_type && message.nested_type.length) { + object.nested_type = []; + for (var j = 0; j < message.nested_type.length; ++j) + object.nested_type[j] = $root.google.protobuf.DescriptorProto.toObject(message.nested_type[j], options); + } + if (message.enum_type && message.enum_type.length) { + object.enum_type = []; + for (var j = 0; j < message.enum_type.length; ++j) + object.enum_type[j] = $root.google.protobuf.EnumDescriptorProto.toObject(message.enum_type[j], options); + } + if (message.extension_range && message.extension_range.length) { + object.extension_range = []; + for (var j = 0; j < message.extension_range.length; ++j) + object.extension_range[j] = $root.google.protobuf.DescriptorProto.ExtensionRange.toObject(message.extension_range[j], options); + } + if (message.extension && message.extension.length) { + object.extension = []; + for (var j = 0; j < message.extension.length; ++j) + object.extension[j] = $root.google.protobuf.FieldDescriptorProto.toObject(message.extension[j], options); + } + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.google.protobuf.MessageOptions.toObject(message.options, options); + if (message.oneof_decl && message.oneof_decl.length) { + object.oneof_decl = []; + for (var j = 0; j < message.oneof_decl.length; ++j) + object.oneof_decl[j] = $root.google.protobuf.OneofDescriptorProto.toObject(message.oneof_decl[j], options); + } + if (message.reserved_range && message.reserved_range.length) { + object.reserved_range = []; + for (var j = 0; j < message.reserved_range.length; ++j) + object.reserved_range[j] = $root.google.protobuf.DescriptorProto.ReservedRange.toObject(message.reserved_range[j], options); + } + if (message.reserved_name && message.reserved_name.length) { + object.reserved_name = []; + for (var j = 0; j < message.reserved_name.length; ++j) + object.reserved_name[j] = message.reserved_name[j]; + } + return object; + }; /** - * FileOptions cc_generic_services. - * @member {boolean} cc_generic_services - * @memberof google.protobuf.FileOptions + * Converts this DescriptorProto to JSON. + * @function toJSON + * @memberof google.protobuf.DescriptorProto * @instance + * @returns {Object.} JSON object */ - FileOptions.prototype.cc_generic_services = false; + DescriptorProto.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * FileOptions java_generic_services. - * @member {boolean} java_generic_services - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.java_generic_services = false; + DescriptorProto.ExtensionRange = (function() { - /** - * FileOptions py_generic_services. - * @member {boolean} py_generic_services - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.py_generic_services = false; + /** + * Properties of an ExtensionRange. + * @memberof google.protobuf.DescriptorProto + * @interface IExtensionRange + * @property {number|null} [start] ExtensionRange start + * @property {number|null} [end] ExtensionRange end + */ - /** - * FileOptions deprecated. - * @member {boolean} deprecated - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.deprecated = false; + /** + * Constructs a new ExtensionRange. + * @memberof google.protobuf.DescriptorProto + * @classdesc Represents an ExtensionRange. + * @implements IExtensionRange + * @constructor + * @param {google.protobuf.DescriptorProto.IExtensionRange=} [properties] Properties to set + */ + function ExtensionRange(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * FileOptions cc_enable_arenas. - * @member {boolean} cc_enable_arenas - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.cc_enable_arenas = false; + /** + * ExtensionRange start. + * @member {number} start + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @instance + */ + ExtensionRange.prototype.start = 0; - /** - * FileOptions objc_class_prefix. - * @member {string} objc_class_prefix - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.objc_class_prefix = ""; + /** + * ExtensionRange end. + * @member {number} end + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @instance + */ + ExtensionRange.prototype.end = 0; - /** - * FileOptions csharp_namespace. - * @member {string} csharp_namespace - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.csharp_namespace = ""; + /** + * Encodes the specified ExtensionRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages. + * @function encode + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {google.protobuf.DescriptorProto.IExtensionRange} message ExtensionRange message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExtensionRange.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.start != null && Object.hasOwnProperty.call(message, "start")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.start); + if (message.end != null && Object.hasOwnProperty.call(message, "end")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.end); + return writer; + }; - /** - * FileOptions uninterpreted_option. - * @member {Array.} uninterpreted_option - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.uninterpreted_option = $util.emptyArray; + /** + * Encodes the specified ExtensionRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {google.protobuf.DescriptorProto.IExtensionRange} message ExtensionRange message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExtensionRange.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * FileOptions .gogoproto.goproto_getters_all. - * @member {boolean} .gogoproto.goproto_getters_all - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype[".gogoproto.goproto_getters_all"] = false; + /** + * Decodes an ExtensionRange message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.DescriptorProto.ExtensionRange} ExtensionRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExtensionRange.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.DescriptorProto.ExtensionRange(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.start = reader.int32(); + break; + case 2: + message.end = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * FileOptions .gogoproto.goproto_enum_prefix_all. - * @member {boolean} .gogoproto.goproto_enum_prefix_all - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype[".gogoproto.goproto_enum_prefix_all"] = false; + /** + * Decodes an ExtensionRange message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.DescriptorProto.ExtensionRange} ExtensionRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExtensionRange.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * FileOptions .gogoproto.goproto_stringer_all. - * @member {boolean} .gogoproto.goproto_stringer_all - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype[".gogoproto.goproto_stringer_all"] = false; + /** + * Verifies an ExtensionRange message. + * @function verify + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExtensionRange.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.start != null && message.hasOwnProperty("start")) + if (!$util.isInteger(message.start)) + return "start: integer expected"; + if (message.end != null && message.hasOwnProperty("end")) + if (!$util.isInteger(message.end)) + return "end: integer expected"; + return null; + }; - /** - * FileOptions .gogoproto.verbose_equal_all. - * @member {boolean} .gogoproto.verbose_equal_all - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype[".gogoproto.verbose_equal_all"] = false; + /** + * Creates an ExtensionRange message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.DescriptorProto.ExtensionRange} ExtensionRange + */ + ExtensionRange.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.DescriptorProto.ExtensionRange) + return object; + var message = new $root.google.protobuf.DescriptorProto.ExtensionRange(); + if (object.start != null) + message.start = object.start | 0; + if (object.end != null) + message.end = object.end | 0; + return message; + }; - /** - * FileOptions .gogoproto.face_all. - * @member {boolean} .gogoproto.face_all - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype[".gogoproto.face_all"] = false; + /** + * Creates a plain object from an ExtensionRange message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {google.protobuf.DescriptorProto.ExtensionRange} message ExtensionRange + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ExtensionRange.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.start = 0; + object.end = 0; + } + if (message.start != null && message.hasOwnProperty("start")) + object.start = message.start; + if (message.end != null && message.hasOwnProperty("end")) + object.end = message.end; + return object; + }; - /** - * FileOptions .gogoproto.gostring_all. - * @member {boolean} .gogoproto.gostring_all - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype[".gogoproto.gostring_all"] = false; + /** + * Converts this ExtensionRange to JSON. + * @function toJSON + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @instance + * @returns {Object.} JSON object + */ + ExtensionRange.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * FileOptions .gogoproto.populate_all. - * @member {boolean} .gogoproto.populate_all - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype[".gogoproto.populate_all"] = false; + return ExtensionRange; + })(); - /** - * FileOptions .gogoproto.stringer_all. - * @member {boolean} .gogoproto.stringer_all - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype[".gogoproto.stringer_all"] = false; + DescriptorProto.ReservedRange = (function() { - /** - * FileOptions .gogoproto.onlyone_all. - * @member {boolean} .gogoproto.onlyone_all - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype[".gogoproto.onlyone_all"] = false; + /** + * Properties of a ReservedRange. + * @memberof google.protobuf.DescriptorProto + * @interface IReservedRange + * @property {number|null} [start] ReservedRange start + * @property {number|null} [end] ReservedRange end + */ - /** - * FileOptions .gogoproto.equal_all. - * @member {boolean} .gogoproto.equal_all - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype[".gogoproto.equal_all"] = false; + /** + * Constructs a new ReservedRange. + * @memberof google.protobuf.DescriptorProto + * @classdesc Represents a ReservedRange. + * @implements IReservedRange + * @constructor + * @param {google.protobuf.DescriptorProto.IReservedRange=} [properties] Properties to set + */ + function ReservedRange(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * FileOptions .gogoproto.description_all. - * @member {boolean} .gogoproto.description_all - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype[".gogoproto.description_all"] = false; + /** + * ReservedRange start. + * @member {number} start + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @instance + */ + ReservedRange.prototype.start = 0; - /** - * FileOptions .gogoproto.testgen_all. - * @member {boolean} .gogoproto.testgen_all - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype[".gogoproto.testgen_all"] = false; + /** + * ReservedRange end. + * @member {number} end + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @instance + */ + ReservedRange.prototype.end = 0; - /** - * FileOptions .gogoproto.benchgen_all. - * @member {boolean} .gogoproto.benchgen_all - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype[".gogoproto.benchgen_all"] = false; + /** + * Encodes the specified ReservedRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages. + * @function encode + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {google.protobuf.DescriptorProto.IReservedRange} message ReservedRange message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ReservedRange.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.start != null && Object.hasOwnProperty.call(message, "start")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.start); + if (message.end != null && Object.hasOwnProperty.call(message, "end")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.end); + return writer; + }; + + /** + * Encodes the specified ReservedRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {google.protobuf.DescriptorProto.IReservedRange} message ReservedRange message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ReservedRange.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ReservedRange message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.DescriptorProto.ReservedRange} ReservedRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ReservedRange.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.DescriptorProto.ReservedRange(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.start = reader.int32(); + break; + case 2: + message.end = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ReservedRange message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.DescriptorProto.ReservedRange} ReservedRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ReservedRange.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * FileOptions .gogoproto.marshaler_all. - * @member {boolean} .gogoproto.marshaler_all - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype[".gogoproto.marshaler_all"] = false; + /** + * Verifies a ReservedRange message. + * @function verify + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ReservedRange.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.start != null && message.hasOwnProperty("start")) + if (!$util.isInteger(message.start)) + return "start: integer expected"; + if (message.end != null && message.hasOwnProperty("end")) + if (!$util.isInteger(message.end)) + return "end: integer expected"; + return null; + }; - /** - * FileOptions .gogoproto.unmarshaler_all. - * @member {boolean} .gogoproto.unmarshaler_all - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype[".gogoproto.unmarshaler_all"] = false; + /** + * Creates a ReservedRange message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.DescriptorProto.ReservedRange} ReservedRange + */ + ReservedRange.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.DescriptorProto.ReservedRange) + return object; + var message = new $root.google.protobuf.DescriptorProto.ReservedRange(); + if (object.start != null) + message.start = object.start | 0; + if (object.end != null) + message.end = object.end | 0; + return message; + }; - /** - * FileOptions .gogoproto.stable_marshaler_all. - * @member {boolean} .gogoproto.stable_marshaler_all - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype[".gogoproto.stable_marshaler_all"] = false; + /** + * Creates a plain object from a ReservedRange message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {google.protobuf.DescriptorProto.ReservedRange} message ReservedRange + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ReservedRange.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.start = 0; + object.end = 0; + } + if (message.start != null && message.hasOwnProperty("start")) + object.start = message.start; + if (message.end != null && message.hasOwnProperty("end")) + object.end = message.end; + return object; + }; - /** - * FileOptions .gogoproto.sizer_all. - * @member {boolean} .gogoproto.sizer_all - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype[".gogoproto.sizer_all"] = false; + /** + * Converts this ReservedRange to JSON. + * @function toJSON + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @instance + * @returns {Object.} JSON object + */ + ReservedRange.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * FileOptions .gogoproto.goproto_enum_stringer_all. - * @member {boolean} .gogoproto.goproto_enum_stringer_all - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype[".gogoproto.goproto_enum_stringer_all"] = false; + return ReservedRange; + })(); - /** - * FileOptions .gogoproto.enum_stringer_all. - * @member {boolean} .gogoproto.enum_stringer_all - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype[".gogoproto.enum_stringer_all"] = false; + return DescriptorProto; + })(); - /** - * FileOptions .gogoproto.unsafe_marshaler_all. - * @member {boolean} .gogoproto.unsafe_marshaler_all - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype[".gogoproto.unsafe_marshaler_all"] = false; + protobuf.FieldDescriptorProto = (function() { /** - * FileOptions .gogoproto.unsafe_unmarshaler_all. - * @member {boolean} .gogoproto.unsafe_unmarshaler_all - * @memberof google.protobuf.FileOptions - * @instance + * Properties of a FieldDescriptorProto. + * @memberof google.protobuf + * @interface IFieldDescriptorProto + * @property {string|null} [name] FieldDescriptorProto name + * @property {number|null} [number] FieldDescriptorProto number + * @property {google.protobuf.FieldDescriptorProto.Label|null} [label] FieldDescriptorProto label + * @property {google.protobuf.FieldDescriptorProto.Type|null} [type] FieldDescriptorProto type + * @property {string|null} [type_name] FieldDescriptorProto type_name + * @property {string|null} [extendee] FieldDescriptorProto extendee + * @property {string|null} [default_value] FieldDescriptorProto default_value + * @property {number|null} [oneof_index] FieldDescriptorProto oneof_index + * @property {string|null} [json_name] FieldDescriptorProto json_name + * @property {google.protobuf.IFieldOptions|null} [options] FieldDescriptorProto options */ - FileOptions.prototype[".gogoproto.unsafe_unmarshaler_all"] = false; /** - * FileOptions .gogoproto.goproto_extensions_map_all. - * @member {boolean} .gogoproto.goproto_extensions_map_all - * @memberof google.protobuf.FileOptions - * @instance + * Constructs a new FieldDescriptorProto. + * @memberof google.protobuf + * @classdesc Represents a FieldDescriptorProto. + * @implements IFieldDescriptorProto + * @constructor + * @param {google.protobuf.IFieldDescriptorProto=} [properties] Properties to set */ - FileOptions.prototype[".gogoproto.goproto_extensions_map_all"] = false; + function FieldDescriptorProto(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * FileOptions .gogoproto.goproto_unrecognized_all. - * @member {boolean} .gogoproto.goproto_unrecognized_all - * @memberof google.protobuf.FileOptions + * FieldDescriptorProto name. + * @member {string} name + * @memberof google.protobuf.FieldDescriptorProto * @instance */ - FileOptions.prototype[".gogoproto.goproto_unrecognized_all"] = false; + FieldDescriptorProto.prototype.name = ""; /** - * FileOptions .gogoproto.gogoproto_import. - * @member {boolean} .gogoproto.gogoproto_import - * @memberof google.protobuf.FileOptions + * FieldDescriptorProto number. + * @member {number} number + * @memberof google.protobuf.FieldDescriptorProto * @instance */ - FileOptions.prototype[".gogoproto.gogoproto_import"] = false; + FieldDescriptorProto.prototype.number = 0; /** - * FileOptions .gogoproto.protosizer_all. - * @member {boolean} .gogoproto.protosizer_all - * @memberof google.protobuf.FileOptions + * FieldDescriptorProto label. + * @member {google.protobuf.FieldDescriptorProto.Label} label + * @memberof google.protobuf.FieldDescriptorProto * @instance */ - FileOptions.prototype[".gogoproto.protosizer_all"] = false; + FieldDescriptorProto.prototype.label = 1; /** - * FileOptions .gogoproto.compare_all. - * @member {boolean} .gogoproto.compare_all - * @memberof google.protobuf.FileOptions + * FieldDescriptorProto type. + * @member {google.protobuf.FieldDescriptorProto.Type} type + * @memberof google.protobuf.FieldDescriptorProto * @instance */ - FileOptions.prototype[".gogoproto.compare_all"] = false; + FieldDescriptorProto.prototype.type = 1; /** - * FileOptions .gogoproto.typedecl_all. - * @member {boolean} .gogoproto.typedecl_all - * @memberof google.protobuf.FileOptions + * FieldDescriptorProto type_name. + * @member {string} type_name + * @memberof google.protobuf.FieldDescriptorProto * @instance */ - FileOptions.prototype[".gogoproto.typedecl_all"] = false; + FieldDescriptorProto.prototype.type_name = ""; /** - * FileOptions .gogoproto.enumdecl_all. - * @member {boolean} .gogoproto.enumdecl_all - * @memberof google.protobuf.FileOptions + * FieldDescriptorProto extendee. + * @member {string} extendee + * @memberof google.protobuf.FieldDescriptorProto * @instance */ - FileOptions.prototype[".gogoproto.enumdecl_all"] = false; + FieldDescriptorProto.prototype.extendee = ""; /** - * FileOptions .gogoproto.goproto_registration. - * @member {boolean} .gogoproto.goproto_registration - * @memberof google.protobuf.FileOptions + * FieldDescriptorProto default_value. + * @member {string} default_value + * @memberof google.protobuf.FieldDescriptorProto * @instance */ - FileOptions.prototype[".gogoproto.goproto_registration"] = false; + FieldDescriptorProto.prototype.default_value = ""; /** - * FileOptions .gogoproto.messagename_all. - * @member {boolean} .gogoproto.messagename_all - * @memberof google.protobuf.FileOptions + * FieldDescriptorProto oneof_index. + * @member {number} oneof_index + * @memberof google.protobuf.FieldDescriptorProto * @instance */ - FileOptions.prototype[".gogoproto.messagename_all"] = false; + FieldDescriptorProto.prototype.oneof_index = 0; /** - * FileOptions .gogoproto.goproto_sizecache_all. - * @member {boolean} .gogoproto.goproto_sizecache_all - * @memberof google.protobuf.FileOptions + * FieldDescriptorProto json_name. + * @member {string} json_name + * @memberof google.protobuf.FieldDescriptorProto * @instance */ - FileOptions.prototype[".gogoproto.goproto_sizecache_all"] = false; + FieldDescriptorProto.prototype.json_name = ""; /** - * FileOptions .gogoproto.goproto_unkeyed_all. - * @member {boolean} .gogoproto.goproto_unkeyed_all - * @memberof google.protobuf.FileOptions + * FieldDescriptorProto options. + * @member {google.protobuf.IFieldOptions|null|undefined} options + * @memberof google.protobuf.FieldDescriptorProto * @instance */ - FileOptions.prototype[".gogoproto.goproto_unkeyed_all"] = false; + FieldDescriptorProto.prototype.options = null; /** - * Encodes the specified FileOptions message. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages. + * Encodes the specified FieldDescriptorProto message. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages. * @function encode - * @memberof google.protobuf.FileOptions + * @memberof google.protobuf.FieldDescriptorProto * @static - * @param {google.protobuf.IFileOptions} message FileOptions message or plain object to encode + * @param {google.protobuf.IFieldDescriptorProto} message FieldDescriptorProto message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FileOptions.encode = function encode(message, writer) { + FieldDescriptorProto.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.java_package != null && Object.hasOwnProperty.call(message, "java_package")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.java_package); - if (message.java_outer_classname != null && Object.hasOwnProperty.call(message, "java_outer_classname")) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.java_outer_classname); - if (message.optimize_for != null && Object.hasOwnProperty.call(message, "optimize_for")) - writer.uint32(/* id 9, wireType 0 =*/72).int32(message.optimize_for); - if (message.java_multiple_files != null && Object.hasOwnProperty.call(message, "java_multiple_files")) - writer.uint32(/* id 10, wireType 0 =*/80).bool(message.java_multiple_files); - if (message.go_package != null && Object.hasOwnProperty.call(message, "go_package")) - writer.uint32(/* id 11, wireType 2 =*/90).string(message.go_package); - if (message.cc_generic_services != null && Object.hasOwnProperty.call(message, "cc_generic_services")) - writer.uint32(/* id 16, wireType 0 =*/128).bool(message.cc_generic_services); - if (message.java_generic_services != null && Object.hasOwnProperty.call(message, "java_generic_services")) - writer.uint32(/* id 17, wireType 0 =*/136).bool(message.java_generic_services); - if (message.py_generic_services != null && Object.hasOwnProperty.call(message, "py_generic_services")) - writer.uint32(/* id 18, wireType 0 =*/144).bool(message.py_generic_services); - if (message.java_generate_equals_and_hash != null && Object.hasOwnProperty.call(message, "java_generate_equals_and_hash")) - writer.uint32(/* id 20, wireType 0 =*/160).bool(message.java_generate_equals_and_hash); - if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) - writer.uint32(/* id 23, wireType 0 =*/184).bool(message.deprecated); - if (message.java_string_check_utf8 != null && Object.hasOwnProperty.call(message, "java_string_check_utf8")) - writer.uint32(/* id 27, wireType 0 =*/216).bool(message.java_string_check_utf8); - if (message.cc_enable_arenas != null && Object.hasOwnProperty.call(message, "cc_enable_arenas")) - writer.uint32(/* id 31, wireType 0 =*/248).bool(message.cc_enable_arenas); - if (message.objc_class_prefix != null && Object.hasOwnProperty.call(message, "objc_class_prefix")) - writer.uint32(/* id 36, wireType 2 =*/290).string(message.objc_class_prefix); - if (message.csharp_namespace != null && Object.hasOwnProperty.call(message, "csharp_namespace")) - writer.uint32(/* id 37, wireType 2 =*/298).string(message.csharp_namespace); - if (message.uninterpreted_option != null && message.uninterpreted_option.length) - for (var i = 0; i < message.uninterpreted_option.length; ++i) - $root.google.protobuf.UninterpretedOption.encode(message.uninterpreted_option[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); - if (message[".gogoproto.goproto_getters_all"] != null && Object.hasOwnProperty.call(message, ".gogoproto.goproto_getters_all")) - writer.uint32(/* id 63001, wireType 0 =*/504008).bool(message[".gogoproto.goproto_getters_all"]); - if (message[".gogoproto.goproto_enum_prefix_all"] != null && Object.hasOwnProperty.call(message, ".gogoproto.goproto_enum_prefix_all")) - writer.uint32(/* id 63002, wireType 0 =*/504016).bool(message[".gogoproto.goproto_enum_prefix_all"]); - if (message[".gogoproto.goproto_stringer_all"] != null && Object.hasOwnProperty.call(message, ".gogoproto.goproto_stringer_all")) - writer.uint32(/* id 63003, wireType 0 =*/504024).bool(message[".gogoproto.goproto_stringer_all"]); - if (message[".gogoproto.verbose_equal_all"] != null && Object.hasOwnProperty.call(message, ".gogoproto.verbose_equal_all")) - writer.uint32(/* id 63004, wireType 0 =*/504032).bool(message[".gogoproto.verbose_equal_all"]); - if (message[".gogoproto.face_all"] != null && Object.hasOwnProperty.call(message, ".gogoproto.face_all")) - writer.uint32(/* id 63005, wireType 0 =*/504040).bool(message[".gogoproto.face_all"]); - if (message[".gogoproto.gostring_all"] != null && Object.hasOwnProperty.call(message, ".gogoproto.gostring_all")) - writer.uint32(/* id 63006, wireType 0 =*/504048).bool(message[".gogoproto.gostring_all"]); - if (message[".gogoproto.populate_all"] != null && Object.hasOwnProperty.call(message, ".gogoproto.populate_all")) - writer.uint32(/* id 63007, wireType 0 =*/504056).bool(message[".gogoproto.populate_all"]); - if (message[".gogoproto.stringer_all"] != null && Object.hasOwnProperty.call(message, ".gogoproto.stringer_all")) - writer.uint32(/* id 63008, wireType 0 =*/504064).bool(message[".gogoproto.stringer_all"]); - if (message[".gogoproto.onlyone_all"] != null && Object.hasOwnProperty.call(message, ".gogoproto.onlyone_all")) - writer.uint32(/* id 63009, wireType 0 =*/504072).bool(message[".gogoproto.onlyone_all"]); - if (message[".gogoproto.equal_all"] != null && Object.hasOwnProperty.call(message, ".gogoproto.equal_all")) - writer.uint32(/* id 63013, wireType 0 =*/504104).bool(message[".gogoproto.equal_all"]); - if (message[".gogoproto.description_all"] != null && Object.hasOwnProperty.call(message, ".gogoproto.description_all")) - writer.uint32(/* id 63014, wireType 0 =*/504112).bool(message[".gogoproto.description_all"]); - if (message[".gogoproto.testgen_all"] != null && Object.hasOwnProperty.call(message, ".gogoproto.testgen_all")) - writer.uint32(/* id 63015, wireType 0 =*/504120).bool(message[".gogoproto.testgen_all"]); - if (message[".gogoproto.benchgen_all"] != null && Object.hasOwnProperty.call(message, ".gogoproto.benchgen_all")) - writer.uint32(/* id 63016, wireType 0 =*/504128).bool(message[".gogoproto.benchgen_all"]); - if (message[".gogoproto.marshaler_all"] != null && Object.hasOwnProperty.call(message, ".gogoproto.marshaler_all")) - writer.uint32(/* id 63017, wireType 0 =*/504136).bool(message[".gogoproto.marshaler_all"]); - if (message[".gogoproto.unmarshaler_all"] != null && Object.hasOwnProperty.call(message, ".gogoproto.unmarshaler_all")) - writer.uint32(/* id 63018, wireType 0 =*/504144).bool(message[".gogoproto.unmarshaler_all"]); - if (message[".gogoproto.stable_marshaler_all"] != null && Object.hasOwnProperty.call(message, ".gogoproto.stable_marshaler_all")) - writer.uint32(/* id 63019, wireType 0 =*/504152).bool(message[".gogoproto.stable_marshaler_all"]); - if (message[".gogoproto.sizer_all"] != null && Object.hasOwnProperty.call(message, ".gogoproto.sizer_all")) - writer.uint32(/* id 63020, wireType 0 =*/504160).bool(message[".gogoproto.sizer_all"]); - if (message[".gogoproto.goproto_enum_stringer_all"] != null && Object.hasOwnProperty.call(message, ".gogoproto.goproto_enum_stringer_all")) - writer.uint32(/* id 63021, wireType 0 =*/504168).bool(message[".gogoproto.goproto_enum_stringer_all"]); - if (message[".gogoproto.enum_stringer_all"] != null && Object.hasOwnProperty.call(message, ".gogoproto.enum_stringer_all")) - writer.uint32(/* id 63022, wireType 0 =*/504176).bool(message[".gogoproto.enum_stringer_all"]); - if (message[".gogoproto.unsafe_marshaler_all"] != null && Object.hasOwnProperty.call(message, ".gogoproto.unsafe_marshaler_all")) - writer.uint32(/* id 63023, wireType 0 =*/504184).bool(message[".gogoproto.unsafe_marshaler_all"]); - if (message[".gogoproto.unsafe_unmarshaler_all"] != null && Object.hasOwnProperty.call(message, ".gogoproto.unsafe_unmarshaler_all")) - writer.uint32(/* id 63024, wireType 0 =*/504192).bool(message[".gogoproto.unsafe_unmarshaler_all"]); - if (message[".gogoproto.goproto_extensions_map_all"] != null && Object.hasOwnProperty.call(message, ".gogoproto.goproto_extensions_map_all")) - writer.uint32(/* id 63025, wireType 0 =*/504200).bool(message[".gogoproto.goproto_extensions_map_all"]); - if (message[".gogoproto.goproto_unrecognized_all"] != null && Object.hasOwnProperty.call(message, ".gogoproto.goproto_unrecognized_all")) - writer.uint32(/* id 63026, wireType 0 =*/504208).bool(message[".gogoproto.goproto_unrecognized_all"]); - if (message[".gogoproto.gogoproto_import"] != null && Object.hasOwnProperty.call(message, ".gogoproto.gogoproto_import")) - writer.uint32(/* id 63027, wireType 0 =*/504216).bool(message[".gogoproto.gogoproto_import"]); - if (message[".gogoproto.protosizer_all"] != null && Object.hasOwnProperty.call(message, ".gogoproto.protosizer_all")) - writer.uint32(/* id 63028, wireType 0 =*/504224).bool(message[".gogoproto.protosizer_all"]); - if (message[".gogoproto.compare_all"] != null && Object.hasOwnProperty.call(message, ".gogoproto.compare_all")) - writer.uint32(/* id 63029, wireType 0 =*/504232).bool(message[".gogoproto.compare_all"]); - if (message[".gogoproto.typedecl_all"] != null && Object.hasOwnProperty.call(message, ".gogoproto.typedecl_all")) - writer.uint32(/* id 63030, wireType 0 =*/504240).bool(message[".gogoproto.typedecl_all"]); - if (message[".gogoproto.enumdecl_all"] != null && Object.hasOwnProperty.call(message, ".gogoproto.enumdecl_all")) - writer.uint32(/* id 63031, wireType 0 =*/504248).bool(message[".gogoproto.enumdecl_all"]); - if (message[".gogoproto.goproto_registration"] != null && Object.hasOwnProperty.call(message, ".gogoproto.goproto_registration")) - writer.uint32(/* id 63032, wireType 0 =*/504256).bool(message[".gogoproto.goproto_registration"]); - if (message[".gogoproto.messagename_all"] != null && Object.hasOwnProperty.call(message, ".gogoproto.messagename_all")) - writer.uint32(/* id 63033, wireType 0 =*/504264).bool(message[".gogoproto.messagename_all"]); - if (message[".gogoproto.goproto_sizecache_all"] != null && Object.hasOwnProperty.call(message, ".gogoproto.goproto_sizecache_all")) - writer.uint32(/* id 63034, wireType 0 =*/504272).bool(message[".gogoproto.goproto_sizecache_all"]); - if (message[".gogoproto.goproto_unkeyed_all"] != null && Object.hasOwnProperty.call(message, ".gogoproto.goproto_unkeyed_all")) - writer.uint32(/* id 63035, wireType 0 =*/504280).bool(message[".gogoproto.goproto_unkeyed_all"]); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.extendee != null && Object.hasOwnProperty.call(message, "extendee")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.extendee); + if (message.number != null && Object.hasOwnProperty.call(message, "number")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.number); + if (message.label != null && Object.hasOwnProperty.call(message, "label")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.label); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.type); + if (message.type_name != null && Object.hasOwnProperty.call(message, "type_name")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.type_name); + if (message.default_value != null && Object.hasOwnProperty.call(message, "default_value")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.default_value); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + $root.google.protobuf.FieldOptions.encode(message.options, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.oneof_index != null && Object.hasOwnProperty.call(message, "oneof_index")) + writer.uint32(/* id 9, wireType 0 =*/72).int32(message.oneof_index); + if (message.json_name != null && Object.hasOwnProperty.call(message, "json_name")) + writer.uint32(/* id 10, wireType 2 =*/82).string(message.json_name); return writer; }; /** - * Encodes the specified FileOptions message, length delimited. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages. + * Encodes the specified FieldDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages. * @function encodeDelimited - * @memberof google.protobuf.FileOptions + * @memberof google.protobuf.FieldDescriptorProto * @static - * @param {google.protobuf.IFileOptions} message FileOptions message or plain object to encode + * @param {google.protobuf.IFieldDescriptorProto} message FieldDescriptorProto message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FileOptions.encodeDelimited = function encodeDelimited(message, writer) { + FieldDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a FileOptions message from the specified reader or buffer. + * Decodes a FieldDescriptorProto message from the specified reader or buffer. * @function decode - * @memberof google.protobuf.FileOptions + * @memberof google.protobuf.FieldDescriptorProto * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.FileOptions} FileOptions + * @returns {google.protobuf.FieldDescriptorProto} FieldDescriptorProto * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FileOptions.decode = function decode(reader, length) { + FieldDescriptorProto.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FileOptions(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FieldDescriptorProto(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.java_package = reader.string(); - break; - case 8: - message.java_outer_classname = reader.string(); - break; - case 10: - message.java_multiple_files = reader.bool(); - break; - case 20: - message.java_generate_equals_and_hash = reader.bool(); - break; - case 27: - message.java_string_check_utf8 = reader.bool(); - break; - case 9: - message.optimize_for = reader.int32(); - break; - case 11: - message.go_package = reader.string(); - break; - case 16: - message.cc_generic_services = reader.bool(); - break; - case 17: - message.java_generic_services = reader.bool(); - break; - case 18: - message.py_generic_services = reader.bool(); - break; - case 23: - message.deprecated = reader.bool(); - break; - case 31: - message.cc_enable_arenas = reader.bool(); - break; - case 36: - message.objc_class_prefix = reader.string(); - break; - case 37: - message.csharp_namespace = reader.string(); - break; - case 999: - if (!(message.uninterpreted_option && message.uninterpreted_option.length)) - message.uninterpreted_option = []; - message.uninterpreted_option.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); - break; - case 63001: - message[".gogoproto.goproto_getters_all"] = reader.bool(); - break; - case 63002: - message[".gogoproto.goproto_enum_prefix_all"] = reader.bool(); - break; - case 63003: - message[".gogoproto.goproto_stringer_all"] = reader.bool(); - break; - case 63004: - message[".gogoproto.verbose_equal_all"] = reader.bool(); - break; - case 63005: - message[".gogoproto.face_all"] = reader.bool(); - break; - case 63006: - message[".gogoproto.gostring_all"] = reader.bool(); - break; - case 63007: - message[".gogoproto.populate_all"] = reader.bool(); - break; - case 63008: - message[".gogoproto.stringer_all"] = reader.bool(); - break; - case 63009: - message[".gogoproto.onlyone_all"] = reader.bool(); - break; - case 63013: - message[".gogoproto.equal_all"] = reader.bool(); - break; - case 63014: - message[".gogoproto.description_all"] = reader.bool(); - break; - case 63015: - message[".gogoproto.testgen_all"] = reader.bool(); - break; - case 63016: - message[".gogoproto.benchgen_all"] = reader.bool(); - break; - case 63017: - message[".gogoproto.marshaler_all"] = reader.bool(); - break; - case 63018: - message[".gogoproto.unmarshaler_all"] = reader.bool(); - break; - case 63019: - message[".gogoproto.stable_marshaler_all"] = reader.bool(); - break; - case 63020: - message[".gogoproto.sizer_all"] = reader.bool(); - break; - case 63021: - message[".gogoproto.goproto_enum_stringer_all"] = reader.bool(); - break; - case 63022: - message[".gogoproto.enum_stringer_all"] = reader.bool(); - break; - case 63023: - message[".gogoproto.unsafe_marshaler_all"] = reader.bool(); - break; - case 63024: - message[".gogoproto.unsafe_unmarshaler_all"] = reader.bool(); - break; - case 63025: - message[".gogoproto.goproto_extensions_map_all"] = reader.bool(); - break; - case 63026: - message[".gogoproto.goproto_unrecognized_all"] = reader.bool(); + message.name = reader.string(); break; - case 63027: - message[".gogoproto.gogoproto_import"] = reader.bool(); + case 3: + message.number = reader.int32(); break; - case 63028: - message[".gogoproto.protosizer_all"] = reader.bool(); + case 4: + message.label = reader.int32(); break; - case 63029: - message[".gogoproto.compare_all"] = reader.bool(); + case 5: + message.type = reader.int32(); break; - case 63030: - message[".gogoproto.typedecl_all"] = reader.bool(); + case 6: + message.type_name = reader.string(); break; - case 63031: - message[".gogoproto.enumdecl_all"] = reader.bool(); + case 2: + message.extendee = reader.string(); break; - case 63032: - message[".gogoproto.goproto_registration"] = reader.bool(); + case 7: + message.default_value = reader.string(); break; - case 63033: - message[".gogoproto.messagename_all"] = reader.bool(); + case 9: + message.oneof_index = reader.int32(); break; - case 63034: - message[".gogoproto.goproto_sizecache_all"] = reader.bool(); + case 10: + message.json_name = reader.string(); break; - case 63035: - message[".gogoproto.goproto_unkeyed_all"] = reader.bool(); + case 8: + message.options = $root.google.protobuf.FieldOptions.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -11745,561 +17795,359 @@ }; /** - * Decodes a FileOptions message from the specified reader or buffer, length delimited. + * Decodes a FieldDescriptorProto message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.protobuf.FileOptions + * @memberof google.protobuf.FieldDescriptorProto * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.FileOptions} FileOptions + * @returns {google.protobuf.FieldDescriptorProto} FieldDescriptorProto * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FileOptions.decodeDelimited = function decodeDelimited(reader) { + FieldDescriptorProto.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a FileOptions message. + * Verifies a FieldDescriptorProto message. * @function verify - * @memberof google.protobuf.FileOptions + * @memberof google.protobuf.FieldDescriptorProto * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FileOptions.verify = function verify(message) { + FieldDescriptorProto.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.java_package != null && message.hasOwnProperty("java_package")) - if (!$util.isString(message.java_package)) - return "java_package: string expected"; - if (message.java_outer_classname != null && message.hasOwnProperty("java_outer_classname")) - if (!$util.isString(message.java_outer_classname)) - return "java_outer_classname: string expected"; - if (message.java_multiple_files != null && message.hasOwnProperty("java_multiple_files")) - if (typeof message.java_multiple_files !== "boolean") - return "java_multiple_files: boolean expected"; - if (message.java_generate_equals_and_hash != null && message.hasOwnProperty("java_generate_equals_and_hash")) - if (typeof message.java_generate_equals_and_hash !== "boolean") - return "java_generate_equals_and_hash: boolean expected"; - if (message.java_string_check_utf8 != null && message.hasOwnProperty("java_string_check_utf8")) - if (typeof message.java_string_check_utf8 !== "boolean") - return "java_string_check_utf8: boolean expected"; - if (message.optimize_for != null && message.hasOwnProperty("optimize_for")) - switch (message.optimize_for) { + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.number != null && message.hasOwnProperty("number")) + if (!$util.isInteger(message.number)) + return "number: integer expected"; + if (message.label != null && message.hasOwnProperty("label")) + switch (message.label) { default: - return "optimize_for: enum value expected"; + return "label: enum value expected"; case 1: case 2: case 3: break; } - if (message.go_package != null && message.hasOwnProperty("go_package")) - if (!$util.isString(message.go_package)) - return "go_package: string expected"; - if (message.cc_generic_services != null && message.hasOwnProperty("cc_generic_services")) - if (typeof message.cc_generic_services !== "boolean") - return "cc_generic_services: boolean expected"; - if (message.java_generic_services != null && message.hasOwnProperty("java_generic_services")) - if (typeof message.java_generic_services !== "boolean") - return "java_generic_services: boolean expected"; - if (message.py_generic_services != null && message.hasOwnProperty("py_generic_services")) - if (typeof message.py_generic_services !== "boolean") - return "py_generic_services: boolean expected"; - if (message.deprecated != null && message.hasOwnProperty("deprecated")) - if (typeof message.deprecated !== "boolean") - return "deprecated: boolean expected"; - if (message.cc_enable_arenas != null && message.hasOwnProperty("cc_enable_arenas")) - if (typeof message.cc_enable_arenas !== "boolean") - return "cc_enable_arenas: boolean expected"; - if (message.objc_class_prefix != null && message.hasOwnProperty("objc_class_prefix")) - if (!$util.isString(message.objc_class_prefix)) - return "objc_class_prefix: string expected"; - if (message.csharp_namespace != null && message.hasOwnProperty("csharp_namespace")) - if (!$util.isString(message.csharp_namespace)) - return "csharp_namespace: string expected"; - if (message.uninterpreted_option != null && message.hasOwnProperty("uninterpreted_option")) { - if (!Array.isArray(message.uninterpreted_option)) - return "uninterpreted_option: array expected"; - for (var i = 0; i < message.uninterpreted_option.length; ++i) { - var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpreted_option[i]); - if (error) - return "uninterpreted_option." + error; + if (message.type != null && message.hasOwnProperty("type")) + switch (message.type) { + default: + return "type: enum value expected"; + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + case 10: + case 11: + case 12: + case 13: + case 14: + case 15: + case 16: + case 17: + case 18: + break; } + if (message.type_name != null && message.hasOwnProperty("type_name")) + if (!$util.isString(message.type_name)) + return "type_name: string expected"; + if (message.extendee != null && message.hasOwnProperty("extendee")) + if (!$util.isString(message.extendee)) + return "extendee: string expected"; + if (message.default_value != null && message.hasOwnProperty("default_value")) + if (!$util.isString(message.default_value)) + return "default_value: string expected"; + if (message.oneof_index != null && message.hasOwnProperty("oneof_index")) + if (!$util.isInteger(message.oneof_index)) + return "oneof_index: integer expected"; + if (message.json_name != null && message.hasOwnProperty("json_name")) + if (!$util.isString(message.json_name)) + return "json_name: string expected"; + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.google.protobuf.FieldOptions.verify(message.options); + if (error) + return "options." + error; } - if (message[".gogoproto.goproto_getters_all"] != null && message.hasOwnProperty(".gogoproto.goproto_getters_all")) - if (typeof message[".gogoproto.goproto_getters_all"] !== "boolean") - return ".gogoproto.goproto_getters_all: boolean expected"; - if (message[".gogoproto.goproto_enum_prefix_all"] != null && message.hasOwnProperty(".gogoproto.goproto_enum_prefix_all")) - if (typeof message[".gogoproto.goproto_enum_prefix_all"] !== "boolean") - return ".gogoproto.goproto_enum_prefix_all: boolean expected"; - if (message[".gogoproto.goproto_stringer_all"] != null && message.hasOwnProperty(".gogoproto.goproto_stringer_all")) - if (typeof message[".gogoproto.goproto_stringer_all"] !== "boolean") - return ".gogoproto.goproto_stringer_all: boolean expected"; - if (message[".gogoproto.verbose_equal_all"] != null && message.hasOwnProperty(".gogoproto.verbose_equal_all")) - if (typeof message[".gogoproto.verbose_equal_all"] !== "boolean") - return ".gogoproto.verbose_equal_all: boolean expected"; - if (message[".gogoproto.face_all"] != null && message.hasOwnProperty(".gogoproto.face_all")) - if (typeof message[".gogoproto.face_all"] !== "boolean") - return ".gogoproto.face_all: boolean expected"; - if (message[".gogoproto.gostring_all"] != null && message.hasOwnProperty(".gogoproto.gostring_all")) - if (typeof message[".gogoproto.gostring_all"] !== "boolean") - return ".gogoproto.gostring_all: boolean expected"; - if (message[".gogoproto.populate_all"] != null && message.hasOwnProperty(".gogoproto.populate_all")) - if (typeof message[".gogoproto.populate_all"] !== "boolean") - return ".gogoproto.populate_all: boolean expected"; - if (message[".gogoproto.stringer_all"] != null && message.hasOwnProperty(".gogoproto.stringer_all")) - if (typeof message[".gogoproto.stringer_all"] !== "boolean") - return ".gogoproto.stringer_all: boolean expected"; - if (message[".gogoproto.onlyone_all"] != null && message.hasOwnProperty(".gogoproto.onlyone_all")) - if (typeof message[".gogoproto.onlyone_all"] !== "boolean") - return ".gogoproto.onlyone_all: boolean expected"; - if (message[".gogoproto.equal_all"] != null && message.hasOwnProperty(".gogoproto.equal_all")) - if (typeof message[".gogoproto.equal_all"] !== "boolean") - return ".gogoproto.equal_all: boolean expected"; - if (message[".gogoproto.description_all"] != null && message.hasOwnProperty(".gogoproto.description_all")) - if (typeof message[".gogoproto.description_all"] !== "boolean") - return ".gogoproto.description_all: boolean expected"; - if (message[".gogoproto.testgen_all"] != null && message.hasOwnProperty(".gogoproto.testgen_all")) - if (typeof message[".gogoproto.testgen_all"] !== "boolean") - return ".gogoproto.testgen_all: boolean expected"; - if (message[".gogoproto.benchgen_all"] != null && message.hasOwnProperty(".gogoproto.benchgen_all")) - if (typeof message[".gogoproto.benchgen_all"] !== "boolean") - return ".gogoproto.benchgen_all: boolean expected"; - if (message[".gogoproto.marshaler_all"] != null && message.hasOwnProperty(".gogoproto.marshaler_all")) - if (typeof message[".gogoproto.marshaler_all"] !== "boolean") - return ".gogoproto.marshaler_all: boolean expected"; - if (message[".gogoproto.unmarshaler_all"] != null && message.hasOwnProperty(".gogoproto.unmarshaler_all")) - if (typeof message[".gogoproto.unmarshaler_all"] !== "boolean") - return ".gogoproto.unmarshaler_all: boolean expected"; - if (message[".gogoproto.stable_marshaler_all"] != null && message.hasOwnProperty(".gogoproto.stable_marshaler_all")) - if (typeof message[".gogoproto.stable_marshaler_all"] !== "boolean") - return ".gogoproto.stable_marshaler_all: boolean expected"; - if (message[".gogoproto.sizer_all"] != null && message.hasOwnProperty(".gogoproto.sizer_all")) - if (typeof message[".gogoproto.sizer_all"] !== "boolean") - return ".gogoproto.sizer_all: boolean expected"; - if (message[".gogoproto.goproto_enum_stringer_all"] != null && message.hasOwnProperty(".gogoproto.goproto_enum_stringer_all")) - if (typeof message[".gogoproto.goproto_enum_stringer_all"] !== "boolean") - return ".gogoproto.goproto_enum_stringer_all: boolean expected"; - if (message[".gogoproto.enum_stringer_all"] != null && message.hasOwnProperty(".gogoproto.enum_stringer_all")) - if (typeof message[".gogoproto.enum_stringer_all"] !== "boolean") - return ".gogoproto.enum_stringer_all: boolean expected"; - if (message[".gogoproto.unsafe_marshaler_all"] != null && message.hasOwnProperty(".gogoproto.unsafe_marshaler_all")) - if (typeof message[".gogoproto.unsafe_marshaler_all"] !== "boolean") - return ".gogoproto.unsafe_marshaler_all: boolean expected"; - if (message[".gogoproto.unsafe_unmarshaler_all"] != null && message.hasOwnProperty(".gogoproto.unsafe_unmarshaler_all")) - if (typeof message[".gogoproto.unsafe_unmarshaler_all"] !== "boolean") - return ".gogoproto.unsafe_unmarshaler_all: boolean expected"; - if (message[".gogoproto.goproto_extensions_map_all"] != null && message.hasOwnProperty(".gogoproto.goproto_extensions_map_all")) - if (typeof message[".gogoproto.goproto_extensions_map_all"] !== "boolean") - return ".gogoproto.goproto_extensions_map_all: boolean expected"; - if (message[".gogoproto.goproto_unrecognized_all"] != null && message.hasOwnProperty(".gogoproto.goproto_unrecognized_all")) - if (typeof message[".gogoproto.goproto_unrecognized_all"] !== "boolean") - return ".gogoproto.goproto_unrecognized_all: boolean expected"; - if (message[".gogoproto.gogoproto_import"] != null && message.hasOwnProperty(".gogoproto.gogoproto_import")) - if (typeof message[".gogoproto.gogoproto_import"] !== "boolean") - return ".gogoproto.gogoproto_import: boolean expected"; - if (message[".gogoproto.protosizer_all"] != null && message.hasOwnProperty(".gogoproto.protosizer_all")) - if (typeof message[".gogoproto.protosizer_all"] !== "boolean") - return ".gogoproto.protosizer_all: boolean expected"; - if (message[".gogoproto.compare_all"] != null && message.hasOwnProperty(".gogoproto.compare_all")) - if (typeof message[".gogoproto.compare_all"] !== "boolean") - return ".gogoproto.compare_all: boolean expected"; - if (message[".gogoproto.typedecl_all"] != null && message.hasOwnProperty(".gogoproto.typedecl_all")) - if (typeof message[".gogoproto.typedecl_all"] !== "boolean") - return ".gogoproto.typedecl_all: boolean expected"; - if (message[".gogoproto.enumdecl_all"] != null && message.hasOwnProperty(".gogoproto.enumdecl_all")) - if (typeof message[".gogoproto.enumdecl_all"] !== "boolean") - return ".gogoproto.enumdecl_all: boolean expected"; - if (message[".gogoproto.goproto_registration"] != null && message.hasOwnProperty(".gogoproto.goproto_registration")) - if (typeof message[".gogoproto.goproto_registration"] !== "boolean") - return ".gogoproto.goproto_registration: boolean expected"; - if (message[".gogoproto.messagename_all"] != null && message.hasOwnProperty(".gogoproto.messagename_all")) - if (typeof message[".gogoproto.messagename_all"] !== "boolean") - return ".gogoproto.messagename_all: boolean expected"; - if (message[".gogoproto.goproto_sizecache_all"] != null && message.hasOwnProperty(".gogoproto.goproto_sizecache_all")) - if (typeof message[".gogoproto.goproto_sizecache_all"] !== "boolean") - return ".gogoproto.goproto_sizecache_all: boolean expected"; - if (message[".gogoproto.goproto_unkeyed_all"] != null && message.hasOwnProperty(".gogoproto.goproto_unkeyed_all")) - if (typeof message[".gogoproto.goproto_unkeyed_all"] !== "boolean") - return ".gogoproto.goproto_unkeyed_all: boolean expected"; return null; }; /** - * Creates a FileOptions message from a plain object. Also converts values to their respective internal types. + * Creates a FieldDescriptorProto message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.protobuf.FileOptions + * @memberof google.protobuf.FieldDescriptorProto * @static * @param {Object.} object Plain object - * @returns {google.protobuf.FileOptions} FileOptions + * @returns {google.protobuf.FieldDescriptorProto} FieldDescriptorProto */ - FileOptions.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.FileOptions) + FieldDescriptorProto.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.FieldDescriptorProto) return object; - var message = new $root.google.protobuf.FileOptions(); - if (object.java_package != null) - message.java_package = String(object.java_package); - if (object.java_outer_classname != null) - message.java_outer_classname = String(object.java_outer_classname); - if (object.java_multiple_files != null) - message.java_multiple_files = Boolean(object.java_multiple_files); - if (object.java_generate_equals_and_hash != null) - message.java_generate_equals_and_hash = Boolean(object.java_generate_equals_and_hash); - if (object.java_string_check_utf8 != null) - message.java_string_check_utf8 = Boolean(object.java_string_check_utf8); - switch (object.optimize_for) { - case "SPEED": + var message = new $root.google.protobuf.FieldDescriptorProto(); + if (object.name != null) + message.name = String(object.name); + if (object.number != null) + message.number = object.number | 0; + switch (object.label) { + case "LABEL_OPTIONAL": case 1: - message.optimize_for = 1; + message.label = 1; break; - case "CODE_SIZE": + case "LABEL_REQUIRED": case 2: - message.optimize_for = 2; + message.label = 2; break; - case "LITE_RUNTIME": + case "LABEL_REPEATED": case 3: - message.optimize_for = 3; + message.label = 3; break; } - if (object.go_package != null) - message.go_package = String(object.go_package); - if (object.cc_generic_services != null) - message.cc_generic_services = Boolean(object.cc_generic_services); - if (object.java_generic_services != null) - message.java_generic_services = Boolean(object.java_generic_services); - if (object.py_generic_services != null) - message.py_generic_services = Boolean(object.py_generic_services); - if (object.deprecated != null) - message.deprecated = Boolean(object.deprecated); - if (object.cc_enable_arenas != null) - message.cc_enable_arenas = Boolean(object.cc_enable_arenas); - if (object.objc_class_prefix != null) - message.objc_class_prefix = String(object.objc_class_prefix); - if (object.csharp_namespace != null) - message.csharp_namespace = String(object.csharp_namespace); - if (object.uninterpreted_option) { - if (!Array.isArray(object.uninterpreted_option)) - throw TypeError(".google.protobuf.FileOptions.uninterpreted_option: array expected"); - message.uninterpreted_option = []; - for (var i = 0; i < object.uninterpreted_option.length; ++i) { - if (typeof object.uninterpreted_option[i] !== "object") - throw TypeError(".google.protobuf.FileOptions.uninterpreted_option: object expected"); - message.uninterpreted_option[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpreted_option[i]); - } - } - if (object[".gogoproto.goproto_getters_all"] != null) - message[".gogoproto.goproto_getters_all"] = Boolean(object[".gogoproto.goproto_getters_all"]); - if (object[".gogoproto.goproto_enum_prefix_all"] != null) - message[".gogoproto.goproto_enum_prefix_all"] = Boolean(object[".gogoproto.goproto_enum_prefix_all"]); - if (object[".gogoproto.goproto_stringer_all"] != null) - message[".gogoproto.goproto_stringer_all"] = Boolean(object[".gogoproto.goproto_stringer_all"]); - if (object[".gogoproto.verbose_equal_all"] != null) - message[".gogoproto.verbose_equal_all"] = Boolean(object[".gogoproto.verbose_equal_all"]); - if (object[".gogoproto.face_all"] != null) - message[".gogoproto.face_all"] = Boolean(object[".gogoproto.face_all"]); - if (object[".gogoproto.gostring_all"] != null) - message[".gogoproto.gostring_all"] = Boolean(object[".gogoproto.gostring_all"]); - if (object[".gogoproto.populate_all"] != null) - message[".gogoproto.populate_all"] = Boolean(object[".gogoproto.populate_all"]); - if (object[".gogoproto.stringer_all"] != null) - message[".gogoproto.stringer_all"] = Boolean(object[".gogoproto.stringer_all"]); - if (object[".gogoproto.onlyone_all"] != null) - message[".gogoproto.onlyone_all"] = Boolean(object[".gogoproto.onlyone_all"]); - if (object[".gogoproto.equal_all"] != null) - message[".gogoproto.equal_all"] = Boolean(object[".gogoproto.equal_all"]); - if (object[".gogoproto.description_all"] != null) - message[".gogoproto.description_all"] = Boolean(object[".gogoproto.description_all"]); - if (object[".gogoproto.testgen_all"] != null) - message[".gogoproto.testgen_all"] = Boolean(object[".gogoproto.testgen_all"]); - if (object[".gogoproto.benchgen_all"] != null) - message[".gogoproto.benchgen_all"] = Boolean(object[".gogoproto.benchgen_all"]); - if (object[".gogoproto.marshaler_all"] != null) - message[".gogoproto.marshaler_all"] = Boolean(object[".gogoproto.marshaler_all"]); - if (object[".gogoproto.unmarshaler_all"] != null) - message[".gogoproto.unmarshaler_all"] = Boolean(object[".gogoproto.unmarshaler_all"]); - if (object[".gogoproto.stable_marshaler_all"] != null) - message[".gogoproto.stable_marshaler_all"] = Boolean(object[".gogoproto.stable_marshaler_all"]); - if (object[".gogoproto.sizer_all"] != null) - message[".gogoproto.sizer_all"] = Boolean(object[".gogoproto.sizer_all"]); - if (object[".gogoproto.goproto_enum_stringer_all"] != null) - message[".gogoproto.goproto_enum_stringer_all"] = Boolean(object[".gogoproto.goproto_enum_stringer_all"]); - if (object[".gogoproto.enum_stringer_all"] != null) - message[".gogoproto.enum_stringer_all"] = Boolean(object[".gogoproto.enum_stringer_all"]); - if (object[".gogoproto.unsafe_marshaler_all"] != null) - message[".gogoproto.unsafe_marshaler_all"] = Boolean(object[".gogoproto.unsafe_marshaler_all"]); - if (object[".gogoproto.unsafe_unmarshaler_all"] != null) - message[".gogoproto.unsafe_unmarshaler_all"] = Boolean(object[".gogoproto.unsafe_unmarshaler_all"]); - if (object[".gogoproto.goproto_extensions_map_all"] != null) - message[".gogoproto.goproto_extensions_map_all"] = Boolean(object[".gogoproto.goproto_extensions_map_all"]); - if (object[".gogoproto.goproto_unrecognized_all"] != null) - message[".gogoproto.goproto_unrecognized_all"] = Boolean(object[".gogoproto.goproto_unrecognized_all"]); - if (object[".gogoproto.gogoproto_import"] != null) - message[".gogoproto.gogoproto_import"] = Boolean(object[".gogoproto.gogoproto_import"]); - if (object[".gogoproto.protosizer_all"] != null) - message[".gogoproto.protosizer_all"] = Boolean(object[".gogoproto.protosizer_all"]); - if (object[".gogoproto.compare_all"] != null) - message[".gogoproto.compare_all"] = Boolean(object[".gogoproto.compare_all"]); - if (object[".gogoproto.typedecl_all"] != null) - message[".gogoproto.typedecl_all"] = Boolean(object[".gogoproto.typedecl_all"]); - if (object[".gogoproto.enumdecl_all"] != null) - message[".gogoproto.enumdecl_all"] = Boolean(object[".gogoproto.enumdecl_all"]); - if (object[".gogoproto.goproto_registration"] != null) - message[".gogoproto.goproto_registration"] = Boolean(object[".gogoproto.goproto_registration"]); - if (object[".gogoproto.messagename_all"] != null) - message[".gogoproto.messagename_all"] = Boolean(object[".gogoproto.messagename_all"]); - if (object[".gogoproto.goproto_sizecache_all"] != null) - message[".gogoproto.goproto_sizecache_all"] = Boolean(object[".gogoproto.goproto_sizecache_all"]); - if (object[".gogoproto.goproto_unkeyed_all"] != null) - message[".gogoproto.goproto_unkeyed_all"] = Boolean(object[".gogoproto.goproto_unkeyed_all"]); - return message; - }; - - /** - * Creates a plain object from a FileOptions message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.FileOptions - * @static - * @param {google.protobuf.FileOptions} message FileOptions - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - FileOptions.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.uninterpreted_option = []; - if (options.defaults) { - object.java_package = ""; - object.java_outer_classname = ""; - object.optimize_for = options.enums === String ? "SPEED" : 1; - object.java_multiple_files = false; - object.go_package = ""; - object.cc_generic_services = false; - object.java_generic_services = false; - object.py_generic_services = false; - object.java_generate_equals_and_hash = false; - object.deprecated = false; - object.java_string_check_utf8 = false; - object.cc_enable_arenas = false; - object.objc_class_prefix = ""; - object.csharp_namespace = ""; - object[".gogoproto.goproto_getters_all"] = false; - object[".gogoproto.goproto_enum_prefix_all"] = false; - object[".gogoproto.goproto_stringer_all"] = false; - object[".gogoproto.verbose_equal_all"] = false; - object[".gogoproto.face_all"] = false; - object[".gogoproto.gostring_all"] = false; - object[".gogoproto.populate_all"] = false; - object[".gogoproto.stringer_all"] = false; - object[".gogoproto.onlyone_all"] = false; - object[".gogoproto.equal_all"] = false; - object[".gogoproto.description_all"] = false; - object[".gogoproto.testgen_all"] = false; - object[".gogoproto.benchgen_all"] = false; - object[".gogoproto.marshaler_all"] = false; - object[".gogoproto.unmarshaler_all"] = false; - object[".gogoproto.stable_marshaler_all"] = false; - object[".gogoproto.sizer_all"] = false; - object[".gogoproto.goproto_enum_stringer_all"] = false; - object[".gogoproto.enum_stringer_all"] = false; - object[".gogoproto.unsafe_marshaler_all"] = false; - object[".gogoproto.unsafe_unmarshaler_all"] = false; - object[".gogoproto.goproto_extensions_map_all"] = false; - object[".gogoproto.goproto_unrecognized_all"] = false; - object[".gogoproto.gogoproto_import"] = false; - object[".gogoproto.protosizer_all"] = false; - object[".gogoproto.compare_all"] = false; - object[".gogoproto.typedecl_all"] = false; - object[".gogoproto.enumdecl_all"] = false; - object[".gogoproto.goproto_registration"] = false; - object[".gogoproto.messagename_all"] = false; - object[".gogoproto.goproto_sizecache_all"] = false; - object[".gogoproto.goproto_unkeyed_all"] = false; + switch (object.type) { + case "TYPE_DOUBLE": + case 1: + message.type = 1; + break; + case "TYPE_FLOAT": + case 2: + message.type = 2; + break; + case "TYPE_INT64": + case 3: + message.type = 3; + break; + case "TYPE_UINT64": + case 4: + message.type = 4; + break; + case "TYPE_INT32": + case 5: + message.type = 5; + break; + case "TYPE_FIXED64": + case 6: + message.type = 6; + break; + case "TYPE_FIXED32": + case 7: + message.type = 7; + break; + case "TYPE_BOOL": + case 8: + message.type = 8; + break; + case "TYPE_STRING": + case 9: + message.type = 9; + break; + case "TYPE_GROUP": + case 10: + message.type = 10; + break; + case "TYPE_MESSAGE": + case 11: + message.type = 11; + break; + case "TYPE_BYTES": + case 12: + message.type = 12; + break; + case "TYPE_UINT32": + case 13: + message.type = 13; + break; + case "TYPE_ENUM": + case 14: + message.type = 14; + break; + case "TYPE_SFIXED32": + case 15: + message.type = 15; + break; + case "TYPE_SFIXED64": + case 16: + message.type = 16; + break; + case "TYPE_SINT32": + case 17: + message.type = 17; + break; + case "TYPE_SINT64": + case 18: + message.type = 18; + break; } - if (message.java_package != null && message.hasOwnProperty("java_package")) - object.java_package = message.java_package; - if (message.java_outer_classname != null && message.hasOwnProperty("java_outer_classname")) - object.java_outer_classname = message.java_outer_classname; - if (message.optimize_for != null && message.hasOwnProperty("optimize_for")) - object.optimize_for = options.enums === String ? $root.google.protobuf.FileOptions.OptimizeMode[message.optimize_for] : message.optimize_for; - if (message.java_multiple_files != null && message.hasOwnProperty("java_multiple_files")) - object.java_multiple_files = message.java_multiple_files; - if (message.go_package != null && message.hasOwnProperty("go_package")) - object.go_package = message.go_package; - if (message.cc_generic_services != null && message.hasOwnProperty("cc_generic_services")) - object.cc_generic_services = message.cc_generic_services; - if (message.java_generic_services != null && message.hasOwnProperty("java_generic_services")) - object.java_generic_services = message.java_generic_services; - if (message.py_generic_services != null && message.hasOwnProperty("py_generic_services")) - object.py_generic_services = message.py_generic_services; - if (message.java_generate_equals_and_hash != null && message.hasOwnProperty("java_generate_equals_and_hash")) - object.java_generate_equals_and_hash = message.java_generate_equals_and_hash; - if (message.deprecated != null && message.hasOwnProperty("deprecated")) - object.deprecated = message.deprecated; - if (message.java_string_check_utf8 != null && message.hasOwnProperty("java_string_check_utf8")) - object.java_string_check_utf8 = message.java_string_check_utf8; - if (message.cc_enable_arenas != null && message.hasOwnProperty("cc_enable_arenas")) - object.cc_enable_arenas = message.cc_enable_arenas; - if (message.objc_class_prefix != null && message.hasOwnProperty("objc_class_prefix")) - object.objc_class_prefix = message.objc_class_prefix; - if (message.csharp_namespace != null && message.hasOwnProperty("csharp_namespace")) - object.csharp_namespace = message.csharp_namespace; - if (message.uninterpreted_option && message.uninterpreted_option.length) { - object.uninterpreted_option = []; - for (var j = 0; j < message.uninterpreted_option.length; ++j) - object.uninterpreted_option[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpreted_option[j], options); + if (object.type_name != null) + message.type_name = String(object.type_name); + if (object.extendee != null) + message.extendee = String(object.extendee); + if (object.default_value != null) + message.default_value = String(object.default_value); + if (object.oneof_index != null) + message.oneof_index = object.oneof_index | 0; + if (object.json_name != null) + message.json_name = String(object.json_name); + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".google.protobuf.FieldDescriptorProto.options: object expected"); + message.options = $root.google.protobuf.FieldOptions.fromObject(object.options); } - if (message[".gogoproto.goproto_getters_all"] != null && message.hasOwnProperty(".gogoproto.goproto_getters_all")) - object[".gogoproto.goproto_getters_all"] = message[".gogoproto.goproto_getters_all"]; - if (message[".gogoproto.goproto_enum_prefix_all"] != null && message.hasOwnProperty(".gogoproto.goproto_enum_prefix_all")) - object[".gogoproto.goproto_enum_prefix_all"] = message[".gogoproto.goproto_enum_prefix_all"]; - if (message[".gogoproto.goproto_stringer_all"] != null && message.hasOwnProperty(".gogoproto.goproto_stringer_all")) - object[".gogoproto.goproto_stringer_all"] = message[".gogoproto.goproto_stringer_all"]; - if (message[".gogoproto.verbose_equal_all"] != null && message.hasOwnProperty(".gogoproto.verbose_equal_all")) - object[".gogoproto.verbose_equal_all"] = message[".gogoproto.verbose_equal_all"]; - if (message[".gogoproto.face_all"] != null && message.hasOwnProperty(".gogoproto.face_all")) - object[".gogoproto.face_all"] = message[".gogoproto.face_all"]; - if (message[".gogoproto.gostring_all"] != null && message.hasOwnProperty(".gogoproto.gostring_all")) - object[".gogoproto.gostring_all"] = message[".gogoproto.gostring_all"]; - if (message[".gogoproto.populate_all"] != null && message.hasOwnProperty(".gogoproto.populate_all")) - object[".gogoproto.populate_all"] = message[".gogoproto.populate_all"]; - if (message[".gogoproto.stringer_all"] != null && message.hasOwnProperty(".gogoproto.stringer_all")) - object[".gogoproto.stringer_all"] = message[".gogoproto.stringer_all"]; - if (message[".gogoproto.onlyone_all"] != null && message.hasOwnProperty(".gogoproto.onlyone_all")) - object[".gogoproto.onlyone_all"] = message[".gogoproto.onlyone_all"]; - if (message[".gogoproto.equal_all"] != null && message.hasOwnProperty(".gogoproto.equal_all")) - object[".gogoproto.equal_all"] = message[".gogoproto.equal_all"]; - if (message[".gogoproto.description_all"] != null && message.hasOwnProperty(".gogoproto.description_all")) - object[".gogoproto.description_all"] = message[".gogoproto.description_all"]; - if (message[".gogoproto.testgen_all"] != null && message.hasOwnProperty(".gogoproto.testgen_all")) - object[".gogoproto.testgen_all"] = message[".gogoproto.testgen_all"]; - if (message[".gogoproto.benchgen_all"] != null && message.hasOwnProperty(".gogoproto.benchgen_all")) - object[".gogoproto.benchgen_all"] = message[".gogoproto.benchgen_all"]; - if (message[".gogoproto.marshaler_all"] != null && message.hasOwnProperty(".gogoproto.marshaler_all")) - object[".gogoproto.marshaler_all"] = message[".gogoproto.marshaler_all"]; - if (message[".gogoproto.unmarshaler_all"] != null && message.hasOwnProperty(".gogoproto.unmarshaler_all")) - object[".gogoproto.unmarshaler_all"] = message[".gogoproto.unmarshaler_all"]; - if (message[".gogoproto.stable_marshaler_all"] != null && message.hasOwnProperty(".gogoproto.stable_marshaler_all")) - object[".gogoproto.stable_marshaler_all"] = message[".gogoproto.stable_marshaler_all"]; - if (message[".gogoproto.sizer_all"] != null && message.hasOwnProperty(".gogoproto.sizer_all")) - object[".gogoproto.sizer_all"] = message[".gogoproto.sizer_all"]; - if (message[".gogoproto.goproto_enum_stringer_all"] != null && message.hasOwnProperty(".gogoproto.goproto_enum_stringer_all")) - object[".gogoproto.goproto_enum_stringer_all"] = message[".gogoproto.goproto_enum_stringer_all"]; - if (message[".gogoproto.enum_stringer_all"] != null && message.hasOwnProperty(".gogoproto.enum_stringer_all")) - object[".gogoproto.enum_stringer_all"] = message[".gogoproto.enum_stringer_all"]; - if (message[".gogoproto.unsafe_marshaler_all"] != null && message.hasOwnProperty(".gogoproto.unsafe_marshaler_all")) - object[".gogoproto.unsafe_marshaler_all"] = message[".gogoproto.unsafe_marshaler_all"]; - if (message[".gogoproto.unsafe_unmarshaler_all"] != null && message.hasOwnProperty(".gogoproto.unsafe_unmarshaler_all")) - object[".gogoproto.unsafe_unmarshaler_all"] = message[".gogoproto.unsafe_unmarshaler_all"]; - if (message[".gogoproto.goproto_extensions_map_all"] != null && message.hasOwnProperty(".gogoproto.goproto_extensions_map_all")) - object[".gogoproto.goproto_extensions_map_all"] = message[".gogoproto.goproto_extensions_map_all"]; - if (message[".gogoproto.goproto_unrecognized_all"] != null && message.hasOwnProperty(".gogoproto.goproto_unrecognized_all")) - object[".gogoproto.goproto_unrecognized_all"] = message[".gogoproto.goproto_unrecognized_all"]; - if (message[".gogoproto.gogoproto_import"] != null && message.hasOwnProperty(".gogoproto.gogoproto_import")) - object[".gogoproto.gogoproto_import"] = message[".gogoproto.gogoproto_import"]; - if (message[".gogoproto.protosizer_all"] != null && message.hasOwnProperty(".gogoproto.protosizer_all")) - object[".gogoproto.protosizer_all"] = message[".gogoproto.protosizer_all"]; - if (message[".gogoproto.compare_all"] != null && message.hasOwnProperty(".gogoproto.compare_all")) - object[".gogoproto.compare_all"] = message[".gogoproto.compare_all"]; - if (message[".gogoproto.typedecl_all"] != null && message.hasOwnProperty(".gogoproto.typedecl_all")) - object[".gogoproto.typedecl_all"] = message[".gogoproto.typedecl_all"]; - if (message[".gogoproto.enumdecl_all"] != null && message.hasOwnProperty(".gogoproto.enumdecl_all")) - object[".gogoproto.enumdecl_all"] = message[".gogoproto.enumdecl_all"]; - if (message[".gogoproto.goproto_registration"] != null && message.hasOwnProperty(".gogoproto.goproto_registration")) - object[".gogoproto.goproto_registration"] = message[".gogoproto.goproto_registration"]; - if (message[".gogoproto.messagename_all"] != null && message.hasOwnProperty(".gogoproto.messagename_all")) - object[".gogoproto.messagename_all"] = message[".gogoproto.messagename_all"]; - if (message[".gogoproto.goproto_sizecache_all"] != null && message.hasOwnProperty(".gogoproto.goproto_sizecache_all")) - object[".gogoproto.goproto_sizecache_all"] = message[".gogoproto.goproto_sizecache_all"]; - if (message[".gogoproto.goproto_unkeyed_all"] != null && message.hasOwnProperty(".gogoproto.goproto_unkeyed_all")) - object[".gogoproto.goproto_unkeyed_all"] = message[".gogoproto.goproto_unkeyed_all"]; + return message; + }; + + /** + * Creates a plain object from a FieldDescriptorProto message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.FieldDescriptorProto + * @static + * @param {google.protobuf.FieldDescriptorProto} message FieldDescriptorProto + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FieldDescriptorProto.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.extendee = ""; + object.number = 0; + object.label = options.enums === String ? "LABEL_OPTIONAL" : 1; + object.type = options.enums === String ? "TYPE_DOUBLE" : 1; + object.type_name = ""; + object.default_value = ""; + object.options = null; + object.oneof_index = 0; + object.json_name = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.extendee != null && message.hasOwnProperty("extendee")) + object.extendee = message.extendee; + if (message.number != null && message.hasOwnProperty("number")) + object.number = message.number; + if (message.label != null && message.hasOwnProperty("label")) + object.label = options.enums === String ? $root.google.protobuf.FieldDescriptorProto.Label[message.label] : message.label; + if (message.type != null && message.hasOwnProperty("type")) + object.type = options.enums === String ? $root.google.protobuf.FieldDescriptorProto.Type[message.type] : message.type; + if (message.type_name != null && message.hasOwnProperty("type_name")) + object.type_name = message.type_name; + if (message.default_value != null && message.hasOwnProperty("default_value")) + object.default_value = message.default_value; + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.google.protobuf.FieldOptions.toObject(message.options, options); + if (message.oneof_index != null && message.hasOwnProperty("oneof_index")) + object.oneof_index = message.oneof_index; + if (message.json_name != null && message.hasOwnProperty("json_name")) + object.json_name = message.json_name; return object; }; /** - * Converts this FileOptions to JSON. + * Converts this FieldDescriptorProto to JSON. * @function toJSON - * @memberof google.protobuf.FileOptions + * @memberof google.protobuf.FieldDescriptorProto * @instance * @returns {Object.} JSON object */ - FileOptions.prototype.toJSON = function toJSON() { + FieldDescriptorProto.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * OptimizeMode enum. - * @name google.protobuf.FileOptions.OptimizeMode + * Type enum. + * @name google.protobuf.FieldDescriptorProto.Type * @enum {number} - * @property {number} SPEED=1 SPEED value - * @property {number} CODE_SIZE=2 CODE_SIZE value - * @property {number} LITE_RUNTIME=3 LITE_RUNTIME value + * @property {number} TYPE_DOUBLE=1 TYPE_DOUBLE value + * @property {number} TYPE_FLOAT=2 TYPE_FLOAT value + * @property {number} TYPE_INT64=3 TYPE_INT64 value + * @property {number} TYPE_UINT64=4 TYPE_UINT64 value + * @property {number} TYPE_INT32=5 TYPE_INT32 value + * @property {number} TYPE_FIXED64=6 TYPE_FIXED64 value + * @property {number} TYPE_FIXED32=7 TYPE_FIXED32 value + * @property {number} TYPE_BOOL=8 TYPE_BOOL value + * @property {number} TYPE_STRING=9 TYPE_STRING value + * @property {number} TYPE_GROUP=10 TYPE_GROUP value + * @property {number} TYPE_MESSAGE=11 TYPE_MESSAGE value + * @property {number} TYPE_BYTES=12 TYPE_BYTES value + * @property {number} TYPE_UINT32=13 TYPE_UINT32 value + * @property {number} TYPE_ENUM=14 TYPE_ENUM value + * @property {number} TYPE_SFIXED32=15 TYPE_SFIXED32 value + * @property {number} TYPE_SFIXED64=16 TYPE_SFIXED64 value + * @property {number} TYPE_SINT32=17 TYPE_SINT32 value + * @property {number} TYPE_SINT64=18 TYPE_SINT64 value */ - FileOptions.OptimizeMode = (function() { + FieldDescriptorProto.Type = (function() { var valuesById = {}, values = Object.create(valuesById); - values[valuesById[1] = "SPEED"] = 1; - values[valuesById[2] = "CODE_SIZE"] = 2; - values[valuesById[3] = "LITE_RUNTIME"] = 3; + values[valuesById[1] = "TYPE_DOUBLE"] = 1; + values[valuesById[2] = "TYPE_FLOAT"] = 2; + values[valuesById[3] = "TYPE_INT64"] = 3; + values[valuesById[4] = "TYPE_UINT64"] = 4; + values[valuesById[5] = "TYPE_INT32"] = 5; + values[valuesById[6] = "TYPE_FIXED64"] = 6; + values[valuesById[7] = "TYPE_FIXED32"] = 7; + values[valuesById[8] = "TYPE_BOOL"] = 8; + values[valuesById[9] = "TYPE_STRING"] = 9; + values[valuesById[10] = "TYPE_GROUP"] = 10; + values[valuesById[11] = "TYPE_MESSAGE"] = 11; + values[valuesById[12] = "TYPE_BYTES"] = 12; + values[valuesById[13] = "TYPE_UINT32"] = 13; + values[valuesById[14] = "TYPE_ENUM"] = 14; + values[valuesById[15] = "TYPE_SFIXED32"] = 15; + values[valuesById[16] = "TYPE_SFIXED64"] = 16; + values[valuesById[17] = "TYPE_SINT32"] = 17; + values[valuesById[18] = "TYPE_SINT64"] = 18; return values; })(); - return FileOptions; + /** + * Label enum. + * @name google.protobuf.FieldDescriptorProto.Label + * @enum {number} + * @property {number} LABEL_OPTIONAL=1 LABEL_OPTIONAL value + * @property {number} LABEL_REQUIRED=2 LABEL_REQUIRED value + * @property {number} LABEL_REPEATED=3 LABEL_REPEATED value + */ + FieldDescriptorProto.Label = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[1] = "LABEL_OPTIONAL"] = 1; + values[valuesById[2] = "LABEL_REQUIRED"] = 2; + values[valuesById[3] = "LABEL_REPEATED"] = 3; + return values; + })(); + + return FieldDescriptorProto; })(); - protobuf.MessageOptions = (function() { + protobuf.OneofDescriptorProto = (function() { /** - * Properties of a MessageOptions. + * Properties of an OneofDescriptorProto. * @memberof google.protobuf - * @interface IMessageOptions - * @property {boolean|null} [message_set_wire_format] MessageOptions message_set_wire_format - * @property {boolean|null} [no_standard_descriptor_accessor] MessageOptions no_standard_descriptor_accessor - * @property {boolean|null} [deprecated] MessageOptions deprecated - * @property {boolean|null} [map_entry] MessageOptions map_entry - * @property {Array.|null} [uninterpreted_option] MessageOptions uninterpreted_option - * @property {boolean|null} [".gogoproto.goproto_getters"] MessageOptions .gogoproto.goproto_getters - * @property {boolean|null} [".gogoproto.goproto_stringer"] MessageOptions .gogoproto.goproto_stringer - * @property {boolean|null} [".gogoproto.verbose_equal"] MessageOptions .gogoproto.verbose_equal - * @property {boolean|null} [".gogoproto.face"] MessageOptions .gogoproto.face - * @property {boolean|null} [".gogoproto.gostring"] MessageOptions .gogoproto.gostring - * @property {boolean|null} [".gogoproto.populate"] MessageOptions .gogoproto.populate - * @property {boolean|null} [".gogoproto.stringer"] MessageOptions .gogoproto.stringer - * @property {boolean|null} [".gogoproto.onlyone"] MessageOptions .gogoproto.onlyone - * @property {boolean|null} [".gogoproto.equal"] MessageOptions .gogoproto.equal - * @property {boolean|null} [".gogoproto.description"] MessageOptions .gogoproto.description - * @property {boolean|null} [".gogoproto.testgen"] MessageOptions .gogoproto.testgen - * @property {boolean|null} [".gogoproto.benchgen"] MessageOptions .gogoproto.benchgen - * @property {boolean|null} [".gogoproto.marshaler"] MessageOptions .gogoproto.marshaler - * @property {boolean|null} [".gogoproto.unmarshaler"] MessageOptions .gogoproto.unmarshaler - * @property {boolean|null} [".gogoproto.stable_marshaler"] MessageOptions .gogoproto.stable_marshaler - * @property {boolean|null} [".gogoproto.sizer"] MessageOptions .gogoproto.sizer - * @property {boolean|null} [".gogoproto.unsafe_marshaler"] MessageOptions .gogoproto.unsafe_marshaler - * @property {boolean|null} [".gogoproto.unsafe_unmarshaler"] MessageOptions .gogoproto.unsafe_unmarshaler - * @property {boolean|null} [".gogoproto.goproto_extensions_map"] MessageOptions .gogoproto.goproto_extensions_map - * @property {boolean|null} [".gogoproto.goproto_unrecognized"] MessageOptions .gogoproto.goproto_unrecognized - * @property {boolean|null} [".gogoproto.protosizer"] MessageOptions .gogoproto.protosizer - * @property {boolean|null} [".gogoproto.compare"] MessageOptions .gogoproto.compare - * @property {boolean|null} [".gogoproto.typedecl"] MessageOptions .gogoproto.typedecl - * @property {boolean|null} [".gogoproto.messagename"] MessageOptions .gogoproto.messagename - * @property {boolean|null} [".gogoproto.goproto_sizecache"] MessageOptions .gogoproto.goproto_sizecache - * @property {boolean|null} [".gogoproto.goproto_unkeyed"] MessageOptions .gogoproto.goproto_unkeyed - * @property {string|null} [".cosmos_proto.interface_type"] MessageOptions .cosmos_proto.interface_type - * @property {string|null} [".cosmos_proto.implements_interface"] MessageOptions .cosmos_proto.implements_interface + * @interface IOneofDescriptorProto + * @property {string|null} [name] OneofDescriptorProto name + * @property {google.protobuf.IOneofOptions|null} [options] OneofDescriptorProto options */ /** - * Constructs a new MessageOptions. + * Constructs a new OneofDescriptorProto. * @memberof google.protobuf - * @classdesc Represents a MessageOptions. - * @implements IMessageOptions + * @classdesc Represents an OneofDescriptorProto. + * @implements IOneofDescriptorProto * @constructor - * @param {google.protobuf.IMessageOptions=} [properties] Properties to set + * @param {google.protobuf.IOneofDescriptorProto=} [properties] Properties to set */ - function MessageOptions(properties) { - this.uninterpreted_option = []; + function OneofDescriptorProto(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -12307,482 +18155,297 @@ } /** - * MessageOptions message_set_wire_format. - * @member {boolean} message_set_wire_format - * @memberof google.protobuf.MessageOptions - * @instance - */ - MessageOptions.prototype.message_set_wire_format = false; - - /** - * MessageOptions no_standard_descriptor_accessor. - * @member {boolean} no_standard_descriptor_accessor - * @memberof google.protobuf.MessageOptions - * @instance - */ - MessageOptions.prototype.no_standard_descriptor_accessor = false; - - /** - * MessageOptions deprecated. - * @member {boolean} deprecated - * @memberof google.protobuf.MessageOptions - * @instance - */ - MessageOptions.prototype.deprecated = false; - - /** - * MessageOptions map_entry. - * @member {boolean} map_entry - * @memberof google.protobuf.MessageOptions - * @instance - */ - MessageOptions.prototype.map_entry = false; - - /** - * MessageOptions uninterpreted_option. - * @member {Array.} uninterpreted_option - * @memberof google.protobuf.MessageOptions - * @instance - */ - MessageOptions.prototype.uninterpreted_option = $util.emptyArray; - - /** - * MessageOptions .gogoproto.goproto_getters. - * @member {boolean} .gogoproto.goproto_getters - * @memberof google.protobuf.MessageOptions - * @instance - */ - MessageOptions.prototype[".gogoproto.goproto_getters"] = false; - - /** - * MessageOptions .gogoproto.goproto_stringer. - * @member {boolean} .gogoproto.goproto_stringer - * @memberof google.protobuf.MessageOptions - * @instance - */ - MessageOptions.prototype[".gogoproto.goproto_stringer"] = false; - - /** - * MessageOptions .gogoproto.verbose_equal. - * @member {boolean} .gogoproto.verbose_equal - * @memberof google.protobuf.MessageOptions - * @instance - */ - MessageOptions.prototype[".gogoproto.verbose_equal"] = false; - - /** - * MessageOptions .gogoproto.face. - * @member {boolean} .gogoproto.face - * @memberof google.protobuf.MessageOptions - * @instance - */ - MessageOptions.prototype[".gogoproto.face"] = false; - - /** - * MessageOptions .gogoproto.gostring. - * @member {boolean} .gogoproto.gostring - * @memberof google.protobuf.MessageOptions - * @instance - */ - MessageOptions.prototype[".gogoproto.gostring"] = false; - - /** - * MessageOptions .gogoproto.populate. - * @member {boolean} .gogoproto.populate - * @memberof google.protobuf.MessageOptions - * @instance - */ - MessageOptions.prototype[".gogoproto.populate"] = false; - - /** - * MessageOptions .gogoproto.stringer. - * @member {boolean} .gogoproto.stringer - * @memberof google.protobuf.MessageOptions - * @instance - */ - MessageOptions.prototype[".gogoproto.stringer"] = false; - - /** - * MessageOptions .gogoproto.onlyone. - * @member {boolean} .gogoproto.onlyone - * @memberof google.protobuf.MessageOptions - * @instance - */ - MessageOptions.prototype[".gogoproto.onlyone"] = false; - - /** - * MessageOptions .gogoproto.equal. - * @member {boolean} .gogoproto.equal - * @memberof google.protobuf.MessageOptions - * @instance - */ - MessageOptions.prototype[".gogoproto.equal"] = false; - - /** - * MessageOptions .gogoproto.description. - * @member {boolean} .gogoproto.description - * @memberof google.protobuf.MessageOptions - * @instance - */ - MessageOptions.prototype[".gogoproto.description"] = false; - - /** - * MessageOptions .gogoproto.testgen. - * @member {boolean} .gogoproto.testgen - * @memberof google.protobuf.MessageOptions - * @instance - */ - MessageOptions.prototype[".gogoproto.testgen"] = false; - - /** - * MessageOptions .gogoproto.benchgen. - * @member {boolean} .gogoproto.benchgen - * @memberof google.protobuf.MessageOptions - * @instance - */ - MessageOptions.prototype[".gogoproto.benchgen"] = false; - - /** - * MessageOptions .gogoproto.marshaler. - * @member {boolean} .gogoproto.marshaler - * @memberof google.protobuf.MessageOptions + * OneofDescriptorProto name. + * @member {string} name + * @memberof google.protobuf.OneofDescriptorProto * @instance */ - MessageOptions.prototype[".gogoproto.marshaler"] = false; + OneofDescriptorProto.prototype.name = ""; /** - * MessageOptions .gogoproto.unmarshaler. - * @member {boolean} .gogoproto.unmarshaler - * @memberof google.protobuf.MessageOptions + * OneofDescriptorProto options. + * @member {google.protobuf.IOneofOptions|null|undefined} options + * @memberof google.protobuf.OneofDescriptorProto * @instance */ - MessageOptions.prototype[".gogoproto.unmarshaler"] = false; + OneofDescriptorProto.prototype.options = null; /** - * MessageOptions .gogoproto.stable_marshaler. - * @member {boolean} .gogoproto.stable_marshaler - * @memberof google.protobuf.MessageOptions - * @instance + * Encodes the specified OneofDescriptorProto message. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages. + * @function encode + * @memberof google.protobuf.OneofDescriptorProto + * @static + * @param {google.protobuf.IOneofDescriptorProto} message OneofDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - MessageOptions.prototype[".gogoproto.stable_marshaler"] = false; + OneofDescriptorProto.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + $root.google.protobuf.OneofOptions.encode(message.options, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; /** - * MessageOptions .gogoproto.sizer. - * @member {boolean} .gogoproto.sizer - * @memberof google.protobuf.MessageOptions - * @instance + * Encodes the specified OneofDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.OneofDescriptorProto + * @static + * @param {google.protobuf.IOneofDescriptorProto} message OneofDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - MessageOptions.prototype[".gogoproto.sizer"] = false; + OneofDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * MessageOptions .gogoproto.unsafe_marshaler. - * @member {boolean} .gogoproto.unsafe_marshaler - * @memberof google.protobuf.MessageOptions - * @instance + * Decodes an OneofDescriptorProto message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.OneofDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.OneofDescriptorProto} OneofDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MessageOptions.prototype[".gogoproto.unsafe_marshaler"] = false; + OneofDescriptorProto.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.OneofDescriptorProto(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.options = $root.google.protobuf.OneofOptions.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * MessageOptions .gogoproto.unsafe_unmarshaler. - * @member {boolean} .gogoproto.unsafe_unmarshaler - * @memberof google.protobuf.MessageOptions - * @instance + * Decodes an OneofDescriptorProto message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.OneofDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.OneofDescriptorProto} OneofDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MessageOptions.prototype[".gogoproto.unsafe_unmarshaler"] = false; + OneofDescriptorProto.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * MessageOptions .gogoproto.goproto_extensions_map. - * @member {boolean} .gogoproto.goproto_extensions_map - * @memberof google.protobuf.MessageOptions - * @instance + * Verifies an OneofDescriptorProto message. + * @function verify + * @memberof google.protobuf.OneofDescriptorProto + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MessageOptions.prototype[".gogoproto.goproto_extensions_map"] = false; + OneofDescriptorProto.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.google.protobuf.OneofOptions.verify(message.options); + if (error) + return "options." + error; + } + return null; + }; /** - * MessageOptions .gogoproto.goproto_unrecognized. - * @member {boolean} .gogoproto.goproto_unrecognized - * @memberof google.protobuf.MessageOptions - * @instance + * Creates an OneofDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.OneofDescriptorProto + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.OneofDescriptorProto} OneofDescriptorProto */ - MessageOptions.prototype[".gogoproto.goproto_unrecognized"] = false; + OneofDescriptorProto.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.OneofDescriptorProto) + return object; + var message = new $root.google.protobuf.OneofDescriptorProto(); + if (object.name != null) + message.name = String(object.name); + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".google.protobuf.OneofDescriptorProto.options: object expected"); + message.options = $root.google.protobuf.OneofOptions.fromObject(object.options); + } + return message; + }; /** - * MessageOptions .gogoproto.protosizer. - * @member {boolean} .gogoproto.protosizer - * @memberof google.protobuf.MessageOptions - * @instance + * Creates a plain object from an OneofDescriptorProto message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.OneofDescriptorProto + * @static + * @param {google.protobuf.OneofDescriptorProto} message OneofDescriptorProto + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - MessageOptions.prototype[".gogoproto.protosizer"] = false; + OneofDescriptorProto.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.options = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.google.protobuf.OneofOptions.toObject(message.options, options); + return object; + }; /** - * MessageOptions .gogoproto.compare. - * @member {boolean} .gogoproto.compare - * @memberof google.protobuf.MessageOptions + * Converts this OneofDescriptorProto to JSON. + * @function toJSON + * @memberof google.protobuf.OneofDescriptorProto * @instance + * @returns {Object.} JSON object */ - MessageOptions.prototype[".gogoproto.compare"] = false; + OneofDescriptorProto.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * MessageOptions .gogoproto.typedecl. - * @member {boolean} .gogoproto.typedecl - * @memberof google.protobuf.MessageOptions - * @instance - */ - MessageOptions.prototype[".gogoproto.typedecl"] = false; + return OneofDescriptorProto; + })(); + + protobuf.EnumDescriptorProto = (function() { /** - * MessageOptions .gogoproto.messagename. - * @member {boolean} .gogoproto.messagename - * @memberof google.protobuf.MessageOptions - * @instance + * Properties of an EnumDescriptorProto. + * @memberof google.protobuf + * @interface IEnumDescriptorProto + * @property {string|null} [name] EnumDescriptorProto name + * @property {Array.|null} [value] EnumDescriptorProto value + * @property {google.protobuf.IEnumOptions|null} [options] EnumDescriptorProto options */ - MessageOptions.prototype[".gogoproto.messagename"] = false; /** - * MessageOptions .gogoproto.goproto_sizecache. - * @member {boolean} .gogoproto.goproto_sizecache - * @memberof google.protobuf.MessageOptions - * @instance + * Constructs a new EnumDescriptorProto. + * @memberof google.protobuf + * @classdesc Represents an EnumDescriptorProto. + * @implements IEnumDescriptorProto + * @constructor + * @param {google.protobuf.IEnumDescriptorProto=} [properties] Properties to set */ - MessageOptions.prototype[".gogoproto.goproto_sizecache"] = false; + function EnumDescriptorProto(properties) { + this.value = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * MessageOptions .gogoproto.goproto_unkeyed. - * @member {boolean} .gogoproto.goproto_unkeyed - * @memberof google.protobuf.MessageOptions + * EnumDescriptorProto name. + * @member {string} name + * @memberof google.protobuf.EnumDescriptorProto * @instance */ - MessageOptions.prototype[".gogoproto.goproto_unkeyed"] = false; + EnumDescriptorProto.prototype.name = ""; /** - * MessageOptions .cosmos_proto.interface_type. - * @member {string} .cosmos_proto.interface_type - * @memberof google.protobuf.MessageOptions + * EnumDescriptorProto value. + * @member {Array.} value + * @memberof google.protobuf.EnumDescriptorProto * @instance */ - MessageOptions.prototype[".cosmos_proto.interface_type"] = ""; + EnumDescriptorProto.prototype.value = $util.emptyArray; /** - * MessageOptions .cosmos_proto.implements_interface. - * @member {string} .cosmos_proto.implements_interface - * @memberof google.protobuf.MessageOptions + * EnumDescriptorProto options. + * @member {google.protobuf.IEnumOptions|null|undefined} options + * @memberof google.protobuf.EnumDescriptorProto * @instance */ - MessageOptions.prototype[".cosmos_proto.implements_interface"] = ""; + EnumDescriptorProto.prototype.options = null; /** - * Encodes the specified MessageOptions message. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages. + * Encodes the specified EnumDescriptorProto message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages. * @function encode - * @memberof google.protobuf.MessageOptions + * @memberof google.protobuf.EnumDescriptorProto * @static - * @param {google.protobuf.IMessageOptions} message MessageOptions message or plain object to encode + * @param {google.protobuf.IEnumDescriptorProto} message EnumDescriptorProto message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MessageOptions.encode = function encode(message, writer) { + EnumDescriptorProto.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.message_set_wire_format != null && Object.hasOwnProperty.call(message, "message_set_wire_format")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.message_set_wire_format); - if (message.no_standard_descriptor_accessor != null && Object.hasOwnProperty.call(message, "no_standard_descriptor_accessor")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.no_standard_descriptor_accessor); - if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.deprecated); - if (message.map_entry != null && Object.hasOwnProperty.call(message, "map_entry")) - writer.uint32(/* id 7, wireType 0 =*/56).bool(message.map_entry); - if (message.uninterpreted_option != null && message.uninterpreted_option.length) - for (var i = 0; i < message.uninterpreted_option.length; ++i) - $root.google.protobuf.UninterpretedOption.encode(message.uninterpreted_option[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); - if (message[".gogoproto.goproto_getters"] != null && Object.hasOwnProperty.call(message, ".gogoproto.goproto_getters")) - writer.uint32(/* id 64001, wireType 0 =*/512008).bool(message[".gogoproto.goproto_getters"]); - if (message[".gogoproto.goproto_stringer"] != null && Object.hasOwnProperty.call(message, ".gogoproto.goproto_stringer")) - writer.uint32(/* id 64003, wireType 0 =*/512024).bool(message[".gogoproto.goproto_stringer"]); - if (message[".gogoproto.verbose_equal"] != null && Object.hasOwnProperty.call(message, ".gogoproto.verbose_equal")) - writer.uint32(/* id 64004, wireType 0 =*/512032).bool(message[".gogoproto.verbose_equal"]); - if (message[".gogoproto.face"] != null && Object.hasOwnProperty.call(message, ".gogoproto.face")) - writer.uint32(/* id 64005, wireType 0 =*/512040).bool(message[".gogoproto.face"]); - if (message[".gogoproto.gostring"] != null && Object.hasOwnProperty.call(message, ".gogoproto.gostring")) - writer.uint32(/* id 64006, wireType 0 =*/512048).bool(message[".gogoproto.gostring"]); - if (message[".gogoproto.populate"] != null && Object.hasOwnProperty.call(message, ".gogoproto.populate")) - writer.uint32(/* id 64007, wireType 0 =*/512056).bool(message[".gogoproto.populate"]); - if (message[".gogoproto.onlyone"] != null && Object.hasOwnProperty.call(message, ".gogoproto.onlyone")) - writer.uint32(/* id 64009, wireType 0 =*/512072).bool(message[".gogoproto.onlyone"]); - if (message[".gogoproto.equal"] != null && Object.hasOwnProperty.call(message, ".gogoproto.equal")) - writer.uint32(/* id 64013, wireType 0 =*/512104).bool(message[".gogoproto.equal"]); - if (message[".gogoproto.description"] != null && Object.hasOwnProperty.call(message, ".gogoproto.description")) - writer.uint32(/* id 64014, wireType 0 =*/512112).bool(message[".gogoproto.description"]); - if (message[".gogoproto.testgen"] != null && Object.hasOwnProperty.call(message, ".gogoproto.testgen")) - writer.uint32(/* id 64015, wireType 0 =*/512120).bool(message[".gogoproto.testgen"]); - if (message[".gogoproto.benchgen"] != null && Object.hasOwnProperty.call(message, ".gogoproto.benchgen")) - writer.uint32(/* id 64016, wireType 0 =*/512128).bool(message[".gogoproto.benchgen"]); - if (message[".gogoproto.marshaler"] != null && Object.hasOwnProperty.call(message, ".gogoproto.marshaler")) - writer.uint32(/* id 64017, wireType 0 =*/512136).bool(message[".gogoproto.marshaler"]); - if (message[".gogoproto.unmarshaler"] != null && Object.hasOwnProperty.call(message, ".gogoproto.unmarshaler")) - writer.uint32(/* id 64018, wireType 0 =*/512144).bool(message[".gogoproto.unmarshaler"]); - if (message[".gogoproto.stable_marshaler"] != null && Object.hasOwnProperty.call(message, ".gogoproto.stable_marshaler")) - writer.uint32(/* id 64019, wireType 0 =*/512152).bool(message[".gogoproto.stable_marshaler"]); - if (message[".gogoproto.sizer"] != null && Object.hasOwnProperty.call(message, ".gogoproto.sizer")) - writer.uint32(/* id 64020, wireType 0 =*/512160).bool(message[".gogoproto.sizer"]); - if (message[".gogoproto.unsafe_marshaler"] != null && Object.hasOwnProperty.call(message, ".gogoproto.unsafe_marshaler")) - writer.uint32(/* id 64023, wireType 0 =*/512184).bool(message[".gogoproto.unsafe_marshaler"]); - if (message[".gogoproto.unsafe_unmarshaler"] != null && Object.hasOwnProperty.call(message, ".gogoproto.unsafe_unmarshaler")) - writer.uint32(/* id 64024, wireType 0 =*/512192).bool(message[".gogoproto.unsafe_unmarshaler"]); - if (message[".gogoproto.goproto_extensions_map"] != null && Object.hasOwnProperty.call(message, ".gogoproto.goproto_extensions_map")) - writer.uint32(/* id 64025, wireType 0 =*/512200).bool(message[".gogoproto.goproto_extensions_map"]); - if (message[".gogoproto.goproto_unrecognized"] != null && Object.hasOwnProperty.call(message, ".gogoproto.goproto_unrecognized")) - writer.uint32(/* id 64026, wireType 0 =*/512208).bool(message[".gogoproto.goproto_unrecognized"]); - if (message[".gogoproto.protosizer"] != null && Object.hasOwnProperty.call(message, ".gogoproto.protosizer")) - writer.uint32(/* id 64028, wireType 0 =*/512224).bool(message[".gogoproto.protosizer"]); - if (message[".gogoproto.compare"] != null && Object.hasOwnProperty.call(message, ".gogoproto.compare")) - writer.uint32(/* id 64029, wireType 0 =*/512232).bool(message[".gogoproto.compare"]); - if (message[".gogoproto.typedecl"] != null && Object.hasOwnProperty.call(message, ".gogoproto.typedecl")) - writer.uint32(/* id 64030, wireType 0 =*/512240).bool(message[".gogoproto.typedecl"]); - if (message[".gogoproto.messagename"] != null && Object.hasOwnProperty.call(message, ".gogoproto.messagename")) - writer.uint32(/* id 64033, wireType 0 =*/512264).bool(message[".gogoproto.messagename"]); - if (message[".gogoproto.goproto_sizecache"] != null && Object.hasOwnProperty.call(message, ".gogoproto.goproto_sizecache")) - writer.uint32(/* id 64034, wireType 0 =*/512272).bool(message[".gogoproto.goproto_sizecache"]); - if (message[".gogoproto.goproto_unkeyed"] != null && Object.hasOwnProperty.call(message, ".gogoproto.goproto_unkeyed")) - writer.uint32(/* id 64035, wireType 0 =*/512280).bool(message[".gogoproto.goproto_unkeyed"]); - if (message[".gogoproto.stringer"] != null && Object.hasOwnProperty.call(message, ".gogoproto.stringer")) - writer.uint32(/* id 67008, wireType 0 =*/536064).bool(message[".gogoproto.stringer"]); - if (message[".cosmos_proto.interface_type"] != null && Object.hasOwnProperty.call(message, ".cosmos_proto.interface_type")) - writer.uint32(/* id 93001, wireType 2 =*/744010).string(message[".cosmos_proto.interface_type"]); - if (message[".cosmos_proto.implements_interface"] != null && Object.hasOwnProperty.call(message, ".cosmos_proto.implements_interface")) - writer.uint32(/* id 93002, wireType 2 =*/744018).string(message[".cosmos_proto.implements_interface"]); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.value != null && message.value.length) + for (var i = 0; i < message.value.length; ++i) + $root.google.protobuf.EnumValueDescriptorProto.encode(message.value[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + $root.google.protobuf.EnumOptions.encode(message.options, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified MessageOptions message, length delimited. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages. + * Encodes the specified EnumDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages. * @function encodeDelimited - * @memberof google.protobuf.MessageOptions + * @memberof google.protobuf.EnumDescriptorProto * @static - * @param {google.protobuf.IMessageOptions} message MessageOptions message or plain object to encode + * @param {google.protobuf.IEnumDescriptorProto} message EnumDescriptorProto message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MessageOptions.encodeDelimited = function encodeDelimited(message, writer) { + EnumDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MessageOptions message from the specified reader or buffer. + * Decodes an EnumDescriptorProto message from the specified reader or buffer. * @function decode - * @memberof google.protobuf.MessageOptions + * @memberof google.protobuf.EnumDescriptorProto * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.MessageOptions} MessageOptions + * @returns {google.protobuf.EnumDescriptorProto} EnumDescriptorProto * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MessageOptions.decode = function decode(reader, length) { + EnumDescriptorProto.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.MessageOptions(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.EnumDescriptorProto(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.message_set_wire_format = reader.bool(); + message.name = reader.string(); break; case 2: - message.no_standard_descriptor_accessor = reader.bool(); + if (!(message.value && message.value.length)) + message.value = []; + message.value.push($root.google.protobuf.EnumValueDescriptorProto.decode(reader, reader.uint32())); break; case 3: - message.deprecated = reader.bool(); - break; - case 7: - message.map_entry = reader.bool(); - break; - case 999: - if (!(message.uninterpreted_option && message.uninterpreted_option.length)) - message.uninterpreted_option = []; - message.uninterpreted_option.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); - break; - case 64001: - message[".gogoproto.goproto_getters"] = reader.bool(); - break; - case 64003: - message[".gogoproto.goproto_stringer"] = reader.bool(); - break; - case 64004: - message[".gogoproto.verbose_equal"] = reader.bool(); - break; - case 64005: - message[".gogoproto.face"] = reader.bool(); - break; - case 64006: - message[".gogoproto.gostring"] = reader.bool(); - break; - case 64007: - message[".gogoproto.populate"] = reader.bool(); - break; - case 67008: - message[".gogoproto.stringer"] = reader.bool(); - break; - case 64009: - message[".gogoproto.onlyone"] = reader.bool(); - break; - case 64013: - message[".gogoproto.equal"] = reader.bool(); - break; - case 64014: - message[".gogoproto.description"] = reader.bool(); - break; - case 64015: - message[".gogoproto.testgen"] = reader.bool(); - break; - case 64016: - message[".gogoproto.benchgen"] = reader.bool(); - break; - case 64017: - message[".gogoproto.marshaler"] = reader.bool(); - break; - case 64018: - message[".gogoproto.unmarshaler"] = reader.bool(); - break; - case 64019: - message[".gogoproto.stable_marshaler"] = reader.bool(); - break; - case 64020: - message[".gogoproto.sizer"] = reader.bool(); - break; - case 64023: - message[".gogoproto.unsafe_marshaler"] = reader.bool(); - break; - case 64024: - message[".gogoproto.unsafe_unmarshaler"] = reader.bool(); - break; - case 64025: - message[".gogoproto.goproto_extensions_map"] = reader.bool(); - break; - case 64026: - message[".gogoproto.goproto_unrecognized"] = reader.bool(); - break; - case 64028: - message[".gogoproto.protosizer"] = reader.bool(); - break; - case 64029: - message[".gogoproto.compare"] = reader.bool(); - break; - case 64030: - message[".gogoproto.typedecl"] = reader.bool(); - break; - case 64033: - message[".gogoproto.messagename"] = reader.bool(); - break; - case 64034: - message[".gogoproto.goproto_sizecache"] = reader.bool(); - break; - case 64035: - message[".gogoproto.goproto_unkeyed"] = reader.bool(); - break; - case 93001: - message[".cosmos_proto.interface_type"] = reader.string(); - break; - case 93002: - message[".cosmos_proto.implements_interface"] = reader.string(); + message.options = $root.google.protobuf.EnumOptions.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -12793,403 +18456,149 @@ }; /** - * Decodes a MessageOptions message from the specified reader or buffer, length delimited. + * Decodes an EnumDescriptorProto message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.protobuf.MessageOptions + * @memberof google.protobuf.EnumDescriptorProto * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.MessageOptions} MessageOptions + * @returns {google.protobuf.EnumDescriptorProto} EnumDescriptorProto * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MessageOptions.decodeDelimited = function decodeDelimited(reader) { + EnumDescriptorProto.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MessageOptions message. + * Verifies an EnumDescriptorProto message. * @function verify - * @memberof google.protobuf.MessageOptions + * @memberof google.protobuf.EnumDescriptorProto * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MessageOptions.verify = function verify(message) { + EnumDescriptorProto.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.message_set_wire_format != null && message.hasOwnProperty("message_set_wire_format")) - if (typeof message.message_set_wire_format !== "boolean") - return "message_set_wire_format: boolean expected"; - if (message.no_standard_descriptor_accessor != null && message.hasOwnProperty("no_standard_descriptor_accessor")) - if (typeof message.no_standard_descriptor_accessor !== "boolean") - return "no_standard_descriptor_accessor: boolean expected"; - if (message.deprecated != null && message.hasOwnProperty("deprecated")) - if (typeof message.deprecated !== "boolean") - return "deprecated: boolean expected"; - if (message.map_entry != null && message.hasOwnProperty("map_entry")) - if (typeof message.map_entry !== "boolean") - return "map_entry: boolean expected"; - if (message.uninterpreted_option != null && message.hasOwnProperty("uninterpreted_option")) { - if (!Array.isArray(message.uninterpreted_option)) - return "uninterpreted_option: array expected"; - for (var i = 0; i < message.uninterpreted_option.length; ++i) { - var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpreted_option[i]); + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.value != null && message.hasOwnProperty("value")) { + if (!Array.isArray(message.value)) + return "value: array expected"; + for (var i = 0; i < message.value.length; ++i) { + var error = $root.google.protobuf.EnumValueDescriptorProto.verify(message.value[i]); if (error) - return "uninterpreted_option." + error; + return "value." + error; } } - if (message[".gogoproto.goproto_getters"] != null && message.hasOwnProperty(".gogoproto.goproto_getters")) - if (typeof message[".gogoproto.goproto_getters"] !== "boolean") - return ".gogoproto.goproto_getters: boolean expected"; - if (message[".gogoproto.goproto_stringer"] != null && message.hasOwnProperty(".gogoproto.goproto_stringer")) - if (typeof message[".gogoproto.goproto_stringer"] !== "boolean") - return ".gogoproto.goproto_stringer: boolean expected"; - if (message[".gogoproto.verbose_equal"] != null && message.hasOwnProperty(".gogoproto.verbose_equal")) - if (typeof message[".gogoproto.verbose_equal"] !== "boolean") - return ".gogoproto.verbose_equal: boolean expected"; - if (message[".gogoproto.face"] != null && message.hasOwnProperty(".gogoproto.face")) - if (typeof message[".gogoproto.face"] !== "boolean") - return ".gogoproto.face: boolean expected"; - if (message[".gogoproto.gostring"] != null && message.hasOwnProperty(".gogoproto.gostring")) - if (typeof message[".gogoproto.gostring"] !== "boolean") - return ".gogoproto.gostring: boolean expected"; - if (message[".gogoproto.populate"] != null && message.hasOwnProperty(".gogoproto.populate")) - if (typeof message[".gogoproto.populate"] !== "boolean") - return ".gogoproto.populate: boolean expected"; - if (message[".gogoproto.stringer"] != null && message.hasOwnProperty(".gogoproto.stringer")) - if (typeof message[".gogoproto.stringer"] !== "boolean") - return ".gogoproto.stringer: boolean expected"; - if (message[".gogoproto.onlyone"] != null && message.hasOwnProperty(".gogoproto.onlyone")) - if (typeof message[".gogoproto.onlyone"] !== "boolean") - return ".gogoproto.onlyone: boolean expected"; - if (message[".gogoproto.equal"] != null && message.hasOwnProperty(".gogoproto.equal")) - if (typeof message[".gogoproto.equal"] !== "boolean") - return ".gogoproto.equal: boolean expected"; - if (message[".gogoproto.description"] != null && message.hasOwnProperty(".gogoproto.description")) - if (typeof message[".gogoproto.description"] !== "boolean") - return ".gogoproto.description: boolean expected"; - if (message[".gogoproto.testgen"] != null && message.hasOwnProperty(".gogoproto.testgen")) - if (typeof message[".gogoproto.testgen"] !== "boolean") - return ".gogoproto.testgen: boolean expected"; - if (message[".gogoproto.benchgen"] != null && message.hasOwnProperty(".gogoproto.benchgen")) - if (typeof message[".gogoproto.benchgen"] !== "boolean") - return ".gogoproto.benchgen: boolean expected"; - if (message[".gogoproto.marshaler"] != null && message.hasOwnProperty(".gogoproto.marshaler")) - if (typeof message[".gogoproto.marshaler"] !== "boolean") - return ".gogoproto.marshaler: boolean expected"; - if (message[".gogoproto.unmarshaler"] != null && message.hasOwnProperty(".gogoproto.unmarshaler")) - if (typeof message[".gogoproto.unmarshaler"] !== "boolean") - return ".gogoproto.unmarshaler: boolean expected"; - if (message[".gogoproto.stable_marshaler"] != null && message.hasOwnProperty(".gogoproto.stable_marshaler")) - if (typeof message[".gogoproto.stable_marshaler"] !== "boolean") - return ".gogoproto.stable_marshaler: boolean expected"; - if (message[".gogoproto.sizer"] != null && message.hasOwnProperty(".gogoproto.sizer")) - if (typeof message[".gogoproto.sizer"] !== "boolean") - return ".gogoproto.sizer: boolean expected"; - if (message[".gogoproto.unsafe_marshaler"] != null && message.hasOwnProperty(".gogoproto.unsafe_marshaler")) - if (typeof message[".gogoproto.unsafe_marshaler"] !== "boolean") - return ".gogoproto.unsafe_marshaler: boolean expected"; - if (message[".gogoproto.unsafe_unmarshaler"] != null && message.hasOwnProperty(".gogoproto.unsafe_unmarshaler")) - if (typeof message[".gogoproto.unsafe_unmarshaler"] !== "boolean") - return ".gogoproto.unsafe_unmarshaler: boolean expected"; - if (message[".gogoproto.goproto_extensions_map"] != null && message.hasOwnProperty(".gogoproto.goproto_extensions_map")) - if (typeof message[".gogoproto.goproto_extensions_map"] !== "boolean") - return ".gogoproto.goproto_extensions_map: boolean expected"; - if (message[".gogoproto.goproto_unrecognized"] != null && message.hasOwnProperty(".gogoproto.goproto_unrecognized")) - if (typeof message[".gogoproto.goproto_unrecognized"] !== "boolean") - return ".gogoproto.goproto_unrecognized: boolean expected"; - if (message[".gogoproto.protosizer"] != null && message.hasOwnProperty(".gogoproto.protosizer")) - if (typeof message[".gogoproto.protosizer"] !== "boolean") - return ".gogoproto.protosizer: boolean expected"; - if (message[".gogoproto.compare"] != null && message.hasOwnProperty(".gogoproto.compare")) - if (typeof message[".gogoproto.compare"] !== "boolean") - return ".gogoproto.compare: boolean expected"; - if (message[".gogoproto.typedecl"] != null && message.hasOwnProperty(".gogoproto.typedecl")) - if (typeof message[".gogoproto.typedecl"] !== "boolean") - return ".gogoproto.typedecl: boolean expected"; - if (message[".gogoproto.messagename"] != null && message.hasOwnProperty(".gogoproto.messagename")) - if (typeof message[".gogoproto.messagename"] !== "boolean") - return ".gogoproto.messagename: boolean expected"; - if (message[".gogoproto.goproto_sizecache"] != null && message.hasOwnProperty(".gogoproto.goproto_sizecache")) - if (typeof message[".gogoproto.goproto_sizecache"] !== "boolean") - return ".gogoproto.goproto_sizecache: boolean expected"; - if (message[".gogoproto.goproto_unkeyed"] != null && message.hasOwnProperty(".gogoproto.goproto_unkeyed")) - if (typeof message[".gogoproto.goproto_unkeyed"] !== "boolean") - return ".gogoproto.goproto_unkeyed: boolean expected"; - if (message[".cosmos_proto.interface_type"] != null && message.hasOwnProperty(".cosmos_proto.interface_type")) - if (!$util.isString(message[".cosmos_proto.interface_type"])) - return ".cosmos_proto.interface_type: string expected"; - if (message[".cosmos_proto.implements_interface"] != null && message.hasOwnProperty(".cosmos_proto.implements_interface")) - if (!$util.isString(message[".cosmos_proto.implements_interface"])) - return ".cosmos_proto.implements_interface: string expected"; + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.google.protobuf.EnumOptions.verify(message.options); + if (error) + return "options." + error; + } return null; }; /** - * Creates a MessageOptions message from a plain object. Also converts values to their respective internal types. + * Creates an EnumDescriptorProto message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.protobuf.MessageOptions + * @memberof google.protobuf.EnumDescriptorProto * @static * @param {Object.} object Plain object - * @returns {google.protobuf.MessageOptions} MessageOptions + * @returns {google.protobuf.EnumDescriptorProto} EnumDescriptorProto */ - MessageOptions.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.MessageOptions) + EnumDescriptorProto.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.EnumDescriptorProto) return object; - var message = new $root.google.protobuf.MessageOptions(); - if (object.message_set_wire_format != null) - message.message_set_wire_format = Boolean(object.message_set_wire_format); - if (object.no_standard_descriptor_accessor != null) - message.no_standard_descriptor_accessor = Boolean(object.no_standard_descriptor_accessor); - if (object.deprecated != null) - message.deprecated = Boolean(object.deprecated); - if (object.map_entry != null) - message.map_entry = Boolean(object.map_entry); - if (object.uninterpreted_option) { - if (!Array.isArray(object.uninterpreted_option)) - throw TypeError(".google.protobuf.MessageOptions.uninterpreted_option: array expected"); - message.uninterpreted_option = []; - for (var i = 0; i < object.uninterpreted_option.length; ++i) { - if (typeof object.uninterpreted_option[i] !== "object") - throw TypeError(".google.protobuf.MessageOptions.uninterpreted_option: object expected"); - message.uninterpreted_option[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpreted_option[i]); + var message = new $root.google.protobuf.EnumDescriptorProto(); + if (object.name != null) + message.name = String(object.name); + if (object.value) { + if (!Array.isArray(object.value)) + throw TypeError(".google.protobuf.EnumDescriptorProto.value: array expected"); + message.value = []; + for (var i = 0; i < object.value.length; ++i) { + if (typeof object.value[i] !== "object") + throw TypeError(".google.protobuf.EnumDescriptorProto.value: object expected"); + message.value[i] = $root.google.protobuf.EnumValueDescriptorProto.fromObject(object.value[i]); } } - if (object[".gogoproto.goproto_getters"] != null) - message[".gogoproto.goproto_getters"] = Boolean(object[".gogoproto.goproto_getters"]); - if (object[".gogoproto.goproto_stringer"] != null) - message[".gogoproto.goproto_stringer"] = Boolean(object[".gogoproto.goproto_stringer"]); - if (object[".gogoproto.verbose_equal"] != null) - message[".gogoproto.verbose_equal"] = Boolean(object[".gogoproto.verbose_equal"]); - if (object[".gogoproto.face"] != null) - message[".gogoproto.face"] = Boolean(object[".gogoproto.face"]); - if (object[".gogoproto.gostring"] != null) - message[".gogoproto.gostring"] = Boolean(object[".gogoproto.gostring"]); - if (object[".gogoproto.populate"] != null) - message[".gogoproto.populate"] = Boolean(object[".gogoproto.populate"]); - if (object[".gogoproto.stringer"] != null) - message[".gogoproto.stringer"] = Boolean(object[".gogoproto.stringer"]); - if (object[".gogoproto.onlyone"] != null) - message[".gogoproto.onlyone"] = Boolean(object[".gogoproto.onlyone"]); - if (object[".gogoproto.equal"] != null) - message[".gogoproto.equal"] = Boolean(object[".gogoproto.equal"]); - if (object[".gogoproto.description"] != null) - message[".gogoproto.description"] = Boolean(object[".gogoproto.description"]); - if (object[".gogoproto.testgen"] != null) - message[".gogoproto.testgen"] = Boolean(object[".gogoproto.testgen"]); - if (object[".gogoproto.benchgen"] != null) - message[".gogoproto.benchgen"] = Boolean(object[".gogoproto.benchgen"]); - if (object[".gogoproto.marshaler"] != null) - message[".gogoproto.marshaler"] = Boolean(object[".gogoproto.marshaler"]); - if (object[".gogoproto.unmarshaler"] != null) - message[".gogoproto.unmarshaler"] = Boolean(object[".gogoproto.unmarshaler"]); - if (object[".gogoproto.stable_marshaler"] != null) - message[".gogoproto.stable_marshaler"] = Boolean(object[".gogoproto.stable_marshaler"]); - if (object[".gogoproto.sizer"] != null) - message[".gogoproto.sizer"] = Boolean(object[".gogoproto.sizer"]); - if (object[".gogoproto.unsafe_marshaler"] != null) - message[".gogoproto.unsafe_marshaler"] = Boolean(object[".gogoproto.unsafe_marshaler"]); - if (object[".gogoproto.unsafe_unmarshaler"] != null) - message[".gogoproto.unsafe_unmarshaler"] = Boolean(object[".gogoproto.unsafe_unmarshaler"]); - if (object[".gogoproto.goproto_extensions_map"] != null) - message[".gogoproto.goproto_extensions_map"] = Boolean(object[".gogoproto.goproto_extensions_map"]); - if (object[".gogoproto.goproto_unrecognized"] != null) - message[".gogoproto.goproto_unrecognized"] = Boolean(object[".gogoproto.goproto_unrecognized"]); - if (object[".gogoproto.protosizer"] != null) - message[".gogoproto.protosizer"] = Boolean(object[".gogoproto.protosizer"]); - if (object[".gogoproto.compare"] != null) - message[".gogoproto.compare"] = Boolean(object[".gogoproto.compare"]); - if (object[".gogoproto.typedecl"] != null) - message[".gogoproto.typedecl"] = Boolean(object[".gogoproto.typedecl"]); - if (object[".gogoproto.messagename"] != null) - message[".gogoproto.messagename"] = Boolean(object[".gogoproto.messagename"]); - if (object[".gogoproto.goproto_sizecache"] != null) - message[".gogoproto.goproto_sizecache"] = Boolean(object[".gogoproto.goproto_sizecache"]); - if (object[".gogoproto.goproto_unkeyed"] != null) - message[".gogoproto.goproto_unkeyed"] = Boolean(object[".gogoproto.goproto_unkeyed"]); - if (object[".cosmos_proto.interface_type"] != null) - message[".cosmos_proto.interface_type"] = String(object[".cosmos_proto.interface_type"]); - if (object[".cosmos_proto.implements_interface"] != null) - message[".cosmos_proto.implements_interface"] = String(object[".cosmos_proto.implements_interface"]); + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".google.protobuf.EnumDescriptorProto.options: object expected"); + message.options = $root.google.protobuf.EnumOptions.fromObject(object.options); + } return message; }; /** - * Creates a plain object from a MessageOptions message. Also converts values to other types if specified. + * Creates a plain object from an EnumDescriptorProto message. Also converts values to other types if specified. * @function toObject - * @memberof google.protobuf.MessageOptions + * @memberof google.protobuf.EnumDescriptorProto * @static - * @param {google.protobuf.MessageOptions} message MessageOptions + * @param {google.protobuf.EnumDescriptorProto} message EnumDescriptorProto * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MessageOptions.toObject = function toObject(message, options) { + EnumDescriptorProto.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.uninterpreted_option = []; + object.value = []; if (options.defaults) { - object.message_set_wire_format = false; - object.no_standard_descriptor_accessor = false; - object.deprecated = false; - object.map_entry = false; - object[".gogoproto.goproto_getters"] = false; - object[".gogoproto.goproto_stringer"] = false; - object[".gogoproto.verbose_equal"] = false; - object[".gogoproto.face"] = false; - object[".gogoproto.gostring"] = false; - object[".gogoproto.populate"] = false; - object[".gogoproto.onlyone"] = false; - object[".gogoproto.equal"] = false; - object[".gogoproto.description"] = false; - object[".gogoproto.testgen"] = false; - object[".gogoproto.benchgen"] = false; - object[".gogoproto.marshaler"] = false; - object[".gogoproto.unmarshaler"] = false; - object[".gogoproto.stable_marshaler"] = false; - object[".gogoproto.sizer"] = false; - object[".gogoproto.unsafe_marshaler"] = false; - object[".gogoproto.unsafe_unmarshaler"] = false; - object[".gogoproto.goproto_extensions_map"] = false; - object[".gogoproto.goproto_unrecognized"] = false; - object[".gogoproto.protosizer"] = false; - object[".gogoproto.compare"] = false; - object[".gogoproto.typedecl"] = false; - object[".gogoproto.messagename"] = false; - object[".gogoproto.goproto_sizecache"] = false; - object[".gogoproto.goproto_unkeyed"] = false; - object[".gogoproto.stringer"] = false; - object[".cosmos_proto.interface_type"] = ""; - object[".cosmos_proto.implements_interface"] = ""; + object.name = ""; + object.options = null; } - if (message.message_set_wire_format != null && message.hasOwnProperty("message_set_wire_format")) - object.message_set_wire_format = message.message_set_wire_format; - if (message.no_standard_descriptor_accessor != null && message.hasOwnProperty("no_standard_descriptor_accessor")) - object.no_standard_descriptor_accessor = message.no_standard_descriptor_accessor; - if (message.deprecated != null && message.hasOwnProperty("deprecated")) - object.deprecated = message.deprecated; - if (message.map_entry != null && message.hasOwnProperty("map_entry")) - object.map_entry = message.map_entry; - if (message.uninterpreted_option && message.uninterpreted_option.length) { - object.uninterpreted_option = []; - for (var j = 0; j < message.uninterpreted_option.length; ++j) - object.uninterpreted_option[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpreted_option[j], options); + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.value && message.value.length) { + object.value = []; + for (var j = 0; j < message.value.length; ++j) + object.value[j] = $root.google.protobuf.EnumValueDescriptorProto.toObject(message.value[j], options); } - if (message[".gogoproto.goproto_getters"] != null && message.hasOwnProperty(".gogoproto.goproto_getters")) - object[".gogoproto.goproto_getters"] = message[".gogoproto.goproto_getters"]; - if (message[".gogoproto.goproto_stringer"] != null && message.hasOwnProperty(".gogoproto.goproto_stringer")) - object[".gogoproto.goproto_stringer"] = message[".gogoproto.goproto_stringer"]; - if (message[".gogoproto.verbose_equal"] != null && message.hasOwnProperty(".gogoproto.verbose_equal")) - object[".gogoproto.verbose_equal"] = message[".gogoproto.verbose_equal"]; - if (message[".gogoproto.face"] != null && message.hasOwnProperty(".gogoproto.face")) - object[".gogoproto.face"] = message[".gogoproto.face"]; - if (message[".gogoproto.gostring"] != null && message.hasOwnProperty(".gogoproto.gostring")) - object[".gogoproto.gostring"] = message[".gogoproto.gostring"]; - if (message[".gogoproto.populate"] != null && message.hasOwnProperty(".gogoproto.populate")) - object[".gogoproto.populate"] = message[".gogoproto.populate"]; - if (message[".gogoproto.onlyone"] != null && message.hasOwnProperty(".gogoproto.onlyone")) - object[".gogoproto.onlyone"] = message[".gogoproto.onlyone"]; - if (message[".gogoproto.equal"] != null && message.hasOwnProperty(".gogoproto.equal")) - object[".gogoproto.equal"] = message[".gogoproto.equal"]; - if (message[".gogoproto.description"] != null && message.hasOwnProperty(".gogoproto.description")) - object[".gogoproto.description"] = message[".gogoproto.description"]; - if (message[".gogoproto.testgen"] != null && message.hasOwnProperty(".gogoproto.testgen")) - object[".gogoproto.testgen"] = message[".gogoproto.testgen"]; - if (message[".gogoproto.benchgen"] != null && message.hasOwnProperty(".gogoproto.benchgen")) - object[".gogoproto.benchgen"] = message[".gogoproto.benchgen"]; - if (message[".gogoproto.marshaler"] != null && message.hasOwnProperty(".gogoproto.marshaler")) - object[".gogoproto.marshaler"] = message[".gogoproto.marshaler"]; - if (message[".gogoproto.unmarshaler"] != null && message.hasOwnProperty(".gogoproto.unmarshaler")) - object[".gogoproto.unmarshaler"] = message[".gogoproto.unmarshaler"]; - if (message[".gogoproto.stable_marshaler"] != null && message.hasOwnProperty(".gogoproto.stable_marshaler")) - object[".gogoproto.stable_marshaler"] = message[".gogoproto.stable_marshaler"]; - if (message[".gogoproto.sizer"] != null && message.hasOwnProperty(".gogoproto.sizer")) - object[".gogoproto.sizer"] = message[".gogoproto.sizer"]; - if (message[".gogoproto.unsafe_marshaler"] != null && message.hasOwnProperty(".gogoproto.unsafe_marshaler")) - object[".gogoproto.unsafe_marshaler"] = message[".gogoproto.unsafe_marshaler"]; - if (message[".gogoproto.unsafe_unmarshaler"] != null && message.hasOwnProperty(".gogoproto.unsafe_unmarshaler")) - object[".gogoproto.unsafe_unmarshaler"] = message[".gogoproto.unsafe_unmarshaler"]; - if (message[".gogoproto.goproto_extensions_map"] != null && message.hasOwnProperty(".gogoproto.goproto_extensions_map")) - object[".gogoproto.goproto_extensions_map"] = message[".gogoproto.goproto_extensions_map"]; - if (message[".gogoproto.goproto_unrecognized"] != null && message.hasOwnProperty(".gogoproto.goproto_unrecognized")) - object[".gogoproto.goproto_unrecognized"] = message[".gogoproto.goproto_unrecognized"]; - if (message[".gogoproto.protosizer"] != null && message.hasOwnProperty(".gogoproto.protosizer")) - object[".gogoproto.protosizer"] = message[".gogoproto.protosizer"]; - if (message[".gogoproto.compare"] != null && message.hasOwnProperty(".gogoproto.compare")) - object[".gogoproto.compare"] = message[".gogoproto.compare"]; - if (message[".gogoproto.typedecl"] != null && message.hasOwnProperty(".gogoproto.typedecl")) - object[".gogoproto.typedecl"] = message[".gogoproto.typedecl"]; - if (message[".gogoproto.messagename"] != null && message.hasOwnProperty(".gogoproto.messagename")) - object[".gogoproto.messagename"] = message[".gogoproto.messagename"]; - if (message[".gogoproto.goproto_sizecache"] != null && message.hasOwnProperty(".gogoproto.goproto_sizecache")) - object[".gogoproto.goproto_sizecache"] = message[".gogoproto.goproto_sizecache"]; - if (message[".gogoproto.goproto_unkeyed"] != null && message.hasOwnProperty(".gogoproto.goproto_unkeyed")) - object[".gogoproto.goproto_unkeyed"] = message[".gogoproto.goproto_unkeyed"]; - if (message[".gogoproto.stringer"] != null && message.hasOwnProperty(".gogoproto.stringer")) - object[".gogoproto.stringer"] = message[".gogoproto.stringer"]; - if (message[".cosmos_proto.interface_type"] != null && message.hasOwnProperty(".cosmos_proto.interface_type")) - object[".cosmos_proto.interface_type"] = message[".cosmos_proto.interface_type"]; - if (message[".cosmos_proto.implements_interface"] != null && message.hasOwnProperty(".cosmos_proto.implements_interface")) - object[".cosmos_proto.implements_interface"] = message[".cosmos_proto.implements_interface"]; + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.google.protobuf.EnumOptions.toObject(message.options, options); return object; }; /** - * Converts this MessageOptions to JSON. + * Converts this EnumDescriptorProto to JSON. * @function toJSON - * @memberof google.protobuf.MessageOptions + * @memberof google.protobuf.EnumDescriptorProto * @instance * @returns {Object.} JSON object */ - MessageOptions.prototype.toJSON = function toJSON() { + EnumDescriptorProto.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MessageOptions; + return EnumDescriptorProto; })(); - protobuf.FieldOptions = (function() { + protobuf.EnumValueDescriptorProto = (function() { /** - * Properties of a FieldOptions. + * Properties of an EnumValueDescriptorProto. * @memberof google.protobuf - * @interface IFieldOptions - * @property {google.protobuf.FieldOptions.CType|null} [ctype] FieldOptions ctype - * @property {boolean|null} [packed] FieldOptions packed - * @property {google.protobuf.FieldOptions.JSType|null} [jstype] FieldOptions jstype - * @property {boolean|null} [lazy] FieldOptions lazy - * @property {boolean|null} [deprecated] FieldOptions deprecated - * @property {boolean|null} [weak] FieldOptions weak - * @property {Array.|null} [uninterpreted_option] FieldOptions uninterpreted_option - * @property {boolean|null} [".gogoproto.nullable"] FieldOptions .gogoproto.nullable - * @property {boolean|null} [".gogoproto.embed"] FieldOptions .gogoproto.embed - * @property {string|null} [".gogoproto.customtype"] FieldOptions .gogoproto.customtype - * @property {string|null} [".gogoproto.customname"] FieldOptions .gogoproto.customname - * @property {string|null} [".gogoproto.jsontag"] FieldOptions .gogoproto.jsontag - * @property {string|null} [".gogoproto.moretags"] FieldOptions .gogoproto.moretags - * @property {string|null} [".gogoproto.casttype"] FieldOptions .gogoproto.casttype - * @property {string|null} [".gogoproto.castkey"] FieldOptions .gogoproto.castkey - * @property {string|null} [".gogoproto.castvalue"] FieldOptions .gogoproto.castvalue - * @property {boolean|null} [".gogoproto.stdtime"] FieldOptions .gogoproto.stdtime - * @property {boolean|null} [".gogoproto.stdduration"] FieldOptions .gogoproto.stdduration - * @property {boolean|null} [".gogoproto.wktpointer"] FieldOptions .gogoproto.wktpointer - * @property {string|null} [".gogoproto.castrepeated"] FieldOptions .gogoproto.castrepeated - * @property {string|null} [".cosmos_proto.accepts_interface"] FieldOptions .cosmos_proto.accepts_interface + * @interface IEnumValueDescriptorProto + * @property {string|null} [name] EnumValueDescriptorProto name + * @property {number|null} [number] EnumValueDescriptorProto number + * @property {google.protobuf.IEnumValueOptions|null} [options] EnumValueDescriptorProto options */ /** - * Constructs a new FieldOptions. + * Constructs a new EnumValueDescriptorProto. * @memberof google.protobuf - * @classdesc Represents a FieldOptions. - * @implements IFieldOptions + * @classdesc Represents an EnumValueDescriptorProto. + * @implements IEnumValueDescriptorProto * @constructor - * @param {google.protobuf.IFieldOptions=} [properties] Properties to set + * @param {google.protobuf.IEnumValueDescriptorProto=} [properties] Properties to set */ - function FieldOptions(properties) { - this.uninterpreted_option = []; + function EnumValueDescriptorProto(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -13197,326 +18606,318 @@ } /** - * FieldOptions ctype. - * @member {google.protobuf.FieldOptions.CType} ctype - * @memberof google.protobuf.FieldOptions - * @instance - */ - FieldOptions.prototype.ctype = 0; - - /** - * FieldOptions packed. - * @member {boolean} packed - * @memberof google.protobuf.FieldOptions - * @instance - */ - FieldOptions.prototype.packed = false; - - /** - * FieldOptions jstype. - * @member {google.protobuf.FieldOptions.JSType} jstype - * @memberof google.protobuf.FieldOptions - * @instance - */ - FieldOptions.prototype.jstype = 0; - - /** - * FieldOptions lazy. - * @member {boolean} lazy - * @memberof google.protobuf.FieldOptions + * EnumValueDescriptorProto name. + * @member {string} name + * @memberof google.protobuf.EnumValueDescriptorProto * @instance */ - FieldOptions.prototype.lazy = false; + EnumValueDescriptorProto.prototype.name = ""; /** - * FieldOptions deprecated. - * @member {boolean} deprecated - * @memberof google.protobuf.FieldOptions + * EnumValueDescriptorProto number. + * @member {number} number + * @memberof google.protobuf.EnumValueDescriptorProto * @instance */ - FieldOptions.prototype.deprecated = false; + EnumValueDescriptorProto.prototype.number = 0; /** - * FieldOptions weak. - * @member {boolean} weak - * @memberof google.protobuf.FieldOptions + * EnumValueDescriptorProto options. + * @member {google.protobuf.IEnumValueOptions|null|undefined} options + * @memberof google.protobuf.EnumValueDescriptorProto * @instance */ - FieldOptions.prototype.weak = false; + EnumValueDescriptorProto.prototype.options = null; /** - * FieldOptions uninterpreted_option. - * @member {Array.} uninterpreted_option - * @memberof google.protobuf.FieldOptions - * @instance + * Encodes the specified EnumValueDescriptorProto message. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages. + * @function encode + * @memberof google.protobuf.EnumValueDescriptorProto + * @static + * @param {google.protobuf.IEnumValueDescriptorProto} message EnumValueDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - FieldOptions.prototype.uninterpreted_option = $util.emptyArray; + EnumValueDescriptorProto.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.number != null && Object.hasOwnProperty.call(message, "number")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.number); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + $root.google.protobuf.EnumValueOptions.encode(message.options, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; /** - * FieldOptions .gogoproto.nullable. - * @member {boolean} .gogoproto.nullable - * @memberof google.protobuf.FieldOptions - * @instance + * Encodes the specified EnumValueDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.EnumValueDescriptorProto + * @static + * @param {google.protobuf.IEnumValueDescriptorProto} message EnumValueDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - FieldOptions.prototype[".gogoproto.nullable"] = false; + EnumValueDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * FieldOptions .gogoproto.embed. - * @member {boolean} .gogoproto.embed - * @memberof google.protobuf.FieldOptions - * @instance + * Decodes an EnumValueDescriptorProto message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.EnumValueDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.EnumValueDescriptorProto} EnumValueDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FieldOptions.prototype[".gogoproto.embed"] = false; + EnumValueDescriptorProto.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.EnumValueDescriptorProto(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.number = reader.int32(); + break; + case 3: + message.options = $root.google.protobuf.EnumValueOptions.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * FieldOptions .gogoproto.customtype. - * @member {string} .gogoproto.customtype - * @memberof google.protobuf.FieldOptions - * @instance + * Decodes an EnumValueDescriptorProto message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.EnumValueDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.EnumValueDescriptorProto} EnumValueDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FieldOptions.prototype[".gogoproto.customtype"] = ""; + EnumValueDescriptorProto.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * FieldOptions .gogoproto.customname. - * @member {string} .gogoproto.customname - * @memberof google.protobuf.FieldOptions - * @instance + * Verifies an EnumValueDescriptorProto message. + * @function verify + * @memberof google.protobuf.EnumValueDescriptorProto + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FieldOptions.prototype[".gogoproto.customname"] = ""; + EnumValueDescriptorProto.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.number != null && message.hasOwnProperty("number")) + if (!$util.isInteger(message.number)) + return "number: integer expected"; + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.google.protobuf.EnumValueOptions.verify(message.options); + if (error) + return "options." + error; + } + return null; + }; /** - * FieldOptions .gogoproto.jsontag. - * @member {string} .gogoproto.jsontag - * @memberof google.protobuf.FieldOptions - * @instance + * Creates an EnumValueDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.EnumValueDescriptorProto + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.EnumValueDescriptorProto} EnumValueDescriptorProto */ - FieldOptions.prototype[".gogoproto.jsontag"] = ""; + EnumValueDescriptorProto.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.EnumValueDescriptorProto) + return object; + var message = new $root.google.protobuf.EnumValueDescriptorProto(); + if (object.name != null) + message.name = String(object.name); + if (object.number != null) + message.number = object.number | 0; + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".google.protobuf.EnumValueDescriptorProto.options: object expected"); + message.options = $root.google.protobuf.EnumValueOptions.fromObject(object.options); + } + return message; + }; /** - * FieldOptions .gogoproto.moretags. - * @member {string} .gogoproto.moretags - * @memberof google.protobuf.FieldOptions - * @instance + * Creates a plain object from an EnumValueDescriptorProto message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.EnumValueDescriptorProto + * @static + * @param {google.protobuf.EnumValueDescriptorProto} message EnumValueDescriptorProto + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - FieldOptions.prototype[".gogoproto.moretags"] = ""; + EnumValueDescriptorProto.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.number = 0; + object.options = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.number != null && message.hasOwnProperty("number")) + object.number = message.number; + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.google.protobuf.EnumValueOptions.toObject(message.options, options); + return object; + }; /** - * FieldOptions .gogoproto.casttype. - * @member {string} .gogoproto.casttype - * @memberof google.protobuf.FieldOptions + * Converts this EnumValueDescriptorProto to JSON. + * @function toJSON + * @memberof google.protobuf.EnumValueDescriptorProto * @instance + * @returns {Object.} JSON object */ - FieldOptions.prototype[".gogoproto.casttype"] = ""; + EnumValueDescriptorProto.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * FieldOptions .gogoproto.castkey. - * @member {string} .gogoproto.castkey - * @memberof google.protobuf.FieldOptions - * @instance - */ - FieldOptions.prototype[".gogoproto.castkey"] = ""; + return EnumValueDescriptorProto; + })(); - /** - * FieldOptions .gogoproto.castvalue. - * @member {string} .gogoproto.castvalue - * @memberof google.protobuf.FieldOptions - * @instance - */ - FieldOptions.prototype[".gogoproto.castvalue"] = ""; + protobuf.ServiceDescriptorProto = (function() { /** - * FieldOptions .gogoproto.stdtime. - * @member {boolean} .gogoproto.stdtime - * @memberof google.protobuf.FieldOptions - * @instance + * Properties of a ServiceDescriptorProto. + * @memberof google.protobuf + * @interface IServiceDescriptorProto + * @property {string|null} [name] ServiceDescriptorProto name + * @property {Array.|null} [method] ServiceDescriptorProto method + * @property {google.protobuf.IServiceOptions|null} [options] ServiceDescriptorProto options */ - FieldOptions.prototype[".gogoproto.stdtime"] = false; /** - * FieldOptions .gogoproto.stdduration. - * @member {boolean} .gogoproto.stdduration - * @memberof google.protobuf.FieldOptions - * @instance + * Constructs a new ServiceDescriptorProto. + * @memberof google.protobuf + * @classdesc Represents a ServiceDescriptorProto. + * @implements IServiceDescriptorProto + * @constructor + * @param {google.protobuf.IServiceDescriptorProto=} [properties] Properties to set */ - FieldOptions.prototype[".gogoproto.stdduration"] = false; + function ServiceDescriptorProto(properties) { + this.method = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * FieldOptions .gogoproto.wktpointer. - * @member {boolean} .gogoproto.wktpointer - * @memberof google.protobuf.FieldOptions + * ServiceDescriptorProto name. + * @member {string} name + * @memberof google.protobuf.ServiceDescriptorProto * @instance */ - FieldOptions.prototype[".gogoproto.wktpointer"] = false; + ServiceDescriptorProto.prototype.name = ""; /** - * FieldOptions .gogoproto.castrepeated. - * @member {string} .gogoproto.castrepeated - * @memberof google.protobuf.FieldOptions + * ServiceDescriptorProto method. + * @member {Array.} method + * @memberof google.protobuf.ServiceDescriptorProto * @instance */ - FieldOptions.prototype[".gogoproto.castrepeated"] = ""; + ServiceDescriptorProto.prototype.method = $util.emptyArray; /** - * FieldOptions .cosmos_proto.accepts_interface. - * @member {string} .cosmos_proto.accepts_interface - * @memberof google.protobuf.FieldOptions + * ServiceDescriptorProto options. + * @member {google.protobuf.IServiceOptions|null|undefined} options + * @memberof google.protobuf.ServiceDescriptorProto * @instance */ - FieldOptions.prototype[".cosmos_proto.accepts_interface"] = ""; + ServiceDescriptorProto.prototype.options = null; /** - * Encodes the specified FieldOptions message. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages. + * Encodes the specified ServiceDescriptorProto message. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages. * @function encode - * @memberof google.protobuf.FieldOptions + * @memberof google.protobuf.ServiceDescriptorProto * @static - * @param {google.protobuf.IFieldOptions} message FieldOptions message or plain object to encode + * @param {google.protobuf.IServiceDescriptorProto} message ServiceDescriptorProto message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FieldOptions.encode = function encode(message, writer) { + ServiceDescriptorProto.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.ctype != null && Object.hasOwnProperty.call(message, "ctype")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.ctype); - if (message.packed != null && Object.hasOwnProperty.call(message, "packed")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.packed); - if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.deprecated); - if (message.lazy != null && Object.hasOwnProperty.call(message, "lazy")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.lazy); - if (message.jstype != null && Object.hasOwnProperty.call(message, "jstype")) - writer.uint32(/* id 6, wireType 0 =*/48).int32(message.jstype); - if (message.weak != null && Object.hasOwnProperty.call(message, "weak")) - writer.uint32(/* id 10, wireType 0 =*/80).bool(message.weak); - if (message.uninterpreted_option != null && message.uninterpreted_option.length) - for (var i = 0; i < message.uninterpreted_option.length; ++i) - $root.google.protobuf.UninterpretedOption.encode(message.uninterpreted_option[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); - if (message[".gogoproto.nullable"] != null && Object.hasOwnProperty.call(message, ".gogoproto.nullable")) - writer.uint32(/* id 65001, wireType 0 =*/520008).bool(message[".gogoproto.nullable"]); - if (message[".gogoproto.embed"] != null && Object.hasOwnProperty.call(message, ".gogoproto.embed")) - writer.uint32(/* id 65002, wireType 0 =*/520016).bool(message[".gogoproto.embed"]); - if (message[".gogoproto.customtype"] != null && Object.hasOwnProperty.call(message, ".gogoproto.customtype")) - writer.uint32(/* id 65003, wireType 2 =*/520026).string(message[".gogoproto.customtype"]); - if (message[".gogoproto.customname"] != null && Object.hasOwnProperty.call(message, ".gogoproto.customname")) - writer.uint32(/* id 65004, wireType 2 =*/520034).string(message[".gogoproto.customname"]); - if (message[".gogoproto.jsontag"] != null && Object.hasOwnProperty.call(message, ".gogoproto.jsontag")) - writer.uint32(/* id 65005, wireType 2 =*/520042).string(message[".gogoproto.jsontag"]); - if (message[".gogoproto.moretags"] != null && Object.hasOwnProperty.call(message, ".gogoproto.moretags")) - writer.uint32(/* id 65006, wireType 2 =*/520050).string(message[".gogoproto.moretags"]); - if (message[".gogoproto.casttype"] != null && Object.hasOwnProperty.call(message, ".gogoproto.casttype")) - writer.uint32(/* id 65007, wireType 2 =*/520058).string(message[".gogoproto.casttype"]); - if (message[".gogoproto.castkey"] != null && Object.hasOwnProperty.call(message, ".gogoproto.castkey")) - writer.uint32(/* id 65008, wireType 2 =*/520066).string(message[".gogoproto.castkey"]); - if (message[".gogoproto.castvalue"] != null && Object.hasOwnProperty.call(message, ".gogoproto.castvalue")) - writer.uint32(/* id 65009, wireType 2 =*/520074).string(message[".gogoproto.castvalue"]); - if (message[".gogoproto.stdtime"] != null && Object.hasOwnProperty.call(message, ".gogoproto.stdtime")) - writer.uint32(/* id 65010, wireType 0 =*/520080).bool(message[".gogoproto.stdtime"]); - if (message[".gogoproto.stdduration"] != null && Object.hasOwnProperty.call(message, ".gogoproto.stdduration")) - writer.uint32(/* id 65011, wireType 0 =*/520088).bool(message[".gogoproto.stdduration"]); - if (message[".gogoproto.wktpointer"] != null && Object.hasOwnProperty.call(message, ".gogoproto.wktpointer")) - writer.uint32(/* id 65012, wireType 0 =*/520096).bool(message[".gogoproto.wktpointer"]); - if (message[".gogoproto.castrepeated"] != null && Object.hasOwnProperty.call(message, ".gogoproto.castrepeated")) - writer.uint32(/* id 65013, wireType 2 =*/520106).string(message[".gogoproto.castrepeated"]); - if (message[".cosmos_proto.accepts_interface"] != null && Object.hasOwnProperty.call(message, ".cosmos_proto.accepts_interface")) - writer.uint32(/* id 93001, wireType 2 =*/744010).string(message[".cosmos_proto.accepts_interface"]); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.method != null && message.method.length) + for (var i = 0; i < message.method.length; ++i) + $root.google.protobuf.MethodDescriptorProto.encode(message.method[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + $root.google.protobuf.ServiceOptions.encode(message.options, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified FieldOptions message, length delimited. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages. + * Encodes the specified ServiceDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages. * @function encodeDelimited - * @memberof google.protobuf.FieldOptions + * @memberof google.protobuf.ServiceDescriptorProto * @static - * @param {google.protobuf.IFieldOptions} message FieldOptions message or plain object to encode + * @param {google.protobuf.IServiceDescriptorProto} message ServiceDescriptorProto message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FieldOptions.encodeDelimited = function encodeDelimited(message, writer) { + ServiceDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a FieldOptions message from the specified reader or buffer. + * Decodes a ServiceDescriptorProto message from the specified reader or buffer. * @function decode - * @memberof google.protobuf.FieldOptions + * @memberof google.protobuf.ServiceDescriptorProto * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.FieldOptions} FieldOptions + * @returns {google.protobuf.ServiceDescriptorProto} ServiceDescriptorProto * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FieldOptions.decode = function decode(reader, length) { + ServiceDescriptorProto.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FieldOptions(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.ServiceDescriptorProto(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.ctype = reader.int32(); + message.name = reader.string(); break; case 2: - message.packed = reader.bool(); - break; - case 6: - message.jstype = reader.int32(); - break; - case 5: - message.lazy = reader.bool(); + if (!(message.method && message.method.length)) + message.method = []; + message.method.push($root.google.protobuf.MethodDescriptorProto.decode(reader, reader.uint32())); break; case 3: - message.deprecated = reader.bool(); - break; - case 10: - message.weak = reader.bool(); - break; - case 999: - if (!(message.uninterpreted_option && message.uninterpreted_option.length)) - message.uninterpreted_option = []; - message.uninterpreted_option.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); - break; - case 65001: - message[".gogoproto.nullable"] = reader.bool(); - break; - case 65002: - message[".gogoproto.embed"] = reader.bool(); - break; - case 65003: - message[".gogoproto.customtype"] = reader.string(); - break; - case 65004: - message[".gogoproto.customname"] = reader.string(); - break; - case 65005: - message[".gogoproto.jsontag"] = reader.string(); - break; - case 65006: - message[".gogoproto.moretags"] = reader.string(); - break; - case 65007: - message[".gogoproto.casttype"] = reader.string(); - break; - case 65008: - message[".gogoproto.castkey"] = reader.string(); - break; - case 65009: - message[".gogoproto.castvalue"] = reader.string(); - break; - case 65010: - message[".gogoproto.stdtime"] = reader.bool(); - break; - case 65011: - message[".gogoproto.stdduration"] = reader.bool(); - break; - case 65012: - message[".gogoproto.wktpointer"] = reader.bool(); - break; - case 65013: - message[".gogoproto.castrepeated"] = reader.string(); - break; - case 93001: - message[".cosmos_proto.accepts_interface"] = reader.string(); + message.options = $root.google.protobuf.ServiceOptions.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -13527,422 +18928,281 @@ }; /** - * Decodes a FieldOptions message from the specified reader or buffer, length delimited. + * Decodes a ServiceDescriptorProto message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.protobuf.FieldOptions + * @memberof google.protobuf.ServiceDescriptorProto * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.FieldOptions} FieldOptions + * @returns {google.protobuf.ServiceDescriptorProto} ServiceDescriptorProto * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FieldOptions.decodeDelimited = function decodeDelimited(reader) { + ServiceDescriptorProto.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a FieldOptions message. + * Verifies a ServiceDescriptorProto message. * @function verify - * @memberof google.protobuf.FieldOptions + * @memberof google.protobuf.ServiceDescriptorProto * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FieldOptions.verify = function verify(message) { + ServiceDescriptorProto.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.ctype != null && message.hasOwnProperty("ctype")) - switch (message.ctype) { - default: - return "ctype: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.packed != null && message.hasOwnProperty("packed")) - if (typeof message.packed !== "boolean") - return "packed: boolean expected"; - if (message.jstype != null && message.hasOwnProperty("jstype")) - switch (message.jstype) { - default: - return "jstype: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.lazy != null && message.hasOwnProperty("lazy")) - if (typeof message.lazy !== "boolean") - return "lazy: boolean expected"; - if (message.deprecated != null && message.hasOwnProperty("deprecated")) - if (typeof message.deprecated !== "boolean") - return "deprecated: boolean expected"; - if (message.weak != null && message.hasOwnProperty("weak")) - if (typeof message.weak !== "boolean") - return "weak: boolean expected"; - if (message.uninterpreted_option != null && message.hasOwnProperty("uninterpreted_option")) { - if (!Array.isArray(message.uninterpreted_option)) - return "uninterpreted_option: array expected"; - for (var i = 0; i < message.uninterpreted_option.length; ++i) { - var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpreted_option[i]); + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.method != null && message.hasOwnProperty("method")) { + if (!Array.isArray(message.method)) + return "method: array expected"; + for (var i = 0; i < message.method.length; ++i) { + var error = $root.google.protobuf.MethodDescriptorProto.verify(message.method[i]); if (error) - return "uninterpreted_option." + error; + return "method." + error; } } - if (message[".gogoproto.nullable"] != null && message.hasOwnProperty(".gogoproto.nullable")) - if (typeof message[".gogoproto.nullable"] !== "boolean") - return ".gogoproto.nullable: boolean expected"; - if (message[".gogoproto.embed"] != null && message.hasOwnProperty(".gogoproto.embed")) - if (typeof message[".gogoproto.embed"] !== "boolean") - return ".gogoproto.embed: boolean expected"; - if (message[".gogoproto.customtype"] != null && message.hasOwnProperty(".gogoproto.customtype")) - if (!$util.isString(message[".gogoproto.customtype"])) - return ".gogoproto.customtype: string expected"; - if (message[".gogoproto.customname"] != null && message.hasOwnProperty(".gogoproto.customname")) - if (!$util.isString(message[".gogoproto.customname"])) - return ".gogoproto.customname: string expected"; - if (message[".gogoproto.jsontag"] != null && message.hasOwnProperty(".gogoproto.jsontag")) - if (!$util.isString(message[".gogoproto.jsontag"])) - return ".gogoproto.jsontag: string expected"; - if (message[".gogoproto.moretags"] != null && message.hasOwnProperty(".gogoproto.moretags")) - if (!$util.isString(message[".gogoproto.moretags"])) - return ".gogoproto.moretags: string expected"; - if (message[".gogoproto.casttype"] != null && message.hasOwnProperty(".gogoproto.casttype")) - if (!$util.isString(message[".gogoproto.casttype"])) - return ".gogoproto.casttype: string expected"; - if (message[".gogoproto.castkey"] != null && message.hasOwnProperty(".gogoproto.castkey")) - if (!$util.isString(message[".gogoproto.castkey"])) - return ".gogoproto.castkey: string expected"; - if (message[".gogoproto.castvalue"] != null && message.hasOwnProperty(".gogoproto.castvalue")) - if (!$util.isString(message[".gogoproto.castvalue"])) - return ".gogoproto.castvalue: string expected"; - if (message[".gogoproto.stdtime"] != null && message.hasOwnProperty(".gogoproto.stdtime")) - if (typeof message[".gogoproto.stdtime"] !== "boolean") - return ".gogoproto.stdtime: boolean expected"; - if (message[".gogoproto.stdduration"] != null && message.hasOwnProperty(".gogoproto.stdduration")) - if (typeof message[".gogoproto.stdduration"] !== "boolean") - return ".gogoproto.stdduration: boolean expected"; - if (message[".gogoproto.wktpointer"] != null && message.hasOwnProperty(".gogoproto.wktpointer")) - if (typeof message[".gogoproto.wktpointer"] !== "boolean") - return ".gogoproto.wktpointer: boolean expected"; - if (message[".gogoproto.castrepeated"] != null && message.hasOwnProperty(".gogoproto.castrepeated")) - if (!$util.isString(message[".gogoproto.castrepeated"])) - return ".gogoproto.castrepeated: string expected"; - if (message[".cosmos_proto.accepts_interface"] != null && message.hasOwnProperty(".cosmos_proto.accepts_interface")) - if (!$util.isString(message[".cosmos_proto.accepts_interface"])) - return ".cosmos_proto.accepts_interface: string expected"; + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.google.protobuf.ServiceOptions.verify(message.options); + if (error) + return "options." + error; + } return null; }; /** - * Creates a FieldOptions message from a plain object. Also converts values to their respective internal types. + * Creates a ServiceDescriptorProto message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.protobuf.FieldOptions + * @memberof google.protobuf.ServiceDescriptorProto * @static * @param {Object.} object Plain object - * @returns {google.protobuf.FieldOptions} FieldOptions + * @returns {google.protobuf.ServiceDescriptorProto} ServiceDescriptorProto */ - FieldOptions.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.FieldOptions) + ServiceDescriptorProto.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.ServiceDescriptorProto) return object; - var message = new $root.google.protobuf.FieldOptions(); - switch (object.ctype) { - case "STRING": - case 0: - message.ctype = 0; - break; - case "CORD": - case 1: - message.ctype = 1; - break; - case "STRING_PIECE": - case 2: - message.ctype = 2; - break; - } - if (object.packed != null) - message.packed = Boolean(object.packed); - switch (object.jstype) { - case "JS_NORMAL": - case 0: - message.jstype = 0; - break; - case "JS_STRING": - case 1: - message.jstype = 1; - break; - case "JS_NUMBER": - case 2: - message.jstype = 2; - break; - } - if (object.lazy != null) - message.lazy = Boolean(object.lazy); - if (object.deprecated != null) - message.deprecated = Boolean(object.deprecated); - if (object.weak != null) - message.weak = Boolean(object.weak); - if (object.uninterpreted_option) { - if (!Array.isArray(object.uninterpreted_option)) - throw TypeError(".google.protobuf.FieldOptions.uninterpreted_option: array expected"); - message.uninterpreted_option = []; - for (var i = 0; i < object.uninterpreted_option.length; ++i) { - if (typeof object.uninterpreted_option[i] !== "object") - throw TypeError(".google.protobuf.FieldOptions.uninterpreted_option: object expected"); - message.uninterpreted_option[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpreted_option[i]); + var message = new $root.google.protobuf.ServiceDescriptorProto(); + if (object.name != null) + message.name = String(object.name); + if (object.method) { + if (!Array.isArray(object.method)) + throw TypeError(".google.protobuf.ServiceDescriptorProto.method: array expected"); + message.method = []; + for (var i = 0; i < object.method.length; ++i) { + if (typeof object.method[i] !== "object") + throw TypeError(".google.protobuf.ServiceDescriptorProto.method: object expected"); + message.method[i] = $root.google.protobuf.MethodDescriptorProto.fromObject(object.method[i]); } } - if (object[".gogoproto.nullable"] != null) - message[".gogoproto.nullable"] = Boolean(object[".gogoproto.nullable"]); - if (object[".gogoproto.embed"] != null) - message[".gogoproto.embed"] = Boolean(object[".gogoproto.embed"]); - if (object[".gogoproto.customtype"] != null) - message[".gogoproto.customtype"] = String(object[".gogoproto.customtype"]); - if (object[".gogoproto.customname"] != null) - message[".gogoproto.customname"] = String(object[".gogoproto.customname"]); - if (object[".gogoproto.jsontag"] != null) - message[".gogoproto.jsontag"] = String(object[".gogoproto.jsontag"]); - if (object[".gogoproto.moretags"] != null) - message[".gogoproto.moretags"] = String(object[".gogoproto.moretags"]); - if (object[".gogoproto.casttype"] != null) - message[".gogoproto.casttype"] = String(object[".gogoproto.casttype"]); - if (object[".gogoproto.castkey"] != null) - message[".gogoproto.castkey"] = String(object[".gogoproto.castkey"]); - if (object[".gogoproto.castvalue"] != null) - message[".gogoproto.castvalue"] = String(object[".gogoproto.castvalue"]); - if (object[".gogoproto.stdtime"] != null) - message[".gogoproto.stdtime"] = Boolean(object[".gogoproto.stdtime"]); - if (object[".gogoproto.stdduration"] != null) - message[".gogoproto.stdduration"] = Boolean(object[".gogoproto.stdduration"]); - if (object[".gogoproto.wktpointer"] != null) - message[".gogoproto.wktpointer"] = Boolean(object[".gogoproto.wktpointer"]); - if (object[".gogoproto.castrepeated"] != null) - message[".gogoproto.castrepeated"] = String(object[".gogoproto.castrepeated"]); - if (object[".cosmos_proto.accepts_interface"] != null) - message[".cosmos_proto.accepts_interface"] = String(object[".cosmos_proto.accepts_interface"]); + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".google.protobuf.ServiceDescriptorProto.options: object expected"); + message.options = $root.google.protobuf.ServiceOptions.fromObject(object.options); + } return message; }; /** - * Creates a plain object from a FieldOptions message. Also converts values to other types if specified. + * Creates a plain object from a ServiceDescriptorProto message. Also converts values to other types if specified. * @function toObject - * @memberof google.protobuf.FieldOptions + * @memberof google.protobuf.ServiceDescriptorProto * @static - * @param {google.protobuf.FieldOptions} message FieldOptions + * @param {google.protobuf.ServiceDescriptorProto} message ServiceDescriptorProto * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FieldOptions.toObject = function toObject(message, options) { + ServiceDescriptorProto.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.uninterpreted_option = []; + object.method = []; if (options.defaults) { - object.ctype = options.enums === String ? "STRING" : 0; - object.packed = false; - object.deprecated = false; - object.lazy = false; - object.jstype = options.enums === String ? "JS_NORMAL" : 0; - object.weak = false; - object[".gogoproto.nullable"] = false; - object[".gogoproto.embed"] = false; - object[".gogoproto.customtype"] = ""; - object[".gogoproto.customname"] = ""; - object[".gogoproto.jsontag"] = ""; - object[".gogoproto.moretags"] = ""; - object[".gogoproto.casttype"] = ""; - object[".gogoproto.castkey"] = ""; - object[".gogoproto.castvalue"] = ""; - object[".gogoproto.stdtime"] = false; - object[".gogoproto.stdduration"] = false; - object[".gogoproto.wktpointer"] = false; - object[".gogoproto.castrepeated"] = ""; - object[".cosmos_proto.accepts_interface"] = ""; + object.name = ""; + object.options = null; } - if (message.ctype != null && message.hasOwnProperty("ctype")) - object.ctype = options.enums === String ? $root.google.protobuf.FieldOptions.CType[message.ctype] : message.ctype; - if (message.packed != null && message.hasOwnProperty("packed")) - object.packed = message.packed; - if (message.deprecated != null && message.hasOwnProperty("deprecated")) - object.deprecated = message.deprecated; - if (message.lazy != null && message.hasOwnProperty("lazy")) - object.lazy = message.lazy; - if (message.jstype != null && message.hasOwnProperty("jstype")) - object.jstype = options.enums === String ? $root.google.protobuf.FieldOptions.JSType[message.jstype] : message.jstype; - if (message.weak != null && message.hasOwnProperty("weak")) - object.weak = message.weak; - if (message.uninterpreted_option && message.uninterpreted_option.length) { - object.uninterpreted_option = []; - for (var j = 0; j < message.uninterpreted_option.length; ++j) - object.uninterpreted_option[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpreted_option[j], options); + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.method && message.method.length) { + object.method = []; + for (var j = 0; j < message.method.length; ++j) + object.method[j] = $root.google.protobuf.MethodDescriptorProto.toObject(message.method[j], options); } - if (message[".gogoproto.nullable"] != null && message.hasOwnProperty(".gogoproto.nullable")) - object[".gogoproto.nullable"] = message[".gogoproto.nullable"]; - if (message[".gogoproto.embed"] != null && message.hasOwnProperty(".gogoproto.embed")) - object[".gogoproto.embed"] = message[".gogoproto.embed"]; - if (message[".gogoproto.customtype"] != null && message.hasOwnProperty(".gogoproto.customtype")) - object[".gogoproto.customtype"] = message[".gogoproto.customtype"]; - if (message[".gogoproto.customname"] != null && message.hasOwnProperty(".gogoproto.customname")) - object[".gogoproto.customname"] = message[".gogoproto.customname"]; - if (message[".gogoproto.jsontag"] != null && message.hasOwnProperty(".gogoproto.jsontag")) - object[".gogoproto.jsontag"] = message[".gogoproto.jsontag"]; - if (message[".gogoproto.moretags"] != null && message.hasOwnProperty(".gogoproto.moretags")) - object[".gogoproto.moretags"] = message[".gogoproto.moretags"]; - if (message[".gogoproto.casttype"] != null && message.hasOwnProperty(".gogoproto.casttype")) - object[".gogoproto.casttype"] = message[".gogoproto.casttype"]; - if (message[".gogoproto.castkey"] != null && message.hasOwnProperty(".gogoproto.castkey")) - object[".gogoproto.castkey"] = message[".gogoproto.castkey"]; - if (message[".gogoproto.castvalue"] != null && message.hasOwnProperty(".gogoproto.castvalue")) - object[".gogoproto.castvalue"] = message[".gogoproto.castvalue"]; - if (message[".gogoproto.stdtime"] != null && message.hasOwnProperty(".gogoproto.stdtime")) - object[".gogoproto.stdtime"] = message[".gogoproto.stdtime"]; - if (message[".gogoproto.stdduration"] != null && message.hasOwnProperty(".gogoproto.stdduration")) - object[".gogoproto.stdduration"] = message[".gogoproto.stdduration"]; - if (message[".gogoproto.wktpointer"] != null && message.hasOwnProperty(".gogoproto.wktpointer")) - object[".gogoproto.wktpointer"] = message[".gogoproto.wktpointer"]; - if (message[".gogoproto.castrepeated"] != null && message.hasOwnProperty(".gogoproto.castrepeated")) - object[".gogoproto.castrepeated"] = message[".gogoproto.castrepeated"]; - if (message[".cosmos_proto.accepts_interface"] != null && message.hasOwnProperty(".cosmos_proto.accepts_interface")) - object[".cosmos_proto.accepts_interface"] = message[".cosmos_proto.accepts_interface"]; + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.google.protobuf.ServiceOptions.toObject(message.options, options); return object; }; /** - * Converts this FieldOptions to JSON. + * Converts this ServiceDescriptorProto to JSON. * @function toJSON - * @memberof google.protobuf.FieldOptions + * @memberof google.protobuf.ServiceDescriptorProto * @instance * @returns {Object.} JSON object */ - FieldOptions.prototype.toJSON = function toJSON() { + ServiceDescriptorProto.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + return ServiceDescriptorProto; + })(); + + protobuf.MethodDescriptorProto = (function() { + /** - * CType enum. - * @name google.protobuf.FieldOptions.CType - * @enum {number} - * @property {number} STRING=0 STRING value - * @property {number} CORD=1 CORD value - * @property {number} STRING_PIECE=2 STRING_PIECE value + * Properties of a MethodDescriptorProto. + * @memberof google.protobuf + * @interface IMethodDescriptorProto + * @property {string|null} [name] MethodDescriptorProto name + * @property {string|null} [input_type] MethodDescriptorProto input_type + * @property {string|null} [output_type] MethodDescriptorProto output_type + * @property {google.protobuf.IMethodOptions|null} [options] MethodDescriptorProto options + * @property {boolean|null} [client_streaming] MethodDescriptorProto client_streaming + * @property {boolean|null} [server_streaming] MethodDescriptorProto server_streaming */ - FieldOptions.CType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "STRING"] = 0; - values[valuesById[1] = "CORD"] = 1; - values[valuesById[2] = "STRING_PIECE"] = 2; - return values; - })(); /** - * JSType enum. - * @name google.protobuf.FieldOptions.JSType - * @enum {number} - * @property {number} JS_NORMAL=0 JS_NORMAL value - * @property {number} JS_STRING=1 JS_STRING value - * @property {number} JS_NUMBER=2 JS_NUMBER value + * Constructs a new MethodDescriptorProto. + * @memberof google.protobuf + * @classdesc Represents a MethodDescriptorProto. + * @implements IMethodDescriptorProto + * @constructor + * @param {google.protobuf.IMethodDescriptorProto=} [properties] Properties to set */ - FieldOptions.JSType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "JS_NORMAL"] = 0; - values[valuesById[1] = "JS_STRING"] = 1; - values[valuesById[2] = "JS_NUMBER"] = 2; - return values; - })(); + function MethodDescriptorProto(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - return FieldOptions; - })(); + /** + * MethodDescriptorProto name. + * @member {string} name + * @memberof google.protobuf.MethodDescriptorProto + * @instance + */ + MethodDescriptorProto.prototype.name = ""; + + /** + * MethodDescriptorProto input_type. + * @member {string} input_type + * @memberof google.protobuf.MethodDescriptorProto + * @instance + */ + MethodDescriptorProto.prototype.input_type = ""; - protobuf.OneofOptions = (function() { + /** + * MethodDescriptorProto output_type. + * @member {string} output_type + * @memberof google.protobuf.MethodDescriptorProto + * @instance + */ + MethodDescriptorProto.prototype.output_type = ""; /** - * Properties of an OneofOptions. - * @memberof google.protobuf - * @interface IOneofOptions - * @property {Array.|null} [uninterpreted_option] OneofOptions uninterpreted_option + * MethodDescriptorProto options. + * @member {google.protobuf.IMethodOptions|null|undefined} options + * @memberof google.protobuf.MethodDescriptorProto + * @instance */ + MethodDescriptorProto.prototype.options = null; /** - * Constructs a new OneofOptions. - * @memberof google.protobuf - * @classdesc Represents an OneofOptions. - * @implements IOneofOptions - * @constructor - * @param {google.protobuf.IOneofOptions=} [properties] Properties to set + * MethodDescriptorProto client_streaming. + * @member {boolean} client_streaming + * @memberof google.protobuf.MethodDescriptorProto + * @instance */ - function OneofOptions(properties) { - this.uninterpreted_option = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + MethodDescriptorProto.prototype.client_streaming = false; /** - * OneofOptions uninterpreted_option. - * @member {Array.} uninterpreted_option - * @memberof google.protobuf.OneofOptions + * MethodDescriptorProto server_streaming. + * @member {boolean} server_streaming + * @memberof google.protobuf.MethodDescriptorProto * @instance */ - OneofOptions.prototype.uninterpreted_option = $util.emptyArray; + MethodDescriptorProto.prototype.server_streaming = false; /** - * Encodes the specified OneofOptions message. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages. + * Encodes the specified MethodDescriptorProto message. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages. * @function encode - * @memberof google.protobuf.OneofOptions + * @memberof google.protobuf.MethodDescriptorProto * @static - * @param {google.protobuf.IOneofOptions} message OneofOptions message or plain object to encode + * @param {google.protobuf.IMethodDescriptorProto} message MethodDescriptorProto message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - OneofOptions.encode = function encode(message, writer) { + MethodDescriptorProto.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.uninterpreted_option != null && message.uninterpreted_option.length) - for (var i = 0; i < message.uninterpreted_option.length; ++i) - $root.google.protobuf.UninterpretedOption.encode(message.uninterpreted_option[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.input_type != null && Object.hasOwnProperty.call(message, "input_type")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.input_type); + if (message.output_type != null && Object.hasOwnProperty.call(message, "output_type")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.output_type); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + $root.google.protobuf.MethodOptions.encode(message.options, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.client_streaming != null && Object.hasOwnProperty.call(message, "client_streaming")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.client_streaming); + if (message.server_streaming != null && Object.hasOwnProperty.call(message, "server_streaming")) + writer.uint32(/* id 6, wireType 0 =*/48).bool(message.server_streaming); return writer; }; /** - * Encodes the specified OneofOptions message, length delimited. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages. + * Encodes the specified MethodDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages. * @function encodeDelimited - * @memberof google.protobuf.OneofOptions + * @memberof google.protobuf.MethodDescriptorProto * @static - * @param {google.protobuf.IOneofOptions} message OneofOptions message or plain object to encode + * @param {google.protobuf.IMethodDescriptorProto} message MethodDescriptorProto message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - OneofOptions.encodeDelimited = function encodeDelimited(message, writer) { + MethodDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an OneofOptions message from the specified reader or buffer. + * Decodes a MethodDescriptorProto message from the specified reader or buffer. * @function decode - * @memberof google.protobuf.OneofOptions + * @memberof google.protobuf.MethodDescriptorProto * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.OneofOptions} OneofOptions + * @returns {google.protobuf.MethodDescriptorProto} MethodDescriptorProto * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - OneofOptions.decode = function decode(reader, length) { + MethodDescriptorProto.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.OneofOptions(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.MethodDescriptorProto(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 999: - if (!(message.uninterpreted_option && message.uninterpreted_option.length)) - message.uninterpreted_option = []; - message.uninterpreted_option.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + case 1: + message.name = reader.string(); + break; + case 2: + message.input_type = reader.string(); + break; + case 3: + message.output_type = reader.string(); + break; + case 4: + message.options = $root.google.protobuf.MethodOptions.decode(reader, reader.uint32()); + break; + case 5: + message.client_streaming = reader.bool(); + break; + case 6: + message.server_streaming = reader.bool(); break; default: reader.skipType(tag & 7); @@ -13953,572 +19213,901 @@ }; /** - * Decodes an OneofOptions message from the specified reader or buffer, length delimited. + * Decodes a MethodDescriptorProto message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.protobuf.OneofOptions + * @memberof google.protobuf.MethodDescriptorProto * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.OneofOptions} OneofOptions + * @returns {google.protobuf.MethodDescriptorProto} MethodDescriptorProto * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - OneofOptions.decodeDelimited = function decodeDelimited(reader) { + MethodDescriptorProto.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an OneofOptions message. + * Verifies a MethodDescriptorProto message. * @function verify - * @memberof google.protobuf.OneofOptions + * @memberof google.protobuf.MethodDescriptorProto * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - OneofOptions.verify = function verify(message) { + MethodDescriptorProto.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.uninterpreted_option != null && message.hasOwnProperty("uninterpreted_option")) { - if (!Array.isArray(message.uninterpreted_option)) - return "uninterpreted_option: array expected"; - for (var i = 0; i < message.uninterpreted_option.length; ++i) { - var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpreted_option[i]); - if (error) - return "uninterpreted_option." + error; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.input_type != null && message.hasOwnProperty("input_type")) + if (!$util.isString(message.input_type)) + return "input_type: string expected"; + if (message.output_type != null && message.hasOwnProperty("output_type")) + if (!$util.isString(message.output_type)) + return "output_type: string expected"; + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.google.protobuf.MethodOptions.verify(message.options); + if (error) + return "options." + error; } + if (message.client_streaming != null && message.hasOwnProperty("client_streaming")) + if (typeof message.client_streaming !== "boolean") + return "client_streaming: boolean expected"; + if (message.server_streaming != null && message.hasOwnProperty("server_streaming")) + if (typeof message.server_streaming !== "boolean") + return "server_streaming: boolean expected"; return null; }; /** - * Creates an OneofOptions message from a plain object. Also converts values to their respective internal types. + * Creates a MethodDescriptorProto message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.protobuf.OneofOptions + * @memberof google.protobuf.MethodDescriptorProto * @static * @param {Object.} object Plain object - * @returns {google.protobuf.OneofOptions} OneofOptions + * @returns {google.protobuf.MethodDescriptorProto} MethodDescriptorProto */ - OneofOptions.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.OneofOptions) + MethodDescriptorProto.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.MethodDescriptorProto) return object; - var message = new $root.google.protobuf.OneofOptions(); - if (object.uninterpreted_option) { - if (!Array.isArray(object.uninterpreted_option)) - throw TypeError(".google.protobuf.OneofOptions.uninterpreted_option: array expected"); - message.uninterpreted_option = []; - for (var i = 0; i < object.uninterpreted_option.length; ++i) { - if (typeof object.uninterpreted_option[i] !== "object") - throw TypeError(".google.protobuf.OneofOptions.uninterpreted_option: object expected"); - message.uninterpreted_option[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpreted_option[i]); - } + var message = new $root.google.protobuf.MethodDescriptorProto(); + if (object.name != null) + message.name = String(object.name); + if (object.input_type != null) + message.input_type = String(object.input_type); + if (object.output_type != null) + message.output_type = String(object.output_type); + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".google.protobuf.MethodDescriptorProto.options: object expected"); + message.options = $root.google.protobuf.MethodOptions.fromObject(object.options); } + if (object.client_streaming != null) + message.client_streaming = Boolean(object.client_streaming); + if (object.server_streaming != null) + message.server_streaming = Boolean(object.server_streaming); return message; }; /** - * Creates a plain object from an OneofOptions message. Also converts values to other types if specified. + * Creates a plain object from a MethodDescriptorProto message. Also converts values to other types if specified. * @function toObject - * @memberof google.protobuf.OneofOptions + * @memberof google.protobuf.MethodDescriptorProto * @static - * @param {google.protobuf.OneofOptions} message OneofOptions + * @param {google.protobuf.MethodDescriptorProto} message MethodDescriptorProto * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - OneofOptions.toObject = function toObject(message, options) { + MethodDescriptorProto.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.uninterpreted_option = []; - if (message.uninterpreted_option && message.uninterpreted_option.length) { - object.uninterpreted_option = []; - for (var j = 0; j < message.uninterpreted_option.length; ++j) - object.uninterpreted_option[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpreted_option[j], options); + if (options.defaults) { + object.name = ""; + object.input_type = ""; + object.output_type = ""; + object.options = null; + object.client_streaming = false; + object.server_streaming = false; } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.input_type != null && message.hasOwnProperty("input_type")) + object.input_type = message.input_type; + if (message.output_type != null && message.hasOwnProperty("output_type")) + object.output_type = message.output_type; + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.google.protobuf.MethodOptions.toObject(message.options, options); + if (message.client_streaming != null && message.hasOwnProperty("client_streaming")) + object.client_streaming = message.client_streaming; + if (message.server_streaming != null && message.hasOwnProperty("server_streaming")) + object.server_streaming = message.server_streaming; return object; }; /** - * Converts this OneofOptions to JSON. + * Converts this MethodDescriptorProto to JSON. * @function toJSON - * @memberof google.protobuf.OneofOptions + * @memberof google.protobuf.MethodDescriptorProto * @instance * @returns {Object.} JSON object */ - OneofOptions.prototype.toJSON = function toJSON() { + MethodDescriptorProto.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return OneofOptions; + return MethodDescriptorProto; })(); - protobuf.EnumOptions = (function() { + protobuf.FileOptions = (function() { /** - * Properties of an EnumOptions. + * Properties of a FileOptions. * @memberof google.protobuf - * @interface IEnumOptions - * @property {boolean|null} [allow_alias] EnumOptions allow_alias - * @property {boolean|null} [deprecated] EnumOptions deprecated - * @property {Array.|null} [uninterpreted_option] EnumOptions uninterpreted_option - * @property {boolean|null} [".gogoproto.goproto_enum_prefix"] EnumOptions .gogoproto.goproto_enum_prefix - * @property {boolean|null} [".gogoproto.goproto_enum_stringer"] EnumOptions .gogoproto.goproto_enum_stringer - * @property {boolean|null} [".gogoproto.enum_stringer"] EnumOptions .gogoproto.enum_stringer - * @property {string|null} [".gogoproto.enum_customname"] EnumOptions .gogoproto.enum_customname - * @property {boolean|null} [".gogoproto.enumdecl"] EnumOptions .gogoproto.enumdecl + * @interface IFileOptions + * @property {string|null} [java_package] FileOptions java_package + * @property {string|null} [java_outer_classname] FileOptions java_outer_classname + * @property {boolean|null} [java_multiple_files] FileOptions java_multiple_files + * @property {boolean|null} [java_generate_equals_and_hash] FileOptions java_generate_equals_and_hash + * @property {boolean|null} [java_string_check_utf8] FileOptions java_string_check_utf8 + * @property {google.protobuf.FileOptions.OptimizeMode|null} [optimize_for] FileOptions optimize_for + * @property {string|null} [go_package] FileOptions go_package + * @property {boolean|null} [cc_generic_services] FileOptions cc_generic_services + * @property {boolean|null} [java_generic_services] FileOptions java_generic_services + * @property {boolean|null} [py_generic_services] FileOptions py_generic_services + * @property {boolean|null} [deprecated] FileOptions deprecated + * @property {boolean|null} [cc_enable_arenas] FileOptions cc_enable_arenas + * @property {string|null} [objc_class_prefix] FileOptions objc_class_prefix + * @property {string|null} [csharp_namespace] FileOptions csharp_namespace + * @property {Array.|null} [uninterpreted_option] FileOptions uninterpreted_option + * @property {boolean|null} [".gogoproto.goproto_getters_all"] FileOptions .gogoproto.goproto_getters_all + * @property {boolean|null} [".gogoproto.goproto_enum_prefix_all"] FileOptions .gogoproto.goproto_enum_prefix_all + * @property {boolean|null} [".gogoproto.goproto_stringer_all"] FileOptions .gogoproto.goproto_stringer_all + * @property {boolean|null} [".gogoproto.verbose_equal_all"] FileOptions .gogoproto.verbose_equal_all + * @property {boolean|null} [".gogoproto.face_all"] FileOptions .gogoproto.face_all + * @property {boolean|null} [".gogoproto.gostring_all"] FileOptions .gogoproto.gostring_all + * @property {boolean|null} [".gogoproto.populate_all"] FileOptions .gogoproto.populate_all + * @property {boolean|null} [".gogoproto.stringer_all"] FileOptions .gogoproto.stringer_all + * @property {boolean|null} [".gogoproto.onlyone_all"] FileOptions .gogoproto.onlyone_all + * @property {boolean|null} [".gogoproto.equal_all"] FileOptions .gogoproto.equal_all + * @property {boolean|null} [".gogoproto.description_all"] FileOptions .gogoproto.description_all + * @property {boolean|null} [".gogoproto.testgen_all"] FileOptions .gogoproto.testgen_all + * @property {boolean|null} [".gogoproto.benchgen_all"] FileOptions .gogoproto.benchgen_all + * @property {boolean|null} [".gogoproto.marshaler_all"] FileOptions .gogoproto.marshaler_all + * @property {boolean|null} [".gogoproto.unmarshaler_all"] FileOptions .gogoproto.unmarshaler_all + * @property {boolean|null} [".gogoproto.stable_marshaler_all"] FileOptions .gogoproto.stable_marshaler_all + * @property {boolean|null} [".gogoproto.sizer_all"] FileOptions .gogoproto.sizer_all + * @property {boolean|null} [".gogoproto.goproto_enum_stringer_all"] FileOptions .gogoproto.goproto_enum_stringer_all + * @property {boolean|null} [".gogoproto.enum_stringer_all"] FileOptions .gogoproto.enum_stringer_all + * @property {boolean|null} [".gogoproto.unsafe_marshaler_all"] FileOptions .gogoproto.unsafe_marshaler_all + * @property {boolean|null} [".gogoproto.unsafe_unmarshaler_all"] FileOptions .gogoproto.unsafe_unmarshaler_all + * @property {boolean|null} [".gogoproto.goproto_extensions_map_all"] FileOptions .gogoproto.goproto_extensions_map_all + * @property {boolean|null} [".gogoproto.goproto_unrecognized_all"] FileOptions .gogoproto.goproto_unrecognized_all + * @property {boolean|null} [".gogoproto.gogoproto_import"] FileOptions .gogoproto.gogoproto_import + * @property {boolean|null} [".gogoproto.protosizer_all"] FileOptions .gogoproto.protosizer_all + * @property {boolean|null} [".gogoproto.compare_all"] FileOptions .gogoproto.compare_all + * @property {boolean|null} [".gogoproto.typedecl_all"] FileOptions .gogoproto.typedecl_all + * @property {boolean|null} [".gogoproto.enumdecl_all"] FileOptions .gogoproto.enumdecl_all + * @property {boolean|null} [".gogoproto.goproto_registration"] FileOptions .gogoproto.goproto_registration + * @property {boolean|null} [".gogoproto.messagename_all"] FileOptions .gogoproto.messagename_all + * @property {boolean|null} [".gogoproto.goproto_sizecache_all"] FileOptions .gogoproto.goproto_sizecache_all + * @property {boolean|null} [".gogoproto.goproto_unkeyed_all"] FileOptions .gogoproto.goproto_unkeyed_all + * @property {Array.|null} [".cosmos_proto.declare_interface"] FileOptions .cosmos_proto.declare_interface + * @property {Array.|null} [".cosmos_proto.declare_scalar"] FileOptions .cosmos_proto.declare_scalar + */ + + /** + * Constructs a new FileOptions. + * @memberof google.protobuf + * @classdesc Represents a FileOptions. + * @implements IFileOptions + * @constructor + * @param {google.protobuf.IFileOptions=} [properties] Properties to set + */ + function FileOptions(properties) { + this.uninterpreted_option = []; + this[".cosmos_proto.declare_interface"] = []; + this[".cosmos_proto.declare_scalar"] = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * FileOptions java_package. + * @member {string} java_package + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.java_package = ""; + + /** + * FileOptions java_outer_classname. + * @member {string} java_outer_classname + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.java_outer_classname = ""; + + /** + * FileOptions java_multiple_files. + * @member {boolean} java_multiple_files + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.java_multiple_files = false; + + /** + * FileOptions java_generate_equals_and_hash. + * @member {boolean} java_generate_equals_and_hash + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.java_generate_equals_and_hash = false; + + /** + * FileOptions java_string_check_utf8. + * @member {boolean} java_string_check_utf8 + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.java_string_check_utf8 = false; + + /** + * FileOptions optimize_for. + * @member {google.protobuf.FileOptions.OptimizeMode} optimize_for + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.optimize_for = 1; + + /** + * FileOptions go_package. + * @member {string} go_package + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.go_package = ""; + + /** + * FileOptions cc_generic_services. + * @member {boolean} cc_generic_services + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.cc_generic_services = false; + + /** + * FileOptions java_generic_services. + * @member {boolean} java_generic_services + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.java_generic_services = false; + + /** + * FileOptions py_generic_services. + * @member {boolean} py_generic_services + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.py_generic_services = false; + + /** + * FileOptions deprecated. + * @member {boolean} deprecated + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.deprecated = false; + + /** + * FileOptions cc_enable_arenas. + * @member {boolean} cc_enable_arenas + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.cc_enable_arenas = false; + + /** + * FileOptions objc_class_prefix. + * @member {string} objc_class_prefix + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.objc_class_prefix = ""; + + /** + * FileOptions csharp_namespace. + * @member {string} csharp_namespace + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.csharp_namespace = ""; + + /** + * FileOptions uninterpreted_option. + * @member {Array.} uninterpreted_option + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.uninterpreted_option = $util.emptyArray; + + /** + * FileOptions .gogoproto.goproto_getters_all. + * @member {boolean} .gogoproto.goproto_getters_all + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype[".gogoproto.goproto_getters_all"] = false; + + /** + * FileOptions .gogoproto.goproto_enum_prefix_all. + * @member {boolean} .gogoproto.goproto_enum_prefix_all + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype[".gogoproto.goproto_enum_prefix_all"] = false; + + /** + * FileOptions .gogoproto.goproto_stringer_all. + * @member {boolean} .gogoproto.goproto_stringer_all + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype[".gogoproto.goproto_stringer_all"] = false; + + /** + * FileOptions .gogoproto.verbose_equal_all. + * @member {boolean} .gogoproto.verbose_equal_all + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype[".gogoproto.verbose_equal_all"] = false; + + /** + * FileOptions .gogoproto.face_all. + * @member {boolean} .gogoproto.face_all + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype[".gogoproto.face_all"] = false; + + /** + * FileOptions .gogoproto.gostring_all. + * @member {boolean} .gogoproto.gostring_all + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype[".gogoproto.gostring_all"] = false; + + /** + * FileOptions .gogoproto.populate_all. + * @member {boolean} .gogoproto.populate_all + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype[".gogoproto.populate_all"] = false; + + /** + * FileOptions .gogoproto.stringer_all. + * @member {boolean} .gogoproto.stringer_all + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype[".gogoproto.stringer_all"] = false; + + /** + * FileOptions .gogoproto.onlyone_all. + * @member {boolean} .gogoproto.onlyone_all + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype[".gogoproto.onlyone_all"] = false; + + /** + * FileOptions .gogoproto.equal_all. + * @member {boolean} .gogoproto.equal_all + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype[".gogoproto.equal_all"] = false; + + /** + * FileOptions .gogoproto.description_all. + * @member {boolean} .gogoproto.description_all + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype[".gogoproto.description_all"] = false; + + /** + * FileOptions .gogoproto.testgen_all. + * @member {boolean} .gogoproto.testgen_all + * @memberof google.protobuf.FileOptions + * @instance */ + FileOptions.prototype[".gogoproto.testgen_all"] = false; /** - * Constructs a new EnumOptions. - * @memberof google.protobuf - * @classdesc Represents an EnumOptions. - * @implements IEnumOptions - * @constructor - * @param {google.protobuf.IEnumOptions=} [properties] Properties to set + * FileOptions .gogoproto.benchgen_all. + * @member {boolean} .gogoproto.benchgen_all + * @memberof google.protobuf.FileOptions + * @instance */ - function EnumOptions(properties) { - this.uninterpreted_option = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + FileOptions.prototype[".gogoproto.benchgen_all"] = false; /** - * EnumOptions allow_alias. - * @member {boolean} allow_alias - * @memberof google.protobuf.EnumOptions + * FileOptions .gogoproto.marshaler_all. + * @member {boolean} .gogoproto.marshaler_all + * @memberof google.protobuf.FileOptions * @instance */ - EnumOptions.prototype.allow_alias = false; + FileOptions.prototype[".gogoproto.marshaler_all"] = false; /** - * EnumOptions deprecated. - * @member {boolean} deprecated - * @memberof google.protobuf.EnumOptions + * FileOptions .gogoproto.unmarshaler_all. + * @member {boolean} .gogoproto.unmarshaler_all + * @memberof google.protobuf.FileOptions * @instance */ - EnumOptions.prototype.deprecated = false; + FileOptions.prototype[".gogoproto.unmarshaler_all"] = false; /** - * EnumOptions uninterpreted_option. - * @member {Array.} uninterpreted_option - * @memberof google.protobuf.EnumOptions + * FileOptions .gogoproto.stable_marshaler_all. + * @member {boolean} .gogoproto.stable_marshaler_all + * @memberof google.protobuf.FileOptions * @instance */ - EnumOptions.prototype.uninterpreted_option = $util.emptyArray; + FileOptions.prototype[".gogoproto.stable_marshaler_all"] = false; /** - * EnumOptions .gogoproto.goproto_enum_prefix. - * @member {boolean} .gogoproto.goproto_enum_prefix - * @memberof google.protobuf.EnumOptions + * FileOptions .gogoproto.sizer_all. + * @member {boolean} .gogoproto.sizer_all + * @memberof google.protobuf.FileOptions * @instance */ - EnumOptions.prototype[".gogoproto.goproto_enum_prefix"] = false; + FileOptions.prototype[".gogoproto.sizer_all"] = false; /** - * EnumOptions .gogoproto.goproto_enum_stringer. - * @member {boolean} .gogoproto.goproto_enum_stringer - * @memberof google.protobuf.EnumOptions + * FileOptions .gogoproto.goproto_enum_stringer_all. + * @member {boolean} .gogoproto.goproto_enum_stringer_all + * @memberof google.protobuf.FileOptions * @instance */ - EnumOptions.prototype[".gogoproto.goproto_enum_stringer"] = false; + FileOptions.prototype[".gogoproto.goproto_enum_stringer_all"] = false; /** - * EnumOptions .gogoproto.enum_stringer. - * @member {boolean} .gogoproto.enum_stringer - * @memberof google.protobuf.EnumOptions + * FileOptions .gogoproto.enum_stringer_all. + * @member {boolean} .gogoproto.enum_stringer_all + * @memberof google.protobuf.FileOptions * @instance */ - EnumOptions.prototype[".gogoproto.enum_stringer"] = false; + FileOptions.prototype[".gogoproto.enum_stringer_all"] = false; /** - * EnumOptions .gogoproto.enum_customname. - * @member {string} .gogoproto.enum_customname - * @memberof google.protobuf.EnumOptions + * FileOptions .gogoproto.unsafe_marshaler_all. + * @member {boolean} .gogoproto.unsafe_marshaler_all + * @memberof google.protobuf.FileOptions * @instance */ - EnumOptions.prototype[".gogoproto.enum_customname"] = ""; + FileOptions.prototype[".gogoproto.unsafe_marshaler_all"] = false; /** - * EnumOptions .gogoproto.enumdecl. - * @member {boolean} .gogoproto.enumdecl - * @memberof google.protobuf.EnumOptions + * FileOptions .gogoproto.unsafe_unmarshaler_all. + * @member {boolean} .gogoproto.unsafe_unmarshaler_all + * @memberof google.protobuf.FileOptions * @instance */ - EnumOptions.prototype[".gogoproto.enumdecl"] = false; + FileOptions.prototype[".gogoproto.unsafe_unmarshaler_all"] = false; /** - * Encodes the specified EnumOptions message. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages. - * @function encode - * @memberof google.protobuf.EnumOptions - * @static - * @param {google.protobuf.IEnumOptions} message EnumOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * FileOptions .gogoproto.goproto_extensions_map_all. + * @member {boolean} .gogoproto.goproto_extensions_map_all + * @memberof google.protobuf.FileOptions + * @instance */ - EnumOptions.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.allow_alias != null && Object.hasOwnProperty.call(message, "allow_alias")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.allow_alias); - if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.deprecated); - if (message.uninterpreted_option != null && message.uninterpreted_option.length) - for (var i = 0; i < message.uninterpreted_option.length; ++i) - $root.google.protobuf.UninterpretedOption.encode(message.uninterpreted_option[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); - if (message[".gogoproto.goproto_enum_prefix"] != null && Object.hasOwnProperty.call(message, ".gogoproto.goproto_enum_prefix")) - writer.uint32(/* id 62001, wireType 0 =*/496008).bool(message[".gogoproto.goproto_enum_prefix"]); - if (message[".gogoproto.goproto_enum_stringer"] != null && Object.hasOwnProperty.call(message, ".gogoproto.goproto_enum_stringer")) - writer.uint32(/* id 62021, wireType 0 =*/496168).bool(message[".gogoproto.goproto_enum_stringer"]); - if (message[".gogoproto.enum_stringer"] != null && Object.hasOwnProperty.call(message, ".gogoproto.enum_stringer")) - writer.uint32(/* id 62022, wireType 0 =*/496176).bool(message[".gogoproto.enum_stringer"]); - if (message[".gogoproto.enum_customname"] != null && Object.hasOwnProperty.call(message, ".gogoproto.enum_customname")) - writer.uint32(/* id 62023, wireType 2 =*/496186).string(message[".gogoproto.enum_customname"]); - if (message[".gogoproto.enumdecl"] != null && Object.hasOwnProperty.call(message, ".gogoproto.enumdecl")) - writer.uint32(/* id 62024, wireType 0 =*/496192).bool(message[".gogoproto.enumdecl"]); - return writer; - }; + FileOptions.prototype[".gogoproto.goproto_extensions_map_all"] = false; /** - * Encodes the specified EnumOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.EnumOptions - * @static - * @param {google.protobuf.IEnumOptions} message EnumOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * FileOptions .gogoproto.goproto_unrecognized_all. + * @member {boolean} .gogoproto.goproto_unrecognized_all + * @memberof google.protobuf.FileOptions + * @instance */ - EnumOptions.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + FileOptions.prototype[".gogoproto.goproto_unrecognized_all"] = false; /** - * Decodes an EnumOptions message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.EnumOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.EnumOptions} EnumOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * FileOptions .gogoproto.gogoproto_import. + * @member {boolean} .gogoproto.gogoproto_import + * @memberof google.protobuf.FileOptions + * @instance */ - EnumOptions.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.EnumOptions(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 2: - message.allow_alias = reader.bool(); - break; - case 3: - message.deprecated = reader.bool(); - break; - case 999: - if (!(message.uninterpreted_option && message.uninterpreted_option.length)) - message.uninterpreted_option = []; - message.uninterpreted_option.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); - break; - case 62001: - message[".gogoproto.goproto_enum_prefix"] = reader.bool(); - break; - case 62021: - message[".gogoproto.goproto_enum_stringer"] = reader.bool(); - break; - case 62022: - message[".gogoproto.enum_stringer"] = reader.bool(); - break; - case 62023: - message[".gogoproto.enum_customname"] = reader.string(); - break; - case 62024: - message[".gogoproto.enumdecl"] = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + FileOptions.prototype[".gogoproto.gogoproto_import"] = false; /** - * Decodes an EnumOptions message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.EnumOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.EnumOptions} EnumOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * FileOptions .gogoproto.protosizer_all. + * @member {boolean} .gogoproto.protosizer_all + * @memberof google.protobuf.FileOptions + * @instance */ - EnumOptions.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + FileOptions.prototype[".gogoproto.protosizer_all"] = false; /** - * Verifies an EnumOptions message. - * @function verify - * @memberof google.protobuf.EnumOptions - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * FileOptions .gogoproto.compare_all. + * @member {boolean} .gogoproto.compare_all + * @memberof google.protobuf.FileOptions + * @instance */ - EnumOptions.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.allow_alias != null && message.hasOwnProperty("allow_alias")) - if (typeof message.allow_alias !== "boolean") - return "allow_alias: boolean expected"; - if (message.deprecated != null && message.hasOwnProperty("deprecated")) - if (typeof message.deprecated !== "boolean") - return "deprecated: boolean expected"; - if (message.uninterpreted_option != null && message.hasOwnProperty("uninterpreted_option")) { - if (!Array.isArray(message.uninterpreted_option)) - return "uninterpreted_option: array expected"; - for (var i = 0; i < message.uninterpreted_option.length; ++i) { - var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpreted_option[i]); - if (error) - return "uninterpreted_option." + error; - } - } - if (message[".gogoproto.goproto_enum_prefix"] != null && message.hasOwnProperty(".gogoproto.goproto_enum_prefix")) - if (typeof message[".gogoproto.goproto_enum_prefix"] !== "boolean") - return ".gogoproto.goproto_enum_prefix: boolean expected"; - if (message[".gogoproto.goproto_enum_stringer"] != null && message.hasOwnProperty(".gogoproto.goproto_enum_stringer")) - if (typeof message[".gogoproto.goproto_enum_stringer"] !== "boolean") - return ".gogoproto.goproto_enum_stringer: boolean expected"; - if (message[".gogoproto.enum_stringer"] != null && message.hasOwnProperty(".gogoproto.enum_stringer")) - if (typeof message[".gogoproto.enum_stringer"] !== "boolean") - return ".gogoproto.enum_stringer: boolean expected"; - if (message[".gogoproto.enum_customname"] != null && message.hasOwnProperty(".gogoproto.enum_customname")) - if (!$util.isString(message[".gogoproto.enum_customname"])) - return ".gogoproto.enum_customname: string expected"; - if (message[".gogoproto.enumdecl"] != null && message.hasOwnProperty(".gogoproto.enumdecl")) - if (typeof message[".gogoproto.enumdecl"] !== "boolean") - return ".gogoproto.enumdecl: boolean expected"; - return null; - }; + FileOptions.prototype[".gogoproto.compare_all"] = false; /** - * Creates an EnumOptions message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.EnumOptions - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.EnumOptions} EnumOptions + * FileOptions .gogoproto.typedecl_all. + * @member {boolean} .gogoproto.typedecl_all + * @memberof google.protobuf.FileOptions + * @instance */ - EnumOptions.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.EnumOptions) - return object; - var message = new $root.google.protobuf.EnumOptions(); - if (object.allow_alias != null) - message.allow_alias = Boolean(object.allow_alias); - if (object.deprecated != null) - message.deprecated = Boolean(object.deprecated); - if (object.uninterpreted_option) { - if (!Array.isArray(object.uninterpreted_option)) - throw TypeError(".google.protobuf.EnumOptions.uninterpreted_option: array expected"); - message.uninterpreted_option = []; - for (var i = 0; i < object.uninterpreted_option.length; ++i) { - if (typeof object.uninterpreted_option[i] !== "object") - throw TypeError(".google.protobuf.EnumOptions.uninterpreted_option: object expected"); - message.uninterpreted_option[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpreted_option[i]); - } - } - if (object[".gogoproto.goproto_enum_prefix"] != null) - message[".gogoproto.goproto_enum_prefix"] = Boolean(object[".gogoproto.goproto_enum_prefix"]); - if (object[".gogoproto.goproto_enum_stringer"] != null) - message[".gogoproto.goproto_enum_stringer"] = Boolean(object[".gogoproto.goproto_enum_stringer"]); - if (object[".gogoproto.enum_stringer"] != null) - message[".gogoproto.enum_stringer"] = Boolean(object[".gogoproto.enum_stringer"]); - if (object[".gogoproto.enum_customname"] != null) - message[".gogoproto.enum_customname"] = String(object[".gogoproto.enum_customname"]); - if (object[".gogoproto.enumdecl"] != null) - message[".gogoproto.enumdecl"] = Boolean(object[".gogoproto.enumdecl"]); - return message; - }; + FileOptions.prototype[".gogoproto.typedecl_all"] = false; /** - * Creates a plain object from an EnumOptions message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.EnumOptions - * @static - * @param {google.protobuf.EnumOptions} message EnumOptions - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * FileOptions .gogoproto.enumdecl_all. + * @member {boolean} .gogoproto.enumdecl_all + * @memberof google.protobuf.FileOptions + * @instance */ - EnumOptions.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.uninterpreted_option = []; - if (options.defaults) { - object.allow_alias = false; - object.deprecated = false; - object[".gogoproto.goproto_enum_prefix"] = false; - object[".gogoproto.goproto_enum_stringer"] = false; - object[".gogoproto.enum_stringer"] = false; - object[".gogoproto.enum_customname"] = ""; - object[".gogoproto.enumdecl"] = false; - } - if (message.allow_alias != null && message.hasOwnProperty("allow_alias")) - object.allow_alias = message.allow_alias; - if (message.deprecated != null && message.hasOwnProperty("deprecated")) - object.deprecated = message.deprecated; - if (message.uninterpreted_option && message.uninterpreted_option.length) { - object.uninterpreted_option = []; - for (var j = 0; j < message.uninterpreted_option.length; ++j) - object.uninterpreted_option[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpreted_option[j], options); - } - if (message[".gogoproto.goproto_enum_prefix"] != null && message.hasOwnProperty(".gogoproto.goproto_enum_prefix")) - object[".gogoproto.goproto_enum_prefix"] = message[".gogoproto.goproto_enum_prefix"]; - if (message[".gogoproto.goproto_enum_stringer"] != null && message.hasOwnProperty(".gogoproto.goproto_enum_stringer")) - object[".gogoproto.goproto_enum_stringer"] = message[".gogoproto.goproto_enum_stringer"]; - if (message[".gogoproto.enum_stringer"] != null && message.hasOwnProperty(".gogoproto.enum_stringer")) - object[".gogoproto.enum_stringer"] = message[".gogoproto.enum_stringer"]; - if (message[".gogoproto.enum_customname"] != null && message.hasOwnProperty(".gogoproto.enum_customname")) - object[".gogoproto.enum_customname"] = message[".gogoproto.enum_customname"]; - if (message[".gogoproto.enumdecl"] != null && message.hasOwnProperty(".gogoproto.enumdecl")) - object[".gogoproto.enumdecl"] = message[".gogoproto.enumdecl"]; - return object; - }; + FileOptions.prototype[".gogoproto.enumdecl_all"] = false; /** - * Converts this EnumOptions to JSON. - * @function toJSON - * @memberof google.protobuf.EnumOptions + * FileOptions .gogoproto.goproto_registration. + * @member {boolean} .gogoproto.goproto_registration + * @memberof google.protobuf.FileOptions * @instance - * @returns {Object.} JSON object */ - EnumOptions.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return EnumOptions; - })(); - - protobuf.EnumValueOptions = (function() { + FileOptions.prototype[".gogoproto.goproto_registration"] = false; /** - * Properties of an EnumValueOptions. - * @memberof google.protobuf - * @interface IEnumValueOptions - * @property {boolean|null} [deprecated] EnumValueOptions deprecated - * @property {Array.|null} [uninterpreted_option] EnumValueOptions uninterpreted_option - * @property {string|null} [".gogoproto.enumvalue_customname"] EnumValueOptions .gogoproto.enumvalue_customname + * FileOptions .gogoproto.messagename_all. + * @member {boolean} .gogoproto.messagename_all + * @memberof google.protobuf.FileOptions + * @instance */ + FileOptions.prototype[".gogoproto.messagename_all"] = false; /** - * Constructs a new EnumValueOptions. - * @memberof google.protobuf - * @classdesc Represents an EnumValueOptions. - * @implements IEnumValueOptions - * @constructor - * @param {google.protobuf.IEnumValueOptions=} [properties] Properties to set + * FileOptions .gogoproto.goproto_sizecache_all. + * @member {boolean} .gogoproto.goproto_sizecache_all + * @memberof google.protobuf.FileOptions + * @instance */ - function EnumValueOptions(properties) { - this.uninterpreted_option = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + FileOptions.prototype[".gogoproto.goproto_sizecache_all"] = false; /** - * EnumValueOptions deprecated. - * @member {boolean} deprecated - * @memberof google.protobuf.EnumValueOptions + * FileOptions .gogoproto.goproto_unkeyed_all. + * @member {boolean} .gogoproto.goproto_unkeyed_all + * @memberof google.protobuf.FileOptions * @instance */ - EnumValueOptions.prototype.deprecated = false; + FileOptions.prototype[".gogoproto.goproto_unkeyed_all"] = false; /** - * EnumValueOptions uninterpreted_option. - * @member {Array.} uninterpreted_option - * @memberof google.protobuf.EnumValueOptions + * FileOptions .cosmos_proto.declare_interface. + * @member {Array.} .cosmos_proto.declare_interface + * @memberof google.protobuf.FileOptions * @instance */ - EnumValueOptions.prototype.uninterpreted_option = $util.emptyArray; + FileOptions.prototype[".cosmos_proto.declare_interface"] = $util.emptyArray; /** - * EnumValueOptions .gogoproto.enumvalue_customname. - * @member {string} .gogoproto.enumvalue_customname - * @memberof google.protobuf.EnumValueOptions + * FileOptions .cosmos_proto.declare_scalar. + * @member {Array.} .cosmos_proto.declare_scalar + * @memberof google.protobuf.FileOptions * @instance */ - EnumValueOptions.prototype[".gogoproto.enumvalue_customname"] = ""; + FileOptions.prototype[".cosmos_proto.declare_scalar"] = $util.emptyArray; /** - * Encodes the specified EnumValueOptions message. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages. + * Encodes the specified FileOptions message. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages. * @function encode - * @memberof google.protobuf.EnumValueOptions + * @memberof google.protobuf.FileOptions * @static - * @param {google.protobuf.IEnumValueOptions} message EnumValueOptions message or plain object to encode + * @param {google.protobuf.IFileOptions} message FileOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EnumValueOptions.encode = function encode(message, writer) { + FileOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.java_package != null && Object.hasOwnProperty.call(message, "java_package")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.java_package); + if (message.java_outer_classname != null && Object.hasOwnProperty.call(message, "java_outer_classname")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.java_outer_classname); + if (message.optimize_for != null && Object.hasOwnProperty.call(message, "optimize_for")) + writer.uint32(/* id 9, wireType 0 =*/72).int32(message.optimize_for); + if (message.java_multiple_files != null && Object.hasOwnProperty.call(message, "java_multiple_files")) + writer.uint32(/* id 10, wireType 0 =*/80).bool(message.java_multiple_files); + if (message.go_package != null && Object.hasOwnProperty.call(message, "go_package")) + writer.uint32(/* id 11, wireType 2 =*/90).string(message.go_package); + if (message.cc_generic_services != null && Object.hasOwnProperty.call(message, "cc_generic_services")) + writer.uint32(/* id 16, wireType 0 =*/128).bool(message.cc_generic_services); + if (message.java_generic_services != null && Object.hasOwnProperty.call(message, "java_generic_services")) + writer.uint32(/* id 17, wireType 0 =*/136).bool(message.java_generic_services); + if (message.py_generic_services != null && Object.hasOwnProperty.call(message, "py_generic_services")) + writer.uint32(/* id 18, wireType 0 =*/144).bool(message.py_generic_services); + if (message.java_generate_equals_and_hash != null && Object.hasOwnProperty.call(message, "java_generate_equals_and_hash")) + writer.uint32(/* id 20, wireType 0 =*/160).bool(message.java_generate_equals_and_hash); if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.deprecated); + writer.uint32(/* id 23, wireType 0 =*/184).bool(message.deprecated); + if (message.java_string_check_utf8 != null && Object.hasOwnProperty.call(message, "java_string_check_utf8")) + writer.uint32(/* id 27, wireType 0 =*/216).bool(message.java_string_check_utf8); + if (message.cc_enable_arenas != null && Object.hasOwnProperty.call(message, "cc_enable_arenas")) + writer.uint32(/* id 31, wireType 0 =*/248).bool(message.cc_enable_arenas); + if (message.objc_class_prefix != null && Object.hasOwnProperty.call(message, "objc_class_prefix")) + writer.uint32(/* id 36, wireType 2 =*/290).string(message.objc_class_prefix); + if (message.csharp_namespace != null && Object.hasOwnProperty.call(message, "csharp_namespace")) + writer.uint32(/* id 37, wireType 2 =*/298).string(message.csharp_namespace); if (message.uninterpreted_option != null && message.uninterpreted_option.length) for (var i = 0; i < message.uninterpreted_option.length; ++i) $root.google.protobuf.UninterpretedOption.encode(message.uninterpreted_option[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); - if (message[".gogoproto.enumvalue_customname"] != null && Object.hasOwnProperty.call(message, ".gogoproto.enumvalue_customname")) - writer.uint32(/* id 66001, wireType 2 =*/528010).string(message[".gogoproto.enumvalue_customname"]); + if (message[".gogoproto.goproto_getters_all"] != null && Object.hasOwnProperty.call(message, ".gogoproto.goproto_getters_all")) + writer.uint32(/* id 63001, wireType 0 =*/504008).bool(message[".gogoproto.goproto_getters_all"]); + if (message[".gogoproto.goproto_enum_prefix_all"] != null && Object.hasOwnProperty.call(message, ".gogoproto.goproto_enum_prefix_all")) + writer.uint32(/* id 63002, wireType 0 =*/504016).bool(message[".gogoproto.goproto_enum_prefix_all"]); + if (message[".gogoproto.goproto_stringer_all"] != null && Object.hasOwnProperty.call(message, ".gogoproto.goproto_stringer_all")) + writer.uint32(/* id 63003, wireType 0 =*/504024).bool(message[".gogoproto.goproto_stringer_all"]); + if (message[".gogoproto.verbose_equal_all"] != null && Object.hasOwnProperty.call(message, ".gogoproto.verbose_equal_all")) + writer.uint32(/* id 63004, wireType 0 =*/504032).bool(message[".gogoproto.verbose_equal_all"]); + if (message[".gogoproto.face_all"] != null && Object.hasOwnProperty.call(message, ".gogoproto.face_all")) + writer.uint32(/* id 63005, wireType 0 =*/504040).bool(message[".gogoproto.face_all"]); + if (message[".gogoproto.gostring_all"] != null && Object.hasOwnProperty.call(message, ".gogoproto.gostring_all")) + writer.uint32(/* id 63006, wireType 0 =*/504048).bool(message[".gogoproto.gostring_all"]); + if (message[".gogoproto.populate_all"] != null && Object.hasOwnProperty.call(message, ".gogoproto.populate_all")) + writer.uint32(/* id 63007, wireType 0 =*/504056).bool(message[".gogoproto.populate_all"]); + if (message[".gogoproto.stringer_all"] != null && Object.hasOwnProperty.call(message, ".gogoproto.stringer_all")) + writer.uint32(/* id 63008, wireType 0 =*/504064).bool(message[".gogoproto.stringer_all"]); + if (message[".gogoproto.onlyone_all"] != null && Object.hasOwnProperty.call(message, ".gogoproto.onlyone_all")) + writer.uint32(/* id 63009, wireType 0 =*/504072).bool(message[".gogoproto.onlyone_all"]); + if (message[".gogoproto.equal_all"] != null && Object.hasOwnProperty.call(message, ".gogoproto.equal_all")) + writer.uint32(/* id 63013, wireType 0 =*/504104).bool(message[".gogoproto.equal_all"]); + if (message[".gogoproto.description_all"] != null && Object.hasOwnProperty.call(message, ".gogoproto.description_all")) + writer.uint32(/* id 63014, wireType 0 =*/504112).bool(message[".gogoproto.description_all"]); + if (message[".gogoproto.testgen_all"] != null && Object.hasOwnProperty.call(message, ".gogoproto.testgen_all")) + writer.uint32(/* id 63015, wireType 0 =*/504120).bool(message[".gogoproto.testgen_all"]); + if (message[".gogoproto.benchgen_all"] != null && Object.hasOwnProperty.call(message, ".gogoproto.benchgen_all")) + writer.uint32(/* id 63016, wireType 0 =*/504128).bool(message[".gogoproto.benchgen_all"]); + if (message[".gogoproto.marshaler_all"] != null && Object.hasOwnProperty.call(message, ".gogoproto.marshaler_all")) + writer.uint32(/* id 63017, wireType 0 =*/504136).bool(message[".gogoproto.marshaler_all"]); + if (message[".gogoproto.unmarshaler_all"] != null && Object.hasOwnProperty.call(message, ".gogoproto.unmarshaler_all")) + writer.uint32(/* id 63018, wireType 0 =*/504144).bool(message[".gogoproto.unmarshaler_all"]); + if (message[".gogoproto.stable_marshaler_all"] != null && Object.hasOwnProperty.call(message, ".gogoproto.stable_marshaler_all")) + writer.uint32(/* id 63019, wireType 0 =*/504152).bool(message[".gogoproto.stable_marshaler_all"]); + if (message[".gogoproto.sizer_all"] != null && Object.hasOwnProperty.call(message, ".gogoproto.sizer_all")) + writer.uint32(/* id 63020, wireType 0 =*/504160).bool(message[".gogoproto.sizer_all"]); + if (message[".gogoproto.goproto_enum_stringer_all"] != null && Object.hasOwnProperty.call(message, ".gogoproto.goproto_enum_stringer_all")) + writer.uint32(/* id 63021, wireType 0 =*/504168).bool(message[".gogoproto.goproto_enum_stringer_all"]); + if (message[".gogoproto.enum_stringer_all"] != null && Object.hasOwnProperty.call(message, ".gogoproto.enum_stringer_all")) + writer.uint32(/* id 63022, wireType 0 =*/504176).bool(message[".gogoproto.enum_stringer_all"]); + if (message[".gogoproto.unsafe_marshaler_all"] != null && Object.hasOwnProperty.call(message, ".gogoproto.unsafe_marshaler_all")) + writer.uint32(/* id 63023, wireType 0 =*/504184).bool(message[".gogoproto.unsafe_marshaler_all"]); + if (message[".gogoproto.unsafe_unmarshaler_all"] != null && Object.hasOwnProperty.call(message, ".gogoproto.unsafe_unmarshaler_all")) + writer.uint32(/* id 63024, wireType 0 =*/504192).bool(message[".gogoproto.unsafe_unmarshaler_all"]); + if (message[".gogoproto.goproto_extensions_map_all"] != null && Object.hasOwnProperty.call(message, ".gogoproto.goproto_extensions_map_all")) + writer.uint32(/* id 63025, wireType 0 =*/504200).bool(message[".gogoproto.goproto_extensions_map_all"]); + if (message[".gogoproto.goproto_unrecognized_all"] != null && Object.hasOwnProperty.call(message, ".gogoproto.goproto_unrecognized_all")) + writer.uint32(/* id 63026, wireType 0 =*/504208).bool(message[".gogoproto.goproto_unrecognized_all"]); + if (message[".gogoproto.gogoproto_import"] != null && Object.hasOwnProperty.call(message, ".gogoproto.gogoproto_import")) + writer.uint32(/* id 63027, wireType 0 =*/504216).bool(message[".gogoproto.gogoproto_import"]); + if (message[".gogoproto.protosizer_all"] != null && Object.hasOwnProperty.call(message, ".gogoproto.protosizer_all")) + writer.uint32(/* id 63028, wireType 0 =*/504224).bool(message[".gogoproto.protosizer_all"]); + if (message[".gogoproto.compare_all"] != null && Object.hasOwnProperty.call(message, ".gogoproto.compare_all")) + writer.uint32(/* id 63029, wireType 0 =*/504232).bool(message[".gogoproto.compare_all"]); + if (message[".gogoproto.typedecl_all"] != null && Object.hasOwnProperty.call(message, ".gogoproto.typedecl_all")) + writer.uint32(/* id 63030, wireType 0 =*/504240).bool(message[".gogoproto.typedecl_all"]); + if (message[".gogoproto.enumdecl_all"] != null && Object.hasOwnProperty.call(message, ".gogoproto.enumdecl_all")) + writer.uint32(/* id 63031, wireType 0 =*/504248).bool(message[".gogoproto.enumdecl_all"]); + if (message[".gogoproto.goproto_registration"] != null && Object.hasOwnProperty.call(message, ".gogoproto.goproto_registration")) + writer.uint32(/* id 63032, wireType 0 =*/504256).bool(message[".gogoproto.goproto_registration"]); + if (message[".gogoproto.messagename_all"] != null && Object.hasOwnProperty.call(message, ".gogoproto.messagename_all")) + writer.uint32(/* id 63033, wireType 0 =*/504264).bool(message[".gogoproto.messagename_all"]); + if (message[".gogoproto.goproto_sizecache_all"] != null && Object.hasOwnProperty.call(message, ".gogoproto.goproto_sizecache_all")) + writer.uint32(/* id 63034, wireType 0 =*/504272).bool(message[".gogoproto.goproto_sizecache_all"]); + if (message[".gogoproto.goproto_unkeyed_all"] != null && Object.hasOwnProperty.call(message, ".gogoproto.goproto_unkeyed_all")) + writer.uint32(/* id 63035, wireType 0 =*/504280).bool(message[".gogoproto.goproto_unkeyed_all"]); + if (message[".cosmos_proto.declare_interface"] != null && message[".cosmos_proto.declare_interface"].length) + for (var i = 0; i < message[".cosmos_proto.declare_interface"].length; ++i) + $root.cosmos_proto.InterfaceDescriptor.encode(message[".cosmos_proto.declare_interface"][i], writer.uint32(/* id 793021, wireType 2 =*/6344170).fork()).ldelim(); + if (message[".cosmos_proto.declare_scalar"] != null && message[".cosmos_proto.declare_scalar"].length) + for (var i = 0; i < message[".cosmos_proto.declare_scalar"].length; ++i) + $root.cosmos_proto.ScalarDescriptor.encode(message[".cosmos_proto.declare_scalar"][i], writer.uint32(/* id 793022, wireType 2 =*/6344178).fork()).ldelim(); return writer; }; /** - * Encodes the specified EnumValueOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages. + * Encodes the specified FileOptions message, length delimited. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages. * @function encodeDelimited - * @memberof google.protobuf.EnumValueOptions + * @memberof google.protobuf.FileOptions * @static - * @param {google.protobuf.IEnumValueOptions} message EnumValueOptions message or plain object to encode + * @param {google.protobuf.IFileOptions} message FileOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EnumValueOptions.encodeDelimited = function encodeDelimited(message, writer) { + FileOptions.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an EnumValueOptions message from the specified reader or buffer. + * Decodes a FileOptions message from the specified reader or buffer. * @function decode - * @memberof google.protobuf.EnumValueOptions + * @memberof google.protobuf.FileOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.EnumValueOptions} EnumValueOptions + * @returns {google.protobuf.FileOptions} FileOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EnumValueOptions.decode = function decode(reader, length) { + FileOptions.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.EnumValueOptions(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FileOptions(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: + message.java_package = reader.string(); + break; + case 8: + message.java_outer_classname = reader.string(); + break; + case 10: + message.java_multiple_files = reader.bool(); + break; + case 20: + message.java_generate_equals_and_hash = reader.bool(); + break; + case 27: + message.java_string_check_utf8 = reader.bool(); + break; + case 9: + message.optimize_for = reader.int32(); + break; + case 11: + message.go_package = reader.string(); + break; + case 16: + message.cc_generic_services = reader.bool(); + break; + case 17: + message.java_generic_services = reader.bool(); + break; + case 18: + message.py_generic_services = reader.bool(); + break; + case 23: message.deprecated = reader.bool(); break; + case 31: + message.cc_enable_arenas = reader.bool(); + break; + case 36: + message.objc_class_prefix = reader.string(); + break; + case 37: + message.csharp_namespace = reader.string(); + break; case 999: if (!(message.uninterpreted_option && message.uninterpreted_option.length)) message.uninterpreted_option = []; message.uninterpreted_option.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); break; - case 66001: - message[".gogoproto.enumvalue_customname"] = reader.string(); + case 63001: + message[".gogoproto.goproto_getters_all"] = reader.bool(); + break; + case 63002: + message[".gogoproto.goproto_enum_prefix_all"] = reader.bool(); + break; + case 63003: + message[".gogoproto.goproto_stringer_all"] = reader.bool(); + break; + case 63004: + message[".gogoproto.verbose_equal_all"] = reader.bool(); + break; + case 63005: + message[".gogoproto.face_all"] = reader.bool(); + break; + case 63006: + message[".gogoproto.gostring_all"] = reader.bool(); + break; + case 63007: + message[".gogoproto.populate_all"] = reader.bool(); + break; + case 63008: + message[".gogoproto.stringer_all"] = reader.bool(); + break; + case 63009: + message[".gogoproto.onlyone_all"] = reader.bool(); + break; + case 63013: + message[".gogoproto.equal_all"] = reader.bool(); + break; + case 63014: + message[".gogoproto.description_all"] = reader.bool(); + break; + case 63015: + message[".gogoproto.testgen_all"] = reader.bool(); + break; + case 63016: + message[".gogoproto.benchgen_all"] = reader.bool(); + break; + case 63017: + message[".gogoproto.marshaler_all"] = reader.bool(); + break; + case 63018: + message[".gogoproto.unmarshaler_all"] = reader.bool(); + break; + case 63019: + message[".gogoproto.stable_marshaler_all"] = reader.bool(); + break; + case 63020: + message[".gogoproto.sizer_all"] = reader.bool(); + break; + case 63021: + message[".gogoproto.goproto_enum_stringer_all"] = reader.bool(); + break; + case 63022: + message[".gogoproto.enum_stringer_all"] = reader.bool(); + break; + case 63023: + message[".gogoproto.unsafe_marshaler_all"] = reader.bool(); + break; + case 63024: + message[".gogoproto.unsafe_unmarshaler_all"] = reader.bool(); + break; + case 63025: + message[".gogoproto.goproto_extensions_map_all"] = reader.bool(); + break; + case 63026: + message[".gogoproto.goproto_unrecognized_all"] = reader.bool(); + break; + case 63027: + message[".gogoproto.gogoproto_import"] = reader.bool(); + break; + case 63028: + message[".gogoproto.protosizer_all"] = reader.bool(); + break; + case 63029: + message[".gogoproto.compare_all"] = reader.bool(); + break; + case 63030: + message[".gogoproto.typedecl_all"] = reader.bool(); + break; + case 63031: + message[".gogoproto.enumdecl_all"] = reader.bool(); + break; + case 63032: + message[".gogoproto.goproto_registration"] = reader.bool(); + break; + case 63033: + message[".gogoproto.messagename_all"] = reader.bool(); + break; + case 63034: + message[".gogoproto.goproto_sizecache_all"] = reader.bool(); + break; + case 63035: + message[".gogoproto.goproto_unkeyed_all"] = reader.bool(); + break; + case 793021: + if (!(message[".cosmos_proto.declare_interface"] && message[".cosmos_proto.declare_interface"].length)) + message[".cosmos_proto.declare_interface"] = []; + message[".cosmos_proto.declare_interface"].push($root.cosmos_proto.InterfaceDescriptor.decode(reader, reader.uint32())); + break; + case 793022: + if (!(message[".cosmos_proto.declare_scalar"] && message[".cosmos_proto.declare_scalar"].length)) + message[".cosmos_proto.declare_scalar"] = []; + message[".cosmos_proto.declare_scalar"].push($root.cosmos_proto.ScalarDescriptor.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -14529,35 +20118,80 @@ }; /** - * Decodes an EnumValueOptions message from the specified reader or buffer, length delimited. + * Decodes a FileOptions message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.protobuf.EnumValueOptions + * @memberof google.protobuf.FileOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.EnumValueOptions} EnumValueOptions + * @returns {google.protobuf.FileOptions} FileOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EnumValueOptions.decodeDelimited = function decodeDelimited(reader) { + FileOptions.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an EnumValueOptions message. + * Verifies a FileOptions message. * @function verify - * @memberof google.protobuf.EnumValueOptions + * @memberof google.protobuf.FileOptions * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - EnumValueOptions.verify = function verify(message) { + FileOptions.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.java_package != null && message.hasOwnProperty("java_package")) + if (!$util.isString(message.java_package)) + return "java_package: string expected"; + if (message.java_outer_classname != null && message.hasOwnProperty("java_outer_classname")) + if (!$util.isString(message.java_outer_classname)) + return "java_outer_classname: string expected"; + if (message.java_multiple_files != null && message.hasOwnProperty("java_multiple_files")) + if (typeof message.java_multiple_files !== "boolean") + return "java_multiple_files: boolean expected"; + if (message.java_generate_equals_and_hash != null && message.hasOwnProperty("java_generate_equals_and_hash")) + if (typeof message.java_generate_equals_and_hash !== "boolean") + return "java_generate_equals_and_hash: boolean expected"; + if (message.java_string_check_utf8 != null && message.hasOwnProperty("java_string_check_utf8")) + if (typeof message.java_string_check_utf8 !== "boolean") + return "java_string_check_utf8: boolean expected"; + if (message.optimize_for != null && message.hasOwnProperty("optimize_for")) + switch (message.optimize_for) { + default: + return "optimize_for: enum value expected"; + case 1: + case 2: + case 3: + break; + } + if (message.go_package != null && message.hasOwnProperty("go_package")) + if (!$util.isString(message.go_package)) + return "go_package: string expected"; + if (message.cc_generic_services != null && message.hasOwnProperty("cc_generic_services")) + if (typeof message.cc_generic_services !== "boolean") + return "cc_generic_services: boolean expected"; + if (message.java_generic_services != null && message.hasOwnProperty("java_generic_services")) + if (typeof message.java_generic_services !== "boolean") + return "java_generic_services: boolean expected"; + if (message.py_generic_services != null && message.hasOwnProperty("py_generic_services")) + if (typeof message.py_generic_services !== "boolean") + return "py_generic_services: boolean expected"; if (message.deprecated != null && message.hasOwnProperty("deprecated")) if (typeof message.deprecated !== "boolean") return "deprecated: boolean expected"; + if (message.cc_enable_arenas != null && message.hasOwnProperty("cc_enable_arenas")) + if (typeof message.cc_enable_arenas !== "boolean") + return "cc_enable_arenas: boolean expected"; + if (message.objc_class_prefix != null && message.hasOwnProperty("objc_class_prefix")) + if (!$util.isString(message.objc_class_prefix)) + return "objc_class_prefix: string expected"; + if (message.csharp_namespace != null && message.hasOwnProperty("csharp_namespace")) + if (!$util.isString(message.csharp_namespace)) + return "csharp_namespace: string expected"; if (message.uninterpreted_option != null && message.hasOwnProperty("uninterpreted_option")) { if (!Array.isArray(message.uninterpreted_option)) return "uninterpreted_option: array expected"; @@ -14567,106 +20201,531 @@ return "uninterpreted_option." + error; } } - if (message[".gogoproto.enumvalue_customname"] != null && message.hasOwnProperty(".gogoproto.enumvalue_customname")) - if (!$util.isString(message[".gogoproto.enumvalue_customname"])) - return ".gogoproto.enumvalue_customname: string expected"; + if (message[".gogoproto.goproto_getters_all"] != null && message.hasOwnProperty(".gogoproto.goproto_getters_all")) + if (typeof message[".gogoproto.goproto_getters_all"] !== "boolean") + return ".gogoproto.goproto_getters_all: boolean expected"; + if (message[".gogoproto.goproto_enum_prefix_all"] != null && message.hasOwnProperty(".gogoproto.goproto_enum_prefix_all")) + if (typeof message[".gogoproto.goproto_enum_prefix_all"] !== "boolean") + return ".gogoproto.goproto_enum_prefix_all: boolean expected"; + if (message[".gogoproto.goproto_stringer_all"] != null && message.hasOwnProperty(".gogoproto.goproto_stringer_all")) + if (typeof message[".gogoproto.goproto_stringer_all"] !== "boolean") + return ".gogoproto.goproto_stringer_all: boolean expected"; + if (message[".gogoproto.verbose_equal_all"] != null && message.hasOwnProperty(".gogoproto.verbose_equal_all")) + if (typeof message[".gogoproto.verbose_equal_all"] !== "boolean") + return ".gogoproto.verbose_equal_all: boolean expected"; + if (message[".gogoproto.face_all"] != null && message.hasOwnProperty(".gogoproto.face_all")) + if (typeof message[".gogoproto.face_all"] !== "boolean") + return ".gogoproto.face_all: boolean expected"; + if (message[".gogoproto.gostring_all"] != null && message.hasOwnProperty(".gogoproto.gostring_all")) + if (typeof message[".gogoproto.gostring_all"] !== "boolean") + return ".gogoproto.gostring_all: boolean expected"; + if (message[".gogoproto.populate_all"] != null && message.hasOwnProperty(".gogoproto.populate_all")) + if (typeof message[".gogoproto.populate_all"] !== "boolean") + return ".gogoproto.populate_all: boolean expected"; + if (message[".gogoproto.stringer_all"] != null && message.hasOwnProperty(".gogoproto.stringer_all")) + if (typeof message[".gogoproto.stringer_all"] !== "boolean") + return ".gogoproto.stringer_all: boolean expected"; + if (message[".gogoproto.onlyone_all"] != null && message.hasOwnProperty(".gogoproto.onlyone_all")) + if (typeof message[".gogoproto.onlyone_all"] !== "boolean") + return ".gogoproto.onlyone_all: boolean expected"; + if (message[".gogoproto.equal_all"] != null && message.hasOwnProperty(".gogoproto.equal_all")) + if (typeof message[".gogoproto.equal_all"] !== "boolean") + return ".gogoproto.equal_all: boolean expected"; + if (message[".gogoproto.description_all"] != null && message.hasOwnProperty(".gogoproto.description_all")) + if (typeof message[".gogoproto.description_all"] !== "boolean") + return ".gogoproto.description_all: boolean expected"; + if (message[".gogoproto.testgen_all"] != null && message.hasOwnProperty(".gogoproto.testgen_all")) + if (typeof message[".gogoproto.testgen_all"] !== "boolean") + return ".gogoproto.testgen_all: boolean expected"; + if (message[".gogoproto.benchgen_all"] != null && message.hasOwnProperty(".gogoproto.benchgen_all")) + if (typeof message[".gogoproto.benchgen_all"] !== "boolean") + return ".gogoproto.benchgen_all: boolean expected"; + if (message[".gogoproto.marshaler_all"] != null && message.hasOwnProperty(".gogoproto.marshaler_all")) + if (typeof message[".gogoproto.marshaler_all"] !== "boolean") + return ".gogoproto.marshaler_all: boolean expected"; + if (message[".gogoproto.unmarshaler_all"] != null && message.hasOwnProperty(".gogoproto.unmarshaler_all")) + if (typeof message[".gogoproto.unmarshaler_all"] !== "boolean") + return ".gogoproto.unmarshaler_all: boolean expected"; + if (message[".gogoproto.stable_marshaler_all"] != null && message.hasOwnProperty(".gogoproto.stable_marshaler_all")) + if (typeof message[".gogoproto.stable_marshaler_all"] !== "boolean") + return ".gogoproto.stable_marshaler_all: boolean expected"; + if (message[".gogoproto.sizer_all"] != null && message.hasOwnProperty(".gogoproto.sizer_all")) + if (typeof message[".gogoproto.sizer_all"] !== "boolean") + return ".gogoproto.sizer_all: boolean expected"; + if (message[".gogoproto.goproto_enum_stringer_all"] != null && message.hasOwnProperty(".gogoproto.goproto_enum_stringer_all")) + if (typeof message[".gogoproto.goproto_enum_stringer_all"] !== "boolean") + return ".gogoproto.goproto_enum_stringer_all: boolean expected"; + if (message[".gogoproto.enum_stringer_all"] != null && message.hasOwnProperty(".gogoproto.enum_stringer_all")) + if (typeof message[".gogoproto.enum_stringer_all"] !== "boolean") + return ".gogoproto.enum_stringer_all: boolean expected"; + if (message[".gogoproto.unsafe_marshaler_all"] != null && message.hasOwnProperty(".gogoproto.unsafe_marshaler_all")) + if (typeof message[".gogoproto.unsafe_marshaler_all"] !== "boolean") + return ".gogoproto.unsafe_marshaler_all: boolean expected"; + if (message[".gogoproto.unsafe_unmarshaler_all"] != null && message.hasOwnProperty(".gogoproto.unsafe_unmarshaler_all")) + if (typeof message[".gogoproto.unsafe_unmarshaler_all"] !== "boolean") + return ".gogoproto.unsafe_unmarshaler_all: boolean expected"; + if (message[".gogoproto.goproto_extensions_map_all"] != null && message.hasOwnProperty(".gogoproto.goproto_extensions_map_all")) + if (typeof message[".gogoproto.goproto_extensions_map_all"] !== "boolean") + return ".gogoproto.goproto_extensions_map_all: boolean expected"; + if (message[".gogoproto.goproto_unrecognized_all"] != null && message.hasOwnProperty(".gogoproto.goproto_unrecognized_all")) + if (typeof message[".gogoproto.goproto_unrecognized_all"] !== "boolean") + return ".gogoproto.goproto_unrecognized_all: boolean expected"; + if (message[".gogoproto.gogoproto_import"] != null && message.hasOwnProperty(".gogoproto.gogoproto_import")) + if (typeof message[".gogoproto.gogoproto_import"] !== "boolean") + return ".gogoproto.gogoproto_import: boolean expected"; + if (message[".gogoproto.protosizer_all"] != null && message.hasOwnProperty(".gogoproto.protosizer_all")) + if (typeof message[".gogoproto.protosizer_all"] !== "boolean") + return ".gogoproto.protosizer_all: boolean expected"; + if (message[".gogoproto.compare_all"] != null && message.hasOwnProperty(".gogoproto.compare_all")) + if (typeof message[".gogoproto.compare_all"] !== "boolean") + return ".gogoproto.compare_all: boolean expected"; + if (message[".gogoproto.typedecl_all"] != null && message.hasOwnProperty(".gogoproto.typedecl_all")) + if (typeof message[".gogoproto.typedecl_all"] !== "boolean") + return ".gogoproto.typedecl_all: boolean expected"; + if (message[".gogoproto.enumdecl_all"] != null && message.hasOwnProperty(".gogoproto.enumdecl_all")) + if (typeof message[".gogoproto.enumdecl_all"] !== "boolean") + return ".gogoproto.enumdecl_all: boolean expected"; + if (message[".gogoproto.goproto_registration"] != null && message.hasOwnProperty(".gogoproto.goproto_registration")) + if (typeof message[".gogoproto.goproto_registration"] !== "boolean") + return ".gogoproto.goproto_registration: boolean expected"; + if (message[".gogoproto.messagename_all"] != null && message.hasOwnProperty(".gogoproto.messagename_all")) + if (typeof message[".gogoproto.messagename_all"] !== "boolean") + return ".gogoproto.messagename_all: boolean expected"; + if (message[".gogoproto.goproto_sizecache_all"] != null && message.hasOwnProperty(".gogoproto.goproto_sizecache_all")) + if (typeof message[".gogoproto.goproto_sizecache_all"] !== "boolean") + return ".gogoproto.goproto_sizecache_all: boolean expected"; + if (message[".gogoproto.goproto_unkeyed_all"] != null && message.hasOwnProperty(".gogoproto.goproto_unkeyed_all")) + if (typeof message[".gogoproto.goproto_unkeyed_all"] !== "boolean") + return ".gogoproto.goproto_unkeyed_all: boolean expected"; + if (message[".cosmos_proto.declare_interface"] != null && message.hasOwnProperty(".cosmos_proto.declare_interface")) { + if (!Array.isArray(message[".cosmos_proto.declare_interface"])) + return ".cosmos_proto.declare_interface: array expected"; + for (var i = 0; i < message[".cosmos_proto.declare_interface"].length; ++i) { + var error = $root.cosmos_proto.InterfaceDescriptor.verify(message[".cosmos_proto.declare_interface"][i]); + if (error) + return ".cosmos_proto.declare_interface." + error; + } + } + if (message[".cosmos_proto.declare_scalar"] != null && message.hasOwnProperty(".cosmos_proto.declare_scalar")) { + if (!Array.isArray(message[".cosmos_proto.declare_scalar"])) + return ".cosmos_proto.declare_scalar: array expected"; + for (var i = 0; i < message[".cosmos_proto.declare_scalar"].length; ++i) { + var error = $root.cosmos_proto.ScalarDescriptor.verify(message[".cosmos_proto.declare_scalar"][i]); + if (error) + return ".cosmos_proto.declare_scalar." + error; + } + } return null; }; /** - * Creates an EnumValueOptions message from a plain object. Also converts values to their respective internal types. + * Creates a FileOptions message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.protobuf.EnumValueOptions + * @memberof google.protobuf.FileOptions * @static * @param {Object.} object Plain object - * @returns {google.protobuf.EnumValueOptions} EnumValueOptions + * @returns {google.protobuf.FileOptions} FileOptions */ - EnumValueOptions.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.EnumValueOptions) + FileOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.FileOptions) return object; - var message = new $root.google.protobuf.EnumValueOptions(); + var message = new $root.google.protobuf.FileOptions(); + if (object.java_package != null) + message.java_package = String(object.java_package); + if (object.java_outer_classname != null) + message.java_outer_classname = String(object.java_outer_classname); + if (object.java_multiple_files != null) + message.java_multiple_files = Boolean(object.java_multiple_files); + if (object.java_generate_equals_and_hash != null) + message.java_generate_equals_and_hash = Boolean(object.java_generate_equals_and_hash); + if (object.java_string_check_utf8 != null) + message.java_string_check_utf8 = Boolean(object.java_string_check_utf8); + switch (object.optimize_for) { + case "SPEED": + case 1: + message.optimize_for = 1; + break; + case "CODE_SIZE": + case 2: + message.optimize_for = 2; + break; + case "LITE_RUNTIME": + case 3: + message.optimize_for = 3; + break; + } + if (object.go_package != null) + message.go_package = String(object.go_package); + if (object.cc_generic_services != null) + message.cc_generic_services = Boolean(object.cc_generic_services); + if (object.java_generic_services != null) + message.java_generic_services = Boolean(object.java_generic_services); + if (object.py_generic_services != null) + message.py_generic_services = Boolean(object.py_generic_services); if (object.deprecated != null) message.deprecated = Boolean(object.deprecated); + if (object.cc_enable_arenas != null) + message.cc_enable_arenas = Boolean(object.cc_enable_arenas); + if (object.objc_class_prefix != null) + message.objc_class_prefix = String(object.objc_class_prefix); + if (object.csharp_namespace != null) + message.csharp_namespace = String(object.csharp_namespace); if (object.uninterpreted_option) { if (!Array.isArray(object.uninterpreted_option)) - throw TypeError(".google.protobuf.EnumValueOptions.uninterpreted_option: array expected"); + throw TypeError(".google.protobuf.FileOptions.uninterpreted_option: array expected"); message.uninterpreted_option = []; for (var i = 0; i < object.uninterpreted_option.length; ++i) { if (typeof object.uninterpreted_option[i] !== "object") - throw TypeError(".google.protobuf.EnumValueOptions.uninterpreted_option: object expected"); + throw TypeError(".google.protobuf.FileOptions.uninterpreted_option: object expected"); message.uninterpreted_option[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpreted_option[i]); } } - if (object[".gogoproto.enumvalue_customname"] != null) - message[".gogoproto.enumvalue_customname"] = String(object[".gogoproto.enumvalue_customname"]); + if (object[".gogoproto.goproto_getters_all"] != null) + message[".gogoproto.goproto_getters_all"] = Boolean(object[".gogoproto.goproto_getters_all"]); + if (object[".gogoproto.goproto_enum_prefix_all"] != null) + message[".gogoproto.goproto_enum_prefix_all"] = Boolean(object[".gogoproto.goproto_enum_prefix_all"]); + if (object[".gogoproto.goproto_stringer_all"] != null) + message[".gogoproto.goproto_stringer_all"] = Boolean(object[".gogoproto.goproto_stringer_all"]); + if (object[".gogoproto.verbose_equal_all"] != null) + message[".gogoproto.verbose_equal_all"] = Boolean(object[".gogoproto.verbose_equal_all"]); + if (object[".gogoproto.face_all"] != null) + message[".gogoproto.face_all"] = Boolean(object[".gogoproto.face_all"]); + if (object[".gogoproto.gostring_all"] != null) + message[".gogoproto.gostring_all"] = Boolean(object[".gogoproto.gostring_all"]); + if (object[".gogoproto.populate_all"] != null) + message[".gogoproto.populate_all"] = Boolean(object[".gogoproto.populate_all"]); + if (object[".gogoproto.stringer_all"] != null) + message[".gogoproto.stringer_all"] = Boolean(object[".gogoproto.stringer_all"]); + if (object[".gogoproto.onlyone_all"] != null) + message[".gogoproto.onlyone_all"] = Boolean(object[".gogoproto.onlyone_all"]); + if (object[".gogoproto.equal_all"] != null) + message[".gogoproto.equal_all"] = Boolean(object[".gogoproto.equal_all"]); + if (object[".gogoproto.description_all"] != null) + message[".gogoproto.description_all"] = Boolean(object[".gogoproto.description_all"]); + if (object[".gogoproto.testgen_all"] != null) + message[".gogoproto.testgen_all"] = Boolean(object[".gogoproto.testgen_all"]); + if (object[".gogoproto.benchgen_all"] != null) + message[".gogoproto.benchgen_all"] = Boolean(object[".gogoproto.benchgen_all"]); + if (object[".gogoproto.marshaler_all"] != null) + message[".gogoproto.marshaler_all"] = Boolean(object[".gogoproto.marshaler_all"]); + if (object[".gogoproto.unmarshaler_all"] != null) + message[".gogoproto.unmarshaler_all"] = Boolean(object[".gogoproto.unmarshaler_all"]); + if (object[".gogoproto.stable_marshaler_all"] != null) + message[".gogoproto.stable_marshaler_all"] = Boolean(object[".gogoproto.stable_marshaler_all"]); + if (object[".gogoproto.sizer_all"] != null) + message[".gogoproto.sizer_all"] = Boolean(object[".gogoproto.sizer_all"]); + if (object[".gogoproto.goproto_enum_stringer_all"] != null) + message[".gogoproto.goproto_enum_stringer_all"] = Boolean(object[".gogoproto.goproto_enum_stringer_all"]); + if (object[".gogoproto.enum_stringer_all"] != null) + message[".gogoproto.enum_stringer_all"] = Boolean(object[".gogoproto.enum_stringer_all"]); + if (object[".gogoproto.unsafe_marshaler_all"] != null) + message[".gogoproto.unsafe_marshaler_all"] = Boolean(object[".gogoproto.unsafe_marshaler_all"]); + if (object[".gogoproto.unsafe_unmarshaler_all"] != null) + message[".gogoproto.unsafe_unmarshaler_all"] = Boolean(object[".gogoproto.unsafe_unmarshaler_all"]); + if (object[".gogoproto.goproto_extensions_map_all"] != null) + message[".gogoproto.goproto_extensions_map_all"] = Boolean(object[".gogoproto.goproto_extensions_map_all"]); + if (object[".gogoproto.goproto_unrecognized_all"] != null) + message[".gogoproto.goproto_unrecognized_all"] = Boolean(object[".gogoproto.goproto_unrecognized_all"]); + if (object[".gogoproto.gogoproto_import"] != null) + message[".gogoproto.gogoproto_import"] = Boolean(object[".gogoproto.gogoproto_import"]); + if (object[".gogoproto.protosizer_all"] != null) + message[".gogoproto.protosizer_all"] = Boolean(object[".gogoproto.protosizer_all"]); + if (object[".gogoproto.compare_all"] != null) + message[".gogoproto.compare_all"] = Boolean(object[".gogoproto.compare_all"]); + if (object[".gogoproto.typedecl_all"] != null) + message[".gogoproto.typedecl_all"] = Boolean(object[".gogoproto.typedecl_all"]); + if (object[".gogoproto.enumdecl_all"] != null) + message[".gogoproto.enumdecl_all"] = Boolean(object[".gogoproto.enumdecl_all"]); + if (object[".gogoproto.goproto_registration"] != null) + message[".gogoproto.goproto_registration"] = Boolean(object[".gogoproto.goproto_registration"]); + if (object[".gogoproto.messagename_all"] != null) + message[".gogoproto.messagename_all"] = Boolean(object[".gogoproto.messagename_all"]); + if (object[".gogoproto.goproto_sizecache_all"] != null) + message[".gogoproto.goproto_sizecache_all"] = Boolean(object[".gogoproto.goproto_sizecache_all"]); + if (object[".gogoproto.goproto_unkeyed_all"] != null) + message[".gogoproto.goproto_unkeyed_all"] = Boolean(object[".gogoproto.goproto_unkeyed_all"]); + if (object[".cosmos_proto.declare_interface"]) { + if (!Array.isArray(object[".cosmos_proto.declare_interface"])) + throw TypeError(".google.protobuf.FileOptions..cosmos_proto.declare_interface: array expected"); + message[".cosmos_proto.declare_interface"] = []; + for (var i = 0; i < object[".cosmos_proto.declare_interface"].length; ++i) { + if (typeof object[".cosmos_proto.declare_interface"][i] !== "object") + throw TypeError(".google.protobuf.FileOptions..cosmos_proto.declare_interface: object expected"); + message[".cosmos_proto.declare_interface"][i] = $root.cosmos_proto.InterfaceDescriptor.fromObject(object[".cosmos_proto.declare_interface"][i]); + } + } + if (object[".cosmos_proto.declare_scalar"]) { + if (!Array.isArray(object[".cosmos_proto.declare_scalar"])) + throw TypeError(".google.protobuf.FileOptions..cosmos_proto.declare_scalar: array expected"); + message[".cosmos_proto.declare_scalar"] = []; + for (var i = 0; i < object[".cosmos_proto.declare_scalar"].length; ++i) { + if (typeof object[".cosmos_proto.declare_scalar"][i] !== "object") + throw TypeError(".google.protobuf.FileOptions..cosmos_proto.declare_scalar: object expected"); + message[".cosmos_proto.declare_scalar"][i] = $root.cosmos_proto.ScalarDescriptor.fromObject(object[".cosmos_proto.declare_scalar"][i]); + } + } return message; }; /** - * Creates a plain object from an EnumValueOptions message. Also converts values to other types if specified. + * Creates a plain object from a FileOptions message. Also converts values to other types if specified. * @function toObject - * @memberof google.protobuf.EnumValueOptions + * @memberof google.protobuf.FileOptions * @static - * @param {google.protobuf.EnumValueOptions} message EnumValueOptions + * @param {google.protobuf.FileOptions} message FileOptions * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - EnumValueOptions.toObject = function toObject(message, options) { + FileOptions.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) + if (options.arrays || options.defaults) { object.uninterpreted_option = []; + object[".cosmos_proto.declare_interface"] = []; + object[".cosmos_proto.declare_scalar"] = []; + } if (options.defaults) { + object.java_package = ""; + object.java_outer_classname = ""; + object.optimize_for = options.enums === String ? "SPEED" : 1; + object.java_multiple_files = false; + object.go_package = ""; + object.cc_generic_services = false; + object.java_generic_services = false; + object.py_generic_services = false; + object.java_generate_equals_and_hash = false; object.deprecated = false; - object[".gogoproto.enumvalue_customname"] = ""; + object.java_string_check_utf8 = false; + object.cc_enable_arenas = false; + object.objc_class_prefix = ""; + object.csharp_namespace = ""; + object[".gogoproto.goproto_getters_all"] = false; + object[".gogoproto.goproto_enum_prefix_all"] = false; + object[".gogoproto.goproto_stringer_all"] = false; + object[".gogoproto.verbose_equal_all"] = false; + object[".gogoproto.face_all"] = false; + object[".gogoproto.gostring_all"] = false; + object[".gogoproto.populate_all"] = false; + object[".gogoproto.stringer_all"] = false; + object[".gogoproto.onlyone_all"] = false; + object[".gogoproto.equal_all"] = false; + object[".gogoproto.description_all"] = false; + object[".gogoproto.testgen_all"] = false; + object[".gogoproto.benchgen_all"] = false; + object[".gogoproto.marshaler_all"] = false; + object[".gogoproto.unmarshaler_all"] = false; + object[".gogoproto.stable_marshaler_all"] = false; + object[".gogoproto.sizer_all"] = false; + object[".gogoproto.goproto_enum_stringer_all"] = false; + object[".gogoproto.enum_stringer_all"] = false; + object[".gogoproto.unsafe_marshaler_all"] = false; + object[".gogoproto.unsafe_unmarshaler_all"] = false; + object[".gogoproto.goproto_extensions_map_all"] = false; + object[".gogoproto.goproto_unrecognized_all"] = false; + object[".gogoproto.gogoproto_import"] = false; + object[".gogoproto.protosizer_all"] = false; + object[".gogoproto.compare_all"] = false; + object[".gogoproto.typedecl_all"] = false; + object[".gogoproto.enumdecl_all"] = false; + object[".gogoproto.goproto_registration"] = false; + object[".gogoproto.messagename_all"] = false; + object[".gogoproto.goproto_sizecache_all"] = false; + object[".gogoproto.goproto_unkeyed_all"] = false; } + if (message.java_package != null && message.hasOwnProperty("java_package")) + object.java_package = message.java_package; + if (message.java_outer_classname != null && message.hasOwnProperty("java_outer_classname")) + object.java_outer_classname = message.java_outer_classname; + if (message.optimize_for != null && message.hasOwnProperty("optimize_for")) + object.optimize_for = options.enums === String ? $root.google.protobuf.FileOptions.OptimizeMode[message.optimize_for] : message.optimize_for; + if (message.java_multiple_files != null && message.hasOwnProperty("java_multiple_files")) + object.java_multiple_files = message.java_multiple_files; + if (message.go_package != null && message.hasOwnProperty("go_package")) + object.go_package = message.go_package; + if (message.cc_generic_services != null && message.hasOwnProperty("cc_generic_services")) + object.cc_generic_services = message.cc_generic_services; + if (message.java_generic_services != null && message.hasOwnProperty("java_generic_services")) + object.java_generic_services = message.java_generic_services; + if (message.py_generic_services != null && message.hasOwnProperty("py_generic_services")) + object.py_generic_services = message.py_generic_services; + if (message.java_generate_equals_and_hash != null && message.hasOwnProperty("java_generate_equals_and_hash")) + object.java_generate_equals_and_hash = message.java_generate_equals_and_hash; if (message.deprecated != null && message.hasOwnProperty("deprecated")) object.deprecated = message.deprecated; + if (message.java_string_check_utf8 != null && message.hasOwnProperty("java_string_check_utf8")) + object.java_string_check_utf8 = message.java_string_check_utf8; + if (message.cc_enable_arenas != null && message.hasOwnProperty("cc_enable_arenas")) + object.cc_enable_arenas = message.cc_enable_arenas; + if (message.objc_class_prefix != null && message.hasOwnProperty("objc_class_prefix")) + object.objc_class_prefix = message.objc_class_prefix; + if (message.csharp_namespace != null && message.hasOwnProperty("csharp_namespace")) + object.csharp_namespace = message.csharp_namespace; if (message.uninterpreted_option && message.uninterpreted_option.length) { object.uninterpreted_option = []; for (var j = 0; j < message.uninterpreted_option.length; ++j) object.uninterpreted_option[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpreted_option[j], options); } - if (message[".gogoproto.enumvalue_customname"] != null && message.hasOwnProperty(".gogoproto.enumvalue_customname")) - object[".gogoproto.enumvalue_customname"] = message[".gogoproto.enumvalue_customname"]; + if (message[".gogoproto.goproto_getters_all"] != null && message.hasOwnProperty(".gogoproto.goproto_getters_all")) + object[".gogoproto.goproto_getters_all"] = message[".gogoproto.goproto_getters_all"]; + if (message[".gogoproto.goproto_enum_prefix_all"] != null && message.hasOwnProperty(".gogoproto.goproto_enum_prefix_all")) + object[".gogoproto.goproto_enum_prefix_all"] = message[".gogoproto.goproto_enum_prefix_all"]; + if (message[".gogoproto.goproto_stringer_all"] != null && message.hasOwnProperty(".gogoproto.goproto_stringer_all")) + object[".gogoproto.goproto_stringer_all"] = message[".gogoproto.goproto_stringer_all"]; + if (message[".gogoproto.verbose_equal_all"] != null && message.hasOwnProperty(".gogoproto.verbose_equal_all")) + object[".gogoproto.verbose_equal_all"] = message[".gogoproto.verbose_equal_all"]; + if (message[".gogoproto.face_all"] != null && message.hasOwnProperty(".gogoproto.face_all")) + object[".gogoproto.face_all"] = message[".gogoproto.face_all"]; + if (message[".gogoproto.gostring_all"] != null && message.hasOwnProperty(".gogoproto.gostring_all")) + object[".gogoproto.gostring_all"] = message[".gogoproto.gostring_all"]; + if (message[".gogoproto.populate_all"] != null && message.hasOwnProperty(".gogoproto.populate_all")) + object[".gogoproto.populate_all"] = message[".gogoproto.populate_all"]; + if (message[".gogoproto.stringer_all"] != null && message.hasOwnProperty(".gogoproto.stringer_all")) + object[".gogoproto.stringer_all"] = message[".gogoproto.stringer_all"]; + if (message[".gogoproto.onlyone_all"] != null && message.hasOwnProperty(".gogoproto.onlyone_all")) + object[".gogoproto.onlyone_all"] = message[".gogoproto.onlyone_all"]; + if (message[".gogoproto.equal_all"] != null && message.hasOwnProperty(".gogoproto.equal_all")) + object[".gogoproto.equal_all"] = message[".gogoproto.equal_all"]; + if (message[".gogoproto.description_all"] != null && message.hasOwnProperty(".gogoproto.description_all")) + object[".gogoproto.description_all"] = message[".gogoproto.description_all"]; + if (message[".gogoproto.testgen_all"] != null && message.hasOwnProperty(".gogoproto.testgen_all")) + object[".gogoproto.testgen_all"] = message[".gogoproto.testgen_all"]; + if (message[".gogoproto.benchgen_all"] != null && message.hasOwnProperty(".gogoproto.benchgen_all")) + object[".gogoproto.benchgen_all"] = message[".gogoproto.benchgen_all"]; + if (message[".gogoproto.marshaler_all"] != null && message.hasOwnProperty(".gogoproto.marshaler_all")) + object[".gogoproto.marshaler_all"] = message[".gogoproto.marshaler_all"]; + if (message[".gogoproto.unmarshaler_all"] != null && message.hasOwnProperty(".gogoproto.unmarshaler_all")) + object[".gogoproto.unmarshaler_all"] = message[".gogoproto.unmarshaler_all"]; + if (message[".gogoproto.stable_marshaler_all"] != null && message.hasOwnProperty(".gogoproto.stable_marshaler_all")) + object[".gogoproto.stable_marshaler_all"] = message[".gogoproto.stable_marshaler_all"]; + if (message[".gogoproto.sizer_all"] != null && message.hasOwnProperty(".gogoproto.sizer_all")) + object[".gogoproto.sizer_all"] = message[".gogoproto.sizer_all"]; + if (message[".gogoproto.goproto_enum_stringer_all"] != null && message.hasOwnProperty(".gogoproto.goproto_enum_stringer_all")) + object[".gogoproto.goproto_enum_stringer_all"] = message[".gogoproto.goproto_enum_stringer_all"]; + if (message[".gogoproto.enum_stringer_all"] != null && message.hasOwnProperty(".gogoproto.enum_stringer_all")) + object[".gogoproto.enum_stringer_all"] = message[".gogoproto.enum_stringer_all"]; + if (message[".gogoproto.unsafe_marshaler_all"] != null && message.hasOwnProperty(".gogoproto.unsafe_marshaler_all")) + object[".gogoproto.unsafe_marshaler_all"] = message[".gogoproto.unsafe_marshaler_all"]; + if (message[".gogoproto.unsafe_unmarshaler_all"] != null && message.hasOwnProperty(".gogoproto.unsafe_unmarshaler_all")) + object[".gogoproto.unsafe_unmarshaler_all"] = message[".gogoproto.unsafe_unmarshaler_all"]; + if (message[".gogoproto.goproto_extensions_map_all"] != null && message.hasOwnProperty(".gogoproto.goproto_extensions_map_all")) + object[".gogoproto.goproto_extensions_map_all"] = message[".gogoproto.goproto_extensions_map_all"]; + if (message[".gogoproto.goproto_unrecognized_all"] != null && message.hasOwnProperty(".gogoproto.goproto_unrecognized_all")) + object[".gogoproto.goproto_unrecognized_all"] = message[".gogoproto.goproto_unrecognized_all"]; + if (message[".gogoproto.gogoproto_import"] != null && message.hasOwnProperty(".gogoproto.gogoproto_import")) + object[".gogoproto.gogoproto_import"] = message[".gogoproto.gogoproto_import"]; + if (message[".gogoproto.protosizer_all"] != null && message.hasOwnProperty(".gogoproto.protosizer_all")) + object[".gogoproto.protosizer_all"] = message[".gogoproto.protosizer_all"]; + if (message[".gogoproto.compare_all"] != null && message.hasOwnProperty(".gogoproto.compare_all")) + object[".gogoproto.compare_all"] = message[".gogoproto.compare_all"]; + if (message[".gogoproto.typedecl_all"] != null && message.hasOwnProperty(".gogoproto.typedecl_all")) + object[".gogoproto.typedecl_all"] = message[".gogoproto.typedecl_all"]; + if (message[".gogoproto.enumdecl_all"] != null && message.hasOwnProperty(".gogoproto.enumdecl_all")) + object[".gogoproto.enumdecl_all"] = message[".gogoproto.enumdecl_all"]; + if (message[".gogoproto.goproto_registration"] != null && message.hasOwnProperty(".gogoproto.goproto_registration")) + object[".gogoproto.goproto_registration"] = message[".gogoproto.goproto_registration"]; + if (message[".gogoproto.messagename_all"] != null && message.hasOwnProperty(".gogoproto.messagename_all")) + object[".gogoproto.messagename_all"] = message[".gogoproto.messagename_all"]; + if (message[".gogoproto.goproto_sizecache_all"] != null && message.hasOwnProperty(".gogoproto.goproto_sizecache_all")) + object[".gogoproto.goproto_sizecache_all"] = message[".gogoproto.goproto_sizecache_all"]; + if (message[".gogoproto.goproto_unkeyed_all"] != null && message.hasOwnProperty(".gogoproto.goproto_unkeyed_all")) + object[".gogoproto.goproto_unkeyed_all"] = message[".gogoproto.goproto_unkeyed_all"]; + if (message[".cosmos_proto.declare_interface"] && message[".cosmos_proto.declare_interface"].length) { + object[".cosmos_proto.declare_interface"] = []; + for (var j = 0; j < message[".cosmos_proto.declare_interface"].length; ++j) + object[".cosmos_proto.declare_interface"][j] = $root.cosmos_proto.InterfaceDescriptor.toObject(message[".cosmos_proto.declare_interface"][j], options); + } + if (message[".cosmos_proto.declare_scalar"] && message[".cosmos_proto.declare_scalar"].length) { + object[".cosmos_proto.declare_scalar"] = []; + for (var j = 0; j < message[".cosmos_proto.declare_scalar"].length; ++j) + object[".cosmos_proto.declare_scalar"][j] = $root.cosmos_proto.ScalarDescriptor.toObject(message[".cosmos_proto.declare_scalar"][j], options); + } return object; }; /** - * Converts this EnumValueOptions to JSON. + * Converts this FileOptions to JSON. * @function toJSON - * @memberof google.protobuf.EnumValueOptions + * @memberof google.protobuf.FileOptions * @instance * @returns {Object.} JSON object */ - EnumValueOptions.prototype.toJSON = function toJSON() { + FileOptions.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return EnumValueOptions; + /** + * OptimizeMode enum. + * @name google.protobuf.FileOptions.OptimizeMode + * @enum {number} + * @property {number} SPEED=1 SPEED value + * @property {number} CODE_SIZE=2 CODE_SIZE value + * @property {number} LITE_RUNTIME=3 LITE_RUNTIME value + */ + FileOptions.OptimizeMode = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[1] = "SPEED"] = 1; + values[valuesById[2] = "CODE_SIZE"] = 2; + values[valuesById[3] = "LITE_RUNTIME"] = 3; + return values; + })(); + + return FileOptions; })(); - protobuf.ServiceOptions = (function() { + protobuf.MessageOptions = (function() { /** - * Properties of a ServiceOptions. + * Properties of a MessageOptions. * @memberof google.protobuf - * @interface IServiceOptions - * @property {boolean|null} [deprecated] ServiceOptions deprecated - * @property {Array.|null} [uninterpreted_option] ServiceOptions uninterpreted_option + * @interface IMessageOptions + * @property {boolean|null} [message_set_wire_format] MessageOptions message_set_wire_format + * @property {boolean|null} [no_standard_descriptor_accessor] MessageOptions no_standard_descriptor_accessor + * @property {boolean|null} [deprecated] MessageOptions deprecated + * @property {boolean|null} [map_entry] MessageOptions map_entry + * @property {Array.|null} [uninterpreted_option] MessageOptions uninterpreted_option + * @property {boolean|null} [".gogoproto.goproto_getters"] MessageOptions .gogoproto.goproto_getters + * @property {boolean|null} [".gogoproto.goproto_stringer"] MessageOptions .gogoproto.goproto_stringer + * @property {boolean|null} [".gogoproto.verbose_equal"] MessageOptions .gogoproto.verbose_equal + * @property {boolean|null} [".gogoproto.face"] MessageOptions .gogoproto.face + * @property {boolean|null} [".gogoproto.gostring"] MessageOptions .gogoproto.gostring + * @property {boolean|null} [".gogoproto.populate"] MessageOptions .gogoproto.populate + * @property {boolean|null} [".gogoproto.stringer"] MessageOptions .gogoproto.stringer + * @property {boolean|null} [".gogoproto.onlyone"] MessageOptions .gogoproto.onlyone + * @property {boolean|null} [".gogoproto.equal"] MessageOptions .gogoproto.equal + * @property {boolean|null} [".gogoproto.description"] MessageOptions .gogoproto.description + * @property {boolean|null} [".gogoproto.testgen"] MessageOptions .gogoproto.testgen + * @property {boolean|null} [".gogoproto.benchgen"] MessageOptions .gogoproto.benchgen + * @property {boolean|null} [".gogoproto.marshaler"] MessageOptions .gogoproto.marshaler + * @property {boolean|null} [".gogoproto.unmarshaler"] MessageOptions .gogoproto.unmarshaler + * @property {boolean|null} [".gogoproto.stable_marshaler"] MessageOptions .gogoproto.stable_marshaler + * @property {boolean|null} [".gogoproto.sizer"] MessageOptions .gogoproto.sizer + * @property {boolean|null} [".gogoproto.unsafe_marshaler"] MessageOptions .gogoproto.unsafe_marshaler + * @property {boolean|null} [".gogoproto.unsafe_unmarshaler"] MessageOptions .gogoproto.unsafe_unmarshaler + * @property {boolean|null} [".gogoproto.goproto_extensions_map"] MessageOptions .gogoproto.goproto_extensions_map + * @property {boolean|null} [".gogoproto.goproto_unrecognized"] MessageOptions .gogoproto.goproto_unrecognized + * @property {boolean|null} [".gogoproto.protosizer"] MessageOptions .gogoproto.protosizer + * @property {boolean|null} [".gogoproto.compare"] MessageOptions .gogoproto.compare + * @property {boolean|null} [".gogoproto.typedecl"] MessageOptions .gogoproto.typedecl + * @property {boolean|null} [".gogoproto.messagename"] MessageOptions .gogoproto.messagename + * @property {boolean|null} [".gogoproto.goproto_sizecache"] MessageOptions .gogoproto.goproto_sizecache + * @property {boolean|null} [".gogoproto.goproto_unkeyed"] MessageOptions .gogoproto.goproto_unkeyed + * @property {Array.|null} [".cosmos_proto.implements_interface"] MessageOptions .cosmos_proto.implements_interface + * @property {string|null} [".amino.name"] MessageOptions .amino.name + * @property {string|null} [".amino.message_encoding"] MessageOptions .amino.message_encoding */ /** - * Constructs a new ServiceOptions. + * Constructs a new MessageOptions. * @memberof google.protobuf - * @classdesc Represents a ServiceOptions. - * @implements IServiceOptions + * @classdesc Represents a MessageOptions. + * @implements IMessageOptions * @constructor - * @param {google.protobuf.IServiceOptions=} [properties] Properties to set + * @param {google.protobuf.IMessageOptions=} [properties] Properties to set */ - function ServiceOptions(properties) { + function MessageOptions(properties) { this.uninterpreted_option = []; + this[".cosmos_proto.implements_interface"] = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -14674,615 +20733,498 @@ } /** - * ServiceOptions deprecated. - * @member {boolean} deprecated - * @memberof google.protobuf.ServiceOptions + * MessageOptions message_set_wire_format. + * @member {boolean} message_set_wire_format + * @memberof google.protobuf.MessageOptions * @instance */ - ServiceOptions.prototype.deprecated = false; + MessageOptions.prototype.message_set_wire_format = false; /** - * ServiceOptions uninterpreted_option. - * @member {Array.} uninterpreted_option - * @memberof google.protobuf.ServiceOptions + * MessageOptions no_standard_descriptor_accessor. + * @member {boolean} no_standard_descriptor_accessor + * @memberof google.protobuf.MessageOptions * @instance */ - ServiceOptions.prototype.uninterpreted_option = $util.emptyArray; + MessageOptions.prototype.no_standard_descriptor_accessor = false; /** - * Encodes the specified ServiceOptions message. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages. - * @function encode - * @memberof google.protobuf.ServiceOptions - * @static - * @param {google.protobuf.IServiceOptions} message ServiceOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * MessageOptions deprecated. + * @member {boolean} deprecated + * @memberof google.protobuf.MessageOptions + * @instance */ - ServiceOptions.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) - writer.uint32(/* id 33, wireType 0 =*/264).bool(message.deprecated); - if (message.uninterpreted_option != null && message.uninterpreted_option.length) - for (var i = 0; i < message.uninterpreted_option.length; ++i) - $root.google.protobuf.UninterpretedOption.encode(message.uninterpreted_option[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); - return writer; - }; + MessageOptions.prototype.deprecated = false; /** - * Encodes the specified ServiceOptions message, length delimited. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.ServiceOptions - * @static - * @param {google.protobuf.IServiceOptions} message ServiceOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * MessageOptions map_entry. + * @member {boolean} map_entry + * @memberof google.protobuf.MessageOptions + * @instance */ - ServiceOptions.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + MessageOptions.prototype.map_entry = false; /** - * Decodes a ServiceOptions message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.ServiceOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.ServiceOptions} ServiceOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * MessageOptions uninterpreted_option. + * @member {Array.} uninterpreted_option + * @memberof google.protobuf.MessageOptions + * @instance */ - ServiceOptions.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.ServiceOptions(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 33: - message.deprecated = reader.bool(); - break; - case 999: - if (!(message.uninterpreted_option && message.uninterpreted_option.length)) - message.uninterpreted_option = []; - message.uninterpreted_option.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + MessageOptions.prototype.uninterpreted_option = $util.emptyArray; /** - * Decodes a ServiceOptions message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.ServiceOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.ServiceOptions} ServiceOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * MessageOptions .gogoproto.goproto_getters. + * @member {boolean} .gogoproto.goproto_getters + * @memberof google.protobuf.MessageOptions + * @instance */ - ServiceOptions.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + MessageOptions.prototype[".gogoproto.goproto_getters"] = false; /** - * Verifies a ServiceOptions message. - * @function verify - * @memberof google.protobuf.ServiceOptions - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * MessageOptions .gogoproto.goproto_stringer. + * @member {boolean} .gogoproto.goproto_stringer + * @memberof google.protobuf.MessageOptions + * @instance */ - ServiceOptions.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.deprecated != null && message.hasOwnProperty("deprecated")) - if (typeof message.deprecated !== "boolean") - return "deprecated: boolean expected"; - if (message.uninterpreted_option != null && message.hasOwnProperty("uninterpreted_option")) { - if (!Array.isArray(message.uninterpreted_option)) - return "uninterpreted_option: array expected"; - for (var i = 0; i < message.uninterpreted_option.length; ++i) { - var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpreted_option[i]); - if (error) - return "uninterpreted_option." + error; - } - } - return null; - }; + MessageOptions.prototype[".gogoproto.goproto_stringer"] = false; /** - * Creates a ServiceOptions message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.ServiceOptions - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.ServiceOptions} ServiceOptions + * MessageOptions .gogoproto.verbose_equal. + * @member {boolean} .gogoproto.verbose_equal + * @memberof google.protobuf.MessageOptions + * @instance */ - ServiceOptions.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.ServiceOptions) - return object; - var message = new $root.google.protobuf.ServiceOptions(); - if (object.deprecated != null) - message.deprecated = Boolean(object.deprecated); - if (object.uninterpreted_option) { - if (!Array.isArray(object.uninterpreted_option)) - throw TypeError(".google.protobuf.ServiceOptions.uninterpreted_option: array expected"); - message.uninterpreted_option = []; - for (var i = 0; i < object.uninterpreted_option.length; ++i) { - if (typeof object.uninterpreted_option[i] !== "object") - throw TypeError(".google.protobuf.ServiceOptions.uninterpreted_option: object expected"); - message.uninterpreted_option[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpreted_option[i]); - } - } - return message; - }; + MessageOptions.prototype[".gogoproto.verbose_equal"] = false; /** - * Creates a plain object from a ServiceOptions message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.ServiceOptions - * @static - * @param {google.protobuf.ServiceOptions} message ServiceOptions - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * MessageOptions .gogoproto.face. + * @member {boolean} .gogoproto.face + * @memberof google.protobuf.MessageOptions + * @instance */ - ServiceOptions.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.uninterpreted_option = []; - if (options.defaults) - object.deprecated = false; - if (message.deprecated != null && message.hasOwnProperty("deprecated")) - object.deprecated = message.deprecated; - if (message.uninterpreted_option && message.uninterpreted_option.length) { - object.uninterpreted_option = []; - for (var j = 0; j < message.uninterpreted_option.length; ++j) - object.uninterpreted_option[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpreted_option[j], options); - } - return object; - }; + MessageOptions.prototype[".gogoproto.face"] = false; /** - * Converts this ServiceOptions to JSON. - * @function toJSON - * @memberof google.protobuf.ServiceOptions + * MessageOptions .gogoproto.gostring. + * @member {boolean} .gogoproto.gostring + * @memberof google.protobuf.MessageOptions * @instance - * @returns {Object.} JSON object */ - ServiceOptions.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ServiceOptions; - })(); - - protobuf.MethodOptions = (function() { + MessageOptions.prototype[".gogoproto.gostring"] = false; /** - * Properties of a MethodOptions. - * @memberof google.protobuf - * @interface IMethodOptions - * @property {boolean|null} [deprecated] MethodOptions deprecated - * @property {Array.|null} [uninterpreted_option] MethodOptions uninterpreted_option - * @property {google.api.IHttpRule|null} [".google.api.http"] MethodOptions .google.api.http + * MessageOptions .gogoproto.populate. + * @member {boolean} .gogoproto.populate + * @memberof google.protobuf.MessageOptions + * @instance */ + MessageOptions.prototype[".gogoproto.populate"] = false; /** - * Constructs a new MethodOptions. - * @memberof google.protobuf - * @classdesc Represents a MethodOptions. - * @implements IMethodOptions - * @constructor - * @param {google.protobuf.IMethodOptions=} [properties] Properties to set + * MessageOptions .gogoproto.stringer. + * @member {boolean} .gogoproto.stringer + * @memberof google.protobuf.MessageOptions + * @instance */ - function MethodOptions(properties) { - this.uninterpreted_option = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + MessageOptions.prototype[".gogoproto.stringer"] = false; /** - * MethodOptions deprecated. - * @member {boolean} deprecated - * @memberof google.protobuf.MethodOptions + * MessageOptions .gogoproto.onlyone. + * @member {boolean} .gogoproto.onlyone + * @memberof google.protobuf.MessageOptions * @instance */ - MethodOptions.prototype.deprecated = false; + MessageOptions.prototype[".gogoproto.onlyone"] = false; /** - * MethodOptions uninterpreted_option. - * @member {Array.} uninterpreted_option - * @memberof google.protobuf.MethodOptions + * MessageOptions .gogoproto.equal. + * @member {boolean} .gogoproto.equal + * @memberof google.protobuf.MessageOptions * @instance */ - MethodOptions.prototype.uninterpreted_option = $util.emptyArray; + MessageOptions.prototype[".gogoproto.equal"] = false; /** - * MethodOptions .google.api.http. - * @member {google.api.IHttpRule|null|undefined} .google.api.http - * @memberof google.protobuf.MethodOptions + * MessageOptions .gogoproto.description. + * @member {boolean} .gogoproto.description + * @memberof google.protobuf.MessageOptions * @instance */ - MethodOptions.prototype[".google.api.http"] = null; + MessageOptions.prototype[".gogoproto.description"] = false; /** - * Encodes the specified MethodOptions message. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages. - * @function encode - * @memberof google.protobuf.MethodOptions - * @static - * @param {google.protobuf.IMethodOptions} message MethodOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * MessageOptions .gogoproto.testgen. + * @member {boolean} .gogoproto.testgen + * @memberof google.protobuf.MessageOptions + * @instance */ - MethodOptions.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) - writer.uint32(/* id 33, wireType 0 =*/264).bool(message.deprecated); - if (message.uninterpreted_option != null && message.uninterpreted_option.length) - for (var i = 0; i < message.uninterpreted_option.length; ++i) - $root.google.protobuf.UninterpretedOption.encode(message.uninterpreted_option[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); - if (message[".google.api.http"] != null && Object.hasOwnProperty.call(message, ".google.api.http")) - $root.google.api.HttpRule.encode(message[".google.api.http"], writer.uint32(/* id 72295728, wireType 2 =*/578365826).fork()).ldelim(); - return writer; - }; + MessageOptions.prototype[".gogoproto.testgen"] = false; /** - * Encodes the specified MethodOptions message, length delimited. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.MethodOptions - * @static - * @param {google.protobuf.IMethodOptions} message MethodOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * MessageOptions .gogoproto.benchgen. + * @member {boolean} .gogoproto.benchgen + * @memberof google.protobuf.MessageOptions + * @instance */ - MethodOptions.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + MessageOptions.prototype[".gogoproto.benchgen"] = false; /** - * Decodes a MethodOptions message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.MethodOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.MethodOptions} MethodOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * MessageOptions .gogoproto.marshaler. + * @member {boolean} .gogoproto.marshaler + * @memberof google.protobuf.MessageOptions + * @instance */ - MethodOptions.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.MethodOptions(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 33: - message.deprecated = reader.bool(); - break; - case 999: - if (!(message.uninterpreted_option && message.uninterpreted_option.length)) - message.uninterpreted_option = []; - message.uninterpreted_option.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); - break; - case 72295728: - message[".google.api.http"] = $root.google.api.HttpRule.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + MessageOptions.prototype[".gogoproto.marshaler"] = false; /** - * Decodes a MethodOptions message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.MethodOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.MethodOptions} MethodOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * MessageOptions .gogoproto.unmarshaler. + * @member {boolean} .gogoproto.unmarshaler + * @memberof google.protobuf.MessageOptions + * @instance */ - MethodOptions.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + MessageOptions.prototype[".gogoproto.unmarshaler"] = false; + + /** + * MessageOptions .gogoproto.stable_marshaler. + * @member {boolean} .gogoproto.stable_marshaler + * @memberof google.protobuf.MessageOptions + * @instance + */ + MessageOptions.prototype[".gogoproto.stable_marshaler"] = false; /** - * Verifies a MethodOptions message. - * @function verify - * @memberof google.protobuf.MethodOptions - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * MessageOptions .gogoproto.sizer. + * @member {boolean} .gogoproto.sizer + * @memberof google.protobuf.MessageOptions + * @instance */ - MethodOptions.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.deprecated != null && message.hasOwnProperty("deprecated")) - if (typeof message.deprecated !== "boolean") - return "deprecated: boolean expected"; - if (message.uninterpreted_option != null && message.hasOwnProperty("uninterpreted_option")) { - if (!Array.isArray(message.uninterpreted_option)) - return "uninterpreted_option: array expected"; - for (var i = 0; i < message.uninterpreted_option.length; ++i) { - var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpreted_option[i]); - if (error) - return "uninterpreted_option." + error; - } - } - if (message[".google.api.http"] != null && message.hasOwnProperty(".google.api.http")) { - var error = $root.google.api.HttpRule.verify(message[".google.api.http"]); - if (error) - return ".google.api.http." + error; - } - return null; - }; + MessageOptions.prototype[".gogoproto.sizer"] = false; /** - * Creates a MethodOptions message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.MethodOptions - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.MethodOptions} MethodOptions + * MessageOptions .gogoproto.unsafe_marshaler. + * @member {boolean} .gogoproto.unsafe_marshaler + * @memberof google.protobuf.MessageOptions + * @instance */ - MethodOptions.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.MethodOptions) - return object; - var message = new $root.google.protobuf.MethodOptions(); - if (object.deprecated != null) - message.deprecated = Boolean(object.deprecated); - if (object.uninterpreted_option) { - if (!Array.isArray(object.uninterpreted_option)) - throw TypeError(".google.protobuf.MethodOptions.uninterpreted_option: array expected"); - message.uninterpreted_option = []; - for (var i = 0; i < object.uninterpreted_option.length; ++i) { - if (typeof object.uninterpreted_option[i] !== "object") - throw TypeError(".google.protobuf.MethodOptions.uninterpreted_option: object expected"); - message.uninterpreted_option[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpreted_option[i]); - } - } - if (object[".google.api.http"] != null) { - if (typeof object[".google.api.http"] !== "object") - throw TypeError(".google.protobuf.MethodOptions..google.api.http: object expected"); - message[".google.api.http"] = $root.google.api.HttpRule.fromObject(object[".google.api.http"]); - } - return message; - }; + MessageOptions.prototype[".gogoproto.unsafe_marshaler"] = false; /** - * Creates a plain object from a MethodOptions message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.MethodOptions - * @static - * @param {google.protobuf.MethodOptions} message MethodOptions - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * MessageOptions .gogoproto.unsafe_unmarshaler. + * @member {boolean} .gogoproto.unsafe_unmarshaler + * @memberof google.protobuf.MessageOptions + * @instance */ - MethodOptions.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.uninterpreted_option = []; - if (options.defaults) { - object.deprecated = false; - object[".google.api.http"] = null; - } - if (message.deprecated != null && message.hasOwnProperty("deprecated")) - object.deprecated = message.deprecated; - if (message.uninterpreted_option && message.uninterpreted_option.length) { - object.uninterpreted_option = []; - for (var j = 0; j < message.uninterpreted_option.length; ++j) - object.uninterpreted_option[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpreted_option[j], options); - } - if (message[".google.api.http"] != null && message.hasOwnProperty(".google.api.http")) - object[".google.api.http"] = $root.google.api.HttpRule.toObject(message[".google.api.http"], options); - return object; - }; + MessageOptions.prototype[".gogoproto.unsafe_unmarshaler"] = false; /** - * Converts this MethodOptions to JSON. - * @function toJSON - * @memberof google.protobuf.MethodOptions + * MessageOptions .gogoproto.goproto_extensions_map. + * @member {boolean} .gogoproto.goproto_extensions_map + * @memberof google.protobuf.MessageOptions * @instance - * @returns {Object.} JSON object */ - MethodOptions.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return MethodOptions; - })(); + MessageOptions.prototype[".gogoproto.goproto_extensions_map"] = false; - protobuf.UninterpretedOption = (function() { + /** + * MessageOptions .gogoproto.goproto_unrecognized. + * @member {boolean} .gogoproto.goproto_unrecognized + * @memberof google.protobuf.MessageOptions + * @instance + */ + MessageOptions.prototype[".gogoproto.goproto_unrecognized"] = false; /** - * Properties of an UninterpretedOption. - * @memberof google.protobuf - * @interface IUninterpretedOption - * @property {Array.|null} [name] UninterpretedOption name - * @property {string|null} [identifier_value] UninterpretedOption identifier_value - * @property {Long|null} [positive_int_value] UninterpretedOption positive_int_value - * @property {Long|null} [negative_int_value] UninterpretedOption negative_int_value - * @property {number|null} [double_value] UninterpretedOption double_value - * @property {Uint8Array|null} [string_value] UninterpretedOption string_value - * @property {string|null} [aggregate_value] UninterpretedOption aggregate_value + * MessageOptions .gogoproto.protosizer. + * @member {boolean} .gogoproto.protosizer + * @memberof google.protobuf.MessageOptions + * @instance */ + MessageOptions.prototype[".gogoproto.protosizer"] = false; /** - * Constructs a new UninterpretedOption. - * @memberof google.protobuf - * @classdesc Represents an UninterpretedOption. - * @implements IUninterpretedOption - * @constructor - * @param {google.protobuf.IUninterpretedOption=} [properties] Properties to set + * MessageOptions .gogoproto.compare. + * @member {boolean} .gogoproto.compare + * @memberof google.protobuf.MessageOptions + * @instance */ - function UninterpretedOption(properties) { - this.name = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + MessageOptions.prototype[".gogoproto.compare"] = false; /** - * UninterpretedOption name. - * @member {Array.} name - * @memberof google.protobuf.UninterpretedOption + * MessageOptions .gogoproto.typedecl. + * @member {boolean} .gogoproto.typedecl + * @memberof google.protobuf.MessageOptions * @instance */ - UninterpretedOption.prototype.name = $util.emptyArray; + MessageOptions.prototype[".gogoproto.typedecl"] = false; /** - * UninterpretedOption identifier_value. - * @member {string} identifier_value - * @memberof google.protobuf.UninterpretedOption + * MessageOptions .gogoproto.messagename. + * @member {boolean} .gogoproto.messagename + * @memberof google.protobuf.MessageOptions * @instance */ - UninterpretedOption.prototype.identifier_value = ""; + MessageOptions.prototype[".gogoproto.messagename"] = false; /** - * UninterpretedOption positive_int_value. - * @member {Long} positive_int_value - * @memberof google.protobuf.UninterpretedOption + * MessageOptions .gogoproto.goproto_sizecache. + * @member {boolean} .gogoproto.goproto_sizecache + * @memberof google.protobuf.MessageOptions * @instance */ - UninterpretedOption.prototype.positive_int_value = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + MessageOptions.prototype[".gogoproto.goproto_sizecache"] = false; /** - * UninterpretedOption negative_int_value. - * @member {Long} negative_int_value - * @memberof google.protobuf.UninterpretedOption + * MessageOptions .gogoproto.goproto_unkeyed. + * @member {boolean} .gogoproto.goproto_unkeyed + * @memberof google.protobuf.MessageOptions * @instance */ - UninterpretedOption.prototype.negative_int_value = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + MessageOptions.prototype[".gogoproto.goproto_unkeyed"] = false; /** - * UninterpretedOption double_value. - * @member {number} double_value - * @memberof google.protobuf.UninterpretedOption + * MessageOptions .cosmos_proto.implements_interface. + * @member {Array.} .cosmos_proto.implements_interface + * @memberof google.protobuf.MessageOptions * @instance */ - UninterpretedOption.prototype.double_value = 0; + MessageOptions.prototype[".cosmos_proto.implements_interface"] = $util.emptyArray; /** - * UninterpretedOption string_value. - * @member {Uint8Array} string_value - * @memberof google.protobuf.UninterpretedOption + * MessageOptions .amino.name. + * @member {string} .amino.name + * @memberof google.protobuf.MessageOptions * @instance */ - UninterpretedOption.prototype.string_value = $util.newBuffer([]); + MessageOptions.prototype[".amino.name"] = ""; /** - * UninterpretedOption aggregate_value. - * @member {string} aggregate_value - * @memberof google.protobuf.UninterpretedOption + * MessageOptions .amino.message_encoding. + * @member {string} .amino.message_encoding + * @memberof google.protobuf.MessageOptions * @instance */ - UninterpretedOption.prototype.aggregate_value = ""; + MessageOptions.prototype[".amino.message_encoding"] = ""; /** - * Encodes the specified UninterpretedOption message. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages. + * Encodes the specified MessageOptions message. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages. * @function encode - * @memberof google.protobuf.UninterpretedOption + * @memberof google.protobuf.MessageOptions * @static - * @param {google.protobuf.IUninterpretedOption} message UninterpretedOption message or plain object to encode + * @param {google.protobuf.IMessageOptions} message MessageOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UninterpretedOption.encode = function encode(message, writer) { + MessageOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && message.name.length) - for (var i = 0; i < message.name.length; ++i) - $root.google.protobuf.UninterpretedOption.NamePart.encode(message.name[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.identifier_value != null && Object.hasOwnProperty.call(message, "identifier_value")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.identifier_value); - if (message.positive_int_value != null && Object.hasOwnProperty.call(message, "positive_int_value")) - writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.positive_int_value); - if (message.negative_int_value != null && Object.hasOwnProperty.call(message, "negative_int_value")) - writer.uint32(/* id 5, wireType 0 =*/40).int64(message.negative_int_value); - if (message.double_value != null && Object.hasOwnProperty.call(message, "double_value")) - writer.uint32(/* id 6, wireType 1 =*/49).double(message.double_value); - if (message.string_value != null && Object.hasOwnProperty.call(message, "string_value")) - writer.uint32(/* id 7, wireType 2 =*/58).bytes(message.string_value); - if (message.aggregate_value != null && Object.hasOwnProperty.call(message, "aggregate_value")) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.aggregate_value); + if (message.message_set_wire_format != null && Object.hasOwnProperty.call(message, "message_set_wire_format")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.message_set_wire_format); + if (message.no_standard_descriptor_accessor != null && Object.hasOwnProperty.call(message, "no_standard_descriptor_accessor")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.no_standard_descriptor_accessor); + if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.deprecated); + if (message.map_entry != null && Object.hasOwnProperty.call(message, "map_entry")) + writer.uint32(/* id 7, wireType 0 =*/56).bool(message.map_entry); + if (message.uninterpreted_option != null && message.uninterpreted_option.length) + for (var i = 0; i < message.uninterpreted_option.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpreted_option[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + if (message[".gogoproto.goproto_getters"] != null && Object.hasOwnProperty.call(message, ".gogoproto.goproto_getters")) + writer.uint32(/* id 64001, wireType 0 =*/512008).bool(message[".gogoproto.goproto_getters"]); + if (message[".gogoproto.goproto_stringer"] != null && Object.hasOwnProperty.call(message, ".gogoproto.goproto_stringer")) + writer.uint32(/* id 64003, wireType 0 =*/512024).bool(message[".gogoproto.goproto_stringer"]); + if (message[".gogoproto.verbose_equal"] != null && Object.hasOwnProperty.call(message, ".gogoproto.verbose_equal")) + writer.uint32(/* id 64004, wireType 0 =*/512032).bool(message[".gogoproto.verbose_equal"]); + if (message[".gogoproto.face"] != null && Object.hasOwnProperty.call(message, ".gogoproto.face")) + writer.uint32(/* id 64005, wireType 0 =*/512040).bool(message[".gogoproto.face"]); + if (message[".gogoproto.gostring"] != null && Object.hasOwnProperty.call(message, ".gogoproto.gostring")) + writer.uint32(/* id 64006, wireType 0 =*/512048).bool(message[".gogoproto.gostring"]); + if (message[".gogoproto.populate"] != null && Object.hasOwnProperty.call(message, ".gogoproto.populate")) + writer.uint32(/* id 64007, wireType 0 =*/512056).bool(message[".gogoproto.populate"]); + if (message[".gogoproto.onlyone"] != null && Object.hasOwnProperty.call(message, ".gogoproto.onlyone")) + writer.uint32(/* id 64009, wireType 0 =*/512072).bool(message[".gogoproto.onlyone"]); + if (message[".gogoproto.equal"] != null && Object.hasOwnProperty.call(message, ".gogoproto.equal")) + writer.uint32(/* id 64013, wireType 0 =*/512104).bool(message[".gogoproto.equal"]); + if (message[".gogoproto.description"] != null && Object.hasOwnProperty.call(message, ".gogoproto.description")) + writer.uint32(/* id 64014, wireType 0 =*/512112).bool(message[".gogoproto.description"]); + if (message[".gogoproto.testgen"] != null && Object.hasOwnProperty.call(message, ".gogoproto.testgen")) + writer.uint32(/* id 64015, wireType 0 =*/512120).bool(message[".gogoproto.testgen"]); + if (message[".gogoproto.benchgen"] != null && Object.hasOwnProperty.call(message, ".gogoproto.benchgen")) + writer.uint32(/* id 64016, wireType 0 =*/512128).bool(message[".gogoproto.benchgen"]); + if (message[".gogoproto.marshaler"] != null && Object.hasOwnProperty.call(message, ".gogoproto.marshaler")) + writer.uint32(/* id 64017, wireType 0 =*/512136).bool(message[".gogoproto.marshaler"]); + if (message[".gogoproto.unmarshaler"] != null && Object.hasOwnProperty.call(message, ".gogoproto.unmarshaler")) + writer.uint32(/* id 64018, wireType 0 =*/512144).bool(message[".gogoproto.unmarshaler"]); + if (message[".gogoproto.stable_marshaler"] != null && Object.hasOwnProperty.call(message, ".gogoproto.stable_marshaler")) + writer.uint32(/* id 64019, wireType 0 =*/512152).bool(message[".gogoproto.stable_marshaler"]); + if (message[".gogoproto.sizer"] != null && Object.hasOwnProperty.call(message, ".gogoproto.sizer")) + writer.uint32(/* id 64020, wireType 0 =*/512160).bool(message[".gogoproto.sizer"]); + if (message[".gogoproto.unsafe_marshaler"] != null && Object.hasOwnProperty.call(message, ".gogoproto.unsafe_marshaler")) + writer.uint32(/* id 64023, wireType 0 =*/512184).bool(message[".gogoproto.unsafe_marshaler"]); + if (message[".gogoproto.unsafe_unmarshaler"] != null && Object.hasOwnProperty.call(message, ".gogoproto.unsafe_unmarshaler")) + writer.uint32(/* id 64024, wireType 0 =*/512192).bool(message[".gogoproto.unsafe_unmarshaler"]); + if (message[".gogoproto.goproto_extensions_map"] != null && Object.hasOwnProperty.call(message, ".gogoproto.goproto_extensions_map")) + writer.uint32(/* id 64025, wireType 0 =*/512200).bool(message[".gogoproto.goproto_extensions_map"]); + if (message[".gogoproto.goproto_unrecognized"] != null && Object.hasOwnProperty.call(message, ".gogoproto.goproto_unrecognized")) + writer.uint32(/* id 64026, wireType 0 =*/512208).bool(message[".gogoproto.goproto_unrecognized"]); + if (message[".gogoproto.protosizer"] != null && Object.hasOwnProperty.call(message, ".gogoproto.protosizer")) + writer.uint32(/* id 64028, wireType 0 =*/512224).bool(message[".gogoproto.protosizer"]); + if (message[".gogoproto.compare"] != null && Object.hasOwnProperty.call(message, ".gogoproto.compare")) + writer.uint32(/* id 64029, wireType 0 =*/512232).bool(message[".gogoproto.compare"]); + if (message[".gogoproto.typedecl"] != null && Object.hasOwnProperty.call(message, ".gogoproto.typedecl")) + writer.uint32(/* id 64030, wireType 0 =*/512240).bool(message[".gogoproto.typedecl"]); + if (message[".gogoproto.messagename"] != null && Object.hasOwnProperty.call(message, ".gogoproto.messagename")) + writer.uint32(/* id 64033, wireType 0 =*/512264).bool(message[".gogoproto.messagename"]); + if (message[".gogoproto.goproto_sizecache"] != null && Object.hasOwnProperty.call(message, ".gogoproto.goproto_sizecache")) + writer.uint32(/* id 64034, wireType 0 =*/512272).bool(message[".gogoproto.goproto_sizecache"]); + if (message[".gogoproto.goproto_unkeyed"] != null && Object.hasOwnProperty.call(message, ".gogoproto.goproto_unkeyed")) + writer.uint32(/* id 64035, wireType 0 =*/512280).bool(message[".gogoproto.goproto_unkeyed"]); + if (message[".gogoproto.stringer"] != null && Object.hasOwnProperty.call(message, ".gogoproto.stringer")) + writer.uint32(/* id 67008, wireType 0 =*/536064).bool(message[".gogoproto.stringer"]); + if (message[".cosmos_proto.implements_interface"] != null && message[".cosmos_proto.implements_interface"].length) + for (var i = 0; i < message[".cosmos_proto.implements_interface"].length; ++i) + writer.uint32(/* id 93001, wireType 2 =*/744010).string(message[".cosmos_proto.implements_interface"][i]); + if (message[".amino.name"] != null && Object.hasOwnProperty.call(message, ".amino.name")) + writer.uint32(/* id 11110001, wireType 2 =*/88880010).string(message[".amino.name"]); + if (message[".amino.message_encoding"] != null && Object.hasOwnProperty.call(message, ".amino.message_encoding")) + writer.uint32(/* id 11110002, wireType 2 =*/88880018).string(message[".amino.message_encoding"]); return writer; }; /** - * Encodes the specified UninterpretedOption message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages. + * Encodes the specified MessageOptions message, length delimited. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages. * @function encodeDelimited - * @memberof google.protobuf.UninterpretedOption + * @memberof google.protobuf.MessageOptions * @static - * @param {google.protobuf.IUninterpretedOption} message UninterpretedOption message or plain object to encode + * @param {google.protobuf.IMessageOptions} message MessageOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UninterpretedOption.encodeDelimited = function encodeDelimited(message, writer) { + MessageOptions.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UninterpretedOption message from the specified reader or buffer. + * Decodes a MessageOptions message from the specified reader or buffer. * @function decode - * @memberof google.protobuf.UninterpretedOption + * @memberof google.protobuf.MessageOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.UninterpretedOption} UninterpretedOption + * @returns {google.protobuf.MessageOptions} MessageOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UninterpretedOption.decode = function decode(reader, length) { + MessageOptions.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.UninterpretedOption(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.MessageOptions(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: + message.message_set_wire_format = reader.bool(); + break; case 2: - if (!(message.name && message.name.length)) - message.name = []; - message.name.push($root.google.protobuf.UninterpretedOption.NamePart.decode(reader, reader.uint32())); + message.no_standard_descriptor_accessor = reader.bool(); break; case 3: - message.identifier_value = reader.string(); + message.deprecated = reader.bool(); break; - case 4: - message.positive_int_value = reader.uint64(); + case 7: + message.map_entry = reader.bool(); break; - case 5: - message.negative_int_value = reader.int64(); + case 999: + if (!(message.uninterpreted_option && message.uninterpreted_option.length)) + message.uninterpreted_option = []; + message.uninterpreted_option.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); break; - case 6: - message.double_value = reader.double(); + case 64001: + message[".gogoproto.goproto_getters"] = reader.bool(); break; - case 7: - message.string_value = reader.bytes(); + case 64003: + message[".gogoproto.goproto_stringer"] = reader.bool(); break; - case 8: - message.aggregate_value = reader.string(); + case 64004: + message[".gogoproto.verbose_equal"] = reader.bool(); + break; + case 64005: + message[".gogoproto.face"] = reader.bool(); + break; + case 64006: + message[".gogoproto.gostring"] = reader.bool(); + break; + case 64007: + message[".gogoproto.populate"] = reader.bool(); + break; + case 67008: + message[".gogoproto.stringer"] = reader.bool(); + break; + case 64009: + message[".gogoproto.onlyone"] = reader.bool(); + break; + case 64013: + message[".gogoproto.equal"] = reader.bool(); + break; + case 64014: + message[".gogoproto.description"] = reader.bool(); + break; + case 64015: + message[".gogoproto.testgen"] = reader.bool(); + break; + case 64016: + message[".gogoproto.benchgen"] = reader.bool(); + break; + case 64017: + message[".gogoproto.marshaler"] = reader.bool(); + break; + case 64018: + message[".gogoproto.unmarshaler"] = reader.bool(); + break; + case 64019: + message[".gogoproto.stable_marshaler"] = reader.bool(); + break; + case 64020: + message[".gogoproto.sizer"] = reader.bool(); + break; + case 64023: + message[".gogoproto.unsafe_marshaler"] = reader.bool(); + break; + case 64024: + message[".gogoproto.unsafe_unmarshaler"] = reader.bool(); + break; + case 64025: + message[".gogoproto.goproto_extensions_map"] = reader.bool(); + break; + case 64026: + message[".gogoproto.goproto_unrecognized"] = reader.bool(); + break; + case 64028: + message[".gogoproto.protosizer"] = reader.bool(); + break; + case 64029: + message[".gogoproto.compare"] = reader.bool(); + break; + case 64030: + message[".gogoproto.typedecl"] = reader.bool(); + break; + case 64033: + message[".gogoproto.messagename"] = reader.bool(); + break; + case 64034: + message[".gogoproto.goproto_sizecache"] = reader.bool(); + break; + case 64035: + message[".gogoproto.goproto_unkeyed"] = reader.bool(); + break; + case 93001: + if (!(message[".cosmos_proto.implements_interface"] && message[".cosmos_proto.implements_interface"].length)) + message[".cosmos_proto.implements_interface"] = []; + message[".cosmos_proto.implements_interface"].push(reader.string()); + break; + case 11110001: + message[".amino.name"] = reader.string(); + break; + case 11110002: + message[".amino.message_encoding"] = reader.string(); break; default: reader.skipType(tag & 7); @@ -15293,410 +21235,428 @@ }; /** - * Decodes an UninterpretedOption message from the specified reader or buffer, length delimited. + * Decodes a MessageOptions message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.protobuf.UninterpretedOption + * @memberof google.protobuf.MessageOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.UninterpretedOption} UninterpretedOption + * @returns {google.protobuf.MessageOptions} MessageOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UninterpretedOption.decodeDelimited = function decodeDelimited(reader) { + MessageOptions.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UninterpretedOption message. + * Verifies a MessageOptions message. * @function verify - * @memberof google.protobuf.UninterpretedOption + * @memberof google.protobuf.MessageOptions * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UninterpretedOption.verify = function verify(message) { + MessageOptions.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) { - if (!Array.isArray(message.name)) - return "name: array expected"; - for (var i = 0; i < message.name.length; ++i) { - var error = $root.google.protobuf.UninterpretedOption.NamePart.verify(message.name[i]); + if (message.message_set_wire_format != null && message.hasOwnProperty("message_set_wire_format")) + if (typeof message.message_set_wire_format !== "boolean") + return "message_set_wire_format: boolean expected"; + if (message.no_standard_descriptor_accessor != null && message.hasOwnProperty("no_standard_descriptor_accessor")) + if (typeof message.no_standard_descriptor_accessor !== "boolean") + return "no_standard_descriptor_accessor: boolean expected"; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (typeof message.deprecated !== "boolean") + return "deprecated: boolean expected"; + if (message.map_entry != null && message.hasOwnProperty("map_entry")) + if (typeof message.map_entry !== "boolean") + return "map_entry: boolean expected"; + if (message.uninterpreted_option != null && message.hasOwnProperty("uninterpreted_option")) { + if (!Array.isArray(message.uninterpreted_option)) + return "uninterpreted_option: array expected"; + for (var i = 0; i < message.uninterpreted_option.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpreted_option[i]); if (error) - return "name." + error; + return "uninterpreted_option." + error; } } - if (message.identifier_value != null && message.hasOwnProperty("identifier_value")) - if (!$util.isString(message.identifier_value)) - return "identifier_value: string expected"; - if (message.positive_int_value != null && message.hasOwnProperty("positive_int_value")) - if (!$util.isInteger(message.positive_int_value) && !(message.positive_int_value && $util.isInteger(message.positive_int_value.low) && $util.isInteger(message.positive_int_value.high))) - return "positive_int_value: integer|Long expected"; - if (message.negative_int_value != null && message.hasOwnProperty("negative_int_value")) - if (!$util.isInteger(message.negative_int_value) && !(message.negative_int_value && $util.isInteger(message.negative_int_value.low) && $util.isInteger(message.negative_int_value.high))) - return "negative_int_value: integer|Long expected"; - if (message.double_value != null && message.hasOwnProperty("double_value")) - if (typeof message.double_value !== "number") - return "double_value: number expected"; - if (message.string_value != null && message.hasOwnProperty("string_value")) - if (!(message.string_value && typeof message.string_value.length === "number" || $util.isString(message.string_value))) - return "string_value: buffer expected"; - if (message.aggregate_value != null && message.hasOwnProperty("aggregate_value")) - if (!$util.isString(message.aggregate_value)) - return "aggregate_value: string expected"; + if (message[".gogoproto.goproto_getters"] != null && message.hasOwnProperty(".gogoproto.goproto_getters")) + if (typeof message[".gogoproto.goproto_getters"] !== "boolean") + return ".gogoproto.goproto_getters: boolean expected"; + if (message[".gogoproto.goproto_stringer"] != null && message.hasOwnProperty(".gogoproto.goproto_stringer")) + if (typeof message[".gogoproto.goproto_stringer"] !== "boolean") + return ".gogoproto.goproto_stringer: boolean expected"; + if (message[".gogoproto.verbose_equal"] != null && message.hasOwnProperty(".gogoproto.verbose_equal")) + if (typeof message[".gogoproto.verbose_equal"] !== "boolean") + return ".gogoproto.verbose_equal: boolean expected"; + if (message[".gogoproto.face"] != null && message.hasOwnProperty(".gogoproto.face")) + if (typeof message[".gogoproto.face"] !== "boolean") + return ".gogoproto.face: boolean expected"; + if (message[".gogoproto.gostring"] != null && message.hasOwnProperty(".gogoproto.gostring")) + if (typeof message[".gogoproto.gostring"] !== "boolean") + return ".gogoproto.gostring: boolean expected"; + if (message[".gogoproto.populate"] != null && message.hasOwnProperty(".gogoproto.populate")) + if (typeof message[".gogoproto.populate"] !== "boolean") + return ".gogoproto.populate: boolean expected"; + if (message[".gogoproto.stringer"] != null && message.hasOwnProperty(".gogoproto.stringer")) + if (typeof message[".gogoproto.stringer"] !== "boolean") + return ".gogoproto.stringer: boolean expected"; + if (message[".gogoproto.onlyone"] != null && message.hasOwnProperty(".gogoproto.onlyone")) + if (typeof message[".gogoproto.onlyone"] !== "boolean") + return ".gogoproto.onlyone: boolean expected"; + if (message[".gogoproto.equal"] != null && message.hasOwnProperty(".gogoproto.equal")) + if (typeof message[".gogoproto.equal"] !== "boolean") + return ".gogoproto.equal: boolean expected"; + if (message[".gogoproto.description"] != null && message.hasOwnProperty(".gogoproto.description")) + if (typeof message[".gogoproto.description"] !== "boolean") + return ".gogoproto.description: boolean expected"; + if (message[".gogoproto.testgen"] != null && message.hasOwnProperty(".gogoproto.testgen")) + if (typeof message[".gogoproto.testgen"] !== "boolean") + return ".gogoproto.testgen: boolean expected"; + if (message[".gogoproto.benchgen"] != null && message.hasOwnProperty(".gogoproto.benchgen")) + if (typeof message[".gogoproto.benchgen"] !== "boolean") + return ".gogoproto.benchgen: boolean expected"; + if (message[".gogoproto.marshaler"] != null && message.hasOwnProperty(".gogoproto.marshaler")) + if (typeof message[".gogoproto.marshaler"] !== "boolean") + return ".gogoproto.marshaler: boolean expected"; + if (message[".gogoproto.unmarshaler"] != null && message.hasOwnProperty(".gogoproto.unmarshaler")) + if (typeof message[".gogoproto.unmarshaler"] !== "boolean") + return ".gogoproto.unmarshaler: boolean expected"; + if (message[".gogoproto.stable_marshaler"] != null && message.hasOwnProperty(".gogoproto.stable_marshaler")) + if (typeof message[".gogoproto.stable_marshaler"] !== "boolean") + return ".gogoproto.stable_marshaler: boolean expected"; + if (message[".gogoproto.sizer"] != null && message.hasOwnProperty(".gogoproto.sizer")) + if (typeof message[".gogoproto.sizer"] !== "boolean") + return ".gogoproto.sizer: boolean expected"; + if (message[".gogoproto.unsafe_marshaler"] != null && message.hasOwnProperty(".gogoproto.unsafe_marshaler")) + if (typeof message[".gogoproto.unsafe_marshaler"] !== "boolean") + return ".gogoproto.unsafe_marshaler: boolean expected"; + if (message[".gogoproto.unsafe_unmarshaler"] != null && message.hasOwnProperty(".gogoproto.unsafe_unmarshaler")) + if (typeof message[".gogoproto.unsafe_unmarshaler"] !== "boolean") + return ".gogoproto.unsafe_unmarshaler: boolean expected"; + if (message[".gogoproto.goproto_extensions_map"] != null && message.hasOwnProperty(".gogoproto.goproto_extensions_map")) + if (typeof message[".gogoproto.goproto_extensions_map"] !== "boolean") + return ".gogoproto.goproto_extensions_map: boolean expected"; + if (message[".gogoproto.goproto_unrecognized"] != null && message.hasOwnProperty(".gogoproto.goproto_unrecognized")) + if (typeof message[".gogoproto.goproto_unrecognized"] !== "boolean") + return ".gogoproto.goproto_unrecognized: boolean expected"; + if (message[".gogoproto.protosizer"] != null && message.hasOwnProperty(".gogoproto.protosizer")) + if (typeof message[".gogoproto.protosizer"] !== "boolean") + return ".gogoproto.protosizer: boolean expected"; + if (message[".gogoproto.compare"] != null && message.hasOwnProperty(".gogoproto.compare")) + if (typeof message[".gogoproto.compare"] !== "boolean") + return ".gogoproto.compare: boolean expected"; + if (message[".gogoproto.typedecl"] != null && message.hasOwnProperty(".gogoproto.typedecl")) + if (typeof message[".gogoproto.typedecl"] !== "boolean") + return ".gogoproto.typedecl: boolean expected"; + if (message[".gogoproto.messagename"] != null && message.hasOwnProperty(".gogoproto.messagename")) + if (typeof message[".gogoproto.messagename"] !== "boolean") + return ".gogoproto.messagename: boolean expected"; + if (message[".gogoproto.goproto_sizecache"] != null && message.hasOwnProperty(".gogoproto.goproto_sizecache")) + if (typeof message[".gogoproto.goproto_sizecache"] !== "boolean") + return ".gogoproto.goproto_sizecache: boolean expected"; + if (message[".gogoproto.goproto_unkeyed"] != null && message.hasOwnProperty(".gogoproto.goproto_unkeyed")) + if (typeof message[".gogoproto.goproto_unkeyed"] !== "boolean") + return ".gogoproto.goproto_unkeyed: boolean expected"; + if (message[".cosmos_proto.implements_interface"] != null && message.hasOwnProperty(".cosmos_proto.implements_interface")) { + if (!Array.isArray(message[".cosmos_proto.implements_interface"])) + return ".cosmos_proto.implements_interface: array expected"; + for (var i = 0; i < message[".cosmos_proto.implements_interface"].length; ++i) + if (!$util.isString(message[".cosmos_proto.implements_interface"][i])) + return ".cosmos_proto.implements_interface: string[] expected"; + } + if (message[".amino.name"] != null && message.hasOwnProperty(".amino.name")) + if (!$util.isString(message[".amino.name"])) + return ".amino.name: string expected"; + if (message[".amino.message_encoding"] != null && message.hasOwnProperty(".amino.message_encoding")) + if (!$util.isString(message[".amino.message_encoding"])) + return ".amino.message_encoding: string expected"; return null; }; /** - * Creates an UninterpretedOption message from a plain object. Also converts values to their respective internal types. + * Creates a MessageOptions message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.protobuf.UninterpretedOption + * @memberof google.protobuf.MessageOptions * @static * @param {Object.} object Plain object - * @returns {google.protobuf.UninterpretedOption} UninterpretedOption + * @returns {google.protobuf.MessageOptions} MessageOptions */ - UninterpretedOption.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.UninterpretedOption) + MessageOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.MessageOptions) return object; - var message = new $root.google.protobuf.UninterpretedOption(); - if (object.name) { - if (!Array.isArray(object.name)) - throw TypeError(".google.protobuf.UninterpretedOption.name: array expected"); - message.name = []; - for (var i = 0; i < object.name.length; ++i) { - if (typeof object.name[i] !== "object") - throw TypeError(".google.protobuf.UninterpretedOption.name: object expected"); - message.name[i] = $root.google.protobuf.UninterpretedOption.NamePart.fromObject(object.name[i]); + var message = new $root.google.protobuf.MessageOptions(); + if (object.message_set_wire_format != null) + message.message_set_wire_format = Boolean(object.message_set_wire_format); + if (object.no_standard_descriptor_accessor != null) + message.no_standard_descriptor_accessor = Boolean(object.no_standard_descriptor_accessor); + if (object.deprecated != null) + message.deprecated = Boolean(object.deprecated); + if (object.map_entry != null) + message.map_entry = Boolean(object.map_entry); + if (object.uninterpreted_option) { + if (!Array.isArray(object.uninterpreted_option)) + throw TypeError(".google.protobuf.MessageOptions.uninterpreted_option: array expected"); + message.uninterpreted_option = []; + for (var i = 0; i < object.uninterpreted_option.length; ++i) { + if (typeof object.uninterpreted_option[i] !== "object") + throw TypeError(".google.protobuf.MessageOptions.uninterpreted_option: object expected"); + message.uninterpreted_option[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpreted_option[i]); } } - if (object.identifier_value != null) - message.identifier_value = String(object.identifier_value); - if (object.positive_int_value != null) - if ($util.Long) - (message.positive_int_value = $util.Long.fromValue(object.positive_int_value)).unsigned = true; - else if (typeof object.positive_int_value === "string") - message.positive_int_value = parseInt(object.positive_int_value, 10); - else if (typeof object.positive_int_value === "number") - message.positive_int_value = object.positive_int_value; - else if (typeof object.positive_int_value === "object") - message.positive_int_value = new $util.LongBits(object.positive_int_value.low >>> 0, object.positive_int_value.high >>> 0).toNumber(true); - if (object.negative_int_value != null) - if ($util.Long) - (message.negative_int_value = $util.Long.fromValue(object.negative_int_value)).unsigned = false; - else if (typeof object.negative_int_value === "string") - message.negative_int_value = parseInt(object.negative_int_value, 10); - else if (typeof object.negative_int_value === "number") - message.negative_int_value = object.negative_int_value; - else if (typeof object.negative_int_value === "object") - message.negative_int_value = new $util.LongBits(object.negative_int_value.low >>> 0, object.negative_int_value.high >>> 0).toNumber(); - if (object.double_value != null) - message.double_value = Number(object.double_value); - if (object.string_value != null) - if (typeof object.string_value === "string") - $util.base64.decode(object.string_value, message.string_value = $util.newBuffer($util.base64.length(object.string_value)), 0); - else if (object.string_value.length) - message.string_value = object.string_value; - if (object.aggregate_value != null) - message.aggregate_value = String(object.aggregate_value); + if (object[".gogoproto.goproto_getters"] != null) + message[".gogoproto.goproto_getters"] = Boolean(object[".gogoproto.goproto_getters"]); + if (object[".gogoproto.goproto_stringer"] != null) + message[".gogoproto.goproto_stringer"] = Boolean(object[".gogoproto.goproto_stringer"]); + if (object[".gogoproto.verbose_equal"] != null) + message[".gogoproto.verbose_equal"] = Boolean(object[".gogoproto.verbose_equal"]); + if (object[".gogoproto.face"] != null) + message[".gogoproto.face"] = Boolean(object[".gogoproto.face"]); + if (object[".gogoproto.gostring"] != null) + message[".gogoproto.gostring"] = Boolean(object[".gogoproto.gostring"]); + if (object[".gogoproto.populate"] != null) + message[".gogoproto.populate"] = Boolean(object[".gogoproto.populate"]); + if (object[".gogoproto.stringer"] != null) + message[".gogoproto.stringer"] = Boolean(object[".gogoproto.stringer"]); + if (object[".gogoproto.onlyone"] != null) + message[".gogoproto.onlyone"] = Boolean(object[".gogoproto.onlyone"]); + if (object[".gogoproto.equal"] != null) + message[".gogoproto.equal"] = Boolean(object[".gogoproto.equal"]); + if (object[".gogoproto.description"] != null) + message[".gogoproto.description"] = Boolean(object[".gogoproto.description"]); + if (object[".gogoproto.testgen"] != null) + message[".gogoproto.testgen"] = Boolean(object[".gogoproto.testgen"]); + if (object[".gogoproto.benchgen"] != null) + message[".gogoproto.benchgen"] = Boolean(object[".gogoproto.benchgen"]); + if (object[".gogoproto.marshaler"] != null) + message[".gogoproto.marshaler"] = Boolean(object[".gogoproto.marshaler"]); + if (object[".gogoproto.unmarshaler"] != null) + message[".gogoproto.unmarshaler"] = Boolean(object[".gogoproto.unmarshaler"]); + if (object[".gogoproto.stable_marshaler"] != null) + message[".gogoproto.stable_marshaler"] = Boolean(object[".gogoproto.stable_marshaler"]); + if (object[".gogoproto.sizer"] != null) + message[".gogoproto.sizer"] = Boolean(object[".gogoproto.sizer"]); + if (object[".gogoproto.unsafe_marshaler"] != null) + message[".gogoproto.unsafe_marshaler"] = Boolean(object[".gogoproto.unsafe_marshaler"]); + if (object[".gogoproto.unsafe_unmarshaler"] != null) + message[".gogoproto.unsafe_unmarshaler"] = Boolean(object[".gogoproto.unsafe_unmarshaler"]); + if (object[".gogoproto.goproto_extensions_map"] != null) + message[".gogoproto.goproto_extensions_map"] = Boolean(object[".gogoproto.goproto_extensions_map"]); + if (object[".gogoproto.goproto_unrecognized"] != null) + message[".gogoproto.goproto_unrecognized"] = Boolean(object[".gogoproto.goproto_unrecognized"]); + if (object[".gogoproto.protosizer"] != null) + message[".gogoproto.protosizer"] = Boolean(object[".gogoproto.protosizer"]); + if (object[".gogoproto.compare"] != null) + message[".gogoproto.compare"] = Boolean(object[".gogoproto.compare"]); + if (object[".gogoproto.typedecl"] != null) + message[".gogoproto.typedecl"] = Boolean(object[".gogoproto.typedecl"]); + if (object[".gogoproto.messagename"] != null) + message[".gogoproto.messagename"] = Boolean(object[".gogoproto.messagename"]); + if (object[".gogoproto.goproto_sizecache"] != null) + message[".gogoproto.goproto_sizecache"] = Boolean(object[".gogoproto.goproto_sizecache"]); + if (object[".gogoproto.goproto_unkeyed"] != null) + message[".gogoproto.goproto_unkeyed"] = Boolean(object[".gogoproto.goproto_unkeyed"]); + if (object[".cosmos_proto.implements_interface"]) { + if (!Array.isArray(object[".cosmos_proto.implements_interface"])) + throw TypeError(".google.protobuf.MessageOptions..cosmos_proto.implements_interface: array expected"); + message[".cosmos_proto.implements_interface"] = []; + for (var i = 0; i < object[".cosmos_proto.implements_interface"].length; ++i) + message[".cosmos_proto.implements_interface"][i] = String(object[".cosmos_proto.implements_interface"][i]); + } + if (object[".amino.name"] != null) + message[".amino.name"] = String(object[".amino.name"]); + if (object[".amino.message_encoding"] != null) + message[".amino.message_encoding"] = String(object[".amino.message_encoding"]); return message; }; /** - * Creates a plain object from an UninterpretedOption message. Also converts values to other types if specified. + * Creates a plain object from a MessageOptions message. Also converts values to other types if specified. * @function toObject - * @memberof google.protobuf.UninterpretedOption + * @memberof google.protobuf.MessageOptions * @static - * @param {google.protobuf.UninterpretedOption} message UninterpretedOption + * @param {google.protobuf.MessageOptions} message MessageOptions * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UninterpretedOption.toObject = function toObject(message, options) { + MessageOptions.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.name = []; + if (options.arrays || options.defaults) { + object.uninterpreted_option = []; + object[".cosmos_proto.implements_interface"] = []; + } if (options.defaults) { - object.identifier_value = ""; - if ($util.Long) { - var long = new $util.Long(0, 0, true); - object.positive_int_value = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.positive_int_value = options.longs === String ? "0" : 0; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.negative_int_value = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.negative_int_value = options.longs === String ? "0" : 0; - object.double_value = 0; - if (options.bytes === String) - object.string_value = ""; - else { - object.string_value = []; - if (options.bytes !== Array) - object.string_value = $util.newBuffer(object.string_value); - } - object.aggregate_value = ""; + object.message_set_wire_format = false; + object.no_standard_descriptor_accessor = false; + object.deprecated = false; + object.map_entry = false; + object[".gogoproto.goproto_getters"] = false; + object[".gogoproto.goproto_stringer"] = false; + object[".gogoproto.verbose_equal"] = false; + object[".gogoproto.face"] = false; + object[".gogoproto.gostring"] = false; + object[".gogoproto.populate"] = false; + object[".gogoproto.onlyone"] = false; + object[".gogoproto.equal"] = false; + object[".gogoproto.description"] = false; + object[".gogoproto.testgen"] = false; + object[".gogoproto.benchgen"] = false; + object[".gogoproto.marshaler"] = false; + object[".gogoproto.unmarshaler"] = false; + object[".gogoproto.stable_marshaler"] = false; + object[".gogoproto.sizer"] = false; + object[".gogoproto.unsafe_marshaler"] = false; + object[".gogoproto.unsafe_unmarshaler"] = false; + object[".gogoproto.goproto_extensions_map"] = false; + object[".gogoproto.goproto_unrecognized"] = false; + object[".gogoproto.protosizer"] = false; + object[".gogoproto.compare"] = false; + object[".gogoproto.typedecl"] = false; + object[".gogoproto.messagename"] = false; + object[".gogoproto.goproto_sizecache"] = false; + object[".gogoproto.goproto_unkeyed"] = false; + object[".gogoproto.stringer"] = false; + object[".amino.name"] = ""; + object[".amino.message_encoding"] = ""; } - if (message.name && message.name.length) { - object.name = []; - for (var j = 0; j < message.name.length; ++j) - object.name[j] = $root.google.protobuf.UninterpretedOption.NamePart.toObject(message.name[j], options); + if (message.message_set_wire_format != null && message.hasOwnProperty("message_set_wire_format")) + object.message_set_wire_format = message.message_set_wire_format; + if (message.no_standard_descriptor_accessor != null && message.hasOwnProperty("no_standard_descriptor_accessor")) + object.no_standard_descriptor_accessor = message.no_standard_descriptor_accessor; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + object.deprecated = message.deprecated; + if (message.map_entry != null && message.hasOwnProperty("map_entry")) + object.map_entry = message.map_entry; + if (message.uninterpreted_option && message.uninterpreted_option.length) { + object.uninterpreted_option = []; + for (var j = 0; j < message.uninterpreted_option.length; ++j) + object.uninterpreted_option[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpreted_option[j], options); } - if (message.identifier_value != null && message.hasOwnProperty("identifier_value")) - object.identifier_value = message.identifier_value; - if (message.positive_int_value != null && message.hasOwnProperty("positive_int_value")) - if (typeof message.positive_int_value === "number") - object.positive_int_value = options.longs === String ? String(message.positive_int_value) : message.positive_int_value; - else - object.positive_int_value = options.longs === String ? $util.Long.prototype.toString.call(message.positive_int_value) : options.longs === Number ? new $util.LongBits(message.positive_int_value.low >>> 0, message.positive_int_value.high >>> 0).toNumber(true) : message.positive_int_value; - if (message.negative_int_value != null && message.hasOwnProperty("negative_int_value")) - if (typeof message.negative_int_value === "number") - object.negative_int_value = options.longs === String ? String(message.negative_int_value) : message.negative_int_value; - else - object.negative_int_value = options.longs === String ? $util.Long.prototype.toString.call(message.negative_int_value) : options.longs === Number ? new $util.LongBits(message.negative_int_value.low >>> 0, message.negative_int_value.high >>> 0).toNumber() : message.negative_int_value; - if (message.double_value != null && message.hasOwnProperty("double_value")) - object.double_value = options.json && !isFinite(message.double_value) ? String(message.double_value) : message.double_value; - if (message.string_value != null && message.hasOwnProperty("string_value")) - object.string_value = options.bytes === String ? $util.base64.encode(message.string_value, 0, message.string_value.length) : options.bytes === Array ? Array.prototype.slice.call(message.string_value) : message.string_value; - if (message.aggregate_value != null && message.hasOwnProperty("aggregate_value")) - object.aggregate_value = message.aggregate_value; + if (message[".gogoproto.goproto_getters"] != null && message.hasOwnProperty(".gogoproto.goproto_getters")) + object[".gogoproto.goproto_getters"] = message[".gogoproto.goproto_getters"]; + if (message[".gogoproto.goproto_stringer"] != null && message.hasOwnProperty(".gogoproto.goproto_stringer")) + object[".gogoproto.goproto_stringer"] = message[".gogoproto.goproto_stringer"]; + if (message[".gogoproto.verbose_equal"] != null && message.hasOwnProperty(".gogoproto.verbose_equal")) + object[".gogoproto.verbose_equal"] = message[".gogoproto.verbose_equal"]; + if (message[".gogoproto.face"] != null && message.hasOwnProperty(".gogoproto.face")) + object[".gogoproto.face"] = message[".gogoproto.face"]; + if (message[".gogoproto.gostring"] != null && message.hasOwnProperty(".gogoproto.gostring")) + object[".gogoproto.gostring"] = message[".gogoproto.gostring"]; + if (message[".gogoproto.populate"] != null && message.hasOwnProperty(".gogoproto.populate")) + object[".gogoproto.populate"] = message[".gogoproto.populate"]; + if (message[".gogoproto.onlyone"] != null && message.hasOwnProperty(".gogoproto.onlyone")) + object[".gogoproto.onlyone"] = message[".gogoproto.onlyone"]; + if (message[".gogoproto.equal"] != null && message.hasOwnProperty(".gogoproto.equal")) + object[".gogoproto.equal"] = message[".gogoproto.equal"]; + if (message[".gogoproto.description"] != null && message.hasOwnProperty(".gogoproto.description")) + object[".gogoproto.description"] = message[".gogoproto.description"]; + if (message[".gogoproto.testgen"] != null && message.hasOwnProperty(".gogoproto.testgen")) + object[".gogoproto.testgen"] = message[".gogoproto.testgen"]; + if (message[".gogoproto.benchgen"] != null && message.hasOwnProperty(".gogoproto.benchgen")) + object[".gogoproto.benchgen"] = message[".gogoproto.benchgen"]; + if (message[".gogoproto.marshaler"] != null && message.hasOwnProperty(".gogoproto.marshaler")) + object[".gogoproto.marshaler"] = message[".gogoproto.marshaler"]; + if (message[".gogoproto.unmarshaler"] != null && message.hasOwnProperty(".gogoproto.unmarshaler")) + object[".gogoproto.unmarshaler"] = message[".gogoproto.unmarshaler"]; + if (message[".gogoproto.stable_marshaler"] != null && message.hasOwnProperty(".gogoproto.stable_marshaler")) + object[".gogoproto.stable_marshaler"] = message[".gogoproto.stable_marshaler"]; + if (message[".gogoproto.sizer"] != null && message.hasOwnProperty(".gogoproto.sizer")) + object[".gogoproto.sizer"] = message[".gogoproto.sizer"]; + if (message[".gogoproto.unsafe_marshaler"] != null && message.hasOwnProperty(".gogoproto.unsafe_marshaler")) + object[".gogoproto.unsafe_marshaler"] = message[".gogoproto.unsafe_marshaler"]; + if (message[".gogoproto.unsafe_unmarshaler"] != null && message.hasOwnProperty(".gogoproto.unsafe_unmarshaler")) + object[".gogoproto.unsafe_unmarshaler"] = message[".gogoproto.unsafe_unmarshaler"]; + if (message[".gogoproto.goproto_extensions_map"] != null && message.hasOwnProperty(".gogoproto.goproto_extensions_map")) + object[".gogoproto.goproto_extensions_map"] = message[".gogoproto.goproto_extensions_map"]; + if (message[".gogoproto.goproto_unrecognized"] != null && message.hasOwnProperty(".gogoproto.goproto_unrecognized")) + object[".gogoproto.goproto_unrecognized"] = message[".gogoproto.goproto_unrecognized"]; + if (message[".gogoproto.protosizer"] != null && message.hasOwnProperty(".gogoproto.protosizer")) + object[".gogoproto.protosizer"] = message[".gogoproto.protosizer"]; + if (message[".gogoproto.compare"] != null && message.hasOwnProperty(".gogoproto.compare")) + object[".gogoproto.compare"] = message[".gogoproto.compare"]; + if (message[".gogoproto.typedecl"] != null && message.hasOwnProperty(".gogoproto.typedecl")) + object[".gogoproto.typedecl"] = message[".gogoproto.typedecl"]; + if (message[".gogoproto.messagename"] != null && message.hasOwnProperty(".gogoproto.messagename")) + object[".gogoproto.messagename"] = message[".gogoproto.messagename"]; + if (message[".gogoproto.goproto_sizecache"] != null && message.hasOwnProperty(".gogoproto.goproto_sizecache")) + object[".gogoproto.goproto_sizecache"] = message[".gogoproto.goproto_sizecache"]; + if (message[".gogoproto.goproto_unkeyed"] != null && message.hasOwnProperty(".gogoproto.goproto_unkeyed")) + object[".gogoproto.goproto_unkeyed"] = message[".gogoproto.goproto_unkeyed"]; + if (message[".gogoproto.stringer"] != null && message.hasOwnProperty(".gogoproto.stringer")) + object[".gogoproto.stringer"] = message[".gogoproto.stringer"]; + if (message[".cosmos_proto.implements_interface"] && message[".cosmos_proto.implements_interface"].length) { + object[".cosmos_proto.implements_interface"] = []; + for (var j = 0; j < message[".cosmos_proto.implements_interface"].length; ++j) + object[".cosmos_proto.implements_interface"][j] = message[".cosmos_proto.implements_interface"][j]; + } + if (message[".amino.name"] != null && message.hasOwnProperty(".amino.name")) + object[".amino.name"] = message[".amino.name"]; + if (message[".amino.message_encoding"] != null && message.hasOwnProperty(".amino.message_encoding")) + object[".amino.message_encoding"] = message[".amino.message_encoding"]; return object; }; /** - * Converts this UninterpretedOption to JSON. + * Converts this MessageOptions to JSON. * @function toJSON - * @memberof google.protobuf.UninterpretedOption + * @memberof google.protobuf.MessageOptions * @instance * @returns {Object.} JSON object - */ - UninterpretedOption.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - UninterpretedOption.NamePart = (function() { - - /** - * Properties of a NamePart. - * @memberof google.protobuf.UninterpretedOption - * @interface INamePart - * @property {string} name_part NamePart name_part - * @property {boolean} is_extension NamePart is_extension - */ - - /** - * Constructs a new NamePart. - * @memberof google.protobuf.UninterpretedOption - * @classdesc Represents a NamePart. - * @implements INamePart - * @constructor - * @param {google.protobuf.UninterpretedOption.INamePart=} [properties] Properties to set - */ - function NamePart(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * NamePart name_part. - * @member {string} name_part - * @memberof google.protobuf.UninterpretedOption.NamePart - * @instance - */ - NamePart.prototype.name_part = ""; - - /** - * NamePart is_extension. - * @member {boolean} is_extension - * @memberof google.protobuf.UninterpretedOption.NamePart - * @instance - */ - NamePart.prototype.is_extension = false; - - /** - * Encodes the specified NamePart message. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages. - * @function encode - * @memberof google.protobuf.UninterpretedOption.NamePart - * @static - * @param {google.protobuf.UninterpretedOption.INamePart} message NamePart message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NamePart.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name_part); - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.is_extension); - return writer; - }; - - /** - * Encodes the specified NamePart message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.UninterpretedOption.NamePart - * @static - * @param {google.protobuf.UninterpretedOption.INamePart} message NamePart message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NamePart.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a NamePart message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.UninterpretedOption.NamePart - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.UninterpretedOption.NamePart} NamePart - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NamePart.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.UninterpretedOption.NamePart(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name_part = reader.string(); - break; - case 2: - message.is_extension = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - if (!message.hasOwnProperty("name_part")) - throw $util.ProtocolError("missing required 'name_part'", { instance: message }); - if (!message.hasOwnProperty("is_extension")) - throw $util.ProtocolError("missing required 'is_extension'", { instance: message }); - return message; - }; - - /** - * Decodes a NamePart message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.UninterpretedOption.NamePart - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.UninterpretedOption.NamePart} NamePart - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NamePart.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a NamePart message. - * @function verify - * @memberof google.protobuf.UninterpretedOption.NamePart - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - NamePart.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (!$util.isString(message.name_part)) - return "name_part: string expected"; - if (typeof message.is_extension !== "boolean") - return "is_extension: boolean expected"; - return null; - }; - - /** - * Creates a NamePart message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.UninterpretedOption.NamePart - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.UninterpretedOption.NamePart} NamePart - */ - NamePart.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.UninterpretedOption.NamePart) - return object; - var message = new $root.google.protobuf.UninterpretedOption.NamePart(); - if (object.name_part != null) - message.name_part = String(object.name_part); - if (object.is_extension != null) - message.is_extension = Boolean(object.is_extension); - return message; - }; - - /** - * Creates a plain object from a NamePart message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.UninterpretedOption.NamePart - * @static - * @param {google.protobuf.UninterpretedOption.NamePart} message NamePart - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - NamePart.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.name_part = ""; - object.is_extension = false; - } - if (message.name_part != null && message.hasOwnProperty("name_part")) - object.name_part = message.name_part; - if (message.is_extension != null && message.hasOwnProperty("is_extension")) - object.is_extension = message.is_extension; - return object; - }; - - /** - * Converts this NamePart to JSON. - * @function toJSON - * @memberof google.protobuf.UninterpretedOption.NamePart - * @instance - * @returns {Object.} JSON object - */ - NamePart.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return NamePart; - })(); + */ + MessageOptions.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return UninterpretedOption; + return MessageOptions; })(); - protobuf.SourceCodeInfo = (function() { + protobuf.FieldOptions = (function() { /** - * Properties of a SourceCodeInfo. + * Properties of a FieldOptions. * @memberof google.protobuf - * @interface ISourceCodeInfo - * @property {Array.|null} [location] SourceCodeInfo location + * @interface IFieldOptions + * @property {google.protobuf.FieldOptions.CType|null} [ctype] FieldOptions ctype + * @property {boolean|null} [packed] FieldOptions packed + * @property {google.protobuf.FieldOptions.JSType|null} [jstype] FieldOptions jstype + * @property {boolean|null} [lazy] FieldOptions lazy + * @property {boolean|null} [deprecated] FieldOptions deprecated + * @property {boolean|null} [weak] FieldOptions weak + * @property {Array.|null} [uninterpreted_option] FieldOptions uninterpreted_option + * @property {boolean|null} [".gogoproto.nullable"] FieldOptions .gogoproto.nullable + * @property {boolean|null} [".gogoproto.embed"] FieldOptions .gogoproto.embed + * @property {string|null} [".gogoproto.customtype"] FieldOptions .gogoproto.customtype + * @property {string|null} [".gogoproto.customname"] FieldOptions .gogoproto.customname + * @property {string|null} [".gogoproto.jsontag"] FieldOptions .gogoproto.jsontag + * @property {string|null} [".gogoproto.moretags"] FieldOptions .gogoproto.moretags + * @property {string|null} [".gogoproto.casttype"] FieldOptions .gogoproto.casttype + * @property {string|null} [".gogoproto.castkey"] FieldOptions .gogoproto.castkey + * @property {string|null} [".gogoproto.castvalue"] FieldOptions .gogoproto.castvalue + * @property {boolean|null} [".gogoproto.stdtime"] FieldOptions .gogoproto.stdtime + * @property {boolean|null} [".gogoproto.stdduration"] FieldOptions .gogoproto.stdduration + * @property {boolean|null} [".gogoproto.wktpointer"] FieldOptions .gogoproto.wktpointer + * @property {string|null} [".gogoproto.castrepeated"] FieldOptions .gogoproto.castrepeated + * @property {string|null} [".cosmos_proto.accepts_interface"] FieldOptions .cosmos_proto.accepts_interface + * @property {string|null} [".cosmos_proto.scalar"] FieldOptions .cosmos_proto.scalar + * @property {string|null} [".amino.encoding"] FieldOptions .amino.encoding + * @property {string|null} [".amino.field_name"] FieldOptions .amino.field_name + * @property {boolean|null} [".amino.dont_omitempty"] FieldOptions .amino.dont_omitempty */ /** - * Constructs a new SourceCodeInfo. + * Constructs a new FieldOptions. * @memberof google.protobuf - * @classdesc Represents a SourceCodeInfo. - * @implements ISourceCodeInfo + * @classdesc Represents a FieldOptions. + * @implements IFieldOptions * @constructor - * @param {google.protobuf.ISourceCodeInfo=} [properties] Properties to set + * @param {google.protobuf.IFieldOptions=} [properties] Properties to set */ - function SourceCodeInfo(properties) { - this.location = []; + function FieldOptions(properties) { + this.uninterpreted_option = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -15704,66 +21664,378 @@ } /** - * SourceCodeInfo location. - * @member {Array.} location - * @memberof google.protobuf.SourceCodeInfo + * FieldOptions ctype. + * @member {google.protobuf.FieldOptions.CType} ctype + * @memberof google.protobuf.FieldOptions * @instance */ - SourceCodeInfo.prototype.location = $util.emptyArray; + FieldOptions.prototype.ctype = 0; /** - * Encodes the specified SourceCodeInfo message. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages. + * FieldOptions packed. + * @member {boolean} packed + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.packed = false; + + /** + * FieldOptions jstype. + * @member {google.protobuf.FieldOptions.JSType} jstype + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.jstype = 0; + + /** + * FieldOptions lazy. + * @member {boolean} lazy + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.lazy = false; + + /** + * FieldOptions deprecated. + * @member {boolean} deprecated + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.deprecated = false; + + /** + * FieldOptions weak. + * @member {boolean} weak + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.weak = false; + + /** + * FieldOptions uninterpreted_option. + * @member {Array.} uninterpreted_option + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.uninterpreted_option = $util.emptyArray; + + /** + * FieldOptions .gogoproto.nullable. + * @member {boolean} .gogoproto.nullable + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype[".gogoproto.nullable"] = false; + + /** + * FieldOptions .gogoproto.embed. + * @member {boolean} .gogoproto.embed + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype[".gogoproto.embed"] = false; + + /** + * FieldOptions .gogoproto.customtype. + * @member {string} .gogoproto.customtype + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype[".gogoproto.customtype"] = ""; + + /** + * FieldOptions .gogoproto.customname. + * @member {string} .gogoproto.customname + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype[".gogoproto.customname"] = ""; + + /** + * FieldOptions .gogoproto.jsontag. + * @member {string} .gogoproto.jsontag + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype[".gogoproto.jsontag"] = ""; + + /** + * FieldOptions .gogoproto.moretags. + * @member {string} .gogoproto.moretags + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype[".gogoproto.moretags"] = ""; + + /** + * FieldOptions .gogoproto.casttype. + * @member {string} .gogoproto.casttype + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype[".gogoproto.casttype"] = ""; + + /** + * FieldOptions .gogoproto.castkey. + * @member {string} .gogoproto.castkey + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype[".gogoproto.castkey"] = ""; + + /** + * FieldOptions .gogoproto.castvalue. + * @member {string} .gogoproto.castvalue + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype[".gogoproto.castvalue"] = ""; + + /** + * FieldOptions .gogoproto.stdtime. + * @member {boolean} .gogoproto.stdtime + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype[".gogoproto.stdtime"] = false; + + /** + * FieldOptions .gogoproto.stdduration. + * @member {boolean} .gogoproto.stdduration + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype[".gogoproto.stdduration"] = false; + + /** + * FieldOptions .gogoproto.wktpointer. + * @member {boolean} .gogoproto.wktpointer + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype[".gogoproto.wktpointer"] = false; + + /** + * FieldOptions .gogoproto.castrepeated. + * @member {string} .gogoproto.castrepeated + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype[".gogoproto.castrepeated"] = ""; + + /** + * FieldOptions .cosmos_proto.accepts_interface. + * @member {string} .cosmos_proto.accepts_interface + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype[".cosmos_proto.accepts_interface"] = ""; + + /** + * FieldOptions .cosmos_proto.scalar. + * @member {string} .cosmos_proto.scalar + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype[".cosmos_proto.scalar"] = ""; + + /** + * FieldOptions .amino.encoding. + * @member {string} .amino.encoding + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype[".amino.encoding"] = ""; + + /** + * FieldOptions .amino.field_name. + * @member {string} .amino.field_name + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype[".amino.field_name"] = ""; + + /** + * FieldOptions .amino.dont_omitempty. + * @member {boolean} .amino.dont_omitempty + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype[".amino.dont_omitempty"] = false; + + /** + * Encodes the specified FieldOptions message. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages. * @function encode - * @memberof google.protobuf.SourceCodeInfo + * @memberof google.protobuf.FieldOptions * @static - * @param {google.protobuf.ISourceCodeInfo} message SourceCodeInfo message or plain object to encode + * @param {google.protobuf.IFieldOptions} message FieldOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SourceCodeInfo.encode = function encode(message, writer) { + FieldOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.location != null && message.location.length) - for (var i = 0; i < message.location.length; ++i) - $root.google.protobuf.SourceCodeInfo.Location.encode(message.location[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.ctype != null && Object.hasOwnProperty.call(message, "ctype")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.ctype); + if (message.packed != null && Object.hasOwnProperty.call(message, "packed")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.packed); + if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.deprecated); + if (message.lazy != null && Object.hasOwnProperty.call(message, "lazy")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.lazy); + if (message.jstype != null && Object.hasOwnProperty.call(message, "jstype")) + writer.uint32(/* id 6, wireType 0 =*/48).int32(message.jstype); + if (message.weak != null && Object.hasOwnProperty.call(message, "weak")) + writer.uint32(/* id 10, wireType 0 =*/80).bool(message.weak); + if (message.uninterpreted_option != null && message.uninterpreted_option.length) + for (var i = 0; i < message.uninterpreted_option.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpreted_option[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + if (message[".gogoproto.nullable"] != null && Object.hasOwnProperty.call(message, ".gogoproto.nullable")) + writer.uint32(/* id 65001, wireType 0 =*/520008).bool(message[".gogoproto.nullable"]); + if (message[".gogoproto.embed"] != null && Object.hasOwnProperty.call(message, ".gogoproto.embed")) + writer.uint32(/* id 65002, wireType 0 =*/520016).bool(message[".gogoproto.embed"]); + if (message[".gogoproto.customtype"] != null && Object.hasOwnProperty.call(message, ".gogoproto.customtype")) + writer.uint32(/* id 65003, wireType 2 =*/520026).string(message[".gogoproto.customtype"]); + if (message[".gogoproto.customname"] != null && Object.hasOwnProperty.call(message, ".gogoproto.customname")) + writer.uint32(/* id 65004, wireType 2 =*/520034).string(message[".gogoproto.customname"]); + if (message[".gogoproto.jsontag"] != null && Object.hasOwnProperty.call(message, ".gogoproto.jsontag")) + writer.uint32(/* id 65005, wireType 2 =*/520042).string(message[".gogoproto.jsontag"]); + if (message[".gogoproto.moretags"] != null && Object.hasOwnProperty.call(message, ".gogoproto.moretags")) + writer.uint32(/* id 65006, wireType 2 =*/520050).string(message[".gogoproto.moretags"]); + if (message[".gogoproto.casttype"] != null && Object.hasOwnProperty.call(message, ".gogoproto.casttype")) + writer.uint32(/* id 65007, wireType 2 =*/520058).string(message[".gogoproto.casttype"]); + if (message[".gogoproto.castkey"] != null && Object.hasOwnProperty.call(message, ".gogoproto.castkey")) + writer.uint32(/* id 65008, wireType 2 =*/520066).string(message[".gogoproto.castkey"]); + if (message[".gogoproto.castvalue"] != null && Object.hasOwnProperty.call(message, ".gogoproto.castvalue")) + writer.uint32(/* id 65009, wireType 2 =*/520074).string(message[".gogoproto.castvalue"]); + if (message[".gogoproto.stdtime"] != null && Object.hasOwnProperty.call(message, ".gogoproto.stdtime")) + writer.uint32(/* id 65010, wireType 0 =*/520080).bool(message[".gogoproto.stdtime"]); + if (message[".gogoproto.stdduration"] != null && Object.hasOwnProperty.call(message, ".gogoproto.stdduration")) + writer.uint32(/* id 65011, wireType 0 =*/520088).bool(message[".gogoproto.stdduration"]); + if (message[".gogoproto.wktpointer"] != null && Object.hasOwnProperty.call(message, ".gogoproto.wktpointer")) + writer.uint32(/* id 65012, wireType 0 =*/520096).bool(message[".gogoproto.wktpointer"]); + if (message[".gogoproto.castrepeated"] != null && Object.hasOwnProperty.call(message, ".gogoproto.castrepeated")) + writer.uint32(/* id 65013, wireType 2 =*/520106).string(message[".gogoproto.castrepeated"]); + if (message[".cosmos_proto.accepts_interface"] != null && Object.hasOwnProperty.call(message, ".cosmos_proto.accepts_interface")) + writer.uint32(/* id 93001, wireType 2 =*/744010).string(message[".cosmos_proto.accepts_interface"]); + if (message[".cosmos_proto.scalar"] != null && Object.hasOwnProperty.call(message, ".cosmos_proto.scalar")) + writer.uint32(/* id 93002, wireType 2 =*/744018).string(message[".cosmos_proto.scalar"]); + if (message[".amino.encoding"] != null && Object.hasOwnProperty.call(message, ".amino.encoding")) + writer.uint32(/* id 11110003, wireType 2 =*/88880026).string(message[".amino.encoding"]); + if (message[".amino.field_name"] != null && Object.hasOwnProperty.call(message, ".amino.field_name")) + writer.uint32(/* id 11110004, wireType 2 =*/88880034).string(message[".amino.field_name"]); + if (message[".amino.dont_omitempty"] != null && Object.hasOwnProperty.call(message, ".amino.dont_omitempty")) + writer.uint32(/* id 11110005, wireType 0 =*/88880040).bool(message[".amino.dont_omitempty"]); return writer; }; /** - * Encodes the specified SourceCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages. + * Encodes the specified FieldOptions message, length delimited. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages. * @function encodeDelimited - * @memberof google.protobuf.SourceCodeInfo + * @memberof google.protobuf.FieldOptions * @static - * @param {google.protobuf.ISourceCodeInfo} message SourceCodeInfo message or plain object to encode + * @param {google.protobuf.IFieldOptions} message FieldOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SourceCodeInfo.encodeDelimited = function encodeDelimited(message, writer) { + FieldOptions.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SourceCodeInfo message from the specified reader or buffer. + * Decodes a FieldOptions message from the specified reader or buffer. * @function decode - * @memberof google.protobuf.SourceCodeInfo + * @memberof google.protobuf.FieldOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.SourceCodeInfo} SourceCodeInfo + * @returns {google.protobuf.FieldOptions} FieldOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SourceCodeInfo.decode = function decode(reader, length) { + FieldOptions.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.SourceCodeInfo(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FieldOptions(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.location && message.location.length)) - message.location = []; - message.location.push($root.google.protobuf.SourceCodeInfo.Location.decode(reader, reader.uint32())); + message.ctype = reader.int32(); + break; + case 2: + message.packed = reader.bool(); + break; + case 6: + message.jstype = reader.int32(); + break; + case 5: + message.lazy = reader.bool(); + break; + case 3: + message.deprecated = reader.bool(); + break; + case 10: + message.weak = reader.bool(); + break; + case 999: + if (!(message.uninterpreted_option && message.uninterpreted_option.length)) + message.uninterpreted_option = []; + message.uninterpreted_option.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + case 65001: + message[".gogoproto.nullable"] = reader.bool(); + break; + case 65002: + message[".gogoproto.embed"] = reader.bool(); + break; + case 65003: + message[".gogoproto.customtype"] = reader.string(); + break; + case 65004: + message[".gogoproto.customname"] = reader.string(); + break; + case 65005: + message[".gogoproto.jsontag"] = reader.string(); + break; + case 65006: + message[".gogoproto.moretags"] = reader.string(); + break; + case 65007: + message[".gogoproto.casttype"] = reader.string(); + break; + case 65008: + message[".gogoproto.castkey"] = reader.string(); + break; + case 65009: + message[".gogoproto.castvalue"] = reader.string(); + break; + case 65010: + message[".gogoproto.stdtime"] = reader.bool(); + break; + case 65011: + message[".gogoproto.stdduration"] = reader.bool(); + break; + case 65012: + message[".gogoproto.wktpointer"] = reader.bool(); + break; + case 65013: + message[".gogoproto.castrepeated"] = reader.string(); + break; + case 93001: + message[".cosmos_proto.accepts_interface"] = reader.string(); + break; + case 93002: + message[".cosmos_proto.scalar"] = reader.string(); + break; + case 11110003: + message[".amino.encoding"] = reader.string(); + break; + case 11110004: + message[".amino.field_name"] = reader.string(); + break; + case 11110005: + message[".amino.dont_omitempty"] = reader.bool(); break; default: reader.skipType(tag & 7); @@ -15774,455 +22046,387 @@ }; /** - * Decodes a SourceCodeInfo message from the specified reader or buffer, length delimited. + * Decodes a FieldOptions message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.protobuf.SourceCodeInfo + * @memberof google.protobuf.FieldOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.SourceCodeInfo} SourceCodeInfo + * @returns {google.protobuf.FieldOptions} FieldOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SourceCodeInfo.decodeDelimited = function decodeDelimited(reader) { + FieldOptions.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SourceCodeInfo message. + * Verifies a FieldOptions message. * @function verify - * @memberof google.protobuf.SourceCodeInfo + * @memberof google.protobuf.FieldOptions * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SourceCodeInfo.verify = function verify(message) { + FieldOptions.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.location != null && message.hasOwnProperty("location")) { - if (!Array.isArray(message.location)) - return "location: array expected"; - for (var i = 0; i < message.location.length; ++i) { - var error = $root.google.protobuf.SourceCodeInfo.Location.verify(message.location[i]); + if (message.ctype != null && message.hasOwnProperty("ctype")) + switch (message.ctype) { + default: + return "ctype: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.packed != null && message.hasOwnProperty("packed")) + if (typeof message.packed !== "boolean") + return "packed: boolean expected"; + if (message.jstype != null && message.hasOwnProperty("jstype")) + switch (message.jstype) { + default: + return "jstype: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.lazy != null && message.hasOwnProperty("lazy")) + if (typeof message.lazy !== "boolean") + return "lazy: boolean expected"; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (typeof message.deprecated !== "boolean") + return "deprecated: boolean expected"; + if (message.weak != null && message.hasOwnProperty("weak")) + if (typeof message.weak !== "boolean") + return "weak: boolean expected"; + if (message.uninterpreted_option != null && message.hasOwnProperty("uninterpreted_option")) { + if (!Array.isArray(message.uninterpreted_option)) + return "uninterpreted_option: array expected"; + for (var i = 0; i < message.uninterpreted_option.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpreted_option[i]); if (error) - return "location." + error; + return "uninterpreted_option." + error; } } - return null; - }; - - /** - * Creates a SourceCodeInfo message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.SourceCodeInfo - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.SourceCodeInfo} SourceCodeInfo - */ - SourceCodeInfo.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.SourceCodeInfo) - return object; - var message = new $root.google.protobuf.SourceCodeInfo(); - if (object.location) { - if (!Array.isArray(object.location)) - throw TypeError(".google.protobuf.SourceCodeInfo.location: array expected"); - message.location = []; - for (var i = 0; i < object.location.length; ++i) { - if (typeof object.location[i] !== "object") - throw TypeError(".google.protobuf.SourceCodeInfo.location: object expected"); - message.location[i] = $root.google.protobuf.SourceCodeInfo.Location.fromObject(object.location[i]); + if (message[".gogoproto.nullable"] != null && message.hasOwnProperty(".gogoproto.nullable")) + if (typeof message[".gogoproto.nullable"] !== "boolean") + return ".gogoproto.nullable: boolean expected"; + if (message[".gogoproto.embed"] != null && message.hasOwnProperty(".gogoproto.embed")) + if (typeof message[".gogoproto.embed"] !== "boolean") + return ".gogoproto.embed: boolean expected"; + if (message[".gogoproto.customtype"] != null && message.hasOwnProperty(".gogoproto.customtype")) + if (!$util.isString(message[".gogoproto.customtype"])) + return ".gogoproto.customtype: string expected"; + if (message[".gogoproto.customname"] != null && message.hasOwnProperty(".gogoproto.customname")) + if (!$util.isString(message[".gogoproto.customname"])) + return ".gogoproto.customname: string expected"; + if (message[".gogoproto.jsontag"] != null && message.hasOwnProperty(".gogoproto.jsontag")) + if (!$util.isString(message[".gogoproto.jsontag"])) + return ".gogoproto.jsontag: string expected"; + if (message[".gogoproto.moretags"] != null && message.hasOwnProperty(".gogoproto.moretags")) + if (!$util.isString(message[".gogoproto.moretags"])) + return ".gogoproto.moretags: string expected"; + if (message[".gogoproto.casttype"] != null && message.hasOwnProperty(".gogoproto.casttype")) + if (!$util.isString(message[".gogoproto.casttype"])) + return ".gogoproto.casttype: string expected"; + if (message[".gogoproto.castkey"] != null && message.hasOwnProperty(".gogoproto.castkey")) + if (!$util.isString(message[".gogoproto.castkey"])) + return ".gogoproto.castkey: string expected"; + if (message[".gogoproto.castvalue"] != null && message.hasOwnProperty(".gogoproto.castvalue")) + if (!$util.isString(message[".gogoproto.castvalue"])) + return ".gogoproto.castvalue: string expected"; + if (message[".gogoproto.stdtime"] != null && message.hasOwnProperty(".gogoproto.stdtime")) + if (typeof message[".gogoproto.stdtime"] !== "boolean") + return ".gogoproto.stdtime: boolean expected"; + if (message[".gogoproto.stdduration"] != null && message.hasOwnProperty(".gogoproto.stdduration")) + if (typeof message[".gogoproto.stdduration"] !== "boolean") + return ".gogoproto.stdduration: boolean expected"; + if (message[".gogoproto.wktpointer"] != null && message.hasOwnProperty(".gogoproto.wktpointer")) + if (typeof message[".gogoproto.wktpointer"] !== "boolean") + return ".gogoproto.wktpointer: boolean expected"; + if (message[".gogoproto.castrepeated"] != null && message.hasOwnProperty(".gogoproto.castrepeated")) + if (!$util.isString(message[".gogoproto.castrepeated"])) + return ".gogoproto.castrepeated: string expected"; + if (message[".cosmos_proto.accepts_interface"] != null && message.hasOwnProperty(".cosmos_proto.accepts_interface")) + if (!$util.isString(message[".cosmos_proto.accepts_interface"])) + return ".cosmos_proto.accepts_interface: string expected"; + if (message[".cosmos_proto.scalar"] != null && message.hasOwnProperty(".cosmos_proto.scalar")) + if (!$util.isString(message[".cosmos_proto.scalar"])) + return ".cosmos_proto.scalar: string expected"; + if (message[".amino.encoding"] != null && message.hasOwnProperty(".amino.encoding")) + if (!$util.isString(message[".amino.encoding"])) + return ".amino.encoding: string expected"; + if (message[".amino.field_name"] != null && message.hasOwnProperty(".amino.field_name")) + if (!$util.isString(message[".amino.field_name"])) + return ".amino.field_name: string expected"; + if (message[".amino.dont_omitempty"] != null && message.hasOwnProperty(".amino.dont_omitempty")) + if (typeof message[".amino.dont_omitempty"] !== "boolean") + return ".amino.dont_omitempty: boolean expected"; + return null; + }; + + /** + * Creates a FieldOptions message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.FieldOptions + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.FieldOptions} FieldOptions + */ + FieldOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.FieldOptions) + return object; + var message = new $root.google.protobuf.FieldOptions(); + switch (object.ctype) { + case "STRING": + case 0: + message.ctype = 0; + break; + case "CORD": + case 1: + message.ctype = 1; + break; + case "STRING_PIECE": + case 2: + message.ctype = 2; + break; + } + if (object.packed != null) + message.packed = Boolean(object.packed); + switch (object.jstype) { + case "JS_NORMAL": + case 0: + message.jstype = 0; + break; + case "JS_STRING": + case 1: + message.jstype = 1; + break; + case "JS_NUMBER": + case 2: + message.jstype = 2; + break; + } + if (object.lazy != null) + message.lazy = Boolean(object.lazy); + if (object.deprecated != null) + message.deprecated = Boolean(object.deprecated); + if (object.weak != null) + message.weak = Boolean(object.weak); + if (object.uninterpreted_option) { + if (!Array.isArray(object.uninterpreted_option)) + throw TypeError(".google.protobuf.FieldOptions.uninterpreted_option: array expected"); + message.uninterpreted_option = []; + for (var i = 0; i < object.uninterpreted_option.length; ++i) { + if (typeof object.uninterpreted_option[i] !== "object") + throw TypeError(".google.protobuf.FieldOptions.uninterpreted_option: object expected"); + message.uninterpreted_option[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpreted_option[i]); } } + if (object[".gogoproto.nullable"] != null) + message[".gogoproto.nullable"] = Boolean(object[".gogoproto.nullable"]); + if (object[".gogoproto.embed"] != null) + message[".gogoproto.embed"] = Boolean(object[".gogoproto.embed"]); + if (object[".gogoproto.customtype"] != null) + message[".gogoproto.customtype"] = String(object[".gogoproto.customtype"]); + if (object[".gogoproto.customname"] != null) + message[".gogoproto.customname"] = String(object[".gogoproto.customname"]); + if (object[".gogoproto.jsontag"] != null) + message[".gogoproto.jsontag"] = String(object[".gogoproto.jsontag"]); + if (object[".gogoproto.moretags"] != null) + message[".gogoproto.moretags"] = String(object[".gogoproto.moretags"]); + if (object[".gogoproto.casttype"] != null) + message[".gogoproto.casttype"] = String(object[".gogoproto.casttype"]); + if (object[".gogoproto.castkey"] != null) + message[".gogoproto.castkey"] = String(object[".gogoproto.castkey"]); + if (object[".gogoproto.castvalue"] != null) + message[".gogoproto.castvalue"] = String(object[".gogoproto.castvalue"]); + if (object[".gogoproto.stdtime"] != null) + message[".gogoproto.stdtime"] = Boolean(object[".gogoproto.stdtime"]); + if (object[".gogoproto.stdduration"] != null) + message[".gogoproto.stdduration"] = Boolean(object[".gogoproto.stdduration"]); + if (object[".gogoproto.wktpointer"] != null) + message[".gogoproto.wktpointer"] = Boolean(object[".gogoproto.wktpointer"]); + if (object[".gogoproto.castrepeated"] != null) + message[".gogoproto.castrepeated"] = String(object[".gogoproto.castrepeated"]); + if (object[".cosmos_proto.accepts_interface"] != null) + message[".cosmos_proto.accepts_interface"] = String(object[".cosmos_proto.accepts_interface"]); + if (object[".cosmos_proto.scalar"] != null) + message[".cosmos_proto.scalar"] = String(object[".cosmos_proto.scalar"]); + if (object[".amino.encoding"] != null) + message[".amino.encoding"] = String(object[".amino.encoding"]); + if (object[".amino.field_name"] != null) + message[".amino.field_name"] = String(object[".amino.field_name"]); + if (object[".amino.dont_omitempty"] != null) + message[".amino.dont_omitempty"] = Boolean(object[".amino.dont_omitempty"]); return message; }; /** - * Creates a plain object from a SourceCodeInfo message. Also converts values to other types if specified. + * Creates a plain object from a FieldOptions message. Also converts values to other types if specified. * @function toObject - * @memberof google.protobuf.SourceCodeInfo + * @memberof google.protobuf.FieldOptions * @static - * @param {google.protobuf.SourceCodeInfo} message SourceCodeInfo + * @param {google.protobuf.FieldOptions} message FieldOptions * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SourceCodeInfo.toObject = function toObject(message, options) { + FieldOptions.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.location = []; - if (message.location && message.location.length) { - object.location = []; - for (var j = 0; j < message.location.length; ++j) - object.location[j] = $root.google.protobuf.SourceCodeInfo.Location.toObject(message.location[j], options); + object.uninterpreted_option = []; + if (options.defaults) { + object.ctype = options.enums === String ? "STRING" : 0; + object.packed = false; + object.deprecated = false; + object.lazy = false; + object.jstype = options.enums === String ? "JS_NORMAL" : 0; + object.weak = false; + object[".gogoproto.nullable"] = false; + object[".gogoproto.embed"] = false; + object[".gogoproto.customtype"] = ""; + object[".gogoproto.customname"] = ""; + object[".gogoproto.jsontag"] = ""; + object[".gogoproto.moretags"] = ""; + object[".gogoproto.casttype"] = ""; + object[".gogoproto.castkey"] = ""; + object[".gogoproto.castvalue"] = ""; + object[".gogoproto.stdtime"] = false; + object[".gogoproto.stdduration"] = false; + object[".gogoproto.wktpointer"] = false; + object[".gogoproto.castrepeated"] = ""; + object[".cosmos_proto.accepts_interface"] = ""; + object[".cosmos_proto.scalar"] = ""; + object[".amino.encoding"] = ""; + object[".amino.field_name"] = ""; + object[".amino.dont_omitempty"] = false; + } + if (message.ctype != null && message.hasOwnProperty("ctype")) + object.ctype = options.enums === String ? $root.google.protobuf.FieldOptions.CType[message.ctype] : message.ctype; + if (message.packed != null && message.hasOwnProperty("packed")) + object.packed = message.packed; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + object.deprecated = message.deprecated; + if (message.lazy != null && message.hasOwnProperty("lazy")) + object.lazy = message.lazy; + if (message.jstype != null && message.hasOwnProperty("jstype")) + object.jstype = options.enums === String ? $root.google.protobuf.FieldOptions.JSType[message.jstype] : message.jstype; + if (message.weak != null && message.hasOwnProperty("weak")) + object.weak = message.weak; + if (message.uninterpreted_option && message.uninterpreted_option.length) { + object.uninterpreted_option = []; + for (var j = 0; j < message.uninterpreted_option.length; ++j) + object.uninterpreted_option[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpreted_option[j], options); } + if (message[".gogoproto.nullable"] != null && message.hasOwnProperty(".gogoproto.nullable")) + object[".gogoproto.nullable"] = message[".gogoproto.nullable"]; + if (message[".gogoproto.embed"] != null && message.hasOwnProperty(".gogoproto.embed")) + object[".gogoproto.embed"] = message[".gogoproto.embed"]; + if (message[".gogoproto.customtype"] != null && message.hasOwnProperty(".gogoproto.customtype")) + object[".gogoproto.customtype"] = message[".gogoproto.customtype"]; + if (message[".gogoproto.customname"] != null && message.hasOwnProperty(".gogoproto.customname")) + object[".gogoproto.customname"] = message[".gogoproto.customname"]; + if (message[".gogoproto.jsontag"] != null && message.hasOwnProperty(".gogoproto.jsontag")) + object[".gogoproto.jsontag"] = message[".gogoproto.jsontag"]; + if (message[".gogoproto.moretags"] != null && message.hasOwnProperty(".gogoproto.moretags")) + object[".gogoproto.moretags"] = message[".gogoproto.moretags"]; + if (message[".gogoproto.casttype"] != null && message.hasOwnProperty(".gogoproto.casttype")) + object[".gogoproto.casttype"] = message[".gogoproto.casttype"]; + if (message[".gogoproto.castkey"] != null && message.hasOwnProperty(".gogoproto.castkey")) + object[".gogoproto.castkey"] = message[".gogoproto.castkey"]; + if (message[".gogoproto.castvalue"] != null && message.hasOwnProperty(".gogoproto.castvalue")) + object[".gogoproto.castvalue"] = message[".gogoproto.castvalue"]; + if (message[".gogoproto.stdtime"] != null && message.hasOwnProperty(".gogoproto.stdtime")) + object[".gogoproto.stdtime"] = message[".gogoproto.stdtime"]; + if (message[".gogoproto.stdduration"] != null && message.hasOwnProperty(".gogoproto.stdduration")) + object[".gogoproto.stdduration"] = message[".gogoproto.stdduration"]; + if (message[".gogoproto.wktpointer"] != null && message.hasOwnProperty(".gogoproto.wktpointer")) + object[".gogoproto.wktpointer"] = message[".gogoproto.wktpointer"]; + if (message[".gogoproto.castrepeated"] != null && message.hasOwnProperty(".gogoproto.castrepeated")) + object[".gogoproto.castrepeated"] = message[".gogoproto.castrepeated"]; + if (message[".cosmos_proto.accepts_interface"] != null && message.hasOwnProperty(".cosmos_proto.accepts_interface")) + object[".cosmos_proto.accepts_interface"] = message[".cosmos_proto.accepts_interface"]; + if (message[".cosmos_proto.scalar"] != null && message.hasOwnProperty(".cosmos_proto.scalar")) + object[".cosmos_proto.scalar"] = message[".cosmos_proto.scalar"]; + if (message[".amino.encoding"] != null && message.hasOwnProperty(".amino.encoding")) + object[".amino.encoding"] = message[".amino.encoding"]; + if (message[".amino.field_name"] != null && message.hasOwnProperty(".amino.field_name")) + object[".amino.field_name"] = message[".amino.field_name"]; + if (message[".amino.dont_omitempty"] != null && message.hasOwnProperty(".amino.dont_omitempty")) + object[".amino.dont_omitempty"] = message[".amino.dont_omitempty"]; return object; }; /** - * Converts this SourceCodeInfo to JSON. + * Converts this FieldOptions to JSON. * @function toJSON - * @memberof google.protobuf.SourceCodeInfo + * @memberof google.protobuf.FieldOptions * @instance * @returns {Object.} JSON object */ - SourceCodeInfo.prototype.toJSON = function toJSON() { + FieldOptions.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - SourceCodeInfo.Location = (function() { - - /** - * Properties of a Location. - * @memberof google.protobuf.SourceCodeInfo - * @interface ILocation - * @property {Array.|null} [path] Location path - * @property {Array.|null} [span] Location span - * @property {string|null} [leading_comments] Location leading_comments - * @property {string|null} [trailing_comments] Location trailing_comments - * @property {Array.|null} [leading_detached_comments] Location leading_detached_comments - */ - - /** - * Constructs a new Location. - * @memberof google.protobuf.SourceCodeInfo - * @classdesc Represents a Location. - * @implements ILocation - * @constructor - * @param {google.protobuf.SourceCodeInfo.ILocation=} [properties] Properties to set - */ - function Location(properties) { - this.path = []; - this.span = []; - this.leading_detached_comments = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Location path. - * @member {Array.} path - * @memberof google.protobuf.SourceCodeInfo.Location - * @instance - */ - Location.prototype.path = $util.emptyArray; - - /** - * Location span. - * @member {Array.} span - * @memberof google.protobuf.SourceCodeInfo.Location - * @instance - */ - Location.prototype.span = $util.emptyArray; - - /** - * Location leading_comments. - * @member {string} leading_comments - * @memberof google.protobuf.SourceCodeInfo.Location - * @instance - */ - Location.prototype.leading_comments = ""; - - /** - * Location trailing_comments. - * @member {string} trailing_comments - * @memberof google.protobuf.SourceCodeInfo.Location - * @instance - */ - Location.prototype.trailing_comments = ""; - - /** - * Location leading_detached_comments. - * @member {Array.} leading_detached_comments - * @memberof google.protobuf.SourceCodeInfo.Location - * @instance - */ - Location.prototype.leading_detached_comments = $util.emptyArray; - - /** - * Encodes the specified Location message. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages. - * @function encode - * @memberof google.protobuf.SourceCodeInfo.Location - * @static - * @param {google.protobuf.SourceCodeInfo.ILocation} message Location message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Location.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.path != null && message.path.length) { - writer.uint32(/* id 1, wireType 2 =*/10).fork(); - for (var i = 0; i < message.path.length; ++i) - writer.int32(message.path[i]); - writer.ldelim(); - } - if (message.span != null && message.span.length) { - writer.uint32(/* id 2, wireType 2 =*/18).fork(); - for (var i = 0; i < message.span.length; ++i) - writer.int32(message.span[i]); - writer.ldelim(); - } - if (message.leading_comments != null && Object.hasOwnProperty.call(message, "leading_comments")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.leading_comments); - if (message.trailing_comments != null && Object.hasOwnProperty.call(message, "trailing_comments")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.trailing_comments); - if (message.leading_detached_comments != null && message.leading_detached_comments.length) - for (var i = 0; i < message.leading_detached_comments.length; ++i) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.leading_detached_comments[i]); - return writer; - }; - - /** - * Encodes the specified Location message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.SourceCodeInfo.Location - * @static - * @param {google.protobuf.SourceCodeInfo.ILocation} message Location message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Location.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a Location message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.SourceCodeInfo.Location - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.SourceCodeInfo.Location} Location - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Location.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.SourceCodeInfo.Location(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.path && message.path.length)) - message.path = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.path.push(reader.int32()); - } else - message.path.push(reader.int32()); - break; - case 2: - if (!(message.span && message.span.length)) - message.span = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.span.push(reader.int32()); - } else - message.span.push(reader.int32()); - break; - case 3: - message.leading_comments = reader.string(); - break; - case 4: - message.trailing_comments = reader.string(); - break; - case 6: - if (!(message.leading_detached_comments && message.leading_detached_comments.length)) - message.leading_detached_comments = []; - message.leading_detached_comments.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a Location message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.SourceCodeInfo.Location - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.SourceCodeInfo.Location} Location - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Location.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a Location message. - * @function verify - * @memberof google.protobuf.SourceCodeInfo.Location - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Location.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.path != null && message.hasOwnProperty("path")) { - if (!Array.isArray(message.path)) - return "path: array expected"; - for (var i = 0; i < message.path.length; ++i) - if (!$util.isInteger(message.path[i])) - return "path: integer[] expected"; - } - if (message.span != null && message.hasOwnProperty("span")) { - if (!Array.isArray(message.span)) - return "span: array expected"; - for (var i = 0; i < message.span.length; ++i) - if (!$util.isInteger(message.span[i])) - return "span: integer[] expected"; - } - if (message.leading_comments != null && message.hasOwnProperty("leading_comments")) - if (!$util.isString(message.leading_comments)) - return "leading_comments: string expected"; - if (message.trailing_comments != null && message.hasOwnProperty("trailing_comments")) - if (!$util.isString(message.trailing_comments)) - return "trailing_comments: string expected"; - if (message.leading_detached_comments != null && message.hasOwnProperty("leading_detached_comments")) { - if (!Array.isArray(message.leading_detached_comments)) - return "leading_detached_comments: array expected"; - for (var i = 0; i < message.leading_detached_comments.length; ++i) - if (!$util.isString(message.leading_detached_comments[i])) - return "leading_detached_comments: string[] expected"; - } - return null; - }; - - /** - * Creates a Location message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.SourceCodeInfo.Location - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.SourceCodeInfo.Location} Location - */ - Location.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.SourceCodeInfo.Location) - return object; - var message = new $root.google.protobuf.SourceCodeInfo.Location(); - if (object.path) { - if (!Array.isArray(object.path)) - throw TypeError(".google.protobuf.SourceCodeInfo.Location.path: array expected"); - message.path = []; - for (var i = 0; i < object.path.length; ++i) - message.path[i] = object.path[i] | 0; - } - if (object.span) { - if (!Array.isArray(object.span)) - throw TypeError(".google.protobuf.SourceCodeInfo.Location.span: array expected"); - message.span = []; - for (var i = 0; i < object.span.length; ++i) - message.span[i] = object.span[i] | 0; - } - if (object.leading_comments != null) - message.leading_comments = String(object.leading_comments); - if (object.trailing_comments != null) - message.trailing_comments = String(object.trailing_comments); - if (object.leading_detached_comments) { - if (!Array.isArray(object.leading_detached_comments)) - throw TypeError(".google.protobuf.SourceCodeInfo.Location.leading_detached_comments: array expected"); - message.leading_detached_comments = []; - for (var i = 0; i < object.leading_detached_comments.length; ++i) - message.leading_detached_comments[i] = String(object.leading_detached_comments[i]); - } - return message; - }; - - /** - * Creates a plain object from a Location message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.SourceCodeInfo.Location - * @static - * @param {google.protobuf.SourceCodeInfo.Location} message Location - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Location.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) { - object.path = []; - object.span = []; - object.leading_detached_comments = []; - } - if (options.defaults) { - object.leading_comments = ""; - object.trailing_comments = ""; - } - if (message.path && message.path.length) { - object.path = []; - for (var j = 0; j < message.path.length; ++j) - object.path[j] = message.path[j]; - } - if (message.span && message.span.length) { - object.span = []; - for (var j = 0; j < message.span.length; ++j) - object.span[j] = message.span[j]; - } - if (message.leading_comments != null && message.hasOwnProperty("leading_comments")) - object.leading_comments = message.leading_comments; - if (message.trailing_comments != null && message.hasOwnProperty("trailing_comments")) - object.trailing_comments = message.trailing_comments; - if (message.leading_detached_comments && message.leading_detached_comments.length) { - object.leading_detached_comments = []; - for (var j = 0; j < message.leading_detached_comments.length; ++j) - object.leading_detached_comments[j] = message.leading_detached_comments[j]; - } - return object; - }; - - /** - * Converts this Location to JSON. - * @function toJSON - * @memberof google.protobuf.SourceCodeInfo.Location - * @instance - * @returns {Object.} JSON object - */ - Location.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * CType enum. + * @name google.protobuf.FieldOptions.CType + * @enum {number} + * @property {number} STRING=0 STRING value + * @property {number} CORD=1 CORD value + * @property {number} STRING_PIECE=2 STRING_PIECE value + */ + FieldOptions.CType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "STRING"] = 0; + values[valuesById[1] = "CORD"] = 1; + values[valuesById[2] = "STRING_PIECE"] = 2; + return values; + })(); - return Location; + /** + * JSType enum. + * @name google.protobuf.FieldOptions.JSType + * @enum {number} + * @property {number} JS_NORMAL=0 JS_NORMAL value + * @property {number} JS_STRING=1 JS_STRING value + * @property {number} JS_NUMBER=2 JS_NUMBER value + */ + FieldOptions.JSType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "JS_NORMAL"] = 0; + values[valuesById[1] = "JS_STRING"] = 1; + values[valuesById[2] = "JS_NUMBER"] = 2; + return values; })(); - return SourceCodeInfo; + return FieldOptions; })(); - protobuf.GeneratedCodeInfo = (function() { + protobuf.OneofOptions = (function() { /** - * Properties of a GeneratedCodeInfo. + * Properties of an OneofOptions. * @memberof google.protobuf - * @interface IGeneratedCodeInfo - * @property {Array.|null} [annotation] GeneratedCodeInfo annotation + * @interface IOneofOptions + * @property {Array.|null} [uninterpreted_option] OneofOptions uninterpreted_option */ /** - * Constructs a new GeneratedCodeInfo. + * Constructs a new OneofOptions. * @memberof google.protobuf - * @classdesc Represents a GeneratedCodeInfo. - * @implements IGeneratedCodeInfo + * @classdesc Represents an OneofOptions. + * @implements IOneofOptions * @constructor - * @param {google.protobuf.IGeneratedCodeInfo=} [properties] Properties to set + * @param {google.protobuf.IOneofOptions=} [properties] Properties to set */ - function GeneratedCodeInfo(properties) { - this.annotation = []; + function OneofOptions(properties) { + this.uninterpreted_option = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -16230,66 +22434,66 @@ } /** - * GeneratedCodeInfo annotation. - * @member {Array.} annotation - * @memberof google.protobuf.GeneratedCodeInfo + * OneofOptions uninterpreted_option. + * @member {Array.} uninterpreted_option + * @memberof google.protobuf.OneofOptions * @instance */ - GeneratedCodeInfo.prototype.annotation = $util.emptyArray; + OneofOptions.prototype.uninterpreted_option = $util.emptyArray; /** - * Encodes the specified GeneratedCodeInfo message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages. + * Encodes the specified OneofOptions message. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages. * @function encode - * @memberof google.protobuf.GeneratedCodeInfo + * @memberof google.protobuf.OneofOptions * @static - * @param {google.protobuf.IGeneratedCodeInfo} message GeneratedCodeInfo message or plain object to encode + * @param {google.protobuf.IOneofOptions} message OneofOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GeneratedCodeInfo.encode = function encode(message, writer) { + OneofOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.annotation != null && message.annotation.length) - for (var i = 0; i < message.annotation.length; ++i) - $root.google.protobuf.GeneratedCodeInfo.Annotation.encode(message.annotation[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.uninterpreted_option != null && message.uninterpreted_option.length) + for (var i = 0; i < message.uninterpreted_option.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpreted_option[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); return writer; }; /** - * Encodes the specified GeneratedCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages. + * Encodes the specified OneofOptions message, length delimited. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages. * @function encodeDelimited - * @memberof google.protobuf.GeneratedCodeInfo + * @memberof google.protobuf.OneofOptions * @static - * @param {google.protobuf.IGeneratedCodeInfo} message GeneratedCodeInfo message or plain object to encode + * @param {google.protobuf.IOneofOptions} message OneofOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GeneratedCodeInfo.encodeDelimited = function encodeDelimited(message, writer) { + OneofOptions.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GeneratedCodeInfo message from the specified reader or buffer. + * Decodes an OneofOptions message from the specified reader or buffer. * @function decode - * @memberof google.protobuf.GeneratedCodeInfo + * @memberof google.protobuf.OneofOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.GeneratedCodeInfo} GeneratedCodeInfo + * @returns {google.protobuf.OneofOptions} OneofOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GeneratedCodeInfo.decode = function decode(reader, length) { + OneofOptions.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.GeneratedCodeInfo(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.OneofOptions(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - if (!(message.annotation && message.annotation.length)) - message.annotation = []; - message.annotation.push($root.google.protobuf.GeneratedCodeInfo.Annotation.decode(reader, reader.uint32())); + case 999: + if (!(message.uninterpreted_option && message.uninterpreted_option.length)) + message.uninterpreted_option = []; + message.uninterpreted_option.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -16300,392 +22504,479 @@ }; /** - * Decodes a GeneratedCodeInfo message from the specified reader or buffer, length delimited. + * Decodes an OneofOptions message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.protobuf.GeneratedCodeInfo + * @memberof google.protobuf.OneofOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.GeneratedCodeInfo} GeneratedCodeInfo + * @returns {google.protobuf.OneofOptions} OneofOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GeneratedCodeInfo.decodeDelimited = function decodeDelimited(reader) { + OneofOptions.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GeneratedCodeInfo message. + * Verifies an OneofOptions message. * @function verify - * @memberof google.protobuf.GeneratedCodeInfo + * @memberof google.protobuf.OneofOptions * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GeneratedCodeInfo.verify = function verify(message) { + OneofOptions.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.annotation != null && message.hasOwnProperty("annotation")) { - if (!Array.isArray(message.annotation)) - return "annotation: array expected"; - for (var i = 0; i < message.annotation.length; ++i) { - var error = $root.google.protobuf.GeneratedCodeInfo.Annotation.verify(message.annotation[i]); + if (message.uninterpreted_option != null && message.hasOwnProperty("uninterpreted_option")) { + if (!Array.isArray(message.uninterpreted_option)) + return "uninterpreted_option: array expected"; + for (var i = 0; i < message.uninterpreted_option.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpreted_option[i]); if (error) - return "annotation." + error; + return "uninterpreted_option." + error; } } return null; }; /** - * Creates a GeneratedCodeInfo message from a plain object. Also converts values to their respective internal types. + * Creates an OneofOptions message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.protobuf.GeneratedCodeInfo + * @memberof google.protobuf.OneofOptions * @static * @param {Object.} object Plain object - * @returns {google.protobuf.GeneratedCodeInfo} GeneratedCodeInfo + * @returns {google.protobuf.OneofOptions} OneofOptions */ - GeneratedCodeInfo.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.GeneratedCodeInfo) + OneofOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.OneofOptions) return object; - var message = new $root.google.protobuf.GeneratedCodeInfo(); - if (object.annotation) { - if (!Array.isArray(object.annotation)) - throw TypeError(".google.protobuf.GeneratedCodeInfo.annotation: array expected"); - message.annotation = []; - for (var i = 0; i < object.annotation.length; ++i) { - if (typeof object.annotation[i] !== "object") - throw TypeError(".google.protobuf.GeneratedCodeInfo.annotation: object expected"); - message.annotation[i] = $root.google.protobuf.GeneratedCodeInfo.Annotation.fromObject(object.annotation[i]); + var message = new $root.google.protobuf.OneofOptions(); + if (object.uninterpreted_option) { + if (!Array.isArray(object.uninterpreted_option)) + throw TypeError(".google.protobuf.OneofOptions.uninterpreted_option: array expected"); + message.uninterpreted_option = []; + for (var i = 0; i < object.uninterpreted_option.length; ++i) { + if (typeof object.uninterpreted_option[i] !== "object") + throw TypeError(".google.protobuf.OneofOptions.uninterpreted_option: object expected"); + message.uninterpreted_option[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpreted_option[i]); } } return message; }; /** - * Creates a plain object from a GeneratedCodeInfo message. Also converts values to other types if specified. + * Creates a plain object from an OneofOptions message. Also converts values to other types if specified. * @function toObject - * @memberof google.protobuf.GeneratedCodeInfo + * @memberof google.protobuf.OneofOptions * @static - * @param {google.protobuf.GeneratedCodeInfo} message GeneratedCodeInfo + * @param {google.protobuf.OneofOptions} message OneofOptions * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GeneratedCodeInfo.toObject = function toObject(message, options) { + OneofOptions.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.annotation = []; - if (message.annotation && message.annotation.length) { - object.annotation = []; - for (var j = 0; j < message.annotation.length; ++j) - object.annotation[j] = $root.google.protobuf.GeneratedCodeInfo.Annotation.toObject(message.annotation[j], options); + object.uninterpreted_option = []; + if (message.uninterpreted_option && message.uninterpreted_option.length) { + object.uninterpreted_option = []; + for (var j = 0; j < message.uninterpreted_option.length; ++j) + object.uninterpreted_option[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpreted_option[j], options); } return object; }; /** - * Converts this GeneratedCodeInfo to JSON. + * Converts this OneofOptions to JSON. * @function toJSON - * @memberof google.protobuf.GeneratedCodeInfo + * @memberof google.protobuf.OneofOptions * @instance * @returns {Object.} JSON object */ - GeneratedCodeInfo.prototype.toJSON = function toJSON() { + OneofOptions.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - GeneratedCodeInfo.Annotation = (function() { + return OneofOptions; + })(); - /** - * Properties of an Annotation. - * @memberof google.protobuf.GeneratedCodeInfo - * @interface IAnnotation - * @property {Array.|null} [path] Annotation path - * @property {string|null} [source_file] Annotation source_file - * @property {number|null} [begin] Annotation begin - * @property {number|null} [end] Annotation end - */ + protobuf.EnumOptions = (function() { - /** - * Constructs a new Annotation. - * @memberof google.protobuf.GeneratedCodeInfo - * @classdesc Represents an Annotation. - * @implements IAnnotation - * @constructor - * @param {google.protobuf.GeneratedCodeInfo.IAnnotation=} [properties] Properties to set - */ - function Annotation(properties) { - this.path = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Properties of an EnumOptions. + * @memberof google.protobuf + * @interface IEnumOptions + * @property {boolean|null} [allow_alias] EnumOptions allow_alias + * @property {boolean|null} [deprecated] EnumOptions deprecated + * @property {Array.|null} [uninterpreted_option] EnumOptions uninterpreted_option + * @property {boolean|null} [".gogoproto.goproto_enum_prefix"] EnumOptions .gogoproto.goproto_enum_prefix + * @property {boolean|null} [".gogoproto.goproto_enum_stringer"] EnumOptions .gogoproto.goproto_enum_stringer + * @property {boolean|null} [".gogoproto.enum_stringer"] EnumOptions .gogoproto.enum_stringer + * @property {string|null} [".gogoproto.enum_customname"] EnumOptions .gogoproto.enum_customname + * @property {boolean|null} [".gogoproto.enumdecl"] EnumOptions .gogoproto.enumdecl + */ - /** - * Annotation path. - * @member {Array.} path - * @memberof google.protobuf.GeneratedCodeInfo.Annotation - * @instance - */ - Annotation.prototype.path = $util.emptyArray; + /** + * Constructs a new EnumOptions. + * @memberof google.protobuf + * @classdesc Represents an EnumOptions. + * @implements IEnumOptions + * @constructor + * @param {google.protobuf.IEnumOptions=} [properties] Properties to set + */ + function EnumOptions(properties) { + this.uninterpreted_option = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Annotation source_file. - * @member {string} source_file - * @memberof google.protobuf.GeneratedCodeInfo.Annotation - * @instance - */ - Annotation.prototype.source_file = ""; + /** + * EnumOptions allow_alias. + * @member {boolean} allow_alias + * @memberof google.protobuf.EnumOptions + * @instance + */ + EnumOptions.prototype.allow_alias = false; - /** - * Annotation begin. - * @member {number} begin - * @memberof google.protobuf.GeneratedCodeInfo.Annotation - * @instance - */ - Annotation.prototype.begin = 0; + /** + * EnumOptions deprecated. + * @member {boolean} deprecated + * @memberof google.protobuf.EnumOptions + * @instance + */ + EnumOptions.prototype.deprecated = false; - /** - * Annotation end. - * @member {number} end - * @memberof google.protobuf.GeneratedCodeInfo.Annotation - * @instance - */ - Annotation.prototype.end = 0; + /** + * EnumOptions uninterpreted_option. + * @member {Array.} uninterpreted_option + * @memberof google.protobuf.EnumOptions + * @instance + */ + EnumOptions.prototype.uninterpreted_option = $util.emptyArray; - /** - * Encodes the specified Annotation message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages. - * @function encode - * @memberof google.protobuf.GeneratedCodeInfo.Annotation - * @static - * @param {google.protobuf.GeneratedCodeInfo.IAnnotation} message Annotation message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Annotation.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.path != null && message.path.length) { - writer.uint32(/* id 1, wireType 2 =*/10).fork(); - for (var i = 0; i < message.path.length; ++i) - writer.int32(message.path[i]); - writer.ldelim(); - } - if (message.source_file != null && Object.hasOwnProperty.call(message, "source_file")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.source_file); - if (message.begin != null && Object.hasOwnProperty.call(message, "begin")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.begin); - if (message.end != null && Object.hasOwnProperty.call(message, "end")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.end); - return writer; - }; + /** + * EnumOptions .gogoproto.goproto_enum_prefix. + * @member {boolean} .gogoproto.goproto_enum_prefix + * @memberof google.protobuf.EnumOptions + * @instance + */ + EnumOptions.prototype[".gogoproto.goproto_enum_prefix"] = false; - /** - * Encodes the specified Annotation message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.GeneratedCodeInfo.Annotation - * @static - * @param {google.protobuf.GeneratedCodeInfo.IAnnotation} message Annotation message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Annotation.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * EnumOptions .gogoproto.goproto_enum_stringer. + * @member {boolean} .gogoproto.goproto_enum_stringer + * @memberof google.protobuf.EnumOptions + * @instance + */ + EnumOptions.prototype[".gogoproto.goproto_enum_stringer"] = false; - /** - * Decodes an Annotation message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.GeneratedCodeInfo.Annotation - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.GeneratedCodeInfo.Annotation} Annotation - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Annotation.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.GeneratedCodeInfo.Annotation(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.path && message.path.length)) - message.path = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.path.push(reader.int32()); - } else - message.path.push(reader.int32()); - break; - case 2: - message.source_file = reader.string(); - break; - case 3: - message.begin = reader.int32(); - break; - case 4: - message.end = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * EnumOptions .gogoproto.enum_stringer. + * @member {boolean} .gogoproto.enum_stringer + * @memberof google.protobuf.EnumOptions + * @instance + */ + EnumOptions.prototype[".gogoproto.enum_stringer"] = false; - /** - * Decodes an Annotation message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.GeneratedCodeInfo.Annotation - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.GeneratedCodeInfo.Annotation} Annotation - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Annotation.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * EnumOptions .gogoproto.enum_customname. + * @member {string} .gogoproto.enum_customname + * @memberof google.protobuf.EnumOptions + * @instance + */ + EnumOptions.prototype[".gogoproto.enum_customname"] = ""; - /** - * Verifies an Annotation message. - * @function verify - * @memberof google.protobuf.GeneratedCodeInfo.Annotation - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Annotation.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.path != null && message.hasOwnProperty("path")) { - if (!Array.isArray(message.path)) - return "path: array expected"; - for (var i = 0; i < message.path.length; ++i) - if (!$util.isInteger(message.path[i])) - return "path: integer[] expected"; - } - if (message.source_file != null && message.hasOwnProperty("source_file")) - if (!$util.isString(message.source_file)) - return "source_file: string expected"; - if (message.begin != null && message.hasOwnProperty("begin")) - if (!$util.isInteger(message.begin)) - return "begin: integer expected"; - if (message.end != null && message.hasOwnProperty("end")) - if (!$util.isInteger(message.end)) - return "end: integer expected"; - return null; - }; + /** + * EnumOptions .gogoproto.enumdecl. + * @member {boolean} .gogoproto.enumdecl + * @memberof google.protobuf.EnumOptions + * @instance + */ + EnumOptions.prototype[".gogoproto.enumdecl"] = false; - /** - * Creates an Annotation message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.GeneratedCodeInfo.Annotation - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.GeneratedCodeInfo.Annotation} Annotation - */ - Annotation.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.GeneratedCodeInfo.Annotation) - return object; - var message = new $root.google.protobuf.GeneratedCodeInfo.Annotation(); - if (object.path) { - if (!Array.isArray(object.path)) - throw TypeError(".google.protobuf.GeneratedCodeInfo.Annotation.path: array expected"); - message.path = []; - for (var i = 0; i < object.path.length; ++i) - message.path[i] = object.path[i] | 0; + /** + * Encodes the specified EnumOptions message. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages. + * @function encode + * @memberof google.protobuf.EnumOptions + * @static + * @param {google.protobuf.IEnumOptions} message EnumOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EnumOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.allow_alias != null && Object.hasOwnProperty.call(message, "allow_alias")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.allow_alias); + if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.deprecated); + if (message.uninterpreted_option != null && message.uninterpreted_option.length) + for (var i = 0; i < message.uninterpreted_option.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpreted_option[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + if (message[".gogoproto.goproto_enum_prefix"] != null && Object.hasOwnProperty.call(message, ".gogoproto.goproto_enum_prefix")) + writer.uint32(/* id 62001, wireType 0 =*/496008).bool(message[".gogoproto.goproto_enum_prefix"]); + if (message[".gogoproto.goproto_enum_stringer"] != null && Object.hasOwnProperty.call(message, ".gogoproto.goproto_enum_stringer")) + writer.uint32(/* id 62021, wireType 0 =*/496168).bool(message[".gogoproto.goproto_enum_stringer"]); + if (message[".gogoproto.enum_stringer"] != null && Object.hasOwnProperty.call(message, ".gogoproto.enum_stringer")) + writer.uint32(/* id 62022, wireType 0 =*/496176).bool(message[".gogoproto.enum_stringer"]); + if (message[".gogoproto.enum_customname"] != null && Object.hasOwnProperty.call(message, ".gogoproto.enum_customname")) + writer.uint32(/* id 62023, wireType 2 =*/496186).string(message[".gogoproto.enum_customname"]); + if (message[".gogoproto.enumdecl"] != null && Object.hasOwnProperty.call(message, ".gogoproto.enumdecl")) + writer.uint32(/* id 62024, wireType 0 =*/496192).bool(message[".gogoproto.enumdecl"]); + return writer; + }; + + /** + * Encodes the specified EnumOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.EnumOptions + * @static + * @param {google.protobuf.IEnumOptions} message EnumOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EnumOptions.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an EnumOptions message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.EnumOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.EnumOptions} EnumOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EnumOptions.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.EnumOptions(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 2: + message.allow_alias = reader.bool(); + break; + case 3: + message.deprecated = reader.bool(); + break; + case 999: + if (!(message.uninterpreted_option && message.uninterpreted_option.length)) + message.uninterpreted_option = []; + message.uninterpreted_option.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + case 62001: + message[".gogoproto.goproto_enum_prefix"] = reader.bool(); + break; + case 62021: + message[".gogoproto.goproto_enum_stringer"] = reader.bool(); + break; + case 62022: + message[".gogoproto.enum_stringer"] = reader.bool(); + break; + case 62023: + message[".gogoproto.enum_customname"] = reader.string(); + break; + case 62024: + message[".gogoproto.enumdecl"] = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; } - if (object.source_file != null) - message.source_file = String(object.source_file); - if (object.begin != null) - message.begin = object.begin | 0; - if (object.end != null) - message.end = object.end | 0; - return message; - }; + } + return message; + }; - /** - * Creates a plain object from an Annotation message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.GeneratedCodeInfo.Annotation - * @static - * @param {google.protobuf.GeneratedCodeInfo.Annotation} message Annotation - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Annotation.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.path = []; - if (options.defaults) { - object.source_file = ""; - object.begin = 0; - object.end = 0; - } - if (message.path && message.path.length) { - object.path = []; - for (var j = 0; j < message.path.length; ++j) - object.path[j] = message.path[j]; + /** + * Decodes an EnumOptions message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.EnumOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.EnumOptions} EnumOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EnumOptions.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an EnumOptions message. + * @function verify + * @memberof google.protobuf.EnumOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + EnumOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.allow_alias != null && message.hasOwnProperty("allow_alias")) + if (typeof message.allow_alias !== "boolean") + return "allow_alias: boolean expected"; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (typeof message.deprecated !== "boolean") + return "deprecated: boolean expected"; + if (message.uninterpreted_option != null && message.hasOwnProperty("uninterpreted_option")) { + if (!Array.isArray(message.uninterpreted_option)) + return "uninterpreted_option: array expected"; + for (var i = 0; i < message.uninterpreted_option.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpreted_option[i]); + if (error) + return "uninterpreted_option." + error; } - if (message.source_file != null && message.hasOwnProperty("source_file")) - object.source_file = message.source_file; - if (message.begin != null && message.hasOwnProperty("begin")) - object.begin = message.begin; - if (message.end != null && message.hasOwnProperty("end")) - object.end = message.end; + } + if (message[".gogoproto.goproto_enum_prefix"] != null && message.hasOwnProperty(".gogoproto.goproto_enum_prefix")) + if (typeof message[".gogoproto.goproto_enum_prefix"] !== "boolean") + return ".gogoproto.goproto_enum_prefix: boolean expected"; + if (message[".gogoproto.goproto_enum_stringer"] != null && message.hasOwnProperty(".gogoproto.goproto_enum_stringer")) + if (typeof message[".gogoproto.goproto_enum_stringer"] !== "boolean") + return ".gogoproto.goproto_enum_stringer: boolean expected"; + if (message[".gogoproto.enum_stringer"] != null && message.hasOwnProperty(".gogoproto.enum_stringer")) + if (typeof message[".gogoproto.enum_stringer"] !== "boolean") + return ".gogoproto.enum_stringer: boolean expected"; + if (message[".gogoproto.enum_customname"] != null && message.hasOwnProperty(".gogoproto.enum_customname")) + if (!$util.isString(message[".gogoproto.enum_customname"])) + return ".gogoproto.enum_customname: string expected"; + if (message[".gogoproto.enumdecl"] != null && message.hasOwnProperty(".gogoproto.enumdecl")) + if (typeof message[".gogoproto.enumdecl"] !== "boolean") + return ".gogoproto.enumdecl: boolean expected"; + return null; + }; + + /** + * Creates an EnumOptions message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.EnumOptions + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.EnumOptions} EnumOptions + */ + EnumOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.EnumOptions) return object; - }; + var message = new $root.google.protobuf.EnumOptions(); + if (object.allow_alias != null) + message.allow_alias = Boolean(object.allow_alias); + if (object.deprecated != null) + message.deprecated = Boolean(object.deprecated); + if (object.uninterpreted_option) { + if (!Array.isArray(object.uninterpreted_option)) + throw TypeError(".google.protobuf.EnumOptions.uninterpreted_option: array expected"); + message.uninterpreted_option = []; + for (var i = 0; i < object.uninterpreted_option.length; ++i) { + if (typeof object.uninterpreted_option[i] !== "object") + throw TypeError(".google.protobuf.EnumOptions.uninterpreted_option: object expected"); + message.uninterpreted_option[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpreted_option[i]); + } + } + if (object[".gogoproto.goproto_enum_prefix"] != null) + message[".gogoproto.goproto_enum_prefix"] = Boolean(object[".gogoproto.goproto_enum_prefix"]); + if (object[".gogoproto.goproto_enum_stringer"] != null) + message[".gogoproto.goproto_enum_stringer"] = Boolean(object[".gogoproto.goproto_enum_stringer"]); + if (object[".gogoproto.enum_stringer"] != null) + message[".gogoproto.enum_stringer"] = Boolean(object[".gogoproto.enum_stringer"]); + if (object[".gogoproto.enum_customname"] != null) + message[".gogoproto.enum_customname"] = String(object[".gogoproto.enum_customname"]); + if (object[".gogoproto.enumdecl"] != null) + message[".gogoproto.enumdecl"] = Boolean(object[".gogoproto.enumdecl"]); + return message; + }; - /** - * Converts this Annotation to JSON. - * @function toJSON - * @memberof google.protobuf.GeneratedCodeInfo.Annotation - * @instance - * @returns {Object.} JSON object - */ - Annotation.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from an EnumOptions message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.EnumOptions + * @static + * @param {google.protobuf.EnumOptions} message EnumOptions + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + EnumOptions.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.uninterpreted_option = []; + if (options.defaults) { + object.allow_alias = false; + object.deprecated = false; + object[".gogoproto.goproto_enum_prefix"] = false; + object[".gogoproto.goproto_enum_stringer"] = false; + object[".gogoproto.enum_stringer"] = false; + object[".gogoproto.enum_customname"] = ""; + object[".gogoproto.enumdecl"] = false; + } + if (message.allow_alias != null && message.hasOwnProperty("allow_alias")) + object.allow_alias = message.allow_alias; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + object.deprecated = message.deprecated; + if (message.uninterpreted_option && message.uninterpreted_option.length) { + object.uninterpreted_option = []; + for (var j = 0; j < message.uninterpreted_option.length; ++j) + object.uninterpreted_option[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpreted_option[j], options); + } + if (message[".gogoproto.goproto_enum_prefix"] != null && message.hasOwnProperty(".gogoproto.goproto_enum_prefix")) + object[".gogoproto.goproto_enum_prefix"] = message[".gogoproto.goproto_enum_prefix"]; + if (message[".gogoproto.goproto_enum_stringer"] != null && message.hasOwnProperty(".gogoproto.goproto_enum_stringer")) + object[".gogoproto.goproto_enum_stringer"] = message[".gogoproto.goproto_enum_stringer"]; + if (message[".gogoproto.enum_stringer"] != null && message.hasOwnProperty(".gogoproto.enum_stringer")) + object[".gogoproto.enum_stringer"] = message[".gogoproto.enum_stringer"]; + if (message[".gogoproto.enum_customname"] != null && message.hasOwnProperty(".gogoproto.enum_customname")) + object[".gogoproto.enum_customname"] = message[".gogoproto.enum_customname"]; + if (message[".gogoproto.enumdecl"] != null && message.hasOwnProperty(".gogoproto.enumdecl")) + object[".gogoproto.enumdecl"] = message[".gogoproto.enumdecl"]; + return object; + }; - return Annotation; - })(); + /** + * Converts this EnumOptions to JSON. + * @function toJSON + * @memberof google.protobuf.EnumOptions + * @instance + * @returns {Object.} JSON object + */ + EnumOptions.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return GeneratedCodeInfo; + return EnumOptions; })(); - protobuf.Any = (function() { + protobuf.EnumValueOptions = (function() { /** - * Properties of an Any. + * Properties of an EnumValueOptions. * @memberof google.protobuf - * @interface IAny - * @property {string|null} [type_url] Any type_url - * @property {Uint8Array|null} [value] Any value + * @interface IEnumValueOptions + * @property {boolean|null} [deprecated] EnumValueOptions deprecated + * @property {Array.|null} [uninterpreted_option] EnumValueOptions uninterpreted_option + * @property {string|null} [".gogoproto.enumvalue_customname"] EnumValueOptions .gogoproto.enumvalue_customname */ /** - * Constructs a new Any. + * Constructs a new EnumValueOptions. * @memberof google.protobuf - * @classdesc Represents an Any. - * @implements IAny + * @classdesc Represents an EnumValueOptions. + * @implements IEnumValueOptions * @constructor - * @param {google.protobuf.IAny=} [properties] Properties to set + * @param {google.protobuf.IEnumValueOptions=} [properties] Properties to set */ - function Any(properties) { + function EnumValueOptions(properties) { + this.uninterpreted_option = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -16693,76 +22984,92 @@ } /** - * Any type_url. - * @member {string} type_url - * @memberof google.protobuf.Any + * EnumValueOptions deprecated. + * @member {boolean} deprecated + * @memberof google.protobuf.EnumValueOptions * @instance */ - Any.prototype.type_url = ""; + EnumValueOptions.prototype.deprecated = false; /** - * Any value. - * @member {Uint8Array} value - * @memberof google.protobuf.Any + * EnumValueOptions uninterpreted_option. + * @member {Array.} uninterpreted_option + * @memberof google.protobuf.EnumValueOptions * @instance */ - Any.prototype.value = $util.newBuffer([]); + EnumValueOptions.prototype.uninterpreted_option = $util.emptyArray; /** - * Encodes the specified Any message. Does not implicitly {@link google.protobuf.Any.verify|verify} messages. + * EnumValueOptions .gogoproto.enumvalue_customname. + * @member {string} .gogoproto.enumvalue_customname + * @memberof google.protobuf.EnumValueOptions + * @instance + */ + EnumValueOptions.prototype[".gogoproto.enumvalue_customname"] = ""; + + /** + * Encodes the specified EnumValueOptions message. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages. * @function encode - * @memberof google.protobuf.Any + * @memberof google.protobuf.EnumValueOptions * @static - * @param {google.protobuf.IAny} message Any message or plain object to encode + * @param {google.protobuf.IEnumValueOptions} message EnumValueOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Any.encode = function encode(message, writer) { + EnumValueOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.type_url != null && Object.hasOwnProperty.call(message, "type_url")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.type_url); - if (message.value != null && Object.hasOwnProperty.call(message, "value")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.value); + if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.deprecated); + if (message.uninterpreted_option != null && message.uninterpreted_option.length) + for (var i = 0; i < message.uninterpreted_option.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpreted_option[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + if (message[".gogoproto.enumvalue_customname"] != null && Object.hasOwnProperty.call(message, ".gogoproto.enumvalue_customname")) + writer.uint32(/* id 66001, wireType 2 =*/528010).string(message[".gogoproto.enumvalue_customname"]); return writer; }; /** - * Encodes the specified Any message, length delimited. Does not implicitly {@link google.protobuf.Any.verify|verify} messages. + * Encodes the specified EnumValueOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages. * @function encodeDelimited - * @memberof google.protobuf.Any + * @memberof google.protobuf.EnumValueOptions * @static - * @param {google.protobuf.IAny} message Any message or plain object to encode + * @param {google.protobuf.IEnumValueOptions} message EnumValueOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Any.encodeDelimited = function encodeDelimited(message, writer) { + EnumValueOptions.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an Any message from the specified reader or buffer. + * Decodes an EnumValueOptions message from the specified reader or buffer. * @function decode - * @memberof google.protobuf.Any + * @memberof google.protobuf.EnumValueOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.Any} Any + * @returns {google.protobuf.EnumValueOptions} EnumValueOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Any.decode = function decode(reader, length) { + EnumValueOptions.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Any(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.EnumValueOptions(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.type_url = reader.string(); + message.deprecated = reader.bool(); break; - case 2: - message.value = reader.bytes(); + case 999: + if (!(message.uninterpreted_option && message.uninterpreted_option.length)) + message.uninterpreted_option = []; + message.uninterpreted_option.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + case 66001: + message[".gogoproto.enumvalue_customname"] = reader.string(); break; default: reader.skipType(tag & 7); @@ -16773,126 +23080,144 @@ }; /** - * Decodes an Any message from the specified reader or buffer, length delimited. + * Decodes an EnumValueOptions message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.protobuf.Any + * @memberof google.protobuf.EnumValueOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.Any} Any + * @returns {google.protobuf.EnumValueOptions} EnumValueOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Any.decodeDelimited = function decodeDelimited(reader) { + EnumValueOptions.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an Any message. + * Verifies an EnumValueOptions message. * @function verify - * @memberof google.protobuf.Any + * @memberof google.protobuf.EnumValueOptions * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Any.verify = function verify(message) { + EnumValueOptions.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.type_url != null && message.hasOwnProperty("type_url")) - if (!$util.isString(message.type_url)) - return "type_url: string expected"; - if (message.value != null && message.hasOwnProperty("value")) - if (!(message.value && typeof message.value.length === "number" || $util.isString(message.value))) - return "value: buffer expected"; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (typeof message.deprecated !== "boolean") + return "deprecated: boolean expected"; + if (message.uninterpreted_option != null && message.hasOwnProperty("uninterpreted_option")) { + if (!Array.isArray(message.uninterpreted_option)) + return "uninterpreted_option: array expected"; + for (var i = 0; i < message.uninterpreted_option.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpreted_option[i]); + if (error) + return "uninterpreted_option." + error; + } + } + if (message[".gogoproto.enumvalue_customname"] != null && message.hasOwnProperty(".gogoproto.enumvalue_customname")) + if (!$util.isString(message[".gogoproto.enumvalue_customname"])) + return ".gogoproto.enumvalue_customname: string expected"; return null; }; /** - * Creates an Any message from a plain object. Also converts values to their respective internal types. + * Creates an EnumValueOptions message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.protobuf.Any + * @memberof google.protobuf.EnumValueOptions * @static * @param {Object.} object Plain object - * @returns {google.protobuf.Any} Any + * @returns {google.protobuf.EnumValueOptions} EnumValueOptions */ - Any.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.Any) + EnumValueOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.EnumValueOptions) return object; - var message = new $root.google.protobuf.Any(); - if (object.type_url != null) - message.type_url = String(object.type_url); - if (object.value != null) - if (typeof object.value === "string") - $util.base64.decode(object.value, message.value = $util.newBuffer($util.base64.length(object.value)), 0); - else if (object.value.length) - message.value = object.value; + var message = new $root.google.protobuf.EnumValueOptions(); + if (object.deprecated != null) + message.deprecated = Boolean(object.deprecated); + if (object.uninterpreted_option) { + if (!Array.isArray(object.uninterpreted_option)) + throw TypeError(".google.protobuf.EnumValueOptions.uninterpreted_option: array expected"); + message.uninterpreted_option = []; + for (var i = 0; i < object.uninterpreted_option.length; ++i) { + if (typeof object.uninterpreted_option[i] !== "object") + throw TypeError(".google.protobuf.EnumValueOptions.uninterpreted_option: object expected"); + message.uninterpreted_option[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpreted_option[i]); + } + } + if (object[".gogoproto.enumvalue_customname"] != null) + message[".gogoproto.enumvalue_customname"] = String(object[".gogoproto.enumvalue_customname"]); return message; }; /** - * Creates a plain object from an Any message. Also converts values to other types if specified. + * Creates a plain object from an EnumValueOptions message. Also converts values to other types if specified. * @function toObject - * @memberof google.protobuf.Any + * @memberof google.protobuf.EnumValueOptions * @static - * @param {google.protobuf.Any} message Any + * @param {google.protobuf.EnumValueOptions} message EnumValueOptions * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Any.toObject = function toObject(message, options) { + EnumValueOptions.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.uninterpreted_option = []; if (options.defaults) { - object.type_url = ""; - if (options.bytes === String) - object.value = ""; - else { - object.value = []; - if (options.bytes !== Array) - object.value = $util.newBuffer(object.value); - } + object.deprecated = false; + object[".gogoproto.enumvalue_customname"] = ""; } - if (message.type_url != null && message.hasOwnProperty("type_url")) - object.type_url = message.type_url; - if (message.value != null && message.hasOwnProperty("value")) - object.value = options.bytes === String ? $util.base64.encode(message.value, 0, message.value.length) : options.bytes === Array ? Array.prototype.slice.call(message.value) : message.value; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + object.deprecated = message.deprecated; + if (message.uninterpreted_option && message.uninterpreted_option.length) { + object.uninterpreted_option = []; + for (var j = 0; j < message.uninterpreted_option.length; ++j) + object.uninterpreted_option[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpreted_option[j], options); + } + if (message[".gogoproto.enumvalue_customname"] != null && message.hasOwnProperty(".gogoproto.enumvalue_customname")) + object[".gogoproto.enumvalue_customname"] = message[".gogoproto.enumvalue_customname"]; return object; }; /** - * Converts this Any to JSON. + * Converts this EnumValueOptions to JSON. * @function toJSON - * @memberof google.protobuf.Any + * @memberof google.protobuf.EnumValueOptions * @instance * @returns {Object.} JSON object */ - Any.prototype.toJSON = function toJSON() { + EnumValueOptions.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Any; + return EnumValueOptions; })(); - protobuf.Timestamp = (function() { + protobuf.ServiceOptions = (function() { /** - * Properties of a Timestamp. + * Properties of a ServiceOptions. * @memberof google.protobuf - * @interface ITimestamp - * @property {Long|null} [seconds] Timestamp seconds - * @property {number|null} [nanos] Timestamp nanos + * @interface IServiceOptions + * @property {boolean|null} [deprecated] ServiceOptions deprecated + * @property {Array.|null} [uninterpreted_option] ServiceOptions uninterpreted_option */ /** - * Constructs a new Timestamp. + * Constructs a new ServiceOptions. * @memberof google.protobuf - * @classdesc Represents a Timestamp. - * @implements ITimestamp + * @classdesc Represents a ServiceOptions. + * @implements IServiceOptions * @constructor - * @param {google.protobuf.ITimestamp=} [properties] Properties to set + * @param {google.protobuf.IServiceOptions=} [properties] Properties to set */ - function Timestamp(properties) { + function ServiceOptions(properties) { + this.uninterpreted_option = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -16900,76 +23225,79 @@ } /** - * Timestamp seconds. - * @member {Long} seconds - * @memberof google.protobuf.Timestamp + * ServiceOptions deprecated. + * @member {boolean} deprecated + * @memberof google.protobuf.ServiceOptions * @instance */ - Timestamp.prototype.seconds = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + ServiceOptions.prototype.deprecated = false; /** - * Timestamp nanos. - * @member {number} nanos - * @memberof google.protobuf.Timestamp + * ServiceOptions uninterpreted_option. + * @member {Array.} uninterpreted_option + * @memberof google.protobuf.ServiceOptions * @instance */ - Timestamp.prototype.nanos = 0; + ServiceOptions.prototype.uninterpreted_option = $util.emptyArray; /** - * Encodes the specified Timestamp message. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages. + * Encodes the specified ServiceOptions message. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages. * @function encode - * @memberof google.protobuf.Timestamp + * @memberof google.protobuf.ServiceOptions * @static - * @param {google.protobuf.ITimestamp} message Timestamp message or plain object to encode + * @param {google.protobuf.IServiceOptions} message ServiceOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Timestamp.encode = function encode(message, writer) { + ServiceOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.seconds != null && Object.hasOwnProperty.call(message, "seconds")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.seconds); - if (message.nanos != null && Object.hasOwnProperty.call(message, "nanos")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.nanos); + if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) + writer.uint32(/* id 33, wireType 0 =*/264).bool(message.deprecated); + if (message.uninterpreted_option != null && message.uninterpreted_option.length) + for (var i = 0; i < message.uninterpreted_option.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpreted_option[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); return writer; }; /** - * Encodes the specified Timestamp message, length delimited. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages. + * Encodes the specified ServiceOptions message, length delimited. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages. * @function encodeDelimited - * @memberof google.protobuf.Timestamp + * @memberof google.protobuf.ServiceOptions * @static - * @param {google.protobuf.ITimestamp} message Timestamp message or plain object to encode + * @param {google.protobuf.IServiceOptions} message ServiceOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Timestamp.encodeDelimited = function encodeDelimited(message, writer) { + ServiceOptions.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Timestamp message from the specified reader or buffer. + * Decodes a ServiceOptions message from the specified reader or buffer. * @function decode - * @memberof google.protobuf.Timestamp + * @memberof google.protobuf.ServiceOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.Timestamp} Timestamp + * @returns {google.protobuf.ServiceOptions} ServiceOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Timestamp.decode = function decode(reader, length) { + ServiceOptions.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Timestamp(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.ServiceOptions(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.seconds = reader.int64(); + case 33: + message.deprecated = reader.bool(); break; - case 2: - message.nanos = reader.int32(); + case 999: + if (!(message.uninterpreted_option && message.uninterpreted_option.length)) + message.uninterpreted_option = []; + message.uninterpreted_option.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -16980,131 +23308,136 @@ }; /** - * Decodes a Timestamp message from the specified reader or buffer, length delimited. + * Decodes a ServiceOptions message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.protobuf.Timestamp + * @memberof google.protobuf.ServiceOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.Timestamp} Timestamp + * @returns {google.protobuf.ServiceOptions} ServiceOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Timestamp.decodeDelimited = function decodeDelimited(reader) { + ServiceOptions.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Timestamp message. + * Verifies a ServiceOptions message. * @function verify - * @memberof google.protobuf.Timestamp + * @memberof google.protobuf.ServiceOptions * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Timestamp.verify = function verify(message) { + ServiceOptions.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.seconds != null && message.hasOwnProperty("seconds")) - if (!$util.isInteger(message.seconds) && !(message.seconds && $util.isInteger(message.seconds.low) && $util.isInteger(message.seconds.high))) - return "seconds: integer|Long expected"; - if (message.nanos != null && message.hasOwnProperty("nanos")) - if (!$util.isInteger(message.nanos)) - return "nanos: integer expected"; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (typeof message.deprecated !== "boolean") + return "deprecated: boolean expected"; + if (message.uninterpreted_option != null && message.hasOwnProperty("uninterpreted_option")) { + if (!Array.isArray(message.uninterpreted_option)) + return "uninterpreted_option: array expected"; + for (var i = 0; i < message.uninterpreted_option.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpreted_option[i]); + if (error) + return "uninterpreted_option." + error; + } + } return null; }; /** - * Creates a Timestamp message from a plain object. Also converts values to their respective internal types. + * Creates a ServiceOptions message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.protobuf.Timestamp + * @memberof google.protobuf.ServiceOptions * @static * @param {Object.} object Plain object - * @returns {google.protobuf.Timestamp} Timestamp + * @returns {google.protobuf.ServiceOptions} ServiceOptions */ - Timestamp.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.Timestamp) + ServiceOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.ServiceOptions) return object; - var message = new $root.google.protobuf.Timestamp(); - if (object.seconds != null) - if ($util.Long) - (message.seconds = $util.Long.fromValue(object.seconds)).unsigned = false; - else if (typeof object.seconds === "string") - message.seconds = parseInt(object.seconds, 10); - else if (typeof object.seconds === "number") - message.seconds = object.seconds; - else if (typeof object.seconds === "object") - message.seconds = new $util.LongBits(object.seconds.low >>> 0, object.seconds.high >>> 0).toNumber(); - if (object.nanos != null) - message.nanos = object.nanos | 0; + var message = new $root.google.protobuf.ServiceOptions(); + if (object.deprecated != null) + message.deprecated = Boolean(object.deprecated); + if (object.uninterpreted_option) { + if (!Array.isArray(object.uninterpreted_option)) + throw TypeError(".google.protobuf.ServiceOptions.uninterpreted_option: array expected"); + message.uninterpreted_option = []; + for (var i = 0; i < object.uninterpreted_option.length; ++i) { + if (typeof object.uninterpreted_option[i] !== "object") + throw TypeError(".google.protobuf.ServiceOptions.uninterpreted_option: object expected"); + message.uninterpreted_option[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpreted_option[i]); + } + } return message; }; /** - * Creates a plain object from a Timestamp message. Also converts values to other types if specified. + * Creates a plain object from a ServiceOptions message. Also converts values to other types if specified. * @function toObject - * @memberof google.protobuf.Timestamp + * @memberof google.protobuf.ServiceOptions * @static - * @param {google.protobuf.Timestamp} message Timestamp + * @param {google.protobuf.ServiceOptions} message ServiceOptions * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Timestamp.toObject = function toObject(message, options) { + ServiceOptions.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.seconds = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.seconds = options.longs === String ? "0" : 0; - object.nanos = 0; + if (options.arrays || options.defaults) + object.uninterpreted_option = []; + if (options.defaults) + object.deprecated = false; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + object.deprecated = message.deprecated; + if (message.uninterpreted_option && message.uninterpreted_option.length) { + object.uninterpreted_option = []; + for (var j = 0; j < message.uninterpreted_option.length; ++j) + object.uninterpreted_option[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpreted_option[j], options); } - if (message.seconds != null && message.hasOwnProperty("seconds")) - if (typeof message.seconds === "number") - object.seconds = options.longs === String ? String(message.seconds) : message.seconds; - else - object.seconds = options.longs === String ? $util.Long.prototype.toString.call(message.seconds) : options.longs === Number ? new $util.LongBits(message.seconds.low >>> 0, message.seconds.high >>> 0).toNumber() : message.seconds; - if (message.nanos != null && message.hasOwnProperty("nanos")) - object.nanos = message.nanos; return object; }; /** - * Converts this Timestamp to JSON. + * Converts this ServiceOptions to JSON. * @function toJSON - * @memberof google.protobuf.Timestamp + * @memberof google.protobuf.ServiceOptions * @instance * @returns {Object.} JSON object */ - Timestamp.prototype.toJSON = function toJSON() { + ServiceOptions.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Timestamp; + return ServiceOptions; })(); - protobuf.Duration = (function() { + protobuf.MethodOptions = (function() { /** - * Properties of a Duration. + * Properties of a MethodOptions. * @memberof google.protobuf - * @interface IDuration - * @property {Long|null} [seconds] Duration seconds - * @property {number|null} [nanos] Duration nanos + * @interface IMethodOptions + * @property {boolean|null} [deprecated] MethodOptions deprecated + * @property {Array.|null} [uninterpreted_option] MethodOptions uninterpreted_option + * @property {google.api.IHttpRule|null} [".google.api.http"] MethodOptions .google.api.http */ /** - * Constructs a new Duration. + * Constructs a new MethodOptions. * @memberof google.protobuf - * @classdesc Represents a Duration. - * @implements IDuration + * @classdesc Represents a MethodOptions. + * @implements IMethodOptions * @constructor - * @param {google.protobuf.IDuration=} [properties] Properties to set + * @param {google.protobuf.IMethodOptions=} [properties] Properties to set */ - function Duration(properties) { + function MethodOptions(properties) { + this.uninterpreted_option = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -17112,76 +23445,92 @@ } /** - * Duration seconds. - * @member {Long} seconds - * @memberof google.protobuf.Duration + * MethodOptions deprecated. + * @member {boolean} deprecated + * @memberof google.protobuf.MethodOptions * @instance */ - Duration.prototype.seconds = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + MethodOptions.prototype.deprecated = false; /** - * Duration nanos. - * @member {number} nanos - * @memberof google.protobuf.Duration + * MethodOptions uninterpreted_option. + * @member {Array.} uninterpreted_option + * @memberof google.protobuf.MethodOptions * @instance */ - Duration.prototype.nanos = 0; + MethodOptions.prototype.uninterpreted_option = $util.emptyArray; /** - * Encodes the specified Duration message. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages. + * MethodOptions .google.api.http. + * @member {google.api.IHttpRule|null|undefined} .google.api.http + * @memberof google.protobuf.MethodOptions + * @instance + */ + MethodOptions.prototype[".google.api.http"] = null; + + /** + * Encodes the specified MethodOptions message. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages. * @function encode - * @memberof google.protobuf.Duration + * @memberof google.protobuf.MethodOptions * @static - * @param {google.protobuf.IDuration} message Duration message or plain object to encode + * @param {google.protobuf.IMethodOptions} message MethodOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Duration.encode = function encode(message, writer) { + MethodOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.seconds != null && Object.hasOwnProperty.call(message, "seconds")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.seconds); - if (message.nanos != null && Object.hasOwnProperty.call(message, "nanos")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.nanos); + if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) + writer.uint32(/* id 33, wireType 0 =*/264).bool(message.deprecated); + if (message.uninterpreted_option != null && message.uninterpreted_option.length) + for (var i = 0; i < message.uninterpreted_option.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpreted_option[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + if (message[".google.api.http"] != null && Object.hasOwnProperty.call(message, ".google.api.http")) + $root.google.api.HttpRule.encode(message[".google.api.http"], writer.uint32(/* id 72295728, wireType 2 =*/578365826).fork()).ldelim(); return writer; }; /** - * Encodes the specified Duration message, length delimited. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages. + * Encodes the specified MethodOptions message, length delimited. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages. * @function encodeDelimited - * @memberof google.protobuf.Duration + * @memberof google.protobuf.MethodOptions * @static - * @param {google.protobuf.IDuration} message Duration message or plain object to encode + * @param {google.protobuf.IMethodOptions} message MethodOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Duration.encodeDelimited = function encodeDelimited(message, writer) { + MethodOptions.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Duration message from the specified reader or buffer. + * Decodes a MethodOptions message from the specified reader or buffer. * @function decode - * @memberof google.protobuf.Duration + * @memberof google.protobuf.MethodOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.Duration} Duration + * @returns {google.protobuf.MethodOptions} MethodOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Duration.decode = function decode(reader, length) { + MethodOptions.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Duration(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.MethodOptions(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.seconds = reader.int64(); + case 33: + message.deprecated = reader.bool(); break; - case 2: - message.nanos = reader.int32(); + case 999: + if (!(message.uninterpreted_option && message.uninterpreted_option.length)) + message.uninterpreted_option = []; + message.uninterpreted_option.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + case 72295728: + message[".google.api.http"] = $root.google.api.HttpRule.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -17192,144 +23541,154 @@ }; /** - * Decodes a Duration message from the specified reader or buffer, length delimited. + * Decodes a MethodOptions message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.protobuf.Duration + * @memberof google.protobuf.MethodOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.Duration} Duration + * @returns {google.protobuf.MethodOptions} MethodOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Duration.decodeDelimited = function decodeDelimited(reader) { + MethodOptions.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Duration message. + * Verifies a MethodOptions message. * @function verify - * @memberof google.protobuf.Duration + * @memberof google.protobuf.MethodOptions * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Duration.verify = function verify(message) { + MethodOptions.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.seconds != null && message.hasOwnProperty("seconds")) - if (!$util.isInteger(message.seconds) && !(message.seconds && $util.isInteger(message.seconds.low) && $util.isInteger(message.seconds.high))) - return "seconds: integer|Long expected"; - if (message.nanos != null && message.hasOwnProperty("nanos")) - if (!$util.isInteger(message.nanos)) - return "nanos: integer expected"; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (typeof message.deprecated !== "boolean") + return "deprecated: boolean expected"; + if (message.uninterpreted_option != null && message.hasOwnProperty("uninterpreted_option")) { + if (!Array.isArray(message.uninterpreted_option)) + return "uninterpreted_option: array expected"; + for (var i = 0; i < message.uninterpreted_option.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpreted_option[i]); + if (error) + return "uninterpreted_option." + error; + } + } + if (message[".google.api.http"] != null && message.hasOwnProperty(".google.api.http")) { + var error = $root.google.api.HttpRule.verify(message[".google.api.http"]); + if (error) + return ".google.api.http." + error; + } return null; }; /** - * Creates a Duration message from a plain object. Also converts values to their respective internal types. + * Creates a MethodOptions message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.protobuf.Duration + * @memberof google.protobuf.MethodOptions * @static * @param {Object.} object Plain object - * @returns {google.protobuf.Duration} Duration + * @returns {google.protobuf.MethodOptions} MethodOptions */ - Duration.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.Duration) + MethodOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.MethodOptions) return object; - var message = new $root.google.protobuf.Duration(); - if (object.seconds != null) - if ($util.Long) - (message.seconds = $util.Long.fromValue(object.seconds)).unsigned = false; - else if (typeof object.seconds === "string") - message.seconds = parseInt(object.seconds, 10); - else if (typeof object.seconds === "number") - message.seconds = object.seconds; - else if (typeof object.seconds === "object") - message.seconds = new $util.LongBits(object.seconds.low >>> 0, object.seconds.high >>> 0).toNumber(); - if (object.nanos != null) - message.nanos = object.nanos | 0; + var message = new $root.google.protobuf.MethodOptions(); + if (object.deprecated != null) + message.deprecated = Boolean(object.deprecated); + if (object.uninterpreted_option) { + if (!Array.isArray(object.uninterpreted_option)) + throw TypeError(".google.protobuf.MethodOptions.uninterpreted_option: array expected"); + message.uninterpreted_option = []; + for (var i = 0; i < object.uninterpreted_option.length; ++i) { + if (typeof object.uninterpreted_option[i] !== "object") + throw TypeError(".google.protobuf.MethodOptions.uninterpreted_option: object expected"); + message.uninterpreted_option[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpreted_option[i]); + } + } + if (object[".google.api.http"] != null) { + if (typeof object[".google.api.http"] !== "object") + throw TypeError(".google.protobuf.MethodOptions..google.api.http: object expected"); + message[".google.api.http"] = $root.google.api.HttpRule.fromObject(object[".google.api.http"]); + } return message; }; /** - * Creates a plain object from a Duration message. Also converts values to other types if specified. + * Creates a plain object from a MethodOptions message. Also converts values to other types if specified. * @function toObject - * @memberof google.protobuf.Duration + * @memberof google.protobuf.MethodOptions * @static - * @param {google.protobuf.Duration} message Duration + * @param {google.protobuf.MethodOptions} message MethodOptions * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Duration.toObject = function toObject(message, options) { + MethodOptions.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.uninterpreted_option = []; if (options.defaults) { - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.seconds = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.seconds = options.longs === String ? "0" : 0; - object.nanos = 0; + object.deprecated = false; + object[".google.api.http"] = null; } - if (message.seconds != null && message.hasOwnProperty("seconds")) - if (typeof message.seconds === "number") - object.seconds = options.longs === String ? String(message.seconds) : message.seconds; - else - object.seconds = options.longs === String ? $util.Long.prototype.toString.call(message.seconds) : options.longs === Number ? new $util.LongBits(message.seconds.low >>> 0, message.seconds.high >>> 0).toNumber() : message.seconds; - if (message.nanos != null && message.hasOwnProperty("nanos")) - object.nanos = message.nanos; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + object.deprecated = message.deprecated; + if (message.uninterpreted_option && message.uninterpreted_option.length) { + object.uninterpreted_option = []; + for (var j = 0; j < message.uninterpreted_option.length; ++j) + object.uninterpreted_option[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpreted_option[j], options); + } + if (message[".google.api.http"] != null && message.hasOwnProperty(".google.api.http")) + object[".google.api.http"] = $root.google.api.HttpRule.toObject(message[".google.api.http"], options); return object; }; /** - * Converts this Duration to JSON. + * Converts this MethodOptions to JSON. * @function toJSON - * @memberof google.protobuf.Duration + * @memberof google.protobuf.MethodOptions * @instance * @returns {Object.} JSON object */ - Duration.prototype.toJSON = function toJSON() { + MethodOptions.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Duration; + return MethodOptions; })(); - return protobuf; - })(); - - google.api = (function() { - - /** - * Namespace api. - * @memberof google - * @namespace - */ - var api = {}; - - api.Http = (function() { + protobuf.UninterpretedOption = (function() { /** - * Properties of a Http. - * @memberof google.api - * @interface IHttp - * @property {Array.|null} [rules] Http rules - * @property {boolean|null} [fully_decode_reserved_expansion] Http fully_decode_reserved_expansion + * Properties of an UninterpretedOption. + * @memberof google.protobuf + * @interface IUninterpretedOption + * @property {Array.|null} [name] UninterpretedOption name + * @property {string|null} [identifier_value] UninterpretedOption identifier_value + * @property {Long|null} [positive_int_value] UninterpretedOption positive_int_value + * @property {Long|null} [negative_int_value] UninterpretedOption negative_int_value + * @property {number|null} [double_value] UninterpretedOption double_value + * @property {Uint8Array|null} [string_value] UninterpretedOption string_value + * @property {string|null} [aggregate_value] UninterpretedOption aggregate_value */ /** - * Constructs a new Http. - * @memberof google.api - * @classdesc Represents a Http. - * @implements IHttp + * Constructs a new UninterpretedOption. + * @memberof google.protobuf + * @classdesc Represents an UninterpretedOption. + * @implements IUninterpretedOption * @constructor - * @param {google.api.IHttp=} [properties] Properties to set + * @param {google.protobuf.IUninterpretedOption=} [properties] Properties to set */ - function Http(properties) { - this.rules = []; + function UninterpretedOption(properties) { + this.name = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -17337,79 +23696,144 @@ } /** - * Http rules. - * @member {Array.} rules - * @memberof google.api.Http + * UninterpretedOption name. + * @member {Array.} name + * @memberof google.protobuf.UninterpretedOption * @instance */ - Http.prototype.rules = $util.emptyArray; + UninterpretedOption.prototype.name = $util.emptyArray; /** - * Http fully_decode_reserved_expansion. - * @member {boolean} fully_decode_reserved_expansion - * @memberof google.api.Http + * UninterpretedOption identifier_value. + * @member {string} identifier_value + * @memberof google.protobuf.UninterpretedOption * @instance */ - Http.prototype.fully_decode_reserved_expansion = false; + UninterpretedOption.prototype.identifier_value = ""; /** - * Encodes the specified Http message. Does not implicitly {@link google.api.Http.verify|verify} messages. + * UninterpretedOption positive_int_value. + * @member {Long} positive_int_value + * @memberof google.protobuf.UninterpretedOption + * @instance + */ + UninterpretedOption.prototype.positive_int_value = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + + /** + * UninterpretedOption negative_int_value. + * @member {Long} negative_int_value + * @memberof google.protobuf.UninterpretedOption + * @instance + */ + UninterpretedOption.prototype.negative_int_value = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * UninterpretedOption double_value. + * @member {number} double_value + * @memberof google.protobuf.UninterpretedOption + * @instance + */ + UninterpretedOption.prototype.double_value = 0; + + /** + * UninterpretedOption string_value. + * @member {Uint8Array} string_value + * @memberof google.protobuf.UninterpretedOption + * @instance + */ + UninterpretedOption.prototype.string_value = $util.newBuffer([]); + + /** + * UninterpretedOption aggregate_value. + * @member {string} aggregate_value + * @memberof google.protobuf.UninterpretedOption + * @instance + */ + UninterpretedOption.prototype.aggregate_value = ""; + + /** + * Encodes the specified UninterpretedOption message. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages. * @function encode - * @memberof google.api.Http + * @memberof google.protobuf.UninterpretedOption * @static - * @param {google.api.IHttp} message Http message or plain object to encode + * @param {google.protobuf.IUninterpretedOption} message UninterpretedOption message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Http.encode = function encode(message, writer) { + UninterpretedOption.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.rules != null && message.rules.length) - for (var i = 0; i < message.rules.length; ++i) - $root.google.api.HttpRule.encode(message.rules[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.fully_decode_reserved_expansion != null && Object.hasOwnProperty.call(message, "fully_decode_reserved_expansion")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.fully_decode_reserved_expansion); + if (message.name != null && message.name.length) + for (var i = 0; i < message.name.length; ++i) + $root.google.protobuf.UninterpretedOption.NamePart.encode(message.name[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.identifier_value != null && Object.hasOwnProperty.call(message, "identifier_value")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.identifier_value); + if (message.positive_int_value != null && Object.hasOwnProperty.call(message, "positive_int_value")) + writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.positive_int_value); + if (message.negative_int_value != null && Object.hasOwnProperty.call(message, "negative_int_value")) + writer.uint32(/* id 5, wireType 0 =*/40).int64(message.negative_int_value); + if (message.double_value != null && Object.hasOwnProperty.call(message, "double_value")) + writer.uint32(/* id 6, wireType 1 =*/49).double(message.double_value); + if (message.string_value != null && Object.hasOwnProperty.call(message, "string_value")) + writer.uint32(/* id 7, wireType 2 =*/58).bytes(message.string_value); + if (message.aggregate_value != null && Object.hasOwnProperty.call(message, "aggregate_value")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.aggregate_value); return writer; }; /** - * Encodes the specified Http message, length delimited. Does not implicitly {@link google.api.Http.verify|verify} messages. + * Encodes the specified UninterpretedOption message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages. * @function encodeDelimited - * @memberof google.api.Http + * @memberof google.protobuf.UninterpretedOption * @static - * @param {google.api.IHttp} message Http message or plain object to encode + * @param {google.protobuf.IUninterpretedOption} message UninterpretedOption message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Http.encodeDelimited = function encodeDelimited(message, writer) { + UninterpretedOption.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Http message from the specified reader or buffer. + * Decodes an UninterpretedOption message from the specified reader or buffer. * @function decode - * @memberof google.api.Http + * @memberof google.protobuf.UninterpretedOption * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.api.Http} Http + * @returns {google.protobuf.UninterpretedOption} UninterpretedOption * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Http.decode = function decode(reader, length) { + UninterpretedOption.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.Http(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.UninterpretedOption(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - if (!(message.rules && message.rules.length)) - message.rules = []; - message.rules.push($root.google.api.HttpRule.decode(reader, reader.uint32())); - break; case 2: - message.fully_decode_reserved_expansion = reader.bool(); + if (!(message.name && message.name.length)) + message.name = []; + message.name.push($root.google.protobuf.UninterpretedOption.NamePart.decode(reader, reader.uint32())); + break; + case 3: + message.identifier_value = reader.string(); + break; + case 4: + message.positive_int_value = reader.uint64(); + break; + case 5: + message.negative_int_value = reader.int64(); + break; + case 6: + message.double_value = reader.double(); + break; + case 7: + message.string_value = reader.bytes(); + break; + case 8: + message.aggregate_value = reader.string(); break; default: reader.skipType(tag & 7); @@ -17420,341 +23844,477 @@ }; /** - * Decodes a Http message from the specified reader or buffer, length delimited. + * Decodes an UninterpretedOption message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.api.Http + * @memberof google.protobuf.UninterpretedOption * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.api.Http} Http + * @returns {google.protobuf.UninterpretedOption} UninterpretedOption * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Http.decodeDelimited = function decodeDelimited(reader) { + UninterpretedOption.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Http message. + * Verifies an UninterpretedOption message. * @function verify - * @memberof google.api.Http + * @memberof google.protobuf.UninterpretedOption * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Http.verify = function verify(message) { + UninterpretedOption.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.rules != null && message.hasOwnProperty("rules")) { - if (!Array.isArray(message.rules)) - return "rules: array expected"; - for (var i = 0; i < message.rules.length; ++i) { - var error = $root.google.api.HttpRule.verify(message.rules[i]); + if (message.name != null && message.hasOwnProperty("name")) { + if (!Array.isArray(message.name)) + return "name: array expected"; + for (var i = 0; i < message.name.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.NamePart.verify(message.name[i]); if (error) - return "rules." + error; + return "name." + error; } } - if (message.fully_decode_reserved_expansion != null && message.hasOwnProperty("fully_decode_reserved_expansion")) - if (typeof message.fully_decode_reserved_expansion !== "boolean") - return "fully_decode_reserved_expansion: boolean expected"; + if (message.identifier_value != null && message.hasOwnProperty("identifier_value")) + if (!$util.isString(message.identifier_value)) + return "identifier_value: string expected"; + if (message.positive_int_value != null && message.hasOwnProperty("positive_int_value")) + if (!$util.isInteger(message.positive_int_value) && !(message.positive_int_value && $util.isInteger(message.positive_int_value.low) && $util.isInteger(message.positive_int_value.high))) + return "positive_int_value: integer|Long expected"; + if (message.negative_int_value != null && message.hasOwnProperty("negative_int_value")) + if (!$util.isInteger(message.negative_int_value) && !(message.negative_int_value && $util.isInteger(message.negative_int_value.low) && $util.isInteger(message.negative_int_value.high))) + return "negative_int_value: integer|Long expected"; + if (message.double_value != null && message.hasOwnProperty("double_value")) + if (typeof message.double_value !== "number") + return "double_value: number expected"; + if (message.string_value != null && message.hasOwnProperty("string_value")) + if (!(message.string_value && typeof message.string_value.length === "number" || $util.isString(message.string_value))) + return "string_value: buffer expected"; + if (message.aggregate_value != null && message.hasOwnProperty("aggregate_value")) + if (!$util.isString(message.aggregate_value)) + return "aggregate_value: string expected"; return null; }; /** - * Creates a Http message from a plain object. Also converts values to their respective internal types. + * Creates an UninterpretedOption message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.api.Http + * @memberof google.protobuf.UninterpretedOption * @static * @param {Object.} object Plain object - * @returns {google.api.Http} Http + * @returns {google.protobuf.UninterpretedOption} UninterpretedOption */ - Http.fromObject = function fromObject(object) { - if (object instanceof $root.google.api.Http) + UninterpretedOption.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.UninterpretedOption) return object; - var message = new $root.google.api.Http(); - if (object.rules) { - if (!Array.isArray(object.rules)) - throw TypeError(".google.api.Http.rules: array expected"); - message.rules = []; - for (var i = 0; i < object.rules.length; ++i) { - if (typeof object.rules[i] !== "object") - throw TypeError(".google.api.Http.rules: object expected"); - message.rules[i] = $root.google.api.HttpRule.fromObject(object.rules[i]); + var message = new $root.google.protobuf.UninterpretedOption(); + if (object.name) { + if (!Array.isArray(object.name)) + throw TypeError(".google.protobuf.UninterpretedOption.name: array expected"); + message.name = []; + for (var i = 0; i < object.name.length; ++i) { + if (typeof object.name[i] !== "object") + throw TypeError(".google.protobuf.UninterpretedOption.name: object expected"); + message.name[i] = $root.google.protobuf.UninterpretedOption.NamePart.fromObject(object.name[i]); } } - if (object.fully_decode_reserved_expansion != null) - message.fully_decode_reserved_expansion = Boolean(object.fully_decode_reserved_expansion); + if (object.identifier_value != null) + message.identifier_value = String(object.identifier_value); + if (object.positive_int_value != null) + if ($util.Long) + (message.positive_int_value = $util.Long.fromValue(object.positive_int_value)).unsigned = true; + else if (typeof object.positive_int_value === "string") + message.positive_int_value = parseInt(object.positive_int_value, 10); + else if (typeof object.positive_int_value === "number") + message.positive_int_value = object.positive_int_value; + else if (typeof object.positive_int_value === "object") + message.positive_int_value = new $util.LongBits(object.positive_int_value.low >>> 0, object.positive_int_value.high >>> 0).toNumber(true); + if (object.negative_int_value != null) + if ($util.Long) + (message.negative_int_value = $util.Long.fromValue(object.negative_int_value)).unsigned = false; + else if (typeof object.negative_int_value === "string") + message.negative_int_value = parseInt(object.negative_int_value, 10); + else if (typeof object.negative_int_value === "number") + message.negative_int_value = object.negative_int_value; + else if (typeof object.negative_int_value === "object") + message.negative_int_value = new $util.LongBits(object.negative_int_value.low >>> 0, object.negative_int_value.high >>> 0).toNumber(); + if (object.double_value != null) + message.double_value = Number(object.double_value); + if (object.string_value != null) + if (typeof object.string_value === "string") + $util.base64.decode(object.string_value, message.string_value = $util.newBuffer($util.base64.length(object.string_value)), 0); + else if (object.string_value.length) + message.string_value = object.string_value; + if (object.aggregate_value != null) + message.aggregate_value = String(object.aggregate_value); return message; }; /** - * Creates a plain object from a Http message. Also converts values to other types if specified. + * Creates a plain object from an UninterpretedOption message. Also converts values to other types if specified. * @function toObject - * @memberof google.api.Http + * @memberof google.protobuf.UninterpretedOption * @static - * @param {google.api.Http} message Http + * @param {google.protobuf.UninterpretedOption} message UninterpretedOption * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Http.toObject = function toObject(message, options) { + UninterpretedOption.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.rules = []; - if (options.defaults) - object.fully_decode_reserved_expansion = false; - if (message.rules && message.rules.length) { - object.rules = []; - for (var j = 0; j < message.rules.length; ++j) - object.rules[j] = $root.google.api.HttpRule.toObject(message.rules[j], options); + object.name = []; + if (options.defaults) { + object.identifier_value = ""; + if ($util.Long) { + var long = new $util.Long(0, 0, true); + object.positive_int_value = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.positive_int_value = options.longs === String ? "0" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.negative_int_value = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.negative_int_value = options.longs === String ? "0" : 0; + object.double_value = 0; + if (options.bytes === String) + object.string_value = ""; + else { + object.string_value = []; + if (options.bytes !== Array) + object.string_value = $util.newBuffer(object.string_value); + } + object.aggregate_value = ""; } - if (message.fully_decode_reserved_expansion != null && message.hasOwnProperty("fully_decode_reserved_expansion")) - object.fully_decode_reserved_expansion = message.fully_decode_reserved_expansion; + if (message.name && message.name.length) { + object.name = []; + for (var j = 0; j < message.name.length; ++j) + object.name[j] = $root.google.protobuf.UninterpretedOption.NamePart.toObject(message.name[j], options); + } + if (message.identifier_value != null && message.hasOwnProperty("identifier_value")) + object.identifier_value = message.identifier_value; + if (message.positive_int_value != null && message.hasOwnProperty("positive_int_value")) + if (typeof message.positive_int_value === "number") + object.positive_int_value = options.longs === String ? String(message.positive_int_value) : message.positive_int_value; + else + object.positive_int_value = options.longs === String ? $util.Long.prototype.toString.call(message.positive_int_value) : options.longs === Number ? new $util.LongBits(message.positive_int_value.low >>> 0, message.positive_int_value.high >>> 0).toNumber(true) : message.positive_int_value; + if (message.negative_int_value != null && message.hasOwnProperty("negative_int_value")) + if (typeof message.negative_int_value === "number") + object.negative_int_value = options.longs === String ? String(message.negative_int_value) : message.negative_int_value; + else + object.negative_int_value = options.longs === String ? $util.Long.prototype.toString.call(message.negative_int_value) : options.longs === Number ? new $util.LongBits(message.negative_int_value.low >>> 0, message.negative_int_value.high >>> 0).toNumber() : message.negative_int_value; + if (message.double_value != null && message.hasOwnProperty("double_value")) + object.double_value = options.json && !isFinite(message.double_value) ? String(message.double_value) : message.double_value; + if (message.string_value != null && message.hasOwnProperty("string_value")) + object.string_value = options.bytes === String ? $util.base64.encode(message.string_value, 0, message.string_value.length) : options.bytes === Array ? Array.prototype.slice.call(message.string_value) : message.string_value; + if (message.aggregate_value != null && message.hasOwnProperty("aggregate_value")) + object.aggregate_value = message.aggregate_value; return object; }; /** - * Converts this Http to JSON. + * Converts this UninterpretedOption to JSON. * @function toJSON - * @memberof google.api.Http + * @memberof google.protobuf.UninterpretedOption * @instance * @returns {Object.} JSON object */ - Http.prototype.toJSON = function toJSON() { + UninterpretedOption.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Http; - })(); + UninterpretedOption.NamePart = (function() { - api.HttpRule = (function() { + /** + * Properties of a NamePart. + * @memberof google.protobuf.UninterpretedOption + * @interface INamePart + * @property {string} name_part NamePart name_part + * @property {boolean} is_extension NamePart is_extension + */ - /** - * Properties of a HttpRule. - * @memberof google.api - * @interface IHttpRule - * @property {string|null} [selector] HttpRule selector - * @property {string|null} [get] HttpRule get - * @property {string|null} [put] HttpRule put - * @property {string|null} [post] HttpRule post - * @property {string|null} ["delete"] HttpRule delete - * @property {string|null} [patch] HttpRule patch - * @property {google.api.ICustomHttpPattern|null} [custom] HttpRule custom - * @property {string|null} [body] HttpRule body - * @property {string|null} [response_body] HttpRule response_body - * @property {Array.|null} [additional_bindings] HttpRule additional_bindings - */ + /** + * Constructs a new NamePart. + * @memberof google.protobuf.UninterpretedOption + * @classdesc Represents a NamePart. + * @implements INamePart + * @constructor + * @param {google.protobuf.UninterpretedOption.INamePart=} [properties] Properties to set + */ + function NamePart(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Constructs a new HttpRule. - * @memberof google.api - * @classdesc Represents a HttpRule. - * @implements IHttpRule - * @constructor - * @param {google.api.IHttpRule=} [properties] Properties to set - */ - function HttpRule(properties) { - this.additional_bindings = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * NamePart name_part. + * @member {string} name_part + * @memberof google.protobuf.UninterpretedOption.NamePart + * @instance + */ + NamePart.prototype.name_part = ""; - /** - * HttpRule selector. - * @member {string} selector - * @memberof google.api.HttpRule - * @instance - */ - HttpRule.prototype.selector = ""; + /** + * NamePart is_extension. + * @member {boolean} is_extension + * @memberof google.protobuf.UninterpretedOption.NamePart + * @instance + */ + NamePart.prototype.is_extension = false; - /** - * HttpRule get. - * @member {string|null|undefined} get - * @memberof google.api.HttpRule - * @instance - */ - HttpRule.prototype.get = null; + /** + * Encodes the specified NamePart message. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages. + * @function encode + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {google.protobuf.UninterpretedOption.INamePart} message NamePart message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NamePart.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name_part); + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.is_extension); + return writer; + }; - /** - * HttpRule put. - * @member {string|null|undefined} put - * @memberof google.api.HttpRule - * @instance - */ - HttpRule.prototype.put = null; + /** + * Encodes the specified NamePart message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {google.protobuf.UninterpretedOption.INamePart} message NamePart message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NamePart.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * HttpRule post. - * @member {string|null|undefined} post - * @memberof google.api.HttpRule - * @instance - */ - HttpRule.prototype.post = null; + /** + * Decodes a NamePart message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.UninterpretedOption.NamePart} NamePart + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NamePart.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.UninterpretedOption.NamePart(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name_part = reader.string(); + break; + case 2: + message.is_extension = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + if (!message.hasOwnProperty("name_part")) + throw $util.ProtocolError("missing required 'name_part'", { instance: message }); + if (!message.hasOwnProperty("is_extension")) + throw $util.ProtocolError("missing required 'is_extension'", { instance: message }); + return message; + }; - /** - * HttpRule delete. - * @member {string|null|undefined} delete - * @memberof google.api.HttpRule - * @instance - */ - HttpRule.prototype["delete"] = null; + /** + * Decodes a NamePart message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.UninterpretedOption.NamePart} NamePart + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NamePart.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * HttpRule patch. - * @member {string|null|undefined} patch - * @memberof google.api.HttpRule - * @instance - */ - HttpRule.prototype.patch = null; + /** + * Verifies a NamePart message. + * @function verify + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NamePart.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (!$util.isString(message.name_part)) + return "name_part: string expected"; + if (typeof message.is_extension !== "boolean") + return "is_extension: boolean expected"; + return null; + }; - /** - * HttpRule custom. - * @member {google.api.ICustomHttpPattern|null|undefined} custom - * @memberof google.api.HttpRule - * @instance - */ - HttpRule.prototype.custom = null; + /** + * Creates a NamePart message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.UninterpretedOption.NamePart} NamePart + */ + NamePart.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.UninterpretedOption.NamePart) + return object; + var message = new $root.google.protobuf.UninterpretedOption.NamePart(); + if (object.name_part != null) + message.name_part = String(object.name_part); + if (object.is_extension != null) + message.is_extension = Boolean(object.is_extension); + return message; + }; - /** - * HttpRule body. - * @member {string} body - * @memberof google.api.HttpRule - * @instance - */ - HttpRule.prototype.body = ""; + /** + * Creates a plain object from a NamePart message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {google.protobuf.UninterpretedOption.NamePart} message NamePart + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + NamePart.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name_part = ""; + object.is_extension = false; + } + if (message.name_part != null && message.hasOwnProperty("name_part")) + object.name_part = message.name_part; + if (message.is_extension != null && message.hasOwnProperty("is_extension")) + object.is_extension = message.is_extension; + return object; + }; + + /** + * Converts this NamePart to JSON. + * @function toJSON + * @memberof google.protobuf.UninterpretedOption.NamePart + * @instance + * @returns {Object.} JSON object + */ + NamePart.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return NamePart; + })(); + + return UninterpretedOption; + })(); + + protobuf.SourceCodeInfo = (function() { /** - * HttpRule response_body. - * @member {string} response_body - * @memberof google.api.HttpRule - * @instance + * Properties of a SourceCodeInfo. + * @memberof google.protobuf + * @interface ISourceCodeInfo + * @property {Array.|null} [location] SourceCodeInfo location */ - HttpRule.prototype.response_body = ""; /** - * HttpRule additional_bindings. - * @member {Array.} additional_bindings - * @memberof google.api.HttpRule - * @instance + * Constructs a new SourceCodeInfo. + * @memberof google.protobuf + * @classdesc Represents a SourceCodeInfo. + * @implements ISourceCodeInfo + * @constructor + * @param {google.protobuf.ISourceCodeInfo=} [properties] Properties to set */ - HttpRule.prototype.additional_bindings = $util.emptyArray; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + function SourceCodeInfo(properties) { + this.location = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * HttpRule pattern. - * @member {"get"|"put"|"post"|"delete"|"patch"|"custom"|undefined} pattern - * @memberof google.api.HttpRule + * SourceCodeInfo location. + * @member {Array.} location + * @memberof google.protobuf.SourceCodeInfo * @instance */ - Object.defineProperty(HttpRule.prototype, "pattern", { - get: $util.oneOfGetter($oneOfFields = ["get", "put", "post", "delete", "patch", "custom"]), - set: $util.oneOfSetter($oneOfFields) - }); + SourceCodeInfo.prototype.location = $util.emptyArray; /** - * Encodes the specified HttpRule message. Does not implicitly {@link google.api.HttpRule.verify|verify} messages. + * Encodes the specified SourceCodeInfo message. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages. * @function encode - * @memberof google.api.HttpRule + * @memberof google.protobuf.SourceCodeInfo * @static - * @param {google.api.IHttpRule} message HttpRule message or plain object to encode + * @param {google.protobuf.ISourceCodeInfo} message SourceCodeInfo message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - HttpRule.encode = function encode(message, writer) { + SourceCodeInfo.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.selector != null && Object.hasOwnProperty.call(message, "selector")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.selector); - if (message.get != null && Object.hasOwnProperty.call(message, "get")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.get); - if (message.put != null && Object.hasOwnProperty.call(message, "put")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.put); - if (message.post != null && Object.hasOwnProperty.call(message, "post")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.post); - if (message["delete"] != null && Object.hasOwnProperty.call(message, "delete")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message["delete"]); - if (message.patch != null && Object.hasOwnProperty.call(message, "patch")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.patch); - if (message.body != null && Object.hasOwnProperty.call(message, "body")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.body); - if (message.custom != null && Object.hasOwnProperty.call(message, "custom")) - $root.google.api.CustomHttpPattern.encode(message.custom, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.additional_bindings != null && message.additional_bindings.length) - for (var i = 0; i < message.additional_bindings.length; ++i) - $root.google.api.HttpRule.encode(message.additional_bindings[i], writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); - if (message.response_body != null && Object.hasOwnProperty.call(message, "response_body")) - writer.uint32(/* id 12, wireType 2 =*/98).string(message.response_body); + if (message.location != null && message.location.length) + for (var i = 0; i < message.location.length; ++i) + $root.google.protobuf.SourceCodeInfo.Location.encode(message.location[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified HttpRule message, length delimited. Does not implicitly {@link google.api.HttpRule.verify|verify} messages. + * Encodes the specified SourceCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages. * @function encodeDelimited - * @memberof google.api.HttpRule + * @memberof google.protobuf.SourceCodeInfo * @static - * @param {google.api.IHttpRule} message HttpRule message or plain object to encode + * @param {google.protobuf.ISourceCodeInfo} message SourceCodeInfo message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - HttpRule.encodeDelimited = function encodeDelimited(message, writer) { + SourceCodeInfo.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a HttpRule message from the specified reader or buffer. + * Decodes a SourceCodeInfo message from the specified reader or buffer. * @function decode - * @memberof google.api.HttpRule + * @memberof google.protobuf.SourceCodeInfo * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.api.HttpRule} HttpRule + * @returns {google.protobuf.SourceCodeInfo} SourceCodeInfo * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - HttpRule.decode = function decode(reader, length) { + SourceCodeInfo.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.HttpRule(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.SourceCodeInfo(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.selector = reader.string(); - break; - case 2: - message.get = reader.string(); - break; - case 3: - message.put = reader.string(); - break; - case 4: - message.post = reader.string(); - break; - case 5: - message["delete"] = reader.string(); - break; - case 6: - message.patch = reader.string(); - break; - case 8: - message.custom = $root.google.api.CustomHttpPattern.decode(reader, reader.uint32()); - break; - case 7: - message.body = reader.string(); - break; - case 12: - message.response_body = reader.string(); - break; - case 11: - if (!(message.additional_bindings && message.additional_bindings.length)) - message.additional_bindings = []; - message.additional_bindings.push($root.google.api.HttpRule.decode(reader, reader.uint32())); + if (!(message.location && message.location.length)) + message.location = []; + message.location.push($root.google.protobuf.SourceCodeInfo.Location.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -17765,240 +24325,455 @@ }; /** - * Decodes a HttpRule message from the specified reader or buffer, length delimited. + * Decodes a SourceCodeInfo message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.api.HttpRule + * @memberof google.protobuf.SourceCodeInfo * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.api.HttpRule} HttpRule + * @returns {google.protobuf.SourceCodeInfo} SourceCodeInfo * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - HttpRule.decodeDelimited = function decodeDelimited(reader) { + SourceCodeInfo.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a HttpRule message. + * Verifies a SourceCodeInfo message. * @function verify - * @memberof google.api.HttpRule + * @memberof google.protobuf.SourceCodeInfo * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - HttpRule.verify = function verify(message) { + SourceCodeInfo.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.selector != null && message.hasOwnProperty("selector")) - if (!$util.isString(message.selector)) - return "selector: string expected"; - if (message.get != null && message.hasOwnProperty("get")) { - properties.pattern = 1; - if (!$util.isString(message.get)) - return "get: string expected"; - } - if (message.put != null && message.hasOwnProperty("put")) { - if (properties.pattern === 1) - return "pattern: multiple values"; - properties.pattern = 1; - if (!$util.isString(message.put)) - return "put: string expected"; - } - if (message.post != null && message.hasOwnProperty("post")) { - if (properties.pattern === 1) - return "pattern: multiple values"; - properties.pattern = 1; - if (!$util.isString(message.post)) - return "post: string expected"; - } - if (message["delete"] != null && message.hasOwnProperty("delete")) { - if (properties.pattern === 1) - return "pattern: multiple values"; - properties.pattern = 1; - if (!$util.isString(message["delete"])) - return "delete: string expected"; - } - if (message.patch != null && message.hasOwnProperty("patch")) { - if (properties.pattern === 1) - return "pattern: multiple values"; - properties.pattern = 1; - if (!$util.isString(message.patch)) - return "patch: string expected"; - } - if (message.custom != null && message.hasOwnProperty("custom")) { - if (properties.pattern === 1) - return "pattern: multiple values"; - properties.pattern = 1; - { - var error = $root.google.api.CustomHttpPattern.verify(message.custom); - if (error) - return "custom." + error; - } - } - if (message.body != null && message.hasOwnProperty("body")) - if (!$util.isString(message.body)) - return "body: string expected"; - if (message.response_body != null && message.hasOwnProperty("response_body")) - if (!$util.isString(message.response_body)) - return "response_body: string expected"; - if (message.additional_bindings != null && message.hasOwnProperty("additional_bindings")) { - if (!Array.isArray(message.additional_bindings)) - return "additional_bindings: array expected"; - for (var i = 0; i < message.additional_bindings.length; ++i) { - var error = $root.google.api.HttpRule.verify(message.additional_bindings[i]); + if (message.location != null && message.hasOwnProperty("location")) { + if (!Array.isArray(message.location)) + return "location: array expected"; + for (var i = 0; i < message.location.length; ++i) { + var error = $root.google.protobuf.SourceCodeInfo.Location.verify(message.location[i]); if (error) - return "additional_bindings." + error; + return "location." + error; } } return null; }; /** - * Creates a HttpRule message from a plain object. Also converts values to their respective internal types. + * Creates a SourceCodeInfo message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.api.HttpRule + * @memberof google.protobuf.SourceCodeInfo * @static * @param {Object.} object Plain object - * @returns {google.api.HttpRule} HttpRule + * @returns {google.protobuf.SourceCodeInfo} SourceCodeInfo */ - HttpRule.fromObject = function fromObject(object) { - if (object instanceof $root.google.api.HttpRule) + SourceCodeInfo.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.SourceCodeInfo) return object; - var message = new $root.google.api.HttpRule(); - if (object.selector != null) - message.selector = String(object.selector); - if (object.get != null) - message.get = String(object.get); - if (object.put != null) - message.put = String(object.put); - if (object.post != null) - message.post = String(object.post); - if (object["delete"] != null) - message["delete"] = String(object["delete"]); - if (object.patch != null) - message.patch = String(object.patch); - if (object.custom != null) { - if (typeof object.custom !== "object") - throw TypeError(".google.api.HttpRule.custom: object expected"); - message.custom = $root.google.api.CustomHttpPattern.fromObject(object.custom); - } - if (object.body != null) - message.body = String(object.body); - if (object.response_body != null) - message.response_body = String(object.response_body); - if (object.additional_bindings) { - if (!Array.isArray(object.additional_bindings)) - throw TypeError(".google.api.HttpRule.additional_bindings: array expected"); - message.additional_bindings = []; - for (var i = 0; i < object.additional_bindings.length; ++i) { - if (typeof object.additional_bindings[i] !== "object") - throw TypeError(".google.api.HttpRule.additional_bindings: object expected"); - message.additional_bindings[i] = $root.google.api.HttpRule.fromObject(object.additional_bindings[i]); + var message = new $root.google.protobuf.SourceCodeInfo(); + if (object.location) { + if (!Array.isArray(object.location)) + throw TypeError(".google.protobuf.SourceCodeInfo.location: array expected"); + message.location = []; + for (var i = 0; i < object.location.length; ++i) { + if (typeof object.location[i] !== "object") + throw TypeError(".google.protobuf.SourceCodeInfo.location: object expected"); + message.location[i] = $root.google.protobuf.SourceCodeInfo.Location.fromObject(object.location[i]); } } return message; }; /** - * Creates a plain object from a HttpRule message. Also converts values to other types if specified. + * Creates a plain object from a SourceCodeInfo message. Also converts values to other types if specified. * @function toObject - * @memberof google.api.HttpRule + * @memberof google.protobuf.SourceCodeInfo * @static - * @param {google.api.HttpRule} message HttpRule + * @param {google.protobuf.SourceCodeInfo} message SourceCodeInfo * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - HttpRule.toObject = function toObject(message, options) { + SourceCodeInfo.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.additional_bindings = []; - if (options.defaults) { - object.selector = ""; - object.body = ""; - object.response_body = ""; - } - if (message.selector != null && message.hasOwnProperty("selector")) - object.selector = message.selector; - if (message.get != null && message.hasOwnProperty("get")) { - object.get = message.get; - if (options.oneofs) - object.pattern = "get"; - } - if (message.put != null && message.hasOwnProperty("put")) { - object.put = message.put; - if (options.oneofs) - object.pattern = "put"; - } - if (message.post != null && message.hasOwnProperty("post")) { - object.post = message.post; - if (options.oneofs) - object.pattern = "post"; - } - if (message["delete"] != null && message.hasOwnProperty("delete")) { - object["delete"] = message["delete"]; - if (options.oneofs) - object.pattern = "delete"; - } - if (message.patch != null && message.hasOwnProperty("patch")) { - object.patch = message.patch; - if (options.oneofs) - object.pattern = "patch"; - } - if (message.body != null && message.hasOwnProperty("body")) - object.body = message.body; - if (message.custom != null && message.hasOwnProperty("custom")) { - object.custom = $root.google.api.CustomHttpPattern.toObject(message.custom, options); - if (options.oneofs) - object.pattern = "custom"; - } - if (message.additional_bindings && message.additional_bindings.length) { - object.additional_bindings = []; - for (var j = 0; j < message.additional_bindings.length; ++j) - object.additional_bindings[j] = $root.google.api.HttpRule.toObject(message.additional_bindings[j], options); + object.location = []; + if (message.location && message.location.length) { + object.location = []; + for (var j = 0; j < message.location.length; ++j) + object.location[j] = $root.google.protobuf.SourceCodeInfo.Location.toObject(message.location[j], options); } - if (message.response_body != null && message.hasOwnProperty("response_body")) - object.response_body = message.response_body; return object; }; - /** - * Converts this HttpRule to JSON. - * @function toJSON - * @memberof google.api.HttpRule - * @instance - * @returns {Object.} JSON object - */ - HttpRule.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Converts this SourceCodeInfo to JSON. + * @function toJSON + * @memberof google.protobuf.SourceCodeInfo + * @instance + * @returns {Object.} JSON object + */ + SourceCodeInfo.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + SourceCodeInfo.Location = (function() { + + /** + * Properties of a Location. + * @memberof google.protobuf.SourceCodeInfo + * @interface ILocation + * @property {Array.|null} [path] Location path + * @property {Array.|null} [span] Location span + * @property {string|null} [leading_comments] Location leading_comments + * @property {string|null} [trailing_comments] Location trailing_comments + * @property {Array.|null} [leading_detached_comments] Location leading_detached_comments + */ + + /** + * Constructs a new Location. + * @memberof google.protobuf.SourceCodeInfo + * @classdesc Represents a Location. + * @implements ILocation + * @constructor + * @param {google.protobuf.SourceCodeInfo.ILocation=} [properties] Properties to set + */ + function Location(properties) { + this.path = []; + this.span = []; + this.leading_detached_comments = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Location path. + * @member {Array.} path + * @memberof google.protobuf.SourceCodeInfo.Location + * @instance + */ + Location.prototype.path = $util.emptyArray; + + /** + * Location span. + * @member {Array.} span + * @memberof google.protobuf.SourceCodeInfo.Location + * @instance + */ + Location.prototype.span = $util.emptyArray; + + /** + * Location leading_comments. + * @member {string} leading_comments + * @memberof google.protobuf.SourceCodeInfo.Location + * @instance + */ + Location.prototype.leading_comments = ""; + + /** + * Location trailing_comments. + * @member {string} trailing_comments + * @memberof google.protobuf.SourceCodeInfo.Location + * @instance + */ + Location.prototype.trailing_comments = ""; + + /** + * Location leading_detached_comments. + * @member {Array.} leading_detached_comments + * @memberof google.protobuf.SourceCodeInfo.Location + * @instance + */ + Location.prototype.leading_detached_comments = $util.emptyArray; + + /** + * Encodes the specified Location message. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages. + * @function encode + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {google.protobuf.SourceCodeInfo.ILocation} message Location message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Location.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.path != null && message.path.length) { + writer.uint32(/* id 1, wireType 2 =*/10).fork(); + for (var i = 0; i < message.path.length; ++i) + writer.int32(message.path[i]); + writer.ldelim(); + } + if (message.span != null && message.span.length) { + writer.uint32(/* id 2, wireType 2 =*/18).fork(); + for (var i = 0; i < message.span.length; ++i) + writer.int32(message.span[i]); + writer.ldelim(); + } + if (message.leading_comments != null && Object.hasOwnProperty.call(message, "leading_comments")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.leading_comments); + if (message.trailing_comments != null && Object.hasOwnProperty.call(message, "trailing_comments")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.trailing_comments); + if (message.leading_detached_comments != null && message.leading_detached_comments.length) + for (var i = 0; i < message.leading_detached_comments.length; ++i) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.leading_detached_comments[i]); + return writer; + }; + + /** + * Encodes the specified Location message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {google.protobuf.SourceCodeInfo.ILocation} message Location message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Location.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Location message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.SourceCodeInfo.Location} Location + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Location.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.SourceCodeInfo.Location(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.path && message.path.length)) + message.path = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.path.push(reader.int32()); + } else + message.path.push(reader.int32()); + break; + case 2: + if (!(message.span && message.span.length)) + message.span = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.span.push(reader.int32()); + } else + message.span.push(reader.int32()); + break; + case 3: + message.leading_comments = reader.string(); + break; + case 4: + message.trailing_comments = reader.string(); + break; + case 6: + if (!(message.leading_detached_comments && message.leading_detached_comments.length)) + message.leading_detached_comments = []; + message.leading_detached_comments.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Location message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.SourceCodeInfo.Location} Location + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Location.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Location message. + * @function verify + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Location.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.path != null && message.hasOwnProperty("path")) { + if (!Array.isArray(message.path)) + return "path: array expected"; + for (var i = 0; i < message.path.length; ++i) + if (!$util.isInteger(message.path[i])) + return "path: integer[] expected"; + } + if (message.span != null && message.hasOwnProperty("span")) { + if (!Array.isArray(message.span)) + return "span: array expected"; + for (var i = 0; i < message.span.length; ++i) + if (!$util.isInteger(message.span[i])) + return "span: integer[] expected"; + } + if (message.leading_comments != null && message.hasOwnProperty("leading_comments")) + if (!$util.isString(message.leading_comments)) + return "leading_comments: string expected"; + if (message.trailing_comments != null && message.hasOwnProperty("trailing_comments")) + if (!$util.isString(message.trailing_comments)) + return "trailing_comments: string expected"; + if (message.leading_detached_comments != null && message.hasOwnProperty("leading_detached_comments")) { + if (!Array.isArray(message.leading_detached_comments)) + return "leading_detached_comments: array expected"; + for (var i = 0; i < message.leading_detached_comments.length; ++i) + if (!$util.isString(message.leading_detached_comments[i])) + return "leading_detached_comments: string[] expected"; + } + return null; + }; + + /** + * Creates a Location message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.SourceCodeInfo.Location} Location + */ + Location.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.SourceCodeInfo.Location) + return object; + var message = new $root.google.protobuf.SourceCodeInfo.Location(); + if (object.path) { + if (!Array.isArray(object.path)) + throw TypeError(".google.protobuf.SourceCodeInfo.Location.path: array expected"); + message.path = []; + for (var i = 0; i < object.path.length; ++i) + message.path[i] = object.path[i] | 0; + } + if (object.span) { + if (!Array.isArray(object.span)) + throw TypeError(".google.protobuf.SourceCodeInfo.Location.span: array expected"); + message.span = []; + for (var i = 0; i < object.span.length; ++i) + message.span[i] = object.span[i] | 0; + } + if (object.leading_comments != null) + message.leading_comments = String(object.leading_comments); + if (object.trailing_comments != null) + message.trailing_comments = String(object.trailing_comments); + if (object.leading_detached_comments) { + if (!Array.isArray(object.leading_detached_comments)) + throw TypeError(".google.protobuf.SourceCodeInfo.Location.leading_detached_comments: array expected"); + message.leading_detached_comments = []; + for (var i = 0; i < object.leading_detached_comments.length; ++i) + message.leading_detached_comments[i] = String(object.leading_detached_comments[i]); + } + return message; + }; + + /** + * Creates a plain object from a Location message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {google.protobuf.SourceCodeInfo.Location} message Location + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Location.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.path = []; + object.span = []; + object.leading_detached_comments = []; + } + if (options.defaults) { + object.leading_comments = ""; + object.trailing_comments = ""; + } + if (message.path && message.path.length) { + object.path = []; + for (var j = 0; j < message.path.length; ++j) + object.path[j] = message.path[j]; + } + if (message.span && message.span.length) { + object.span = []; + for (var j = 0; j < message.span.length; ++j) + object.span[j] = message.span[j]; + } + if (message.leading_comments != null && message.hasOwnProperty("leading_comments")) + object.leading_comments = message.leading_comments; + if (message.trailing_comments != null && message.hasOwnProperty("trailing_comments")) + object.trailing_comments = message.trailing_comments; + if (message.leading_detached_comments && message.leading_detached_comments.length) { + object.leading_detached_comments = []; + for (var j = 0; j < message.leading_detached_comments.length; ++j) + object.leading_detached_comments[j] = message.leading_detached_comments[j]; + } + return object; + }; - return HttpRule; + /** + * Converts this Location to JSON. + * @function toJSON + * @memberof google.protobuf.SourceCodeInfo.Location + * @instance + * @returns {Object.} JSON object + */ + Location.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return Location; + })(); + + return SourceCodeInfo; })(); - api.CustomHttpPattern = (function() { + protobuf.GeneratedCodeInfo = (function() { /** - * Properties of a CustomHttpPattern. - * @memberof google.api - * @interface ICustomHttpPattern - * @property {string|null} [kind] CustomHttpPattern kind - * @property {string|null} [path] CustomHttpPattern path + * Properties of a GeneratedCodeInfo. + * @memberof google.protobuf + * @interface IGeneratedCodeInfo + * @property {Array.|null} [annotation] GeneratedCodeInfo annotation */ /** - * Constructs a new CustomHttpPattern. - * @memberof google.api - * @classdesc Represents a CustomHttpPattern. - * @implements ICustomHttpPattern + * Constructs a new GeneratedCodeInfo. + * @memberof google.protobuf + * @classdesc Represents a GeneratedCodeInfo. + * @implements IGeneratedCodeInfo * @constructor - * @param {google.api.ICustomHttpPattern=} [properties] Properties to set + * @param {google.protobuf.IGeneratedCodeInfo=} [properties] Properties to set */ - function CustomHttpPattern(properties) { + function GeneratedCodeInfo(properties) { + this.annotation = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -18006,76 +24781,66 @@ } /** - * CustomHttpPattern kind. - * @member {string} kind - * @memberof google.api.CustomHttpPattern - * @instance - */ - CustomHttpPattern.prototype.kind = ""; - - /** - * CustomHttpPattern path. - * @member {string} path - * @memberof google.api.CustomHttpPattern + * GeneratedCodeInfo annotation. + * @member {Array.} annotation + * @memberof google.protobuf.GeneratedCodeInfo * @instance */ - CustomHttpPattern.prototype.path = ""; + GeneratedCodeInfo.prototype.annotation = $util.emptyArray; /** - * Encodes the specified CustomHttpPattern message. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages. + * Encodes the specified GeneratedCodeInfo message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages. * @function encode - * @memberof google.api.CustomHttpPattern + * @memberof google.protobuf.GeneratedCodeInfo * @static - * @param {google.api.ICustomHttpPattern} message CustomHttpPattern message or plain object to encode + * @param {google.protobuf.IGeneratedCodeInfo} message GeneratedCodeInfo message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CustomHttpPattern.encode = function encode(message, writer) { + GeneratedCodeInfo.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.kind != null && Object.hasOwnProperty.call(message, "kind")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.kind); - if (message.path != null && Object.hasOwnProperty.call(message, "path")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.path); + if (message.annotation != null && message.annotation.length) + for (var i = 0; i < message.annotation.length; ++i) + $root.google.protobuf.GeneratedCodeInfo.Annotation.encode(message.annotation[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified CustomHttpPattern message, length delimited. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages. + * Encodes the specified GeneratedCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages. * @function encodeDelimited - * @memberof google.api.CustomHttpPattern + * @memberof google.protobuf.GeneratedCodeInfo * @static - * @param {google.api.ICustomHttpPattern} message CustomHttpPattern message or plain object to encode + * @param {google.protobuf.IGeneratedCodeInfo} message GeneratedCodeInfo message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CustomHttpPattern.encodeDelimited = function encodeDelimited(message, writer) { + GeneratedCodeInfo.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CustomHttpPattern message from the specified reader or buffer. + * Decodes a GeneratedCodeInfo message from the specified reader or buffer. * @function decode - * @memberof google.api.CustomHttpPattern + * @memberof google.protobuf.GeneratedCodeInfo * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.api.CustomHttpPattern} CustomHttpPattern + * @returns {google.protobuf.GeneratedCodeInfo} GeneratedCodeInfo * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CustomHttpPattern.decode = function decode(reader, length) { + GeneratedCodeInfo.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.CustomHttpPattern(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.GeneratedCodeInfo(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.kind = reader.string(); - break; - case 2: - message.path = reader.string(); + if (!(message.annotation && message.annotation.length)) + message.annotation = []; + message.annotation.push($root.google.protobuf.GeneratedCodeInfo.Annotation.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -18086,2407 +24851,2100 @@ }; /** - * Decodes a CustomHttpPattern message from the specified reader or buffer, length delimited. + * Decodes a GeneratedCodeInfo message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.api.CustomHttpPattern + * @memberof google.protobuf.GeneratedCodeInfo * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.api.CustomHttpPattern} CustomHttpPattern + * @returns {google.protobuf.GeneratedCodeInfo} GeneratedCodeInfo * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CustomHttpPattern.decodeDelimited = function decodeDelimited(reader) { + GeneratedCodeInfo.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; - /** - * Verifies a CustomHttpPattern message. - * @function verify - * @memberof google.api.CustomHttpPattern - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CustomHttpPattern.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.kind != null && message.hasOwnProperty("kind")) - if (!$util.isString(message.kind)) - return "kind: string expected"; - if (message.path != null && message.hasOwnProperty("path")) - if (!$util.isString(message.path)) - return "path: string expected"; - return null; - }; - - /** - * Creates a CustomHttpPattern message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.api.CustomHttpPattern - * @static - * @param {Object.} object Plain object - * @returns {google.api.CustomHttpPattern} CustomHttpPattern - */ - CustomHttpPattern.fromObject = function fromObject(object) { - if (object instanceof $root.google.api.CustomHttpPattern) - return object; - var message = new $root.google.api.CustomHttpPattern(); - if (object.kind != null) - message.kind = String(object.kind); - if (object.path != null) - message.path = String(object.path); - return message; - }; - - /** - * Creates a plain object from a CustomHttpPattern message. Also converts values to other types if specified. - * @function toObject - * @memberof google.api.CustomHttpPattern - * @static - * @param {google.api.CustomHttpPattern} message CustomHttpPattern - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - CustomHttpPattern.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.kind = ""; - object.path = ""; - } - if (message.kind != null && message.hasOwnProperty("kind")) - object.kind = message.kind; - if (message.path != null && message.hasOwnProperty("path")) - object.path = message.path; - return object; - }; - - /** - * Converts this CustomHttpPattern to JSON. - * @function toJSON - * @memberof google.api.CustomHttpPattern - * @instance - * @returns {Object.} JSON object - */ - CustomHttpPattern.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return CustomHttpPattern; - })(); - - return api; - })(); - - return google; - })(); - - $root.ibc = (function() { - - /** - * Namespace ibc. - * @exports ibc - * @namespace - */ - var ibc = {}; - - ibc.applications = (function() { - - /** - * Namespace applications. - * @memberof ibc - * @namespace - */ - var applications = {}; - - applications.fee = (function() { - - /** - * Namespace fee. - * @memberof ibc.applications - * @namespace - */ - var fee = {}; - - fee.v1 = (function() { - - /** - * Namespace v1. - * @memberof ibc.applications.fee - * @namespace - */ - var v1 = {}; - - v1.Msg = (function() { - - /** - * Constructs a new Msg service. - * @memberof ibc.applications.fee.v1 - * @classdesc Represents a Msg - * @extends $protobuf.rpc.Service - * @constructor - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - */ - function Msg(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } - - (Msg.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Msg; - - /** - * Callback as used by {@link ibc.applications.fee.v1.Msg#registerPayee}. - * @memberof ibc.applications.fee.v1.Msg - * @typedef RegisterPayeeCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.applications.fee.v1.MsgRegisterPayeeResponse} [response] MsgRegisterPayeeResponse - */ - - /** - * Calls RegisterPayee. - * @function registerPayee - * @memberof ibc.applications.fee.v1.Msg - * @instance - * @param {ibc.applications.fee.v1.IMsgRegisterPayee} request MsgRegisterPayee message or plain object - * @param {ibc.applications.fee.v1.Msg.RegisterPayeeCallback} callback Node-style callback called with the error, if any, and MsgRegisterPayeeResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Msg.prototype.registerPayee = function registerPayee(request, callback) { - return this.rpcCall(registerPayee, $root.ibc.applications.fee.v1.MsgRegisterPayee, $root.ibc.applications.fee.v1.MsgRegisterPayeeResponse, request, callback); - }, "name", { value: "RegisterPayee" }); - - /** - * Calls RegisterPayee. - * @function registerPayee - * @memberof ibc.applications.fee.v1.Msg - * @instance - * @param {ibc.applications.fee.v1.IMsgRegisterPayee} request MsgRegisterPayee message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link ibc.applications.fee.v1.Msg#registerCounterpartyPayee}. - * @memberof ibc.applications.fee.v1.Msg - * @typedef RegisterCounterpartyPayeeCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.applications.fee.v1.MsgRegisterCounterpartyPayeeResponse} [response] MsgRegisterCounterpartyPayeeResponse - */ - - /** - * Calls RegisterCounterpartyPayee. - * @function registerCounterpartyPayee - * @memberof ibc.applications.fee.v1.Msg - * @instance - * @param {ibc.applications.fee.v1.IMsgRegisterCounterpartyPayee} request MsgRegisterCounterpartyPayee message or plain object - * @param {ibc.applications.fee.v1.Msg.RegisterCounterpartyPayeeCallback} callback Node-style callback called with the error, if any, and MsgRegisterCounterpartyPayeeResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Msg.prototype.registerCounterpartyPayee = function registerCounterpartyPayee(request, callback) { - return this.rpcCall(registerCounterpartyPayee, $root.ibc.applications.fee.v1.MsgRegisterCounterpartyPayee, $root.ibc.applications.fee.v1.MsgRegisterCounterpartyPayeeResponse, request, callback); - }, "name", { value: "RegisterCounterpartyPayee" }); - - /** - * Calls RegisterCounterpartyPayee. - * @function registerCounterpartyPayee - * @memberof ibc.applications.fee.v1.Msg - * @instance - * @param {ibc.applications.fee.v1.IMsgRegisterCounterpartyPayee} request MsgRegisterCounterpartyPayee message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link ibc.applications.fee.v1.Msg#payPacketFee}. - * @memberof ibc.applications.fee.v1.Msg - * @typedef PayPacketFeeCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.applications.fee.v1.MsgPayPacketFeeResponse} [response] MsgPayPacketFeeResponse - */ - - /** - * Calls PayPacketFee. - * @function payPacketFee - * @memberof ibc.applications.fee.v1.Msg - * @instance - * @param {ibc.applications.fee.v1.IMsgPayPacketFee} request MsgPayPacketFee message or plain object - * @param {ibc.applications.fee.v1.Msg.PayPacketFeeCallback} callback Node-style callback called with the error, if any, and MsgPayPacketFeeResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Msg.prototype.payPacketFee = function payPacketFee(request, callback) { - return this.rpcCall(payPacketFee, $root.ibc.applications.fee.v1.MsgPayPacketFee, $root.ibc.applications.fee.v1.MsgPayPacketFeeResponse, request, callback); - }, "name", { value: "PayPacketFee" }); - - /** - * Calls PayPacketFee. - * @function payPacketFee - * @memberof ibc.applications.fee.v1.Msg - * @instance - * @param {ibc.applications.fee.v1.IMsgPayPacketFee} request MsgPayPacketFee message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link ibc.applications.fee.v1.Msg#payPacketFeeAsync}. - * @memberof ibc.applications.fee.v1.Msg - * @typedef PayPacketFeeAsyncCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.applications.fee.v1.MsgPayPacketFeeAsyncResponse} [response] MsgPayPacketFeeAsyncResponse - */ - - /** - * Calls PayPacketFeeAsync. - * @function payPacketFeeAsync - * @memberof ibc.applications.fee.v1.Msg - * @instance - * @param {ibc.applications.fee.v1.IMsgPayPacketFeeAsync} request MsgPayPacketFeeAsync message or plain object - * @param {ibc.applications.fee.v1.Msg.PayPacketFeeAsyncCallback} callback Node-style callback called with the error, if any, and MsgPayPacketFeeAsyncResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Msg.prototype.payPacketFeeAsync = function payPacketFeeAsync(request, callback) { - return this.rpcCall(payPacketFeeAsync, $root.ibc.applications.fee.v1.MsgPayPacketFeeAsync, $root.ibc.applications.fee.v1.MsgPayPacketFeeAsyncResponse, request, callback); - }, "name", { value: "PayPacketFeeAsync" }); - - /** - * Calls PayPacketFeeAsync. - * @function payPacketFeeAsync - * @memberof ibc.applications.fee.v1.Msg - * @instance - * @param {ibc.applications.fee.v1.IMsgPayPacketFeeAsync} request MsgPayPacketFeeAsync message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - return Msg; - })(); - - v1.MsgRegisterPayee = (function() { - - /** - * Properties of a MsgRegisterPayee. - * @memberof ibc.applications.fee.v1 - * @interface IMsgRegisterPayee - * @property {string|null} [port_id] MsgRegisterPayee port_id - * @property {string|null} [channel_id] MsgRegisterPayee channel_id - * @property {string|null} [relayer] MsgRegisterPayee relayer - * @property {string|null} [payee] MsgRegisterPayee payee - */ - - /** - * Constructs a new MsgRegisterPayee. - * @memberof ibc.applications.fee.v1 - * @classdesc Represents a MsgRegisterPayee. - * @implements IMsgRegisterPayee - * @constructor - * @param {ibc.applications.fee.v1.IMsgRegisterPayee=} [properties] Properties to set - */ - function MsgRegisterPayee(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * MsgRegisterPayee port_id. - * @member {string} port_id - * @memberof ibc.applications.fee.v1.MsgRegisterPayee - * @instance - */ - MsgRegisterPayee.prototype.port_id = ""; - - /** - * MsgRegisterPayee channel_id. - * @member {string} channel_id - * @memberof ibc.applications.fee.v1.MsgRegisterPayee - * @instance - */ - MsgRegisterPayee.prototype.channel_id = ""; - - /** - * MsgRegisterPayee relayer. - * @member {string} relayer - * @memberof ibc.applications.fee.v1.MsgRegisterPayee - * @instance - */ - MsgRegisterPayee.prototype.relayer = ""; - - /** - * MsgRegisterPayee payee. - * @member {string} payee - * @memberof ibc.applications.fee.v1.MsgRegisterPayee - * @instance - */ - MsgRegisterPayee.prototype.payee = ""; - - /** - * Encodes the specified MsgRegisterPayee message. Does not implicitly {@link ibc.applications.fee.v1.MsgRegisterPayee.verify|verify} messages. - * @function encode - * @memberof ibc.applications.fee.v1.MsgRegisterPayee - * @static - * @param {ibc.applications.fee.v1.IMsgRegisterPayee} message MsgRegisterPayee message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MsgRegisterPayee.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.port_id != null && Object.hasOwnProperty.call(message, "port_id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.port_id); - if (message.channel_id != null && Object.hasOwnProperty.call(message, "channel_id")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.channel_id); - if (message.relayer != null && Object.hasOwnProperty.call(message, "relayer")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.relayer); - if (message.payee != null && Object.hasOwnProperty.call(message, "payee")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.payee); - return writer; - }; - - /** - * Encodes the specified MsgRegisterPayee message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.MsgRegisterPayee.verify|verify} messages. - * @function encodeDelimited - * @memberof ibc.applications.fee.v1.MsgRegisterPayee - * @static - * @param {ibc.applications.fee.v1.IMsgRegisterPayee} message MsgRegisterPayee message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MsgRegisterPayee.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Verifies a GeneratedCodeInfo message. + * @function verify + * @memberof google.protobuf.GeneratedCodeInfo + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GeneratedCodeInfo.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.annotation != null && message.hasOwnProperty("annotation")) { + if (!Array.isArray(message.annotation)) + return "annotation: array expected"; + for (var i = 0; i < message.annotation.length; ++i) { + var error = $root.google.protobuf.GeneratedCodeInfo.Annotation.verify(message.annotation[i]); + if (error) + return "annotation." + error; + } + } + return null; + }; - /** - * Decodes a MsgRegisterPayee message from the specified reader or buffer. - * @function decode - * @memberof ibc.applications.fee.v1.MsgRegisterPayee - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.fee.v1.MsgRegisterPayee} MsgRegisterPayee - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MsgRegisterPayee.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.MsgRegisterPayee(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.port_id = reader.string(); - break; - case 2: - message.channel_id = reader.string(); - break; - case 3: - message.relayer = reader.string(); - break; - case 4: - message.payee = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Creates a GeneratedCodeInfo message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.GeneratedCodeInfo + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.GeneratedCodeInfo} GeneratedCodeInfo + */ + GeneratedCodeInfo.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.GeneratedCodeInfo) + return object; + var message = new $root.google.protobuf.GeneratedCodeInfo(); + if (object.annotation) { + if (!Array.isArray(object.annotation)) + throw TypeError(".google.protobuf.GeneratedCodeInfo.annotation: array expected"); + message.annotation = []; + for (var i = 0; i < object.annotation.length; ++i) { + if (typeof object.annotation[i] !== "object") + throw TypeError(".google.protobuf.GeneratedCodeInfo.annotation: object expected"); + message.annotation[i] = $root.google.protobuf.GeneratedCodeInfo.Annotation.fromObject(object.annotation[i]); + } + } + return message; + }; - /** - * Decodes a MsgRegisterPayee message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ibc.applications.fee.v1.MsgRegisterPayee - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.fee.v1.MsgRegisterPayee} MsgRegisterPayee - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MsgRegisterPayee.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Creates a plain object from a GeneratedCodeInfo message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.GeneratedCodeInfo + * @static + * @param {google.protobuf.GeneratedCodeInfo} message GeneratedCodeInfo + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GeneratedCodeInfo.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.annotation = []; + if (message.annotation && message.annotation.length) { + object.annotation = []; + for (var j = 0; j < message.annotation.length; ++j) + object.annotation[j] = $root.google.protobuf.GeneratedCodeInfo.Annotation.toObject(message.annotation[j], options); + } + return object; + }; - /** - * Verifies a MsgRegisterPayee message. - * @function verify - * @memberof ibc.applications.fee.v1.MsgRegisterPayee - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - MsgRegisterPayee.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.port_id != null && message.hasOwnProperty("port_id")) - if (!$util.isString(message.port_id)) - return "port_id: string expected"; - if (message.channel_id != null && message.hasOwnProperty("channel_id")) - if (!$util.isString(message.channel_id)) - return "channel_id: string expected"; - if (message.relayer != null && message.hasOwnProperty("relayer")) - if (!$util.isString(message.relayer)) - return "relayer: string expected"; - if (message.payee != null && message.hasOwnProperty("payee")) - if (!$util.isString(message.payee)) - return "payee: string expected"; - return null; - }; + /** + * Converts this GeneratedCodeInfo to JSON. + * @function toJSON + * @memberof google.protobuf.GeneratedCodeInfo + * @instance + * @returns {Object.} JSON object + */ + GeneratedCodeInfo.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Creates a MsgRegisterPayee message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof ibc.applications.fee.v1.MsgRegisterPayee - * @static - * @param {Object.} object Plain object - * @returns {ibc.applications.fee.v1.MsgRegisterPayee} MsgRegisterPayee - */ - MsgRegisterPayee.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.fee.v1.MsgRegisterPayee) - return object; - var message = new $root.ibc.applications.fee.v1.MsgRegisterPayee(); - if (object.port_id != null) - message.port_id = String(object.port_id); - if (object.channel_id != null) - message.channel_id = String(object.channel_id); - if (object.relayer != null) - message.relayer = String(object.relayer); - if (object.payee != null) - message.payee = String(object.payee); - return message; - }; + GeneratedCodeInfo.Annotation = (function() { - /** - * Creates a plain object from a MsgRegisterPayee message. Also converts values to other types if specified. - * @function toObject - * @memberof ibc.applications.fee.v1.MsgRegisterPayee - * @static - * @param {ibc.applications.fee.v1.MsgRegisterPayee} message MsgRegisterPayee - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - MsgRegisterPayee.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.port_id = ""; - object.channel_id = ""; - object.relayer = ""; - object.payee = ""; - } - if (message.port_id != null && message.hasOwnProperty("port_id")) - object.port_id = message.port_id; - if (message.channel_id != null && message.hasOwnProperty("channel_id")) - object.channel_id = message.channel_id; - if (message.relayer != null && message.hasOwnProperty("relayer")) - object.relayer = message.relayer; - if (message.payee != null && message.hasOwnProperty("payee")) - object.payee = message.payee; - return object; - }; + /** + * Properties of an Annotation. + * @memberof google.protobuf.GeneratedCodeInfo + * @interface IAnnotation + * @property {Array.|null} [path] Annotation path + * @property {string|null} [source_file] Annotation source_file + * @property {number|null} [begin] Annotation begin + * @property {number|null} [end] Annotation end + */ - /** - * Converts this MsgRegisterPayee to JSON. - * @function toJSON - * @memberof ibc.applications.fee.v1.MsgRegisterPayee - * @instance - * @returns {Object.} JSON object - */ - MsgRegisterPayee.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Constructs a new Annotation. + * @memberof google.protobuf.GeneratedCodeInfo + * @classdesc Represents an Annotation. + * @implements IAnnotation + * @constructor + * @param {google.protobuf.GeneratedCodeInfo.IAnnotation=} [properties] Properties to set + */ + function Annotation(properties) { + this.path = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - return MsgRegisterPayee; - })(); + /** + * Annotation path. + * @member {Array.} path + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @instance + */ + Annotation.prototype.path = $util.emptyArray; - v1.MsgRegisterPayeeResponse = (function() { + /** + * Annotation source_file. + * @member {string} source_file + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @instance + */ + Annotation.prototype.source_file = ""; - /** - * Properties of a MsgRegisterPayeeResponse. - * @memberof ibc.applications.fee.v1 - * @interface IMsgRegisterPayeeResponse - */ + /** + * Annotation begin. + * @member {number} begin + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @instance + */ + Annotation.prototype.begin = 0; - /** - * Constructs a new MsgRegisterPayeeResponse. - * @memberof ibc.applications.fee.v1 - * @classdesc Represents a MsgRegisterPayeeResponse. - * @implements IMsgRegisterPayeeResponse - * @constructor - * @param {ibc.applications.fee.v1.IMsgRegisterPayeeResponse=} [properties] Properties to set - */ - function MsgRegisterPayeeResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Annotation end. + * @member {number} end + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @instance + */ + Annotation.prototype.end = 0; - /** - * Encodes the specified MsgRegisterPayeeResponse message. Does not implicitly {@link ibc.applications.fee.v1.MsgRegisterPayeeResponse.verify|verify} messages. - * @function encode - * @memberof ibc.applications.fee.v1.MsgRegisterPayeeResponse - * @static - * @param {ibc.applications.fee.v1.IMsgRegisterPayeeResponse} message MsgRegisterPayeeResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MsgRegisterPayeeResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; + /** + * Encodes the specified Annotation message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages. + * @function encode + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {google.protobuf.GeneratedCodeInfo.IAnnotation} message Annotation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Annotation.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.path != null && message.path.length) { + writer.uint32(/* id 1, wireType 2 =*/10).fork(); + for (var i = 0; i < message.path.length; ++i) + writer.int32(message.path[i]); + writer.ldelim(); + } + if (message.source_file != null && Object.hasOwnProperty.call(message, "source_file")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.source_file); + if (message.begin != null && Object.hasOwnProperty.call(message, "begin")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.begin); + if (message.end != null && Object.hasOwnProperty.call(message, "end")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.end); + return writer; + }; - /** - * Encodes the specified MsgRegisterPayeeResponse message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.MsgRegisterPayeeResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof ibc.applications.fee.v1.MsgRegisterPayeeResponse - * @static - * @param {ibc.applications.fee.v1.IMsgRegisterPayeeResponse} message MsgRegisterPayeeResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MsgRegisterPayeeResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified Annotation message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {google.protobuf.GeneratedCodeInfo.IAnnotation} message Annotation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Annotation.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a MsgRegisterPayeeResponse message from the specified reader or buffer. - * @function decode - * @memberof ibc.applications.fee.v1.MsgRegisterPayeeResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.fee.v1.MsgRegisterPayeeResponse} MsgRegisterPayeeResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MsgRegisterPayeeResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.MsgRegisterPayeeResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } + /** + * Decodes an Annotation message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.GeneratedCodeInfo.Annotation} Annotation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Annotation.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.GeneratedCodeInfo.Annotation(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.path && message.path.length)) + message.path = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.path.push(reader.int32()); + } else + message.path.push(reader.int32()); + break; + case 2: + message.source_file = reader.string(); + break; + case 3: + message.begin = reader.int32(); + break; + case 4: + message.end = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; } - return message; - }; + } + return message; + }; - /** - * Decodes a MsgRegisterPayeeResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ibc.applications.fee.v1.MsgRegisterPayeeResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.fee.v1.MsgRegisterPayeeResponse} MsgRegisterPayeeResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MsgRegisterPayeeResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes an Annotation message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.GeneratedCodeInfo.Annotation} Annotation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Annotation.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies a MsgRegisterPayeeResponse message. - * @function verify - * @memberof ibc.applications.fee.v1.MsgRegisterPayeeResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - MsgRegisterPayeeResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; + /** + * Verifies an Annotation message. + * @function verify + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Annotation.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.path != null && message.hasOwnProperty("path")) { + if (!Array.isArray(message.path)) + return "path: array expected"; + for (var i = 0; i < message.path.length; ++i) + if (!$util.isInteger(message.path[i])) + return "path: integer[] expected"; + } + if (message.source_file != null && message.hasOwnProperty("source_file")) + if (!$util.isString(message.source_file)) + return "source_file: string expected"; + if (message.begin != null && message.hasOwnProperty("begin")) + if (!$util.isInteger(message.begin)) + return "begin: integer expected"; + if (message.end != null && message.hasOwnProperty("end")) + if (!$util.isInteger(message.end)) + return "end: integer expected"; + return null; + }; + + /** + * Creates an Annotation message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.GeneratedCodeInfo.Annotation} Annotation + */ + Annotation.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.GeneratedCodeInfo.Annotation) + return object; + var message = new $root.google.protobuf.GeneratedCodeInfo.Annotation(); + if (object.path) { + if (!Array.isArray(object.path)) + throw TypeError(".google.protobuf.GeneratedCodeInfo.Annotation.path: array expected"); + message.path = []; + for (var i = 0; i < object.path.length; ++i) + message.path[i] = object.path[i] | 0; + } + if (object.source_file != null) + message.source_file = String(object.source_file); + if (object.begin != null) + message.begin = object.begin | 0; + if (object.end != null) + message.end = object.end | 0; + return message; + }; - /** - * Creates a MsgRegisterPayeeResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof ibc.applications.fee.v1.MsgRegisterPayeeResponse - * @static - * @param {Object.} object Plain object - * @returns {ibc.applications.fee.v1.MsgRegisterPayeeResponse} MsgRegisterPayeeResponse - */ - MsgRegisterPayeeResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.fee.v1.MsgRegisterPayeeResponse) - return object; - return new $root.ibc.applications.fee.v1.MsgRegisterPayeeResponse(); - }; + /** + * Creates a plain object from an Annotation message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {google.protobuf.GeneratedCodeInfo.Annotation} message Annotation + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Annotation.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.path = []; + if (options.defaults) { + object.source_file = ""; + object.begin = 0; + object.end = 0; + } + if (message.path && message.path.length) { + object.path = []; + for (var j = 0; j < message.path.length; ++j) + object.path[j] = message.path[j]; + } + if (message.source_file != null && message.hasOwnProperty("source_file")) + object.source_file = message.source_file; + if (message.begin != null && message.hasOwnProperty("begin")) + object.begin = message.begin; + if (message.end != null && message.hasOwnProperty("end")) + object.end = message.end; + return object; + }; - /** - * Creates a plain object from a MsgRegisterPayeeResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof ibc.applications.fee.v1.MsgRegisterPayeeResponse - * @static - * @param {ibc.applications.fee.v1.MsgRegisterPayeeResponse} message MsgRegisterPayeeResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - MsgRegisterPayeeResponse.toObject = function toObject() { - return {}; - }; + /** + * Converts this Annotation to JSON. + * @function toJSON + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @instance + * @returns {Object.} JSON object + */ + Annotation.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Converts this MsgRegisterPayeeResponse to JSON. - * @function toJSON - * @memberof ibc.applications.fee.v1.MsgRegisterPayeeResponse - * @instance - * @returns {Object.} JSON object - */ - MsgRegisterPayeeResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + return Annotation; + })(); - return MsgRegisterPayeeResponse; - })(); + return GeneratedCodeInfo; + })(); - v1.MsgRegisterCounterpartyPayee = (function() { + protobuf.Any = (function() { - /** - * Properties of a MsgRegisterCounterpartyPayee. - * @memberof ibc.applications.fee.v1 - * @interface IMsgRegisterCounterpartyPayee - * @property {string|null} [port_id] MsgRegisterCounterpartyPayee port_id - * @property {string|null} [channel_id] MsgRegisterCounterpartyPayee channel_id - * @property {string|null} [relayer] MsgRegisterCounterpartyPayee relayer - * @property {string|null} [counterparty_payee] MsgRegisterCounterpartyPayee counterparty_payee - */ + /** + * Properties of an Any. + * @memberof google.protobuf + * @interface IAny + * @property {string|null} [type_url] Any type_url + * @property {Uint8Array|null} [value] Any value + */ - /** - * Constructs a new MsgRegisterCounterpartyPayee. - * @memberof ibc.applications.fee.v1 - * @classdesc Represents a MsgRegisterCounterpartyPayee. - * @implements IMsgRegisterCounterpartyPayee - * @constructor - * @param {ibc.applications.fee.v1.IMsgRegisterCounterpartyPayee=} [properties] Properties to set - */ - function MsgRegisterCounterpartyPayee(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Constructs a new Any. + * @memberof google.protobuf + * @classdesc Represents an Any. + * @implements IAny + * @constructor + * @param {google.protobuf.IAny=} [properties] Properties to set + */ + function Any(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * MsgRegisterCounterpartyPayee port_id. - * @member {string} port_id - * @memberof ibc.applications.fee.v1.MsgRegisterCounterpartyPayee - * @instance - */ - MsgRegisterCounterpartyPayee.prototype.port_id = ""; + /** + * Any type_url. + * @member {string} type_url + * @memberof google.protobuf.Any + * @instance + */ + Any.prototype.type_url = ""; - /** - * MsgRegisterCounterpartyPayee channel_id. - * @member {string} channel_id - * @memberof ibc.applications.fee.v1.MsgRegisterCounterpartyPayee - * @instance - */ - MsgRegisterCounterpartyPayee.prototype.channel_id = ""; + /** + * Any value. + * @member {Uint8Array} value + * @memberof google.protobuf.Any + * @instance + */ + Any.prototype.value = $util.newBuffer([]); - /** - * MsgRegisterCounterpartyPayee relayer. - * @member {string} relayer - * @memberof ibc.applications.fee.v1.MsgRegisterCounterpartyPayee - * @instance - */ - MsgRegisterCounterpartyPayee.prototype.relayer = ""; + /** + * Encodes the specified Any message. Does not implicitly {@link google.protobuf.Any.verify|verify} messages. + * @function encode + * @memberof google.protobuf.Any + * @static + * @param {google.protobuf.IAny} message Any message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Any.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.type_url != null && Object.hasOwnProperty.call(message, "type_url")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.type_url); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.value); + return writer; + }; - /** - * MsgRegisterCounterpartyPayee counterparty_payee. - * @member {string} counterparty_payee - * @memberof ibc.applications.fee.v1.MsgRegisterCounterpartyPayee - * @instance - */ - MsgRegisterCounterpartyPayee.prototype.counterparty_payee = ""; + /** + * Encodes the specified Any message, length delimited. Does not implicitly {@link google.protobuf.Any.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.Any + * @static + * @param {google.protobuf.IAny} message Any message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Any.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Encodes the specified MsgRegisterCounterpartyPayee message. Does not implicitly {@link ibc.applications.fee.v1.MsgRegisterCounterpartyPayee.verify|verify} messages. - * @function encode - * @memberof ibc.applications.fee.v1.MsgRegisterCounterpartyPayee - * @static - * @param {ibc.applications.fee.v1.IMsgRegisterCounterpartyPayee} message MsgRegisterCounterpartyPayee message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MsgRegisterCounterpartyPayee.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.port_id != null && Object.hasOwnProperty.call(message, "port_id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.port_id); - if (message.channel_id != null && Object.hasOwnProperty.call(message, "channel_id")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.channel_id); - if (message.relayer != null && Object.hasOwnProperty.call(message, "relayer")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.relayer); - if (message.counterparty_payee != null && Object.hasOwnProperty.call(message, "counterparty_payee")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.counterparty_payee); - return writer; - }; + /** + * Decodes an Any message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.Any + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.Any} Any + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Any.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Any(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.type_url = reader.string(); + break; + case 2: + message.value = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Encodes the specified MsgRegisterCounterpartyPayee message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.MsgRegisterCounterpartyPayee.verify|verify} messages. - * @function encodeDelimited - * @memberof ibc.applications.fee.v1.MsgRegisterCounterpartyPayee - * @static - * @param {ibc.applications.fee.v1.IMsgRegisterCounterpartyPayee} message MsgRegisterCounterpartyPayee message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MsgRegisterCounterpartyPayee.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Decodes an Any message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.Any + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.Any} Any + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Any.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Decodes a MsgRegisterCounterpartyPayee message from the specified reader or buffer. - * @function decode - * @memberof ibc.applications.fee.v1.MsgRegisterCounterpartyPayee - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.fee.v1.MsgRegisterCounterpartyPayee} MsgRegisterCounterpartyPayee - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MsgRegisterCounterpartyPayee.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.MsgRegisterCounterpartyPayee(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.port_id = reader.string(); - break; - case 2: - message.channel_id = reader.string(); - break; - case 3: - message.relayer = reader.string(); - break; - case 4: - message.counterparty_payee = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Verifies an Any message. + * @function verify + * @memberof google.protobuf.Any + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Any.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.type_url != null && message.hasOwnProperty("type_url")) + if (!$util.isString(message.type_url)) + return "type_url: string expected"; + if (message.value != null && message.hasOwnProperty("value")) + if (!(message.value && typeof message.value.length === "number" || $util.isString(message.value))) + return "value: buffer expected"; + return null; + }; - /** - * Decodes a MsgRegisterCounterpartyPayee message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ibc.applications.fee.v1.MsgRegisterCounterpartyPayee - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.fee.v1.MsgRegisterCounterpartyPayee} MsgRegisterCounterpartyPayee - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MsgRegisterCounterpartyPayee.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Creates an Any message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.Any + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.Any} Any + */ + Any.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.Any) + return object; + var message = new $root.google.protobuf.Any(); + if (object.type_url != null) + message.type_url = String(object.type_url); + if (object.value != null) + if (typeof object.value === "string") + $util.base64.decode(object.value, message.value = $util.newBuffer($util.base64.length(object.value)), 0); + else if (object.value.length) + message.value = object.value; + return message; + }; - /** - * Verifies a MsgRegisterCounterpartyPayee message. - * @function verify - * @memberof ibc.applications.fee.v1.MsgRegisterCounterpartyPayee - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - MsgRegisterCounterpartyPayee.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.port_id != null && message.hasOwnProperty("port_id")) - if (!$util.isString(message.port_id)) - return "port_id: string expected"; - if (message.channel_id != null && message.hasOwnProperty("channel_id")) - if (!$util.isString(message.channel_id)) - return "channel_id: string expected"; - if (message.relayer != null && message.hasOwnProperty("relayer")) - if (!$util.isString(message.relayer)) - return "relayer: string expected"; - if (message.counterparty_payee != null && message.hasOwnProperty("counterparty_payee")) - if (!$util.isString(message.counterparty_payee)) - return "counterparty_payee: string expected"; - return null; - }; + /** + * Creates a plain object from an Any message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.Any + * @static + * @param {google.protobuf.Any} message Any + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Any.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.type_url = ""; + if (options.bytes === String) + object.value = ""; + else { + object.value = []; + if (options.bytes !== Array) + object.value = $util.newBuffer(object.value); + } + } + if (message.type_url != null && message.hasOwnProperty("type_url")) + object.type_url = message.type_url; + if (message.value != null && message.hasOwnProperty("value")) + object.value = options.bytes === String ? $util.base64.encode(message.value, 0, message.value.length) : options.bytes === Array ? Array.prototype.slice.call(message.value) : message.value; + return object; + }; - /** - * Creates a MsgRegisterCounterpartyPayee message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof ibc.applications.fee.v1.MsgRegisterCounterpartyPayee - * @static - * @param {Object.} object Plain object - * @returns {ibc.applications.fee.v1.MsgRegisterCounterpartyPayee} MsgRegisterCounterpartyPayee - */ - MsgRegisterCounterpartyPayee.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.fee.v1.MsgRegisterCounterpartyPayee) - return object; - var message = new $root.ibc.applications.fee.v1.MsgRegisterCounterpartyPayee(); - if (object.port_id != null) - message.port_id = String(object.port_id); - if (object.channel_id != null) - message.channel_id = String(object.channel_id); - if (object.relayer != null) - message.relayer = String(object.relayer); - if (object.counterparty_payee != null) - message.counterparty_payee = String(object.counterparty_payee); - return message; - }; + /** + * Converts this Any to JSON. + * @function toJSON + * @memberof google.protobuf.Any + * @instance + * @returns {Object.} JSON object + */ + Any.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Creates a plain object from a MsgRegisterCounterpartyPayee message. Also converts values to other types if specified. - * @function toObject - * @memberof ibc.applications.fee.v1.MsgRegisterCounterpartyPayee - * @static - * @param {ibc.applications.fee.v1.MsgRegisterCounterpartyPayee} message MsgRegisterCounterpartyPayee - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - MsgRegisterCounterpartyPayee.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.port_id = ""; - object.channel_id = ""; - object.relayer = ""; - object.counterparty_payee = ""; - } - if (message.port_id != null && message.hasOwnProperty("port_id")) - object.port_id = message.port_id; - if (message.channel_id != null && message.hasOwnProperty("channel_id")) - object.channel_id = message.channel_id; - if (message.relayer != null && message.hasOwnProperty("relayer")) - object.relayer = message.relayer; - if (message.counterparty_payee != null && message.hasOwnProperty("counterparty_payee")) - object.counterparty_payee = message.counterparty_payee; - return object; - }; + return Any; + })(); - /** - * Converts this MsgRegisterCounterpartyPayee to JSON. - * @function toJSON - * @memberof ibc.applications.fee.v1.MsgRegisterCounterpartyPayee - * @instance - * @returns {Object.} JSON object - */ - MsgRegisterCounterpartyPayee.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + protobuf.Timestamp = (function() { - return MsgRegisterCounterpartyPayee; - })(); + /** + * Properties of a Timestamp. + * @memberof google.protobuf + * @interface ITimestamp + * @property {Long|null} [seconds] Timestamp seconds + * @property {number|null} [nanos] Timestamp nanos + */ - v1.MsgRegisterCounterpartyPayeeResponse = (function() { + /** + * Constructs a new Timestamp. + * @memberof google.protobuf + * @classdesc Represents a Timestamp. + * @implements ITimestamp + * @constructor + * @param {google.protobuf.ITimestamp=} [properties] Properties to set + */ + function Timestamp(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Properties of a MsgRegisterCounterpartyPayeeResponse. - * @memberof ibc.applications.fee.v1 - * @interface IMsgRegisterCounterpartyPayeeResponse - */ + /** + * Timestamp seconds. + * @member {Long} seconds + * @memberof google.protobuf.Timestamp + * @instance + */ + Timestamp.prototype.seconds = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - /** - * Constructs a new MsgRegisterCounterpartyPayeeResponse. - * @memberof ibc.applications.fee.v1 - * @classdesc Represents a MsgRegisterCounterpartyPayeeResponse. - * @implements IMsgRegisterCounterpartyPayeeResponse - * @constructor - * @param {ibc.applications.fee.v1.IMsgRegisterCounterpartyPayeeResponse=} [properties] Properties to set - */ - function MsgRegisterCounterpartyPayeeResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + /** + * Timestamp nanos. + * @member {number} nanos + * @memberof google.protobuf.Timestamp + * @instance + */ + Timestamp.prototype.nanos = 0; + + /** + * Encodes the specified Timestamp message. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages. + * @function encode + * @memberof google.protobuf.Timestamp + * @static + * @param {google.protobuf.ITimestamp} message Timestamp message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Timestamp.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.seconds != null && Object.hasOwnProperty.call(message, "seconds")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.seconds); + if (message.nanos != null && Object.hasOwnProperty.call(message, "nanos")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.nanos); + return writer; + }; + + /** + * Encodes the specified Timestamp message, length delimited. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.Timestamp + * @static + * @param {google.protobuf.ITimestamp} message Timestamp message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Timestamp.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Timestamp message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.Timestamp + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.Timestamp} Timestamp + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Timestamp.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Timestamp(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.seconds = reader.int64(); + break; + case 2: + message.nanos = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; } + } + return message; + }; - /** - * Encodes the specified MsgRegisterCounterpartyPayeeResponse message. Does not implicitly {@link ibc.applications.fee.v1.MsgRegisterCounterpartyPayeeResponse.verify|verify} messages. - * @function encode - * @memberof ibc.applications.fee.v1.MsgRegisterCounterpartyPayeeResponse - * @static - * @param {ibc.applications.fee.v1.IMsgRegisterCounterpartyPayeeResponse} message MsgRegisterCounterpartyPayeeResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MsgRegisterCounterpartyPayeeResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; + /** + * Decodes a Timestamp message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.Timestamp + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.Timestamp} Timestamp + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Timestamp.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Encodes the specified MsgRegisterCounterpartyPayeeResponse message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.MsgRegisterCounterpartyPayeeResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof ibc.applications.fee.v1.MsgRegisterCounterpartyPayeeResponse - * @static - * @param {ibc.applications.fee.v1.IMsgRegisterCounterpartyPayeeResponse} message MsgRegisterCounterpartyPayeeResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MsgRegisterCounterpartyPayeeResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Verifies a Timestamp message. + * @function verify + * @memberof google.protobuf.Timestamp + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Timestamp.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.seconds != null && message.hasOwnProperty("seconds")) + if (!$util.isInteger(message.seconds) && !(message.seconds && $util.isInteger(message.seconds.low) && $util.isInteger(message.seconds.high))) + return "seconds: integer|Long expected"; + if (message.nanos != null && message.hasOwnProperty("nanos")) + if (!$util.isInteger(message.nanos)) + return "nanos: integer expected"; + return null; + }; - /** - * Decodes a MsgRegisterCounterpartyPayeeResponse message from the specified reader or buffer. - * @function decode - * @memberof ibc.applications.fee.v1.MsgRegisterCounterpartyPayeeResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.fee.v1.MsgRegisterCounterpartyPayeeResponse} MsgRegisterCounterpartyPayeeResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MsgRegisterCounterpartyPayeeResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.MsgRegisterCounterpartyPayeeResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Creates a Timestamp message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.Timestamp + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.Timestamp} Timestamp + */ + Timestamp.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.Timestamp) + return object; + var message = new $root.google.protobuf.Timestamp(); + if (object.seconds != null) + if ($util.Long) + (message.seconds = $util.Long.fromValue(object.seconds)).unsigned = false; + else if (typeof object.seconds === "string") + message.seconds = parseInt(object.seconds, 10); + else if (typeof object.seconds === "number") + message.seconds = object.seconds; + else if (typeof object.seconds === "object") + message.seconds = new $util.LongBits(object.seconds.low >>> 0, object.seconds.high >>> 0).toNumber(); + if (object.nanos != null) + message.nanos = object.nanos | 0; + return message; + }; - /** - * Decodes a MsgRegisterCounterpartyPayeeResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ibc.applications.fee.v1.MsgRegisterCounterpartyPayeeResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.fee.v1.MsgRegisterCounterpartyPayeeResponse} MsgRegisterCounterpartyPayeeResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MsgRegisterCounterpartyPayeeResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Creates a plain object from a Timestamp message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.Timestamp + * @static + * @param {google.protobuf.Timestamp} message Timestamp + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Timestamp.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.seconds = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.seconds = options.longs === String ? "0" : 0; + object.nanos = 0; + } + if (message.seconds != null && message.hasOwnProperty("seconds")) + if (typeof message.seconds === "number") + object.seconds = options.longs === String ? String(message.seconds) : message.seconds; + else + object.seconds = options.longs === String ? $util.Long.prototype.toString.call(message.seconds) : options.longs === Number ? new $util.LongBits(message.seconds.low >>> 0, message.seconds.high >>> 0).toNumber() : message.seconds; + if (message.nanos != null && message.hasOwnProperty("nanos")) + object.nanos = message.nanos; + return object; + }; - /** - * Verifies a MsgRegisterCounterpartyPayeeResponse message. - * @function verify - * @memberof ibc.applications.fee.v1.MsgRegisterCounterpartyPayeeResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - MsgRegisterCounterpartyPayeeResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; + /** + * Converts this Timestamp to JSON. + * @function toJSON + * @memberof google.protobuf.Timestamp + * @instance + * @returns {Object.} JSON object + */ + Timestamp.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Creates a MsgRegisterCounterpartyPayeeResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof ibc.applications.fee.v1.MsgRegisterCounterpartyPayeeResponse - * @static - * @param {Object.} object Plain object - * @returns {ibc.applications.fee.v1.MsgRegisterCounterpartyPayeeResponse} MsgRegisterCounterpartyPayeeResponse - */ - MsgRegisterCounterpartyPayeeResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.fee.v1.MsgRegisterCounterpartyPayeeResponse) - return object; - return new $root.ibc.applications.fee.v1.MsgRegisterCounterpartyPayeeResponse(); - }; + return Timestamp; + })(); - /** - * Creates a plain object from a MsgRegisterCounterpartyPayeeResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof ibc.applications.fee.v1.MsgRegisterCounterpartyPayeeResponse - * @static - * @param {ibc.applications.fee.v1.MsgRegisterCounterpartyPayeeResponse} message MsgRegisterCounterpartyPayeeResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - MsgRegisterCounterpartyPayeeResponse.toObject = function toObject() { - return {}; - }; + protobuf.Duration = (function() { - /** - * Converts this MsgRegisterCounterpartyPayeeResponse to JSON. - * @function toJSON - * @memberof ibc.applications.fee.v1.MsgRegisterCounterpartyPayeeResponse - * @instance - * @returns {Object.} JSON object - */ - MsgRegisterCounterpartyPayeeResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Properties of a Duration. + * @memberof google.protobuf + * @interface IDuration + * @property {Long|null} [seconds] Duration seconds + * @property {number|null} [nanos] Duration nanos + */ - return MsgRegisterCounterpartyPayeeResponse; - })(); + /** + * Constructs a new Duration. + * @memberof google.protobuf + * @classdesc Represents a Duration. + * @implements IDuration + * @constructor + * @param {google.protobuf.IDuration=} [properties] Properties to set + */ + function Duration(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - v1.MsgPayPacketFee = (function() { + /** + * Duration seconds. + * @member {Long} seconds + * @memberof google.protobuf.Duration + * @instance + */ + Duration.prototype.seconds = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - /** - * Properties of a MsgPayPacketFee. - * @memberof ibc.applications.fee.v1 - * @interface IMsgPayPacketFee - * @property {ibc.applications.fee.v1.IFee|null} [fee] MsgPayPacketFee fee - * @property {string|null} [source_port_id] MsgPayPacketFee source_port_id - * @property {string|null} [source_channel_id] MsgPayPacketFee source_channel_id - * @property {string|null} [signer] MsgPayPacketFee signer - * @property {Array.|null} [relayers] MsgPayPacketFee relayers - */ + /** + * Duration nanos. + * @member {number} nanos + * @memberof google.protobuf.Duration + * @instance + */ + Duration.prototype.nanos = 0; - /** - * Constructs a new MsgPayPacketFee. - * @memberof ibc.applications.fee.v1 - * @classdesc Represents a MsgPayPacketFee. - * @implements IMsgPayPacketFee - * @constructor - * @param {ibc.applications.fee.v1.IMsgPayPacketFee=} [properties] Properties to set - */ - function MsgPayPacketFee(properties) { - this.relayers = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + /** + * Encodes the specified Duration message. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages. + * @function encode + * @memberof google.protobuf.Duration + * @static + * @param {google.protobuf.IDuration} message Duration message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Duration.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.seconds != null && Object.hasOwnProperty.call(message, "seconds")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.seconds); + if (message.nanos != null && Object.hasOwnProperty.call(message, "nanos")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.nanos); + return writer; + }; + + /** + * Encodes the specified Duration message, length delimited. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.Duration + * @static + * @param {google.protobuf.IDuration} message Duration message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Duration.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Duration message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.Duration + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.Duration} Duration + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Duration.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Duration(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.seconds = reader.int64(); + break; + case 2: + message.nanos = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; } + } + return message; + }; - /** - * MsgPayPacketFee fee. - * @member {ibc.applications.fee.v1.IFee|null|undefined} fee - * @memberof ibc.applications.fee.v1.MsgPayPacketFee - * @instance - */ - MsgPayPacketFee.prototype.fee = null; + /** + * Decodes a Duration message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.Duration + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.Duration} Duration + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Duration.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Duration message. + * @function verify + * @memberof google.protobuf.Duration + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Duration.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.seconds != null && message.hasOwnProperty("seconds")) + if (!$util.isInteger(message.seconds) && !(message.seconds && $util.isInteger(message.seconds.low) && $util.isInteger(message.seconds.high))) + return "seconds: integer|Long expected"; + if (message.nanos != null && message.hasOwnProperty("nanos")) + if (!$util.isInteger(message.nanos)) + return "nanos: integer expected"; + return null; + }; - /** - * MsgPayPacketFee source_port_id. - * @member {string} source_port_id - * @memberof ibc.applications.fee.v1.MsgPayPacketFee - * @instance - */ - MsgPayPacketFee.prototype.source_port_id = ""; + /** + * Creates a Duration message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.Duration + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.Duration} Duration + */ + Duration.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.Duration) + return object; + var message = new $root.google.protobuf.Duration(); + if (object.seconds != null) + if ($util.Long) + (message.seconds = $util.Long.fromValue(object.seconds)).unsigned = false; + else if (typeof object.seconds === "string") + message.seconds = parseInt(object.seconds, 10); + else if (typeof object.seconds === "number") + message.seconds = object.seconds; + else if (typeof object.seconds === "object") + message.seconds = new $util.LongBits(object.seconds.low >>> 0, object.seconds.high >>> 0).toNumber(); + if (object.nanos != null) + message.nanos = object.nanos | 0; + return message; + }; - /** - * MsgPayPacketFee source_channel_id. - * @member {string} source_channel_id - * @memberof ibc.applications.fee.v1.MsgPayPacketFee - * @instance - */ - MsgPayPacketFee.prototype.source_channel_id = ""; + /** + * Creates a plain object from a Duration message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.Duration + * @static + * @param {google.protobuf.Duration} message Duration + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Duration.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.seconds = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.seconds = options.longs === String ? "0" : 0; + object.nanos = 0; + } + if (message.seconds != null && message.hasOwnProperty("seconds")) + if (typeof message.seconds === "number") + object.seconds = options.longs === String ? String(message.seconds) : message.seconds; + else + object.seconds = options.longs === String ? $util.Long.prototype.toString.call(message.seconds) : options.longs === Number ? new $util.LongBits(message.seconds.low >>> 0, message.seconds.high >>> 0).toNumber() : message.seconds; + if (message.nanos != null && message.hasOwnProperty("nanos")) + object.nanos = message.nanos; + return object; + }; - /** - * MsgPayPacketFee signer. - * @member {string} signer - * @memberof ibc.applications.fee.v1.MsgPayPacketFee - * @instance - */ - MsgPayPacketFee.prototype.signer = ""; + /** + * Converts this Duration to JSON. + * @function toJSON + * @memberof google.protobuf.Duration + * @instance + * @returns {Object.} JSON object + */ + Duration.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * MsgPayPacketFee relayers. - * @member {Array.} relayers - * @memberof ibc.applications.fee.v1.MsgPayPacketFee - * @instance - */ - MsgPayPacketFee.prototype.relayers = $util.emptyArray; + return Duration; + })(); - /** - * Encodes the specified MsgPayPacketFee message. Does not implicitly {@link ibc.applications.fee.v1.MsgPayPacketFee.verify|verify} messages. - * @function encode - * @memberof ibc.applications.fee.v1.MsgPayPacketFee - * @static - * @param {ibc.applications.fee.v1.IMsgPayPacketFee} message MsgPayPacketFee message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MsgPayPacketFee.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.fee != null && Object.hasOwnProperty.call(message, "fee")) - $root.ibc.applications.fee.v1.Fee.encode(message.fee, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.source_port_id != null && Object.hasOwnProperty.call(message, "source_port_id")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.source_port_id); - if (message.source_channel_id != null && Object.hasOwnProperty.call(message, "source_channel_id")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.source_channel_id); - if (message.signer != null && Object.hasOwnProperty.call(message, "signer")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.signer); - if (message.relayers != null && message.relayers.length) - for (var i = 0; i < message.relayers.length; ++i) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.relayers[i]); - return writer; - }; + return protobuf; + })(); - /** - * Encodes the specified MsgPayPacketFee message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.MsgPayPacketFee.verify|verify} messages. - * @function encodeDelimited - * @memberof ibc.applications.fee.v1.MsgPayPacketFee - * @static - * @param {ibc.applications.fee.v1.IMsgPayPacketFee} message MsgPayPacketFee message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MsgPayPacketFee.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + google.api = (function() { - /** - * Decodes a MsgPayPacketFee message from the specified reader or buffer. - * @function decode - * @memberof ibc.applications.fee.v1.MsgPayPacketFee - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.fee.v1.MsgPayPacketFee} MsgPayPacketFee - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MsgPayPacketFee.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.MsgPayPacketFee(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.fee = $root.ibc.applications.fee.v1.Fee.decode(reader, reader.uint32()); - break; - case 2: - message.source_port_id = reader.string(); - break; - case 3: - message.source_channel_id = reader.string(); - break; - case 4: - message.signer = reader.string(); - break; - case 5: - if (!(message.relayers && message.relayers.length)) - message.relayers = []; - message.relayers.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Namespace api. + * @memberof google + * @namespace + */ + var api = {}; - /** - * Decodes a MsgPayPacketFee message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ibc.applications.fee.v1.MsgPayPacketFee - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.fee.v1.MsgPayPacketFee} MsgPayPacketFee - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MsgPayPacketFee.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + api.Http = (function() { - /** - * Verifies a MsgPayPacketFee message. - * @function verify - * @memberof ibc.applications.fee.v1.MsgPayPacketFee - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - MsgPayPacketFee.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.fee != null && message.hasOwnProperty("fee")) { - var error = $root.ibc.applications.fee.v1.Fee.verify(message.fee); - if (error) - return "fee." + error; - } - if (message.source_port_id != null && message.hasOwnProperty("source_port_id")) - if (!$util.isString(message.source_port_id)) - return "source_port_id: string expected"; - if (message.source_channel_id != null && message.hasOwnProperty("source_channel_id")) - if (!$util.isString(message.source_channel_id)) - return "source_channel_id: string expected"; - if (message.signer != null && message.hasOwnProperty("signer")) - if (!$util.isString(message.signer)) - return "signer: string expected"; - if (message.relayers != null && message.hasOwnProperty("relayers")) { - if (!Array.isArray(message.relayers)) - return "relayers: array expected"; - for (var i = 0; i < message.relayers.length; ++i) - if (!$util.isString(message.relayers[i])) - return "relayers: string[] expected"; - } - return null; - }; + /** + * Properties of a Http. + * @memberof google.api + * @interface IHttp + * @property {Array.|null} [rules] Http rules + * @property {boolean|null} [fully_decode_reserved_expansion] Http fully_decode_reserved_expansion + */ - /** - * Creates a MsgPayPacketFee message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof ibc.applications.fee.v1.MsgPayPacketFee - * @static - * @param {Object.} object Plain object - * @returns {ibc.applications.fee.v1.MsgPayPacketFee} MsgPayPacketFee - */ - MsgPayPacketFee.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.fee.v1.MsgPayPacketFee) - return object; - var message = new $root.ibc.applications.fee.v1.MsgPayPacketFee(); - if (object.fee != null) { - if (typeof object.fee !== "object") - throw TypeError(".ibc.applications.fee.v1.MsgPayPacketFee.fee: object expected"); - message.fee = $root.ibc.applications.fee.v1.Fee.fromObject(object.fee); - } - if (object.source_port_id != null) - message.source_port_id = String(object.source_port_id); - if (object.source_channel_id != null) - message.source_channel_id = String(object.source_channel_id); - if (object.signer != null) - message.signer = String(object.signer); - if (object.relayers) { - if (!Array.isArray(object.relayers)) - throw TypeError(".ibc.applications.fee.v1.MsgPayPacketFee.relayers: array expected"); - message.relayers = []; - for (var i = 0; i < object.relayers.length; ++i) - message.relayers[i] = String(object.relayers[i]); - } - return message; - }; + /** + * Constructs a new Http. + * @memberof google.api + * @classdesc Represents a Http. + * @implements IHttp + * @constructor + * @param {google.api.IHttp=} [properties] Properties to set + */ + function Http(properties) { + this.rules = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Creates a plain object from a MsgPayPacketFee message. Also converts values to other types if specified. - * @function toObject - * @memberof ibc.applications.fee.v1.MsgPayPacketFee - * @static - * @param {ibc.applications.fee.v1.MsgPayPacketFee} message MsgPayPacketFee - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - MsgPayPacketFee.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.relayers = []; - if (options.defaults) { - object.fee = null; - object.source_port_id = ""; - object.source_channel_id = ""; - object.signer = ""; - } - if (message.fee != null && message.hasOwnProperty("fee")) - object.fee = $root.ibc.applications.fee.v1.Fee.toObject(message.fee, options); - if (message.source_port_id != null && message.hasOwnProperty("source_port_id")) - object.source_port_id = message.source_port_id; - if (message.source_channel_id != null && message.hasOwnProperty("source_channel_id")) - object.source_channel_id = message.source_channel_id; - if (message.signer != null && message.hasOwnProperty("signer")) - object.signer = message.signer; - if (message.relayers && message.relayers.length) { - object.relayers = []; - for (var j = 0; j < message.relayers.length; ++j) - object.relayers[j] = message.relayers[j]; - } - return object; - }; + /** + * Http rules. + * @member {Array.} rules + * @memberof google.api.Http + * @instance + */ + Http.prototype.rules = $util.emptyArray; - /** - * Converts this MsgPayPacketFee to JSON. - * @function toJSON - * @memberof ibc.applications.fee.v1.MsgPayPacketFee - * @instance - * @returns {Object.} JSON object - */ - MsgPayPacketFee.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Http fully_decode_reserved_expansion. + * @member {boolean} fully_decode_reserved_expansion + * @memberof google.api.Http + * @instance + */ + Http.prototype.fully_decode_reserved_expansion = false; - return MsgPayPacketFee; - })(); + /** + * Encodes the specified Http message. Does not implicitly {@link google.api.Http.verify|verify} messages. + * @function encode + * @memberof google.api.Http + * @static + * @param {google.api.IHttp} message Http message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Http.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.rules != null && message.rules.length) + for (var i = 0; i < message.rules.length; ++i) + $root.google.api.HttpRule.encode(message.rules[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.fully_decode_reserved_expansion != null && Object.hasOwnProperty.call(message, "fully_decode_reserved_expansion")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.fully_decode_reserved_expansion); + return writer; + }; - v1.MsgPayPacketFeeResponse = (function() { + /** + * Encodes the specified Http message, length delimited. Does not implicitly {@link google.api.Http.verify|verify} messages. + * @function encodeDelimited + * @memberof google.api.Http + * @static + * @param {google.api.IHttp} message Http message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Http.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Properties of a MsgPayPacketFeeResponse. - * @memberof ibc.applications.fee.v1 - * @interface IMsgPayPacketFeeResponse - */ + /** + * Decodes a Http message from the specified reader or buffer. + * @function decode + * @memberof google.api.Http + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.api.Http} Http + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Http.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.Http(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.rules && message.rules.length)) + message.rules = []; + message.rules.push($root.google.api.HttpRule.decode(reader, reader.uint32())); + break; + case 2: + message.fully_decode_reserved_expansion = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Constructs a new MsgPayPacketFeeResponse. - * @memberof ibc.applications.fee.v1 - * @classdesc Represents a MsgPayPacketFeeResponse. - * @implements IMsgPayPacketFeeResponse - * @constructor - * @param {ibc.applications.fee.v1.IMsgPayPacketFeeResponse=} [properties] Properties to set - */ - function MsgPayPacketFeeResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + /** + * Decodes a Http message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.api.Http + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.api.Http} Http + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Http.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Http message. + * @function verify + * @memberof google.api.Http + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Http.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.rules != null && message.hasOwnProperty("rules")) { + if (!Array.isArray(message.rules)) + return "rules: array expected"; + for (var i = 0; i < message.rules.length; ++i) { + var error = $root.google.api.HttpRule.verify(message.rules[i]); + if (error) + return "rules." + error; } + } + if (message.fully_decode_reserved_expansion != null && message.hasOwnProperty("fully_decode_reserved_expansion")) + if (typeof message.fully_decode_reserved_expansion !== "boolean") + return "fully_decode_reserved_expansion: boolean expected"; + return null; + }; - /** - * Encodes the specified MsgPayPacketFeeResponse message. Does not implicitly {@link ibc.applications.fee.v1.MsgPayPacketFeeResponse.verify|verify} messages. - * @function encode - * @memberof ibc.applications.fee.v1.MsgPayPacketFeeResponse - * @static - * @param {ibc.applications.fee.v1.IMsgPayPacketFeeResponse} message MsgPayPacketFeeResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MsgPayPacketFeeResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; + /** + * Creates a Http message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.api.Http + * @static + * @param {Object.} object Plain object + * @returns {google.api.Http} Http + */ + Http.fromObject = function fromObject(object) { + if (object instanceof $root.google.api.Http) + return object; + var message = new $root.google.api.Http(); + if (object.rules) { + if (!Array.isArray(object.rules)) + throw TypeError(".google.api.Http.rules: array expected"); + message.rules = []; + for (var i = 0; i < object.rules.length; ++i) { + if (typeof object.rules[i] !== "object") + throw TypeError(".google.api.Http.rules: object expected"); + message.rules[i] = $root.google.api.HttpRule.fromObject(object.rules[i]); + } + } + if (object.fully_decode_reserved_expansion != null) + message.fully_decode_reserved_expansion = Boolean(object.fully_decode_reserved_expansion); + return message; + }; - /** - * Encodes the specified MsgPayPacketFeeResponse message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.MsgPayPacketFeeResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof ibc.applications.fee.v1.MsgPayPacketFeeResponse - * @static - * @param {ibc.applications.fee.v1.IMsgPayPacketFeeResponse} message MsgPayPacketFeeResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MsgPayPacketFeeResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Creates a plain object from a Http message. Also converts values to other types if specified. + * @function toObject + * @memberof google.api.Http + * @static + * @param {google.api.Http} message Http + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Http.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.rules = []; + if (options.defaults) + object.fully_decode_reserved_expansion = false; + if (message.rules && message.rules.length) { + object.rules = []; + for (var j = 0; j < message.rules.length; ++j) + object.rules[j] = $root.google.api.HttpRule.toObject(message.rules[j], options); + } + if (message.fully_decode_reserved_expansion != null && message.hasOwnProperty("fully_decode_reserved_expansion")) + object.fully_decode_reserved_expansion = message.fully_decode_reserved_expansion; + return object; + }; - /** - * Decodes a MsgPayPacketFeeResponse message from the specified reader or buffer. - * @function decode - * @memberof ibc.applications.fee.v1.MsgPayPacketFeeResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.fee.v1.MsgPayPacketFeeResponse} MsgPayPacketFeeResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MsgPayPacketFeeResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.MsgPayPacketFeeResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Converts this Http to JSON. + * @function toJSON + * @memberof google.api.Http + * @instance + * @returns {Object.} JSON object + */ + Http.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Decodes a MsgPayPacketFeeResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ibc.applications.fee.v1.MsgPayPacketFeeResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.fee.v1.MsgPayPacketFeeResponse} MsgPayPacketFeeResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MsgPayPacketFeeResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + return Http; + })(); - /** - * Verifies a MsgPayPacketFeeResponse message. - * @function verify - * @memberof ibc.applications.fee.v1.MsgPayPacketFeeResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - MsgPayPacketFeeResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; + api.HttpRule = (function() { - /** - * Creates a MsgPayPacketFeeResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof ibc.applications.fee.v1.MsgPayPacketFeeResponse - * @static - * @param {Object.} object Plain object - * @returns {ibc.applications.fee.v1.MsgPayPacketFeeResponse} MsgPayPacketFeeResponse - */ - MsgPayPacketFeeResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.fee.v1.MsgPayPacketFeeResponse) - return object; - return new $root.ibc.applications.fee.v1.MsgPayPacketFeeResponse(); - }; + /** + * Properties of a HttpRule. + * @memberof google.api + * @interface IHttpRule + * @property {string|null} [selector] HttpRule selector + * @property {string|null} [get] HttpRule get + * @property {string|null} [put] HttpRule put + * @property {string|null} [post] HttpRule post + * @property {string|null} ["delete"] HttpRule delete + * @property {string|null} [patch] HttpRule patch + * @property {google.api.ICustomHttpPattern|null} [custom] HttpRule custom + * @property {string|null} [body] HttpRule body + * @property {string|null} [response_body] HttpRule response_body + * @property {Array.|null} [additional_bindings] HttpRule additional_bindings + */ - /** - * Creates a plain object from a MsgPayPacketFeeResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof ibc.applications.fee.v1.MsgPayPacketFeeResponse - * @static - * @param {ibc.applications.fee.v1.MsgPayPacketFeeResponse} message MsgPayPacketFeeResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - MsgPayPacketFeeResponse.toObject = function toObject() { - return {}; - }; + /** + * Constructs a new HttpRule. + * @memberof google.api + * @classdesc Represents a HttpRule. + * @implements IHttpRule + * @constructor + * @param {google.api.IHttpRule=} [properties] Properties to set + */ + function HttpRule(properties) { + this.additional_bindings = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Converts this MsgPayPacketFeeResponse to JSON. - * @function toJSON - * @memberof ibc.applications.fee.v1.MsgPayPacketFeeResponse - * @instance - * @returns {Object.} JSON object - */ - MsgPayPacketFeeResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * HttpRule selector. + * @member {string} selector + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.selector = ""; - return MsgPayPacketFeeResponse; - })(); + /** + * HttpRule get. + * @member {string|null|undefined} get + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.get = null; - v1.MsgPayPacketFeeAsync = (function() { + /** + * HttpRule put. + * @member {string|null|undefined} put + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.put = null; - /** - * Properties of a MsgPayPacketFeeAsync. - * @memberof ibc.applications.fee.v1 - * @interface IMsgPayPacketFeeAsync - * @property {ibc.core.channel.v1.IPacketId|null} [packet_id] MsgPayPacketFeeAsync packet_id - * @property {ibc.applications.fee.v1.IPacketFee|null} [packet_fee] MsgPayPacketFeeAsync packet_fee - */ + /** + * HttpRule post. + * @member {string|null|undefined} post + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.post = null; - /** - * Constructs a new MsgPayPacketFeeAsync. - * @memberof ibc.applications.fee.v1 - * @classdesc Represents a MsgPayPacketFeeAsync. - * @implements IMsgPayPacketFeeAsync - * @constructor - * @param {ibc.applications.fee.v1.IMsgPayPacketFeeAsync=} [properties] Properties to set - */ - function MsgPayPacketFeeAsync(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * HttpRule delete. + * @member {string|null|undefined} delete + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype["delete"] = null; - /** - * MsgPayPacketFeeAsync packet_id. - * @member {ibc.core.channel.v1.IPacketId|null|undefined} packet_id - * @memberof ibc.applications.fee.v1.MsgPayPacketFeeAsync - * @instance - */ - MsgPayPacketFeeAsync.prototype.packet_id = null; + /** + * HttpRule patch. + * @member {string|null|undefined} patch + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.patch = null; - /** - * MsgPayPacketFeeAsync packet_fee. - * @member {ibc.applications.fee.v1.IPacketFee|null|undefined} packet_fee - * @memberof ibc.applications.fee.v1.MsgPayPacketFeeAsync - * @instance - */ - MsgPayPacketFeeAsync.prototype.packet_fee = null; + /** + * HttpRule custom. + * @member {google.api.ICustomHttpPattern|null|undefined} custom + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.custom = null; - /** - * Encodes the specified MsgPayPacketFeeAsync message. Does not implicitly {@link ibc.applications.fee.v1.MsgPayPacketFeeAsync.verify|verify} messages. - * @function encode - * @memberof ibc.applications.fee.v1.MsgPayPacketFeeAsync - * @static - * @param {ibc.applications.fee.v1.IMsgPayPacketFeeAsync} message MsgPayPacketFeeAsync message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MsgPayPacketFeeAsync.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.packet_id != null && Object.hasOwnProperty.call(message, "packet_id")) - $root.ibc.core.channel.v1.PacketId.encode(message.packet_id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.packet_fee != null && Object.hasOwnProperty.call(message, "packet_fee")) - $root.ibc.applications.fee.v1.PacketFee.encode(message.packet_fee, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; + /** + * HttpRule body. + * @member {string} body + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.body = ""; - /** - * Encodes the specified MsgPayPacketFeeAsync message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.MsgPayPacketFeeAsync.verify|verify} messages. - * @function encodeDelimited - * @memberof ibc.applications.fee.v1.MsgPayPacketFeeAsync - * @static - * @param {ibc.applications.fee.v1.IMsgPayPacketFeeAsync} message MsgPayPacketFeeAsync message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MsgPayPacketFeeAsync.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * HttpRule response_body. + * @member {string} response_body + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.response_body = ""; - /** - * Decodes a MsgPayPacketFeeAsync message from the specified reader or buffer. - * @function decode - * @memberof ibc.applications.fee.v1.MsgPayPacketFeeAsync - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.fee.v1.MsgPayPacketFeeAsync} MsgPayPacketFeeAsync - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MsgPayPacketFeeAsync.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.MsgPayPacketFeeAsync(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.packet_id = $root.ibc.core.channel.v1.PacketId.decode(reader, reader.uint32()); - break; - case 2: - message.packet_fee = $root.ibc.applications.fee.v1.PacketFee.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * HttpRule additional_bindings. + * @member {Array.} additional_bindings + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.additional_bindings = $util.emptyArray; - /** - * Decodes a MsgPayPacketFeeAsync message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ibc.applications.fee.v1.MsgPayPacketFeeAsync - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.fee.v1.MsgPayPacketFeeAsync} MsgPayPacketFeeAsync - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MsgPayPacketFeeAsync.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + // OneOf field names bound to virtual getters and setters + var $oneOfFields; - /** - * Verifies a MsgPayPacketFeeAsync message. - * @function verify - * @memberof ibc.applications.fee.v1.MsgPayPacketFeeAsync - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - MsgPayPacketFeeAsync.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.packet_id != null && message.hasOwnProperty("packet_id")) { - var error = $root.ibc.core.channel.v1.PacketId.verify(message.packet_id); - if (error) - return "packet_id." + error; - } - if (message.packet_fee != null && message.hasOwnProperty("packet_fee")) { - var error = $root.ibc.applications.fee.v1.PacketFee.verify(message.packet_fee); - if (error) - return "packet_fee." + error; - } - return null; - }; + /** + * HttpRule pattern. + * @member {"get"|"put"|"post"|"delete"|"patch"|"custom"|undefined} pattern + * @memberof google.api.HttpRule + * @instance + */ + Object.defineProperty(HttpRule.prototype, "pattern", { + get: $util.oneOfGetter($oneOfFields = ["get", "put", "post", "delete", "patch", "custom"]), + set: $util.oneOfSetter($oneOfFields) + }); - /** - * Creates a MsgPayPacketFeeAsync message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof ibc.applications.fee.v1.MsgPayPacketFeeAsync - * @static - * @param {Object.} object Plain object - * @returns {ibc.applications.fee.v1.MsgPayPacketFeeAsync} MsgPayPacketFeeAsync - */ - MsgPayPacketFeeAsync.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.fee.v1.MsgPayPacketFeeAsync) - return object; - var message = new $root.ibc.applications.fee.v1.MsgPayPacketFeeAsync(); - if (object.packet_id != null) { - if (typeof object.packet_id !== "object") - throw TypeError(".ibc.applications.fee.v1.MsgPayPacketFeeAsync.packet_id: object expected"); - message.packet_id = $root.ibc.core.channel.v1.PacketId.fromObject(object.packet_id); - } - if (object.packet_fee != null) { - if (typeof object.packet_fee !== "object") - throw TypeError(".ibc.applications.fee.v1.MsgPayPacketFeeAsync.packet_fee: object expected"); - message.packet_fee = $root.ibc.applications.fee.v1.PacketFee.fromObject(object.packet_fee); - } - return message; - }; + /** + * Encodes the specified HttpRule message. Does not implicitly {@link google.api.HttpRule.verify|verify} messages. + * @function encode + * @memberof google.api.HttpRule + * @static + * @param {google.api.IHttpRule} message HttpRule message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + HttpRule.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.selector != null && Object.hasOwnProperty.call(message, "selector")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.selector); + if (message.get != null && Object.hasOwnProperty.call(message, "get")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.get); + if (message.put != null && Object.hasOwnProperty.call(message, "put")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.put); + if (message.post != null && Object.hasOwnProperty.call(message, "post")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.post); + if (message["delete"] != null && Object.hasOwnProperty.call(message, "delete")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message["delete"]); + if (message.patch != null && Object.hasOwnProperty.call(message, "patch")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.patch); + if (message.body != null && Object.hasOwnProperty.call(message, "body")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.body); + if (message.custom != null && Object.hasOwnProperty.call(message, "custom")) + $root.google.api.CustomHttpPattern.encode(message.custom, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.additional_bindings != null && message.additional_bindings.length) + for (var i = 0; i < message.additional_bindings.length; ++i) + $root.google.api.HttpRule.encode(message.additional_bindings[i], writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); + if (message.response_body != null && Object.hasOwnProperty.call(message, "response_body")) + writer.uint32(/* id 12, wireType 2 =*/98).string(message.response_body); + return writer; + }; - /** - * Creates a plain object from a MsgPayPacketFeeAsync message. Also converts values to other types if specified. - * @function toObject - * @memberof ibc.applications.fee.v1.MsgPayPacketFeeAsync - * @static - * @param {ibc.applications.fee.v1.MsgPayPacketFeeAsync} message MsgPayPacketFeeAsync - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - MsgPayPacketFeeAsync.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.packet_id = null; - object.packet_fee = null; - } - if (message.packet_id != null && message.hasOwnProperty("packet_id")) - object.packet_id = $root.ibc.core.channel.v1.PacketId.toObject(message.packet_id, options); - if (message.packet_fee != null && message.hasOwnProperty("packet_fee")) - object.packet_fee = $root.ibc.applications.fee.v1.PacketFee.toObject(message.packet_fee, options); - return object; - }; + /** + * Encodes the specified HttpRule message, length delimited. Does not implicitly {@link google.api.HttpRule.verify|verify} messages. + * @function encodeDelimited + * @memberof google.api.HttpRule + * @static + * @param {google.api.IHttpRule} message HttpRule message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + HttpRule.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a HttpRule message from the specified reader or buffer. + * @function decode + * @memberof google.api.HttpRule + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.api.HttpRule} HttpRule + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + HttpRule.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.HttpRule(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.selector = reader.string(); + break; + case 2: + message.get = reader.string(); + break; + case 3: + message.put = reader.string(); + break; + case 4: + message.post = reader.string(); + break; + case 5: + message["delete"] = reader.string(); + break; + case 6: + message.patch = reader.string(); + break; + case 8: + message.custom = $root.google.api.CustomHttpPattern.decode(reader, reader.uint32()); + break; + case 7: + message.body = reader.string(); + break; + case 12: + message.response_body = reader.string(); + break; + case 11: + if (!(message.additional_bindings && message.additional_bindings.length)) + message.additional_bindings = []; + message.additional_bindings.push($root.google.api.HttpRule.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Converts this MsgPayPacketFeeAsync to JSON. - * @function toJSON - * @memberof ibc.applications.fee.v1.MsgPayPacketFeeAsync - * @instance - * @returns {Object.} JSON object - */ - MsgPayPacketFeeAsync.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Decodes a HttpRule message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.api.HttpRule + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.api.HttpRule} HttpRule + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + HttpRule.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - return MsgPayPacketFeeAsync; - })(); + /** + * Verifies a HttpRule message. + * @function verify + * @memberof google.api.HttpRule + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + HttpRule.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.selector != null && message.hasOwnProperty("selector")) + if (!$util.isString(message.selector)) + return "selector: string expected"; + if (message.get != null && message.hasOwnProperty("get")) { + properties.pattern = 1; + if (!$util.isString(message.get)) + return "get: string expected"; + } + if (message.put != null && message.hasOwnProperty("put")) { + if (properties.pattern === 1) + return "pattern: multiple values"; + properties.pattern = 1; + if (!$util.isString(message.put)) + return "put: string expected"; + } + if (message.post != null && message.hasOwnProperty("post")) { + if (properties.pattern === 1) + return "pattern: multiple values"; + properties.pattern = 1; + if (!$util.isString(message.post)) + return "post: string expected"; + } + if (message["delete"] != null && message.hasOwnProperty("delete")) { + if (properties.pattern === 1) + return "pattern: multiple values"; + properties.pattern = 1; + if (!$util.isString(message["delete"])) + return "delete: string expected"; + } + if (message.patch != null && message.hasOwnProperty("patch")) { + if (properties.pattern === 1) + return "pattern: multiple values"; + properties.pattern = 1; + if (!$util.isString(message.patch)) + return "patch: string expected"; + } + if (message.custom != null && message.hasOwnProperty("custom")) { + if (properties.pattern === 1) + return "pattern: multiple values"; + properties.pattern = 1; + { + var error = $root.google.api.CustomHttpPattern.verify(message.custom); + if (error) + return "custom." + error; + } + } + if (message.body != null && message.hasOwnProperty("body")) + if (!$util.isString(message.body)) + return "body: string expected"; + if (message.response_body != null && message.hasOwnProperty("response_body")) + if (!$util.isString(message.response_body)) + return "response_body: string expected"; + if (message.additional_bindings != null && message.hasOwnProperty("additional_bindings")) { + if (!Array.isArray(message.additional_bindings)) + return "additional_bindings: array expected"; + for (var i = 0; i < message.additional_bindings.length; ++i) { + var error = $root.google.api.HttpRule.verify(message.additional_bindings[i]); + if (error) + return "additional_bindings." + error; + } + } + return null; + }; - v1.MsgPayPacketFeeAsyncResponse = (function() { + /** + * Creates a HttpRule message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.api.HttpRule + * @static + * @param {Object.} object Plain object + * @returns {google.api.HttpRule} HttpRule + */ + HttpRule.fromObject = function fromObject(object) { + if (object instanceof $root.google.api.HttpRule) + return object; + var message = new $root.google.api.HttpRule(); + if (object.selector != null) + message.selector = String(object.selector); + if (object.get != null) + message.get = String(object.get); + if (object.put != null) + message.put = String(object.put); + if (object.post != null) + message.post = String(object.post); + if (object["delete"] != null) + message["delete"] = String(object["delete"]); + if (object.patch != null) + message.patch = String(object.patch); + if (object.custom != null) { + if (typeof object.custom !== "object") + throw TypeError(".google.api.HttpRule.custom: object expected"); + message.custom = $root.google.api.CustomHttpPattern.fromObject(object.custom); + } + if (object.body != null) + message.body = String(object.body); + if (object.response_body != null) + message.response_body = String(object.response_body); + if (object.additional_bindings) { + if (!Array.isArray(object.additional_bindings)) + throw TypeError(".google.api.HttpRule.additional_bindings: array expected"); + message.additional_bindings = []; + for (var i = 0; i < object.additional_bindings.length; ++i) { + if (typeof object.additional_bindings[i] !== "object") + throw TypeError(".google.api.HttpRule.additional_bindings: object expected"); + message.additional_bindings[i] = $root.google.api.HttpRule.fromObject(object.additional_bindings[i]); + } + } + return message; + }; - /** - * Properties of a MsgPayPacketFeeAsyncResponse. - * @memberof ibc.applications.fee.v1 - * @interface IMsgPayPacketFeeAsyncResponse - */ + /** + * Creates a plain object from a HttpRule message. Also converts values to other types if specified. + * @function toObject + * @memberof google.api.HttpRule + * @static + * @param {google.api.HttpRule} message HttpRule + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + HttpRule.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.additional_bindings = []; + if (options.defaults) { + object.selector = ""; + object.body = ""; + object.response_body = ""; + } + if (message.selector != null && message.hasOwnProperty("selector")) + object.selector = message.selector; + if (message.get != null && message.hasOwnProperty("get")) { + object.get = message.get; + if (options.oneofs) + object.pattern = "get"; + } + if (message.put != null && message.hasOwnProperty("put")) { + object.put = message.put; + if (options.oneofs) + object.pattern = "put"; + } + if (message.post != null && message.hasOwnProperty("post")) { + object.post = message.post; + if (options.oneofs) + object.pattern = "post"; + } + if (message["delete"] != null && message.hasOwnProperty("delete")) { + object["delete"] = message["delete"]; + if (options.oneofs) + object.pattern = "delete"; + } + if (message.patch != null && message.hasOwnProperty("patch")) { + object.patch = message.patch; + if (options.oneofs) + object.pattern = "patch"; + } + if (message.body != null && message.hasOwnProperty("body")) + object.body = message.body; + if (message.custom != null && message.hasOwnProperty("custom")) { + object.custom = $root.google.api.CustomHttpPattern.toObject(message.custom, options); + if (options.oneofs) + object.pattern = "custom"; + } + if (message.additional_bindings && message.additional_bindings.length) { + object.additional_bindings = []; + for (var j = 0; j < message.additional_bindings.length; ++j) + object.additional_bindings[j] = $root.google.api.HttpRule.toObject(message.additional_bindings[j], options); + } + if (message.response_body != null && message.hasOwnProperty("response_body")) + object.response_body = message.response_body; + return object; + }; - /** - * Constructs a new MsgPayPacketFeeAsyncResponse. - * @memberof ibc.applications.fee.v1 - * @classdesc Represents a MsgPayPacketFeeAsyncResponse. - * @implements IMsgPayPacketFeeAsyncResponse - * @constructor - * @param {ibc.applications.fee.v1.IMsgPayPacketFeeAsyncResponse=} [properties] Properties to set - */ - function MsgPayPacketFeeAsyncResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Converts this HttpRule to JSON. + * @function toJSON + * @memberof google.api.HttpRule + * @instance + * @returns {Object.} JSON object + */ + HttpRule.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Encodes the specified MsgPayPacketFeeAsyncResponse message. Does not implicitly {@link ibc.applications.fee.v1.MsgPayPacketFeeAsyncResponse.verify|verify} messages. - * @function encode - * @memberof ibc.applications.fee.v1.MsgPayPacketFeeAsyncResponse - * @static - * @param {ibc.applications.fee.v1.IMsgPayPacketFeeAsyncResponse} message MsgPayPacketFeeAsyncResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MsgPayPacketFeeAsyncResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; + return HttpRule; + })(); - /** - * Encodes the specified MsgPayPacketFeeAsyncResponse message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.MsgPayPacketFeeAsyncResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof ibc.applications.fee.v1.MsgPayPacketFeeAsyncResponse - * @static - * @param {ibc.applications.fee.v1.IMsgPayPacketFeeAsyncResponse} message MsgPayPacketFeeAsyncResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MsgPayPacketFeeAsyncResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + api.CustomHttpPattern = (function() { - /** - * Decodes a MsgPayPacketFeeAsyncResponse message from the specified reader or buffer. - * @function decode - * @memberof ibc.applications.fee.v1.MsgPayPacketFeeAsyncResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.fee.v1.MsgPayPacketFeeAsyncResponse} MsgPayPacketFeeAsyncResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MsgPayPacketFeeAsyncResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.MsgPayPacketFeeAsyncResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Properties of a CustomHttpPattern. + * @memberof google.api + * @interface ICustomHttpPattern + * @property {string|null} [kind] CustomHttpPattern kind + * @property {string|null} [path] CustomHttpPattern path + */ - /** - * Decodes a MsgPayPacketFeeAsyncResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ibc.applications.fee.v1.MsgPayPacketFeeAsyncResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.fee.v1.MsgPayPacketFeeAsyncResponse} MsgPayPacketFeeAsyncResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MsgPayPacketFeeAsyncResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Constructs a new CustomHttpPattern. + * @memberof google.api + * @classdesc Represents a CustomHttpPattern. + * @implements ICustomHttpPattern + * @constructor + * @param {google.api.ICustomHttpPattern=} [properties] Properties to set + */ + function CustomHttpPattern(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Verifies a MsgPayPacketFeeAsyncResponse message. - * @function verify - * @memberof ibc.applications.fee.v1.MsgPayPacketFeeAsyncResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - MsgPayPacketFeeAsyncResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; + /** + * CustomHttpPattern kind. + * @member {string} kind + * @memberof google.api.CustomHttpPattern + * @instance + */ + CustomHttpPattern.prototype.kind = ""; - /** - * Creates a MsgPayPacketFeeAsyncResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof ibc.applications.fee.v1.MsgPayPacketFeeAsyncResponse - * @static - * @param {Object.} object Plain object - * @returns {ibc.applications.fee.v1.MsgPayPacketFeeAsyncResponse} MsgPayPacketFeeAsyncResponse - */ - MsgPayPacketFeeAsyncResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.fee.v1.MsgPayPacketFeeAsyncResponse) - return object; - return new $root.ibc.applications.fee.v1.MsgPayPacketFeeAsyncResponse(); - }; + /** + * CustomHttpPattern path. + * @member {string} path + * @memberof google.api.CustomHttpPattern + * @instance + */ + CustomHttpPattern.prototype.path = ""; - /** - * Creates a plain object from a MsgPayPacketFeeAsyncResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof ibc.applications.fee.v1.MsgPayPacketFeeAsyncResponse - * @static - * @param {ibc.applications.fee.v1.MsgPayPacketFeeAsyncResponse} message MsgPayPacketFeeAsyncResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - MsgPayPacketFeeAsyncResponse.toObject = function toObject() { - return {}; - }; + /** + * Encodes the specified CustomHttpPattern message. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages. + * @function encode + * @memberof google.api.CustomHttpPattern + * @static + * @param {google.api.ICustomHttpPattern} message CustomHttpPattern message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CustomHttpPattern.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.kind != null && Object.hasOwnProperty.call(message, "kind")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.kind); + if (message.path != null && Object.hasOwnProperty.call(message, "path")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.path); + return writer; + }; - /** - * Converts this MsgPayPacketFeeAsyncResponse to JSON. - * @function toJSON - * @memberof ibc.applications.fee.v1.MsgPayPacketFeeAsyncResponse - * @instance - * @returns {Object.} JSON object - */ - MsgPayPacketFeeAsyncResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Encodes the specified CustomHttpPattern message, length delimited. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages. + * @function encodeDelimited + * @memberof google.api.CustomHttpPattern + * @static + * @param {google.api.ICustomHttpPattern} message CustomHttpPattern message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CustomHttpPattern.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - return MsgPayPacketFeeAsyncResponse; - })(); + /** + * Decodes a CustomHttpPattern message from the specified reader or buffer. + * @function decode + * @memberof google.api.CustomHttpPattern + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.api.CustomHttpPattern} CustomHttpPattern + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CustomHttpPattern.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.CustomHttpPattern(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.kind = reader.string(); + break; + case 2: + message.path = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - v1.Fee = (function() { + /** + * Decodes a CustomHttpPattern message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.api.CustomHttpPattern + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.api.CustomHttpPattern} CustomHttpPattern + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CustomHttpPattern.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Properties of a Fee. - * @memberof ibc.applications.fee.v1 - * @interface IFee - * @property {Array.|null} [recv_fee] Fee recv_fee - * @property {Array.|null} [ack_fee] Fee ack_fee - * @property {Array.|null} [timeout_fee] Fee timeout_fee - */ + /** + * Verifies a CustomHttpPattern message. + * @function verify + * @memberof google.api.CustomHttpPattern + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CustomHttpPattern.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.kind != null && message.hasOwnProperty("kind")) + if (!$util.isString(message.kind)) + return "kind: string expected"; + if (message.path != null && message.hasOwnProperty("path")) + if (!$util.isString(message.path)) + return "path: string expected"; + return null; + }; - /** - * Constructs a new Fee. - * @memberof ibc.applications.fee.v1 - * @classdesc Represents a Fee. - * @implements IFee - * @constructor - * @param {ibc.applications.fee.v1.IFee=} [properties] Properties to set - */ - function Fee(properties) { - this.recv_fee = []; - this.ack_fee = []; - this.timeout_fee = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Creates a CustomHttpPattern message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.api.CustomHttpPattern + * @static + * @param {Object.} object Plain object + * @returns {google.api.CustomHttpPattern} CustomHttpPattern + */ + CustomHttpPattern.fromObject = function fromObject(object) { + if (object instanceof $root.google.api.CustomHttpPattern) + return object; + var message = new $root.google.api.CustomHttpPattern(); + if (object.kind != null) + message.kind = String(object.kind); + if (object.path != null) + message.path = String(object.path); + return message; + }; - /** - * Fee recv_fee. - * @member {Array.} recv_fee - * @memberof ibc.applications.fee.v1.Fee - * @instance - */ - Fee.prototype.recv_fee = $util.emptyArray; + /** + * Creates a plain object from a CustomHttpPattern message. Also converts values to other types if specified. + * @function toObject + * @memberof google.api.CustomHttpPattern + * @static + * @param {google.api.CustomHttpPattern} message CustomHttpPattern + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CustomHttpPattern.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.kind = ""; + object.path = ""; + } + if (message.kind != null && message.hasOwnProperty("kind")) + object.kind = message.kind; + if (message.path != null && message.hasOwnProperty("path")) + object.path = message.path; + return object; + }; - /** - * Fee ack_fee. - * @member {Array.} ack_fee - * @memberof ibc.applications.fee.v1.Fee - * @instance - */ - Fee.prototype.ack_fee = $util.emptyArray; + /** + * Converts this CustomHttpPattern to JSON. + * @function toJSON + * @memberof google.api.CustomHttpPattern + * @instance + * @returns {Object.} JSON object + */ + CustomHttpPattern.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Fee timeout_fee. - * @member {Array.} timeout_fee - * @memberof ibc.applications.fee.v1.Fee - * @instance - */ - Fee.prototype.timeout_fee = $util.emptyArray; + return CustomHttpPattern; + })(); - /** - * Encodes the specified Fee message. Does not implicitly {@link ibc.applications.fee.v1.Fee.verify|verify} messages. - * @function encode - * @memberof ibc.applications.fee.v1.Fee - * @static - * @param {ibc.applications.fee.v1.IFee} message Fee message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Fee.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.recv_fee != null && message.recv_fee.length) - for (var i = 0; i < message.recv_fee.length; ++i) - $root.cosmos.base.v1beta1.Coin.encode(message.recv_fee[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.ack_fee != null && message.ack_fee.length) - for (var i = 0; i < message.ack_fee.length; ++i) - $root.cosmos.base.v1beta1.Coin.encode(message.ack_fee[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.timeout_fee != null && message.timeout_fee.length) - for (var i = 0; i < message.timeout_fee.length; ++i) - $root.cosmos.base.v1beta1.Coin.encode(message.timeout_fee[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; + return api; + })(); - /** - * Encodes the specified Fee message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.Fee.verify|verify} messages. - * @function encodeDelimited - * @memberof ibc.applications.fee.v1.Fee - * @static - * @param {ibc.applications.fee.v1.IFee} message Fee message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Fee.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + return google; + })(); - /** - * Decodes a Fee message from the specified reader or buffer. - * @function decode - * @memberof ibc.applications.fee.v1.Fee - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.fee.v1.Fee} Fee - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Fee.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.Fee(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.recv_fee && message.recv_fee.length)) - message.recv_fee = []; - message.recv_fee.push($root.cosmos.base.v1beta1.Coin.decode(reader, reader.uint32())); - break; - case 2: - if (!(message.ack_fee && message.ack_fee.length)) - message.ack_fee = []; - message.ack_fee.push($root.cosmos.base.v1beta1.Coin.decode(reader, reader.uint32())); - break; - case 3: - if (!(message.timeout_fee && message.timeout_fee.length)) - message.timeout_fee = []; - message.timeout_fee.push($root.cosmos.base.v1beta1.Coin.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + $root.ibc = (function() { - /** - * Decodes a Fee message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ibc.applications.fee.v1.Fee - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.fee.v1.Fee} Fee - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Fee.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Namespace ibc. + * @exports ibc + * @namespace + */ + var ibc = {}; - /** - * Verifies a Fee message. - * @function verify - * @memberof ibc.applications.fee.v1.Fee - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Fee.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.recv_fee != null && message.hasOwnProperty("recv_fee")) { - if (!Array.isArray(message.recv_fee)) - return "recv_fee: array expected"; - for (var i = 0; i < message.recv_fee.length; ++i) { - var error = $root.cosmos.base.v1beta1.Coin.verify(message.recv_fee[i]); - if (error) - return "recv_fee." + error; - } - } - if (message.ack_fee != null && message.hasOwnProperty("ack_fee")) { - if (!Array.isArray(message.ack_fee)) - return "ack_fee: array expected"; - for (var i = 0; i < message.ack_fee.length; ++i) { - var error = $root.cosmos.base.v1beta1.Coin.verify(message.ack_fee[i]); - if (error) - return "ack_fee." + error; - } - } - if (message.timeout_fee != null && message.hasOwnProperty("timeout_fee")) { - if (!Array.isArray(message.timeout_fee)) - return "timeout_fee: array expected"; - for (var i = 0; i < message.timeout_fee.length; ++i) { - var error = $root.cosmos.base.v1beta1.Coin.verify(message.timeout_fee[i]); - if (error) - return "timeout_fee." + error; - } - } - return null; - }; + ibc.applications = (function() { - /** - * Creates a Fee message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof ibc.applications.fee.v1.Fee - * @static - * @param {Object.} object Plain object - * @returns {ibc.applications.fee.v1.Fee} Fee - */ - Fee.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.fee.v1.Fee) - return object; - var message = new $root.ibc.applications.fee.v1.Fee(); - if (object.recv_fee) { - if (!Array.isArray(object.recv_fee)) - throw TypeError(".ibc.applications.fee.v1.Fee.recv_fee: array expected"); - message.recv_fee = []; - for (var i = 0; i < object.recv_fee.length; ++i) { - if (typeof object.recv_fee[i] !== "object") - throw TypeError(".ibc.applications.fee.v1.Fee.recv_fee: object expected"); - message.recv_fee[i] = $root.cosmos.base.v1beta1.Coin.fromObject(object.recv_fee[i]); - } - } - if (object.ack_fee) { - if (!Array.isArray(object.ack_fee)) - throw TypeError(".ibc.applications.fee.v1.Fee.ack_fee: array expected"); - message.ack_fee = []; - for (var i = 0; i < object.ack_fee.length; ++i) { - if (typeof object.ack_fee[i] !== "object") - throw TypeError(".ibc.applications.fee.v1.Fee.ack_fee: object expected"); - message.ack_fee[i] = $root.cosmos.base.v1beta1.Coin.fromObject(object.ack_fee[i]); - } - } - if (object.timeout_fee) { - if (!Array.isArray(object.timeout_fee)) - throw TypeError(".ibc.applications.fee.v1.Fee.timeout_fee: array expected"); - message.timeout_fee = []; - for (var i = 0; i < object.timeout_fee.length; ++i) { - if (typeof object.timeout_fee[i] !== "object") - throw TypeError(".ibc.applications.fee.v1.Fee.timeout_fee: object expected"); - message.timeout_fee[i] = $root.cosmos.base.v1beta1.Coin.fromObject(object.timeout_fee[i]); - } - } - return message; - }; + /** + * Namespace applications. + * @memberof ibc + * @namespace + */ + var applications = {}; - /** - * Creates a plain object from a Fee message. Also converts values to other types if specified. - * @function toObject - * @memberof ibc.applications.fee.v1.Fee - * @static - * @param {ibc.applications.fee.v1.Fee} message Fee - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Fee.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) { - object.recv_fee = []; - object.ack_fee = []; - object.timeout_fee = []; - } - if (message.recv_fee && message.recv_fee.length) { - object.recv_fee = []; - for (var j = 0; j < message.recv_fee.length; ++j) - object.recv_fee[j] = $root.cosmos.base.v1beta1.Coin.toObject(message.recv_fee[j], options); - } - if (message.ack_fee && message.ack_fee.length) { - object.ack_fee = []; - for (var j = 0; j < message.ack_fee.length; ++j) - object.ack_fee[j] = $root.cosmos.base.v1beta1.Coin.toObject(message.ack_fee[j], options); - } - if (message.timeout_fee && message.timeout_fee.length) { - object.timeout_fee = []; - for (var j = 0; j < message.timeout_fee.length; ++j) - object.timeout_fee[j] = $root.cosmos.base.v1beta1.Coin.toObject(message.timeout_fee[j], options); - } - return object; - }; + applications.fee = (function() { - /** - * Converts this Fee to JSON. - * @function toJSON - * @memberof ibc.applications.fee.v1.Fee - * @instance - * @returns {Object.} JSON object - */ - Fee.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Namespace fee. + * @memberof ibc.applications + * @namespace + */ + var fee = {}; - return Fee; - })(); + fee.v1 = (function() { - v1.PacketFee = (function() { + /** + * Namespace v1. + * @memberof ibc.applications.fee + * @namespace + */ + var v1 = {}; - /** - * Properties of a PacketFee. - * @memberof ibc.applications.fee.v1 - * @interface IPacketFee - * @property {ibc.applications.fee.v1.IFee|null} [fee] PacketFee fee - * @property {string|null} [refund_address] PacketFee refund_address - * @property {Array.|null} [relayers] PacketFee relayers - */ + v1.Msg = (function() { /** - * Constructs a new PacketFee. + * Constructs a new Msg service. * @memberof ibc.applications.fee.v1 - * @classdesc Represents a PacketFee. - * @implements IPacketFee + * @classdesc Represents a Msg + * @extends $protobuf.rpc.Service * @constructor - * @param {ibc.applications.fee.v1.IPacketFee=} [properties] Properties to set + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited */ - function PacketFee(properties) { - this.relayers = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + function Msg(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); } + (Msg.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Msg; + /** - * PacketFee fee. - * @member {ibc.applications.fee.v1.IFee|null|undefined} fee - * @memberof ibc.applications.fee.v1.PacketFee - * @instance + * Callback as used by {@link ibc.applications.fee.v1.Msg#registerPayee}. + * @memberof ibc.applications.fee.v1.Msg + * @typedef RegisterPayeeCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.applications.fee.v1.MsgRegisterPayeeResponse} [response] MsgRegisterPayeeResponse */ - PacketFee.prototype.fee = null; /** - * PacketFee refund_address. - * @member {string} refund_address - * @memberof ibc.applications.fee.v1.PacketFee + * Calls RegisterPayee. + * @function registerPayee + * @memberof ibc.applications.fee.v1.Msg * @instance + * @param {ibc.applications.fee.v1.IMsgRegisterPayee} request MsgRegisterPayee message or plain object + * @param {ibc.applications.fee.v1.Msg.RegisterPayeeCallback} callback Node-style callback called with the error, if any, and MsgRegisterPayeeResponse + * @returns {undefined} + * @variation 1 */ - PacketFee.prototype.refund_address = ""; + Object.defineProperty(Msg.prototype.registerPayee = function registerPayee(request, callback) { + return this.rpcCall(registerPayee, $root.ibc.applications.fee.v1.MsgRegisterPayee, $root.ibc.applications.fee.v1.MsgRegisterPayeeResponse, request, callback); + }, "name", { value: "RegisterPayee" }); /** - * PacketFee relayers. - * @member {Array.} relayers - * @memberof ibc.applications.fee.v1.PacketFee + * Calls RegisterPayee. + * @function registerPayee + * @memberof ibc.applications.fee.v1.Msg * @instance + * @param {ibc.applications.fee.v1.IMsgRegisterPayee} request MsgRegisterPayee message or plain object + * @returns {Promise} Promise + * @variation 2 */ - PacketFee.prototype.relayers = $util.emptyArray; /** - * Encodes the specified PacketFee message. Does not implicitly {@link ibc.applications.fee.v1.PacketFee.verify|verify} messages. - * @function encode - * @memberof ibc.applications.fee.v1.PacketFee - * @static - * @param {ibc.applications.fee.v1.IPacketFee} message PacketFee message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Callback as used by {@link ibc.applications.fee.v1.Msg#registerCounterpartyPayee}. + * @memberof ibc.applications.fee.v1.Msg + * @typedef RegisterCounterpartyPayeeCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.applications.fee.v1.MsgRegisterCounterpartyPayeeResponse} [response] MsgRegisterCounterpartyPayeeResponse */ - PacketFee.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.fee != null && Object.hasOwnProperty.call(message, "fee")) - $root.ibc.applications.fee.v1.Fee.encode(message.fee, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.refund_address != null && Object.hasOwnProperty.call(message, "refund_address")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.refund_address); - if (message.relayers != null && message.relayers.length) - for (var i = 0; i < message.relayers.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.relayers[i]); - return writer; - }; /** - * Encodes the specified PacketFee message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.PacketFee.verify|verify} messages. - * @function encodeDelimited - * @memberof ibc.applications.fee.v1.PacketFee - * @static - * @param {ibc.applications.fee.v1.IPacketFee} message PacketFee message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls RegisterCounterpartyPayee. + * @function registerCounterpartyPayee + * @memberof ibc.applications.fee.v1.Msg + * @instance + * @param {ibc.applications.fee.v1.IMsgRegisterCounterpartyPayee} request MsgRegisterCounterpartyPayee message or plain object + * @param {ibc.applications.fee.v1.Msg.RegisterCounterpartyPayeeCallback} callback Node-style callback called with the error, if any, and MsgRegisterCounterpartyPayeeResponse + * @returns {undefined} + * @variation 1 */ - PacketFee.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + Object.defineProperty(Msg.prototype.registerCounterpartyPayee = function registerCounterpartyPayee(request, callback) { + return this.rpcCall(registerCounterpartyPayee, $root.ibc.applications.fee.v1.MsgRegisterCounterpartyPayee, $root.ibc.applications.fee.v1.MsgRegisterCounterpartyPayeeResponse, request, callback); + }, "name", { value: "RegisterCounterpartyPayee" }); /** - * Decodes a PacketFee message from the specified reader or buffer. - * @function decode - * @memberof ibc.applications.fee.v1.PacketFee - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.fee.v1.PacketFee} PacketFee - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PacketFee.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.PacketFee(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.fee = $root.ibc.applications.fee.v1.Fee.decode(reader, reader.uint32()); - break; - case 2: - message.refund_address = reader.string(); - break; - case 3: - if (!(message.relayers && message.relayers.length)) - message.relayers = []; - message.relayers.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + * Calls RegisterCounterpartyPayee. + * @function registerCounterpartyPayee + * @memberof ibc.applications.fee.v1.Msg + * @instance + * @param {ibc.applications.fee.v1.IMsgRegisterCounterpartyPayee} request MsgRegisterCounterpartyPayee message or plain object + * @returns {Promise} Promise + * @variation 2 + */ /** - * Decodes a PacketFee message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ibc.applications.fee.v1.PacketFee - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.fee.v1.PacketFee} PacketFee - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link ibc.applications.fee.v1.Msg#payPacketFee}. + * @memberof ibc.applications.fee.v1.Msg + * @typedef PayPacketFeeCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.applications.fee.v1.MsgPayPacketFeeResponse} [response] MsgPayPacketFeeResponse */ - PacketFee.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; /** - * Verifies a PacketFee message. - * @function verify - * @memberof ibc.applications.fee.v1.PacketFee - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Calls PayPacketFee. + * @function payPacketFee + * @memberof ibc.applications.fee.v1.Msg + * @instance + * @param {ibc.applications.fee.v1.IMsgPayPacketFee} request MsgPayPacketFee message or plain object + * @param {ibc.applications.fee.v1.Msg.PayPacketFeeCallback} callback Node-style callback called with the error, if any, and MsgPayPacketFeeResponse + * @returns {undefined} + * @variation 1 */ - PacketFee.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.fee != null && message.hasOwnProperty("fee")) { - var error = $root.ibc.applications.fee.v1.Fee.verify(message.fee); - if (error) - return "fee." + error; - } - if (message.refund_address != null && message.hasOwnProperty("refund_address")) - if (!$util.isString(message.refund_address)) - return "refund_address: string expected"; - if (message.relayers != null && message.hasOwnProperty("relayers")) { - if (!Array.isArray(message.relayers)) - return "relayers: array expected"; - for (var i = 0; i < message.relayers.length; ++i) - if (!$util.isString(message.relayers[i])) - return "relayers: string[] expected"; - } - return null; - }; + Object.defineProperty(Msg.prototype.payPacketFee = function payPacketFee(request, callback) { + return this.rpcCall(payPacketFee, $root.ibc.applications.fee.v1.MsgPayPacketFee, $root.ibc.applications.fee.v1.MsgPayPacketFeeResponse, request, callback); + }, "name", { value: "PayPacketFee" }); /** - * Creates a PacketFee message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof ibc.applications.fee.v1.PacketFee - * @static - * @param {Object.} object Plain object - * @returns {ibc.applications.fee.v1.PacketFee} PacketFee + * Calls PayPacketFee. + * @function payPacketFee + * @memberof ibc.applications.fee.v1.Msg + * @instance + * @param {ibc.applications.fee.v1.IMsgPayPacketFee} request MsgPayPacketFee message or plain object + * @returns {Promise} Promise + * @variation 2 */ - PacketFee.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.fee.v1.PacketFee) - return object; - var message = new $root.ibc.applications.fee.v1.PacketFee(); - if (object.fee != null) { - if (typeof object.fee !== "object") - throw TypeError(".ibc.applications.fee.v1.PacketFee.fee: object expected"); - message.fee = $root.ibc.applications.fee.v1.Fee.fromObject(object.fee); - } - if (object.refund_address != null) - message.refund_address = String(object.refund_address); - if (object.relayers) { - if (!Array.isArray(object.relayers)) - throw TypeError(".ibc.applications.fee.v1.PacketFee.relayers: array expected"); - message.relayers = []; - for (var i = 0; i < object.relayers.length; ++i) - message.relayers[i] = String(object.relayers[i]); - } - return message; - }; /** - * Creates a plain object from a PacketFee message. Also converts values to other types if specified. - * @function toObject - * @memberof ibc.applications.fee.v1.PacketFee - * @static - * @param {ibc.applications.fee.v1.PacketFee} message PacketFee - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Callback as used by {@link ibc.applications.fee.v1.Msg#payPacketFeeAsync}. + * @memberof ibc.applications.fee.v1.Msg + * @typedef PayPacketFeeAsyncCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.applications.fee.v1.MsgPayPacketFeeAsyncResponse} [response] MsgPayPacketFeeAsyncResponse */ - PacketFee.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.relayers = []; - if (options.defaults) { - object.fee = null; - object.refund_address = ""; - } - if (message.fee != null && message.hasOwnProperty("fee")) - object.fee = $root.ibc.applications.fee.v1.Fee.toObject(message.fee, options); - if (message.refund_address != null && message.hasOwnProperty("refund_address")) - object.refund_address = message.refund_address; - if (message.relayers && message.relayers.length) { - object.relayers = []; - for (var j = 0; j < message.relayers.length; ++j) - object.relayers[j] = message.relayers[j]; - } - return object; - }; /** - * Converts this PacketFee to JSON. - * @function toJSON - * @memberof ibc.applications.fee.v1.PacketFee + * Calls PayPacketFeeAsync. + * @function payPacketFeeAsync + * @memberof ibc.applications.fee.v1.Msg * @instance - * @returns {Object.} JSON object + * @param {ibc.applications.fee.v1.IMsgPayPacketFeeAsync} request MsgPayPacketFeeAsync message or plain object + * @param {ibc.applications.fee.v1.Msg.PayPacketFeeAsyncCallback} callback Node-style callback called with the error, if any, and MsgPayPacketFeeAsyncResponse + * @returns {undefined} + * @variation 1 */ - PacketFee.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + Object.defineProperty(Msg.prototype.payPacketFeeAsync = function payPacketFeeAsync(request, callback) { + return this.rpcCall(payPacketFeeAsync, $root.ibc.applications.fee.v1.MsgPayPacketFeeAsync, $root.ibc.applications.fee.v1.MsgPayPacketFeeAsyncResponse, request, callback); + }, "name", { value: "PayPacketFeeAsync" }); - return PacketFee; + /** + * Calls PayPacketFeeAsync. + * @function payPacketFeeAsync + * @memberof ibc.applications.fee.v1.Msg + * @instance + * @param {ibc.applications.fee.v1.IMsgPayPacketFeeAsync} request MsgPayPacketFeeAsync message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return Msg; })(); - v1.PacketFees = (function() { + v1.MsgRegisterPayee = (function() { /** - * Properties of a PacketFees. + * Properties of a MsgRegisterPayee. * @memberof ibc.applications.fee.v1 - * @interface IPacketFees - * @property {Array.|null} [packet_fees] PacketFees packet_fees + * @interface IMsgRegisterPayee + * @property {string|null} [port_id] MsgRegisterPayee port_id + * @property {string|null} [channel_id] MsgRegisterPayee channel_id + * @property {string|null} [relayer] MsgRegisterPayee relayer + * @property {string|null} [payee] MsgRegisterPayee payee */ /** - * Constructs a new PacketFees. + * Constructs a new MsgRegisterPayee. * @memberof ibc.applications.fee.v1 - * @classdesc Represents a PacketFees. - * @implements IPacketFees + * @classdesc Represents a MsgRegisterPayee. + * @implements IMsgRegisterPayee * @constructor - * @param {ibc.applications.fee.v1.IPacketFees=} [properties] Properties to set + * @param {ibc.applications.fee.v1.IMsgRegisterPayee=} [properties] Properties to set */ - function PacketFees(properties) { - this.packet_fees = []; + function MsgRegisterPayee(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -20494,66 +26952,102 @@ } /** - * PacketFees packet_fees. - * @member {Array.} packet_fees - * @memberof ibc.applications.fee.v1.PacketFees + * MsgRegisterPayee port_id. + * @member {string} port_id + * @memberof ibc.applications.fee.v1.MsgRegisterPayee * @instance */ - PacketFees.prototype.packet_fees = $util.emptyArray; + MsgRegisterPayee.prototype.port_id = ""; /** - * Encodes the specified PacketFees message. Does not implicitly {@link ibc.applications.fee.v1.PacketFees.verify|verify} messages. + * MsgRegisterPayee channel_id. + * @member {string} channel_id + * @memberof ibc.applications.fee.v1.MsgRegisterPayee + * @instance + */ + MsgRegisterPayee.prototype.channel_id = ""; + + /** + * MsgRegisterPayee relayer. + * @member {string} relayer + * @memberof ibc.applications.fee.v1.MsgRegisterPayee + * @instance + */ + MsgRegisterPayee.prototype.relayer = ""; + + /** + * MsgRegisterPayee payee. + * @member {string} payee + * @memberof ibc.applications.fee.v1.MsgRegisterPayee + * @instance + */ + MsgRegisterPayee.prototype.payee = ""; + + /** + * Encodes the specified MsgRegisterPayee message. Does not implicitly {@link ibc.applications.fee.v1.MsgRegisterPayee.verify|verify} messages. * @function encode - * @memberof ibc.applications.fee.v1.PacketFees + * @memberof ibc.applications.fee.v1.MsgRegisterPayee * @static - * @param {ibc.applications.fee.v1.IPacketFees} message PacketFees message or plain object to encode + * @param {ibc.applications.fee.v1.IMsgRegisterPayee} message MsgRegisterPayee message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PacketFees.encode = function encode(message, writer) { + MsgRegisterPayee.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.packet_fees != null && message.packet_fees.length) - for (var i = 0; i < message.packet_fees.length; ++i) - $root.ibc.applications.fee.v1.PacketFee.encode(message.packet_fees[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.port_id != null && Object.hasOwnProperty.call(message, "port_id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.port_id); + if (message.channel_id != null && Object.hasOwnProperty.call(message, "channel_id")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.channel_id); + if (message.relayer != null && Object.hasOwnProperty.call(message, "relayer")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.relayer); + if (message.payee != null && Object.hasOwnProperty.call(message, "payee")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.payee); return writer; }; /** - * Encodes the specified PacketFees message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.PacketFees.verify|verify} messages. + * Encodes the specified MsgRegisterPayee message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.MsgRegisterPayee.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.applications.fee.v1.PacketFees + * @memberof ibc.applications.fee.v1.MsgRegisterPayee * @static - * @param {ibc.applications.fee.v1.IPacketFees} message PacketFees message or plain object to encode + * @param {ibc.applications.fee.v1.IMsgRegisterPayee} message MsgRegisterPayee message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PacketFees.encodeDelimited = function encodeDelimited(message, writer) { + MsgRegisterPayee.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PacketFees message from the specified reader or buffer. + * Decodes a MsgRegisterPayee message from the specified reader or buffer. * @function decode - * @memberof ibc.applications.fee.v1.PacketFees + * @memberof ibc.applications.fee.v1.MsgRegisterPayee * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.fee.v1.PacketFees} PacketFees + * @returns {ibc.applications.fee.v1.MsgRegisterPayee} MsgRegisterPayee * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PacketFees.decode = function decode(reader, length) { + MsgRegisterPayee.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.PacketFees(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.MsgRegisterPayee(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.packet_fees && message.packet_fees.length)) - message.packet_fees = []; - message.packet_fees.push($root.ibc.applications.fee.v1.PacketFee.decode(reader, reader.uint32())); + message.port_id = reader.string(); + break; + case 2: + message.channel_id = reader.string(); + break; + case 3: + message.relayer = reader.string(); + break; + case 4: + message.payee = reader.string(); break; default: reader.skipType(tag & 7); @@ -20564,126 +27058,131 @@ }; /** - * Decodes a PacketFees message from the specified reader or buffer, length delimited. + * Decodes a MsgRegisterPayee message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.applications.fee.v1.PacketFees + * @memberof ibc.applications.fee.v1.MsgRegisterPayee * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.fee.v1.PacketFees} PacketFees + * @returns {ibc.applications.fee.v1.MsgRegisterPayee} MsgRegisterPayee * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PacketFees.decodeDelimited = function decodeDelimited(reader) { + MsgRegisterPayee.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PacketFees message. + * Verifies a MsgRegisterPayee message. * @function verify - * @memberof ibc.applications.fee.v1.PacketFees + * @memberof ibc.applications.fee.v1.MsgRegisterPayee * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PacketFees.verify = function verify(message) { + MsgRegisterPayee.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.packet_fees != null && message.hasOwnProperty("packet_fees")) { - if (!Array.isArray(message.packet_fees)) - return "packet_fees: array expected"; - for (var i = 0; i < message.packet_fees.length; ++i) { - var error = $root.ibc.applications.fee.v1.PacketFee.verify(message.packet_fees[i]); - if (error) - return "packet_fees." + error; - } - } + if (message.port_id != null && message.hasOwnProperty("port_id")) + if (!$util.isString(message.port_id)) + return "port_id: string expected"; + if (message.channel_id != null && message.hasOwnProperty("channel_id")) + if (!$util.isString(message.channel_id)) + return "channel_id: string expected"; + if (message.relayer != null && message.hasOwnProperty("relayer")) + if (!$util.isString(message.relayer)) + return "relayer: string expected"; + if (message.payee != null && message.hasOwnProperty("payee")) + if (!$util.isString(message.payee)) + return "payee: string expected"; return null; }; /** - * Creates a PacketFees message from a plain object. Also converts values to their respective internal types. + * Creates a MsgRegisterPayee message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.applications.fee.v1.PacketFees + * @memberof ibc.applications.fee.v1.MsgRegisterPayee * @static * @param {Object.} object Plain object - * @returns {ibc.applications.fee.v1.PacketFees} PacketFees + * @returns {ibc.applications.fee.v1.MsgRegisterPayee} MsgRegisterPayee */ - PacketFees.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.fee.v1.PacketFees) + MsgRegisterPayee.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.fee.v1.MsgRegisterPayee) return object; - var message = new $root.ibc.applications.fee.v1.PacketFees(); - if (object.packet_fees) { - if (!Array.isArray(object.packet_fees)) - throw TypeError(".ibc.applications.fee.v1.PacketFees.packet_fees: array expected"); - message.packet_fees = []; - for (var i = 0; i < object.packet_fees.length; ++i) { - if (typeof object.packet_fees[i] !== "object") - throw TypeError(".ibc.applications.fee.v1.PacketFees.packet_fees: object expected"); - message.packet_fees[i] = $root.ibc.applications.fee.v1.PacketFee.fromObject(object.packet_fees[i]); - } - } + var message = new $root.ibc.applications.fee.v1.MsgRegisterPayee(); + if (object.port_id != null) + message.port_id = String(object.port_id); + if (object.channel_id != null) + message.channel_id = String(object.channel_id); + if (object.relayer != null) + message.relayer = String(object.relayer); + if (object.payee != null) + message.payee = String(object.payee); return message; }; /** - * Creates a plain object from a PacketFees message. Also converts values to other types if specified. + * Creates a plain object from a MsgRegisterPayee message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.applications.fee.v1.PacketFees + * @memberof ibc.applications.fee.v1.MsgRegisterPayee * @static - * @param {ibc.applications.fee.v1.PacketFees} message PacketFees + * @param {ibc.applications.fee.v1.MsgRegisterPayee} message MsgRegisterPayee * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PacketFees.toObject = function toObject(message, options) { + MsgRegisterPayee.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.packet_fees = []; - if (message.packet_fees && message.packet_fees.length) { - object.packet_fees = []; - for (var j = 0; j < message.packet_fees.length; ++j) - object.packet_fees[j] = $root.ibc.applications.fee.v1.PacketFee.toObject(message.packet_fees[j], options); + if (options.defaults) { + object.port_id = ""; + object.channel_id = ""; + object.relayer = ""; + object.payee = ""; } + if (message.port_id != null && message.hasOwnProperty("port_id")) + object.port_id = message.port_id; + if (message.channel_id != null && message.hasOwnProperty("channel_id")) + object.channel_id = message.channel_id; + if (message.relayer != null && message.hasOwnProperty("relayer")) + object.relayer = message.relayer; + if (message.payee != null && message.hasOwnProperty("payee")) + object.payee = message.payee; return object; }; /** - * Converts this PacketFees to JSON. + * Converts this MsgRegisterPayee to JSON. * @function toJSON - * @memberof ibc.applications.fee.v1.PacketFees + * @memberof ibc.applications.fee.v1.MsgRegisterPayee * @instance * @returns {Object.} JSON object */ - PacketFees.prototype.toJSON = function toJSON() { + MsgRegisterPayee.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return PacketFees; + return MsgRegisterPayee; })(); - v1.IdentifiedPacketFees = (function() { + v1.MsgRegisterPayeeResponse = (function() { /** - * Properties of an IdentifiedPacketFees. + * Properties of a MsgRegisterPayeeResponse. * @memberof ibc.applications.fee.v1 - * @interface IIdentifiedPacketFees - * @property {ibc.core.channel.v1.IPacketId|null} [packet_id] IdentifiedPacketFees packet_id - * @property {Array.|null} [packet_fees] IdentifiedPacketFees packet_fees + * @interface IMsgRegisterPayeeResponse */ /** - * Constructs a new IdentifiedPacketFees. + * Constructs a new MsgRegisterPayeeResponse. * @memberof ibc.applications.fee.v1 - * @classdesc Represents an IdentifiedPacketFees. - * @implements IIdentifiedPacketFees + * @classdesc Represents a MsgRegisterPayeeResponse. + * @implements IMsgRegisterPayeeResponse * @constructor - * @param {ibc.applications.fee.v1.IIdentifiedPacketFees=} [properties] Properties to set + * @param {ibc.applications.fee.v1.IMsgRegisterPayeeResponse=} [properties] Properties to set */ - function IdentifiedPacketFees(properties) { - this.packet_fees = []; + function MsgRegisterPayeeResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -20691,80 +27190,51 @@ } /** - * IdentifiedPacketFees packet_id. - * @member {ibc.core.channel.v1.IPacketId|null|undefined} packet_id - * @memberof ibc.applications.fee.v1.IdentifiedPacketFees - * @instance - */ - IdentifiedPacketFees.prototype.packet_id = null; - - /** - * IdentifiedPacketFees packet_fees. - * @member {Array.} packet_fees - * @memberof ibc.applications.fee.v1.IdentifiedPacketFees - * @instance - */ - IdentifiedPacketFees.prototype.packet_fees = $util.emptyArray; - - /** - * Encodes the specified IdentifiedPacketFees message. Does not implicitly {@link ibc.applications.fee.v1.IdentifiedPacketFees.verify|verify} messages. + * Encodes the specified MsgRegisterPayeeResponse message. Does not implicitly {@link ibc.applications.fee.v1.MsgRegisterPayeeResponse.verify|verify} messages. * @function encode - * @memberof ibc.applications.fee.v1.IdentifiedPacketFees + * @memberof ibc.applications.fee.v1.MsgRegisterPayeeResponse * @static - * @param {ibc.applications.fee.v1.IIdentifiedPacketFees} message IdentifiedPacketFees message or plain object to encode + * @param {ibc.applications.fee.v1.IMsgRegisterPayeeResponse} message MsgRegisterPayeeResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - IdentifiedPacketFees.encode = function encode(message, writer) { + MsgRegisterPayeeResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.packet_id != null && Object.hasOwnProperty.call(message, "packet_id")) - $root.ibc.core.channel.v1.PacketId.encode(message.packet_id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.packet_fees != null && message.packet_fees.length) - for (var i = 0; i < message.packet_fees.length; ++i) - $root.ibc.applications.fee.v1.PacketFee.encode(message.packet_fees[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified IdentifiedPacketFees message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.IdentifiedPacketFees.verify|verify} messages. + * Encodes the specified MsgRegisterPayeeResponse message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.MsgRegisterPayeeResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.applications.fee.v1.IdentifiedPacketFees + * @memberof ibc.applications.fee.v1.MsgRegisterPayeeResponse * @static - * @param {ibc.applications.fee.v1.IIdentifiedPacketFees} message IdentifiedPacketFees message or plain object to encode + * @param {ibc.applications.fee.v1.IMsgRegisterPayeeResponse} message MsgRegisterPayeeResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - IdentifiedPacketFees.encodeDelimited = function encodeDelimited(message, writer) { + MsgRegisterPayeeResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an IdentifiedPacketFees message from the specified reader or buffer. + * Decodes a MsgRegisterPayeeResponse message from the specified reader or buffer. * @function decode - * @memberof ibc.applications.fee.v1.IdentifiedPacketFees + * @memberof ibc.applications.fee.v1.MsgRegisterPayeeResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.fee.v1.IdentifiedPacketFees} IdentifiedPacketFees + * @returns {ibc.applications.fee.v1.MsgRegisterPayeeResponse} MsgRegisterPayeeResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - IdentifiedPacketFees.decode = function decode(reader, length) { + MsgRegisterPayeeResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.IdentifiedPacketFees(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.MsgRegisterPayeeResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.packet_id = $root.ibc.core.channel.v1.PacketId.decode(reader, reader.uint32()); - break; - case 2: - if (!(message.packet_fees && message.packet_fees.length)) - message.packet_fees = []; - message.packet_fees.push($root.ibc.applications.fee.v1.PacketFee.decode(reader, reader.uint32())); - break; default: reader.skipType(tag & 7); break; @@ -20774,140 +27244,97 @@ }; /** - * Decodes an IdentifiedPacketFees message from the specified reader or buffer, length delimited. + * Decodes a MsgRegisterPayeeResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.applications.fee.v1.IdentifiedPacketFees + * @memberof ibc.applications.fee.v1.MsgRegisterPayeeResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.fee.v1.IdentifiedPacketFees} IdentifiedPacketFees + * @returns {ibc.applications.fee.v1.MsgRegisterPayeeResponse} MsgRegisterPayeeResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - IdentifiedPacketFees.decodeDelimited = function decodeDelimited(reader) { + MsgRegisterPayeeResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an IdentifiedPacketFees message. + * Verifies a MsgRegisterPayeeResponse message. * @function verify - * @memberof ibc.applications.fee.v1.IdentifiedPacketFees + * @memberof ibc.applications.fee.v1.MsgRegisterPayeeResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - IdentifiedPacketFees.verify = function verify(message) { + MsgRegisterPayeeResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.packet_id != null && message.hasOwnProperty("packet_id")) { - var error = $root.ibc.core.channel.v1.PacketId.verify(message.packet_id); - if (error) - return "packet_id." + error; - } - if (message.packet_fees != null && message.hasOwnProperty("packet_fees")) { - if (!Array.isArray(message.packet_fees)) - return "packet_fees: array expected"; - for (var i = 0; i < message.packet_fees.length; ++i) { - var error = $root.ibc.applications.fee.v1.PacketFee.verify(message.packet_fees[i]); - if (error) - return "packet_fees." + error; - } - } return null; }; /** - * Creates an IdentifiedPacketFees message from a plain object. Also converts values to their respective internal types. + * Creates a MsgRegisterPayeeResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.applications.fee.v1.IdentifiedPacketFees + * @memberof ibc.applications.fee.v1.MsgRegisterPayeeResponse * @static * @param {Object.} object Plain object - * @returns {ibc.applications.fee.v1.IdentifiedPacketFees} IdentifiedPacketFees - */ - IdentifiedPacketFees.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.fee.v1.IdentifiedPacketFees) - return object; - var message = new $root.ibc.applications.fee.v1.IdentifiedPacketFees(); - if (object.packet_id != null) { - if (typeof object.packet_id !== "object") - throw TypeError(".ibc.applications.fee.v1.IdentifiedPacketFees.packet_id: object expected"); - message.packet_id = $root.ibc.core.channel.v1.PacketId.fromObject(object.packet_id); - } - if (object.packet_fees) { - if (!Array.isArray(object.packet_fees)) - throw TypeError(".ibc.applications.fee.v1.IdentifiedPacketFees.packet_fees: array expected"); - message.packet_fees = []; - for (var i = 0; i < object.packet_fees.length; ++i) { - if (typeof object.packet_fees[i] !== "object") - throw TypeError(".ibc.applications.fee.v1.IdentifiedPacketFees.packet_fees: object expected"); - message.packet_fees[i] = $root.ibc.applications.fee.v1.PacketFee.fromObject(object.packet_fees[i]); - } - } - return message; - }; - - /** - * Creates a plain object from an IdentifiedPacketFees message. Also converts values to other types if specified. - * @function toObject - * @memberof ibc.applications.fee.v1.IdentifiedPacketFees - * @static - * @param {ibc.applications.fee.v1.IdentifiedPacketFees} message IdentifiedPacketFees - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * @returns {ibc.applications.fee.v1.MsgRegisterPayeeResponse} MsgRegisterPayeeResponse */ - IdentifiedPacketFees.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.packet_fees = []; - if (options.defaults) - object.packet_id = null; - if (message.packet_id != null && message.hasOwnProperty("packet_id")) - object.packet_id = $root.ibc.core.channel.v1.PacketId.toObject(message.packet_id, options); - if (message.packet_fees && message.packet_fees.length) { - object.packet_fees = []; - for (var j = 0; j < message.packet_fees.length; ++j) - object.packet_fees[j] = $root.ibc.applications.fee.v1.PacketFee.toObject(message.packet_fees[j], options); - } - return object; + MsgRegisterPayeeResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.fee.v1.MsgRegisterPayeeResponse) + return object; + return new $root.ibc.applications.fee.v1.MsgRegisterPayeeResponse(); }; /** - * Converts this IdentifiedPacketFees to JSON. + * Creates a plain object from a MsgRegisterPayeeResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof ibc.applications.fee.v1.MsgRegisterPayeeResponse + * @static + * @param {ibc.applications.fee.v1.MsgRegisterPayeeResponse} message MsgRegisterPayeeResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MsgRegisterPayeeResponse.toObject = function toObject() { + return {}; + }; + + /** + * Converts this MsgRegisterPayeeResponse to JSON. * @function toJSON - * @memberof ibc.applications.fee.v1.IdentifiedPacketFees + * @memberof ibc.applications.fee.v1.MsgRegisterPayeeResponse * @instance * @returns {Object.} JSON object */ - IdentifiedPacketFees.prototype.toJSON = function toJSON() { + MsgRegisterPayeeResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return IdentifiedPacketFees; + return MsgRegisterPayeeResponse; })(); - v1.IncentivizedAcknowledgement = (function() { + v1.MsgRegisterCounterpartyPayee = (function() { /** - * Properties of an IncentivizedAcknowledgement. + * Properties of a MsgRegisterCounterpartyPayee. * @memberof ibc.applications.fee.v1 - * @interface IIncentivizedAcknowledgement - * @property {Uint8Array|null} [app_acknowledgement] IncentivizedAcknowledgement app_acknowledgement - * @property {string|null} [forward_relayer_address] IncentivizedAcknowledgement forward_relayer_address - * @property {boolean|null} [underlying_app_success] IncentivizedAcknowledgement underlying_app_success + * @interface IMsgRegisterCounterpartyPayee + * @property {string|null} [port_id] MsgRegisterCounterpartyPayee port_id + * @property {string|null} [channel_id] MsgRegisterCounterpartyPayee channel_id + * @property {string|null} [relayer] MsgRegisterCounterpartyPayee relayer + * @property {string|null} [counterparty_payee] MsgRegisterCounterpartyPayee counterparty_payee */ /** - * Constructs a new IncentivizedAcknowledgement. + * Constructs a new MsgRegisterCounterpartyPayee. * @memberof ibc.applications.fee.v1 - * @classdesc Represents an IncentivizedAcknowledgement. - * @implements IIncentivizedAcknowledgement + * @classdesc Represents a MsgRegisterCounterpartyPayee. + * @implements IMsgRegisterCounterpartyPayee * @constructor - * @param {ibc.applications.fee.v1.IIncentivizedAcknowledgement=} [properties] Properties to set + * @param {ibc.applications.fee.v1.IMsgRegisterCounterpartyPayee=} [properties] Properties to set */ - function IncentivizedAcknowledgement(properties) { + function MsgRegisterCounterpartyPayee(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -20915,89 +27342,102 @@ } /** - * IncentivizedAcknowledgement app_acknowledgement. - * @member {Uint8Array} app_acknowledgement - * @memberof ibc.applications.fee.v1.IncentivizedAcknowledgement + * MsgRegisterCounterpartyPayee port_id. + * @member {string} port_id + * @memberof ibc.applications.fee.v1.MsgRegisterCounterpartyPayee * @instance */ - IncentivizedAcknowledgement.prototype.app_acknowledgement = $util.newBuffer([]); + MsgRegisterCounterpartyPayee.prototype.port_id = ""; /** - * IncentivizedAcknowledgement forward_relayer_address. - * @member {string} forward_relayer_address - * @memberof ibc.applications.fee.v1.IncentivizedAcknowledgement + * MsgRegisterCounterpartyPayee channel_id. + * @member {string} channel_id + * @memberof ibc.applications.fee.v1.MsgRegisterCounterpartyPayee * @instance */ - IncentivizedAcknowledgement.prototype.forward_relayer_address = ""; + MsgRegisterCounterpartyPayee.prototype.channel_id = ""; /** - * IncentivizedAcknowledgement underlying_app_success. - * @member {boolean} underlying_app_success - * @memberof ibc.applications.fee.v1.IncentivizedAcknowledgement + * MsgRegisterCounterpartyPayee relayer. + * @member {string} relayer + * @memberof ibc.applications.fee.v1.MsgRegisterCounterpartyPayee * @instance */ - IncentivizedAcknowledgement.prototype.underlying_app_success = false; + MsgRegisterCounterpartyPayee.prototype.relayer = ""; /** - * Encodes the specified IncentivizedAcknowledgement message. Does not implicitly {@link ibc.applications.fee.v1.IncentivizedAcknowledgement.verify|verify} messages. + * MsgRegisterCounterpartyPayee counterparty_payee. + * @member {string} counterparty_payee + * @memberof ibc.applications.fee.v1.MsgRegisterCounterpartyPayee + * @instance + */ + MsgRegisterCounterpartyPayee.prototype.counterparty_payee = ""; + + /** + * Encodes the specified MsgRegisterCounterpartyPayee message. Does not implicitly {@link ibc.applications.fee.v1.MsgRegisterCounterpartyPayee.verify|verify} messages. * @function encode - * @memberof ibc.applications.fee.v1.IncentivizedAcknowledgement + * @memberof ibc.applications.fee.v1.MsgRegisterCounterpartyPayee * @static - * @param {ibc.applications.fee.v1.IIncentivizedAcknowledgement} message IncentivizedAcknowledgement message or plain object to encode + * @param {ibc.applications.fee.v1.IMsgRegisterCounterpartyPayee} message MsgRegisterCounterpartyPayee message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - IncentivizedAcknowledgement.encode = function encode(message, writer) { + MsgRegisterCounterpartyPayee.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.app_acknowledgement != null && Object.hasOwnProperty.call(message, "app_acknowledgement")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.app_acknowledgement); - if (message.forward_relayer_address != null && Object.hasOwnProperty.call(message, "forward_relayer_address")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.forward_relayer_address); - if (message.underlying_app_success != null && Object.hasOwnProperty.call(message, "underlying_app_success")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.underlying_app_success); + if (message.port_id != null && Object.hasOwnProperty.call(message, "port_id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.port_id); + if (message.channel_id != null && Object.hasOwnProperty.call(message, "channel_id")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.channel_id); + if (message.relayer != null && Object.hasOwnProperty.call(message, "relayer")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.relayer); + if (message.counterparty_payee != null && Object.hasOwnProperty.call(message, "counterparty_payee")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.counterparty_payee); return writer; }; /** - * Encodes the specified IncentivizedAcknowledgement message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.IncentivizedAcknowledgement.verify|verify} messages. + * Encodes the specified MsgRegisterCounterpartyPayee message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.MsgRegisterCounterpartyPayee.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.applications.fee.v1.IncentivizedAcknowledgement + * @memberof ibc.applications.fee.v1.MsgRegisterCounterpartyPayee * @static - * @param {ibc.applications.fee.v1.IIncentivizedAcknowledgement} message IncentivizedAcknowledgement message or plain object to encode + * @param {ibc.applications.fee.v1.IMsgRegisterCounterpartyPayee} message MsgRegisterCounterpartyPayee message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - IncentivizedAcknowledgement.encodeDelimited = function encodeDelimited(message, writer) { + MsgRegisterCounterpartyPayee.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an IncentivizedAcknowledgement message from the specified reader or buffer. + * Decodes a MsgRegisterCounterpartyPayee message from the specified reader or buffer. * @function decode - * @memberof ibc.applications.fee.v1.IncentivizedAcknowledgement + * @memberof ibc.applications.fee.v1.MsgRegisterCounterpartyPayee * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.fee.v1.IncentivizedAcknowledgement} IncentivizedAcknowledgement + * @returns {ibc.applications.fee.v1.MsgRegisterCounterpartyPayee} MsgRegisterCounterpartyPayee * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - IncentivizedAcknowledgement.decode = function decode(reader, length) { + MsgRegisterCounterpartyPayee.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.IncentivizedAcknowledgement(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.MsgRegisterCounterpartyPayee(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.app_acknowledgement = reader.bytes(); + message.port_id = reader.string(); break; case 2: - message.forward_relayer_address = reader.string(); + message.channel_id = reader.string(); break; case 3: - message.underlying_app_success = reader.bool(); + message.relayer = reader.string(); + break; + case 4: + message.counterparty_payee = reader.string(); break; default: reader.skipType(tag & 7); @@ -21008,485 +27448,285 @@ }; /** - * Decodes an IncentivizedAcknowledgement message from the specified reader or buffer, length delimited. + * Decodes a MsgRegisterCounterpartyPayee message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.applications.fee.v1.IncentivizedAcknowledgement + * @memberof ibc.applications.fee.v1.MsgRegisterCounterpartyPayee * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.fee.v1.IncentivizedAcknowledgement} IncentivizedAcknowledgement + * @returns {ibc.applications.fee.v1.MsgRegisterCounterpartyPayee} MsgRegisterCounterpartyPayee * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - IncentivizedAcknowledgement.decodeDelimited = function decodeDelimited(reader) { + MsgRegisterCounterpartyPayee.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an IncentivizedAcknowledgement message. + * Verifies a MsgRegisterCounterpartyPayee message. * @function verify - * @memberof ibc.applications.fee.v1.IncentivizedAcknowledgement + * @memberof ibc.applications.fee.v1.MsgRegisterCounterpartyPayee * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - IncentivizedAcknowledgement.verify = function verify(message) { + MsgRegisterCounterpartyPayee.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.app_acknowledgement != null && message.hasOwnProperty("app_acknowledgement")) - if (!(message.app_acknowledgement && typeof message.app_acknowledgement.length === "number" || $util.isString(message.app_acknowledgement))) - return "app_acknowledgement: buffer expected"; - if (message.forward_relayer_address != null && message.hasOwnProperty("forward_relayer_address")) - if (!$util.isString(message.forward_relayer_address)) - return "forward_relayer_address: string expected"; - if (message.underlying_app_success != null && message.hasOwnProperty("underlying_app_success")) - if (typeof message.underlying_app_success !== "boolean") - return "underlying_app_success: boolean expected"; + if (message.port_id != null && message.hasOwnProperty("port_id")) + if (!$util.isString(message.port_id)) + return "port_id: string expected"; + if (message.channel_id != null && message.hasOwnProperty("channel_id")) + if (!$util.isString(message.channel_id)) + return "channel_id: string expected"; + if (message.relayer != null && message.hasOwnProperty("relayer")) + if (!$util.isString(message.relayer)) + return "relayer: string expected"; + if (message.counterparty_payee != null && message.hasOwnProperty("counterparty_payee")) + if (!$util.isString(message.counterparty_payee)) + return "counterparty_payee: string expected"; return null; }; /** - * Creates an IncentivizedAcknowledgement message from a plain object. Also converts values to their respective internal types. + * Creates a MsgRegisterCounterpartyPayee message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.applications.fee.v1.IncentivizedAcknowledgement + * @memberof ibc.applications.fee.v1.MsgRegisterCounterpartyPayee * @static * @param {Object.} object Plain object - * @returns {ibc.applications.fee.v1.IncentivizedAcknowledgement} IncentivizedAcknowledgement + * @returns {ibc.applications.fee.v1.MsgRegisterCounterpartyPayee} MsgRegisterCounterpartyPayee */ - IncentivizedAcknowledgement.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.fee.v1.IncentivizedAcknowledgement) + MsgRegisterCounterpartyPayee.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.fee.v1.MsgRegisterCounterpartyPayee) return object; - var message = new $root.ibc.applications.fee.v1.IncentivizedAcknowledgement(); - if (object.app_acknowledgement != null) - if (typeof object.app_acknowledgement === "string") - $util.base64.decode(object.app_acknowledgement, message.app_acknowledgement = $util.newBuffer($util.base64.length(object.app_acknowledgement)), 0); - else if (object.app_acknowledgement.length) - message.app_acknowledgement = object.app_acknowledgement; - if (object.forward_relayer_address != null) - message.forward_relayer_address = String(object.forward_relayer_address); - if (object.underlying_app_success != null) - message.underlying_app_success = Boolean(object.underlying_app_success); + var message = new $root.ibc.applications.fee.v1.MsgRegisterCounterpartyPayee(); + if (object.port_id != null) + message.port_id = String(object.port_id); + if (object.channel_id != null) + message.channel_id = String(object.channel_id); + if (object.relayer != null) + message.relayer = String(object.relayer); + if (object.counterparty_payee != null) + message.counterparty_payee = String(object.counterparty_payee); return message; }; /** - * Creates a plain object from an IncentivizedAcknowledgement message. Also converts values to other types if specified. + * Creates a plain object from a MsgRegisterCounterpartyPayee message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.applications.fee.v1.IncentivizedAcknowledgement + * @memberof ibc.applications.fee.v1.MsgRegisterCounterpartyPayee * @static - * @param {ibc.applications.fee.v1.IncentivizedAcknowledgement} message IncentivizedAcknowledgement + * @param {ibc.applications.fee.v1.MsgRegisterCounterpartyPayee} message MsgRegisterCounterpartyPayee * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - IncentivizedAcknowledgement.toObject = function toObject(message, options) { + MsgRegisterCounterpartyPayee.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - if (options.bytes === String) - object.app_acknowledgement = ""; - else { - object.app_acknowledgement = []; - if (options.bytes !== Array) - object.app_acknowledgement = $util.newBuffer(object.app_acknowledgement); - } - object.forward_relayer_address = ""; - object.underlying_app_success = false; + object.port_id = ""; + object.channel_id = ""; + object.relayer = ""; + object.counterparty_payee = ""; } - if (message.app_acknowledgement != null && message.hasOwnProperty("app_acknowledgement")) - object.app_acknowledgement = options.bytes === String ? $util.base64.encode(message.app_acknowledgement, 0, message.app_acknowledgement.length) : options.bytes === Array ? Array.prototype.slice.call(message.app_acknowledgement) : message.app_acknowledgement; - if (message.forward_relayer_address != null && message.hasOwnProperty("forward_relayer_address")) - object.forward_relayer_address = message.forward_relayer_address; - if (message.underlying_app_success != null && message.hasOwnProperty("underlying_app_success")) - object.underlying_app_success = message.underlying_app_success; + if (message.port_id != null && message.hasOwnProperty("port_id")) + object.port_id = message.port_id; + if (message.channel_id != null && message.hasOwnProperty("channel_id")) + object.channel_id = message.channel_id; + if (message.relayer != null && message.hasOwnProperty("relayer")) + object.relayer = message.relayer; + if (message.counterparty_payee != null && message.hasOwnProperty("counterparty_payee")) + object.counterparty_payee = message.counterparty_payee; return object; }; /** - * Converts this IncentivizedAcknowledgement to JSON. + * Converts this MsgRegisterCounterpartyPayee to JSON. * @function toJSON - * @memberof ibc.applications.fee.v1.IncentivizedAcknowledgement + * @memberof ibc.applications.fee.v1.MsgRegisterCounterpartyPayee * @instance * @returns {Object.} JSON object */ - IncentivizedAcknowledgement.prototype.toJSON = function toJSON() { + MsgRegisterCounterpartyPayee.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return IncentivizedAcknowledgement; + return MsgRegisterCounterpartyPayee; })(); - v1.Query = (function() { + v1.MsgRegisterCounterpartyPayeeResponse = (function() { /** - * Constructs a new Query service. + * Properties of a MsgRegisterCounterpartyPayeeResponse. * @memberof ibc.applications.fee.v1 - * @classdesc Represents a Query - * @extends $protobuf.rpc.Service - * @constructor - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - */ - function Query(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } - - (Query.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Query; - - /** - * Callback as used by {@link ibc.applications.fee.v1.Query#incentivizedPackets}. - * @memberof ibc.applications.fee.v1.Query - * @typedef IncentivizedPacketsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.applications.fee.v1.QueryIncentivizedPacketsResponse} [response] QueryIncentivizedPacketsResponse - */ - - /** - * Calls IncentivizedPackets. - * @function incentivizedPackets - * @memberof ibc.applications.fee.v1.Query - * @instance - * @param {ibc.applications.fee.v1.IQueryIncentivizedPacketsRequest} request QueryIncentivizedPacketsRequest message or plain object - * @param {ibc.applications.fee.v1.Query.IncentivizedPacketsCallback} callback Node-style callback called with the error, if any, and QueryIncentivizedPacketsResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Query.prototype.incentivizedPackets = function incentivizedPackets(request, callback) { - return this.rpcCall(incentivizedPackets, $root.ibc.applications.fee.v1.QueryIncentivizedPacketsRequest, $root.ibc.applications.fee.v1.QueryIncentivizedPacketsResponse, request, callback); - }, "name", { value: "IncentivizedPackets" }); - - /** - * Calls IncentivizedPackets. - * @function incentivizedPackets - * @memberof ibc.applications.fee.v1.Query - * @instance - * @param {ibc.applications.fee.v1.IQueryIncentivizedPacketsRequest} request QueryIncentivizedPacketsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link ibc.applications.fee.v1.Query#incentivizedPacket}. - * @memberof ibc.applications.fee.v1.Query - * @typedef IncentivizedPacketCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.applications.fee.v1.QueryIncentivizedPacketResponse} [response] QueryIncentivizedPacketResponse - */ - - /** - * Calls IncentivizedPacket. - * @function incentivizedPacket - * @memberof ibc.applications.fee.v1.Query - * @instance - * @param {ibc.applications.fee.v1.IQueryIncentivizedPacketRequest} request QueryIncentivizedPacketRequest message or plain object - * @param {ibc.applications.fee.v1.Query.IncentivizedPacketCallback} callback Node-style callback called with the error, if any, and QueryIncentivizedPacketResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Query.prototype.incentivizedPacket = function incentivizedPacket(request, callback) { - return this.rpcCall(incentivizedPacket, $root.ibc.applications.fee.v1.QueryIncentivizedPacketRequest, $root.ibc.applications.fee.v1.QueryIncentivizedPacketResponse, request, callback); - }, "name", { value: "IncentivizedPacket" }); - - /** - * Calls IncentivizedPacket. - * @function incentivizedPacket - * @memberof ibc.applications.fee.v1.Query - * @instance - * @param {ibc.applications.fee.v1.IQueryIncentivizedPacketRequest} request QueryIncentivizedPacketRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link ibc.applications.fee.v1.Query#incentivizedPacketsForChannel}. - * @memberof ibc.applications.fee.v1.Query - * @typedef IncentivizedPacketsForChannelCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelResponse} [response] QueryIncentivizedPacketsForChannelResponse - */ - - /** - * Calls IncentivizedPacketsForChannel. - * @function incentivizedPacketsForChannel - * @memberof ibc.applications.fee.v1.Query - * @instance - * @param {ibc.applications.fee.v1.IQueryIncentivizedPacketsForChannelRequest} request QueryIncentivizedPacketsForChannelRequest message or plain object - * @param {ibc.applications.fee.v1.Query.IncentivizedPacketsForChannelCallback} callback Node-style callback called with the error, if any, and QueryIncentivizedPacketsForChannelResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Query.prototype.incentivizedPacketsForChannel = function incentivizedPacketsForChannel(request, callback) { - return this.rpcCall(incentivizedPacketsForChannel, $root.ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest, $root.ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelResponse, request, callback); - }, "name", { value: "IncentivizedPacketsForChannel" }); - - /** - * Calls IncentivizedPacketsForChannel. - * @function incentivizedPacketsForChannel - * @memberof ibc.applications.fee.v1.Query - * @instance - * @param {ibc.applications.fee.v1.IQueryIncentivizedPacketsForChannelRequest} request QueryIncentivizedPacketsForChannelRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link ibc.applications.fee.v1.Query#totalRecvFees}. - * @memberof ibc.applications.fee.v1.Query - * @typedef TotalRecvFeesCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.applications.fee.v1.QueryTotalRecvFeesResponse} [response] QueryTotalRecvFeesResponse - */ - - /** - * Calls TotalRecvFees. - * @function totalRecvFees - * @memberof ibc.applications.fee.v1.Query - * @instance - * @param {ibc.applications.fee.v1.IQueryTotalRecvFeesRequest} request QueryTotalRecvFeesRequest message or plain object - * @param {ibc.applications.fee.v1.Query.TotalRecvFeesCallback} callback Node-style callback called with the error, if any, and QueryTotalRecvFeesResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Query.prototype.totalRecvFees = function totalRecvFees(request, callback) { - return this.rpcCall(totalRecvFees, $root.ibc.applications.fee.v1.QueryTotalRecvFeesRequest, $root.ibc.applications.fee.v1.QueryTotalRecvFeesResponse, request, callback); - }, "name", { value: "TotalRecvFees" }); - - /** - * Calls TotalRecvFees. - * @function totalRecvFees - * @memberof ibc.applications.fee.v1.Query - * @instance - * @param {ibc.applications.fee.v1.IQueryTotalRecvFeesRequest} request QueryTotalRecvFeesRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link ibc.applications.fee.v1.Query#totalAckFees}. - * @memberof ibc.applications.fee.v1.Query - * @typedef TotalAckFeesCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.applications.fee.v1.QueryTotalAckFeesResponse} [response] QueryTotalAckFeesResponse - */ - - /** - * Calls TotalAckFees. - * @function totalAckFees - * @memberof ibc.applications.fee.v1.Query - * @instance - * @param {ibc.applications.fee.v1.IQueryTotalAckFeesRequest} request QueryTotalAckFeesRequest message or plain object - * @param {ibc.applications.fee.v1.Query.TotalAckFeesCallback} callback Node-style callback called with the error, if any, and QueryTotalAckFeesResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Query.prototype.totalAckFees = function totalAckFees(request, callback) { - return this.rpcCall(totalAckFees, $root.ibc.applications.fee.v1.QueryTotalAckFeesRequest, $root.ibc.applications.fee.v1.QueryTotalAckFeesResponse, request, callback); - }, "name", { value: "TotalAckFees" }); - - /** - * Calls TotalAckFees. - * @function totalAckFees - * @memberof ibc.applications.fee.v1.Query - * @instance - * @param {ibc.applications.fee.v1.IQueryTotalAckFeesRequest} request QueryTotalAckFeesRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link ibc.applications.fee.v1.Query#totalTimeoutFees}. - * @memberof ibc.applications.fee.v1.Query - * @typedef TotalTimeoutFeesCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.applications.fee.v1.QueryTotalTimeoutFeesResponse} [response] QueryTotalTimeoutFeesResponse - */ - - /** - * Calls TotalTimeoutFees. - * @function totalTimeoutFees - * @memberof ibc.applications.fee.v1.Query - * @instance - * @param {ibc.applications.fee.v1.IQueryTotalTimeoutFeesRequest} request QueryTotalTimeoutFeesRequest message or plain object - * @param {ibc.applications.fee.v1.Query.TotalTimeoutFeesCallback} callback Node-style callback called with the error, if any, and QueryTotalTimeoutFeesResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Query.prototype.totalTimeoutFees = function totalTimeoutFees(request, callback) { - return this.rpcCall(totalTimeoutFees, $root.ibc.applications.fee.v1.QueryTotalTimeoutFeesRequest, $root.ibc.applications.fee.v1.QueryTotalTimeoutFeesResponse, request, callback); - }, "name", { value: "TotalTimeoutFees" }); - - /** - * Calls TotalTimeoutFees. - * @function totalTimeoutFees - * @memberof ibc.applications.fee.v1.Query - * @instance - * @param {ibc.applications.fee.v1.IQueryTotalTimeoutFeesRequest} request QueryTotalTimeoutFeesRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link ibc.applications.fee.v1.Query#payee}. - * @memberof ibc.applications.fee.v1.Query - * @typedef PayeeCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.applications.fee.v1.QueryPayeeResponse} [response] QueryPayeeResponse - */ - - /** - * Calls Payee. - * @function payee - * @memberof ibc.applications.fee.v1.Query - * @instance - * @param {ibc.applications.fee.v1.IQueryPayeeRequest} request QueryPayeeRequest message or plain object - * @param {ibc.applications.fee.v1.Query.PayeeCallback} callback Node-style callback called with the error, if any, and QueryPayeeResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Query.prototype.payee = function payee(request, callback) { - return this.rpcCall(payee, $root.ibc.applications.fee.v1.QueryPayeeRequest, $root.ibc.applications.fee.v1.QueryPayeeResponse, request, callback); - }, "name", { value: "Payee" }); - - /** - * Calls Payee. - * @function payee - * @memberof ibc.applications.fee.v1.Query - * @instance - * @param {ibc.applications.fee.v1.IQueryPayeeRequest} request QueryPayeeRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * @interface IMsgRegisterCounterpartyPayeeResponse */ /** - * Callback as used by {@link ibc.applications.fee.v1.Query#counterpartyPayee}. - * @memberof ibc.applications.fee.v1.Query - * @typedef CounterpartyPayeeCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.applications.fee.v1.QueryCounterpartyPayeeResponse} [response] QueryCounterpartyPayeeResponse + * Constructs a new MsgRegisterCounterpartyPayeeResponse. + * @memberof ibc.applications.fee.v1 + * @classdesc Represents a MsgRegisterCounterpartyPayeeResponse. + * @implements IMsgRegisterCounterpartyPayeeResponse + * @constructor + * @param {ibc.applications.fee.v1.IMsgRegisterCounterpartyPayeeResponse=} [properties] Properties to set */ + function MsgRegisterCounterpartyPayeeResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * Calls CounterpartyPayee. - * @function counterpartyPayee - * @memberof ibc.applications.fee.v1.Query - * @instance - * @param {ibc.applications.fee.v1.IQueryCounterpartyPayeeRequest} request QueryCounterpartyPayeeRequest message or plain object - * @param {ibc.applications.fee.v1.Query.CounterpartyPayeeCallback} callback Node-style callback called with the error, if any, and QueryCounterpartyPayeeResponse - * @returns {undefined} - * @variation 1 + * Encodes the specified MsgRegisterCounterpartyPayeeResponse message. Does not implicitly {@link ibc.applications.fee.v1.MsgRegisterCounterpartyPayeeResponse.verify|verify} messages. + * @function encode + * @memberof ibc.applications.fee.v1.MsgRegisterCounterpartyPayeeResponse + * @static + * @param {ibc.applications.fee.v1.IMsgRegisterCounterpartyPayeeResponse} message MsgRegisterCounterpartyPayeeResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Object.defineProperty(Query.prototype.counterpartyPayee = function counterpartyPayee(request, callback) { - return this.rpcCall(counterpartyPayee, $root.ibc.applications.fee.v1.QueryCounterpartyPayeeRequest, $root.ibc.applications.fee.v1.QueryCounterpartyPayeeResponse, request, callback); - }, "name", { value: "CounterpartyPayee" }); + MsgRegisterCounterpartyPayeeResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; /** - * Calls CounterpartyPayee. - * @function counterpartyPayee - * @memberof ibc.applications.fee.v1.Query - * @instance - * @param {ibc.applications.fee.v1.IQueryCounterpartyPayeeRequest} request QueryCounterpartyPayeeRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Encodes the specified MsgRegisterCounterpartyPayeeResponse message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.MsgRegisterCounterpartyPayeeResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof ibc.applications.fee.v1.MsgRegisterCounterpartyPayeeResponse + * @static + * @param {ibc.applications.fee.v1.IMsgRegisterCounterpartyPayeeResponse} message MsgRegisterCounterpartyPayeeResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ + MsgRegisterCounterpartyPayeeResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Callback as used by {@link ibc.applications.fee.v1.Query#feeEnabledChannels}. - * @memberof ibc.applications.fee.v1.Query - * @typedef FeeEnabledChannelsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.applications.fee.v1.QueryFeeEnabledChannelsResponse} [response] QueryFeeEnabledChannelsResponse + * Decodes a MsgRegisterCounterpartyPayeeResponse message from the specified reader or buffer. + * @function decode + * @memberof ibc.applications.fee.v1.MsgRegisterCounterpartyPayeeResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {ibc.applications.fee.v1.MsgRegisterCounterpartyPayeeResponse} MsgRegisterCounterpartyPayeeResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + MsgRegisterCounterpartyPayeeResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.MsgRegisterCounterpartyPayeeResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Calls FeeEnabledChannels. - * @function feeEnabledChannels - * @memberof ibc.applications.fee.v1.Query - * @instance - * @param {ibc.applications.fee.v1.IQueryFeeEnabledChannelsRequest} request QueryFeeEnabledChannelsRequest message or plain object - * @param {ibc.applications.fee.v1.Query.FeeEnabledChannelsCallback} callback Node-style callback called with the error, if any, and QueryFeeEnabledChannelsResponse - * @returns {undefined} - * @variation 1 + * Decodes a MsgRegisterCounterpartyPayeeResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof ibc.applications.fee.v1.MsgRegisterCounterpartyPayeeResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {ibc.applications.fee.v1.MsgRegisterCounterpartyPayeeResponse} MsgRegisterCounterpartyPayeeResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Object.defineProperty(Query.prototype.feeEnabledChannels = function feeEnabledChannels(request, callback) { - return this.rpcCall(feeEnabledChannels, $root.ibc.applications.fee.v1.QueryFeeEnabledChannelsRequest, $root.ibc.applications.fee.v1.QueryFeeEnabledChannelsResponse, request, callback); - }, "name", { value: "FeeEnabledChannels" }); + MsgRegisterCounterpartyPayeeResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Calls FeeEnabledChannels. - * @function feeEnabledChannels - * @memberof ibc.applications.fee.v1.Query - * @instance - * @param {ibc.applications.fee.v1.IQueryFeeEnabledChannelsRequest} request QueryFeeEnabledChannelsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Verifies a MsgRegisterCounterpartyPayeeResponse message. + * @function verify + * @memberof ibc.applications.fee.v1.MsgRegisterCounterpartyPayeeResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ + MsgRegisterCounterpartyPayeeResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; /** - * Callback as used by {@link ibc.applications.fee.v1.Query#feeEnabledChannel}. - * @memberof ibc.applications.fee.v1.Query - * @typedef FeeEnabledChannelCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.applications.fee.v1.QueryFeeEnabledChannelResponse} [response] QueryFeeEnabledChannelResponse + * Creates a MsgRegisterCounterpartyPayeeResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof ibc.applications.fee.v1.MsgRegisterCounterpartyPayeeResponse + * @static + * @param {Object.} object Plain object + * @returns {ibc.applications.fee.v1.MsgRegisterCounterpartyPayeeResponse} MsgRegisterCounterpartyPayeeResponse */ + MsgRegisterCounterpartyPayeeResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.fee.v1.MsgRegisterCounterpartyPayeeResponse) + return object; + return new $root.ibc.applications.fee.v1.MsgRegisterCounterpartyPayeeResponse(); + }; /** - * Calls FeeEnabledChannel. - * @function feeEnabledChannel - * @memberof ibc.applications.fee.v1.Query - * @instance - * @param {ibc.applications.fee.v1.IQueryFeeEnabledChannelRequest} request QueryFeeEnabledChannelRequest message or plain object - * @param {ibc.applications.fee.v1.Query.FeeEnabledChannelCallback} callback Node-style callback called with the error, if any, and QueryFeeEnabledChannelResponse - * @returns {undefined} - * @variation 1 + * Creates a plain object from a MsgRegisterCounterpartyPayeeResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof ibc.applications.fee.v1.MsgRegisterCounterpartyPayeeResponse + * @static + * @param {ibc.applications.fee.v1.MsgRegisterCounterpartyPayeeResponse} message MsgRegisterCounterpartyPayeeResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - Object.defineProperty(Query.prototype.feeEnabledChannel = function feeEnabledChannel(request, callback) { - return this.rpcCall(feeEnabledChannel, $root.ibc.applications.fee.v1.QueryFeeEnabledChannelRequest, $root.ibc.applications.fee.v1.QueryFeeEnabledChannelResponse, request, callback); - }, "name", { value: "FeeEnabledChannel" }); + MsgRegisterCounterpartyPayeeResponse.toObject = function toObject() { + return {}; + }; /** - * Calls FeeEnabledChannel. - * @function feeEnabledChannel - * @memberof ibc.applications.fee.v1.Query + * Converts this MsgRegisterCounterpartyPayeeResponse to JSON. + * @function toJSON + * @memberof ibc.applications.fee.v1.MsgRegisterCounterpartyPayeeResponse * @instance - * @param {ibc.applications.fee.v1.IQueryFeeEnabledChannelRequest} request QueryFeeEnabledChannelRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * @returns {Object.} JSON object */ + MsgRegisterCounterpartyPayeeResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return Query; + return MsgRegisterCounterpartyPayeeResponse; })(); - v1.QueryIncentivizedPacketsRequest = (function() { + v1.MsgPayPacketFee = (function() { /** - * Properties of a QueryIncentivizedPacketsRequest. + * Properties of a MsgPayPacketFee. * @memberof ibc.applications.fee.v1 - * @interface IQueryIncentivizedPacketsRequest - * @property {cosmos.base.query.v1beta1.IPageRequest|null} [pagination] QueryIncentivizedPacketsRequest pagination - * @property {Long|null} [query_height] QueryIncentivizedPacketsRequest query_height + * @interface IMsgPayPacketFee + * @property {ibc.applications.fee.v1.IFee|null} [fee] MsgPayPacketFee fee + * @property {string|null} [source_port_id] MsgPayPacketFee source_port_id + * @property {string|null} [source_channel_id] MsgPayPacketFee source_channel_id + * @property {string|null} [signer] MsgPayPacketFee signer + * @property {Array.|null} [relayers] MsgPayPacketFee relayers */ /** - * Constructs a new QueryIncentivizedPacketsRequest. + * Constructs a new MsgPayPacketFee. * @memberof ibc.applications.fee.v1 - * @classdesc Represents a QueryIncentivizedPacketsRequest. - * @implements IQueryIncentivizedPacketsRequest + * @classdesc Represents a MsgPayPacketFee. + * @implements IMsgPayPacketFee * @constructor - * @param {ibc.applications.fee.v1.IQueryIncentivizedPacketsRequest=} [properties] Properties to set + * @param {ibc.applications.fee.v1.IMsgPayPacketFee=} [properties] Properties to set */ - function QueryIncentivizedPacketsRequest(properties) { + function MsgPayPacketFee(properties) { + this.relayers = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -21494,76 +27734,118 @@ } /** - * QueryIncentivizedPacketsRequest pagination. - * @member {cosmos.base.query.v1beta1.IPageRequest|null|undefined} pagination - * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsRequest + * MsgPayPacketFee fee. + * @member {ibc.applications.fee.v1.IFee|null|undefined} fee + * @memberof ibc.applications.fee.v1.MsgPayPacketFee * @instance */ - QueryIncentivizedPacketsRequest.prototype.pagination = null; + MsgPayPacketFee.prototype.fee = null; /** - * QueryIncentivizedPacketsRequest query_height. - * @member {Long} query_height - * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsRequest + * MsgPayPacketFee source_port_id. + * @member {string} source_port_id + * @memberof ibc.applications.fee.v1.MsgPayPacketFee * @instance */ - QueryIncentivizedPacketsRequest.prototype.query_height = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + MsgPayPacketFee.prototype.source_port_id = ""; /** - * Encodes the specified QueryIncentivizedPacketsRequest message. Does not implicitly {@link ibc.applications.fee.v1.QueryIncentivizedPacketsRequest.verify|verify} messages. + * MsgPayPacketFee source_channel_id. + * @member {string} source_channel_id + * @memberof ibc.applications.fee.v1.MsgPayPacketFee + * @instance + */ + MsgPayPacketFee.prototype.source_channel_id = ""; + + /** + * MsgPayPacketFee signer. + * @member {string} signer + * @memberof ibc.applications.fee.v1.MsgPayPacketFee + * @instance + */ + MsgPayPacketFee.prototype.signer = ""; + + /** + * MsgPayPacketFee relayers. + * @member {Array.} relayers + * @memberof ibc.applications.fee.v1.MsgPayPacketFee + * @instance + */ + MsgPayPacketFee.prototype.relayers = $util.emptyArray; + + /** + * Encodes the specified MsgPayPacketFee message. Does not implicitly {@link ibc.applications.fee.v1.MsgPayPacketFee.verify|verify} messages. * @function encode - * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsRequest + * @memberof ibc.applications.fee.v1.MsgPayPacketFee * @static - * @param {ibc.applications.fee.v1.IQueryIncentivizedPacketsRequest} message QueryIncentivizedPacketsRequest message or plain object to encode + * @param {ibc.applications.fee.v1.IMsgPayPacketFee} message MsgPayPacketFee message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryIncentivizedPacketsRequest.encode = function encode(message, writer) { + MsgPayPacketFee.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.pagination != null && Object.hasOwnProperty.call(message, "pagination")) - $root.cosmos.base.query.v1beta1.PageRequest.encode(message.pagination, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.query_height != null && Object.hasOwnProperty.call(message, "query_height")) - writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.query_height); + if (message.fee != null && Object.hasOwnProperty.call(message, "fee")) + $root.ibc.applications.fee.v1.Fee.encode(message.fee, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.source_port_id != null && Object.hasOwnProperty.call(message, "source_port_id")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.source_port_id); + if (message.source_channel_id != null && Object.hasOwnProperty.call(message, "source_channel_id")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.source_channel_id); + if (message.signer != null && Object.hasOwnProperty.call(message, "signer")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.signer); + if (message.relayers != null && message.relayers.length) + for (var i = 0; i < message.relayers.length; ++i) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.relayers[i]); return writer; }; /** - * Encodes the specified QueryIncentivizedPacketsRequest message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.QueryIncentivizedPacketsRequest.verify|verify} messages. + * Encodes the specified MsgPayPacketFee message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.MsgPayPacketFee.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsRequest + * @memberof ibc.applications.fee.v1.MsgPayPacketFee * @static - * @param {ibc.applications.fee.v1.IQueryIncentivizedPacketsRequest} message QueryIncentivizedPacketsRequest message or plain object to encode + * @param {ibc.applications.fee.v1.IMsgPayPacketFee} message MsgPayPacketFee message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryIncentivizedPacketsRequest.encodeDelimited = function encodeDelimited(message, writer) { + MsgPayPacketFee.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryIncentivizedPacketsRequest message from the specified reader or buffer. + * Decodes a MsgPayPacketFee message from the specified reader or buffer. * @function decode - * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsRequest + * @memberof ibc.applications.fee.v1.MsgPayPacketFee * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.fee.v1.QueryIncentivizedPacketsRequest} QueryIncentivizedPacketsRequest + * @returns {ibc.applications.fee.v1.MsgPayPacketFee} MsgPayPacketFee * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryIncentivizedPacketsRequest.decode = function decode(reader, length) { + MsgPayPacketFee.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.QueryIncentivizedPacketsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.MsgPayPacketFee(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.pagination = $root.cosmos.base.query.v1beta1.PageRequest.decode(reader, reader.uint32()); + message.fee = $root.ibc.applications.fee.v1.Fee.decode(reader, reader.uint32()); break; case 2: - message.query_height = reader.uint64(); + message.source_port_id = reader.string(); + break; + case 3: + message.source_channel_id = reader.string(); + break; + case 4: + message.signer = reader.string(); + break; + case 5: + if (!(message.relayers && message.relayers.length)) + message.relayers = []; + message.relayers.push(reader.string()); break; default: reader.skipType(tag & 7); @@ -21574,136 +27856,157 @@ }; /** - * Decodes a QueryIncentivizedPacketsRequest message from the specified reader or buffer, length delimited. + * Decodes a MsgPayPacketFee message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsRequest + * @memberof ibc.applications.fee.v1.MsgPayPacketFee * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.fee.v1.QueryIncentivizedPacketsRequest} QueryIncentivizedPacketsRequest + * @returns {ibc.applications.fee.v1.MsgPayPacketFee} MsgPayPacketFee * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryIncentivizedPacketsRequest.decodeDelimited = function decodeDelimited(reader) { + MsgPayPacketFee.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryIncentivizedPacketsRequest message. + * Verifies a MsgPayPacketFee message. * @function verify - * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsRequest + * @memberof ibc.applications.fee.v1.MsgPayPacketFee * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryIncentivizedPacketsRequest.verify = function verify(message) { + MsgPayPacketFee.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.pagination != null && message.hasOwnProperty("pagination")) { - var error = $root.cosmos.base.query.v1beta1.PageRequest.verify(message.pagination); + if (message.fee != null && message.hasOwnProperty("fee")) { + var error = $root.ibc.applications.fee.v1.Fee.verify(message.fee); if (error) - return "pagination." + error; + return "fee." + error; + } + if (message.source_port_id != null && message.hasOwnProperty("source_port_id")) + if (!$util.isString(message.source_port_id)) + return "source_port_id: string expected"; + if (message.source_channel_id != null && message.hasOwnProperty("source_channel_id")) + if (!$util.isString(message.source_channel_id)) + return "source_channel_id: string expected"; + if (message.signer != null && message.hasOwnProperty("signer")) + if (!$util.isString(message.signer)) + return "signer: string expected"; + if (message.relayers != null && message.hasOwnProperty("relayers")) { + if (!Array.isArray(message.relayers)) + return "relayers: array expected"; + for (var i = 0; i < message.relayers.length; ++i) + if (!$util.isString(message.relayers[i])) + return "relayers: string[] expected"; } - if (message.query_height != null && message.hasOwnProperty("query_height")) - if (!$util.isInteger(message.query_height) && !(message.query_height && $util.isInteger(message.query_height.low) && $util.isInteger(message.query_height.high))) - return "query_height: integer|Long expected"; return null; }; /** - * Creates a QueryIncentivizedPacketsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MsgPayPacketFee message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsRequest + * @memberof ibc.applications.fee.v1.MsgPayPacketFee * @static * @param {Object.} object Plain object - * @returns {ibc.applications.fee.v1.QueryIncentivizedPacketsRequest} QueryIncentivizedPacketsRequest + * @returns {ibc.applications.fee.v1.MsgPayPacketFee} MsgPayPacketFee */ - QueryIncentivizedPacketsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.fee.v1.QueryIncentivizedPacketsRequest) + MsgPayPacketFee.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.fee.v1.MsgPayPacketFee) return object; - var message = new $root.ibc.applications.fee.v1.QueryIncentivizedPacketsRequest(); - if (object.pagination != null) { - if (typeof object.pagination !== "object") - throw TypeError(".ibc.applications.fee.v1.QueryIncentivizedPacketsRequest.pagination: object expected"); - message.pagination = $root.cosmos.base.query.v1beta1.PageRequest.fromObject(object.pagination); + var message = new $root.ibc.applications.fee.v1.MsgPayPacketFee(); + if (object.fee != null) { + if (typeof object.fee !== "object") + throw TypeError(".ibc.applications.fee.v1.MsgPayPacketFee.fee: object expected"); + message.fee = $root.ibc.applications.fee.v1.Fee.fromObject(object.fee); + } + if (object.source_port_id != null) + message.source_port_id = String(object.source_port_id); + if (object.source_channel_id != null) + message.source_channel_id = String(object.source_channel_id); + if (object.signer != null) + message.signer = String(object.signer); + if (object.relayers) { + if (!Array.isArray(object.relayers)) + throw TypeError(".ibc.applications.fee.v1.MsgPayPacketFee.relayers: array expected"); + message.relayers = []; + for (var i = 0; i < object.relayers.length; ++i) + message.relayers[i] = String(object.relayers[i]); } - if (object.query_height != null) - if ($util.Long) - (message.query_height = $util.Long.fromValue(object.query_height)).unsigned = true; - else if (typeof object.query_height === "string") - message.query_height = parseInt(object.query_height, 10); - else if (typeof object.query_height === "number") - message.query_height = object.query_height; - else if (typeof object.query_height === "object") - message.query_height = new $util.LongBits(object.query_height.low >>> 0, object.query_height.high >>> 0).toNumber(true); return message; }; /** - * Creates a plain object from a QueryIncentivizedPacketsRequest message. Also converts values to other types if specified. + * Creates a plain object from a MsgPayPacketFee message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsRequest + * @memberof ibc.applications.fee.v1.MsgPayPacketFee * @static - * @param {ibc.applications.fee.v1.QueryIncentivizedPacketsRequest} message QueryIncentivizedPacketsRequest + * @param {ibc.applications.fee.v1.MsgPayPacketFee} message MsgPayPacketFee * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryIncentivizedPacketsRequest.toObject = function toObject(message, options) { + MsgPayPacketFee.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.relayers = []; if (options.defaults) { - object.pagination = null; - if ($util.Long) { - var long = new $util.Long(0, 0, true); - object.query_height = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.query_height = options.longs === String ? "0" : 0; + object.fee = null; + object.source_port_id = ""; + object.source_channel_id = ""; + object.signer = ""; + } + if (message.fee != null && message.hasOwnProperty("fee")) + object.fee = $root.ibc.applications.fee.v1.Fee.toObject(message.fee, options); + if (message.source_port_id != null && message.hasOwnProperty("source_port_id")) + object.source_port_id = message.source_port_id; + if (message.source_channel_id != null && message.hasOwnProperty("source_channel_id")) + object.source_channel_id = message.source_channel_id; + if (message.signer != null && message.hasOwnProperty("signer")) + object.signer = message.signer; + if (message.relayers && message.relayers.length) { + object.relayers = []; + for (var j = 0; j < message.relayers.length; ++j) + object.relayers[j] = message.relayers[j]; } - if (message.pagination != null && message.hasOwnProperty("pagination")) - object.pagination = $root.cosmos.base.query.v1beta1.PageRequest.toObject(message.pagination, options); - if (message.query_height != null && message.hasOwnProperty("query_height")) - if (typeof message.query_height === "number") - object.query_height = options.longs === String ? String(message.query_height) : message.query_height; - else - object.query_height = options.longs === String ? $util.Long.prototype.toString.call(message.query_height) : options.longs === Number ? new $util.LongBits(message.query_height.low >>> 0, message.query_height.high >>> 0).toNumber(true) : message.query_height; return object; }; /** - * Converts this QueryIncentivizedPacketsRequest to JSON. + * Converts this MsgPayPacketFee to JSON. * @function toJSON - * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsRequest + * @memberof ibc.applications.fee.v1.MsgPayPacketFee * @instance * @returns {Object.} JSON object */ - QueryIncentivizedPacketsRequest.prototype.toJSON = function toJSON() { + MsgPayPacketFee.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryIncentivizedPacketsRequest; + return MsgPayPacketFee; })(); - v1.QueryIncentivizedPacketsResponse = (function() { + v1.MsgPayPacketFeeResponse = (function() { /** - * Properties of a QueryIncentivizedPacketsResponse. + * Properties of a MsgPayPacketFeeResponse. * @memberof ibc.applications.fee.v1 - * @interface IQueryIncentivizedPacketsResponse - * @property {Array.|null} [incentivized_packets] QueryIncentivizedPacketsResponse incentivized_packets + * @interface IMsgPayPacketFeeResponse */ /** - * Constructs a new QueryIncentivizedPacketsResponse. + * Constructs a new MsgPayPacketFeeResponse. * @memberof ibc.applications.fee.v1 - * @classdesc Represents a QueryIncentivizedPacketsResponse. - * @implements IQueryIncentivizedPacketsResponse + * @classdesc Represents a MsgPayPacketFeeResponse. + * @implements IMsgPayPacketFeeResponse * @constructor - * @param {ibc.applications.fee.v1.IQueryIncentivizedPacketsResponse=} [properties] Properties to set + * @param {ibc.applications.fee.v1.IMsgPayPacketFeeResponse=} [properties] Properties to set */ - function QueryIncentivizedPacketsResponse(properties) { - this.incentivized_packets = []; + function MsgPayPacketFeeResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -21711,67 +28014,51 @@ } /** - * QueryIncentivizedPacketsResponse incentivized_packets. - * @member {Array.} incentivized_packets - * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsResponse - * @instance - */ - QueryIncentivizedPacketsResponse.prototype.incentivized_packets = $util.emptyArray; - - /** - * Encodes the specified QueryIncentivizedPacketsResponse message. Does not implicitly {@link ibc.applications.fee.v1.QueryIncentivizedPacketsResponse.verify|verify} messages. + * Encodes the specified MsgPayPacketFeeResponse message. Does not implicitly {@link ibc.applications.fee.v1.MsgPayPacketFeeResponse.verify|verify} messages. * @function encode - * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsResponse + * @memberof ibc.applications.fee.v1.MsgPayPacketFeeResponse * @static - * @param {ibc.applications.fee.v1.IQueryIncentivizedPacketsResponse} message QueryIncentivizedPacketsResponse message or plain object to encode + * @param {ibc.applications.fee.v1.IMsgPayPacketFeeResponse} message MsgPayPacketFeeResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryIncentivizedPacketsResponse.encode = function encode(message, writer) { + MsgPayPacketFeeResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.incentivized_packets != null && message.incentivized_packets.length) - for (var i = 0; i < message.incentivized_packets.length; ++i) - $root.ibc.applications.fee.v1.IdentifiedPacketFees.encode(message.incentivized_packets[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified QueryIncentivizedPacketsResponse message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.QueryIncentivizedPacketsResponse.verify|verify} messages. + * Encodes the specified MsgPayPacketFeeResponse message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.MsgPayPacketFeeResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsResponse + * @memberof ibc.applications.fee.v1.MsgPayPacketFeeResponse * @static - * @param {ibc.applications.fee.v1.IQueryIncentivizedPacketsResponse} message QueryIncentivizedPacketsResponse message or plain object to encode + * @param {ibc.applications.fee.v1.IMsgPayPacketFeeResponse} message MsgPayPacketFeeResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryIncentivizedPacketsResponse.encodeDelimited = function encodeDelimited(message, writer) { + MsgPayPacketFeeResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryIncentivizedPacketsResponse message from the specified reader or buffer. + * Decodes a MsgPayPacketFeeResponse message from the specified reader or buffer. * @function decode - * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsResponse + * @memberof ibc.applications.fee.v1.MsgPayPacketFeeResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.fee.v1.QueryIncentivizedPacketsResponse} QueryIncentivizedPacketsResponse + * @returns {ibc.applications.fee.v1.MsgPayPacketFeeResponse} MsgPayPacketFeeResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryIncentivizedPacketsResponse.decode = function decode(reader, length) { + MsgPayPacketFeeResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.QueryIncentivizedPacketsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.MsgPayPacketFeeResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - if (!(message.incentivized_packets && message.incentivized_packets.length)) - message.incentivized_packets = []; - message.incentivized_packets.push($root.ibc.applications.fee.v1.IdentifiedPacketFees.decode(reader, reader.uint32())); - break; default: reader.skipType(tag & 7); break; @@ -21781,125 +28068,95 @@ }; /** - * Decodes a QueryIncentivizedPacketsResponse message from the specified reader or buffer, length delimited. + * Decodes a MsgPayPacketFeeResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsResponse + * @memberof ibc.applications.fee.v1.MsgPayPacketFeeResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.fee.v1.QueryIncentivizedPacketsResponse} QueryIncentivizedPacketsResponse + * @returns {ibc.applications.fee.v1.MsgPayPacketFeeResponse} MsgPayPacketFeeResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryIncentivizedPacketsResponse.decodeDelimited = function decodeDelimited(reader) { + MsgPayPacketFeeResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryIncentivizedPacketsResponse message. + * Verifies a MsgPayPacketFeeResponse message. * @function verify - * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsResponse + * @memberof ibc.applications.fee.v1.MsgPayPacketFeeResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryIncentivizedPacketsResponse.verify = function verify(message) { + MsgPayPacketFeeResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.incentivized_packets != null && message.hasOwnProperty("incentivized_packets")) { - if (!Array.isArray(message.incentivized_packets)) - return "incentivized_packets: array expected"; - for (var i = 0; i < message.incentivized_packets.length; ++i) { - var error = $root.ibc.applications.fee.v1.IdentifiedPacketFees.verify(message.incentivized_packets[i]); - if (error) - return "incentivized_packets." + error; - } - } return null; }; /** - * Creates a QueryIncentivizedPacketsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a MsgPayPacketFeeResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsResponse + * @memberof ibc.applications.fee.v1.MsgPayPacketFeeResponse * @static * @param {Object.} object Plain object - * @returns {ibc.applications.fee.v1.QueryIncentivizedPacketsResponse} QueryIncentivizedPacketsResponse + * @returns {ibc.applications.fee.v1.MsgPayPacketFeeResponse} MsgPayPacketFeeResponse */ - QueryIncentivizedPacketsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.fee.v1.QueryIncentivizedPacketsResponse) + MsgPayPacketFeeResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.fee.v1.MsgPayPacketFeeResponse) return object; - var message = new $root.ibc.applications.fee.v1.QueryIncentivizedPacketsResponse(); - if (object.incentivized_packets) { - if (!Array.isArray(object.incentivized_packets)) - throw TypeError(".ibc.applications.fee.v1.QueryIncentivizedPacketsResponse.incentivized_packets: array expected"); - message.incentivized_packets = []; - for (var i = 0; i < object.incentivized_packets.length; ++i) { - if (typeof object.incentivized_packets[i] !== "object") - throw TypeError(".ibc.applications.fee.v1.QueryIncentivizedPacketsResponse.incentivized_packets: object expected"); - message.incentivized_packets[i] = $root.ibc.applications.fee.v1.IdentifiedPacketFees.fromObject(object.incentivized_packets[i]); - } - } - return message; + return new $root.ibc.applications.fee.v1.MsgPayPacketFeeResponse(); }; /** - * Creates a plain object from a QueryIncentivizedPacketsResponse message. Also converts values to other types if specified. + * Creates a plain object from a MsgPayPacketFeeResponse message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsResponse + * @memberof ibc.applications.fee.v1.MsgPayPacketFeeResponse * @static - * @param {ibc.applications.fee.v1.QueryIncentivizedPacketsResponse} message QueryIncentivizedPacketsResponse + * @param {ibc.applications.fee.v1.MsgPayPacketFeeResponse} message MsgPayPacketFeeResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryIncentivizedPacketsResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.incentivized_packets = []; - if (message.incentivized_packets && message.incentivized_packets.length) { - object.incentivized_packets = []; - for (var j = 0; j < message.incentivized_packets.length; ++j) - object.incentivized_packets[j] = $root.ibc.applications.fee.v1.IdentifiedPacketFees.toObject(message.incentivized_packets[j], options); - } - return object; + MsgPayPacketFeeResponse.toObject = function toObject() { + return {}; }; /** - * Converts this QueryIncentivizedPacketsResponse to JSON. + * Converts this MsgPayPacketFeeResponse to JSON. * @function toJSON - * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsResponse + * @memberof ibc.applications.fee.v1.MsgPayPacketFeeResponse * @instance * @returns {Object.} JSON object */ - QueryIncentivizedPacketsResponse.prototype.toJSON = function toJSON() { + MsgPayPacketFeeResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryIncentivizedPacketsResponse; + return MsgPayPacketFeeResponse; })(); - v1.QueryIncentivizedPacketRequest = (function() { + v1.MsgPayPacketFeeAsync = (function() { /** - * Properties of a QueryIncentivizedPacketRequest. + * Properties of a MsgPayPacketFeeAsync. * @memberof ibc.applications.fee.v1 - * @interface IQueryIncentivizedPacketRequest - * @property {ibc.core.channel.v1.IPacketId|null} [packet_id] QueryIncentivizedPacketRequest packet_id - * @property {Long|null} [query_height] QueryIncentivizedPacketRequest query_height + * @interface IMsgPayPacketFeeAsync + * @property {ibc.core.channel.v1.IPacketId|null} [packet_id] MsgPayPacketFeeAsync packet_id + * @property {ibc.applications.fee.v1.IPacketFee|null} [packet_fee] MsgPayPacketFeeAsync packet_fee */ /** - * Constructs a new QueryIncentivizedPacketRequest. + * Constructs a new MsgPayPacketFeeAsync. * @memberof ibc.applications.fee.v1 - * @classdesc Represents a QueryIncentivizedPacketRequest. - * @implements IQueryIncentivizedPacketRequest + * @classdesc Represents a MsgPayPacketFeeAsync. + * @implements IMsgPayPacketFeeAsync * @constructor - * @param {ibc.applications.fee.v1.IQueryIncentivizedPacketRequest=} [properties] Properties to set + * @param {ibc.applications.fee.v1.IMsgPayPacketFeeAsync=} [properties] Properties to set */ - function QueryIncentivizedPacketRequest(properties) { + function MsgPayPacketFeeAsync(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -21907,68 +28164,68 @@ } /** - * QueryIncentivizedPacketRequest packet_id. + * MsgPayPacketFeeAsync packet_id. * @member {ibc.core.channel.v1.IPacketId|null|undefined} packet_id - * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketRequest + * @memberof ibc.applications.fee.v1.MsgPayPacketFeeAsync * @instance */ - QueryIncentivizedPacketRequest.prototype.packet_id = null; + MsgPayPacketFeeAsync.prototype.packet_id = null; /** - * QueryIncentivizedPacketRequest query_height. - * @member {Long} query_height - * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketRequest + * MsgPayPacketFeeAsync packet_fee. + * @member {ibc.applications.fee.v1.IPacketFee|null|undefined} packet_fee + * @memberof ibc.applications.fee.v1.MsgPayPacketFeeAsync * @instance */ - QueryIncentivizedPacketRequest.prototype.query_height = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + MsgPayPacketFeeAsync.prototype.packet_fee = null; /** - * Encodes the specified QueryIncentivizedPacketRequest message. Does not implicitly {@link ibc.applications.fee.v1.QueryIncentivizedPacketRequest.verify|verify} messages. + * Encodes the specified MsgPayPacketFeeAsync message. Does not implicitly {@link ibc.applications.fee.v1.MsgPayPacketFeeAsync.verify|verify} messages. * @function encode - * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketRequest + * @memberof ibc.applications.fee.v1.MsgPayPacketFeeAsync * @static - * @param {ibc.applications.fee.v1.IQueryIncentivizedPacketRequest} message QueryIncentivizedPacketRequest message or plain object to encode + * @param {ibc.applications.fee.v1.IMsgPayPacketFeeAsync} message MsgPayPacketFeeAsync message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryIncentivizedPacketRequest.encode = function encode(message, writer) { + MsgPayPacketFeeAsync.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.packet_id != null && Object.hasOwnProperty.call(message, "packet_id")) $root.ibc.core.channel.v1.PacketId.encode(message.packet_id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.query_height != null && Object.hasOwnProperty.call(message, "query_height")) - writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.query_height); + if (message.packet_fee != null && Object.hasOwnProperty.call(message, "packet_fee")) + $root.ibc.applications.fee.v1.PacketFee.encode(message.packet_fee, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified QueryIncentivizedPacketRequest message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.QueryIncentivizedPacketRequest.verify|verify} messages. + * Encodes the specified MsgPayPacketFeeAsync message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.MsgPayPacketFeeAsync.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketRequest + * @memberof ibc.applications.fee.v1.MsgPayPacketFeeAsync * @static - * @param {ibc.applications.fee.v1.IQueryIncentivizedPacketRequest} message QueryIncentivizedPacketRequest message or plain object to encode + * @param {ibc.applications.fee.v1.IMsgPayPacketFeeAsync} message MsgPayPacketFeeAsync message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryIncentivizedPacketRequest.encodeDelimited = function encodeDelimited(message, writer) { + MsgPayPacketFeeAsync.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryIncentivizedPacketRequest message from the specified reader or buffer. + * Decodes a MsgPayPacketFeeAsync message from the specified reader or buffer. * @function decode - * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketRequest + * @memberof ibc.applications.fee.v1.MsgPayPacketFeeAsync * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.fee.v1.QueryIncentivizedPacketRequest} QueryIncentivizedPacketRequest + * @returns {ibc.applications.fee.v1.MsgPayPacketFeeAsync} MsgPayPacketFeeAsync * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryIncentivizedPacketRequest.decode = function decode(reader, length) { + MsgPayPacketFeeAsync.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.QueryIncentivizedPacketRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.MsgPayPacketFeeAsync(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -21976,7 +28233,7 @@ message.packet_id = $root.ibc.core.channel.v1.PacketId.decode(reader, reader.uint32()); break; case 2: - message.query_height = reader.uint64(); + message.packet_fee = $root.ibc.applications.fee.v1.PacketFee.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -21987,30 +28244,30 @@ }; /** - * Decodes a QueryIncentivizedPacketRequest message from the specified reader or buffer, length delimited. + * Decodes a MsgPayPacketFeeAsync message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketRequest + * @memberof ibc.applications.fee.v1.MsgPayPacketFeeAsync * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.fee.v1.QueryIncentivizedPacketRequest} QueryIncentivizedPacketRequest + * @returns {ibc.applications.fee.v1.MsgPayPacketFeeAsync} MsgPayPacketFeeAsync * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryIncentivizedPacketRequest.decodeDelimited = function decodeDelimited(reader) { + MsgPayPacketFeeAsync.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryIncentivizedPacketRequest message. + * Verifies a MsgPayPacketFeeAsync message. * @function verify - * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketRequest + * @memberof ibc.applications.fee.v1.MsgPayPacketFeeAsync * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryIncentivizedPacketRequest.verify = function verify(message) { + MsgPayPacketFeeAsync.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.packet_id != null && message.hasOwnProperty("packet_id")) { @@ -22018,104 +28275,94 @@ if (error) return "packet_id." + error; } - if (message.query_height != null && message.hasOwnProperty("query_height")) - if (!$util.isInteger(message.query_height) && !(message.query_height && $util.isInteger(message.query_height.low) && $util.isInteger(message.query_height.high))) - return "query_height: integer|Long expected"; + if (message.packet_fee != null && message.hasOwnProperty("packet_fee")) { + var error = $root.ibc.applications.fee.v1.PacketFee.verify(message.packet_fee); + if (error) + return "packet_fee." + error; + } return null; }; /** - * Creates a QueryIncentivizedPacketRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MsgPayPacketFeeAsync message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketRequest + * @memberof ibc.applications.fee.v1.MsgPayPacketFeeAsync * @static * @param {Object.} object Plain object - * @returns {ibc.applications.fee.v1.QueryIncentivizedPacketRequest} QueryIncentivizedPacketRequest + * @returns {ibc.applications.fee.v1.MsgPayPacketFeeAsync} MsgPayPacketFeeAsync */ - QueryIncentivizedPacketRequest.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.fee.v1.QueryIncentivizedPacketRequest) + MsgPayPacketFeeAsync.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.fee.v1.MsgPayPacketFeeAsync) return object; - var message = new $root.ibc.applications.fee.v1.QueryIncentivizedPacketRequest(); + var message = new $root.ibc.applications.fee.v1.MsgPayPacketFeeAsync(); if (object.packet_id != null) { if (typeof object.packet_id !== "object") - throw TypeError(".ibc.applications.fee.v1.QueryIncentivizedPacketRequest.packet_id: object expected"); + throw TypeError(".ibc.applications.fee.v1.MsgPayPacketFeeAsync.packet_id: object expected"); message.packet_id = $root.ibc.core.channel.v1.PacketId.fromObject(object.packet_id); } - if (object.query_height != null) - if ($util.Long) - (message.query_height = $util.Long.fromValue(object.query_height)).unsigned = true; - else if (typeof object.query_height === "string") - message.query_height = parseInt(object.query_height, 10); - else if (typeof object.query_height === "number") - message.query_height = object.query_height; - else if (typeof object.query_height === "object") - message.query_height = new $util.LongBits(object.query_height.low >>> 0, object.query_height.high >>> 0).toNumber(true); + if (object.packet_fee != null) { + if (typeof object.packet_fee !== "object") + throw TypeError(".ibc.applications.fee.v1.MsgPayPacketFeeAsync.packet_fee: object expected"); + message.packet_fee = $root.ibc.applications.fee.v1.PacketFee.fromObject(object.packet_fee); + } return message; }; /** - * Creates a plain object from a QueryIncentivizedPacketRequest message. Also converts values to other types if specified. + * Creates a plain object from a MsgPayPacketFeeAsync message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketRequest + * @memberof ibc.applications.fee.v1.MsgPayPacketFeeAsync * @static - * @param {ibc.applications.fee.v1.QueryIncentivizedPacketRequest} message QueryIncentivizedPacketRequest + * @param {ibc.applications.fee.v1.MsgPayPacketFeeAsync} message MsgPayPacketFeeAsync * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryIncentivizedPacketRequest.toObject = function toObject(message, options) { + MsgPayPacketFeeAsync.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.packet_id = null; - if ($util.Long) { - var long = new $util.Long(0, 0, true); - object.query_height = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.query_height = options.longs === String ? "0" : 0; + object.packet_fee = null; } if (message.packet_id != null && message.hasOwnProperty("packet_id")) object.packet_id = $root.ibc.core.channel.v1.PacketId.toObject(message.packet_id, options); - if (message.query_height != null && message.hasOwnProperty("query_height")) - if (typeof message.query_height === "number") - object.query_height = options.longs === String ? String(message.query_height) : message.query_height; - else - object.query_height = options.longs === String ? $util.Long.prototype.toString.call(message.query_height) : options.longs === Number ? new $util.LongBits(message.query_height.low >>> 0, message.query_height.high >>> 0).toNumber(true) : message.query_height; + if (message.packet_fee != null && message.hasOwnProperty("packet_fee")) + object.packet_fee = $root.ibc.applications.fee.v1.PacketFee.toObject(message.packet_fee, options); return object; }; /** - * Converts this QueryIncentivizedPacketRequest to JSON. + * Converts this MsgPayPacketFeeAsync to JSON. * @function toJSON - * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketRequest + * @memberof ibc.applications.fee.v1.MsgPayPacketFeeAsync * @instance * @returns {Object.} JSON object */ - QueryIncentivizedPacketRequest.prototype.toJSON = function toJSON() { + MsgPayPacketFeeAsync.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryIncentivizedPacketRequest; + return MsgPayPacketFeeAsync; })(); - v1.QueryIncentivizedPacketResponse = (function() { + v1.MsgPayPacketFeeAsyncResponse = (function() { /** - * Properties of a QueryIncentivizedPacketResponse. + * Properties of a MsgPayPacketFeeAsyncResponse. * @memberof ibc.applications.fee.v1 - * @interface IQueryIncentivizedPacketResponse - * @property {ibc.applications.fee.v1.IIdentifiedPacketFees|null} [incentivized_packet] QueryIncentivizedPacketResponse incentivized_packet + * @interface IMsgPayPacketFeeAsyncResponse */ /** - * Constructs a new QueryIncentivizedPacketResponse. + * Constructs a new MsgPayPacketFeeAsyncResponse. * @memberof ibc.applications.fee.v1 - * @classdesc Represents a QueryIncentivizedPacketResponse. - * @implements IQueryIncentivizedPacketResponse + * @classdesc Represents a MsgPayPacketFeeAsyncResponse. + * @implements IMsgPayPacketFeeAsyncResponse * @constructor - * @param {ibc.applications.fee.v1.IQueryIncentivizedPacketResponse=} [properties] Properties to set + * @param {ibc.applications.fee.v1.IMsgPayPacketFeeAsyncResponse=} [properties] Properties to set */ - function QueryIncentivizedPacketResponse(properties) { + function MsgPayPacketFeeAsyncResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -22123,64 +28370,51 @@ } /** - * QueryIncentivizedPacketResponse incentivized_packet. - * @member {ibc.applications.fee.v1.IIdentifiedPacketFees|null|undefined} incentivized_packet - * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketResponse - * @instance - */ - QueryIncentivizedPacketResponse.prototype.incentivized_packet = null; - - /** - * Encodes the specified QueryIncentivizedPacketResponse message. Does not implicitly {@link ibc.applications.fee.v1.QueryIncentivizedPacketResponse.verify|verify} messages. + * Encodes the specified MsgPayPacketFeeAsyncResponse message. Does not implicitly {@link ibc.applications.fee.v1.MsgPayPacketFeeAsyncResponse.verify|verify} messages. * @function encode - * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketResponse + * @memberof ibc.applications.fee.v1.MsgPayPacketFeeAsyncResponse * @static - * @param {ibc.applications.fee.v1.IQueryIncentivizedPacketResponse} message QueryIncentivizedPacketResponse message or plain object to encode + * @param {ibc.applications.fee.v1.IMsgPayPacketFeeAsyncResponse} message MsgPayPacketFeeAsyncResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryIncentivizedPacketResponse.encode = function encode(message, writer) { + MsgPayPacketFeeAsyncResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.incentivized_packet != null && Object.hasOwnProperty.call(message, "incentivized_packet")) - $root.ibc.applications.fee.v1.IdentifiedPacketFees.encode(message.incentivized_packet, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified QueryIncentivizedPacketResponse message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.QueryIncentivizedPacketResponse.verify|verify} messages. + * Encodes the specified MsgPayPacketFeeAsyncResponse message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.MsgPayPacketFeeAsyncResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketResponse + * @memberof ibc.applications.fee.v1.MsgPayPacketFeeAsyncResponse * @static - * @param {ibc.applications.fee.v1.IQueryIncentivizedPacketResponse} message QueryIncentivizedPacketResponse message or plain object to encode + * @param {ibc.applications.fee.v1.IMsgPayPacketFeeAsyncResponse} message MsgPayPacketFeeAsyncResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryIncentivizedPacketResponse.encodeDelimited = function encodeDelimited(message, writer) { + MsgPayPacketFeeAsyncResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryIncentivizedPacketResponse message from the specified reader or buffer. + * Decodes a MsgPayPacketFeeAsyncResponse message from the specified reader or buffer. * @function decode - * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketResponse + * @memberof ibc.applications.fee.v1.MsgPayPacketFeeAsyncResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.fee.v1.QueryIncentivizedPacketResponse} QueryIncentivizedPacketResponse + * @returns {ibc.applications.fee.v1.MsgPayPacketFeeAsyncResponse} MsgPayPacketFeeAsyncResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryIncentivizedPacketResponse.decode = function decode(reader, length) { + MsgPayPacketFeeAsyncResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.QueryIncentivizedPacketResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.MsgPayPacketFeeAsyncResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.incentivized_packet = $root.ibc.applications.fee.v1.IdentifiedPacketFees.decode(reader, reader.uint32()); - break; default: reader.skipType(tag & 7); break; @@ -22190,115 +28424,99 @@ }; /** - * Decodes a QueryIncentivizedPacketResponse message from the specified reader or buffer, length delimited. + * Decodes a MsgPayPacketFeeAsyncResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketResponse + * @memberof ibc.applications.fee.v1.MsgPayPacketFeeAsyncResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.fee.v1.QueryIncentivizedPacketResponse} QueryIncentivizedPacketResponse + * @returns {ibc.applications.fee.v1.MsgPayPacketFeeAsyncResponse} MsgPayPacketFeeAsyncResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryIncentivizedPacketResponse.decodeDelimited = function decodeDelimited(reader) { + MsgPayPacketFeeAsyncResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryIncentivizedPacketResponse message. + * Verifies a MsgPayPacketFeeAsyncResponse message. * @function verify - * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketResponse + * @memberof ibc.applications.fee.v1.MsgPayPacketFeeAsyncResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryIncentivizedPacketResponse.verify = function verify(message) { + MsgPayPacketFeeAsyncResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.incentivized_packet != null && message.hasOwnProperty("incentivized_packet")) { - var error = $root.ibc.applications.fee.v1.IdentifiedPacketFees.verify(message.incentivized_packet); - if (error) - return "incentivized_packet." + error; - } return null; }; /** - * Creates a QueryIncentivizedPacketResponse message from a plain object. Also converts values to their respective internal types. + * Creates a MsgPayPacketFeeAsyncResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketResponse + * @memberof ibc.applications.fee.v1.MsgPayPacketFeeAsyncResponse * @static * @param {Object.} object Plain object - * @returns {ibc.applications.fee.v1.QueryIncentivizedPacketResponse} QueryIncentivizedPacketResponse + * @returns {ibc.applications.fee.v1.MsgPayPacketFeeAsyncResponse} MsgPayPacketFeeAsyncResponse */ - QueryIncentivizedPacketResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.fee.v1.QueryIncentivizedPacketResponse) + MsgPayPacketFeeAsyncResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.fee.v1.MsgPayPacketFeeAsyncResponse) return object; - var message = new $root.ibc.applications.fee.v1.QueryIncentivizedPacketResponse(); - if (object.incentivized_packet != null) { - if (typeof object.incentivized_packet !== "object") - throw TypeError(".ibc.applications.fee.v1.QueryIncentivizedPacketResponse.incentivized_packet: object expected"); - message.incentivized_packet = $root.ibc.applications.fee.v1.IdentifiedPacketFees.fromObject(object.incentivized_packet); - } - return message; + return new $root.ibc.applications.fee.v1.MsgPayPacketFeeAsyncResponse(); }; /** - * Creates a plain object from a QueryIncentivizedPacketResponse message. Also converts values to other types if specified. + * Creates a plain object from a MsgPayPacketFeeAsyncResponse message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketResponse + * @memberof ibc.applications.fee.v1.MsgPayPacketFeeAsyncResponse * @static - * @param {ibc.applications.fee.v1.QueryIncentivizedPacketResponse} message QueryIncentivizedPacketResponse + * @param {ibc.applications.fee.v1.MsgPayPacketFeeAsyncResponse} message MsgPayPacketFeeAsyncResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryIncentivizedPacketResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.incentivized_packet = null; - if (message.incentivized_packet != null && message.hasOwnProperty("incentivized_packet")) - object.incentivized_packet = $root.ibc.applications.fee.v1.IdentifiedPacketFees.toObject(message.incentivized_packet, options); - return object; + MsgPayPacketFeeAsyncResponse.toObject = function toObject() { + return {}; }; /** - * Converts this QueryIncentivizedPacketResponse to JSON. + * Converts this MsgPayPacketFeeAsyncResponse to JSON. * @function toJSON - * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketResponse + * @memberof ibc.applications.fee.v1.MsgPayPacketFeeAsyncResponse * @instance * @returns {Object.} JSON object */ - QueryIncentivizedPacketResponse.prototype.toJSON = function toJSON() { + MsgPayPacketFeeAsyncResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryIncentivizedPacketResponse; + return MsgPayPacketFeeAsyncResponse; })(); - v1.QueryIncentivizedPacketsForChannelRequest = (function() { + v1.Fee = (function() { /** - * Properties of a QueryIncentivizedPacketsForChannelRequest. + * Properties of a Fee. * @memberof ibc.applications.fee.v1 - * @interface IQueryIncentivizedPacketsForChannelRequest - * @property {cosmos.base.query.v1beta1.IPageRequest|null} [pagination] QueryIncentivizedPacketsForChannelRequest pagination - * @property {string|null} [port_id] QueryIncentivizedPacketsForChannelRequest port_id - * @property {string|null} [channel_id] QueryIncentivizedPacketsForChannelRequest channel_id - * @property {Long|null} [query_height] QueryIncentivizedPacketsForChannelRequest query_height + * @interface IFee + * @property {Array.|null} [recv_fee] Fee recv_fee + * @property {Array.|null} [ack_fee] Fee ack_fee + * @property {Array.|null} [timeout_fee] Fee timeout_fee */ /** - * Constructs a new QueryIncentivizedPacketsForChannelRequest. + * Constructs a new Fee. * @memberof ibc.applications.fee.v1 - * @classdesc Represents a QueryIncentivizedPacketsForChannelRequest. - * @implements IQueryIncentivizedPacketsForChannelRequest + * @classdesc Represents a Fee. + * @implements IFee * @constructor - * @param {ibc.applications.fee.v1.IQueryIncentivizedPacketsForChannelRequest=} [properties] Properties to set + * @param {ibc.applications.fee.v1.IFee=} [properties] Properties to set */ - function QueryIncentivizedPacketsForChannelRequest(properties) { + function Fee(properties) { + this.recv_fee = []; + this.ack_fee = []; + this.timeout_fee = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -22306,102 +28524,98 @@ } /** - * QueryIncentivizedPacketsForChannelRequest pagination. - * @member {cosmos.base.query.v1beta1.IPageRequest|null|undefined} pagination - * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest - * @instance - */ - QueryIncentivizedPacketsForChannelRequest.prototype.pagination = null; - - /** - * QueryIncentivizedPacketsForChannelRequest port_id. - * @member {string} port_id - * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest + * Fee recv_fee. + * @member {Array.} recv_fee + * @memberof ibc.applications.fee.v1.Fee * @instance */ - QueryIncentivizedPacketsForChannelRequest.prototype.port_id = ""; + Fee.prototype.recv_fee = $util.emptyArray; /** - * QueryIncentivizedPacketsForChannelRequest channel_id. - * @member {string} channel_id - * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest + * Fee ack_fee. + * @member {Array.} ack_fee + * @memberof ibc.applications.fee.v1.Fee * @instance */ - QueryIncentivizedPacketsForChannelRequest.prototype.channel_id = ""; + Fee.prototype.ack_fee = $util.emptyArray; /** - * QueryIncentivizedPacketsForChannelRequest query_height. - * @member {Long} query_height - * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest + * Fee timeout_fee. + * @member {Array.} timeout_fee + * @memberof ibc.applications.fee.v1.Fee * @instance */ - QueryIncentivizedPacketsForChannelRequest.prototype.query_height = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + Fee.prototype.timeout_fee = $util.emptyArray; /** - * Encodes the specified QueryIncentivizedPacketsForChannelRequest message. Does not implicitly {@link ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest.verify|verify} messages. + * Encodes the specified Fee message. Does not implicitly {@link ibc.applications.fee.v1.Fee.verify|verify} messages. * @function encode - * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest + * @memberof ibc.applications.fee.v1.Fee * @static - * @param {ibc.applications.fee.v1.IQueryIncentivizedPacketsForChannelRequest} message QueryIncentivizedPacketsForChannelRequest message or plain object to encode + * @param {ibc.applications.fee.v1.IFee} message Fee message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryIncentivizedPacketsForChannelRequest.encode = function encode(message, writer) { + Fee.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.pagination != null && Object.hasOwnProperty.call(message, "pagination")) - $root.cosmos.base.query.v1beta1.PageRequest.encode(message.pagination, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.port_id != null && Object.hasOwnProperty.call(message, "port_id")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.port_id); - if (message.channel_id != null && Object.hasOwnProperty.call(message, "channel_id")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.channel_id); - if (message.query_height != null && Object.hasOwnProperty.call(message, "query_height")) - writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.query_height); + if (message.recv_fee != null && message.recv_fee.length) + for (var i = 0; i < message.recv_fee.length; ++i) + $root.cosmos.base.v1beta1.Coin.encode(message.recv_fee[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.ack_fee != null && message.ack_fee.length) + for (var i = 0; i < message.ack_fee.length; ++i) + $root.cosmos.base.v1beta1.Coin.encode(message.ack_fee[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.timeout_fee != null && message.timeout_fee.length) + for (var i = 0; i < message.timeout_fee.length; ++i) + $root.cosmos.base.v1beta1.Coin.encode(message.timeout_fee[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified QueryIncentivizedPacketsForChannelRequest message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest.verify|verify} messages. + * Encodes the specified Fee message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.Fee.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest + * @memberof ibc.applications.fee.v1.Fee * @static - * @param {ibc.applications.fee.v1.IQueryIncentivizedPacketsForChannelRequest} message QueryIncentivizedPacketsForChannelRequest message or plain object to encode + * @param {ibc.applications.fee.v1.IFee} message Fee message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryIncentivizedPacketsForChannelRequest.encodeDelimited = function encodeDelimited(message, writer) { + Fee.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryIncentivizedPacketsForChannelRequest message from the specified reader or buffer. + * Decodes a Fee message from the specified reader or buffer. * @function decode - * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest + * @memberof ibc.applications.fee.v1.Fee * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest} QueryIncentivizedPacketsForChannelRequest + * @returns {ibc.applications.fee.v1.Fee} Fee * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryIncentivizedPacketsForChannelRequest.decode = function decode(reader, length) { + Fee.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.Fee(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.pagination = $root.cosmos.base.query.v1beta1.PageRequest.decode(reader, reader.uint32()); + if (!(message.recv_fee && message.recv_fee.length)) + message.recv_fee = []; + message.recv_fee.push($root.cosmos.base.v1beta1.Coin.decode(reader, reader.uint32())); break; case 2: - message.port_id = reader.string(); + if (!(message.ack_fee && message.ack_fee.length)) + message.ack_fee = []; + message.ack_fee.push($root.cosmos.base.v1beta1.Coin.decode(reader, reader.uint32())); break; case 3: - message.channel_id = reader.string(); - break; - case 4: - message.query_height = reader.uint64(); + if (!(message.timeout_fee && message.timeout_fee.length)) + message.timeout_fee = []; + message.timeout_fee.push($root.cosmos.base.v1beta1.Coin.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -22412,152 +28626,178 @@ }; /** - * Decodes a QueryIncentivizedPacketsForChannelRequest message from the specified reader or buffer, length delimited. + * Decodes a Fee message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest + * @memberof ibc.applications.fee.v1.Fee * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest} QueryIncentivizedPacketsForChannelRequest + * @returns {ibc.applications.fee.v1.Fee} Fee * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryIncentivizedPacketsForChannelRequest.decodeDelimited = function decodeDelimited(reader) { + Fee.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryIncentivizedPacketsForChannelRequest message. + * Verifies a Fee message. * @function verify - * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest + * @memberof ibc.applications.fee.v1.Fee * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryIncentivizedPacketsForChannelRequest.verify = function verify(message) { + Fee.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.pagination != null && message.hasOwnProperty("pagination")) { - var error = $root.cosmos.base.query.v1beta1.PageRequest.verify(message.pagination); - if (error) - return "pagination." + error; + if (message.recv_fee != null && message.hasOwnProperty("recv_fee")) { + if (!Array.isArray(message.recv_fee)) + return "recv_fee: array expected"; + for (var i = 0; i < message.recv_fee.length; ++i) { + var error = $root.cosmos.base.v1beta1.Coin.verify(message.recv_fee[i]); + if (error) + return "recv_fee." + error; + } + } + if (message.ack_fee != null && message.hasOwnProperty("ack_fee")) { + if (!Array.isArray(message.ack_fee)) + return "ack_fee: array expected"; + for (var i = 0; i < message.ack_fee.length; ++i) { + var error = $root.cosmos.base.v1beta1.Coin.verify(message.ack_fee[i]); + if (error) + return "ack_fee." + error; + } + } + if (message.timeout_fee != null && message.hasOwnProperty("timeout_fee")) { + if (!Array.isArray(message.timeout_fee)) + return "timeout_fee: array expected"; + for (var i = 0; i < message.timeout_fee.length; ++i) { + var error = $root.cosmos.base.v1beta1.Coin.verify(message.timeout_fee[i]); + if (error) + return "timeout_fee." + error; + } } - if (message.port_id != null && message.hasOwnProperty("port_id")) - if (!$util.isString(message.port_id)) - return "port_id: string expected"; - if (message.channel_id != null && message.hasOwnProperty("channel_id")) - if (!$util.isString(message.channel_id)) - return "channel_id: string expected"; - if (message.query_height != null && message.hasOwnProperty("query_height")) - if (!$util.isInteger(message.query_height) && !(message.query_height && $util.isInteger(message.query_height.low) && $util.isInteger(message.query_height.high))) - return "query_height: integer|Long expected"; return null; }; /** - * Creates a QueryIncentivizedPacketsForChannelRequest message from a plain object. Also converts values to their respective internal types. + * Creates a Fee message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest + * @memberof ibc.applications.fee.v1.Fee * @static * @param {Object.} object Plain object - * @returns {ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest} QueryIncentivizedPacketsForChannelRequest + * @returns {ibc.applications.fee.v1.Fee} Fee */ - QueryIncentivizedPacketsForChannelRequest.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest) + Fee.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.fee.v1.Fee) return object; - var message = new $root.ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest(); - if (object.pagination != null) { - if (typeof object.pagination !== "object") - throw TypeError(".ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest.pagination: object expected"); - message.pagination = $root.cosmos.base.query.v1beta1.PageRequest.fromObject(object.pagination); + var message = new $root.ibc.applications.fee.v1.Fee(); + if (object.recv_fee) { + if (!Array.isArray(object.recv_fee)) + throw TypeError(".ibc.applications.fee.v1.Fee.recv_fee: array expected"); + message.recv_fee = []; + for (var i = 0; i < object.recv_fee.length; ++i) { + if (typeof object.recv_fee[i] !== "object") + throw TypeError(".ibc.applications.fee.v1.Fee.recv_fee: object expected"); + message.recv_fee[i] = $root.cosmos.base.v1beta1.Coin.fromObject(object.recv_fee[i]); + } + } + if (object.ack_fee) { + if (!Array.isArray(object.ack_fee)) + throw TypeError(".ibc.applications.fee.v1.Fee.ack_fee: array expected"); + message.ack_fee = []; + for (var i = 0; i < object.ack_fee.length; ++i) { + if (typeof object.ack_fee[i] !== "object") + throw TypeError(".ibc.applications.fee.v1.Fee.ack_fee: object expected"); + message.ack_fee[i] = $root.cosmos.base.v1beta1.Coin.fromObject(object.ack_fee[i]); + } + } + if (object.timeout_fee) { + if (!Array.isArray(object.timeout_fee)) + throw TypeError(".ibc.applications.fee.v1.Fee.timeout_fee: array expected"); + message.timeout_fee = []; + for (var i = 0; i < object.timeout_fee.length; ++i) { + if (typeof object.timeout_fee[i] !== "object") + throw TypeError(".ibc.applications.fee.v1.Fee.timeout_fee: object expected"); + message.timeout_fee[i] = $root.cosmos.base.v1beta1.Coin.fromObject(object.timeout_fee[i]); + } } - if (object.port_id != null) - message.port_id = String(object.port_id); - if (object.channel_id != null) - message.channel_id = String(object.channel_id); - if (object.query_height != null) - if ($util.Long) - (message.query_height = $util.Long.fromValue(object.query_height)).unsigned = true; - else if (typeof object.query_height === "string") - message.query_height = parseInt(object.query_height, 10); - else if (typeof object.query_height === "number") - message.query_height = object.query_height; - else if (typeof object.query_height === "object") - message.query_height = new $util.LongBits(object.query_height.low >>> 0, object.query_height.high >>> 0).toNumber(true); return message; }; /** - * Creates a plain object from a QueryIncentivizedPacketsForChannelRequest message. Also converts values to other types if specified. + * Creates a plain object from a Fee message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest + * @memberof ibc.applications.fee.v1.Fee * @static - * @param {ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest} message QueryIncentivizedPacketsForChannelRequest + * @param {ibc.applications.fee.v1.Fee} message Fee * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryIncentivizedPacketsForChannelRequest.toObject = function toObject(message, options) { + Fee.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.pagination = null; - object.port_id = ""; - object.channel_id = ""; - if ($util.Long) { - var long = new $util.Long(0, 0, true); - object.query_height = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.query_height = options.longs === String ? "0" : 0; + if (options.arrays || options.defaults) { + object.recv_fee = []; + object.ack_fee = []; + object.timeout_fee = []; + } + if (message.recv_fee && message.recv_fee.length) { + object.recv_fee = []; + for (var j = 0; j < message.recv_fee.length; ++j) + object.recv_fee[j] = $root.cosmos.base.v1beta1.Coin.toObject(message.recv_fee[j], options); + } + if (message.ack_fee && message.ack_fee.length) { + object.ack_fee = []; + for (var j = 0; j < message.ack_fee.length; ++j) + object.ack_fee[j] = $root.cosmos.base.v1beta1.Coin.toObject(message.ack_fee[j], options); + } + if (message.timeout_fee && message.timeout_fee.length) { + object.timeout_fee = []; + for (var j = 0; j < message.timeout_fee.length; ++j) + object.timeout_fee[j] = $root.cosmos.base.v1beta1.Coin.toObject(message.timeout_fee[j], options); } - if (message.pagination != null && message.hasOwnProperty("pagination")) - object.pagination = $root.cosmos.base.query.v1beta1.PageRequest.toObject(message.pagination, options); - if (message.port_id != null && message.hasOwnProperty("port_id")) - object.port_id = message.port_id; - if (message.channel_id != null && message.hasOwnProperty("channel_id")) - object.channel_id = message.channel_id; - if (message.query_height != null && message.hasOwnProperty("query_height")) - if (typeof message.query_height === "number") - object.query_height = options.longs === String ? String(message.query_height) : message.query_height; - else - object.query_height = options.longs === String ? $util.Long.prototype.toString.call(message.query_height) : options.longs === Number ? new $util.LongBits(message.query_height.low >>> 0, message.query_height.high >>> 0).toNumber(true) : message.query_height; return object; }; /** - * Converts this QueryIncentivizedPacketsForChannelRequest to JSON. + * Converts this Fee to JSON. * @function toJSON - * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest + * @memberof ibc.applications.fee.v1.Fee * @instance * @returns {Object.} JSON object */ - QueryIncentivizedPacketsForChannelRequest.prototype.toJSON = function toJSON() { + Fee.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryIncentivizedPacketsForChannelRequest; + return Fee; })(); - v1.QueryIncentivizedPacketsForChannelResponse = (function() { + v1.PacketFee = (function() { /** - * Properties of a QueryIncentivizedPacketsForChannelResponse. + * Properties of a PacketFee. * @memberof ibc.applications.fee.v1 - * @interface IQueryIncentivizedPacketsForChannelResponse - * @property {Array.|null} [incentivized_packets] QueryIncentivizedPacketsForChannelResponse incentivized_packets + * @interface IPacketFee + * @property {ibc.applications.fee.v1.IFee|null} [fee] PacketFee fee + * @property {string|null} [refund_address] PacketFee refund_address + * @property {Array.|null} [relayers] PacketFee relayers */ /** - * Constructs a new QueryIncentivizedPacketsForChannelResponse. + * Constructs a new PacketFee. * @memberof ibc.applications.fee.v1 - * @classdesc Represents a QueryIncentivizedPacketsForChannelResponse. - * @implements IQueryIncentivizedPacketsForChannelResponse + * @classdesc Represents a PacketFee. + * @implements IPacketFee * @constructor - * @param {ibc.applications.fee.v1.IQueryIncentivizedPacketsForChannelResponse=} [properties] Properties to set + * @param {ibc.applications.fee.v1.IPacketFee=} [properties] Properties to set */ - function QueryIncentivizedPacketsForChannelResponse(properties) { - this.incentivized_packets = []; + function PacketFee(properties) { + this.relayers = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -22565,66 +28805,92 @@ } /** - * QueryIncentivizedPacketsForChannelResponse incentivized_packets. - * @member {Array.} incentivized_packets - * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelResponse + * PacketFee fee. + * @member {ibc.applications.fee.v1.IFee|null|undefined} fee + * @memberof ibc.applications.fee.v1.PacketFee * @instance */ - QueryIncentivizedPacketsForChannelResponse.prototype.incentivized_packets = $util.emptyArray; + PacketFee.prototype.fee = null; /** - * Encodes the specified QueryIncentivizedPacketsForChannelResponse message. Does not implicitly {@link ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelResponse.verify|verify} messages. + * PacketFee refund_address. + * @member {string} refund_address + * @memberof ibc.applications.fee.v1.PacketFee + * @instance + */ + PacketFee.prototype.refund_address = ""; + + /** + * PacketFee relayers. + * @member {Array.} relayers + * @memberof ibc.applications.fee.v1.PacketFee + * @instance + */ + PacketFee.prototype.relayers = $util.emptyArray; + + /** + * Encodes the specified PacketFee message. Does not implicitly {@link ibc.applications.fee.v1.PacketFee.verify|verify} messages. * @function encode - * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelResponse + * @memberof ibc.applications.fee.v1.PacketFee * @static - * @param {ibc.applications.fee.v1.IQueryIncentivizedPacketsForChannelResponse} message QueryIncentivizedPacketsForChannelResponse message or plain object to encode + * @param {ibc.applications.fee.v1.IPacketFee} message PacketFee message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryIncentivizedPacketsForChannelResponse.encode = function encode(message, writer) { + PacketFee.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.incentivized_packets != null && message.incentivized_packets.length) - for (var i = 0; i < message.incentivized_packets.length; ++i) - $root.ibc.applications.fee.v1.IdentifiedPacketFees.encode(message.incentivized_packets[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.fee != null && Object.hasOwnProperty.call(message, "fee")) + $root.ibc.applications.fee.v1.Fee.encode(message.fee, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.refund_address != null && Object.hasOwnProperty.call(message, "refund_address")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.refund_address); + if (message.relayers != null && message.relayers.length) + for (var i = 0; i < message.relayers.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.relayers[i]); return writer; }; /** - * Encodes the specified QueryIncentivizedPacketsForChannelResponse message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelResponse.verify|verify} messages. + * Encodes the specified PacketFee message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.PacketFee.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelResponse + * @memberof ibc.applications.fee.v1.PacketFee * @static - * @param {ibc.applications.fee.v1.IQueryIncentivizedPacketsForChannelResponse} message QueryIncentivizedPacketsForChannelResponse message or plain object to encode + * @param {ibc.applications.fee.v1.IPacketFee} message PacketFee message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryIncentivizedPacketsForChannelResponse.encodeDelimited = function encodeDelimited(message, writer) { + PacketFee.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryIncentivizedPacketsForChannelResponse message from the specified reader or buffer. + * Decodes a PacketFee message from the specified reader or buffer. * @function decode - * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelResponse + * @memberof ibc.applications.fee.v1.PacketFee * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelResponse} QueryIncentivizedPacketsForChannelResponse + * @returns {ibc.applications.fee.v1.PacketFee} PacketFee * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryIncentivizedPacketsForChannelResponse.decode = function decode(reader, length) { + PacketFee.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.PacketFee(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.incentivized_packets && message.incentivized_packets.length)) - message.incentivized_packets = []; - message.incentivized_packets.push($root.ibc.applications.fee.v1.IdentifiedPacketFees.decode(reader, reader.uint32())); + message.fee = $root.ibc.applications.fee.v1.Fee.decode(reader, reader.uint32()); + break; + case 2: + message.refund_address = reader.string(); + break; + case 3: + if (!(message.relayers && message.relayers.length)) + message.relayers = []; + message.relayers.push(reader.string()); break; default: reader.skipType(tag & 7); @@ -22635,124 +28901,143 @@ }; /** - * Decodes a QueryIncentivizedPacketsForChannelResponse message from the specified reader or buffer, length delimited. + * Decodes a PacketFee message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelResponse + * @memberof ibc.applications.fee.v1.PacketFee * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelResponse} QueryIncentivizedPacketsForChannelResponse + * @returns {ibc.applications.fee.v1.PacketFee} PacketFee * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryIncentivizedPacketsForChannelResponse.decodeDelimited = function decodeDelimited(reader) { + PacketFee.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryIncentivizedPacketsForChannelResponse message. + * Verifies a PacketFee message. * @function verify - * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelResponse + * @memberof ibc.applications.fee.v1.PacketFee * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryIncentivizedPacketsForChannelResponse.verify = function verify(message) { + PacketFee.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.incentivized_packets != null && message.hasOwnProperty("incentivized_packets")) { - if (!Array.isArray(message.incentivized_packets)) - return "incentivized_packets: array expected"; - for (var i = 0; i < message.incentivized_packets.length; ++i) { - var error = $root.ibc.applications.fee.v1.IdentifiedPacketFees.verify(message.incentivized_packets[i]); - if (error) - return "incentivized_packets." + error; - } + if (message.fee != null && message.hasOwnProperty("fee")) { + var error = $root.ibc.applications.fee.v1.Fee.verify(message.fee); + if (error) + return "fee." + error; + } + if (message.refund_address != null && message.hasOwnProperty("refund_address")) + if (!$util.isString(message.refund_address)) + return "refund_address: string expected"; + if (message.relayers != null && message.hasOwnProperty("relayers")) { + if (!Array.isArray(message.relayers)) + return "relayers: array expected"; + for (var i = 0; i < message.relayers.length; ++i) + if (!$util.isString(message.relayers[i])) + return "relayers: string[] expected"; } return null; }; /** - * Creates a QueryIncentivizedPacketsForChannelResponse message from a plain object. Also converts values to their respective internal types. + * Creates a PacketFee message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelResponse + * @memberof ibc.applications.fee.v1.PacketFee * @static * @param {Object.} object Plain object - * @returns {ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelResponse} QueryIncentivizedPacketsForChannelResponse + * @returns {ibc.applications.fee.v1.PacketFee} PacketFee */ - QueryIncentivizedPacketsForChannelResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelResponse) + PacketFee.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.fee.v1.PacketFee) return object; - var message = new $root.ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelResponse(); - if (object.incentivized_packets) { - if (!Array.isArray(object.incentivized_packets)) - throw TypeError(".ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelResponse.incentivized_packets: array expected"); - message.incentivized_packets = []; - for (var i = 0; i < object.incentivized_packets.length; ++i) { - if (typeof object.incentivized_packets[i] !== "object") - throw TypeError(".ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelResponse.incentivized_packets: object expected"); - message.incentivized_packets[i] = $root.ibc.applications.fee.v1.IdentifiedPacketFees.fromObject(object.incentivized_packets[i]); - } + var message = new $root.ibc.applications.fee.v1.PacketFee(); + if (object.fee != null) { + if (typeof object.fee !== "object") + throw TypeError(".ibc.applications.fee.v1.PacketFee.fee: object expected"); + message.fee = $root.ibc.applications.fee.v1.Fee.fromObject(object.fee); + } + if (object.refund_address != null) + message.refund_address = String(object.refund_address); + if (object.relayers) { + if (!Array.isArray(object.relayers)) + throw TypeError(".ibc.applications.fee.v1.PacketFee.relayers: array expected"); + message.relayers = []; + for (var i = 0; i < object.relayers.length; ++i) + message.relayers[i] = String(object.relayers[i]); } return message; }; /** - * Creates a plain object from a QueryIncentivizedPacketsForChannelResponse message. Also converts values to other types if specified. + * Creates a plain object from a PacketFee message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelResponse + * @memberof ibc.applications.fee.v1.PacketFee * @static - * @param {ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelResponse} message QueryIncentivizedPacketsForChannelResponse + * @param {ibc.applications.fee.v1.PacketFee} message PacketFee * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryIncentivizedPacketsForChannelResponse.toObject = function toObject(message, options) { + PacketFee.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.incentivized_packets = []; - if (message.incentivized_packets && message.incentivized_packets.length) { - object.incentivized_packets = []; - for (var j = 0; j < message.incentivized_packets.length; ++j) - object.incentivized_packets[j] = $root.ibc.applications.fee.v1.IdentifiedPacketFees.toObject(message.incentivized_packets[j], options); + object.relayers = []; + if (options.defaults) { + object.fee = null; + object.refund_address = ""; + } + if (message.fee != null && message.hasOwnProperty("fee")) + object.fee = $root.ibc.applications.fee.v1.Fee.toObject(message.fee, options); + if (message.refund_address != null && message.hasOwnProperty("refund_address")) + object.refund_address = message.refund_address; + if (message.relayers && message.relayers.length) { + object.relayers = []; + for (var j = 0; j < message.relayers.length; ++j) + object.relayers[j] = message.relayers[j]; } return object; }; /** - * Converts this QueryIncentivizedPacketsForChannelResponse to JSON. + * Converts this PacketFee to JSON. * @function toJSON - * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelResponse + * @memberof ibc.applications.fee.v1.PacketFee * @instance * @returns {Object.} JSON object */ - QueryIncentivizedPacketsForChannelResponse.prototype.toJSON = function toJSON() { + PacketFee.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryIncentivizedPacketsForChannelResponse; + return PacketFee; })(); - v1.QueryTotalRecvFeesRequest = (function() { + v1.PacketFees = (function() { /** - * Properties of a QueryTotalRecvFeesRequest. + * Properties of a PacketFees. * @memberof ibc.applications.fee.v1 - * @interface IQueryTotalRecvFeesRequest - * @property {ibc.core.channel.v1.IPacketId|null} [packet_id] QueryTotalRecvFeesRequest packet_id + * @interface IPacketFees + * @property {Array.|null} [packet_fees] PacketFees packet_fees */ /** - * Constructs a new QueryTotalRecvFeesRequest. + * Constructs a new PacketFees. * @memberof ibc.applications.fee.v1 - * @classdesc Represents a QueryTotalRecvFeesRequest. - * @implements IQueryTotalRecvFeesRequest + * @classdesc Represents a PacketFees. + * @implements IPacketFees * @constructor - * @param {ibc.applications.fee.v1.IQueryTotalRecvFeesRequest=} [properties] Properties to set + * @param {ibc.applications.fee.v1.IPacketFees=} [properties] Properties to set */ - function QueryTotalRecvFeesRequest(properties) { + function PacketFees(properties) { + this.packet_fees = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -22760,63 +29045,66 @@ } /** - * QueryTotalRecvFeesRequest packet_id. - * @member {ibc.core.channel.v1.IPacketId|null|undefined} packet_id - * @memberof ibc.applications.fee.v1.QueryTotalRecvFeesRequest + * PacketFees packet_fees. + * @member {Array.} packet_fees + * @memberof ibc.applications.fee.v1.PacketFees * @instance */ - QueryTotalRecvFeesRequest.prototype.packet_id = null; + PacketFees.prototype.packet_fees = $util.emptyArray; /** - * Encodes the specified QueryTotalRecvFeesRequest message. Does not implicitly {@link ibc.applications.fee.v1.QueryTotalRecvFeesRequest.verify|verify} messages. + * Encodes the specified PacketFees message. Does not implicitly {@link ibc.applications.fee.v1.PacketFees.verify|verify} messages. * @function encode - * @memberof ibc.applications.fee.v1.QueryTotalRecvFeesRequest + * @memberof ibc.applications.fee.v1.PacketFees * @static - * @param {ibc.applications.fee.v1.IQueryTotalRecvFeesRequest} message QueryTotalRecvFeesRequest message or plain object to encode + * @param {ibc.applications.fee.v1.IPacketFees} message PacketFees message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryTotalRecvFeesRequest.encode = function encode(message, writer) { + PacketFees.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.packet_id != null && Object.hasOwnProperty.call(message, "packet_id")) - $root.ibc.core.channel.v1.PacketId.encode(message.packet_id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.packet_fees != null && message.packet_fees.length) + for (var i = 0; i < message.packet_fees.length; ++i) + $root.ibc.applications.fee.v1.PacketFee.encode(message.packet_fees[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified QueryTotalRecvFeesRequest message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.QueryTotalRecvFeesRequest.verify|verify} messages. + * Encodes the specified PacketFees message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.PacketFees.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.applications.fee.v1.QueryTotalRecvFeesRequest + * @memberof ibc.applications.fee.v1.PacketFees * @static - * @param {ibc.applications.fee.v1.IQueryTotalRecvFeesRequest} message QueryTotalRecvFeesRequest message or plain object to encode + * @param {ibc.applications.fee.v1.IPacketFees} message PacketFees message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryTotalRecvFeesRequest.encodeDelimited = function encodeDelimited(message, writer) { + PacketFees.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryTotalRecvFeesRequest message from the specified reader or buffer. + * Decodes a PacketFees message from the specified reader or buffer. * @function decode - * @memberof ibc.applications.fee.v1.QueryTotalRecvFeesRequest + * @memberof ibc.applications.fee.v1.PacketFees * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.fee.v1.QueryTotalRecvFeesRequest} QueryTotalRecvFeesRequest + * @returns {ibc.applications.fee.v1.PacketFees} PacketFees * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryTotalRecvFeesRequest.decode = function decode(reader, length) { + PacketFees.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.QueryTotalRecvFeesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.PacketFees(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.packet_id = $root.ibc.core.channel.v1.PacketId.decode(reader, reader.uint32()); + if (!(message.packet_fees && message.packet_fees.length)) + message.packet_fees = []; + message.packet_fees.push($root.ibc.applications.fee.v1.PacketFee.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -22827,113 +29115,126 @@ }; /** - * Decodes a QueryTotalRecvFeesRequest message from the specified reader or buffer, length delimited. + * Decodes a PacketFees message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.applications.fee.v1.QueryTotalRecvFeesRequest + * @memberof ibc.applications.fee.v1.PacketFees * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.fee.v1.QueryTotalRecvFeesRequest} QueryTotalRecvFeesRequest + * @returns {ibc.applications.fee.v1.PacketFees} PacketFees * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryTotalRecvFeesRequest.decodeDelimited = function decodeDelimited(reader) { + PacketFees.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryTotalRecvFeesRequest message. + * Verifies a PacketFees message. * @function verify - * @memberof ibc.applications.fee.v1.QueryTotalRecvFeesRequest + * @memberof ibc.applications.fee.v1.PacketFees * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryTotalRecvFeesRequest.verify = function verify(message) { + PacketFees.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.packet_id != null && message.hasOwnProperty("packet_id")) { - var error = $root.ibc.core.channel.v1.PacketId.verify(message.packet_id); - if (error) - return "packet_id." + error; + if (message.packet_fees != null && message.hasOwnProperty("packet_fees")) { + if (!Array.isArray(message.packet_fees)) + return "packet_fees: array expected"; + for (var i = 0; i < message.packet_fees.length; ++i) { + var error = $root.ibc.applications.fee.v1.PacketFee.verify(message.packet_fees[i]); + if (error) + return "packet_fees." + error; + } } return null; }; /** - * Creates a QueryTotalRecvFeesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PacketFees message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.applications.fee.v1.QueryTotalRecvFeesRequest + * @memberof ibc.applications.fee.v1.PacketFees * @static * @param {Object.} object Plain object - * @returns {ibc.applications.fee.v1.QueryTotalRecvFeesRequest} QueryTotalRecvFeesRequest + * @returns {ibc.applications.fee.v1.PacketFees} PacketFees */ - QueryTotalRecvFeesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.fee.v1.QueryTotalRecvFeesRequest) + PacketFees.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.fee.v1.PacketFees) return object; - var message = new $root.ibc.applications.fee.v1.QueryTotalRecvFeesRequest(); - if (object.packet_id != null) { - if (typeof object.packet_id !== "object") - throw TypeError(".ibc.applications.fee.v1.QueryTotalRecvFeesRequest.packet_id: object expected"); - message.packet_id = $root.ibc.core.channel.v1.PacketId.fromObject(object.packet_id); + var message = new $root.ibc.applications.fee.v1.PacketFees(); + if (object.packet_fees) { + if (!Array.isArray(object.packet_fees)) + throw TypeError(".ibc.applications.fee.v1.PacketFees.packet_fees: array expected"); + message.packet_fees = []; + for (var i = 0; i < object.packet_fees.length; ++i) { + if (typeof object.packet_fees[i] !== "object") + throw TypeError(".ibc.applications.fee.v1.PacketFees.packet_fees: object expected"); + message.packet_fees[i] = $root.ibc.applications.fee.v1.PacketFee.fromObject(object.packet_fees[i]); + } } return message; }; /** - * Creates a plain object from a QueryTotalRecvFeesRequest message. Also converts values to other types if specified. + * Creates a plain object from a PacketFees message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.applications.fee.v1.QueryTotalRecvFeesRequest + * @memberof ibc.applications.fee.v1.PacketFees * @static - * @param {ibc.applications.fee.v1.QueryTotalRecvFeesRequest} message QueryTotalRecvFeesRequest + * @param {ibc.applications.fee.v1.PacketFees} message PacketFees * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryTotalRecvFeesRequest.toObject = function toObject(message, options) { + PacketFees.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.packet_id = null; - if (message.packet_id != null && message.hasOwnProperty("packet_id")) - object.packet_id = $root.ibc.core.channel.v1.PacketId.toObject(message.packet_id, options); + if (options.arrays || options.defaults) + object.packet_fees = []; + if (message.packet_fees && message.packet_fees.length) { + object.packet_fees = []; + for (var j = 0; j < message.packet_fees.length; ++j) + object.packet_fees[j] = $root.ibc.applications.fee.v1.PacketFee.toObject(message.packet_fees[j], options); + } return object; }; /** - * Converts this QueryTotalRecvFeesRequest to JSON. + * Converts this PacketFees to JSON. * @function toJSON - * @memberof ibc.applications.fee.v1.QueryTotalRecvFeesRequest + * @memberof ibc.applications.fee.v1.PacketFees * @instance * @returns {Object.} JSON object */ - QueryTotalRecvFeesRequest.prototype.toJSON = function toJSON() { + PacketFees.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryTotalRecvFeesRequest; + return PacketFees; })(); - v1.QueryTotalRecvFeesResponse = (function() { + v1.IdentifiedPacketFees = (function() { /** - * Properties of a QueryTotalRecvFeesResponse. + * Properties of an IdentifiedPacketFees. * @memberof ibc.applications.fee.v1 - * @interface IQueryTotalRecvFeesResponse - * @property {Array.|null} [recv_fees] QueryTotalRecvFeesResponse recv_fees + * @interface IIdentifiedPacketFees + * @property {ibc.core.channel.v1.IPacketId|null} [packet_id] IdentifiedPacketFees packet_id + * @property {Array.|null} [packet_fees] IdentifiedPacketFees packet_fees */ /** - * Constructs a new QueryTotalRecvFeesResponse. + * Constructs a new IdentifiedPacketFees. * @memberof ibc.applications.fee.v1 - * @classdesc Represents a QueryTotalRecvFeesResponse. - * @implements IQueryTotalRecvFeesResponse + * @classdesc Represents an IdentifiedPacketFees. + * @implements IIdentifiedPacketFees * @constructor - * @param {ibc.applications.fee.v1.IQueryTotalRecvFeesResponse=} [properties] Properties to set + * @param {ibc.applications.fee.v1.IIdentifiedPacketFees=} [properties] Properties to set */ - function QueryTotalRecvFeesResponse(properties) { - this.recv_fees = []; + function IdentifiedPacketFees(properties) { + this.packet_fees = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -22941,66 +29242,79 @@ } /** - * QueryTotalRecvFeesResponse recv_fees. - * @member {Array.} recv_fees - * @memberof ibc.applications.fee.v1.QueryTotalRecvFeesResponse + * IdentifiedPacketFees packet_id. + * @member {ibc.core.channel.v1.IPacketId|null|undefined} packet_id + * @memberof ibc.applications.fee.v1.IdentifiedPacketFees * @instance */ - QueryTotalRecvFeesResponse.prototype.recv_fees = $util.emptyArray; + IdentifiedPacketFees.prototype.packet_id = null; /** - * Encodes the specified QueryTotalRecvFeesResponse message. Does not implicitly {@link ibc.applications.fee.v1.QueryTotalRecvFeesResponse.verify|verify} messages. + * IdentifiedPacketFees packet_fees. + * @member {Array.} packet_fees + * @memberof ibc.applications.fee.v1.IdentifiedPacketFees + * @instance + */ + IdentifiedPacketFees.prototype.packet_fees = $util.emptyArray; + + /** + * Encodes the specified IdentifiedPacketFees message. Does not implicitly {@link ibc.applications.fee.v1.IdentifiedPacketFees.verify|verify} messages. * @function encode - * @memberof ibc.applications.fee.v1.QueryTotalRecvFeesResponse + * @memberof ibc.applications.fee.v1.IdentifiedPacketFees * @static - * @param {ibc.applications.fee.v1.IQueryTotalRecvFeesResponse} message QueryTotalRecvFeesResponse message or plain object to encode + * @param {ibc.applications.fee.v1.IIdentifiedPacketFees} message IdentifiedPacketFees message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryTotalRecvFeesResponse.encode = function encode(message, writer) { + IdentifiedPacketFees.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.recv_fees != null && message.recv_fees.length) - for (var i = 0; i < message.recv_fees.length; ++i) - $root.cosmos.base.v1beta1.Coin.encode(message.recv_fees[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.packet_id != null && Object.hasOwnProperty.call(message, "packet_id")) + $root.ibc.core.channel.v1.PacketId.encode(message.packet_id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.packet_fees != null && message.packet_fees.length) + for (var i = 0; i < message.packet_fees.length; ++i) + $root.ibc.applications.fee.v1.PacketFee.encode(message.packet_fees[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified QueryTotalRecvFeesResponse message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.QueryTotalRecvFeesResponse.verify|verify} messages. + * Encodes the specified IdentifiedPacketFees message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.IdentifiedPacketFees.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.applications.fee.v1.QueryTotalRecvFeesResponse + * @memberof ibc.applications.fee.v1.IdentifiedPacketFees * @static - * @param {ibc.applications.fee.v1.IQueryTotalRecvFeesResponse} message QueryTotalRecvFeesResponse message or plain object to encode + * @param {ibc.applications.fee.v1.IIdentifiedPacketFees} message IdentifiedPacketFees message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryTotalRecvFeesResponse.encodeDelimited = function encodeDelimited(message, writer) { + IdentifiedPacketFees.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryTotalRecvFeesResponse message from the specified reader or buffer. + * Decodes an IdentifiedPacketFees message from the specified reader or buffer. * @function decode - * @memberof ibc.applications.fee.v1.QueryTotalRecvFeesResponse + * @memberof ibc.applications.fee.v1.IdentifiedPacketFees * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.fee.v1.QueryTotalRecvFeesResponse} QueryTotalRecvFeesResponse + * @returns {ibc.applications.fee.v1.IdentifiedPacketFees} IdentifiedPacketFees * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryTotalRecvFeesResponse.decode = function decode(reader, length) { + IdentifiedPacketFees.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.QueryTotalRecvFeesResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.IdentifiedPacketFees(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.recv_fees && message.recv_fees.length)) - message.recv_fees = []; - message.recv_fees.push($root.cosmos.base.v1beta1.Coin.decode(reader, reader.uint32())); + message.packet_id = $root.ibc.core.channel.v1.PacketId.decode(reader, reader.uint32()); + break; + case 2: + if (!(message.packet_fees && message.packet_fees.length)) + message.packet_fees = []; + message.packet_fees.push($root.ibc.applications.fee.v1.PacketFee.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -23011,124 +29325,140 @@ }; /** - * Decodes a QueryTotalRecvFeesResponse message from the specified reader or buffer, length delimited. + * Decodes an IdentifiedPacketFees message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.applications.fee.v1.QueryTotalRecvFeesResponse + * @memberof ibc.applications.fee.v1.IdentifiedPacketFees * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.fee.v1.QueryTotalRecvFeesResponse} QueryTotalRecvFeesResponse + * @returns {ibc.applications.fee.v1.IdentifiedPacketFees} IdentifiedPacketFees * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryTotalRecvFeesResponse.decodeDelimited = function decodeDelimited(reader) { + IdentifiedPacketFees.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryTotalRecvFeesResponse message. + * Verifies an IdentifiedPacketFees message. * @function verify - * @memberof ibc.applications.fee.v1.QueryTotalRecvFeesResponse + * @memberof ibc.applications.fee.v1.IdentifiedPacketFees * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryTotalRecvFeesResponse.verify = function verify(message) { + IdentifiedPacketFees.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.recv_fees != null && message.hasOwnProperty("recv_fees")) { - if (!Array.isArray(message.recv_fees)) - return "recv_fees: array expected"; - for (var i = 0; i < message.recv_fees.length; ++i) { - var error = $root.cosmos.base.v1beta1.Coin.verify(message.recv_fees[i]); + if (message.packet_id != null && message.hasOwnProperty("packet_id")) { + var error = $root.ibc.core.channel.v1.PacketId.verify(message.packet_id); + if (error) + return "packet_id." + error; + } + if (message.packet_fees != null && message.hasOwnProperty("packet_fees")) { + if (!Array.isArray(message.packet_fees)) + return "packet_fees: array expected"; + for (var i = 0; i < message.packet_fees.length; ++i) { + var error = $root.ibc.applications.fee.v1.PacketFee.verify(message.packet_fees[i]); if (error) - return "recv_fees." + error; + return "packet_fees." + error; } } return null; }; /** - * Creates a QueryTotalRecvFeesResponse message from a plain object. Also converts values to their respective internal types. + * Creates an IdentifiedPacketFees message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.applications.fee.v1.QueryTotalRecvFeesResponse + * @memberof ibc.applications.fee.v1.IdentifiedPacketFees * @static * @param {Object.} object Plain object - * @returns {ibc.applications.fee.v1.QueryTotalRecvFeesResponse} QueryTotalRecvFeesResponse + * @returns {ibc.applications.fee.v1.IdentifiedPacketFees} IdentifiedPacketFees */ - QueryTotalRecvFeesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.fee.v1.QueryTotalRecvFeesResponse) + IdentifiedPacketFees.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.fee.v1.IdentifiedPacketFees) return object; - var message = new $root.ibc.applications.fee.v1.QueryTotalRecvFeesResponse(); - if (object.recv_fees) { - if (!Array.isArray(object.recv_fees)) - throw TypeError(".ibc.applications.fee.v1.QueryTotalRecvFeesResponse.recv_fees: array expected"); - message.recv_fees = []; - for (var i = 0; i < object.recv_fees.length; ++i) { - if (typeof object.recv_fees[i] !== "object") - throw TypeError(".ibc.applications.fee.v1.QueryTotalRecvFeesResponse.recv_fees: object expected"); - message.recv_fees[i] = $root.cosmos.base.v1beta1.Coin.fromObject(object.recv_fees[i]); + var message = new $root.ibc.applications.fee.v1.IdentifiedPacketFees(); + if (object.packet_id != null) { + if (typeof object.packet_id !== "object") + throw TypeError(".ibc.applications.fee.v1.IdentifiedPacketFees.packet_id: object expected"); + message.packet_id = $root.ibc.core.channel.v1.PacketId.fromObject(object.packet_id); + } + if (object.packet_fees) { + if (!Array.isArray(object.packet_fees)) + throw TypeError(".ibc.applications.fee.v1.IdentifiedPacketFees.packet_fees: array expected"); + message.packet_fees = []; + for (var i = 0; i < object.packet_fees.length; ++i) { + if (typeof object.packet_fees[i] !== "object") + throw TypeError(".ibc.applications.fee.v1.IdentifiedPacketFees.packet_fees: object expected"); + message.packet_fees[i] = $root.ibc.applications.fee.v1.PacketFee.fromObject(object.packet_fees[i]); } } return message; }; /** - * Creates a plain object from a QueryTotalRecvFeesResponse message. Also converts values to other types if specified. + * Creates a plain object from an IdentifiedPacketFees message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.applications.fee.v1.QueryTotalRecvFeesResponse + * @memberof ibc.applications.fee.v1.IdentifiedPacketFees * @static - * @param {ibc.applications.fee.v1.QueryTotalRecvFeesResponse} message QueryTotalRecvFeesResponse + * @param {ibc.applications.fee.v1.IdentifiedPacketFees} message IdentifiedPacketFees * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryTotalRecvFeesResponse.toObject = function toObject(message, options) { + IdentifiedPacketFees.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.recv_fees = []; - if (message.recv_fees && message.recv_fees.length) { - object.recv_fees = []; - for (var j = 0; j < message.recv_fees.length; ++j) - object.recv_fees[j] = $root.cosmos.base.v1beta1.Coin.toObject(message.recv_fees[j], options); + object.packet_fees = []; + if (options.defaults) + object.packet_id = null; + if (message.packet_id != null && message.hasOwnProperty("packet_id")) + object.packet_id = $root.ibc.core.channel.v1.PacketId.toObject(message.packet_id, options); + if (message.packet_fees && message.packet_fees.length) { + object.packet_fees = []; + for (var j = 0; j < message.packet_fees.length; ++j) + object.packet_fees[j] = $root.ibc.applications.fee.v1.PacketFee.toObject(message.packet_fees[j], options); } return object; }; /** - * Converts this QueryTotalRecvFeesResponse to JSON. + * Converts this IdentifiedPacketFees to JSON. * @function toJSON - * @memberof ibc.applications.fee.v1.QueryTotalRecvFeesResponse + * @memberof ibc.applications.fee.v1.IdentifiedPacketFees * @instance * @returns {Object.} JSON object */ - QueryTotalRecvFeesResponse.prototype.toJSON = function toJSON() { + IdentifiedPacketFees.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryTotalRecvFeesResponse; + return IdentifiedPacketFees; })(); - v1.QueryTotalAckFeesRequest = (function() { + v1.IncentivizedAcknowledgement = (function() { /** - * Properties of a QueryTotalAckFeesRequest. + * Properties of an IncentivizedAcknowledgement. * @memberof ibc.applications.fee.v1 - * @interface IQueryTotalAckFeesRequest - * @property {ibc.core.channel.v1.IPacketId|null} [packet_id] QueryTotalAckFeesRequest packet_id + * @interface IIncentivizedAcknowledgement + * @property {Uint8Array|null} [app_acknowledgement] IncentivizedAcknowledgement app_acknowledgement + * @property {string|null} [forward_relayer_address] IncentivizedAcknowledgement forward_relayer_address + * @property {boolean|null} [underlying_app_success] IncentivizedAcknowledgement underlying_app_success */ /** - * Constructs a new QueryTotalAckFeesRequest. + * Constructs a new IncentivizedAcknowledgement. * @memberof ibc.applications.fee.v1 - * @classdesc Represents a QueryTotalAckFeesRequest. - * @implements IQueryTotalAckFeesRequest + * @classdesc Represents an IncentivizedAcknowledgement. + * @implements IIncentivizedAcknowledgement * @constructor - * @param {ibc.applications.fee.v1.IQueryTotalAckFeesRequest=} [properties] Properties to set + * @param {ibc.applications.fee.v1.IIncentivizedAcknowledgement=} [properties] Properties to set */ - function QueryTotalAckFeesRequest(properties) { + function IncentivizedAcknowledgement(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -23136,63 +29466,89 @@ } /** - * QueryTotalAckFeesRequest packet_id. - * @member {ibc.core.channel.v1.IPacketId|null|undefined} packet_id - * @memberof ibc.applications.fee.v1.QueryTotalAckFeesRequest + * IncentivizedAcknowledgement app_acknowledgement. + * @member {Uint8Array} app_acknowledgement + * @memberof ibc.applications.fee.v1.IncentivizedAcknowledgement * @instance */ - QueryTotalAckFeesRequest.prototype.packet_id = null; + IncentivizedAcknowledgement.prototype.app_acknowledgement = $util.newBuffer([]); /** - * Encodes the specified QueryTotalAckFeesRequest message. Does not implicitly {@link ibc.applications.fee.v1.QueryTotalAckFeesRequest.verify|verify} messages. + * IncentivizedAcknowledgement forward_relayer_address. + * @member {string} forward_relayer_address + * @memberof ibc.applications.fee.v1.IncentivizedAcknowledgement + * @instance + */ + IncentivizedAcknowledgement.prototype.forward_relayer_address = ""; + + /** + * IncentivizedAcknowledgement underlying_app_success. + * @member {boolean} underlying_app_success + * @memberof ibc.applications.fee.v1.IncentivizedAcknowledgement + * @instance + */ + IncentivizedAcknowledgement.prototype.underlying_app_success = false; + + /** + * Encodes the specified IncentivizedAcknowledgement message. Does not implicitly {@link ibc.applications.fee.v1.IncentivizedAcknowledgement.verify|verify} messages. * @function encode - * @memberof ibc.applications.fee.v1.QueryTotalAckFeesRequest + * @memberof ibc.applications.fee.v1.IncentivizedAcknowledgement * @static - * @param {ibc.applications.fee.v1.IQueryTotalAckFeesRequest} message QueryTotalAckFeesRequest message or plain object to encode + * @param {ibc.applications.fee.v1.IIncentivizedAcknowledgement} message IncentivizedAcknowledgement message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryTotalAckFeesRequest.encode = function encode(message, writer) { + IncentivizedAcknowledgement.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.packet_id != null && Object.hasOwnProperty.call(message, "packet_id")) - $root.ibc.core.channel.v1.PacketId.encode(message.packet_id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.app_acknowledgement != null && Object.hasOwnProperty.call(message, "app_acknowledgement")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.app_acknowledgement); + if (message.forward_relayer_address != null && Object.hasOwnProperty.call(message, "forward_relayer_address")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.forward_relayer_address); + if (message.underlying_app_success != null && Object.hasOwnProperty.call(message, "underlying_app_success")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.underlying_app_success); return writer; }; /** - * Encodes the specified QueryTotalAckFeesRequest message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.QueryTotalAckFeesRequest.verify|verify} messages. + * Encodes the specified IncentivizedAcknowledgement message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.IncentivizedAcknowledgement.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.applications.fee.v1.QueryTotalAckFeesRequest + * @memberof ibc.applications.fee.v1.IncentivizedAcknowledgement * @static - * @param {ibc.applications.fee.v1.IQueryTotalAckFeesRequest} message QueryTotalAckFeesRequest message or plain object to encode + * @param {ibc.applications.fee.v1.IIncentivizedAcknowledgement} message IncentivizedAcknowledgement message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryTotalAckFeesRequest.encodeDelimited = function encodeDelimited(message, writer) { + IncentivizedAcknowledgement.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryTotalAckFeesRequest message from the specified reader or buffer. + * Decodes an IncentivizedAcknowledgement message from the specified reader or buffer. * @function decode - * @memberof ibc.applications.fee.v1.QueryTotalAckFeesRequest + * @memberof ibc.applications.fee.v1.IncentivizedAcknowledgement * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.fee.v1.QueryTotalAckFeesRequest} QueryTotalAckFeesRequest + * @returns {ibc.applications.fee.v1.IncentivizedAcknowledgement} IncentivizedAcknowledgement * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryTotalAckFeesRequest.decode = function decode(reader, length) { + IncentivizedAcknowledgement.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.QueryTotalAckFeesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.IncentivizedAcknowledgement(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.packet_id = $root.ibc.core.channel.v1.PacketId.decode(reader, reader.uint32()); + message.app_acknowledgement = reader.bytes(); + break; + case 2: + message.forward_relayer_address = reader.string(); + break; + case 3: + message.underlying_app_success = reader.bool(); break; default: reader.skipType(tag & 7); @@ -23203,308 +29559,485 @@ }; /** - * Decodes a QueryTotalAckFeesRequest message from the specified reader or buffer, length delimited. + * Decodes an IncentivizedAcknowledgement message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.applications.fee.v1.QueryTotalAckFeesRequest + * @memberof ibc.applications.fee.v1.IncentivizedAcknowledgement * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.fee.v1.QueryTotalAckFeesRequest} QueryTotalAckFeesRequest + * @returns {ibc.applications.fee.v1.IncentivizedAcknowledgement} IncentivizedAcknowledgement * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryTotalAckFeesRequest.decodeDelimited = function decodeDelimited(reader) { + IncentivizedAcknowledgement.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryTotalAckFeesRequest message. + * Verifies an IncentivizedAcknowledgement message. * @function verify - * @memberof ibc.applications.fee.v1.QueryTotalAckFeesRequest + * @memberof ibc.applications.fee.v1.IncentivizedAcknowledgement * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryTotalAckFeesRequest.verify = function verify(message) { + IncentivizedAcknowledgement.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.packet_id != null && message.hasOwnProperty("packet_id")) { - var error = $root.ibc.core.channel.v1.PacketId.verify(message.packet_id); - if (error) - return "packet_id." + error; - } + if (message.app_acknowledgement != null && message.hasOwnProperty("app_acknowledgement")) + if (!(message.app_acknowledgement && typeof message.app_acknowledgement.length === "number" || $util.isString(message.app_acknowledgement))) + return "app_acknowledgement: buffer expected"; + if (message.forward_relayer_address != null && message.hasOwnProperty("forward_relayer_address")) + if (!$util.isString(message.forward_relayer_address)) + return "forward_relayer_address: string expected"; + if (message.underlying_app_success != null && message.hasOwnProperty("underlying_app_success")) + if (typeof message.underlying_app_success !== "boolean") + return "underlying_app_success: boolean expected"; return null; }; /** - * Creates a QueryTotalAckFeesRequest message from a plain object. Also converts values to their respective internal types. + * Creates an IncentivizedAcknowledgement message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.applications.fee.v1.QueryTotalAckFeesRequest + * @memberof ibc.applications.fee.v1.IncentivizedAcknowledgement * @static * @param {Object.} object Plain object - * @returns {ibc.applications.fee.v1.QueryTotalAckFeesRequest} QueryTotalAckFeesRequest + * @returns {ibc.applications.fee.v1.IncentivizedAcknowledgement} IncentivizedAcknowledgement */ - QueryTotalAckFeesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.fee.v1.QueryTotalAckFeesRequest) + IncentivizedAcknowledgement.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.fee.v1.IncentivizedAcknowledgement) return object; - var message = new $root.ibc.applications.fee.v1.QueryTotalAckFeesRequest(); - if (object.packet_id != null) { - if (typeof object.packet_id !== "object") - throw TypeError(".ibc.applications.fee.v1.QueryTotalAckFeesRequest.packet_id: object expected"); - message.packet_id = $root.ibc.core.channel.v1.PacketId.fromObject(object.packet_id); - } + var message = new $root.ibc.applications.fee.v1.IncentivizedAcknowledgement(); + if (object.app_acknowledgement != null) + if (typeof object.app_acknowledgement === "string") + $util.base64.decode(object.app_acknowledgement, message.app_acknowledgement = $util.newBuffer($util.base64.length(object.app_acknowledgement)), 0); + else if (object.app_acknowledgement.length) + message.app_acknowledgement = object.app_acknowledgement; + if (object.forward_relayer_address != null) + message.forward_relayer_address = String(object.forward_relayer_address); + if (object.underlying_app_success != null) + message.underlying_app_success = Boolean(object.underlying_app_success); return message; }; /** - * Creates a plain object from a QueryTotalAckFeesRequest message. Also converts values to other types if specified. + * Creates a plain object from an IncentivizedAcknowledgement message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.applications.fee.v1.QueryTotalAckFeesRequest + * @memberof ibc.applications.fee.v1.IncentivizedAcknowledgement * @static - * @param {ibc.applications.fee.v1.QueryTotalAckFeesRequest} message QueryTotalAckFeesRequest + * @param {ibc.applications.fee.v1.IncentivizedAcknowledgement} message IncentivizedAcknowledgement * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryTotalAckFeesRequest.toObject = function toObject(message, options) { + IncentivizedAcknowledgement.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.packet_id = null; - if (message.packet_id != null && message.hasOwnProperty("packet_id")) - object.packet_id = $root.ibc.core.channel.v1.PacketId.toObject(message.packet_id, options); + if (options.defaults) { + if (options.bytes === String) + object.app_acknowledgement = ""; + else { + object.app_acknowledgement = []; + if (options.bytes !== Array) + object.app_acknowledgement = $util.newBuffer(object.app_acknowledgement); + } + object.forward_relayer_address = ""; + object.underlying_app_success = false; + } + if (message.app_acknowledgement != null && message.hasOwnProperty("app_acknowledgement")) + object.app_acknowledgement = options.bytes === String ? $util.base64.encode(message.app_acknowledgement, 0, message.app_acknowledgement.length) : options.bytes === Array ? Array.prototype.slice.call(message.app_acknowledgement) : message.app_acknowledgement; + if (message.forward_relayer_address != null && message.hasOwnProperty("forward_relayer_address")) + object.forward_relayer_address = message.forward_relayer_address; + if (message.underlying_app_success != null && message.hasOwnProperty("underlying_app_success")) + object.underlying_app_success = message.underlying_app_success; return object; }; /** - * Converts this QueryTotalAckFeesRequest to JSON. + * Converts this IncentivizedAcknowledgement to JSON. * @function toJSON - * @memberof ibc.applications.fee.v1.QueryTotalAckFeesRequest + * @memberof ibc.applications.fee.v1.IncentivizedAcknowledgement * @instance * @returns {Object.} JSON object */ - QueryTotalAckFeesRequest.prototype.toJSON = function toJSON() { + IncentivizedAcknowledgement.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryTotalAckFeesRequest; + return IncentivizedAcknowledgement; })(); - v1.QueryTotalAckFeesResponse = (function() { + v1.Query = (function() { /** - * Properties of a QueryTotalAckFeesResponse. + * Constructs a new Query service. * @memberof ibc.applications.fee.v1 - * @interface IQueryTotalAckFeesResponse - * @property {Array.|null} [ack_fees] QueryTotalAckFeesResponse ack_fees + * @classdesc Represents a Query + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited */ + function Query(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (Query.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Query; /** - * Constructs a new QueryTotalAckFeesResponse. - * @memberof ibc.applications.fee.v1 - * @classdesc Represents a QueryTotalAckFeesResponse. - * @implements IQueryTotalAckFeesResponse - * @constructor - * @param {ibc.applications.fee.v1.IQueryTotalAckFeesResponse=} [properties] Properties to set + * Callback as used by {@link ibc.applications.fee.v1.Query#incentivizedPackets}. + * @memberof ibc.applications.fee.v1.Query + * @typedef IncentivizedPacketsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.applications.fee.v1.QueryIncentivizedPacketsResponse} [response] QueryIncentivizedPacketsResponse */ - function QueryTotalAckFeesResponse(properties) { - this.ack_fees = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } /** - * QueryTotalAckFeesResponse ack_fees. - * @member {Array.} ack_fees - * @memberof ibc.applications.fee.v1.QueryTotalAckFeesResponse + * Calls IncentivizedPackets. + * @function incentivizedPackets + * @memberof ibc.applications.fee.v1.Query * @instance + * @param {ibc.applications.fee.v1.IQueryIncentivizedPacketsRequest} request QueryIncentivizedPacketsRequest message or plain object + * @param {ibc.applications.fee.v1.Query.IncentivizedPacketsCallback} callback Node-style callback called with the error, if any, and QueryIncentivizedPacketsResponse + * @returns {undefined} + * @variation 1 */ - QueryTotalAckFeesResponse.prototype.ack_fees = $util.emptyArray; + Object.defineProperty(Query.prototype.incentivizedPackets = function incentivizedPackets(request, callback) { + return this.rpcCall(incentivizedPackets, $root.ibc.applications.fee.v1.QueryIncentivizedPacketsRequest, $root.ibc.applications.fee.v1.QueryIncentivizedPacketsResponse, request, callback); + }, "name", { value: "IncentivizedPackets" }); /** - * Encodes the specified QueryTotalAckFeesResponse message. Does not implicitly {@link ibc.applications.fee.v1.QueryTotalAckFeesResponse.verify|verify} messages. - * @function encode - * @memberof ibc.applications.fee.v1.QueryTotalAckFeesResponse - * @static - * @param {ibc.applications.fee.v1.IQueryTotalAckFeesResponse} message QueryTotalAckFeesResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls IncentivizedPackets. + * @function incentivizedPackets + * @memberof ibc.applications.fee.v1.Query + * @instance + * @param {ibc.applications.fee.v1.IQueryIncentivizedPacketsRequest} request QueryIncentivizedPacketsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link ibc.applications.fee.v1.Query#incentivizedPacket}. + * @memberof ibc.applications.fee.v1.Query + * @typedef IncentivizedPacketCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.applications.fee.v1.QueryIncentivizedPacketResponse} [response] QueryIncentivizedPacketResponse + */ + + /** + * Calls IncentivizedPacket. + * @function incentivizedPacket + * @memberof ibc.applications.fee.v1.Query + * @instance + * @param {ibc.applications.fee.v1.IQueryIncentivizedPacketRequest} request QueryIncentivizedPacketRequest message or plain object + * @param {ibc.applications.fee.v1.Query.IncentivizedPacketCallback} callback Node-style callback called with the error, if any, and QueryIncentivizedPacketResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Query.prototype.incentivizedPacket = function incentivizedPacket(request, callback) { + return this.rpcCall(incentivizedPacket, $root.ibc.applications.fee.v1.QueryIncentivizedPacketRequest, $root.ibc.applications.fee.v1.QueryIncentivizedPacketResponse, request, callback); + }, "name", { value: "IncentivizedPacket" }); + + /** + * Calls IncentivizedPacket. + * @function incentivizedPacket + * @memberof ibc.applications.fee.v1.Query + * @instance + * @param {ibc.applications.fee.v1.IQueryIncentivizedPacketRequest} request QueryIncentivizedPacketRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link ibc.applications.fee.v1.Query#incentivizedPacketsForChannel}. + * @memberof ibc.applications.fee.v1.Query + * @typedef IncentivizedPacketsForChannelCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelResponse} [response] QueryIncentivizedPacketsForChannelResponse + */ + + /** + * Calls IncentivizedPacketsForChannel. + * @function incentivizedPacketsForChannel + * @memberof ibc.applications.fee.v1.Query + * @instance + * @param {ibc.applications.fee.v1.IQueryIncentivizedPacketsForChannelRequest} request QueryIncentivizedPacketsForChannelRequest message or plain object + * @param {ibc.applications.fee.v1.Query.IncentivizedPacketsForChannelCallback} callback Node-style callback called with the error, if any, and QueryIncentivizedPacketsForChannelResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Query.prototype.incentivizedPacketsForChannel = function incentivizedPacketsForChannel(request, callback) { + return this.rpcCall(incentivizedPacketsForChannel, $root.ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest, $root.ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelResponse, request, callback); + }, "name", { value: "IncentivizedPacketsForChannel" }); + + /** + * Calls IncentivizedPacketsForChannel. + * @function incentivizedPacketsForChannel + * @memberof ibc.applications.fee.v1.Query + * @instance + * @param {ibc.applications.fee.v1.IQueryIncentivizedPacketsForChannelRequest} request QueryIncentivizedPacketsForChannelRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link ibc.applications.fee.v1.Query#totalRecvFees}. + * @memberof ibc.applications.fee.v1.Query + * @typedef TotalRecvFeesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.applications.fee.v1.QueryTotalRecvFeesResponse} [response] QueryTotalRecvFeesResponse + */ + + /** + * Calls TotalRecvFees. + * @function totalRecvFees + * @memberof ibc.applications.fee.v1.Query + * @instance + * @param {ibc.applications.fee.v1.IQueryTotalRecvFeesRequest} request QueryTotalRecvFeesRequest message or plain object + * @param {ibc.applications.fee.v1.Query.TotalRecvFeesCallback} callback Node-style callback called with the error, if any, and QueryTotalRecvFeesResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Query.prototype.totalRecvFees = function totalRecvFees(request, callback) { + return this.rpcCall(totalRecvFees, $root.ibc.applications.fee.v1.QueryTotalRecvFeesRequest, $root.ibc.applications.fee.v1.QueryTotalRecvFeesResponse, request, callback); + }, "name", { value: "TotalRecvFees" }); + + /** + * Calls TotalRecvFees. + * @function totalRecvFees + * @memberof ibc.applications.fee.v1.Query + * @instance + * @param {ibc.applications.fee.v1.IQueryTotalRecvFeesRequest} request QueryTotalRecvFeesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link ibc.applications.fee.v1.Query#totalAckFees}. + * @memberof ibc.applications.fee.v1.Query + * @typedef TotalAckFeesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.applications.fee.v1.QueryTotalAckFeesResponse} [response] QueryTotalAckFeesResponse + */ + + /** + * Calls TotalAckFees. + * @function totalAckFees + * @memberof ibc.applications.fee.v1.Query + * @instance + * @param {ibc.applications.fee.v1.IQueryTotalAckFeesRequest} request QueryTotalAckFeesRequest message or plain object + * @param {ibc.applications.fee.v1.Query.TotalAckFeesCallback} callback Node-style callback called with the error, if any, and QueryTotalAckFeesResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Query.prototype.totalAckFees = function totalAckFees(request, callback) { + return this.rpcCall(totalAckFees, $root.ibc.applications.fee.v1.QueryTotalAckFeesRequest, $root.ibc.applications.fee.v1.QueryTotalAckFeesResponse, request, callback); + }, "name", { value: "TotalAckFees" }); + + /** + * Calls TotalAckFees. + * @function totalAckFees + * @memberof ibc.applications.fee.v1.Query + * @instance + * @param {ibc.applications.fee.v1.IQueryTotalAckFeesRequest} request QueryTotalAckFeesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link ibc.applications.fee.v1.Query#totalTimeoutFees}. + * @memberof ibc.applications.fee.v1.Query + * @typedef TotalTimeoutFeesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.applications.fee.v1.QueryTotalTimeoutFeesResponse} [response] QueryTotalTimeoutFeesResponse + */ + + /** + * Calls TotalTimeoutFees. + * @function totalTimeoutFees + * @memberof ibc.applications.fee.v1.Query + * @instance + * @param {ibc.applications.fee.v1.IQueryTotalTimeoutFeesRequest} request QueryTotalTimeoutFeesRequest message or plain object + * @param {ibc.applications.fee.v1.Query.TotalTimeoutFeesCallback} callback Node-style callback called with the error, if any, and QueryTotalTimeoutFeesResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Query.prototype.totalTimeoutFees = function totalTimeoutFees(request, callback) { + return this.rpcCall(totalTimeoutFees, $root.ibc.applications.fee.v1.QueryTotalTimeoutFeesRequest, $root.ibc.applications.fee.v1.QueryTotalTimeoutFeesResponse, request, callback); + }, "name", { value: "TotalTimeoutFees" }); + + /** + * Calls TotalTimeoutFees. + * @function totalTimeoutFees + * @memberof ibc.applications.fee.v1.Query + * @instance + * @param {ibc.applications.fee.v1.IQueryTotalTimeoutFeesRequest} request QueryTotalTimeoutFeesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link ibc.applications.fee.v1.Query#payee}. + * @memberof ibc.applications.fee.v1.Query + * @typedef PayeeCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.applications.fee.v1.QueryPayeeResponse} [response] QueryPayeeResponse + */ + + /** + * Calls Payee. + * @function payee + * @memberof ibc.applications.fee.v1.Query + * @instance + * @param {ibc.applications.fee.v1.IQueryPayeeRequest} request QueryPayeeRequest message or plain object + * @param {ibc.applications.fee.v1.Query.PayeeCallback} callback Node-style callback called with the error, if any, and QueryPayeeResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Query.prototype.payee = function payee(request, callback) { + return this.rpcCall(payee, $root.ibc.applications.fee.v1.QueryPayeeRequest, $root.ibc.applications.fee.v1.QueryPayeeResponse, request, callback); + }, "name", { value: "Payee" }); + + /** + * Calls Payee. + * @function payee + * @memberof ibc.applications.fee.v1.Query + * @instance + * @param {ibc.applications.fee.v1.IQueryPayeeRequest} request QueryPayeeRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link ibc.applications.fee.v1.Query#counterpartyPayee}. + * @memberof ibc.applications.fee.v1.Query + * @typedef CounterpartyPayeeCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.applications.fee.v1.QueryCounterpartyPayeeResponse} [response] QueryCounterpartyPayeeResponse + */ + + /** + * Calls CounterpartyPayee. + * @function counterpartyPayee + * @memberof ibc.applications.fee.v1.Query + * @instance + * @param {ibc.applications.fee.v1.IQueryCounterpartyPayeeRequest} request QueryCounterpartyPayeeRequest message or plain object + * @param {ibc.applications.fee.v1.Query.CounterpartyPayeeCallback} callback Node-style callback called with the error, if any, and QueryCounterpartyPayeeResponse + * @returns {undefined} + * @variation 1 */ - QueryTotalAckFeesResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.ack_fees != null && message.ack_fees.length) - for (var i = 0; i < message.ack_fees.length; ++i) - $root.cosmos.base.v1beta1.Coin.encode(message.ack_fees[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; + Object.defineProperty(Query.prototype.counterpartyPayee = function counterpartyPayee(request, callback) { + return this.rpcCall(counterpartyPayee, $root.ibc.applications.fee.v1.QueryCounterpartyPayeeRequest, $root.ibc.applications.fee.v1.QueryCounterpartyPayeeResponse, request, callback); + }, "name", { value: "CounterpartyPayee" }); /** - * Encodes the specified QueryTotalAckFeesResponse message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.QueryTotalAckFeesResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof ibc.applications.fee.v1.QueryTotalAckFeesResponse - * @static - * @param {ibc.applications.fee.v1.IQueryTotalAckFeesResponse} message QueryTotalAckFeesResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls CounterpartyPayee. + * @function counterpartyPayee + * @memberof ibc.applications.fee.v1.Query + * @instance + * @param {ibc.applications.fee.v1.IQueryCounterpartyPayeeRequest} request QueryCounterpartyPayeeRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - QueryTotalAckFeesResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; /** - * Decodes a QueryTotalAckFeesResponse message from the specified reader or buffer. - * @function decode - * @memberof ibc.applications.fee.v1.QueryTotalAckFeesResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.fee.v1.QueryTotalAckFeesResponse} QueryTotalAckFeesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link ibc.applications.fee.v1.Query#feeEnabledChannels}. + * @memberof ibc.applications.fee.v1.Query + * @typedef FeeEnabledChannelsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.applications.fee.v1.QueryFeeEnabledChannelsResponse} [response] QueryFeeEnabledChannelsResponse */ - QueryTotalAckFeesResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.QueryTotalAckFeesResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.ack_fees && message.ack_fees.length)) - message.ack_fees = []; - message.ack_fees.push($root.cosmos.base.v1beta1.Coin.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; /** - * Decodes a QueryTotalAckFeesResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ibc.applications.fee.v1.QueryTotalAckFeesResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.fee.v1.QueryTotalAckFeesResponse} QueryTotalAckFeesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls FeeEnabledChannels. + * @function feeEnabledChannels + * @memberof ibc.applications.fee.v1.Query + * @instance + * @param {ibc.applications.fee.v1.IQueryFeeEnabledChannelsRequest} request QueryFeeEnabledChannelsRequest message or plain object + * @param {ibc.applications.fee.v1.Query.FeeEnabledChannelsCallback} callback Node-style callback called with the error, if any, and QueryFeeEnabledChannelsResponse + * @returns {undefined} + * @variation 1 */ - QueryTotalAckFeesResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + Object.defineProperty(Query.prototype.feeEnabledChannels = function feeEnabledChannels(request, callback) { + return this.rpcCall(feeEnabledChannels, $root.ibc.applications.fee.v1.QueryFeeEnabledChannelsRequest, $root.ibc.applications.fee.v1.QueryFeeEnabledChannelsResponse, request, callback); + }, "name", { value: "FeeEnabledChannels" }); /** - * Verifies a QueryTotalAckFeesResponse message. - * @function verify - * @memberof ibc.applications.fee.v1.QueryTotalAckFeesResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Calls FeeEnabledChannels. + * @function feeEnabledChannels + * @memberof ibc.applications.fee.v1.Query + * @instance + * @param {ibc.applications.fee.v1.IQueryFeeEnabledChannelsRequest} request QueryFeeEnabledChannelsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - QueryTotalAckFeesResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.ack_fees != null && message.hasOwnProperty("ack_fees")) { - if (!Array.isArray(message.ack_fees)) - return "ack_fees: array expected"; - for (var i = 0; i < message.ack_fees.length; ++i) { - var error = $root.cosmos.base.v1beta1.Coin.verify(message.ack_fees[i]); - if (error) - return "ack_fees." + error; - } - } - return null; - }; /** - * Creates a QueryTotalAckFeesResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof ibc.applications.fee.v1.QueryTotalAckFeesResponse - * @static - * @param {Object.} object Plain object - * @returns {ibc.applications.fee.v1.QueryTotalAckFeesResponse} QueryTotalAckFeesResponse + * Callback as used by {@link ibc.applications.fee.v1.Query#feeEnabledChannel}. + * @memberof ibc.applications.fee.v1.Query + * @typedef FeeEnabledChannelCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.applications.fee.v1.QueryFeeEnabledChannelResponse} [response] QueryFeeEnabledChannelResponse */ - QueryTotalAckFeesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.fee.v1.QueryTotalAckFeesResponse) - return object; - var message = new $root.ibc.applications.fee.v1.QueryTotalAckFeesResponse(); - if (object.ack_fees) { - if (!Array.isArray(object.ack_fees)) - throw TypeError(".ibc.applications.fee.v1.QueryTotalAckFeesResponse.ack_fees: array expected"); - message.ack_fees = []; - for (var i = 0; i < object.ack_fees.length; ++i) { - if (typeof object.ack_fees[i] !== "object") - throw TypeError(".ibc.applications.fee.v1.QueryTotalAckFeesResponse.ack_fees: object expected"); - message.ack_fees[i] = $root.cosmos.base.v1beta1.Coin.fromObject(object.ack_fees[i]); - } - } - return message; - }; /** - * Creates a plain object from a QueryTotalAckFeesResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof ibc.applications.fee.v1.QueryTotalAckFeesResponse - * @static - * @param {ibc.applications.fee.v1.QueryTotalAckFeesResponse} message QueryTotalAckFeesResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Calls FeeEnabledChannel. + * @function feeEnabledChannel + * @memberof ibc.applications.fee.v1.Query + * @instance + * @param {ibc.applications.fee.v1.IQueryFeeEnabledChannelRequest} request QueryFeeEnabledChannelRequest message or plain object + * @param {ibc.applications.fee.v1.Query.FeeEnabledChannelCallback} callback Node-style callback called with the error, if any, and QueryFeeEnabledChannelResponse + * @returns {undefined} + * @variation 1 */ - QueryTotalAckFeesResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.ack_fees = []; - if (message.ack_fees && message.ack_fees.length) { - object.ack_fees = []; - for (var j = 0; j < message.ack_fees.length; ++j) - object.ack_fees[j] = $root.cosmos.base.v1beta1.Coin.toObject(message.ack_fees[j], options); - } - return object; - }; + Object.defineProperty(Query.prototype.feeEnabledChannel = function feeEnabledChannel(request, callback) { + return this.rpcCall(feeEnabledChannel, $root.ibc.applications.fee.v1.QueryFeeEnabledChannelRequest, $root.ibc.applications.fee.v1.QueryFeeEnabledChannelResponse, request, callback); + }, "name", { value: "FeeEnabledChannel" }); /** - * Converts this QueryTotalAckFeesResponse to JSON. - * @function toJSON - * @memberof ibc.applications.fee.v1.QueryTotalAckFeesResponse + * Calls FeeEnabledChannel. + * @function feeEnabledChannel + * @memberof ibc.applications.fee.v1.Query * @instance - * @returns {Object.} JSON object + * @param {ibc.applications.fee.v1.IQueryFeeEnabledChannelRequest} request QueryFeeEnabledChannelRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - QueryTotalAckFeesResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - return QueryTotalAckFeesResponse; + return Query; })(); - v1.QueryTotalTimeoutFeesRequest = (function() { + v1.QueryIncentivizedPacketsRequest = (function() { /** - * Properties of a QueryTotalTimeoutFeesRequest. + * Properties of a QueryIncentivizedPacketsRequest. * @memberof ibc.applications.fee.v1 - * @interface IQueryTotalTimeoutFeesRequest - * @property {ibc.core.channel.v1.IPacketId|null} [packet_id] QueryTotalTimeoutFeesRequest packet_id + * @interface IQueryIncentivizedPacketsRequest + * @property {cosmos.base.query.v1beta1.IPageRequest|null} [pagination] QueryIncentivizedPacketsRequest pagination + * @property {Long|null} [query_height] QueryIncentivizedPacketsRequest query_height */ /** - * Constructs a new QueryTotalTimeoutFeesRequest. + * Constructs a new QueryIncentivizedPacketsRequest. * @memberof ibc.applications.fee.v1 - * @classdesc Represents a QueryTotalTimeoutFeesRequest. - * @implements IQueryTotalTimeoutFeesRequest + * @classdesc Represents a QueryIncentivizedPacketsRequest. + * @implements IQueryIncentivizedPacketsRequest * @constructor - * @param {ibc.applications.fee.v1.IQueryTotalTimeoutFeesRequest=} [properties] Properties to set + * @param {ibc.applications.fee.v1.IQueryIncentivizedPacketsRequest=} [properties] Properties to set */ - function QueryTotalTimeoutFeesRequest(properties) { + function QueryIncentivizedPacketsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -23512,63 +30045,76 @@ } /** - * QueryTotalTimeoutFeesRequest packet_id. - * @member {ibc.core.channel.v1.IPacketId|null|undefined} packet_id - * @memberof ibc.applications.fee.v1.QueryTotalTimeoutFeesRequest + * QueryIncentivizedPacketsRequest pagination. + * @member {cosmos.base.query.v1beta1.IPageRequest|null|undefined} pagination + * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsRequest * @instance */ - QueryTotalTimeoutFeesRequest.prototype.packet_id = null; + QueryIncentivizedPacketsRequest.prototype.pagination = null; /** - * Encodes the specified QueryTotalTimeoutFeesRequest message. Does not implicitly {@link ibc.applications.fee.v1.QueryTotalTimeoutFeesRequest.verify|verify} messages. + * QueryIncentivizedPacketsRequest query_height. + * @member {Long} query_height + * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsRequest + * @instance + */ + QueryIncentivizedPacketsRequest.prototype.query_height = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + + /** + * Encodes the specified QueryIncentivizedPacketsRequest message. Does not implicitly {@link ibc.applications.fee.v1.QueryIncentivizedPacketsRequest.verify|verify} messages. * @function encode - * @memberof ibc.applications.fee.v1.QueryTotalTimeoutFeesRequest + * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsRequest * @static - * @param {ibc.applications.fee.v1.IQueryTotalTimeoutFeesRequest} message QueryTotalTimeoutFeesRequest message or plain object to encode + * @param {ibc.applications.fee.v1.IQueryIncentivizedPacketsRequest} message QueryIncentivizedPacketsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryTotalTimeoutFeesRequest.encode = function encode(message, writer) { + QueryIncentivizedPacketsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.packet_id != null && Object.hasOwnProperty.call(message, "packet_id")) - $root.ibc.core.channel.v1.PacketId.encode(message.packet_id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.pagination != null && Object.hasOwnProperty.call(message, "pagination")) + $root.cosmos.base.query.v1beta1.PageRequest.encode(message.pagination, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.query_height != null && Object.hasOwnProperty.call(message, "query_height")) + writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.query_height); return writer; }; /** - * Encodes the specified QueryTotalTimeoutFeesRequest message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.QueryTotalTimeoutFeesRequest.verify|verify} messages. + * Encodes the specified QueryIncentivizedPacketsRequest message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.QueryIncentivizedPacketsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.applications.fee.v1.QueryTotalTimeoutFeesRequest + * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsRequest * @static - * @param {ibc.applications.fee.v1.IQueryTotalTimeoutFeesRequest} message QueryTotalTimeoutFeesRequest message or plain object to encode + * @param {ibc.applications.fee.v1.IQueryIncentivizedPacketsRequest} message QueryIncentivizedPacketsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryTotalTimeoutFeesRequest.encodeDelimited = function encodeDelimited(message, writer) { + QueryIncentivizedPacketsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryTotalTimeoutFeesRequest message from the specified reader or buffer. + * Decodes a QueryIncentivizedPacketsRequest message from the specified reader or buffer. * @function decode - * @memberof ibc.applications.fee.v1.QueryTotalTimeoutFeesRequest + * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.fee.v1.QueryTotalTimeoutFeesRequest} QueryTotalTimeoutFeesRequest + * @returns {ibc.applications.fee.v1.QueryIncentivizedPacketsRequest} QueryIncentivizedPacketsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryTotalTimeoutFeesRequest.decode = function decode(reader, length) { + QueryIncentivizedPacketsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.QueryTotalTimeoutFeesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.QueryIncentivizedPacketsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.packet_id = $root.ibc.core.channel.v1.PacketId.decode(reader, reader.uint32()); + message.pagination = $root.cosmos.base.query.v1beta1.PageRequest.decode(reader, reader.uint32()); + break; + case 2: + message.query_height = reader.uint64(); break; default: reader.skipType(tag & 7); @@ -23579,113 +30125,136 @@ }; /** - * Decodes a QueryTotalTimeoutFeesRequest message from the specified reader or buffer, length delimited. + * Decodes a QueryIncentivizedPacketsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.applications.fee.v1.QueryTotalTimeoutFeesRequest + * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.fee.v1.QueryTotalTimeoutFeesRequest} QueryTotalTimeoutFeesRequest + * @returns {ibc.applications.fee.v1.QueryIncentivizedPacketsRequest} QueryIncentivizedPacketsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryTotalTimeoutFeesRequest.decodeDelimited = function decodeDelimited(reader) { + QueryIncentivizedPacketsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryTotalTimeoutFeesRequest message. + * Verifies a QueryIncentivizedPacketsRequest message. * @function verify - * @memberof ibc.applications.fee.v1.QueryTotalTimeoutFeesRequest + * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryTotalTimeoutFeesRequest.verify = function verify(message) { + QueryIncentivizedPacketsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.packet_id != null && message.hasOwnProperty("packet_id")) { - var error = $root.ibc.core.channel.v1.PacketId.verify(message.packet_id); + if (message.pagination != null && message.hasOwnProperty("pagination")) { + var error = $root.cosmos.base.query.v1beta1.PageRequest.verify(message.pagination); if (error) - return "packet_id." + error; + return "pagination." + error; } + if (message.query_height != null && message.hasOwnProperty("query_height")) + if (!$util.isInteger(message.query_height) && !(message.query_height && $util.isInteger(message.query_height.low) && $util.isInteger(message.query_height.high))) + return "query_height: integer|Long expected"; return null; }; /** - * Creates a QueryTotalTimeoutFeesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a QueryIncentivizedPacketsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.applications.fee.v1.QueryTotalTimeoutFeesRequest + * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsRequest * @static * @param {Object.} object Plain object - * @returns {ibc.applications.fee.v1.QueryTotalTimeoutFeesRequest} QueryTotalTimeoutFeesRequest + * @returns {ibc.applications.fee.v1.QueryIncentivizedPacketsRequest} QueryIncentivizedPacketsRequest */ - QueryTotalTimeoutFeesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.fee.v1.QueryTotalTimeoutFeesRequest) + QueryIncentivizedPacketsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.fee.v1.QueryIncentivizedPacketsRequest) return object; - var message = new $root.ibc.applications.fee.v1.QueryTotalTimeoutFeesRequest(); - if (object.packet_id != null) { - if (typeof object.packet_id !== "object") - throw TypeError(".ibc.applications.fee.v1.QueryTotalTimeoutFeesRequest.packet_id: object expected"); - message.packet_id = $root.ibc.core.channel.v1.PacketId.fromObject(object.packet_id); + var message = new $root.ibc.applications.fee.v1.QueryIncentivizedPacketsRequest(); + if (object.pagination != null) { + if (typeof object.pagination !== "object") + throw TypeError(".ibc.applications.fee.v1.QueryIncentivizedPacketsRequest.pagination: object expected"); + message.pagination = $root.cosmos.base.query.v1beta1.PageRequest.fromObject(object.pagination); } + if (object.query_height != null) + if ($util.Long) + (message.query_height = $util.Long.fromValue(object.query_height)).unsigned = true; + else if (typeof object.query_height === "string") + message.query_height = parseInt(object.query_height, 10); + else if (typeof object.query_height === "number") + message.query_height = object.query_height; + else if (typeof object.query_height === "object") + message.query_height = new $util.LongBits(object.query_height.low >>> 0, object.query_height.high >>> 0).toNumber(true); return message; }; /** - * Creates a plain object from a QueryTotalTimeoutFeesRequest message. Also converts values to other types if specified. + * Creates a plain object from a QueryIncentivizedPacketsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.applications.fee.v1.QueryTotalTimeoutFeesRequest + * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsRequest * @static - * @param {ibc.applications.fee.v1.QueryTotalTimeoutFeesRequest} message QueryTotalTimeoutFeesRequest + * @param {ibc.applications.fee.v1.QueryIncentivizedPacketsRequest} message QueryIncentivizedPacketsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryTotalTimeoutFeesRequest.toObject = function toObject(message, options) { + QueryIncentivizedPacketsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.packet_id = null; - if (message.packet_id != null && message.hasOwnProperty("packet_id")) - object.packet_id = $root.ibc.core.channel.v1.PacketId.toObject(message.packet_id, options); + if (options.defaults) { + object.pagination = null; + if ($util.Long) { + var long = new $util.Long(0, 0, true); + object.query_height = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.query_height = options.longs === String ? "0" : 0; + } + if (message.pagination != null && message.hasOwnProperty("pagination")) + object.pagination = $root.cosmos.base.query.v1beta1.PageRequest.toObject(message.pagination, options); + if (message.query_height != null && message.hasOwnProperty("query_height")) + if (typeof message.query_height === "number") + object.query_height = options.longs === String ? String(message.query_height) : message.query_height; + else + object.query_height = options.longs === String ? $util.Long.prototype.toString.call(message.query_height) : options.longs === Number ? new $util.LongBits(message.query_height.low >>> 0, message.query_height.high >>> 0).toNumber(true) : message.query_height; return object; }; /** - * Converts this QueryTotalTimeoutFeesRequest to JSON. + * Converts this QueryIncentivizedPacketsRequest to JSON. * @function toJSON - * @memberof ibc.applications.fee.v1.QueryTotalTimeoutFeesRequest + * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsRequest * @instance * @returns {Object.} JSON object */ - QueryTotalTimeoutFeesRequest.prototype.toJSON = function toJSON() { + QueryIncentivizedPacketsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryTotalTimeoutFeesRequest; + return QueryIncentivizedPacketsRequest; })(); - v1.QueryTotalTimeoutFeesResponse = (function() { + v1.QueryIncentivizedPacketsResponse = (function() { /** - * Properties of a QueryTotalTimeoutFeesResponse. + * Properties of a QueryIncentivizedPacketsResponse. * @memberof ibc.applications.fee.v1 - * @interface IQueryTotalTimeoutFeesResponse - * @property {Array.|null} [timeout_fees] QueryTotalTimeoutFeesResponse timeout_fees + * @interface IQueryIncentivizedPacketsResponse + * @property {Array.|null} [incentivized_packets] QueryIncentivizedPacketsResponse incentivized_packets */ /** - * Constructs a new QueryTotalTimeoutFeesResponse. + * Constructs a new QueryIncentivizedPacketsResponse. * @memberof ibc.applications.fee.v1 - * @classdesc Represents a QueryTotalTimeoutFeesResponse. - * @implements IQueryTotalTimeoutFeesResponse + * @classdesc Represents a QueryIncentivizedPacketsResponse. + * @implements IQueryIncentivizedPacketsResponse * @constructor - * @param {ibc.applications.fee.v1.IQueryTotalTimeoutFeesResponse=} [properties] Properties to set + * @param {ibc.applications.fee.v1.IQueryIncentivizedPacketsResponse=} [properties] Properties to set */ - function QueryTotalTimeoutFeesResponse(properties) { - this.timeout_fees = []; + function QueryIncentivizedPacketsResponse(properties) { + this.incentivized_packets = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -23693,66 +30262,66 @@ } /** - * QueryTotalTimeoutFeesResponse timeout_fees. - * @member {Array.} timeout_fees - * @memberof ibc.applications.fee.v1.QueryTotalTimeoutFeesResponse + * QueryIncentivizedPacketsResponse incentivized_packets. + * @member {Array.} incentivized_packets + * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsResponse * @instance */ - QueryTotalTimeoutFeesResponse.prototype.timeout_fees = $util.emptyArray; + QueryIncentivizedPacketsResponse.prototype.incentivized_packets = $util.emptyArray; /** - * Encodes the specified QueryTotalTimeoutFeesResponse message. Does not implicitly {@link ibc.applications.fee.v1.QueryTotalTimeoutFeesResponse.verify|verify} messages. + * Encodes the specified QueryIncentivizedPacketsResponse message. Does not implicitly {@link ibc.applications.fee.v1.QueryIncentivizedPacketsResponse.verify|verify} messages. * @function encode - * @memberof ibc.applications.fee.v1.QueryTotalTimeoutFeesResponse + * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsResponse * @static - * @param {ibc.applications.fee.v1.IQueryTotalTimeoutFeesResponse} message QueryTotalTimeoutFeesResponse message or plain object to encode + * @param {ibc.applications.fee.v1.IQueryIncentivizedPacketsResponse} message QueryIncentivizedPacketsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryTotalTimeoutFeesResponse.encode = function encode(message, writer) { + QueryIncentivizedPacketsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.timeout_fees != null && message.timeout_fees.length) - for (var i = 0; i < message.timeout_fees.length; ++i) - $root.cosmos.base.v1beta1.Coin.encode(message.timeout_fees[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.incentivized_packets != null && message.incentivized_packets.length) + for (var i = 0; i < message.incentivized_packets.length; ++i) + $root.ibc.applications.fee.v1.IdentifiedPacketFees.encode(message.incentivized_packets[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified QueryTotalTimeoutFeesResponse message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.QueryTotalTimeoutFeesResponse.verify|verify} messages. + * Encodes the specified QueryIncentivizedPacketsResponse message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.QueryIncentivizedPacketsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.applications.fee.v1.QueryTotalTimeoutFeesResponse + * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsResponse * @static - * @param {ibc.applications.fee.v1.IQueryTotalTimeoutFeesResponse} message QueryTotalTimeoutFeesResponse message or plain object to encode + * @param {ibc.applications.fee.v1.IQueryIncentivizedPacketsResponse} message QueryIncentivizedPacketsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryTotalTimeoutFeesResponse.encodeDelimited = function encodeDelimited(message, writer) { + QueryIncentivizedPacketsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryTotalTimeoutFeesResponse message from the specified reader or buffer. + * Decodes a QueryIncentivizedPacketsResponse message from the specified reader or buffer. * @function decode - * @memberof ibc.applications.fee.v1.QueryTotalTimeoutFeesResponse + * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.fee.v1.QueryTotalTimeoutFeesResponse} QueryTotalTimeoutFeesResponse + * @returns {ibc.applications.fee.v1.QueryIncentivizedPacketsResponse} QueryIncentivizedPacketsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryTotalTimeoutFeesResponse.decode = function decode(reader, length) { + QueryIncentivizedPacketsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.QueryTotalTimeoutFeesResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.QueryIncentivizedPacketsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.timeout_fees && message.timeout_fees.length)) - message.timeout_fees = []; - message.timeout_fees.push($root.cosmos.base.v1beta1.Coin.decode(reader, reader.uint32())); + if (!(message.incentivized_packets && message.incentivized_packets.length)) + message.incentivized_packets = []; + message.incentivized_packets.push($root.ibc.applications.fee.v1.IdentifiedPacketFees.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -23763,125 +30332,125 @@ }; /** - * Decodes a QueryTotalTimeoutFeesResponse message from the specified reader or buffer, length delimited. + * Decodes a QueryIncentivizedPacketsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.applications.fee.v1.QueryTotalTimeoutFeesResponse + * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.fee.v1.QueryTotalTimeoutFeesResponse} QueryTotalTimeoutFeesResponse + * @returns {ibc.applications.fee.v1.QueryIncentivizedPacketsResponse} QueryIncentivizedPacketsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryTotalTimeoutFeesResponse.decodeDelimited = function decodeDelimited(reader) { + QueryIncentivizedPacketsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryTotalTimeoutFeesResponse message. + * Verifies a QueryIncentivizedPacketsResponse message. * @function verify - * @memberof ibc.applications.fee.v1.QueryTotalTimeoutFeesResponse + * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryTotalTimeoutFeesResponse.verify = function verify(message) { + QueryIncentivizedPacketsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.timeout_fees != null && message.hasOwnProperty("timeout_fees")) { - if (!Array.isArray(message.timeout_fees)) - return "timeout_fees: array expected"; - for (var i = 0; i < message.timeout_fees.length; ++i) { - var error = $root.cosmos.base.v1beta1.Coin.verify(message.timeout_fees[i]); + if (message.incentivized_packets != null && message.hasOwnProperty("incentivized_packets")) { + if (!Array.isArray(message.incentivized_packets)) + return "incentivized_packets: array expected"; + for (var i = 0; i < message.incentivized_packets.length; ++i) { + var error = $root.ibc.applications.fee.v1.IdentifiedPacketFees.verify(message.incentivized_packets[i]); if (error) - return "timeout_fees." + error; + return "incentivized_packets." + error; } } return null; }; /** - * Creates a QueryTotalTimeoutFeesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a QueryIncentivizedPacketsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.applications.fee.v1.QueryTotalTimeoutFeesResponse + * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsResponse * @static * @param {Object.} object Plain object - * @returns {ibc.applications.fee.v1.QueryTotalTimeoutFeesResponse} QueryTotalTimeoutFeesResponse + * @returns {ibc.applications.fee.v1.QueryIncentivizedPacketsResponse} QueryIncentivizedPacketsResponse */ - QueryTotalTimeoutFeesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.fee.v1.QueryTotalTimeoutFeesResponse) + QueryIncentivizedPacketsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.fee.v1.QueryIncentivizedPacketsResponse) return object; - var message = new $root.ibc.applications.fee.v1.QueryTotalTimeoutFeesResponse(); - if (object.timeout_fees) { - if (!Array.isArray(object.timeout_fees)) - throw TypeError(".ibc.applications.fee.v1.QueryTotalTimeoutFeesResponse.timeout_fees: array expected"); - message.timeout_fees = []; - for (var i = 0; i < object.timeout_fees.length; ++i) { - if (typeof object.timeout_fees[i] !== "object") - throw TypeError(".ibc.applications.fee.v1.QueryTotalTimeoutFeesResponse.timeout_fees: object expected"); - message.timeout_fees[i] = $root.cosmos.base.v1beta1.Coin.fromObject(object.timeout_fees[i]); + var message = new $root.ibc.applications.fee.v1.QueryIncentivizedPacketsResponse(); + if (object.incentivized_packets) { + if (!Array.isArray(object.incentivized_packets)) + throw TypeError(".ibc.applications.fee.v1.QueryIncentivizedPacketsResponse.incentivized_packets: array expected"); + message.incentivized_packets = []; + for (var i = 0; i < object.incentivized_packets.length; ++i) { + if (typeof object.incentivized_packets[i] !== "object") + throw TypeError(".ibc.applications.fee.v1.QueryIncentivizedPacketsResponse.incentivized_packets: object expected"); + message.incentivized_packets[i] = $root.ibc.applications.fee.v1.IdentifiedPacketFees.fromObject(object.incentivized_packets[i]); } } return message; }; /** - * Creates a plain object from a QueryTotalTimeoutFeesResponse message. Also converts values to other types if specified. + * Creates a plain object from a QueryIncentivizedPacketsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.applications.fee.v1.QueryTotalTimeoutFeesResponse + * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsResponse * @static - * @param {ibc.applications.fee.v1.QueryTotalTimeoutFeesResponse} message QueryTotalTimeoutFeesResponse + * @param {ibc.applications.fee.v1.QueryIncentivizedPacketsResponse} message QueryIncentivizedPacketsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryTotalTimeoutFeesResponse.toObject = function toObject(message, options) { + QueryIncentivizedPacketsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.timeout_fees = []; - if (message.timeout_fees && message.timeout_fees.length) { - object.timeout_fees = []; - for (var j = 0; j < message.timeout_fees.length; ++j) - object.timeout_fees[j] = $root.cosmos.base.v1beta1.Coin.toObject(message.timeout_fees[j], options); + object.incentivized_packets = []; + if (message.incentivized_packets && message.incentivized_packets.length) { + object.incentivized_packets = []; + for (var j = 0; j < message.incentivized_packets.length; ++j) + object.incentivized_packets[j] = $root.ibc.applications.fee.v1.IdentifiedPacketFees.toObject(message.incentivized_packets[j], options); } return object; }; /** - * Converts this QueryTotalTimeoutFeesResponse to JSON. + * Converts this QueryIncentivizedPacketsResponse to JSON. * @function toJSON - * @memberof ibc.applications.fee.v1.QueryTotalTimeoutFeesResponse + * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsResponse * @instance * @returns {Object.} JSON object */ - QueryTotalTimeoutFeesResponse.prototype.toJSON = function toJSON() { + QueryIncentivizedPacketsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryTotalTimeoutFeesResponse; + return QueryIncentivizedPacketsResponse; })(); - v1.QueryPayeeRequest = (function() { + v1.QueryIncentivizedPacketRequest = (function() { /** - * Properties of a QueryPayeeRequest. + * Properties of a QueryIncentivizedPacketRequest. * @memberof ibc.applications.fee.v1 - * @interface IQueryPayeeRequest - * @property {string|null} [channel_id] QueryPayeeRequest channel_id - * @property {string|null} [relayer] QueryPayeeRequest relayer + * @interface IQueryIncentivizedPacketRequest + * @property {ibc.core.channel.v1.IPacketId|null} [packet_id] QueryIncentivizedPacketRequest packet_id + * @property {Long|null} [query_height] QueryIncentivizedPacketRequest query_height */ /** - * Constructs a new QueryPayeeRequest. + * Constructs a new QueryIncentivizedPacketRequest. * @memberof ibc.applications.fee.v1 - * @classdesc Represents a QueryPayeeRequest. - * @implements IQueryPayeeRequest + * @classdesc Represents a QueryIncentivizedPacketRequest. + * @implements IQueryIncentivizedPacketRequest * @constructor - * @param {ibc.applications.fee.v1.IQueryPayeeRequest=} [properties] Properties to set + * @param {ibc.applications.fee.v1.IQueryIncentivizedPacketRequest=} [properties] Properties to set */ - function QueryPayeeRequest(properties) { + function QueryIncentivizedPacketRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -23889,76 +30458,76 @@ } /** - * QueryPayeeRequest channel_id. - * @member {string} channel_id - * @memberof ibc.applications.fee.v1.QueryPayeeRequest + * QueryIncentivizedPacketRequest packet_id. + * @member {ibc.core.channel.v1.IPacketId|null|undefined} packet_id + * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketRequest * @instance */ - QueryPayeeRequest.prototype.channel_id = ""; + QueryIncentivizedPacketRequest.prototype.packet_id = null; /** - * QueryPayeeRequest relayer. - * @member {string} relayer - * @memberof ibc.applications.fee.v1.QueryPayeeRequest + * QueryIncentivizedPacketRequest query_height. + * @member {Long} query_height + * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketRequest * @instance */ - QueryPayeeRequest.prototype.relayer = ""; + QueryIncentivizedPacketRequest.prototype.query_height = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** - * Encodes the specified QueryPayeeRequest message. Does not implicitly {@link ibc.applications.fee.v1.QueryPayeeRequest.verify|verify} messages. + * Encodes the specified QueryIncentivizedPacketRequest message. Does not implicitly {@link ibc.applications.fee.v1.QueryIncentivizedPacketRequest.verify|verify} messages. * @function encode - * @memberof ibc.applications.fee.v1.QueryPayeeRequest + * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketRequest * @static - * @param {ibc.applications.fee.v1.IQueryPayeeRequest} message QueryPayeeRequest message or plain object to encode + * @param {ibc.applications.fee.v1.IQueryIncentivizedPacketRequest} message QueryIncentivizedPacketRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryPayeeRequest.encode = function encode(message, writer) { + QueryIncentivizedPacketRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.channel_id != null && Object.hasOwnProperty.call(message, "channel_id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.channel_id); - if (message.relayer != null && Object.hasOwnProperty.call(message, "relayer")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.relayer); + if (message.packet_id != null && Object.hasOwnProperty.call(message, "packet_id")) + $root.ibc.core.channel.v1.PacketId.encode(message.packet_id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.query_height != null && Object.hasOwnProperty.call(message, "query_height")) + writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.query_height); return writer; }; /** - * Encodes the specified QueryPayeeRequest message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.QueryPayeeRequest.verify|verify} messages. + * Encodes the specified QueryIncentivizedPacketRequest message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.QueryIncentivizedPacketRequest.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.applications.fee.v1.QueryPayeeRequest + * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketRequest * @static - * @param {ibc.applications.fee.v1.IQueryPayeeRequest} message QueryPayeeRequest message or plain object to encode + * @param {ibc.applications.fee.v1.IQueryIncentivizedPacketRequest} message QueryIncentivizedPacketRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryPayeeRequest.encodeDelimited = function encodeDelimited(message, writer) { + QueryIncentivizedPacketRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryPayeeRequest message from the specified reader or buffer. + * Decodes a QueryIncentivizedPacketRequest message from the specified reader or buffer. * @function decode - * @memberof ibc.applications.fee.v1.QueryPayeeRequest + * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.fee.v1.QueryPayeeRequest} QueryPayeeRequest + * @returns {ibc.applications.fee.v1.QueryIncentivizedPacketRequest} QueryIncentivizedPacketRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryPayeeRequest.decode = function decode(reader, length) { + QueryIncentivizedPacketRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.QueryPayeeRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.QueryIncentivizedPacketRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.channel_id = reader.string(); + message.packet_id = $root.ibc.core.channel.v1.PacketId.decode(reader, reader.uint32()); break; case 2: - message.relayer = reader.string(); + message.query_height = reader.uint64(); break; default: reader.skipType(tag & 7); @@ -23969,116 +30538,135 @@ }; /** - * Decodes a QueryPayeeRequest message from the specified reader or buffer, length delimited. + * Decodes a QueryIncentivizedPacketRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.applications.fee.v1.QueryPayeeRequest + * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.fee.v1.QueryPayeeRequest} QueryPayeeRequest + * @returns {ibc.applications.fee.v1.QueryIncentivizedPacketRequest} QueryIncentivizedPacketRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryPayeeRequest.decodeDelimited = function decodeDelimited(reader) { + QueryIncentivizedPacketRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryPayeeRequest message. + * Verifies a QueryIncentivizedPacketRequest message. * @function verify - * @memberof ibc.applications.fee.v1.QueryPayeeRequest + * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryPayeeRequest.verify = function verify(message) { + QueryIncentivizedPacketRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.channel_id != null && message.hasOwnProperty("channel_id")) - if (!$util.isString(message.channel_id)) - return "channel_id: string expected"; - if (message.relayer != null && message.hasOwnProperty("relayer")) - if (!$util.isString(message.relayer)) - return "relayer: string expected"; + if (message.packet_id != null && message.hasOwnProperty("packet_id")) { + var error = $root.ibc.core.channel.v1.PacketId.verify(message.packet_id); + if (error) + return "packet_id." + error; + } + if (message.query_height != null && message.hasOwnProperty("query_height")) + if (!$util.isInteger(message.query_height) && !(message.query_height && $util.isInteger(message.query_height.low) && $util.isInteger(message.query_height.high))) + return "query_height: integer|Long expected"; return null; }; /** - * Creates a QueryPayeeRequest message from a plain object. Also converts values to their respective internal types. + * Creates a QueryIncentivizedPacketRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.applications.fee.v1.QueryPayeeRequest + * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketRequest * @static * @param {Object.} object Plain object - * @returns {ibc.applications.fee.v1.QueryPayeeRequest} QueryPayeeRequest + * @returns {ibc.applications.fee.v1.QueryIncentivizedPacketRequest} QueryIncentivizedPacketRequest */ - QueryPayeeRequest.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.fee.v1.QueryPayeeRequest) + QueryIncentivizedPacketRequest.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.fee.v1.QueryIncentivizedPacketRequest) return object; - var message = new $root.ibc.applications.fee.v1.QueryPayeeRequest(); - if (object.channel_id != null) - message.channel_id = String(object.channel_id); - if (object.relayer != null) - message.relayer = String(object.relayer); + var message = new $root.ibc.applications.fee.v1.QueryIncentivizedPacketRequest(); + if (object.packet_id != null) { + if (typeof object.packet_id !== "object") + throw TypeError(".ibc.applications.fee.v1.QueryIncentivizedPacketRequest.packet_id: object expected"); + message.packet_id = $root.ibc.core.channel.v1.PacketId.fromObject(object.packet_id); + } + if (object.query_height != null) + if ($util.Long) + (message.query_height = $util.Long.fromValue(object.query_height)).unsigned = true; + else if (typeof object.query_height === "string") + message.query_height = parseInt(object.query_height, 10); + else if (typeof object.query_height === "number") + message.query_height = object.query_height; + else if (typeof object.query_height === "object") + message.query_height = new $util.LongBits(object.query_height.low >>> 0, object.query_height.high >>> 0).toNumber(true); return message; }; /** - * Creates a plain object from a QueryPayeeRequest message. Also converts values to other types if specified. + * Creates a plain object from a QueryIncentivizedPacketRequest message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.applications.fee.v1.QueryPayeeRequest + * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketRequest * @static - * @param {ibc.applications.fee.v1.QueryPayeeRequest} message QueryPayeeRequest + * @param {ibc.applications.fee.v1.QueryIncentivizedPacketRequest} message QueryIncentivizedPacketRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryPayeeRequest.toObject = function toObject(message, options) { + QueryIncentivizedPacketRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.channel_id = ""; - object.relayer = ""; + object.packet_id = null; + if ($util.Long) { + var long = new $util.Long(0, 0, true); + object.query_height = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.query_height = options.longs === String ? "0" : 0; } - if (message.channel_id != null && message.hasOwnProperty("channel_id")) - object.channel_id = message.channel_id; - if (message.relayer != null && message.hasOwnProperty("relayer")) - object.relayer = message.relayer; + if (message.packet_id != null && message.hasOwnProperty("packet_id")) + object.packet_id = $root.ibc.core.channel.v1.PacketId.toObject(message.packet_id, options); + if (message.query_height != null && message.hasOwnProperty("query_height")) + if (typeof message.query_height === "number") + object.query_height = options.longs === String ? String(message.query_height) : message.query_height; + else + object.query_height = options.longs === String ? $util.Long.prototype.toString.call(message.query_height) : options.longs === Number ? new $util.LongBits(message.query_height.low >>> 0, message.query_height.high >>> 0).toNumber(true) : message.query_height; return object; }; /** - * Converts this QueryPayeeRequest to JSON. + * Converts this QueryIncentivizedPacketRequest to JSON. * @function toJSON - * @memberof ibc.applications.fee.v1.QueryPayeeRequest + * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketRequest * @instance * @returns {Object.} JSON object */ - QueryPayeeRequest.prototype.toJSON = function toJSON() { + QueryIncentivizedPacketRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryPayeeRequest; + return QueryIncentivizedPacketRequest; })(); - v1.QueryPayeeResponse = (function() { + v1.QueryIncentivizedPacketResponse = (function() { /** - * Properties of a QueryPayeeResponse. + * Properties of a QueryIncentivizedPacketResponse. * @memberof ibc.applications.fee.v1 - * @interface IQueryPayeeResponse - * @property {string|null} [payee_address] QueryPayeeResponse payee_address + * @interface IQueryIncentivizedPacketResponse + * @property {ibc.applications.fee.v1.IIdentifiedPacketFees|null} [incentivized_packet] QueryIncentivizedPacketResponse incentivized_packet */ /** - * Constructs a new QueryPayeeResponse. + * Constructs a new QueryIncentivizedPacketResponse. * @memberof ibc.applications.fee.v1 - * @classdesc Represents a QueryPayeeResponse. - * @implements IQueryPayeeResponse + * @classdesc Represents a QueryIncentivizedPacketResponse. + * @implements IQueryIncentivizedPacketResponse * @constructor - * @param {ibc.applications.fee.v1.IQueryPayeeResponse=} [properties] Properties to set + * @param {ibc.applications.fee.v1.IQueryIncentivizedPacketResponse=} [properties] Properties to set */ - function QueryPayeeResponse(properties) { + function QueryIncentivizedPacketResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -24086,63 +30674,63 @@ } /** - * QueryPayeeResponse payee_address. - * @member {string} payee_address - * @memberof ibc.applications.fee.v1.QueryPayeeResponse + * QueryIncentivizedPacketResponse incentivized_packet. + * @member {ibc.applications.fee.v1.IIdentifiedPacketFees|null|undefined} incentivized_packet + * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketResponse * @instance */ - QueryPayeeResponse.prototype.payee_address = ""; + QueryIncentivizedPacketResponse.prototype.incentivized_packet = null; /** - * Encodes the specified QueryPayeeResponse message. Does not implicitly {@link ibc.applications.fee.v1.QueryPayeeResponse.verify|verify} messages. + * Encodes the specified QueryIncentivizedPacketResponse message. Does not implicitly {@link ibc.applications.fee.v1.QueryIncentivizedPacketResponse.verify|verify} messages. * @function encode - * @memberof ibc.applications.fee.v1.QueryPayeeResponse + * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketResponse * @static - * @param {ibc.applications.fee.v1.IQueryPayeeResponse} message QueryPayeeResponse message or plain object to encode + * @param {ibc.applications.fee.v1.IQueryIncentivizedPacketResponse} message QueryIncentivizedPacketResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryPayeeResponse.encode = function encode(message, writer) { + QueryIncentivizedPacketResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.payee_address != null && Object.hasOwnProperty.call(message, "payee_address")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.payee_address); + if (message.incentivized_packet != null && Object.hasOwnProperty.call(message, "incentivized_packet")) + $root.ibc.applications.fee.v1.IdentifiedPacketFees.encode(message.incentivized_packet, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified QueryPayeeResponse message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.QueryPayeeResponse.verify|verify} messages. + * Encodes the specified QueryIncentivizedPacketResponse message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.QueryIncentivizedPacketResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.applications.fee.v1.QueryPayeeResponse + * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketResponse * @static - * @param {ibc.applications.fee.v1.IQueryPayeeResponse} message QueryPayeeResponse message or plain object to encode + * @param {ibc.applications.fee.v1.IQueryIncentivizedPacketResponse} message QueryIncentivizedPacketResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryPayeeResponse.encodeDelimited = function encodeDelimited(message, writer) { + QueryIncentivizedPacketResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryPayeeResponse message from the specified reader or buffer. + * Decodes a QueryIncentivizedPacketResponse message from the specified reader or buffer. * @function decode - * @memberof ibc.applications.fee.v1.QueryPayeeResponse + * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.fee.v1.QueryPayeeResponse} QueryPayeeResponse + * @returns {ibc.applications.fee.v1.QueryIncentivizedPacketResponse} QueryIncentivizedPacketResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryPayeeResponse.decode = function decode(reader, length) { + QueryIncentivizedPacketResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.QueryPayeeResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.QueryIncentivizedPacketResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.payee_address = reader.string(); + message.incentivized_packet = $root.ibc.applications.fee.v1.IdentifiedPacketFees.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -24153,108 +30741,115 @@ }; /** - * Decodes a QueryPayeeResponse message from the specified reader or buffer, length delimited. + * Decodes a QueryIncentivizedPacketResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.applications.fee.v1.QueryPayeeResponse + * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.fee.v1.QueryPayeeResponse} QueryPayeeResponse + * @returns {ibc.applications.fee.v1.QueryIncentivizedPacketResponse} QueryIncentivizedPacketResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryPayeeResponse.decodeDelimited = function decodeDelimited(reader) { + QueryIncentivizedPacketResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryPayeeResponse message. + * Verifies a QueryIncentivizedPacketResponse message. * @function verify - * @memberof ibc.applications.fee.v1.QueryPayeeResponse + * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryPayeeResponse.verify = function verify(message) { + QueryIncentivizedPacketResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.payee_address != null && message.hasOwnProperty("payee_address")) - if (!$util.isString(message.payee_address)) - return "payee_address: string expected"; + if (message.incentivized_packet != null && message.hasOwnProperty("incentivized_packet")) { + var error = $root.ibc.applications.fee.v1.IdentifiedPacketFees.verify(message.incentivized_packet); + if (error) + return "incentivized_packet." + error; + } return null; }; /** - * Creates a QueryPayeeResponse message from a plain object. Also converts values to their respective internal types. + * Creates a QueryIncentivizedPacketResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.applications.fee.v1.QueryPayeeResponse + * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketResponse * @static * @param {Object.} object Plain object - * @returns {ibc.applications.fee.v1.QueryPayeeResponse} QueryPayeeResponse + * @returns {ibc.applications.fee.v1.QueryIncentivizedPacketResponse} QueryIncentivizedPacketResponse */ - QueryPayeeResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.fee.v1.QueryPayeeResponse) + QueryIncentivizedPacketResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.fee.v1.QueryIncentivizedPacketResponse) return object; - var message = new $root.ibc.applications.fee.v1.QueryPayeeResponse(); - if (object.payee_address != null) - message.payee_address = String(object.payee_address); + var message = new $root.ibc.applications.fee.v1.QueryIncentivizedPacketResponse(); + if (object.incentivized_packet != null) { + if (typeof object.incentivized_packet !== "object") + throw TypeError(".ibc.applications.fee.v1.QueryIncentivizedPacketResponse.incentivized_packet: object expected"); + message.incentivized_packet = $root.ibc.applications.fee.v1.IdentifiedPacketFees.fromObject(object.incentivized_packet); + } return message; }; /** - * Creates a plain object from a QueryPayeeResponse message. Also converts values to other types if specified. + * Creates a plain object from a QueryIncentivizedPacketResponse message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.applications.fee.v1.QueryPayeeResponse + * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketResponse * @static - * @param {ibc.applications.fee.v1.QueryPayeeResponse} message QueryPayeeResponse + * @param {ibc.applications.fee.v1.QueryIncentivizedPacketResponse} message QueryIncentivizedPacketResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryPayeeResponse.toObject = function toObject(message, options) { + QueryIncentivizedPacketResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) - object.payee_address = ""; - if (message.payee_address != null && message.hasOwnProperty("payee_address")) - object.payee_address = message.payee_address; + object.incentivized_packet = null; + if (message.incentivized_packet != null && message.hasOwnProperty("incentivized_packet")) + object.incentivized_packet = $root.ibc.applications.fee.v1.IdentifiedPacketFees.toObject(message.incentivized_packet, options); return object; }; /** - * Converts this QueryPayeeResponse to JSON. + * Converts this QueryIncentivizedPacketResponse to JSON. * @function toJSON - * @memberof ibc.applications.fee.v1.QueryPayeeResponse + * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketResponse * @instance * @returns {Object.} JSON object */ - QueryPayeeResponse.prototype.toJSON = function toJSON() { + QueryIncentivizedPacketResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryPayeeResponse; + return QueryIncentivizedPacketResponse; })(); - v1.QueryCounterpartyPayeeRequest = (function() { + v1.QueryIncentivizedPacketsForChannelRequest = (function() { /** - * Properties of a QueryCounterpartyPayeeRequest. + * Properties of a QueryIncentivizedPacketsForChannelRequest. * @memberof ibc.applications.fee.v1 - * @interface IQueryCounterpartyPayeeRequest - * @property {string|null} [channel_id] QueryCounterpartyPayeeRequest channel_id - * @property {string|null} [relayer] QueryCounterpartyPayeeRequest relayer + * @interface IQueryIncentivizedPacketsForChannelRequest + * @property {cosmos.base.query.v1beta1.IPageRequest|null} [pagination] QueryIncentivizedPacketsForChannelRequest pagination + * @property {string|null} [port_id] QueryIncentivizedPacketsForChannelRequest port_id + * @property {string|null} [channel_id] QueryIncentivizedPacketsForChannelRequest channel_id + * @property {Long|null} [query_height] QueryIncentivizedPacketsForChannelRequest query_height */ /** - * Constructs a new QueryCounterpartyPayeeRequest. + * Constructs a new QueryIncentivizedPacketsForChannelRequest. * @memberof ibc.applications.fee.v1 - * @classdesc Represents a QueryCounterpartyPayeeRequest. - * @implements IQueryCounterpartyPayeeRequest + * @classdesc Represents a QueryIncentivizedPacketsForChannelRequest. + * @implements IQueryIncentivizedPacketsForChannelRequest * @constructor - * @param {ibc.applications.fee.v1.IQueryCounterpartyPayeeRequest=} [properties] Properties to set + * @param {ibc.applications.fee.v1.IQueryIncentivizedPacketsForChannelRequest=} [properties] Properties to set */ - function QueryCounterpartyPayeeRequest(properties) { + function QueryIncentivizedPacketsForChannelRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -24262,76 +30857,102 @@ } /** - * QueryCounterpartyPayeeRequest channel_id. + * QueryIncentivizedPacketsForChannelRequest pagination. + * @member {cosmos.base.query.v1beta1.IPageRequest|null|undefined} pagination + * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest + * @instance + */ + QueryIncentivizedPacketsForChannelRequest.prototype.pagination = null; + + /** + * QueryIncentivizedPacketsForChannelRequest port_id. + * @member {string} port_id + * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest + * @instance + */ + QueryIncentivizedPacketsForChannelRequest.prototype.port_id = ""; + + /** + * QueryIncentivizedPacketsForChannelRequest channel_id. * @member {string} channel_id - * @memberof ibc.applications.fee.v1.QueryCounterpartyPayeeRequest + * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest * @instance */ - QueryCounterpartyPayeeRequest.prototype.channel_id = ""; + QueryIncentivizedPacketsForChannelRequest.prototype.channel_id = ""; /** - * QueryCounterpartyPayeeRequest relayer. - * @member {string} relayer - * @memberof ibc.applications.fee.v1.QueryCounterpartyPayeeRequest + * QueryIncentivizedPacketsForChannelRequest query_height. + * @member {Long} query_height + * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest * @instance */ - QueryCounterpartyPayeeRequest.prototype.relayer = ""; + QueryIncentivizedPacketsForChannelRequest.prototype.query_height = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** - * Encodes the specified QueryCounterpartyPayeeRequest message. Does not implicitly {@link ibc.applications.fee.v1.QueryCounterpartyPayeeRequest.verify|verify} messages. + * Encodes the specified QueryIncentivizedPacketsForChannelRequest message. Does not implicitly {@link ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest.verify|verify} messages. * @function encode - * @memberof ibc.applications.fee.v1.QueryCounterpartyPayeeRequest + * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest * @static - * @param {ibc.applications.fee.v1.IQueryCounterpartyPayeeRequest} message QueryCounterpartyPayeeRequest message or plain object to encode + * @param {ibc.applications.fee.v1.IQueryIncentivizedPacketsForChannelRequest} message QueryIncentivizedPacketsForChannelRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryCounterpartyPayeeRequest.encode = function encode(message, writer) { + QueryIncentivizedPacketsForChannelRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.pagination != null && Object.hasOwnProperty.call(message, "pagination")) + $root.cosmos.base.query.v1beta1.PageRequest.encode(message.pagination, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.port_id != null && Object.hasOwnProperty.call(message, "port_id")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.port_id); if (message.channel_id != null && Object.hasOwnProperty.call(message, "channel_id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.channel_id); - if (message.relayer != null && Object.hasOwnProperty.call(message, "relayer")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.relayer); + writer.uint32(/* id 3, wireType 2 =*/26).string(message.channel_id); + if (message.query_height != null && Object.hasOwnProperty.call(message, "query_height")) + writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.query_height); return writer; }; /** - * Encodes the specified QueryCounterpartyPayeeRequest message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.QueryCounterpartyPayeeRequest.verify|verify} messages. + * Encodes the specified QueryIncentivizedPacketsForChannelRequest message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.applications.fee.v1.QueryCounterpartyPayeeRequest + * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest * @static - * @param {ibc.applications.fee.v1.IQueryCounterpartyPayeeRequest} message QueryCounterpartyPayeeRequest message or plain object to encode + * @param {ibc.applications.fee.v1.IQueryIncentivizedPacketsForChannelRequest} message QueryIncentivizedPacketsForChannelRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryCounterpartyPayeeRequest.encodeDelimited = function encodeDelimited(message, writer) { + QueryIncentivizedPacketsForChannelRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryCounterpartyPayeeRequest message from the specified reader or buffer. + * Decodes a QueryIncentivizedPacketsForChannelRequest message from the specified reader or buffer. * @function decode - * @memberof ibc.applications.fee.v1.QueryCounterpartyPayeeRequest + * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.fee.v1.QueryCounterpartyPayeeRequest} QueryCounterpartyPayeeRequest + * @returns {ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest} QueryIncentivizedPacketsForChannelRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryCounterpartyPayeeRequest.decode = function decode(reader, length) { + QueryIncentivizedPacketsForChannelRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.QueryCounterpartyPayeeRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.channel_id = reader.string(); + message.pagination = $root.cosmos.base.query.v1beta1.PageRequest.decode(reader, reader.uint32()); break; case 2: - message.relayer = reader.string(); + message.port_id = reader.string(); + break; + case 3: + message.channel_id = reader.string(); + break; + case 4: + message.query_height = reader.uint64(); break; default: reader.skipType(tag & 7); @@ -24342,116 +30963,152 @@ }; /** - * Decodes a QueryCounterpartyPayeeRequest message from the specified reader or buffer, length delimited. + * Decodes a QueryIncentivizedPacketsForChannelRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.applications.fee.v1.QueryCounterpartyPayeeRequest + * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.fee.v1.QueryCounterpartyPayeeRequest} QueryCounterpartyPayeeRequest + * @returns {ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest} QueryIncentivizedPacketsForChannelRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryCounterpartyPayeeRequest.decodeDelimited = function decodeDelimited(reader) { + QueryIncentivizedPacketsForChannelRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryCounterpartyPayeeRequest message. + * Verifies a QueryIncentivizedPacketsForChannelRequest message. * @function verify - * @memberof ibc.applications.fee.v1.QueryCounterpartyPayeeRequest + * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryCounterpartyPayeeRequest.verify = function verify(message) { + QueryIncentivizedPacketsForChannelRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.pagination != null && message.hasOwnProperty("pagination")) { + var error = $root.cosmos.base.query.v1beta1.PageRequest.verify(message.pagination); + if (error) + return "pagination." + error; + } + if (message.port_id != null && message.hasOwnProperty("port_id")) + if (!$util.isString(message.port_id)) + return "port_id: string expected"; if (message.channel_id != null && message.hasOwnProperty("channel_id")) if (!$util.isString(message.channel_id)) return "channel_id: string expected"; - if (message.relayer != null && message.hasOwnProperty("relayer")) - if (!$util.isString(message.relayer)) - return "relayer: string expected"; + if (message.query_height != null && message.hasOwnProperty("query_height")) + if (!$util.isInteger(message.query_height) && !(message.query_height && $util.isInteger(message.query_height.low) && $util.isInteger(message.query_height.high))) + return "query_height: integer|Long expected"; return null; }; /** - * Creates a QueryCounterpartyPayeeRequest message from a plain object. Also converts values to their respective internal types. + * Creates a QueryIncentivizedPacketsForChannelRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.applications.fee.v1.QueryCounterpartyPayeeRequest + * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest * @static * @param {Object.} object Plain object - * @returns {ibc.applications.fee.v1.QueryCounterpartyPayeeRequest} QueryCounterpartyPayeeRequest + * @returns {ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest} QueryIncentivizedPacketsForChannelRequest */ - QueryCounterpartyPayeeRequest.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.fee.v1.QueryCounterpartyPayeeRequest) + QueryIncentivizedPacketsForChannelRequest.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest) return object; - var message = new $root.ibc.applications.fee.v1.QueryCounterpartyPayeeRequest(); + var message = new $root.ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest(); + if (object.pagination != null) { + if (typeof object.pagination !== "object") + throw TypeError(".ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest.pagination: object expected"); + message.pagination = $root.cosmos.base.query.v1beta1.PageRequest.fromObject(object.pagination); + } + if (object.port_id != null) + message.port_id = String(object.port_id); if (object.channel_id != null) message.channel_id = String(object.channel_id); - if (object.relayer != null) - message.relayer = String(object.relayer); + if (object.query_height != null) + if ($util.Long) + (message.query_height = $util.Long.fromValue(object.query_height)).unsigned = true; + else if (typeof object.query_height === "string") + message.query_height = parseInt(object.query_height, 10); + else if (typeof object.query_height === "number") + message.query_height = object.query_height; + else if (typeof object.query_height === "object") + message.query_height = new $util.LongBits(object.query_height.low >>> 0, object.query_height.high >>> 0).toNumber(true); return message; }; /** - * Creates a plain object from a QueryCounterpartyPayeeRequest message. Also converts values to other types if specified. + * Creates a plain object from a QueryIncentivizedPacketsForChannelRequest message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.applications.fee.v1.QueryCounterpartyPayeeRequest + * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest * @static - * @param {ibc.applications.fee.v1.QueryCounterpartyPayeeRequest} message QueryCounterpartyPayeeRequest + * @param {ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest} message QueryIncentivizedPacketsForChannelRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryCounterpartyPayeeRequest.toObject = function toObject(message, options) { + QueryIncentivizedPacketsForChannelRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { + object.pagination = null; + object.port_id = ""; object.channel_id = ""; - object.relayer = ""; + if ($util.Long) { + var long = new $util.Long(0, 0, true); + object.query_height = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.query_height = options.longs === String ? "0" : 0; } + if (message.pagination != null && message.hasOwnProperty("pagination")) + object.pagination = $root.cosmos.base.query.v1beta1.PageRequest.toObject(message.pagination, options); + if (message.port_id != null && message.hasOwnProperty("port_id")) + object.port_id = message.port_id; if (message.channel_id != null && message.hasOwnProperty("channel_id")) object.channel_id = message.channel_id; - if (message.relayer != null && message.hasOwnProperty("relayer")) - object.relayer = message.relayer; + if (message.query_height != null && message.hasOwnProperty("query_height")) + if (typeof message.query_height === "number") + object.query_height = options.longs === String ? String(message.query_height) : message.query_height; + else + object.query_height = options.longs === String ? $util.Long.prototype.toString.call(message.query_height) : options.longs === Number ? new $util.LongBits(message.query_height.low >>> 0, message.query_height.high >>> 0).toNumber(true) : message.query_height; return object; }; /** - * Converts this QueryCounterpartyPayeeRequest to JSON. + * Converts this QueryIncentivizedPacketsForChannelRequest to JSON. * @function toJSON - * @memberof ibc.applications.fee.v1.QueryCounterpartyPayeeRequest + * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest * @instance * @returns {Object.} JSON object */ - QueryCounterpartyPayeeRequest.prototype.toJSON = function toJSON() { + QueryIncentivizedPacketsForChannelRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryCounterpartyPayeeRequest; + return QueryIncentivizedPacketsForChannelRequest; })(); - v1.QueryCounterpartyPayeeResponse = (function() { + v1.QueryIncentivizedPacketsForChannelResponse = (function() { /** - * Properties of a QueryCounterpartyPayeeResponse. + * Properties of a QueryIncentivizedPacketsForChannelResponse. * @memberof ibc.applications.fee.v1 - * @interface IQueryCounterpartyPayeeResponse - * @property {string|null} [counterparty_payee] QueryCounterpartyPayeeResponse counterparty_payee + * @interface IQueryIncentivizedPacketsForChannelResponse + * @property {Array.|null} [incentivized_packets] QueryIncentivizedPacketsForChannelResponse incentivized_packets */ /** - * Constructs a new QueryCounterpartyPayeeResponse. + * Constructs a new QueryIncentivizedPacketsForChannelResponse. * @memberof ibc.applications.fee.v1 - * @classdesc Represents a QueryCounterpartyPayeeResponse. - * @implements IQueryCounterpartyPayeeResponse + * @classdesc Represents a QueryIncentivizedPacketsForChannelResponse. + * @implements IQueryIncentivizedPacketsForChannelResponse * @constructor - * @param {ibc.applications.fee.v1.IQueryCounterpartyPayeeResponse=} [properties] Properties to set + * @param {ibc.applications.fee.v1.IQueryIncentivizedPacketsForChannelResponse=} [properties] Properties to set */ - function QueryCounterpartyPayeeResponse(properties) { + function QueryIncentivizedPacketsForChannelResponse(properties) { + this.incentivized_packets = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -24459,63 +31116,66 @@ } /** - * QueryCounterpartyPayeeResponse counterparty_payee. - * @member {string} counterparty_payee - * @memberof ibc.applications.fee.v1.QueryCounterpartyPayeeResponse + * QueryIncentivizedPacketsForChannelResponse incentivized_packets. + * @member {Array.} incentivized_packets + * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelResponse * @instance */ - QueryCounterpartyPayeeResponse.prototype.counterparty_payee = ""; + QueryIncentivizedPacketsForChannelResponse.prototype.incentivized_packets = $util.emptyArray; /** - * Encodes the specified QueryCounterpartyPayeeResponse message. Does not implicitly {@link ibc.applications.fee.v1.QueryCounterpartyPayeeResponse.verify|verify} messages. + * Encodes the specified QueryIncentivizedPacketsForChannelResponse message. Does not implicitly {@link ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelResponse.verify|verify} messages. * @function encode - * @memberof ibc.applications.fee.v1.QueryCounterpartyPayeeResponse + * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelResponse * @static - * @param {ibc.applications.fee.v1.IQueryCounterpartyPayeeResponse} message QueryCounterpartyPayeeResponse message or plain object to encode + * @param {ibc.applications.fee.v1.IQueryIncentivizedPacketsForChannelResponse} message QueryIncentivizedPacketsForChannelResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryCounterpartyPayeeResponse.encode = function encode(message, writer) { + QueryIncentivizedPacketsForChannelResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.counterparty_payee != null && Object.hasOwnProperty.call(message, "counterparty_payee")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.counterparty_payee); + if (message.incentivized_packets != null && message.incentivized_packets.length) + for (var i = 0; i < message.incentivized_packets.length; ++i) + $root.ibc.applications.fee.v1.IdentifiedPacketFees.encode(message.incentivized_packets[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified QueryCounterpartyPayeeResponse message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.QueryCounterpartyPayeeResponse.verify|verify} messages. + * Encodes the specified QueryIncentivizedPacketsForChannelResponse message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.applications.fee.v1.QueryCounterpartyPayeeResponse + * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelResponse * @static - * @param {ibc.applications.fee.v1.IQueryCounterpartyPayeeResponse} message QueryCounterpartyPayeeResponse message or plain object to encode + * @param {ibc.applications.fee.v1.IQueryIncentivizedPacketsForChannelResponse} message QueryIncentivizedPacketsForChannelResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryCounterpartyPayeeResponse.encodeDelimited = function encodeDelimited(message, writer) { + QueryIncentivizedPacketsForChannelResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryCounterpartyPayeeResponse message from the specified reader or buffer. + * Decodes a QueryIncentivizedPacketsForChannelResponse message from the specified reader or buffer. * @function decode - * @memberof ibc.applications.fee.v1.QueryCounterpartyPayeeResponse + * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.fee.v1.QueryCounterpartyPayeeResponse} QueryCounterpartyPayeeResponse + * @returns {ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelResponse} QueryIncentivizedPacketsForChannelResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryCounterpartyPayeeResponse.decode = function decode(reader, length) { + QueryIncentivizedPacketsForChannelResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.QueryCounterpartyPayeeResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.counterparty_payee = reader.string(); + if (!(message.incentivized_packets && message.incentivized_packets.length)) + message.incentivized_packets = []; + message.incentivized_packets.push($root.ibc.applications.fee.v1.IdentifiedPacketFees.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -24526,108 +31186,124 @@ }; /** - * Decodes a QueryCounterpartyPayeeResponse message from the specified reader or buffer, length delimited. + * Decodes a QueryIncentivizedPacketsForChannelResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.applications.fee.v1.QueryCounterpartyPayeeResponse + * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.fee.v1.QueryCounterpartyPayeeResponse} QueryCounterpartyPayeeResponse + * @returns {ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelResponse} QueryIncentivizedPacketsForChannelResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryCounterpartyPayeeResponse.decodeDelimited = function decodeDelimited(reader) { + QueryIncentivizedPacketsForChannelResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryCounterpartyPayeeResponse message. + * Verifies a QueryIncentivizedPacketsForChannelResponse message. * @function verify - * @memberof ibc.applications.fee.v1.QueryCounterpartyPayeeResponse + * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryCounterpartyPayeeResponse.verify = function verify(message) { + QueryIncentivizedPacketsForChannelResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.counterparty_payee != null && message.hasOwnProperty("counterparty_payee")) - if (!$util.isString(message.counterparty_payee)) - return "counterparty_payee: string expected"; + if (message.incentivized_packets != null && message.hasOwnProperty("incentivized_packets")) { + if (!Array.isArray(message.incentivized_packets)) + return "incentivized_packets: array expected"; + for (var i = 0; i < message.incentivized_packets.length; ++i) { + var error = $root.ibc.applications.fee.v1.IdentifiedPacketFees.verify(message.incentivized_packets[i]); + if (error) + return "incentivized_packets." + error; + } + } return null; }; /** - * Creates a QueryCounterpartyPayeeResponse message from a plain object. Also converts values to their respective internal types. + * Creates a QueryIncentivizedPacketsForChannelResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.applications.fee.v1.QueryCounterpartyPayeeResponse + * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelResponse * @static * @param {Object.} object Plain object - * @returns {ibc.applications.fee.v1.QueryCounterpartyPayeeResponse} QueryCounterpartyPayeeResponse + * @returns {ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelResponse} QueryIncentivizedPacketsForChannelResponse */ - QueryCounterpartyPayeeResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.fee.v1.QueryCounterpartyPayeeResponse) + QueryIncentivizedPacketsForChannelResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelResponse) return object; - var message = new $root.ibc.applications.fee.v1.QueryCounterpartyPayeeResponse(); - if (object.counterparty_payee != null) - message.counterparty_payee = String(object.counterparty_payee); + var message = new $root.ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelResponse(); + if (object.incentivized_packets) { + if (!Array.isArray(object.incentivized_packets)) + throw TypeError(".ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelResponse.incentivized_packets: array expected"); + message.incentivized_packets = []; + for (var i = 0; i < object.incentivized_packets.length; ++i) { + if (typeof object.incentivized_packets[i] !== "object") + throw TypeError(".ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelResponse.incentivized_packets: object expected"); + message.incentivized_packets[i] = $root.ibc.applications.fee.v1.IdentifiedPacketFees.fromObject(object.incentivized_packets[i]); + } + } return message; }; /** - * Creates a plain object from a QueryCounterpartyPayeeResponse message. Also converts values to other types if specified. + * Creates a plain object from a QueryIncentivizedPacketsForChannelResponse message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.applications.fee.v1.QueryCounterpartyPayeeResponse + * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelResponse * @static - * @param {ibc.applications.fee.v1.QueryCounterpartyPayeeResponse} message QueryCounterpartyPayeeResponse + * @param {ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelResponse} message QueryIncentivizedPacketsForChannelResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryCounterpartyPayeeResponse.toObject = function toObject(message, options) { + QueryIncentivizedPacketsForChannelResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.counterparty_payee = ""; - if (message.counterparty_payee != null && message.hasOwnProperty("counterparty_payee")) - object.counterparty_payee = message.counterparty_payee; + if (options.arrays || options.defaults) + object.incentivized_packets = []; + if (message.incentivized_packets && message.incentivized_packets.length) { + object.incentivized_packets = []; + for (var j = 0; j < message.incentivized_packets.length; ++j) + object.incentivized_packets[j] = $root.ibc.applications.fee.v1.IdentifiedPacketFees.toObject(message.incentivized_packets[j], options); + } return object; }; /** - * Converts this QueryCounterpartyPayeeResponse to JSON. + * Converts this QueryIncentivizedPacketsForChannelResponse to JSON. * @function toJSON - * @memberof ibc.applications.fee.v1.QueryCounterpartyPayeeResponse + * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelResponse * @instance * @returns {Object.} JSON object */ - QueryCounterpartyPayeeResponse.prototype.toJSON = function toJSON() { + QueryIncentivizedPacketsForChannelResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryCounterpartyPayeeResponse; + return QueryIncentivizedPacketsForChannelResponse; })(); - v1.QueryFeeEnabledChannelsRequest = (function() { + v1.QueryTotalRecvFeesRequest = (function() { /** - * Properties of a QueryFeeEnabledChannelsRequest. + * Properties of a QueryTotalRecvFeesRequest. * @memberof ibc.applications.fee.v1 - * @interface IQueryFeeEnabledChannelsRequest - * @property {cosmos.base.query.v1beta1.IPageRequest|null} [pagination] QueryFeeEnabledChannelsRequest pagination - * @property {Long|null} [query_height] QueryFeeEnabledChannelsRequest query_height + * @interface IQueryTotalRecvFeesRequest + * @property {ibc.core.channel.v1.IPacketId|null} [packet_id] QueryTotalRecvFeesRequest packet_id */ /** - * Constructs a new QueryFeeEnabledChannelsRequest. + * Constructs a new QueryTotalRecvFeesRequest. * @memberof ibc.applications.fee.v1 - * @classdesc Represents a QueryFeeEnabledChannelsRequest. - * @implements IQueryFeeEnabledChannelsRequest + * @classdesc Represents a QueryTotalRecvFeesRequest. + * @implements IQueryTotalRecvFeesRequest * @constructor - * @param {ibc.applications.fee.v1.IQueryFeeEnabledChannelsRequest=} [properties] Properties to set + * @param {ibc.applications.fee.v1.IQueryTotalRecvFeesRequest=} [properties] Properties to set */ - function QueryFeeEnabledChannelsRequest(properties) { + function QueryTotalRecvFeesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -24635,76 +31311,63 @@ } /** - * QueryFeeEnabledChannelsRequest pagination. - * @member {cosmos.base.query.v1beta1.IPageRequest|null|undefined} pagination - * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelsRequest - * @instance - */ - QueryFeeEnabledChannelsRequest.prototype.pagination = null; - - /** - * QueryFeeEnabledChannelsRequest query_height. - * @member {Long} query_height - * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelsRequest + * QueryTotalRecvFeesRequest packet_id. + * @member {ibc.core.channel.v1.IPacketId|null|undefined} packet_id + * @memberof ibc.applications.fee.v1.QueryTotalRecvFeesRequest * @instance */ - QueryFeeEnabledChannelsRequest.prototype.query_height = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + QueryTotalRecvFeesRequest.prototype.packet_id = null; /** - * Encodes the specified QueryFeeEnabledChannelsRequest message. Does not implicitly {@link ibc.applications.fee.v1.QueryFeeEnabledChannelsRequest.verify|verify} messages. + * Encodes the specified QueryTotalRecvFeesRequest message. Does not implicitly {@link ibc.applications.fee.v1.QueryTotalRecvFeesRequest.verify|verify} messages. * @function encode - * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelsRequest + * @memberof ibc.applications.fee.v1.QueryTotalRecvFeesRequest * @static - * @param {ibc.applications.fee.v1.IQueryFeeEnabledChannelsRequest} message QueryFeeEnabledChannelsRequest message or plain object to encode + * @param {ibc.applications.fee.v1.IQueryTotalRecvFeesRequest} message QueryTotalRecvFeesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryFeeEnabledChannelsRequest.encode = function encode(message, writer) { + QueryTotalRecvFeesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.pagination != null && Object.hasOwnProperty.call(message, "pagination")) - $root.cosmos.base.query.v1beta1.PageRequest.encode(message.pagination, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.query_height != null && Object.hasOwnProperty.call(message, "query_height")) - writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.query_height); + if (message.packet_id != null && Object.hasOwnProperty.call(message, "packet_id")) + $root.ibc.core.channel.v1.PacketId.encode(message.packet_id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified QueryFeeEnabledChannelsRequest message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.QueryFeeEnabledChannelsRequest.verify|verify} messages. + * Encodes the specified QueryTotalRecvFeesRequest message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.QueryTotalRecvFeesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelsRequest + * @memberof ibc.applications.fee.v1.QueryTotalRecvFeesRequest * @static - * @param {ibc.applications.fee.v1.IQueryFeeEnabledChannelsRequest} message QueryFeeEnabledChannelsRequest message or plain object to encode + * @param {ibc.applications.fee.v1.IQueryTotalRecvFeesRequest} message QueryTotalRecvFeesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryFeeEnabledChannelsRequest.encodeDelimited = function encodeDelimited(message, writer) { + QueryTotalRecvFeesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryFeeEnabledChannelsRequest message from the specified reader or buffer. + * Decodes a QueryTotalRecvFeesRequest message from the specified reader or buffer. * @function decode - * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelsRequest + * @memberof ibc.applications.fee.v1.QueryTotalRecvFeesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.fee.v1.QueryFeeEnabledChannelsRequest} QueryFeeEnabledChannelsRequest + * @returns {ibc.applications.fee.v1.QueryTotalRecvFeesRequest} QueryTotalRecvFeesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryFeeEnabledChannelsRequest.decode = function decode(reader, length) { + QueryTotalRecvFeesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.QueryFeeEnabledChannelsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.QueryTotalRecvFeesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.pagination = $root.cosmos.base.query.v1beta1.PageRequest.decode(reader, reader.uint32()); - break; - case 2: - message.query_height = reader.uint64(); + message.packet_id = $root.ibc.core.channel.v1.PacketId.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -24715,136 +31378,113 @@ }; /** - * Decodes a QueryFeeEnabledChannelsRequest message from the specified reader or buffer, length delimited. + * Decodes a QueryTotalRecvFeesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelsRequest + * @memberof ibc.applications.fee.v1.QueryTotalRecvFeesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.fee.v1.QueryFeeEnabledChannelsRequest} QueryFeeEnabledChannelsRequest + * @returns {ibc.applications.fee.v1.QueryTotalRecvFeesRequest} QueryTotalRecvFeesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryFeeEnabledChannelsRequest.decodeDelimited = function decodeDelimited(reader) { + QueryTotalRecvFeesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryFeeEnabledChannelsRequest message. + * Verifies a QueryTotalRecvFeesRequest message. * @function verify - * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelsRequest + * @memberof ibc.applications.fee.v1.QueryTotalRecvFeesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryFeeEnabledChannelsRequest.verify = function verify(message) { + QueryTotalRecvFeesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.pagination != null && message.hasOwnProperty("pagination")) { - var error = $root.cosmos.base.query.v1beta1.PageRequest.verify(message.pagination); + if (message.packet_id != null && message.hasOwnProperty("packet_id")) { + var error = $root.ibc.core.channel.v1.PacketId.verify(message.packet_id); if (error) - return "pagination." + error; + return "packet_id." + error; } - if (message.query_height != null && message.hasOwnProperty("query_height")) - if (!$util.isInteger(message.query_height) && !(message.query_height && $util.isInteger(message.query_height.low) && $util.isInteger(message.query_height.high))) - return "query_height: integer|Long expected"; return null; }; /** - * Creates a QueryFeeEnabledChannelsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a QueryTotalRecvFeesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelsRequest + * @memberof ibc.applications.fee.v1.QueryTotalRecvFeesRequest * @static * @param {Object.} object Plain object - * @returns {ibc.applications.fee.v1.QueryFeeEnabledChannelsRequest} QueryFeeEnabledChannelsRequest + * @returns {ibc.applications.fee.v1.QueryTotalRecvFeesRequest} QueryTotalRecvFeesRequest */ - QueryFeeEnabledChannelsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.fee.v1.QueryFeeEnabledChannelsRequest) + QueryTotalRecvFeesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.fee.v1.QueryTotalRecvFeesRequest) return object; - var message = new $root.ibc.applications.fee.v1.QueryFeeEnabledChannelsRequest(); - if (object.pagination != null) { - if (typeof object.pagination !== "object") - throw TypeError(".ibc.applications.fee.v1.QueryFeeEnabledChannelsRequest.pagination: object expected"); - message.pagination = $root.cosmos.base.query.v1beta1.PageRequest.fromObject(object.pagination); + var message = new $root.ibc.applications.fee.v1.QueryTotalRecvFeesRequest(); + if (object.packet_id != null) { + if (typeof object.packet_id !== "object") + throw TypeError(".ibc.applications.fee.v1.QueryTotalRecvFeesRequest.packet_id: object expected"); + message.packet_id = $root.ibc.core.channel.v1.PacketId.fromObject(object.packet_id); } - if (object.query_height != null) - if ($util.Long) - (message.query_height = $util.Long.fromValue(object.query_height)).unsigned = true; - else if (typeof object.query_height === "string") - message.query_height = parseInt(object.query_height, 10); - else if (typeof object.query_height === "number") - message.query_height = object.query_height; - else if (typeof object.query_height === "object") - message.query_height = new $util.LongBits(object.query_height.low >>> 0, object.query_height.high >>> 0).toNumber(true); return message; }; /** - * Creates a plain object from a QueryFeeEnabledChannelsRequest message. Also converts values to other types if specified. + * Creates a plain object from a QueryTotalRecvFeesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelsRequest + * @memberof ibc.applications.fee.v1.QueryTotalRecvFeesRequest * @static - * @param {ibc.applications.fee.v1.QueryFeeEnabledChannelsRequest} message QueryFeeEnabledChannelsRequest + * @param {ibc.applications.fee.v1.QueryTotalRecvFeesRequest} message QueryTotalRecvFeesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryFeeEnabledChannelsRequest.toObject = function toObject(message, options) { + QueryTotalRecvFeesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.pagination = null; - if ($util.Long) { - var long = new $util.Long(0, 0, true); - object.query_height = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.query_height = options.longs === String ? "0" : 0; - } - if (message.pagination != null && message.hasOwnProperty("pagination")) - object.pagination = $root.cosmos.base.query.v1beta1.PageRequest.toObject(message.pagination, options); - if (message.query_height != null && message.hasOwnProperty("query_height")) - if (typeof message.query_height === "number") - object.query_height = options.longs === String ? String(message.query_height) : message.query_height; - else - object.query_height = options.longs === String ? $util.Long.prototype.toString.call(message.query_height) : options.longs === Number ? new $util.LongBits(message.query_height.low >>> 0, message.query_height.high >>> 0).toNumber(true) : message.query_height; + if (options.defaults) + object.packet_id = null; + if (message.packet_id != null && message.hasOwnProperty("packet_id")) + object.packet_id = $root.ibc.core.channel.v1.PacketId.toObject(message.packet_id, options); return object; }; /** - * Converts this QueryFeeEnabledChannelsRequest to JSON. + * Converts this QueryTotalRecvFeesRequest to JSON. * @function toJSON - * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelsRequest + * @memberof ibc.applications.fee.v1.QueryTotalRecvFeesRequest * @instance * @returns {Object.} JSON object */ - QueryFeeEnabledChannelsRequest.prototype.toJSON = function toJSON() { + QueryTotalRecvFeesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryFeeEnabledChannelsRequest; + return QueryTotalRecvFeesRequest; })(); - v1.QueryFeeEnabledChannelsResponse = (function() { + v1.QueryTotalRecvFeesResponse = (function() { /** - * Properties of a QueryFeeEnabledChannelsResponse. + * Properties of a QueryTotalRecvFeesResponse. * @memberof ibc.applications.fee.v1 - * @interface IQueryFeeEnabledChannelsResponse - * @property {Array.|null} [fee_enabled_channels] QueryFeeEnabledChannelsResponse fee_enabled_channels + * @interface IQueryTotalRecvFeesResponse + * @property {Array.|null} [recv_fees] QueryTotalRecvFeesResponse recv_fees */ /** - * Constructs a new QueryFeeEnabledChannelsResponse. + * Constructs a new QueryTotalRecvFeesResponse. * @memberof ibc.applications.fee.v1 - * @classdesc Represents a QueryFeeEnabledChannelsResponse. - * @implements IQueryFeeEnabledChannelsResponse + * @classdesc Represents a QueryTotalRecvFeesResponse. + * @implements IQueryTotalRecvFeesResponse * @constructor - * @param {ibc.applications.fee.v1.IQueryFeeEnabledChannelsResponse=} [properties] Properties to set + * @param {ibc.applications.fee.v1.IQueryTotalRecvFeesResponse=} [properties] Properties to set */ - function QueryFeeEnabledChannelsResponse(properties) { - this.fee_enabled_channels = []; + function QueryTotalRecvFeesResponse(properties) { + this.recv_fees = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -24852,66 +31492,66 @@ } /** - * QueryFeeEnabledChannelsResponse fee_enabled_channels. - * @member {Array.} fee_enabled_channels - * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelsResponse + * QueryTotalRecvFeesResponse recv_fees. + * @member {Array.} recv_fees + * @memberof ibc.applications.fee.v1.QueryTotalRecvFeesResponse * @instance */ - QueryFeeEnabledChannelsResponse.prototype.fee_enabled_channels = $util.emptyArray; + QueryTotalRecvFeesResponse.prototype.recv_fees = $util.emptyArray; /** - * Encodes the specified QueryFeeEnabledChannelsResponse message. Does not implicitly {@link ibc.applications.fee.v1.QueryFeeEnabledChannelsResponse.verify|verify} messages. + * Encodes the specified QueryTotalRecvFeesResponse message. Does not implicitly {@link ibc.applications.fee.v1.QueryTotalRecvFeesResponse.verify|verify} messages. * @function encode - * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelsResponse + * @memberof ibc.applications.fee.v1.QueryTotalRecvFeesResponse * @static - * @param {ibc.applications.fee.v1.IQueryFeeEnabledChannelsResponse} message QueryFeeEnabledChannelsResponse message or plain object to encode + * @param {ibc.applications.fee.v1.IQueryTotalRecvFeesResponse} message QueryTotalRecvFeesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryFeeEnabledChannelsResponse.encode = function encode(message, writer) { + QueryTotalRecvFeesResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.fee_enabled_channels != null && message.fee_enabled_channels.length) - for (var i = 0; i < message.fee_enabled_channels.length; ++i) - $root.ibc.applications.fee.v1.FeeEnabledChannel.encode(message.fee_enabled_channels[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.recv_fees != null && message.recv_fees.length) + for (var i = 0; i < message.recv_fees.length; ++i) + $root.cosmos.base.v1beta1.Coin.encode(message.recv_fees[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified QueryFeeEnabledChannelsResponse message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.QueryFeeEnabledChannelsResponse.verify|verify} messages. + * Encodes the specified QueryTotalRecvFeesResponse message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.QueryTotalRecvFeesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelsResponse + * @memberof ibc.applications.fee.v1.QueryTotalRecvFeesResponse * @static - * @param {ibc.applications.fee.v1.IQueryFeeEnabledChannelsResponse} message QueryFeeEnabledChannelsResponse message or plain object to encode + * @param {ibc.applications.fee.v1.IQueryTotalRecvFeesResponse} message QueryTotalRecvFeesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryFeeEnabledChannelsResponse.encodeDelimited = function encodeDelimited(message, writer) { + QueryTotalRecvFeesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryFeeEnabledChannelsResponse message from the specified reader or buffer. + * Decodes a QueryTotalRecvFeesResponse message from the specified reader or buffer. * @function decode - * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelsResponse + * @memberof ibc.applications.fee.v1.QueryTotalRecvFeesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.fee.v1.QueryFeeEnabledChannelsResponse} QueryFeeEnabledChannelsResponse + * @returns {ibc.applications.fee.v1.QueryTotalRecvFeesResponse} QueryTotalRecvFeesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryFeeEnabledChannelsResponse.decode = function decode(reader, length) { + QueryTotalRecvFeesResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.QueryFeeEnabledChannelsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.QueryTotalRecvFeesResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.fee_enabled_channels && message.fee_enabled_channels.length)) - message.fee_enabled_channels = []; - message.fee_enabled_channels.push($root.ibc.applications.fee.v1.FeeEnabledChannel.decode(reader, reader.uint32())); + if (!(message.recv_fees && message.recv_fees.length)) + message.recv_fees = []; + message.recv_fees.push($root.cosmos.base.v1beta1.Coin.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -24922,125 +31562,124 @@ }; /** - * Decodes a QueryFeeEnabledChannelsResponse message from the specified reader or buffer, length delimited. + * Decodes a QueryTotalRecvFeesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelsResponse + * @memberof ibc.applications.fee.v1.QueryTotalRecvFeesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.fee.v1.QueryFeeEnabledChannelsResponse} QueryFeeEnabledChannelsResponse + * @returns {ibc.applications.fee.v1.QueryTotalRecvFeesResponse} QueryTotalRecvFeesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryFeeEnabledChannelsResponse.decodeDelimited = function decodeDelimited(reader) { + QueryTotalRecvFeesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryFeeEnabledChannelsResponse message. + * Verifies a QueryTotalRecvFeesResponse message. * @function verify - * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelsResponse + * @memberof ibc.applications.fee.v1.QueryTotalRecvFeesResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryFeeEnabledChannelsResponse.verify = function verify(message) { + QueryTotalRecvFeesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.fee_enabled_channels != null && message.hasOwnProperty("fee_enabled_channels")) { - if (!Array.isArray(message.fee_enabled_channels)) - return "fee_enabled_channels: array expected"; - for (var i = 0; i < message.fee_enabled_channels.length; ++i) { - var error = $root.ibc.applications.fee.v1.FeeEnabledChannel.verify(message.fee_enabled_channels[i]); + if (message.recv_fees != null && message.hasOwnProperty("recv_fees")) { + if (!Array.isArray(message.recv_fees)) + return "recv_fees: array expected"; + for (var i = 0; i < message.recv_fees.length; ++i) { + var error = $root.cosmos.base.v1beta1.Coin.verify(message.recv_fees[i]); if (error) - return "fee_enabled_channels." + error; + return "recv_fees." + error; } } return null; }; /** - * Creates a QueryFeeEnabledChannelsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a QueryTotalRecvFeesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelsResponse + * @memberof ibc.applications.fee.v1.QueryTotalRecvFeesResponse * @static * @param {Object.} object Plain object - * @returns {ibc.applications.fee.v1.QueryFeeEnabledChannelsResponse} QueryFeeEnabledChannelsResponse + * @returns {ibc.applications.fee.v1.QueryTotalRecvFeesResponse} QueryTotalRecvFeesResponse */ - QueryFeeEnabledChannelsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.fee.v1.QueryFeeEnabledChannelsResponse) + QueryTotalRecvFeesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.fee.v1.QueryTotalRecvFeesResponse) return object; - var message = new $root.ibc.applications.fee.v1.QueryFeeEnabledChannelsResponse(); - if (object.fee_enabled_channels) { - if (!Array.isArray(object.fee_enabled_channels)) - throw TypeError(".ibc.applications.fee.v1.QueryFeeEnabledChannelsResponse.fee_enabled_channels: array expected"); - message.fee_enabled_channels = []; - for (var i = 0; i < object.fee_enabled_channels.length; ++i) { - if (typeof object.fee_enabled_channels[i] !== "object") - throw TypeError(".ibc.applications.fee.v1.QueryFeeEnabledChannelsResponse.fee_enabled_channels: object expected"); - message.fee_enabled_channels[i] = $root.ibc.applications.fee.v1.FeeEnabledChannel.fromObject(object.fee_enabled_channels[i]); + var message = new $root.ibc.applications.fee.v1.QueryTotalRecvFeesResponse(); + if (object.recv_fees) { + if (!Array.isArray(object.recv_fees)) + throw TypeError(".ibc.applications.fee.v1.QueryTotalRecvFeesResponse.recv_fees: array expected"); + message.recv_fees = []; + for (var i = 0; i < object.recv_fees.length; ++i) { + if (typeof object.recv_fees[i] !== "object") + throw TypeError(".ibc.applications.fee.v1.QueryTotalRecvFeesResponse.recv_fees: object expected"); + message.recv_fees[i] = $root.cosmos.base.v1beta1.Coin.fromObject(object.recv_fees[i]); } } return message; }; /** - * Creates a plain object from a QueryFeeEnabledChannelsResponse message. Also converts values to other types if specified. + * Creates a plain object from a QueryTotalRecvFeesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelsResponse + * @memberof ibc.applications.fee.v1.QueryTotalRecvFeesResponse * @static - * @param {ibc.applications.fee.v1.QueryFeeEnabledChannelsResponse} message QueryFeeEnabledChannelsResponse + * @param {ibc.applications.fee.v1.QueryTotalRecvFeesResponse} message QueryTotalRecvFeesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryFeeEnabledChannelsResponse.toObject = function toObject(message, options) { + QueryTotalRecvFeesResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.fee_enabled_channels = []; - if (message.fee_enabled_channels && message.fee_enabled_channels.length) { - object.fee_enabled_channels = []; - for (var j = 0; j < message.fee_enabled_channels.length; ++j) - object.fee_enabled_channels[j] = $root.ibc.applications.fee.v1.FeeEnabledChannel.toObject(message.fee_enabled_channels[j], options); + object.recv_fees = []; + if (message.recv_fees && message.recv_fees.length) { + object.recv_fees = []; + for (var j = 0; j < message.recv_fees.length; ++j) + object.recv_fees[j] = $root.cosmos.base.v1beta1.Coin.toObject(message.recv_fees[j], options); } return object; }; /** - * Converts this QueryFeeEnabledChannelsResponse to JSON. + * Converts this QueryTotalRecvFeesResponse to JSON. * @function toJSON - * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelsResponse + * @memberof ibc.applications.fee.v1.QueryTotalRecvFeesResponse * @instance * @returns {Object.} JSON object */ - QueryFeeEnabledChannelsResponse.prototype.toJSON = function toJSON() { + QueryTotalRecvFeesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryFeeEnabledChannelsResponse; + return QueryTotalRecvFeesResponse; })(); - v1.QueryFeeEnabledChannelRequest = (function() { + v1.QueryTotalAckFeesRequest = (function() { /** - * Properties of a QueryFeeEnabledChannelRequest. + * Properties of a QueryTotalAckFeesRequest. * @memberof ibc.applications.fee.v1 - * @interface IQueryFeeEnabledChannelRequest - * @property {string|null} [port_id] QueryFeeEnabledChannelRequest port_id - * @property {string|null} [channel_id] QueryFeeEnabledChannelRequest channel_id + * @interface IQueryTotalAckFeesRequest + * @property {ibc.core.channel.v1.IPacketId|null} [packet_id] QueryTotalAckFeesRequest packet_id */ /** - * Constructs a new QueryFeeEnabledChannelRequest. + * Constructs a new QueryTotalAckFeesRequest. * @memberof ibc.applications.fee.v1 - * @classdesc Represents a QueryFeeEnabledChannelRequest. - * @implements IQueryFeeEnabledChannelRequest + * @classdesc Represents a QueryTotalAckFeesRequest. + * @implements IQueryTotalAckFeesRequest * @constructor - * @param {ibc.applications.fee.v1.IQueryFeeEnabledChannelRequest=} [properties] Properties to set + * @param {ibc.applications.fee.v1.IQueryTotalAckFeesRequest=} [properties] Properties to set */ - function QueryFeeEnabledChannelRequest(properties) { + function QueryTotalAckFeesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -25048,76 +31687,63 @@ } /** - * QueryFeeEnabledChannelRequest port_id. - * @member {string} port_id - * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelRequest - * @instance - */ - QueryFeeEnabledChannelRequest.prototype.port_id = ""; - - /** - * QueryFeeEnabledChannelRequest channel_id. - * @member {string} channel_id - * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelRequest + * QueryTotalAckFeesRequest packet_id. + * @member {ibc.core.channel.v1.IPacketId|null|undefined} packet_id + * @memberof ibc.applications.fee.v1.QueryTotalAckFeesRequest * @instance */ - QueryFeeEnabledChannelRequest.prototype.channel_id = ""; + QueryTotalAckFeesRequest.prototype.packet_id = null; /** - * Encodes the specified QueryFeeEnabledChannelRequest message. Does not implicitly {@link ibc.applications.fee.v1.QueryFeeEnabledChannelRequest.verify|verify} messages. + * Encodes the specified QueryTotalAckFeesRequest message. Does not implicitly {@link ibc.applications.fee.v1.QueryTotalAckFeesRequest.verify|verify} messages. * @function encode - * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelRequest + * @memberof ibc.applications.fee.v1.QueryTotalAckFeesRequest * @static - * @param {ibc.applications.fee.v1.IQueryFeeEnabledChannelRequest} message QueryFeeEnabledChannelRequest message or plain object to encode + * @param {ibc.applications.fee.v1.IQueryTotalAckFeesRequest} message QueryTotalAckFeesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryFeeEnabledChannelRequest.encode = function encode(message, writer) { + QueryTotalAckFeesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.port_id != null && Object.hasOwnProperty.call(message, "port_id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.port_id); - if (message.channel_id != null && Object.hasOwnProperty.call(message, "channel_id")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.channel_id); + if (message.packet_id != null && Object.hasOwnProperty.call(message, "packet_id")) + $root.ibc.core.channel.v1.PacketId.encode(message.packet_id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified QueryFeeEnabledChannelRequest message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.QueryFeeEnabledChannelRequest.verify|verify} messages. + * Encodes the specified QueryTotalAckFeesRequest message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.QueryTotalAckFeesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelRequest + * @memberof ibc.applications.fee.v1.QueryTotalAckFeesRequest * @static - * @param {ibc.applications.fee.v1.IQueryFeeEnabledChannelRequest} message QueryFeeEnabledChannelRequest message or plain object to encode + * @param {ibc.applications.fee.v1.IQueryTotalAckFeesRequest} message QueryTotalAckFeesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryFeeEnabledChannelRequest.encodeDelimited = function encodeDelimited(message, writer) { + QueryTotalAckFeesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryFeeEnabledChannelRequest message from the specified reader or buffer. + * Decodes a QueryTotalAckFeesRequest message from the specified reader or buffer. * @function decode - * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelRequest + * @memberof ibc.applications.fee.v1.QueryTotalAckFeesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.fee.v1.QueryFeeEnabledChannelRequest} QueryFeeEnabledChannelRequest + * @returns {ibc.applications.fee.v1.QueryTotalAckFeesRequest} QueryTotalAckFeesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryFeeEnabledChannelRequest.decode = function decode(reader, length) { + QueryTotalAckFeesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.QueryFeeEnabledChannelRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.QueryTotalAckFeesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.port_id = reader.string(); - break; - case 2: - message.channel_id = reader.string(); + message.packet_id = $root.ibc.core.channel.v1.PacketId.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -25128,116 +31754,113 @@ }; /** - * Decodes a QueryFeeEnabledChannelRequest message from the specified reader or buffer, length delimited. + * Decodes a QueryTotalAckFeesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelRequest + * @memberof ibc.applications.fee.v1.QueryTotalAckFeesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.fee.v1.QueryFeeEnabledChannelRequest} QueryFeeEnabledChannelRequest + * @returns {ibc.applications.fee.v1.QueryTotalAckFeesRequest} QueryTotalAckFeesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryFeeEnabledChannelRequest.decodeDelimited = function decodeDelimited(reader) { + QueryTotalAckFeesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryFeeEnabledChannelRequest message. + * Verifies a QueryTotalAckFeesRequest message. * @function verify - * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelRequest + * @memberof ibc.applications.fee.v1.QueryTotalAckFeesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryFeeEnabledChannelRequest.verify = function verify(message) { + QueryTotalAckFeesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.port_id != null && message.hasOwnProperty("port_id")) - if (!$util.isString(message.port_id)) - return "port_id: string expected"; - if (message.channel_id != null && message.hasOwnProperty("channel_id")) - if (!$util.isString(message.channel_id)) - return "channel_id: string expected"; + if (message.packet_id != null && message.hasOwnProperty("packet_id")) { + var error = $root.ibc.core.channel.v1.PacketId.verify(message.packet_id); + if (error) + return "packet_id." + error; + } return null; }; /** - * Creates a QueryFeeEnabledChannelRequest message from a plain object. Also converts values to their respective internal types. + * Creates a QueryTotalAckFeesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelRequest + * @memberof ibc.applications.fee.v1.QueryTotalAckFeesRequest * @static * @param {Object.} object Plain object - * @returns {ibc.applications.fee.v1.QueryFeeEnabledChannelRequest} QueryFeeEnabledChannelRequest + * @returns {ibc.applications.fee.v1.QueryTotalAckFeesRequest} QueryTotalAckFeesRequest */ - QueryFeeEnabledChannelRequest.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.fee.v1.QueryFeeEnabledChannelRequest) + QueryTotalAckFeesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.fee.v1.QueryTotalAckFeesRequest) return object; - var message = new $root.ibc.applications.fee.v1.QueryFeeEnabledChannelRequest(); - if (object.port_id != null) - message.port_id = String(object.port_id); - if (object.channel_id != null) - message.channel_id = String(object.channel_id); + var message = new $root.ibc.applications.fee.v1.QueryTotalAckFeesRequest(); + if (object.packet_id != null) { + if (typeof object.packet_id !== "object") + throw TypeError(".ibc.applications.fee.v1.QueryTotalAckFeesRequest.packet_id: object expected"); + message.packet_id = $root.ibc.core.channel.v1.PacketId.fromObject(object.packet_id); + } return message; }; /** - * Creates a plain object from a QueryFeeEnabledChannelRequest message. Also converts values to other types if specified. + * Creates a plain object from a QueryTotalAckFeesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelRequest + * @memberof ibc.applications.fee.v1.QueryTotalAckFeesRequest * @static - * @param {ibc.applications.fee.v1.QueryFeeEnabledChannelRequest} message QueryFeeEnabledChannelRequest + * @param {ibc.applications.fee.v1.QueryTotalAckFeesRequest} message QueryTotalAckFeesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryFeeEnabledChannelRequest.toObject = function toObject(message, options) { + QueryTotalAckFeesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.port_id = ""; - object.channel_id = ""; - } - if (message.port_id != null && message.hasOwnProperty("port_id")) - object.port_id = message.port_id; - if (message.channel_id != null && message.hasOwnProperty("channel_id")) - object.channel_id = message.channel_id; + if (options.defaults) + object.packet_id = null; + if (message.packet_id != null && message.hasOwnProperty("packet_id")) + object.packet_id = $root.ibc.core.channel.v1.PacketId.toObject(message.packet_id, options); return object; }; /** - * Converts this QueryFeeEnabledChannelRequest to JSON. + * Converts this QueryTotalAckFeesRequest to JSON. * @function toJSON - * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelRequest + * @memberof ibc.applications.fee.v1.QueryTotalAckFeesRequest * @instance * @returns {Object.} JSON object */ - QueryFeeEnabledChannelRequest.prototype.toJSON = function toJSON() { + QueryTotalAckFeesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryFeeEnabledChannelRequest; + return QueryTotalAckFeesRequest; })(); - v1.QueryFeeEnabledChannelResponse = (function() { + v1.QueryTotalAckFeesResponse = (function() { /** - * Properties of a QueryFeeEnabledChannelResponse. + * Properties of a QueryTotalAckFeesResponse. * @memberof ibc.applications.fee.v1 - * @interface IQueryFeeEnabledChannelResponse - * @property {boolean|null} [fee_enabled] QueryFeeEnabledChannelResponse fee_enabled + * @interface IQueryTotalAckFeesResponse + * @property {Array.|null} [ack_fees] QueryTotalAckFeesResponse ack_fees */ /** - * Constructs a new QueryFeeEnabledChannelResponse. + * Constructs a new QueryTotalAckFeesResponse. * @memberof ibc.applications.fee.v1 - * @classdesc Represents a QueryFeeEnabledChannelResponse. - * @implements IQueryFeeEnabledChannelResponse + * @classdesc Represents a QueryTotalAckFeesResponse. + * @implements IQueryTotalAckFeesResponse * @constructor - * @param {ibc.applications.fee.v1.IQueryFeeEnabledChannelResponse=} [properties] Properties to set + * @param {ibc.applications.fee.v1.IQueryTotalAckFeesResponse=} [properties] Properties to set */ - function QueryFeeEnabledChannelResponse(properties) { + function QueryTotalAckFeesResponse(properties) { + this.ack_fees = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -25245,63 +31868,66 @@ } /** - * QueryFeeEnabledChannelResponse fee_enabled. - * @member {boolean} fee_enabled - * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelResponse + * QueryTotalAckFeesResponse ack_fees. + * @member {Array.} ack_fees + * @memberof ibc.applications.fee.v1.QueryTotalAckFeesResponse * @instance */ - QueryFeeEnabledChannelResponse.prototype.fee_enabled = false; + QueryTotalAckFeesResponse.prototype.ack_fees = $util.emptyArray; /** - * Encodes the specified QueryFeeEnabledChannelResponse message. Does not implicitly {@link ibc.applications.fee.v1.QueryFeeEnabledChannelResponse.verify|verify} messages. + * Encodes the specified QueryTotalAckFeesResponse message. Does not implicitly {@link ibc.applications.fee.v1.QueryTotalAckFeesResponse.verify|verify} messages. * @function encode - * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelResponse + * @memberof ibc.applications.fee.v1.QueryTotalAckFeesResponse * @static - * @param {ibc.applications.fee.v1.IQueryFeeEnabledChannelResponse} message QueryFeeEnabledChannelResponse message or plain object to encode + * @param {ibc.applications.fee.v1.IQueryTotalAckFeesResponse} message QueryTotalAckFeesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryFeeEnabledChannelResponse.encode = function encode(message, writer) { + QueryTotalAckFeesResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.fee_enabled != null && Object.hasOwnProperty.call(message, "fee_enabled")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.fee_enabled); + if (message.ack_fees != null && message.ack_fees.length) + for (var i = 0; i < message.ack_fees.length; ++i) + $root.cosmos.base.v1beta1.Coin.encode(message.ack_fees[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified QueryFeeEnabledChannelResponse message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.QueryFeeEnabledChannelResponse.verify|verify} messages. + * Encodes the specified QueryTotalAckFeesResponse message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.QueryTotalAckFeesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelResponse + * @memberof ibc.applications.fee.v1.QueryTotalAckFeesResponse * @static - * @param {ibc.applications.fee.v1.IQueryFeeEnabledChannelResponse} message QueryFeeEnabledChannelResponse message or plain object to encode + * @param {ibc.applications.fee.v1.IQueryTotalAckFeesResponse} message QueryTotalAckFeesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryFeeEnabledChannelResponse.encodeDelimited = function encodeDelimited(message, writer) { + QueryTotalAckFeesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryFeeEnabledChannelResponse message from the specified reader or buffer. + * Decodes a QueryTotalAckFeesResponse message from the specified reader or buffer. * @function decode - * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelResponse + * @memberof ibc.applications.fee.v1.QueryTotalAckFeesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.fee.v1.QueryFeeEnabledChannelResponse} QueryFeeEnabledChannelResponse + * @returns {ibc.applications.fee.v1.QueryTotalAckFeesResponse} QueryTotalAckFeesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryFeeEnabledChannelResponse.decode = function decode(reader, length) { + QueryTotalAckFeesResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.QueryFeeEnabledChannelResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.QueryTotalAckFeesResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.fee_enabled = reader.bool(); + if (!(message.ack_fees && message.ack_fees.length)) + message.ack_fees = []; + message.ack_fees.push($root.cosmos.base.v1beta1.Coin.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -25312,116 +31938,124 @@ }; /** - * Decodes a QueryFeeEnabledChannelResponse message from the specified reader or buffer, length delimited. + * Decodes a QueryTotalAckFeesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelResponse + * @memberof ibc.applications.fee.v1.QueryTotalAckFeesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.fee.v1.QueryFeeEnabledChannelResponse} QueryFeeEnabledChannelResponse + * @returns {ibc.applications.fee.v1.QueryTotalAckFeesResponse} QueryTotalAckFeesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryFeeEnabledChannelResponse.decodeDelimited = function decodeDelimited(reader) { + QueryTotalAckFeesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryFeeEnabledChannelResponse message. + * Verifies a QueryTotalAckFeesResponse message. * @function verify - * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelResponse + * @memberof ibc.applications.fee.v1.QueryTotalAckFeesResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryFeeEnabledChannelResponse.verify = function verify(message) { + QueryTotalAckFeesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.fee_enabled != null && message.hasOwnProperty("fee_enabled")) - if (typeof message.fee_enabled !== "boolean") - return "fee_enabled: boolean expected"; + if (message.ack_fees != null && message.hasOwnProperty("ack_fees")) { + if (!Array.isArray(message.ack_fees)) + return "ack_fees: array expected"; + for (var i = 0; i < message.ack_fees.length; ++i) { + var error = $root.cosmos.base.v1beta1.Coin.verify(message.ack_fees[i]); + if (error) + return "ack_fees." + error; + } + } return null; }; /** - * Creates a QueryFeeEnabledChannelResponse message from a plain object. Also converts values to their respective internal types. + * Creates a QueryTotalAckFeesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelResponse + * @memberof ibc.applications.fee.v1.QueryTotalAckFeesResponse * @static * @param {Object.} object Plain object - * @returns {ibc.applications.fee.v1.QueryFeeEnabledChannelResponse} QueryFeeEnabledChannelResponse + * @returns {ibc.applications.fee.v1.QueryTotalAckFeesResponse} QueryTotalAckFeesResponse */ - QueryFeeEnabledChannelResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.fee.v1.QueryFeeEnabledChannelResponse) + QueryTotalAckFeesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.fee.v1.QueryTotalAckFeesResponse) return object; - var message = new $root.ibc.applications.fee.v1.QueryFeeEnabledChannelResponse(); - if (object.fee_enabled != null) - message.fee_enabled = Boolean(object.fee_enabled); + var message = new $root.ibc.applications.fee.v1.QueryTotalAckFeesResponse(); + if (object.ack_fees) { + if (!Array.isArray(object.ack_fees)) + throw TypeError(".ibc.applications.fee.v1.QueryTotalAckFeesResponse.ack_fees: array expected"); + message.ack_fees = []; + for (var i = 0; i < object.ack_fees.length; ++i) { + if (typeof object.ack_fees[i] !== "object") + throw TypeError(".ibc.applications.fee.v1.QueryTotalAckFeesResponse.ack_fees: object expected"); + message.ack_fees[i] = $root.cosmos.base.v1beta1.Coin.fromObject(object.ack_fees[i]); + } + } return message; }; /** - * Creates a plain object from a QueryFeeEnabledChannelResponse message. Also converts values to other types if specified. + * Creates a plain object from a QueryTotalAckFeesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelResponse + * @memberof ibc.applications.fee.v1.QueryTotalAckFeesResponse * @static - * @param {ibc.applications.fee.v1.QueryFeeEnabledChannelResponse} message QueryFeeEnabledChannelResponse + * @param {ibc.applications.fee.v1.QueryTotalAckFeesResponse} message QueryTotalAckFeesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryFeeEnabledChannelResponse.toObject = function toObject(message, options) { + QueryTotalAckFeesResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.fee_enabled = false; - if (message.fee_enabled != null && message.hasOwnProperty("fee_enabled")) - object.fee_enabled = message.fee_enabled; + if (options.arrays || options.defaults) + object.ack_fees = []; + if (message.ack_fees && message.ack_fees.length) { + object.ack_fees = []; + for (var j = 0; j < message.ack_fees.length; ++j) + object.ack_fees[j] = $root.cosmos.base.v1beta1.Coin.toObject(message.ack_fees[j], options); + } return object; }; /** - * Converts this QueryFeeEnabledChannelResponse to JSON. + * Converts this QueryTotalAckFeesResponse to JSON. * @function toJSON - * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelResponse + * @memberof ibc.applications.fee.v1.QueryTotalAckFeesResponse * @instance * @returns {Object.} JSON object */ - QueryFeeEnabledChannelResponse.prototype.toJSON = function toJSON() { + QueryTotalAckFeesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryFeeEnabledChannelResponse; + return QueryTotalAckFeesResponse; })(); - v1.GenesisState = (function() { + v1.QueryTotalTimeoutFeesRequest = (function() { /** - * Properties of a GenesisState. + * Properties of a QueryTotalTimeoutFeesRequest. * @memberof ibc.applications.fee.v1 - * @interface IGenesisState - * @property {Array.|null} [identified_fees] GenesisState identified_fees - * @property {Array.|null} [fee_enabled_channels] GenesisState fee_enabled_channels - * @property {Array.|null} [registered_payees] GenesisState registered_payees - * @property {Array.|null} [registered_counterparty_payees] GenesisState registered_counterparty_payees - * @property {Array.|null} [forward_relayers] GenesisState forward_relayers + * @interface IQueryTotalTimeoutFeesRequest + * @property {ibc.core.channel.v1.IPacketId|null} [packet_id] QueryTotalTimeoutFeesRequest packet_id */ /** - * Constructs a new GenesisState. + * Constructs a new QueryTotalTimeoutFeesRequest. * @memberof ibc.applications.fee.v1 - * @classdesc Represents a GenesisState. - * @implements IGenesisState + * @classdesc Represents a QueryTotalTimeoutFeesRequest. + * @implements IQueryTotalTimeoutFeesRequest * @constructor - * @param {ibc.applications.fee.v1.IGenesisState=} [properties] Properties to set + * @param {ibc.applications.fee.v1.IQueryTotalTimeoutFeesRequest=} [properties] Properties to set */ - function GenesisState(properties) { - this.identified_fees = []; - this.fee_enabled_channels = []; - this.registered_payees = []; - this.registered_counterparty_payees = []; - this.forward_relayers = []; + function QueryTotalTimeoutFeesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -25429,130 +32063,63 @@ } /** - * GenesisState identified_fees. - * @member {Array.} identified_fees - * @memberof ibc.applications.fee.v1.GenesisState - * @instance - */ - GenesisState.prototype.identified_fees = $util.emptyArray; - - /** - * GenesisState fee_enabled_channels. - * @member {Array.} fee_enabled_channels - * @memberof ibc.applications.fee.v1.GenesisState - * @instance - */ - GenesisState.prototype.fee_enabled_channels = $util.emptyArray; - - /** - * GenesisState registered_payees. - * @member {Array.} registered_payees - * @memberof ibc.applications.fee.v1.GenesisState - * @instance - */ - GenesisState.prototype.registered_payees = $util.emptyArray; - - /** - * GenesisState registered_counterparty_payees. - * @member {Array.} registered_counterparty_payees - * @memberof ibc.applications.fee.v1.GenesisState - * @instance - */ - GenesisState.prototype.registered_counterparty_payees = $util.emptyArray; - - /** - * GenesisState forward_relayers. - * @member {Array.} forward_relayers - * @memberof ibc.applications.fee.v1.GenesisState + * QueryTotalTimeoutFeesRequest packet_id. + * @member {ibc.core.channel.v1.IPacketId|null|undefined} packet_id + * @memberof ibc.applications.fee.v1.QueryTotalTimeoutFeesRequest * @instance */ - GenesisState.prototype.forward_relayers = $util.emptyArray; + QueryTotalTimeoutFeesRequest.prototype.packet_id = null; /** - * Encodes the specified GenesisState message. Does not implicitly {@link ibc.applications.fee.v1.GenesisState.verify|verify} messages. + * Encodes the specified QueryTotalTimeoutFeesRequest message. Does not implicitly {@link ibc.applications.fee.v1.QueryTotalTimeoutFeesRequest.verify|verify} messages. * @function encode - * @memberof ibc.applications.fee.v1.GenesisState + * @memberof ibc.applications.fee.v1.QueryTotalTimeoutFeesRequest * @static - * @param {ibc.applications.fee.v1.IGenesisState} message GenesisState message or plain object to encode + * @param {ibc.applications.fee.v1.IQueryTotalTimeoutFeesRequest} message QueryTotalTimeoutFeesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GenesisState.encode = function encode(message, writer) { + QueryTotalTimeoutFeesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.identified_fees != null && message.identified_fees.length) - for (var i = 0; i < message.identified_fees.length; ++i) - $root.ibc.applications.fee.v1.IdentifiedPacketFees.encode(message.identified_fees[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.fee_enabled_channels != null && message.fee_enabled_channels.length) - for (var i = 0; i < message.fee_enabled_channels.length; ++i) - $root.ibc.applications.fee.v1.FeeEnabledChannel.encode(message.fee_enabled_channels[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.registered_payees != null && message.registered_payees.length) - for (var i = 0; i < message.registered_payees.length; ++i) - $root.ibc.applications.fee.v1.RegisteredPayee.encode(message.registered_payees[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.registered_counterparty_payees != null && message.registered_counterparty_payees.length) - for (var i = 0; i < message.registered_counterparty_payees.length; ++i) - $root.ibc.applications.fee.v1.RegisteredCounterpartyPayee.encode(message.registered_counterparty_payees[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.forward_relayers != null && message.forward_relayers.length) - for (var i = 0; i < message.forward_relayers.length; ++i) - $root.ibc.applications.fee.v1.ForwardRelayerAddress.encode(message.forward_relayers[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.packet_id != null && Object.hasOwnProperty.call(message, "packet_id")) + $root.ibc.core.channel.v1.PacketId.encode(message.packet_id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified GenesisState message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.GenesisState.verify|verify} messages. + * Encodes the specified QueryTotalTimeoutFeesRequest message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.QueryTotalTimeoutFeesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.applications.fee.v1.GenesisState + * @memberof ibc.applications.fee.v1.QueryTotalTimeoutFeesRequest * @static - * @param {ibc.applications.fee.v1.IGenesisState} message GenesisState message or plain object to encode + * @param {ibc.applications.fee.v1.IQueryTotalTimeoutFeesRequest} message QueryTotalTimeoutFeesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GenesisState.encodeDelimited = function encodeDelimited(message, writer) { + QueryTotalTimeoutFeesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GenesisState message from the specified reader or buffer. + * Decodes a QueryTotalTimeoutFeesRequest message from the specified reader or buffer. * @function decode - * @memberof ibc.applications.fee.v1.GenesisState + * @memberof ibc.applications.fee.v1.QueryTotalTimeoutFeesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.fee.v1.GenesisState} GenesisState + * @returns {ibc.applications.fee.v1.QueryTotalTimeoutFeesRequest} QueryTotalTimeoutFeesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GenesisState.decode = function decode(reader, length) { + QueryTotalTimeoutFeesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.GenesisState(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.QueryTotalTimeoutFeesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.identified_fees && message.identified_fees.length)) - message.identified_fees = []; - message.identified_fees.push($root.ibc.applications.fee.v1.IdentifiedPacketFees.decode(reader, reader.uint32())); - break; - case 2: - if (!(message.fee_enabled_channels && message.fee_enabled_channels.length)) - message.fee_enabled_channels = []; - message.fee_enabled_channels.push($root.ibc.applications.fee.v1.FeeEnabledChannel.decode(reader, reader.uint32())); - break; - case 3: - if (!(message.registered_payees && message.registered_payees.length)) - message.registered_payees = []; - message.registered_payees.push($root.ibc.applications.fee.v1.RegisteredPayee.decode(reader, reader.uint32())); - break; - case 4: - if (!(message.registered_counterparty_payees && message.registered_counterparty_payees.length)) - message.registered_counterparty_payees = []; - message.registered_counterparty_payees.push($root.ibc.applications.fee.v1.RegisteredCounterpartyPayee.decode(reader, reader.uint32())); - break; - case 5: - if (!(message.forward_relayers && message.forward_relayers.length)) - message.forward_relayers = []; - message.forward_relayers.push($root.ibc.applications.fee.v1.ForwardRelayerAddress.decode(reader, reader.uint32())); + message.packet_id = $root.ibc.core.channel.v1.PacketId.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -25563,303 +32130,180 @@ }; /** - * Decodes a GenesisState message from the specified reader or buffer, length delimited. + * Decodes a QueryTotalTimeoutFeesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.applications.fee.v1.GenesisState + * @memberof ibc.applications.fee.v1.QueryTotalTimeoutFeesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.fee.v1.GenesisState} GenesisState + * @returns {ibc.applications.fee.v1.QueryTotalTimeoutFeesRequest} QueryTotalTimeoutFeesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GenesisState.decodeDelimited = function decodeDelimited(reader) { + QueryTotalTimeoutFeesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GenesisState message. + * Verifies a QueryTotalTimeoutFeesRequest message. * @function verify - * @memberof ibc.applications.fee.v1.GenesisState + * @memberof ibc.applications.fee.v1.QueryTotalTimeoutFeesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GenesisState.verify = function verify(message) { + QueryTotalTimeoutFeesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.identified_fees != null && message.hasOwnProperty("identified_fees")) { - if (!Array.isArray(message.identified_fees)) - return "identified_fees: array expected"; - for (var i = 0; i < message.identified_fees.length; ++i) { - var error = $root.ibc.applications.fee.v1.IdentifiedPacketFees.verify(message.identified_fees[i]); - if (error) - return "identified_fees." + error; - } - } - if (message.fee_enabled_channels != null && message.hasOwnProperty("fee_enabled_channels")) { - if (!Array.isArray(message.fee_enabled_channels)) - return "fee_enabled_channels: array expected"; - for (var i = 0; i < message.fee_enabled_channels.length; ++i) { - var error = $root.ibc.applications.fee.v1.FeeEnabledChannel.verify(message.fee_enabled_channels[i]); - if (error) - return "fee_enabled_channels." + error; - } - } - if (message.registered_payees != null && message.hasOwnProperty("registered_payees")) { - if (!Array.isArray(message.registered_payees)) - return "registered_payees: array expected"; - for (var i = 0; i < message.registered_payees.length; ++i) { - var error = $root.ibc.applications.fee.v1.RegisteredPayee.verify(message.registered_payees[i]); - if (error) - return "registered_payees." + error; - } - } - if (message.registered_counterparty_payees != null && message.hasOwnProperty("registered_counterparty_payees")) { - if (!Array.isArray(message.registered_counterparty_payees)) - return "registered_counterparty_payees: array expected"; - for (var i = 0; i < message.registered_counterparty_payees.length; ++i) { - var error = $root.ibc.applications.fee.v1.RegisteredCounterpartyPayee.verify(message.registered_counterparty_payees[i]); - if (error) - return "registered_counterparty_payees." + error; - } - } - if (message.forward_relayers != null && message.hasOwnProperty("forward_relayers")) { - if (!Array.isArray(message.forward_relayers)) - return "forward_relayers: array expected"; - for (var i = 0; i < message.forward_relayers.length; ++i) { - var error = $root.ibc.applications.fee.v1.ForwardRelayerAddress.verify(message.forward_relayers[i]); - if (error) - return "forward_relayers." + error; - } + if (message.packet_id != null && message.hasOwnProperty("packet_id")) { + var error = $root.ibc.core.channel.v1.PacketId.verify(message.packet_id); + if (error) + return "packet_id." + error; } return null; }; /** - * Creates a GenesisState message from a plain object. Also converts values to their respective internal types. + * Creates a QueryTotalTimeoutFeesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.applications.fee.v1.GenesisState + * @memberof ibc.applications.fee.v1.QueryTotalTimeoutFeesRequest * @static * @param {Object.} object Plain object - * @returns {ibc.applications.fee.v1.GenesisState} GenesisState + * @returns {ibc.applications.fee.v1.QueryTotalTimeoutFeesRequest} QueryTotalTimeoutFeesRequest */ - GenesisState.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.fee.v1.GenesisState) + QueryTotalTimeoutFeesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.fee.v1.QueryTotalTimeoutFeesRequest) return object; - var message = new $root.ibc.applications.fee.v1.GenesisState(); - if (object.identified_fees) { - if (!Array.isArray(object.identified_fees)) - throw TypeError(".ibc.applications.fee.v1.GenesisState.identified_fees: array expected"); - message.identified_fees = []; - for (var i = 0; i < object.identified_fees.length; ++i) { - if (typeof object.identified_fees[i] !== "object") - throw TypeError(".ibc.applications.fee.v1.GenesisState.identified_fees: object expected"); - message.identified_fees[i] = $root.ibc.applications.fee.v1.IdentifiedPacketFees.fromObject(object.identified_fees[i]); - } - } - if (object.fee_enabled_channels) { - if (!Array.isArray(object.fee_enabled_channels)) - throw TypeError(".ibc.applications.fee.v1.GenesisState.fee_enabled_channels: array expected"); - message.fee_enabled_channels = []; - for (var i = 0; i < object.fee_enabled_channels.length; ++i) { - if (typeof object.fee_enabled_channels[i] !== "object") - throw TypeError(".ibc.applications.fee.v1.GenesisState.fee_enabled_channels: object expected"); - message.fee_enabled_channels[i] = $root.ibc.applications.fee.v1.FeeEnabledChannel.fromObject(object.fee_enabled_channels[i]); - } - } - if (object.registered_payees) { - if (!Array.isArray(object.registered_payees)) - throw TypeError(".ibc.applications.fee.v1.GenesisState.registered_payees: array expected"); - message.registered_payees = []; - for (var i = 0; i < object.registered_payees.length; ++i) { - if (typeof object.registered_payees[i] !== "object") - throw TypeError(".ibc.applications.fee.v1.GenesisState.registered_payees: object expected"); - message.registered_payees[i] = $root.ibc.applications.fee.v1.RegisteredPayee.fromObject(object.registered_payees[i]); - } - } - if (object.registered_counterparty_payees) { - if (!Array.isArray(object.registered_counterparty_payees)) - throw TypeError(".ibc.applications.fee.v1.GenesisState.registered_counterparty_payees: array expected"); - message.registered_counterparty_payees = []; - for (var i = 0; i < object.registered_counterparty_payees.length; ++i) { - if (typeof object.registered_counterparty_payees[i] !== "object") - throw TypeError(".ibc.applications.fee.v1.GenesisState.registered_counterparty_payees: object expected"); - message.registered_counterparty_payees[i] = $root.ibc.applications.fee.v1.RegisteredCounterpartyPayee.fromObject(object.registered_counterparty_payees[i]); - } - } - if (object.forward_relayers) { - if (!Array.isArray(object.forward_relayers)) - throw TypeError(".ibc.applications.fee.v1.GenesisState.forward_relayers: array expected"); - message.forward_relayers = []; - for (var i = 0; i < object.forward_relayers.length; ++i) { - if (typeof object.forward_relayers[i] !== "object") - throw TypeError(".ibc.applications.fee.v1.GenesisState.forward_relayers: object expected"); - message.forward_relayers[i] = $root.ibc.applications.fee.v1.ForwardRelayerAddress.fromObject(object.forward_relayers[i]); - } + var message = new $root.ibc.applications.fee.v1.QueryTotalTimeoutFeesRequest(); + if (object.packet_id != null) { + if (typeof object.packet_id !== "object") + throw TypeError(".ibc.applications.fee.v1.QueryTotalTimeoutFeesRequest.packet_id: object expected"); + message.packet_id = $root.ibc.core.channel.v1.PacketId.fromObject(object.packet_id); } return message; }; /** - * Creates a plain object from a GenesisState message. Also converts values to other types if specified. + * Creates a plain object from a QueryTotalTimeoutFeesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.applications.fee.v1.GenesisState + * @memberof ibc.applications.fee.v1.QueryTotalTimeoutFeesRequest * @static - * @param {ibc.applications.fee.v1.GenesisState} message GenesisState + * @param {ibc.applications.fee.v1.QueryTotalTimeoutFeesRequest} message QueryTotalTimeoutFeesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GenesisState.toObject = function toObject(message, options) { + QueryTotalTimeoutFeesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.identified_fees = []; - object.fee_enabled_channels = []; - object.registered_payees = []; - object.registered_counterparty_payees = []; - object.forward_relayers = []; - } - if (message.identified_fees && message.identified_fees.length) { - object.identified_fees = []; - for (var j = 0; j < message.identified_fees.length; ++j) - object.identified_fees[j] = $root.ibc.applications.fee.v1.IdentifiedPacketFees.toObject(message.identified_fees[j], options); - } - if (message.fee_enabled_channels && message.fee_enabled_channels.length) { - object.fee_enabled_channels = []; - for (var j = 0; j < message.fee_enabled_channels.length; ++j) - object.fee_enabled_channels[j] = $root.ibc.applications.fee.v1.FeeEnabledChannel.toObject(message.fee_enabled_channels[j], options); - } - if (message.registered_payees && message.registered_payees.length) { - object.registered_payees = []; - for (var j = 0; j < message.registered_payees.length; ++j) - object.registered_payees[j] = $root.ibc.applications.fee.v1.RegisteredPayee.toObject(message.registered_payees[j], options); - } - if (message.registered_counterparty_payees && message.registered_counterparty_payees.length) { - object.registered_counterparty_payees = []; - for (var j = 0; j < message.registered_counterparty_payees.length; ++j) - object.registered_counterparty_payees[j] = $root.ibc.applications.fee.v1.RegisteredCounterpartyPayee.toObject(message.registered_counterparty_payees[j], options); - } - if (message.forward_relayers && message.forward_relayers.length) { - object.forward_relayers = []; - for (var j = 0; j < message.forward_relayers.length; ++j) - object.forward_relayers[j] = $root.ibc.applications.fee.v1.ForwardRelayerAddress.toObject(message.forward_relayers[j], options); - } + if (options.defaults) + object.packet_id = null; + if (message.packet_id != null && message.hasOwnProperty("packet_id")) + object.packet_id = $root.ibc.core.channel.v1.PacketId.toObject(message.packet_id, options); return object; }; /** - * Converts this GenesisState to JSON. + * Converts this QueryTotalTimeoutFeesRequest to JSON. * @function toJSON - * @memberof ibc.applications.fee.v1.GenesisState + * @memberof ibc.applications.fee.v1.QueryTotalTimeoutFeesRequest * @instance * @returns {Object.} JSON object */ - GenesisState.prototype.toJSON = function toJSON() { + QueryTotalTimeoutFeesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GenesisState; + return QueryTotalTimeoutFeesRequest; })(); - v1.FeeEnabledChannel = (function() { + v1.QueryTotalTimeoutFeesResponse = (function() { /** - * Properties of a FeeEnabledChannel. + * Properties of a QueryTotalTimeoutFeesResponse. * @memberof ibc.applications.fee.v1 - * @interface IFeeEnabledChannel - * @property {string|null} [port_id] FeeEnabledChannel port_id - * @property {string|null} [channel_id] FeeEnabledChannel channel_id + * @interface IQueryTotalTimeoutFeesResponse + * @property {Array.|null} [timeout_fees] QueryTotalTimeoutFeesResponse timeout_fees */ /** - * Constructs a new FeeEnabledChannel. + * Constructs a new QueryTotalTimeoutFeesResponse. * @memberof ibc.applications.fee.v1 - * @classdesc Represents a FeeEnabledChannel. - * @implements IFeeEnabledChannel + * @classdesc Represents a QueryTotalTimeoutFeesResponse. + * @implements IQueryTotalTimeoutFeesResponse * @constructor - * @param {ibc.applications.fee.v1.IFeeEnabledChannel=} [properties] Properties to set - */ - function FeeEnabledChannel(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * FeeEnabledChannel port_id. - * @member {string} port_id - * @memberof ibc.applications.fee.v1.FeeEnabledChannel - * @instance + * @param {ibc.applications.fee.v1.IQueryTotalTimeoutFeesResponse=} [properties] Properties to set */ - FeeEnabledChannel.prototype.port_id = ""; + function QueryTotalTimeoutFeesResponse(properties) { + this.timeout_fees = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * FeeEnabledChannel channel_id. - * @member {string} channel_id - * @memberof ibc.applications.fee.v1.FeeEnabledChannel + * QueryTotalTimeoutFeesResponse timeout_fees. + * @member {Array.} timeout_fees + * @memberof ibc.applications.fee.v1.QueryTotalTimeoutFeesResponse * @instance */ - FeeEnabledChannel.prototype.channel_id = ""; + QueryTotalTimeoutFeesResponse.prototype.timeout_fees = $util.emptyArray; /** - * Encodes the specified FeeEnabledChannel message. Does not implicitly {@link ibc.applications.fee.v1.FeeEnabledChannel.verify|verify} messages. + * Encodes the specified QueryTotalTimeoutFeesResponse message. Does not implicitly {@link ibc.applications.fee.v1.QueryTotalTimeoutFeesResponse.verify|verify} messages. * @function encode - * @memberof ibc.applications.fee.v1.FeeEnabledChannel + * @memberof ibc.applications.fee.v1.QueryTotalTimeoutFeesResponse * @static - * @param {ibc.applications.fee.v1.IFeeEnabledChannel} message FeeEnabledChannel message or plain object to encode + * @param {ibc.applications.fee.v1.IQueryTotalTimeoutFeesResponse} message QueryTotalTimeoutFeesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FeeEnabledChannel.encode = function encode(message, writer) { + QueryTotalTimeoutFeesResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.port_id != null && Object.hasOwnProperty.call(message, "port_id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.port_id); - if (message.channel_id != null && Object.hasOwnProperty.call(message, "channel_id")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.channel_id); + if (message.timeout_fees != null && message.timeout_fees.length) + for (var i = 0; i < message.timeout_fees.length; ++i) + $root.cosmos.base.v1beta1.Coin.encode(message.timeout_fees[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified FeeEnabledChannel message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.FeeEnabledChannel.verify|verify} messages. + * Encodes the specified QueryTotalTimeoutFeesResponse message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.QueryTotalTimeoutFeesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.applications.fee.v1.FeeEnabledChannel + * @memberof ibc.applications.fee.v1.QueryTotalTimeoutFeesResponse * @static - * @param {ibc.applications.fee.v1.IFeeEnabledChannel} message FeeEnabledChannel message or plain object to encode + * @param {ibc.applications.fee.v1.IQueryTotalTimeoutFeesResponse} message QueryTotalTimeoutFeesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FeeEnabledChannel.encodeDelimited = function encodeDelimited(message, writer) { + QueryTotalTimeoutFeesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a FeeEnabledChannel message from the specified reader or buffer. + * Decodes a QueryTotalTimeoutFeesResponse message from the specified reader or buffer. * @function decode - * @memberof ibc.applications.fee.v1.FeeEnabledChannel + * @memberof ibc.applications.fee.v1.QueryTotalTimeoutFeesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.fee.v1.FeeEnabledChannel} FeeEnabledChannel + * @returns {ibc.applications.fee.v1.QueryTotalTimeoutFeesResponse} QueryTotalTimeoutFeesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FeeEnabledChannel.decode = function decode(reader, length) { + QueryTotalTimeoutFeesResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.FeeEnabledChannel(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.QueryTotalTimeoutFeesResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.port_id = reader.string(); - break; - case 2: - message.channel_id = reader.string(); + if (!(message.timeout_fees && message.timeout_fees.length)) + message.timeout_fees = []; + message.timeout_fees.push($root.cosmos.base.v1beta1.Coin.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -25870,118 +32314,125 @@ }; /** - * Decodes a FeeEnabledChannel message from the specified reader or buffer, length delimited. + * Decodes a QueryTotalTimeoutFeesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.applications.fee.v1.FeeEnabledChannel + * @memberof ibc.applications.fee.v1.QueryTotalTimeoutFeesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.fee.v1.FeeEnabledChannel} FeeEnabledChannel + * @returns {ibc.applications.fee.v1.QueryTotalTimeoutFeesResponse} QueryTotalTimeoutFeesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FeeEnabledChannel.decodeDelimited = function decodeDelimited(reader) { + QueryTotalTimeoutFeesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a FeeEnabledChannel message. + * Verifies a QueryTotalTimeoutFeesResponse message. * @function verify - * @memberof ibc.applications.fee.v1.FeeEnabledChannel + * @memberof ibc.applications.fee.v1.QueryTotalTimeoutFeesResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FeeEnabledChannel.verify = function verify(message) { + QueryTotalTimeoutFeesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.port_id != null && message.hasOwnProperty("port_id")) - if (!$util.isString(message.port_id)) - return "port_id: string expected"; - if (message.channel_id != null && message.hasOwnProperty("channel_id")) - if (!$util.isString(message.channel_id)) - return "channel_id: string expected"; + if (message.timeout_fees != null && message.hasOwnProperty("timeout_fees")) { + if (!Array.isArray(message.timeout_fees)) + return "timeout_fees: array expected"; + for (var i = 0; i < message.timeout_fees.length; ++i) { + var error = $root.cosmos.base.v1beta1.Coin.verify(message.timeout_fees[i]); + if (error) + return "timeout_fees." + error; + } + } return null; }; /** - * Creates a FeeEnabledChannel message from a plain object. Also converts values to their respective internal types. + * Creates a QueryTotalTimeoutFeesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.applications.fee.v1.FeeEnabledChannel + * @memberof ibc.applications.fee.v1.QueryTotalTimeoutFeesResponse * @static * @param {Object.} object Plain object - * @returns {ibc.applications.fee.v1.FeeEnabledChannel} FeeEnabledChannel + * @returns {ibc.applications.fee.v1.QueryTotalTimeoutFeesResponse} QueryTotalTimeoutFeesResponse */ - FeeEnabledChannel.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.fee.v1.FeeEnabledChannel) + QueryTotalTimeoutFeesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.fee.v1.QueryTotalTimeoutFeesResponse) return object; - var message = new $root.ibc.applications.fee.v1.FeeEnabledChannel(); - if (object.port_id != null) - message.port_id = String(object.port_id); - if (object.channel_id != null) - message.channel_id = String(object.channel_id); + var message = new $root.ibc.applications.fee.v1.QueryTotalTimeoutFeesResponse(); + if (object.timeout_fees) { + if (!Array.isArray(object.timeout_fees)) + throw TypeError(".ibc.applications.fee.v1.QueryTotalTimeoutFeesResponse.timeout_fees: array expected"); + message.timeout_fees = []; + for (var i = 0; i < object.timeout_fees.length; ++i) { + if (typeof object.timeout_fees[i] !== "object") + throw TypeError(".ibc.applications.fee.v1.QueryTotalTimeoutFeesResponse.timeout_fees: object expected"); + message.timeout_fees[i] = $root.cosmos.base.v1beta1.Coin.fromObject(object.timeout_fees[i]); + } + } return message; }; /** - * Creates a plain object from a FeeEnabledChannel message. Also converts values to other types if specified. + * Creates a plain object from a QueryTotalTimeoutFeesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.applications.fee.v1.FeeEnabledChannel + * @memberof ibc.applications.fee.v1.QueryTotalTimeoutFeesResponse * @static - * @param {ibc.applications.fee.v1.FeeEnabledChannel} message FeeEnabledChannel + * @param {ibc.applications.fee.v1.QueryTotalTimeoutFeesResponse} message QueryTotalTimeoutFeesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FeeEnabledChannel.toObject = function toObject(message, options) { + QueryTotalTimeoutFeesResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.port_id = ""; - object.channel_id = ""; + if (options.arrays || options.defaults) + object.timeout_fees = []; + if (message.timeout_fees && message.timeout_fees.length) { + object.timeout_fees = []; + for (var j = 0; j < message.timeout_fees.length; ++j) + object.timeout_fees[j] = $root.cosmos.base.v1beta1.Coin.toObject(message.timeout_fees[j], options); } - if (message.port_id != null && message.hasOwnProperty("port_id")) - object.port_id = message.port_id; - if (message.channel_id != null && message.hasOwnProperty("channel_id")) - object.channel_id = message.channel_id; return object; }; /** - * Converts this FeeEnabledChannel to JSON. + * Converts this QueryTotalTimeoutFeesResponse to JSON. * @function toJSON - * @memberof ibc.applications.fee.v1.FeeEnabledChannel + * @memberof ibc.applications.fee.v1.QueryTotalTimeoutFeesResponse * @instance * @returns {Object.} JSON object */ - FeeEnabledChannel.prototype.toJSON = function toJSON() { + QueryTotalTimeoutFeesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return FeeEnabledChannel; + return QueryTotalTimeoutFeesResponse; })(); - v1.RegisteredPayee = (function() { + v1.QueryPayeeRequest = (function() { /** - * Properties of a RegisteredPayee. + * Properties of a QueryPayeeRequest. * @memberof ibc.applications.fee.v1 - * @interface IRegisteredPayee - * @property {string|null} [channel_id] RegisteredPayee channel_id - * @property {string|null} [relayer] RegisteredPayee relayer - * @property {string|null} [payee] RegisteredPayee payee + * @interface IQueryPayeeRequest + * @property {string|null} [channel_id] QueryPayeeRequest channel_id + * @property {string|null} [relayer] QueryPayeeRequest relayer */ /** - * Constructs a new RegisteredPayee. + * Constructs a new QueryPayeeRequest. * @memberof ibc.applications.fee.v1 - * @classdesc Represents a RegisteredPayee. - * @implements IRegisteredPayee + * @classdesc Represents a QueryPayeeRequest. + * @implements IQueryPayeeRequest * @constructor - * @param {ibc.applications.fee.v1.IRegisteredPayee=} [properties] Properties to set + * @param {ibc.applications.fee.v1.IQueryPayeeRequest=} [properties] Properties to set */ - function RegisteredPayee(properties) { + function QueryPayeeRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -25989,78 +32440,68 @@ } /** - * RegisteredPayee channel_id. + * QueryPayeeRequest channel_id. * @member {string} channel_id - * @memberof ibc.applications.fee.v1.RegisteredPayee + * @memberof ibc.applications.fee.v1.QueryPayeeRequest * @instance */ - RegisteredPayee.prototype.channel_id = ""; + QueryPayeeRequest.prototype.channel_id = ""; /** - * RegisteredPayee relayer. + * QueryPayeeRequest relayer. * @member {string} relayer - * @memberof ibc.applications.fee.v1.RegisteredPayee - * @instance - */ - RegisteredPayee.prototype.relayer = ""; - - /** - * RegisteredPayee payee. - * @member {string} payee - * @memberof ibc.applications.fee.v1.RegisteredPayee + * @memberof ibc.applications.fee.v1.QueryPayeeRequest * @instance */ - RegisteredPayee.prototype.payee = ""; + QueryPayeeRequest.prototype.relayer = ""; /** - * Encodes the specified RegisteredPayee message. Does not implicitly {@link ibc.applications.fee.v1.RegisteredPayee.verify|verify} messages. + * Encodes the specified QueryPayeeRequest message. Does not implicitly {@link ibc.applications.fee.v1.QueryPayeeRequest.verify|verify} messages. * @function encode - * @memberof ibc.applications.fee.v1.RegisteredPayee + * @memberof ibc.applications.fee.v1.QueryPayeeRequest * @static - * @param {ibc.applications.fee.v1.IRegisteredPayee} message RegisteredPayee message or plain object to encode + * @param {ibc.applications.fee.v1.IQueryPayeeRequest} message QueryPayeeRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RegisteredPayee.encode = function encode(message, writer) { + QueryPayeeRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.channel_id != null && Object.hasOwnProperty.call(message, "channel_id")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.channel_id); if (message.relayer != null && Object.hasOwnProperty.call(message, "relayer")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.relayer); - if (message.payee != null && Object.hasOwnProperty.call(message, "payee")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.payee); return writer; }; /** - * Encodes the specified RegisteredPayee message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.RegisteredPayee.verify|verify} messages. + * Encodes the specified QueryPayeeRequest message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.QueryPayeeRequest.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.applications.fee.v1.RegisteredPayee + * @memberof ibc.applications.fee.v1.QueryPayeeRequest * @static - * @param {ibc.applications.fee.v1.IRegisteredPayee} message RegisteredPayee message or plain object to encode + * @param {ibc.applications.fee.v1.IQueryPayeeRequest} message QueryPayeeRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RegisteredPayee.encodeDelimited = function encodeDelimited(message, writer) { + QueryPayeeRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RegisteredPayee message from the specified reader or buffer. + * Decodes a QueryPayeeRequest message from the specified reader or buffer. * @function decode - * @memberof ibc.applications.fee.v1.RegisteredPayee + * @memberof ibc.applications.fee.v1.QueryPayeeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.fee.v1.RegisteredPayee} RegisteredPayee + * @returns {ibc.applications.fee.v1.QueryPayeeRequest} QueryPayeeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RegisteredPayee.decode = function decode(reader, length) { + QueryPayeeRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.RegisteredPayee(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.QueryPayeeRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -26070,9 +32511,6 @@ case 2: message.relayer = reader.string(); break; - case 3: - message.payee = reader.string(); - break; default: reader.skipType(tag & 7); break; @@ -26082,30 +32520,30 @@ }; /** - * Decodes a RegisteredPayee message from the specified reader or buffer, length delimited. + * Decodes a QueryPayeeRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.applications.fee.v1.RegisteredPayee + * @memberof ibc.applications.fee.v1.QueryPayeeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.fee.v1.RegisteredPayee} RegisteredPayee + * @returns {ibc.applications.fee.v1.QueryPayeeRequest} QueryPayeeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RegisteredPayee.decodeDelimited = function decodeDelimited(reader) { + QueryPayeeRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RegisteredPayee message. + * Verifies a QueryPayeeRequest message. * @function verify - * @memberof ibc.applications.fee.v1.RegisteredPayee + * @memberof ibc.applications.fee.v1.QueryPayeeRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RegisteredPayee.verify = function verify(message) { + QueryPayeeRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.channel_id != null && message.hasOwnProperty("channel_id")) @@ -26114,94 +32552,84 @@ if (message.relayer != null && message.hasOwnProperty("relayer")) if (!$util.isString(message.relayer)) return "relayer: string expected"; - if (message.payee != null && message.hasOwnProperty("payee")) - if (!$util.isString(message.payee)) - return "payee: string expected"; return null; }; /** - * Creates a RegisteredPayee message from a plain object. Also converts values to their respective internal types. + * Creates a QueryPayeeRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.applications.fee.v1.RegisteredPayee + * @memberof ibc.applications.fee.v1.QueryPayeeRequest * @static * @param {Object.} object Plain object - * @returns {ibc.applications.fee.v1.RegisteredPayee} RegisteredPayee + * @returns {ibc.applications.fee.v1.QueryPayeeRequest} QueryPayeeRequest */ - RegisteredPayee.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.fee.v1.RegisteredPayee) + QueryPayeeRequest.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.fee.v1.QueryPayeeRequest) return object; - var message = new $root.ibc.applications.fee.v1.RegisteredPayee(); + var message = new $root.ibc.applications.fee.v1.QueryPayeeRequest(); if (object.channel_id != null) message.channel_id = String(object.channel_id); if (object.relayer != null) message.relayer = String(object.relayer); - if (object.payee != null) - message.payee = String(object.payee); return message; }; /** - * Creates a plain object from a RegisteredPayee message. Also converts values to other types if specified. + * Creates a plain object from a QueryPayeeRequest message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.applications.fee.v1.RegisteredPayee + * @memberof ibc.applications.fee.v1.QueryPayeeRequest * @static - * @param {ibc.applications.fee.v1.RegisteredPayee} message RegisteredPayee + * @param {ibc.applications.fee.v1.QueryPayeeRequest} message QueryPayeeRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RegisteredPayee.toObject = function toObject(message, options) { + QueryPayeeRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.channel_id = ""; object.relayer = ""; - object.payee = ""; } if (message.channel_id != null && message.hasOwnProperty("channel_id")) object.channel_id = message.channel_id; if (message.relayer != null && message.hasOwnProperty("relayer")) object.relayer = message.relayer; - if (message.payee != null && message.hasOwnProperty("payee")) - object.payee = message.payee; return object; }; /** - * Converts this RegisteredPayee to JSON. + * Converts this QueryPayeeRequest to JSON. * @function toJSON - * @memberof ibc.applications.fee.v1.RegisteredPayee + * @memberof ibc.applications.fee.v1.QueryPayeeRequest * @instance * @returns {Object.} JSON object */ - RegisteredPayee.prototype.toJSON = function toJSON() { + QueryPayeeRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return RegisteredPayee; + return QueryPayeeRequest; })(); - v1.RegisteredCounterpartyPayee = (function() { + v1.QueryPayeeResponse = (function() { /** - * Properties of a RegisteredCounterpartyPayee. + * Properties of a QueryPayeeResponse. * @memberof ibc.applications.fee.v1 - * @interface IRegisteredCounterpartyPayee - * @property {string|null} [channel_id] RegisteredCounterpartyPayee channel_id - * @property {string|null} [relayer] RegisteredCounterpartyPayee relayer - * @property {string|null} [counterparty_payee] RegisteredCounterpartyPayee counterparty_payee + * @interface IQueryPayeeResponse + * @property {string|null} [payee_address] QueryPayeeResponse payee_address */ /** - * Constructs a new RegisteredCounterpartyPayee. + * Constructs a new QueryPayeeResponse. * @memberof ibc.applications.fee.v1 - * @classdesc Represents a RegisteredCounterpartyPayee. - * @implements IRegisteredCounterpartyPayee + * @classdesc Represents a QueryPayeeResponse. + * @implements IQueryPayeeResponse * @constructor - * @param {ibc.applications.fee.v1.IRegisteredCounterpartyPayee=} [properties] Properties to set + * @param {ibc.applications.fee.v1.IQueryPayeeResponse=} [properties] Properties to set */ - function RegisteredCounterpartyPayee(properties) { + function QueryPayeeResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -26209,89 +32637,63 @@ } /** - * RegisteredCounterpartyPayee channel_id. - * @member {string} channel_id - * @memberof ibc.applications.fee.v1.RegisteredCounterpartyPayee - * @instance - */ - RegisteredCounterpartyPayee.prototype.channel_id = ""; - - /** - * RegisteredCounterpartyPayee relayer. - * @member {string} relayer - * @memberof ibc.applications.fee.v1.RegisteredCounterpartyPayee - * @instance - */ - RegisteredCounterpartyPayee.prototype.relayer = ""; - - /** - * RegisteredCounterpartyPayee counterparty_payee. - * @member {string} counterparty_payee - * @memberof ibc.applications.fee.v1.RegisteredCounterpartyPayee + * QueryPayeeResponse payee_address. + * @member {string} payee_address + * @memberof ibc.applications.fee.v1.QueryPayeeResponse * @instance */ - RegisteredCounterpartyPayee.prototype.counterparty_payee = ""; + QueryPayeeResponse.prototype.payee_address = ""; /** - * Encodes the specified RegisteredCounterpartyPayee message. Does not implicitly {@link ibc.applications.fee.v1.RegisteredCounterpartyPayee.verify|verify} messages. + * Encodes the specified QueryPayeeResponse message. Does not implicitly {@link ibc.applications.fee.v1.QueryPayeeResponse.verify|verify} messages. * @function encode - * @memberof ibc.applications.fee.v1.RegisteredCounterpartyPayee + * @memberof ibc.applications.fee.v1.QueryPayeeResponse * @static - * @param {ibc.applications.fee.v1.IRegisteredCounterpartyPayee} message RegisteredCounterpartyPayee message or plain object to encode + * @param {ibc.applications.fee.v1.IQueryPayeeResponse} message QueryPayeeResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RegisteredCounterpartyPayee.encode = function encode(message, writer) { + QueryPayeeResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.channel_id != null && Object.hasOwnProperty.call(message, "channel_id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.channel_id); - if (message.relayer != null && Object.hasOwnProperty.call(message, "relayer")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.relayer); - if (message.counterparty_payee != null && Object.hasOwnProperty.call(message, "counterparty_payee")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.counterparty_payee); + if (message.payee_address != null && Object.hasOwnProperty.call(message, "payee_address")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.payee_address); return writer; }; /** - * Encodes the specified RegisteredCounterpartyPayee message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.RegisteredCounterpartyPayee.verify|verify} messages. + * Encodes the specified QueryPayeeResponse message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.QueryPayeeResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.applications.fee.v1.RegisteredCounterpartyPayee + * @memberof ibc.applications.fee.v1.QueryPayeeResponse * @static - * @param {ibc.applications.fee.v1.IRegisteredCounterpartyPayee} message RegisteredCounterpartyPayee message or plain object to encode + * @param {ibc.applications.fee.v1.IQueryPayeeResponse} message QueryPayeeResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RegisteredCounterpartyPayee.encodeDelimited = function encodeDelimited(message, writer) { + QueryPayeeResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RegisteredCounterpartyPayee message from the specified reader or buffer. + * Decodes a QueryPayeeResponse message from the specified reader or buffer. * @function decode - * @memberof ibc.applications.fee.v1.RegisteredCounterpartyPayee + * @memberof ibc.applications.fee.v1.QueryPayeeResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.fee.v1.RegisteredCounterpartyPayee} RegisteredCounterpartyPayee + * @returns {ibc.applications.fee.v1.QueryPayeeResponse} QueryPayeeResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RegisteredCounterpartyPayee.decode = function decode(reader, length) { + QueryPayeeResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.RegisteredCounterpartyPayee(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.QueryPayeeResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.channel_id = reader.string(); - break; - case 2: - message.relayer = reader.string(); - break; - case 3: - message.counterparty_payee = reader.string(); + message.payee_address = reader.string(); break; default: reader.skipType(tag & 7); @@ -26302,125 +32704,108 @@ }; /** - * Decodes a RegisteredCounterpartyPayee message from the specified reader or buffer, length delimited. + * Decodes a QueryPayeeResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.applications.fee.v1.RegisteredCounterpartyPayee + * @memberof ibc.applications.fee.v1.QueryPayeeResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.fee.v1.RegisteredCounterpartyPayee} RegisteredCounterpartyPayee + * @returns {ibc.applications.fee.v1.QueryPayeeResponse} QueryPayeeResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RegisteredCounterpartyPayee.decodeDelimited = function decodeDelimited(reader) { + QueryPayeeResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RegisteredCounterpartyPayee message. + * Verifies a QueryPayeeResponse message. * @function verify - * @memberof ibc.applications.fee.v1.RegisteredCounterpartyPayee + * @memberof ibc.applications.fee.v1.QueryPayeeResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RegisteredCounterpartyPayee.verify = function verify(message) { + QueryPayeeResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.channel_id != null && message.hasOwnProperty("channel_id")) - if (!$util.isString(message.channel_id)) - return "channel_id: string expected"; - if (message.relayer != null && message.hasOwnProperty("relayer")) - if (!$util.isString(message.relayer)) - return "relayer: string expected"; - if (message.counterparty_payee != null && message.hasOwnProperty("counterparty_payee")) - if (!$util.isString(message.counterparty_payee)) - return "counterparty_payee: string expected"; + if (message.payee_address != null && message.hasOwnProperty("payee_address")) + if (!$util.isString(message.payee_address)) + return "payee_address: string expected"; return null; }; /** - * Creates a RegisteredCounterpartyPayee message from a plain object. Also converts values to their respective internal types. + * Creates a QueryPayeeResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.applications.fee.v1.RegisteredCounterpartyPayee + * @memberof ibc.applications.fee.v1.QueryPayeeResponse * @static * @param {Object.} object Plain object - * @returns {ibc.applications.fee.v1.RegisteredCounterpartyPayee} RegisteredCounterpartyPayee + * @returns {ibc.applications.fee.v1.QueryPayeeResponse} QueryPayeeResponse */ - RegisteredCounterpartyPayee.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.fee.v1.RegisteredCounterpartyPayee) + QueryPayeeResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.fee.v1.QueryPayeeResponse) return object; - var message = new $root.ibc.applications.fee.v1.RegisteredCounterpartyPayee(); - if (object.channel_id != null) - message.channel_id = String(object.channel_id); - if (object.relayer != null) - message.relayer = String(object.relayer); - if (object.counterparty_payee != null) - message.counterparty_payee = String(object.counterparty_payee); + var message = new $root.ibc.applications.fee.v1.QueryPayeeResponse(); + if (object.payee_address != null) + message.payee_address = String(object.payee_address); return message; }; /** - * Creates a plain object from a RegisteredCounterpartyPayee message. Also converts values to other types if specified. + * Creates a plain object from a QueryPayeeResponse message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.applications.fee.v1.RegisteredCounterpartyPayee + * @memberof ibc.applications.fee.v1.QueryPayeeResponse * @static - * @param {ibc.applications.fee.v1.RegisteredCounterpartyPayee} message RegisteredCounterpartyPayee + * @param {ibc.applications.fee.v1.QueryPayeeResponse} message QueryPayeeResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RegisteredCounterpartyPayee.toObject = function toObject(message, options) { + QueryPayeeResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.channel_id = ""; - object.relayer = ""; - object.counterparty_payee = ""; - } - if (message.channel_id != null && message.hasOwnProperty("channel_id")) - object.channel_id = message.channel_id; - if (message.relayer != null && message.hasOwnProperty("relayer")) - object.relayer = message.relayer; - if (message.counterparty_payee != null && message.hasOwnProperty("counterparty_payee")) - object.counterparty_payee = message.counterparty_payee; + if (options.defaults) + object.payee_address = ""; + if (message.payee_address != null && message.hasOwnProperty("payee_address")) + object.payee_address = message.payee_address; return object; }; /** - * Converts this RegisteredCounterpartyPayee to JSON. + * Converts this QueryPayeeResponse to JSON. * @function toJSON - * @memberof ibc.applications.fee.v1.RegisteredCounterpartyPayee + * @memberof ibc.applications.fee.v1.QueryPayeeResponse * @instance * @returns {Object.} JSON object */ - RegisteredCounterpartyPayee.prototype.toJSON = function toJSON() { + QueryPayeeResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return RegisteredCounterpartyPayee; + return QueryPayeeResponse; })(); - v1.ForwardRelayerAddress = (function() { + v1.QueryCounterpartyPayeeRequest = (function() { /** - * Properties of a ForwardRelayerAddress. + * Properties of a QueryCounterpartyPayeeRequest. * @memberof ibc.applications.fee.v1 - * @interface IForwardRelayerAddress - * @property {string|null} [address] ForwardRelayerAddress address - * @property {ibc.core.channel.v1.IPacketId|null} [packet_id] ForwardRelayerAddress packet_id + * @interface IQueryCounterpartyPayeeRequest + * @property {string|null} [channel_id] QueryCounterpartyPayeeRequest channel_id + * @property {string|null} [relayer] QueryCounterpartyPayeeRequest relayer */ /** - * Constructs a new ForwardRelayerAddress. + * Constructs a new QueryCounterpartyPayeeRequest. * @memberof ibc.applications.fee.v1 - * @classdesc Represents a ForwardRelayerAddress. - * @implements IForwardRelayerAddress + * @classdesc Represents a QueryCounterpartyPayeeRequest. + * @implements IQueryCounterpartyPayeeRequest * @constructor - * @param {ibc.applications.fee.v1.IForwardRelayerAddress=} [properties] Properties to set + * @param {ibc.applications.fee.v1.IQueryCounterpartyPayeeRequest=} [properties] Properties to set */ - function ForwardRelayerAddress(properties) { + function QueryCounterpartyPayeeRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -26428,76 +32813,76 @@ } /** - * ForwardRelayerAddress address. - * @member {string} address - * @memberof ibc.applications.fee.v1.ForwardRelayerAddress + * QueryCounterpartyPayeeRequest channel_id. + * @member {string} channel_id + * @memberof ibc.applications.fee.v1.QueryCounterpartyPayeeRequest * @instance */ - ForwardRelayerAddress.prototype.address = ""; + QueryCounterpartyPayeeRequest.prototype.channel_id = ""; /** - * ForwardRelayerAddress packet_id. - * @member {ibc.core.channel.v1.IPacketId|null|undefined} packet_id - * @memberof ibc.applications.fee.v1.ForwardRelayerAddress + * QueryCounterpartyPayeeRequest relayer. + * @member {string} relayer + * @memberof ibc.applications.fee.v1.QueryCounterpartyPayeeRequest * @instance */ - ForwardRelayerAddress.prototype.packet_id = null; + QueryCounterpartyPayeeRequest.prototype.relayer = ""; /** - * Encodes the specified ForwardRelayerAddress message. Does not implicitly {@link ibc.applications.fee.v1.ForwardRelayerAddress.verify|verify} messages. + * Encodes the specified QueryCounterpartyPayeeRequest message. Does not implicitly {@link ibc.applications.fee.v1.QueryCounterpartyPayeeRequest.verify|verify} messages. * @function encode - * @memberof ibc.applications.fee.v1.ForwardRelayerAddress + * @memberof ibc.applications.fee.v1.QueryCounterpartyPayeeRequest * @static - * @param {ibc.applications.fee.v1.IForwardRelayerAddress} message ForwardRelayerAddress message or plain object to encode + * @param {ibc.applications.fee.v1.IQueryCounterpartyPayeeRequest} message QueryCounterpartyPayeeRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ForwardRelayerAddress.encode = function encode(message, writer) { + QueryCounterpartyPayeeRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.address != null && Object.hasOwnProperty.call(message, "address")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.address); - if (message.packet_id != null && Object.hasOwnProperty.call(message, "packet_id")) - $root.ibc.core.channel.v1.PacketId.encode(message.packet_id, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.channel_id != null && Object.hasOwnProperty.call(message, "channel_id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.channel_id); + if (message.relayer != null && Object.hasOwnProperty.call(message, "relayer")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.relayer); return writer; }; /** - * Encodes the specified ForwardRelayerAddress message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.ForwardRelayerAddress.verify|verify} messages. + * Encodes the specified QueryCounterpartyPayeeRequest message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.QueryCounterpartyPayeeRequest.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.applications.fee.v1.ForwardRelayerAddress + * @memberof ibc.applications.fee.v1.QueryCounterpartyPayeeRequest * @static - * @param {ibc.applications.fee.v1.IForwardRelayerAddress} message ForwardRelayerAddress message or plain object to encode + * @param {ibc.applications.fee.v1.IQueryCounterpartyPayeeRequest} message QueryCounterpartyPayeeRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ForwardRelayerAddress.encodeDelimited = function encodeDelimited(message, writer) { + QueryCounterpartyPayeeRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ForwardRelayerAddress message from the specified reader or buffer. + * Decodes a QueryCounterpartyPayeeRequest message from the specified reader or buffer. * @function decode - * @memberof ibc.applications.fee.v1.ForwardRelayerAddress + * @memberof ibc.applications.fee.v1.QueryCounterpartyPayeeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.fee.v1.ForwardRelayerAddress} ForwardRelayerAddress + * @returns {ibc.applications.fee.v1.QueryCounterpartyPayeeRequest} QueryCounterpartyPayeeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ForwardRelayerAddress.decode = function decode(reader, length) { + QueryCounterpartyPayeeRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.ForwardRelayerAddress(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.QueryCounterpartyPayeeRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.address = reader.string(); + message.channel_id = reader.string(); break; case 2: - message.packet_id = $root.ibc.core.channel.v1.PacketId.decode(reader, reader.uint32()); + message.relayer = reader.string(); break; default: reader.skipType(tag & 7); @@ -26508,122 +32893,116 @@ }; /** - * Decodes a ForwardRelayerAddress message from the specified reader or buffer, length delimited. + * Decodes a QueryCounterpartyPayeeRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.applications.fee.v1.ForwardRelayerAddress + * @memberof ibc.applications.fee.v1.QueryCounterpartyPayeeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.fee.v1.ForwardRelayerAddress} ForwardRelayerAddress + * @returns {ibc.applications.fee.v1.QueryCounterpartyPayeeRequest} QueryCounterpartyPayeeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ForwardRelayerAddress.decodeDelimited = function decodeDelimited(reader) { + QueryCounterpartyPayeeRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ForwardRelayerAddress message. + * Verifies a QueryCounterpartyPayeeRequest message. * @function verify - * @memberof ibc.applications.fee.v1.ForwardRelayerAddress + * @memberof ibc.applications.fee.v1.QueryCounterpartyPayeeRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ForwardRelayerAddress.verify = function verify(message) { + QueryCounterpartyPayeeRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.address != null && message.hasOwnProperty("address")) - if (!$util.isString(message.address)) - return "address: string expected"; - if (message.packet_id != null && message.hasOwnProperty("packet_id")) { - var error = $root.ibc.core.channel.v1.PacketId.verify(message.packet_id); - if (error) - return "packet_id." + error; - } + if (message.channel_id != null && message.hasOwnProperty("channel_id")) + if (!$util.isString(message.channel_id)) + return "channel_id: string expected"; + if (message.relayer != null && message.hasOwnProperty("relayer")) + if (!$util.isString(message.relayer)) + return "relayer: string expected"; return null; }; /** - * Creates a ForwardRelayerAddress message from a plain object. Also converts values to their respective internal types. + * Creates a QueryCounterpartyPayeeRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.applications.fee.v1.ForwardRelayerAddress + * @memberof ibc.applications.fee.v1.QueryCounterpartyPayeeRequest * @static * @param {Object.} object Plain object - * @returns {ibc.applications.fee.v1.ForwardRelayerAddress} ForwardRelayerAddress + * @returns {ibc.applications.fee.v1.QueryCounterpartyPayeeRequest} QueryCounterpartyPayeeRequest */ - ForwardRelayerAddress.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.fee.v1.ForwardRelayerAddress) + QueryCounterpartyPayeeRequest.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.fee.v1.QueryCounterpartyPayeeRequest) return object; - var message = new $root.ibc.applications.fee.v1.ForwardRelayerAddress(); - if (object.address != null) - message.address = String(object.address); - if (object.packet_id != null) { - if (typeof object.packet_id !== "object") - throw TypeError(".ibc.applications.fee.v1.ForwardRelayerAddress.packet_id: object expected"); - message.packet_id = $root.ibc.core.channel.v1.PacketId.fromObject(object.packet_id); - } + var message = new $root.ibc.applications.fee.v1.QueryCounterpartyPayeeRequest(); + if (object.channel_id != null) + message.channel_id = String(object.channel_id); + if (object.relayer != null) + message.relayer = String(object.relayer); return message; }; /** - * Creates a plain object from a ForwardRelayerAddress message. Also converts values to other types if specified. + * Creates a plain object from a QueryCounterpartyPayeeRequest message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.applications.fee.v1.ForwardRelayerAddress + * @memberof ibc.applications.fee.v1.QueryCounterpartyPayeeRequest * @static - * @param {ibc.applications.fee.v1.ForwardRelayerAddress} message ForwardRelayerAddress + * @param {ibc.applications.fee.v1.QueryCounterpartyPayeeRequest} message QueryCounterpartyPayeeRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ForwardRelayerAddress.toObject = function toObject(message, options) { + QueryCounterpartyPayeeRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.address = ""; - object.packet_id = null; + object.channel_id = ""; + object.relayer = ""; } - if (message.address != null && message.hasOwnProperty("address")) - object.address = message.address; - if (message.packet_id != null && message.hasOwnProperty("packet_id")) - object.packet_id = $root.ibc.core.channel.v1.PacketId.toObject(message.packet_id, options); + if (message.channel_id != null && message.hasOwnProperty("channel_id")) + object.channel_id = message.channel_id; + if (message.relayer != null && message.hasOwnProperty("relayer")) + object.relayer = message.relayer; return object; }; /** - * Converts this ForwardRelayerAddress to JSON. + * Converts this QueryCounterpartyPayeeRequest to JSON. * @function toJSON - * @memberof ibc.applications.fee.v1.ForwardRelayerAddress + * @memberof ibc.applications.fee.v1.QueryCounterpartyPayeeRequest * @instance * @returns {Object.} JSON object */ - ForwardRelayerAddress.prototype.toJSON = function toJSON() { + QueryCounterpartyPayeeRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ForwardRelayerAddress; + return QueryCounterpartyPayeeRequest; })(); - v1.Metadata = (function() { + v1.QueryCounterpartyPayeeResponse = (function() { /** - * Properties of a Metadata. + * Properties of a QueryCounterpartyPayeeResponse. * @memberof ibc.applications.fee.v1 - * @interface IMetadata - * @property {string|null} [fee_version] Metadata fee_version - * @property {string|null} [app_version] Metadata app_version + * @interface IQueryCounterpartyPayeeResponse + * @property {string|null} [counterparty_payee] QueryCounterpartyPayeeResponse counterparty_payee */ /** - * Constructs a new Metadata. + * Constructs a new QueryCounterpartyPayeeResponse. * @memberof ibc.applications.fee.v1 - * @classdesc Represents a Metadata. - * @implements IMetadata + * @classdesc Represents a QueryCounterpartyPayeeResponse. + * @implements IQueryCounterpartyPayeeResponse * @constructor - * @param {ibc.applications.fee.v1.IMetadata=} [properties] Properties to set + * @param {ibc.applications.fee.v1.IQueryCounterpartyPayeeResponse=} [properties] Properties to set */ - function Metadata(properties) { + function QueryCounterpartyPayeeResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -26631,76 +33010,63 @@ } /** - * Metadata fee_version. - * @member {string} fee_version - * @memberof ibc.applications.fee.v1.Metadata - * @instance - */ - Metadata.prototype.fee_version = ""; - - /** - * Metadata app_version. - * @member {string} app_version - * @memberof ibc.applications.fee.v1.Metadata + * QueryCounterpartyPayeeResponse counterparty_payee. + * @member {string} counterparty_payee + * @memberof ibc.applications.fee.v1.QueryCounterpartyPayeeResponse * @instance */ - Metadata.prototype.app_version = ""; + QueryCounterpartyPayeeResponse.prototype.counterparty_payee = ""; /** - * Encodes the specified Metadata message. Does not implicitly {@link ibc.applications.fee.v1.Metadata.verify|verify} messages. + * Encodes the specified QueryCounterpartyPayeeResponse message. Does not implicitly {@link ibc.applications.fee.v1.QueryCounterpartyPayeeResponse.verify|verify} messages. * @function encode - * @memberof ibc.applications.fee.v1.Metadata + * @memberof ibc.applications.fee.v1.QueryCounterpartyPayeeResponse * @static - * @param {ibc.applications.fee.v1.IMetadata} message Metadata message or plain object to encode + * @param {ibc.applications.fee.v1.IQueryCounterpartyPayeeResponse} message QueryCounterpartyPayeeResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Metadata.encode = function encode(message, writer) { + QueryCounterpartyPayeeResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.fee_version != null && Object.hasOwnProperty.call(message, "fee_version")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.fee_version); - if (message.app_version != null && Object.hasOwnProperty.call(message, "app_version")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.app_version); + if (message.counterparty_payee != null && Object.hasOwnProperty.call(message, "counterparty_payee")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.counterparty_payee); return writer; }; /** - * Encodes the specified Metadata message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.Metadata.verify|verify} messages. + * Encodes the specified QueryCounterpartyPayeeResponse message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.QueryCounterpartyPayeeResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.applications.fee.v1.Metadata + * @memberof ibc.applications.fee.v1.QueryCounterpartyPayeeResponse * @static - * @param {ibc.applications.fee.v1.IMetadata} message Metadata message or plain object to encode + * @param {ibc.applications.fee.v1.IQueryCounterpartyPayeeResponse} message QueryCounterpartyPayeeResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Metadata.encodeDelimited = function encodeDelimited(message, writer) { + QueryCounterpartyPayeeResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Metadata message from the specified reader or buffer. + * Decodes a QueryCounterpartyPayeeResponse message from the specified reader or buffer. * @function decode - * @memberof ibc.applications.fee.v1.Metadata + * @memberof ibc.applications.fee.v1.QueryCounterpartyPayeeResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.fee.v1.Metadata} Metadata + * @returns {ibc.applications.fee.v1.QueryCounterpartyPayeeResponse} QueryCounterpartyPayeeResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Metadata.decode = function decode(reader, length) { + QueryCounterpartyPayeeResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.Metadata(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.QueryCounterpartyPayeeResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.fee_version = reader.string(); - break; - case 2: - message.app_version = reader.string(); + message.counterparty_payee = reader.string(); break; default: reader.skipType(tag & 7); @@ -26711,1748 +33077,1682 @@ }; /** - * Decodes a Metadata message from the specified reader or buffer, length delimited. + * Decodes a QueryCounterpartyPayeeResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.applications.fee.v1.Metadata + * @memberof ibc.applications.fee.v1.QueryCounterpartyPayeeResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.fee.v1.Metadata} Metadata + * @returns {ibc.applications.fee.v1.QueryCounterpartyPayeeResponse} QueryCounterpartyPayeeResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Metadata.decodeDelimited = function decodeDelimited(reader) { + QueryCounterpartyPayeeResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Metadata message. + * Verifies a QueryCounterpartyPayeeResponse message. * @function verify - * @memberof ibc.applications.fee.v1.Metadata + * @memberof ibc.applications.fee.v1.QueryCounterpartyPayeeResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Metadata.verify = function verify(message) { + QueryCounterpartyPayeeResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.fee_version != null && message.hasOwnProperty("fee_version")) - if (!$util.isString(message.fee_version)) - return "fee_version: string expected"; - if (message.app_version != null && message.hasOwnProperty("app_version")) - if (!$util.isString(message.app_version)) - return "app_version: string expected"; + if (message.counterparty_payee != null && message.hasOwnProperty("counterparty_payee")) + if (!$util.isString(message.counterparty_payee)) + return "counterparty_payee: string expected"; return null; }; /** - * Creates a Metadata message from a plain object. Also converts values to their respective internal types. + * Creates a QueryCounterpartyPayeeResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.applications.fee.v1.Metadata + * @memberof ibc.applications.fee.v1.QueryCounterpartyPayeeResponse * @static * @param {Object.} object Plain object - * @returns {ibc.applications.fee.v1.Metadata} Metadata + * @returns {ibc.applications.fee.v1.QueryCounterpartyPayeeResponse} QueryCounterpartyPayeeResponse */ - Metadata.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.fee.v1.Metadata) + QueryCounterpartyPayeeResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.fee.v1.QueryCounterpartyPayeeResponse) return object; - var message = new $root.ibc.applications.fee.v1.Metadata(); - if (object.fee_version != null) - message.fee_version = String(object.fee_version); - if (object.app_version != null) - message.app_version = String(object.app_version); + var message = new $root.ibc.applications.fee.v1.QueryCounterpartyPayeeResponse(); + if (object.counterparty_payee != null) + message.counterparty_payee = String(object.counterparty_payee); return message; }; /** - * Creates a plain object from a Metadata message. Also converts values to other types if specified. + * Creates a plain object from a QueryCounterpartyPayeeResponse message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.applications.fee.v1.Metadata + * @memberof ibc.applications.fee.v1.QueryCounterpartyPayeeResponse * @static - * @param {ibc.applications.fee.v1.Metadata} message Metadata + * @param {ibc.applications.fee.v1.QueryCounterpartyPayeeResponse} message QueryCounterpartyPayeeResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Metadata.toObject = function toObject(message, options) { + QueryCounterpartyPayeeResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.fee_version = ""; - object.app_version = ""; - } - if (message.fee_version != null && message.hasOwnProperty("fee_version")) - object.fee_version = message.fee_version; - if (message.app_version != null && message.hasOwnProperty("app_version")) - object.app_version = message.app_version; + if (options.defaults) + object.counterparty_payee = ""; + if (message.counterparty_payee != null && message.hasOwnProperty("counterparty_payee")) + object.counterparty_payee = message.counterparty_payee; return object; }; /** - * Converts this Metadata to JSON. + * Converts this QueryCounterpartyPayeeResponse to JSON. * @function toJSON - * @memberof ibc.applications.fee.v1.Metadata + * @memberof ibc.applications.fee.v1.QueryCounterpartyPayeeResponse * @instance * @returns {Object.} JSON object */ - Metadata.prototype.toJSON = function toJSON() { + QueryCounterpartyPayeeResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return Metadata; - })(); - - return v1; - })(); - - return fee; - })(); - - applications.interchain_accounts = (function() { - - /** - * Namespace interchain_accounts. - * @memberof ibc.applications - * @namespace - */ - var interchain_accounts = {}; - - interchain_accounts.controller = (function() { - - /** - * Namespace controller. - * @memberof ibc.applications.interchain_accounts - * @namespace - */ - var controller = {}; - - controller.v1 = (function() { - - /** - * Namespace v1. - * @memberof ibc.applications.interchain_accounts.controller - * @namespace - */ - var v1 = {}; - - v1.Query = (function() { - - /** - * Constructs a new Query service. - * @memberof ibc.applications.interchain_accounts.controller.v1 - * @classdesc Represents a Query - * @extends $protobuf.rpc.Service - * @constructor - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - */ - function Query(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } - - (Query.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Query; - - /** - * Callback as used by {@link ibc.applications.interchain_accounts.controller.v1.Query#interchainAccount}. - * @memberof ibc.applications.interchain_accounts.controller.v1.Query - * @typedef InterchainAccountCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountResponse} [response] QueryInterchainAccountResponse - */ - - /** - * Calls InterchainAccount. - * @function interchainAccount - * @memberof ibc.applications.interchain_accounts.controller.v1.Query - * @instance - * @param {ibc.applications.interchain_accounts.controller.v1.IQueryInterchainAccountRequest} request QueryInterchainAccountRequest message or plain object - * @param {ibc.applications.interchain_accounts.controller.v1.Query.InterchainAccountCallback} callback Node-style callback called with the error, if any, and QueryInterchainAccountResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Query.prototype.interchainAccount = function interchainAccount(request, callback) { - return this.rpcCall(interchainAccount, $root.ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountRequest, $root.ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountResponse, request, callback); - }, "name", { value: "InterchainAccount" }); - - /** - * Calls InterchainAccount. - * @function interchainAccount - * @memberof ibc.applications.interchain_accounts.controller.v1.Query - * @instance - * @param {ibc.applications.interchain_accounts.controller.v1.IQueryInterchainAccountRequest} request QueryInterchainAccountRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link ibc.applications.interchain_accounts.controller.v1.Query#params}. - * @memberof ibc.applications.interchain_accounts.controller.v1.Query - * @typedef ParamsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.applications.interchain_accounts.controller.v1.QueryParamsResponse} [response] QueryParamsResponse - */ - - /** - * Calls Params. - * @function params - * @memberof ibc.applications.interchain_accounts.controller.v1.Query - * @instance - * @param {ibc.applications.interchain_accounts.controller.v1.IQueryParamsRequest} request QueryParamsRequest message or plain object - * @param {ibc.applications.interchain_accounts.controller.v1.Query.ParamsCallback} callback Node-style callback called with the error, if any, and QueryParamsResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Query.prototype.params = function params(request, callback) { - return this.rpcCall(params, $root.ibc.applications.interchain_accounts.controller.v1.QueryParamsRequest, $root.ibc.applications.interchain_accounts.controller.v1.QueryParamsResponse, request, callback); - }, "name", { value: "Params" }); - - /** - * Calls Params. - * @function params - * @memberof ibc.applications.interchain_accounts.controller.v1.Query - * @instance - * @param {ibc.applications.interchain_accounts.controller.v1.IQueryParamsRequest} request QueryParamsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - return Query; - })(); - - v1.QueryInterchainAccountRequest = (function() { - - /** - * Properties of a QueryInterchainAccountRequest. - * @memberof ibc.applications.interchain_accounts.controller.v1 - * @interface IQueryInterchainAccountRequest - * @property {string|null} [owner] QueryInterchainAccountRequest owner - * @property {string|null} [connection_id] QueryInterchainAccountRequest connection_id - */ - - /** - * Constructs a new QueryInterchainAccountRequest. - * @memberof ibc.applications.interchain_accounts.controller.v1 - * @classdesc Represents a QueryInterchainAccountRequest. - * @implements IQueryInterchainAccountRequest - * @constructor - * @param {ibc.applications.interchain_accounts.controller.v1.IQueryInterchainAccountRequest=} [properties] Properties to set - */ - function QueryInterchainAccountRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * QueryInterchainAccountRequest owner. - * @member {string} owner - * @memberof ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountRequest - * @instance - */ - QueryInterchainAccountRequest.prototype.owner = ""; - - /** - * QueryInterchainAccountRequest connection_id. - * @member {string} connection_id - * @memberof ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountRequest - * @instance - */ - QueryInterchainAccountRequest.prototype.connection_id = ""; - - /** - * Encodes the specified QueryInterchainAccountRequest message. Does not implicitly {@link ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountRequest.verify|verify} messages. - * @function encode - * @memberof ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountRequest - * @static - * @param {ibc.applications.interchain_accounts.controller.v1.IQueryInterchainAccountRequest} message QueryInterchainAccountRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - QueryInterchainAccountRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.owner != null && Object.hasOwnProperty.call(message, "owner")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.owner); - if (message.connection_id != null && Object.hasOwnProperty.call(message, "connection_id")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.connection_id); - return writer; - }; - - /** - * Encodes the specified QueryInterchainAccountRequest message, length delimited. Does not implicitly {@link ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountRequest - * @static - * @param {ibc.applications.interchain_accounts.controller.v1.IQueryInterchainAccountRequest} message QueryInterchainAccountRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - QueryInterchainAccountRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a QueryInterchainAccountRequest message from the specified reader or buffer. - * @function decode - * @memberof ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountRequest} QueryInterchainAccountRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - QueryInterchainAccountRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.owner = reader.string(); - break; - case 2: - message.connection_id = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a QueryInterchainAccountRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountRequest} QueryInterchainAccountRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - QueryInterchainAccountRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a QueryInterchainAccountRequest message. - * @function verify - * @memberof ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - QueryInterchainAccountRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.owner != null && message.hasOwnProperty("owner")) - if (!$util.isString(message.owner)) - return "owner: string expected"; - if (message.connection_id != null && message.hasOwnProperty("connection_id")) - if (!$util.isString(message.connection_id)) - return "connection_id: string expected"; - return null; - }; - - /** - * Creates a QueryInterchainAccountRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountRequest - * @static - * @param {Object.} object Plain object - * @returns {ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountRequest} QueryInterchainAccountRequest - */ - QueryInterchainAccountRequest.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountRequest) - return object; - var message = new $root.ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountRequest(); - if (object.owner != null) - message.owner = String(object.owner); - if (object.connection_id != null) - message.connection_id = String(object.connection_id); - return message; - }; - - /** - * Creates a plain object from a QueryInterchainAccountRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountRequest - * @static - * @param {ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountRequest} message QueryInterchainAccountRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - QueryInterchainAccountRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.owner = ""; - object.connection_id = ""; - } - if (message.owner != null && message.hasOwnProperty("owner")) - object.owner = message.owner; - if (message.connection_id != null && message.hasOwnProperty("connection_id")) - object.connection_id = message.connection_id; - return object; - }; + }; - /** - * Converts this QueryInterchainAccountRequest to JSON. - * @function toJSON - * @memberof ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountRequest - * @instance - * @returns {Object.} JSON object - */ - QueryInterchainAccountRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + return QueryCounterpartyPayeeResponse; + })(); - return QueryInterchainAccountRequest; - })(); + v1.QueryFeeEnabledChannelsRequest = (function() { - v1.QueryInterchainAccountResponse = (function() { + /** + * Properties of a QueryFeeEnabledChannelsRequest. + * @memberof ibc.applications.fee.v1 + * @interface IQueryFeeEnabledChannelsRequest + * @property {cosmos.base.query.v1beta1.IPageRequest|null} [pagination] QueryFeeEnabledChannelsRequest pagination + * @property {Long|null} [query_height] QueryFeeEnabledChannelsRequest query_height + */ - /** - * Properties of a QueryInterchainAccountResponse. - * @memberof ibc.applications.interchain_accounts.controller.v1 - * @interface IQueryInterchainAccountResponse - * @property {string|null} [address] QueryInterchainAccountResponse address - */ + /** + * Constructs a new QueryFeeEnabledChannelsRequest. + * @memberof ibc.applications.fee.v1 + * @classdesc Represents a QueryFeeEnabledChannelsRequest. + * @implements IQueryFeeEnabledChannelsRequest + * @constructor + * @param {ibc.applications.fee.v1.IQueryFeeEnabledChannelsRequest=} [properties] Properties to set + */ + function QueryFeeEnabledChannelsRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Constructs a new QueryInterchainAccountResponse. - * @memberof ibc.applications.interchain_accounts.controller.v1 - * @classdesc Represents a QueryInterchainAccountResponse. - * @implements IQueryInterchainAccountResponse - * @constructor - * @param {ibc.applications.interchain_accounts.controller.v1.IQueryInterchainAccountResponse=} [properties] Properties to set - */ - function QueryInterchainAccountResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * QueryFeeEnabledChannelsRequest pagination. + * @member {cosmos.base.query.v1beta1.IPageRequest|null|undefined} pagination + * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelsRequest + * @instance + */ + QueryFeeEnabledChannelsRequest.prototype.pagination = null; - /** - * QueryInterchainAccountResponse address. - * @member {string} address - * @memberof ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountResponse - * @instance - */ - QueryInterchainAccountResponse.prototype.address = ""; + /** + * QueryFeeEnabledChannelsRequest query_height. + * @member {Long} query_height + * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelsRequest + * @instance + */ + QueryFeeEnabledChannelsRequest.prototype.query_height = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - /** - * Encodes the specified QueryInterchainAccountResponse message. Does not implicitly {@link ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountResponse.verify|verify} messages. - * @function encode - * @memberof ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountResponse - * @static - * @param {ibc.applications.interchain_accounts.controller.v1.IQueryInterchainAccountResponse} message QueryInterchainAccountResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - QueryInterchainAccountResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.address != null && Object.hasOwnProperty.call(message, "address")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.address); - return writer; - }; + /** + * Encodes the specified QueryFeeEnabledChannelsRequest message. Does not implicitly {@link ibc.applications.fee.v1.QueryFeeEnabledChannelsRequest.verify|verify} messages. + * @function encode + * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelsRequest + * @static + * @param {ibc.applications.fee.v1.IQueryFeeEnabledChannelsRequest} message QueryFeeEnabledChannelsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + QueryFeeEnabledChannelsRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.pagination != null && Object.hasOwnProperty.call(message, "pagination")) + $root.cosmos.base.query.v1beta1.PageRequest.encode(message.pagination, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.query_height != null && Object.hasOwnProperty.call(message, "query_height")) + writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.query_height); + return writer; + }; - /** - * Encodes the specified QueryInterchainAccountResponse message, length delimited. Does not implicitly {@link ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountResponse - * @static - * @param {ibc.applications.interchain_accounts.controller.v1.IQueryInterchainAccountResponse} message QueryInterchainAccountResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - QueryInterchainAccountResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified QueryFeeEnabledChannelsRequest message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.QueryFeeEnabledChannelsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelsRequest + * @static + * @param {ibc.applications.fee.v1.IQueryFeeEnabledChannelsRequest} message QueryFeeEnabledChannelsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + QueryFeeEnabledChannelsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a QueryInterchainAccountResponse message from the specified reader or buffer. - * @function decode - * @memberof ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountResponse} QueryInterchainAccountResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - QueryInterchainAccountResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.address = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } + /** + * Decodes a QueryFeeEnabledChannelsRequest message from the specified reader or buffer. + * @function decode + * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {ibc.applications.fee.v1.QueryFeeEnabledChannelsRequest} QueryFeeEnabledChannelsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + QueryFeeEnabledChannelsRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.QueryFeeEnabledChannelsRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.pagination = $root.cosmos.base.query.v1beta1.PageRequest.decode(reader, reader.uint32()); + break; + case 2: + message.query_height = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; } - return message; - }; - - /** - * Decodes a QueryInterchainAccountResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountResponse} QueryInterchainAccountResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - QueryInterchainAccountResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + } + return message; + }; - /** - * Verifies a QueryInterchainAccountResponse message. - * @function verify - * @memberof ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - QueryInterchainAccountResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.address != null && message.hasOwnProperty("address")) - if (!$util.isString(message.address)) - return "address: string expected"; - return null; - }; + /** + * Decodes a QueryFeeEnabledChannelsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {ibc.applications.fee.v1.QueryFeeEnabledChannelsRequest} QueryFeeEnabledChannelsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + QueryFeeEnabledChannelsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a QueryInterchainAccountResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountResponse - * @static - * @param {Object.} object Plain object - * @returns {ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountResponse} QueryInterchainAccountResponse - */ - QueryInterchainAccountResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountResponse) - return object; - var message = new $root.ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountResponse(); - if (object.address != null) - message.address = String(object.address); - return message; - }; + /** + * Verifies a QueryFeeEnabledChannelsRequest message. + * @function verify + * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + QueryFeeEnabledChannelsRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.pagination != null && message.hasOwnProperty("pagination")) { + var error = $root.cosmos.base.query.v1beta1.PageRequest.verify(message.pagination); + if (error) + return "pagination." + error; + } + if (message.query_height != null && message.hasOwnProperty("query_height")) + if (!$util.isInteger(message.query_height) && !(message.query_height && $util.isInteger(message.query_height.low) && $util.isInteger(message.query_height.high))) + return "query_height: integer|Long expected"; + return null; + }; - /** - * Creates a plain object from a QueryInterchainAccountResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountResponse - * @static - * @param {ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountResponse} message QueryInterchainAccountResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - QueryInterchainAccountResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.address = ""; - if (message.address != null && message.hasOwnProperty("address")) - object.address = message.address; + /** + * Creates a QueryFeeEnabledChannelsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelsRequest + * @static + * @param {Object.} object Plain object + * @returns {ibc.applications.fee.v1.QueryFeeEnabledChannelsRequest} QueryFeeEnabledChannelsRequest + */ + QueryFeeEnabledChannelsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.fee.v1.QueryFeeEnabledChannelsRequest) return object; - }; + var message = new $root.ibc.applications.fee.v1.QueryFeeEnabledChannelsRequest(); + if (object.pagination != null) { + if (typeof object.pagination !== "object") + throw TypeError(".ibc.applications.fee.v1.QueryFeeEnabledChannelsRequest.pagination: object expected"); + message.pagination = $root.cosmos.base.query.v1beta1.PageRequest.fromObject(object.pagination); + } + if (object.query_height != null) + if ($util.Long) + (message.query_height = $util.Long.fromValue(object.query_height)).unsigned = true; + else if (typeof object.query_height === "string") + message.query_height = parseInt(object.query_height, 10); + else if (typeof object.query_height === "number") + message.query_height = object.query_height; + else if (typeof object.query_height === "object") + message.query_height = new $util.LongBits(object.query_height.low >>> 0, object.query_height.high >>> 0).toNumber(true); + return message; + }; - /** - * Converts this QueryInterchainAccountResponse to JSON. - * @function toJSON - * @memberof ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountResponse - * @instance - * @returns {Object.} JSON object - */ - QueryInterchainAccountResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from a QueryFeeEnabledChannelsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelsRequest + * @static + * @param {ibc.applications.fee.v1.QueryFeeEnabledChannelsRequest} message QueryFeeEnabledChannelsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + QueryFeeEnabledChannelsRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.pagination = null; + if ($util.Long) { + var long = new $util.Long(0, 0, true); + object.query_height = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.query_height = options.longs === String ? "0" : 0; + } + if (message.pagination != null && message.hasOwnProperty("pagination")) + object.pagination = $root.cosmos.base.query.v1beta1.PageRequest.toObject(message.pagination, options); + if (message.query_height != null && message.hasOwnProperty("query_height")) + if (typeof message.query_height === "number") + object.query_height = options.longs === String ? String(message.query_height) : message.query_height; + else + object.query_height = options.longs === String ? $util.Long.prototype.toString.call(message.query_height) : options.longs === Number ? new $util.LongBits(message.query_height.low >>> 0, message.query_height.high >>> 0).toNumber(true) : message.query_height; + return object; + }; - return QueryInterchainAccountResponse; - })(); + /** + * Converts this QueryFeeEnabledChannelsRequest to JSON. + * @function toJSON + * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelsRequest + * @instance + * @returns {Object.} JSON object + */ + QueryFeeEnabledChannelsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - v1.QueryParamsRequest = (function() { + return QueryFeeEnabledChannelsRequest; + })(); - /** - * Properties of a QueryParamsRequest. - * @memberof ibc.applications.interchain_accounts.controller.v1 - * @interface IQueryParamsRequest - */ + v1.QueryFeeEnabledChannelsResponse = (function() { - /** - * Constructs a new QueryParamsRequest. - * @memberof ibc.applications.interchain_accounts.controller.v1 - * @classdesc Represents a QueryParamsRequest. - * @implements IQueryParamsRequest - * @constructor - * @param {ibc.applications.interchain_accounts.controller.v1.IQueryParamsRequest=} [properties] Properties to set - */ - function QueryParamsRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Properties of a QueryFeeEnabledChannelsResponse. + * @memberof ibc.applications.fee.v1 + * @interface IQueryFeeEnabledChannelsResponse + * @property {Array.|null} [fee_enabled_channels] QueryFeeEnabledChannelsResponse fee_enabled_channels + */ - /** - * Encodes the specified QueryParamsRequest message. Does not implicitly {@link ibc.applications.interchain_accounts.controller.v1.QueryParamsRequest.verify|verify} messages. - * @function encode - * @memberof ibc.applications.interchain_accounts.controller.v1.QueryParamsRequest - * @static - * @param {ibc.applications.interchain_accounts.controller.v1.IQueryParamsRequest} message QueryParamsRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - QueryParamsRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; + /** + * Constructs a new QueryFeeEnabledChannelsResponse. + * @memberof ibc.applications.fee.v1 + * @classdesc Represents a QueryFeeEnabledChannelsResponse. + * @implements IQueryFeeEnabledChannelsResponse + * @constructor + * @param {ibc.applications.fee.v1.IQueryFeeEnabledChannelsResponse=} [properties] Properties to set + */ + function QueryFeeEnabledChannelsResponse(properties) { + this.fee_enabled_channels = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Encodes the specified QueryParamsRequest message, length delimited. Does not implicitly {@link ibc.applications.interchain_accounts.controller.v1.QueryParamsRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof ibc.applications.interchain_accounts.controller.v1.QueryParamsRequest - * @static - * @param {ibc.applications.interchain_accounts.controller.v1.IQueryParamsRequest} message QueryParamsRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - QueryParamsRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * QueryFeeEnabledChannelsResponse fee_enabled_channels. + * @member {Array.} fee_enabled_channels + * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelsResponse + * @instance + */ + QueryFeeEnabledChannelsResponse.prototype.fee_enabled_channels = $util.emptyArray; - /** - * Decodes a QueryParamsRequest message from the specified reader or buffer. - * @function decode - * @memberof ibc.applications.interchain_accounts.controller.v1.QueryParamsRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.interchain_accounts.controller.v1.QueryParamsRequest} QueryParamsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - QueryParamsRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.interchain_accounts.controller.v1.QueryParamsRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } + /** + * Encodes the specified QueryFeeEnabledChannelsResponse message. Does not implicitly {@link ibc.applications.fee.v1.QueryFeeEnabledChannelsResponse.verify|verify} messages. + * @function encode + * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelsResponse + * @static + * @param {ibc.applications.fee.v1.IQueryFeeEnabledChannelsResponse} message QueryFeeEnabledChannelsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + QueryFeeEnabledChannelsResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.fee_enabled_channels != null && message.fee_enabled_channels.length) + for (var i = 0; i < message.fee_enabled_channels.length; ++i) + $root.ibc.applications.fee.v1.FeeEnabledChannel.encode(message.fee_enabled_channels[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified QueryFeeEnabledChannelsResponse message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.QueryFeeEnabledChannelsResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelsResponse + * @static + * @param {ibc.applications.fee.v1.IQueryFeeEnabledChannelsResponse} message QueryFeeEnabledChannelsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + QueryFeeEnabledChannelsResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a QueryFeeEnabledChannelsResponse message from the specified reader or buffer. + * @function decode + * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {ibc.applications.fee.v1.QueryFeeEnabledChannelsResponse} QueryFeeEnabledChannelsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + QueryFeeEnabledChannelsResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.QueryFeeEnabledChannelsResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.fee_enabled_channels && message.fee_enabled_channels.length)) + message.fee_enabled_channels = []; + message.fee_enabled_channels.push($root.ibc.applications.fee.v1.FeeEnabledChannel.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; } - return message; - }; - - /** - * Decodes a QueryParamsRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ibc.applications.interchain_accounts.controller.v1.QueryParamsRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.interchain_accounts.controller.v1.QueryParamsRequest} QueryParamsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - QueryParamsRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + } + return message; + }; - /** - * Verifies a QueryParamsRequest message. - * @function verify - * @memberof ibc.applications.interchain_accounts.controller.v1.QueryParamsRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - QueryParamsRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; + /** + * Decodes a QueryFeeEnabledChannelsResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {ibc.applications.fee.v1.QueryFeeEnabledChannelsResponse} QueryFeeEnabledChannelsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + QueryFeeEnabledChannelsResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a QueryParamsRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof ibc.applications.interchain_accounts.controller.v1.QueryParamsRequest - * @static - * @param {Object.} object Plain object - * @returns {ibc.applications.interchain_accounts.controller.v1.QueryParamsRequest} QueryParamsRequest - */ - QueryParamsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.interchain_accounts.controller.v1.QueryParamsRequest) - return object; - return new $root.ibc.applications.interchain_accounts.controller.v1.QueryParamsRequest(); - }; + /** + * Verifies a QueryFeeEnabledChannelsResponse message. + * @function verify + * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelsResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + QueryFeeEnabledChannelsResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.fee_enabled_channels != null && message.hasOwnProperty("fee_enabled_channels")) { + if (!Array.isArray(message.fee_enabled_channels)) + return "fee_enabled_channels: array expected"; + for (var i = 0; i < message.fee_enabled_channels.length; ++i) { + var error = $root.ibc.applications.fee.v1.FeeEnabledChannel.verify(message.fee_enabled_channels[i]); + if (error) + return "fee_enabled_channels." + error; + } + } + return null; + }; - /** - * Creates a plain object from a QueryParamsRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof ibc.applications.interchain_accounts.controller.v1.QueryParamsRequest - * @static - * @param {ibc.applications.interchain_accounts.controller.v1.QueryParamsRequest} message QueryParamsRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - QueryParamsRequest.toObject = function toObject() { - return {}; - }; + /** + * Creates a QueryFeeEnabledChannelsResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelsResponse + * @static + * @param {Object.} object Plain object + * @returns {ibc.applications.fee.v1.QueryFeeEnabledChannelsResponse} QueryFeeEnabledChannelsResponse + */ + QueryFeeEnabledChannelsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.fee.v1.QueryFeeEnabledChannelsResponse) + return object; + var message = new $root.ibc.applications.fee.v1.QueryFeeEnabledChannelsResponse(); + if (object.fee_enabled_channels) { + if (!Array.isArray(object.fee_enabled_channels)) + throw TypeError(".ibc.applications.fee.v1.QueryFeeEnabledChannelsResponse.fee_enabled_channels: array expected"); + message.fee_enabled_channels = []; + for (var i = 0; i < object.fee_enabled_channels.length; ++i) { + if (typeof object.fee_enabled_channels[i] !== "object") + throw TypeError(".ibc.applications.fee.v1.QueryFeeEnabledChannelsResponse.fee_enabled_channels: object expected"); + message.fee_enabled_channels[i] = $root.ibc.applications.fee.v1.FeeEnabledChannel.fromObject(object.fee_enabled_channels[i]); + } + } + return message; + }; - /** - * Converts this QueryParamsRequest to JSON. - * @function toJSON - * @memberof ibc.applications.interchain_accounts.controller.v1.QueryParamsRequest - * @instance - * @returns {Object.} JSON object - */ - QueryParamsRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from a QueryFeeEnabledChannelsResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelsResponse + * @static + * @param {ibc.applications.fee.v1.QueryFeeEnabledChannelsResponse} message QueryFeeEnabledChannelsResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + QueryFeeEnabledChannelsResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.fee_enabled_channels = []; + if (message.fee_enabled_channels && message.fee_enabled_channels.length) { + object.fee_enabled_channels = []; + for (var j = 0; j < message.fee_enabled_channels.length; ++j) + object.fee_enabled_channels[j] = $root.ibc.applications.fee.v1.FeeEnabledChannel.toObject(message.fee_enabled_channels[j], options); + } + return object; + }; - return QueryParamsRequest; - })(); + /** + * Converts this QueryFeeEnabledChannelsResponse to JSON. + * @function toJSON + * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelsResponse + * @instance + * @returns {Object.} JSON object + */ + QueryFeeEnabledChannelsResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - v1.QueryParamsResponse = (function() { + return QueryFeeEnabledChannelsResponse; + })(); - /** - * Properties of a QueryParamsResponse. - * @memberof ibc.applications.interchain_accounts.controller.v1 - * @interface IQueryParamsResponse - * @property {ibc.applications.interchain_accounts.controller.v1.IParams|null} [params] QueryParamsResponse params - */ + v1.QueryFeeEnabledChannelRequest = (function() { - /** - * Constructs a new QueryParamsResponse. - * @memberof ibc.applications.interchain_accounts.controller.v1 - * @classdesc Represents a QueryParamsResponse. - * @implements IQueryParamsResponse - * @constructor - * @param {ibc.applications.interchain_accounts.controller.v1.IQueryParamsResponse=} [properties] Properties to set - */ - function QueryParamsResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Properties of a QueryFeeEnabledChannelRequest. + * @memberof ibc.applications.fee.v1 + * @interface IQueryFeeEnabledChannelRequest + * @property {string|null} [port_id] QueryFeeEnabledChannelRequest port_id + * @property {string|null} [channel_id] QueryFeeEnabledChannelRequest channel_id + */ - /** - * QueryParamsResponse params. - * @member {ibc.applications.interchain_accounts.controller.v1.IParams|null|undefined} params - * @memberof ibc.applications.interchain_accounts.controller.v1.QueryParamsResponse - * @instance - */ - QueryParamsResponse.prototype.params = null; + /** + * Constructs a new QueryFeeEnabledChannelRequest. + * @memberof ibc.applications.fee.v1 + * @classdesc Represents a QueryFeeEnabledChannelRequest. + * @implements IQueryFeeEnabledChannelRequest + * @constructor + * @param {ibc.applications.fee.v1.IQueryFeeEnabledChannelRequest=} [properties] Properties to set + */ + function QueryFeeEnabledChannelRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Encodes the specified QueryParamsResponse message. Does not implicitly {@link ibc.applications.interchain_accounts.controller.v1.QueryParamsResponse.verify|verify} messages. - * @function encode - * @memberof ibc.applications.interchain_accounts.controller.v1.QueryParamsResponse - * @static - * @param {ibc.applications.interchain_accounts.controller.v1.IQueryParamsResponse} message QueryParamsResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - QueryParamsResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.params != null && Object.hasOwnProperty.call(message, "params")) - $root.ibc.applications.interchain_accounts.controller.v1.Params.encode(message.params, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; + /** + * QueryFeeEnabledChannelRequest port_id. + * @member {string} port_id + * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelRequest + * @instance + */ + QueryFeeEnabledChannelRequest.prototype.port_id = ""; - /** - * Encodes the specified QueryParamsResponse message, length delimited. Does not implicitly {@link ibc.applications.interchain_accounts.controller.v1.QueryParamsResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof ibc.applications.interchain_accounts.controller.v1.QueryParamsResponse - * @static - * @param {ibc.applications.interchain_accounts.controller.v1.IQueryParamsResponse} message QueryParamsResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - QueryParamsResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * QueryFeeEnabledChannelRequest channel_id. + * @member {string} channel_id + * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelRequest + * @instance + */ + QueryFeeEnabledChannelRequest.prototype.channel_id = ""; - /** - * Decodes a QueryParamsResponse message from the specified reader or buffer. - * @function decode - * @memberof ibc.applications.interchain_accounts.controller.v1.QueryParamsResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.interchain_accounts.controller.v1.QueryParamsResponse} QueryParamsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - QueryParamsResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.interchain_accounts.controller.v1.QueryParamsResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.params = $root.ibc.applications.interchain_accounts.controller.v1.Params.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Encodes the specified QueryFeeEnabledChannelRequest message. Does not implicitly {@link ibc.applications.fee.v1.QueryFeeEnabledChannelRequest.verify|verify} messages. + * @function encode + * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelRequest + * @static + * @param {ibc.applications.fee.v1.IQueryFeeEnabledChannelRequest} message QueryFeeEnabledChannelRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + QueryFeeEnabledChannelRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.port_id != null && Object.hasOwnProperty.call(message, "port_id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.port_id); + if (message.channel_id != null && Object.hasOwnProperty.call(message, "channel_id")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.channel_id); + return writer; + }; - /** - * Decodes a QueryParamsResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ibc.applications.interchain_accounts.controller.v1.QueryParamsResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.interchain_accounts.controller.v1.QueryParamsResponse} QueryParamsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - QueryParamsResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Encodes the specified QueryFeeEnabledChannelRequest message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.QueryFeeEnabledChannelRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelRequest + * @static + * @param {ibc.applications.fee.v1.IQueryFeeEnabledChannelRequest} message QueryFeeEnabledChannelRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + QueryFeeEnabledChannelRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Verifies a QueryParamsResponse message. - * @function verify - * @memberof ibc.applications.interchain_accounts.controller.v1.QueryParamsResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - QueryParamsResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.params != null && message.hasOwnProperty("params")) { - var error = $root.ibc.applications.interchain_accounts.controller.v1.Params.verify(message.params); - if (error) - return "params." + error; + /** + * Decodes a QueryFeeEnabledChannelRequest message from the specified reader or buffer. + * @function decode + * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {ibc.applications.fee.v1.QueryFeeEnabledChannelRequest} QueryFeeEnabledChannelRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + QueryFeeEnabledChannelRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.QueryFeeEnabledChannelRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.port_id = reader.string(); + break; + case 2: + message.channel_id = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; } - return null; - }; + } + return message; + }; - /** - * Creates a QueryParamsResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof ibc.applications.interchain_accounts.controller.v1.QueryParamsResponse - * @static - * @param {Object.} object Plain object - * @returns {ibc.applications.interchain_accounts.controller.v1.QueryParamsResponse} QueryParamsResponse - */ - QueryParamsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.interchain_accounts.controller.v1.QueryParamsResponse) - return object; - var message = new $root.ibc.applications.interchain_accounts.controller.v1.QueryParamsResponse(); - if (object.params != null) { - if (typeof object.params !== "object") - throw TypeError(".ibc.applications.interchain_accounts.controller.v1.QueryParamsResponse.params: object expected"); - message.params = $root.ibc.applications.interchain_accounts.controller.v1.Params.fromObject(object.params); - } - return message; - }; + /** + * Decodes a QueryFeeEnabledChannelRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {ibc.applications.fee.v1.QueryFeeEnabledChannelRequest} QueryFeeEnabledChannelRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + QueryFeeEnabledChannelRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a plain object from a QueryParamsResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof ibc.applications.interchain_accounts.controller.v1.QueryParamsResponse - * @static - * @param {ibc.applications.interchain_accounts.controller.v1.QueryParamsResponse} message QueryParamsResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - QueryParamsResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.params = null; - if (message.params != null && message.hasOwnProperty("params")) - object.params = $root.ibc.applications.interchain_accounts.controller.v1.Params.toObject(message.params, options); + /** + * Verifies a QueryFeeEnabledChannelRequest message. + * @function verify + * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + QueryFeeEnabledChannelRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.port_id != null && message.hasOwnProperty("port_id")) + if (!$util.isString(message.port_id)) + return "port_id: string expected"; + if (message.channel_id != null && message.hasOwnProperty("channel_id")) + if (!$util.isString(message.channel_id)) + return "channel_id: string expected"; + return null; + }; + + /** + * Creates a QueryFeeEnabledChannelRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelRequest + * @static + * @param {Object.} object Plain object + * @returns {ibc.applications.fee.v1.QueryFeeEnabledChannelRequest} QueryFeeEnabledChannelRequest + */ + QueryFeeEnabledChannelRequest.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.fee.v1.QueryFeeEnabledChannelRequest) return object; - }; + var message = new $root.ibc.applications.fee.v1.QueryFeeEnabledChannelRequest(); + if (object.port_id != null) + message.port_id = String(object.port_id); + if (object.channel_id != null) + message.channel_id = String(object.channel_id); + return message; + }; - /** - * Converts this QueryParamsResponse to JSON. - * @function toJSON - * @memberof ibc.applications.interchain_accounts.controller.v1.QueryParamsResponse - * @instance - * @returns {Object.} JSON object - */ - QueryParamsResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from a QueryFeeEnabledChannelRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelRequest + * @static + * @param {ibc.applications.fee.v1.QueryFeeEnabledChannelRequest} message QueryFeeEnabledChannelRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + QueryFeeEnabledChannelRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.port_id = ""; + object.channel_id = ""; + } + if (message.port_id != null && message.hasOwnProperty("port_id")) + object.port_id = message.port_id; + if (message.channel_id != null && message.hasOwnProperty("channel_id")) + object.channel_id = message.channel_id; + return object; + }; - return QueryParamsResponse; - })(); + /** + * Converts this QueryFeeEnabledChannelRequest to JSON. + * @function toJSON + * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelRequest + * @instance + * @returns {Object.} JSON object + */ + QueryFeeEnabledChannelRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - v1.Params = (function() { + return QueryFeeEnabledChannelRequest; + })(); - /** - * Properties of a Params. - * @memberof ibc.applications.interchain_accounts.controller.v1 - * @interface IParams - * @property {boolean|null} [controller_enabled] Params controller_enabled - */ + v1.QueryFeeEnabledChannelResponse = (function() { - /** - * Constructs a new Params. - * @memberof ibc.applications.interchain_accounts.controller.v1 - * @classdesc Represents a Params. - * @implements IParams - * @constructor - * @param {ibc.applications.interchain_accounts.controller.v1.IParams=} [properties] Properties to set - */ - function Params(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Properties of a QueryFeeEnabledChannelResponse. + * @memberof ibc.applications.fee.v1 + * @interface IQueryFeeEnabledChannelResponse + * @property {boolean|null} [fee_enabled] QueryFeeEnabledChannelResponse fee_enabled + */ - /** - * Params controller_enabled. - * @member {boolean} controller_enabled - * @memberof ibc.applications.interchain_accounts.controller.v1.Params - * @instance - */ - Params.prototype.controller_enabled = false; + /** + * Constructs a new QueryFeeEnabledChannelResponse. + * @memberof ibc.applications.fee.v1 + * @classdesc Represents a QueryFeeEnabledChannelResponse. + * @implements IQueryFeeEnabledChannelResponse + * @constructor + * @param {ibc.applications.fee.v1.IQueryFeeEnabledChannelResponse=} [properties] Properties to set + */ + function QueryFeeEnabledChannelResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Encodes the specified Params message. Does not implicitly {@link ibc.applications.interchain_accounts.controller.v1.Params.verify|verify} messages. - * @function encode - * @memberof ibc.applications.interchain_accounts.controller.v1.Params - * @static - * @param {ibc.applications.interchain_accounts.controller.v1.IParams} message Params message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Params.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.controller_enabled != null && Object.hasOwnProperty.call(message, "controller_enabled")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.controller_enabled); - return writer; - }; + /** + * QueryFeeEnabledChannelResponse fee_enabled. + * @member {boolean} fee_enabled + * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelResponse + * @instance + */ + QueryFeeEnabledChannelResponse.prototype.fee_enabled = false; - /** - * Encodes the specified Params message, length delimited. Does not implicitly {@link ibc.applications.interchain_accounts.controller.v1.Params.verify|verify} messages. - * @function encodeDelimited - * @memberof ibc.applications.interchain_accounts.controller.v1.Params - * @static - * @param {ibc.applications.interchain_accounts.controller.v1.IParams} message Params message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Params.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified QueryFeeEnabledChannelResponse message. Does not implicitly {@link ibc.applications.fee.v1.QueryFeeEnabledChannelResponse.verify|verify} messages. + * @function encode + * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelResponse + * @static + * @param {ibc.applications.fee.v1.IQueryFeeEnabledChannelResponse} message QueryFeeEnabledChannelResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + QueryFeeEnabledChannelResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.fee_enabled != null && Object.hasOwnProperty.call(message, "fee_enabled")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.fee_enabled); + return writer; + }; - /** - * Decodes a Params message from the specified reader or buffer. - * @function decode - * @memberof ibc.applications.interchain_accounts.controller.v1.Params - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.interchain_accounts.controller.v1.Params} Params - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Params.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.interchain_accounts.controller.v1.Params(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.controller_enabled = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Encodes the specified QueryFeeEnabledChannelResponse message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.QueryFeeEnabledChannelResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelResponse + * @static + * @param {ibc.applications.fee.v1.IQueryFeeEnabledChannelResponse} message QueryFeeEnabledChannelResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + QueryFeeEnabledChannelResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a Params message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ibc.applications.interchain_accounts.controller.v1.Params - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.interchain_accounts.controller.v1.Params} Params - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Params.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a QueryFeeEnabledChannelResponse message from the specified reader or buffer. + * @function decode + * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {ibc.applications.fee.v1.QueryFeeEnabledChannelResponse} QueryFeeEnabledChannelResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + QueryFeeEnabledChannelResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.QueryFeeEnabledChannelResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.fee_enabled = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Verifies a Params message. - * @function verify - * @memberof ibc.applications.interchain_accounts.controller.v1.Params - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Params.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.controller_enabled != null && message.hasOwnProperty("controller_enabled")) - if (typeof message.controller_enabled !== "boolean") - return "controller_enabled: boolean expected"; - return null; - }; + /** + * Decodes a QueryFeeEnabledChannelResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {ibc.applications.fee.v1.QueryFeeEnabledChannelResponse} QueryFeeEnabledChannelResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + QueryFeeEnabledChannelResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a Params message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof ibc.applications.interchain_accounts.controller.v1.Params - * @static - * @param {Object.} object Plain object - * @returns {ibc.applications.interchain_accounts.controller.v1.Params} Params - */ - Params.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.interchain_accounts.controller.v1.Params) - return object; - var message = new $root.ibc.applications.interchain_accounts.controller.v1.Params(); - if (object.controller_enabled != null) - message.controller_enabled = Boolean(object.controller_enabled); - return message; - }; + /** + * Verifies a QueryFeeEnabledChannelResponse message. + * @function verify + * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + QueryFeeEnabledChannelResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.fee_enabled != null && message.hasOwnProperty("fee_enabled")) + if (typeof message.fee_enabled !== "boolean") + return "fee_enabled: boolean expected"; + return null; + }; - /** - * Creates a plain object from a Params message. Also converts values to other types if specified. - * @function toObject - * @memberof ibc.applications.interchain_accounts.controller.v1.Params - * @static - * @param {ibc.applications.interchain_accounts.controller.v1.Params} message Params - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Params.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.controller_enabled = false; - if (message.controller_enabled != null && message.hasOwnProperty("controller_enabled")) - object.controller_enabled = message.controller_enabled; + /** + * Creates a QueryFeeEnabledChannelResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelResponse + * @static + * @param {Object.} object Plain object + * @returns {ibc.applications.fee.v1.QueryFeeEnabledChannelResponse} QueryFeeEnabledChannelResponse + */ + QueryFeeEnabledChannelResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.fee.v1.QueryFeeEnabledChannelResponse) return object; - }; + var message = new $root.ibc.applications.fee.v1.QueryFeeEnabledChannelResponse(); + if (object.fee_enabled != null) + message.fee_enabled = Boolean(object.fee_enabled); + return message; + }; - /** - * Converts this Params to JSON. - * @function toJSON - * @memberof ibc.applications.interchain_accounts.controller.v1.Params - * @instance - * @returns {Object.} JSON object - */ - Params.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from a QueryFeeEnabledChannelResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelResponse + * @static + * @param {ibc.applications.fee.v1.QueryFeeEnabledChannelResponse} message QueryFeeEnabledChannelResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + QueryFeeEnabledChannelResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.fee_enabled = false; + if (message.fee_enabled != null && message.hasOwnProperty("fee_enabled")) + object.fee_enabled = message.fee_enabled; + return object; + }; - return Params; - })(); + /** + * Converts this QueryFeeEnabledChannelResponse to JSON. + * @function toJSON + * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelResponse + * @instance + * @returns {Object.} JSON object + */ + QueryFeeEnabledChannelResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return v1; + return QueryFeeEnabledChannelResponse; })(); - return controller; - })(); + v1.GenesisState = (function() { - interchain_accounts.host = (function() { + /** + * Properties of a GenesisState. + * @memberof ibc.applications.fee.v1 + * @interface IGenesisState + * @property {Array.|null} [identified_fees] GenesisState identified_fees + * @property {Array.|null} [fee_enabled_channels] GenesisState fee_enabled_channels + * @property {Array.|null} [registered_payees] GenesisState registered_payees + * @property {Array.|null} [registered_counterparty_payees] GenesisState registered_counterparty_payees + * @property {Array.|null} [forward_relayers] GenesisState forward_relayers + */ - /** - * Namespace host. - * @memberof ibc.applications.interchain_accounts - * @namespace - */ - var host = {}; + /** + * Constructs a new GenesisState. + * @memberof ibc.applications.fee.v1 + * @classdesc Represents a GenesisState. + * @implements IGenesisState + * @constructor + * @param {ibc.applications.fee.v1.IGenesisState=} [properties] Properties to set + */ + function GenesisState(properties) { + this.identified_fees = []; + this.fee_enabled_channels = []; + this.registered_payees = []; + this.registered_counterparty_payees = []; + this.forward_relayers = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - host.v1 = (function() { + /** + * GenesisState identified_fees. + * @member {Array.} identified_fees + * @memberof ibc.applications.fee.v1.GenesisState + * @instance + */ + GenesisState.prototype.identified_fees = $util.emptyArray; + + /** + * GenesisState fee_enabled_channels. + * @member {Array.} fee_enabled_channels + * @memberof ibc.applications.fee.v1.GenesisState + * @instance + */ + GenesisState.prototype.fee_enabled_channels = $util.emptyArray; + + /** + * GenesisState registered_payees. + * @member {Array.} registered_payees + * @memberof ibc.applications.fee.v1.GenesisState + * @instance + */ + GenesisState.prototype.registered_payees = $util.emptyArray; + + /** + * GenesisState registered_counterparty_payees. + * @member {Array.} registered_counterparty_payees + * @memberof ibc.applications.fee.v1.GenesisState + * @instance + */ + GenesisState.prototype.registered_counterparty_payees = $util.emptyArray; + + /** + * GenesisState forward_relayers. + * @member {Array.} forward_relayers + * @memberof ibc.applications.fee.v1.GenesisState + * @instance + */ + GenesisState.prototype.forward_relayers = $util.emptyArray; + + /** + * Encodes the specified GenesisState message. Does not implicitly {@link ibc.applications.fee.v1.GenesisState.verify|verify} messages. + * @function encode + * @memberof ibc.applications.fee.v1.GenesisState + * @static + * @param {ibc.applications.fee.v1.IGenesisState} message GenesisState message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GenesisState.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.identified_fees != null && message.identified_fees.length) + for (var i = 0; i < message.identified_fees.length; ++i) + $root.ibc.applications.fee.v1.IdentifiedPacketFees.encode(message.identified_fees[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.fee_enabled_channels != null && message.fee_enabled_channels.length) + for (var i = 0; i < message.fee_enabled_channels.length; ++i) + $root.ibc.applications.fee.v1.FeeEnabledChannel.encode(message.fee_enabled_channels[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.registered_payees != null && message.registered_payees.length) + for (var i = 0; i < message.registered_payees.length; ++i) + $root.ibc.applications.fee.v1.RegisteredPayee.encode(message.registered_payees[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.registered_counterparty_payees != null && message.registered_counterparty_payees.length) + for (var i = 0; i < message.registered_counterparty_payees.length; ++i) + $root.ibc.applications.fee.v1.RegisteredCounterpartyPayee.encode(message.registered_counterparty_payees[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.forward_relayers != null && message.forward_relayers.length) + for (var i = 0; i < message.forward_relayers.length; ++i) + $root.ibc.applications.fee.v1.ForwardRelayerAddress.encode(message.forward_relayers[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified GenesisState message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.GenesisState.verify|verify} messages. + * @function encodeDelimited + * @memberof ibc.applications.fee.v1.GenesisState + * @static + * @param {ibc.applications.fee.v1.IGenesisState} message GenesisState message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GenesisState.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GenesisState message from the specified reader or buffer. + * @function decode + * @memberof ibc.applications.fee.v1.GenesisState + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {ibc.applications.fee.v1.GenesisState} GenesisState + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GenesisState.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.GenesisState(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.identified_fees && message.identified_fees.length)) + message.identified_fees = []; + message.identified_fees.push($root.ibc.applications.fee.v1.IdentifiedPacketFees.decode(reader, reader.uint32())); + break; + case 2: + if (!(message.fee_enabled_channels && message.fee_enabled_channels.length)) + message.fee_enabled_channels = []; + message.fee_enabled_channels.push($root.ibc.applications.fee.v1.FeeEnabledChannel.decode(reader, reader.uint32())); + break; + case 3: + if (!(message.registered_payees && message.registered_payees.length)) + message.registered_payees = []; + message.registered_payees.push($root.ibc.applications.fee.v1.RegisteredPayee.decode(reader, reader.uint32())); + break; + case 4: + if (!(message.registered_counterparty_payees && message.registered_counterparty_payees.length)) + message.registered_counterparty_payees = []; + message.registered_counterparty_payees.push($root.ibc.applications.fee.v1.RegisteredCounterpartyPayee.decode(reader, reader.uint32())); + break; + case 5: + if (!(message.forward_relayers && message.forward_relayers.length)) + message.forward_relayers = []; + message.forward_relayers.push($root.ibc.applications.fee.v1.ForwardRelayerAddress.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Namespace v1. - * @memberof ibc.applications.interchain_accounts.host - * @namespace + * Decodes a GenesisState message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof ibc.applications.fee.v1.GenesisState + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {ibc.applications.fee.v1.GenesisState} GenesisState + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - var v1 = {}; - - v1.Params = (function() { - - /** - * Properties of a Params. - * @memberof ibc.applications.interchain_accounts.host.v1 - * @interface IParams - * @property {boolean|null} [host_enabled] Params host_enabled - * @property {Array.|null} [allow_messages] Params allow_messages - */ + GenesisState.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Constructs a new Params. - * @memberof ibc.applications.interchain_accounts.host.v1 - * @classdesc Represents a Params. - * @implements IParams - * @constructor - * @param {ibc.applications.interchain_accounts.host.v1.IParams=} [properties] Properties to set - */ - function Params(properties) { - this.allow_messages = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + /** + * Verifies a GenesisState message. + * @function verify + * @memberof ibc.applications.fee.v1.GenesisState + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GenesisState.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.identified_fees != null && message.hasOwnProperty("identified_fees")) { + if (!Array.isArray(message.identified_fees)) + return "identified_fees: array expected"; + for (var i = 0; i < message.identified_fees.length; ++i) { + var error = $root.ibc.applications.fee.v1.IdentifiedPacketFees.verify(message.identified_fees[i]); + if (error) + return "identified_fees." + error; + } } - - /** - * Params host_enabled. - * @member {boolean} host_enabled - * @memberof ibc.applications.interchain_accounts.host.v1.Params - * @instance - */ - Params.prototype.host_enabled = false; - - /** - * Params allow_messages. - * @member {Array.} allow_messages - * @memberof ibc.applications.interchain_accounts.host.v1.Params - * @instance - */ - Params.prototype.allow_messages = $util.emptyArray; - - /** - * Encodes the specified Params message. Does not implicitly {@link ibc.applications.interchain_accounts.host.v1.Params.verify|verify} messages. - * @function encode - * @memberof ibc.applications.interchain_accounts.host.v1.Params - * @static - * @param {ibc.applications.interchain_accounts.host.v1.IParams} message Params message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Params.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.host_enabled != null && Object.hasOwnProperty.call(message, "host_enabled")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.host_enabled); - if (message.allow_messages != null && message.allow_messages.length) - for (var i = 0; i < message.allow_messages.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.allow_messages[i]); - return writer; - }; - - /** - * Encodes the specified Params message, length delimited. Does not implicitly {@link ibc.applications.interchain_accounts.host.v1.Params.verify|verify} messages. - * @function encodeDelimited - * @memberof ibc.applications.interchain_accounts.host.v1.Params - * @static - * @param {ibc.applications.interchain_accounts.host.v1.IParams} message Params message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Params.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a Params message from the specified reader or buffer. - * @function decode - * @memberof ibc.applications.interchain_accounts.host.v1.Params - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.interchain_accounts.host.v1.Params} Params - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Params.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.interchain_accounts.host.v1.Params(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.host_enabled = reader.bool(); - break; - case 2: - if (!(message.allow_messages && message.allow_messages.length)) - message.allow_messages = []; - message.allow_messages.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } + if (message.fee_enabled_channels != null && message.hasOwnProperty("fee_enabled_channels")) { + if (!Array.isArray(message.fee_enabled_channels)) + return "fee_enabled_channels: array expected"; + for (var i = 0; i < message.fee_enabled_channels.length; ++i) { + var error = $root.ibc.applications.fee.v1.FeeEnabledChannel.verify(message.fee_enabled_channels[i]); + if (error) + return "fee_enabled_channels." + error; } - return message; - }; - - /** - * Decodes a Params message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ibc.applications.interchain_accounts.host.v1.Params - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.interchain_accounts.host.v1.Params} Params - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Params.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a Params message. - * @function verify - * @memberof ibc.applications.interchain_accounts.host.v1.Params - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Params.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.host_enabled != null && message.hasOwnProperty("host_enabled")) - if (typeof message.host_enabled !== "boolean") - return "host_enabled: boolean expected"; - if (message.allow_messages != null && message.hasOwnProperty("allow_messages")) { - if (!Array.isArray(message.allow_messages)) - return "allow_messages: array expected"; - for (var i = 0; i < message.allow_messages.length; ++i) - if (!$util.isString(message.allow_messages[i])) - return "allow_messages: string[] expected"; + } + if (message.registered_payees != null && message.hasOwnProperty("registered_payees")) { + if (!Array.isArray(message.registered_payees)) + return "registered_payees: array expected"; + for (var i = 0; i < message.registered_payees.length; ++i) { + var error = $root.ibc.applications.fee.v1.RegisteredPayee.verify(message.registered_payees[i]); + if (error) + return "registered_payees." + error; } - return null; - }; - - /** - * Creates a Params message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof ibc.applications.interchain_accounts.host.v1.Params - * @static - * @param {Object.} object Plain object - * @returns {ibc.applications.interchain_accounts.host.v1.Params} Params - */ - Params.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.interchain_accounts.host.v1.Params) - return object; - var message = new $root.ibc.applications.interchain_accounts.host.v1.Params(); - if (object.host_enabled != null) - message.host_enabled = Boolean(object.host_enabled); - if (object.allow_messages) { - if (!Array.isArray(object.allow_messages)) - throw TypeError(".ibc.applications.interchain_accounts.host.v1.Params.allow_messages: array expected"); - message.allow_messages = []; - for (var i = 0; i < object.allow_messages.length; ++i) - message.allow_messages[i] = String(object.allow_messages[i]); + } + if (message.registered_counterparty_payees != null && message.hasOwnProperty("registered_counterparty_payees")) { + if (!Array.isArray(message.registered_counterparty_payees)) + return "registered_counterparty_payees: array expected"; + for (var i = 0; i < message.registered_counterparty_payees.length; ++i) { + var error = $root.ibc.applications.fee.v1.RegisteredCounterpartyPayee.verify(message.registered_counterparty_payees[i]); + if (error) + return "registered_counterparty_payees." + error; } - return message; - }; - - /** - * Creates a plain object from a Params message. Also converts values to other types if specified. - * @function toObject - * @memberof ibc.applications.interchain_accounts.host.v1.Params - * @static - * @param {ibc.applications.interchain_accounts.host.v1.Params} message Params - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Params.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.allow_messages = []; - if (options.defaults) - object.host_enabled = false; - if (message.host_enabled != null && message.hasOwnProperty("host_enabled")) - object.host_enabled = message.host_enabled; - if (message.allow_messages && message.allow_messages.length) { - object.allow_messages = []; - for (var j = 0; j < message.allow_messages.length; ++j) - object.allow_messages[j] = message.allow_messages[j]; + } + if (message.forward_relayers != null && message.hasOwnProperty("forward_relayers")) { + if (!Array.isArray(message.forward_relayers)) + return "forward_relayers: array expected"; + for (var i = 0; i < message.forward_relayers.length; ++i) { + var error = $root.ibc.applications.fee.v1.ForwardRelayerAddress.verify(message.forward_relayers[i]); + if (error) + return "forward_relayers." + error; } - return object; - }; - - /** - * Converts this Params to JSON. - * @function toJSON - * @memberof ibc.applications.interchain_accounts.host.v1.Params - * @instance - * @returns {Object.} JSON object - */ - Params.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return Params; - })(); - - v1.Query = (function() { - - /** - * Constructs a new Query service. - * @memberof ibc.applications.interchain_accounts.host.v1 - * @classdesc Represents a Query - * @extends $protobuf.rpc.Service - * @constructor - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - */ - function Query(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); } + return null; + }; - (Query.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Query; - - /** - * Callback as used by {@link ibc.applications.interchain_accounts.host.v1.Query#params}. - * @memberof ibc.applications.interchain_accounts.host.v1.Query - * @typedef ParamsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.applications.interchain_accounts.host.v1.QueryParamsResponse} [response] QueryParamsResponse - */ + /** + * Creates a GenesisState message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof ibc.applications.fee.v1.GenesisState + * @static + * @param {Object.} object Plain object + * @returns {ibc.applications.fee.v1.GenesisState} GenesisState + */ + GenesisState.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.fee.v1.GenesisState) + return object; + var message = new $root.ibc.applications.fee.v1.GenesisState(); + if (object.identified_fees) { + if (!Array.isArray(object.identified_fees)) + throw TypeError(".ibc.applications.fee.v1.GenesisState.identified_fees: array expected"); + message.identified_fees = []; + for (var i = 0; i < object.identified_fees.length; ++i) { + if (typeof object.identified_fees[i] !== "object") + throw TypeError(".ibc.applications.fee.v1.GenesisState.identified_fees: object expected"); + message.identified_fees[i] = $root.ibc.applications.fee.v1.IdentifiedPacketFees.fromObject(object.identified_fees[i]); + } + } + if (object.fee_enabled_channels) { + if (!Array.isArray(object.fee_enabled_channels)) + throw TypeError(".ibc.applications.fee.v1.GenesisState.fee_enabled_channels: array expected"); + message.fee_enabled_channels = []; + for (var i = 0; i < object.fee_enabled_channels.length; ++i) { + if (typeof object.fee_enabled_channels[i] !== "object") + throw TypeError(".ibc.applications.fee.v1.GenesisState.fee_enabled_channels: object expected"); + message.fee_enabled_channels[i] = $root.ibc.applications.fee.v1.FeeEnabledChannel.fromObject(object.fee_enabled_channels[i]); + } + } + if (object.registered_payees) { + if (!Array.isArray(object.registered_payees)) + throw TypeError(".ibc.applications.fee.v1.GenesisState.registered_payees: array expected"); + message.registered_payees = []; + for (var i = 0; i < object.registered_payees.length; ++i) { + if (typeof object.registered_payees[i] !== "object") + throw TypeError(".ibc.applications.fee.v1.GenesisState.registered_payees: object expected"); + message.registered_payees[i] = $root.ibc.applications.fee.v1.RegisteredPayee.fromObject(object.registered_payees[i]); + } + } + if (object.registered_counterparty_payees) { + if (!Array.isArray(object.registered_counterparty_payees)) + throw TypeError(".ibc.applications.fee.v1.GenesisState.registered_counterparty_payees: array expected"); + message.registered_counterparty_payees = []; + for (var i = 0; i < object.registered_counterparty_payees.length; ++i) { + if (typeof object.registered_counterparty_payees[i] !== "object") + throw TypeError(".ibc.applications.fee.v1.GenesisState.registered_counterparty_payees: object expected"); + message.registered_counterparty_payees[i] = $root.ibc.applications.fee.v1.RegisteredCounterpartyPayee.fromObject(object.registered_counterparty_payees[i]); + } + } + if (object.forward_relayers) { + if (!Array.isArray(object.forward_relayers)) + throw TypeError(".ibc.applications.fee.v1.GenesisState.forward_relayers: array expected"); + message.forward_relayers = []; + for (var i = 0; i < object.forward_relayers.length; ++i) { + if (typeof object.forward_relayers[i] !== "object") + throw TypeError(".ibc.applications.fee.v1.GenesisState.forward_relayers: object expected"); + message.forward_relayers[i] = $root.ibc.applications.fee.v1.ForwardRelayerAddress.fromObject(object.forward_relayers[i]); + } + } + return message; + }; - /** - * Calls Params. - * @function params - * @memberof ibc.applications.interchain_accounts.host.v1.Query - * @instance - * @param {ibc.applications.interchain_accounts.host.v1.IQueryParamsRequest} request QueryParamsRequest message or plain object - * @param {ibc.applications.interchain_accounts.host.v1.Query.ParamsCallback} callback Node-style callback called with the error, if any, and QueryParamsResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Query.prototype.params = function params(request, callback) { - return this.rpcCall(params, $root.ibc.applications.interchain_accounts.host.v1.QueryParamsRequest, $root.ibc.applications.interchain_accounts.host.v1.QueryParamsResponse, request, callback); - }, "name", { value: "Params" }); + /** + * Creates a plain object from a GenesisState message. Also converts values to other types if specified. + * @function toObject + * @memberof ibc.applications.fee.v1.GenesisState + * @static + * @param {ibc.applications.fee.v1.GenesisState} message GenesisState + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GenesisState.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.identified_fees = []; + object.fee_enabled_channels = []; + object.registered_payees = []; + object.registered_counterparty_payees = []; + object.forward_relayers = []; + } + if (message.identified_fees && message.identified_fees.length) { + object.identified_fees = []; + for (var j = 0; j < message.identified_fees.length; ++j) + object.identified_fees[j] = $root.ibc.applications.fee.v1.IdentifiedPacketFees.toObject(message.identified_fees[j], options); + } + if (message.fee_enabled_channels && message.fee_enabled_channels.length) { + object.fee_enabled_channels = []; + for (var j = 0; j < message.fee_enabled_channels.length; ++j) + object.fee_enabled_channels[j] = $root.ibc.applications.fee.v1.FeeEnabledChannel.toObject(message.fee_enabled_channels[j], options); + } + if (message.registered_payees && message.registered_payees.length) { + object.registered_payees = []; + for (var j = 0; j < message.registered_payees.length; ++j) + object.registered_payees[j] = $root.ibc.applications.fee.v1.RegisteredPayee.toObject(message.registered_payees[j], options); + } + if (message.registered_counterparty_payees && message.registered_counterparty_payees.length) { + object.registered_counterparty_payees = []; + for (var j = 0; j < message.registered_counterparty_payees.length; ++j) + object.registered_counterparty_payees[j] = $root.ibc.applications.fee.v1.RegisteredCounterpartyPayee.toObject(message.registered_counterparty_payees[j], options); + } + if (message.forward_relayers && message.forward_relayers.length) { + object.forward_relayers = []; + for (var j = 0; j < message.forward_relayers.length; ++j) + object.forward_relayers[j] = $root.ibc.applications.fee.v1.ForwardRelayerAddress.toObject(message.forward_relayers[j], options); + } + return object; + }; - /** - * Calls Params. - * @function params - * @memberof ibc.applications.interchain_accounts.host.v1.Query - * @instance - * @param {ibc.applications.interchain_accounts.host.v1.IQueryParamsRequest} request QueryParamsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * Converts this GenesisState to JSON. + * @function toJSON + * @memberof ibc.applications.fee.v1.GenesisState + * @instance + * @returns {Object.} JSON object + */ + GenesisState.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return Query; - })(); + return GenesisState; + })(); - v1.QueryParamsRequest = (function() { + v1.FeeEnabledChannel = (function() { - /** - * Properties of a QueryParamsRequest. - * @memberof ibc.applications.interchain_accounts.host.v1 - * @interface IQueryParamsRequest - */ + /** + * Properties of a FeeEnabledChannel. + * @memberof ibc.applications.fee.v1 + * @interface IFeeEnabledChannel + * @property {string|null} [port_id] FeeEnabledChannel port_id + * @property {string|null} [channel_id] FeeEnabledChannel channel_id + */ - /** - * Constructs a new QueryParamsRequest. - * @memberof ibc.applications.interchain_accounts.host.v1 - * @classdesc Represents a QueryParamsRequest. - * @implements IQueryParamsRequest - * @constructor - * @param {ibc.applications.interchain_accounts.host.v1.IQueryParamsRequest=} [properties] Properties to set - */ - function QueryParamsRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Constructs a new FeeEnabledChannel. + * @memberof ibc.applications.fee.v1 + * @classdesc Represents a FeeEnabledChannel. + * @implements IFeeEnabledChannel + * @constructor + * @param {ibc.applications.fee.v1.IFeeEnabledChannel=} [properties] Properties to set + */ + function FeeEnabledChannel(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Encodes the specified QueryParamsRequest message. Does not implicitly {@link ibc.applications.interchain_accounts.host.v1.QueryParamsRequest.verify|verify} messages. - * @function encode - * @memberof ibc.applications.interchain_accounts.host.v1.QueryParamsRequest - * @static - * @param {ibc.applications.interchain_accounts.host.v1.IQueryParamsRequest} message QueryParamsRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - QueryParamsRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; + /** + * FeeEnabledChannel port_id. + * @member {string} port_id + * @memberof ibc.applications.fee.v1.FeeEnabledChannel + * @instance + */ + FeeEnabledChannel.prototype.port_id = ""; - /** - * Encodes the specified QueryParamsRequest message, length delimited. Does not implicitly {@link ibc.applications.interchain_accounts.host.v1.QueryParamsRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof ibc.applications.interchain_accounts.host.v1.QueryParamsRequest - * @static - * @param {ibc.applications.interchain_accounts.host.v1.IQueryParamsRequest} message QueryParamsRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - QueryParamsRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * FeeEnabledChannel channel_id. + * @member {string} channel_id + * @memberof ibc.applications.fee.v1.FeeEnabledChannel + * @instance + */ + FeeEnabledChannel.prototype.channel_id = ""; - /** - * Decodes a QueryParamsRequest message from the specified reader or buffer. - * @function decode - * @memberof ibc.applications.interchain_accounts.host.v1.QueryParamsRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.interchain_accounts.host.v1.QueryParamsRequest} QueryParamsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - QueryParamsRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.interchain_accounts.host.v1.QueryParamsRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Encodes the specified FeeEnabledChannel message. Does not implicitly {@link ibc.applications.fee.v1.FeeEnabledChannel.verify|verify} messages. + * @function encode + * @memberof ibc.applications.fee.v1.FeeEnabledChannel + * @static + * @param {ibc.applications.fee.v1.IFeeEnabledChannel} message FeeEnabledChannel message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FeeEnabledChannel.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.port_id != null && Object.hasOwnProperty.call(message, "port_id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.port_id); + if (message.channel_id != null && Object.hasOwnProperty.call(message, "channel_id")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.channel_id); + return writer; + }; - /** - * Decodes a QueryParamsRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ibc.applications.interchain_accounts.host.v1.QueryParamsRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.interchain_accounts.host.v1.QueryParamsRequest} QueryParamsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - QueryParamsRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Encodes the specified FeeEnabledChannel message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.FeeEnabledChannel.verify|verify} messages. + * @function encodeDelimited + * @memberof ibc.applications.fee.v1.FeeEnabledChannel + * @static + * @param {ibc.applications.fee.v1.IFeeEnabledChannel} message FeeEnabledChannel message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FeeEnabledChannel.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Verifies a QueryParamsRequest message. - * @function verify - * @memberof ibc.applications.interchain_accounts.host.v1.QueryParamsRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - QueryParamsRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; + /** + * Decodes a FeeEnabledChannel message from the specified reader or buffer. + * @function decode + * @memberof ibc.applications.fee.v1.FeeEnabledChannel + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {ibc.applications.fee.v1.FeeEnabledChannel} FeeEnabledChannel + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FeeEnabledChannel.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.FeeEnabledChannel(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.port_id = reader.string(); + break; + case 2: + message.channel_id = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Creates a QueryParamsRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof ibc.applications.interchain_accounts.host.v1.QueryParamsRequest - * @static - * @param {Object.} object Plain object - * @returns {ibc.applications.interchain_accounts.host.v1.QueryParamsRequest} QueryParamsRequest - */ - QueryParamsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.interchain_accounts.host.v1.QueryParamsRequest) - return object; - return new $root.ibc.applications.interchain_accounts.host.v1.QueryParamsRequest(); - }; + /** + * Decodes a FeeEnabledChannel message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof ibc.applications.fee.v1.FeeEnabledChannel + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {ibc.applications.fee.v1.FeeEnabledChannel} FeeEnabledChannel + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FeeEnabledChannel.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a plain object from a QueryParamsRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof ibc.applications.interchain_accounts.host.v1.QueryParamsRequest - * @static - * @param {ibc.applications.interchain_accounts.host.v1.QueryParamsRequest} message QueryParamsRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - QueryParamsRequest.toObject = function toObject() { - return {}; - }; + /** + * Verifies a FeeEnabledChannel message. + * @function verify + * @memberof ibc.applications.fee.v1.FeeEnabledChannel + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FeeEnabledChannel.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.port_id != null && message.hasOwnProperty("port_id")) + if (!$util.isString(message.port_id)) + return "port_id: string expected"; + if (message.channel_id != null && message.hasOwnProperty("channel_id")) + if (!$util.isString(message.channel_id)) + return "channel_id: string expected"; + return null; + }; - /** - * Converts this QueryParamsRequest to JSON. - * @function toJSON - * @memberof ibc.applications.interchain_accounts.host.v1.QueryParamsRequest - * @instance - * @returns {Object.} JSON object - */ - QueryParamsRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a FeeEnabledChannel message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof ibc.applications.fee.v1.FeeEnabledChannel + * @static + * @param {Object.} object Plain object + * @returns {ibc.applications.fee.v1.FeeEnabledChannel} FeeEnabledChannel + */ + FeeEnabledChannel.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.fee.v1.FeeEnabledChannel) + return object; + var message = new $root.ibc.applications.fee.v1.FeeEnabledChannel(); + if (object.port_id != null) + message.port_id = String(object.port_id); + if (object.channel_id != null) + message.channel_id = String(object.channel_id); + return message; + }; - return QueryParamsRequest; - })(); + /** + * Creates a plain object from a FeeEnabledChannel message. Also converts values to other types if specified. + * @function toObject + * @memberof ibc.applications.fee.v1.FeeEnabledChannel + * @static + * @param {ibc.applications.fee.v1.FeeEnabledChannel} message FeeEnabledChannel + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FeeEnabledChannel.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.port_id = ""; + object.channel_id = ""; + } + if (message.port_id != null && message.hasOwnProperty("port_id")) + object.port_id = message.port_id; + if (message.channel_id != null && message.hasOwnProperty("channel_id")) + object.channel_id = message.channel_id; + return object; + }; - v1.QueryParamsResponse = (function() { + /** + * Converts this FeeEnabledChannel to JSON. + * @function toJSON + * @memberof ibc.applications.fee.v1.FeeEnabledChannel + * @instance + * @returns {Object.} JSON object + */ + FeeEnabledChannel.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Properties of a QueryParamsResponse. - * @memberof ibc.applications.interchain_accounts.host.v1 - * @interface IQueryParamsResponse - * @property {ibc.applications.interchain_accounts.host.v1.IParams|null} [params] QueryParamsResponse params - */ + return FeeEnabledChannel; + })(); - /** - * Constructs a new QueryParamsResponse. - * @memberof ibc.applications.interchain_accounts.host.v1 - * @classdesc Represents a QueryParamsResponse. - * @implements IQueryParamsResponse - * @constructor - * @param {ibc.applications.interchain_accounts.host.v1.IQueryParamsResponse=} [properties] Properties to set - */ - function QueryParamsResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + v1.RegisteredPayee = (function() { - /** - * QueryParamsResponse params. - * @member {ibc.applications.interchain_accounts.host.v1.IParams|null|undefined} params - * @memberof ibc.applications.interchain_accounts.host.v1.QueryParamsResponse - * @instance - */ - QueryParamsResponse.prototype.params = null; + /** + * Properties of a RegisteredPayee. + * @memberof ibc.applications.fee.v1 + * @interface IRegisteredPayee + * @property {string|null} [channel_id] RegisteredPayee channel_id + * @property {string|null} [relayer] RegisteredPayee relayer + * @property {string|null} [payee] RegisteredPayee payee + */ - /** - * Encodes the specified QueryParamsResponse message. Does not implicitly {@link ibc.applications.interchain_accounts.host.v1.QueryParamsResponse.verify|verify} messages. - * @function encode - * @memberof ibc.applications.interchain_accounts.host.v1.QueryParamsResponse - * @static - * @param {ibc.applications.interchain_accounts.host.v1.IQueryParamsResponse} message QueryParamsResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - QueryParamsResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.params != null && Object.hasOwnProperty.call(message, "params")) - $root.ibc.applications.interchain_accounts.host.v1.Params.encode(message.params, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; + /** + * Constructs a new RegisteredPayee. + * @memberof ibc.applications.fee.v1 + * @classdesc Represents a RegisteredPayee. + * @implements IRegisteredPayee + * @constructor + * @param {ibc.applications.fee.v1.IRegisteredPayee=} [properties] Properties to set + */ + function RegisteredPayee(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Encodes the specified QueryParamsResponse message, length delimited. Does not implicitly {@link ibc.applications.interchain_accounts.host.v1.QueryParamsResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof ibc.applications.interchain_accounts.host.v1.QueryParamsResponse - * @static - * @param {ibc.applications.interchain_accounts.host.v1.IQueryParamsResponse} message QueryParamsResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - QueryParamsResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * RegisteredPayee channel_id. + * @member {string} channel_id + * @memberof ibc.applications.fee.v1.RegisteredPayee + * @instance + */ + RegisteredPayee.prototype.channel_id = ""; - /** - * Decodes a QueryParamsResponse message from the specified reader or buffer. - * @function decode - * @memberof ibc.applications.interchain_accounts.host.v1.QueryParamsResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.interchain_accounts.host.v1.QueryParamsResponse} QueryParamsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - QueryParamsResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.interchain_accounts.host.v1.QueryParamsResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.params = $root.ibc.applications.interchain_accounts.host.v1.Params.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * RegisteredPayee relayer. + * @member {string} relayer + * @memberof ibc.applications.fee.v1.RegisteredPayee + * @instance + */ + RegisteredPayee.prototype.relayer = ""; - /** - * Decodes a QueryParamsResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ibc.applications.interchain_accounts.host.v1.QueryParamsResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.interchain_accounts.host.v1.QueryParamsResponse} QueryParamsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - QueryParamsResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * RegisteredPayee payee. + * @member {string} payee + * @memberof ibc.applications.fee.v1.RegisteredPayee + * @instance + */ + RegisteredPayee.prototype.payee = ""; - /** - * Verifies a QueryParamsResponse message. - * @function verify - * @memberof ibc.applications.interchain_accounts.host.v1.QueryParamsResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - QueryParamsResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.params != null && message.hasOwnProperty("params")) { - var error = $root.ibc.applications.interchain_accounts.host.v1.Params.verify(message.params); - if (error) - return "params." + error; - } - return null; - }; + /** + * Encodes the specified RegisteredPayee message. Does not implicitly {@link ibc.applications.fee.v1.RegisteredPayee.verify|verify} messages. + * @function encode + * @memberof ibc.applications.fee.v1.RegisteredPayee + * @static + * @param {ibc.applications.fee.v1.IRegisteredPayee} message RegisteredPayee message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RegisteredPayee.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.channel_id != null && Object.hasOwnProperty.call(message, "channel_id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.channel_id); + if (message.relayer != null && Object.hasOwnProperty.call(message, "relayer")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.relayer); + if (message.payee != null && Object.hasOwnProperty.call(message, "payee")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.payee); + return writer; + }; - /** - * Creates a QueryParamsResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof ibc.applications.interchain_accounts.host.v1.QueryParamsResponse - * @static - * @param {Object.} object Plain object - * @returns {ibc.applications.interchain_accounts.host.v1.QueryParamsResponse} QueryParamsResponse - */ - QueryParamsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.interchain_accounts.host.v1.QueryParamsResponse) - return object; - var message = new $root.ibc.applications.interchain_accounts.host.v1.QueryParamsResponse(); - if (object.params != null) { - if (typeof object.params !== "object") - throw TypeError(".ibc.applications.interchain_accounts.host.v1.QueryParamsResponse.params: object expected"); - message.params = $root.ibc.applications.interchain_accounts.host.v1.Params.fromObject(object.params); - } - return message; - }; + /** + * Encodes the specified RegisteredPayee message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.RegisteredPayee.verify|verify} messages. + * @function encodeDelimited + * @memberof ibc.applications.fee.v1.RegisteredPayee + * @static + * @param {ibc.applications.fee.v1.IRegisteredPayee} message RegisteredPayee message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RegisteredPayee.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Creates a plain object from a QueryParamsResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof ibc.applications.interchain_accounts.host.v1.QueryParamsResponse - * @static - * @param {ibc.applications.interchain_accounts.host.v1.QueryParamsResponse} message QueryParamsResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - QueryParamsResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.params = null; - if (message.params != null && message.hasOwnProperty("params")) - object.params = $root.ibc.applications.interchain_accounts.host.v1.Params.toObject(message.params, options); - return object; - }; + /** + * Decodes a RegisteredPayee message from the specified reader or buffer. + * @function decode + * @memberof ibc.applications.fee.v1.RegisteredPayee + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {ibc.applications.fee.v1.RegisteredPayee} RegisteredPayee + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RegisteredPayee.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.RegisteredPayee(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.channel_id = reader.string(); + break; + case 2: + message.relayer = reader.string(); + break; + case 3: + message.payee = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Converts this QueryParamsResponse to JSON. - * @function toJSON - * @memberof ibc.applications.interchain_accounts.host.v1.QueryParamsResponse - * @instance - * @returns {Object.} JSON object - */ - QueryParamsResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Decodes a RegisteredPayee message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof ibc.applications.fee.v1.RegisteredPayee + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {ibc.applications.fee.v1.RegisteredPayee} RegisteredPayee + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RegisteredPayee.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - return QueryParamsResponse; - })(); + /** + * Verifies a RegisteredPayee message. + * @function verify + * @memberof ibc.applications.fee.v1.RegisteredPayee + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + RegisteredPayee.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.channel_id != null && message.hasOwnProperty("channel_id")) + if (!$util.isString(message.channel_id)) + return "channel_id: string expected"; + if (message.relayer != null && message.hasOwnProperty("relayer")) + if (!$util.isString(message.relayer)) + return "relayer: string expected"; + if (message.payee != null && message.hasOwnProperty("payee")) + if (!$util.isString(message.payee)) + return "payee: string expected"; + return null; + }; - return v1; - })(); + /** + * Creates a RegisteredPayee message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof ibc.applications.fee.v1.RegisteredPayee + * @static + * @param {Object.} object Plain object + * @returns {ibc.applications.fee.v1.RegisteredPayee} RegisteredPayee + */ + RegisteredPayee.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.fee.v1.RegisteredPayee) + return object; + var message = new $root.ibc.applications.fee.v1.RegisteredPayee(); + if (object.channel_id != null) + message.channel_id = String(object.channel_id); + if (object.relayer != null) + message.relayer = String(object.relayer); + if (object.payee != null) + message.payee = String(object.payee); + return message; + }; - return host; - })(); + /** + * Creates a plain object from a RegisteredPayee message. Also converts values to other types if specified. + * @function toObject + * @memberof ibc.applications.fee.v1.RegisteredPayee + * @static + * @param {ibc.applications.fee.v1.RegisteredPayee} message RegisteredPayee + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + RegisteredPayee.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.channel_id = ""; + object.relayer = ""; + object.payee = ""; + } + if (message.channel_id != null && message.hasOwnProperty("channel_id")) + object.channel_id = message.channel_id; + if (message.relayer != null && message.hasOwnProperty("relayer")) + object.relayer = message.relayer; + if (message.payee != null && message.hasOwnProperty("payee")) + object.payee = message.payee; + return object; + }; - interchain_accounts.v1 = (function() { + /** + * Converts this RegisteredPayee to JSON. + * @function toJSON + * @memberof ibc.applications.fee.v1.RegisteredPayee + * @instance + * @returns {Object.} JSON object + */ + RegisteredPayee.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Namespace v1. - * @memberof ibc.applications.interchain_accounts - * @namespace - */ - var v1 = {}; + return RegisteredPayee; + })(); - v1.InterchainAccount = (function() { + v1.RegisteredCounterpartyPayee = (function() { /** - * Properties of an InterchainAccount. - * @memberof ibc.applications.interchain_accounts.v1 - * @interface IInterchainAccount - * @property {cosmos.auth.v1beta1.IBaseAccount|null} [base_account] InterchainAccount base_account - * @property {string|null} [account_owner] InterchainAccount account_owner + * Properties of a RegisteredCounterpartyPayee. + * @memberof ibc.applications.fee.v1 + * @interface IRegisteredCounterpartyPayee + * @property {string|null} [channel_id] RegisteredCounterpartyPayee channel_id + * @property {string|null} [relayer] RegisteredCounterpartyPayee relayer + * @property {string|null} [counterparty_payee] RegisteredCounterpartyPayee counterparty_payee */ /** - * Constructs a new InterchainAccount. - * @memberof ibc.applications.interchain_accounts.v1 - * @classdesc Represents an InterchainAccount. - * @implements IInterchainAccount + * Constructs a new RegisteredCounterpartyPayee. + * @memberof ibc.applications.fee.v1 + * @classdesc Represents a RegisteredCounterpartyPayee. + * @implements IRegisteredCounterpartyPayee * @constructor - * @param {ibc.applications.interchain_accounts.v1.IInterchainAccount=} [properties] Properties to set + * @param {ibc.applications.fee.v1.IRegisteredCounterpartyPayee=} [properties] Properties to set */ - function InterchainAccount(properties) { + function RegisteredCounterpartyPayee(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -28460,76 +34760,89 @@ } /** - * InterchainAccount base_account. - * @member {cosmos.auth.v1beta1.IBaseAccount|null|undefined} base_account - * @memberof ibc.applications.interchain_accounts.v1.InterchainAccount + * RegisteredCounterpartyPayee channel_id. + * @member {string} channel_id + * @memberof ibc.applications.fee.v1.RegisteredCounterpartyPayee * @instance */ - InterchainAccount.prototype.base_account = null; + RegisteredCounterpartyPayee.prototype.channel_id = ""; /** - * InterchainAccount account_owner. - * @member {string} account_owner - * @memberof ibc.applications.interchain_accounts.v1.InterchainAccount + * RegisteredCounterpartyPayee relayer. + * @member {string} relayer + * @memberof ibc.applications.fee.v1.RegisteredCounterpartyPayee * @instance */ - InterchainAccount.prototype.account_owner = ""; + RegisteredCounterpartyPayee.prototype.relayer = ""; /** - * Encodes the specified InterchainAccount message. Does not implicitly {@link ibc.applications.interchain_accounts.v1.InterchainAccount.verify|verify} messages. + * RegisteredCounterpartyPayee counterparty_payee. + * @member {string} counterparty_payee + * @memberof ibc.applications.fee.v1.RegisteredCounterpartyPayee + * @instance + */ + RegisteredCounterpartyPayee.prototype.counterparty_payee = ""; + + /** + * Encodes the specified RegisteredCounterpartyPayee message. Does not implicitly {@link ibc.applications.fee.v1.RegisteredCounterpartyPayee.verify|verify} messages. * @function encode - * @memberof ibc.applications.interchain_accounts.v1.InterchainAccount + * @memberof ibc.applications.fee.v1.RegisteredCounterpartyPayee * @static - * @param {ibc.applications.interchain_accounts.v1.IInterchainAccount} message InterchainAccount message or plain object to encode + * @param {ibc.applications.fee.v1.IRegisteredCounterpartyPayee} message RegisteredCounterpartyPayee message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - InterchainAccount.encode = function encode(message, writer) { + RegisteredCounterpartyPayee.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.base_account != null && Object.hasOwnProperty.call(message, "base_account")) - $root.cosmos.auth.v1beta1.BaseAccount.encode(message.base_account, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.account_owner != null && Object.hasOwnProperty.call(message, "account_owner")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.account_owner); + if (message.channel_id != null && Object.hasOwnProperty.call(message, "channel_id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.channel_id); + if (message.relayer != null && Object.hasOwnProperty.call(message, "relayer")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.relayer); + if (message.counterparty_payee != null && Object.hasOwnProperty.call(message, "counterparty_payee")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.counterparty_payee); return writer; }; /** - * Encodes the specified InterchainAccount message, length delimited. Does not implicitly {@link ibc.applications.interchain_accounts.v1.InterchainAccount.verify|verify} messages. + * Encodes the specified RegisteredCounterpartyPayee message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.RegisteredCounterpartyPayee.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.applications.interchain_accounts.v1.InterchainAccount + * @memberof ibc.applications.fee.v1.RegisteredCounterpartyPayee * @static - * @param {ibc.applications.interchain_accounts.v1.IInterchainAccount} message InterchainAccount message or plain object to encode + * @param {ibc.applications.fee.v1.IRegisteredCounterpartyPayee} message RegisteredCounterpartyPayee message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - InterchainAccount.encodeDelimited = function encodeDelimited(message, writer) { + RegisteredCounterpartyPayee.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an InterchainAccount message from the specified reader or buffer. + * Decodes a RegisteredCounterpartyPayee message from the specified reader or buffer. * @function decode - * @memberof ibc.applications.interchain_accounts.v1.InterchainAccount + * @memberof ibc.applications.fee.v1.RegisteredCounterpartyPayee * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.interchain_accounts.v1.InterchainAccount} InterchainAccount + * @returns {ibc.applications.fee.v1.RegisteredCounterpartyPayee} RegisteredCounterpartyPayee * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - InterchainAccount.decode = function decode(reader, length) { + RegisteredCounterpartyPayee.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.interchain_accounts.v1.InterchainAccount(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.RegisteredCounterpartyPayee(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.base_account = $root.cosmos.auth.v1beta1.BaseAccount.decode(reader, reader.uint32()); + message.channel_id = reader.string(); break; case 2: - message.account_owner = reader.string(); + message.relayer = reader.string(); + break; + case 3: + message.counterparty_payee = reader.string(); break; default: reader.skipType(tag & 7); @@ -28540,137 +34853,125 @@ }; /** - * Decodes an InterchainAccount message from the specified reader or buffer, length delimited. + * Decodes a RegisteredCounterpartyPayee message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.applications.interchain_accounts.v1.InterchainAccount + * @memberof ibc.applications.fee.v1.RegisteredCounterpartyPayee * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.interchain_accounts.v1.InterchainAccount} InterchainAccount + * @returns {ibc.applications.fee.v1.RegisteredCounterpartyPayee} RegisteredCounterpartyPayee * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - InterchainAccount.decodeDelimited = function decodeDelimited(reader) { + RegisteredCounterpartyPayee.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an InterchainAccount message. + * Verifies a RegisteredCounterpartyPayee message. * @function verify - * @memberof ibc.applications.interchain_accounts.v1.InterchainAccount + * @memberof ibc.applications.fee.v1.RegisteredCounterpartyPayee * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - InterchainAccount.verify = function verify(message) { + RegisteredCounterpartyPayee.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.base_account != null && message.hasOwnProperty("base_account")) { - var error = $root.cosmos.auth.v1beta1.BaseAccount.verify(message.base_account); - if (error) - return "base_account." + error; - } - if (message.account_owner != null && message.hasOwnProperty("account_owner")) - if (!$util.isString(message.account_owner)) - return "account_owner: string expected"; + if (message.channel_id != null && message.hasOwnProperty("channel_id")) + if (!$util.isString(message.channel_id)) + return "channel_id: string expected"; + if (message.relayer != null && message.hasOwnProperty("relayer")) + if (!$util.isString(message.relayer)) + return "relayer: string expected"; + if (message.counterparty_payee != null && message.hasOwnProperty("counterparty_payee")) + if (!$util.isString(message.counterparty_payee)) + return "counterparty_payee: string expected"; return null; }; /** - * Creates an InterchainAccount message from a plain object. Also converts values to their respective internal types. + * Creates a RegisteredCounterpartyPayee message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.applications.interchain_accounts.v1.InterchainAccount + * @memberof ibc.applications.fee.v1.RegisteredCounterpartyPayee * @static * @param {Object.} object Plain object - * @returns {ibc.applications.interchain_accounts.v1.InterchainAccount} InterchainAccount + * @returns {ibc.applications.fee.v1.RegisteredCounterpartyPayee} RegisteredCounterpartyPayee */ - InterchainAccount.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.interchain_accounts.v1.InterchainAccount) + RegisteredCounterpartyPayee.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.fee.v1.RegisteredCounterpartyPayee) return object; - var message = new $root.ibc.applications.interchain_accounts.v1.InterchainAccount(); - if (object.base_account != null) { - if (typeof object.base_account !== "object") - throw TypeError(".ibc.applications.interchain_accounts.v1.InterchainAccount.base_account: object expected"); - message.base_account = $root.cosmos.auth.v1beta1.BaseAccount.fromObject(object.base_account); - } - if (object.account_owner != null) - message.account_owner = String(object.account_owner); + var message = new $root.ibc.applications.fee.v1.RegisteredCounterpartyPayee(); + if (object.channel_id != null) + message.channel_id = String(object.channel_id); + if (object.relayer != null) + message.relayer = String(object.relayer); + if (object.counterparty_payee != null) + message.counterparty_payee = String(object.counterparty_payee); return message; }; /** - * Creates a plain object from an InterchainAccount message. Also converts values to other types if specified. + * Creates a plain object from a RegisteredCounterpartyPayee message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.applications.interchain_accounts.v1.InterchainAccount + * @memberof ibc.applications.fee.v1.RegisteredCounterpartyPayee * @static - * @param {ibc.applications.interchain_accounts.v1.InterchainAccount} message InterchainAccount + * @param {ibc.applications.fee.v1.RegisteredCounterpartyPayee} message RegisteredCounterpartyPayee * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - InterchainAccount.toObject = function toObject(message, options) { + RegisteredCounterpartyPayee.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.base_account = null; - object.account_owner = ""; + object.channel_id = ""; + object.relayer = ""; + object.counterparty_payee = ""; } - if (message.base_account != null && message.hasOwnProperty("base_account")) - object.base_account = $root.cosmos.auth.v1beta1.BaseAccount.toObject(message.base_account, options); - if (message.account_owner != null && message.hasOwnProperty("account_owner")) - object.account_owner = message.account_owner; + if (message.channel_id != null && message.hasOwnProperty("channel_id")) + object.channel_id = message.channel_id; + if (message.relayer != null && message.hasOwnProperty("relayer")) + object.relayer = message.relayer; + if (message.counterparty_payee != null && message.hasOwnProperty("counterparty_payee")) + object.counterparty_payee = message.counterparty_payee; return object; }; /** - * Converts this InterchainAccount to JSON. + * Converts this RegisteredCounterpartyPayee to JSON. * @function toJSON - * @memberof ibc.applications.interchain_accounts.v1.InterchainAccount + * @memberof ibc.applications.fee.v1.RegisteredCounterpartyPayee * @instance * @returns {Object.} JSON object */ - InterchainAccount.prototype.toJSON = function toJSON() { + RegisteredCounterpartyPayee.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return InterchainAccount; - })(); - - /** - * Type enum. - * @name ibc.applications.interchain_accounts.v1.Type - * @enum {number} - * @property {number} TYPE_UNSPECIFIED=0 TYPE_UNSPECIFIED value - * @property {number} TYPE_EXECUTE_TX=1 TYPE_EXECUTE_TX value - */ - v1.Type = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "TYPE_UNSPECIFIED"] = 0; - values[valuesById[1] = "TYPE_EXECUTE_TX"] = 1; - return values; + return RegisteredCounterpartyPayee; })(); - v1.InterchainAccountPacketData = (function() { + v1.ForwardRelayerAddress = (function() { /** - * Properties of an InterchainAccountPacketData. - * @memberof ibc.applications.interchain_accounts.v1 - * @interface IInterchainAccountPacketData - * @property {ibc.applications.interchain_accounts.v1.Type|null} [type] InterchainAccountPacketData type - * @property {Uint8Array|null} [data] InterchainAccountPacketData data - * @property {string|null} [memo] InterchainAccountPacketData memo + * Properties of a ForwardRelayerAddress. + * @memberof ibc.applications.fee.v1 + * @interface IForwardRelayerAddress + * @property {string|null} [address] ForwardRelayerAddress address + * @property {ibc.core.channel.v1.IPacketId|null} [packet_id] ForwardRelayerAddress packet_id */ /** - * Constructs a new InterchainAccountPacketData. - * @memberof ibc.applications.interchain_accounts.v1 - * @classdesc Represents an InterchainAccountPacketData. - * @implements IInterchainAccountPacketData + * Constructs a new ForwardRelayerAddress. + * @memberof ibc.applications.fee.v1 + * @classdesc Represents a ForwardRelayerAddress. + * @implements IForwardRelayerAddress * @constructor - * @param {ibc.applications.interchain_accounts.v1.IInterchainAccountPacketData=} [properties] Properties to set + * @param {ibc.applications.fee.v1.IForwardRelayerAddress=} [properties] Properties to set */ - function InterchainAccountPacketData(properties) { + function ForwardRelayerAddress(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -28678,89 +34979,76 @@ } /** - * InterchainAccountPacketData type. - * @member {ibc.applications.interchain_accounts.v1.Type} type - * @memberof ibc.applications.interchain_accounts.v1.InterchainAccountPacketData - * @instance - */ - InterchainAccountPacketData.prototype.type = 0; - - /** - * InterchainAccountPacketData data. - * @member {Uint8Array} data - * @memberof ibc.applications.interchain_accounts.v1.InterchainAccountPacketData + * ForwardRelayerAddress address. + * @member {string} address + * @memberof ibc.applications.fee.v1.ForwardRelayerAddress * @instance */ - InterchainAccountPacketData.prototype.data = $util.newBuffer([]); + ForwardRelayerAddress.prototype.address = ""; /** - * InterchainAccountPacketData memo. - * @member {string} memo - * @memberof ibc.applications.interchain_accounts.v1.InterchainAccountPacketData + * ForwardRelayerAddress packet_id. + * @member {ibc.core.channel.v1.IPacketId|null|undefined} packet_id + * @memberof ibc.applications.fee.v1.ForwardRelayerAddress * @instance */ - InterchainAccountPacketData.prototype.memo = ""; + ForwardRelayerAddress.prototype.packet_id = null; /** - * Encodes the specified InterchainAccountPacketData message. Does not implicitly {@link ibc.applications.interchain_accounts.v1.InterchainAccountPacketData.verify|verify} messages. + * Encodes the specified ForwardRelayerAddress message. Does not implicitly {@link ibc.applications.fee.v1.ForwardRelayerAddress.verify|verify} messages. * @function encode - * @memberof ibc.applications.interchain_accounts.v1.InterchainAccountPacketData + * @memberof ibc.applications.fee.v1.ForwardRelayerAddress * @static - * @param {ibc.applications.interchain_accounts.v1.IInterchainAccountPacketData} message InterchainAccountPacketData message or plain object to encode + * @param {ibc.applications.fee.v1.IForwardRelayerAddress} message ForwardRelayerAddress message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - InterchainAccountPacketData.encode = function encode(message, writer) { + ForwardRelayerAddress.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.type != null && Object.hasOwnProperty.call(message, "type")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.type); - if (message.data != null && Object.hasOwnProperty.call(message, "data")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.data); - if (message.memo != null && Object.hasOwnProperty.call(message, "memo")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.memo); + if (message.address != null && Object.hasOwnProperty.call(message, "address")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.address); + if (message.packet_id != null && Object.hasOwnProperty.call(message, "packet_id")) + $root.ibc.core.channel.v1.PacketId.encode(message.packet_id, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified InterchainAccountPacketData message, length delimited. Does not implicitly {@link ibc.applications.interchain_accounts.v1.InterchainAccountPacketData.verify|verify} messages. + * Encodes the specified ForwardRelayerAddress message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.ForwardRelayerAddress.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.applications.interchain_accounts.v1.InterchainAccountPacketData + * @memberof ibc.applications.fee.v1.ForwardRelayerAddress * @static - * @param {ibc.applications.interchain_accounts.v1.IInterchainAccountPacketData} message InterchainAccountPacketData message or plain object to encode + * @param {ibc.applications.fee.v1.IForwardRelayerAddress} message ForwardRelayerAddress message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - InterchainAccountPacketData.encodeDelimited = function encodeDelimited(message, writer) { + ForwardRelayerAddress.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an InterchainAccountPacketData message from the specified reader or buffer. + * Decodes a ForwardRelayerAddress message from the specified reader or buffer. * @function decode - * @memberof ibc.applications.interchain_accounts.v1.InterchainAccountPacketData + * @memberof ibc.applications.fee.v1.ForwardRelayerAddress * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.interchain_accounts.v1.InterchainAccountPacketData} InterchainAccountPacketData + * @returns {ibc.applications.fee.v1.ForwardRelayerAddress} ForwardRelayerAddress * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - InterchainAccountPacketData.decode = function decode(reader, length) { + ForwardRelayerAddress.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.interchain_accounts.v1.InterchainAccountPacketData(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.ForwardRelayerAddress(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.type = reader.int32(); + message.address = reader.string(); break; case 2: - message.data = reader.bytes(); - break; - case 3: - message.memo = reader.string(); + message.packet_id = $root.ibc.core.channel.v1.PacketId.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -28771,147 +35059,122 @@ }; /** - * Decodes an InterchainAccountPacketData message from the specified reader or buffer, length delimited. + * Decodes a ForwardRelayerAddress message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.applications.interchain_accounts.v1.InterchainAccountPacketData + * @memberof ibc.applications.fee.v1.ForwardRelayerAddress * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.interchain_accounts.v1.InterchainAccountPacketData} InterchainAccountPacketData + * @returns {ibc.applications.fee.v1.ForwardRelayerAddress} ForwardRelayerAddress * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - InterchainAccountPacketData.decodeDelimited = function decodeDelimited(reader) { + ForwardRelayerAddress.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an InterchainAccountPacketData message. + * Verifies a ForwardRelayerAddress message. * @function verify - * @memberof ibc.applications.interchain_accounts.v1.InterchainAccountPacketData + * @memberof ibc.applications.fee.v1.ForwardRelayerAddress * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - InterchainAccountPacketData.verify = function verify(message) { + ForwardRelayerAddress.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.type != null && message.hasOwnProperty("type")) - switch (message.type) { - default: - return "type: enum value expected"; - case 0: - case 1: - break; - } - if (message.data != null && message.hasOwnProperty("data")) - if (!(message.data && typeof message.data.length === "number" || $util.isString(message.data))) - return "data: buffer expected"; - if (message.memo != null && message.hasOwnProperty("memo")) - if (!$util.isString(message.memo)) - return "memo: string expected"; + if (message.address != null && message.hasOwnProperty("address")) + if (!$util.isString(message.address)) + return "address: string expected"; + if (message.packet_id != null && message.hasOwnProperty("packet_id")) { + var error = $root.ibc.core.channel.v1.PacketId.verify(message.packet_id); + if (error) + return "packet_id." + error; + } return null; }; /** - * Creates an InterchainAccountPacketData message from a plain object. Also converts values to their respective internal types. + * Creates a ForwardRelayerAddress message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.applications.interchain_accounts.v1.InterchainAccountPacketData + * @memberof ibc.applications.fee.v1.ForwardRelayerAddress * @static * @param {Object.} object Plain object - * @returns {ibc.applications.interchain_accounts.v1.InterchainAccountPacketData} InterchainAccountPacketData + * @returns {ibc.applications.fee.v1.ForwardRelayerAddress} ForwardRelayerAddress */ - InterchainAccountPacketData.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.interchain_accounts.v1.InterchainAccountPacketData) + ForwardRelayerAddress.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.fee.v1.ForwardRelayerAddress) return object; - var message = new $root.ibc.applications.interchain_accounts.v1.InterchainAccountPacketData(); - switch (object.type) { - case "TYPE_UNSPECIFIED": - case 0: - message.type = 0; - break; - case "TYPE_EXECUTE_TX": - case 1: - message.type = 1; - break; + var message = new $root.ibc.applications.fee.v1.ForwardRelayerAddress(); + if (object.address != null) + message.address = String(object.address); + if (object.packet_id != null) { + if (typeof object.packet_id !== "object") + throw TypeError(".ibc.applications.fee.v1.ForwardRelayerAddress.packet_id: object expected"); + message.packet_id = $root.ibc.core.channel.v1.PacketId.fromObject(object.packet_id); } - if (object.data != null) - if (typeof object.data === "string") - $util.base64.decode(object.data, message.data = $util.newBuffer($util.base64.length(object.data)), 0); - else if (object.data.length) - message.data = object.data; - if (object.memo != null) - message.memo = String(object.memo); return message; }; /** - * Creates a plain object from an InterchainAccountPacketData message. Also converts values to other types if specified. + * Creates a plain object from a ForwardRelayerAddress message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.applications.interchain_accounts.v1.InterchainAccountPacketData + * @memberof ibc.applications.fee.v1.ForwardRelayerAddress * @static - * @param {ibc.applications.interchain_accounts.v1.InterchainAccountPacketData} message InterchainAccountPacketData + * @param {ibc.applications.fee.v1.ForwardRelayerAddress} message ForwardRelayerAddress * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - InterchainAccountPacketData.toObject = function toObject(message, options) { + ForwardRelayerAddress.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.type = options.enums === String ? "TYPE_UNSPECIFIED" : 0; - if (options.bytes === String) - object.data = ""; - else { - object.data = []; - if (options.bytes !== Array) - object.data = $util.newBuffer(object.data); - } - object.memo = ""; - } - if (message.type != null && message.hasOwnProperty("type")) - object.type = options.enums === String ? $root.ibc.applications.interchain_accounts.v1.Type[message.type] : message.type; - if (message.data != null && message.hasOwnProperty("data")) - object.data = options.bytes === String ? $util.base64.encode(message.data, 0, message.data.length) : options.bytes === Array ? Array.prototype.slice.call(message.data) : message.data; - if (message.memo != null && message.hasOwnProperty("memo")) - object.memo = message.memo; + object.address = ""; + object.packet_id = null; + } + if (message.address != null && message.hasOwnProperty("address")) + object.address = message.address; + if (message.packet_id != null && message.hasOwnProperty("packet_id")) + object.packet_id = $root.ibc.core.channel.v1.PacketId.toObject(message.packet_id, options); return object; }; /** - * Converts this InterchainAccountPacketData to JSON. + * Converts this ForwardRelayerAddress to JSON. * @function toJSON - * @memberof ibc.applications.interchain_accounts.v1.InterchainAccountPacketData + * @memberof ibc.applications.fee.v1.ForwardRelayerAddress * @instance * @returns {Object.} JSON object */ - InterchainAccountPacketData.prototype.toJSON = function toJSON() { + ForwardRelayerAddress.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return InterchainAccountPacketData; + return ForwardRelayerAddress; })(); - v1.CosmosTx = (function() { + v1.Metadata = (function() { /** - * Properties of a CosmosTx. - * @memberof ibc.applications.interchain_accounts.v1 - * @interface ICosmosTx - * @property {Array.|null} [messages] CosmosTx messages + * Properties of a Metadata. + * @memberof ibc.applications.fee.v1 + * @interface IMetadata + * @property {string|null} [fee_version] Metadata fee_version + * @property {string|null} [app_version] Metadata app_version */ /** - * Constructs a new CosmosTx. - * @memberof ibc.applications.interchain_accounts.v1 - * @classdesc Represents a CosmosTx. - * @implements ICosmosTx + * Constructs a new Metadata. + * @memberof ibc.applications.fee.v1 + * @classdesc Represents a Metadata. + * @implements IMetadata * @constructor - * @param {ibc.applications.interchain_accounts.v1.ICosmosTx=} [properties] Properties to set + * @param {ibc.applications.fee.v1.IMetadata=} [properties] Properties to set */ - function CosmosTx(properties) { - this.messages = []; + function Metadata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -28919,66 +35182,76 @@ } /** - * CosmosTx messages. - * @member {Array.} messages - * @memberof ibc.applications.interchain_accounts.v1.CosmosTx + * Metadata fee_version. + * @member {string} fee_version + * @memberof ibc.applications.fee.v1.Metadata * @instance */ - CosmosTx.prototype.messages = $util.emptyArray; + Metadata.prototype.fee_version = ""; /** - * Encodes the specified CosmosTx message. Does not implicitly {@link ibc.applications.interchain_accounts.v1.CosmosTx.verify|verify} messages. + * Metadata app_version. + * @member {string} app_version + * @memberof ibc.applications.fee.v1.Metadata + * @instance + */ + Metadata.prototype.app_version = ""; + + /** + * Encodes the specified Metadata message. Does not implicitly {@link ibc.applications.fee.v1.Metadata.verify|verify} messages. * @function encode - * @memberof ibc.applications.interchain_accounts.v1.CosmosTx + * @memberof ibc.applications.fee.v1.Metadata * @static - * @param {ibc.applications.interchain_accounts.v1.ICosmosTx} message CosmosTx message or plain object to encode + * @param {ibc.applications.fee.v1.IMetadata} message Metadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CosmosTx.encode = function encode(message, writer) { + Metadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.messages != null && message.messages.length) - for (var i = 0; i < message.messages.length; ++i) - $root.google.protobuf.Any.encode(message.messages[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.fee_version != null && Object.hasOwnProperty.call(message, "fee_version")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.fee_version); + if (message.app_version != null && Object.hasOwnProperty.call(message, "app_version")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.app_version); return writer; }; /** - * Encodes the specified CosmosTx message, length delimited. Does not implicitly {@link ibc.applications.interchain_accounts.v1.CosmosTx.verify|verify} messages. + * Encodes the specified Metadata message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.Metadata.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.applications.interchain_accounts.v1.CosmosTx + * @memberof ibc.applications.fee.v1.Metadata * @static - * @param {ibc.applications.interchain_accounts.v1.ICosmosTx} message CosmosTx message or plain object to encode + * @param {ibc.applications.fee.v1.IMetadata} message Metadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CosmosTx.encodeDelimited = function encodeDelimited(message, writer) { + Metadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CosmosTx message from the specified reader or buffer. + * Decodes a Metadata message from the specified reader or buffer. * @function decode - * @memberof ibc.applications.interchain_accounts.v1.CosmosTx + * @memberof ibc.applications.fee.v1.Metadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.interchain_accounts.v1.CosmosTx} CosmosTx + * @returns {ibc.applications.fee.v1.Metadata} Metadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CosmosTx.decode = function decode(reader, length) { + Metadata.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.interchain_accounts.v1.CosmosTx(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.Metadata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.messages && message.messages.length)) - message.messages = []; - message.messages.push($root.google.protobuf.Any.decode(reader, reader.uint32())); + message.fee_version = reader.string(); + break; + case 2: + message.app_version = reader.string(); break; default: reader.skipType(tag & 7); @@ -28989,1740 +35262,2098 @@ }; /** - * Decodes a CosmosTx message from the specified reader or buffer, length delimited. + * Decodes a Metadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.applications.interchain_accounts.v1.CosmosTx + * @memberof ibc.applications.fee.v1.Metadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.interchain_accounts.v1.CosmosTx} CosmosTx + * @returns {ibc.applications.fee.v1.Metadata} Metadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CosmosTx.decodeDelimited = function decodeDelimited(reader) { + Metadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; - /** - * Verifies a CosmosTx message. - * @function verify - * @memberof ibc.applications.interchain_accounts.v1.CosmosTx - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CosmosTx.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.messages != null && message.hasOwnProperty("messages")) { - if (!Array.isArray(message.messages)) - return "messages: array expected"; - for (var i = 0; i < message.messages.length; ++i) { - var error = $root.google.protobuf.Any.verify(message.messages[i]); - if (error) - return "messages." + error; + /** + * Verifies a Metadata message. + * @function verify + * @memberof ibc.applications.fee.v1.Metadata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Metadata.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.fee_version != null && message.hasOwnProperty("fee_version")) + if (!$util.isString(message.fee_version)) + return "fee_version: string expected"; + if (message.app_version != null && message.hasOwnProperty("app_version")) + if (!$util.isString(message.app_version)) + return "app_version: string expected"; + return null; + }; + + /** + * Creates a Metadata message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof ibc.applications.fee.v1.Metadata + * @static + * @param {Object.} object Plain object + * @returns {ibc.applications.fee.v1.Metadata} Metadata + */ + Metadata.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.fee.v1.Metadata) + return object; + var message = new $root.ibc.applications.fee.v1.Metadata(); + if (object.fee_version != null) + message.fee_version = String(object.fee_version); + if (object.app_version != null) + message.app_version = String(object.app_version); + return message; + }; + + /** + * Creates a plain object from a Metadata message. Also converts values to other types if specified. + * @function toObject + * @memberof ibc.applications.fee.v1.Metadata + * @static + * @param {ibc.applications.fee.v1.Metadata} message Metadata + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Metadata.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.fee_version = ""; + object.app_version = ""; + } + if (message.fee_version != null && message.hasOwnProperty("fee_version")) + object.fee_version = message.fee_version; + if (message.app_version != null && message.hasOwnProperty("app_version")) + object.app_version = message.app_version; + return object; + }; + + /** + * Converts this Metadata to JSON. + * @function toJSON + * @memberof ibc.applications.fee.v1.Metadata + * @instance + * @returns {Object.} JSON object + */ + Metadata.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return Metadata; + })(); + + return v1; + })(); + + return fee; + })(); + + applications.interchain_accounts = (function() { + + /** + * Namespace interchain_accounts. + * @memberof ibc.applications + * @namespace + */ + var interchain_accounts = {}; + + interchain_accounts.controller = (function() { + + /** + * Namespace controller. + * @memberof ibc.applications.interchain_accounts + * @namespace + */ + var controller = {}; + + controller.v1 = (function() { + + /** + * Namespace v1. + * @memberof ibc.applications.interchain_accounts.controller + * @namespace + */ + var v1 = {}; + + v1.Msg = (function() { + + /** + * Constructs a new Msg service. + * @memberof ibc.applications.interchain_accounts.controller.v1 + * @classdesc Represents a Msg + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + */ + function Msg(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (Msg.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Msg; + + /** + * Callback as used by {@link ibc.applications.interchain_accounts.controller.v1.Msg#registerInterchainAccount}. + * @memberof ibc.applications.interchain_accounts.controller.v1.Msg + * @typedef RegisterInterchainAccountCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccountResponse} [response] MsgRegisterInterchainAccountResponse + */ + + /** + * Calls RegisterInterchainAccount. + * @function registerInterchainAccount + * @memberof ibc.applications.interchain_accounts.controller.v1.Msg + * @instance + * @param {ibc.applications.interchain_accounts.controller.v1.IMsgRegisterInterchainAccount} request MsgRegisterInterchainAccount message or plain object + * @param {ibc.applications.interchain_accounts.controller.v1.Msg.RegisterInterchainAccountCallback} callback Node-style callback called with the error, if any, and MsgRegisterInterchainAccountResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Msg.prototype.registerInterchainAccount = function registerInterchainAccount(request, callback) { + return this.rpcCall(registerInterchainAccount, $root.ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccount, $root.ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccountResponse, request, callback); + }, "name", { value: "RegisterInterchainAccount" }); + + /** + * Calls RegisterInterchainAccount. + * @function registerInterchainAccount + * @memberof ibc.applications.interchain_accounts.controller.v1.Msg + * @instance + * @param {ibc.applications.interchain_accounts.controller.v1.IMsgRegisterInterchainAccount} request MsgRegisterInterchainAccount message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link ibc.applications.interchain_accounts.controller.v1.Msg#sendTx}. + * @memberof ibc.applications.interchain_accounts.controller.v1.Msg + * @typedef SendTxCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.applications.interchain_accounts.controller.v1.MsgSendTxResponse} [response] MsgSendTxResponse + */ + + /** + * Calls SendTx. + * @function sendTx + * @memberof ibc.applications.interchain_accounts.controller.v1.Msg + * @instance + * @param {ibc.applications.interchain_accounts.controller.v1.IMsgSendTx} request MsgSendTx message or plain object + * @param {ibc.applications.interchain_accounts.controller.v1.Msg.SendTxCallback} callback Node-style callback called with the error, if any, and MsgSendTxResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Msg.prototype.sendTx = function sendTx(request, callback) { + return this.rpcCall(sendTx, $root.ibc.applications.interchain_accounts.controller.v1.MsgSendTx, $root.ibc.applications.interchain_accounts.controller.v1.MsgSendTxResponse, request, callback); + }, "name", { value: "SendTx" }); + + /** + * Calls SendTx. + * @function sendTx + * @memberof ibc.applications.interchain_accounts.controller.v1.Msg + * @instance + * @param {ibc.applications.interchain_accounts.controller.v1.IMsgSendTx} request MsgSendTx message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return Msg; + })(); + + v1.MsgRegisterInterchainAccount = (function() { + + /** + * Properties of a MsgRegisterInterchainAccount. + * @memberof ibc.applications.interchain_accounts.controller.v1 + * @interface IMsgRegisterInterchainAccount + * @property {string|null} [owner] MsgRegisterInterchainAccount owner + * @property {string|null} [connection_id] MsgRegisterInterchainAccount connection_id + * @property {string|null} [version] MsgRegisterInterchainAccount version + */ + + /** + * Constructs a new MsgRegisterInterchainAccount. + * @memberof ibc.applications.interchain_accounts.controller.v1 + * @classdesc Represents a MsgRegisterInterchainAccount. + * @implements IMsgRegisterInterchainAccount + * @constructor + * @param {ibc.applications.interchain_accounts.controller.v1.IMsgRegisterInterchainAccount=} [properties] Properties to set + */ + function MsgRegisterInterchainAccount(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * MsgRegisterInterchainAccount owner. + * @member {string} owner + * @memberof ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccount + * @instance + */ + MsgRegisterInterchainAccount.prototype.owner = ""; + + /** + * MsgRegisterInterchainAccount connection_id. + * @member {string} connection_id + * @memberof ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccount + * @instance + */ + MsgRegisterInterchainAccount.prototype.connection_id = ""; + + /** + * MsgRegisterInterchainAccount version. + * @member {string} version + * @memberof ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccount + * @instance + */ + MsgRegisterInterchainAccount.prototype.version = ""; + + /** + * Encodes the specified MsgRegisterInterchainAccount message. Does not implicitly {@link ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccount.verify|verify} messages. + * @function encode + * @memberof ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccount + * @static + * @param {ibc.applications.interchain_accounts.controller.v1.IMsgRegisterInterchainAccount} message MsgRegisterInterchainAccount message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MsgRegisterInterchainAccount.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.owner != null && Object.hasOwnProperty.call(message, "owner")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.owner); + if (message.connection_id != null && Object.hasOwnProperty.call(message, "connection_id")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.connection_id); + if (message.version != null && Object.hasOwnProperty.call(message, "version")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.version); + return writer; + }; + + /** + * Encodes the specified MsgRegisterInterchainAccount message, length delimited. Does not implicitly {@link ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccount.verify|verify} messages. + * @function encodeDelimited + * @memberof ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccount + * @static + * @param {ibc.applications.interchain_accounts.controller.v1.IMsgRegisterInterchainAccount} message MsgRegisterInterchainAccount message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MsgRegisterInterchainAccount.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a MsgRegisterInterchainAccount message from the specified reader or buffer. + * @function decode + * @memberof ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccount + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccount} MsgRegisterInterchainAccount + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MsgRegisterInterchainAccount.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccount(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.owner = reader.string(); + break; + case 2: + message.connection_id = reader.string(); + break; + case 3: + message.version = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a MsgRegisterInterchainAccount message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccount + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccount} MsgRegisterInterchainAccount + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MsgRegisterInterchainAccount.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a MsgRegisterInterchainAccount message. + * @function verify + * @memberof ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccount + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MsgRegisterInterchainAccount.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.owner != null && message.hasOwnProperty("owner")) + if (!$util.isString(message.owner)) + return "owner: string expected"; + if (message.connection_id != null && message.hasOwnProperty("connection_id")) + if (!$util.isString(message.connection_id)) + return "connection_id: string expected"; + if (message.version != null && message.hasOwnProperty("version")) + if (!$util.isString(message.version)) + return "version: string expected"; + return null; + }; + + /** + * Creates a MsgRegisterInterchainAccount message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccount + * @static + * @param {Object.} object Plain object + * @returns {ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccount} MsgRegisterInterchainAccount + */ + MsgRegisterInterchainAccount.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccount) + return object; + var message = new $root.ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccount(); + if (object.owner != null) + message.owner = String(object.owner); + if (object.connection_id != null) + message.connection_id = String(object.connection_id); + if (object.version != null) + message.version = String(object.version); + return message; + }; + + /** + * Creates a plain object from a MsgRegisterInterchainAccount message. Also converts values to other types if specified. + * @function toObject + * @memberof ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccount + * @static + * @param {ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccount} message MsgRegisterInterchainAccount + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MsgRegisterInterchainAccount.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.owner = ""; + object.connection_id = ""; + object.version = ""; + } + if (message.owner != null && message.hasOwnProperty("owner")) + object.owner = message.owner; + if (message.connection_id != null && message.hasOwnProperty("connection_id")) + object.connection_id = message.connection_id; + if (message.version != null && message.hasOwnProperty("version")) + object.version = message.version; + return object; + }; + + /** + * Converts this MsgRegisterInterchainAccount to JSON. + * @function toJSON + * @memberof ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccount + * @instance + * @returns {Object.} JSON object + */ + MsgRegisterInterchainAccount.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return MsgRegisterInterchainAccount; + })(); + + v1.MsgRegisterInterchainAccountResponse = (function() { + + /** + * Properties of a MsgRegisterInterchainAccountResponse. + * @memberof ibc.applications.interchain_accounts.controller.v1 + * @interface IMsgRegisterInterchainAccountResponse + * @property {string|null} [channel_id] MsgRegisterInterchainAccountResponse channel_id + * @property {string|null} [port_id] MsgRegisterInterchainAccountResponse port_id + */ + + /** + * Constructs a new MsgRegisterInterchainAccountResponse. + * @memberof ibc.applications.interchain_accounts.controller.v1 + * @classdesc Represents a MsgRegisterInterchainAccountResponse. + * @implements IMsgRegisterInterchainAccountResponse + * @constructor + * @param {ibc.applications.interchain_accounts.controller.v1.IMsgRegisterInterchainAccountResponse=} [properties] Properties to set + */ + function MsgRegisterInterchainAccountResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * MsgRegisterInterchainAccountResponse channel_id. + * @member {string} channel_id + * @memberof ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccountResponse + * @instance + */ + MsgRegisterInterchainAccountResponse.prototype.channel_id = ""; + + /** + * MsgRegisterInterchainAccountResponse port_id. + * @member {string} port_id + * @memberof ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccountResponse + * @instance + */ + MsgRegisterInterchainAccountResponse.prototype.port_id = ""; + + /** + * Encodes the specified MsgRegisterInterchainAccountResponse message. Does not implicitly {@link ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccountResponse.verify|verify} messages. + * @function encode + * @memberof ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccountResponse + * @static + * @param {ibc.applications.interchain_accounts.controller.v1.IMsgRegisterInterchainAccountResponse} message MsgRegisterInterchainAccountResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MsgRegisterInterchainAccountResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.channel_id != null && Object.hasOwnProperty.call(message, "channel_id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.channel_id); + if (message.port_id != null && Object.hasOwnProperty.call(message, "port_id")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.port_id); + return writer; + }; + + /** + * Encodes the specified MsgRegisterInterchainAccountResponse message, length delimited. Does not implicitly {@link ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccountResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccountResponse + * @static + * @param {ibc.applications.interchain_accounts.controller.v1.IMsgRegisterInterchainAccountResponse} message MsgRegisterInterchainAccountResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MsgRegisterInterchainAccountResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a MsgRegisterInterchainAccountResponse message from the specified reader or buffer. + * @function decode + * @memberof ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccountResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccountResponse} MsgRegisterInterchainAccountResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MsgRegisterInterchainAccountResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccountResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.channel_id = reader.string(); + break; + case 2: + message.port_id = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a MsgRegisterInterchainAccountResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccountResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccountResponse} MsgRegisterInterchainAccountResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MsgRegisterInterchainAccountResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a MsgRegisterInterchainAccountResponse message. + * @function verify + * @memberof ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccountResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MsgRegisterInterchainAccountResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.channel_id != null && message.hasOwnProperty("channel_id")) + if (!$util.isString(message.channel_id)) + return "channel_id: string expected"; + if (message.port_id != null && message.hasOwnProperty("port_id")) + if (!$util.isString(message.port_id)) + return "port_id: string expected"; + return null; + }; + + /** + * Creates a MsgRegisterInterchainAccountResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccountResponse + * @static + * @param {Object.} object Plain object + * @returns {ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccountResponse} MsgRegisterInterchainAccountResponse + */ + MsgRegisterInterchainAccountResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccountResponse) + return object; + var message = new $root.ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccountResponse(); + if (object.channel_id != null) + message.channel_id = String(object.channel_id); + if (object.port_id != null) + message.port_id = String(object.port_id); + return message; + }; + + /** + * Creates a plain object from a MsgRegisterInterchainAccountResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccountResponse + * @static + * @param {ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccountResponse} message MsgRegisterInterchainAccountResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MsgRegisterInterchainAccountResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.channel_id = ""; + object.port_id = ""; } - } - return null; - }; - - /** - * Creates a CosmosTx message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof ibc.applications.interchain_accounts.v1.CosmosTx - * @static - * @param {Object.} object Plain object - * @returns {ibc.applications.interchain_accounts.v1.CosmosTx} CosmosTx - */ - CosmosTx.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.interchain_accounts.v1.CosmosTx) + if (message.channel_id != null && message.hasOwnProperty("channel_id")) + object.channel_id = message.channel_id; + if (message.port_id != null && message.hasOwnProperty("port_id")) + object.port_id = message.port_id; return object; - var message = new $root.ibc.applications.interchain_accounts.v1.CosmosTx(); - if (object.messages) { - if (!Array.isArray(object.messages)) - throw TypeError(".ibc.applications.interchain_accounts.v1.CosmosTx.messages: array expected"); - message.messages = []; - for (var i = 0; i < object.messages.length; ++i) { - if (typeof object.messages[i] !== "object") - throw TypeError(".ibc.applications.interchain_accounts.v1.CosmosTx.messages: object expected"); - message.messages[i] = $root.google.protobuf.Any.fromObject(object.messages[i]); - } - } - return message; - }; + }; - /** - * Creates a plain object from a CosmosTx message. Also converts values to other types if specified. - * @function toObject - * @memberof ibc.applications.interchain_accounts.v1.CosmosTx - * @static - * @param {ibc.applications.interchain_accounts.v1.CosmosTx} message CosmosTx - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - CosmosTx.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.messages = []; - if (message.messages && message.messages.length) { - object.messages = []; - for (var j = 0; j < message.messages.length; ++j) - object.messages[j] = $root.google.protobuf.Any.toObject(message.messages[j], options); - } - return object; - }; + /** + * Converts this MsgRegisterInterchainAccountResponse to JSON. + * @function toJSON + * @memberof ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccountResponse + * @instance + * @returns {Object.} JSON object + */ + MsgRegisterInterchainAccountResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Converts this CosmosTx to JSON. - * @function toJSON - * @memberof ibc.applications.interchain_accounts.v1.CosmosTx - * @instance - * @returns {Object.} JSON object - */ - CosmosTx.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + return MsgRegisterInterchainAccountResponse; + })(); - return CosmosTx; - })(); + v1.MsgSendTx = (function() { - v1.Metadata = (function() { + /** + * Properties of a MsgSendTx. + * @memberof ibc.applications.interchain_accounts.controller.v1 + * @interface IMsgSendTx + * @property {string|null} [owner] MsgSendTx owner + * @property {string|null} [connection_id] MsgSendTx connection_id + * @property {ibc.applications.interchain_accounts.v1.IInterchainAccountPacketData|null} [packet_data] MsgSendTx packet_data + * @property {Long|null} [relative_timeout] MsgSendTx relative_timeout + */ - /** - * Properties of a Metadata. - * @memberof ibc.applications.interchain_accounts.v1 - * @interface IMetadata - * @property {string|null} [version] Metadata version - * @property {string|null} [controller_connection_id] Metadata controller_connection_id - * @property {string|null} [host_connection_id] Metadata host_connection_id - * @property {string|null} [address] Metadata address - * @property {string|null} [encoding] Metadata encoding - * @property {string|null} [tx_type] Metadata tx_type - */ + /** + * Constructs a new MsgSendTx. + * @memberof ibc.applications.interchain_accounts.controller.v1 + * @classdesc Represents a MsgSendTx. + * @implements IMsgSendTx + * @constructor + * @param {ibc.applications.interchain_accounts.controller.v1.IMsgSendTx=} [properties] Properties to set + */ + function MsgSendTx(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Constructs a new Metadata. - * @memberof ibc.applications.interchain_accounts.v1 - * @classdesc Represents a Metadata. - * @implements IMetadata - * @constructor - * @param {ibc.applications.interchain_accounts.v1.IMetadata=} [properties] Properties to set - */ - function Metadata(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * MsgSendTx owner. + * @member {string} owner + * @memberof ibc.applications.interchain_accounts.controller.v1.MsgSendTx + * @instance + */ + MsgSendTx.prototype.owner = ""; - /** - * Metadata version. - * @member {string} version - * @memberof ibc.applications.interchain_accounts.v1.Metadata - * @instance - */ - Metadata.prototype.version = ""; + /** + * MsgSendTx connection_id. + * @member {string} connection_id + * @memberof ibc.applications.interchain_accounts.controller.v1.MsgSendTx + * @instance + */ + MsgSendTx.prototype.connection_id = ""; - /** - * Metadata controller_connection_id. - * @member {string} controller_connection_id - * @memberof ibc.applications.interchain_accounts.v1.Metadata - * @instance - */ - Metadata.prototype.controller_connection_id = ""; + /** + * MsgSendTx packet_data. + * @member {ibc.applications.interchain_accounts.v1.IInterchainAccountPacketData|null|undefined} packet_data + * @memberof ibc.applications.interchain_accounts.controller.v1.MsgSendTx + * @instance + */ + MsgSendTx.prototype.packet_data = null; - /** - * Metadata host_connection_id. - * @member {string} host_connection_id - * @memberof ibc.applications.interchain_accounts.v1.Metadata - * @instance - */ - Metadata.prototype.host_connection_id = ""; + /** + * MsgSendTx relative_timeout. + * @member {Long} relative_timeout + * @memberof ibc.applications.interchain_accounts.controller.v1.MsgSendTx + * @instance + */ + MsgSendTx.prototype.relative_timeout = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - /** - * Metadata address. - * @member {string} address - * @memberof ibc.applications.interchain_accounts.v1.Metadata - * @instance - */ - Metadata.prototype.address = ""; + /** + * Encodes the specified MsgSendTx message. Does not implicitly {@link ibc.applications.interchain_accounts.controller.v1.MsgSendTx.verify|verify} messages. + * @function encode + * @memberof ibc.applications.interchain_accounts.controller.v1.MsgSendTx + * @static + * @param {ibc.applications.interchain_accounts.controller.v1.IMsgSendTx} message MsgSendTx message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MsgSendTx.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.owner != null && Object.hasOwnProperty.call(message, "owner")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.owner); + if (message.connection_id != null && Object.hasOwnProperty.call(message, "connection_id")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.connection_id); + if (message.packet_data != null && Object.hasOwnProperty.call(message, "packet_data")) + $root.ibc.applications.interchain_accounts.v1.InterchainAccountPacketData.encode(message.packet_data, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.relative_timeout != null && Object.hasOwnProperty.call(message, "relative_timeout")) + writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.relative_timeout); + return writer; + }; - /** - * Metadata encoding. - * @member {string} encoding - * @memberof ibc.applications.interchain_accounts.v1.Metadata - * @instance - */ - Metadata.prototype.encoding = ""; + /** + * Encodes the specified MsgSendTx message, length delimited. Does not implicitly {@link ibc.applications.interchain_accounts.controller.v1.MsgSendTx.verify|verify} messages. + * @function encodeDelimited + * @memberof ibc.applications.interchain_accounts.controller.v1.MsgSendTx + * @static + * @param {ibc.applications.interchain_accounts.controller.v1.IMsgSendTx} message MsgSendTx message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MsgSendTx.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Metadata tx_type. - * @member {string} tx_type - * @memberof ibc.applications.interchain_accounts.v1.Metadata - * @instance - */ - Metadata.prototype.tx_type = ""; + /** + * Decodes a MsgSendTx message from the specified reader or buffer. + * @function decode + * @memberof ibc.applications.interchain_accounts.controller.v1.MsgSendTx + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {ibc.applications.interchain_accounts.controller.v1.MsgSendTx} MsgSendTx + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MsgSendTx.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.interchain_accounts.controller.v1.MsgSendTx(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.owner = reader.string(); + break; + case 2: + message.connection_id = reader.string(); + break; + case 3: + message.packet_data = $root.ibc.applications.interchain_accounts.v1.InterchainAccountPacketData.decode(reader, reader.uint32()); + break; + case 4: + message.relative_timeout = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Encodes the specified Metadata message. Does not implicitly {@link ibc.applications.interchain_accounts.v1.Metadata.verify|verify} messages. - * @function encode - * @memberof ibc.applications.interchain_accounts.v1.Metadata - * @static - * @param {ibc.applications.interchain_accounts.v1.IMetadata} message Metadata message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Metadata.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.version != null && Object.hasOwnProperty.call(message, "version")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.version); - if (message.controller_connection_id != null && Object.hasOwnProperty.call(message, "controller_connection_id")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.controller_connection_id); - if (message.host_connection_id != null && Object.hasOwnProperty.call(message, "host_connection_id")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.host_connection_id); - if (message.address != null && Object.hasOwnProperty.call(message, "address")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.address); - if (message.encoding != null && Object.hasOwnProperty.call(message, "encoding")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.encoding); - if (message.tx_type != null && Object.hasOwnProperty.call(message, "tx_type")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.tx_type); - return writer; - }; + /** + * Decodes a MsgSendTx message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof ibc.applications.interchain_accounts.controller.v1.MsgSendTx + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {ibc.applications.interchain_accounts.controller.v1.MsgSendTx} MsgSendTx + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MsgSendTx.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Encodes the specified Metadata message, length delimited. Does not implicitly {@link ibc.applications.interchain_accounts.v1.Metadata.verify|verify} messages. - * @function encodeDelimited - * @memberof ibc.applications.interchain_accounts.v1.Metadata - * @static - * @param {ibc.applications.interchain_accounts.v1.IMetadata} message Metadata message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Metadata.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Verifies a MsgSendTx message. + * @function verify + * @memberof ibc.applications.interchain_accounts.controller.v1.MsgSendTx + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MsgSendTx.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.owner != null && message.hasOwnProperty("owner")) + if (!$util.isString(message.owner)) + return "owner: string expected"; + if (message.connection_id != null && message.hasOwnProperty("connection_id")) + if (!$util.isString(message.connection_id)) + return "connection_id: string expected"; + if (message.packet_data != null && message.hasOwnProperty("packet_data")) { + var error = $root.ibc.applications.interchain_accounts.v1.InterchainAccountPacketData.verify(message.packet_data); + if (error) + return "packet_data." + error; + } + if (message.relative_timeout != null && message.hasOwnProperty("relative_timeout")) + if (!$util.isInteger(message.relative_timeout) && !(message.relative_timeout && $util.isInteger(message.relative_timeout.low) && $util.isInteger(message.relative_timeout.high))) + return "relative_timeout: integer|Long expected"; + return null; + }; - /** - * Decodes a Metadata message from the specified reader or buffer. - * @function decode - * @memberof ibc.applications.interchain_accounts.v1.Metadata - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.interchain_accounts.v1.Metadata} Metadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Metadata.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.interchain_accounts.v1.Metadata(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.version = reader.string(); - break; - case 2: - message.controller_connection_id = reader.string(); - break; - case 3: - message.host_connection_id = reader.string(); - break; - case 4: - message.address = reader.string(); - break; - case 5: - message.encoding = reader.string(); - break; - case 6: - message.tx_type = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; + /** + * Creates a MsgSendTx message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof ibc.applications.interchain_accounts.controller.v1.MsgSendTx + * @static + * @param {Object.} object Plain object + * @returns {ibc.applications.interchain_accounts.controller.v1.MsgSendTx} MsgSendTx + */ + MsgSendTx.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.interchain_accounts.controller.v1.MsgSendTx) + return object; + var message = new $root.ibc.applications.interchain_accounts.controller.v1.MsgSendTx(); + if (object.owner != null) + message.owner = String(object.owner); + if (object.connection_id != null) + message.connection_id = String(object.connection_id); + if (object.packet_data != null) { + if (typeof object.packet_data !== "object") + throw TypeError(".ibc.applications.interchain_accounts.controller.v1.MsgSendTx.packet_data: object expected"); + message.packet_data = $root.ibc.applications.interchain_accounts.v1.InterchainAccountPacketData.fromObject(object.packet_data); } - } - return message; - }; + if (object.relative_timeout != null) + if ($util.Long) + (message.relative_timeout = $util.Long.fromValue(object.relative_timeout)).unsigned = true; + else if (typeof object.relative_timeout === "string") + message.relative_timeout = parseInt(object.relative_timeout, 10); + else if (typeof object.relative_timeout === "number") + message.relative_timeout = object.relative_timeout; + else if (typeof object.relative_timeout === "object") + message.relative_timeout = new $util.LongBits(object.relative_timeout.low >>> 0, object.relative_timeout.high >>> 0).toNumber(true); + return message; + }; - /** - * Decodes a Metadata message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ibc.applications.interchain_accounts.v1.Metadata - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.interchain_accounts.v1.Metadata} Metadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Metadata.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Creates a plain object from a MsgSendTx message. Also converts values to other types if specified. + * @function toObject + * @memberof ibc.applications.interchain_accounts.controller.v1.MsgSendTx + * @static + * @param {ibc.applications.interchain_accounts.controller.v1.MsgSendTx} message MsgSendTx + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MsgSendTx.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.owner = ""; + object.connection_id = ""; + object.packet_data = null; + if ($util.Long) { + var long = new $util.Long(0, 0, true); + object.relative_timeout = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.relative_timeout = options.longs === String ? "0" : 0; + } + if (message.owner != null && message.hasOwnProperty("owner")) + object.owner = message.owner; + if (message.connection_id != null && message.hasOwnProperty("connection_id")) + object.connection_id = message.connection_id; + if (message.packet_data != null && message.hasOwnProperty("packet_data")) + object.packet_data = $root.ibc.applications.interchain_accounts.v1.InterchainAccountPacketData.toObject(message.packet_data, options); + if (message.relative_timeout != null && message.hasOwnProperty("relative_timeout")) + if (typeof message.relative_timeout === "number") + object.relative_timeout = options.longs === String ? String(message.relative_timeout) : message.relative_timeout; + else + object.relative_timeout = options.longs === String ? $util.Long.prototype.toString.call(message.relative_timeout) : options.longs === Number ? new $util.LongBits(message.relative_timeout.low >>> 0, message.relative_timeout.high >>> 0).toNumber(true) : message.relative_timeout; + return object; + }; - /** - * Verifies a Metadata message. - * @function verify - * @memberof ibc.applications.interchain_accounts.v1.Metadata - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Metadata.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.version != null && message.hasOwnProperty("version")) - if (!$util.isString(message.version)) - return "version: string expected"; - if (message.controller_connection_id != null && message.hasOwnProperty("controller_connection_id")) - if (!$util.isString(message.controller_connection_id)) - return "controller_connection_id: string expected"; - if (message.host_connection_id != null && message.hasOwnProperty("host_connection_id")) - if (!$util.isString(message.host_connection_id)) - return "host_connection_id: string expected"; - if (message.address != null && message.hasOwnProperty("address")) - if (!$util.isString(message.address)) - return "address: string expected"; - if (message.encoding != null && message.hasOwnProperty("encoding")) - if (!$util.isString(message.encoding)) - return "encoding: string expected"; - if (message.tx_type != null && message.hasOwnProperty("tx_type")) - if (!$util.isString(message.tx_type)) - return "tx_type: string expected"; - return null; - }; + /** + * Converts this MsgSendTx to JSON. + * @function toJSON + * @memberof ibc.applications.interchain_accounts.controller.v1.MsgSendTx + * @instance + * @returns {Object.} JSON object + */ + MsgSendTx.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Creates a Metadata message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof ibc.applications.interchain_accounts.v1.Metadata - * @static - * @param {Object.} object Plain object - * @returns {ibc.applications.interchain_accounts.v1.Metadata} Metadata - */ - Metadata.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.interchain_accounts.v1.Metadata) - return object; - var message = new $root.ibc.applications.interchain_accounts.v1.Metadata(); - if (object.version != null) - message.version = String(object.version); - if (object.controller_connection_id != null) - message.controller_connection_id = String(object.controller_connection_id); - if (object.host_connection_id != null) - message.host_connection_id = String(object.host_connection_id); - if (object.address != null) - message.address = String(object.address); - if (object.encoding != null) - message.encoding = String(object.encoding); - if (object.tx_type != null) - message.tx_type = String(object.tx_type); - return message; - }; + return MsgSendTx; + })(); - /** - * Creates a plain object from a Metadata message. Also converts values to other types if specified. - * @function toObject - * @memberof ibc.applications.interchain_accounts.v1.Metadata - * @static - * @param {ibc.applications.interchain_accounts.v1.Metadata} message Metadata - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Metadata.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.version = ""; - object.controller_connection_id = ""; - object.host_connection_id = ""; - object.address = ""; - object.encoding = ""; - object.tx_type = ""; + v1.MsgSendTxResponse = (function() { + + /** + * Properties of a MsgSendTxResponse. + * @memberof ibc.applications.interchain_accounts.controller.v1 + * @interface IMsgSendTxResponse + * @property {Long|null} [sequence] MsgSendTxResponse sequence + */ + + /** + * Constructs a new MsgSendTxResponse. + * @memberof ibc.applications.interchain_accounts.controller.v1 + * @classdesc Represents a MsgSendTxResponse. + * @implements IMsgSendTxResponse + * @constructor + * @param {ibc.applications.interchain_accounts.controller.v1.IMsgSendTxResponse=} [properties] Properties to set + */ + function MsgSendTxResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; } - if (message.version != null && message.hasOwnProperty("version")) - object.version = message.version; - if (message.controller_connection_id != null && message.hasOwnProperty("controller_connection_id")) - object.controller_connection_id = message.controller_connection_id; - if (message.host_connection_id != null && message.hasOwnProperty("host_connection_id")) - object.host_connection_id = message.host_connection_id; - if (message.address != null && message.hasOwnProperty("address")) - object.address = message.address; - if (message.encoding != null && message.hasOwnProperty("encoding")) - object.encoding = message.encoding; - if (message.tx_type != null && message.hasOwnProperty("tx_type")) - object.tx_type = message.tx_type; - return object; - }; - /** - * Converts this Metadata to JSON. - * @function toJSON - * @memberof ibc.applications.interchain_accounts.v1.Metadata - * @instance - * @returns {Object.} JSON object - */ - Metadata.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * MsgSendTxResponse sequence. + * @member {Long} sequence + * @memberof ibc.applications.interchain_accounts.controller.v1.MsgSendTxResponse + * @instance + */ + MsgSendTxResponse.prototype.sequence = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - return Metadata; - })(); + /** + * Encodes the specified MsgSendTxResponse message. Does not implicitly {@link ibc.applications.interchain_accounts.controller.v1.MsgSendTxResponse.verify|verify} messages. + * @function encode + * @memberof ibc.applications.interchain_accounts.controller.v1.MsgSendTxResponse + * @static + * @param {ibc.applications.interchain_accounts.controller.v1.IMsgSendTxResponse} message MsgSendTxResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MsgSendTxResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.sequence != null && Object.hasOwnProperty.call(message, "sequence")) + writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.sequence); + return writer; + }; - v1.GenesisState = (function() { + /** + * Encodes the specified MsgSendTxResponse message, length delimited. Does not implicitly {@link ibc.applications.interchain_accounts.controller.v1.MsgSendTxResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof ibc.applications.interchain_accounts.controller.v1.MsgSendTxResponse + * @static + * @param {ibc.applications.interchain_accounts.controller.v1.IMsgSendTxResponse} message MsgSendTxResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MsgSendTxResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Properties of a GenesisState. - * @memberof ibc.applications.interchain_accounts.v1 - * @interface IGenesisState - * @property {ibc.applications.interchain_accounts.v1.IControllerGenesisState|null} [controller_genesis_state] GenesisState controller_genesis_state - * @property {ibc.applications.interchain_accounts.v1.IHostGenesisState|null} [host_genesis_state] GenesisState host_genesis_state - */ + /** + * Decodes a MsgSendTxResponse message from the specified reader or buffer. + * @function decode + * @memberof ibc.applications.interchain_accounts.controller.v1.MsgSendTxResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {ibc.applications.interchain_accounts.controller.v1.MsgSendTxResponse} MsgSendTxResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MsgSendTxResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.interchain_accounts.controller.v1.MsgSendTxResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.sequence = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Constructs a new GenesisState. - * @memberof ibc.applications.interchain_accounts.v1 - * @classdesc Represents a GenesisState. - * @implements IGenesisState - * @constructor - * @param {ibc.applications.interchain_accounts.v1.IGenesisState=} [properties] Properties to set - */ - function GenesisState(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Decodes a MsgSendTxResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof ibc.applications.interchain_accounts.controller.v1.MsgSendTxResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {ibc.applications.interchain_accounts.controller.v1.MsgSendTxResponse} MsgSendTxResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MsgSendTxResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * GenesisState controller_genesis_state. - * @member {ibc.applications.interchain_accounts.v1.IControllerGenesisState|null|undefined} controller_genesis_state - * @memberof ibc.applications.interchain_accounts.v1.GenesisState - * @instance - */ - GenesisState.prototype.controller_genesis_state = null; + /** + * Verifies a MsgSendTxResponse message. + * @function verify + * @memberof ibc.applications.interchain_accounts.controller.v1.MsgSendTxResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MsgSendTxResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.sequence != null && message.hasOwnProperty("sequence")) + if (!$util.isInteger(message.sequence) && !(message.sequence && $util.isInteger(message.sequence.low) && $util.isInteger(message.sequence.high))) + return "sequence: integer|Long expected"; + return null; + }; - /** - * GenesisState host_genesis_state. - * @member {ibc.applications.interchain_accounts.v1.IHostGenesisState|null|undefined} host_genesis_state - * @memberof ibc.applications.interchain_accounts.v1.GenesisState - * @instance - */ - GenesisState.prototype.host_genesis_state = null; + /** + * Creates a MsgSendTxResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof ibc.applications.interchain_accounts.controller.v1.MsgSendTxResponse + * @static + * @param {Object.} object Plain object + * @returns {ibc.applications.interchain_accounts.controller.v1.MsgSendTxResponse} MsgSendTxResponse + */ + MsgSendTxResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.interchain_accounts.controller.v1.MsgSendTxResponse) + return object; + var message = new $root.ibc.applications.interchain_accounts.controller.v1.MsgSendTxResponse(); + if (object.sequence != null) + if ($util.Long) + (message.sequence = $util.Long.fromValue(object.sequence)).unsigned = true; + else if (typeof object.sequence === "string") + message.sequence = parseInt(object.sequence, 10); + else if (typeof object.sequence === "number") + message.sequence = object.sequence; + else if (typeof object.sequence === "object") + message.sequence = new $util.LongBits(object.sequence.low >>> 0, object.sequence.high >>> 0).toNumber(true); + return message; + }; - /** - * Encodes the specified GenesisState message. Does not implicitly {@link ibc.applications.interchain_accounts.v1.GenesisState.verify|verify} messages. - * @function encode - * @memberof ibc.applications.interchain_accounts.v1.GenesisState - * @static - * @param {ibc.applications.interchain_accounts.v1.IGenesisState} message GenesisState message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GenesisState.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.controller_genesis_state != null && Object.hasOwnProperty.call(message, "controller_genesis_state")) - $root.ibc.applications.interchain_accounts.v1.ControllerGenesisState.encode(message.controller_genesis_state, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.host_genesis_state != null && Object.hasOwnProperty.call(message, "host_genesis_state")) - $root.ibc.applications.interchain_accounts.v1.HostGenesisState.encode(message.host_genesis_state, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; + /** + * Creates a plain object from a MsgSendTxResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof ibc.applications.interchain_accounts.controller.v1.MsgSendTxResponse + * @static + * @param {ibc.applications.interchain_accounts.controller.v1.MsgSendTxResponse} message MsgSendTxResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MsgSendTxResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + if ($util.Long) { + var long = new $util.Long(0, 0, true); + object.sequence = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.sequence = options.longs === String ? "0" : 0; + if (message.sequence != null && message.hasOwnProperty("sequence")) + if (typeof message.sequence === "number") + object.sequence = options.longs === String ? String(message.sequence) : message.sequence; + else + object.sequence = options.longs === String ? $util.Long.prototype.toString.call(message.sequence) : options.longs === Number ? new $util.LongBits(message.sequence.low >>> 0, message.sequence.high >>> 0).toNumber(true) : message.sequence; + return object; + }; - /** - * Encodes the specified GenesisState message, length delimited. Does not implicitly {@link ibc.applications.interchain_accounts.v1.GenesisState.verify|verify} messages. - * @function encodeDelimited - * @memberof ibc.applications.interchain_accounts.v1.GenesisState - * @static - * @param {ibc.applications.interchain_accounts.v1.IGenesisState} message GenesisState message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GenesisState.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Converts this MsgSendTxResponse to JSON. + * @function toJSON + * @memberof ibc.applications.interchain_accounts.controller.v1.MsgSendTxResponse + * @instance + * @returns {Object.} JSON object + */ + MsgSendTxResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Decodes a GenesisState message from the specified reader or buffer. - * @function decode - * @memberof ibc.applications.interchain_accounts.v1.GenesisState - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.interchain_accounts.v1.GenesisState} GenesisState - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GenesisState.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.interchain_accounts.v1.GenesisState(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.controller_genesis_state = $root.ibc.applications.interchain_accounts.v1.ControllerGenesisState.decode(reader, reader.uint32()); - break; - case 2: - message.host_genesis_state = $root.ibc.applications.interchain_accounts.v1.HostGenesisState.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + return MsgSendTxResponse; + })(); - /** - * Decodes a GenesisState message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ibc.applications.interchain_accounts.v1.GenesisState - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.interchain_accounts.v1.GenesisState} GenesisState - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GenesisState.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + v1.Query = (function() { - /** - * Verifies a GenesisState message. - * @function verify - * @memberof ibc.applications.interchain_accounts.v1.GenesisState - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GenesisState.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.controller_genesis_state != null && message.hasOwnProperty("controller_genesis_state")) { - var error = $root.ibc.applications.interchain_accounts.v1.ControllerGenesisState.verify(message.controller_genesis_state); - if (error) - return "controller_genesis_state." + error; - } - if (message.host_genesis_state != null && message.hasOwnProperty("host_genesis_state")) { - var error = $root.ibc.applications.interchain_accounts.v1.HostGenesisState.verify(message.host_genesis_state); - if (error) - return "host_genesis_state." + error; + /** + * Constructs a new Query service. + * @memberof ibc.applications.interchain_accounts.controller.v1 + * @classdesc Represents a Query + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + */ + function Query(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); } - return null; - }; - /** - * Creates a GenesisState message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof ibc.applications.interchain_accounts.v1.GenesisState - * @static - * @param {Object.} object Plain object - * @returns {ibc.applications.interchain_accounts.v1.GenesisState} GenesisState - */ - GenesisState.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.interchain_accounts.v1.GenesisState) - return object; - var message = new $root.ibc.applications.interchain_accounts.v1.GenesisState(); - if (object.controller_genesis_state != null) { - if (typeof object.controller_genesis_state !== "object") - throw TypeError(".ibc.applications.interchain_accounts.v1.GenesisState.controller_genesis_state: object expected"); - message.controller_genesis_state = $root.ibc.applications.interchain_accounts.v1.ControllerGenesisState.fromObject(object.controller_genesis_state); - } - if (object.host_genesis_state != null) { - if (typeof object.host_genesis_state !== "object") - throw TypeError(".ibc.applications.interchain_accounts.v1.GenesisState.host_genesis_state: object expected"); - message.host_genesis_state = $root.ibc.applications.interchain_accounts.v1.HostGenesisState.fromObject(object.host_genesis_state); - } - return message; - }; + (Query.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Query; - /** - * Creates a plain object from a GenesisState message. Also converts values to other types if specified. - * @function toObject - * @memberof ibc.applications.interchain_accounts.v1.GenesisState - * @static - * @param {ibc.applications.interchain_accounts.v1.GenesisState} message GenesisState - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GenesisState.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.controller_genesis_state = null; - object.host_genesis_state = null; - } - if (message.controller_genesis_state != null && message.hasOwnProperty("controller_genesis_state")) - object.controller_genesis_state = $root.ibc.applications.interchain_accounts.v1.ControllerGenesisState.toObject(message.controller_genesis_state, options); - if (message.host_genesis_state != null && message.hasOwnProperty("host_genesis_state")) - object.host_genesis_state = $root.ibc.applications.interchain_accounts.v1.HostGenesisState.toObject(message.host_genesis_state, options); - return object; - }; + /** + * Callback as used by {@link ibc.applications.interchain_accounts.controller.v1.Query#interchainAccount}. + * @memberof ibc.applications.interchain_accounts.controller.v1.Query + * @typedef InterchainAccountCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountResponse} [response] QueryInterchainAccountResponse + */ - /** - * Converts this GenesisState to JSON. - * @function toJSON - * @memberof ibc.applications.interchain_accounts.v1.GenesisState - * @instance - * @returns {Object.} JSON object - */ - GenesisState.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Calls InterchainAccount. + * @function interchainAccount + * @memberof ibc.applications.interchain_accounts.controller.v1.Query + * @instance + * @param {ibc.applications.interchain_accounts.controller.v1.IQueryInterchainAccountRequest} request QueryInterchainAccountRequest message or plain object + * @param {ibc.applications.interchain_accounts.controller.v1.Query.InterchainAccountCallback} callback Node-style callback called with the error, if any, and QueryInterchainAccountResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Query.prototype.interchainAccount = function interchainAccount(request, callback) { + return this.rpcCall(interchainAccount, $root.ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountRequest, $root.ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountResponse, request, callback); + }, "name", { value: "InterchainAccount" }); - return GenesisState; - })(); + /** + * Calls InterchainAccount. + * @function interchainAccount + * @memberof ibc.applications.interchain_accounts.controller.v1.Query + * @instance + * @param {ibc.applications.interchain_accounts.controller.v1.IQueryInterchainAccountRequest} request QueryInterchainAccountRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ - v1.ControllerGenesisState = (function() { + /** + * Callback as used by {@link ibc.applications.interchain_accounts.controller.v1.Query#params}. + * @memberof ibc.applications.interchain_accounts.controller.v1.Query + * @typedef ParamsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.applications.interchain_accounts.controller.v1.QueryParamsResponse} [response] QueryParamsResponse + */ - /** - * Properties of a ControllerGenesisState. - * @memberof ibc.applications.interchain_accounts.v1 - * @interface IControllerGenesisState - * @property {Array.|null} [active_channels] ControllerGenesisState active_channels - * @property {Array.|null} [interchain_accounts] ControllerGenesisState interchain_accounts - * @property {Array.|null} [ports] ControllerGenesisState ports - * @property {ibc.applications.interchain_accounts.controller.v1.IParams|null} [params] ControllerGenesisState params - */ + /** + * Calls Params. + * @function params + * @memberof ibc.applications.interchain_accounts.controller.v1.Query + * @instance + * @param {ibc.applications.interchain_accounts.controller.v1.IQueryParamsRequest} request QueryParamsRequest message or plain object + * @param {ibc.applications.interchain_accounts.controller.v1.Query.ParamsCallback} callback Node-style callback called with the error, if any, and QueryParamsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Query.prototype.params = function params(request, callback) { + return this.rpcCall(params, $root.ibc.applications.interchain_accounts.controller.v1.QueryParamsRequest, $root.ibc.applications.interchain_accounts.controller.v1.QueryParamsResponse, request, callback); + }, "name", { value: "Params" }); - /** - * Constructs a new ControllerGenesisState. - * @memberof ibc.applications.interchain_accounts.v1 - * @classdesc Represents a ControllerGenesisState. - * @implements IControllerGenesisState - * @constructor - * @param {ibc.applications.interchain_accounts.v1.IControllerGenesisState=} [properties] Properties to set - */ - function ControllerGenesisState(properties) { - this.active_channels = []; - this.interchain_accounts = []; - this.ports = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Calls Params. + * @function params + * @memberof ibc.applications.interchain_accounts.controller.v1.Query + * @instance + * @param {ibc.applications.interchain_accounts.controller.v1.IQueryParamsRequest} request QueryParamsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ - /** - * ControllerGenesisState active_channels. - * @member {Array.} active_channels - * @memberof ibc.applications.interchain_accounts.v1.ControllerGenesisState - * @instance - */ - ControllerGenesisState.prototype.active_channels = $util.emptyArray; + return Query; + })(); - /** - * ControllerGenesisState interchain_accounts. - * @member {Array.} interchain_accounts - * @memberof ibc.applications.interchain_accounts.v1.ControllerGenesisState - * @instance - */ - ControllerGenesisState.prototype.interchain_accounts = $util.emptyArray; + v1.QueryInterchainAccountRequest = (function() { - /** - * ControllerGenesisState ports. - * @member {Array.} ports - * @memberof ibc.applications.interchain_accounts.v1.ControllerGenesisState - * @instance - */ - ControllerGenesisState.prototype.ports = $util.emptyArray; + /** + * Properties of a QueryInterchainAccountRequest. + * @memberof ibc.applications.interchain_accounts.controller.v1 + * @interface IQueryInterchainAccountRequest + * @property {string|null} [owner] QueryInterchainAccountRequest owner + * @property {string|null} [connection_id] QueryInterchainAccountRequest connection_id + */ - /** - * ControllerGenesisState params. - * @member {ibc.applications.interchain_accounts.controller.v1.IParams|null|undefined} params - * @memberof ibc.applications.interchain_accounts.v1.ControllerGenesisState - * @instance - */ - ControllerGenesisState.prototype.params = null; + /** + * Constructs a new QueryInterchainAccountRequest. + * @memberof ibc.applications.interchain_accounts.controller.v1 + * @classdesc Represents a QueryInterchainAccountRequest. + * @implements IQueryInterchainAccountRequest + * @constructor + * @param {ibc.applications.interchain_accounts.controller.v1.IQueryInterchainAccountRequest=} [properties] Properties to set + */ + function QueryInterchainAccountRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Encodes the specified ControllerGenesisState message. Does not implicitly {@link ibc.applications.interchain_accounts.v1.ControllerGenesisState.verify|verify} messages. - * @function encode - * @memberof ibc.applications.interchain_accounts.v1.ControllerGenesisState - * @static - * @param {ibc.applications.interchain_accounts.v1.IControllerGenesisState} message ControllerGenesisState message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ControllerGenesisState.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.active_channels != null && message.active_channels.length) - for (var i = 0; i < message.active_channels.length; ++i) - $root.ibc.applications.interchain_accounts.v1.ActiveChannel.encode(message.active_channels[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.interchain_accounts != null && message.interchain_accounts.length) - for (var i = 0; i < message.interchain_accounts.length; ++i) - $root.ibc.applications.interchain_accounts.v1.RegisteredInterchainAccount.encode(message.interchain_accounts[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.ports != null && message.ports.length) - for (var i = 0; i < message.ports.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.ports[i]); - if (message.params != null && Object.hasOwnProperty.call(message, "params")) - $root.ibc.applications.interchain_accounts.controller.v1.Params.encode(message.params, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - return writer; - }; + /** + * QueryInterchainAccountRequest owner. + * @member {string} owner + * @memberof ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountRequest + * @instance + */ + QueryInterchainAccountRequest.prototype.owner = ""; - /** - * Encodes the specified ControllerGenesisState message, length delimited. Does not implicitly {@link ibc.applications.interchain_accounts.v1.ControllerGenesisState.verify|verify} messages. - * @function encodeDelimited - * @memberof ibc.applications.interchain_accounts.v1.ControllerGenesisState - * @static - * @param {ibc.applications.interchain_accounts.v1.IControllerGenesisState} message ControllerGenesisState message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ControllerGenesisState.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * QueryInterchainAccountRequest connection_id. + * @member {string} connection_id + * @memberof ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountRequest + * @instance + */ + QueryInterchainAccountRequest.prototype.connection_id = ""; - /** - * Decodes a ControllerGenesisState message from the specified reader or buffer. - * @function decode - * @memberof ibc.applications.interchain_accounts.v1.ControllerGenesisState - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.interchain_accounts.v1.ControllerGenesisState} ControllerGenesisState - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ControllerGenesisState.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.interchain_accounts.v1.ControllerGenesisState(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.active_channels && message.active_channels.length)) - message.active_channels = []; - message.active_channels.push($root.ibc.applications.interchain_accounts.v1.ActiveChannel.decode(reader, reader.uint32())); - break; - case 2: - if (!(message.interchain_accounts && message.interchain_accounts.length)) - message.interchain_accounts = []; - message.interchain_accounts.push($root.ibc.applications.interchain_accounts.v1.RegisteredInterchainAccount.decode(reader, reader.uint32())); - break; - case 3: - if (!(message.ports && message.ports.length)) - message.ports = []; - message.ports.push(reader.string()); - break; - case 4: - message.params = $root.ibc.applications.interchain_accounts.controller.v1.Params.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; + /** + * Encodes the specified QueryInterchainAccountRequest message. Does not implicitly {@link ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountRequest.verify|verify} messages. + * @function encode + * @memberof ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountRequest + * @static + * @param {ibc.applications.interchain_accounts.controller.v1.IQueryInterchainAccountRequest} message QueryInterchainAccountRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + QueryInterchainAccountRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.owner != null && Object.hasOwnProperty.call(message, "owner")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.owner); + if (message.connection_id != null && Object.hasOwnProperty.call(message, "connection_id")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.connection_id); + return writer; + }; + + /** + * Encodes the specified QueryInterchainAccountRequest message, length delimited. Does not implicitly {@link ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountRequest + * @static + * @param {ibc.applications.interchain_accounts.controller.v1.IQueryInterchainAccountRequest} message QueryInterchainAccountRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + QueryInterchainAccountRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a QueryInterchainAccountRequest message from the specified reader or buffer. + * @function decode + * @memberof ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountRequest} QueryInterchainAccountRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + QueryInterchainAccountRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.owner = reader.string(); + break; + case 2: + message.connection_id = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } } - } - return message; - }; + return message; + }; + + /** + * Decodes a QueryInterchainAccountRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountRequest} QueryInterchainAccountRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + QueryInterchainAccountRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a QueryInterchainAccountRequest message. + * @function verify + * @memberof ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + QueryInterchainAccountRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.owner != null && message.hasOwnProperty("owner")) + if (!$util.isString(message.owner)) + return "owner: string expected"; + if (message.connection_id != null && message.hasOwnProperty("connection_id")) + if (!$util.isString(message.connection_id)) + return "connection_id: string expected"; + return null; + }; - /** - * Decodes a ControllerGenesisState message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ibc.applications.interchain_accounts.v1.ControllerGenesisState - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.interchain_accounts.v1.ControllerGenesisState} ControllerGenesisState - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ControllerGenesisState.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Creates a QueryInterchainAccountRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountRequest + * @static + * @param {Object.} object Plain object + * @returns {ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountRequest} QueryInterchainAccountRequest + */ + QueryInterchainAccountRequest.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountRequest) + return object; + var message = new $root.ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountRequest(); + if (object.owner != null) + message.owner = String(object.owner); + if (object.connection_id != null) + message.connection_id = String(object.connection_id); + return message; + }; - /** - * Verifies a ControllerGenesisState message. - * @function verify - * @memberof ibc.applications.interchain_accounts.v1.ControllerGenesisState - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ControllerGenesisState.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.active_channels != null && message.hasOwnProperty("active_channels")) { - if (!Array.isArray(message.active_channels)) - return "active_channels: array expected"; - for (var i = 0; i < message.active_channels.length; ++i) { - var error = $root.ibc.applications.interchain_accounts.v1.ActiveChannel.verify(message.active_channels[i]); - if (error) - return "active_channels." + error; - } - } - if (message.interchain_accounts != null && message.hasOwnProperty("interchain_accounts")) { - if (!Array.isArray(message.interchain_accounts)) - return "interchain_accounts: array expected"; - for (var i = 0; i < message.interchain_accounts.length; ++i) { - var error = $root.ibc.applications.interchain_accounts.v1.RegisteredInterchainAccount.verify(message.interchain_accounts[i]); - if (error) - return "interchain_accounts." + error; + /** + * Creates a plain object from a QueryInterchainAccountRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountRequest + * @static + * @param {ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountRequest} message QueryInterchainAccountRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + QueryInterchainAccountRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.owner = ""; + object.connection_id = ""; } - } - if (message.ports != null && message.hasOwnProperty("ports")) { - if (!Array.isArray(message.ports)) - return "ports: array expected"; - for (var i = 0; i < message.ports.length; ++i) - if (!$util.isString(message.ports[i])) - return "ports: string[] expected"; - } - if (message.params != null && message.hasOwnProperty("params")) { - var error = $root.ibc.applications.interchain_accounts.controller.v1.Params.verify(message.params); - if (error) - return "params." + error; - } - return null; - }; - - /** - * Creates a ControllerGenesisState message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof ibc.applications.interchain_accounts.v1.ControllerGenesisState - * @static - * @param {Object.} object Plain object - * @returns {ibc.applications.interchain_accounts.v1.ControllerGenesisState} ControllerGenesisState - */ - ControllerGenesisState.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.interchain_accounts.v1.ControllerGenesisState) + if (message.owner != null && message.hasOwnProperty("owner")) + object.owner = message.owner; + if (message.connection_id != null && message.hasOwnProperty("connection_id")) + object.connection_id = message.connection_id; return object; - var message = new $root.ibc.applications.interchain_accounts.v1.ControllerGenesisState(); - if (object.active_channels) { - if (!Array.isArray(object.active_channels)) - throw TypeError(".ibc.applications.interchain_accounts.v1.ControllerGenesisState.active_channels: array expected"); - message.active_channels = []; - for (var i = 0; i < object.active_channels.length; ++i) { - if (typeof object.active_channels[i] !== "object") - throw TypeError(".ibc.applications.interchain_accounts.v1.ControllerGenesisState.active_channels: object expected"); - message.active_channels[i] = $root.ibc.applications.interchain_accounts.v1.ActiveChannel.fromObject(object.active_channels[i]); - } - } - if (object.interchain_accounts) { - if (!Array.isArray(object.interchain_accounts)) - throw TypeError(".ibc.applications.interchain_accounts.v1.ControllerGenesisState.interchain_accounts: array expected"); - message.interchain_accounts = []; - for (var i = 0; i < object.interchain_accounts.length; ++i) { - if (typeof object.interchain_accounts[i] !== "object") - throw TypeError(".ibc.applications.interchain_accounts.v1.ControllerGenesisState.interchain_accounts: object expected"); - message.interchain_accounts[i] = $root.ibc.applications.interchain_accounts.v1.RegisteredInterchainAccount.fromObject(object.interchain_accounts[i]); - } - } - if (object.ports) { - if (!Array.isArray(object.ports)) - throw TypeError(".ibc.applications.interchain_accounts.v1.ControllerGenesisState.ports: array expected"); - message.ports = []; - for (var i = 0; i < object.ports.length; ++i) - message.ports[i] = String(object.ports[i]); - } - if (object.params != null) { - if (typeof object.params !== "object") - throw TypeError(".ibc.applications.interchain_accounts.v1.ControllerGenesisState.params: object expected"); - message.params = $root.ibc.applications.interchain_accounts.controller.v1.Params.fromObject(object.params); - } - return message; - }; + }; - /** - * Creates a plain object from a ControllerGenesisState message. Also converts values to other types if specified. - * @function toObject - * @memberof ibc.applications.interchain_accounts.v1.ControllerGenesisState - * @static - * @param {ibc.applications.interchain_accounts.v1.ControllerGenesisState} message ControllerGenesisState - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ControllerGenesisState.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) { - object.active_channels = []; - object.interchain_accounts = []; - object.ports = []; - } - if (options.defaults) - object.params = null; - if (message.active_channels && message.active_channels.length) { - object.active_channels = []; - for (var j = 0; j < message.active_channels.length; ++j) - object.active_channels[j] = $root.ibc.applications.interchain_accounts.v1.ActiveChannel.toObject(message.active_channels[j], options); - } - if (message.interchain_accounts && message.interchain_accounts.length) { - object.interchain_accounts = []; - for (var j = 0; j < message.interchain_accounts.length; ++j) - object.interchain_accounts[j] = $root.ibc.applications.interchain_accounts.v1.RegisteredInterchainAccount.toObject(message.interchain_accounts[j], options); - } - if (message.ports && message.ports.length) { - object.ports = []; - for (var j = 0; j < message.ports.length; ++j) - object.ports[j] = message.ports[j]; - } - if (message.params != null && message.hasOwnProperty("params")) - object.params = $root.ibc.applications.interchain_accounts.controller.v1.Params.toObject(message.params, options); - return object; - }; + /** + * Converts this QueryInterchainAccountRequest to JSON. + * @function toJSON + * @memberof ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountRequest + * @instance + * @returns {Object.} JSON object + */ + QueryInterchainAccountRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Converts this ControllerGenesisState to JSON. - * @function toJSON - * @memberof ibc.applications.interchain_accounts.v1.ControllerGenesisState - * @instance - * @returns {Object.} JSON object - */ - ControllerGenesisState.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + return QueryInterchainAccountRequest; + })(); - return ControllerGenesisState; - })(); + v1.QueryInterchainAccountResponse = (function() { - v1.HostGenesisState = (function() { + /** + * Properties of a QueryInterchainAccountResponse. + * @memberof ibc.applications.interchain_accounts.controller.v1 + * @interface IQueryInterchainAccountResponse + * @property {string|null} [address] QueryInterchainAccountResponse address + */ - /** - * Properties of a HostGenesisState. - * @memberof ibc.applications.interchain_accounts.v1 - * @interface IHostGenesisState - * @property {Array.|null} [active_channels] HostGenesisState active_channels - * @property {Array.|null} [interchain_accounts] HostGenesisState interchain_accounts - * @property {string|null} [port] HostGenesisState port - * @property {ibc.applications.interchain_accounts.host.v1.IParams|null} [params] HostGenesisState params - */ + /** + * Constructs a new QueryInterchainAccountResponse. + * @memberof ibc.applications.interchain_accounts.controller.v1 + * @classdesc Represents a QueryInterchainAccountResponse. + * @implements IQueryInterchainAccountResponse + * @constructor + * @param {ibc.applications.interchain_accounts.controller.v1.IQueryInterchainAccountResponse=} [properties] Properties to set + */ + function QueryInterchainAccountResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Constructs a new HostGenesisState. - * @memberof ibc.applications.interchain_accounts.v1 - * @classdesc Represents a HostGenesisState. - * @implements IHostGenesisState - * @constructor - * @param {ibc.applications.interchain_accounts.v1.IHostGenesisState=} [properties] Properties to set - */ - function HostGenesisState(properties) { - this.active_channels = []; - this.interchain_accounts = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * QueryInterchainAccountResponse address. + * @member {string} address + * @memberof ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountResponse + * @instance + */ + QueryInterchainAccountResponse.prototype.address = ""; - /** - * HostGenesisState active_channels. - * @member {Array.} active_channels - * @memberof ibc.applications.interchain_accounts.v1.HostGenesisState - * @instance - */ - HostGenesisState.prototype.active_channels = $util.emptyArray; + /** + * Encodes the specified QueryInterchainAccountResponse message. Does not implicitly {@link ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountResponse.verify|verify} messages. + * @function encode + * @memberof ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountResponse + * @static + * @param {ibc.applications.interchain_accounts.controller.v1.IQueryInterchainAccountResponse} message QueryInterchainAccountResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + QueryInterchainAccountResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.address != null && Object.hasOwnProperty.call(message, "address")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.address); + return writer; + }; - /** - * HostGenesisState interchain_accounts. - * @member {Array.} interchain_accounts - * @memberof ibc.applications.interchain_accounts.v1.HostGenesisState - * @instance - */ - HostGenesisState.prototype.interchain_accounts = $util.emptyArray; + /** + * Encodes the specified QueryInterchainAccountResponse message, length delimited. Does not implicitly {@link ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountResponse + * @static + * @param {ibc.applications.interchain_accounts.controller.v1.IQueryInterchainAccountResponse} message QueryInterchainAccountResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + QueryInterchainAccountResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * HostGenesisState port. - * @member {string} port - * @memberof ibc.applications.interchain_accounts.v1.HostGenesisState - * @instance - */ - HostGenesisState.prototype.port = ""; + /** + * Decodes a QueryInterchainAccountResponse message from the specified reader or buffer. + * @function decode + * @memberof ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountResponse} QueryInterchainAccountResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + QueryInterchainAccountResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.address = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * HostGenesisState params. - * @member {ibc.applications.interchain_accounts.host.v1.IParams|null|undefined} params - * @memberof ibc.applications.interchain_accounts.v1.HostGenesisState - * @instance - */ - HostGenesisState.prototype.params = null; + /** + * Decodes a QueryInterchainAccountResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountResponse} QueryInterchainAccountResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + QueryInterchainAccountResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Encodes the specified HostGenesisState message. Does not implicitly {@link ibc.applications.interchain_accounts.v1.HostGenesisState.verify|verify} messages. - * @function encode - * @memberof ibc.applications.interchain_accounts.v1.HostGenesisState - * @static - * @param {ibc.applications.interchain_accounts.v1.IHostGenesisState} message HostGenesisState message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - HostGenesisState.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.active_channels != null && message.active_channels.length) - for (var i = 0; i < message.active_channels.length; ++i) - $root.ibc.applications.interchain_accounts.v1.ActiveChannel.encode(message.active_channels[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.interchain_accounts != null && message.interchain_accounts.length) - for (var i = 0; i < message.interchain_accounts.length; ++i) - $root.ibc.applications.interchain_accounts.v1.RegisteredInterchainAccount.encode(message.interchain_accounts[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.port != null && Object.hasOwnProperty.call(message, "port")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.port); - if (message.params != null && Object.hasOwnProperty.call(message, "params")) - $root.ibc.applications.interchain_accounts.host.v1.Params.encode(message.params, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - return writer; - }; + /** + * Verifies a QueryInterchainAccountResponse message. + * @function verify + * @memberof ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + QueryInterchainAccountResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.address != null && message.hasOwnProperty("address")) + if (!$util.isString(message.address)) + return "address: string expected"; + return null; + }; - /** - * Encodes the specified HostGenesisState message, length delimited. Does not implicitly {@link ibc.applications.interchain_accounts.v1.HostGenesisState.verify|verify} messages. - * @function encodeDelimited - * @memberof ibc.applications.interchain_accounts.v1.HostGenesisState - * @static - * @param {ibc.applications.interchain_accounts.v1.IHostGenesisState} message HostGenesisState message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - HostGenesisState.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Creates a QueryInterchainAccountResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountResponse + * @static + * @param {Object.} object Plain object + * @returns {ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountResponse} QueryInterchainAccountResponse + */ + QueryInterchainAccountResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountResponse) + return object; + var message = new $root.ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountResponse(); + if (object.address != null) + message.address = String(object.address); + return message; + }; - /** - * Decodes a HostGenesisState message from the specified reader or buffer. - * @function decode - * @memberof ibc.applications.interchain_accounts.v1.HostGenesisState - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.interchain_accounts.v1.HostGenesisState} HostGenesisState - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - HostGenesisState.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.interchain_accounts.v1.HostGenesisState(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.active_channels && message.active_channels.length)) - message.active_channels = []; - message.active_channels.push($root.ibc.applications.interchain_accounts.v1.ActiveChannel.decode(reader, reader.uint32())); - break; - case 2: - if (!(message.interchain_accounts && message.interchain_accounts.length)) - message.interchain_accounts = []; - message.interchain_accounts.push($root.ibc.applications.interchain_accounts.v1.RegisteredInterchainAccount.decode(reader, reader.uint32())); - break; - case 3: - message.port = reader.string(); - break; - case 4: - message.params = $root.ibc.applications.interchain_accounts.host.v1.Params.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Creates a plain object from a QueryInterchainAccountResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountResponse + * @static + * @param {ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountResponse} message QueryInterchainAccountResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + QueryInterchainAccountResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.address = ""; + if (message.address != null && message.hasOwnProperty("address")) + object.address = message.address; + return object; + }; - /** - * Decodes a HostGenesisState message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ibc.applications.interchain_accounts.v1.HostGenesisState - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.interchain_accounts.v1.HostGenesisState} HostGenesisState - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - HostGenesisState.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Converts this QueryInterchainAccountResponse to JSON. + * @function toJSON + * @memberof ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountResponse + * @instance + * @returns {Object.} JSON object + */ + QueryInterchainAccountResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Verifies a HostGenesisState message. - * @function verify - * @memberof ibc.applications.interchain_accounts.v1.HostGenesisState - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - HostGenesisState.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.active_channels != null && message.hasOwnProperty("active_channels")) { - if (!Array.isArray(message.active_channels)) - return "active_channels: array expected"; - for (var i = 0; i < message.active_channels.length; ++i) { - var error = $root.ibc.applications.interchain_accounts.v1.ActiveChannel.verify(message.active_channels[i]); - if (error) - return "active_channels." + error; - } - } - if (message.interchain_accounts != null && message.hasOwnProperty("interchain_accounts")) { - if (!Array.isArray(message.interchain_accounts)) - return "interchain_accounts: array expected"; - for (var i = 0; i < message.interchain_accounts.length; ++i) { - var error = $root.ibc.applications.interchain_accounts.v1.RegisteredInterchainAccount.verify(message.interchain_accounts[i]); - if (error) - return "interchain_accounts." + error; - } - } - if (message.port != null && message.hasOwnProperty("port")) - if (!$util.isString(message.port)) - return "port: string expected"; - if (message.params != null && message.hasOwnProperty("params")) { - var error = $root.ibc.applications.interchain_accounts.host.v1.Params.verify(message.params); - if (error) - return "params." + error; - } - return null; - }; + return QueryInterchainAccountResponse; + })(); - /** - * Creates a HostGenesisState message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof ibc.applications.interchain_accounts.v1.HostGenesisState - * @static - * @param {Object.} object Plain object - * @returns {ibc.applications.interchain_accounts.v1.HostGenesisState} HostGenesisState - */ - HostGenesisState.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.interchain_accounts.v1.HostGenesisState) - return object; - var message = new $root.ibc.applications.interchain_accounts.v1.HostGenesisState(); - if (object.active_channels) { - if (!Array.isArray(object.active_channels)) - throw TypeError(".ibc.applications.interchain_accounts.v1.HostGenesisState.active_channels: array expected"); - message.active_channels = []; - for (var i = 0; i < object.active_channels.length; ++i) { - if (typeof object.active_channels[i] !== "object") - throw TypeError(".ibc.applications.interchain_accounts.v1.HostGenesisState.active_channels: object expected"); - message.active_channels[i] = $root.ibc.applications.interchain_accounts.v1.ActiveChannel.fromObject(object.active_channels[i]); - } - } - if (object.interchain_accounts) { - if (!Array.isArray(object.interchain_accounts)) - throw TypeError(".ibc.applications.interchain_accounts.v1.HostGenesisState.interchain_accounts: array expected"); - message.interchain_accounts = []; - for (var i = 0; i < object.interchain_accounts.length; ++i) { - if (typeof object.interchain_accounts[i] !== "object") - throw TypeError(".ibc.applications.interchain_accounts.v1.HostGenesisState.interchain_accounts: object expected"); - message.interchain_accounts[i] = $root.ibc.applications.interchain_accounts.v1.RegisteredInterchainAccount.fromObject(object.interchain_accounts[i]); - } - } - if (object.port != null) - message.port = String(object.port); - if (object.params != null) { - if (typeof object.params !== "object") - throw TypeError(".ibc.applications.interchain_accounts.v1.HostGenesisState.params: object expected"); - message.params = $root.ibc.applications.interchain_accounts.host.v1.Params.fromObject(object.params); - } - return message; - }; + v1.QueryParamsRequest = (function() { - /** - * Creates a plain object from a HostGenesisState message. Also converts values to other types if specified. - * @function toObject - * @memberof ibc.applications.interchain_accounts.v1.HostGenesisState - * @static - * @param {ibc.applications.interchain_accounts.v1.HostGenesisState} message HostGenesisState - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - HostGenesisState.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) { - object.active_channels = []; - object.interchain_accounts = []; - } - if (options.defaults) { - object.port = ""; - object.params = null; - } - if (message.active_channels && message.active_channels.length) { - object.active_channels = []; - for (var j = 0; j < message.active_channels.length; ++j) - object.active_channels[j] = $root.ibc.applications.interchain_accounts.v1.ActiveChannel.toObject(message.active_channels[j], options); - } - if (message.interchain_accounts && message.interchain_accounts.length) { - object.interchain_accounts = []; - for (var j = 0; j < message.interchain_accounts.length; ++j) - object.interchain_accounts[j] = $root.ibc.applications.interchain_accounts.v1.RegisteredInterchainAccount.toObject(message.interchain_accounts[j], options); + /** + * Properties of a QueryParamsRequest. + * @memberof ibc.applications.interchain_accounts.controller.v1 + * @interface IQueryParamsRequest + */ + + /** + * Constructs a new QueryParamsRequest. + * @memberof ibc.applications.interchain_accounts.controller.v1 + * @classdesc Represents a QueryParamsRequest. + * @implements IQueryParamsRequest + * @constructor + * @param {ibc.applications.interchain_accounts.controller.v1.IQueryParamsRequest=} [properties] Properties to set + */ + function QueryParamsRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; } - if (message.port != null && message.hasOwnProperty("port")) - object.port = message.port; - if (message.params != null && message.hasOwnProperty("params")) - object.params = $root.ibc.applications.interchain_accounts.host.v1.Params.toObject(message.params, options); - return object; - }; - /** - * Converts this HostGenesisState to JSON. - * @function toJSON - * @memberof ibc.applications.interchain_accounts.v1.HostGenesisState - * @instance - * @returns {Object.} JSON object - */ - HostGenesisState.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Encodes the specified QueryParamsRequest message. Does not implicitly {@link ibc.applications.interchain_accounts.controller.v1.QueryParamsRequest.verify|verify} messages. + * @function encode + * @memberof ibc.applications.interchain_accounts.controller.v1.QueryParamsRequest + * @static + * @param {ibc.applications.interchain_accounts.controller.v1.IQueryParamsRequest} message QueryParamsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + QueryParamsRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; - return HostGenesisState; - })(); + /** + * Encodes the specified QueryParamsRequest message, length delimited. Does not implicitly {@link ibc.applications.interchain_accounts.controller.v1.QueryParamsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof ibc.applications.interchain_accounts.controller.v1.QueryParamsRequest + * @static + * @param {ibc.applications.interchain_accounts.controller.v1.IQueryParamsRequest} message QueryParamsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + QueryParamsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a QueryParamsRequest message from the specified reader or buffer. + * @function decode + * @memberof ibc.applications.interchain_accounts.controller.v1.QueryParamsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {ibc.applications.interchain_accounts.controller.v1.QueryParamsRequest} QueryParamsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + QueryParamsRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.interchain_accounts.controller.v1.QueryParamsRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - v1.ActiveChannel = (function() { + /** + * Decodes a QueryParamsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof ibc.applications.interchain_accounts.controller.v1.QueryParamsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {ibc.applications.interchain_accounts.controller.v1.QueryParamsRequest} QueryParamsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + QueryParamsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Properties of an ActiveChannel. - * @memberof ibc.applications.interchain_accounts.v1 - * @interface IActiveChannel - * @property {string|null} [connection_id] ActiveChannel connection_id - * @property {string|null} [port_id] ActiveChannel port_id - * @property {string|null} [channel_id] ActiveChannel channel_id - */ + /** + * Verifies a QueryParamsRequest message. + * @function verify + * @memberof ibc.applications.interchain_accounts.controller.v1.QueryParamsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + QueryParamsRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; - /** - * Constructs a new ActiveChannel. - * @memberof ibc.applications.interchain_accounts.v1 - * @classdesc Represents an ActiveChannel. - * @implements IActiveChannel - * @constructor - * @param {ibc.applications.interchain_accounts.v1.IActiveChannel=} [properties] Properties to set - */ - function ActiveChannel(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Creates a QueryParamsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof ibc.applications.interchain_accounts.controller.v1.QueryParamsRequest + * @static + * @param {Object.} object Plain object + * @returns {ibc.applications.interchain_accounts.controller.v1.QueryParamsRequest} QueryParamsRequest + */ + QueryParamsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.interchain_accounts.controller.v1.QueryParamsRequest) + return object; + return new $root.ibc.applications.interchain_accounts.controller.v1.QueryParamsRequest(); + }; - /** - * ActiveChannel connection_id. - * @member {string} connection_id - * @memberof ibc.applications.interchain_accounts.v1.ActiveChannel - * @instance - */ - ActiveChannel.prototype.connection_id = ""; + /** + * Creates a plain object from a QueryParamsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof ibc.applications.interchain_accounts.controller.v1.QueryParamsRequest + * @static + * @param {ibc.applications.interchain_accounts.controller.v1.QueryParamsRequest} message QueryParamsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + QueryParamsRequest.toObject = function toObject() { + return {}; + }; - /** - * ActiveChannel port_id. - * @member {string} port_id - * @memberof ibc.applications.interchain_accounts.v1.ActiveChannel - * @instance - */ - ActiveChannel.prototype.port_id = ""; + /** + * Converts this QueryParamsRequest to JSON. + * @function toJSON + * @memberof ibc.applications.interchain_accounts.controller.v1.QueryParamsRequest + * @instance + * @returns {Object.} JSON object + */ + QueryParamsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * ActiveChannel channel_id. - * @member {string} channel_id - * @memberof ibc.applications.interchain_accounts.v1.ActiveChannel - * @instance - */ - ActiveChannel.prototype.channel_id = ""; + return QueryParamsRequest; + })(); - /** - * Encodes the specified ActiveChannel message. Does not implicitly {@link ibc.applications.interchain_accounts.v1.ActiveChannel.verify|verify} messages. - * @function encode - * @memberof ibc.applications.interchain_accounts.v1.ActiveChannel - * @static - * @param {ibc.applications.interchain_accounts.v1.IActiveChannel} message ActiveChannel message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ActiveChannel.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.connection_id != null && Object.hasOwnProperty.call(message, "connection_id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.connection_id); - if (message.port_id != null && Object.hasOwnProperty.call(message, "port_id")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.port_id); - if (message.channel_id != null && Object.hasOwnProperty.call(message, "channel_id")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.channel_id); - return writer; - }; + v1.QueryParamsResponse = (function() { - /** - * Encodes the specified ActiveChannel message, length delimited. Does not implicitly {@link ibc.applications.interchain_accounts.v1.ActiveChannel.verify|verify} messages. - * @function encodeDelimited - * @memberof ibc.applications.interchain_accounts.v1.ActiveChannel - * @static - * @param {ibc.applications.interchain_accounts.v1.IActiveChannel} message ActiveChannel message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ActiveChannel.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Properties of a QueryParamsResponse. + * @memberof ibc.applications.interchain_accounts.controller.v1 + * @interface IQueryParamsResponse + * @property {ibc.applications.interchain_accounts.controller.v1.IParams|null} [params] QueryParamsResponse params + */ - /** - * Decodes an ActiveChannel message from the specified reader or buffer. - * @function decode - * @memberof ibc.applications.interchain_accounts.v1.ActiveChannel - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.interchain_accounts.v1.ActiveChannel} ActiveChannel - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ActiveChannel.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.interchain_accounts.v1.ActiveChannel(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.connection_id = reader.string(); - break; - case 2: - message.port_id = reader.string(); - break; - case 3: - message.channel_id = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } + /** + * Constructs a new QueryParamsResponse. + * @memberof ibc.applications.interchain_accounts.controller.v1 + * @classdesc Represents a QueryParamsResponse. + * @implements IQueryParamsResponse + * @constructor + * @param {ibc.applications.interchain_accounts.controller.v1.IQueryParamsResponse=} [properties] Properties to set + */ + function QueryParamsResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; } - return message; - }; - /** - * Decodes an ActiveChannel message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ibc.applications.interchain_accounts.v1.ActiveChannel - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.interchain_accounts.v1.ActiveChannel} ActiveChannel - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ActiveChannel.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * QueryParamsResponse params. + * @member {ibc.applications.interchain_accounts.controller.v1.IParams|null|undefined} params + * @memberof ibc.applications.interchain_accounts.controller.v1.QueryParamsResponse + * @instance + */ + QueryParamsResponse.prototype.params = null; - /** - * Verifies an ActiveChannel message. - * @function verify - * @memberof ibc.applications.interchain_accounts.v1.ActiveChannel - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ActiveChannel.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.connection_id != null && message.hasOwnProperty("connection_id")) - if (!$util.isString(message.connection_id)) - return "connection_id: string expected"; - if (message.port_id != null && message.hasOwnProperty("port_id")) - if (!$util.isString(message.port_id)) - return "port_id: string expected"; - if (message.channel_id != null && message.hasOwnProperty("channel_id")) - if (!$util.isString(message.channel_id)) - return "channel_id: string expected"; - return null; - }; + /** + * Encodes the specified QueryParamsResponse message. Does not implicitly {@link ibc.applications.interchain_accounts.controller.v1.QueryParamsResponse.verify|verify} messages. + * @function encode + * @memberof ibc.applications.interchain_accounts.controller.v1.QueryParamsResponse + * @static + * @param {ibc.applications.interchain_accounts.controller.v1.IQueryParamsResponse} message QueryParamsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + QueryParamsResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.params != null && Object.hasOwnProperty.call(message, "params")) + $root.ibc.applications.interchain_accounts.controller.v1.Params.encode(message.params, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; - /** - * Creates an ActiveChannel message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof ibc.applications.interchain_accounts.v1.ActiveChannel - * @static - * @param {Object.} object Plain object - * @returns {ibc.applications.interchain_accounts.v1.ActiveChannel} ActiveChannel - */ - ActiveChannel.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.interchain_accounts.v1.ActiveChannel) - return object; - var message = new $root.ibc.applications.interchain_accounts.v1.ActiveChannel(); - if (object.connection_id != null) - message.connection_id = String(object.connection_id); - if (object.port_id != null) - message.port_id = String(object.port_id); - if (object.channel_id != null) - message.channel_id = String(object.channel_id); - return message; - }; + /** + * Encodes the specified QueryParamsResponse message, length delimited. Does not implicitly {@link ibc.applications.interchain_accounts.controller.v1.QueryParamsResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof ibc.applications.interchain_accounts.controller.v1.QueryParamsResponse + * @static + * @param {ibc.applications.interchain_accounts.controller.v1.IQueryParamsResponse} message QueryParamsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + QueryParamsResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Creates a plain object from an ActiveChannel message. Also converts values to other types if specified. - * @function toObject - * @memberof ibc.applications.interchain_accounts.v1.ActiveChannel - * @static - * @param {ibc.applications.interchain_accounts.v1.ActiveChannel} message ActiveChannel - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ActiveChannel.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.connection_id = ""; - object.port_id = ""; - object.channel_id = ""; - } - if (message.connection_id != null && message.hasOwnProperty("connection_id")) - object.connection_id = message.connection_id; - if (message.port_id != null && message.hasOwnProperty("port_id")) - object.port_id = message.port_id; - if (message.channel_id != null && message.hasOwnProperty("channel_id")) - object.channel_id = message.channel_id; - return object; - }; + /** + * Decodes a QueryParamsResponse message from the specified reader or buffer. + * @function decode + * @memberof ibc.applications.interchain_accounts.controller.v1.QueryParamsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {ibc.applications.interchain_accounts.controller.v1.QueryParamsResponse} QueryParamsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + QueryParamsResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.interchain_accounts.controller.v1.QueryParamsResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.params = $root.ibc.applications.interchain_accounts.controller.v1.Params.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Converts this ActiveChannel to JSON. - * @function toJSON - * @memberof ibc.applications.interchain_accounts.v1.ActiveChannel - * @instance - * @returns {Object.} JSON object - */ - ActiveChannel.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Decodes a QueryParamsResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof ibc.applications.interchain_accounts.controller.v1.QueryParamsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {ibc.applications.interchain_accounts.controller.v1.QueryParamsResponse} QueryParamsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + QueryParamsResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - return ActiveChannel; - })(); + /** + * Verifies a QueryParamsResponse message. + * @function verify + * @memberof ibc.applications.interchain_accounts.controller.v1.QueryParamsResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + QueryParamsResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.params != null && message.hasOwnProperty("params")) { + var error = $root.ibc.applications.interchain_accounts.controller.v1.Params.verify(message.params); + if (error) + return "params." + error; + } + return null; + }; - v1.RegisteredInterchainAccount = (function() { + /** + * Creates a QueryParamsResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof ibc.applications.interchain_accounts.controller.v1.QueryParamsResponse + * @static + * @param {Object.} object Plain object + * @returns {ibc.applications.interchain_accounts.controller.v1.QueryParamsResponse} QueryParamsResponse + */ + QueryParamsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.interchain_accounts.controller.v1.QueryParamsResponse) + return object; + var message = new $root.ibc.applications.interchain_accounts.controller.v1.QueryParamsResponse(); + if (object.params != null) { + if (typeof object.params !== "object") + throw TypeError(".ibc.applications.interchain_accounts.controller.v1.QueryParamsResponse.params: object expected"); + message.params = $root.ibc.applications.interchain_accounts.controller.v1.Params.fromObject(object.params); + } + return message; + }; - /** - * Properties of a RegisteredInterchainAccount. - * @memberof ibc.applications.interchain_accounts.v1 - * @interface IRegisteredInterchainAccount - * @property {string|null} [connection_id] RegisteredInterchainAccount connection_id - * @property {string|null} [port_id] RegisteredInterchainAccount port_id - * @property {string|null} [account_address] RegisteredInterchainAccount account_address - */ + /** + * Creates a plain object from a QueryParamsResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof ibc.applications.interchain_accounts.controller.v1.QueryParamsResponse + * @static + * @param {ibc.applications.interchain_accounts.controller.v1.QueryParamsResponse} message QueryParamsResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + QueryParamsResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.params = null; + if (message.params != null && message.hasOwnProperty("params")) + object.params = $root.ibc.applications.interchain_accounts.controller.v1.Params.toObject(message.params, options); + return object; + }; - /** - * Constructs a new RegisteredInterchainAccount. - * @memberof ibc.applications.interchain_accounts.v1 - * @classdesc Represents a RegisteredInterchainAccount. - * @implements IRegisteredInterchainAccount - * @constructor - * @param {ibc.applications.interchain_accounts.v1.IRegisteredInterchainAccount=} [properties] Properties to set - */ - function RegisteredInterchainAccount(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Converts this QueryParamsResponse to JSON. + * @function toJSON + * @memberof ibc.applications.interchain_accounts.controller.v1.QueryParamsResponse + * @instance + * @returns {Object.} JSON object + */ + QueryParamsResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * RegisteredInterchainAccount connection_id. - * @member {string} connection_id - * @memberof ibc.applications.interchain_accounts.v1.RegisteredInterchainAccount - * @instance - */ - RegisteredInterchainAccount.prototype.connection_id = ""; + return QueryParamsResponse; + })(); - /** - * RegisteredInterchainAccount port_id. - * @member {string} port_id - * @memberof ibc.applications.interchain_accounts.v1.RegisteredInterchainAccount - * @instance - */ - RegisteredInterchainAccount.prototype.port_id = ""; + v1.Params = (function() { - /** - * RegisteredInterchainAccount account_address. - * @member {string} account_address - * @memberof ibc.applications.interchain_accounts.v1.RegisteredInterchainAccount - * @instance - */ - RegisteredInterchainAccount.prototype.account_address = ""; + /** + * Properties of a Params. + * @memberof ibc.applications.interchain_accounts.controller.v1 + * @interface IParams + * @property {boolean|null} [controller_enabled] Params controller_enabled + */ - /** - * Encodes the specified RegisteredInterchainAccount message. Does not implicitly {@link ibc.applications.interchain_accounts.v1.RegisteredInterchainAccount.verify|verify} messages. - * @function encode - * @memberof ibc.applications.interchain_accounts.v1.RegisteredInterchainAccount - * @static - * @param {ibc.applications.interchain_accounts.v1.IRegisteredInterchainAccount} message RegisteredInterchainAccount message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RegisteredInterchainAccount.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.connection_id != null && Object.hasOwnProperty.call(message, "connection_id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.connection_id); - if (message.port_id != null && Object.hasOwnProperty.call(message, "port_id")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.port_id); - if (message.account_address != null && Object.hasOwnProperty.call(message, "account_address")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.account_address); - return writer; - }; + /** + * Constructs a new Params. + * @memberof ibc.applications.interchain_accounts.controller.v1 + * @classdesc Represents a Params. + * @implements IParams + * @constructor + * @param {ibc.applications.interchain_accounts.controller.v1.IParams=} [properties] Properties to set + */ + function Params(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Encodes the specified RegisteredInterchainAccount message, length delimited. Does not implicitly {@link ibc.applications.interchain_accounts.v1.RegisteredInterchainAccount.verify|verify} messages. - * @function encodeDelimited - * @memberof ibc.applications.interchain_accounts.v1.RegisteredInterchainAccount - * @static - * @param {ibc.applications.interchain_accounts.v1.IRegisteredInterchainAccount} message RegisteredInterchainAccount message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RegisteredInterchainAccount.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Params controller_enabled. + * @member {boolean} controller_enabled + * @memberof ibc.applications.interchain_accounts.controller.v1.Params + * @instance + */ + Params.prototype.controller_enabled = false; - /** - * Decodes a RegisteredInterchainAccount message from the specified reader or buffer. - * @function decode - * @memberof ibc.applications.interchain_accounts.v1.RegisteredInterchainAccount - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.interchain_accounts.v1.RegisteredInterchainAccount} RegisteredInterchainAccount - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RegisteredInterchainAccount.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.interchain_accounts.v1.RegisteredInterchainAccount(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.connection_id = reader.string(); - break; - case 2: - message.port_id = reader.string(); - break; - case 3: - message.account_address = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; + /** + * Encodes the specified Params message. Does not implicitly {@link ibc.applications.interchain_accounts.controller.v1.Params.verify|verify} messages. + * @function encode + * @memberof ibc.applications.interchain_accounts.controller.v1.Params + * @static + * @param {ibc.applications.interchain_accounts.controller.v1.IParams} message Params message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Params.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.controller_enabled != null && Object.hasOwnProperty.call(message, "controller_enabled")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.controller_enabled); + return writer; + }; + + /** + * Encodes the specified Params message, length delimited. Does not implicitly {@link ibc.applications.interchain_accounts.controller.v1.Params.verify|verify} messages. + * @function encodeDelimited + * @memberof ibc.applications.interchain_accounts.controller.v1.Params + * @static + * @param {ibc.applications.interchain_accounts.controller.v1.IParams} message Params message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Params.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Params message from the specified reader or buffer. + * @function decode + * @memberof ibc.applications.interchain_accounts.controller.v1.Params + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {ibc.applications.interchain_accounts.controller.v1.Params} Params + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Params.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.interchain_accounts.controller.v1.Params(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.controller_enabled = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } } - } - return message; - }; + return message; + }; - /** - * Decodes a RegisteredInterchainAccount message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ibc.applications.interchain_accounts.v1.RegisteredInterchainAccount - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.interchain_accounts.v1.RegisteredInterchainAccount} RegisteredInterchainAccount - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RegisteredInterchainAccount.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a Params message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof ibc.applications.interchain_accounts.controller.v1.Params + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {ibc.applications.interchain_accounts.controller.v1.Params} Params + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Params.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies a RegisteredInterchainAccount message. - * @function verify - * @memberof ibc.applications.interchain_accounts.v1.RegisteredInterchainAccount - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - RegisteredInterchainAccount.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.connection_id != null && message.hasOwnProperty("connection_id")) - if (!$util.isString(message.connection_id)) - return "connection_id: string expected"; - if (message.port_id != null && message.hasOwnProperty("port_id")) - if (!$util.isString(message.port_id)) - return "port_id: string expected"; - if (message.account_address != null && message.hasOwnProperty("account_address")) - if (!$util.isString(message.account_address)) - return "account_address: string expected"; - return null; - }; + /** + * Verifies a Params message. + * @function verify + * @memberof ibc.applications.interchain_accounts.controller.v1.Params + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Params.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.controller_enabled != null && message.hasOwnProperty("controller_enabled")) + if (typeof message.controller_enabled !== "boolean") + return "controller_enabled: boolean expected"; + return null; + }; - /** - * Creates a RegisteredInterchainAccount message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof ibc.applications.interchain_accounts.v1.RegisteredInterchainAccount - * @static - * @param {Object.} object Plain object - * @returns {ibc.applications.interchain_accounts.v1.RegisteredInterchainAccount} RegisteredInterchainAccount - */ - RegisteredInterchainAccount.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.interchain_accounts.v1.RegisteredInterchainAccount) + /** + * Creates a Params message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof ibc.applications.interchain_accounts.controller.v1.Params + * @static + * @param {Object.} object Plain object + * @returns {ibc.applications.interchain_accounts.controller.v1.Params} Params + */ + Params.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.interchain_accounts.controller.v1.Params) + return object; + var message = new $root.ibc.applications.interchain_accounts.controller.v1.Params(); + if (object.controller_enabled != null) + message.controller_enabled = Boolean(object.controller_enabled); + return message; + }; + + /** + * Creates a plain object from a Params message. Also converts values to other types if specified. + * @function toObject + * @memberof ibc.applications.interchain_accounts.controller.v1.Params + * @static + * @param {ibc.applications.interchain_accounts.controller.v1.Params} message Params + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Params.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.controller_enabled = false; + if (message.controller_enabled != null && message.hasOwnProperty("controller_enabled")) + object.controller_enabled = message.controller_enabled; return object; - var message = new $root.ibc.applications.interchain_accounts.v1.RegisteredInterchainAccount(); - if (object.connection_id != null) - message.connection_id = String(object.connection_id); - if (object.port_id != null) - message.port_id = String(object.port_id); - if (object.account_address != null) - message.account_address = String(object.account_address); - return message; - }; + }; - /** - * Creates a plain object from a RegisteredInterchainAccount message. Also converts values to other types if specified. - * @function toObject - * @memberof ibc.applications.interchain_accounts.v1.RegisteredInterchainAccount - * @static - * @param {ibc.applications.interchain_accounts.v1.RegisteredInterchainAccount} message RegisteredInterchainAccount - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - RegisteredInterchainAccount.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.connection_id = ""; - object.port_id = ""; - object.account_address = ""; - } - if (message.connection_id != null && message.hasOwnProperty("connection_id")) - object.connection_id = message.connection_id; - if (message.port_id != null && message.hasOwnProperty("port_id")) - object.port_id = message.port_id; - if (message.account_address != null && message.hasOwnProperty("account_address")) - object.account_address = message.account_address; - return object; - }; + /** + * Converts this Params to JSON. + * @function toJSON + * @memberof ibc.applications.interchain_accounts.controller.v1.Params + * @instance + * @returns {Object.} JSON object + */ + Params.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Converts this RegisteredInterchainAccount to JSON. - * @function toJSON - * @memberof ibc.applications.interchain_accounts.v1.RegisteredInterchainAccount - * @instance - * @returns {Object.} JSON object - */ - RegisteredInterchainAccount.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + return Params; + })(); - return RegisteredInterchainAccount; + return v1; })(); - return v1; + return controller; })(); - return interchain_accounts; - })(); - - applications.transfer = (function() { - - /** - * Namespace transfer. - * @memberof ibc.applications - * @namespace - */ - var transfer = {}; - - transfer.v1 = (function() { + interchain_accounts.v1 = (function() { /** * Namespace v1. - * @memberof ibc.applications.transfer + * @memberof ibc.applications.interchain_accounts * @namespace */ var v1 = {}; - v1.Msg = (function() { - - /** - * Constructs a new Msg service. - * @memberof ibc.applications.transfer.v1 - * @classdesc Represents a Msg - * @extends $protobuf.rpc.Service - * @constructor - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - */ - function Msg(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } - - (Msg.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Msg; - - /** - * Callback as used by {@link ibc.applications.transfer.v1.Msg#transfer}. - * @memberof ibc.applications.transfer.v1.Msg - * @typedef TransferCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.applications.transfer.v1.MsgTransferResponse} [response] MsgTransferResponse - */ - - /** - * Calls Transfer. - * @function transfer - * @memberof ibc.applications.transfer.v1.Msg - * @instance - * @param {ibc.applications.transfer.v1.IMsgTransfer} request MsgTransfer message or plain object - * @param {ibc.applications.transfer.v1.Msg.TransferCallback} callback Node-style callback called with the error, if any, and MsgTransferResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Msg.prototype.transfer = function transfer(request, callback) { - return this.rpcCall(transfer, $root.ibc.applications.transfer.v1.MsgTransfer, $root.ibc.applications.transfer.v1.MsgTransferResponse, request, callback); - }, "name", { value: "Transfer" }); - - /** - * Calls Transfer. - * @function transfer - * @memberof ibc.applications.transfer.v1.Msg - * @instance - * @param {ibc.applications.transfer.v1.IMsgTransfer} request MsgTransfer message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - return Msg; + /** + * Type enum. + * @name ibc.applications.interchain_accounts.v1.Type + * @enum {number} + * @property {number} TYPE_UNSPECIFIED=0 TYPE_UNSPECIFIED value + * @property {number} TYPE_EXECUTE_TX=1 TYPE_EXECUTE_TX value + */ + v1.Type = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "TYPE_EXECUTE_TX"] = 1; + return values; })(); - v1.MsgTransfer = (function() { + v1.InterchainAccountPacketData = (function() { /** - * Properties of a MsgTransfer. - * @memberof ibc.applications.transfer.v1 - * @interface IMsgTransfer - * @property {string|null} [source_port] MsgTransfer source_port - * @property {string|null} [source_channel] MsgTransfer source_channel - * @property {cosmos.base.v1beta1.ICoin|null} [token] MsgTransfer token - * @property {string|null} [sender] MsgTransfer sender - * @property {string|null} [receiver] MsgTransfer receiver - * @property {ibc.core.client.v1.IHeight|null} [timeout_height] MsgTransfer timeout_height - * @property {Long|null} [timeout_timestamp] MsgTransfer timeout_timestamp - * @property {string|null} [memo] MsgTransfer memo + * Properties of an InterchainAccountPacketData. + * @memberof ibc.applications.interchain_accounts.v1 + * @interface IInterchainAccountPacketData + * @property {ibc.applications.interchain_accounts.v1.Type|null} [type] InterchainAccountPacketData type + * @property {Uint8Array|null} [data] InterchainAccountPacketData data + * @property {string|null} [memo] InterchainAccountPacketData memo */ /** - * Constructs a new MsgTransfer. - * @memberof ibc.applications.transfer.v1 - * @classdesc Represents a MsgTransfer. - * @implements IMsgTransfer + * Constructs a new InterchainAccountPacketData. + * @memberof ibc.applications.interchain_accounts.v1 + * @classdesc Represents an InterchainAccountPacketData. + * @implements IInterchainAccountPacketData * @constructor - * @param {ibc.applications.transfer.v1.IMsgTransfer=} [properties] Properties to set + * @param {ibc.applications.interchain_accounts.v1.IInterchainAccountPacketData=} [properties] Properties to set */ - function MsgTransfer(properties) { + function InterchainAccountPacketData(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -30730,153 +37361,88 @@ } /** - * MsgTransfer source_port. - * @member {string} source_port - * @memberof ibc.applications.transfer.v1.MsgTransfer - * @instance - */ - MsgTransfer.prototype.source_port = ""; - - /** - * MsgTransfer source_channel. - * @member {string} source_channel - * @memberof ibc.applications.transfer.v1.MsgTransfer - * @instance - */ - MsgTransfer.prototype.source_channel = ""; - - /** - * MsgTransfer token. - * @member {cosmos.base.v1beta1.ICoin|null|undefined} token - * @memberof ibc.applications.transfer.v1.MsgTransfer - * @instance - */ - MsgTransfer.prototype.token = null; - - /** - * MsgTransfer sender. - * @member {string} sender - * @memberof ibc.applications.transfer.v1.MsgTransfer - * @instance - */ - MsgTransfer.prototype.sender = ""; - - /** - * MsgTransfer receiver. - * @member {string} receiver - * @memberof ibc.applications.transfer.v1.MsgTransfer - * @instance - */ - MsgTransfer.prototype.receiver = ""; - - /** - * MsgTransfer timeout_height. - * @member {ibc.core.client.v1.IHeight|null|undefined} timeout_height - * @memberof ibc.applications.transfer.v1.MsgTransfer + * InterchainAccountPacketData type. + * @member {ibc.applications.interchain_accounts.v1.Type} type + * @memberof ibc.applications.interchain_accounts.v1.InterchainAccountPacketData * @instance */ - MsgTransfer.prototype.timeout_height = null; + InterchainAccountPacketData.prototype.type = 0; /** - * MsgTransfer timeout_timestamp. - * @member {Long} timeout_timestamp - * @memberof ibc.applications.transfer.v1.MsgTransfer + * InterchainAccountPacketData data. + * @member {Uint8Array} data + * @memberof ibc.applications.interchain_accounts.v1.InterchainAccountPacketData * @instance */ - MsgTransfer.prototype.timeout_timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + InterchainAccountPacketData.prototype.data = $util.newBuffer([]); /** - * MsgTransfer memo. + * InterchainAccountPacketData memo. * @member {string} memo - * @memberof ibc.applications.transfer.v1.MsgTransfer + * @memberof ibc.applications.interchain_accounts.v1.InterchainAccountPacketData * @instance */ - MsgTransfer.prototype.memo = ""; + InterchainAccountPacketData.prototype.memo = ""; /** - * Encodes the specified MsgTransfer message. Does not implicitly {@link ibc.applications.transfer.v1.MsgTransfer.verify|verify} messages. + * Encodes the specified InterchainAccountPacketData message. Does not implicitly {@link ibc.applications.interchain_accounts.v1.InterchainAccountPacketData.verify|verify} messages. * @function encode - * @memberof ibc.applications.transfer.v1.MsgTransfer + * @memberof ibc.applications.interchain_accounts.v1.InterchainAccountPacketData * @static - * @param {ibc.applications.transfer.v1.IMsgTransfer} message MsgTransfer message or plain object to encode + * @param {ibc.applications.interchain_accounts.v1.IInterchainAccountPacketData} message InterchainAccountPacketData message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgTransfer.encode = function encode(message, writer) { + InterchainAccountPacketData.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.source_port != null && Object.hasOwnProperty.call(message, "source_port")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.source_port); - if (message.source_channel != null && Object.hasOwnProperty.call(message, "source_channel")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.source_channel); - if (message.token != null && Object.hasOwnProperty.call(message, "token")) - $root.cosmos.base.v1beta1.Coin.encode(message.token, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.sender != null && Object.hasOwnProperty.call(message, "sender")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.sender); - if (message.receiver != null && Object.hasOwnProperty.call(message, "receiver")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.receiver); - if (message.timeout_height != null && Object.hasOwnProperty.call(message, "timeout_height")) - $root.ibc.core.client.v1.Height.encode(message.timeout_height, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.timeout_timestamp != null && Object.hasOwnProperty.call(message, "timeout_timestamp")) - writer.uint32(/* id 7, wireType 0 =*/56).uint64(message.timeout_timestamp); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.type); + if (message.data != null && Object.hasOwnProperty.call(message, "data")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.data); if (message.memo != null && Object.hasOwnProperty.call(message, "memo")) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.memo); + writer.uint32(/* id 3, wireType 2 =*/26).string(message.memo); return writer; }; /** - * Encodes the specified MsgTransfer message, length delimited. Does not implicitly {@link ibc.applications.transfer.v1.MsgTransfer.verify|verify} messages. + * Encodes the specified InterchainAccountPacketData message, length delimited. Does not implicitly {@link ibc.applications.interchain_accounts.v1.InterchainAccountPacketData.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.applications.transfer.v1.MsgTransfer + * @memberof ibc.applications.interchain_accounts.v1.InterchainAccountPacketData * @static - * @param {ibc.applications.transfer.v1.IMsgTransfer} message MsgTransfer message or plain object to encode + * @param {ibc.applications.interchain_accounts.v1.IInterchainAccountPacketData} message InterchainAccountPacketData message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgTransfer.encodeDelimited = function encodeDelimited(message, writer) { + InterchainAccountPacketData.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MsgTransfer message from the specified reader or buffer. + * Decodes an InterchainAccountPacketData message from the specified reader or buffer. * @function decode - * @memberof ibc.applications.transfer.v1.MsgTransfer + * @memberof ibc.applications.interchain_accounts.v1.InterchainAccountPacketData * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.transfer.v1.MsgTransfer} MsgTransfer + * @returns {ibc.applications.interchain_accounts.v1.InterchainAccountPacketData} InterchainAccountPacketData * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgTransfer.decode = function decode(reader, length) { + InterchainAccountPacketData.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.transfer.v1.MsgTransfer(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.interchain_accounts.v1.InterchainAccountPacketData(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.source_port = reader.string(); + message.type = reader.int32(); break; case 2: - message.source_channel = reader.string(); + message.data = reader.bytes(); break; case 3: - message.token = $root.cosmos.base.v1beta1.Coin.decode(reader, reader.uint32()); - break; - case 4: - message.sender = reader.string(); - break; - case 5: - message.receiver = reader.string(); - break; - case 6: - message.timeout_height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); - break; - case 7: - message.timeout_timestamp = reader.uint64(); - break; - case 8: message.memo = reader.string(); break; default: @@ -30888,57 +37454,43 @@ }; /** - * Decodes a MsgTransfer message from the specified reader or buffer, length delimited. + * Decodes an InterchainAccountPacketData message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.applications.transfer.v1.MsgTransfer + * @memberof ibc.applications.interchain_accounts.v1.InterchainAccountPacketData * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.transfer.v1.MsgTransfer} MsgTransfer + * @returns {ibc.applications.interchain_accounts.v1.InterchainAccountPacketData} InterchainAccountPacketData * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgTransfer.decodeDelimited = function decodeDelimited(reader) { + InterchainAccountPacketData.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MsgTransfer message. + * Verifies an InterchainAccountPacketData message. * @function verify - * @memberof ibc.applications.transfer.v1.MsgTransfer + * @memberof ibc.applications.interchain_accounts.v1.InterchainAccountPacketData * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MsgTransfer.verify = function verify(message) { + InterchainAccountPacketData.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.source_port != null && message.hasOwnProperty("source_port")) - if (!$util.isString(message.source_port)) - return "source_port: string expected"; - if (message.source_channel != null && message.hasOwnProperty("source_channel")) - if (!$util.isString(message.source_channel)) - return "source_channel: string expected"; - if (message.token != null && message.hasOwnProperty("token")) { - var error = $root.cosmos.base.v1beta1.Coin.verify(message.token); - if (error) - return "token." + error; - } - if (message.sender != null && message.hasOwnProperty("sender")) - if (!$util.isString(message.sender)) - return "sender: string expected"; - if (message.receiver != null && message.hasOwnProperty("receiver")) - if (!$util.isString(message.receiver)) - return "receiver: string expected"; - if (message.timeout_height != null && message.hasOwnProperty("timeout_height")) { - var error = $root.ibc.core.client.v1.Height.verify(message.timeout_height); - if (error) - return "timeout_height." + error; - } - if (message.timeout_timestamp != null && message.hasOwnProperty("timeout_timestamp")) - if (!$util.isInteger(message.timeout_timestamp) && !(message.timeout_timestamp && $util.isInteger(message.timeout_timestamp.low) && $util.isInteger(message.timeout_timestamp.high))) - return "timeout_timestamp: integer|Long expected"; + if (message.type != null && message.hasOwnProperty("type")) + switch (message.type) { + default: + return "type: enum value expected"; + case 0: + case 1: + break; + } + if (message.data != null && message.hasOwnProperty("data")) + if (!(message.data && typeof message.data.length === "number" || $util.isString(message.data))) + return "data: buffer expected"; if (message.memo != null && message.hasOwnProperty("memo")) if (!$util.isString(message.memo)) return "memo: string expected"; @@ -30946,130 +37498,103 @@ }; /** - * Creates a MsgTransfer message from a plain object. Also converts values to their respective internal types. + * Creates an InterchainAccountPacketData message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.applications.transfer.v1.MsgTransfer + * @memberof ibc.applications.interchain_accounts.v1.InterchainAccountPacketData * @static * @param {Object.} object Plain object - * @returns {ibc.applications.transfer.v1.MsgTransfer} MsgTransfer + * @returns {ibc.applications.interchain_accounts.v1.InterchainAccountPacketData} InterchainAccountPacketData */ - MsgTransfer.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.transfer.v1.MsgTransfer) + InterchainAccountPacketData.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.interchain_accounts.v1.InterchainAccountPacketData) return object; - var message = new $root.ibc.applications.transfer.v1.MsgTransfer(); - if (object.source_port != null) - message.source_port = String(object.source_port); - if (object.source_channel != null) - message.source_channel = String(object.source_channel); - if (object.token != null) { - if (typeof object.token !== "object") - throw TypeError(".ibc.applications.transfer.v1.MsgTransfer.token: object expected"); - message.token = $root.cosmos.base.v1beta1.Coin.fromObject(object.token); - } - if (object.sender != null) - message.sender = String(object.sender); - if (object.receiver != null) - message.receiver = String(object.receiver); - if (object.timeout_height != null) { - if (typeof object.timeout_height !== "object") - throw TypeError(".ibc.applications.transfer.v1.MsgTransfer.timeout_height: object expected"); - message.timeout_height = $root.ibc.core.client.v1.Height.fromObject(object.timeout_height); + var message = new $root.ibc.applications.interchain_accounts.v1.InterchainAccountPacketData(); + switch (object.type) { + case "TYPE_UNSPECIFIED": + case 0: + message.type = 0; + break; + case "TYPE_EXECUTE_TX": + case 1: + message.type = 1; + break; } - if (object.timeout_timestamp != null) - if ($util.Long) - (message.timeout_timestamp = $util.Long.fromValue(object.timeout_timestamp)).unsigned = true; - else if (typeof object.timeout_timestamp === "string") - message.timeout_timestamp = parseInt(object.timeout_timestamp, 10); - else if (typeof object.timeout_timestamp === "number") - message.timeout_timestamp = object.timeout_timestamp; - else if (typeof object.timeout_timestamp === "object") - message.timeout_timestamp = new $util.LongBits(object.timeout_timestamp.low >>> 0, object.timeout_timestamp.high >>> 0).toNumber(true); + if (object.data != null) + if (typeof object.data === "string") + $util.base64.decode(object.data, message.data = $util.newBuffer($util.base64.length(object.data)), 0); + else if (object.data.length) + message.data = object.data; if (object.memo != null) message.memo = String(object.memo); return message; }; /** - * Creates a plain object from a MsgTransfer message. Also converts values to other types if specified. + * Creates a plain object from an InterchainAccountPacketData message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.applications.transfer.v1.MsgTransfer + * @memberof ibc.applications.interchain_accounts.v1.InterchainAccountPacketData * @static - * @param {ibc.applications.transfer.v1.MsgTransfer} message MsgTransfer + * @param {ibc.applications.interchain_accounts.v1.InterchainAccountPacketData} message InterchainAccountPacketData * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MsgTransfer.toObject = function toObject(message, options) { + InterchainAccountPacketData.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.source_port = ""; - object.source_channel = ""; - object.token = null; - object.sender = ""; - object.receiver = ""; - object.timeout_height = null; - if ($util.Long) { - var long = new $util.Long(0, 0, true); - object.timeout_timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.timeout_timestamp = options.longs === String ? "0" : 0; + object.type = options.enums === String ? "TYPE_UNSPECIFIED" : 0; + if (options.bytes === String) + object.data = ""; + else { + object.data = []; + if (options.bytes !== Array) + object.data = $util.newBuffer(object.data); + } object.memo = ""; } - if (message.source_port != null && message.hasOwnProperty("source_port")) - object.source_port = message.source_port; - if (message.source_channel != null && message.hasOwnProperty("source_channel")) - object.source_channel = message.source_channel; - if (message.token != null && message.hasOwnProperty("token")) - object.token = $root.cosmos.base.v1beta1.Coin.toObject(message.token, options); - if (message.sender != null && message.hasOwnProperty("sender")) - object.sender = message.sender; - if (message.receiver != null && message.hasOwnProperty("receiver")) - object.receiver = message.receiver; - if (message.timeout_height != null && message.hasOwnProperty("timeout_height")) - object.timeout_height = $root.ibc.core.client.v1.Height.toObject(message.timeout_height, options); - if (message.timeout_timestamp != null && message.hasOwnProperty("timeout_timestamp")) - if (typeof message.timeout_timestamp === "number") - object.timeout_timestamp = options.longs === String ? String(message.timeout_timestamp) : message.timeout_timestamp; - else - object.timeout_timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timeout_timestamp) : options.longs === Number ? new $util.LongBits(message.timeout_timestamp.low >>> 0, message.timeout_timestamp.high >>> 0).toNumber(true) : message.timeout_timestamp; + if (message.type != null && message.hasOwnProperty("type")) + object.type = options.enums === String ? $root.ibc.applications.interchain_accounts.v1.Type[message.type] : message.type; + if (message.data != null && message.hasOwnProperty("data")) + object.data = options.bytes === String ? $util.base64.encode(message.data, 0, message.data.length) : options.bytes === Array ? Array.prototype.slice.call(message.data) : message.data; if (message.memo != null && message.hasOwnProperty("memo")) object.memo = message.memo; return object; }; /** - * Converts this MsgTransfer to JSON. + * Converts this InterchainAccountPacketData to JSON. * @function toJSON - * @memberof ibc.applications.transfer.v1.MsgTransfer + * @memberof ibc.applications.interchain_accounts.v1.InterchainAccountPacketData * @instance * @returns {Object.} JSON object */ - MsgTransfer.prototype.toJSON = function toJSON() { + InterchainAccountPacketData.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MsgTransfer; + return InterchainAccountPacketData; })(); - v1.MsgTransferResponse = (function() { + v1.CosmosTx = (function() { /** - * Properties of a MsgTransferResponse. - * @memberof ibc.applications.transfer.v1 - * @interface IMsgTransferResponse - * @property {Long|null} [sequence] MsgTransferResponse sequence + * Properties of a CosmosTx. + * @memberof ibc.applications.interchain_accounts.v1 + * @interface ICosmosTx + * @property {Array.|null} [messages] CosmosTx messages */ /** - * Constructs a new MsgTransferResponse. - * @memberof ibc.applications.transfer.v1 - * @classdesc Represents a MsgTransferResponse. - * @implements IMsgTransferResponse + * Constructs a new CosmosTx. + * @memberof ibc.applications.interchain_accounts.v1 + * @classdesc Represents a CosmosTx. + * @implements ICosmosTx * @constructor - * @param {ibc.applications.transfer.v1.IMsgTransferResponse=} [properties] Properties to set + * @param {ibc.applications.interchain_accounts.v1.ICosmosTx=} [properties] Properties to set */ - function MsgTransferResponse(properties) { + function CosmosTx(properties) { + this.messages = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -31077,63 +37602,66 @@ } /** - * MsgTransferResponse sequence. - * @member {Long} sequence - * @memberof ibc.applications.transfer.v1.MsgTransferResponse + * CosmosTx messages. + * @member {Array.} messages + * @memberof ibc.applications.interchain_accounts.v1.CosmosTx * @instance */ - MsgTransferResponse.prototype.sequence = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + CosmosTx.prototype.messages = $util.emptyArray; /** - * Encodes the specified MsgTransferResponse message. Does not implicitly {@link ibc.applications.transfer.v1.MsgTransferResponse.verify|verify} messages. + * Encodes the specified CosmosTx message. Does not implicitly {@link ibc.applications.interchain_accounts.v1.CosmosTx.verify|verify} messages. * @function encode - * @memberof ibc.applications.transfer.v1.MsgTransferResponse + * @memberof ibc.applications.interchain_accounts.v1.CosmosTx * @static - * @param {ibc.applications.transfer.v1.IMsgTransferResponse} message MsgTransferResponse message or plain object to encode + * @param {ibc.applications.interchain_accounts.v1.ICosmosTx} message CosmosTx message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgTransferResponse.encode = function encode(message, writer) { + CosmosTx.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.sequence != null && Object.hasOwnProperty.call(message, "sequence")) - writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.sequence); + if (message.messages != null && message.messages.length) + for (var i = 0; i < message.messages.length; ++i) + $root.google.protobuf.Any.encode(message.messages[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified MsgTransferResponse message, length delimited. Does not implicitly {@link ibc.applications.transfer.v1.MsgTransferResponse.verify|verify} messages. + * Encodes the specified CosmosTx message, length delimited. Does not implicitly {@link ibc.applications.interchain_accounts.v1.CosmosTx.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.applications.transfer.v1.MsgTransferResponse + * @memberof ibc.applications.interchain_accounts.v1.CosmosTx * @static - * @param {ibc.applications.transfer.v1.IMsgTransferResponse} message MsgTransferResponse message or plain object to encode + * @param {ibc.applications.interchain_accounts.v1.ICosmosTx} message CosmosTx message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgTransferResponse.encodeDelimited = function encodeDelimited(message, writer) { + CosmosTx.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MsgTransferResponse message from the specified reader or buffer. + * Decodes a CosmosTx message from the specified reader or buffer. * @function decode - * @memberof ibc.applications.transfer.v1.MsgTransferResponse + * @memberof ibc.applications.interchain_accounts.v1.CosmosTx * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.transfer.v1.MsgTransferResponse} MsgTransferResponse + * @returns {ibc.applications.interchain_accounts.v1.CosmosTx} CosmosTx * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgTransferResponse.decode = function decode(reader, length) { + CosmosTx.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.transfer.v1.MsgTransferResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.interchain_accounts.v1.CosmosTx(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.sequence = reader.uint64(); + if (!(message.messages && message.messages.length)) + message.messages = []; + message.messages.push($root.google.protobuf.Any.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -31144,122 +37672,125 @@ }; /** - * Decodes a MsgTransferResponse message from the specified reader or buffer, length delimited. + * Decodes a CosmosTx message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.applications.transfer.v1.MsgTransferResponse + * @memberof ibc.applications.interchain_accounts.v1.CosmosTx * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.transfer.v1.MsgTransferResponse} MsgTransferResponse + * @returns {ibc.applications.interchain_accounts.v1.CosmosTx} CosmosTx * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgTransferResponse.decodeDelimited = function decodeDelimited(reader) { + CosmosTx.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MsgTransferResponse message. + * Verifies a CosmosTx message. * @function verify - * @memberof ibc.applications.transfer.v1.MsgTransferResponse + * @memberof ibc.applications.interchain_accounts.v1.CosmosTx * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MsgTransferResponse.verify = function verify(message) { + CosmosTx.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.sequence != null && message.hasOwnProperty("sequence")) - if (!$util.isInteger(message.sequence) && !(message.sequence && $util.isInteger(message.sequence.low) && $util.isInteger(message.sequence.high))) - return "sequence: integer|Long expected"; + if (message.messages != null && message.hasOwnProperty("messages")) { + if (!Array.isArray(message.messages)) + return "messages: array expected"; + for (var i = 0; i < message.messages.length; ++i) { + var error = $root.google.protobuf.Any.verify(message.messages[i]); + if (error) + return "messages." + error; + } + } return null; }; /** - * Creates a MsgTransferResponse message from a plain object. Also converts values to their respective internal types. + * Creates a CosmosTx message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.applications.transfer.v1.MsgTransferResponse + * @memberof ibc.applications.interchain_accounts.v1.CosmosTx * @static * @param {Object.} object Plain object - * @returns {ibc.applications.transfer.v1.MsgTransferResponse} MsgTransferResponse + * @returns {ibc.applications.interchain_accounts.v1.CosmosTx} CosmosTx */ - MsgTransferResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.transfer.v1.MsgTransferResponse) + CosmosTx.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.interchain_accounts.v1.CosmosTx) return object; - var message = new $root.ibc.applications.transfer.v1.MsgTransferResponse(); - if (object.sequence != null) - if ($util.Long) - (message.sequence = $util.Long.fromValue(object.sequence)).unsigned = true; - else if (typeof object.sequence === "string") - message.sequence = parseInt(object.sequence, 10); - else if (typeof object.sequence === "number") - message.sequence = object.sequence; - else if (typeof object.sequence === "object") - message.sequence = new $util.LongBits(object.sequence.low >>> 0, object.sequence.high >>> 0).toNumber(true); + var message = new $root.ibc.applications.interchain_accounts.v1.CosmosTx(); + if (object.messages) { + if (!Array.isArray(object.messages)) + throw TypeError(".ibc.applications.interchain_accounts.v1.CosmosTx.messages: array expected"); + message.messages = []; + for (var i = 0; i < object.messages.length; ++i) { + if (typeof object.messages[i] !== "object") + throw TypeError(".ibc.applications.interchain_accounts.v1.CosmosTx.messages: object expected"); + message.messages[i] = $root.google.protobuf.Any.fromObject(object.messages[i]); + } + } return message; }; /** - * Creates a plain object from a MsgTransferResponse message. Also converts values to other types if specified. + * Creates a plain object from a CosmosTx message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.applications.transfer.v1.MsgTransferResponse + * @memberof ibc.applications.interchain_accounts.v1.CosmosTx * @static - * @param {ibc.applications.transfer.v1.MsgTransferResponse} message MsgTransferResponse + * @param {ibc.applications.interchain_accounts.v1.CosmosTx} message CosmosTx * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MsgTransferResponse.toObject = function toObject(message, options) { + CosmosTx.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - if ($util.Long) { - var long = new $util.Long(0, 0, true); - object.sequence = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.sequence = options.longs === String ? "0" : 0; - if (message.sequence != null && message.hasOwnProperty("sequence")) - if (typeof message.sequence === "number") - object.sequence = options.longs === String ? String(message.sequence) : message.sequence; - else - object.sequence = options.longs === String ? $util.Long.prototype.toString.call(message.sequence) : options.longs === Number ? new $util.LongBits(message.sequence.low >>> 0, message.sequence.high >>> 0).toNumber(true) : message.sequence; + if (options.arrays || options.defaults) + object.messages = []; + if (message.messages && message.messages.length) { + object.messages = []; + for (var j = 0; j < message.messages.length; ++j) + object.messages[j] = $root.google.protobuf.Any.toObject(message.messages[j], options); + } return object; }; /** - * Converts this MsgTransferResponse to JSON. + * Converts this CosmosTx to JSON. * @function toJSON - * @memberof ibc.applications.transfer.v1.MsgTransferResponse + * @memberof ibc.applications.interchain_accounts.v1.CosmosTx * @instance * @returns {Object.} JSON object */ - MsgTransferResponse.prototype.toJSON = function toJSON() { + CosmosTx.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MsgTransferResponse; + return CosmosTx; })(); - v1.DenomTrace = (function() { + v1.InterchainAccount = (function() { /** - * Properties of a DenomTrace. - * @memberof ibc.applications.transfer.v1 - * @interface IDenomTrace - * @property {string|null} [path] DenomTrace path - * @property {string|null} [base_denom] DenomTrace base_denom + * Properties of an InterchainAccount. + * @memberof ibc.applications.interchain_accounts.v1 + * @interface IInterchainAccount + * @property {cosmos.auth.v1beta1.IBaseAccount|null} [base_account] InterchainAccount base_account + * @property {string|null} [account_owner] InterchainAccount account_owner */ /** - * Constructs a new DenomTrace. - * @memberof ibc.applications.transfer.v1 - * @classdesc Represents a DenomTrace. - * @implements IDenomTrace + * Constructs a new InterchainAccount. + * @memberof ibc.applications.interchain_accounts.v1 + * @classdesc Represents an InterchainAccount. + * @implements IInterchainAccount * @constructor - * @param {ibc.applications.transfer.v1.IDenomTrace=} [properties] Properties to set + * @param {ibc.applications.interchain_accounts.v1.IInterchainAccount=} [properties] Properties to set */ - function DenomTrace(properties) { + function InterchainAccount(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -31267,76 +37798,76 @@ } /** - * DenomTrace path. - * @member {string} path - * @memberof ibc.applications.transfer.v1.DenomTrace + * InterchainAccount base_account. + * @member {cosmos.auth.v1beta1.IBaseAccount|null|undefined} base_account + * @memberof ibc.applications.interchain_accounts.v1.InterchainAccount * @instance */ - DenomTrace.prototype.path = ""; + InterchainAccount.prototype.base_account = null; /** - * DenomTrace base_denom. - * @member {string} base_denom - * @memberof ibc.applications.transfer.v1.DenomTrace + * InterchainAccount account_owner. + * @member {string} account_owner + * @memberof ibc.applications.interchain_accounts.v1.InterchainAccount * @instance */ - DenomTrace.prototype.base_denom = ""; + InterchainAccount.prototype.account_owner = ""; /** - * Encodes the specified DenomTrace message. Does not implicitly {@link ibc.applications.transfer.v1.DenomTrace.verify|verify} messages. + * Encodes the specified InterchainAccount message. Does not implicitly {@link ibc.applications.interchain_accounts.v1.InterchainAccount.verify|verify} messages. * @function encode - * @memberof ibc.applications.transfer.v1.DenomTrace + * @memberof ibc.applications.interchain_accounts.v1.InterchainAccount * @static - * @param {ibc.applications.transfer.v1.IDenomTrace} message DenomTrace message or plain object to encode + * @param {ibc.applications.interchain_accounts.v1.IInterchainAccount} message InterchainAccount message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DenomTrace.encode = function encode(message, writer) { + InterchainAccount.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.path != null && Object.hasOwnProperty.call(message, "path")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.path); - if (message.base_denom != null && Object.hasOwnProperty.call(message, "base_denom")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.base_denom); + if (message.base_account != null && Object.hasOwnProperty.call(message, "base_account")) + $root.cosmos.auth.v1beta1.BaseAccount.encode(message.base_account, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.account_owner != null && Object.hasOwnProperty.call(message, "account_owner")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.account_owner); return writer; }; /** - * Encodes the specified DenomTrace message, length delimited. Does not implicitly {@link ibc.applications.transfer.v1.DenomTrace.verify|verify} messages. + * Encodes the specified InterchainAccount message, length delimited. Does not implicitly {@link ibc.applications.interchain_accounts.v1.InterchainAccount.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.applications.transfer.v1.DenomTrace + * @memberof ibc.applications.interchain_accounts.v1.InterchainAccount * @static - * @param {ibc.applications.transfer.v1.IDenomTrace} message DenomTrace message or plain object to encode + * @param {ibc.applications.interchain_accounts.v1.IInterchainAccount} message InterchainAccount message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DenomTrace.encodeDelimited = function encodeDelimited(message, writer) { + InterchainAccount.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DenomTrace message from the specified reader or buffer. + * Decodes an InterchainAccount message from the specified reader or buffer. * @function decode - * @memberof ibc.applications.transfer.v1.DenomTrace + * @memberof ibc.applications.interchain_accounts.v1.InterchainAccount * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.transfer.v1.DenomTrace} DenomTrace + * @returns {ibc.applications.interchain_accounts.v1.InterchainAccount} InterchainAccount * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DenomTrace.decode = function decode(reader, length) { + InterchainAccount.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.transfer.v1.DenomTrace(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.interchain_accounts.v1.InterchainAccount(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.path = reader.string(); + message.base_account = $root.cosmos.auth.v1beta1.BaseAccount.decode(reader, reader.uint32()); break; case 2: - message.base_denom = reader.string(); + message.account_owner = reader.string(); break; default: reader.skipType(tag & 7); @@ -31347,117 +37878,126 @@ }; /** - * Decodes a DenomTrace message from the specified reader or buffer, length delimited. + * Decodes an InterchainAccount message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.applications.transfer.v1.DenomTrace + * @memberof ibc.applications.interchain_accounts.v1.InterchainAccount * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.transfer.v1.DenomTrace} DenomTrace + * @returns {ibc.applications.interchain_accounts.v1.InterchainAccount} InterchainAccount * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DenomTrace.decodeDelimited = function decodeDelimited(reader) { + InterchainAccount.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DenomTrace message. + * Verifies an InterchainAccount message. * @function verify - * @memberof ibc.applications.transfer.v1.DenomTrace + * @memberof ibc.applications.interchain_accounts.v1.InterchainAccount * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DenomTrace.verify = function verify(message) { + InterchainAccount.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.path != null && message.hasOwnProperty("path")) - if (!$util.isString(message.path)) - return "path: string expected"; - if (message.base_denom != null && message.hasOwnProperty("base_denom")) - if (!$util.isString(message.base_denom)) - return "base_denom: string expected"; + if (message.base_account != null && message.hasOwnProperty("base_account")) { + var error = $root.cosmos.auth.v1beta1.BaseAccount.verify(message.base_account); + if (error) + return "base_account." + error; + } + if (message.account_owner != null && message.hasOwnProperty("account_owner")) + if (!$util.isString(message.account_owner)) + return "account_owner: string expected"; return null; }; /** - * Creates a DenomTrace message from a plain object. Also converts values to their respective internal types. + * Creates an InterchainAccount message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.applications.transfer.v1.DenomTrace + * @memberof ibc.applications.interchain_accounts.v1.InterchainAccount * @static * @param {Object.} object Plain object - * @returns {ibc.applications.transfer.v1.DenomTrace} DenomTrace + * @returns {ibc.applications.interchain_accounts.v1.InterchainAccount} InterchainAccount */ - DenomTrace.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.transfer.v1.DenomTrace) + InterchainAccount.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.interchain_accounts.v1.InterchainAccount) return object; - var message = new $root.ibc.applications.transfer.v1.DenomTrace(); - if (object.path != null) - message.path = String(object.path); - if (object.base_denom != null) - message.base_denom = String(object.base_denom); + var message = new $root.ibc.applications.interchain_accounts.v1.InterchainAccount(); + if (object.base_account != null) { + if (typeof object.base_account !== "object") + throw TypeError(".ibc.applications.interchain_accounts.v1.InterchainAccount.base_account: object expected"); + message.base_account = $root.cosmos.auth.v1beta1.BaseAccount.fromObject(object.base_account); + } + if (object.account_owner != null) + message.account_owner = String(object.account_owner); return message; }; /** - * Creates a plain object from a DenomTrace message. Also converts values to other types if specified. + * Creates a plain object from an InterchainAccount message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.applications.transfer.v1.DenomTrace + * @memberof ibc.applications.interchain_accounts.v1.InterchainAccount * @static - * @param {ibc.applications.transfer.v1.DenomTrace} message DenomTrace + * @param {ibc.applications.interchain_accounts.v1.InterchainAccount} message InterchainAccount * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DenomTrace.toObject = function toObject(message, options) { + InterchainAccount.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.path = ""; - object.base_denom = ""; + object.base_account = null; + object.account_owner = ""; } - if (message.path != null && message.hasOwnProperty("path")) - object.path = message.path; - if (message.base_denom != null && message.hasOwnProperty("base_denom")) - object.base_denom = message.base_denom; + if (message.base_account != null && message.hasOwnProperty("base_account")) + object.base_account = $root.cosmos.auth.v1beta1.BaseAccount.toObject(message.base_account, options); + if (message.account_owner != null && message.hasOwnProperty("account_owner")) + object.account_owner = message.account_owner; return object; }; /** - * Converts this DenomTrace to JSON. + * Converts this InterchainAccount to JSON. * @function toJSON - * @memberof ibc.applications.transfer.v1.DenomTrace + * @memberof ibc.applications.interchain_accounts.v1.InterchainAccount * @instance * @returns {Object.} JSON object */ - DenomTrace.prototype.toJSON = function toJSON() { + InterchainAccount.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DenomTrace; + return InterchainAccount; })(); - v1.Params = (function() { + v1.Metadata = (function() { /** - * Properties of a Params. - * @memberof ibc.applications.transfer.v1 - * @interface IParams - * @property {boolean|null} [send_enabled] Params send_enabled - * @property {boolean|null} [receive_enabled] Params receive_enabled + * Properties of a Metadata. + * @memberof ibc.applications.interchain_accounts.v1 + * @interface IMetadata + * @property {string|null} [version] Metadata version + * @property {string|null} [controller_connection_id] Metadata controller_connection_id + * @property {string|null} [host_connection_id] Metadata host_connection_id + * @property {string|null} [address] Metadata address + * @property {string|null} [encoding] Metadata encoding + * @property {string|null} [tx_type] Metadata tx_type */ /** - * Constructs a new Params. - * @memberof ibc.applications.transfer.v1 - * @classdesc Represents a Params. - * @implements IParams + * Constructs a new Metadata. + * @memberof ibc.applications.interchain_accounts.v1 + * @classdesc Represents a Metadata. + * @implements IMetadata * @constructor - * @param {ibc.applications.transfer.v1.IParams=} [properties] Properties to set + * @param {ibc.applications.interchain_accounts.v1.IMetadata=} [properties] Properties to set */ - function Params(properties) { + function Metadata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -31465,76 +38005,128 @@ } /** - * Params send_enabled. - * @member {boolean} send_enabled - * @memberof ibc.applications.transfer.v1.Params + * Metadata version. + * @member {string} version + * @memberof ibc.applications.interchain_accounts.v1.Metadata * @instance */ - Params.prototype.send_enabled = false; + Metadata.prototype.version = ""; /** - * Params receive_enabled. - * @member {boolean} receive_enabled - * @memberof ibc.applications.transfer.v1.Params + * Metadata controller_connection_id. + * @member {string} controller_connection_id + * @memberof ibc.applications.interchain_accounts.v1.Metadata * @instance */ - Params.prototype.receive_enabled = false; + Metadata.prototype.controller_connection_id = ""; /** - * Encodes the specified Params message. Does not implicitly {@link ibc.applications.transfer.v1.Params.verify|verify} messages. + * Metadata host_connection_id. + * @member {string} host_connection_id + * @memberof ibc.applications.interchain_accounts.v1.Metadata + * @instance + */ + Metadata.prototype.host_connection_id = ""; + + /** + * Metadata address. + * @member {string} address + * @memberof ibc.applications.interchain_accounts.v1.Metadata + * @instance + */ + Metadata.prototype.address = ""; + + /** + * Metadata encoding. + * @member {string} encoding + * @memberof ibc.applications.interchain_accounts.v1.Metadata + * @instance + */ + Metadata.prototype.encoding = ""; + + /** + * Metadata tx_type. + * @member {string} tx_type + * @memberof ibc.applications.interchain_accounts.v1.Metadata + * @instance + */ + Metadata.prototype.tx_type = ""; + + /** + * Encodes the specified Metadata message. Does not implicitly {@link ibc.applications.interchain_accounts.v1.Metadata.verify|verify} messages. * @function encode - * @memberof ibc.applications.transfer.v1.Params + * @memberof ibc.applications.interchain_accounts.v1.Metadata * @static - * @param {ibc.applications.transfer.v1.IParams} message Params message or plain object to encode + * @param {ibc.applications.interchain_accounts.v1.IMetadata} message Metadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Params.encode = function encode(message, writer) { + Metadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.send_enabled != null && Object.hasOwnProperty.call(message, "send_enabled")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.send_enabled); - if (message.receive_enabled != null && Object.hasOwnProperty.call(message, "receive_enabled")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.receive_enabled); + if (message.version != null && Object.hasOwnProperty.call(message, "version")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.version); + if (message.controller_connection_id != null && Object.hasOwnProperty.call(message, "controller_connection_id")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.controller_connection_id); + if (message.host_connection_id != null && Object.hasOwnProperty.call(message, "host_connection_id")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.host_connection_id); + if (message.address != null && Object.hasOwnProperty.call(message, "address")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.address); + if (message.encoding != null && Object.hasOwnProperty.call(message, "encoding")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.encoding); + if (message.tx_type != null && Object.hasOwnProperty.call(message, "tx_type")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.tx_type); return writer; }; /** - * Encodes the specified Params message, length delimited. Does not implicitly {@link ibc.applications.transfer.v1.Params.verify|verify} messages. + * Encodes the specified Metadata message, length delimited. Does not implicitly {@link ibc.applications.interchain_accounts.v1.Metadata.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.applications.transfer.v1.Params + * @memberof ibc.applications.interchain_accounts.v1.Metadata * @static - * @param {ibc.applications.transfer.v1.IParams} message Params message or plain object to encode + * @param {ibc.applications.interchain_accounts.v1.IMetadata} message Metadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Params.encodeDelimited = function encodeDelimited(message, writer) { + Metadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Params message from the specified reader or buffer. + * Decodes a Metadata message from the specified reader or buffer. * @function decode - * @memberof ibc.applications.transfer.v1.Params + * @memberof ibc.applications.interchain_accounts.v1.Metadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.transfer.v1.Params} Params + * @returns {ibc.applications.interchain_accounts.v1.Metadata} Metadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Params.decode = function decode(reader, length) { + Metadata.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.transfer.v1.Params(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.interchain_accounts.v1.Metadata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.send_enabled = reader.bool(); + message.version = reader.string(); break; case 2: - message.receive_enabled = reader.bool(); + message.controller_connection_id = reader.string(); + break; + case 3: + message.host_connection_id = reader.string(); + break; + case 4: + message.address = reader.string(); + break; + case 5: + message.encoding = reader.string(); + break; + case 6: + message.tx_type = reader.string(); break; default: reader.skipType(tag & 7); @@ -31545,1564 +38137,2144 @@ }; /** - * Decodes a Params message from the specified reader or buffer, length delimited. + * Decodes a Metadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.applications.transfer.v1.Params + * @memberof ibc.applications.interchain_accounts.v1.Metadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.transfer.v1.Params} Params + * @returns {ibc.applications.interchain_accounts.v1.Metadata} Metadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Params.decodeDelimited = function decodeDelimited(reader) { + Metadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Params message. + * Verifies a Metadata message. * @function verify - * @memberof ibc.applications.transfer.v1.Params + * @memberof ibc.applications.interchain_accounts.v1.Metadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Params.verify = function verify(message) { + Metadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.send_enabled != null && message.hasOwnProperty("send_enabled")) - if (typeof message.send_enabled !== "boolean") - return "send_enabled: boolean expected"; - if (message.receive_enabled != null && message.hasOwnProperty("receive_enabled")) - if (typeof message.receive_enabled !== "boolean") - return "receive_enabled: boolean expected"; + if (message.version != null && message.hasOwnProperty("version")) + if (!$util.isString(message.version)) + return "version: string expected"; + if (message.controller_connection_id != null && message.hasOwnProperty("controller_connection_id")) + if (!$util.isString(message.controller_connection_id)) + return "controller_connection_id: string expected"; + if (message.host_connection_id != null && message.hasOwnProperty("host_connection_id")) + if (!$util.isString(message.host_connection_id)) + return "host_connection_id: string expected"; + if (message.address != null && message.hasOwnProperty("address")) + if (!$util.isString(message.address)) + return "address: string expected"; + if (message.encoding != null && message.hasOwnProperty("encoding")) + if (!$util.isString(message.encoding)) + return "encoding: string expected"; + if (message.tx_type != null && message.hasOwnProperty("tx_type")) + if (!$util.isString(message.tx_type)) + return "tx_type: string expected"; return null; }; /** - * Creates a Params message from a plain object. Also converts values to their respective internal types. + * Creates a Metadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.applications.transfer.v1.Params + * @memberof ibc.applications.interchain_accounts.v1.Metadata * @static * @param {Object.} object Plain object - * @returns {ibc.applications.transfer.v1.Params} Params + * @returns {ibc.applications.interchain_accounts.v1.Metadata} Metadata */ - Params.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.transfer.v1.Params) + Metadata.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.interchain_accounts.v1.Metadata) return object; - var message = new $root.ibc.applications.transfer.v1.Params(); - if (object.send_enabled != null) - message.send_enabled = Boolean(object.send_enabled); - if (object.receive_enabled != null) - message.receive_enabled = Boolean(object.receive_enabled); + var message = new $root.ibc.applications.interchain_accounts.v1.Metadata(); + if (object.version != null) + message.version = String(object.version); + if (object.controller_connection_id != null) + message.controller_connection_id = String(object.controller_connection_id); + if (object.host_connection_id != null) + message.host_connection_id = String(object.host_connection_id); + if (object.address != null) + message.address = String(object.address); + if (object.encoding != null) + message.encoding = String(object.encoding); + if (object.tx_type != null) + message.tx_type = String(object.tx_type); return message; }; /** - * Creates a plain object from a Params message. Also converts values to other types if specified. + * Creates a plain object from a Metadata message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.applications.transfer.v1.Params + * @memberof ibc.applications.interchain_accounts.v1.Metadata * @static - * @param {ibc.applications.transfer.v1.Params} message Params + * @param {ibc.applications.interchain_accounts.v1.Metadata} message Metadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Params.toObject = function toObject(message, options) { + Metadata.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.send_enabled = false; - object.receive_enabled = false; + object.version = ""; + object.controller_connection_id = ""; + object.host_connection_id = ""; + object.address = ""; + object.encoding = ""; + object.tx_type = ""; } - if (message.send_enabled != null && message.hasOwnProperty("send_enabled")) - object.send_enabled = message.send_enabled; - if (message.receive_enabled != null && message.hasOwnProperty("receive_enabled")) - object.receive_enabled = message.receive_enabled; + if (message.version != null && message.hasOwnProperty("version")) + object.version = message.version; + if (message.controller_connection_id != null && message.hasOwnProperty("controller_connection_id")) + object.controller_connection_id = message.controller_connection_id; + if (message.host_connection_id != null && message.hasOwnProperty("host_connection_id")) + object.host_connection_id = message.host_connection_id; + if (message.address != null && message.hasOwnProperty("address")) + object.address = message.address; + if (message.encoding != null && message.hasOwnProperty("encoding")) + object.encoding = message.encoding; + if (message.tx_type != null && message.hasOwnProperty("tx_type")) + object.tx_type = message.tx_type; return object; }; /** - * Converts this Params to JSON. + * Converts this Metadata to JSON. * @function toJSON - * @memberof ibc.applications.transfer.v1.Params + * @memberof ibc.applications.interchain_accounts.v1.Metadata * @instance * @returns {Object.} JSON object */ - Params.prototype.toJSON = function toJSON() { + Metadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Params; + return Metadata; })(); - v1.Query = (function() { + return v1; + })(); - /** - * Constructs a new Query service. - * @memberof ibc.applications.transfer.v1 - * @classdesc Represents a Query - * @extends $protobuf.rpc.Service - * @constructor - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - */ - function Query(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } + interchain_accounts.genesis = (function() { - (Query.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Query; + /** + * Namespace genesis. + * @memberof ibc.applications.interchain_accounts + * @namespace + */ + var genesis = {}; - /** - * Callback as used by {@link ibc.applications.transfer.v1.Query#denomTrace}. - * @memberof ibc.applications.transfer.v1.Query - * @typedef DenomTraceCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.applications.transfer.v1.QueryDenomTraceResponse} [response] QueryDenomTraceResponse - */ + genesis.v1 = (function() { /** - * Calls DenomTrace. - * @function denomTrace - * @memberof ibc.applications.transfer.v1.Query - * @instance - * @param {ibc.applications.transfer.v1.IQueryDenomTraceRequest} request QueryDenomTraceRequest message or plain object - * @param {ibc.applications.transfer.v1.Query.DenomTraceCallback} callback Node-style callback called with the error, if any, and QueryDenomTraceResponse - * @returns {undefined} - * @variation 1 + * Namespace v1. + * @memberof ibc.applications.interchain_accounts.genesis + * @namespace */ - Object.defineProperty(Query.prototype.denomTrace = function denomTrace(request, callback) { - return this.rpcCall(denomTrace, $root.ibc.applications.transfer.v1.QueryDenomTraceRequest, $root.ibc.applications.transfer.v1.QueryDenomTraceResponse, request, callback); - }, "name", { value: "DenomTrace" }); + var v1 = {}; - /** - * Calls DenomTrace. - * @function denomTrace - * @memberof ibc.applications.transfer.v1.Query - * @instance - * @param {ibc.applications.transfer.v1.IQueryDenomTraceRequest} request QueryDenomTraceRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + v1.GenesisState = (function() { - /** - * Callback as used by {@link ibc.applications.transfer.v1.Query#denomTraces}. - * @memberof ibc.applications.transfer.v1.Query - * @typedef DenomTracesCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.applications.transfer.v1.QueryDenomTracesResponse} [response] QueryDenomTracesResponse - */ + /** + * Properties of a GenesisState. + * @memberof ibc.applications.interchain_accounts.genesis.v1 + * @interface IGenesisState + * @property {ibc.applications.interchain_accounts.genesis.v1.IControllerGenesisState|null} [controller_genesis_state] GenesisState controller_genesis_state + * @property {ibc.applications.interchain_accounts.genesis.v1.IHostGenesisState|null} [host_genesis_state] GenesisState host_genesis_state + */ - /** - * Calls DenomTraces. - * @function denomTraces - * @memberof ibc.applications.transfer.v1.Query - * @instance - * @param {ibc.applications.transfer.v1.IQueryDenomTracesRequest} request QueryDenomTracesRequest message or plain object - * @param {ibc.applications.transfer.v1.Query.DenomTracesCallback} callback Node-style callback called with the error, if any, and QueryDenomTracesResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Query.prototype.denomTraces = function denomTraces(request, callback) { - return this.rpcCall(denomTraces, $root.ibc.applications.transfer.v1.QueryDenomTracesRequest, $root.ibc.applications.transfer.v1.QueryDenomTracesResponse, request, callback); - }, "name", { value: "DenomTraces" }); + /** + * Constructs a new GenesisState. + * @memberof ibc.applications.interchain_accounts.genesis.v1 + * @classdesc Represents a GenesisState. + * @implements IGenesisState + * @constructor + * @param {ibc.applications.interchain_accounts.genesis.v1.IGenesisState=} [properties] Properties to set + */ + function GenesisState(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Calls DenomTraces. - * @function denomTraces - * @memberof ibc.applications.transfer.v1.Query - * @instance - * @param {ibc.applications.transfer.v1.IQueryDenomTracesRequest} request QueryDenomTracesRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * GenesisState controller_genesis_state. + * @member {ibc.applications.interchain_accounts.genesis.v1.IControllerGenesisState|null|undefined} controller_genesis_state + * @memberof ibc.applications.interchain_accounts.genesis.v1.GenesisState + * @instance + */ + GenesisState.prototype.controller_genesis_state = null; - /** - * Callback as used by {@link ibc.applications.transfer.v1.Query#params}. - * @memberof ibc.applications.transfer.v1.Query - * @typedef ParamsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.applications.transfer.v1.QueryParamsResponse} [response] QueryParamsResponse - */ + /** + * GenesisState host_genesis_state. + * @member {ibc.applications.interchain_accounts.genesis.v1.IHostGenesisState|null|undefined} host_genesis_state + * @memberof ibc.applications.interchain_accounts.genesis.v1.GenesisState + * @instance + */ + GenesisState.prototype.host_genesis_state = null; - /** - * Calls Params. - * @function params - * @memberof ibc.applications.transfer.v1.Query - * @instance - * @param {ibc.applications.transfer.v1.IQueryParamsRequest} request QueryParamsRequest message or plain object - * @param {ibc.applications.transfer.v1.Query.ParamsCallback} callback Node-style callback called with the error, if any, and QueryParamsResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Query.prototype.params = function params(request, callback) { - return this.rpcCall(params, $root.ibc.applications.transfer.v1.QueryParamsRequest, $root.ibc.applications.transfer.v1.QueryParamsResponse, request, callback); - }, "name", { value: "Params" }); + /** + * Encodes the specified GenesisState message. Does not implicitly {@link ibc.applications.interchain_accounts.genesis.v1.GenesisState.verify|verify} messages. + * @function encode + * @memberof ibc.applications.interchain_accounts.genesis.v1.GenesisState + * @static + * @param {ibc.applications.interchain_accounts.genesis.v1.IGenesisState} message GenesisState message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GenesisState.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.controller_genesis_state != null && Object.hasOwnProperty.call(message, "controller_genesis_state")) + $root.ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState.encode(message.controller_genesis_state, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.host_genesis_state != null && Object.hasOwnProperty.call(message, "host_genesis_state")) + $root.ibc.applications.interchain_accounts.genesis.v1.HostGenesisState.encode(message.host_genesis_state, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; - /** - * Calls Params. - * @function params - * @memberof ibc.applications.transfer.v1.Query - * @instance - * @param {ibc.applications.transfer.v1.IQueryParamsRequest} request QueryParamsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * Encodes the specified GenesisState message, length delimited. Does not implicitly {@link ibc.applications.interchain_accounts.genesis.v1.GenesisState.verify|verify} messages. + * @function encodeDelimited + * @memberof ibc.applications.interchain_accounts.genesis.v1.GenesisState + * @static + * @param {ibc.applications.interchain_accounts.genesis.v1.IGenesisState} message GenesisState message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GenesisState.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Callback as used by {@link ibc.applications.transfer.v1.Query#denomHash}. - * @memberof ibc.applications.transfer.v1.Query - * @typedef DenomHashCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.applications.transfer.v1.QueryDenomHashResponse} [response] QueryDenomHashResponse - */ + /** + * Decodes a GenesisState message from the specified reader or buffer. + * @function decode + * @memberof ibc.applications.interchain_accounts.genesis.v1.GenesisState + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {ibc.applications.interchain_accounts.genesis.v1.GenesisState} GenesisState + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GenesisState.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.interchain_accounts.genesis.v1.GenesisState(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.controller_genesis_state = $root.ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState.decode(reader, reader.uint32()); + break; + case 2: + message.host_genesis_state = $root.ibc.applications.interchain_accounts.genesis.v1.HostGenesisState.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Calls DenomHash. - * @function denomHash - * @memberof ibc.applications.transfer.v1.Query - * @instance - * @param {ibc.applications.transfer.v1.IQueryDenomHashRequest} request QueryDenomHashRequest message or plain object - * @param {ibc.applications.transfer.v1.Query.DenomHashCallback} callback Node-style callback called with the error, if any, and QueryDenomHashResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Query.prototype.denomHash = function denomHash(request, callback) { - return this.rpcCall(denomHash, $root.ibc.applications.transfer.v1.QueryDenomHashRequest, $root.ibc.applications.transfer.v1.QueryDenomHashResponse, request, callback); - }, "name", { value: "DenomHash" }); + /** + * Decodes a GenesisState message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof ibc.applications.interchain_accounts.genesis.v1.GenesisState + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {ibc.applications.interchain_accounts.genesis.v1.GenesisState} GenesisState + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GenesisState.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Calls DenomHash. - * @function denomHash - * @memberof ibc.applications.transfer.v1.Query - * @instance - * @param {ibc.applications.transfer.v1.IQueryDenomHashRequest} request QueryDenomHashRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * Verifies a GenesisState message. + * @function verify + * @memberof ibc.applications.interchain_accounts.genesis.v1.GenesisState + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GenesisState.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.controller_genesis_state != null && message.hasOwnProperty("controller_genesis_state")) { + var error = $root.ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState.verify(message.controller_genesis_state); + if (error) + return "controller_genesis_state." + error; + } + if (message.host_genesis_state != null && message.hasOwnProperty("host_genesis_state")) { + var error = $root.ibc.applications.interchain_accounts.genesis.v1.HostGenesisState.verify(message.host_genesis_state); + if (error) + return "host_genesis_state." + error; + } + return null; + }; + + /** + * Creates a GenesisState message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof ibc.applications.interchain_accounts.genesis.v1.GenesisState + * @static + * @param {Object.} object Plain object + * @returns {ibc.applications.interchain_accounts.genesis.v1.GenesisState} GenesisState + */ + GenesisState.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.interchain_accounts.genesis.v1.GenesisState) + return object; + var message = new $root.ibc.applications.interchain_accounts.genesis.v1.GenesisState(); + if (object.controller_genesis_state != null) { + if (typeof object.controller_genesis_state !== "object") + throw TypeError(".ibc.applications.interchain_accounts.genesis.v1.GenesisState.controller_genesis_state: object expected"); + message.controller_genesis_state = $root.ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState.fromObject(object.controller_genesis_state); + } + if (object.host_genesis_state != null) { + if (typeof object.host_genesis_state !== "object") + throw TypeError(".ibc.applications.interchain_accounts.genesis.v1.GenesisState.host_genesis_state: object expected"); + message.host_genesis_state = $root.ibc.applications.interchain_accounts.genesis.v1.HostGenesisState.fromObject(object.host_genesis_state); + } + return message; + }; + + /** + * Creates a plain object from a GenesisState message. Also converts values to other types if specified. + * @function toObject + * @memberof ibc.applications.interchain_accounts.genesis.v1.GenesisState + * @static + * @param {ibc.applications.interchain_accounts.genesis.v1.GenesisState} message GenesisState + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GenesisState.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.controller_genesis_state = null; + object.host_genesis_state = null; + } + if (message.controller_genesis_state != null && message.hasOwnProperty("controller_genesis_state")) + object.controller_genesis_state = $root.ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState.toObject(message.controller_genesis_state, options); + if (message.host_genesis_state != null && message.hasOwnProperty("host_genesis_state")) + object.host_genesis_state = $root.ibc.applications.interchain_accounts.genesis.v1.HostGenesisState.toObject(message.host_genesis_state, options); + return object; + }; + + /** + * Converts this GenesisState to JSON. + * @function toJSON + * @memberof ibc.applications.interchain_accounts.genesis.v1.GenesisState + * @instance + * @returns {Object.} JSON object + */ + GenesisState.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return GenesisState; + })(); + + v1.ControllerGenesisState = (function() { + + /** + * Properties of a ControllerGenesisState. + * @memberof ibc.applications.interchain_accounts.genesis.v1 + * @interface IControllerGenesisState + * @property {Array.|null} [active_channels] ControllerGenesisState active_channels + * @property {Array.|null} [interchain_accounts] ControllerGenesisState interchain_accounts + * @property {Array.|null} [ports] ControllerGenesisState ports + * @property {ibc.applications.interchain_accounts.controller.v1.IParams|null} [params] ControllerGenesisState params + */ + + /** + * Constructs a new ControllerGenesisState. + * @memberof ibc.applications.interchain_accounts.genesis.v1 + * @classdesc Represents a ControllerGenesisState. + * @implements IControllerGenesisState + * @constructor + * @param {ibc.applications.interchain_accounts.genesis.v1.IControllerGenesisState=} [properties] Properties to set + */ + function ControllerGenesisState(properties) { + this.active_channels = []; + this.interchain_accounts = []; + this.ports = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ControllerGenesisState active_channels. + * @member {Array.} active_channels + * @memberof ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState + * @instance + */ + ControllerGenesisState.prototype.active_channels = $util.emptyArray; + + /** + * ControllerGenesisState interchain_accounts. + * @member {Array.} interchain_accounts + * @memberof ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState + * @instance + */ + ControllerGenesisState.prototype.interchain_accounts = $util.emptyArray; + + /** + * ControllerGenesisState ports. + * @member {Array.} ports + * @memberof ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState + * @instance + */ + ControllerGenesisState.prototype.ports = $util.emptyArray; + + /** + * ControllerGenesisState params. + * @member {ibc.applications.interchain_accounts.controller.v1.IParams|null|undefined} params + * @memberof ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState + * @instance + */ + ControllerGenesisState.prototype.params = null; + + /** + * Encodes the specified ControllerGenesisState message. Does not implicitly {@link ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState.verify|verify} messages. + * @function encode + * @memberof ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState + * @static + * @param {ibc.applications.interchain_accounts.genesis.v1.IControllerGenesisState} message ControllerGenesisState message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ControllerGenesisState.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.active_channels != null && message.active_channels.length) + for (var i = 0; i < message.active_channels.length; ++i) + $root.ibc.applications.interchain_accounts.genesis.v1.ActiveChannel.encode(message.active_channels[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.interchain_accounts != null && message.interchain_accounts.length) + for (var i = 0; i < message.interchain_accounts.length; ++i) + $root.ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount.encode(message.interchain_accounts[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.ports != null && message.ports.length) + for (var i = 0; i < message.ports.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.ports[i]); + if (message.params != null && Object.hasOwnProperty.call(message, "params")) + $root.ibc.applications.interchain_accounts.controller.v1.Params.encode(message.params, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ControllerGenesisState message, length delimited. Does not implicitly {@link ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState.verify|verify} messages. + * @function encodeDelimited + * @memberof ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState + * @static + * @param {ibc.applications.interchain_accounts.genesis.v1.IControllerGenesisState} message ControllerGenesisState message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ControllerGenesisState.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ControllerGenesisState message from the specified reader or buffer. + * @function decode + * @memberof ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState} ControllerGenesisState + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ControllerGenesisState.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.active_channels && message.active_channels.length)) + message.active_channels = []; + message.active_channels.push($root.ibc.applications.interchain_accounts.genesis.v1.ActiveChannel.decode(reader, reader.uint32())); + break; + case 2: + if (!(message.interchain_accounts && message.interchain_accounts.length)) + message.interchain_accounts = []; + message.interchain_accounts.push($root.ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount.decode(reader, reader.uint32())); + break; + case 3: + if (!(message.ports && message.ports.length)) + message.ports = []; + message.ports.push(reader.string()); + break; + case 4: + message.params = $root.ibc.applications.interchain_accounts.controller.v1.Params.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ControllerGenesisState message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState} ControllerGenesisState + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ControllerGenesisState.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ControllerGenesisState message. + * @function verify + * @memberof ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ControllerGenesisState.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.active_channels != null && message.hasOwnProperty("active_channels")) { + if (!Array.isArray(message.active_channels)) + return "active_channels: array expected"; + for (var i = 0; i < message.active_channels.length; ++i) { + var error = $root.ibc.applications.interchain_accounts.genesis.v1.ActiveChannel.verify(message.active_channels[i]); + if (error) + return "active_channels." + error; + } + } + if (message.interchain_accounts != null && message.hasOwnProperty("interchain_accounts")) { + if (!Array.isArray(message.interchain_accounts)) + return "interchain_accounts: array expected"; + for (var i = 0; i < message.interchain_accounts.length; ++i) { + var error = $root.ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount.verify(message.interchain_accounts[i]); + if (error) + return "interchain_accounts." + error; + } + } + if (message.ports != null && message.hasOwnProperty("ports")) { + if (!Array.isArray(message.ports)) + return "ports: array expected"; + for (var i = 0; i < message.ports.length; ++i) + if (!$util.isString(message.ports[i])) + return "ports: string[] expected"; + } + if (message.params != null && message.hasOwnProperty("params")) { + var error = $root.ibc.applications.interchain_accounts.controller.v1.Params.verify(message.params); + if (error) + return "params." + error; + } + return null; + }; + + /** + * Creates a ControllerGenesisState message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState + * @static + * @param {Object.} object Plain object + * @returns {ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState} ControllerGenesisState + */ + ControllerGenesisState.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState) + return object; + var message = new $root.ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState(); + if (object.active_channels) { + if (!Array.isArray(object.active_channels)) + throw TypeError(".ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState.active_channels: array expected"); + message.active_channels = []; + for (var i = 0; i < object.active_channels.length; ++i) { + if (typeof object.active_channels[i] !== "object") + throw TypeError(".ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState.active_channels: object expected"); + message.active_channels[i] = $root.ibc.applications.interchain_accounts.genesis.v1.ActiveChannel.fromObject(object.active_channels[i]); + } + } + if (object.interchain_accounts) { + if (!Array.isArray(object.interchain_accounts)) + throw TypeError(".ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState.interchain_accounts: array expected"); + message.interchain_accounts = []; + for (var i = 0; i < object.interchain_accounts.length; ++i) { + if (typeof object.interchain_accounts[i] !== "object") + throw TypeError(".ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState.interchain_accounts: object expected"); + message.interchain_accounts[i] = $root.ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount.fromObject(object.interchain_accounts[i]); + } + } + if (object.ports) { + if (!Array.isArray(object.ports)) + throw TypeError(".ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState.ports: array expected"); + message.ports = []; + for (var i = 0; i < object.ports.length; ++i) + message.ports[i] = String(object.ports[i]); + } + if (object.params != null) { + if (typeof object.params !== "object") + throw TypeError(".ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState.params: object expected"); + message.params = $root.ibc.applications.interchain_accounts.controller.v1.Params.fromObject(object.params); + } + return message; + }; + + /** + * Creates a plain object from a ControllerGenesisState message. Also converts values to other types if specified. + * @function toObject + * @memberof ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState + * @static + * @param {ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState} message ControllerGenesisState + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ControllerGenesisState.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.active_channels = []; + object.interchain_accounts = []; + object.ports = []; + } + if (options.defaults) + object.params = null; + if (message.active_channels && message.active_channels.length) { + object.active_channels = []; + for (var j = 0; j < message.active_channels.length; ++j) + object.active_channels[j] = $root.ibc.applications.interchain_accounts.genesis.v1.ActiveChannel.toObject(message.active_channels[j], options); + } + if (message.interchain_accounts && message.interchain_accounts.length) { + object.interchain_accounts = []; + for (var j = 0; j < message.interchain_accounts.length; ++j) + object.interchain_accounts[j] = $root.ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount.toObject(message.interchain_accounts[j], options); + } + if (message.ports && message.ports.length) { + object.ports = []; + for (var j = 0; j < message.ports.length; ++j) + object.ports[j] = message.ports[j]; + } + if (message.params != null && message.hasOwnProperty("params")) + object.params = $root.ibc.applications.interchain_accounts.controller.v1.Params.toObject(message.params, options); + return object; + }; + + /** + * Converts this ControllerGenesisState to JSON. + * @function toJSON + * @memberof ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState + * @instance + * @returns {Object.} JSON object + */ + ControllerGenesisState.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Callback as used by {@link ibc.applications.transfer.v1.Query#escrowAddress}. - * @memberof ibc.applications.transfer.v1.Query - * @typedef EscrowAddressCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.applications.transfer.v1.QueryEscrowAddressResponse} [response] QueryEscrowAddressResponse - */ + return ControllerGenesisState; + })(); - /** - * Calls EscrowAddress. - * @function escrowAddress - * @memberof ibc.applications.transfer.v1.Query - * @instance - * @param {ibc.applications.transfer.v1.IQueryEscrowAddressRequest} request QueryEscrowAddressRequest message or plain object - * @param {ibc.applications.transfer.v1.Query.EscrowAddressCallback} callback Node-style callback called with the error, if any, and QueryEscrowAddressResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Query.prototype.escrowAddress = function escrowAddress(request, callback) { - return this.rpcCall(escrowAddress, $root.ibc.applications.transfer.v1.QueryEscrowAddressRequest, $root.ibc.applications.transfer.v1.QueryEscrowAddressResponse, request, callback); - }, "name", { value: "EscrowAddress" }); + v1.HostGenesisState = (function() { - /** - * Calls EscrowAddress. - * @function escrowAddress - * @memberof ibc.applications.transfer.v1.Query - * @instance - * @param {ibc.applications.transfer.v1.IQueryEscrowAddressRequest} request QueryEscrowAddressRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * Properties of a HostGenesisState. + * @memberof ibc.applications.interchain_accounts.genesis.v1 + * @interface IHostGenesisState + * @property {Array.|null} [active_channels] HostGenesisState active_channels + * @property {Array.|null} [interchain_accounts] HostGenesisState interchain_accounts + * @property {string|null} [port] HostGenesisState port + * @property {ibc.applications.interchain_accounts.host.v1.IParams|null} [params] HostGenesisState params + */ - return Query; - })(); + /** + * Constructs a new HostGenesisState. + * @memberof ibc.applications.interchain_accounts.genesis.v1 + * @classdesc Represents a HostGenesisState. + * @implements IHostGenesisState + * @constructor + * @param {ibc.applications.interchain_accounts.genesis.v1.IHostGenesisState=} [properties] Properties to set + */ + function HostGenesisState(properties) { + this.active_channels = []; + this.interchain_accounts = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - v1.QueryDenomTraceRequest = (function() { + /** + * HostGenesisState active_channels. + * @member {Array.} active_channels + * @memberof ibc.applications.interchain_accounts.genesis.v1.HostGenesisState + * @instance + */ + HostGenesisState.prototype.active_channels = $util.emptyArray; - /** - * Properties of a QueryDenomTraceRequest. - * @memberof ibc.applications.transfer.v1 - * @interface IQueryDenomTraceRequest - * @property {string|null} [hash] QueryDenomTraceRequest hash - */ + /** + * HostGenesisState interchain_accounts. + * @member {Array.} interchain_accounts + * @memberof ibc.applications.interchain_accounts.genesis.v1.HostGenesisState + * @instance + */ + HostGenesisState.prototype.interchain_accounts = $util.emptyArray; - /** - * Constructs a new QueryDenomTraceRequest. - * @memberof ibc.applications.transfer.v1 - * @classdesc Represents a QueryDenomTraceRequest. - * @implements IQueryDenomTraceRequest - * @constructor - * @param {ibc.applications.transfer.v1.IQueryDenomTraceRequest=} [properties] Properties to set - */ - function QueryDenomTraceRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * HostGenesisState port. + * @member {string} port + * @memberof ibc.applications.interchain_accounts.genesis.v1.HostGenesisState + * @instance + */ + HostGenesisState.prototype.port = ""; - /** - * QueryDenomTraceRequest hash. - * @member {string} hash - * @memberof ibc.applications.transfer.v1.QueryDenomTraceRequest - * @instance - */ - QueryDenomTraceRequest.prototype.hash = ""; + /** + * HostGenesisState params. + * @member {ibc.applications.interchain_accounts.host.v1.IParams|null|undefined} params + * @memberof ibc.applications.interchain_accounts.genesis.v1.HostGenesisState + * @instance + */ + HostGenesisState.prototype.params = null; - /** - * Encodes the specified QueryDenomTraceRequest message. Does not implicitly {@link ibc.applications.transfer.v1.QueryDenomTraceRequest.verify|verify} messages. - * @function encode - * @memberof ibc.applications.transfer.v1.QueryDenomTraceRequest - * @static - * @param {ibc.applications.transfer.v1.IQueryDenomTraceRequest} message QueryDenomTraceRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - QueryDenomTraceRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.hash != null && Object.hasOwnProperty.call(message, "hash")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.hash); - return writer; - }; + /** + * Encodes the specified HostGenesisState message. Does not implicitly {@link ibc.applications.interchain_accounts.genesis.v1.HostGenesisState.verify|verify} messages. + * @function encode + * @memberof ibc.applications.interchain_accounts.genesis.v1.HostGenesisState + * @static + * @param {ibc.applications.interchain_accounts.genesis.v1.IHostGenesisState} message HostGenesisState message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + HostGenesisState.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.active_channels != null && message.active_channels.length) + for (var i = 0; i < message.active_channels.length; ++i) + $root.ibc.applications.interchain_accounts.genesis.v1.ActiveChannel.encode(message.active_channels[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.interchain_accounts != null && message.interchain_accounts.length) + for (var i = 0; i < message.interchain_accounts.length; ++i) + $root.ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount.encode(message.interchain_accounts[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.port != null && Object.hasOwnProperty.call(message, "port")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.port); + if (message.params != null && Object.hasOwnProperty.call(message, "params")) + $root.ibc.applications.interchain_accounts.host.v1.Params.encode(message.params, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + return writer; + }; - /** - * Encodes the specified QueryDenomTraceRequest message, length delimited. Does not implicitly {@link ibc.applications.transfer.v1.QueryDenomTraceRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof ibc.applications.transfer.v1.QueryDenomTraceRequest - * @static - * @param {ibc.applications.transfer.v1.IQueryDenomTraceRequest} message QueryDenomTraceRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - QueryDenomTraceRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified HostGenesisState message, length delimited. Does not implicitly {@link ibc.applications.interchain_accounts.genesis.v1.HostGenesisState.verify|verify} messages. + * @function encodeDelimited + * @memberof ibc.applications.interchain_accounts.genesis.v1.HostGenesisState + * @static + * @param {ibc.applications.interchain_accounts.genesis.v1.IHostGenesisState} message HostGenesisState message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + HostGenesisState.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a QueryDenomTraceRequest message from the specified reader or buffer. - * @function decode - * @memberof ibc.applications.transfer.v1.QueryDenomTraceRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.transfer.v1.QueryDenomTraceRequest} QueryDenomTraceRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - QueryDenomTraceRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.transfer.v1.QueryDenomTraceRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.hash = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; + /** + * Decodes a HostGenesisState message from the specified reader or buffer. + * @function decode + * @memberof ibc.applications.interchain_accounts.genesis.v1.HostGenesisState + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {ibc.applications.interchain_accounts.genesis.v1.HostGenesisState} HostGenesisState + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + HostGenesisState.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.interchain_accounts.genesis.v1.HostGenesisState(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.active_channels && message.active_channels.length)) + message.active_channels = []; + message.active_channels.push($root.ibc.applications.interchain_accounts.genesis.v1.ActiveChannel.decode(reader, reader.uint32())); + break; + case 2: + if (!(message.interchain_accounts && message.interchain_accounts.length)) + message.interchain_accounts = []; + message.interchain_accounts.push($root.ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount.decode(reader, reader.uint32())); + break; + case 3: + message.port = reader.string(); + break; + case 4: + message.params = $root.ibc.applications.interchain_accounts.host.v1.Params.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } } - } - return message; - }; + return message; + }; - /** - * Decodes a QueryDenomTraceRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ibc.applications.transfer.v1.QueryDenomTraceRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.transfer.v1.QueryDenomTraceRequest} QueryDenomTraceRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - QueryDenomTraceRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a HostGenesisState message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof ibc.applications.interchain_accounts.genesis.v1.HostGenesisState + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {ibc.applications.interchain_accounts.genesis.v1.HostGenesisState} HostGenesisState + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + HostGenesisState.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies a QueryDenomTraceRequest message. - * @function verify - * @memberof ibc.applications.transfer.v1.QueryDenomTraceRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - QueryDenomTraceRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.hash != null && message.hasOwnProperty("hash")) - if (!$util.isString(message.hash)) - return "hash: string expected"; - return null; - }; + /** + * Verifies a HostGenesisState message. + * @function verify + * @memberof ibc.applications.interchain_accounts.genesis.v1.HostGenesisState + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + HostGenesisState.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.active_channels != null && message.hasOwnProperty("active_channels")) { + if (!Array.isArray(message.active_channels)) + return "active_channels: array expected"; + for (var i = 0; i < message.active_channels.length; ++i) { + var error = $root.ibc.applications.interchain_accounts.genesis.v1.ActiveChannel.verify(message.active_channels[i]); + if (error) + return "active_channels." + error; + } + } + if (message.interchain_accounts != null && message.hasOwnProperty("interchain_accounts")) { + if (!Array.isArray(message.interchain_accounts)) + return "interchain_accounts: array expected"; + for (var i = 0; i < message.interchain_accounts.length; ++i) { + var error = $root.ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount.verify(message.interchain_accounts[i]); + if (error) + return "interchain_accounts." + error; + } + } + if (message.port != null && message.hasOwnProperty("port")) + if (!$util.isString(message.port)) + return "port: string expected"; + if (message.params != null && message.hasOwnProperty("params")) { + var error = $root.ibc.applications.interchain_accounts.host.v1.Params.verify(message.params); + if (error) + return "params." + error; + } + return null; + }; - /** - * Creates a QueryDenomTraceRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof ibc.applications.transfer.v1.QueryDenomTraceRequest - * @static - * @param {Object.} object Plain object - * @returns {ibc.applications.transfer.v1.QueryDenomTraceRequest} QueryDenomTraceRequest - */ - QueryDenomTraceRequest.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.transfer.v1.QueryDenomTraceRequest) + /** + * Creates a HostGenesisState message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof ibc.applications.interchain_accounts.genesis.v1.HostGenesisState + * @static + * @param {Object.} object Plain object + * @returns {ibc.applications.interchain_accounts.genesis.v1.HostGenesisState} HostGenesisState + */ + HostGenesisState.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.interchain_accounts.genesis.v1.HostGenesisState) + return object; + var message = new $root.ibc.applications.interchain_accounts.genesis.v1.HostGenesisState(); + if (object.active_channels) { + if (!Array.isArray(object.active_channels)) + throw TypeError(".ibc.applications.interchain_accounts.genesis.v1.HostGenesisState.active_channels: array expected"); + message.active_channels = []; + for (var i = 0; i < object.active_channels.length; ++i) { + if (typeof object.active_channels[i] !== "object") + throw TypeError(".ibc.applications.interchain_accounts.genesis.v1.HostGenesisState.active_channels: object expected"); + message.active_channels[i] = $root.ibc.applications.interchain_accounts.genesis.v1.ActiveChannel.fromObject(object.active_channels[i]); + } + } + if (object.interchain_accounts) { + if (!Array.isArray(object.interchain_accounts)) + throw TypeError(".ibc.applications.interchain_accounts.genesis.v1.HostGenesisState.interchain_accounts: array expected"); + message.interchain_accounts = []; + for (var i = 0; i < object.interchain_accounts.length; ++i) { + if (typeof object.interchain_accounts[i] !== "object") + throw TypeError(".ibc.applications.interchain_accounts.genesis.v1.HostGenesisState.interchain_accounts: object expected"); + message.interchain_accounts[i] = $root.ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount.fromObject(object.interchain_accounts[i]); + } + } + if (object.port != null) + message.port = String(object.port); + if (object.params != null) { + if (typeof object.params !== "object") + throw TypeError(".ibc.applications.interchain_accounts.genesis.v1.HostGenesisState.params: object expected"); + message.params = $root.ibc.applications.interchain_accounts.host.v1.Params.fromObject(object.params); + } + return message; + }; + + /** + * Creates a plain object from a HostGenesisState message. Also converts values to other types if specified. + * @function toObject + * @memberof ibc.applications.interchain_accounts.genesis.v1.HostGenesisState + * @static + * @param {ibc.applications.interchain_accounts.genesis.v1.HostGenesisState} message HostGenesisState + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + HostGenesisState.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.active_channels = []; + object.interchain_accounts = []; + } + if (options.defaults) { + object.port = ""; + object.params = null; + } + if (message.active_channels && message.active_channels.length) { + object.active_channels = []; + for (var j = 0; j < message.active_channels.length; ++j) + object.active_channels[j] = $root.ibc.applications.interchain_accounts.genesis.v1.ActiveChannel.toObject(message.active_channels[j], options); + } + if (message.interchain_accounts && message.interchain_accounts.length) { + object.interchain_accounts = []; + for (var j = 0; j < message.interchain_accounts.length; ++j) + object.interchain_accounts[j] = $root.ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount.toObject(message.interchain_accounts[j], options); + } + if (message.port != null && message.hasOwnProperty("port")) + object.port = message.port; + if (message.params != null && message.hasOwnProperty("params")) + object.params = $root.ibc.applications.interchain_accounts.host.v1.Params.toObject(message.params, options); return object; - var message = new $root.ibc.applications.transfer.v1.QueryDenomTraceRequest(); - if (object.hash != null) - message.hash = String(object.hash); - return message; - }; + }; - /** - * Creates a plain object from a QueryDenomTraceRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof ibc.applications.transfer.v1.QueryDenomTraceRequest - * @static - * @param {ibc.applications.transfer.v1.QueryDenomTraceRequest} message QueryDenomTraceRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - QueryDenomTraceRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.hash = ""; - if (message.hash != null && message.hasOwnProperty("hash")) - object.hash = message.hash; - return object; - }; + /** + * Converts this HostGenesisState to JSON. + * @function toJSON + * @memberof ibc.applications.interchain_accounts.genesis.v1.HostGenesisState + * @instance + * @returns {Object.} JSON object + */ + HostGenesisState.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Converts this QueryDenomTraceRequest to JSON. - * @function toJSON - * @memberof ibc.applications.transfer.v1.QueryDenomTraceRequest - * @instance - * @returns {Object.} JSON object - */ - QueryDenomTraceRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + return HostGenesisState; + })(); - return QueryDenomTraceRequest; - })(); + v1.ActiveChannel = (function() { - v1.QueryDenomTraceResponse = (function() { + /** + * Properties of an ActiveChannel. + * @memberof ibc.applications.interchain_accounts.genesis.v1 + * @interface IActiveChannel + * @property {string|null} [connection_id] ActiveChannel connection_id + * @property {string|null} [port_id] ActiveChannel port_id + * @property {string|null} [channel_id] ActiveChannel channel_id + * @property {boolean|null} [is_middleware_enabled] ActiveChannel is_middleware_enabled + */ - /** - * Properties of a QueryDenomTraceResponse. - * @memberof ibc.applications.transfer.v1 - * @interface IQueryDenomTraceResponse - * @property {ibc.applications.transfer.v1.IDenomTrace|null} [denom_trace] QueryDenomTraceResponse denom_trace - */ + /** + * Constructs a new ActiveChannel. + * @memberof ibc.applications.interchain_accounts.genesis.v1 + * @classdesc Represents an ActiveChannel. + * @implements IActiveChannel + * @constructor + * @param {ibc.applications.interchain_accounts.genesis.v1.IActiveChannel=} [properties] Properties to set + */ + function ActiveChannel(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Constructs a new QueryDenomTraceResponse. - * @memberof ibc.applications.transfer.v1 - * @classdesc Represents a QueryDenomTraceResponse. - * @implements IQueryDenomTraceResponse - * @constructor - * @param {ibc.applications.transfer.v1.IQueryDenomTraceResponse=} [properties] Properties to set - */ - function QueryDenomTraceResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * ActiveChannel connection_id. + * @member {string} connection_id + * @memberof ibc.applications.interchain_accounts.genesis.v1.ActiveChannel + * @instance + */ + ActiveChannel.prototype.connection_id = ""; - /** - * QueryDenomTraceResponse denom_trace. - * @member {ibc.applications.transfer.v1.IDenomTrace|null|undefined} denom_trace - * @memberof ibc.applications.transfer.v1.QueryDenomTraceResponse - * @instance - */ - QueryDenomTraceResponse.prototype.denom_trace = null; + /** + * ActiveChannel port_id. + * @member {string} port_id + * @memberof ibc.applications.interchain_accounts.genesis.v1.ActiveChannel + * @instance + */ + ActiveChannel.prototype.port_id = ""; - /** - * Encodes the specified QueryDenomTraceResponse message. Does not implicitly {@link ibc.applications.transfer.v1.QueryDenomTraceResponse.verify|verify} messages. - * @function encode - * @memberof ibc.applications.transfer.v1.QueryDenomTraceResponse - * @static - * @param {ibc.applications.transfer.v1.IQueryDenomTraceResponse} message QueryDenomTraceResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - QueryDenomTraceResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.denom_trace != null && Object.hasOwnProperty.call(message, "denom_trace")) - $root.ibc.applications.transfer.v1.DenomTrace.encode(message.denom_trace, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; + /** + * ActiveChannel channel_id. + * @member {string} channel_id + * @memberof ibc.applications.interchain_accounts.genesis.v1.ActiveChannel + * @instance + */ + ActiveChannel.prototype.channel_id = ""; - /** - * Encodes the specified QueryDenomTraceResponse message, length delimited. Does not implicitly {@link ibc.applications.transfer.v1.QueryDenomTraceResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof ibc.applications.transfer.v1.QueryDenomTraceResponse - * @static - * @param {ibc.applications.transfer.v1.IQueryDenomTraceResponse} message QueryDenomTraceResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - QueryDenomTraceResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * ActiveChannel is_middleware_enabled. + * @member {boolean} is_middleware_enabled + * @memberof ibc.applications.interchain_accounts.genesis.v1.ActiveChannel + * @instance + */ + ActiveChannel.prototype.is_middleware_enabled = false; - /** - * Decodes a QueryDenomTraceResponse message from the specified reader or buffer. - * @function decode - * @memberof ibc.applications.transfer.v1.QueryDenomTraceResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.transfer.v1.QueryDenomTraceResponse} QueryDenomTraceResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - QueryDenomTraceResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.transfer.v1.QueryDenomTraceResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.denom_trace = $root.ibc.applications.transfer.v1.DenomTrace.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; + /** + * Encodes the specified ActiveChannel message. Does not implicitly {@link ibc.applications.interchain_accounts.genesis.v1.ActiveChannel.verify|verify} messages. + * @function encode + * @memberof ibc.applications.interchain_accounts.genesis.v1.ActiveChannel + * @static + * @param {ibc.applications.interchain_accounts.genesis.v1.IActiveChannel} message ActiveChannel message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ActiveChannel.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.connection_id != null && Object.hasOwnProperty.call(message, "connection_id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.connection_id); + if (message.port_id != null && Object.hasOwnProperty.call(message, "port_id")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.port_id); + if (message.channel_id != null && Object.hasOwnProperty.call(message, "channel_id")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.channel_id); + if (message.is_middleware_enabled != null && Object.hasOwnProperty.call(message, "is_middleware_enabled")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.is_middleware_enabled); + return writer; + }; + + /** + * Encodes the specified ActiveChannel message, length delimited. Does not implicitly {@link ibc.applications.interchain_accounts.genesis.v1.ActiveChannel.verify|verify} messages. + * @function encodeDelimited + * @memberof ibc.applications.interchain_accounts.genesis.v1.ActiveChannel + * @static + * @param {ibc.applications.interchain_accounts.genesis.v1.IActiveChannel} message ActiveChannel message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ActiveChannel.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an ActiveChannel message from the specified reader or buffer. + * @function decode + * @memberof ibc.applications.interchain_accounts.genesis.v1.ActiveChannel + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {ibc.applications.interchain_accounts.genesis.v1.ActiveChannel} ActiveChannel + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ActiveChannel.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.interchain_accounts.genesis.v1.ActiveChannel(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.connection_id = reader.string(); + break; + case 2: + message.port_id = reader.string(); + break; + case 3: + message.channel_id = reader.string(); + break; + case 4: + message.is_middleware_enabled = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } } - } - return message; - }; + return message; + }; - /** - * Decodes a QueryDenomTraceResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ibc.applications.transfer.v1.QueryDenomTraceResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.transfer.v1.QueryDenomTraceResponse} QueryDenomTraceResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - QueryDenomTraceResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes an ActiveChannel message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof ibc.applications.interchain_accounts.genesis.v1.ActiveChannel + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {ibc.applications.interchain_accounts.genesis.v1.ActiveChannel} ActiveChannel + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ActiveChannel.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies a QueryDenomTraceResponse message. - * @function verify - * @memberof ibc.applications.transfer.v1.QueryDenomTraceResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - QueryDenomTraceResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.denom_trace != null && message.hasOwnProperty("denom_trace")) { - var error = $root.ibc.applications.transfer.v1.DenomTrace.verify(message.denom_trace); - if (error) - return "denom_trace." + error; - } - return null; - }; + /** + * Verifies an ActiveChannel message. + * @function verify + * @memberof ibc.applications.interchain_accounts.genesis.v1.ActiveChannel + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ActiveChannel.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.connection_id != null && message.hasOwnProperty("connection_id")) + if (!$util.isString(message.connection_id)) + return "connection_id: string expected"; + if (message.port_id != null && message.hasOwnProperty("port_id")) + if (!$util.isString(message.port_id)) + return "port_id: string expected"; + if (message.channel_id != null && message.hasOwnProperty("channel_id")) + if (!$util.isString(message.channel_id)) + return "channel_id: string expected"; + if (message.is_middleware_enabled != null && message.hasOwnProperty("is_middleware_enabled")) + if (typeof message.is_middleware_enabled !== "boolean") + return "is_middleware_enabled: boolean expected"; + return null; + }; - /** - * Creates a QueryDenomTraceResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof ibc.applications.transfer.v1.QueryDenomTraceResponse - * @static - * @param {Object.} object Plain object - * @returns {ibc.applications.transfer.v1.QueryDenomTraceResponse} QueryDenomTraceResponse - */ - QueryDenomTraceResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.transfer.v1.QueryDenomTraceResponse) + /** + * Creates an ActiveChannel message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof ibc.applications.interchain_accounts.genesis.v1.ActiveChannel + * @static + * @param {Object.} object Plain object + * @returns {ibc.applications.interchain_accounts.genesis.v1.ActiveChannel} ActiveChannel + */ + ActiveChannel.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.interchain_accounts.genesis.v1.ActiveChannel) + return object; + var message = new $root.ibc.applications.interchain_accounts.genesis.v1.ActiveChannel(); + if (object.connection_id != null) + message.connection_id = String(object.connection_id); + if (object.port_id != null) + message.port_id = String(object.port_id); + if (object.channel_id != null) + message.channel_id = String(object.channel_id); + if (object.is_middleware_enabled != null) + message.is_middleware_enabled = Boolean(object.is_middleware_enabled); + return message; + }; + + /** + * Creates a plain object from an ActiveChannel message. Also converts values to other types if specified. + * @function toObject + * @memberof ibc.applications.interchain_accounts.genesis.v1.ActiveChannel + * @static + * @param {ibc.applications.interchain_accounts.genesis.v1.ActiveChannel} message ActiveChannel + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ActiveChannel.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.connection_id = ""; + object.port_id = ""; + object.channel_id = ""; + object.is_middleware_enabled = false; + } + if (message.connection_id != null && message.hasOwnProperty("connection_id")) + object.connection_id = message.connection_id; + if (message.port_id != null && message.hasOwnProperty("port_id")) + object.port_id = message.port_id; + if (message.channel_id != null && message.hasOwnProperty("channel_id")) + object.channel_id = message.channel_id; + if (message.is_middleware_enabled != null && message.hasOwnProperty("is_middleware_enabled")) + object.is_middleware_enabled = message.is_middleware_enabled; return object; - var message = new $root.ibc.applications.transfer.v1.QueryDenomTraceResponse(); - if (object.denom_trace != null) { - if (typeof object.denom_trace !== "object") - throw TypeError(".ibc.applications.transfer.v1.QueryDenomTraceResponse.denom_trace: object expected"); - message.denom_trace = $root.ibc.applications.transfer.v1.DenomTrace.fromObject(object.denom_trace); - } - return message; - }; + }; - /** - * Creates a plain object from a QueryDenomTraceResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof ibc.applications.transfer.v1.QueryDenomTraceResponse - * @static - * @param {ibc.applications.transfer.v1.QueryDenomTraceResponse} message QueryDenomTraceResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - QueryDenomTraceResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.denom_trace = null; - if (message.denom_trace != null && message.hasOwnProperty("denom_trace")) - object.denom_trace = $root.ibc.applications.transfer.v1.DenomTrace.toObject(message.denom_trace, options); - return object; - }; + /** + * Converts this ActiveChannel to JSON. + * @function toJSON + * @memberof ibc.applications.interchain_accounts.genesis.v1.ActiveChannel + * @instance + * @returns {Object.} JSON object + */ + ActiveChannel.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Converts this QueryDenomTraceResponse to JSON. - * @function toJSON - * @memberof ibc.applications.transfer.v1.QueryDenomTraceResponse - * @instance - * @returns {Object.} JSON object - */ - QueryDenomTraceResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + return ActiveChannel; + })(); - return QueryDenomTraceResponse; - })(); + v1.RegisteredInterchainAccount = (function() { - v1.QueryDenomTracesRequest = (function() { + /** + * Properties of a RegisteredInterchainAccount. + * @memberof ibc.applications.interchain_accounts.genesis.v1 + * @interface IRegisteredInterchainAccount + * @property {string|null} [connection_id] RegisteredInterchainAccount connection_id + * @property {string|null} [port_id] RegisteredInterchainAccount port_id + * @property {string|null} [account_address] RegisteredInterchainAccount account_address + */ - /** - * Properties of a QueryDenomTracesRequest. - * @memberof ibc.applications.transfer.v1 - * @interface IQueryDenomTracesRequest - * @property {cosmos.base.query.v1beta1.IPageRequest|null} [pagination] QueryDenomTracesRequest pagination - */ + /** + * Constructs a new RegisteredInterchainAccount. + * @memberof ibc.applications.interchain_accounts.genesis.v1 + * @classdesc Represents a RegisteredInterchainAccount. + * @implements IRegisteredInterchainAccount + * @constructor + * @param {ibc.applications.interchain_accounts.genesis.v1.IRegisteredInterchainAccount=} [properties] Properties to set + */ + function RegisteredInterchainAccount(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Constructs a new QueryDenomTracesRequest. - * @memberof ibc.applications.transfer.v1 - * @classdesc Represents a QueryDenomTracesRequest. - * @implements IQueryDenomTracesRequest - * @constructor - * @param {ibc.applications.transfer.v1.IQueryDenomTracesRequest=} [properties] Properties to set - */ - function QueryDenomTracesRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * RegisteredInterchainAccount connection_id. + * @member {string} connection_id + * @memberof ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount + * @instance + */ + RegisteredInterchainAccount.prototype.connection_id = ""; - /** - * QueryDenomTracesRequest pagination. - * @member {cosmos.base.query.v1beta1.IPageRequest|null|undefined} pagination - * @memberof ibc.applications.transfer.v1.QueryDenomTracesRequest - * @instance - */ - QueryDenomTracesRequest.prototype.pagination = null; + /** + * RegisteredInterchainAccount port_id. + * @member {string} port_id + * @memberof ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount + * @instance + */ + RegisteredInterchainAccount.prototype.port_id = ""; - /** - * Encodes the specified QueryDenomTracesRequest message. Does not implicitly {@link ibc.applications.transfer.v1.QueryDenomTracesRequest.verify|verify} messages. - * @function encode - * @memberof ibc.applications.transfer.v1.QueryDenomTracesRequest - * @static - * @param {ibc.applications.transfer.v1.IQueryDenomTracesRequest} message QueryDenomTracesRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - QueryDenomTracesRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.pagination != null && Object.hasOwnProperty.call(message, "pagination")) - $root.cosmos.base.query.v1beta1.PageRequest.encode(message.pagination, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; + /** + * RegisteredInterchainAccount account_address. + * @member {string} account_address + * @memberof ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount + * @instance + */ + RegisteredInterchainAccount.prototype.account_address = ""; - /** - * Encodes the specified QueryDenomTracesRequest message, length delimited. Does not implicitly {@link ibc.applications.transfer.v1.QueryDenomTracesRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof ibc.applications.transfer.v1.QueryDenomTracesRequest - * @static - * @param {ibc.applications.transfer.v1.IQueryDenomTracesRequest} message QueryDenomTracesRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - QueryDenomTracesRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified RegisteredInterchainAccount message. Does not implicitly {@link ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount.verify|verify} messages. + * @function encode + * @memberof ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount + * @static + * @param {ibc.applications.interchain_accounts.genesis.v1.IRegisteredInterchainAccount} message RegisteredInterchainAccount message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RegisteredInterchainAccount.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.connection_id != null && Object.hasOwnProperty.call(message, "connection_id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.connection_id); + if (message.port_id != null && Object.hasOwnProperty.call(message, "port_id")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.port_id); + if (message.account_address != null && Object.hasOwnProperty.call(message, "account_address")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.account_address); + return writer; + }; - /** - * Decodes a QueryDenomTracesRequest message from the specified reader or buffer. - * @function decode - * @memberof ibc.applications.transfer.v1.QueryDenomTracesRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.transfer.v1.QueryDenomTracesRequest} QueryDenomTracesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - QueryDenomTracesRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.transfer.v1.QueryDenomTracesRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.pagination = $root.cosmos.base.query.v1beta1.PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; + /** + * Encodes the specified RegisteredInterchainAccount message, length delimited. Does not implicitly {@link ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount.verify|verify} messages. + * @function encodeDelimited + * @memberof ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount + * @static + * @param {ibc.applications.interchain_accounts.genesis.v1.IRegisteredInterchainAccount} message RegisteredInterchainAccount message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RegisteredInterchainAccount.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a RegisteredInterchainAccount message from the specified reader or buffer. + * @function decode + * @memberof ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount} RegisteredInterchainAccount + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RegisteredInterchainAccount.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.connection_id = reader.string(); + break; + case 2: + message.port_id = reader.string(); + break; + case 3: + message.account_address = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } } - } - return message; - }; + return message; + }; - /** - * Decodes a QueryDenomTracesRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ibc.applications.transfer.v1.QueryDenomTracesRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.transfer.v1.QueryDenomTracesRequest} QueryDenomTracesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - QueryDenomTracesRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a RegisteredInterchainAccount message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount} RegisteredInterchainAccount + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RegisteredInterchainAccount.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies a QueryDenomTracesRequest message. - * @function verify - * @memberof ibc.applications.transfer.v1.QueryDenomTracesRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - QueryDenomTracesRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.pagination != null && message.hasOwnProperty("pagination")) { - var error = $root.cosmos.base.query.v1beta1.PageRequest.verify(message.pagination); - if (error) - return "pagination." + error; - } - return null; - }; + /** + * Verifies a RegisteredInterchainAccount message. + * @function verify + * @memberof ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + RegisteredInterchainAccount.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.connection_id != null && message.hasOwnProperty("connection_id")) + if (!$util.isString(message.connection_id)) + return "connection_id: string expected"; + if (message.port_id != null && message.hasOwnProperty("port_id")) + if (!$util.isString(message.port_id)) + return "port_id: string expected"; + if (message.account_address != null && message.hasOwnProperty("account_address")) + if (!$util.isString(message.account_address)) + return "account_address: string expected"; + return null; + }; - /** - * Creates a QueryDenomTracesRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof ibc.applications.transfer.v1.QueryDenomTracesRequest - * @static - * @param {Object.} object Plain object - * @returns {ibc.applications.transfer.v1.QueryDenomTracesRequest} QueryDenomTracesRequest - */ - QueryDenomTracesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.transfer.v1.QueryDenomTracesRequest) + /** + * Creates a RegisteredInterchainAccount message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount + * @static + * @param {Object.} object Plain object + * @returns {ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount} RegisteredInterchainAccount + */ + RegisteredInterchainAccount.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount) + return object; + var message = new $root.ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount(); + if (object.connection_id != null) + message.connection_id = String(object.connection_id); + if (object.port_id != null) + message.port_id = String(object.port_id); + if (object.account_address != null) + message.account_address = String(object.account_address); + return message; + }; + + /** + * Creates a plain object from a RegisteredInterchainAccount message. Also converts values to other types if specified. + * @function toObject + * @memberof ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount + * @static + * @param {ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount} message RegisteredInterchainAccount + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + RegisteredInterchainAccount.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.connection_id = ""; + object.port_id = ""; + object.account_address = ""; + } + if (message.connection_id != null && message.hasOwnProperty("connection_id")) + object.connection_id = message.connection_id; + if (message.port_id != null && message.hasOwnProperty("port_id")) + object.port_id = message.port_id; + if (message.account_address != null && message.hasOwnProperty("account_address")) + object.account_address = message.account_address; return object; - var message = new $root.ibc.applications.transfer.v1.QueryDenomTracesRequest(); - if (object.pagination != null) { - if (typeof object.pagination !== "object") - throw TypeError(".ibc.applications.transfer.v1.QueryDenomTracesRequest.pagination: object expected"); - message.pagination = $root.cosmos.base.query.v1beta1.PageRequest.fromObject(object.pagination); - } - return message; - }; + }; - /** - * Creates a plain object from a QueryDenomTracesRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof ibc.applications.transfer.v1.QueryDenomTracesRequest - * @static - * @param {ibc.applications.transfer.v1.QueryDenomTracesRequest} message QueryDenomTracesRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - QueryDenomTracesRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.pagination = null; - if (message.pagination != null && message.hasOwnProperty("pagination")) - object.pagination = $root.cosmos.base.query.v1beta1.PageRequest.toObject(message.pagination, options); - return object; - }; + /** + * Converts this RegisteredInterchainAccount to JSON. + * @function toJSON + * @memberof ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount + * @instance + * @returns {Object.} JSON object + */ + RegisteredInterchainAccount.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Converts this QueryDenomTracesRequest to JSON. - * @function toJSON - * @memberof ibc.applications.transfer.v1.QueryDenomTracesRequest - * @instance - * @returns {Object.} JSON object - */ - QueryDenomTracesRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + return RegisteredInterchainAccount; + })(); - return QueryDenomTracesRequest; + return v1; })(); - v1.QueryDenomTracesResponse = (function() { + return genesis; + })(); - /** - * Properties of a QueryDenomTracesResponse. - * @memberof ibc.applications.transfer.v1 - * @interface IQueryDenomTracesResponse - * @property {Array.|null} [denom_traces] QueryDenomTracesResponse denom_traces - * @property {cosmos.base.query.v1beta1.IPageResponse|null} [pagination] QueryDenomTracesResponse pagination - */ + interchain_accounts.host = (function() { - /** - * Constructs a new QueryDenomTracesResponse. - * @memberof ibc.applications.transfer.v1 - * @classdesc Represents a QueryDenomTracesResponse. - * @implements IQueryDenomTracesResponse - * @constructor - * @param {ibc.applications.transfer.v1.IQueryDenomTracesResponse=} [properties] Properties to set - */ - function QueryDenomTracesResponse(properties) { - this.denom_traces = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Namespace host. + * @memberof ibc.applications.interchain_accounts + * @namespace + */ + var host = {}; + + host.v1 = (function() { /** - * QueryDenomTracesResponse denom_traces. - * @member {Array.} denom_traces - * @memberof ibc.applications.transfer.v1.QueryDenomTracesResponse - * @instance + * Namespace v1. + * @memberof ibc.applications.interchain_accounts.host + * @namespace */ - QueryDenomTracesResponse.prototype.denom_traces = $util.emptyArray; + var v1 = {}; + + v1.Params = (function() { + + /** + * Properties of a Params. + * @memberof ibc.applications.interchain_accounts.host.v1 + * @interface IParams + * @property {boolean|null} [host_enabled] Params host_enabled + * @property {Array.|null} [allow_messages] Params allow_messages + */ + + /** + * Constructs a new Params. + * @memberof ibc.applications.interchain_accounts.host.v1 + * @classdesc Represents a Params. + * @implements IParams + * @constructor + * @param {ibc.applications.interchain_accounts.host.v1.IParams=} [properties] Properties to set + */ + function Params(properties) { + this.allow_messages = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Params host_enabled. + * @member {boolean} host_enabled + * @memberof ibc.applications.interchain_accounts.host.v1.Params + * @instance + */ + Params.prototype.host_enabled = false; + + /** + * Params allow_messages. + * @member {Array.} allow_messages + * @memberof ibc.applications.interchain_accounts.host.v1.Params + * @instance + */ + Params.prototype.allow_messages = $util.emptyArray; + + /** + * Encodes the specified Params message. Does not implicitly {@link ibc.applications.interchain_accounts.host.v1.Params.verify|verify} messages. + * @function encode + * @memberof ibc.applications.interchain_accounts.host.v1.Params + * @static + * @param {ibc.applications.interchain_accounts.host.v1.IParams} message Params message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Params.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.host_enabled != null && Object.hasOwnProperty.call(message, "host_enabled")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.host_enabled); + if (message.allow_messages != null && message.allow_messages.length) + for (var i = 0; i < message.allow_messages.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.allow_messages[i]); + return writer; + }; - /** - * QueryDenomTracesResponse pagination. - * @member {cosmos.base.query.v1beta1.IPageResponse|null|undefined} pagination - * @memberof ibc.applications.transfer.v1.QueryDenomTracesResponse - * @instance - */ - QueryDenomTracesResponse.prototype.pagination = null; + /** + * Encodes the specified Params message, length delimited. Does not implicitly {@link ibc.applications.interchain_accounts.host.v1.Params.verify|verify} messages. + * @function encodeDelimited + * @memberof ibc.applications.interchain_accounts.host.v1.Params + * @static + * @param {ibc.applications.interchain_accounts.host.v1.IParams} message Params message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Params.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Encodes the specified QueryDenomTracesResponse message. Does not implicitly {@link ibc.applications.transfer.v1.QueryDenomTracesResponse.verify|verify} messages. - * @function encode - * @memberof ibc.applications.transfer.v1.QueryDenomTracesResponse - * @static - * @param {ibc.applications.transfer.v1.IQueryDenomTracesResponse} message QueryDenomTracesResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - QueryDenomTracesResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.denom_traces != null && message.denom_traces.length) - for (var i = 0; i < message.denom_traces.length; ++i) - $root.ibc.applications.transfer.v1.DenomTrace.encode(message.denom_traces[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.pagination != null && Object.hasOwnProperty.call(message, "pagination")) - $root.cosmos.base.query.v1beta1.PageResponse.encode(message.pagination, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; + /** + * Decodes a Params message from the specified reader or buffer. + * @function decode + * @memberof ibc.applications.interchain_accounts.host.v1.Params + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {ibc.applications.interchain_accounts.host.v1.Params} Params + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Params.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.interchain_accounts.host.v1.Params(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.host_enabled = reader.bool(); + break; + case 2: + if (!(message.allow_messages && message.allow_messages.length)) + message.allow_messages = []; + message.allow_messages.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Encodes the specified QueryDenomTracesResponse message, length delimited. Does not implicitly {@link ibc.applications.transfer.v1.QueryDenomTracesResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof ibc.applications.transfer.v1.QueryDenomTracesResponse - * @static - * @param {ibc.applications.transfer.v1.IQueryDenomTracesResponse} message QueryDenomTracesResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - QueryDenomTracesResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Decodes a Params message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof ibc.applications.interchain_accounts.host.v1.Params + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {ibc.applications.interchain_accounts.host.v1.Params} Params + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Params.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Decodes a QueryDenomTracesResponse message from the specified reader or buffer. - * @function decode - * @memberof ibc.applications.transfer.v1.QueryDenomTracesResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.transfer.v1.QueryDenomTracesResponse} QueryDenomTracesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - QueryDenomTracesResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.transfer.v1.QueryDenomTracesResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.denom_traces && message.denom_traces.length)) - message.denom_traces = []; - message.denom_traces.push($root.ibc.applications.transfer.v1.DenomTrace.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = $root.cosmos.base.query.v1beta1.PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; + /** + * Verifies a Params message. + * @function verify + * @memberof ibc.applications.interchain_accounts.host.v1.Params + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Params.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.host_enabled != null && message.hasOwnProperty("host_enabled")) + if (typeof message.host_enabled !== "boolean") + return "host_enabled: boolean expected"; + if (message.allow_messages != null && message.hasOwnProperty("allow_messages")) { + if (!Array.isArray(message.allow_messages)) + return "allow_messages: array expected"; + for (var i = 0; i < message.allow_messages.length; ++i) + if (!$util.isString(message.allow_messages[i])) + return "allow_messages: string[] expected"; } - } - return message; - }; - - /** - * Decodes a QueryDenomTracesResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ibc.applications.transfer.v1.QueryDenomTracesResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.transfer.v1.QueryDenomTracesResponse} QueryDenomTracesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - QueryDenomTracesResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + return null; + }; - /** - * Verifies a QueryDenomTracesResponse message. - * @function verify - * @memberof ibc.applications.transfer.v1.QueryDenomTracesResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - QueryDenomTracesResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.denom_traces != null && message.hasOwnProperty("denom_traces")) { - if (!Array.isArray(message.denom_traces)) - return "denom_traces: array expected"; - for (var i = 0; i < message.denom_traces.length; ++i) { - var error = $root.ibc.applications.transfer.v1.DenomTrace.verify(message.denom_traces[i]); - if (error) - return "denom_traces." + error; + /** + * Creates a Params message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof ibc.applications.interchain_accounts.host.v1.Params + * @static + * @param {Object.} object Plain object + * @returns {ibc.applications.interchain_accounts.host.v1.Params} Params + */ + Params.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.interchain_accounts.host.v1.Params) + return object; + var message = new $root.ibc.applications.interchain_accounts.host.v1.Params(); + if (object.host_enabled != null) + message.host_enabled = Boolean(object.host_enabled); + if (object.allow_messages) { + if (!Array.isArray(object.allow_messages)) + throw TypeError(".ibc.applications.interchain_accounts.host.v1.Params.allow_messages: array expected"); + message.allow_messages = []; + for (var i = 0; i < object.allow_messages.length; ++i) + message.allow_messages[i] = String(object.allow_messages[i]); } - } - if (message.pagination != null && message.hasOwnProperty("pagination")) { - var error = $root.cosmos.base.query.v1beta1.PageResponse.verify(message.pagination); - if (error) - return "pagination." + error; - } - return null; - }; + return message; + }; - /** - * Creates a QueryDenomTracesResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof ibc.applications.transfer.v1.QueryDenomTracesResponse - * @static - * @param {Object.} object Plain object - * @returns {ibc.applications.transfer.v1.QueryDenomTracesResponse} QueryDenomTracesResponse - */ - QueryDenomTracesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.transfer.v1.QueryDenomTracesResponse) - return object; - var message = new $root.ibc.applications.transfer.v1.QueryDenomTracesResponse(); - if (object.denom_traces) { - if (!Array.isArray(object.denom_traces)) - throw TypeError(".ibc.applications.transfer.v1.QueryDenomTracesResponse.denom_traces: array expected"); - message.denom_traces = []; - for (var i = 0; i < object.denom_traces.length; ++i) { - if (typeof object.denom_traces[i] !== "object") - throw TypeError(".ibc.applications.transfer.v1.QueryDenomTracesResponse.denom_traces: object expected"); - message.denom_traces[i] = $root.ibc.applications.transfer.v1.DenomTrace.fromObject(object.denom_traces[i]); + /** + * Creates a plain object from a Params message. Also converts values to other types if specified. + * @function toObject + * @memberof ibc.applications.interchain_accounts.host.v1.Params + * @static + * @param {ibc.applications.interchain_accounts.host.v1.Params} message Params + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Params.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.allow_messages = []; + if (options.defaults) + object.host_enabled = false; + if (message.host_enabled != null && message.hasOwnProperty("host_enabled")) + object.host_enabled = message.host_enabled; + if (message.allow_messages && message.allow_messages.length) { + object.allow_messages = []; + for (var j = 0; j < message.allow_messages.length; ++j) + object.allow_messages[j] = message.allow_messages[j]; } - } - if (object.pagination != null) { - if (typeof object.pagination !== "object") - throw TypeError(".ibc.applications.transfer.v1.QueryDenomTracesResponse.pagination: object expected"); - message.pagination = $root.cosmos.base.query.v1beta1.PageResponse.fromObject(object.pagination); - } - return message; - }; + return object; + }; - /** - * Creates a plain object from a QueryDenomTracesResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof ibc.applications.transfer.v1.QueryDenomTracesResponse - * @static - * @param {ibc.applications.transfer.v1.QueryDenomTracesResponse} message QueryDenomTracesResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - QueryDenomTracesResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.denom_traces = []; - if (options.defaults) - object.pagination = null; - if (message.denom_traces && message.denom_traces.length) { - object.denom_traces = []; - for (var j = 0; j < message.denom_traces.length; ++j) - object.denom_traces[j] = $root.ibc.applications.transfer.v1.DenomTrace.toObject(message.denom_traces[j], options); + /** + * Converts this Params to JSON. + * @function toJSON + * @memberof ibc.applications.interchain_accounts.host.v1.Params + * @instance + * @returns {Object.} JSON object + */ + Params.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return Params; + })(); + + v1.Query = (function() { + + /** + * Constructs a new Query service. + * @memberof ibc.applications.interchain_accounts.host.v1 + * @classdesc Represents a Query + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + */ + function Query(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); } - if (message.pagination != null && message.hasOwnProperty("pagination")) - object.pagination = $root.cosmos.base.query.v1beta1.PageResponse.toObject(message.pagination, options); - return object; - }; - /** - * Converts this QueryDenomTracesResponse to JSON. - * @function toJSON - * @memberof ibc.applications.transfer.v1.QueryDenomTracesResponse - * @instance - * @returns {Object.} JSON object - */ - QueryDenomTracesResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + (Query.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Query; - return QueryDenomTracesResponse; - })(); + /** + * Callback as used by {@link ibc.applications.interchain_accounts.host.v1.Query#params}. + * @memberof ibc.applications.interchain_accounts.host.v1.Query + * @typedef ParamsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.applications.interchain_accounts.host.v1.QueryParamsResponse} [response] QueryParamsResponse + */ - v1.QueryParamsRequest = (function() { + /** + * Calls Params. + * @function params + * @memberof ibc.applications.interchain_accounts.host.v1.Query + * @instance + * @param {ibc.applications.interchain_accounts.host.v1.IQueryParamsRequest} request QueryParamsRequest message or plain object + * @param {ibc.applications.interchain_accounts.host.v1.Query.ParamsCallback} callback Node-style callback called with the error, if any, and QueryParamsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Query.prototype.params = function params(request, callback) { + return this.rpcCall(params, $root.ibc.applications.interchain_accounts.host.v1.QueryParamsRequest, $root.ibc.applications.interchain_accounts.host.v1.QueryParamsResponse, request, callback); + }, "name", { value: "Params" }); - /** - * Properties of a QueryParamsRequest. - * @memberof ibc.applications.transfer.v1 - * @interface IQueryParamsRequest - */ + /** + * Calls Params. + * @function params + * @memberof ibc.applications.interchain_accounts.host.v1.Query + * @instance + * @param {ibc.applications.interchain_accounts.host.v1.IQueryParamsRequest} request QueryParamsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ - /** - * Constructs a new QueryParamsRequest. - * @memberof ibc.applications.transfer.v1 - * @classdesc Represents a QueryParamsRequest. - * @implements IQueryParamsRequest - * @constructor - * @param {ibc.applications.transfer.v1.IQueryParamsRequest=} [properties] Properties to set - */ - function QueryParamsRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + return Query; + })(); - /** - * Encodes the specified QueryParamsRequest message. Does not implicitly {@link ibc.applications.transfer.v1.QueryParamsRequest.verify|verify} messages. - * @function encode - * @memberof ibc.applications.transfer.v1.QueryParamsRequest - * @static - * @param {ibc.applications.transfer.v1.IQueryParamsRequest} message QueryParamsRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - QueryParamsRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; + v1.QueryParamsRequest = (function() { - /** - * Encodes the specified QueryParamsRequest message, length delimited. Does not implicitly {@link ibc.applications.transfer.v1.QueryParamsRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof ibc.applications.transfer.v1.QueryParamsRequest - * @static - * @param {ibc.applications.transfer.v1.IQueryParamsRequest} message QueryParamsRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - QueryParamsRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Properties of a QueryParamsRequest. + * @memberof ibc.applications.interchain_accounts.host.v1 + * @interface IQueryParamsRequest + */ - /** - * Decodes a QueryParamsRequest message from the specified reader or buffer. - * @function decode - * @memberof ibc.applications.transfer.v1.QueryParamsRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.transfer.v1.QueryParamsRequest} QueryParamsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - QueryParamsRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.transfer.v1.QueryParamsRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } + /** + * Constructs a new QueryParamsRequest. + * @memberof ibc.applications.interchain_accounts.host.v1 + * @classdesc Represents a QueryParamsRequest. + * @implements IQueryParamsRequest + * @constructor + * @param {ibc.applications.interchain_accounts.host.v1.IQueryParamsRequest=} [properties] Properties to set + */ + function QueryParamsRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; } - return message; - }; - /** - * Decodes a QueryParamsRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ibc.applications.transfer.v1.QueryParamsRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.transfer.v1.QueryParamsRequest} QueryParamsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - QueryParamsRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Encodes the specified QueryParamsRequest message. Does not implicitly {@link ibc.applications.interchain_accounts.host.v1.QueryParamsRequest.verify|verify} messages. + * @function encode + * @memberof ibc.applications.interchain_accounts.host.v1.QueryParamsRequest + * @static + * @param {ibc.applications.interchain_accounts.host.v1.IQueryParamsRequest} message QueryParamsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + QueryParamsRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Encodes the specified QueryParamsRequest message, length delimited. Does not implicitly {@link ibc.applications.interchain_accounts.host.v1.QueryParamsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof ibc.applications.interchain_accounts.host.v1.QueryParamsRequest + * @static + * @param {ibc.applications.interchain_accounts.host.v1.IQueryParamsRequest} message QueryParamsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + QueryParamsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a QueryParamsRequest message from the specified reader or buffer. + * @function decode + * @memberof ibc.applications.interchain_accounts.host.v1.QueryParamsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {ibc.applications.interchain_accounts.host.v1.QueryParamsRequest} QueryParamsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + QueryParamsRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.interchain_accounts.host.v1.QueryParamsRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Verifies a QueryParamsRequest message. - * @function verify - * @memberof ibc.applications.transfer.v1.QueryParamsRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - QueryParamsRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; + /** + * Decodes a QueryParamsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof ibc.applications.interchain_accounts.host.v1.QueryParamsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {ibc.applications.interchain_accounts.host.v1.QueryParamsRequest} QueryParamsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + QueryParamsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a QueryParamsRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof ibc.applications.transfer.v1.QueryParamsRequest - * @static - * @param {Object.} object Plain object - * @returns {ibc.applications.transfer.v1.QueryParamsRequest} QueryParamsRequest - */ - QueryParamsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.transfer.v1.QueryParamsRequest) - return object; - return new $root.ibc.applications.transfer.v1.QueryParamsRequest(); - }; + /** + * Verifies a QueryParamsRequest message. + * @function verify + * @memberof ibc.applications.interchain_accounts.host.v1.QueryParamsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + QueryParamsRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; - /** - * Creates a plain object from a QueryParamsRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof ibc.applications.transfer.v1.QueryParamsRequest - * @static - * @param {ibc.applications.transfer.v1.QueryParamsRequest} message QueryParamsRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - QueryParamsRequest.toObject = function toObject() { - return {}; - }; + /** + * Creates a QueryParamsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof ibc.applications.interchain_accounts.host.v1.QueryParamsRequest + * @static + * @param {Object.} object Plain object + * @returns {ibc.applications.interchain_accounts.host.v1.QueryParamsRequest} QueryParamsRequest + */ + QueryParamsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.interchain_accounts.host.v1.QueryParamsRequest) + return object; + return new $root.ibc.applications.interchain_accounts.host.v1.QueryParamsRequest(); + }; - /** - * Converts this QueryParamsRequest to JSON. - * @function toJSON - * @memberof ibc.applications.transfer.v1.QueryParamsRequest - * @instance - * @returns {Object.} JSON object - */ - QueryParamsRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from a QueryParamsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof ibc.applications.interchain_accounts.host.v1.QueryParamsRequest + * @static + * @param {ibc.applications.interchain_accounts.host.v1.QueryParamsRequest} message QueryParamsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + QueryParamsRequest.toObject = function toObject() { + return {}; + }; - return QueryParamsRequest; - })(); + /** + * Converts this QueryParamsRequest to JSON. + * @function toJSON + * @memberof ibc.applications.interchain_accounts.host.v1.QueryParamsRequest + * @instance + * @returns {Object.} JSON object + */ + QueryParamsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - v1.QueryParamsResponse = (function() { + return QueryParamsRequest; + })(); - /** - * Properties of a QueryParamsResponse. - * @memberof ibc.applications.transfer.v1 - * @interface IQueryParamsResponse - * @property {ibc.applications.transfer.v1.IParams|null} [params] QueryParamsResponse params - */ + v1.QueryParamsResponse = (function() { - /** - * Constructs a new QueryParamsResponse. - * @memberof ibc.applications.transfer.v1 - * @classdesc Represents a QueryParamsResponse. - * @implements IQueryParamsResponse - * @constructor - * @param {ibc.applications.transfer.v1.IQueryParamsResponse=} [properties] Properties to set - */ - function QueryParamsResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Properties of a QueryParamsResponse. + * @memberof ibc.applications.interchain_accounts.host.v1 + * @interface IQueryParamsResponse + * @property {ibc.applications.interchain_accounts.host.v1.IParams|null} [params] QueryParamsResponse params + */ - /** - * QueryParamsResponse params. - * @member {ibc.applications.transfer.v1.IParams|null|undefined} params - * @memberof ibc.applications.transfer.v1.QueryParamsResponse - * @instance - */ - QueryParamsResponse.prototype.params = null; + /** + * Constructs a new QueryParamsResponse. + * @memberof ibc.applications.interchain_accounts.host.v1 + * @classdesc Represents a QueryParamsResponse. + * @implements IQueryParamsResponse + * @constructor + * @param {ibc.applications.interchain_accounts.host.v1.IQueryParamsResponse=} [properties] Properties to set + */ + function QueryParamsResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Encodes the specified QueryParamsResponse message. Does not implicitly {@link ibc.applications.transfer.v1.QueryParamsResponse.verify|verify} messages. - * @function encode - * @memberof ibc.applications.transfer.v1.QueryParamsResponse - * @static - * @param {ibc.applications.transfer.v1.IQueryParamsResponse} message QueryParamsResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - QueryParamsResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.params != null && Object.hasOwnProperty.call(message, "params")) - $root.ibc.applications.transfer.v1.Params.encode(message.params, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; + /** + * QueryParamsResponse params. + * @member {ibc.applications.interchain_accounts.host.v1.IParams|null|undefined} params + * @memberof ibc.applications.interchain_accounts.host.v1.QueryParamsResponse + * @instance + */ + QueryParamsResponse.prototype.params = null; - /** - * Encodes the specified QueryParamsResponse message, length delimited. Does not implicitly {@link ibc.applications.transfer.v1.QueryParamsResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof ibc.applications.transfer.v1.QueryParamsResponse - * @static - * @param {ibc.applications.transfer.v1.IQueryParamsResponse} message QueryParamsResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - QueryParamsResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified QueryParamsResponse message. Does not implicitly {@link ibc.applications.interchain_accounts.host.v1.QueryParamsResponse.verify|verify} messages. + * @function encode + * @memberof ibc.applications.interchain_accounts.host.v1.QueryParamsResponse + * @static + * @param {ibc.applications.interchain_accounts.host.v1.IQueryParamsResponse} message QueryParamsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + QueryParamsResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.params != null && Object.hasOwnProperty.call(message, "params")) + $root.ibc.applications.interchain_accounts.host.v1.Params.encode(message.params, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; - /** - * Decodes a QueryParamsResponse message from the specified reader or buffer. - * @function decode - * @memberof ibc.applications.transfer.v1.QueryParamsResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.transfer.v1.QueryParamsResponse} QueryParamsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - QueryParamsResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.transfer.v1.QueryParamsResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.params = $root.ibc.applications.transfer.v1.Params.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; + /** + * Encodes the specified QueryParamsResponse message, length delimited. Does not implicitly {@link ibc.applications.interchain_accounts.host.v1.QueryParamsResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof ibc.applications.interchain_accounts.host.v1.QueryParamsResponse + * @static + * @param {ibc.applications.interchain_accounts.host.v1.IQueryParamsResponse} message QueryParamsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + QueryParamsResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a QueryParamsResponse message from the specified reader or buffer. + * @function decode + * @memberof ibc.applications.interchain_accounts.host.v1.QueryParamsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {ibc.applications.interchain_accounts.host.v1.QueryParamsResponse} QueryParamsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + QueryParamsResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.interchain_accounts.host.v1.QueryParamsResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.params = $root.ibc.applications.interchain_accounts.host.v1.Params.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } } - } - return message; - }; + return message; + }; - /** - * Decodes a QueryParamsResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ibc.applications.transfer.v1.QueryParamsResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.transfer.v1.QueryParamsResponse} QueryParamsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - QueryParamsResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a QueryParamsResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof ibc.applications.interchain_accounts.host.v1.QueryParamsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {ibc.applications.interchain_accounts.host.v1.QueryParamsResponse} QueryParamsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + QueryParamsResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies a QueryParamsResponse message. - * @function verify - * @memberof ibc.applications.transfer.v1.QueryParamsResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - QueryParamsResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.params != null && message.hasOwnProperty("params")) { - var error = $root.ibc.applications.transfer.v1.Params.verify(message.params); - if (error) - return "params." + error; - } - return null; - }; + /** + * Verifies a QueryParamsResponse message. + * @function verify + * @memberof ibc.applications.interchain_accounts.host.v1.QueryParamsResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + QueryParamsResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.params != null && message.hasOwnProperty("params")) { + var error = $root.ibc.applications.interchain_accounts.host.v1.Params.verify(message.params); + if (error) + return "params." + error; + } + return null; + }; - /** - * Creates a QueryParamsResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof ibc.applications.transfer.v1.QueryParamsResponse - * @static - * @param {Object.} object Plain object - * @returns {ibc.applications.transfer.v1.QueryParamsResponse} QueryParamsResponse - */ - QueryParamsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.transfer.v1.QueryParamsResponse) + /** + * Creates a QueryParamsResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof ibc.applications.interchain_accounts.host.v1.QueryParamsResponse + * @static + * @param {Object.} object Plain object + * @returns {ibc.applications.interchain_accounts.host.v1.QueryParamsResponse} QueryParamsResponse + */ + QueryParamsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.interchain_accounts.host.v1.QueryParamsResponse) + return object; + var message = new $root.ibc.applications.interchain_accounts.host.v1.QueryParamsResponse(); + if (object.params != null) { + if (typeof object.params !== "object") + throw TypeError(".ibc.applications.interchain_accounts.host.v1.QueryParamsResponse.params: object expected"); + message.params = $root.ibc.applications.interchain_accounts.host.v1.Params.fromObject(object.params); + } + return message; + }; + + /** + * Creates a plain object from a QueryParamsResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof ibc.applications.interchain_accounts.host.v1.QueryParamsResponse + * @static + * @param {ibc.applications.interchain_accounts.host.v1.QueryParamsResponse} message QueryParamsResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + QueryParamsResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.params = null; + if (message.params != null && message.hasOwnProperty("params")) + object.params = $root.ibc.applications.interchain_accounts.host.v1.Params.toObject(message.params, options); return object; - var message = new $root.ibc.applications.transfer.v1.QueryParamsResponse(); - if (object.params != null) { - if (typeof object.params !== "object") - throw TypeError(".ibc.applications.transfer.v1.QueryParamsResponse.params: object expected"); - message.params = $root.ibc.applications.transfer.v1.Params.fromObject(object.params); - } - return message; - }; + }; - /** - * Creates a plain object from a QueryParamsResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof ibc.applications.transfer.v1.QueryParamsResponse - * @static - * @param {ibc.applications.transfer.v1.QueryParamsResponse} message QueryParamsResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - QueryParamsResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.params = null; - if (message.params != null && message.hasOwnProperty("params")) - object.params = $root.ibc.applications.transfer.v1.Params.toObject(message.params, options); - return object; - }; + /** + * Converts this QueryParamsResponse to JSON. + * @function toJSON + * @memberof ibc.applications.interchain_accounts.host.v1.QueryParamsResponse + * @instance + * @returns {Object.} JSON object + */ + QueryParamsResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Converts this QueryParamsResponse to JSON. - * @function toJSON - * @memberof ibc.applications.transfer.v1.QueryParamsResponse - * @instance - * @returns {Object.} JSON object - */ - QueryParamsResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + return QueryParamsResponse; + })(); - return QueryParamsResponse; + return v1; })(); - v1.QueryDenomHashRequest = (function() { - - /** - * Properties of a QueryDenomHashRequest. - * @memberof ibc.applications.transfer.v1 - * @interface IQueryDenomHashRequest - * @property {string|null} [trace] QueryDenomHashRequest trace - */ + return host; + })(); - /** - * Constructs a new QueryDenomHashRequest. - * @memberof ibc.applications.transfer.v1 - * @classdesc Represents a QueryDenomHashRequest. - * @implements IQueryDenomHashRequest - * @constructor - * @param {ibc.applications.transfer.v1.IQueryDenomHashRequest=} [properties] Properties to set - */ - function QueryDenomHashRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + return interchain_accounts; + })(); - /** - * QueryDenomHashRequest trace. - * @member {string} trace - * @memberof ibc.applications.transfer.v1.QueryDenomHashRequest - * @instance - */ - QueryDenomHashRequest.prototype.trace = ""; + applications.transfer = (function() { - /** - * Encodes the specified QueryDenomHashRequest message. Does not implicitly {@link ibc.applications.transfer.v1.QueryDenomHashRequest.verify|verify} messages. - * @function encode - * @memberof ibc.applications.transfer.v1.QueryDenomHashRequest - * @static - * @param {ibc.applications.transfer.v1.IQueryDenomHashRequest} message QueryDenomHashRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - QueryDenomHashRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.trace != null && Object.hasOwnProperty.call(message, "trace")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.trace); - return writer; - }; + /** + * Namespace transfer. + * @memberof ibc.applications + * @namespace + */ + var transfer = {}; - /** - * Encodes the specified QueryDenomHashRequest message, length delimited. Does not implicitly {@link ibc.applications.transfer.v1.QueryDenomHashRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof ibc.applications.transfer.v1.QueryDenomHashRequest - * @static - * @param {ibc.applications.transfer.v1.IQueryDenomHashRequest} message QueryDenomHashRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - QueryDenomHashRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + transfer.v1 = (function() { - /** - * Decodes a QueryDenomHashRequest message from the specified reader or buffer. - * @function decode - * @memberof ibc.applications.transfer.v1.QueryDenomHashRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.transfer.v1.QueryDenomHashRequest} QueryDenomHashRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - QueryDenomHashRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.transfer.v1.QueryDenomHashRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.trace = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Namespace v1. + * @memberof ibc.applications.transfer + * @namespace + */ + var v1 = {}; - /** - * Decodes a QueryDenomHashRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ibc.applications.transfer.v1.QueryDenomHashRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.transfer.v1.QueryDenomHashRequest} QueryDenomHashRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - QueryDenomHashRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + v1.Msg = (function() { /** - * Verifies a QueryDenomHashRequest message. - * @function verify - * @memberof ibc.applications.transfer.v1.QueryDenomHashRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Constructs a new Msg service. + * @memberof ibc.applications.transfer.v1 + * @classdesc Represents a Msg + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited */ - QueryDenomHashRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.trace != null && message.hasOwnProperty("trace")) - if (!$util.isString(message.trace)) - return "trace: string expected"; - return null; - }; + function Msg(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (Msg.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Msg; /** - * Creates a QueryDenomHashRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof ibc.applications.transfer.v1.QueryDenomHashRequest - * @static - * @param {Object.} object Plain object - * @returns {ibc.applications.transfer.v1.QueryDenomHashRequest} QueryDenomHashRequest + * Callback as used by {@link ibc.applications.transfer.v1.Msg#transfer}. + * @memberof ibc.applications.transfer.v1.Msg + * @typedef TransferCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.applications.transfer.v1.MsgTransferResponse} [response] MsgTransferResponse */ - QueryDenomHashRequest.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.transfer.v1.QueryDenomHashRequest) - return object; - var message = new $root.ibc.applications.transfer.v1.QueryDenomHashRequest(); - if (object.trace != null) - message.trace = String(object.trace); - return message; - }; /** - * Creates a plain object from a QueryDenomHashRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof ibc.applications.transfer.v1.QueryDenomHashRequest - * @static - * @param {ibc.applications.transfer.v1.QueryDenomHashRequest} message QueryDenomHashRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Calls Transfer. + * @function transfer + * @memberof ibc.applications.transfer.v1.Msg + * @instance + * @param {ibc.applications.transfer.v1.IMsgTransfer} request MsgTransfer message or plain object + * @param {ibc.applications.transfer.v1.Msg.TransferCallback} callback Node-style callback called with the error, if any, and MsgTransferResponse + * @returns {undefined} + * @variation 1 */ - QueryDenomHashRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.trace = ""; - if (message.trace != null && message.hasOwnProperty("trace")) - object.trace = message.trace; - return object; - }; + Object.defineProperty(Msg.prototype.transfer = function transfer(request, callback) { + return this.rpcCall(transfer, $root.ibc.applications.transfer.v1.MsgTransfer, $root.ibc.applications.transfer.v1.MsgTransferResponse, request, callback); + }, "name", { value: "Transfer" }); /** - * Converts this QueryDenomHashRequest to JSON. - * @function toJSON - * @memberof ibc.applications.transfer.v1.QueryDenomHashRequest + * Calls Transfer. + * @function transfer + * @memberof ibc.applications.transfer.v1.Msg * @instance - * @returns {Object.} JSON object + * @param {ibc.applications.transfer.v1.IMsgTransfer} request MsgTransfer message or plain object + * @returns {Promise} Promise + * @variation 2 */ - QueryDenomHashRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - return QueryDenomHashRequest; + return Msg; })(); - v1.QueryDenomHashResponse = (function() { + v1.MsgTransfer = (function() { /** - * Properties of a QueryDenomHashResponse. + * Properties of a MsgTransfer. * @memberof ibc.applications.transfer.v1 - * @interface IQueryDenomHashResponse - * @property {string|null} [hash] QueryDenomHashResponse hash + * @interface IMsgTransfer + * @property {string|null} [source_port] MsgTransfer source_port + * @property {string|null} [source_channel] MsgTransfer source_channel + * @property {cosmos.base.v1beta1.ICoin|null} [token] MsgTransfer token + * @property {string|null} [sender] MsgTransfer sender + * @property {string|null} [receiver] MsgTransfer receiver + * @property {ibc.core.client.v1.IHeight|null} [timeout_height] MsgTransfer timeout_height + * @property {Long|null} [timeout_timestamp] MsgTransfer timeout_timestamp + * @property {string|null} [memo] MsgTransfer memo */ /** - * Constructs a new QueryDenomHashResponse. + * Constructs a new MsgTransfer. * @memberof ibc.applications.transfer.v1 - * @classdesc Represents a QueryDenomHashResponse. - * @implements IQueryDenomHashResponse + * @classdesc Represents a MsgTransfer. + * @implements IMsgTransfer * @constructor - * @param {ibc.applications.transfer.v1.IQueryDenomHashResponse=} [properties] Properties to set + * @param {ibc.applications.transfer.v1.IMsgTransfer=} [properties] Properties to set */ - function QueryDenomHashResponse(properties) { + function MsgTransfer(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -33110,252 +40282,154 @@ } /** - * QueryDenomHashResponse hash. - * @member {string} hash - * @memberof ibc.applications.transfer.v1.QueryDenomHashResponse + * MsgTransfer source_port. + * @member {string} source_port + * @memberof ibc.applications.transfer.v1.MsgTransfer * @instance */ - QueryDenomHashResponse.prototype.hash = ""; - - /** - * Encodes the specified QueryDenomHashResponse message. Does not implicitly {@link ibc.applications.transfer.v1.QueryDenomHashResponse.verify|verify} messages. - * @function encode - * @memberof ibc.applications.transfer.v1.QueryDenomHashResponse - * @static - * @param {ibc.applications.transfer.v1.IQueryDenomHashResponse} message QueryDenomHashResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - QueryDenomHashResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.hash != null && Object.hasOwnProperty.call(message, "hash")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.hash); - return writer; - }; - - /** - * Encodes the specified QueryDenomHashResponse message, length delimited. Does not implicitly {@link ibc.applications.transfer.v1.QueryDenomHashResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof ibc.applications.transfer.v1.QueryDenomHashResponse - * @static - * @param {ibc.applications.transfer.v1.IQueryDenomHashResponse} message QueryDenomHashResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - QueryDenomHashResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a QueryDenomHashResponse message from the specified reader or buffer. - * @function decode - * @memberof ibc.applications.transfer.v1.QueryDenomHashResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.transfer.v1.QueryDenomHashResponse} QueryDenomHashResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - QueryDenomHashResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.transfer.v1.QueryDenomHashResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.hash = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a QueryDenomHashResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ibc.applications.transfer.v1.QueryDenomHashResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.transfer.v1.QueryDenomHashResponse} QueryDenomHashResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - QueryDenomHashResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a QueryDenomHashResponse message. - * @function verify - * @memberof ibc.applications.transfer.v1.QueryDenomHashResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - QueryDenomHashResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.hash != null && message.hasOwnProperty("hash")) - if (!$util.isString(message.hash)) - return "hash: string expected"; - return null; - }; + MsgTransfer.prototype.source_port = ""; /** - * Creates a QueryDenomHashResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof ibc.applications.transfer.v1.QueryDenomHashResponse - * @static - * @param {Object.} object Plain object - * @returns {ibc.applications.transfer.v1.QueryDenomHashResponse} QueryDenomHashResponse + * MsgTransfer source_channel. + * @member {string} source_channel + * @memberof ibc.applications.transfer.v1.MsgTransfer + * @instance */ - QueryDenomHashResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.transfer.v1.QueryDenomHashResponse) - return object; - var message = new $root.ibc.applications.transfer.v1.QueryDenomHashResponse(); - if (object.hash != null) - message.hash = String(object.hash); - return message; - }; + MsgTransfer.prototype.source_channel = ""; /** - * Creates a plain object from a QueryDenomHashResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof ibc.applications.transfer.v1.QueryDenomHashResponse - * @static - * @param {ibc.applications.transfer.v1.QueryDenomHashResponse} message QueryDenomHashResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * MsgTransfer token. + * @member {cosmos.base.v1beta1.ICoin|null|undefined} token + * @memberof ibc.applications.transfer.v1.MsgTransfer + * @instance */ - QueryDenomHashResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.hash = ""; - if (message.hash != null && message.hasOwnProperty("hash")) - object.hash = message.hash; - return object; - }; + MsgTransfer.prototype.token = null; /** - * Converts this QueryDenomHashResponse to JSON. - * @function toJSON - * @memberof ibc.applications.transfer.v1.QueryDenomHashResponse + * MsgTransfer sender. + * @member {string} sender + * @memberof ibc.applications.transfer.v1.MsgTransfer * @instance - * @returns {Object.} JSON object */ - QueryDenomHashResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return QueryDenomHashResponse; - })(); - - v1.QueryEscrowAddressRequest = (function() { + MsgTransfer.prototype.sender = ""; /** - * Properties of a QueryEscrowAddressRequest. - * @memberof ibc.applications.transfer.v1 - * @interface IQueryEscrowAddressRequest - * @property {string|null} [port_id] QueryEscrowAddressRequest port_id - * @property {string|null} [channel_id] QueryEscrowAddressRequest channel_id + * MsgTransfer receiver. + * @member {string} receiver + * @memberof ibc.applications.transfer.v1.MsgTransfer + * @instance */ + MsgTransfer.prototype.receiver = ""; /** - * Constructs a new QueryEscrowAddressRequest. - * @memberof ibc.applications.transfer.v1 - * @classdesc Represents a QueryEscrowAddressRequest. - * @implements IQueryEscrowAddressRequest - * @constructor - * @param {ibc.applications.transfer.v1.IQueryEscrowAddressRequest=} [properties] Properties to set + * MsgTransfer timeout_height. + * @member {ibc.core.client.v1.IHeight|null|undefined} timeout_height + * @memberof ibc.applications.transfer.v1.MsgTransfer + * @instance */ - function QueryEscrowAddressRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + MsgTransfer.prototype.timeout_height = null; /** - * QueryEscrowAddressRequest port_id. - * @member {string} port_id - * @memberof ibc.applications.transfer.v1.QueryEscrowAddressRequest + * MsgTransfer timeout_timestamp. + * @member {Long} timeout_timestamp + * @memberof ibc.applications.transfer.v1.MsgTransfer * @instance */ - QueryEscrowAddressRequest.prototype.port_id = ""; + MsgTransfer.prototype.timeout_timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** - * QueryEscrowAddressRequest channel_id. - * @member {string} channel_id - * @memberof ibc.applications.transfer.v1.QueryEscrowAddressRequest + * MsgTransfer memo. + * @member {string} memo + * @memberof ibc.applications.transfer.v1.MsgTransfer * @instance */ - QueryEscrowAddressRequest.prototype.channel_id = ""; + MsgTransfer.prototype.memo = ""; /** - * Encodes the specified QueryEscrowAddressRequest message. Does not implicitly {@link ibc.applications.transfer.v1.QueryEscrowAddressRequest.verify|verify} messages. + * Encodes the specified MsgTransfer message. Does not implicitly {@link ibc.applications.transfer.v1.MsgTransfer.verify|verify} messages. * @function encode - * @memberof ibc.applications.transfer.v1.QueryEscrowAddressRequest + * @memberof ibc.applications.transfer.v1.MsgTransfer * @static - * @param {ibc.applications.transfer.v1.IQueryEscrowAddressRequest} message QueryEscrowAddressRequest message or plain object to encode + * @param {ibc.applications.transfer.v1.IMsgTransfer} message MsgTransfer message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryEscrowAddressRequest.encode = function encode(message, writer) { + MsgTransfer.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.port_id != null && Object.hasOwnProperty.call(message, "port_id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.port_id); - if (message.channel_id != null && Object.hasOwnProperty.call(message, "channel_id")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.channel_id); + if (message.source_port != null && Object.hasOwnProperty.call(message, "source_port")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.source_port); + if (message.source_channel != null && Object.hasOwnProperty.call(message, "source_channel")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.source_channel); + if (message.token != null && Object.hasOwnProperty.call(message, "token")) + $root.cosmos.base.v1beta1.Coin.encode(message.token, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.sender != null && Object.hasOwnProperty.call(message, "sender")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.sender); + if (message.receiver != null && Object.hasOwnProperty.call(message, "receiver")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.receiver); + if (message.timeout_height != null && Object.hasOwnProperty.call(message, "timeout_height")) + $root.ibc.core.client.v1.Height.encode(message.timeout_height, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.timeout_timestamp != null && Object.hasOwnProperty.call(message, "timeout_timestamp")) + writer.uint32(/* id 7, wireType 0 =*/56).uint64(message.timeout_timestamp); + if (message.memo != null && Object.hasOwnProperty.call(message, "memo")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.memo); return writer; }; /** - * Encodes the specified QueryEscrowAddressRequest message, length delimited. Does not implicitly {@link ibc.applications.transfer.v1.QueryEscrowAddressRequest.verify|verify} messages. + * Encodes the specified MsgTransfer message, length delimited. Does not implicitly {@link ibc.applications.transfer.v1.MsgTransfer.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.applications.transfer.v1.QueryEscrowAddressRequest + * @memberof ibc.applications.transfer.v1.MsgTransfer * @static - * @param {ibc.applications.transfer.v1.IQueryEscrowAddressRequest} message QueryEscrowAddressRequest message or plain object to encode + * @param {ibc.applications.transfer.v1.IMsgTransfer} message MsgTransfer message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryEscrowAddressRequest.encodeDelimited = function encodeDelimited(message, writer) { + MsgTransfer.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryEscrowAddressRequest message from the specified reader or buffer. + * Decodes a MsgTransfer message from the specified reader or buffer. * @function decode - * @memberof ibc.applications.transfer.v1.QueryEscrowAddressRequest + * @memberof ibc.applications.transfer.v1.MsgTransfer * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.transfer.v1.QueryEscrowAddressRequest} QueryEscrowAddressRequest + * @returns {ibc.applications.transfer.v1.MsgTransfer} MsgTransfer * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryEscrowAddressRequest.decode = function decode(reader, length) { + MsgTransfer.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.transfer.v1.QueryEscrowAddressRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.transfer.v1.MsgTransfer(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.port_id = reader.string(); + message.source_port = reader.string(); break; case 2: - message.channel_id = reader.string(); + message.source_channel = reader.string(); + break; + case 3: + message.token = $root.cosmos.base.v1beta1.Coin.decode(reader, reader.uint32()); + break; + case 4: + message.sender = reader.string(); + break; + case 5: + message.receiver = reader.string(); + break; + case 6: + message.timeout_height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); + break; + case 7: + message.timeout_timestamp = reader.uint64(); + break; + case 8: + message.memo = reader.string(); break; default: reader.skipType(tag & 7); @@ -33366,116 +40440,188 @@ }; /** - * Decodes a QueryEscrowAddressRequest message from the specified reader or buffer, length delimited. + * Decodes a MsgTransfer message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.applications.transfer.v1.QueryEscrowAddressRequest + * @memberof ibc.applications.transfer.v1.MsgTransfer * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.transfer.v1.QueryEscrowAddressRequest} QueryEscrowAddressRequest + * @returns {ibc.applications.transfer.v1.MsgTransfer} MsgTransfer * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryEscrowAddressRequest.decodeDelimited = function decodeDelimited(reader) { + MsgTransfer.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryEscrowAddressRequest message. + * Verifies a MsgTransfer message. * @function verify - * @memberof ibc.applications.transfer.v1.QueryEscrowAddressRequest + * @memberof ibc.applications.transfer.v1.MsgTransfer * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryEscrowAddressRequest.verify = function verify(message) { + MsgTransfer.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.port_id != null && message.hasOwnProperty("port_id")) - if (!$util.isString(message.port_id)) - return "port_id: string expected"; - if (message.channel_id != null && message.hasOwnProperty("channel_id")) - if (!$util.isString(message.channel_id)) - return "channel_id: string expected"; + if (message.source_port != null && message.hasOwnProperty("source_port")) + if (!$util.isString(message.source_port)) + return "source_port: string expected"; + if (message.source_channel != null && message.hasOwnProperty("source_channel")) + if (!$util.isString(message.source_channel)) + return "source_channel: string expected"; + if (message.token != null && message.hasOwnProperty("token")) { + var error = $root.cosmos.base.v1beta1.Coin.verify(message.token); + if (error) + return "token." + error; + } + if (message.sender != null && message.hasOwnProperty("sender")) + if (!$util.isString(message.sender)) + return "sender: string expected"; + if (message.receiver != null && message.hasOwnProperty("receiver")) + if (!$util.isString(message.receiver)) + return "receiver: string expected"; + if (message.timeout_height != null && message.hasOwnProperty("timeout_height")) { + var error = $root.ibc.core.client.v1.Height.verify(message.timeout_height); + if (error) + return "timeout_height." + error; + } + if (message.timeout_timestamp != null && message.hasOwnProperty("timeout_timestamp")) + if (!$util.isInteger(message.timeout_timestamp) && !(message.timeout_timestamp && $util.isInteger(message.timeout_timestamp.low) && $util.isInteger(message.timeout_timestamp.high))) + return "timeout_timestamp: integer|Long expected"; + if (message.memo != null && message.hasOwnProperty("memo")) + if (!$util.isString(message.memo)) + return "memo: string expected"; return null; }; /** - * Creates a QueryEscrowAddressRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MsgTransfer message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.applications.transfer.v1.QueryEscrowAddressRequest + * @memberof ibc.applications.transfer.v1.MsgTransfer * @static * @param {Object.} object Plain object - * @returns {ibc.applications.transfer.v1.QueryEscrowAddressRequest} QueryEscrowAddressRequest - */ - QueryEscrowAddressRequest.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.transfer.v1.QueryEscrowAddressRequest) - return object; - var message = new $root.ibc.applications.transfer.v1.QueryEscrowAddressRequest(); - if (object.port_id != null) - message.port_id = String(object.port_id); - if (object.channel_id != null) - message.channel_id = String(object.channel_id); + * @returns {ibc.applications.transfer.v1.MsgTransfer} MsgTransfer + */ + MsgTransfer.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.transfer.v1.MsgTransfer) + return object; + var message = new $root.ibc.applications.transfer.v1.MsgTransfer(); + if (object.source_port != null) + message.source_port = String(object.source_port); + if (object.source_channel != null) + message.source_channel = String(object.source_channel); + if (object.token != null) { + if (typeof object.token !== "object") + throw TypeError(".ibc.applications.transfer.v1.MsgTransfer.token: object expected"); + message.token = $root.cosmos.base.v1beta1.Coin.fromObject(object.token); + } + if (object.sender != null) + message.sender = String(object.sender); + if (object.receiver != null) + message.receiver = String(object.receiver); + if (object.timeout_height != null) { + if (typeof object.timeout_height !== "object") + throw TypeError(".ibc.applications.transfer.v1.MsgTransfer.timeout_height: object expected"); + message.timeout_height = $root.ibc.core.client.v1.Height.fromObject(object.timeout_height); + } + if (object.timeout_timestamp != null) + if ($util.Long) + (message.timeout_timestamp = $util.Long.fromValue(object.timeout_timestamp)).unsigned = true; + else if (typeof object.timeout_timestamp === "string") + message.timeout_timestamp = parseInt(object.timeout_timestamp, 10); + else if (typeof object.timeout_timestamp === "number") + message.timeout_timestamp = object.timeout_timestamp; + else if (typeof object.timeout_timestamp === "object") + message.timeout_timestamp = new $util.LongBits(object.timeout_timestamp.low >>> 0, object.timeout_timestamp.high >>> 0).toNumber(true); + if (object.memo != null) + message.memo = String(object.memo); return message; }; /** - * Creates a plain object from a QueryEscrowAddressRequest message. Also converts values to other types if specified. + * Creates a plain object from a MsgTransfer message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.applications.transfer.v1.QueryEscrowAddressRequest + * @memberof ibc.applications.transfer.v1.MsgTransfer * @static - * @param {ibc.applications.transfer.v1.QueryEscrowAddressRequest} message QueryEscrowAddressRequest + * @param {ibc.applications.transfer.v1.MsgTransfer} message MsgTransfer * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryEscrowAddressRequest.toObject = function toObject(message, options) { + MsgTransfer.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.port_id = ""; - object.channel_id = ""; + object.source_port = ""; + object.source_channel = ""; + object.token = null; + object.sender = ""; + object.receiver = ""; + object.timeout_height = null; + if ($util.Long) { + var long = new $util.Long(0, 0, true); + object.timeout_timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.timeout_timestamp = options.longs === String ? "0" : 0; + object.memo = ""; } - if (message.port_id != null && message.hasOwnProperty("port_id")) - object.port_id = message.port_id; - if (message.channel_id != null && message.hasOwnProperty("channel_id")) - object.channel_id = message.channel_id; + if (message.source_port != null && message.hasOwnProperty("source_port")) + object.source_port = message.source_port; + if (message.source_channel != null && message.hasOwnProperty("source_channel")) + object.source_channel = message.source_channel; + if (message.token != null && message.hasOwnProperty("token")) + object.token = $root.cosmos.base.v1beta1.Coin.toObject(message.token, options); + if (message.sender != null && message.hasOwnProperty("sender")) + object.sender = message.sender; + if (message.receiver != null && message.hasOwnProperty("receiver")) + object.receiver = message.receiver; + if (message.timeout_height != null && message.hasOwnProperty("timeout_height")) + object.timeout_height = $root.ibc.core.client.v1.Height.toObject(message.timeout_height, options); + if (message.timeout_timestamp != null && message.hasOwnProperty("timeout_timestamp")) + if (typeof message.timeout_timestamp === "number") + object.timeout_timestamp = options.longs === String ? String(message.timeout_timestamp) : message.timeout_timestamp; + else + object.timeout_timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timeout_timestamp) : options.longs === Number ? new $util.LongBits(message.timeout_timestamp.low >>> 0, message.timeout_timestamp.high >>> 0).toNumber(true) : message.timeout_timestamp; + if (message.memo != null && message.hasOwnProperty("memo")) + object.memo = message.memo; return object; }; /** - * Converts this QueryEscrowAddressRequest to JSON. + * Converts this MsgTransfer to JSON. * @function toJSON - * @memberof ibc.applications.transfer.v1.QueryEscrowAddressRequest + * @memberof ibc.applications.transfer.v1.MsgTransfer * @instance * @returns {Object.} JSON object */ - QueryEscrowAddressRequest.prototype.toJSON = function toJSON() { + MsgTransfer.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryEscrowAddressRequest; + return MsgTransfer; })(); - v1.QueryEscrowAddressResponse = (function() { + v1.MsgTransferResponse = (function() { /** - * Properties of a QueryEscrowAddressResponse. + * Properties of a MsgTransferResponse. * @memberof ibc.applications.transfer.v1 - * @interface IQueryEscrowAddressResponse - * @property {string|null} [escrow_address] QueryEscrowAddressResponse escrow_address + * @interface IMsgTransferResponse + * @property {Long|null} [sequence] MsgTransferResponse sequence */ /** - * Constructs a new QueryEscrowAddressResponse. + * Constructs a new MsgTransferResponse. * @memberof ibc.applications.transfer.v1 - * @classdesc Represents a QueryEscrowAddressResponse. - * @implements IQueryEscrowAddressResponse + * @classdesc Represents a MsgTransferResponse. + * @implements IMsgTransferResponse * @constructor - * @param {ibc.applications.transfer.v1.IQueryEscrowAddressResponse=} [properties] Properties to set + * @param {ibc.applications.transfer.v1.IMsgTransferResponse=} [properties] Properties to set */ - function QueryEscrowAddressResponse(properties) { + function MsgTransferResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -33483,63 +40629,63 @@ } /** - * QueryEscrowAddressResponse escrow_address. - * @member {string} escrow_address - * @memberof ibc.applications.transfer.v1.QueryEscrowAddressResponse + * MsgTransferResponse sequence. + * @member {Long} sequence + * @memberof ibc.applications.transfer.v1.MsgTransferResponse * @instance */ - QueryEscrowAddressResponse.prototype.escrow_address = ""; + MsgTransferResponse.prototype.sequence = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** - * Encodes the specified QueryEscrowAddressResponse message. Does not implicitly {@link ibc.applications.transfer.v1.QueryEscrowAddressResponse.verify|verify} messages. + * Encodes the specified MsgTransferResponse message. Does not implicitly {@link ibc.applications.transfer.v1.MsgTransferResponse.verify|verify} messages. * @function encode - * @memberof ibc.applications.transfer.v1.QueryEscrowAddressResponse + * @memberof ibc.applications.transfer.v1.MsgTransferResponse * @static - * @param {ibc.applications.transfer.v1.IQueryEscrowAddressResponse} message QueryEscrowAddressResponse message or plain object to encode + * @param {ibc.applications.transfer.v1.IMsgTransferResponse} message MsgTransferResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryEscrowAddressResponse.encode = function encode(message, writer) { + MsgTransferResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.escrow_address != null && Object.hasOwnProperty.call(message, "escrow_address")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.escrow_address); + if (message.sequence != null && Object.hasOwnProperty.call(message, "sequence")) + writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.sequence); return writer; }; /** - * Encodes the specified QueryEscrowAddressResponse message, length delimited. Does not implicitly {@link ibc.applications.transfer.v1.QueryEscrowAddressResponse.verify|verify} messages. + * Encodes the specified MsgTransferResponse message, length delimited. Does not implicitly {@link ibc.applications.transfer.v1.MsgTransferResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.applications.transfer.v1.QueryEscrowAddressResponse + * @memberof ibc.applications.transfer.v1.MsgTransferResponse * @static - * @param {ibc.applications.transfer.v1.IQueryEscrowAddressResponse} message QueryEscrowAddressResponse message or plain object to encode + * @param {ibc.applications.transfer.v1.IMsgTransferResponse} message MsgTransferResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryEscrowAddressResponse.encodeDelimited = function encodeDelimited(message, writer) { + MsgTransferResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryEscrowAddressResponse message from the specified reader or buffer. + * Decodes a MsgTransferResponse message from the specified reader or buffer. * @function decode - * @memberof ibc.applications.transfer.v1.QueryEscrowAddressResponse + * @memberof ibc.applications.transfer.v1.MsgTransferResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.transfer.v1.QueryEscrowAddressResponse} QueryEscrowAddressResponse + * @returns {ibc.applications.transfer.v1.MsgTransferResponse} MsgTransferResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryEscrowAddressResponse.decode = function decode(reader, length) { + MsgTransferResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.transfer.v1.QueryEscrowAddressResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.transfer.v1.MsgTransferResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.escrow_address = reader.string(); + message.sequence = reader.uint64(); break; default: reader.skipType(tag & 7); @@ -33550,110 +40696,122 @@ }; /** - * Decodes a QueryEscrowAddressResponse message from the specified reader or buffer, length delimited. + * Decodes a MsgTransferResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.applications.transfer.v1.QueryEscrowAddressResponse + * @memberof ibc.applications.transfer.v1.MsgTransferResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.transfer.v1.QueryEscrowAddressResponse} QueryEscrowAddressResponse + * @returns {ibc.applications.transfer.v1.MsgTransferResponse} MsgTransferResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryEscrowAddressResponse.decodeDelimited = function decodeDelimited(reader) { + MsgTransferResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryEscrowAddressResponse message. + * Verifies a MsgTransferResponse message. * @function verify - * @memberof ibc.applications.transfer.v1.QueryEscrowAddressResponse + * @memberof ibc.applications.transfer.v1.MsgTransferResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryEscrowAddressResponse.verify = function verify(message) { + MsgTransferResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.escrow_address != null && message.hasOwnProperty("escrow_address")) - if (!$util.isString(message.escrow_address)) - return "escrow_address: string expected"; + if (message.sequence != null && message.hasOwnProperty("sequence")) + if (!$util.isInteger(message.sequence) && !(message.sequence && $util.isInteger(message.sequence.low) && $util.isInteger(message.sequence.high))) + return "sequence: integer|Long expected"; return null; }; /** - * Creates a QueryEscrowAddressResponse message from a plain object. Also converts values to their respective internal types. + * Creates a MsgTransferResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.applications.transfer.v1.QueryEscrowAddressResponse + * @memberof ibc.applications.transfer.v1.MsgTransferResponse * @static * @param {Object.} object Plain object - * @returns {ibc.applications.transfer.v1.QueryEscrowAddressResponse} QueryEscrowAddressResponse + * @returns {ibc.applications.transfer.v1.MsgTransferResponse} MsgTransferResponse */ - QueryEscrowAddressResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.transfer.v1.QueryEscrowAddressResponse) + MsgTransferResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.transfer.v1.MsgTransferResponse) return object; - var message = new $root.ibc.applications.transfer.v1.QueryEscrowAddressResponse(); - if (object.escrow_address != null) - message.escrow_address = String(object.escrow_address); + var message = new $root.ibc.applications.transfer.v1.MsgTransferResponse(); + if (object.sequence != null) + if ($util.Long) + (message.sequence = $util.Long.fromValue(object.sequence)).unsigned = true; + else if (typeof object.sequence === "string") + message.sequence = parseInt(object.sequence, 10); + else if (typeof object.sequence === "number") + message.sequence = object.sequence; + else if (typeof object.sequence === "object") + message.sequence = new $util.LongBits(object.sequence.low >>> 0, object.sequence.high >>> 0).toNumber(true); return message; }; /** - * Creates a plain object from a QueryEscrowAddressResponse message. Also converts values to other types if specified. + * Creates a plain object from a MsgTransferResponse message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.applications.transfer.v1.QueryEscrowAddressResponse + * @memberof ibc.applications.transfer.v1.MsgTransferResponse * @static - * @param {ibc.applications.transfer.v1.QueryEscrowAddressResponse} message QueryEscrowAddressResponse + * @param {ibc.applications.transfer.v1.MsgTransferResponse} message MsgTransferResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryEscrowAddressResponse.toObject = function toObject(message, options) { + MsgTransferResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) - object.escrow_address = ""; - if (message.escrow_address != null && message.hasOwnProperty("escrow_address")) - object.escrow_address = message.escrow_address; + if ($util.Long) { + var long = new $util.Long(0, 0, true); + object.sequence = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.sequence = options.longs === String ? "0" : 0; + if (message.sequence != null && message.hasOwnProperty("sequence")) + if (typeof message.sequence === "number") + object.sequence = options.longs === String ? String(message.sequence) : message.sequence; + else + object.sequence = options.longs === String ? $util.Long.prototype.toString.call(message.sequence) : options.longs === Number ? new $util.LongBits(message.sequence.low >>> 0, message.sequence.high >>> 0).toNumber(true) : message.sequence; return object; }; /** - * Converts this QueryEscrowAddressResponse to JSON. + * Converts this MsgTransferResponse to JSON. * @function toJSON - * @memberof ibc.applications.transfer.v1.QueryEscrowAddressResponse + * @memberof ibc.applications.transfer.v1.MsgTransferResponse * @instance * @returns {Object.} JSON object */ - QueryEscrowAddressResponse.prototype.toJSON = function toJSON() { + MsgTransferResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryEscrowAddressResponse; + return MsgTransferResponse; })(); - v1.GenesisState = (function() { + v1.DenomTrace = (function() { /** - * Properties of a GenesisState. + * Properties of a DenomTrace. * @memberof ibc.applications.transfer.v1 - * @interface IGenesisState - * @property {string|null} [port_id] GenesisState port_id - * @property {Array.|null} [denom_traces] GenesisState denom_traces - * @property {ibc.applications.transfer.v1.IParams|null} [params] GenesisState params + * @interface IDenomTrace + * @property {string|null} [path] DenomTrace path + * @property {string|null} [base_denom] DenomTrace base_denom */ /** - * Constructs a new GenesisState. + * Constructs a new DenomTrace. * @memberof ibc.applications.transfer.v1 - * @classdesc Represents a GenesisState. - * @implements IGenesisState + * @classdesc Represents a DenomTrace. + * @implements IDenomTrace * @constructor - * @param {ibc.applications.transfer.v1.IGenesisState=} [properties] Properties to set + * @param {ibc.applications.transfer.v1.IDenomTrace=} [properties] Properties to set */ - function GenesisState(properties) { - this.denom_traces = []; + function DenomTrace(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -33661,92 +40819,76 @@ } /** - * GenesisState port_id. - * @member {string} port_id - * @memberof ibc.applications.transfer.v1.GenesisState - * @instance - */ - GenesisState.prototype.port_id = ""; - - /** - * GenesisState denom_traces. - * @member {Array.} denom_traces - * @memberof ibc.applications.transfer.v1.GenesisState + * DenomTrace path. + * @member {string} path + * @memberof ibc.applications.transfer.v1.DenomTrace * @instance */ - GenesisState.prototype.denom_traces = $util.emptyArray; + DenomTrace.prototype.path = ""; /** - * GenesisState params. - * @member {ibc.applications.transfer.v1.IParams|null|undefined} params - * @memberof ibc.applications.transfer.v1.GenesisState + * DenomTrace base_denom. + * @member {string} base_denom + * @memberof ibc.applications.transfer.v1.DenomTrace * @instance */ - GenesisState.prototype.params = null; + DenomTrace.prototype.base_denom = ""; /** - * Encodes the specified GenesisState message. Does not implicitly {@link ibc.applications.transfer.v1.GenesisState.verify|verify} messages. + * Encodes the specified DenomTrace message. Does not implicitly {@link ibc.applications.transfer.v1.DenomTrace.verify|verify} messages. * @function encode - * @memberof ibc.applications.transfer.v1.GenesisState + * @memberof ibc.applications.transfer.v1.DenomTrace * @static - * @param {ibc.applications.transfer.v1.IGenesisState} message GenesisState message or plain object to encode + * @param {ibc.applications.transfer.v1.IDenomTrace} message DenomTrace message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GenesisState.encode = function encode(message, writer) { + DenomTrace.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.port_id != null && Object.hasOwnProperty.call(message, "port_id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.port_id); - if (message.denom_traces != null && message.denom_traces.length) - for (var i = 0; i < message.denom_traces.length; ++i) - $root.ibc.applications.transfer.v1.DenomTrace.encode(message.denom_traces[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.params != null && Object.hasOwnProperty.call(message, "params")) - $root.ibc.applications.transfer.v1.Params.encode(message.params, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.path != null && Object.hasOwnProperty.call(message, "path")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.path); + if (message.base_denom != null && Object.hasOwnProperty.call(message, "base_denom")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.base_denom); return writer; }; /** - * Encodes the specified GenesisState message, length delimited. Does not implicitly {@link ibc.applications.transfer.v1.GenesisState.verify|verify} messages. + * Encodes the specified DenomTrace message, length delimited. Does not implicitly {@link ibc.applications.transfer.v1.DenomTrace.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.applications.transfer.v1.GenesisState + * @memberof ibc.applications.transfer.v1.DenomTrace * @static - * @param {ibc.applications.transfer.v1.IGenesisState} message GenesisState message or plain object to encode + * @param {ibc.applications.transfer.v1.IDenomTrace} message DenomTrace message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GenesisState.encodeDelimited = function encodeDelimited(message, writer) { + DenomTrace.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GenesisState message from the specified reader or buffer. + * Decodes a DenomTrace message from the specified reader or buffer. * @function decode - * @memberof ibc.applications.transfer.v1.GenesisState + * @memberof ibc.applications.transfer.v1.DenomTrace * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.transfer.v1.GenesisState} GenesisState + * @returns {ibc.applications.transfer.v1.DenomTrace} DenomTrace * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GenesisState.decode = function decode(reader, length) { + DenomTrace.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.transfer.v1.GenesisState(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.transfer.v1.DenomTrace(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.port_id = reader.string(); + message.path = reader.string(); break; case 2: - if (!(message.denom_traces && message.denom_traces.length)) - message.denom_traces = []; - message.denom_traces.push($root.ibc.applications.transfer.v1.DenomTrace.decode(reader, reader.uint32())); - break; - case 3: - message.params = $root.ibc.applications.transfer.v1.Params.decode(reader, reader.uint32()); + message.base_denom = reader.string(); break; default: reader.skipType(tag & 7); @@ -33757,163 +40899,117 @@ }; /** - * Decodes a GenesisState message from the specified reader or buffer, length delimited. + * Decodes a DenomTrace message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.applications.transfer.v1.GenesisState + * @memberof ibc.applications.transfer.v1.DenomTrace * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.transfer.v1.GenesisState} GenesisState + * @returns {ibc.applications.transfer.v1.DenomTrace} DenomTrace * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GenesisState.decodeDelimited = function decodeDelimited(reader) { + DenomTrace.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GenesisState message. + * Verifies a DenomTrace message. * @function verify - * @memberof ibc.applications.transfer.v1.GenesisState + * @memberof ibc.applications.transfer.v1.DenomTrace * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GenesisState.verify = function verify(message) { + DenomTrace.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.port_id != null && message.hasOwnProperty("port_id")) - if (!$util.isString(message.port_id)) - return "port_id: string expected"; - if (message.denom_traces != null && message.hasOwnProperty("denom_traces")) { - if (!Array.isArray(message.denom_traces)) - return "denom_traces: array expected"; - for (var i = 0; i < message.denom_traces.length; ++i) { - var error = $root.ibc.applications.transfer.v1.DenomTrace.verify(message.denom_traces[i]); - if (error) - return "denom_traces." + error; - } - } - if (message.params != null && message.hasOwnProperty("params")) { - var error = $root.ibc.applications.transfer.v1.Params.verify(message.params); - if (error) - return "params." + error; - } + if (message.path != null && message.hasOwnProperty("path")) + if (!$util.isString(message.path)) + return "path: string expected"; + if (message.base_denom != null && message.hasOwnProperty("base_denom")) + if (!$util.isString(message.base_denom)) + return "base_denom: string expected"; return null; }; /** - * Creates a GenesisState message from a plain object. Also converts values to their respective internal types. + * Creates a DenomTrace message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.applications.transfer.v1.GenesisState + * @memberof ibc.applications.transfer.v1.DenomTrace * @static * @param {Object.} object Plain object - * @returns {ibc.applications.transfer.v1.GenesisState} GenesisState + * @returns {ibc.applications.transfer.v1.DenomTrace} DenomTrace */ - GenesisState.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.transfer.v1.GenesisState) + DenomTrace.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.transfer.v1.DenomTrace) return object; - var message = new $root.ibc.applications.transfer.v1.GenesisState(); - if (object.port_id != null) - message.port_id = String(object.port_id); - if (object.denom_traces) { - if (!Array.isArray(object.denom_traces)) - throw TypeError(".ibc.applications.transfer.v1.GenesisState.denom_traces: array expected"); - message.denom_traces = []; - for (var i = 0; i < object.denom_traces.length; ++i) { - if (typeof object.denom_traces[i] !== "object") - throw TypeError(".ibc.applications.transfer.v1.GenesisState.denom_traces: object expected"); - message.denom_traces[i] = $root.ibc.applications.transfer.v1.DenomTrace.fromObject(object.denom_traces[i]); - } - } - if (object.params != null) { - if (typeof object.params !== "object") - throw TypeError(".ibc.applications.transfer.v1.GenesisState.params: object expected"); - message.params = $root.ibc.applications.transfer.v1.Params.fromObject(object.params); - } + var message = new $root.ibc.applications.transfer.v1.DenomTrace(); + if (object.path != null) + message.path = String(object.path); + if (object.base_denom != null) + message.base_denom = String(object.base_denom); return message; }; /** - * Creates a plain object from a GenesisState message. Also converts values to other types if specified. + * Creates a plain object from a DenomTrace message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.applications.transfer.v1.GenesisState + * @memberof ibc.applications.transfer.v1.DenomTrace * @static - * @param {ibc.applications.transfer.v1.GenesisState} message GenesisState + * @param {ibc.applications.transfer.v1.DenomTrace} message DenomTrace * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GenesisState.toObject = function toObject(message, options) { + DenomTrace.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.denom_traces = []; if (options.defaults) { - object.port_id = ""; - object.params = null; - } - if (message.port_id != null && message.hasOwnProperty("port_id")) - object.port_id = message.port_id; - if (message.denom_traces && message.denom_traces.length) { - object.denom_traces = []; - for (var j = 0; j < message.denom_traces.length; ++j) - object.denom_traces[j] = $root.ibc.applications.transfer.v1.DenomTrace.toObject(message.denom_traces[j], options); + object.path = ""; + object.base_denom = ""; } - if (message.params != null && message.hasOwnProperty("params")) - object.params = $root.ibc.applications.transfer.v1.Params.toObject(message.params, options); + if (message.path != null && message.hasOwnProperty("path")) + object.path = message.path; + if (message.base_denom != null && message.hasOwnProperty("base_denom")) + object.base_denom = message.base_denom; return object; }; /** - * Converts this GenesisState to JSON. + * Converts this DenomTrace to JSON. * @function toJSON - * @memberof ibc.applications.transfer.v1.GenesisState + * @memberof ibc.applications.transfer.v1.DenomTrace * @instance * @returns {Object.} JSON object */ - GenesisState.prototype.toJSON = function toJSON() { + DenomTrace.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GenesisState; + return DenomTrace; })(); - return v1; - })(); - - transfer.v2 = (function() { - - /** - * Namespace v2. - * @memberof ibc.applications.transfer - * @namespace - */ - var v2 = {}; - - v2.FungibleTokenPacketData = (function() { + v1.Params = (function() { /** - * Properties of a FungibleTokenPacketData. - * @memberof ibc.applications.transfer.v2 - * @interface IFungibleTokenPacketData - * @property {string|null} [denom] FungibleTokenPacketData denom - * @property {string|null} [amount] FungibleTokenPacketData amount - * @property {string|null} [sender] FungibleTokenPacketData sender - * @property {string|null} [receiver] FungibleTokenPacketData receiver - * @property {string|null} [memo] FungibleTokenPacketData memo + * Properties of a Params. + * @memberof ibc.applications.transfer.v1 + * @interface IParams + * @property {boolean|null} [send_enabled] Params send_enabled + * @property {boolean|null} [receive_enabled] Params receive_enabled */ /** - * Constructs a new FungibleTokenPacketData. - * @memberof ibc.applications.transfer.v2 - * @classdesc Represents a FungibleTokenPacketData. - * @implements IFungibleTokenPacketData + * Constructs a new Params. + * @memberof ibc.applications.transfer.v1 + * @classdesc Represents a Params. + * @implements IParams * @constructor - * @param {ibc.applications.transfer.v2.IFungibleTokenPacketData=} [properties] Properties to set + * @param {ibc.applications.transfer.v1.IParams=} [properties] Properties to set */ - function FungibleTokenPacketData(properties) { + function Params(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -33921,115 +41017,76 @@ } /** - * FungibleTokenPacketData denom. - * @member {string} denom - * @memberof ibc.applications.transfer.v2.FungibleTokenPacketData - * @instance - */ - FungibleTokenPacketData.prototype.denom = ""; - - /** - * FungibleTokenPacketData amount. - * @member {string} amount - * @memberof ibc.applications.transfer.v2.FungibleTokenPacketData - * @instance - */ - FungibleTokenPacketData.prototype.amount = ""; - - /** - * FungibleTokenPacketData sender. - * @member {string} sender - * @memberof ibc.applications.transfer.v2.FungibleTokenPacketData - * @instance - */ - FungibleTokenPacketData.prototype.sender = ""; - - /** - * FungibleTokenPacketData receiver. - * @member {string} receiver - * @memberof ibc.applications.transfer.v2.FungibleTokenPacketData + * Params send_enabled. + * @member {boolean} send_enabled + * @memberof ibc.applications.transfer.v1.Params * @instance */ - FungibleTokenPacketData.prototype.receiver = ""; + Params.prototype.send_enabled = false; /** - * FungibleTokenPacketData memo. - * @member {string} memo - * @memberof ibc.applications.transfer.v2.FungibleTokenPacketData + * Params receive_enabled. + * @member {boolean} receive_enabled + * @memberof ibc.applications.transfer.v1.Params * @instance */ - FungibleTokenPacketData.prototype.memo = ""; + Params.prototype.receive_enabled = false; /** - * Encodes the specified FungibleTokenPacketData message. Does not implicitly {@link ibc.applications.transfer.v2.FungibleTokenPacketData.verify|verify} messages. + * Encodes the specified Params message. Does not implicitly {@link ibc.applications.transfer.v1.Params.verify|verify} messages. * @function encode - * @memberof ibc.applications.transfer.v2.FungibleTokenPacketData + * @memberof ibc.applications.transfer.v1.Params * @static - * @param {ibc.applications.transfer.v2.IFungibleTokenPacketData} message FungibleTokenPacketData message or plain object to encode + * @param {ibc.applications.transfer.v1.IParams} message Params message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FungibleTokenPacketData.encode = function encode(message, writer) { + Params.encode = function encode(message, writer) { if (!writer) - writer = $Writer.create(); - if (message.denom != null && Object.hasOwnProperty.call(message, "denom")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.denom); - if (message.amount != null && Object.hasOwnProperty.call(message, "amount")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.amount); - if (message.sender != null && Object.hasOwnProperty.call(message, "sender")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.sender); - if (message.receiver != null && Object.hasOwnProperty.call(message, "receiver")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.receiver); - if (message.memo != null && Object.hasOwnProperty.call(message, "memo")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.memo); + writer = $Writer.create(); + if (message.send_enabled != null && Object.hasOwnProperty.call(message, "send_enabled")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.send_enabled); + if (message.receive_enabled != null && Object.hasOwnProperty.call(message, "receive_enabled")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.receive_enabled); return writer; }; /** - * Encodes the specified FungibleTokenPacketData message, length delimited. Does not implicitly {@link ibc.applications.transfer.v2.FungibleTokenPacketData.verify|verify} messages. + * Encodes the specified Params message, length delimited. Does not implicitly {@link ibc.applications.transfer.v1.Params.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.applications.transfer.v2.FungibleTokenPacketData + * @memberof ibc.applications.transfer.v1.Params * @static - * @param {ibc.applications.transfer.v2.IFungibleTokenPacketData} message FungibleTokenPacketData message or plain object to encode + * @param {ibc.applications.transfer.v1.IParams} message Params message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FungibleTokenPacketData.encodeDelimited = function encodeDelimited(message, writer) { + Params.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a FungibleTokenPacketData message from the specified reader or buffer. + * Decodes a Params message from the specified reader or buffer. * @function decode - * @memberof ibc.applications.transfer.v2.FungibleTokenPacketData + * @memberof ibc.applications.transfer.v1.Params * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.transfer.v2.FungibleTokenPacketData} FungibleTokenPacketData + * @returns {ibc.applications.transfer.v1.Params} Params * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FungibleTokenPacketData.decode = function decode(reader, length) { + Params.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.transfer.v2.FungibleTokenPacketData(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.transfer.v1.Params(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.denom = reader.string(); + message.send_enabled = reader.bool(); break; case 2: - message.amount = reader.string(); - break; - case 3: - message.sender = reader.string(); - break; - case 4: - message.receiver = reader.string(); - break; - case 5: - message.memo = reader.string(); + message.receive_enabled = reader.bool(); break; default: reader.skipType(tag & 7); @@ -34040,300 +41097,399 @@ }; /** - * Decodes a FungibleTokenPacketData message from the specified reader or buffer, length delimited. + * Decodes a Params message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.applications.transfer.v2.FungibleTokenPacketData + * @memberof ibc.applications.transfer.v1.Params * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.transfer.v2.FungibleTokenPacketData} FungibleTokenPacketData + * @returns {ibc.applications.transfer.v1.Params} Params * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FungibleTokenPacketData.decodeDelimited = function decodeDelimited(reader) { + Params.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a FungibleTokenPacketData message. + * Verifies a Params message. * @function verify - * @memberof ibc.applications.transfer.v2.FungibleTokenPacketData + * @memberof ibc.applications.transfer.v1.Params * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FungibleTokenPacketData.verify = function verify(message) { + Params.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.denom != null && message.hasOwnProperty("denom")) - if (!$util.isString(message.denom)) - return "denom: string expected"; - if (message.amount != null && message.hasOwnProperty("amount")) - if (!$util.isString(message.amount)) - return "amount: string expected"; - if (message.sender != null && message.hasOwnProperty("sender")) - if (!$util.isString(message.sender)) - return "sender: string expected"; - if (message.receiver != null && message.hasOwnProperty("receiver")) - if (!$util.isString(message.receiver)) - return "receiver: string expected"; - if (message.memo != null && message.hasOwnProperty("memo")) - if (!$util.isString(message.memo)) - return "memo: string expected"; + if (message.send_enabled != null && message.hasOwnProperty("send_enabled")) + if (typeof message.send_enabled !== "boolean") + return "send_enabled: boolean expected"; + if (message.receive_enabled != null && message.hasOwnProperty("receive_enabled")) + if (typeof message.receive_enabled !== "boolean") + return "receive_enabled: boolean expected"; return null; }; /** - * Creates a FungibleTokenPacketData message from a plain object. Also converts values to their respective internal types. + * Creates a Params message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.applications.transfer.v2.FungibleTokenPacketData + * @memberof ibc.applications.transfer.v1.Params * @static * @param {Object.} object Plain object - * @returns {ibc.applications.transfer.v2.FungibleTokenPacketData} FungibleTokenPacketData + * @returns {ibc.applications.transfer.v1.Params} Params */ - FungibleTokenPacketData.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.transfer.v2.FungibleTokenPacketData) + Params.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.transfer.v1.Params) return object; - var message = new $root.ibc.applications.transfer.v2.FungibleTokenPacketData(); - if (object.denom != null) - message.denom = String(object.denom); - if (object.amount != null) - message.amount = String(object.amount); - if (object.sender != null) - message.sender = String(object.sender); - if (object.receiver != null) - message.receiver = String(object.receiver); - if (object.memo != null) - message.memo = String(object.memo); + var message = new $root.ibc.applications.transfer.v1.Params(); + if (object.send_enabled != null) + message.send_enabled = Boolean(object.send_enabled); + if (object.receive_enabled != null) + message.receive_enabled = Boolean(object.receive_enabled); return message; }; /** - * Creates a plain object from a FungibleTokenPacketData message. Also converts values to other types if specified. + * Creates a plain object from a Params message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.applications.transfer.v2.FungibleTokenPacketData + * @memberof ibc.applications.transfer.v1.Params * @static - * @param {ibc.applications.transfer.v2.FungibleTokenPacketData} message FungibleTokenPacketData + * @param {ibc.applications.transfer.v1.Params} message Params * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FungibleTokenPacketData.toObject = function toObject(message, options) { + Params.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.denom = ""; - object.amount = ""; - object.sender = ""; - object.receiver = ""; - object.memo = ""; + object.send_enabled = false; + object.receive_enabled = false; } - if (message.denom != null && message.hasOwnProperty("denom")) - object.denom = message.denom; - if (message.amount != null && message.hasOwnProperty("amount")) - object.amount = message.amount; - if (message.sender != null && message.hasOwnProperty("sender")) - object.sender = message.sender; - if (message.receiver != null && message.hasOwnProperty("receiver")) - object.receiver = message.receiver; - if (message.memo != null && message.hasOwnProperty("memo")) - object.memo = message.memo; + if (message.send_enabled != null && message.hasOwnProperty("send_enabled")) + object.send_enabled = message.send_enabled; + if (message.receive_enabled != null && message.hasOwnProperty("receive_enabled")) + object.receive_enabled = message.receive_enabled; return object; }; /** - * Converts this FungibleTokenPacketData to JSON. + * Converts this Params to JSON. * @function toJSON - * @memberof ibc.applications.transfer.v2.FungibleTokenPacketData + * @memberof ibc.applications.transfer.v1.Params * @instance * @returns {Object.} JSON object */ - FungibleTokenPacketData.prototype.toJSON = function toJSON() { + Params.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return FungibleTokenPacketData; + return Params; })(); - return v2; - })(); + v1.Query = (function() { - return transfer; - })(); + /** + * Constructs a new Query service. + * @memberof ibc.applications.transfer.v1 + * @classdesc Represents a Query + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + */ + function Query(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } - return applications; - })(); + (Query.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Query; - ibc.core = (function() { + /** + * Callback as used by {@link ibc.applications.transfer.v1.Query#denomTrace}. + * @memberof ibc.applications.transfer.v1.Query + * @typedef DenomTraceCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.applications.transfer.v1.QueryDenomTraceResponse} [response] QueryDenomTraceResponse + */ - /** - * Namespace core. - * @memberof ibc - * @namespace - */ - var core = {}; + /** + * Calls DenomTrace. + * @function denomTrace + * @memberof ibc.applications.transfer.v1.Query + * @instance + * @param {ibc.applications.transfer.v1.IQueryDenomTraceRequest} request QueryDenomTraceRequest message or plain object + * @param {ibc.applications.transfer.v1.Query.DenomTraceCallback} callback Node-style callback called with the error, if any, and QueryDenomTraceResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Query.prototype.denomTrace = function denomTrace(request, callback) { + return this.rpcCall(denomTrace, $root.ibc.applications.transfer.v1.QueryDenomTraceRequest, $root.ibc.applications.transfer.v1.QueryDenomTraceResponse, request, callback); + }, "name", { value: "DenomTrace" }); - core.channel = (function() { + /** + * Calls DenomTrace. + * @function denomTrace + * @memberof ibc.applications.transfer.v1.Query + * @instance + * @param {ibc.applications.transfer.v1.IQueryDenomTraceRequest} request QueryDenomTraceRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ - /** - * Namespace channel. - * @memberof ibc.core - * @namespace - */ - var channel = {}; + /** + * Callback as used by {@link ibc.applications.transfer.v1.Query#denomTraces}. + * @memberof ibc.applications.transfer.v1.Query + * @typedef DenomTracesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.applications.transfer.v1.QueryDenomTracesResponse} [response] QueryDenomTracesResponse + */ - channel.v1 = (function() { + /** + * Calls DenomTraces. + * @function denomTraces + * @memberof ibc.applications.transfer.v1.Query + * @instance + * @param {ibc.applications.transfer.v1.IQueryDenomTracesRequest} request QueryDenomTracesRequest message or plain object + * @param {ibc.applications.transfer.v1.Query.DenomTracesCallback} callback Node-style callback called with the error, if any, and QueryDenomTracesResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Query.prototype.denomTraces = function denomTraces(request, callback) { + return this.rpcCall(denomTraces, $root.ibc.applications.transfer.v1.QueryDenomTracesRequest, $root.ibc.applications.transfer.v1.QueryDenomTracesResponse, request, callback); + }, "name", { value: "DenomTraces" }); - /** - * Namespace v1. - * @memberof ibc.core.channel - * @namespace - */ - var v1 = {}; + /** + * Calls DenomTraces. + * @function denomTraces + * @memberof ibc.applications.transfer.v1.Query + * @instance + * @param {ibc.applications.transfer.v1.IQueryDenomTracesRequest} request QueryDenomTracesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ - v1.Channel = (function() { + /** + * Callback as used by {@link ibc.applications.transfer.v1.Query#params}. + * @memberof ibc.applications.transfer.v1.Query + * @typedef ParamsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.applications.transfer.v1.QueryParamsResponse} [response] QueryParamsResponse + */ /** - * Properties of a Channel. - * @memberof ibc.core.channel.v1 - * @interface IChannel - * @property {ibc.core.channel.v1.State|null} [state] Channel state - * @property {ibc.core.channel.v1.Order|null} [ordering] Channel ordering - * @property {ibc.core.channel.v1.ICounterparty|null} [counterparty] Channel counterparty - * @property {Array.|null} [connection_hops] Channel connection_hops - * @property {string|null} [version] Channel version + * Calls Params. + * @function params + * @memberof ibc.applications.transfer.v1.Query + * @instance + * @param {ibc.applications.transfer.v1.IQueryParamsRequest} request QueryParamsRequest message or plain object + * @param {ibc.applications.transfer.v1.Query.ParamsCallback} callback Node-style callback called with the error, if any, and QueryParamsResponse + * @returns {undefined} + * @variation 1 */ + Object.defineProperty(Query.prototype.params = function params(request, callback) { + return this.rpcCall(params, $root.ibc.applications.transfer.v1.QueryParamsRequest, $root.ibc.applications.transfer.v1.QueryParamsResponse, request, callback); + }, "name", { value: "Params" }); /** - * Constructs a new Channel. - * @memberof ibc.core.channel.v1 - * @classdesc Represents a Channel. - * @implements IChannel - * @constructor - * @param {ibc.core.channel.v1.IChannel=} [properties] Properties to set + * Calls Params. + * @function params + * @memberof ibc.applications.transfer.v1.Query + * @instance + * @param {ibc.applications.transfer.v1.IQueryParamsRequest} request QueryParamsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - function Channel(properties) { - this.connection_hops = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } /** - * Channel state. - * @member {ibc.core.channel.v1.State} state - * @memberof ibc.core.channel.v1.Channel + * Callback as used by {@link ibc.applications.transfer.v1.Query#denomHash}. + * @memberof ibc.applications.transfer.v1.Query + * @typedef DenomHashCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.applications.transfer.v1.QueryDenomHashResponse} [response] QueryDenomHashResponse + */ + + /** + * Calls DenomHash. + * @function denomHash + * @memberof ibc.applications.transfer.v1.Query * @instance + * @param {ibc.applications.transfer.v1.IQueryDenomHashRequest} request QueryDenomHashRequest message or plain object + * @param {ibc.applications.transfer.v1.Query.DenomHashCallback} callback Node-style callback called with the error, if any, and QueryDenomHashResponse + * @returns {undefined} + * @variation 1 */ - Channel.prototype.state = 0; + Object.defineProperty(Query.prototype.denomHash = function denomHash(request, callback) { + return this.rpcCall(denomHash, $root.ibc.applications.transfer.v1.QueryDenomHashRequest, $root.ibc.applications.transfer.v1.QueryDenomHashResponse, request, callback); + }, "name", { value: "DenomHash" }); /** - * Channel ordering. - * @member {ibc.core.channel.v1.Order} ordering - * @memberof ibc.core.channel.v1.Channel + * Calls DenomHash. + * @function denomHash + * @memberof ibc.applications.transfer.v1.Query * @instance + * @param {ibc.applications.transfer.v1.IQueryDenomHashRequest} request QueryDenomHashRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - Channel.prototype.ordering = 0; /** - * Channel counterparty. - * @member {ibc.core.channel.v1.ICounterparty|null|undefined} counterparty - * @memberof ibc.core.channel.v1.Channel + * Callback as used by {@link ibc.applications.transfer.v1.Query#escrowAddress}. + * @memberof ibc.applications.transfer.v1.Query + * @typedef EscrowAddressCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.applications.transfer.v1.QueryEscrowAddressResponse} [response] QueryEscrowAddressResponse + */ + + /** + * Calls EscrowAddress. + * @function escrowAddress + * @memberof ibc.applications.transfer.v1.Query * @instance + * @param {ibc.applications.transfer.v1.IQueryEscrowAddressRequest} request QueryEscrowAddressRequest message or plain object + * @param {ibc.applications.transfer.v1.Query.EscrowAddressCallback} callback Node-style callback called with the error, if any, and QueryEscrowAddressResponse + * @returns {undefined} + * @variation 1 */ - Channel.prototype.counterparty = null; + Object.defineProperty(Query.prototype.escrowAddress = function escrowAddress(request, callback) { + return this.rpcCall(escrowAddress, $root.ibc.applications.transfer.v1.QueryEscrowAddressRequest, $root.ibc.applications.transfer.v1.QueryEscrowAddressResponse, request, callback); + }, "name", { value: "EscrowAddress" }); /** - * Channel connection_hops. - * @member {Array.} connection_hops - * @memberof ibc.core.channel.v1.Channel + * Calls EscrowAddress. + * @function escrowAddress + * @memberof ibc.applications.transfer.v1.Query * @instance + * @param {ibc.applications.transfer.v1.IQueryEscrowAddressRequest} request QueryEscrowAddressRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - Channel.prototype.connection_hops = $util.emptyArray; /** - * Channel version. - * @member {string} version - * @memberof ibc.core.channel.v1.Channel + * Callback as used by {@link ibc.applications.transfer.v1.Query#totalEscrowForDenom}. + * @memberof ibc.applications.transfer.v1.Query + * @typedef TotalEscrowForDenomCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.applications.transfer.v1.QueryTotalEscrowForDenomResponse} [response] QueryTotalEscrowForDenomResponse + */ + + /** + * Calls TotalEscrowForDenom. + * @function totalEscrowForDenom + * @memberof ibc.applications.transfer.v1.Query * @instance + * @param {ibc.applications.transfer.v1.IQueryTotalEscrowForDenomRequest} request QueryTotalEscrowForDenomRequest message or plain object + * @param {ibc.applications.transfer.v1.Query.TotalEscrowForDenomCallback} callback Node-style callback called with the error, if any, and QueryTotalEscrowForDenomResponse + * @returns {undefined} + * @variation 1 */ - Channel.prototype.version = ""; + Object.defineProperty(Query.prototype.totalEscrowForDenom = function totalEscrowForDenom(request, callback) { + return this.rpcCall(totalEscrowForDenom, $root.ibc.applications.transfer.v1.QueryTotalEscrowForDenomRequest, $root.ibc.applications.transfer.v1.QueryTotalEscrowForDenomResponse, request, callback); + }, "name", { value: "TotalEscrowForDenom" }); /** - * Encodes the specified Channel message. Does not implicitly {@link ibc.core.channel.v1.Channel.verify|verify} messages. + * Calls TotalEscrowForDenom. + * @function totalEscrowForDenom + * @memberof ibc.applications.transfer.v1.Query + * @instance + * @param {ibc.applications.transfer.v1.IQueryTotalEscrowForDenomRequest} request QueryTotalEscrowForDenomRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return Query; + })(); + + v1.QueryDenomTraceRequest = (function() { + + /** + * Properties of a QueryDenomTraceRequest. + * @memberof ibc.applications.transfer.v1 + * @interface IQueryDenomTraceRequest + * @property {string|null} [hash] QueryDenomTraceRequest hash + */ + + /** + * Constructs a new QueryDenomTraceRequest. + * @memberof ibc.applications.transfer.v1 + * @classdesc Represents a QueryDenomTraceRequest. + * @implements IQueryDenomTraceRequest + * @constructor + * @param {ibc.applications.transfer.v1.IQueryDenomTraceRequest=} [properties] Properties to set + */ + function QueryDenomTraceRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * QueryDenomTraceRequest hash. + * @member {string} hash + * @memberof ibc.applications.transfer.v1.QueryDenomTraceRequest + * @instance + */ + QueryDenomTraceRequest.prototype.hash = ""; + + /** + * Encodes the specified QueryDenomTraceRequest message. Does not implicitly {@link ibc.applications.transfer.v1.QueryDenomTraceRequest.verify|verify} messages. * @function encode - * @memberof ibc.core.channel.v1.Channel + * @memberof ibc.applications.transfer.v1.QueryDenomTraceRequest * @static - * @param {ibc.core.channel.v1.IChannel} message Channel message or plain object to encode + * @param {ibc.applications.transfer.v1.IQueryDenomTraceRequest} message QueryDenomTraceRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Channel.encode = function encode(message, writer) { + QueryDenomTraceRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.state != null && Object.hasOwnProperty.call(message, "state")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.state); - if (message.ordering != null && Object.hasOwnProperty.call(message, "ordering")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.ordering); - if (message.counterparty != null && Object.hasOwnProperty.call(message, "counterparty")) - $root.ibc.core.channel.v1.Counterparty.encode(message.counterparty, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.connection_hops != null && message.connection_hops.length) - for (var i = 0; i < message.connection_hops.length; ++i) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.connection_hops[i]); - if (message.version != null && Object.hasOwnProperty.call(message, "version")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.version); + if (message.hash != null && Object.hasOwnProperty.call(message, "hash")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.hash); return writer; }; /** - * Encodes the specified Channel message, length delimited. Does not implicitly {@link ibc.core.channel.v1.Channel.verify|verify} messages. + * Encodes the specified QueryDenomTraceRequest message, length delimited. Does not implicitly {@link ibc.applications.transfer.v1.QueryDenomTraceRequest.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.channel.v1.Channel + * @memberof ibc.applications.transfer.v1.QueryDenomTraceRequest * @static - * @param {ibc.core.channel.v1.IChannel} message Channel message or plain object to encode + * @param {ibc.applications.transfer.v1.IQueryDenomTraceRequest} message QueryDenomTraceRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Channel.encodeDelimited = function encodeDelimited(message, writer) { + QueryDenomTraceRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Channel message from the specified reader or buffer. + * Decodes a QueryDenomTraceRequest message from the specified reader or buffer. * @function decode - * @memberof ibc.core.channel.v1.Channel + * @memberof ibc.applications.transfer.v1.QueryDenomTraceRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.channel.v1.Channel} Channel + * @returns {ibc.applications.transfer.v1.QueryDenomTraceRequest} QueryDenomTraceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Channel.decode = function decode(reader, length) { + QueryDenomTraceRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.Channel(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.transfer.v1.QueryDenomTraceRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.state = reader.int32(); - break; - case 2: - message.ordering = reader.int32(); - break; - case 3: - message.counterparty = $root.ibc.core.channel.v1.Counterparty.decode(reader, reader.uint32()); - break; - case 4: - if (!(message.connection_hops && message.connection_hops.length)) - message.connection_hops = []; - message.connection_hops.push(reader.string()); - break; - case 5: - message.version = reader.string(); + message.hash = reader.string(); break; default: reader.skipType(tag & 7); @@ -34344,211 +41500,107 @@ }; /** - * Decodes a Channel message from the specified reader or buffer, length delimited. + * Decodes a QueryDenomTraceRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.channel.v1.Channel + * @memberof ibc.applications.transfer.v1.QueryDenomTraceRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.channel.v1.Channel} Channel + * @returns {ibc.applications.transfer.v1.QueryDenomTraceRequest} QueryDenomTraceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Channel.decodeDelimited = function decodeDelimited(reader) { + QueryDenomTraceRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Channel message. + * Verifies a QueryDenomTraceRequest message. * @function verify - * @memberof ibc.core.channel.v1.Channel + * @memberof ibc.applications.transfer.v1.QueryDenomTraceRequest * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Channel.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.state != null && message.hasOwnProperty("state")) - switch (message.state) { - default: - return "state: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; - } - if (message.ordering != null && message.hasOwnProperty("ordering")) - switch (message.ordering) { - default: - return "ordering: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.counterparty != null && message.hasOwnProperty("counterparty")) { - var error = $root.ibc.core.channel.v1.Counterparty.verify(message.counterparty); - if (error) - return "counterparty." + error; - } - if (message.connection_hops != null && message.hasOwnProperty("connection_hops")) { - if (!Array.isArray(message.connection_hops)) - return "connection_hops: array expected"; - for (var i = 0; i < message.connection_hops.length; ++i) - if (!$util.isString(message.connection_hops[i])) - return "connection_hops: string[] expected"; - } - if (message.version != null && message.hasOwnProperty("version")) - if (!$util.isString(message.version)) - return "version: string expected"; + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + QueryDenomTraceRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.hash != null && message.hasOwnProperty("hash")) + if (!$util.isString(message.hash)) + return "hash: string expected"; return null; }; /** - * Creates a Channel message from a plain object. Also converts values to their respective internal types. + * Creates a QueryDenomTraceRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.channel.v1.Channel + * @memberof ibc.applications.transfer.v1.QueryDenomTraceRequest * @static * @param {Object.} object Plain object - * @returns {ibc.core.channel.v1.Channel} Channel + * @returns {ibc.applications.transfer.v1.QueryDenomTraceRequest} QueryDenomTraceRequest */ - Channel.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.channel.v1.Channel) + QueryDenomTraceRequest.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.transfer.v1.QueryDenomTraceRequest) return object; - var message = new $root.ibc.core.channel.v1.Channel(); - switch (object.state) { - case "STATE_UNINITIALIZED_UNSPECIFIED": - case 0: - message.state = 0; - break; - case "STATE_INIT": - case 1: - message.state = 1; - break; - case "STATE_TRYOPEN": - case 2: - message.state = 2; - break; - case "STATE_OPEN": - case 3: - message.state = 3; - break; - case "STATE_CLOSED": - case 4: - message.state = 4; - break; - } - switch (object.ordering) { - case "ORDER_NONE_UNSPECIFIED": - case 0: - message.ordering = 0; - break; - case "ORDER_UNORDERED": - case 1: - message.ordering = 1; - break; - case "ORDER_ORDERED": - case 2: - message.ordering = 2; - break; - } - if (object.counterparty != null) { - if (typeof object.counterparty !== "object") - throw TypeError(".ibc.core.channel.v1.Channel.counterparty: object expected"); - message.counterparty = $root.ibc.core.channel.v1.Counterparty.fromObject(object.counterparty); - } - if (object.connection_hops) { - if (!Array.isArray(object.connection_hops)) - throw TypeError(".ibc.core.channel.v1.Channel.connection_hops: array expected"); - message.connection_hops = []; - for (var i = 0; i < object.connection_hops.length; ++i) - message.connection_hops[i] = String(object.connection_hops[i]); - } - if (object.version != null) - message.version = String(object.version); + var message = new $root.ibc.applications.transfer.v1.QueryDenomTraceRequest(); + if (object.hash != null) + message.hash = String(object.hash); return message; }; /** - * Creates a plain object from a Channel message. Also converts values to other types if specified. + * Creates a plain object from a QueryDenomTraceRequest message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.channel.v1.Channel + * @memberof ibc.applications.transfer.v1.QueryDenomTraceRequest * @static - * @param {ibc.core.channel.v1.Channel} message Channel + * @param {ibc.applications.transfer.v1.QueryDenomTraceRequest} message QueryDenomTraceRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Channel.toObject = function toObject(message, options) { + QueryDenomTraceRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.connection_hops = []; - if (options.defaults) { - object.state = options.enums === String ? "STATE_UNINITIALIZED_UNSPECIFIED" : 0; - object.ordering = options.enums === String ? "ORDER_NONE_UNSPECIFIED" : 0; - object.counterparty = null; - object.version = ""; - } - if (message.state != null && message.hasOwnProperty("state")) - object.state = options.enums === String ? $root.ibc.core.channel.v1.State[message.state] : message.state; - if (message.ordering != null && message.hasOwnProperty("ordering")) - object.ordering = options.enums === String ? $root.ibc.core.channel.v1.Order[message.ordering] : message.ordering; - if (message.counterparty != null && message.hasOwnProperty("counterparty")) - object.counterparty = $root.ibc.core.channel.v1.Counterparty.toObject(message.counterparty, options); - if (message.connection_hops && message.connection_hops.length) { - object.connection_hops = []; - for (var j = 0; j < message.connection_hops.length; ++j) - object.connection_hops[j] = message.connection_hops[j]; - } - if (message.version != null && message.hasOwnProperty("version")) - object.version = message.version; + if (options.defaults) + object.hash = ""; + if (message.hash != null && message.hasOwnProperty("hash")) + object.hash = message.hash; return object; }; /** - * Converts this Channel to JSON. + * Converts this QueryDenomTraceRequest to JSON. * @function toJSON - * @memberof ibc.core.channel.v1.Channel + * @memberof ibc.applications.transfer.v1.QueryDenomTraceRequest * @instance * @returns {Object.} JSON object */ - Channel.prototype.toJSON = function toJSON() { + QueryDenomTraceRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Channel; + return QueryDenomTraceRequest; })(); - v1.IdentifiedChannel = (function() { + v1.QueryDenomTraceResponse = (function() { /** - * Properties of an IdentifiedChannel. - * @memberof ibc.core.channel.v1 - * @interface IIdentifiedChannel - * @property {ibc.core.channel.v1.State|null} [state] IdentifiedChannel state - * @property {ibc.core.channel.v1.Order|null} [ordering] IdentifiedChannel ordering - * @property {ibc.core.channel.v1.ICounterparty|null} [counterparty] IdentifiedChannel counterparty - * @property {Array.|null} [connection_hops] IdentifiedChannel connection_hops - * @property {string|null} [version] IdentifiedChannel version - * @property {string|null} [port_id] IdentifiedChannel port_id - * @property {string|null} [channel_id] IdentifiedChannel channel_id + * Properties of a QueryDenomTraceResponse. + * @memberof ibc.applications.transfer.v1 + * @interface IQueryDenomTraceResponse + * @property {ibc.applications.transfer.v1.IDenomTrace|null} [denom_trace] QueryDenomTraceResponse denom_trace */ /** - * Constructs a new IdentifiedChannel. - * @memberof ibc.core.channel.v1 - * @classdesc Represents an IdentifiedChannel. - * @implements IIdentifiedChannel + * Constructs a new QueryDenomTraceResponse. + * @memberof ibc.applications.transfer.v1 + * @classdesc Represents a QueryDenomTraceResponse. + * @implements IQueryDenomTraceResponse * @constructor - * @param {ibc.core.channel.v1.IIdentifiedChannel=} [properties] Properties to set + * @param {ibc.applications.transfer.v1.IQueryDenomTraceResponse=} [properties] Properties to set */ - function IdentifiedChannel(properties) { - this.connection_hops = []; + function QueryDenomTraceResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -34556,144 +41608,63 @@ } /** - * IdentifiedChannel state. - * @member {ibc.core.channel.v1.State} state - * @memberof ibc.core.channel.v1.IdentifiedChannel - * @instance - */ - IdentifiedChannel.prototype.state = 0; - - /** - * IdentifiedChannel ordering. - * @member {ibc.core.channel.v1.Order} ordering - * @memberof ibc.core.channel.v1.IdentifiedChannel - * @instance - */ - IdentifiedChannel.prototype.ordering = 0; - - /** - * IdentifiedChannel counterparty. - * @member {ibc.core.channel.v1.ICounterparty|null|undefined} counterparty - * @memberof ibc.core.channel.v1.IdentifiedChannel - * @instance - */ - IdentifiedChannel.prototype.counterparty = null; - - /** - * IdentifiedChannel connection_hops. - * @member {Array.} connection_hops - * @memberof ibc.core.channel.v1.IdentifiedChannel - * @instance - */ - IdentifiedChannel.prototype.connection_hops = $util.emptyArray; - - /** - * IdentifiedChannel version. - * @member {string} version - * @memberof ibc.core.channel.v1.IdentifiedChannel - * @instance - */ - IdentifiedChannel.prototype.version = ""; - - /** - * IdentifiedChannel port_id. - * @member {string} port_id - * @memberof ibc.core.channel.v1.IdentifiedChannel - * @instance - */ - IdentifiedChannel.prototype.port_id = ""; - - /** - * IdentifiedChannel channel_id. - * @member {string} channel_id - * @memberof ibc.core.channel.v1.IdentifiedChannel + * QueryDenomTraceResponse denom_trace. + * @member {ibc.applications.transfer.v1.IDenomTrace|null|undefined} denom_trace + * @memberof ibc.applications.transfer.v1.QueryDenomTraceResponse * @instance */ - IdentifiedChannel.prototype.channel_id = ""; + QueryDenomTraceResponse.prototype.denom_trace = null; /** - * Encodes the specified IdentifiedChannel message. Does not implicitly {@link ibc.core.channel.v1.IdentifiedChannel.verify|verify} messages. + * Encodes the specified QueryDenomTraceResponse message. Does not implicitly {@link ibc.applications.transfer.v1.QueryDenomTraceResponse.verify|verify} messages. * @function encode - * @memberof ibc.core.channel.v1.IdentifiedChannel + * @memberof ibc.applications.transfer.v1.QueryDenomTraceResponse * @static - * @param {ibc.core.channel.v1.IIdentifiedChannel} message IdentifiedChannel message or plain object to encode + * @param {ibc.applications.transfer.v1.IQueryDenomTraceResponse} message QueryDenomTraceResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - IdentifiedChannel.encode = function encode(message, writer) { + QueryDenomTraceResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.state != null && Object.hasOwnProperty.call(message, "state")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.state); - if (message.ordering != null && Object.hasOwnProperty.call(message, "ordering")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.ordering); - if (message.counterparty != null && Object.hasOwnProperty.call(message, "counterparty")) - $root.ibc.core.channel.v1.Counterparty.encode(message.counterparty, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.connection_hops != null && message.connection_hops.length) - for (var i = 0; i < message.connection_hops.length; ++i) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.connection_hops[i]); - if (message.version != null && Object.hasOwnProperty.call(message, "version")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.version); - if (message.port_id != null && Object.hasOwnProperty.call(message, "port_id")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.port_id); - if (message.channel_id != null && Object.hasOwnProperty.call(message, "channel_id")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.channel_id); + if (message.denom_trace != null && Object.hasOwnProperty.call(message, "denom_trace")) + $root.ibc.applications.transfer.v1.DenomTrace.encode(message.denom_trace, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified IdentifiedChannel message, length delimited. Does not implicitly {@link ibc.core.channel.v1.IdentifiedChannel.verify|verify} messages. + * Encodes the specified QueryDenomTraceResponse message, length delimited. Does not implicitly {@link ibc.applications.transfer.v1.QueryDenomTraceResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.channel.v1.IdentifiedChannel + * @memberof ibc.applications.transfer.v1.QueryDenomTraceResponse * @static - * @param {ibc.core.channel.v1.IIdentifiedChannel} message IdentifiedChannel message or plain object to encode + * @param {ibc.applications.transfer.v1.IQueryDenomTraceResponse} message QueryDenomTraceResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - IdentifiedChannel.encodeDelimited = function encodeDelimited(message, writer) { + QueryDenomTraceResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an IdentifiedChannel message from the specified reader or buffer. + * Decodes a QueryDenomTraceResponse message from the specified reader or buffer. * @function decode - * @memberof ibc.core.channel.v1.IdentifiedChannel + * @memberof ibc.applications.transfer.v1.QueryDenomTraceResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.channel.v1.IdentifiedChannel} IdentifiedChannel + * @returns {ibc.applications.transfer.v1.QueryDenomTraceResponse} QueryDenomTraceResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - IdentifiedChannel.decode = function decode(reader, length) { + QueryDenomTraceResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.IdentifiedChannel(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.transfer.v1.QueryDenomTraceResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.state = reader.int32(); - break; - case 2: - message.ordering = reader.int32(); - break; - case 3: - message.counterparty = $root.ibc.core.channel.v1.Counterparty.decode(reader, reader.uint32()); - break; - case 4: - if (!(message.connection_hops && message.connection_hops.length)) - message.connection_hops = []; - message.connection_hops.push(reader.string()); - break; - case 5: - message.version = reader.string(); - break; - case 6: - message.port_id = reader.string(); - break; - case 7: - message.channel_id = reader.string(); + message.denom_trace = $root.ibc.applications.transfer.v1.DenomTrace.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -34704,257 +41675,112 @@ }; /** - * Decodes an IdentifiedChannel message from the specified reader or buffer, length delimited. + * Decodes a QueryDenomTraceResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.channel.v1.IdentifiedChannel + * @memberof ibc.applications.transfer.v1.QueryDenomTraceResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.channel.v1.IdentifiedChannel} IdentifiedChannel + * @returns {ibc.applications.transfer.v1.QueryDenomTraceResponse} QueryDenomTraceResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - IdentifiedChannel.decodeDelimited = function decodeDelimited(reader) { + QueryDenomTraceResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an IdentifiedChannel message. + * Verifies a QueryDenomTraceResponse message. * @function verify - * @memberof ibc.core.channel.v1.IdentifiedChannel + * @memberof ibc.applications.transfer.v1.QueryDenomTraceResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - IdentifiedChannel.verify = function verify(message) { + QueryDenomTraceResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.state != null && message.hasOwnProperty("state")) - switch (message.state) { - default: - return "state: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; - } - if (message.ordering != null && message.hasOwnProperty("ordering")) - switch (message.ordering) { - default: - return "ordering: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.counterparty != null && message.hasOwnProperty("counterparty")) { - var error = $root.ibc.core.channel.v1.Counterparty.verify(message.counterparty); + if (message.denom_trace != null && message.hasOwnProperty("denom_trace")) { + var error = $root.ibc.applications.transfer.v1.DenomTrace.verify(message.denom_trace); if (error) - return "counterparty." + error; - } - if (message.connection_hops != null && message.hasOwnProperty("connection_hops")) { - if (!Array.isArray(message.connection_hops)) - return "connection_hops: array expected"; - for (var i = 0; i < message.connection_hops.length; ++i) - if (!$util.isString(message.connection_hops[i])) - return "connection_hops: string[] expected"; + return "denom_trace." + error; } - if (message.version != null && message.hasOwnProperty("version")) - if (!$util.isString(message.version)) - return "version: string expected"; - if (message.port_id != null && message.hasOwnProperty("port_id")) - if (!$util.isString(message.port_id)) - return "port_id: string expected"; - if (message.channel_id != null && message.hasOwnProperty("channel_id")) - if (!$util.isString(message.channel_id)) - return "channel_id: string expected"; return null; }; /** - * Creates an IdentifiedChannel message from a plain object. Also converts values to their respective internal types. + * Creates a QueryDenomTraceResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.channel.v1.IdentifiedChannel + * @memberof ibc.applications.transfer.v1.QueryDenomTraceResponse * @static * @param {Object.} object Plain object - * @returns {ibc.core.channel.v1.IdentifiedChannel} IdentifiedChannel + * @returns {ibc.applications.transfer.v1.QueryDenomTraceResponse} QueryDenomTraceResponse */ - IdentifiedChannel.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.channel.v1.IdentifiedChannel) + QueryDenomTraceResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.transfer.v1.QueryDenomTraceResponse) return object; - var message = new $root.ibc.core.channel.v1.IdentifiedChannel(); - switch (object.state) { - case "STATE_UNINITIALIZED_UNSPECIFIED": - case 0: - message.state = 0; - break; - case "STATE_INIT": - case 1: - message.state = 1; - break; - case "STATE_TRYOPEN": - case 2: - message.state = 2; - break; - case "STATE_OPEN": - case 3: - message.state = 3; - break; - case "STATE_CLOSED": - case 4: - message.state = 4; - break; - } - switch (object.ordering) { - case "ORDER_NONE_UNSPECIFIED": - case 0: - message.ordering = 0; - break; - case "ORDER_UNORDERED": - case 1: - message.ordering = 1; - break; - case "ORDER_ORDERED": - case 2: - message.ordering = 2; - break; - } - if (object.counterparty != null) { - if (typeof object.counterparty !== "object") - throw TypeError(".ibc.core.channel.v1.IdentifiedChannel.counterparty: object expected"); - message.counterparty = $root.ibc.core.channel.v1.Counterparty.fromObject(object.counterparty); - } - if (object.connection_hops) { - if (!Array.isArray(object.connection_hops)) - throw TypeError(".ibc.core.channel.v1.IdentifiedChannel.connection_hops: array expected"); - message.connection_hops = []; - for (var i = 0; i < object.connection_hops.length; ++i) - message.connection_hops[i] = String(object.connection_hops[i]); + var message = new $root.ibc.applications.transfer.v1.QueryDenomTraceResponse(); + if (object.denom_trace != null) { + if (typeof object.denom_trace !== "object") + throw TypeError(".ibc.applications.transfer.v1.QueryDenomTraceResponse.denom_trace: object expected"); + message.denom_trace = $root.ibc.applications.transfer.v1.DenomTrace.fromObject(object.denom_trace); } - if (object.version != null) - message.version = String(object.version); - if (object.port_id != null) - message.port_id = String(object.port_id); - if (object.channel_id != null) - message.channel_id = String(object.channel_id); return message; }; /** - * Creates a plain object from an IdentifiedChannel message. Also converts values to other types if specified. + * Creates a plain object from a QueryDenomTraceResponse message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.channel.v1.IdentifiedChannel + * @memberof ibc.applications.transfer.v1.QueryDenomTraceResponse * @static - * @param {ibc.core.channel.v1.IdentifiedChannel} message IdentifiedChannel + * @param {ibc.applications.transfer.v1.QueryDenomTraceResponse} message QueryDenomTraceResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - IdentifiedChannel.toObject = function toObject(message, options) { + QueryDenomTraceResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.connection_hops = []; - if (options.defaults) { - object.state = options.enums === String ? "STATE_UNINITIALIZED_UNSPECIFIED" : 0; - object.ordering = options.enums === String ? "ORDER_NONE_UNSPECIFIED" : 0; - object.counterparty = null; - object.version = ""; - object.port_id = ""; - object.channel_id = ""; - } - if (message.state != null && message.hasOwnProperty("state")) - object.state = options.enums === String ? $root.ibc.core.channel.v1.State[message.state] : message.state; - if (message.ordering != null && message.hasOwnProperty("ordering")) - object.ordering = options.enums === String ? $root.ibc.core.channel.v1.Order[message.ordering] : message.ordering; - if (message.counterparty != null && message.hasOwnProperty("counterparty")) - object.counterparty = $root.ibc.core.channel.v1.Counterparty.toObject(message.counterparty, options); - if (message.connection_hops && message.connection_hops.length) { - object.connection_hops = []; - for (var j = 0; j < message.connection_hops.length; ++j) - object.connection_hops[j] = message.connection_hops[j]; - } - if (message.version != null && message.hasOwnProperty("version")) - object.version = message.version; - if (message.port_id != null && message.hasOwnProperty("port_id")) - object.port_id = message.port_id; - if (message.channel_id != null && message.hasOwnProperty("channel_id")) - object.channel_id = message.channel_id; + if (options.defaults) + object.denom_trace = null; + if (message.denom_trace != null && message.hasOwnProperty("denom_trace")) + object.denom_trace = $root.ibc.applications.transfer.v1.DenomTrace.toObject(message.denom_trace, options); return object; }; /** - * Converts this IdentifiedChannel to JSON. + * Converts this QueryDenomTraceResponse to JSON. * @function toJSON - * @memberof ibc.core.channel.v1.IdentifiedChannel + * @memberof ibc.applications.transfer.v1.QueryDenomTraceResponse * @instance * @returns {Object.} JSON object */ - IdentifiedChannel.prototype.toJSON = function toJSON() { + QueryDenomTraceResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return IdentifiedChannel; - })(); - - /** - * State enum. - * @name ibc.core.channel.v1.State - * @enum {number} - * @property {number} STATE_UNINITIALIZED_UNSPECIFIED=0 STATE_UNINITIALIZED_UNSPECIFIED value - * @property {number} STATE_INIT=1 STATE_INIT value - * @property {number} STATE_TRYOPEN=2 STATE_TRYOPEN value - * @property {number} STATE_OPEN=3 STATE_OPEN value - * @property {number} STATE_CLOSED=4 STATE_CLOSED value - */ - v1.State = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "STATE_UNINITIALIZED_UNSPECIFIED"] = 0; - values[valuesById[1] = "STATE_INIT"] = 1; - values[valuesById[2] = "STATE_TRYOPEN"] = 2; - values[valuesById[3] = "STATE_OPEN"] = 3; - values[valuesById[4] = "STATE_CLOSED"] = 4; - return values; - })(); - - /** - * Order enum. - * @name ibc.core.channel.v1.Order - * @enum {number} - * @property {number} ORDER_NONE_UNSPECIFIED=0 ORDER_NONE_UNSPECIFIED value - * @property {number} ORDER_UNORDERED=1 ORDER_UNORDERED value - * @property {number} ORDER_ORDERED=2 ORDER_ORDERED value - */ - v1.Order = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "ORDER_NONE_UNSPECIFIED"] = 0; - values[valuesById[1] = "ORDER_UNORDERED"] = 1; - values[valuesById[2] = "ORDER_ORDERED"] = 2; - return values; + return QueryDenomTraceResponse; })(); - v1.Counterparty = (function() { + v1.QueryDenomTracesRequest = (function() { /** - * Properties of a Counterparty. - * @memberof ibc.core.channel.v1 - * @interface ICounterparty - * @property {string|null} [port_id] Counterparty port_id - * @property {string|null} [channel_id] Counterparty channel_id + * Properties of a QueryDenomTracesRequest. + * @memberof ibc.applications.transfer.v1 + * @interface IQueryDenomTracesRequest + * @property {cosmos.base.query.v1beta1.IPageRequest|null} [pagination] QueryDenomTracesRequest pagination */ /** - * Constructs a new Counterparty. - * @memberof ibc.core.channel.v1 - * @classdesc Represents a Counterparty. - * @implements ICounterparty + * Constructs a new QueryDenomTracesRequest. + * @memberof ibc.applications.transfer.v1 + * @classdesc Represents a QueryDenomTracesRequest. + * @implements IQueryDenomTracesRequest * @constructor - * @param {ibc.core.channel.v1.ICounterparty=} [properties] Properties to set + * @param {ibc.applications.transfer.v1.IQueryDenomTracesRequest=} [properties] Properties to set */ - function Counterparty(properties) { + function QueryDenomTracesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -34962,76 +41788,63 @@ } /** - * Counterparty port_id. - * @member {string} port_id - * @memberof ibc.core.channel.v1.Counterparty - * @instance - */ - Counterparty.prototype.port_id = ""; - - /** - * Counterparty channel_id. - * @member {string} channel_id - * @memberof ibc.core.channel.v1.Counterparty + * QueryDenomTracesRequest pagination. + * @member {cosmos.base.query.v1beta1.IPageRequest|null|undefined} pagination + * @memberof ibc.applications.transfer.v1.QueryDenomTracesRequest * @instance */ - Counterparty.prototype.channel_id = ""; + QueryDenomTracesRequest.prototype.pagination = null; /** - * Encodes the specified Counterparty message. Does not implicitly {@link ibc.core.channel.v1.Counterparty.verify|verify} messages. + * Encodes the specified QueryDenomTracesRequest message. Does not implicitly {@link ibc.applications.transfer.v1.QueryDenomTracesRequest.verify|verify} messages. * @function encode - * @memberof ibc.core.channel.v1.Counterparty + * @memberof ibc.applications.transfer.v1.QueryDenomTracesRequest * @static - * @param {ibc.core.channel.v1.ICounterparty} message Counterparty message or plain object to encode + * @param {ibc.applications.transfer.v1.IQueryDenomTracesRequest} message QueryDenomTracesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Counterparty.encode = function encode(message, writer) { + QueryDenomTracesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.port_id != null && Object.hasOwnProperty.call(message, "port_id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.port_id); - if (message.channel_id != null && Object.hasOwnProperty.call(message, "channel_id")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.channel_id); + if (message.pagination != null && Object.hasOwnProperty.call(message, "pagination")) + $root.cosmos.base.query.v1beta1.PageRequest.encode(message.pagination, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified Counterparty message, length delimited. Does not implicitly {@link ibc.core.channel.v1.Counterparty.verify|verify} messages. + * Encodes the specified QueryDenomTracesRequest message, length delimited. Does not implicitly {@link ibc.applications.transfer.v1.QueryDenomTracesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.channel.v1.Counterparty + * @memberof ibc.applications.transfer.v1.QueryDenomTracesRequest * @static - * @param {ibc.core.channel.v1.ICounterparty} message Counterparty message or plain object to encode + * @param {ibc.applications.transfer.v1.IQueryDenomTracesRequest} message QueryDenomTracesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Counterparty.encodeDelimited = function encodeDelimited(message, writer) { + QueryDenomTracesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Counterparty message from the specified reader or buffer. + * Decodes a QueryDenomTracesRequest message from the specified reader or buffer. * @function decode - * @memberof ibc.core.channel.v1.Counterparty + * @memberof ibc.applications.transfer.v1.QueryDenomTracesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.channel.v1.Counterparty} Counterparty + * @returns {ibc.applications.transfer.v1.QueryDenomTracesRequest} QueryDenomTracesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Counterparty.decode = function decode(reader, length) { + QueryDenomTracesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.Counterparty(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.transfer.v1.QueryDenomTracesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.port_id = reader.string(); - break; - case 2: - message.channel_id = reader.string(); + message.pagination = $root.cosmos.base.query.v1beta1.PageRequest.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -35042,123 +41855,114 @@ }; /** - * Decodes a Counterparty message from the specified reader or buffer, length delimited. + * Decodes a QueryDenomTracesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.channel.v1.Counterparty + * @memberof ibc.applications.transfer.v1.QueryDenomTracesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.channel.v1.Counterparty} Counterparty + * @returns {ibc.applications.transfer.v1.QueryDenomTracesRequest} QueryDenomTracesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Counterparty.decodeDelimited = function decodeDelimited(reader) { + QueryDenomTracesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Counterparty message. + * Verifies a QueryDenomTracesRequest message. * @function verify - * @memberof ibc.core.channel.v1.Counterparty + * @memberof ibc.applications.transfer.v1.QueryDenomTracesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Counterparty.verify = function verify(message) { + QueryDenomTracesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.port_id != null && message.hasOwnProperty("port_id")) - if (!$util.isString(message.port_id)) - return "port_id: string expected"; - if (message.channel_id != null && message.hasOwnProperty("channel_id")) - if (!$util.isString(message.channel_id)) - return "channel_id: string expected"; + if (message.pagination != null && message.hasOwnProperty("pagination")) { + var error = $root.cosmos.base.query.v1beta1.PageRequest.verify(message.pagination); + if (error) + return "pagination." + error; + } return null; }; /** - * Creates a Counterparty message from a plain object. Also converts values to their respective internal types. + * Creates a QueryDenomTracesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.channel.v1.Counterparty + * @memberof ibc.applications.transfer.v1.QueryDenomTracesRequest * @static * @param {Object.} object Plain object - * @returns {ibc.core.channel.v1.Counterparty} Counterparty + * @returns {ibc.applications.transfer.v1.QueryDenomTracesRequest} QueryDenomTracesRequest */ - Counterparty.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.channel.v1.Counterparty) + QueryDenomTracesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.transfer.v1.QueryDenomTracesRequest) return object; - var message = new $root.ibc.core.channel.v1.Counterparty(); - if (object.port_id != null) - message.port_id = String(object.port_id); - if (object.channel_id != null) - message.channel_id = String(object.channel_id); + var message = new $root.ibc.applications.transfer.v1.QueryDenomTracesRequest(); + if (object.pagination != null) { + if (typeof object.pagination !== "object") + throw TypeError(".ibc.applications.transfer.v1.QueryDenomTracesRequest.pagination: object expected"); + message.pagination = $root.cosmos.base.query.v1beta1.PageRequest.fromObject(object.pagination); + } return message; }; /** - * Creates a plain object from a Counterparty message. Also converts values to other types if specified. + * Creates a plain object from a QueryDenomTracesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.channel.v1.Counterparty + * @memberof ibc.applications.transfer.v1.QueryDenomTracesRequest * @static - * @param {ibc.core.channel.v1.Counterparty} message Counterparty + * @param {ibc.applications.transfer.v1.QueryDenomTracesRequest} message QueryDenomTracesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Counterparty.toObject = function toObject(message, options) { + QueryDenomTracesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.port_id = ""; - object.channel_id = ""; - } - if (message.port_id != null && message.hasOwnProperty("port_id")) - object.port_id = message.port_id; - if (message.channel_id != null && message.hasOwnProperty("channel_id")) - object.channel_id = message.channel_id; + if (options.defaults) + object.pagination = null; + if (message.pagination != null && message.hasOwnProperty("pagination")) + object.pagination = $root.cosmos.base.query.v1beta1.PageRequest.toObject(message.pagination, options); return object; }; /** - * Converts this Counterparty to JSON. + * Converts this QueryDenomTracesRequest to JSON. * @function toJSON - * @memberof ibc.core.channel.v1.Counterparty + * @memberof ibc.applications.transfer.v1.QueryDenomTracesRequest * @instance * @returns {Object.} JSON object */ - Counterparty.prototype.toJSON = function toJSON() { + QueryDenomTracesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Counterparty; + return QueryDenomTracesRequest; })(); - v1.Packet = (function() { + v1.QueryDenomTracesResponse = (function() { /** - * Properties of a Packet. - * @memberof ibc.core.channel.v1 - * @interface IPacket - * @property {Long|null} [sequence] Packet sequence - * @property {string|null} [source_port] Packet source_port - * @property {string|null} [source_channel] Packet source_channel - * @property {string|null} [destination_port] Packet destination_port - * @property {string|null} [destination_channel] Packet destination_channel - * @property {Uint8Array|null} [data] Packet data - * @property {ibc.core.client.v1.IHeight|null} [timeout_height] Packet timeout_height - * @property {Long|null} [timeout_timestamp] Packet timeout_timestamp + * Properties of a QueryDenomTracesResponse. + * @memberof ibc.applications.transfer.v1 + * @interface IQueryDenomTracesResponse + * @property {Array.|null} [denom_traces] QueryDenomTracesResponse denom_traces + * @property {cosmos.base.query.v1beta1.IPageResponse|null} [pagination] QueryDenomTracesResponse pagination */ /** - * Constructs a new Packet. - * @memberof ibc.core.channel.v1 - * @classdesc Represents a Packet. - * @implements IPacket + * Constructs a new QueryDenomTracesResponse. + * @memberof ibc.applications.transfer.v1 + * @classdesc Represents a QueryDenomTracesResponse. + * @implements IQueryDenomTracesResponse * @constructor - * @param {ibc.core.channel.v1.IPacket=} [properties] Properties to set + * @param {ibc.applications.transfer.v1.IQueryDenomTracesResponse=} [properties] Properties to set */ - function Packet(properties) { + function QueryDenomTracesResponse(properties) { + this.denom_traces = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -35166,154 +41970,79 @@ } /** - * Packet sequence. - * @member {Long} sequence - * @memberof ibc.core.channel.v1.Packet - * @instance - */ - Packet.prototype.sequence = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * Packet source_port. - * @member {string} source_port - * @memberof ibc.core.channel.v1.Packet - * @instance - */ - Packet.prototype.source_port = ""; - - /** - * Packet source_channel. - * @member {string} source_channel - * @memberof ibc.core.channel.v1.Packet - * @instance - */ - Packet.prototype.source_channel = ""; - - /** - * Packet destination_port. - * @member {string} destination_port - * @memberof ibc.core.channel.v1.Packet - * @instance - */ - Packet.prototype.destination_port = ""; - - /** - * Packet destination_channel. - * @member {string} destination_channel - * @memberof ibc.core.channel.v1.Packet - * @instance - */ - Packet.prototype.destination_channel = ""; - - /** - * Packet data. - * @member {Uint8Array} data - * @memberof ibc.core.channel.v1.Packet - * @instance - */ - Packet.prototype.data = $util.newBuffer([]); - - /** - * Packet timeout_height. - * @member {ibc.core.client.v1.IHeight|null|undefined} timeout_height - * @memberof ibc.core.channel.v1.Packet + * QueryDenomTracesResponse denom_traces. + * @member {Array.} denom_traces + * @memberof ibc.applications.transfer.v1.QueryDenomTracesResponse * @instance */ - Packet.prototype.timeout_height = null; + QueryDenomTracesResponse.prototype.denom_traces = $util.emptyArray; /** - * Packet timeout_timestamp. - * @member {Long} timeout_timestamp - * @memberof ibc.core.channel.v1.Packet + * QueryDenomTracesResponse pagination. + * @member {cosmos.base.query.v1beta1.IPageResponse|null|undefined} pagination + * @memberof ibc.applications.transfer.v1.QueryDenomTracesResponse * @instance */ - Packet.prototype.timeout_timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + QueryDenomTracesResponse.prototype.pagination = null; /** - * Encodes the specified Packet message. Does not implicitly {@link ibc.core.channel.v1.Packet.verify|verify} messages. + * Encodes the specified QueryDenomTracesResponse message. Does not implicitly {@link ibc.applications.transfer.v1.QueryDenomTracesResponse.verify|verify} messages. * @function encode - * @memberof ibc.core.channel.v1.Packet + * @memberof ibc.applications.transfer.v1.QueryDenomTracesResponse * @static - * @param {ibc.core.channel.v1.IPacket} message Packet message or plain object to encode + * @param {ibc.applications.transfer.v1.IQueryDenomTracesResponse} message QueryDenomTracesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Packet.encode = function encode(message, writer) { + QueryDenomTracesResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.sequence != null && Object.hasOwnProperty.call(message, "sequence")) - writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.sequence); - if (message.source_port != null && Object.hasOwnProperty.call(message, "source_port")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.source_port); - if (message.source_channel != null && Object.hasOwnProperty.call(message, "source_channel")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.source_channel); - if (message.destination_port != null && Object.hasOwnProperty.call(message, "destination_port")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.destination_port); - if (message.destination_channel != null && Object.hasOwnProperty.call(message, "destination_channel")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.destination_channel); - if (message.data != null && Object.hasOwnProperty.call(message, "data")) - writer.uint32(/* id 6, wireType 2 =*/50).bytes(message.data); - if (message.timeout_height != null && Object.hasOwnProperty.call(message, "timeout_height")) - $root.ibc.core.client.v1.Height.encode(message.timeout_height, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.timeout_timestamp != null && Object.hasOwnProperty.call(message, "timeout_timestamp")) - writer.uint32(/* id 8, wireType 0 =*/64).uint64(message.timeout_timestamp); + if (message.denom_traces != null && message.denom_traces.length) + for (var i = 0; i < message.denom_traces.length; ++i) + $root.ibc.applications.transfer.v1.DenomTrace.encode(message.denom_traces[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.pagination != null && Object.hasOwnProperty.call(message, "pagination")) + $root.cosmos.base.query.v1beta1.PageResponse.encode(message.pagination, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified Packet message, length delimited. Does not implicitly {@link ibc.core.channel.v1.Packet.verify|verify} messages. + * Encodes the specified QueryDenomTracesResponse message, length delimited. Does not implicitly {@link ibc.applications.transfer.v1.QueryDenomTracesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.channel.v1.Packet + * @memberof ibc.applications.transfer.v1.QueryDenomTracesResponse * @static - * @param {ibc.core.channel.v1.IPacket} message Packet message or plain object to encode + * @param {ibc.applications.transfer.v1.IQueryDenomTracesResponse} message QueryDenomTracesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Packet.encodeDelimited = function encodeDelimited(message, writer) { + QueryDenomTracesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Packet message from the specified reader or buffer. + * Decodes a QueryDenomTracesResponse message from the specified reader or buffer. * @function decode - * @memberof ibc.core.channel.v1.Packet + * @memberof ibc.applications.transfer.v1.QueryDenomTracesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.channel.v1.Packet} Packet + * @returns {ibc.applications.transfer.v1.QueryDenomTracesResponse} QueryDenomTracesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Packet.decode = function decode(reader, length) { + QueryDenomTracesResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.Packet(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.transfer.v1.QueryDenomTracesResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.sequence = reader.uint64(); + if (!(message.denom_traces && message.denom_traces.length)) + message.denom_traces = []; + message.denom_traces.push($root.ibc.applications.transfer.v1.DenomTrace.decode(reader, reader.uint32())); break; case 2: - message.source_port = reader.string(); - break; - case 3: - message.source_channel = reader.string(); - break; - case 4: - message.destination_port = reader.string(); - break; - case 5: - message.destination_channel = reader.string(); - break; - case 6: - message.data = reader.bytes(); - break; - case 7: - message.timeout_height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); - break; - case 8: - message.timeout_timestamp = reader.uint64(); + message.pagination = $root.cosmos.base.query.v1beta1.PageResponse.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -35324,209 +42053,286 @@ }; /** - * Decodes a Packet message from the specified reader or buffer, length delimited. + * Decodes a QueryDenomTracesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.channel.v1.Packet + * @memberof ibc.applications.transfer.v1.QueryDenomTracesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.channel.v1.Packet} Packet + * @returns {ibc.applications.transfer.v1.QueryDenomTracesResponse} QueryDenomTracesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Packet.decodeDelimited = function decodeDelimited(reader) { + QueryDenomTracesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Packet message. + * Verifies a QueryDenomTracesResponse message. * @function verify - * @memberof ibc.core.channel.v1.Packet + * @memberof ibc.applications.transfer.v1.QueryDenomTracesResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Packet.verify = function verify(message) { + QueryDenomTracesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.sequence != null && message.hasOwnProperty("sequence")) - if (!$util.isInteger(message.sequence) && !(message.sequence && $util.isInteger(message.sequence.low) && $util.isInteger(message.sequence.high))) - return "sequence: integer|Long expected"; - if (message.source_port != null && message.hasOwnProperty("source_port")) - if (!$util.isString(message.source_port)) - return "source_port: string expected"; - if (message.source_channel != null && message.hasOwnProperty("source_channel")) - if (!$util.isString(message.source_channel)) - return "source_channel: string expected"; - if (message.destination_port != null && message.hasOwnProperty("destination_port")) - if (!$util.isString(message.destination_port)) - return "destination_port: string expected"; - if (message.destination_channel != null && message.hasOwnProperty("destination_channel")) - if (!$util.isString(message.destination_channel)) - return "destination_channel: string expected"; - if (message.data != null && message.hasOwnProperty("data")) - if (!(message.data && typeof message.data.length === "number" || $util.isString(message.data))) - return "data: buffer expected"; - if (message.timeout_height != null && message.hasOwnProperty("timeout_height")) { - var error = $root.ibc.core.client.v1.Height.verify(message.timeout_height); + if (message.denom_traces != null && message.hasOwnProperty("denom_traces")) { + if (!Array.isArray(message.denom_traces)) + return "denom_traces: array expected"; + for (var i = 0; i < message.denom_traces.length; ++i) { + var error = $root.ibc.applications.transfer.v1.DenomTrace.verify(message.denom_traces[i]); + if (error) + return "denom_traces." + error; + } + } + if (message.pagination != null && message.hasOwnProperty("pagination")) { + var error = $root.cosmos.base.query.v1beta1.PageResponse.verify(message.pagination); if (error) - return "timeout_height." + error; + return "pagination." + error; } - if (message.timeout_timestamp != null && message.hasOwnProperty("timeout_timestamp")) - if (!$util.isInteger(message.timeout_timestamp) && !(message.timeout_timestamp && $util.isInteger(message.timeout_timestamp.low) && $util.isInteger(message.timeout_timestamp.high))) - return "timeout_timestamp: integer|Long expected"; return null; }; /** - * Creates a Packet message from a plain object. Also converts values to their respective internal types. + * Creates a QueryDenomTracesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.channel.v1.Packet + * @memberof ibc.applications.transfer.v1.QueryDenomTracesResponse * @static * @param {Object.} object Plain object - * @returns {ibc.core.channel.v1.Packet} Packet + * @returns {ibc.applications.transfer.v1.QueryDenomTracesResponse} QueryDenomTracesResponse */ - Packet.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.channel.v1.Packet) + QueryDenomTracesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.transfer.v1.QueryDenomTracesResponse) return object; - var message = new $root.ibc.core.channel.v1.Packet(); - if (object.sequence != null) - if ($util.Long) - (message.sequence = $util.Long.fromValue(object.sequence)).unsigned = true; - else if (typeof object.sequence === "string") - message.sequence = parseInt(object.sequence, 10); - else if (typeof object.sequence === "number") - message.sequence = object.sequence; - else if (typeof object.sequence === "object") - message.sequence = new $util.LongBits(object.sequence.low >>> 0, object.sequence.high >>> 0).toNumber(true); - if (object.source_port != null) - message.source_port = String(object.source_port); - if (object.source_channel != null) - message.source_channel = String(object.source_channel); - if (object.destination_port != null) - message.destination_port = String(object.destination_port); - if (object.destination_channel != null) - message.destination_channel = String(object.destination_channel); - if (object.data != null) - if (typeof object.data === "string") - $util.base64.decode(object.data, message.data = $util.newBuffer($util.base64.length(object.data)), 0); - else if (object.data.length) - message.data = object.data; - if (object.timeout_height != null) { - if (typeof object.timeout_height !== "object") - throw TypeError(".ibc.core.channel.v1.Packet.timeout_height: object expected"); - message.timeout_height = $root.ibc.core.client.v1.Height.fromObject(object.timeout_height); + var message = new $root.ibc.applications.transfer.v1.QueryDenomTracesResponse(); + if (object.denom_traces) { + if (!Array.isArray(object.denom_traces)) + throw TypeError(".ibc.applications.transfer.v1.QueryDenomTracesResponse.denom_traces: array expected"); + message.denom_traces = []; + for (var i = 0; i < object.denom_traces.length; ++i) { + if (typeof object.denom_traces[i] !== "object") + throw TypeError(".ibc.applications.transfer.v1.QueryDenomTracesResponse.denom_traces: object expected"); + message.denom_traces[i] = $root.ibc.applications.transfer.v1.DenomTrace.fromObject(object.denom_traces[i]); + } + } + if (object.pagination != null) { + if (typeof object.pagination !== "object") + throw TypeError(".ibc.applications.transfer.v1.QueryDenomTracesResponse.pagination: object expected"); + message.pagination = $root.cosmos.base.query.v1beta1.PageResponse.fromObject(object.pagination); + } + return message; + }; + + /** + * Creates a plain object from a QueryDenomTracesResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof ibc.applications.transfer.v1.QueryDenomTracesResponse + * @static + * @param {ibc.applications.transfer.v1.QueryDenomTracesResponse} message QueryDenomTracesResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + QueryDenomTracesResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.denom_traces = []; + if (options.defaults) + object.pagination = null; + if (message.denom_traces && message.denom_traces.length) { + object.denom_traces = []; + for (var j = 0; j < message.denom_traces.length; ++j) + object.denom_traces[j] = $root.ibc.applications.transfer.v1.DenomTrace.toObject(message.denom_traces[j], options); + } + if (message.pagination != null && message.hasOwnProperty("pagination")) + object.pagination = $root.cosmos.base.query.v1beta1.PageResponse.toObject(message.pagination, options); + return object; + }; + + /** + * Converts this QueryDenomTracesResponse to JSON. + * @function toJSON + * @memberof ibc.applications.transfer.v1.QueryDenomTracesResponse + * @instance + * @returns {Object.} JSON object + */ + QueryDenomTracesResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return QueryDenomTracesResponse; + })(); + + v1.QueryParamsRequest = (function() { + + /** + * Properties of a QueryParamsRequest. + * @memberof ibc.applications.transfer.v1 + * @interface IQueryParamsRequest + */ + + /** + * Constructs a new QueryParamsRequest. + * @memberof ibc.applications.transfer.v1 + * @classdesc Represents a QueryParamsRequest. + * @implements IQueryParamsRequest + * @constructor + * @param {ibc.applications.transfer.v1.IQueryParamsRequest=} [properties] Properties to set + */ + function QueryParamsRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Encodes the specified QueryParamsRequest message. Does not implicitly {@link ibc.applications.transfer.v1.QueryParamsRequest.verify|verify} messages. + * @function encode + * @memberof ibc.applications.transfer.v1.QueryParamsRequest + * @static + * @param {ibc.applications.transfer.v1.IQueryParamsRequest} message QueryParamsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + QueryParamsRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Encodes the specified QueryParamsRequest message, length delimited. Does not implicitly {@link ibc.applications.transfer.v1.QueryParamsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof ibc.applications.transfer.v1.QueryParamsRequest + * @static + * @param {ibc.applications.transfer.v1.IQueryParamsRequest} message QueryParamsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + QueryParamsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a QueryParamsRequest message from the specified reader or buffer. + * @function decode + * @memberof ibc.applications.transfer.v1.QueryParamsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {ibc.applications.transfer.v1.QueryParamsRequest} QueryParamsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + QueryParamsRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.transfer.v1.QueryParamsRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } } - if (object.timeout_timestamp != null) - if ($util.Long) - (message.timeout_timestamp = $util.Long.fromValue(object.timeout_timestamp)).unsigned = true; - else if (typeof object.timeout_timestamp === "string") - message.timeout_timestamp = parseInt(object.timeout_timestamp, 10); - else if (typeof object.timeout_timestamp === "number") - message.timeout_timestamp = object.timeout_timestamp; - else if (typeof object.timeout_timestamp === "object") - message.timeout_timestamp = new $util.LongBits(object.timeout_timestamp.low >>> 0, object.timeout_timestamp.high >>> 0).toNumber(true); return message; }; /** - * Creates a plain object from a Packet message. Also converts values to other types if specified. + * Decodes a QueryParamsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof ibc.applications.transfer.v1.QueryParamsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {ibc.applications.transfer.v1.QueryParamsRequest} QueryParamsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + QueryParamsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a QueryParamsRequest message. + * @function verify + * @memberof ibc.applications.transfer.v1.QueryParamsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + QueryParamsRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + /** + * Creates a QueryParamsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof ibc.applications.transfer.v1.QueryParamsRequest + * @static + * @param {Object.} object Plain object + * @returns {ibc.applications.transfer.v1.QueryParamsRequest} QueryParamsRequest + */ + QueryParamsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.transfer.v1.QueryParamsRequest) + return object; + return new $root.ibc.applications.transfer.v1.QueryParamsRequest(); + }; + + /** + * Creates a plain object from a QueryParamsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.channel.v1.Packet + * @memberof ibc.applications.transfer.v1.QueryParamsRequest * @static - * @param {ibc.core.channel.v1.Packet} message Packet + * @param {ibc.applications.transfer.v1.QueryParamsRequest} message QueryParamsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Packet.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - if ($util.Long) { - var long = new $util.Long(0, 0, true); - object.sequence = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.sequence = options.longs === String ? "0" : 0; - object.source_port = ""; - object.source_channel = ""; - object.destination_port = ""; - object.destination_channel = ""; - if (options.bytes === String) - object.data = ""; - else { - object.data = []; - if (options.bytes !== Array) - object.data = $util.newBuffer(object.data); - } - object.timeout_height = null; - if ($util.Long) { - var long = new $util.Long(0, 0, true); - object.timeout_timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.timeout_timestamp = options.longs === String ? "0" : 0; - } - if (message.sequence != null && message.hasOwnProperty("sequence")) - if (typeof message.sequence === "number") - object.sequence = options.longs === String ? String(message.sequence) : message.sequence; - else - object.sequence = options.longs === String ? $util.Long.prototype.toString.call(message.sequence) : options.longs === Number ? new $util.LongBits(message.sequence.low >>> 0, message.sequence.high >>> 0).toNumber(true) : message.sequence; - if (message.source_port != null && message.hasOwnProperty("source_port")) - object.source_port = message.source_port; - if (message.source_channel != null && message.hasOwnProperty("source_channel")) - object.source_channel = message.source_channel; - if (message.destination_port != null && message.hasOwnProperty("destination_port")) - object.destination_port = message.destination_port; - if (message.destination_channel != null && message.hasOwnProperty("destination_channel")) - object.destination_channel = message.destination_channel; - if (message.data != null && message.hasOwnProperty("data")) - object.data = options.bytes === String ? $util.base64.encode(message.data, 0, message.data.length) : options.bytes === Array ? Array.prototype.slice.call(message.data) : message.data; - if (message.timeout_height != null && message.hasOwnProperty("timeout_height")) - object.timeout_height = $root.ibc.core.client.v1.Height.toObject(message.timeout_height, options); - if (message.timeout_timestamp != null && message.hasOwnProperty("timeout_timestamp")) - if (typeof message.timeout_timestamp === "number") - object.timeout_timestamp = options.longs === String ? String(message.timeout_timestamp) : message.timeout_timestamp; - else - object.timeout_timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timeout_timestamp) : options.longs === Number ? new $util.LongBits(message.timeout_timestamp.low >>> 0, message.timeout_timestamp.high >>> 0).toNumber(true) : message.timeout_timestamp; - return object; + QueryParamsRequest.toObject = function toObject() { + return {}; }; /** - * Converts this Packet to JSON. + * Converts this QueryParamsRequest to JSON. * @function toJSON - * @memberof ibc.core.channel.v1.Packet + * @memberof ibc.applications.transfer.v1.QueryParamsRequest * @instance * @returns {Object.} JSON object */ - Packet.prototype.toJSON = function toJSON() { + QueryParamsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Packet; + return QueryParamsRequest; })(); - v1.PacketState = (function() { + v1.QueryParamsResponse = (function() { /** - * Properties of a PacketState. - * @memberof ibc.core.channel.v1 - * @interface IPacketState - * @property {string|null} [port_id] PacketState port_id - * @property {string|null} [channel_id] PacketState channel_id - * @property {Long|null} [sequence] PacketState sequence - * @property {Uint8Array|null} [data] PacketState data + * Properties of a QueryParamsResponse. + * @memberof ibc.applications.transfer.v1 + * @interface IQueryParamsResponse + * @property {ibc.applications.transfer.v1.IParams|null} [params] QueryParamsResponse params */ /** - * Constructs a new PacketState. - * @memberof ibc.core.channel.v1 - * @classdesc Represents a PacketState. - * @implements IPacketState + * Constructs a new QueryParamsResponse. + * @memberof ibc.applications.transfer.v1 + * @classdesc Represents a QueryParamsResponse. + * @implements IQueryParamsResponse * @constructor - * @param {ibc.core.channel.v1.IPacketState=} [properties] Properties to set + * @param {ibc.applications.transfer.v1.IQueryParamsResponse=} [properties] Properties to set */ - function PacketState(properties) { + function QueryParamsResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -35534,102 +42340,63 @@ } /** - * PacketState port_id. - * @member {string} port_id - * @memberof ibc.core.channel.v1.PacketState - * @instance - */ - PacketState.prototype.port_id = ""; - - /** - * PacketState channel_id. - * @member {string} channel_id - * @memberof ibc.core.channel.v1.PacketState - * @instance - */ - PacketState.prototype.channel_id = ""; - - /** - * PacketState sequence. - * @member {Long} sequence - * @memberof ibc.core.channel.v1.PacketState - * @instance - */ - PacketState.prototype.sequence = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * PacketState data. - * @member {Uint8Array} data - * @memberof ibc.core.channel.v1.PacketState + * QueryParamsResponse params. + * @member {ibc.applications.transfer.v1.IParams|null|undefined} params + * @memberof ibc.applications.transfer.v1.QueryParamsResponse * @instance */ - PacketState.prototype.data = $util.newBuffer([]); + QueryParamsResponse.prototype.params = null; /** - * Encodes the specified PacketState message. Does not implicitly {@link ibc.core.channel.v1.PacketState.verify|verify} messages. + * Encodes the specified QueryParamsResponse message. Does not implicitly {@link ibc.applications.transfer.v1.QueryParamsResponse.verify|verify} messages. * @function encode - * @memberof ibc.core.channel.v1.PacketState + * @memberof ibc.applications.transfer.v1.QueryParamsResponse * @static - * @param {ibc.core.channel.v1.IPacketState} message PacketState message or plain object to encode + * @param {ibc.applications.transfer.v1.IQueryParamsResponse} message QueryParamsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PacketState.encode = function encode(message, writer) { + QueryParamsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.port_id != null && Object.hasOwnProperty.call(message, "port_id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.port_id); - if (message.channel_id != null && Object.hasOwnProperty.call(message, "channel_id")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.channel_id); - if (message.sequence != null && Object.hasOwnProperty.call(message, "sequence")) - writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.sequence); - if (message.data != null && Object.hasOwnProperty.call(message, "data")) - writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.data); + if (message.params != null && Object.hasOwnProperty.call(message, "params")) + $root.ibc.applications.transfer.v1.Params.encode(message.params, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified PacketState message, length delimited. Does not implicitly {@link ibc.core.channel.v1.PacketState.verify|verify} messages. + * Encodes the specified QueryParamsResponse message, length delimited. Does not implicitly {@link ibc.applications.transfer.v1.QueryParamsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.channel.v1.PacketState + * @memberof ibc.applications.transfer.v1.QueryParamsResponse * @static - * @param {ibc.core.channel.v1.IPacketState} message PacketState message or plain object to encode + * @param {ibc.applications.transfer.v1.IQueryParamsResponse} message QueryParamsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PacketState.encodeDelimited = function encodeDelimited(message, writer) { + QueryParamsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PacketState message from the specified reader or buffer. + * Decodes a QueryParamsResponse message from the specified reader or buffer. * @function decode - * @memberof ibc.core.channel.v1.PacketState + * @memberof ibc.applications.transfer.v1.QueryParamsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.channel.v1.PacketState} PacketState + * @returns {ibc.applications.transfer.v1.QueryParamsResponse} QueryParamsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PacketState.decode = function decode(reader, length) { + QueryParamsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.PacketState(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.transfer.v1.QueryParamsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.port_id = reader.string(); - break; - case 2: - message.channel_id = reader.string(); - break; - case 3: - message.sequence = reader.uint64(); - break; - case 4: - message.data = reader.bytes(); + message.params = $root.ibc.applications.transfer.v1.Params.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -35640,157 +42407,112 @@ }; /** - * Decodes a PacketState message from the specified reader or buffer, length delimited. + * Decodes a QueryParamsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.channel.v1.PacketState + * @memberof ibc.applications.transfer.v1.QueryParamsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.channel.v1.PacketState} PacketState + * @returns {ibc.applications.transfer.v1.QueryParamsResponse} QueryParamsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PacketState.decodeDelimited = function decodeDelimited(reader) { + QueryParamsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PacketState message. + * Verifies a QueryParamsResponse message. * @function verify - * @memberof ibc.core.channel.v1.PacketState + * @memberof ibc.applications.transfer.v1.QueryParamsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PacketState.verify = function verify(message) { + QueryParamsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.port_id != null && message.hasOwnProperty("port_id")) - if (!$util.isString(message.port_id)) - return "port_id: string expected"; - if (message.channel_id != null && message.hasOwnProperty("channel_id")) - if (!$util.isString(message.channel_id)) - return "channel_id: string expected"; - if (message.sequence != null && message.hasOwnProperty("sequence")) - if (!$util.isInteger(message.sequence) && !(message.sequence && $util.isInteger(message.sequence.low) && $util.isInteger(message.sequence.high))) - return "sequence: integer|Long expected"; - if (message.data != null && message.hasOwnProperty("data")) - if (!(message.data && typeof message.data.length === "number" || $util.isString(message.data))) - return "data: buffer expected"; + if (message.params != null && message.hasOwnProperty("params")) { + var error = $root.ibc.applications.transfer.v1.Params.verify(message.params); + if (error) + return "params." + error; + } return null; }; /** - * Creates a PacketState message from a plain object. Also converts values to their respective internal types. + * Creates a QueryParamsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.channel.v1.PacketState + * @memberof ibc.applications.transfer.v1.QueryParamsResponse * @static * @param {Object.} object Plain object - * @returns {ibc.core.channel.v1.PacketState} PacketState + * @returns {ibc.applications.transfer.v1.QueryParamsResponse} QueryParamsResponse */ - PacketState.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.channel.v1.PacketState) + QueryParamsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.transfer.v1.QueryParamsResponse) return object; - var message = new $root.ibc.core.channel.v1.PacketState(); - if (object.port_id != null) - message.port_id = String(object.port_id); - if (object.channel_id != null) - message.channel_id = String(object.channel_id); - if (object.sequence != null) - if ($util.Long) - (message.sequence = $util.Long.fromValue(object.sequence)).unsigned = true; - else if (typeof object.sequence === "string") - message.sequence = parseInt(object.sequence, 10); - else if (typeof object.sequence === "number") - message.sequence = object.sequence; - else if (typeof object.sequence === "object") - message.sequence = new $util.LongBits(object.sequence.low >>> 0, object.sequence.high >>> 0).toNumber(true); - if (object.data != null) - if (typeof object.data === "string") - $util.base64.decode(object.data, message.data = $util.newBuffer($util.base64.length(object.data)), 0); - else if (object.data.length) - message.data = object.data; + var message = new $root.ibc.applications.transfer.v1.QueryParamsResponse(); + if (object.params != null) { + if (typeof object.params !== "object") + throw TypeError(".ibc.applications.transfer.v1.QueryParamsResponse.params: object expected"); + message.params = $root.ibc.applications.transfer.v1.Params.fromObject(object.params); + } return message; }; /** - * Creates a plain object from a PacketState message. Also converts values to other types if specified. + * Creates a plain object from a QueryParamsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.channel.v1.PacketState + * @memberof ibc.applications.transfer.v1.QueryParamsResponse * @static - * @param {ibc.core.channel.v1.PacketState} message PacketState + * @param {ibc.applications.transfer.v1.QueryParamsResponse} message QueryParamsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PacketState.toObject = function toObject(message, options) { + QueryParamsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.port_id = ""; - object.channel_id = ""; - if ($util.Long) { - var long = new $util.Long(0, 0, true); - object.sequence = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.sequence = options.longs === String ? "0" : 0; - if (options.bytes === String) - object.data = ""; - else { - object.data = []; - if (options.bytes !== Array) - object.data = $util.newBuffer(object.data); - } - } - if (message.port_id != null && message.hasOwnProperty("port_id")) - object.port_id = message.port_id; - if (message.channel_id != null && message.hasOwnProperty("channel_id")) - object.channel_id = message.channel_id; - if (message.sequence != null && message.hasOwnProperty("sequence")) - if (typeof message.sequence === "number") - object.sequence = options.longs === String ? String(message.sequence) : message.sequence; - else - object.sequence = options.longs === String ? $util.Long.prototype.toString.call(message.sequence) : options.longs === Number ? new $util.LongBits(message.sequence.low >>> 0, message.sequence.high >>> 0).toNumber(true) : message.sequence; - if (message.data != null && message.hasOwnProperty("data")) - object.data = options.bytes === String ? $util.base64.encode(message.data, 0, message.data.length) : options.bytes === Array ? Array.prototype.slice.call(message.data) : message.data; + if (options.defaults) + object.params = null; + if (message.params != null && message.hasOwnProperty("params")) + object.params = $root.ibc.applications.transfer.v1.Params.toObject(message.params, options); return object; }; /** - * Converts this PacketState to JSON. + * Converts this QueryParamsResponse to JSON. * @function toJSON - * @memberof ibc.core.channel.v1.PacketState + * @memberof ibc.applications.transfer.v1.QueryParamsResponse * @instance * @returns {Object.} JSON object */ - PacketState.prototype.toJSON = function toJSON() { + QueryParamsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return PacketState; + return QueryParamsResponse; })(); - v1.PacketId = (function() { + v1.QueryDenomHashRequest = (function() { /** - * Properties of a PacketId. - * @memberof ibc.core.channel.v1 - * @interface IPacketId - * @property {string|null} [port_id] PacketId port_id - * @property {string|null} [channel_id] PacketId channel_id - * @property {Long|null} [sequence] PacketId sequence + * Properties of a QueryDenomHashRequest. + * @memberof ibc.applications.transfer.v1 + * @interface IQueryDenomHashRequest + * @property {string|null} [trace] QueryDenomHashRequest trace */ /** - * Constructs a new PacketId. - * @memberof ibc.core.channel.v1 - * @classdesc Represents a PacketId. - * @implements IPacketId + * Constructs a new QueryDenomHashRequest. + * @memberof ibc.applications.transfer.v1 + * @classdesc Represents a QueryDenomHashRequest. + * @implements IQueryDenomHashRequest * @constructor - * @param {ibc.core.channel.v1.IPacketId=} [properties] Properties to set + * @param {ibc.applications.transfer.v1.IQueryDenomHashRequest=} [properties] Properties to set */ - function PacketId(properties) { + function QueryDenomHashRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -35798,89 +42520,63 @@ } /** - * PacketId port_id. - * @member {string} port_id - * @memberof ibc.core.channel.v1.PacketId - * @instance - */ - PacketId.prototype.port_id = ""; - - /** - * PacketId channel_id. - * @member {string} channel_id - * @memberof ibc.core.channel.v1.PacketId - * @instance - */ - PacketId.prototype.channel_id = ""; - - /** - * PacketId sequence. - * @member {Long} sequence - * @memberof ibc.core.channel.v1.PacketId + * QueryDenomHashRequest trace. + * @member {string} trace + * @memberof ibc.applications.transfer.v1.QueryDenomHashRequest * @instance */ - PacketId.prototype.sequence = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + QueryDenomHashRequest.prototype.trace = ""; /** - * Encodes the specified PacketId message. Does not implicitly {@link ibc.core.channel.v1.PacketId.verify|verify} messages. + * Encodes the specified QueryDenomHashRequest message. Does not implicitly {@link ibc.applications.transfer.v1.QueryDenomHashRequest.verify|verify} messages. * @function encode - * @memberof ibc.core.channel.v1.PacketId + * @memberof ibc.applications.transfer.v1.QueryDenomHashRequest * @static - * @param {ibc.core.channel.v1.IPacketId} message PacketId message or plain object to encode + * @param {ibc.applications.transfer.v1.IQueryDenomHashRequest} message QueryDenomHashRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PacketId.encode = function encode(message, writer) { + QueryDenomHashRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.port_id != null && Object.hasOwnProperty.call(message, "port_id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.port_id); - if (message.channel_id != null && Object.hasOwnProperty.call(message, "channel_id")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.channel_id); - if (message.sequence != null && Object.hasOwnProperty.call(message, "sequence")) - writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.sequence); + if (message.trace != null && Object.hasOwnProperty.call(message, "trace")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.trace); return writer; }; /** - * Encodes the specified PacketId message, length delimited. Does not implicitly {@link ibc.core.channel.v1.PacketId.verify|verify} messages. + * Encodes the specified QueryDenomHashRequest message, length delimited. Does not implicitly {@link ibc.applications.transfer.v1.QueryDenomHashRequest.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.channel.v1.PacketId + * @memberof ibc.applications.transfer.v1.QueryDenomHashRequest * @static - * @param {ibc.core.channel.v1.IPacketId} message PacketId message or plain object to encode + * @param {ibc.applications.transfer.v1.IQueryDenomHashRequest} message QueryDenomHashRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PacketId.encodeDelimited = function encodeDelimited(message, writer) { + QueryDenomHashRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PacketId message from the specified reader or buffer. + * Decodes a QueryDenomHashRequest message from the specified reader or buffer. * @function decode - * @memberof ibc.core.channel.v1.PacketId + * @memberof ibc.applications.transfer.v1.QueryDenomHashRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.channel.v1.PacketId} PacketId + * @returns {ibc.applications.transfer.v1.QueryDenomHashRequest} QueryDenomHashRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PacketId.decode = function decode(reader, length) { + QueryDenomHashRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.PacketId(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.transfer.v1.QueryDenomHashRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.port_id = reader.string(); - break; - case 2: - message.channel_id = reader.string(); - break; - case 3: - message.sequence = reader.uint64(); + message.trace = reader.string(); break; default: reader.skipType(tag & 7); @@ -35891,139 +42587,107 @@ }; /** - * Decodes a PacketId message from the specified reader or buffer, length delimited. + * Decodes a QueryDenomHashRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.channel.v1.PacketId + * @memberof ibc.applications.transfer.v1.QueryDenomHashRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.channel.v1.PacketId} PacketId + * @returns {ibc.applications.transfer.v1.QueryDenomHashRequest} QueryDenomHashRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PacketId.decodeDelimited = function decodeDelimited(reader) { + QueryDenomHashRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PacketId message. + * Verifies a QueryDenomHashRequest message. * @function verify - * @memberof ibc.core.channel.v1.PacketId + * @memberof ibc.applications.transfer.v1.QueryDenomHashRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PacketId.verify = function verify(message) { + QueryDenomHashRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.port_id != null && message.hasOwnProperty("port_id")) - if (!$util.isString(message.port_id)) - return "port_id: string expected"; - if (message.channel_id != null && message.hasOwnProperty("channel_id")) - if (!$util.isString(message.channel_id)) - return "channel_id: string expected"; - if (message.sequence != null && message.hasOwnProperty("sequence")) - if (!$util.isInteger(message.sequence) && !(message.sequence && $util.isInteger(message.sequence.low) && $util.isInteger(message.sequence.high))) - return "sequence: integer|Long expected"; + if (message.trace != null && message.hasOwnProperty("trace")) + if (!$util.isString(message.trace)) + return "trace: string expected"; return null; }; /** - * Creates a PacketId message from a plain object. Also converts values to their respective internal types. + * Creates a QueryDenomHashRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.channel.v1.PacketId + * @memberof ibc.applications.transfer.v1.QueryDenomHashRequest * @static * @param {Object.} object Plain object - * @returns {ibc.core.channel.v1.PacketId} PacketId + * @returns {ibc.applications.transfer.v1.QueryDenomHashRequest} QueryDenomHashRequest */ - PacketId.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.channel.v1.PacketId) + QueryDenomHashRequest.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.transfer.v1.QueryDenomHashRequest) return object; - var message = new $root.ibc.core.channel.v1.PacketId(); - if (object.port_id != null) - message.port_id = String(object.port_id); - if (object.channel_id != null) - message.channel_id = String(object.channel_id); - if (object.sequence != null) - if ($util.Long) - (message.sequence = $util.Long.fromValue(object.sequence)).unsigned = true; - else if (typeof object.sequence === "string") - message.sequence = parseInt(object.sequence, 10); - else if (typeof object.sequence === "number") - message.sequence = object.sequence; - else if (typeof object.sequence === "object") - message.sequence = new $util.LongBits(object.sequence.low >>> 0, object.sequence.high >>> 0).toNumber(true); + var message = new $root.ibc.applications.transfer.v1.QueryDenomHashRequest(); + if (object.trace != null) + message.trace = String(object.trace); return message; }; /** - * Creates a plain object from a PacketId message. Also converts values to other types if specified. + * Creates a plain object from a QueryDenomHashRequest message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.channel.v1.PacketId + * @memberof ibc.applications.transfer.v1.QueryDenomHashRequest * @static - * @param {ibc.core.channel.v1.PacketId} message PacketId + * @param {ibc.applications.transfer.v1.QueryDenomHashRequest} message QueryDenomHashRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PacketId.toObject = function toObject(message, options) { + QueryDenomHashRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.port_id = ""; - object.channel_id = ""; - if ($util.Long) { - var long = new $util.Long(0, 0, true); - object.sequence = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.sequence = options.longs === String ? "0" : 0; - } - if (message.port_id != null && message.hasOwnProperty("port_id")) - object.port_id = message.port_id; - if (message.channel_id != null && message.hasOwnProperty("channel_id")) - object.channel_id = message.channel_id; - if (message.sequence != null && message.hasOwnProperty("sequence")) - if (typeof message.sequence === "number") - object.sequence = options.longs === String ? String(message.sequence) : message.sequence; - else - object.sequence = options.longs === String ? $util.Long.prototype.toString.call(message.sequence) : options.longs === Number ? new $util.LongBits(message.sequence.low >>> 0, message.sequence.high >>> 0).toNumber(true) : message.sequence; + if (options.defaults) + object.trace = ""; + if (message.trace != null && message.hasOwnProperty("trace")) + object.trace = message.trace; return object; }; /** - * Converts this PacketId to JSON. + * Converts this QueryDenomHashRequest to JSON. * @function toJSON - * @memberof ibc.core.channel.v1.PacketId + * @memberof ibc.applications.transfer.v1.QueryDenomHashRequest * @instance * @returns {Object.} JSON object */ - PacketId.prototype.toJSON = function toJSON() { + QueryDenomHashRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return PacketId; + return QueryDenomHashRequest; })(); - v1.Acknowledgement = (function() { + v1.QueryDenomHashResponse = (function() { /** - * Properties of an Acknowledgement. - * @memberof ibc.core.channel.v1 - * @interface IAcknowledgement - * @property {Uint8Array|null} [result] Acknowledgement result - * @property {string|null} [error] Acknowledgement error + * Properties of a QueryDenomHashResponse. + * @memberof ibc.applications.transfer.v1 + * @interface IQueryDenomHashResponse + * @property {string|null} [hash] QueryDenomHashResponse hash */ /** - * Constructs a new Acknowledgement. - * @memberof ibc.core.channel.v1 - * @classdesc Represents an Acknowledgement. - * @implements IAcknowledgement + * Constructs a new QueryDenomHashResponse. + * @memberof ibc.applications.transfer.v1 + * @classdesc Represents a QueryDenomHashResponse. + * @implements IQueryDenomHashResponse * @constructor - * @param {ibc.core.channel.v1.IAcknowledgement=} [properties] Properties to set + * @param {ibc.applications.transfer.v1.IQueryDenomHashResponse=} [properties] Properties to set */ - function Acknowledgement(properties) { + function QueryDenomHashResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -36031,90 +42695,63 @@ } /** - * Acknowledgement result. - * @member {Uint8Array|null|undefined} result - * @memberof ibc.core.channel.v1.Acknowledgement - * @instance - */ - Acknowledgement.prototype.result = null; - - /** - * Acknowledgement error. - * @member {string|null|undefined} error - * @memberof ibc.core.channel.v1.Acknowledgement - * @instance - */ - Acknowledgement.prototype.error = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * Acknowledgement response. - * @member {"result"|"error"|undefined} response - * @memberof ibc.core.channel.v1.Acknowledgement + * QueryDenomHashResponse hash. + * @member {string} hash + * @memberof ibc.applications.transfer.v1.QueryDenomHashResponse * @instance */ - Object.defineProperty(Acknowledgement.prototype, "response", { - get: $util.oneOfGetter($oneOfFields = ["result", "error"]), - set: $util.oneOfSetter($oneOfFields) - }); + QueryDenomHashResponse.prototype.hash = ""; /** - * Encodes the specified Acknowledgement message. Does not implicitly {@link ibc.core.channel.v1.Acknowledgement.verify|verify} messages. + * Encodes the specified QueryDenomHashResponse message. Does not implicitly {@link ibc.applications.transfer.v1.QueryDenomHashResponse.verify|verify} messages. * @function encode - * @memberof ibc.core.channel.v1.Acknowledgement + * @memberof ibc.applications.transfer.v1.QueryDenomHashResponse * @static - * @param {ibc.core.channel.v1.IAcknowledgement} message Acknowledgement message or plain object to encode + * @param {ibc.applications.transfer.v1.IQueryDenomHashResponse} message QueryDenomHashResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Acknowledgement.encode = function encode(message, writer) { + QueryDenomHashResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.result != null && Object.hasOwnProperty.call(message, "result")) - writer.uint32(/* id 21, wireType 2 =*/170).bytes(message.result); - if (message.error != null && Object.hasOwnProperty.call(message, "error")) - writer.uint32(/* id 22, wireType 2 =*/178).string(message.error); + if (message.hash != null && Object.hasOwnProperty.call(message, "hash")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.hash); return writer; }; /** - * Encodes the specified Acknowledgement message, length delimited. Does not implicitly {@link ibc.core.channel.v1.Acknowledgement.verify|verify} messages. + * Encodes the specified QueryDenomHashResponse message, length delimited. Does not implicitly {@link ibc.applications.transfer.v1.QueryDenomHashResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.channel.v1.Acknowledgement + * @memberof ibc.applications.transfer.v1.QueryDenomHashResponse * @static - * @param {ibc.core.channel.v1.IAcknowledgement} message Acknowledgement message or plain object to encode + * @param {ibc.applications.transfer.v1.IQueryDenomHashResponse} message QueryDenomHashResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Acknowledgement.encodeDelimited = function encodeDelimited(message, writer) { + QueryDenomHashResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an Acknowledgement message from the specified reader or buffer. + * Decodes a QueryDenomHashResponse message from the specified reader or buffer. * @function decode - * @memberof ibc.core.channel.v1.Acknowledgement + * @memberof ibc.applications.transfer.v1.QueryDenomHashResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.channel.v1.Acknowledgement} Acknowledgement + * @returns {ibc.applications.transfer.v1.QueryDenomHashResponse} QueryDenomHashResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Acknowledgement.decode = function decode(reader, length) { + QueryDenomHashResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.Acknowledgement(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.transfer.v1.QueryDenomHashResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 21: - message.result = reader.bytes(); - break; - case 22: - message.error = reader.string(); + case 1: + message.hash = reader.string(); break; default: reader.skipType(tag & 7); @@ -36125,497 +42762,108 @@ }; /** - * Decodes an Acknowledgement message from the specified reader or buffer, length delimited. + * Decodes a QueryDenomHashResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.channel.v1.Acknowledgement + * @memberof ibc.applications.transfer.v1.QueryDenomHashResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.channel.v1.Acknowledgement} Acknowledgement + * @returns {ibc.applications.transfer.v1.QueryDenomHashResponse} QueryDenomHashResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Acknowledgement.decodeDelimited = function decodeDelimited(reader) { + QueryDenomHashResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an Acknowledgement message. + * Verifies a QueryDenomHashResponse message. * @function verify - * @memberof ibc.core.channel.v1.Acknowledgement + * @memberof ibc.applications.transfer.v1.QueryDenomHashResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Acknowledgement.verify = function verify(message) { + QueryDenomHashResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.result != null && message.hasOwnProperty("result")) { - properties.response = 1; - if (!(message.result && typeof message.result.length === "number" || $util.isString(message.result))) - return "result: buffer expected"; - } - if (message.error != null && message.hasOwnProperty("error")) { - if (properties.response === 1) - return "response: multiple values"; - properties.response = 1; - if (!$util.isString(message.error)) - return "error: string expected"; - } + if (message.hash != null && message.hasOwnProperty("hash")) + if (!$util.isString(message.hash)) + return "hash: string expected"; return null; }; /** - * Creates an Acknowledgement message from a plain object. Also converts values to their respective internal types. + * Creates a QueryDenomHashResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.channel.v1.Acknowledgement + * @memberof ibc.applications.transfer.v1.QueryDenomHashResponse * @static * @param {Object.} object Plain object - * @returns {ibc.core.channel.v1.Acknowledgement} Acknowledgement + * @returns {ibc.applications.transfer.v1.QueryDenomHashResponse} QueryDenomHashResponse */ - Acknowledgement.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.channel.v1.Acknowledgement) + QueryDenomHashResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.transfer.v1.QueryDenomHashResponse) return object; - var message = new $root.ibc.core.channel.v1.Acknowledgement(); - if (object.result != null) - if (typeof object.result === "string") - $util.base64.decode(object.result, message.result = $util.newBuffer($util.base64.length(object.result)), 0); - else if (object.result.length) - message.result = object.result; - if (object.error != null) - message.error = String(object.error); + var message = new $root.ibc.applications.transfer.v1.QueryDenomHashResponse(); + if (object.hash != null) + message.hash = String(object.hash); return message; }; /** - * Creates a plain object from an Acknowledgement message. Also converts values to other types if specified. + * Creates a plain object from a QueryDenomHashResponse message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.channel.v1.Acknowledgement + * @memberof ibc.applications.transfer.v1.QueryDenomHashResponse * @static - * @param {ibc.core.channel.v1.Acknowledgement} message Acknowledgement + * @param {ibc.applications.transfer.v1.QueryDenomHashResponse} message QueryDenomHashResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Acknowledgement.toObject = function toObject(message, options) { + QueryDenomHashResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (message.result != null && message.hasOwnProperty("result")) { - object.result = options.bytes === String ? $util.base64.encode(message.result, 0, message.result.length) : options.bytes === Array ? Array.prototype.slice.call(message.result) : message.result; - if (options.oneofs) - object.response = "result"; - } - if (message.error != null && message.hasOwnProperty("error")) { - object.error = message.error; - if (options.oneofs) - object.response = "error"; - } + if (options.defaults) + object.hash = ""; + if (message.hash != null && message.hasOwnProperty("hash")) + object.hash = message.hash; return object; }; - - /** - * Converts this Acknowledgement to JSON. - * @function toJSON - * @memberof ibc.core.channel.v1.Acknowledgement - * @instance - * @returns {Object.} JSON object - */ - Acknowledgement.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return Acknowledgement; - })(); - - v1.Msg = (function() { - - /** - * Constructs a new Msg service. - * @memberof ibc.core.channel.v1 - * @classdesc Represents a Msg - * @extends $protobuf.rpc.Service - * @constructor - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - */ - function Msg(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } - - (Msg.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Msg; - - /** - * Callback as used by {@link ibc.core.channel.v1.Msg#channelOpenInit}. - * @memberof ibc.core.channel.v1.Msg - * @typedef ChannelOpenInitCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.core.channel.v1.MsgChannelOpenInitResponse} [response] MsgChannelOpenInitResponse - */ - - /** - * Calls ChannelOpenInit. - * @function channelOpenInit - * @memberof ibc.core.channel.v1.Msg - * @instance - * @param {ibc.core.channel.v1.IMsgChannelOpenInit} request MsgChannelOpenInit message or plain object - * @param {ibc.core.channel.v1.Msg.ChannelOpenInitCallback} callback Node-style callback called with the error, if any, and MsgChannelOpenInitResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Msg.prototype.channelOpenInit = function channelOpenInit(request, callback) { - return this.rpcCall(channelOpenInit, $root.ibc.core.channel.v1.MsgChannelOpenInit, $root.ibc.core.channel.v1.MsgChannelOpenInitResponse, request, callback); - }, "name", { value: "ChannelOpenInit" }); - - /** - * Calls ChannelOpenInit. - * @function channelOpenInit - * @memberof ibc.core.channel.v1.Msg - * @instance - * @param {ibc.core.channel.v1.IMsgChannelOpenInit} request MsgChannelOpenInit message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link ibc.core.channel.v1.Msg#channelOpenTry}. - * @memberof ibc.core.channel.v1.Msg - * @typedef ChannelOpenTryCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.core.channel.v1.MsgChannelOpenTryResponse} [response] MsgChannelOpenTryResponse - */ - - /** - * Calls ChannelOpenTry. - * @function channelOpenTry - * @memberof ibc.core.channel.v1.Msg - * @instance - * @param {ibc.core.channel.v1.IMsgChannelOpenTry} request MsgChannelOpenTry message or plain object - * @param {ibc.core.channel.v1.Msg.ChannelOpenTryCallback} callback Node-style callback called with the error, if any, and MsgChannelOpenTryResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Msg.prototype.channelOpenTry = function channelOpenTry(request, callback) { - return this.rpcCall(channelOpenTry, $root.ibc.core.channel.v1.MsgChannelOpenTry, $root.ibc.core.channel.v1.MsgChannelOpenTryResponse, request, callback); - }, "name", { value: "ChannelOpenTry" }); - - /** - * Calls ChannelOpenTry. - * @function channelOpenTry - * @memberof ibc.core.channel.v1.Msg - * @instance - * @param {ibc.core.channel.v1.IMsgChannelOpenTry} request MsgChannelOpenTry message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link ibc.core.channel.v1.Msg#channelOpenAck}. - * @memberof ibc.core.channel.v1.Msg - * @typedef ChannelOpenAckCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.core.channel.v1.MsgChannelOpenAckResponse} [response] MsgChannelOpenAckResponse - */ - - /** - * Calls ChannelOpenAck. - * @function channelOpenAck - * @memberof ibc.core.channel.v1.Msg - * @instance - * @param {ibc.core.channel.v1.IMsgChannelOpenAck} request MsgChannelOpenAck message or plain object - * @param {ibc.core.channel.v1.Msg.ChannelOpenAckCallback} callback Node-style callback called with the error, if any, and MsgChannelOpenAckResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Msg.prototype.channelOpenAck = function channelOpenAck(request, callback) { - return this.rpcCall(channelOpenAck, $root.ibc.core.channel.v1.MsgChannelOpenAck, $root.ibc.core.channel.v1.MsgChannelOpenAckResponse, request, callback); - }, "name", { value: "ChannelOpenAck" }); - - /** - * Calls ChannelOpenAck. - * @function channelOpenAck - * @memberof ibc.core.channel.v1.Msg - * @instance - * @param {ibc.core.channel.v1.IMsgChannelOpenAck} request MsgChannelOpenAck message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link ibc.core.channel.v1.Msg#channelOpenConfirm}. - * @memberof ibc.core.channel.v1.Msg - * @typedef ChannelOpenConfirmCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.core.channel.v1.MsgChannelOpenConfirmResponse} [response] MsgChannelOpenConfirmResponse - */ - - /** - * Calls ChannelOpenConfirm. - * @function channelOpenConfirm - * @memberof ibc.core.channel.v1.Msg - * @instance - * @param {ibc.core.channel.v1.IMsgChannelOpenConfirm} request MsgChannelOpenConfirm message or plain object - * @param {ibc.core.channel.v1.Msg.ChannelOpenConfirmCallback} callback Node-style callback called with the error, if any, and MsgChannelOpenConfirmResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Msg.prototype.channelOpenConfirm = function channelOpenConfirm(request, callback) { - return this.rpcCall(channelOpenConfirm, $root.ibc.core.channel.v1.MsgChannelOpenConfirm, $root.ibc.core.channel.v1.MsgChannelOpenConfirmResponse, request, callback); - }, "name", { value: "ChannelOpenConfirm" }); - - /** - * Calls ChannelOpenConfirm. - * @function channelOpenConfirm - * @memberof ibc.core.channel.v1.Msg - * @instance - * @param {ibc.core.channel.v1.IMsgChannelOpenConfirm} request MsgChannelOpenConfirm message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link ibc.core.channel.v1.Msg#channelCloseInit}. - * @memberof ibc.core.channel.v1.Msg - * @typedef ChannelCloseInitCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.core.channel.v1.MsgChannelCloseInitResponse} [response] MsgChannelCloseInitResponse - */ - - /** - * Calls ChannelCloseInit. - * @function channelCloseInit - * @memberof ibc.core.channel.v1.Msg - * @instance - * @param {ibc.core.channel.v1.IMsgChannelCloseInit} request MsgChannelCloseInit message or plain object - * @param {ibc.core.channel.v1.Msg.ChannelCloseInitCallback} callback Node-style callback called with the error, if any, and MsgChannelCloseInitResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Msg.prototype.channelCloseInit = function channelCloseInit(request, callback) { - return this.rpcCall(channelCloseInit, $root.ibc.core.channel.v1.MsgChannelCloseInit, $root.ibc.core.channel.v1.MsgChannelCloseInitResponse, request, callback); - }, "name", { value: "ChannelCloseInit" }); - - /** - * Calls ChannelCloseInit. - * @function channelCloseInit - * @memberof ibc.core.channel.v1.Msg - * @instance - * @param {ibc.core.channel.v1.IMsgChannelCloseInit} request MsgChannelCloseInit message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link ibc.core.channel.v1.Msg#channelCloseConfirm}. - * @memberof ibc.core.channel.v1.Msg - * @typedef ChannelCloseConfirmCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.core.channel.v1.MsgChannelCloseConfirmResponse} [response] MsgChannelCloseConfirmResponse - */ - - /** - * Calls ChannelCloseConfirm. - * @function channelCloseConfirm - * @memberof ibc.core.channel.v1.Msg - * @instance - * @param {ibc.core.channel.v1.IMsgChannelCloseConfirm} request MsgChannelCloseConfirm message or plain object - * @param {ibc.core.channel.v1.Msg.ChannelCloseConfirmCallback} callback Node-style callback called with the error, if any, and MsgChannelCloseConfirmResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Msg.prototype.channelCloseConfirm = function channelCloseConfirm(request, callback) { - return this.rpcCall(channelCloseConfirm, $root.ibc.core.channel.v1.MsgChannelCloseConfirm, $root.ibc.core.channel.v1.MsgChannelCloseConfirmResponse, request, callback); - }, "name", { value: "ChannelCloseConfirm" }); - - /** - * Calls ChannelCloseConfirm. - * @function channelCloseConfirm - * @memberof ibc.core.channel.v1.Msg - * @instance - * @param {ibc.core.channel.v1.IMsgChannelCloseConfirm} request MsgChannelCloseConfirm message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link ibc.core.channel.v1.Msg#recvPacket}. - * @memberof ibc.core.channel.v1.Msg - * @typedef RecvPacketCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.core.channel.v1.MsgRecvPacketResponse} [response] MsgRecvPacketResponse - */ - - /** - * Calls RecvPacket. - * @function recvPacket - * @memberof ibc.core.channel.v1.Msg - * @instance - * @param {ibc.core.channel.v1.IMsgRecvPacket} request MsgRecvPacket message or plain object - * @param {ibc.core.channel.v1.Msg.RecvPacketCallback} callback Node-style callback called with the error, if any, and MsgRecvPacketResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Msg.prototype.recvPacket = function recvPacket(request, callback) { - return this.rpcCall(recvPacket, $root.ibc.core.channel.v1.MsgRecvPacket, $root.ibc.core.channel.v1.MsgRecvPacketResponse, request, callback); - }, "name", { value: "RecvPacket" }); - - /** - * Calls RecvPacket. - * @function recvPacket - * @memberof ibc.core.channel.v1.Msg - * @instance - * @param {ibc.core.channel.v1.IMsgRecvPacket} request MsgRecvPacket message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link ibc.core.channel.v1.Msg#timeout}. - * @memberof ibc.core.channel.v1.Msg - * @typedef TimeoutCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.core.channel.v1.MsgTimeoutResponse} [response] MsgTimeoutResponse - */ - - /** - * Calls Timeout. - * @function timeout - * @memberof ibc.core.channel.v1.Msg - * @instance - * @param {ibc.core.channel.v1.IMsgTimeout} request MsgTimeout message or plain object - * @param {ibc.core.channel.v1.Msg.TimeoutCallback} callback Node-style callback called with the error, if any, and MsgTimeoutResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Msg.prototype.timeout = function timeout(request, callback) { - return this.rpcCall(timeout, $root.ibc.core.channel.v1.MsgTimeout, $root.ibc.core.channel.v1.MsgTimeoutResponse, request, callback); - }, "name", { value: "Timeout" }); - - /** - * Calls Timeout. - * @function timeout - * @memberof ibc.core.channel.v1.Msg - * @instance - * @param {ibc.core.channel.v1.IMsgTimeout} request MsgTimeout message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link ibc.core.channel.v1.Msg#timeoutOnClose}. - * @memberof ibc.core.channel.v1.Msg - * @typedef TimeoutOnCloseCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.core.channel.v1.MsgTimeoutOnCloseResponse} [response] MsgTimeoutOnCloseResponse - */ - - /** - * Calls TimeoutOnClose. - * @function timeoutOnClose - * @memberof ibc.core.channel.v1.Msg - * @instance - * @param {ibc.core.channel.v1.IMsgTimeoutOnClose} request MsgTimeoutOnClose message or plain object - * @param {ibc.core.channel.v1.Msg.TimeoutOnCloseCallback} callback Node-style callback called with the error, if any, and MsgTimeoutOnCloseResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Msg.prototype.timeoutOnClose = function timeoutOnClose(request, callback) { - return this.rpcCall(timeoutOnClose, $root.ibc.core.channel.v1.MsgTimeoutOnClose, $root.ibc.core.channel.v1.MsgTimeoutOnCloseResponse, request, callback); - }, "name", { value: "TimeoutOnClose" }); - - /** - * Calls TimeoutOnClose. - * @function timeoutOnClose - * @memberof ibc.core.channel.v1.Msg - * @instance - * @param {ibc.core.channel.v1.IMsgTimeoutOnClose} request MsgTimeoutOnClose message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link ibc.core.channel.v1.Msg#acknowledgement}. - * @memberof ibc.core.channel.v1.Msg - * @typedef AcknowledgementCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.core.channel.v1.MsgAcknowledgementResponse} [response] MsgAcknowledgementResponse - */ - - /** - * Calls Acknowledgement. - * @function acknowledgement - * @memberof ibc.core.channel.v1.Msg - * @instance - * @param {ibc.core.channel.v1.IMsgAcknowledgement} request MsgAcknowledgement message or plain object - * @param {ibc.core.channel.v1.Msg.AcknowledgementCallback} callback Node-style callback called with the error, if any, and MsgAcknowledgementResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Msg.prototype.acknowledgement = function acknowledgement(request, callback) { - return this.rpcCall(acknowledgement, $root.ibc.core.channel.v1.MsgAcknowledgement, $root.ibc.core.channel.v1.MsgAcknowledgementResponse, request, callback); - }, "name", { value: "Acknowledgement" }); - - /** - * Calls Acknowledgement. - * @function acknowledgement - * @memberof ibc.core.channel.v1.Msg + + /** + * Converts this QueryDenomHashResponse to JSON. + * @function toJSON + * @memberof ibc.applications.transfer.v1.QueryDenomHashResponse * @instance - * @param {ibc.core.channel.v1.IMsgAcknowledgement} request MsgAcknowledgement message or plain object - * @returns {Promise} Promise - * @variation 2 + * @returns {Object.} JSON object */ + QueryDenomHashResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return Msg; - })(); - - /** - * ResponseResultType enum. - * @name ibc.core.channel.v1.ResponseResultType - * @enum {number} - * @property {number} RESPONSE_RESULT_TYPE_UNSPECIFIED=0 RESPONSE_RESULT_TYPE_UNSPECIFIED value - * @property {number} RESPONSE_RESULT_TYPE_NOOP=1 RESPONSE_RESULT_TYPE_NOOP value - * @property {number} RESPONSE_RESULT_TYPE_SUCCESS=2 RESPONSE_RESULT_TYPE_SUCCESS value - */ - v1.ResponseResultType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "RESPONSE_RESULT_TYPE_UNSPECIFIED"] = 0; - values[valuesById[1] = "RESPONSE_RESULT_TYPE_NOOP"] = 1; - values[valuesById[2] = "RESPONSE_RESULT_TYPE_SUCCESS"] = 2; - return values; + return QueryDenomHashResponse; })(); - v1.MsgChannelOpenInit = (function() { + v1.QueryEscrowAddressRequest = (function() { /** - * Properties of a MsgChannelOpenInit. - * @memberof ibc.core.channel.v1 - * @interface IMsgChannelOpenInit - * @property {string|null} [port_id] MsgChannelOpenInit port_id - * @property {ibc.core.channel.v1.IChannel|null} [channel] MsgChannelOpenInit channel - * @property {string|null} [signer] MsgChannelOpenInit signer + * Properties of a QueryEscrowAddressRequest. + * @memberof ibc.applications.transfer.v1 + * @interface IQueryEscrowAddressRequest + * @property {string|null} [port_id] QueryEscrowAddressRequest port_id + * @property {string|null} [channel_id] QueryEscrowAddressRequest channel_id */ /** - * Constructs a new MsgChannelOpenInit. - * @memberof ibc.core.channel.v1 - * @classdesc Represents a MsgChannelOpenInit. - * @implements IMsgChannelOpenInit + * Constructs a new QueryEscrowAddressRequest. + * @memberof ibc.applications.transfer.v1 + * @classdesc Represents a QueryEscrowAddressRequest. + * @implements IQueryEscrowAddressRequest * @constructor - * @param {ibc.core.channel.v1.IMsgChannelOpenInit=} [properties] Properties to set + * @param {ibc.applications.transfer.v1.IQueryEscrowAddressRequest=} [properties] Properties to set */ - function MsgChannelOpenInit(properties) { + function QueryEscrowAddressRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -36623,78 +42871,68 @@ } /** - * MsgChannelOpenInit port_id. + * QueryEscrowAddressRequest port_id. * @member {string} port_id - * @memberof ibc.core.channel.v1.MsgChannelOpenInit - * @instance - */ - MsgChannelOpenInit.prototype.port_id = ""; - - /** - * MsgChannelOpenInit channel. - * @member {ibc.core.channel.v1.IChannel|null|undefined} channel - * @memberof ibc.core.channel.v1.MsgChannelOpenInit + * @memberof ibc.applications.transfer.v1.QueryEscrowAddressRequest * @instance */ - MsgChannelOpenInit.prototype.channel = null; + QueryEscrowAddressRequest.prototype.port_id = ""; /** - * MsgChannelOpenInit signer. - * @member {string} signer - * @memberof ibc.core.channel.v1.MsgChannelOpenInit + * QueryEscrowAddressRequest channel_id. + * @member {string} channel_id + * @memberof ibc.applications.transfer.v1.QueryEscrowAddressRequest * @instance */ - MsgChannelOpenInit.prototype.signer = ""; + QueryEscrowAddressRequest.prototype.channel_id = ""; /** - * Encodes the specified MsgChannelOpenInit message. Does not implicitly {@link ibc.core.channel.v1.MsgChannelOpenInit.verify|verify} messages. + * Encodes the specified QueryEscrowAddressRequest message. Does not implicitly {@link ibc.applications.transfer.v1.QueryEscrowAddressRequest.verify|verify} messages. * @function encode - * @memberof ibc.core.channel.v1.MsgChannelOpenInit + * @memberof ibc.applications.transfer.v1.QueryEscrowAddressRequest * @static - * @param {ibc.core.channel.v1.IMsgChannelOpenInit} message MsgChannelOpenInit message or plain object to encode + * @param {ibc.applications.transfer.v1.IQueryEscrowAddressRequest} message QueryEscrowAddressRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgChannelOpenInit.encode = function encode(message, writer) { + QueryEscrowAddressRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.port_id != null && Object.hasOwnProperty.call(message, "port_id")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.port_id); - if (message.channel != null && Object.hasOwnProperty.call(message, "channel")) - $root.ibc.core.channel.v1.Channel.encode(message.channel, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.signer != null && Object.hasOwnProperty.call(message, "signer")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.signer); + if (message.channel_id != null && Object.hasOwnProperty.call(message, "channel_id")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.channel_id); return writer; }; /** - * Encodes the specified MsgChannelOpenInit message, length delimited. Does not implicitly {@link ibc.core.channel.v1.MsgChannelOpenInit.verify|verify} messages. + * Encodes the specified QueryEscrowAddressRequest message, length delimited. Does not implicitly {@link ibc.applications.transfer.v1.QueryEscrowAddressRequest.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.channel.v1.MsgChannelOpenInit + * @memberof ibc.applications.transfer.v1.QueryEscrowAddressRequest * @static - * @param {ibc.core.channel.v1.IMsgChannelOpenInit} message MsgChannelOpenInit message or plain object to encode + * @param {ibc.applications.transfer.v1.IQueryEscrowAddressRequest} message QueryEscrowAddressRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgChannelOpenInit.encodeDelimited = function encodeDelimited(message, writer) { + QueryEscrowAddressRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MsgChannelOpenInit message from the specified reader or buffer. + * Decodes a QueryEscrowAddressRequest message from the specified reader or buffer. * @function decode - * @memberof ibc.core.channel.v1.MsgChannelOpenInit + * @memberof ibc.applications.transfer.v1.QueryEscrowAddressRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.channel.v1.MsgChannelOpenInit} MsgChannelOpenInit + * @returns {ibc.applications.transfer.v1.QueryEscrowAddressRequest} QueryEscrowAddressRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgChannelOpenInit.decode = function decode(reader, length) { + QueryEscrowAddressRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.MsgChannelOpenInit(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.transfer.v1.QueryEscrowAddressRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -36702,10 +42940,7 @@ message.port_id = reader.string(); break; case 2: - message.channel = $root.ibc.core.channel.v1.Channel.decode(reader, reader.uint32()); - break; - case 3: - message.signer = reader.string(); + message.channel_id = reader.string(); break; default: reader.skipType(tag & 7); @@ -36716,130 +42951,116 @@ }; /** - * Decodes a MsgChannelOpenInit message from the specified reader or buffer, length delimited. + * Decodes a QueryEscrowAddressRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.channel.v1.MsgChannelOpenInit + * @memberof ibc.applications.transfer.v1.QueryEscrowAddressRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.channel.v1.MsgChannelOpenInit} MsgChannelOpenInit + * @returns {ibc.applications.transfer.v1.QueryEscrowAddressRequest} QueryEscrowAddressRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgChannelOpenInit.decodeDelimited = function decodeDelimited(reader) { + QueryEscrowAddressRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MsgChannelOpenInit message. + * Verifies a QueryEscrowAddressRequest message. * @function verify - * @memberof ibc.core.channel.v1.MsgChannelOpenInit + * @memberof ibc.applications.transfer.v1.QueryEscrowAddressRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MsgChannelOpenInit.verify = function verify(message) { + QueryEscrowAddressRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.port_id != null && message.hasOwnProperty("port_id")) if (!$util.isString(message.port_id)) return "port_id: string expected"; - if (message.channel != null && message.hasOwnProperty("channel")) { - var error = $root.ibc.core.channel.v1.Channel.verify(message.channel); - if (error) - return "channel." + error; - } - if (message.signer != null && message.hasOwnProperty("signer")) - if (!$util.isString(message.signer)) - return "signer: string expected"; + if (message.channel_id != null && message.hasOwnProperty("channel_id")) + if (!$util.isString(message.channel_id)) + return "channel_id: string expected"; return null; }; /** - * Creates a MsgChannelOpenInit message from a plain object. Also converts values to their respective internal types. + * Creates a QueryEscrowAddressRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.channel.v1.MsgChannelOpenInit + * @memberof ibc.applications.transfer.v1.QueryEscrowAddressRequest * @static * @param {Object.} object Plain object - * @returns {ibc.core.channel.v1.MsgChannelOpenInit} MsgChannelOpenInit + * @returns {ibc.applications.transfer.v1.QueryEscrowAddressRequest} QueryEscrowAddressRequest */ - MsgChannelOpenInit.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.channel.v1.MsgChannelOpenInit) + QueryEscrowAddressRequest.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.transfer.v1.QueryEscrowAddressRequest) return object; - var message = new $root.ibc.core.channel.v1.MsgChannelOpenInit(); + var message = new $root.ibc.applications.transfer.v1.QueryEscrowAddressRequest(); if (object.port_id != null) message.port_id = String(object.port_id); - if (object.channel != null) { - if (typeof object.channel !== "object") - throw TypeError(".ibc.core.channel.v1.MsgChannelOpenInit.channel: object expected"); - message.channel = $root.ibc.core.channel.v1.Channel.fromObject(object.channel); - } - if (object.signer != null) - message.signer = String(object.signer); + if (object.channel_id != null) + message.channel_id = String(object.channel_id); return message; }; /** - * Creates a plain object from a MsgChannelOpenInit message. Also converts values to other types if specified. + * Creates a plain object from a QueryEscrowAddressRequest message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.channel.v1.MsgChannelOpenInit + * @memberof ibc.applications.transfer.v1.QueryEscrowAddressRequest * @static - * @param {ibc.core.channel.v1.MsgChannelOpenInit} message MsgChannelOpenInit + * @param {ibc.applications.transfer.v1.QueryEscrowAddressRequest} message QueryEscrowAddressRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MsgChannelOpenInit.toObject = function toObject(message, options) { + QueryEscrowAddressRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.port_id = ""; - object.channel = null; - object.signer = ""; + object.channel_id = ""; } if (message.port_id != null && message.hasOwnProperty("port_id")) object.port_id = message.port_id; - if (message.channel != null && message.hasOwnProperty("channel")) - object.channel = $root.ibc.core.channel.v1.Channel.toObject(message.channel, options); - if (message.signer != null && message.hasOwnProperty("signer")) - object.signer = message.signer; + if (message.channel_id != null && message.hasOwnProperty("channel_id")) + object.channel_id = message.channel_id; return object; }; /** - * Converts this MsgChannelOpenInit to JSON. + * Converts this QueryEscrowAddressRequest to JSON. * @function toJSON - * @memberof ibc.core.channel.v1.MsgChannelOpenInit + * @memberof ibc.applications.transfer.v1.QueryEscrowAddressRequest * @instance * @returns {Object.} JSON object */ - MsgChannelOpenInit.prototype.toJSON = function toJSON() { + QueryEscrowAddressRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MsgChannelOpenInit; + return QueryEscrowAddressRequest; })(); - v1.MsgChannelOpenInitResponse = (function() { + v1.QueryEscrowAddressResponse = (function() { /** - * Properties of a MsgChannelOpenInitResponse. - * @memberof ibc.core.channel.v1 - * @interface IMsgChannelOpenInitResponse - * @property {string|null} [channel_id] MsgChannelOpenInitResponse channel_id - * @property {string|null} [version] MsgChannelOpenInitResponse version + * Properties of a QueryEscrowAddressResponse. + * @memberof ibc.applications.transfer.v1 + * @interface IQueryEscrowAddressResponse + * @property {string|null} [escrow_address] QueryEscrowAddressResponse escrow_address */ /** - * Constructs a new MsgChannelOpenInitResponse. - * @memberof ibc.core.channel.v1 - * @classdesc Represents a MsgChannelOpenInitResponse. - * @implements IMsgChannelOpenInitResponse + * Constructs a new QueryEscrowAddressResponse. + * @memberof ibc.applications.transfer.v1 + * @classdesc Represents a QueryEscrowAddressResponse. + * @implements IQueryEscrowAddressResponse * @constructor - * @param {ibc.core.channel.v1.IMsgChannelOpenInitResponse=} [properties] Properties to set + * @param {ibc.applications.transfer.v1.IQueryEscrowAddressResponse=} [properties] Properties to set */ - function MsgChannelOpenInitResponse(properties) { + function QueryEscrowAddressResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -36847,76 +43068,63 @@ } /** - * MsgChannelOpenInitResponse channel_id. - * @member {string} channel_id - * @memberof ibc.core.channel.v1.MsgChannelOpenInitResponse - * @instance - */ - MsgChannelOpenInitResponse.prototype.channel_id = ""; - - /** - * MsgChannelOpenInitResponse version. - * @member {string} version - * @memberof ibc.core.channel.v1.MsgChannelOpenInitResponse + * QueryEscrowAddressResponse escrow_address. + * @member {string} escrow_address + * @memberof ibc.applications.transfer.v1.QueryEscrowAddressResponse * @instance */ - MsgChannelOpenInitResponse.prototype.version = ""; + QueryEscrowAddressResponse.prototype.escrow_address = ""; /** - * Encodes the specified MsgChannelOpenInitResponse message. Does not implicitly {@link ibc.core.channel.v1.MsgChannelOpenInitResponse.verify|verify} messages. + * Encodes the specified QueryEscrowAddressResponse message. Does not implicitly {@link ibc.applications.transfer.v1.QueryEscrowAddressResponse.verify|verify} messages. * @function encode - * @memberof ibc.core.channel.v1.MsgChannelOpenInitResponse + * @memberof ibc.applications.transfer.v1.QueryEscrowAddressResponse * @static - * @param {ibc.core.channel.v1.IMsgChannelOpenInitResponse} message MsgChannelOpenInitResponse message or plain object to encode + * @param {ibc.applications.transfer.v1.IQueryEscrowAddressResponse} message QueryEscrowAddressResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgChannelOpenInitResponse.encode = function encode(message, writer) { + QueryEscrowAddressResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.channel_id != null && Object.hasOwnProperty.call(message, "channel_id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.channel_id); - if (message.version != null && Object.hasOwnProperty.call(message, "version")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.version); + if (message.escrow_address != null && Object.hasOwnProperty.call(message, "escrow_address")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.escrow_address); return writer; }; /** - * Encodes the specified MsgChannelOpenInitResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.MsgChannelOpenInitResponse.verify|verify} messages. + * Encodes the specified QueryEscrowAddressResponse message, length delimited. Does not implicitly {@link ibc.applications.transfer.v1.QueryEscrowAddressResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.channel.v1.MsgChannelOpenInitResponse + * @memberof ibc.applications.transfer.v1.QueryEscrowAddressResponse * @static - * @param {ibc.core.channel.v1.IMsgChannelOpenInitResponse} message MsgChannelOpenInitResponse message or plain object to encode + * @param {ibc.applications.transfer.v1.IQueryEscrowAddressResponse} message QueryEscrowAddressResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgChannelOpenInitResponse.encodeDelimited = function encodeDelimited(message, writer) { + QueryEscrowAddressResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MsgChannelOpenInitResponse message from the specified reader or buffer. + * Decodes a QueryEscrowAddressResponse message from the specified reader or buffer. * @function decode - * @memberof ibc.core.channel.v1.MsgChannelOpenInitResponse + * @memberof ibc.applications.transfer.v1.QueryEscrowAddressResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.channel.v1.MsgChannelOpenInitResponse} MsgChannelOpenInitResponse + * @returns {ibc.applications.transfer.v1.QueryEscrowAddressResponse} QueryEscrowAddressResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgChannelOpenInitResponse.decode = function decode(reader, length) { + QueryEscrowAddressResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.MsgChannelOpenInitResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.transfer.v1.QueryEscrowAddressResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.channel_id = reader.string(); - break; - case 2: - message.version = reader.string(); + message.escrow_address = reader.string(); break; default: reader.skipType(tag & 7); @@ -36927,122 +43135,107 @@ }; /** - * Decodes a MsgChannelOpenInitResponse message from the specified reader or buffer, length delimited. + * Decodes a QueryEscrowAddressResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.channel.v1.MsgChannelOpenInitResponse + * @memberof ibc.applications.transfer.v1.QueryEscrowAddressResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.channel.v1.MsgChannelOpenInitResponse} MsgChannelOpenInitResponse + * @returns {ibc.applications.transfer.v1.QueryEscrowAddressResponse} QueryEscrowAddressResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgChannelOpenInitResponse.decodeDelimited = function decodeDelimited(reader) { + QueryEscrowAddressResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MsgChannelOpenInitResponse message. + * Verifies a QueryEscrowAddressResponse message. * @function verify - * @memberof ibc.core.channel.v1.MsgChannelOpenInitResponse + * @memberof ibc.applications.transfer.v1.QueryEscrowAddressResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MsgChannelOpenInitResponse.verify = function verify(message) { + QueryEscrowAddressResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.channel_id != null && message.hasOwnProperty("channel_id")) - if (!$util.isString(message.channel_id)) - return "channel_id: string expected"; - if (message.version != null && message.hasOwnProperty("version")) - if (!$util.isString(message.version)) - return "version: string expected"; + if (message.escrow_address != null && message.hasOwnProperty("escrow_address")) + if (!$util.isString(message.escrow_address)) + return "escrow_address: string expected"; return null; }; /** - * Creates a MsgChannelOpenInitResponse message from a plain object. Also converts values to their respective internal types. + * Creates a QueryEscrowAddressResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.channel.v1.MsgChannelOpenInitResponse + * @memberof ibc.applications.transfer.v1.QueryEscrowAddressResponse * @static * @param {Object.} object Plain object - * @returns {ibc.core.channel.v1.MsgChannelOpenInitResponse} MsgChannelOpenInitResponse + * @returns {ibc.applications.transfer.v1.QueryEscrowAddressResponse} QueryEscrowAddressResponse */ - MsgChannelOpenInitResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.channel.v1.MsgChannelOpenInitResponse) + QueryEscrowAddressResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.transfer.v1.QueryEscrowAddressResponse) return object; - var message = new $root.ibc.core.channel.v1.MsgChannelOpenInitResponse(); - if (object.channel_id != null) - message.channel_id = String(object.channel_id); - if (object.version != null) - message.version = String(object.version); + var message = new $root.ibc.applications.transfer.v1.QueryEscrowAddressResponse(); + if (object.escrow_address != null) + message.escrow_address = String(object.escrow_address); return message; }; /** - * Creates a plain object from a MsgChannelOpenInitResponse message. Also converts values to other types if specified. + * Creates a plain object from a QueryEscrowAddressResponse message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.channel.v1.MsgChannelOpenInitResponse + * @memberof ibc.applications.transfer.v1.QueryEscrowAddressResponse * @static - * @param {ibc.core.channel.v1.MsgChannelOpenInitResponse} message MsgChannelOpenInitResponse + * @param {ibc.applications.transfer.v1.QueryEscrowAddressResponse} message QueryEscrowAddressResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MsgChannelOpenInitResponse.toObject = function toObject(message, options) { + QueryEscrowAddressResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.channel_id = ""; - object.version = ""; - } - if (message.channel_id != null && message.hasOwnProperty("channel_id")) - object.channel_id = message.channel_id; - if (message.version != null && message.hasOwnProperty("version")) - object.version = message.version; + if (options.defaults) + object.escrow_address = ""; + if (message.escrow_address != null && message.hasOwnProperty("escrow_address")) + object.escrow_address = message.escrow_address; return object; }; /** - * Converts this MsgChannelOpenInitResponse to JSON. + * Converts this QueryEscrowAddressResponse to JSON. * @function toJSON - * @memberof ibc.core.channel.v1.MsgChannelOpenInitResponse + * @memberof ibc.applications.transfer.v1.QueryEscrowAddressResponse * @instance * @returns {Object.} JSON object */ - MsgChannelOpenInitResponse.prototype.toJSON = function toJSON() { + QueryEscrowAddressResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MsgChannelOpenInitResponse; + return QueryEscrowAddressResponse; })(); - v1.MsgChannelOpenTry = (function() { + v1.QueryTotalEscrowForDenomRequest = (function() { /** - * Properties of a MsgChannelOpenTry. - * @memberof ibc.core.channel.v1 - * @interface IMsgChannelOpenTry - * @property {string|null} [port_id] MsgChannelOpenTry port_id - * @property {string|null} [previous_channel_id] MsgChannelOpenTry previous_channel_id - * @property {ibc.core.channel.v1.IChannel|null} [channel] MsgChannelOpenTry channel - * @property {string|null} [counterparty_version] MsgChannelOpenTry counterparty_version - * @property {Uint8Array|null} [proof_init] MsgChannelOpenTry proof_init - * @property {ibc.core.client.v1.IHeight|null} [proof_height] MsgChannelOpenTry proof_height - * @property {string|null} [signer] MsgChannelOpenTry signer + * Properties of a QueryTotalEscrowForDenomRequest. + * @memberof ibc.applications.transfer.v1 + * @interface IQueryTotalEscrowForDenomRequest + * @property {string|null} [denom] QueryTotalEscrowForDenomRequest denom */ /** - * Constructs a new MsgChannelOpenTry. - * @memberof ibc.core.channel.v1 - * @classdesc Represents a MsgChannelOpenTry. - * @implements IMsgChannelOpenTry + * Constructs a new QueryTotalEscrowForDenomRequest. + * @memberof ibc.applications.transfer.v1 + * @classdesc Represents a QueryTotalEscrowForDenomRequest. + * @implements IQueryTotalEscrowForDenomRequest * @constructor - * @param {ibc.core.channel.v1.IMsgChannelOpenTry=} [properties] Properties to set + * @param {ibc.applications.transfer.v1.IQueryTotalEscrowForDenomRequest=} [properties] Properties to set */ - function MsgChannelOpenTry(properties) { + function QueryTotalEscrowForDenomRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -37050,141 +43243,238 @@ } /** - * MsgChannelOpenTry port_id. - * @member {string} port_id - * @memberof ibc.core.channel.v1.MsgChannelOpenTry + * QueryTotalEscrowForDenomRequest denom. + * @member {string} denom + * @memberof ibc.applications.transfer.v1.QueryTotalEscrowForDenomRequest * @instance */ - MsgChannelOpenTry.prototype.port_id = ""; + QueryTotalEscrowForDenomRequest.prototype.denom = ""; /** - * MsgChannelOpenTry previous_channel_id. - * @member {string} previous_channel_id - * @memberof ibc.core.channel.v1.MsgChannelOpenTry - * @instance + * Encodes the specified QueryTotalEscrowForDenomRequest message. Does not implicitly {@link ibc.applications.transfer.v1.QueryTotalEscrowForDenomRequest.verify|verify} messages. + * @function encode + * @memberof ibc.applications.transfer.v1.QueryTotalEscrowForDenomRequest + * @static + * @param {ibc.applications.transfer.v1.IQueryTotalEscrowForDenomRequest} message QueryTotalEscrowForDenomRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - MsgChannelOpenTry.prototype.previous_channel_id = ""; + QueryTotalEscrowForDenomRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.denom != null && Object.hasOwnProperty.call(message, "denom")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.denom); + return writer; + }; /** - * MsgChannelOpenTry channel. - * @member {ibc.core.channel.v1.IChannel|null|undefined} channel - * @memberof ibc.core.channel.v1.MsgChannelOpenTry - * @instance + * Encodes the specified QueryTotalEscrowForDenomRequest message, length delimited. Does not implicitly {@link ibc.applications.transfer.v1.QueryTotalEscrowForDenomRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof ibc.applications.transfer.v1.QueryTotalEscrowForDenomRequest + * @static + * @param {ibc.applications.transfer.v1.IQueryTotalEscrowForDenomRequest} message QueryTotalEscrowForDenomRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - MsgChannelOpenTry.prototype.channel = null; + QueryTotalEscrowForDenomRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * MsgChannelOpenTry counterparty_version. - * @member {string} counterparty_version - * @memberof ibc.core.channel.v1.MsgChannelOpenTry - * @instance + * Decodes a QueryTotalEscrowForDenomRequest message from the specified reader or buffer. + * @function decode + * @memberof ibc.applications.transfer.v1.QueryTotalEscrowForDenomRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {ibc.applications.transfer.v1.QueryTotalEscrowForDenomRequest} QueryTotalEscrowForDenomRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgChannelOpenTry.prototype.counterparty_version = ""; + QueryTotalEscrowForDenomRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.transfer.v1.QueryTotalEscrowForDenomRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.denom = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * MsgChannelOpenTry proof_init. - * @member {Uint8Array} proof_init - * @memberof ibc.core.channel.v1.MsgChannelOpenTry - * @instance + * Decodes a QueryTotalEscrowForDenomRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof ibc.applications.transfer.v1.QueryTotalEscrowForDenomRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {ibc.applications.transfer.v1.QueryTotalEscrowForDenomRequest} QueryTotalEscrowForDenomRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgChannelOpenTry.prototype.proof_init = $util.newBuffer([]); + QueryTotalEscrowForDenomRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * MsgChannelOpenTry proof_height. - * @member {ibc.core.client.v1.IHeight|null|undefined} proof_height - * @memberof ibc.core.channel.v1.MsgChannelOpenTry + * Verifies a QueryTotalEscrowForDenomRequest message. + * @function verify + * @memberof ibc.applications.transfer.v1.QueryTotalEscrowForDenomRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + QueryTotalEscrowForDenomRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.denom != null && message.hasOwnProperty("denom")) + if (!$util.isString(message.denom)) + return "denom: string expected"; + return null; + }; + + /** + * Creates a QueryTotalEscrowForDenomRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof ibc.applications.transfer.v1.QueryTotalEscrowForDenomRequest + * @static + * @param {Object.} object Plain object + * @returns {ibc.applications.transfer.v1.QueryTotalEscrowForDenomRequest} QueryTotalEscrowForDenomRequest + */ + QueryTotalEscrowForDenomRequest.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.transfer.v1.QueryTotalEscrowForDenomRequest) + return object; + var message = new $root.ibc.applications.transfer.v1.QueryTotalEscrowForDenomRequest(); + if (object.denom != null) + message.denom = String(object.denom); + return message; + }; + + /** + * Creates a plain object from a QueryTotalEscrowForDenomRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof ibc.applications.transfer.v1.QueryTotalEscrowForDenomRequest + * @static + * @param {ibc.applications.transfer.v1.QueryTotalEscrowForDenomRequest} message QueryTotalEscrowForDenomRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + QueryTotalEscrowForDenomRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.denom = ""; + if (message.denom != null && message.hasOwnProperty("denom")) + object.denom = message.denom; + return object; + }; + + /** + * Converts this QueryTotalEscrowForDenomRequest to JSON. + * @function toJSON + * @memberof ibc.applications.transfer.v1.QueryTotalEscrowForDenomRequest * @instance + * @returns {Object.} JSON object */ - MsgChannelOpenTry.prototype.proof_height = null; + QueryTotalEscrowForDenomRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return QueryTotalEscrowForDenomRequest; + })(); + + v1.QueryTotalEscrowForDenomResponse = (function() { /** - * MsgChannelOpenTry signer. - * @member {string} signer - * @memberof ibc.core.channel.v1.MsgChannelOpenTry + * Properties of a QueryTotalEscrowForDenomResponse. + * @memberof ibc.applications.transfer.v1 + * @interface IQueryTotalEscrowForDenomResponse + * @property {cosmos.base.v1beta1.ICoin|null} [amount] QueryTotalEscrowForDenomResponse amount + */ + + /** + * Constructs a new QueryTotalEscrowForDenomResponse. + * @memberof ibc.applications.transfer.v1 + * @classdesc Represents a QueryTotalEscrowForDenomResponse. + * @implements IQueryTotalEscrowForDenomResponse + * @constructor + * @param {ibc.applications.transfer.v1.IQueryTotalEscrowForDenomResponse=} [properties] Properties to set + */ + function QueryTotalEscrowForDenomResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * QueryTotalEscrowForDenomResponse amount. + * @member {cosmos.base.v1beta1.ICoin|null|undefined} amount + * @memberof ibc.applications.transfer.v1.QueryTotalEscrowForDenomResponse * @instance */ - MsgChannelOpenTry.prototype.signer = ""; + QueryTotalEscrowForDenomResponse.prototype.amount = null; /** - * Encodes the specified MsgChannelOpenTry message. Does not implicitly {@link ibc.core.channel.v1.MsgChannelOpenTry.verify|verify} messages. + * Encodes the specified QueryTotalEscrowForDenomResponse message. Does not implicitly {@link ibc.applications.transfer.v1.QueryTotalEscrowForDenomResponse.verify|verify} messages. * @function encode - * @memberof ibc.core.channel.v1.MsgChannelOpenTry + * @memberof ibc.applications.transfer.v1.QueryTotalEscrowForDenomResponse * @static - * @param {ibc.core.channel.v1.IMsgChannelOpenTry} message MsgChannelOpenTry message or plain object to encode + * @param {ibc.applications.transfer.v1.IQueryTotalEscrowForDenomResponse} message QueryTotalEscrowForDenomResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgChannelOpenTry.encode = function encode(message, writer) { + QueryTotalEscrowForDenomResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.port_id != null && Object.hasOwnProperty.call(message, "port_id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.port_id); - if (message.previous_channel_id != null && Object.hasOwnProperty.call(message, "previous_channel_id")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.previous_channel_id); - if (message.channel != null && Object.hasOwnProperty.call(message, "channel")) - $root.ibc.core.channel.v1.Channel.encode(message.channel, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.counterparty_version != null && Object.hasOwnProperty.call(message, "counterparty_version")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.counterparty_version); - if (message.proof_init != null && Object.hasOwnProperty.call(message, "proof_init")) - writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.proof_init); - if (message.proof_height != null && Object.hasOwnProperty.call(message, "proof_height")) - $root.ibc.core.client.v1.Height.encode(message.proof_height, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.signer != null && Object.hasOwnProperty.call(message, "signer")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.signer); + if (message.amount != null && Object.hasOwnProperty.call(message, "amount")) + $root.cosmos.base.v1beta1.Coin.encode(message.amount, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified MsgChannelOpenTry message, length delimited. Does not implicitly {@link ibc.core.channel.v1.MsgChannelOpenTry.verify|verify} messages. + * Encodes the specified QueryTotalEscrowForDenomResponse message, length delimited. Does not implicitly {@link ibc.applications.transfer.v1.QueryTotalEscrowForDenomResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.channel.v1.MsgChannelOpenTry + * @memberof ibc.applications.transfer.v1.QueryTotalEscrowForDenomResponse * @static - * @param {ibc.core.channel.v1.IMsgChannelOpenTry} message MsgChannelOpenTry message or plain object to encode + * @param {ibc.applications.transfer.v1.IQueryTotalEscrowForDenomResponse} message QueryTotalEscrowForDenomResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgChannelOpenTry.encodeDelimited = function encodeDelimited(message, writer) { + QueryTotalEscrowForDenomResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MsgChannelOpenTry message from the specified reader or buffer. + * Decodes a QueryTotalEscrowForDenomResponse message from the specified reader or buffer. * @function decode - * @memberof ibc.core.channel.v1.MsgChannelOpenTry + * @memberof ibc.applications.transfer.v1.QueryTotalEscrowForDenomResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.channel.v1.MsgChannelOpenTry} MsgChannelOpenTry + * @returns {ibc.applications.transfer.v1.QueryTotalEscrowForDenomResponse} QueryTotalEscrowForDenomResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgChannelOpenTry.decode = function decode(reader, length) { + QueryTotalEscrowForDenomResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.MsgChannelOpenTry(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.transfer.v1.QueryTotalEscrowForDenomResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.port_id = reader.string(); - break; - case 2: - message.previous_channel_id = reader.string(); - break; - case 3: - message.channel = $root.ibc.core.channel.v1.Channel.decode(reader, reader.uint32()); - break; - case 4: - message.counterparty_version = reader.string(); - break; - case 5: - message.proof_init = reader.bytes(); - break; - case 6: - message.proof_height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); - break; - case 7: - message.signer = reader.string(); + message.amount = $root.cosmos.base.v1beta1.Coin.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -37195,175 +43485,117 @@ }; /** - * Decodes a MsgChannelOpenTry message from the specified reader or buffer, length delimited. + * Decodes a QueryTotalEscrowForDenomResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.channel.v1.MsgChannelOpenTry + * @memberof ibc.applications.transfer.v1.QueryTotalEscrowForDenomResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.channel.v1.MsgChannelOpenTry} MsgChannelOpenTry + * @returns {ibc.applications.transfer.v1.QueryTotalEscrowForDenomResponse} QueryTotalEscrowForDenomResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgChannelOpenTry.decodeDelimited = function decodeDelimited(reader) { + QueryTotalEscrowForDenomResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MsgChannelOpenTry message. + * Verifies a QueryTotalEscrowForDenomResponse message. * @function verify - * @memberof ibc.core.channel.v1.MsgChannelOpenTry + * @memberof ibc.applications.transfer.v1.QueryTotalEscrowForDenomResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MsgChannelOpenTry.verify = function verify(message) { + QueryTotalEscrowForDenomResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.port_id != null && message.hasOwnProperty("port_id")) - if (!$util.isString(message.port_id)) - return "port_id: string expected"; - if (message.previous_channel_id != null && message.hasOwnProperty("previous_channel_id")) - if (!$util.isString(message.previous_channel_id)) - return "previous_channel_id: string expected"; - if (message.channel != null && message.hasOwnProperty("channel")) { - var error = $root.ibc.core.channel.v1.Channel.verify(message.channel); - if (error) - return "channel." + error; - } - if (message.counterparty_version != null && message.hasOwnProperty("counterparty_version")) - if (!$util.isString(message.counterparty_version)) - return "counterparty_version: string expected"; - if (message.proof_init != null && message.hasOwnProperty("proof_init")) - if (!(message.proof_init && typeof message.proof_init.length === "number" || $util.isString(message.proof_init))) - return "proof_init: buffer expected"; - if (message.proof_height != null && message.hasOwnProperty("proof_height")) { - var error = $root.ibc.core.client.v1.Height.verify(message.proof_height); + if (message.amount != null && message.hasOwnProperty("amount")) { + var error = $root.cosmos.base.v1beta1.Coin.verify(message.amount); if (error) - return "proof_height." + error; + return "amount." + error; } - if (message.signer != null && message.hasOwnProperty("signer")) - if (!$util.isString(message.signer)) - return "signer: string expected"; return null; }; /** - * Creates a MsgChannelOpenTry message from a plain object. Also converts values to their respective internal types. + * Creates a QueryTotalEscrowForDenomResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.channel.v1.MsgChannelOpenTry + * @memberof ibc.applications.transfer.v1.QueryTotalEscrowForDenomResponse * @static * @param {Object.} object Plain object - * @returns {ibc.core.channel.v1.MsgChannelOpenTry} MsgChannelOpenTry + * @returns {ibc.applications.transfer.v1.QueryTotalEscrowForDenomResponse} QueryTotalEscrowForDenomResponse */ - MsgChannelOpenTry.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.channel.v1.MsgChannelOpenTry) + QueryTotalEscrowForDenomResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.transfer.v1.QueryTotalEscrowForDenomResponse) return object; - var message = new $root.ibc.core.channel.v1.MsgChannelOpenTry(); - if (object.port_id != null) - message.port_id = String(object.port_id); - if (object.previous_channel_id != null) - message.previous_channel_id = String(object.previous_channel_id); - if (object.channel != null) { - if (typeof object.channel !== "object") - throw TypeError(".ibc.core.channel.v1.MsgChannelOpenTry.channel: object expected"); - message.channel = $root.ibc.core.channel.v1.Channel.fromObject(object.channel); - } - if (object.counterparty_version != null) - message.counterparty_version = String(object.counterparty_version); - if (object.proof_init != null) - if (typeof object.proof_init === "string") - $util.base64.decode(object.proof_init, message.proof_init = $util.newBuffer($util.base64.length(object.proof_init)), 0); - else if (object.proof_init.length) - message.proof_init = object.proof_init; - if (object.proof_height != null) { - if (typeof object.proof_height !== "object") - throw TypeError(".ibc.core.channel.v1.MsgChannelOpenTry.proof_height: object expected"); - message.proof_height = $root.ibc.core.client.v1.Height.fromObject(object.proof_height); + var message = new $root.ibc.applications.transfer.v1.QueryTotalEscrowForDenomResponse(); + if (object.amount != null) { + if (typeof object.amount !== "object") + throw TypeError(".ibc.applications.transfer.v1.QueryTotalEscrowForDenomResponse.amount: object expected"); + message.amount = $root.cosmos.base.v1beta1.Coin.fromObject(object.amount); } - if (object.signer != null) - message.signer = String(object.signer); return message; }; /** - * Creates a plain object from a MsgChannelOpenTry message. Also converts values to other types if specified. + * Creates a plain object from a QueryTotalEscrowForDenomResponse message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.channel.v1.MsgChannelOpenTry + * @memberof ibc.applications.transfer.v1.QueryTotalEscrowForDenomResponse * @static - * @param {ibc.core.channel.v1.MsgChannelOpenTry} message MsgChannelOpenTry + * @param {ibc.applications.transfer.v1.QueryTotalEscrowForDenomResponse} message QueryTotalEscrowForDenomResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MsgChannelOpenTry.toObject = function toObject(message, options) { + QueryTotalEscrowForDenomResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.port_id = ""; - object.previous_channel_id = ""; - object.channel = null; - object.counterparty_version = ""; - if (options.bytes === String) - object.proof_init = ""; - else { - object.proof_init = []; - if (options.bytes !== Array) - object.proof_init = $util.newBuffer(object.proof_init); - } - object.proof_height = null; - object.signer = ""; - } - if (message.port_id != null && message.hasOwnProperty("port_id")) - object.port_id = message.port_id; - if (message.previous_channel_id != null && message.hasOwnProperty("previous_channel_id")) - object.previous_channel_id = message.previous_channel_id; - if (message.channel != null && message.hasOwnProperty("channel")) - object.channel = $root.ibc.core.channel.v1.Channel.toObject(message.channel, options); - if (message.counterparty_version != null && message.hasOwnProperty("counterparty_version")) - object.counterparty_version = message.counterparty_version; - if (message.proof_init != null && message.hasOwnProperty("proof_init")) - object.proof_init = options.bytes === String ? $util.base64.encode(message.proof_init, 0, message.proof_init.length) : options.bytes === Array ? Array.prototype.slice.call(message.proof_init) : message.proof_init; - if (message.proof_height != null && message.hasOwnProperty("proof_height")) - object.proof_height = $root.ibc.core.client.v1.Height.toObject(message.proof_height, options); - if (message.signer != null && message.hasOwnProperty("signer")) - object.signer = message.signer; + if (options.defaults) + object.amount = null; + if (message.amount != null && message.hasOwnProperty("amount")) + object.amount = $root.cosmos.base.v1beta1.Coin.toObject(message.amount, options); return object; }; /** - * Converts this MsgChannelOpenTry to JSON. + * Converts this QueryTotalEscrowForDenomResponse to JSON. * @function toJSON - * @memberof ibc.core.channel.v1.MsgChannelOpenTry + * @memberof ibc.applications.transfer.v1.QueryTotalEscrowForDenomResponse * @instance * @returns {Object.} JSON object */ - MsgChannelOpenTry.prototype.toJSON = function toJSON() { + QueryTotalEscrowForDenomResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MsgChannelOpenTry; + return QueryTotalEscrowForDenomResponse; })(); - v1.MsgChannelOpenTryResponse = (function() { + v1.Allocation = (function() { /** - * Properties of a MsgChannelOpenTryResponse. - * @memberof ibc.core.channel.v1 - * @interface IMsgChannelOpenTryResponse - * @property {string|null} [version] MsgChannelOpenTryResponse version + * Properties of an Allocation. + * @memberof ibc.applications.transfer.v1 + * @interface IAllocation + * @property {string|null} [source_port] Allocation source_port + * @property {string|null} [source_channel] Allocation source_channel + * @property {Array.|null} [spend_limit] Allocation spend_limit + * @property {Array.|null} [allow_list] Allocation allow_list */ /** - * Constructs a new MsgChannelOpenTryResponse. - * @memberof ibc.core.channel.v1 - * @classdesc Represents a MsgChannelOpenTryResponse. - * @implements IMsgChannelOpenTryResponse + * Constructs a new Allocation. + * @memberof ibc.applications.transfer.v1 + * @classdesc Represents an Allocation. + * @implements IAllocation * @constructor - * @param {ibc.core.channel.v1.IMsgChannelOpenTryResponse=} [properties] Properties to set + * @param {ibc.applications.transfer.v1.IAllocation=} [properties] Properties to set */ - function MsgChannelOpenTryResponse(properties) { + function Allocation(properties) { + this.spend_limit = []; + this.allow_list = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -37371,63 +43603,108 @@ } /** - * MsgChannelOpenTryResponse version. - * @member {string} version - * @memberof ibc.core.channel.v1.MsgChannelOpenTryResponse + * Allocation source_port. + * @member {string} source_port + * @memberof ibc.applications.transfer.v1.Allocation * @instance */ - MsgChannelOpenTryResponse.prototype.version = ""; + Allocation.prototype.source_port = ""; /** - * Encodes the specified MsgChannelOpenTryResponse message. Does not implicitly {@link ibc.core.channel.v1.MsgChannelOpenTryResponse.verify|verify} messages. + * Allocation source_channel. + * @member {string} source_channel + * @memberof ibc.applications.transfer.v1.Allocation + * @instance + */ + Allocation.prototype.source_channel = ""; + + /** + * Allocation spend_limit. + * @member {Array.} spend_limit + * @memberof ibc.applications.transfer.v1.Allocation + * @instance + */ + Allocation.prototype.spend_limit = $util.emptyArray; + + /** + * Allocation allow_list. + * @member {Array.} allow_list + * @memberof ibc.applications.transfer.v1.Allocation + * @instance + */ + Allocation.prototype.allow_list = $util.emptyArray; + + /** + * Encodes the specified Allocation message. Does not implicitly {@link ibc.applications.transfer.v1.Allocation.verify|verify} messages. * @function encode - * @memberof ibc.core.channel.v1.MsgChannelOpenTryResponse + * @memberof ibc.applications.transfer.v1.Allocation * @static - * @param {ibc.core.channel.v1.IMsgChannelOpenTryResponse} message MsgChannelOpenTryResponse message or plain object to encode + * @param {ibc.applications.transfer.v1.IAllocation} message Allocation message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgChannelOpenTryResponse.encode = function encode(message, writer) { + Allocation.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.version != null && Object.hasOwnProperty.call(message, "version")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.version); + if (message.source_port != null && Object.hasOwnProperty.call(message, "source_port")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.source_port); + if (message.source_channel != null && Object.hasOwnProperty.call(message, "source_channel")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.source_channel); + if (message.spend_limit != null && message.spend_limit.length) + for (var i = 0; i < message.spend_limit.length; ++i) + $root.cosmos.base.v1beta1.Coin.encode(message.spend_limit[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.allow_list != null && message.allow_list.length) + for (var i = 0; i < message.allow_list.length; ++i) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.allow_list[i]); return writer; }; /** - * Encodes the specified MsgChannelOpenTryResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.MsgChannelOpenTryResponse.verify|verify} messages. + * Encodes the specified Allocation message, length delimited. Does not implicitly {@link ibc.applications.transfer.v1.Allocation.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.channel.v1.MsgChannelOpenTryResponse + * @memberof ibc.applications.transfer.v1.Allocation * @static - * @param {ibc.core.channel.v1.IMsgChannelOpenTryResponse} message MsgChannelOpenTryResponse message or plain object to encode + * @param {ibc.applications.transfer.v1.IAllocation} message Allocation message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgChannelOpenTryResponse.encodeDelimited = function encodeDelimited(message, writer) { + Allocation.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MsgChannelOpenTryResponse message from the specified reader or buffer. + * Decodes an Allocation message from the specified reader or buffer. * @function decode - * @memberof ibc.core.channel.v1.MsgChannelOpenTryResponse + * @memberof ibc.applications.transfer.v1.Allocation * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.channel.v1.MsgChannelOpenTryResponse} MsgChannelOpenTryResponse + * @returns {ibc.applications.transfer.v1.Allocation} Allocation * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgChannelOpenTryResponse.decode = function decode(reader, length) { + Allocation.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.MsgChannelOpenTryResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.transfer.v1.Allocation(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.version = reader.string(); + message.source_port = reader.string(); + break; + case 2: + message.source_channel = reader.string(); + break; + case 3: + if (!(message.spend_limit && message.spend_limit.length)) + message.spend_limit = []; + message.spend_limit.push($root.cosmos.base.v1beta1.Coin.decode(reader, reader.uint32())); + break; + case 4: + if (!(message.allow_list && message.allow_list.length)) + message.allow_list = []; + message.allow_list.push(reader.string()); break; default: reader.skipType(tag & 7); @@ -37438,113 +43715,164 @@ }; /** - * Decodes a MsgChannelOpenTryResponse message from the specified reader or buffer, length delimited. + * Decodes an Allocation message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.channel.v1.MsgChannelOpenTryResponse + * @memberof ibc.applications.transfer.v1.Allocation * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.channel.v1.MsgChannelOpenTryResponse} MsgChannelOpenTryResponse + * @returns {ibc.applications.transfer.v1.Allocation} Allocation * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgChannelOpenTryResponse.decodeDelimited = function decodeDelimited(reader) { + Allocation.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MsgChannelOpenTryResponse message. + * Verifies an Allocation message. * @function verify - * @memberof ibc.core.channel.v1.MsgChannelOpenTryResponse + * @memberof ibc.applications.transfer.v1.Allocation * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MsgChannelOpenTryResponse.verify = function verify(message) { + Allocation.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.version != null && message.hasOwnProperty("version")) - if (!$util.isString(message.version)) - return "version: string expected"; + if (message.source_port != null && message.hasOwnProperty("source_port")) + if (!$util.isString(message.source_port)) + return "source_port: string expected"; + if (message.source_channel != null && message.hasOwnProperty("source_channel")) + if (!$util.isString(message.source_channel)) + return "source_channel: string expected"; + if (message.spend_limit != null && message.hasOwnProperty("spend_limit")) { + if (!Array.isArray(message.spend_limit)) + return "spend_limit: array expected"; + for (var i = 0; i < message.spend_limit.length; ++i) { + var error = $root.cosmos.base.v1beta1.Coin.verify(message.spend_limit[i]); + if (error) + return "spend_limit." + error; + } + } + if (message.allow_list != null && message.hasOwnProperty("allow_list")) { + if (!Array.isArray(message.allow_list)) + return "allow_list: array expected"; + for (var i = 0; i < message.allow_list.length; ++i) + if (!$util.isString(message.allow_list[i])) + return "allow_list: string[] expected"; + } return null; }; /** - * Creates a MsgChannelOpenTryResponse message from a plain object. Also converts values to their respective internal types. + * Creates an Allocation message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.channel.v1.MsgChannelOpenTryResponse + * @memberof ibc.applications.transfer.v1.Allocation * @static * @param {Object.} object Plain object - * @returns {ibc.core.channel.v1.MsgChannelOpenTryResponse} MsgChannelOpenTryResponse + * @returns {ibc.applications.transfer.v1.Allocation} Allocation */ - MsgChannelOpenTryResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.channel.v1.MsgChannelOpenTryResponse) + Allocation.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.transfer.v1.Allocation) return object; - var message = new $root.ibc.core.channel.v1.MsgChannelOpenTryResponse(); - if (object.version != null) - message.version = String(object.version); + var message = new $root.ibc.applications.transfer.v1.Allocation(); + if (object.source_port != null) + message.source_port = String(object.source_port); + if (object.source_channel != null) + message.source_channel = String(object.source_channel); + if (object.spend_limit) { + if (!Array.isArray(object.spend_limit)) + throw TypeError(".ibc.applications.transfer.v1.Allocation.spend_limit: array expected"); + message.spend_limit = []; + for (var i = 0; i < object.spend_limit.length; ++i) { + if (typeof object.spend_limit[i] !== "object") + throw TypeError(".ibc.applications.transfer.v1.Allocation.spend_limit: object expected"); + message.spend_limit[i] = $root.cosmos.base.v1beta1.Coin.fromObject(object.spend_limit[i]); + } + } + if (object.allow_list) { + if (!Array.isArray(object.allow_list)) + throw TypeError(".ibc.applications.transfer.v1.Allocation.allow_list: array expected"); + message.allow_list = []; + for (var i = 0; i < object.allow_list.length; ++i) + message.allow_list[i] = String(object.allow_list[i]); + } return message; }; /** - * Creates a plain object from a MsgChannelOpenTryResponse message. Also converts values to other types if specified. + * Creates a plain object from an Allocation message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.channel.v1.MsgChannelOpenTryResponse + * @memberof ibc.applications.transfer.v1.Allocation * @static - * @param {ibc.core.channel.v1.MsgChannelOpenTryResponse} message MsgChannelOpenTryResponse + * @param {ibc.applications.transfer.v1.Allocation} message Allocation * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MsgChannelOpenTryResponse.toObject = function toObject(message, options) { + Allocation.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.version = ""; - if (message.version != null && message.hasOwnProperty("version")) - object.version = message.version; + if (options.arrays || options.defaults) { + object.spend_limit = []; + object.allow_list = []; + } + if (options.defaults) { + object.source_port = ""; + object.source_channel = ""; + } + if (message.source_port != null && message.hasOwnProperty("source_port")) + object.source_port = message.source_port; + if (message.source_channel != null && message.hasOwnProperty("source_channel")) + object.source_channel = message.source_channel; + if (message.spend_limit && message.spend_limit.length) { + object.spend_limit = []; + for (var j = 0; j < message.spend_limit.length; ++j) + object.spend_limit[j] = $root.cosmos.base.v1beta1.Coin.toObject(message.spend_limit[j], options); + } + if (message.allow_list && message.allow_list.length) { + object.allow_list = []; + for (var j = 0; j < message.allow_list.length; ++j) + object.allow_list[j] = message.allow_list[j]; + } return object; }; /** - * Converts this MsgChannelOpenTryResponse to JSON. + * Converts this Allocation to JSON. * @function toJSON - * @memberof ibc.core.channel.v1.MsgChannelOpenTryResponse + * @memberof ibc.applications.transfer.v1.Allocation * @instance * @returns {Object.} JSON object */ - MsgChannelOpenTryResponse.prototype.toJSON = function toJSON() { + Allocation.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MsgChannelOpenTryResponse; + return Allocation; })(); - v1.MsgChannelOpenAck = (function() { + v1.TransferAuthorization = (function() { /** - * Properties of a MsgChannelOpenAck. - * @memberof ibc.core.channel.v1 - * @interface IMsgChannelOpenAck - * @property {string|null} [port_id] MsgChannelOpenAck port_id - * @property {string|null} [channel_id] MsgChannelOpenAck channel_id - * @property {string|null} [counterparty_channel_id] MsgChannelOpenAck counterparty_channel_id - * @property {string|null} [counterparty_version] MsgChannelOpenAck counterparty_version - * @property {Uint8Array|null} [proof_try] MsgChannelOpenAck proof_try - * @property {ibc.core.client.v1.IHeight|null} [proof_height] MsgChannelOpenAck proof_height - * @property {string|null} [signer] MsgChannelOpenAck signer + * Properties of a TransferAuthorization. + * @memberof ibc.applications.transfer.v1 + * @interface ITransferAuthorization + * @property {Array.|null} [allocations] TransferAuthorization allocations */ /** - * Constructs a new MsgChannelOpenAck. - * @memberof ibc.core.channel.v1 - * @classdesc Represents a MsgChannelOpenAck. - * @implements IMsgChannelOpenAck + * Constructs a new TransferAuthorization. + * @memberof ibc.applications.transfer.v1 + * @classdesc Represents a TransferAuthorization. + * @implements ITransferAuthorization * @constructor - * @param {ibc.core.channel.v1.IMsgChannelOpenAck=} [properties] Properties to set + * @param {ibc.applications.transfer.v1.ITransferAuthorization=} [properties] Properties to set */ - function MsgChannelOpenAck(properties) { + function TransferAuthorization(properties) { + this.allocations = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -37552,141 +43880,66 @@ } /** - * MsgChannelOpenAck port_id. - * @member {string} port_id - * @memberof ibc.core.channel.v1.MsgChannelOpenAck - * @instance - */ - MsgChannelOpenAck.prototype.port_id = ""; - - /** - * MsgChannelOpenAck channel_id. - * @member {string} channel_id - * @memberof ibc.core.channel.v1.MsgChannelOpenAck - * @instance - */ - MsgChannelOpenAck.prototype.channel_id = ""; - - /** - * MsgChannelOpenAck counterparty_channel_id. - * @member {string} counterparty_channel_id - * @memberof ibc.core.channel.v1.MsgChannelOpenAck - * @instance - */ - MsgChannelOpenAck.prototype.counterparty_channel_id = ""; - - /** - * MsgChannelOpenAck counterparty_version. - * @member {string} counterparty_version - * @memberof ibc.core.channel.v1.MsgChannelOpenAck - * @instance - */ - MsgChannelOpenAck.prototype.counterparty_version = ""; - - /** - * MsgChannelOpenAck proof_try. - * @member {Uint8Array} proof_try - * @memberof ibc.core.channel.v1.MsgChannelOpenAck - * @instance - */ - MsgChannelOpenAck.prototype.proof_try = $util.newBuffer([]); - - /** - * MsgChannelOpenAck proof_height. - * @member {ibc.core.client.v1.IHeight|null|undefined} proof_height - * @memberof ibc.core.channel.v1.MsgChannelOpenAck - * @instance - */ - MsgChannelOpenAck.prototype.proof_height = null; - - /** - * MsgChannelOpenAck signer. - * @member {string} signer - * @memberof ibc.core.channel.v1.MsgChannelOpenAck + * TransferAuthorization allocations. + * @member {Array.} allocations + * @memberof ibc.applications.transfer.v1.TransferAuthorization * @instance */ - MsgChannelOpenAck.prototype.signer = ""; + TransferAuthorization.prototype.allocations = $util.emptyArray; /** - * Encodes the specified MsgChannelOpenAck message. Does not implicitly {@link ibc.core.channel.v1.MsgChannelOpenAck.verify|verify} messages. + * Encodes the specified TransferAuthorization message. Does not implicitly {@link ibc.applications.transfer.v1.TransferAuthorization.verify|verify} messages. * @function encode - * @memberof ibc.core.channel.v1.MsgChannelOpenAck + * @memberof ibc.applications.transfer.v1.TransferAuthorization * @static - * @param {ibc.core.channel.v1.IMsgChannelOpenAck} message MsgChannelOpenAck message or plain object to encode + * @param {ibc.applications.transfer.v1.ITransferAuthorization} message TransferAuthorization message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgChannelOpenAck.encode = function encode(message, writer) { + TransferAuthorization.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.port_id != null && Object.hasOwnProperty.call(message, "port_id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.port_id); - if (message.channel_id != null && Object.hasOwnProperty.call(message, "channel_id")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.channel_id); - if (message.counterparty_channel_id != null && Object.hasOwnProperty.call(message, "counterparty_channel_id")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.counterparty_channel_id); - if (message.counterparty_version != null && Object.hasOwnProperty.call(message, "counterparty_version")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.counterparty_version); - if (message.proof_try != null && Object.hasOwnProperty.call(message, "proof_try")) - writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.proof_try); - if (message.proof_height != null && Object.hasOwnProperty.call(message, "proof_height")) - $root.ibc.core.client.v1.Height.encode(message.proof_height, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.signer != null && Object.hasOwnProperty.call(message, "signer")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.signer); + if (message.allocations != null && message.allocations.length) + for (var i = 0; i < message.allocations.length; ++i) + $root.ibc.applications.transfer.v1.Allocation.encode(message.allocations[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified MsgChannelOpenAck message, length delimited. Does not implicitly {@link ibc.core.channel.v1.MsgChannelOpenAck.verify|verify} messages. + * Encodes the specified TransferAuthorization message, length delimited. Does not implicitly {@link ibc.applications.transfer.v1.TransferAuthorization.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.channel.v1.MsgChannelOpenAck + * @memberof ibc.applications.transfer.v1.TransferAuthorization * @static - * @param {ibc.core.channel.v1.IMsgChannelOpenAck} message MsgChannelOpenAck message or plain object to encode + * @param {ibc.applications.transfer.v1.ITransferAuthorization} message TransferAuthorization message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgChannelOpenAck.encodeDelimited = function encodeDelimited(message, writer) { + TransferAuthorization.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MsgChannelOpenAck message from the specified reader or buffer. + * Decodes a TransferAuthorization message from the specified reader or buffer. * @function decode - * @memberof ibc.core.channel.v1.MsgChannelOpenAck + * @memberof ibc.applications.transfer.v1.TransferAuthorization * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.channel.v1.MsgChannelOpenAck} MsgChannelOpenAck + * @returns {ibc.applications.transfer.v1.TransferAuthorization} TransferAuthorization * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgChannelOpenAck.decode = function decode(reader, length) { + TransferAuthorization.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.MsgChannelOpenAck(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.transfer.v1.TransferAuthorization(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.port_id = reader.string(); - break; - case 2: - message.channel_id = reader.string(); - break; - case 3: - message.counterparty_channel_id = reader.string(); - break; - case 4: - message.counterparty_version = reader.string(); - break; - case 5: - message.proof_try = reader.bytes(); - break; - case 6: - message.proof_height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); - break; - case 7: - message.signer = reader.string(); + if (!(message.allocations && message.allocations.length)) + message.allocations = []; + message.allocations.push($root.ibc.applications.transfer.v1.Allocation.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -37697,169 +43950,129 @@ }; /** - * Decodes a MsgChannelOpenAck message from the specified reader or buffer, length delimited. + * Decodes a TransferAuthorization message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.channel.v1.MsgChannelOpenAck + * @memberof ibc.applications.transfer.v1.TransferAuthorization * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.channel.v1.MsgChannelOpenAck} MsgChannelOpenAck + * @returns {ibc.applications.transfer.v1.TransferAuthorization} TransferAuthorization * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgChannelOpenAck.decodeDelimited = function decodeDelimited(reader) { + TransferAuthorization.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MsgChannelOpenAck message. + * Verifies a TransferAuthorization message. * @function verify - * @memberof ibc.core.channel.v1.MsgChannelOpenAck + * @memberof ibc.applications.transfer.v1.TransferAuthorization * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MsgChannelOpenAck.verify = function verify(message) { + TransferAuthorization.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.port_id != null && message.hasOwnProperty("port_id")) - if (!$util.isString(message.port_id)) - return "port_id: string expected"; - if (message.channel_id != null && message.hasOwnProperty("channel_id")) - if (!$util.isString(message.channel_id)) - return "channel_id: string expected"; - if (message.counterparty_channel_id != null && message.hasOwnProperty("counterparty_channel_id")) - if (!$util.isString(message.counterparty_channel_id)) - return "counterparty_channel_id: string expected"; - if (message.counterparty_version != null && message.hasOwnProperty("counterparty_version")) - if (!$util.isString(message.counterparty_version)) - return "counterparty_version: string expected"; - if (message.proof_try != null && message.hasOwnProperty("proof_try")) - if (!(message.proof_try && typeof message.proof_try.length === "number" || $util.isString(message.proof_try))) - return "proof_try: buffer expected"; - if (message.proof_height != null && message.hasOwnProperty("proof_height")) { - var error = $root.ibc.core.client.v1.Height.verify(message.proof_height); - if (error) - return "proof_height." + error; + if (message.allocations != null && message.hasOwnProperty("allocations")) { + if (!Array.isArray(message.allocations)) + return "allocations: array expected"; + for (var i = 0; i < message.allocations.length; ++i) { + var error = $root.ibc.applications.transfer.v1.Allocation.verify(message.allocations[i]); + if (error) + return "allocations." + error; + } } - if (message.signer != null && message.hasOwnProperty("signer")) - if (!$util.isString(message.signer)) - return "signer: string expected"; return null; }; /** - * Creates a MsgChannelOpenAck message from a plain object. Also converts values to their respective internal types. + * Creates a TransferAuthorization message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.channel.v1.MsgChannelOpenAck + * @memberof ibc.applications.transfer.v1.TransferAuthorization * @static * @param {Object.} object Plain object - * @returns {ibc.core.channel.v1.MsgChannelOpenAck} MsgChannelOpenAck + * @returns {ibc.applications.transfer.v1.TransferAuthorization} TransferAuthorization */ - MsgChannelOpenAck.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.channel.v1.MsgChannelOpenAck) + TransferAuthorization.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.transfer.v1.TransferAuthorization) return object; - var message = new $root.ibc.core.channel.v1.MsgChannelOpenAck(); - if (object.port_id != null) - message.port_id = String(object.port_id); - if (object.channel_id != null) - message.channel_id = String(object.channel_id); - if (object.counterparty_channel_id != null) - message.counterparty_channel_id = String(object.counterparty_channel_id); - if (object.counterparty_version != null) - message.counterparty_version = String(object.counterparty_version); - if (object.proof_try != null) - if (typeof object.proof_try === "string") - $util.base64.decode(object.proof_try, message.proof_try = $util.newBuffer($util.base64.length(object.proof_try)), 0); - else if (object.proof_try.length) - message.proof_try = object.proof_try; - if (object.proof_height != null) { - if (typeof object.proof_height !== "object") - throw TypeError(".ibc.core.channel.v1.MsgChannelOpenAck.proof_height: object expected"); - message.proof_height = $root.ibc.core.client.v1.Height.fromObject(object.proof_height); + var message = new $root.ibc.applications.transfer.v1.TransferAuthorization(); + if (object.allocations) { + if (!Array.isArray(object.allocations)) + throw TypeError(".ibc.applications.transfer.v1.TransferAuthorization.allocations: array expected"); + message.allocations = []; + for (var i = 0; i < object.allocations.length; ++i) { + if (typeof object.allocations[i] !== "object") + throw TypeError(".ibc.applications.transfer.v1.TransferAuthorization.allocations: object expected"); + message.allocations[i] = $root.ibc.applications.transfer.v1.Allocation.fromObject(object.allocations[i]); + } } - if (object.signer != null) - message.signer = String(object.signer); return message; }; /** - * Creates a plain object from a MsgChannelOpenAck message. Also converts values to other types if specified. + * Creates a plain object from a TransferAuthorization message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.channel.v1.MsgChannelOpenAck + * @memberof ibc.applications.transfer.v1.TransferAuthorization * @static - * @param {ibc.core.channel.v1.MsgChannelOpenAck} message MsgChannelOpenAck + * @param {ibc.applications.transfer.v1.TransferAuthorization} message TransferAuthorization * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MsgChannelOpenAck.toObject = function toObject(message, options) { + TransferAuthorization.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.port_id = ""; - object.channel_id = ""; - object.counterparty_channel_id = ""; - object.counterparty_version = ""; - if (options.bytes === String) - object.proof_try = ""; - else { - object.proof_try = []; - if (options.bytes !== Array) - object.proof_try = $util.newBuffer(object.proof_try); - } - object.proof_height = null; - object.signer = ""; + if (options.arrays || options.defaults) + object.allocations = []; + if (message.allocations && message.allocations.length) { + object.allocations = []; + for (var j = 0; j < message.allocations.length; ++j) + object.allocations[j] = $root.ibc.applications.transfer.v1.Allocation.toObject(message.allocations[j], options); } - if (message.port_id != null && message.hasOwnProperty("port_id")) - object.port_id = message.port_id; - if (message.channel_id != null && message.hasOwnProperty("channel_id")) - object.channel_id = message.channel_id; - if (message.counterparty_channel_id != null && message.hasOwnProperty("counterparty_channel_id")) - object.counterparty_channel_id = message.counterparty_channel_id; - if (message.counterparty_version != null && message.hasOwnProperty("counterparty_version")) - object.counterparty_version = message.counterparty_version; - if (message.proof_try != null && message.hasOwnProperty("proof_try")) - object.proof_try = options.bytes === String ? $util.base64.encode(message.proof_try, 0, message.proof_try.length) : options.bytes === Array ? Array.prototype.slice.call(message.proof_try) : message.proof_try; - if (message.proof_height != null && message.hasOwnProperty("proof_height")) - object.proof_height = $root.ibc.core.client.v1.Height.toObject(message.proof_height, options); - if (message.signer != null && message.hasOwnProperty("signer")) - object.signer = message.signer; return object; }; /** - * Converts this MsgChannelOpenAck to JSON. + * Converts this TransferAuthorization to JSON. * @function toJSON - * @memberof ibc.core.channel.v1.MsgChannelOpenAck + * @memberof ibc.applications.transfer.v1.TransferAuthorization * @instance * @returns {Object.} JSON object */ - MsgChannelOpenAck.prototype.toJSON = function toJSON() { + TransferAuthorization.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MsgChannelOpenAck; + return TransferAuthorization; })(); - v1.MsgChannelOpenAckResponse = (function() { + v1.GenesisState = (function() { /** - * Properties of a MsgChannelOpenAckResponse. - * @memberof ibc.core.channel.v1 - * @interface IMsgChannelOpenAckResponse + * Properties of a GenesisState. + * @memberof ibc.applications.transfer.v1 + * @interface IGenesisState + * @property {string|null} [port_id] GenesisState port_id + * @property {Array.|null} [denom_traces] GenesisState denom_traces + * @property {ibc.applications.transfer.v1.IParams|null} [params] GenesisState params + * @property {Array.|null} [total_escrowed] GenesisState total_escrowed */ /** - * Constructs a new MsgChannelOpenAckResponse. - * @memberof ibc.core.channel.v1 - * @classdesc Represents a MsgChannelOpenAckResponse. - * @implements IMsgChannelOpenAckResponse + * Constructs a new GenesisState. + * @memberof ibc.applications.transfer.v1 + * @classdesc Represents a GenesisState. + * @implements IGenesisState * @constructor - * @param {ibc.core.channel.v1.IMsgChannelOpenAckResponse=} [properties] Properties to set + * @param {ibc.applications.transfer.v1.IGenesisState=} [properties] Properties to set */ - function MsgChannelOpenAckResponse(properties) { + function GenesisState(properties) { + this.denom_traces = []; + this.total_escrowed = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -37867,51 +44080,109 @@ } /** - * Encodes the specified MsgChannelOpenAckResponse message. Does not implicitly {@link ibc.core.channel.v1.MsgChannelOpenAckResponse.verify|verify} messages. + * GenesisState port_id. + * @member {string} port_id + * @memberof ibc.applications.transfer.v1.GenesisState + * @instance + */ + GenesisState.prototype.port_id = ""; + + /** + * GenesisState denom_traces. + * @member {Array.} denom_traces + * @memberof ibc.applications.transfer.v1.GenesisState + * @instance + */ + GenesisState.prototype.denom_traces = $util.emptyArray; + + /** + * GenesisState params. + * @member {ibc.applications.transfer.v1.IParams|null|undefined} params + * @memberof ibc.applications.transfer.v1.GenesisState + * @instance + */ + GenesisState.prototype.params = null; + + /** + * GenesisState total_escrowed. + * @member {Array.} total_escrowed + * @memberof ibc.applications.transfer.v1.GenesisState + * @instance + */ + GenesisState.prototype.total_escrowed = $util.emptyArray; + + /** + * Encodes the specified GenesisState message. Does not implicitly {@link ibc.applications.transfer.v1.GenesisState.verify|verify} messages. * @function encode - * @memberof ibc.core.channel.v1.MsgChannelOpenAckResponse + * @memberof ibc.applications.transfer.v1.GenesisState * @static - * @param {ibc.core.channel.v1.IMsgChannelOpenAckResponse} message MsgChannelOpenAckResponse message or plain object to encode + * @param {ibc.applications.transfer.v1.IGenesisState} message GenesisState message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgChannelOpenAckResponse.encode = function encode(message, writer) { + GenesisState.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.port_id != null && Object.hasOwnProperty.call(message, "port_id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.port_id); + if (message.denom_traces != null && message.denom_traces.length) + for (var i = 0; i < message.denom_traces.length; ++i) + $root.ibc.applications.transfer.v1.DenomTrace.encode(message.denom_traces[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.params != null && Object.hasOwnProperty.call(message, "params")) + $root.ibc.applications.transfer.v1.Params.encode(message.params, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.total_escrowed != null && message.total_escrowed.length) + for (var i = 0; i < message.total_escrowed.length; ++i) + $root.cosmos.base.v1beta1.Coin.encode(message.total_escrowed[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; /** - * Encodes the specified MsgChannelOpenAckResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.MsgChannelOpenAckResponse.verify|verify} messages. + * Encodes the specified GenesisState message, length delimited. Does not implicitly {@link ibc.applications.transfer.v1.GenesisState.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.channel.v1.MsgChannelOpenAckResponse + * @memberof ibc.applications.transfer.v1.GenesisState * @static - * @param {ibc.core.channel.v1.IMsgChannelOpenAckResponse} message MsgChannelOpenAckResponse message or plain object to encode + * @param {ibc.applications.transfer.v1.IGenesisState} message GenesisState message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgChannelOpenAckResponse.encodeDelimited = function encodeDelimited(message, writer) { + GenesisState.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MsgChannelOpenAckResponse message from the specified reader or buffer. + * Decodes a GenesisState message from the specified reader or buffer. * @function decode - * @memberof ibc.core.channel.v1.MsgChannelOpenAckResponse + * @memberof ibc.applications.transfer.v1.GenesisState * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.channel.v1.MsgChannelOpenAckResponse} MsgChannelOpenAckResponse + * @returns {ibc.applications.transfer.v1.GenesisState} GenesisState * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgChannelOpenAckResponse.decode = function decode(reader, length) { + GenesisState.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.MsgChannelOpenAckResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.transfer.v1.GenesisState(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: + message.port_id = reader.string(); + break; + case 2: + if (!(message.denom_traces && message.denom_traces.length)) + message.denom_traces = []; + message.denom_traces.push($root.ibc.applications.transfer.v1.DenomTrace.decode(reader, reader.uint32())); + break; + case 3: + message.params = $root.ibc.applications.transfer.v1.Params.decode(reader, reader.uint32()); + break; + case 4: + if (!(message.total_escrowed && message.total_escrowed.length)) + message.total_escrowed = []; + message.total_escrowed.push($root.cosmos.base.v1beta1.Coin.decode(reader, reader.uint32())); + break; default: reader.skipType(tag & 7); break; @@ -37921,98 +44192,189 @@ }; /** - * Decodes a MsgChannelOpenAckResponse message from the specified reader or buffer, length delimited. + * Decodes a GenesisState message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.channel.v1.MsgChannelOpenAckResponse + * @memberof ibc.applications.transfer.v1.GenesisState * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.channel.v1.MsgChannelOpenAckResponse} MsgChannelOpenAckResponse + * @returns {ibc.applications.transfer.v1.GenesisState} GenesisState * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgChannelOpenAckResponse.decodeDelimited = function decodeDelimited(reader) { + GenesisState.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MsgChannelOpenAckResponse message. + * Verifies a GenesisState message. * @function verify - * @memberof ibc.core.channel.v1.MsgChannelOpenAckResponse + * @memberof ibc.applications.transfer.v1.GenesisState * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MsgChannelOpenAckResponse.verify = function verify(message) { + GenesisState.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.port_id != null && message.hasOwnProperty("port_id")) + if (!$util.isString(message.port_id)) + return "port_id: string expected"; + if (message.denom_traces != null && message.hasOwnProperty("denom_traces")) { + if (!Array.isArray(message.denom_traces)) + return "denom_traces: array expected"; + for (var i = 0; i < message.denom_traces.length; ++i) { + var error = $root.ibc.applications.transfer.v1.DenomTrace.verify(message.denom_traces[i]); + if (error) + return "denom_traces." + error; + } + } + if (message.params != null && message.hasOwnProperty("params")) { + var error = $root.ibc.applications.transfer.v1.Params.verify(message.params); + if (error) + return "params." + error; + } + if (message.total_escrowed != null && message.hasOwnProperty("total_escrowed")) { + if (!Array.isArray(message.total_escrowed)) + return "total_escrowed: array expected"; + for (var i = 0; i < message.total_escrowed.length; ++i) { + var error = $root.cosmos.base.v1beta1.Coin.verify(message.total_escrowed[i]); + if (error) + return "total_escrowed." + error; + } + } return null; }; /** - * Creates a MsgChannelOpenAckResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GenesisState message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.channel.v1.MsgChannelOpenAckResponse + * @memberof ibc.applications.transfer.v1.GenesisState * @static * @param {Object.} object Plain object - * @returns {ibc.core.channel.v1.MsgChannelOpenAckResponse} MsgChannelOpenAckResponse + * @returns {ibc.applications.transfer.v1.GenesisState} GenesisState */ - MsgChannelOpenAckResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.channel.v1.MsgChannelOpenAckResponse) + GenesisState.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.transfer.v1.GenesisState) return object; - return new $root.ibc.core.channel.v1.MsgChannelOpenAckResponse(); + var message = new $root.ibc.applications.transfer.v1.GenesisState(); + if (object.port_id != null) + message.port_id = String(object.port_id); + if (object.denom_traces) { + if (!Array.isArray(object.denom_traces)) + throw TypeError(".ibc.applications.transfer.v1.GenesisState.denom_traces: array expected"); + message.denom_traces = []; + for (var i = 0; i < object.denom_traces.length; ++i) { + if (typeof object.denom_traces[i] !== "object") + throw TypeError(".ibc.applications.transfer.v1.GenesisState.denom_traces: object expected"); + message.denom_traces[i] = $root.ibc.applications.transfer.v1.DenomTrace.fromObject(object.denom_traces[i]); + } + } + if (object.params != null) { + if (typeof object.params !== "object") + throw TypeError(".ibc.applications.transfer.v1.GenesisState.params: object expected"); + message.params = $root.ibc.applications.transfer.v1.Params.fromObject(object.params); + } + if (object.total_escrowed) { + if (!Array.isArray(object.total_escrowed)) + throw TypeError(".ibc.applications.transfer.v1.GenesisState.total_escrowed: array expected"); + message.total_escrowed = []; + for (var i = 0; i < object.total_escrowed.length; ++i) { + if (typeof object.total_escrowed[i] !== "object") + throw TypeError(".ibc.applications.transfer.v1.GenesisState.total_escrowed: object expected"); + message.total_escrowed[i] = $root.cosmos.base.v1beta1.Coin.fromObject(object.total_escrowed[i]); + } + } + return message; }; /** - * Creates a plain object from a MsgChannelOpenAckResponse message. Also converts values to other types if specified. + * Creates a plain object from a GenesisState message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.channel.v1.MsgChannelOpenAckResponse + * @memberof ibc.applications.transfer.v1.GenesisState * @static - * @param {ibc.core.channel.v1.MsgChannelOpenAckResponse} message MsgChannelOpenAckResponse + * @param {ibc.applications.transfer.v1.GenesisState} message GenesisState * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MsgChannelOpenAckResponse.toObject = function toObject() { - return {}; + GenesisState.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.denom_traces = []; + object.total_escrowed = []; + } + if (options.defaults) { + object.port_id = ""; + object.params = null; + } + if (message.port_id != null && message.hasOwnProperty("port_id")) + object.port_id = message.port_id; + if (message.denom_traces && message.denom_traces.length) { + object.denom_traces = []; + for (var j = 0; j < message.denom_traces.length; ++j) + object.denom_traces[j] = $root.ibc.applications.transfer.v1.DenomTrace.toObject(message.denom_traces[j], options); + } + if (message.params != null && message.hasOwnProperty("params")) + object.params = $root.ibc.applications.transfer.v1.Params.toObject(message.params, options); + if (message.total_escrowed && message.total_escrowed.length) { + object.total_escrowed = []; + for (var j = 0; j < message.total_escrowed.length; ++j) + object.total_escrowed[j] = $root.cosmos.base.v1beta1.Coin.toObject(message.total_escrowed[j], options); + } + return object; }; /** - * Converts this MsgChannelOpenAckResponse to JSON. + * Converts this GenesisState to JSON. * @function toJSON - * @memberof ibc.core.channel.v1.MsgChannelOpenAckResponse + * @memberof ibc.applications.transfer.v1.GenesisState * @instance * @returns {Object.} JSON object */ - MsgChannelOpenAckResponse.prototype.toJSON = function toJSON() { + GenesisState.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MsgChannelOpenAckResponse; + return GenesisState; })(); - v1.MsgChannelOpenConfirm = (function() { + return v1; + })(); + + transfer.v2 = (function() { + + /** + * Namespace v2. + * @memberof ibc.applications.transfer + * @namespace + */ + var v2 = {}; + + v2.FungibleTokenPacketData = (function() { /** - * Properties of a MsgChannelOpenConfirm. - * @memberof ibc.core.channel.v1 - * @interface IMsgChannelOpenConfirm - * @property {string|null} [port_id] MsgChannelOpenConfirm port_id - * @property {string|null} [channel_id] MsgChannelOpenConfirm channel_id - * @property {Uint8Array|null} [proof_ack] MsgChannelOpenConfirm proof_ack - * @property {ibc.core.client.v1.IHeight|null} [proof_height] MsgChannelOpenConfirm proof_height - * @property {string|null} [signer] MsgChannelOpenConfirm signer + * Properties of a FungibleTokenPacketData. + * @memberof ibc.applications.transfer.v2 + * @interface IFungibleTokenPacketData + * @property {string|null} [denom] FungibleTokenPacketData denom + * @property {string|null} [amount] FungibleTokenPacketData amount + * @property {string|null} [sender] FungibleTokenPacketData sender + * @property {string|null} [receiver] FungibleTokenPacketData receiver + * @property {string|null} [memo] FungibleTokenPacketData memo */ /** - * Constructs a new MsgChannelOpenConfirm. - * @memberof ibc.core.channel.v1 - * @classdesc Represents a MsgChannelOpenConfirm. - * @implements IMsgChannelOpenConfirm + * Constructs a new FungibleTokenPacketData. + * @memberof ibc.applications.transfer.v2 + * @classdesc Represents a FungibleTokenPacketData. + * @implements IFungibleTokenPacketData * @constructor - * @param {ibc.core.channel.v1.IMsgChannelOpenConfirm=} [properties] Properties to set + * @param {ibc.applications.transfer.v2.IFungibleTokenPacketData=} [properties] Properties to set */ - function MsgChannelOpenConfirm(properties) { + function FungibleTokenPacketData(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -38020,115 +44382,115 @@ } /** - * MsgChannelOpenConfirm port_id. - * @member {string} port_id - * @memberof ibc.core.channel.v1.MsgChannelOpenConfirm + * FungibleTokenPacketData denom. + * @member {string} denom + * @memberof ibc.applications.transfer.v2.FungibleTokenPacketData * @instance */ - MsgChannelOpenConfirm.prototype.port_id = ""; + FungibleTokenPacketData.prototype.denom = ""; /** - * MsgChannelOpenConfirm channel_id. - * @member {string} channel_id - * @memberof ibc.core.channel.v1.MsgChannelOpenConfirm + * FungibleTokenPacketData amount. + * @member {string} amount + * @memberof ibc.applications.transfer.v2.FungibleTokenPacketData * @instance */ - MsgChannelOpenConfirm.prototype.channel_id = ""; + FungibleTokenPacketData.prototype.amount = ""; /** - * MsgChannelOpenConfirm proof_ack. - * @member {Uint8Array} proof_ack - * @memberof ibc.core.channel.v1.MsgChannelOpenConfirm + * FungibleTokenPacketData sender. + * @member {string} sender + * @memberof ibc.applications.transfer.v2.FungibleTokenPacketData * @instance */ - MsgChannelOpenConfirm.prototype.proof_ack = $util.newBuffer([]); + FungibleTokenPacketData.prototype.sender = ""; /** - * MsgChannelOpenConfirm proof_height. - * @member {ibc.core.client.v1.IHeight|null|undefined} proof_height - * @memberof ibc.core.channel.v1.MsgChannelOpenConfirm + * FungibleTokenPacketData receiver. + * @member {string} receiver + * @memberof ibc.applications.transfer.v2.FungibleTokenPacketData * @instance */ - MsgChannelOpenConfirm.prototype.proof_height = null; + FungibleTokenPacketData.prototype.receiver = ""; /** - * MsgChannelOpenConfirm signer. - * @member {string} signer - * @memberof ibc.core.channel.v1.MsgChannelOpenConfirm + * FungibleTokenPacketData memo. + * @member {string} memo + * @memberof ibc.applications.transfer.v2.FungibleTokenPacketData * @instance */ - MsgChannelOpenConfirm.prototype.signer = ""; + FungibleTokenPacketData.prototype.memo = ""; /** - * Encodes the specified MsgChannelOpenConfirm message. Does not implicitly {@link ibc.core.channel.v1.MsgChannelOpenConfirm.verify|verify} messages. + * Encodes the specified FungibleTokenPacketData message. Does not implicitly {@link ibc.applications.transfer.v2.FungibleTokenPacketData.verify|verify} messages. * @function encode - * @memberof ibc.core.channel.v1.MsgChannelOpenConfirm + * @memberof ibc.applications.transfer.v2.FungibleTokenPacketData * @static - * @param {ibc.core.channel.v1.IMsgChannelOpenConfirm} message MsgChannelOpenConfirm message or plain object to encode + * @param {ibc.applications.transfer.v2.IFungibleTokenPacketData} message FungibleTokenPacketData message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgChannelOpenConfirm.encode = function encode(message, writer) { + FungibleTokenPacketData.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.port_id != null && Object.hasOwnProperty.call(message, "port_id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.port_id); - if (message.channel_id != null && Object.hasOwnProperty.call(message, "channel_id")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.channel_id); - if (message.proof_ack != null && Object.hasOwnProperty.call(message, "proof_ack")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.proof_ack); - if (message.proof_height != null && Object.hasOwnProperty.call(message, "proof_height")) - $root.ibc.core.client.v1.Height.encode(message.proof_height, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.signer != null && Object.hasOwnProperty.call(message, "signer")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.signer); + if (message.denom != null && Object.hasOwnProperty.call(message, "denom")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.denom); + if (message.amount != null && Object.hasOwnProperty.call(message, "amount")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.amount); + if (message.sender != null && Object.hasOwnProperty.call(message, "sender")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.sender); + if (message.receiver != null && Object.hasOwnProperty.call(message, "receiver")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.receiver); + if (message.memo != null && Object.hasOwnProperty.call(message, "memo")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.memo); return writer; }; /** - * Encodes the specified MsgChannelOpenConfirm message, length delimited. Does not implicitly {@link ibc.core.channel.v1.MsgChannelOpenConfirm.verify|verify} messages. + * Encodes the specified FungibleTokenPacketData message, length delimited. Does not implicitly {@link ibc.applications.transfer.v2.FungibleTokenPacketData.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.channel.v1.MsgChannelOpenConfirm + * @memberof ibc.applications.transfer.v2.FungibleTokenPacketData * @static - * @param {ibc.core.channel.v1.IMsgChannelOpenConfirm} message MsgChannelOpenConfirm message or plain object to encode + * @param {ibc.applications.transfer.v2.IFungibleTokenPacketData} message FungibleTokenPacketData message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgChannelOpenConfirm.encodeDelimited = function encodeDelimited(message, writer) { + FungibleTokenPacketData.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MsgChannelOpenConfirm message from the specified reader or buffer. + * Decodes a FungibleTokenPacketData message from the specified reader or buffer. * @function decode - * @memberof ibc.core.channel.v1.MsgChannelOpenConfirm + * @memberof ibc.applications.transfer.v2.FungibleTokenPacketData * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.channel.v1.MsgChannelOpenConfirm} MsgChannelOpenConfirm + * @returns {ibc.applications.transfer.v2.FungibleTokenPacketData} FungibleTokenPacketData * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgChannelOpenConfirm.decode = function decode(reader, length) { + FungibleTokenPacketData.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.MsgChannelOpenConfirm(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.transfer.v2.FungibleTokenPacketData(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.port_id = reader.string(); + message.denom = reader.string(); break; case 2: - message.channel_id = reader.string(); + message.amount = reader.string(); break; case 3: - message.proof_ack = reader.bytes(); + message.sender = reader.string(); break; case 4: - message.proof_height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); + message.receiver = reader.string(); break; case 5: - message.signer = reader.string(); + message.memo = reader.string(); break; default: reader.skipType(tag & 7); @@ -38139,205 +44501,301 @@ }; /** - * Decodes a MsgChannelOpenConfirm message from the specified reader or buffer, length delimited. + * Decodes a FungibleTokenPacketData message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.channel.v1.MsgChannelOpenConfirm + * @memberof ibc.applications.transfer.v2.FungibleTokenPacketData * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.channel.v1.MsgChannelOpenConfirm} MsgChannelOpenConfirm + * @returns {ibc.applications.transfer.v2.FungibleTokenPacketData} FungibleTokenPacketData * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgChannelOpenConfirm.decodeDelimited = function decodeDelimited(reader) { + FungibleTokenPacketData.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MsgChannelOpenConfirm message. + * Verifies a FungibleTokenPacketData message. * @function verify - * @memberof ibc.core.channel.v1.MsgChannelOpenConfirm + * @memberof ibc.applications.transfer.v2.FungibleTokenPacketData * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MsgChannelOpenConfirm.verify = function verify(message) { + FungibleTokenPacketData.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.port_id != null && message.hasOwnProperty("port_id")) - if (!$util.isString(message.port_id)) - return "port_id: string expected"; - if (message.channel_id != null && message.hasOwnProperty("channel_id")) - if (!$util.isString(message.channel_id)) - return "channel_id: string expected"; - if (message.proof_ack != null && message.hasOwnProperty("proof_ack")) - if (!(message.proof_ack && typeof message.proof_ack.length === "number" || $util.isString(message.proof_ack))) - return "proof_ack: buffer expected"; - if (message.proof_height != null && message.hasOwnProperty("proof_height")) { - var error = $root.ibc.core.client.v1.Height.verify(message.proof_height); - if (error) - return "proof_height." + error; - } - if (message.signer != null && message.hasOwnProperty("signer")) - if (!$util.isString(message.signer)) - return "signer: string expected"; + if (message.denom != null && message.hasOwnProperty("denom")) + if (!$util.isString(message.denom)) + return "denom: string expected"; + if (message.amount != null && message.hasOwnProperty("amount")) + if (!$util.isString(message.amount)) + return "amount: string expected"; + if (message.sender != null && message.hasOwnProperty("sender")) + if (!$util.isString(message.sender)) + return "sender: string expected"; + if (message.receiver != null && message.hasOwnProperty("receiver")) + if (!$util.isString(message.receiver)) + return "receiver: string expected"; + if (message.memo != null && message.hasOwnProperty("memo")) + if (!$util.isString(message.memo)) + return "memo: string expected"; return null; }; /** - * Creates a MsgChannelOpenConfirm message from a plain object. Also converts values to their respective internal types. + * Creates a FungibleTokenPacketData message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.channel.v1.MsgChannelOpenConfirm + * @memberof ibc.applications.transfer.v2.FungibleTokenPacketData * @static * @param {Object.} object Plain object - * @returns {ibc.core.channel.v1.MsgChannelOpenConfirm} MsgChannelOpenConfirm + * @returns {ibc.applications.transfer.v2.FungibleTokenPacketData} FungibleTokenPacketData */ - MsgChannelOpenConfirm.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.channel.v1.MsgChannelOpenConfirm) + FungibleTokenPacketData.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.transfer.v2.FungibleTokenPacketData) return object; - var message = new $root.ibc.core.channel.v1.MsgChannelOpenConfirm(); - if (object.port_id != null) - message.port_id = String(object.port_id); - if (object.channel_id != null) - message.channel_id = String(object.channel_id); - if (object.proof_ack != null) - if (typeof object.proof_ack === "string") - $util.base64.decode(object.proof_ack, message.proof_ack = $util.newBuffer($util.base64.length(object.proof_ack)), 0); - else if (object.proof_ack.length) - message.proof_ack = object.proof_ack; - if (object.proof_height != null) { - if (typeof object.proof_height !== "object") - throw TypeError(".ibc.core.channel.v1.MsgChannelOpenConfirm.proof_height: object expected"); - message.proof_height = $root.ibc.core.client.v1.Height.fromObject(object.proof_height); - } - if (object.signer != null) - message.signer = String(object.signer); + var message = new $root.ibc.applications.transfer.v2.FungibleTokenPacketData(); + if (object.denom != null) + message.denom = String(object.denom); + if (object.amount != null) + message.amount = String(object.amount); + if (object.sender != null) + message.sender = String(object.sender); + if (object.receiver != null) + message.receiver = String(object.receiver); + if (object.memo != null) + message.memo = String(object.memo); return message; }; /** - * Creates a plain object from a MsgChannelOpenConfirm message. Also converts values to other types if specified. + * Creates a plain object from a FungibleTokenPacketData message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.channel.v1.MsgChannelOpenConfirm + * @memberof ibc.applications.transfer.v2.FungibleTokenPacketData * @static - * @param {ibc.core.channel.v1.MsgChannelOpenConfirm} message MsgChannelOpenConfirm + * @param {ibc.applications.transfer.v2.FungibleTokenPacketData} message FungibleTokenPacketData * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MsgChannelOpenConfirm.toObject = function toObject(message, options) { + FungibleTokenPacketData.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.port_id = ""; - object.channel_id = ""; - if (options.bytes === String) - object.proof_ack = ""; - else { - object.proof_ack = []; - if (options.bytes !== Array) - object.proof_ack = $util.newBuffer(object.proof_ack); - } - object.proof_height = null; - object.signer = ""; + object.denom = ""; + object.amount = ""; + object.sender = ""; + object.receiver = ""; + object.memo = ""; } - if (message.port_id != null && message.hasOwnProperty("port_id")) - object.port_id = message.port_id; - if (message.channel_id != null && message.hasOwnProperty("channel_id")) - object.channel_id = message.channel_id; - if (message.proof_ack != null && message.hasOwnProperty("proof_ack")) - object.proof_ack = options.bytes === String ? $util.base64.encode(message.proof_ack, 0, message.proof_ack.length) : options.bytes === Array ? Array.prototype.slice.call(message.proof_ack) : message.proof_ack; - if (message.proof_height != null && message.hasOwnProperty("proof_height")) - object.proof_height = $root.ibc.core.client.v1.Height.toObject(message.proof_height, options); - if (message.signer != null && message.hasOwnProperty("signer")) - object.signer = message.signer; + if (message.denom != null && message.hasOwnProperty("denom")) + object.denom = message.denom; + if (message.amount != null && message.hasOwnProperty("amount")) + object.amount = message.amount; + if (message.sender != null && message.hasOwnProperty("sender")) + object.sender = message.sender; + if (message.receiver != null && message.hasOwnProperty("receiver")) + object.receiver = message.receiver; + if (message.memo != null && message.hasOwnProperty("memo")) + object.memo = message.memo; return object; }; /** - * Converts this MsgChannelOpenConfirm to JSON. + * Converts this FungibleTokenPacketData to JSON. * @function toJSON - * @memberof ibc.core.channel.v1.MsgChannelOpenConfirm + * @memberof ibc.applications.transfer.v2.FungibleTokenPacketData * @instance * @returns {Object.} JSON object */ - MsgChannelOpenConfirm.prototype.toJSON = function toJSON() { + FungibleTokenPacketData.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MsgChannelOpenConfirm; + return FungibleTokenPacketData; })(); - v1.MsgChannelOpenConfirmResponse = (function() { + return v2; + })(); + + return transfer; + })(); + + return applications; + })(); + + ibc.core = (function() { + + /** + * Namespace core. + * @memberof ibc + * @namespace + */ + var core = {}; + + core.channel = (function() { + + /** + * Namespace channel. + * @memberof ibc.core + * @namespace + */ + var channel = {}; + + channel.v1 = (function() { + + /** + * Namespace v1. + * @memberof ibc.core.channel + * @namespace + */ + var v1 = {}; + + v1.Channel = (function() { /** - * Properties of a MsgChannelOpenConfirmResponse. + * Properties of a Channel. * @memberof ibc.core.channel.v1 - * @interface IMsgChannelOpenConfirmResponse + * @interface IChannel + * @property {ibc.core.channel.v1.State|null} [state] Channel state + * @property {ibc.core.channel.v1.Order|null} [ordering] Channel ordering + * @property {ibc.core.channel.v1.ICounterparty|null} [counterparty] Channel counterparty + * @property {Array.|null} [connection_hops] Channel connection_hops + * @property {string|null} [version] Channel version + */ + + /** + * Constructs a new Channel. + * @memberof ibc.core.channel.v1 + * @classdesc Represents a Channel. + * @implements IChannel + * @constructor + * @param {ibc.core.channel.v1.IChannel=} [properties] Properties to set + */ + function Channel(properties) { + this.connection_hops = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Channel state. + * @member {ibc.core.channel.v1.State} state + * @memberof ibc.core.channel.v1.Channel + * @instance + */ + Channel.prototype.state = 0; + + /** + * Channel ordering. + * @member {ibc.core.channel.v1.Order} ordering + * @memberof ibc.core.channel.v1.Channel + * @instance + */ + Channel.prototype.ordering = 0; + + /** + * Channel counterparty. + * @member {ibc.core.channel.v1.ICounterparty|null|undefined} counterparty + * @memberof ibc.core.channel.v1.Channel + * @instance + */ + Channel.prototype.counterparty = null; + + /** + * Channel connection_hops. + * @member {Array.} connection_hops + * @memberof ibc.core.channel.v1.Channel + * @instance */ + Channel.prototype.connection_hops = $util.emptyArray; /** - * Constructs a new MsgChannelOpenConfirmResponse. - * @memberof ibc.core.channel.v1 - * @classdesc Represents a MsgChannelOpenConfirmResponse. - * @implements IMsgChannelOpenConfirmResponse - * @constructor - * @param {ibc.core.channel.v1.IMsgChannelOpenConfirmResponse=} [properties] Properties to set + * Channel version. + * @member {string} version + * @memberof ibc.core.channel.v1.Channel + * @instance */ - function MsgChannelOpenConfirmResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + Channel.prototype.version = ""; /** - * Encodes the specified MsgChannelOpenConfirmResponse message. Does not implicitly {@link ibc.core.channel.v1.MsgChannelOpenConfirmResponse.verify|verify} messages. + * Encodes the specified Channel message. Does not implicitly {@link ibc.core.channel.v1.Channel.verify|verify} messages. * @function encode - * @memberof ibc.core.channel.v1.MsgChannelOpenConfirmResponse + * @memberof ibc.core.channel.v1.Channel * @static - * @param {ibc.core.channel.v1.IMsgChannelOpenConfirmResponse} message MsgChannelOpenConfirmResponse message or plain object to encode + * @param {ibc.core.channel.v1.IChannel} message Channel message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgChannelOpenConfirmResponse.encode = function encode(message, writer) { + Channel.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.state); + if (message.ordering != null && Object.hasOwnProperty.call(message, "ordering")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.ordering); + if (message.counterparty != null && Object.hasOwnProperty.call(message, "counterparty")) + $root.ibc.core.channel.v1.Counterparty.encode(message.counterparty, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.connection_hops != null && message.connection_hops.length) + for (var i = 0; i < message.connection_hops.length; ++i) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.connection_hops[i]); + if (message.version != null && Object.hasOwnProperty.call(message, "version")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.version); return writer; }; /** - * Encodes the specified MsgChannelOpenConfirmResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.MsgChannelOpenConfirmResponse.verify|verify} messages. + * Encodes the specified Channel message, length delimited. Does not implicitly {@link ibc.core.channel.v1.Channel.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.channel.v1.MsgChannelOpenConfirmResponse + * @memberof ibc.core.channel.v1.Channel * @static - * @param {ibc.core.channel.v1.IMsgChannelOpenConfirmResponse} message MsgChannelOpenConfirmResponse message or plain object to encode + * @param {ibc.core.channel.v1.IChannel} message Channel message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgChannelOpenConfirmResponse.encodeDelimited = function encodeDelimited(message, writer) { + Channel.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MsgChannelOpenConfirmResponse message from the specified reader or buffer. + * Decodes a Channel message from the specified reader or buffer. * @function decode - * @memberof ibc.core.channel.v1.MsgChannelOpenConfirmResponse + * @memberof ibc.core.channel.v1.Channel * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.channel.v1.MsgChannelOpenConfirmResponse} MsgChannelOpenConfirmResponse + * @returns {ibc.core.channel.v1.Channel} Channel * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgChannelOpenConfirmResponse.decode = function decode(reader, length) { + Channel.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.MsgChannelOpenConfirmResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.Channel(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: + message.state = reader.int32(); + break; + case 2: + message.ordering = reader.int32(); + break; + case 3: + message.counterparty = $root.ibc.core.channel.v1.Counterparty.decode(reader, reader.uint32()); + break; + case 4: + if (!(message.connection_hops && message.connection_hops.length)) + message.connection_hops = []; + message.connection_hops.push(reader.string()); + break; + case 5: + message.version = reader.string(); + break; default: reader.skipType(tag & 7); break; @@ -38347,96 +44805,211 @@ }; /** - * Decodes a MsgChannelOpenConfirmResponse message from the specified reader or buffer, length delimited. + * Decodes a Channel message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.channel.v1.MsgChannelOpenConfirmResponse + * @memberof ibc.core.channel.v1.Channel * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.channel.v1.MsgChannelOpenConfirmResponse} MsgChannelOpenConfirmResponse + * @returns {ibc.core.channel.v1.Channel} Channel * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgChannelOpenConfirmResponse.decodeDelimited = function decodeDelimited(reader) { + Channel.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MsgChannelOpenConfirmResponse message. + * Verifies a Channel message. * @function verify - * @memberof ibc.core.channel.v1.MsgChannelOpenConfirmResponse + * @memberof ibc.core.channel.v1.Channel * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MsgChannelOpenConfirmResponse.verify = function verify(message) { + Channel.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + break; + } + if (message.ordering != null && message.hasOwnProperty("ordering")) + switch (message.ordering) { + default: + return "ordering: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.counterparty != null && message.hasOwnProperty("counterparty")) { + var error = $root.ibc.core.channel.v1.Counterparty.verify(message.counterparty); + if (error) + return "counterparty." + error; + } + if (message.connection_hops != null && message.hasOwnProperty("connection_hops")) { + if (!Array.isArray(message.connection_hops)) + return "connection_hops: array expected"; + for (var i = 0; i < message.connection_hops.length; ++i) + if (!$util.isString(message.connection_hops[i])) + return "connection_hops: string[] expected"; + } + if (message.version != null && message.hasOwnProperty("version")) + if (!$util.isString(message.version)) + return "version: string expected"; return null; }; /** - * Creates a MsgChannelOpenConfirmResponse message from a plain object. Also converts values to their respective internal types. + * Creates a Channel message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.channel.v1.MsgChannelOpenConfirmResponse + * @memberof ibc.core.channel.v1.Channel * @static * @param {Object.} object Plain object - * @returns {ibc.core.channel.v1.MsgChannelOpenConfirmResponse} MsgChannelOpenConfirmResponse + * @returns {ibc.core.channel.v1.Channel} Channel */ - MsgChannelOpenConfirmResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.channel.v1.MsgChannelOpenConfirmResponse) + Channel.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.channel.v1.Channel) return object; - return new $root.ibc.core.channel.v1.MsgChannelOpenConfirmResponse(); + var message = new $root.ibc.core.channel.v1.Channel(); + switch (object.state) { + case "STATE_UNINITIALIZED_UNSPECIFIED": + case 0: + message.state = 0; + break; + case "STATE_INIT": + case 1: + message.state = 1; + break; + case "STATE_TRYOPEN": + case 2: + message.state = 2; + break; + case "STATE_OPEN": + case 3: + message.state = 3; + break; + case "STATE_CLOSED": + case 4: + message.state = 4; + break; + } + switch (object.ordering) { + case "ORDER_NONE_UNSPECIFIED": + case 0: + message.ordering = 0; + break; + case "ORDER_UNORDERED": + case 1: + message.ordering = 1; + break; + case "ORDER_ORDERED": + case 2: + message.ordering = 2; + break; + } + if (object.counterparty != null) { + if (typeof object.counterparty !== "object") + throw TypeError(".ibc.core.channel.v1.Channel.counterparty: object expected"); + message.counterparty = $root.ibc.core.channel.v1.Counterparty.fromObject(object.counterparty); + } + if (object.connection_hops) { + if (!Array.isArray(object.connection_hops)) + throw TypeError(".ibc.core.channel.v1.Channel.connection_hops: array expected"); + message.connection_hops = []; + for (var i = 0; i < object.connection_hops.length; ++i) + message.connection_hops[i] = String(object.connection_hops[i]); + } + if (object.version != null) + message.version = String(object.version); + return message; }; /** - * Creates a plain object from a MsgChannelOpenConfirmResponse message. Also converts values to other types if specified. + * Creates a plain object from a Channel message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.channel.v1.MsgChannelOpenConfirmResponse + * @memberof ibc.core.channel.v1.Channel * @static - * @param {ibc.core.channel.v1.MsgChannelOpenConfirmResponse} message MsgChannelOpenConfirmResponse + * @param {ibc.core.channel.v1.Channel} message Channel * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MsgChannelOpenConfirmResponse.toObject = function toObject() { - return {}; + Channel.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.connection_hops = []; + if (options.defaults) { + object.state = options.enums === String ? "STATE_UNINITIALIZED_UNSPECIFIED" : 0; + object.ordering = options.enums === String ? "ORDER_NONE_UNSPECIFIED" : 0; + object.counterparty = null; + object.version = ""; + } + if (message.state != null && message.hasOwnProperty("state")) + object.state = options.enums === String ? $root.ibc.core.channel.v1.State[message.state] : message.state; + if (message.ordering != null && message.hasOwnProperty("ordering")) + object.ordering = options.enums === String ? $root.ibc.core.channel.v1.Order[message.ordering] : message.ordering; + if (message.counterparty != null && message.hasOwnProperty("counterparty")) + object.counterparty = $root.ibc.core.channel.v1.Counterparty.toObject(message.counterparty, options); + if (message.connection_hops && message.connection_hops.length) { + object.connection_hops = []; + for (var j = 0; j < message.connection_hops.length; ++j) + object.connection_hops[j] = message.connection_hops[j]; + } + if (message.version != null && message.hasOwnProperty("version")) + object.version = message.version; + return object; }; /** - * Converts this MsgChannelOpenConfirmResponse to JSON. + * Converts this Channel to JSON. * @function toJSON - * @memberof ibc.core.channel.v1.MsgChannelOpenConfirmResponse + * @memberof ibc.core.channel.v1.Channel * @instance * @returns {Object.} JSON object */ - MsgChannelOpenConfirmResponse.prototype.toJSON = function toJSON() { + Channel.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MsgChannelOpenConfirmResponse; + return Channel; })(); - v1.MsgChannelCloseInit = (function() { + v1.IdentifiedChannel = (function() { /** - * Properties of a MsgChannelCloseInit. + * Properties of an IdentifiedChannel. * @memberof ibc.core.channel.v1 - * @interface IMsgChannelCloseInit - * @property {string|null} [port_id] MsgChannelCloseInit port_id - * @property {string|null} [channel_id] MsgChannelCloseInit channel_id - * @property {string|null} [signer] MsgChannelCloseInit signer + * @interface IIdentifiedChannel + * @property {ibc.core.channel.v1.State|null} [state] IdentifiedChannel state + * @property {ibc.core.channel.v1.Order|null} [ordering] IdentifiedChannel ordering + * @property {ibc.core.channel.v1.ICounterparty|null} [counterparty] IdentifiedChannel counterparty + * @property {Array.|null} [connection_hops] IdentifiedChannel connection_hops + * @property {string|null} [version] IdentifiedChannel version + * @property {string|null} [port_id] IdentifiedChannel port_id + * @property {string|null} [channel_id] IdentifiedChannel channel_id */ /** - * Constructs a new MsgChannelCloseInit. + * Constructs a new IdentifiedChannel. * @memberof ibc.core.channel.v1 - * @classdesc Represents a MsgChannelCloseInit. - * @implements IMsgChannelCloseInit + * @classdesc Represents an IdentifiedChannel. + * @implements IIdentifiedChannel * @constructor - * @param {ibc.core.channel.v1.IMsgChannelCloseInit=} [properties] Properties to set + * @param {ibc.core.channel.v1.IIdentifiedChannel=} [properties] Properties to set */ - function MsgChannelCloseInit(properties) { + function IdentifiedChannel(properties) { + this.connection_hops = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -38444,89 +45017,144 @@ } /** - * MsgChannelCloseInit port_id. - * @member {string} port_id - * @memberof ibc.core.channel.v1.MsgChannelCloseInit + * IdentifiedChannel state. + * @member {ibc.core.channel.v1.State} state + * @memberof ibc.core.channel.v1.IdentifiedChannel * @instance */ - MsgChannelCloseInit.prototype.port_id = ""; + IdentifiedChannel.prototype.state = 0; /** - * MsgChannelCloseInit channel_id. - * @member {string} channel_id - * @memberof ibc.core.channel.v1.MsgChannelCloseInit + * IdentifiedChannel ordering. + * @member {ibc.core.channel.v1.Order} ordering + * @memberof ibc.core.channel.v1.IdentifiedChannel * @instance */ - MsgChannelCloseInit.prototype.channel_id = ""; + IdentifiedChannel.prototype.ordering = 0; /** - * MsgChannelCloseInit signer. - * @member {string} signer - * @memberof ibc.core.channel.v1.MsgChannelCloseInit + * IdentifiedChannel counterparty. + * @member {ibc.core.channel.v1.ICounterparty|null|undefined} counterparty + * @memberof ibc.core.channel.v1.IdentifiedChannel * @instance */ - MsgChannelCloseInit.prototype.signer = ""; + IdentifiedChannel.prototype.counterparty = null; /** - * Encodes the specified MsgChannelCloseInit message. Does not implicitly {@link ibc.core.channel.v1.MsgChannelCloseInit.verify|verify} messages. + * IdentifiedChannel connection_hops. + * @member {Array.} connection_hops + * @memberof ibc.core.channel.v1.IdentifiedChannel + * @instance + */ + IdentifiedChannel.prototype.connection_hops = $util.emptyArray; + + /** + * IdentifiedChannel version. + * @member {string} version + * @memberof ibc.core.channel.v1.IdentifiedChannel + * @instance + */ + IdentifiedChannel.prototype.version = ""; + + /** + * IdentifiedChannel port_id. + * @member {string} port_id + * @memberof ibc.core.channel.v1.IdentifiedChannel + * @instance + */ + IdentifiedChannel.prototype.port_id = ""; + + /** + * IdentifiedChannel channel_id. + * @member {string} channel_id + * @memberof ibc.core.channel.v1.IdentifiedChannel + * @instance + */ + IdentifiedChannel.prototype.channel_id = ""; + + /** + * Encodes the specified IdentifiedChannel message. Does not implicitly {@link ibc.core.channel.v1.IdentifiedChannel.verify|verify} messages. * @function encode - * @memberof ibc.core.channel.v1.MsgChannelCloseInit + * @memberof ibc.core.channel.v1.IdentifiedChannel * @static - * @param {ibc.core.channel.v1.IMsgChannelCloseInit} message MsgChannelCloseInit message or plain object to encode + * @param {ibc.core.channel.v1.IIdentifiedChannel} message IdentifiedChannel message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgChannelCloseInit.encode = function encode(message, writer) { + IdentifiedChannel.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.state); + if (message.ordering != null && Object.hasOwnProperty.call(message, "ordering")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.ordering); + if (message.counterparty != null && Object.hasOwnProperty.call(message, "counterparty")) + $root.ibc.core.channel.v1.Counterparty.encode(message.counterparty, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.connection_hops != null && message.connection_hops.length) + for (var i = 0; i < message.connection_hops.length; ++i) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.connection_hops[i]); + if (message.version != null && Object.hasOwnProperty.call(message, "version")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.version); if (message.port_id != null && Object.hasOwnProperty.call(message, "port_id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.port_id); + writer.uint32(/* id 6, wireType 2 =*/50).string(message.port_id); if (message.channel_id != null && Object.hasOwnProperty.call(message, "channel_id")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.channel_id); - if (message.signer != null && Object.hasOwnProperty.call(message, "signer")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.signer); + writer.uint32(/* id 7, wireType 2 =*/58).string(message.channel_id); return writer; }; /** - * Encodes the specified MsgChannelCloseInit message, length delimited. Does not implicitly {@link ibc.core.channel.v1.MsgChannelCloseInit.verify|verify} messages. + * Encodes the specified IdentifiedChannel message, length delimited. Does not implicitly {@link ibc.core.channel.v1.IdentifiedChannel.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.channel.v1.MsgChannelCloseInit + * @memberof ibc.core.channel.v1.IdentifiedChannel * @static - * @param {ibc.core.channel.v1.IMsgChannelCloseInit} message MsgChannelCloseInit message or plain object to encode + * @param {ibc.core.channel.v1.IIdentifiedChannel} message IdentifiedChannel message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgChannelCloseInit.encodeDelimited = function encodeDelimited(message, writer) { + IdentifiedChannel.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MsgChannelCloseInit message from the specified reader or buffer. + * Decodes an IdentifiedChannel message from the specified reader or buffer. * @function decode - * @memberof ibc.core.channel.v1.MsgChannelCloseInit + * @memberof ibc.core.channel.v1.IdentifiedChannel * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.channel.v1.MsgChannelCloseInit} MsgChannelCloseInit + * @returns {ibc.core.channel.v1.IdentifiedChannel} IdentifiedChannel * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgChannelCloseInit.decode = function decode(reader, length) { + IdentifiedChannel.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.MsgChannelCloseInit(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.IdentifiedChannel(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.port_id = reader.string(); + message.state = reader.int32(); break; case 2: - message.channel_id = reader.string(); + message.ordering = reader.int32(); break; case 3: - message.signer = reader.string(); + message.counterparty = $root.ibc.core.channel.v1.Counterparty.decode(reader, reader.uint32()); + break; + case 4: + if (!(message.connection_hops && message.connection_hops.length)) + message.connection_hops = []; + message.connection_hops.push(reader.string()); + break; + case 5: + message.version = reader.string(); + break; + case 6: + message.port_id = reader.string(); + break; + case 7: + message.channel_id = reader.string(); break; default: reader.skipType(tag & 7); @@ -38537,123 +45165,257 @@ }; /** - * Decodes a MsgChannelCloseInit message from the specified reader or buffer, length delimited. + * Decodes an IdentifiedChannel message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.channel.v1.MsgChannelCloseInit + * @memberof ibc.core.channel.v1.IdentifiedChannel * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.channel.v1.MsgChannelCloseInit} MsgChannelCloseInit + * @returns {ibc.core.channel.v1.IdentifiedChannel} IdentifiedChannel * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgChannelCloseInit.decodeDelimited = function decodeDelimited(reader) { + IdentifiedChannel.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MsgChannelCloseInit message. + * Verifies an IdentifiedChannel message. * @function verify - * @memberof ibc.core.channel.v1.MsgChannelCloseInit + * @memberof ibc.core.channel.v1.IdentifiedChannel * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MsgChannelCloseInit.verify = function verify(message) { + IdentifiedChannel.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + break; + } + if (message.ordering != null && message.hasOwnProperty("ordering")) + switch (message.ordering) { + default: + return "ordering: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.counterparty != null && message.hasOwnProperty("counterparty")) { + var error = $root.ibc.core.channel.v1.Counterparty.verify(message.counterparty); + if (error) + return "counterparty." + error; + } + if (message.connection_hops != null && message.hasOwnProperty("connection_hops")) { + if (!Array.isArray(message.connection_hops)) + return "connection_hops: array expected"; + for (var i = 0; i < message.connection_hops.length; ++i) + if (!$util.isString(message.connection_hops[i])) + return "connection_hops: string[] expected"; + } + if (message.version != null && message.hasOwnProperty("version")) + if (!$util.isString(message.version)) + return "version: string expected"; if (message.port_id != null && message.hasOwnProperty("port_id")) if (!$util.isString(message.port_id)) return "port_id: string expected"; if (message.channel_id != null && message.hasOwnProperty("channel_id")) if (!$util.isString(message.channel_id)) return "channel_id: string expected"; - if (message.signer != null && message.hasOwnProperty("signer")) - if (!$util.isString(message.signer)) - return "signer: string expected"; return null; }; /** - * Creates a MsgChannelCloseInit message from a plain object. Also converts values to their respective internal types. + * Creates an IdentifiedChannel message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.channel.v1.MsgChannelCloseInit + * @memberof ibc.core.channel.v1.IdentifiedChannel * @static * @param {Object.} object Plain object - * @returns {ibc.core.channel.v1.MsgChannelCloseInit} MsgChannelCloseInit + * @returns {ibc.core.channel.v1.IdentifiedChannel} IdentifiedChannel */ - MsgChannelCloseInit.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.channel.v1.MsgChannelCloseInit) + IdentifiedChannel.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.channel.v1.IdentifiedChannel) return object; - var message = new $root.ibc.core.channel.v1.MsgChannelCloseInit(); + var message = new $root.ibc.core.channel.v1.IdentifiedChannel(); + switch (object.state) { + case "STATE_UNINITIALIZED_UNSPECIFIED": + case 0: + message.state = 0; + break; + case "STATE_INIT": + case 1: + message.state = 1; + break; + case "STATE_TRYOPEN": + case 2: + message.state = 2; + break; + case "STATE_OPEN": + case 3: + message.state = 3; + break; + case "STATE_CLOSED": + case 4: + message.state = 4; + break; + } + switch (object.ordering) { + case "ORDER_NONE_UNSPECIFIED": + case 0: + message.ordering = 0; + break; + case "ORDER_UNORDERED": + case 1: + message.ordering = 1; + break; + case "ORDER_ORDERED": + case 2: + message.ordering = 2; + break; + } + if (object.counterparty != null) { + if (typeof object.counterparty !== "object") + throw TypeError(".ibc.core.channel.v1.IdentifiedChannel.counterparty: object expected"); + message.counterparty = $root.ibc.core.channel.v1.Counterparty.fromObject(object.counterparty); + } + if (object.connection_hops) { + if (!Array.isArray(object.connection_hops)) + throw TypeError(".ibc.core.channel.v1.IdentifiedChannel.connection_hops: array expected"); + message.connection_hops = []; + for (var i = 0; i < object.connection_hops.length; ++i) + message.connection_hops[i] = String(object.connection_hops[i]); + } + if (object.version != null) + message.version = String(object.version); if (object.port_id != null) message.port_id = String(object.port_id); if (object.channel_id != null) message.channel_id = String(object.channel_id); - if (object.signer != null) - message.signer = String(object.signer); return message; }; /** - * Creates a plain object from a MsgChannelCloseInit message. Also converts values to other types if specified. + * Creates a plain object from an IdentifiedChannel message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.channel.v1.MsgChannelCloseInit + * @memberof ibc.core.channel.v1.IdentifiedChannel * @static - * @param {ibc.core.channel.v1.MsgChannelCloseInit} message MsgChannelCloseInit + * @param {ibc.core.channel.v1.IdentifiedChannel} message IdentifiedChannel * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MsgChannelCloseInit.toObject = function toObject(message, options) { + IdentifiedChannel.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.connection_hops = []; if (options.defaults) { + object.state = options.enums === String ? "STATE_UNINITIALIZED_UNSPECIFIED" : 0; + object.ordering = options.enums === String ? "ORDER_NONE_UNSPECIFIED" : 0; + object.counterparty = null; + object.version = ""; object.port_id = ""; object.channel_id = ""; - object.signer = ""; } + if (message.state != null && message.hasOwnProperty("state")) + object.state = options.enums === String ? $root.ibc.core.channel.v1.State[message.state] : message.state; + if (message.ordering != null && message.hasOwnProperty("ordering")) + object.ordering = options.enums === String ? $root.ibc.core.channel.v1.Order[message.ordering] : message.ordering; + if (message.counterparty != null && message.hasOwnProperty("counterparty")) + object.counterparty = $root.ibc.core.channel.v1.Counterparty.toObject(message.counterparty, options); + if (message.connection_hops && message.connection_hops.length) { + object.connection_hops = []; + for (var j = 0; j < message.connection_hops.length; ++j) + object.connection_hops[j] = message.connection_hops[j]; + } + if (message.version != null && message.hasOwnProperty("version")) + object.version = message.version; if (message.port_id != null && message.hasOwnProperty("port_id")) object.port_id = message.port_id; if (message.channel_id != null && message.hasOwnProperty("channel_id")) object.channel_id = message.channel_id; - if (message.signer != null && message.hasOwnProperty("signer")) - object.signer = message.signer; return object; }; /** - * Converts this MsgChannelCloseInit to JSON. + * Converts this IdentifiedChannel to JSON. * @function toJSON - * @memberof ibc.core.channel.v1.MsgChannelCloseInit + * @memberof ibc.core.channel.v1.IdentifiedChannel * @instance * @returns {Object.} JSON object */ - MsgChannelCloseInit.prototype.toJSON = function toJSON() { + IdentifiedChannel.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MsgChannelCloseInit; + return IdentifiedChannel; })(); - v1.MsgChannelCloseInitResponse = (function() { + /** + * State enum. + * @name ibc.core.channel.v1.State + * @enum {number} + * @property {number} STATE_UNINITIALIZED_UNSPECIFIED=0 STATE_UNINITIALIZED_UNSPECIFIED value + * @property {number} STATE_INIT=1 STATE_INIT value + * @property {number} STATE_TRYOPEN=2 STATE_TRYOPEN value + * @property {number} STATE_OPEN=3 STATE_OPEN value + * @property {number} STATE_CLOSED=4 STATE_CLOSED value + */ + v1.State = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "STATE_UNINITIALIZED_UNSPECIFIED"] = 0; + values[valuesById[1] = "STATE_INIT"] = 1; + values[valuesById[2] = "STATE_TRYOPEN"] = 2; + values[valuesById[3] = "STATE_OPEN"] = 3; + values[valuesById[4] = "STATE_CLOSED"] = 4; + return values; + })(); + + /** + * Order enum. + * @name ibc.core.channel.v1.Order + * @enum {number} + * @property {number} ORDER_NONE_UNSPECIFIED=0 ORDER_NONE_UNSPECIFIED value + * @property {number} ORDER_UNORDERED=1 ORDER_UNORDERED value + * @property {number} ORDER_ORDERED=2 ORDER_ORDERED value + */ + v1.Order = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "ORDER_NONE_UNSPECIFIED"] = 0; + values[valuesById[1] = "ORDER_UNORDERED"] = 1; + values[valuesById[2] = "ORDER_ORDERED"] = 2; + return values; + })(); + + v1.Counterparty = (function() { /** - * Properties of a MsgChannelCloseInitResponse. + * Properties of a Counterparty. * @memberof ibc.core.channel.v1 - * @interface IMsgChannelCloseInitResponse + * @interface ICounterparty + * @property {string|null} [port_id] Counterparty port_id + * @property {string|null} [channel_id] Counterparty channel_id */ /** - * Constructs a new MsgChannelCloseInitResponse. + * Constructs a new Counterparty. * @memberof ibc.core.channel.v1 - * @classdesc Represents a MsgChannelCloseInitResponse. - * @implements IMsgChannelCloseInitResponse + * @classdesc Represents a Counterparty. + * @implements ICounterparty * @constructor - * @param {ibc.core.channel.v1.IMsgChannelCloseInitResponse=} [properties] Properties to set + * @param {ibc.core.channel.v1.ICounterparty=} [properties] Properties to set */ - function MsgChannelCloseInitResponse(properties) { + function Counterparty(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -38661,51 +45423,77 @@ } /** - * Encodes the specified MsgChannelCloseInitResponse message. Does not implicitly {@link ibc.core.channel.v1.MsgChannelCloseInitResponse.verify|verify} messages. + * Counterparty port_id. + * @member {string} port_id + * @memberof ibc.core.channel.v1.Counterparty + * @instance + */ + Counterparty.prototype.port_id = ""; + + /** + * Counterparty channel_id. + * @member {string} channel_id + * @memberof ibc.core.channel.v1.Counterparty + * @instance + */ + Counterparty.prototype.channel_id = ""; + + /** + * Encodes the specified Counterparty message. Does not implicitly {@link ibc.core.channel.v1.Counterparty.verify|verify} messages. * @function encode - * @memberof ibc.core.channel.v1.MsgChannelCloseInitResponse + * @memberof ibc.core.channel.v1.Counterparty * @static - * @param {ibc.core.channel.v1.IMsgChannelCloseInitResponse} message MsgChannelCloseInitResponse message or plain object to encode + * @param {ibc.core.channel.v1.ICounterparty} message Counterparty message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgChannelCloseInitResponse.encode = function encode(message, writer) { + Counterparty.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.port_id != null && Object.hasOwnProperty.call(message, "port_id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.port_id); + if (message.channel_id != null && Object.hasOwnProperty.call(message, "channel_id")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.channel_id); return writer; }; /** - * Encodes the specified MsgChannelCloseInitResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.MsgChannelCloseInitResponse.verify|verify} messages. + * Encodes the specified Counterparty message, length delimited. Does not implicitly {@link ibc.core.channel.v1.Counterparty.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.channel.v1.MsgChannelCloseInitResponse + * @memberof ibc.core.channel.v1.Counterparty * @static - * @param {ibc.core.channel.v1.IMsgChannelCloseInitResponse} message MsgChannelCloseInitResponse message or plain object to encode + * @param {ibc.core.channel.v1.ICounterparty} message Counterparty message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgChannelCloseInitResponse.encodeDelimited = function encodeDelimited(message, writer) { + Counterparty.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MsgChannelCloseInitResponse message from the specified reader or buffer. + * Decodes a Counterparty message from the specified reader or buffer. * @function decode - * @memberof ibc.core.channel.v1.MsgChannelCloseInitResponse + * @memberof ibc.core.channel.v1.Counterparty * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.channel.v1.MsgChannelCloseInitResponse} MsgChannelCloseInitResponse + * @returns {ibc.core.channel.v1.Counterparty} Counterparty * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgChannelCloseInitResponse.decode = function decode(reader, length) { + Counterparty.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.MsgChannelCloseInitResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.Counterparty(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: + message.port_id = reader.string(); + break; + case 2: + message.channel_id = reader.string(); + break; default: reader.skipType(tag & 7); break; @@ -38715,98 +45503,123 @@ }; /** - * Decodes a MsgChannelCloseInitResponse message from the specified reader or buffer, length delimited. + * Decodes a Counterparty message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.channel.v1.MsgChannelCloseInitResponse + * @memberof ibc.core.channel.v1.Counterparty * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.channel.v1.MsgChannelCloseInitResponse} MsgChannelCloseInitResponse + * @returns {ibc.core.channel.v1.Counterparty} Counterparty * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgChannelCloseInitResponse.decodeDelimited = function decodeDelimited(reader) { + Counterparty.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MsgChannelCloseInitResponse message. + * Verifies a Counterparty message. * @function verify - * @memberof ibc.core.channel.v1.MsgChannelCloseInitResponse + * @memberof ibc.core.channel.v1.Counterparty * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MsgChannelCloseInitResponse.verify = function verify(message) { + Counterparty.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.port_id != null && message.hasOwnProperty("port_id")) + if (!$util.isString(message.port_id)) + return "port_id: string expected"; + if (message.channel_id != null && message.hasOwnProperty("channel_id")) + if (!$util.isString(message.channel_id)) + return "channel_id: string expected"; return null; }; /** - * Creates a MsgChannelCloseInitResponse message from a plain object. Also converts values to their respective internal types. + * Creates a Counterparty message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.channel.v1.MsgChannelCloseInitResponse + * @memberof ibc.core.channel.v1.Counterparty * @static * @param {Object.} object Plain object - * @returns {ibc.core.channel.v1.MsgChannelCloseInitResponse} MsgChannelCloseInitResponse + * @returns {ibc.core.channel.v1.Counterparty} Counterparty */ - MsgChannelCloseInitResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.channel.v1.MsgChannelCloseInitResponse) + Counterparty.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.channel.v1.Counterparty) return object; - return new $root.ibc.core.channel.v1.MsgChannelCloseInitResponse(); + var message = new $root.ibc.core.channel.v1.Counterparty(); + if (object.port_id != null) + message.port_id = String(object.port_id); + if (object.channel_id != null) + message.channel_id = String(object.channel_id); + return message; }; /** - * Creates a plain object from a MsgChannelCloseInitResponse message. Also converts values to other types if specified. + * Creates a plain object from a Counterparty message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.channel.v1.MsgChannelCloseInitResponse + * @memberof ibc.core.channel.v1.Counterparty * @static - * @param {ibc.core.channel.v1.MsgChannelCloseInitResponse} message MsgChannelCloseInitResponse + * @param {ibc.core.channel.v1.Counterparty} message Counterparty * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MsgChannelCloseInitResponse.toObject = function toObject() { - return {}; + Counterparty.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.port_id = ""; + object.channel_id = ""; + } + if (message.port_id != null && message.hasOwnProperty("port_id")) + object.port_id = message.port_id; + if (message.channel_id != null && message.hasOwnProperty("channel_id")) + object.channel_id = message.channel_id; + return object; }; /** - * Converts this MsgChannelCloseInitResponse to JSON. + * Converts this Counterparty to JSON. * @function toJSON - * @memberof ibc.core.channel.v1.MsgChannelCloseInitResponse + * @memberof ibc.core.channel.v1.Counterparty * @instance * @returns {Object.} JSON object */ - MsgChannelCloseInitResponse.prototype.toJSON = function toJSON() { + Counterparty.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MsgChannelCloseInitResponse; + return Counterparty; })(); - v1.MsgChannelCloseConfirm = (function() { + v1.Packet = (function() { /** - * Properties of a MsgChannelCloseConfirm. + * Properties of a Packet. * @memberof ibc.core.channel.v1 - * @interface IMsgChannelCloseConfirm - * @property {string|null} [port_id] MsgChannelCloseConfirm port_id - * @property {string|null} [channel_id] MsgChannelCloseConfirm channel_id - * @property {Uint8Array|null} [proof_init] MsgChannelCloseConfirm proof_init - * @property {ibc.core.client.v1.IHeight|null} [proof_height] MsgChannelCloseConfirm proof_height - * @property {string|null} [signer] MsgChannelCloseConfirm signer + * @interface IPacket + * @property {Long|null} [sequence] Packet sequence + * @property {string|null} [source_port] Packet source_port + * @property {string|null} [source_channel] Packet source_channel + * @property {string|null} [destination_port] Packet destination_port + * @property {string|null} [destination_channel] Packet destination_channel + * @property {Uint8Array|null} [data] Packet data + * @property {ibc.core.client.v1.IHeight|null} [timeout_height] Packet timeout_height + * @property {Long|null} [timeout_timestamp] Packet timeout_timestamp */ /** - * Constructs a new MsgChannelCloseConfirm. + * Constructs a new Packet. * @memberof ibc.core.channel.v1 - * @classdesc Represents a MsgChannelCloseConfirm. - * @implements IMsgChannelCloseConfirm + * @classdesc Represents a Packet. + * @implements IPacket * @constructor - * @param {ibc.core.channel.v1.IMsgChannelCloseConfirm=} [properties] Properties to set + * @param {ibc.core.channel.v1.IPacket=} [properties] Properties to set */ - function MsgChannelCloseConfirm(properties) { + function Packet(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -38814,115 +45627,154 @@ } /** - * MsgChannelCloseConfirm port_id. - * @member {string} port_id - * @memberof ibc.core.channel.v1.MsgChannelCloseConfirm + * Packet sequence. + * @member {Long} sequence + * @memberof ibc.core.channel.v1.Packet * @instance */ - MsgChannelCloseConfirm.prototype.port_id = ""; + Packet.prototype.sequence = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** - * MsgChannelCloseConfirm channel_id. - * @member {string} channel_id - * @memberof ibc.core.channel.v1.MsgChannelCloseConfirm + * Packet source_port. + * @member {string} source_port + * @memberof ibc.core.channel.v1.Packet * @instance */ - MsgChannelCloseConfirm.prototype.channel_id = ""; + Packet.prototype.source_port = ""; /** - * MsgChannelCloseConfirm proof_init. - * @member {Uint8Array} proof_init - * @memberof ibc.core.channel.v1.MsgChannelCloseConfirm + * Packet source_channel. + * @member {string} source_channel + * @memberof ibc.core.channel.v1.Packet * @instance */ - MsgChannelCloseConfirm.prototype.proof_init = $util.newBuffer([]); + Packet.prototype.source_channel = ""; /** - * MsgChannelCloseConfirm proof_height. - * @member {ibc.core.client.v1.IHeight|null|undefined} proof_height - * @memberof ibc.core.channel.v1.MsgChannelCloseConfirm + * Packet destination_port. + * @member {string} destination_port + * @memberof ibc.core.channel.v1.Packet * @instance */ - MsgChannelCloseConfirm.prototype.proof_height = null; + Packet.prototype.destination_port = ""; /** - * MsgChannelCloseConfirm signer. - * @member {string} signer - * @memberof ibc.core.channel.v1.MsgChannelCloseConfirm + * Packet destination_channel. + * @member {string} destination_channel + * @memberof ibc.core.channel.v1.Packet * @instance */ - MsgChannelCloseConfirm.prototype.signer = ""; + Packet.prototype.destination_channel = ""; /** - * Encodes the specified MsgChannelCloseConfirm message. Does not implicitly {@link ibc.core.channel.v1.MsgChannelCloseConfirm.verify|verify} messages. + * Packet data. + * @member {Uint8Array} data + * @memberof ibc.core.channel.v1.Packet + * @instance + */ + Packet.prototype.data = $util.newBuffer([]); + + /** + * Packet timeout_height. + * @member {ibc.core.client.v1.IHeight|null|undefined} timeout_height + * @memberof ibc.core.channel.v1.Packet + * @instance + */ + Packet.prototype.timeout_height = null; + + /** + * Packet timeout_timestamp. + * @member {Long} timeout_timestamp + * @memberof ibc.core.channel.v1.Packet + * @instance + */ + Packet.prototype.timeout_timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + + /** + * Encodes the specified Packet message. Does not implicitly {@link ibc.core.channel.v1.Packet.verify|verify} messages. * @function encode - * @memberof ibc.core.channel.v1.MsgChannelCloseConfirm + * @memberof ibc.core.channel.v1.Packet * @static - * @param {ibc.core.channel.v1.IMsgChannelCloseConfirm} message MsgChannelCloseConfirm message or plain object to encode + * @param {ibc.core.channel.v1.IPacket} message Packet message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgChannelCloseConfirm.encode = function encode(message, writer) { + Packet.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.port_id != null && Object.hasOwnProperty.call(message, "port_id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.port_id); - if (message.channel_id != null && Object.hasOwnProperty.call(message, "channel_id")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.channel_id); - if (message.proof_init != null && Object.hasOwnProperty.call(message, "proof_init")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.proof_init); - if (message.proof_height != null && Object.hasOwnProperty.call(message, "proof_height")) - $root.ibc.core.client.v1.Height.encode(message.proof_height, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.signer != null && Object.hasOwnProperty.call(message, "signer")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.signer); + if (message.sequence != null && Object.hasOwnProperty.call(message, "sequence")) + writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.sequence); + if (message.source_port != null && Object.hasOwnProperty.call(message, "source_port")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.source_port); + if (message.source_channel != null && Object.hasOwnProperty.call(message, "source_channel")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.source_channel); + if (message.destination_port != null && Object.hasOwnProperty.call(message, "destination_port")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.destination_port); + if (message.destination_channel != null && Object.hasOwnProperty.call(message, "destination_channel")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.destination_channel); + if (message.data != null && Object.hasOwnProperty.call(message, "data")) + writer.uint32(/* id 6, wireType 2 =*/50).bytes(message.data); + if (message.timeout_height != null && Object.hasOwnProperty.call(message, "timeout_height")) + $root.ibc.core.client.v1.Height.encode(message.timeout_height, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.timeout_timestamp != null && Object.hasOwnProperty.call(message, "timeout_timestamp")) + writer.uint32(/* id 8, wireType 0 =*/64).uint64(message.timeout_timestamp); return writer; }; /** - * Encodes the specified MsgChannelCloseConfirm message, length delimited. Does not implicitly {@link ibc.core.channel.v1.MsgChannelCloseConfirm.verify|verify} messages. + * Encodes the specified Packet message, length delimited. Does not implicitly {@link ibc.core.channel.v1.Packet.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.channel.v1.MsgChannelCloseConfirm + * @memberof ibc.core.channel.v1.Packet * @static - * @param {ibc.core.channel.v1.IMsgChannelCloseConfirm} message MsgChannelCloseConfirm message or plain object to encode + * @param {ibc.core.channel.v1.IPacket} message Packet message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgChannelCloseConfirm.encodeDelimited = function encodeDelimited(message, writer) { + Packet.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MsgChannelCloseConfirm message from the specified reader or buffer. + * Decodes a Packet message from the specified reader or buffer. * @function decode - * @memberof ibc.core.channel.v1.MsgChannelCloseConfirm + * @memberof ibc.core.channel.v1.Packet * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.channel.v1.MsgChannelCloseConfirm} MsgChannelCloseConfirm + * @returns {ibc.core.channel.v1.Packet} Packet * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgChannelCloseConfirm.decode = function decode(reader, length) { + Packet.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.MsgChannelCloseConfirm(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.Packet(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.port_id = reader.string(); + message.sequence = reader.uint64(); break; case 2: - message.channel_id = reader.string(); + message.source_port = reader.string(); break; case 3: - message.proof_init = reader.bytes(); + message.source_channel = reader.string(); break; case 4: - message.proof_height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); + message.destination_port = reader.string(); break; case 5: - message.signer = reader.string(); + message.destination_channel = reader.string(); + break; + case 6: + message.data = reader.bytes(); + break; + case 7: + message.timeout_height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); + break; + case 8: + message.timeout_timestamp = reader.uint64(); break; default: reader.skipType(tag & 7); @@ -38933,153 +45785,209 @@ }; /** - * Decodes a MsgChannelCloseConfirm message from the specified reader or buffer, length delimited. + * Decodes a Packet message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.channel.v1.MsgChannelCloseConfirm + * @memberof ibc.core.channel.v1.Packet * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.channel.v1.MsgChannelCloseConfirm} MsgChannelCloseConfirm + * @returns {ibc.core.channel.v1.Packet} Packet * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgChannelCloseConfirm.decodeDelimited = function decodeDelimited(reader) { + Packet.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MsgChannelCloseConfirm message. + * Verifies a Packet message. * @function verify - * @memberof ibc.core.channel.v1.MsgChannelCloseConfirm + * @memberof ibc.core.channel.v1.Packet * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MsgChannelCloseConfirm.verify = function verify(message) { + Packet.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.port_id != null && message.hasOwnProperty("port_id")) - if (!$util.isString(message.port_id)) - return "port_id: string expected"; - if (message.channel_id != null && message.hasOwnProperty("channel_id")) - if (!$util.isString(message.channel_id)) - return "channel_id: string expected"; - if (message.proof_init != null && message.hasOwnProperty("proof_init")) - if (!(message.proof_init && typeof message.proof_init.length === "number" || $util.isString(message.proof_init))) - return "proof_init: buffer expected"; - if (message.proof_height != null && message.hasOwnProperty("proof_height")) { - var error = $root.ibc.core.client.v1.Height.verify(message.proof_height); + if (message.sequence != null && message.hasOwnProperty("sequence")) + if (!$util.isInteger(message.sequence) && !(message.sequence && $util.isInteger(message.sequence.low) && $util.isInteger(message.sequence.high))) + return "sequence: integer|Long expected"; + if (message.source_port != null && message.hasOwnProperty("source_port")) + if (!$util.isString(message.source_port)) + return "source_port: string expected"; + if (message.source_channel != null && message.hasOwnProperty("source_channel")) + if (!$util.isString(message.source_channel)) + return "source_channel: string expected"; + if (message.destination_port != null && message.hasOwnProperty("destination_port")) + if (!$util.isString(message.destination_port)) + return "destination_port: string expected"; + if (message.destination_channel != null && message.hasOwnProperty("destination_channel")) + if (!$util.isString(message.destination_channel)) + return "destination_channel: string expected"; + if (message.data != null && message.hasOwnProperty("data")) + if (!(message.data && typeof message.data.length === "number" || $util.isString(message.data))) + return "data: buffer expected"; + if (message.timeout_height != null && message.hasOwnProperty("timeout_height")) { + var error = $root.ibc.core.client.v1.Height.verify(message.timeout_height); if (error) - return "proof_height." + error; + return "timeout_height." + error; } - if (message.signer != null && message.hasOwnProperty("signer")) - if (!$util.isString(message.signer)) - return "signer: string expected"; + if (message.timeout_timestamp != null && message.hasOwnProperty("timeout_timestamp")) + if (!$util.isInteger(message.timeout_timestamp) && !(message.timeout_timestamp && $util.isInteger(message.timeout_timestamp.low) && $util.isInteger(message.timeout_timestamp.high))) + return "timeout_timestamp: integer|Long expected"; return null; }; /** - * Creates a MsgChannelCloseConfirm message from a plain object. Also converts values to their respective internal types. + * Creates a Packet message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.channel.v1.MsgChannelCloseConfirm + * @memberof ibc.core.channel.v1.Packet * @static * @param {Object.} object Plain object - * @returns {ibc.core.channel.v1.MsgChannelCloseConfirm} MsgChannelCloseConfirm + * @returns {ibc.core.channel.v1.Packet} Packet */ - MsgChannelCloseConfirm.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.channel.v1.MsgChannelCloseConfirm) + Packet.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.channel.v1.Packet) return object; - var message = new $root.ibc.core.channel.v1.MsgChannelCloseConfirm(); - if (object.port_id != null) - message.port_id = String(object.port_id); - if (object.channel_id != null) - message.channel_id = String(object.channel_id); - if (object.proof_init != null) - if (typeof object.proof_init === "string") - $util.base64.decode(object.proof_init, message.proof_init = $util.newBuffer($util.base64.length(object.proof_init)), 0); - else if (object.proof_init.length) - message.proof_init = object.proof_init; - if (object.proof_height != null) { - if (typeof object.proof_height !== "object") - throw TypeError(".ibc.core.channel.v1.MsgChannelCloseConfirm.proof_height: object expected"); - message.proof_height = $root.ibc.core.client.v1.Height.fromObject(object.proof_height); + var message = new $root.ibc.core.channel.v1.Packet(); + if (object.sequence != null) + if ($util.Long) + (message.sequence = $util.Long.fromValue(object.sequence)).unsigned = true; + else if (typeof object.sequence === "string") + message.sequence = parseInt(object.sequence, 10); + else if (typeof object.sequence === "number") + message.sequence = object.sequence; + else if (typeof object.sequence === "object") + message.sequence = new $util.LongBits(object.sequence.low >>> 0, object.sequence.high >>> 0).toNumber(true); + if (object.source_port != null) + message.source_port = String(object.source_port); + if (object.source_channel != null) + message.source_channel = String(object.source_channel); + if (object.destination_port != null) + message.destination_port = String(object.destination_port); + if (object.destination_channel != null) + message.destination_channel = String(object.destination_channel); + if (object.data != null) + if (typeof object.data === "string") + $util.base64.decode(object.data, message.data = $util.newBuffer($util.base64.length(object.data)), 0); + else if (object.data.length) + message.data = object.data; + if (object.timeout_height != null) { + if (typeof object.timeout_height !== "object") + throw TypeError(".ibc.core.channel.v1.Packet.timeout_height: object expected"); + message.timeout_height = $root.ibc.core.client.v1.Height.fromObject(object.timeout_height); } - if (object.signer != null) - message.signer = String(object.signer); + if (object.timeout_timestamp != null) + if ($util.Long) + (message.timeout_timestamp = $util.Long.fromValue(object.timeout_timestamp)).unsigned = true; + else if (typeof object.timeout_timestamp === "string") + message.timeout_timestamp = parseInt(object.timeout_timestamp, 10); + else if (typeof object.timeout_timestamp === "number") + message.timeout_timestamp = object.timeout_timestamp; + else if (typeof object.timeout_timestamp === "object") + message.timeout_timestamp = new $util.LongBits(object.timeout_timestamp.low >>> 0, object.timeout_timestamp.high >>> 0).toNumber(true); return message; }; /** - * Creates a plain object from a MsgChannelCloseConfirm message. Also converts values to other types if specified. + * Creates a plain object from a Packet message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.channel.v1.MsgChannelCloseConfirm + * @memberof ibc.core.channel.v1.Packet * @static - * @param {ibc.core.channel.v1.MsgChannelCloseConfirm} message MsgChannelCloseConfirm + * @param {ibc.core.channel.v1.Packet} message Packet * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MsgChannelCloseConfirm.toObject = function toObject(message, options) { + Packet.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.port_id = ""; - object.channel_id = ""; + if ($util.Long) { + var long = new $util.Long(0, 0, true); + object.sequence = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.sequence = options.longs === String ? "0" : 0; + object.source_port = ""; + object.source_channel = ""; + object.destination_port = ""; + object.destination_channel = ""; if (options.bytes === String) - object.proof_init = ""; + object.data = ""; else { - object.proof_init = []; + object.data = []; if (options.bytes !== Array) - object.proof_init = $util.newBuffer(object.proof_init); + object.data = $util.newBuffer(object.data); } - object.proof_height = null; - object.signer = ""; + object.timeout_height = null; + if ($util.Long) { + var long = new $util.Long(0, 0, true); + object.timeout_timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.timeout_timestamp = options.longs === String ? "0" : 0; } - if (message.port_id != null && message.hasOwnProperty("port_id")) - object.port_id = message.port_id; - if (message.channel_id != null && message.hasOwnProperty("channel_id")) - object.channel_id = message.channel_id; - if (message.proof_init != null && message.hasOwnProperty("proof_init")) - object.proof_init = options.bytes === String ? $util.base64.encode(message.proof_init, 0, message.proof_init.length) : options.bytes === Array ? Array.prototype.slice.call(message.proof_init) : message.proof_init; - if (message.proof_height != null && message.hasOwnProperty("proof_height")) - object.proof_height = $root.ibc.core.client.v1.Height.toObject(message.proof_height, options); - if (message.signer != null && message.hasOwnProperty("signer")) - object.signer = message.signer; + if (message.sequence != null && message.hasOwnProperty("sequence")) + if (typeof message.sequence === "number") + object.sequence = options.longs === String ? String(message.sequence) : message.sequence; + else + object.sequence = options.longs === String ? $util.Long.prototype.toString.call(message.sequence) : options.longs === Number ? new $util.LongBits(message.sequence.low >>> 0, message.sequence.high >>> 0).toNumber(true) : message.sequence; + if (message.source_port != null && message.hasOwnProperty("source_port")) + object.source_port = message.source_port; + if (message.source_channel != null && message.hasOwnProperty("source_channel")) + object.source_channel = message.source_channel; + if (message.destination_port != null && message.hasOwnProperty("destination_port")) + object.destination_port = message.destination_port; + if (message.destination_channel != null && message.hasOwnProperty("destination_channel")) + object.destination_channel = message.destination_channel; + if (message.data != null && message.hasOwnProperty("data")) + object.data = options.bytes === String ? $util.base64.encode(message.data, 0, message.data.length) : options.bytes === Array ? Array.prototype.slice.call(message.data) : message.data; + if (message.timeout_height != null && message.hasOwnProperty("timeout_height")) + object.timeout_height = $root.ibc.core.client.v1.Height.toObject(message.timeout_height, options); + if (message.timeout_timestamp != null && message.hasOwnProperty("timeout_timestamp")) + if (typeof message.timeout_timestamp === "number") + object.timeout_timestamp = options.longs === String ? String(message.timeout_timestamp) : message.timeout_timestamp; + else + object.timeout_timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timeout_timestamp) : options.longs === Number ? new $util.LongBits(message.timeout_timestamp.low >>> 0, message.timeout_timestamp.high >>> 0).toNumber(true) : message.timeout_timestamp; return object; }; /** - * Converts this MsgChannelCloseConfirm to JSON. + * Converts this Packet to JSON. * @function toJSON - * @memberof ibc.core.channel.v1.MsgChannelCloseConfirm + * @memberof ibc.core.channel.v1.Packet * @instance * @returns {Object.} JSON object */ - MsgChannelCloseConfirm.prototype.toJSON = function toJSON() { + Packet.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MsgChannelCloseConfirm; + return Packet; })(); - v1.MsgChannelCloseConfirmResponse = (function() { + v1.PacketState = (function() { /** - * Properties of a MsgChannelCloseConfirmResponse. + * Properties of a PacketState. * @memberof ibc.core.channel.v1 - * @interface IMsgChannelCloseConfirmResponse + * @interface IPacketState + * @property {string|null} [port_id] PacketState port_id + * @property {string|null} [channel_id] PacketState channel_id + * @property {Long|null} [sequence] PacketState sequence + * @property {Uint8Array|null} [data] PacketState data */ /** - * Constructs a new MsgChannelCloseConfirmResponse. + * Constructs a new PacketState. * @memberof ibc.core.channel.v1 - * @classdesc Represents a MsgChannelCloseConfirmResponse. - * @implements IMsgChannelCloseConfirmResponse + * @classdesc Represents a PacketState. + * @implements IPacketState * @constructor - * @param {ibc.core.channel.v1.IMsgChannelCloseConfirmResponse=} [properties] Properties to set + * @param {ibc.core.channel.v1.IPacketState=} [properties] Properties to set */ - function MsgChannelCloseConfirmResponse(properties) { + function PacketState(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -39087,51 +45995,103 @@ } /** - * Encodes the specified MsgChannelCloseConfirmResponse message. Does not implicitly {@link ibc.core.channel.v1.MsgChannelCloseConfirmResponse.verify|verify} messages. + * PacketState port_id. + * @member {string} port_id + * @memberof ibc.core.channel.v1.PacketState + * @instance + */ + PacketState.prototype.port_id = ""; + + /** + * PacketState channel_id. + * @member {string} channel_id + * @memberof ibc.core.channel.v1.PacketState + * @instance + */ + PacketState.prototype.channel_id = ""; + + /** + * PacketState sequence. + * @member {Long} sequence + * @memberof ibc.core.channel.v1.PacketState + * @instance + */ + PacketState.prototype.sequence = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + + /** + * PacketState data. + * @member {Uint8Array} data + * @memberof ibc.core.channel.v1.PacketState + * @instance + */ + PacketState.prototype.data = $util.newBuffer([]); + + /** + * Encodes the specified PacketState message. Does not implicitly {@link ibc.core.channel.v1.PacketState.verify|verify} messages. * @function encode - * @memberof ibc.core.channel.v1.MsgChannelCloseConfirmResponse + * @memberof ibc.core.channel.v1.PacketState * @static - * @param {ibc.core.channel.v1.IMsgChannelCloseConfirmResponse} message MsgChannelCloseConfirmResponse message or plain object to encode + * @param {ibc.core.channel.v1.IPacketState} message PacketState message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgChannelCloseConfirmResponse.encode = function encode(message, writer) { + PacketState.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.port_id != null && Object.hasOwnProperty.call(message, "port_id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.port_id); + if (message.channel_id != null && Object.hasOwnProperty.call(message, "channel_id")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.channel_id); + if (message.sequence != null && Object.hasOwnProperty.call(message, "sequence")) + writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.sequence); + if (message.data != null && Object.hasOwnProperty.call(message, "data")) + writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.data); return writer; }; /** - * Encodes the specified MsgChannelCloseConfirmResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.MsgChannelCloseConfirmResponse.verify|verify} messages. + * Encodes the specified PacketState message, length delimited. Does not implicitly {@link ibc.core.channel.v1.PacketState.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.channel.v1.MsgChannelCloseConfirmResponse + * @memberof ibc.core.channel.v1.PacketState * @static - * @param {ibc.core.channel.v1.IMsgChannelCloseConfirmResponse} message MsgChannelCloseConfirmResponse message or plain object to encode + * @param {ibc.core.channel.v1.IPacketState} message PacketState message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgChannelCloseConfirmResponse.encodeDelimited = function encodeDelimited(message, writer) { + PacketState.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MsgChannelCloseConfirmResponse message from the specified reader or buffer. + * Decodes a PacketState message from the specified reader or buffer. * @function decode - * @memberof ibc.core.channel.v1.MsgChannelCloseConfirmResponse + * @memberof ibc.core.channel.v1.PacketState * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.channel.v1.MsgChannelCloseConfirmResponse} MsgChannelCloseConfirmResponse + * @returns {ibc.core.channel.v1.PacketState} PacketState * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgChannelCloseConfirmResponse.decode = function decode(reader, length) { + PacketState.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.MsgChannelCloseConfirmResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.PacketState(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: + message.port_id = reader.string(); + break; + case 2: + message.channel_id = reader.string(); + break; + case 3: + message.sequence = reader.uint64(); + break; + case 4: + message.data = reader.bytes(); + break; default: reader.skipType(tag & 7); break; @@ -39141,97 +46101,157 @@ }; /** - * Decodes a MsgChannelCloseConfirmResponse message from the specified reader or buffer, length delimited. + * Decodes a PacketState message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.channel.v1.MsgChannelCloseConfirmResponse + * @memberof ibc.core.channel.v1.PacketState * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.channel.v1.MsgChannelCloseConfirmResponse} MsgChannelCloseConfirmResponse + * @returns {ibc.core.channel.v1.PacketState} PacketState * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgChannelCloseConfirmResponse.decodeDelimited = function decodeDelimited(reader) { + PacketState.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MsgChannelCloseConfirmResponse message. + * Verifies a PacketState message. * @function verify - * @memberof ibc.core.channel.v1.MsgChannelCloseConfirmResponse + * @memberof ibc.core.channel.v1.PacketState * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MsgChannelCloseConfirmResponse.verify = function verify(message) { + PacketState.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.port_id != null && message.hasOwnProperty("port_id")) + if (!$util.isString(message.port_id)) + return "port_id: string expected"; + if (message.channel_id != null && message.hasOwnProperty("channel_id")) + if (!$util.isString(message.channel_id)) + return "channel_id: string expected"; + if (message.sequence != null && message.hasOwnProperty("sequence")) + if (!$util.isInteger(message.sequence) && !(message.sequence && $util.isInteger(message.sequence.low) && $util.isInteger(message.sequence.high))) + return "sequence: integer|Long expected"; + if (message.data != null && message.hasOwnProperty("data")) + if (!(message.data && typeof message.data.length === "number" || $util.isString(message.data))) + return "data: buffer expected"; return null; }; /** - * Creates a MsgChannelCloseConfirmResponse message from a plain object. Also converts values to their respective internal types. + * Creates a PacketState message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.channel.v1.MsgChannelCloseConfirmResponse + * @memberof ibc.core.channel.v1.PacketState * @static * @param {Object.} object Plain object - * @returns {ibc.core.channel.v1.MsgChannelCloseConfirmResponse} MsgChannelCloseConfirmResponse + * @returns {ibc.core.channel.v1.PacketState} PacketState */ - MsgChannelCloseConfirmResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.channel.v1.MsgChannelCloseConfirmResponse) + PacketState.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.channel.v1.PacketState) return object; - return new $root.ibc.core.channel.v1.MsgChannelCloseConfirmResponse(); + var message = new $root.ibc.core.channel.v1.PacketState(); + if (object.port_id != null) + message.port_id = String(object.port_id); + if (object.channel_id != null) + message.channel_id = String(object.channel_id); + if (object.sequence != null) + if ($util.Long) + (message.sequence = $util.Long.fromValue(object.sequence)).unsigned = true; + else if (typeof object.sequence === "string") + message.sequence = parseInt(object.sequence, 10); + else if (typeof object.sequence === "number") + message.sequence = object.sequence; + else if (typeof object.sequence === "object") + message.sequence = new $util.LongBits(object.sequence.low >>> 0, object.sequence.high >>> 0).toNumber(true); + if (object.data != null) + if (typeof object.data === "string") + $util.base64.decode(object.data, message.data = $util.newBuffer($util.base64.length(object.data)), 0); + else if (object.data.length) + message.data = object.data; + return message; }; /** - * Creates a plain object from a MsgChannelCloseConfirmResponse message. Also converts values to other types if specified. + * Creates a plain object from a PacketState message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.channel.v1.MsgChannelCloseConfirmResponse + * @memberof ibc.core.channel.v1.PacketState * @static - * @param {ibc.core.channel.v1.MsgChannelCloseConfirmResponse} message MsgChannelCloseConfirmResponse + * @param {ibc.core.channel.v1.PacketState} message PacketState * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MsgChannelCloseConfirmResponse.toObject = function toObject() { - return {}; + PacketState.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.port_id = ""; + object.channel_id = ""; + if ($util.Long) { + var long = new $util.Long(0, 0, true); + object.sequence = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.sequence = options.longs === String ? "0" : 0; + if (options.bytes === String) + object.data = ""; + else { + object.data = []; + if (options.bytes !== Array) + object.data = $util.newBuffer(object.data); + } + } + if (message.port_id != null && message.hasOwnProperty("port_id")) + object.port_id = message.port_id; + if (message.channel_id != null && message.hasOwnProperty("channel_id")) + object.channel_id = message.channel_id; + if (message.sequence != null && message.hasOwnProperty("sequence")) + if (typeof message.sequence === "number") + object.sequence = options.longs === String ? String(message.sequence) : message.sequence; + else + object.sequence = options.longs === String ? $util.Long.prototype.toString.call(message.sequence) : options.longs === Number ? new $util.LongBits(message.sequence.low >>> 0, message.sequence.high >>> 0).toNumber(true) : message.sequence; + if (message.data != null && message.hasOwnProperty("data")) + object.data = options.bytes === String ? $util.base64.encode(message.data, 0, message.data.length) : options.bytes === Array ? Array.prototype.slice.call(message.data) : message.data; + return object; }; /** - * Converts this MsgChannelCloseConfirmResponse to JSON. + * Converts this PacketState to JSON. * @function toJSON - * @memberof ibc.core.channel.v1.MsgChannelCloseConfirmResponse + * @memberof ibc.core.channel.v1.PacketState * @instance * @returns {Object.} JSON object */ - MsgChannelCloseConfirmResponse.prototype.toJSON = function toJSON() { + PacketState.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MsgChannelCloseConfirmResponse; + return PacketState; })(); - v1.MsgRecvPacket = (function() { + v1.PacketId = (function() { /** - * Properties of a MsgRecvPacket. + * Properties of a PacketId. * @memberof ibc.core.channel.v1 - * @interface IMsgRecvPacket - * @property {ibc.core.channel.v1.IPacket|null} [packet] MsgRecvPacket packet - * @property {Uint8Array|null} [proof_commitment] MsgRecvPacket proof_commitment - * @property {ibc.core.client.v1.IHeight|null} [proof_height] MsgRecvPacket proof_height - * @property {string|null} [signer] MsgRecvPacket signer + * @interface IPacketId + * @property {string|null} [port_id] PacketId port_id + * @property {string|null} [channel_id] PacketId channel_id + * @property {Long|null} [sequence] PacketId sequence */ /** - * Constructs a new MsgRecvPacket. + * Constructs a new PacketId. * @memberof ibc.core.channel.v1 - * @classdesc Represents a MsgRecvPacket. - * @implements IMsgRecvPacket + * @classdesc Represents a PacketId. + * @implements IPacketId * @constructor - * @param {ibc.core.channel.v1.IMsgRecvPacket=} [properties] Properties to set + * @param {ibc.core.channel.v1.IPacketId=} [properties] Properties to set */ - function MsgRecvPacket(properties) { + function PacketId(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -39239,102 +46259,89 @@ } /** - * MsgRecvPacket packet. - * @member {ibc.core.channel.v1.IPacket|null|undefined} packet - * @memberof ibc.core.channel.v1.MsgRecvPacket - * @instance - */ - MsgRecvPacket.prototype.packet = null; - - /** - * MsgRecvPacket proof_commitment. - * @member {Uint8Array} proof_commitment - * @memberof ibc.core.channel.v1.MsgRecvPacket + * PacketId port_id. + * @member {string} port_id + * @memberof ibc.core.channel.v1.PacketId * @instance */ - MsgRecvPacket.prototype.proof_commitment = $util.newBuffer([]); + PacketId.prototype.port_id = ""; /** - * MsgRecvPacket proof_height. - * @member {ibc.core.client.v1.IHeight|null|undefined} proof_height - * @memberof ibc.core.channel.v1.MsgRecvPacket + * PacketId channel_id. + * @member {string} channel_id + * @memberof ibc.core.channel.v1.PacketId * @instance */ - MsgRecvPacket.prototype.proof_height = null; + PacketId.prototype.channel_id = ""; /** - * MsgRecvPacket signer. - * @member {string} signer - * @memberof ibc.core.channel.v1.MsgRecvPacket + * PacketId sequence. + * @member {Long} sequence + * @memberof ibc.core.channel.v1.PacketId * @instance */ - MsgRecvPacket.prototype.signer = ""; + PacketId.prototype.sequence = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** - * Encodes the specified MsgRecvPacket message. Does not implicitly {@link ibc.core.channel.v1.MsgRecvPacket.verify|verify} messages. + * Encodes the specified PacketId message. Does not implicitly {@link ibc.core.channel.v1.PacketId.verify|verify} messages. * @function encode - * @memberof ibc.core.channel.v1.MsgRecvPacket + * @memberof ibc.core.channel.v1.PacketId * @static - * @param {ibc.core.channel.v1.IMsgRecvPacket} message MsgRecvPacket message or plain object to encode + * @param {ibc.core.channel.v1.IPacketId} message PacketId message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgRecvPacket.encode = function encode(message, writer) { + PacketId.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.packet != null && Object.hasOwnProperty.call(message, "packet")) - $root.ibc.core.channel.v1.Packet.encode(message.packet, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.proof_commitment != null && Object.hasOwnProperty.call(message, "proof_commitment")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.proof_commitment); - if (message.proof_height != null && Object.hasOwnProperty.call(message, "proof_height")) - $root.ibc.core.client.v1.Height.encode(message.proof_height, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.signer != null && Object.hasOwnProperty.call(message, "signer")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.signer); + if (message.port_id != null && Object.hasOwnProperty.call(message, "port_id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.port_id); + if (message.channel_id != null && Object.hasOwnProperty.call(message, "channel_id")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.channel_id); + if (message.sequence != null && Object.hasOwnProperty.call(message, "sequence")) + writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.sequence); return writer; }; /** - * Encodes the specified MsgRecvPacket message, length delimited. Does not implicitly {@link ibc.core.channel.v1.MsgRecvPacket.verify|verify} messages. + * Encodes the specified PacketId message, length delimited. Does not implicitly {@link ibc.core.channel.v1.PacketId.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.channel.v1.MsgRecvPacket + * @memberof ibc.core.channel.v1.PacketId * @static - * @param {ibc.core.channel.v1.IMsgRecvPacket} message MsgRecvPacket message or plain object to encode + * @param {ibc.core.channel.v1.IPacketId} message PacketId message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgRecvPacket.encodeDelimited = function encodeDelimited(message, writer) { + PacketId.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MsgRecvPacket message from the specified reader or buffer. + * Decodes a PacketId message from the specified reader or buffer. * @function decode - * @memberof ibc.core.channel.v1.MsgRecvPacket + * @memberof ibc.core.channel.v1.PacketId * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.channel.v1.MsgRecvPacket} MsgRecvPacket + * @returns {ibc.core.channel.v1.PacketId} PacketId * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgRecvPacket.decode = function decode(reader, length) { + PacketId.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.MsgRecvPacket(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.PacketId(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.packet = $root.ibc.core.channel.v1.Packet.decode(reader, reader.uint32()); + message.port_id = reader.string(); break; case 2: - message.proof_commitment = reader.bytes(); + message.channel_id = reader.string(); break; case 3: - message.proof_height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); - break; - case 4: - message.signer = reader.string(); + message.sequence = reader.uint64(); break; default: reader.skipType(tag & 7); @@ -39345,151 +46352,139 @@ }; /** - * Decodes a MsgRecvPacket message from the specified reader or buffer, length delimited. + * Decodes a PacketId message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.channel.v1.MsgRecvPacket + * @memberof ibc.core.channel.v1.PacketId * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.channel.v1.MsgRecvPacket} MsgRecvPacket + * @returns {ibc.core.channel.v1.PacketId} PacketId * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgRecvPacket.decodeDelimited = function decodeDelimited(reader) { + PacketId.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MsgRecvPacket message. + * Verifies a PacketId message. * @function verify - * @memberof ibc.core.channel.v1.MsgRecvPacket + * @memberof ibc.core.channel.v1.PacketId * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MsgRecvPacket.verify = function verify(message) { + PacketId.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.packet != null && message.hasOwnProperty("packet")) { - var error = $root.ibc.core.channel.v1.Packet.verify(message.packet); - if (error) - return "packet." + error; - } - if (message.proof_commitment != null && message.hasOwnProperty("proof_commitment")) - if (!(message.proof_commitment && typeof message.proof_commitment.length === "number" || $util.isString(message.proof_commitment))) - return "proof_commitment: buffer expected"; - if (message.proof_height != null && message.hasOwnProperty("proof_height")) { - var error = $root.ibc.core.client.v1.Height.verify(message.proof_height); - if (error) - return "proof_height." + error; - } - if (message.signer != null && message.hasOwnProperty("signer")) - if (!$util.isString(message.signer)) - return "signer: string expected"; + if (message.port_id != null && message.hasOwnProperty("port_id")) + if (!$util.isString(message.port_id)) + return "port_id: string expected"; + if (message.channel_id != null && message.hasOwnProperty("channel_id")) + if (!$util.isString(message.channel_id)) + return "channel_id: string expected"; + if (message.sequence != null && message.hasOwnProperty("sequence")) + if (!$util.isInteger(message.sequence) && !(message.sequence && $util.isInteger(message.sequence.low) && $util.isInteger(message.sequence.high))) + return "sequence: integer|Long expected"; return null; }; /** - * Creates a MsgRecvPacket message from a plain object. Also converts values to their respective internal types. + * Creates a PacketId message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.channel.v1.MsgRecvPacket + * @memberof ibc.core.channel.v1.PacketId * @static * @param {Object.} object Plain object - * @returns {ibc.core.channel.v1.MsgRecvPacket} MsgRecvPacket + * @returns {ibc.core.channel.v1.PacketId} PacketId */ - MsgRecvPacket.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.channel.v1.MsgRecvPacket) + PacketId.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.channel.v1.PacketId) return object; - var message = new $root.ibc.core.channel.v1.MsgRecvPacket(); - if (object.packet != null) { - if (typeof object.packet !== "object") - throw TypeError(".ibc.core.channel.v1.MsgRecvPacket.packet: object expected"); - message.packet = $root.ibc.core.channel.v1.Packet.fromObject(object.packet); - } - if (object.proof_commitment != null) - if (typeof object.proof_commitment === "string") - $util.base64.decode(object.proof_commitment, message.proof_commitment = $util.newBuffer($util.base64.length(object.proof_commitment)), 0); - else if (object.proof_commitment.length) - message.proof_commitment = object.proof_commitment; - if (object.proof_height != null) { - if (typeof object.proof_height !== "object") - throw TypeError(".ibc.core.channel.v1.MsgRecvPacket.proof_height: object expected"); - message.proof_height = $root.ibc.core.client.v1.Height.fromObject(object.proof_height); - } - if (object.signer != null) - message.signer = String(object.signer); + var message = new $root.ibc.core.channel.v1.PacketId(); + if (object.port_id != null) + message.port_id = String(object.port_id); + if (object.channel_id != null) + message.channel_id = String(object.channel_id); + if (object.sequence != null) + if ($util.Long) + (message.sequence = $util.Long.fromValue(object.sequence)).unsigned = true; + else if (typeof object.sequence === "string") + message.sequence = parseInt(object.sequence, 10); + else if (typeof object.sequence === "number") + message.sequence = object.sequence; + else if (typeof object.sequence === "object") + message.sequence = new $util.LongBits(object.sequence.low >>> 0, object.sequence.high >>> 0).toNumber(true); return message; }; /** - * Creates a plain object from a MsgRecvPacket message. Also converts values to other types if specified. + * Creates a plain object from a PacketId message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.channel.v1.MsgRecvPacket + * @memberof ibc.core.channel.v1.PacketId * @static - * @param {ibc.core.channel.v1.MsgRecvPacket} message MsgRecvPacket + * @param {ibc.core.channel.v1.PacketId} message PacketId * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MsgRecvPacket.toObject = function toObject(message, options) { + PacketId.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.packet = null; - if (options.bytes === String) - object.proof_commitment = ""; - else { - object.proof_commitment = []; - if (options.bytes !== Array) - object.proof_commitment = $util.newBuffer(object.proof_commitment); - } - object.proof_height = null; - object.signer = ""; + object.port_id = ""; + object.channel_id = ""; + if ($util.Long) { + var long = new $util.Long(0, 0, true); + object.sequence = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.sequence = options.longs === String ? "0" : 0; } - if (message.packet != null && message.hasOwnProperty("packet")) - object.packet = $root.ibc.core.channel.v1.Packet.toObject(message.packet, options); - if (message.proof_commitment != null && message.hasOwnProperty("proof_commitment")) - object.proof_commitment = options.bytes === String ? $util.base64.encode(message.proof_commitment, 0, message.proof_commitment.length) : options.bytes === Array ? Array.prototype.slice.call(message.proof_commitment) : message.proof_commitment; - if (message.proof_height != null && message.hasOwnProperty("proof_height")) - object.proof_height = $root.ibc.core.client.v1.Height.toObject(message.proof_height, options); - if (message.signer != null && message.hasOwnProperty("signer")) - object.signer = message.signer; + if (message.port_id != null && message.hasOwnProperty("port_id")) + object.port_id = message.port_id; + if (message.channel_id != null && message.hasOwnProperty("channel_id")) + object.channel_id = message.channel_id; + if (message.sequence != null && message.hasOwnProperty("sequence")) + if (typeof message.sequence === "number") + object.sequence = options.longs === String ? String(message.sequence) : message.sequence; + else + object.sequence = options.longs === String ? $util.Long.prototype.toString.call(message.sequence) : options.longs === Number ? new $util.LongBits(message.sequence.low >>> 0, message.sequence.high >>> 0).toNumber(true) : message.sequence; return object; }; /** - * Converts this MsgRecvPacket to JSON. + * Converts this PacketId to JSON. * @function toJSON - * @memberof ibc.core.channel.v1.MsgRecvPacket + * @memberof ibc.core.channel.v1.PacketId * @instance * @returns {Object.} JSON object */ - MsgRecvPacket.prototype.toJSON = function toJSON() { + PacketId.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MsgRecvPacket; + return PacketId; })(); - v1.MsgRecvPacketResponse = (function() { + v1.Acknowledgement = (function() { /** - * Properties of a MsgRecvPacketResponse. + * Properties of an Acknowledgement. * @memberof ibc.core.channel.v1 - * @interface IMsgRecvPacketResponse - * @property {ibc.core.channel.v1.ResponseResultType|null} [result] MsgRecvPacketResponse result + * @interface IAcknowledgement + * @property {Uint8Array|null} [result] Acknowledgement result + * @property {string|null} [error] Acknowledgement error */ /** - * Constructs a new MsgRecvPacketResponse. + * Constructs a new Acknowledgement. * @memberof ibc.core.channel.v1 - * @classdesc Represents a MsgRecvPacketResponse. - * @implements IMsgRecvPacketResponse + * @classdesc Represents an Acknowledgement. + * @implements IAcknowledgement * @constructor - * @param {ibc.core.channel.v1.IMsgRecvPacketResponse=} [properties] Properties to set + * @param {ibc.core.channel.v1.IAcknowledgement=} [properties] Properties to set */ - function MsgRecvPacketResponse(properties) { + function Acknowledgement(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -39497,63 +46492,90 @@ } /** - * MsgRecvPacketResponse result. - * @member {ibc.core.channel.v1.ResponseResultType} result - * @memberof ibc.core.channel.v1.MsgRecvPacketResponse + * Acknowledgement result. + * @member {Uint8Array|null|undefined} result + * @memberof ibc.core.channel.v1.Acknowledgement * @instance */ - MsgRecvPacketResponse.prototype.result = 0; + Acknowledgement.prototype.result = null; + + /** + * Acknowledgement error. + * @member {string|null|undefined} error + * @memberof ibc.core.channel.v1.Acknowledgement + * @instance + */ + Acknowledgement.prototype.error = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * Acknowledgement response. + * @member {"result"|"error"|undefined} response + * @memberof ibc.core.channel.v1.Acknowledgement + * @instance + */ + Object.defineProperty(Acknowledgement.prototype, "response", { + get: $util.oneOfGetter($oneOfFields = ["result", "error"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * Encodes the specified MsgRecvPacketResponse message. Does not implicitly {@link ibc.core.channel.v1.MsgRecvPacketResponse.verify|verify} messages. + * Encodes the specified Acknowledgement message. Does not implicitly {@link ibc.core.channel.v1.Acknowledgement.verify|verify} messages. * @function encode - * @memberof ibc.core.channel.v1.MsgRecvPacketResponse + * @memberof ibc.core.channel.v1.Acknowledgement * @static - * @param {ibc.core.channel.v1.IMsgRecvPacketResponse} message MsgRecvPacketResponse message or plain object to encode + * @param {ibc.core.channel.v1.IAcknowledgement} message Acknowledgement message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgRecvPacketResponse.encode = function encode(message, writer) { + Acknowledgement.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.result != null && Object.hasOwnProperty.call(message, "result")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.result); + writer.uint32(/* id 21, wireType 2 =*/170).bytes(message.result); + if (message.error != null && Object.hasOwnProperty.call(message, "error")) + writer.uint32(/* id 22, wireType 2 =*/178).string(message.error); return writer; }; /** - * Encodes the specified MsgRecvPacketResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.MsgRecvPacketResponse.verify|verify} messages. + * Encodes the specified Acknowledgement message, length delimited. Does not implicitly {@link ibc.core.channel.v1.Acknowledgement.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.channel.v1.MsgRecvPacketResponse + * @memberof ibc.core.channel.v1.Acknowledgement * @static - * @param {ibc.core.channel.v1.IMsgRecvPacketResponse} message MsgRecvPacketResponse message or plain object to encode + * @param {ibc.core.channel.v1.IAcknowledgement} message Acknowledgement message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgRecvPacketResponse.encodeDelimited = function encodeDelimited(message, writer) { + Acknowledgement.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MsgRecvPacketResponse message from the specified reader or buffer. + * Decodes an Acknowledgement message from the specified reader or buffer. * @function decode - * @memberof ibc.core.channel.v1.MsgRecvPacketResponse + * @memberof ibc.core.channel.v1.Acknowledgement * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.channel.v1.MsgRecvPacketResponse} MsgRecvPacketResponse + * @returns {ibc.core.channel.v1.Acknowledgement} Acknowledgement * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgRecvPacketResponse.decode = function decode(reader, length) { + Acknowledgement.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.MsgRecvPacketResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.Acknowledgement(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.result = reader.int32(); + case 21: + message.result = reader.bytes(); + break; + case 22: + message.error = reader.string(); break; default: reader.skipType(tag & 7); @@ -39564,620 +46586,497 @@ }; /** - * Decodes a MsgRecvPacketResponse message from the specified reader or buffer, length delimited. + * Decodes an Acknowledgement message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.channel.v1.MsgRecvPacketResponse + * @memberof ibc.core.channel.v1.Acknowledgement * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.channel.v1.MsgRecvPacketResponse} MsgRecvPacketResponse + * @returns {ibc.core.channel.v1.Acknowledgement} Acknowledgement * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgRecvPacketResponse.decodeDelimited = function decodeDelimited(reader) { + Acknowledgement.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MsgRecvPacketResponse message. + * Verifies an Acknowledgement message. * @function verify - * @memberof ibc.core.channel.v1.MsgRecvPacketResponse + * @memberof ibc.core.channel.v1.Acknowledgement * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MsgRecvPacketResponse.verify = function verify(message) { + Acknowledgement.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.result != null && message.hasOwnProperty("result")) - switch (message.result) { - default: - return "result: enum value expected"; - case 0: - case 1: - case 2: - break; - } + var properties = {}; + if (message.result != null && message.hasOwnProperty("result")) { + properties.response = 1; + if (!(message.result && typeof message.result.length === "number" || $util.isString(message.result))) + return "result: buffer expected"; + } + if (message.error != null && message.hasOwnProperty("error")) { + if (properties.response === 1) + return "response: multiple values"; + properties.response = 1; + if (!$util.isString(message.error)) + return "error: string expected"; + } return null; }; /** - * Creates a MsgRecvPacketResponse message from a plain object. Also converts values to their respective internal types. + * Creates an Acknowledgement message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.channel.v1.MsgRecvPacketResponse + * @memberof ibc.core.channel.v1.Acknowledgement * @static * @param {Object.} object Plain object - * @returns {ibc.core.channel.v1.MsgRecvPacketResponse} MsgRecvPacketResponse + * @returns {ibc.core.channel.v1.Acknowledgement} Acknowledgement */ - MsgRecvPacketResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.channel.v1.MsgRecvPacketResponse) + Acknowledgement.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.channel.v1.Acknowledgement) return object; - var message = new $root.ibc.core.channel.v1.MsgRecvPacketResponse(); - switch (object.result) { - case "RESPONSE_RESULT_TYPE_UNSPECIFIED": - case 0: - message.result = 0; - break; - case "RESPONSE_RESULT_TYPE_NOOP": - case 1: - message.result = 1; - break; - case "RESPONSE_RESULT_TYPE_SUCCESS": - case 2: - message.result = 2; - break; - } + var message = new $root.ibc.core.channel.v1.Acknowledgement(); + if (object.result != null) + if (typeof object.result === "string") + $util.base64.decode(object.result, message.result = $util.newBuffer($util.base64.length(object.result)), 0); + else if (object.result.length) + message.result = object.result; + if (object.error != null) + message.error = String(object.error); return message; }; /** - * Creates a plain object from a MsgRecvPacketResponse message. Also converts values to other types if specified. + * Creates a plain object from an Acknowledgement message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.channel.v1.MsgRecvPacketResponse + * @memberof ibc.core.channel.v1.Acknowledgement * @static - * @param {ibc.core.channel.v1.MsgRecvPacketResponse} message MsgRecvPacketResponse + * @param {ibc.core.channel.v1.Acknowledgement} message Acknowledgement * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MsgRecvPacketResponse.toObject = function toObject(message, options) { + Acknowledgement.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.result = options.enums === String ? "RESPONSE_RESULT_TYPE_UNSPECIFIED" : 0; - if (message.result != null && message.hasOwnProperty("result")) - object.result = options.enums === String ? $root.ibc.core.channel.v1.ResponseResultType[message.result] : message.result; + if (message.result != null && message.hasOwnProperty("result")) { + object.result = options.bytes === String ? $util.base64.encode(message.result, 0, message.result.length) : options.bytes === Array ? Array.prototype.slice.call(message.result) : message.result; + if (options.oneofs) + object.response = "result"; + } + if (message.error != null && message.hasOwnProperty("error")) { + object.error = message.error; + if (options.oneofs) + object.response = "error"; + } return object; }; /** - * Converts this MsgRecvPacketResponse to JSON. + * Converts this Acknowledgement to JSON. * @function toJSON - * @memberof ibc.core.channel.v1.MsgRecvPacketResponse + * @memberof ibc.core.channel.v1.Acknowledgement * @instance * @returns {Object.} JSON object */ - MsgRecvPacketResponse.prototype.toJSON = function toJSON() { + Acknowledgement.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MsgRecvPacketResponse; + return Acknowledgement; })(); - v1.MsgTimeout = (function() { + v1.Msg = (function() { /** - * Properties of a MsgTimeout. + * Constructs a new Msg service. * @memberof ibc.core.channel.v1 - * @interface IMsgTimeout - * @property {ibc.core.channel.v1.IPacket|null} [packet] MsgTimeout packet - * @property {Uint8Array|null} [proof_unreceived] MsgTimeout proof_unreceived - * @property {ibc.core.client.v1.IHeight|null} [proof_height] MsgTimeout proof_height - * @property {Long|null} [next_sequence_recv] MsgTimeout next_sequence_recv - * @property {string|null} [signer] MsgTimeout signer + * @classdesc Represents a Msg + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited */ + function Msg(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (Msg.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Msg; /** - * Constructs a new MsgTimeout. - * @memberof ibc.core.channel.v1 - * @classdesc Represents a MsgTimeout. - * @implements IMsgTimeout - * @constructor - * @param {ibc.core.channel.v1.IMsgTimeout=} [properties] Properties to set + * Callback as used by {@link ibc.core.channel.v1.Msg#channelOpenInit}. + * @memberof ibc.core.channel.v1.Msg + * @typedef ChannelOpenInitCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.core.channel.v1.MsgChannelOpenInitResponse} [response] MsgChannelOpenInitResponse */ - function MsgTimeout(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } /** - * MsgTimeout packet. - * @member {ibc.core.channel.v1.IPacket|null|undefined} packet - * @memberof ibc.core.channel.v1.MsgTimeout + * Calls ChannelOpenInit. + * @function channelOpenInit + * @memberof ibc.core.channel.v1.Msg * @instance + * @param {ibc.core.channel.v1.IMsgChannelOpenInit} request MsgChannelOpenInit message or plain object + * @param {ibc.core.channel.v1.Msg.ChannelOpenInitCallback} callback Node-style callback called with the error, if any, and MsgChannelOpenInitResponse + * @returns {undefined} + * @variation 1 */ - MsgTimeout.prototype.packet = null; + Object.defineProperty(Msg.prototype.channelOpenInit = function channelOpenInit(request, callback) { + return this.rpcCall(channelOpenInit, $root.ibc.core.channel.v1.MsgChannelOpenInit, $root.ibc.core.channel.v1.MsgChannelOpenInitResponse, request, callback); + }, "name", { value: "ChannelOpenInit" }); /** - * MsgTimeout proof_unreceived. - * @member {Uint8Array} proof_unreceived - * @memberof ibc.core.channel.v1.MsgTimeout + * Calls ChannelOpenInit. + * @function channelOpenInit + * @memberof ibc.core.channel.v1.Msg * @instance + * @param {ibc.core.channel.v1.IMsgChannelOpenInit} request MsgChannelOpenInit message or plain object + * @returns {Promise} Promise + * @variation 2 */ - MsgTimeout.prototype.proof_unreceived = $util.newBuffer([]); /** - * MsgTimeout proof_height. - * @member {ibc.core.client.v1.IHeight|null|undefined} proof_height - * @memberof ibc.core.channel.v1.MsgTimeout + * Callback as used by {@link ibc.core.channel.v1.Msg#channelOpenTry}. + * @memberof ibc.core.channel.v1.Msg + * @typedef ChannelOpenTryCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.core.channel.v1.MsgChannelOpenTryResponse} [response] MsgChannelOpenTryResponse + */ + + /** + * Calls ChannelOpenTry. + * @function channelOpenTry + * @memberof ibc.core.channel.v1.Msg * @instance + * @param {ibc.core.channel.v1.IMsgChannelOpenTry} request MsgChannelOpenTry message or plain object + * @param {ibc.core.channel.v1.Msg.ChannelOpenTryCallback} callback Node-style callback called with the error, if any, and MsgChannelOpenTryResponse + * @returns {undefined} + * @variation 1 */ - MsgTimeout.prototype.proof_height = null; + Object.defineProperty(Msg.prototype.channelOpenTry = function channelOpenTry(request, callback) { + return this.rpcCall(channelOpenTry, $root.ibc.core.channel.v1.MsgChannelOpenTry, $root.ibc.core.channel.v1.MsgChannelOpenTryResponse, request, callback); + }, "name", { value: "ChannelOpenTry" }); /** - * MsgTimeout next_sequence_recv. - * @member {Long} next_sequence_recv - * @memberof ibc.core.channel.v1.MsgTimeout + * Calls ChannelOpenTry. + * @function channelOpenTry + * @memberof ibc.core.channel.v1.Msg * @instance + * @param {ibc.core.channel.v1.IMsgChannelOpenTry} request MsgChannelOpenTry message or plain object + * @returns {Promise} Promise + * @variation 2 */ - MsgTimeout.prototype.next_sequence_recv = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** - * MsgTimeout signer. - * @member {string} signer - * @memberof ibc.core.channel.v1.MsgTimeout + * Callback as used by {@link ibc.core.channel.v1.Msg#channelOpenAck}. + * @memberof ibc.core.channel.v1.Msg + * @typedef ChannelOpenAckCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.core.channel.v1.MsgChannelOpenAckResponse} [response] MsgChannelOpenAckResponse + */ + + /** + * Calls ChannelOpenAck. + * @function channelOpenAck + * @memberof ibc.core.channel.v1.Msg * @instance + * @param {ibc.core.channel.v1.IMsgChannelOpenAck} request MsgChannelOpenAck message or plain object + * @param {ibc.core.channel.v1.Msg.ChannelOpenAckCallback} callback Node-style callback called with the error, if any, and MsgChannelOpenAckResponse + * @returns {undefined} + * @variation 1 */ - MsgTimeout.prototype.signer = ""; + Object.defineProperty(Msg.prototype.channelOpenAck = function channelOpenAck(request, callback) { + return this.rpcCall(channelOpenAck, $root.ibc.core.channel.v1.MsgChannelOpenAck, $root.ibc.core.channel.v1.MsgChannelOpenAckResponse, request, callback); + }, "name", { value: "ChannelOpenAck" }); /** - * Encodes the specified MsgTimeout message. Does not implicitly {@link ibc.core.channel.v1.MsgTimeout.verify|verify} messages. - * @function encode - * @memberof ibc.core.channel.v1.MsgTimeout - * @static - * @param {ibc.core.channel.v1.IMsgTimeout} message MsgTimeout message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls ChannelOpenAck. + * @function channelOpenAck + * @memberof ibc.core.channel.v1.Msg + * @instance + * @param {ibc.core.channel.v1.IMsgChannelOpenAck} request MsgChannelOpenAck message or plain object + * @returns {Promise} Promise + * @variation 2 */ - MsgTimeout.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.packet != null && Object.hasOwnProperty.call(message, "packet")) - $root.ibc.core.channel.v1.Packet.encode(message.packet, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.proof_unreceived != null && Object.hasOwnProperty.call(message, "proof_unreceived")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.proof_unreceived); - if (message.proof_height != null && Object.hasOwnProperty.call(message, "proof_height")) - $root.ibc.core.client.v1.Height.encode(message.proof_height, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.next_sequence_recv != null && Object.hasOwnProperty.call(message, "next_sequence_recv")) - writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.next_sequence_recv); - if (message.signer != null && Object.hasOwnProperty.call(message, "signer")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.signer); - return writer; - }; /** - * Encodes the specified MsgTimeout message, length delimited. Does not implicitly {@link ibc.core.channel.v1.MsgTimeout.verify|verify} messages. - * @function encodeDelimited - * @memberof ibc.core.channel.v1.MsgTimeout - * @static - * @param {ibc.core.channel.v1.IMsgTimeout} message MsgTimeout message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Callback as used by {@link ibc.core.channel.v1.Msg#channelOpenConfirm}. + * @memberof ibc.core.channel.v1.Msg + * @typedef ChannelOpenConfirmCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.core.channel.v1.MsgChannelOpenConfirmResponse} [response] MsgChannelOpenConfirmResponse */ - MsgTimeout.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; /** - * Decodes a MsgTimeout message from the specified reader or buffer. - * @function decode - * @memberof ibc.core.channel.v1.MsgTimeout - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.channel.v1.MsgTimeout} MsgTimeout - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls ChannelOpenConfirm. + * @function channelOpenConfirm + * @memberof ibc.core.channel.v1.Msg + * @instance + * @param {ibc.core.channel.v1.IMsgChannelOpenConfirm} request MsgChannelOpenConfirm message or plain object + * @param {ibc.core.channel.v1.Msg.ChannelOpenConfirmCallback} callback Node-style callback called with the error, if any, and MsgChannelOpenConfirmResponse + * @returns {undefined} + * @variation 1 */ - MsgTimeout.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.MsgTimeout(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.packet = $root.ibc.core.channel.v1.Packet.decode(reader, reader.uint32()); - break; - case 2: - message.proof_unreceived = reader.bytes(); - break; - case 3: - message.proof_height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); - break; - case 4: - message.next_sequence_recv = reader.uint64(); - break; - case 5: - message.signer = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + Object.defineProperty(Msg.prototype.channelOpenConfirm = function channelOpenConfirm(request, callback) { + return this.rpcCall(channelOpenConfirm, $root.ibc.core.channel.v1.MsgChannelOpenConfirm, $root.ibc.core.channel.v1.MsgChannelOpenConfirmResponse, request, callback); + }, "name", { value: "ChannelOpenConfirm" }); /** - * Decodes a MsgTimeout message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ibc.core.channel.v1.MsgTimeout - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.channel.v1.MsgTimeout} MsgTimeout - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls ChannelOpenConfirm. + * @function channelOpenConfirm + * @memberof ibc.core.channel.v1.Msg + * @instance + * @param {ibc.core.channel.v1.IMsgChannelOpenConfirm} request MsgChannelOpenConfirm message or plain object + * @returns {Promise} Promise + * @variation 2 */ - MsgTimeout.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; /** - * Verifies a MsgTimeout message. - * @function verify - * @memberof ibc.core.channel.v1.MsgTimeout - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Callback as used by {@link ibc.core.channel.v1.Msg#channelCloseInit}. + * @memberof ibc.core.channel.v1.Msg + * @typedef ChannelCloseInitCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.core.channel.v1.MsgChannelCloseInitResponse} [response] MsgChannelCloseInitResponse */ - MsgTimeout.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.packet != null && message.hasOwnProperty("packet")) { - var error = $root.ibc.core.channel.v1.Packet.verify(message.packet); - if (error) - return "packet." + error; - } - if (message.proof_unreceived != null && message.hasOwnProperty("proof_unreceived")) - if (!(message.proof_unreceived && typeof message.proof_unreceived.length === "number" || $util.isString(message.proof_unreceived))) - return "proof_unreceived: buffer expected"; - if (message.proof_height != null && message.hasOwnProperty("proof_height")) { - var error = $root.ibc.core.client.v1.Height.verify(message.proof_height); - if (error) - return "proof_height." + error; - } - if (message.next_sequence_recv != null && message.hasOwnProperty("next_sequence_recv")) - if (!$util.isInteger(message.next_sequence_recv) && !(message.next_sequence_recv && $util.isInteger(message.next_sequence_recv.low) && $util.isInteger(message.next_sequence_recv.high))) - return "next_sequence_recv: integer|Long expected"; - if (message.signer != null && message.hasOwnProperty("signer")) - if (!$util.isString(message.signer)) - return "signer: string expected"; - return null; - }; /** - * Creates a MsgTimeout message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof ibc.core.channel.v1.MsgTimeout - * @static - * @param {Object.} object Plain object - * @returns {ibc.core.channel.v1.MsgTimeout} MsgTimeout + * Calls ChannelCloseInit. + * @function channelCloseInit + * @memberof ibc.core.channel.v1.Msg + * @instance + * @param {ibc.core.channel.v1.IMsgChannelCloseInit} request MsgChannelCloseInit message or plain object + * @param {ibc.core.channel.v1.Msg.ChannelCloseInitCallback} callback Node-style callback called with the error, if any, and MsgChannelCloseInitResponse + * @returns {undefined} + * @variation 1 */ - MsgTimeout.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.channel.v1.MsgTimeout) - return object; - var message = new $root.ibc.core.channel.v1.MsgTimeout(); - if (object.packet != null) { - if (typeof object.packet !== "object") - throw TypeError(".ibc.core.channel.v1.MsgTimeout.packet: object expected"); - message.packet = $root.ibc.core.channel.v1.Packet.fromObject(object.packet); - } - if (object.proof_unreceived != null) - if (typeof object.proof_unreceived === "string") - $util.base64.decode(object.proof_unreceived, message.proof_unreceived = $util.newBuffer($util.base64.length(object.proof_unreceived)), 0); - else if (object.proof_unreceived.length) - message.proof_unreceived = object.proof_unreceived; - if (object.proof_height != null) { - if (typeof object.proof_height !== "object") - throw TypeError(".ibc.core.channel.v1.MsgTimeout.proof_height: object expected"); - message.proof_height = $root.ibc.core.client.v1.Height.fromObject(object.proof_height); - } - if (object.next_sequence_recv != null) - if ($util.Long) - (message.next_sequence_recv = $util.Long.fromValue(object.next_sequence_recv)).unsigned = true; - else if (typeof object.next_sequence_recv === "string") - message.next_sequence_recv = parseInt(object.next_sequence_recv, 10); - else if (typeof object.next_sequence_recv === "number") - message.next_sequence_recv = object.next_sequence_recv; - else if (typeof object.next_sequence_recv === "object") - message.next_sequence_recv = new $util.LongBits(object.next_sequence_recv.low >>> 0, object.next_sequence_recv.high >>> 0).toNumber(true); - if (object.signer != null) - message.signer = String(object.signer); - return message; - }; + Object.defineProperty(Msg.prototype.channelCloseInit = function channelCloseInit(request, callback) { + return this.rpcCall(channelCloseInit, $root.ibc.core.channel.v1.MsgChannelCloseInit, $root.ibc.core.channel.v1.MsgChannelCloseInitResponse, request, callback); + }, "name", { value: "ChannelCloseInit" }); /** - * Creates a plain object from a MsgTimeout message. Also converts values to other types if specified. - * @function toObject - * @memberof ibc.core.channel.v1.MsgTimeout - * @static - * @param {ibc.core.channel.v1.MsgTimeout} message MsgTimeout - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Calls ChannelCloseInit. + * @function channelCloseInit + * @memberof ibc.core.channel.v1.Msg + * @instance + * @param {ibc.core.channel.v1.IMsgChannelCloseInit} request MsgChannelCloseInit message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link ibc.core.channel.v1.Msg#channelCloseConfirm}. + * @memberof ibc.core.channel.v1.Msg + * @typedef ChannelCloseConfirmCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.core.channel.v1.MsgChannelCloseConfirmResponse} [response] MsgChannelCloseConfirmResponse */ - MsgTimeout.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.packet = null; - if (options.bytes === String) - object.proof_unreceived = ""; - else { - object.proof_unreceived = []; - if (options.bytes !== Array) - object.proof_unreceived = $util.newBuffer(object.proof_unreceived); - } - object.proof_height = null; - if ($util.Long) { - var long = new $util.Long(0, 0, true); - object.next_sequence_recv = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.next_sequence_recv = options.longs === String ? "0" : 0; - object.signer = ""; - } - if (message.packet != null && message.hasOwnProperty("packet")) - object.packet = $root.ibc.core.channel.v1.Packet.toObject(message.packet, options); - if (message.proof_unreceived != null && message.hasOwnProperty("proof_unreceived")) - object.proof_unreceived = options.bytes === String ? $util.base64.encode(message.proof_unreceived, 0, message.proof_unreceived.length) : options.bytes === Array ? Array.prototype.slice.call(message.proof_unreceived) : message.proof_unreceived; - if (message.proof_height != null && message.hasOwnProperty("proof_height")) - object.proof_height = $root.ibc.core.client.v1.Height.toObject(message.proof_height, options); - if (message.next_sequence_recv != null && message.hasOwnProperty("next_sequence_recv")) - if (typeof message.next_sequence_recv === "number") - object.next_sequence_recv = options.longs === String ? String(message.next_sequence_recv) : message.next_sequence_recv; - else - object.next_sequence_recv = options.longs === String ? $util.Long.prototype.toString.call(message.next_sequence_recv) : options.longs === Number ? new $util.LongBits(message.next_sequence_recv.low >>> 0, message.next_sequence_recv.high >>> 0).toNumber(true) : message.next_sequence_recv; - if (message.signer != null && message.hasOwnProperty("signer")) - object.signer = message.signer; - return object; - }; /** - * Converts this MsgTimeout to JSON. - * @function toJSON - * @memberof ibc.core.channel.v1.MsgTimeout + * Calls ChannelCloseConfirm. + * @function channelCloseConfirm + * @memberof ibc.core.channel.v1.Msg * @instance - * @returns {Object.} JSON object + * @param {ibc.core.channel.v1.IMsgChannelCloseConfirm} request MsgChannelCloseConfirm message or plain object + * @param {ibc.core.channel.v1.Msg.ChannelCloseConfirmCallback} callback Node-style callback called with the error, if any, and MsgChannelCloseConfirmResponse + * @returns {undefined} + * @variation 1 */ - MsgTimeout.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return MsgTimeout; - })(); + Object.defineProperty(Msg.prototype.channelCloseConfirm = function channelCloseConfirm(request, callback) { + return this.rpcCall(channelCloseConfirm, $root.ibc.core.channel.v1.MsgChannelCloseConfirm, $root.ibc.core.channel.v1.MsgChannelCloseConfirmResponse, request, callback); + }, "name", { value: "ChannelCloseConfirm" }); - v1.MsgTimeoutResponse = (function() { + /** + * Calls ChannelCloseConfirm. + * @function channelCloseConfirm + * @memberof ibc.core.channel.v1.Msg + * @instance + * @param {ibc.core.channel.v1.IMsgChannelCloseConfirm} request MsgChannelCloseConfirm message or plain object + * @returns {Promise} Promise + * @variation 2 + */ /** - * Properties of a MsgTimeoutResponse. - * @memberof ibc.core.channel.v1 - * @interface IMsgTimeoutResponse - * @property {ibc.core.channel.v1.ResponseResultType|null} [result] MsgTimeoutResponse result + * Callback as used by {@link ibc.core.channel.v1.Msg#recvPacket}. + * @memberof ibc.core.channel.v1.Msg + * @typedef RecvPacketCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.core.channel.v1.MsgRecvPacketResponse} [response] MsgRecvPacketResponse */ /** - * Constructs a new MsgTimeoutResponse. - * @memberof ibc.core.channel.v1 - * @classdesc Represents a MsgTimeoutResponse. - * @implements IMsgTimeoutResponse - * @constructor - * @param {ibc.core.channel.v1.IMsgTimeoutResponse=} [properties] Properties to set + * Calls RecvPacket. + * @function recvPacket + * @memberof ibc.core.channel.v1.Msg + * @instance + * @param {ibc.core.channel.v1.IMsgRecvPacket} request MsgRecvPacket message or plain object + * @param {ibc.core.channel.v1.Msg.RecvPacketCallback} callback Node-style callback called with the error, if any, and MsgRecvPacketResponse + * @returns {undefined} + * @variation 1 */ - function MsgTimeoutResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + Object.defineProperty(Msg.prototype.recvPacket = function recvPacket(request, callback) { + return this.rpcCall(recvPacket, $root.ibc.core.channel.v1.MsgRecvPacket, $root.ibc.core.channel.v1.MsgRecvPacketResponse, request, callback); + }, "name", { value: "RecvPacket" }); /** - * MsgTimeoutResponse result. - * @member {ibc.core.channel.v1.ResponseResultType} result - * @memberof ibc.core.channel.v1.MsgTimeoutResponse + * Calls RecvPacket. + * @function recvPacket + * @memberof ibc.core.channel.v1.Msg * @instance + * @param {ibc.core.channel.v1.IMsgRecvPacket} request MsgRecvPacket message or plain object + * @returns {Promise} Promise + * @variation 2 */ - MsgTimeoutResponse.prototype.result = 0; /** - * Encodes the specified MsgTimeoutResponse message. Does not implicitly {@link ibc.core.channel.v1.MsgTimeoutResponse.verify|verify} messages. - * @function encode - * @memberof ibc.core.channel.v1.MsgTimeoutResponse - * @static - * @param {ibc.core.channel.v1.IMsgTimeoutResponse} message MsgTimeoutResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Callback as used by {@link ibc.core.channel.v1.Msg#timeout}. + * @memberof ibc.core.channel.v1.Msg + * @typedef TimeoutCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.core.channel.v1.MsgTimeoutResponse} [response] MsgTimeoutResponse */ - MsgTimeoutResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.result != null && Object.hasOwnProperty.call(message, "result")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.result); - return writer; - }; /** - * Encodes the specified MsgTimeoutResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.MsgTimeoutResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof ibc.core.channel.v1.MsgTimeoutResponse - * @static - * @param {ibc.core.channel.v1.IMsgTimeoutResponse} message MsgTimeoutResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls Timeout. + * @function timeout + * @memberof ibc.core.channel.v1.Msg + * @instance + * @param {ibc.core.channel.v1.IMsgTimeout} request MsgTimeout message or plain object + * @param {ibc.core.channel.v1.Msg.TimeoutCallback} callback Node-style callback called with the error, if any, and MsgTimeoutResponse + * @returns {undefined} + * @variation 1 */ - MsgTimeoutResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + Object.defineProperty(Msg.prototype.timeout = function timeout(request, callback) { + return this.rpcCall(timeout, $root.ibc.core.channel.v1.MsgTimeout, $root.ibc.core.channel.v1.MsgTimeoutResponse, request, callback); + }, "name", { value: "Timeout" }); /** - * Decodes a MsgTimeoutResponse message from the specified reader or buffer. - * @function decode - * @memberof ibc.core.channel.v1.MsgTimeoutResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.channel.v1.MsgTimeoutResponse} MsgTimeoutResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls Timeout. + * @function timeout + * @memberof ibc.core.channel.v1.Msg + * @instance + * @param {ibc.core.channel.v1.IMsgTimeout} request MsgTimeout message or plain object + * @returns {Promise} Promise + * @variation 2 */ - MsgTimeoutResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.MsgTimeoutResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.result = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; /** - * Decodes a MsgTimeoutResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ibc.core.channel.v1.MsgTimeoutResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.channel.v1.MsgTimeoutResponse} MsgTimeoutResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link ibc.core.channel.v1.Msg#timeoutOnClose}. + * @memberof ibc.core.channel.v1.Msg + * @typedef TimeoutOnCloseCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.core.channel.v1.MsgTimeoutOnCloseResponse} [response] MsgTimeoutOnCloseResponse */ - MsgTimeoutResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; /** - * Verifies a MsgTimeoutResponse message. - * @function verify - * @memberof ibc.core.channel.v1.MsgTimeoutResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Calls TimeoutOnClose. + * @function timeoutOnClose + * @memberof ibc.core.channel.v1.Msg + * @instance + * @param {ibc.core.channel.v1.IMsgTimeoutOnClose} request MsgTimeoutOnClose message or plain object + * @param {ibc.core.channel.v1.Msg.TimeoutOnCloseCallback} callback Node-style callback called with the error, if any, and MsgTimeoutOnCloseResponse + * @returns {undefined} + * @variation 1 */ - MsgTimeoutResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.result != null && message.hasOwnProperty("result")) - switch (message.result) { - default: - return "result: enum value expected"; - case 0: - case 1: - case 2: - break; - } - return null; - }; + Object.defineProperty(Msg.prototype.timeoutOnClose = function timeoutOnClose(request, callback) { + return this.rpcCall(timeoutOnClose, $root.ibc.core.channel.v1.MsgTimeoutOnClose, $root.ibc.core.channel.v1.MsgTimeoutOnCloseResponse, request, callback); + }, "name", { value: "TimeoutOnClose" }); /** - * Creates a MsgTimeoutResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof ibc.core.channel.v1.MsgTimeoutResponse - * @static - * @param {Object.} object Plain object - * @returns {ibc.core.channel.v1.MsgTimeoutResponse} MsgTimeoutResponse + * Calls TimeoutOnClose. + * @function timeoutOnClose + * @memberof ibc.core.channel.v1.Msg + * @instance + * @param {ibc.core.channel.v1.IMsgTimeoutOnClose} request MsgTimeoutOnClose message or plain object + * @returns {Promise} Promise + * @variation 2 */ - MsgTimeoutResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.channel.v1.MsgTimeoutResponse) - return object; - var message = new $root.ibc.core.channel.v1.MsgTimeoutResponse(); - switch (object.result) { - case "RESPONSE_RESULT_TYPE_UNSPECIFIED": - case 0: - message.result = 0; - break; - case "RESPONSE_RESULT_TYPE_NOOP": - case 1: - message.result = 1; - break; - case "RESPONSE_RESULT_TYPE_SUCCESS": - case 2: - message.result = 2; - break; - } - return message; - }; /** - * Creates a plain object from a MsgTimeoutResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof ibc.core.channel.v1.MsgTimeoutResponse - * @static - * @param {ibc.core.channel.v1.MsgTimeoutResponse} message MsgTimeoutResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Callback as used by {@link ibc.core.channel.v1.Msg#acknowledgement}. + * @memberof ibc.core.channel.v1.Msg + * @typedef AcknowledgementCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.core.channel.v1.MsgAcknowledgementResponse} [response] MsgAcknowledgementResponse */ - MsgTimeoutResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.result = options.enums === String ? "RESPONSE_RESULT_TYPE_UNSPECIFIED" : 0; - if (message.result != null && message.hasOwnProperty("result")) - object.result = options.enums === String ? $root.ibc.core.channel.v1.ResponseResultType[message.result] : message.result; - return object; - }; /** - * Converts this MsgTimeoutResponse to JSON. - * @function toJSON - * @memberof ibc.core.channel.v1.MsgTimeoutResponse + * Calls Acknowledgement. + * @function acknowledgement + * @memberof ibc.core.channel.v1.Msg * @instance - * @returns {Object.} JSON object + * @param {ibc.core.channel.v1.IMsgAcknowledgement} request MsgAcknowledgement message or plain object + * @param {ibc.core.channel.v1.Msg.AcknowledgementCallback} callback Node-style callback called with the error, if any, and MsgAcknowledgementResponse + * @returns {undefined} + * @variation 1 */ - MsgTimeoutResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + Object.defineProperty(Msg.prototype.acknowledgement = function acknowledgement(request, callback) { + return this.rpcCall(acknowledgement, $root.ibc.core.channel.v1.MsgAcknowledgement, $root.ibc.core.channel.v1.MsgAcknowledgementResponse, request, callback); + }, "name", { value: "Acknowledgement" }); - return MsgTimeoutResponse; + /** + * Calls Acknowledgement. + * @function acknowledgement + * @memberof ibc.core.channel.v1.Msg + * @instance + * @param {ibc.core.channel.v1.IMsgAcknowledgement} request MsgAcknowledgement message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return Msg; })(); - v1.MsgTimeoutOnClose = (function() { + /** + * ResponseResultType enum. + * @name ibc.core.channel.v1.ResponseResultType + * @enum {number} + * @property {number} RESPONSE_RESULT_TYPE_UNSPECIFIED=0 RESPONSE_RESULT_TYPE_UNSPECIFIED value + * @property {number} RESPONSE_RESULT_TYPE_NOOP=1 RESPONSE_RESULT_TYPE_NOOP value + * @property {number} RESPONSE_RESULT_TYPE_SUCCESS=2 RESPONSE_RESULT_TYPE_SUCCESS value + */ + v1.ResponseResultType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "RESPONSE_RESULT_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "RESPONSE_RESULT_TYPE_NOOP"] = 1; + values[valuesById[2] = "RESPONSE_RESULT_TYPE_SUCCESS"] = 2; + return values; + })(); + + v1.MsgChannelOpenInit = (function() { /** - * Properties of a MsgTimeoutOnClose. + * Properties of a MsgChannelOpenInit. * @memberof ibc.core.channel.v1 - * @interface IMsgTimeoutOnClose - * @property {ibc.core.channel.v1.IPacket|null} [packet] MsgTimeoutOnClose packet - * @property {Uint8Array|null} [proof_unreceived] MsgTimeoutOnClose proof_unreceived - * @property {Uint8Array|null} [proof_close] MsgTimeoutOnClose proof_close - * @property {ibc.core.client.v1.IHeight|null} [proof_height] MsgTimeoutOnClose proof_height - * @property {Long|null} [next_sequence_recv] MsgTimeoutOnClose next_sequence_recv - * @property {string|null} [signer] MsgTimeoutOnClose signer + * @interface IMsgChannelOpenInit + * @property {string|null} [port_id] MsgChannelOpenInit port_id + * @property {ibc.core.channel.v1.IChannel|null} [channel] MsgChannelOpenInit channel + * @property {string|null} [signer] MsgChannelOpenInit signer */ /** - * Constructs a new MsgTimeoutOnClose. + * Constructs a new MsgChannelOpenInit. * @memberof ibc.core.channel.v1 - * @classdesc Represents a MsgTimeoutOnClose. - * @implements IMsgTimeoutOnClose + * @classdesc Represents a MsgChannelOpenInit. + * @implements IMsgChannelOpenInit * @constructor - * @param {ibc.core.channel.v1.IMsgTimeoutOnClose=} [properties] Properties to set + * @param {ibc.core.channel.v1.IMsgChannelOpenInit=} [properties] Properties to set */ - function MsgTimeoutOnClose(properties) { + function MsgChannelOpenInit(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -40185,127 +47084,88 @@ } /** - * MsgTimeoutOnClose packet. - * @member {ibc.core.channel.v1.IPacket|null|undefined} packet - * @memberof ibc.core.channel.v1.MsgTimeoutOnClose - * @instance - */ - MsgTimeoutOnClose.prototype.packet = null; - - /** - * MsgTimeoutOnClose proof_unreceived. - * @member {Uint8Array} proof_unreceived - * @memberof ibc.core.channel.v1.MsgTimeoutOnClose - * @instance - */ - MsgTimeoutOnClose.prototype.proof_unreceived = $util.newBuffer([]); - - /** - * MsgTimeoutOnClose proof_close. - * @member {Uint8Array} proof_close - * @memberof ibc.core.channel.v1.MsgTimeoutOnClose - * @instance - */ - MsgTimeoutOnClose.prototype.proof_close = $util.newBuffer([]); - - /** - * MsgTimeoutOnClose proof_height. - * @member {ibc.core.client.v1.IHeight|null|undefined} proof_height - * @memberof ibc.core.channel.v1.MsgTimeoutOnClose + * MsgChannelOpenInit port_id. + * @member {string} port_id + * @memberof ibc.core.channel.v1.MsgChannelOpenInit * @instance */ - MsgTimeoutOnClose.prototype.proof_height = null; + MsgChannelOpenInit.prototype.port_id = ""; /** - * MsgTimeoutOnClose next_sequence_recv. - * @member {Long} next_sequence_recv - * @memberof ibc.core.channel.v1.MsgTimeoutOnClose + * MsgChannelOpenInit channel. + * @member {ibc.core.channel.v1.IChannel|null|undefined} channel + * @memberof ibc.core.channel.v1.MsgChannelOpenInit * @instance */ - MsgTimeoutOnClose.prototype.next_sequence_recv = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + MsgChannelOpenInit.prototype.channel = null; /** - * MsgTimeoutOnClose signer. + * MsgChannelOpenInit signer. * @member {string} signer - * @memberof ibc.core.channel.v1.MsgTimeoutOnClose + * @memberof ibc.core.channel.v1.MsgChannelOpenInit * @instance */ - MsgTimeoutOnClose.prototype.signer = ""; + MsgChannelOpenInit.prototype.signer = ""; /** - * Encodes the specified MsgTimeoutOnClose message. Does not implicitly {@link ibc.core.channel.v1.MsgTimeoutOnClose.verify|verify} messages. + * Encodes the specified MsgChannelOpenInit message. Does not implicitly {@link ibc.core.channel.v1.MsgChannelOpenInit.verify|verify} messages. * @function encode - * @memberof ibc.core.channel.v1.MsgTimeoutOnClose + * @memberof ibc.core.channel.v1.MsgChannelOpenInit * @static - * @param {ibc.core.channel.v1.IMsgTimeoutOnClose} message MsgTimeoutOnClose message or plain object to encode + * @param {ibc.core.channel.v1.IMsgChannelOpenInit} message MsgChannelOpenInit message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgTimeoutOnClose.encode = function encode(message, writer) { + MsgChannelOpenInit.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.packet != null && Object.hasOwnProperty.call(message, "packet")) - $root.ibc.core.channel.v1.Packet.encode(message.packet, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.proof_unreceived != null && Object.hasOwnProperty.call(message, "proof_unreceived")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.proof_unreceived); - if (message.proof_close != null && Object.hasOwnProperty.call(message, "proof_close")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.proof_close); - if (message.proof_height != null && Object.hasOwnProperty.call(message, "proof_height")) - $root.ibc.core.client.v1.Height.encode(message.proof_height, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.next_sequence_recv != null && Object.hasOwnProperty.call(message, "next_sequence_recv")) - writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.next_sequence_recv); + if (message.port_id != null && Object.hasOwnProperty.call(message, "port_id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.port_id); + if (message.channel != null && Object.hasOwnProperty.call(message, "channel")) + $root.ibc.core.channel.v1.Channel.encode(message.channel, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.signer != null && Object.hasOwnProperty.call(message, "signer")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.signer); + writer.uint32(/* id 3, wireType 2 =*/26).string(message.signer); return writer; }; /** - * Encodes the specified MsgTimeoutOnClose message, length delimited. Does not implicitly {@link ibc.core.channel.v1.MsgTimeoutOnClose.verify|verify} messages. + * Encodes the specified MsgChannelOpenInit message, length delimited. Does not implicitly {@link ibc.core.channel.v1.MsgChannelOpenInit.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.channel.v1.MsgTimeoutOnClose + * @memberof ibc.core.channel.v1.MsgChannelOpenInit * @static - * @param {ibc.core.channel.v1.IMsgTimeoutOnClose} message MsgTimeoutOnClose message or plain object to encode + * @param {ibc.core.channel.v1.IMsgChannelOpenInit} message MsgChannelOpenInit message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgTimeoutOnClose.encodeDelimited = function encodeDelimited(message, writer) { + MsgChannelOpenInit.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MsgTimeoutOnClose message from the specified reader or buffer. + * Decodes a MsgChannelOpenInit message from the specified reader or buffer. * @function decode - * @memberof ibc.core.channel.v1.MsgTimeoutOnClose + * @memberof ibc.core.channel.v1.MsgChannelOpenInit * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.channel.v1.MsgTimeoutOnClose} MsgTimeoutOnClose + * @returns {ibc.core.channel.v1.MsgChannelOpenInit} MsgChannelOpenInit * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgTimeoutOnClose.decode = function decode(reader, length) { + MsgChannelOpenInit.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.MsgTimeoutOnClose(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.MsgChannelOpenInit(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.packet = $root.ibc.core.channel.v1.Packet.decode(reader, reader.uint32()); + message.port_id = reader.string(); break; case 2: - message.proof_unreceived = reader.bytes(); + message.channel = $root.ibc.core.channel.v1.Channel.decode(reader, reader.uint32()); break; case 3: - message.proof_close = reader.bytes(); - break; - case 4: - message.proof_height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); - break; - case 5: - message.next_sequence_recv = reader.uint64(); - break; - case 6: message.signer = reader.string(); break; default: @@ -40317,51 +47177,40 @@ }; /** - * Decodes a MsgTimeoutOnClose message from the specified reader or buffer, length delimited. + * Decodes a MsgChannelOpenInit message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.channel.v1.MsgTimeoutOnClose + * @memberof ibc.core.channel.v1.MsgChannelOpenInit * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.channel.v1.MsgTimeoutOnClose} MsgTimeoutOnClose + * @returns {ibc.core.channel.v1.MsgChannelOpenInit} MsgChannelOpenInit * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgTimeoutOnClose.decodeDelimited = function decodeDelimited(reader) { + MsgChannelOpenInit.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MsgTimeoutOnClose message. + * Verifies a MsgChannelOpenInit message. * @function verify - * @memberof ibc.core.channel.v1.MsgTimeoutOnClose + * @memberof ibc.core.channel.v1.MsgChannelOpenInit * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MsgTimeoutOnClose.verify = function verify(message) { + MsgChannelOpenInit.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.packet != null && message.hasOwnProperty("packet")) { - var error = $root.ibc.core.channel.v1.Packet.verify(message.packet); - if (error) - return "packet." + error; - } - if (message.proof_unreceived != null && message.hasOwnProperty("proof_unreceived")) - if (!(message.proof_unreceived && typeof message.proof_unreceived.length === "number" || $util.isString(message.proof_unreceived))) - return "proof_unreceived: buffer expected"; - if (message.proof_close != null && message.hasOwnProperty("proof_close")) - if (!(message.proof_close && typeof message.proof_close.length === "number" || $util.isString(message.proof_close))) - return "proof_close: buffer expected"; - if (message.proof_height != null && message.hasOwnProperty("proof_height")) { - var error = $root.ibc.core.client.v1.Height.verify(message.proof_height); + if (message.port_id != null && message.hasOwnProperty("port_id")) + if (!$util.isString(message.port_id)) + return "port_id: string expected"; + if (message.channel != null && message.hasOwnProperty("channel")) { + var error = $root.ibc.core.channel.v1.Channel.verify(message.channel); if (error) - return "proof_height." + error; + return "channel." + error; } - if (message.next_sequence_recv != null && message.hasOwnProperty("next_sequence_recv")) - if (!$util.isInteger(message.next_sequence_recv) && !(message.next_sequence_recv && $util.isInteger(message.next_sequence_recv.low) && $util.isInteger(message.next_sequence_recv.high))) - return "next_sequence_recv: integer|Long expected"; if (message.signer != null && message.hasOwnProperty("signer")) if (!$util.isString(message.signer)) return "signer: string expected"; @@ -40369,138 +47218,89 @@ }; /** - * Creates a MsgTimeoutOnClose message from a plain object. Also converts values to their respective internal types. + * Creates a MsgChannelOpenInit message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.channel.v1.MsgTimeoutOnClose + * @memberof ibc.core.channel.v1.MsgChannelOpenInit * @static * @param {Object.} object Plain object - * @returns {ibc.core.channel.v1.MsgTimeoutOnClose} MsgTimeoutOnClose + * @returns {ibc.core.channel.v1.MsgChannelOpenInit} MsgChannelOpenInit */ - MsgTimeoutOnClose.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.channel.v1.MsgTimeoutOnClose) + MsgChannelOpenInit.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.channel.v1.MsgChannelOpenInit) return object; - var message = new $root.ibc.core.channel.v1.MsgTimeoutOnClose(); - if (object.packet != null) { - if (typeof object.packet !== "object") - throw TypeError(".ibc.core.channel.v1.MsgTimeoutOnClose.packet: object expected"); - message.packet = $root.ibc.core.channel.v1.Packet.fromObject(object.packet); - } - if (object.proof_unreceived != null) - if (typeof object.proof_unreceived === "string") - $util.base64.decode(object.proof_unreceived, message.proof_unreceived = $util.newBuffer($util.base64.length(object.proof_unreceived)), 0); - else if (object.proof_unreceived.length) - message.proof_unreceived = object.proof_unreceived; - if (object.proof_close != null) - if (typeof object.proof_close === "string") - $util.base64.decode(object.proof_close, message.proof_close = $util.newBuffer($util.base64.length(object.proof_close)), 0); - else if (object.proof_close.length) - message.proof_close = object.proof_close; - if (object.proof_height != null) { - if (typeof object.proof_height !== "object") - throw TypeError(".ibc.core.channel.v1.MsgTimeoutOnClose.proof_height: object expected"); - message.proof_height = $root.ibc.core.client.v1.Height.fromObject(object.proof_height); + var message = new $root.ibc.core.channel.v1.MsgChannelOpenInit(); + if (object.port_id != null) + message.port_id = String(object.port_id); + if (object.channel != null) { + if (typeof object.channel !== "object") + throw TypeError(".ibc.core.channel.v1.MsgChannelOpenInit.channel: object expected"); + message.channel = $root.ibc.core.channel.v1.Channel.fromObject(object.channel); } - if (object.next_sequence_recv != null) - if ($util.Long) - (message.next_sequence_recv = $util.Long.fromValue(object.next_sequence_recv)).unsigned = true; - else if (typeof object.next_sequence_recv === "string") - message.next_sequence_recv = parseInt(object.next_sequence_recv, 10); - else if (typeof object.next_sequence_recv === "number") - message.next_sequence_recv = object.next_sequence_recv; - else if (typeof object.next_sequence_recv === "object") - message.next_sequence_recv = new $util.LongBits(object.next_sequence_recv.low >>> 0, object.next_sequence_recv.high >>> 0).toNumber(true); if (object.signer != null) message.signer = String(object.signer); return message; }; /** - * Creates a plain object from a MsgTimeoutOnClose message. Also converts values to other types if specified. + * Creates a plain object from a MsgChannelOpenInit message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.channel.v1.MsgTimeoutOnClose + * @memberof ibc.core.channel.v1.MsgChannelOpenInit * @static - * @param {ibc.core.channel.v1.MsgTimeoutOnClose} message MsgTimeoutOnClose + * @param {ibc.core.channel.v1.MsgChannelOpenInit} message MsgChannelOpenInit * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MsgTimeoutOnClose.toObject = function toObject(message, options) { + MsgChannelOpenInit.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.packet = null; - if (options.bytes === String) - object.proof_unreceived = ""; - else { - object.proof_unreceived = []; - if (options.bytes !== Array) - object.proof_unreceived = $util.newBuffer(object.proof_unreceived); - } - if (options.bytes === String) - object.proof_close = ""; - else { - object.proof_close = []; - if (options.bytes !== Array) - object.proof_close = $util.newBuffer(object.proof_close); - } - object.proof_height = null; - if ($util.Long) { - var long = new $util.Long(0, 0, true); - object.next_sequence_recv = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.next_sequence_recv = options.longs === String ? "0" : 0; + object.port_id = ""; + object.channel = null; object.signer = ""; } - if (message.packet != null && message.hasOwnProperty("packet")) - object.packet = $root.ibc.core.channel.v1.Packet.toObject(message.packet, options); - if (message.proof_unreceived != null && message.hasOwnProperty("proof_unreceived")) - object.proof_unreceived = options.bytes === String ? $util.base64.encode(message.proof_unreceived, 0, message.proof_unreceived.length) : options.bytes === Array ? Array.prototype.slice.call(message.proof_unreceived) : message.proof_unreceived; - if (message.proof_close != null && message.hasOwnProperty("proof_close")) - object.proof_close = options.bytes === String ? $util.base64.encode(message.proof_close, 0, message.proof_close.length) : options.bytes === Array ? Array.prototype.slice.call(message.proof_close) : message.proof_close; - if (message.proof_height != null && message.hasOwnProperty("proof_height")) - object.proof_height = $root.ibc.core.client.v1.Height.toObject(message.proof_height, options); - if (message.next_sequence_recv != null && message.hasOwnProperty("next_sequence_recv")) - if (typeof message.next_sequence_recv === "number") - object.next_sequence_recv = options.longs === String ? String(message.next_sequence_recv) : message.next_sequence_recv; - else - object.next_sequence_recv = options.longs === String ? $util.Long.prototype.toString.call(message.next_sequence_recv) : options.longs === Number ? new $util.LongBits(message.next_sequence_recv.low >>> 0, message.next_sequence_recv.high >>> 0).toNumber(true) : message.next_sequence_recv; + if (message.port_id != null && message.hasOwnProperty("port_id")) + object.port_id = message.port_id; + if (message.channel != null && message.hasOwnProperty("channel")) + object.channel = $root.ibc.core.channel.v1.Channel.toObject(message.channel, options); if (message.signer != null && message.hasOwnProperty("signer")) object.signer = message.signer; return object; }; /** - * Converts this MsgTimeoutOnClose to JSON. + * Converts this MsgChannelOpenInit to JSON. * @function toJSON - * @memberof ibc.core.channel.v1.MsgTimeoutOnClose + * @memberof ibc.core.channel.v1.MsgChannelOpenInit * @instance * @returns {Object.} JSON object */ - MsgTimeoutOnClose.prototype.toJSON = function toJSON() { + MsgChannelOpenInit.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MsgTimeoutOnClose; + return MsgChannelOpenInit; })(); - v1.MsgTimeoutOnCloseResponse = (function() { + v1.MsgChannelOpenInitResponse = (function() { /** - * Properties of a MsgTimeoutOnCloseResponse. + * Properties of a MsgChannelOpenInitResponse. * @memberof ibc.core.channel.v1 - * @interface IMsgTimeoutOnCloseResponse - * @property {ibc.core.channel.v1.ResponseResultType|null} [result] MsgTimeoutOnCloseResponse result + * @interface IMsgChannelOpenInitResponse + * @property {string|null} [channel_id] MsgChannelOpenInitResponse channel_id + * @property {string|null} [version] MsgChannelOpenInitResponse version */ /** - * Constructs a new MsgTimeoutOnCloseResponse. + * Constructs a new MsgChannelOpenInitResponse. * @memberof ibc.core.channel.v1 - * @classdesc Represents a MsgTimeoutOnCloseResponse. - * @implements IMsgTimeoutOnCloseResponse + * @classdesc Represents a MsgChannelOpenInitResponse. + * @implements IMsgChannelOpenInitResponse * @constructor - * @param {ibc.core.channel.v1.IMsgTimeoutOnCloseResponse=} [properties] Properties to set + * @param {ibc.core.channel.v1.IMsgChannelOpenInitResponse=} [properties] Properties to set */ - function MsgTimeoutOnCloseResponse(properties) { + function MsgChannelOpenInitResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -40508,63 +47308,76 @@ } /** - * MsgTimeoutOnCloseResponse result. - * @member {ibc.core.channel.v1.ResponseResultType} result - * @memberof ibc.core.channel.v1.MsgTimeoutOnCloseResponse + * MsgChannelOpenInitResponse channel_id. + * @member {string} channel_id + * @memberof ibc.core.channel.v1.MsgChannelOpenInitResponse * @instance */ - MsgTimeoutOnCloseResponse.prototype.result = 0; + MsgChannelOpenInitResponse.prototype.channel_id = ""; /** - * Encodes the specified MsgTimeoutOnCloseResponse message. Does not implicitly {@link ibc.core.channel.v1.MsgTimeoutOnCloseResponse.verify|verify} messages. + * MsgChannelOpenInitResponse version. + * @member {string} version + * @memberof ibc.core.channel.v1.MsgChannelOpenInitResponse + * @instance + */ + MsgChannelOpenInitResponse.prototype.version = ""; + + /** + * Encodes the specified MsgChannelOpenInitResponse message. Does not implicitly {@link ibc.core.channel.v1.MsgChannelOpenInitResponse.verify|verify} messages. * @function encode - * @memberof ibc.core.channel.v1.MsgTimeoutOnCloseResponse + * @memberof ibc.core.channel.v1.MsgChannelOpenInitResponse * @static - * @param {ibc.core.channel.v1.IMsgTimeoutOnCloseResponse} message MsgTimeoutOnCloseResponse message or plain object to encode + * @param {ibc.core.channel.v1.IMsgChannelOpenInitResponse} message MsgChannelOpenInitResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgTimeoutOnCloseResponse.encode = function encode(message, writer) { + MsgChannelOpenInitResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.result != null && Object.hasOwnProperty.call(message, "result")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.result); + if (message.channel_id != null && Object.hasOwnProperty.call(message, "channel_id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.channel_id); + if (message.version != null && Object.hasOwnProperty.call(message, "version")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.version); return writer; }; /** - * Encodes the specified MsgTimeoutOnCloseResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.MsgTimeoutOnCloseResponse.verify|verify} messages. + * Encodes the specified MsgChannelOpenInitResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.MsgChannelOpenInitResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.channel.v1.MsgTimeoutOnCloseResponse + * @memberof ibc.core.channel.v1.MsgChannelOpenInitResponse * @static - * @param {ibc.core.channel.v1.IMsgTimeoutOnCloseResponse} message MsgTimeoutOnCloseResponse message or plain object to encode + * @param {ibc.core.channel.v1.IMsgChannelOpenInitResponse} message MsgChannelOpenInitResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgTimeoutOnCloseResponse.encodeDelimited = function encodeDelimited(message, writer) { + MsgChannelOpenInitResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MsgTimeoutOnCloseResponse message from the specified reader or buffer. + * Decodes a MsgChannelOpenInitResponse message from the specified reader or buffer. * @function decode - * @memberof ibc.core.channel.v1.MsgTimeoutOnCloseResponse + * @memberof ibc.core.channel.v1.MsgChannelOpenInitResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.channel.v1.MsgTimeoutOnCloseResponse} MsgTimeoutOnCloseResponse + * @returns {ibc.core.channel.v1.MsgChannelOpenInitResponse} MsgChannelOpenInitResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgTimeoutOnCloseResponse.decode = function decode(reader, length) { + MsgChannelOpenInitResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.MsgTimeoutOnCloseResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.MsgChannelOpenInitResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.result = reader.int32(); + message.channel_id = reader.string(); + break; + case 2: + message.version = reader.string(); break; default: reader.skipType(tag & 7); @@ -40575,129 +47388,122 @@ }; /** - * Decodes a MsgTimeoutOnCloseResponse message from the specified reader or buffer, length delimited. + * Decodes a MsgChannelOpenInitResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.channel.v1.MsgTimeoutOnCloseResponse + * @memberof ibc.core.channel.v1.MsgChannelOpenInitResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.channel.v1.MsgTimeoutOnCloseResponse} MsgTimeoutOnCloseResponse + * @returns {ibc.core.channel.v1.MsgChannelOpenInitResponse} MsgChannelOpenInitResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgTimeoutOnCloseResponse.decodeDelimited = function decodeDelimited(reader) { + MsgChannelOpenInitResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MsgTimeoutOnCloseResponse message. + * Verifies a MsgChannelOpenInitResponse message. * @function verify - * @memberof ibc.core.channel.v1.MsgTimeoutOnCloseResponse + * @memberof ibc.core.channel.v1.MsgChannelOpenInitResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MsgTimeoutOnCloseResponse.verify = function verify(message) { + MsgChannelOpenInitResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.result != null && message.hasOwnProperty("result")) - switch (message.result) { - default: - return "result: enum value expected"; - case 0: - case 1: - case 2: - break; - } + if (message.channel_id != null && message.hasOwnProperty("channel_id")) + if (!$util.isString(message.channel_id)) + return "channel_id: string expected"; + if (message.version != null && message.hasOwnProperty("version")) + if (!$util.isString(message.version)) + return "version: string expected"; return null; }; /** - * Creates a MsgTimeoutOnCloseResponse message from a plain object. Also converts values to their respective internal types. + * Creates a MsgChannelOpenInitResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.channel.v1.MsgTimeoutOnCloseResponse + * @memberof ibc.core.channel.v1.MsgChannelOpenInitResponse * @static * @param {Object.} object Plain object - * @returns {ibc.core.channel.v1.MsgTimeoutOnCloseResponse} MsgTimeoutOnCloseResponse + * @returns {ibc.core.channel.v1.MsgChannelOpenInitResponse} MsgChannelOpenInitResponse */ - MsgTimeoutOnCloseResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.channel.v1.MsgTimeoutOnCloseResponse) + MsgChannelOpenInitResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.channel.v1.MsgChannelOpenInitResponse) return object; - var message = new $root.ibc.core.channel.v1.MsgTimeoutOnCloseResponse(); - switch (object.result) { - case "RESPONSE_RESULT_TYPE_UNSPECIFIED": - case 0: - message.result = 0; - break; - case "RESPONSE_RESULT_TYPE_NOOP": - case 1: - message.result = 1; - break; - case "RESPONSE_RESULT_TYPE_SUCCESS": - case 2: - message.result = 2; - break; - } + var message = new $root.ibc.core.channel.v1.MsgChannelOpenInitResponse(); + if (object.channel_id != null) + message.channel_id = String(object.channel_id); + if (object.version != null) + message.version = String(object.version); return message; }; /** - * Creates a plain object from a MsgTimeoutOnCloseResponse message. Also converts values to other types if specified. + * Creates a plain object from a MsgChannelOpenInitResponse message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.channel.v1.MsgTimeoutOnCloseResponse + * @memberof ibc.core.channel.v1.MsgChannelOpenInitResponse * @static - * @param {ibc.core.channel.v1.MsgTimeoutOnCloseResponse} message MsgTimeoutOnCloseResponse + * @param {ibc.core.channel.v1.MsgChannelOpenInitResponse} message MsgChannelOpenInitResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MsgTimeoutOnCloseResponse.toObject = function toObject(message, options) { + MsgChannelOpenInitResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.result = options.enums === String ? "RESPONSE_RESULT_TYPE_UNSPECIFIED" : 0; - if (message.result != null && message.hasOwnProperty("result")) - object.result = options.enums === String ? $root.ibc.core.channel.v1.ResponseResultType[message.result] : message.result; + if (options.defaults) { + object.channel_id = ""; + object.version = ""; + } + if (message.channel_id != null && message.hasOwnProperty("channel_id")) + object.channel_id = message.channel_id; + if (message.version != null && message.hasOwnProperty("version")) + object.version = message.version; return object; }; /** - * Converts this MsgTimeoutOnCloseResponse to JSON. + * Converts this MsgChannelOpenInitResponse to JSON. * @function toJSON - * @memberof ibc.core.channel.v1.MsgTimeoutOnCloseResponse + * @memberof ibc.core.channel.v1.MsgChannelOpenInitResponse * @instance * @returns {Object.} JSON object */ - MsgTimeoutOnCloseResponse.prototype.toJSON = function toJSON() { + MsgChannelOpenInitResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MsgTimeoutOnCloseResponse; + return MsgChannelOpenInitResponse; })(); - v1.MsgAcknowledgement = (function() { + v1.MsgChannelOpenTry = (function() { /** - * Properties of a MsgAcknowledgement. + * Properties of a MsgChannelOpenTry. * @memberof ibc.core.channel.v1 - * @interface IMsgAcknowledgement - * @property {ibc.core.channel.v1.IPacket|null} [packet] MsgAcknowledgement packet - * @property {Uint8Array|null} [acknowledgement] MsgAcknowledgement acknowledgement - * @property {Uint8Array|null} [proof_acked] MsgAcknowledgement proof_acked - * @property {ibc.core.client.v1.IHeight|null} [proof_height] MsgAcknowledgement proof_height - * @property {string|null} [signer] MsgAcknowledgement signer + * @interface IMsgChannelOpenTry + * @property {string|null} [port_id] MsgChannelOpenTry port_id + * @property {string|null} [previous_channel_id] MsgChannelOpenTry previous_channel_id + * @property {ibc.core.channel.v1.IChannel|null} [channel] MsgChannelOpenTry channel + * @property {string|null} [counterparty_version] MsgChannelOpenTry counterparty_version + * @property {Uint8Array|null} [proof_init] MsgChannelOpenTry proof_init + * @property {ibc.core.client.v1.IHeight|null} [proof_height] MsgChannelOpenTry proof_height + * @property {string|null} [signer] MsgChannelOpenTry signer */ /** - * Constructs a new MsgAcknowledgement. + * Constructs a new MsgChannelOpenTry. * @memberof ibc.core.channel.v1 - * @classdesc Represents a MsgAcknowledgement. - * @implements IMsgAcknowledgement + * @classdesc Represents a MsgChannelOpenTry. + * @implements IMsgChannelOpenTry * @constructor - * @param {ibc.core.channel.v1.IMsgAcknowledgement=} [properties] Properties to set + * @param {ibc.core.channel.v1.IMsgChannelOpenTry=} [properties] Properties to set */ - function MsgAcknowledgement(properties) { + function MsgChannelOpenTry(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -40705,114 +47511,140 @@ } /** - * MsgAcknowledgement packet. - * @member {ibc.core.channel.v1.IPacket|null|undefined} packet - * @memberof ibc.core.channel.v1.MsgAcknowledgement + * MsgChannelOpenTry port_id. + * @member {string} port_id + * @memberof ibc.core.channel.v1.MsgChannelOpenTry * @instance */ - MsgAcknowledgement.prototype.packet = null; + MsgChannelOpenTry.prototype.port_id = ""; /** - * MsgAcknowledgement acknowledgement. - * @member {Uint8Array} acknowledgement - * @memberof ibc.core.channel.v1.MsgAcknowledgement + * MsgChannelOpenTry previous_channel_id. + * @member {string} previous_channel_id + * @memberof ibc.core.channel.v1.MsgChannelOpenTry * @instance */ - MsgAcknowledgement.prototype.acknowledgement = $util.newBuffer([]); + MsgChannelOpenTry.prototype.previous_channel_id = ""; /** - * MsgAcknowledgement proof_acked. - * @member {Uint8Array} proof_acked - * @memberof ibc.core.channel.v1.MsgAcknowledgement + * MsgChannelOpenTry channel. + * @member {ibc.core.channel.v1.IChannel|null|undefined} channel + * @memberof ibc.core.channel.v1.MsgChannelOpenTry * @instance */ - MsgAcknowledgement.prototype.proof_acked = $util.newBuffer([]); + MsgChannelOpenTry.prototype.channel = null; /** - * MsgAcknowledgement proof_height. + * MsgChannelOpenTry counterparty_version. + * @member {string} counterparty_version + * @memberof ibc.core.channel.v1.MsgChannelOpenTry + * @instance + */ + MsgChannelOpenTry.prototype.counterparty_version = ""; + + /** + * MsgChannelOpenTry proof_init. + * @member {Uint8Array} proof_init + * @memberof ibc.core.channel.v1.MsgChannelOpenTry + * @instance + */ + MsgChannelOpenTry.prototype.proof_init = $util.newBuffer([]); + + /** + * MsgChannelOpenTry proof_height. * @member {ibc.core.client.v1.IHeight|null|undefined} proof_height - * @memberof ibc.core.channel.v1.MsgAcknowledgement + * @memberof ibc.core.channel.v1.MsgChannelOpenTry * @instance */ - MsgAcknowledgement.prototype.proof_height = null; + MsgChannelOpenTry.prototype.proof_height = null; /** - * MsgAcknowledgement signer. + * MsgChannelOpenTry signer. * @member {string} signer - * @memberof ibc.core.channel.v1.MsgAcknowledgement + * @memberof ibc.core.channel.v1.MsgChannelOpenTry * @instance */ - MsgAcknowledgement.prototype.signer = ""; + MsgChannelOpenTry.prototype.signer = ""; /** - * Encodes the specified MsgAcknowledgement message. Does not implicitly {@link ibc.core.channel.v1.MsgAcknowledgement.verify|verify} messages. + * Encodes the specified MsgChannelOpenTry message. Does not implicitly {@link ibc.core.channel.v1.MsgChannelOpenTry.verify|verify} messages. * @function encode - * @memberof ibc.core.channel.v1.MsgAcknowledgement + * @memberof ibc.core.channel.v1.MsgChannelOpenTry * @static - * @param {ibc.core.channel.v1.IMsgAcknowledgement} message MsgAcknowledgement message or plain object to encode + * @param {ibc.core.channel.v1.IMsgChannelOpenTry} message MsgChannelOpenTry message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgAcknowledgement.encode = function encode(message, writer) { + MsgChannelOpenTry.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.packet != null && Object.hasOwnProperty.call(message, "packet")) - $root.ibc.core.channel.v1.Packet.encode(message.packet, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.acknowledgement != null && Object.hasOwnProperty.call(message, "acknowledgement")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.acknowledgement); - if (message.proof_acked != null && Object.hasOwnProperty.call(message, "proof_acked")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.proof_acked); + if (message.port_id != null && Object.hasOwnProperty.call(message, "port_id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.port_id); + if (message.previous_channel_id != null && Object.hasOwnProperty.call(message, "previous_channel_id")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.previous_channel_id); + if (message.channel != null && Object.hasOwnProperty.call(message, "channel")) + $root.ibc.core.channel.v1.Channel.encode(message.channel, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.counterparty_version != null && Object.hasOwnProperty.call(message, "counterparty_version")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.counterparty_version); + if (message.proof_init != null && Object.hasOwnProperty.call(message, "proof_init")) + writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.proof_init); if (message.proof_height != null && Object.hasOwnProperty.call(message, "proof_height")) - $root.ibc.core.client.v1.Height.encode(message.proof_height, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + $root.ibc.core.client.v1.Height.encode(message.proof_height, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); if (message.signer != null && Object.hasOwnProperty.call(message, "signer")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.signer); + writer.uint32(/* id 7, wireType 2 =*/58).string(message.signer); return writer; }; /** - * Encodes the specified MsgAcknowledgement message, length delimited. Does not implicitly {@link ibc.core.channel.v1.MsgAcknowledgement.verify|verify} messages. + * Encodes the specified MsgChannelOpenTry message, length delimited. Does not implicitly {@link ibc.core.channel.v1.MsgChannelOpenTry.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.channel.v1.MsgAcknowledgement + * @memberof ibc.core.channel.v1.MsgChannelOpenTry * @static - * @param {ibc.core.channel.v1.IMsgAcknowledgement} message MsgAcknowledgement message or plain object to encode + * @param {ibc.core.channel.v1.IMsgChannelOpenTry} message MsgChannelOpenTry message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgAcknowledgement.encodeDelimited = function encodeDelimited(message, writer) { + MsgChannelOpenTry.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MsgAcknowledgement message from the specified reader or buffer. + * Decodes a MsgChannelOpenTry message from the specified reader or buffer. * @function decode - * @memberof ibc.core.channel.v1.MsgAcknowledgement + * @memberof ibc.core.channel.v1.MsgChannelOpenTry * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.channel.v1.MsgAcknowledgement} MsgAcknowledgement + * @returns {ibc.core.channel.v1.MsgChannelOpenTry} MsgChannelOpenTry * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgAcknowledgement.decode = function decode(reader, length) { + MsgChannelOpenTry.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.MsgAcknowledgement(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.MsgChannelOpenTry(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.packet = $root.ibc.core.channel.v1.Packet.decode(reader, reader.uint32()); + message.port_id = reader.string(); break; case 2: - message.acknowledgement = reader.bytes(); + message.previous_channel_id = reader.string(); break; case 3: - message.proof_acked = reader.bytes(); + message.channel = $root.ibc.core.channel.v1.Channel.decode(reader, reader.uint32()); break; case 4: - message.proof_height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); + message.counterparty_version = reader.string(); break; case 5: + message.proof_init = reader.bytes(); + break; + case 6: + message.proof_height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); + break; + case 7: message.signer = reader.string(); break; default: @@ -40824,43 +47656,49 @@ }; /** - * Decodes a MsgAcknowledgement message from the specified reader or buffer, length delimited. + * Decodes a MsgChannelOpenTry message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.channel.v1.MsgAcknowledgement + * @memberof ibc.core.channel.v1.MsgChannelOpenTry * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.channel.v1.MsgAcknowledgement} MsgAcknowledgement + * @returns {ibc.core.channel.v1.MsgChannelOpenTry} MsgChannelOpenTry * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgAcknowledgement.decodeDelimited = function decodeDelimited(reader) { + MsgChannelOpenTry.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MsgAcknowledgement message. + * Verifies a MsgChannelOpenTry message. * @function verify - * @memberof ibc.core.channel.v1.MsgAcknowledgement + * @memberof ibc.core.channel.v1.MsgChannelOpenTry * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MsgAcknowledgement.verify = function verify(message) { + MsgChannelOpenTry.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.packet != null && message.hasOwnProperty("packet")) { - var error = $root.ibc.core.channel.v1.Packet.verify(message.packet); + if (message.port_id != null && message.hasOwnProperty("port_id")) + if (!$util.isString(message.port_id)) + return "port_id: string expected"; + if (message.previous_channel_id != null && message.hasOwnProperty("previous_channel_id")) + if (!$util.isString(message.previous_channel_id)) + return "previous_channel_id: string expected"; + if (message.channel != null && message.hasOwnProperty("channel")) { + var error = $root.ibc.core.channel.v1.Channel.verify(message.channel); if (error) - return "packet." + error; + return "channel." + error; } - if (message.acknowledgement != null && message.hasOwnProperty("acknowledgement")) - if (!(message.acknowledgement && typeof message.acknowledgement.length === "number" || $util.isString(message.acknowledgement))) - return "acknowledgement: buffer expected"; - if (message.proof_acked != null && message.hasOwnProperty("proof_acked")) - if (!(message.proof_acked && typeof message.proof_acked.length === "number" || $util.isString(message.proof_acked))) - return "proof_acked: buffer expected"; + if (message.counterparty_version != null && message.hasOwnProperty("counterparty_version")) + if (!$util.isString(message.counterparty_version)) + return "counterparty_version: string expected"; + if (message.proof_init != null && message.hasOwnProperty("proof_init")) + if (!(message.proof_init && typeof message.proof_init.length === "number" || $util.isString(message.proof_init))) + return "proof_init: buffer expected"; if (message.proof_height != null && message.hasOwnProperty("proof_height")) { var error = $root.ibc.core.client.v1.Height.verify(message.proof_height); if (error) @@ -40873,35 +47711,36 @@ }; /** - * Creates a MsgAcknowledgement message from a plain object. Also converts values to their respective internal types. + * Creates a MsgChannelOpenTry message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.channel.v1.MsgAcknowledgement + * @memberof ibc.core.channel.v1.MsgChannelOpenTry * @static * @param {Object.} object Plain object - * @returns {ibc.core.channel.v1.MsgAcknowledgement} MsgAcknowledgement + * @returns {ibc.core.channel.v1.MsgChannelOpenTry} MsgChannelOpenTry */ - MsgAcknowledgement.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.channel.v1.MsgAcknowledgement) + MsgChannelOpenTry.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.channel.v1.MsgChannelOpenTry) return object; - var message = new $root.ibc.core.channel.v1.MsgAcknowledgement(); - if (object.packet != null) { - if (typeof object.packet !== "object") - throw TypeError(".ibc.core.channel.v1.MsgAcknowledgement.packet: object expected"); - message.packet = $root.ibc.core.channel.v1.Packet.fromObject(object.packet); + var message = new $root.ibc.core.channel.v1.MsgChannelOpenTry(); + if (object.port_id != null) + message.port_id = String(object.port_id); + if (object.previous_channel_id != null) + message.previous_channel_id = String(object.previous_channel_id); + if (object.channel != null) { + if (typeof object.channel !== "object") + throw TypeError(".ibc.core.channel.v1.MsgChannelOpenTry.channel: object expected"); + message.channel = $root.ibc.core.channel.v1.Channel.fromObject(object.channel); } - if (object.acknowledgement != null) - if (typeof object.acknowledgement === "string") - $util.base64.decode(object.acknowledgement, message.acknowledgement = $util.newBuffer($util.base64.length(object.acknowledgement)), 0); - else if (object.acknowledgement.length) - message.acknowledgement = object.acknowledgement; - if (object.proof_acked != null) - if (typeof object.proof_acked === "string") - $util.base64.decode(object.proof_acked, message.proof_acked = $util.newBuffer($util.base64.length(object.proof_acked)), 0); - else if (object.proof_acked.length) - message.proof_acked = object.proof_acked; + if (object.counterparty_version != null) + message.counterparty_version = String(object.counterparty_version); + if (object.proof_init != null) + if (typeof object.proof_init === "string") + $util.base64.decode(object.proof_init, message.proof_init = $util.newBuffer($util.base64.length(object.proof_init)), 0); + else if (object.proof_init.length) + message.proof_init = object.proof_init; if (object.proof_height != null) { if (typeof object.proof_height !== "object") - throw TypeError(".ibc.core.channel.v1.MsgAcknowledgement.proof_height: object expected"); + throw TypeError(".ibc.core.channel.v1.MsgChannelOpenTry.proof_height: object expected"); message.proof_height = $root.ibc.core.client.v1.Height.fromObject(object.proof_height); } if (object.signer != null) @@ -40910,43 +47749,43 @@ }; /** - * Creates a plain object from a MsgAcknowledgement message. Also converts values to other types if specified. + * Creates a plain object from a MsgChannelOpenTry message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.channel.v1.MsgAcknowledgement + * @memberof ibc.core.channel.v1.MsgChannelOpenTry * @static - * @param {ibc.core.channel.v1.MsgAcknowledgement} message MsgAcknowledgement + * @param {ibc.core.channel.v1.MsgChannelOpenTry} message MsgChannelOpenTry * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MsgAcknowledgement.toObject = function toObject(message, options) { + MsgChannelOpenTry.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.packet = null; - if (options.bytes === String) - object.acknowledgement = ""; - else { - object.acknowledgement = []; - if (options.bytes !== Array) - object.acknowledgement = $util.newBuffer(object.acknowledgement); - } + object.port_id = ""; + object.previous_channel_id = ""; + object.channel = null; + object.counterparty_version = ""; if (options.bytes === String) - object.proof_acked = ""; + object.proof_init = ""; else { - object.proof_acked = []; + object.proof_init = []; if (options.bytes !== Array) - object.proof_acked = $util.newBuffer(object.proof_acked); + object.proof_init = $util.newBuffer(object.proof_init); } object.proof_height = null; object.signer = ""; } - if (message.packet != null && message.hasOwnProperty("packet")) - object.packet = $root.ibc.core.channel.v1.Packet.toObject(message.packet, options); - if (message.acknowledgement != null && message.hasOwnProperty("acknowledgement")) - object.acknowledgement = options.bytes === String ? $util.base64.encode(message.acknowledgement, 0, message.acknowledgement.length) : options.bytes === Array ? Array.prototype.slice.call(message.acknowledgement) : message.acknowledgement; - if (message.proof_acked != null && message.hasOwnProperty("proof_acked")) - object.proof_acked = options.bytes === String ? $util.base64.encode(message.proof_acked, 0, message.proof_acked.length) : options.bytes === Array ? Array.prototype.slice.call(message.proof_acked) : message.proof_acked; + if (message.port_id != null && message.hasOwnProperty("port_id")) + object.port_id = message.port_id; + if (message.previous_channel_id != null && message.hasOwnProperty("previous_channel_id")) + object.previous_channel_id = message.previous_channel_id; + if (message.channel != null && message.hasOwnProperty("channel")) + object.channel = $root.ibc.core.channel.v1.Channel.toObject(message.channel, options); + if (message.counterparty_version != null && message.hasOwnProperty("counterparty_version")) + object.counterparty_version = message.counterparty_version; + if (message.proof_init != null && message.hasOwnProperty("proof_init")) + object.proof_init = options.bytes === String ? $util.base64.encode(message.proof_init, 0, message.proof_init.length) : options.bytes === Array ? Array.prototype.slice.call(message.proof_init) : message.proof_init; if (message.proof_height != null && message.hasOwnProperty("proof_height")) object.proof_height = $root.ibc.core.client.v1.Height.toObject(message.proof_height, options); if (message.signer != null && message.hasOwnProperty("signer")) @@ -40955,37 +47794,38 @@ }; /** - * Converts this MsgAcknowledgement to JSON. + * Converts this MsgChannelOpenTry to JSON. * @function toJSON - * @memberof ibc.core.channel.v1.MsgAcknowledgement + * @memberof ibc.core.channel.v1.MsgChannelOpenTry * @instance * @returns {Object.} JSON object */ - MsgAcknowledgement.prototype.toJSON = function toJSON() { + MsgChannelOpenTry.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MsgAcknowledgement; + return MsgChannelOpenTry; })(); - v1.MsgAcknowledgementResponse = (function() { + v1.MsgChannelOpenTryResponse = (function() { /** - * Properties of a MsgAcknowledgementResponse. + * Properties of a MsgChannelOpenTryResponse. * @memberof ibc.core.channel.v1 - * @interface IMsgAcknowledgementResponse - * @property {ibc.core.channel.v1.ResponseResultType|null} [result] MsgAcknowledgementResponse result + * @interface IMsgChannelOpenTryResponse + * @property {string|null} [version] MsgChannelOpenTryResponse version + * @property {string|null} [channel_id] MsgChannelOpenTryResponse channel_id */ /** - * Constructs a new MsgAcknowledgementResponse. + * Constructs a new MsgChannelOpenTryResponse. * @memberof ibc.core.channel.v1 - * @classdesc Represents a MsgAcknowledgementResponse. - * @implements IMsgAcknowledgementResponse + * @classdesc Represents a MsgChannelOpenTryResponse. + * @implements IMsgChannelOpenTryResponse * @constructor - * @param {ibc.core.channel.v1.IMsgAcknowledgementResponse=} [properties] Properties to set + * @param {ibc.core.channel.v1.IMsgChannelOpenTryResponse=} [properties] Properties to set */ - function MsgAcknowledgementResponse(properties) { + function MsgChannelOpenTryResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -40993,63 +47833,76 @@ } /** - * MsgAcknowledgementResponse result. - * @member {ibc.core.channel.v1.ResponseResultType} result - * @memberof ibc.core.channel.v1.MsgAcknowledgementResponse + * MsgChannelOpenTryResponse version. + * @member {string} version + * @memberof ibc.core.channel.v1.MsgChannelOpenTryResponse + * @instance + */ + MsgChannelOpenTryResponse.prototype.version = ""; + + /** + * MsgChannelOpenTryResponse channel_id. + * @member {string} channel_id + * @memberof ibc.core.channel.v1.MsgChannelOpenTryResponse * @instance */ - MsgAcknowledgementResponse.prototype.result = 0; + MsgChannelOpenTryResponse.prototype.channel_id = ""; /** - * Encodes the specified MsgAcknowledgementResponse message. Does not implicitly {@link ibc.core.channel.v1.MsgAcknowledgementResponse.verify|verify} messages. + * Encodes the specified MsgChannelOpenTryResponse message. Does not implicitly {@link ibc.core.channel.v1.MsgChannelOpenTryResponse.verify|verify} messages. * @function encode - * @memberof ibc.core.channel.v1.MsgAcknowledgementResponse + * @memberof ibc.core.channel.v1.MsgChannelOpenTryResponse * @static - * @param {ibc.core.channel.v1.IMsgAcknowledgementResponse} message MsgAcknowledgementResponse message or plain object to encode + * @param {ibc.core.channel.v1.IMsgChannelOpenTryResponse} message MsgChannelOpenTryResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgAcknowledgementResponse.encode = function encode(message, writer) { + MsgChannelOpenTryResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.result != null && Object.hasOwnProperty.call(message, "result")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.result); + if (message.version != null && Object.hasOwnProperty.call(message, "version")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.version); + if (message.channel_id != null && Object.hasOwnProperty.call(message, "channel_id")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.channel_id); return writer; }; /** - * Encodes the specified MsgAcknowledgementResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.MsgAcknowledgementResponse.verify|verify} messages. + * Encodes the specified MsgChannelOpenTryResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.MsgChannelOpenTryResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.channel.v1.MsgAcknowledgementResponse + * @memberof ibc.core.channel.v1.MsgChannelOpenTryResponse * @static - * @param {ibc.core.channel.v1.IMsgAcknowledgementResponse} message MsgAcknowledgementResponse message or plain object to encode + * @param {ibc.core.channel.v1.IMsgChannelOpenTryResponse} message MsgChannelOpenTryResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgAcknowledgementResponse.encodeDelimited = function encodeDelimited(message, writer) { + MsgChannelOpenTryResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MsgAcknowledgementResponse message from the specified reader or buffer. + * Decodes a MsgChannelOpenTryResponse message from the specified reader or buffer. * @function decode - * @memberof ibc.core.channel.v1.MsgAcknowledgementResponse + * @memberof ibc.core.channel.v1.MsgChannelOpenTryResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.channel.v1.MsgAcknowledgementResponse} MsgAcknowledgementResponse + * @returns {ibc.core.channel.v1.MsgChannelOpenTryResponse} MsgChannelOpenTryResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgAcknowledgementResponse.decode = function decode(reader, length) { + MsgChannelOpenTryResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.MsgAcknowledgementResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.MsgChannelOpenTryResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.result = reader.int32(); + message.version = reader.string(); + break; + case 2: + message.channel_id = reader.string(); break; default: reader.skipType(tag & 7); @@ -41060,576 +47913,590 @@ }; /** - * Decodes a MsgAcknowledgementResponse message from the specified reader or buffer, length delimited. + * Decodes a MsgChannelOpenTryResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.channel.v1.MsgAcknowledgementResponse + * @memberof ibc.core.channel.v1.MsgChannelOpenTryResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.channel.v1.MsgAcknowledgementResponse} MsgAcknowledgementResponse + * @returns {ibc.core.channel.v1.MsgChannelOpenTryResponse} MsgChannelOpenTryResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgAcknowledgementResponse.decodeDelimited = function decodeDelimited(reader) { + MsgChannelOpenTryResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MsgAcknowledgementResponse message. + * Verifies a MsgChannelOpenTryResponse message. * @function verify - * @memberof ibc.core.channel.v1.MsgAcknowledgementResponse + * @memberof ibc.core.channel.v1.MsgChannelOpenTryResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MsgAcknowledgementResponse.verify = function verify(message) { + MsgChannelOpenTryResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.result != null && message.hasOwnProperty("result")) - switch (message.result) { - default: - return "result: enum value expected"; - case 0: - case 1: - case 2: - break; - } + if (message.version != null && message.hasOwnProperty("version")) + if (!$util.isString(message.version)) + return "version: string expected"; + if (message.channel_id != null && message.hasOwnProperty("channel_id")) + if (!$util.isString(message.channel_id)) + return "channel_id: string expected"; return null; }; /** - * Creates a MsgAcknowledgementResponse message from a plain object. Also converts values to their respective internal types. + * Creates a MsgChannelOpenTryResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.channel.v1.MsgAcknowledgementResponse + * @memberof ibc.core.channel.v1.MsgChannelOpenTryResponse * @static * @param {Object.} object Plain object - * @returns {ibc.core.channel.v1.MsgAcknowledgementResponse} MsgAcknowledgementResponse + * @returns {ibc.core.channel.v1.MsgChannelOpenTryResponse} MsgChannelOpenTryResponse */ - MsgAcknowledgementResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.channel.v1.MsgAcknowledgementResponse) + MsgChannelOpenTryResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.channel.v1.MsgChannelOpenTryResponse) return object; - var message = new $root.ibc.core.channel.v1.MsgAcknowledgementResponse(); - switch (object.result) { - case "RESPONSE_RESULT_TYPE_UNSPECIFIED": - case 0: - message.result = 0; - break; - case "RESPONSE_RESULT_TYPE_NOOP": - case 1: - message.result = 1; - break; - case "RESPONSE_RESULT_TYPE_SUCCESS": - case 2: - message.result = 2; - break; - } + var message = new $root.ibc.core.channel.v1.MsgChannelOpenTryResponse(); + if (object.version != null) + message.version = String(object.version); + if (object.channel_id != null) + message.channel_id = String(object.channel_id); return message; }; /** - * Creates a plain object from a MsgAcknowledgementResponse message. Also converts values to other types if specified. + * Creates a plain object from a MsgChannelOpenTryResponse message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.channel.v1.MsgAcknowledgementResponse + * @memberof ibc.core.channel.v1.MsgChannelOpenTryResponse * @static - * @param {ibc.core.channel.v1.MsgAcknowledgementResponse} message MsgAcknowledgementResponse + * @param {ibc.core.channel.v1.MsgChannelOpenTryResponse} message MsgChannelOpenTryResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MsgAcknowledgementResponse.toObject = function toObject(message, options) { + MsgChannelOpenTryResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.result = options.enums === String ? "RESPONSE_RESULT_TYPE_UNSPECIFIED" : 0; - if (message.result != null && message.hasOwnProperty("result")) - object.result = options.enums === String ? $root.ibc.core.channel.v1.ResponseResultType[message.result] : message.result; + if (options.defaults) { + object.version = ""; + object.channel_id = ""; + } + if (message.version != null && message.hasOwnProperty("version")) + object.version = message.version; + if (message.channel_id != null && message.hasOwnProperty("channel_id")) + object.channel_id = message.channel_id; return object; }; /** - * Converts this MsgAcknowledgementResponse to JSON. + * Converts this MsgChannelOpenTryResponse to JSON. * @function toJSON - * @memberof ibc.core.channel.v1.MsgAcknowledgementResponse + * @memberof ibc.core.channel.v1.MsgChannelOpenTryResponse * @instance * @returns {Object.} JSON object */ - MsgAcknowledgementResponse.prototype.toJSON = function toJSON() { + MsgChannelOpenTryResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MsgAcknowledgementResponse; + return MsgChannelOpenTryResponse; })(); - v1.Query = (function() { + v1.MsgChannelOpenAck = (function() { /** - * Constructs a new Query service. + * Properties of a MsgChannelOpenAck. * @memberof ibc.core.channel.v1 - * @classdesc Represents a Query - * @extends $protobuf.rpc.Service - * @constructor - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - */ - function Query(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } - - (Query.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Query; - - /** - * Callback as used by {@link ibc.core.channel.v1.Query#channel}. - * @memberof ibc.core.channel.v1.Query - * @typedef ChannelCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.core.channel.v1.QueryChannelResponse} [response] QueryChannelResponse - */ - - /** - * Calls Channel. - * @function channel - * @memberof ibc.core.channel.v1.Query - * @instance - * @param {ibc.core.channel.v1.IQueryChannelRequest} request QueryChannelRequest message or plain object - * @param {ibc.core.channel.v1.Query.ChannelCallback} callback Node-style callback called with the error, if any, and QueryChannelResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Query.prototype.channel = function channel(request, callback) { - return this.rpcCall(channel, $root.ibc.core.channel.v1.QueryChannelRequest, $root.ibc.core.channel.v1.QueryChannelResponse, request, callback); - }, "name", { value: "Channel" }); - - /** - * Calls Channel. - * @function channel - * @memberof ibc.core.channel.v1.Query - * @instance - * @param {ibc.core.channel.v1.IQueryChannelRequest} request QueryChannelRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link ibc.core.channel.v1.Query#channels}. - * @memberof ibc.core.channel.v1.Query - * @typedef ChannelsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.core.channel.v1.QueryChannelsResponse} [response] QueryChannelsResponse - */ - - /** - * Calls Channels. - * @function channels - * @memberof ibc.core.channel.v1.Query - * @instance - * @param {ibc.core.channel.v1.IQueryChannelsRequest} request QueryChannelsRequest message or plain object - * @param {ibc.core.channel.v1.Query.ChannelsCallback} callback Node-style callback called with the error, if any, and QueryChannelsResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Query.prototype.channels = function channels(request, callback) { - return this.rpcCall(channels, $root.ibc.core.channel.v1.QueryChannelsRequest, $root.ibc.core.channel.v1.QueryChannelsResponse, request, callback); - }, "name", { value: "Channels" }); - - /** - * Calls Channels. - * @function channels - * @memberof ibc.core.channel.v1.Query - * @instance - * @param {ibc.core.channel.v1.IQueryChannelsRequest} request QueryChannelsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link ibc.core.channel.v1.Query#connectionChannels}. - * @memberof ibc.core.channel.v1.Query - * @typedef ConnectionChannelsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.core.channel.v1.QueryConnectionChannelsResponse} [response] QueryConnectionChannelsResponse - */ - - /** - * Calls ConnectionChannels. - * @function connectionChannels - * @memberof ibc.core.channel.v1.Query - * @instance - * @param {ibc.core.channel.v1.IQueryConnectionChannelsRequest} request QueryConnectionChannelsRequest message or plain object - * @param {ibc.core.channel.v1.Query.ConnectionChannelsCallback} callback Node-style callback called with the error, if any, and QueryConnectionChannelsResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Query.prototype.connectionChannels = function connectionChannels(request, callback) { - return this.rpcCall(connectionChannels, $root.ibc.core.channel.v1.QueryConnectionChannelsRequest, $root.ibc.core.channel.v1.QueryConnectionChannelsResponse, request, callback); - }, "name", { value: "ConnectionChannels" }); - - /** - * Calls ConnectionChannels. - * @function connectionChannels - * @memberof ibc.core.channel.v1.Query - * @instance - * @param {ibc.core.channel.v1.IQueryConnectionChannelsRequest} request QueryConnectionChannelsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link ibc.core.channel.v1.Query#channelClientState}. - * @memberof ibc.core.channel.v1.Query - * @typedef ChannelClientStateCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.core.channel.v1.QueryChannelClientStateResponse} [response] QueryChannelClientStateResponse + * @interface IMsgChannelOpenAck + * @property {string|null} [port_id] MsgChannelOpenAck port_id + * @property {string|null} [channel_id] MsgChannelOpenAck channel_id + * @property {string|null} [counterparty_channel_id] MsgChannelOpenAck counterparty_channel_id + * @property {string|null} [counterparty_version] MsgChannelOpenAck counterparty_version + * @property {Uint8Array|null} [proof_try] MsgChannelOpenAck proof_try + * @property {ibc.core.client.v1.IHeight|null} [proof_height] MsgChannelOpenAck proof_height + * @property {string|null} [signer] MsgChannelOpenAck signer */ /** - * Calls ChannelClientState. - * @function channelClientState - * @memberof ibc.core.channel.v1.Query - * @instance - * @param {ibc.core.channel.v1.IQueryChannelClientStateRequest} request QueryChannelClientStateRequest message or plain object - * @param {ibc.core.channel.v1.Query.ChannelClientStateCallback} callback Node-style callback called with the error, if any, and QueryChannelClientStateResponse - * @returns {undefined} - * @variation 1 + * Constructs a new MsgChannelOpenAck. + * @memberof ibc.core.channel.v1 + * @classdesc Represents a MsgChannelOpenAck. + * @implements IMsgChannelOpenAck + * @constructor + * @param {ibc.core.channel.v1.IMsgChannelOpenAck=} [properties] Properties to set */ - Object.defineProperty(Query.prototype.channelClientState = function channelClientState(request, callback) { - return this.rpcCall(channelClientState, $root.ibc.core.channel.v1.QueryChannelClientStateRequest, $root.ibc.core.channel.v1.QueryChannelClientStateResponse, request, callback); - }, "name", { value: "ChannelClientState" }); + function MsgChannelOpenAck(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * Calls ChannelClientState. - * @function channelClientState - * @memberof ibc.core.channel.v1.Query + * MsgChannelOpenAck port_id. + * @member {string} port_id + * @memberof ibc.core.channel.v1.MsgChannelOpenAck * @instance - * @param {ibc.core.channel.v1.IQueryChannelClientStateRequest} request QueryChannelClientStateRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link ibc.core.channel.v1.Query#channelConsensusState}. - * @memberof ibc.core.channel.v1.Query - * @typedef ChannelConsensusStateCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.core.channel.v1.QueryChannelConsensusStateResponse} [response] QueryChannelConsensusStateResponse */ + MsgChannelOpenAck.prototype.port_id = ""; /** - * Calls ChannelConsensusState. - * @function channelConsensusState - * @memberof ibc.core.channel.v1.Query + * MsgChannelOpenAck channel_id. + * @member {string} channel_id + * @memberof ibc.core.channel.v1.MsgChannelOpenAck * @instance - * @param {ibc.core.channel.v1.IQueryChannelConsensusStateRequest} request QueryChannelConsensusStateRequest message or plain object - * @param {ibc.core.channel.v1.Query.ChannelConsensusStateCallback} callback Node-style callback called with the error, if any, and QueryChannelConsensusStateResponse - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(Query.prototype.channelConsensusState = function channelConsensusState(request, callback) { - return this.rpcCall(channelConsensusState, $root.ibc.core.channel.v1.QueryChannelConsensusStateRequest, $root.ibc.core.channel.v1.QueryChannelConsensusStateResponse, request, callback); - }, "name", { value: "ChannelConsensusState" }); + MsgChannelOpenAck.prototype.channel_id = ""; /** - * Calls ChannelConsensusState. - * @function channelConsensusState - * @memberof ibc.core.channel.v1.Query + * MsgChannelOpenAck counterparty_channel_id. + * @member {string} counterparty_channel_id + * @memberof ibc.core.channel.v1.MsgChannelOpenAck * @instance - * @param {ibc.core.channel.v1.IQueryChannelConsensusStateRequest} request QueryChannelConsensusStateRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link ibc.core.channel.v1.Query#packetCommitment}. - * @memberof ibc.core.channel.v1.Query - * @typedef PacketCommitmentCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.core.channel.v1.QueryPacketCommitmentResponse} [response] QueryPacketCommitmentResponse */ + MsgChannelOpenAck.prototype.counterparty_channel_id = ""; /** - * Calls PacketCommitment. - * @function packetCommitment - * @memberof ibc.core.channel.v1.Query + * MsgChannelOpenAck counterparty_version. + * @member {string} counterparty_version + * @memberof ibc.core.channel.v1.MsgChannelOpenAck * @instance - * @param {ibc.core.channel.v1.IQueryPacketCommitmentRequest} request QueryPacketCommitmentRequest message or plain object - * @param {ibc.core.channel.v1.Query.PacketCommitmentCallback} callback Node-style callback called with the error, if any, and QueryPacketCommitmentResponse - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(Query.prototype.packetCommitment = function packetCommitment(request, callback) { - return this.rpcCall(packetCommitment, $root.ibc.core.channel.v1.QueryPacketCommitmentRequest, $root.ibc.core.channel.v1.QueryPacketCommitmentResponse, request, callback); - }, "name", { value: "PacketCommitment" }); + MsgChannelOpenAck.prototype.counterparty_version = ""; /** - * Calls PacketCommitment. - * @function packetCommitment - * @memberof ibc.core.channel.v1.Query + * MsgChannelOpenAck proof_try. + * @member {Uint8Array} proof_try + * @memberof ibc.core.channel.v1.MsgChannelOpenAck * @instance - * @param {ibc.core.channel.v1.IQueryPacketCommitmentRequest} request QueryPacketCommitmentRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link ibc.core.channel.v1.Query#packetCommitments}. - * @memberof ibc.core.channel.v1.Query - * @typedef PacketCommitmentsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.core.channel.v1.QueryPacketCommitmentsResponse} [response] QueryPacketCommitmentsResponse */ + MsgChannelOpenAck.prototype.proof_try = $util.newBuffer([]); /** - * Calls PacketCommitments. - * @function packetCommitments - * @memberof ibc.core.channel.v1.Query + * MsgChannelOpenAck proof_height. + * @member {ibc.core.client.v1.IHeight|null|undefined} proof_height + * @memberof ibc.core.channel.v1.MsgChannelOpenAck * @instance - * @param {ibc.core.channel.v1.IQueryPacketCommitmentsRequest} request QueryPacketCommitmentsRequest message or plain object - * @param {ibc.core.channel.v1.Query.PacketCommitmentsCallback} callback Node-style callback called with the error, if any, and QueryPacketCommitmentsResponse - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(Query.prototype.packetCommitments = function packetCommitments(request, callback) { - return this.rpcCall(packetCommitments, $root.ibc.core.channel.v1.QueryPacketCommitmentsRequest, $root.ibc.core.channel.v1.QueryPacketCommitmentsResponse, request, callback); - }, "name", { value: "PacketCommitments" }); + MsgChannelOpenAck.prototype.proof_height = null; /** - * Calls PacketCommitments. - * @function packetCommitments - * @memberof ibc.core.channel.v1.Query + * MsgChannelOpenAck signer. + * @member {string} signer + * @memberof ibc.core.channel.v1.MsgChannelOpenAck * @instance - * @param {ibc.core.channel.v1.IQueryPacketCommitmentsRequest} request QueryPacketCommitmentsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 */ + MsgChannelOpenAck.prototype.signer = ""; /** - * Callback as used by {@link ibc.core.channel.v1.Query#packetReceipt}. - * @memberof ibc.core.channel.v1.Query - * @typedef PacketReceiptCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.core.channel.v1.QueryPacketReceiptResponse} [response] QueryPacketReceiptResponse + * Encodes the specified MsgChannelOpenAck message. Does not implicitly {@link ibc.core.channel.v1.MsgChannelOpenAck.verify|verify} messages. + * @function encode + * @memberof ibc.core.channel.v1.MsgChannelOpenAck + * @static + * @param {ibc.core.channel.v1.IMsgChannelOpenAck} message MsgChannelOpenAck message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ + MsgChannelOpenAck.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.port_id != null && Object.hasOwnProperty.call(message, "port_id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.port_id); + if (message.channel_id != null && Object.hasOwnProperty.call(message, "channel_id")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.channel_id); + if (message.counterparty_channel_id != null && Object.hasOwnProperty.call(message, "counterparty_channel_id")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.counterparty_channel_id); + if (message.counterparty_version != null && Object.hasOwnProperty.call(message, "counterparty_version")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.counterparty_version); + if (message.proof_try != null && Object.hasOwnProperty.call(message, "proof_try")) + writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.proof_try); + if (message.proof_height != null && Object.hasOwnProperty.call(message, "proof_height")) + $root.ibc.core.client.v1.Height.encode(message.proof_height, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.signer != null && Object.hasOwnProperty.call(message, "signer")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.signer); + return writer; + }; /** - * Calls PacketReceipt. - * @function packetReceipt - * @memberof ibc.core.channel.v1.Query - * @instance - * @param {ibc.core.channel.v1.IQueryPacketReceiptRequest} request QueryPacketReceiptRequest message or plain object - * @param {ibc.core.channel.v1.Query.PacketReceiptCallback} callback Node-style callback called with the error, if any, and QueryPacketReceiptResponse - * @returns {undefined} - * @variation 1 + * Encodes the specified MsgChannelOpenAck message, length delimited. Does not implicitly {@link ibc.core.channel.v1.MsgChannelOpenAck.verify|verify} messages. + * @function encodeDelimited + * @memberof ibc.core.channel.v1.MsgChannelOpenAck + * @static + * @param {ibc.core.channel.v1.IMsgChannelOpenAck} message MsgChannelOpenAck message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Object.defineProperty(Query.prototype.packetReceipt = function packetReceipt(request, callback) { - return this.rpcCall(packetReceipt, $root.ibc.core.channel.v1.QueryPacketReceiptRequest, $root.ibc.core.channel.v1.QueryPacketReceiptResponse, request, callback); - }, "name", { value: "PacketReceipt" }); + MsgChannelOpenAck.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Calls PacketReceipt. - * @function packetReceipt - * @memberof ibc.core.channel.v1.Query - * @instance - * @param {ibc.core.channel.v1.IQueryPacketReceiptRequest} request QueryPacketReceiptRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Decodes a MsgChannelOpenAck message from the specified reader or buffer. + * @function decode + * @memberof ibc.core.channel.v1.MsgChannelOpenAck + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {ibc.core.channel.v1.MsgChannelOpenAck} MsgChannelOpenAck + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + MsgChannelOpenAck.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.MsgChannelOpenAck(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.port_id = reader.string(); + break; + case 2: + message.channel_id = reader.string(); + break; + case 3: + message.counterparty_channel_id = reader.string(); + break; + case 4: + message.counterparty_version = reader.string(); + break; + case 5: + message.proof_try = reader.bytes(); + break; + case 6: + message.proof_height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); + break; + case 7: + message.signer = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Callback as used by {@link ibc.core.channel.v1.Query#packetAcknowledgement}. - * @memberof ibc.core.channel.v1.Query - * @typedef PacketAcknowledgementCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.core.channel.v1.QueryPacketAcknowledgementResponse} [response] QueryPacketAcknowledgementResponse + * Decodes a MsgChannelOpenAck message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof ibc.core.channel.v1.MsgChannelOpenAck + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {ibc.core.channel.v1.MsgChannelOpenAck} MsgChannelOpenAck + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + MsgChannelOpenAck.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Calls PacketAcknowledgement. - * @function packetAcknowledgement - * @memberof ibc.core.channel.v1.Query - * @instance - * @param {ibc.core.channel.v1.IQueryPacketAcknowledgementRequest} request QueryPacketAcknowledgementRequest message or plain object - * @param {ibc.core.channel.v1.Query.PacketAcknowledgementCallback} callback Node-style callback called with the error, if any, and QueryPacketAcknowledgementResponse - * @returns {undefined} - * @variation 1 + * Verifies a MsgChannelOpenAck message. + * @function verify + * @memberof ibc.core.channel.v1.MsgChannelOpenAck + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Object.defineProperty(Query.prototype.packetAcknowledgement = function packetAcknowledgement(request, callback) { - return this.rpcCall(packetAcknowledgement, $root.ibc.core.channel.v1.QueryPacketAcknowledgementRequest, $root.ibc.core.channel.v1.QueryPacketAcknowledgementResponse, request, callback); - }, "name", { value: "PacketAcknowledgement" }); + MsgChannelOpenAck.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.port_id != null && message.hasOwnProperty("port_id")) + if (!$util.isString(message.port_id)) + return "port_id: string expected"; + if (message.channel_id != null && message.hasOwnProperty("channel_id")) + if (!$util.isString(message.channel_id)) + return "channel_id: string expected"; + if (message.counterparty_channel_id != null && message.hasOwnProperty("counterparty_channel_id")) + if (!$util.isString(message.counterparty_channel_id)) + return "counterparty_channel_id: string expected"; + if (message.counterparty_version != null && message.hasOwnProperty("counterparty_version")) + if (!$util.isString(message.counterparty_version)) + return "counterparty_version: string expected"; + if (message.proof_try != null && message.hasOwnProperty("proof_try")) + if (!(message.proof_try && typeof message.proof_try.length === "number" || $util.isString(message.proof_try))) + return "proof_try: buffer expected"; + if (message.proof_height != null && message.hasOwnProperty("proof_height")) { + var error = $root.ibc.core.client.v1.Height.verify(message.proof_height); + if (error) + return "proof_height." + error; + } + if (message.signer != null && message.hasOwnProperty("signer")) + if (!$util.isString(message.signer)) + return "signer: string expected"; + return null; + }; /** - * Calls PacketAcknowledgement. - * @function packetAcknowledgement - * @memberof ibc.core.channel.v1.Query - * @instance - * @param {ibc.core.channel.v1.IQueryPacketAcknowledgementRequest} request QueryPacketAcknowledgementRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Creates a MsgChannelOpenAck message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof ibc.core.channel.v1.MsgChannelOpenAck + * @static + * @param {Object.} object Plain object + * @returns {ibc.core.channel.v1.MsgChannelOpenAck} MsgChannelOpenAck */ + MsgChannelOpenAck.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.channel.v1.MsgChannelOpenAck) + return object; + var message = new $root.ibc.core.channel.v1.MsgChannelOpenAck(); + if (object.port_id != null) + message.port_id = String(object.port_id); + if (object.channel_id != null) + message.channel_id = String(object.channel_id); + if (object.counterparty_channel_id != null) + message.counterparty_channel_id = String(object.counterparty_channel_id); + if (object.counterparty_version != null) + message.counterparty_version = String(object.counterparty_version); + if (object.proof_try != null) + if (typeof object.proof_try === "string") + $util.base64.decode(object.proof_try, message.proof_try = $util.newBuffer($util.base64.length(object.proof_try)), 0); + else if (object.proof_try.length) + message.proof_try = object.proof_try; + if (object.proof_height != null) { + if (typeof object.proof_height !== "object") + throw TypeError(".ibc.core.channel.v1.MsgChannelOpenAck.proof_height: object expected"); + message.proof_height = $root.ibc.core.client.v1.Height.fromObject(object.proof_height); + } + if (object.signer != null) + message.signer = String(object.signer); + return message; + }; /** - * Callback as used by {@link ibc.core.channel.v1.Query#packetAcknowledgements}. - * @memberof ibc.core.channel.v1.Query - * @typedef PacketAcknowledgementsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.core.channel.v1.QueryPacketAcknowledgementsResponse} [response] QueryPacketAcknowledgementsResponse + * Creates a plain object from a MsgChannelOpenAck message. Also converts values to other types if specified. + * @function toObject + * @memberof ibc.core.channel.v1.MsgChannelOpenAck + * @static + * @param {ibc.core.channel.v1.MsgChannelOpenAck} message MsgChannelOpenAck + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ + MsgChannelOpenAck.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.port_id = ""; + object.channel_id = ""; + object.counterparty_channel_id = ""; + object.counterparty_version = ""; + if (options.bytes === String) + object.proof_try = ""; + else { + object.proof_try = []; + if (options.bytes !== Array) + object.proof_try = $util.newBuffer(object.proof_try); + } + object.proof_height = null; + object.signer = ""; + } + if (message.port_id != null && message.hasOwnProperty("port_id")) + object.port_id = message.port_id; + if (message.channel_id != null && message.hasOwnProperty("channel_id")) + object.channel_id = message.channel_id; + if (message.counterparty_channel_id != null && message.hasOwnProperty("counterparty_channel_id")) + object.counterparty_channel_id = message.counterparty_channel_id; + if (message.counterparty_version != null && message.hasOwnProperty("counterparty_version")) + object.counterparty_version = message.counterparty_version; + if (message.proof_try != null && message.hasOwnProperty("proof_try")) + object.proof_try = options.bytes === String ? $util.base64.encode(message.proof_try, 0, message.proof_try.length) : options.bytes === Array ? Array.prototype.slice.call(message.proof_try) : message.proof_try; + if (message.proof_height != null && message.hasOwnProperty("proof_height")) + object.proof_height = $root.ibc.core.client.v1.Height.toObject(message.proof_height, options); + if (message.signer != null && message.hasOwnProperty("signer")) + object.signer = message.signer; + return object; + }; /** - * Calls PacketAcknowledgements. - * @function packetAcknowledgements - * @memberof ibc.core.channel.v1.Query + * Converts this MsgChannelOpenAck to JSON. + * @function toJSON + * @memberof ibc.core.channel.v1.MsgChannelOpenAck * @instance - * @param {ibc.core.channel.v1.IQueryPacketAcknowledgementsRequest} request QueryPacketAcknowledgementsRequest message or plain object - * @param {ibc.core.channel.v1.Query.PacketAcknowledgementsCallback} callback Node-style callback called with the error, if any, and QueryPacketAcknowledgementsResponse - * @returns {undefined} - * @variation 1 + * @returns {Object.} JSON object */ - Object.defineProperty(Query.prototype.packetAcknowledgements = function packetAcknowledgements(request, callback) { - return this.rpcCall(packetAcknowledgements, $root.ibc.core.channel.v1.QueryPacketAcknowledgementsRequest, $root.ibc.core.channel.v1.QueryPacketAcknowledgementsResponse, request, callback); - }, "name", { value: "PacketAcknowledgements" }); + MsgChannelOpenAck.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return MsgChannelOpenAck; + })(); + + v1.MsgChannelOpenAckResponse = (function() { /** - * Calls PacketAcknowledgements. - * @function packetAcknowledgements - * @memberof ibc.core.channel.v1.Query - * @instance - * @param {ibc.core.channel.v1.IQueryPacketAcknowledgementsRequest} request QueryPacketAcknowledgementsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Properties of a MsgChannelOpenAckResponse. + * @memberof ibc.core.channel.v1 + * @interface IMsgChannelOpenAckResponse */ /** - * Callback as used by {@link ibc.core.channel.v1.Query#unreceivedPackets}. - * @memberof ibc.core.channel.v1.Query - * @typedef UnreceivedPacketsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.core.channel.v1.QueryUnreceivedPacketsResponse} [response] QueryUnreceivedPacketsResponse + * Constructs a new MsgChannelOpenAckResponse. + * @memberof ibc.core.channel.v1 + * @classdesc Represents a MsgChannelOpenAckResponse. + * @implements IMsgChannelOpenAckResponse + * @constructor + * @param {ibc.core.channel.v1.IMsgChannelOpenAckResponse=} [properties] Properties to set */ + function MsgChannelOpenAckResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * Calls UnreceivedPackets. - * @function unreceivedPackets - * @memberof ibc.core.channel.v1.Query - * @instance - * @param {ibc.core.channel.v1.IQueryUnreceivedPacketsRequest} request QueryUnreceivedPacketsRequest message or plain object - * @param {ibc.core.channel.v1.Query.UnreceivedPacketsCallback} callback Node-style callback called with the error, if any, and QueryUnreceivedPacketsResponse - * @returns {undefined} - * @variation 1 + * Encodes the specified MsgChannelOpenAckResponse message. Does not implicitly {@link ibc.core.channel.v1.MsgChannelOpenAckResponse.verify|verify} messages. + * @function encode + * @memberof ibc.core.channel.v1.MsgChannelOpenAckResponse + * @static + * @param {ibc.core.channel.v1.IMsgChannelOpenAckResponse} message MsgChannelOpenAckResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Object.defineProperty(Query.prototype.unreceivedPackets = function unreceivedPackets(request, callback) { - return this.rpcCall(unreceivedPackets, $root.ibc.core.channel.v1.QueryUnreceivedPacketsRequest, $root.ibc.core.channel.v1.QueryUnreceivedPacketsResponse, request, callback); - }, "name", { value: "UnreceivedPackets" }); + MsgChannelOpenAckResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; /** - * Calls UnreceivedPackets. - * @function unreceivedPackets - * @memberof ibc.core.channel.v1.Query - * @instance - * @param {ibc.core.channel.v1.IQueryUnreceivedPacketsRequest} request QueryUnreceivedPacketsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Encodes the specified MsgChannelOpenAckResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.MsgChannelOpenAckResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof ibc.core.channel.v1.MsgChannelOpenAckResponse + * @static + * @param {ibc.core.channel.v1.IMsgChannelOpenAckResponse} message MsgChannelOpenAckResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ + MsgChannelOpenAckResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Callback as used by {@link ibc.core.channel.v1.Query#unreceivedAcks}. - * @memberof ibc.core.channel.v1.Query - * @typedef UnreceivedAcksCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.core.channel.v1.QueryUnreceivedAcksResponse} [response] QueryUnreceivedAcksResponse + * Decodes a MsgChannelOpenAckResponse message from the specified reader or buffer. + * @function decode + * @memberof ibc.core.channel.v1.MsgChannelOpenAckResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {ibc.core.channel.v1.MsgChannelOpenAckResponse} MsgChannelOpenAckResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + MsgChannelOpenAckResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.MsgChannelOpenAckResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Calls UnreceivedAcks. - * @function unreceivedAcks - * @memberof ibc.core.channel.v1.Query - * @instance - * @param {ibc.core.channel.v1.IQueryUnreceivedAcksRequest} request QueryUnreceivedAcksRequest message or plain object - * @param {ibc.core.channel.v1.Query.UnreceivedAcksCallback} callback Node-style callback called with the error, if any, and QueryUnreceivedAcksResponse - * @returns {undefined} - * @variation 1 + * Decodes a MsgChannelOpenAckResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof ibc.core.channel.v1.MsgChannelOpenAckResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {ibc.core.channel.v1.MsgChannelOpenAckResponse} MsgChannelOpenAckResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Object.defineProperty(Query.prototype.unreceivedAcks = function unreceivedAcks(request, callback) { - return this.rpcCall(unreceivedAcks, $root.ibc.core.channel.v1.QueryUnreceivedAcksRequest, $root.ibc.core.channel.v1.QueryUnreceivedAcksResponse, request, callback); - }, "name", { value: "UnreceivedAcks" }); + MsgChannelOpenAckResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Calls UnreceivedAcks. - * @function unreceivedAcks - * @memberof ibc.core.channel.v1.Query - * @instance - * @param {ibc.core.channel.v1.IQueryUnreceivedAcksRequest} request QueryUnreceivedAcksRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Verifies a MsgChannelOpenAckResponse message. + * @function verify + * @memberof ibc.core.channel.v1.MsgChannelOpenAckResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ + MsgChannelOpenAckResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; /** - * Callback as used by {@link ibc.core.channel.v1.Query#nextSequenceReceive}. - * @memberof ibc.core.channel.v1.Query - * @typedef NextSequenceReceiveCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.core.channel.v1.QueryNextSequenceReceiveResponse} [response] QueryNextSequenceReceiveResponse + * Creates a MsgChannelOpenAckResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof ibc.core.channel.v1.MsgChannelOpenAckResponse + * @static + * @param {Object.} object Plain object + * @returns {ibc.core.channel.v1.MsgChannelOpenAckResponse} MsgChannelOpenAckResponse */ + MsgChannelOpenAckResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.channel.v1.MsgChannelOpenAckResponse) + return object; + return new $root.ibc.core.channel.v1.MsgChannelOpenAckResponse(); + }; /** - * Calls NextSequenceReceive. - * @function nextSequenceReceive - * @memberof ibc.core.channel.v1.Query - * @instance - * @param {ibc.core.channel.v1.IQueryNextSequenceReceiveRequest} request QueryNextSequenceReceiveRequest message or plain object - * @param {ibc.core.channel.v1.Query.NextSequenceReceiveCallback} callback Node-style callback called with the error, if any, and QueryNextSequenceReceiveResponse - * @returns {undefined} - * @variation 1 + * Creates a plain object from a MsgChannelOpenAckResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof ibc.core.channel.v1.MsgChannelOpenAckResponse + * @static + * @param {ibc.core.channel.v1.MsgChannelOpenAckResponse} message MsgChannelOpenAckResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - Object.defineProperty(Query.prototype.nextSequenceReceive = function nextSequenceReceive(request, callback) { - return this.rpcCall(nextSequenceReceive, $root.ibc.core.channel.v1.QueryNextSequenceReceiveRequest, $root.ibc.core.channel.v1.QueryNextSequenceReceiveResponse, request, callback); - }, "name", { value: "NextSequenceReceive" }); + MsgChannelOpenAckResponse.toObject = function toObject() { + return {}; + }; /** - * Calls NextSequenceReceive. - * @function nextSequenceReceive - * @memberof ibc.core.channel.v1.Query + * Converts this MsgChannelOpenAckResponse to JSON. + * @function toJSON + * @memberof ibc.core.channel.v1.MsgChannelOpenAckResponse * @instance - * @param {ibc.core.channel.v1.IQueryNextSequenceReceiveRequest} request QueryNextSequenceReceiveRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * @returns {Object.} JSON object */ + MsgChannelOpenAckResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return Query; + return MsgChannelOpenAckResponse; })(); - v1.QueryChannelRequest = (function() { + v1.MsgChannelOpenConfirm = (function() { /** - * Properties of a QueryChannelRequest. + * Properties of a MsgChannelOpenConfirm. * @memberof ibc.core.channel.v1 - * @interface IQueryChannelRequest - * @property {string|null} [port_id] QueryChannelRequest port_id - * @property {string|null} [channel_id] QueryChannelRequest channel_id + * @interface IMsgChannelOpenConfirm + * @property {string|null} [port_id] MsgChannelOpenConfirm port_id + * @property {string|null} [channel_id] MsgChannelOpenConfirm channel_id + * @property {Uint8Array|null} [proof_ack] MsgChannelOpenConfirm proof_ack + * @property {ibc.core.client.v1.IHeight|null} [proof_height] MsgChannelOpenConfirm proof_height + * @property {string|null} [signer] MsgChannelOpenConfirm signer */ /** - * Constructs a new QueryChannelRequest. + * Constructs a new MsgChannelOpenConfirm. * @memberof ibc.core.channel.v1 - * @classdesc Represents a QueryChannelRequest. - * @implements IQueryChannelRequest + * @classdesc Represents a MsgChannelOpenConfirm. + * @implements IMsgChannelOpenConfirm * @constructor - * @param {ibc.core.channel.v1.IQueryChannelRequest=} [properties] Properties to set + * @param {ibc.core.channel.v1.IMsgChannelOpenConfirm=} [properties] Properties to set */ - function QueryChannelRequest(properties) { + function MsgChannelOpenConfirm(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -41637,68 +48504,98 @@ } /** - * QueryChannelRequest port_id. + * MsgChannelOpenConfirm port_id. * @member {string} port_id - * @memberof ibc.core.channel.v1.QueryChannelRequest + * @memberof ibc.core.channel.v1.MsgChannelOpenConfirm * @instance */ - QueryChannelRequest.prototype.port_id = ""; + MsgChannelOpenConfirm.prototype.port_id = ""; /** - * QueryChannelRequest channel_id. + * MsgChannelOpenConfirm channel_id. * @member {string} channel_id - * @memberof ibc.core.channel.v1.QueryChannelRequest + * @memberof ibc.core.channel.v1.MsgChannelOpenConfirm * @instance */ - QueryChannelRequest.prototype.channel_id = ""; + MsgChannelOpenConfirm.prototype.channel_id = ""; /** - * Encodes the specified QueryChannelRequest message. Does not implicitly {@link ibc.core.channel.v1.QueryChannelRequest.verify|verify} messages. + * MsgChannelOpenConfirm proof_ack. + * @member {Uint8Array} proof_ack + * @memberof ibc.core.channel.v1.MsgChannelOpenConfirm + * @instance + */ + MsgChannelOpenConfirm.prototype.proof_ack = $util.newBuffer([]); + + /** + * MsgChannelOpenConfirm proof_height. + * @member {ibc.core.client.v1.IHeight|null|undefined} proof_height + * @memberof ibc.core.channel.v1.MsgChannelOpenConfirm + * @instance + */ + MsgChannelOpenConfirm.prototype.proof_height = null; + + /** + * MsgChannelOpenConfirm signer. + * @member {string} signer + * @memberof ibc.core.channel.v1.MsgChannelOpenConfirm + * @instance + */ + MsgChannelOpenConfirm.prototype.signer = ""; + + /** + * Encodes the specified MsgChannelOpenConfirm message. Does not implicitly {@link ibc.core.channel.v1.MsgChannelOpenConfirm.verify|verify} messages. * @function encode - * @memberof ibc.core.channel.v1.QueryChannelRequest + * @memberof ibc.core.channel.v1.MsgChannelOpenConfirm * @static - * @param {ibc.core.channel.v1.IQueryChannelRequest} message QueryChannelRequest message or plain object to encode + * @param {ibc.core.channel.v1.IMsgChannelOpenConfirm} message MsgChannelOpenConfirm message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryChannelRequest.encode = function encode(message, writer) { + MsgChannelOpenConfirm.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.port_id != null && Object.hasOwnProperty.call(message, "port_id")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.port_id); if (message.channel_id != null && Object.hasOwnProperty.call(message, "channel_id")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.channel_id); + if (message.proof_ack != null && Object.hasOwnProperty.call(message, "proof_ack")) + writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.proof_ack); + if (message.proof_height != null && Object.hasOwnProperty.call(message, "proof_height")) + $root.ibc.core.client.v1.Height.encode(message.proof_height, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.signer != null && Object.hasOwnProperty.call(message, "signer")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.signer); return writer; }; /** - * Encodes the specified QueryChannelRequest message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryChannelRequest.verify|verify} messages. + * Encodes the specified MsgChannelOpenConfirm message, length delimited. Does not implicitly {@link ibc.core.channel.v1.MsgChannelOpenConfirm.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.channel.v1.QueryChannelRequest + * @memberof ibc.core.channel.v1.MsgChannelOpenConfirm * @static - * @param {ibc.core.channel.v1.IQueryChannelRequest} message QueryChannelRequest message or plain object to encode + * @param {ibc.core.channel.v1.IMsgChannelOpenConfirm} message MsgChannelOpenConfirm message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryChannelRequest.encodeDelimited = function encodeDelimited(message, writer) { + MsgChannelOpenConfirm.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryChannelRequest message from the specified reader or buffer. + * Decodes a MsgChannelOpenConfirm message from the specified reader or buffer. * @function decode - * @memberof ibc.core.channel.v1.QueryChannelRequest + * @memberof ibc.core.channel.v1.MsgChannelOpenConfirm * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.channel.v1.QueryChannelRequest} QueryChannelRequest + * @returns {ibc.core.channel.v1.MsgChannelOpenConfirm} MsgChannelOpenConfirm * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryChannelRequest.decode = function decode(reader, length) { + MsgChannelOpenConfirm.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.QueryChannelRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.MsgChannelOpenConfirm(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -41708,6 +48605,15 @@ case 2: message.channel_id = reader.string(); break; + case 3: + message.proof_ack = reader.bytes(); + break; + case 4: + message.proof_height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); + break; + case 5: + message.signer = reader.string(); + break; default: reader.skipType(tag & 7); break; @@ -41717,30 +48623,30 @@ }; /** - * Decodes a QueryChannelRequest message from the specified reader or buffer, length delimited. + * Decodes a MsgChannelOpenConfirm message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.channel.v1.QueryChannelRequest + * @memberof ibc.core.channel.v1.MsgChannelOpenConfirm * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.channel.v1.QueryChannelRequest} QueryChannelRequest + * @returns {ibc.core.channel.v1.MsgChannelOpenConfirm} MsgChannelOpenConfirm * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryChannelRequest.decodeDelimited = function decodeDelimited(reader) { + MsgChannelOpenConfirm.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryChannelRequest message. + * Verifies a MsgChannelOpenConfirm message. * @function verify - * @memberof ibc.core.channel.v1.QueryChannelRequest + * @memberof ibc.core.channel.v1.MsgChannelOpenConfirm * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryChannelRequest.verify = function verify(message) { + MsgChannelOpenConfirm.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.port_id != null && message.hasOwnProperty("port_id")) @@ -41749,86 +48655,121 @@ if (message.channel_id != null && message.hasOwnProperty("channel_id")) if (!$util.isString(message.channel_id)) return "channel_id: string expected"; + if (message.proof_ack != null && message.hasOwnProperty("proof_ack")) + if (!(message.proof_ack && typeof message.proof_ack.length === "number" || $util.isString(message.proof_ack))) + return "proof_ack: buffer expected"; + if (message.proof_height != null && message.hasOwnProperty("proof_height")) { + var error = $root.ibc.core.client.v1.Height.verify(message.proof_height); + if (error) + return "proof_height." + error; + } + if (message.signer != null && message.hasOwnProperty("signer")) + if (!$util.isString(message.signer)) + return "signer: string expected"; return null; }; /** - * Creates a QueryChannelRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MsgChannelOpenConfirm message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.channel.v1.QueryChannelRequest + * @memberof ibc.core.channel.v1.MsgChannelOpenConfirm * @static * @param {Object.} object Plain object - * @returns {ibc.core.channel.v1.QueryChannelRequest} QueryChannelRequest + * @returns {ibc.core.channel.v1.MsgChannelOpenConfirm} MsgChannelOpenConfirm */ - QueryChannelRequest.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.channel.v1.QueryChannelRequest) + MsgChannelOpenConfirm.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.channel.v1.MsgChannelOpenConfirm) return object; - var message = new $root.ibc.core.channel.v1.QueryChannelRequest(); + var message = new $root.ibc.core.channel.v1.MsgChannelOpenConfirm(); if (object.port_id != null) message.port_id = String(object.port_id); if (object.channel_id != null) message.channel_id = String(object.channel_id); + if (object.proof_ack != null) + if (typeof object.proof_ack === "string") + $util.base64.decode(object.proof_ack, message.proof_ack = $util.newBuffer($util.base64.length(object.proof_ack)), 0); + else if (object.proof_ack.length) + message.proof_ack = object.proof_ack; + if (object.proof_height != null) { + if (typeof object.proof_height !== "object") + throw TypeError(".ibc.core.channel.v1.MsgChannelOpenConfirm.proof_height: object expected"); + message.proof_height = $root.ibc.core.client.v1.Height.fromObject(object.proof_height); + } + if (object.signer != null) + message.signer = String(object.signer); return message; }; /** - * Creates a plain object from a QueryChannelRequest message. Also converts values to other types if specified. + * Creates a plain object from a MsgChannelOpenConfirm message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.channel.v1.QueryChannelRequest + * @memberof ibc.core.channel.v1.MsgChannelOpenConfirm * @static - * @param {ibc.core.channel.v1.QueryChannelRequest} message QueryChannelRequest + * @param {ibc.core.channel.v1.MsgChannelOpenConfirm} message MsgChannelOpenConfirm * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryChannelRequest.toObject = function toObject(message, options) { + MsgChannelOpenConfirm.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.port_id = ""; object.channel_id = ""; + if (options.bytes === String) + object.proof_ack = ""; + else { + object.proof_ack = []; + if (options.bytes !== Array) + object.proof_ack = $util.newBuffer(object.proof_ack); + } + object.proof_height = null; + object.signer = ""; } if (message.port_id != null && message.hasOwnProperty("port_id")) object.port_id = message.port_id; if (message.channel_id != null && message.hasOwnProperty("channel_id")) object.channel_id = message.channel_id; + if (message.proof_ack != null && message.hasOwnProperty("proof_ack")) + object.proof_ack = options.bytes === String ? $util.base64.encode(message.proof_ack, 0, message.proof_ack.length) : options.bytes === Array ? Array.prototype.slice.call(message.proof_ack) : message.proof_ack; + if (message.proof_height != null && message.hasOwnProperty("proof_height")) + object.proof_height = $root.ibc.core.client.v1.Height.toObject(message.proof_height, options); + if (message.signer != null && message.hasOwnProperty("signer")) + object.signer = message.signer; return object; }; /** - * Converts this QueryChannelRequest to JSON. + * Converts this MsgChannelOpenConfirm to JSON. * @function toJSON - * @memberof ibc.core.channel.v1.QueryChannelRequest + * @memberof ibc.core.channel.v1.MsgChannelOpenConfirm * @instance * @returns {Object.} JSON object */ - QueryChannelRequest.prototype.toJSON = function toJSON() { + MsgChannelOpenConfirm.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryChannelRequest; + return MsgChannelOpenConfirm; })(); - v1.QueryChannelResponse = (function() { + v1.MsgChannelOpenConfirmResponse = (function() { /** - * Properties of a QueryChannelResponse. + * Properties of a MsgChannelOpenConfirmResponse. * @memberof ibc.core.channel.v1 - * @interface IQueryChannelResponse - * @property {ibc.core.channel.v1.IChannel|null} [channel] QueryChannelResponse channel - * @property {Uint8Array|null} [proof] QueryChannelResponse proof - * @property {ibc.core.client.v1.IHeight|null} [proof_height] QueryChannelResponse proof_height + * @interface IMsgChannelOpenConfirmResponse */ /** - * Constructs a new QueryChannelResponse. + * Constructs a new MsgChannelOpenConfirmResponse. * @memberof ibc.core.channel.v1 - * @classdesc Represents a QueryChannelResponse. - * @implements IQueryChannelResponse + * @classdesc Represents a MsgChannelOpenConfirmResponse. + * @implements IMsgChannelOpenConfirmResponse * @constructor - * @param {ibc.core.channel.v1.IQueryChannelResponse=} [properties] Properties to set + * @param {ibc.core.channel.v1.IMsgChannelOpenConfirmResponse=} [properties] Properties to set */ - function QueryChannelResponse(properties) { + function MsgChannelOpenConfirmResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -41836,90 +48777,51 @@ } /** - * QueryChannelResponse channel. - * @member {ibc.core.channel.v1.IChannel|null|undefined} channel - * @memberof ibc.core.channel.v1.QueryChannelResponse - * @instance - */ - QueryChannelResponse.prototype.channel = null; - - /** - * QueryChannelResponse proof. - * @member {Uint8Array} proof - * @memberof ibc.core.channel.v1.QueryChannelResponse - * @instance - */ - QueryChannelResponse.prototype.proof = $util.newBuffer([]); - - /** - * QueryChannelResponse proof_height. - * @member {ibc.core.client.v1.IHeight|null|undefined} proof_height - * @memberof ibc.core.channel.v1.QueryChannelResponse - * @instance - */ - QueryChannelResponse.prototype.proof_height = null; - - /** - * Encodes the specified QueryChannelResponse message. Does not implicitly {@link ibc.core.channel.v1.QueryChannelResponse.verify|verify} messages. + * Encodes the specified MsgChannelOpenConfirmResponse message. Does not implicitly {@link ibc.core.channel.v1.MsgChannelOpenConfirmResponse.verify|verify} messages. * @function encode - * @memberof ibc.core.channel.v1.QueryChannelResponse + * @memberof ibc.core.channel.v1.MsgChannelOpenConfirmResponse * @static - * @param {ibc.core.channel.v1.IQueryChannelResponse} message QueryChannelResponse message or plain object to encode + * @param {ibc.core.channel.v1.IMsgChannelOpenConfirmResponse} message MsgChannelOpenConfirmResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryChannelResponse.encode = function encode(message, writer) { + MsgChannelOpenConfirmResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.channel != null && Object.hasOwnProperty.call(message, "channel")) - $root.ibc.core.channel.v1.Channel.encode(message.channel, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.proof != null && Object.hasOwnProperty.call(message, "proof")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.proof); - if (message.proof_height != null && Object.hasOwnProperty.call(message, "proof_height")) - $root.ibc.core.client.v1.Height.encode(message.proof_height, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified QueryChannelResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryChannelResponse.verify|verify} messages. + * Encodes the specified MsgChannelOpenConfirmResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.MsgChannelOpenConfirmResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.channel.v1.QueryChannelResponse + * @memberof ibc.core.channel.v1.MsgChannelOpenConfirmResponse * @static - * @param {ibc.core.channel.v1.IQueryChannelResponse} message QueryChannelResponse message or plain object to encode + * @param {ibc.core.channel.v1.IMsgChannelOpenConfirmResponse} message MsgChannelOpenConfirmResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryChannelResponse.encodeDelimited = function encodeDelimited(message, writer) { + MsgChannelOpenConfirmResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryChannelResponse message from the specified reader or buffer. + * Decodes a MsgChannelOpenConfirmResponse message from the specified reader or buffer. * @function decode - * @memberof ibc.core.channel.v1.QueryChannelResponse + * @memberof ibc.core.channel.v1.MsgChannelOpenConfirmResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.channel.v1.QueryChannelResponse} QueryChannelResponse + * @returns {ibc.core.channel.v1.MsgChannelOpenConfirmResponse} MsgChannelOpenConfirmResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryChannelResponse.decode = function decode(reader, length) { + MsgChannelOpenConfirmResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.QueryChannelResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.MsgChannelOpenConfirmResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.channel = $root.ibc.core.channel.v1.Channel.decode(reader, reader.uint32()); - break; - case 2: - message.proof = reader.bytes(); - break; - case 3: - message.proof_height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); - break; default: reader.skipType(tag & 7); break; @@ -41929,143 +48831,96 @@ }; /** - * Decodes a QueryChannelResponse message from the specified reader or buffer, length delimited. + * Decodes a MsgChannelOpenConfirmResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.channel.v1.QueryChannelResponse + * @memberof ibc.core.channel.v1.MsgChannelOpenConfirmResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.channel.v1.QueryChannelResponse} QueryChannelResponse + * @returns {ibc.core.channel.v1.MsgChannelOpenConfirmResponse} MsgChannelOpenConfirmResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryChannelResponse.decodeDelimited = function decodeDelimited(reader) { + MsgChannelOpenConfirmResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryChannelResponse message. + * Verifies a MsgChannelOpenConfirmResponse message. * @function verify - * @memberof ibc.core.channel.v1.QueryChannelResponse + * @memberof ibc.core.channel.v1.MsgChannelOpenConfirmResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryChannelResponse.verify = function verify(message) { + MsgChannelOpenConfirmResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.channel != null && message.hasOwnProperty("channel")) { - var error = $root.ibc.core.channel.v1.Channel.verify(message.channel); - if (error) - return "channel." + error; - } - if (message.proof != null && message.hasOwnProperty("proof")) - if (!(message.proof && typeof message.proof.length === "number" || $util.isString(message.proof))) - return "proof: buffer expected"; - if (message.proof_height != null && message.hasOwnProperty("proof_height")) { - var error = $root.ibc.core.client.v1.Height.verify(message.proof_height); - if (error) - return "proof_height." + error; - } return null; }; /** - * Creates a QueryChannelResponse message from a plain object. Also converts values to their respective internal types. + * Creates a MsgChannelOpenConfirmResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.channel.v1.QueryChannelResponse + * @memberof ibc.core.channel.v1.MsgChannelOpenConfirmResponse * @static * @param {Object.} object Plain object - * @returns {ibc.core.channel.v1.QueryChannelResponse} QueryChannelResponse + * @returns {ibc.core.channel.v1.MsgChannelOpenConfirmResponse} MsgChannelOpenConfirmResponse */ - QueryChannelResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.channel.v1.QueryChannelResponse) + MsgChannelOpenConfirmResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.channel.v1.MsgChannelOpenConfirmResponse) return object; - var message = new $root.ibc.core.channel.v1.QueryChannelResponse(); - if (object.channel != null) { - if (typeof object.channel !== "object") - throw TypeError(".ibc.core.channel.v1.QueryChannelResponse.channel: object expected"); - message.channel = $root.ibc.core.channel.v1.Channel.fromObject(object.channel); - } - if (object.proof != null) - if (typeof object.proof === "string") - $util.base64.decode(object.proof, message.proof = $util.newBuffer($util.base64.length(object.proof)), 0); - else if (object.proof.length) - message.proof = object.proof; - if (object.proof_height != null) { - if (typeof object.proof_height !== "object") - throw TypeError(".ibc.core.channel.v1.QueryChannelResponse.proof_height: object expected"); - message.proof_height = $root.ibc.core.client.v1.Height.fromObject(object.proof_height); - } - return message; + return new $root.ibc.core.channel.v1.MsgChannelOpenConfirmResponse(); }; /** - * Creates a plain object from a QueryChannelResponse message. Also converts values to other types if specified. + * Creates a plain object from a MsgChannelOpenConfirmResponse message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.channel.v1.QueryChannelResponse + * @memberof ibc.core.channel.v1.MsgChannelOpenConfirmResponse * @static - * @param {ibc.core.channel.v1.QueryChannelResponse} message QueryChannelResponse + * @param {ibc.core.channel.v1.MsgChannelOpenConfirmResponse} message MsgChannelOpenConfirmResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryChannelResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.channel = null; - if (options.bytes === String) - object.proof = ""; - else { - object.proof = []; - if (options.bytes !== Array) - object.proof = $util.newBuffer(object.proof); - } - object.proof_height = null; - } - if (message.channel != null && message.hasOwnProperty("channel")) - object.channel = $root.ibc.core.channel.v1.Channel.toObject(message.channel, options); - if (message.proof != null && message.hasOwnProperty("proof")) - object.proof = options.bytes === String ? $util.base64.encode(message.proof, 0, message.proof.length) : options.bytes === Array ? Array.prototype.slice.call(message.proof) : message.proof; - if (message.proof_height != null && message.hasOwnProperty("proof_height")) - object.proof_height = $root.ibc.core.client.v1.Height.toObject(message.proof_height, options); - return object; + MsgChannelOpenConfirmResponse.toObject = function toObject() { + return {}; }; /** - * Converts this QueryChannelResponse to JSON. + * Converts this MsgChannelOpenConfirmResponse to JSON. * @function toJSON - * @memberof ibc.core.channel.v1.QueryChannelResponse + * @memberof ibc.core.channel.v1.MsgChannelOpenConfirmResponse * @instance * @returns {Object.} JSON object */ - QueryChannelResponse.prototype.toJSON = function toJSON() { + MsgChannelOpenConfirmResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryChannelResponse; + return MsgChannelOpenConfirmResponse; })(); - v1.QueryChannelsRequest = (function() { + v1.MsgChannelCloseInit = (function() { /** - * Properties of a QueryChannelsRequest. + * Properties of a MsgChannelCloseInit. * @memberof ibc.core.channel.v1 - * @interface IQueryChannelsRequest - * @property {cosmos.base.query.v1beta1.IPageRequest|null} [pagination] QueryChannelsRequest pagination + * @interface IMsgChannelCloseInit + * @property {string|null} [port_id] MsgChannelCloseInit port_id + * @property {string|null} [channel_id] MsgChannelCloseInit channel_id + * @property {string|null} [signer] MsgChannelCloseInit signer */ /** - * Constructs a new QueryChannelsRequest. + * Constructs a new MsgChannelCloseInit. * @memberof ibc.core.channel.v1 - * @classdesc Represents a QueryChannelsRequest. - * @implements IQueryChannelsRequest + * @classdesc Represents a MsgChannelCloseInit. + * @implements IMsgChannelCloseInit * @constructor - * @param {ibc.core.channel.v1.IQueryChannelsRequest=} [properties] Properties to set + * @param {ibc.core.channel.v1.IMsgChannelCloseInit=} [properties] Properties to set */ - function QueryChannelsRequest(properties) { + function MsgChannelCloseInit(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -42073,63 +48928,89 @@ } /** - * QueryChannelsRequest pagination. - * @member {cosmos.base.query.v1beta1.IPageRequest|null|undefined} pagination - * @memberof ibc.core.channel.v1.QueryChannelsRequest + * MsgChannelCloseInit port_id. + * @member {string} port_id + * @memberof ibc.core.channel.v1.MsgChannelCloseInit * @instance */ - QueryChannelsRequest.prototype.pagination = null; + MsgChannelCloseInit.prototype.port_id = ""; /** - * Encodes the specified QueryChannelsRequest message. Does not implicitly {@link ibc.core.channel.v1.QueryChannelsRequest.verify|verify} messages. + * MsgChannelCloseInit channel_id. + * @member {string} channel_id + * @memberof ibc.core.channel.v1.MsgChannelCloseInit + * @instance + */ + MsgChannelCloseInit.prototype.channel_id = ""; + + /** + * MsgChannelCloseInit signer. + * @member {string} signer + * @memberof ibc.core.channel.v1.MsgChannelCloseInit + * @instance + */ + MsgChannelCloseInit.prototype.signer = ""; + + /** + * Encodes the specified MsgChannelCloseInit message. Does not implicitly {@link ibc.core.channel.v1.MsgChannelCloseInit.verify|verify} messages. * @function encode - * @memberof ibc.core.channel.v1.QueryChannelsRequest + * @memberof ibc.core.channel.v1.MsgChannelCloseInit * @static - * @param {ibc.core.channel.v1.IQueryChannelsRequest} message QueryChannelsRequest message or plain object to encode + * @param {ibc.core.channel.v1.IMsgChannelCloseInit} message MsgChannelCloseInit message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryChannelsRequest.encode = function encode(message, writer) { + MsgChannelCloseInit.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.pagination != null && Object.hasOwnProperty.call(message, "pagination")) - $root.cosmos.base.query.v1beta1.PageRequest.encode(message.pagination, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.port_id != null && Object.hasOwnProperty.call(message, "port_id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.port_id); + if (message.channel_id != null && Object.hasOwnProperty.call(message, "channel_id")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.channel_id); + if (message.signer != null && Object.hasOwnProperty.call(message, "signer")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.signer); return writer; }; /** - * Encodes the specified QueryChannelsRequest message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryChannelsRequest.verify|verify} messages. + * Encodes the specified MsgChannelCloseInit message, length delimited. Does not implicitly {@link ibc.core.channel.v1.MsgChannelCloseInit.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.channel.v1.QueryChannelsRequest + * @memberof ibc.core.channel.v1.MsgChannelCloseInit * @static - * @param {ibc.core.channel.v1.IQueryChannelsRequest} message QueryChannelsRequest message or plain object to encode + * @param {ibc.core.channel.v1.IMsgChannelCloseInit} message MsgChannelCloseInit message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryChannelsRequest.encodeDelimited = function encodeDelimited(message, writer) { + MsgChannelCloseInit.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryChannelsRequest message from the specified reader or buffer. + * Decodes a MsgChannelCloseInit message from the specified reader or buffer. * @function decode - * @memberof ibc.core.channel.v1.QueryChannelsRequest + * @memberof ibc.core.channel.v1.MsgChannelCloseInit * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.channel.v1.QueryChannelsRequest} QueryChannelsRequest + * @returns {ibc.core.channel.v1.MsgChannelCloseInit} MsgChannelCloseInit * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryChannelsRequest.decode = function decode(reader, length) { + MsgChannelCloseInit.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.QueryChannelsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.MsgChannelCloseInit(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.pagination = $root.cosmos.base.query.v1beta1.PageRequest.decode(reader, reader.uint32()); + message.port_id = reader.string(); + break; + case 2: + message.channel_id = reader.string(); + break; + case 3: + message.signer = reader.string(); break; default: reader.skipType(tag & 7); @@ -42140,115 +49021,123 @@ }; /** - * Decodes a QueryChannelsRequest message from the specified reader or buffer, length delimited. + * Decodes a MsgChannelCloseInit message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.channel.v1.QueryChannelsRequest + * @memberof ibc.core.channel.v1.MsgChannelCloseInit * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.channel.v1.QueryChannelsRequest} QueryChannelsRequest + * @returns {ibc.core.channel.v1.MsgChannelCloseInit} MsgChannelCloseInit * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryChannelsRequest.decodeDelimited = function decodeDelimited(reader) { + MsgChannelCloseInit.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryChannelsRequest message. + * Verifies a MsgChannelCloseInit message. * @function verify - * @memberof ibc.core.channel.v1.QueryChannelsRequest + * @memberof ibc.core.channel.v1.MsgChannelCloseInit * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryChannelsRequest.verify = function verify(message) { + MsgChannelCloseInit.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.pagination != null && message.hasOwnProperty("pagination")) { - var error = $root.cosmos.base.query.v1beta1.PageRequest.verify(message.pagination); - if (error) - return "pagination." + error; - } + if (message.port_id != null && message.hasOwnProperty("port_id")) + if (!$util.isString(message.port_id)) + return "port_id: string expected"; + if (message.channel_id != null && message.hasOwnProperty("channel_id")) + if (!$util.isString(message.channel_id)) + return "channel_id: string expected"; + if (message.signer != null && message.hasOwnProperty("signer")) + if (!$util.isString(message.signer)) + return "signer: string expected"; return null; }; /** - * Creates a QueryChannelsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MsgChannelCloseInit message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.channel.v1.QueryChannelsRequest + * @memberof ibc.core.channel.v1.MsgChannelCloseInit * @static * @param {Object.} object Plain object - * @returns {ibc.core.channel.v1.QueryChannelsRequest} QueryChannelsRequest + * @returns {ibc.core.channel.v1.MsgChannelCloseInit} MsgChannelCloseInit */ - QueryChannelsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.channel.v1.QueryChannelsRequest) + MsgChannelCloseInit.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.channel.v1.MsgChannelCloseInit) return object; - var message = new $root.ibc.core.channel.v1.QueryChannelsRequest(); - if (object.pagination != null) { - if (typeof object.pagination !== "object") - throw TypeError(".ibc.core.channel.v1.QueryChannelsRequest.pagination: object expected"); - message.pagination = $root.cosmos.base.query.v1beta1.PageRequest.fromObject(object.pagination); - } + var message = new $root.ibc.core.channel.v1.MsgChannelCloseInit(); + if (object.port_id != null) + message.port_id = String(object.port_id); + if (object.channel_id != null) + message.channel_id = String(object.channel_id); + if (object.signer != null) + message.signer = String(object.signer); return message; }; /** - * Creates a plain object from a QueryChannelsRequest message. Also converts values to other types if specified. + * Creates a plain object from a MsgChannelCloseInit message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.channel.v1.QueryChannelsRequest + * @memberof ibc.core.channel.v1.MsgChannelCloseInit * @static - * @param {ibc.core.channel.v1.QueryChannelsRequest} message QueryChannelsRequest + * @param {ibc.core.channel.v1.MsgChannelCloseInit} message MsgChannelCloseInit * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryChannelsRequest.toObject = function toObject(message, options) { + MsgChannelCloseInit.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.pagination = null; - if (message.pagination != null && message.hasOwnProperty("pagination")) - object.pagination = $root.cosmos.base.query.v1beta1.PageRequest.toObject(message.pagination, options); + if (options.defaults) { + object.port_id = ""; + object.channel_id = ""; + object.signer = ""; + } + if (message.port_id != null && message.hasOwnProperty("port_id")) + object.port_id = message.port_id; + if (message.channel_id != null && message.hasOwnProperty("channel_id")) + object.channel_id = message.channel_id; + if (message.signer != null && message.hasOwnProperty("signer")) + object.signer = message.signer; return object; }; /** - * Converts this QueryChannelsRequest to JSON. + * Converts this MsgChannelCloseInit to JSON. * @function toJSON - * @memberof ibc.core.channel.v1.QueryChannelsRequest + * @memberof ibc.core.channel.v1.MsgChannelCloseInit * @instance * @returns {Object.} JSON object */ - QueryChannelsRequest.prototype.toJSON = function toJSON() { + MsgChannelCloseInit.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryChannelsRequest; + return MsgChannelCloseInit; })(); - v1.QueryChannelsResponse = (function() { + v1.MsgChannelCloseInitResponse = (function() { /** - * Properties of a QueryChannelsResponse. + * Properties of a MsgChannelCloseInitResponse. * @memberof ibc.core.channel.v1 - * @interface IQueryChannelsResponse - * @property {Array.|null} [channels] QueryChannelsResponse channels - * @property {cosmos.base.query.v1beta1.IPageResponse|null} [pagination] QueryChannelsResponse pagination - * @property {ibc.core.client.v1.IHeight|null} [height] QueryChannelsResponse height + * @interface IMsgChannelCloseInitResponse */ /** - * Constructs a new QueryChannelsResponse. + * Constructs a new MsgChannelCloseInitResponse. * @memberof ibc.core.channel.v1 - * @classdesc Represents a QueryChannelsResponse. - * @implements IQueryChannelsResponse + * @classdesc Represents a MsgChannelCloseInitResponse. + * @implements IMsgChannelCloseInitResponse * @constructor - * @param {ibc.core.channel.v1.IQueryChannelsResponse=} [properties] Properties to set + * @param {ibc.core.channel.v1.IMsgChannelCloseInitResponse=} [properties] Properties to set */ - function QueryChannelsResponse(properties) { - this.channels = []; + function MsgChannelCloseInitResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -42256,93 +49145,51 @@ } /** - * QueryChannelsResponse channels. - * @member {Array.} channels - * @memberof ibc.core.channel.v1.QueryChannelsResponse - * @instance - */ - QueryChannelsResponse.prototype.channels = $util.emptyArray; - - /** - * QueryChannelsResponse pagination. - * @member {cosmos.base.query.v1beta1.IPageResponse|null|undefined} pagination - * @memberof ibc.core.channel.v1.QueryChannelsResponse - * @instance - */ - QueryChannelsResponse.prototype.pagination = null; - - /** - * QueryChannelsResponse height. - * @member {ibc.core.client.v1.IHeight|null|undefined} height - * @memberof ibc.core.channel.v1.QueryChannelsResponse - * @instance - */ - QueryChannelsResponse.prototype.height = null; - - /** - * Encodes the specified QueryChannelsResponse message. Does not implicitly {@link ibc.core.channel.v1.QueryChannelsResponse.verify|verify} messages. + * Encodes the specified MsgChannelCloseInitResponse message. Does not implicitly {@link ibc.core.channel.v1.MsgChannelCloseInitResponse.verify|verify} messages. * @function encode - * @memberof ibc.core.channel.v1.QueryChannelsResponse + * @memberof ibc.core.channel.v1.MsgChannelCloseInitResponse * @static - * @param {ibc.core.channel.v1.IQueryChannelsResponse} message QueryChannelsResponse message or plain object to encode + * @param {ibc.core.channel.v1.IMsgChannelCloseInitResponse} message MsgChannelCloseInitResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryChannelsResponse.encode = function encode(message, writer) { + MsgChannelCloseInitResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.channels != null && message.channels.length) - for (var i = 0; i < message.channels.length; ++i) - $root.ibc.core.channel.v1.IdentifiedChannel.encode(message.channels[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.pagination != null && Object.hasOwnProperty.call(message, "pagination")) - $root.cosmos.base.query.v1beta1.PageResponse.encode(message.pagination, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.height != null && Object.hasOwnProperty.call(message, "height")) - $root.ibc.core.client.v1.Height.encode(message.height, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified QueryChannelsResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryChannelsResponse.verify|verify} messages. + * Encodes the specified MsgChannelCloseInitResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.MsgChannelCloseInitResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.channel.v1.QueryChannelsResponse + * @memberof ibc.core.channel.v1.MsgChannelCloseInitResponse * @static - * @param {ibc.core.channel.v1.IQueryChannelsResponse} message QueryChannelsResponse message or plain object to encode + * @param {ibc.core.channel.v1.IMsgChannelCloseInitResponse} message MsgChannelCloseInitResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryChannelsResponse.encodeDelimited = function encodeDelimited(message, writer) { + MsgChannelCloseInitResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryChannelsResponse message from the specified reader or buffer. + * Decodes a MsgChannelCloseInitResponse message from the specified reader or buffer. * @function decode - * @memberof ibc.core.channel.v1.QueryChannelsResponse + * @memberof ibc.core.channel.v1.MsgChannelCloseInitResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.channel.v1.QueryChannelsResponse} QueryChannelsResponse + * @returns {ibc.core.channel.v1.MsgChannelCloseInitResponse} MsgChannelCloseInitResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryChannelsResponse.decode = function decode(reader, length) { + MsgChannelCloseInitResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.QueryChannelsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.MsgChannelCloseInitResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - if (!(message.channels && message.channels.length)) - message.channels = []; - message.channels.push($root.ibc.core.channel.v1.IdentifiedChannel.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = $root.cosmos.base.query.v1beta1.PageResponse.decode(reader, reader.uint32()); - break; - case 3: - message.height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); - break; default: reader.skipType(tag & 7); break; @@ -42352,153 +49199,98 @@ }; /** - * Decodes a QueryChannelsResponse message from the specified reader or buffer, length delimited. + * Decodes a MsgChannelCloseInitResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.channel.v1.QueryChannelsResponse + * @memberof ibc.core.channel.v1.MsgChannelCloseInitResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.channel.v1.QueryChannelsResponse} QueryChannelsResponse + * @returns {ibc.core.channel.v1.MsgChannelCloseInitResponse} MsgChannelCloseInitResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryChannelsResponse.decodeDelimited = function decodeDelimited(reader) { + MsgChannelCloseInitResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryChannelsResponse message. + * Verifies a MsgChannelCloseInitResponse message. * @function verify - * @memberof ibc.core.channel.v1.QueryChannelsResponse + * @memberof ibc.core.channel.v1.MsgChannelCloseInitResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryChannelsResponse.verify = function verify(message) { + MsgChannelCloseInitResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.channels != null && message.hasOwnProperty("channels")) { - if (!Array.isArray(message.channels)) - return "channels: array expected"; - for (var i = 0; i < message.channels.length; ++i) { - var error = $root.ibc.core.channel.v1.IdentifiedChannel.verify(message.channels[i]); - if (error) - return "channels." + error; - } - } - if (message.pagination != null && message.hasOwnProperty("pagination")) { - var error = $root.cosmos.base.query.v1beta1.PageResponse.verify(message.pagination); - if (error) - return "pagination." + error; - } - if (message.height != null && message.hasOwnProperty("height")) { - var error = $root.ibc.core.client.v1.Height.verify(message.height); - if (error) - return "height." + error; - } return null; }; /** - * Creates a QueryChannelsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a MsgChannelCloseInitResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.channel.v1.QueryChannelsResponse - * @static - * @param {Object.} object Plain object - * @returns {ibc.core.channel.v1.QueryChannelsResponse} QueryChannelsResponse - */ - QueryChannelsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.channel.v1.QueryChannelsResponse) - return object; - var message = new $root.ibc.core.channel.v1.QueryChannelsResponse(); - if (object.channels) { - if (!Array.isArray(object.channels)) - throw TypeError(".ibc.core.channel.v1.QueryChannelsResponse.channels: array expected"); - message.channels = []; - for (var i = 0; i < object.channels.length; ++i) { - if (typeof object.channels[i] !== "object") - throw TypeError(".ibc.core.channel.v1.QueryChannelsResponse.channels: object expected"); - message.channels[i] = $root.ibc.core.channel.v1.IdentifiedChannel.fromObject(object.channels[i]); - } - } - if (object.pagination != null) { - if (typeof object.pagination !== "object") - throw TypeError(".ibc.core.channel.v1.QueryChannelsResponse.pagination: object expected"); - message.pagination = $root.cosmos.base.query.v1beta1.PageResponse.fromObject(object.pagination); - } - if (object.height != null) { - if (typeof object.height !== "object") - throw TypeError(".ibc.core.channel.v1.QueryChannelsResponse.height: object expected"); - message.height = $root.ibc.core.client.v1.Height.fromObject(object.height); - } - return message; + * @memberof ibc.core.channel.v1.MsgChannelCloseInitResponse + * @static + * @param {Object.} object Plain object + * @returns {ibc.core.channel.v1.MsgChannelCloseInitResponse} MsgChannelCloseInitResponse + */ + MsgChannelCloseInitResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.channel.v1.MsgChannelCloseInitResponse) + return object; + return new $root.ibc.core.channel.v1.MsgChannelCloseInitResponse(); }; /** - * Creates a plain object from a QueryChannelsResponse message. Also converts values to other types if specified. + * Creates a plain object from a MsgChannelCloseInitResponse message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.channel.v1.QueryChannelsResponse + * @memberof ibc.core.channel.v1.MsgChannelCloseInitResponse * @static - * @param {ibc.core.channel.v1.QueryChannelsResponse} message QueryChannelsResponse + * @param {ibc.core.channel.v1.MsgChannelCloseInitResponse} message MsgChannelCloseInitResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryChannelsResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.channels = []; - if (options.defaults) { - object.pagination = null; - object.height = null; - } - if (message.channels && message.channels.length) { - object.channels = []; - for (var j = 0; j < message.channels.length; ++j) - object.channels[j] = $root.ibc.core.channel.v1.IdentifiedChannel.toObject(message.channels[j], options); - } - if (message.pagination != null && message.hasOwnProperty("pagination")) - object.pagination = $root.cosmos.base.query.v1beta1.PageResponse.toObject(message.pagination, options); - if (message.height != null && message.hasOwnProperty("height")) - object.height = $root.ibc.core.client.v1.Height.toObject(message.height, options); - return object; + MsgChannelCloseInitResponse.toObject = function toObject() { + return {}; }; /** - * Converts this QueryChannelsResponse to JSON. + * Converts this MsgChannelCloseInitResponse to JSON. * @function toJSON - * @memberof ibc.core.channel.v1.QueryChannelsResponse + * @memberof ibc.core.channel.v1.MsgChannelCloseInitResponse * @instance * @returns {Object.} JSON object */ - QueryChannelsResponse.prototype.toJSON = function toJSON() { + MsgChannelCloseInitResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryChannelsResponse; + return MsgChannelCloseInitResponse; })(); - v1.QueryConnectionChannelsRequest = (function() { + v1.MsgChannelCloseConfirm = (function() { /** - * Properties of a QueryConnectionChannelsRequest. + * Properties of a MsgChannelCloseConfirm. * @memberof ibc.core.channel.v1 - * @interface IQueryConnectionChannelsRequest - * @property {string|null} [connection] QueryConnectionChannelsRequest connection - * @property {cosmos.base.query.v1beta1.IPageRequest|null} [pagination] QueryConnectionChannelsRequest pagination + * @interface IMsgChannelCloseConfirm + * @property {string|null} [port_id] MsgChannelCloseConfirm port_id + * @property {string|null} [channel_id] MsgChannelCloseConfirm channel_id + * @property {Uint8Array|null} [proof_init] MsgChannelCloseConfirm proof_init + * @property {ibc.core.client.v1.IHeight|null} [proof_height] MsgChannelCloseConfirm proof_height + * @property {string|null} [signer] MsgChannelCloseConfirm signer */ /** - * Constructs a new QueryConnectionChannelsRequest. + * Constructs a new MsgChannelCloseConfirm. * @memberof ibc.core.channel.v1 - * @classdesc Represents a QueryConnectionChannelsRequest. - * @implements IQueryConnectionChannelsRequest + * @classdesc Represents a MsgChannelCloseConfirm. + * @implements IMsgChannelCloseConfirm * @constructor - * @param {ibc.core.channel.v1.IQueryConnectionChannelsRequest=} [properties] Properties to set + * @param {ibc.core.channel.v1.IMsgChannelCloseConfirm=} [properties] Properties to set */ - function QueryConnectionChannelsRequest(properties) { + function MsgChannelCloseConfirm(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -42506,76 +49298,115 @@ } /** - * QueryConnectionChannelsRequest connection. - * @member {string} connection - * @memberof ibc.core.channel.v1.QueryConnectionChannelsRequest + * MsgChannelCloseConfirm port_id. + * @member {string} port_id + * @memberof ibc.core.channel.v1.MsgChannelCloseConfirm * @instance */ - QueryConnectionChannelsRequest.prototype.connection = ""; + MsgChannelCloseConfirm.prototype.port_id = ""; /** - * QueryConnectionChannelsRequest pagination. - * @member {cosmos.base.query.v1beta1.IPageRequest|null|undefined} pagination - * @memberof ibc.core.channel.v1.QueryConnectionChannelsRequest + * MsgChannelCloseConfirm channel_id. + * @member {string} channel_id + * @memberof ibc.core.channel.v1.MsgChannelCloseConfirm * @instance */ - QueryConnectionChannelsRequest.prototype.pagination = null; + MsgChannelCloseConfirm.prototype.channel_id = ""; /** - * Encodes the specified QueryConnectionChannelsRequest message. Does not implicitly {@link ibc.core.channel.v1.QueryConnectionChannelsRequest.verify|verify} messages. + * MsgChannelCloseConfirm proof_init. + * @member {Uint8Array} proof_init + * @memberof ibc.core.channel.v1.MsgChannelCloseConfirm + * @instance + */ + MsgChannelCloseConfirm.prototype.proof_init = $util.newBuffer([]); + + /** + * MsgChannelCloseConfirm proof_height. + * @member {ibc.core.client.v1.IHeight|null|undefined} proof_height + * @memberof ibc.core.channel.v1.MsgChannelCloseConfirm + * @instance + */ + MsgChannelCloseConfirm.prototype.proof_height = null; + + /** + * MsgChannelCloseConfirm signer. + * @member {string} signer + * @memberof ibc.core.channel.v1.MsgChannelCloseConfirm + * @instance + */ + MsgChannelCloseConfirm.prototype.signer = ""; + + /** + * Encodes the specified MsgChannelCloseConfirm message. Does not implicitly {@link ibc.core.channel.v1.MsgChannelCloseConfirm.verify|verify} messages. * @function encode - * @memberof ibc.core.channel.v1.QueryConnectionChannelsRequest + * @memberof ibc.core.channel.v1.MsgChannelCloseConfirm * @static - * @param {ibc.core.channel.v1.IQueryConnectionChannelsRequest} message QueryConnectionChannelsRequest message or plain object to encode + * @param {ibc.core.channel.v1.IMsgChannelCloseConfirm} message MsgChannelCloseConfirm message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryConnectionChannelsRequest.encode = function encode(message, writer) { + MsgChannelCloseConfirm.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.connection != null && Object.hasOwnProperty.call(message, "connection")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.connection); - if (message.pagination != null && Object.hasOwnProperty.call(message, "pagination")) - $root.cosmos.base.query.v1beta1.PageRequest.encode(message.pagination, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.port_id != null && Object.hasOwnProperty.call(message, "port_id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.port_id); + if (message.channel_id != null && Object.hasOwnProperty.call(message, "channel_id")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.channel_id); + if (message.proof_init != null && Object.hasOwnProperty.call(message, "proof_init")) + writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.proof_init); + if (message.proof_height != null && Object.hasOwnProperty.call(message, "proof_height")) + $root.ibc.core.client.v1.Height.encode(message.proof_height, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.signer != null && Object.hasOwnProperty.call(message, "signer")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.signer); return writer; }; /** - * Encodes the specified QueryConnectionChannelsRequest message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryConnectionChannelsRequest.verify|verify} messages. + * Encodes the specified MsgChannelCloseConfirm message, length delimited. Does not implicitly {@link ibc.core.channel.v1.MsgChannelCloseConfirm.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.channel.v1.QueryConnectionChannelsRequest + * @memberof ibc.core.channel.v1.MsgChannelCloseConfirm * @static - * @param {ibc.core.channel.v1.IQueryConnectionChannelsRequest} message QueryConnectionChannelsRequest message or plain object to encode + * @param {ibc.core.channel.v1.IMsgChannelCloseConfirm} message MsgChannelCloseConfirm message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryConnectionChannelsRequest.encodeDelimited = function encodeDelimited(message, writer) { + MsgChannelCloseConfirm.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryConnectionChannelsRequest message from the specified reader or buffer. + * Decodes a MsgChannelCloseConfirm message from the specified reader or buffer. * @function decode - * @memberof ibc.core.channel.v1.QueryConnectionChannelsRequest + * @memberof ibc.core.channel.v1.MsgChannelCloseConfirm * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.channel.v1.QueryConnectionChannelsRequest} QueryConnectionChannelsRequest + * @returns {ibc.core.channel.v1.MsgChannelCloseConfirm} MsgChannelCloseConfirm * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryConnectionChannelsRequest.decode = function decode(reader, length) { + MsgChannelCloseConfirm.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.QueryConnectionChannelsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.MsgChannelCloseConfirm(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.connection = reader.string(); + message.port_id = reader.string(); break; case 2: - message.pagination = $root.cosmos.base.query.v1beta1.PageRequest.decode(reader, reader.uint32()); + message.channel_id = reader.string(); + break; + case 3: + message.proof_init = reader.bytes(); + break; + case 4: + message.proof_height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); + break; + case 5: + message.signer = reader.string(); break; default: reader.skipType(tag & 7); @@ -42586,124 +49417,153 @@ }; /** - * Decodes a QueryConnectionChannelsRequest message from the specified reader or buffer, length delimited. + * Decodes a MsgChannelCloseConfirm message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.channel.v1.QueryConnectionChannelsRequest + * @memberof ibc.core.channel.v1.MsgChannelCloseConfirm * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.channel.v1.QueryConnectionChannelsRequest} QueryConnectionChannelsRequest + * @returns {ibc.core.channel.v1.MsgChannelCloseConfirm} MsgChannelCloseConfirm * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryConnectionChannelsRequest.decodeDelimited = function decodeDelimited(reader) { + MsgChannelCloseConfirm.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryConnectionChannelsRequest message. + * Verifies a MsgChannelCloseConfirm message. * @function verify - * @memberof ibc.core.channel.v1.QueryConnectionChannelsRequest + * @memberof ibc.core.channel.v1.MsgChannelCloseConfirm * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryConnectionChannelsRequest.verify = function verify(message) { + MsgChannelCloseConfirm.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.connection != null && message.hasOwnProperty("connection")) - if (!$util.isString(message.connection)) - return "connection: string expected"; - if (message.pagination != null && message.hasOwnProperty("pagination")) { - var error = $root.cosmos.base.query.v1beta1.PageRequest.verify(message.pagination); + if (message.port_id != null && message.hasOwnProperty("port_id")) + if (!$util.isString(message.port_id)) + return "port_id: string expected"; + if (message.channel_id != null && message.hasOwnProperty("channel_id")) + if (!$util.isString(message.channel_id)) + return "channel_id: string expected"; + if (message.proof_init != null && message.hasOwnProperty("proof_init")) + if (!(message.proof_init && typeof message.proof_init.length === "number" || $util.isString(message.proof_init))) + return "proof_init: buffer expected"; + if (message.proof_height != null && message.hasOwnProperty("proof_height")) { + var error = $root.ibc.core.client.v1.Height.verify(message.proof_height); if (error) - return "pagination." + error; + return "proof_height." + error; } + if (message.signer != null && message.hasOwnProperty("signer")) + if (!$util.isString(message.signer)) + return "signer: string expected"; return null; }; /** - * Creates a QueryConnectionChannelsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MsgChannelCloseConfirm message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.channel.v1.QueryConnectionChannelsRequest + * @memberof ibc.core.channel.v1.MsgChannelCloseConfirm * @static * @param {Object.} object Plain object - * @returns {ibc.core.channel.v1.QueryConnectionChannelsRequest} QueryConnectionChannelsRequest + * @returns {ibc.core.channel.v1.MsgChannelCloseConfirm} MsgChannelCloseConfirm */ - QueryConnectionChannelsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.channel.v1.QueryConnectionChannelsRequest) + MsgChannelCloseConfirm.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.channel.v1.MsgChannelCloseConfirm) return object; - var message = new $root.ibc.core.channel.v1.QueryConnectionChannelsRequest(); - if (object.connection != null) - message.connection = String(object.connection); - if (object.pagination != null) { - if (typeof object.pagination !== "object") - throw TypeError(".ibc.core.channel.v1.QueryConnectionChannelsRequest.pagination: object expected"); - message.pagination = $root.cosmos.base.query.v1beta1.PageRequest.fromObject(object.pagination); + var message = new $root.ibc.core.channel.v1.MsgChannelCloseConfirm(); + if (object.port_id != null) + message.port_id = String(object.port_id); + if (object.channel_id != null) + message.channel_id = String(object.channel_id); + if (object.proof_init != null) + if (typeof object.proof_init === "string") + $util.base64.decode(object.proof_init, message.proof_init = $util.newBuffer($util.base64.length(object.proof_init)), 0); + else if (object.proof_init.length) + message.proof_init = object.proof_init; + if (object.proof_height != null) { + if (typeof object.proof_height !== "object") + throw TypeError(".ibc.core.channel.v1.MsgChannelCloseConfirm.proof_height: object expected"); + message.proof_height = $root.ibc.core.client.v1.Height.fromObject(object.proof_height); } + if (object.signer != null) + message.signer = String(object.signer); return message; }; /** - * Creates a plain object from a QueryConnectionChannelsRequest message. Also converts values to other types if specified. + * Creates a plain object from a MsgChannelCloseConfirm message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.channel.v1.QueryConnectionChannelsRequest + * @memberof ibc.core.channel.v1.MsgChannelCloseConfirm * @static - * @param {ibc.core.channel.v1.QueryConnectionChannelsRequest} message QueryConnectionChannelsRequest + * @param {ibc.core.channel.v1.MsgChannelCloseConfirm} message MsgChannelCloseConfirm * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryConnectionChannelsRequest.toObject = function toObject(message, options) { + MsgChannelCloseConfirm.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.connection = ""; - object.pagination = null; + object.port_id = ""; + object.channel_id = ""; + if (options.bytes === String) + object.proof_init = ""; + else { + object.proof_init = []; + if (options.bytes !== Array) + object.proof_init = $util.newBuffer(object.proof_init); + } + object.proof_height = null; + object.signer = ""; } - if (message.connection != null && message.hasOwnProperty("connection")) - object.connection = message.connection; - if (message.pagination != null && message.hasOwnProperty("pagination")) - object.pagination = $root.cosmos.base.query.v1beta1.PageRequest.toObject(message.pagination, options); + if (message.port_id != null && message.hasOwnProperty("port_id")) + object.port_id = message.port_id; + if (message.channel_id != null && message.hasOwnProperty("channel_id")) + object.channel_id = message.channel_id; + if (message.proof_init != null && message.hasOwnProperty("proof_init")) + object.proof_init = options.bytes === String ? $util.base64.encode(message.proof_init, 0, message.proof_init.length) : options.bytes === Array ? Array.prototype.slice.call(message.proof_init) : message.proof_init; + if (message.proof_height != null && message.hasOwnProperty("proof_height")) + object.proof_height = $root.ibc.core.client.v1.Height.toObject(message.proof_height, options); + if (message.signer != null && message.hasOwnProperty("signer")) + object.signer = message.signer; return object; }; /** - * Converts this QueryConnectionChannelsRequest to JSON. + * Converts this MsgChannelCloseConfirm to JSON. * @function toJSON - * @memberof ibc.core.channel.v1.QueryConnectionChannelsRequest + * @memberof ibc.core.channel.v1.MsgChannelCloseConfirm * @instance * @returns {Object.} JSON object */ - QueryConnectionChannelsRequest.prototype.toJSON = function toJSON() { + MsgChannelCloseConfirm.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryConnectionChannelsRequest; + return MsgChannelCloseConfirm; })(); - v1.QueryConnectionChannelsResponse = (function() { + v1.MsgChannelCloseConfirmResponse = (function() { /** - * Properties of a QueryConnectionChannelsResponse. + * Properties of a MsgChannelCloseConfirmResponse. * @memberof ibc.core.channel.v1 - * @interface IQueryConnectionChannelsResponse - * @property {Array.|null} [channels] QueryConnectionChannelsResponse channels - * @property {cosmos.base.query.v1beta1.IPageResponse|null} [pagination] QueryConnectionChannelsResponse pagination - * @property {ibc.core.client.v1.IHeight|null} [height] QueryConnectionChannelsResponse height + * @interface IMsgChannelCloseConfirmResponse */ /** - * Constructs a new QueryConnectionChannelsResponse. + * Constructs a new MsgChannelCloseConfirmResponse. * @memberof ibc.core.channel.v1 - * @classdesc Represents a QueryConnectionChannelsResponse. - * @implements IQueryConnectionChannelsResponse + * @classdesc Represents a MsgChannelCloseConfirmResponse. + * @implements IMsgChannelCloseConfirmResponse * @constructor - * @param {ibc.core.channel.v1.IQueryConnectionChannelsResponse=} [properties] Properties to set + * @param {ibc.core.channel.v1.IMsgChannelCloseConfirmResponse=} [properties] Properties to set */ - function QueryConnectionChannelsResponse(properties) { - this.channels = []; + function MsgChannelCloseConfirmResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -42711,93 +49571,51 @@ } /** - * QueryConnectionChannelsResponse channels. - * @member {Array.} channels - * @memberof ibc.core.channel.v1.QueryConnectionChannelsResponse - * @instance - */ - QueryConnectionChannelsResponse.prototype.channels = $util.emptyArray; - - /** - * QueryConnectionChannelsResponse pagination. - * @member {cosmos.base.query.v1beta1.IPageResponse|null|undefined} pagination - * @memberof ibc.core.channel.v1.QueryConnectionChannelsResponse - * @instance - */ - QueryConnectionChannelsResponse.prototype.pagination = null; - - /** - * QueryConnectionChannelsResponse height. - * @member {ibc.core.client.v1.IHeight|null|undefined} height - * @memberof ibc.core.channel.v1.QueryConnectionChannelsResponse - * @instance - */ - QueryConnectionChannelsResponse.prototype.height = null; - - /** - * Encodes the specified QueryConnectionChannelsResponse message. Does not implicitly {@link ibc.core.channel.v1.QueryConnectionChannelsResponse.verify|verify} messages. + * Encodes the specified MsgChannelCloseConfirmResponse message. Does not implicitly {@link ibc.core.channel.v1.MsgChannelCloseConfirmResponse.verify|verify} messages. * @function encode - * @memberof ibc.core.channel.v1.QueryConnectionChannelsResponse + * @memberof ibc.core.channel.v1.MsgChannelCloseConfirmResponse * @static - * @param {ibc.core.channel.v1.IQueryConnectionChannelsResponse} message QueryConnectionChannelsResponse message or plain object to encode + * @param {ibc.core.channel.v1.IMsgChannelCloseConfirmResponse} message MsgChannelCloseConfirmResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryConnectionChannelsResponse.encode = function encode(message, writer) { + MsgChannelCloseConfirmResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.channels != null && message.channels.length) - for (var i = 0; i < message.channels.length; ++i) - $root.ibc.core.channel.v1.IdentifiedChannel.encode(message.channels[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.pagination != null && Object.hasOwnProperty.call(message, "pagination")) - $root.cosmos.base.query.v1beta1.PageResponse.encode(message.pagination, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.height != null && Object.hasOwnProperty.call(message, "height")) - $root.ibc.core.client.v1.Height.encode(message.height, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified QueryConnectionChannelsResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryConnectionChannelsResponse.verify|verify} messages. + * Encodes the specified MsgChannelCloseConfirmResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.MsgChannelCloseConfirmResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.channel.v1.QueryConnectionChannelsResponse + * @memberof ibc.core.channel.v1.MsgChannelCloseConfirmResponse * @static - * @param {ibc.core.channel.v1.IQueryConnectionChannelsResponse} message QueryConnectionChannelsResponse message or plain object to encode + * @param {ibc.core.channel.v1.IMsgChannelCloseConfirmResponse} message MsgChannelCloseConfirmResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryConnectionChannelsResponse.encodeDelimited = function encodeDelimited(message, writer) { + MsgChannelCloseConfirmResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryConnectionChannelsResponse message from the specified reader or buffer. + * Decodes a MsgChannelCloseConfirmResponse message from the specified reader or buffer. * @function decode - * @memberof ibc.core.channel.v1.QueryConnectionChannelsResponse + * @memberof ibc.core.channel.v1.MsgChannelCloseConfirmResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.channel.v1.QueryConnectionChannelsResponse} QueryConnectionChannelsResponse + * @returns {ibc.core.channel.v1.MsgChannelCloseConfirmResponse} MsgChannelCloseConfirmResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryConnectionChannelsResponse.decode = function decode(reader, length) { + MsgChannelCloseConfirmResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.QueryConnectionChannelsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.MsgChannelCloseConfirmResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - if (!(message.channels && message.channels.length)) - message.channels = []; - message.channels.push($root.ibc.core.channel.v1.IdentifiedChannel.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = $root.cosmos.base.query.v1beta1.PageResponse.decode(reader, reader.uint32()); - break; - case 3: - message.height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); - break; default: reader.skipType(tag & 7); break; @@ -42807,153 +49625,97 @@ }; /** - * Decodes a QueryConnectionChannelsResponse message from the specified reader or buffer, length delimited. + * Decodes a MsgChannelCloseConfirmResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.channel.v1.QueryConnectionChannelsResponse + * @memberof ibc.core.channel.v1.MsgChannelCloseConfirmResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.channel.v1.QueryConnectionChannelsResponse} QueryConnectionChannelsResponse + * @returns {ibc.core.channel.v1.MsgChannelCloseConfirmResponse} MsgChannelCloseConfirmResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryConnectionChannelsResponse.decodeDelimited = function decodeDelimited(reader) { + MsgChannelCloseConfirmResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryConnectionChannelsResponse message. + * Verifies a MsgChannelCloseConfirmResponse message. * @function verify - * @memberof ibc.core.channel.v1.QueryConnectionChannelsResponse + * @memberof ibc.core.channel.v1.MsgChannelCloseConfirmResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryConnectionChannelsResponse.verify = function verify(message) { + MsgChannelCloseConfirmResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.channels != null && message.hasOwnProperty("channels")) { - if (!Array.isArray(message.channels)) - return "channels: array expected"; - for (var i = 0; i < message.channels.length; ++i) { - var error = $root.ibc.core.channel.v1.IdentifiedChannel.verify(message.channels[i]); - if (error) - return "channels." + error; - } - } - if (message.pagination != null && message.hasOwnProperty("pagination")) { - var error = $root.cosmos.base.query.v1beta1.PageResponse.verify(message.pagination); - if (error) - return "pagination." + error; - } - if (message.height != null && message.hasOwnProperty("height")) { - var error = $root.ibc.core.client.v1.Height.verify(message.height); - if (error) - return "height." + error; - } return null; }; /** - * Creates a QueryConnectionChannelsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a MsgChannelCloseConfirmResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.channel.v1.QueryConnectionChannelsResponse + * @memberof ibc.core.channel.v1.MsgChannelCloseConfirmResponse * @static * @param {Object.} object Plain object - * @returns {ibc.core.channel.v1.QueryConnectionChannelsResponse} QueryConnectionChannelsResponse + * @returns {ibc.core.channel.v1.MsgChannelCloseConfirmResponse} MsgChannelCloseConfirmResponse */ - QueryConnectionChannelsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.channel.v1.QueryConnectionChannelsResponse) + MsgChannelCloseConfirmResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.channel.v1.MsgChannelCloseConfirmResponse) return object; - var message = new $root.ibc.core.channel.v1.QueryConnectionChannelsResponse(); - if (object.channels) { - if (!Array.isArray(object.channels)) - throw TypeError(".ibc.core.channel.v1.QueryConnectionChannelsResponse.channels: array expected"); - message.channels = []; - for (var i = 0; i < object.channels.length; ++i) { - if (typeof object.channels[i] !== "object") - throw TypeError(".ibc.core.channel.v1.QueryConnectionChannelsResponse.channels: object expected"); - message.channels[i] = $root.ibc.core.channel.v1.IdentifiedChannel.fromObject(object.channels[i]); - } - } - if (object.pagination != null) { - if (typeof object.pagination !== "object") - throw TypeError(".ibc.core.channel.v1.QueryConnectionChannelsResponse.pagination: object expected"); - message.pagination = $root.cosmos.base.query.v1beta1.PageResponse.fromObject(object.pagination); - } - if (object.height != null) { - if (typeof object.height !== "object") - throw TypeError(".ibc.core.channel.v1.QueryConnectionChannelsResponse.height: object expected"); - message.height = $root.ibc.core.client.v1.Height.fromObject(object.height); - } - return message; + return new $root.ibc.core.channel.v1.MsgChannelCloseConfirmResponse(); }; /** - * Creates a plain object from a QueryConnectionChannelsResponse message. Also converts values to other types if specified. + * Creates a plain object from a MsgChannelCloseConfirmResponse message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.channel.v1.QueryConnectionChannelsResponse + * @memberof ibc.core.channel.v1.MsgChannelCloseConfirmResponse * @static - * @param {ibc.core.channel.v1.QueryConnectionChannelsResponse} message QueryConnectionChannelsResponse + * @param {ibc.core.channel.v1.MsgChannelCloseConfirmResponse} message MsgChannelCloseConfirmResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryConnectionChannelsResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.channels = []; - if (options.defaults) { - object.pagination = null; - object.height = null; - } - if (message.channels && message.channels.length) { - object.channels = []; - for (var j = 0; j < message.channels.length; ++j) - object.channels[j] = $root.ibc.core.channel.v1.IdentifiedChannel.toObject(message.channels[j], options); - } - if (message.pagination != null && message.hasOwnProperty("pagination")) - object.pagination = $root.cosmos.base.query.v1beta1.PageResponse.toObject(message.pagination, options); - if (message.height != null && message.hasOwnProperty("height")) - object.height = $root.ibc.core.client.v1.Height.toObject(message.height, options); - return object; + MsgChannelCloseConfirmResponse.toObject = function toObject() { + return {}; }; /** - * Converts this QueryConnectionChannelsResponse to JSON. + * Converts this MsgChannelCloseConfirmResponse to JSON. * @function toJSON - * @memberof ibc.core.channel.v1.QueryConnectionChannelsResponse + * @memberof ibc.core.channel.v1.MsgChannelCloseConfirmResponse * @instance * @returns {Object.} JSON object */ - QueryConnectionChannelsResponse.prototype.toJSON = function toJSON() { + MsgChannelCloseConfirmResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryConnectionChannelsResponse; + return MsgChannelCloseConfirmResponse; })(); - v1.QueryChannelClientStateRequest = (function() { + v1.MsgRecvPacket = (function() { /** - * Properties of a QueryChannelClientStateRequest. + * Properties of a MsgRecvPacket. * @memberof ibc.core.channel.v1 - * @interface IQueryChannelClientStateRequest - * @property {string|null} [port_id] QueryChannelClientStateRequest port_id - * @property {string|null} [channel_id] QueryChannelClientStateRequest channel_id + * @interface IMsgRecvPacket + * @property {ibc.core.channel.v1.IPacket|null} [packet] MsgRecvPacket packet + * @property {Uint8Array|null} [proof_commitment] MsgRecvPacket proof_commitment + * @property {ibc.core.client.v1.IHeight|null} [proof_height] MsgRecvPacket proof_height + * @property {string|null} [signer] MsgRecvPacket signer */ /** - * Constructs a new QueryChannelClientStateRequest. + * Constructs a new MsgRecvPacket. * @memberof ibc.core.channel.v1 - * @classdesc Represents a QueryChannelClientStateRequest. - * @implements IQueryChannelClientStateRequest + * @classdesc Represents a MsgRecvPacket. + * @implements IMsgRecvPacket * @constructor - * @param {ibc.core.channel.v1.IQueryChannelClientStateRequest=} [properties] Properties to set + * @param {ibc.core.channel.v1.IMsgRecvPacket=} [properties] Properties to set */ - function QueryChannelClientStateRequest(properties) { + function MsgRecvPacket(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -42961,76 +49723,102 @@ } /** - * QueryChannelClientStateRequest port_id. - * @member {string} port_id - * @memberof ibc.core.channel.v1.QueryChannelClientStateRequest + * MsgRecvPacket packet. + * @member {ibc.core.channel.v1.IPacket|null|undefined} packet + * @memberof ibc.core.channel.v1.MsgRecvPacket * @instance */ - QueryChannelClientStateRequest.prototype.port_id = ""; + MsgRecvPacket.prototype.packet = null; /** - * QueryChannelClientStateRequest channel_id. - * @member {string} channel_id - * @memberof ibc.core.channel.v1.QueryChannelClientStateRequest + * MsgRecvPacket proof_commitment. + * @member {Uint8Array} proof_commitment + * @memberof ibc.core.channel.v1.MsgRecvPacket + * @instance + */ + MsgRecvPacket.prototype.proof_commitment = $util.newBuffer([]); + + /** + * MsgRecvPacket proof_height. + * @member {ibc.core.client.v1.IHeight|null|undefined} proof_height + * @memberof ibc.core.channel.v1.MsgRecvPacket + * @instance + */ + MsgRecvPacket.prototype.proof_height = null; + + /** + * MsgRecvPacket signer. + * @member {string} signer + * @memberof ibc.core.channel.v1.MsgRecvPacket * @instance */ - QueryChannelClientStateRequest.prototype.channel_id = ""; + MsgRecvPacket.prototype.signer = ""; /** - * Encodes the specified QueryChannelClientStateRequest message. Does not implicitly {@link ibc.core.channel.v1.QueryChannelClientStateRequest.verify|verify} messages. + * Encodes the specified MsgRecvPacket message. Does not implicitly {@link ibc.core.channel.v1.MsgRecvPacket.verify|verify} messages. * @function encode - * @memberof ibc.core.channel.v1.QueryChannelClientStateRequest + * @memberof ibc.core.channel.v1.MsgRecvPacket * @static - * @param {ibc.core.channel.v1.IQueryChannelClientStateRequest} message QueryChannelClientStateRequest message or plain object to encode + * @param {ibc.core.channel.v1.IMsgRecvPacket} message MsgRecvPacket message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryChannelClientStateRequest.encode = function encode(message, writer) { + MsgRecvPacket.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.port_id != null && Object.hasOwnProperty.call(message, "port_id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.port_id); - if (message.channel_id != null && Object.hasOwnProperty.call(message, "channel_id")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.channel_id); + if (message.packet != null && Object.hasOwnProperty.call(message, "packet")) + $root.ibc.core.channel.v1.Packet.encode(message.packet, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.proof_commitment != null && Object.hasOwnProperty.call(message, "proof_commitment")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.proof_commitment); + if (message.proof_height != null && Object.hasOwnProperty.call(message, "proof_height")) + $root.ibc.core.client.v1.Height.encode(message.proof_height, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.signer != null && Object.hasOwnProperty.call(message, "signer")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.signer); return writer; }; /** - * Encodes the specified QueryChannelClientStateRequest message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryChannelClientStateRequest.verify|verify} messages. + * Encodes the specified MsgRecvPacket message, length delimited. Does not implicitly {@link ibc.core.channel.v1.MsgRecvPacket.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.channel.v1.QueryChannelClientStateRequest + * @memberof ibc.core.channel.v1.MsgRecvPacket * @static - * @param {ibc.core.channel.v1.IQueryChannelClientStateRequest} message QueryChannelClientStateRequest message or plain object to encode + * @param {ibc.core.channel.v1.IMsgRecvPacket} message MsgRecvPacket message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryChannelClientStateRequest.encodeDelimited = function encodeDelimited(message, writer) { + MsgRecvPacket.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryChannelClientStateRequest message from the specified reader or buffer. + * Decodes a MsgRecvPacket message from the specified reader or buffer. * @function decode - * @memberof ibc.core.channel.v1.QueryChannelClientStateRequest + * @memberof ibc.core.channel.v1.MsgRecvPacket * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.channel.v1.QueryChannelClientStateRequest} QueryChannelClientStateRequest + * @returns {ibc.core.channel.v1.MsgRecvPacket} MsgRecvPacket * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryChannelClientStateRequest.decode = function decode(reader, length) { + MsgRecvPacket.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.QueryChannelClientStateRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.MsgRecvPacket(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.port_id = reader.string(); + message.packet = $root.ibc.core.channel.v1.Packet.decode(reader, reader.uint32()); break; case 2: - message.channel_id = reader.string(); + message.proof_commitment = reader.bytes(); + break; + case 3: + message.proof_height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); + break; + case 4: + message.signer = reader.string(); break; default: reader.skipType(tag & 7); @@ -43041,118 +49829,151 @@ }; /** - * Decodes a QueryChannelClientStateRequest message from the specified reader or buffer, length delimited. + * Decodes a MsgRecvPacket message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.channel.v1.QueryChannelClientStateRequest + * @memberof ibc.core.channel.v1.MsgRecvPacket * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.channel.v1.QueryChannelClientStateRequest} QueryChannelClientStateRequest + * @returns {ibc.core.channel.v1.MsgRecvPacket} MsgRecvPacket * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryChannelClientStateRequest.decodeDelimited = function decodeDelimited(reader) { + MsgRecvPacket.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryChannelClientStateRequest message. + * Verifies a MsgRecvPacket message. * @function verify - * @memberof ibc.core.channel.v1.QueryChannelClientStateRequest + * @memberof ibc.core.channel.v1.MsgRecvPacket * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryChannelClientStateRequest.verify = function verify(message) { + MsgRecvPacket.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.port_id != null && message.hasOwnProperty("port_id")) - if (!$util.isString(message.port_id)) - return "port_id: string expected"; - if (message.channel_id != null && message.hasOwnProperty("channel_id")) - if (!$util.isString(message.channel_id)) - return "channel_id: string expected"; + if (message.packet != null && message.hasOwnProperty("packet")) { + var error = $root.ibc.core.channel.v1.Packet.verify(message.packet); + if (error) + return "packet." + error; + } + if (message.proof_commitment != null && message.hasOwnProperty("proof_commitment")) + if (!(message.proof_commitment && typeof message.proof_commitment.length === "number" || $util.isString(message.proof_commitment))) + return "proof_commitment: buffer expected"; + if (message.proof_height != null && message.hasOwnProperty("proof_height")) { + var error = $root.ibc.core.client.v1.Height.verify(message.proof_height); + if (error) + return "proof_height." + error; + } + if (message.signer != null && message.hasOwnProperty("signer")) + if (!$util.isString(message.signer)) + return "signer: string expected"; return null; }; /** - * Creates a QueryChannelClientStateRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MsgRecvPacket message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.channel.v1.QueryChannelClientStateRequest + * @memberof ibc.core.channel.v1.MsgRecvPacket * @static * @param {Object.} object Plain object - * @returns {ibc.core.channel.v1.QueryChannelClientStateRequest} QueryChannelClientStateRequest + * @returns {ibc.core.channel.v1.MsgRecvPacket} MsgRecvPacket */ - QueryChannelClientStateRequest.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.channel.v1.QueryChannelClientStateRequest) + MsgRecvPacket.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.channel.v1.MsgRecvPacket) return object; - var message = new $root.ibc.core.channel.v1.QueryChannelClientStateRequest(); - if (object.port_id != null) - message.port_id = String(object.port_id); - if (object.channel_id != null) - message.channel_id = String(object.channel_id); + var message = new $root.ibc.core.channel.v1.MsgRecvPacket(); + if (object.packet != null) { + if (typeof object.packet !== "object") + throw TypeError(".ibc.core.channel.v1.MsgRecvPacket.packet: object expected"); + message.packet = $root.ibc.core.channel.v1.Packet.fromObject(object.packet); + } + if (object.proof_commitment != null) + if (typeof object.proof_commitment === "string") + $util.base64.decode(object.proof_commitment, message.proof_commitment = $util.newBuffer($util.base64.length(object.proof_commitment)), 0); + else if (object.proof_commitment.length) + message.proof_commitment = object.proof_commitment; + if (object.proof_height != null) { + if (typeof object.proof_height !== "object") + throw TypeError(".ibc.core.channel.v1.MsgRecvPacket.proof_height: object expected"); + message.proof_height = $root.ibc.core.client.v1.Height.fromObject(object.proof_height); + } + if (object.signer != null) + message.signer = String(object.signer); return message; }; /** - * Creates a plain object from a QueryChannelClientStateRequest message. Also converts values to other types if specified. + * Creates a plain object from a MsgRecvPacket message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.channel.v1.QueryChannelClientStateRequest + * @memberof ibc.core.channel.v1.MsgRecvPacket * @static - * @param {ibc.core.channel.v1.QueryChannelClientStateRequest} message QueryChannelClientStateRequest + * @param {ibc.core.channel.v1.MsgRecvPacket} message MsgRecvPacket * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryChannelClientStateRequest.toObject = function toObject(message, options) { + MsgRecvPacket.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.port_id = ""; - object.channel_id = ""; + object.packet = null; + if (options.bytes === String) + object.proof_commitment = ""; + else { + object.proof_commitment = []; + if (options.bytes !== Array) + object.proof_commitment = $util.newBuffer(object.proof_commitment); + } + object.proof_height = null; + object.signer = ""; } - if (message.port_id != null && message.hasOwnProperty("port_id")) - object.port_id = message.port_id; - if (message.channel_id != null && message.hasOwnProperty("channel_id")) - object.channel_id = message.channel_id; + if (message.packet != null && message.hasOwnProperty("packet")) + object.packet = $root.ibc.core.channel.v1.Packet.toObject(message.packet, options); + if (message.proof_commitment != null && message.hasOwnProperty("proof_commitment")) + object.proof_commitment = options.bytes === String ? $util.base64.encode(message.proof_commitment, 0, message.proof_commitment.length) : options.bytes === Array ? Array.prototype.slice.call(message.proof_commitment) : message.proof_commitment; + if (message.proof_height != null && message.hasOwnProperty("proof_height")) + object.proof_height = $root.ibc.core.client.v1.Height.toObject(message.proof_height, options); + if (message.signer != null && message.hasOwnProperty("signer")) + object.signer = message.signer; return object; }; /** - * Converts this QueryChannelClientStateRequest to JSON. + * Converts this MsgRecvPacket to JSON. * @function toJSON - * @memberof ibc.core.channel.v1.QueryChannelClientStateRequest + * @memberof ibc.core.channel.v1.MsgRecvPacket * @instance * @returns {Object.} JSON object */ - QueryChannelClientStateRequest.prototype.toJSON = function toJSON() { + MsgRecvPacket.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryChannelClientStateRequest; + return MsgRecvPacket; })(); - v1.QueryChannelClientStateResponse = (function() { + v1.MsgRecvPacketResponse = (function() { /** - * Properties of a QueryChannelClientStateResponse. + * Properties of a MsgRecvPacketResponse. * @memberof ibc.core.channel.v1 - * @interface IQueryChannelClientStateResponse - * @property {ibc.core.client.v1.IIdentifiedClientState|null} [identified_client_state] QueryChannelClientStateResponse identified_client_state - * @property {Uint8Array|null} [proof] QueryChannelClientStateResponse proof - * @property {ibc.core.client.v1.IHeight|null} [proof_height] QueryChannelClientStateResponse proof_height + * @interface IMsgRecvPacketResponse + * @property {ibc.core.channel.v1.ResponseResultType|null} [result] MsgRecvPacketResponse result */ /** - * Constructs a new QueryChannelClientStateResponse. + * Constructs a new MsgRecvPacketResponse. * @memberof ibc.core.channel.v1 - * @classdesc Represents a QueryChannelClientStateResponse. - * @implements IQueryChannelClientStateResponse + * @classdesc Represents a MsgRecvPacketResponse. + * @implements IMsgRecvPacketResponse * @constructor - * @param {ibc.core.channel.v1.IQueryChannelClientStateResponse=} [properties] Properties to set + * @param {ibc.core.channel.v1.IMsgRecvPacketResponse=} [properties] Properties to set */ - function QueryChannelClientStateResponse(properties) { + function MsgRecvPacketResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -43160,89 +49981,63 @@ } /** - * QueryChannelClientStateResponse identified_client_state. - * @member {ibc.core.client.v1.IIdentifiedClientState|null|undefined} identified_client_state - * @memberof ibc.core.channel.v1.QueryChannelClientStateResponse - * @instance - */ - QueryChannelClientStateResponse.prototype.identified_client_state = null; - - /** - * QueryChannelClientStateResponse proof. - * @member {Uint8Array} proof - * @memberof ibc.core.channel.v1.QueryChannelClientStateResponse - * @instance - */ - QueryChannelClientStateResponse.prototype.proof = $util.newBuffer([]); - - /** - * QueryChannelClientStateResponse proof_height. - * @member {ibc.core.client.v1.IHeight|null|undefined} proof_height - * @memberof ibc.core.channel.v1.QueryChannelClientStateResponse + * MsgRecvPacketResponse result. + * @member {ibc.core.channel.v1.ResponseResultType} result + * @memberof ibc.core.channel.v1.MsgRecvPacketResponse * @instance */ - QueryChannelClientStateResponse.prototype.proof_height = null; + MsgRecvPacketResponse.prototype.result = 0; /** - * Encodes the specified QueryChannelClientStateResponse message. Does not implicitly {@link ibc.core.channel.v1.QueryChannelClientStateResponse.verify|verify} messages. + * Encodes the specified MsgRecvPacketResponse message. Does not implicitly {@link ibc.core.channel.v1.MsgRecvPacketResponse.verify|verify} messages. * @function encode - * @memberof ibc.core.channel.v1.QueryChannelClientStateResponse + * @memberof ibc.core.channel.v1.MsgRecvPacketResponse * @static - * @param {ibc.core.channel.v1.IQueryChannelClientStateResponse} message QueryChannelClientStateResponse message or plain object to encode + * @param {ibc.core.channel.v1.IMsgRecvPacketResponse} message MsgRecvPacketResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryChannelClientStateResponse.encode = function encode(message, writer) { + MsgRecvPacketResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.identified_client_state != null && Object.hasOwnProperty.call(message, "identified_client_state")) - $root.ibc.core.client.v1.IdentifiedClientState.encode(message.identified_client_state, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.proof != null && Object.hasOwnProperty.call(message, "proof")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.proof); - if (message.proof_height != null && Object.hasOwnProperty.call(message, "proof_height")) - $root.ibc.core.client.v1.Height.encode(message.proof_height, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.result != null && Object.hasOwnProperty.call(message, "result")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.result); return writer; }; /** - * Encodes the specified QueryChannelClientStateResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryChannelClientStateResponse.verify|verify} messages. + * Encodes the specified MsgRecvPacketResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.MsgRecvPacketResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.channel.v1.QueryChannelClientStateResponse + * @memberof ibc.core.channel.v1.MsgRecvPacketResponse * @static - * @param {ibc.core.channel.v1.IQueryChannelClientStateResponse} message QueryChannelClientStateResponse message or plain object to encode + * @param {ibc.core.channel.v1.IMsgRecvPacketResponse} message MsgRecvPacketResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryChannelClientStateResponse.encodeDelimited = function encodeDelimited(message, writer) { + MsgRecvPacketResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryChannelClientStateResponse message from the specified reader or buffer. + * Decodes a MsgRecvPacketResponse message from the specified reader or buffer. * @function decode - * @memberof ibc.core.channel.v1.QueryChannelClientStateResponse + * @memberof ibc.core.channel.v1.MsgRecvPacketResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.channel.v1.QueryChannelClientStateResponse} QueryChannelClientStateResponse + * @returns {ibc.core.channel.v1.MsgRecvPacketResponse} MsgRecvPacketResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryChannelClientStateResponse.decode = function decode(reader, length) { + MsgRecvPacketResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.QueryChannelClientStateResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.MsgRecvPacketResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.identified_client_state = $root.ibc.core.client.v1.IdentifiedClientState.decode(reader, reader.uint32()); - break; - case 2: - message.proof = reader.bytes(); - break; - case 3: - message.proof_height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); + message.result = reader.int32(); break; default: reader.skipType(tag & 7); @@ -43253,146 +50048,129 @@ }; /** - * Decodes a QueryChannelClientStateResponse message from the specified reader or buffer, length delimited. + * Decodes a MsgRecvPacketResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.channel.v1.QueryChannelClientStateResponse + * @memberof ibc.core.channel.v1.MsgRecvPacketResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.channel.v1.QueryChannelClientStateResponse} QueryChannelClientStateResponse + * @returns {ibc.core.channel.v1.MsgRecvPacketResponse} MsgRecvPacketResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryChannelClientStateResponse.decodeDelimited = function decodeDelimited(reader) { + MsgRecvPacketResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryChannelClientStateResponse message. + * Verifies a MsgRecvPacketResponse message. * @function verify - * @memberof ibc.core.channel.v1.QueryChannelClientStateResponse + * @memberof ibc.core.channel.v1.MsgRecvPacketResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryChannelClientStateResponse.verify = function verify(message) { + MsgRecvPacketResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.identified_client_state != null && message.hasOwnProperty("identified_client_state")) { - var error = $root.ibc.core.client.v1.IdentifiedClientState.verify(message.identified_client_state); - if (error) - return "identified_client_state." + error; - } - if (message.proof != null && message.hasOwnProperty("proof")) - if (!(message.proof && typeof message.proof.length === "number" || $util.isString(message.proof))) - return "proof: buffer expected"; - if (message.proof_height != null && message.hasOwnProperty("proof_height")) { - var error = $root.ibc.core.client.v1.Height.verify(message.proof_height); - if (error) - return "proof_height." + error; - } + if (message.result != null && message.hasOwnProperty("result")) + switch (message.result) { + default: + return "result: enum value expected"; + case 0: + case 1: + case 2: + break; + } return null; }; /** - * Creates a QueryChannelClientStateResponse message from a plain object. Also converts values to their respective internal types. + * Creates a MsgRecvPacketResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.channel.v1.QueryChannelClientStateResponse + * @memberof ibc.core.channel.v1.MsgRecvPacketResponse * @static * @param {Object.} object Plain object - * @returns {ibc.core.channel.v1.QueryChannelClientStateResponse} QueryChannelClientStateResponse + * @returns {ibc.core.channel.v1.MsgRecvPacketResponse} MsgRecvPacketResponse */ - QueryChannelClientStateResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.channel.v1.QueryChannelClientStateResponse) + MsgRecvPacketResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.channel.v1.MsgRecvPacketResponse) return object; - var message = new $root.ibc.core.channel.v1.QueryChannelClientStateResponse(); - if (object.identified_client_state != null) { - if (typeof object.identified_client_state !== "object") - throw TypeError(".ibc.core.channel.v1.QueryChannelClientStateResponse.identified_client_state: object expected"); - message.identified_client_state = $root.ibc.core.client.v1.IdentifiedClientState.fromObject(object.identified_client_state); - } - if (object.proof != null) - if (typeof object.proof === "string") - $util.base64.decode(object.proof, message.proof = $util.newBuffer($util.base64.length(object.proof)), 0); - else if (object.proof.length) - message.proof = object.proof; - if (object.proof_height != null) { - if (typeof object.proof_height !== "object") - throw TypeError(".ibc.core.channel.v1.QueryChannelClientStateResponse.proof_height: object expected"); - message.proof_height = $root.ibc.core.client.v1.Height.fromObject(object.proof_height); + var message = new $root.ibc.core.channel.v1.MsgRecvPacketResponse(); + switch (object.result) { + case "RESPONSE_RESULT_TYPE_UNSPECIFIED": + case 0: + message.result = 0; + break; + case "RESPONSE_RESULT_TYPE_NOOP": + case 1: + message.result = 1; + break; + case "RESPONSE_RESULT_TYPE_SUCCESS": + case 2: + message.result = 2; + break; } return message; }; /** - * Creates a plain object from a QueryChannelClientStateResponse message. Also converts values to other types if specified. + * Creates a plain object from a MsgRecvPacketResponse message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.channel.v1.QueryChannelClientStateResponse + * @memberof ibc.core.channel.v1.MsgRecvPacketResponse * @static - * @param {ibc.core.channel.v1.QueryChannelClientStateResponse} message QueryChannelClientStateResponse + * @param {ibc.core.channel.v1.MsgRecvPacketResponse} message MsgRecvPacketResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryChannelClientStateResponse.toObject = function toObject(message, options) { + MsgRecvPacketResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.identified_client_state = null; - if (options.bytes === String) - object.proof = ""; - else { - object.proof = []; - if (options.bytes !== Array) - object.proof = $util.newBuffer(object.proof); - } - object.proof_height = null; - } - if (message.identified_client_state != null && message.hasOwnProperty("identified_client_state")) - object.identified_client_state = $root.ibc.core.client.v1.IdentifiedClientState.toObject(message.identified_client_state, options); - if (message.proof != null && message.hasOwnProperty("proof")) - object.proof = options.bytes === String ? $util.base64.encode(message.proof, 0, message.proof.length) : options.bytes === Array ? Array.prototype.slice.call(message.proof) : message.proof; - if (message.proof_height != null && message.hasOwnProperty("proof_height")) - object.proof_height = $root.ibc.core.client.v1.Height.toObject(message.proof_height, options); + if (options.defaults) + object.result = options.enums === String ? "RESPONSE_RESULT_TYPE_UNSPECIFIED" : 0; + if (message.result != null && message.hasOwnProperty("result")) + object.result = options.enums === String ? $root.ibc.core.channel.v1.ResponseResultType[message.result] : message.result; return object; }; /** - * Converts this QueryChannelClientStateResponse to JSON. + * Converts this MsgRecvPacketResponse to JSON. * @function toJSON - * @memberof ibc.core.channel.v1.QueryChannelClientStateResponse + * @memberof ibc.core.channel.v1.MsgRecvPacketResponse * @instance * @returns {Object.} JSON object */ - QueryChannelClientStateResponse.prototype.toJSON = function toJSON() { + MsgRecvPacketResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryChannelClientStateResponse; + return MsgRecvPacketResponse; })(); - v1.QueryChannelConsensusStateRequest = (function() { + v1.MsgTimeout = (function() { /** - * Properties of a QueryChannelConsensusStateRequest. + * Properties of a MsgTimeout. * @memberof ibc.core.channel.v1 - * @interface IQueryChannelConsensusStateRequest - * @property {string|null} [port_id] QueryChannelConsensusStateRequest port_id - * @property {string|null} [channel_id] QueryChannelConsensusStateRequest channel_id - * @property {Long|null} [revision_number] QueryChannelConsensusStateRequest revision_number - * @property {Long|null} [revision_height] QueryChannelConsensusStateRequest revision_height + * @interface IMsgTimeout + * @property {ibc.core.channel.v1.IPacket|null} [packet] MsgTimeout packet + * @property {Uint8Array|null} [proof_unreceived] MsgTimeout proof_unreceived + * @property {ibc.core.client.v1.IHeight|null} [proof_height] MsgTimeout proof_height + * @property {Long|null} [next_sequence_recv] MsgTimeout next_sequence_recv + * @property {string|null} [signer] MsgTimeout signer */ /** - * Constructs a new QueryChannelConsensusStateRequest. + * Constructs a new MsgTimeout. * @memberof ibc.core.channel.v1 - * @classdesc Represents a QueryChannelConsensusStateRequest. - * @implements IQueryChannelConsensusStateRequest + * @classdesc Represents a MsgTimeout. + * @implements IMsgTimeout * @constructor - * @param {ibc.core.channel.v1.IQueryChannelConsensusStateRequest=} [properties] Properties to set + * @param {ibc.core.channel.v1.IMsgTimeout=} [properties] Properties to set */ - function QueryChannelConsensusStateRequest(properties) { + function MsgTimeout(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -43400,102 +50178,115 @@ } /** - * QueryChannelConsensusStateRequest port_id. - * @member {string} port_id - * @memberof ibc.core.channel.v1.QueryChannelConsensusStateRequest + * MsgTimeout packet. + * @member {ibc.core.channel.v1.IPacket|null|undefined} packet + * @memberof ibc.core.channel.v1.MsgTimeout * @instance */ - QueryChannelConsensusStateRequest.prototype.port_id = ""; + MsgTimeout.prototype.packet = null; /** - * QueryChannelConsensusStateRequest channel_id. - * @member {string} channel_id - * @memberof ibc.core.channel.v1.QueryChannelConsensusStateRequest + * MsgTimeout proof_unreceived. + * @member {Uint8Array} proof_unreceived + * @memberof ibc.core.channel.v1.MsgTimeout * @instance */ - QueryChannelConsensusStateRequest.prototype.channel_id = ""; + MsgTimeout.prototype.proof_unreceived = $util.newBuffer([]); /** - * QueryChannelConsensusStateRequest revision_number. - * @member {Long} revision_number - * @memberof ibc.core.channel.v1.QueryChannelConsensusStateRequest + * MsgTimeout proof_height. + * @member {ibc.core.client.v1.IHeight|null|undefined} proof_height + * @memberof ibc.core.channel.v1.MsgTimeout * @instance */ - QueryChannelConsensusStateRequest.prototype.revision_number = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + MsgTimeout.prototype.proof_height = null; /** - * QueryChannelConsensusStateRequest revision_height. - * @member {Long} revision_height - * @memberof ibc.core.channel.v1.QueryChannelConsensusStateRequest + * MsgTimeout next_sequence_recv. + * @member {Long} next_sequence_recv + * @memberof ibc.core.channel.v1.MsgTimeout * @instance */ - QueryChannelConsensusStateRequest.prototype.revision_height = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + MsgTimeout.prototype.next_sequence_recv = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** - * Encodes the specified QueryChannelConsensusStateRequest message. Does not implicitly {@link ibc.core.channel.v1.QueryChannelConsensusStateRequest.verify|verify} messages. + * MsgTimeout signer. + * @member {string} signer + * @memberof ibc.core.channel.v1.MsgTimeout + * @instance + */ + MsgTimeout.prototype.signer = ""; + + /** + * Encodes the specified MsgTimeout message. Does not implicitly {@link ibc.core.channel.v1.MsgTimeout.verify|verify} messages. * @function encode - * @memberof ibc.core.channel.v1.QueryChannelConsensusStateRequest + * @memberof ibc.core.channel.v1.MsgTimeout * @static - * @param {ibc.core.channel.v1.IQueryChannelConsensusStateRequest} message QueryChannelConsensusStateRequest message or plain object to encode + * @param {ibc.core.channel.v1.IMsgTimeout} message MsgTimeout message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryChannelConsensusStateRequest.encode = function encode(message, writer) { + MsgTimeout.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.port_id != null && Object.hasOwnProperty.call(message, "port_id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.port_id); - if (message.channel_id != null && Object.hasOwnProperty.call(message, "channel_id")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.channel_id); - if (message.revision_number != null && Object.hasOwnProperty.call(message, "revision_number")) - writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.revision_number); - if (message.revision_height != null && Object.hasOwnProperty.call(message, "revision_height")) - writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.revision_height); + if (message.packet != null && Object.hasOwnProperty.call(message, "packet")) + $root.ibc.core.channel.v1.Packet.encode(message.packet, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.proof_unreceived != null && Object.hasOwnProperty.call(message, "proof_unreceived")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.proof_unreceived); + if (message.proof_height != null && Object.hasOwnProperty.call(message, "proof_height")) + $root.ibc.core.client.v1.Height.encode(message.proof_height, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.next_sequence_recv != null && Object.hasOwnProperty.call(message, "next_sequence_recv")) + writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.next_sequence_recv); + if (message.signer != null && Object.hasOwnProperty.call(message, "signer")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.signer); return writer; }; /** - * Encodes the specified QueryChannelConsensusStateRequest message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryChannelConsensusStateRequest.verify|verify} messages. + * Encodes the specified MsgTimeout message, length delimited. Does not implicitly {@link ibc.core.channel.v1.MsgTimeout.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.channel.v1.QueryChannelConsensusStateRequest + * @memberof ibc.core.channel.v1.MsgTimeout * @static - * @param {ibc.core.channel.v1.IQueryChannelConsensusStateRequest} message QueryChannelConsensusStateRequest message or plain object to encode + * @param {ibc.core.channel.v1.IMsgTimeout} message MsgTimeout message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryChannelConsensusStateRequest.encodeDelimited = function encodeDelimited(message, writer) { + MsgTimeout.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryChannelConsensusStateRequest message from the specified reader or buffer. + * Decodes a MsgTimeout message from the specified reader or buffer. * @function decode - * @memberof ibc.core.channel.v1.QueryChannelConsensusStateRequest + * @memberof ibc.core.channel.v1.MsgTimeout * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.channel.v1.QueryChannelConsensusStateRequest} QueryChannelConsensusStateRequest + * @returns {ibc.core.channel.v1.MsgTimeout} MsgTimeout * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryChannelConsensusStateRequest.decode = function decode(reader, length) { + MsgTimeout.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.QueryChannelConsensusStateRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.MsgTimeout(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.port_id = reader.string(); + message.packet = $root.ibc.core.channel.v1.Packet.decode(reader, reader.uint32()); break; case 2: - message.channel_id = reader.string(); + message.proof_unreceived = reader.bytes(); break; case 3: - message.revision_number = reader.uint64(); + message.proof_height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); break; case 4: - message.revision_height = reader.uint64(); + message.next_sequence_recv = reader.uint64(); + break; + case 5: + message.signer = reader.string(); break; default: reader.skipType(tag & 7); @@ -43506,163 +50297,173 @@ }; /** - * Decodes a QueryChannelConsensusStateRequest message from the specified reader or buffer, length delimited. + * Decodes a MsgTimeout message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.channel.v1.QueryChannelConsensusStateRequest + * @memberof ibc.core.channel.v1.MsgTimeout * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.channel.v1.QueryChannelConsensusStateRequest} QueryChannelConsensusStateRequest + * @returns {ibc.core.channel.v1.MsgTimeout} MsgTimeout * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryChannelConsensusStateRequest.decodeDelimited = function decodeDelimited(reader) { + MsgTimeout.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryChannelConsensusStateRequest message. + * Verifies a MsgTimeout message. * @function verify - * @memberof ibc.core.channel.v1.QueryChannelConsensusStateRequest + * @memberof ibc.core.channel.v1.MsgTimeout * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryChannelConsensusStateRequest.verify = function verify(message) { + MsgTimeout.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.port_id != null && message.hasOwnProperty("port_id")) - if (!$util.isString(message.port_id)) - return "port_id: string expected"; - if (message.channel_id != null && message.hasOwnProperty("channel_id")) - if (!$util.isString(message.channel_id)) - return "channel_id: string expected"; - if (message.revision_number != null && message.hasOwnProperty("revision_number")) - if (!$util.isInteger(message.revision_number) && !(message.revision_number && $util.isInteger(message.revision_number.low) && $util.isInteger(message.revision_number.high))) - return "revision_number: integer|Long expected"; - if (message.revision_height != null && message.hasOwnProperty("revision_height")) - if (!$util.isInteger(message.revision_height) && !(message.revision_height && $util.isInteger(message.revision_height.low) && $util.isInteger(message.revision_height.high))) - return "revision_height: integer|Long expected"; + if (message.packet != null && message.hasOwnProperty("packet")) { + var error = $root.ibc.core.channel.v1.Packet.verify(message.packet); + if (error) + return "packet." + error; + } + if (message.proof_unreceived != null && message.hasOwnProperty("proof_unreceived")) + if (!(message.proof_unreceived && typeof message.proof_unreceived.length === "number" || $util.isString(message.proof_unreceived))) + return "proof_unreceived: buffer expected"; + if (message.proof_height != null && message.hasOwnProperty("proof_height")) { + var error = $root.ibc.core.client.v1.Height.verify(message.proof_height); + if (error) + return "proof_height." + error; + } + if (message.next_sequence_recv != null && message.hasOwnProperty("next_sequence_recv")) + if (!$util.isInteger(message.next_sequence_recv) && !(message.next_sequence_recv && $util.isInteger(message.next_sequence_recv.low) && $util.isInteger(message.next_sequence_recv.high))) + return "next_sequence_recv: integer|Long expected"; + if (message.signer != null && message.hasOwnProperty("signer")) + if (!$util.isString(message.signer)) + return "signer: string expected"; return null; }; /** - * Creates a QueryChannelConsensusStateRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MsgTimeout message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.channel.v1.QueryChannelConsensusStateRequest + * @memberof ibc.core.channel.v1.MsgTimeout * @static * @param {Object.} object Plain object - * @returns {ibc.core.channel.v1.QueryChannelConsensusStateRequest} QueryChannelConsensusStateRequest + * @returns {ibc.core.channel.v1.MsgTimeout} MsgTimeout */ - QueryChannelConsensusStateRequest.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.channel.v1.QueryChannelConsensusStateRequest) + MsgTimeout.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.channel.v1.MsgTimeout) return object; - var message = new $root.ibc.core.channel.v1.QueryChannelConsensusStateRequest(); - if (object.port_id != null) - message.port_id = String(object.port_id); - if (object.channel_id != null) - message.channel_id = String(object.channel_id); - if (object.revision_number != null) - if ($util.Long) - (message.revision_number = $util.Long.fromValue(object.revision_number)).unsigned = true; - else if (typeof object.revision_number === "string") - message.revision_number = parseInt(object.revision_number, 10); - else if (typeof object.revision_number === "number") - message.revision_number = object.revision_number; - else if (typeof object.revision_number === "object") - message.revision_number = new $util.LongBits(object.revision_number.low >>> 0, object.revision_number.high >>> 0).toNumber(true); - if (object.revision_height != null) + var message = new $root.ibc.core.channel.v1.MsgTimeout(); + if (object.packet != null) { + if (typeof object.packet !== "object") + throw TypeError(".ibc.core.channel.v1.MsgTimeout.packet: object expected"); + message.packet = $root.ibc.core.channel.v1.Packet.fromObject(object.packet); + } + if (object.proof_unreceived != null) + if (typeof object.proof_unreceived === "string") + $util.base64.decode(object.proof_unreceived, message.proof_unreceived = $util.newBuffer($util.base64.length(object.proof_unreceived)), 0); + else if (object.proof_unreceived.length) + message.proof_unreceived = object.proof_unreceived; + if (object.proof_height != null) { + if (typeof object.proof_height !== "object") + throw TypeError(".ibc.core.channel.v1.MsgTimeout.proof_height: object expected"); + message.proof_height = $root.ibc.core.client.v1.Height.fromObject(object.proof_height); + } + if (object.next_sequence_recv != null) if ($util.Long) - (message.revision_height = $util.Long.fromValue(object.revision_height)).unsigned = true; - else if (typeof object.revision_height === "string") - message.revision_height = parseInt(object.revision_height, 10); - else if (typeof object.revision_height === "number") - message.revision_height = object.revision_height; - else if (typeof object.revision_height === "object") - message.revision_height = new $util.LongBits(object.revision_height.low >>> 0, object.revision_height.high >>> 0).toNumber(true); + (message.next_sequence_recv = $util.Long.fromValue(object.next_sequence_recv)).unsigned = true; + else if (typeof object.next_sequence_recv === "string") + message.next_sequence_recv = parseInt(object.next_sequence_recv, 10); + else if (typeof object.next_sequence_recv === "number") + message.next_sequence_recv = object.next_sequence_recv; + else if (typeof object.next_sequence_recv === "object") + message.next_sequence_recv = new $util.LongBits(object.next_sequence_recv.low >>> 0, object.next_sequence_recv.high >>> 0).toNumber(true); + if (object.signer != null) + message.signer = String(object.signer); return message; }; /** - * Creates a plain object from a QueryChannelConsensusStateRequest message. Also converts values to other types if specified. + * Creates a plain object from a MsgTimeout message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.channel.v1.QueryChannelConsensusStateRequest + * @memberof ibc.core.channel.v1.MsgTimeout * @static - * @param {ibc.core.channel.v1.QueryChannelConsensusStateRequest} message QueryChannelConsensusStateRequest + * @param {ibc.core.channel.v1.MsgTimeout} message MsgTimeout * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryChannelConsensusStateRequest.toObject = function toObject(message, options) { + MsgTimeout.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.port_id = ""; - object.channel_id = ""; - if ($util.Long) { - var long = new $util.Long(0, 0, true); - object.revision_number = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.revision_number = options.longs === String ? "0" : 0; + object.packet = null; + if (options.bytes === String) + object.proof_unreceived = ""; + else { + object.proof_unreceived = []; + if (options.bytes !== Array) + object.proof_unreceived = $util.newBuffer(object.proof_unreceived); + } + object.proof_height = null; if ($util.Long) { var long = new $util.Long(0, 0, true); - object.revision_height = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + object.next_sequence_recv = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.revision_height = options.longs === String ? "0" : 0; + object.next_sequence_recv = options.longs === String ? "0" : 0; + object.signer = ""; } - if (message.port_id != null && message.hasOwnProperty("port_id")) - object.port_id = message.port_id; - if (message.channel_id != null && message.hasOwnProperty("channel_id")) - object.channel_id = message.channel_id; - if (message.revision_number != null && message.hasOwnProperty("revision_number")) - if (typeof message.revision_number === "number") - object.revision_number = options.longs === String ? String(message.revision_number) : message.revision_number; - else - object.revision_number = options.longs === String ? $util.Long.prototype.toString.call(message.revision_number) : options.longs === Number ? new $util.LongBits(message.revision_number.low >>> 0, message.revision_number.high >>> 0).toNumber(true) : message.revision_number; - if (message.revision_height != null && message.hasOwnProperty("revision_height")) - if (typeof message.revision_height === "number") - object.revision_height = options.longs === String ? String(message.revision_height) : message.revision_height; + if (message.packet != null && message.hasOwnProperty("packet")) + object.packet = $root.ibc.core.channel.v1.Packet.toObject(message.packet, options); + if (message.proof_unreceived != null && message.hasOwnProperty("proof_unreceived")) + object.proof_unreceived = options.bytes === String ? $util.base64.encode(message.proof_unreceived, 0, message.proof_unreceived.length) : options.bytes === Array ? Array.prototype.slice.call(message.proof_unreceived) : message.proof_unreceived; + if (message.proof_height != null && message.hasOwnProperty("proof_height")) + object.proof_height = $root.ibc.core.client.v1.Height.toObject(message.proof_height, options); + if (message.next_sequence_recv != null && message.hasOwnProperty("next_sequence_recv")) + if (typeof message.next_sequence_recv === "number") + object.next_sequence_recv = options.longs === String ? String(message.next_sequence_recv) : message.next_sequence_recv; else - object.revision_height = options.longs === String ? $util.Long.prototype.toString.call(message.revision_height) : options.longs === Number ? new $util.LongBits(message.revision_height.low >>> 0, message.revision_height.high >>> 0).toNumber(true) : message.revision_height; + object.next_sequence_recv = options.longs === String ? $util.Long.prototype.toString.call(message.next_sequence_recv) : options.longs === Number ? new $util.LongBits(message.next_sequence_recv.low >>> 0, message.next_sequence_recv.high >>> 0).toNumber(true) : message.next_sequence_recv; + if (message.signer != null && message.hasOwnProperty("signer")) + object.signer = message.signer; return object; }; /** - * Converts this QueryChannelConsensusStateRequest to JSON. + * Converts this MsgTimeout to JSON. * @function toJSON - * @memberof ibc.core.channel.v1.QueryChannelConsensusStateRequest + * @memberof ibc.core.channel.v1.MsgTimeout * @instance * @returns {Object.} JSON object */ - QueryChannelConsensusStateRequest.prototype.toJSON = function toJSON() { + MsgTimeout.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryChannelConsensusStateRequest; + return MsgTimeout; })(); - v1.QueryChannelConsensusStateResponse = (function() { + v1.MsgTimeoutResponse = (function() { /** - * Properties of a QueryChannelConsensusStateResponse. + * Properties of a MsgTimeoutResponse. * @memberof ibc.core.channel.v1 - * @interface IQueryChannelConsensusStateResponse - * @property {google.protobuf.IAny|null} [consensus_state] QueryChannelConsensusStateResponse consensus_state - * @property {string|null} [client_id] QueryChannelConsensusStateResponse client_id - * @property {Uint8Array|null} [proof] QueryChannelConsensusStateResponse proof - * @property {ibc.core.client.v1.IHeight|null} [proof_height] QueryChannelConsensusStateResponse proof_height + * @interface IMsgTimeoutResponse + * @property {ibc.core.channel.v1.ResponseResultType|null} [result] MsgTimeoutResponse result */ /** - * Constructs a new QueryChannelConsensusStateResponse. + * Constructs a new MsgTimeoutResponse. * @memberof ibc.core.channel.v1 - * @classdesc Represents a QueryChannelConsensusStateResponse. - * @implements IQueryChannelConsensusStateResponse + * @classdesc Represents a MsgTimeoutResponse. + * @implements IMsgTimeoutResponse * @constructor - * @param {ibc.core.channel.v1.IQueryChannelConsensusStateResponse=} [properties] Properties to set + * @param {ibc.core.channel.v1.IMsgTimeoutResponse=} [properties] Properties to set */ - function QueryChannelConsensusStateResponse(properties) { + function MsgTimeoutResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -43670,102 +50471,63 @@ } /** - * QueryChannelConsensusStateResponse consensus_state. - * @member {google.protobuf.IAny|null|undefined} consensus_state - * @memberof ibc.core.channel.v1.QueryChannelConsensusStateResponse - * @instance - */ - QueryChannelConsensusStateResponse.prototype.consensus_state = null; - - /** - * QueryChannelConsensusStateResponse client_id. - * @member {string} client_id - * @memberof ibc.core.channel.v1.QueryChannelConsensusStateResponse - * @instance - */ - QueryChannelConsensusStateResponse.prototype.client_id = ""; - - /** - * QueryChannelConsensusStateResponse proof. - * @member {Uint8Array} proof - * @memberof ibc.core.channel.v1.QueryChannelConsensusStateResponse - * @instance - */ - QueryChannelConsensusStateResponse.prototype.proof = $util.newBuffer([]); - - /** - * QueryChannelConsensusStateResponse proof_height. - * @member {ibc.core.client.v1.IHeight|null|undefined} proof_height - * @memberof ibc.core.channel.v1.QueryChannelConsensusStateResponse + * MsgTimeoutResponse result. + * @member {ibc.core.channel.v1.ResponseResultType} result + * @memberof ibc.core.channel.v1.MsgTimeoutResponse * @instance */ - QueryChannelConsensusStateResponse.prototype.proof_height = null; + MsgTimeoutResponse.prototype.result = 0; /** - * Encodes the specified QueryChannelConsensusStateResponse message. Does not implicitly {@link ibc.core.channel.v1.QueryChannelConsensusStateResponse.verify|verify} messages. + * Encodes the specified MsgTimeoutResponse message. Does not implicitly {@link ibc.core.channel.v1.MsgTimeoutResponse.verify|verify} messages. * @function encode - * @memberof ibc.core.channel.v1.QueryChannelConsensusStateResponse + * @memberof ibc.core.channel.v1.MsgTimeoutResponse * @static - * @param {ibc.core.channel.v1.IQueryChannelConsensusStateResponse} message QueryChannelConsensusStateResponse message or plain object to encode + * @param {ibc.core.channel.v1.IMsgTimeoutResponse} message MsgTimeoutResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryChannelConsensusStateResponse.encode = function encode(message, writer) { + MsgTimeoutResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.consensus_state != null && Object.hasOwnProperty.call(message, "consensus_state")) - $root.google.protobuf.Any.encode(message.consensus_state, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.client_id != null && Object.hasOwnProperty.call(message, "client_id")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.client_id); - if (message.proof != null && Object.hasOwnProperty.call(message, "proof")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.proof); - if (message.proof_height != null && Object.hasOwnProperty.call(message, "proof_height")) - $root.ibc.core.client.v1.Height.encode(message.proof_height, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.result != null && Object.hasOwnProperty.call(message, "result")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.result); return writer; }; /** - * Encodes the specified QueryChannelConsensusStateResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryChannelConsensusStateResponse.verify|verify} messages. + * Encodes the specified MsgTimeoutResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.MsgTimeoutResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.channel.v1.QueryChannelConsensusStateResponse + * @memberof ibc.core.channel.v1.MsgTimeoutResponse * @static - * @param {ibc.core.channel.v1.IQueryChannelConsensusStateResponse} message QueryChannelConsensusStateResponse message or plain object to encode + * @param {ibc.core.channel.v1.IMsgTimeoutResponse} message MsgTimeoutResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryChannelConsensusStateResponse.encodeDelimited = function encodeDelimited(message, writer) { + MsgTimeoutResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryChannelConsensusStateResponse message from the specified reader or buffer. + * Decodes a MsgTimeoutResponse message from the specified reader or buffer. * @function decode - * @memberof ibc.core.channel.v1.QueryChannelConsensusStateResponse + * @memberof ibc.core.channel.v1.MsgTimeoutResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.channel.v1.QueryChannelConsensusStateResponse} QueryChannelConsensusStateResponse + * @returns {ibc.core.channel.v1.MsgTimeoutResponse} MsgTimeoutResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryChannelConsensusStateResponse.decode = function decode(reader, length) { + MsgTimeoutResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.QueryChannelConsensusStateResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.MsgTimeoutResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.consensus_state = $root.google.protobuf.Any.decode(reader, reader.uint32()); - break; - case 2: - message.client_id = reader.string(); - break; - case 3: - message.proof = reader.bytes(); - break; - case 4: - message.proof_height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); + message.result = reader.int32(); break; default: reader.skipType(tag & 7); @@ -43776,153 +50538,130 @@ }; /** - * Decodes a QueryChannelConsensusStateResponse message from the specified reader or buffer, length delimited. + * Decodes a MsgTimeoutResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.channel.v1.QueryChannelConsensusStateResponse + * @memberof ibc.core.channel.v1.MsgTimeoutResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.channel.v1.QueryChannelConsensusStateResponse} QueryChannelConsensusStateResponse + * @returns {ibc.core.channel.v1.MsgTimeoutResponse} MsgTimeoutResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryChannelConsensusStateResponse.decodeDelimited = function decodeDelimited(reader) { + MsgTimeoutResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryChannelConsensusStateResponse message. + * Verifies a MsgTimeoutResponse message. * @function verify - * @memberof ibc.core.channel.v1.QueryChannelConsensusStateResponse + * @memberof ibc.core.channel.v1.MsgTimeoutResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryChannelConsensusStateResponse.verify = function verify(message) { + MsgTimeoutResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.consensus_state != null && message.hasOwnProperty("consensus_state")) { - var error = $root.google.protobuf.Any.verify(message.consensus_state); - if (error) - return "consensus_state." + error; - } - if (message.client_id != null && message.hasOwnProperty("client_id")) - if (!$util.isString(message.client_id)) - return "client_id: string expected"; - if (message.proof != null && message.hasOwnProperty("proof")) - if (!(message.proof && typeof message.proof.length === "number" || $util.isString(message.proof))) - return "proof: buffer expected"; - if (message.proof_height != null && message.hasOwnProperty("proof_height")) { - var error = $root.ibc.core.client.v1.Height.verify(message.proof_height); - if (error) - return "proof_height." + error; - } + if (message.result != null && message.hasOwnProperty("result")) + switch (message.result) { + default: + return "result: enum value expected"; + case 0: + case 1: + case 2: + break; + } return null; }; /** - * Creates a QueryChannelConsensusStateResponse message from a plain object. Also converts values to their respective internal types. + * Creates a MsgTimeoutResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.channel.v1.QueryChannelConsensusStateResponse + * @memberof ibc.core.channel.v1.MsgTimeoutResponse * @static * @param {Object.} object Plain object - * @returns {ibc.core.channel.v1.QueryChannelConsensusStateResponse} QueryChannelConsensusStateResponse + * @returns {ibc.core.channel.v1.MsgTimeoutResponse} MsgTimeoutResponse */ - QueryChannelConsensusStateResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.channel.v1.QueryChannelConsensusStateResponse) + MsgTimeoutResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.channel.v1.MsgTimeoutResponse) return object; - var message = new $root.ibc.core.channel.v1.QueryChannelConsensusStateResponse(); - if (object.consensus_state != null) { - if (typeof object.consensus_state !== "object") - throw TypeError(".ibc.core.channel.v1.QueryChannelConsensusStateResponse.consensus_state: object expected"); - message.consensus_state = $root.google.protobuf.Any.fromObject(object.consensus_state); - } - if (object.client_id != null) - message.client_id = String(object.client_id); - if (object.proof != null) - if (typeof object.proof === "string") - $util.base64.decode(object.proof, message.proof = $util.newBuffer($util.base64.length(object.proof)), 0); - else if (object.proof.length) - message.proof = object.proof; - if (object.proof_height != null) { - if (typeof object.proof_height !== "object") - throw TypeError(".ibc.core.channel.v1.QueryChannelConsensusStateResponse.proof_height: object expected"); - message.proof_height = $root.ibc.core.client.v1.Height.fromObject(object.proof_height); + var message = new $root.ibc.core.channel.v1.MsgTimeoutResponse(); + switch (object.result) { + case "RESPONSE_RESULT_TYPE_UNSPECIFIED": + case 0: + message.result = 0; + break; + case "RESPONSE_RESULT_TYPE_NOOP": + case 1: + message.result = 1; + break; + case "RESPONSE_RESULT_TYPE_SUCCESS": + case 2: + message.result = 2; + break; } return message; }; /** - * Creates a plain object from a QueryChannelConsensusStateResponse message. Also converts values to other types if specified. + * Creates a plain object from a MsgTimeoutResponse message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.channel.v1.QueryChannelConsensusStateResponse + * @memberof ibc.core.channel.v1.MsgTimeoutResponse * @static - * @param {ibc.core.channel.v1.QueryChannelConsensusStateResponse} message QueryChannelConsensusStateResponse + * @param {ibc.core.channel.v1.MsgTimeoutResponse} message MsgTimeoutResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryChannelConsensusStateResponse.toObject = function toObject(message, options) { + MsgTimeoutResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.consensus_state = null; - object.client_id = ""; - if (options.bytes === String) - object.proof = ""; - else { - object.proof = []; - if (options.bytes !== Array) - object.proof = $util.newBuffer(object.proof); - } - object.proof_height = null; - } - if (message.consensus_state != null && message.hasOwnProperty("consensus_state")) - object.consensus_state = $root.google.protobuf.Any.toObject(message.consensus_state, options); - if (message.client_id != null && message.hasOwnProperty("client_id")) - object.client_id = message.client_id; - if (message.proof != null && message.hasOwnProperty("proof")) - object.proof = options.bytes === String ? $util.base64.encode(message.proof, 0, message.proof.length) : options.bytes === Array ? Array.prototype.slice.call(message.proof) : message.proof; - if (message.proof_height != null && message.hasOwnProperty("proof_height")) - object.proof_height = $root.ibc.core.client.v1.Height.toObject(message.proof_height, options); + if (options.defaults) + object.result = options.enums === String ? "RESPONSE_RESULT_TYPE_UNSPECIFIED" : 0; + if (message.result != null && message.hasOwnProperty("result")) + object.result = options.enums === String ? $root.ibc.core.channel.v1.ResponseResultType[message.result] : message.result; return object; }; /** - * Converts this QueryChannelConsensusStateResponse to JSON. + * Converts this MsgTimeoutResponse to JSON. * @function toJSON - * @memberof ibc.core.channel.v1.QueryChannelConsensusStateResponse + * @memberof ibc.core.channel.v1.MsgTimeoutResponse * @instance * @returns {Object.} JSON object */ - QueryChannelConsensusStateResponse.prototype.toJSON = function toJSON() { + MsgTimeoutResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryChannelConsensusStateResponse; + return MsgTimeoutResponse; })(); - v1.QueryPacketCommitmentRequest = (function() { + v1.MsgTimeoutOnClose = (function() { /** - * Properties of a QueryPacketCommitmentRequest. + * Properties of a MsgTimeoutOnClose. * @memberof ibc.core.channel.v1 - * @interface IQueryPacketCommitmentRequest - * @property {string|null} [port_id] QueryPacketCommitmentRequest port_id - * @property {string|null} [channel_id] QueryPacketCommitmentRequest channel_id - * @property {Long|null} [sequence] QueryPacketCommitmentRequest sequence + * @interface IMsgTimeoutOnClose + * @property {ibc.core.channel.v1.IPacket|null} [packet] MsgTimeoutOnClose packet + * @property {Uint8Array|null} [proof_unreceived] MsgTimeoutOnClose proof_unreceived + * @property {Uint8Array|null} [proof_close] MsgTimeoutOnClose proof_close + * @property {ibc.core.client.v1.IHeight|null} [proof_height] MsgTimeoutOnClose proof_height + * @property {Long|null} [next_sequence_recv] MsgTimeoutOnClose next_sequence_recv + * @property {string|null} [signer] MsgTimeoutOnClose signer */ /** - * Constructs a new QueryPacketCommitmentRequest. + * Constructs a new MsgTimeoutOnClose. * @memberof ibc.core.channel.v1 - * @classdesc Represents a QueryPacketCommitmentRequest. - * @implements IQueryPacketCommitmentRequest + * @classdesc Represents a MsgTimeoutOnClose. + * @implements IMsgTimeoutOnClose * @constructor - * @param {ibc.core.channel.v1.IQueryPacketCommitmentRequest=} [properties] Properties to set + * @param {ibc.core.channel.v1.IMsgTimeoutOnClose=} [properties] Properties to set */ - function QueryPacketCommitmentRequest(properties) { + function MsgTimeoutOnClose(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -43930,89 +50669,128 @@ } /** - * QueryPacketCommitmentRequest port_id. - * @member {string} port_id - * @memberof ibc.core.channel.v1.QueryPacketCommitmentRequest + * MsgTimeoutOnClose packet. + * @member {ibc.core.channel.v1.IPacket|null|undefined} packet + * @memberof ibc.core.channel.v1.MsgTimeoutOnClose * @instance */ - QueryPacketCommitmentRequest.prototype.port_id = ""; + MsgTimeoutOnClose.prototype.packet = null; /** - * QueryPacketCommitmentRequest channel_id. - * @member {string} channel_id - * @memberof ibc.core.channel.v1.QueryPacketCommitmentRequest + * MsgTimeoutOnClose proof_unreceived. + * @member {Uint8Array} proof_unreceived + * @memberof ibc.core.channel.v1.MsgTimeoutOnClose * @instance */ - QueryPacketCommitmentRequest.prototype.channel_id = ""; + MsgTimeoutOnClose.prototype.proof_unreceived = $util.newBuffer([]); /** - * QueryPacketCommitmentRequest sequence. - * @member {Long} sequence - * @memberof ibc.core.channel.v1.QueryPacketCommitmentRequest + * MsgTimeoutOnClose proof_close. + * @member {Uint8Array} proof_close + * @memberof ibc.core.channel.v1.MsgTimeoutOnClose * @instance */ - QueryPacketCommitmentRequest.prototype.sequence = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + MsgTimeoutOnClose.prototype.proof_close = $util.newBuffer([]); /** - * Encodes the specified QueryPacketCommitmentRequest message. Does not implicitly {@link ibc.core.channel.v1.QueryPacketCommitmentRequest.verify|verify} messages. + * MsgTimeoutOnClose proof_height. + * @member {ibc.core.client.v1.IHeight|null|undefined} proof_height + * @memberof ibc.core.channel.v1.MsgTimeoutOnClose + * @instance + */ + MsgTimeoutOnClose.prototype.proof_height = null; + + /** + * MsgTimeoutOnClose next_sequence_recv. + * @member {Long} next_sequence_recv + * @memberof ibc.core.channel.v1.MsgTimeoutOnClose + * @instance + */ + MsgTimeoutOnClose.prototype.next_sequence_recv = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + + /** + * MsgTimeoutOnClose signer. + * @member {string} signer + * @memberof ibc.core.channel.v1.MsgTimeoutOnClose + * @instance + */ + MsgTimeoutOnClose.prototype.signer = ""; + + /** + * Encodes the specified MsgTimeoutOnClose message. Does not implicitly {@link ibc.core.channel.v1.MsgTimeoutOnClose.verify|verify} messages. * @function encode - * @memberof ibc.core.channel.v1.QueryPacketCommitmentRequest + * @memberof ibc.core.channel.v1.MsgTimeoutOnClose * @static - * @param {ibc.core.channel.v1.IQueryPacketCommitmentRequest} message QueryPacketCommitmentRequest message or plain object to encode + * @param {ibc.core.channel.v1.IMsgTimeoutOnClose} message MsgTimeoutOnClose message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryPacketCommitmentRequest.encode = function encode(message, writer) { + MsgTimeoutOnClose.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.port_id != null && Object.hasOwnProperty.call(message, "port_id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.port_id); - if (message.channel_id != null && Object.hasOwnProperty.call(message, "channel_id")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.channel_id); - if (message.sequence != null && Object.hasOwnProperty.call(message, "sequence")) - writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.sequence); + if (message.packet != null && Object.hasOwnProperty.call(message, "packet")) + $root.ibc.core.channel.v1.Packet.encode(message.packet, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.proof_unreceived != null && Object.hasOwnProperty.call(message, "proof_unreceived")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.proof_unreceived); + if (message.proof_close != null && Object.hasOwnProperty.call(message, "proof_close")) + writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.proof_close); + if (message.proof_height != null && Object.hasOwnProperty.call(message, "proof_height")) + $root.ibc.core.client.v1.Height.encode(message.proof_height, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.next_sequence_recv != null && Object.hasOwnProperty.call(message, "next_sequence_recv")) + writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.next_sequence_recv); + if (message.signer != null && Object.hasOwnProperty.call(message, "signer")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.signer); return writer; }; /** - * Encodes the specified QueryPacketCommitmentRequest message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryPacketCommitmentRequest.verify|verify} messages. + * Encodes the specified MsgTimeoutOnClose message, length delimited. Does not implicitly {@link ibc.core.channel.v1.MsgTimeoutOnClose.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.channel.v1.QueryPacketCommitmentRequest + * @memberof ibc.core.channel.v1.MsgTimeoutOnClose * @static - * @param {ibc.core.channel.v1.IQueryPacketCommitmentRequest} message QueryPacketCommitmentRequest message or plain object to encode + * @param {ibc.core.channel.v1.IMsgTimeoutOnClose} message MsgTimeoutOnClose message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryPacketCommitmentRequest.encodeDelimited = function encodeDelimited(message, writer) { + MsgTimeoutOnClose.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryPacketCommitmentRequest message from the specified reader or buffer. + * Decodes a MsgTimeoutOnClose message from the specified reader or buffer. * @function decode - * @memberof ibc.core.channel.v1.QueryPacketCommitmentRequest + * @memberof ibc.core.channel.v1.MsgTimeoutOnClose * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.channel.v1.QueryPacketCommitmentRequest} QueryPacketCommitmentRequest + * @returns {ibc.core.channel.v1.MsgTimeoutOnClose} MsgTimeoutOnClose * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryPacketCommitmentRequest.decode = function decode(reader, length) { + MsgTimeoutOnClose.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.QueryPacketCommitmentRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.MsgTimeoutOnClose(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.port_id = reader.string(); + message.packet = $root.ibc.core.channel.v1.Packet.decode(reader, reader.uint32()); break; case 2: - message.channel_id = reader.string(); + message.proof_unreceived = reader.bytes(); break; case 3: - message.sequence = reader.uint64(); + message.proof_close = reader.bytes(); + break; + case 4: + message.proof_height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); + break; + case 5: + message.next_sequence_recv = reader.uint64(); + break; + case 6: + message.signer = reader.string(); break; default: reader.skipType(tag & 7); @@ -44023,140 +50801,190 @@ }; /** - * Decodes a QueryPacketCommitmentRequest message from the specified reader or buffer, length delimited. + * Decodes a MsgTimeoutOnClose message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.channel.v1.QueryPacketCommitmentRequest + * @memberof ibc.core.channel.v1.MsgTimeoutOnClose * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.channel.v1.QueryPacketCommitmentRequest} QueryPacketCommitmentRequest + * @returns {ibc.core.channel.v1.MsgTimeoutOnClose} MsgTimeoutOnClose * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryPacketCommitmentRequest.decodeDelimited = function decodeDelimited(reader) { + MsgTimeoutOnClose.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryPacketCommitmentRequest message. + * Verifies a MsgTimeoutOnClose message. * @function verify - * @memberof ibc.core.channel.v1.QueryPacketCommitmentRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - QueryPacketCommitmentRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.port_id != null && message.hasOwnProperty("port_id")) - if (!$util.isString(message.port_id)) - return "port_id: string expected"; - if (message.channel_id != null && message.hasOwnProperty("channel_id")) - if (!$util.isString(message.channel_id)) - return "channel_id: string expected"; - if (message.sequence != null && message.hasOwnProperty("sequence")) - if (!$util.isInteger(message.sequence) && !(message.sequence && $util.isInteger(message.sequence.low) && $util.isInteger(message.sequence.high))) - return "sequence: integer|Long expected"; + * @memberof ibc.core.channel.v1.MsgTimeoutOnClose + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MsgTimeoutOnClose.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.packet != null && message.hasOwnProperty("packet")) { + var error = $root.ibc.core.channel.v1.Packet.verify(message.packet); + if (error) + return "packet." + error; + } + if (message.proof_unreceived != null && message.hasOwnProperty("proof_unreceived")) + if (!(message.proof_unreceived && typeof message.proof_unreceived.length === "number" || $util.isString(message.proof_unreceived))) + return "proof_unreceived: buffer expected"; + if (message.proof_close != null && message.hasOwnProperty("proof_close")) + if (!(message.proof_close && typeof message.proof_close.length === "number" || $util.isString(message.proof_close))) + return "proof_close: buffer expected"; + if (message.proof_height != null && message.hasOwnProperty("proof_height")) { + var error = $root.ibc.core.client.v1.Height.verify(message.proof_height); + if (error) + return "proof_height." + error; + } + if (message.next_sequence_recv != null && message.hasOwnProperty("next_sequence_recv")) + if (!$util.isInteger(message.next_sequence_recv) && !(message.next_sequence_recv && $util.isInteger(message.next_sequence_recv.low) && $util.isInteger(message.next_sequence_recv.high))) + return "next_sequence_recv: integer|Long expected"; + if (message.signer != null && message.hasOwnProperty("signer")) + if (!$util.isString(message.signer)) + return "signer: string expected"; return null; }; /** - * Creates a QueryPacketCommitmentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MsgTimeoutOnClose message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.channel.v1.QueryPacketCommitmentRequest + * @memberof ibc.core.channel.v1.MsgTimeoutOnClose * @static * @param {Object.} object Plain object - * @returns {ibc.core.channel.v1.QueryPacketCommitmentRequest} QueryPacketCommitmentRequest + * @returns {ibc.core.channel.v1.MsgTimeoutOnClose} MsgTimeoutOnClose */ - QueryPacketCommitmentRequest.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.channel.v1.QueryPacketCommitmentRequest) + MsgTimeoutOnClose.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.channel.v1.MsgTimeoutOnClose) return object; - var message = new $root.ibc.core.channel.v1.QueryPacketCommitmentRequest(); - if (object.port_id != null) - message.port_id = String(object.port_id); - if (object.channel_id != null) - message.channel_id = String(object.channel_id); - if (object.sequence != null) + var message = new $root.ibc.core.channel.v1.MsgTimeoutOnClose(); + if (object.packet != null) { + if (typeof object.packet !== "object") + throw TypeError(".ibc.core.channel.v1.MsgTimeoutOnClose.packet: object expected"); + message.packet = $root.ibc.core.channel.v1.Packet.fromObject(object.packet); + } + if (object.proof_unreceived != null) + if (typeof object.proof_unreceived === "string") + $util.base64.decode(object.proof_unreceived, message.proof_unreceived = $util.newBuffer($util.base64.length(object.proof_unreceived)), 0); + else if (object.proof_unreceived.length) + message.proof_unreceived = object.proof_unreceived; + if (object.proof_close != null) + if (typeof object.proof_close === "string") + $util.base64.decode(object.proof_close, message.proof_close = $util.newBuffer($util.base64.length(object.proof_close)), 0); + else if (object.proof_close.length) + message.proof_close = object.proof_close; + if (object.proof_height != null) { + if (typeof object.proof_height !== "object") + throw TypeError(".ibc.core.channel.v1.MsgTimeoutOnClose.proof_height: object expected"); + message.proof_height = $root.ibc.core.client.v1.Height.fromObject(object.proof_height); + } + if (object.next_sequence_recv != null) if ($util.Long) - (message.sequence = $util.Long.fromValue(object.sequence)).unsigned = true; - else if (typeof object.sequence === "string") - message.sequence = parseInt(object.sequence, 10); - else if (typeof object.sequence === "number") - message.sequence = object.sequence; - else if (typeof object.sequence === "object") - message.sequence = new $util.LongBits(object.sequence.low >>> 0, object.sequence.high >>> 0).toNumber(true); + (message.next_sequence_recv = $util.Long.fromValue(object.next_sequence_recv)).unsigned = true; + else if (typeof object.next_sequence_recv === "string") + message.next_sequence_recv = parseInt(object.next_sequence_recv, 10); + else if (typeof object.next_sequence_recv === "number") + message.next_sequence_recv = object.next_sequence_recv; + else if (typeof object.next_sequence_recv === "object") + message.next_sequence_recv = new $util.LongBits(object.next_sequence_recv.low >>> 0, object.next_sequence_recv.high >>> 0).toNumber(true); + if (object.signer != null) + message.signer = String(object.signer); return message; }; /** - * Creates a plain object from a QueryPacketCommitmentRequest message. Also converts values to other types if specified. + * Creates a plain object from a MsgTimeoutOnClose message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.channel.v1.QueryPacketCommitmentRequest + * @memberof ibc.core.channel.v1.MsgTimeoutOnClose * @static - * @param {ibc.core.channel.v1.QueryPacketCommitmentRequest} message QueryPacketCommitmentRequest + * @param {ibc.core.channel.v1.MsgTimeoutOnClose} message MsgTimeoutOnClose * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryPacketCommitmentRequest.toObject = function toObject(message, options) { + MsgTimeoutOnClose.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.port_id = ""; - object.channel_id = ""; + object.packet = null; + if (options.bytes === String) + object.proof_unreceived = ""; + else { + object.proof_unreceived = []; + if (options.bytes !== Array) + object.proof_unreceived = $util.newBuffer(object.proof_unreceived); + } + if (options.bytes === String) + object.proof_close = ""; + else { + object.proof_close = []; + if (options.bytes !== Array) + object.proof_close = $util.newBuffer(object.proof_close); + } + object.proof_height = null; if ($util.Long) { var long = new $util.Long(0, 0, true); - object.sequence = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + object.next_sequence_recv = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.sequence = options.longs === String ? "0" : 0; + object.next_sequence_recv = options.longs === String ? "0" : 0; + object.signer = ""; } - if (message.port_id != null && message.hasOwnProperty("port_id")) - object.port_id = message.port_id; - if (message.channel_id != null && message.hasOwnProperty("channel_id")) - object.channel_id = message.channel_id; - if (message.sequence != null && message.hasOwnProperty("sequence")) - if (typeof message.sequence === "number") - object.sequence = options.longs === String ? String(message.sequence) : message.sequence; + if (message.packet != null && message.hasOwnProperty("packet")) + object.packet = $root.ibc.core.channel.v1.Packet.toObject(message.packet, options); + if (message.proof_unreceived != null && message.hasOwnProperty("proof_unreceived")) + object.proof_unreceived = options.bytes === String ? $util.base64.encode(message.proof_unreceived, 0, message.proof_unreceived.length) : options.bytes === Array ? Array.prototype.slice.call(message.proof_unreceived) : message.proof_unreceived; + if (message.proof_close != null && message.hasOwnProperty("proof_close")) + object.proof_close = options.bytes === String ? $util.base64.encode(message.proof_close, 0, message.proof_close.length) : options.bytes === Array ? Array.prototype.slice.call(message.proof_close) : message.proof_close; + if (message.proof_height != null && message.hasOwnProperty("proof_height")) + object.proof_height = $root.ibc.core.client.v1.Height.toObject(message.proof_height, options); + if (message.next_sequence_recv != null && message.hasOwnProperty("next_sequence_recv")) + if (typeof message.next_sequence_recv === "number") + object.next_sequence_recv = options.longs === String ? String(message.next_sequence_recv) : message.next_sequence_recv; else - object.sequence = options.longs === String ? $util.Long.prototype.toString.call(message.sequence) : options.longs === Number ? new $util.LongBits(message.sequence.low >>> 0, message.sequence.high >>> 0).toNumber(true) : message.sequence; + object.next_sequence_recv = options.longs === String ? $util.Long.prototype.toString.call(message.next_sequence_recv) : options.longs === Number ? new $util.LongBits(message.next_sequence_recv.low >>> 0, message.next_sequence_recv.high >>> 0).toNumber(true) : message.next_sequence_recv; + if (message.signer != null && message.hasOwnProperty("signer")) + object.signer = message.signer; return object; }; /** - * Converts this QueryPacketCommitmentRequest to JSON. + * Converts this MsgTimeoutOnClose to JSON. * @function toJSON - * @memberof ibc.core.channel.v1.QueryPacketCommitmentRequest + * @memberof ibc.core.channel.v1.MsgTimeoutOnClose * @instance * @returns {Object.} JSON object */ - QueryPacketCommitmentRequest.prototype.toJSON = function toJSON() { + MsgTimeoutOnClose.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryPacketCommitmentRequest; + return MsgTimeoutOnClose; })(); - v1.QueryPacketCommitmentResponse = (function() { + v1.MsgTimeoutOnCloseResponse = (function() { /** - * Properties of a QueryPacketCommitmentResponse. + * Properties of a MsgTimeoutOnCloseResponse. * @memberof ibc.core.channel.v1 - * @interface IQueryPacketCommitmentResponse - * @property {Uint8Array|null} [commitment] QueryPacketCommitmentResponse commitment - * @property {Uint8Array|null} [proof] QueryPacketCommitmentResponse proof - * @property {ibc.core.client.v1.IHeight|null} [proof_height] QueryPacketCommitmentResponse proof_height + * @interface IMsgTimeoutOnCloseResponse + * @property {ibc.core.channel.v1.ResponseResultType|null} [result] MsgTimeoutOnCloseResponse result */ /** - * Constructs a new QueryPacketCommitmentResponse. + * Constructs a new MsgTimeoutOnCloseResponse. * @memberof ibc.core.channel.v1 - * @classdesc Represents a QueryPacketCommitmentResponse. - * @implements IQueryPacketCommitmentResponse + * @classdesc Represents a MsgTimeoutOnCloseResponse. + * @implements IMsgTimeoutOnCloseResponse * @constructor - * @param {ibc.core.channel.v1.IQueryPacketCommitmentResponse=} [properties] Properties to set + * @param {ibc.core.channel.v1.IMsgTimeoutOnCloseResponse=} [properties] Properties to set */ - function QueryPacketCommitmentResponse(properties) { + function MsgTimeoutOnCloseResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -44164,89 +50992,63 @@ } /** - * QueryPacketCommitmentResponse commitment. - * @member {Uint8Array} commitment - * @memberof ibc.core.channel.v1.QueryPacketCommitmentResponse - * @instance - */ - QueryPacketCommitmentResponse.prototype.commitment = $util.newBuffer([]); - - /** - * QueryPacketCommitmentResponse proof. - * @member {Uint8Array} proof - * @memberof ibc.core.channel.v1.QueryPacketCommitmentResponse - * @instance - */ - QueryPacketCommitmentResponse.prototype.proof = $util.newBuffer([]); - - /** - * QueryPacketCommitmentResponse proof_height. - * @member {ibc.core.client.v1.IHeight|null|undefined} proof_height - * @memberof ibc.core.channel.v1.QueryPacketCommitmentResponse + * MsgTimeoutOnCloseResponse result. + * @member {ibc.core.channel.v1.ResponseResultType} result + * @memberof ibc.core.channel.v1.MsgTimeoutOnCloseResponse * @instance */ - QueryPacketCommitmentResponse.prototype.proof_height = null; + MsgTimeoutOnCloseResponse.prototype.result = 0; /** - * Encodes the specified QueryPacketCommitmentResponse message. Does not implicitly {@link ibc.core.channel.v1.QueryPacketCommitmentResponse.verify|verify} messages. + * Encodes the specified MsgTimeoutOnCloseResponse message. Does not implicitly {@link ibc.core.channel.v1.MsgTimeoutOnCloseResponse.verify|verify} messages. * @function encode - * @memberof ibc.core.channel.v1.QueryPacketCommitmentResponse + * @memberof ibc.core.channel.v1.MsgTimeoutOnCloseResponse * @static - * @param {ibc.core.channel.v1.IQueryPacketCommitmentResponse} message QueryPacketCommitmentResponse message or plain object to encode + * @param {ibc.core.channel.v1.IMsgTimeoutOnCloseResponse} message MsgTimeoutOnCloseResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryPacketCommitmentResponse.encode = function encode(message, writer) { + MsgTimeoutOnCloseResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.commitment != null && Object.hasOwnProperty.call(message, "commitment")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.commitment); - if (message.proof != null && Object.hasOwnProperty.call(message, "proof")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.proof); - if (message.proof_height != null && Object.hasOwnProperty.call(message, "proof_height")) - $root.ibc.core.client.v1.Height.encode(message.proof_height, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.result != null && Object.hasOwnProperty.call(message, "result")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.result); return writer; }; /** - * Encodes the specified QueryPacketCommitmentResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryPacketCommitmentResponse.verify|verify} messages. + * Encodes the specified MsgTimeoutOnCloseResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.MsgTimeoutOnCloseResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.channel.v1.QueryPacketCommitmentResponse + * @memberof ibc.core.channel.v1.MsgTimeoutOnCloseResponse * @static - * @param {ibc.core.channel.v1.IQueryPacketCommitmentResponse} message QueryPacketCommitmentResponse message or plain object to encode + * @param {ibc.core.channel.v1.IMsgTimeoutOnCloseResponse} message MsgTimeoutOnCloseResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryPacketCommitmentResponse.encodeDelimited = function encodeDelimited(message, writer) { + MsgTimeoutOnCloseResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryPacketCommitmentResponse message from the specified reader or buffer. + * Decodes a MsgTimeoutOnCloseResponse message from the specified reader or buffer. * @function decode - * @memberof ibc.core.channel.v1.QueryPacketCommitmentResponse + * @memberof ibc.core.channel.v1.MsgTimeoutOnCloseResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.channel.v1.QueryPacketCommitmentResponse} QueryPacketCommitmentResponse + * @returns {ibc.core.channel.v1.MsgTimeoutOnCloseResponse} MsgTimeoutOnCloseResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryPacketCommitmentResponse.decode = function decode(reader, length) { + MsgTimeoutOnCloseResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.QueryPacketCommitmentResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.MsgTimeoutOnCloseResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.commitment = reader.bytes(); - break; - case 2: - message.proof = reader.bytes(); - break; - case 3: - message.proof_height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); + message.result = reader.int32(); break; default: reader.skipType(tag & 7); @@ -44257,149 +51059,129 @@ }; /** - * Decodes a QueryPacketCommitmentResponse message from the specified reader or buffer, length delimited. + * Decodes a MsgTimeoutOnCloseResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.channel.v1.QueryPacketCommitmentResponse + * @memberof ibc.core.channel.v1.MsgTimeoutOnCloseResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.channel.v1.QueryPacketCommitmentResponse} QueryPacketCommitmentResponse + * @returns {ibc.core.channel.v1.MsgTimeoutOnCloseResponse} MsgTimeoutOnCloseResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryPacketCommitmentResponse.decodeDelimited = function decodeDelimited(reader) { + MsgTimeoutOnCloseResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryPacketCommitmentResponse message. + * Verifies a MsgTimeoutOnCloseResponse message. * @function verify - * @memberof ibc.core.channel.v1.QueryPacketCommitmentResponse + * @memberof ibc.core.channel.v1.MsgTimeoutOnCloseResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryPacketCommitmentResponse.verify = function verify(message) { + MsgTimeoutOnCloseResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.commitment != null && message.hasOwnProperty("commitment")) - if (!(message.commitment && typeof message.commitment.length === "number" || $util.isString(message.commitment))) - return "commitment: buffer expected"; - if (message.proof != null && message.hasOwnProperty("proof")) - if (!(message.proof && typeof message.proof.length === "number" || $util.isString(message.proof))) - return "proof: buffer expected"; - if (message.proof_height != null && message.hasOwnProperty("proof_height")) { - var error = $root.ibc.core.client.v1.Height.verify(message.proof_height); - if (error) - return "proof_height." + error; - } + if (message.result != null && message.hasOwnProperty("result")) + switch (message.result) { + default: + return "result: enum value expected"; + case 0: + case 1: + case 2: + break; + } return null; }; /** - * Creates a QueryPacketCommitmentResponse message from a plain object. Also converts values to their respective internal types. + * Creates a MsgTimeoutOnCloseResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.channel.v1.QueryPacketCommitmentResponse + * @memberof ibc.core.channel.v1.MsgTimeoutOnCloseResponse * @static * @param {Object.} object Plain object - * @returns {ibc.core.channel.v1.QueryPacketCommitmentResponse} QueryPacketCommitmentResponse + * @returns {ibc.core.channel.v1.MsgTimeoutOnCloseResponse} MsgTimeoutOnCloseResponse */ - QueryPacketCommitmentResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.channel.v1.QueryPacketCommitmentResponse) + MsgTimeoutOnCloseResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.channel.v1.MsgTimeoutOnCloseResponse) return object; - var message = new $root.ibc.core.channel.v1.QueryPacketCommitmentResponse(); - if (object.commitment != null) - if (typeof object.commitment === "string") - $util.base64.decode(object.commitment, message.commitment = $util.newBuffer($util.base64.length(object.commitment)), 0); - else if (object.commitment.length) - message.commitment = object.commitment; - if (object.proof != null) - if (typeof object.proof === "string") - $util.base64.decode(object.proof, message.proof = $util.newBuffer($util.base64.length(object.proof)), 0); - else if (object.proof.length) - message.proof = object.proof; - if (object.proof_height != null) { - if (typeof object.proof_height !== "object") - throw TypeError(".ibc.core.channel.v1.QueryPacketCommitmentResponse.proof_height: object expected"); - message.proof_height = $root.ibc.core.client.v1.Height.fromObject(object.proof_height); + var message = new $root.ibc.core.channel.v1.MsgTimeoutOnCloseResponse(); + switch (object.result) { + case "RESPONSE_RESULT_TYPE_UNSPECIFIED": + case 0: + message.result = 0; + break; + case "RESPONSE_RESULT_TYPE_NOOP": + case 1: + message.result = 1; + break; + case "RESPONSE_RESULT_TYPE_SUCCESS": + case 2: + message.result = 2; + break; } return message; }; /** - * Creates a plain object from a QueryPacketCommitmentResponse message. Also converts values to other types if specified. + * Creates a plain object from a MsgTimeoutOnCloseResponse message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.channel.v1.QueryPacketCommitmentResponse + * @memberof ibc.core.channel.v1.MsgTimeoutOnCloseResponse * @static - * @param {ibc.core.channel.v1.QueryPacketCommitmentResponse} message QueryPacketCommitmentResponse + * @param {ibc.core.channel.v1.MsgTimeoutOnCloseResponse} message MsgTimeoutOnCloseResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryPacketCommitmentResponse.toObject = function toObject(message, options) { + MsgTimeoutOnCloseResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - if (options.bytes === String) - object.commitment = ""; - else { - object.commitment = []; - if (options.bytes !== Array) - object.commitment = $util.newBuffer(object.commitment); - } - if (options.bytes === String) - object.proof = ""; - else { - object.proof = []; - if (options.bytes !== Array) - object.proof = $util.newBuffer(object.proof); - } - object.proof_height = null; - } - if (message.commitment != null && message.hasOwnProperty("commitment")) - object.commitment = options.bytes === String ? $util.base64.encode(message.commitment, 0, message.commitment.length) : options.bytes === Array ? Array.prototype.slice.call(message.commitment) : message.commitment; - if (message.proof != null && message.hasOwnProperty("proof")) - object.proof = options.bytes === String ? $util.base64.encode(message.proof, 0, message.proof.length) : options.bytes === Array ? Array.prototype.slice.call(message.proof) : message.proof; - if (message.proof_height != null && message.hasOwnProperty("proof_height")) - object.proof_height = $root.ibc.core.client.v1.Height.toObject(message.proof_height, options); + if (options.defaults) + object.result = options.enums === String ? "RESPONSE_RESULT_TYPE_UNSPECIFIED" : 0; + if (message.result != null && message.hasOwnProperty("result")) + object.result = options.enums === String ? $root.ibc.core.channel.v1.ResponseResultType[message.result] : message.result; return object; }; /** - * Converts this QueryPacketCommitmentResponse to JSON. + * Converts this MsgTimeoutOnCloseResponse to JSON. * @function toJSON - * @memberof ibc.core.channel.v1.QueryPacketCommitmentResponse + * @memberof ibc.core.channel.v1.MsgTimeoutOnCloseResponse * @instance * @returns {Object.} JSON object */ - QueryPacketCommitmentResponse.prototype.toJSON = function toJSON() { + MsgTimeoutOnCloseResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryPacketCommitmentResponse; + return MsgTimeoutOnCloseResponse; })(); - v1.QueryPacketCommitmentsRequest = (function() { + v1.MsgAcknowledgement = (function() { /** - * Properties of a QueryPacketCommitmentsRequest. + * Properties of a MsgAcknowledgement. * @memberof ibc.core.channel.v1 - * @interface IQueryPacketCommitmentsRequest - * @property {string|null} [port_id] QueryPacketCommitmentsRequest port_id - * @property {string|null} [channel_id] QueryPacketCommitmentsRequest channel_id - * @property {cosmos.base.query.v1beta1.IPageRequest|null} [pagination] QueryPacketCommitmentsRequest pagination + * @interface IMsgAcknowledgement + * @property {ibc.core.channel.v1.IPacket|null} [packet] MsgAcknowledgement packet + * @property {Uint8Array|null} [acknowledgement] MsgAcknowledgement acknowledgement + * @property {Uint8Array|null} [proof_acked] MsgAcknowledgement proof_acked + * @property {ibc.core.client.v1.IHeight|null} [proof_height] MsgAcknowledgement proof_height + * @property {string|null} [signer] MsgAcknowledgement signer */ /** - * Constructs a new QueryPacketCommitmentsRequest. + * Constructs a new MsgAcknowledgement. * @memberof ibc.core.channel.v1 - * @classdesc Represents a QueryPacketCommitmentsRequest. - * @implements IQueryPacketCommitmentsRequest + * @classdesc Represents a MsgAcknowledgement. + * @implements IMsgAcknowledgement * @constructor - * @param {ibc.core.channel.v1.IQueryPacketCommitmentsRequest=} [properties] Properties to set + * @param {ibc.core.channel.v1.IMsgAcknowledgement=} [properties] Properties to set */ - function QueryPacketCommitmentsRequest(properties) { + function MsgAcknowledgement(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -44407,89 +51189,115 @@ } /** - * QueryPacketCommitmentsRequest port_id. - * @member {string} port_id - * @memberof ibc.core.channel.v1.QueryPacketCommitmentsRequest + * MsgAcknowledgement packet. + * @member {ibc.core.channel.v1.IPacket|null|undefined} packet + * @memberof ibc.core.channel.v1.MsgAcknowledgement * @instance */ - QueryPacketCommitmentsRequest.prototype.port_id = ""; + MsgAcknowledgement.prototype.packet = null; /** - * QueryPacketCommitmentsRequest channel_id. - * @member {string} channel_id - * @memberof ibc.core.channel.v1.QueryPacketCommitmentsRequest + * MsgAcknowledgement acknowledgement. + * @member {Uint8Array} acknowledgement + * @memberof ibc.core.channel.v1.MsgAcknowledgement * @instance */ - QueryPacketCommitmentsRequest.prototype.channel_id = ""; + MsgAcknowledgement.prototype.acknowledgement = $util.newBuffer([]); /** - * QueryPacketCommitmentsRequest pagination. - * @member {cosmos.base.query.v1beta1.IPageRequest|null|undefined} pagination - * @memberof ibc.core.channel.v1.QueryPacketCommitmentsRequest + * MsgAcknowledgement proof_acked. + * @member {Uint8Array} proof_acked + * @memberof ibc.core.channel.v1.MsgAcknowledgement * @instance */ - QueryPacketCommitmentsRequest.prototype.pagination = null; + MsgAcknowledgement.prototype.proof_acked = $util.newBuffer([]); /** - * Encodes the specified QueryPacketCommitmentsRequest message. Does not implicitly {@link ibc.core.channel.v1.QueryPacketCommitmentsRequest.verify|verify} messages. + * MsgAcknowledgement proof_height. + * @member {ibc.core.client.v1.IHeight|null|undefined} proof_height + * @memberof ibc.core.channel.v1.MsgAcknowledgement + * @instance + */ + MsgAcknowledgement.prototype.proof_height = null; + + /** + * MsgAcknowledgement signer. + * @member {string} signer + * @memberof ibc.core.channel.v1.MsgAcknowledgement + * @instance + */ + MsgAcknowledgement.prototype.signer = ""; + + /** + * Encodes the specified MsgAcknowledgement message. Does not implicitly {@link ibc.core.channel.v1.MsgAcknowledgement.verify|verify} messages. * @function encode - * @memberof ibc.core.channel.v1.QueryPacketCommitmentsRequest + * @memberof ibc.core.channel.v1.MsgAcknowledgement * @static - * @param {ibc.core.channel.v1.IQueryPacketCommitmentsRequest} message QueryPacketCommitmentsRequest message or plain object to encode + * @param {ibc.core.channel.v1.IMsgAcknowledgement} message MsgAcknowledgement message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryPacketCommitmentsRequest.encode = function encode(message, writer) { + MsgAcknowledgement.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.port_id != null && Object.hasOwnProperty.call(message, "port_id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.port_id); - if (message.channel_id != null && Object.hasOwnProperty.call(message, "channel_id")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.channel_id); - if (message.pagination != null && Object.hasOwnProperty.call(message, "pagination")) - $root.cosmos.base.query.v1beta1.PageRequest.encode(message.pagination, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.packet != null && Object.hasOwnProperty.call(message, "packet")) + $root.ibc.core.channel.v1.Packet.encode(message.packet, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.acknowledgement != null && Object.hasOwnProperty.call(message, "acknowledgement")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.acknowledgement); + if (message.proof_acked != null && Object.hasOwnProperty.call(message, "proof_acked")) + writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.proof_acked); + if (message.proof_height != null && Object.hasOwnProperty.call(message, "proof_height")) + $root.ibc.core.client.v1.Height.encode(message.proof_height, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.signer != null && Object.hasOwnProperty.call(message, "signer")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.signer); return writer; }; /** - * Encodes the specified QueryPacketCommitmentsRequest message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryPacketCommitmentsRequest.verify|verify} messages. + * Encodes the specified MsgAcknowledgement message, length delimited. Does not implicitly {@link ibc.core.channel.v1.MsgAcknowledgement.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.channel.v1.QueryPacketCommitmentsRequest + * @memberof ibc.core.channel.v1.MsgAcknowledgement * @static - * @param {ibc.core.channel.v1.IQueryPacketCommitmentsRequest} message QueryPacketCommitmentsRequest message or plain object to encode + * @param {ibc.core.channel.v1.IMsgAcknowledgement} message MsgAcknowledgement message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryPacketCommitmentsRequest.encodeDelimited = function encodeDelimited(message, writer) { + MsgAcknowledgement.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryPacketCommitmentsRequest message from the specified reader or buffer. + * Decodes a MsgAcknowledgement message from the specified reader or buffer. * @function decode - * @memberof ibc.core.channel.v1.QueryPacketCommitmentsRequest + * @memberof ibc.core.channel.v1.MsgAcknowledgement * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.channel.v1.QueryPacketCommitmentsRequest} QueryPacketCommitmentsRequest + * @returns {ibc.core.channel.v1.MsgAcknowledgement} MsgAcknowledgement * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryPacketCommitmentsRequest.decode = function decode(reader, length) { + MsgAcknowledgement.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.QueryPacketCommitmentsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.MsgAcknowledgement(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.port_id = reader.string(); + message.packet = $root.ibc.core.channel.v1.Packet.decode(reader, reader.uint32()); break; case 2: - message.channel_id = reader.string(); + message.acknowledgement = reader.bytes(); break; case 3: - message.pagination = $root.cosmos.base.query.v1beta1.PageRequest.decode(reader, reader.uint32()); + message.proof_acked = reader.bytes(); + break; + case 4: + message.proof_height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); + break; + case 5: + message.signer = reader.string(); break; default: reader.skipType(tag & 7); @@ -44500,132 +51308,168 @@ }; /** - * Decodes a QueryPacketCommitmentsRequest message from the specified reader or buffer, length delimited. + * Decodes a MsgAcknowledgement message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.channel.v1.QueryPacketCommitmentsRequest + * @memberof ibc.core.channel.v1.MsgAcknowledgement * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.channel.v1.QueryPacketCommitmentsRequest} QueryPacketCommitmentsRequest + * @returns {ibc.core.channel.v1.MsgAcknowledgement} MsgAcknowledgement * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryPacketCommitmentsRequest.decodeDelimited = function decodeDelimited(reader) { + MsgAcknowledgement.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryPacketCommitmentsRequest message. + * Verifies a MsgAcknowledgement message. * @function verify - * @memberof ibc.core.channel.v1.QueryPacketCommitmentsRequest + * @memberof ibc.core.channel.v1.MsgAcknowledgement * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryPacketCommitmentsRequest.verify = function verify(message) { + MsgAcknowledgement.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.port_id != null && message.hasOwnProperty("port_id")) - if (!$util.isString(message.port_id)) - return "port_id: string expected"; - if (message.channel_id != null && message.hasOwnProperty("channel_id")) - if (!$util.isString(message.channel_id)) - return "channel_id: string expected"; - if (message.pagination != null && message.hasOwnProperty("pagination")) { - var error = $root.cosmos.base.query.v1beta1.PageRequest.verify(message.pagination); + if (message.packet != null && message.hasOwnProperty("packet")) { + var error = $root.ibc.core.channel.v1.Packet.verify(message.packet); if (error) - return "pagination." + error; + return "packet." + error; + } + if (message.acknowledgement != null && message.hasOwnProperty("acknowledgement")) + if (!(message.acknowledgement && typeof message.acknowledgement.length === "number" || $util.isString(message.acknowledgement))) + return "acknowledgement: buffer expected"; + if (message.proof_acked != null && message.hasOwnProperty("proof_acked")) + if (!(message.proof_acked && typeof message.proof_acked.length === "number" || $util.isString(message.proof_acked))) + return "proof_acked: buffer expected"; + if (message.proof_height != null && message.hasOwnProperty("proof_height")) { + var error = $root.ibc.core.client.v1.Height.verify(message.proof_height); + if (error) + return "proof_height." + error; } + if (message.signer != null && message.hasOwnProperty("signer")) + if (!$util.isString(message.signer)) + return "signer: string expected"; return null; }; /** - * Creates a QueryPacketCommitmentsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MsgAcknowledgement message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.channel.v1.QueryPacketCommitmentsRequest + * @memberof ibc.core.channel.v1.MsgAcknowledgement * @static * @param {Object.} object Plain object - * @returns {ibc.core.channel.v1.QueryPacketCommitmentsRequest} QueryPacketCommitmentsRequest + * @returns {ibc.core.channel.v1.MsgAcknowledgement} MsgAcknowledgement */ - QueryPacketCommitmentsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.channel.v1.QueryPacketCommitmentsRequest) + MsgAcknowledgement.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.channel.v1.MsgAcknowledgement) return object; - var message = new $root.ibc.core.channel.v1.QueryPacketCommitmentsRequest(); - if (object.port_id != null) - message.port_id = String(object.port_id); - if (object.channel_id != null) - message.channel_id = String(object.channel_id); - if (object.pagination != null) { - if (typeof object.pagination !== "object") - throw TypeError(".ibc.core.channel.v1.QueryPacketCommitmentsRequest.pagination: object expected"); - message.pagination = $root.cosmos.base.query.v1beta1.PageRequest.fromObject(object.pagination); + var message = new $root.ibc.core.channel.v1.MsgAcknowledgement(); + if (object.packet != null) { + if (typeof object.packet !== "object") + throw TypeError(".ibc.core.channel.v1.MsgAcknowledgement.packet: object expected"); + message.packet = $root.ibc.core.channel.v1.Packet.fromObject(object.packet); } + if (object.acknowledgement != null) + if (typeof object.acknowledgement === "string") + $util.base64.decode(object.acknowledgement, message.acknowledgement = $util.newBuffer($util.base64.length(object.acknowledgement)), 0); + else if (object.acknowledgement.length) + message.acknowledgement = object.acknowledgement; + if (object.proof_acked != null) + if (typeof object.proof_acked === "string") + $util.base64.decode(object.proof_acked, message.proof_acked = $util.newBuffer($util.base64.length(object.proof_acked)), 0); + else if (object.proof_acked.length) + message.proof_acked = object.proof_acked; + if (object.proof_height != null) { + if (typeof object.proof_height !== "object") + throw TypeError(".ibc.core.channel.v1.MsgAcknowledgement.proof_height: object expected"); + message.proof_height = $root.ibc.core.client.v1.Height.fromObject(object.proof_height); + } + if (object.signer != null) + message.signer = String(object.signer); return message; }; /** - * Creates a plain object from a QueryPacketCommitmentsRequest message. Also converts values to other types if specified. + * Creates a plain object from a MsgAcknowledgement message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.channel.v1.QueryPacketCommitmentsRequest + * @memberof ibc.core.channel.v1.MsgAcknowledgement * @static - * @param {ibc.core.channel.v1.QueryPacketCommitmentsRequest} message QueryPacketCommitmentsRequest + * @param {ibc.core.channel.v1.MsgAcknowledgement} message MsgAcknowledgement * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryPacketCommitmentsRequest.toObject = function toObject(message, options) { + MsgAcknowledgement.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.port_id = ""; - object.channel_id = ""; - object.pagination = null; + object.packet = null; + if (options.bytes === String) + object.acknowledgement = ""; + else { + object.acknowledgement = []; + if (options.bytes !== Array) + object.acknowledgement = $util.newBuffer(object.acknowledgement); + } + if (options.bytes === String) + object.proof_acked = ""; + else { + object.proof_acked = []; + if (options.bytes !== Array) + object.proof_acked = $util.newBuffer(object.proof_acked); + } + object.proof_height = null; + object.signer = ""; } - if (message.port_id != null && message.hasOwnProperty("port_id")) - object.port_id = message.port_id; - if (message.channel_id != null && message.hasOwnProperty("channel_id")) - object.channel_id = message.channel_id; - if (message.pagination != null && message.hasOwnProperty("pagination")) - object.pagination = $root.cosmos.base.query.v1beta1.PageRequest.toObject(message.pagination, options); + if (message.packet != null && message.hasOwnProperty("packet")) + object.packet = $root.ibc.core.channel.v1.Packet.toObject(message.packet, options); + if (message.acknowledgement != null && message.hasOwnProperty("acknowledgement")) + object.acknowledgement = options.bytes === String ? $util.base64.encode(message.acknowledgement, 0, message.acknowledgement.length) : options.bytes === Array ? Array.prototype.slice.call(message.acknowledgement) : message.acknowledgement; + if (message.proof_acked != null && message.hasOwnProperty("proof_acked")) + object.proof_acked = options.bytes === String ? $util.base64.encode(message.proof_acked, 0, message.proof_acked.length) : options.bytes === Array ? Array.prototype.slice.call(message.proof_acked) : message.proof_acked; + if (message.proof_height != null && message.hasOwnProperty("proof_height")) + object.proof_height = $root.ibc.core.client.v1.Height.toObject(message.proof_height, options); + if (message.signer != null && message.hasOwnProperty("signer")) + object.signer = message.signer; return object; }; /** - * Converts this QueryPacketCommitmentsRequest to JSON. + * Converts this MsgAcknowledgement to JSON. * @function toJSON - * @memberof ibc.core.channel.v1.QueryPacketCommitmentsRequest + * @memberof ibc.core.channel.v1.MsgAcknowledgement * @instance * @returns {Object.} JSON object */ - QueryPacketCommitmentsRequest.prototype.toJSON = function toJSON() { + MsgAcknowledgement.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryPacketCommitmentsRequest; + return MsgAcknowledgement; })(); - v1.QueryPacketCommitmentsResponse = (function() { + v1.MsgAcknowledgementResponse = (function() { /** - * Properties of a QueryPacketCommitmentsResponse. + * Properties of a MsgAcknowledgementResponse. * @memberof ibc.core.channel.v1 - * @interface IQueryPacketCommitmentsResponse - * @property {Array.|null} [commitments] QueryPacketCommitmentsResponse commitments - * @property {cosmos.base.query.v1beta1.IPageResponse|null} [pagination] QueryPacketCommitmentsResponse pagination - * @property {ibc.core.client.v1.IHeight|null} [height] QueryPacketCommitmentsResponse height + * @interface IMsgAcknowledgementResponse + * @property {ibc.core.channel.v1.ResponseResultType|null} [result] MsgAcknowledgementResponse result */ /** - * Constructs a new QueryPacketCommitmentsResponse. + * Constructs a new MsgAcknowledgementResponse. * @memberof ibc.core.channel.v1 - * @classdesc Represents a QueryPacketCommitmentsResponse. - * @implements IQueryPacketCommitmentsResponse + * @classdesc Represents a MsgAcknowledgementResponse. + * @implements IMsgAcknowledgementResponse * @constructor - * @param {ibc.core.channel.v1.IQueryPacketCommitmentsResponse=} [properties] Properties to set + * @param {ibc.core.channel.v1.IMsgAcknowledgementResponse=} [properties] Properties to set */ - function QueryPacketCommitmentsResponse(properties) { - this.commitments = []; + function MsgAcknowledgementResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -44633,92 +51477,63 @@ } /** - * QueryPacketCommitmentsResponse commitments. - * @member {Array.} commitments - * @memberof ibc.core.channel.v1.QueryPacketCommitmentsResponse - * @instance - */ - QueryPacketCommitmentsResponse.prototype.commitments = $util.emptyArray; - - /** - * QueryPacketCommitmentsResponse pagination. - * @member {cosmos.base.query.v1beta1.IPageResponse|null|undefined} pagination - * @memberof ibc.core.channel.v1.QueryPacketCommitmentsResponse - * @instance - */ - QueryPacketCommitmentsResponse.prototype.pagination = null; - - /** - * QueryPacketCommitmentsResponse height. - * @member {ibc.core.client.v1.IHeight|null|undefined} height - * @memberof ibc.core.channel.v1.QueryPacketCommitmentsResponse + * MsgAcknowledgementResponse result. + * @member {ibc.core.channel.v1.ResponseResultType} result + * @memberof ibc.core.channel.v1.MsgAcknowledgementResponse * @instance */ - QueryPacketCommitmentsResponse.prototype.height = null; + MsgAcknowledgementResponse.prototype.result = 0; /** - * Encodes the specified QueryPacketCommitmentsResponse message. Does not implicitly {@link ibc.core.channel.v1.QueryPacketCommitmentsResponse.verify|verify} messages. + * Encodes the specified MsgAcknowledgementResponse message. Does not implicitly {@link ibc.core.channel.v1.MsgAcknowledgementResponse.verify|verify} messages. * @function encode - * @memberof ibc.core.channel.v1.QueryPacketCommitmentsResponse + * @memberof ibc.core.channel.v1.MsgAcknowledgementResponse * @static - * @param {ibc.core.channel.v1.IQueryPacketCommitmentsResponse} message QueryPacketCommitmentsResponse message or plain object to encode + * @param {ibc.core.channel.v1.IMsgAcknowledgementResponse} message MsgAcknowledgementResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryPacketCommitmentsResponse.encode = function encode(message, writer) { + MsgAcknowledgementResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.commitments != null && message.commitments.length) - for (var i = 0; i < message.commitments.length; ++i) - $root.ibc.core.channel.v1.PacketState.encode(message.commitments[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.pagination != null && Object.hasOwnProperty.call(message, "pagination")) - $root.cosmos.base.query.v1beta1.PageResponse.encode(message.pagination, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.height != null && Object.hasOwnProperty.call(message, "height")) - $root.ibc.core.client.v1.Height.encode(message.height, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.result != null && Object.hasOwnProperty.call(message, "result")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.result); return writer; }; /** - * Encodes the specified QueryPacketCommitmentsResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryPacketCommitmentsResponse.verify|verify} messages. + * Encodes the specified MsgAcknowledgementResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.MsgAcknowledgementResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.channel.v1.QueryPacketCommitmentsResponse + * @memberof ibc.core.channel.v1.MsgAcknowledgementResponse * @static - * @param {ibc.core.channel.v1.IQueryPacketCommitmentsResponse} message QueryPacketCommitmentsResponse message or plain object to encode + * @param {ibc.core.channel.v1.IMsgAcknowledgementResponse} message MsgAcknowledgementResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryPacketCommitmentsResponse.encodeDelimited = function encodeDelimited(message, writer) { + MsgAcknowledgementResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryPacketCommitmentsResponse message from the specified reader or buffer. + * Decodes a MsgAcknowledgementResponse message from the specified reader or buffer. * @function decode - * @memberof ibc.core.channel.v1.QueryPacketCommitmentsResponse + * @memberof ibc.core.channel.v1.MsgAcknowledgementResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.channel.v1.QueryPacketCommitmentsResponse} QueryPacketCommitmentsResponse + * @returns {ibc.core.channel.v1.MsgAcknowledgementResponse} MsgAcknowledgementResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryPacketCommitmentsResponse.decode = function decode(reader, length) { + MsgAcknowledgementResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.QueryPacketCommitmentsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.MsgAcknowledgementResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.commitments && message.commitments.length)) - message.commitments = []; - message.commitments.push($root.ibc.core.channel.v1.PacketState.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = $root.cosmos.base.query.v1beta1.PageResponse.decode(reader, reader.uint32()); - break; - case 3: - message.height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); + message.result = reader.int32(); break; default: reader.skipType(tag & 7); @@ -44729,622 +51544,576 @@ }; /** - * Decodes a QueryPacketCommitmentsResponse message from the specified reader or buffer, length delimited. + * Decodes a MsgAcknowledgementResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.channel.v1.QueryPacketCommitmentsResponse + * @memberof ibc.core.channel.v1.MsgAcknowledgementResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.channel.v1.QueryPacketCommitmentsResponse} QueryPacketCommitmentsResponse + * @returns {ibc.core.channel.v1.MsgAcknowledgementResponse} MsgAcknowledgementResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryPacketCommitmentsResponse.decodeDelimited = function decodeDelimited(reader) { + MsgAcknowledgementResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryPacketCommitmentsResponse message. + * Verifies a MsgAcknowledgementResponse message. * @function verify - * @memberof ibc.core.channel.v1.QueryPacketCommitmentsResponse + * @memberof ibc.core.channel.v1.MsgAcknowledgementResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryPacketCommitmentsResponse.verify = function verify(message) { + MsgAcknowledgementResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.commitments != null && message.hasOwnProperty("commitments")) { - if (!Array.isArray(message.commitments)) - return "commitments: array expected"; - for (var i = 0; i < message.commitments.length; ++i) { - var error = $root.ibc.core.channel.v1.PacketState.verify(message.commitments[i]); - if (error) - return "commitments." + error; + if (message.result != null && message.hasOwnProperty("result")) + switch (message.result) { + default: + return "result: enum value expected"; + case 0: + case 1: + case 2: + break; } - } - if (message.pagination != null && message.hasOwnProperty("pagination")) { - var error = $root.cosmos.base.query.v1beta1.PageResponse.verify(message.pagination); - if (error) - return "pagination." + error; - } - if (message.height != null && message.hasOwnProperty("height")) { - var error = $root.ibc.core.client.v1.Height.verify(message.height); - if (error) - return "height." + error; - } return null; }; /** - * Creates a QueryPacketCommitmentsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a MsgAcknowledgementResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.channel.v1.QueryPacketCommitmentsResponse + * @memberof ibc.core.channel.v1.MsgAcknowledgementResponse * @static * @param {Object.} object Plain object - * @returns {ibc.core.channel.v1.QueryPacketCommitmentsResponse} QueryPacketCommitmentsResponse + * @returns {ibc.core.channel.v1.MsgAcknowledgementResponse} MsgAcknowledgementResponse */ - QueryPacketCommitmentsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.channel.v1.QueryPacketCommitmentsResponse) + MsgAcknowledgementResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.channel.v1.MsgAcknowledgementResponse) return object; - var message = new $root.ibc.core.channel.v1.QueryPacketCommitmentsResponse(); - if (object.commitments) { - if (!Array.isArray(object.commitments)) - throw TypeError(".ibc.core.channel.v1.QueryPacketCommitmentsResponse.commitments: array expected"); - message.commitments = []; - for (var i = 0; i < object.commitments.length; ++i) { - if (typeof object.commitments[i] !== "object") - throw TypeError(".ibc.core.channel.v1.QueryPacketCommitmentsResponse.commitments: object expected"); - message.commitments[i] = $root.ibc.core.channel.v1.PacketState.fromObject(object.commitments[i]); - } - } - if (object.pagination != null) { - if (typeof object.pagination !== "object") - throw TypeError(".ibc.core.channel.v1.QueryPacketCommitmentsResponse.pagination: object expected"); - message.pagination = $root.cosmos.base.query.v1beta1.PageResponse.fromObject(object.pagination); - } - if (object.height != null) { - if (typeof object.height !== "object") - throw TypeError(".ibc.core.channel.v1.QueryPacketCommitmentsResponse.height: object expected"); - message.height = $root.ibc.core.client.v1.Height.fromObject(object.height); + var message = new $root.ibc.core.channel.v1.MsgAcknowledgementResponse(); + switch (object.result) { + case "RESPONSE_RESULT_TYPE_UNSPECIFIED": + case 0: + message.result = 0; + break; + case "RESPONSE_RESULT_TYPE_NOOP": + case 1: + message.result = 1; + break; + case "RESPONSE_RESULT_TYPE_SUCCESS": + case 2: + message.result = 2; + break; } return message; }; /** - * Creates a plain object from a QueryPacketCommitmentsResponse message. Also converts values to other types if specified. + * Creates a plain object from a MsgAcknowledgementResponse message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.channel.v1.QueryPacketCommitmentsResponse + * @memberof ibc.core.channel.v1.MsgAcknowledgementResponse * @static - * @param {ibc.core.channel.v1.QueryPacketCommitmentsResponse} message QueryPacketCommitmentsResponse + * @param {ibc.core.channel.v1.MsgAcknowledgementResponse} message MsgAcknowledgementResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryPacketCommitmentsResponse.toObject = function toObject(message, options) { + MsgAcknowledgementResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.commitments = []; - if (options.defaults) { - object.pagination = null; - object.height = null; - } - if (message.commitments && message.commitments.length) { - object.commitments = []; - for (var j = 0; j < message.commitments.length; ++j) - object.commitments[j] = $root.ibc.core.channel.v1.PacketState.toObject(message.commitments[j], options); - } - if (message.pagination != null && message.hasOwnProperty("pagination")) - object.pagination = $root.cosmos.base.query.v1beta1.PageResponse.toObject(message.pagination, options); - if (message.height != null && message.hasOwnProperty("height")) - object.height = $root.ibc.core.client.v1.Height.toObject(message.height, options); + if (options.defaults) + object.result = options.enums === String ? "RESPONSE_RESULT_TYPE_UNSPECIFIED" : 0; + if (message.result != null && message.hasOwnProperty("result")) + object.result = options.enums === String ? $root.ibc.core.channel.v1.ResponseResultType[message.result] : message.result; return object; }; /** - * Converts this QueryPacketCommitmentsResponse to JSON. + * Converts this MsgAcknowledgementResponse to JSON. * @function toJSON - * @memberof ibc.core.channel.v1.QueryPacketCommitmentsResponse + * @memberof ibc.core.channel.v1.MsgAcknowledgementResponse * @instance * @returns {Object.} JSON object */ - QueryPacketCommitmentsResponse.prototype.toJSON = function toJSON() { + MsgAcknowledgementResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryPacketCommitmentsResponse; + return MsgAcknowledgementResponse; })(); - v1.QueryPacketReceiptRequest = (function() { + v1.Query = (function() { /** - * Properties of a QueryPacketReceiptRequest. + * Constructs a new Query service. * @memberof ibc.core.channel.v1 - * @interface IQueryPacketReceiptRequest - * @property {string|null} [port_id] QueryPacketReceiptRequest port_id - * @property {string|null} [channel_id] QueryPacketReceiptRequest channel_id - * @property {Long|null} [sequence] QueryPacketReceiptRequest sequence + * @classdesc Represents a Query + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited */ + function Query(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (Query.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Query; /** - * Constructs a new QueryPacketReceiptRequest. - * @memberof ibc.core.channel.v1 - * @classdesc Represents a QueryPacketReceiptRequest. - * @implements IQueryPacketReceiptRequest - * @constructor - * @param {ibc.core.channel.v1.IQueryPacketReceiptRequest=} [properties] Properties to set + * Callback as used by {@link ibc.core.channel.v1.Query#channel}. + * @memberof ibc.core.channel.v1.Query + * @typedef ChannelCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.core.channel.v1.QueryChannelResponse} [response] QueryChannelResponse */ - function QueryPacketReceiptRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } /** - * QueryPacketReceiptRequest port_id. - * @member {string} port_id - * @memberof ibc.core.channel.v1.QueryPacketReceiptRequest + * Calls Channel. + * @function channel + * @memberof ibc.core.channel.v1.Query * @instance + * @param {ibc.core.channel.v1.IQueryChannelRequest} request QueryChannelRequest message or plain object + * @param {ibc.core.channel.v1.Query.ChannelCallback} callback Node-style callback called with the error, if any, and QueryChannelResponse + * @returns {undefined} + * @variation 1 */ - QueryPacketReceiptRequest.prototype.port_id = ""; + Object.defineProperty(Query.prototype.channel = function channel(request, callback) { + return this.rpcCall(channel, $root.ibc.core.channel.v1.QueryChannelRequest, $root.ibc.core.channel.v1.QueryChannelResponse, request, callback); + }, "name", { value: "Channel" }); /** - * QueryPacketReceiptRequest channel_id. - * @member {string} channel_id - * @memberof ibc.core.channel.v1.QueryPacketReceiptRequest + * Calls Channel. + * @function channel + * @memberof ibc.core.channel.v1.Query + * @instance + * @param {ibc.core.channel.v1.IQueryChannelRequest} request QueryChannelRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link ibc.core.channel.v1.Query#channels}. + * @memberof ibc.core.channel.v1.Query + * @typedef ChannelsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.core.channel.v1.QueryChannelsResponse} [response] QueryChannelsResponse + */ + + /** + * Calls Channels. + * @function channels + * @memberof ibc.core.channel.v1.Query * @instance + * @param {ibc.core.channel.v1.IQueryChannelsRequest} request QueryChannelsRequest message or plain object + * @param {ibc.core.channel.v1.Query.ChannelsCallback} callback Node-style callback called with the error, if any, and QueryChannelsResponse + * @returns {undefined} + * @variation 1 */ - QueryPacketReceiptRequest.prototype.channel_id = ""; + Object.defineProperty(Query.prototype.channels = function channels(request, callback) { + return this.rpcCall(channels, $root.ibc.core.channel.v1.QueryChannelsRequest, $root.ibc.core.channel.v1.QueryChannelsResponse, request, callback); + }, "name", { value: "Channels" }); /** - * QueryPacketReceiptRequest sequence. - * @member {Long} sequence - * @memberof ibc.core.channel.v1.QueryPacketReceiptRequest + * Calls Channels. + * @function channels + * @memberof ibc.core.channel.v1.Query + * @instance + * @param {ibc.core.channel.v1.IQueryChannelsRequest} request QueryChannelsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link ibc.core.channel.v1.Query#connectionChannels}. + * @memberof ibc.core.channel.v1.Query + * @typedef ConnectionChannelsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.core.channel.v1.QueryConnectionChannelsResponse} [response] QueryConnectionChannelsResponse + */ + + /** + * Calls ConnectionChannels. + * @function connectionChannels + * @memberof ibc.core.channel.v1.Query + * @instance + * @param {ibc.core.channel.v1.IQueryConnectionChannelsRequest} request QueryConnectionChannelsRequest message or plain object + * @param {ibc.core.channel.v1.Query.ConnectionChannelsCallback} callback Node-style callback called with the error, if any, and QueryConnectionChannelsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Query.prototype.connectionChannels = function connectionChannels(request, callback) { + return this.rpcCall(connectionChannels, $root.ibc.core.channel.v1.QueryConnectionChannelsRequest, $root.ibc.core.channel.v1.QueryConnectionChannelsResponse, request, callback); + }, "name", { value: "ConnectionChannels" }); + + /** + * Calls ConnectionChannels. + * @function connectionChannels + * @memberof ibc.core.channel.v1.Query + * @instance + * @param {ibc.core.channel.v1.IQueryConnectionChannelsRequest} request QueryConnectionChannelsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link ibc.core.channel.v1.Query#channelClientState}. + * @memberof ibc.core.channel.v1.Query + * @typedef ChannelClientStateCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.core.channel.v1.QueryChannelClientStateResponse} [response] QueryChannelClientStateResponse + */ + + /** + * Calls ChannelClientState. + * @function channelClientState + * @memberof ibc.core.channel.v1.Query + * @instance + * @param {ibc.core.channel.v1.IQueryChannelClientStateRequest} request QueryChannelClientStateRequest message or plain object + * @param {ibc.core.channel.v1.Query.ChannelClientStateCallback} callback Node-style callback called with the error, if any, and QueryChannelClientStateResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Query.prototype.channelClientState = function channelClientState(request, callback) { + return this.rpcCall(channelClientState, $root.ibc.core.channel.v1.QueryChannelClientStateRequest, $root.ibc.core.channel.v1.QueryChannelClientStateResponse, request, callback); + }, "name", { value: "ChannelClientState" }); + + /** + * Calls ChannelClientState. + * @function channelClientState + * @memberof ibc.core.channel.v1.Query + * @instance + * @param {ibc.core.channel.v1.IQueryChannelClientStateRequest} request QueryChannelClientStateRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link ibc.core.channel.v1.Query#channelConsensusState}. + * @memberof ibc.core.channel.v1.Query + * @typedef ChannelConsensusStateCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.core.channel.v1.QueryChannelConsensusStateResponse} [response] QueryChannelConsensusStateResponse + */ + + /** + * Calls ChannelConsensusState. + * @function channelConsensusState + * @memberof ibc.core.channel.v1.Query + * @instance + * @param {ibc.core.channel.v1.IQueryChannelConsensusStateRequest} request QueryChannelConsensusStateRequest message or plain object + * @param {ibc.core.channel.v1.Query.ChannelConsensusStateCallback} callback Node-style callback called with the error, if any, and QueryChannelConsensusStateResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Query.prototype.channelConsensusState = function channelConsensusState(request, callback) { + return this.rpcCall(channelConsensusState, $root.ibc.core.channel.v1.QueryChannelConsensusStateRequest, $root.ibc.core.channel.v1.QueryChannelConsensusStateResponse, request, callback); + }, "name", { value: "ChannelConsensusState" }); + + /** + * Calls ChannelConsensusState. + * @function channelConsensusState + * @memberof ibc.core.channel.v1.Query + * @instance + * @param {ibc.core.channel.v1.IQueryChannelConsensusStateRequest} request QueryChannelConsensusStateRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link ibc.core.channel.v1.Query#packetCommitment}. + * @memberof ibc.core.channel.v1.Query + * @typedef PacketCommitmentCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.core.channel.v1.QueryPacketCommitmentResponse} [response] QueryPacketCommitmentResponse + */ + + /** + * Calls PacketCommitment. + * @function packetCommitment + * @memberof ibc.core.channel.v1.Query + * @instance + * @param {ibc.core.channel.v1.IQueryPacketCommitmentRequest} request QueryPacketCommitmentRequest message or plain object + * @param {ibc.core.channel.v1.Query.PacketCommitmentCallback} callback Node-style callback called with the error, if any, and QueryPacketCommitmentResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Query.prototype.packetCommitment = function packetCommitment(request, callback) { + return this.rpcCall(packetCommitment, $root.ibc.core.channel.v1.QueryPacketCommitmentRequest, $root.ibc.core.channel.v1.QueryPacketCommitmentResponse, request, callback); + }, "name", { value: "PacketCommitment" }); + + /** + * Calls PacketCommitment. + * @function packetCommitment + * @memberof ibc.core.channel.v1.Query * @instance + * @param {ibc.core.channel.v1.IQueryPacketCommitmentRequest} request QueryPacketCommitmentRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - QueryPacketReceiptRequest.prototype.sequence = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** - * Encodes the specified QueryPacketReceiptRequest message. Does not implicitly {@link ibc.core.channel.v1.QueryPacketReceiptRequest.verify|verify} messages. - * @function encode - * @memberof ibc.core.channel.v1.QueryPacketReceiptRequest - * @static - * @param {ibc.core.channel.v1.IQueryPacketReceiptRequest} message QueryPacketReceiptRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Callback as used by {@link ibc.core.channel.v1.Query#packetCommitments}. + * @memberof ibc.core.channel.v1.Query + * @typedef PacketCommitmentsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.core.channel.v1.QueryPacketCommitmentsResponse} [response] QueryPacketCommitmentsResponse */ - QueryPacketReceiptRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.port_id != null && Object.hasOwnProperty.call(message, "port_id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.port_id); - if (message.channel_id != null && Object.hasOwnProperty.call(message, "channel_id")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.channel_id); - if (message.sequence != null && Object.hasOwnProperty.call(message, "sequence")) - writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.sequence); - return writer; - }; /** - * Encodes the specified QueryPacketReceiptRequest message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryPacketReceiptRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof ibc.core.channel.v1.QueryPacketReceiptRequest - * @static - * @param {ibc.core.channel.v1.IQueryPacketReceiptRequest} message QueryPacketReceiptRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls PacketCommitments. + * @function packetCommitments + * @memberof ibc.core.channel.v1.Query + * @instance + * @param {ibc.core.channel.v1.IQueryPacketCommitmentsRequest} request QueryPacketCommitmentsRequest message or plain object + * @param {ibc.core.channel.v1.Query.PacketCommitmentsCallback} callback Node-style callback called with the error, if any, and QueryPacketCommitmentsResponse + * @returns {undefined} + * @variation 1 */ - QueryPacketReceiptRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + Object.defineProperty(Query.prototype.packetCommitments = function packetCommitments(request, callback) { + return this.rpcCall(packetCommitments, $root.ibc.core.channel.v1.QueryPacketCommitmentsRequest, $root.ibc.core.channel.v1.QueryPacketCommitmentsResponse, request, callback); + }, "name", { value: "PacketCommitments" }); /** - * Decodes a QueryPacketReceiptRequest message from the specified reader or buffer. - * @function decode - * @memberof ibc.core.channel.v1.QueryPacketReceiptRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.channel.v1.QueryPacketReceiptRequest} QueryPacketReceiptRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls PacketCommitments. + * @function packetCommitments + * @memberof ibc.core.channel.v1.Query + * @instance + * @param {ibc.core.channel.v1.IQueryPacketCommitmentsRequest} request QueryPacketCommitmentsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - QueryPacketReceiptRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.QueryPacketReceiptRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.port_id = reader.string(); - break; - case 2: - message.channel_id = reader.string(); - break; - case 3: - message.sequence = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; /** - * Decodes a QueryPacketReceiptRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ibc.core.channel.v1.QueryPacketReceiptRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.channel.v1.QueryPacketReceiptRequest} QueryPacketReceiptRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link ibc.core.channel.v1.Query#packetReceipt}. + * @memberof ibc.core.channel.v1.Query + * @typedef PacketReceiptCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.core.channel.v1.QueryPacketReceiptResponse} [response] QueryPacketReceiptResponse */ - QueryPacketReceiptRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; /** - * Verifies a QueryPacketReceiptRequest message. - * @function verify - * @memberof ibc.core.channel.v1.QueryPacketReceiptRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Calls PacketReceipt. + * @function packetReceipt + * @memberof ibc.core.channel.v1.Query + * @instance + * @param {ibc.core.channel.v1.IQueryPacketReceiptRequest} request QueryPacketReceiptRequest message or plain object + * @param {ibc.core.channel.v1.Query.PacketReceiptCallback} callback Node-style callback called with the error, if any, and QueryPacketReceiptResponse + * @returns {undefined} + * @variation 1 */ - QueryPacketReceiptRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.port_id != null && message.hasOwnProperty("port_id")) - if (!$util.isString(message.port_id)) - return "port_id: string expected"; - if (message.channel_id != null && message.hasOwnProperty("channel_id")) - if (!$util.isString(message.channel_id)) - return "channel_id: string expected"; - if (message.sequence != null && message.hasOwnProperty("sequence")) - if (!$util.isInteger(message.sequence) && !(message.sequence && $util.isInteger(message.sequence.low) && $util.isInteger(message.sequence.high))) - return "sequence: integer|Long expected"; - return null; - }; + Object.defineProperty(Query.prototype.packetReceipt = function packetReceipt(request, callback) { + return this.rpcCall(packetReceipt, $root.ibc.core.channel.v1.QueryPacketReceiptRequest, $root.ibc.core.channel.v1.QueryPacketReceiptResponse, request, callback); + }, "name", { value: "PacketReceipt" }); /** - * Creates a QueryPacketReceiptRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof ibc.core.channel.v1.QueryPacketReceiptRequest - * @static - * @param {Object.} object Plain object - * @returns {ibc.core.channel.v1.QueryPacketReceiptRequest} QueryPacketReceiptRequest + * Calls PacketReceipt. + * @function packetReceipt + * @memberof ibc.core.channel.v1.Query + * @instance + * @param {ibc.core.channel.v1.IQueryPacketReceiptRequest} request QueryPacketReceiptRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - QueryPacketReceiptRequest.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.channel.v1.QueryPacketReceiptRequest) - return object; - var message = new $root.ibc.core.channel.v1.QueryPacketReceiptRequest(); - if (object.port_id != null) - message.port_id = String(object.port_id); - if (object.channel_id != null) - message.channel_id = String(object.channel_id); - if (object.sequence != null) - if ($util.Long) - (message.sequence = $util.Long.fromValue(object.sequence)).unsigned = true; - else if (typeof object.sequence === "string") - message.sequence = parseInt(object.sequence, 10); - else if (typeof object.sequence === "number") - message.sequence = object.sequence; - else if (typeof object.sequence === "object") - message.sequence = new $util.LongBits(object.sequence.low >>> 0, object.sequence.high >>> 0).toNumber(true); - return message; - }; /** - * Creates a plain object from a QueryPacketReceiptRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof ibc.core.channel.v1.QueryPacketReceiptRequest - * @static - * @param {ibc.core.channel.v1.QueryPacketReceiptRequest} message QueryPacketReceiptRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Callback as used by {@link ibc.core.channel.v1.Query#packetAcknowledgement}. + * @memberof ibc.core.channel.v1.Query + * @typedef PacketAcknowledgementCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.core.channel.v1.QueryPacketAcknowledgementResponse} [response] QueryPacketAcknowledgementResponse */ - QueryPacketReceiptRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.port_id = ""; - object.channel_id = ""; - if ($util.Long) { - var long = new $util.Long(0, 0, true); - object.sequence = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.sequence = options.longs === String ? "0" : 0; - } - if (message.port_id != null && message.hasOwnProperty("port_id")) - object.port_id = message.port_id; - if (message.channel_id != null && message.hasOwnProperty("channel_id")) - object.channel_id = message.channel_id; - if (message.sequence != null && message.hasOwnProperty("sequence")) - if (typeof message.sequence === "number") - object.sequence = options.longs === String ? String(message.sequence) : message.sequence; - else - object.sequence = options.longs === String ? $util.Long.prototype.toString.call(message.sequence) : options.longs === Number ? new $util.LongBits(message.sequence.low >>> 0, message.sequence.high >>> 0).toNumber(true) : message.sequence; - return object; - }; /** - * Converts this QueryPacketReceiptRequest to JSON. - * @function toJSON - * @memberof ibc.core.channel.v1.QueryPacketReceiptRequest + * Calls PacketAcknowledgement. + * @function packetAcknowledgement + * @memberof ibc.core.channel.v1.Query * @instance - * @returns {Object.} JSON object + * @param {ibc.core.channel.v1.IQueryPacketAcknowledgementRequest} request QueryPacketAcknowledgementRequest message or plain object + * @param {ibc.core.channel.v1.Query.PacketAcknowledgementCallback} callback Node-style callback called with the error, if any, and QueryPacketAcknowledgementResponse + * @returns {undefined} + * @variation 1 */ - QueryPacketReceiptRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return QueryPacketReceiptRequest; - })(); - - v1.QueryPacketReceiptResponse = (function() { + Object.defineProperty(Query.prototype.packetAcknowledgement = function packetAcknowledgement(request, callback) { + return this.rpcCall(packetAcknowledgement, $root.ibc.core.channel.v1.QueryPacketAcknowledgementRequest, $root.ibc.core.channel.v1.QueryPacketAcknowledgementResponse, request, callback); + }, "name", { value: "PacketAcknowledgement" }); /** - * Properties of a QueryPacketReceiptResponse. - * @memberof ibc.core.channel.v1 - * @interface IQueryPacketReceiptResponse - * @property {boolean|null} [received] QueryPacketReceiptResponse received - * @property {Uint8Array|null} [proof] QueryPacketReceiptResponse proof - * @property {ibc.core.client.v1.IHeight|null} [proof_height] QueryPacketReceiptResponse proof_height + * Calls PacketAcknowledgement. + * @function packetAcknowledgement + * @memberof ibc.core.channel.v1.Query + * @instance + * @param {ibc.core.channel.v1.IQueryPacketAcknowledgementRequest} request QueryPacketAcknowledgementRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ /** - * Constructs a new QueryPacketReceiptResponse. - * @memberof ibc.core.channel.v1 - * @classdesc Represents a QueryPacketReceiptResponse. - * @implements IQueryPacketReceiptResponse - * @constructor - * @param {ibc.core.channel.v1.IQueryPacketReceiptResponse=} [properties] Properties to set + * Callback as used by {@link ibc.core.channel.v1.Query#packetAcknowledgements}. + * @memberof ibc.core.channel.v1.Query + * @typedef PacketAcknowledgementsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.core.channel.v1.QueryPacketAcknowledgementsResponse} [response] QueryPacketAcknowledgementsResponse */ - function QueryPacketReceiptResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } /** - * QueryPacketReceiptResponse received. - * @member {boolean} received - * @memberof ibc.core.channel.v1.QueryPacketReceiptResponse + * Calls PacketAcknowledgements. + * @function packetAcknowledgements + * @memberof ibc.core.channel.v1.Query * @instance + * @param {ibc.core.channel.v1.IQueryPacketAcknowledgementsRequest} request QueryPacketAcknowledgementsRequest message or plain object + * @param {ibc.core.channel.v1.Query.PacketAcknowledgementsCallback} callback Node-style callback called with the error, if any, and QueryPacketAcknowledgementsResponse + * @returns {undefined} + * @variation 1 */ - QueryPacketReceiptResponse.prototype.received = false; + Object.defineProperty(Query.prototype.packetAcknowledgements = function packetAcknowledgements(request, callback) { + return this.rpcCall(packetAcknowledgements, $root.ibc.core.channel.v1.QueryPacketAcknowledgementsRequest, $root.ibc.core.channel.v1.QueryPacketAcknowledgementsResponse, request, callback); + }, "name", { value: "PacketAcknowledgements" }); /** - * QueryPacketReceiptResponse proof. - * @member {Uint8Array} proof - * @memberof ibc.core.channel.v1.QueryPacketReceiptResponse + * Calls PacketAcknowledgements. + * @function packetAcknowledgements + * @memberof ibc.core.channel.v1.Query * @instance + * @param {ibc.core.channel.v1.IQueryPacketAcknowledgementsRequest} request QueryPacketAcknowledgementsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - QueryPacketReceiptResponse.prototype.proof = $util.newBuffer([]); /** - * QueryPacketReceiptResponse proof_height. - * @member {ibc.core.client.v1.IHeight|null|undefined} proof_height - * @memberof ibc.core.channel.v1.QueryPacketReceiptResponse - * @instance + * Callback as used by {@link ibc.core.channel.v1.Query#unreceivedPackets}. + * @memberof ibc.core.channel.v1.Query + * @typedef UnreceivedPacketsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.core.channel.v1.QueryUnreceivedPacketsResponse} [response] QueryUnreceivedPacketsResponse */ - QueryPacketReceiptResponse.prototype.proof_height = null; /** - * Encodes the specified QueryPacketReceiptResponse message. Does not implicitly {@link ibc.core.channel.v1.QueryPacketReceiptResponse.verify|verify} messages. - * @function encode - * @memberof ibc.core.channel.v1.QueryPacketReceiptResponse - * @static - * @param {ibc.core.channel.v1.IQueryPacketReceiptResponse} message QueryPacketReceiptResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls UnreceivedPackets. + * @function unreceivedPackets + * @memberof ibc.core.channel.v1.Query + * @instance + * @param {ibc.core.channel.v1.IQueryUnreceivedPacketsRequest} request QueryUnreceivedPacketsRequest message or plain object + * @param {ibc.core.channel.v1.Query.UnreceivedPacketsCallback} callback Node-style callback called with the error, if any, and QueryUnreceivedPacketsResponse + * @returns {undefined} + * @variation 1 */ - QueryPacketReceiptResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.received != null && Object.hasOwnProperty.call(message, "received")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.received); - if (message.proof != null && Object.hasOwnProperty.call(message, "proof")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.proof); - if (message.proof_height != null && Object.hasOwnProperty.call(message, "proof_height")) - $root.ibc.core.client.v1.Height.encode(message.proof_height, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - return writer; - }; + Object.defineProperty(Query.prototype.unreceivedPackets = function unreceivedPackets(request, callback) { + return this.rpcCall(unreceivedPackets, $root.ibc.core.channel.v1.QueryUnreceivedPacketsRequest, $root.ibc.core.channel.v1.QueryUnreceivedPacketsResponse, request, callback); + }, "name", { value: "UnreceivedPackets" }); /** - * Encodes the specified QueryPacketReceiptResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryPacketReceiptResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof ibc.core.channel.v1.QueryPacketReceiptResponse - * @static - * @param {ibc.core.channel.v1.IQueryPacketReceiptResponse} message QueryPacketReceiptResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls UnreceivedPackets. + * @function unreceivedPackets + * @memberof ibc.core.channel.v1.Query + * @instance + * @param {ibc.core.channel.v1.IQueryUnreceivedPacketsRequest} request QueryUnreceivedPacketsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - QueryPacketReceiptResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; /** - * Decodes a QueryPacketReceiptResponse message from the specified reader or buffer. - * @function decode - * @memberof ibc.core.channel.v1.QueryPacketReceiptResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.channel.v1.QueryPacketReceiptResponse} QueryPacketReceiptResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link ibc.core.channel.v1.Query#unreceivedAcks}. + * @memberof ibc.core.channel.v1.Query + * @typedef UnreceivedAcksCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.core.channel.v1.QueryUnreceivedAcksResponse} [response] QueryUnreceivedAcksResponse */ - QueryPacketReceiptResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.QueryPacketReceiptResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 2: - message.received = reader.bool(); - break; - case 3: - message.proof = reader.bytes(); - break; - case 4: - message.proof_height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; /** - * Decodes a QueryPacketReceiptResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ibc.core.channel.v1.QueryPacketReceiptResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.channel.v1.QueryPacketReceiptResponse} QueryPacketReceiptResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls UnreceivedAcks. + * @function unreceivedAcks + * @memberof ibc.core.channel.v1.Query + * @instance + * @param {ibc.core.channel.v1.IQueryUnreceivedAcksRequest} request QueryUnreceivedAcksRequest message or plain object + * @param {ibc.core.channel.v1.Query.UnreceivedAcksCallback} callback Node-style callback called with the error, if any, and QueryUnreceivedAcksResponse + * @returns {undefined} + * @variation 1 */ - QueryPacketReceiptResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + Object.defineProperty(Query.prototype.unreceivedAcks = function unreceivedAcks(request, callback) { + return this.rpcCall(unreceivedAcks, $root.ibc.core.channel.v1.QueryUnreceivedAcksRequest, $root.ibc.core.channel.v1.QueryUnreceivedAcksResponse, request, callback); + }, "name", { value: "UnreceivedAcks" }); /** - * Verifies a QueryPacketReceiptResponse message. - * @function verify - * @memberof ibc.core.channel.v1.QueryPacketReceiptResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Calls UnreceivedAcks. + * @function unreceivedAcks + * @memberof ibc.core.channel.v1.Query + * @instance + * @param {ibc.core.channel.v1.IQueryUnreceivedAcksRequest} request QueryUnreceivedAcksRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - QueryPacketReceiptResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.received != null && message.hasOwnProperty("received")) - if (typeof message.received !== "boolean") - return "received: boolean expected"; - if (message.proof != null && message.hasOwnProperty("proof")) - if (!(message.proof && typeof message.proof.length === "number" || $util.isString(message.proof))) - return "proof: buffer expected"; - if (message.proof_height != null && message.hasOwnProperty("proof_height")) { - var error = $root.ibc.core.client.v1.Height.verify(message.proof_height); - if (error) - return "proof_height." + error; - } - return null; - }; /** - * Creates a QueryPacketReceiptResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof ibc.core.channel.v1.QueryPacketReceiptResponse - * @static - * @param {Object.} object Plain object - * @returns {ibc.core.channel.v1.QueryPacketReceiptResponse} QueryPacketReceiptResponse + * Callback as used by {@link ibc.core.channel.v1.Query#nextSequenceReceive}. + * @memberof ibc.core.channel.v1.Query + * @typedef NextSequenceReceiveCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.core.channel.v1.QueryNextSequenceReceiveResponse} [response] QueryNextSequenceReceiveResponse */ - QueryPacketReceiptResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.channel.v1.QueryPacketReceiptResponse) - return object; - var message = new $root.ibc.core.channel.v1.QueryPacketReceiptResponse(); - if (object.received != null) - message.received = Boolean(object.received); - if (object.proof != null) - if (typeof object.proof === "string") - $util.base64.decode(object.proof, message.proof = $util.newBuffer($util.base64.length(object.proof)), 0); - else if (object.proof.length) - message.proof = object.proof; - if (object.proof_height != null) { - if (typeof object.proof_height !== "object") - throw TypeError(".ibc.core.channel.v1.QueryPacketReceiptResponse.proof_height: object expected"); - message.proof_height = $root.ibc.core.client.v1.Height.fromObject(object.proof_height); - } - return message; - }; /** - * Creates a plain object from a QueryPacketReceiptResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof ibc.core.channel.v1.QueryPacketReceiptResponse - * @static - * @param {ibc.core.channel.v1.QueryPacketReceiptResponse} message QueryPacketReceiptResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Calls NextSequenceReceive. + * @function nextSequenceReceive + * @memberof ibc.core.channel.v1.Query + * @instance + * @param {ibc.core.channel.v1.IQueryNextSequenceReceiveRequest} request QueryNextSequenceReceiveRequest message or plain object + * @param {ibc.core.channel.v1.Query.NextSequenceReceiveCallback} callback Node-style callback called with the error, if any, and QueryNextSequenceReceiveResponse + * @returns {undefined} + * @variation 1 */ - QueryPacketReceiptResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.received = false; - if (options.bytes === String) - object.proof = ""; - else { - object.proof = []; - if (options.bytes !== Array) - object.proof = $util.newBuffer(object.proof); - } - object.proof_height = null; - } - if (message.received != null && message.hasOwnProperty("received")) - object.received = message.received; - if (message.proof != null && message.hasOwnProperty("proof")) - object.proof = options.bytes === String ? $util.base64.encode(message.proof, 0, message.proof.length) : options.bytes === Array ? Array.prototype.slice.call(message.proof) : message.proof; - if (message.proof_height != null && message.hasOwnProperty("proof_height")) - object.proof_height = $root.ibc.core.client.v1.Height.toObject(message.proof_height, options); - return object; - }; + Object.defineProperty(Query.prototype.nextSequenceReceive = function nextSequenceReceive(request, callback) { + return this.rpcCall(nextSequenceReceive, $root.ibc.core.channel.v1.QueryNextSequenceReceiveRequest, $root.ibc.core.channel.v1.QueryNextSequenceReceiveResponse, request, callback); + }, "name", { value: "NextSequenceReceive" }); /** - * Converts this QueryPacketReceiptResponse to JSON. - * @function toJSON - * @memberof ibc.core.channel.v1.QueryPacketReceiptResponse + * Calls NextSequenceReceive. + * @function nextSequenceReceive + * @memberof ibc.core.channel.v1.Query * @instance - * @returns {Object.} JSON object + * @param {ibc.core.channel.v1.IQueryNextSequenceReceiveRequest} request QueryNextSequenceReceiveRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - QueryPacketReceiptResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - return QueryPacketReceiptResponse; + return Query; })(); - v1.QueryPacketAcknowledgementRequest = (function() { + v1.QueryChannelRequest = (function() { /** - * Properties of a QueryPacketAcknowledgementRequest. + * Properties of a QueryChannelRequest. * @memberof ibc.core.channel.v1 - * @interface IQueryPacketAcknowledgementRequest - * @property {string|null} [port_id] QueryPacketAcknowledgementRequest port_id - * @property {string|null} [channel_id] QueryPacketAcknowledgementRequest channel_id - * @property {Long|null} [sequence] QueryPacketAcknowledgementRequest sequence + * @interface IQueryChannelRequest + * @property {string|null} [port_id] QueryChannelRequest port_id + * @property {string|null} [channel_id] QueryChannelRequest channel_id */ /** - * Constructs a new QueryPacketAcknowledgementRequest. + * Constructs a new QueryChannelRequest. * @memberof ibc.core.channel.v1 - * @classdesc Represents a QueryPacketAcknowledgementRequest. - * @implements IQueryPacketAcknowledgementRequest + * @classdesc Represents a QueryChannelRequest. + * @implements IQueryChannelRequest * @constructor - * @param {ibc.core.channel.v1.IQueryPacketAcknowledgementRequest=} [properties] Properties to set + * @param {ibc.core.channel.v1.IQueryChannelRequest=} [properties] Properties to set */ - function QueryPacketAcknowledgementRequest(properties) { + function QueryChannelRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -45352,78 +52121,68 @@ } /** - * QueryPacketAcknowledgementRequest port_id. + * QueryChannelRequest port_id. * @member {string} port_id - * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementRequest + * @memberof ibc.core.channel.v1.QueryChannelRequest * @instance */ - QueryPacketAcknowledgementRequest.prototype.port_id = ""; + QueryChannelRequest.prototype.port_id = ""; /** - * QueryPacketAcknowledgementRequest channel_id. + * QueryChannelRequest channel_id. * @member {string} channel_id - * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementRequest - * @instance - */ - QueryPacketAcknowledgementRequest.prototype.channel_id = ""; - - /** - * QueryPacketAcknowledgementRequest sequence. - * @member {Long} sequence - * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementRequest + * @memberof ibc.core.channel.v1.QueryChannelRequest * @instance */ - QueryPacketAcknowledgementRequest.prototype.sequence = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + QueryChannelRequest.prototype.channel_id = ""; /** - * Encodes the specified QueryPacketAcknowledgementRequest message. Does not implicitly {@link ibc.core.channel.v1.QueryPacketAcknowledgementRequest.verify|verify} messages. + * Encodes the specified QueryChannelRequest message. Does not implicitly {@link ibc.core.channel.v1.QueryChannelRequest.verify|verify} messages. * @function encode - * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementRequest + * @memberof ibc.core.channel.v1.QueryChannelRequest * @static - * @param {ibc.core.channel.v1.IQueryPacketAcknowledgementRequest} message QueryPacketAcknowledgementRequest message or plain object to encode + * @param {ibc.core.channel.v1.IQueryChannelRequest} message QueryChannelRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryPacketAcknowledgementRequest.encode = function encode(message, writer) { + QueryChannelRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.port_id != null && Object.hasOwnProperty.call(message, "port_id")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.port_id); if (message.channel_id != null && Object.hasOwnProperty.call(message, "channel_id")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.channel_id); - if (message.sequence != null && Object.hasOwnProperty.call(message, "sequence")) - writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.sequence); return writer; }; /** - * Encodes the specified QueryPacketAcknowledgementRequest message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryPacketAcknowledgementRequest.verify|verify} messages. + * Encodes the specified QueryChannelRequest message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryChannelRequest.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementRequest + * @memberof ibc.core.channel.v1.QueryChannelRequest * @static - * @param {ibc.core.channel.v1.IQueryPacketAcknowledgementRequest} message QueryPacketAcknowledgementRequest message or plain object to encode + * @param {ibc.core.channel.v1.IQueryChannelRequest} message QueryChannelRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryPacketAcknowledgementRequest.encodeDelimited = function encodeDelimited(message, writer) { + QueryChannelRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryPacketAcknowledgementRequest message from the specified reader or buffer. + * Decodes a QueryChannelRequest message from the specified reader or buffer. * @function decode - * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementRequest + * @memberof ibc.core.channel.v1.QueryChannelRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.channel.v1.QueryPacketAcknowledgementRequest} QueryPacketAcknowledgementRequest + * @returns {ibc.core.channel.v1.QueryChannelRequest} QueryChannelRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryPacketAcknowledgementRequest.decode = function decode(reader, length) { + QueryChannelRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.QueryPacketAcknowledgementRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.QueryChannelRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -45433,9 +52192,6 @@ case 2: message.channel_id = reader.string(); break; - case 3: - message.sequence = reader.uint64(); - break; default: reader.skipType(tag & 7); break; @@ -45445,30 +52201,30 @@ }; /** - * Decodes a QueryPacketAcknowledgementRequest message from the specified reader or buffer, length delimited. + * Decodes a QueryChannelRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementRequest + * @memberof ibc.core.channel.v1.QueryChannelRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.channel.v1.QueryPacketAcknowledgementRequest} QueryPacketAcknowledgementRequest + * @returns {ibc.core.channel.v1.QueryChannelRequest} QueryChannelRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryPacketAcknowledgementRequest.decodeDelimited = function decodeDelimited(reader) { + QueryChannelRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryPacketAcknowledgementRequest message. + * Verifies a QueryChannelRequest message. * @function verify - * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementRequest + * @memberof ibc.core.channel.v1.QueryChannelRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryPacketAcknowledgementRequest.verify = function verify(message) { + QueryChannelRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.port_id != null && message.hasOwnProperty("port_id")) @@ -45477,108 +52233,86 @@ if (message.channel_id != null && message.hasOwnProperty("channel_id")) if (!$util.isString(message.channel_id)) return "channel_id: string expected"; - if (message.sequence != null && message.hasOwnProperty("sequence")) - if (!$util.isInteger(message.sequence) && !(message.sequence && $util.isInteger(message.sequence.low) && $util.isInteger(message.sequence.high))) - return "sequence: integer|Long expected"; return null; }; /** - * Creates a QueryPacketAcknowledgementRequest message from a plain object. Also converts values to their respective internal types. + * Creates a QueryChannelRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementRequest + * @memberof ibc.core.channel.v1.QueryChannelRequest * @static * @param {Object.} object Plain object - * @returns {ibc.core.channel.v1.QueryPacketAcknowledgementRequest} QueryPacketAcknowledgementRequest + * @returns {ibc.core.channel.v1.QueryChannelRequest} QueryChannelRequest */ - QueryPacketAcknowledgementRequest.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.channel.v1.QueryPacketAcknowledgementRequest) + QueryChannelRequest.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.channel.v1.QueryChannelRequest) return object; - var message = new $root.ibc.core.channel.v1.QueryPacketAcknowledgementRequest(); + var message = new $root.ibc.core.channel.v1.QueryChannelRequest(); if (object.port_id != null) message.port_id = String(object.port_id); if (object.channel_id != null) message.channel_id = String(object.channel_id); - if (object.sequence != null) - if ($util.Long) - (message.sequence = $util.Long.fromValue(object.sequence)).unsigned = true; - else if (typeof object.sequence === "string") - message.sequence = parseInt(object.sequence, 10); - else if (typeof object.sequence === "number") - message.sequence = object.sequence; - else if (typeof object.sequence === "object") - message.sequence = new $util.LongBits(object.sequence.low >>> 0, object.sequence.high >>> 0).toNumber(true); return message; }; /** - * Creates a plain object from a QueryPacketAcknowledgementRequest message. Also converts values to other types if specified. + * Creates a plain object from a QueryChannelRequest message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementRequest + * @memberof ibc.core.channel.v1.QueryChannelRequest * @static - * @param {ibc.core.channel.v1.QueryPacketAcknowledgementRequest} message QueryPacketAcknowledgementRequest + * @param {ibc.core.channel.v1.QueryChannelRequest} message QueryChannelRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryPacketAcknowledgementRequest.toObject = function toObject(message, options) { + QueryChannelRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.port_id = ""; object.channel_id = ""; - if ($util.Long) { - var long = new $util.Long(0, 0, true); - object.sequence = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.sequence = options.longs === String ? "0" : 0; } if (message.port_id != null && message.hasOwnProperty("port_id")) object.port_id = message.port_id; if (message.channel_id != null && message.hasOwnProperty("channel_id")) object.channel_id = message.channel_id; - if (message.sequence != null && message.hasOwnProperty("sequence")) - if (typeof message.sequence === "number") - object.sequence = options.longs === String ? String(message.sequence) : message.sequence; - else - object.sequence = options.longs === String ? $util.Long.prototype.toString.call(message.sequence) : options.longs === Number ? new $util.LongBits(message.sequence.low >>> 0, message.sequence.high >>> 0).toNumber(true) : message.sequence; return object; }; /** - * Converts this QueryPacketAcknowledgementRequest to JSON. + * Converts this QueryChannelRequest to JSON. * @function toJSON - * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementRequest + * @memberof ibc.core.channel.v1.QueryChannelRequest * @instance * @returns {Object.} JSON object */ - QueryPacketAcknowledgementRequest.prototype.toJSON = function toJSON() { + QueryChannelRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryPacketAcknowledgementRequest; + return QueryChannelRequest; })(); - v1.QueryPacketAcknowledgementResponse = (function() { + v1.QueryChannelResponse = (function() { /** - * Properties of a QueryPacketAcknowledgementResponse. + * Properties of a QueryChannelResponse. * @memberof ibc.core.channel.v1 - * @interface IQueryPacketAcknowledgementResponse - * @property {Uint8Array|null} [acknowledgement] QueryPacketAcknowledgementResponse acknowledgement - * @property {Uint8Array|null} [proof] QueryPacketAcknowledgementResponse proof - * @property {ibc.core.client.v1.IHeight|null} [proof_height] QueryPacketAcknowledgementResponse proof_height + * @interface IQueryChannelResponse + * @property {ibc.core.channel.v1.IChannel|null} [channel] QueryChannelResponse channel + * @property {Uint8Array|null} [proof] QueryChannelResponse proof + * @property {ibc.core.client.v1.IHeight|null} [proof_height] QueryChannelResponse proof_height */ /** - * Constructs a new QueryPacketAcknowledgementResponse. + * Constructs a new QueryChannelResponse. * @memberof ibc.core.channel.v1 - * @classdesc Represents a QueryPacketAcknowledgementResponse. - * @implements IQueryPacketAcknowledgementResponse + * @classdesc Represents a QueryChannelResponse. + * @implements IQueryChannelResponse * @constructor - * @param {ibc.core.channel.v1.IQueryPacketAcknowledgementResponse=} [properties] Properties to set + * @param {ibc.core.channel.v1.IQueryChannelResponse=} [properties] Properties to set */ - function QueryPacketAcknowledgementResponse(properties) { + function QueryChannelResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -45586,43 +52320,43 @@ } /** - * QueryPacketAcknowledgementResponse acknowledgement. - * @member {Uint8Array} acknowledgement - * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementResponse + * QueryChannelResponse channel. + * @member {ibc.core.channel.v1.IChannel|null|undefined} channel + * @memberof ibc.core.channel.v1.QueryChannelResponse * @instance */ - QueryPacketAcknowledgementResponse.prototype.acknowledgement = $util.newBuffer([]); + QueryChannelResponse.prototype.channel = null; /** - * QueryPacketAcknowledgementResponse proof. + * QueryChannelResponse proof. * @member {Uint8Array} proof - * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementResponse + * @memberof ibc.core.channel.v1.QueryChannelResponse * @instance */ - QueryPacketAcknowledgementResponse.prototype.proof = $util.newBuffer([]); + QueryChannelResponse.prototype.proof = $util.newBuffer([]); /** - * QueryPacketAcknowledgementResponse proof_height. + * QueryChannelResponse proof_height. * @member {ibc.core.client.v1.IHeight|null|undefined} proof_height - * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementResponse + * @memberof ibc.core.channel.v1.QueryChannelResponse * @instance */ - QueryPacketAcknowledgementResponse.prototype.proof_height = null; + QueryChannelResponse.prototype.proof_height = null; /** - * Encodes the specified QueryPacketAcknowledgementResponse message. Does not implicitly {@link ibc.core.channel.v1.QueryPacketAcknowledgementResponse.verify|verify} messages. + * Encodes the specified QueryChannelResponse message. Does not implicitly {@link ibc.core.channel.v1.QueryChannelResponse.verify|verify} messages. * @function encode - * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementResponse + * @memberof ibc.core.channel.v1.QueryChannelResponse * @static - * @param {ibc.core.channel.v1.IQueryPacketAcknowledgementResponse} message QueryPacketAcknowledgementResponse message or plain object to encode + * @param {ibc.core.channel.v1.IQueryChannelResponse} message QueryChannelResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryPacketAcknowledgementResponse.encode = function encode(message, writer) { + QueryChannelResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.acknowledgement != null && Object.hasOwnProperty.call(message, "acknowledgement")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.acknowledgement); + if (message.channel != null && Object.hasOwnProperty.call(message, "channel")) + $root.ibc.core.channel.v1.Channel.encode(message.channel, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.proof != null && Object.hasOwnProperty.call(message, "proof")) writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.proof); if (message.proof_height != null && Object.hasOwnProperty.call(message, "proof_height")) @@ -45631,38 +52365,38 @@ }; /** - * Encodes the specified QueryPacketAcknowledgementResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryPacketAcknowledgementResponse.verify|verify} messages. + * Encodes the specified QueryChannelResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryChannelResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementResponse + * @memberof ibc.core.channel.v1.QueryChannelResponse * @static - * @param {ibc.core.channel.v1.IQueryPacketAcknowledgementResponse} message QueryPacketAcknowledgementResponse message or plain object to encode + * @param {ibc.core.channel.v1.IQueryChannelResponse} message QueryChannelResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryPacketAcknowledgementResponse.encodeDelimited = function encodeDelimited(message, writer) { + QueryChannelResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryPacketAcknowledgementResponse message from the specified reader or buffer. + * Decodes a QueryChannelResponse message from the specified reader or buffer. * @function decode - * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementResponse + * @memberof ibc.core.channel.v1.QueryChannelResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.channel.v1.QueryPacketAcknowledgementResponse} QueryPacketAcknowledgementResponse + * @returns {ibc.core.channel.v1.QueryChannelResponse} QueryChannelResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryPacketAcknowledgementResponse.decode = function decode(reader, length) { + QueryChannelResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.QueryPacketAcknowledgementResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.QueryChannelResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.acknowledgement = reader.bytes(); + message.channel = $root.ibc.core.channel.v1.Channel.decode(reader, reader.uint32()); break; case 2: message.proof = reader.bytes(); @@ -45679,432 +52413,143 @@ }; /** - * Decodes a QueryPacketAcknowledgementResponse message from the specified reader or buffer, length delimited. + * Decodes a QueryChannelResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementResponse + * @memberof ibc.core.channel.v1.QueryChannelResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.channel.v1.QueryPacketAcknowledgementResponse} QueryPacketAcknowledgementResponse + * @returns {ibc.core.channel.v1.QueryChannelResponse} QueryChannelResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryPacketAcknowledgementResponse.decodeDelimited = function decodeDelimited(reader) { + QueryChannelResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryPacketAcknowledgementResponse message. + * Verifies a QueryChannelResponse message. * @function verify - * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementResponse + * @memberof ibc.core.channel.v1.QueryChannelResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryPacketAcknowledgementResponse.verify = function verify(message) { + QueryChannelResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.acknowledgement != null && message.hasOwnProperty("acknowledgement")) - if (!(message.acknowledgement && typeof message.acknowledgement.length === "number" || $util.isString(message.acknowledgement))) - return "acknowledgement: buffer expected"; - if (message.proof != null && message.hasOwnProperty("proof")) - if (!(message.proof && typeof message.proof.length === "number" || $util.isString(message.proof))) - return "proof: buffer expected"; - if (message.proof_height != null && message.hasOwnProperty("proof_height")) { - var error = $root.ibc.core.client.v1.Height.verify(message.proof_height); + if (message.channel != null && message.hasOwnProperty("channel")) { + var error = $root.ibc.core.channel.v1.Channel.verify(message.channel); if (error) - return "proof_height." + error; - } - return null; - }; - - /** - * Creates a QueryPacketAcknowledgementResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementResponse - * @static - * @param {Object.} object Plain object - * @returns {ibc.core.channel.v1.QueryPacketAcknowledgementResponse} QueryPacketAcknowledgementResponse - */ - QueryPacketAcknowledgementResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.channel.v1.QueryPacketAcknowledgementResponse) - return object; - var message = new $root.ibc.core.channel.v1.QueryPacketAcknowledgementResponse(); - if (object.acknowledgement != null) - if (typeof object.acknowledgement === "string") - $util.base64.decode(object.acknowledgement, message.acknowledgement = $util.newBuffer($util.base64.length(object.acknowledgement)), 0); - else if (object.acknowledgement.length) - message.acknowledgement = object.acknowledgement; - if (object.proof != null) - if (typeof object.proof === "string") - $util.base64.decode(object.proof, message.proof = $util.newBuffer($util.base64.length(object.proof)), 0); - else if (object.proof.length) - message.proof = object.proof; - if (object.proof_height != null) { - if (typeof object.proof_height !== "object") - throw TypeError(".ibc.core.channel.v1.QueryPacketAcknowledgementResponse.proof_height: object expected"); - message.proof_height = $root.ibc.core.client.v1.Height.fromObject(object.proof_height); - } - return message; - }; - - /** - * Creates a plain object from a QueryPacketAcknowledgementResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementResponse - * @static - * @param {ibc.core.channel.v1.QueryPacketAcknowledgementResponse} message QueryPacketAcknowledgementResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - QueryPacketAcknowledgementResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - if (options.bytes === String) - object.acknowledgement = ""; - else { - object.acknowledgement = []; - if (options.bytes !== Array) - object.acknowledgement = $util.newBuffer(object.acknowledgement); - } - if (options.bytes === String) - object.proof = ""; - else { - object.proof = []; - if (options.bytes !== Array) - object.proof = $util.newBuffer(object.proof); - } - object.proof_height = null; + return "channel." + error; } - if (message.acknowledgement != null && message.hasOwnProperty("acknowledgement")) - object.acknowledgement = options.bytes === String ? $util.base64.encode(message.acknowledgement, 0, message.acknowledgement.length) : options.bytes === Array ? Array.prototype.slice.call(message.acknowledgement) : message.acknowledgement; if (message.proof != null && message.hasOwnProperty("proof")) - object.proof = options.bytes === String ? $util.base64.encode(message.proof, 0, message.proof.length) : options.bytes === Array ? Array.prototype.slice.call(message.proof) : message.proof; - if (message.proof_height != null && message.hasOwnProperty("proof_height")) - object.proof_height = $root.ibc.core.client.v1.Height.toObject(message.proof_height, options); - return object; - }; - - /** - * Converts this QueryPacketAcknowledgementResponse to JSON. - * @function toJSON - * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementResponse - * @instance - * @returns {Object.} JSON object - */ - QueryPacketAcknowledgementResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return QueryPacketAcknowledgementResponse; - })(); - - v1.QueryPacketAcknowledgementsRequest = (function() { - - /** - * Properties of a QueryPacketAcknowledgementsRequest. - * @memberof ibc.core.channel.v1 - * @interface IQueryPacketAcknowledgementsRequest - * @property {string|null} [port_id] QueryPacketAcknowledgementsRequest port_id - * @property {string|null} [channel_id] QueryPacketAcknowledgementsRequest channel_id - * @property {cosmos.base.query.v1beta1.IPageRequest|null} [pagination] QueryPacketAcknowledgementsRequest pagination - * @property {Array.|null} [packet_commitment_sequences] QueryPacketAcknowledgementsRequest packet_commitment_sequences - */ - - /** - * Constructs a new QueryPacketAcknowledgementsRequest. - * @memberof ibc.core.channel.v1 - * @classdesc Represents a QueryPacketAcknowledgementsRequest. - * @implements IQueryPacketAcknowledgementsRequest - * @constructor - * @param {ibc.core.channel.v1.IQueryPacketAcknowledgementsRequest=} [properties] Properties to set - */ - function QueryPacketAcknowledgementsRequest(properties) { - this.packet_commitment_sequences = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * QueryPacketAcknowledgementsRequest port_id. - * @member {string} port_id - * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementsRequest - * @instance - */ - QueryPacketAcknowledgementsRequest.prototype.port_id = ""; - - /** - * QueryPacketAcknowledgementsRequest channel_id. - * @member {string} channel_id - * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementsRequest - * @instance - */ - QueryPacketAcknowledgementsRequest.prototype.channel_id = ""; - - /** - * QueryPacketAcknowledgementsRequest pagination. - * @member {cosmos.base.query.v1beta1.IPageRequest|null|undefined} pagination - * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementsRequest - * @instance - */ - QueryPacketAcknowledgementsRequest.prototype.pagination = null; - - /** - * QueryPacketAcknowledgementsRequest packet_commitment_sequences. - * @member {Array.} packet_commitment_sequences - * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementsRequest - * @instance - */ - QueryPacketAcknowledgementsRequest.prototype.packet_commitment_sequences = $util.emptyArray; - - /** - * Encodes the specified QueryPacketAcknowledgementsRequest message. Does not implicitly {@link ibc.core.channel.v1.QueryPacketAcknowledgementsRequest.verify|verify} messages. - * @function encode - * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementsRequest - * @static - * @param {ibc.core.channel.v1.IQueryPacketAcknowledgementsRequest} message QueryPacketAcknowledgementsRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - QueryPacketAcknowledgementsRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.port_id != null && Object.hasOwnProperty.call(message, "port_id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.port_id); - if (message.channel_id != null && Object.hasOwnProperty.call(message, "channel_id")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.channel_id); - if (message.pagination != null && Object.hasOwnProperty.call(message, "pagination")) - $root.cosmos.base.query.v1beta1.PageRequest.encode(message.pagination, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.packet_commitment_sequences != null && message.packet_commitment_sequences.length) { - writer.uint32(/* id 4, wireType 2 =*/34).fork(); - for (var i = 0; i < message.packet_commitment_sequences.length; ++i) - writer.uint64(message.packet_commitment_sequences[i]); - writer.ldelim(); - } - return writer; - }; - - /** - * Encodes the specified QueryPacketAcknowledgementsRequest message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryPacketAcknowledgementsRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementsRequest - * @static - * @param {ibc.core.channel.v1.IQueryPacketAcknowledgementsRequest} message QueryPacketAcknowledgementsRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - QueryPacketAcknowledgementsRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a QueryPacketAcknowledgementsRequest message from the specified reader or buffer. - * @function decode - * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementsRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.channel.v1.QueryPacketAcknowledgementsRequest} QueryPacketAcknowledgementsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - QueryPacketAcknowledgementsRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.QueryPacketAcknowledgementsRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.port_id = reader.string(); - break; - case 2: - message.channel_id = reader.string(); - break; - case 3: - message.pagination = $root.cosmos.base.query.v1beta1.PageRequest.decode(reader, reader.uint32()); - break; - case 4: - if (!(message.packet_commitment_sequences && message.packet_commitment_sequences.length)) - message.packet_commitment_sequences = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.packet_commitment_sequences.push(reader.uint64()); - } else - message.packet_commitment_sequences.push(reader.uint64()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a QueryPacketAcknowledgementsRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementsRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.channel.v1.QueryPacketAcknowledgementsRequest} QueryPacketAcknowledgementsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - QueryPacketAcknowledgementsRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a QueryPacketAcknowledgementsRequest message. - * @function verify - * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementsRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - QueryPacketAcknowledgementsRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.port_id != null && message.hasOwnProperty("port_id")) - if (!$util.isString(message.port_id)) - return "port_id: string expected"; - if (message.channel_id != null && message.hasOwnProperty("channel_id")) - if (!$util.isString(message.channel_id)) - return "channel_id: string expected"; - if (message.pagination != null && message.hasOwnProperty("pagination")) { - var error = $root.cosmos.base.query.v1beta1.PageRequest.verify(message.pagination); + if (!(message.proof && typeof message.proof.length === "number" || $util.isString(message.proof))) + return "proof: buffer expected"; + if (message.proof_height != null && message.hasOwnProperty("proof_height")) { + var error = $root.ibc.core.client.v1.Height.verify(message.proof_height); if (error) - return "pagination." + error; - } - if (message.packet_commitment_sequences != null && message.hasOwnProperty("packet_commitment_sequences")) { - if (!Array.isArray(message.packet_commitment_sequences)) - return "packet_commitment_sequences: array expected"; - for (var i = 0; i < message.packet_commitment_sequences.length; ++i) - if (!$util.isInteger(message.packet_commitment_sequences[i]) && !(message.packet_commitment_sequences[i] && $util.isInteger(message.packet_commitment_sequences[i].low) && $util.isInteger(message.packet_commitment_sequences[i].high))) - return "packet_commitment_sequences: integer|Long[] expected"; + return "proof_height." + error; } return null; }; /** - * Creates a QueryPacketAcknowledgementsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a QueryChannelResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementsRequest + * @memberof ibc.core.channel.v1.QueryChannelResponse * @static * @param {Object.} object Plain object - * @returns {ibc.core.channel.v1.QueryPacketAcknowledgementsRequest} QueryPacketAcknowledgementsRequest + * @returns {ibc.core.channel.v1.QueryChannelResponse} QueryChannelResponse */ - QueryPacketAcknowledgementsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.channel.v1.QueryPacketAcknowledgementsRequest) + QueryChannelResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.channel.v1.QueryChannelResponse) return object; - var message = new $root.ibc.core.channel.v1.QueryPacketAcknowledgementsRequest(); - if (object.port_id != null) - message.port_id = String(object.port_id); - if (object.channel_id != null) - message.channel_id = String(object.channel_id); - if (object.pagination != null) { - if (typeof object.pagination !== "object") - throw TypeError(".ibc.core.channel.v1.QueryPacketAcknowledgementsRequest.pagination: object expected"); - message.pagination = $root.cosmos.base.query.v1beta1.PageRequest.fromObject(object.pagination); + var message = new $root.ibc.core.channel.v1.QueryChannelResponse(); + if (object.channel != null) { + if (typeof object.channel !== "object") + throw TypeError(".ibc.core.channel.v1.QueryChannelResponse.channel: object expected"); + message.channel = $root.ibc.core.channel.v1.Channel.fromObject(object.channel); } - if (object.packet_commitment_sequences) { - if (!Array.isArray(object.packet_commitment_sequences)) - throw TypeError(".ibc.core.channel.v1.QueryPacketAcknowledgementsRequest.packet_commitment_sequences: array expected"); - message.packet_commitment_sequences = []; - for (var i = 0; i < object.packet_commitment_sequences.length; ++i) - if ($util.Long) - (message.packet_commitment_sequences[i] = $util.Long.fromValue(object.packet_commitment_sequences[i])).unsigned = true; - else if (typeof object.packet_commitment_sequences[i] === "string") - message.packet_commitment_sequences[i] = parseInt(object.packet_commitment_sequences[i], 10); - else if (typeof object.packet_commitment_sequences[i] === "number") - message.packet_commitment_sequences[i] = object.packet_commitment_sequences[i]; - else if (typeof object.packet_commitment_sequences[i] === "object") - message.packet_commitment_sequences[i] = new $util.LongBits(object.packet_commitment_sequences[i].low >>> 0, object.packet_commitment_sequences[i].high >>> 0).toNumber(true); + if (object.proof != null) + if (typeof object.proof === "string") + $util.base64.decode(object.proof, message.proof = $util.newBuffer($util.base64.length(object.proof)), 0); + else if (object.proof.length) + message.proof = object.proof; + if (object.proof_height != null) { + if (typeof object.proof_height !== "object") + throw TypeError(".ibc.core.channel.v1.QueryChannelResponse.proof_height: object expected"); + message.proof_height = $root.ibc.core.client.v1.Height.fromObject(object.proof_height); } return message; }; /** - * Creates a plain object from a QueryPacketAcknowledgementsRequest message. Also converts values to other types if specified. + * Creates a plain object from a QueryChannelResponse message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementsRequest + * @memberof ibc.core.channel.v1.QueryChannelResponse * @static - * @param {ibc.core.channel.v1.QueryPacketAcknowledgementsRequest} message QueryPacketAcknowledgementsRequest + * @param {ibc.core.channel.v1.QueryChannelResponse} message QueryChannelResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryPacketAcknowledgementsRequest.toObject = function toObject(message, options) { + QueryChannelResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.packet_commitment_sequences = []; if (options.defaults) { - object.port_id = ""; - object.channel_id = ""; - object.pagination = null; - } - if (message.port_id != null && message.hasOwnProperty("port_id")) - object.port_id = message.port_id; - if (message.channel_id != null && message.hasOwnProperty("channel_id")) - object.channel_id = message.channel_id; - if (message.pagination != null && message.hasOwnProperty("pagination")) - object.pagination = $root.cosmos.base.query.v1beta1.PageRequest.toObject(message.pagination, options); - if (message.packet_commitment_sequences && message.packet_commitment_sequences.length) { - object.packet_commitment_sequences = []; - for (var j = 0; j < message.packet_commitment_sequences.length; ++j) - if (typeof message.packet_commitment_sequences[j] === "number") - object.packet_commitment_sequences[j] = options.longs === String ? String(message.packet_commitment_sequences[j]) : message.packet_commitment_sequences[j]; - else - object.packet_commitment_sequences[j] = options.longs === String ? $util.Long.prototype.toString.call(message.packet_commitment_sequences[j]) : options.longs === Number ? new $util.LongBits(message.packet_commitment_sequences[j].low >>> 0, message.packet_commitment_sequences[j].high >>> 0).toNumber(true) : message.packet_commitment_sequences[j]; + object.channel = null; + if (options.bytes === String) + object.proof = ""; + else { + object.proof = []; + if (options.bytes !== Array) + object.proof = $util.newBuffer(object.proof); + } + object.proof_height = null; } + if (message.channel != null && message.hasOwnProperty("channel")) + object.channel = $root.ibc.core.channel.v1.Channel.toObject(message.channel, options); + if (message.proof != null && message.hasOwnProperty("proof")) + object.proof = options.bytes === String ? $util.base64.encode(message.proof, 0, message.proof.length) : options.bytes === Array ? Array.prototype.slice.call(message.proof) : message.proof; + if (message.proof_height != null && message.hasOwnProperty("proof_height")) + object.proof_height = $root.ibc.core.client.v1.Height.toObject(message.proof_height, options); return object; }; /** - * Converts this QueryPacketAcknowledgementsRequest to JSON. + * Converts this QueryChannelResponse to JSON. * @function toJSON - * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementsRequest + * @memberof ibc.core.channel.v1.QueryChannelResponse * @instance * @returns {Object.} JSON object */ - QueryPacketAcknowledgementsRequest.prototype.toJSON = function toJSON() { + QueryChannelResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryPacketAcknowledgementsRequest; + return QueryChannelResponse; })(); - v1.QueryPacketAcknowledgementsResponse = (function() { + v1.QueryChannelsRequest = (function() { /** - * Properties of a QueryPacketAcknowledgementsResponse. + * Properties of a QueryChannelsRequest. * @memberof ibc.core.channel.v1 - * @interface IQueryPacketAcknowledgementsResponse - * @property {Array.|null} [acknowledgements] QueryPacketAcknowledgementsResponse acknowledgements - * @property {cosmos.base.query.v1beta1.IPageResponse|null} [pagination] QueryPacketAcknowledgementsResponse pagination - * @property {ibc.core.client.v1.IHeight|null} [height] QueryPacketAcknowledgementsResponse height + * @interface IQueryChannelsRequest + * @property {cosmos.base.query.v1beta1.IPageRequest|null} [pagination] QueryChannelsRequest pagination */ /** - * Constructs a new QueryPacketAcknowledgementsResponse. + * Constructs a new QueryChannelsRequest. * @memberof ibc.core.channel.v1 - * @classdesc Represents a QueryPacketAcknowledgementsResponse. - * @implements IQueryPacketAcknowledgementsResponse + * @classdesc Represents a QueryChannelsRequest. + * @implements IQueryChannelsRequest * @constructor - * @param {ibc.core.channel.v1.IQueryPacketAcknowledgementsResponse=} [properties] Properties to set + * @param {ibc.core.channel.v1.IQueryChannelsRequest=} [properties] Properties to set */ - function QueryPacketAcknowledgementsResponse(properties) { - this.acknowledgements = []; + function QueryChannelsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -46112,92 +52557,63 @@ } /** - * QueryPacketAcknowledgementsResponse acknowledgements. - * @member {Array.} acknowledgements - * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementsResponse - * @instance - */ - QueryPacketAcknowledgementsResponse.prototype.acknowledgements = $util.emptyArray; - - /** - * QueryPacketAcknowledgementsResponse pagination. - * @member {cosmos.base.query.v1beta1.IPageResponse|null|undefined} pagination - * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementsResponse - * @instance - */ - QueryPacketAcknowledgementsResponse.prototype.pagination = null; - - /** - * QueryPacketAcknowledgementsResponse height. - * @member {ibc.core.client.v1.IHeight|null|undefined} height - * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementsResponse + * QueryChannelsRequest pagination. + * @member {cosmos.base.query.v1beta1.IPageRequest|null|undefined} pagination + * @memberof ibc.core.channel.v1.QueryChannelsRequest * @instance */ - QueryPacketAcknowledgementsResponse.prototype.height = null; + QueryChannelsRequest.prototype.pagination = null; /** - * Encodes the specified QueryPacketAcknowledgementsResponse message. Does not implicitly {@link ibc.core.channel.v1.QueryPacketAcknowledgementsResponse.verify|verify} messages. + * Encodes the specified QueryChannelsRequest message. Does not implicitly {@link ibc.core.channel.v1.QueryChannelsRequest.verify|verify} messages. * @function encode - * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementsResponse + * @memberof ibc.core.channel.v1.QueryChannelsRequest * @static - * @param {ibc.core.channel.v1.IQueryPacketAcknowledgementsResponse} message QueryPacketAcknowledgementsResponse message or plain object to encode + * @param {ibc.core.channel.v1.IQueryChannelsRequest} message QueryChannelsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryPacketAcknowledgementsResponse.encode = function encode(message, writer) { + QueryChannelsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.acknowledgements != null && message.acknowledgements.length) - for (var i = 0; i < message.acknowledgements.length; ++i) - $root.ibc.core.channel.v1.PacketState.encode(message.acknowledgements[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.pagination != null && Object.hasOwnProperty.call(message, "pagination")) - $root.cosmos.base.query.v1beta1.PageResponse.encode(message.pagination, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.height != null && Object.hasOwnProperty.call(message, "height")) - $root.ibc.core.client.v1.Height.encode(message.height, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + $root.cosmos.base.query.v1beta1.PageRequest.encode(message.pagination, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified QueryPacketAcknowledgementsResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryPacketAcknowledgementsResponse.verify|verify} messages. + * Encodes the specified QueryChannelsRequest message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryChannelsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementsResponse + * @memberof ibc.core.channel.v1.QueryChannelsRequest * @static - * @param {ibc.core.channel.v1.IQueryPacketAcknowledgementsResponse} message QueryPacketAcknowledgementsResponse message or plain object to encode + * @param {ibc.core.channel.v1.IQueryChannelsRequest} message QueryChannelsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryPacketAcknowledgementsResponse.encodeDelimited = function encodeDelimited(message, writer) { + QueryChannelsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryPacketAcknowledgementsResponse message from the specified reader or buffer. + * Decodes a QueryChannelsRequest message from the specified reader or buffer. * @function decode - * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementsResponse + * @memberof ibc.core.channel.v1.QueryChannelsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.channel.v1.QueryPacketAcknowledgementsResponse} QueryPacketAcknowledgementsResponse + * @returns {ibc.core.channel.v1.QueryChannelsRequest} QueryChannelsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryPacketAcknowledgementsResponse.decode = function decode(reader, length) { + QueryChannelsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.QueryPacketAcknowledgementsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.QueryChannelsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.acknowledgements && message.acknowledgements.length)) - message.acknowledgements = []; - message.acknowledgements.push($root.ibc.core.channel.v1.PacketState.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = $root.cosmos.base.query.v1beta1.PageResponse.decode(reader, reader.uint32()); - break; - case 3: - message.height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); + message.pagination = $root.cosmos.base.query.v1beta1.PageRequest.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -46208,155 +52624,115 @@ }; /** - * Decodes a QueryPacketAcknowledgementsResponse message from the specified reader or buffer, length delimited. + * Decodes a QueryChannelsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementsResponse + * @memberof ibc.core.channel.v1.QueryChannelsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.channel.v1.QueryPacketAcknowledgementsResponse} QueryPacketAcknowledgementsResponse + * @returns {ibc.core.channel.v1.QueryChannelsRequest} QueryChannelsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryPacketAcknowledgementsResponse.decodeDelimited = function decodeDelimited(reader) { + QueryChannelsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryPacketAcknowledgementsResponse message. + * Verifies a QueryChannelsRequest message. * @function verify - * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementsResponse + * @memberof ibc.core.channel.v1.QueryChannelsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryPacketAcknowledgementsResponse.verify = function verify(message) { + QueryChannelsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.acknowledgements != null && message.hasOwnProperty("acknowledgements")) { - if (!Array.isArray(message.acknowledgements)) - return "acknowledgements: array expected"; - for (var i = 0; i < message.acknowledgements.length; ++i) { - var error = $root.ibc.core.channel.v1.PacketState.verify(message.acknowledgements[i]); - if (error) - return "acknowledgements." + error; - } - } if (message.pagination != null && message.hasOwnProperty("pagination")) { - var error = $root.cosmos.base.query.v1beta1.PageResponse.verify(message.pagination); + var error = $root.cosmos.base.query.v1beta1.PageRequest.verify(message.pagination); if (error) return "pagination." + error; } - if (message.height != null && message.hasOwnProperty("height")) { - var error = $root.ibc.core.client.v1.Height.verify(message.height); - if (error) - return "height." + error; - } return null; }; /** - * Creates a QueryPacketAcknowledgementsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a QueryChannelsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementsResponse + * @memberof ibc.core.channel.v1.QueryChannelsRequest * @static * @param {Object.} object Plain object - * @returns {ibc.core.channel.v1.QueryPacketAcknowledgementsResponse} QueryPacketAcknowledgementsResponse + * @returns {ibc.core.channel.v1.QueryChannelsRequest} QueryChannelsRequest */ - QueryPacketAcknowledgementsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.channel.v1.QueryPacketAcknowledgementsResponse) + QueryChannelsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.channel.v1.QueryChannelsRequest) return object; - var message = new $root.ibc.core.channel.v1.QueryPacketAcknowledgementsResponse(); - if (object.acknowledgements) { - if (!Array.isArray(object.acknowledgements)) - throw TypeError(".ibc.core.channel.v1.QueryPacketAcknowledgementsResponse.acknowledgements: array expected"); - message.acknowledgements = []; - for (var i = 0; i < object.acknowledgements.length; ++i) { - if (typeof object.acknowledgements[i] !== "object") - throw TypeError(".ibc.core.channel.v1.QueryPacketAcknowledgementsResponse.acknowledgements: object expected"); - message.acknowledgements[i] = $root.ibc.core.channel.v1.PacketState.fromObject(object.acknowledgements[i]); - } - } + var message = new $root.ibc.core.channel.v1.QueryChannelsRequest(); if (object.pagination != null) { if (typeof object.pagination !== "object") - throw TypeError(".ibc.core.channel.v1.QueryPacketAcknowledgementsResponse.pagination: object expected"); - message.pagination = $root.cosmos.base.query.v1beta1.PageResponse.fromObject(object.pagination); - } - if (object.height != null) { - if (typeof object.height !== "object") - throw TypeError(".ibc.core.channel.v1.QueryPacketAcknowledgementsResponse.height: object expected"); - message.height = $root.ibc.core.client.v1.Height.fromObject(object.height); + throw TypeError(".ibc.core.channel.v1.QueryChannelsRequest.pagination: object expected"); + message.pagination = $root.cosmos.base.query.v1beta1.PageRequest.fromObject(object.pagination); } return message; }; /** - * Creates a plain object from a QueryPacketAcknowledgementsResponse message. Also converts values to other types if specified. + * Creates a plain object from a QueryChannelsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementsResponse + * @memberof ibc.core.channel.v1.QueryChannelsRequest * @static - * @param {ibc.core.channel.v1.QueryPacketAcknowledgementsResponse} message QueryPacketAcknowledgementsResponse + * @param {ibc.core.channel.v1.QueryChannelsRequest} message QueryChannelsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryPacketAcknowledgementsResponse.toObject = function toObject(message, options) { + QueryChannelsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.acknowledgements = []; - if (options.defaults) { + if (options.defaults) object.pagination = null; - object.height = null; - } - if (message.acknowledgements && message.acknowledgements.length) { - object.acknowledgements = []; - for (var j = 0; j < message.acknowledgements.length; ++j) - object.acknowledgements[j] = $root.ibc.core.channel.v1.PacketState.toObject(message.acknowledgements[j], options); - } if (message.pagination != null && message.hasOwnProperty("pagination")) - object.pagination = $root.cosmos.base.query.v1beta1.PageResponse.toObject(message.pagination, options); - if (message.height != null && message.hasOwnProperty("height")) - object.height = $root.ibc.core.client.v1.Height.toObject(message.height, options); + object.pagination = $root.cosmos.base.query.v1beta1.PageRequest.toObject(message.pagination, options); return object; }; /** - * Converts this QueryPacketAcknowledgementsResponse to JSON. + * Converts this QueryChannelsRequest to JSON. * @function toJSON - * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementsResponse + * @memberof ibc.core.channel.v1.QueryChannelsRequest * @instance * @returns {Object.} JSON object */ - QueryPacketAcknowledgementsResponse.prototype.toJSON = function toJSON() { + QueryChannelsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryPacketAcknowledgementsResponse; + return QueryChannelsRequest; })(); - v1.QueryUnreceivedPacketsRequest = (function() { + v1.QueryChannelsResponse = (function() { /** - * Properties of a QueryUnreceivedPacketsRequest. + * Properties of a QueryChannelsResponse. * @memberof ibc.core.channel.v1 - * @interface IQueryUnreceivedPacketsRequest - * @property {string|null} [port_id] QueryUnreceivedPacketsRequest port_id - * @property {string|null} [channel_id] QueryUnreceivedPacketsRequest channel_id - * @property {Array.|null} [packet_commitment_sequences] QueryUnreceivedPacketsRequest packet_commitment_sequences + * @interface IQueryChannelsResponse + * @property {Array.|null} [channels] QueryChannelsResponse channels + * @property {cosmos.base.query.v1beta1.IPageResponse|null} [pagination] QueryChannelsResponse pagination + * @property {ibc.core.client.v1.IHeight|null} [height] QueryChannelsResponse height */ /** - * Constructs a new QueryUnreceivedPacketsRequest. + * Constructs a new QueryChannelsResponse. * @memberof ibc.core.channel.v1 - * @classdesc Represents a QueryUnreceivedPacketsRequest. - * @implements IQueryUnreceivedPacketsRequest + * @classdesc Represents a QueryChannelsResponse. + * @implements IQueryChannelsResponse * @constructor - * @param {ibc.core.channel.v1.IQueryUnreceivedPacketsRequest=} [properties] Properties to set + * @param {ibc.core.channel.v1.IQueryChannelsResponse=} [properties] Properties to set */ - function QueryUnreceivedPacketsRequest(properties) { - this.packet_commitment_sequences = []; + function QueryChannelsResponse(properties) { + this.channels = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -46364,100 +52740,92 @@ } /** - * QueryUnreceivedPacketsRequest port_id. - * @member {string} port_id - * @memberof ibc.core.channel.v1.QueryUnreceivedPacketsRequest + * QueryChannelsResponse channels. + * @member {Array.} channels + * @memberof ibc.core.channel.v1.QueryChannelsResponse * @instance */ - QueryUnreceivedPacketsRequest.prototype.port_id = ""; + QueryChannelsResponse.prototype.channels = $util.emptyArray; /** - * QueryUnreceivedPacketsRequest channel_id. - * @member {string} channel_id - * @memberof ibc.core.channel.v1.QueryUnreceivedPacketsRequest + * QueryChannelsResponse pagination. + * @member {cosmos.base.query.v1beta1.IPageResponse|null|undefined} pagination + * @memberof ibc.core.channel.v1.QueryChannelsResponse * @instance */ - QueryUnreceivedPacketsRequest.prototype.channel_id = ""; + QueryChannelsResponse.prototype.pagination = null; /** - * QueryUnreceivedPacketsRequest packet_commitment_sequences. - * @member {Array.} packet_commitment_sequences - * @memberof ibc.core.channel.v1.QueryUnreceivedPacketsRequest + * QueryChannelsResponse height. + * @member {ibc.core.client.v1.IHeight|null|undefined} height + * @memberof ibc.core.channel.v1.QueryChannelsResponse * @instance */ - QueryUnreceivedPacketsRequest.prototype.packet_commitment_sequences = $util.emptyArray; + QueryChannelsResponse.prototype.height = null; /** - * Encodes the specified QueryUnreceivedPacketsRequest message. Does not implicitly {@link ibc.core.channel.v1.QueryUnreceivedPacketsRequest.verify|verify} messages. + * Encodes the specified QueryChannelsResponse message. Does not implicitly {@link ibc.core.channel.v1.QueryChannelsResponse.verify|verify} messages. * @function encode - * @memberof ibc.core.channel.v1.QueryUnreceivedPacketsRequest + * @memberof ibc.core.channel.v1.QueryChannelsResponse * @static - * @param {ibc.core.channel.v1.IQueryUnreceivedPacketsRequest} message QueryUnreceivedPacketsRequest message or plain object to encode + * @param {ibc.core.channel.v1.IQueryChannelsResponse} message QueryChannelsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryUnreceivedPacketsRequest.encode = function encode(message, writer) { + QueryChannelsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.port_id != null && Object.hasOwnProperty.call(message, "port_id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.port_id); - if (message.channel_id != null && Object.hasOwnProperty.call(message, "channel_id")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.channel_id); - if (message.packet_commitment_sequences != null && message.packet_commitment_sequences.length) { - writer.uint32(/* id 3, wireType 2 =*/26).fork(); - for (var i = 0; i < message.packet_commitment_sequences.length; ++i) - writer.uint64(message.packet_commitment_sequences[i]); - writer.ldelim(); - } + if (message.channels != null && message.channels.length) + for (var i = 0; i < message.channels.length; ++i) + $root.ibc.core.channel.v1.IdentifiedChannel.encode(message.channels[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.pagination != null && Object.hasOwnProperty.call(message, "pagination")) + $root.cosmos.base.query.v1beta1.PageResponse.encode(message.pagination, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.height != null && Object.hasOwnProperty.call(message, "height")) + $root.ibc.core.client.v1.Height.encode(message.height, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified QueryUnreceivedPacketsRequest message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryUnreceivedPacketsRequest.verify|verify} messages. + * Encodes the specified QueryChannelsResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryChannelsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.channel.v1.QueryUnreceivedPacketsRequest + * @memberof ibc.core.channel.v1.QueryChannelsResponse * @static - * @param {ibc.core.channel.v1.IQueryUnreceivedPacketsRequest} message QueryUnreceivedPacketsRequest message or plain object to encode + * @param {ibc.core.channel.v1.IQueryChannelsResponse} message QueryChannelsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryUnreceivedPacketsRequest.encodeDelimited = function encodeDelimited(message, writer) { + QueryChannelsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryUnreceivedPacketsRequest message from the specified reader or buffer. + * Decodes a QueryChannelsResponse message from the specified reader or buffer. * @function decode - * @memberof ibc.core.channel.v1.QueryUnreceivedPacketsRequest + * @memberof ibc.core.channel.v1.QueryChannelsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.channel.v1.QueryUnreceivedPacketsRequest} QueryUnreceivedPacketsRequest + * @returns {ibc.core.channel.v1.QueryChannelsResponse} QueryChannelsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryUnreceivedPacketsRequest.decode = function decode(reader, length) { + QueryChannelsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.QueryUnreceivedPacketsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.QueryChannelsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.port_id = reader.string(); + if (!(message.channels && message.channels.length)) + message.channels = []; + message.channels.push($root.ibc.core.channel.v1.IdentifiedChannel.decode(reader, reader.uint32())); break; case 2: - message.channel_id = reader.string(); + message.pagination = $root.cosmos.base.query.v1beta1.PageResponse.decode(reader, reader.uint32()); break; case 3: - if (!(message.packet_commitment_sequences && message.packet_commitment_sequences.length)) - message.packet_commitment_sequences = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.packet_commitment_sequences.push(reader.uint64()); - } else - message.packet_commitment_sequences.push(reader.uint64()); + message.height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -46468,149 +52836,153 @@ }; /** - * Decodes a QueryUnreceivedPacketsRequest message from the specified reader or buffer, length delimited. + * Decodes a QueryChannelsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.channel.v1.QueryUnreceivedPacketsRequest + * @memberof ibc.core.channel.v1.QueryChannelsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.channel.v1.QueryUnreceivedPacketsRequest} QueryUnreceivedPacketsRequest + * @returns {ibc.core.channel.v1.QueryChannelsResponse} QueryChannelsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryUnreceivedPacketsRequest.decodeDelimited = function decodeDelimited(reader) { + QueryChannelsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryUnreceivedPacketsRequest message. + * Verifies a QueryChannelsResponse message. * @function verify - * @memberof ibc.core.channel.v1.QueryUnreceivedPacketsRequest + * @memberof ibc.core.channel.v1.QueryChannelsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryUnreceivedPacketsRequest.verify = function verify(message) { + QueryChannelsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.port_id != null && message.hasOwnProperty("port_id")) - if (!$util.isString(message.port_id)) - return "port_id: string expected"; - if (message.channel_id != null && message.hasOwnProperty("channel_id")) - if (!$util.isString(message.channel_id)) - return "channel_id: string expected"; - if (message.packet_commitment_sequences != null && message.hasOwnProperty("packet_commitment_sequences")) { - if (!Array.isArray(message.packet_commitment_sequences)) - return "packet_commitment_sequences: array expected"; - for (var i = 0; i < message.packet_commitment_sequences.length; ++i) - if (!$util.isInteger(message.packet_commitment_sequences[i]) && !(message.packet_commitment_sequences[i] && $util.isInteger(message.packet_commitment_sequences[i].low) && $util.isInteger(message.packet_commitment_sequences[i].high))) - return "packet_commitment_sequences: integer|Long[] expected"; + if (message.channels != null && message.hasOwnProperty("channels")) { + if (!Array.isArray(message.channels)) + return "channels: array expected"; + for (var i = 0; i < message.channels.length; ++i) { + var error = $root.ibc.core.channel.v1.IdentifiedChannel.verify(message.channels[i]); + if (error) + return "channels." + error; + } + } + if (message.pagination != null && message.hasOwnProperty("pagination")) { + var error = $root.cosmos.base.query.v1beta1.PageResponse.verify(message.pagination); + if (error) + return "pagination." + error; + } + if (message.height != null && message.hasOwnProperty("height")) { + var error = $root.ibc.core.client.v1.Height.verify(message.height); + if (error) + return "height." + error; } return null; }; /** - * Creates a QueryUnreceivedPacketsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a QueryChannelsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.channel.v1.QueryUnreceivedPacketsRequest + * @memberof ibc.core.channel.v1.QueryChannelsResponse * @static * @param {Object.} object Plain object - * @returns {ibc.core.channel.v1.QueryUnreceivedPacketsRequest} QueryUnreceivedPacketsRequest + * @returns {ibc.core.channel.v1.QueryChannelsResponse} QueryChannelsResponse */ - QueryUnreceivedPacketsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.channel.v1.QueryUnreceivedPacketsRequest) + QueryChannelsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.channel.v1.QueryChannelsResponse) return object; - var message = new $root.ibc.core.channel.v1.QueryUnreceivedPacketsRequest(); - if (object.port_id != null) - message.port_id = String(object.port_id); - if (object.channel_id != null) - message.channel_id = String(object.channel_id); - if (object.packet_commitment_sequences) { - if (!Array.isArray(object.packet_commitment_sequences)) - throw TypeError(".ibc.core.channel.v1.QueryUnreceivedPacketsRequest.packet_commitment_sequences: array expected"); - message.packet_commitment_sequences = []; - for (var i = 0; i < object.packet_commitment_sequences.length; ++i) - if ($util.Long) - (message.packet_commitment_sequences[i] = $util.Long.fromValue(object.packet_commitment_sequences[i])).unsigned = true; - else if (typeof object.packet_commitment_sequences[i] === "string") - message.packet_commitment_sequences[i] = parseInt(object.packet_commitment_sequences[i], 10); - else if (typeof object.packet_commitment_sequences[i] === "number") - message.packet_commitment_sequences[i] = object.packet_commitment_sequences[i]; - else if (typeof object.packet_commitment_sequences[i] === "object") - message.packet_commitment_sequences[i] = new $util.LongBits(object.packet_commitment_sequences[i].low >>> 0, object.packet_commitment_sequences[i].high >>> 0).toNumber(true); + var message = new $root.ibc.core.channel.v1.QueryChannelsResponse(); + if (object.channels) { + if (!Array.isArray(object.channels)) + throw TypeError(".ibc.core.channel.v1.QueryChannelsResponse.channels: array expected"); + message.channels = []; + for (var i = 0; i < object.channels.length; ++i) { + if (typeof object.channels[i] !== "object") + throw TypeError(".ibc.core.channel.v1.QueryChannelsResponse.channels: object expected"); + message.channels[i] = $root.ibc.core.channel.v1.IdentifiedChannel.fromObject(object.channels[i]); + } + } + if (object.pagination != null) { + if (typeof object.pagination !== "object") + throw TypeError(".ibc.core.channel.v1.QueryChannelsResponse.pagination: object expected"); + message.pagination = $root.cosmos.base.query.v1beta1.PageResponse.fromObject(object.pagination); + } + if (object.height != null) { + if (typeof object.height !== "object") + throw TypeError(".ibc.core.channel.v1.QueryChannelsResponse.height: object expected"); + message.height = $root.ibc.core.client.v1.Height.fromObject(object.height); } return message; }; /** - * Creates a plain object from a QueryUnreceivedPacketsRequest message. Also converts values to other types if specified. + * Creates a plain object from a QueryChannelsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.channel.v1.QueryUnreceivedPacketsRequest + * @memberof ibc.core.channel.v1.QueryChannelsResponse * @static - * @param {ibc.core.channel.v1.QueryUnreceivedPacketsRequest} message QueryUnreceivedPacketsRequest + * @param {ibc.core.channel.v1.QueryChannelsResponse} message QueryChannelsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryUnreceivedPacketsRequest.toObject = function toObject(message, options) { + QueryChannelsResponse.toObject = function toObject(message, options) { if (!options) options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.packet_commitment_sequences = []; - if (options.defaults) { - object.port_id = ""; - object.channel_id = ""; - } - if (message.port_id != null && message.hasOwnProperty("port_id")) - object.port_id = message.port_id; - if (message.channel_id != null && message.hasOwnProperty("channel_id")) - object.channel_id = message.channel_id; - if (message.packet_commitment_sequences && message.packet_commitment_sequences.length) { - object.packet_commitment_sequences = []; - for (var j = 0; j < message.packet_commitment_sequences.length; ++j) - if (typeof message.packet_commitment_sequences[j] === "number") - object.packet_commitment_sequences[j] = options.longs === String ? String(message.packet_commitment_sequences[j]) : message.packet_commitment_sequences[j]; - else - object.packet_commitment_sequences[j] = options.longs === String ? $util.Long.prototype.toString.call(message.packet_commitment_sequences[j]) : options.longs === Number ? new $util.LongBits(message.packet_commitment_sequences[j].low >>> 0, message.packet_commitment_sequences[j].high >>> 0).toNumber(true) : message.packet_commitment_sequences[j]; + var object = {}; + if (options.arrays || options.defaults) + object.channels = []; + if (options.defaults) { + object.pagination = null; + object.height = null; + } + if (message.channels && message.channels.length) { + object.channels = []; + for (var j = 0; j < message.channels.length; ++j) + object.channels[j] = $root.ibc.core.channel.v1.IdentifiedChannel.toObject(message.channels[j], options); } + if (message.pagination != null && message.hasOwnProperty("pagination")) + object.pagination = $root.cosmos.base.query.v1beta1.PageResponse.toObject(message.pagination, options); + if (message.height != null && message.hasOwnProperty("height")) + object.height = $root.ibc.core.client.v1.Height.toObject(message.height, options); return object; }; /** - * Converts this QueryUnreceivedPacketsRequest to JSON. + * Converts this QueryChannelsResponse to JSON. * @function toJSON - * @memberof ibc.core.channel.v1.QueryUnreceivedPacketsRequest + * @memberof ibc.core.channel.v1.QueryChannelsResponse * @instance * @returns {Object.} JSON object */ - QueryUnreceivedPacketsRequest.prototype.toJSON = function toJSON() { + QueryChannelsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryUnreceivedPacketsRequest; + return QueryChannelsResponse; })(); - v1.QueryUnreceivedPacketsResponse = (function() { + v1.QueryConnectionChannelsRequest = (function() { /** - * Properties of a QueryUnreceivedPacketsResponse. + * Properties of a QueryConnectionChannelsRequest. * @memberof ibc.core.channel.v1 - * @interface IQueryUnreceivedPacketsResponse - * @property {Array.|null} [sequences] QueryUnreceivedPacketsResponse sequences - * @property {ibc.core.client.v1.IHeight|null} [height] QueryUnreceivedPacketsResponse height + * @interface IQueryConnectionChannelsRequest + * @property {string|null} [connection] QueryConnectionChannelsRequest connection + * @property {cosmos.base.query.v1beta1.IPageRequest|null} [pagination] QueryConnectionChannelsRequest pagination */ /** - * Constructs a new QueryUnreceivedPacketsResponse. + * Constructs a new QueryConnectionChannelsRequest. * @memberof ibc.core.channel.v1 - * @classdesc Represents a QueryUnreceivedPacketsResponse. - * @implements IQueryUnreceivedPacketsResponse + * @classdesc Represents a QueryConnectionChannelsRequest. + * @implements IQueryConnectionChannelsRequest * @constructor - * @param {ibc.core.channel.v1.IQueryUnreceivedPacketsResponse=} [properties] Properties to set + * @param {ibc.core.channel.v1.IQueryConnectionChannelsRequest=} [properties] Properties to set */ - function QueryUnreceivedPacketsResponse(properties) { - this.sequences = []; + function QueryConnectionChannelsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -46618,87 +52990,76 @@ } /** - * QueryUnreceivedPacketsResponse sequences. - * @member {Array.} sequences - * @memberof ibc.core.channel.v1.QueryUnreceivedPacketsResponse + * QueryConnectionChannelsRequest connection. + * @member {string} connection + * @memberof ibc.core.channel.v1.QueryConnectionChannelsRequest * @instance */ - QueryUnreceivedPacketsResponse.prototype.sequences = $util.emptyArray; + QueryConnectionChannelsRequest.prototype.connection = ""; /** - * QueryUnreceivedPacketsResponse height. - * @member {ibc.core.client.v1.IHeight|null|undefined} height - * @memberof ibc.core.channel.v1.QueryUnreceivedPacketsResponse + * QueryConnectionChannelsRequest pagination. + * @member {cosmos.base.query.v1beta1.IPageRequest|null|undefined} pagination + * @memberof ibc.core.channel.v1.QueryConnectionChannelsRequest * @instance */ - QueryUnreceivedPacketsResponse.prototype.height = null; + QueryConnectionChannelsRequest.prototype.pagination = null; /** - * Encodes the specified QueryUnreceivedPacketsResponse message. Does not implicitly {@link ibc.core.channel.v1.QueryUnreceivedPacketsResponse.verify|verify} messages. + * Encodes the specified QueryConnectionChannelsRequest message. Does not implicitly {@link ibc.core.channel.v1.QueryConnectionChannelsRequest.verify|verify} messages. * @function encode - * @memberof ibc.core.channel.v1.QueryUnreceivedPacketsResponse + * @memberof ibc.core.channel.v1.QueryConnectionChannelsRequest * @static - * @param {ibc.core.channel.v1.IQueryUnreceivedPacketsResponse} message QueryUnreceivedPacketsResponse message or plain object to encode + * @param {ibc.core.channel.v1.IQueryConnectionChannelsRequest} message QueryConnectionChannelsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryUnreceivedPacketsResponse.encode = function encode(message, writer) { + QueryConnectionChannelsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.sequences != null && message.sequences.length) { - writer.uint32(/* id 1, wireType 2 =*/10).fork(); - for (var i = 0; i < message.sequences.length; ++i) - writer.uint64(message.sequences[i]); - writer.ldelim(); - } - if (message.height != null && Object.hasOwnProperty.call(message, "height")) - $root.ibc.core.client.v1.Height.encode(message.height, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.connection != null && Object.hasOwnProperty.call(message, "connection")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.connection); + if (message.pagination != null && Object.hasOwnProperty.call(message, "pagination")) + $root.cosmos.base.query.v1beta1.PageRequest.encode(message.pagination, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified QueryUnreceivedPacketsResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryUnreceivedPacketsResponse.verify|verify} messages. + * Encodes the specified QueryConnectionChannelsRequest message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryConnectionChannelsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.channel.v1.QueryUnreceivedPacketsResponse + * @memberof ibc.core.channel.v1.QueryConnectionChannelsRequest * @static - * @param {ibc.core.channel.v1.IQueryUnreceivedPacketsResponse} message QueryUnreceivedPacketsResponse message or plain object to encode + * @param {ibc.core.channel.v1.IQueryConnectionChannelsRequest} message QueryConnectionChannelsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryUnreceivedPacketsResponse.encodeDelimited = function encodeDelimited(message, writer) { + QueryConnectionChannelsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryUnreceivedPacketsResponse message from the specified reader or buffer. + * Decodes a QueryConnectionChannelsRequest message from the specified reader or buffer. * @function decode - * @memberof ibc.core.channel.v1.QueryUnreceivedPacketsResponse + * @memberof ibc.core.channel.v1.QueryConnectionChannelsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.channel.v1.QueryUnreceivedPacketsResponse} QueryUnreceivedPacketsResponse + * @returns {ibc.core.channel.v1.QueryConnectionChannelsRequest} QueryConnectionChannelsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryUnreceivedPacketsResponse.decode = function decode(reader, length) { + QueryConnectionChannelsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.QueryUnreceivedPacketsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.QueryConnectionChannelsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.sequences && message.sequences.length)) - message.sequences = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.sequences.push(reader.uint64()); - } else - message.sequences.push(reader.uint64()); + message.connection = reader.string(); break; case 2: - message.height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); + message.pagination = $root.cosmos.base.query.v1beta1.PageRequest.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -46709,146 +53070,124 @@ }; /** - * Decodes a QueryUnreceivedPacketsResponse message from the specified reader or buffer, length delimited. + * Decodes a QueryConnectionChannelsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.channel.v1.QueryUnreceivedPacketsResponse + * @memberof ibc.core.channel.v1.QueryConnectionChannelsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.channel.v1.QueryUnreceivedPacketsResponse} QueryUnreceivedPacketsResponse + * @returns {ibc.core.channel.v1.QueryConnectionChannelsRequest} QueryConnectionChannelsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryUnreceivedPacketsResponse.decodeDelimited = function decodeDelimited(reader) { + QueryConnectionChannelsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryUnreceivedPacketsResponse message. + * Verifies a QueryConnectionChannelsRequest message. * @function verify - * @memberof ibc.core.channel.v1.QueryUnreceivedPacketsResponse + * @memberof ibc.core.channel.v1.QueryConnectionChannelsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryUnreceivedPacketsResponse.verify = function verify(message) { + QueryConnectionChannelsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.sequences != null && message.hasOwnProperty("sequences")) { - if (!Array.isArray(message.sequences)) - return "sequences: array expected"; - for (var i = 0; i < message.sequences.length; ++i) - if (!$util.isInteger(message.sequences[i]) && !(message.sequences[i] && $util.isInteger(message.sequences[i].low) && $util.isInteger(message.sequences[i].high))) - return "sequences: integer|Long[] expected"; - } - if (message.height != null && message.hasOwnProperty("height")) { - var error = $root.ibc.core.client.v1.Height.verify(message.height); + if (message.connection != null && message.hasOwnProperty("connection")) + if (!$util.isString(message.connection)) + return "connection: string expected"; + if (message.pagination != null && message.hasOwnProperty("pagination")) { + var error = $root.cosmos.base.query.v1beta1.PageRequest.verify(message.pagination); if (error) - return "height." + error; + return "pagination." + error; } return null; }; /** - * Creates a QueryUnreceivedPacketsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a QueryConnectionChannelsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.channel.v1.QueryUnreceivedPacketsResponse + * @memberof ibc.core.channel.v1.QueryConnectionChannelsRequest * @static * @param {Object.} object Plain object - * @returns {ibc.core.channel.v1.QueryUnreceivedPacketsResponse} QueryUnreceivedPacketsResponse + * @returns {ibc.core.channel.v1.QueryConnectionChannelsRequest} QueryConnectionChannelsRequest */ - QueryUnreceivedPacketsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.channel.v1.QueryUnreceivedPacketsResponse) + QueryConnectionChannelsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.channel.v1.QueryConnectionChannelsRequest) return object; - var message = new $root.ibc.core.channel.v1.QueryUnreceivedPacketsResponse(); - if (object.sequences) { - if (!Array.isArray(object.sequences)) - throw TypeError(".ibc.core.channel.v1.QueryUnreceivedPacketsResponse.sequences: array expected"); - message.sequences = []; - for (var i = 0; i < object.sequences.length; ++i) - if ($util.Long) - (message.sequences[i] = $util.Long.fromValue(object.sequences[i])).unsigned = true; - else if (typeof object.sequences[i] === "string") - message.sequences[i] = parseInt(object.sequences[i], 10); - else if (typeof object.sequences[i] === "number") - message.sequences[i] = object.sequences[i]; - else if (typeof object.sequences[i] === "object") - message.sequences[i] = new $util.LongBits(object.sequences[i].low >>> 0, object.sequences[i].high >>> 0).toNumber(true); - } - if (object.height != null) { - if (typeof object.height !== "object") - throw TypeError(".ibc.core.channel.v1.QueryUnreceivedPacketsResponse.height: object expected"); - message.height = $root.ibc.core.client.v1.Height.fromObject(object.height); + var message = new $root.ibc.core.channel.v1.QueryConnectionChannelsRequest(); + if (object.connection != null) + message.connection = String(object.connection); + if (object.pagination != null) { + if (typeof object.pagination !== "object") + throw TypeError(".ibc.core.channel.v1.QueryConnectionChannelsRequest.pagination: object expected"); + message.pagination = $root.cosmos.base.query.v1beta1.PageRequest.fromObject(object.pagination); } return message; }; /** - * Creates a plain object from a QueryUnreceivedPacketsResponse message. Also converts values to other types if specified. + * Creates a plain object from a QueryConnectionChannelsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.channel.v1.QueryUnreceivedPacketsResponse + * @memberof ibc.core.channel.v1.QueryConnectionChannelsRequest * @static - * @param {ibc.core.channel.v1.QueryUnreceivedPacketsResponse} message QueryUnreceivedPacketsResponse + * @param {ibc.core.channel.v1.QueryConnectionChannelsRequest} message QueryConnectionChannelsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryUnreceivedPacketsResponse.toObject = function toObject(message, options) { + QueryConnectionChannelsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.sequences = []; - if (options.defaults) - object.height = null; - if (message.sequences && message.sequences.length) { - object.sequences = []; - for (var j = 0; j < message.sequences.length; ++j) - if (typeof message.sequences[j] === "number") - object.sequences[j] = options.longs === String ? String(message.sequences[j]) : message.sequences[j]; - else - object.sequences[j] = options.longs === String ? $util.Long.prototype.toString.call(message.sequences[j]) : options.longs === Number ? new $util.LongBits(message.sequences[j].low >>> 0, message.sequences[j].high >>> 0).toNumber(true) : message.sequences[j]; + if (options.defaults) { + object.connection = ""; + object.pagination = null; } - if (message.height != null && message.hasOwnProperty("height")) - object.height = $root.ibc.core.client.v1.Height.toObject(message.height, options); + if (message.connection != null && message.hasOwnProperty("connection")) + object.connection = message.connection; + if (message.pagination != null && message.hasOwnProperty("pagination")) + object.pagination = $root.cosmos.base.query.v1beta1.PageRequest.toObject(message.pagination, options); return object; }; /** - * Converts this QueryUnreceivedPacketsResponse to JSON. + * Converts this QueryConnectionChannelsRequest to JSON. * @function toJSON - * @memberof ibc.core.channel.v1.QueryUnreceivedPacketsResponse + * @memberof ibc.core.channel.v1.QueryConnectionChannelsRequest * @instance * @returns {Object.} JSON object */ - QueryUnreceivedPacketsResponse.prototype.toJSON = function toJSON() { + QueryConnectionChannelsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryUnreceivedPacketsResponse; + return QueryConnectionChannelsRequest; })(); - v1.QueryUnreceivedAcksRequest = (function() { + v1.QueryConnectionChannelsResponse = (function() { /** - * Properties of a QueryUnreceivedAcksRequest. + * Properties of a QueryConnectionChannelsResponse. * @memberof ibc.core.channel.v1 - * @interface IQueryUnreceivedAcksRequest - * @property {string|null} [port_id] QueryUnreceivedAcksRequest port_id - * @property {string|null} [channel_id] QueryUnreceivedAcksRequest channel_id - * @property {Array.|null} [packet_ack_sequences] QueryUnreceivedAcksRequest packet_ack_sequences + * @interface IQueryConnectionChannelsResponse + * @property {Array.|null} [channels] QueryConnectionChannelsResponse channels + * @property {cosmos.base.query.v1beta1.IPageResponse|null} [pagination] QueryConnectionChannelsResponse pagination + * @property {ibc.core.client.v1.IHeight|null} [height] QueryConnectionChannelsResponse height */ /** - * Constructs a new QueryUnreceivedAcksRequest. + * Constructs a new QueryConnectionChannelsResponse. * @memberof ibc.core.channel.v1 - * @classdesc Represents a QueryUnreceivedAcksRequest. - * @implements IQueryUnreceivedAcksRequest + * @classdesc Represents a QueryConnectionChannelsResponse. + * @implements IQueryConnectionChannelsResponse * @constructor - * @param {ibc.core.channel.v1.IQueryUnreceivedAcksRequest=} [properties] Properties to set + * @param {ibc.core.channel.v1.IQueryConnectionChannelsResponse=} [properties] Properties to set */ - function QueryUnreceivedAcksRequest(properties) { - this.packet_ack_sequences = []; + function QueryConnectionChannelsResponse(properties) { + this.channels = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -46856,100 +53195,92 @@ } /** - * QueryUnreceivedAcksRequest port_id. - * @member {string} port_id - * @memberof ibc.core.channel.v1.QueryUnreceivedAcksRequest + * QueryConnectionChannelsResponse channels. + * @member {Array.} channels + * @memberof ibc.core.channel.v1.QueryConnectionChannelsResponse * @instance */ - QueryUnreceivedAcksRequest.prototype.port_id = ""; + QueryConnectionChannelsResponse.prototype.channels = $util.emptyArray; /** - * QueryUnreceivedAcksRequest channel_id. - * @member {string} channel_id - * @memberof ibc.core.channel.v1.QueryUnreceivedAcksRequest + * QueryConnectionChannelsResponse pagination. + * @member {cosmos.base.query.v1beta1.IPageResponse|null|undefined} pagination + * @memberof ibc.core.channel.v1.QueryConnectionChannelsResponse * @instance */ - QueryUnreceivedAcksRequest.prototype.channel_id = ""; + QueryConnectionChannelsResponse.prototype.pagination = null; /** - * QueryUnreceivedAcksRequest packet_ack_sequences. - * @member {Array.} packet_ack_sequences - * @memberof ibc.core.channel.v1.QueryUnreceivedAcksRequest + * QueryConnectionChannelsResponse height. + * @member {ibc.core.client.v1.IHeight|null|undefined} height + * @memberof ibc.core.channel.v1.QueryConnectionChannelsResponse * @instance */ - QueryUnreceivedAcksRequest.prototype.packet_ack_sequences = $util.emptyArray; + QueryConnectionChannelsResponse.prototype.height = null; /** - * Encodes the specified QueryUnreceivedAcksRequest message. Does not implicitly {@link ibc.core.channel.v1.QueryUnreceivedAcksRequest.verify|verify} messages. + * Encodes the specified QueryConnectionChannelsResponse message. Does not implicitly {@link ibc.core.channel.v1.QueryConnectionChannelsResponse.verify|verify} messages. * @function encode - * @memberof ibc.core.channel.v1.QueryUnreceivedAcksRequest + * @memberof ibc.core.channel.v1.QueryConnectionChannelsResponse * @static - * @param {ibc.core.channel.v1.IQueryUnreceivedAcksRequest} message QueryUnreceivedAcksRequest message or plain object to encode + * @param {ibc.core.channel.v1.IQueryConnectionChannelsResponse} message QueryConnectionChannelsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryUnreceivedAcksRequest.encode = function encode(message, writer) { + QueryConnectionChannelsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.port_id != null && Object.hasOwnProperty.call(message, "port_id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.port_id); - if (message.channel_id != null && Object.hasOwnProperty.call(message, "channel_id")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.channel_id); - if (message.packet_ack_sequences != null && message.packet_ack_sequences.length) { - writer.uint32(/* id 3, wireType 2 =*/26).fork(); - for (var i = 0; i < message.packet_ack_sequences.length; ++i) - writer.uint64(message.packet_ack_sequences[i]); - writer.ldelim(); - } + if (message.channels != null && message.channels.length) + for (var i = 0; i < message.channels.length; ++i) + $root.ibc.core.channel.v1.IdentifiedChannel.encode(message.channels[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.pagination != null && Object.hasOwnProperty.call(message, "pagination")) + $root.cosmos.base.query.v1beta1.PageResponse.encode(message.pagination, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.height != null && Object.hasOwnProperty.call(message, "height")) + $root.ibc.core.client.v1.Height.encode(message.height, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified QueryUnreceivedAcksRequest message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryUnreceivedAcksRequest.verify|verify} messages. + * Encodes the specified QueryConnectionChannelsResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryConnectionChannelsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.channel.v1.QueryUnreceivedAcksRequest + * @memberof ibc.core.channel.v1.QueryConnectionChannelsResponse * @static - * @param {ibc.core.channel.v1.IQueryUnreceivedAcksRequest} message QueryUnreceivedAcksRequest message or plain object to encode + * @param {ibc.core.channel.v1.IQueryConnectionChannelsResponse} message QueryConnectionChannelsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryUnreceivedAcksRequest.encodeDelimited = function encodeDelimited(message, writer) { + QueryConnectionChannelsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryUnreceivedAcksRequest message from the specified reader or buffer. + * Decodes a QueryConnectionChannelsResponse message from the specified reader or buffer. * @function decode - * @memberof ibc.core.channel.v1.QueryUnreceivedAcksRequest + * @memberof ibc.core.channel.v1.QueryConnectionChannelsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.channel.v1.QueryUnreceivedAcksRequest} QueryUnreceivedAcksRequest + * @returns {ibc.core.channel.v1.QueryConnectionChannelsResponse} QueryConnectionChannelsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryUnreceivedAcksRequest.decode = function decode(reader, length) { + QueryConnectionChannelsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.QueryUnreceivedAcksRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.QueryConnectionChannelsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.port_id = reader.string(); + if (!(message.channels && message.channels.length)) + message.channels = []; + message.channels.push($root.ibc.core.channel.v1.IdentifiedChannel.decode(reader, reader.uint32())); break; case 2: - message.channel_id = reader.string(); + message.pagination = $root.cosmos.base.query.v1beta1.PageResponse.decode(reader, reader.uint32()); break; case 3: - if (!(message.packet_ack_sequences && message.packet_ack_sequences.length)) - message.packet_ack_sequences = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.packet_ack_sequences.push(reader.uint64()); - } else - message.packet_ack_sequences.push(reader.uint64()); + message.height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -46960,149 +53291,153 @@ }; /** - * Decodes a QueryUnreceivedAcksRequest message from the specified reader or buffer, length delimited. + * Decodes a QueryConnectionChannelsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.channel.v1.QueryUnreceivedAcksRequest + * @memberof ibc.core.channel.v1.QueryConnectionChannelsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.channel.v1.QueryUnreceivedAcksRequest} QueryUnreceivedAcksRequest + * @returns {ibc.core.channel.v1.QueryConnectionChannelsResponse} QueryConnectionChannelsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryUnreceivedAcksRequest.decodeDelimited = function decodeDelimited(reader) { + QueryConnectionChannelsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryUnreceivedAcksRequest message. + * Verifies a QueryConnectionChannelsResponse message. * @function verify - * @memberof ibc.core.channel.v1.QueryUnreceivedAcksRequest + * @memberof ibc.core.channel.v1.QueryConnectionChannelsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryUnreceivedAcksRequest.verify = function verify(message) { + QueryConnectionChannelsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.port_id != null && message.hasOwnProperty("port_id")) - if (!$util.isString(message.port_id)) - return "port_id: string expected"; - if (message.channel_id != null && message.hasOwnProperty("channel_id")) - if (!$util.isString(message.channel_id)) - return "channel_id: string expected"; - if (message.packet_ack_sequences != null && message.hasOwnProperty("packet_ack_sequences")) { - if (!Array.isArray(message.packet_ack_sequences)) - return "packet_ack_sequences: array expected"; - for (var i = 0; i < message.packet_ack_sequences.length; ++i) - if (!$util.isInteger(message.packet_ack_sequences[i]) && !(message.packet_ack_sequences[i] && $util.isInteger(message.packet_ack_sequences[i].low) && $util.isInteger(message.packet_ack_sequences[i].high))) - return "packet_ack_sequences: integer|Long[] expected"; + if (message.channels != null && message.hasOwnProperty("channels")) { + if (!Array.isArray(message.channels)) + return "channels: array expected"; + for (var i = 0; i < message.channels.length; ++i) { + var error = $root.ibc.core.channel.v1.IdentifiedChannel.verify(message.channels[i]); + if (error) + return "channels." + error; + } + } + if (message.pagination != null && message.hasOwnProperty("pagination")) { + var error = $root.cosmos.base.query.v1beta1.PageResponse.verify(message.pagination); + if (error) + return "pagination." + error; + } + if (message.height != null && message.hasOwnProperty("height")) { + var error = $root.ibc.core.client.v1.Height.verify(message.height); + if (error) + return "height." + error; } return null; }; /** - * Creates a QueryUnreceivedAcksRequest message from a plain object. Also converts values to their respective internal types. + * Creates a QueryConnectionChannelsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.channel.v1.QueryUnreceivedAcksRequest + * @memberof ibc.core.channel.v1.QueryConnectionChannelsResponse * @static * @param {Object.} object Plain object - * @returns {ibc.core.channel.v1.QueryUnreceivedAcksRequest} QueryUnreceivedAcksRequest + * @returns {ibc.core.channel.v1.QueryConnectionChannelsResponse} QueryConnectionChannelsResponse */ - QueryUnreceivedAcksRequest.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.channel.v1.QueryUnreceivedAcksRequest) + QueryConnectionChannelsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.channel.v1.QueryConnectionChannelsResponse) return object; - var message = new $root.ibc.core.channel.v1.QueryUnreceivedAcksRequest(); - if (object.port_id != null) - message.port_id = String(object.port_id); - if (object.channel_id != null) - message.channel_id = String(object.channel_id); - if (object.packet_ack_sequences) { - if (!Array.isArray(object.packet_ack_sequences)) - throw TypeError(".ibc.core.channel.v1.QueryUnreceivedAcksRequest.packet_ack_sequences: array expected"); - message.packet_ack_sequences = []; - for (var i = 0; i < object.packet_ack_sequences.length; ++i) - if ($util.Long) - (message.packet_ack_sequences[i] = $util.Long.fromValue(object.packet_ack_sequences[i])).unsigned = true; - else if (typeof object.packet_ack_sequences[i] === "string") - message.packet_ack_sequences[i] = parseInt(object.packet_ack_sequences[i], 10); - else if (typeof object.packet_ack_sequences[i] === "number") - message.packet_ack_sequences[i] = object.packet_ack_sequences[i]; - else if (typeof object.packet_ack_sequences[i] === "object") - message.packet_ack_sequences[i] = new $util.LongBits(object.packet_ack_sequences[i].low >>> 0, object.packet_ack_sequences[i].high >>> 0).toNumber(true); + var message = new $root.ibc.core.channel.v1.QueryConnectionChannelsResponse(); + if (object.channels) { + if (!Array.isArray(object.channels)) + throw TypeError(".ibc.core.channel.v1.QueryConnectionChannelsResponse.channels: array expected"); + message.channels = []; + for (var i = 0; i < object.channels.length; ++i) { + if (typeof object.channels[i] !== "object") + throw TypeError(".ibc.core.channel.v1.QueryConnectionChannelsResponse.channels: object expected"); + message.channels[i] = $root.ibc.core.channel.v1.IdentifiedChannel.fromObject(object.channels[i]); + } + } + if (object.pagination != null) { + if (typeof object.pagination !== "object") + throw TypeError(".ibc.core.channel.v1.QueryConnectionChannelsResponse.pagination: object expected"); + message.pagination = $root.cosmos.base.query.v1beta1.PageResponse.fromObject(object.pagination); + } + if (object.height != null) { + if (typeof object.height !== "object") + throw TypeError(".ibc.core.channel.v1.QueryConnectionChannelsResponse.height: object expected"); + message.height = $root.ibc.core.client.v1.Height.fromObject(object.height); } return message; }; /** - * Creates a plain object from a QueryUnreceivedAcksRequest message. Also converts values to other types if specified. + * Creates a plain object from a QueryConnectionChannelsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.channel.v1.QueryUnreceivedAcksRequest + * @memberof ibc.core.channel.v1.QueryConnectionChannelsResponse * @static - * @param {ibc.core.channel.v1.QueryUnreceivedAcksRequest} message QueryUnreceivedAcksRequest + * @param {ibc.core.channel.v1.QueryConnectionChannelsResponse} message QueryConnectionChannelsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryUnreceivedAcksRequest.toObject = function toObject(message, options) { + QueryConnectionChannelsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.packet_ack_sequences = []; + object.channels = []; if (options.defaults) { - object.port_id = ""; - object.channel_id = ""; + object.pagination = null; + object.height = null; } - if (message.port_id != null && message.hasOwnProperty("port_id")) - object.port_id = message.port_id; - if (message.channel_id != null && message.hasOwnProperty("channel_id")) - object.channel_id = message.channel_id; - if (message.packet_ack_sequences && message.packet_ack_sequences.length) { - object.packet_ack_sequences = []; - for (var j = 0; j < message.packet_ack_sequences.length; ++j) - if (typeof message.packet_ack_sequences[j] === "number") - object.packet_ack_sequences[j] = options.longs === String ? String(message.packet_ack_sequences[j]) : message.packet_ack_sequences[j]; - else - object.packet_ack_sequences[j] = options.longs === String ? $util.Long.prototype.toString.call(message.packet_ack_sequences[j]) : options.longs === Number ? new $util.LongBits(message.packet_ack_sequences[j].low >>> 0, message.packet_ack_sequences[j].high >>> 0).toNumber(true) : message.packet_ack_sequences[j]; + if (message.channels && message.channels.length) { + object.channels = []; + for (var j = 0; j < message.channels.length; ++j) + object.channels[j] = $root.ibc.core.channel.v1.IdentifiedChannel.toObject(message.channels[j], options); } + if (message.pagination != null && message.hasOwnProperty("pagination")) + object.pagination = $root.cosmos.base.query.v1beta1.PageResponse.toObject(message.pagination, options); + if (message.height != null && message.hasOwnProperty("height")) + object.height = $root.ibc.core.client.v1.Height.toObject(message.height, options); return object; }; /** - * Converts this QueryUnreceivedAcksRequest to JSON. + * Converts this QueryConnectionChannelsResponse to JSON. * @function toJSON - * @memberof ibc.core.channel.v1.QueryUnreceivedAcksRequest + * @memberof ibc.core.channel.v1.QueryConnectionChannelsResponse * @instance * @returns {Object.} JSON object */ - QueryUnreceivedAcksRequest.prototype.toJSON = function toJSON() { + QueryConnectionChannelsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryUnreceivedAcksRequest; + return QueryConnectionChannelsResponse; })(); - v1.QueryUnreceivedAcksResponse = (function() { + v1.QueryChannelClientStateRequest = (function() { /** - * Properties of a QueryUnreceivedAcksResponse. + * Properties of a QueryChannelClientStateRequest. * @memberof ibc.core.channel.v1 - * @interface IQueryUnreceivedAcksResponse - * @property {Array.|null} [sequences] QueryUnreceivedAcksResponse sequences - * @property {ibc.core.client.v1.IHeight|null} [height] QueryUnreceivedAcksResponse height + * @interface IQueryChannelClientStateRequest + * @property {string|null} [port_id] QueryChannelClientStateRequest port_id + * @property {string|null} [channel_id] QueryChannelClientStateRequest channel_id */ /** - * Constructs a new QueryUnreceivedAcksResponse. + * Constructs a new QueryChannelClientStateRequest. * @memberof ibc.core.channel.v1 - * @classdesc Represents a QueryUnreceivedAcksResponse. - * @implements IQueryUnreceivedAcksResponse + * @classdesc Represents a QueryChannelClientStateRequest. + * @implements IQueryChannelClientStateRequest * @constructor - * @param {ibc.core.channel.v1.IQueryUnreceivedAcksResponse=} [properties] Properties to set + * @param {ibc.core.channel.v1.IQueryChannelClientStateRequest=} [properties] Properties to set */ - function QueryUnreceivedAcksResponse(properties) { - this.sequences = []; + function QueryChannelClientStateRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -47110,87 +53445,76 @@ } /** - * QueryUnreceivedAcksResponse sequences. - * @member {Array.} sequences - * @memberof ibc.core.channel.v1.QueryUnreceivedAcksResponse + * QueryChannelClientStateRequest port_id. + * @member {string} port_id + * @memberof ibc.core.channel.v1.QueryChannelClientStateRequest * @instance */ - QueryUnreceivedAcksResponse.prototype.sequences = $util.emptyArray; + QueryChannelClientStateRequest.prototype.port_id = ""; /** - * QueryUnreceivedAcksResponse height. - * @member {ibc.core.client.v1.IHeight|null|undefined} height - * @memberof ibc.core.channel.v1.QueryUnreceivedAcksResponse + * QueryChannelClientStateRequest channel_id. + * @member {string} channel_id + * @memberof ibc.core.channel.v1.QueryChannelClientStateRequest * @instance */ - QueryUnreceivedAcksResponse.prototype.height = null; + QueryChannelClientStateRequest.prototype.channel_id = ""; /** - * Encodes the specified QueryUnreceivedAcksResponse message. Does not implicitly {@link ibc.core.channel.v1.QueryUnreceivedAcksResponse.verify|verify} messages. + * Encodes the specified QueryChannelClientStateRequest message. Does not implicitly {@link ibc.core.channel.v1.QueryChannelClientStateRequest.verify|verify} messages. * @function encode - * @memberof ibc.core.channel.v1.QueryUnreceivedAcksResponse + * @memberof ibc.core.channel.v1.QueryChannelClientStateRequest * @static - * @param {ibc.core.channel.v1.IQueryUnreceivedAcksResponse} message QueryUnreceivedAcksResponse message or plain object to encode + * @param {ibc.core.channel.v1.IQueryChannelClientStateRequest} message QueryChannelClientStateRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryUnreceivedAcksResponse.encode = function encode(message, writer) { + QueryChannelClientStateRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.sequences != null && message.sequences.length) { - writer.uint32(/* id 1, wireType 2 =*/10).fork(); - for (var i = 0; i < message.sequences.length; ++i) - writer.uint64(message.sequences[i]); - writer.ldelim(); - } - if (message.height != null && Object.hasOwnProperty.call(message, "height")) - $root.ibc.core.client.v1.Height.encode(message.height, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.port_id != null && Object.hasOwnProperty.call(message, "port_id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.port_id); + if (message.channel_id != null && Object.hasOwnProperty.call(message, "channel_id")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.channel_id); return writer; }; /** - * Encodes the specified QueryUnreceivedAcksResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryUnreceivedAcksResponse.verify|verify} messages. + * Encodes the specified QueryChannelClientStateRequest message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryChannelClientStateRequest.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.channel.v1.QueryUnreceivedAcksResponse + * @memberof ibc.core.channel.v1.QueryChannelClientStateRequest * @static - * @param {ibc.core.channel.v1.IQueryUnreceivedAcksResponse} message QueryUnreceivedAcksResponse message or plain object to encode + * @param {ibc.core.channel.v1.IQueryChannelClientStateRequest} message QueryChannelClientStateRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryUnreceivedAcksResponse.encodeDelimited = function encodeDelimited(message, writer) { + QueryChannelClientStateRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryUnreceivedAcksResponse message from the specified reader or buffer. + * Decodes a QueryChannelClientStateRequest message from the specified reader or buffer. * @function decode - * @memberof ibc.core.channel.v1.QueryUnreceivedAcksResponse + * @memberof ibc.core.channel.v1.QueryChannelClientStateRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.channel.v1.QueryUnreceivedAcksResponse} QueryUnreceivedAcksResponse + * @returns {ibc.core.channel.v1.QueryChannelClientStateRequest} QueryChannelClientStateRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryUnreceivedAcksResponse.decode = function decode(reader, length) { + QueryChannelClientStateRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.QueryUnreceivedAcksResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.QueryChannelClientStateRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.sequences && message.sequences.length)) - message.sequences = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.sequences.push(reader.uint64()); - } else - message.sequences.push(reader.uint64()); + message.port_id = reader.string(); break; case 2: - message.height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); + message.channel_id = reader.string(); break; default: reader.skipType(tag & 7); @@ -47201,144 +53525,118 @@ }; /** - * Decodes a QueryUnreceivedAcksResponse message from the specified reader or buffer, length delimited. + * Decodes a QueryChannelClientStateRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.channel.v1.QueryUnreceivedAcksResponse + * @memberof ibc.core.channel.v1.QueryChannelClientStateRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.channel.v1.QueryUnreceivedAcksResponse} QueryUnreceivedAcksResponse + * @returns {ibc.core.channel.v1.QueryChannelClientStateRequest} QueryChannelClientStateRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryUnreceivedAcksResponse.decodeDelimited = function decodeDelimited(reader) { + QueryChannelClientStateRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryUnreceivedAcksResponse message. + * Verifies a QueryChannelClientStateRequest message. * @function verify - * @memberof ibc.core.channel.v1.QueryUnreceivedAcksResponse + * @memberof ibc.core.channel.v1.QueryChannelClientStateRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryUnreceivedAcksResponse.verify = function verify(message) { + QueryChannelClientStateRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.sequences != null && message.hasOwnProperty("sequences")) { - if (!Array.isArray(message.sequences)) - return "sequences: array expected"; - for (var i = 0; i < message.sequences.length; ++i) - if (!$util.isInteger(message.sequences[i]) && !(message.sequences[i] && $util.isInteger(message.sequences[i].low) && $util.isInteger(message.sequences[i].high))) - return "sequences: integer|Long[] expected"; - } - if (message.height != null && message.hasOwnProperty("height")) { - var error = $root.ibc.core.client.v1.Height.verify(message.height); - if (error) - return "height." + error; - } + if (message.port_id != null && message.hasOwnProperty("port_id")) + if (!$util.isString(message.port_id)) + return "port_id: string expected"; + if (message.channel_id != null && message.hasOwnProperty("channel_id")) + if (!$util.isString(message.channel_id)) + return "channel_id: string expected"; return null; }; /** - * Creates a QueryUnreceivedAcksResponse message from a plain object. Also converts values to their respective internal types. + * Creates a QueryChannelClientStateRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.channel.v1.QueryUnreceivedAcksResponse + * @memberof ibc.core.channel.v1.QueryChannelClientStateRequest * @static * @param {Object.} object Plain object - * @returns {ibc.core.channel.v1.QueryUnreceivedAcksResponse} QueryUnreceivedAcksResponse + * @returns {ibc.core.channel.v1.QueryChannelClientStateRequest} QueryChannelClientStateRequest */ - QueryUnreceivedAcksResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.channel.v1.QueryUnreceivedAcksResponse) + QueryChannelClientStateRequest.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.channel.v1.QueryChannelClientStateRequest) return object; - var message = new $root.ibc.core.channel.v1.QueryUnreceivedAcksResponse(); - if (object.sequences) { - if (!Array.isArray(object.sequences)) - throw TypeError(".ibc.core.channel.v1.QueryUnreceivedAcksResponse.sequences: array expected"); - message.sequences = []; - for (var i = 0; i < object.sequences.length; ++i) - if ($util.Long) - (message.sequences[i] = $util.Long.fromValue(object.sequences[i])).unsigned = true; - else if (typeof object.sequences[i] === "string") - message.sequences[i] = parseInt(object.sequences[i], 10); - else if (typeof object.sequences[i] === "number") - message.sequences[i] = object.sequences[i]; - else if (typeof object.sequences[i] === "object") - message.sequences[i] = new $util.LongBits(object.sequences[i].low >>> 0, object.sequences[i].high >>> 0).toNumber(true); - } - if (object.height != null) { - if (typeof object.height !== "object") - throw TypeError(".ibc.core.channel.v1.QueryUnreceivedAcksResponse.height: object expected"); - message.height = $root.ibc.core.client.v1.Height.fromObject(object.height); - } + var message = new $root.ibc.core.channel.v1.QueryChannelClientStateRequest(); + if (object.port_id != null) + message.port_id = String(object.port_id); + if (object.channel_id != null) + message.channel_id = String(object.channel_id); return message; }; /** - * Creates a plain object from a QueryUnreceivedAcksResponse message. Also converts values to other types if specified. + * Creates a plain object from a QueryChannelClientStateRequest message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.channel.v1.QueryUnreceivedAcksResponse + * @memberof ibc.core.channel.v1.QueryChannelClientStateRequest * @static - * @param {ibc.core.channel.v1.QueryUnreceivedAcksResponse} message QueryUnreceivedAcksResponse + * @param {ibc.core.channel.v1.QueryChannelClientStateRequest} message QueryChannelClientStateRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryUnreceivedAcksResponse.toObject = function toObject(message, options) { + QueryChannelClientStateRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.sequences = []; - if (options.defaults) - object.height = null; - if (message.sequences && message.sequences.length) { - object.sequences = []; - for (var j = 0; j < message.sequences.length; ++j) - if (typeof message.sequences[j] === "number") - object.sequences[j] = options.longs === String ? String(message.sequences[j]) : message.sequences[j]; - else - object.sequences[j] = options.longs === String ? $util.Long.prototype.toString.call(message.sequences[j]) : options.longs === Number ? new $util.LongBits(message.sequences[j].low >>> 0, message.sequences[j].high >>> 0).toNumber(true) : message.sequences[j]; + if (options.defaults) { + object.port_id = ""; + object.channel_id = ""; } - if (message.height != null && message.hasOwnProperty("height")) - object.height = $root.ibc.core.client.v1.Height.toObject(message.height, options); + if (message.port_id != null && message.hasOwnProperty("port_id")) + object.port_id = message.port_id; + if (message.channel_id != null && message.hasOwnProperty("channel_id")) + object.channel_id = message.channel_id; return object; }; /** - * Converts this QueryUnreceivedAcksResponse to JSON. + * Converts this QueryChannelClientStateRequest to JSON. * @function toJSON - * @memberof ibc.core.channel.v1.QueryUnreceivedAcksResponse + * @memberof ibc.core.channel.v1.QueryChannelClientStateRequest * @instance * @returns {Object.} JSON object */ - QueryUnreceivedAcksResponse.prototype.toJSON = function toJSON() { + QueryChannelClientStateRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryUnreceivedAcksResponse; + return QueryChannelClientStateRequest; })(); - v1.QueryNextSequenceReceiveRequest = (function() { + v1.QueryChannelClientStateResponse = (function() { /** - * Properties of a QueryNextSequenceReceiveRequest. + * Properties of a QueryChannelClientStateResponse. * @memberof ibc.core.channel.v1 - * @interface IQueryNextSequenceReceiveRequest - * @property {string|null} [port_id] QueryNextSequenceReceiveRequest port_id - * @property {string|null} [channel_id] QueryNextSequenceReceiveRequest channel_id + * @interface IQueryChannelClientStateResponse + * @property {ibc.core.client.v1.IIdentifiedClientState|null} [identified_client_state] QueryChannelClientStateResponse identified_client_state + * @property {Uint8Array|null} [proof] QueryChannelClientStateResponse proof + * @property {ibc.core.client.v1.IHeight|null} [proof_height] QueryChannelClientStateResponse proof_height */ /** - * Constructs a new QueryNextSequenceReceiveRequest. + * Constructs a new QueryChannelClientStateResponse. * @memberof ibc.core.channel.v1 - * @classdesc Represents a QueryNextSequenceReceiveRequest. - * @implements IQueryNextSequenceReceiveRequest + * @classdesc Represents a QueryChannelClientStateResponse. + * @implements IQueryChannelClientStateResponse * @constructor - * @param {ibc.core.channel.v1.IQueryNextSequenceReceiveRequest=} [properties] Properties to set + * @param {ibc.core.channel.v1.IQueryChannelClientStateResponse=} [properties] Properties to set */ - function QueryNextSequenceReceiveRequest(properties) { + function QueryChannelClientStateResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -47346,76 +53644,89 @@ } /** - * QueryNextSequenceReceiveRequest port_id. - * @member {string} port_id - * @memberof ibc.core.channel.v1.QueryNextSequenceReceiveRequest + * QueryChannelClientStateResponse identified_client_state. + * @member {ibc.core.client.v1.IIdentifiedClientState|null|undefined} identified_client_state + * @memberof ibc.core.channel.v1.QueryChannelClientStateResponse * @instance */ - QueryNextSequenceReceiveRequest.prototype.port_id = ""; + QueryChannelClientStateResponse.prototype.identified_client_state = null; /** - * QueryNextSequenceReceiveRequest channel_id. - * @member {string} channel_id - * @memberof ibc.core.channel.v1.QueryNextSequenceReceiveRequest + * QueryChannelClientStateResponse proof. + * @member {Uint8Array} proof + * @memberof ibc.core.channel.v1.QueryChannelClientStateResponse * @instance */ - QueryNextSequenceReceiveRequest.prototype.channel_id = ""; + QueryChannelClientStateResponse.prototype.proof = $util.newBuffer([]); /** - * Encodes the specified QueryNextSequenceReceiveRequest message. Does not implicitly {@link ibc.core.channel.v1.QueryNextSequenceReceiveRequest.verify|verify} messages. + * QueryChannelClientStateResponse proof_height. + * @member {ibc.core.client.v1.IHeight|null|undefined} proof_height + * @memberof ibc.core.channel.v1.QueryChannelClientStateResponse + * @instance + */ + QueryChannelClientStateResponse.prototype.proof_height = null; + + /** + * Encodes the specified QueryChannelClientStateResponse message. Does not implicitly {@link ibc.core.channel.v1.QueryChannelClientStateResponse.verify|verify} messages. * @function encode - * @memberof ibc.core.channel.v1.QueryNextSequenceReceiveRequest + * @memberof ibc.core.channel.v1.QueryChannelClientStateResponse * @static - * @param {ibc.core.channel.v1.IQueryNextSequenceReceiveRequest} message QueryNextSequenceReceiveRequest message or plain object to encode + * @param {ibc.core.channel.v1.IQueryChannelClientStateResponse} message QueryChannelClientStateResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryNextSequenceReceiveRequest.encode = function encode(message, writer) { + QueryChannelClientStateResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.port_id != null && Object.hasOwnProperty.call(message, "port_id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.port_id); - if (message.channel_id != null && Object.hasOwnProperty.call(message, "channel_id")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.channel_id); + if (message.identified_client_state != null && Object.hasOwnProperty.call(message, "identified_client_state")) + $root.ibc.core.client.v1.IdentifiedClientState.encode(message.identified_client_state, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.proof != null && Object.hasOwnProperty.call(message, "proof")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.proof); + if (message.proof_height != null && Object.hasOwnProperty.call(message, "proof_height")) + $root.ibc.core.client.v1.Height.encode(message.proof_height, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified QueryNextSequenceReceiveRequest message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryNextSequenceReceiveRequest.verify|verify} messages. + * Encodes the specified QueryChannelClientStateResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryChannelClientStateResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.channel.v1.QueryNextSequenceReceiveRequest + * @memberof ibc.core.channel.v1.QueryChannelClientStateResponse * @static - * @param {ibc.core.channel.v1.IQueryNextSequenceReceiveRequest} message QueryNextSequenceReceiveRequest message or plain object to encode + * @param {ibc.core.channel.v1.IQueryChannelClientStateResponse} message QueryChannelClientStateResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryNextSequenceReceiveRequest.encodeDelimited = function encodeDelimited(message, writer) { + QueryChannelClientStateResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryNextSequenceReceiveRequest message from the specified reader or buffer. + * Decodes a QueryChannelClientStateResponse message from the specified reader or buffer. * @function decode - * @memberof ibc.core.channel.v1.QueryNextSequenceReceiveRequest + * @memberof ibc.core.channel.v1.QueryChannelClientStateResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.channel.v1.QueryNextSequenceReceiveRequest} QueryNextSequenceReceiveRequest + * @returns {ibc.core.channel.v1.QueryChannelClientStateResponse} QueryChannelClientStateResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryNextSequenceReceiveRequest.decode = function decode(reader, length) { + QueryChannelClientStateResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.QueryNextSequenceReceiveRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.QueryChannelClientStateResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.port_id = reader.string(); + message.identified_client_state = $root.ibc.core.client.v1.IdentifiedClientState.decode(reader, reader.uint32()); break; case 2: - message.channel_id = reader.string(); + message.proof = reader.bytes(); + break; + case 3: + message.proof_height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -47426,118 +53737,146 @@ }; /** - * Decodes a QueryNextSequenceReceiveRequest message from the specified reader or buffer, length delimited. + * Decodes a QueryChannelClientStateResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.channel.v1.QueryNextSequenceReceiveRequest + * @memberof ibc.core.channel.v1.QueryChannelClientStateResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.channel.v1.QueryNextSequenceReceiveRequest} QueryNextSequenceReceiveRequest + * @returns {ibc.core.channel.v1.QueryChannelClientStateResponse} QueryChannelClientStateResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryNextSequenceReceiveRequest.decodeDelimited = function decodeDelimited(reader) { + QueryChannelClientStateResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryNextSequenceReceiveRequest message. + * Verifies a QueryChannelClientStateResponse message. * @function verify - * @memberof ibc.core.channel.v1.QueryNextSequenceReceiveRequest + * @memberof ibc.core.channel.v1.QueryChannelClientStateResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryNextSequenceReceiveRequest.verify = function verify(message) { + QueryChannelClientStateResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.port_id != null && message.hasOwnProperty("port_id")) - if (!$util.isString(message.port_id)) - return "port_id: string expected"; - if (message.channel_id != null && message.hasOwnProperty("channel_id")) - if (!$util.isString(message.channel_id)) - return "channel_id: string expected"; + if (message.identified_client_state != null && message.hasOwnProperty("identified_client_state")) { + var error = $root.ibc.core.client.v1.IdentifiedClientState.verify(message.identified_client_state); + if (error) + return "identified_client_state." + error; + } + if (message.proof != null && message.hasOwnProperty("proof")) + if (!(message.proof && typeof message.proof.length === "number" || $util.isString(message.proof))) + return "proof: buffer expected"; + if (message.proof_height != null && message.hasOwnProperty("proof_height")) { + var error = $root.ibc.core.client.v1.Height.verify(message.proof_height); + if (error) + return "proof_height." + error; + } return null; }; /** - * Creates a QueryNextSequenceReceiveRequest message from a plain object. Also converts values to their respective internal types. + * Creates a QueryChannelClientStateResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.channel.v1.QueryNextSequenceReceiveRequest + * @memberof ibc.core.channel.v1.QueryChannelClientStateResponse * @static * @param {Object.} object Plain object - * @returns {ibc.core.channel.v1.QueryNextSequenceReceiveRequest} QueryNextSequenceReceiveRequest + * @returns {ibc.core.channel.v1.QueryChannelClientStateResponse} QueryChannelClientStateResponse */ - QueryNextSequenceReceiveRequest.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.channel.v1.QueryNextSequenceReceiveRequest) + QueryChannelClientStateResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.channel.v1.QueryChannelClientStateResponse) return object; - var message = new $root.ibc.core.channel.v1.QueryNextSequenceReceiveRequest(); - if (object.port_id != null) - message.port_id = String(object.port_id); - if (object.channel_id != null) - message.channel_id = String(object.channel_id); + var message = new $root.ibc.core.channel.v1.QueryChannelClientStateResponse(); + if (object.identified_client_state != null) { + if (typeof object.identified_client_state !== "object") + throw TypeError(".ibc.core.channel.v1.QueryChannelClientStateResponse.identified_client_state: object expected"); + message.identified_client_state = $root.ibc.core.client.v1.IdentifiedClientState.fromObject(object.identified_client_state); + } + if (object.proof != null) + if (typeof object.proof === "string") + $util.base64.decode(object.proof, message.proof = $util.newBuffer($util.base64.length(object.proof)), 0); + else if (object.proof.length) + message.proof = object.proof; + if (object.proof_height != null) { + if (typeof object.proof_height !== "object") + throw TypeError(".ibc.core.channel.v1.QueryChannelClientStateResponse.proof_height: object expected"); + message.proof_height = $root.ibc.core.client.v1.Height.fromObject(object.proof_height); + } return message; }; /** - * Creates a plain object from a QueryNextSequenceReceiveRequest message. Also converts values to other types if specified. + * Creates a plain object from a QueryChannelClientStateResponse message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.channel.v1.QueryNextSequenceReceiveRequest + * @memberof ibc.core.channel.v1.QueryChannelClientStateResponse * @static - * @param {ibc.core.channel.v1.QueryNextSequenceReceiveRequest} message QueryNextSequenceReceiveRequest + * @param {ibc.core.channel.v1.QueryChannelClientStateResponse} message QueryChannelClientStateResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryNextSequenceReceiveRequest.toObject = function toObject(message, options) { + QueryChannelClientStateResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.port_id = ""; - object.channel_id = ""; + object.identified_client_state = null; + if (options.bytes === String) + object.proof = ""; + else { + object.proof = []; + if (options.bytes !== Array) + object.proof = $util.newBuffer(object.proof); + } + object.proof_height = null; } - if (message.port_id != null && message.hasOwnProperty("port_id")) - object.port_id = message.port_id; - if (message.channel_id != null && message.hasOwnProperty("channel_id")) - object.channel_id = message.channel_id; + if (message.identified_client_state != null && message.hasOwnProperty("identified_client_state")) + object.identified_client_state = $root.ibc.core.client.v1.IdentifiedClientState.toObject(message.identified_client_state, options); + if (message.proof != null && message.hasOwnProperty("proof")) + object.proof = options.bytes === String ? $util.base64.encode(message.proof, 0, message.proof.length) : options.bytes === Array ? Array.prototype.slice.call(message.proof) : message.proof; + if (message.proof_height != null && message.hasOwnProperty("proof_height")) + object.proof_height = $root.ibc.core.client.v1.Height.toObject(message.proof_height, options); return object; }; /** - * Converts this QueryNextSequenceReceiveRequest to JSON. + * Converts this QueryChannelClientStateResponse to JSON. * @function toJSON - * @memberof ibc.core.channel.v1.QueryNextSequenceReceiveRequest + * @memberof ibc.core.channel.v1.QueryChannelClientStateResponse * @instance * @returns {Object.} JSON object */ - QueryNextSequenceReceiveRequest.prototype.toJSON = function toJSON() { + QueryChannelClientStateResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryNextSequenceReceiveRequest; + return QueryChannelClientStateResponse; })(); - v1.QueryNextSequenceReceiveResponse = (function() { + v1.QueryChannelConsensusStateRequest = (function() { /** - * Properties of a QueryNextSequenceReceiveResponse. + * Properties of a QueryChannelConsensusStateRequest. * @memberof ibc.core.channel.v1 - * @interface IQueryNextSequenceReceiveResponse - * @property {Long|null} [next_sequence_receive] QueryNextSequenceReceiveResponse next_sequence_receive - * @property {Uint8Array|null} [proof] QueryNextSequenceReceiveResponse proof - * @property {ibc.core.client.v1.IHeight|null} [proof_height] QueryNextSequenceReceiveResponse proof_height + * @interface IQueryChannelConsensusStateRequest + * @property {string|null} [port_id] QueryChannelConsensusStateRequest port_id + * @property {string|null} [channel_id] QueryChannelConsensusStateRequest channel_id + * @property {Long|null} [revision_number] QueryChannelConsensusStateRequest revision_number + * @property {Long|null} [revision_height] QueryChannelConsensusStateRequest revision_height */ /** - * Constructs a new QueryNextSequenceReceiveResponse. + * Constructs a new QueryChannelConsensusStateRequest. * @memberof ibc.core.channel.v1 - * @classdesc Represents a QueryNextSequenceReceiveResponse. - * @implements IQueryNextSequenceReceiveResponse + * @classdesc Represents a QueryChannelConsensusStateRequest. + * @implements IQueryChannelConsensusStateRequest * @constructor - * @param {ibc.core.channel.v1.IQueryNextSequenceReceiveResponse=} [properties] Properties to set + * @param {ibc.core.channel.v1.IQueryChannelConsensusStateRequest=} [properties] Properties to set */ - function QueryNextSequenceReceiveResponse(properties) { + function QueryChannelConsensusStateRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -47545,89 +53884,102 @@ } /** - * QueryNextSequenceReceiveResponse next_sequence_receive. - * @member {Long} next_sequence_receive - * @memberof ibc.core.channel.v1.QueryNextSequenceReceiveResponse + * QueryChannelConsensusStateRequest port_id. + * @member {string} port_id + * @memberof ibc.core.channel.v1.QueryChannelConsensusStateRequest * @instance */ - QueryNextSequenceReceiveResponse.prototype.next_sequence_receive = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + QueryChannelConsensusStateRequest.prototype.port_id = ""; /** - * QueryNextSequenceReceiveResponse proof. - * @member {Uint8Array} proof - * @memberof ibc.core.channel.v1.QueryNextSequenceReceiveResponse + * QueryChannelConsensusStateRequest channel_id. + * @member {string} channel_id + * @memberof ibc.core.channel.v1.QueryChannelConsensusStateRequest * @instance */ - QueryNextSequenceReceiveResponse.prototype.proof = $util.newBuffer([]); + QueryChannelConsensusStateRequest.prototype.channel_id = ""; /** - * QueryNextSequenceReceiveResponse proof_height. - * @member {ibc.core.client.v1.IHeight|null|undefined} proof_height - * @memberof ibc.core.channel.v1.QueryNextSequenceReceiveResponse + * QueryChannelConsensusStateRequest revision_number. + * @member {Long} revision_number + * @memberof ibc.core.channel.v1.QueryChannelConsensusStateRequest * @instance */ - QueryNextSequenceReceiveResponse.prototype.proof_height = null; + QueryChannelConsensusStateRequest.prototype.revision_number = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** - * Encodes the specified QueryNextSequenceReceiveResponse message. Does not implicitly {@link ibc.core.channel.v1.QueryNextSequenceReceiveResponse.verify|verify} messages. + * QueryChannelConsensusStateRequest revision_height. + * @member {Long} revision_height + * @memberof ibc.core.channel.v1.QueryChannelConsensusStateRequest + * @instance + */ + QueryChannelConsensusStateRequest.prototype.revision_height = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + + /** + * Encodes the specified QueryChannelConsensusStateRequest message. Does not implicitly {@link ibc.core.channel.v1.QueryChannelConsensusStateRequest.verify|verify} messages. * @function encode - * @memberof ibc.core.channel.v1.QueryNextSequenceReceiveResponse + * @memberof ibc.core.channel.v1.QueryChannelConsensusStateRequest * @static - * @param {ibc.core.channel.v1.IQueryNextSequenceReceiveResponse} message QueryNextSequenceReceiveResponse message or plain object to encode + * @param {ibc.core.channel.v1.IQueryChannelConsensusStateRequest} message QueryChannelConsensusStateRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryNextSequenceReceiveResponse.encode = function encode(message, writer) { + QueryChannelConsensusStateRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.next_sequence_receive != null && Object.hasOwnProperty.call(message, "next_sequence_receive")) - writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.next_sequence_receive); - if (message.proof != null && Object.hasOwnProperty.call(message, "proof")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.proof); - if (message.proof_height != null && Object.hasOwnProperty.call(message, "proof_height")) - $root.ibc.core.client.v1.Height.encode(message.proof_height, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.port_id != null && Object.hasOwnProperty.call(message, "port_id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.port_id); + if (message.channel_id != null && Object.hasOwnProperty.call(message, "channel_id")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.channel_id); + if (message.revision_number != null && Object.hasOwnProperty.call(message, "revision_number")) + writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.revision_number); + if (message.revision_height != null && Object.hasOwnProperty.call(message, "revision_height")) + writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.revision_height); return writer; }; /** - * Encodes the specified QueryNextSequenceReceiveResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryNextSequenceReceiveResponse.verify|verify} messages. + * Encodes the specified QueryChannelConsensusStateRequest message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryChannelConsensusStateRequest.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.channel.v1.QueryNextSequenceReceiveResponse + * @memberof ibc.core.channel.v1.QueryChannelConsensusStateRequest * @static - * @param {ibc.core.channel.v1.IQueryNextSequenceReceiveResponse} message QueryNextSequenceReceiveResponse message or plain object to encode + * @param {ibc.core.channel.v1.IQueryChannelConsensusStateRequest} message QueryChannelConsensusStateRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryNextSequenceReceiveResponse.encodeDelimited = function encodeDelimited(message, writer) { + QueryChannelConsensusStateRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryNextSequenceReceiveResponse message from the specified reader or buffer. + * Decodes a QueryChannelConsensusStateRequest message from the specified reader or buffer. * @function decode - * @memberof ibc.core.channel.v1.QueryNextSequenceReceiveResponse + * @memberof ibc.core.channel.v1.QueryChannelConsensusStateRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.channel.v1.QueryNextSequenceReceiveResponse} QueryNextSequenceReceiveResponse + * @returns {ibc.core.channel.v1.QueryChannelConsensusStateRequest} QueryChannelConsensusStateRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryNextSequenceReceiveResponse.decode = function decode(reader, length) { + QueryChannelConsensusStateRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.QueryNextSequenceReceiveResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.QueryChannelConsensusStateRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.next_sequence_receive = reader.uint64(); + message.port_id = reader.string(); break; case 2: - message.proof = reader.bytes(); + message.channel_id = reader.string(); break; case 3: - message.proof_height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); + message.revision_number = reader.uint64(); + break; + case 4: + message.revision_height = reader.uint64(); break; default: reader.skipType(tag & 7); @@ -47638,166 +53990,163 @@ }; /** - * Decodes a QueryNextSequenceReceiveResponse message from the specified reader or buffer, length delimited. + * Decodes a QueryChannelConsensusStateRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.channel.v1.QueryNextSequenceReceiveResponse + * @memberof ibc.core.channel.v1.QueryChannelConsensusStateRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.channel.v1.QueryNextSequenceReceiveResponse} QueryNextSequenceReceiveResponse + * @returns {ibc.core.channel.v1.QueryChannelConsensusStateRequest} QueryChannelConsensusStateRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryNextSequenceReceiveResponse.decodeDelimited = function decodeDelimited(reader) { + QueryChannelConsensusStateRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryNextSequenceReceiveResponse message. + * Verifies a QueryChannelConsensusStateRequest message. * @function verify - * @memberof ibc.core.channel.v1.QueryNextSequenceReceiveResponse + * @memberof ibc.core.channel.v1.QueryChannelConsensusStateRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryNextSequenceReceiveResponse.verify = function verify(message) { + QueryChannelConsensusStateRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.next_sequence_receive != null && message.hasOwnProperty("next_sequence_receive")) - if (!$util.isInteger(message.next_sequence_receive) && !(message.next_sequence_receive && $util.isInteger(message.next_sequence_receive.low) && $util.isInteger(message.next_sequence_receive.high))) - return "next_sequence_receive: integer|Long expected"; - if (message.proof != null && message.hasOwnProperty("proof")) - if (!(message.proof && typeof message.proof.length === "number" || $util.isString(message.proof))) - return "proof: buffer expected"; - if (message.proof_height != null && message.hasOwnProperty("proof_height")) { - var error = $root.ibc.core.client.v1.Height.verify(message.proof_height); - if (error) - return "proof_height." + error; - } + if (message.port_id != null && message.hasOwnProperty("port_id")) + if (!$util.isString(message.port_id)) + return "port_id: string expected"; + if (message.channel_id != null && message.hasOwnProperty("channel_id")) + if (!$util.isString(message.channel_id)) + return "channel_id: string expected"; + if (message.revision_number != null && message.hasOwnProperty("revision_number")) + if (!$util.isInteger(message.revision_number) && !(message.revision_number && $util.isInteger(message.revision_number.low) && $util.isInteger(message.revision_number.high))) + return "revision_number: integer|Long expected"; + if (message.revision_height != null && message.hasOwnProperty("revision_height")) + if (!$util.isInteger(message.revision_height) && !(message.revision_height && $util.isInteger(message.revision_height.low) && $util.isInteger(message.revision_height.high))) + return "revision_height: integer|Long expected"; return null; }; /** - * Creates a QueryNextSequenceReceiveResponse message from a plain object. Also converts values to their respective internal types. + * Creates a QueryChannelConsensusStateRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.channel.v1.QueryNextSequenceReceiveResponse + * @memberof ibc.core.channel.v1.QueryChannelConsensusStateRequest * @static * @param {Object.} object Plain object - * @returns {ibc.core.channel.v1.QueryNextSequenceReceiveResponse} QueryNextSequenceReceiveResponse + * @returns {ibc.core.channel.v1.QueryChannelConsensusStateRequest} QueryChannelConsensusStateRequest */ - QueryNextSequenceReceiveResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.channel.v1.QueryNextSequenceReceiveResponse) + QueryChannelConsensusStateRequest.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.channel.v1.QueryChannelConsensusStateRequest) return object; - var message = new $root.ibc.core.channel.v1.QueryNextSequenceReceiveResponse(); - if (object.next_sequence_receive != null) + var message = new $root.ibc.core.channel.v1.QueryChannelConsensusStateRequest(); + if (object.port_id != null) + message.port_id = String(object.port_id); + if (object.channel_id != null) + message.channel_id = String(object.channel_id); + if (object.revision_number != null) if ($util.Long) - (message.next_sequence_receive = $util.Long.fromValue(object.next_sequence_receive)).unsigned = true; - else if (typeof object.next_sequence_receive === "string") - message.next_sequence_receive = parseInt(object.next_sequence_receive, 10); - else if (typeof object.next_sequence_receive === "number") - message.next_sequence_receive = object.next_sequence_receive; - else if (typeof object.next_sequence_receive === "object") - message.next_sequence_receive = new $util.LongBits(object.next_sequence_receive.low >>> 0, object.next_sequence_receive.high >>> 0).toNumber(true); - if (object.proof != null) - if (typeof object.proof === "string") - $util.base64.decode(object.proof, message.proof = $util.newBuffer($util.base64.length(object.proof)), 0); - else if (object.proof.length) - message.proof = object.proof; - if (object.proof_height != null) { - if (typeof object.proof_height !== "object") - throw TypeError(".ibc.core.channel.v1.QueryNextSequenceReceiveResponse.proof_height: object expected"); - message.proof_height = $root.ibc.core.client.v1.Height.fromObject(object.proof_height); - } + (message.revision_number = $util.Long.fromValue(object.revision_number)).unsigned = true; + else if (typeof object.revision_number === "string") + message.revision_number = parseInt(object.revision_number, 10); + else if (typeof object.revision_number === "number") + message.revision_number = object.revision_number; + else if (typeof object.revision_number === "object") + message.revision_number = new $util.LongBits(object.revision_number.low >>> 0, object.revision_number.high >>> 0).toNumber(true); + if (object.revision_height != null) + if ($util.Long) + (message.revision_height = $util.Long.fromValue(object.revision_height)).unsigned = true; + else if (typeof object.revision_height === "string") + message.revision_height = parseInt(object.revision_height, 10); + else if (typeof object.revision_height === "number") + message.revision_height = object.revision_height; + else if (typeof object.revision_height === "object") + message.revision_height = new $util.LongBits(object.revision_height.low >>> 0, object.revision_height.high >>> 0).toNumber(true); return message; }; /** - * Creates a plain object from a QueryNextSequenceReceiveResponse message. Also converts values to other types if specified. + * Creates a plain object from a QueryChannelConsensusStateRequest message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.channel.v1.QueryNextSequenceReceiveResponse + * @memberof ibc.core.channel.v1.QueryChannelConsensusStateRequest * @static - * @param {ibc.core.channel.v1.QueryNextSequenceReceiveResponse} message QueryNextSequenceReceiveResponse + * @param {ibc.core.channel.v1.QueryChannelConsensusStateRequest} message QueryChannelConsensusStateRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryNextSequenceReceiveResponse.toObject = function toObject(message, options) { + QueryChannelConsensusStateRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { + object.port_id = ""; + object.channel_id = ""; if ($util.Long) { var long = new $util.Long(0, 0, true); - object.next_sequence_receive = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + object.revision_number = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.next_sequence_receive = options.longs === String ? "0" : 0; - if (options.bytes === String) - object.proof = ""; - else { - object.proof = []; - if (options.bytes !== Array) - object.proof = $util.newBuffer(object.proof); - } - object.proof_height = null; + object.revision_number = options.longs === String ? "0" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, true); + object.revision_height = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.revision_height = options.longs === String ? "0" : 0; } - if (message.next_sequence_receive != null && message.hasOwnProperty("next_sequence_receive")) - if (typeof message.next_sequence_receive === "number") - object.next_sequence_receive = options.longs === String ? String(message.next_sequence_receive) : message.next_sequence_receive; + if (message.port_id != null && message.hasOwnProperty("port_id")) + object.port_id = message.port_id; + if (message.channel_id != null && message.hasOwnProperty("channel_id")) + object.channel_id = message.channel_id; + if (message.revision_number != null && message.hasOwnProperty("revision_number")) + if (typeof message.revision_number === "number") + object.revision_number = options.longs === String ? String(message.revision_number) : message.revision_number; else - object.next_sequence_receive = options.longs === String ? $util.Long.prototype.toString.call(message.next_sequence_receive) : options.longs === Number ? new $util.LongBits(message.next_sequence_receive.low >>> 0, message.next_sequence_receive.high >>> 0).toNumber(true) : message.next_sequence_receive; - if (message.proof != null && message.hasOwnProperty("proof")) - object.proof = options.bytes === String ? $util.base64.encode(message.proof, 0, message.proof.length) : options.bytes === Array ? Array.prototype.slice.call(message.proof) : message.proof; - if (message.proof_height != null && message.hasOwnProperty("proof_height")) - object.proof_height = $root.ibc.core.client.v1.Height.toObject(message.proof_height, options); + object.revision_number = options.longs === String ? $util.Long.prototype.toString.call(message.revision_number) : options.longs === Number ? new $util.LongBits(message.revision_number.low >>> 0, message.revision_number.high >>> 0).toNumber(true) : message.revision_number; + if (message.revision_height != null && message.hasOwnProperty("revision_height")) + if (typeof message.revision_height === "number") + object.revision_height = options.longs === String ? String(message.revision_height) : message.revision_height; + else + object.revision_height = options.longs === String ? $util.Long.prototype.toString.call(message.revision_height) : options.longs === Number ? new $util.LongBits(message.revision_height.low >>> 0, message.revision_height.high >>> 0).toNumber(true) : message.revision_height; return object; }; /** - * Converts this QueryNextSequenceReceiveResponse to JSON. + * Converts this QueryChannelConsensusStateRequest to JSON. * @function toJSON - * @memberof ibc.core.channel.v1.QueryNextSequenceReceiveResponse + * @memberof ibc.core.channel.v1.QueryChannelConsensusStateRequest * @instance * @returns {Object.} JSON object */ - QueryNextSequenceReceiveResponse.prototype.toJSON = function toJSON() { + QueryChannelConsensusStateRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryNextSequenceReceiveResponse; + return QueryChannelConsensusStateRequest; })(); - v1.GenesisState = (function() { + v1.QueryChannelConsensusStateResponse = (function() { /** - * Properties of a GenesisState. + * Properties of a QueryChannelConsensusStateResponse. * @memberof ibc.core.channel.v1 - * @interface IGenesisState - * @property {Array.|null} [channels] GenesisState channels - * @property {Array.|null} [acknowledgements] GenesisState acknowledgements - * @property {Array.|null} [commitments] GenesisState commitments - * @property {Array.|null} [receipts] GenesisState receipts - * @property {Array.|null} [send_sequences] GenesisState send_sequences - * @property {Array.|null} [recv_sequences] GenesisState recv_sequences - * @property {Array.|null} [ack_sequences] GenesisState ack_sequences - * @property {Long|null} [next_channel_sequence] GenesisState next_channel_sequence + * @interface IQueryChannelConsensusStateResponse + * @property {google.protobuf.IAny|null} [consensus_state] QueryChannelConsensusStateResponse consensus_state + * @property {string|null} [client_id] QueryChannelConsensusStateResponse client_id + * @property {Uint8Array|null} [proof] QueryChannelConsensusStateResponse proof + * @property {ibc.core.client.v1.IHeight|null} [proof_height] QueryChannelConsensusStateResponse proof_height */ /** - * Constructs a new GenesisState. + * Constructs a new QueryChannelConsensusStateResponse. * @memberof ibc.core.channel.v1 - * @classdesc Represents a GenesisState. - * @implements IGenesisState + * @classdesc Represents a QueryChannelConsensusStateResponse. + * @implements IQueryChannelConsensusStateResponse * @constructor - * @param {ibc.core.channel.v1.IGenesisState=} [properties] Properties to set + * @param {ibc.core.channel.v1.IQueryChannelConsensusStateResponse=} [properties] Properties to set */ - function GenesisState(properties) { - this.channels = []; - this.acknowledgements = []; - this.commitments = []; - this.receipts = []; - this.send_sequences = []; - this.recv_sequences = []; - this.ack_sequences = []; + function QueryChannelConsensusStateResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -47805,175 +54154,102 @@ } /** - * GenesisState channels. - * @member {Array.} channels - * @memberof ibc.core.channel.v1.GenesisState - * @instance - */ - GenesisState.prototype.channels = $util.emptyArray; - - /** - * GenesisState acknowledgements. - * @member {Array.} acknowledgements - * @memberof ibc.core.channel.v1.GenesisState - * @instance - */ - GenesisState.prototype.acknowledgements = $util.emptyArray; - - /** - * GenesisState commitments. - * @member {Array.} commitments - * @memberof ibc.core.channel.v1.GenesisState - * @instance - */ - GenesisState.prototype.commitments = $util.emptyArray; - - /** - * GenesisState receipts. - * @member {Array.} receipts - * @memberof ibc.core.channel.v1.GenesisState - * @instance - */ - GenesisState.prototype.receipts = $util.emptyArray; - - /** - * GenesisState send_sequences. - * @member {Array.} send_sequences - * @memberof ibc.core.channel.v1.GenesisState + * QueryChannelConsensusStateResponse consensus_state. + * @member {google.protobuf.IAny|null|undefined} consensus_state + * @memberof ibc.core.channel.v1.QueryChannelConsensusStateResponse * @instance */ - GenesisState.prototype.send_sequences = $util.emptyArray; + QueryChannelConsensusStateResponse.prototype.consensus_state = null; /** - * GenesisState recv_sequences. - * @member {Array.} recv_sequences - * @memberof ibc.core.channel.v1.GenesisState + * QueryChannelConsensusStateResponse client_id. + * @member {string} client_id + * @memberof ibc.core.channel.v1.QueryChannelConsensusStateResponse * @instance */ - GenesisState.prototype.recv_sequences = $util.emptyArray; + QueryChannelConsensusStateResponse.prototype.client_id = ""; /** - * GenesisState ack_sequences. - * @member {Array.} ack_sequences - * @memberof ibc.core.channel.v1.GenesisState + * QueryChannelConsensusStateResponse proof. + * @member {Uint8Array} proof + * @memberof ibc.core.channel.v1.QueryChannelConsensusStateResponse * @instance */ - GenesisState.prototype.ack_sequences = $util.emptyArray; + QueryChannelConsensusStateResponse.prototype.proof = $util.newBuffer([]); /** - * GenesisState next_channel_sequence. - * @member {Long} next_channel_sequence - * @memberof ibc.core.channel.v1.GenesisState + * QueryChannelConsensusStateResponse proof_height. + * @member {ibc.core.client.v1.IHeight|null|undefined} proof_height + * @memberof ibc.core.channel.v1.QueryChannelConsensusStateResponse * @instance */ - GenesisState.prototype.next_channel_sequence = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + QueryChannelConsensusStateResponse.prototype.proof_height = null; /** - * Encodes the specified GenesisState message. Does not implicitly {@link ibc.core.channel.v1.GenesisState.verify|verify} messages. + * Encodes the specified QueryChannelConsensusStateResponse message. Does not implicitly {@link ibc.core.channel.v1.QueryChannelConsensusStateResponse.verify|verify} messages. * @function encode - * @memberof ibc.core.channel.v1.GenesisState + * @memberof ibc.core.channel.v1.QueryChannelConsensusStateResponse * @static - * @param {ibc.core.channel.v1.IGenesisState} message GenesisState message or plain object to encode + * @param {ibc.core.channel.v1.IQueryChannelConsensusStateResponse} message QueryChannelConsensusStateResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GenesisState.encode = function encode(message, writer) { + QueryChannelConsensusStateResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.channels != null && message.channels.length) - for (var i = 0; i < message.channels.length; ++i) - $root.ibc.core.channel.v1.IdentifiedChannel.encode(message.channels[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.acknowledgements != null && message.acknowledgements.length) - for (var i = 0; i < message.acknowledgements.length; ++i) - $root.ibc.core.channel.v1.PacketState.encode(message.acknowledgements[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.commitments != null && message.commitments.length) - for (var i = 0; i < message.commitments.length; ++i) - $root.ibc.core.channel.v1.PacketState.encode(message.commitments[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.receipts != null && message.receipts.length) - for (var i = 0; i < message.receipts.length; ++i) - $root.ibc.core.channel.v1.PacketState.encode(message.receipts[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.send_sequences != null && message.send_sequences.length) - for (var i = 0; i < message.send_sequences.length; ++i) - $root.ibc.core.channel.v1.PacketSequence.encode(message.send_sequences[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.recv_sequences != null && message.recv_sequences.length) - for (var i = 0; i < message.recv_sequences.length; ++i) - $root.ibc.core.channel.v1.PacketSequence.encode(message.recv_sequences[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.ack_sequences != null && message.ack_sequences.length) - for (var i = 0; i < message.ack_sequences.length; ++i) - $root.ibc.core.channel.v1.PacketSequence.encode(message.ack_sequences[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.next_channel_sequence != null && Object.hasOwnProperty.call(message, "next_channel_sequence")) - writer.uint32(/* id 8, wireType 0 =*/64).uint64(message.next_channel_sequence); + if (message.consensus_state != null && Object.hasOwnProperty.call(message, "consensus_state")) + $root.google.protobuf.Any.encode(message.consensus_state, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.client_id != null && Object.hasOwnProperty.call(message, "client_id")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.client_id); + if (message.proof != null && Object.hasOwnProperty.call(message, "proof")) + writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.proof); + if (message.proof_height != null && Object.hasOwnProperty.call(message, "proof_height")) + $root.ibc.core.client.v1.Height.encode(message.proof_height, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; /** - * Encodes the specified GenesisState message, length delimited. Does not implicitly {@link ibc.core.channel.v1.GenesisState.verify|verify} messages. + * Encodes the specified QueryChannelConsensusStateResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryChannelConsensusStateResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.channel.v1.GenesisState + * @memberof ibc.core.channel.v1.QueryChannelConsensusStateResponse * @static - * @param {ibc.core.channel.v1.IGenesisState} message GenesisState message or plain object to encode + * @param {ibc.core.channel.v1.IQueryChannelConsensusStateResponse} message QueryChannelConsensusStateResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GenesisState.encodeDelimited = function encodeDelimited(message, writer) { + QueryChannelConsensusStateResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GenesisState message from the specified reader or buffer. + * Decodes a QueryChannelConsensusStateResponse message from the specified reader or buffer. * @function decode - * @memberof ibc.core.channel.v1.GenesisState + * @memberof ibc.core.channel.v1.QueryChannelConsensusStateResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.channel.v1.GenesisState} GenesisState + * @returns {ibc.core.channel.v1.QueryChannelConsensusStateResponse} QueryChannelConsensusStateResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GenesisState.decode = function decode(reader, length) { + QueryChannelConsensusStateResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.GenesisState(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.QueryChannelConsensusStateResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.channels && message.channels.length)) - message.channels = []; - message.channels.push($root.ibc.core.channel.v1.IdentifiedChannel.decode(reader, reader.uint32())); + message.consensus_state = $root.google.protobuf.Any.decode(reader, reader.uint32()); break; case 2: - if (!(message.acknowledgements && message.acknowledgements.length)) - message.acknowledgements = []; - message.acknowledgements.push($root.ibc.core.channel.v1.PacketState.decode(reader, reader.uint32())); + message.client_id = reader.string(); break; case 3: - if (!(message.commitments && message.commitments.length)) - message.commitments = []; - message.commitments.push($root.ibc.core.channel.v1.PacketState.decode(reader, reader.uint32())); + message.proof = reader.bytes(); break; case 4: - if (!(message.receipts && message.receipts.length)) - message.receipts = []; - message.receipts.push($root.ibc.core.channel.v1.PacketState.decode(reader, reader.uint32())); - break; - case 5: - if (!(message.send_sequences && message.send_sequences.length)) - message.send_sequences = []; - message.send_sequences.push($root.ibc.core.channel.v1.PacketSequence.decode(reader, reader.uint32())); - break; - case 6: - if (!(message.recv_sequences && message.recv_sequences.length)) - message.recv_sequences = []; - message.recv_sequences.push($root.ibc.core.channel.v1.PacketSequence.decode(reader, reader.uint32())); - break; - case 7: - if (!(message.ack_sequences && message.ack_sequences.length)) - message.ack_sequences = []; - message.ack_sequences.push($root.ibc.core.channel.v1.PacketSequence.decode(reader, reader.uint32())); - break; - case 8: - message.next_channel_sequence = reader.uint64(); + message.proof_height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -47984,300 +54260,153 @@ }; /** - * Decodes a GenesisState message from the specified reader or buffer, length delimited. + * Decodes a QueryChannelConsensusStateResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.channel.v1.GenesisState + * @memberof ibc.core.channel.v1.QueryChannelConsensusStateResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.channel.v1.GenesisState} GenesisState + * @returns {ibc.core.channel.v1.QueryChannelConsensusStateResponse} QueryChannelConsensusStateResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GenesisState.decodeDelimited = function decodeDelimited(reader) { + QueryChannelConsensusStateResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GenesisState message. + * Verifies a QueryChannelConsensusStateResponse message. * @function verify - * @memberof ibc.core.channel.v1.GenesisState + * @memberof ibc.core.channel.v1.QueryChannelConsensusStateResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GenesisState.verify = function verify(message) { + QueryChannelConsensusStateResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.channels != null && message.hasOwnProperty("channels")) { - if (!Array.isArray(message.channels)) - return "channels: array expected"; - for (var i = 0; i < message.channels.length; ++i) { - var error = $root.ibc.core.channel.v1.IdentifiedChannel.verify(message.channels[i]); - if (error) - return "channels." + error; - } - } - if (message.acknowledgements != null && message.hasOwnProperty("acknowledgements")) { - if (!Array.isArray(message.acknowledgements)) - return "acknowledgements: array expected"; - for (var i = 0; i < message.acknowledgements.length; ++i) { - var error = $root.ibc.core.channel.v1.PacketState.verify(message.acknowledgements[i]); - if (error) - return "acknowledgements." + error; - } - } - if (message.commitments != null && message.hasOwnProperty("commitments")) { - if (!Array.isArray(message.commitments)) - return "commitments: array expected"; - for (var i = 0; i < message.commitments.length; ++i) { - var error = $root.ibc.core.channel.v1.PacketState.verify(message.commitments[i]); - if (error) - return "commitments." + error; - } - } - if (message.receipts != null && message.hasOwnProperty("receipts")) { - if (!Array.isArray(message.receipts)) - return "receipts: array expected"; - for (var i = 0; i < message.receipts.length; ++i) { - var error = $root.ibc.core.channel.v1.PacketState.verify(message.receipts[i]); - if (error) - return "receipts." + error; - } - } - if (message.send_sequences != null && message.hasOwnProperty("send_sequences")) { - if (!Array.isArray(message.send_sequences)) - return "send_sequences: array expected"; - for (var i = 0; i < message.send_sequences.length; ++i) { - var error = $root.ibc.core.channel.v1.PacketSequence.verify(message.send_sequences[i]); - if (error) - return "send_sequences." + error; - } - } - if (message.recv_sequences != null && message.hasOwnProperty("recv_sequences")) { - if (!Array.isArray(message.recv_sequences)) - return "recv_sequences: array expected"; - for (var i = 0; i < message.recv_sequences.length; ++i) { - var error = $root.ibc.core.channel.v1.PacketSequence.verify(message.recv_sequences[i]); - if (error) - return "recv_sequences." + error; - } + if (message.consensus_state != null && message.hasOwnProperty("consensus_state")) { + var error = $root.google.protobuf.Any.verify(message.consensus_state); + if (error) + return "consensus_state." + error; } - if (message.ack_sequences != null && message.hasOwnProperty("ack_sequences")) { - if (!Array.isArray(message.ack_sequences)) - return "ack_sequences: array expected"; - for (var i = 0; i < message.ack_sequences.length; ++i) { - var error = $root.ibc.core.channel.v1.PacketSequence.verify(message.ack_sequences[i]); - if (error) - return "ack_sequences." + error; - } + if (message.client_id != null && message.hasOwnProperty("client_id")) + if (!$util.isString(message.client_id)) + return "client_id: string expected"; + if (message.proof != null && message.hasOwnProperty("proof")) + if (!(message.proof && typeof message.proof.length === "number" || $util.isString(message.proof))) + return "proof: buffer expected"; + if (message.proof_height != null && message.hasOwnProperty("proof_height")) { + var error = $root.ibc.core.client.v1.Height.verify(message.proof_height); + if (error) + return "proof_height." + error; } - if (message.next_channel_sequence != null && message.hasOwnProperty("next_channel_sequence")) - if (!$util.isInteger(message.next_channel_sequence) && !(message.next_channel_sequence && $util.isInteger(message.next_channel_sequence.low) && $util.isInteger(message.next_channel_sequence.high))) - return "next_channel_sequence: integer|Long expected"; return null; }; /** - * Creates a GenesisState message from a plain object. Also converts values to their respective internal types. + * Creates a QueryChannelConsensusStateResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.channel.v1.GenesisState + * @memberof ibc.core.channel.v1.QueryChannelConsensusStateResponse * @static * @param {Object.} object Plain object - * @returns {ibc.core.channel.v1.GenesisState} GenesisState + * @returns {ibc.core.channel.v1.QueryChannelConsensusStateResponse} QueryChannelConsensusStateResponse */ - GenesisState.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.channel.v1.GenesisState) + QueryChannelConsensusStateResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.channel.v1.QueryChannelConsensusStateResponse) return object; - var message = new $root.ibc.core.channel.v1.GenesisState(); - if (object.channels) { - if (!Array.isArray(object.channels)) - throw TypeError(".ibc.core.channel.v1.GenesisState.channels: array expected"); - message.channels = []; - for (var i = 0; i < object.channels.length; ++i) { - if (typeof object.channels[i] !== "object") - throw TypeError(".ibc.core.channel.v1.GenesisState.channels: object expected"); - message.channels[i] = $root.ibc.core.channel.v1.IdentifiedChannel.fromObject(object.channels[i]); - } - } - if (object.acknowledgements) { - if (!Array.isArray(object.acknowledgements)) - throw TypeError(".ibc.core.channel.v1.GenesisState.acknowledgements: array expected"); - message.acknowledgements = []; - for (var i = 0; i < object.acknowledgements.length; ++i) { - if (typeof object.acknowledgements[i] !== "object") - throw TypeError(".ibc.core.channel.v1.GenesisState.acknowledgements: object expected"); - message.acknowledgements[i] = $root.ibc.core.channel.v1.PacketState.fromObject(object.acknowledgements[i]); - } - } - if (object.commitments) { - if (!Array.isArray(object.commitments)) - throw TypeError(".ibc.core.channel.v1.GenesisState.commitments: array expected"); - message.commitments = []; - for (var i = 0; i < object.commitments.length; ++i) { - if (typeof object.commitments[i] !== "object") - throw TypeError(".ibc.core.channel.v1.GenesisState.commitments: object expected"); - message.commitments[i] = $root.ibc.core.channel.v1.PacketState.fromObject(object.commitments[i]); - } - } - if (object.receipts) { - if (!Array.isArray(object.receipts)) - throw TypeError(".ibc.core.channel.v1.GenesisState.receipts: array expected"); - message.receipts = []; - for (var i = 0; i < object.receipts.length; ++i) { - if (typeof object.receipts[i] !== "object") - throw TypeError(".ibc.core.channel.v1.GenesisState.receipts: object expected"); - message.receipts[i] = $root.ibc.core.channel.v1.PacketState.fromObject(object.receipts[i]); - } - } - if (object.send_sequences) { - if (!Array.isArray(object.send_sequences)) - throw TypeError(".ibc.core.channel.v1.GenesisState.send_sequences: array expected"); - message.send_sequences = []; - for (var i = 0; i < object.send_sequences.length; ++i) { - if (typeof object.send_sequences[i] !== "object") - throw TypeError(".ibc.core.channel.v1.GenesisState.send_sequences: object expected"); - message.send_sequences[i] = $root.ibc.core.channel.v1.PacketSequence.fromObject(object.send_sequences[i]); - } - } - if (object.recv_sequences) { - if (!Array.isArray(object.recv_sequences)) - throw TypeError(".ibc.core.channel.v1.GenesisState.recv_sequences: array expected"); - message.recv_sequences = []; - for (var i = 0; i < object.recv_sequences.length; ++i) { - if (typeof object.recv_sequences[i] !== "object") - throw TypeError(".ibc.core.channel.v1.GenesisState.recv_sequences: object expected"); - message.recv_sequences[i] = $root.ibc.core.channel.v1.PacketSequence.fromObject(object.recv_sequences[i]); - } + var message = new $root.ibc.core.channel.v1.QueryChannelConsensusStateResponse(); + if (object.consensus_state != null) { + if (typeof object.consensus_state !== "object") + throw TypeError(".ibc.core.channel.v1.QueryChannelConsensusStateResponse.consensus_state: object expected"); + message.consensus_state = $root.google.protobuf.Any.fromObject(object.consensus_state); } - if (object.ack_sequences) { - if (!Array.isArray(object.ack_sequences)) - throw TypeError(".ibc.core.channel.v1.GenesisState.ack_sequences: array expected"); - message.ack_sequences = []; - for (var i = 0; i < object.ack_sequences.length; ++i) { - if (typeof object.ack_sequences[i] !== "object") - throw TypeError(".ibc.core.channel.v1.GenesisState.ack_sequences: object expected"); - message.ack_sequences[i] = $root.ibc.core.channel.v1.PacketSequence.fromObject(object.ack_sequences[i]); - } + if (object.client_id != null) + message.client_id = String(object.client_id); + if (object.proof != null) + if (typeof object.proof === "string") + $util.base64.decode(object.proof, message.proof = $util.newBuffer($util.base64.length(object.proof)), 0); + else if (object.proof.length) + message.proof = object.proof; + if (object.proof_height != null) { + if (typeof object.proof_height !== "object") + throw TypeError(".ibc.core.channel.v1.QueryChannelConsensusStateResponse.proof_height: object expected"); + message.proof_height = $root.ibc.core.client.v1.Height.fromObject(object.proof_height); } - if (object.next_channel_sequence != null) - if ($util.Long) - (message.next_channel_sequence = $util.Long.fromValue(object.next_channel_sequence)).unsigned = true; - else if (typeof object.next_channel_sequence === "string") - message.next_channel_sequence = parseInt(object.next_channel_sequence, 10); - else if (typeof object.next_channel_sequence === "number") - message.next_channel_sequence = object.next_channel_sequence; - else if (typeof object.next_channel_sequence === "object") - message.next_channel_sequence = new $util.LongBits(object.next_channel_sequence.low >>> 0, object.next_channel_sequence.high >>> 0).toNumber(true); return message; }; /** - * Creates a plain object from a GenesisState message. Also converts values to other types if specified. + * Creates a plain object from a QueryChannelConsensusStateResponse message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.channel.v1.GenesisState + * @memberof ibc.core.channel.v1.QueryChannelConsensusStateResponse * @static - * @param {ibc.core.channel.v1.GenesisState} message GenesisState + * @param {ibc.core.channel.v1.QueryChannelConsensusStateResponse} message QueryChannelConsensusStateResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GenesisState.toObject = function toObject(message, options) { + QueryChannelConsensusStateResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.channels = []; - object.acknowledgements = []; - object.commitments = []; - object.receipts = []; - object.send_sequences = []; - object.recv_sequences = []; - object.ack_sequences = []; - } - if (options.defaults) - if ($util.Long) { - var long = new $util.Long(0, 0, true); - object.next_channel_sequence = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.next_channel_sequence = options.longs === String ? "0" : 0; - if (message.channels && message.channels.length) { - object.channels = []; - for (var j = 0; j < message.channels.length; ++j) - object.channels[j] = $root.ibc.core.channel.v1.IdentifiedChannel.toObject(message.channels[j], options); - } - if (message.acknowledgements && message.acknowledgements.length) { - object.acknowledgements = []; - for (var j = 0; j < message.acknowledgements.length; ++j) - object.acknowledgements[j] = $root.ibc.core.channel.v1.PacketState.toObject(message.acknowledgements[j], options); - } - if (message.commitments && message.commitments.length) { - object.commitments = []; - for (var j = 0; j < message.commitments.length; ++j) - object.commitments[j] = $root.ibc.core.channel.v1.PacketState.toObject(message.commitments[j], options); - } - if (message.receipts && message.receipts.length) { - object.receipts = []; - for (var j = 0; j < message.receipts.length; ++j) - object.receipts[j] = $root.ibc.core.channel.v1.PacketState.toObject(message.receipts[j], options); - } - if (message.send_sequences && message.send_sequences.length) { - object.send_sequences = []; - for (var j = 0; j < message.send_sequences.length; ++j) - object.send_sequences[j] = $root.ibc.core.channel.v1.PacketSequence.toObject(message.send_sequences[j], options); - } - if (message.recv_sequences && message.recv_sequences.length) { - object.recv_sequences = []; - for (var j = 0; j < message.recv_sequences.length; ++j) - object.recv_sequences[j] = $root.ibc.core.channel.v1.PacketSequence.toObject(message.recv_sequences[j], options); - } - if (message.ack_sequences && message.ack_sequences.length) { - object.ack_sequences = []; - for (var j = 0; j < message.ack_sequences.length; ++j) - object.ack_sequences[j] = $root.ibc.core.channel.v1.PacketSequence.toObject(message.ack_sequences[j], options); + if (options.defaults) { + object.consensus_state = null; + object.client_id = ""; + if (options.bytes === String) + object.proof = ""; + else { + object.proof = []; + if (options.bytes !== Array) + object.proof = $util.newBuffer(object.proof); + } + object.proof_height = null; } - if (message.next_channel_sequence != null && message.hasOwnProperty("next_channel_sequence")) - if (typeof message.next_channel_sequence === "number") - object.next_channel_sequence = options.longs === String ? String(message.next_channel_sequence) : message.next_channel_sequence; - else - object.next_channel_sequence = options.longs === String ? $util.Long.prototype.toString.call(message.next_channel_sequence) : options.longs === Number ? new $util.LongBits(message.next_channel_sequence.low >>> 0, message.next_channel_sequence.high >>> 0).toNumber(true) : message.next_channel_sequence; + if (message.consensus_state != null && message.hasOwnProperty("consensus_state")) + object.consensus_state = $root.google.protobuf.Any.toObject(message.consensus_state, options); + if (message.client_id != null && message.hasOwnProperty("client_id")) + object.client_id = message.client_id; + if (message.proof != null && message.hasOwnProperty("proof")) + object.proof = options.bytes === String ? $util.base64.encode(message.proof, 0, message.proof.length) : options.bytes === Array ? Array.prototype.slice.call(message.proof) : message.proof; + if (message.proof_height != null && message.hasOwnProperty("proof_height")) + object.proof_height = $root.ibc.core.client.v1.Height.toObject(message.proof_height, options); return object; }; /** - * Converts this GenesisState to JSON. + * Converts this QueryChannelConsensusStateResponse to JSON. * @function toJSON - * @memberof ibc.core.channel.v1.GenesisState + * @memberof ibc.core.channel.v1.QueryChannelConsensusStateResponse * @instance * @returns {Object.} JSON object */ - GenesisState.prototype.toJSON = function toJSON() { + QueryChannelConsensusStateResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GenesisState; + return QueryChannelConsensusStateResponse; })(); - v1.PacketSequence = (function() { + v1.QueryPacketCommitmentRequest = (function() { /** - * Properties of a PacketSequence. + * Properties of a QueryPacketCommitmentRequest. * @memberof ibc.core.channel.v1 - * @interface IPacketSequence - * @property {string|null} [port_id] PacketSequence port_id - * @property {string|null} [channel_id] PacketSequence channel_id - * @property {Long|null} [sequence] PacketSequence sequence + * @interface IQueryPacketCommitmentRequest + * @property {string|null} [port_id] QueryPacketCommitmentRequest port_id + * @property {string|null} [channel_id] QueryPacketCommitmentRequest channel_id + * @property {Long|null} [sequence] QueryPacketCommitmentRequest sequence */ /** - * Constructs a new PacketSequence. + * Constructs a new QueryPacketCommitmentRequest. * @memberof ibc.core.channel.v1 - * @classdesc Represents a PacketSequence. - * @implements IPacketSequence + * @classdesc Represents a QueryPacketCommitmentRequest. + * @implements IQueryPacketCommitmentRequest * @constructor - * @param {ibc.core.channel.v1.IPacketSequence=} [properties] Properties to set + * @param {ibc.core.channel.v1.IQueryPacketCommitmentRequest=} [properties] Properties to set */ - function PacketSequence(properties) { + function QueryPacketCommitmentRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -48285,39 +54414,39 @@ } /** - * PacketSequence port_id. + * QueryPacketCommitmentRequest port_id. * @member {string} port_id - * @memberof ibc.core.channel.v1.PacketSequence + * @memberof ibc.core.channel.v1.QueryPacketCommitmentRequest * @instance */ - PacketSequence.prototype.port_id = ""; + QueryPacketCommitmentRequest.prototype.port_id = ""; /** - * PacketSequence channel_id. + * QueryPacketCommitmentRequest channel_id. * @member {string} channel_id - * @memberof ibc.core.channel.v1.PacketSequence + * @memberof ibc.core.channel.v1.QueryPacketCommitmentRequest * @instance */ - PacketSequence.prototype.channel_id = ""; + QueryPacketCommitmentRequest.prototype.channel_id = ""; /** - * PacketSequence sequence. + * QueryPacketCommitmentRequest sequence. * @member {Long} sequence - * @memberof ibc.core.channel.v1.PacketSequence + * @memberof ibc.core.channel.v1.QueryPacketCommitmentRequest * @instance */ - PacketSequence.prototype.sequence = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + QueryPacketCommitmentRequest.prototype.sequence = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** - * Encodes the specified PacketSequence message. Does not implicitly {@link ibc.core.channel.v1.PacketSequence.verify|verify} messages. + * Encodes the specified QueryPacketCommitmentRequest message. Does not implicitly {@link ibc.core.channel.v1.QueryPacketCommitmentRequest.verify|verify} messages. * @function encode - * @memberof ibc.core.channel.v1.PacketSequence + * @memberof ibc.core.channel.v1.QueryPacketCommitmentRequest * @static - * @param {ibc.core.channel.v1.IPacketSequence} message PacketSequence message or plain object to encode + * @param {ibc.core.channel.v1.IQueryPacketCommitmentRequest} message QueryPacketCommitmentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PacketSequence.encode = function encode(message, writer) { + QueryPacketCommitmentRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.port_id != null && Object.hasOwnProperty.call(message, "port_id")) @@ -48330,33 +54459,33 @@ }; /** - * Encodes the specified PacketSequence message, length delimited. Does not implicitly {@link ibc.core.channel.v1.PacketSequence.verify|verify} messages. + * Encodes the specified QueryPacketCommitmentRequest message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryPacketCommitmentRequest.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.channel.v1.PacketSequence + * @memberof ibc.core.channel.v1.QueryPacketCommitmentRequest * @static - * @param {ibc.core.channel.v1.IPacketSequence} message PacketSequence message or plain object to encode + * @param {ibc.core.channel.v1.IQueryPacketCommitmentRequest} message QueryPacketCommitmentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PacketSequence.encodeDelimited = function encodeDelimited(message, writer) { + QueryPacketCommitmentRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PacketSequence message from the specified reader or buffer. + * Decodes a QueryPacketCommitmentRequest message from the specified reader or buffer. * @function decode - * @memberof ibc.core.channel.v1.PacketSequence + * @memberof ibc.core.channel.v1.QueryPacketCommitmentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.channel.v1.PacketSequence} PacketSequence + * @returns {ibc.core.channel.v1.QueryPacketCommitmentRequest} QueryPacketCommitmentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PacketSequence.decode = function decode(reader, length) { + QueryPacketCommitmentRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.PacketSequence(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.QueryPacketCommitmentRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -48378,30 +54507,30 @@ }; /** - * Decodes a PacketSequence message from the specified reader or buffer, length delimited. + * Decodes a QueryPacketCommitmentRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.channel.v1.PacketSequence + * @memberof ibc.core.channel.v1.QueryPacketCommitmentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.channel.v1.PacketSequence} PacketSequence + * @returns {ibc.core.channel.v1.QueryPacketCommitmentRequest} QueryPacketCommitmentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PacketSequence.decodeDelimited = function decodeDelimited(reader) { + QueryPacketCommitmentRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PacketSequence message. + * Verifies a QueryPacketCommitmentRequest message. * @function verify - * @memberof ibc.core.channel.v1.PacketSequence + * @memberof ibc.core.channel.v1.QueryPacketCommitmentRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PacketSequence.verify = function verify(message) { + QueryPacketCommitmentRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.port_id != null && message.hasOwnProperty("port_id")) @@ -48417,17 +54546,17 @@ }; /** - * Creates a PacketSequence message from a plain object. Also converts values to their respective internal types. + * Creates a QueryPacketCommitmentRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.channel.v1.PacketSequence + * @memberof ibc.core.channel.v1.QueryPacketCommitmentRequest * @static * @param {Object.} object Plain object - * @returns {ibc.core.channel.v1.PacketSequence} PacketSequence + * @returns {ibc.core.channel.v1.QueryPacketCommitmentRequest} QueryPacketCommitmentRequest */ - PacketSequence.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.channel.v1.PacketSequence) + QueryPacketCommitmentRequest.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.channel.v1.QueryPacketCommitmentRequest) return object; - var message = new $root.ibc.core.channel.v1.PacketSequence(); + var message = new $root.ibc.core.channel.v1.QueryPacketCommitmentRequest(); if (object.port_id != null) message.port_id = String(object.port_id); if (object.channel_id != null) @@ -48445,15 +54574,15 @@ }; /** - * Creates a plain object from a PacketSequence message. Also converts values to other types if specified. + * Creates a plain object from a QueryPacketCommitmentRequest message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.channel.v1.PacketSequence + * @memberof ibc.core.channel.v1.QueryPacketCommitmentRequest * @static - * @param {ibc.core.channel.v1.PacketSequence} message PacketSequence + * @param {ibc.core.channel.v1.QueryPacketCommitmentRequest} message QueryPacketCommitmentRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PacketSequence.toObject = function toObject(message, options) { + QueryPacketCommitmentRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -48479,62 +54608,39 @@ }; /** - * Converts this PacketSequence to JSON. + * Converts this QueryPacketCommitmentRequest to JSON. * @function toJSON - * @memberof ibc.core.channel.v1.PacketSequence + * @memberof ibc.core.channel.v1.QueryPacketCommitmentRequest * @instance * @returns {Object.} JSON object */ - PacketSequence.prototype.toJSON = function toJSON() { + QueryPacketCommitmentRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return PacketSequence; + return QueryPacketCommitmentRequest; })(); - return v1; - })(); - - return channel; - })(); - - core.client = (function() { - - /** - * Namespace client. - * @memberof ibc.core - * @namespace - */ - var client = {}; - - client.v1 = (function() { - - /** - * Namespace v1. - * @memberof ibc.core.client - * @namespace - */ - var v1 = {}; - - v1.IdentifiedClientState = (function() { + v1.QueryPacketCommitmentResponse = (function() { /** - * Properties of an IdentifiedClientState. - * @memberof ibc.core.client.v1 - * @interface IIdentifiedClientState - * @property {string|null} [client_id] IdentifiedClientState client_id - * @property {google.protobuf.IAny|null} [client_state] IdentifiedClientState client_state + * Properties of a QueryPacketCommitmentResponse. + * @memberof ibc.core.channel.v1 + * @interface IQueryPacketCommitmentResponse + * @property {Uint8Array|null} [commitment] QueryPacketCommitmentResponse commitment + * @property {Uint8Array|null} [proof] QueryPacketCommitmentResponse proof + * @property {ibc.core.client.v1.IHeight|null} [proof_height] QueryPacketCommitmentResponse proof_height */ /** - * Constructs a new IdentifiedClientState. - * @memberof ibc.core.client.v1 - * @classdesc Represents an IdentifiedClientState. - * @implements IIdentifiedClientState + * Constructs a new QueryPacketCommitmentResponse. + * @memberof ibc.core.channel.v1 + * @classdesc Represents a QueryPacketCommitmentResponse. + * @implements IQueryPacketCommitmentResponse * @constructor - * @param {ibc.core.client.v1.IIdentifiedClientState=} [properties] Properties to set + * @param {ibc.core.channel.v1.IQueryPacketCommitmentResponse=} [properties] Properties to set */ - function IdentifiedClientState(properties) { + function QueryPacketCommitmentResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -48542,76 +54648,89 @@ } /** - * IdentifiedClientState client_id. - * @member {string} client_id - * @memberof ibc.core.client.v1.IdentifiedClientState + * QueryPacketCommitmentResponse commitment. + * @member {Uint8Array} commitment + * @memberof ibc.core.channel.v1.QueryPacketCommitmentResponse * @instance */ - IdentifiedClientState.prototype.client_id = ""; + QueryPacketCommitmentResponse.prototype.commitment = $util.newBuffer([]); /** - * IdentifiedClientState client_state. - * @member {google.protobuf.IAny|null|undefined} client_state - * @memberof ibc.core.client.v1.IdentifiedClientState + * QueryPacketCommitmentResponse proof. + * @member {Uint8Array} proof + * @memberof ibc.core.channel.v1.QueryPacketCommitmentResponse * @instance */ - IdentifiedClientState.prototype.client_state = null; + QueryPacketCommitmentResponse.prototype.proof = $util.newBuffer([]); /** - * Encodes the specified IdentifiedClientState message. Does not implicitly {@link ibc.core.client.v1.IdentifiedClientState.verify|verify} messages. + * QueryPacketCommitmentResponse proof_height. + * @member {ibc.core.client.v1.IHeight|null|undefined} proof_height + * @memberof ibc.core.channel.v1.QueryPacketCommitmentResponse + * @instance + */ + QueryPacketCommitmentResponse.prototype.proof_height = null; + + /** + * Encodes the specified QueryPacketCommitmentResponse message. Does not implicitly {@link ibc.core.channel.v1.QueryPacketCommitmentResponse.verify|verify} messages. * @function encode - * @memberof ibc.core.client.v1.IdentifiedClientState + * @memberof ibc.core.channel.v1.QueryPacketCommitmentResponse * @static - * @param {ibc.core.client.v1.IIdentifiedClientState} message IdentifiedClientState message or plain object to encode + * @param {ibc.core.channel.v1.IQueryPacketCommitmentResponse} message QueryPacketCommitmentResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - IdentifiedClientState.encode = function encode(message, writer) { + QueryPacketCommitmentResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.client_id != null && Object.hasOwnProperty.call(message, "client_id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.client_id); - if (message.client_state != null && Object.hasOwnProperty.call(message, "client_state")) - $root.google.protobuf.Any.encode(message.client_state, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.commitment != null && Object.hasOwnProperty.call(message, "commitment")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.commitment); + if (message.proof != null && Object.hasOwnProperty.call(message, "proof")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.proof); + if (message.proof_height != null && Object.hasOwnProperty.call(message, "proof_height")) + $root.ibc.core.client.v1.Height.encode(message.proof_height, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified IdentifiedClientState message, length delimited. Does not implicitly {@link ibc.core.client.v1.IdentifiedClientState.verify|verify} messages. + * Encodes the specified QueryPacketCommitmentResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryPacketCommitmentResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.client.v1.IdentifiedClientState + * @memberof ibc.core.channel.v1.QueryPacketCommitmentResponse * @static - * @param {ibc.core.client.v1.IIdentifiedClientState} message IdentifiedClientState message or plain object to encode + * @param {ibc.core.channel.v1.IQueryPacketCommitmentResponse} message QueryPacketCommitmentResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - IdentifiedClientState.encodeDelimited = function encodeDelimited(message, writer) { + QueryPacketCommitmentResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an IdentifiedClientState message from the specified reader or buffer. + * Decodes a QueryPacketCommitmentResponse message from the specified reader or buffer. * @function decode - * @memberof ibc.core.client.v1.IdentifiedClientState + * @memberof ibc.core.channel.v1.QueryPacketCommitmentResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.client.v1.IdentifiedClientState} IdentifiedClientState + * @returns {ibc.core.channel.v1.QueryPacketCommitmentResponse} QueryPacketCommitmentResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - IdentifiedClientState.decode = function decode(reader, length) { + QueryPacketCommitmentResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.IdentifiedClientState(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.QueryPacketCommitmentResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.client_id = reader.string(); + message.commitment = reader.bytes(); break; case 2: - message.client_state = $root.google.protobuf.Any.decode(reader, reader.uint32()); + message.proof = reader.bytes(); + break; + case 3: + message.proof_height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -48622,122 +54741,149 @@ }; /** - * Decodes an IdentifiedClientState message from the specified reader or buffer, length delimited. + * Decodes a QueryPacketCommitmentResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.client.v1.IdentifiedClientState + * @memberof ibc.core.channel.v1.QueryPacketCommitmentResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.client.v1.IdentifiedClientState} IdentifiedClientState + * @returns {ibc.core.channel.v1.QueryPacketCommitmentResponse} QueryPacketCommitmentResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - IdentifiedClientState.decodeDelimited = function decodeDelimited(reader) { + QueryPacketCommitmentResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an IdentifiedClientState message. + * Verifies a QueryPacketCommitmentResponse message. * @function verify - * @memberof ibc.core.client.v1.IdentifiedClientState + * @memberof ibc.core.channel.v1.QueryPacketCommitmentResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - IdentifiedClientState.verify = function verify(message) { + QueryPacketCommitmentResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.client_id != null && message.hasOwnProperty("client_id")) - if (!$util.isString(message.client_id)) - return "client_id: string expected"; - if (message.client_state != null && message.hasOwnProperty("client_state")) { - var error = $root.google.protobuf.Any.verify(message.client_state); + if (message.commitment != null && message.hasOwnProperty("commitment")) + if (!(message.commitment && typeof message.commitment.length === "number" || $util.isString(message.commitment))) + return "commitment: buffer expected"; + if (message.proof != null && message.hasOwnProperty("proof")) + if (!(message.proof && typeof message.proof.length === "number" || $util.isString(message.proof))) + return "proof: buffer expected"; + if (message.proof_height != null && message.hasOwnProperty("proof_height")) { + var error = $root.ibc.core.client.v1.Height.verify(message.proof_height); if (error) - return "client_state." + error; + return "proof_height." + error; } return null; }; /** - * Creates an IdentifiedClientState message from a plain object. Also converts values to their respective internal types. + * Creates a QueryPacketCommitmentResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.client.v1.IdentifiedClientState + * @memberof ibc.core.channel.v1.QueryPacketCommitmentResponse * @static * @param {Object.} object Plain object - * @returns {ibc.core.client.v1.IdentifiedClientState} IdentifiedClientState + * @returns {ibc.core.channel.v1.QueryPacketCommitmentResponse} QueryPacketCommitmentResponse */ - IdentifiedClientState.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.client.v1.IdentifiedClientState) + QueryPacketCommitmentResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.channel.v1.QueryPacketCommitmentResponse) return object; - var message = new $root.ibc.core.client.v1.IdentifiedClientState(); - if (object.client_id != null) - message.client_id = String(object.client_id); - if (object.client_state != null) { - if (typeof object.client_state !== "object") - throw TypeError(".ibc.core.client.v1.IdentifiedClientState.client_state: object expected"); - message.client_state = $root.google.protobuf.Any.fromObject(object.client_state); + var message = new $root.ibc.core.channel.v1.QueryPacketCommitmentResponse(); + if (object.commitment != null) + if (typeof object.commitment === "string") + $util.base64.decode(object.commitment, message.commitment = $util.newBuffer($util.base64.length(object.commitment)), 0); + else if (object.commitment.length) + message.commitment = object.commitment; + if (object.proof != null) + if (typeof object.proof === "string") + $util.base64.decode(object.proof, message.proof = $util.newBuffer($util.base64.length(object.proof)), 0); + else if (object.proof.length) + message.proof = object.proof; + if (object.proof_height != null) { + if (typeof object.proof_height !== "object") + throw TypeError(".ibc.core.channel.v1.QueryPacketCommitmentResponse.proof_height: object expected"); + message.proof_height = $root.ibc.core.client.v1.Height.fromObject(object.proof_height); } return message; }; /** - * Creates a plain object from an IdentifiedClientState message. Also converts values to other types if specified. + * Creates a plain object from a QueryPacketCommitmentResponse message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.client.v1.IdentifiedClientState + * @memberof ibc.core.channel.v1.QueryPacketCommitmentResponse * @static - * @param {ibc.core.client.v1.IdentifiedClientState} message IdentifiedClientState + * @param {ibc.core.channel.v1.QueryPacketCommitmentResponse} message QueryPacketCommitmentResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - IdentifiedClientState.toObject = function toObject(message, options) { + QueryPacketCommitmentResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.client_id = ""; - object.client_state = null; + if (options.bytes === String) + object.commitment = ""; + else { + object.commitment = []; + if (options.bytes !== Array) + object.commitment = $util.newBuffer(object.commitment); + } + if (options.bytes === String) + object.proof = ""; + else { + object.proof = []; + if (options.bytes !== Array) + object.proof = $util.newBuffer(object.proof); + } + object.proof_height = null; } - if (message.client_id != null && message.hasOwnProperty("client_id")) - object.client_id = message.client_id; - if (message.client_state != null && message.hasOwnProperty("client_state")) - object.client_state = $root.google.protobuf.Any.toObject(message.client_state, options); + if (message.commitment != null && message.hasOwnProperty("commitment")) + object.commitment = options.bytes === String ? $util.base64.encode(message.commitment, 0, message.commitment.length) : options.bytes === Array ? Array.prototype.slice.call(message.commitment) : message.commitment; + if (message.proof != null && message.hasOwnProperty("proof")) + object.proof = options.bytes === String ? $util.base64.encode(message.proof, 0, message.proof.length) : options.bytes === Array ? Array.prototype.slice.call(message.proof) : message.proof; + if (message.proof_height != null && message.hasOwnProperty("proof_height")) + object.proof_height = $root.ibc.core.client.v1.Height.toObject(message.proof_height, options); return object; }; /** - * Converts this IdentifiedClientState to JSON. + * Converts this QueryPacketCommitmentResponse to JSON. * @function toJSON - * @memberof ibc.core.client.v1.IdentifiedClientState + * @memberof ibc.core.channel.v1.QueryPacketCommitmentResponse * @instance * @returns {Object.} JSON object */ - IdentifiedClientState.prototype.toJSON = function toJSON() { + QueryPacketCommitmentResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return IdentifiedClientState; + return QueryPacketCommitmentResponse; })(); - v1.ConsensusStateWithHeight = (function() { + v1.QueryPacketCommitmentsRequest = (function() { /** - * Properties of a ConsensusStateWithHeight. - * @memberof ibc.core.client.v1 - * @interface IConsensusStateWithHeight - * @property {ibc.core.client.v1.IHeight|null} [height] ConsensusStateWithHeight height - * @property {google.protobuf.IAny|null} [consensus_state] ConsensusStateWithHeight consensus_state + * Properties of a QueryPacketCommitmentsRequest. + * @memberof ibc.core.channel.v1 + * @interface IQueryPacketCommitmentsRequest + * @property {string|null} [port_id] QueryPacketCommitmentsRequest port_id + * @property {string|null} [channel_id] QueryPacketCommitmentsRequest channel_id + * @property {cosmos.base.query.v1beta1.IPageRequest|null} [pagination] QueryPacketCommitmentsRequest pagination */ /** - * Constructs a new ConsensusStateWithHeight. - * @memberof ibc.core.client.v1 - * @classdesc Represents a ConsensusStateWithHeight. - * @implements IConsensusStateWithHeight + * Constructs a new QueryPacketCommitmentsRequest. + * @memberof ibc.core.channel.v1 + * @classdesc Represents a QueryPacketCommitmentsRequest. + * @implements IQueryPacketCommitmentsRequest * @constructor - * @param {ibc.core.client.v1.IConsensusStateWithHeight=} [properties] Properties to set + * @param {ibc.core.channel.v1.IQueryPacketCommitmentsRequest=} [properties] Properties to set */ - function ConsensusStateWithHeight(properties) { + function QueryPacketCommitmentsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -48745,76 +54891,89 @@ } /** - * ConsensusStateWithHeight height. - * @member {ibc.core.client.v1.IHeight|null|undefined} height - * @memberof ibc.core.client.v1.ConsensusStateWithHeight + * QueryPacketCommitmentsRequest port_id. + * @member {string} port_id + * @memberof ibc.core.channel.v1.QueryPacketCommitmentsRequest * @instance */ - ConsensusStateWithHeight.prototype.height = null; + QueryPacketCommitmentsRequest.prototype.port_id = ""; /** - * ConsensusStateWithHeight consensus_state. - * @member {google.protobuf.IAny|null|undefined} consensus_state - * @memberof ibc.core.client.v1.ConsensusStateWithHeight + * QueryPacketCommitmentsRequest channel_id. + * @member {string} channel_id + * @memberof ibc.core.channel.v1.QueryPacketCommitmentsRequest * @instance */ - ConsensusStateWithHeight.prototype.consensus_state = null; + QueryPacketCommitmentsRequest.prototype.channel_id = ""; /** - * Encodes the specified ConsensusStateWithHeight message. Does not implicitly {@link ibc.core.client.v1.ConsensusStateWithHeight.verify|verify} messages. + * QueryPacketCommitmentsRequest pagination. + * @member {cosmos.base.query.v1beta1.IPageRequest|null|undefined} pagination + * @memberof ibc.core.channel.v1.QueryPacketCommitmentsRequest + * @instance + */ + QueryPacketCommitmentsRequest.prototype.pagination = null; + + /** + * Encodes the specified QueryPacketCommitmentsRequest message. Does not implicitly {@link ibc.core.channel.v1.QueryPacketCommitmentsRequest.verify|verify} messages. * @function encode - * @memberof ibc.core.client.v1.ConsensusStateWithHeight + * @memberof ibc.core.channel.v1.QueryPacketCommitmentsRequest * @static - * @param {ibc.core.client.v1.IConsensusStateWithHeight} message ConsensusStateWithHeight message or plain object to encode + * @param {ibc.core.channel.v1.IQueryPacketCommitmentsRequest} message QueryPacketCommitmentsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ConsensusStateWithHeight.encode = function encode(message, writer) { + QueryPacketCommitmentsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.height != null && Object.hasOwnProperty.call(message, "height")) - $root.ibc.core.client.v1.Height.encode(message.height, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.consensus_state != null && Object.hasOwnProperty.call(message, "consensus_state")) - $root.google.protobuf.Any.encode(message.consensus_state, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.port_id != null && Object.hasOwnProperty.call(message, "port_id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.port_id); + if (message.channel_id != null && Object.hasOwnProperty.call(message, "channel_id")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.channel_id); + if (message.pagination != null && Object.hasOwnProperty.call(message, "pagination")) + $root.cosmos.base.query.v1beta1.PageRequest.encode(message.pagination, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified ConsensusStateWithHeight message, length delimited. Does not implicitly {@link ibc.core.client.v1.ConsensusStateWithHeight.verify|verify} messages. + * Encodes the specified QueryPacketCommitmentsRequest message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryPacketCommitmentsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.client.v1.ConsensusStateWithHeight + * @memberof ibc.core.channel.v1.QueryPacketCommitmentsRequest * @static - * @param {ibc.core.client.v1.IConsensusStateWithHeight} message ConsensusStateWithHeight message or plain object to encode + * @param {ibc.core.channel.v1.IQueryPacketCommitmentsRequest} message QueryPacketCommitmentsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ConsensusStateWithHeight.encodeDelimited = function encodeDelimited(message, writer) { + QueryPacketCommitmentsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ConsensusStateWithHeight message from the specified reader or buffer. + * Decodes a QueryPacketCommitmentsRequest message from the specified reader or buffer. * @function decode - * @memberof ibc.core.client.v1.ConsensusStateWithHeight + * @memberof ibc.core.channel.v1.QueryPacketCommitmentsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.client.v1.ConsensusStateWithHeight} ConsensusStateWithHeight + * @returns {ibc.core.channel.v1.QueryPacketCommitmentsRequest} QueryPacketCommitmentsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ConsensusStateWithHeight.decode = function decode(reader, length) { + QueryPacketCommitmentsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.ConsensusStateWithHeight(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.QueryPacketCommitmentsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); + message.port_id = reader.string(); break; case 2: - message.consensus_state = $root.google.protobuf.Any.decode(reader, reader.uint32()); + message.channel_id = reader.string(); + break; + case 3: + message.pagination = $root.cosmos.base.query.v1beta1.PageRequest.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -48825,128 +54984,132 @@ }; /** - * Decodes a ConsensusStateWithHeight message from the specified reader or buffer, length delimited. + * Decodes a QueryPacketCommitmentsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.client.v1.ConsensusStateWithHeight + * @memberof ibc.core.channel.v1.QueryPacketCommitmentsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.client.v1.ConsensusStateWithHeight} ConsensusStateWithHeight + * @returns {ibc.core.channel.v1.QueryPacketCommitmentsRequest} QueryPacketCommitmentsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ConsensusStateWithHeight.decodeDelimited = function decodeDelimited(reader) { + QueryPacketCommitmentsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ConsensusStateWithHeight message. + * Verifies a QueryPacketCommitmentsRequest message. * @function verify - * @memberof ibc.core.client.v1.ConsensusStateWithHeight + * @memberof ibc.core.channel.v1.QueryPacketCommitmentsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ConsensusStateWithHeight.verify = function verify(message) { + QueryPacketCommitmentsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.height != null && message.hasOwnProperty("height")) { - var error = $root.ibc.core.client.v1.Height.verify(message.height); - if (error) - return "height." + error; - } - if (message.consensus_state != null && message.hasOwnProperty("consensus_state")) { - var error = $root.google.protobuf.Any.verify(message.consensus_state); + if (message.port_id != null && message.hasOwnProperty("port_id")) + if (!$util.isString(message.port_id)) + return "port_id: string expected"; + if (message.channel_id != null && message.hasOwnProperty("channel_id")) + if (!$util.isString(message.channel_id)) + return "channel_id: string expected"; + if (message.pagination != null && message.hasOwnProperty("pagination")) { + var error = $root.cosmos.base.query.v1beta1.PageRequest.verify(message.pagination); if (error) - return "consensus_state." + error; + return "pagination." + error; } return null; }; /** - * Creates a ConsensusStateWithHeight message from a plain object. Also converts values to their respective internal types. + * Creates a QueryPacketCommitmentsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.client.v1.ConsensusStateWithHeight + * @memberof ibc.core.channel.v1.QueryPacketCommitmentsRequest * @static * @param {Object.} object Plain object - * @returns {ibc.core.client.v1.ConsensusStateWithHeight} ConsensusStateWithHeight + * @returns {ibc.core.channel.v1.QueryPacketCommitmentsRequest} QueryPacketCommitmentsRequest */ - ConsensusStateWithHeight.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.client.v1.ConsensusStateWithHeight) + QueryPacketCommitmentsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.channel.v1.QueryPacketCommitmentsRequest) return object; - var message = new $root.ibc.core.client.v1.ConsensusStateWithHeight(); - if (object.height != null) { - if (typeof object.height !== "object") - throw TypeError(".ibc.core.client.v1.ConsensusStateWithHeight.height: object expected"); - message.height = $root.ibc.core.client.v1.Height.fromObject(object.height); - } - if (object.consensus_state != null) { - if (typeof object.consensus_state !== "object") - throw TypeError(".ibc.core.client.v1.ConsensusStateWithHeight.consensus_state: object expected"); - message.consensus_state = $root.google.protobuf.Any.fromObject(object.consensus_state); + var message = new $root.ibc.core.channel.v1.QueryPacketCommitmentsRequest(); + if (object.port_id != null) + message.port_id = String(object.port_id); + if (object.channel_id != null) + message.channel_id = String(object.channel_id); + if (object.pagination != null) { + if (typeof object.pagination !== "object") + throw TypeError(".ibc.core.channel.v1.QueryPacketCommitmentsRequest.pagination: object expected"); + message.pagination = $root.cosmos.base.query.v1beta1.PageRequest.fromObject(object.pagination); } return message; }; /** - * Creates a plain object from a ConsensusStateWithHeight message. Also converts values to other types if specified. + * Creates a plain object from a QueryPacketCommitmentsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.client.v1.ConsensusStateWithHeight + * @memberof ibc.core.channel.v1.QueryPacketCommitmentsRequest * @static - * @param {ibc.core.client.v1.ConsensusStateWithHeight} message ConsensusStateWithHeight + * @param {ibc.core.channel.v1.QueryPacketCommitmentsRequest} message QueryPacketCommitmentsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ConsensusStateWithHeight.toObject = function toObject(message, options) { + QueryPacketCommitmentsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.height = null; - object.consensus_state = null; - } - if (message.height != null && message.hasOwnProperty("height")) - object.height = $root.ibc.core.client.v1.Height.toObject(message.height, options); - if (message.consensus_state != null && message.hasOwnProperty("consensus_state")) - object.consensus_state = $root.google.protobuf.Any.toObject(message.consensus_state, options); + object.port_id = ""; + object.channel_id = ""; + object.pagination = null; + } + if (message.port_id != null && message.hasOwnProperty("port_id")) + object.port_id = message.port_id; + if (message.channel_id != null && message.hasOwnProperty("channel_id")) + object.channel_id = message.channel_id; + if (message.pagination != null && message.hasOwnProperty("pagination")) + object.pagination = $root.cosmos.base.query.v1beta1.PageRequest.toObject(message.pagination, options); return object; }; /** - * Converts this ConsensusStateWithHeight to JSON. + * Converts this QueryPacketCommitmentsRequest to JSON. * @function toJSON - * @memberof ibc.core.client.v1.ConsensusStateWithHeight + * @memberof ibc.core.channel.v1.QueryPacketCommitmentsRequest * @instance * @returns {Object.} JSON object */ - ConsensusStateWithHeight.prototype.toJSON = function toJSON() { + QueryPacketCommitmentsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ConsensusStateWithHeight; + return QueryPacketCommitmentsRequest; })(); - v1.ClientConsensusStates = (function() { + v1.QueryPacketCommitmentsResponse = (function() { /** - * Properties of a ClientConsensusStates. - * @memberof ibc.core.client.v1 - * @interface IClientConsensusStates - * @property {string|null} [client_id] ClientConsensusStates client_id - * @property {Array.|null} [consensus_states] ClientConsensusStates consensus_states + * Properties of a QueryPacketCommitmentsResponse. + * @memberof ibc.core.channel.v1 + * @interface IQueryPacketCommitmentsResponse + * @property {Array.|null} [commitments] QueryPacketCommitmentsResponse commitments + * @property {cosmos.base.query.v1beta1.IPageResponse|null} [pagination] QueryPacketCommitmentsResponse pagination + * @property {ibc.core.client.v1.IHeight|null} [height] QueryPacketCommitmentsResponse height */ /** - * Constructs a new ClientConsensusStates. - * @memberof ibc.core.client.v1 - * @classdesc Represents a ClientConsensusStates. - * @implements IClientConsensusStates + * Constructs a new QueryPacketCommitmentsResponse. + * @memberof ibc.core.channel.v1 + * @classdesc Represents a QueryPacketCommitmentsResponse. + * @implements IQueryPacketCommitmentsResponse * @constructor - * @param {ibc.core.client.v1.IClientConsensusStates=} [properties] Properties to set + * @param {ibc.core.channel.v1.IQueryPacketCommitmentsResponse=} [properties] Properties to set */ - function ClientConsensusStates(properties) { - this.consensus_states = []; + function QueryPacketCommitmentsResponse(properties) { + this.commitments = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -48954,79 +55117,92 @@ } /** - * ClientConsensusStates client_id. - * @member {string} client_id - * @memberof ibc.core.client.v1.ClientConsensusStates + * QueryPacketCommitmentsResponse commitments. + * @member {Array.} commitments + * @memberof ibc.core.channel.v1.QueryPacketCommitmentsResponse * @instance */ - ClientConsensusStates.prototype.client_id = ""; + QueryPacketCommitmentsResponse.prototype.commitments = $util.emptyArray; /** - * ClientConsensusStates consensus_states. - * @member {Array.} consensus_states - * @memberof ibc.core.client.v1.ClientConsensusStates + * QueryPacketCommitmentsResponse pagination. + * @member {cosmos.base.query.v1beta1.IPageResponse|null|undefined} pagination + * @memberof ibc.core.channel.v1.QueryPacketCommitmentsResponse * @instance */ - ClientConsensusStates.prototype.consensus_states = $util.emptyArray; + QueryPacketCommitmentsResponse.prototype.pagination = null; /** - * Encodes the specified ClientConsensusStates message. Does not implicitly {@link ibc.core.client.v1.ClientConsensusStates.verify|verify} messages. + * QueryPacketCommitmentsResponse height. + * @member {ibc.core.client.v1.IHeight|null|undefined} height + * @memberof ibc.core.channel.v1.QueryPacketCommitmentsResponse + * @instance + */ + QueryPacketCommitmentsResponse.prototype.height = null; + + /** + * Encodes the specified QueryPacketCommitmentsResponse message. Does not implicitly {@link ibc.core.channel.v1.QueryPacketCommitmentsResponse.verify|verify} messages. * @function encode - * @memberof ibc.core.client.v1.ClientConsensusStates + * @memberof ibc.core.channel.v1.QueryPacketCommitmentsResponse * @static - * @param {ibc.core.client.v1.IClientConsensusStates} message ClientConsensusStates message or plain object to encode + * @param {ibc.core.channel.v1.IQueryPacketCommitmentsResponse} message QueryPacketCommitmentsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ClientConsensusStates.encode = function encode(message, writer) { + QueryPacketCommitmentsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.client_id != null && Object.hasOwnProperty.call(message, "client_id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.client_id); - if (message.consensus_states != null && message.consensus_states.length) - for (var i = 0; i < message.consensus_states.length; ++i) - $root.ibc.core.client.v1.ConsensusStateWithHeight.encode(message.consensus_states[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.commitments != null && message.commitments.length) + for (var i = 0; i < message.commitments.length; ++i) + $root.ibc.core.channel.v1.PacketState.encode(message.commitments[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.pagination != null && Object.hasOwnProperty.call(message, "pagination")) + $root.cosmos.base.query.v1beta1.PageResponse.encode(message.pagination, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.height != null && Object.hasOwnProperty.call(message, "height")) + $root.ibc.core.client.v1.Height.encode(message.height, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified ClientConsensusStates message, length delimited. Does not implicitly {@link ibc.core.client.v1.ClientConsensusStates.verify|verify} messages. + * Encodes the specified QueryPacketCommitmentsResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryPacketCommitmentsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.client.v1.ClientConsensusStates + * @memberof ibc.core.channel.v1.QueryPacketCommitmentsResponse * @static - * @param {ibc.core.client.v1.IClientConsensusStates} message ClientConsensusStates message or plain object to encode + * @param {ibc.core.channel.v1.IQueryPacketCommitmentsResponse} message QueryPacketCommitmentsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ClientConsensusStates.encodeDelimited = function encodeDelimited(message, writer) { + QueryPacketCommitmentsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ClientConsensusStates message from the specified reader or buffer. + * Decodes a QueryPacketCommitmentsResponse message from the specified reader or buffer. * @function decode - * @memberof ibc.core.client.v1.ClientConsensusStates + * @memberof ibc.core.channel.v1.QueryPacketCommitmentsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.client.v1.ClientConsensusStates} ClientConsensusStates + * @returns {ibc.core.channel.v1.QueryPacketCommitmentsResponse} QueryPacketCommitmentsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ClientConsensusStates.decode = function decode(reader, length) { + QueryPacketCommitmentsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.ClientConsensusStates(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.QueryPacketCommitmentsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.client_id = reader.string(); + if (!(message.commitments && message.commitments.length)) + message.commitments = []; + message.commitments.push($root.ibc.core.channel.v1.PacketState.decode(reader, reader.uint32())); break; case 2: - if (!(message.consensus_states && message.consensus_states.length)) - message.consensus_states = []; - message.consensus_states.push($root.ibc.core.client.v1.ConsensusStateWithHeight.decode(reader, reader.uint32())); + message.pagination = $root.cosmos.base.query.v1beta1.PageResponse.decode(reader, reader.uint32()); + break; + case 3: + message.height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -49037,136 +55213,154 @@ }; /** - * Decodes a ClientConsensusStates message from the specified reader or buffer, length delimited. + * Decodes a QueryPacketCommitmentsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.client.v1.ClientConsensusStates + * @memberof ibc.core.channel.v1.QueryPacketCommitmentsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.client.v1.ClientConsensusStates} ClientConsensusStates + * @returns {ibc.core.channel.v1.QueryPacketCommitmentsResponse} QueryPacketCommitmentsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ClientConsensusStates.decodeDelimited = function decodeDelimited(reader) { + QueryPacketCommitmentsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ClientConsensusStates message. + * Verifies a QueryPacketCommitmentsResponse message. * @function verify - * @memberof ibc.core.client.v1.ClientConsensusStates + * @memberof ibc.core.channel.v1.QueryPacketCommitmentsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ClientConsensusStates.verify = function verify(message) { + QueryPacketCommitmentsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.client_id != null && message.hasOwnProperty("client_id")) - if (!$util.isString(message.client_id)) - return "client_id: string expected"; - if (message.consensus_states != null && message.hasOwnProperty("consensus_states")) { - if (!Array.isArray(message.consensus_states)) - return "consensus_states: array expected"; - for (var i = 0; i < message.consensus_states.length; ++i) { - var error = $root.ibc.core.client.v1.ConsensusStateWithHeight.verify(message.consensus_states[i]); + if (message.commitments != null && message.hasOwnProperty("commitments")) { + if (!Array.isArray(message.commitments)) + return "commitments: array expected"; + for (var i = 0; i < message.commitments.length; ++i) { + var error = $root.ibc.core.channel.v1.PacketState.verify(message.commitments[i]); if (error) - return "consensus_states." + error; + return "commitments." + error; } } + if (message.pagination != null && message.hasOwnProperty("pagination")) { + var error = $root.cosmos.base.query.v1beta1.PageResponse.verify(message.pagination); + if (error) + return "pagination." + error; + } + if (message.height != null && message.hasOwnProperty("height")) { + var error = $root.ibc.core.client.v1.Height.verify(message.height); + if (error) + return "height." + error; + } return null; }; /** - * Creates a ClientConsensusStates message from a plain object. Also converts values to their respective internal types. + * Creates a QueryPacketCommitmentsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.client.v1.ClientConsensusStates + * @memberof ibc.core.channel.v1.QueryPacketCommitmentsResponse * @static * @param {Object.} object Plain object - * @returns {ibc.core.client.v1.ClientConsensusStates} ClientConsensusStates + * @returns {ibc.core.channel.v1.QueryPacketCommitmentsResponse} QueryPacketCommitmentsResponse */ - ClientConsensusStates.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.client.v1.ClientConsensusStates) + QueryPacketCommitmentsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.channel.v1.QueryPacketCommitmentsResponse) return object; - var message = new $root.ibc.core.client.v1.ClientConsensusStates(); - if (object.client_id != null) - message.client_id = String(object.client_id); - if (object.consensus_states) { - if (!Array.isArray(object.consensus_states)) - throw TypeError(".ibc.core.client.v1.ClientConsensusStates.consensus_states: array expected"); - message.consensus_states = []; - for (var i = 0; i < object.consensus_states.length; ++i) { - if (typeof object.consensus_states[i] !== "object") - throw TypeError(".ibc.core.client.v1.ClientConsensusStates.consensus_states: object expected"); - message.consensus_states[i] = $root.ibc.core.client.v1.ConsensusStateWithHeight.fromObject(object.consensus_states[i]); + var message = new $root.ibc.core.channel.v1.QueryPacketCommitmentsResponse(); + if (object.commitments) { + if (!Array.isArray(object.commitments)) + throw TypeError(".ibc.core.channel.v1.QueryPacketCommitmentsResponse.commitments: array expected"); + message.commitments = []; + for (var i = 0; i < object.commitments.length; ++i) { + if (typeof object.commitments[i] !== "object") + throw TypeError(".ibc.core.channel.v1.QueryPacketCommitmentsResponse.commitments: object expected"); + message.commitments[i] = $root.ibc.core.channel.v1.PacketState.fromObject(object.commitments[i]); } } + if (object.pagination != null) { + if (typeof object.pagination !== "object") + throw TypeError(".ibc.core.channel.v1.QueryPacketCommitmentsResponse.pagination: object expected"); + message.pagination = $root.cosmos.base.query.v1beta1.PageResponse.fromObject(object.pagination); + } + if (object.height != null) { + if (typeof object.height !== "object") + throw TypeError(".ibc.core.channel.v1.QueryPacketCommitmentsResponse.height: object expected"); + message.height = $root.ibc.core.client.v1.Height.fromObject(object.height); + } return message; }; /** - * Creates a plain object from a ClientConsensusStates message. Also converts values to other types if specified. + * Creates a plain object from a QueryPacketCommitmentsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.client.v1.ClientConsensusStates + * @memberof ibc.core.channel.v1.QueryPacketCommitmentsResponse * @static - * @param {ibc.core.client.v1.ClientConsensusStates} message ClientConsensusStates + * @param {ibc.core.channel.v1.QueryPacketCommitmentsResponse} message QueryPacketCommitmentsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ClientConsensusStates.toObject = function toObject(message, options) { + QueryPacketCommitmentsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.consensus_states = []; - if (options.defaults) - object.client_id = ""; - if (message.client_id != null && message.hasOwnProperty("client_id")) - object.client_id = message.client_id; - if (message.consensus_states && message.consensus_states.length) { - object.consensus_states = []; - for (var j = 0; j < message.consensus_states.length; ++j) - object.consensus_states[j] = $root.ibc.core.client.v1.ConsensusStateWithHeight.toObject(message.consensus_states[j], options); + object.commitments = []; + if (options.defaults) { + object.pagination = null; + object.height = null; } + if (message.commitments && message.commitments.length) { + object.commitments = []; + for (var j = 0; j < message.commitments.length; ++j) + object.commitments[j] = $root.ibc.core.channel.v1.PacketState.toObject(message.commitments[j], options); + } + if (message.pagination != null && message.hasOwnProperty("pagination")) + object.pagination = $root.cosmos.base.query.v1beta1.PageResponse.toObject(message.pagination, options); + if (message.height != null && message.hasOwnProperty("height")) + object.height = $root.ibc.core.client.v1.Height.toObject(message.height, options); return object; }; /** - * Converts this ClientConsensusStates to JSON. + * Converts this QueryPacketCommitmentsResponse to JSON. * @function toJSON - * @memberof ibc.core.client.v1.ClientConsensusStates + * @memberof ibc.core.channel.v1.QueryPacketCommitmentsResponse * @instance * @returns {Object.} JSON object */ - ClientConsensusStates.prototype.toJSON = function toJSON() { + QueryPacketCommitmentsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ClientConsensusStates; + return QueryPacketCommitmentsResponse; })(); - v1.ClientUpdateProposal = (function() { + v1.QueryPacketReceiptRequest = (function() { /** - * Properties of a ClientUpdateProposal. - * @memberof ibc.core.client.v1 - * @interface IClientUpdateProposal - * @property {string|null} [title] ClientUpdateProposal title - * @property {string|null} [description] ClientUpdateProposal description - * @property {string|null} [subject_client_id] ClientUpdateProposal subject_client_id - * @property {string|null} [substitute_client_id] ClientUpdateProposal substitute_client_id + * Properties of a QueryPacketReceiptRequest. + * @memberof ibc.core.channel.v1 + * @interface IQueryPacketReceiptRequest + * @property {string|null} [port_id] QueryPacketReceiptRequest port_id + * @property {string|null} [channel_id] QueryPacketReceiptRequest channel_id + * @property {Long|null} [sequence] QueryPacketReceiptRequest sequence */ /** - * Constructs a new ClientUpdateProposal. - * @memberof ibc.core.client.v1 - * @classdesc Represents a ClientUpdateProposal. - * @implements IClientUpdateProposal + * Constructs a new QueryPacketReceiptRequest. + * @memberof ibc.core.channel.v1 + * @classdesc Represents a QueryPacketReceiptRequest. + * @implements IQueryPacketReceiptRequest * @constructor - * @param {ibc.core.client.v1.IClientUpdateProposal=} [properties] Properties to set + * @param {ibc.core.channel.v1.IQueryPacketReceiptRequest=} [properties] Properties to set */ - function ClientUpdateProposal(properties) { + function QueryPacketReceiptRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -49174,102 +55368,89 @@ } /** - * ClientUpdateProposal title. - * @member {string} title - * @memberof ibc.core.client.v1.ClientUpdateProposal - * @instance - */ - ClientUpdateProposal.prototype.title = ""; - - /** - * ClientUpdateProposal description. - * @member {string} description - * @memberof ibc.core.client.v1.ClientUpdateProposal + * QueryPacketReceiptRequest port_id. + * @member {string} port_id + * @memberof ibc.core.channel.v1.QueryPacketReceiptRequest * @instance */ - ClientUpdateProposal.prototype.description = ""; + QueryPacketReceiptRequest.prototype.port_id = ""; /** - * ClientUpdateProposal subject_client_id. - * @member {string} subject_client_id - * @memberof ibc.core.client.v1.ClientUpdateProposal + * QueryPacketReceiptRequest channel_id. + * @member {string} channel_id + * @memberof ibc.core.channel.v1.QueryPacketReceiptRequest * @instance */ - ClientUpdateProposal.prototype.subject_client_id = ""; + QueryPacketReceiptRequest.prototype.channel_id = ""; /** - * ClientUpdateProposal substitute_client_id. - * @member {string} substitute_client_id - * @memberof ibc.core.client.v1.ClientUpdateProposal + * QueryPacketReceiptRequest sequence. + * @member {Long} sequence + * @memberof ibc.core.channel.v1.QueryPacketReceiptRequest * @instance */ - ClientUpdateProposal.prototype.substitute_client_id = ""; + QueryPacketReceiptRequest.prototype.sequence = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** - * Encodes the specified ClientUpdateProposal message. Does not implicitly {@link ibc.core.client.v1.ClientUpdateProposal.verify|verify} messages. + * Encodes the specified QueryPacketReceiptRequest message. Does not implicitly {@link ibc.core.channel.v1.QueryPacketReceiptRequest.verify|verify} messages. * @function encode - * @memberof ibc.core.client.v1.ClientUpdateProposal + * @memberof ibc.core.channel.v1.QueryPacketReceiptRequest * @static - * @param {ibc.core.client.v1.IClientUpdateProposal} message ClientUpdateProposal message or plain object to encode + * @param {ibc.core.channel.v1.IQueryPacketReceiptRequest} message QueryPacketReceiptRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ClientUpdateProposal.encode = function encode(message, writer) { + QueryPacketReceiptRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.title != null && Object.hasOwnProperty.call(message, "title")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.title); - if (message.description != null && Object.hasOwnProperty.call(message, "description")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.description); - if (message.subject_client_id != null && Object.hasOwnProperty.call(message, "subject_client_id")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.subject_client_id); - if (message.substitute_client_id != null && Object.hasOwnProperty.call(message, "substitute_client_id")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.substitute_client_id); + if (message.port_id != null && Object.hasOwnProperty.call(message, "port_id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.port_id); + if (message.channel_id != null && Object.hasOwnProperty.call(message, "channel_id")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.channel_id); + if (message.sequence != null && Object.hasOwnProperty.call(message, "sequence")) + writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.sequence); return writer; }; /** - * Encodes the specified ClientUpdateProposal message, length delimited. Does not implicitly {@link ibc.core.client.v1.ClientUpdateProposal.verify|verify} messages. + * Encodes the specified QueryPacketReceiptRequest message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryPacketReceiptRequest.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.client.v1.ClientUpdateProposal + * @memberof ibc.core.channel.v1.QueryPacketReceiptRequest * @static - * @param {ibc.core.client.v1.IClientUpdateProposal} message ClientUpdateProposal message or plain object to encode + * @param {ibc.core.channel.v1.IQueryPacketReceiptRequest} message QueryPacketReceiptRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ClientUpdateProposal.encodeDelimited = function encodeDelimited(message, writer) { + QueryPacketReceiptRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ClientUpdateProposal message from the specified reader or buffer. + * Decodes a QueryPacketReceiptRequest message from the specified reader or buffer. * @function decode - * @memberof ibc.core.client.v1.ClientUpdateProposal + * @memberof ibc.core.channel.v1.QueryPacketReceiptRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.client.v1.ClientUpdateProposal} ClientUpdateProposal + * @returns {ibc.core.channel.v1.QueryPacketReceiptRequest} QueryPacketReceiptRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ClientUpdateProposal.decode = function decode(reader, length) { + QueryPacketReceiptRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.ClientUpdateProposal(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.QueryPacketReceiptRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.title = reader.string(); + message.port_id = reader.string(); break; case 2: - message.description = reader.string(); + message.channel_id = reader.string(); break; case 3: - message.subject_client_id = reader.string(); - break; - case 4: - message.substitute_client_id = reader.string(); + message.sequence = reader.uint64(); break; default: reader.skipType(tag & 7); @@ -49280,135 +55461,140 @@ }; /** - * Decodes a ClientUpdateProposal message from the specified reader or buffer, length delimited. + * Decodes a QueryPacketReceiptRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.client.v1.ClientUpdateProposal + * @memberof ibc.core.channel.v1.QueryPacketReceiptRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.client.v1.ClientUpdateProposal} ClientUpdateProposal + * @returns {ibc.core.channel.v1.QueryPacketReceiptRequest} QueryPacketReceiptRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ClientUpdateProposal.decodeDelimited = function decodeDelimited(reader) { + QueryPacketReceiptRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ClientUpdateProposal message. + * Verifies a QueryPacketReceiptRequest message. * @function verify - * @memberof ibc.core.client.v1.ClientUpdateProposal + * @memberof ibc.core.channel.v1.QueryPacketReceiptRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ClientUpdateProposal.verify = function verify(message) { + QueryPacketReceiptRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.title != null && message.hasOwnProperty("title")) - if (!$util.isString(message.title)) - return "title: string expected"; - if (message.description != null && message.hasOwnProperty("description")) - if (!$util.isString(message.description)) - return "description: string expected"; - if (message.subject_client_id != null && message.hasOwnProperty("subject_client_id")) - if (!$util.isString(message.subject_client_id)) - return "subject_client_id: string expected"; - if (message.substitute_client_id != null && message.hasOwnProperty("substitute_client_id")) - if (!$util.isString(message.substitute_client_id)) - return "substitute_client_id: string expected"; + if (message.port_id != null && message.hasOwnProperty("port_id")) + if (!$util.isString(message.port_id)) + return "port_id: string expected"; + if (message.channel_id != null && message.hasOwnProperty("channel_id")) + if (!$util.isString(message.channel_id)) + return "channel_id: string expected"; + if (message.sequence != null && message.hasOwnProperty("sequence")) + if (!$util.isInteger(message.sequence) && !(message.sequence && $util.isInteger(message.sequence.low) && $util.isInteger(message.sequence.high))) + return "sequence: integer|Long expected"; return null; }; /** - * Creates a ClientUpdateProposal message from a plain object. Also converts values to their respective internal types. + * Creates a QueryPacketReceiptRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.client.v1.ClientUpdateProposal + * @memberof ibc.core.channel.v1.QueryPacketReceiptRequest * @static * @param {Object.} object Plain object - * @returns {ibc.core.client.v1.ClientUpdateProposal} ClientUpdateProposal + * @returns {ibc.core.channel.v1.QueryPacketReceiptRequest} QueryPacketReceiptRequest */ - ClientUpdateProposal.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.client.v1.ClientUpdateProposal) + QueryPacketReceiptRequest.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.channel.v1.QueryPacketReceiptRequest) return object; - var message = new $root.ibc.core.client.v1.ClientUpdateProposal(); - if (object.title != null) - message.title = String(object.title); - if (object.description != null) - message.description = String(object.description); - if (object.subject_client_id != null) - message.subject_client_id = String(object.subject_client_id); - if (object.substitute_client_id != null) - message.substitute_client_id = String(object.substitute_client_id); + var message = new $root.ibc.core.channel.v1.QueryPacketReceiptRequest(); + if (object.port_id != null) + message.port_id = String(object.port_id); + if (object.channel_id != null) + message.channel_id = String(object.channel_id); + if (object.sequence != null) + if ($util.Long) + (message.sequence = $util.Long.fromValue(object.sequence)).unsigned = true; + else if (typeof object.sequence === "string") + message.sequence = parseInt(object.sequence, 10); + else if (typeof object.sequence === "number") + message.sequence = object.sequence; + else if (typeof object.sequence === "object") + message.sequence = new $util.LongBits(object.sequence.low >>> 0, object.sequence.high >>> 0).toNumber(true); return message; }; /** - * Creates a plain object from a ClientUpdateProposal message. Also converts values to other types if specified. + * Creates a plain object from a QueryPacketReceiptRequest message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.client.v1.ClientUpdateProposal + * @memberof ibc.core.channel.v1.QueryPacketReceiptRequest * @static - * @param {ibc.core.client.v1.ClientUpdateProposal} message ClientUpdateProposal + * @param {ibc.core.channel.v1.QueryPacketReceiptRequest} message QueryPacketReceiptRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ClientUpdateProposal.toObject = function toObject(message, options) { + QueryPacketReceiptRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.title = ""; - object.description = ""; - object.subject_client_id = ""; - object.substitute_client_id = ""; + object.port_id = ""; + object.channel_id = ""; + if ($util.Long) { + var long = new $util.Long(0, 0, true); + object.sequence = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.sequence = options.longs === String ? "0" : 0; } - if (message.title != null && message.hasOwnProperty("title")) - object.title = message.title; - if (message.description != null && message.hasOwnProperty("description")) - object.description = message.description; - if (message.subject_client_id != null && message.hasOwnProperty("subject_client_id")) - object.subject_client_id = message.subject_client_id; - if (message.substitute_client_id != null && message.hasOwnProperty("substitute_client_id")) - object.substitute_client_id = message.substitute_client_id; + if (message.port_id != null && message.hasOwnProperty("port_id")) + object.port_id = message.port_id; + if (message.channel_id != null && message.hasOwnProperty("channel_id")) + object.channel_id = message.channel_id; + if (message.sequence != null && message.hasOwnProperty("sequence")) + if (typeof message.sequence === "number") + object.sequence = options.longs === String ? String(message.sequence) : message.sequence; + else + object.sequence = options.longs === String ? $util.Long.prototype.toString.call(message.sequence) : options.longs === Number ? new $util.LongBits(message.sequence.low >>> 0, message.sequence.high >>> 0).toNumber(true) : message.sequence; return object; }; /** - * Converts this ClientUpdateProposal to JSON. + * Converts this QueryPacketReceiptRequest to JSON. * @function toJSON - * @memberof ibc.core.client.v1.ClientUpdateProposal + * @memberof ibc.core.channel.v1.QueryPacketReceiptRequest * @instance * @returns {Object.} JSON object */ - ClientUpdateProposal.prototype.toJSON = function toJSON() { + QueryPacketReceiptRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ClientUpdateProposal; + return QueryPacketReceiptRequest; })(); - v1.UpgradeProposal = (function() { + v1.QueryPacketReceiptResponse = (function() { /** - * Properties of an UpgradeProposal. - * @memberof ibc.core.client.v1 - * @interface IUpgradeProposal - * @property {string|null} [title] UpgradeProposal title - * @property {string|null} [description] UpgradeProposal description - * @property {cosmos.upgrade.v1beta1.IPlan|null} [plan] UpgradeProposal plan - * @property {google.protobuf.IAny|null} [upgraded_client_state] UpgradeProposal upgraded_client_state + * Properties of a QueryPacketReceiptResponse. + * @memberof ibc.core.channel.v1 + * @interface IQueryPacketReceiptResponse + * @property {boolean|null} [received] QueryPacketReceiptResponse received + * @property {Uint8Array|null} [proof] QueryPacketReceiptResponse proof + * @property {ibc.core.client.v1.IHeight|null} [proof_height] QueryPacketReceiptResponse proof_height */ /** - * Constructs a new UpgradeProposal. - * @memberof ibc.core.client.v1 - * @classdesc Represents an UpgradeProposal. - * @implements IUpgradeProposal + * Constructs a new QueryPacketReceiptResponse. + * @memberof ibc.core.channel.v1 + * @classdesc Represents a QueryPacketReceiptResponse. + * @implements IQueryPacketReceiptResponse * @constructor - * @param {ibc.core.client.v1.IUpgradeProposal=} [properties] Properties to set + * @param {ibc.core.channel.v1.IQueryPacketReceiptResponse=} [properties] Properties to set */ - function UpgradeProposal(properties) { + function QueryPacketReceiptResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -49416,102 +55602,89 @@ } /** - * UpgradeProposal title. - * @member {string} title - * @memberof ibc.core.client.v1.UpgradeProposal - * @instance - */ - UpgradeProposal.prototype.title = ""; - - /** - * UpgradeProposal description. - * @member {string} description - * @memberof ibc.core.client.v1.UpgradeProposal + * QueryPacketReceiptResponse received. + * @member {boolean} received + * @memberof ibc.core.channel.v1.QueryPacketReceiptResponse * @instance */ - UpgradeProposal.prototype.description = ""; + QueryPacketReceiptResponse.prototype.received = false; /** - * UpgradeProposal plan. - * @member {cosmos.upgrade.v1beta1.IPlan|null|undefined} plan - * @memberof ibc.core.client.v1.UpgradeProposal + * QueryPacketReceiptResponse proof. + * @member {Uint8Array} proof + * @memberof ibc.core.channel.v1.QueryPacketReceiptResponse * @instance */ - UpgradeProposal.prototype.plan = null; + QueryPacketReceiptResponse.prototype.proof = $util.newBuffer([]); /** - * UpgradeProposal upgraded_client_state. - * @member {google.protobuf.IAny|null|undefined} upgraded_client_state - * @memberof ibc.core.client.v1.UpgradeProposal + * QueryPacketReceiptResponse proof_height. + * @member {ibc.core.client.v1.IHeight|null|undefined} proof_height + * @memberof ibc.core.channel.v1.QueryPacketReceiptResponse * @instance */ - UpgradeProposal.prototype.upgraded_client_state = null; + QueryPacketReceiptResponse.prototype.proof_height = null; /** - * Encodes the specified UpgradeProposal message. Does not implicitly {@link ibc.core.client.v1.UpgradeProposal.verify|verify} messages. + * Encodes the specified QueryPacketReceiptResponse message. Does not implicitly {@link ibc.core.channel.v1.QueryPacketReceiptResponse.verify|verify} messages. * @function encode - * @memberof ibc.core.client.v1.UpgradeProposal + * @memberof ibc.core.channel.v1.QueryPacketReceiptResponse * @static - * @param {ibc.core.client.v1.IUpgradeProposal} message UpgradeProposal message or plain object to encode + * @param {ibc.core.channel.v1.IQueryPacketReceiptResponse} message QueryPacketReceiptResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpgradeProposal.encode = function encode(message, writer) { + QueryPacketReceiptResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.title != null && Object.hasOwnProperty.call(message, "title")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.title); - if (message.description != null && Object.hasOwnProperty.call(message, "description")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.description); - if (message.plan != null && Object.hasOwnProperty.call(message, "plan")) - $root.cosmos.upgrade.v1beta1.Plan.encode(message.plan, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.upgraded_client_state != null && Object.hasOwnProperty.call(message, "upgraded_client_state")) - $root.google.protobuf.Any.encode(message.upgraded_client_state, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.received != null && Object.hasOwnProperty.call(message, "received")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.received); + if (message.proof != null && Object.hasOwnProperty.call(message, "proof")) + writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.proof); + if (message.proof_height != null && Object.hasOwnProperty.call(message, "proof_height")) + $root.ibc.core.client.v1.Height.encode(message.proof_height, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; /** - * Encodes the specified UpgradeProposal message, length delimited. Does not implicitly {@link ibc.core.client.v1.UpgradeProposal.verify|verify} messages. + * Encodes the specified QueryPacketReceiptResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryPacketReceiptResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.client.v1.UpgradeProposal + * @memberof ibc.core.channel.v1.QueryPacketReceiptResponse * @static - * @param {ibc.core.client.v1.IUpgradeProposal} message UpgradeProposal message or plain object to encode + * @param {ibc.core.channel.v1.IQueryPacketReceiptResponse} message QueryPacketReceiptResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpgradeProposal.encodeDelimited = function encodeDelimited(message, writer) { + QueryPacketReceiptResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpgradeProposal message from the specified reader or buffer. + * Decodes a QueryPacketReceiptResponse message from the specified reader or buffer. * @function decode - * @memberof ibc.core.client.v1.UpgradeProposal + * @memberof ibc.core.channel.v1.QueryPacketReceiptResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.client.v1.UpgradeProposal} UpgradeProposal + * @returns {ibc.core.channel.v1.QueryPacketReceiptResponse} QueryPacketReceiptResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpgradeProposal.decode = function decode(reader, length) { + QueryPacketReceiptResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.UpgradeProposal(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.QueryPacketReceiptResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.title = reader.string(); - break; case 2: - message.description = reader.string(); + message.received = reader.bool(); break; case 3: - message.plan = $root.cosmos.upgrade.v1beta1.Plan.decode(reader, reader.uint32()); + message.proof = reader.bytes(); break; case 4: - message.upgraded_client_state = $root.google.protobuf.Any.decode(reader, reader.uint32()); + message.proof_height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -49522,143 +55695,140 @@ }; /** - * Decodes an UpgradeProposal message from the specified reader or buffer, length delimited. + * Decodes a QueryPacketReceiptResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.client.v1.UpgradeProposal + * @memberof ibc.core.channel.v1.QueryPacketReceiptResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.client.v1.UpgradeProposal} UpgradeProposal + * @returns {ibc.core.channel.v1.QueryPacketReceiptResponse} QueryPacketReceiptResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpgradeProposal.decodeDelimited = function decodeDelimited(reader) { + QueryPacketReceiptResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpgradeProposal message. + * Verifies a QueryPacketReceiptResponse message. * @function verify - * @memberof ibc.core.client.v1.UpgradeProposal + * @memberof ibc.core.channel.v1.QueryPacketReceiptResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpgradeProposal.verify = function verify(message) { + QueryPacketReceiptResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.title != null && message.hasOwnProperty("title")) - if (!$util.isString(message.title)) - return "title: string expected"; - if (message.description != null && message.hasOwnProperty("description")) - if (!$util.isString(message.description)) - return "description: string expected"; - if (message.plan != null && message.hasOwnProperty("plan")) { - var error = $root.cosmos.upgrade.v1beta1.Plan.verify(message.plan); - if (error) - return "plan." + error; - } - if (message.upgraded_client_state != null && message.hasOwnProperty("upgraded_client_state")) { - var error = $root.google.protobuf.Any.verify(message.upgraded_client_state); + if (message.received != null && message.hasOwnProperty("received")) + if (typeof message.received !== "boolean") + return "received: boolean expected"; + if (message.proof != null && message.hasOwnProperty("proof")) + if (!(message.proof && typeof message.proof.length === "number" || $util.isString(message.proof))) + return "proof: buffer expected"; + if (message.proof_height != null && message.hasOwnProperty("proof_height")) { + var error = $root.ibc.core.client.v1.Height.verify(message.proof_height); if (error) - return "upgraded_client_state." + error; + return "proof_height." + error; } return null; }; /** - * Creates an UpgradeProposal message from a plain object. Also converts values to their respective internal types. + * Creates a QueryPacketReceiptResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.client.v1.UpgradeProposal + * @memberof ibc.core.channel.v1.QueryPacketReceiptResponse * @static * @param {Object.} object Plain object - * @returns {ibc.core.client.v1.UpgradeProposal} UpgradeProposal + * @returns {ibc.core.channel.v1.QueryPacketReceiptResponse} QueryPacketReceiptResponse */ - UpgradeProposal.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.client.v1.UpgradeProposal) + QueryPacketReceiptResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.channel.v1.QueryPacketReceiptResponse) return object; - var message = new $root.ibc.core.client.v1.UpgradeProposal(); - if (object.title != null) - message.title = String(object.title); - if (object.description != null) - message.description = String(object.description); - if (object.plan != null) { - if (typeof object.plan !== "object") - throw TypeError(".ibc.core.client.v1.UpgradeProposal.plan: object expected"); - message.plan = $root.cosmos.upgrade.v1beta1.Plan.fromObject(object.plan); - } - if (object.upgraded_client_state != null) { - if (typeof object.upgraded_client_state !== "object") - throw TypeError(".ibc.core.client.v1.UpgradeProposal.upgraded_client_state: object expected"); - message.upgraded_client_state = $root.google.protobuf.Any.fromObject(object.upgraded_client_state); + var message = new $root.ibc.core.channel.v1.QueryPacketReceiptResponse(); + if (object.received != null) + message.received = Boolean(object.received); + if (object.proof != null) + if (typeof object.proof === "string") + $util.base64.decode(object.proof, message.proof = $util.newBuffer($util.base64.length(object.proof)), 0); + else if (object.proof.length) + message.proof = object.proof; + if (object.proof_height != null) { + if (typeof object.proof_height !== "object") + throw TypeError(".ibc.core.channel.v1.QueryPacketReceiptResponse.proof_height: object expected"); + message.proof_height = $root.ibc.core.client.v1.Height.fromObject(object.proof_height); } return message; }; /** - * Creates a plain object from an UpgradeProposal message. Also converts values to other types if specified. + * Creates a plain object from a QueryPacketReceiptResponse message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.client.v1.UpgradeProposal + * @memberof ibc.core.channel.v1.QueryPacketReceiptResponse * @static - * @param {ibc.core.client.v1.UpgradeProposal} message UpgradeProposal + * @param {ibc.core.channel.v1.QueryPacketReceiptResponse} message QueryPacketReceiptResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpgradeProposal.toObject = function toObject(message, options) { + QueryPacketReceiptResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.title = ""; - object.description = ""; - object.plan = null; - object.upgraded_client_state = null; + object.received = false; + if (options.bytes === String) + object.proof = ""; + else { + object.proof = []; + if (options.bytes !== Array) + object.proof = $util.newBuffer(object.proof); + } + object.proof_height = null; } - if (message.title != null && message.hasOwnProperty("title")) - object.title = message.title; - if (message.description != null && message.hasOwnProperty("description")) - object.description = message.description; - if (message.plan != null && message.hasOwnProperty("plan")) - object.plan = $root.cosmos.upgrade.v1beta1.Plan.toObject(message.plan, options); - if (message.upgraded_client_state != null && message.hasOwnProperty("upgraded_client_state")) - object.upgraded_client_state = $root.google.protobuf.Any.toObject(message.upgraded_client_state, options); + if (message.received != null && message.hasOwnProperty("received")) + object.received = message.received; + if (message.proof != null && message.hasOwnProperty("proof")) + object.proof = options.bytes === String ? $util.base64.encode(message.proof, 0, message.proof.length) : options.bytes === Array ? Array.prototype.slice.call(message.proof) : message.proof; + if (message.proof_height != null && message.hasOwnProperty("proof_height")) + object.proof_height = $root.ibc.core.client.v1.Height.toObject(message.proof_height, options); return object; }; /** - * Converts this UpgradeProposal to JSON. + * Converts this QueryPacketReceiptResponse to JSON. * @function toJSON - * @memberof ibc.core.client.v1.UpgradeProposal + * @memberof ibc.core.channel.v1.QueryPacketReceiptResponse * @instance * @returns {Object.} JSON object */ - UpgradeProposal.prototype.toJSON = function toJSON() { + QueryPacketReceiptResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return UpgradeProposal; + return QueryPacketReceiptResponse; })(); - v1.Height = (function() { + v1.QueryPacketAcknowledgementRequest = (function() { /** - * Properties of an Height. - * @memberof ibc.core.client.v1 - * @interface IHeight - * @property {Long|null} [revision_number] Height revision_number - * @property {Long|null} [revision_height] Height revision_height + * Properties of a QueryPacketAcknowledgementRequest. + * @memberof ibc.core.channel.v1 + * @interface IQueryPacketAcknowledgementRequest + * @property {string|null} [port_id] QueryPacketAcknowledgementRequest port_id + * @property {string|null} [channel_id] QueryPacketAcknowledgementRequest channel_id + * @property {Long|null} [sequence] QueryPacketAcknowledgementRequest sequence */ /** - * Constructs a new Height. - * @memberof ibc.core.client.v1 - * @classdesc Represents an Height. - * @implements IHeight + * Constructs a new QueryPacketAcknowledgementRequest. + * @memberof ibc.core.channel.v1 + * @classdesc Represents a QueryPacketAcknowledgementRequest. + * @implements IQueryPacketAcknowledgementRequest * @constructor - * @param {ibc.core.client.v1.IHeight=} [properties] Properties to set + * @param {ibc.core.channel.v1.IQueryPacketAcknowledgementRequest=} [properties] Properties to set */ - function Height(properties) { + function QueryPacketAcknowledgementRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -49666,76 +55836,89 @@ } /** - * Height revision_number. - * @member {Long} revision_number - * @memberof ibc.core.client.v1.Height + * QueryPacketAcknowledgementRequest port_id. + * @member {string} port_id + * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementRequest * @instance */ - Height.prototype.revision_number = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + QueryPacketAcknowledgementRequest.prototype.port_id = ""; /** - * Height revision_height. - * @member {Long} revision_height - * @memberof ibc.core.client.v1.Height + * QueryPacketAcknowledgementRequest channel_id. + * @member {string} channel_id + * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementRequest * @instance */ - Height.prototype.revision_height = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + QueryPacketAcknowledgementRequest.prototype.channel_id = ""; /** - * Encodes the specified Height message. Does not implicitly {@link ibc.core.client.v1.Height.verify|verify} messages. + * QueryPacketAcknowledgementRequest sequence. + * @member {Long} sequence + * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementRequest + * @instance + */ + QueryPacketAcknowledgementRequest.prototype.sequence = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + + /** + * Encodes the specified QueryPacketAcknowledgementRequest message. Does not implicitly {@link ibc.core.channel.v1.QueryPacketAcknowledgementRequest.verify|verify} messages. * @function encode - * @memberof ibc.core.client.v1.Height + * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementRequest * @static - * @param {ibc.core.client.v1.IHeight} message Height message or plain object to encode + * @param {ibc.core.channel.v1.IQueryPacketAcknowledgementRequest} message QueryPacketAcknowledgementRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Height.encode = function encode(message, writer) { + QueryPacketAcknowledgementRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.revision_number != null && Object.hasOwnProperty.call(message, "revision_number")) - writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.revision_number); - if (message.revision_height != null && Object.hasOwnProperty.call(message, "revision_height")) - writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.revision_height); + if (message.port_id != null && Object.hasOwnProperty.call(message, "port_id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.port_id); + if (message.channel_id != null && Object.hasOwnProperty.call(message, "channel_id")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.channel_id); + if (message.sequence != null && Object.hasOwnProperty.call(message, "sequence")) + writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.sequence); return writer; }; /** - * Encodes the specified Height message, length delimited. Does not implicitly {@link ibc.core.client.v1.Height.verify|verify} messages. + * Encodes the specified QueryPacketAcknowledgementRequest message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryPacketAcknowledgementRequest.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.client.v1.Height + * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementRequest * @static - * @param {ibc.core.client.v1.IHeight} message Height message or plain object to encode + * @param {ibc.core.channel.v1.IQueryPacketAcknowledgementRequest} message QueryPacketAcknowledgementRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Height.encodeDelimited = function encodeDelimited(message, writer) { + QueryPacketAcknowledgementRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an Height message from the specified reader or buffer. + * Decodes a QueryPacketAcknowledgementRequest message from the specified reader or buffer. * @function decode - * @memberof ibc.core.client.v1.Height + * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.client.v1.Height} Height + * @returns {ibc.core.channel.v1.QueryPacketAcknowledgementRequest} QueryPacketAcknowledgementRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Height.decode = function decode(reader, length) { + QueryPacketAcknowledgementRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.Height(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.QueryPacketAcknowledgementRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.revision_number = reader.uint64(); + message.port_id = reader.string(); break; case 2: - message.revision_height = reader.uint64(); + message.channel_id = reader.string(); + break; + case 3: + message.sequence = reader.uint64(); break; default: reader.skipType(tag & 7); @@ -49746,145 +55929,140 @@ }; /** - * Decodes an Height message from the specified reader or buffer, length delimited. + * Decodes a QueryPacketAcknowledgementRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.client.v1.Height + * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.client.v1.Height} Height + * @returns {ibc.core.channel.v1.QueryPacketAcknowledgementRequest} QueryPacketAcknowledgementRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Height.decodeDelimited = function decodeDelimited(reader) { + QueryPacketAcknowledgementRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an Height message. + * Verifies a QueryPacketAcknowledgementRequest message. * @function verify - * @memberof ibc.core.client.v1.Height + * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Height.verify = function verify(message) { + QueryPacketAcknowledgementRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.revision_number != null && message.hasOwnProperty("revision_number")) - if (!$util.isInteger(message.revision_number) && !(message.revision_number && $util.isInteger(message.revision_number.low) && $util.isInteger(message.revision_number.high))) - return "revision_number: integer|Long expected"; - if (message.revision_height != null && message.hasOwnProperty("revision_height")) - if (!$util.isInteger(message.revision_height) && !(message.revision_height && $util.isInteger(message.revision_height.low) && $util.isInteger(message.revision_height.high))) - return "revision_height: integer|Long expected"; + if (message.port_id != null && message.hasOwnProperty("port_id")) + if (!$util.isString(message.port_id)) + return "port_id: string expected"; + if (message.channel_id != null && message.hasOwnProperty("channel_id")) + if (!$util.isString(message.channel_id)) + return "channel_id: string expected"; + if (message.sequence != null && message.hasOwnProperty("sequence")) + if (!$util.isInteger(message.sequence) && !(message.sequence && $util.isInteger(message.sequence.low) && $util.isInteger(message.sequence.high))) + return "sequence: integer|Long expected"; return null; }; /** - * Creates an Height message from a plain object. Also converts values to their respective internal types. + * Creates a QueryPacketAcknowledgementRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.client.v1.Height + * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementRequest * @static * @param {Object.} object Plain object - * @returns {ibc.core.client.v1.Height} Height + * @returns {ibc.core.channel.v1.QueryPacketAcknowledgementRequest} QueryPacketAcknowledgementRequest */ - Height.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.client.v1.Height) + QueryPacketAcknowledgementRequest.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.channel.v1.QueryPacketAcknowledgementRequest) return object; - var message = new $root.ibc.core.client.v1.Height(); - if (object.revision_number != null) - if ($util.Long) - (message.revision_number = $util.Long.fromValue(object.revision_number)).unsigned = true; - else if (typeof object.revision_number === "string") - message.revision_number = parseInt(object.revision_number, 10); - else if (typeof object.revision_number === "number") - message.revision_number = object.revision_number; - else if (typeof object.revision_number === "object") - message.revision_number = new $util.LongBits(object.revision_number.low >>> 0, object.revision_number.high >>> 0).toNumber(true); - if (object.revision_height != null) + var message = new $root.ibc.core.channel.v1.QueryPacketAcknowledgementRequest(); + if (object.port_id != null) + message.port_id = String(object.port_id); + if (object.channel_id != null) + message.channel_id = String(object.channel_id); + if (object.sequence != null) if ($util.Long) - (message.revision_height = $util.Long.fromValue(object.revision_height)).unsigned = true; - else if (typeof object.revision_height === "string") - message.revision_height = parseInt(object.revision_height, 10); - else if (typeof object.revision_height === "number") - message.revision_height = object.revision_height; - else if (typeof object.revision_height === "object") - message.revision_height = new $util.LongBits(object.revision_height.low >>> 0, object.revision_height.high >>> 0).toNumber(true); + (message.sequence = $util.Long.fromValue(object.sequence)).unsigned = true; + else if (typeof object.sequence === "string") + message.sequence = parseInt(object.sequence, 10); + else if (typeof object.sequence === "number") + message.sequence = object.sequence; + else if (typeof object.sequence === "object") + message.sequence = new $util.LongBits(object.sequence.low >>> 0, object.sequence.high >>> 0).toNumber(true); return message; }; /** - * Creates a plain object from an Height message. Also converts values to other types if specified. + * Creates a plain object from a QueryPacketAcknowledgementRequest message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.client.v1.Height + * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementRequest * @static - * @param {ibc.core.client.v1.Height} message Height + * @param {ibc.core.channel.v1.QueryPacketAcknowledgementRequest} message QueryPacketAcknowledgementRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Height.toObject = function toObject(message, options) { + QueryPacketAcknowledgementRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { + object.port_id = ""; + object.channel_id = ""; if ($util.Long) { var long = new $util.Long(0, 0, true); - object.revision_number = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.revision_number = options.longs === String ? "0" : 0; - if ($util.Long) { - var long = new $util.Long(0, 0, true); - object.revision_height = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + object.sequence = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.revision_height = options.longs === String ? "0" : 0; + object.sequence = options.longs === String ? "0" : 0; } - if (message.revision_number != null && message.hasOwnProperty("revision_number")) - if (typeof message.revision_number === "number") - object.revision_number = options.longs === String ? String(message.revision_number) : message.revision_number; - else - object.revision_number = options.longs === String ? $util.Long.prototype.toString.call(message.revision_number) : options.longs === Number ? new $util.LongBits(message.revision_number.low >>> 0, message.revision_number.high >>> 0).toNumber(true) : message.revision_number; - if (message.revision_height != null && message.hasOwnProperty("revision_height")) - if (typeof message.revision_height === "number") - object.revision_height = options.longs === String ? String(message.revision_height) : message.revision_height; + if (message.port_id != null && message.hasOwnProperty("port_id")) + object.port_id = message.port_id; + if (message.channel_id != null && message.hasOwnProperty("channel_id")) + object.channel_id = message.channel_id; + if (message.sequence != null && message.hasOwnProperty("sequence")) + if (typeof message.sequence === "number") + object.sequence = options.longs === String ? String(message.sequence) : message.sequence; else - object.revision_height = options.longs === String ? $util.Long.prototype.toString.call(message.revision_height) : options.longs === Number ? new $util.LongBits(message.revision_height.low >>> 0, message.revision_height.high >>> 0).toNumber(true) : message.revision_height; + object.sequence = options.longs === String ? $util.Long.prototype.toString.call(message.sequence) : options.longs === Number ? new $util.LongBits(message.sequence.low >>> 0, message.sequence.high >>> 0).toNumber(true) : message.sequence; return object; }; /** - * Converts this Height to JSON. + * Converts this QueryPacketAcknowledgementRequest to JSON. * @function toJSON - * @memberof ibc.core.client.v1.Height + * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementRequest * @instance * @returns {Object.} JSON object */ - Height.prototype.toJSON = function toJSON() { + QueryPacketAcknowledgementRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Height; + return QueryPacketAcknowledgementRequest; })(); - v1.Params = (function() { + v1.QueryPacketAcknowledgementResponse = (function() { /** - * Properties of a Params. - * @memberof ibc.core.client.v1 - * @interface IParams - * @property {Array.|null} [allowed_clients] Params allowed_clients + * Properties of a QueryPacketAcknowledgementResponse. + * @memberof ibc.core.channel.v1 + * @interface IQueryPacketAcknowledgementResponse + * @property {Uint8Array|null} [acknowledgement] QueryPacketAcknowledgementResponse acknowledgement + * @property {Uint8Array|null} [proof] QueryPacketAcknowledgementResponse proof + * @property {ibc.core.client.v1.IHeight|null} [proof_height] QueryPacketAcknowledgementResponse proof_height */ /** - * Constructs a new Params. - * @memberof ibc.core.client.v1 - * @classdesc Represents a Params. - * @implements IParams + * Constructs a new QueryPacketAcknowledgementResponse. + * @memberof ibc.core.channel.v1 + * @classdesc Represents a QueryPacketAcknowledgementResponse. + * @implements IQueryPacketAcknowledgementResponse * @constructor - * @param {ibc.core.client.v1.IParams=} [properties] Properties to set + * @param {ibc.core.channel.v1.IQueryPacketAcknowledgementResponse=} [properties] Properties to set */ - function Params(properties) { - this.allowed_clients = []; + function QueryPacketAcknowledgementResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -49892,66 +56070,89 @@ } /** - * Params allowed_clients. - * @member {Array.} allowed_clients - * @memberof ibc.core.client.v1.Params + * QueryPacketAcknowledgementResponse acknowledgement. + * @member {Uint8Array} acknowledgement + * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementResponse * @instance */ - Params.prototype.allowed_clients = $util.emptyArray; + QueryPacketAcknowledgementResponse.prototype.acknowledgement = $util.newBuffer([]); /** - * Encodes the specified Params message. Does not implicitly {@link ibc.core.client.v1.Params.verify|verify} messages. + * QueryPacketAcknowledgementResponse proof. + * @member {Uint8Array} proof + * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementResponse + * @instance + */ + QueryPacketAcknowledgementResponse.prototype.proof = $util.newBuffer([]); + + /** + * QueryPacketAcknowledgementResponse proof_height. + * @member {ibc.core.client.v1.IHeight|null|undefined} proof_height + * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementResponse + * @instance + */ + QueryPacketAcknowledgementResponse.prototype.proof_height = null; + + /** + * Encodes the specified QueryPacketAcknowledgementResponse message. Does not implicitly {@link ibc.core.channel.v1.QueryPacketAcknowledgementResponse.verify|verify} messages. * @function encode - * @memberof ibc.core.client.v1.Params + * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementResponse * @static - * @param {ibc.core.client.v1.IParams} message Params message or plain object to encode + * @param {ibc.core.channel.v1.IQueryPacketAcknowledgementResponse} message QueryPacketAcknowledgementResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Params.encode = function encode(message, writer) { + QueryPacketAcknowledgementResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.allowed_clients != null && message.allowed_clients.length) - for (var i = 0; i < message.allowed_clients.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.allowed_clients[i]); + if (message.acknowledgement != null && Object.hasOwnProperty.call(message, "acknowledgement")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.acknowledgement); + if (message.proof != null && Object.hasOwnProperty.call(message, "proof")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.proof); + if (message.proof_height != null && Object.hasOwnProperty.call(message, "proof_height")) + $root.ibc.core.client.v1.Height.encode(message.proof_height, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified Params message, length delimited. Does not implicitly {@link ibc.core.client.v1.Params.verify|verify} messages. + * Encodes the specified QueryPacketAcknowledgementResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryPacketAcknowledgementResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.client.v1.Params + * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementResponse * @static - * @param {ibc.core.client.v1.IParams} message Params message or plain object to encode + * @param {ibc.core.channel.v1.IQueryPacketAcknowledgementResponse} message QueryPacketAcknowledgementResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Params.encodeDelimited = function encodeDelimited(message, writer) { + QueryPacketAcknowledgementResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Params message from the specified reader or buffer. + * Decodes a QueryPacketAcknowledgementResponse message from the specified reader or buffer. * @function decode - * @memberof ibc.core.client.v1.Params + * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.client.v1.Params} Params + * @returns {ibc.core.channel.v1.QueryPacketAcknowledgementResponse} QueryPacketAcknowledgementResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Params.decode = function decode(reader, length) { + QueryPacketAcknowledgementResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.Params(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.QueryPacketAcknowledgementResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.allowed_clients && message.allowed_clients.length)) - message.allowed_clients = []; - message.allowed_clients.push(reader.string()); + message.acknowledgement = reader.bytes(); + break; + case 2: + message.proof = reader.bytes(); + break; + case 3: + message.proof_height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -49962,274 +56163,151 @@ }; /** - * Decodes a Params message from the specified reader or buffer, length delimited. + * Decodes a QueryPacketAcknowledgementResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.client.v1.Params + * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.client.v1.Params} Params + * @returns {ibc.core.channel.v1.QueryPacketAcknowledgementResponse} QueryPacketAcknowledgementResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Params.decodeDelimited = function decodeDelimited(reader) { + QueryPacketAcknowledgementResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Params message. + * Verifies a QueryPacketAcknowledgementResponse message. * @function verify - * @memberof ibc.core.client.v1.Params + * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Params.verify = function verify(message) { + QueryPacketAcknowledgementResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.allowed_clients != null && message.hasOwnProperty("allowed_clients")) { - if (!Array.isArray(message.allowed_clients)) - return "allowed_clients: array expected"; - for (var i = 0; i < message.allowed_clients.length; ++i) - if (!$util.isString(message.allowed_clients[i])) - return "allowed_clients: string[] expected"; + if (message.acknowledgement != null && message.hasOwnProperty("acknowledgement")) + if (!(message.acknowledgement && typeof message.acknowledgement.length === "number" || $util.isString(message.acknowledgement))) + return "acknowledgement: buffer expected"; + if (message.proof != null && message.hasOwnProperty("proof")) + if (!(message.proof && typeof message.proof.length === "number" || $util.isString(message.proof))) + return "proof: buffer expected"; + if (message.proof_height != null && message.hasOwnProperty("proof_height")) { + var error = $root.ibc.core.client.v1.Height.verify(message.proof_height); + if (error) + return "proof_height." + error; } return null; }; /** - * Creates a Params message from a plain object. Also converts values to their respective internal types. + * Creates a QueryPacketAcknowledgementResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.client.v1.Params + * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementResponse * @static * @param {Object.} object Plain object - * @returns {ibc.core.client.v1.Params} Params - */ - Params.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.client.v1.Params) - return object; - var message = new $root.ibc.core.client.v1.Params(); - if (object.allowed_clients) { - if (!Array.isArray(object.allowed_clients)) - throw TypeError(".ibc.core.client.v1.Params.allowed_clients: array expected"); - message.allowed_clients = []; - for (var i = 0; i < object.allowed_clients.length; ++i) - message.allowed_clients[i] = String(object.allowed_clients[i]); + * @returns {ibc.core.channel.v1.QueryPacketAcknowledgementResponse} QueryPacketAcknowledgementResponse + */ + QueryPacketAcknowledgementResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.channel.v1.QueryPacketAcknowledgementResponse) + return object; + var message = new $root.ibc.core.channel.v1.QueryPacketAcknowledgementResponse(); + if (object.acknowledgement != null) + if (typeof object.acknowledgement === "string") + $util.base64.decode(object.acknowledgement, message.acknowledgement = $util.newBuffer($util.base64.length(object.acknowledgement)), 0); + else if (object.acknowledgement.length) + message.acknowledgement = object.acknowledgement; + if (object.proof != null) + if (typeof object.proof === "string") + $util.base64.decode(object.proof, message.proof = $util.newBuffer($util.base64.length(object.proof)), 0); + else if (object.proof.length) + message.proof = object.proof; + if (object.proof_height != null) { + if (typeof object.proof_height !== "object") + throw TypeError(".ibc.core.channel.v1.QueryPacketAcknowledgementResponse.proof_height: object expected"); + message.proof_height = $root.ibc.core.client.v1.Height.fromObject(object.proof_height); } return message; }; /** - * Creates a plain object from a Params message. Also converts values to other types if specified. + * Creates a plain object from a QueryPacketAcknowledgementResponse message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.client.v1.Params + * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementResponse * @static - * @param {ibc.core.client.v1.Params} message Params + * @param {ibc.core.channel.v1.QueryPacketAcknowledgementResponse} message QueryPacketAcknowledgementResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Params.toObject = function toObject(message, options) { + QueryPacketAcknowledgementResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.allowed_clients = []; - if (message.allowed_clients && message.allowed_clients.length) { - object.allowed_clients = []; - for (var j = 0; j < message.allowed_clients.length; ++j) - object.allowed_clients[j] = message.allowed_clients[j]; + if (options.defaults) { + if (options.bytes === String) + object.acknowledgement = ""; + else { + object.acknowledgement = []; + if (options.bytes !== Array) + object.acknowledgement = $util.newBuffer(object.acknowledgement); + } + if (options.bytes === String) + object.proof = ""; + else { + object.proof = []; + if (options.bytes !== Array) + object.proof = $util.newBuffer(object.proof); + } + object.proof_height = null; } + if (message.acknowledgement != null && message.hasOwnProperty("acknowledgement")) + object.acknowledgement = options.bytes === String ? $util.base64.encode(message.acknowledgement, 0, message.acknowledgement.length) : options.bytes === Array ? Array.prototype.slice.call(message.acknowledgement) : message.acknowledgement; + if (message.proof != null && message.hasOwnProperty("proof")) + object.proof = options.bytes === String ? $util.base64.encode(message.proof, 0, message.proof.length) : options.bytes === Array ? Array.prototype.slice.call(message.proof) : message.proof; + if (message.proof_height != null && message.hasOwnProperty("proof_height")) + object.proof_height = $root.ibc.core.client.v1.Height.toObject(message.proof_height, options); return object; }; /** - * Converts this Params to JSON. + * Converts this QueryPacketAcknowledgementResponse to JSON. * @function toJSON - * @memberof ibc.core.client.v1.Params + * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementResponse * @instance * @returns {Object.} JSON object */ - Params.prototype.toJSON = function toJSON() { + QueryPacketAcknowledgementResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Params; - })(); - - v1.Msg = (function() { - - /** - * Constructs a new Msg service. - * @memberof ibc.core.client.v1 - * @classdesc Represents a Msg - * @extends $protobuf.rpc.Service - * @constructor - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - */ - function Msg(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } - - (Msg.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Msg; - - /** - * Callback as used by {@link ibc.core.client.v1.Msg#createClient}. - * @memberof ibc.core.client.v1.Msg - * @typedef CreateClientCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.core.client.v1.MsgCreateClientResponse} [response] MsgCreateClientResponse - */ - - /** - * Calls CreateClient. - * @function createClient - * @memberof ibc.core.client.v1.Msg - * @instance - * @param {ibc.core.client.v1.IMsgCreateClient} request MsgCreateClient message or plain object - * @param {ibc.core.client.v1.Msg.CreateClientCallback} callback Node-style callback called with the error, if any, and MsgCreateClientResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Msg.prototype.createClient = function createClient(request, callback) { - return this.rpcCall(createClient, $root.ibc.core.client.v1.MsgCreateClient, $root.ibc.core.client.v1.MsgCreateClientResponse, request, callback); - }, "name", { value: "CreateClient" }); - - /** - * Calls CreateClient. - * @function createClient - * @memberof ibc.core.client.v1.Msg - * @instance - * @param {ibc.core.client.v1.IMsgCreateClient} request MsgCreateClient message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link ibc.core.client.v1.Msg#updateClient}. - * @memberof ibc.core.client.v1.Msg - * @typedef UpdateClientCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.core.client.v1.MsgUpdateClientResponse} [response] MsgUpdateClientResponse - */ - - /** - * Calls UpdateClient. - * @function updateClient - * @memberof ibc.core.client.v1.Msg - * @instance - * @param {ibc.core.client.v1.IMsgUpdateClient} request MsgUpdateClient message or plain object - * @param {ibc.core.client.v1.Msg.UpdateClientCallback} callback Node-style callback called with the error, if any, and MsgUpdateClientResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Msg.prototype.updateClient = function updateClient(request, callback) { - return this.rpcCall(updateClient, $root.ibc.core.client.v1.MsgUpdateClient, $root.ibc.core.client.v1.MsgUpdateClientResponse, request, callback); - }, "name", { value: "UpdateClient" }); - - /** - * Calls UpdateClient. - * @function updateClient - * @memberof ibc.core.client.v1.Msg - * @instance - * @param {ibc.core.client.v1.IMsgUpdateClient} request MsgUpdateClient message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link ibc.core.client.v1.Msg#upgradeClient}. - * @memberof ibc.core.client.v1.Msg - * @typedef UpgradeClientCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.core.client.v1.MsgUpgradeClientResponse} [response] MsgUpgradeClientResponse - */ - - /** - * Calls UpgradeClient. - * @function upgradeClient - * @memberof ibc.core.client.v1.Msg - * @instance - * @param {ibc.core.client.v1.IMsgUpgradeClient} request MsgUpgradeClient message or plain object - * @param {ibc.core.client.v1.Msg.UpgradeClientCallback} callback Node-style callback called with the error, if any, and MsgUpgradeClientResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Msg.prototype.upgradeClient = function upgradeClient(request, callback) { - return this.rpcCall(upgradeClient, $root.ibc.core.client.v1.MsgUpgradeClient, $root.ibc.core.client.v1.MsgUpgradeClientResponse, request, callback); - }, "name", { value: "UpgradeClient" }); - - /** - * Calls UpgradeClient. - * @function upgradeClient - * @memberof ibc.core.client.v1.Msg - * @instance - * @param {ibc.core.client.v1.IMsgUpgradeClient} request MsgUpgradeClient message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link ibc.core.client.v1.Msg#submitMisbehaviour}. - * @memberof ibc.core.client.v1.Msg - * @typedef SubmitMisbehaviourCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.core.client.v1.MsgSubmitMisbehaviourResponse} [response] MsgSubmitMisbehaviourResponse - */ - - /** - * Calls SubmitMisbehaviour. - * @function submitMisbehaviour - * @memberof ibc.core.client.v1.Msg - * @instance - * @param {ibc.core.client.v1.IMsgSubmitMisbehaviour} request MsgSubmitMisbehaviour message or plain object - * @param {ibc.core.client.v1.Msg.SubmitMisbehaviourCallback} callback Node-style callback called with the error, if any, and MsgSubmitMisbehaviourResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Msg.prototype.submitMisbehaviour = function submitMisbehaviour(request, callback) { - return this.rpcCall(submitMisbehaviour, $root.ibc.core.client.v1.MsgSubmitMisbehaviour, $root.ibc.core.client.v1.MsgSubmitMisbehaviourResponse, request, callback); - }, "name", { value: "SubmitMisbehaviour" }); - - /** - * Calls SubmitMisbehaviour. - * @function submitMisbehaviour - * @memberof ibc.core.client.v1.Msg - * @instance - * @param {ibc.core.client.v1.IMsgSubmitMisbehaviour} request MsgSubmitMisbehaviour message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - return Msg; + return QueryPacketAcknowledgementResponse; })(); - v1.MsgCreateClient = (function() { + v1.QueryPacketAcknowledgementsRequest = (function() { /** - * Properties of a MsgCreateClient. - * @memberof ibc.core.client.v1 - * @interface IMsgCreateClient - * @property {google.protobuf.IAny|null} [client_state] MsgCreateClient client_state - * @property {google.protobuf.IAny|null} [consensus_state] MsgCreateClient consensus_state - * @property {string|null} [signer] MsgCreateClient signer + * Properties of a QueryPacketAcknowledgementsRequest. + * @memberof ibc.core.channel.v1 + * @interface IQueryPacketAcknowledgementsRequest + * @property {string|null} [port_id] QueryPacketAcknowledgementsRequest port_id + * @property {string|null} [channel_id] QueryPacketAcknowledgementsRequest channel_id + * @property {cosmos.base.query.v1beta1.IPageRequest|null} [pagination] QueryPacketAcknowledgementsRequest pagination + * @property {Array.|null} [packet_commitment_sequences] QueryPacketAcknowledgementsRequest packet_commitment_sequences */ /** - * Constructs a new MsgCreateClient. - * @memberof ibc.core.client.v1 - * @classdesc Represents a MsgCreateClient. - * @implements IMsgCreateClient + * Constructs a new QueryPacketAcknowledgementsRequest. + * @memberof ibc.core.channel.v1 + * @classdesc Represents a QueryPacketAcknowledgementsRequest. + * @implements IQueryPacketAcknowledgementsRequest * @constructor - * @param {ibc.core.client.v1.IMsgCreateClient=} [properties] Properties to set + * @param {ibc.core.channel.v1.IQueryPacketAcknowledgementsRequest=} [properties] Properties to set */ - function MsgCreateClient(properties) { + function QueryPacketAcknowledgementsRequest(properties) { + this.packet_commitment_sequences = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -50237,89 +56315,113 @@ } /** - * MsgCreateClient client_state. - * @member {google.protobuf.IAny|null|undefined} client_state - * @memberof ibc.core.client.v1.MsgCreateClient + * QueryPacketAcknowledgementsRequest port_id. + * @member {string} port_id + * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementsRequest * @instance */ - MsgCreateClient.prototype.client_state = null; + QueryPacketAcknowledgementsRequest.prototype.port_id = ""; /** - * MsgCreateClient consensus_state. - * @member {google.protobuf.IAny|null|undefined} consensus_state - * @memberof ibc.core.client.v1.MsgCreateClient + * QueryPacketAcknowledgementsRequest channel_id. + * @member {string} channel_id + * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementsRequest * @instance */ - MsgCreateClient.prototype.consensus_state = null; + QueryPacketAcknowledgementsRequest.prototype.channel_id = ""; /** - * MsgCreateClient signer. - * @member {string} signer - * @memberof ibc.core.client.v1.MsgCreateClient + * QueryPacketAcknowledgementsRequest pagination. + * @member {cosmos.base.query.v1beta1.IPageRequest|null|undefined} pagination + * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementsRequest * @instance */ - MsgCreateClient.prototype.signer = ""; + QueryPacketAcknowledgementsRequest.prototype.pagination = null; /** - * Encodes the specified MsgCreateClient message. Does not implicitly {@link ibc.core.client.v1.MsgCreateClient.verify|verify} messages. + * QueryPacketAcknowledgementsRequest packet_commitment_sequences. + * @member {Array.} packet_commitment_sequences + * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementsRequest + * @instance + */ + QueryPacketAcknowledgementsRequest.prototype.packet_commitment_sequences = $util.emptyArray; + + /** + * Encodes the specified QueryPacketAcknowledgementsRequest message. Does not implicitly {@link ibc.core.channel.v1.QueryPacketAcknowledgementsRequest.verify|verify} messages. * @function encode - * @memberof ibc.core.client.v1.MsgCreateClient + * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementsRequest * @static - * @param {ibc.core.client.v1.IMsgCreateClient} message MsgCreateClient message or plain object to encode + * @param {ibc.core.channel.v1.IQueryPacketAcknowledgementsRequest} message QueryPacketAcknowledgementsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgCreateClient.encode = function encode(message, writer) { + QueryPacketAcknowledgementsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.client_state != null && Object.hasOwnProperty.call(message, "client_state")) - $root.google.protobuf.Any.encode(message.client_state, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.consensus_state != null && Object.hasOwnProperty.call(message, "consensus_state")) - $root.google.protobuf.Any.encode(message.consensus_state, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.signer != null && Object.hasOwnProperty.call(message, "signer")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.signer); + if (message.port_id != null && Object.hasOwnProperty.call(message, "port_id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.port_id); + if (message.channel_id != null && Object.hasOwnProperty.call(message, "channel_id")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.channel_id); + if (message.pagination != null && Object.hasOwnProperty.call(message, "pagination")) + $root.cosmos.base.query.v1beta1.PageRequest.encode(message.pagination, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.packet_commitment_sequences != null && message.packet_commitment_sequences.length) { + writer.uint32(/* id 4, wireType 2 =*/34).fork(); + for (var i = 0; i < message.packet_commitment_sequences.length; ++i) + writer.uint64(message.packet_commitment_sequences[i]); + writer.ldelim(); + } return writer; }; /** - * Encodes the specified MsgCreateClient message, length delimited. Does not implicitly {@link ibc.core.client.v1.MsgCreateClient.verify|verify} messages. + * Encodes the specified QueryPacketAcknowledgementsRequest message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryPacketAcknowledgementsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.client.v1.MsgCreateClient + * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementsRequest * @static - * @param {ibc.core.client.v1.IMsgCreateClient} message MsgCreateClient message or plain object to encode + * @param {ibc.core.channel.v1.IQueryPacketAcknowledgementsRequest} message QueryPacketAcknowledgementsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgCreateClient.encodeDelimited = function encodeDelimited(message, writer) { + QueryPacketAcknowledgementsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MsgCreateClient message from the specified reader or buffer. + * Decodes a QueryPacketAcknowledgementsRequest message from the specified reader or buffer. * @function decode - * @memberof ibc.core.client.v1.MsgCreateClient + * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.client.v1.MsgCreateClient} MsgCreateClient + * @returns {ibc.core.channel.v1.QueryPacketAcknowledgementsRequest} QueryPacketAcknowledgementsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgCreateClient.decode = function decode(reader, length) { + QueryPacketAcknowledgementsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.MsgCreateClient(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.QueryPacketAcknowledgementsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.client_state = $root.google.protobuf.Any.decode(reader, reader.uint32()); + message.port_id = reader.string(); break; case 2: - message.consensus_state = $root.google.protobuf.Any.decode(reader, reader.uint32()); + message.channel_id = reader.string(); break; case 3: - message.signer = reader.string(); + message.pagination = $root.cosmos.base.query.v1beta1.PageRequest.decode(reader, reader.uint32()); + break; + case 4: + if (!(message.packet_commitment_sequences && message.packet_commitment_sequences.length)) + message.packet_commitment_sequences = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.packet_commitment_sequences.push(reader.uint64()); + } else + message.packet_commitment_sequences.push(reader.uint64()); break; default: reader.skipType(tag & 7); @@ -50330,133 +56432,163 @@ }; /** - * Decodes a MsgCreateClient message from the specified reader or buffer, length delimited. + * Decodes a QueryPacketAcknowledgementsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.client.v1.MsgCreateClient + * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.client.v1.MsgCreateClient} MsgCreateClient + * @returns {ibc.core.channel.v1.QueryPacketAcknowledgementsRequest} QueryPacketAcknowledgementsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgCreateClient.decodeDelimited = function decodeDelimited(reader) { + QueryPacketAcknowledgementsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MsgCreateClient message. + * Verifies a QueryPacketAcknowledgementsRequest message. * @function verify - * @memberof ibc.core.client.v1.MsgCreateClient + * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MsgCreateClient.verify = function verify(message) { + QueryPacketAcknowledgementsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.client_state != null && message.hasOwnProperty("client_state")) { - var error = $root.google.protobuf.Any.verify(message.client_state); + if (message.port_id != null && message.hasOwnProperty("port_id")) + if (!$util.isString(message.port_id)) + return "port_id: string expected"; + if (message.channel_id != null && message.hasOwnProperty("channel_id")) + if (!$util.isString(message.channel_id)) + return "channel_id: string expected"; + if (message.pagination != null && message.hasOwnProperty("pagination")) { + var error = $root.cosmos.base.query.v1beta1.PageRequest.verify(message.pagination); if (error) - return "client_state." + error; + return "pagination." + error; } - if (message.consensus_state != null && message.hasOwnProperty("consensus_state")) { - var error = $root.google.protobuf.Any.verify(message.consensus_state); - if (error) - return "consensus_state." + error; + if (message.packet_commitment_sequences != null && message.hasOwnProperty("packet_commitment_sequences")) { + if (!Array.isArray(message.packet_commitment_sequences)) + return "packet_commitment_sequences: array expected"; + for (var i = 0; i < message.packet_commitment_sequences.length; ++i) + if (!$util.isInteger(message.packet_commitment_sequences[i]) && !(message.packet_commitment_sequences[i] && $util.isInteger(message.packet_commitment_sequences[i].low) && $util.isInteger(message.packet_commitment_sequences[i].high))) + return "packet_commitment_sequences: integer|Long[] expected"; } - if (message.signer != null && message.hasOwnProperty("signer")) - if (!$util.isString(message.signer)) - return "signer: string expected"; return null; }; /** - * Creates a MsgCreateClient message from a plain object. Also converts values to their respective internal types. + * Creates a QueryPacketAcknowledgementsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.client.v1.MsgCreateClient + * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementsRequest * @static * @param {Object.} object Plain object - * @returns {ibc.core.client.v1.MsgCreateClient} MsgCreateClient + * @returns {ibc.core.channel.v1.QueryPacketAcknowledgementsRequest} QueryPacketAcknowledgementsRequest */ - MsgCreateClient.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.client.v1.MsgCreateClient) + QueryPacketAcknowledgementsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.channel.v1.QueryPacketAcknowledgementsRequest) return object; - var message = new $root.ibc.core.client.v1.MsgCreateClient(); - if (object.client_state != null) { - if (typeof object.client_state !== "object") - throw TypeError(".ibc.core.client.v1.MsgCreateClient.client_state: object expected"); - message.client_state = $root.google.protobuf.Any.fromObject(object.client_state); + var message = new $root.ibc.core.channel.v1.QueryPacketAcknowledgementsRequest(); + if (object.port_id != null) + message.port_id = String(object.port_id); + if (object.channel_id != null) + message.channel_id = String(object.channel_id); + if (object.pagination != null) { + if (typeof object.pagination !== "object") + throw TypeError(".ibc.core.channel.v1.QueryPacketAcknowledgementsRequest.pagination: object expected"); + message.pagination = $root.cosmos.base.query.v1beta1.PageRequest.fromObject(object.pagination); } - if (object.consensus_state != null) { - if (typeof object.consensus_state !== "object") - throw TypeError(".ibc.core.client.v1.MsgCreateClient.consensus_state: object expected"); - message.consensus_state = $root.google.protobuf.Any.fromObject(object.consensus_state); + if (object.packet_commitment_sequences) { + if (!Array.isArray(object.packet_commitment_sequences)) + throw TypeError(".ibc.core.channel.v1.QueryPacketAcknowledgementsRequest.packet_commitment_sequences: array expected"); + message.packet_commitment_sequences = []; + for (var i = 0; i < object.packet_commitment_sequences.length; ++i) + if ($util.Long) + (message.packet_commitment_sequences[i] = $util.Long.fromValue(object.packet_commitment_sequences[i])).unsigned = true; + else if (typeof object.packet_commitment_sequences[i] === "string") + message.packet_commitment_sequences[i] = parseInt(object.packet_commitment_sequences[i], 10); + else if (typeof object.packet_commitment_sequences[i] === "number") + message.packet_commitment_sequences[i] = object.packet_commitment_sequences[i]; + else if (typeof object.packet_commitment_sequences[i] === "object") + message.packet_commitment_sequences[i] = new $util.LongBits(object.packet_commitment_sequences[i].low >>> 0, object.packet_commitment_sequences[i].high >>> 0).toNumber(true); } - if (object.signer != null) - message.signer = String(object.signer); return message; }; /** - * Creates a plain object from a MsgCreateClient message. Also converts values to other types if specified. + * Creates a plain object from a QueryPacketAcknowledgementsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.client.v1.MsgCreateClient + * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementsRequest * @static - * @param {ibc.core.client.v1.MsgCreateClient} message MsgCreateClient + * @param {ibc.core.channel.v1.QueryPacketAcknowledgementsRequest} message QueryPacketAcknowledgementsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MsgCreateClient.toObject = function toObject(message, options) { + QueryPacketAcknowledgementsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.packet_commitment_sequences = []; if (options.defaults) { - object.client_state = null; - object.consensus_state = null; - object.signer = ""; + object.port_id = ""; + object.channel_id = ""; + object.pagination = null; + } + if (message.port_id != null && message.hasOwnProperty("port_id")) + object.port_id = message.port_id; + if (message.channel_id != null && message.hasOwnProperty("channel_id")) + object.channel_id = message.channel_id; + if (message.pagination != null && message.hasOwnProperty("pagination")) + object.pagination = $root.cosmos.base.query.v1beta1.PageRequest.toObject(message.pagination, options); + if (message.packet_commitment_sequences && message.packet_commitment_sequences.length) { + object.packet_commitment_sequences = []; + for (var j = 0; j < message.packet_commitment_sequences.length; ++j) + if (typeof message.packet_commitment_sequences[j] === "number") + object.packet_commitment_sequences[j] = options.longs === String ? String(message.packet_commitment_sequences[j]) : message.packet_commitment_sequences[j]; + else + object.packet_commitment_sequences[j] = options.longs === String ? $util.Long.prototype.toString.call(message.packet_commitment_sequences[j]) : options.longs === Number ? new $util.LongBits(message.packet_commitment_sequences[j].low >>> 0, message.packet_commitment_sequences[j].high >>> 0).toNumber(true) : message.packet_commitment_sequences[j]; } - if (message.client_state != null && message.hasOwnProperty("client_state")) - object.client_state = $root.google.protobuf.Any.toObject(message.client_state, options); - if (message.consensus_state != null && message.hasOwnProperty("consensus_state")) - object.consensus_state = $root.google.protobuf.Any.toObject(message.consensus_state, options); - if (message.signer != null && message.hasOwnProperty("signer")) - object.signer = message.signer; return object; }; /** - * Converts this MsgCreateClient to JSON. + * Converts this QueryPacketAcknowledgementsRequest to JSON. * @function toJSON - * @memberof ibc.core.client.v1.MsgCreateClient + * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementsRequest * @instance * @returns {Object.} JSON object */ - MsgCreateClient.prototype.toJSON = function toJSON() { + QueryPacketAcknowledgementsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MsgCreateClient; + return QueryPacketAcknowledgementsRequest; })(); - v1.MsgCreateClientResponse = (function() { + v1.QueryPacketAcknowledgementsResponse = (function() { /** - * Properties of a MsgCreateClientResponse. - * @memberof ibc.core.client.v1 - * @interface IMsgCreateClientResponse + * Properties of a QueryPacketAcknowledgementsResponse. + * @memberof ibc.core.channel.v1 + * @interface IQueryPacketAcknowledgementsResponse + * @property {Array.|null} [acknowledgements] QueryPacketAcknowledgementsResponse acknowledgements + * @property {cosmos.base.query.v1beta1.IPageResponse|null} [pagination] QueryPacketAcknowledgementsResponse pagination + * @property {ibc.core.client.v1.IHeight|null} [height] QueryPacketAcknowledgementsResponse height */ /** - * Constructs a new MsgCreateClientResponse. - * @memberof ibc.core.client.v1 - * @classdesc Represents a MsgCreateClientResponse. - * @implements IMsgCreateClientResponse + * Constructs a new QueryPacketAcknowledgementsResponse. + * @memberof ibc.core.channel.v1 + * @classdesc Represents a QueryPacketAcknowledgementsResponse. + * @implements IQueryPacketAcknowledgementsResponse * @constructor - * @param {ibc.core.client.v1.IMsgCreateClientResponse=} [properties] Properties to set + * @param {ibc.core.channel.v1.IQueryPacketAcknowledgementsResponse=} [properties] Properties to set */ - function MsgCreateClientResponse(properties) { + function QueryPacketAcknowledgementsResponse(properties) { + this.acknowledgements = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -50464,51 +56596,93 @@ } /** - * Encodes the specified MsgCreateClientResponse message. Does not implicitly {@link ibc.core.client.v1.MsgCreateClientResponse.verify|verify} messages. + * QueryPacketAcknowledgementsResponse acknowledgements. + * @member {Array.} acknowledgements + * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementsResponse + * @instance + */ + QueryPacketAcknowledgementsResponse.prototype.acknowledgements = $util.emptyArray; + + /** + * QueryPacketAcknowledgementsResponse pagination. + * @member {cosmos.base.query.v1beta1.IPageResponse|null|undefined} pagination + * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementsResponse + * @instance + */ + QueryPacketAcknowledgementsResponse.prototype.pagination = null; + + /** + * QueryPacketAcknowledgementsResponse height. + * @member {ibc.core.client.v1.IHeight|null|undefined} height + * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementsResponse + * @instance + */ + QueryPacketAcknowledgementsResponse.prototype.height = null; + + /** + * Encodes the specified QueryPacketAcknowledgementsResponse message. Does not implicitly {@link ibc.core.channel.v1.QueryPacketAcknowledgementsResponse.verify|verify} messages. * @function encode - * @memberof ibc.core.client.v1.MsgCreateClientResponse + * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementsResponse * @static - * @param {ibc.core.client.v1.IMsgCreateClientResponse} message MsgCreateClientResponse message or plain object to encode + * @param {ibc.core.channel.v1.IQueryPacketAcknowledgementsResponse} message QueryPacketAcknowledgementsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgCreateClientResponse.encode = function encode(message, writer) { + QueryPacketAcknowledgementsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.acknowledgements != null && message.acknowledgements.length) + for (var i = 0; i < message.acknowledgements.length; ++i) + $root.ibc.core.channel.v1.PacketState.encode(message.acknowledgements[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.pagination != null && Object.hasOwnProperty.call(message, "pagination")) + $root.cosmos.base.query.v1beta1.PageResponse.encode(message.pagination, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.height != null && Object.hasOwnProperty.call(message, "height")) + $root.ibc.core.client.v1.Height.encode(message.height, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified MsgCreateClientResponse message, length delimited. Does not implicitly {@link ibc.core.client.v1.MsgCreateClientResponse.verify|verify} messages. + * Encodes the specified QueryPacketAcknowledgementsResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryPacketAcknowledgementsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.client.v1.MsgCreateClientResponse + * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementsResponse * @static - * @param {ibc.core.client.v1.IMsgCreateClientResponse} message MsgCreateClientResponse message or plain object to encode + * @param {ibc.core.channel.v1.IQueryPacketAcknowledgementsResponse} message QueryPacketAcknowledgementsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgCreateClientResponse.encodeDelimited = function encodeDelimited(message, writer) { + QueryPacketAcknowledgementsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MsgCreateClientResponse message from the specified reader or buffer. + * Decodes a QueryPacketAcknowledgementsResponse message from the specified reader or buffer. * @function decode - * @memberof ibc.core.client.v1.MsgCreateClientResponse + * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.client.v1.MsgCreateClientResponse} MsgCreateClientResponse + * @returns {ibc.core.channel.v1.QueryPacketAcknowledgementsResponse} QueryPacketAcknowledgementsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgCreateClientResponse.decode = function decode(reader, length) { + QueryPacketAcknowledgementsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.MsgCreateClientResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.QueryPacketAcknowledgementsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: + if (!(message.acknowledgements && message.acknowledgements.length)) + message.acknowledgements = []; + message.acknowledgements.push($root.ibc.core.channel.v1.PacketState.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = $root.cosmos.base.query.v1beta1.PageResponse.decode(reader, reader.uint32()); + break; + case 3: + message.height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); + break; default: reader.skipType(tag & 7); break; @@ -50518,96 +56692,155 @@ }; /** - * Decodes a MsgCreateClientResponse message from the specified reader or buffer, length delimited. + * Decodes a QueryPacketAcknowledgementsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.client.v1.MsgCreateClientResponse + * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.client.v1.MsgCreateClientResponse} MsgCreateClientResponse + * @returns {ibc.core.channel.v1.QueryPacketAcknowledgementsResponse} QueryPacketAcknowledgementsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgCreateClientResponse.decodeDelimited = function decodeDelimited(reader) { + QueryPacketAcknowledgementsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MsgCreateClientResponse message. + * Verifies a QueryPacketAcknowledgementsResponse message. * @function verify - * @memberof ibc.core.client.v1.MsgCreateClientResponse + * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MsgCreateClientResponse.verify = function verify(message) { + QueryPacketAcknowledgementsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.acknowledgements != null && message.hasOwnProperty("acknowledgements")) { + if (!Array.isArray(message.acknowledgements)) + return "acknowledgements: array expected"; + for (var i = 0; i < message.acknowledgements.length; ++i) { + var error = $root.ibc.core.channel.v1.PacketState.verify(message.acknowledgements[i]); + if (error) + return "acknowledgements." + error; + } + } + if (message.pagination != null && message.hasOwnProperty("pagination")) { + var error = $root.cosmos.base.query.v1beta1.PageResponse.verify(message.pagination); + if (error) + return "pagination." + error; + } + if (message.height != null && message.hasOwnProperty("height")) { + var error = $root.ibc.core.client.v1.Height.verify(message.height); + if (error) + return "height." + error; + } return null; }; /** - * Creates a MsgCreateClientResponse message from a plain object. Also converts values to their respective internal types. + * Creates a QueryPacketAcknowledgementsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.client.v1.MsgCreateClientResponse + * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementsResponse * @static * @param {Object.} object Plain object - * @returns {ibc.core.client.v1.MsgCreateClientResponse} MsgCreateClientResponse + * @returns {ibc.core.channel.v1.QueryPacketAcknowledgementsResponse} QueryPacketAcknowledgementsResponse */ - MsgCreateClientResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.client.v1.MsgCreateClientResponse) + QueryPacketAcknowledgementsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.channel.v1.QueryPacketAcknowledgementsResponse) return object; - return new $root.ibc.core.client.v1.MsgCreateClientResponse(); + var message = new $root.ibc.core.channel.v1.QueryPacketAcknowledgementsResponse(); + if (object.acknowledgements) { + if (!Array.isArray(object.acknowledgements)) + throw TypeError(".ibc.core.channel.v1.QueryPacketAcknowledgementsResponse.acknowledgements: array expected"); + message.acknowledgements = []; + for (var i = 0; i < object.acknowledgements.length; ++i) { + if (typeof object.acknowledgements[i] !== "object") + throw TypeError(".ibc.core.channel.v1.QueryPacketAcknowledgementsResponse.acknowledgements: object expected"); + message.acknowledgements[i] = $root.ibc.core.channel.v1.PacketState.fromObject(object.acknowledgements[i]); + } + } + if (object.pagination != null) { + if (typeof object.pagination !== "object") + throw TypeError(".ibc.core.channel.v1.QueryPacketAcknowledgementsResponse.pagination: object expected"); + message.pagination = $root.cosmos.base.query.v1beta1.PageResponse.fromObject(object.pagination); + } + if (object.height != null) { + if (typeof object.height !== "object") + throw TypeError(".ibc.core.channel.v1.QueryPacketAcknowledgementsResponse.height: object expected"); + message.height = $root.ibc.core.client.v1.Height.fromObject(object.height); + } + return message; }; /** - * Creates a plain object from a MsgCreateClientResponse message. Also converts values to other types if specified. + * Creates a plain object from a QueryPacketAcknowledgementsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.client.v1.MsgCreateClientResponse + * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementsResponse * @static - * @param {ibc.core.client.v1.MsgCreateClientResponse} message MsgCreateClientResponse + * @param {ibc.core.channel.v1.QueryPacketAcknowledgementsResponse} message QueryPacketAcknowledgementsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MsgCreateClientResponse.toObject = function toObject() { - return {}; + QueryPacketAcknowledgementsResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.acknowledgements = []; + if (options.defaults) { + object.pagination = null; + object.height = null; + } + if (message.acknowledgements && message.acknowledgements.length) { + object.acknowledgements = []; + for (var j = 0; j < message.acknowledgements.length; ++j) + object.acknowledgements[j] = $root.ibc.core.channel.v1.PacketState.toObject(message.acknowledgements[j], options); + } + if (message.pagination != null && message.hasOwnProperty("pagination")) + object.pagination = $root.cosmos.base.query.v1beta1.PageResponse.toObject(message.pagination, options); + if (message.height != null && message.hasOwnProperty("height")) + object.height = $root.ibc.core.client.v1.Height.toObject(message.height, options); + return object; }; /** - * Converts this MsgCreateClientResponse to JSON. + * Converts this QueryPacketAcknowledgementsResponse to JSON. * @function toJSON - * @memberof ibc.core.client.v1.MsgCreateClientResponse + * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementsResponse * @instance * @returns {Object.} JSON object */ - MsgCreateClientResponse.prototype.toJSON = function toJSON() { + QueryPacketAcknowledgementsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MsgCreateClientResponse; + return QueryPacketAcknowledgementsResponse; })(); - v1.MsgUpdateClient = (function() { + v1.QueryUnreceivedPacketsRequest = (function() { /** - * Properties of a MsgUpdateClient. - * @memberof ibc.core.client.v1 - * @interface IMsgUpdateClient - * @property {string|null} [client_id] MsgUpdateClient client_id - * @property {google.protobuf.IAny|null} [header] MsgUpdateClient header - * @property {string|null} [signer] MsgUpdateClient signer + * Properties of a QueryUnreceivedPacketsRequest. + * @memberof ibc.core.channel.v1 + * @interface IQueryUnreceivedPacketsRequest + * @property {string|null} [port_id] QueryUnreceivedPacketsRequest port_id + * @property {string|null} [channel_id] QueryUnreceivedPacketsRequest channel_id + * @property {Array.|null} [packet_commitment_sequences] QueryUnreceivedPacketsRequest packet_commitment_sequences */ /** - * Constructs a new MsgUpdateClient. - * @memberof ibc.core.client.v1 - * @classdesc Represents a MsgUpdateClient. - * @implements IMsgUpdateClient + * Constructs a new QueryUnreceivedPacketsRequest. + * @memberof ibc.core.channel.v1 + * @classdesc Represents a QueryUnreceivedPacketsRequest. + * @implements IQueryUnreceivedPacketsRequest * @constructor - * @param {ibc.core.client.v1.IMsgUpdateClient=} [properties] Properties to set + * @param {ibc.core.channel.v1.IQueryUnreceivedPacketsRequest=} [properties] Properties to set */ - function MsgUpdateClient(properties) { + function QueryUnreceivedPacketsRequest(properties) { + this.packet_commitment_sequences = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -50615,89 +56848,100 @@ } /** - * MsgUpdateClient client_id. - * @member {string} client_id - * @memberof ibc.core.client.v1.MsgUpdateClient + * QueryUnreceivedPacketsRequest port_id. + * @member {string} port_id + * @memberof ibc.core.channel.v1.QueryUnreceivedPacketsRequest * @instance */ - MsgUpdateClient.prototype.client_id = ""; + QueryUnreceivedPacketsRequest.prototype.port_id = ""; /** - * MsgUpdateClient header. - * @member {google.protobuf.IAny|null|undefined} header - * @memberof ibc.core.client.v1.MsgUpdateClient + * QueryUnreceivedPacketsRequest channel_id. + * @member {string} channel_id + * @memberof ibc.core.channel.v1.QueryUnreceivedPacketsRequest * @instance */ - MsgUpdateClient.prototype.header = null; + QueryUnreceivedPacketsRequest.prototype.channel_id = ""; /** - * MsgUpdateClient signer. - * @member {string} signer - * @memberof ibc.core.client.v1.MsgUpdateClient + * QueryUnreceivedPacketsRequest packet_commitment_sequences. + * @member {Array.} packet_commitment_sequences + * @memberof ibc.core.channel.v1.QueryUnreceivedPacketsRequest * @instance */ - MsgUpdateClient.prototype.signer = ""; + QueryUnreceivedPacketsRequest.prototype.packet_commitment_sequences = $util.emptyArray; /** - * Encodes the specified MsgUpdateClient message. Does not implicitly {@link ibc.core.client.v1.MsgUpdateClient.verify|verify} messages. + * Encodes the specified QueryUnreceivedPacketsRequest message. Does not implicitly {@link ibc.core.channel.v1.QueryUnreceivedPacketsRequest.verify|verify} messages. * @function encode - * @memberof ibc.core.client.v1.MsgUpdateClient + * @memberof ibc.core.channel.v1.QueryUnreceivedPacketsRequest * @static - * @param {ibc.core.client.v1.IMsgUpdateClient} message MsgUpdateClient message or plain object to encode + * @param {ibc.core.channel.v1.IQueryUnreceivedPacketsRequest} message QueryUnreceivedPacketsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgUpdateClient.encode = function encode(message, writer) { + QueryUnreceivedPacketsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.client_id != null && Object.hasOwnProperty.call(message, "client_id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.client_id); - if (message.header != null && Object.hasOwnProperty.call(message, "header")) - $root.google.protobuf.Any.encode(message.header, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.signer != null && Object.hasOwnProperty.call(message, "signer")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.signer); + if (message.port_id != null && Object.hasOwnProperty.call(message, "port_id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.port_id); + if (message.channel_id != null && Object.hasOwnProperty.call(message, "channel_id")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.channel_id); + if (message.packet_commitment_sequences != null && message.packet_commitment_sequences.length) { + writer.uint32(/* id 3, wireType 2 =*/26).fork(); + for (var i = 0; i < message.packet_commitment_sequences.length; ++i) + writer.uint64(message.packet_commitment_sequences[i]); + writer.ldelim(); + } return writer; }; /** - * Encodes the specified MsgUpdateClient message, length delimited. Does not implicitly {@link ibc.core.client.v1.MsgUpdateClient.verify|verify} messages. + * Encodes the specified QueryUnreceivedPacketsRequest message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryUnreceivedPacketsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.client.v1.MsgUpdateClient + * @memberof ibc.core.channel.v1.QueryUnreceivedPacketsRequest * @static - * @param {ibc.core.client.v1.IMsgUpdateClient} message MsgUpdateClient message or plain object to encode + * @param {ibc.core.channel.v1.IQueryUnreceivedPacketsRequest} message QueryUnreceivedPacketsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgUpdateClient.encodeDelimited = function encodeDelimited(message, writer) { + QueryUnreceivedPacketsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MsgUpdateClient message from the specified reader or buffer. + * Decodes a QueryUnreceivedPacketsRequest message from the specified reader or buffer. * @function decode - * @memberof ibc.core.client.v1.MsgUpdateClient + * @memberof ibc.core.channel.v1.QueryUnreceivedPacketsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.client.v1.MsgUpdateClient} MsgUpdateClient + * @returns {ibc.core.channel.v1.QueryUnreceivedPacketsRequest} QueryUnreceivedPacketsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgUpdateClient.decode = function decode(reader, length) { + QueryUnreceivedPacketsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.MsgUpdateClient(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.QueryUnreceivedPacketsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.client_id = reader.string(); + message.port_id = reader.string(); break; case 2: - message.header = $root.google.protobuf.Any.decode(reader, reader.uint32()); + message.channel_id = reader.string(); break; case 3: - message.signer = reader.string(); + if (!(message.packet_commitment_sequences && message.packet_commitment_sequences.length)) + message.packet_commitment_sequences = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.packet_commitment_sequences.push(reader.uint64()); + } else + message.packet_commitment_sequences.push(reader.uint64()); break; default: reader.skipType(tag & 7); @@ -50708,128 +56952,149 @@ }; /** - * Decodes a MsgUpdateClient message from the specified reader or buffer, length delimited. + * Decodes a QueryUnreceivedPacketsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.client.v1.MsgUpdateClient + * @memberof ibc.core.channel.v1.QueryUnreceivedPacketsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.client.v1.MsgUpdateClient} MsgUpdateClient + * @returns {ibc.core.channel.v1.QueryUnreceivedPacketsRequest} QueryUnreceivedPacketsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgUpdateClient.decodeDelimited = function decodeDelimited(reader) { + QueryUnreceivedPacketsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MsgUpdateClient message. + * Verifies a QueryUnreceivedPacketsRequest message. * @function verify - * @memberof ibc.core.client.v1.MsgUpdateClient + * @memberof ibc.core.channel.v1.QueryUnreceivedPacketsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MsgUpdateClient.verify = function verify(message) { + QueryUnreceivedPacketsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.client_id != null && message.hasOwnProperty("client_id")) - if (!$util.isString(message.client_id)) - return "client_id: string expected"; - if (message.header != null && message.hasOwnProperty("header")) { - var error = $root.google.protobuf.Any.verify(message.header); - if (error) - return "header." + error; + if (message.port_id != null && message.hasOwnProperty("port_id")) + if (!$util.isString(message.port_id)) + return "port_id: string expected"; + if (message.channel_id != null && message.hasOwnProperty("channel_id")) + if (!$util.isString(message.channel_id)) + return "channel_id: string expected"; + if (message.packet_commitment_sequences != null && message.hasOwnProperty("packet_commitment_sequences")) { + if (!Array.isArray(message.packet_commitment_sequences)) + return "packet_commitment_sequences: array expected"; + for (var i = 0; i < message.packet_commitment_sequences.length; ++i) + if (!$util.isInteger(message.packet_commitment_sequences[i]) && !(message.packet_commitment_sequences[i] && $util.isInteger(message.packet_commitment_sequences[i].low) && $util.isInteger(message.packet_commitment_sequences[i].high))) + return "packet_commitment_sequences: integer|Long[] expected"; } - if (message.signer != null && message.hasOwnProperty("signer")) - if (!$util.isString(message.signer)) - return "signer: string expected"; return null; }; /** - * Creates a MsgUpdateClient message from a plain object. Also converts values to their respective internal types. + * Creates a QueryUnreceivedPacketsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.client.v1.MsgUpdateClient + * @memberof ibc.core.channel.v1.QueryUnreceivedPacketsRequest * @static * @param {Object.} object Plain object - * @returns {ibc.core.client.v1.MsgUpdateClient} MsgUpdateClient + * @returns {ibc.core.channel.v1.QueryUnreceivedPacketsRequest} QueryUnreceivedPacketsRequest */ - MsgUpdateClient.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.client.v1.MsgUpdateClient) + QueryUnreceivedPacketsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.channel.v1.QueryUnreceivedPacketsRequest) return object; - var message = new $root.ibc.core.client.v1.MsgUpdateClient(); - if (object.client_id != null) - message.client_id = String(object.client_id); - if (object.header != null) { - if (typeof object.header !== "object") - throw TypeError(".ibc.core.client.v1.MsgUpdateClient.header: object expected"); - message.header = $root.google.protobuf.Any.fromObject(object.header); + var message = new $root.ibc.core.channel.v1.QueryUnreceivedPacketsRequest(); + if (object.port_id != null) + message.port_id = String(object.port_id); + if (object.channel_id != null) + message.channel_id = String(object.channel_id); + if (object.packet_commitment_sequences) { + if (!Array.isArray(object.packet_commitment_sequences)) + throw TypeError(".ibc.core.channel.v1.QueryUnreceivedPacketsRequest.packet_commitment_sequences: array expected"); + message.packet_commitment_sequences = []; + for (var i = 0; i < object.packet_commitment_sequences.length; ++i) + if ($util.Long) + (message.packet_commitment_sequences[i] = $util.Long.fromValue(object.packet_commitment_sequences[i])).unsigned = true; + else if (typeof object.packet_commitment_sequences[i] === "string") + message.packet_commitment_sequences[i] = parseInt(object.packet_commitment_sequences[i], 10); + else if (typeof object.packet_commitment_sequences[i] === "number") + message.packet_commitment_sequences[i] = object.packet_commitment_sequences[i]; + else if (typeof object.packet_commitment_sequences[i] === "object") + message.packet_commitment_sequences[i] = new $util.LongBits(object.packet_commitment_sequences[i].low >>> 0, object.packet_commitment_sequences[i].high >>> 0).toNumber(true); } - if (object.signer != null) - message.signer = String(object.signer); return message; }; /** - * Creates a plain object from a MsgUpdateClient message. Also converts values to other types if specified. + * Creates a plain object from a QueryUnreceivedPacketsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.client.v1.MsgUpdateClient + * @memberof ibc.core.channel.v1.QueryUnreceivedPacketsRequest * @static - * @param {ibc.core.client.v1.MsgUpdateClient} message MsgUpdateClient + * @param {ibc.core.channel.v1.QueryUnreceivedPacketsRequest} message QueryUnreceivedPacketsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MsgUpdateClient.toObject = function toObject(message, options) { + QueryUnreceivedPacketsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.packet_commitment_sequences = []; if (options.defaults) { - object.client_id = ""; - object.header = null; - object.signer = ""; + object.port_id = ""; + object.channel_id = ""; + } + if (message.port_id != null && message.hasOwnProperty("port_id")) + object.port_id = message.port_id; + if (message.channel_id != null && message.hasOwnProperty("channel_id")) + object.channel_id = message.channel_id; + if (message.packet_commitment_sequences && message.packet_commitment_sequences.length) { + object.packet_commitment_sequences = []; + for (var j = 0; j < message.packet_commitment_sequences.length; ++j) + if (typeof message.packet_commitment_sequences[j] === "number") + object.packet_commitment_sequences[j] = options.longs === String ? String(message.packet_commitment_sequences[j]) : message.packet_commitment_sequences[j]; + else + object.packet_commitment_sequences[j] = options.longs === String ? $util.Long.prototype.toString.call(message.packet_commitment_sequences[j]) : options.longs === Number ? new $util.LongBits(message.packet_commitment_sequences[j].low >>> 0, message.packet_commitment_sequences[j].high >>> 0).toNumber(true) : message.packet_commitment_sequences[j]; } - if (message.client_id != null && message.hasOwnProperty("client_id")) - object.client_id = message.client_id; - if (message.header != null && message.hasOwnProperty("header")) - object.header = $root.google.protobuf.Any.toObject(message.header, options); - if (message.signer != null && message.hasOwnProperty("signer")) - object.signer = message.signer; return object; }; /** - * Converts this MsgUpdateClient to JSON. + * Converts this QueryUnreceivedPacketsRequest to JSON. * @function toJSON - * @memberof ibc.core.client.v1.MsgUpdateClient + * @memberof ibc.core.channel.v1.QueryUnreceivedPacketsRequest * @instance * @returns {Object.} JSON object */ - MsgUpdateClient.prototype.toJSON = function toJSON() { + QueryUnreceivedPacketsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MsgUpdateClient; + return QueryUnreceivedPacketsRequest; })(); - v1.MsgUpdateClientResponse = (function() { + v1.QueryUnreceivedPacketsResponse = (function() { /** - * Properties of a MsgUpdateClientResponse. - * @memberof ibc.core.client.v1 - * @interface IMsgUpdateClientResponse + * Properties of a QueryUnreceivedPacketsResponse. + * @memberof ibc.core.channel.v1 + * @interface IQueryUnreceivedPacketsResponse + * @property {Array.|null} [sequences] QueryUnreceivedPacketsResponse sequences + * @property {ibc.core.client.v1.IHeight|null} [height] QueryUnreceivedPacketsResponse height */ /** - * Constructs a new MsgUpdateClientResponse. - * @memberof ibc.core.client.v1 - * @classdesc Represents a MsgUpdateClientResponse. - * @implements IMsgUpdateClientResponse + * Constructs a new QueryUnreceivedPacketsResponse. + * @memberof ibc.core.channel.v1 + * @classdesc Represents a QueryUnreceivedPacketsResponse. + * @implements IQueryUnreceivedPacketsResponse * @constructor - * @param {ibc.core.client.v1.IMsgUpdateClientResponse=} [properties] Properties to set + * @param {ibc.core.channel.v1.IQueryUnreceivedPacketsResponse=} [properties] Properties to set */ - function MsgUpdateClientResponse(properties) { + function QueryUnreceivedPacketsResponse(properties) { + this.sequences = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -50837,51 +57102,88 @@ } /** - * Encodes the specified MsgUpdateClientResponse message. Does not implicitly {@link ibc.core.client.v1.MsgUpdateClientResponse.verify|verify} messages. + * QueryUnreceivedPacketsResponse sequences. + * @member {Array.} sequences + * @memberof ibc.core.channel.v1.QueryUnreceivedPacketsResponse + * @instance + */ + QueryUnreceivedPacketsResponse.prototype.sequences = $util.emptyArray; + + /** + * QueryUnreceivedPacketsResponse height. + * @member {ibc.core.client.v1.IHeight|null|undefined} height + * @memberof ibc.core.channel.v1.QueryUnreceivedPacketsResponse + * @instance + */ + QueryUnreceivedPacketsResponse.prototype.height = null; + + /** + * Encodes the specified QueryUnreceivedPacketsResponse message. Does not implicitly {@link ibc.core.channel.v1.QueryUnreceivedPacketsResponse.verify|verify} messages. * @function encode - * @memberof ibc.core.client.v1.MsgUpdateClientResponse + * @memberof ibc.core.channel.v1.QueryUnreceivedPacketsResponse * @static - * @param {ibc.core.client.v1.IMsgUpdateClientResponse} message MsgUpdateClientResponse message or plain object to encode + * @param {ibc.core.channel.v1.IQueryUnreceivedPacketsResponse} message QueryUnreceivedPacketsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgUpdateClientResponse.encode = function encode(message, writer) { + QueryUnreceivedPacketsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.sequences != null && message.sequences.length) { + writer.uint32(/* id 1, wireType 2 =*/10).fork(); + for (var i = 0; i < message.sequences.length; ++i) + writer.uint64(message.sequences[i]); + writer.ldelim(); + } + if (message.height != null && Object.hasOwnProperty.call(message, "height")) + $root.ibc.core.client.v1.Height.encode(message.height, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified MsgUpdateClientResponse message, length delimited. Does not implicitly {@link ibc.core.client.v1.MsgUpdateClientResponse.verify|verify} messages. + * Encodes the specified QueryUnreceivedPacketsResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryUnreceivedPacketsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.client.v1.MsgUpdateClientResponse + * @memberof ibc.core.channel.v1.QueryUnreceivedPacketsResponse * @static - * @param {ibc.core.client.v1.IMsgUpdateClientResponse} message MsgUpdateClientResponse message or plain object to encode + * @param {ibc.core.channel.v1.IQueryUnreceivedPacketsResponse} message QueryUnreceivedPacketsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgUpdateClientResponse.encodeDelimited = function encodeDelimited(message, writer) { + QueryUnreceivedPacketsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MsgUpdateClientResponse message from the specified reader or buffer. + * Decodes a QueryUnreceivedPacketsResponse message from the specified reader or buffer. * @function decode - * @memberof ibc.core.client.v1.MsgUpdateClientResponse + * @memberof ibc.core.channel.v1.QueryUnreceivedPacketsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.client.v1.MsgUpdateClientResponse} MsgUpdateClientResponse + * @returns {ibc.core.channel.v1.QueryUnreceivedPacketsResponse} QueryUnreceivedPacketsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgUpdateClientResponse.decode = function decode(reader, length) { + QueryUnreceivedPacketsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.MsgUpdateClientResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.QueryUnreceivedPacketsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: + if (!(message.sequences && message.sequences.length)) + message.sequences = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.sequences.push(reader.uint64()); + } else + message.sequences.push(reader.uint64()); + break; + case 2: + message.height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); + break; default: reader.skipType(tag & 7); break; @@ -50891,99 +57193,146 @@ }; /** - * Decodes a MsgUpdateClientResponse message from the specified reader or buffer, length delimited. + * Decodes a QueryUnreceivedPacketsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.client.v1.MsgUpdateClientResponse + * @memberof ibc.core.channel.v1.QueryUnreceivedPacketsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.client.v1.MsgUpdateClientResponse} MsgUpdateClientResponse + * @returns {ibc.core.channel.v1.QueryUnreceivedPacketsResponse} QueryUnreceivedPacketsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgUpdateClientResponse.decodeDelimited = function decodeDelimited(reader) { + QueryUnreceivedPacketsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MsgUpdateClientResponse message. + * Verifies a QueryUnreceivedPacketsResponse message. * @function verify - * @memberof ibc.core.client.v1.MsgUpdateClientResponse + * @memberof ibc.core.channel.v1.QueryUnreceivedPacketsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MsgUpdateClientResponse.verify = function verify(message) { + QueryUnreceivedPacketsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.sequences != null && message.hasOwnProperty("sequences")) { + if (!Array.isArray(message.sequences)) + return "sequences: array expected"; + for (var i = 0; i < message.sequences.length; ++i) + if (!$util.isInteger(message.sequences[i]) && !(message.sequences[i] && $util.isInteger(message.sequences[i].low) && $util.isInteger(message.sequences[i].high))) + return "sequences: integer|Long[] expected"; + } + if (message.height != null && message.hasOwnProperty("height")) { + var error = $root.ibc.core.client.v1.Height.verify(message.height); + if (error) + return "height." + error; + } return null; }; /** - * Creates a MsgUpdateClientResponse message from a plain object. Also converts values to their respective internal types. + * Creates a QueryUnreceivedPacketsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.client.v1.MsgUpdateClientResponse + * @memberof ibc.core.channel.v1.QueryUnreceivedPacketsResponse * @static * @param {Object.} object Plain object - * @returns {ibc.core.client.v1.MsgUpdateClientResponse} MsgUpdateClientResponse + * @returns {ibc.core.channel.v1.QueryUnreceivedPacketsResponse} QueryUnreceivedPacketsResponse */ - MsgUpdateClientResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.client.v1.MsgUpdateClientResponse) + QueryUnreceivedPacketsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.channel.v1.QueryUnreceivedPacketsResponse) return object; - return new $root.ibc.core.client.v1.MsgUpdateClientResponse(); + var message = new $root.ibc.core.channel.v1.QueryUnreceivedPacketsResponse(); + if (object.sequences) { + if (!Array.isArray(object.sequences)) + throw TypeError(".ibc.core.channel.v1.QueryUnreceivedPacketsResponse.sequences: array expected"); + message.sequences = []; + for (var i = 0; i < object.sequences.length; ++i) + if ($util.Long) + (message.sequences[i] = $util.Long.fromValue(object.sequences[i])).unsigned = true; + else if (typeof object.sequences[i] === "string") + message.sequences[i] = parseInt(object.sequences[i], 10); + else if (typeof object.sequences[i] === "number") + message.sequences[i] = object.sequences[i]; + else if (typeof object.sequences[i] === "object") + message.sequences[i] = new $util.LongBits(object.sequences[i].low >>> 0, object.sequences[i].high >>> 0).toNumber(true); + } + if (object.height != null) { + if (typeof object.height !== "object") + throw TypeError(".ibc.core.channel.v1.QueryUnreceivedPacketsResponse.height: object expected"); + message.height = $root.ibc.core.client.v1.Height.fromObject(object.height); + } + return message; }; /** - * Creates a plain object from a MsgUpdateClientResponse message. Also converts values to other types if specified. + * Creates a plain object from a QueryUnreceivedPacketsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.client.v1.MsgUpdateClientResponse + * @memberof ibc.core.channel.v1.QueryUnreceivedPacketsResponse * @static - * @param {ibc.core.client.v1.MsgUpdateClientResponse} message MsgUpdateClientResponse + * @param {ibc.core.channel.v1.QueryUnreceivedPacketsResponse} message QueryUnreceivedPacketsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MsgUpdateClientResponse.toObject = function toObject() { - return {}; + QueryUnreceivedPacketsResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.sequences = []; + if (options.defaults) + object.height = null; + if (message.sequences && message.sequences.length) { + object.sequences = []; + for (var j = 0; j < message.sequences.length; ++j) + if (typeof message.sequences[j] === "number") + object.sequences[j] = options.longs === String ? String(message.sequences[j]) : message.sequences[j]; + else + object.sequences[j] = options.longs === String ? $util.Long.prototype.toString.call(message.sequences[j]) : options.longs === Number ? new $util.LongBits(message.sequences[j].low >>> 0, message.sequences[j].high >>> 0).toNumber(true) : message.sequences[j]; + } + if (message.height != null && message.hasOwnProperty("height")) + object.height = $root.ibc.core.client.v1.Height.toObject(message.height, options); + return object; }; /** - * Converts this MsgUpdateClientResponse to JSON. + * Converts this QueryUnreceivedPacketsResponse to JSON. * @function toJSON - * @memberof ibc.core.client.v1.MsgUpdateClientResponse + * @memberof ibc.core.channel.v1.QueryUnreceivedPacketsResponse * @instance * @returns {Object.} JSON object */ - MsgUpdateClientResponse.prototype.toJSON = function toJSON() { + QueryUnreceivedPacketsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MsgUpdateClientResponse; + return QueryUnreceivedPacketsResponse; })(); - v1.MsgUpgradeClient = (function() { + v1.QueryUnreceivedAcksRequest = (function() { /** - * Properties of a MsgUpgradeClient. - * @memberof ibc.core.client.v1 - * @interface IMsgUpgradeClient - * @property {string|null} [client_id] MsgUpgradeClient client_id - * @property {google.protobuf.IAny|null} [client_state] MsgUpgradeClient client_state - * @property {google.protobuf.IAny|null} [consensus_state] MsgUpgradeClient consensus_state - * @property {Uint8Array|null} [proof_upgrade_client] MsgUpgradeClient proof_upgrade_client - * @property {Uint8Array|null} [proof_upgrade_consensus_state] MsgUpgradeClient proof_upgrade_consensus_state - * @property {string|null} [signer] MsgUpgradeClient signer + * Properties of a QueryUnreceivedAcksRequest. + * @memberof ibc.core.channel.v1 + * @interface IQueryUnreceivedAcksRequest + * @property {string|null} [port_id] QueryUnreceivedAcksRequest port_id + * @property {string|null} [channel_id] QueryUnreceivedAcksRequest channel_id + * @property {Array.|null} [packet_ack_sequences] QueryUnreceivedAcksRequest packet_ack_sequences */ /** - * Constructs a new MsgUpgradeClient. - * @memberof ibc.core.client.v1 - * @classdesc Represents a MsgUpgradeClient. - * @implements IMsgUpgradeClient + * Constructs a new QueryUnreceivedAcksRequest. + * @memberof ibc.core.channel.v1 + * @classdesc Represents a QueryUnreceivedAcksRequest. + * @implements IQueryUnreceivedAcksRequest * @constructor - * @param {ibc.core.client.v1.IMsgUpgradeClient=} [properties] Properties to set + * @param {ibc.core.channel.v1.IQueryUnreceivedAcksRequest=} [properties] Properties to set */ - function MsgUpgradeClient(properties) { + function QueryUnreceivedAcksRequest(properties) { + this.packet_ack_sequences = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -50991,128 +57340,100 @@ } /** - * MsgUpgradeClient client_id. - * @member {string} client_id - * @memberof ibc.core.client.v1.MsgUpgradeClient - * @instance - */ - MsgUpgradeClient.prototype.client_id = ""; - - /** - * MsgUpgradeClient client_state. - * @member {google.protobuf.IAny|null|undefined} client_state - * @memberof ibc.core.client.v1.MsgUpgradeClient - * @instance - */ - MsgUpgradeClient.prototype.client_state = null; - - /** - * MsgUpgradeClient consensus_state. - * @member {google.protobuf.IAny|null|undefined} consensus_state - * @memberof ibc.core.client.v1.MsgUpgradeClient - * @instance - */ - MsgUpgradeClient.prototype.consensus_state = null; - - /** - * MsgUpgradeClient proof_upgrade_client. - * @member {Uint8Array} proof_upgrade_client - * @memberof ibc.core.client.v1.MsgUpgradeClient + * QueryUnreceivedAcksRequest port_id. + * @member {string} port_id + * @memberof ibc.core.channel.v1.QueryUnreceivedAcksRequest * @instance */ - MsgUpgradeClient.prototype.proof_upgrade_client = $util.newBuffer([]); + QueryUnreceivedAcksRequest.prototype.port_id = ""; /** - * MsgUpgradeClient proof_upgrade_consensus_state. - * @member {Uint8Array} proof_upgrade_consensus_state - * @memberof ibc.core.client.v1.MsgUpgradeClient + * QueryUnreceivedAcksRequest channel_id. + * @member {string} channel_id + * @memberof ibc.core.channel.v1.QueryUnreceivedAcksRequest * @instance */ - MsgUpgradeClient.prototype.proof_upgrade_consensus_state = $util.newBuffer([]); + QueryUnreceivedAcksRequest.prototype.channel_id = ""; /** - * MsgUpgradeClient signer. - * @member {string} signer - * @memberof ibc.core.client.v1.MsgUpgradeClient + * QueryUnreceivedAcksRequest packet_ack_sequences. + * @member {Array.} packet_ack_sequences + * @memberof ibc.core.channel.v1.QueryUnreceivedAcksRequest * @instance */ - MsgUpgradeClient.prototype.signer = ""; + QueryUnreceivedAcksRequest.prototype.packet_ack_sequences = $util.emptyArray; /** - * Encodes the specified MsgUpgradeClient message. Does not implicitly {@link ibc.core.client.v1.MsgUpgradeClient.verify|verify} messages. + * Encodes the specified QueryUnreceivedAcksRequest message. Does not implicitly {@link ibc.core.channel.v1.QueryUnreceivedAcksRequest.verify|verify} messages. * @function encode - * @memberof ibc.core.client.v1.MsgUpgradeClient + * @memberof ibc.core.channel.v1.QueryUnreceivedAcksRequest * @static - * @param {ibc.core.client.v1.IMsgUpgradeClient} message MsgUpgradeClient message or plain object to encode + * @param {ibc.core.channel.v1.IQueryUnreceivedAcksRequest} message QueryUnreceivedAcksRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgUpgradeClient.encode = function encode(message, writer) { + QueryUnreceivedAcksRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.client_id != null && Object.hasOwnProperty.call(message, "client_id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.client_id); - if (message.client_state != null && Object.hasOwnProperty.call(message, "client_state")) - $root.google.protobuf.Any.encode(message.client_state, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.consensus_state != null && Object.hasOwnProperty.call(message, "consensus_state")) - $root.google.protobuf.Any.encode(message.consensus_state, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.proof_upgrade_client != null && Object.hasOwnProperty.call(message, "proof_upgrade_client")) - writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.proof_upgrade_client); - if (message.proof_upgrade_consensus_state != null && Object.hasOwnProperty.call(message, "proof_upgrade_consensus_state")) - writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.proof_upgrade_consensus_state); - if (message.signer != null && Object.hasOwnProperty.call(message, "signer")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.signer); + if (message.port_id != null && Object.hasOwnProperty.call(message, "port_id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.port_id); + if (message.channel_id != null && Object.hasOwnProperty.call(message, "channel_id")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.channel_id); + if (message.packet_ack_sequences != null && message.packet_ack_sequences.length) { + writer.uint32(/* id 3, wireType 2 =*/26).fork(); + for (var i = 0; i < message.packet_ack_sequences.length; ++i) + writer.uint64(message.packet_ack_sequences[i]); + writer.ldelim(); + } return writer; }; /** - * Encodes the specified MsgUpgradeClient message, length delimited. Does not implicitly {@link ibc.core.client.v1.MsgUpgradeClient.verify|verify} messages. + * Encodes the specified QueryUnreceivedAcksRequest message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryUnreceivedAcksRequest.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.client.v1.MsgUpgradeClient + * @memberof ibc.core.channel.v1.QueryUnreceivedAcksRequest * @static - * @param {ibc.core.client.v1.IMsgUpgradeClient} message MsgUpgradeClient message or plain object to encode + * @param {ibc.core.channel.v1.IQueryUnreceivedAcksRequest} message QueryUnreceivedAcksRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgUpgradeClient.encodeDelimited = function encodeDelimited(message, writer) { + QueryUnreceivedAcksRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MsgUpgradeClient message from the specified reader or buffer. + * Decodes a QueryUnreceivedAcksRequest message from the specified reader or buffer. * @function decode - * @memberof ibc.core.client.v1.MsgUpgradeClient + * @memberof ibc.core.channel.v1.QueryUnreceivedAcksRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.client.v1.MsgUpgradeClient} MsgUpgradeClient + * @returns {ibc.core.channel.v1.QueryUnreceivedAcksRequest} QueryUnreceivedAcksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgUpgradeClient.decode = function decode(reader, length) { + QueryUnreceivedAcksRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.MsgUpgradeClient(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.QueryUnreceivedAcksRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.client_id = reader.string(); + message.port_id = reader.string(); break; case 2: - message.client_state = $root.google.protobuf.Any.decode(reader, reader.uint32()); + message.channel_id = reader.string(); break; case 3: - message.consensus_state = $root.google.protobuf.Any.decode(reader, reader.uint32()); - break; - case 4: - message.proof_upgrade_client = reader.bytes(); - break; - case 5: - message.proof_upgrade_consensus_state = reader.bytes(); - break; - case 6: - message.signer = reader.string(); + if (!(message.packet_ack_sequences && message.packet_ack_sequences.length)) + message.packet_ack_sequences = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.packet_ack_sequences.push(reader.uint64()); + } else + message.packet_ack_sequences.push(reader.uint64()); break; default: reader.skipType(tag & 7); @@ -51123,175 +57444,149 @@ }; /** - * Decodes a MsgUpgradeClient message from the specified reader or buffer, length delimited. + * Decodes a QueryUnreceivedAcksRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.client.v1.MsgUpgradeClient + * @memberof ibc.core.channel.v1.QueryUnreceivedAcksRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.client.v1.MsgUpgradeClient} MsgUpgradeClient + * @returns {ibc.core.channel.v1.QueryUnreceivedAcksRequest} QueryUnreceivedAcksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgUpgradeClient.decodeDelimited = function decodeDelimited(reader) { + QueryUnreceivedAcksRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MsgUpgradeClient message. + * Verifies a QueryUnreceivedAcksRequest message. * @function verify - * @memberof ibc.core.client.v1.MsgUpgradeClient + * @memberof ibc.core.channel.v1.QueryUnreceivedAcksRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MsgUpgradeClient.verify = function verify(message) { + QueryUnreceivedAcksRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.client_id != null && message.hasOwnProperty("client_id")) - if (!$util.isString(message.client_id)) - return "client_id: string expected"; - if (message.client_state != null && message.hasOwnProperty("client_state")) { - var error = $root.google.protobuf.Any.verify(message.client_state); - if (error) - return "client_state." + error; - } - if (message.consensus_state != null && message.hasOwnProperty("consensus_state")) { - var error = $root.google.protobuf.Any.verify(message.consensus_state); - if (error) - return "consensus_state." + error; + if (message.port_id != null && message.hasOwnProperty("port_id")) + if (!$util.isString(message.port_id)) + return "port_id: string expected"; + if (message.channel_id != null && message.hasOwnProperty("channel_id")) + if (!$util.isString(message.channel_id)) + return "channel_id: string expected"; + if (message.packet_ack_sequences != null && message.hasOwnProperty("packet_ack_sequences")) { + if (!Array.isArray(message.packet_ack_sequences)) + return "packet_ack_sequences: array expected"; + for (var i = 0; i < message.packet_ack_sequences.length; ++i) + if (!$util.isInteger(message.packet_ack_sequences[i]) && !(message.packet_ack_sequences[i] && $util.isInteger(message.packet_ack_sequences[i].low) && $util.isInteger(message.packet_ack_sequences[i].high))) + return "packet_ack_sequences: integer|Long[] expected"; } - if (message.proof_upgrade_client != null && message.hasOwnProperty("proof_upgrade_client")) - if (!(message.proof_upgrade_client && typeof message.proof_upgrade_client.length === "number" || $util.isString(message.proof_upgrade_client))) - return "proof_upgrade_client: buffer expected"; - if (message.proof_upgrade_consensus_state != null && message.hasOwnProperty("proof_upgrade_consensus_state")) - if (!(message.proof_upgrade_consensus_state && typeof message.proof_upgrade_consensus_state.length === "number" || $util.isString(message.proof_upgrade_consensus_state))) - return "proof_upgrade_consensus_state: buffer expected"; - if (message.signer != null && message.hasOwnProperty("signer")) - if (!$util.isString(message.signer)) - return "signer: string expected"; return null; }; /** - * Creates a MsgUpgradeClient message from a plain object. Also converts values to their respective internal types. + * Creates a QueryUnreceivedAcksRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.client.v1.MsgUpgradeClient + * @memberof ibc.core.channel.v1.QueryUnreceivedAcksRequest * @static * @param {Object.} object Plain object - * @returns {ibc.core.client.v1.MsgUpgradeClient} MsgUpgradeClient + * @returns {ibc.core.channel.v1.QueryUnreceivedAcksRequest} QueryUnreceivedAcksRequest */ - MsgUpgradeClient.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.client.v1.MsgUpgradeClient) + QueryUnreceivedAcksRequest.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.channel.v1.QueryUnreceivedAcksRequest) return object; - var message = new $root.ibc.core.client.v1.MsgUpgradeClient(); - if (object.client_id != null) - message.client_id = String(object.client_id); - if (object.client_state != null) { - if (typeof object.client_state !== "object") - throw TypeError(".ibc.core.client.v1.MsgUpgradeClient.client_state: object expected"); - message.client_state = $root.google.protobuf.Any.fromObject(object.client_state); - } - if (object.consensus_state != null) { - if (typeof object.consensus_state !== "object") - throw TypeError(".ibc.core.client.v1.MsgUpgradeClient.consensus_state: object expected"); - message.consensus_state = $root.google.protobuf.Any.fromObject(object.consensus_state); + var message = new $root.ibc.core.channel.v1.QueryUnreceivedAcksRequest(); + if (object.port_id != null) + message.port_id = String(object.port_id); + if (object.channel_id != null) + message.channel_id = String(object.channel_id); + if (object.packet_ack_sequences) { + if (!Array.isArray(object.packet_ack_sequences)) + throw TypeError(".ibc.core.channel.v1.QueryUnreceivedAcksRequest.packet_ack_sequences: array expected"); + message.packet_ack_sequences = []; + for (var i = 0; i < object.packet_ack_sequences.length; ++i) + if ($util.Long) + (message.packet_ack_sequences[i] = $util.Long.fromValue(object.packet_ack_sequences[i])).unsigned = true; + else if (typeof object.packet_ack_sequences[i] === "string") + message.packet_ack_sequences[i] = parseInt(object.packet_ack_sequences[i], 10); + else if (typeof object.packet_ack_sequences[i] === "number") + message.packet_ack_sequences[i] = object.packet_ack_sequences[i]; + else if (typeof object.packet_ack_sequences[i] === "object") + message.packet_ack_sequences[i] = new $util.LongBits(object.packet_ack_sequences[i].low >>> 0, object.packet_ack_sequences[i].high >>> 0).toNumber(true); } - if (object.proof_upgrade_client != null) - if (typeof object.proof_upgrade_client === "string") - $util.base64.decode(object.proof_upgrade_client, message.proof_upgrade_client = $util.newBuffer($util.base64.length(object.proof_upgrade_client)), 0); - else if (object.proof_upgrade_client.length) - message.proof_upgrade_client = object.proof_upgrade_client; - if (object.proof_upgrade_consensus_state != null) - if (typeof object.proof_upgrade_consensus_state === "string") - $util.base64.decode(object.proof_upgrade_consensus_state, message.proof_upgrade_consensus_state = $util.newBuffer($util.base64.length(object.proof_upgrade_consensus_state)), 0); - else if (object.proof_upgrade_consensus_state.length) - message.proof_upgrade_consensus_state = object.proof_upgrade_consensus_state; - if (object.signer != null) - message.signer = String(object.signer); return message; }; /** - * Creates a plain object from a MsgUpgradeClient message. Also converts values to other types if specified. + * Creates a plain object from a QueryUnreceivedAcksRequest message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.client.v1.MsgUpgradeClient + * @memberof ibc.core.channel.v1.QueryUnreceivedAcksRequest * @static - * @param {ibc.core.client.v1.MsgUpgradeClient} message MsgUpgradeClient + * @param {ibc.core.channel.v1.QueryUnreceivedAcksRequest} message QueryUnreceivedAcksRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MsgUpgradeClient.toObject = function toObject(message, options) { + QueryUnreceivedAcksRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.packet_ack_sequences = []; if (options.defaults) { - object.client_id = ""; - object.client_state = null; - object.consensus_state = null; - if (options.bytes === String) - object.proof_upgrade_client = ""; - else { - object.proof_upgrade_client = []; - if (options.bytes !== Array) - object.proof_upgrade_client = $util.newBuffer(object.proof_upgrade_client); - } - if (options.bytes === String) - object.proof_upgrade_consensus_state = ""; - else { - object.proof_upgrade_consensus_state = []; - if (options.bytes !== Array) - object.proof_upgrade_consensus_state = $util.newBuffer(object.proof_upgrade_consensus_state); - } - object.signer = ""; + object.port_id = ""; + object.channel_id = ""; + } + if (message.port_id != null && message.hasOwnProperty("port_id")) + object.port_id = message.port_id; + if (message.channel_id != null && message.hasOwnProperty("channel_id")) + object.channel_id = message.channel_id; + if (message.packet_ack_sequences && message.packet_ack_sequences.length) { + object.packet_ack_sequences = []; + for (var j = 0; j < message.packet_ack_sequences.length; ++j) + if (typeof message.packet_ack_sequences[j] === "number") + object.packet_ack_sequences[j] = options.longs === String ? String(message.packet_ack_sequences[j]) : message.packet_ack_sequences[j]; + else + object.packet_ack_sequences[j] = options.longs === String ? $util.Long.prototype.toString.call(message.packet_ack_sequences[j]) : options.longs === Number ? new $util.LongBits(message.packet_ack_sequences[j].low >>> 0, message.packet_ack_sequences[j].high >>> 0).toNumber(true) : message.packet_ack_sequences[j]; } - if (message.client_id != null && message.hasOwnProperty("client_id")) - object.client_id = message.client_id; - if (message.client_state != null && message.hasOwnProperty("client_state")) - object.client_state = $root.google.protobuf.Any.toObject(message.client_state, options); - if (message.consensus_state != null && message.hasOwnProperty("consensus_state")) - object.consensus_state = $root.google.protobuf.Any.toObject(message.consensus_state, options); - if (message.proof_upgrade_client != null && message.hasOwnProperty("proof_upgrade_client")) - object.proof_upgrade_client = options.bytes === String ? $util.base64.encode(message.proof_upgrade_client, 0, message.proof_upgrade_client.length) : options.bytes === Array ? Array.prototype.slice.call(message.proof_upgrade_client) : message.proof_upgrade_client; - if (message.proof_upgrade_consensus_state != null && message.hasOwnProperty("proof_upgrade_consensus_state")) - object.proof_upgrade_consensus_state = options.bytes === String ? $util.base64.encode(message.proof_upgrade_consensus_state, 0, message.proof_upgrade_consensus_state.length) : options.bytes === Array ? Array.prototype.slice.call(message.proof_upgrade_consensus_state) : message.proof_upgrade_consensus_state; - if (message.signer != null && message.hasOwnProperty("signer")) - object.signer = message.signer; return object; }; /** - * Converts this MsgUpgradeClient to JSON. + * Converts this QueryUnreceivedAcksRequest to JSON. * @function toJSON - * @memberof ibc.core.client.v1.MsgUpgradeClient + * @memberof ibc.core.channel.v1.QueryUnreceivedAcksRequest * @instance * @returns {Object.} JSON object */ - MsgUpgradeClient.prototype.toJSON = function toJSON() { + QueryUnreceivedAcksRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MsgUpgradeClient; + return QueryUnreceivedAcksRequest; })(); - v1.MsgUpgradeClientResponse = (function() { + v1.QueryUnreceivedAcksResponse = (function() { /** - * Properties of a MsgUpgradeClientResponse. - * @memberof ibc.core.client.v1 - * @interface IMsgUpgradeClientResponse + * Properties of a QueryUnreceivedAcksResponse. + * @memberof ibc.core.channel.v1 + * @interface IQueryUnreceivedAcksResponse + * @property {Array.|null} [sequences] QueryUnreceivedAcksResponse sequences + * @property {ibc.core.client.v1.IHeight|null} [height] QueryUnreceivedAcksResponse height */ /** - * Constructs a new MsgUpgradeClientResponse. - * @memberof ibc.core.client.v1 - * @classdesc Represents a MsgUpgradeClientResponse. - * @implements IMsgUpgradeClientResponse + * Constructs a new QueryUnreceivedAcksResponse. + * @memberof ibc.core.channel.v1 + * @classdesc Represents a QueryUnreceivedAcksResponse. + * @implements IQueryUnreceivedAcksResponse * @constructor - * @param {ibc.core.client.v1.IMsgUpgradeClientResponse=} [properties] Properties to set + * @param {ibc.core.channel.v1.IQueryUnreceivedAcksResponse=} [properties] Properties to set */ - function MsgUpgradeClientResponse(properties) { + function QueryUnreceivedAcksResponse(properties) { + this.sequences = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -51299,51 +57594,88 @@ } /** - * Encodes the specified MsgUpgradeClientResponse message. Does not implicitly {@link ibc.core.client.v1.MsgUpgradeClientResponse.verify|verify} messages. + * QueryUnreceivedAcksResponse sequences. + * @member {Array.} sequences + * @memberof ibc.core.channel.v1.QueryUnreceivedAcksResponse + * @instance + */ + QueryUnreceivedAcksResponse.prototype.sequences = $util.emptyArray; + + /** + * QueryUnreceivedAcksResponse height. + * @member {ibc.core.client.v1.IHeight|null|undefined} height + * @memberof ibc.core.channel.v1.QueryUnreceivedAcksResponse + * @instance + */ + QueryUnreceivedAcksResponse.prototype.height = null; + + /** + * Encodes the specified QueryUnreceivedAcksResponse message. Does not implicitly {@link ibc.core.channel.v1.QueryUnreceivedAcksResponse.verify|verify} messages. * @function encode - * @memberof ibc.core.client.v1.MsgUpgradeClientResponse + * @memberof ibc.core.channel.v1.QueryUnreceivedAcksResponse * @static - * @param {ibc.core.client.v1.IMsgUpgradeClientResponse} message MsgUpgradeClientResponse message or plain object to encode + * @param {ibc.core.channel.v1.IQueryUnreceivedAcksResponse} message QueryUnreceivedAcksResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgUpgradeClientResponse.encode = function encode(message, writer) { + QueryUnreceivedAcksResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.sequences != null && message.sequences.length) { + writer.uint32(/* id 1, wireType 2 =*/10).fork(); + for (var i = 0; i < message.sequences.length; ++i) + writer.uint64(message.sequences[i]); + writer.ldelim(); + } + if (message.height != null && Object.hasOwnProperty.call(message, "height")) + $root.ibc.core.client.v1.Height.encode(message.height, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified MsgUpgradeClientResponse message, length delimited. Does not implicitly {@link ibc.core.client.v1.MsgUpgradeClientResponse.verify|verify} messages. + * Encodes the specified QueryUnreceivedAcksResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryUnreceivedAcksResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.client.v1.MsgUpgradeClientResponse + * @memberof ibc.core.channel.v1.QueryUnreceivedAcksResponse * @static - * @param {ibc.core.client.v1.IMsgUpgradeClientResponse} message MsgUpgradeClientResponse message or plain object to encode + * @param {ibc.core.channel.v1.IQueryUnreceivedAcksResponse} message QueryUnreceivedAcksResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgUpgradeClientResponse.encodeDelimited = function encodeDelimited(message, writer) { + QueryUnreceivedAcksResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MsgUpgradeClientResponse message from the specified reader or buffer. + * Decodes a QueryUnreceivedAcksResponse message from the specified reader or buffer. * @function decode - * @memberof ibc.core.client.v1.MsgUpgradeClientResponse + * @memberof ibc.core.channel.v1.QueryUnreceivedAcksResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.client.v1.MsgUpgradeClientResponse} MsgUpgradeClientResponse + * @returns {ibc.core.channel.v1.QueryUnreceivedAcksResponse} QueryUnreceivedAcksResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgUpgradeClientResponse.decode = function decode(reader, length) { + QueryUnreceivedAcksResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.MsgUpgradeClientResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.QueryUnreceivedAcksResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: + if (!(message.sequences && message.sequences.length)) + message.sequences = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.sequences.push(reader.uint64()); + } else + message.sequences.push(reader.uint64()); + break; + case 2: + message.height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); + break; default: reader.skipType(tag & 7); break; @@ -51353,96 +57685,144 @@ }; /** - * Decodes a MsgUpgradeClientResponse message from the specified reader or buffer, length delimited. + * Decodes a QueryUnreceivedAcksResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.client.v1.MsgUpgradeClientResponse + * @memberof ibc.core.channel.v1.QueryUnreceivedAcksResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.client.v1.MsgUpgradeClientResponse} MsgUpgradeClientResponse + * @returns {ibc.core.channel.v1.QueryUnreceivedAcksResponse} QueryUnreceivedAcksResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgUpgradeClientResponse.decodeDelimited = function decodeDelimited(reader) { + QueryUnreceivedAcksResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MsgUpgradeClientResponse message. + * Verifies a QueryUnreceivedAcksResponse message. * @function verify - * @memberof ibc.core.client.v1.MsgUpgradeClientResponse + * @memberof ibc.core.channel.v1.QueryUnreceivedAcksResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MsgUpgradeClientResponse.verify = function verify(message) { + QueryUnreceivedAcksResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.sequences != null && message.hasOwnProperty("sequences")) { + if (!Array.isArray(message.sequences)) + return "sequences: array expected"; + for (var i = 0; i < message.sequences.length; ++i) + if (!$util.isInteger(message.sequences[i]) && !(message.sequences[i] && $util.isInteger(message.sequences[i].low) && $util.isInteger(message.sequences[i].high))) + return "sequences: integer|Long[] expected"; + } + if (message.height != null && message.hasOwnProperty("height")) { + var error = $root.ibc.core.client.v1.Height.verify(message.height); + if (error) + return "height." + error; + } return null; }; /** - * Creates a MsgUpgradeClientResponse message from a plain object. Also converts values to their respective internal types. + * Creates a QueryUnreceivedAcksResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.client.v1.MsgUpgradeClientResponse + * @memberof ibc.core.channel.v1.QueryUnreceivedAcksResponse * @static * @param {Object.} object Plain object - * @returns {ibc.core.client.v1.MsgUpgradeClientResponse} MsgUpgradeClientResponse + * @returns {ibc.core.channel.v1.QueryUnreceivedAcksResponse} QueryUnreceivedAcksResponse */ - MsgUpgradeClientResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.client.v1.MsgUpgradeClientResponse) + QueryUnreceivedAcksResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.channel.v1.QueryUnreceivedAcksResponse) return object; - return new $root.ibc.core.client.v1.MsgUpgradeClientResponse(); + var message = new $root.ibc.core.channel.v1.QueryUnreceivedAcksResponse(); + if (object.sequences) { + if (!Array.isArray(object.sequences)) + throw TypeError(".ibc.core.channel.v1.QueryUnreceivedAcksResponse.sequences: array expected"); + message.sequences = []; + for (var i = 0; i < object.sequences.length; ++i) + if ($util.Long) + (message.sequences[i] = $util.Long.fromValue(object.sequences[i])).unsigned = true; + else if (typeof object.sequences[i] === "string") + message.sequences[i] = parseInt(object.sequences[i], 10); + else if (typeof object.sequences[i] === "number") + message.sequences[i] = object.sequences[i]; + else if (typeof object.sequences[i] === "object") + message.sequences[i] = new $util.LongBits(object.sequences[i].low >>> 0, object.sequences[i].high >>> 0).toNumber(true); + } + if (object.height != null) { + if (typeof object.height !== "object") + throw TypeError(".ibc.core.channel.v1.QueryUnreceivedAcksResponse.height: object expected"); + message.height = $root.ibc.core.client.v1.Height.fromObject(object.height); + } + return message; }; /** - * Creates a plain object from a MsgUpgradeClientResponse message. Also converts values to other types if specified. + * Creates a plain object from a QueryUnreceivedAcksResponse message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.client.v1.MsgUpgradeClientResponse + * @memberof ibc.core.channel.v1.QueryUnreceivedAcksResponse * @static - * @param {ibc.core.client.v1.MsgUpgradeClientResponse} message MsgUpgradeClientResponse + * @param {ibc.core.channel.v1.QueryUnreceivedAcksResponse} message QueryUnreceivedAcksResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MsgUpgradeClientResponse.toObject = function toObject() { - return {}; + QueryUnreceivedAcksResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.sequences = []; + if (options.defaults) + object.height = null; + if (message.sequences && message.sequences.length) { + object.sequences = []; + for (var j = 0; j < message.sequences.length; ++j) + if (typeof message.sequences[j] === "number") + object.sequences[j] = options.longs === String ? String(message.sequences[j]) : message.sequences[j]; + else + object.sequences[j] = options.longs === String ? $util.Long.prototype.toString.call(message.sequences[j]) : options.longs === Number ? new $util.LongBits(message.sequences[j].low >>> 0, message.sequences[j].high >>> 0).toNumber(true) : message.sequences[j]; + } + if (message.height != null && message.hasOwnProperty("height")) + object.height = $root.ibc.core.client.v1.Height.toObject(message.height, options); + return object; }; /** - * Converts this MsgUpgradeClientResponse to JSON. + * Converts this QueryUnreceivedAcksResponse to JSON. * @function toJSON - * @memberof ibc.core.client.v1.MsgUpgradeClientResponse + * @memberof ibc.core.channel.v1.QueryUnreceivedAcksResponse * @instance * @returns {Object.} JSON object */ - MsgUpgradeClientResponse.prototype.toJSON = function toJSON() { + QueryUnreceivedAcksResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MsgUpgradeClientResponse; + return QueryUnreceivedAcksResponse; })(); - - v1.MsgSubmitMisbehaviour = (function() { - - /** - * Properties of a MsgSubmitMisbehaviour. - * @memberof ibc.core.client.v1 - * @interface IMsgSubmitMisbehaviour - * @property {string|null} [client_id] MsgSubmitMisbehaviour client_id - * @property {google.protobuf.IAny|null} [misbehaviour] MsgSubmitMisbehaviour misbehaviour - * @property {string|null} [signer] MsgSubmitMisbehaviour signer + + v1.QueryNextSequenceReceiveRequest = (function() { + + /** + * Properties of a QueryNextSequenceReceiveRequest. + * @memberof ibc.core.channel.v1 + * @interface IQueryNextSequenceReceiveRequest + * @property {string|null} [port_id] QueryNextSequenceReceiveRequest port_id + * @property {string|null} [channel_id] QueryNextSequenceReceiveRequest channel_id */ /** - * Constructs a new MsgSubmitMisbehaviour. - * @memberof ibc.core.client.v1 - * @classdesc Represents a MsgSubmitMisbehaviour. - * @implements IMsgSubmitMisbehaviour + * Constructs a new QueryNextSequenceReceiveRequest. + * @memberof ibc.core.channel.v1 + * @classdesc Represents a QueryNextSequenceReceiveRequest. + * @implements IQueryNextSequenceReceiveRequest * @constructor - * @param {ibc.core.client.v1.IMsgSubmitMisbehaviour=} [properties] Properties to set + * @param {ibc.core.channel.v1.IQueryNextSequenceReceiveRequest=} [properties] Properties to set */ - function MsgSubmitMisbehaviour(properties) { + function QueryNextSequenceReceiveRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -51450,89 +57830,76 @@ } /** - * MsgSubmitMisbehaviour client_id. - * @member {string} client_id - * @memberof ibc.core.client.v1.MsgSubmitMisbehaviour - * @instance - */ - MsgSubmitMisbehaviour.prototype.client_id = ""; - - /** - * MsgSubmitMisbehaviour misbehaviour. - * @member {google.protobuf.IAny|null|undefined} misbehaviour - * @memberof ibc.core.client.v1.MsgSubmitMisbehaviour + * QueryNextSequenceReceiveRequest port_id. + * @member {string} port_id + * @memberof ibc.core.channel.v1.QueryNextSequenceReceiveRequest * @instance */ - MsgSubmitMisbehaviour.prototype.misbehaviour = null; + QueryNextSequenceReceiveRequest.prototype.port_id = ""; /** - * MsgSubmitMisbehaviour signer. - * @member {string} signer - * @memberof ibc.core.client.v1.MsgSubmitMisbehaviour + * QueryNextSequenceReceiveRequest channel_id. + * @member {string} channel_id + * @memberof ibc.core.channel.v1.QueryNextSequenceReceiveRequest * @instance */ - MsgSubmitMisbehaviour.prototype.signer = ""; + QueryNextSequenceReceiveRequest.prototype.channel_id = ""; /** - * Encodes the specified MsgSubmitMisbehaviour message. Does not implicitly {@link ibc.core.client.v1.MsgSubmitMisbehaviour.verify|verify} messages. + * Encodes the specified QueryNextSequenceReceiveRequest message. Does not implicitly {@link ibc.core.channel.v1.QueryNextSequenceReceiveRequest.verify|verify} messages. * @function encode - * @memberof ibc.core.client.v1.MsgSubmitMisbehaviour + * @memberof ibc.core.channel.v1.QueryNextSequenceReceiveRequest * @static - * @param {ibc.core.client.v1.IMsgSubmitMisbehaviour} message MsgSubmitMisbehaviour message or plain object to encode + * @param {ibc.core.channel.v1.IQueryNextSequenceReceiveRequest} message QueryNextSequenceReceiveRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgSubmitMisbehaviour.encode = function encode(message, writer) { + QueryNextSequenceReceiveRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.client_id != null && Object.hasOwnProperty.call(message, "client_id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.client_id); - if (message.misbehaviour != null && Object.hasOwnProperty.call(message, "misbehaviour")) - $root.google.protobuf.Any.encode(message.misbehaviour, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.signer != null && Object.hasOwnProperty.call(message, "signer")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.signer); + if (message.port_id != null && Object.hasOwnProperty.call(message, "port_id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.port_id); + if (message.channel_id != null && Object.hasOwnProperty.call(message, "channel_id")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.channel_id); return writer; }; /** - * Encodes the specified MsgSubmitMisbehaviour message, length delimited. Does not implicitly {@link ibc.core.client.v1.MsgSubmitMisbehaviour.verify|verify} messages. + * Encodes the specified QueryNextSequenceReceiveRequest message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryNextSequenceReceiveRequest.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.client.v1.MsgSubmitMisbehaviour + * @memberof ibc.core.channel.v1.QueryNextSequenceReceiveRequest * @static - * @param {ibc.core.client.v1.IMsgSubmitMisbehaviour} message MsgSubmitMisbehaviour message or plain object to encode + * @param {ibc.core.channel.v1.IQueryNextSequenceReceiveRequest} message QueryNextSequenceReceiveRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgSubmitMisbehaviour.encodeDelimited = function encodeDelimited(message, writer) { + QueryNextSequenceReceiveRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MsgSubmitMisbehaviour message from the specified reader or buffer. + * Decodes a QueryNextSequenceReceiveRequest message from the specified reader or buffer. * @function decode - * @memberof ibc.core.client.v1.MsgSubmitMisbehaviour + * @memberof ibc.core.channel.v1.QueryNextSequenceReceiveRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.client.v1.MsgSubmitMisbehaviour} MsgSubmitMisbehaviour + * @returns {ibc.core.channel.v1.QueryNextSequenceReceiveRequest} QueryNextSequenceReceiveRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgSubmitMisbehaviour.decode = function decode(reader, length) { + QueryNextSequenceReceiveRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.MsgSubmitMisbehaviour(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.QueryNextSequenceReceiveRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.client_id = reader.string(); + message.port_id = reader.string(); break; case 2: - message.misbehaviour = $root.google.protobuf.Any.decode(reader, reader.uint32()); - break; - case 3: - message.signer = reader.string(); + message.channel_id = reader.string(); break; default: reader.skipType(tag & 7); @@ -51543,128 +57910,118 @@ }; /** - * Decodes a MsgSubmitMisbehaviour message from the specified reader or buffer, length delimited. + * Decodes a QueryNextSequenceReceiveRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.client.v1.MsgSubmitMisbehaviour + * @memberof ibc.core.channel.v1.QueryNextSequenceReceiveRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.client.v1.MsgSubmitMisbehaviour} MsgSubmitMisbehaviour + * @returns {ibc.core.channel.v1.QueryNextSequenceReceiveRequest} QueryNextSequenceReceiveRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgSubmitMisbehaviour.decodeDelimited = function decodeDelimited(reader) { + QueryNextSequenceReceiveRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MsgSubmitMisbehaviour message. + * Verifies a QueryNextSequenceReceiveRequest message. * @function verify - * @memberof ibc.core.client.v1.MsgSubmitMisbehaviour + * @memberof ibc.core.channel.v1.QueryNextSequenceReceiveRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MsgSubmitMisbehaviour.verify = function verify(message) { + QueryNextSequenceReceiveRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.client_id != null && message.hasOwnProperty("client_id")) - if (!$util.isString(message.client_id)) - return "client_id: string expected"; - if (message.misbehaviour != null && message.hasOwnProperty("misbehaviour")) { - var error = $root.google.protobuf.Any.verify(message.misbehaviour); - if (error) - return "misbehaviour." + error; - } - if (message.signer != null && message.hasOwnProperty("signer")) - if (!$util.isString(message.signer)) - return "signer: string expected"; + if (message.port_id != null && message.hasOwnProperty("port_id")) + if (!$util.isString(message.port_id)) + return "port_id: string expected"; + if (message.channel_id != null && message.hasOwnProperty("channel_id")) + if (!$util.isString(message.channel_id)) + return "channel_id: string expected"; return null; }; /** - * Creates a MsgSubmitMisbehaviour message from a plain object. Also converts values to their respective internal types. + * Creates a QueryNextSequenceReceiveRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.client.v1.MsgSubmitMisbehaviour + * @memberof ibc.core.channel.v1.QueryNextSequenceReceiveRequest * @static * @param {Object.} object Plain object - * @returns {ibc.core.client.v1.MsgSubmitMisbehaviour} MsgSubmitMisbehaviour + * @returns {ibc.core.channel.v1.QueryNextSequenceReceiveRequest} QueryNextSequenceReceiveRequest */ - MsgSubmitMisbehaviour.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.client.v1.MsgSubmitMisbehaviour) + QueryNextSequenceReceiveRequest.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.channel.v1.QueryNextSequenceReceiveRequest) return object; - var message = new $root.ibc.core.client.v1.MsgSubmitMisbehaviour(); - if (object.client_id != null) - message.client_id = String(object.client_id); - if (object.misbehaviour != null) { - if (typeof object.misbehaviour !== "object") - throw TypeError(".ibc.core.client.v1.MsgSubmitMisbehaviour.misbehaviour: object expected"); - message.misbehaviour = $root.google.protobuf.Any.fromObject(object.misbehaviour); - } - if (object.signer != null) - message.signer = String(object.signer); + var message = new $root.ibc.core.channel.v1.QueryNextSequenceReceiveRequest(); + if (object.port_id != null) + message.port_id = String(object.port_id); + if (object.channel_id != null) + message.channel_id = String(object.channel_id); return message; }; /** - * Creates a plain object from a MsgSubmitMisbehaviour message. Also converts values to other types if specified. + * Creates a plain object from a QueryNextSequenceReceiveRequest message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.client.v1.MsgSubmitMisbehaviour + * @memberof ibc.core.channel.v1.QueryNextSequenceReceiveRequest * @static - * @param {ibc.core.client.v1.MsgSubmitMisbehaviour} message MsgSubmitMisbehaviour + * @param {ibc.core.channel.v1.QueryNextSequenceReceiveRequest} message QueryNextSequenceReceiveRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MsgSubmitMisbehaviour.toObject = function toObject(message, options) { + QueryNextSequenceReceiveRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.client_id = ""; - object.misbehaviour = null; - object.signer = ""; + object.port_id = ""; + object.channel_id = ""; } - if (message.client_id != null && message.hasOwnProperty("client_id")) - object.client_id = message.client_id; - if (message.misbehaviour != null && message.hasOwnProperty("misbehaviour")) - object.misbehaviour = $root.google.protobuf.Any.toObject(message.misbehaviour, options); - if (message.signer != null && message.hasOwnProperty("signer")) - object.signer = message.signer; + if (message.port_id != null && message.hasOwnProperty("port_id")) + object.port_id = message.port_id; + if (message.channel_id != null && message.hasOwnProperty("channel_id")) + object.channel_id = message.channel_id; return object; }; /** - * Converts this MsgSubmitMisbehaviour to JSON. + * Converts this QueryNextSequenceReceiveRequest to JSON. * @function toJSON - * @memberof ibc.core.client.v1.MsgSubmitMisbehaviour + * @memberof ibc.core.channel.v1.QueryNextSequenceReceiveRequest * @instance * @returns {Object.} JSON object */ - MsgSubmitMisbehaviour.prototype.toJSON = function toJSON() { + QueryNextSequenceReceiveRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MsgSubmitMisbehaviour; + return QueryNextSequenceReceiveRequest; })(); - v1.MsgSubmitMisbehaviourResponse = (function() { + v1.QueryNextSequenceReceiveResponse = (function() { /** - * Properties of a MsgSubmitMisbehaviourResponse. - * @memberof ibc.core.client.v1 - * @interface IMsgSubmitMisbehaviourResponse + * Properties of a QueryNextSequenceReceiveResponse. + * @memberof ibc.core.channel.v1 + * @interface IQueryNextSequenceReceiveResponse + * @property {Long|null} [next_sequence_receive] QueryNextSequenceReceiveResponse next_sequence_receive + * @property {Uint8Array|null} [proof] QueryNextSequenceReceiveResponse proof + * @property {ibc.core.client.v1.IHeight|null} [proof_height] QueryNextSequenceReceiveResponse proof_height */ /** - * Constructs a new MsgSubmitMisbehaviourResponse. - * @memberof ibc.core.client.v1 - * @classdesc Represents a MsgSubmitMisbehaviourResponse. - * @implements IMsgSubmitMisbehaviourResponse + * Constructs a new QueryNextSequenceReceiveResponse. + * @memberof ibc.core.channel.v1 + * @classdesc Represents a QueryNextSequenceReceiveResponse. + * @implements IQueryNextSequenceReceiveResponse * @constructor - * @param {ibc.core.client.v1.IMsgSubmitMisbehaviourResponse=} [properties] Properties to set + * @param {ibc.core.channel.v1.IQueryNextSequenceReceiveResponse=} [properties] Properties to set */ - function MsgSubmitMisbehaviourResponse(properties) { + function QueryNextSequenceReceiveResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -51672,51 +58029,90 @@ } /** - * Encodes the specified MsgSubmitMisbehaviourResponse message. Does not implicitly {@link ibc.core.client.v1.MsgSubmitMisbehaviourResponse.verify|verify} messages. + * QueryNextSequenceReceiveResponse next_sequence_receive. + * @member {Long} next_sequence_receive + * @memberof ibc.core.channel.v1.QueryNextSequenceReceiveResponse + * @instance + */ + QueryNextSequenceReceiveResponse.prototype.next_sequence_receive = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + + /** + * QueryNextSequenceReceiveResponse proof. + * @member {Uint8Array} proof + * @memberof ibc.core.channel.v1.QueryNextSequenceReceiveResponse + * @instance + */ + QueryNextSequenceReceiveResponse.prototype.proof = $util.newBuffer([]); + + /** + * QueryNextSequenceReceiveResponse proof_height. + * @member {ibc.core.client.v1.IHeight|null|undefined} proof_height + * @memberof ibc.core.channel.v1.QueryNextSequenceReceiveResponse + * @instance + */ + QueryNextSequenceReceiveResponse.prototype.proof_height = null; + + /** + * Encodes the specified QueryNextSequenceReceiveResponse message. Does not implicitly {@link ibc.core.channel.v1.QueryNextSequenceReceiveResponse.verify|verify} messages. * @function encode - * @memberof ibc.core.client.v1.MsgSubmitMisbehaviourResponse + * @memberof ibc.core.channel.v1.QueryNextSequenceReceiveResponse * @static - * @param {ibc.core.client.v1.IMsgSubmitMisbehaviourResponse} message MsgSubmitMisbehaviourResponse message or plain object to encode + * @param {ibc.core.channel.v1.IQueryNextSequenceReceiveResponse} message QueryNextSequenceReceiveResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgSubmitMisbehaviourResponse.encode = function encode(message, writer) { + QueryNextSequenceReceiveResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.next_sequence_receive != null && Object.hasOwnProperty.call(message, "next_sequence_receive")) + writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.next_sequence_receive); + if (message.proof != null && Object.hasOwnProperty.call(message, "proof")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.proof); + if (message.proof_height != null && Object.hasOwnProperty.call(message, "proof_height")) + $root.ibc.core.client.v1.Height.encode(message.proof_height, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified MsgSubmitMisbehaviourResponse message, length delimited. Does not implicitly {@link ibc.core.client.v1.MsgSubmitMisbehaviourResponse.verify|verify} messages. + * Encodes the specified QueryNextSequenceReceiveResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryNextSequenceReceiveResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.client.v1.MsgSubmitMisbehaviourResponse + * @memberof ibc.core.channel.v1.QueryNextSequenceReceiveResponse * @static - * @param {ibc.core.client.v1.IMsgSubmitMisbehaviourResponse} message MsgSubmitMisbehaviourResponse message or plain object to encode + * @param {ibc.core.channel.v1.IQueryNextSequenceReceiveResponse} message QueryNextSequenceReceiveResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgSubmitMisbehaviourResponse.encodeDelimited = function encodeDelimited(message, writer) { + QueryNextSequenceReceiveResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MsgSubmitMisbehaviourResponse message from the specified reader or buffer. + * Decodes a QueryNextSequenceReceiveResponse message from the specified reader or buffer. * @function decode - * @memberof ibc.core.client.v1.MsgSubmitMisbehaviourResponse + * @memberof ibc.core.channel.v1.QueryNextSequenceReceiveResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.client.v1.MsgSubmitMisbehaviourResponse} MsgSubmitMisbehaviourResponse + * @returns {ibc.core.channel.v1.QueryNextSequenceReceiveResponse} QueryNextSequenceReceiveResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgSubmitMisbehaviourResponse.decode = function decode(reader, length) { + QueryNextSequenceReceiveResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.MsgSubmitMisbehaviourResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.QueryNextSequenceReceiveResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: + message.next_sequence_receive = reader.uint64(); + break; + case 2: + message.proof = reader.bytes(); + break; + case 3: + message.proof_height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); + break; default: reader.skipType(tag & 7); break; @@ -51726,476 +58122,342 @@ }; /** - * Decodes a MsgSubmitMisbehaviourResponse message from the specified reader or buffer, length delimited. + * Decodes a QueryNextSequenceReceiveResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.client.v1.MsgSubmitMisbehaviourResponse + * @memberof ibc.core.channel.v1.QueryNextSequenceReceiveResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.client.v1.MsgSubmitMisbehaviourResponse} MsgSubmitMisbehaviourResponse + * @returns {ibc.core.channel.v1.QueryNextSequenceReceiveResponse} QueryNextSequenceReceiveResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgSubmitMisbehaviourResponse.decodeDelimited = function decodeDelimited(reader) { + QueryNextSequenceReceiveResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MsgSubmitMisbehaviourResponse message. + * Verifies a QueryNextSequenceReceiveResponse message. * @function verify - * @memberof ibc.core.client.v1.MsgSubmitMisbehaviourResponse + * @memberof ibc.core.channel.v1.QueryNextSequenceReceiveResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MsgSubmitMisbehaviourResponse.verify = function verify(message) { + QueryNextSequenceReceiveResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - return null; - }; - - /** - * Creates a MsgSubmitMisbehaviourResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof ibc.core.client.v1.MsgSubmitMisbehaviourResponse - * @static - * @param {Object.} object Plain object - * @returns {ibc.core.client.v1.MsgSubmitMisbehaviourResponse} MsgSubmitMisbehaviourResponse - */ - MsgSubmitMisbehaviourResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.client.v1.MsgSubmitMisbehaviourResponse) - return object; - return new $root.ibc.core.client.v1.MsgSubmitMisbehaviourResponse(); - }; - - /** - * Creates a plain object from a MsgSubmitMisbehaviourResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof ibc.core.client.v1.MsgSubmitMisbehaviourResponse - * @static - * @param {ibc.core.client.v1.MsgSubmitMisbehaviourResponse} message MsgSubmitMisbehaviourResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - MsgSubmitMisbehaviourResponse.toObject = function toObject() { - return {}; - }; - - /** - * Converts this MsgSubmitMisbehaviourResponse to JSON. - * @function toJSON - * @memberof ibc.core.client.v1.MsgSubmitMisbehaviourResponse - * @instance - * @returns {Object.} JSON object - */ - MsgSubmitMisbehaviourResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return MsgSubmitMisbehaviourResponse; - })(); - - v1.Query = (function() { - - /** - * Constructs a new Query service. - * @memberof ibc.core.client.v1 - * @classdesc Represents a Query - * @extends $protobuf.rpc.Service - * @constructor - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - */ - function Query(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } - - (Query.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Query; - - /** - * Callback as used by {@link ibc.core.client.v1.Query#clientState}. - * @memberof ibc.core.client.v1.Query - * @typedef ClientStateCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.core.client.v1.QueryClientStateResponse} [response] QueryClientStateResponse - */ - - /** - * Calls ClientState. - * @function clientState - * @memberof ibc.core.client.v1.Query - * @instance - * @param {ibc.core.client.v1.IQueryClientStateRequest} request QueryClientStateRequest message or plain object - * @param {ibc.core.client.v1.Query.ClientStateCallback} callback Node-style callback called with the error, if any, and QueryClientStateResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Query.prototype.clientState = function clientState(request, callback) { - return this.rpcCall(clientState, $root.ibc.core.client.v1.QueryClientStateRequest, $root.ibc.core.client.v1.QueryClientStateResponse, request, callback); - }, "name", { value: "ClientState" }); - - /** - * Calls ClientState. - * @function clientState - * @memberof ibc.core.client.v1.Query - * @instance - * @param {ibc.core.client.v1.IQueryClientStateRequest} request QueryClientStateRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link ibc.core.client.v1.Query#clientStates}. - * @memberof ibc.core.client.v1.Query - * @typedef ClientStatesCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.core.client.v1.QueryClientStatesResponse} [response] QueryClientStatesResponse - */ - - /** - * Calls ClientStates. - * @function clientStates - * @memberof ibc.core.client.v1.Query - * @instance - * @param {ibc.core.client.v1.IQueryClientStatesRequest} request QueryClientStatesRequest message or plain object - * @param {ibc.core.client.v1.Query.ClientStatesCallback} callback Node-style callback called with the error, if any, and QueryClientStatesResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Query.prototype.clientStates = function clientStates(request, callback) { - return this.rpcCall(clientStates, $root.ibc.core.client.v1.QueryClientStatesRequest, $root.ibc.core.client.v1.QueryClientStatesResponse, request, callback); - }, "name", { value: "ClientStates" }); - - /** - * Calls ClientStates. - * @function clientStates - * @memberof ibc.core.client.v1.Query - * @instance - * @param {ibc.core.client.v1.IQueryClientStatesRequest} request QueryClientStatesRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link ibc.core.client.v1.Query#consensusState}. - * @memberof ibc.core.client.v1.Query - * @typedef ConsensusStateCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.core.client.v1.QueryConsensusStateResponse} [response] QueryConsensusStateResponse - */ - - /** - * Calls ConsensusState. - * @function consensusState - * @memberof ibc.core.client.v1.Query - * @instance - * @param {ibc.core.client.v1.IQueryConsensusStateRequest} request QueryConsensusStateRequest message or plain object - * @param {ibc.core.client.v1.Query.ConsensusStateCallback} callback Node-style callback called with the error, if any, and QueryConsensusStateResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Query.prototype.consensusState = function consensusState(request, callback) { - return this.rpcCall(consensusState, $root.ibc.core.client.v1.QueryConsensusStateRequest, $root.ibc.core.client.v1.QueryConsensusStateResponse, request, callback); - }, "name", { value: "ConsensusState" }); - - /** - * Calls ConsensusState. - * @function consensusState - * @memberof ibc.core.client.v1.Query - * @instance - * @param {ibc.core.client.v1.IQueryConsensusStateRequest} request QueryConsensusStateRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link ibc.core.client.v1.Query#consensusStates}. - * @memberof ibc.core.client.v1.Query - * @typedef ConsensusStatesCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.core.client.v1.QueryConsensusStatesResponse} [response] QueryConsensusStatesResponse - */ - - /** - * Calls ConsensusStates. - * @function consensusStates - * @memberof ibc.core.client.v1.Query - * @instance - * @param {ibc.core.client.v1.IQueryConsensusStatesRequest} request QueryConsensusStatesRequest message or plain object - * @param {ibc.core.client.v1.Query.ConsensusStatesCallback} callback Node-style callback called with the error, if any, and QueryConsensusStatesResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Query.prototype.consensusStates = function consensusStates(request, callback) { - return this.rpcCall(consensusStates, $root.ibc.core.client.v1.QueryConsensusStatesRequest, $root.ibc.core.client.v1.QueryConsensusStatesResponse, request, callback); - }, "name", { value: "ConsensusStates" }); - - /** - * Calls ConsensusStates. - * @function consensusStates - * @memberof ibc.core.client.v1.Query - * @instance - * @param {ibc.core.client.v1.IQueryConsensusStatesRequest} request QueryConsensusStatesRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link ibc.core.client.v1.Query#consensusStateHeights}. - * @memberof ibc.core.client.v1.Query - * @typedef ConsensusStateHeightsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.core.client.v1.QueryConsensusStateHeightsResponse} [response] QueryConsensusStateHeightsResponse - */ - - /** - * Calls ConsensusStateHeights. - * @function consensusStateHeights - * @memberof ibc.core.client.v1.Query - * @instance - * @param {ibc.core.client.v1.IQueryConsensusStateHeightsRequest} request QueryConsensusStateHeightsRequest message or plain object - * @param {ibc.core.client.v1.Query.ConsensusStateHeightsCallback} callback Node-style callback called with the error, if any, and QueryConsensusStateHeightsResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Query.prototype.consensusStateHeights = function consensusStateHeights(request, callback) { - return this.rpcCall(consensusStateHeights, $root.ibc.core.client.v1.QueryConsensusStateHeightsRequest, $root.ibc.core.client.v1.QueryConsensusStateHeightsResponse, request, callback); - }, "name", { value: "ConsensusStateHeights" }); - - /** - * Calls ConsensusStateHeights. - * @function consensusStateHeights - * @memberof ibc.core.client.v1.Query - * @instance - * @param {ibc.core.client.v1.IQueryConsensusStateHeightsRequest} request QueryConsensusStateHeightsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + if (message.next_sequence_receive != null && message.hasOwnProperty("next_sequence_receive")) + if (!$util.isInteger(message.next_sequence_receive) && !(message.next_sequence_receive && $util.isInteger(message.next_sequence_receive.low) && $util.isInteger(message.next_sequence_receive.high))) + return "next_sequence_receive: integer|Long expected"; + if (message.proof != null && message.hasOwnProperty("proof")) + if (!(message.proof && typeof message.proof.length === "number" || $util.isString(message.proof))) + return "proof: buffer expected"; + if (message.proof_height != null && message.hasOwnProperty("proof_height")) { + var error = $root.ibc.core.client.v1.Height.verify(message.proof_height); + if (error) + return "proof_height." + error; + } + return null; + }; /** - * Callback as used by {@link ibc.core.client.v1.Query#clientStatus}. - * @memberof ibc.core.client.v1.Query - * @typedef ClientStatusCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.core.client.v1.QueryClientStatusResponse} [response] QueryClientStatusResponse + * Creates a QueryNextSequenceReceiveResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof ibc.core.channel.v1.QueryNextSequenceReceiveResponse + * @static + * @param {Object.} object Plain object + * @returns {ibc.core.channel.v1.QueryNextSequenceReceiveResponse} QueryNextSequenceReceiveResponse */ + QueryNextSequenceReceiveResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.channel.v1.QueryNextSequenceReceiveResponse) + return object; + var message = new $root.ibc.core.channel.v1.QueryNextSequenceReceiveResponse(); + if (object.next_sequence_receive != null) + if ($util.Long) + (message.next_sequence_receive = $util.Long.fromValue(object.next_sequence_receive)).unsigned = true; + else if (typeof object.next_sequence_receive === "string") + message.next_sequence_receive = parseInt(object.next_sequence_receive, 10); + else if (typeof object.next_sequence_receive === "number") + message.next_sequence_receive = object.next_sequence_receive; + else if (typeof object.next_sequence_receive === "object") + message.next_sequence_receive = new $util.LongBits(object.next_sequence_receive.low >>> 0, object.next_sequence_receive.high >>> 0).toNumber(true); + if (object.proof != null) + if (typeof object.proof === "string") + $util.base64.decode(object.proof, message.proof = $util.newBuffer($util.base64.length(object.proof)), 0); + else if (object.proof.length) + message.proof = object.proof; + if (object.proof_height != null) { + if (typeof object.proof_height !== "object") + throw TypeError(".ibc.core.channel.v1.QueryNextSequenceReceiveResponse.proof_height: object expected"); + message.proof_height = $root.ibc.core.client.v1.Height.fromObject(object.proof_height); + } + return message; + }; /** - * Calls ClientStatus. - * @function clientStatus - * @memberof ibc.core.client.v1.Query - * @instance - * @param {ibc.core.client.v1.IQueryClientStatusRequest} request QueryClientStatusRequest message or plain object - * @param {ibc.core.client.v1.Query.ClientStatusCallback} callback Node-style callback called with the error, if any, and QueryClientStatusResponse - * @returns {undefined} - * @variation 1 + * Creates a plain object from a QueryNextSequenceReceiveResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof ibc.core.channel.v1.QueryNextSequenceReceiveResponse + * @static + * @param {ibc.core.channel.v1.QueryNextSequenceReceiveResponse} message QueryNextSequenceReceiveResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - Object.defineProperty(Query.prototype.clientStatus = function clientStatus(request, callback) { - return this.rpcCall(clientStatus, $root.ibc.core.client.v1.QueryClientStatusRequest, $root.ibc.core.client.v1.QueryClientStatusResponse, request, callback); - }, "name", { value: "ClientStatus" }); + QueryNextSequenceReceiveResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + if ($util.Long) { + var long = new $util.Long(0, 0, true); + object.next_sequence_receive = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.next_sequence_receive = options.longs === String ? "0" : 0; + if (options.bytes === String) + object.proof = ""; + else { + object.proof = []; + if (options.bytes !== Array) + object.proof = $util.newBuffer(object.proof); + } + object.proof_height = null; + } + if (message.next_sequence_receive != null && message.hasOwnProperty("next_sequence_receive")) + if (typeof message.next_sequence_receive === "number") + object.next_sequence_receive = options.longs === String ? String(message.next_sequence_receive) : message.next_sequence_receive; + else + object.next_sequence_receive = options.longs === String ? $util.Long.prototype.toString.call(message.next_sequence_receive) : options.longs === Number ? new $util.LongBits(message.next_sequence_receive.low >>> 0, message.next_sequence_receive.high >>> 0).toNumber(true) : message.next_sequence_receive; + if (message.proof != null && message.hasOwnProperty("proof")) + object.proof = options.bytes === String ? $util.base64.encode(message.proof, 0, message.proof.length) : options.bytes === Array ? Array.prototype.slice.call(message.proof) : message.proof; + if (message.proof_height != null && message.hasOwnProperty("proof_height")) + object.proof_height = $root.ibc.core.client.v1.Height.toObject(message.proof_height, options); + return object; + }; /** - * Calls ClientStatus. - * @function clientStatus - * @memberof ibc.core.client.v1.Query + * Converts this QueryNextSequenceReceiveResponse to JSON. + * @function toJSON + * @memberof ibc.core.channel.v1.QueryNextSequenceReceiveResponse * @instance - * @param {ibc.core.client.v1.IQueryClientStatusRequest} request QueryClientStatusRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * @returns {Object.} JSON object */ + QueryNextSequenceReceiveResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Callback as used by {@link ibc.core.client.v1.Query#clientParams}. - * @memberof ibc.core.client.v1.Query - * @typedef ClientParamsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.core.client.v1.QueryClientParamsResponse} [response] QueryClientParamsResponse - */ + return QueryNextSequenceReceiveResponse; + })(); - /** - * Calls ClientParams. - * @function clientParams - * @memberof ibc.core.client.v1.Query - * @instance - * @param {ibc.core.client.v1.IQueryClientParamsRequest} request QueryClientParamsRequest message or plain object - * @param {ibc.core.client.v1.Query.ClientParamsCallback} callback Node-style callback called with the error, if any, and QueryClientParamsResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Query.prototype.clientParams = function clientParams(request, callback) { - return this.rpcCall(clientParams, $root.ibc.core.client.v1.QueryClientParamsRequest, $root.ibc.core.client.v1.QueryClientParamsResponse, request, callback); - }, "name", { value: "ClientParams" }); + v1.GenesisState = (function() { /** - * Calls ClientParams. - * @function clientParams - * @memberof ibc.core.client.v1.Query - * @instance - * @param {ibc.core.client.v1.IQueryClientParamsRequest} request QueryClientParamsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Properties of a GenesisState. + * @memberof ibc.core.channel.v1 + * @interface IGenesisState + * @property {Array.|null} [channels] GenesisState channels + * @property {Array.|null} [acknowledgements] GenesisState acknowledgements + * @property {Array.|null} [commitments] GenesisState commitments + * @property {Array.|null} [receipts] GenesisState receipts + * @property {Array.|null} [send_sequences] GenesisState send_sequences + * @property {Array.|null} [recv_sequences] GenesisState recv_sequences + * @property {Array.|null} [ack_sequences] GenesisState ack_sequences + * @property {Long|null} [next_channel_sequence] GenesisState next_channel_sequence */ /** - * Callback as used by {@link ibc.core.client.v1.Query#upgradedClientState}. - * @memberof ibc.core.client.v1.Query - * @typedef UpgradedClientStateCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.core.client.v1.QueryUpgradedClientStateResponse} [response] QueryUpgradedClientStateResponse + * Constructs a new GenesisState. + * @memberof ibc.core.channel.v1 + * @classdesc Represents a GenesisState. + * @implements IGenesisState + * @constructor + * @param {ibc.core.channel.v1.IGenesisState=} [properties] Properties to set */ + function GenesisState(properties) { + this.channels = []; + this.acknowledgements = []; + this.commitments = []; + this.receipts = []; + this.send_sequences = []; + this.recv_sequences = []; + this.ack_sequences = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * Calls UpgradedClientState. - * @function upgradedClientState - * @memberof ibc.core.client.v1.Query + * GenesisState channels. + * @member {Array.} channels + * @memberof ibc.core.channel.v1.GenesisState * @instance - * @param {ibc.core.client.v1.IQueryUpgradedClientStateRequest} request QueryUpgradedClientStateRequest message or plain object - * @param {ibc.core.client.v1.Query.UpgradedClientStateCallback} callback Node-style callback called with the error, if any, and QueryUpgradedClientStateResponse - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(Query.prototype.upgradedClientState = function upgradedClientState(request, callback) { - return this.rpcCall(upgradedClientState, $root.ibc.core.client.v1.QueryUpgradedClientStateRequest, $root.ibc.core.client.v1.QueryUpgradedClientStateResponse, request, callback); - }, "name", { value: "UpgradedClientState" }); + GenesisState.prototype.channels = $util.emptyArray; /** - * Calls UpgradedClientState. - * @function upgradedClientState - * @memberof ibc.core.client.v1.Query + * GenesisState acknowledgements. + * @member {Array.} acknowledgements + * @memberof ibc.core.channel.v1.GenesisState * @instance - * @param {ibc.core.client.v1.IQueryUpgradedClientStateRequest} request QueryUpgradedClientStateRequest message or plain object - * @returns {Promise} Promise - * @variation 2 */ + GenesisState.prototype.acknowledgements = $util.emptyArray; /** - * Callback as used by {@link ibc.core.client.v1.Query#upgradedConsensusState}. - * @memberof ibc.core.client.v1.Query - * @typedef UpgradedConsensusStateCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.core.client.v1.QueryUpgradedConsensusStateResponse} [response] QueryUpgradedConsensusStateResponse + * GenesisState commitments. + * @member {Array.} commitments + * @memberof ibc.core.channel.v1.GenesisState + * @instance */ + GenesisState.prototype.commitments = $util.emptyArray; /** - * Calls UpgradedConsensusState. - * @function upgradedConsensusState - * @memberof ibc.core.client.v1.Query + * GenesisState receipts. + * @member {Array.} receipts + * @memberof ibc.core.channel.v1.GenesisState * @instance - * @param {ibc.core.client.v1.IQueryUpgradedConsensusStateRequest} request QueryUpgradedConsensusStateRequest message or plain object - * @param {ibc.core.client.v1.Query.UpgradedConsensusStateCallback} callback Node-style callback called with the error, if any, and QueryUpgradedConsensusStateResponse - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(Query.prototype.upgradedConsensusState = function upgradedConsensusState(request, callback) { - return this.rpcCall(upgradedConsensusState, $root.ibc.core.client.v1.QueryUpgradedConsensusStateRequest, $root.ibc.core.client.v1.QueryUpgradedConsensusStateResponse, request, callback); - }, "name", { value: "UpgradedConsensusState" }); + GenesisState.prototype.receipts = $util.emptyArray; /** - * Calls UpgradedConsensusState. - * @function upgradedConsensusState - * @memberof ibc.core.client.v1.Query + * GenesisState send_sequences. + * @member {Array.} send_sequences + * @memberof ibc.core.channel.v1.GenesisState * @instance - * @param {ibc.core.client.v1.IQueryUpgradedConsensusStateRequest} request QueryUpgradedConsensusStateRequest message or plain object - * @returns {Promise} Promise - * @variation 2 */ - - return Query; - })(); - - v1.QueryClientStateRequest = (function() { + GenesisState.prototype.send_sequences = $util.emptyArray; /** - * Properties of a QueryClientStateRequest. - * @memberof ibc.core.client.v1 - * @interface IQueryClientStateRequest - * @property {string|null} [client_id] QueryClientStateRequest client_id + * GenesisState recv_sequences. + * @member {Array.} recv_sequences + * @memberof ibc.core.channel.v1.GenesisState + * @instance */ + GenesisState.prototype.recv_sequences = $util.emptyArray; /** - * Constructs a new QueryClientStateRequest. - * @memberof ibc.core.client.v1 - * @classdesc Represents a QueryClientStateRequest. - * @implements IQueryClientStateRequest - * @constructor - * @param {ibc.core.client.v1.IQueryClientStateRequest=} [properties] Properties to set + * GenesisState ack_sequences. + * @member {Array.} ack_sequences + * @memberof ibc.core.channel.v1.GenesisState + * @instance */ - function QueryClientStateRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + GenesisState.prototype.ack_sequences = $util.emptyArray; /** - * QueryClientStateRequest client_id. - * @member {string} client_id - * @memberof ibc.core.client.v1.QueryClientStateRequest + * GenesisState next_channel_sequence. + * @member {Long} next_channel_sequence + * @memberof ibc.core.channel.v1.GenesisState * @instance */ - QueryClientStateRequest.prototype.client_id = ""; + GenesisState.prototype.next_channel_sequence = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** - * Encodes the specified QueryClientStateRequest message. Does not implicitly {@link ibc.core.client.v1.QueryClientStateRequest.verify|verify} messages. + * Encodes the specified GenesisState message. Does not implicitly {@link ibc.core.channel.v1.GenesisState.verify|verify} messages. * @function encode - * @memberof ibc.core.client.v1.QueryClientStateRequest + * @memberof ibc.core.channel.v1.GenesisState * @static - * @param {ibc.core.client.v1.IQueryClientStateRequest} message QueryClientStateRequest message or plain object to encode + * @param {ibc.core.channel.v1.IGenesisState} message GenesisState message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryClientStateRequest.encode = function encode(message, writer) { + GenesisState.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.client_id != null && Object.hasOwnProperty.call(message, "client_id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.client_id); + if (message.channels != null && message.channels.length) + for (var i = 0; i < message.channels.length; ++i) + $root.ibc.core.channel.v1.IdentifiedChannel.encode(message.channels[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.acknowledgements != null && message.acknowledgements.length) + for (var i = 0; i < message.acknowledgements.length; ++i) + $root.ibc.core.channel.v1.PacketState.encode(message.acknowledgements[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.commitments != null && message.commitments.length) + for (var i = 0; i < message.commitments.length; ++i) + $root.ibc.core.channel.v1.PacketState.encode(message.commitments[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.receipts != null && message.receipts.length) + for (var i = 0; i < message.receipts.length; ++i) + $root.ibc.core.channel.v1.PacketState.encode(message.receipts[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.send_sequences != null && message.send_sequences.length) + for (var i = 0; i < message.send_sequences.length; ++i) + $root.ibc.core.channel.v1.PacketSequence.encode(message.send_sequences[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.recv_sequences != null && message.recv_sequences.length) + for (var i = 0; i < message.recv_sequences.length; ++i) + $root.ibc.core.channel.v1.PacketSequence.encode(message.recv_sequences[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.ack_sequences != null && message.ack_sequences.length) + for (var i = 0; i < message.ack_sequences.length; ++i) + $root.ibc.core.channel.v1.PacketSequence.encode(message.ack_sequences[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.next_channel_sequence != null && Object.hasOwnProperty.call(message, "next_channel_sequence")) + writer.uint32(/* id 8, wireType 0 =*/64).uint64(message.next_channel_sequence); return writer; }; /** - * Encodes the specified QueryClientStateRequest message, length delimited. Does not implicitly {@link ibc.core.client.v1.QueryClientStateRequest.verify|verify} messages. + * Encodes the specified GenesisState message, length delimited. Does not implicitly {@link ibc.core.channel.v1.GenesisState.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.client.v1.QueryClientStateRequest + * @memberof ibc.core.channel.v1.GenesisState * @static - * @param {ibc.core.client.v1.IQueryClientStateRequest} message QueryClientStateRequest message or plain object to encode + * @param {ibc.core.channel.v1.IGenesisState} message GenesisState message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryClientStateRequest.encodeDelimited = function encodeDelimited(message, writer) { + GenesisState.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryClientStateRequest message from the specified reader or buffer. + * Decodes a GenesisState message from the specified reader or buffer. * @function decode - * @memberof ibc.core.client.v1.QueryClientStateRequest + * @memberof ibc.core.channel.v1.GenesisState * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.client.v1.QueryClientStateRequest} QueryClientStateRequest + * @returns {ibc.core.channel.v1.GenesisState} GenesisState * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryClientStateRequest.decode = function decode(reader, length) { + GenesisState.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.QueryClientStateRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.GenesisState(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.client_id = reader.string(); + if (!(message.channels && message.channels.length)) + message.channels = []; + message.channels.push($root.ibc.core.channel.v1.IdentifiedChannel.decode(reader, reader.uint32())); + break; + case 2: + if (!(message.acknowledgements && message.acknowledgements.length)) + message.acknowledgements = []; + message.acknowledgements.push($root.ibc.core.channel.v1.PacketState.decode(reader, reader.uint32())); + break; + case 3: + if (!(message.commitments && message.commitments.length)) + message.commitments = []; + message.commitments.push($root.ibc.core.channel.v1.PacketState.decode(reader, reader.uint32())); + break; + case 4: + if (!(message.receipts && message.receipts.length)) + message.receipts = []; + message.receipts.push($root.ibc.core.channel.v1.PacketState.decode(reader, reader.uint32())); + break; + case 5: + if (!(message.send_sequences && message.send_sequences.length)) + message.send_sequences = []; + message.send_sequences.push($root.ibc.core.channel.v1.PacketSequence.decode(reader, reader.uint32())); + break; + case 6: + if (!(message.recv_sequences && message.recv_sequences.length)) + message.recv_sequences = []; + message.recv_sequences.push($root.ibc.core.channel.v1.PacketSequence.decode(reader, reader.uint32())); + break; + case 7: + if (!(message.ack_sequences && message.ack_sequences.length)) + message.ack_sequences = []; + message.ack_sequences.push($root.ibc.core.channel.v1.PacketSequence.decode(reader, reader.uint32())); + break; + case 8: + message.next_channel_sequence = reader.uint64(); break; default: reader.skipType(tag & 7); @@ -52206,109 +58468,300 @@ }; /** - * Decodes a QueryClientStateRequest message from the specified reader or buffer, length delimited. + * Decodes a GenesisState message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.client.v1.QueryClientStateRequest + * @memberof ibc.core.channel.v1.GenesisState * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.client.v1.QueryClientStateRequest} QueryClientStateRequest + * @returns {ibc.core.channel.v1.GenesisState} GenesisState * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryClientStateRequest.decodeDelimited = function decodeDelimited(reader) { + GenesisState.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryClientStateRequest message. + * Verifies a GenesisState message. * @function verify - * @memberof ibc.core.client.v1.QueryClientStateRequest + * @memberof ibc.core.channel.v1.GenesisState * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryClientStateRequest.verify = function verify(message) { + GenesisState.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.client_id != null && message.hasOwnProperty("client_id")) - if (!$util.isString(message.client_id)) - return "client_id: string expected"; + if (message.channels != null && message.hasOwnProperty("channels")) { + if (!Array.isArray(message.channels)) + return "channels: array expected"; + for (var i = 0; i < message.channels.length; ++i) { + var error = $root.ibc.core.channel.v1.IdentifiedChannel.verify(message.channels[i]); + if (error) + return "channels." + error; + } + } + if (message.acknowledgements != null && message.hasOwnProperty("acknowledgements")) { + if (!Array.isArray(message.acknowledgements)) + return "acknowledgements: array expected"; + for (var i = 0; i < message.acknowledgements.length; ++i) { + var error = $root.ibc.core.channel.v1.PacketState.verify(message.acknowledgements[i]); + if (error) + return "acknowledgements." + error; + } + } + if (message.commitments != null && message.hasOwnProperty("commitments")) { + if (!Array.isArray(message.commitments)) + return "commitments: array expected"; + for (var i = 0; i < message.commitments.length; ++i) { + var error = $root.ibc.core.channel.v1.PacketState.verify(message.commitments[i]); + if (error) + return "commitments." + error; + } + } + if (message.receipts != null && message.hasOwnProperty("receipts")) { + if (!Array.isArray(message.receipts)) + return "receipts: array expected"; + for (var i = 0; i < message.receipts.length; ++i) { + var error = $root.ibc.core.channel.v1.PacketState.verify(message.receipts[i]); + if (error) + return "receipts." + error; + } + } + if (message.send_sequences != null && message.hasOwnProperty("send_sequences")) { + if (!Array.isArray(message.send_sequences)) + return "send_sequences: array expected"; + for (var i = 0; i < message.send_sequences.length; ++i) { + var error = $root.ibc.core.channel.v1.PacketSequence.verify(message.send_sequences[i]); + if (error) + return "send_sequences." + error; + } + } + if (message.recv_sequences != null && message.hasOwnProperty("recv_sequences")) { + if (!Array.isArray(message.recv_sequences)) + return "recv_sequences: array expected"; + for (var i = 0; i < message.recv_sequences.length; ++i) { + var error = $root.ibc.core.channel.v1.PacketSequence.verify(message.recv_sequences[i]); + if (error) + return "recv_sequences." + error; + } + } + if (message.ack_sequences != null && message.hasOwnProperty("ack_sequences")) { + if (!Array.isArray(message.ack_sequences)) + return "ack_sequences: array expected"; + for (var i = 0; i < message.ack_sequences.length; ++i) { + var error = $root.ibc.core.channel.v1.PacketSequence.verify(message.ack_sequences[i]); + if (error) + return "ack_sequences." + error; + } + } + if (message.next_channel_sequence != null && message.hasOwnProperty("next_channel_sequence")) + if (!$util.isInteger(message.next_channel_sequence) && !(message.next_channel_sequence && $util.isInteger(message.next_channel_sequence.low) && $util.isInteger(message.next_channel_sequence.high))) + return "next_channel_sequence: integer|Long expected"; return null; }; /** - * Creates a QueryClientStateRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GenesisState message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.client.v1.QueryClientStateRequest + * @memberof ibc.core.channel.v1.GenesisState * @static * @param {Object.} object Plain object - * @returns {ibc.core.client.v1.QueryClientStateRequest} QueryClientStateRequest + * @returns {ibc.core.channel.v1.GenesisState} GenesisState */ - QueryClientStateRequest.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.client.v1.QueryClientStateRequest) + GenesisState.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.channel.v1.GenesisState) return object; - var message = new $root.ibc.core.client.v1.QueryClientStateRequest(); - if (object.client_id != null) - message.client_id = String(object.client_id); + var message = new $root.ibc.core.channel.v1.GenesisState(); + if (object.channels) { + if (!Array.isArray(object.channels)) + throw TypeError(".ibc.core.channel.v1.GenesisState.channels: array expected"); + message.channels = []; + for (var i = 0; i < object.channels.length; ++i) { + if (typeof object.channels[i] !== "object") + throw TypeError(".ibc.core.channel.v1.GenesisState.channels: object expected"); + message.channels[i] = $root.ibc.core.channel.v1.IdentifiedChannel.fromObject(object.channels[i]); + } + } + if (object.acknowledgements) { + if (!Array.isArray(object.acknowledgements)) + throw TypeError(".ibc.core.channel.v1.GenesisState.acknowledgements: array expected"); + message.acknowledgements = []; + for (var i = 0; i < object.acknowledgements.length; ++i) { + if (typeof object.acknowledgements[i] !== "object") + throw TypeError(".ibc.core.channel.v1.GenesisState.acknowledgements: object expected"); + message.acknowledgements[i] = $root.ibc.core.channel.v1.PacketState.fromObject(object.acknowledgements[i]); + } + } + if (object.commitments) { + if (!Array.isArray(object.commitments)) + throw TypeError(".ibc.core.channel.v1.GenesisState.commitments: array expected"); + message.commitments = []; + for (var i = 0; i < object.commitments.length; ++i) { + if (typeof object.commitments[i] !== "object") + throw TypeError(".ibc.core.channel.v1.GenesisState.commitments: object expected"); + message.commitments[i] = $root.ibc.core.channel.v1.PacketState.fromObject(object.commitments[i]); + } + } + if (object.receipts) { + if (!Array.isArray(object.receipts)) + throw TypeError(".ibc.core.channel.v1.GenesisState.receipts: array expected"); + message.receipts = []; + for (var i = 0; i < object.receipts.length; ++i) { + if (typeof object.receipts[i] !== "object") + throw TypeError(".ibc.core.channel.v1.GenesisState.receipts: object expected"); + message.receipts[i] = $root.ibc.core.channel.v1.PacketState.fromObject(object.receipts[i]); + } + } + if (object.send_sequences) { + if (!Array.isArray(object.send_sequences)) + throw TypeError(".ibc.core.channel.v1.GenesisState.send_sequences: array expected"); + message.send_sequences = []; + for (var i = 0; i < object.send_sequences.length; ++i) { + if (typeof object.send_sequences[i] !== "object") + throw TypeError(".ibc.core.channel.v1.GenesisState.send_sequences: object expected"); + message.send_sequences[i] = $root.ibc.core.channel.v1.PacketSequence.fromObject(object.send_sequences[i]); + } + } + if (object.recv_sequences) { + if (!Array.isArray(object.recv_sequences)) + throw TypeError(".ibc.core.channel.v1.GenesisState.recv_sequences: array expected"); + message.recv_sequences = []; + for (var i = 0; i < object.recv_sequences.length; ++i) { + if (typeof object.recv_sequences[i] !== "object") + throw TypeError(".ibc.core.channel.v1.GenesisState.recv_sequences: object expected"); + message.recv_sequences[i] = $root.ibc.core.channel.v1.PacketSequence.fromObject(object.recv_sequences[i]); + } + } + if (object.ack_sequences) { + if (!Array.isArray(object.ack_sequences)) + throw TypeError(".ibc.core.channel.v1.GenesisState.ack_sequences: array expected"); + message.ack_sequences = []; + for (var i = 0; i < object.ack_sequences.length; ++i) { + if (typeof object.ack_sequences[i] !== "object") + throw TypeError(".ibc.core.channel.v1.GenesisState.ack_sequences: object expected"); + message.ack_sequences[i] = $root.ibc.core.channel.v1.PacketSequence.fromObject(object.ack_sequences[i]); + } + } + if (object.next_channel_sequence != null) + if ($util.Long) + (message.next_channel_sequence = $util.Long.fromValue(object.next_channel_sequence)).unsigned = true; + else if (typeof object.next_channel_sequence === "string") + message.next_channel_sequence = parseInt(object.next_channel_sequence, 10); + else if (typeof object.next_channel_sequence === "number") + message.next_channel_sequence = object.next_channel_sequence; + else if (typeof object.next_channel_sequence === "object") + message.next_channel_sequence = new $util.LongBits(object.next_channel_sequence.low >>> 0, object.next_channel_sequence.high >>> 0).toNumber(true); return message; }; /** - * Creates a plain object from a QueryClientStateRequest message. Also converts values to other types if specified. + * Creates a plain object from a GenesisState message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.client.v1.QueryClientStateRequest + * @memberof ibc.core.channel.v1.GenesisState * @static - * @param {ibc.core.client.v1.QueryClientStateRequest} message QueryClientStateRequest + * @param {ibc.core.channel.v1.GenesisState} message GenesisState * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryClientStateRequest.toObject = function toObject(message, options) { + GenesisState.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) { + object.channels = []; + object.acknowledgements = []; + object.commitments = []; + object.receipts = []; + object.send_sequences = []; + object.recv_sequences = []; + object.ack_sequences = []; + } if (options.defaults) - object.client_id = ""; - if (message.client_id != null && message.hasOwnProperty("client_id")) - object.client_id = message.client_id; + if ($util.Long) { + var long = new $util.Long(0, 0, true); + object.next_channel_sequence = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.next_channel_sequence = options.longs === String ? "0" : 0; + if (message.channels && message.channels.length) { + object.channels = []; + for (var j = 0; j < message.channels.length; ++j) + object.channels[j] = $root.ibc.core.channel.v1.IdentifiedChannel.toObject(message.channels[j], options); + } + if (message.acknowledgements && message.acknowledgements.length) { + object.acknowledgements = []; + for (var j = 0; j < message.acknowledgements.length; ++j) + object.acknowledgements[j] = $root.ibc.core.channel.v1.PacketState.toObject(message.acknowledgements[j], options); + } + if (message.commitments && message.commitments.length) { + object.commitments = []; + for (var j = 0; j < message.commitments.length; ++j) + object.commitments[j] = $root.ibc.core.channel.v1.PacketState.toObject(message.commitments[j], options); + } + if (message.receipts && message.receipts.length) { + object.receipts = []; + for (var j = 0; j < message.receipts.length; ++j) + object.receipts[j] = $root.ibc.core.channel.v1.PacketState.toObject(message.receipts[j], options); + } + if (message.send_sequences && message.send_sequences.length) { + object.send_sequences = []; + for (var j = 0; j < message.send_sequences.length; ++j) + object.send_sequences[j] = $root.ibc.core.channel.v1.PacketSequence.toObject(message.send_sequences[j], options); + } + if (message.recv_sequences && message.recv_sequences.length) { + object.recv_sequences = []; + for (var j = 0; j < message.recv_sequences.length; ++j) + object.recv_sequences[j] = $root.ibc.core.channel.v1.PacketSequence.toObject(message.recv_sequences[j], options); + } + if (message.ack_sequences && message.ack_sequences.length) { + object.ack_sequences = []; + for (var j = 0; j < message.ack_sequences.length; ++j) + object.ack_sequences[j] = $root.ibc.core.channel.v1.PacketSequence.toObject(message.ack_sequences[j], options); + } + if (message.next_channel_sequence != null && message.hasOwnProperty("next_channel_sequence")) + if (typeof message.next_channel_sequence === "number") + object.next_channel_sequence = options.longs === String ? String(message.next_channel_sequence) : message.next_channel_sequence; + else + object.next_channel_sequence = options.longs === String ? $util.Long.prototype.toString.call(message.next_channel_sequence) : options.longs === Number ? new $util.LongBits(message.next_channel_sequence.low >>> 0, message.next_channel_sequence.high >>> 0).toNumber(true) : message.next_channel_sequence; return object; }; /** - * Converts this QueryClientStateRequest to JSON. + * Converts this GenesisState to JSON. * @function toJSON - * @memberof ibc.core.client.v1.QueryClientStateRequest + * @memberof ibc.core.channel.v1.GenesisState * @instance * @returns {Object.} JSON object */ - QueryClientStateRequest.prototype.toJSON = function toJSON() { + GenesisState.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryClientStateRequest; + return GenesisState; })(); - v1.QueryClientStateResponse = (function() { + v1.PacketSequence = (function() { /** - * Properties of a QueryClientStateResponse. - * @memberof ibc.core.client.v1 - * @interface IQueryClientStateResponse - * @property {google.protobuf.IAny|null} [client_state] QueryClientStateResponse client_state - * @property {Uint8Array|null} [proof] QueryClientStateResponse proof - * @property {ibc.core.client.v1.IHeight|null} [proof_height] QueryClientStateResponse proof_height + * Properties of a PacketSequence. + * @memberof ibc.core.channel.v1 + * @interface IPacketSequence + * @property {string|null} [port_id] PacketSequence port_id + * @property {string|null} [channel_id] PacketSequence channel_id + * @property {Long|null} [sequence] PacketSequence sequence */ /** - * Constructs a new QueryClientStateResponse. - * @memberof ibc.core.client.v1 - * @classdesc Represents a QueryClientStateResponse. - * @implements IQueryClientStateResponse + * Constructs a new PacketSequence. + * @memberof ibc.core.channel.v1 + * @classdesc Represents a PacketSequence. + * @implements IPacketSequence * @constructor - * @param {ibc.core.client.v1.IQueryClientStateResponse=} [properties] Properties to set + * @param {ibc.core.channel.v1.IPacketSequence=} [properties] Properties to set */ - function QueryClientStateResponse(properties) { + function PacketSequence(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -52316,89 +58769,89 @@ } /** - * QueryClientStateResponse client_state. - * @member {google.protobuf.IAny|null|undefined} client_state - * @memberof ibc.core.client.v1.QueryClientStateResponse + * PacketSequence port_id. + * @member {string} port_id + * @memberof ibc.core.channel.v1.PacketSequence * @instance */ - QueryClientStateResponse.prototype.client_state = null; + PacketSequence.prototype.port_id = ""; /** - * QueryClientStateResponse proof. - * @member {Uint8Array} proof - * @memberof ibc.core.client.v1.QueryClientStateResponse + * PacketSequence channel_id. + * @member {string} channel_id + * @memberof ibc.core.channel.v1.PacketSequence * @instance */ - QueryClientStateResponse.prototype.proof = $util.newBuffer([]); + PacketSequence.prototype.channel_id = ""; /** - * QueryClientStateResponse proof_height. - * @member {ibc.core.client.v1.IHeight|null|undefined} proof_height - * @memberof ibc.core.client.v1.QueryClientStateResponse + * PacketSequence sequence. + * @member {Long} sequence + * @memberof ibc.core.channel.v1.PacketSequence * @instance */ - QueryClientStateResponse.prototype.proof_height = null; + PacketSequence.prototype.sequence = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** - * Encodes the specified QueryClientStateResponse message. Does not implicitly {@link ibc.core.client.v1.QueryClientStateResponse.verify|verify} messages. + * Encodes the specified PacketSequence message. Does not implicitly {@link ibc.core.channel.v1.PacketSequence.verify|verify} messages. * @function encode - * @memberof ibc.core.client.v1.QueryClientStateResponse + * @memberof ibc.core.channel.v1.PacketSequence * @static - * @param {ibc.core.client.v1.IQueryClientStateResponse} message QueryClientStateResponse message or plain object to encode + * @param {ibc.core.channel.v1.IPacketSequence} message PacketSequence message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryClientStateResponse.encode = function encode(message, writer) { + PacketSequence.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.client_state != null && Object.hasOwnProperty.call(message, "client_state")) - $root.google.protobuf.Any.encode(message.client_state, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.proof != null && Object.hasOwnProperty.call(message, "proof")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.proof); - if (message.proof_height != null && Object.hasOwnProperty.call(message, "proof_height")) - $root.ibc.core.client.v1.Height.encode(message.proof_height, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.port_id != null && Object.hasOwnProperty.call(message, "port_id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.port_id); + if (message.channel_id != null && Object.hasOwnProperty.call(message, "channel_id")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.channel_id); + if (message.sequence != null && Object.hasOwnProperty.call(message, "sequence")) + writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.sequence); return writer; }; /** - * Encodes the specified QueryClientStateResponse message, length delimited. Does not implicitly {@link ibc.core.client.v1.QueryClientStateResponse.verify|verify} messages. + * Encodes the specified PacketSequence message, length delimited. Does not implicitly {@link ibc.core.channel.v1.PacketSequence.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.client.v1.QueryClientStateResponse + * @memberof ibc.core.channel.v1.PacketSequence * @static - * @param {ibc.core.client.v1.IQueryClientStateResponse} message QueryClientStateResponse message or plain object to encode + * @param {ibc.core.channel.v1.IPacketSequence} message PacketSequence message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryClientStateResponse.encodeDelimited = function encodeDelimited(message, writer) { + PacketSequence.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryClientStateResponse message from the specified reader or buffer. + * Decodes a PacketSequence message from the specified reader or buffer. * @function decode - * @memberof ibc.core.client.v1.QueryClientStateResponse + * @memberof ibc.core.channel.v1.PacketSequence * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.client.v1.QueryClientStateResponse} QueryClientStateResponse + * @returns {ibc.core.channel.v1.PacketSequence} PacketSequence * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryClientStateResponse.decode = function decode(reader, length) { + PacketSequence.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.QueryClientStateResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.PacketSequence(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.client_state = $root.google.protobuf.Any.decode(reader, reader.uint32()); + message.port_id = reader.string(); break; case 2: - message.proof = reader.bytes(); + message.channel_id = reader.string(); break; case 3: - message.proof_height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); + message.sequence = reader.uint64(); break; default: reader.skipType(tag & 7); @@ -52409,143 +58862,163 @@ }; /** - * Decodes a QueryClientStateResponse message from the specified reader or buffer, length delimited. + * Decodes a PacketSequence message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.client.v1.QueryClientStateResponse + * @memberof ibc.core.channel.v1.PacketSequence * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.client.v1.QueryClientStateResponse} QueryClientStateResponse + * @returns {ibc.core.channel.v1.PacketSequence} PacketSequence * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryClientStateResponse.decodeDelimited = function decodeDelimited(reader) { + PacketSequence.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryClientStateResponse message. + * Verifies a PacketSequence message. * @function verify - * @memberof ibc.core.client.v1.QueryClientStateResponse + * @memberof ibc.core.channel.v1.PacketSequence * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryClientStateResponse.verify = function verify(message) { + PacketSequence.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.client_state != null && message.hasOwnProperty("client_state")) { - var error = $root.google.protobuf.Any.verify(message.client_state); - if (error) - return "client_state." + error; - } - if (message.proof != null && message.hasOwnProperty("proof")) - if (!(message.proof && typeof message.proof.length === "number" || $util.isString(message.proof))) - return "proof: buffer expected"; - if (message.proof_height != null && message.hasOwnProperty("proof_height")) { - var error = $root.ibc.core.client.v1.Height.verify(message.proof_height); - if (error) - return "proof_height." + error; - } + if (message.port_id != null && message.hasOwnProperty("port_id")) + if (!$util.isString(message.port_id)) + return "port_id: string expected"; + if (message.channel_id != null && message.hasOwnProperty("channel_id")) + if (!$util.isString(message.channel_id)) + return "channel_id: string expected"; + if (message.sequence != null && message.hasOwnProperty("sequence")) + if (!$util.isInteger(message.sequence) && !(message.sequence && $util.isInteger(message.sequence.low) && $util.isInteger(message.sequence.high))) + return "sequence: integer|Long expected"; return null; }; /** - * Creates a QueryClientStateResponse message from a plain object. Also converts values to their respective internal types. + * Creates a PacketSequence message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.client.v1.QueryClientStateResponse + * @memberof ibc.core.channel.v1.PacketSequence * @static * @param {Object.} object Plain object - * @returns {ibc.core.client.v1.QueryClientStateResponse} QueryClientStateResponse + * @returns {ibc.core.channel.v1.PacketSequence} PacketSequence */ - QueryClientStateResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.client.v1.QueryClientStateResponse) + PacketSequence.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.channel.v1.PacketSequence) return object; - var message = new $root.ibc.core.client.v1.QueryClientStateResponse(); - if (object.client_state != null) { - if (typeof object.client_state !== "object") - throw TypeError(".ibc.core.client.v1.QueryClientStateResponse.client_state: object expected"); - message.client_state = $root.google.protobuf.Any.fromObject(object.client_state); - } - if (object.proof != null) - if (typeof object.proof === "string") - $util.base64.decode(object.proof, message.proof = $util.newBuffer($util.base64.length(object.proof)), 0); - else if (object.proof.length) - message.proof = object.proof; - if (object.proof_height != null) { - if (typeof object.proof_height !== "object") - throw TypeError(".ibc.core.client.v1.QueryClientStateResponse.proof_height: object expected"); - message.proof_height = $root.ibc.core.client.v1.Height.fromObject(object.proof_height); - } + var message = new $root.ibc.core.channel.v1.PacketSequence(); + if (object.port_id != null) + message.port_id = String(object.port_id); + if (object.channel_id != null) + message.channel_id = String(object.channel_id); + if (object.sequence != null) + if ($util.Long) + (message.sequence = $util.Long.fromValue(object.sequence)).unsigned = true; + else if (typeof object.sequence === "string") + message.sequence = parseInt(object.sequence, 10); + else if (typeof object.sequence === "number") + message.sequence = object.sequence; + else if (typeof object.sequence === "object") + message.sequence = new $util.LongBits(object.sequence.low >>> 0, object.sequence.high >>> 0).toNumber(true); return message; }; /** - * Creates a plain object from a QueryClientStateResponse message. Also converts values to other types if specified. + * Creates a plain object from a PacketSequence message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.client.v1.QueryClientStateResponse + * @memberof ibc.core.channel.v1.PacketSequence * @static - * @param {ibc.core.client.v1.QueryClientStateResponse} message QueryClientStateResponse + * @param {ibc.core.channel.v1.PacketSequence} message PacketSequence * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryClientStateResponse.toObject = function toObject(message, options) { + PacketSequence.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.client_state = null; - if (options.bytes === String) - object.proof = ""; - else { - object.proof = []; - if (options.bytes !== Array) - object.proof = $util.newBuffer(object.proof); - } - object.proof_height = null; + object.port_id = ""; + object.channel_id = ""; + if ($util.Long) { + var long = new $util.Long(0, 0, true); + object.sequence = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.sequence = options.longs === String ? "0" : 0; } - if (message.client_state != null && message.hasOwnProperty("client_state")) - object.client_state = $root.google.protobuf.Any.toObject(message.client_state, options); - if (message.proof != null && message.hasOwnProperty("proof")) - object.proof = options.bytes === String ? $util.base64.encode(message.proof, 0, message.proof.length) : options.bytes === Array ? Array.prototype.slice.call(message.proof) : message.proof; - if (message.proof_height != null && message.hasOwnProperty("proof_height")) - object.proof_height = $root.ibc.core.client.v1.Height.toObject(message.proof_height, options); + if (message.port_id != null && message.hasOwnProperty("port_id")) + object.port_id = message.port_id; + if (message.channel_id != null && message.hasOwnProperty("channel_id")) + object.channel_id = message.channel_id; + if (message.sequence != null && message.hasOwnProperty("sequence")) + if (typeof message.sequence === "number") + object.sequence = options.longs === String ? String(message.sequence) : message.sequence; + else + object.sequence = options.longs === String ? $util.Long.prototype.toString.call(message.sequence) : options.longs === Number ? new $util.LongBits(message.sequence.low >>> 0, message.sequence.high >>> 0).toNumber(true) : message.sequence; return object; }; /** - * Converts this QueryClientStateResponse to JSON. + * Converts this PacketSequence to JSON. * @function toJSON - * @memberof ibc.core.client.v1.QueryClientStateResponse + * @memberof ibc.core.channel.v1.PacketSequence * @instance * @returns {Object.} JSON object */ - QueryClientStateResponse.prototype.toJSON = function toJSON() { + PacketSequence.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryClientStateResponse; + return PacketSequence; })(); - v1.QueryClientStatesRequest = (function() { + return v1; + })(); + + return channel; + })(); + + core.client = (function() { + + /** + * Namespace client. + * @memberof ibc.core + * @namespace + */ + var client = {}; + + client.v1 = (function() { + + /** + * Namespace v1. + * @memberof ibc.core.client + * @namespace + */ + var v1 = {}; + + v1.IdentifiedClientState = (function() { /** - * Properties of a QueryClientStatesRequest. + * Properties of an IdentifiedClientState. * @memberof ibc.core.client.v1 - * @interface IQueryClientStatesRequest - * @property {cosmos.base.query.v1beta1.IPageRequest|null} [pagination] QueryClientStatesRequest pagination + * @interface IIdentifiedClientState + * @property {string|null} [client_id] IdentifiedClientState client_id + * @property {google.protobuf.IAny|null} [client_state] IdentifiedClientState client_state */ /** - * Constructs a new QueryClientStatesRequest. + * Constructs a new IdentifiedClientState. * @memberof ibc.core.client.v1 - * @classdesc Represents a QueryClientStatesRequest. - * @implements IQueryClientStatesRequest + * @classdesc Represents an IdentifiedClientState. + * @implements IIdentifiedClientState * @constructor - * @param {ibc.core.client.v1.IQueryClientStatesRequest=} [properties] Properties to set + * @param {ibc.core.client.v1.IIdentifiedClientState=} [properties] Properties to set */ - function QueryClientStatesRequest(properties) { + function IdentifiedClientState(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -52553,63 +59026,76 @@ } /** - * QueryClientStatesRequest pagination. - * @member {cosmos.base.query.v1beta1.IPageRequest|null|undefined} pagination - * @memberof ibc.core.client.v1.QueryClientStatesRequest + * IdentifiedClientState client_id. + * @member {string} client_id + * @memberof ibc.core.client.v1.IdentifiedClientState * @instance */ - QueryClientStatesRequest.prototype.pagination = null; + IdentifiedClientState.prototype.client_id = ""; /** - * Encodes the specified QueryClientStatesRequest message. Does not implicitly {@link ibc.core.client.v1.QueryClientStatesRequest.verify|verify} messages. + * IdentifiedClientState client_state. + * @member {google.protobuf.IAny|null|undefined} client_state + * @memberof ibc.core.client.v1.IdentifiedClientState + * @instance + */ + IdentifiedClientState.prototype.client_state = null; + + /** + * Encodes the specified IdentifiedClientState message. Does not implicitly {@link ibc.core.client.v1.IdentifiedClientState.verify|verify} messages. * @function encode - * @memberof ibc.core.client.v1.QueryClientStatesRequest + * @memberof ibc.core.client.v1.IdentifiedClientState * @static - * @param {ibc.core.client.v1.IQueryClientStatesRequest} message QueryClientStatesRequest message or plain object to encode + * @param {ibc.core.client.v1.IIdentifiedClientState} message IdentifiedClientState message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryClientStatesRequest.encode = function encode(message, writer) { + IdentifiedClientState.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.pagination != null && Object.hasOwnProperty.call(message, "pagination")) - $root.cosmos.base.query.v1beta1.PageRequest.encode(message.pagination, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.client_id != null && Object.hasOwnProperty.call(message, "client_id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.client_id); + if (message.client_state != null && Object.hasOwnProperty.call(message, "client_state")) + $root.google.protobuf.Any.encode(message.client_state, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified QueryClientStatesRequest message, length delimited. Does not implicitly {@link ibc.core.client.v1.QueryClientStatesRequest.verify|verify} messages. + * Encodes the specified IdentifiedClientState message, length delimited. Does not implicitly {@link ibc.core.client.v1.IdentifiedClientState.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.client.v1.QueryClientStatesRequest + * @memberof ibc.core.client.v1.IdentifiedClientState * @static - * @param {ibc.core.client.v1.IQueryClientStatesRequest} message QueryClientStatesRequest message or plain object to encode + * @param {ibc.core.client.v1.IIdentifiedClientState} message IdentifiedClientState message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryClientStatesRequest.encodeDelimited = function encodeDelimited(message, writer) { + IdentifiedClientState.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryClientStatesRequest message from the specified reader or buffer. + * Decodes an IdentifiedClientState message from the specified reader or buffer. * @function decode - * @memberof ibc.core.client.v1.QueryClientStatesRequest + * @memberof ibc.core.client.v1.IdentifiedClientState * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.client.v1.QueryClientStatesRequest} QueryClientStatesRequest + * @returns {ibc.core.client.v1.IdentifiedClientState} IdentifiedClientState * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryClientStatesRequest.decode = function decode(reader, length) { + IdentifiedClientState.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.QueryClientStatesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.IdentifiedClientState(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.pagination = $root.cosmos.base.query.v1beta1.PageRequest.decode(reader, reader.uint32()); + message.client_id = reader.string(); + break; + case 2: + message.client_state = $root.google.protobuf.Any.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -52620,114 +59106,122 @@ }; /** - * Decodes a QueryClientStatesRequest message from the specified reader or buffer, length delimited. + * Decodes an IdentifiedClientState message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.client.v1.QueryClientStatesRequest + * @memberof ibc.core.client.v1.IdentifiedClientState * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.client.v1.QueryClientStatesRequest} QueryClientStatesRequest + * @returns {ibc.core.client.v1.IdentifiedClientState} IdentifiedClientState * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryClientStatesRequest.decodeDelimited = function decodeDelimited(reader) { + IdentifiedClientState.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryClientStatesRequest message. + * Verifies an IdentifiedClientState message. * @function verify - * @memberof ibc.core.client.v1.QueryClientStatesRequest + * @memberof ibc.core.client.v1.IdentifiedClientState * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryClientStatesRequest.verify = function verify(message) { + IdentifiedClientState.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.pagination != null && message.hasOwnProperty("pagination")) { - var error = $root.cosmos.base.query.v1beta1.PageRequest.verify(message.pagination); + if (message.client_id != null && message.hasOwnProperty("client_id")) + if (!$util.isString(message.client_id)) + return "client_id: string expected"; + if (message.client_state != null && message.hasOwnProperty("client_state")) { + var error = $root.google.protobuf.Any.verify(message.client_state); if (error) - return "pagination." + error; + return "client_state." + error; } return null; }; /** - * Creates a QueryClientStatesRequest message from a plain object. Also converts values to their respective internal types. + * Creates an IdentifiedClientState message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.client.v1.QueryClientStatesRequest + * @memberof ibc.core.client.v1.IdentifiedClientState * @static * @param {Object.} object Plain object - * @returns {ibc.core.client.v1.QueryClientStatesRequest} QueryClientStatesRequest + * @returns {ibc.core.client.v1.IdentifiedClientState} IdentifiedClientState */ - QueryClientStatesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.client.v1.QueryClientStatesRequest) + IdentifiedClientState.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.client.v1.IdentifiedClientState) return object; - var message = new $root.ibc.core.client.v1.QueryClientStatesRequest(); - if (object.pagination != null) { - if (typeof object.pagination !== "object") - throw TypeError(".ibc.core.client.v1.QueryClientStatesRequest.pagination: object expected"); - message.pagination = $root.cosmos.base.query.v1beta1.PageRequest.fromObject(object.pagination); + var message = new $root.ibc.core.client.v1.IdentifiedClientState(); + if (object.client_id != null) + message.client_id = String(object.client_id); + if (object.client_state != null) { + if (typeof object.client_state !== "object") + throw TypeError(".ibc.core.client.v1.IdentifiedClientState.client_state: object expected"); + message.client_state = $root.google.protobuf.Any.fromObject(object.client_state); } return message; }; /** - * Creates a plain object from a QueryClientStatesRequest message. Also converts values to other types if specified. + * Creates a plain object from an IdentifiedClientState message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.client.v1.QueryClientStatesRequest + * @memberof ibc.core.client.v1.IdentifiedClientState * @static - * @param {ibc.core.client.v1.QueryClientStatesRequest} message QueryClientStatesRequest + * @param {ibc.core.client.v1.IdentifiedClientState} message IdentifiedClientState * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryClientStatesRequest.toObject = function toObject(message, options) { + IdentifiedClientState.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.pagination = null; - if (message.pagination != null && message.hasOwnProperty("pagination")) - object.pagination = $root.cosmos.base.query.v1beta1.PageRequest.toObject(message.pagination, options); + if (options.defaults) { + object.client_id = ""; + object.client_state = null; + } + if (message.client_id != null && message.hasOwnProperty("client_id")) + object.client_id = message.client_id; + if (message.client_state != null && message.hasOwnProperty("client_state")) + object.client_state = $root.google.protobuf.Any.toObject(message.client_state, options); return object; }; /** - * Converts this QueryClientStatesRequest to JSON. + * Converts this IdentifiedClientState to JSON. * @function toJSON - * @memberof ibc.core.client.v1.QueryClientStatesRequest + * @memberof ibc.core.client.v1.IdentifiedClientState * @instance * @returns {Object.} JSON object */ - QueryClientStatesRequest.prototype.toJSON = function toJSON() { + IdentifiedClientState.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryClientStatesRequest; + return IdentifiedClientState; })(); - v1.QueryClientStatesResponse = (function() { + v1.ConsensusStateWithHeight = (function() { /** - * Properties of a QueryClientStatesResponse. + * Properties of a ConsensusStateWithHeight. * @memberof ibc.core.client.v1 - * @interface IQueryClientStatesResponse - * @property {Array.|null} [client_states] QueryClientStatesResponse client_states - * @property {cosmos.base.query.v1beta1.IPageResponse|null} [pagination] QueryClientStatesResponse pagination + * @interface IConsensusStateWithHeight + * @property {ibc.core.client.v1.IHeight|null} [height] ConsensusStateWithHeight height + * @property {google.protobuf.IAny|null} [consensus_state] ConsensusStateWithHeight consensus_state */ /** - * Constructs a new QueryClientStatesResponse. + * Constructs a new ConsensusStateWithHeight. * @memberof ibc.core.client.v1 - * @classdesc Represents a QueryClientStatesResponse. - * @implements IQueryClientStatesResponse + * @classdesc Represents a ConsensusStateWithHeight. + * @implements IConsensusStateWithHeight * @constructor - * @param {ibc.core.client.v1.IQueryClientStatesResponse=} [properties] Properties to set + * @param {ibc.core.client.v1.IConsensusStateWithHeight=} [properties] Properties to set */ - function QueryClientStatesResponse(properties) { - this.client_states = []; + function ConsensusStateWithHeight(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -52735,79 +59229,76 @@ } /** - * QueryClientStatesResponse client_states. - * @member {Array.} client_states - * @memberof ibc.core.client.v1.QueryClientStatesResponse + * ConsensusStateWithHeight height. + * @member {ibc.core.client.v1.IHeight|null|undefined} height + * @memberof ibc.core.client.v1.ConsensusStateWithHeight * @instance */ - QueryClientStatesResponse.prototype.client_states = $util.emptyArray; - - /** - * QueryClientStatesResponse pagination. - * @member {cosmos.base.query.v1beta1.IPageResponse|null|undefined} pagination - * @memberof ibc.core.client.v1.QueryClientStatesResponse + ConsensusStateWithHeight.prototype.height = null; + + /** + * ConsensusStateWithHeight consensus_state. + * @member {google.protobuf.IAny|null|undefined} consensus_state + * @memberof ibc.core.client.v1.ConsensusStateWithHeight * @instance */ - QueryClientStatesResponse.prototype.pagination = null; + ConsensusStateWithHeight.prototype.consensus_state = null; /** - * Encodes the specified QueryClientStatesResponse message. Does not implicitly {@link ibc.core.client.v1.QueryClientStatesResponse.verify|verify} messages. + * Encodes the specified ConsensusStateWithHeight message. Does not implicitly {@link ibc.core.client.v1.ConsensusStateWithHeight.verify|verify} messages. * @function encode - * @memberof ibc.core.client.v1.QueryClientStatesResponse + * @memberof ibc.core.client.v1.ConsensusStateWithHeight * @static - * @param {ibc.core.client.v1.IQueryClientStatesResponse} message QueryClientStatesResponse message or plain object to encode + * @param {ibc.core.client.v1.IConsensusStateWithHeight} message ConsensusStateWithHeight message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryClientStatesResponse.encode = function encode(message, writer) { + ConsensusStateWithHeight.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.client_states != null && message.client_states.length) - for (var i = 0; i < message.client_states.length; ++i) - $root.ibc.core.client.v1.IdentifiedClientState.encode(message.client_states[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.pagination != null && Object.hasOwnProperty.call(message, "pagination")) - $root.cosmos.base.query.v1beta1.PageResponse.encode(message.pagination, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.height != null && Object.hasOwnProperty.call(message, "height")) + $root.ibc.core.client.v1.Height.encode(message.height, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.consensus_state != null && Object.hasOwnProperty.call(message, "consensus_state")) + $root.google.protobuf.Any.encode(message.consensus_state, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified QueryClientStatesResponse message, length delimited. Does not implicitly {@link ibc.core.client.v1.QueryClientStatesResponse.verify|verify} messages. + * Encodes the specified ConsensusStateWithHeight message, length delimited. Does not implicitly {@link ibc.core.client.v1.ConsensusStateWithHeight.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.client.v1.QueryClientStatesResponse + * @memberof ibc.core.client.v1.ConsensusStateWithHeight * @static - * @param {ibc.core.client.v1.IQueryClientStatesResponse} message QueryClientStatesResponse message or plain object to encode + * @param {ibc.core.client.v1.IConsensusStateWithHeight} message ConsensusStateWithHeight message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryClientStatesResponse.encodeDelimited = function encodeDelimited(message, writer) { + ConsensusStateWithHeight.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryClientStatesResponse message from the specified reader or buffer. + * Decodes a ConsensusStateWithHeight message from the specified reader or buffer. * @function decode - * @memberof ibc.core.client.v1.QueryClientStatesResponse + * @memberof ibc.core.client.v1.ConsensusStateWithHeight * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.client.v1.QueryClientStatesResponse} QueryClientStatesResponse + * @returns {ibc.core.client.v1.ConsensusStateWithHeight} ConsensusStateWithHeight * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryClientStatesResponse.decode = function decode(reader, length) { + ConsensusStateWithHeight.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.QueryClientStatesResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.ConsensusStateWithHeight(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.client_states && message.client_states.length)) - message.client_states = []; - message.client_states.push($root.ibc.core.client.v1.IdentifiedClientState.decode(reader, reader.uint32())); + message.height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); break; case 2: - message.pagination = $root.cosmos.base.query.v1beta1.PageResponse.decode(reader, reader.uint32()); + message.consensus_state = $root.google.protobuf.Any.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -52818,141 +59309,128 @@ }; /** - * Decodes a QueryClientStatesResponse message from the specified reader or buffer, length delimited. + * Decodes a ConsensusStateWithHeight message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.client.v1.QueryClientStatesResponse + * @memberof ibc.core.client.v1.ConsensusStateWithHeight * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.client.v1.QueryClientStatesResponse} QueryClientStatesResponse + * @returns {ibc.core.client.v1.ConsensusStateWithHeight} ConsensusStateWithHeight * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryClientStatesResponse.decodeDelimited = function decodeDelimited(reader) { + ConsensusStateWithHeight.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryClientStatesResponse message. + * Verifies a ConsensusStateWithHeight message. * @function verify - * @memberof ibc.core.client.v1.QueryClientStatesResponse + * @memberof ibc.core.client.v1.ConsensusStateWithHeight * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryClientStatesResponse.verify = function verify(message) { + ConsensusStateWithHeight.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.client_states != null && message.hasOwnProperty("client_states")) { - if (!Array.isArray(message.client_states)) - return "client_states: array expected"; - for (var i = 0; i < message.client_states.length; ++i) { - var error = $root.ibc.core.client.v1.IdentifiedClientState.verify(message.client_states[i]); - if (error) - return "client_states." + error; - } + if (message.height != null && message.hasOwnProperty("height")) { + var error = $root.ibc.core.client.v1.Height.verify(message.height); + if (error) + return "height." + error; } - if (message.pagination != null && message.hasOwnProperty("pagination")) { - var error = $root.cosmos.base.query.v1beta1.PageResponse.verify(message.pagination); + if (message.consensus_state != null && message.hasOwnProperty("consensus_state")) { + var error = $root.google.protobuf.Any.verify(message.consensus_state); if (error) - return "pagination." + error; + return "consensus_state." + error; } return null; }; /** - * Creates a QueryClientStatesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ConsensusStateWithHeight message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.client.v1.QueryClientStatesResponse + * @memberof ibc.core.client.v1.ConsensusStateWithHeight * @static * @param {Object.} object Plain object - * @returns {ibc.core.client.v1.QueryClientStatesResponse} QueryClientStatesResponse + * @returns {ibc.core.client.v1.ConsensusStateWithHeight} ConsensusStateWithHeight */ - QueryClientStatesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.client.v1.QueryClientStatesResponse) + ConsensusStateWithHeight.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.client.v1.ConsensusStateWithHeight) return object; - var message = new $root.ibc.core.client.v1.QueryClientStatesResponse(); - if (object.client_states) { - if (!Array.isArray(object.client_states)) - throw TypeError(".ibc.core.client.v1.QueryClientStatesResponse.client_states: array expected"); - message.client_states = []; - for (var i = 0; i < object.client_states.length; ++i) { - if (typeof object.client_states[i] !== "object") - throw TypeError(".ibc.core.client.v1.QueryClientStatesResponse.client_states: object expected"); - message.client_states[i] = $root.ibc.core.client.v1.IdentifiedClientState.fromObject(object.client_states[i]); - } + var message = new $root.ibc.core.client.v1.ConsensusStateWithHeight(); + if (object.height != null) { + if (typeof object.height !== "object") + throw TypeError(".ibc.core.client.v1.ConsensusStateWithHeight.height: object expected"); + message.height = $root.ibc.core.client.v1.Height.fromObject(object.height); } - if (object.pagination != null) { - if (typeof object.pagination !== "object") - throw TypeError(".ibc.core.client.v1.QueryClientStatesResponse.pagination: object expected"); - message.pagination = $root.cosmos.base.query.v1beta1.PageResponse.fromObject(object.pagination); + if (object.consensus_state != null) { + if (typeof object.consensus_state !== "object") + throw TypeError(".ibc.core.client.v1.ConsensusStateWithHeight.consensus_state: object expected"); + message.consensus_state = $root.google.protobuf.Any.fromObject(object.consensus_state); } return message; }; /** - * Creates a plain object from a QueryClientStatesResponse message. Also converts values to other types if specified. + * Creates a plain object from a ConsensusStateWithHeight message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.client.v1.QueryClientStatesResponse + * @memberof ibc.core.client.v1.ConsensusStateWithHeight * @static - * @param {ibc.core.client.v1.QueryClientStatesResponse} message QueryClientStatesResponse + * @param {ibc.core.client.v1.ConsensusStateWithHeight} message ConsensusStateWithHeight * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryClientStatesResponse.toObject = function toObject(message, options) { + ConsensusStateWithHeight.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.client_states = []; - if (options.defaults) - object.pagination = null; - if (message.client_states && message.client_states.length) { - object.client_states = []; - for (var j = 0; j < message.client_states.length; ++j) - object.client_states[j] = $root.ibc.core.client.v1.IdentifiedClientState.toObject(message.client_states[j], options); + if (options.defaults) { + object.height = null; + object.consensus_state = null; } - if (message.pagination != null && message.hasOwnProperty("pagination")) - object.pagination = $root.cosmos.base.query.v1beta1.PageResponse.toObject(message.pagination, options); + if (message.height != null && message.hasOwnProperty("height")) + object.height = $root.ibc.core.client.v1.Height.toObject(message.height, options); + if (message.consensus_state != null && message.hasOwnProperty("consensus_state")) + object.consensus_state = $root.google.protobuf.Any.toObject(message.consensus_state, options); return object; }; /** - * Converts this QueryClientStatesResponse to JSON. + * Converts this ConsensusStateWithHeight to JSON. * @function toJSON - * @memberof ibc.core.client.v1.QueryClientStatesResponse + * @memberof ibc.core.client.v1.ConsensusStateWithHeight * @instance * @returns {Object.} JSON object */ - QueryClientStatesResponse.prototype.toJSON = function toJSON() { + ConsensusStateWithHeight.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryClientStatesResponse; + return ConsensusStateWithHeight; })(); - v1.QueryConsensusStateRequest = (function() { + v1.ClientConsensusStates = (function() { /** - * Properties of a QueryConsensusStateRequest. + * Properties of a ClientConsensusStates. * @memberof ibc.core.client.v1 - * @interface IQueryConsensusStateRequest - * @property {string|null} [client_id] QueryConsensusStateRequest client_id - * @property {Long|null} [revision_number] QueryConsensusStateRequest revision_number - * @property {Long|null} [revision_height] QueryConsensusStateRequest revision_height - * @property {boolean|null} [latest_height] QueryConsensusStateRequest latest_height + * @interface IClientConsensusStates + * @property {string|null} [client_id] ClientConsensusStates client_id + * @property {Array.|null} [consensus_states] ClientConsensusStates consensus_states */ /** - * Constructs a new QueryConsensusStateRequest. + * Constructs a new ClientConsensusStates. * @memberof ibc.core.client.v1 - * @classdesc Represents a QueryConsensusStateRequest. - * @implements IQueryConsensusStateRequest + * @classdesc Represents a ClientConsensusStates. + * @implements IClientConsensusStates * @constructor - * @param {ibc.core.client.v1.IQueryConsensusStateRequest=} [properties] Properties to set + * @param {ibc.core.client.v1.IClientConsensusStates=} [properties] Properties to set */ - function QueryConsensusStateRequest(properties) { + function ClientConsensusStates(properties) { + this.consensus_states = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -52960,88 +59438,69 @@ } /** - * QueryConsensusStateRequest client_id. + * ClientConsensusStates client_id. * @member {string} client_id - * @memberof ibc.core.client.v1.QueryConsensusStateRequest - * @instance - */ - QueryConsensusStateRequest.prototype.client_id = ""; - - /** - * QueryConsensusStateRequest revision_number. - * @member {Long} revision_number - * @memberof ibc.core.client.v1.QueryConsensusStateRequest - * @instance - */ - QueryConsensusStateRequest.prototype.revision_number = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * QueryConsensusStateRequest revision_height. - * @member {Long} revision_height - * @memberof ibc.core.client.v1.QueryConsensusStateRequest + * @memberof ibc.core.client.v1.ClientConsensusStates * @instance */ - QueryConsensusStateRequest.prototype.revision_height = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + ClientConsensusStates.prototype.client_id = ""; /** - * QueryConsensusStateRequest latest_height. - * @member {boolean} latest_height - * @memberof ibc.core.client.v1.QueryConsensusStateRequest + * ClientConsensusStates consensus_states. + * @member {Array.} consensus_states + * @memberof ibc.core.client.v1.ClientConsensusStates * @instance */ - QueryConsensusStateRequest.prototype.latest_height = false; + ClientConsensusStates.prototype.consensus_states = $util.emptyArray; /** - * Encodes the specified QueryConsensusStateRequest message. Does not implicitly {@link ibc.core.client.v1.QueryConsensusStateRequest.verify|verify} messages. + * Encodes the specified ClientConsensusStates message. Does not implicitly {@link ibc.core.client.v1.ClientConsensusStates.verify|verify} messages. * @function encode - * @memberof ibc.core.client.v1.QueryConsensusStateRequest + * @memberof ibc.core.client.v1.ClientConsensusStates * @static - * @param {ibc.core.client.v1.IQueryConsensusStateRequest} message QueryConsensusStateRequest message or plain object to encode + * @param {ibc.core.client.v1.IClientConsensusStates} message ClientConsensusStates message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryConsensusStateRequest.encode = function encode(message, writer) { + ClientConsensusStates.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.client_id != null && Object.hasOwnProperty.call(message, "client_id")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.client_id); - if (message.revision_number != null && Object.hasOwnProperty.call(message, "revision_number")) - writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.revision_number); - if (message.revision_height != null && Object.hasOwnProperty.call(message, "revision_height")) - writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.revision_height); - if (message.latest_height != null && Object.hasOwnProperty.call(message, "latest_height")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.latest_height); + if (message.consensus_states != null && message.consensus_states.length) + for (var i = 0; i < message.consensus_states.length; ++i) + $root.ibc.core.client.v1.ConsensusStateWithHeight.encode(message.consensus_states[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified QueryConsensusStateRequest message, length delimited. Does not implicitly {@link ibc.core.client.v1.QueryConsensusStateRequest.verify|verify} messages. + * Encodes the specified ClientConsensusStates message, length delimited. Does not implicitly {@link ibc.core.client.v1.ClientConsensusStates.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.client.v1.QueryConsensusStateRequest + * @memberof ibc.core.client.v1.ClientConsensusStates * @static - * @param {ibc.core.client.v1.IQueryConsensusStateRequest} message QueryConsensusStateRequest message or plain object to encode + * @param {ibc.core.client.v1.IClientConsensusStates} message ClientConsensusStates message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryConsensusStateRequest.encodeDelimited = function encodeDelimited(message, writer) { + ClientConsensusStates.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryConsensusStateRequest message from the specified reader or buffer. + * Decodes a ClientConsensusStates message from the specified reader or buffer. * @function decode - * @memberof ibc.core.client.v1.QueryConsensusStateRequest + * @memberof ibc.core.client.v1.ClientConsensusStates * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.client.v1.QueryConsensusStateRequest} QueryConsensusStateRequest + * @returns {ibc.core.client.v1.ClientConsensusStates} ClientConsensusStates * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryConsensusStateRequest.decode = function decode(reader, length) { + ClientConsensusStates.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.QueryConsensusStateRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.ClientConsensusStates(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -53049,13 +59508,9 @@ message.client_id = reader.string(); break; case 2: - message.revision_number = reader.uint64(); - break; - case 3: - message.revision_height = reader.uint64(); - break; - case 4: - message.latest_height = reader.bool(); + if (!(message.consensus_states && message.consensus_states.length)) + message.consensus_states = []; + message.consensus_states.push($root.ibc.core.client.v1.ConsensusStateWithHeight.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -53066,162 +59521,136 @@ }; /** - * Decodes a QueryConsensusStateRequest message from the specified reader or buffer, length delimited. + * Decodes a ClientConsensusStates message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.client.v1.QueryConsensusStateRequest + * @memberof ibc.core.client.v1.ClientConsensusStates * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.client.v1.QueryConsensusStateRequest} QueryConsensusStateRequest + * @returns {ibc.core.client.v1.ClientConsensusStates} ClientConsensusStates * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryConsensusStateRequest.decodeDelimited = function decodeDelimited(reader) { + ClientConsensusStates.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryConsensusStateRequest message. + * Verifies a ClientConsensusStates message. * @function verify - * @memberof ibc.core.client.v1.QueryConsensusStateRequest + * @memberof ibc.core.client.v1.ClientConsensusStates * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryConsensusStateRequest.verify = function verify(message) { + ClientConsensusStates.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.client_id != null && message.hasOwnProperty("client_id")) if (!$util.isString(message.client_id)) return "client_id: string expected"; - if (message.revision_number != null && message.hasOwnProperty("revision_number")) - if (!$util.isInteger(message.revision_number) && !(message.revision_number && $util.isInteger(message.revision_number.low) && $util.isInteger(message.revision_number.high))) - return "revision_number: integer|Long expected"; - if (message.revision_height != null && message.hasOwnProperty("revision_height")) - if (!$util.isInteger(message.revision_height) && !(message.revision_height && $util.isInteger(message.revision_height.low) && $util.isInteger(message.revision_height.high))) - return "revision_height: integer|Long expected"; - if (message.latest_height != null && message.hasOwnProperty("latest_height")) - if (typeof message.latest_height !== "boolean") - return "latest_height: boolean expected"; + if (message.consensus_states != null && message.hasOwnProperty("consensus_states")) { + if (!Array.isArray(message.consensus_states)) + return "consensus_states: array expected"; + for (var i = 0; i < message.consensus_states.length; ++i) { + var error = $root.ibc.core.client.v1.ConsensusStateWithHeight.verify(message.consensus_states[i]); + if (error) + return "consensus_states." + error; + } + } return null; }; /** - * Creates a QueryConsensusStateRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ClientConsensusStates message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.client.v1.QueryConsensusStateRequest + * @memberof ibc.core.client.v1.ClientConsensusStates * @static * @param {Object.} object Plain object - * @returns {ibc.core.client.v1.QueryConsensusStateRequest} QueryConsensusStateRequest + * @returns {ibc.core.client.v1.ClientConsensusStates} ClientConsensusStates */ - QueryConsensusStateRequest.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.client.v1.QueryConsensusStateRequest) + ClientConsensusStates.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.client.v1.ClientConsensusStates) return object; - var message = new $root.ibc.core.client.v1.QueryConsensusStateRequest(); + var message = new $root.ibc.core.client.v1.ClientConsensusStates(); if (object.client_id != null) message.client_id = String(object.client_id); - if (object.revision_number != null) - if ($util.Long) - (message.revision_number = $util.Long.fromValue(object.revision_number)).unsigned = true; - else if (typeof object.revision_number === "string") - message.revision_number = parseInt(object.revision_number, 10); - else if (typeof object.revision_number === "number") - message.revision_number = object.revision_number; - else if (typeof object.revision_number === "object") - message.revision_number = new $util.LongBits(object.revision_number.low >>> 0, object.revision_number.high >>> 0).toNumber(true); - if (object.revision_height != null) - if ($util.Long) - (message.revision_height = $util.Long.fromValue(object.revision_height)).unsigned = true; - else if (typeof object.revision_height === "string") - message.revision_height = parseInt(object.revision_height, 10); - else if (typeof object.revision_height === "number") - message.revision_height = object.revision_height; - else if (typeof object.revision_height === "object") - message.revision_height = new $util.LongBits(object.revision_height.low >>> 0, object.revision_height.high >>> 0).toNumber(true); - if (object.latest_height != null) - message.latest_height = Boolean(object.latest_height); + if (object.consensus_states) { + if (!Array.isArray(object.consensus_states)) + throw TypeError(".ibc.core.client.v1.ClientConsensusStates.consensus_states: array expected"); + message.consensus_states = []; + for (var i = 0; i < object.consensus_states.length; ++i) { + if (typeof object.consensus_states[i] !== "object") + throw TypeError(".ibc.core.client.v1.ClientConsensusStates.consensus_states: object expected"); + message.consensus_states[i] = $root.ibc.core.client.v1.ConsensusStateWithHeight.fromObject(object.consensus_states[i]); + } + } return message; }; /** - * Creates a plain object from a QueryConsensusStateRequest message. Also converts values to other types if specified. + * Creates a plain object from a ClientConsensusStates message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.client.v1.QueryConsensusStateRequest + * @memberof ibc.core.client.v1.ClientConsensusStates * @static - * @param {ibc.core.client.v1.QueryConsensusStateRequest} message QueryConsensusStateRequest + * @param {ibc.core.client.v1.ClientConsensusStates} message ClientConsensusStates * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryConsensusStateRequest.toObject = function toObject(message, options) { + ClientConsensusStates.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { + if (options.arrays || options.defaults) + object.consensus_states = []; + if (options.defaults) object.client_id = ""; - if ($util.Long) { - var long = new $util.Long(0, 0, true); - object.revision_number = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.revision_number = options.longs === String ? "0" : 0; - if ($util.Long) { - var long = new $util.Long(0, 0, true); - object.revision_height = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.revision_height = options.longs === String ? "0" : 0; - object.latest_height = false; - } if (message.client_id != null && message.hasOwnProperty("client_id")) object.client_id = message.client_id; - if (message.revision_number != null && message.hasOwnProperty("revision_number")) - if (typeof message.revision_number === "number") - object.revision_number = options.longs === String ? String(message.revision_number) : message.revision_number; - else - object.revision_number = options.longs === String ? $util.Long.prototype.toString.call(message.revision_number) : options.longs === Number ? new $util.LongBits(message.revision_number.low >>> 0, message.revision_number.high >>> 0).toNumber(true) : message.revision_number; - if (message.revision_height != null && message.hasOwnProperty("revision_height")) - if (typeof message.revision_height === "number") - object.revision_height = options.longs === String ? String(message.revision_height) : message.revision_height; - else - object.revision_height = options.longs === String ? $util.Long.prototype.toString.call(message.revision_height) : options.longs === Number ? new $util.LongBits(message.revision_height.low >>> 0, message.revision_height.high >>> 0).toNumber(true) : message.revision_height; - if (message.latest_height != null && message.hasOwnProperty("latest_height")) - object.latest_height = message.latest_height; + if (message.consensus_states && message.consensus_states.length) { + object.consensus_states = []; + for (var j = 0; j < message.consensus_states.length; ++j) + object.consensus_states[j] = $root.ibc.core.client.v1.ConsensusStateWithHeight.toObject(message.consensus_states[j], options); + } return object; }; /** - * Converts this QueryConsensusStateRequest to JSON. + * Converts this ClientConsensusStates to JSON. * @function toJSON - * @memberof ibc.core.client.v1.QueryConsensusStateRequest + * @memberof ibc.core.client.v1.ClientConsensusStates * @instance * @returns {Object.} JSON object */ - QueryConsensusStateRequest.prototype.toJSON = function toJSON() { + ClientConsensusStates.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryConsensusStateRequest; + return ClientConsensusStates; })(); - v1.QueryConsensusStateResponse = (function() { + v1.ClientUpdateProposal = (function() { /** - * Properties of a QueryConsensusStateResponse. + * Properties of a ClientUpdateProposal. * @memberof ibc.core.client.v1 - * @interface IQueryConsensusStateResponse - * @property {google.protobuf.IAny|null} [consensus_state] QueryConsensusStateResponse consensus_state - * @property {Uint8Array|null} [proof] QueryConsensusStateResponse proof - * @property {ibc.core.client.v1.IHeight|null} [proof_height] QueryConsensusStateResponse proof_height + * @interface IClientUpdateProposal + * @property {string|null} [title] ClientUpdateProposal title + * @property {string|null} [description] ClientUpdateProposal description + * @property {string|null} [subject_client_id] ClientUpdateProposal subject_client_id + * @property {string|null} [substitute_client_id] ClientUpdateProposal substitute_client_id */ /** - * Constructs a new QueryConsensusStateResponse. + * Constructs a new ClientUpdateProposal. * @memberof ibc.core.client.v1 - * @classdesc Represents a QueryConsensusStateResponse. - * @implements IQueryConsensusStateResponse + * @classdesc Represents a ClientUpdateProposal. + * @implements IClientUpdateProposal * @constructor - * @param {ibc.core.client.v1.IQueryConsensusStateResponse=} [properties] Properties to set + * @param {ibc.core.client.v1.IClientUpdateProposal=} [properties] Properties to set */ - function QueryConsensusStateResponse(properties) { + function ClientUpdateProposal(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -53229,89 +59658,102 @@ } /** - * QueryConsensusStateResponse consensus_state. - * @member {google.protobuf.IAny|null|undefined} consensus_state - * @memberof ibc.core.client.v1.QueryConsensusStateResponse + * ClientUpdateProposal title. + * @member {string} title + * @memberof ibc.core.client.v1.ClientUpdateProposal * @instance */ - QueryConsensusStateResponse.prototype.consensus_state = null; + ClientUpdateProposal.prototype.title = ""; /** - * QueryConsensusStateResponse proof. - * @member {Uint8Array} proof - * @memberof ibc.core.client.v1.QueryConsensusStateResponse + * ClientUpdateProposal description. + * @member {string} description + * @memberof ibc.core.client.v1.ClientUpdateProposal * @instance */ - QueryConsensusStateResponse.prototype.proof = $util.newBuffer([]); + ClientUpdateProposal.prototype.description = ""; /** - * QueryConsensusStateResponse proof_height. - * @member {ibc.core.client.v1.IHeight|null|undefined} proof_height - * @memberof ibc.core.client.v1.QueryConsensusStateResponse + * ClientUpdateProposal subject_client_id. + * @member {string} subject_client_id + * @memberof ibc.core.client.v1.ClientUpdateProposal * @instance */ - QueryConsensusStateResponse.prototype.proof_height = null; + ClientUpdateProposal.prototype.subject_client_id = ""; /** - * Encodes the specified QueryConsensusStateResponse message. Does not implicitly {@link ibc.core.client.v1.QueryConsensusStateResponse.verify|verify} messages. + * ClientUpdateProposal substitute_client_id. + * @member {string} substitute_client_id + * @memberof ibc.core.client.v1.ClientUpdateProposal + * @instance + */ + ClientUpdateProposal.prototype.substitute_client_id = ""; + + /** + * Encodes the specified ClientUpdateProposal message. Does not implicitly {@link ibc.core.client.v1.ClientUpdateProposal.verify|verify} messages. * @function encode - * @memberof ibc.core.client.v1.QueryConsensusStateResponse + * @memberof ibc.core.client.v1.ClientUpdateProposal * @static - * @param {ibc.core.client.v1.IQueryConsensusStateResponse} message QueryConsensusStateResponse message or plain object to encode + * @param {ibc.core.client.v1.IClientUpdateProposal} message ClientUpdateProposal message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryConsensusStateResponse.encode = function encode(message, writer) { + ClientUpdateProposal.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.consensus_state != null && Object.hasOwnProperty.call(message, "consensus_state")) - $root.google.protobuf.Any.encode(message.consensus_state, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.proof != null && Object.hasOwnProperty.call(message, "proof")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.proof); - if (message.proof_height != null && Object.hasOwnProperty.call(message, "proof_height")) - $root.ibc.core.client.v1.Height.encode(message.proof_height, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.title != null && Object.hasOwnProperty.call(message, "title")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.title); + if (message.description != null && Object.hasOwnProperty.call(message, "description")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.description); + if (message.subject_client_id != null && Object.hasOwnProperty.call(message, "subject_client_id")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.subject_client_id); + if (message.substitute_client_id != null && Object.hasOwnProperty.call(message, "substitute_client_id")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.substitute_client_id); return writer; }; /** - * Encodes the specified QueryConsensusStateResponse message, length delimited. Does not implicitly {@link ibc.core.client.v1.QueryConsensusStateResponse.verify|verify} messages. + * Encodes the specified ClientUpdateProposal message, length delimited. Does not implicitly {@link ibc.core.client.v1.ClientUpdateProposal.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.client.v1.QueryConsensusStateResponse + * @memberof ibc.core.client.v1.ClientUpdateProposal * @static - * @param {ibc.core.client.v1.IQueryConsensusStateResponse} message QueryConsensusStateResponse message or plain object to encode + * @param {ibc.core.client.v1.IClientUpdateProposal} message ClientUpdateProposal message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryConsensusStateResponse.encodeDelimited = function encodeDelimited(message, writer) { + ClientUpdateProposal.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryConsensusStateResponse message from the specified reader or buffer. + * Decodes a ClientUpdateProposal message from the specified reader or buffer. * @function decode - * @memberof ibc.core.client.v1.QueryConsensusStateResponse + * @memberof ibc.core.client.v1.ClientUpdateProposal * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.client.v1.QueryConsensusStateResponse} QueryConsensusStateResponse + * @returns {ibc.core.client.v1.ClientUpdateProposal} ClientUpdateProposal * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryConsensusStateResponse.decode = function decode(reader, length) { + ClientUpdateProposal.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.QueryConsensusStateResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.ClientUpdateProposal(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.consensus_state = $root.google.protobuf.Any.decode(reader, reader.uint32()); + message.title = reader.string(); break; case 2: - message.proof = reader.bytes(); + message.description = reader.string(); break; case 3: - message.proof_height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); + message.subject_client_id = reader.string(); + break; + case 4: + message.substitute_client_id = reader.string(); break; default: reader.skipType(tag & 7); @@ -53322,144 +59764,135 @@ }; /** - * Decodes a QueryConsensusStateResponse message from the specified reader or buffer, length delimited. + * Decodes a ClientUpdateProposal message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.client.v1.QueryConsensusStateResponse + * @memberof ibc.core.client.v1.ClientUpdateProposal * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.client.v1.QueryConsensusStateResponse} QueryConsensusStateResponse + * @returns {ibc.core.client.v1.ClientUpdateProposal} ClientUpdateProposal * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryConsensusStateResponse.decodeDelimited = function decodeDelimited(reader) { + ClientUpdateProposal.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryConsensusStateResponse message. + * Verifies a ClientUpdateProposal message. * @function verify - * @memberof ibc.core.client.v1.QueryConsensusStateResponse + * @memberof ibc.core.client.v1.ClientUpdateProposal * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryConsensusStateResponse.verify = function verify(message) { + ClientUpdateProposal.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.consensus_state != null && message.hasOwnProperty("consensus_state")) { - var error = $root.google.protobuf.Any.verify(message.consensus_state); - if (error) - return "consensus_state." + error; - } - if (message.proof != null && message.hasOwnProperty("proof")) - if (!(message.proof && typeof message.proof.length === "number" || $util.isString(message.proof))) - return "proof: buffer expected"; - if (message.proof_height != null && message.hasOwnProperty("proof_height")) { - var error = $root.ibc.core.client.v1.Height.verify(message.proof_height); - if (error) - return "proof_height." + error; - } + if (message.title != null && message.hasOwnProperty("title")) + if (!$util.isString(message.title)) + return "title: string expected"; + if (message.description != null && message.hasOwnProperty("description")) + if (!$util.isString(message.description)) + return "description: string expected"; + if (message.subject_client_id != null && message.hasOwnProperty("subject_client_id")) + if (!$util.isString(message.subject_client_id)) + return "subject_client_id: string expected"; + if (message.substitute_client_id != null && message.hasOwnProperty("substitute_client_id")) + if (!$util.isString(message.substitute_client_id)) + return "substitute_client_id: string expected"; return null; }; /** - * Creates a QueryConsensusStateResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ClientUpdateProposal message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.client.v1.QueryConsensusStateResponse + * @memberof ibc.core.client.v1.ClientUpdateProposal * @static * @param {Object.} object Plain object - * @returns {ibc.core.client.v1.QueryConsensusStateResponse} QueryConsensusStateResponse + * @returns {ibc.core.client.v1.ClientUpdateProposal} ClientUpdateProposal */ - QueryConsensusStateResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.client.v1.QueryConsensusStateResponse) + ClientUpdateProposal.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.client.v1.ClientUpdateProposal) return object; - var message = new $root.ibc.core.client.v1.QueryConsensusStateResponse(); - if (object.consensus_state != null) { - if (typeof object.consensus_state !== "object") - throw TypeError(".ibc.core.client.v1.QueryConsensusStateResponse.consensus_state: object expected"); - message.consensus_state = $root.google.protobuf.Any.fromObject(object.consensus_state); - } - if (object.proof != null) - if (typeof object.proof === "string") - $util.base64.decode(object.proof, message.proof = $util.newBuffer($util.base64.length(object.proof)), 0); - else if (object.proof.length) - message.proof = object.proof; - if (object.proof_height != null) { - if (typeof object.proof_height !== "object") - throw TypeError(".ibc.core.client.v1.QueryConsensusStateResponse.proof_height: object expected"); - message.proof_height = $root.ibc.core.client.v1.Height.fromObject(object.proof_height); - } + var message = new $root.ibc.core.client.v1.ClientUpdateProposal(); + if (object.title != null) + message.title = String(object.title); + if (object.description != null) + message.description = String(object.description); + if (object.subject_client_id != null) + message.subject_client_id = String(object.subject_client_id); + if (object.substitute_client_id != null) + message.substitute_client_id = String(object.substitute_client_id); return message; }; /** - * Creates a plain object from a QueryConsensusStateResponse message. Also converts values to other types if specified. + * Creates a plain object from a ClientUpdateProposal message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.client.v1.QueryConsensusStateResponse + * @memberof ibc.core.client.v1.ClientUpdateProposal * @static - * @param {ibc.core.client.v1.QueryConsensusStateResponse} message QueryConsensusStateResponse + * @param {ibc.core.client.v1.ClientUpdateProposal} message ClientUpdateProposal * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryConsensusStateResponse.toObject = function toObject(message, options) { + ClientUpdateProposal.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.consensus_state = null; - if (options.bytes === String) - object.proof = ""; - else { - object.proof = []; - if (options.bytes !== Array) - object.proof = $util.newBuffer(object.proof); - } - object.proof_height = null; + object.title = ""; + object.description = ""; + object.subject_client_id = ""; + object.substitute_client_id = ""; } - if (message.consensus_state != null && message.hasOwnProperty("consensus_state")) - object.consensus_state = $root.google.protobuf.Any.toObject(message.consensus_state, options); - if (message.proof != null && message.hasOwnProperty("proof")) - object.proof = options.bytes === String ? $util.base64.encode(message.proof, 0, message.proof.length) : options.bytes === Array ? Array.prototype.slice.call(message.proof) : message.proof; - if (message.proof_height != null && message.hasOwnProperty("proof_height")) - object.proof_height = $root.ibc.core.client.v1.Height.toObject(message.proof_height, options); + if (message.title != null && message.hasOwnProperty("title")) + object.title = message.title; + if (message.description != null && message.hasOwnProperty("description")) + object.description = message.description; + if (message.subject_client_id != null && message.hasOwnProperty("subject_client_id")) + object.subject_client_id = message.subject_client_id; + if (message.substitute_client_id != null && message.hasOwnProperty("substitute_client_id")) + object.substitute_client_id = message.substitute_client_id; return object; }; /** - * Converts this QueryConsensusStateResponse to JSON. + * Converts this ClientUpdateProposal to JSON. * @function toJSON - * @memberof ibc.core.client.v1.QueryConsensusStateResponse + * @memberof ibc.core.client.v1.ClientUpdateProposal * @instance * @returns {Object.} JSON object */ - QueryConsensusStateResponse.prototype.toJSON = function toJSON() { + ClientUpdateProposal.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryConsensusStateResponse; + return ClientUpdateProposal; })(); - v1.QueryConsensusStatesRequest = (function() { + v1.UpgradeProposal = (function() { /** - * Properties of a QueryConsensusStatesRequest. + * Properties of an UpgradeProposal. * @memberof ibc.core.client.v1 - * @interface IQueryConsensusStatesRequest - * @property {string|null} [client_id] QueryConsensusStatesRequest client_id - * @property {cosmos.base.query.v1beta1.IPageRequest|null} [pagination] QueryConsensusStatesRequest pagination + * @interface IUpgradeProposal + * @property {string|null} [title] UpgradeProposal title + * @property {string|null} [description] UpgradeProposal description + * @property {cosmos.upgrade.v1beta1.IPlan|null} [plan] UpgradeProposal plan + * @property {google.protobuf.IAny|null} [upgraded_client_state] UpgradeProposal upgraded_client_state */ /** - * Constructs a new QueryConsensusStatesRequest. + * Constructs a new UpgradeProposal. * @memberof ibc.core.client.v1 - * @classdesc Represents a QueryConsensusStatesRequest. - * @implements IQueryConsensusStatesRequest + * @classdesc Represents an UpgradeProposal. + * @implements IUpgradeProposal * @constructor - * @param {ibc.core.client.v1.IQueryConsensusStatesRequest=} [properties] Properties to set + * @param {ibc.core.client.v1.IUpgradeProposal=} [properties] Properties to set */ - function QueryConsensusStatesRequest(properties) { + function UpgradeProposal(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -53467,76 +59900,102 @@ } /** - * QueryConsensusStatesRequest client_id. - * @member {string} client_id - * @memberof ibc.core.client.v1.QueryConsensusStatesRequest + * UpgradeProposal title. + * @member {string} title + * @memberof ibc.core.client.v1.UpgradeProposal * @instance */ - QueryConsensusStatesRequest.prototype.client_id = ""; + UpgradeProposal.prototype.title = ""; /** - * QueryConsensusStatesRequest pagination. - * @member {cosmos.base.query.v1beta1.IPageRequest|null|undefined} pagination - * @memberof ibc.core.client.v1.QueryConsensusStatesRequest + * UpgradeProposal description. + * @member {string} description + * @memberof ibc.core.client.v1.UpgradeProposal * @instance */ - QueryConsensusStatesRequest.prototype.pagination = null; + UpgradeProposal.prototype.description = ""; /** - * Encodes the specified QueryConsensusStatesRequest message. Does not implicitly {@link ibc.core.client.v1.QueryConsensusStatesRequest.verify|verify} messages. + * UpgradeProposal plan. + * @member {cosmos.upgrade.v1beta1.IPlan|null|undefined} plan + * @memberof ibc.core.client.v1.UpgradeProposal + * @instance + */ + UpgradeProposal.prototype.plan = null; + + /** + * UpgradeProposal upgraded_client_state. + * @member {google.protobuf.IAny|null|undefined} upgraded_client_state + * @memberof ibc.core.client.v1.UpgradeProposal + * @instance + */ + UpgradeProposal.prototype.upgraded_client_state = null; + + /** + * Encodes the specified UpgradeProposal message. Does not implicitly {@link ibc.core.client.v1.UpgradeProposal.verify|verify} messages. * @function encode - * @memberof ibc.core.client.v1.QueryConsensusStatesRequest + * @memberof ibc.core.client.v1.UpgradeProposal * @static - * @param {ibc.core.client.v1.IQueryConsensusStatesRequest} message QueryConsensusStatesRequest message or plain object to encode + * @param {ibc.core.client.v1.IUpgradeProposal} message UpgradeProposal message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryConsensusStatesRequest.encode = function encode(message, writer) { + UpgradeProposal.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.client_id != null && Object.hasOwnProperty.call(message, "client_id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.client_id); - if (message.pagination != null && Object.hasOwnProperty.call(message, "pagination")) - $root.cosmos.base.query.v1beta1.PageRequest.encode(message.pagination, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.title != null && Object.hasOwnProperty.call(message, "title")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.title); + if (message.description != null && Object.hasOwnProperty.call(message, "description")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.description); + if (message.plan != null && Object.hasOwnProperty.call(message, "plan")) + $root.cosmos.upgrade.v1beta1.Plan.encode(message.plan, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.upgraded_client_state != null && Object.hasOwnProperty.call(message, "upgraded_client_state")) + $root.google.protobuf.Any.encode(message.upgraded_client_state, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; /** - * Encodes the specified QueryConsensusStatesRequest message, length delimited. Does not implicitly {@link ibc.core.client.v1.QueryConsensusStatesRequest.verify|verify} messages. + * Encodes the specified UpgradeProposal message, length delimited. Does not implicitly {@link ibc.core.client.v1.UpgradeProposal.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.client.v1.QueryConsensusStatesRequest + * @memberof ibc.core.client.v1.UpgradeProposal * @static - * @param {ibc.core.client.v1.IQueryConsensusStatesRequest} message QueryConsensusStatesRequest message or plain object to encode + * @param {ibc.core.client.v1.IUpgradeProposal} message UpgradeProposal message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryConsensusStatesRequest.encodeDelimited = function encodeDelimited(message, writer) { + UpgradeProposal.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryConsensusStatesRequest message from the specified reader or buffer. + * Decodes an UpgradeProposal message from the specified reader or buffer. * @function decode - * @memberof ibc.core.client.v1.QueryConsensusStatesRequest + * @memberof ibc.core.client.v1.UpgradeProposal * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.client.v1.QueryConsensusStatesRequest} QueryConsensusStatesRequest + * @returns {ibc.core.client.v1.UpgradeProposal} UpgradeProposal * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryConsensusStatesRequest.decode = function decode(reader, length) { + UpgradeProposal.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.QueryConsensusStatesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.UpgradeProposal(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.client_id = reader.string(); + message.title = reader.string(); break; case 2: - message.pagination = $root.cosmos.base.query.v1beta1.PageRequest.decode(reader, reader.uint32()); + message.description = reader.string(); + break; + case 3: + message.plan = $root.cosmos.upgrade.v1beta1.Plan.decode(reader, reader.uint32()); + break; + case 4: + message.upgraded_client_state = $root.google.protobuf.Any.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -53547,123 +60006,143 @@ }; /** - * Decodes a QueryConsensusStatesRequest message from the specified reader or buffer, length delimited. + * Decodes an UpgradeProposal message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.client.v1.QueryConsensusStatesRequest + * @memberof ibc.core.client.v1.UpgradeProposal * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.client.v1.QueryConsensusStatesRequest} QueryConsensusStatesRequest + * @returns {ibc.core.client.v1.UpgradeProposal} UpgradeProposal * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryConsensusStatesRequest.decodeDelimited = function decodeDelimited(reader) { + UpgradeProposal.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryConsensusStatesRequest message. + * Verifies an UpgradeProposal message. * @function verify - * @memberof ibc.core.client.v1.QueryConsensusStatesRequest + * @memberof ibc.core.client.v1.UpgradeProposal * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryConsensusStatesRequest.verify = function verify(message) { + UpgradeProposal.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.client_id != null && message.hasOwnProperty("client_id")) - if (!$util.isString(message.client_id)) - return "client_id: string expected"; - if (message.pagination != null && message.hasOwnProperty("pagination")) { - var error = $root.cosmos.base.query.v1beta1.PageRequest.verify(message.pagination); + if (message.title != null && message.hasOwnProperty("title")) + if (!$util.isString(message.title)) + return "title: string expected"; + if (message.description != null && message.hasOwnProperty("description")) + if (!$util.isString(message.description)) + return "description: string expected"; + if (message.plan != null && message.hasOwnProperty("plan")) { + var error = $root.cosmos.upgrade.v1beta1.Plan.verify(message.plan); if (error) - return "pagination." + error; + return "plan." + error; + } + if (message.upgraded_client_state != null && message.hasOwnProperty("upgraded_client_state")) { + var error = $root.google.protobuf.Any.verify(message.upgraded_client_state); + if (error) + return "upgraded_client_state." + error; } return null; }; /** - * Creates a QueryConsensusStatesRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpgradeProposal message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.client.v1.QueryConsensusStatesRequest + * @memberof ibc.core.client.v1.UpgradeProposal * @static * @param {Object.} object Plain object - * @returns {ibc.core.client.v1.QueryConsensusStatesRequest} QueryConsensusStatesRequest + * @returns {ibc.core.client.v1.UpgradeProposal} UpgradeProposal */ - QueryConsensusStatesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.client.v1.QueryConsensusStatesRequest) + UpgradeProposal.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.client.v1.UpgradeProposal) return object; - var message = new $root.ibc.core.client.v1.QueryConsensusStatesRequest(); - if (object.client_id != null) - message.client_id = String(object.client_id); - if (object.pagination != null) { - if (typeof object.pagination !== "object") - throw TypeError(".ibc.core.client.v1.QueryConsensusStatesRequest.pagination: object expected"); - message.pagination = $root.cosmos.base.query.v1beta1.PageRequest.fromObject(object.pagination); + var message = new $root.ibc.core.client.v1.UpgradeProposal(); + if (object.title != null) + message.title = String(object.title); + if (object.description != null) + message.description = String(object.description); + if (object.plan != null) { + if (typeof object.plan !== "object") + throw TypeError(".ibc.core.client.v1.UpgradeProposal.plan: object expected"); + message.plan = $root.cosmos.upgrade.v1beta1.Plan.fromObject(object.plan); + } + if (object.upgraded_client_state != null) { + if (typeof object.upgraded_client_state !== "object") + throw TypeError(".ibc.core.client.v1.UpgradeProposal.upgraded_client_state: object expected"); + message.upgraded_client_state = $root.google.protobuf.Any.fromObject(object.upgraded_client_state); } return message; }; /** - * Creates a plain object from a QueryConsensusStatesRequest message. Also converts values to other types if specified. + * Creates a plain object from an UpgradeProposal message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.client.v1.QueryConsensusStatesRequest + * @memberof ibc.core.client.v1.UpgradeProposal * @static - * @param {ibc.core.client.v1.QueryConsensusStatesRequest} message QueryConsensusStatesRequest + * @param {ibc.core.client.v1.UpgradeProposal} message UpgradeProposal * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryConsensusStatesRequest.toObject = function toObject(message, options) { + UpgradeProposal.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.client_id = ""; - object.pagination = null; + object.title = ""; + object.description = ""; + object.plan = null; + object.upgraded_client_state = null; } - if (message.client_id != null && message.hasOwnProperty("client_id")) - object.client_id = message.client_id; - if (message.pagination != null && message.hasOwnProperty("pagination")) - object.pagination = $root.cosmos.base.query.v1beta1.PageRequest.toObject(message.pagination, options); + if (message.title != null && message.hasOwnProperty("title")) + object.title = message.title; + if (message.description != null && message.hasOwnProperty("description")) + object.description = message.description; + if (message.plan != null && message.hasOwnProperty("plan")) + object.plan = $root.cosmos.upgrade.v1beta1.Plan.toObject(message.plan, options); + if (message.upgraded_client_state != null && message.hasOwnProperty("upgraded_client_state")) + object.upgraded_client_state = $root.google.protobuf.Any.toObject(message.upgraded_client_state, options); return object; }; /** - * Converts this QueryConsensusStatesRequest to JSON. + * Converts this UpgradeProposal to JSON. * @function toJSON - * @memberof ibc.core.client.v1.QueryConsensusStatesRequest + * @memberof ibc.core.client.v1.UpgradeProposal * @instance * @returns {Object.} JSON object */ - QueryConsensusStatesRequest.prototype.toJSON = function toJSON() { + UpgradeProposal.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryConsensusStatesRequest; + return UpgradeProposal; })(); - v1.QueryConsensusStatesResponse = (function() { + v1.Height = (function() { /** - * Properties of a QueryConsensusStatesResponse. + * Properties of an Height. * @memberof ibc.core.client.v1 - * @interface IQueryConsensusStatesResponse - * @property {Array.|null} [consensus_states] QueryConsensusStatesResponse consensus_states - * @property {cosmos.base.query.v1beta1.IPageResponse|null} [pagination] QueryConsensusStatesResponse pagination + * @interface IHeight + * @property {Long|null} [revision_number] Height revision_number + * @property {Long|null} [revision_height] Height revision_height */ /** - * Constructs a new QueryConsensusStatesResponse. + * Constructs a new Height. * @memberof ibc.core.client.v1 - * @classdesc Represents a QueryConsensusStatesResponse. - * @implements IQueryConsensusStatesResponse + * @classdesc Represents an Height. + * @implements IHeight * @constructor - * @param {ibc.core.client.v1.IQueryConsensusStatesResponse=} [properties] Properties to set + * @param {ibc.core.client.v1.IHeight=} [properties] Properties to set */ - function QueryConsensusStatesResponse(properties) { - this.consensus_states = []; + function Height(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -53671,79 +60150,76 @@ } /** - * QueryConsensusStatesResponse consensus_states. - * @member {Array.} consensus_states - * @memberof ibc.core.client.v1.QueryConsensusStatesResponse + * Height revision_number. + * @member {Long} revision_number + * @memberof ibc.core.client.v1.Height * @instance */ - QueryConsensusStatesResponse.prototype.consensus_states = $util.emptyArray; + Height.prototype.revision_number = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** - * QueryConsensusStatesResponse pagination. - * @member {cosmos.base.query.v1beta1.IPageResponse|null|undefined} pagination - * @memberof ibc.core.client.v1.QueryConsensusStatesResponse + * Height revision_height. + * @member {Long} revision_height + * @memberof ibc.core.client.v1.Height * @instance */ - QueryConsensusStatesResponse.prototype.pagination = null; + Height.prototype.revision_height = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** - * Encodes the specified QueryConsensusStatesResponse message. Does not implicitly {@link ibc.core.client.v1.QueryConsensusStatesResponse.verify|verify} messages. + * Encodes the specified Height message. Does not implicitly {@link ibc.core.client.v1.Height.verify|verify} messages. * @function encode - * @memberof ibc.core.client.v1.QueryConsensusStatesResponse + * @memberof ibc.core.client.v1.Height * @static - * @param {ibc.core.client.v1.IQueryConsensusStatesResponse} message QueryConsensusStatesResponse message or plain object to encode + * @param {ibc.core.client.v1.IHeight} message Height message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryConsensusStatesResponse.encode = function encode(message, writer) { + Height.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.consensus_states != null && message.consensus_states.length) - for (var i = 0; i < message.consensus_states.length; ++i) - $root.ibc.core.client.v1.ConsensusStateWithHeight.encode(message.consensus_states[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.pagination != null && Object.hasOwnProperty.call(message, "pagination")) - $root.cosmos.base.query.v1beta1.PageResponse.encode(message.pagination, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.revision_number != null && Object.hasOwnProperty.call(message, "revision_number")) + writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.revision_number); + if (message.revision_height != null && Object.hasOwnProperty.call(message, "revision_height")) + writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.revision_height); return writer; }; /** - * Encodes the specified QueryConsensusStatesResponse message, length delimited. Does not implicitly {@link ibc.core.client.v1.QueryConsensusStatesResponse.verify|verify} messages. + * Encodes the specified Height message, length delimited. Does not implicitly {@link ibc.core.client.v1.Height.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.client.v1.QueryConsensusStatesResponse + * @memberof ibc.core.client.v1.Height * @static - * @param {ibc.core.client.v1.IQueryConsensusStatesResponse} message QueryConsensusStatesResponse message or plain object to encode + * @param {ibc.core.client.v1.IHeight} message Height message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryConsensusStatesResponse.encodeDelimited = function encodeDelimited(message, writer) { + Height.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryConsensusStatesResponse message from the specified reader or buffer. + * Decodes an Height message from the specified reader or buffer. * @function decode - * @memberof ibc.core.client.v1.QueryConsensusStatesResponse + * @memberof ibc.core.client.v1.Height * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.client.v1.QueryConsensusStatesResponse} QueryConsensusStatesResponse + * @returns {ibc.core.client.v1.Height} Height * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryConsensusStatesResponse.decode = function decode(reader, length) { + Height.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.QueryConsensusStatesResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.Height(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.consensus_states && message.consensus_states.length)) - message.consensus_states = []; - message.consensus_states.push($root.ibc.core.client.v1.ConsensusStateWithHeight.decode(reader, reader.uint32())); + message.revision_number = reader.uint64(); break; case 2: - message.pagination = $root.cosmos.base.query.v1beta1.PageResponse.decode(reader, reader.uint32()); + message.revision_height = reader.uint64(); break; default: reader.skipType(tag & 7); @@ -53754,216 +60230,212 @@ }; /** - * Decodes a QueryConsensusStatesResponse message from the specified reader or buffer, length delimited. + * Decodes an Height message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.client.v1.QueryConsensusStatesResponse + * @memberof ibc.core.client.v1.Height * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.client.v1.QueryConsensusStatesResponse} QueryConsensusStatesResponse + * @returns {ibc.core.client.v1.Height} Height * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryConsensusStatesResponse.decodeDelimited = function decodeDelimited(reader) { + Height.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryConsensusStatesResponse message. + * Verifies an Height message. * @function verify - * @memberof ibc.core.client.v1.QueryConsensusStatesResponse + * @memberof ibc.core.client.v1.Height * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryConsensusStatesResponse.verify = function verify(message) { + Height.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.consensus_states != null && message.hasOwnProperty("consensus_states")) { - if (!Array.isArray(message.consensus_states)) - return "consensus_states: array expected"; - for (var i = 0; i < message.consensus_states.length; ++i) { - var error = $root.ibc.core.client.v1.ConsensusStateWithHeight.verify(message.consensus_states[i]); - if (error) - return "consensus_states." + error; - } - } - if (message.pagination != null && message.hasOwnProperty("pagination")) { - var error = $root.cosmos.base.query.v1beta1.PageResponse.verify(message.pagination); - if (error) - return "pagination." + error; - } + if (message.revision_number != null && message.hasOwnProperty("revision_number")) + if (!$util.isInteger(message.revision_number) && !(message.revision_number && $util.isInteger(message.revision_number.low) && $util.isInteger(message.revision_number.high))) + return "revision_number: integer|Long expected"; + if (message.revision_height != null && message.hasOwnProperty("revision_height")) + if (!$util.isInteger(message.revision_height) && !(message.revision_height && $util.isInteger(message.revision_height.low) && $util.isInteger(message.revision_height.high))) + return "revision_height: integer|Long expected"; return null; }; /** - * Creates a QueryConsensusStatesResponse message from a plain object. Also converts values to their respective internal types. + * Creates an Height message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.client.v1.QueryConsensusStatesResponse + * @memberof ibc.core.client.v1.Height * @static * @param {Object.} object Plain object - * @returns {ibc.core.client.v1.QueryConsensusStatesResponse} QueryConsensusStatesResponse + * @returns {ibc.core.client.v1.Height} Height */ - QueryConsensusStatesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.client.v1.QueryConsensusStatesResponse) + Height.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.client.v1.Height) return object; - var message = new $root.ibc.core.client.v1.QueryConsensusStatesResponse(); - if (object.consensus_states) { - if (!Array.isArray(object.consensus_states)) - throw TypeError(".ibc.core.client.v1.QueryConsensusStatesResponse.consensus_states: array expected"); - message.consensus_states = []; - for (var i = 0; i < object.consensus_states.length; ++i) { - if (typeof object.consensus_states[i] !== "object") - throw TypeError(".ibc.core.client.v1.QueryConsensusStatesResponse.consensus_states: object expected"); - message.consensus_states[i] = $root.ibc.core.client.v1.ConsensusStateWithHeight.fromObject(object.consensus_states[i]); - } - } - if (object.pagination != null) { - if (typeof object.pagination !== "object") - throw TypeError(".ibc.core.client.v1.QueryConsensusStatesResponse.pagination: object expected"); - message.pagination = $root.cosmos.base.query.v1beta1.PageResponse.fromObject(object.pagination); - } + var message = new $root.ibc.core.client.v1.Height(); + if (object.revision_number != null) + if ($util.Long) + (message.revision_number = $util.Long.fromValue(object.revision_number)).unsigned = true; + else if (typeof object.revision_number === "string") + message.revision_number = parseInt(object.revision_number, 10); + else if (typeof object.revision_number === "number") + message.revision_number = object.revision_number; + else if (typeof object.revision_number === "object") + message.revision_number = new $util.LongBits(object.revision_number.low >>> 0, object.revision_number.high >>> 0).toNumber(true); + if (object.revision_height != null) + if ($util.Long) + (message.revision_height = $util.Long.fromValue(object.revision_height)).unsigned = true; + else if (typeof object.revision_height === "string") + message.revision_height = parseInt(object.revision_height, 10); + else if (typeof object.revision_height === "number") + message.revision_height = object.revision_height; + else if (typeof object.revision_height === "object") + message.revision_height = new $util.LongBits(object.revision_height.low >>> 0, object.revision_height.high >>> 0).toNumber(true); return message; }; /** - * Creates a plain object from a QueryConsensusStatesResponse message. Also converts values to other types if specified. + * Creates a plain object from an Height message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.client.v1.QueryConsensusStatesResponse + * @memberof ibc.core.client.v1.Height * @static - * @param {ibc.core.client.v1.QueryConsensusStatesResponse} message QueryConsensusStatesResponse + * @param {ibc.core.client.v1.Height} message Height * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryConsensusStatesResponse.toObject = function toObject(message, options) { + Height.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.consensus_states = []; - if (options.defaults) - object.pagination = null; - if (message.consensus_states && message.consensus_states.length) { - object.consensus_states = []; - for (var j = 0; j < message.consensus_states.length; ++j) - object.consensus_states[j] = $root.ibc.core.client.v1.ConsensusStateWithHeight.toObject(message.consensus_states[j], options); + if (options.defaults) { + if ($util.Long) { + var long = new $util.Long(0, 0, true); + object.revision_number = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.revision_number = options.longs === String ? "0" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, true); + object.revision_height = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.revision_height = options.longs === String ? "0" : 0; } - if (message.pagination != null && message.hasOwnProperty("pagination")) - object.pagination = $root.cosmos.base.query.v1beta1.PageResponse.toObject(message.pagination, options); + if (message.revision_number != null && message.hasOwnProperty("revision_number")) + if (typeof message.revision_number === "number") + object.revision_number = options.longs === String ? String(message.revision_number) : message.revision_number; + else + object.revision_number = options.longs === String ? $util.Long.prototype.toString.call(message.revision_number) : options.longs === Number ? new $util.LongBits(message.revision_number.low >>> 0, message.revision_number.high >>> 0).toNumber(true) : message.revision_number; + if (message.revision_height != null && message.hasOwnProperty("revision_height")) + if (typeof message.revision_height === "number") + object.revision_height = options.longs === String ? String(message.revision_height) : message.revision_height; + else + object.revision_height = options.longs === String ? $util.Long.prototype.toString.call(message.revision_height) : options.longs === Number ? new $util.LongBits(message.revision_height.low >>> 0, message.revision_height.high >>> 0).toNumber(true) : message.revision_height; return object; }; /** - * Converts this QueryConsensusStatesResponse to JSON. + * Converts this Height to JSON. * @function toJSON - * @memberof ibc.core.client.v1.QueryConsensusStatesResponse + * @memberof ibc.core.client.v1.Height * @instance * @returns {Object.} JSON object */ - QueryConsensusStatesResponse.prototype.toJSON = function toJSON() { + Height.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryConsensusStatesResponse; + return Height; })(); - v1.QueryConsensusStateHeightsRequest = (function() { + v1.Params = (function() { /** - * Properties of a QueryConsensusStateHeightsRequest. + * Properties of a Params. * @memberof ibc.core.client.v1 - * @interface IQueryConsensusStateHeightsRequest - * @property {string|null} [client_id] QueryConsensusStateHeightsRequest client_id - * @property {cosmos.base.query.v1beta1.IPageRequest|null} [pagination] QueryConsensusStateHeightsRequest pagination + * @interface IParams + * @property {Array.|null} [allowed_clients] Params allowed_clients */ /** - * Constructs a new QueryConsensusStateHeightsRequest. + * Constructs a new Params. * @memberof ibc.core.client.v1 - * @classdesc Represents a QueryConsensusStateHeightsRequest. - * @implements IQueryConsensusStateHeightsRequest + * @classdesc Represents a Params. + * @implements IParams * @constructor - * @param {ibc.core.client.v1.IQueryConsensusStateHeightsRequest=} [properties] Properties to set - */ - function QueryConsensusStateHeightsRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * QueryConsensusStateHeightsRequest client_id. - * @member {string} client_id - * @memberof ibc.core.client.v1.QueryConsensusStateHeightsRequest - * @instance + * @param {ibc.core.client.v1.IParams=} [properties] Properties to set */ - QueryConsensusStateHeightsRequest.prototype.client_id = ""; + function Params(properties) { + this.allowed_clients = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * QueryConsensusStateHeightsRequest pagination. - * @member {cosmos.base.query.v1beta1.IPageRequest|null|undefined} pagination - * @memberof ibc.core.client.v1.QueryConsensusStateHeightsRequest + * Params allowed_clients. + * @member {Array.} allowed_clients + * @memberof ibc.core.client.v1.Params * @instance */ - QueryConsensusStateHeightsRequest.prototype.pagination = null; + Params.prototype.allowed_clients = $util.emptyArray; /** - * Encodes the specified QueryConsensusStateHeightsRequest message. Does not implicitly {@link ibc.core.client.v1.QueryConsensusStateHeightsRequest.verify|verify} messages. + * Encodes the specified Params message. Does not implicitly {@link ibc.core.client.v1.Params.verify|verify} messages. * @function encode - * @memberof ibc.core.client.v1.QueryConsensusStateHeightsRequest + * @memberof ibc.core.client.v1.Params * @static - * @param {ibc.core.client.v1.IQueryConsensusStateHeightsRequest} message QueryConsensusStateHeightsRequest message or plain object to encode + * @param {ibc.core.client.v1.IParams} message Params message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryConsensusStateHeightsRequest.encode = function encode(message, writer) { + Params.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.client_id != null && Object.hasOwnProperty.call(message, "client_id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.client_id); - if (message.pagination != null && Object.hasOwnProperty.call(message, "pagination")) - $root.cosmos.base.query.v1beta1.PageRequest.encode(message.pagination, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.allowed_clients != null && message.allowed_clients.length) + for (var i = 0; i < message.allowed_clients.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.allowed_clients[i]); return writer; }; /** - * Encodes the specified QueryConsensusStateHeightsRequest message, length delimited. Does not implicitly {@link ibc.core.client.v1.QueryConsensusStateHeightsRequest.verify|verify} messages. + * Encodes the specified Params message, length delimited. Does not implicitly {@link ibc.core.client.v1.Params.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.client.v1.QueryConsensusStateHeightsRequest + * @memberof ibc.core.client.v1.Params * @static - * @param {ibc.core.client.v1.IQueryConsensusStateHeightsRequest} message QueryConsensusStateHeightsRequest message or plain object to encode + * @param {ibc.core.client.v1.IParams} message Params message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryConsensusStateHeightsRequest.encodeDelimited = function encodeDelimited(message, writer) { + Params.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryConsensusStateHeightsRequest message from the specified reader or buffer. + * Decodes a Params message from the specified reader or buffer. * @function decode - * @memberof ibc.core.client.v1.QueryConsensusStateHeightsRequest + * @memberof ibc.core.client.v1.Params * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.client.v1.QueryConsensusStateHeightsRequest} QueryConsensusStateHeightsRequest + * @returns {ibc.core.client.v1.Params} Params * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryConsensusStateHeightsRequest.decode = function decode(reader, length) { + Params.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.QueryConsensusStateHeightsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.Params(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.client_id = reader.string(); - break; - case 2: - message.pagination = $root.cosmos.base.query.v1beta1.PageRequest.decode(reader, reader.uint32()); + if (!(message.allowed_clients && message.allowed_clients.length)) + message.allowed_clients = []; + message.allowed_clients.push(reader.string()); break; default: reader.skipType(tag & 7); @@ -53974,123 +60446,274 @@ }; /** - * Decodes a QueryConsensusStateHeightsRequest message from the specified reader or buffer, length delimited. + * Decodes a Params message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.client.v1.QueryConsensusStateHeightsRequest + * @memberof ibc.core.client.v1.Params * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.client.v1.QueryConsensusStateHeightsRequest} QueryConsensusStateHeightsRequest + * @returns {ibc.core.client.v1.Params} Params * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryConsensusStateHeightsRequest.decodeDelimited = function decodeDelimited(reader) { + Params.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryConsensusStateHeightsRequest message. + * Verifies a Params message. * @function verify - * @memberof ibc.core.client.v1.QueryConsensusStateHeightsRequest + * @memberof ibc.core.client.v1.Params * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryConsensusStateHeightsRequest.verify = function verify(message) { + Params.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.client_id != null && message.hasOwnProperty("client_id")) - if (!$util.isString(message.client_id)) - return "client_id: string expected"; - if (message.pagination != null && message.hasOwnProperty("pagination")) { - var error = $root.cosmos.base.query.v1beta1.PageRequest.verify(message.pagination); - if (error) - return "pagination." + error; + if (message.allowed_clients != null && message.hasOwnProperty("allowed_clients")) { + if (!Array.isArray(message.allowed_clients)) + return "allowed_clients: array expected"; + for (var i = 0; i < message.allowed_clients.length; ++i) + if (!$util.isString(message.allowed_clients[i])) + return "allowed_clients: string[] expected"; } return null; }; /** - * Creates a QueryConsensusStateHeightsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a Params message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.client.v1.QueryConsensusStateHeightsRequest + * @memberof ibc.core.client.v1.Params * @static * @param {Object.} object Plain object - * @returns {ibc.core.client.v1.QueryConsensusStateHeightsRequest} QueryConsensusStateHeightsRequest + * @returns {ibc.core.client.v1.Params} Params */ - QueryConsensusStateHeightsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.client.v1.QueryConsensusStateHeightsRequest) + Params.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.client.v1.Params) return object; - var message = new $root.ibc.core.client.v1.QueryConsensusStateHeightsRequest(); - if (object.client_id != null) - message.client_id = String(object.client_id); - if (object.pagination != null) { - if (typeof object.pagination !== "object") - throw TypeError(".ibc.core.client.v1.QueryConsensusStateHeightsRequest.pagination: object expected"); - message.pagination = $root.cosmos.base.query.v1beta1.PageRequest.fromObject(object.pagination); + var message = new $root.ibc.core.client.v1.Params(); + if (object.allowed_clients) { + if (!Array.isArray(object.allowed_clients)) + throw TypeError(".ibc.core.client.v1.Params.allowed_clients: array expected"); + message.allowed_clients = []; + for (var i = 0; i < object.allowed_clients.length; ++i) + message.allowed_clients[i] = String(object.allowed_clients[i]); } return message; }; /** - * Creates a plain object from a QueryConsensusStateHeightsRequest message. Also converts values to other types if specified. + * Creates a plain object from a Params message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.client.v1.QueryConsensusStateHeightsRequest + * @memberof ibc.core.client.v1.Params * @static - * @param {ibc.core.client.v1.QueryConsensusStateHeightsRequest} message QueryConsensusStateHeightsRequest + * @param {ibc.core.client.v1.Params} message Params * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryConsensusStateHeightsRequest.toObject = function toObject(message, options) { + Params.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.client_id = ""; - object.pagination = null; + if (options.arrays || options.defaults) + object.allowed_clients = []; + if (message.allowed_clients && message.allowed_clients.length) { + object.allowed_clients = []; + for (var j = 0; j < message.allowed_clients.length; ++j) + object.allowed_clients[j] = message.allowed_clients[j]; } - if (message.client_id != null && message.hasOwnProperty("client_id")) - object.client_id = message.client_id; - if (message.pagination != null && message.hasOwnProperty("pagination")) - object.pagination = $root.cosmos.base.query.v1beta1.PageRequest.toObject(message.pagination, options); return object; }; /** - * Converts this QueryConsensusStateHeightsRequest to JSON. + * Converts this Params to JSON. * @function toJSON - * @memberof ibc.core.client.v1.QueryConsensusStateHeightsRequest + * @memberof ibc.core.client.v1.Params * @instance * @returns {Object.} JSON object */ - QueryConsensusStateHeightsRequest.prototype.toJSON = function toJSON() { + Params.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryConsensusStateHeightsRequest; + return Params; })(); - v1.QueryConsensusStateHeightsResponse = (function() { + v1.Msg = (function() { /** - * Properties of a QueryConsensusStateHeightsResponse. + * Constructs a new Msg service. * @memberof ibc.core.client.v1 - * @interface IQueryConsensusStateHeightsResponse - * @property {Array.|null} [consensus_state_heights] QueryConsensusStateHeightsResponse consensus_state_heights - * @property {cosmos.base.query.v1beta1.IPageResponse|null} [pagination] QueryConsensusStateHeightsResponse pagination + * @classdesc Represents a Msg + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited */ + function Msg(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (Msg.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Msg; /** - * Constructs a new QueryConsensusStateHeightsResponse. + * Callback as used by {@link ibc.core.client.v1.Msg#createClient}. + * @memberof ibc.core.client.v1.Msg + * @typedef CreateClientCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.core.client.v1.MsgCreateClientResponse} [response] MsgCreateClientResponse + */ + + /** + * Calls CreateClient. + * @function createClient + * @memberof ibc.core.client.v1.Msg + * @instance + * @param {ibc.core.client.v1.IMsgCreateClient} request MsgCreateClient message or plain object + * @param {ibc.core.client.v1.Msg.CreateClientCallback} callback Node-style callback called with the error, if any, and MsgCreateClientResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Msg.prototype.createClient = function createClient(request, callback) { + return this.rpcCall(createClient, $root.ibc.core.client.v1.MsgCreateClient, $root.ibc.core.client.v1.MsgCreateClientResponse, request, callback); + }, "name", { value: "CreateClient" }); + + /** + * Calls CreateClient. + * @function createClient + * @memberof ibc.core.client.v1.Msg + * @instance + * @param {ibc.core.client.v1.IMsgCreateClient} request MsgCreateClient message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link ibc.core.client.v1.Msg#updateClient}. + * @memberof ibc.core.client.v1.Msg + * @typedef UpdateClientCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.core.client.v1.MsgUpdateClientResponse} [response] MsgUpdateClientResponse + */ + + /** + * Calls UpdateClient. + * @function updateClient + * @memberof ibc.core.client.v1.Msg + * @instance + * @param {ibc.core.client.v1.IMsgUpdateClient} request MsgUpdateClient message or plain object + * @param {ibc.core.client.v1.Msg.UpdateClientCallback} callback Node-style callback called with the error, if any, and MsgUpdateClientResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Msg.prototype.updateClient = function updateClient(request, callback) { + return this.rpcCall(updateClient, $root.ibc.core.client.v1.MsgUpdateClient, $root.ibc.core.client.v1.MsgUpdateClientResponse, request, callback); + }, "name", { value: "UpdateClient" }); + + /** + * Calls UpdateClient. + * @function updateClient + * @memberof ibc.core.client.v1.Msg + * @instance + * @param {ibc.core.client.v1.IMsgUpdateClient} request MsgUpdateClient message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link ibc.core.client.v1.Msg#upgradeClient}. + * @memberof ibc.core.client.v1.Msg + * @typedef UpgradeClientCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.core.client.v1.MsgUpgradeClientResponse} [response] MsgUpgradeClientResponse + */ + + /** + * Calls UpgradeClient. + * @function upgradeClient + * @memberof ibc.core.client.v1.Msg + * @instance + * @param {ibc.core.client.v1.IMsgUpgradeClient} request MsgUpgradeClient message or plain object + * @param {ibc.core.client.v1.Msg.UpgradeClientCallback} callback Node-style callback called with the error, if any, and MsgUpgradeClientResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Msg.prototype.upgradeClient = function upgradeClient(request, callback) { + return this.rpcCall(upgradeClient, $root.ibc.core.client.v1.MsgUpgradeClient, $root.ibc.core.client.v1.MsgUpgradeClientResponse, request, callback); + }, "name", { value: "UpgradeClient" }); + + /** + * Calls UpgradeClient. + * @function upgradeClient + * @memberof ibc.core.client.v1.Msg + * @instance + * @param {ibc.core.client.v1.IMsgUpgradeClient} request MsgUpgradeClient message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link ibc.core.client.v1.Msg#submitMisbehaviour}. + * @memberof ibc.core.client.v1.Msg + * @typedef SubmitMisbehaviourCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.core.client.v1.MsgSubmitMisbehaviourResponse} [response] MsgSubmitMisbehaviourResponse + */ + + /** + * Calls SubmitMisbehaviour. + * @function submitMisbehaviour + * @memberof ibc.core.client.v1.Msg + * @instance + * @param {ibc.core.client.v1.IMsgSubmitMisbehaviour} request MsgSubmitMisbehaviour message or plain object + * @param {ibc.core.client.v1.Msg.SubmitMisbehaviourCallback} callback Node-style callback called with the error, if any, and MsgSubmitMisbehaviourResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Msg.prototype.submitMisbehaviour = function submitMisbehaviour(request, callback) { + return this.rpcCall(submitMisbehaviour, $root.ibc.core.client.v1.MsgSubmitMisbehaviour, $root.ibc.core.client.v1.MsgSubmitMisbehaviourResponse, request, callback); + }, "name", { value: "SubmitMisbehaviour" }); + + /** + * Calls SubmitMisbehaviour. + * @function submitMisbehaviour + * @memberof ibc.core.client.v1.Msg + * @instance + * @param {ibc.core.client.v1.IMsgSubmitMisbehaviour} request MsgSubmitMisbehaviour message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return Msg; + })(); + + v1.MsgCreateClient = (function() { + + /** + * Properties of a MsgCreateClient. * @memberof ibc.core.client.v1 - * @classdesc Represents a QueryConsensusStateHeightsResponse. - * @implements IQueryConsensusStateHeightsResponse + * @interface IMsgCreateClient + * @property {google.protobuf.IAny|null} [client_state] MsgCreateClient client_state + * @property {google.protobuf.IAny|null} [consensus_state] MsgCreateClient consensus_state + * @property {string|null} [signer] MsgCreateClient signer + */ + + /** + * Constructs a new MsgCreateClient. + * @memberof ibc.core.client.v1 + * @classdesc Represents a MsgCreateClient. + * @implements IMsgCreateClient * @constructor - * @param {ibc.core.client.v1.IQueryConsensusStateHeightsResponse=} [properties] Properties to set + * @param {ibc.core.client.v1.IMsgCreateClient=} [properties] Properties to set */ - function QueryConsensusStateHeightsResponse(properties) { - this.consensus_state_heights = []; + function MsgCreateClient(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -54098,79 +60721,89 @@ } /** - * QueryConsensusStateHeightsResponse consensus_state_heights. - * @member {Array.} consensus_state_heights - * @memberof ibc.core.client.v1.QueryConsensusStateHeightsResponse + * MsgCreateClient client_state. + * @member {google.protobuf.IAny|null|undefined} client_state + * @memberof ibc.core.client.v1.MsgCreateClient * @instance */ - QueryConsensusStateHeightsResponse.prototype.consensus_state_heights = $util.emptyArray; + MsgCreateClient.prototype.client_state = null; /** - * QueryConsensusStateHeightsResponse pagination. - * @member {cosmos.base.query.v1beta1.IPageResponse|null|undefined} pagination - * @memberof ibc.core.client.v1.QueryConsensusStateHeightsResponse + * MsgCreateClient consensus_state. + * @member {google.protobuf.IAny|null|undefined} consensus_state + * @memberof ibc.core.client.v1.MsgCreateClient * @instance */ - QueryConsensusStateHeightsResponse.prototype.pagination = null; + MsgCreateClient.prototype.consensus_state = null; /** - * Encodes the specified QueryConsensusStateHeightsResponse message. Does not implicitly {@link ibc.core.client.v1.QueryConsensusStateHeightsResponse.verify|verify} messages. + * MsgCreateClient signer. + * @member {string} signer + * @memberof ibc.core.client.v1.MsgCreateClient + * @instance + */ + MsgCreateClient.prototype.signer = ""; + + /** + * Encodes the specified MsgCreateClient message. Does not implicitly {@link ibc.core.client.v1.MsgCreateClient.verify|verify} messages. * @function encode - * @memberof ibc.core.client.v1.QueryConsensusStateHeightsResponse + * @memberof ibc.core.client.v1.MsgCreateClient * @static - * @param {ibc.core.client.v1.IQueryConsensusStateHeightsResponse} message QueryConsensusStateHeightsResponse message or plain object to encode + * @param {ibc.core.client.v1.IMsgCreateClient} message MsgCreateClient message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryConsensusStateHeightsResponse.encode = function encode(message, writer) { + MsgCreateClient.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.consensus_state_heights != null && message.consensus_state_heights.length) - for (var i = 0; i < message.consensus_state_heights.length; ++i) - $root.ibc.core.client.v1.Height.encode(message.consensus_state_heights[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.pagination != null && Object.hasOwnProperty.call(message, "pagination")) - $root.cosmos.base.query.v1beta1.PageResponse.encode(message.pagination, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.client_state != null && Object.hasOwnProperty.call(message, "client_state")) + $root.google.protobuf.Any.encode(message.client_state, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.consensus_state != null && Object.hasOwnProperty.call(message, "consensus_state")) + $root.google.protobuf.Any.encode(message.consensus_state, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.signer != null && Object.hasOwnProperty.call(message, "signer")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.signer); return writer; }; /** - * Encodes the specified QueryConsensusStateHeightsResponse message, length delimited. Does not implicitly {@link ibc.core.client.v1.QueryConsensusStateHeightsResponse.verify|verify} messages. + * Encodes the specified MsgCreateClient message, length delimited. Does not implicitly {@link ibc.core.client.v1.MsgCreateClient.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.client.v1.QueryConsensusStateHeightsResponse + * @memberof ibc.core.client.v1.MsgCreateClient * @static - * @param {ibc.core.client.v1.IQueryConsensusStateHeightsResponse} message QueryConsensusStateHeightsResponse message or plain object to encode + * @param {ibc.core.client.v1.IMsgCreateClient} message MsgCreateClient message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryConsensusStateHeightsResponse.encodeDelimited = function encodeDelimited(message, writer) { + MsgCreateClient.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryConsensusStateHeightsResponse message from the specified reader or buffer. + * Decodes a MsgCreateClient message from the specified reader or buffer. * @function decode - * @memberof ibc.core.client.v1.QueryConsensusStateHeightsResponse + * @memberof ibc.core.client.v1.MsgCreateClient * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.client.v1.QueryConsensusStateHeightsResponse} QueryConsensusStateHeightsResponse + * @returns {ibc.core.client.v1.MsgCreateClient} MsgCreateClient * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryConsensusStateHeightsResponse.decode = function decode(reader, length) { + MsgCreateClient.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.QueryConsensusStateHeightsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.MsgCreateClient(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.consensus_state_heights && message.consensus_state_heights.length)) - message.consensus_state_heights = []; - message.consensus_state_heights.push($root.ibc.core.client.v1.Height.decode(reader, reader.uint32())); + message.client_state = $root.google.protobuf.Any.decode(reader, reader.uint32()); break; case 2: - message.pagination = $root.cosmos.base.query.v1beta1.PageResponse.decode(reader, reader.uint32()); + message.consensus_state = $root.google.protobuf.Any.decode(reader, reader.uint32()); + break; + case 3: + message.signer = reader.string(); break; default: reader.skipType(tag & 7); @@ -54181,203 +60814,185 @@ }; /** - * Decodes a QueryConsensusStateHeightsResponse message from the specified reader or buffer, length delimited. + * Decodes a MsgCreateClient message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.client.v1.QueryConsensusStateHeightsResponse + * @memberof ibc.core.client.v1.MsgCreateClient * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.client.v1.QueryConsensusStateHeightsResponse} QueryConsensusStateHeightsResponse + * @returns {ibc.core.client.v1.MsgCreateClient} MsgCreateClient * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryConsensusStateHeightsResponse.decodeDelimited = function decodeDelimited(reader) { + MsgCreateClient.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryConsensusStateHeightsResponse message. + * Verifies a MsgCreateClient message. * @function verify - * @memberof ibc.core.client.v1.QueryConsensusStateHeightsResponse + * @memberof ibc.core.client.v1.MsgCreateClient * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryConsensusStateHeightsResponse.verify = function verify(message) { + MsgCreateClient.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.consensus_state_heights != null && message.hasOwnProperty("consensus_state_heights")) { - if (!Array.isArray(message.consensus_state_heights)) - return "consensus_state_heights: array expected"; - for (var i = 0; i < message.consensus_state_heights.length; ++i) { - var error = $root.ibc.core.client.v1.Height.verify(message.consensus_state_heights[i]); - if (error) - return "consensus_state_heights." + error; - } + if (message.client_state != null && message.hasOwnProperty("client_state")) { + var error = $root.google.protobuf.Any.verify(message.client_state); + if (error) + return "client_state." + error; } - if (message.pagination != null && message.hasOwnProperty("pagination")) { - var error = $root.cosmos.base.query.v1beta1.PageResponse.verify(message.pagination); + if (message.consensus_state != null && message.hasOwnProperty("consensus_state")) { + var error = $root.google.protobuf.Any.verify(message.consensus_state); if (error) - return "pagination." + error; + return "consensus_state." + error; } + if (message.signer != null && message.hasOwnProperty("signer")) + if (!$util.isString(message.signer)) + return "signer: string expected"; return null; }; /** - * Creates a QueryConsensusStateHeightsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a MsgCreateClient message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.client.v1.QueryConsensusStateHeightsResponse + * @memberof ibc.core.client.v1.MsgCreateClient * @static * @param {Object.} object Plain object - * @returns {ibc.core.client.v1.QueryConsensusStateHeightsResponse} QueryConsensusStateHeightsResponse + * @returns {ibc.core.client.v1.MsgCreateClient} MsgCreateClient */ - QueryConsensusStateHeightsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.client.v1.QueryConsensusStateHeightsResponse) + MsgCreateClient.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.client.v1.MsgCreateClient) return object; - var message = new $root.ibc.core.client.v1.QueryConsensusStateHeightsResponse(); - if (object.consensus_state_heights) { - if (!Array.isArray(object.consensus_state_heights)) - throw TypeError(".ibc.core.client.v1.QueryConsensusStateHeightsResponse.consensus_state_heights: array expected"); - message.consensus_state_heights = []; - for (var i = 0; i < object.consensus_state_heights.length; ++i) { - if (typeof object.consensus_state_heights[i] !== "object") - throw TypeError(".ibc.core.client.v1.QueryConsensusStateHeightsResponse.consensus_state_heights: object expected"); - message.consensus_state_heights[i] = $root.ibc.core.client.v1.Height.fromObject(object.consensus_state_heights[i]); - } + var message = new $root.ibc.core.client.v1.MsgCreateClient(); + if (object.client_state != null) { + if (typeof object.client_state !== "object") + throw TypeError(".ibc.core.client.v1.MsgCreateClient.client_state: object expected"); + message.client_state = $root.google.protobuf.Any.fromObject(object.client_state); } - if (object.pagination != null) { - if (typeof object.pagination !== "object") - throw TypeError(".ibc.core.client.v1.QueryConsensusStateHeightsResponse.pagination: object expected"); - message.pagination = $root.cosmos.base.query.v1beta1.PageResponse.fromObject(object.pagination); + if (object.consensus_state != null) { + if (typeof object.consensus_state !== "object") + throw TypeError(".ibc.core.client.v1.MsgCreateClient.consensus_state: object expected"); + message.consensus_state = $root.google.protobuf.Any.fromObject(object.consensus_state); } + if (object.signer != null) + message.signer = String(object.signer); return message; }; /** - * Creates a plain object from a QueryConsensusStateHeightsResponse message. Also converts values to other types if specified. + * Creates a plain object from a MsgCreateClient message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.client.v1.QueryConsensusStateHeightsResponse + * @memberof ibc.core.client.v1.MsgCreateClient * @static - * @param {ibc.core.client.v1.QueryConsensusStateHeightsResponse} message QueryConsensusStateHeightsResponse + * @param {ibc.core.client.v1.MsgCreateClient} message MsgCreateClient * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryConsensusStateHeightsResponse.toObject = function toObject(message, options) { + MsgCreateClient.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.consensus_state_heights = []; - if (options.defaults) - object.pagination = null; - if (message.consensus_state_heights && message.consensus_state_heights.length) { - object.consensus_state_heights = []; - for (var j = 0; j < message.consensus_state_heights.length; ++j) - object.consensus_state_heights[j] = $root.ibc.core.client.v1.Height.toObject(message.consensus_state_heights[j], options); + if (options.defaults) { + object.client_state = null; + object.consensus_state = null; + object.signer = ""; } - if (message.pagination != null && message.hasOwnProperty("pagination")) - object.pagination = $root.cosmos.base.query.v1beta1.PageResponse.toObject(message.pagination, options); + if (message.client_state != null && message.hasOwnProperty("client_state")) + object.client_state = $root.google.protobuf.Any.toObject(message.client_state, options); + if (message.consensus_state != null && message.hasOwnProperty("consensus_state")) + object.consensus_state = $root.google.protobuf.Any.toObject(message.consensus_state, options); + if (message.signer != null && message.hasOwnProperty("signer")) + object.signer = message.signer; return object; }; /** - * Converts this QueryConsensusStateHeightsResponse to JSON. + * Converts this MsgCreateClient to JSON. * @function toJSON - * @memberof ibc.core.client.v1.QueryConsensusStateHeightsResponse + * @memberof ibc.core.client.v1.MsgCreateClient * @instance * @returns {Object.} JSON object */ - QueryConsensusStateHeightsResponse.prototype.toJSON = function toJSON() { + MsgCreateClient.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryConsensusStateHeightsResponse; + return MsgCreateClient; })(); - v1.QueryClientStatusRequest = (function() { + v1.MsgCreateClientResponse = (function() { /** - * Properties of a QueryClientStatusRequest. + * Properties of a MsgCreateClientResponse. * @memberof ibc.core.client.v1 - * @interface IQueryClientStatusRequest - * @property {string|null} [client_id] QueryClientStatusRequest client_id + * @interface IMsgCreateClientResponse */ /** - * Constructs a new QueryClientStatusRequest. + * Constructs a new MsgCreateClientResponse. * @memberof ibc.core.client.v1 - * @classdesc Represents a QueryClientStatusRequest. - * @implements IQueryClientStatusRequest + * @classdesc Represents a MsgCreateClientResponse. + * @implements IMsgCreateClientResponse * @constructor - * @param {ibc.core.client.v1.IQueryClientStatusRequest=} [properties] Properties to set + * @param {ibc.core.client.v1.IMsgCreateClientResponse=} [properties] Properties to set */ - function QueryClientStatusRequest(properties) { + function MsgCreateClientResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; - } - - /** - * QueryClientStatusRequest client_id. - * @member {string} client_id - * @memberof ibc.core.client.v1.QueryClientStatusRequest - * @instance - */ - QueryClientStatusRequest.prototype.client_id = ""; + } /** - * Encodes the specified QueryClientStatusRequest message. Does not implicitly {@link ibc.core.client.v1.QueryClientStatusRequest.verify|verify} messages. + * Encodes the specified MsgCreateClientResponse message. Does not implicitly {@link ibc.core.client.v1.MsgCreateClientResponse.verify|verify} messages. * @function encode - * @memberof ibc.core.client.v1.QueryClientStatusRequest + * @memberof ibc.core.client.v1.MsgCreateClientResponse * @static - * @param {ibc.core.client.v1.IQueryClientStatusRequest} message QueryClientStatusRequest message or plain object to encode + * @param {ibc.core.client.v1.IMsgCreateClientResponse} message MsgCreateClientResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryClientStatusRequest.encode = function encode(message, writer) { + MsgCreateClientResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.client_id != null && Object.hasOwnProperty.call(message, "client_id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.client_id); return writer; }; /** - * Encodes the specified QueryClientStatusRequest message, length delimited. Does not implicitly {@link ibc.core.client.v1.QueryClientStatusRequest.verify|verify} messages. + * Encodes the specified MsgCreateClientResponse message, length delimited. Does not implicitly {@link ibc.core.client.v1.MsgCreateClientResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.client.v1.QueryClientStatusRequest + * @memberof ibc.core.client.v1.MsgCreateClientResponse * @static - * @param {ibc.core.client.v1.IQueryClientStatusRequest} message QueryClientStatusRequest message or plain object to encode + * @param {ibc.core.client.v1.IMsgCreateClientResponse} message MsgCreateClientResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryClientStatusRequest.encodeDelimited = function encodeDelimited(message, writer) { + MsgCreateClientResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryClientStatusRequest message from the specified reader or buffer. + * Decodes a MsgCreateClientResponse message from the specified reader or buffer. * @function decode - * @memberof ibc.core.client.v1.QueryClientStatusRequest + * @memberof ibc.core.client.v1.MsgCreateClientResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.client.v1.QueryClientStatusRequest} QueryClientStatusRequest + * @returns {ibc.core.client.v1.MsgCreateClientResponse} MsgCreateClientResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryClientStatusRequest.decode = function decode(reader, length) { + MsgCreateClientResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.QueryClientStatusRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.MsgCreateClientResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.client_id = reader.string(); - break; default: reader.skipType(tag & 7); break; @@ -54387,107 +61002,96 @@ }; /** - * Decodes a QueryClientStatusRequest message from the specified reader or buffer, length delimited. + * Decodes a MsgCreateClientResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.client.v1.QueryClientStatusRequest + * @memberof ibc.core.client.v1.MsgCreateClientResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.client.v1.QueryClientStatusRequest} QueryClientStatusRequest + * @returns {ibc.core.client.v1.MsgCreateClientResponse} MsgCreateClientResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryClientStatusRequest.decodeDelimited = function decodeDelimited(reader) { + MsgCreateClientResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryClientStatusRequest message. + * Verifies a MsgCreateClientResponse message. * @function verify - * @memberof ibc.core.client.v1.QueryClientStatusRequest + * @memberof ibc.core.client.v1.MsgCreateClientResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryClientStatusRequest.verify = function verify(message) { + MsgCreateClientResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.client_id != null && message.hasOwnProperty("client_id")) - if (!$util.isString(message.client_id)) - return "client_id: string expected"; return null; }; /** - * Creates a QueryClientStatusRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MsgCreateClientResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.client.v1.QueryClientStatusRequest + * @memberof ibc.core.client.v1.MsgCreateClientResponse * @static * @param {Object.} object Plain object - * @returns {ibc.core.client.v1.QueryClientStatusRequest} QueryClientStatusRequest + * @returns {ibc.core.client.v1.MsgCreateClientResponse} MsgCreateClientResponse */ - QueryClientStatusRequest.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.client.v1.QueryClientStatusRequest) + MsgCreateClientResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.client.v1.MsgCreateClientResponse) return object; - var message = new $root.ibc.core.client.v1.QueryClientStatusRequest(); - if (object.client_id != null) - message.client_id = String(object.client_id); - return message; + return new $root.ibc.core.client.v1.MsgCreateClientResponse(); }; /** - * Creates a plain object from a QueryClientStatusRequest message. Also converts values to other types if specified. + * Creates a plain object from a MsgCreateClientResponse message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.client.v1.QueryClientStatusRequest + * @memberof ibc.core.client.v1.MsgCreateClientResponse * @static - * @param {ibc.core.client.v1.QueryClientStatusRequest} message QueryClientStatusRequest + * @param {ibc.core.client.v1.MsgCreateClientResponse} message MsgCreateClientResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryClientStatusRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.client_id = ""; - if (message.client_id != null && message.hasOwnProperty("client_id")) - object.client_id = message.client_id; - return object; + MsgCreateClientResponse.toObject = function toObject() { + return {}; }; /** - * Converts this QueryClientStatusRequest to JSON. + * Converts this MsgCreateClientResponse to JSON. * @function toJSON - * @memberof ibc.core.client.v1.QueryClientStatusRequest + * @memberof ibc.core.client.v1.MsgCreateClientResponse * @instance * @returns {Object.} JSON object */ - QueryClientStatusRequest.prototype.toJSON = function toJSON() { + MsgCreateClientResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryClientStatusRequest; + return MsgCreateClientResponse; })(); - v1.QueryClientStatusResponse = (function() { + v1.MsgUpdateClient = (function() { /** - * Properties of a QueryClientStatusResponse. + * Properties of a MsgUpdateClient. * @memberof ibc.core.client.v1 - * @interface IQueryClientStatusResponse - * @property {string|null} [status] QueryClientStatusResponse status + * @interface IMsgUpdateClient + * @property {string|null} [client_id] MsgUpdateClient client_id + * @property {google.protobuf.IAny|null} [client_message] MsgUpdateClient client_message + * @property {string|null} [signer] MsgUpdateClient signer */ /** - * Constructs a new QueryClientStatusResponse. + * Constructs a new MsgUpdateClient. * @memberof ibc.core.client.v1 - * @classdesc Represents a QueryClientStatusResponse. - * @implements IQueryClientStatusResponse + * @classdesc Represents a MsgUpdateClient. + * @implements IMsgUpdateClient * @constructor - * @param {ibc.core.client.v1.IQueryClientStatusResponse=} [properties] Properties to set + * @param {ibc.core.client.v1.IMsgUpdateClient=} [properties] Properties to set */ - function QueryClientStatusResponse(properties) { + function MsgUpdateClient(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -54495,63 +61099,89 @@ } /** - * QueryClientStatusResponse status. - * @member {string} status - * @memberof ibc.core.client.v1.QueryClientStatusResponse + * MsgUpdateClient client_id. + * @member {string} client_id + * @memberof ibc.core.client.v1.MsgUpdateClient * @instance */ - QueryClientStatusResponse.prototype.status = ""; + MsgUpdateClient.prototype.client_id = ""; /** - * Encodes the specified QueryClientStatusResponse message. Does not implicitly {@link ibc.core.client.v1.QueryClientStatusResponse.verify|verify} messages. + * MsgUpdateClient client_message. + * @member {google.protobuf.IAny|null|undefined} client_message + * @memberof ibc.core.client.v1.MsgUpdateClient + * @instance + */ + MsgUpdateClient.prototype.client_message = null; + + /** + * MsgUpdateClient signer. + * @member {string} signer + * @memberof ibc.core.client.v1.MsgUpdateClient + * @instance + */ + MsgUpdateClient.prototype.signer = ""; + + /** + * Encodes the specified MsgUpdateClient message. Does not implicitly {@link ibc.core.client.v1.MsgUpdateClient.verify|verify} messages. * @function encode - * @memberof ibc.core.client.v1.QueryClientStatusResponse + * @memberof ibc.core.client.v1.MsgUpdateClient * @static - * @param {ibc.core.client.v1.IQueryClientStatusResponse} message QueryClientStatusResponse message or plain object to encode + * @param {ibc.core.client.v1.IMsgUpdateClient} message MsgUpdateClient message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryClientStatusResponse.encode = function encode(message, writer) { + MsgUpdateClient.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.status != null && Object.hasOwnProperty.call(message, "status")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.status); + if (message.client_id != null && Object.hasOwnProperty.call(message, "client_id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.client_id); + if (message.client_message != null && Object.hasOwnProperty.call(message, "client_message")) + $root.google.protobuf.Any.encode(message.client_message, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.signer != null && Object.hasOwnProperty.call(message, "signer")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.signer); return writer; }; /** - * Encodes the specified QueryClientStatusResponse message, length delimited. Does not implicitly {@link ibc.core.client.v1.QueryClientStatusResponse.verify|verify} messages. + * Encodes the specified MsgUpdateClient message, length delimited. Does not implicitly {@link ibc.core.client.v1.MsgUpdateClient.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.client.v1.QueryClientStatusResponse + * @memberof ibc.core.client.v1.MsgUpdateClient * @static - * @param {ibc.core.client.v1.IQueryClientStatusResponse} message QueryClientStatusResponse message or plain object to encode + * @param {ibc.core.client.v1.IMsgUpdateClient} message MsgUpdateClient message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryClientStatusResponse.encodeDelimited = function encodeDelimited(message, writer) { + MsgUpdateClient.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryClientStatusResponse message from the specified reader or buffer. + * Decodes a MsgUpdateClient message from the specified reader or buffer. * @function decode - * @memberof ibc.core.client.v1.QueryClientStatusResponse + * @memberof ibc.core.client.v1.MsgUpdateClient * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.client.v1.QueryClientStatusResponse} QueryClientStatusResponse + * @returns {ibc.core.client.v1.MsgUpdateClient} MsgUpdateClient * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryClientStatusResponse.decode = function decode(reader, length) { + MsgUpdateClient.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.QueryClientStatusResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.MsgUpdateClient(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.status = reader.string(); + message.client_id = reader.string(); + break; + case 2: + message.client_message = $root.google.protobuf.Any.decode(reader, reader.uint32()); + break; + case 3: + message.signer = reader.string(); break; default: reader.skipType(tag & 7); @@ -54562,106 +61192,128 @@ }; /** - * Decodes a QueryClientStatusResponse message from the specified reader or buffer, length delimited. + * Decodes a MsgUpdateClient message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.client.v1.QueryClientStatusResponse + * @memberof ibc.core.client.v1.MsgUpdateClient * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.client.v1.QueryClientStatusResponse} QueryClientStatusResponse + * @returns {ibc.core.client.v1.MsgUpdateClient} MsgUpdateClient * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryClientStatusResponse.decodeDelimited = function decodeDelimited(reader) { + MsgUpdateClient.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryClientStatusResponse message. + * Verifies a MsgUpdateClient message. * @function verify - * @memberof ibc.core.client.v1.QueryClientStatusResponse + * @memberof ibc.core.client.v1.MsgUpdateClient * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryClientStatusResponse.verify = function verify(message) { + MsgUpdateClient.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.status != null && message.hasOwnProperty("status")) - if (!$util.isString(message.status)) - return "status: string expected"; + if (message.client_id != null && message.hasOwnProperty("client_id")) + if (!$util.isString(message.client_id)) + return "client_id: string expected"; + if (message.client_message != null && message.hasOwnProperty("client_message")) { + var error = $root.google.protobuf.Any.verify(message.client_message); + if (error) + return "client_message." + error; + } + if (message.signer != null && message.hasOwnProperty("signer")) + if (!$util.isString(message.signer)) + return "signer: string expected"; return null; }; /** - * Creates a QueryClientStatusResponse message from a plain object. Also converts values to their respective internal types. + * Creates a MsgUpdateClient message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.client.v1.QueryClientStatusResponse + * @memberof ibc.core.client.v1.MsgUpdateClient * @static * @param {Object.} object Plain object - * @returns {ibc.core.client.v1.QueryClientStatusResponse} QueryClientStatusResponse + * @returns {ibc.core.client.v1.MsgUpdateClient} MsgUpdateClient */ - QueryClientStatusResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.client.v1.QueryClientStatusResponse) + MsgUpdateClient.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.client.v1.MsgUpdateClient) return object; - var message = new $root.ibc.core.client.v1.QueryClientStatusResponse(); - if (object.status != null) - message.status = String(object.status); + var message = new $root.ibc.core.client.v1.MsgUpdateClient(); + if (object.client_id != null) + message.client_id = String(object.client_id); + if (object.client_message != null) { + if (typeof object.client_message !== "object") + throw TypeError(".ibc.core.client.v1.MsgUpdateClient.client_message: object expected"); + message.client_message = $root.google.protobuf.Any.fromObject(object.client_message); + } + if (object.signer != null) + message.signer = String(object.signer); return message; }; /** - * Creates a plain object from a QueryClientStatusResponse message. Also converts values to other types if specified. + * Creates a plain object from a MsgUpdateClient message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.client.v1.QueryClientStatusResponse + * @memberof ibc.core.client.v1.MsgUpdateClient * @static - * @param {ibc.core.client.v1.QueryClientStatusResponse} message QueryClientStatusResponse + * @param {ibc.core.client.v1.MsgUpdateClient} message MsgUpdateClient * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryClientStatusResponse.toObject = function toObject(message, options) { + MsgUpdateClient.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.status = ""; - if (message.status != null && message.hasOwnProperty("status")) - object.status = message.status; + if (options.defaults) { + object.client_id = ""; + object.client_message = null; + object.signer = ""; + } + if (message.client_id != null && message.hasOwnProperty("client_id")) + object.client_id = message.client_id; + if (message.client_message != null && message.hasOwnProperty("client_message")) + object.client_message = $root.google.protobuf.Any.toObject(message.client_message, options); + if (message.signer != null && message.hasOwnProperty("signer")) + object.signer = message.signer; return object; }; /** - * Converts this QueryClientStatusResponse to JSON. + * Converts this MsgUpdateClient to JSON. * @function toJSON - * @memberof ibc.core.client.v1.QueryClientStatusResponse + * @memberof ibc.core.client.v1.MsgUpdateClient * @instance * @returns {Object.} JSON object */ - QueryClientStatusResponse.prototype.toJSON = function toJSON() { + MsgUpdateClient.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryClientStatusResponse; + return MsgUpdateClient; })(); - v1.QueryClientParamsRequest = (function() { + v1.MsgUpdateClientResponse = (function() { /** - * Properties of a QueryClientParamsRequest. + * Properties of a MsgUpdateClientResponse. * @memberof ibc.core.client.v1 - * @interface IQueryClientParamsRequest + * @interface IMsgUpdateClientResponse */ /** - * Constructs a new QueryClientParamsRequest. + * Constructs a new MsgUpdateClientResponse. * @memberof ibc.core.client.v1 - * @classdesc Represents a QueryClientParamsRequest. - * @implements IQueryClientParamsRequest + * @classdesc Represents a MsgUpdateClientResponse. + * @implements IMsgUpdateClientResponse * @constructor - * @param {ibc.core.client.v1.IQueryClientParamsRequest=} [properties] Properties to set + * @param {ibc.core.client.v1.IMsgUpdateClientResponse=} [properties] Properties to set */ - function QueryClientParamsRequest(properties) { + function MsgUpdateClientResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -54669,48 +61321,48 @@ } /** - * Encodes the specified QueryClientParamsRequest message. Does not implicitly {@link ibc.core.client.v1.QueryClientParamsRequest.verify|verify} messages. + * Encodes the specified MsgUpdateClientResponse message. Does not implicitly {@link ibc.core.client.v1.MsgUpdateClientResponse.verify|verify} messages. * @function encode - * @memberof ibc.core.client.v1.QueryClientParamsRequest + * @memberof ibc.core.client.v1.MsgUpdateClientResponse * @static - * @param {ibc.core.client.v1.IQueryClientParamsRequest} message QueryClientParamsRequest message or plain object to encode + * @param {ibc.core.client.v1.IMsgUpdateClientResponse} message MsgUpdateClientResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryClientParamsRequest.encode = function encode(message, writer) { + MsgUpdateClientResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); return writer; }; /** - * Encodes the specified QueryClientParamsRequest message, length delimited. Does not implicitly {@link ibc.core.client.v1.QueryClientParamsRequest.verify|verify} messages. + * Encodes the specified MsgUpdateClientResponse message, length delimited. Does not implicitly {@link ibc.core.client.v1.MsgUpdateClientResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.client.v1.QueryClientParamsRequest + * @memberof ibc.core.client.v1.MsgUpdateClientResponse * @static - * @param {ibc.core.client.v1.IQueryClientParamsRequest} message QueryClientParamsRequest message or plain object to encode + * @param {ibc.core.client.v1.IMsgUpdateClientResponse} message MsgUpdateClientResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryClientParamsRequest.encodeDelimited = function encodeDelimited(message, writer) { + MsgUpdateClientResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryClientParamsRequest message from the specified reader or buffer. + * Decodes a MsgUpdateClientResponse message from the specified reader or buffer. * @function decode - * @memberof ibc.core.client.v1.QueryClientParamsRequest + * @memberof ibc.core.client.v1.MsgUpdateClientResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.client.v1.QueryClientParamsRequest} QueryClientParamsRequest + * @returns {ibc.core.client.v1.MsgUpdateClientResponse} MsgUpdateClientResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryClientParamsRequest.decode = function decode(reader, length) { + MsgUpdateClientResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.QueryClientParamsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.MsgUpdateClientResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -54723,94 +61375,99 @@ }; /** - * Decodes a QueryClientParamsRequest message from the specified reader or buffer, length delimited. + * Decodes a MsgUpdateClientResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.client.v1.QueryClientParamsRequest + * @memberof ibc.core.client.v1.MsgUpdateClientResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.client.v1.QueryClientParamsRequest} QueryClientParamsRequest + * @returns {ibc.core.client.v1.MsgUpdateClientResponse} MsgUpdateClientResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryClientParamsRequest.decodeDelimited = function decodeDelimited(reader) { + MsgUpdateClientResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryClientParamsRequest message. + * Verifies a MsgUpdateClientResponse message. * @function verify - * @memberof ibc.core.client.v1.QueryClientParamsRequest + * @memberof ibc.core.client.v1.MsgUpdateClientResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryClientParamsRequest.verify = function verify(message) { + MsgUpdateClientResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; return null; }; /** - * Creates a QueryClientParamsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MsgUpdateClientResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.client.v1.QueryClientParamsRequest + * @memberof ibc.core.client.v1.MsgUpdateClientResponse * @static * @param {Object.} object Plain object - * @returns {ibc.core.client.v1.QueryClientParamsRequest} QueryClientParamsRequest + * @returns {ibc.core.client.v1.MsgUpdateClientResponse} MsgUpdateClientResponse */ - QueryClientParamsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.client.v1.QueryClientParamsRequest) + MsgUpdateClientResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.client.v1.MsgUpdateClientResponse) return object; - return new $root.ibc.core.client.v1.QueryClientParamsRequest(); + return new $root.ibc.core.client.v1.MsgUpdateClientResponse(); }; /** - * Creates a plain object from a QueryClientParamsRequest message. Also converts values to other types if specified. + * Creates a plain object from a MsgUpdateClientResponse message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.client.v1.QueryClientParamsRequest + * @memberof ibc.core.client.v1.MsgUpdateClientResponse * @static - * @param {ibc.core.client.v1.QueryClientParamsRequest} message QueryClientParamsRequest + * @param {ibc.core.client.v1.MsgUpdateClientResponse} message MsgUpdateClientResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryClientParamsRequest.toObject = function toObject() { + MsgUpdateClientResponse.toObject = function toObject() { return {}; }; /** - * Converts this QueryClientParamsRequest to JSON. + * Converts this MsgUpdateClientResponse to JSON. * @function toJSON - * @memberof ibc.core.client.v1.QueryClientParamsRequest + * @memberof ibc.core.client.v1.MsgUpdateClientResponse * @instance * @returns {Object.} JSON object */ - QueryClientParamsRequest.prototype.toJSON = function toJSON() { + MsgUpdateClientResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryClientParamsRequest; + return MsgUpdateClientResponse; })(); - v1.QueryClientParamsResponse = (function() { + v1.MsgUpgradeClient = (function() { /** - * Properties of a QueryClientParamsResponse. + * Properties of a MsgUpgradeClient. * @memberof ibc.core.client.v1 - * @interface IQueryClientParamsResponse - * @property {ibc.core.client.v1.IParams|null} [params] QueryClientParamsResponse params + * @interface IMsgUpgradeClient + * @property {string|null} [client_id] MsgUpgradeClient client_id + * @property {google.protobuf.IAny|null} [client_state] MsgUpgradeClient client_state + * @property {google.protobuf.IAny|null} [consensus_state] MsgUpgradeClient consensus_state + * @property {Uint8Array|null} [proof_upgrade_client] MsgUpgradeClient proof_upgrade_client + * @property {Uint8Array|null} [proof_upgrade_consensus_state] MsgUpgradeClient proof_upgrade_consensus_state + * @property {string|null} [signer] MsgUpgradeClient signer */ /** - * Constructs a new QueryClientParamsResponse. + * Constructs a new MsgUpgradeClient. * @memberof ibc.core.client.v1 - * @classdesc Represents a QueryClientParamsResponse. - * @implements IQueryClientParamsResponse + * @classdesc Represents a MsgUpgradeClient. + * @implements IMsgUpgradeClient * @constructor - * @param {ibc.core.client.v1.IQueryClientParamsResponse=} [properties] Properties to set + * @param {ibc.core.client.v1.IMsgUpgradeClient=} [properties] Properties to set */ - function QueryClientParamsResponse(properties) { + function MsgUpgradeClient(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -54818,63 +61475,128 @@ } /** - * QueryClientParamsResponse params. - * @member {ibc.core.client.v1.IParams|null|undefined} params - * @memberof ibc.core.client.v1.QueryClientParamsResponse + * MsgUpgradeClient client_id. + * @member {string} client_id + * @memberof ibc.core.client.v1.MsgUpgradeClient * @instance */ - QueryClientParamsResponse.prototype.params = null; + MsgUpgradeClient.prototype.client_id = ""; /** - * Encodes the specified QueryClientParamsResponse message. Does not implicitly {@link ibc.core.client.v1.QueryClientParamsResponse.verify|verify} messages. + * MsgUpgradeClient client_state. + * @member {google.protobuf.IAny|null|undefined} client_state + * @memberof ibc.core.client.v1.MsgUpgradeClient + * @instance + */ + MsgUpgradeClient.prototype.client_state = null; + + /** + * MsgUpgradeClient consensus_state. + * @member {google.protobuf.IAny|null|undefined} consensus_state + * @memberof ibc.core.client.v1.MsgUpgradeClient + * @instance + */ + MsgUpgradeClient.prototype.consensus_state = null; + + /** + * MsgUpgradeClient proof_upgrade_client. + * @member {Uint8Array} proof_upgrade_client + * @memberof ibc.core.client.v1.MsgUpgradeClient + * @instance + */ + MsgUpgradeClient.prototype.proof_upgrade_client = $util.newBuffer([]); + + /** + * MsgUpgradeClient proof_upgrade_consensus_state. + * @member {Uint8Array} proof_upgrade_consensus_state + * @memberof ibc.core.client.v1.MsgUpgradeClient + * @instance + */ + MsgUpgradeClient.prototype.proof_upgrade_consensus_state = $util.newBuffer([]); + + /** + * MsgUpgradeClient signer. + * @member {string} signer + * @memberof ibc.core.client.v1.MsgUpgradeClient + * @instance + */ + MsgUpgradeClient.prototype.signer = ""; + + /** + * Encodes the specified MsgUpgradeClient message. Does not implicitly {@link ibc.core.client.v1.MsgUpgradeClient.verify|verify} messages. * @function encode - * @memberof ibc.core.client.v1.QueryClientParamsResponse + * @memberof ibc.core.client.v1.MsgUpgradeClient * @static - * @param {ibc.core.client.v1.IQueryClientParamsResponse} message QueryClientParamsResponse message or plain object to encode + * @param {ibc.core.client.v1.IMsgUpgradeClient} message MsgUpgradeClient message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryClientParamsResponse.encode = function encode(message, writer) { + MsgUpgradeClient.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.params != null && Object.hasOwnProperty.call(message, "params")) - $root.ibc.core.client.v1.Params.encode(message.params, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.client_id != null && Object.hasOwnProperty.call(message, "client_id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.client_id); + if (message.client_state != null && Object.hasOwnProperty.call(message, "client_state")) + $root.google.protobuf.Any.encode(message.client_state, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.consensus_state != null && Object.hasOwnProperty.call(message, "consensus_state")) + $root.google.protobuf.Any.encode(message.consensus_state, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.proof_upgrade_client != null && Object.hasOwnProperty.call(message, "proof_upgrade_client")) + writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.proof_upgrade_client); + if (message.proof_upgrade_consensus_state != null && Object.hasOwnProperty.call(message, "proof_upgrade_consensus_state")) + writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.proof_upgrade_consensus_state); + if (message.signer != null && Object.hasOwnProperty.call(message, "signer")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.signer); return writer; }; /** - * Encodes the specified QueryClientParamsResponse message, length delimited. Does not implicitly {@link ibc.core.client.v1.QueryClientParamsResponse.verify|verify} messages. + * Encodes the specified MsgUpgradeClient message, length delimited. Does not implicitly {@link ibc.core.client.v1.MsgUpgradeClient.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.client.v1.QueryClientParamsResponse + * @memberof ibc.core.client.v1.MsgUpgradeClient * @static - * @param {ibc.core.client.v1.IQueryClientParamsResponse} message QueryClientParamsResponse message or plain object to encode + * @param {ibc.core.client.v1.IMsgUpgradeClient} message MsgUpgradeClient message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryClientParamsResponse.encodeDelimited = function encodeDelimited(message, writer) { + MsgUpgradeClient.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryClientParamsResponse message from the specified reader or buffer. + * Decodes a MsgUpgradeClient message from the specified reader or buffer. * @function decode - * @memberof ibc.core.client.v1.QueryClientParamsResponse + * @memberof ibc.core.client.v1.MsgUpgradeClient * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.client.v1.QueryClientParamsResponse} QueryClientParamsResponse + * @returns {ibc.core.client.v1.MsgUpgradeClient} MsgUpgradeClient * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryClientParamsResponse.decode = function decode(reader, length) { + MsgUpgradeClient.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.QueryClientParamsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.MsgUpgradeClient(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.params = $root.ibc.core.client.v1.Params.decode(reader, reader.uint32()); + message.client_id = reader.string(); + break; + case 2: + message.client_state = $root.google.protobuf.Any.decode(reader, reader.uint32()); + break; + case 3: + message.consensus_state = $root.google.protobuf.Any.decode(reader, reader.uint32()); + break; + case 4: + message.proof_upgrade_client = reader.bytes(); + break; + case 5: + message.proof_upgrade_consensus_state = reader.bytes(); + break; + case 6: + message.signer = reader.string(); break; default: reader.skipType(tag & 7); @@ -54885,111 +61607,175 @@ }; /** - * Decodes a QueryClientParamsResponse message from the specified reader or buffer, length delimited. + * Decodes a MsgUpgradeClient message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.client.v1.QueryClientParamsResponse + * @memberof ibc.core.client.v1.MsgUpgradeClient * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.client.v1.QueryClientParamsResponse} QueryClientParamsResponse + * @returns {ibc.core.client.v1.MsgUpgradeClient} MsgUpgradeClient * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryClientParamsResponse.decodeDelimited = function decodeDelimited(reader) { + MsgUpgradeClient.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryClientParamsResponse message. + * Verifies a MsgUpgradeClient message. * @function verify - * @memberof ibc.core.client.v1.QueryClientParamsResponse + * @memberof ibc.core.client.v1.MsgUpgradeClient * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryClientParamsResponse.verify = function verify(message) { + MsgUpgradeClient.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.params != null && message.hasOwnProperty("params")) { - var error = $root.ibc.core.client.v1.Params.verify(message.params); + if (message.client_id != null && message.hasOwnProperty("client_id")) + if (!$util.isString(message.client_id)) + return "client_id: string expected"; + if (message.client_state != null && message.hasOwnProperty("client_state")) { + var error = $root.google.protobuf.Any.verify(message.client_state); if (error) - return "params." + error; + return "client_state." + error; + } + if (message.consensus_state != null && message.hasOwnProperty("consensus_state")) { + var error = $root.google.protobuf.Any.verify(message.consensus_state); + if (error) + return "consensus_state." + error; } + if (message.proof_upgrade_client != null && message.hasOwnProperty("proof_upgrade_client")) + if (!(message.proof_upgrade_client && typeof message.proof_upgrade_client.length === "number" || $util.isString(message.proof_upgrade_client))) + return "proof_upgrade_client: buffer expected"; + if (message.proof_upgrade_consensus_state != null && message.hasOwnProperty("proof_upgrade_consensus_state")) + if (!(message.proof_upgrade_consensus_state && typeof message.proof_upgrade_consensus_state.length === "number" || $util.isString(message.proof_upgrade_consensus_state))) + return "proof_upgrade_consensus_state: buffer expected"; + if (message.signer != null && message.hasOwnProperty("signer")) + if (!$util.isString(message.signer)) + return "signer: string expected"; return null; }; /** - * Creates a QueryClientParamsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a MsgUpgradeClient message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.client.v1.QueryClientParamsResponse + * @memberof ibc.core.client.v1.MsgUpgradeClient * @static * @param {Object.} object Plain object - * @returns {ibc.core.client.v1.QueryClientParamsResponse} QueryClientParamsResponse + * @returns {ibc.core.client.v1.MsgUpgradeClient} MsgUpgradeClient */ - QueryClientParamsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.client.v1.QueryClientParamsResponse) + MsgUpgradeClient.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.client.v1.MsgUpgradeClient) return object; - var message = new $root.ibc.core.client.v1.QueryClientParamsResponse(); - if (object.params != null) { - if (typeof object.params !== "object") - throw TypeError(".ibc.core.client.v1.QueryClientParamsResponse.params: object expected"); - message.params = $root.ibc.core.client.v1.Params.fromObject(object.params); + var message = new $root.ibc.core.client.v1.MsgUpgradeClient(); + if (object.client_id != null) + message.client_id = String(object.client_id); + if (object.client_state != null) { + if (typeof object.client_state !== "object") + throw TypeError(".ibc.core.client.v1.MsgUpgradeClient.client_state: object expected"); + message.client_state = $root.google.protobuf.Any.fromObject(object.client_state); + } + if (object.consensus_state != null) { + if (typeof object.consensus_state !== "object") + throw TypeError(".ibc.core.client.v1.MsgUpgradeClient.consensus_state: object expected"); + message.consensus_state = $root.google.protobuf.Any.fromObject(object.consensus_state); } + if (object.proof_upgrade_client != null) + if (typeof object.proof_upgrade_client === "string") + $util.base64.decode(object.proof_upgrade_client, message.proof_upgrade_client = $util.newBuffer($util.base64.length(object.proof_upgrade_client)), 0); + else if (object.proof_upgrade_client.length) + message.proof_upgrade_client = object.proof_upgrade_client; + if (object.proof_upgrade_consensus_state != null) + if (typeof object.proof_upgrade_consensus_state === "string") + $util.base64.decode(object.proof_upgrade_consensus_state, message.proof_upgrade_consensus_state = $util.newBuffer($util.base64.length(object.proof_upgrade_consensus_state)), 0); + else if (object.proof_upgrade_consensus_state.length) + message.proof_upgrade_consensus_state = object.proof_upgrade_consensus_state; + if (object.signer != null) + message.signer = String(object.signer); return message; }; /** - * Creates a plain object from a QueryClientParamsResponse message. Also converts values to other types if specified. + * Creates a plain object from a MsgUpgradeClient message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.client.v1.QueryClientParamsResponse + * @memberof ibc.core.client.v1.MsgUpgradeClient * @static - * @param {ibc.core.client.v1.QueryClientParamsResponse} message QueryClientParamsResponse + * @param {ibc.core.client.v1.MsgUpgradeClient} message MsgUpgradeClient * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryClientParamsResponse.toObject = function toObject(message, options) { + MsgUpgradeClient.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.params = null; - if (message.params != null && message.hasOwnProperty("params")) - object.params = $root.ibc.core.client.v1.Params.toObject(message.params, options); + if (options.defaults) { + object.client_id = ""; + object.client_state = null; + object.consensus_state = null; + if (options.bytes === String) + object.proof_upgrade_client = ""; + else { + object.proof_upgrade_client = []; + if (options.bytes !== Array) + object.proof_upgrade_client = $util.newBuffer(object.proof_upgrade_client); + } + if (options.bytes === String) + object.proof_upgrade_consensus_state = ""; + else { + object.proof_upgrade_consensus_state = []; + if (options.bytes !== Array) + object.proof_upgrade_consensus_state = $util.newBuffer(object.proof_upgrade_consensus_state); + } + object.signer = ""; + } + if (message.client_id != null && message.hasOwnProperty("client_id")) + object.client_id = message.client_id; + if (message.client_state != null && message.hasOwnProperty("client_state")) + object.client_state = $root.google.protobuf.Any.toObject(message.client_state, options); + if (message.consensus_state != null && message.hasOwnProperty("consensus_state")) + object.consensus_state = $root.google.protobuf.Any.toObject(message.consensus_state, options); + if (message.proof_upgrade_client != null && message.hasOwnProperty("proof_upgrade_client")) + object.proof_upgrade_client = options.bytes === String ? $util.base64.encode(message.proof_upgrade_client, 0, message.proof_upgrade_client.length) : options.bytes === Array ? Array.prototype.slice.call(message.proof_upgrade_client) : message.proof_upgrade_client; + if (message.proof_upgrade_consensus_state != null && message.hasOwnProperty("proof_upgrade_consensus_state")) + object.proof_upgrade_consensus_state = options.bytes === String ? $util.base64.encode(message.proof_upgrade_consensus_state, 0, message.proof_upgrade_consensus_state.length) : options.bytes === Array ? Array.prototype.slice.call(message.proof_upgrade_consensus_state) : message.proof_upgrade_consensus_state; + if (message.signer != null && message.hasOwnProperty("signer")) + object.signer = message.signer; return object; }; /** - * Converts this QueryClientParamsResponse to JSON. + * Converts this MsgUpgradeClient to JSON. * @function toJSON - * @memberof ibc.core.client.v1.QueryClientParamsResponse + * @memberof ibc.core.client.v1.MsgUpgradeClient * @instance * @returns {Object.} JSON object */ - QueryClientParamsResponse.prototype.toJSON = function toJSON() { + MsgUpgradeClient.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryClientParamsResponse; + return MsgUpgradeClient; })(); - v1.QueryUpgradedClientStateRequest = (function() { + v1.MsgUpgradeClientResponse = (function() { /** - * Properties of a QueryUpgradedClientStateRequest. + * Properties of a MsgUpgradeClientResponse. * @memberof ibc.core.client.v1 - * @interface IQueryUpgradedClientStateRequest + * @interface IMsgUpgradeClientResponse */ /** - * Constructs a new QueryUpgradedClientStateRequest. + * Constructs a new MsgUpgradeClientResponse. * @memberof ibc.core.client.v1 - * @classdesc Represents a QueryUpgradedClientStateRequest. - * @implements IQueryUpgradedClientStateRequest + * @classdesc Represents a MsgUpgradeClientResponse. + * @implements IMsgUpgradeClientResponse * @constructor - * @param {ibc.core.client.v1.IQueryUpgradedClientStateRequest=} [properties] Properties to set + * @param {ibc.core.client.v1.IMsgUpgradeClientResponse=} [properties] Properties to set */ - function QueryUpgradedClientStateRequest(properties) { + function MsgUpgradeClientResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -54997,48 +61783,48 @@ } /** - * Encodes the specified QueryUpgradedClientStateRequest message. Does not implicitly {@link ibc.core.client.v1.QueryUpgradedClientStateRequest.verify|verify} messages. + * Encodes the specified MsgUpgradeClientResponse message. Does not implicitly {@link ibc.core.client.v1.MsgUpgradeClientResponse.verify|verify} messages. * @function encode - * @memberof ibc.core.client.v1.QueryUpgradedClientStateRequest + * @memberof ibc.core.client.v1.MsgUpgradeClientResponse * @static - * @param {ibc.core.client.v1.IQueryUpgradedClientStateRequest} message QueryUpgradedClientStateRequest message or plain object to encode + * @param {ibc.core.client.v1.IMsgUpgradeClientResponse} message MsgUpgradeClientResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryUpgradedClientStateRequest.encode = function encode(message, writer) { + MsgUpgradeClientResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); return writer; }; /** - * Encodes the specified QueryUpgradedClientStateRequest message, length delimited. Does not implicitly {@link ibc.core.client.v1.QueryUpgradedClientStateRequest.verify|verify} messages. + * Encodes the specified MsgUpgradeClientResponse message, length delimited. Does not implicitly {@link ibc.core.client.v1.MsgUpgradeClientResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.client.v1.QueryUpgradedClientStateRequest + * @memberof ibc.core.client.v1.MsgUpgradeClientResponse * @static - * @param {ibc.core.client.v1.IQueryUpgradedClientStateRequest} message QueryUpgradedClientStateRequest message or plain object to encode + * @param {ibc.core.client.v1.IMsgUpgradeClientResponse} message MsgUpgradeClientResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryUpgradedClientStateRequest.encodeDelimited = function encodeDelimited(message, writer) { + MsgUpgradeClientResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryUpgradedClientStateRequest message from the specified reader or buffer. + * Decodes a MsgUpgradeClientResponse message from the specified reader or buffer. * @function decode - * @memberof ibc.core.client.v1.QueryUpgradedClientStateRequest + * @memberof ibc.core.client.v1.MsgUpgradeClientResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.client.v1.QueryUpgradedClientStateRequest} QueryUpgradedClientStateRequest + * @returns {ibc.core.client.v1.MsgUpgradeClientResponse} MsgUpgradeClientResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryUpgradedClientStateRequest.decode = function decode(reader, length) { + MsgUpgradeClientResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.QueryUpgradedClientStateRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.MsgUpgradeClientResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -55051,94 +61837,96 @@ }; /** - * Decodes a QueryUpgradedClientStateRequest message from the specified reader or buffer, length delimited. + * Decodes a MsgUpgradeClientResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.client.v1.QueryUpgradedClientStateRequest + * @memberof ibc.core.client.v1.MsgUpgradeClientResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.client.v1.QueryUpgradedClientStateRequest} QueryUpgradedClientStateRequest + * @returns {ibc.core.client.v1.MsgUpgradeClientResponse} MsgUpgradeClientResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryUpgradedClientStateRequest.decodeDelimited = function decodeDelimited(reader) { + MsgUpgradeClientResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryUpgradedClientStateRequest message. + * Verifies a MsgUpgradeClientResponse message. * @function verify - * @memberof ibc.core.client.v1.QueryUpgradedClientStateRequest + * @memberof ibc.core.client.v1.MsgUpgradeClientResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryUpgradedClientStateRequest.verify = function verify(message) { + MsgUpgradeClientResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; return null; }; /** - * Creates a QueryUpgradedClientStateRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MsgUpgradeClientResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.client.v1.QueryUpgradedClientStateRequest + * @memberof ibc.core.client.v1.MsgUpgradeClientResponse * @static * @param {Object.} object Plain object - * @returns {ibc.core.client.v1.QueryUpgradedClientStateRequest} QueryUpgradedClientStateRequest + * @returns {ibc.core.client.v1.MsgUpgradeClientResponse} MsgUpgradeClientResponse */ - QueryUpgradedClientStateRequest.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.client.v1.QueryUpgradedClientStateRequest) + MsgUpgradeClientResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.client.v1.MsgUpgradeClientResponse) return object; - return new $root.ibc.core.client.v1.QueryUpgradedClientStateRequest(); + return new $root.ibc.core.client.v1.MsgUpgradeClientResponse(); }; /** - * Creates a plain object from a QueryUpgradedClientStateRequest message. Also converts values to other types if specified. + * Creates a plain object from a MsgUpgradeClientResponse message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.client.v1.QueryUpgradedClientStateRequest + * @memberof ibc.core.client.v1.MsgUpgradeClientResponse * @static - * @param {ibc.core.client.v1.QueryUpgradedClientStateRequest} message QueryUpgradedClientStateRequest + * @param {ibc.core.client.v1.MsgUpgradeClientResponse} message MsgUpgradeClientResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryUpgradedClientStateRequest.toObject = function toObject() { + MsgUpgradeClientResponse.toObject = function toObject() { return {}; }; /** - * Converts this QueryUpgradedClientStateRequest to JSON. + * Converts this MsgUpgradeClientResponse to JSON. * @function toJSON - * @memberof ibc.core.client.v1.QueryUpgradedClientStateRequest + * @memberof ibc.core.client.v1.MsgUpgradeClientResponse * @instance * @returns {Object.} JSON object */ - QueryUpgradedClientStateRequest.prototype.toJSON = function toJSON() { + MsgUpgradeClientResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryUpgradedClientStateRequest; + return MsgUpgradeClientResponse; })(); - v1.QueryUpgradedClientStateResponse = (function() { + v1.MsgSubmitMisbehaviour = (function() { /** - * Properties of a QueryUpgradedClientStateResponse. + * Properties of a MsgSubmitMisbehaviour. * @memberof ibc.core.client.v1 - * @interface IQueryUpgradedClientStateResponse - * @property {google.protobuf.IAny|null} [upgraded_client_state] QueryUpgradedClientStateResponse upgraded_client_state + * @interface IMsgSubmitMisbehaviour + * @property {string|null} [client_id] MsgSubmitMisbehaviour client_id + * @property {google.protobuf.IAny|null} [misbehaviour] MsgSubmitMisbehaviour misbehaviour + * @property {string|null} [signer] MsgSubmitMisbehaviour signer */ /** - * Constructs a new QueryUpgradedClientStateResponse. + * Constructs a new MsgSubmitMisbehaviour. * @memberof ibc.core.client.v1 - * @classdesc Represents a QueryUpgradedClientStateResponse. - * @implements IQueryUpgradedClientStateResponse + * @classdesc Represents a MsgSubmitMisbehaviour. + * @implements IMsgSubmitMisbehaviour * @constructor - * @param {ibc.core.client.v1.IQueryUpgradedClientStateResponse=} [properties] Properties to set + * @param {ibc.core.client.v1.IMsgSubmitMisbehaviour=} [properties] Properties to set */ - function QueryUpgradedClientStateResponse(properties) { + function MsgSubmitMisbehaviour(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -55146,63 +61934,89 @@ } /** - * QueryUpgradedClientStateResponse upgraded_client_state. - * @member {google.protobuf.IAny|null|undefined} upgraded_client_state - * @memberof ibc.core.client.v1.QueryUpgradedClientStateResponse + * MsgSubmitMisbehaviour client_id. + * @member {string} client_id + * @memberof ibc.core.client.v1.MsgSubmitMisbehaviour * @instance */ - QueryUpgradedClientStateResponse.prototype.upgraded_client_state = null; + MsgSubmitMisbehaviour.prototype.client_id = ""; /** - * Encodes the specified QueryUpgradedClientStateResponse message. Does not implicitly {@link ibc.core.client.v1.QueryUpgradedClientStateResponse.verify|verify} messages. + * MsgSubmitMisbehaviour misbehaviour. + * @member {google.protobuf.IAny|null|undefined} misbehaviour + * @memberof ibc.core.client.v1.MsgSubmitMisbehaviour + * @instance + */ + MsgSubmitMisbehaviour.prototype.misbehaviour = null; + + /** + * MsgSubmitMisbehaviour signer. + * @member {string} signer + * @memberof ibc.core.client.v1.MsgSubmitMisbehaviour + * @instance + */ + MsgSubmitMisbehaviour.prototype.signer = ""; + + /** + * Encodes the specified MsgSubmitMisbehaviour message. Does not implicitly {@link ibc.core.client.v1.MsgSubmitMisbehaviour.verify|verify} messages. * @function encode - * @memberof ibc.core.client.v1.QueryUpgradedClientStateResponse + * @memberof ibc.core.client.v1.MsgSubmitMisbehaviour * @static - * @param {ibc.core.client.v1.IQueryUpgradedClientStateResponse} message QueryUpgradedClientStateResponse message or plain object to encode + * @param {ibc.core.client.v1.IMsgSubmitMisbehaviour} message MsgSubmitMisbehaviour message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryUpgradedClientStateResponse.encode = function encode(message, writer) { + MsgSubmitMisbehaviour.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.upgraded_client_state != null && Object.hasOwnProperty.call(message, "upgraded_client_state")) - $root.google.protobuf.Any.encode(message.upgraded_client_state, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.client_id != null && Object.hasOwnProperty.call(message, "client_id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.client_id); + if (message.misbehaviour != null && Object.hasOwnProperty.call(message, "misbehaviour")) + $root.google.protobuf.Any.encode(message.misbehaviour, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.signer != null && Object.hasOwnProperty.call(message, "signer")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.signer); return writer; }; /** - * Encodes the specified QueryUpgradedClientStateResponse message, length delimited. Does not implicitly {@link ibc.core.client.v1.QueryUpgradedClientStateResponse.verify|verify} messages. + * Encodes the specified MsgSubmitMisbehaviour message, length delimited. Does not implicitly {@link ibc.core.client.v1.MsgSubmitMisbehaviour.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.client.v1.QueryUpgradedClientStateResponse + * @memberof ibc.core.client.v1.MsgSubmitMisbehaviour * @static - * @param {ibc.core.client.v1.IQueryUpgradedClientStateResponse} message QueryUpgradedClientStateResponse message or plain object to encode + * @param {ibc.core.client.v1.IMsgSubmitMisbehaviour} message MsgSubmitMisbehaviour message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryUpgradedClientStateResponse.encodeDelimited = function encodeDelimited(message, writer) { + MsgSubmitMisbehaviour.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryUpgradedClientStateResponse message from the specified reader or buffer. + * Decodes a MsgSubmitMisbehaviour message from the specified reader or buffer. * @function decode - * @memberof ibc.core.client.v1.QueryUpgradedClientStateResponse + * @memberof ibc.core.client.v1.MsgSubmitMisbehaviour * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.client.v1.QueryUpgradedClientStateResponse} QueryUpgradedClientStateResponse + * @returns {ibc.core.client.v1.MsgSubmitMisbehaviour} MsgSubmitMisbehaviour * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryUpgradedClientStateResponse.decode = function decode(reader, length) { + MsgSubmitMisbehaviour.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.QueryUpgradedClientStateResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.MsgSubmitMisbehaviour(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.upgraded_client_state = $root.google.protobuf.Any.decode(reader, reader.uint32()); + message.client_id = reader.string(); + break; + case 2: + message.misbehaviour = $root.google.protobuf.Any.decode(reader, reader.uint32()); + break; + case 3: + message.signer = reader.string(); break; default: reader.skipType(tag & 7); @@ -55213,111 +62027,128 @@ }; /** - * Decodes a QueryUpgradedClientStateResponse message from the specified reader or buffer, length delimited. + * Decodes a MsgSubmitMisbehaviour message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.client.v1.QueryUpgradedClientStateResponse + * @memberof ibc.core.client.v1.MsgSubmitMisbehaviour * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.client.v1.QueryUpgradedClientStateResponse} QueryUpgradedClientStateResponse + * @returns {ibc.core.client.v1.MsgSubmitMisbehaviour} MsgSubmitMisbehaviour * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryUpgradedClientStateResponse.decodeDelimited = function decodeDelimited(reader) { + MsgSubmitMisbehaviour.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryUpgradedClientStateResponse message. + * Verifies a MsgSubmitMisbehaviour message. * @function verify - * @memberof ibc.core.client.v1.QueryUpgradedClientStateResponse + * @memberof ibc.core.client.v1.MsgSubmitMisbehaviour * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryUpgradedClientStateResponse.verify = function verify(message) { + MsgSubmitMisbehaviour.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.upgraded_client_state != null && message.hasOwnProperty("upgraded_client_state")) { - var error = $root.google.protobuf.Any.verify(message.upgraded_client_state); + if (message.client_id != null && message.hasOwnProperty("client_id")) + if (!$util.isString(message.client_id)) + return "client_id: string expected"; + if (message.misbehaviour != null && message.hasOwnProperty("misbehaviour")) { + var error = $root.google.protobuf.Any.verify(message.misbehaviour); if (error) - return "upgraded_client_state." + error; + return "misbehaviour." + error; } + if (message.signer != null && message.hasOwnProperty("signer")) + if (!$util.isString(message.signer)) + return "signer: string expected"; return null; }; /** - * Creates a QueryUpgradedClientStateResponse message from a plain object. Also converts values to their respective internal types. + * Creates a MsgSubmitMisbehaviour message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.client.v1.QueryUpgradedClientStateResponse + * @memberof ibc.core.client.v1.MsgSubmitMisbehaviour * @static * @param {Object.} object Plain object - * @returns {ibc.core.client.v1.QueryUpgradedClientStateResponse} QueryUpgradedClientStateResponse + * @returns {ibc.core.client.v1.MsgSubmitMisbehaviour} MsgSubmitMisbehaviour */ - QueryUpgradedClientStateResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.client.v1.QueryUpgradedClientStateResponse) + MsgSubmitMisbehaviour.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.client.v1.MsgSubmitMisbehaviour) return object; - var message = new $root.ibc.core.client.v1.QueryUpgradedClientStateResponse(); - if (object.upgraded_client_state != null) { - if (typeof object.upgraded_client_state !== "object") - throw TypeError(".ibc.core.client.v1.QueryUpgradedClientStateResponse.upgraded_client_state: object expected"); - message.upgraded_client_state = $root.google.protobuf.Any.fromObject(object.upgraded_client_state); + var message = new $root.ibc.core.client.v1.MsgSubmitMisbehaviour(); + if (object.client_id != null) + message.client_id = String(object.client_id); + if (object.misbehaviour != null) { + if (typeof object.misbehaviour !== "object") + throw TypeError(".ibc.core.client.v1.MsgSubmitMisbehaviour.misbehaviour: object expected"); + message.misbehaviour = $root.google.protobuf.Any.fromObject(object.misbehaviour); } + if (object.signer != null) + message.signer = String(object.signer); return message; }; /** - * Creates a plain object from a QueryUpgradedClientStateResponse message. Also converts values to other types if specified. + * Creates a plain object from a MsgSubmitMisbehaviour message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.client.v1.QueryUpgradedClientStateResponse + * @memberof ibc.core.client.v1.MsgSubmitMisbehaviour * @static - * @param {ibc.core.client.v1.QueryUpgradedClientStateResponse} message QueryUpgradedClientStateResponse + * @param {ibc.core.client.v1.MsgSubmitMisbehaviour} message MsgSubmitMisbehaviour * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryUpgradedClientStateResponse.toObject = function toObject(message, options) { + MsgSubmitMisbehaviour.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.upgraded_client_state = null; - if (message.upgraded_client_state != null && message.hasOwnProperty("upgraded_client_state")) - object.upgraded_client_state = $root.google.protobuf.Any.toObject(message.upgraded_client_state, options); + if (options.defaults) { + object.client_id = ""; + object.misbehaviour = null; + object.signer = ""; + } + if (message.client_id != null && message.hasOwnProperty("client_id")) + object.client_id = message.client_id; + if (message.misbehaviour != null && message.hasOwnProperty("misbehaviour")) + object.misbehaviour = $root.google.protobuf.Any.toObject(message.misbehaviour, options); + if (message.signer != null && message.hasOwnProperty("signer")) + object.signer = message.signer; return object; }; /** - * Converts this QueryUpgradedClientStateResponse to JSON. + * Converts this MsgSubmitMisbehaviour to JSON. * @function toJSON - * @memberof ibc.core.client.v1.QueryUpgradedClientStateResponse + * @memberof ibc.core.client.v1.MsgSubmitMisbehaviour * @instance * @returns {Object.} JSON object */ - QueryUpgradedClientStateResponse.prototype.toJSON = function toJSON() { + MsgSubmitMisbehaviour.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryUpgradedClientStateResponse; + return MsgSubmitMisbehaviour; })(); - v1.QueryUpgradedConsensusStateRequest = (function() { + v1.MsgSubmitMisbehaviourResponse = (function() { /** - * Properties of a QueryUpgradedConsensusStateRequest. + * Properties of a MsgSubmitMisbehaviourResponse. * @memberof ibc.core.client.v1 - * @interface IQueryUpgradedConsensusStateRequest + * @interface IMsgSubmitMisbehaviourResponse */ /** - * Constructs a new QueryUpgradedConsensusStateRequest. + * Constructs a new MsgSubmitMisbehaviourResponse. * @memberof ibc.core.client.v1 - * @classdesc Represents a QueryUpgradedConsensusStateRequest. - * @implements IQueryUpgradedConsensusStateRequest + * @classdesc Represents a MsgSubmitMisbehaviourResponse. + * @implements IMsgSubmitMisbehaviourResponse * @constructor - * @param {ibc.core.client.v1.IQueryUpgradedConsensusStateRequest=} [properties] Properties to set + * @param {ibc.core.client.v1.IMsgSubmitMisbehaviourResponse=} [properties] Properties to set */ - function QueryUpgradedConsensusStateRequest(properties) { + function MsgSubmitMisbehaviourResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -55325,48 +62156,48 @@ } /** - * Encodes the specified QueryUpgradedConsensusStateRequest message. Does not implicitly {@link ibc.core.client.v1.QueryUpgradedConsensusStateRequest.verify|verify} messages. + * Encodes the specified MsgSubmitMisbehaviourResponse message. Does not implicitly {@link ibc.core.client.v1.MsgSubmitMisbehaviourResponse.verify|verify} messages. * @function encode - * @memberof ibc.core.client.v1.QueryUpgradedConsensusStateRequest + * @memberof ibc.core.client.v1.MsgSubmitMisbehaviourResponse * @static - * @param {ibc.core.client.v1.IQueryUpgradedConsensusStateRequest} message QueryUpgradedConsensusStateRequest message or plain object to encode + * @param {ibc.core.client.v1.IMsgSubmitMisbehaviourResponse} message MsgSubmitMisbehaviourResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryUpgradedConsensusStateRequest.encode = function encode(message, writer) { + MsgSubmitMisbehaviourResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); return writer; }; /** - * Encodes the specified QueryUpgradedConsensusStateRequest message, length delimited. Does not implicitly {@link ibc.core.client.v1.QueryUpgradedConsensusStateRequest.verify|verify} messages. + * Encodes the specified MsgSubmitMisbehaviourResponse message, length delimited. Does not implicitly {@link ibc.core.client.v1.MsgSubmitMisbehaviourResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.client.v1.QueryUpgradedConsensusStateRequest + * @memberof ibc.core.client.v1.MsgSubmitMisbehaviourResponse * @static - * @param {ibc.core.client.v1.IQueryUpgradedConsensusStateRequest} message QueryUpgradedConsensusStateRequest message or plain object to encode + * @param {ibc.core.client.v1.IMsgSubmitMisbehaviourResponse} message MsgSubmitMisbehaviourResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryUpgradedConsensusStateRequest.encodeDelimited = function encodeDelimited(message, writer) { + MsgSubmitMisbehaviourResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryUpgradedConsensusStateRequest message from the specified reader or buffer. + * Decodes a MsgSubmitMisbehaviourResponse message from the specified reader or buffer. * @function decode - * @memberof ibc.core.client.v1.QueryUpgradedConsensusStateRequest + * @memberof ibc.core.client.v1.MsgSubmitMisbehaviourResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.client.v1.QueryUpgradedConsensusStateRequest} QueryUpgradedConsensusStateRequest + * @returns {ibc.core.client.v1.MsgSubmitMisbehaviourResponse} MsgSubmitMisbehaviourResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryUpgradedConsensusStateRequest.decode = function decode(reader, length) { + MsgSubmitMisbehaviourResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.QueryUpgradedConsensusStateRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.MsgSubmitMisbehaviourResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -55379,420 +62210,476 @@ }; /** - * Decodes a QueryUpgradedConsensusStateRequest message from the specified reader or buffer, length delimited. + * Decodes a MsgSubmitMisbehaviourResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.client.v1.QueryUpgradedConsensusStateRequest + * @memberof ibc.core.client.v1.MsgSubmitMisbehaviourResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.client.v1.QueryUpgradedConsensusStateRequest} QueryUpgradedConsensusStateRequest + * @returns {ibc.core.client.v1.MsgSubmitMisbehaviourResponse} MsgSubmitMisbehaviourResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryUpgradedConsensusStateRequest.decodeDelimited = function decodeDelimited(reader) { + MsgSubmitMisbehaviourResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryUpgradedConsensusStateRequest message. + * Verifies a MsgSubmitMisbehaviourResponse message. * @function verify - * @memberof ibc.core.client.v1.QueryUpgradedConsensusStateRequest + * @memberof ibc.core.client.v1.MsgSubmitMisbehaviourResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryUpgradedConsensusStateRequest.verify = function verify(message) { + MsgSubmitMisbehaviourResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; return null; }; /** - * Creates a QueryUpgradedConsensusStateRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MsgSubmitMisbehaviourResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.client.v1.QueryUpgradedConsensusStateRequest + * @memberof ibc.core.client.v1.MsgSubmitMisbehaviourResponse * @static * @param {Object.} object Plain object - * @returns {ibc.core.client.v1.QueryUpgradedConsensusStateRequest} QueryUpgradedConsensusStateRequest + * @returns {ibc.core.client.v1.MsgSubmitMisbehaviourResponse} MsgSubmitMisbehaviourResponse */ - QueryUpgradedConsensusStateRequest.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.client.v1.QueryUpgradedConsensusStateRequest) + MsgSubmitMisbehaviourResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.client.v1.MsgSubmitMisbehaviourResponse) return object; - return new $root.ibc.core.client.v1.QueryUpgradedConsensusStateRequest(); + return new $root.ibc.core.client.v1.MsgSubmitMisbehaviourResponse(); }; /** - * Creates a plain object from a QueryUpgradedConsensusStateRequest message. Also converts values to other types if specified. + * Creates a plain object from a MsgSubmitMisbehaviourResponse message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.client.v1.QueryUpgradedConsensusStateRequest + * @memberof ibc.core.client.v1.MsgSubmitMisbehaviourResponse * @static - * @param {ibc.core.client.v1.QueryUpgradedConsensusStateRequest} message QueryUpgradedConsensusStateRequest + * @param {ibc.core.client.v1.MsgSubmitMisbehaviourResponse} message MsgSubmitMisbehaviourResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryUpgradedConsensusStateRequest.toObject = function toObject() { - return {}; - }; + MsgSubmitMisbehaviourResponse.toObject = function toObject() { + return {}; + }; + + /** + * Converts this MsgSubmitMisbehaviourResponse to JSON. + * @function toJSON + * @memberof ibc.core.client.v1.MsgSubmitMisbehaviourResponse + * @instance + * @returns {Object.} JSON object + */ + MsgSubmitMisbehaviourResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return MsgSubmitMisbehaviourResponse; + })(); + + v1.Query = (function() { + + /** + * Constructs a new Query service. + * @memberof ibc.core.client.v1 + * @classdesc Represents a Query + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + */ + function Query(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (Query.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Query; + + /** + * Callback as used by {@link ibc.core.client.v1.Query#clientState}. + * @memberof ibc.core.client.v1.Query + * @typedef ClientStateCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.core.client.v1.QueryClientStateResponse} [response] QueryClientStateResponse + */ + + /** + * Calls ClientState. + * @function clientState + * @memberof ibc.core.client.v1.Query + * @instance + * @param {ibc.core.client.v1.IQueryClientStateRequest} request QueryClientStateRequest message or plain object + * @param {ibc.core.client.v1.Query.ClientStateCallback} callback Node-style callback called with the error, if any, and QueryClientStateResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Query.prototype.clientState = function clientState(request, callback) { + return this.rpcCall(clientState, $root.ibc.core.client.v1.QueryClientStateRequest, $root.ibc.core.client.v1.QueryClientStateResponse, request, callback); + }, "name", { value: "ClientState" }); + + /** + * Calls ClientState. + * @function clientState + * @memberof ibc.core.client.v1.Query + * @instance + * @param {ibc.core.client.v1.IQueryClientStateRequest} request QueryClientStateRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link ibc.core.client.v1.Query#clientStates}. + * @memberof ibc.core.client.v1.Query + * @typedef ClientStatesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.core.client.v1.QueryClientStatesResponse} [response] QueryClientStatesResponse + */ + + /** + * Calls ClientStates. + * @function clientStates + * @memberof ibc.core.client.v1.Query + * @instance + * @param {ibc.core.client.v1.IQueryClientStatesRequest} request QueryClientStatesRequest message or plain object + * @param {ibc.core.client.v1.Query.ClientStatesCallback} callback Node-style callback called with the error, if any, and QueryClientStatesResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Query.prototype.clientStates = function clientStates(request, callback) { + return this.rpcCall(clientStates, $root.ibc.core.client.v1.QueryClientStatesRequest, $root.ibc.core.client.v1.QueryClientStatesResponse, request, callback); + }, "name", { value: "ClientStates" }); + + /** + * Calls ClientStates. + * @function clientStates + * @memberof ibc.core.client.v1.Query + * @instance + * @param {ibc.core.client.v1.IQueryClientStatesRequest} request QueryClientStatesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link ibc.core.client.v1.Query#consensusState}. + * @memberof ibc.core.client.v1.Query + * @typedef ConsensusStateCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.core.client.v1.QueryConsensusStateResponse} [response] QueryConsensusStateResponse + */ + + /** + * Calls ConsensusState. + * @function consensusState + * @memberof ibc.core.client.v1.Query + * @instance + * @param {ibc.core.client.v1.IQueryConsensusStateRequest} request QueryConsensusStateRequest message or plain object + * @param {ibc.core.client.v1.Query.ConsensusStateCallback} callback Node-style callback called with the error, if any, and QueryConsensusStateResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Query.prototype.consensusState = function consensusState(request, callback) { + return this.rpcCall(consensusState, $root.ibc.core.client.v1.QueryConsensusStateRequest, $root.ibc.core.client.v1.QueryConsensusStateResponse, request, callback); + }, "name", { value: "ConsensusState" }); /** - * Converts this QueryUpgradedConsensusStateRequest to JSON. - * @function toJSON - * @memberof ibc.core.client.v1.QueryUpgradedConsensusStateRequest + * Calls ConsensusState. + * @function consensusState + * @memberof ibc.core.client.v1.Query * @instance - * @returns {Object.} JSON object + * @param {ibc.core.client.v1.IQueryConsensusStateRequest} request QueryConsensusStateRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - QueryUpgradedConsensusStateRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return QueryUpgradedConsensusStateRequest; - })(); - - v1.QueryUpgradedConsensusStateResponse = (function() { /** - * Properties of a QueryUpgradedConsensusStateResponse. - * @memberof ibc.core.client.v1 - * @interface IQueryUpgradedConsensusStateResponse - * @property {google.protobuf.IAny|null} [upgraded_consensus_state] QueryUpgradedConsensusStateResponse upgraded_consensus_state + * Callback as used by {@link ibc.core.client.v1.Query#consensusStates}. + * @memberof ibc.core.client.v1.Query + * @typedef ConsensusStatesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.core.client.v1.QueryConsensusStatesResponse} [response] QueryConsensusStatesResponse */ /** - * Constructs a new QueryUpgradedConsensusStateResponse. - * @memberof ibc.core.client.v1 - * @classdesc Represents a QueryUpgradedConsensusStateResponse. - * @implements IQueryUpgradedConsensusStateResponse - * @constructor - * @param {ibc.core.client.v1.IQueryUpgradedConsensusStateResponse=} [properties] Properties to set + * Calls ConsensusStates. + * @function consensusStates + * @memberof ibc.core.client.v1.Query + * @instance + * @param {ibc.core.client.v1.IQueryConsensusStatesRequest} request QueryConsensusStatesRequest message or plain object + * @param {ibc.core.client.v1.Query.ConsensusStatesCallback} callback Node-style callback called with the error, if any, and QueryConsensusStatesResponse + * @returns {undefined} + * @variation 1 */ - function QueryUpgradedConsensusStateResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + Object.defineProperty(Query.prototype.consensusStates = function consensusStates(request, callback) { + return this.rpcCall(consensusStates, $root.ibc.core.client.v1.QueryConsensusStatesRequest, $root.ibc.core.client.v1.QueryConsensusStatesResponse, request, callback); + }, "name", { value: "ConsensusStates" }); /** - * QueryUpgradedConsensusStateResponse upgraded_consensus_state. - * @member {google.protobuf.IAny|null|undefined} upgraded_consensus_state - * @memberof ibc.core.client.v1.QueryUpgradedConsensusStateResponse + * Calls ConsensusStates. + * @function consensusStates + * @memberof ibc.core.client.v1.Query * @instance + * @param {ibc.core.client.v1.IQueryConsensusStatesRequest} request QueryConsensusStatesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - QueryUpgradedConsensusStateResponse.prototype.upgraded_consensus_state = null; /** - * Encodes the specified QueryUpgradedConsensusStateResponse message. Does not implicitly {@link ibc.core.client.v1.QueryUpgradedConsensusStateResponse.verify|verify} messages. - * @function encode - * @memberof ibc.core.client.v1.QueryUpgradedConsensusStateResponse - * @static - * @param {ibc.core.client.v1.IQueryUpgradedConsensusStateResponse} message QueryUpgradedConsensusStateResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Callback as used by {@link ibc.core.client.v1.Query#consensusStateHeights}. + * @memberof ibc.core.client.v1.Query + * @typedef ConsensusStateHeightsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.core.client.v1.QueryConsensusStateHeightsResponse} [response] QueryConsensusStateHeightsResponse */ - QueryUpgradedConsensusStateResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.upgraded_consensus_state != null && Object.hasOwnProperty.call(message, "upgraded_consensus_state")) - $root.google.protobuf.Any.encode(message.upgraded_consensus_state, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; /** - * Encodes the specified QueryUpgradedConsensusStateResponse message, length delimited. Does not implicitly {@link ibc.core.client.v1.QueryUpgradedConsensusStateResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof ibc.core.client.v1.QueryUpgradedConsensusStateResponse - * @static - * @param {ibc.core.client.v1.IQueryUpgradedConsensusStateResponse} message QueryUpgradedConsensusStateResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls ConsensusStateHeights. + * @function consensusStateHeights + * @memberof ibc.core.client.v1.Query + * @instance + * @param {ibc.core.client.v1.IQueryConsensusStateHeightsRequest} request QueryConsensusStateHeightsRequest message or plain object + * @param {ibc.core.client.v1.Query.ConsensusStateHeightsCallback} callback Node-style callback called with the error, if any, and QueryConsensusStateHeightsResponse + * @returns {undefined} + * @variation 1 */ - QueryUpgradedConsensusStateResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + Object.defineProperty(Query.prototype.consensusStateHeights = function consensusStateHeights(request, callback) { + return this.rpcCall(consensusStateHeights, $root.ibc.core.client.v1.QueryConsensusStateHeightsRequest, $root.ibc.core.client.v1.QueryConsensusStateHeightsResponse, request, callback); + }, "name", { value: "ConsensusStateHeights" }); /** - * Decodes a QueryUpgradedConsensusStateResponse message from the specified reader or buffer. - * @function decode - * @memberof ibc.core.client.v1.QueryUpgradedConsensusStateResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.client.v1.QueryUpgradedConsensusStateResponse} QueryUpgradedConsensusStateResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls ConsensusStateHeights. + * @function consensusStateHeights + * @memberof ibc.core.client.v1.Query + * @instance + * @param {ibc.core.client.v1.IQueryConsensusStateHeightsRequest} request QueryConsensusStateHeightsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - QueryUpgradedConsensusStateResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.QueryUpgradedConsensusStateResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.upgraded_consensus_state = $root.google.protobuf.Any.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; /** - * Decodes a QueryUpgradedConsensusStateResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ibc.core.client.v1.QueryUpgradedConsensusStateResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.client.v1.QueryUpgradedConsensusStateResponse} QueryUpgradedConsensusStateResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link ibc.core.client.v1.Query#clientStatus}. + * @memberof ibc.core.client.v1.Query + * @typedef ClientStatusCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.core.client.v1.QueryClientStatusResponse} [response] QueryClientStatusResponse */ - QueryUpgradedConsensusStateResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; /** - * Verifies a QueryUpgradedConsensusStateResponse message. - * @function verify - * @memberof ibc.core.client.v1.QueryUpgradedConsensusStateResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Calls ClientStatus. + * @function clientStatus + * @memberof ibc.core.client.v1.Query + * @instance + * @param {ibc.core.client.v1.IQueryClientStatusRequest} request QueryClientStatusRequest message or plain object + * @param {ibc.core.client.v1.Query.ClientStatusCallback} callback Node-style callback called with the error, if any, and QueryClientStatusResponse + * @returns {undefined} + * @variation 1 */ - QueryUpgradedConsensusStateResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.upgraded_consensus_state != null && message.hasOwnProperty("upgraded_consensus_state")) { - var error = $root.google.protobuf.Any.verify(message.upgraded_consensus_state); - if (error) - return "upgraded_consensus_state." + error; - } - return null; - }; + Object.defineProperty(Query.prototype.clientStatus = function clientStatus(request, callback) { + return this.rpcCall(clientStatus, $root.ibc.core.client.v1.QueryClientStatusRequest, $root.ibc.core.client.v1.QueryClientStatusResponse, request, callback); + }, "name", { value: "ClientStatus" }); /** - * Creates a QueryUpgradedConsensusStateResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof ibc.core.client.v1.QueryUpgradedConsensusStateResponse - * @static - * @param {Object.} object Plain object - * @returns {ibc.core.client.v1.QueryUpgradedConsensusStateResponse} QueryUpgradedConsensusStateResponse + * Calls ClientStatus. + * @function clientStatus + * @memberof ibc.core.client.v1.Query + * @instance + * @param {ibc.core.client.v1.IQueryClientStatusRequest} request QueryClientStatusRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - QueryUpgradedConsensusStateResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.client.v1.QueryUpgradedConsensusStateResponse) - return object; - var message = new $root.ibc.core.client.v1.QueryUpgradedConsensusStateResponse(); - if (object.upgraded_consensus_state != null) { - if (typeof object.upgraded_consensus_state !== "object") - throw TypeError(".ibc.core.client.v1.QueryUpgradedConsensusStateResponse.upgraded_consensus_state: object expected"); - message.upgraded_consensus_state = $root.google.protobuf.Any.fromObject(object.upgraded_consensus_state); - } - return message; - }; /** - * Creates a plain object from a QueryUpgradedConsensusStateResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof ibc.core.client.v1.QueryUpgradedConsensusStateResponse - * @static - * @param {ibc.core.client.v1.QueryUpgradedConsensusStateResponse} message QueryUpgradedConsensusStateResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Callback as used by {@link ibc.core.client.v1.Query#clientParams}. + * @memberof ibc.core.client.v1.Query + * @typedef ClientParamsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.core.client.v1.QueryClientParamsResponse} [response] QueryClientParamsResponse */ - QueryUpgradedConsensusStateResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.upgraded_consensus_state = null; - if (message.upgraded_consensus_state != null && message.hasOwnProperty("upgraded_consensus_state")) - object.upgraded_consensus_state = $root.google.protobuf.Any.toObject(message.upgraded_consensus_state, options); - return object; - }; /** - * Converts this QueryUpgradedConsensusStateResponse to JSON. - * @function toJSON - * @memberof ibc.core.client.v1.QueryUpgradedConsensusStateResponse + * Calls ClientParams. + * @function clientParams + * @memberof ibc.core.client.v1.Query * @instance - * @returns {Object.} JSON object + * @param {ibc.core.client.v1.IQueryClientParamsRequest} request QueryClientParamsRequest message or plain object + * @param {ibc.core.client.v1.Query.ClientParamsCallback} callback Node-style callback called with the error, if any, and QueryClientParamsResponse + * @returns {undefined} + * @variation 1 */ - QueryUpgradedConsensusStateResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return QueryUpgradedConsensusStateResponse; - })(); - - v1.GenesisState = (function() { + Object.defineProperty(Query.prototype.clientParams = function clientParams(request, callback) { + return this.rpcCall(clientParams, $root.ibc.core.client.v1.QueryClientParamsRequest, $root.ibc.core.client.v1.QueryClientParamsResponse, request, callback); + }, "name", { value: "ClientParams" }); /** - * Properties of a GenesisState. - * @memberof ibc.core.client.v1 - * @interface IGenesisState - * @property {Array.|null} [clients] GenesisState clients - * @property {Array.|null} [clients_consensus] GenesisState clients_consensus - * @property {Array.|null} [clients_metadata] GenesisState clients_metadata - * @property {ibc.core.client.v1.IParams|null} [params] GenesisState params - * @property {boolean|null} [create_localhost] GenesisState create_localhost - * @property {Long|null} [next_client_sequence] GenesisState next_client_sequence + * Calls ClientParams. + * @function clientParams + * @memberof ibc.core.client.v1.Query + * @instance + * @param {ibc.core.client.v1.IQueryClientParamsRequest} request QueryClientParamsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ /** - * Constructs a new GenesisState. - * @memberof ibc.core.client.v1 - * @classdesc Represents a GenesisState. - * @implements IGenesisState - * @constructor - * @param {ibc.core.client.v1.IGenesisState=} [properties] Properties to set + * Callback as used by {@link ibc.core.client.v1.Query#upgradedClientState}. + * @memberof ibc.core.client.v1.Query + * @typedef UpgradedClientStateCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.core.client.v1.QueryUpgradedClientStateResponse} [response] QueryUpgradedClientStateResponse */ - function GenesisState(properties) { - this.clients = []; - this.clients_consensus = []; - this.clients_metadata = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } /** - * GenesisState clients. - * @member {Array.} clients - * @memberof ibc.core.client.v1.GenesisState + * Calls UpgradedClientState. + * @function upgradedClientState + * @memberof ibc.core.client.v1.Query * @instance + * @param {ibc.core.client.v1.IQueryUpgradedClientStateRequest} request QueryUpgradedClientStateRequest message or plain object + * @param {ibc.core.client.v1.Query.UpgradedClientStateCallback} callback Node-style callback called with the error, if any, and QueryUpgradedClientStateResponse + * @returns {undefined} + * @variation 1 */ - GenesisState.prototype.clients = $util.emptyArray; + Object.defineProperty(Query.prototype.upgradedClientState = function upgradedClientState(request, callback) { + return this.rpcCall(upgradedClientState, $root.ibc.core.client.v1.QueryUpgradedClientStateRequest, $root.ibc.core.client.v1.QueryUpgradedClientStateResponse, request, callback); + }, "name", { value: "UpgradedClientState" }); /** - * GenesisState clients_consensus. - * @member {Array.} clients_consensus - * @memberof ibc.core.client.v1.GenesisState + * Calls UpgradedClientState. + * @function upgradedClientState + * @memberof ibc.core.client.v1.Query * @instance + * @param {ibc.core.client.v1.IQueryUpgradedClientStateRequest} request QueryUpgradedClientStateRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - GenesisState.prototype.clients_consensus = $util.emptyArray; /** - * GenesisState clients_metadata. - * @member {Array.} clients_metadata - * @memberof ibc.core.client.v1.GenesisState - * @instance + * Callback as used by {@link ibc.core.client.v1.Query#upgradedConsensusState}. + * @memberof ibc.core.client.v1.Query + * @typedef UpgradedConsensusStateCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.core.client.v1.QueryUpgradedConsensusStateResponse} [response] QueryUpgradedConsensusStateResponse */ - GenesisState.prototype.clients_metadata = $util.emptyArray; /** - * GenesisState params. - * @member {ibc.core.client.v1.IParams|null|undefined} params - * @memberof ibc.core.client.v1.GenesisState + * Calls UpgradedConsensusState. + * @function upgradedConsensusState + * @memberof ibc.core.client.v1.Query * @instance + * @param {ibc.core.client.v1.IQueryUpgradedConsensusStateRequest} request QueryUpgradedConsensusStateRequest message or plain object + * @param {ibc.core.client.v1.Query.UpgradedConsensusStateCallback} callback Node-style callback called with the error, if any, and QueryUpgradedConsensusStateResponse + * @returns {undefined} + * @variation 1 */ - GenesisState.prototype.params = null; + Object.defineProperty(Query.prototype.upgradedConsensusState = function upgradedConsensusState(request, callback) { + return this.rpcCall(upgradedConsensusState, $root.ibc.core.client.v1.QueryUpgradedConsensusStateRequest, $root.ibc.core.client.v1.QueryUpgradedConsensusStateResponse, request, callback); + }, "name", { value: "UpgradedConsensusState" }); /** - * GenesisState create_localhost. - * @member {boolean} create_localhost - * @memberof ibc.core.client.v1.GenesisState + * Calls UpgradedConsensusState. + * @function upgradedConsensusState + * @memberof ibc.core.client.v1.Query * @instance + * @param {ibc.core.client.v1.IQueryUpgradedConsensusStateRequest} request QueryUpgradedConsensusStateRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - GenesisState.prototype.create_localhost = false; + + return Query; + })(); + + v1.QueryClientStateRequest = (function() { /** - * GenesisState next_client_sequence. - * @member {Long} next_client_sequence - * @memberof ibc.core.client.v1.GenesisState + * Properties of a QueryClientStateRequest. + * @memberof ibc.core.client.v1 + * @interface IQueryClientStateRequest + * @property {string|null} [client_id] QueryClientStateRequest client_id + */ + + /** + * Constructs a new QueryClientStateRequest. + * @memberof ibc.core.client.v1 + * @classdesc Represents a QueryClientStateRequest. + * @implements IQueryClientStateRequest + * @constructor + * @param {ibc.core.client.v1.IQueryClientStateRequest=} [properties] Properties to set + */ + function QueryClientStateRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * QueryClientStateRequest client_id. + * @member {string} client_id + * @memberof ibc.core.client.v1.QueryClientStateRequest * @instance */ - GenesisState.prototype.next_client_sequence = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + QueryClientStateRequest.prototype.client_id = ""; /** - * Encodes the specified GenesisState message. Does not implicitly {@link ibc.core.client.v1.GenesisState.verify|verify} messages. + * Encodes the specified QueryClientStateRequest message. Does not implicitly {@link ibc.core.client.v1.QueryClientStateRequest.verify|verify} messages. * @function encode - * @memberof ibc.core.client.v1.GenesisState + * @memberof ibc.core.client.v1.QueryClientStateRequest * @static - * @param {ibc.core.client.v1.IGenesisState} message GenesisState message or plain object to encode + * @param {ibc.core.client.v1.IQueryClientStateRequest} message QueryClientStateRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GenesisState.encode = function encode(message, writer) { + QueryClientStateRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.clients != null && message.clients.length) - for (var i = 0; i < message.clients.length; ++i) - $root.ibc.core.client.v1.IdentifiedClientState.encode(message.clients[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.clients_consensus != null && message.clients_consensus.length) - for (var i = 0; i < message.clients_consensus.length; ++i) - $root.ibc.core.client.v1.ClientConsensusStates.encode(message.clients_consensus[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.clients_metadata != null && message.clients_metadata.length) - for (var i = 0; i < message.clients_metadata.length; ++i) - $root.ibc.core.client.v1.IdentifiedGenesisMetadata.encode(message.clients_metadata[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.params != null && Object.hasOwnProperty.call(message, "params")) - $root.ibc.core.client.v1.Params.encode(message.params, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.create_localhost != null && Object.hasOwnProperty.call(message, "create_localhost")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.create_localhost); - if (message.next_client_sequence != null && Object.hasOwnProperty.call(message, "next_client_sequence")) - writer.uint32(/* id 6, wireType 0 =*/48).uint64(message.next_client_sequence); + if (message.client_id != null && Object.hasOwnProperty.call(message, "client_id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.client_id); return writer; }; /** - * Encodes the specified GenesisState message, length delimited. Does not implicitly {@link ibc.core.client.v1.GenesisState.verify|verify} messages. + * Encodes the specified QueryClientStateRequest message, length delimited. Does not implicitly {@link ibc.core.client.v1.QueryClientStateRequest.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.client.v1.GenesisState + * @memberof ibc.core.client.v1.QueryClientStateRequest * @static - * @param {ibc.core.client.v1.IGenesisState} message GenesisState message or plain object to encode + * @param {ibc.core.client.v1.IQueryClientStateRequest} message QueryClientStateRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GenesisState.encodeDelimited = function encodeDelimited(message, writer) { + QueryClientStateRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GenesisState message from the specified reader or buffer. + * Decodes a QueryClientStateRequest message from the specified reader or buffer. * @function decode - * @memberof ibc.core.client.v1.GenesisState + * @memberof ibc.core.client.v1.QueryClientStateRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.client.v1.GenesisState} GenesisState + * @returns {ibc.core.client.v1.QueryClientStateRequest} QueryClientStateRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GenesisState.decode = function decode(reader, length) { + QueryClientStateRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.GenesisState(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.QueryClientStateRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.clients && message.clients.length)) - message.clients = []; - message.clients.push($root.ibc.core.client.v1.IdentifiedClientState.decode(reader, reader.uint32())); - break; - case 2: - if (!(message.clients_consensus && message.clients_consensus.length)) - message.clients_consensus = []; - message.clients_consensus.push($root.ibc.core.client.v1.ClientConsensusStates.decode(reader, reader.uint32())); - break; - case 3: - if (!(message.clients_metadata && message.clients_metadata.length)) - message.clients_metadata = []; - message.clients_metadata.push($root.ibc.core.client.v1.IdentifiedGenesisMetadata.decode(reader, reader.uint32())); - break; - case 4: - message.params = $root.ibc.core.client.v1.Params.decode(reader, reader.uint32()); - break; - case 5: - message.create_localhost = reader.bool(); - break; - case 6: - message.next_client_sequence = reader.uint64(); + message.client_id = reader.string(); break; default: reader.skipType(tag & 7); @@ -55803,221 +62690,109 @@ }; /** - * Decodes a GenesisState message from the specified reader or buffer, length delimited. + * Decodes a QueryClientStateRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.client.v1.GenesisState + * @memberof ibc.core.client.v1.QueryClientStateRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.client.v1.GenesisState} GenesisState + * @returns {ibc.core.client.v1.QueryClientStateRequest} QueryClientStateRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GenesisState.decodeDelimited = function decodeDelimited(reader) { + QueryClientStateRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; - /** - * Verifies a GenesisState message. - * @function verify - * @memberof ibc.core.client.v1.GenesisState - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GenesisState.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.clients != null && message.hasOwnProperty("clients")) { - if (!Array.isArray(message.clients)) - return "clients: array expected"; - for (var i = 0; i < message.clients.length; ++i) { - var error = $root.ibc.core.client.v1.IdentifiedClientState.verify(message.clients[i]); - if (error) - return "clients." + error; - } - } - if (message.clients_consensus != null && message.hasOwnProperty("clients_consensus")) { - if (!Array.isArray(message.clients_consensus)) - return "clients_consensus: array expected"; - for (var i = 0; i < message.clients_consensus.length; ++i) { - var error = $root.ibc.core.client.v1.ClientConsensusStates.verify(message.clients_consensus[i]); - if (error) - return "clients_consensus." + error; - } - } - if (message.clients_metadata != null && message.hasOwnProperty("clients_metadata")) { - if (!Array.isArray(message.clients_metadata)) - return "clients_metadata: array expected"; - for (var i = 0; i < message.clients_metadata.length; ++i) { - var error = $root.ibc.core.client.v1.IdentifiedGenesisMetadata.verify(message.clients_metadata[i]); - if (error) - return "clients_metadata." + error; - } - } - if (message.params != null && message.hasOwnProperty("params")) { - var error = $root.ibc.core.client.v1.Params.verify(message.params); - if (error) - return "params." + error; - } - if (message.create_localhost != null && message.hasOwnProperty("create_localhost")) - if (typeof message.create_localhost !== "boolean") - return "create_localhost: boolean expected"; - if (message.next_client_sequence != null && message.hasOwnProperty("next_client_sequence")) - if (!$util.isInteger(message.next_client_sequence) && !(message.next_client_sequence && $util.isInteger(message.next_client_sequence.low) && $util.isInteger(message.next_client_sequence.high))) - return "next_client_sequence: integer|Long expected"; + /** + * Verifies a QueryClientStateRequest message. + * @function verify + * @memberof ibc.core.client.v1.QueryClientStateRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + QueryClientStateRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.client_id != null && message.hasOwnProperty("client_id")) + if (!$util.isString(message.client_id)) + return "client_id: string expected"; return null; }; /** - * Creates a GenesisState message from a plain object. Also converts values to their respective internal types. + * Creates a QueryClientStateRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.client.v1.GenesisState + * @memberof ibc.core.client.v1.QueryClientStateRequest * @static * @param {Object.} object Plain object - * @returns {ibc.core.client.v1.GenesisState} GenesisState + * @returns {ibc.core.client.v1.QueryClientStateRequest} QueryClientStateRequest */ - GenesisState.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.client.v1.GenesisState) + QueryClientStateRequest.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.client.v1.QueryClientStateRequest) return object; - var message = new $root.ibc.core.client.v1.GenesisState(); - if (object.clients) { - if (!Array.isArray(object.clients)) - throw TypeError(".ibc.core.client.v1.GenesisState.clients: array expected"); - message.clients = []; - for (var i = 0; i < object.clients.length; ++i) { - if (typeof object.clients[i] !== "object") - throw TypeError(".ibc.core.client.v1.GenesisState.clients: object expected"); - message.clients[i] = $root.ibc.core.client.v1.IdentifiedClientState.fromObject(object.clients[i]); - } - } - if (object.clients_consensus) { - if (!Array.isArray(object.clients_consensus)) - throw TypeError(".ibc.core.client.v1.GenesisState.clients_consensus: array expected"); - message.clients_consensus = []; - for (var i = 0; i < object.clients_consensus.length; ++i) { - if (typeof object.clients_consensus[i] !== "object") - throw TypeError(".ibc.core.client.v1.GenesisState.clients_consensus: object expected"); - message.clients_consensus[i] = $root.ibc.core.client.v1.ClientConsensusStates.fromObject(object.clients_consensus[i]); - } - } - if (object.clients_metadata) { - if (!Array.isArray(object.clients_metadata)) - throw TypeError(".ibc.core.client.v1.GenesisState.clients_metadata: array expected"); - message.clients_metadata = []; - for (var i = 0; i < object.clients_metadata.length; ++i) { - if (typeof object.clients_metadata[i] !== "object") - throw TypeError(".ibc.core.client.v1.GenesisState.clients_metadata: object expected"); - message.clients_metadata[i] = $root.ibc.core.client.v1.IdentifiedGenesisMetadata.fromObject(object.clients_metadata[i]); - } - } - if (object.params != null) { - if (typeof object.params !== "object") - throw TypeError(".ibc.core.client.v1.GenesisState.params: object expected"); - message.params = $root.ibc.core.client.v1.Params.fromObject(object.params); - } - if (object.create_localhost != null) - message.create_localhost = Boolean(object.create_localhost); - if (object.next_client_sequence != null) - if ($util.Long) - (message.next_client_sequence = $util.Long.fromValue(object.next_client_sequence)).unsigned = true; - else if (typeof object.next_client_sequence === "string") - message.next_client_sequence = parseInt(object.next_client_sequence, 10); - else if (typeof object.next_client_sequence === "number") - message.next_client_sequence = object.next_client_sequence; - else if (typeof object.next_client_sequence === "object") - message.next_client_sequence = new $util.LongBits(object.next_client_sequence.low >>> 0, object.next_client_sequence.high >>> 0).toNumber(true); + var message = new $root.ibc.core.client.v1.QueryClientStateRequest(); + if (object.client_id != null) + message.client_id = String(object.client_id); return message; }; /** - * Creates a plain object from a GenesisState message. Also converts values to other types if specified. + * Creates a plain object from a QueryClientStateRequest message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.client.v1.GenesisState + * @memberof ibc.core.client.v1.QueryClientStateRequest * @static - * @param {ibc.core.client.v1.GenesisState} message GenesisState + * @param {ibc.core.client.v1.QueryClientStateRequest} message QueryClientStateRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GenesisState.toObject = function toObject(message, options) { + QueryClientStateRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.clients = []; - object.clients_consensus = []; - object.clients_metadata = []; - } - if (options.defaults) { - object.params = null; - object.create_localhost = false; - if ($util.Long) { - var long = new $util.Long(0, 0, true); - object.next_client_sequence = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.next_client_sequence = options.longs === String ? "0" : 0; - } - if (message.clients && message.clients.length) { - object.clients = []; - for (var j = 0; j < message.clients.length; ++j) - object.clients[j] = $root.ibc.core.client.v1.IdentifiedClientState.toObject(message.clients[j], options); - } - if (message.clients_consensus && message.clients_consensus.length) { - object.clients_consensus = []; - for (var j = 0; j < message.clients_consensus.length; ++j) - object.clients_consensus[j] = $root.ibc.core.client.v1.ClientConsensusStates.toObject(message.clients_consensus[j], options); - } - if (message.clients_metadata && message.clients_metadata.length) { - object.clients_metadata = []; - for (var j = 0; j < message.clients_metadata.length; ++j) - object.clients_metadata[j] = $root.ibc.core.client.v1.IdentifiedGenesisMetadata.toObject(message.clients_metadata[j], options); - } - if (message.params != null && message.hasOwnProperty("params")) - object.params = $root.ibc.core.client.v1.Params.toObject(message.params, options); - if (message.create_localhost != null && message.hasOwnProperty("create_localhost")) - object.create_localhost = message.create_localhost; - if (message.next_client_sequence != null && message.hasOwnProperty("next_client_sequence")) - if (typeof message.next_client_sequence === "number") - object.next_client_sequence = options.longs === String ? String(message.next_client_sequence) : message.next_client_sequence; - else - object.next_client_sequence = options.longs === String ? $util.Long.prototype.toString.call(message.next_client_sequence) : options.longs === Number ? new $util.LongBits(message.next_client_sequence.low >>> 0, message.next_client_sequence.high >>> 0).toNumber(true) : message.next_client_sequence; + if (options.defaults) + object.client_id = ""; + if (message.client_id != null && message.hasOwnProperty("client_id")) + object.client_id = message.client_id; return object; }; /** - * Converts this GenesisState to JSON. + * Converts this QueryClientStateRequest to JSON. * @function toJSON - * @memberof ibc.core.client.v1.GenesisState + * @memberof ibc.core.client.v1.QueryClientStateRequest * @instance * @returns {Object.} JSON object */ - GenesisState.prototype.toJSON = function toJSON() { + QueryClientStateRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GenesisState; + return QueryClientStateRequest; })(); - v1.GenesisMetadata = (function() { + v1.QueryClientStateResponse = (function() { /** - * Properties of a GenesisMetadata. + * Properties of a QueryClientStateResponse. * @memberof ibc.core.client.v1 - * @interface IGenesisMetadata - * @property {Uint8Array|null} [key] GenesisMetadata key - * @property {Uint8Array|null} [value] GenesisMetadata value + * @interface IQueryClientStateResponse + * @property {google.protobuf.IAny|null} [client_state] QueryClientStateResponse client_state + * @property {Uint8Array|null} [proof] QueryClientStateResponse proof + * @property {ibc.core.client.v1.IHeight|null} [proof_height] QueryClientStateResponse proof_height */ /** - * Constructs a new GenesisMetadata. + * Constructs a new QueryClientStateResponse. * @memberof ibc.core.client.v1 - * @classdesc Represents a GenesisMetadata. - * @implements IGenesisMetadata + * @classdesc Represents a QueryClientStateResponse. + * @implements IQueryClientStateResponse * @constructor - * @param {ibc.core.client.v1.IGenesisMetadata=} [properties] Properties to set + * @param {ibc.core.client.v1.IQueryClientStateResponse=} [properties] Properties to set */ - function GenesisMetadata(properties) { + function QueryClientStateResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -56025,76 +62800,89 @@ } /** - * GenesisMetadata key. - * @member {Uint8Array} key - * @memberof ibc.core.client.v1.GenesisMetadata + * QueryClientStateResponse client_state. + * @member {google.protobuf.IAny|null|undefined} client_state + * @memberof ibc.core.client.v1.QueryClientStateResponse * @instance */ - GenesisMetadata.prototype.key = $util.newBuffer([]); + QueryClientStateResponse.prototype.client_state = null; /** - * GenesisMetadata value. - * @member {Uint8Array} value - * @memberof ibc.core.client.v1.GenesisMetadata + * QueryClientStateResponse proof. + * @member {Uint8Array} proof + * @memberof ibc.core.client.v1.QueryClientStateResponse * @instance */ - GenesisMetadata.prototype.value = $util.newBuffer([]); + QueryClientStateResponse.prototype.proof = $util.newBuffer([]); /** - * Encodes the specified GenesisMetadata message. Does not implicitly {@link ibc.core.client.v1.GenesisMetadata.verify|verify} messages. + * QueryClientStateResponse proof_height. + * @member {ibc.core.client.v1.IHeight|null|undefined} proof_height + * @memberof ibc.core.client.v1.QueryClientStateResponse + * @instance + */ + QueryClientStateResponse.prototype.proof_height = null; + + /** + * Encodes the specified QueryClientStateResponse message. Does not implicitly {@link ibc.core.client.v1.QueryClientStateResponse.verify|verify} messages. * @function encode - * @memberof ibc.core.client.v1.GenesisMetadata + * @memberof ibc.core.client.v1.QueryClientStateResponse * @static - * @param {ibc.core.client.v1.IGenesisMetadata} message GenesisMetadata message or plain object to encode + * @param {ibc.core.client.v1.IQueryClientStateResponse} message QueryClientStateResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GenesisMetadata.encode = function encode(message, writer) { + QueryClientStateResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.key != null && Object.hasOwnProperty.call(message, "key")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.key); - if (message.value != null && Object.hasOwnProperty.call(message, "value")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.value); + if (message.client_state != null && Object.hasOwnProperty.call(message, "client_state")) + $root.google.protobuf.Any.encode(message.client_state, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.proof != null && Object.hasOwnProperty.call(message, "proof")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.proof); + if (message.proof_height != null && Object.hasOwnProperty.call(message, "proof_height")) + $root.ibc.core.client.v1.Height.encode(message.proof_height, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified GenesisMetadata message, length delimited. Does not implicitly {@link ibc.core.client.v1.GenesisMetadata.verify|verify} messages. + * Encodes the specified QueryClientStateResponse message, length delimited. Does not implicitly {@link ibc.core.client.v1.QueryClientStateResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.client.v1.GenesisMetadata + * @memberof ibc.core.client.v1.QueryClientStateResponse * @static - * @param {ibc.core.client.v1.IGenesisMetadata} message GenesisMetadata message or plain object to encode + * @param {ibc.core.client.v1.IQueryClientStateResponse} message QueryClientStateResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GenesisMetadata.encodeDelimited = function encodeDelimited(message, writer) { + QueryClientStateResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GenesisMetadata message from the specified reader or buffer. + * Decodes a QueryClientStateResponse message from the specified reader or buffer. * @function decode - * @memberof ibc.core.client.v1.GenesisMetadata + * @memberof ibc.core.client.v1.QueryClientStateResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.client.v1.GenesisMetadata} GenesisMetadata + * @returns {ibc.core.client.v1.QueryClientStateResponse} QueryClientStateResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GenesisMetadata.decode = function decode(reader, length) { + QueryClientStateResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.GenesisMetadata(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.QueryClientStateResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.key = reader.bytes(); + message.client_state = $root.google.protobuf.Any.decode(reader, reader.uint32()); break; case 2: - message.value = reader.bytes(); + message.proof = reader.bytes(); + break; + case 3: + message.proof_height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -56105,136 +62893,143 @@ }; /** - * Decodes a GenesisMetadata message from the specified reader or buffer, length delimited. + * Decodes a QueryClientStateResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.client.v1.GenesisMetadata + * @memberof ibc.core.client.v1.QueryClientStateResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.client.v1.GenesisMetadata} GenesisMetadata + * @returns {ibc.core.client.v1.QueryClientStateResponse} QueryClientStateResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GenesisMetadata.decodeDelimited = function decodeDelimited(reader) { + QueryClientStateResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GenesisMetadata message. + * Verifies a QueryClientStateResponse message. * @function verify - * @memberof ibc.core.client.v1.GenesisMetadata + * @memberof ibc.core.client.v1.QueryClientStateResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GenesisMetadata.verify = function verify(message) { + QueryClientStateResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.key != null && message.hasOwnProperty("key")) - if (!(message.key && typeof message.key.length === "number" || $util.isString(message.key))) - return "key: buffer expected"; - if (message.value != null && message.hasOwnProperty("value")) - if (!(message.value && typeof message.value.length === "number" || $util.isString(message.value))) - return "value: buffer expected"; + if (message.client_state != null && message.hasOwnProperty("client_state")) { + var error = $root.google.protobuf.Any.verify(message.client_state); + if (error) + return "client_state." + error; + } + if (message.proof != null && message.hasOwnProperty("proof")) + if (!(message.proof && typeof message.proof.length === "number" || $util.isString(message.proof))) + return "proof: buffer expected"; + if (message.proof_height != null && message.hasOwnProperty("proof_height")) { + var error = $root.ibc.core.client.v1.Height.verify(message.proof_height); + if (error) + return "proof_height." + error; + } return null; }; /** - * Creates a GenesisMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a QueryClientStateResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.client.v1.GenesisMetadata + * @memberof ibc.core.client.v1.QueryClientStateResponse * @static * @param {Object.} object Plain object - * @returns {ibc.core.client.v1.GenesisMetadata} GenesisMetadata + * @returns {ibc.core.client.v1.QueryClientStateResponse} QueryClientStateResponse */ - GenesisMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.client.v1.GenesisMetadata) + QueryClientStateResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.client.v1.QueryClientStateResponse) return object; - var message = new $root.ibc.core.client.v1.GenesisMetadata(); - if (object.key != null) - if (typeof object.key === "string") - $util.base64.decode(object.key, message.key = $util.newBuffer($util.base64.length(object.key)), 0); - else if (object.key.length) - message.key = object.key; - if (object.value != null) - if (typeof object.value === "string") - $util.base64.decode(object.value, message.value = $util.newBuffer($util.base64.length(object.value)), 0); - else if (object.value.length) - message.value = object.value; + var message = new $root.ibc.core.client.v1.QueryClientStateResponse(); + if (object.client_state != null) { + if (typeof object.client_state !== "object") + throw TypeError(".ibc.core.client.v1.QueryClientStateResponse.client_state: object expected"); + message.client_state = $root.google.protobuf.Any.fromObject(object.client_state); + } + if (object.proof != null) + if (typeof object.proof === "string") + $util.base64.decode(object.proof, message.proof = $util.newBuffer($util.base64.length(object.proof)), 0); + else if (object.proof.length) + message.proof = object.proof; + if (object.proof_height != null) { + if (typeof object.proof_height !== "object") + throw TypeError(".ibc.core.client.v1.QueryClientStateResponse.proof_height: object expected"); + message.proof_height = $root.ibc.core.client.v1.Height.fromObject(object.proof_height); + } return message; }; /** - * Creates a plain object from a GenesisMetadata message. Also converts values to other types if specified. + * Creates a plain object from a QueryClientStateResponse message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.client.v1.GenesisMetadata + * @memberof ibc.core.client.v1.QueryClientStateResponse * @static - * @param {ibc.core.client.v1.GenesisMetadata} message GenesisMetadata + * @param {ibc.core.client.v1.QueryClientStateResponse} message QueryClientStateResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GenesisMetadata.toObject = function toObject(message, options) { + QueryClientStateResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { + object.client_state = null; if (options.bytes === String) - object.key = ""; - else { - object.key = []; - if (options.bytes !== Array) - object.key = $util.newBuffer(object.key); - } - if (options.bytes === String) - object.value = ""; + object.proof = ""; else { - object.value = []; + object.proof = []; if (options.bytes !== Array) - object.value = $util.newBuffer(object.value); + object.proof = $util.newBuffer(object.proof); } + object.proof_height = null; } - if (message.key != null && message.hasOwnProperty("key")) - object.key = options.bytes === String ? $util.base64.encode(message.key, 0, message.key.length) : options.bytes === Array ? Array.prototype.slice.call(message.key) : message.key; - if (message.value != null && message.hasOwnProperty("value")) - object.value = options.bytes === String ? $util.base64.encode(message.value, 0, message.value.length) : options.bytes === Array ? Array.prototype.slice.call(message.value) : message.value; + if (message.client_state != null && message.hasOwnProperty("client_state")) + object.client_state = $root.google.protobuf.Any.toObject(message.client_state, options); + if (message.proof != null && message.hasOwnProperty("proof")) + object.proof = options.bytes === String ? $util.base64.encode(message.proof, 0, message.proof.length) : options.bytes === Array ? Array.prototype.slice.call(message.proof) : message.proof; + if (message.proof_height != null && message.hasOwnProperty("proof_height")) + object.proof_height = $root.ibc.core.client.v1.Height.toObject(message.proof_height, options); return object; }; /** - * Converts this GenesisMetadata to JSON. + * Converts this QueryClientStateResponse to JSON. * @function toJSON - * @memberof ibc.core.client.v1.GenesisMetadata + * @memberof ibc.core.client.v1.QueryClientStateResponse * @instance * @returns {Object.} JSON object */ - GenesisMetadata.prototype.toJSON = function toJSON() { + QueryClientStateResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GenesisMetadata; + return QueryClientStateResponse; })(); - v1.IdentifiedGenesisMetadata = (function() { + v1.QueryClientStatesRequest = (function() { /** - * Properties of an IdentifiedGenesisMetadata. + * Properties of a QueryClientStatesRequest. * @memberof ibc.core.client.v1 - * @interface IIdentifiedGenesisMetadata - * @property {string|null} [client_id] IdentifiedGenesisMetadata client_id - * @property {Array.|null} [client_metadata] IdentifiedGenesisMetadata client_metadata + * @interface IQueryClientStatesRequest + * @property {cosmos.base.query.v1beta1.IPageRequest|null} [pagination] QueryClientStatesRequest pagination */ /** - * Constructs a new IdentifiedGenesisMetadata. + * Constructs a new QueryClientStatesRequest. * @memberof ibc.core.client.v1 - * @classdesc Represents an IdentifiedGenesisMetadata. - * @implements IIdentifiedGenesisMetadata + * @classdesc Represents a QueryClientStatesRequest. + * @implements IQueryClientStatesRequest * @constructor - * @param {ibc.core.client.v1.IIdentifiedGenesisMetadata=} [properties] Properties to set + * @param {ibc.core.client.v1.IQueryClientStatesRequest=} [properties] Properties to set */ - function IdentifiedGenesisMetadata(properties) { - this.client_metadata = []; + function QueryClientStatesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -56242,79 +63037,63 @@ } /** - * IdentifiedGenesisMetadata client_id. - * @member {string} client_id - * @memberof ibc.core.client.v1.IdentifiedGenesisMetadata - * @instance - */ - IdentifiedGenesisMetadata.prototype.client_id = ""; - - /** - * IdentifiedGenesisMetadata client_metadata. - * @member {Array.} client_metadata - * @memberof ibc.core.client.v1.IdentifiedGenesisMetadata + * QueryClientStatesRequest pagination. + * @member {cosmos.base.query.v1beta1.IPageRequest|null|undefined} pagination + * @memberof ibc.core.client.v1.QueryClientStatesRequest * @instance */ - IdentifiedGenesisMetadata.prototype.client_metadata = $util.emptyArray; + QueryClientStatesRequest.prototype.pagination = null; /** - * Encodes the specified IdentifiedGenesisMetadata message. Does not implicitly {@link ibc.core.client.v1.IdentifiedGenesisMetadata.verify|verify} messages. + * Encodes the specified QueryClientStatesRequest message. Does not implicitly {@link ibc.core.client.v1.QueryClientStatesRequest.verify|verify} messages. * @function encode - * @memberof ibc.core.client.v1.IdentifiedGenesisMetadata + * @memberof ibc.core.client.v1.QueryClientStatesRequest * @static - * @param {ibc.core.client.v1.IIdentifiedGenesisMetadata} message IdentifiedGenesisMetadata message or plain object to encode + * @param {ibc.core.client.v1.IQueryClientStatesRequest} message QueryClientStatesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - IdentifiedGenesisMetadata.encode = function encode(message, writer) { + QueryClientStatesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.client_id != null && Object.hasOwnProperty.call(message, "client_id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.client_id); - if (message.client_metadata != null && message.client_metadata.length) - for (var i = 0; i < message.client_metadata.length; ++i) - $root.ibc.core.client.v1.GenesisMetadata.encode(message.client_metadata[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.pagination != null && Object.hasOwnProperty.call(message, "pagination")) + $root.cosmos.base.query.v1beta1.PageRequest.encode(message.pagination, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified IdentifiedGenesisMetadata message, length delimited. Does not implicitly {@link ibc.core.client.v1.IdentifiedGenesisMetadata.verify|verify} messages. + * Encodes the specified QueryClientStatesRequest message, length delimited. Does not implicitly {@link ibc.core.client.v1.QueryClientStatesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.client.v1.IdentifiedGenesisMetadata + * @memberof ibc.core.client.v1.QueryClientStatesRequest * @static - * @param {ibc.core.client.v1.IIdentifiedGenesisMetadata} message IdentifiedGenesisMetadata message or plain object to encode + * @param {ibc.core.client.v1.IQueryClientStatesRequest} message QueryClientStatesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - IdentifiedGenesisMetadata.encodeDelimited = function encodeDelimited(message, writer) { + QueryClientStatesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an IdentifiedGenesisMetadata message from the specified reader or buffer. + * Decodes a QueryClientStatesRequest message from the specified reader or buffer. * @function decode - * @memberof ibc.core.client.v1.IdentifiedGenesisMetadata + * @memberof ibc.core.client.v1.QueryClientStatesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.client.v1.IdentifiedGenesisMetadata} IdentifiedGenesisMetadata + * @returns {ibc.core.client.v1.QueryClientStatesRequest} QueryClientStatesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - IdentifiedGenesisMetadata.decode = function decode(reader, length) { + QueryClientStatesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.IdentifiedGenesisMetadata(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.QueryClientStatesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.client_id = reader.string(); - break; - case 2: - if (!(message.client_metadata && message.client_metadata.length)) - message.client_metadata = []; - message.client_metadata.push($root.ibc.core.client.v1.GenesisMetadata.decode(reader, reader.uint32())); + message.pagination = $root.cosmos.base.query.v1beta1.PageRequest.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -56325,157 +63104,114 @@ }; /** - * Decodes an IdentifiedGenesisMetadata message from the specified reader or buffer, length delimited. + * Decodes a QueryClientStatesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.client.v1.IdentifiedGenesisMetadata + * @memberof ibc.core.client.v1.QueryClientStatesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.client.v1.IdentifiedGenesisMetadata} IdentifiedGenesisMetadata + * @returns {ibc.core.client.v1.QueryClientStatesRequest} QueryClientStatesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - IdentifiedGenesisMetadata.decodeDelimited = function decodeDelimited(reader) { + QueryClientStatesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an IdentifiedGenesisMetadata message. + * Verifies a QueryClientStatesRequest message. * @function verify - * @memberof ibc.core.client.v1.IdentifiedGenesisMetadata + * @memberof ibc.core.client.v1.QueryClientStatesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - IdentifiedGenesisMetadata.verify = function verify(message) { + QueryClientStatesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.client_id != null && message.hasOwnProperty("client_id")) - if (!$util.isString(message.client_id)) - return "client_id: string expected"; - if (message.client_metadata != null && message.hasOwnProperty("client_metadata")) { - if (!Array.isArray(message.client_metadata)) - return "client_metadata: array expected"; - for (var i = 0; i < message.client_metadata.length; ++i) { - var error = $root.ibc.core.client.v1.GenesisMetadata.verify(message.client_metadata[i]); - if (error) - return "client_metadata." + error; - } + if (message.pagination != null && message.hasOwnProperty("pagination")) { + var error = $root.cosmos.base.query.v1beta1.PageRequest.verify(message.pagination); + if (error) + return "pagination." + error; } return null; }; /** - * Creates an IdentifiedGenesisMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a QueryClientStatesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.client.v1.IdentifiedGenesisMetadata + * @memberof ibc.core.client.v1.QueryClientStatesRequest * @static * @param {Object.} object Plain object - * @returns {ibc.core.client.v1.IdentifiedGenesisMetadata} IdentifiedGenesisMetadata + * @returns {ibc.core.client.v1.QueryClientStatesRequest} QueryClientStatesRequest */ - IdentifiedGenesisMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.client.v1.IdentifiedGenesisMetadata) + QueryClientStatesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.client.v1.QueryClientStatesRequest) return object; - var message = new $root.ibc.core.client.v1.IdentifiedGenesisMetadata(); - if (object.client_id != null) - message.client_id = String(object.client_id); - if (object.client_metadata) { - if (!Array.isArray(object.client_metadata)) - throw TypeError(".ibc.core.client.v1.IdentifiedGenesisMetadata.client_metadata: array expected"); - message.client_metadata = []; - for (var i = 0; i < object.client_metadata.length; ++i) { - if (typeof object.client_metadata[i] !== "object") - throw TypeError(".ibc.core.client.v1.IdentifiedGenesisMetadata.client_metadata: object expected"); - message.client_metadata[i] = $root.ibc.core.client.v1.GenesisMetadata.fromObject(object.client_metadata[i]); - } + var message = new $root.ibc.core.client.v1.QueryClientStatesRequest(); + if (object.pagination != null) { + if (typeof object.pagination !== "object") + throw TypeError(".ibc.core.client.v1.QueryClientStatesRequest.pagination: object expected"); + message.pagination = $root.cosmos.base.query.v1beta1.PageRequest.fromObject(object.pagination); } return message; }; /** - * Creates a plain object from an IdentifiedGenesisMetadata message. Also converts values to other types if specified. + * Creates a plain object from a QueryClientStatesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.client.v1.IdentifiedGenesisMetadata + * @memberof ibc.core.client.v1.QueryClientStatesRequest * @static - * @param {ibc.core.client.v1.IdentifiedGenesisMetadata} message IdentifiedGenesisMetadata + * @param {ibc.core.client.v1.QueryClientStatesRequest} message QueryClientStatesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - IdentifiedGenesisMetadata.toObject = function toObject(message, options) { + QueryClientStatesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.client_metadata = []; if (options.defaults) - object.client_id = ""; - if (message.client_id != null && message.hasOwnProperty("client_id")) - object.client_id = message.client_id; - if (message.client_metadata && message.client_metadata.length) { - object.client_metadata = []; - for (var j = 0; j < message.client_metadata.length; ++j) - object.client_metadata[j] = $root.ibc.core.client.v1.GenesisMetadata.toObject(message.client_metadata[j], options); - } - return object; - }; - - /** - * Converts this IdentifiedGenesisMetadata to JSON. - * @function toJSON - * @memberof ibc.core.client.v1.IdentifiedGenesisMetadata - * @instance - * @returns {Object.} JSON object - */ - IdentifiedGenesisMetadata.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return IdentifiedGenesisMetadata; - })(); - - return v1; - })(); - - return client; - })(); - - core.commitment = (function() { - - /** - * Namespace commitment. - * @memberof ibc.core - * @namespace - */ - var commitment = {}; + object.pagination = null; + if (message.pagination != null && message.hasOwnProperty("pagination")) + object.pagination = $root.cosmos.base.query.v1beta1.PageRequest.toObject(message.pagination, options); + return object; + }; - commitment.v1 = (function() { + /** + * Converts this QueryClientStatesRequest to JSON. + * @function toJSON + * @memberof ibc.core.client.v1.QueryClientStatesRequest + * @instance + * @returns {Object.} JSON object + */ + QueryClientStatesRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Namespace v1. - * @memberof ibc.core.commitment - * @namespace - */ - var v1 = {}; + return QueryClientStatesRequest; + })(); - v1.MerkleRoot = (function() { + v1.QueryClientStatesResponse = (function() { /** - * Properties of a MerkleRoot. - * @memberof ibc.core.commitment.v1 - * @interface IMerkleRoot - * @property {Uint8Array|null} [hash] MerkleRoot hash + * Properties of a QueryClientStatesResponse. + * @memberof ibc.core.client.v1 + * @interface IQueryClientStatesResponse + * @property {Array.|null} [client_states] QueryClientStatesResponse client_states + * @property {cosmos.base.query.v1beta1.IPageResponse|null} [pagination] QueryClientStatesResponse pagination */ /** - * Constructs a new MerkleRoot. - * @memberof ibc.core.commitment.v1 - * @classdesc Represents a MerkleRoot. - * @implements IMerkleRoot + * Constructs a new QueryClientStatesResponse. + * @memberof ibc.core.client.v1 + * @classdesc Represents a QueryClientStatesResponse. + * @implements IQueryClientStatesResponse * @constructor - * @param {ibc.core.commitment.v1.IMerkleRoot=} [properties] Properties to set + * @param {ibc.core.client.v1.IQueryClientStatesResponse=} [properties] Properties to set */ - function MerkleRoot(properties) { + function QueryClientStatesResponse(properties) { + this.client_states = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -56483,63 +63219,79 @@ } /** - * MerkleRoot hash. - * @member {Uint8Array} hash - * @memberof ibc.core.commitment.v1.MerkleRoot + * QueryClientStatesResponse client_states. + * @member {Array.} client_states + * @memberof ibc.core.client.v1.QueryClientStatesResponse * @instance */ - MerkleRoot.prototype.hash = $util.newBuffer([]); + QueryClientStatesResponse.prototype.client_states = $util.emptyArray; /** - * Encodes the specified MerkleRoot message. Does not implicitly {@link ibc.core.commitment.v1.MerkleRoot.verify|verify} messages. + * QueryClientStatesResponse pagination. + * @member {cosmos.base.query.v1beta1.IPageResponse|null|undefined} pagination + * @memberof ibc.core.client.v1.QueryClientStatesResponse + * @instance + */ + QueryClientStatesResponse.prototype.pagination = null; + + /** + * Encodes the specified QueryClientStatesResponse message. Does not implicitly {@link ibc.core.client.v1.QueryClientStatesResponse.verify|verify} messages. * @function encode - * @memberof ibc.core.commitment.v1.MerkleRoot + * @memberof ibc.core.client.v1.QueryClientStatesResponse * @static - * @param {ibc.core.commitment.v1.IMerkleRoot} message MerkleRoot message or plain object to encode + * @param {ibc.core.client.v1.IQueryClientStatesResponse} message QueryClientStatesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MerkleRoot.encode = function encode(message, writer) { + QueryClientStatesResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.hash != null && Object.hasOwnProperty.call(message, "hash")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.hash); + if (message.client_states != null && message.client_states.length) + for (var i = 0; i < message.client_states.length; ++i) + $root.ibc.core.client.v1.IdentifiedClientState.encode(message.client_states[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.pagination != null && Object.hasOwnProperty.call(message, "pagination")) + $root.cosmos.base.query.v1beta1.PageResponse.encode(message.pagination, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified MerkleRoot message, length delimited. Does not implicitly {@link ibc.core.commitment.v1.MerkleRoot.verify|verify} messages. + * Encodes the specified QueryClientStatesResponse message, length delimited. Does not implicitly {@link ibc.core.client.v1.QueryClientStatesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.commitment.v1.MerkleRoot + * @memberof ibc.core.client.v1.QueryClientStatesResponse * @static - * @param {ibc.core.commitment.v1.IMerkleRoot} message MerkleRoot message or plain object to encode + * @param {ibc.core.client.v1.IQueryClientStatesResponse} message QueryClientStatesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MerkleRoot.encodeDelimited = function encodeDelimited(message, writer) { + QueryClientStatesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MerkleRoot message from the specified reader or buffer. + * Decodes a QueryClientStatesResponse message from the specified reader or buffer. * @function decode - * @memberof ibc.core.commitment.v1.MerkleRoot + * @memberof ibc.core.client.v1.QueryClientStatesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.commitment.v1.MerkleRoot} MerkleRoot + * @returns {ibc.core.client.v1.QueryClientStatesResponse} QueryClientStatesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MerkleRoot.decode = function decode(reader, length) { + QueryClientStatesResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.commitment.v1.MerkleRoot(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.QueryClientStatesResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.hash = reader.bytes(); + if (!(message.client_states && message.client_states.length)) + message.client_states = []; + message.client_states.push($root.ibc.core.client.v1.IdentifiedClientState.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = $root.cosmos.base.query.v1beta1.PageResponse.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -56550,116 +63302,141 @@ }; /** - * Decodes a MerkleRoot message from the specified reader or buffer, length delimited. + * Decodes a QueryClientStatesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.commitment.v1.MerkleRoot + * @memberof ibc.core.client.v1.QueryClientStatesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.commitment.v1.MerkleRoot} MerkleRoot + * @returns {ibc.core.client.v1.QueryClientStatesResponse} QueryClientStatesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MerkleRoot.decodeDelimited = function decodeDelimited(reader) { + QueryClientStatesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MerkleRoot message. + * Verifies a QueryClientStatesResponse message. * @function verify - * @memberof ibc.core.commitment.v1.MerkleRoot + * @memberof ibc.core.client.v1.QueryClientStatesResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MerkleRoot.verify = function verify(message) { + QueryClientStatesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.hash != null && message.hasOwnProperty("hash")) - if (!(message.hash && typeof message.hash.length === "number" || $util.isString(message.hash))) - return "hash: buffer expected"; + if (message.client_states != null && message.hasOwnProperty("client_states")) { + if (!Array.isArray(message.client_states)) + return "client_states: array expected"; + for (var i = 0; i < message.client_states.length; ++i) { + var error = $root.ibc.core.client.v1.IdentifiedClientState.verify(message.client_states[i]); + if (error) + return "client_states." + error; + } + } + if (message.pagination != null && message.hasOwnProperty("pagination")) { + var error = $root.cosmos.base.query.v1beta1.PageResponse.verify(message.pagination); + if (error) + return "pagination." + error; + } return null; }; /** - * Creates a MerkleRoot message from a plain object. Also converts values to their respective internal types. + * Creates a QueryClientStatesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.commitment.v1.MerkleRoot + * @memberof ibc.core.client.v1.QueryClientStatesResponse * @static * @param {Object.} object Plain object - * @returns {ibc.core.commitment.v1.MerkleRoot} MerkleRoot + * @returns {ibc.core.client.v1.QueryClientStatesResponse} QueryClientStatesResponse */ - MerkleRoot.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.commitment.v1.MerkleRoot) + QueryClientStatesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.client.v1.QueryClientStatesResponse) return object; - var message = new $root.ibc.core.commitment.v1.MerkleRoot(); - if (object.hash != null) - if (typeof object.hash === "string") - $util.base64.decode(object.hash, message.hash = $util.newBuffer($util.base64.length(object.hash)), 0); - else if (object.hash.length) - message.hash = object.hash; + var message = new $root.ibc.core.client.v1.QueryClientStatesResponse(); + if (object.client_states) { + if (!Array.isArray(object.client_states)) + throw TypeError(".ibc.core.client.v1.QueryClientStatesResponse.client_states: array expected"); + message.client_states = []; + for (var i = 0; i < object.client_states.length; ++i) { + if (typeof object.client_states[i] !== "object") + throw TypeError(".ibc.core.client.v1.QueryClientStatesResponse.client_states: object expected"); + message.client_states[i] = $root.ibc.core.client.v1.IdentifiedClientState.fromObject(object.client_states[i]); + } + } + if (object.pagination != null) { + if (typeof object.pagination !== "object") + throw TypeError(".ibc.core.client.v1.QueryClientStatesResponse.pagination: object expected"); + message.pagination = $root.cosmos.base.query.v1beta1.PageResponse.fromObject(object.pagination); + } return message; }; /** - * Creates a plain object from a MerkleRoot message. Also converts values to other types if specified. + * Creates a plain object from a QueryClientStatesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.commitment.v1.MerkleRoot + * @memberof ibc.core.client.v1.QueryClientStatesResponse * @static - * @param {ibc.core.commitment.v1.MerkleRoot} message MerkleRoot + * @param {ibc.core.client.v1.QueryClientStatesResponse} message QueryClientStatesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MerkleRoot.toObject = function toObject(message, options) { + QueryClientStatesResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.client_states = []; if (options.defaults) - if (options.bytes === String) - object.hash = ""; - else { - object.hash = []; - if (options.bytes !== Array) - object.hash = $util.newBuffer(object.hash); - } - if (message.hash != null && message.hasOwnProperty("hash")) - object.hash = options.bytes === String ? $util.base64.encode(message.hash, 0, message.hash.length) : options.bytes === Array ? Array.prototype.slice.call(message.hash) : message.hash; + object.pagination = null; + if (message.client_states && message.client_states.length) { + object.client_states = []; + for (var j = 0; j < message.client_states.length; ++j) + object.client_states[j] = $root.ibc.core.client.v1.IdentifiedClientState.toObject(message.client_states[j], options); + } + if (message.pagination != null && message.hasOwnProperty("pagination")) + object.pagination = $root.cosmos.base.query.v1beta1.PageResponse.toObject(message.pagination, options); return object; }; /** - * Converts this MerkleRoot to JSON. + * Converts this QueryClientStatesResponse to JSON. * @function toJSON - * @memberof ibc.core.commitment.v1.MerkleRoot + * @memberof ibc.core.client.v1.QueryClientStatesResponse * @instance * @returns {Object.} JSON object */ - MerkleRoot.prototype.toJSON = function toJSON() { + QueryClientStatesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MerkleRoot; + return QueryClientStatesResponse; })(); - v1.MerklePrefix = (function() { + v1.QueryConsensusStateRequest = (function() { /** - * Properties of a MerklePrefix. - * @memberof ibc.core.commitment.v1 - * @interface IMerklePrefix - * @property {Uint8Array|null} [key_prefix] MerklePrefix key_prefix + * Properties of a QueryConsensusStateRequest. + * @memberof ibc.core.client.v1 + * @interface IQueryConsensusStateRequest + * @property {string|null} [client_id] QueryConsensusStateRequest client_id + * @property {Long|null} [revision_number] QueryConsensusStateRequest revision_number + * @property {Long|null} [revision_height] QueryConsensusStateRequest revision_height + * @property {boolean|null} [latest_height] QueryConsensusStateRequest latest_height */ /** - * Constructs a new MerklePrefix. - * @memberof ibc.core.commitment.v1 - * @classdesc Represents a MerklePrefix. - * @implements IMerklePrefix + * Constructs a new QueryConsensusStateRequest. + * @memberof ibc.core.client.v1 + * @classdesc Represents a QueryConsensusStateRequest. + * @implements IQueryConsensusStateRequest * @constructor - * @param {ibc.core.commitment.v1.IMerklePrefix=} [properties] Properties to set + * @param {ibc.core.client.v1.IQueryConsensusStateRequest=} [properties] Properties to set */ - function MerklePrefix(properties) { + function QueryConsensusStateRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -56667,63 +63444,102 @@ } /** - * MerklePrefix key_prefix. - * @member {Uint8Array} key_prefix - * @memberof ibc.core.commitment.v1.MerklePrefix + * QueryConsensusStateRequest client_id. + * @member {string} client_id + * @memberof ibc.core.client.v1.QueryConsensusStateRequest * @instance */ - MerklePrefix.prototype.key_prefix = $util.newBuffer([]); + QueryConsensusStateRequest.prototype.client_id = ""; /** - * Encodes the specified MerklePrefix message. Does not implicitly {@link ibc.core.commitment.v1.MerklePrefix.verify|verify} messages. + * QueryConsensusStateRequest revision_number. + * @member {Long} revision_number + * @memberof ibc.core.client.v1.QueryConsensusStateRequest + * @instance + */ + QueryConsensusStateRequest.prototype.revision_number = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + + /** + * QueryConsensusStateRequest revision_height. + * @member {Long} revision_height + * @memberof ibc.core.client.v1.QueryConsensusStateRequest + * @instance + */ + QueryConsensusStateRequest.prototype.revision_height = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + + /** + * QueryConsensusStateRequest latest_height. + * @member {boolean} latest_height + * @memberof ibc.core.client.v1.QueryConsensusStateRequest + * @instance + */ + QueryConsensusStateRequest.prototype.latest_height = false; + + /** + * Encodes the specified QueryConsensusStateRequest message. Does not implicitly {@link ibc.core.client.v1.QueryConsensusStateRequest.verify|verify} messages. * @function encode - * @memberof ibc.core.commitment.v1.MerklePrefix + * @memberof ibc.core.client.v1.QueryConsensusStateRequest * @static - * @param {ibc.core.commitment.v1.IMerklePrefix} message MerklePrefix message or plain object to encode + * @param {ibc.core.client.v1.IQueryConsensusStateRequest} message QueryConsensusStateRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MerklePrefix.encode = function encode(message, writer) { + QueryConsensusStateRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.key_prefix != null && Object.hasOwnProperty.call(message, "key_prefix")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.key_prefix); + if (message.client_id != null && Object.hasOwnProperty.call(message, "client_id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.client_id); + if (message.revision_number != null && Object.hasOwnProperty.call(message, "revision_number")) + writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.revision_number); + if (message.revision_height != null && Object.hasOwnProperty.call(message, "revision_height")) + writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.revision_height); + if (message.latest_height != null && Object.hasOwnProperty.call(message, "latest_height")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.latest_height); return writer; }; /** - * Encodes the specified MerklePrefix message, length delimited. Does not implicitly {@link ibc.core.commitment.v1.MerklePrefix.verify|verify} messages. + * Encodes the specified QueryConsensusStateRequest message, length delimited. Does not implicitly {@link ibc.core.client.v1.QueryConsensusStateRequest.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.commitment.v1.MerklePrefix + * @memberof ibc.core.client.v1.QueryConsensusStateRequest * @static - * @param {ibc.core.commitment.v1.IMerklePrefix} message MerklePrefix message or plain object to encode + * @param {ibc.core.client.v1.IQueryConsensusStateRequest} message QueryConsensusStateRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MerklePrefix.encodeDelimited = function encodeDelimited(message, writer) { + QueryConsensusStateRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MerklePrefix message from the specified reader or buffer. + * Decodes a QueryConsensusStateRequest message from the specified reader or buffer. * @function decode - * @memberof ibc.core.commitment.v1.MerklePrefix + * @memberof ibc.core.client.v1.QueryConsensusStateRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.commitment.v1.MerklePrefix} MerklePrefix + * @returns {ibc.core.client.v1.QueryConsensusStateRequest} QueryConsensusStateRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MerklePrefix.decode = function decode(reader, length) { + QueryConsensusStateRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.commitment.v1.MerklePrefix(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.QueryConsensusStateRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.key_prefix = reader.bytes(); + message.client_id = reader.string(); + break; + case 2: + message.revision_number = reader.uint64(); + break; + case 3: + message.revision_height = reader.uint64(); + break; + case 4: + message.latest_height = reader.bool(); break; default: reader.skipType(tag & 7); @@ -56734,117 +63550,162 @@ }; /** - * Decodes a MerklePrefix message from the specified reader or buffer, length delimited. + * Decodes a QueryConsensusStateRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.commitment.v1.MerklePrefix + * @memberof ibc.core.client.v1.QueryConsensusStateRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.commitment.v1.MerklePrefix} MerklePrefix + * @returns {ibc.core.client.v1.QueryConsensusStateRequest} QueryConsensusStateRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MerklePrefix.decodeDelimited = function decodeDelimited(reader) { + QueryConsensusStateRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MerklePrefix message. + * Verifies a QueryConsensusStateRequest message. * @function verify - * @memberof ibc.core.commitment.v1.MerklePrefix + * @memberof ibc.core.client.v1.QueryConsensusStateRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MerklePrefix.verify = function verify(message) { + QueryConsensusStateRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.key_prefix != null && message.hasOwnProperty("key_prefix")) - if (!(message.key_prefix && typeof message.key_prefix.length === "number" || $util.isString(message.key_prefix))) - return "key_prefix: buffer expected"; + if (message.client_id != null && message.hasOwnProperty("client_id")) + if (!$util.isString(message.client_id)) + return "client_id: string expected"; + if (message.revision_number != null && message.hasOwnProperty("revision_number")) + if (!$util.isInteger(message.revision_number) && !(message.revision_number && $util.isInteger(message.revision_number.low) && $util.isInteger(message.revision_number.high))) + return "revision_number: integer|Long expected"; + if (message.revision_height != null && message.hasOwnProperty("revision_height")) + if (!$util.isInteger(message.revision_height) && !(message.revision_height && $util.isInteger(message.revision_height.low) && $util.isInteger(message.revision_height.high))) + return "revision_height: integer|Long expected"; + if (message.latest_height != null && message.hasOwnProperty("latest_height")) + if (typeof message.latest_height !== "boolean") + return "latest_height: boolean expected"; return null; }; /** - * Creates a MerklePrefix message from a plain object. Also converts values to their respective internal types. + * Creates a QueryConsensusStateRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.commitment.v1.MerklePrefix + * @memberof ibc.core.client.v1.QueryConsensusStateRequest * @static * @param {Object.} object Plain object - * @returns {ibc.core.commitment.v1.MerklePrefix} MerklePrefix + * @returns {ibc.core.client.v1.QueryConsensusStateRequest} QueryConsensusStateRequest */ - MerklePrefix.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.commitment.v1.MerklePrefix) + QueryConsensusStateRequest.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.client.v1.QueryConsensusStateRequest) return object; - var message = new $root.ibc.core.commitment.v1.MerklePrefix(); - if (object.key_prefix != null) - if (typeof object.key_prefix === "string") - $util.base64.decode(object.key_prefix, message.key_prefix = $util.newBuffer($util.base64.length(object.key_prefix)), 0); - else if (object.key_prefix.length) - message.key_prefix = object.key_prefix; + var message = new $root.ibc.core.client.v1.QueryConsensusStateRequest(); + if (object.client_id != null) + message.client_id = String(object.client_id); + if (object.revision_number != null) + if ($util.Long) + (message.revision_number = $util.Long.fromValue(object.revision_number)).unsigned = true; + else if (typeof object.revision_number === "string") + message.revision_number = parseInt(object.revision_number, 10); + else if (typeof object.revision_number === "number") + message.revision_number = object.revision_number; + else if (typeof object.revision_number === "object") + message.revision_number = new $util.LongBits(object.revision_number.low >>> 0, object.revision_number.high >>> 0).toNumber(true); + if (object.revision_height != null) + if ($util.Long) + (message.revision_height = $util.Long.fromValue(object.revision_height)).unsigned = true; + else if (typeof object.revision_height === "string") + message.revision_height = parseInt(object.revision_height, 10); + else if (typeof object.revision_height === "number") + message.revision_height = object.revision_height; + else if (typeof object.revision_height === "object") + message.revision_height = new $util.LongBits(object.revision_height.low >>> 0, object.revision_height.high >>> 0).toNumber(true); + if (object.latest_height != null) + message.latest_height = Boolean(object.latest_height); return message; }; /** - * Creates a plain object from a MerklePrefix message. Also converts values to other types if specified. + * Creates a plain object from a QueryConsensusStateRequest message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.commitment.v1.MerklePrefix + * @memberof ibc.core.client.v1.QueryConsensusStateRequest * @static - * @param {ibc.core.commitment.v1.MerklePrefix} message MerklePrefix + * @param {ibc.core.client.v1.QueryConsensusStateRequest} message QueryConsensusStateRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MerklePrefix.toObject = function toObject(message, options) { + QueryConsensusStateRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - if (options.bytes === String) - object.key_prefix = ""; - else { - object.key_prefix = []; - if (options.bytes !== Array) - object.key_prefix = $util.newBuffer(object.key_prefix); - } - if (message.key_prefix != null && message.hasOwnProperty("key_prefix")) - object.key_prefix = options.bytes === String ? $util.base64.encode(message.key_prefix, 0, message.key_prefix.length) : options.bytes === Array ? Array.prototype.slice.call(message.key_prefix) : message.key_prefix; + if (options.defaults) { + object.client_id = ""; + if ($util.Long) { + var long = new $util.Long(0, 0, true); + object.revision_number = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.revision_number = options.longs === String ? "0" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, true); + object.revision_height = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.revision_height = options.longs === String ? "0" : 0; + object.latest_height = false; + } + if (message.client_id != null && message.hasOwnProperty("client_id")) + object.client_id = message.client_id; + if (message.revision_number != null && message.hasOwnProperty("revision_number")) + if (typeof message.revision_number === "number") + object.revision_number = options.longs === String ? String(message.revision_number) : message.revision_number; + else + object.revision_number = options.longs === String ? $util.Long.prototype.toString.call(message.revision_number) : options.longs === Number ? new $util.LongBits(message.revision_number.low >>> 0, message.revision_number.high >>> 0).toNumber(true) : message.revision_number; + if (message.revision_height != null && message.hasOwnProperty("revision_height")) + if (typeof message.revision_height === "number") + object.revision_height = options.longs === String ? String(message.revision_height) : message.revision_height; + else + object.revision_height = options.longs === String ? $util.Long.prototype.toString.call(message.revision_height) : options.longs === Number ? new $util.LongBits(message.revision_height.low >>> 0, message.revision_height.high >>> 0).toNumber(true) : message.revision_height; + if (message.latest_height != null && message.hasOwnProperty("latest_height")) + object.latest_height = message.latest_height; return object; }; /** - * Converts this MerklePrefix to JSON. + * Converts this QueryConsensusStateRequest to JSON. * @function toJSON - * @memberof ibc.core.commitment.v1.MerklePrefix + * @memberof ibc.core.client.v1.QueryConsensusStateRequest * @instance * @returns {Object.} JSON object */ - MerklePrefix.prototype.toJSON = function toJSON() { + QueryConsensusStateRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MerklePrefix; + return QueryConsensusStateRequest; })(); - v1.MerklePath = (function() { + v1.QueryConsensusStateResponse = (function() { /** - * Properties of a MerklePath. - * @memberof ibc.core.commitment.v1 - * @interface IMerklePath - * @property {Array.|null} [key_path] MerklePath key_path + * Properties of a QueryConsensusStateResponse. + * @memberof ibc.core.client.v1 + * @interface IQueryConsensusStateResponse + * @property {google.protobuf.IAny|null} [consensus_state] QueryConsensusStateResponse consensus_state + * @property {Uint8Array|null} [proof] QueryConsensusStateResponse proof + * @property {ibc.core.client.v1.IHeight|null} [proof_height] QueryConsensusStateResponse proof_height */ /** - * Constructs a new MerklePath. - * @memberof ibc.core.commitment.v1 - * @classdesc Represents a MerklePath. - * @implements IMerklePath + * Constructs a new QueryConsensusStateResponse. + * @memberof ibc.core.client.v1 + * @classdesc Represents a QueryConsensusStateResponse. + * @implements IQueryConsensusStateResponse * @constructor - * @param {ibc.core.commitment.v1.IMerklePath=} [properties] Properties to set + * @param {ibc.core.client.v1.IQueryConsensusStateResponse=} [properties] Properties to set */ - function MerklePath(properties) { - this.key_path = []; + function QueryConsensusStateResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -56852,66 +63713,89 @@ } /** - * MerklePath key_path. - * @member {Array.} key_path - * @memberof ibc.core.commitment.v1.MerklePath + * QueryConsensusStateResponse consensus_state. + * @member {google.protobuf.IAny|null|undefined} consensus_state + * @memberof ibc.core.client.v1.QueryConsensusStateResponse * @instance */ - MerklePath.prototype.key_path = $util.emptyArray; + QueryConsensusStateResponse.prototype.consensus_state = null; /** - * Encodes the specified MerklePath message. Does not implicitly {@link ibc.core.commitment.v1.MerklePath.verify|verify} messages. + * QueryConsensusStateResponse proof. + * @member {Uint8Array} proof + * @memberof ibc.core.client.v1.QueryConsensusStateResponse + * @instance + */ + QueryConsensusStateResponse.prototype.proof = $util.newBuffer([]); + + /** + * QueryConsensusStateResponse proof_height. + * @member {ibc.core.client.v1.IHeight|null|undefined} proof_height + * @memberof ibc.core.client.v1.QueryConsensusStateResponse + * @instance + */ + QueryConsensusStateResponse.prototype.proof_height = null; + + /** + * Encodes the specified QueryConsensusStateResponse message. Does not implicitly {@link ibc.core.client.v1.QueryConsensusStateResponse.verify|verify} messages. * @function encode - * @memberof ibc.core.commitment.v1.MerklePath + * @memberof ibc.core.client.v1.QueryConsensusStateResponse * @static - * @param {ibc.core.commitment.v1.IMerklePath} message MerklePath message or plain object to encode + * @param {ibc.core.client.v1.IQueryConsensusStateResponse} message QueryConsensusStateResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MerklePath.encode = function encode(message, writer) { + QueryConsensusStateResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.key_path != null && message.key_path.length) - for (var i = 0; i < message.key_path.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.key_path[i]); + if (message.consensus_state != null && Object.hasOwnProperty.call(message, "consensus_state")) + $root.google.protobuf.Any.encode(message.consensus_state, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.proof != null && Object.hasOwnProperty.call(message, "proof")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.proof); + if (message.proof_height != null && Object.hasOwnProperty.call(message, "proof_height")) + $root.ibc.core.client.v1.Height.encode(message.proof_height, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified MerklePath message, length delimited. Does not implicitly {@link ibc.core.commitment.v1.MerklePath.verify|verify} messages. + * Encodes the specified QueryConsensusStateResponse message, length delimited. Does not implicitly {@link ibc.core.client.v1.QueryConsensusStateResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.commitment.v1.MerklePath + * @memberof ibc.core.client.v1.QueryConsensusStateResponse * @static - * @param {ibc.core.commitment.v1.IMerklePath} message MerklePath message or plain object to encode + * @param {ibc.core.client.v1.IQueryConsensusStateResponse} message QueryConsensusStateResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MerklePath.encodeDelimited = function encodeDelimited(message, writer) { + QueryConsensusStateResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MerklePath message from the specified reader or buffer. + * Decodes a QueryConsensusStateResponse message from the specified reader or buffer. * @function decode - * @memberof ibc.core.commitment.v1.MerklePath + * @memberof ibc.core.client.v1.QueryConsensusStateResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.commitment.v1.MerklePath} MerklePath + * @returns {ibc.core.client.v1.QueryConsensusStateResponse} QueryConsensusStateResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MerklePath.decode = function decode(reader, length) { + QueryConsensusStateResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.commitment.v1.MerklePath(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.QueryConsensusStateResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.key_path && message.key_path.length)) - message.key_path = []; - message.key_path.push(reader.string()); + message.consensus_state = $root.google.protobuf.Any.decode(reader, reader.uint32()); + break; + case 2: + message.proof = reader.bytes(); + break; + case 3: + message.proof_height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -56922,120 +63806,144 @@ }; /** - * Decodes a MerklePath message from the specified reader or buffer, length delimited. + * Decodes a QueryConsensusStateResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.commitment.v1.MerklePath + * @memberof ibc.core.client.v1.QueryConsensusStateResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.commitment.v1.MerklePath} MerklePath + * @returns {ibc.core.client.v1.QueryConsensusStateResponse} QueryConsensusStateResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MerklePath.decodeDelimited = function decodeDelimited(reader) { + QueryConsensusStateResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MerklePath message. + * Verifies a QueryConsensusStateResponse message. * @function verify - * @memberof ibc.core.commitment.v1.MerklePath + * @memberof ibc.core.client.v1.QueryConsensusStateResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MerklePath.verify = function verify(message) { + QueryConsensusStateResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.key_path != null && message.hasOwnProperty("key_path")) { - if (!Array.isArray(message.key_path)) - return "key_path: array expected"; - for (var i = 0; i < message.key_path.length; ++i) - if (!$util.isString(message.key_path[i])) - return "key_path: string[] expected"; + if (message.consensus_state != null && message.hasOwnProperty("consensus_state")) { + var error = $root.google.protobuf.Any.verify(message.consensus_state); + if (error) + return "consensus_state." + error; + } + if (message.proof != null && message.hasOwnProperty("proof")) + if (!(message.proof && typeof message.proof.length === "number" || $util.isString(message.proof))) + return "proof: buffer expected"; + if (message.proof_height != null && message.hasOwnProperty("proof_height")) { + var error = $root.ibc.core.client.v1.Height.verify(message.proof_height); + if (error) + return "proof_height." + error; } return null; }; /** - * Creates a MerklePath message from a plain object. Also converts values to their respective internal types. + * Creates a QueryConsensusStateResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.commitment.v1.MerklePath + * @memberof ibc.core.client.v1.QueryConsensusStateResponse * @static * @param {Object.} object Plain object - * @returns {ibc.core.commitment.v1.MerklePath} MerklePath + * @returns {ibc.core.client.v1.QueryConsensusStateResponse} QueryConsensusStateResponse */ - MerklePath.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.commitment.v1.MerklePath) + QueryConsensusStateResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.client.v1.QueryConsensusStateResponse) return object; - var message = new $root.ibc.core.commitment.v1.MerklePath(); - if (object.key_path) { - if (!Array.isArray(object.key_path)) - throw TypeError(".ibc.core.commitment.v1.MerklePath.key_path: array expected"); - message.key_path = []; - for (var i = 0; i < object.key_path.length; ++i) - message.key_path[i] = String(object.key_path[i]); + var message = new $root.ibc.core.client.v1.QueryConsensusStateResponse(); + if (object.consensus_state != null) { + if (typeof object.consensus_state !== "object") + throw TypeError(".ibc.core.client.v1.QueryConsensusStateResponse.consensus_state: object expected"); + message.consensus_state = $root.google.protobuf.Any.fromObject(object.consensus_state); + } + if (object.proof != null) + if (typeof object.proof === "string") + $util.base64.decode(object.proof, message.proof = $util.newBuffer($util.base64.length(object.proof)), 0); + else if (object.proof.length) + message.proof = object.proof; + if (object.proof_height != null) { + if (typeof object.proof_height !== "object") + throw TypeError(".ibc.core.client.v1.QueryConsensusStateResponse.proof_height: object expected"); + message.proof_height = $root.ibc.core.client.v1.Height.fromObject(object.proof_height); } return message; }; /** - * Creates a plain object from a MerklePath message. Also converts values to other types if specified. + * Creates a plain object from a QueryConsensusStateResponse message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.commitment.v1.MerklePath + * @memberof ibc.core.client.v1.QueryConsensusStateResponse * @static - * @param {ibc.core.commitment.v1.MerklePath} message MerklePath + * @param {ibc.core.client.v1.QueryConsensusStateResponse} message QueryConsensusStateResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MerklePath.toObject = function toObject(message, options) { + QueryConsensusStateResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.key_path = []; - if (message.key_path && message.key_path.length) { - object.key_path = []; - for (var j = 0; j < message.key_path.length; ++j) - object.key_path[j] = message.key_path[j]; + if (options.defaults) { + object.consensus_state = null; + if (options.bytes === String) + object.proof = ""; + else { + object.proof = []; + if (options.bytes !== Array) + object.proof = $util.newBuffer(object.proof); + } + object.proof_height = null; } + if (message.consensus_state != null && message.hasOwnProperty("consensus_state")) + object.consensus_state = $root.google.protobuf.Any.toObject(message.consensus_state, options); + if (message.proof != null && message.hasOwnProperty("proof")) + object.proof = options.bytes === String ? $util.base64.encode(message.proof, 0, message.proof.length) : options.bytes === Array ? Array.prototype.slice.call(message.proof) : message.proof; + if (message.proof_height != null && message.hasOwnProperty("proof_height")) + object.proof_height = $root.ibc.core.client.v1.Height.toObject(message.proof_height, options); return object; }; /** - * Converts this MerklePath to JSON. + * Converts this QueryConsensusStateResponse to JSON. * @function toJSON - * @memberof ibc.core.commitment.v1.MerklePath + * @memberof ibc.core.client.v1.QueryConsensusStateResponse * @instance * @returns {Object.} JSON object */ - MerklePath.prototype.toJSON = function toJSON() { + QueryConsensusStateResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MerklePath; + return QueryConsensusStateResponse; })(); - v1.MerkleProof = (function() { + v1.QueryConsensusStatesRequest = (function() { /** - * Properties of a MerkleProof. - * @memberof ibc.core.commitment.v1 - * @interface IMerkleProof - * @property {Array.|null} [proofs] MerkleProof proofs + * Properties of a QueryConsensusStatesRequest. + * @memberof ibc.core.client.v1 + * @interface IQueryConsensusStatesRequest + * @property {string|null} [client_id] QueryConsensusStatesRequest client_id + * @property {cosmos.base.query.v1beta1.IPageRequest|null} [pagination] QueryConsensusStatesRequest pagination */ /** - * Constructs a new MerkleProof. - * @memberof ibc.core.commitment.v1 - * @classdesc Represents a MerkleProof. - * @implements IMerkleProof + * Constructs a new QueryConsensusStatesRequest. + * @memberof ibc.core.client.v1 + * @classdesc Represents a QueryConsensusStatesRequest. + * @implements IQueryConsensusStatesRequest * @constructor - * @param {ibc.core.commitment.v1.IMerkleProof=} [properties] Properties to set + * @param {ibc.core.client.v1.IQueryConsensusStatesRequest=} [properties] Properties to set */ - function MerkleProof(properties) { - this.proofs = []; + function QueryConsensusStatesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -57043,66 +63951,76 @@ } /** - * MerkleProof proofs. - * @member {Array.} proofs - * @memberof ibc.core.commitment.v1.MerkleProof + * QueryConsensusStatesRequest client_id. + * @member {string} client_id + * @memberof ibc.core.client.v1.QueryConsensusStatesRequest * @instance */ - MerkleProof.prototype.proofs = $util.emptyArray; + QueryConsensusStatesRequest.prototype.client_id = ""; /** - * Encodes the specified MerkleProof message. Does not implicitly {@link ibc.core.commitment.v1.MerkleProof.verify|verify} messages. + * QueryConsensusStatesRequest pagination. + * @member {cosmos.base.query.v1beta1.IPageRequest|null|undefined} pagination + * @memberof ibc.core.client.v1.QueryConsensusStatesRequest + * @instance + */ + QueryConsensusStatesRequest.prototype.pagination = null; + + /** + * Encodes the specified QueryConsensusStatesRequest message. Does not implicitly {@link ibc.core.client.v1.QueryConsensusStatesRequest.verify|verify} messages. * @function encode - * @memberof ibc.core.commitment.v1.MerkleProof + * @memberof ibc.core.client.v1.QueryConsensusStatesRequest * @static - * @param {ibc.core.commitment.v1.IMerkleProof} message MerkleProof message or plain object to encode + * @param {ibc.core.client.v1.IQueryConsensusStatesRequest} message QueryConsensusStatesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MerkleProof.encode = function encode(message, writer) { + QueryConsensusStatesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.proofs != null && message.proofs.length) - for (var i = 0; i < message.proofs.length; ++i) - $root.ics23.CommitmentProof.encode(message.proofs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.client_id != null && Object.hasOwnProperty.call(message, "client_id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.client_id); + if (message.pagination != null && Object.hasOwnProperty.call(message, "pagination")) + $root.cosmos.base.query.v1beta1.PageRequest.encode(message.pagination, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified MerkleProof message, length delimited. Does not implicitly {@link ibc.core.commitment.v1.MerkleProof.verify|verify} messages. + * Encodes the specified QueryConsensusStatesRequest message, length delimited. Does not implicitly {@link ibc.core.client.v1.QueryConsensusStatesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.commitment.v1.MerkleProof + * @memberof ibc.core.client.v1.QueryConsensusStatesRequest * @static - * @param {ibc.core.commitment.v1.IMerkleProof} message MerkleProof message or plain object to encode + * @param {ibc.core.client.v1.IQueryConsensusStatesRequest} message QueryConsensusStatesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MerkleProof.encodeDelimited = function encodeDelimited(message, writer) { + QueryConsensusStatesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MerkleProof message from the specified reader or buffer. + * Decodes a QueryConsensusStatesRequest message from the specified reader or buffer. * @function decode - * @memberof ibc.core.commitment.v1.MerkleProof + * @memberof ibc.core.client.v1.QueryConsensusStatesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.commitment.v1.MerkleProof} MerkleProof + * @returns {ibc.core.client.v1.QueryConsensusStatesRequest} QueryConsensusStatesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MerkleProof.decode = function decode(reader, length) { + QueryConsensusStatesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.commitment.v1.MerkleProof(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.QueryConsensusStatesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.proofs && message.proofs.length)) - message.proofs = []; - message.proofs.push($root.ics23.CommitmentProof.decode(reader, reader.uint32())); + message.client_id = reader.string(); + break; + case 2: + message.pagination = $root.cosmos.base.query.v1beta1.PageRequest.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -57113,305 +64031,123 @@ }; /** - * Decodes a MerkleProof message from the specified reader or buffer, length delimited. + * Decodes a QueryConsensusStatesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.commitment.v1.MerkleProof + * @memberof ibc.core.client.v1.QueryConsensusStatesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.commitment.v1.MerkleProof} MerkleProof + * @returns {ibc.core.client.v1.QueryConsensusStatesRequest} QueryConsensusStatesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MerkleProof.decodeDelimited = function decodeDelimited(reader) { + QueryConsensusStatesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MerkleProof message. + * Verifies a QueryConsensusStatesRequest message. * @function verify - * @memberof ibc.core.commitment.v1.MerkleProof + * @memberof ibc.core.client.v1.QueryConsensusStatesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MerkleProof.verify = function verify(message) { + QueryConsensusStatesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.proofs != null && message.hasOwnProperty("proofs")) { - if (!Array.isArray(message.proofs)) - return "proofs: array expected"; - for (var i = 0; i < message.proofs.length; ++i) { - var error = $root.ics23.CommitmentProof.verify(message.proofs[i]); - if (error) - return "proofs." + error; - } + if (message.client_id != null && message.hasOwnProperty("client_id")) + if (!$util.isString(message.client_id)) + return "client_id: string expected"; + if (message.pagination != null && message.hasOwnProperty("pagination")) { + var error = $root.cosmos.base.query.v1beta1.PageRequest.verify(message.pagination); + if (error) + return "pagination." + error; } return null; }; /** - * Creates a MerkleProof message from a plain object. Also converts values to their respective internal types. + * Creates a QueryConsensusStatesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.commitment.v1.MerkleProof + * @memberof ibc.core.client.v1.QueryConsensusStatesRequest * @static * @param {Object.} object Plain object - * @returns {ibc.core.commitment.v1.MerkleProof} MerkleProof + * @returns {ibc.core.client.v1.QueryConsensusStatesRequest} QueryConsensusStatesRequest */ - MerkleProof.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.commitment.v1.MerkleProof) + QueryConsensusStatesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.client.v1.QueryConsensusStatesRequest) return object; - var message = new $root.ibc.core.commitment.v1.MerkleProof(); - if (object.proofs) { - if (!Array.isArray(object.proofs)) - throw TypeError(".ibc.core.commitment.v1.MerkleProof.proofs: array expected"); - message.proofs = []; - for (var i = 0; i < object.proofs.length; ++i) { - if (typeof object.proofs[i] !== "object") - throw TypeError(".ibc.core.commitment.v1.MerkleProof.proofs: object expected"); - message.proofs[i] = $root.ics23.CommitmentProof.fromObject(object.proofs[i]); - } + var message = new $root.ibc.core.client.v1.QueryConsensusStatesRequest(); + if (object.client_id != null) + message.client_id = String(object.client_id); + if (object.pagination != null) { + if (typeof object.pagination !== "object") + throw TypeError(".ibc.core.client.v1.QueryConsensusStatesRequest.pagination: object expected"); + message.pagination = $root.cosmos.base.query.v1beta1.PageRequest.fromObject(object.pagination); } return message; }; /** - * Creates a plain object from a MerkleProof message. Also converts values to other types if specified. + * Creates a plain object from a QueryConsensusStatesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.commitment.v1.MerkleProof + * @memberof ibc.core.client.v1.QueryConsensusStatesRequest * @static - * @param {ibc.core.commitment.v1.MerkleProof} message MerkleProof + * @param {ibc.core.client.v1.QueryConsensusStatesRequest} message QueryConsensusStatesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MerkleProof.toObject = function toObject(message, options) { + QueryConsensusStatesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.proofs = []; - if (message.proofs && message.proofs.length) { - object.proofs = []; - for (var j = 0; j < message.proofs.length; ++j) - object.proofs[j] = $root.ics23.CommitmentProof.toObject(message.proofs[j], options); + if (options.defaults) { + object.client_id = ""; + object.pagination = null; } + if (message.client_id != null && message.hasOwnProperty("client_id")) + object.client_id = message.client_id; + if (message.pagination != null && message.hasOwnProperty("pagination")) + object.pagination = $root.cosmos.base.query.v1beta1.PageRequest.toObject(message.pagination, options); return object; }; /** - * Converts this MerkleProof to JSON. + * Converts this QueryConsensusStatesRequest to JSON. * @function toJSON - * @memberof ibc.core.commitment.v1.MerkleProof + * @memberof ibc.core.client.v1.QueryConsensusStatesRequest * @instance * @returns {Object.} JSON object */ - MerkleProof.prototype.toJSON = function toJSON() { + QueryConsensusStatesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MerkleProof; - })(); - - return v1; - })(); - - return commitment; - })(); - - core.connection = (function() { - - /** - * Namespace connection. - * @memberof ibc.core - * @namespace - */ - var connection = {}; - - connection.v1 = (function() { - - /** - * Namespace v1. - * @memberof ibc.core.connection - * @namespace - */ - var v1 = {}; - - v1.Msg = (function() { - - /** - * Constructs a new Msg service. - * @memberof ibc.core.connection.v1 - * @classdesc Represents a Msg - * @extends $protobuf.rpc.Service - * @constructor - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - */ - function Msg(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } - - (Msg.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Msg; - - /** - * Callback as used by {@link ibc.core.connection.v1.Msg#connectionOpenInit}. - * @memberof ibc.core.connection.v1.Msg - * @typedef ConnectionOpenInitCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.core.connection.v1.MsgConnectionOpenInitResponse} [response] MsgConnectionOpenInitResponse - */ - - /** - * Calls ConnectionOpenInit. - * @function connectionOpenInit - * @memberof ibc.core.connection.v1.Msg - * @instance - * @param {ibc.core.connection.v1.IMsgConnectionOpenInit} request MsgConnectionOpenInit message or plain object - * @param {ibc.core.connection.v1.Msg.ConnectionOpenInitCallback} callback Node-style callback called with the error, if any, and MsgConnectionOpenInitResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Msg.prototype.connectionOpenInit = function connectionOpenInit(request, callback) { - return this.rpcCall(connectionOpenInit, $root.ibc.core.connection.v1.MsgConnectionOpenInit, $root.ibc.core.connection.v1.MsgConnectionOpenInitResponse, request, callback); - }, "name", { value: "ConnectionOpenInit" }); - - /** - * Calls ConnectionOpenInit. - * @function connectionOpenInit - * @memberof ibc.core.connection.v1.Msg - * @instance - * @param {ibc.core.connection.v1.IMsgConnectionOpenInit} request MsgConnectionOpenInit message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link ibc.core.connection.v1.Msg#connectionOpenTry}. - * @memberof ibc.core.connection.v1.Msg - * @typedef ConnectionOpenTryCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.core.connection.v1.MsgConnectionOpenTryResponse} [response] MsgConnectionOpenTryResponse - */ - - /** - * Calls ConnectionOpenTry. - * @function connectionOpenTry - * @memberof ibc.core.connection.v1.Msg - * @instance - * @param {ibc.core.connection.v1.IMsgConnectionOpenTry} request MsgConnectionOpenTry message or plain object - * @param {ibc.core.connection.v1.Msg.ConnectionOpenTryCallback} callback Node-style callback called with the error, if any, and MsgConnectionOpenTryResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Msg.prototype.connectionOpenTry = function connectionOpenTry(request, callback) { - return this.rpcCall(connectionOpenTry, $root.ibc.core.connection.v1.MsgConnectionOpenTry, $root.ibc.core.connection.v1.MsgConnectionOpenTryResponse, request, callback); - }, "name", { value: "ConnectionOpenTry" }); - - /** - * Calls ConnectionOpenTry. - * @function connectionOpenTry - * @memberof ibc.core.connection.v1.Msg - * @instance - * @param {ibc.core.connection.v1.IMsgConnectionOpenTry} request MsgConnectionOpenTry message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link ibc.core.connection.v1.Msg#connectionOpenAck}. - * @memberof ibc.core.connection.v1.Msg - * @typedef ConnectionOpenAckCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.core.connection.v1.MsgConnectionOpenAckResponse} [response] MsgConnectionOpenAckResponse - */ - - /** - * Calls ConnectionOpenAck. - * @function connectionOpenAck - * @memberof ibc.core.connection.v1.Msg - * @instance - * @param {ibc.core.connection.v1.IMsgConnectionOpenAck} request MsgConnectionOpenAck message or plain object - * @param {ibc.core.connection.v1.Msg.ConnectionOpenAckCallback} callback Node-style callback called with the error, if any, and MsgConnectionOpenAckResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Msg.prototype.connectionOpenAck = function connectionOpenAck(request, callback) { - return this.rpcCall(connectionOpenAck, $root.ibc.core.connection.v1.MsgConnectionOpenAck, $root.ibc.core.connection.v1.MsgConnectionOpenAckResponse, request, callback); - }, "name", { value: "ConnectionOpenAck" }); - - /** - * Calls ConnectionOpenAck. - * @function connectionOpenAck - * @memberof ibc.core.connection.v1.Msg - * @instance - * @param {ibc.core.connection.v1.IMsgConnectionOpenAck} request MsgConnectionOpenAck message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link ibc.core.connection.v1.Msg#connectionOpenConfirm}. - * @memberof ibc.core.connection.v1.Msg - * @typedef ConnectionOpenConfirmCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.core.connection.v1.MsgConnectionOpenConfirmResponse} [response] MsgConnectionOpenConfirmResponse - */ - - /** - * Calls ConnectionOpenConfirm. - * @function connectionOpenConfirm - * @memberof ibc.core.connection.v1.Msg - * @instance - * @param {ibc.core.connection.v1.IMsgConnectionOpenConfirm} request MsgConnectionOpenConfirm message or plain object - * @param {ibc.core.connection.v1.Msg.ConnectionOpenConfirmCallback} callback Node-style callback called with the error, if any, and MsgConnectionOpenConfirmResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Msg.prototype.connectionOpenConfirm = function connectionOpenConfirm(request, callback) { - return this.rpcCall(connectionOpenConfirm, $root.ibc.core.connection.v1.MsgConnectionOpenConfirm, $root.ibc.core.connection.v1.MsgConnectionOpenConfirmResponse, request, callback); - }, "name", { value: "ConnectionOpenConfirm" }); - - /** - * Calls ConnectionOpenConfirm. - * @function connectionOpenConfirm - * @memberof ibc.core.connection.v1.Msg - * @instance - * @param {ibc.core.connection.v1.IMsgConnectionOpenConfirm} request MsgConnectionOpenConfirm message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - return Msg; + return QueryConsensusStatesRequest; })(); - v1.MsgConnectionOpenInit = (function() { + v1.QueryConsensusStatesResponse = (function() { /** - * Properties of a MsgConnectionOpenInit. - * @memberof ibc.core.connection.v1 - * @interface IMsgConnectionOpenInit - * @property {string|null} [client_id] MsgConnectionOpenInit client_id - * @property {ibc.core.connection.v1.ICounterparty|null} [counterparty] MsgConnectionOpenInit counterparty - * @property {ibc.core.connection.v1.IVersion|null} [version] MsgConnectionOpenInit version - * @property {Long|null} [delay_period] MsgConnectionOpenInit delay_period - * @property {string|null} [signer] MsgConnectionOpenInit signer + * Properties of a QueryConsensusStatesResponse. + * @memberof ibc.core.client.v1 + * @interface IQueryConsensusStatesResponse + * @property {Array.|null} [consensus_states] QueryConsensusStatesResponse consensus_states + * @property {cosmos.base.query.v1beta1.IPageResponse|null} [pagination] QueryConsensusStatesResponse pagination */ /** - * Constructs a new MsgConnectionOpenInit. - * @memberof ibc.core.connection.v1 - * @classdesc Represents a MsgConnectionOpenInit. - * @implements IMsgConnectionOpenInit + * Constructs a new QueryConsensusStatesResponse. + * @memberof ibc.core.client.v1 + * @classdesc Represents a QueryConsensusStatesResponse. + * @implements IQueryConsensusStatesResponse * @constructor - * @param {ibc.core.connection.v1.IMsgConnectionOpenInit=} [properties] Properties to set + * @param {ibc.core.client.v1.IQueryConsensusStatesResponse=} [properties] Properties to set */ - function MsgConnectionOpenInit(properties) { + function QueryConsensusStatesResponse(properties) { + this.consensus_states = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -57419,115 +64155,79 @@ } /** - * MsgConnectionOpenInit client_id. - * @member {string} client_id - * @memberof ibc.core.connection.v1.MsgConnectionOpenInit - * @instance - */ - MsgConnectionOpenInit.prototype.client_id = ""; - - /** - * MsgConnectionOpenInit counterparty. - * @member {ibc.core.connection.v1.ICounterparty|null|undefined} counterparty - * @memberof ibc.core.connection.v1.MsgConnectionOpenInit - * @instance - */ - MsgConnectionOpenInit.prototype.counterparty = null; - - /** - * MsgConnectionOpenInit version. - * @member {ibc.core.connection.v1.IVersion|null|undefined} version - * @memberof ibc.core.connection.v1.MsgConnectionOpenInit - * @instance - */ - MsgConnectionOpenInit.prototype.version = null; - - /** - * MsgConnectionOpenInit delay_period. - * @member {Long} delay_period - * @memberof ibc.core.connection.v1.MsgConnectionOpenInit + * QueryConsensusStatesResponse consensus_states. + * @member {Array.} consensus_states + * @memberof ibc.core.client.v1.QueryConsensusStatesResponse * @instance */ - MsgConnectionOpenInit.prototype.delay_period = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * MsgConnectionOpenInit signer. - * @member {string} signer - * @memberof ibc.core.connection.v1.MsgConnectionOpenInit + QueryConsensusStatesResponse.prototype.consensus_states = $util.emptyArray; + + /** + * QueryConsensusStatesResponse pagination. + * @member {cosmos.base.query.v1beta1.IPageResponse|null|undefined} pagination + * @memberof ibc.core.client.v1.QueryConsensusStatesResponse * @instance */ - MsgConnectionOpenInit.prototype.signer = ""; + QueryConsensusStatesResponse.prototype.pagination = null; /** - * Encodes the specified MsgConnectionOpenInit message. Does not implicitly {@link ibc.core.connection.v1.MsgConnectionOpenInit.verify|verify} messages. + * Encodes the specified QueryConsensusStatesResponse message. Does not implicitly {@link ibc.core.client.v1.QueryConsensusStatesResponse.verify|verify} messages. * @function encode - * @memberof ibc.core.connection.v1.MsgConnectionOpenInit + * @memberof ibc.core.client.v1.QueryConsensusStatesResponse * @static - * @param {ibc.core.connection.v1.IMsgConnectionOpenInit} message MsgConnectionOpenInit message or plain object to encode + * @param {ibc.core.client.v1.IQueryConsensusStatesResponse} message QueryConsensusStatesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgConnectionOpenInit.encode = function encode(message, writer) { + QueryConsensusStatesResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.client_id != null && Object.hasOwnProperty.call(message, "client_id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.client_id); - if (message.counterparty != null && Object.hasOwnProperty.call(message, "counterparty")) - $root.ibc.core.connection.v1.Counterparty.encode(message.counterparty, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.version != null && Object.hasOwnProperty.call(message, "version")) - $root.ibc.core.connection.v1.Version.encode(message.version, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.delay_period != null && Object.hasOwnProperty.call(message, "delay_period")) - writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.delay_period); - if (message.signer != null && Object.hasOwnProperty.call(message, "signer")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.signer); + if (message.consensus_states != null && message.consensus_states.length) + for (var i = 0; i < message.consensus_states.length; ++i) + $root.ibc.core.client.v1.ConsensusStateWithHeight.encode(message.consensus_states[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.pagination != null && Object.hasOwnProperty.call(message, "pagination")) + $root.cosmos.base.query.v1beta1.PageResponse.encode(message.pagination, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified MsgConnectionOpenInit message, length delimited. Does not implicitly {@link ibc.core.connection.v1.MsgConnectionOpenInit.verify|verify} messages. + * Encodes the specified QueryConsensusStatesResponse message, length delimited. Does not implicitly {@link ibc.core.client.v1.QueryConsensusStatesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.connection.v1.MsgConnectionOpenInit + * @memberof ibc.core.client.v1.QueryConsensusStatesResponse * @static - * @param {ibc.core.connection.v1.IMsgConnectionOpenInit} message MsgConnectionOpenInit message or plain object to encode + * @param {ibc.core.client.v1.IQueryConsensusStatesResponse} message QueryConsensusStatesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgConnectionOpenInit.encodeDelimited = function encodeDelimited(message, writer) { + QueryConsensusStatesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MsgConnectionOpenInit message from the specified reader or buffer. + * Decodes a QueryConsensusStatesResponse message from the specified reader or buffer. * @function decode - * @memberof ibc.core.connection.v1.MsgConnectionOpenInit + * @memberof ibc.core.client.v1.QueryConsensusStatesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.connection.v1.MsgConnectionOpenInit} MsgConnectionOpenInit + * @returns {ibc.core.client.v1.QueryConsensusStatesResponse} QueryConsensusStatesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgConnectionOpenInit.decode = function decode(reader, length) { + QueryConsensusStatesResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.connection.v1.MsgConnectionOpenInit(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.QueryConsensusStatesResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.client_id = reader.string(); + if (!(message.consensus_states && message.consensus_states.length)) + message.consensus_states = []; + message.consensus_states.push($root.ibc.core.client.v1.ConsensusStateWithHeight.decode(reader, reader.uint32())); break; case 2: - message.counterparty = $root.ibc.core.connection.v1.Counterparty.decode(reader, reader.uint32()); - break; - case 3: - message.version = $root.ibc.core.connection.v1.Version.decode(reader, reader.uint32()); - break; - case 4: - message.delay_period = reader.uint64(); - break; - case 5: - message.signer = reader.string(); + message.pagination = $root.cosmos.base.query.v1beta1.PageResponse.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -57538,163 +64238,139 @@ }; /** - * Decodes a MsgConnectionOpenInit message from the specified reader or buffer, length delimited. + * Decodes a QueryConsensusStatesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.connection.v1.MsgConnectionOpenInit + * @memberof ibc.core.client.v1.QueryConsensusStatesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.connection.v1.MsgConnectionOpenInit} MsgConnectionOpenInit + * @returns {ibc.core.client.v1.QueryConsensusStatesResponse} QueryConsensusStatesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgConnectionOpenInit.decodeDelimited = function decodeDelimited(reader) { + QueryConsensusStatesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MsgConnectionOpenInit message. + * Verifies a QueryConsensusStatesResponse message. * @function verify - * @memberof ibc.core.connection.v1.MsgConnectionOpenInit + * @memberof ibc.core.client.v1.QueryConsensusStatesResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MsgConnectionOpenInit.verify = function verify(message) { + QueryConsensusStatesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.client_id != null && message.hasOwnProperty("client_id")) - if (!$util.isString(message.client_id)) - return "client_id: string expected"; - if (message.counterparty != null && message.hasOwnProperty("counterparty")) { - var error = $root.ibc.core.connection.v1.Counterparty.verify(message.counterparty); - if (error) - return "counterparty." + error; + if (message.consensus_states != null && message.hasOwnProperty("consensus_states")) { + if (!Array.isArray(message.consensus_states)) + return "consensus_states: array expected"; + for (var i = 0; i < message.consensus_states.length; ++i) { + var error = $root.ibc.core.client.v1.ConsensusStateWithHeight.verify(message.consensus_states[i]); + if (error) + return "consensus_states." + error; + } } - if (message.version != null && message.hasOwnProperty("version")) { - var error = $root.ibc.core.connection.v1.Version.verify(message.version); + if (message.pagination != null && message.hasOwnProperty("pagination")) { + var error = $root.cosmos.base.query.v1beta1.PageResponse.verify(message.pagination); if (error) - return "version." + error; + return "pagination." + error; } - if (message.delay_period != null && message.hasOwnProperty("delay_period")) - if (!$util.isInteger(message.delay_period) && !(message.delay_period && $util.isInteger(message.delay_period.low) && $util.isInteger(message.delay_period.high))) - return "delay_period: integer|Long expected"; - if (message.signer != null && message.hasOwnProperty("signer")) - if (!$util.isString(message.signer)) - return "signer: string expected"; return null; }; /** - * Creates a MsgConnectionOpenInit message from a plain object. Also converts values to their respective internal types. + * Creates a QueryConsensusStatesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.connection.v1.MsgConnectionOpenInit + * @memberof ibc.core.client.v1.QueryConsensusStatesResponse * @static * @param {Object.} object Plain object - * @returns {ibc.core.connection.v1.MsgConnectionOpenInit} MsgConnectionOpenInit + * @returns {ibc.core.client.v1.QueryConsensusStatesResponse} QueryConsensusStatesResponse */ - MsgConnectionOpenInit.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.connection.v1.MsgConnectionOpenInit) + QueryConsensusStatesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.client.v1.QueryConsensusStatesResponse) return object; - var message = new $root.ibc.core.connection.v1.MsgConnectionOpenInit(); - if (object.client_id != null) - message.client_id = String(object.client_id); - if (object.counterparty != null) { - if (typeof object.counterparty !== "object") - throw TypeError(".ibc.core.connection.v1.MsgConnectionOpenInit.counterparty: object expected"); - message.counterparty = $root.ibc.core.connection.v1.Counterparty.fromObject(object.counterparty); + var message = new $root.ibc.core.client.v1.QueryConsensusStatesResponse(); + if (object.consensus_states) { + if (!Array.isArray(object.consensus_states)) + throw TypeError(".ibc.core.client.v1.QueryConsensusStatesResponse.consensus_states: array expected"); + message.consensus_states = []; + for (var i = 0; i < object.consensus_states.length; ++i) { + if (typeof object.consensus_states[i] !== "object") + throw TypeError(".ibc.core.client.v1.QueryConsensusStatesResponse.consensus_states: object expected"); + message.consensus_states[i] = $root.ibc.core.client.v1.ConsensusStateWithHeight.fromObject(object.consensus_states[i]); + } } - if (object.version != null) { - if (typeof object.version !== "object") - throw TypeError(".ibc.core.connection.v1.MsgConnectionOpenInit.version: object expected"); - message.version = $root.ibc.core.connection.v1.Version.fromObject(object.version); + if (object.pagination != null) { + if (typeof object.pagination !== "object") + throw TypeError(".ibc.core.client.v1.QueryConsensusStatesResponse.pagination: object expected"); + message.pagination = $root.cosmos.base.query.v1beta1.PageResponse.fromObject(object.pagination); } - if (object.delay_period != null) - if ($util.Long) - (message.delay_period = $util.Long.fromValue(object.delay_period)).unsigned = true; - else if (typeof object.delay_period === "string") - message.delay_period = parseInt(object.delay_period, 10); - else if (typeof object.delay_period === "number") - message.delay_period = object.delay_period; - else if (typeof object.delay_period === "object") - message.delay_period = new $util.LongBits(object.delay_period.low >>> 0, object.delay_period.high >>> 0).toNumber(true); - if (object.signer != null) - message.signer = String(object.signer); return message; }; /** - * Creates a plain object from a MsgConnectionOpenInit message. Also converts values to other types if specified. + * Creates a plain object from a QueryConsensusStatesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.connection.v1.MsgConnectionOpenInit + * @memberof ibc.core.client.v1.QueryConsensusStatesResponse * @static - * @param {ibc.core.connection.v1.MsgConnectionOpenInit} message MsgConnectionOpenInit + * @param {ibc.core.client.v1.QueryConsensusStatesResponse} message QueryConsensusStatesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MsgConnectionOpenInit.toObject = function toObject(message, options) { + QueryConsensusStatesResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.client_id = ""; - object.counterparty = null; - object.version = null; - if ($util.Long) { - var long = new $util.Long(0, 0, true); - object.delay_period = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.delay_period = options.longs === String ? "0" : 0; - object.signer = ""; + if (options.arrays || options.defaults) + object.consensus_states = []; + if (options.defaults) + object.pagination = null; + if (message.consensus_states && message.consensus_states.length) { + object.consensus_states = []; + for (var j = 0; j < message.consensus_states.length; ++j) + object.consensus_states[j] = $root.ibc.core.client.v1.ConsensusStateWithHeight.toObject(message.consensus_states[j], options); } - if (message.client_id != null && message.hasOwnProperty("client_id")) - object.client_id = message.client_id; - if (message.counterparty != null && message.hasOwnProperty("counterparty")) - object.counterparty = $root.ibc.core.connection.v1.Counterparty.toObject(message.counterparty, options); - if (message.version != null && message.hasOwnProperty("version")) - object.version = $root.ibc.core.connection.v1.Version.toObject(message.version, options); - if (message.delay_period != null && message.hasOwnProperty("delay_period")) - if (typeof message.delay_period === "number") - object.delay_period = options.longs === String ? String(message.delay_period) : message.delay_period; - else - object.delay_period = options.longs === String ? $util.Long.prototype.toString.call(message.delay_period) : options.longs === Number ? new $util.LongBits(message.delay_period.low >>> 0, message.delay_period.high >>> 0).toNumber(true) : message.delay_period; - if (message.signer != null && message.hasOwnProperty("signer")) - object.signer = message.signer; + if (message.pagination != null && message.hasOwnProperty("pagination")) + object.pagination = $root.cosmos.base.query.v1beta1.PageResponse.toObject(message.pagination, options); return object; }; /** - * Converts this MsgConnectionOpenInit to JSON. + * Converts this QueryConsensusStatesResponse to JSON. * @function toJSON - * @memberof ibc.core.connection.v1.MsgConnectionOpenInit + * @memberof ibc.core.client.v1.QueryConsensusStatesResponse * @instance * @returns {Object.} JSON object */ - MsgConnectionOpenInit.prototype.toJSON = function toJSON() { + QueryConsensusStatesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MsgConnectionOpenInit; + return QueryConsensusStatesResponse; })(); - v1.MsgConnectionOpenInitResponse = (function() { + v1.QueryConsensusStateHeightsRequest = (function() { /** - * Properties of a MsgConnectionOpenInitResponse. - * @memberof ibc.core.connection.v1 - * @interface IMsgConnectionOpenInitResponse + * Properties of a QueryConsensusStateHeightsRequest. + * @memberof ibc.core.client.v1 + * @interface IQueryConsensusStateHeightsRequest + * @property {string|null} [client_id] QueryConsensusStateHeightsRequest client_id + * @property {cosmos.base.query.v1beta1.IPageRequest|null} [pagination] QueryConsensusStateHeightsRequest pagination */ /** - * Constructs a new MsgConnectionOpenInitResponse. - * @memberof ibc.core.connection.v1 - * @classdesc Represents a MsgConnectionOpenInitResponse. - * @implements IMsgConnectionOpenInitResponse + * Constructs a new QueryConsensusStateHeightsRequest. + * @memberof ibc.core.client.v1 + * @classdesc Represents a QueryConsensusStateHeightsRequest. + * @implements IQueryConsensusStateHeightsRequest * @constructor - * @param {ibc.core.connection.v1.IMsgConnectionOpenInitResponse=} [properties] Properties to set + * @param {ibc.core.client.v1.IQueryConsensusStateHeightsRequest=} [properties] Properties to set */ - function MsgConnectionOpenInitResponse(properties) { + function QueryConsensusStateHeightsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -57702,51 +64378,77 @@ } /** - * Encodes the specified MsgConnectionOpenInitResponse message. Does not implicitly {@link ibc.core.connection.v1.MsgConnectionOpenInitResponse.verify|verify} messages. + * QueryConsensusStateHeightsRequest client_id. + * @member {string} client_id + * @memberof ibc.core.client.v1.QueryConsensusStateHeightsRequest + * @instance + */ + QueryConsensusStateHeightsRequest.prototype.client_id = ""; + + /** + * QueryConsensusStateHeightsRequest pagination. + * @member {cosmos.base.query.v1beta1.IPageRequest|null|undefined} pagination + * @memberof ibc.core.client.v1.QueryConsensusStateHeightsRequest + * @instance + */ + QueryConsensusStateHeightsRequest.prototype.pagination = null; + + /** + * Encodes the specified QueryConsensusStateHeightsRequest message. Does not implicitly {@link ibc.core.client.v1.QueryConsensusStateHeightsRequest.verify|verify} messages. * @function encode - * @memberof ibc.core.connection.v1.MsgConnectionOpenInitResponse + * @memberof ibc.core.client.v1.QueryConsensusStateHeightsRequest * @static - * @param {ibc.core.connection.v1.IMsgConnectionOpenInitResponse} message MsgConnectionOpenInitResponse message or plain object to encode + * @param {ibc.core.client.v1.IQueryConsensusStateHeightsRequest} message QueryConsensusStateHeightsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgConnectionOpenInitResponse.encode = function encode(message, writer) { + QueryConsensusStateHeightsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.client_id != null && Object.hasOwnProperty.call(message, "client_id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.client_id); + if (message.pagination != null && Object.hasOwnProperty.call(message, "pagination")) + $root.cosmos.base.query.v1beta1.PageRequest.encode(message.pagination, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified MsgConnectionOpenInitResponse message, length delimited. Does not implicitly {@link ibc.core.connection.v1.MsgConnectionOpenInitResponse.verify|verify} messages. + * Encodes the specified QueryConsensusStateHeightsRequest message, length delimited. Does not implicitly {@link ibc.core.client.v1.QueryConsensusStateHeightsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.connection.v1.MsgConnectionOpenInitResponse + * @memberof ibc.core.client.v1.QueryConsensusStateHeightsRequest * @static - * @param {ibc.core.connection.v1.IMsgConnectionOpenInitResponse} message MsgConnectionOpenInitResponse message or plain object to encode + * @param {ibc.core.client.v1.IQueryConsensusStateHeightsRequest} message QueryConsensusStateHeightsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgConnectionOpenInitResponse.encodeDelimited = function encodeDelimited(message, writer) { + QueryConsensusStateHeightsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MsgConnectionOpenInitResponse message from the specified reader or buffer. + * Decodes a QueryConsensusStateHeightsRequest message from the specified reader or buffer. * @function decode - * @memberof ibc.core.connection.v1.MsgConnectionOpenInitResponse + * @memberof ibc.core.client.v1.QueryConsensusStateHeightsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.connection.v1.MsgConnectionOpenInitResponse} MsgConnectionOpenInitResponse + * @returns {ibc.core.client.v1.QueryConsensusStateHeightsRequest} QueryConsensusStateHeightsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgConnectionOpenInitResponse.decode = function decode(reader, length) { + QueryConsensusStateHeightsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.connection.v1.MsgConnectionOpenInitResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.QueryConsensusStateHeightsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: + message.client_id = reader.string(); + break; + case 2: + message.pagination = $root.cosmos.base.query.v1beta1.PageRequest.decode(reader, reader.uint32()); + break; default: reader.skipType(tag & 7); break; @@ -57756,106 +64458,123 @@ }; /** - * Decodes a MsgConnectionOpenInitResponse message from the specified reader or buffer, length delimited. + * Decodes a QueryConsensusStateHeightsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.connection.v1.MsgConnectionOpenInitResponse + * @memberof ibc.core.client.v1.QueryConsensusStateHeightsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.connection.v1.MsgConnectionOpenInitResponse} MsgConnectionOpenInitResponse + * @returns {ibc.core.client.v1.QueryConsensusStateHeightsRequest} QueryConsensusStateHeightsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgConnectionOpenInitResponse.decodeDelimited = function decodeDelimited(reader) { + QueryConsensusStateHeightsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MsgConnectionOpenInitResponse message. + * Verifies a QueryConsensusStateHeightsRequest message. * @function verify - * @memberof ibc.core.connection.v1.MsgConnectionOpenInitResponse + * @memberof ibc.core.client.v1.QueryConsensusStateHeightsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MsgConnectionOpenInitResponse.verify = function verify(message) { + QueryConsensusStateHeightsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.client_id != null && message.hasOwnProperty("client_id")) + if (!$util.isString(message.client_id)) + return "client_id: string expected"; + if (message.pagination != null && message.hasOwnProperty("pagination")) { + var error = $root.cosmos.base.query.v1beta1.PageRequest.verify(message.pagination); + if (error) + return "pagination." + error; + } return null; }; /** - * Creates a MsgConnectionOpenInitResponse message from a plain object. Also converts values to their respective internal types. + * Creates a QueryConsensusStateHeightsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.connection.v1.MsgConnectionOpenInitResponse + * @memberof ibc.core.client.v1.QueryConsensusStateHeightsRequest * @static * @param {Object.} object Plain object - * @returns {ibc.core.connection.v1.MsgConnectionOpenInitResponse} MsgConnectionOpenInitResponse + * @returns {ibc.core.client.v1.QueryConsensusStateHeightsRequest} QueryConsensusStateHeightsRequest */ - MsgConnectionOpenInitResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.connection.v1.MsgConnectionOpenInitResponse) + QueryConsensusStateHeightsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.client.v1.QueryConsensusStateHeightsRequest) return object; - return new $root.ibc.core.connection.v1.MsgConnectionOpenInitResponse(); + var message = new $root.ibc.core.client.v1.QueryConsensusStateHeightsRequest(); + if (object.client_id != null) + message.client_id = String(object.client_id); + if (object.pagination != null) { + if (typeof object.pagination !== "object") + throw TypeError(".ibc.core.client.v1.QueryConsensusStateHeightsRequest.pagination: object expected"); + message.pagination = $root.cosmos.base.query.v1beta1.PageRequest.fromObject(object.pagination); + } + return message; }; /** - * Creates a plain object from a MsgConnectionOpenInitResponse message. Also converts values to other types if specified. + * Creates a plain object from a QueryConsensusStateHeightsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.connection.v1.MsgConnectionOpenInitResponse + * @memberof ibc.core.client.v1.QueryConsensusStateHeightsRequest * @static - * @param {ibc.core.connection.v1.MsgConnectionOpenInitResponse} message MsgConnectionOpenInitResponse + * @param {ibc.core.client.v1.QueryConsensusStateHeightsRequest} message QueryConsensusStateHeightsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MsgConnectionOpenInitResponse.toObject = function toObject() { - return {}; + QueryConsensusStateHeightsRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.client_id = ""; + object.pagination = null; + } + if (message.client_id != null && message.hasOwnProperty("client_id")) + object.client_id = message.client_id; + if (message.pagination != null && message.hasOwnProperty("pagination")) + object.pagination = $root.cosmos.base.query.v1beta1.PageRequest.toObject(message.pagination, options); + return object; }; /** - * Converts this MsgConnectionOpenInitResponse to JSON. + * Converts this QueryConsensusStateHeightsRequest to JSON. * @function toJSON - * @memberof ibc.core.connection.v1.MsgConnectionOpenInitResponse + * @memberof ibc.core.client.v1.QueryConsensusStateHeightsRequest * @instance * @returns {Object.} JSON object */ - MsgConnectionOpenInitResponse.prototype.toJSON = function toJSON() { + QueryConsensusStateHeightsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MsgConnectionOpenInitResponse; + return QueryConsensusStateHeightsRequest; })(); - v1.MsgConnectionOpenTry = (function() { + v1.QueryConsensusStateHeightsResponse = (function() { /** - * Properties of a MsgConnectionOpenTry. - * @memberof ibc.core.connection.v1 - * @interface IMsgConnectionOpenTry - * @property {string|null} [client_id] MsgConnectionOpenTry client_id - * @property {string|null} [previous_connection_id] MsgConnectionOpenTry previous_connection_id - * @property {google.protobuf.IAny|null} [client_state] MsgConnectionOpenTry client_state - * @property {ibc.core.connection.v1.ICounterparty|null} [counterparty] MsgConnectionOpenTry counterparty - * @property {Long|null} [delay_period] MsgConnectionOpenTry delay_period - * @property {Array.|null} [counterparty_versions] MsgConnectionOpenTry counterparty_versions - * @property {ibc.core.client.v1.IHeight|null} [proof_height] MsgConnectionOpenTry proof_height - * @property {Uint8Array|null} [proof_init] MsgConnectionOpenTry proof_init - * @property {Uint8Array|null} [proof_client] MsgConnectionOpenTry proof_client - * @property {Uint8Array|null} [proof_consensus] MsgConnectionOpenTry proof_consensus - * @property {ibc.core.client.v1.IHeight|null} [consensus_height] MsgConnectionOpenTry consensus_height - * @property {string|null} [signer] MsgConnectionOpenTry signer + * Properties of a QueryConsensusStateHeightsResponse. + * @memberof ibc.core.client.v1 + * @interface IQueryConsensusStateHeightsResponse + * @property {Array.|null} [consensus_state_heights] QueryConsensusStateHeightsResponse consensus_state_heights + * @property {cosmos.base.query.v1beta1.IPageResponse|null} [pagination] QueryConsensusStateHeightsResponse pagination */ /** - * Constructs a new MsgConnectionOpenTry. - * @memberof ibc.core.connection.v1 - * @classdesc Represents a MsgConnectionOpenTry. - * @implements IMsgConnectionOpenTry + * Constructs a new QueryConsensusStateHeightsResponse. + * @memberof ibc.core.client.v1 + * @classdesc Represents a QueryConsensusStateHeightsResponse. + * @implements IQueryConsensusStateHeightsResponse * @constructor - * @param {ibc.core.connection.v1.IMsgConnectionOpenTry=} [properties] Properties to set + * @param {ibc.core.client.v1.IQueryConsensusStateHeightsResponse=} [properties] Properties to set */ - function MsgConnectionOpenTry(properties) { - this.counterparty_versions = []; + function QueryConsensusStateHeightsResponse(properties) { + this.consensus_state_heights = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -57863,209 +64582,79 @@ } /** - * MsgConnectionOpenTry client_id. - * @member {string} client_id - * @memberof ibc.core.connection.v1.MsgConnectionOpenTry - * @instance - */ - MsgConnectionOpenTry.prototype.client_id = ""; - - /** - * MsgConnectionOpenTry previous_connection_id. - * @member {string} previous_connection_id - * @memberof ibc.core.connection.v1.MsgConnectionOpenTry - * @instance - */ - MsgConnectionOpenTry.prototype.previous_connection_id = ""; - - /** - * MsgConnectionOpenTry client_state. - * @member {google.protobuf.IAny|null|undefined} client_state - * @memberof ibc.core.connection.v1.MsgConnectionOpenTry - * @instance - */ - MsgConnectionOpenTry.prototype.client_state = null; - - /** - * MsgConnectionOpenTry counterparty. - * @member {ibc.core.connection.v1.ICounterparty|null|undefined} counterparty - * @memberof ibc.core.connection.v1.MsgConnectionOpenTry - * @instance - */ - MsgConnectionOpenTry.prototype.counterparty = null; - - /** - * MsgConnectionOpenTry delay_period. - * @member {Long} delay_period - * @memberof ibc.core.connection.v1.MsgConnectionOpenTry - * @instance - */ - MsgConnectionOpenTry.prototype.delay_period = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * MsgConnectionOpenTry counterparty_versions. - * @member {Array.} counterparty_versions - * @memberof ibc.core.connection.v1.MsgConnectionOpenTry - * @instance - */ - MsgConnectionOpenTry.prototype.counterparty_versions = $util.emptyArray; - - /** - * MsgConnectionOpenTry proof_height. - * @member {ibc.core.client.v1.IHeight|null|undefined} proof_height - * @memberof ibc.core.connection.v1.MsgConnectionOpenTry - * @instance - */ - MsgConnectionOpenTry.prototype.proof_height = null; - - /** - * MsgConnectionOpenTry proof_init. - * @member {Uint8Array} proof_init - * @memberof ibc.core.connection.v1.MsgConnectionOpenTry - * @instance - */ - MsgConnectionOpenTry.prototype.proof_init = $util.newBuffer([]); - - /** - * MsgConnectionOpenTry proof_client. - * @member {Uint8Array} proof_client - * @memberof ibc.core.connection.v1.MsgConnectionOpenTry - * @instance - */ - MsgConnectionOpenTry.prototype.proof_client = $util.newBuffer([]); - - /** - * MsgConnectionOpenTry proof_consensus. - * @member {Uint8Array} proof_consensus - * @memberof ibc.core.connection.v1.MsgConnectionOpenTry - * @instance - */ - MsgConnectionOpenTry.prototype.proof_consensus = $util.newBuffer([]); - - /** - * MsgConnectionOpenTry consensus_height. - * @member {ibc.core.client.v1.IHeight|null|undefined} consensus_height - * @memberof ibc.core.connection.v1.MsgConnectionOpenTry + * QueryConsensusStateHeightsResponse consensus_state_heights. + * @member {Array.} consensus_state_heights + * @memberof ibc.core.client.v1.QueryConsensusStateHeightsResponse * @instance */ - MsgConnectionOpenTry.prototype.consensus_height = null; + QueryConsensusStateHeightsResponse.prototype.consensus_state_heights = $util.emptyArray; /** - * MsgConnectionOpenTry signer. - * @member {string} signer - * @memberof ibc.core.connection.v1.MsgConnectionOpenTry + * QueryConsensusStateHeightsResponse pagination. + * @member {cosmos.base.query.v1beta1.IPageResponse|null|undefined} pagination + * @memberof ibc.core.client.v1.QueryConsensusStateHeightsResponse * @instance */ - MsgConnectionOpenTry.prototype.signer = ""; + QueryConsensusStateHeightsResponse.prototype.pagination = null; /** - * Encodes the specified MsgConnectionOpenTry message. Does not implicitly {@link ibc.core.connection.v1.MsgConnectionOpenTry.verify|verify} messages. - * @function encode - * @memberof ibc.core.connection.v1.MsgConnectionOpenTry - * @static - * @param {ibc.core.connection.v1.IMsgConnectionOpenTry} message MsgConnectionOpenTry message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MsgConnectionOpenTry.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.client_id != null && Object.hasOwnProperty.call(message, "client_id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.client_id); - if (message.previous_connection_id != null && Object.hasOwnProperty.call(message, "previous_connection_id")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.previous_connection_id); - if (message.client_state != null && Object.hasOwnProperty.call(message, "client_state")) - $root.google.protobuf.Any.encode(message.client_state, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.counterparty != null && Object.hasOwnProperty.call(message, "counterparty")) - $root.ibc.core.connection.v1.Counterparty.encode(message.counterparty, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.delay_period != null && Object.hasOwnProperty.call(message, "delay_period")) - writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.delay_period); - if (message.counterparty_versions != null && message.counterparty_versions.length) - for (var i = 0; i < message.counterparty_versions.length; ++i) - $root.ibc.core.connection.v1.Version.encode(message.counterparty_versions[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.proof_height != null && Object.hasOwnProperty.call(message, "proof_height")) - $root.ibc.core.client.v1.Height.encode(message.proof_height, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.proof_init != null && Object.hasOwnProperty.call(message, "proof_init")) - writer.uint32(/* id 8, wireType 2 =*/66).bytes(message.proof_init); - if (message.proof_client != null && Object.hasOwnProperty.call(message, "proof_client")) - writer.uint32(/* id 9, wireType 2 =*/74).bytes(message.proof_client); - if (message.proof_consensus != null && Object.hasOwnProperty.call(message, "proof_consensus")) - writer.uint32(/* id 10, wireType 2 =*/82).bytes(message.proof_consensus); - if (message.consensus_height != null && Object.hasOwnProperty.call(message, "consensus_height")) - $root.ibc.core.client.v1.Height.encode(message.consensus_height, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); - if (message.signer != null && Object.hasOwnProperty.call(message, "signer")) - writer.uint32(/* id 12, wireType 2 =*/98).string(message.signer); + * Encodes the specified QueryConsensusStateHeightsResponse message. Does not implicitly {@link ibc.core.client.v1.QueryConsensusStateHeightsResponse.verify|verify} messages. + * @function encode + * @memberof ibc.core.client.v1.QueryConsensusStateHeightsResponse + * @static + * @param {ibc.core.client.v1.IQueryConsensusStateHeightsResponse} message QueryConsensusStateHeightsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + QueryConsensusStateHeightsResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.consensus_state_heights != null && message.consensus_state_heights.length) + for (var i = 0; i < message.consensus_state_heights.length; ++i) + $root.ibc.core.client.v1.Height.encode(message.consensus_state_heights[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.pagination != null && Object.hasOwnProperty.call(message, "pagination")) + $root.cosmos.base.query.v1beta1.PageResponse.encode(message.pagination, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified MsgConnectionOpenTry message, length delimited. Does not implicitly {@link ibc.core.connection.v1.MsgConnectionOpenTry.verify|verify} messages. + * Encodes the specified QueryConsensusStateHeightsResponse message, length delimited. Does not implicitly {@link ibc.core.client.v1.QueryConsensusStateHeightsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.connection.v1.MsgConnectionOpenTry + * @memberof ibc.core.client.v1.QueryConsensusStateHeightsResponse * @static - * @param {ibc.core.connection.v1.IMsgConnectionOpenTry} message MsgConnectionOpenTry message or plain object to encode + * @param {ibc.core.client.v1.IQueryConsensusStateHeightsResponse} message QueryConsensusStateHeightsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgConnectionOpenTry.encodeDelimited = function encodeDelimited(message, writer) { + QueryConsensusStateHeightsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MsgConnectionOpenTry message from the specified reader or buffer. + * Decodes a QueryConsensusStateHeightsResponse message from the specified reader or buffer. * @function decode - * @memberof ibc.core.connection.v1.MsgConnectionOpenTry + * @memberof ibc.core.client.v1.QueryConsensusStateHeightsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.connection.v1.MsgConnectionOpenTry} MsgConnectionOpenTry + * @returns {ibc.core.client.v1.QueryConsensusStateHeightsResponse} QueryConsensusStateHeightsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgConnectionOpenTry.decode = function decode(reader, length) { + QueryConsensusStateHeightsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.connection.v1.MsgConnectionOpenTry(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.QueryConsensusStateHeightsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.client_id = reader.string(); + if (!(message.consensus_state_heights && message.consensus_state_heights.length)) + message.consensus_state_heights = []; + message.consensus_state_heights.push($root.ibc.core.client.v1.Height.decode(reader, reader.uint32())); break; case 2: - message.previous_connection_id = reader.string(); - break; - case 3: - message.client_state = $root.google.protobuf.Any.decode(reader, reader.uint32()); - break; - case 4: - message.counterparty = $root.ibc.core.connection.v1.Counterparty.decode(reader, reader.uint32()); - break; - case 5: - message.delay_period = reader.uint64(); - break; - case 6: - if (!(message.counterparty_versions && message.counterparty_versions.length)) - message.counterparty_versions = []; - message.counterparty_versions.push($root.ibc.core.connection.v1.Version.decode(reader, reader.uint32())); - break; - case 7: - message.proof_height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); - break; - case 8: - message.proof_init = reader.bytes(); - break; - case 9: - message.proof_client = reader.bytes(); - break; - case 10: - message.proof_consensus = reader.bytes(); - break; - case 11: - message.consensus_height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); - break; - case 12: - message.signer = reader.string(); + message.pagination = $root.cosmos.base.query.v1beta1.PageResponse.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -58076,274 +64665,138 @@ }; /** - * Decodes a MsgConnectionOpenTry message from the specified reader or buffer, length delimited. + * Decodes a QueryConsensusStateHeightsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.connection.v1.MsgConnectionOpenTry + * @memberof ibc.core.client.v1.QueryConsensusStateHeightsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.connection.v1.MsgConnectionOpenTry} MsgConnectionOpenTry + * @returns {ibc.core.client.v1.QueryConsensusStateHeightsResponse} QueryConsensusStateHeightsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgConnectionOpenTry.decodeDelimited = function decodeDelimited(reader) { + QueryConsensusStateHeightsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MsgConnectionOpenTry message. + * Verifies a QueryConsensusStateHeightsResponse message. * @function verify - * @memberof ibc.core.connection.v1.MsgConnectionOpenTry + * @memberof ibc.core.client.v1.QueryConsensusStateHeightsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MsgConnectionOpenTry.verify = function verify(message) { + QueryConsensusStateHeightsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.client_id != null && message.hasOwnProperty("client_id")) - if (!$util.isString(message.client_id)) - return "client_id: string expected"; - if (message.previous_connection_id != null && message.hasOwnProperty("previous_connection_id")) - if (!$util.isString(message.previous_connection_id)) - return "previous_connection_id: string expected"; - if (message.client_state != null && message.hasOwnProperty("client_state")) { - var error = $root.google.protobuf.Any.verify(message.client_state); - if (error) - return "client_state." + error; - } - if (message.counterparty != null && message.hasOwnProperty("counterparty")) { - var error = $root.ibc.core.connection.v1.Counterparty.verify(message.counterparty); - if (error) - return "counterparty." + error; - } - if (message.delay_period != null && message.hasOwnProperty("delay_period")) - if (!$util.isInteger(message.delay_period) && !(message.delay_period && $util.isInteger(message.delay_period.low) && $util.isInteger(message.delay_period.high))) - return "delay_period: integer|Long expected"; - if (message.counterparty_versions != null && message.hasOwnProperty("counterparty_versions")) { - if (!Array.isArray(message.counterparty_versions)) - return "counterparty_versions: array expected"; - for (var i = 0; i < message.counterparty_versions.length; ++i) { - var error = $root.ibc.core.connection.v1.Version.verify(message.counterparty_versions[i]); + if (message.consensus_state_heights != null && message.hasOwnProperty("consensus_state_heights")) { + if (!Array.isArray(message.consensus_state_heights)) + return "consensus_state_heights: array expected"; + for (var i = 0; i < message.consensus_state_heights.length; ++i) { + var error = $root.ibc.core.client.v1.Height.verify(message.consensus_state_heights[i]); if (error) - return "counterparty_versions." + error; + return "consensus_state_heights." + error; } } - if (message.proof_height != null && message.hasOwnProperty("proof_height")) { - var error = $root.ibc.core.client.v1.Height.verify(message.proof_height); - if (error) - return "proof_height." + error; - } - if (message.proof_init != null && message.hasOwnProperty("proof_init")) - if (!(message.proof_init && typeof message.proof_init.length === "number" || $util.isString(message.proof_init))) - return "proof_init: buffer expected"; - if (message.proof_client != null && message.hasOwnProperty("proof_client")) - if (!(message.proof_client && typeof message.proof_client.length === "number" || $util.isString(message.proof_client))) - return "proof_client: buffer expected"; - if (message.proof_consensus != null && message.hasOwnProperty("proof_consensus")) - if (!(message.proof_consensus && typeof message.proof_consensus.length === "number" || $util.isString(message.proof_consensus))) - return "proof_consensus: buffer expected"; - if (message.consensus_height != null && message.hasOwnProperty("consensus_height")) { - var error = $root.ibc.core.client.v1.Height.verify(message.consensus_height); + if (message.pagination != null && message.hasOwnProperty("pagination")) { + var error = $root.cosmos.base.query.v1beta1.PageResponse.verify(message.pagination); if (error) - return "consensus_height." + error; + return "pagination." + error; } - if (message.signer != null && message.hasOwnProperty("signer")) - if (!$util.isString(message.signer)) - return "signer: string expected"; return null; }; /** - * Creates a MsgConnectionOpenTry message from a plain object. Also converts values to their respective internal types. + * Creates a QueryConsensusStateHeightsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.connection.v1.MsgConnectionOpenTry + * @memberof ibc.core.client.v1.QueryConsensusStateHeightsResponse * @static * @param {Object.} object Plain object - * @returns {ibc.core.connection.v1.MsgConnectionOpenTry} MsgConnectionOpenTry + * @returns {ibc.core.client.v1.QueryConsensusStateHeightsResponse} QueryConsensusStateHeightsResponse */ - MsgConnectionOpenTry.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.connection.v1.MsgConnectionOpenTry) + QueryConsensusStateHeightsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.client.v1.QueryConsensusStateHeightsResponse) return object; - var message = new $root.ibc.core.connection.v1.MsgConnectionOpenTry(); - if (object.client_id != null) - message.client_id = String(object.client_id); - if (object.previous_connection_id != null) - message.previous_connection_id = String(object.previous_connection_id); - if (object.client_state != null) { - if (typeof object.client_state !== "object") - throw TypeError(".ibc.core.connection.v1.MsgConnectionOpenTry.client_state: object expected"); - message.client_state = $root.google.protobuf.Any.fromObject(object.client_state); - } - if (object.counterparty != null) { - if (typeof object.counterparty !== "object") - throw TypeError(".ibc.core.connection.v1.MsgConnectionOpenTry.counterparty: object expected"); - message.counterparty = $root.ibc.core.connection.v1.Counterparty.fromObject(object.counterparty); - } - if (object.delay_period != null) - if ($util.Long) - (message.delay_period = $util.Long.fromValue(object.delay_period)).unsigned = true; - else if (typeof object.delay_period === "string") - message.delay_period = parseInt(object.delay_period, 10); - else if (typeof object.delay_period === "number") - message.delay_period = object.delay_period; - else if (typeof object.delay_period === "object") - message.delay_period = new $util.LongBits(object.delay_period.low >>> 0, object.delay_period.high >>> 0).toNumber(true); - if (object.counterparty_versions) { - if (!Array.isArray(object.counterparty_versions)) - throw TypeError(".ibc.core.connection.v1.MsgConnectionOpenTry.counterparty_versions: array expected"); - message.counterparty_versions = []; - for (var i = 0; i < object.counterparty_versions.length; ++i) { - if (typeof object.counterparty_versions[i] !== "object") - throw TypeError(".ibc.core.connection.v1.MsgConnectionOpenTry.counterparty_versions: object expected"); - message.counterparty_versions[i] = $root.ibc.core.connection.v1.Version.fromObject(object.counterparty_versions[i]); + var message = new $root.ibc.core.client.v1.QueryConsensusStateHeightsResponse(); + if (object.consensus_state_heights) { + if (!Array.isArray(object.consensus_state_heights)) + throw TypeError(".ibc.core.client.v1.QueryConsensusStateHeightsResponse.consensus_state_heights: array expected"); + message.consensus_state_heights = []; + for (var i = 0; i < object.consensus_state_heights.length; ++i) { + if (typeof object.consensus_state_heights[i] !== "object") + throw TypeError(".ibc.core.client.v1.QueryConsensusStateHeightsResponse.consensus_state_heights: object expected"); + message.consensus_state_heights[i] = $root.ibc.core.client.v1.Height.fromObject(object.consensus_state_heights[i]); } } - if (object.proof_height != null) { - if (typeof object.proof_height !== "object") - throw TypeError(".ibc.core.connection.v1.MsgConnectionOpenTry.proof_height: object expected"); - message.proof_height = $root.ibc.core.client.v1.Height.fromObject(object.proof_height); - } - if (object.proof_init != null) - if (typeof object.proof_init === "string") - $util.base64.decode(object.proof_init, message.proof_init = $util.newBuffer($util.base64.length(object.proof_init)), 0); - else if (object.proof_init.length) - message.proof_init = object.proof_init; - if (object.proof_client != null) - if (typeof object.proof_client === "string") - $util.base64.decode(object.proof_client, message.proof_client = $util.newBuffer($util.base64.length(object.proof_client)), 0); - else if (object.proof_client.length) - message.proof_client = object.proof_client; - if (object.proof_consensus != null) - if (typeof object.proof_consensus === "string") - $util.base64.decode(object.proof_consensus, message.proof_consensus = $util.newBuffer($util.base64.length(object.proof_consensus)), 0); - else if (object.proof_consensus.length) - message.proof_consensus = object.proof_consensus; - if (object.consensus_height != null) { - if (typeof object.consensus_height !== "object") - throw TypeError(".ibc.core.connection.v1.MsgConnectionOpenTry.consensus_height: object expected"); - message.consensus_height = $root.ibc.core.client.v1.Height.fromObject(object.consensus_height); + if (object.pagination != null) { + if (typeof object.pagination !== "object") + throw TypeError(".ibc.core.client.v1.QueryConsensusStateHeightsResponse.pagination: object expected"); + message.pagination = $root.cosmos.base.query.v1beta1.PageResponse.fromObject(object.pagination); } - if (object.signer != null) - message.signer = String(object.signer); return message; }; /** - * Creates a plain object from a MsgConnectionOpenTry message. Also converts values to other types if specified. + * Creates a plain object from a QueryConsensusStateHeightsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.connection.v1.MsgConnectionOpenTry + * @memberof ibc.core.client.v1.QueryConsensusStateHeightsResponse * @static - * @param {ibc.core.connection.v1.MsgConnectionOpenTry} message MsgConnectionOpenTry + * @param {ibc.core.client.v1.QueryConsensusStateHeightsResponse} message QueryConsensusStateHeightsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MsgConnectionOpenTry.toObject = function toObject(message, options) { + QueryConsensusStateHeightsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.counterparty_versions = []; - if (options.defaults) { - object.client_id = ""; - object.previous_connection_id = ""; - object.client_state = null; - object.counterparty = null; - if ($util.Long) { - var long = new $util.Long(0, 0, true); - object.delay_period = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.delay_period = options.longs === String ? "0" : 0; - object.proof_height = null; - if (options.bytes === String) - object.proof_init = ""; - else { - object.proof_init = []; - if (options.bytes !== Array) - object.proof_init = $util.newBuffer(object.proof_init); - } - if (options.bytes === String) - object.proof_client = ""; - else { - object.proof_client = []; - if (options.bytes !== Array) - object.proof_client = $util.newBuffer(object.proof_client); - } - if (options.bytes === String) - object.proof_consensus = ""; - else { - object.proof_consensus = []; - if (options.bytes !== Array) - object.proof_consensus = $util.newBuffer(object.proof_consensus); - } - object.consensus_height = null; - object.signer = ""; - } - if (message.client_id != null && message.hasOwnProperty("client_id")) - object.client_id = message.client_id; - if (message.previous_connection_id != null && message.hasOwnProperty("previous_connection_id")) - object.previous_connection_id = message.previous_connection_id; - if (message.client_state != null && message.hasOwnProperty("client_state")) - object.client_state = $root.google.protobuf.Any.toObject(message.client_state, options); - if (message.counterparty != null && message.hasOwnProperty("counterparty")) - object.counterparty = $root.ibc.core.connection.v1.Counterparty.toObject(message.counterparty, options); - if (message.delay_period != null && message.hasOwnProperty("delay_period")) - if (typeof message.delay_period === "number") - object.delay_period = options.longs === String ? String(message.delay_period) : message.delay_period; - else - object.delay_period = options.longs === String ? $util.Long.prototype.toString.call(message.delay_period) : options.longs === Number ? new $util.LongBits(message.delay_period.low >>> 0, message.delay_period.high >>> 0).toNumber(true) : message.delay_period; - if (message.counterparty_versions && message.counterparty_versions.length) { - object.counterparty_versions = []; - for (var j = 0; j < message.counterparty_versions.length; ++j) - object.counterparty_versions[j] = $root.ibc.core.connection.v1.Version.toObject(message.counterparty_versions[j], options); + object.consensus_state_heights = []; + if (options.defaults) + object.pagination = null; + if (message.consensus_state_heights && message.consensus_state_heights.length) { + object.consensus_state_heights = []; + for (var j = 0; j < message.consensus_state_heights.length; ++j) + object.consensus_state_heights[j] = $root.ibc.core.client.v1.Height.toObject(message.consensus_state_heights[j], options); } - if (message.proof_height != null && message.hasOwnProperty("proof_height")) - object.proof_height = $root.ibc.core.client.v1.Height.toObject(message.proof_height, options); - if (message.proof_init != null && message.hasOwnProperty("proof_init")) - object.proof_init = options.bytes === String ? $util.base64.encode(message.proof_init, 0, message.proof_init.length) : options.bytes === Array ? Array.prototype.slice.call(message.proof_init) : message.proof_init; - if (message.proof_client != null && message.hasOwnProperty("proof_client")) - object.proof_client = options.bytes === String ? $util.base64.encode(message.proof_client, 0, message.proof_client.length) : options.bytes === Array ? Array.prototype.slice.call(message.proof_client) : message.proof_client; - if (message.proof_consensus != null && message.hasOwnProperty("proof_consensus")) - object.proof_consensus = options.bytes === String ? $util.base64.encode(message.proof_consensus, 0, message.proof_consensus.length) : options.bytes === Array ? Array.prototype.slice.call(message.proof_consensus) : message.proof_consensus; - if (message.consensus_height != null && message.hasOwnProperty("consensus_height")) - object.consensus_height = $root.ibc.core.client.v1.Height.toObject(message.consensus_height, options); - if (message.signer != null && message.hasOwnProperty("signer")) - object.signer = message.signer; + if (message.pagination != null && message.hasOwnProperty("pagination")) + object.pagination = $root.cosmos.base.query.v1beta1.PageResponse.toObject(message.pagination, options); return object; }; /** - * Converts this MsgConnectionOpenTry to JSON. + * Converts this QueryConsensusStateHeightsResponse to JSON. * @function toJSON - * @memberof ibc.core.connection.v1.MsgConnectionOpenTry + * @memberof ibc.core.client.v1.QueryConsensusStateHeightsResponse * @instance * @returns {Object.} JSON object */ - MsgConnectionOpenTry.prototype.toJSON = function toJSON() { + QueryConsensusStateHeightsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MsgConnectionOpenTry; + return QueryConsensusStateHeightsResponse; })(); - v1.MsgConnectionOpenTryResponse = (function() { + v1.QueryClientStatusRequest = (function() { /** - * Properties of a MsgConnectionOpenTryResponse. - * @memberof ibc.core.connection.v1 - * @interface IMsgConnectionOpenTryResponse + * Properties of a QueryClientStatusRequest. + * @memberof ibc.core.client.v1 + * @interface IQueryClientStatusRequest + * @property {string|null} [client_id] QueryClientStatusRequest client_id */ /** - * Constructs a new MsgConnectionOpenTryResponse. - * @memberof ibc.core.connection.v1 - * @classdesc Represents a MsgConnectionOpenTryResponse. - * @implements IMsgConnectionOpenTryResponse + * Constructs a new QueryClientStatusRequest. + * @memberof ibc.core.client.v1 + * @classdesc Represents a QueryClientStatusRequest. + * @implements IQueryClientStatusRequest * @constructor - * @param {ibc.core.connection.v1.IMsgConnectionOpenTryResponse=} [properties] Properties to set + * @param {ibc.core.client.v1.IQueryClientStatusRequest=} [properties] Properties to set */ - function MsgConnectionOpenTryResponse(properties) { + function QueryClientStatusRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -58351,51 +64804,64 @@ } /** - * Encodes the specified MsgConnectionOpenTryResponse message. Does not implicitly {@link ibc.core.connection.v1.MsgConnectionOpenTryResponse.verify|verify} messages. + * QueryClientStatusRequest client_id. + * @member {string} client_id + * @memberof ibc.core.client.v1.QueryClientStatusRequest + * @instance + */ + QueryClientStatusRequest.prototype.client_id = ""; + + /** + * Encodes the specified QueryClientStatusRequest message. Does not implicitly {@link ibc.core.client.v1.QueryClientStatusRequest.verify|verify} messages. * @function encode - * @memberof ibc.core.connection.v1.MsgConnectionOpenTryResponse + * @memberof ibc.core.client.v1.QueryClientStatusRequest * @static - * @param {ibc.core.connection.v1.IMsgConnectionOpenTryResponse} message MsgConnectionOpenTryResponse message or plain object to encode + * @param {ibc.core.client.v1.IQueryClientStatusRequest} message QueryClientStatusRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgConnectionOpenTryResponse.encode = function encode(message, writer) { + QueryClientStatusRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.client_id != null && Object.hasOwnProperty.call(message, "client_id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.client_id); return writer; }; /** - * Encodes the specified MsgConnectionOpenTryResponse message, length delimited. Does not implicitly {@link ibc.core.connection.v1.MsgConnectionOpenTryResponse.verify|verify} messages. + * Encodes the specified QueryClientStatusRequest message, length delimited. Does not implicitly {@link ibc.core.client.v1.QueryClientStatusRequest.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.connection.v1.MsgConnectionOpenTryResponse + * @memberof ibc.core.client.v1.QueryClientStatusRequest * @static - * @param {ibc.core.connection.v1.IMsgConnectionOpenTryResponse} message MsgConnectionOpenTryResponse message or plain object to encode + * @param {ibc.core.client.v1.IQueryClientStatusRequest} message QueryClientStatusRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgConnectionOpenTryResponse.encodeDelimited = function encodeDelimited(message, writer) { + QueryClientStatusRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MsgConnectionOpenTryResponse message from the specified reader or buffer. + * Decodes a QueryClientStatusRequest message from the specified reader or buffer. * @function decode - * @memberof ibc.core.connection.v1.MsgConnectionOpenTryResponse + * @memberof ibc.core.client.v1.QueryClientStatusRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.connection.v1.MsgConnectionOpenTryResponse} MsgConnectionOpenTryResponse + * @returns {ibc.core.client.v1.QueryClientStatusRequest} QueryClientStatusRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgConnectionOpenTryResponse.decode = function decode(reader, length) { + QueryClientStatusRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.connection.v1.MsgConnectionOpenTryResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.QueryClientStatusRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: + message.client_id = reader.string(); + break; default: reader.skipType(tag & 7); break; @@ -58405,284 +64871,171 @@ }; /** - * Decodes a MsgConnectionOpenTryResponse message from the specified reader or buffer, length delimited. + * Decodes a QueryClientStatusRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.connection.v1.MsgConnectionOpenTryResponse + * @memberof ibc.core.client.v1.QueryClientStatusRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.connection.v1.MsgConnectionOpenTryResponse} MsgConnectionOpenTryResponse + * @returns {ibc.core.client.v1.QueryClientStatusRequest} QueryClientStatusRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgConnectionOpenTryResponse.decodeDelimited = function decodeDelimited(reader) { + QueryClientStatusRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MsgConnectionOpenTryResponse message. + * Verifies a QueryClientStatusRequest message. * @function verify - * @memberof ibc.core.connection.v1.MsgConnectionOpenTryResponse + * @memberof ibc.core.client.v1.QueryClientStatusRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MsgConnectionOpenTryResponse.verify = function verify(message) { + QueryClientStatusRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.client_id != null && message.hasOwnProperty("client_id")) + if (!$util.isString(message.client_id)) + return "client_id: string expected"; return null; }; /** - * Creates a MsgConnectionOpenTryResponse message from a plain object. Also converts values to their respective internal types. + * Creates a QueryClientStatusRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.connection.v1.MsgConnectionOpenTryResponse + * @memberof ibc.core.client.v1.QueryClientStatusRequest * @static * @param {Object.} object Plain object - * @returns {ibc.core.connection.v1.MsgConnectionOpenTryResponse} MsgConnectionOpenTryResponse + * @returns {ibc.core.client.v1.QueryClientStatusRequest} QueryClientStatusRequest */ - MsgConnectionOpenTryResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.connection.v1.MsgConnectionOpenTryResponse) + QueryClientStatusRequest.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.client.v1.QueryClientStatusRequest) return object; - return new $root.ibc.core.connection.v1.MsgConnectionOpenTryResponse(); + var message = new $root.ibc.core.client.v1.QueryClientStatusRequest(); + if (object.client_id != null) + message.client_id = String(object.client_id); + return message; }; /** - * Creates a plain object from a MsgConnectionOpenTryResponse message. Also converts values to other types if specified. + * Creates a plain object from a QueryClientStatusRequest message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.connection.v1.MsgConnectionOpenTryResponse + * @memberof ibc.core.client.v1.QueryClientStatusRequest * @static - * @param {ibc.core.connection.v1.MsgConnectionOpenTryResponse} message MsgConnectionOpenTryResponse + * @param {ibc.core.client.v1.QueryClientStatusRequest} message QueryClientStatusRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MsgConnectionOpenTryResponse.toObject = function toObject() { - return {}; - }; - - /** - * Converts this MsgConnectionOpenTryResponse to JSON. - * @function toJSON - * @memberof ibc.core.connection.v1.MsgConnectionOpenTryResponse - * @instance - * @returns {Object.} JSON object - */ - MsgConnectionOpenTryResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return MsgConnectionOpenTryResponse; - })(); - - v1.MsgConnectionOpenAck = (function() { - - /** - * Properties of a MsgConnectionOpenAck. - * @memberof ibc.core.connection.v1 - * @interface IMsgConnectionOpenAck - * @property {string|null} [connection_id] MsgConnectionOpenAck connection_id - * @property {string|null} [counterparty_connection_id] MsgConnectionOpenAck counterparty_connection_id - * @property {ibc.core.connection.v1.IVersion|null} [version] MsgConnectionOpenAck version - * @property {google.protobuf.IAny|null} [client_state] MsgConnectionOpenAck client_state - * @property {ibc.core.client.v1.IHeight|null} [proof_height] MsgConnectionOpenAck proof_height - * @property {Uint8Array|null} [proof_try] MsgConnectionOpenAck proof_try - * @property {Uint8Array|null} [proof_client] MsgConnectionOpenAck proof_client - * @property {Uint8Array|null} [proof_consensus] MsgConnectionOpenAck proof_consensus - * @property {ibc.core.client.v1.IHeight|null} [consensus_height] MsgConnectionOpenAck consensus_height - * @property {string|null} [signer] MsgConnectionOpenAck signer - */ - - /** - * Constructs a new MsgConnectionOpenAck. - * @memberof ibc.core.connection.v1 - * @classdesc Represents a MsgConnectionOpenAck. - * @implements IMsgConnectionOpenAck - * @constructor - * @param {ibc.core.connection.v1.IMsgConnectionOpenAck=} [properties] Properties to set - */ - function MsgConnectionOpenAck(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * MsgConnectionOpenAck connection_id. - * @member {string} connection_id - * @memberof ibc.core.connection.v1.MsgConnectionOpenAck - * @instance - */ - MsgConnectionOpenAck.prototype.connection_id = ""; - - /** - * MsgConnectionOpenAck counterparty_connection_id. - * @member {string} counterparty_connection_id - * @memberof ibc.core.connection.v1.MsgConnectionOpenAck - * @instance - */ - MsgConnectionOpenAck.prototype.counterparty_connection_id = ""; - - /** - * MsgConnectionOpenAck version. - * @member {ibc.core.connection.v1.IVersion|null|undefined} version - * @memberof ibc.core.connection.v1.MsgConnectionOpenAck - * @instance - */ - MsgConnectionOpenAck.prototype.version = null; - - /** - * MsgConnectionOpenAck client_state. - * @member {google.protobuf.IAny|null|undefined} client_state - * @memberof ibc.core.connection.v1.MsgConnectionOpenAck - * @instance - */ - MsgConnectionOpenAck.prototype.client_state = null; - - /** - * MsgConnectionOpenAck proof_height. - * @member {ibc.core.client.v1.IHeight|null|undefined} proof_height - * @memberof ibc.core.connection.v1.MsgConnectionOpenAck - * @instance - */ - MsgConnectionOpenAck.prototype.proof_height = null; - - /** - * MsgConnectionOpenAck proof_try. - * @member {Uint8Array} proof_try - * @memberof ibc.core.connection.v1.MsgConnectionOpenAck - * @instance - */ - MsgConnectionOpenAck.prototype.proof_try = $util.newBuffer([]); + QueryClientStatusRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.client_id = ""; + if (message.client_id != null && message.hasOwnProperty("client_id")) + object.client_id = message.client_id; + return object; + }; /** - * MsgConnectionOpenAck proof_client. - * @member {Uint8Array} proof_client - * @memberof ibc.core.connection.v1.MsgConnectionOpenAck + * Converts this QueryClientStatusRequest to JSON. + * @function toJSON + * @memberof ibc.core.client.v1.QueryClientStatusRequest * @instance + * @returns {Object.} JSON object */ - MsgConnectionOpenAck.prototype.proof_client = $util.newBuffer([]); + QueryClientStatusRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return QueryClientStatusRequest; + })(); + + v1.QueryClientStatusResponse = (function() { /** - * MsgConnectionOpenAck proof_consensus. - * @member {Uint8Array} proof_consensus - * @memberof ibc.core.connection.v1.MsgConnectionOpenAck - * @instance + * Properties of a QueryClientStatusResponse. + * @memberof ibc.core.client.v1 + * @interface IQueryClientStatusResponse + * @property {string|null} [status] QueryClientStatusResponse status */ - MsgConnectionOpenAck.prototype.proof_consensus = $util.newBuffer([]); /** - * MsgConnectionOpenAck consensus_height. - * @member {ibc.core.client.v1.IHeight|null|undefined} consensus_height - * @memberof ibc.core.connection.v1.MsgConnectionOpenAck - * @instance + * Constructs a new QueryClientStatusResponse. + * @memberof ibc.core.client.v1 + * @classdesc Represents a QueryClientStatusResponse. + * @implements IQueryClientStatusResponse + * @constructor + * @param {ibc.core.client.v1.IQueryClientStatusResponse=} [properties] Properties to set */ - MsgConnectionOpenAck.prototype.consensus_height = null; + function QueryClientStatusResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * MsgConnectionOpenAck signer. - * @member {string} signer - * @memberof ibc.core.connection.v1.MsgConnectionOpenAck + * QueryClientStatusResponse status. + * @member {string} status + * @memberof ibc.core.client.v1.QueryClientStatusResponse * @instance */ - MsgConnectionOpenAck.prototype.signer = ""; + QueryClientStatusResponse.prototype.status = ""; /** - * Encodes the specified MsgConnectionOpenAck message. Does not implicitly {@link ibc.core.connection.v1.MsgConnectionOpenAck.verify|verify} messages. + * Encodes the specified QueryClientStatusResponse message. Does not implicitly {@link ibc.core.client.v1.QueryClientStatusResponse.verify|verify} messages. * @function encode - * @memberof ibc.core.connection.v1.MsgConnectionOpenAck + * @memberof ibc.core.client.v1.QueryClientStatusResponse * @static - * @param {ibc.core.connection.v1.IMsgConnectionOpenAck} message MsgConnectionOpenAck message or plain object to encode + * @param {ibc.core.client.v1.IQueryClientStatusResponse} message QueryClientStatusResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgConnectionOpenAck.encode = function encode(message, writer) { + QueryClientStatusResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.connection_id != null && Object.hasOwnProperty.call(message, "connection_id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.connection_id); - if (message.counterparty_connection_id != null && Object.hasOwnProperty.call(message, "counterparty_connection_id")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.counterparty_connection_id); - if (message.version != null && Object.hasOwnProperty.call(message, "version")) - $root.ibc.core.connection.v1.Version.encode(message.version, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.client_state != null && Object.hasOwnProperty.call(message, "client_state")) - $root.google.protobuf.Any.encode(message.client_state, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.proof_height != null && Object.hasOwnProperty.call(message, "proof_height")) - $root.ibc.core.client.v1.Height.encode(message.proof_height, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.proof_try != null && Object.hasOwnProperty.call(message, "proof_try")) - writer.uint32(/* id 6, wireType 2 =*/50).bytes(message.proof_try); - if (message.proof_client != null && Object.hasOwnProperty.call(message, "proof_client")) - writer.uint32(/* id 7, wireType 2 =*/58).bytes(message.proof_client); - if (message.proof_consensus != null && Object.hasOwnProperty.call(message, "proof_consensus")) - writer.uint32(/* id 8, wireType 2 =*/66).bytes(message.proof_consensus); - if (message.consensus_height != null && Object.hasOwnProperty.call(message, "consensus_height")) - $root.ibc.core.client.v1.Height.encode(message.consensus_height, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - if (message.signer != null && Object.hasOwnProperty.call(message, "signer")) - writer.uint32(/* id 10, wireType 2 =*/82).string(message.signer); + if (message.status != null && Object.hasOwnProperty.call(message, "status")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.status); return writer; }; /** - * Encodes the specified MsgConnectionOpenAck message, length delimited. Does not implicitly {@link ibc.core.connection.v1.MsgConnectionOpenAck.verify|verify} messages. + * Encodes the specified QueryClientStatusResponse message, length delimited. Does not implicitly {@link ibc.core.client.v1.QueryClientStatusResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.connection.v1.MsgConnectionOpenAck + * @memberof ibc.core.client.v1.QueryClientStatusResponse * @static - * @param {ibc.core.connection.v1.IMsgConnectionOpenAck} message MsgConnectionOpenAck message or plain object to encode + * @param {ibc.core.client.v1.IQueryClientStatusResponse} message QueryClientStatusResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgConnectionOpenAck.encodeDelimited = function encodeDelimited(message, writer) { + QueryClientStatusResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MsgConnectionOpenAck message from the specified reader or buffer. + * Decodes a QueryClientStatusResponse message from the specified reader or buffer. * @function decode - * @memberof ibc.core.connection.v1.MsgConnectionOpenAck + * @memberof ibc.core.client.v1.QueryClientStatusResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.connection.v1.MsgConnectionOpenAck} MsgConnectionOpenAck + * @returns {ibc.core.client.v1.QueryClientStatusResponse} QueryClientStatusResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgConnectionOpenAck.decode = function decode(reader, length) { + QueryClientStatusResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.connection.v1.MsgConnectionOpenAck(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.QueryClientStatusResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.connection_id = reader.string(); - break; - case 2: - message.counterparty_connection_id = reader.string(); - break; - case 3: - message.version = $root.ibc.core.connection.v1.Version.decode(reader, reader.uint32()); - break; - case 4: - message.client_state = $root.google.protobuf.Any.decode(reader, reader.uint32()); - break; - case 5: - message.proof_height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); - break; - case 6: - message.proof_try = reader.bytes(); - break; - case 7: - message.proof_client = reader.bytes(); - break; - case 8: - message.proof_consensus = reader.bytes(); - break; - case 9: - message.consensus_height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); - break; - case 10: - message.signer = reader.string(); + message.status = reader.string(); break; default: reader.skipType(tag & 7); @@ -58693,226 +65046,106 @@ }; /** - * Decodes a MsgConnectionOpenAck message from the specified reader or buffer, length delimited. + * Decodes a QueryClientStatusResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.connection.v1.MsgConnectionOpenAck + * @memberof ibc.core.client.v1.QueryClientStatusResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.connection.v1.MsgConnectionOpenAck} MsgConnectionOpenAck + * @returns {ibc.core.client.v1.QueryClientStatusResponse} QueryClientStatusResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgConnectionOpenAck.decodeDelimited = function decodeDelimited(reader) { + QueryClientStatusResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MsgConnectionOpenAck message. + * Verifies a QueryClientStatusResponse message. * @function verify - * @memberof ibc.core.connection.v1.MsgConnectionOpenAck + * @memberof ibc.core.client.v1.QueryClientStatusResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MsgConnectionOpenAck.verify = function verify(message) { + QueryClientStatusResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.connection_id != null && message.hasOwnProperty("connection_id")) - if (!$util.isString(message.connection_id)) - return "connection_id: string expected"; - if (message.counterparty_connection_id != null && message.hasOwnProperty("counterparty_connection_id")) - if (!$util.isString(message.counterparty_connection_id)) - return "counterparty_connection_id: string expected"; - if (message.version != null && message.hasOwnProperty("version")) { - var error = $root.ibc.core.connection.v1.Version.verify(message.version); - if (error) - return "version." + error; - } - if (message.client_state != null && message.hasOwnProperty("client_state")) { - var error = $root.google.protobuf.Any.verify(message.client_state); - if (error) - return "client_state." + error; - } - if (message.proof_height != null && message.hasOwnProperty("proof_height")) { - var error = $root.ibc.core.client.v1.Height.verify(message.proof_height); - if (error) - return "proof_height." + error; - } - if (message.proof_try != null && message.hasOwnProperty("proof_try")) - if (!(message.proof_try && typeof message.proof_try.length === "number" || $util.isString(message.proof_try))) - return "proof_try: buffer expected"; - if (message.proof_client != null && message.hasOwnProperty("proof_client")) - if (!(message.proof_client && typeof message.proof_client.length === "number" || $util.isString(message.proof_client))) - return "proof_client: buffer expected"; - if (message.proof_consensus != null && message.hasOwnProperty("proof_consensus")) - if (!(message.proof_consensus && typeof message.proof_consensus.length === "number" || $util.isString(message.proof_consensus))) - return "proof_consensus: buffer expected"; - if (message.consensus_height != null && message.hasOwnProperty("consensus_height")) { - var error = $root.ibc.core.client.v1.Height.verify(message.consensus_height); - if (error) - return "consensus_height." + error; - } - if (message.signer != null && message.hasOwnProperty("signer")) - if (!$util.isString(message.signer)) - return "signer: string expected"; + if (message.status != null && message.hasOwnProperty("status")) + if (!$util.isString(message.status)) + return "status: string expected"; return null; }; /** - * Creates a MsgConnectionOpenAck message from a plain object. Also converts values to their respective internal types. + * Creates a QueryClientStatusResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.connection.v1.MsgConnectionOpenAck + * @memberof ibc.core.client.v1.QueryClientStatusResponse * @static * @param {Object.} object Plain object - * @returns {ibc.core.connection.v1.MsgConnectionOpenAck} MsgConnectionOpenAck + * @returns {ibc.core.client.v1.QueryClientStatusResponse} QueryClientStatusResponse */ - MsgConnectionOpenAck.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.connection.v1.MsgConnectionOpenAck) + QueryClientStatusResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.client.v1.QueryClientStatusResponse) return object; - var message = new $root.ibc.core.connection.v1.MsgConnectionOpenAck(); - if (object.connection_id != null) - message.connection_id = String(object.connection_id); - if (object.counterparty_connection_id != null) - message.counterparty_connection_id = String(object.counterparty_connection_id); - if (object.version != null) { - if (typeof object.version !== "object") - throw TypeError(".ibc.core.connection.v1.MsgConnectionOpenAck.version: object expected"); - message.version = $root.ibc.core.connection.v1.Version.fromObject(object.version); - } - if (object.client_state != null) { - if (typeof object.client_state !== "object") - throw TypeError(".ibc.core.connection.v1.MsgConnectionOpenAck.client_state: object expected"); - message.client_state = $root.google.protobuf.Any.fromObject(object.client_state); - } - if (object.proof_height != null) { - if (typeof object.proof_height !== "object") - throw TypeError(".ibc.core.connection.v1.MsgConnectionOpenAck.proof_height: object expected"); - message.proof_height = $root.ibc.core.client.v1.Height.fromObject(object.proof_height); - } - if (object.proof_try != null) - if (typeof object.proof_try === "string") - $util.base64.decode(object.proof_try, message.proof_try = $util.newBuffer($util.base64.length(object.proof_try)), 0); - else if (object.proof_try.length) - message.proof_try = object.proof_try; - if (object.proof_client != null) - if (typeof object.proof_client === "string") - $util.base64.decode(object.proof_client, message.proof_client = $util.newBuffer($util.base64.length(object.proof_client)), 0); - else if (object.proof_client.length) - message.proof_client = object.proof_client; - if (object.proof_consensus != null) - if (typeof object.proof_consensus === "string") - $util.base64.decode(object.proof_consensus, message.proof_consensus = $util.newBuffer($util.base64.length(object.proof_consensus)), 0); - else if (object.proof_consensus.length) - message.proof_consensus = object.proof_consensus; - if (object.consensus_height != null) { - if (typeof object.consensus_height !== "object") - throw TypeError(".ibc.core.connection.v1.MsgConnectionOpenAck.consensus_height: object expected"); - message.consensus_height = $root.ibc.core.client.v1.Height.fromObject(object.consensus_height); - } - if (object.signer != null) - message.signer = String(object.signer); + var message = new $root.ibc.core.client.v1.QueryClientStatusResponse(); + if (object.status != null) + message.status = String(object.status); return message; }; /** - * Creates a plain object from a MsgConnectionOpenAck message. Also converts values to other types if specified. + * Creates a plain object from a QueryClientStatusResponse message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.connection.v1.MsgConnectionOpenAck + * @memberof ibc.core.client.v1.QueryClientStatusResponse * @static - * @param {ibc.core.connection.v1.MsgConnectionOpenAck} message MsgConnectionOpenAck + * @param {ibc.core.client.v1.QueryClientStatusResponse} message QueryClientStatusResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MsgConnectionOpenAck.toObject = function toObject(message, options) { + QueryClientStatusResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.connection_id = ""; - object.counterparty_connection_id = ""; - object.version = null; - object.client_state = null; - object.proof_height = null; - if (options.bytes === String) - object.proof_try = ""; - else { - object.proof_try = []; - if (options.bytes !== Array) - object.proof_try = $util.newBuffer(object.proof_try); - } - if (options.bytes === String) - object.proof_client = ""; - else { - object.proof_client = []; - if (options.bytes !== Array) - object.proof_client = $util.newBuffer(object.proof_client); - } - if (options.bytes === String) - object.proof_consensus = ""; - else { - object.proof_consensus = []; - if (options.bytes !== Array) - object.proof_consensus = $util.newBuffer(object.proof_consensus); - } - object.consensus_height = null; - object.signer = ""; - } - if (message.connection_id != null && message.hasOwnProperty("connection_id")) - object.connection_id = message.connection_id; - if (message.counterparty_connection_id != null && message.hasOwnProperty("counterparty_connection_id")) - object.counterparty_connection_id = message.counterparty_connection_id; - if (message.version != null && message.hasOwnProperty("version")) - object.version = $root.ibc.core.connection.v1.Version.toObject(message.version, options); - if (message.client_state != null && message.hasOwnProperty("client_state")) - object.client_state = $root.google.protobuf.Any.toObject(message.client_state, options); - if (message.proof_height != null && message.hasOwnProperty("proof_height")) - object.proof_height = $root.ibc.core.client.v1.Height.toObject(message.proof_height, options); - if (message.proof_try != null && message.hasOwnProperty("proof_try")) - object.proof_try = options.bytes === String ? $util.base64.encode(message.proof_try, 0, message.proof_try.length) : options.bytes === Array ? Array.prototype.slice.call(message.proof_try) : message.proof_try; - if (message.proof_client != null && message.hasOwnProperty("proof_client")) - object.proof_client = options.bytes === String ? $util.base64.encode(message.proof_client, 0, message.proof_client.length) : options.bytes === Array ? Array.prototype.slice.call(message.proof_client) : message.proof_client; - if (message.proof_consensus != null && message.hasOwnProperty("proof_consensus")) - object.proof_consensus = options.bytes === String ? $util.base64.encode(message.proof_consensus, 0, message.proof_consensus.length) : options.bytes === Array ? Array.prototype.slice.call(message.proof_consensus) : message.proof_consensus; - if (message.consensus_height != null && message.hasOwnProperty("consensus_height")) - object.consensus_height = $root.ibc.core.client.v1.Height.toObject(message.consensus_height, options); - if (message.signer != null && message.hasOwnProperty("signer")) - object.signer = message.signer; + if (options.defaults) + object.status = ""; + if (message.status != null && message.hasOwnProperty("status")) + object.status = message.status; return object; }; /** - * Converts this MsgConnectionOpenAck to JSON. + * Converts this QueryClientStatusResponse to JSON. * @function toJSON - * @memberof ibc.core.connection.v1.MsgConnectionOpenAck + * @memberof ibc.core.client.v1.QueryClientStatusResponse * @instance * @returns {Object.} JSON object */ - MsgConnectionOpenAck.prototype.toJSON = function toJSON() { + QueryClientStatusResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MsgConnectionOpenAck; + return QueryClientStatusResponse; })(); - v1.MsgConnectionOpenAckResponse = (function() { + v1.QueryClientParamsRequest = (function() { /** - * Properties of a MsgConnectionOpenAckResponse. - * @memberof ibc.core.connection.v1 - * @interface IMsgConnectionOpenAckResponse + * Properties of a QueryClientParamsRequest. + * @memberof ibc.core.client.v1 + * @interface IQueryClientParamsRequest */ /** - * Constructs a new MsgConnectionOpenAckResponse. - * @memberof ibc.core.connection.v1 - * @classdesc Represents a MsgConnectionOpenAckResponse. - * @implements IMsgConnectionOpenAckResponse + * Constructs a new QueryClientParamsRequest. + * @memberof ibc.core.client.v1 + * @classdesc Represents a QueryClientParamsRequest. + * @implements IQueryClientParamsRequest * @constructor - * @param {ibc.core.connection.v1.IMsgConnectionOpenAckResponse=} [properties] Properties to set + * @param {ibc.core.client.v1.IQueryClientParamsRequest=} [properties] Properties to set */ - function MsgConnectionOpenAckResponse(properties) { + function QueryClientParamsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -58920,48 +65153,48 @@ } /** - * Encodes the specified MsgConnectionOpenAckResponse message. Does not implicitly {@link ibc.core.connection.v1.MsgConnectionOpenAckResponse.verify|verify} messages. + * Encodes the specified QueryClientParamsRequest message. Does not implicitly {@link ibc.core.client.v1.QueryClientParamsRequest.verify|verify} messages. * @function encode - * @memberof ibc.core.connection.v1.MsgConnectionOpenAckResponse + * @memberof ibc.core.client.v1.QueryClientParamsRequest * @static - * @param {ibc.core.connection.v1.IMsgConnectionOpenAckResponse} message MsgConnectionOpenAckResponse message or plain object to encode + * @param {ibc.core.client.v1.IQueryClientParamsRequest} message QueryClientParamsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgConnectionOpenAckResponse.encode = function encode(message, writer) { + QueryClientParamsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); return writer; }; /** - * Encodes the specified MsgConnectionOpenAckResponse message, length delimited. Does not implicitly {@link ibc.core.connection.v1.MsgConnectionOpenAckResponse.verify|verify} messages. + * Encodes the specified QueryClientParamsRequest message, length delimited. Does not implicitly {@link ibc.core.client.v1.QueryClientParamsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.connection.v1.MsgConnectionOpenAckResponse + * @memberof ibc.core.client.v1.QueryClientParamsRequest * @static - * @param {ibc.core.connection.v1.IMsgConnectionOpenAckResponse} message MsgConnectionOpenAckResponse message or plain object to encode + * @param {ibc.core.client.v1.IQueryClientParamsRequest} message QueryClientParamsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgConnectionOpenAckResponse.encodeDelimited = function encodeDelimited(message, writer) { + QueryClientParamsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MsgConnectionOpenAckResponse message from the specified reader or buffer. + * Decodes a QueryClientParamsRequest message from the specified reader or buffer. * @function decode - * @memberof ibc.core.connection.v1.MsgConnectionOpenAckResponse + * @memberof ibc.core.client.v1.QueryClientParamsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.connection.v1.MsgConnectionOpenAckResponse} MsgConnectionOpenAckResponse + * @returns {ibc.core.client.v1.QueryClientParamsRequest} QueryClientParamsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgConnectionOpenAckResponse.decode = function decode(reader, length) { + QueryClientParamsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.connection.v1.MsgConnectionOpenAckResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.QueryClientParamsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -58974,97 +65207,94 @@ }; /** - * Decodes a MsgConnectionOpenAckResponse message from the specified reader or buffer, length delimited. + * Decodes a QueryClientParamsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.connection.v1.MsgConnectionOpenAckResponse + * @memberof ibc.core.client.v1.QueryClientParamsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.connection.v1.MsgConnectionOpenAckResponse} MsgConnectionOpenAckResponse + * @returns {ibc.core.client.v1.QueryClientParamsRequest} QueryClientParamsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgConnectionOpenAckResponse.decodeDelimited = function decodeDelimited(reader) { + QueryClientParamsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MsgConnectionOpenAckResponse message. + * Verifies a QueryClientParamsRequest message. * @function verify - * @memberof ibc.core.connection.v1.MsgConnectionOpenAckResponse + * @memberof ibc.core.client.v1.QueryClientParamsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MsgConnectionOpenAckResponse.verify = function verify(message) { + QueryClientParamsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; return null; }; /** - * Creates a MsgConnectionOpenAckResponse message from a plain object. Also converts values to their respective internal types. + * Creates a QueryClientParamsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.connection.v1.MsgConnectionOpenAckResponse + * @memberof ibc.core.client.v1.QueryClientParamsRequest * @static * @param {Object.} object Plain object - * @returns {ibc.core.connection.v1.MsgConnectionOpenAckResponse} MsgConnectionOpenAckResponse + * @returns {ibc.core.client.v1.QueryClientParamsRequest} QueryClientParamsRequest */ - MsgConnectionOpenAckResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.connection.v1.MsgConnectionOpenAckResponse) + QueryClientParamsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.client.v1.QueryClientParamsRequest) return object; - return new $root.ibc.core.connection.v1.MsgConnectionOpenAckResponse(); + return new $root.ibc.core.client.v1.QueryClientParamsRequest(); }; /** - * Creates a plain object from a MsgConnectionOpenAckResponse message. Also converts values to other types if specified. + * Creates a plain object from a QueryClientParamsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.connection.v1.MsgConnectionOpenAckResponse + * @memberof ibc.core.client.v1.QueryClientParamsRequest * @static - * @param {ibc.core.connection.v1.MsgConnectionOpenAckResponse} message MsgConnectionOpenAckResponse + * @param {ibc.core.client.v1.QueryClientParamsRequest} message QueryClientParamsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MsgConnectionOpenAckResponse.toObject = function toObject() { + QueryClientParamsRequest.toObject = function toObject() { return {}; }; /** - * Converts this MsgConnectionOpenAckResponse to JSON. + * Converts this QueryClientParamsRequest to JSON. * @function toJSON - * @memberof ibc.core.connection.v1.MsgConnectionOpenAckResponse + * @memberof ibc.core.client.v1.QueryClientParamsRequest * @instance * @returns {Object.} JSON object */ - MsgConnectionOpenAckResponse.prototype.toJSON = function toJSON() { + QueryClientParamsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MsgConnectionOpenAckResponse; + return QueryClientParamsRequest; })(); - v1.MsgConnectionOpenConfirm = (function() { + v1.QueryClientParamsResponse = (function() { /** - * Properties of a MsgConnectionOpenConfirm. - * @memberof ibc.core.connection.v1 - * @interface IMsgConnectionOpenConfirm - * @property {string|null} [connection_id] MsgConnectionOpenConfirm connection_id - * @property {Uint8Array|null} [proof_ack] MsgConnectionOpenConfirm proof_ack - * @property {ibc.core.client.v1.IHeight|null} [proof_height] MsgConnectionOpenConfirm proof_height - * @property {string|null} [signer] MsgConnectionOpenConfirm signer + * Properties of a QueryClientParamsResponse. + * @memberof ibc.core.client.v1 + * @interface IQueryClientParamsResponse + * @property {ibc.core.client.v1.IParams|null} [params] QueryClientParamsResponse params */ /** - * Constructs a new MsgConnectionOpenConfirm. - * @memberof ibc.core.connection.v1 - * @classdesc Represents a MsgConnectionOpenConfirm. - * @implements IMsgConnectionOpenConfirm + * Constructs a new QueryClientParamsResponse. + * @memberof ibc.core.client.v1 + * @classdesc Represents a QueryClientParamsResponse. + * @implements IQueryClientParamsResponse * @constructor - * @param {ibc.core.connection.v1.IMsgConnectionOpenConfirm=} [properties] Properties to set + * @param {ibc.core.client.v1.IQueryClientParamsResponse=} [properties] Properties to set */ - function MsgConnectionOpenConfirm(properties) { + function QueryClientParamsResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -59072,102 +65302,63 @@ } /** - * MsgConnectionOpenConfirm connection_id. - * @member {string} connection_id - * @memberof ibc.core.connection.v1.MsgConnectionOpenConfirm - * @instance - */ - MsgConnectionOpenConfirm.prototype.connection_id = ""; - - /** - * MsgConnectionOpenConfirm proof_ack. - * @member {Uint8Array} proof_ack - * @memberof ibc.core.connection.v1.MsgConnectionOpenConfirm - * @instance - */ - MsgConnectionOpenConfirm.prototype.proof_ack = $util.newBuffer([]); - - /** - * MsgConnectionOpenConfirm proof_height. - * @member {ibc.core.client.v1.IHeight|null|undefined} proof_height - * @memberof ibc.core.connection.v1.MsgConnectionOpenConfirm - * @instance - */ - MsgConnectionOpenConfirm.prototype.proof_height = null; - - /** - * MsgConnectionOpenConfirm signer. - * @member {string} signer - * @memberof ibc.core.connection.v1.MsgConnectionOpenConfirm + * QueryClientParamsResponse params. + * @member {ibc.core.client.v1.IParams|null|undefined} params + * @memberof ibc.core.client.v1.QueryClientParamsResponse * @instance */ - MsgConnectionOpenConfirm.prototype.signer = ""; + QueryClientParamsResponse.prototype.params = null; /** - * Encodes the specified MsgConnectionOpenConfirm message. Does not implicitly {@link ibc.core.connection.v1.MsgConnectionOpenConfirm.verify|verify} messages. + * Encodes the specified QueryClientParamsResponse message. Does not implicitly {@link ibc.core.client.v1.QueryClientParamsResponse.verify|verify} messages. * @function encode - * @memberof ibc.core.connection.v1.MsgConnectionOpenConfirm + * @memberof ibc.core.client.v1.QueryClientParamsResponse * @static - * @param {ibc.core.connection.v1.IMsgConnectionOpenConfirm} message MsgConnectionOpenConfirm message or plain object to encode + * @param {ibc.core.client.v1.IQueryClientParamsResponse} message QueryClientParamsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgConnectionOpenConfirm.encode = function encode(message, writer) { + QueryClientParamsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.connection_id != null && Object.hasOwnProperty.call(message, "connection_id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.connection_id); - if (message.proof_ack != null && Object.hasOwnProperty.call(message, "proof_ack")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.proof_ack); - if (message.proof_height != null && Object.hasOwnProperty.call(message, "proof_height")) - $root.ibc.core.client.v1.Height.encode(message.proof_height, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.signer != null && Object.hasOwnProperty.call(message, "signer")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.signer); + if (message.params != null && Object.hasOwnProperty.call(message, "params")) + $root.ibc.core.client.v1.Params.encode(message.params, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified MsgConnectionOpenConfirm message, length delimited. Does not implicitly {@link ibc.core.connection.v1.MsgConnectionOpenConfirm.verify|verify} messages. + * Encodes the specified QueryClientParamsResponse message, length delimited. Does not implicitly {@link ibc.core.client.v1.QueryClientParamsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.connection.v1.MsgConnectionOpenConfirm + * @memberof ibc.core.client.v1.QueryClientParamsResponse * @static - * @param {ibc.core.connection.v1.IMsgConnectionOpenConfirm} message MsgConnectionOpenConfirm message or plain object to encode + * @param {ibc.core.client.v1.IQueryClientParamsResponse} message QueryClientParamsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgConnectionOpenConfirm.encodeDelimited = function encodeDelimited(message, writer) { + QueryClientParamsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MsgConnectionOpenConfirm message from the specified reader or buffer. + * Decodes a QueryClientParamsResponse message from the specified reader or buffer. * @function decode - * @memberof ibc.core.connection.v1.MsgConnectionOpenConfirm + * @memberof ibc.core.client.v1.QueryClientParamsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.connection.v1.MsgConnectionOpenConfirm} MsgConnectionOpenConfirm + * @returns {ibc.core.client.v1.QueryClientParamsResponse} QueryClientParamsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgConnectionOpenConfirm.decode = function decode(reader, length) { + QueryClientParamsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.connection.v1.MsgConnectionOpenConfirm(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.QueryClientParamsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.connection_id = reader.string(); - break; - case 2: - message.proof_ack = reader.bytes(); - break; - case 3: - message.proof_height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); - break; - case 4: - message.signer = reader.string(); + message.params = $root.ibc.core.client.v1.Params.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -59178,145 +65369,111 @@ }; /** - * Decodes a MsgConnectionOpenConfirm message from the specified reader or buffer, length delimited. + * Decodes a QueryClientParamsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.connection.v1.MsgConnectionOpenConfirm + * @memberof ibc.core.client.v1.QueryClientParamsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.connection.v1.MsgConnectionOpenConfirm} MsgConnectionOpenConfirm + * @returns {ibc.core.client.v1.QueryClientParamsResponse} QueryClientParamsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgConnectionOpenConfirm.decodeDelimited = function decodeDelimited(reader) { + QueryClientParamsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MsgConnectionOpenConfirm message. + * Verifies a QueryClientParamsResponse message. * @function verify - * @memberof ibc.core.connection.v1.MsgConnectionOpenConfirm + * @memberof ibc.core.client.v1.QueryClientParamsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MsgConnectionOpenConfirm.verify = function verify(message) { + QueryClientParamsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.connection_id != null && message.hasOwnProperty("connection_id")) - if (!$util.isString(message.connection_id)) - return "connection_id: string expected"; - if (message.proof_ack != null && message.hasOwnProperty("proof_ack")) - if (!(message.proof_ack && typeof message.proof_ack.length === "number" || $util.isString(message.proof_ack))) - return "proof_ack: buffer expected"; - if (message.proof_height != null && message.hasOwnProperty("proof_height")) { - var error = $root.ibc.core.client.v1.Height.verify(message.proof_height); + if (message.params != null && message.hasOwnProperty("params")) { + var error = $root.ibc.core.client.v1.Params.verify(message.params); if (error) - return "proof_height." + error; + return "params." + error; } - if (message.signer != null && message.hasOwnProperty("signer")) - if (!$util.isString(message.signer)) - return "signer: string expected"; return null; }; /** - * Creates a MsgConnectionOpenConfirm message from a plain object. Also converts values to their respective internal types. + * Creates a QueryClientParamsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.connection.v1.MsgConnectionOpenConfirm + * @memberof ibc.core.client.v1.QueryClientParamsResponse * @static * @param {Object.} object Plain object - * @returns {ibc.core.connection.v1.MsgConnectionOpenConfirm} MsgConnectionOpenConfirm + * @returns {ibc.core.client.v1.QueryClientParamsResponse} QueryClientParamsResponse */ - MsgConnectionOpenConfirm.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.connection.v1.MsgConnectionOpenConfirm) + QueryClientParamsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.client.v1.QueryClientParamsResponse) return object; - var message = new $root.ibc.core.connection.v1.MsgConnectionOpenConfirm(); - if (object.connection_id != null) - message.connection_id = String(object.connection_id); - if (object.proof_ack != null) - if (typeof object.proof_ack === "string") - $util.base64.decode(object.proof_ack, message.proof_ack = $util.newBuffer($util.base64.length(object.proof_ack)), 0); - else if (object.proof_ack.length) - message.proof_ack = object.proof_ack; - if (object.proof_height != null) { - if (typeof object.proof_height !== "object") - throw TypeError(".ibc.core.connection.v1.MsgConnectionOpenConfirm.proof_height: object expected"); - message.proof_height = $root.ibc.core.client.v1.Height.fromObject(object.proof_height); + var message = new $root.ibc.core.client.v1.QueryClientParamsResponse(); + if (object.params != null) { + if (typeof object.params !== "object") + throw TypeError(".ibc.core.client.v1.QueryClientParamsResponse.params: object expected"); + message.params = $root.ibc.core.client.v1.Params.fromObject(object.params); } - if (object.signer != null) - message.signer = String(object.signer); return message; }; /** - * Creates a plain object from a MsgConnectionOpenConfirm message. Also converts values to other types if specified. + * Creates a plain object from a QueryClientParamsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.connection.v1.MsgConnectionOpenConfirm + * @memberof ibc.core.client.v1.QueryClientParamsResponse * @static - * @param {ibc.core.connection.v1.MsgConnectionOpenConfirm} message MsgConnectionOpenConfirm + * @param {ibc.core.client.v1.QueryClientParamsResponse} message QueryClientParamsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MsgConnectionOpenConfirm.toObject = function toObject(message, options) { + QueryClientParamsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.connection_id = ""; - if (options.bytes === String) - object.proof_ack = ""; - else { - object.proof_ack = []; - if (options.bytes !== Array) - object.proof_ack = $util.newBuffer(object.proof_ack); - } - object.proof_height = null; - object.signer = ""; - } - if (message.connection_id != null && message.hasOwnProperty("connection_id")) - object.connection_id = message.connection_id; - if (message.proof_ack != null && message.hasOwnProperty("proof_ack")) - object.proof_ack = options.bytes === String ? $util.base64.encode(message.proof_ack, 0, message.proof_ack.length) : options.bytes === Array ? Array.prototype.slice.call(message.proof_ack) : message.proof_ack; - if (message.proof_height != null && message.hasOwnProperty("proof_height")) - object.proof_height = $root.ibc.core.client.v1.Height.toObject(message.proof_height, options); - if (message.signer != null && message.hasOwnProperty("signer")) - object.signer = message.signer; + if (options.defaults) + object.params = null; + if (message.params != null && message.hasOwnProperty("params")) + object.params = $root.ibc.core.client.v1.Params.toObject(message.params, options); return object; }; /** - * Converts this MsgConnectionOpenConfirm to JSON. + * Converts this QueryClientParamsResponse to JSON. * @function toJSON - * @memberof ibc.core.connection.v1.MsgConnectionOpenConfirm + * @memberof ibc.core.client.v1.QueryClientParamsResponse * @instance * @returns {Object.} JSON object */ - MsgConnectionOpenConfirm.prototype.toJSON = function toJSON() { + QueryClientParamsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MsgConnectionOpenConfirm; + return QueryClientParamsResponse; })(); - v1.MsgConnectionOpenConfirmResponse = (function() { + v1.QueryUpgradedClientStateRequest = (function() { /** - * Properties of a MsgConnectionOpenConfirmResponse. - * @memberof ibc.core.connection.v1 - * @interface IMsgConnectionOpenConfirmResponse + * Properties of a QueryUpgradedClientStateRequest. + * @memberof ibc.core.client.v1 + * @interface IQueryUpgradedClientStateRequest */ /** - * Constructs a new MsgConnectionOpenConfirmResponse. - * @memberof ibc.core.connection.v1 - * @classdesc Represents a MsgConnectionOpenConfirmResponse. - * @implements IMsgConnectionOpenConfirmResponse + * Constructs a new QueryUpgradedClientStateRequest. + * @memberof ibc.core.client.v1 + * @classdesc Represents a QueryUpgradedClientStateRequest. + * @implements IQueryUpgradedClientStateRequest * @constructor - * @param {ibc.core.connection.v1.IMsgConnectionOpenConfirmResponse=} [properties] Properties to set + * @param {ibc.core.client.v1.IQueryUpgradedClientStateRequest=} [properties] Properties to set */ - function MsgConnectionOpenConfirmResponse(properties) { + function QueryUpgradedClientStateRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -59324,48 +65481,48 @@ } /** - * Encodes the specified MsgConnectionOpenConfirmResponse message. Does not implicitly {@link ibc.core.connection.v1.MsgConnectionOpenConfirmResponse.verify|verify} messages. + * Encodes the specified QueryUpgradedClientStateRequest message. Does not implicitly {@link ibc.core.client.v1.QueryUpgradedClientStateRequest.verify|verify} messages. * @function encode - * @memberof ibc.core.connection.v1.MsgConnectionOpenConfirmResponse + * @memberof ibc.core.client.v1.QueryUpgradedClientStateRequest * @static - * @param {ibc.core.connection.v1.IMsgConnectionOpenConfirmResponse} message MsgConnectionOpenConfirmResponse message or plain object to encode + * @param {ibc.core.client.v1.IQueryUpgradedClientStateRequest} message QueryUpgradedClientStateRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgConnectionOpenConfirmResponse.encode = function encode(message, writer) { + QueryUpgradedClientStateRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); return writer; }; /** - * Encodes the specified MsgConnectionOpenConfirmResponse message, length delimited. Does not implicitly {@link ibc.core.connection.v1.MsgConnectionOpenConfirmResponse.verify|verify} messages. + * Encodes the specified QueryUpgradedClientStateRequest message, length delimited. Does not implicitly {@link ibc.core.client.v1.QueryUpgradedClientStateRequest.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.connection.v1.MsgConnectionOpenConfirmResponse + * @memberof ibc.core.client.v1.QueryUpgradedClientStateRequest * @static - * @param {ibc.core.connection.v1.IMsgConnectionOpenConfirmResponse} message MsgConnectionOpenConfirmResponse message or plain object to encode + * @param {ibc.core.client.v1.IQueryUpgradedClientStateRequest} message QueryUpgradedClientStateRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgConnectionOpenConfirmResponse.encodeDelimited = function encodeDelimited(message, writer) { + QueryUpgradedClientStateRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MsgConnectionOpenConfirmResponse message from the specified reader or buffer. + * Decodes a QueryUpgradedClientStateRequest message from the specified reader or buffer. * @function decode - * @memberof ibc.core.connection.v1.MsgConnectionOpenConfirmResponse + * @memberof ibc.core.client.v1.QueryUpgradedClientStateRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.connection.v1.MsgConnectionOpenConfirmResponse} MsgConnectionOpenConfirmResponse + * @returns {ibc.core.client.v1.QueryUpgradedClientStateRequest} QueryUpgradedClientStateRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgConnectionOpenConfirmResponse.decode = function decode(reader, length) { + QueryUpgradedClientStateRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.connection.v1.MsgConnectionOpenConfirmResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.QueryUpgradedClientStateRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -59378,99 +65535,94 @@ }; /** - * Decodes a MsgConnectionOpenConfirmResponse message from the specified reader or buffer, length delimited. + * Decodes a QueryUpgradedClientStateRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.connection.v1.MsgConnectionOpenConfirmResponse + * @memberof ibc.core.client.v1.QueryUpgradedClientStateRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.connection.v1.MsgConnectionOpenConfirmResponse} MsgConnectionOpenConfirmResponse + * @returns {ibc.core.client.v1.QueryUpgradedClientStateRequest} QueryUpgradedClientStateRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgConnectionOpenConfirmResponse.decodeDelimited = function decodeDelimited(reader) { + QueryUpgradedClientStateRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MsgConnectionOpenConfirmResponse message. + * Verifies a QueryUpgradedClientStateRequest message. * @function verify - * @memberof ibc.core.connection.v1.MsgConnectionOpenConfirmResponse + * @memberof ibc.core.client.v1.QueryUpgradedClientStateRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MsgConnectionOpenConfirmResponse.verify = function verify(message) { + QueryUpgradedClientStateRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; return null; }; /** - * Creates a MsgConnectionOpenConfirmResponse message from a plain object. Also converts values to their respective internal types. + * Creates a QueryUpgradedClientStateRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.connection.v1.MsgConnectionOpenConfirmResponse + * @memberof ibc.core.client.v1.QueryUpgradedClientStateRequest * @static * @param {Object.} object Plain object - * @returns {ibc.core.connection.v1.MsgConnectionOpenConfirmResponse} MsgConnectionOpenConfirmResponse + * @returns {ibc.core.client.v1.QueryUpgradedClientStateRequest} QueryUpgradedClientStateRequest */ - MsgConnectionOpenConfirmResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.connection.v1.MsgConnectionOpenConfirmResponse) + QueryUpgradedClientStateRequest.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.client.v1.QueryUpgradedClientStateRequest) return object; - return new $root.ibc.core.connection.v1.MsgConnectionOpenConfirmResponse(); + return new $root.ibc.core.client.v1.QueryUpgradedClientStateRequest(); }; /** - * Creates a plain object from a MsgConnectionOpenConfirmResponse message. Also converts values to other types if specified. + * Creates a plain object from a QueryUpgradedClientStateRequest message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.connection.v1.MsgConnectionOpenConfirmResponse + * @memberof ibc.core.client.v1.QueryUpgradedClientStateRequest * @static - * @param {ibc.core.connection.v1.MsgConnectionOpenConfirmResponse} message MsgConnectionOpenConfirmResponse + * @param {ibc.core.client.v1.QueryUpgradedClientStateRequest} message QueryUpgradedClientStateRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MsgConnectionOpenConfirmResponse.toObject = function toObject() { + QueryUpgradedClientStateRequest.toObject = function toObject() { return {}; }; /** - * Converts this MsgConnectionOpenConfirmResponse to JSON. + * Converts this QueryUpgradedClientStateRequest to JSON. * @function toJSON - * @memberof ibc.core.connection.v1.MsgConnectionOpenConfirmResponse + * @memberof ibc.core.client.v1.QueryUpgradedClientStateRequest * @instance * @returns {Object.} JSON object */ - MsgConnectionOpenConfirmResponse.prototype.toJSON = function toJSON() { + QueryUpgradedClientStateRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MsgConnectionOpenConfirmResponse; + return QueryUpgradedClientStateRequest; })(); - v1.ConnectionEnd = (function() { + v1.QueryUpgradedClientStateResponse = (function() { /** - * Properties of a ConnectionEnd. - * @memberof ibc.core.connection.v1 - * @interface IConnectionEnd - * @property {string|null} [client_id] ConnectionEnd client_id - * @property {Array.|null} [versions] ConnectionEnd versions - * @property {ibc.core.connection.v1.State|null} [state] ConnectionEnd state - * @property {ibc.core.connection.v1.ICounterparty|null} [counterparty] ConnectionEnd counterparty - * @property {Long|null} [delay_period] ConnectionEnd delay_period + * Properties of a QueryUpgradedClientStateResponse. + * @memberof ibc.core.client.v1 + * @interface IQueryUpgradedClientStateResponse + * @property {google.protobuf.IAny|null} [upgraded_client_state] QueryUpgradedClientStateResponse upgraded_client_state */ /** - * Constructs a new ConnectionEnd. - * @memberof ibc.core.connection.v1 - * @classdesc Represents a ConnectionEnd. - * @implements IConnectionEnd + * Constructs a new QueryUpgradedClientStateResponse. + * @memberof ibc.core.client.v1 + * @classdesc Represents a QueryUpgradedClientStateResponse. + * @implements IQueryUpgradedClientStateResponse * @constructor - * @param {ibc.core.connection.v1.IConnectionEnd=} [properties] Properties to set + * @param {ibc.core.client.v1.IQueryUpgradedClientStateResponse=} [properties] Properties to set */ - function ConnectionEnd(properties) { - this.versions = []; + function QueryUpgradedClientStateResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -59478,118 +65630,63 @@ } /** - * ConnectionEnd client_id. - * @member {string} client_id - * @memberof ibc.core.connection.v1.ConnectionEnd - * @instance - */ - ConnectionEnd.prototype.client_id = ""; - - /** - * ConnectionEnd versions. - * @member {Array.} versions - * @memberof ibc.core.connection.v1.ConnectionEnd - * @instance - */ - ConnectionEnd.prototype.versions = $util.emptyArray; - - /** - * ConnectionEnd state. - * @member {ibc.core.connection.v1.State} state - * @memberof ibc.core.connection.v1.ConnectionEnd - * @instance - */ - ConnectionEnd.prototype.state = 0; - - /** - * ConnectionEnd counterparty. - * @member {ibc.core.connection.v1.ICounterparty|null|undefined} counterparty - * @memberof ibc.core.connection.v1.ConnectionEnd - * @instance - */ - ConnectionEnd.prototype.counterparty = null; - - /** - * ConnectionEnd delay_period. - * @member {Long} delay_period - * @memberof ibc.core.connection.v1.ConnectionEnd + * QueryUpgradedClientStateResponse upgraded_client_state. + * @member {google.protobuf.IAny|null|undefined} upgraded_client_state + * @memberof ibc.core.client.v1.QueryUpgradedClientStateResponse * @instance */ - ConnectionEnd.prototype.delay_period = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + QueryUpgradedClientStateResponse.prototype.upgraded_client_state = null; /** - * Encodes the specified ConnectionEnd message. Does not implicitly {@link ibc.core.connection.v1.ConnectionEnd.verify|verify} messages. + * Encodes the specified QueryUpgradedClientStateResponse message. Does not implicitly {@link ibc.core.client.v1.QueryUpgradedClientStateResponse.verify|verify} messages. * @function encode - * @memberof ibc.core.connection.v1.ConnectionEnd + * @memberof ibc.core.client.v1.QueryUpgradedClientStateResponse * @static - * @param {ibc.core.connection.v1.IConnectionEnd} message ConnectionEnd message or plain object to encode + * @param {ibc.core.client.v1.IQueryUpgradedClientStateResponse} message QueryUpgradedClientStateResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ConnectionEnd.encode = function encode(message, writer) { + QueryUpgradedClientStateResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.client_id != null && Object.hasOwnProperty.call(message, "client_id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.client_id); - if (message.versions != null && message.versions.length) - for (var i = 0; i < message.versions.length; ++i) - $root.ibc.core.connection.v1.Version.encode(message.versions[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.state != null && Object.hasOwnProperty.call(message, "state")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.state); - if (message.counterparty != null && Object.hasOwnProperty.call(message, "counterparty")) - $root.ibc.core.connection.v1.Counterparty.encode(message.counterparty, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.delay_period != null && Object.hasOwnProperty.call(message, "delay_period")) - writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.delay_period); + if (message.upgraded_client_state != null && Object.hasOwnProperty.call(message, "upgraded_client_state")) + $root.google.protobuf.Any.encode(message.upgraded_client_state, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified ConnectionEnd message, length delimited. Does not implicitly {@link ibc.core.connection.v1.ConnectionEnd.verify|verify} messages. + * Encodes the specified QueryUpgradedClientStateResponse message, length delimited. Does not implicitly {@link ibc.core.client.v1.QueryUpgradedClientStateResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.connection.v1.ConnectionEnd + * @memberof ibc.core.client.v1.QueryUpgradedClientStateResponse * @static - * @param {ibc.core.connection.v1.IConnectionEnd} message ConnectionEnd message or plain object to encode + * @param {ibc.core.client.v1.IQueryUpgradedClientStateResponse} message QueryUpgradedClientStateResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ConnectionEnd.encodeDelimited = function encodeDelimited(message, writer) { + QueryUpgradedClientStateResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ConnectionEnd message from the specified reader or buffer. + * Decodes a QueryUpgradedClientStateResponse message from the specified reader or buffer. * @function decode - * @memberof ibc.core.connection.v1.ConnectionEnd + * @memberof ibc.core.client.v1.QueryUpgradedClientStateResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.connection.v1.ConnectionEnd} ConnectionEnd + * @returns {ibc.core.client.v1.QueryUpgradedClientStateResponse} QueryUpgradedClientStateResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ConnectionEnd.decode = function decode(reader, length) { + QueryUpgradedClientStateResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.connection.v1.ConnectionEnd(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.QueryUpgradedClientStateResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.client_id = reader.string(); - break; - case 2: - if (!(message.versions && message.versions.length)) - message.versions = []; - message.versions.push($root.ibc.core.connection.v1.Version.decode(reader, reader.uint32())); - break; - case 3: - message.state = reader.int32(); - break; - case 4: - message.counterparty = $root.ibc.core.connection.v1.Counterparty.decode(reader, reader.uint32()); - break; - case 5: - message.delay_period = reader.uint64(); + message.upgraded_client_state = $root.google.protobuf.Any.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -59600,339 +65697,163 @@ }; /** - * Decodes a ConnectionEnd message from the specified reader or buffer, length delimited. + * Decodes a QueryUpgradedClientStateResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.connection.v1.ConnectionEnd + * @memberof ibc.core.client.v1.QueryUpgradedClientStateResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.connection.v1.ConnectionEnd} ConnectionEnd + * @returns {ibc.core.client.v1.QueryUpgradedClientStateResponse} QueryUpgradedClientStateResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ConnectionEnd.decodeDelimited = function decodeDelimited(reader) { + QueryUpgradedClientStateResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ConnectionEnd message. + * Verifies a QueryUpgradedClientStateResponse message. * @function verify - * @memberof ibc.core.connection.v1.ConnectionEnd + * @memberof ibc.core.client.v1.QueryUpgradedClientStateResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ConnectionEnd.verify = function verify(message) { + QueryUpgradedClientStateResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.client_id != null && message.hasOwnProperty("client_id")) - if (!$util.isString(message.client_id)) - return "client_id: string expected"; - if (message.versions != null && message.hasOwnProperty("versions")) { - if (!Array.isArray(message.versions)) - return "versions: array expected"; - for (var i = 0; i < message.versions.length; ++i) { - var error = $root.ibc.core.connection.v1.Version.verify(message.versions[i]); - if (error) - return "versions." + error; - } - } - if (message.state != null && message.hasOwnProperty("state")) - switch (message.state) { - default: - return "state: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - if (message.counterparty != null && message.hasOwnProperty("counterparty")) { - var error = $root.ibc.core.connection.v1.Counterparty.verify(message.counterparty); + if (message.upgraded_client_state != null && message.hasOwnProperty("upgraded_client_state")) { + var error = $root.google.protobuf.Any.verify(message.upgraded_client_state); if (error) - return "counterparty." + error; + return "upgraded_client_state." + error; } - if (message.delay_period != null && message.hasOwnProperty("delay_period")) - if (!$util.isInteger(message.delay_period) && !(message.delay_period && $util.isInteger(message.delay_period.low) && $util.isInteger(message.delay_period.high))) - return "delay_period: integer|Long expected"; return null; }; /** - * Creates a ConnectionEnd message from a plain object. Also converts values to their respective internal types. + * Creates a QueryUpgradedClientStateResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.connection.v1.ConnectionEnd + * @memberof ibc.core.client.v1.QueryUpgradedClientStateResponse * @static * @param {Object.} object Plain object - * @returns {ibc.core.connection.v1.ConnectionEnd} ConnectionEnd + * @returns {ibc.core.client.v1.QueryUpgradedClientStateResponse} QueryUpgradedClientStateResponse */ - ConnectionEnd.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.connection.v1.ConnectionEnd) + QueryUpgradedClientStateResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.client.v1.QueryUpgradedClientStateResponse) return object; - var message = new $root.ibc.core.connection.v1.ConnectionEnd(); - if (object.client_id != null) - message.client_id = String(object.client_id); - if (object.versions) { - if (!Array.isArray(object.versions)) - throw TypeError(".ibc.core.connection.v1.ConnectionEnd.versions: array expected"); - message.versions = []; - for (var i = 0; i < object.versions.length; ++i) { - if (typeof object.versions[i] !== "object") - throw TypeError(".ibc.core.connection.v1.ConnectionEnd.versions: object expected"); - message.versions[i] = $root.ibc.core.connection.v1.Version.fromObject(object.versions[i]); - } - } - switch (object.state) { - case "STATE_UNINITIALIZED_UNSPECIFIED": - case 0: - message.state = 0; - break; - case "STATE_INIT": - case 1: - message.state = 1; - break; - case "STATE_TRYOPEN": - case 2: - message.state = 2; - break; - case "STATE_OPEN": - case 3: - message.state = 3; - break; - } - if (object.counterparty != null) { - if (typeof object.counterparty !== "object") - throw TypeError(".ibc.core.connection.v1.ConnectionEnd.counterparty: object expected"); - message.counterparty = $root.ibc.core.connection.v1.Counterparty.fromObject(object.counterparty); + var message = new $root.ibc.core.client.v1.QueryUpgradedClientStateResponse(); + if (object.upgraded_client_state != null) { + if (typeof object.upgraded_client_state !== "object") + throw TypeError(".ibc.core.client.v1.QueryUpgradedClientStateResponse.upgraded_client_state: object expected"); + message.upgraded_client_state = $root.google.protobuf.Any.fromObject(object.upgraded_client_state); } - if (object.delay_period != null) - if ($util.Long) - (message.delay_period = $util.Long.fromValue(object.delay_period)).unsigned = true; - else if (typeof object.delay_period === "string") - message.delay_period = parseInt(object.delay_period, 10); - else if (typeof object.delay_period === "number") - message.delay_period = object.delay_period; - else if (typeof object.delay_period === "object") - message.delay_period = new $util.LongBits(object.delay_period.low >>> 0, object.delay_period.high >>> 0).toNumber(true); return message; }; /** - * Creates a plain object from a ConnectionEnd message. Also converts values to other types if specified. + * Creates a plain object from a QueryUpgradedClientStateResponse message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.connection.v1.ConnectionEnd + * @memberof ibc.core.client.v1.QueryUpgradedClientStateResponse * @static - * @param {ibc.core.connection.v1.ConnectionEnd} message ConnectionEnd + * @param {ibc.core.client.v1.QueryUpgradedClientStateResponse} message QueryUpgradedClientStateResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ConnectionEnd.toObject = function toObject(message, options) { + QueryUpgradedClientStateResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.versions = []; - if (options.defaults) { - object.client_id = ""; - object.state = options.enums === String ? "STATE_UNINITIALIZED_UNSPECIFIED" : 0; - object.counterparty = null; - if ($util.Long) { - var long = new $util.Long(0, 0, true); - object.delay_period = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.delay_period = options.longs === String ? "0" : 0; - } - if (message.client_id != null && message.hasOwnProperty("client_id")) - object.client_id = message.client_id; - if (message.versions && message.versions.length) { - object.versions = []; - for (var j = 0; j < message.versions.length; ++j) - object.versions[j] = $root.ibc.core.connection.v1.Version.toObject(message.versions[j], options); - } - if (message.state != null && message.hasOwnProperty("state")) - object.state = options.enums === String ? $root.ibc.core.connection.v1.State[message.state] : message.state; - if (message.counterparty != null && message.hasOwnProperty("counterparty")) - object.counterparty = $root.ibc.core.connection.v1.Counterparty.toObject(message.counterparty, options); - if (message.delay_period != null && message.hasOwnProperty("delay_period")) - if (typeof message.delay_period === "number") - object.delay_period = options.longs === String ? String(message.delay_period) : message.delay_period; - else - object.delay_period = options.longs === String ? $util.Long.prototype.toString.call(message.delay_period) : options.longs === Number ? new $util.LongBits(message.delay_period.low >>> 0, message.delay_period.high >>> 0).toNumber(true) : message.delay_period; - return object; - }; - - /** - * Converts this ConnectionEnd to JSON. - * @function toJSON - * @memberof ibc.core.connection.v1.ConnectionEnd - * @instance - * @returns {Object.} JSON object - */ - ConnectionEnd.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ConnectionEnd; - })(); - - v1.IdentifiedConnection = (function() { - - /** - * Properties of an IdentifiedConnection. - * @memberof ibc.core.connection.v1 - * @interface IIdentifiedConnection - * @property {string|null} [id] IdentifiedConnection id - * @property {string|null} [client_id] IdentifiedConnection client_id - * @property {Array.|null} [versions] IdentifiedConnection versions - * @property {ibc.core.connection.v1.State|null} [state] IdentifiedConnection state - * @property {ibc.core.connection.v1.ICounterparty|null} [counterparty] IdentifiedConnection counterparty - * @property {Long|null} [delay_period] IdentifiedConnection delay_period - */ - - /** - * Constructs a new IdentifiedConnection. - * @memberof ibc.core.connection.v1 - * @classdesc Represents an IdentifiedConnection. - * @implements IIdentifiedConnection - * @constructor - * @param {ibc.core.connection.v1.IIdentifiedConnection=} [properties] Properties to set - */ - function IdentifiedConnection(properties) { - this.versions = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * IdentifiedConnection id. - * @member {string} id - * @memberof ibc.core.connection.v1.IdentifiedConnection - * @instance - */ - IdentifiedConnection.prototype.id = ""; - - /** - * IdentifiedConnection client_id. - * @member {string} client_id - * @memberof ibc.core.connection.v1.IdentifiedConnection - * @instance - */ - IdentifiedConnection.prototype.client_id = ""; - - /** - * IdentifiedConnection versions. - * @member {Array.} versions - * @memberof ibc.core.connection.v1.IdentifiedConnection - * @instance - */ - IdentifiedConnection.prototype.versions = $util.emptyArray; + if (options.defaults) + object.upgraded_client_state = null; + if (message.upgraded_client_state != null && message.hasOwnProperty("upgraded_client_state")) + object.upgraded_client_state = $root.google.protobuf.Any.toObject(message.upgraded_client_state, options); + return object; + }; /** - * IdentifiedConnection state. - * @member {ibc.core.connection.v1.State} state - * @memberof ibc.core.connection.v1.IdentifiedConnection + * Converts this QueryUpgradedClientStateResponse to JSON. + * @function toJSON + * @memberof ibc.core.client.v1.QueryUpgradedClientStateResponse * @instance + * @returns {Object.} JSON object */ - IdentifiedConnection.prototype.state = 0; + QueryUpgradedClientStateResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return QueryUpgradedClientStateResponse; + })(); + + v1.QueryUpgradedConsensusStateRequest = (function() { /** - * IdentifiedConnection counterparty. - * @member {ibc.core.connection.v1.ICounterparty|null|undefined} counterparty - * @memberof ibc.core.connection.v1.IdentifiedConnection - * @instance + * Properties of a QueryUpgradedConsensusStateRequest. + * @memberof ibc.core.client.v1 + * @interface IQueryUpgradedConsensusStateRequest */ - IdentifiedConnection.prototype.counterparty = null; /** - * IdentifiedConnection delay_period. - * @member {Long} delay_period - * @memberof ibc.core.connection.v1.IdentifiedConnection - * @instance + * Constructs a new QueryUpgradedConsensusStateRequest. + * @memberof ibc.core.client.v1 + * @classdesc Represents a QueryUpgradedConsensusStateRequest. + * @implements IQueryUpgradedConsensusStateRequest + * @constructor + * @param {ibc.core.client.v1.IQueryUpgradedConsensusStateRequest=} [properties] Properties to set */ - IdentifiedConnection.prototype.delay_period = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + function QueryUpgradedConsensusStateRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * Encodes the specified IdentifiedConnection message. Does not implicitly {@link ibc.core.connection.v1.IdentifiedConnection.verify|verify} messages. + * Encodes the specified QueryUpgradedConsensusStateRequest message. Does not implicitly {@link ibc.core.client.v1.QueryUpgradedConsensusStateRequest.verify|verify} messages. * @function encode - * @memberof ibc.core.connection.v1.IdentifiedConnection + * @memberof ibc.core.client.v1.QueryUpgradedConsensusStateRequest * @static - * @param {ibc.core.connection.v1.IIdentifiedConnection} message IdentifiedConnection message or plain object to encode + * @param {ibc.core.client.v1.IQueryUpgradedConsensusStateRequest} message QueryUpgradedConsensusStateRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - IdentifiedConnection.encode = function encode(message, writer) { + QueryUpgradedConsensusStateRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.id != null && Object.hasOwnProperty.call(message, "id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.id); - if (message.client_id != null && Object.hasOwnProperty.call(message, "client_id")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.client_id); - if (message.versions != null && message.versions.length) - for (var i = 0; i < message.versions.length; ++i) - $root.ibc.core.connection.v1.Version.encode(message.versions[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.state != null && Object.hasOwnProperty.call(message, "state")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.state); - if (message.counterparty != null && Object.hasOwnProperty.call(message, "counterparty")) - $root.ibc.core.connection.v1.Counterparty.encode(message.counterparty, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.delay_period != null && Object.hasOwnProperty.call(message, "delay_period")) - writer.uint32(/* id 6, wireType 0 =*/48).uint64(message.delay_period); return writer; }; /** - * Encodes the specified IdentifiedConnection message, length delimited. Does not implicitly {@link ibc.core.connection.v1.IdentifiedConnection.verify|verify} messages. + * Encodes the specified QueryUpgradedConsensusStateRequest message, length delimited. Does not implicitly {@link ibc.core.client.v1.QueryUpgradedConsensusStateRequest.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.connection.v1.IdentifiedConnection + * @memberof ibc.core.client.v1.QueryUpgradedConsensusStateRequest * @static - * @param {ibc.core.connection.v1.IIdentifiedConnection} message IdentifiedConnection message or plain object to encode + * @param {ibc.core.client.v1.IQueryUpgradedConsensusStateRequest} message QueryUpgradedConsensusStateRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - IdentifiedConnection.encodeDelimited = function encodeDelimited(message, writer) { + QueryUpgradedConsensusStateRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an IdentifiedConnection message from the specified reader or buffer. + * Decodes a QueryUpgradedConsensusStateRequest message from the specified reader or buffer. * @function decode - * @memberof ibc.core.connection.v1.IdentifiedConnection + * @memberof ibc.core.client.v1.QueryUpgradedConsensusStateRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.connection.v1.IdentifiedConnection} IdentifiedConnection + * @returns {ibc.core.client.v1.QueryUpgradedConsensusStateRequest} QueryUpgradedConsensusStateRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - IdentifiedConnection.decode = function decode(reader, length) { + QueryUpgradedConsensusStateRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.connection.v1.IdentifiedConnection(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.QueryUpgradedConsensusStateRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.id = reader.string(); - break; - case 2: - message.client_id = reader.string(); - break; - case 3: - if (!(message.versions && message.versions.length)) - message.versions = []; - message.versions.push($root.ibc.core.connection.v1.Version.decode(reader, reader.uint32())); - break; - case 4: - message.state = reader.int32(); - break; - case 5: - message.counterparty = $root.ibc.core.connection.v1.Counterparty.decode(reader, reader.uint32()); - break; - case 6: - message.delay_period = reader.uint64(); - break; default: reader.skipType(tag & 7); break; @@ -59942,228 +65863,94 @@ }; /** - * Decodes an IdentifiedConnection message from the specified reader or buffer, length delimited. + * Decodes a QueryUpgradedConsensusStateRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.connection.v1.IdentifiedConnection + * @memberof ibc.core.client.v1.QueryUpgradedConsensusStateRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.connection.v1.IdentifiedConnection} IdentifiedConnection + * @returns {ibc.core.client.v1.QueryUpgradedConsensusStateRequest} QueryUpgradedConsensusStateRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - IdentifiedConnection.decodeDelimited = function decodeDelimited(reader) { + QueryUpgradedConsensusStateRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an IdentifiedConnection message. + * Verifies a QueryUpgradedConsensusStateRequest message. * @function verify - * @memberof ibc.core.connection.v1.IdentifiedConnection + * @memberof ibc.core.client.v1.QueryUpgradedConsensusStateRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - IdentifiedConnection.verify = function verify(message) { + QueryUpgradedConsensusStateRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) - if (!$util.isString(message.id)) - return "id: string expected"; - if (message.client_id != null && message.hasOwnProperty("client_id")) - if (!$util.isString(message.client_id)) - return "client_id: string expected"; - if (message.versions != null && message.hasOwnProperty("versions")) { - if (!Array.isArray(message.versions)) - return "versions: array expected"; - for (var i = 0; i < message.versions.length; ++i) { - var error = $root.ibc.core.connection.v1.Version.verify(message.versions[i]); - if (error) - return "versions." + error; - } - } - if (message.state != null && message.hasOwnProperty("state")) - switch (message.state) { - default: - return "state: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - if (message.counterparty != null && message.hasOwnProperty("counterparty")) { - var error = $root.ibc.core.connection.v1.Counterparty.verify(message.counterparty); - if (error) - return "counterparty." + error; - } - if (message.delay_period != null && message.hasOwnProperty("delay_period")) - if (!$util.isInteger(message.delay_period) && !(message.delay_period && $util.isInteger(message.delay_period.low) && $util.isInteger(message.delay_period.high))) - return "delay_period: integer|Long expected"; return null; }; /** - * Creates an IdentifiedConnection message from a plain object. Also converts values to their respective internal types. + * Creates a QueryUpgradedConsensusStateRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.connection.v1.IdentifiedConnection + * @memberof ibc.core.client.v1.QueryUpgradedConsensusStateRequest * @static * @param {Object.} object Plain object - * @returns {ibc.core.connection.v1.IdentifiedConnection} IdentifiedConnection + * @returns {ibc.core.client.v1.QueryUpgradedConsensusStateRequest} QueryUpgradedConsensusStateRequest */ - IdentifiedConnection.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.connection.v1.IdentifiedConnection) + QueryUpgradedConsensusStateRequest.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.client.v1.QueryUpgradedConsensusStateRequest) return object; - var message = new $root.ibc.core.connection.v1.IdentifiedConnection(); - if (object.id != null) - message.id = String(object.id); - if (object.client_id != null) - message.client_id = String(object.client_id); - if (object.versions) { - if (!Array.isArray(object.versions)) - throw TypeError(".ibc.core.connection.v1.IdentifiedConnection.versions: array expected"); - message.versions = []; - for (var i = 0; i < object.versions.length; ++i) { - if (typeof object.versions[i] !== "object") - throw TypeError(".ibc.core.connection.v1.IdentifiedConnection.versions: object expected"); - message.versions[i] = $root.ibc.core.connection.v1.Version.fromObject(object.versions[i]); - } - } - switch (object.state) { - case "STATE_UNINITIALIZED_UNSPECIFIED": - case 0: - message.state = 0; - break; - case "STATE_INIT": - case 1: - message.state = 1; - break; - case "STATE_TRYOPEN": - case 2: - message.state = 2; - break; - case "STATE_OPEN": - case 3: - message.state = 3; - break; - } - if (object.counterparty != null) { - if (typeof object.counterparty !== "object") - throw TypeError(".ibc.core.connection.v1.IdentifiedConnection.counterparty: object expected"); - message.counterparty = $root.ibc.core.connection.v1.Counterparty.fromObject(object.counterparty); - } - if (object.delay_period != null) - if ($util.Long) - (message.delay_period = $util.Long.fromValue(object.delay_period)).unsigned = true; - else if (typeof object.delay_period === "string") - message.delay_period = parseInt(object.delay_period, 10); - else if (typeof object.delay_period === "number") - message.delay_period = object.delay_period; - else if (typeof object.delay_period === "object") - message.delay_period = new $util.LongBits(object.delay_period.low >>> 0, object.delay_period.high >>> 0).toNumber(true); - return message; + return new $root.ibc.core.client.v1.QueryUpgradedConsensusStateRequest(); }; /** - * Creates a plain object from an IdentifiedConnection message. Also converts values to other types if specified. + * Creates a plain object from a QueryUpgradedConsensusStateRequest message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.connection.v1.IdentifiedConnection + * @memberof ibc.core.client.v1.QueryUpgradedConsensusStateRequest * @static - * @param {ibc.core.connection.v1.IdentifiedConnection} message IdentifiedConnection + * @param {ibc.core.client.v1.QueryUpgradedConsensusStateRequest} message QueryUpgradedConsensusStateRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - IdentifiedConnection.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.versions = []; - if (options.defaults) { - object.id = ""; - object.client_id = ""; - object.state = options.enums === String ? "STATE_UNINITIALIZED_UNSPECIFIED" : 0; - object.counterparty = null; - if ($util.Long) { - var long = new $util.Long(0, 0, true); - object.delay_period = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.delay_period = options.longs === String ? "0" : 0; - } - if (message.id != null && message.hasOwnProperty("id")) - object.id = message.id; - if (message.client_id != null && message.hasOwnProperty("client_id")) - object.client_id = message.client_id; - if (message.versions && message.versions.length) { - object.versions = []; - for (var j = 0; j < message.versions.length; ++j) - object.versions[j] = $root.ibc.core.connection.v1.Version.toObject(message.versions[j], options); - } - if (message.state != null && message.hasOwnProperty("state")) - object.state = options.enums === String ? $root.ibc.core.connection.v1.State[message.state] : message.state; - if (message.counterparty != null && message.hasOwnProperty("counterparty")) - object.counterparty = $root.ibc.core.connection.v1.Counterparty.toObject(message.counterparty, options); - if (message.delay_period != null && message.hasOwnProperty("delay_period")) - if (typeof message.delay_period === "number") - object.delay_period = options.longs === String ? String(message.delay_period) : message.delay_period; - else - object.delay_period = options.longs === String ? $util.Long.prototype.toString.call(message.delay_period) : options.longs === Number ? new $util.LongBits(message.delay_period.low >>> 0, message.delay_period.high >>> 0).toNumber(true) : message.delay_period; - return object; + QueryUpgradedConsensusStateRequest.toObject = function toObject() { + return {}; }; /** - * Converts this IdentifiedConnection to JSON. + * Converts this QueryUpgradedConsensusStateRequest to JSON. * @function toJSON - * @memberof ibc.core.connection.v1.IdentifiedConnection + * @memberof ibc.core.client.v1.QueryUpgradedConsensusStateRequest * @instance * @returns {Object.} JSON object */ - IdentifiedConnection.prototype.toJSON = function toJSON() { + QueryUpgradedConsensusStateRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return IdentifiedConnection; - })(); - - /** - * State enum. - * @name ibc.core.connection.v1.State - * @enum {number} - * @property {number} STATE_UNINITIALIZED_UNSPECIFIED=0 STATE_UNINITIALIZED_UNSPECIFIED value - * @property {number} STATE_INIT=1 STATE_INIT value - * @property {number} STATE_TRYOPEN=2 STATE_TRYOPEN value - * @property {number} STATE_OPEN=3 STATE_OPEN value - */ - v1.State = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "STATE_UNINITIALIZED_UNSPECIFIED"] = 0; - values[valuesById[1] = "STATE_INIT"] = 1; - values[valuesById[2] = "STATE_TRYOPEN"] = 2; - values[valuesById[3] = "STATE_OPEN"] = 3; - return values; + return QueryUpgradedConsensusStateRequest; })(); - v1.Counterparty = (function() { + v1.QueryUpgradedConsensusStateResponse = (function() { /** - * Properties of a Counterparty. - * @memberof ibc.core.connection.v1 - * @interface ICounterparty - * @property {string|null} [client_id] Counterparty client_id - * @property {string|null} [connection_id] Counterparty connection_id - * @property {ibc.core.commitment.v1.IMerklePrefix|null} [prefix] Counterparty prefix + * Properties of a QueryUpgradedConsensusStateResponse. + * @memberof ibc.core.client.v1 + * @interface IQueryUpgradedConsensusStateResponse + * @property {google.protobuf.IAny|null} [upgraded_consensus_state] QueryUpgradedConsensusStateResponse upgraded_consensus_state */ /** - * Constructs a new Counterparty. - * @memberof ibc.core.connection.v1 - * @classdesc Represents a Counterparty. - * @implements ICounterparty + * Constructs a new QueryUpgradedConsensusStateResponse. + * @memberof ibc.core.client.v1 + * @classdesc Represents a QueryUpgradedConsensusStateResponse. + * @implements IQueryUpgradedConsensusStateResponse * @constructor - * @param {ibc.core.connection.v1.ICounterparty=} [properties] Properties to set + * @param {ibc.core.client.v1.IQueryUpgradedConsensusStateResponse=} [properties] Properties to set */ - function Counterparty(properties) { + function QueryUpgradedConsensusStateResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -60171,89 +65958,63 @@ } /** - * Counterparty client_id. - * @member {string} client_id - * @memberof ibc.core.connection.v1.Counterparty - * @instance - */ - Counterparty.prototype.client_id = ""; - - /** - * Counterparty connection_id. - * @member {string} connection_id - * @memberof ibc.core.connection.v1.Counterparty - * @instance - */ - Counterparty.prototype.connection_id = ""; - - /** - * Counterparty prefix. - * @member {ibc.core.commitment.v1.IMerklePrefix|null|undefined} prefix - * @memberof ibc.core.connection.v1.Counterparty + * QueryUpgradedConsensusStateResponse upgraded_consensus_state. + * @member {google.protobuf.IAny|null|undefined} upgraded_consensus_state + * @memberof ibc.core.client.v1.QueryUpgradedConsensusStateResponse * @instance */ - Counterparty.prototype.prefix = null; + QueryUpgradedConsensusStateResponse.prototype.upgraded_consensus_state = null; /** - * Encodes the specified Counterparty message. Does not implicitly {@link ibc.core.connection.v1.Counterparty.verify|verify} messages. + * Encodes the specified QueryUpgradedConsensusStateResponse message. Does not implicitly {@link ibc.core.client.v1.QueryUpgradedConsensusStateResponse.verify|verify} messages. * @function encode - * @memberof ibc.core.connection.v1.Counterparty + * @memberof ibc.core.client.v1.QueryUpgradedConsensusStateResponse * @static - * @param {ibc.core.connection.v1.ICounterparty} message Counterparty message or plain object to encode + * @param {ibc.core.client.v1.IQueryUpgradedConsensusStateResponse} message QueryUpgradedConsensusStateResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Counterparty.encode = function encode(message, writer) { + QueryUpgradedConsensusStateResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.client_id != null && Object.hasOwnProperty.call(message, "client_id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.client_id); - if (message.connection_id != null && Object.hasOwnProperty.call(message, "connection_id")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.connection_id); - if (message.prefix != null && Object.hasOwnProperty.call(message, "prefix")) - $root.ibc.core.commitment.v1.MerklePrefix.encode(message.prefix, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.upgraded_consensus_state != null && Object.hasOwnProperty.call(message, "upgraded_consensus_state")) + $root.google.protobuf.Any.encode(message.upgraded_consensus_state, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified Counterparty message, length delimited. Does not implicitly {@link ibc.core.connection.v1.Counterparty.verify|verify} messages. + * Encodes the specified QueryUpgradedConsensusStateResponse message, length delimited. Does not implicitly {@link ibc.core.client.v1.QueryUpgradedConsensusStateResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.connection.v1.Counterparty + * @memberof ibc.core.client.v1.QueryUpgradedConsensusStateResponse * @static - * @param {ibc.core.connection.v1.ICounterparty} message Counterparty message or plain object to encode + * @param {ibc.core.client.v1.IQueryUpgradedConsensusStateResponse} message QueryUpgradedConsensusStateResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Counterparty.encodeDelimited = function encodeDelimited(message, writer) { + QueryUpgradedConsensusStateResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Counterparty message from the specified reader or buffer. + * Decodes a QueryUpgradedConsensusStateResponse message from the specified reader or buffer. * @function decode - * @memberof ibc.core.connection.v1.Counterparty + * @memberof ibc.core.client.v1.QueryUpgradedConsensusStateResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.connection.v1.Counterparty} Counterparty + * @returns {ibc.core.client.v1.QueryUpgradedConsensusStateResponse} QueryUpgradedConsensusStateResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Counterparty.decode = function decode(reader, length) { + QueryUpgradedConsensusStateResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.connection.v1.Counterparty(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.QueryUpgradedConsensusStateResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.client_id = reader.string(); - break; - case 2: - message.connection_id = reader.string(); - break; - case 3: - message.prefix = $root.ibc.core.commitment.v1.MerklePrefix.decode(reader, reader.uint32()); + message.upgraded_consensus_state = $root.google.protobuf.Any.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -60264,197 +66025,258 @@ }; /** - * Decodes a Counterparty message from the specified reader or buffer, length delimited. + * Decodes a QueryUpgradedConsensusStateResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.connection.v1.Counterparty + * @memberof ibc.core.client.v1.QueryUpgradedConsensusStateResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.connection.v1.Counterparty} Counterparty + * @returns {ibc.core.client.v1.QueryUpgradedConsensusStateResponse} QueryUpgradedConsensusStateResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Counterparty.decodeDelimited = function decodeDelimited(reader) { + QueryUpgradedConsensusStateResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Counterparty message. + * Verifies a QueryUpgradedConsensusStateResponse message. * @function verify - * @memberof ibc.core.connection.v1.Counterparty + * @memberof ibc.core.client.v1.QueryUpgradedConsensusStateResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Counterparty.verify = function verify(message) { + QueryUpgradedConsensusStateResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.client_id != null && message.hasOwnProperty("client_id")) - if (!$util.isString(message.client_id)) - return "client_id: string expected"; - if (message.connection_id != null && message.hasOwnProperty("connection_id")) - if (!$util.isString(message.connection_id)) - return "connection_id: string expected"; - if (message.prefix != null && message.hasOwnProperty("prefix")) { - var error = $root.ibc.core.commitment.v1.MerklePrefix.verify(message.prefix); + if (message.upgraded_consensus_state != null && message.hasOwnProperty("upgraded_consensus_state")) { + var error = $root.google.protobuf.Any.verify(message.upgraded_consensus_state); if (error) - return "prefix." + error; + return "upgraded_consensus_state." + error; } return null; }; /** - * Creates a Counterparty message from a plain object. Also converts values to their respective internal types. + * Creates a QueryUpgradedConsensusStateResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.connection.v1.Counterparty + * @memberof ibc.core.client.v1.QueryUpgradedConsensusStateResponse * @static * @param {Object.} object Plain object - * @returns {ibc.core.connection.v1.Counterparty} Counterparty + * @returns {ibc.core.client.v1.QueryUpgradedConsensusStateResponse} QueryUpgradedConsensusStateResponse */ - Counterparty.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.connection.v1.Counterparty) + QueryUpgradedConsensusStateResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.client.v1.QueryUpgradedConsensusStateResponse) return object; - var message = new $root.ibc.core.connection.v1.Counterparty(); - if (object.client_id != null) - message.client_id = String(object.client_id); - if (object.connection_id != null) - message.connection_id = String(object.connection_id); - if (object.prefix != null) { - if (typeof object.prefix !== "object") - throw TypeError(".ibc.core.connection.v1.Counterparty.prefix: object expected"); - message.prefix = $root.ibc.core.commitment.v1.MerklePrefix.fromObject(object.prefix); + var message = new $root.ibc.core.client.v1.QueryUpgradedConsensusStateResponse(); + if (object.upgraded_consensus_state != null) { + if (typeof object.upgraded_consensus_state !== "object") + throw TypeError(".ibc.core.client.v1.QueryUpgradedConsensusStateResponse.upgraded_consensus_state: object expected"); + message.upgraded_consensus_state = $root.google.protobuf.Any.fromObject(object.upgraded_consensus_state); } return message; }; /** - * Creates a plain object from a Counterparty message. Also converts values to other types if specified. + * Creates a plain object from a QueryUpgradedConsensusStateResponse message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.connection.v1.Counterparty + * @memberof ibc.core.client.v1.QueryUpgradedConsensusStateResponse * @static - * @param {ibc.core.connection.v1.Counterparty} message Counterparty + * @param {ibc.core.client.v1.QueryUpgradedConsensusStateResponse} message QueryUpgradedConsensusStateResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Counterparty.toObject = function toObject(message, options) { + QueryUpgradedConsensusStateResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.client_id = ""; - object.connection_id = ""; - object.prefix = null; - } - if (message.client_id != null && message.hasOwnProperty("client_id")) - object.client_id = message.client_id; - if (message.connection_id != null && message.hasOwnProperty("connection_id")) - object.connection_id = message.connection_id; - if (message.prefix != null && message.hasOwnProperty("prefix")) - object.prefix = $root.ibc.core.commitment.v1.MerklePrefix.toObject(message.prefix, options); + if (options.defaults) + object.upgraded_consensus_state = null; + if (message.upgraded_consensus_state != null && message.hasOwnProperty("upgraded_consensus_state")) + object.upgraded_consensus_state = $root.google.protobuf.Any.toObject(message.upgraded_consensus_state, options); return object; }; /** - * Converts this Counterparty to JSON. + * Converts this QueryUpgradedConsensusStateResponse to JSON. * @function toJSON - * @memberof ibc.core.connection.v1.Counterparty + * @memberof ibc.core.client.v1.QueryUpgradedConsensusStateResponse * @instance * @returns {Object.} JSON object */ - Counterparty.prototype.toJSON = function toJSON() { + QueryUpgradedConsensusStateResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Counterparty; + return QueryUpgradedConsensusStateResponse; })(); - v1.ClientPaths = (function() { + v1.GenesisState = (function() { /** - * Properties of a ClientPaths. - * @memberof ibc.core.connection.v1 - * @interface IClientPaths - * @property {Array.|null} [paths] ClientPaths paths + * Properties of a GenesisState. + * @memberof ibc.core.client.v1 + * @interface IGenesisState + * @property {Array.|null} [clients] GenesisState clients + * @property {Array.|null} [clients_consensus] GenesisState clients_consensus + * @property {Array.|null} [clients_metadata] GenesisState clients_metadata + * @property {ibc.core.client.v1.IParams|null} [params] GenesisState params + * @property {boolean|null} [create_localhost] GenesisState create_localhost + * @property {Long|null} [next_client_sequence] GenesisState next_client_sequence + */ + + /** + * Constructs a new GenesisState. + * @memberof ibc.core.client.v1 + * @classdesc Represents a GenesisState. + * @implements IGenesisState + * @constructor + * @param {ibc.core.client.v1.IGenesisState=} [properties] Properties to set + */ + function GenesisState(properties) { + this.clients = []; + this.clients_consensus = []; + this.clients_metadata = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * GenesisState clients. + * @member {Array.} clients + * @memberof ibc.core.client.v1.GenesisState + * @instance + */ + GenesisState.prototype.clients = $util.emptyArray; + + /** + * GenesisState clients_consensus. + * @member {Array.} clients_consensus + * @memberof ibc.core.client.v1.GenesisState + * @instance + */ + GenesisState.prototype.clients_consensus = $util.emptyArray; + + /** + * GenesisState clients_metadata. + * @member {Array.} clients_metadata + * @memberof ibc.core.client.v1.GenesisState + * @instance + */ + GenesisState.prototype.clients_metadata = $util.emptyArray; + + /** + * GenesisState params. + * @member {ibc.core.client.v1.IParams|null|undefined} params + * @memberof ibc.core.client.v1.GenesisState + * @instance */ + GenesisState.prototype.params = null; /** - * Constructs a new ClientPaths. - * @memberof ibc.core.connection.v1 - * @classdesc Represents a ClientPaths. - * @implements IClientPaths - * @constructor - * @param {ibc.core.connection.v1.IClientPaths=} [properties] Properties to set + * GenesisState create_localhost. + * @member {boolean} create_localhost + * @memberof ibc.core.client.v1.GenesisState + * @instance */ - function ClientPaths(properties) { - this.paths = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + GenesisState.prototype.create_localhost = false; /** - * ClientPaths paths. - * @member {Array.} paths - * @memberof ibc.core.connection.v1.ClientPaths + * GenesisState next_client_sequence. + * @member {Long} next_client_sequence + * @memberof ibc.core.client.v1.GenesisState * @instance */ - ClientPaths.prototype.paths = $util.emptyArray; + GenesisState.prototype.next_client_sequence = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** - * Encodes the specified ClientPaths message. Does not implicitly {@link ibc.core.connection.v1.ClientPaths.verify|verify} messages. + * Encodes the specified GenesisState message. Does not implicitly {@link ibc.core.client.v1.GenesisState.verify|verify} messages. * @function encode - * @memberof ibc.core.connection.v1.ClientPaths + * @memberof ibc.core.client.v1.GenesisState * @static - * @param {ibc.core.connection.v1.IClientPaths} message ClientPaths message or plain object to encode + * @param {ibc.core.client.v1.IGenesisState} message GenesisState message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ClientPaths.encode = function encode(message, writer) { + GenesisState.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.paths != null && message.paths.length) - for (var i = 0; i < message.paths.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.paths[i]); + if (message.clients != null && message.clients.length) + for (var i = 0; i < message.clients.length; ++i) + $root.ibc.core.client.v1.IdentifiedClientState.encode(message.clients[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.clients_consensus != null && message.clients_consensus.length) + for (var i = 0; i < message.clients_consensus.length; ++i) + $root.ibc.core.client.v1.ClientConsensusStates.encode(message.clients_consensus[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.clients_metadata != null && message.clients_metadata.length) + for (var i = 0; i < message.clients_metadata.length; ++i) + $root.ibc.core.client.v1.IdentifiedGenesisMetadata.encode(message.clients_metadata[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.params != null && Object.hasOwnProperty.call(message, "params")) + $root.ibc.core.client.v1.Params.encode(message.params, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.create_localhost != null && Object.hasOwnProperty.call(message, "create_localhost")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.create_localhost); + if (message.next_client_sequence != null && Object.hasOwnProperty.call(message, "next_client_sequence")) + writer.uint32(/* id 6, wireType 0 =*/48).uint64(message.next_client_sequence); return writer; }; /** - * Encodes the specified ClientPaths message, length delimited. Does not implicitly {@link ibc.core.connection.v1.ClientPaths.verify|verify} messages. + * Encodes the specified GenesisState message, length delimited. Does not implicitly {@link ibc.core.client.v1.GenesisState.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.connection.v1.ClientPaths + * @memberof ibc.core.client.v1.GenesisState * @static - * @param {ibc.core.connection.v1.IClientPaths} message ClientPaths message or plain object to encode + * @param {ibc.core.client.v1.IGenesisState} message GenesisState message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ClientPaths.encodeDelimited = function encodeDelimited(message, writer) { + GenesisState.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ClientPaths message from the specified reader or buffer. + * Decodes a GenesisState message from the specified reader or buffer. * @function decode - * @memberof ibc.core.connection.v1.ClientPaths + * @memberof ibc.core.client.v1.GenesisState * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.connection.v1.ClientPaths} ClientPaths + * @returns {ibc.core.client.v1.GenesisState} GenesisState * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ClientPaths.decode = function decode(reader, length) { + GenesisState.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.connection.v1.ClientPaths(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.GenesisState(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.paths && message.paths.length)) - message.paths = []; - message.paths.push(reader.string()); + if (!(message.clients && message.clients.length)) + message.clients = []; + message.clients.push($root.ibc.core.client.v1.IdentifiedClientState.decode(reader, reader.uint32())); + break; + case 2: + if (!(message.clients_consensus && message.clients_consensus.length)) + message.clients_consensus = []; + message.clients_consensus.push($root.ibc.core.client.v1.ClientConsensusStates.decode(reader, reader.uint32())); + break; + case 3: + if (!(message.clients_metadata && message.clients_metadata.length)) + message.clients_metadata = []; + message.clients_metadata.push($root.ibc.core.client.v1.IdentifiedGenesisMetadata.decode(reader, reader.uint32())); + break; + case 4: + message.params = $root.ibc.core.client.v1.Params.decode(reader, reader.uint32()); + break; + case 5: + message.create_localhost = reader.bool(); + break; + case 6: + message.next_client_sequence = reader.uint64(); break; default: reader.skipType(tag & 7); @@ -60465,121 +66287,221 @@ }; /** - * Decodes a ClientPaths message from the specified reader or buffer, length delimited. + * Decodes a GenesisState message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.connection.v1.ClientPaths + * @memberof ibc.core.client.v1.GenesisState * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.connection.v1.ClientPaths} ClientPaths + * @returns {ibc.core.client.v1.GenesisState} GenesisState * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ClientPaths.decodeDelimited = function decodeDelimited(reader) { + GenesisState.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ClientPaths message. + * Verifies a GenesisState message. * @function verify - * @memberof ibc.core.connection.v1.ClientPaths + * @memberof ibc.core.client.v1.GenesisState * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ClientPaths.verify = function verify(message) { + GenesisState.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.paths != null && message.hasOwnProperty("paths")) { - if (!Array.isArray(message.paths)) - return "paths: array expected"; - for (var i = 0; i < message.paths.length; ++i) - if (!$util.isString(message.paths[i])) - return "paths: string[] expected"; + if (message.clients != null && message.hasOwnProperty("clients")) { + if (!Array.isArray(message.clients)) + return "clients: array expected"; + for (var i = 0; i < message.clients.length; ++i) { + var error = $root.ibc.core.client.v1.IdentifiedClientState.verify(message.clients[i]); + if (error) + return "clients." + error; + } + } + if (message.clients_consensus != null && message.hasOwnProperty("clients_consensus")) { + if (!Array.isArray(message.clients_consensus)) + return "clients_consensus: array expected"; + for (var i = 0; i < message.clients_consensus.length; ++i) { + var error = $root.ibc.core.client.v1.ClientConsensusStates.verify(message.clients_consensus[i]); + if (error) + return "clients_consensus." + error; + } + } + if (message.clients_metadata != null && message.hasOwnProperty("clients_metadata")) { + if (!Array.isArray(message.clients_metadata)) + return "clients_metadata: array expected"; + for (var i = 0; i < message.clients_metadata.length; ++i) { + var error = $root.ibc.core.client.v1.IdentifiedGenesisMetadata.verify(message.clients_metadata[i]); + if (error) + return "clients_metadata." + error; + } + } + if (message.params != null && message.hasOwnProperty("params")) { + var error = $root.ibc.core.client.v1.Params.verify(message.params); + if (error) + return "params." + error; } + if (message.create_localhost != null && message.hasOwnProperty("create_localhost")) + if (typeof message.create_localhost !== "boolean") + return "create_localhost: boolean expected"; + if (message.next_client_sequence != null && message.hasOwnProperty("next_client_sequence")) + if (!$util.isInteger(message.next_client_sequence) && !(message.next_client_sequence && $util.isInteger(message.next_client_sequence.low) && $util.isInteger(message.next_client_sequence.high))) + return "next_client_sequence: integer|Long expected"; return null; }; /** - * Creates a ClientPaths message from a plain object. Also converts values to their respective internal types. + * Creates a GenesisState message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.connection.v1.ClientPaths + * @memberof ibc.core.client.v1.GenesisState * @static * @param {Object.} object Plain object - * @returns {ibc.core.connection.v1.ClientPaths} ClientPaths + * @returns {ibc.core.client.v1.GenesisState} GenesisState */ - ClientPaths.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.connection.v1.ClientPaths) + GenesisState.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.client.v1.GenesisState) return object; - var message = new $root.ibc.core.connection.v1.ClientPaths(); - if (object.paths) { - if (!Array.isArray(object.paths)) - throw TypeError(".ibc.core.connection.v1.ClientPaths.paths: array expected"); - message.paths = []; - for (var i = 0; i < object.paths.length; ++i) - message.paths[i] = String(object.paths[i]); + var message = new $root.ibc.core.client.v1.GenesisState(); + if (object.clients) { + if (!Array.isArray(object.clients)) + throw TypeError(".ibc.core.client.v1.GenesisState.clients: array expected"); + message.clients = []; + for (var i = 0; i < object.clients.length; ++i) { + if (typeof object.clients[i] !== "object") + throw TypeError(".ibc.core.client.v1.GenesisState.clients: object expected"); + message.clients[i] = $root.ibc.core.client.v1.IdentifiedClientState.fromObject(object.clients[i]); + } + } + if (object.clients_consensus) { + if (!Array.isArray(object.clients_consensus)) + throw TypeError(".ibc.core.client.v1.GenesisState.clients_consensus: array expected"); + message.clients_consensus = []; + for (var i = 0; i < object.clients_consensus.length; ++i) { + if (typeof object.clients_consensus[i] !== "object") + throw TypeError(".ibc.core.client.v1.GenesisState.clients_consensus: object expected"); + message.clients_consensus[i] = $root.ibc.core.client.v1.ClientConsensusStates.fromObject(object.clients_consensus[i]); + } + } + if (object.clients_metadata) { + if (!Array.isArray(object.clients_metadata)) + throw TypeError(".ibc.core.client.v1.GenesisState.clients_metadata: array expected"); + message.clients_metadata = []; + for (var i = 0; i < object.clients_metadata.length; ++i) { + if (typeof object.clients_metadata[i] !== "object") + throw TypeError(".ibc.core.client.v1.GenesisState.clients_metadata: object expected"); + message.clients_metadata[i] = $root.ibc.core.client.v1.IdentifiedGenesisMetadata.fromObject(object.clients_metadata[i]); + } + } + if (object.params != null) { + if (typeof object.params !== "object") + throw TypeError(".ibc.core.client.v1.GenesisState.params: object expected"); + message.params = $root.ibc.core.client.v1.Params.fromObject(object.params); } + if (object.create_localhost != null) + message.create_localhost = Boolean(object.create_localhost); + if (object.next_client_sequence != null) + if ($util.Long) + (message.next_client_sequence = $util.Long.fromValue(object.next_client_sequence)).unsigned = true; + else if (typeof object.next_client_sequence === "string") + message.next_client_sequence = parseInt(object.next_client_sequence, 10); + else if (typeof object.next_client_sequence === "number") + message.next_client_sequence = object.next_client_sequence; + else if (typeof object.next_client_sequence === "object") + message.next_client_sequence = new $util.LongBits(object.next_client_sequence.low >>> 0, object.next_client_sequence.high >>> 0).toNumber(true); return message; }; /** - * Creates a plain object from a ClientPaths message. Also converts values to other types if specified. + * Creates a plain object from a GenesisState message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.connection.v1.ClientPaths + * @memberof ibc.core.client.v1.GenesisState * @static - * @param {ibc.core.connection.v1.ClientPaths} message ClientPaths + * @param {ibc.core.client.v1.GenesisState} message GenesisState * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ClientPaths.toObject = function toObject(message, options) { + GenesisState.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.paths = []; - if (message.paths && message.paths.length) { - object.paths = []; - for (var j = 0; j < message.paths.length; ++j) - object.paths[j] = message.paths[j]; + if (options.arrays || options.defaults) { + object.clients = []; + object.clients_consensus = []; + object.clients_metadata = []; + } + if (options.defaults) { + object.params = null; + object.create_localhost = false; + if ($util.Long) { + var long = new $util.Long(0, 0, true); + object.next_client_sequence = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.next_client_sequence = options.longs === String ? "0" : 0; + } + if (message.clients && message.clients.length) { + object.clients = []; + for (var j = 0; j < message.clients.length; ++j) + object.clients[j] = $root.ibc.core.client.v1.IdentifiedClientState.toObject(message.clients[j], options); + } + if (message.clients_consensus && message.clients_consensus.length) { + object.clients_consensus = []; + for (var j = 0; j < message.clients_consensus.length; ++j) + object.clients_consensus[j] = $root.ibc.core.client.v1.ClientConsensusStates.toObject(message.clients_consensus[j], options); } + if (message.clients_metadata && message.clients_metadata.length) { + object.clients_metadata = []; + for (var j = 0; j < message.clients_metadata.length; ++j) + object.clients_metadata[j] = $root.ibc.core.client.v1.IdentifiedGenesisMetadata.toObject(message.clients_metadata[j], options); + } + if (message.params != null && message.hasOwnProperty("params")) + object.params = $root.ibc.core.client.v1.Params.toObject(message.params, options); + if (message.create_localhost != null && message.hasOwnProperty("create_localhost")) + object.create_localhost = message.create_localhost; + if (message.next_client_sequence != null && message.hasOwnProperty("next_client_sequence")) + if (typeof message.next_client_sequence === "number") + object.next_client_sequence = options.longs === String ? String(message.next_client_sequence) : message.next_client_sequence; + else + object.next_client_sequence = options.longs === String ? $util.Long.prototype.toString.call(message.next_client_sequence) : options.longs === Number ? new $util.LongBits(message.next_client_sequence.low >>> 0, message.next_client_sequence.high >>> 0).toNumber(true) : message.next_client_sequence; return object; }; /** - * Converts this ClientPaths to JSON. + * Converts this GenesisState to JSON. * @function toJSON - * @memberof ibc.core.connection.v1.ClientPaths + * @memberof ibc.core.client.v1.GenesisState * @instance * @returns {Object.} JSON object */ - ClientPaths.prototype.toJSON = function toJSON() { + GenesisState.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ClientPaths; + return GenesisState; })(); - v1.ConnectionPaths = (function() { + v1.GenesisMetadata = (function() { /** - * Properties of a ConnectionPaths. - * @memberof ibc.core.connection.v1 - * @interface IConnectionPaths - * @property {string|null} [client_id] ConnectionPaths client_id - * @property {Array.|null} [paths] ConnectionPaths paths + * Properties of a GenesisMetadata. + * @memberof ibc.core.client.v1 + * @interface IGenesisMetadata + * @property {Uint8Array|null} [key] GenesisMetadata key + * @property {Uint8Array|null} [value] GenesisMetadata value */ /** - * Constructs a new ConnectionPaths. - * @memberof ibc.core.connection.v1 - * @classdesc Represents a ConnectionPaths. - * @implements IConnectionPaths + * Constructs a new GenesisMetadata. + * @memberof ibc.core.client.v1 + * @classdesc Represents a GenesisMetadata. + * @implements IGenesisMetadata * @constructor - * @param {ibc.core.connection.v1.IConnectionPaths=} [properties] Properties to set + * @param {ibc.core.client.v1.IGenesisMetadata=} [properties] Properties to set */ - function ConnectionPaths(properties) { - this.paths = []; + function GenesisMetadata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -60587,79 +66509,76 @@ } /** - * ConnectionPaths client_id. - * @member {string} client_id - * @memberof ibc.core.connection.v1.ConnectionPaths + * GenesisMetadata key. + * @member {Uint8Array} key + * @memberof ibc.core.client.v1.GenesisMetadata * @instance */ - ConnectionPaths.prototype.client_id = ""; + GenesisMetadata.prototype.key = $util.newBuffer([]); /** - * ConnectionPaths paths. - * @member {Array.} paths - * @memberof ibc.core.connection.v1.ConnectionPaths + * GenesisMetadata value. + * @member {Uint8Array} value + * @memberof ibc.core.client.v1.GenesisMetadata * @instance */ - ConnectionPaths.prototype.paths = $util.emptyArray; + GenesisMetadata.prototype.value = $util.newBuffer([]); /** - * Encodes the specified ConnectionPaths message. Does not implicitly {@link ibc.core.connection.v1.ConnectionPaths.verify|verify} messages. + * Encodes the specified GenesisMetadata message. Does not implicitly {@link ibc.core.client.v1.GenesisMetadata.verify|verify} messages. * @function encode - * @memberof ibc.core.connection.v1.ConnectionPaths + * @memberof ibc.core.client.v1.GenesisMetadata * @static - * @param {ibc.core.connection.v1.IConnectionPaths} message ConnectionPaths message or plain object to encode + * @param {ibc.core.client.v1.IGenesisMetadata} message GenesisMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ConnectionPaths.encode = function encode(message, writer) { + GenesisMetadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.client_id != null && Object.hasOwnProperty.call(message, "client_id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.client_id); - if (message.paths != null && message.paths.length) - for (var i = 0; i < message.paths.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.paths[i]); + if (message.key != null && Object.hasOwnProperty.call(message, "key")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.key); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.value); return writer; }; /** - * Encodes the specified ConnectionPaths message, length delimited. Does not implicitly {@link ibc.core.connection.v1.ConnectionPaths.verify|verify} messages. + * Encodes the specified GenesisMetadata message, length delimited. Does not implicitly {@link ibc.core.client.v1.GenesisMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.connection.v1.ConnectionPaths + * @memberof ibc.core.client.v1.GenesisMetadata * @static - * @param {ibc.core.connection.v1.IConnectionPaths} message ConnectionPaths message or plain object to encode + * @param {ibc.core.client.v1.IGenesisMetadata} message GenesisMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ConnectionPaths.encodeDelimited = function encodeDelimited(message, writer) { + GenesisMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ConnectionPaths message from the specified reader or buffer. + * Decodes a GenesisMetadata message from the specified reader or buffer. * @function decode - * @memberof ibc.core.connection.v1.ConnectionPaths + * @memberof ibc.core.client.v1.GenesisMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.connection.v1.ConnectionPaths} ConnectionPaths + * @returns {ibc.core.client.v1.GenesisMetadata} GenesisMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ConnectionPaths.decode = function decode(reader, length) { + GenesisMetadata.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.connection.v1.ConnectionPaths(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.GenesisMetadata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.client_id = reader.string(); + message.key = reader.bytes(); break; case 2: - if (!(message.paths && message.paths.length)) - message.paths = []; - message.paths.push(reader.string()); + message.value = reader.bytes(); break; default: reader.skipType(tag & 7); @@ -60670,130 +66589,136 @@ }; /** - * Decodes a ConnectionPaths message from the specified reader or buffer, length delimited. + * Decodes a GenesisMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.connection.v1.ConnectionPaths + * @memberof ibc.core.client.v1.GenesisMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.connection.v1.ConnectionPaths} ConnectionPaths + * @returns {ibc.core.client.v1.GenesisMetadata} GenesisMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ConnectionPaths.decodeDelimited = function decodeDelimited(reader) { + GenesisMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ConnectionPaths message. + * Verifies a GenesisMetadata message. * @function verify - * @memberof ibc.core.connection.v1.ConnectionPaths + * @memberof ibc.core.client.v1.GenesisMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ConnectionPaths.verify = function verify(message) { + GenesisMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.client_id != null && message.hasOwnProperty("client_id")) - if (!$util.isString(message.client_id)) - return "client_id: string expected"; - if (message.paths != null && message.hasOwnProperty("paths")) { - if (!Array.isArray(message.paths)) - return "paths: array expected"; - for (var i = 0; i < message.paths.length; ++i) - if (!$util.isString(message.paths[i])) - return "paths: string[] expected"; - } + if (message.key != null && message.hasOwnProperty("key")) + if (!(message.key && typeof message.key.length === "number" || $util.isString(message.key))) + return "key: buffer expected"; + if (message.value != null && message.hasOwnProperty("value")) + if (!(message.value && typeof message.value.length === "number" || $util.isString(message.value))) + return "value: buffer expected"; return null; }; /** - * Creates a ConnectionPaths message from a plain object. Also converts values to their respective internal types. + * Creates a GenesisMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.connection.v1.ConnectionPaths + * @memberof ibc.core.client.v1.GenesisMetadata * @static * @param {Object.} object Plain object - * @returns {ibc.core.connection.v1.ConnectionPaths} ConnectionPaths + * @returns {ibc.core.client.v1.GenesisMetadata} GenesisMetadata */ - ConnectionPaths.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.connection.v1.ConnectionPaths) + GenesisMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.client.v1.GenesisMetadata) return object; - var message = new $root.ibc.core.connection.v1.ConnectionPaths(); - if (object.client_id != null) - message.client_id = String(object.client_id); - if (object.paths) { - if (!Array.isArray(object.paths)) - throw TypeError(".ibc.core.connection.v1.ConnectionPaths.paths: array expected"); - message.paths = []; - for (var i = 0; i < object.paths.length; ++i) - message.paths[i] = String(object.paths[i]); - } + var message = new $root.ibc.core.client.v1.GenesisMetadata(); + if (object.key != null) + if (typeof object.key === "string") + $util.base64.decode(object.key, message.key = $util.newBuffer($util.base64.length(object.key)), 0); + else if (object.key.length) + message.key = object.key; + if (object.value != null) + if (typeof object.value === "string") + $util.base64.decode(object.value, message.value = $util.newBuffer($util.base64.length(object.value)), 0); + else if (object.value.length) + message.value = object.value; return message; }; /** - * Creates a plain object from a ConnectionPaths message. Also converts values to other types if specified. + * Creates a plain object from a GenesisMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.connection.v1.ConnectionPaths + * @memberof ibc.core.client.v1.GenesisMetadata * @static - * @param {ibc.core.connection.v1.ConnectionPaths} message ConnectionPaths + * @param {ibc.core.client.v1.GenesisMetadata} message GenesisMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ConnectionPaths.toObject = function toObject(message, options) { + GenesisMetadata.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.paths = []; - if (options.defaults) - object.client_id = ""; - if (message.client_id != null && message.hasOwnProperty("client_id")) - object.client_id = message.client_id; - if (message.paths && message.paths.length) { - object.paths = []; - for (var j = 0; j < message.paths.length; ++j) - object.paths[j] = message.paths[j]; + if (options.defaults) { + if (options.bytes === String) + object.key = ""; + else { + object.key = []; + if (options.bytes !== Array) + object.key = $util.newBuffer(object.key); + } + if (options.bytes === String) + object.value = ""; + else { + object.value = []; + if (options.bytes !== Array) + object.value = $util.newBuffer(object.value); + } } + if (message.key != null && message.hasOwnProperty("key")) + object.key = options.bytes === String ? $util.base64.encode(message.key, 0, message.key.length) : options.bytes === Array ? Array.prototype.slice.call(message.key) : message.key; + if (message.value != null && message.hasOwnProperty("value")) + object.value = options.bytes === String ? $util.base64.encode(message.value, 0, message.value.length) : options.bytes === Array ? Array.prototype.slice.call(message.value) : message.value; return object; }; /** - * Converts this ConnectionPaths to JSON. + * Converts this GenesisMetadata to JSON. * @function toJSON - * @memberof ibc.core.connection.v1.ConnectionPaths + * @memberof ibc.core.client.v1.GenesisMetadata * @instance * @returns {Object.} JSON object */ - ConnectionPaths.prototype.toJSON = function toJSON() { + GenesisMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ConnectionPaths; + return GenesisMetadata; })(); - v1.Version = (function() { + v1.IdentifiedGenesisMetadata = (function() { /** - * Properties of a Version. - * @memberof ibc.core.connection.v1 - * @interface IVersion - * @property {string|null} [identifier] Version identifier - * @property {Array.|null} [features] Version features + * Properties of an IdentifiedGenesisMetadata. + * @memberof ibc.core.client.v1 + * @interface IIdentifiedGenesisMetadata + * @property {string|null} [client_id] IdentifiedGenesisMetadata client_id + * @property {Array.|null} [client_metadata] IdentifiedGenesisMetadata client_metadata */ /** - * Constructs a new Version. - * @memberof ibc.core.connection.v1 - * @classdesc Represents a Version. - * @implements IVersion + * Constructs a new IdentifiedGenesisMetadata. + * @memberof ibc.core.client.v1 + * @classdesc Represents an IdentifiedGenesisMetadata. + * @implements IIdentifiedGenesisMetadata * @constructor - * @param {ibc.core.connection.v1.IVersion=} [properties] Properties to set + * @param {ibc.core.client.v1.IIdentifiedGenesisMetadata=} [properties] Properties to set */ - function Version(properties) { - this.features = []; + function IdentifiedGenesisMetadata(properties) { + this.client_metadata = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -60801,79 +66726,79 @@ } /** - * Version identifier. - * @member {string} identifier - * @memberof ibc.core.connection.v1.Version + * IdentifiedGenesisMetadata client_id. + * @member {string} client_id + * @memberof ibc.core.client.v1.IdentifiedGenesisMetadata * @instance */ - Version.prototype.identifier = ""; + IdentifiedGenesisMetadata.prototype.client_id = ""; /** - * Version features. - * @member {Array.} features - * @memberof ibc.core.connection.v1.Version + * IdentifiedGenesisMetadata client_metadata. + * @member {Array.} client_metadata + * @memberof ibc.core.client.v1.IdentifiedGenesisMetadata * @instance */ - Version.prototype.features = $util.emptyArray; + IdentifiedGenesisMetadata.prototype.client_metadata = $util.emptyArray; /** - * Encodes the specified Version message. Does not implicitly {@link ibc.core.connection.v1.Version.verify|verify} messages. + * Encodes the specified IdentifiedGenesisMetadata message. Does not implicitly {@link ibc.core.client.v1.IdentifiedGenesisMetadata.verify|verify} messages. * @function encode - * @memberof ibc.core.connection.v1.Version + * @memberof ibc.core.client.v1.IdentifiedGenesisMetadata * @static - * @param {ibc.core.connection.v1.IVersion} message Version message or plain object to encode + * @param {ibc.core.client.v1.IIdentifiedGenesisMetadata} message IdentifiedGenesisMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Version.encode = function encode(message, writer) { + IdentifiedGenesisMetadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.identifier != null && Object.hasOwnProperty.call(message, "identifier")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.identifier); - if (message.features != null && message.features.length) - for (var i = 0; i < message.features.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.features[i]); + if (message.client_id != null && Object.hasOwnProperty.call(message, "client_id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.client_id); + if (message.client_metadata != null && message.client_metadata.length) + for (var i = 0; i < message.client_metadata.length; ++i) + $root.ibc.core.client.v1.GenesisMetadata.encode(message.client_metadata[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified Version message, length delimited. Does not implicitly {@link ibc.core.connection.v1.Version.verify|verify} messages. + * Encodes the specified IdentifiedGenesisMetadata message, length delimited. Does not implicitly {@link ibc.core.client.v1.IdentifiedGenesisMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.connection.v1.Version + * @memberof ibc.core.client.v1.IdentifiedGenesisMetadata * @static - * @param {ibc.core.connection.v1.IVersion} message Version message or plain object to encode + * @param {ibc.core.client.v1.IIdentifiedGenesisMetadata} message IdentifiedGenesisMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Version.encodeDelimited = function encodeDelimited(message, writer) { + IdentifiedGenesisMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Version message from the specified reader or buffer. + * Decodes an IdentifiedGenesisMetadata message from the specified reader or buffer. * @function decode - * @memberof ibc.core.connection.v1.Version + * @memberof ibc.core.client.v1.IdentifiedGenesisMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.connection.v1.Version} Version + * @returns {ibc.core.client.v1.IdentifiedGenesisMetadata} IdentifiedGenesisMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Version.decode = function decode(reader, length) { + IdentifiedGenesisMetadata.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.connection.v1.Version(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.IdentifiedGenesisMetadata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.identifier = reader.string(); + message.client_id = reader.string(); break; case 2: - if (!(message.features && message.features.length)) - message.features = []; - message.features.push(reader.string()); + if (!(message.client_metadata && message.client_metadata.length)) + message.client_metadata = []; + message.client_metadata.push($root.ibc.core.client.v1.GenesisMetadata.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -60884,128 +66809,157 @@ }; /** - * Decodes a Version message from the specified reader or buffer, length delimited. + * Decodes an IdentifiedGenesisMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.connection.v1.Version + * @memberof ibc.core.client.v1.IdentifiedGenesisMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.connection.v1.Version} Version + * @returns {ibc.core.client.v1.IdentifiedGenesisMetadata} IdentifiedGenesisMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Version.decodeDelimited = function decodeDelimited(reader) { + IdentifiedGenesisMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Version message. + * Verifies an IdentifiedGenesisMetadata message. * @function verify - * @memberof ibc.core.connection.v1.Version + * @memberof ibc.core.client.v1.IdentifiedGenesisMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Version.verify = function verify(message) { + IdentifiedGenesisMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.identifier != null && message.hasOwnProperty("identifier")) - if (!$util.isString(message.identifier)) - return "identifier: string expected"; - if (message.features != null && message.hasOwnProperty("features")) { - if (!Array.isArray(message.features)) - return "features: array expected"; - for (var i = 0; i < message.features.length; ++i) - if (!$util.isString(message.features[i])) - return "features: string[] expected"; + if (message.client_id != null && message.hasOwnProperty("client_id")) + if (!$util.isString(message.client_id)) + return "client_id: string expected"; + if (message.client_metadata != null && message.hasOwnProperty("client_metadata")) { + if (!Array.isArray(message.client_metadata)) + return "client_metadata: array expected"; + for (var i = 0; i < message.client_metadata.length; ++i) { + var error = $root.ibc.core.client.v1.GenesisMetadata.verify(message.client_metadata[i]); + if (error) + return "client_metadata." + error; + } } return null; }; /** - * Creates a Version message from a plain object. Also converts values to their respective internal types. + * Creates an IdentifiedGenesisMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.connection.v1.Version + * @memberof ibc.core.client.v1.IdentifiedGenesisMetadata * @static * @param {Object.} object Plain object - * @returns {ibc.core.connection.v1.Version} Version + * @returns {ibc.core.client.v1.IdentifiedGenesisMetadata} IdentifiedGenesisMetadata */ - Version.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.connection.v1.Version) + IdentifiedGenesisMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.client.v1.IdentifiedGenesisMetadata) return object; - var message = new $root.ibc.core.connection.v1.Version(); - if (object.identifier != null) - message.identifier = String(object.identifier); - if (object.features) { - if (!Array.isArray(object.features)) - throw TypeError(".ibc.core.connection.v1.Version.features: array expected"); - message.features = []; - for (var i = 0; i < object.features.length; ++i) - message.features[i] = String(object.features[i]); + var message = new $root.ibc.core.client.v1.IdentifiedGenesisMetadata(); + if (object.client_id != null) + message.client_id = String(object.client_id); + if (object.client_metadata) { + if (!Array.isArray(object.client_metadata)) + throw TypeError(".ibc.core.client.v1.IdentifiedGenesisMetadata.client_metadata: array expected"); + message.client_metadata = []; + for (var i = 0; i < object.client_metadata.length; ++i) { + if (typeof object.client_metadata[i] !== "object") + throw TypeError(".ibc.core.client.v1.IdentifiedGenesisMetadata.client_metadata: object expected"); + message.client_metadata[i] = $root.ibc.core.client.v1.GenesisMetadata.fromObject(object.client_metadata[i]); + } } return message; }; /** - * Creates a plain object from a Version message. Also converts values to other types if specified. + * Creates a plain object from an IdentifiedGenesisMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.connection.v1.Version + * @memberof ibc.core.client.v1.IdentifiedGenesisMetadata * @static - * @param {ibc.core.connection.v1.Version} message Version + * @param {ibc.core.client.v1.IdentifiedGenesisMetadata} message IdentifiedGenesisMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Version.toObject = function toObject(message, options) { + IdentifiedGenesisMetadata.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.features = []; + object.client_metadata = []; if (options.defaults) - object.identifier = ""; - if (message.identifier != null && message.hasOwnProperty("identifier")) - object.identifier = message.identifier; - if (message.features && message.features.length) { - object.features = []; - for (var j = 0; j < message.features.length; ++j) - object.features[j] = message.features[j]; + object.client_id = ""; + if (message.client_id != null && message.hasOwnProperty("client_id")) + object.client_id = message.client_id; + if (message.client_metadata && message.client_metadata.length) { + object.client_metadata = []; + for (var j = 0; j < message.client_metadata.length; ++j) + object.client_metadata[j] = $root.ibc.core.client.v1.GenesisMetadata.toObject(message.client_metadata[j], options); } return object; }; /** - * Converts this Version to JSON. + * Converts this IdentifiedGenesisMetadata to JSON. * @function toJSON - * @memberof ibc.core.connection.v1.Version + * @memberof ibc.core.client.v1.IdentifiedGenesisMetadata * @instance * @returns {Object.} JSON object */ - Version.prototype.toJSON = function toJSON() { + IdentifiedGenesisMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Version; + return IdentifiedGenesisMetadata; })(); - v1.Params = (function() { + return v1; + })(); + + return client; + })(); + + core.commitment = (function() { + + /** + * Namespace commitment. + * @memberof ibc.core + * @namespace + */ + var commitment = {}; + + commitment.v1 = (function() { + + /** + * Namespace v1. + * @memberof ibc.core.commitment + * @namespace + */ + var v1 = {}; + + v1.MerkleRoot = (function() { /** - * Properties of a Params. - * @memberof ibc.core.connection.v1 - * @interface IParams - * @property {Long|null} [max_expected_time_per_block] Params max_expected_time_per_block + * Properties of a MerkleRoot. + * @memberof ibc.core.commitment.v1 + * @interface IMerkleRoot + * @property {Uint8Array|null} [hash] MerkleRoot hash */ /** - * Constructs a new Params. - * @memberof ibc.core.connection.v1 - * @classdesc Represents a Params. - * @implements IParams + * Constructs a new MerkleRoot. + * @memberof ibc.core.commitment.v1 + * @classdesc Represents a MerkleRoot. + * @implements IMerkleRoot * @constructor - * @param {ibc.core.connection.v1.IParams=} [properties] Properties to set + * @param {ibc.core.commitment.v1.IMerkleRoot=} [properties] Properties to set */ - function Params(properties) { + function MerkleRoot(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -61013,63 +66967,63 @@ } /** - * Params max_expected_time_per_block. - * @member {Long} max_expected_time_per_block - * @memberof ibc.core.connection.v1.Params + * MerkleRoot hash. + * @member {Uint8Array} hash + * @memberof ibc.core.commitment.v1.MerkleRoot * @instance */ - Params.prototype.max_expected_time_per_block = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + MerkleRoot.prototype.hash = $util.newBuffer([]); /** - * Encodes the specified Params message. Does not implicitly {@link ibc.core.connection.v1.Params.verify|verify} messages. + * Encodes the specified MerkleRoot message. Does not implicitly {@link ibc.core.commitment.v1.MerkleRoot.verify|verify} messages. * @function encode - * @memberof ibc.core.connection.v1.Params + * @memberof ibc.core.commitment.v1.MerkleRoot * @static - * @param {ibc.core.connection.v1.IParams} message Params message or plain object to encode + * @param {ibc.core.commitment.v1.IMerkleRoot} message MerkleRoot message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Params.encode = function encode(message, writer) { + MerkleRoot.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.max_expected_time_per_block != null && Object.hasOwnProperty.call(message, "max_expected_time_per_block")) - writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.max_expected_time_per_block); + if (message.hash != null && Object.hasOwnProperty.call(message, "hash")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.hash); return writer; }; /** - * Encodes the specified Params message, length delimited. Does not implicitly {@link ibc.core.connection.v1.Params.verify|verify} messages. + * Encodes the specified MerkleRoot message, length delimited. Does not implicitly {@link ibc.core.commitment.v1.MerkleRoot.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.connection.v1.Params + * @memberof ibc.core.commitment.v1.MerkleRoot * @static - * @param {ibc.core.connection.v1.IParams} message Params message or plain object to encode + * @param {ibc.core.commitment.v1.IMerkleRoot} message MerkleRoot message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Params.encodeDelimited = function encodeDelimited(message, writer) { + MerkleRoot.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Params message from the specified reader or buffer. + * Decodes a MerkleRoot message from the specified reader or buffer. * @function decode - * @memberof ibc.core.connection.v1.Params + * @memberof ibc.core.commitment.v1.MerkleRoot * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.connection.v1.Params} Params + * @returns {ibc.core.commitment.v1.MerkleRoot} MerkleRoot * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Params.decode = function decode(reader, length) { + MerkleRoot.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.connection.v1.Params(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.commitment.v1.MerkleRoot(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.max_expected_time_per_block = reader.uint64(); + message.hash = reader.bytes(); break; default: reader.skipType(tag & 7); @@ -61080,307 +67034,301 @@ }; /** - * Decodes a Params message from the specified reader or buffer, length delimited. + * Decodes a MerkleRoot message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.connection.v1.Params + * @memberof ibc.core.commitment.v1.MerkleRoot * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.connection.v1.Params} Params + * @returns {ibc.core.commitment.v1.MerkleRoot} MerkleRoot * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Params.decodeDelimited = function decodeDelimited(reader) { + MerkleRoot.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Params message. + * Verifies a MerkleRoot message. * @function verify - * @memberof ibc.core.connection.v1.Params + * @memberof ibc.core.commitment.v1.MerkleRoot * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Params.verify = function verify(message) { + MerkleRoot.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.max_expected_time_per_block != null && message.hasOwnProperty("max_expected_time_per_block")) - if (!$util.isInteger(message.max_expected_time_per_block) && !(message.max_expected_time_per_block && $util.isInteger(message.max_expected_time_per_block.low) && $util.isInteger(message.max_expected_time_per_block.high))) - return "max_expected_time_per_block: integer|Long expected"; + if (message.hash != null && message.hasOwnProperty("hash")) + if (!(message.hash && typeof message.hash.length === "number" || $util.isString(message.hash))) + return "hash: buffer expected"; return null; }; /** - * Creates a Params message from a plain object. Also converts values to their respective internal types. + * Creates a MerkleRoot message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.connection.v1.Params + * @memberof ibc.core.commitment.v1.MerkleRoot * @static * @param {Object.} object Plain object - * @returns {ibc.core.connection.v1.Params} Params + * @returns {ibc.core.commitment.v1.MerkleRoot} MerkleRoot */ - Params.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.connection.v1.Params) + MerkleRoot.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.commitment.v1.MerkleRoot) return object; - var message = new $root.ibc.core.connection.v1.Params(); - if (object.max_expected_time_per_block != null) - if ($util.Long) - (message.max_expected_time_per_block = $util.Long.fromValue(object.max_expected_time_per_block)).unsigned = true; - else if (typeof object.max_expected_time_per_block === "string") - message.max_expected_time_per_block = parseInt(object.max_expected_time_per_block, 10); - else if (typeof object.max_expected_time_per_block === "number") - message.max_expected_time_per_block = object.max_expected_time_per_block; - else if (typeof object.max_expected_time_per_block === "object") - message.max_expected_time_per_block = new $util.LongBits(object.max_expected_time_per_block.low >>> 0, object.max_expected_time_per_block.high >>> 0).toNumber(true); + var message = new $root.ibc.core.commitment.v1.MerkleRoot(); + if (object.hash != null) + if (typeof object.hash === "string") + $util.base64.decode(object.hash, message.hash = $util.newBuffer($util.base64.length(object.hash)), 0); + else if (object.hash.length) + message.hash = object.hash; return message; }; /** - * Creates a plain object from a Params message. Also converts values to other types if specified. + * Creates a plain object from a MerkleRoot message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.connection.v1.Params + * @memberof ibc.core.commitment.v1.MerkleRoot * @static - * @param {ibc.core.connection.v1.Params} message Params + * @param {ibc.core.commitment.v1.MerkleRoot} message MerkleRoot * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Params.toObject = function toObject(message, options) { + MerkleRoot.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) - if ($util.Long) { - var long = new $util.Long(0, 0, true); - object.max_expected_time_per_block = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.max_expected_time_per_block = options.longs === String ? "0" : 0; - if (message.max_expected_time_per_block != null && message.hasOwnProperty("max_expected_time_per_block")) - if (typeof message.max_expected_time_per_block === "number") - object.max_expected_time_per_block = options.longs === String ? String(message.max_expected_time_per_block) : message.max_expected_time_per_block; - else - object.max_expected_time_per_block = options.longs === String ? $util.Long.prototype.toString.call(message.max_expected_time_per_block) : options.longs === Number ? new $util.LongBits(message.max_expected_time_per_block.low >>> 0, message.max_expected_time_per_block.high >>> 0).toNumber(true) : message.max_expected_time_per_block; + if (options.bytes === String) + object.hash = ""; + else { + object.hash = []; + if (options.bytes !== Array) + object.hash = $util.newBuffer(object.hash); + } + if (message.hash != null && message.hasOwnProperty("hash")) + object.hash = options.bytes === String ? $util.base64.encode(message.hash, 0, message.hash.length) : options.bytes === Array ? Array.prototype.slice.call(message.hash) : message.hash; return object; }; /** - * Converts this Params to JSON. + * Converts this MerkleRoot to JSON. * @function toJSON - * @memberof ibc.core.connection.v1.Params + * @memberof ibc.core.commitment.v1.MerkleRoot * @instance * @returns {Object.} JSON object */ - Params.prototype.toJSON = function toJSON() { + MerkleRoot.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Params; + return MerkleRoot; })(); - v1.Query = (function() { - - /** - * Constructs a new Query service. - * @memberof ibc.core.connection.v1 - * @classdesc Represents a Query - * @extends $protobuf.rpc.Service - * @constructor - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - */ - function Query(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } - - (Query.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Query; - - /** - * Callback as used by {@link ibc.core.connection.v1.Query#connection}. - * @memberof ibc.core.connection.v1.Query - * @typedef ConnectionCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.core.connection.v1.QueryConnectionResponse} [response] QueryConnectionResponse - */ - - /** - * Calls Connection. - * @function connection - * @memberof ibc.core.connection.v1.Query - * @instance - * @param {ibc.core.connection.v1.IQueryConnectionRequest} request QueryConnectionRequest message or plain object - * @param {ibc.core.connection.v1.Query.ConnectionCallback} callback Node-style callback called with the error, if any, and QueryConnectionResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Query.prototype.connection = function connection(request, callback) { - return this.rpcCall(connection, $root.ibc.core.connection.v1.QueryConnectionRequest, $root.ibc.core.connection.v1.QueryConnectionResponse, request, callback); - }, "name", { value: "Connection" }); - - /** - * Calls Connection. - * @function connection - * @memberof ibc.core.connection.v1.Query - * @instance - * @param {ibc.core.connection.v1.IQueryConnectionRequest} request QueryConnectionRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + v1.MerklePrefix = (function() { /** - * Callback as used by {@link ibc.core.connection.v1.Query#connections}. - * @memberof ibc.core.connection.v1.Query - * @typedef ConnectionsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.core.connection.v1.QueryConnectionsResponse} [response] QueryConnectionsResponse + * Properties of a MerklePrefix. + * @memberof ibc.core.commitment.v1 + * @interface IMerklePrefix + * @property {Uint8Array|null} [key_prefix] MerklePrefix key_prefix */ /** - * Calls Connections. - * @function connections - * @memberof ibc.core.connection.v1.Query - * @instance - * @param {ibc.core.connection.v1.IQueryConnectionsRequest} request QueryConnectionsRequest message or plain object - * @param {ibc.core.connection.v1.Query.ConnectionsCallback} callback Node-style callback called with the error, if any, and QueryConnectionsResponse - * @returns {undefined} - * @variation 1 + * Constructs a new MerklePrefix. + * @memberof ibc.core.commitment.v1 + * @classdesc Represents a MerklePrefix. + * @implements IMerklePrefix + * @constructor + * @param {ibc.core.commitment.v1.IMerklePrefix=} [properties] Properties to set */ - Object.defineProperty(Query.prototype.connections = function connections(request, callback) { - return this.rpcCall(connections, $root.ibc.core.connection.v1.QueryConnectionsRequest, $root.ibc.core.connection.v1.QueryConnectionsResponse, request, callback); - }, "name", { value: "Connections" }); + function MerklePrefix(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * Calls Connections. - * @function connections - * @memberof ibc.core.connection.v1.Query + * MerklePrefix key_prefix. + * @member {Uint8Array} key_prefix + * @memberof ibc.core.commitment.v1.MerklePrefix * @instance - * @param {ibc.core.connection.v1.IQueryConnectionsRequest} request QueryConnectionsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link ibc.core.connection.v1.Query#clientConnections}. - * @memberof ibc.core.connection.v1.Query - * @typedef ClientConnectionsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.core.connection.v1.QueryClientConnectionsResponse} [response] QueryClientConnectionsResponse */ + MerklePrefix.prototype.key_prefix = $util.newBuffer([]); /** - * Calls ClientConnections. - * @function clientConnections - * @memberof ibc.core.connection.v1.Query - * @instance - * @param {ibc.core.connection.v1.IQueryClientConnectionsRequest} request QueryClientConnectionsRequest message or plain object - * @param {ibc.core.connection.v1.Query.ClientConnectionsCallback} callback Node-style callback called with the error, if any, and QueryClientConnectionsResponse - * @returns {undefined} - * @variation 1 + * Encodes the specified MerklePrefix message. Does not implicitly {@link ibc.core.commitment.v1.MerklePrefix.verify|verify} messages. + * @function encode + * @memberof ibc.core.commitment.v1.MerklePrefix + * @static + * @param {ibc.core.commitment.v1.IMerklePrefix} message MerklePrefix message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Object.defineProperty(Query.prototype.clientConnections = function clientConnections(request, callback) { - return this.rpcCall(clientConnections, $root.ibc.core.connection.v1.QueryClientConnectionsRequest, $root.ibc.core.connection.v1.QueryClientConnectionsResponse, request, callback); - }, "name", { value: "ClientConnections" }); + MerklePrefix.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.key_prefix != null && Object.hasOwnProperty.call(message, "key_prefix")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.key_prefix); + return writer; + }; /** - * Calls ClientConnections. - * @function clientConnections - * @memberof ibc.core.connection.v1.Query - * @instance - * @param {ibc.core.connection.v1.IQueryClientConnectionsRequest} request QueryClientConnectionsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Encodes the specified MerklePrefix message, length delimited. Does not implicitly {@link ibc.core.commitment.v1.MerklePrefix.verify|verify} messages. + * @function encodeDelimited + * @memberof ibc.core.commitment.v1.MerklePrefix + * @static + * @param {ibc.core.commitment.v1.IMerklePrefix} message MerklePrefix message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ + MerklePrefix.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Callback as used by {@link ibc.core.connection.v1.Query#connectionClientState}. - * @memberof ibc.core.connection.v1.Query - * @typedef ConnectionClientStateCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.core.connection.v1.QueryConnectionClientStateResponse} [response] QueryConnectionClientStateResponse + * Decodes a MerklePrefix message from the specified reader or buffer. + * @function decode + * @memberof ibc.core.commitment.v1.MerklePrefix + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {ibc.core.commitment.v1.MerklePrefix} MerklePrefix + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + MerklePrefix.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.commitment.v1.MerklePrefix(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.key_prefix = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Calls ConnectionClientState. - * @function connectionClientState - * @memberof ibc.core.connection.v1.Query - * @instance - * @param {ibc.core.connection.v1.IQueryConnectionClientStateRequest} request QueryConnectionClientStateRequest message or plain object - * @param {ibc.core.connection.v1.Query.ConnectionClientStateCallback} callback Node-style callback called with the error, if any, and QueryConnectionClientStateResponse - * @returns {undefined} - * @variation 1 + * Decodes a MerklePrefix message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof ibc.core.commitment.v1.MerklePrefix + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {ibc.core.commitment.v1.MerklePrefix} MerklePrefix + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Object.defineProperty(Query.prototype.connectionClientState = function connectionClientState(request, callback) { - return this.rpcCall(connectionClientState, $root.ibc.core.connection.v1.QueryConnectionClientStateRequest, $root.ibc.core.connection.v1.QueryConnectionClientStateResponse, request, callback); - }, "name", { value: "ConnectionClientState" }); + MerklePrefix.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Calls ConnectionClientState. - * @function connectionClientState - * @memberof ibc.core.connection.v1.Query - * @instance - * @param {ibc.core.connection.v1.IQueryConnectionClientStateRequest} request QueryConnectionClientStateRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Verifies a MerklePrefix message. + * @function verify + * @memberof ibc.core.commitment.v1.MerklePrefix + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ + MerklePrefix.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.key_prefix != null && message.hasOwnProperty("key_prefix")) + if (!(message.key_prefix && typeof message.key_prefix.length === "number" || $util.isString(message.key_prefix))) + return "key_prefix: buffer expected"; + return null; + }; /** - * Callback as used by {@link ibc.core.connection.v1.Query#connectionConsensusState}. - * @memberof ibc.core.connection.v1.Query - * @typedef ConnectionConsensusStateCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.core.connection.v1.QueryConnectionConsensusStateResponse} [response] QueryConnectionConsensusStateResponse + * Creates a MerklePrefix message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof ibc.core.commitment.v1.MerklePrefix + * @static + * @param {Object.} object Plain object + * @returns {ibc.core.commitment.v1.MerklePrefix} MerklePrefix */ + MerklePrefix.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.commitment.v1.MerklePrefix) + return object; + var message = new $root.ibc.core.commitment.v1.MerklePrefix(); + if (object.key_prefix != null) + if (typeof object.key_prefix === "string") + $util.base64.decode(object.key_prefix, message.key_prefix = $util.newBuffer($util.base64.length(object.key_prefix)), 0); + else if (object.key_prefix.length) + message.key_prefix = object.key_prefix; + return message; + }; /** - * Calls ConnectionConsensusState. - * @function connectionConsensusState - * @memberof ibc.core.connection.v1.Query - * @instance - * @param {ibc.core.connection.v1.IQueryConnectionConsensusStateRequest} request QueryConnectionConsensusStateRequest message or plain object - * @param {ibc.core.connection.v1.Query.ConnectionConsensusStateCallback} callback Node-style callback called with the error, if any, and QueryConnectionConsensusStateResponse - * @returns {undefined} - * @variation 1 + * Creates a plain object from a MerklePrefix message. Also converts values to other types if specified. + * @function toObject + * @memberof ibc.core.commitment.v1.MerklePrefix + * @static + * @param {ibc.core.commitment.v1.MerklePrefix} message MerklePrefix + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - Object.defineProperty(Query.prototype.connectionConsensusState = function connectionConsensusState(request, callback) { - return this.rpcCall(connectionConsensusState, $root.ibc.core.connection.v1.QueryConnectionConsensusStateRequest, $root.ibc.core.connection.v1.QueryConnectionConsensusStateResponse, request, callback); - }, "name", { value: "ConnectionConsensusState" }); + MerklePrefix.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + if (options.bytes === String) + object.key_prefix = ""; + else { + object.key_prefix = []; + if (options.bytes !== Array) + object.key_prefix = $util.newBuffer(object.key_prefix); + } + if (message.key_prefix != null && message.hasOwnProperty("key_prefix")) + object.key_prefix = options.bytes === String ? $util.base64.encode(message.key_prefix, 0, message.key_prefix.length) : options.bytes === Array ? Array.prototype.slice.call(message.key_prefix) : message.key_prefix; + return object; + }; /** - * Calls ConnectionConsensusState. - * @function connectionConsensusState - * @memberof ibc.core.connection.v1.Query + * Converts this MerklePrefix to JSON. + * @function toJSON + * @memberof ibc.core.commitment.v1.MerklePrefix * @instance - * @param {ibc.core.connection.v1.IQueryConnectionConsensusStateRequest} request QueryConnectionConsensusStateRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * @returns {Object.} JSON object */ + MerklePrefix.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return Query; + return MerklePrefix; })(); - v1.QueryConnectionRequest = (function() { + v1.MerklePath = (function() { /** - * Properties of a QueryConnectionRequest. - * @memberof ibc.core.connection.v1 - * @interface IQueryConnectionRequest - * @property {string|null} [connection_id] QueryConnectionRequest connection_id + * Properties of a MerklePath. + * @memberof ibc.core.commitment.v1 + * @interface IMerklePath + * @property {Array.|null} [key_path] MerklePath key_path */ /** - * Constructs a new QueryConnectionRequest. - * @memberof ibc.core.connection.v1 - * @classdesc Represents a QueryConnectionRequest. - * @implements IQueryConnectionRequest + * Constructs a new MerklePath. + * @memberof ibc.core.commitment.v1 + * @classdesc Represents a MerklePath. + * @implements IMerklePath * @constructor - * @param {ibc.core.connection.v1.IQueryConnectionRequest=} [properties] Properties to set + * @param {ibc.core.commitment.v1.IMerklePath=} [properties] Properties to set */ - function QueryConnectionRequest(properties) { + function MerklePath(properties) { + this.key_path = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -61388,63 +67336,66 @@ } /** - * QueryConnectionRequest connection_id. - * @member {string} connection_id - * @memberof ibc.core.connection.v1.QueryConnectionRequest + * MerklePath key_path. + * @member {Array.} key_path + * @memberof ibc.core.commitment.v1.MerklePath * @instance */ - QueryConnectionRequest.prototype.connection_id = ""; + MerklePath.prototype.key_path = $util.emptyArray; /** - * Encodes the specified QueryConnectionRequest message. Does not implicitly {@link ibc.core.connection.v1.QueryConnectionRequest.verify|verify} messages. + * Encodes the specified MerklePath message. Does not implicitly {@link ibc.core.commitment.v1.MerklePath.verify|verify} messages. * @function encode - * @memberof ibc.core.connection.v1.QueryConnectionRequest + * @memberof ibc.core.commitment.v1.MerklePath * @static - * @param {ibc.core.connection.v1.IQueryConnectionRequest} message QueryConnectionRequest message or plain object to encode + * @param {ibc.core.commitment.v1.IMerklePath} message MerklePath message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryConnectionRequest.encode = function encode(message, writer) { + MerklePath.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.connection_id != null && Object.hasOwnProperty.call(message, "connection_id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.connection_id); + if (message.key_path != null && message.key_path.length) + for (var i = 0; i < message.key_path.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.key_path[i]); return writer; }; /** - * Encodes the specified QueryConnectionRequest message, length delimited. Does not implicitly {@link ibc.core.connection.v1.QueryConnectionRequest.verify|verify} messages. + * Encodes the specified MerklePath message, length delimited. Does not implicitly {@link ibc.core.commitment.v1.MerklePath.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.connection.v1.QueryConnectionRequest + * @memberof ibc.core.commitment.v1.MerklePath * @static - * @param {ibc.core.connection.v1.IQueryConnectionRequest} message QueryConnectionRequest message or plain object to encode + * @param {ibc.core.commitment.v1.IMerklePath} message MerklePath message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryConnectionRequest.encodeDelimited = function encodeDelimited(message, writer) { + MerklePath.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryConnectionRequest message from the specified reader or buffer. + * Decodes a MerklePath message from the specified reader or buffer. * @function decode - * @memberof ibc.core.connection.v1.QueryConnectionRequest + * @memberof ibc.core.commitment.v1.MerklePath * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.connection.v1.QueryConnectionRequest} QueryConnectionRequest + * @returns {ibc.core.commitment.v1.MerklePath} MerklePath * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryConnectionRequest.decode = function decode(reader, length) { + MerklePath.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.connection.v1.QueryConnectionRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.commitment.v1.MerklePath(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.connection_id = reader.string(); + if (!(message.key_path && message.key_path.length)) + message.key_path = []; + message.key_path.push(reader.string()); break; default: reader.skipType(tag & 7); @@ -61455,109 +67406,120 @@ }; /** - * Decodes a QueryConnectionRequest message from the specified reader or buffer, length delimited. + * Decodes a MerklePath message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.connection.v1.QueryConnectionRequest + * @memberof ibc.core.commitment.v1.MerklePath * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.connection.v1.QueryConnectionRequest} QueryConnectionRequest + * @returns {ibc.core.commitment.v1.MerklePath} MerklePath * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryConnectionRequest.decodeDelimited = function decodeDelimited(reader) { + MerklePath.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryConnectionRequest message. + * Verifies a MerklePath message. * @function verify - * @memberof ibc.core.connection.v1.QueryConnectionRequest + * @memberof ibc.core.commitment.v1.MerklePath * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryConnectionRequest.verify = function verify(message) { + MerklePath.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.connection_id != null && message.hasOwnProperty("connection_id")) - if (!$util.isString(message.connection_id)) - return "connection_id: string expected"; + if (message.key_path != null && message.hasOwnProperty("key_path")) { + if (!Array.isArray(message.key_path)) + return "key_path: array expected"; + for (var i = 0; i < message.key_path.length; ++i) + if (!$util.isString(message.key_path[i])) + return "key_path: string[] expected"; + } return null; }; /** - * Creates a QueryConnectionRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MerklePath message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.connection.v1.QueryConnectionRequest + * @memberof ibc.core.commitment.v1.MerklePath * @static * @param {Object.} object Plain object - * @returns {ibc.core.connection.v1.QueryConnectionRequest} QueryConnectionRequest + * @returns {ibc.core.commitment.v1.MerklePath} MerklePath */ - QueryConnectionRequest.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.connection.v1.QueryConnectionRequest) + MerklePath.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.commitment.v1.MerklePath) return object; - var message = new $root.ibc.core.connection.v1.QueryConnectionRequest(); - if (object.connection_id != null) - message.connection_id = String(object.connection_id); + var message = new $root.ibc.core.commitment.v1.MerklePath(); + if (object.key_path) { + if (!Array.isArray(object.key_path)) + throw TypeError(".ibc.core.commitment.v1.MerklePath.key_path: array expected"); + message.key_path = []; + for (var i = 0; i < object.key_path.length; ++i) + message.key_path[i] = String(object.key_path[i]); + } return message; }; /** - * Creates a plain object from a QueryConnectionRequest message. Also converts values to other types if specified. + * Creates a plain object from a MerklePath message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.connection.v1.QueryConnectionRequest + * @memberof ibc.core.commitment.v1.MerklePath * @static - * @param {ibc.core.connection.v1.QueryConnectionRequest} message QueryConnectionRequest + * @param {ibc.core.commitment.v1.MerklePath} message MerklePath * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryConnectionRequest.toObject = function toObject(message, options) { + MerklePath.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.connection_id = ""; - if (message.connection_id != null && message.hasOwnProperty("connection_id")) - object.connection_id = message.connection_id; + if (options.arrays || options.defaults) + object.key_path = []; + if (message.key_path && message.key_path.length) { + object.key_path = []; + for (var j = 0; j < message.key_path.length; ++j) + object.key_path[j] = message.key_path[j]; + } return object; }; /** - * Converts this QueryConnectionRequest to JSON. + * Converts this MerklePath to JSON. * @function toJSON - * @memberof ibc.core.connection.v1.QueryConnectionRequest + * @memberof ibc.core.commitment.v1.MerklePath * @instance * @returns {Object.} JSON object */ - QueryConnectionRequest.prototype.toJSON = function toJSON() { + MerklePath.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryConnectionRequest; + return MerklePath; })(); - v1.QueryConnectionResponse = (function() { + v1.MerkleProof = (function() { /** - * Properties of a QueryConnectionResponse. - * @memberof ibc.core.connection.v1 - * @interface IQueryConnectionResponse - * @property {ibc.core.connection.v1.IConnectionEnd|null} [connection] QueryConnectionResponse connection - * @property {Uint8Array|null} [proof] QueryConnectionResponse proof - * @property {ibc.core.client.v1.IHeight|null} [proof_height] QueryConnectionResponse proof_height + * Properties of a MerkleProof. + * @memberof ibc.core.commitment.v1 + * @interface IMerkleProof + * @property {Array.|null} [proofs] MerkleProof proofs */ /** - * Constructs a new QueryConnectionResponse. - * @memberof ibc.core.connection.v1 - * @classdesc Represents a QueryConnectionResponse. - * @implements IQueryConnectionResponse + * Constructs a new MerkleProof. + * @memberof ibc.core.commitment.v1 + * @classdesc Represents a MerkleProof. + * @implements IMerkleProof * @constructor - * @param {ibc.core.connection.v1.IQueryConnectionResponse=} [properties] Properties to set + * @param {ibc.core.commitment.v1.IMerkleProof=} [properties] Properties to set */ - function QueryConnectionResponse(properties) { + function MerkleProof(properties) { + this.proofs = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -61565,89 +67527,66 @@ } /** - * QueryConnectionResponse connection. - * @member {ibc.core.connection.v1.IConnectionEnd|null|undefined} connection - * @memberof ibc.core.connection.v1.QueryConnectionResponse - * @instance - */ - QueryConnectionResponse.prototype.connection = null; - - /** - * QueryConnectionResponse proof. - * @member {Uint8Array} proof - * @memberof ibc.core.connection.v1.QueryConnectionResponse - * @instance - */ - QueryConnectionResponse.prototype.proof = $util.newBuffer([]); - - /** - * QueryConnectionResponse proof_height. - * @member {ibc.core.client.v1.IHeight|null|undefined} proof_height - * @memberof ibc.core.connection.v1.QueryConnectionResponse + * MerkleProof proofs. + * @member {Array.} proofs + * @memberof ibc.core.commitment.v1.MerkleProof * @instance */ - QueryConnectionResponse.prototype.proof_height = null; + MerkleProof.prototype.proofs = $util.emptyArray; /** - * Encodes the specified QueryConnectionResponse message. Does not implicitly {@link ibc.core.connection.v1.QueryConnectionResponse.verify|verify} messages. + * Encodes the specified MerkleProof message. Does not implicitly {@link ibc.core.commitment.v1.MerkleProof.verify|verify} messages. * @function encode - * @memberof ibc.core.connection.v1.QueryConnectionResponse + * @memberof ibc.core.commitment.v1.MerkleProof * @static - * @param {ibc.core.connection.v1.IQueryConnectionResponse} message QueryConnectionResponse message or plain object to encode + * @param {ibc.core.commitment.v1.IMerkleProof} message MerkleProof message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryConnectionResponse.encode = function encode(message, writer) { + MerkleProof.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.connection != null && Object.hasOwnProperty.call(message, "connection")) - $root.ibc.core.connection.v1.ConnectionEnd.encode(message.connection, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.proof != null && Object.hasOwnProperty.call(message, "proof")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.proof); - if (message.proof_height != null && Object.hasOwnProperty.call(message, "proof_height")) - $root.ibc.core.client.v1.Height.encode(message.proof_height, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.proofs != null && message.proofs.length) + for (var i = 0; i < message.proofs.length; ++i) + $root.cosmos.ics23.v1.CommitmentProof.encode(message.proofs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified QueryConnectionResponse message, length delimited. Does not implicitly {@link ibc.core.connection.v1.QueryConnectionResponse.verify|verify} messages. + * Encodes the specified MerkleProof message, length delimited. Does not implicitly {@link ibc.core.commitment.v1.MerkleProof.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.connection.v1.QueryConnectionResponse + * @memberof ibc.core.commitment.v1.MerkleProof * @static - * @param {ibc.core.connection.v1.IQueryConnectionResponse} message QueryConnectionResponse message or plain object to encode + * @param {ibc.core.commitment.v1.IMerkleProof} message MerkleProof message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryConnectionResponse.encodeDelimited = function encodeDelimited(message, writer) { + MerkleProof.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryConnectionResponse message from the specified reader or buffer. + * Decodes a MerkleProof message from the specified reader or buffer. * @function decode - * @memberof ibc.core.connection.v1.QueryConnectionResponse + * @memberof ibc.core.commitment.v1.MerkleProof * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.connection.v1.QueryConnectionResponse} QueryConnectionResponse + * @returns {ibc.core.commitment.v1.MerkleProof} MerkleProof * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryConnectionResponse.decode = function decode(reader, length) { + MerkleProof.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.connection.v1.QueryConnectionResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.commitment.v1.MerkleProof(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.connection = $root.ibc.core.connection.v1.ConnectionEnd.decode(reader, reader.uint32()); - break; - case 2: - message.proof = reader.bytes(); - break; - case 3: - message.proof_height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); + if (!(message.proofs && message.proofs.length)) + message.proofs = []; + message.proofs.push($root.cosmos.ics23.v1.CommitmentProof.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -61658,143 +67597,305 @@ }; /** - * Decodes a QueryConnectionResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ibc.core.connection.v1.QueryConnectionResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.connection.v1.QueryConnectionResponse} QueryConnectionResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Decodes a MerkleProof message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof ibc.core.commitment.v1.MerkleProof + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {ibc.core.commitment.v1.MerkleProof} MerkleProof + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MerkleProof.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a MerkleProof message. + * @function verify + * @memberof ibc.core.commitment.v1.MerkleProof + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MerkleProof.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.proofs != null && message.hasOwnProperty("proofs")) { + if (!Array.isArray(message.proofs)) + return "proofs: array expected"; + for (var i = 0; i < message.proofs.length; ++i) { + var error = $root.cosmos.ics23.v1.CommitmentProof.verify(message.proofs[i]); + if (error) + return "proofs." + error; + } + } + return null; + }; + + /** + * Creates a MerkleProof message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof ibc.core.commitment.v1.MerkleProof + * @static + * @param {Object.} object Plain object + * @returns {ibc.core.commitment.v1.MerkleProof} MerkleProof + */ + MerkleProof.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.commitment.v1.MerkleProof) + return object; + var message = new $root.ibc.core.commitment.v1.MerkleProof(); + if (object.proofs) { + if (!Array.isArray(object.proofs)) + throw TypeError(".ibc.core.commitment.v1.MerkleProof.proofs: array expected"); + message.proofs = []; + for (var i = 0; i < object.proofs.length; ++i) { + if (typeof object.proofs[i] !== "object") + throw TypeError(".ibc.core.commitment.v1.MerkleProof.proofs: object expected"); + message.proofs[i] = $root.cosmos.ics23.v1.CommitmentProof.fromObject(object.proofs[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a MerkleProof message. Also converts values to other types if specified. + * @function toObject + * @memberof ibc.core.commitment.v1.MerkleProof + * @static + * @param {ibc.core.commitment.v1.MerkleProof} message MerkleProof + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MerkleProof.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.proofs = []; + if (message.proofs && message.proofs.length) { + object.proofs = []; + for (var j = 0; j < message.proofs.length; ++j) + object.proofs[j] = $root.cosmos.ics23.v1.CommitmentProof.toObject(message.proofs[j], options); + } + return object; + }; + + /** + * Converts this MerkleProof to JSON. + * @function toJSON + * @memberof ibc.core.commitment.v1.MerkleProof + * @instance + * @returns {Object.} JSON object + */ + MerkleProof.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return MerkleProof; + })(); + + return v1; + })(); + + return commitment; + })(); + + core.connection = (function() { + + /** + * Namespace connection. + * @memberof ibc.core + * @namespace + */ + var connection = {}; + + connection.v1 = (function() { + + /** + * Namespace v1. + * @memberof ibc.core.connection + * @namespace + */ + var v1 = {}; + + v1.Msg = (function() { + + /** + * Constructs a new Msg service. + * @memberof ibc.core.connection.v1 + * @classdesc Represents a Msg + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + */ + function Msg(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (Msg.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Msg; + + /** + * Callback as used by {@link ibc.core.connection.v1.Msg#connectionOpenInit}. + * @memberof ibc.core.connection.v1.Msg + * @typedef ConnectionOpenInitCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.core.connection.v1.MsgConnectionOpenInitResponse} [response] MsgConnectionOpenInitResponse + */ + + /** + * Calls ConnectionOpenInit. + * @function connectionOpenInit + * @memberof ibc.core.connection.v1.Msg + * @instance + * @param {ibc.core.connection.v1.IMsgConnectionOpenInit} request MsgConnectionOpenInit message or plain object + * @param {ibc.core.connection.v1.Msg.ConnectionOpenInitCallback} callback Node-style callback called with the error, if any, and MsgConnectionOpenInitResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Msg.prototype.connectionOpenInit = function connectionOpenInit(request, callback) { + return this.rpcCall(connectionOpenInit, $root.ibc.core.connection.v1.MsgConnectionOpenInit, $root.ibc.core.connection.v1.MsgConnectionOpenInitResponse, request, callback); + }, "name", { value: "ConnectionOpenInit" }); + + /** + * Calls ConnectionOpenInit. + * @function connectionOpenInit + * @memberof ibc.core.connection.v1.Msg + * @instance + * @param {ibc.core.connection.v1.IMsgConnectionOpenInit} request MsgConnectionOpenInit message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link ibc.core.connection.v1.Msg#connectionOpenTry}. + * @memberof ibc.core.connection.v1.Msg + * @typedef ConnectionOpenTryCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.core.connection.v1.MsgConnectionOpenTryResponse} [response] MsgConnectionOpenTryResponse + */ + + /** + * Calls ConnectionOpenTry. + * @function connectionOpenTry + * @memberof ibc.core.connection.v1.Msg + * @instance + * @param {ibc.core.connection.v1.IMsgConnectionOpenTry} request MsgConnectionOpenTry message or plain object + * @param {ibc.core.connection.v1.Msg.ConnectionOpenTryCallback} callback Node-style callback called with the error, if any, and MsgConnectionOpenTryResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Msg.prototype.connectionOpenTry = function connectionOpenTry(request, callback) { + return this.rpcCall(connectionOpenTry, $root.ibc.core.connection.v1.MsgConnectionOpenTry, $root.ibc.core.connection.v1.MsgConnectionOpenTryResponse, request, callback); + }, "name", { value: "ConnectionOpenTry" }); + + /** + * Calls ConnectionOpenTry. + * @function connectionOpenTry + * @memberof ibc.core.connection.v1.Msg + * @instance + * @param {ibc.core.connection.v1.IMsgConnectionOpenTry} request MsgConnectionOpenTry message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link ibc.core.connection.v1.Msg#connectionOpenAck}. + * @memberof ibc.core.connection.v1.Msg + * @typedef ConnectionOpenAckCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.core.connection.v1.MsgConnectionOpenAckResponse} [response] MsgConnectionOpenAckResponse */ - QueryConnectionResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; /** - * Verifies a QueryConnectionResponse message. - * @function verify - * @memberof ibc.core.connection.v1.QueryConnectionResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Calls ConnectionOpenAck. + * @function connectionOpenAck + * @memberof ibc.core.connection.v1.Msg + * @instance + * @param {ibc.core.connection.v1.IMsgConnectionOpenAck} request MsgConnectionOpenAck message or plain object + * @param {ibc.core.connection.v1.Msg.ConnectionOpenAckCallback} callback Node-style callback called with the error, if any, and MsgConnectionOpenAckResponse + * @returns {undefined} + * @variation 1 */ - QueryConnectionResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.connection != null && message.hasOwnProperty("connection")) { - var error = $root.ibc.core.connection.v1.ConnectionEnd.verify(message.connection); - if (error) - return "connection." + error; - } - if (message.proof != null && message.hasOwnProperty("proof")) - if (!(message.proof && typeof message.proof.length === "number" || $util.isString(message.proof))) - return "proof: buffer expected"; - if (message.proof_height != null && message.hasOwnProperty("proof_height")) { - var error = $root.ibc.core.client.v1.Height.verify(message.proof_height); - if (error) - return "proof_height." + error; - } - return null; - }; + Object.defineProperty(Msg.prototype.connectionOpenAck = function connectionOpenAck(request, callback) { + return this.rpcCall(connectionOpenAck, $root.ibc.core.connection.v1.MsgConnectionOpenAck, $root.ibc.core.connection.v1.MsgConnectionOpenAckResponse, request, callback); + }, "name", { value: "ConnectionOpenAck" }); /** - * Creates a QueryConnectionResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof ibc.core.connection.v1.QueryConnectionResponse - * @static - * @param {Object.} object Plain object - * @returns {ibc.core.connection.v1.QueryConnectionResponse} QueryConnectionResponse + * Calls ConnectionOpenAck. + * @function connectionOpenAck + * @memberof ibc.core.connection.v1.Msg + * @instance + * @param {ibc.core.connection.v1.IMsgConnectionOpenAck} request MsgConnectionOpenAck message or plain object + * @returns {Promise} Promise + * @variation 2 */ - QueryConnectionResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.connection.v1.QueryConnectionResponse) - return object; - var message = new $root.ibc.core.connection.v1.QueryConnectionResponse(); - if (object.connection != null) { - if (typeof object.connection !== "object") - throw TypeError(".ibc.core.connection.v1.QueryConnectionResponse.connection: object expected"); - message.connection = $root.ibc.core.connection.v1.ConnectionEnd.fromObject(object.connection); - } - if (object.proof != null) - if (typeof object.proof === "string") - $util.base64.decode(object.proof, message.proof = $util.newBuffer($util.base64.length(object.proof)), 0); - else if (object.proof.length) - message.proof = object.proof; - if (object.proof_height != null) { - if (typeof object.proof_height !== "object") - throw TypeError(".ibc.core.connection.v1.QueryConnectionResponse.proof_height: object expected"); - message.proof_height = $root.ibc.core.client.v1.Height.fromObject(object.proof_height); - } - return message; - }; /** - * Creates a plain object from a QueryConnectionResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof ibc.core.connection.v1.QueryConnectionResponse - * @static - * @param {ibc.core.connection.v1.QueryConnectionResponse} message QueryConnectionResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Callback as used by {@link ibc.core.connection.v1.Msg#connectionOpenConfirm}. + * @memberof ibc.core.connection.v1.Msg + * @typedef ConnectionOpenConfirmCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.core.connection.v1.MsgConnectionOpenConfirmResponse} [response] MsgConnectionOpenConfirmResponse */ - QueryConnectionResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.connection = null; - if (options.bytes === String) - object.proof = ""; - else { - object.proof = []; - if (options.bytes !== Array) - object.proof = $util.newBuffer(object.proof); - } - object.proof_height = null; - } - if (message.connection != null && message.hasOwnProperty("connection")) - object.connection = $root.ibc.core.connection.v1.ConnectionEnd.toObject(message.connection, options); - if (message.proof != null && message.hasOwnProperty("proof")) - object.proof = options.bytes === String ? $util.base64.encode(message.proof, 0, message.proof.length) : options.bytes === Array ? Array.prototype.slice.call(message.proof) : message.proof; - if (message.proof_height != null && message.hasOwnProperty("proof_height")) - object.proof_height = $root.ibc.core.client.v1.Height.toObject(message.proof_height, options); - return object; - }; /** - * Converts this QueryConnectionResponse to JSON. - * @function toJSON - * @memberof ibc.core.connection.v1.QueryConnectionResponse + * Calls ConnectionOpenConfirm. + * @function connectionOpenConfirm + * @memberof ibc.core.connection.v1.Msg * @instance - * @returns {Object.} JSON object + * @param {ibc.core.connection.v1.IMsgConnectionOpenConfirm} request MsgConnectionOpenConfirm message or plain object + * @param {ibc.core.connection.v1.Msg.ConnectionOpenConfirmCallback} callback Node-style callback called with the error, if any, and MsgConnectionOpenConfirmResponse + * @returns {undefined} + * @variation 1 */ - QueryConnectionResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + Object.defineProperty(Msg.prototype.connectionOpenConfirm = function connectionOpenConfirm(request, callback) { + return this.rpcCall(connectionOpenConfirm, $root.ibc.core.connection.v1.MsgConnectionOpenConfirm, $root.ibc.core.connection.v1.MsgConnectionOpenConfirmResponse, request, callback); + }, "name", { value: "ConnectionOpenConfirm" }); - return QueryConnectionResponse; + /** + * Calls ConnectionOpenConfirm. + * @function connectionOpenConfirm + * @memberof ibc.core.connection.v1.Msg + * @instance + * @param {ibc.core.connection.v1.IMsgConnectionOpenConfirm} request MsgConnectionOpenConfirm message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return Msg; })(); - v1.QueryConnectionsRequest = (function() { + v1.MsgConnectionOpenInit = (function() { /** - * Properties of a QueryConnectionsRequest. + * Properties of a MsgConnectionOpenInit. * @memberof ibc.core.connection.v1 - * @interface IQueryConnectionsRequest - * @property {cosmos.base.query.v1beta1.IPageRequest|null} [pagination] QueryConnectionsRequest pagination + * @interface IMsgConnectionOpenInit + * @property {string|null} [client_id] MsgConnectionOpenInit client_id + * @property {ibc.core.connection.v1.ICounterparty|null} [counterparty] MsgConnectionOpenInit counterparty + * @property {ibc.core.connection.v1.IVersion|null} [version] MsgConnectionOpenInit version + * @property {Long|null} [delay_period] MsgConnectionOpenInit delay_period + * @property {string|null} [signer] MsgConnectionOpenInit signer */ /** - * Constructs a new QueryConnectionsRequest. + * Constructs a new MsgConnectionOpenInit. * @memberof ibc.core.connection.v1 - * @classdesc Represents a QueryConnectionsRequest. - * @implements IQueryConnectionsRequest + * @classdesc Represents a MsgConnectionOpenInit. + * @implements IMsgConnectionOpenInit * @constructor - * @param {ibc.core.connection.v1.IQueryConnectionsRequest=} [properties] Properties to set + * @param {ibc.core.connection.v1.IMsgConnectionOpenInit=} [properties] Properties to set */ - function QueryConnectionsRequest(properties) { + function MsgConnectionOpenInit(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -61802,63 +67903,115 @@ } /** - * QueryConnectionsRequest pagination. - * @member {cosmos.base.query.v1beta1.IPageRequest|null|undefined} pagination - * @memberof ibc.core.connection.v1.QueryConnectionsRequest + * MsgConnectionOpenInit client_id. + * @member {string} client_id + * @memberof ibc.core.connection.v1.MsgConnectionOpenInit * @instance */ - QueryConnectionsRequest.prototype.pagination = null; + MsgConnectionOpenInit.prototype.client_id = ""; /** - * Encodes the specified QueryConnectionsRequest message. Does not implicitly {@link ibc.core.connection.v1.QueryConnectionsRequest.verify|verify} messages. + * MsgConnectionOpenInit counterparty. + * @member {ibc.core.connection.v1.ICounterparty|null|undefined} counterparty + * @memberof ibc.core.connection.v1.MsgConnectionOpenInit + * @instance + */ + MsgConnectionOpenInit.prototype.counterparty = null; + + /** + * MsgConnectionOpenInit version. + * @member {ibc.core.connection.v1.IVersion|null|undefined} version + * @memberof ibc.core.connection.v1.MsgConnectionOpenInit + * @instance + */ + MsgConnectionOpenInit.prototype.version = null; + + /** + * MsgConnectionOpenInit delay_period. + * @member {Long} delay_period + * @memberof ibc.core.connection.v1.MsgConnectionOpenInit + * @instance + */ + MsgConnectionOpenInit.prototype.delay_period = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + + /** + * MsgConnectionOpenInit signer. + * @member {string} signer + * @memberof ibc.core.connection.v1.MsgConnectionOpenInit + * @instance + */ + MsgConnectionOpenInit.prototype.signer = ""; + + /** + * Encodes the specified MsgConnectionOpenInit message. Does not implicitly {@link ibc.core.connection.v1.MsgConnectionOpenInit.verify|verify} messages. * @function encode - * @memberof ibc.core.connection.v1.QueryConnectionsRequest + * @memberof ibc.core.connection.v1.MsgConnectionOpenInit * @static - * @param {ibc.core.connection.v1.IQueryConnectionsRequest} message QueryConnectionsRequest message or plain object to encode + * @param {ibc.core.connection.v1.IMsgConnectionOpenInit} message MsgConnectionOpenInit message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryConnectionsRequest.encode = function encode(message, writer) { + MsgConnectionOpenInit.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.pagination != null && Object.hasOwnProperty.call(message, "pagination")) - $root.cosmos.base.query.v1beta1.PageRequest.encode(message.pagination, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.client_id != null && Object.hasOwnProperty.call(message, "client_id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.client_id); + if (message.counterparty != null && Object.hasOwnProperty.call(message, "counterparty")) + $root.ibc.core.connection.v1.Counterparty.encode(message.counterparty, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.version != null && Object.hasOwnProperty.call(message, "version")) + $root.ibc.core.connection.v1.Version.encode(message.version, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.delay_period != null && Object.hasOwnProperty.call(message, "delay_period")) + writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.delay_period); + if (message.signer != null && Object.hasOwnProperty.call(message, "signer")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.signer); return writer; }; /** - * Encodes the specified QueryConnectionsRequest message, length delimited. Does not implicitly {@link ibc.core.connection.v1.QueryConnectionsRequest.verify|verify} messages. + * Encodes the specified MsgConnectionOpenInit message, length delimited. Does not implicitly {@link ibc.core.connection.v1.MsgConnectionOpenInit.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.connection.v1.QueryConnectionsRequest + * @memberof ibc.core.connection.v1.MsgConnectionOpenInit * @static - * @param {ibc.core.connection.v1.IQueryConnectionsRequest} message QueryConnectionsRequest message or plain object to encode + * @param {ibc.core.connection.v1.IMsgConnectionOpenInit} message MsgConnectionOpenInit message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryConnectionsRequest.encodeDelimited = function encodeDelimited(message, writer) { + MsgConnectionOpenInit.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryConnectionsRequest message from the specified reader or buffer. + * Decodes a MsgConnectionOpenInit message from the specified reader or buffer. * @function decode - * @memberof ibc.core.connection.v1.QueryConnectionsRequest + * @memberof ibc.core.connection.v1.MsgConnectionOpenInit * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.connection.v1.QueryConnectionsRequest} QueryConnectionsRequest + * @returns {ibc.core.connection.v1.MsgConnectionOpenInit} MsgConnectionOpenInit * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryConnectionsRequest.decode = function decode(reader, length) { + MsgConnectionOpenInit.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.connection.v1.QueryConnectionsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.connection.v1.MsgConnectionOpenInit(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.pagination = $root.cosmos.base.query.v1beta1.PageRequest.decode(reader, reader.uint32()); + message.client_id = reader.string(); + break; + case 2: + message.counterparty = $root.ibc.core.connection.v1.Counterparty.decode(reader, reader.uint32()); + break; + case 3: + message.version = $root.ibc.core.connection.v1.Version.decode(reader, reader.uint32()); + break; + case 4: + message.delay_period = reader.uint64(); + break; + case 5: + message.signer = reader.string(); break; default: reader.skipType(tag & 7); @@ -61869,115 +68022,163 @@ }; /** - * Decodes a QueryConnectionsRequest message from the specified reader or buffer, length delimited. + * Decodes a MsgConnectionOpenInit message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.connection.v1.QueryConnectionsRequest + * @memberof ibc.core.connection.v1.MsgConnectionOpenInit * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.connection.v1.QueryConnectionsRequest} QueryConnectionsRequest + * @returns {ibc.core.connection.v1.MsgConnectionOpenInit} MsgConnectionOpenInit * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryConnectionsRequest.decodeDelimited = function decodeDelimited(reader) { + MsgConnectionOpenInit.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryConnectionsRequest message. + * Verifies a MsgConnectionOpenInit message. * @function verify - * @memberof ibc.core.connection.v1.QueryConnectionsRequest + * @memberof ibc.core.connection.v1.MsgConnectionOpenInit * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryConnectionsRequest.verify = function verify(message) { + MsgConnectionOpenInit.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.pagination != null && message.hasOwnProperty("pagination")) { - var error = $root.cosmos.base.query.v1beta1.PageRequest.verify(message.pagination); + if (message.client_id != null && message.hasOwnProperty("client_id")) + if (!$util.isString(message.client_id)) + return "client_id: string expected"; + if (message.counterparty != null && message.hasOwnProperty("counterparty")) { + var error = $root.ibc.core.connection.v1.Counterparty.verify(message.counterparty); if (error) - return "pagination." + error; + return "counterparty." + error; + } + if (message.version != null && message.hasOwnProperty("version")) { + var error = $root.ibc.core.connection.v1.Version.verify(message.version); + if (error) + return "version." + error; } + if (message.delay_period != null && message.hasOwnProperty("delay_period")) + if (!$util.isInteger(message.delay_period) && !(message.delay_period && $util.isInteger(message.delay_period.low) && $util.isInteger(message.delay_period.high))) + return "delay_period: integer|Long expected"; + if (message.signer != null && message.hasOwnProperty("signer")) + if (!$util.isString(message.signer)) + return "signer: string expected"; return null; }; /** - * Creates a QueryConnectionsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MsgConnectionOpenInit message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.connection.v1.QueryConnectionsRequest + * @memberof ibc.core.connection.v1.MsgConnectionOpenInit * @static * @param {Object.} object Plain object - * @returns {ibc.core.connection.v1.QueryConnectionsRequest} QueryConnectionsRequest + * @returns {ibc.core.connection.v1.MsgConnectionOpenInit} MsgConnectionOpenInit */ - QueryConnectionsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.connection.v1.QueryConnectionsRequest) + MsgConnectionOpenInit.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.connection.v1.MsgConnectionOpenInit) return object; - var message = new $root.ibc.core.connection.v1.QueryConnectionsRequest(); - if (object.pagination != null) { - if (typeof object.pagination !== "object") - throw TypeError(".ibc.core.connection.v1.QueryConnectionsRequest.pagination: object expected"); - message.pagination = $root.cosmos.base.query.v1beta1.PageRequest.fromObject(object.pagination); + var message = new $root.ibc.core.connection.v1.MsgConnectionOpenInit(); + if (object.client_id != null) + message.client_id = String(object.client_id); + if (object.counterparty != null) { + if (typeof object.counterparty !== "object") + throw TypeError(".ibc.core.connection.v1.MsgConnectionOpenInit.counterparty: object expected"); + message.counterparty = $root.ibc.core.connection.v1.Counterparty.fromObject(object.counterparty); + } + if (object.version != null) { + if (typeof object.version !== "object") + throw TypeError(".ibc.core.connection.v1.MsgConnectionOpenInit.version: object expected"); + message.version = $root.ibc.core.connection.v1.Version.fromObject(object.version); } + if (object.delay_period != null) + if ($util.Long) + (message.delay_period = $util.Long.fromValue(object.delay_period)).unsigned = true; + else if (typeof object.delay_period === "string") + message.delay_period = parseInt(object.delay_period, 10); + else if (typeof object.delay_period === "number") + message.delay_period = object.delay_period; + else if (typeof object.delay_period === "object") + message.delay_period = new $util.LongBits(object.delay_period.low >>> 0, object.delay_period.high >>> 0).toNumber(true); + if (object.signer != null) + message.signer = String(object.signer); return message; }; /** - * Creates a plain object from a QueryConnectionsRequest message. Also converts values to other types if specified. + * Creates a plain object from a MsgConnectionOpenInit message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.connection.v1.QueryConnectionsRequest + * @memberof ibc.core.connection.v1.MsgConnectionOpenInit * @static - * @param {ibc.core.connection.v1.QueryConnectionsRequest} message QueryConnectionsRequest + * @param {ibc.core.connection.v1.MsgConnectionOpenInit} message MsgConnectionOpenInit * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryConnectionsRequest.toObject = function toObject(message, options) { + MsgConnectionOpenInit.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.pagination = null; - if (message.pagination != null && message.hasOwnProperty("pagination")) - object.pagination = $root.cosmos.base.query.v1beta1.PageRequest.toObject(message.pagination, options); + if (options.defaults) { + object.client_id = ""; + object.counterparty = null; + object.version = null; + if ($util.Long) { + var long = new $util.Long(0, 0, true); + object.delay_period = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.delay_period = options.longs === String ? "0" : 0; + object.signer = ""; + } + if (message.client_id != null && message.hasOwnProperty("client_id")) + object.client_id = message.client_id; + if (message.counterparty != null && message.hasOwnProperty("counterparty")) + object.counterparty = $root.ibc.core.connection.v1.Counterparty.toObject(message.counterparty, options); + if (message.version != null && message.hasOwnProperty("version")) + object.version = $root.ibc.core.connection.v1.Version.toObject(message.version, options); + if (message.delay_period != null && message.hasOwnProperty("delay_period")) + if (typeof message.delay_period === "number") + object.delay_period = options.longs === String ? String(message.delay_period) : message.delay_period; + else + object.delay_period = options.longs === String ? $util.Long.prototype.toString.call(message.delay_period) : options.longs === Number ? new $util.LongBits(message.delay_period.low >>> 0, message.delay_period.high >>> 0).toNumber(true) : message.delay_period; + if (message.signer != null && message.hasOwnProperty("signer")) + object.signer = message.signer; return object; }; /** - * Converts this QueryConnectionsRequest to JSON. + * Converts this MsgConnectionOpenInit to JSON. * @function toJSON - * @memberof ibc.core.connection.v1.QueryConnectionsRequest + * @memberof ibc.core.connection.v1.MsgConnectionOpenInit * @instance * @returns {Object.} JSON object */ - QueryConnectionsRequest.prototype.toJSON = function toJSON() { + MsgConnectionOpenInit.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryConnectionsRequest; + return MsgConnectionOpenInit; })(); - v1.QueryConnectionsResponse = (function() { + v1.MsgConnectionOpenInitResponse = (function() { /** - * Properties of a QueryConnectionsResponse. + * Properties of a MsgConnectionOpenInitResponse. * @memberof ibc.core.connection.v1 - * @interface IQueryConnectionsResponse - * @property {Array.|null} [connections] QueryConnectionsResponse connections - * @property {cosmos.base.query.v1beta1.IPageResponse|null} [pagination] QueryConnectionsResponse pagination - * @property {ibc.core.client.v1.IHeight|null} [height] QueryConnectionsResponse height + * @interface IMsgConnectionOpenInitResponse */ /** - * Constructs a new QueryConnectionsResponse. + * Constructs a new MsgConnectionOpenInitResponse. * @memberof ibc.core.connection.v1 - * @classdesc Represents a QueryConnectionsResponse. - * @implements IQueryConnectionsResponse + * @classdesc Represents a MsgConnectionOpenInitResponse. + * @implements IMsgConnectionOpenInitResponse * @constructor - * @param {ibc.core.connection.v1.IQueryConnectionsResponse=} [properties] Properties to set + * @param {ibc.core.connection.v1.IMsgConnectionOpenInitResponse=} [properties] Properties to set */ - function QueryConnectionsResponse(properties) { - this.connections = []; + function MsgConnectionOpenInitResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -61985,93 +68186,51 @@ } /** - * QueryConnectionsResponse connections. - * @member {Array.} connections - * @memberof ibc.core.connection.v1.QueryConnectionsResponse - * @instance - */ - QueryConnectionsResponse.prototype.connections = $util.emptyArray; - - /** - * QueryConnectionsResponse pagination. - * @member {cosmos.base.query.v1beta1.IPageResponse|null|undefined} pagination - * @memberof ibc.core.connection.v1.QueryConnectionsResponse - * @instance - */ - QueryConnectionsResponse.prototype.pagination = null; - - /** - * QueryConnectionsResponse height. - * @member {ibc.core.client.v1.IHeight|null|undefined} height - * @memberof ibc.core.connection.v1.QueryConnectionsResponse - * @instance - */ - QueryConnectionsResponse.prototype.height = null; - - /** - * Encodes the specified QueryConnectionsResponse message. Does not implicitly {@link ibc.core.connection.v1.QueryConnectionsResponse.verify|verify} messages. + * Encodes the specified MsgConnectionOpenInitResponse message. Does not implicitly {@link ibc.core.connection.v1.MsgConnectionOpenInitResponse.verify|verify} messages. * @function encode - * @memberof ibc.core.connection.v1.QueryConnectionsResponse + * @memberof ibc.core.connection.v1.MsgConnectionOpenInitResponse * @static - * @param {ibc.core.connection.v1.IQueryConnectionsResponse} message QueryConnectionsResponse message or plain object to encode + * @param {ibc.core.connection.v1.IMsgConnectionOpenInitResponse} message MsgConnectionOpenInitResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryConnectionsResponse.encode = function encode(message, writer) { + MsgConnectionOpenInitResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.connections != null && message.connections.length) - for (var i = 0; i < message.connections.length; ++i) - $root.ibc.core.connection.v1.IdentifiedConnection.encode(message.connections[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.pagination != null && Object.hasOwnProperty.call(message, "pagination")) - $root.cosmos.base.query.v1beta1.PageResponse.encode(message.pagination, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.height != null && Object.hasOwnProperty.call(message, "height")) - $root.ibc.core.client.v1.Height.encode(message.height, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified QueryConnectionsResponse message, length delimited. Does not implicitly {@link ibc.core.connection.v1.QueryConnectionsResponse.verify|verify} messages. + * Encodes the specified MsgConnectionOpenInitResponse message, length delimited. Does not implicitly {@link ibc.core.connection.v1.MsgConnectionOpenInitResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.connection.v1.QueryConnectionsResponse + * @memberof ibc.core.connection.v1.MsgConnectionOpenInitResponse * @static - * @param {ibc.core.connection.v1.IQueryConnectionsResponse} message QueryConnectionsResponse message or plain object to encode + * @param {ibc.core.connection.v1.IMsgConnectionOpenInitResponse} message MsgConnectionOpenInitResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryConnectionsResponse.encodeDelimited = function encodeDelimited(message, writer) { + MsgConnectionOpenInitResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryConnectionsResponse message from the specified reader or buffer. + * Decodes a MsgConnectionOpenInitResponse message from the specified reader or buffer. * @function decode - * @memberof ibc.core.connection.v1.QueryConnectionsResponse + * @memberof ibc.core.connection.v1.MsgConnectionOpenInitResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.connection.v1.QueryConnectionsResponse} QueryConnectionsResponse + * @returns {ibc.core.connection.v1.MsgConnectionOpenInitResponse} MsgConnectionOpenInitResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryConnectionsResponse.decode = function decode(reader, length) { + MsgConnectionOpenInitResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.connection.v1.QueryConnectionsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.connection.v1.MsgConnectionOpenInitResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - if (!(message.connections && message.connections.length)) - message.connections = []; - message.connections.push($root.ibc.core.connection.v1.IdentifiedConnection.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = $root.cosmos.base.query.v1beta1.PageResponse.decode(reader, reader.uint32()); - break; - case 3: - message.height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); - break; default: reader.skipType(tag & 7); break; @@ -62081,152 +68240,107 @@ }; /** - * Decodes a QueryConnectionsResponse message from the specified reader or buffer, length delimited. + * Decodes a MsgConnectionOpenInitResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.connection.v1.QueryConnectionsResponse + * @memberof ibc.core.connection.v1.MsgConnectionOpenInitResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.connection.v1.QueryConnectionsResponse} QueryConnectionsResponse + * @returns {ibc.core.connection.v1.MsgConnectionOpenInitResponse} MsgConnectionOpenInitResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryConnectionsResponse.decodeDelimited = function decodeDelimited(reader) { + MsgConnectionOpenInitResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryConnectionsResponse message. + * Verifies a MsgConnectionOpenInitResponse message. * @function verify - * @memberof ibc.core.connection.v1.QueryConnectionsResponse + * @memberof ibc.core.connection.v1.MsgConnectionOpenInitResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryConnectionsResponse.verify = function verify(message) { + MsgConnectionOpenInitResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.connections != null && message.hasOwnProperty("connections")) { - if (!Array.isArray(message.connections)) - return "connections: array expected"; - for (var i = 0; i < message.connections.length; ++i) { - var error = $root.ibc.core.connection.v1.IdentifiedConnection.verify(message.connections[i]); - if (error) - return "connections." + error; - } - } - if (message.pagination != null && message.hasOwnProperty("pagination")) { - var error = $root.cosmos.base.query.v1beta1.PageResponse.verify(message.pagination); - if (error) - return "pagination." + error; - } - if (message.height != null && message.hasOwnProperty("height")) { - var error = $root.ibc.core.client.v1.Height.verify(message.height); - if (error) - return "height." + error; - } return null; }; /** - * Creates a QueryConnectionsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a MsgConnectionOpenInitResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.connection.v1.QueryConnectionsResponse + * @memberof ibc.core.connection.v1.MsgConnectionOpenInitResponse * @static * @param {Object.} object Plain object - * @returns {ibc.core.connection.v1.QueryConnectionsResponse} QueryConnectionsResponse + * @returns {ibc.core.connection.v1.MsgConnectionOpenInitResponse} MsgConnectionOpenInitResponse */ - QueryConnectionsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.connection.v1.QueryConnectionsResponse) + MsgConnectionOpenInitResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.connection.v1.MsgConnectionOpenInitResponse) return object; - var message = new $root.ibc.core.connection.v1.QueryConnectionsResponse(); - if (object.connections) { - if (!Array.isArray(object.connections)) - throw TypeError(".ibc.core.connection.v1.QueryConnectionsResponse.connections: array expected"); - message.connections = []; - for (var i = 0; i < object.connections.length; ++i) { - if (typeof object.connections[i] !== "object") - throw TypeError(".ibc.core.connection.v1.QueryConnectionsResponse.connections: object expected"); - message.connections[i] = $root.ibc.core.connection.v1.IdentifiedConnection.fromObject(object.connections[i]); - } - } - if (object.pagination != null) { - if (typeof object.pagination !== "object") - throw TypeError(".ibc.core.connection.v1.QueryConnectionsResponse.pagination: object expected"); - message.pagination = $root.cosmos.base.query.v1beta1.PageResponse.fromObject(object.pagination); - } - if (object.height != null) { - if (typeof object.height !== "object") - throw TypeError(".ibc.core.connection.v1.QueryConnectionsResponse.height: object expected"); - message.height = $root.ibc.core.client.v1.Height.fromObject(object.height); - } - return message; + return new $root.ibc.core.connection.v1.MsgConnectionOpenInitResponse(); }; /** - * Creates a plain object from a QueryConnectionsResponse message. Also converts values to other types if specified. + * Creates a plain object from a MsgConnectionOpenInitResponse message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.connection.v1.QueryConnectionsResponse + * @memberof ibc.core.connection.v1.MsgConnectionOpenInitResponse * @static - * @param {ibc.core.connection.v1.QueryConnectionsResponse} message QueryConnectionsResponse + * @param {ibc.core.connection.v1.MsgConnectionOpenInitResponse} message MsgConnectionOpenInitResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryConnectionsResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.connections = []; - if (options.defaults) { - object.pagination = null; - object.height = null; - } - if (message.connections && message.connections.length) { - object.connections = []; - for (var j = 0; j < message.connections.length; ++j) - object.connections[j] = $root.ibc.core.connection.v1.IdentifiedConnection.toObject(message.connections[j], options); - } - if (message.pagination != null && message.hasOwnProperty("pagination")) - object.pagination = $root.cosmos.base.query.v1beta1.PageResponse.toObject(message.pagination, options); - if (message.height != null && message.hasOwnProperty("height")) - object.height = $root.ibc.core.client.v1.Height.toObject(message.height, options); - return object; + MsgConnectionOpenInitResponse.toObject = function toObject() { + return {}; }; /** - * Converts this QueryConnectionsResponse to JSON. + * Converts this MsgConnectionOpenInitResponse to JSON. * @function toJSON - * @memberof ibc.core.connection.v1.QueryConnectionsResponse + * @memberof ibc.core.connection.v1.MsgConnectionOpenInitResponse * @instance * @returns {Object.} JSON object */ - QueryConnectionsResponse.prototype.toJSON = function toJSON() { + MsgConnectionOpenInitResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryConnectionsResponse; + return MsgConnectionOpenInitResponse; })(); - v1.QueryClientConnectionsRequest = (function() { + v1.MsgConnectionOpenTry = (function() { /** - * Properties of a QueryClientConnectionsRequest. + * Properties of a MsgConnectionOpenTry. * @memberof ibc.core.connection.v1 - * @interface IQueryClientConnectionsRequest - * @property {string|null} [client_id] QueryClientConnectionsRequest client_id + * @interface IMsgConnectionOpenTry + * @property {string|null} [client_id] MsgConnectionOpenTry client_id + * @property {string|null} [previous_connection_id] MsgConnectionOpenTry previous_connection_id + * @property {google.protobuf.IAny|null} [client_state] MsgConnectionOpenTry client_state + * @property {ibc.core.connection.v1.ICounterparty|null} [counterparty] MsgConnectionOpenTry counterparty + * @property {Long|null} [delay_period] MsgConnectionOpenTry delay_period + * @property {Array.|null} [counterparty_versions] MsgConnectionOpenTry counterparty_versions + * @property {ibc.core.client.v1.IHeight|null} [proof_height] MsgConnectionOpenTry proof_height + * @property {Uint8Array|null} [proof_init] MsgConnectionOpenTry proof_init + * @property {Uint8Array|null} [proof_client] MsgConnectionOpenTry proof_client + * @property {Uint8Array|null} [proof_consensus] MsgConnectionOpenTry proof_consensus + * @property {ibc.core.client.v1.IHeight|null} [consensus_height] MsgConnectionOpenTry consensus_height + * @property {string|null} [signer] MsgConnectionOpenTry signer + * @property {Uint8Array|null} [host_consensus_state_proof] MsgConnectionOpenTry host_consensus_state_proof */ /** - * Constructs a new QueryClientConnectionsRequest. + * Constructs a new MsgConnectionOpenTry. * @memberof ibc.core.connection.v1 - * @classdesc Represents a QueryClientConnectionsRequest. - * @implements IQueryClientConnectionsRequest + * @classdesc Represents a MsgConnectionOpenTry. + * @implements IMsgConnectionOpenTry * @constructor - * @param {ibc.core.connection.v1.IQueryClientConnectionsRequest=} [properties] Properties to set + * @param {ibc.core.connection.v1.IMsgConnectionOpenTry=} [properties] Properties to set */ - function QueryClientConnectionsRequest(properties) { + function MsgConnectionOpenTry(properties) { + this.counterparty_versions = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -62234,64 +68348,223 @@ } /** - * QueryClientConnectionsRequest client_id. + * MsgConnectionOpenTry client_id. * @member {string} client_id - * @memberof ibc.core.connection.v1.QueryClientConnectionsRequest + * @memberof ibc.core.connection.v1.MsgConnectionOpenTry * @instance */ - QueryClientConnectionsRequest.prototype.client_id = ""; + MsgConnectionOpenTry.prototype.client_id = ""; /** - * Encodes the specified QueryClientConnectionsRequest message. Does not implicitly {@link ibc.core.connection.v1.QueryClientConnectionsRequest.verify|verify} messages. + * MsgConnectionOpenTry previous_connection_id. + * @member {string} previous_connection_id + * @memberof ibc.core.connection.v1.MsgConnectionOpenTry + * @instance + */ + MsgConnectionOpenTry.prototype.previous_connection_id = ""; + + /** + * MsgConnectionOpenTry client_state. + * @member {google.protobuf.IAny|null|undefined} client_state + * @memberof ibc.core.connection.v1.MsgConnectionOpenTry + * @instance + */ + MsgConnectionOpenTry.prototype.client_state = null; + + /** + * MsgConnectionOpenTry counterparty. + * @member {ibc.core.connection.v1.ICounterparty|null|undefined} counterparty + * @memberof ibc.core.connection.v1.MsgConnectionOpenTry + * @instance + */ + MsgConnectionOpenTry.prototype.counterparty = null; + + /** + * MsgConnectionOpenTry delay_period. + * @member {Long} delay_period + * @memberof ibc.core.connection.v1.MsgConnectionOpenTry + * @instance + */ + MsgConnectionOpenTry.prototype.delay_period = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + + /** + * MsgConnectionOpenTry counterparty_versions. + * @member {Array.} counterparty_versions + * @memberof ibc.core.connection.v1.MsgConnectionOpenTry + * @instance + */ + MsgConnectionOpenTry.prototype.counterparty_versions = $util.emptyArray; + + /** + * MsgConnectionOpenTry proof_height. + * @member {ibc.core.client.v1.IHeight|null|undefined} proof_height + * @memberof ibc.core.connection.v1.MsgConnectionOpenTry + * @instance + */ + MsgConnectionOpenTry.prototype.proof_height = null; + + /** + * MsgConnectionOpenTry proof_init. + * @member {Uint8Array} proof_init + * @memberof ibc.core.connection.v1.MsgConnectionOpenTry + * @instance + */ + MsgConnectionOpenTry.prototype.proof_init = $util.newBuffer([]); + + /** + * MsgConnectionOpenTry proof_client. + * @member {Uint8Array} proof_client + * @memberof ibc.core.connection.v1.MsgConnectionOpenTry + * @instance + */ + MsgConnectionOpenTry.prototype.proof_client = $util.newBuffer([]); + + /** + * MsgConnectionOpenTry proof_consensus. + * @member {Uint8Array} proof_consensus + * @memberof ibc.core.connection.v1.MsgConnectionOpenTry + * @instance + */ + MsgConnectionOpenTry.prototype.proof_consensus = $util.newBuffer([]); + + /** + * MsgConnectionOpenTry consensus_height. + * @member {ibc.core.client.v1.IHeight|null|undefined} consensus_height + * @memberof ibc.core.connection.v1.MsgConnectionOpenTry + * @instance + */ + MsgConnectionOpenTry.prototype.consensus_height = null; + + /** + * MsgConnectionOpenTry signer. + * @member {string} signer + * @memberof ibc.core.connection.v1.MsgConnectionOpenTry + * @instance + */ + MsgConnectionOpenTry.prototype.signer = ""; + + /** + * MsgConnectionOpenTry host_consensus_state_proof. + * @member {Uint8Array} host_consensus_state_proof + * @memberof ibc.core.connection.v1.MsgConnectionOpenTry + * @instance + */ + MsgConnectionOpenTry.prototype.host_consensus_state_proof = $util.newBuffer([]); + + /** + * Encodes the specified MsgConnectionOpenTry message. Does not implicitly {@link ibc.core.connection.v1.MsgConnectionOpenTry.verify|verify} messages. * @function encode - * @memberof ibc.core.connection.v1.QueryClientConnectionsRequest + * @memberof ibc.core.connection.v1.MsgConnectionOpenTry * @static - * @param {ibc.core.connection.v1.IQueryClientConnectionsRequest} message QueryClientConnectionsRequest message or plain object to encode + * @param {ibc.core.connection.v1.IMsgConnectionOpenTry} message MsgConnectionOpenTry message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryClientConnectionsRequest.encode = function encode(message, writer) { + MsgConnectionOpenTry.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.client_id != null && Object.hasOwnProperty.call(message, "client_id")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.client_id); + if (message.previous_connection_id != null && Object.hasOwnProperty.call(message, "previous_connection_id")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.previous_connection_id); + if (message.client_state != null && Object.hasOwnProperty.call(message, "client_state")) + $root.google.protobuf.Any.encode(message.client_state, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.counterparty != null && Object.hasOwnProperty.call(message, "counterparty")) + $root.ibc.core.connection.v1.Counterparty.encode(message.counterparty, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.delay_period != null && Object.hasOwnProperty.call(message, "delay_period")) + writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.delay_period); + if (message.counterparty_versions != null && message.counterparty_versions.length) + for (var i = 0; i < message.counterparty_versions.length; ++i) + $root.ibc.core.connection.v1.Version.encode(message.counterparty_versions[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.proof_height != null && Object.hasOwnProperty.call(message, "proof_height")) + $root.ibc.core.client.v1.Height.encode(message.proof_height, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.proof_init != null && Object.hasOwnProperty.call(message, "proof_init")) + writer.uint32(/* id 8, wireType 2 =*/66).bytes(message.proof_init); + if (message.proof_client != null && Object.hasOwnProperty.call(message, "proof_client")) + writer.uint32(/* id 9, wireType 2 =*/74).bytes(message.proof_client); + if (message.proof_consensus != null && Object.hasOwnProperty.call(message, "proof_consensus")) + writer.uint32(/* id 10, wireType 2 =*/82).bytes(message.proof_consensus); + if (message.consensus_height != null && Object.hasOwnProperty.call(message, "consensus_height")) + $root.ibc.core.client.v1.Height.encode(message.consensus_height, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); + if (message.signer != null && Object.hasOwnProperty.call(message, "signer")) + writer.uint32(/* id 12, wireType 2 =*/98).string(message.signer); + if (message.host_consensus_state_proof != null && Object.hasOwnProperty.call(message, "host_consensus_state_proof")) + writer.uint32(/* id 13, wireType 2 =*/106).bytes(message.host_consensus_state_proof); return writer; }; /** - * Encodes the specified QueryClientConnectionsRequest message, length delimited. Does not implicitly {@link ibc.core.connection.v1.QueryClientConnectionsRequest.verify|verify} messages. + * Encodes the specified MsgConnectionOpenTry message, length delimited. Does not implicitly {@link ibc.core.connection.v1.MsgConnectionOpenTry.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.connection.v1.QueryClientConnectionsRequest + * @memberof ibc.core.connection.v1.MsgConnectionOpenTry * @static - * @param {ibc.core.connection.v1.IQueryClientConnectionsRequest} message QueryClientConnectionsRequest message or plain object to encode + * @param {ibc.core.connection.v1.IMsgConnectionOpenTry} message MsgConnectionOpenTry message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryClientConnectionsRequest.encodeDelimited = function encodeDelimited(message, writer) { + MsgConnectionOpenTry.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryClientConnectionsRequest message from the specified reader or buffer. + * Decodes a MsgConnectionOpenTry message from the specified reader or buffer. * @function decode - * @memberof ibc.core.connection.v1.QueryClientConnectionsRequest + * @memberof ibc.core.connection.v1.MsgConnectionOpenTry * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.connection.v1.QueryClientConnectionsRequest} QueryClientConnectionsRequest + * @returns {ibc.core.connection.v1.MsgConnectionOpenTry} MsgConnectionOpenTry * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryClientConnectionsRequest.decode = function decode(reader, length) { + MsgConnectionOpenTry.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.connection.v1.QueryClientConnectionsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.connection.v1.MsgConnectionOpenTry(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: message.client_id = reader.string(); break; + case 2: + message.previous_connection_id = reader.string(); + break; + case 3: + message.client_state = $root.google.protobuf.Any.decode(reader, reader.uint32()); + break; + case 4: + message.counterparty = $root.ibc.core.connection.v1.Counterparty.decode(reader, reader.uint32()); + break; + case 5: + message.delay_period = reader.uint64(); + break; + case 6: + if (!(message.counterparty_versions && message.counterparty_versions.length)) + message.counterparty_versions = []; + message.counterparty_versions.push($root.ibc.core.connection.v1.Version.decode(reader, reader.uint32())); + break; + case 7: + message.proof_height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); + break; + case 8: + message.proof_init = reader.bytes(); + break; + case 9: + message.proof_client = reader.bytes(); + break; + case 10: + message.proof_consensus = reader.bytes(); + break; + case 11: + message.consensus_height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); + break; + case 12: + message.signer = reader.string(); + break; + case 13: + message.host_consensus_state_proof = reader.bytes(); + break; default: reader.skipType(tag & 7); break; @@ -62301,110 +68574,291 @@ }; /** - * Decodes a QueryClientConnectionsRequest message from the specified reader or buffer, length delimited. + * Decodes a MsgConnectionOpenTry message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.connection.v1.QueryClientConnectionsRequest + * @memberof ibc.core.connection.v1.MsgConnectionOpenTry * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.connection.v1.QueryClientConnectionsRequest} QueryClientConnectionsRequest + * @returns {ibc.core.connection.v1.MsgConnectionOpenTry} MsgConnectionOpenTry * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryClientConnectionsRequest.decodeDelimited = function decodeDelimited(reader) { + MsgConnectionOpenTry.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryClientConnectionsRequest message. + * Verifies a MsgConnectionOpenTry message. * @function verify - * @memberof ibc.core.connection.v1.QueryClientConnectionsRequest + * @memberof ibc.core.connection.v1.MsgConnectionOpenTry * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryClientConnectionsRequest.verify = function verify(message) { + MsgConnectionOpenTry.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.client_id != null && message.hasOwnProperty("client_id")) if (!$util.isString(message.client_id)) return "client_id: string expected"; + if (message.previous_connection_id != null && message.hasOwnProperty("previous_connection_id")) + if (!$util.isString(message.previous_connection_id)) + return "previous_connection_id: string expected"; + if (message.client_state != null && message.hasOwnProperty("client_state")) { + var error = $root.google.protobuf.Any.verify(message.client_state); + if (error) + return "client_state." + error; + } + if (message.counterparty != null && message.hasOwnProperty("counterparty")) { + var error = $root.ibc.core.connection.v1.Counterparty.verify(message.counterparty); + if (error) + return "counterparty." + error; + } + if (message.delay_period != null && message.hasOwnProperty("delay_period")) + if (!$util.isInteger(message.delay_period) && !(message.delay_period && $util.isInteger(message.delay_period.low) && $util.isInteger(message.delay_period.high))) + return "delay_period: integer|Long expected"; + if (message.counterparty_versions != null && message.hasOwnProperty("counterparty_versions")) { + if (!Array.isArray(message.counterparty_versions)) + return "counterparty_versions: array expected"; + for (var i = 0; i < message.counterparty_versions.length; ++i) { + var error = $root.ibc.core.connection.v1.Version.verify(message.counterparty_versions[i]); + if (error) + return "counterparty_versions." + error; + } + } + if (message.proof_height != null && message.hasOwnProperty("proof_height")) { + var error = $root.ibc.core.client.v1.Height.verify(message.proof_height); + if (error) + return "proof_height." + error; + } + if (message.proof_init != null && message.hasOwnProperty("proof_init")) + if (!(message.proof_init && typeof message.proof_init.length === "number" || $util.isString(message.proof_init))) + return "proof_init: buffer expected"; + if (message.proof_client != null && message.hasOwnProperty("proof_client")) + if (!(message.proof_client && typeof message.proof_client.length === "number" || $util.isString(message.proof_client))) + return "proof_client: buffer expected"; + if (message.proof_consensus != null && message.hasOwnProperty("proof_consensus")) + if (!(message.proof_consensus && typeof message.proof_consensus.length === "number" || $util.isString(message.proof_consensus))) + return "proof_consensus: buffer expected"; + if (message.consensus_height != null && message.hasOwnProperty("consensus_height")) { + var error = $root.ibc.core.client.v1.Height.verify(message.consensus_height); + if (error) + return "consensus_height." + error; + } + if (message.signer != null && message.hasOwnProperty("signer")) + if (!$util.isString(message.signer)) + return "signer: string expected"; + if (message.host_consensus_state_proof != null && message.hasOwnProperty("host_consensus_state_proof")) + if (!(message.host_consensus_state_proof && typeof message.host_consensus_state_proof.length === "number" || $util.isString(message.host_consensus_state_proof))) + return "host_consensus_state_proof: buffer expected"; return null; }; /** - * Creates a QueryClientConnectionsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MsgConnectionOpenTry message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.connection.v1.QueryClientConnectionsRequest + * @memberof ibc.core.connection.v1.MsgConnectionOpenTry * @static * @param {Object.} object Plain object - * @returns {ibc.core.connection.v1.QueryClientConnectionsRequest} QueryClientConnectionsRequest + * @returns {ibc.core.connection.v1.MsgConnectionOpenTry} MsgConnectionOpenTry */ - QueryClientConnectionsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.connection.v1.QueryClientConnectionsRequest) + MsgConnectionOpenTry.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.connection.v1.MsgConnectionOpenTry) return object; - var message = new $root.ibc.core.connection.v1.QueryClientConnectionsRequest(); + var message = new $root.ibc.core.connection.v1.MsgConnectionOpenTry(); if (object.client_id != null) message.client_id = String(object.client_id); + if (object.previous_connection_id != null) + message.previous_connection_id = String(object.previous_connection_id); + if (object.client_state != null) { + if (typeof object.client_state !== "object") + throw TypeError(".ibc.core.connection.v1.MsgConnectionOpenTry.client_state: object expected"); + message.client_state = $root.google.protobuf.Any.fromObject(object.client_state); + } + if (object.counterparty != null) { + if (typeof object.counterparty !== "object") + throw TypeError(".ibc.core.connection.v1.MsgConnectionOpenTry.counterparty: object expected"); + message.counterparty = $root.ibc.core.connection.v1.Counterparty.fromObject(object.counterparty); + } + if (object.delay_period != null) + if ($util.Long) + (message.delay_period = $util.Long.fromValue(object.delay_period)).unsigned = true; + else if (typeof object.delay_period === "string") + message.delay_period = parseInt(object.delay_period, 10); + else if (typeof object.delay_period === "number") + message.delay_period = object.delay_period; + else if (typeof object.delay_period === "object") + message.delay_period = new $util.LongBits(object.delay_period.low >>> 0, object.delay_period.high >>> 0).toNumber(true); + if (object.counterparty_versions) { + if (!Array.isArray(object.counterparty_versions)) + throw TypeError(".ibc.core.connection.v1.MsgConnectionOpenTry.counterparty_versions: array expected"); + message.counterparty_versions = []; + for (var i = 0; i < object.counterparty_versions.length; ++i) { + if (typeof object.counterparty_versions[i] !== "object") + throw TypeError(".ibc.core.connection.v1.MsgConnectionOpenTry.counterparty_versions: object expected"); + message.counterparty_versions[i] = $root.ibc.core.connection.v1.Version.fromObject(object.counterparty_versions[i]); + } + } + if (object.proof_height != null) { + if (typeof object.proof_height !== "object") + throw TypeError(".ibc.core.connection.v1.MsgConnectionOpenTry.proof_height: object expected"); + message.proof_height = $root.ibc.core.client.v1.Height.fromObject(object.proof_height); + } + if (object.proof_init != null) + if (typeof object.proof_init === "string") + $util.base64.decode(object.proof_init, message.proof_init = $util.newBuffer($util.base64.length(object.proof_init)), 0); + else if (object.proof_init.length) + message.proof_init = object.proof_init; + if (object.proof_client != null) + if (typeof object.proof_client === "string") + $util.base64.decode(object.proof_client, message.proof_client = $util.newBuffer($util.base64.length(object.proof_client)), 0); + else if (object.proof_client.length) + message.proof_client = object.proof_client; + if (object.proof_consensus != null) + if (typeof object.proof_consensus === "string") + $util.base64.decode(object.proof_consensus, message.proof_consensus = $util.newBuffer($util.base64.length(object.proof_consensus)), 0); + else if (object.proof_consensus.length) + message.proof_consensus = object.proof_consensus; + if (object.consensus_height != null) { + if (typeof object.consensus_height !== "object") + throw TypeError(".ibc.core.connection.v1.MsgConnectionOpenTry.consensus_height: object expected"); + message.consensus_height = $root.ibc.core.client.v1.Height.fromObject(object.consensus_height); + } + if (object.signer != null) + message.signer = String(object.signer); + if (object.host_consensus_state_proof != null) + if (typeof object.host_consensus_state_proof === "string") + $util.base64.decode(object.host_consensus_state_proof, message.host_consensus_state_proof = $util.newBuffer($util.base64.length(object.host_consensus_state_proof)), 0); + else if (object.host_consensus_state_proof.length) + message.host_consensus_state_proof = object.host_consensus_state_proof; return message; }; /** - * Creates a plain object from a QueryClientConnectionsRequest message. Also converts values to other types if specified. + * Creates a plain object from a MsgConnectionOpenTry message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.connection.v1.QueryClientConnectionsRequest + * @memberof ibc.core.connection.v1.MsgConnectionOpenTry * @static - * @param {ibc.core.connection.v1.QueryClientConnectionsRequest} message QueryClientConnectionsRequest + * @param {ibc.core.connection.v1.MsgConnectionOpenTry} message MsgConnectionOpenTry * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryClientConnectionsRequest.toObject = function toObject(message, options) { + MsgConnectionOpenTry.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) + if (options.arrays || options.defaults) + object.counterparty_versions = []; + if (options.defaults) { object.client_id = ""; + object.previous_connection_id = ""; + object.client_state = null; + object.counterparty = null; + if ($util.Long) { + var long = new $util.Long(0, 0, true); + object.delay_period = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.delay_period = options.longs === String ? "0" : 0; + object.proof_height = null; + if (options.bytes === String) + object.proof_init = ""; + else { + object.proof_init = []; + if (options.bytes !== Array) + object.proof_init = $util.newBuffer(object.proof_init); + } + if (options.bytes === String) + object.proof_client = ""; + else { + object.proof_client = []; + if (options.bytes !== Array) + object.proof_client = $util.newBuffer(object.proof_client); + } + if (options.bytes === String) + object.proof_consensus = ""; + else { + object.proof_consensus = []; + if (options.bytes !== Array) + object.proof_consensus = $util.newBuffer(object.proof_consensus); + } + object.consensus_height = null; + object.signer = ""; + if (options.bytes === String) + object.host_consensus_state_proof = ""; + else { + object.host_consensus_state_proof = []; + if (options.bytes !== Array) + object.host_consensus_state_proof = $util.newBuffer(object.host_consensus_state_proof); + } + } if (message.client_id != null && message.hasOwnProperty("client_id")) object.client_id = message.client_id; + if (message.previous_connection_id != null && message.hasOwnProperty("previous_connection_id")) + object.previous_connection_id = message.previous_connection_id; + if (message.client_state != null && message.hasOwnProperty("client_state")) + object.client_state = $root.google.protobuf.Any.toObject(message.client_state, options); + if (message.counterparty != null && message.hasOwnProperty("counterparty")) + object.counterparty = $root.ibc.core.connection.v1.Counterparty.toObject(message.counterparty, options); + if (message.delay_period != null && message.hasOwnProperty("delay_period")) + if (typeof message.delay_period === "number") + object.delay_period = options.longs === String ? String(message.delay_period) : message.delay_period; + else + object.delay_period = options.longs === String ? $util.Long.prototype.toString.call(message.delay_period) : options.longs === Number ? new $util.LongBits(message.delay_period.low >>> 0, message.delay_period.high >>> 0).toNumber(true) : message.delay_period; + if (message.counterparty_versions && message.counterparty_versions.length) { + object.counterparty_versions = []; + for (var j = 0; j < message.counterparty_versions.length; ++j) + object.counterparty_versions[j] = $root.ibc.core.connection.v1.Version.toObject(message.counterparty_versions[j], options); + } + if (message.proof_height != null && message.hasOwnProperty("proof_height")) + object.proof_height = $root.ibc.core.client.v1.Height.toObject(message.proof_height, options); + if (message.proof_init != null && message.hasOwnProperty("proof_init")) + object.proof_init = options.bytes === String ? $util.base64.encode(message.proof_init, 0, message.proof_init.length) : options.bytes === Array ? Array.prototype.slice.call(message.proof_init) : message.proof_init; + if (message.proof_client != null && message.hasOwnProperty("proof_client")) + object.proof_client = options.bytes === String ? $util.base64.encode(message.proof_client, 0, message.proof_client.length) : options.bytes === Array ? Array.prototype.slice.call(message.proof_client) : message.proof_client; + if (message.proof_consensus != null && message.hasOwnProperty("proof_consensus")) + object.proof_consensus = options.bytes === String ? $util.base64.encode(message.proof_consensus, 0, message.proof_consensus.length) : options.bytes === Array ? Array.prototype.slice.call(message.proof_consensus) : message.proof_consensus; + if (message.consensus_height != null && message.hasOwnProperty("consensus_height")) + object.consensus_height = $root.ibc.core.client.v1.Height.toObject(message.consensus_height, options); + if (message.signer != null && message.hasOwnProperty("signer")) + object.signer = message.signer; + if (message.host_consensus_state_proof != null && message.hasOwnProperty("host_consensus_state_proof")) + object.host_consensus_state_proof = options.bytes === String ? $util.base64.encode(message.host_consensus_state_proof, 0, message.host_consensus_state_proof.length) : options.bytes === Array ? Array.prototype.slice.call(message.host_consensus_state_proof) : message.host_consensus_state_proof; return object; }; /** - * Converts this QueryClientConnectionsRequest to JSON. + * Converts this MsgConnectionOpenTry to JSON. * @function toJSON - * @memberof ibc.core.connection.v1.QueryClientConnectionsRequest + * @memberof ibc.core.connection.v1.MsgConnectionOpenTry * @instance * @returns {Object.} JSON object */ - QueryClientConnectionsRequest.prototype.toJSON = function toJSON() { + MsgConnectionOpenTry.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryClientConnectionsRequest; + return MsgConnectionOpenTry; })(); - v1.QueryClientConnectionsResponse = (function() { + v1.MsgConnectionOpenTryResponse = (function() { /** - * Properties of a QueryClientConnectionsResponse. + * Properties of a MsgConnectionOpenTryResponse. * @memberof ibc.core.connection.v1 - * @interface IQueryClientConnectionsResponse - * @property {Array.|null} [connection_paths] QueryClientConnectionsResponse connection_paths - * @property {Uint8Array|null} [proof] QueryClientConnectionsResponse proof - * @property {ibc.core.client.v1.IHeight|null} [proof_height] QueryClientConnectionsResponse proof_height + * @interface IMsgConnectionOpenTryResponse */ /** - * Constructs a new QueryClientConnectionsResponse. + * Constructs a new MsgConnectionOpenTryResponse. * @memberof ibc.core.connection.v1 - * @classdesc Represents a QueryClientConnectionsResponse. - * @implements IQueryClientConnectionsResponse + * @classdesc Represents a MsgConnectionOpenTryResponse. + * @implements IMsgConnectionOpenTryResponse * @constructor - * @param {ibc.core.connection.v1.IQueryClientConnectionsResponse=} [properties] Properties to set + * @param {ibc.core.connection.v1.IMsgConnectionOpenTryResponse=} [properties] Properties to set */ - function QueryClientConnectionsResponse(properties) { - this.connection_paths = []; + function MsgConnectionOpenTryResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -62412,93 +68866,51 @@ } /** - * QueryClientConnectionsResponse connection_paths. - * @member {Array.} connection_paths - * @memberof ibc.core.connection.v1.QueryClientConnectionsResponse - * @instance - */ - QueryClientConnectionsResponse.prototype.connection_paths = $util.emptyArray; - - /** - * QueryClientConnectionsResponse proof. - * @member {Uint8Array} proof - * @memberof ibc.core.connection.v1.QueryClientConnectionsResponse - * @instance - */ - QueryClientConnectionsResponse.prototype.proof = $util.newBuffer([]); - - /** - * QueryClientConnectionsResponse proof_height. - * @member {ibc.core.client.v1.IHeight|null|undefined} proof_height - * @memberof ibc.core.connection.v1.QueryClientConnectionsResponse - * @instance - */ - QueryClientConnectionsResponse.prototype.proof_height = null; - - /** - * Encodes the specified QueryClientConnectionsResponse message. Does not implicitly {@link ibc.core.connection.v1.QueryClientConnectionsResponse.verify|verify} messages. + * Encodes the specified MsgConnectionOpenTryResponse message. Does not implicitly {@link ibc.core.connection.v1.MsgConnectionOpenTryResponse.verify|verify} messages. * @function encode - * @memberof ibc.core.connection.v1.QueryClientConnectionsResponse + * @memberof ibc.core.connection.v1.MsgConnectionOpenTryResponse * @static - * @param {ibc.core.connection.v1.IQueryClientConnectionsResponse} message QueryClientConnectionsResponse message or plain object to encode + * @param {ibc.core.connection.v1.IMsgConnectionOpenTryResponse} message MsgConnectionOpenTryResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryClientConnectionsResponse.encode = function encode(message, writer) { + MsgConnectionOpenTryResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.connection_paths != null && message.connection_paths.length) - for (var i = 0; i < message.connection_paths.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.connection_paths[i]); - if (message.proof != null && Object.hasOwnProperty.call(message, "proof")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.proof); - if (message.proof_height != null && Object.hasOwnProperty.call(message, "proof_height")) - $root.ibc.core.client.v1.Height.encode(message.proof_height, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified QueryClientConnectionsResponse message, length delimited. Does not implicitly {@link ibc.core.connection.v1.QueryClientConnectionsResponse.verify|verify} messages. + * Encodes the specified MsgConnectionOpenTryResponse message, length delimited. Does not implicitly {@link ibc.core.connection.v1.MsgConnectionOpenTryResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.connection.v1.QueryClientConnectionsResponse + * @memberof ibc.core.connection.v1.MsgConnectionOpenTryResponse * @static - * @param {ibc.core.connection.v1.IQueryClientConnectionsResponse} message QueryClientConnectionsResponse message or plain object to encode + * @param {ibc.core.connection.v1.IMsgConnectionOpenTryResponse} message MsgConnectionOpenTryResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryClientConnectionsResponse.encodeDelimited = function encodeDelimited(message, writer) { + MsgConnectionOpenTryResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryClientConnectionsResponse message from the specified reader or buffer. + * Decodes a MsgConnectionOpenTryResponse message from the specified reader or buffer. * @function decode - * @memberof ibc.core.connection.v1.QueryClientConnectionsResponse + * @memberof ibc.core.connection.v1.MsgConnectionOpenTryResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.connection.v1.QueryClientConnectionsResponse} QueryClientConnectionsResponse + * @returns {ibc.core.connection.v1.MsgConnectionOpenTryResponse} MsgConnectionOpenTryResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryClientConnectionsResponse.decode = function decode(reader, length) { + MsgConnectionOpenTryResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.connection.v1.QueryClientConnectionsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.connection.v1.MsgConnectionOpenTryResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - if (!(message.connection_paths && message.connection_paths.length)) - message.connection_paths = []; - message.connection_paths.push(reader.string()); - break; - case 2: - message.proof = reader.bytes(); - break; - case 3: - message.proof_height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); - break; default: reader.skipType(tag & 7); break; @@ -62508,151 +68920,104 @@ }; /** - * Decodes a QueryClientConnectionsResponse message from the specified reader or buffer, length delimited. + * Decodes a MsgConnectionOpenTryResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.connection.v1.QueryClientConnectionsResponse + * @memberof ibc.core.connection.v1.MsgConnectionOpenTryResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.connection.v1.QueryClientConnectionsResponse} QueryClientConnectionsResponse + * @returns {ibc.core.connection.v1.MsgConnectionOpenTryResponse} MsgConnectionOpenTryResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryClientConnectionsResponse.decodeDelimited = function decodeDelimited(reader) { + MsgConnectionOpenTryResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryClientConnectionsResponse message. + * Verifies a MsgConnectionOpenTryResponse message. * @function verify - * @memberof ibc.core.connection.v1.QueryClientConnectionsResponse + * @memberof ibc.core.connection.v1.MsgConnectionOpenTryResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryClientConnectionsResponse.verify = function verify(message) { + MsgConnectionOpenTryResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.connection_paths != null && message.hasOwnProperty("connection_paths")) { - if (!Array.isArray(message.connection_paths)) - return "connection_paths: array expected"; - for (var i = 0; i < message.connection_paths.length; ++i) - if (!$util.isString(message.connection_paths[i])) - return "connection_paths: string[] expected"; - } - if (message.proof != null && message.hasOwnProperty("proof")) - if (!(message.proof && typeof message.proof.length === "number" || $util.isString(message.proof))) - return "proof: buffer expected"; - if (message.proof_height != null && message.hasOwnProperty("proof_height")) { - var error = $root.ibc.core.client.v1.Height.verify(message.proof_height); - if (error) - return "proof_height." + error; - } return null; }; /** - * Creates a QueryClientConnectionsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a MsgConnectionOpenTryResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.connection.v1.QueryClientConnectionsResponse + * @memberof ibc.core.connection.v1.MsgConnectionOpenTryResponse * @static * @param {Object.} object Plain object - * @returns {ibc.core.connection.v1.QueryClientConnectionsResponse} QueryClientConnectionsResponse + * @returns {ibc.core.connection.v1.MsgConnectionOpenTryResponse} MsgConnectionOpenTryResponse */ - QueryClientConnectionsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.connection.v1.QueryClientConnectionsResponse) + MsgConnectionOpenTryResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.connection.v1.MsgConnectionOpenTryResponse) return object; - var message = new $root.ibc.core.connection.v1.QueryClientConnectionsResponse(); - if (object.connection_paths) { - if (!Array.isArray(object.connection_paths)) - throw TypeError(".ibc.core.connection.v1.QueryClientConnectionsResponse.connection_paths: array expected"); - message.connection_paths = []; - for (var i = 0; i < object.connection_paths.length; ++i) - message.connection_paths[i] = String(object.connection_paths[i]); - } - if (object.proof != null) - if (typeof object.proof === "string") - $util.base64.decode(object.proof, message.proof = $util.newBuffer($util.base64.length(object.proof)), 0); - else if (object.proof.length) - message.proof = object.proof; - if (object.proof_height != null) { - if (typeof object.proof_height !== "object") - throw TypeError(".ibc.core.connection.v1.QueryClientConnectionsResponse.proof_height: object expected"); - message.proof_height = $root.ibc.core.client.v1.Height.fromObject(object.proof_height); - } - return message; + return new $root.ibc.core.connection.v1.MsgConnectionOpenTryResponse(); }; /** - * Creates a plain object from a QueryClientConnectionsResponse message. Also converts values to other types if specified. + * Creates a plain object from a MsgConnectionOpenTryResponse message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.connection.v1.QueryClientConnectionsResponse + * @memberof ibc.core.connection.v1.MsgConnectionOpenTryResponse * @static - * @param {ibc.core.connection.v1.QueryClientConnectionsResponse} message QueryClientConnectionsResponse + * @param {ibc.core.connection.v1.MsgConnectionOpenTryResponse} message MsgConnectionOpenTryResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryClientConnectionsResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.connection_paths = []; - if (options.defaults) { - if (options.bytes === String) - object.proof = ""; - else { - object.proof = []; - if (options.bytes !== Array) - object.proof = $util.newBuffer(object.proof); - } - object.proof_height = null; - } - if (message.connection_paths && message.connection_paths.length) { - object.connection_paths = []; - for (var j = 0; j < message.connection_paths.length; ++j) - object.connection_paths[j] = message.connection_paths[j]; - } - if (message.proof != null && message.hasOwnProperty("proof")) - object.proof = options.bytes === String ? $util.base64.encode(message.proof, 0, message.proof.length) : options.bytes === Array ? Array.prototype.slice.call(message.proof) : message.proof; - if (message.proof_height != null && message.hasOwnProperty("proof_height")) - object.proof_height = $root.ibc.core.client.v1.Height.toObject(message.proof_height, options); - return object; + MsgConnectionOpenTryResponse.toObject = function toObject() { + return {}; }; /** - * Converts this QueryClientConnectionsResponse to JSON. + * Converts this MsgConnectionOpenTryResponse to JSON. * @function toJSON - * @memberof ibc.core.connection.v1.QueryClientConnectionsResponse + * @memberof ibc.core.connection.v1.MsgConnectionOpenTryResponse * @instance * @returns {Object.} JSON object */ - QueryClientConnectionsResponse.prototype.toJSON = function toJSON() { + MsgConnectionOpenTryResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryClientConnectionsResponse; + return MsgConnectionOpenTryResponse; })(); - v1.QueryConnectionClientStateRequest = (function() { + v1.MsgConnectionOpenAck = (function() { /** - * Properties of a QueryConnectionClientStateRequest. + * Properties of a MsgConnectionOpenAck. * @memberof ibc.core.connection.v1 - * @interface IQueryConnectionClientStateRequest - * @property {string|null} [connection_id] QueryConnectionClientStateRequest connection_id + * @interface IMsgConnectionOpenAck + * @property {string|null} [connection_id] MsgConnectionOpenAck connection_id + * @property {string|null} [counterparty_connection_id] MsgConnectionOpenAck counterparty_connection_id + * @property {ibc.core.connection.v1.IVersion|null} [version] MsgConnectionOpenAck version + * @property {google.protobuf.IAny|null} [client_state] MsgConnectionOpenAck client_state + * @property {ibc.core.client.v1.IHeight|null} [proof_height] MsgConnectionOpenAck proof_height + * @property {Uint8Array|null} [proof_try] MsgConnectionOpenAck proof_try + * @property {Uint8Array|null} [proof_client] MsgConnectionOpenAck proof_client + * @property {Uint8Array|null} [proof_consensus] MsgConnectionOpenAck proof_consensus + * @property {ibc.core.client.v1.IHeight|null} [consensus_height] MsgConnectionOpenAck consensus_height + * @property {string|null} [signer] MsgConnectionOpenAck signer + * @property {Uint8Array|null} [host_consensus_state_proof] MsgConnectionOpenAck host_consensus_state_proof */ /** - * Constructs a new QueryConnectionClientStateRequest. + * Constructs a new MsgConnectionOpenAck. * @memberof ibc.core.connection.v1 - * @classdesc Represents a QueryConnectionClientStateRequest. - * @implements IQueryConnectionClientStateRequest + * @classdesc Represents a MsgConnectionOpenAck. + * @implements IMsgConnectionOpenAck * @constructor - * @param {ibc.core.connection.v1.IQueryConnectionClientStateRequest=} [properties] Properties to set + * @param {ibc.core.connection.v1.IMsgConnectionOpenAck=} [properties] Properties to set */ - function QueryConnectionClientStateRequest(properties) { + function MsgConnectionOpenAck(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -62660,64 +69025,194 @@ } /** - * QueryConnectionClientStateRequest connection_id. + * MsgConnectionOpenAck connection_id. * @member {string} connection_id - * @memberof ibc.core.connection.v1.QueryConnectionClientStateRequest + * @memberof ibc.core.connection.v1.MsgConnectionOpenAck * @instance */ - QueryConnectionClientStateRequest.prototype.connection_id = ""; + MsgConnectionOpenAck.prototype.connection_id = ""; /** - * Encodes the specified QueryConnectionClientStateRequest message. Does not implicitly {@link ibc.core.connection.v1.QueryConnectionClientStateRequest.verify|verify} messages. + * MsgConnectionOpenAck counterparty_connection_id. + * @member {string} counterparty_connection_id + * @memberof ibc.core.connection.v1.MsgConnectionOpenAck + * @instance + */ + MsgConnectionOpenAck.prototype.counterparty_connection_id = ""; + + /** + * MsgConnectionOpenAck version. + * @member {ibc.core.connection.v1.IVersion|null|undefined} version + * @memberof ibc.core.connection.v1.MsgConnectionOpenAck + * @instance + */ + MsgConnectionOpenAck.prototype.version = null; + + /** + * MsgConnectionOpenAck client_state. + * @member {google.protobuf.IAny|null|undefined} client_state + * @memberof ibc.core.connection.v1.MsgConnectionOpenAck + * @instance + */ + MsgConnectionOpenAck.prototype.client_state = null; + + /** + * MsgConnectionOpenAck proof_height. + * @member {ibc.core.client.v1.IHeight|null|undefined} proof_height + * @memberof ibc.core.connection.v1.MsgConnectionOpenAck + * @instance + */ + MsgConnectionOpenAck.prototype.proof_height = null; + + /** + * MsgConnectionOpenAck proof_try. + * @member {Uint8Array} proof_try + * @memberof ibc.core.connection.v1.MsgConnectionOpenAck + * @instance + */ + MsgConnectionOpenAck.prototype.proof_try = $util.newBuffer([]); + + /** + * MsgConnectionOpenAck proof_client. + * @member {Uint8Array} proof_client + * @memberof ibc.core.connection.v1.MsgConnectionOpenAck + * @instance + */ + MsgConnectionOpenAck.prototype.proof_client = $util.newBuffer([]); + + /** + * MsgConnectionOpenAck proof_consensus. + * @member {Uint8Array} proof_consensus + * @memberof ibc.core.connection.v1.MsgConnectionOpenAck + * @instance + */ + MsgConnectionOpenAck.prototype.proof_consensus = $util.newBuffer([]); + + /** + * MsgConnectionOpenAck consensus_height. + * @member {ibc.core.client.v1.IHeight|null|undefined} consensus_height + * @memberof ibc.core.connection.v1.MsgConnectionOpenAck + * @instance + */ + MsgConnectionOpenAck.prototype.consensus_height = null; + + /** + * MsgConnectionOpenAck signer. + * @member {string} signer + * @memberof ibc.core.connection.v1.MsgConnectionOpenAck + * @instance + */ + MsgConnectionOpenAck.prototype.signer = ""; + + /** + * MsgConnectionOpenAck host_consensus_state_proof. + * @member {Uint8Array} host_consensus_state_proof + * @memberof ibc.core.connection.v1.MsgConnectionOpenAck + * @instance + */ + MsgConnectionOpenAck.prototype.host_consensus_state_proof = $util.newBuffer([]); + + /** + * Encodes the specified MsgConnectionOpenAck message. Does not implicitly {@link ibc.core.connection.v1.MsgConnectionOpenAck.verify|verify} messages. * @function encode - * @memberof ibc.core.connection.v1.QueryConnectionClientStateRequest + * @memberof ibc.core.connection.v1.MsgConnectionOpenAck * @static - * @param {ibc.core.connection.v1.IQueryConnectionClientStateRequest} message QueryConnectionClientStateRequest message or plain object to encode + * @param {ibc.core.connection.v1.IMsgConnectionOpenAck} message MsgConnectionOpenAck message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryConnectionClientStateRequest.encode = function encode(message, writer) { + MsgConnectionOpenAck.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.connection_id != null && Object.hasOwnProperty.call(message, "connection_id")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.connection_id); + if (message.counterparty_connection_id != null && Object.hasOwnProperty.call(message, "counterparty_connection_id")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.counterparty_connection_id); + if (message.version != null && Object.hasOwnProperty.call(message, "version")) + $root.ibc.core.connection.v1.Version.encode(message.version, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.client_state != null && Object.hasOwnProperty.call(message, "client_state")) + $root.google.protobuf.Any.encode(message.client_state, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.proof_height != null && Object.hasOwnProperty.call(message, "proof_height")) + $root.ibc.core.client.v1.Height.encode(message.proof_height, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.proof_try != null && Object.hasOwnProperty.call(message, "proof_try")) + writer.uint32(/* id 6, wireType 2 =*/50).bytes(message.proof_try); + if (message.proof_client != null && Object.hasOwnProperty.call(message, "proof_client")) + writer.uint32(/* id 7, wireType 2 =*/58).bytes(message.proof_client); + if (message.proof_consensus != null && Object.hasOwnProperty.call(message, "proof_consensus")) + writer.uint32(/* id 8, wireType 2 =*/66).bytes(message.proof_consensus); + if (message.consensus_height != null && Object.hasOwnProperty.call(message, "consensus_height")) + $root.ibc.core.client.v1.Height.encode(message.consensus_height, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.signer != null && Object.hasOwnProperty.call(message, "signer")) + writer.uint32(/* id 10, wireType 2 =*/82).string(message.signer); + if (message.host_consensus_state_proof != null && Object.hasOwnProperty.call(message, "host_consensus_state_proof")) + writer.uint32(/* id 11, wireType 2 =*/90).bytes(message.host_consensus_state_proof); return writer; }; /** - * Encodes the specified QueryConnectionClientStateRequest message, length delimited. Does not implicitly {@link ibc.core.connection.v1.QueryConnectionClientStateRequest.verify|verify} messages. + * Encodes the specified MsgConnectionOpenAck message, length delimited. Does not implicitly {@link ibc.core.connection.v1.MsgConnectionOpenAck.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.connection.v1.QueryConnectionClientStateRequest + * @memberof ibc.core.connection.v1.MsgConnectionOpenAck * @static - * @param {ibc.core.connection.v1.IQueryConnectionClientStateRequest} message QueryConnectionClientStateRequest message or plain object to encode + * @param {ibc.core.connection.v1.IMsgConnectionOpenAck} message MsgConnectionOpenAck message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryConnectionClientStateRequest.encodeDelimited = function encodeDelimited(message, writer) { + MsgConnectionOpenAck.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryConnectionClientStateRequest message from the specified reader or buffer. + * Decodes a MsgConnectionOpenAck message from the specified reader or buffer. * @function decode - * @memberof ibc.core.connection.v1.QueryConnectionClientStateRequest + * @memberof ibc.core.connection.v1.MsgConnectionOpenAck * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.connection.v1.QueryConnectionClientStateRequest} QueryConnectionClientStateRequest + * @returns {ibc.core.connection.v1.MsgConnectionOpenAck} MsgConnectionOpenAck * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryConnectionClientStateRequest.decode = function decode(reader, length) { + MsgConnectionOpenAck.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.connection.v1.QueryConnectionClientStateRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.connection.v1.MsgConnectionOpenAck(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: message.connection_id = reader.string(); break; + case 2: + message.counterparty_connection_id = reader.string(); + break; + case 3: + message.version = $root.ibc.core.connection.v1.Version.decode(reader, reader.uint32()); + break; + case 4: + message.client_state = $root.google.protobuf.Any.decode(reader, reader.uint32()); + break; + case 5: + message.proof_height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); + break; + case 6: + message.proof_try = reader.bytes(); + break; + case 7: + message.proof_client = reader.bytes(); + break; + case 8: + message.proof_consensus = reader.bytes(); + break; + case 9: + message.consensus_height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); + break; + case 10: + message.signer = reader.string(); + break; + case 11: + message.host_consensus_state_proof = reader.bytes(); + break; default: reader.skipType(tag & 7); break; @@ -62727,109 +69222,243 @@ }; /** - * Decodes a QueryConnectionClientStateRequest message from the specified reader or buffer, length delimited. + * Decodes a MsgConnectionOpenAck message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.connection.v1.QueryConnectionClientStateRequest + * @memberof ibc.core.connection.v1.MsgConnectionOpenAck * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.connection.v1.QueryConnectionClientStateRequest} QueryConnectionClientStateRequest + * @returns {ibc.core.connection.v1.MsgConnectionOpenAck} MsgConnectionOpenAck * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryConnectionClientStateRequest.decodeDelimited = function decodeDelimited(reader) { + MsgConnectionOpenAck.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryConnectionClientStateRequest message. + * Verifies a MsgConnectionOpenAck message. * @function verify - * @memberof ibc.core.connection.v1.QueryConnectionClientStateRequest + * @memberof ibc.core.connection.v1.MsgConnectionOpenAck * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryConnectionClientStateRequest.verify = function verify(message) { + MsgConnectionOpenAck.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.connection_id != null && message.hasOwnProperty("connection_id")) if (!$util.isString(message.connection_id)) return "connection_id: string expected"; + if (message.counterparty_connection_id != null && message.hasOwnProperty("counterparty_connection_id")) + if (!$util.isString(message.counterparty_connection_id)) + return "counterparty_connection_id: string expected"; + if (message.version != null && message.hasOwnProperty("version")) { + var error = $root.ibc.core.connection.v1.Version.verify(message.version); + if (error) + return "version." + error; + } + if (message.client_state != null && message.hasOwnProperty("client_state")) { + var error = $root.google.protobuf.Any.verify(message.client_state); + if (error) + return "client_state." + error; + } + if (message.proof_height != null && message.hasOwnProperty("proof_height")) { + var error = $root.ibc.core.client.v1.Height.verify(message.proof_height); + if (error) + return "proof_height." + error; + } + if (message.proof_try != null && message.hasOwnProperty("proof_try")) + if (!(message.proof_try && typeof message.proof_try.length === "number" || $util.isString(message.proof_try))) + return "proof_try: buffer expected"; + if (message.proof_client != null && message.hasOwnProperty("proof_client")) + if (!(message.proof_client && typeof message.proof_client.length === "number" || $util.isString(message.proof_client))) + return "proof_client: buffer expected"; + if (message.proof_consensus != null && message.hasOwnProperty("proof_consensus")) + if (!(message.proof_consensus && typeof message.proof_consensus.length === "number" || $util.isString(message.proof_consensus))) + return "proof_consensus: buffer expected"; + if (message.consensus_height != null && message.hasOwnProperty("consensus_height")) { + var error = $root.ibc.core.client.v1.Height.verify(message.consensus_height); + if (error) + return "consensus_height." + error; + } + if (message.signer != null && message.hasOwnProperty("signer")) + if (!$util.isString(message.signer)) + return "signer: string expected"; + if (message.host_consensus_state_proof != null && message.hasOwnProperty("host_consensus_state_proof")) + if (!(message.host_consensus_state_proof && typeof message.host_consensus_state_proof.length === "number" || $util.isString(message.host_consensus_state_proof))) + return "host_consensus_state_proof: buffer expected"; return null; }; /** - * Creates a QueryConnectionClientStateRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MsgConnectionOpenAck message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.connection.v1.QueryConnectionClientStateRequest + * @memberof ibc.core.connection.v1.MsgConnectionOpenAck * @static * @param {Object.} object Plain object - * @returns {ibc.core.connection.v1.QueryConnectionClientStateRequest} QueryConnectionClientStateRequest + * @returns {ibc.core.connection.v1.MsgConnectionOpenAck} MsgConnectionOpenAck */ - QueryConnectionClientStateRequest.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.connection.v1.QueryConnectionClientStateRequest) + MsgConnectionOpenAck.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.connection.v1.MsgConnectionOpenAck) return object; - var message = new $root.ibc.core.connection.v1.QueryConnectionClientStateRequest(); + var message = new $root.ibc.core.connection.v1.MsgConnectionOpenAck(); if (object.connection_id != null) message.connection_id = String(object.connection_id); + if (object.counterparty_connection_id != null) + message.counterparty_connection_id = String(object.counterparty_connection_id); + if (object.version != null) { + if (typeof object.version !== "object") + throw TypeError(".ibc.core.connection.v1.MsgConnectionOpenAck.version: object expected"); + message.version = $root.ibc.core.connection.v1.Version.fromObject(object.version); + } + if (object.client_state != null) { + if (typeof object.client_state !== "object") + throw TypeError(".ibc.core.connection.v1.MsgConnectionOpenAck.client_state: object expected"); + message.client_state = $root.google.protobuf.Any.fromObject(object.client_state); + } + if (object.proof_height != null) { + if (typeof object.proof_height !== "object") + throw TypeError(".ibc.core.connection.v1.MsgConnectionOpenAck.proof_height: object expected"); + message.proof_height = $root.ibc.core.client.v1.Height.fromObject(object.proof_height); + } + if (object.proof_try != null) + if (typeof object.proof_try === "string") + $util.base64.decode(object.proof_try, message.proof_try = $util.newBuffer($util.base64.length(object.proof_try)), 0); + else if (object.proof_try.length) + message.proof_try = object.proof_try; + if (object.proof_client != null) + if (typeof object.proof_client === "string") + $util.base64.decode(object.proof_client, message.proof_client = $util.newBuffer($util.base64.length(object.proof_client)), 0); + else if (object.proof_client.length) + message.proof_client = object.proof_client; + if (object.proof_consensus != null) + if (typeof object.proof_consensus === "string") + $util.base64.decode(object.proof_consensus, message.proof_consensus = $util.newBuffer($util.base64.length(object.proof_consensus)), 0); + else if (object.proof_consensus.length) + message.proof_consensus = object.proof_consensus; + if (object.consensus_height != null) { + if (typeof object.consensus_height !== "object") + throw TypeError(".ibc.core.connection.v1.MsgConnectionOpenAck.consensus_height: object expected"); + message.consensus_height = $root.ibc.core.client.v1.Height.fromObject(object.consensus_height); + } + if (object.signer != null) + message.signer = String(object.signer); + if (object.host_consensus_state_proof != null) + if (typeof object.host_consensus_state_proof === "string") + $util.base64.decode(object.host_consensus_state_proof, message.host_consensus_state_proof = $util.newBuffer($util.base64.length(object.host_consensus_state_proof)), 0); + else if (object.host_consensus_state_proof.length) + message.host_consensus_state_proof = object.host_consensus_state_proof; return message; }; /** - * Creates a plain object from a QueryConnectionClientStateRequest message. Also converts values to other types if specified. + * Creates a plain object from a MsgConnectionOpenAck message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.connection.v1.QueryConnectionClientStateRequest + * @memberof ibc.core.connection.v1.MsgConnectionOpenAck * @static - * @param {ibc.core.connection.v1.QueryConnectionClientStateRequest} message QueryConnectionClientStateRequest + * @param {ibc.core.connection.v1.MsgConnectionOpenAck} message MsgConnectionOpenAck * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryConnectionClientStateRequest.toObject = function toObject(message, options) { + MsgConnectionOpenAck.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) + if (options.defaults) { object.connection_id = ""; + object.counterparty_connection_id = ""; + object.version = null; + object.client_state = null; + object.proof_height = null; + if (options.bytes === String) + object.proof_try = ""; + else { + object.proof_try = []; + if (options.bytes !== Array) + object.proof_try = $util.newBuffer(object.proof_try); + } + if (options.bytes === String) + object.proof_client = ""; + else { + object.proof_client = []; + if (options.bytes !== Array) + object.proof_client = $util.newBuffer(object.proof_client); + } + if (options.bytes === String) + object.proof_consensus = ""; + else { + object.proof_consensus = []; + if (options.bytes !== Array) + object.proof_consensus = $util.newBuffer(object.proof_consensus); + } + object.consensus_height = null; + object.signer = ""; + if (options.bytes === String) + object.host_consensus_state_proof = ""; + else { + object.host_consensus_state_proof = []; + if (options.bytes !== Array) + object.host_consensus_state_proof = $util.newBuffer(object.host_consensus_state_proof); + } + } if (message.connection_id != null && message.hasOwnProperty("connection_id")) object.connection_id = message.connection_id; + if (message.counterparty_connection_id != null && message.hasOwnProperty("counterparty_connection_id")) + object.counterparty_connection_id = message.counterparty_connection_id; + if (message.version != null && message.hasOwnProperty("version")) + object.version = $root.ibc.core.connection.v1.Version.toObject(message.version, options); + if (message.client_state != null && message.hasOwnProperty("client_state")) + object.client_state = $root.google.protobuf.Any.toObject(message.client_state, options); + if (message.proof_height != null && message.hasOwnProperty("proof_height")) + object.proof_height = $root.ibc.core.client.v1.Height.toObject(message.proof_height, options); + if (message.proof_try != null && message.hasOwnProperty("proof_try")) + object.proof_try = options.bytes === String ? $util.base64.encode(message.proof_try, 0, message.proof_try.length) : options.bytes === Array ? Array.prototype.slice.call(message.proof_try) : message.proof_try; + if (message.proof_client != null && message.hasOwnProperty("proof_client")) + object.proof_client = options.bytes === String ? $util.base64.encode(message.proof_client, 0, message.proof_client.length) : options.bytes === Array ? Array.prototype.slice.call(message.proof_client) : message.proof_client; + if (message.proof_consensus != null && message.hasOwnProperty("proof_consensus")) + object.proof_consensus = options.bytes === String ? $util.base64.encode(message.proof_consensus, 0, message.proof_consensus.length) : options.bytes === Array ? Array.prototype.slice.call(message.proof_consensus) : message.proof_consensus; + if (message.consensus_height != null && message.hasOwnProperty("consensus_height")) + object.consensus_height = $root.ibc.core.client.v1.Height.toObject(message.consensus_height, options); + if (message.signer != null && message.hasOwnProperty("signer")) + object.signer = message.signer; + if (message.host_consensus_state_proof != null && message.hasOwnProperty("host_consensus_state_proof")) + object.host_consensus_state_proof = options.bytes === String ? $util.base64.encode(message.host_consensus_state_proof, 0, message.host_consensus_state_proof.length) : options.bytes === Array ? Array.prototype.slice.call(message.host_consensus_state_proof) : message.host_consensus_state_proof; return object; }; /** - * Converts this QueryConnectionClientStateRequest to JSON. + * Converts this MsgConnectionOpenAck to JSON. * @function toJSON - * @memberof ibc.core.connection.v1.QueryConnectionClientStateRequest + * @memberof ibc.core.connection.v1.MsgConnectionOpenAck * @instance * @returns {Object.} JSON object */ - QueryConnectionClientStateRequest.prototype.toJSON = function toJSON() { + MsgConnectionOpenAck.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryConnectionClientStateRequest; + return MsgConnectionOpenAck; })(); - v1.QueryConnectionClientStateResponse = (function() { + v1.MsgConnectionOpenAckResponse = (function() { /** - * Properties of a QueryConnectionClientStateResponse. + * Properties of a MsgConnectionOpenAckResponse. * @memberof ibc.core.connection.v1 - * @interface IQueryConnectionClientStateResponse - * @property {ibc.core.client.v1.IIdentifiedClientState|null} [identified_client_state] QueryConnectionClientStateResponse identified_client_state - * @property {Uint8Array|null} [proof] QueryConnectionClientStateResponse proof - * @property {ibc.core.client.v1.IHeight|null} [proof_height] QueryConnectionClientStateResponse proof_height + * @interface IMsgConnectionOpenAckResponse */ /** - * Constructs a new QueryConnectionClientStateResponse. + * Constructs a new MsgConnectionOpenAckResponse. * @memberof ibc.core.connection.v1 - * @classdesc Represents a QueryConnectionClientStateResponse. - * @implements IQueryConnectionClientStateResponse + * @classdesc Represents a MsgConnectionOpenAckResponse. + * @implements IMsgConnectionOpenAckResponse * @constructor - * @param {ibc.core.connection.v1.IQueryConnectionClientStateResponse=} [properties] Properties to set + * @param {ibc.core.connection.v1.IMsgConnectionOpenAckResponse=} [properties] Properties to set */ - function QueryConnectionClientStateResponse(properties) { + function MsgConnectionOpenAckResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -62837,90 +69466,51 @@ } /** - * QueryConnectionClientStateResponse identified_client_state. - * @member {ibc.core.client.v1.IIdentifiedClientState|null|undefined} identified_client_state - * @memberof ibc.core.connection.v1.QueryConnectionClientStateResponse - * @instance - */ - QueryConnectionClientStateResponse.prototype.identified_client_state = null; - - /** - * QueryConnectionClientStateResponse proof. - * @member {Uint8Array} proof - * @memberof ibc.core.connection.v1.QueryConnectionClientStateResponse - * @instance - */ - QueryConnectionClientStateResponse.prototype.proof = $util.newBuffer([]); - - /** - * QueryConnectionClientStateResponse proof_height. - * @member {ibc.core.client.v1.IHeight|null|undefined} proof_height - * @memberof ibc.core.connection.v1.QueryConnectionClientStateResponse - * @instance - */ - QueryConnectionClientStateResponse.prototype.proof_height = null; - - /** - * Encodes the specified QueryConnectionClientStateResponse message. Does not implicitly {@link ibc.core.connection.v1.QueryConnectionClientStateResponse.verify|verify} messages. + * Encodes the specified MsgConnectionOpenAckResponse message. Does not implicitly {@link ibc.core.connection.v1.MsgConnectionOpenAckResponse.verify|verify} messages. * @function encode - * @memberof ibc.core.connection.v1.QueryConnectionClientStateResponse + * @memberof ibc.core.connection.v1.MsgConnectionOpenAckResponse * @static - * @param {ibc.core.connection.v1.IQueryConnectionClientStateResponse} message QueryConnectionClientStateResponse message or plain object to encode + * @param {ibc.core.connection.v1.IMsgConnectionOpenAckResponse} message MsgConnectionOpenAckResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryConnectionClientStateResponse.encode = function encode(message, writer) { + MsgConnectionOpenAckResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.identified_client_state != null && Object.hasOwnProperty.call(message, "identified_client_state")) - $root.ibc.core.client.v1.IdentifiedClientState.encode(message.identified_client_state, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.proof != null && Object.hasOwnProperty.call(message, "proof")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.proof); - if (message.proof_height != null && Object.hasOwnProperty.call(message, "proof_height")) - $root.ibc.core.client.v1.Height.encode(message.proof_height, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified QueryConnectionClientStateResponse message, length delimited. Does not implicitly {@link ibc.core.connection.v1.QueryConnectionClientStateResponse.verify|verify} messages. + * Encodes the specified MsgConnectionOpenAckResponse message, length delimited. Does not implicitly {@link ibc.core.connection.v1.MsgConnectionOpenAckResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.connection.v1.QueryConnectionClientStateResponse + * @memberof ibc.core.connection.v1.MsgConnectionOpenAckResponse * @static - * @param {ibc.core.connection.v1.IQueryConnectionClientStateResponse} message QueryConnectionClientStateResponse message or plain object to encode + * @param {ibc.core.connection.v1.IMsgConnectionOpenAckResponse} message MsgConnectionOpenAckResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryConnectionClientStateResponse.encodeDelimited = function encodeDelimited(message, writer) { + MsgConnectionOpenAckResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryConnectionClientStateResponse message from the specified reader or buffer. + * Decodes a MsgConnectionOpenAckResponse message from the specified reader or buffer. * @function decode - * @memberof ibc.core.connection.v1.QueryConnectionClientStateResponse + * @memberof ibc.core.connection.v1.MsgConnectionOpenAckResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.connection.v1.QueryConnectionClientStateResponse} QueryConnectionClientStateResponse + * @returns {ibc.core.connection.v1.MsgConnectionOpenAckResponse} MsgConnectionOpenAckResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryConnectionClientStateResponse.decode = function decode(reader, length) { + MsgConnectionOpenAckResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.connection.v1.QueryConnectionClientStateResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.connection.v1.MsgConnectionOpenAckResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.identified_client_state = $root.ibc.core.client.v1.IdentifiedClientState.decode(reader, reader.uint32()); - break; - case 2: - message.proof = reader.bytes(); - break; - case 3: - message.proof_height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); - break; default: reader.skipType(tag & 7); break; @@ -62930,145 +69520,97 @@ }; /** - * Decodes a QueryConnectionClientStateResponse message from the specified reader or buffer, length delimited. + * Decodes a MsgConnectionOpenAckResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.connection.v1.QueryConnectionClientStateResponse + * @memberof ibc.core.connection.v1.MsgConnectionOpenAckResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.connection.v1.QueryConnectionClientStateResponse} QueryConnectionClientStateResponse + * @returns {ibc.core.connection.v1.MsgConnectionOpenAckResponse} MsgConnectionOpenAckResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryConnectionClientStateResponse.decodeDelimited = function decodeDelimited(reader) { + MsgConnectionOpenAckResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryConnectionClientStateResponse message. + * Verifies a MsgConnectionOpenAckResponse message. * @function verify - * @memberof ibc.core.connection.v1.QueryConnectionClientStateResponse + * @memberof ibc.core.connection.v1.MsgConnectionOpenAckResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryConnectionClientStateResponse.verify = function verify(message) { + MsgConnectionOpenAckResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.identified_client_state != null && message.hasOwnProperty("identified_client_state")) { - var error = $root.ibc.core.client.v1.IdentifiedClientState.verify(message.identified_client_state); - if (error) - return "identified_client_state." + error; - } - if (message.proof != null && message.hasOwnProperty("proof")) - if (!(message.proof && typeof message.proof.length === "number" || $util.isString(message.proof))) - return "proof: buffer expected"; - if (message.proof_height != null && message.hasOwnProperty("proof_height")) { - var error = $root.ibc.core.client.v1.Height.verify(message.proof_height); - if (error) - return "proof_height." + error; - } return null; }; /** - * Creates a QueryConnectionClientStateResponse message from a plain object. Also converts values to their respective internal types. + * Creates a MsgConnectionOpenAckResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.connection.v1.QueryConnectionClientStateResponse + * @memberof ibc.core.connection.v1.MsgConnectionOpenAckResponse * @static * @param {Object.} object Plain object - * @returns {ibc.core.connection.v1.QueryConnectionClientStateResponse} QueryConnectionClientStateResponse + * @returns {ibc.core.connection.v1.MsgConnectionOpenAckResponse} MsgConnectionOpenAckResponse */ - QueryConnectionClientStateResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.connection.v1.QueryConnectionClientStateResponse) + MsgConnectionOpenAckResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.connection.v1.MsgConnectionOpenAckResponse) return object; - var message = new $root.ibc.core.connection.v1.QueryConnectionClientStateResponse(); - if (object.identified_client_state != null) { - if (typeof object.identified_client_state !== "object") - throw TypeError(".ibc.core.connection.v1.QueryConnectionClientStateResponse.identified_client_state: object expected"); - message.identified_client_state = $root.ibc.core.client.v1.IdentifiedClientState.fromObject(object.identified_client_state); - } - if (object.proof != null) - if (typeof object.proof === "string") - $util.base64.decode(object.proof, message.proof = $util.newBuffer($util.base64.length(object.proof)), 0); - else if (object.proof.length) - message.proof = object.proof; - if (object.proof_height != null) { - if (typeof object.proof_height !== "object") - throw TypeError(".ibc.core.connection.v1.QueryConnectionClientStateResponse.proof_height: object expected"); - message.proof_height = $root.ibc.core.client.v1.Height.fromObject(object.proof_height); - } - return message; + return new $root.ibc.core.connection.v1.MsgConnectionOpenAckResponse(); }; /** - * Creates a plain object from a QueryConnectionClientStateResponse message. Also converts values to other types if specified. + * Creates a plain object from a MsgConnectionOpenAckResponse message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.connection.v1.QueryConnectionClientStateResponse + * @memberof ibc.core.connection.v1.MsgConnectionOpenAckResponse * @static - * @param {ibc.core.connection.v1.QueryConnectionClientStateResponse} message QueryConnectionClientStateResponse + * @param {ibc.core.connection.v1.MsgConnectionOpenAckResponse} message MsgConnectionOpenAckResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryConnectionClientStateResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.identified_client_state = null; - if (options.bytes === String) - object.proof = ""; - else { - object.proof = []; - if (options.bytes !== Array) - object.proof = $util.newBuffer(object.proof); - } - object.proof_height = null; - } - if (message.identified_client_state != null && message.hasOwnProperty("identified_client_state")) - object.identified_client_state = $root.ibc.core.client.v1.IdentifiedClientState.toObject(message.identified_client_state, options); - if (message.proof != null && message.hasOwnProperty("proof")) - object.proof = options.bytes === String ? $util.base64.encode(message.proof, 0, message.proof.length) : options.bytes === Array ? Array.prototype.slice.call(message.proof) : message.proof; - if (message.proof_height != null && message.hasOwnProperty("proof_height")) - object.proof_height = $root.ibc.core.client.v1.Height.toObject(message.proof_height, options); - return object; + MsgConnectionOpenAckResponse.toObject = function toObject() { + return {}; }; /** - * Converts this QueryConnectionClientStateResponse to JSON. + * Converts this MsgConnectionOpenAckResponse to JSON. * @function toJSON - * @memberof ibc.core.connection.v1.QueryConnectionClientStateResponse + * @memberof ibc.core.connection.v1.MsgConnectionOpenAckResponse * @instance * @returns {Object.} JSON object */ - QueryConnectionClientStateResponse.prototype.toJSON = function toJSON() { + MsgConnectionOpenAckResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryConnectionClientStateResponse; + return MsgConnectionOpenAckResponse; })(); - v1.QueryConnectionConsensusStateRequest = (function() { + v1.MsgConnectionOpenConfirm = (function() { /** - * Properties of a QueryConnectionConsensusStateRequest. + * Properties of a MsgConnectionOpenConfirm. * @memberof ibc.core.connection.v1 - * @interface IQueryConnectionConsensusStateRequest - * @property {string|null} [connection_id] QueryConnectionConsensusStateRequest connection_id - * @property {Long|null} [revision_number] QueryConnectionConsensusStateRequest revision_number - * @property {Long|null} [revision_height] QueryConnectionConsensusStateRequest revision_height + * @interface IMsgConnectionOpenConfirm + * @property {string|null} [connection_id] MsgConnectionOpenConfirm connection_id + * @property {Uint8Array|null} [proof_ack] MsgConnectionOpenConfirm proof_ack + * @property {ibc.core.client.v1.IHeight|null} [proof_height] MsgConnectionOpenConfirm proof_height + * @property {string|null} [signer] MsgConnectionOpenConfirm signer */ /** - * Constructs a new QueryConnectionConsensusStateRequest. + * Constructs a new MsgConnectionOpenConfirm. * @memberof ibc.core.connection.v1 - * @classdesc Represents a QueryConnectionConsensusStateRequest. - * @implements IQueryConnectionConsensusStateRequest + * @classdesc Represents a MsgConnectionOpenConfirm. + * @implements IMsgConnectionOpenConfirm * @constructor - * @param {ibc.core.connection.v1.IQueryConnectionConsensusStateRequest=} [properties] Properties to set + * @param {ibc.core.connection.v1.IMsgConnectionOpenConfirm=} [properties] Properties to set */ - function QueryConnectionConsensusStateRequest(properties) { + function MsgConnectionOpenConfirm(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -63076,78 +69618,88 @@ } /** - * QueryConnectionConsensusStateRequest connection_id. + * MsgConnectionOpenConfirm connection_id. * @member {string} connection_id - * @memberof ibc.core.connection.v1.QueryConnectionConsensusStateRequest + * @memberof ibc.core.connection.v1.MsgConnectionOpenConfirm * @instance */ - QueryConnectionConsensusStateRequest.prototype.connection_id = ""; + MsgConnectionOpenConfirm.prototype.connection_id = ""; /** - * QueryConnectionConsensusStateRequest revision_number. - * @member {Long} revision_number - * @memberof ibc.core.connection.v1.QueryConnectionConsensusStateRequest + * MsgConnectionOpenConfirm proof_ack. + * @member {Uint8Array} proof_ack + * @memberof ibc.core.connection.v1.MsgConnectionOpenConfirm * @instance */ - QueryConnectionConsensusStateRequest.prototype.revision_number = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + MsgConnectionOpenConfirm.prototype.proof_ack = $util.newBuffer([]); /** - * QueryConnectionConsensusStateRequest revision_height. - * @member {Long} revision_height - * @memberof ibc.core.connection.v1.QueryConnectionConsensusStateRequest + * MsgConnectionOpenConfirm proof_height. + * @member {ibc.core.client.v1.IHeight|null|undefined} proof_height + * @memberof ibc.core.connection.v1.MsgConnectionOpenConfirm * @instance */ - QueryConnectionConsensusStateRequest.prototype.revision_height = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + MsgConnectionOpenConfirm.prototype.proof_height = null; /** - * Encodes the specified QueryConnectionConsensusStateRequest message. Does not implicitly {@link ibc.core.connection.v1.QueryConnectionConsensusStateRequest.verify|verify} messages. + * MsgConnectionOpenConfirm signer. + * @member {string} signer + * @memberof ibc.core.connection.v1.MsgConnectionOpenConfirm + * @instance + */ + MsgConnectionOpenConfirm.prototype.signer = ""; + + /** + * Encodes the specified MsgConnectionOpenConfirm message. Does not implicitly {@link ibc.core.connection.v1.MsgConnectionOpenConfirm.verify|verify} messages. * @function encode - * @memberof ibc.core.connection.v1.QueryConnectionConsensusStateRequest + * @memberof ibc.core.connection.v1.MsgConnectionOpenConfirm * @static - * @param {ibc.core.connection.v1.IQueryConnectionConsensusStateRequest} message QueryConnectionConsensusStateRequest message or plain object to encode + * @param {ibc.core.connection.v1.IMsgConnectionOpenConfirm} message MsgConnectionOpenConfirm message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryConnectionConsensusStateRequest.encode = function encode(message, writer) { + MsgConnectionOpenConfirm.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.connection_id != null && Object.hasOwnProperty.call(message, "connection_id")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.connection_id); - if (message.revision_number != null && Object.hasOwnProperty.call(message, "revision_number")) - writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.revision_number); - if (message.revision_height != null && Object.hasOwnProperty.call(message, "revision_height")) - writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.revision_height); + if (message.proof_ack != null && Object.hasOwnProperty.call(message, "proof_ack")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.proof_ack); + if (message.proof_height != null && Object.hasOwnProperty.call(message, "proof_height")) + $root.ibc.core.client.v1.Height.encode(message.proof_height, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.signer != null && Object.hasOwnProperty.call(message, "signer")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.signer); return writer; }; /** - * Encodes the specified QueryConnectionConsensusStateRequest message, length delimited. Does not implicitly {@link ibc.core.connection.v1.QueryConnectionConsensusStateRequest.verify|verify} messages. + * Encodes the specified MsgConnectionOpenConfirm message, length delimited. Does not implicitly {@link ibc.core.connection.v1.MsgConnectionOpenConfirm.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.connection.v1.QueryConnectionConsensusStateRequest + * @memberof ibc.core.connection.v1.MsgConnectionOpenConfirm * @static - * @param {ibc.core.connection.v1.IQueryConnectionConsensusStateRequest} message QueryConnectionConsensusStateRequest message or plain object to encode + * @param {ibc.core.connection.v1.IMsgConnectionOpenConfirm} message MsgConnectionOpenConfirm message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryConnectionConsensusStateRequest.encodeDelimited = function encodeDelimited(message, writer) { + MsgConnectionOpenConfirm.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryConnectionConsensusStateRequest message from the specified reader or buffer. + * Decodes a MsgConnectionOpenConfirm message from the specified reader or buffer. * @function decode - * @memberof ibc.core.connection.v1.QueryConnectionConsensusStateRequest + * @memberof ibc.core.connection.v1.MsgConnectionOpenConfirm * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.connection.v1.QueryConnectionConsensusStateRequest} QueryConnectionConsensusStateRequest + * @returns {ibc.core.connection.v1.MsgConnectionOpenConfirm} MsgConnectionOpenConfirm * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryConnectionConsensusStateRequest.decode = function decode(reader, length) { + MsgConnectionOpenConfirm.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.connection.v1.QueryConnectionConsensusStateRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.connection.v1.MsgConnectionOpenConfirm(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -63155,10 +69707,13 @@ message.connection_id = reader.string(); break; case 2: - message.revision_number = reader.uint64(); + message.proof_ack = reader.bytes(); break; case 3: - message.revision_height = reader.uint64(); + message.proof_height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); + break; + case 4: + message.signer = reader.string(); break; default: reader.skipType(tag & 7); @@ -63169,155 +69724,145 @@ }; /** - * Decodes a QueryConnectionConsensusStateRequest message from the specified reader or buffer, length delimited. + * Decodes a MsgConnectionOpenConfirm message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.connection.v1.QueryConnectionConsensusStateRequest + * @memberof ibc.core.connection.v1.MsgConnectionOpenConfirm * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.connection.v1.QueryConnectionConsensusStateRequest} QueryConnectionConsensusStateRequest + * @returns {ibc.core.connection.v1.MsgConnectionOpenConfirm} MsgConnectionOpenConfirm * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryConnectionConsensusStateRequest.decodeDelimited = function decodeDelimited(reader) { + MsgConnectionOpenConfirm.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryConnectionConsensusStateRequest message. + * Verifies a MsgConnectionOpenConfirm message. * @function verify - * @memberof ibc.core.connection.v1.QueryConnectionConsensusStateRequest + * @memberof ibc.core.connection.v1.MsgConnectionOpenConfirm * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryConnectionConsensusStateRequest.verify = function verify(message) { + MsgConnectionOpenConfirm.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.connection_id != null && message.hasOwnProperty("connection_id")) if (!$util.isString(message.connection_id)) return "connection_id: string expected"; - if (message.revision_number != null && message.hasOwnProperty("revision_number")) - if (!$util.isInteger(message.revision_number) && !(message.revision_number && $util.isInteger(message.revision_number.low) && $util.isInteger(message.revision_number.high))) - return "revision_number: integer|Long expected"; - if (message.revision_height != null && message.hasOwnProperty("revision_height")) - if (!$util.isInteger(message.revision_height) && !(message.revision_height && $util.isInteger(message.revision_height.low) && $util.isInteger(message.revision_height.high))) - return "revision_height: integer|Long expected"; + if (message.proof_ack != null && message.hasOwnProperty("proof_ack")) + if (!(message.proof_ack && typeof message.proof_ack.length === "number" || $util.isString(message.proof_ack))) + return "proof_ack: buffer expected"; + if (message.proof_height != null && message.hasOwnProperty("proof_height")) { + var error = $root.ibc.core.client.v1.Height.verify(message.proof_height); + if (error) + return "proof_height." + error; + } + if (message.signer != null && message.hasOwnProperty("signer")) + if (!$util.isString(message.signer)) + return "signer: string expected"; return null; }; /** - * Creates a QueryConnectionConsensusStateRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MsgConnectionOpenConfirm message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.connection.v1.QueryConnectionConsensusStateRequest + * @memberof ibc.core.connection.v1.MsgConnectionOpenConfirm * @static * @param {Object.} object Plain object - * @returns {ibc.core.connection.v1.QueryConnectionConsensusStateRequest} QueryConnectionConsensusStateRequest + * @returns {ibc.core.connection.v1.MsgConnectionOpenConfirm} MsgConnectionOpenConfirm */ - QueryConnectionConsensusStateRequest.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.connection.v1.QueryConnectionConsensusStateRequest) + MsgConnectionOpenConfirm.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.connection.v1.MsgConnectionOpenConfirm) return object; - var message = new $root.ibc.core.connection.v1.QueryConnectionConsensusStateRequest(); + var message = new $root.ibc.core.connection.v1.MsgConnectionOpenConfirm(); if (object.connection_id != null) message.connection_id = String(object.connection_id); - if (object.revision_number != null) - if ($util.Long) - (message.revision_number = $util.Long.fromValue(object.revision_number)).unsigned = true; - else if (typeof object.revision_number === "string") - message.revision_number = parseInt(object.revision_number, 10); - else if (typeof object.revision_number === "number") - message.revision_number = object.revision_number; - else if (typeof object.revision_number === "object") - message.revision_number = new $util.LongBits(object.revision_number.low >>> 0, object.revision_number.high >>> 0).toNumber(true); - if (object.revision_height != null) - if ($util.Long) - (message.revision_height = $util.Long.fromValue(object.revision_height)).unsigned = true; - else if (typeof object.revision_height === "string") - message.revision_height = parseInt(object.revision_height, 10); - else if (typeof object.revision_height === "number") - message.revision_height = object.revision_height; - else if (typeof object.revision_height === "object") - message.revision_height = new $util.LongBits(object.revision_height.low >>> 0, object.revision_height.high >>> 0).toNumber(true); + if (object.proof_ack != null) + if (typeof object.proof_ack === "string") + $util.base64.decode(object.proof_ack, message.proof_ack = $util.newBuffer($util.base64.length(object.proof_ack)), 0); + else if (object.proof_ack.length) + message.proof_ack = object.proof_ack; + if (object.proof_height != null) { + if (typeof object.proof_height !== "object") + throw TypeError(".ibc.core.connection.v1.MsgConnectionOpenConfirm.proof_height: object expected"); + message.proof_height = $root.ibc.core.client.v1.Height.fromObject(object.proof_height); + } + if (object.signer != null) + message.signer = String(object.signer); return message; }; /** - * Creates a plain object from a QueryConnectionConsensusStateRequest message. Also converts values to other types if specified. + * Creates a plain object from a MsgConnectionOpenConfirm message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.connection.v1.QueryConnectionConsensusStateRequest + * @memberof ibc.core.connection.v1.MsgConnectionOpenConfirm * @static - * @param {ibc.core.connection.v1.QueryConnectionConsensusStateRequest} message QueryConnectionConsensusStateRequest + * @param {ibc.core.connection.v1.MsgConnectionOpenConfirm} message MsgConnectionOpenConfirm * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryConnectionConsensusStateRequest.toObject = function toObject(message, options) { + MsgConnectionOpenConfirm.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.connection_id = ""; - if ($util.Long) { - var long = new $util.Long(0, 0, true); - object.revision_number = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.revision_number = options.longs === String ? "0" : 0; - if ($util.Long) { - var long = new $util.Long(0, 0, true); - object.revision_height = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.revision_height = options.longs === String ? "0" : 0; + if (options.bytes === String) + object.proof_ack = ""; + else { + object.proof_ack = []; + if (options.bytes !== Array) + object.proof_ack = $util.newBuffer(object.proof_ack); + } + object.proof_height = null; + object.signer = ""; } if (message.connection_id != null && message.hasOwnProperty("connection_id")) object.connection_id = message.connection_id; - if (message.revision_number != null && message.hasOwnProperty("revision_number")) - if (typeof message.revision_number === "number") - object.revision_number = options.longs === String ? String(message.revision_number) : message.revision_number; - else - object.revision_number = options.longs === String ? $util.Long.prototype.toString.call(message.revision_number) : options.longs === Number ? new $util.LongBits(message.revision_number.low >>> 0, message.revision_number.high >>> 0).toNumber(true) : message.revision_number; - if (message.revision_height != null && message.hasOwnProperty("revision_height")) - if (typeof message.revision_height === "number") - object.revision_height = options.longs === String ? String(message.revision_height) : message.revision_height; - else - object.revision_height = options.longs === String ? $util.Long.prototype.toString.call(message.revision_height) : options.longs === Number ? new $util.LongBits(message.revision_height.low >>> 0, message.revision_height.high >>> 0).toNumber(true) : message.revision_height; + if (message.proof_ack != null && message.hasOwnProperty("proof_ack")) + object.proof_ack = options.bytes === String ? $util.base64.encode(message.proof_ack, 0, message.proof_ack.length) : options.bytes === Array ? Array.prototype.slice.call(message.proof_ack) : message.proof_ack; + if (message.proof_height != null && message.hasOwnProperty("proof_height")) + object.proof_height = $root.ibc.core.client.v1.Height.toObject(message.proof_height, options); + if (message.signer != null && message.hasOwnProperty("signer")) + object.signer = message.signer; return object; }; /** - * Converts this QueryConnectionConsensusStateRequest to JSON. + * Converts this MsgConnectionOpenConfirm to JSON. * @function toJSON - * @memberof ibc.core.connection.v1.QueryConnectionConsensusStateRequest + * @memberof ibc.core.connection.v1.MsgConnectionOpenConfirm * @instance * @returns {Object.} JSON object */ - QueryConnectionConsensusStateRequest.prototype.toJSON = function toJSON() { + MsgConnectionOpenConfirm.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryConnectionConsensusStateRequest; + return MsgConnectionOpenConfirm; })(); - v1.QueryConnectionConsensusStateResponse = (function() { + v1.MsgConnectionOpenConfirmResponse = (function() { /** - * Properties of a QueryConnectionConsensusStateResponse. + * Properties of a MsgConnectionOpenConfirmResponse. * @memberof ibc.core.connection.v1 - * @interface IQueryConnectionConsensusStateResponse - * @property {google.protobuf.IAny|null} [consensus_state] QueryConnectionConsensusStateResponse consensus_state - * @property {string|null} [client_id] QueryConnectionConsensusStateResponse client_id - * @property {Uint8Array|null} [proof] QueryConnectionConsensusStateResponse proof - * @property {ibc.core.client.v1.IHeight|null} [proof_height] QueryConnectionConsensusStateResponse proof_height + * @interface IMsgConnectionOpenConfirmResponse */ /** - * Constructs a new QueryConnectionConsensusStateResponse. + * Constructs a new MsgConnectionOpenConfirmResponse. * @memberof ibc.core.connection.v1 - * @classdesc Represents a QueryConnectionConsensusStateResponse. - * @implements IQueryConnectionConsensusStateResponse + * @classdesc Represents a MsgConnectionOpenConfirmResponse. + * @implements IMsgConnectionOpenConfirmResponse * @constructor - * @param {ibc.core.connection.v1.IQueryConnectionConsensusStateResponse=} [properties] Properties to set + * @param {ibc.core.connection.v1.IMsgConnectionOpenConfirmResponse=} [properties] Properties to set */ - function QueryConnectionConsensusStateResponse(properties) { + function MsgConnectionOpenConfirmResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -63325,103 +69870,51 @@ } /** - * QueryConnectionConsensusStateResponse consensus_state. - * @member {google.protobuf.IAny|null|undefined} consensus_state - * @memberof ibc.core.connection.v1.QueryConnectionConsensusStateResponse - * @instance - */ - QueryConnectionConsensusStateResponse.prototype.consensus_state = null; - - /** - * QueryConnectionConsensusStateResponse client_id. - * @member {string} client_id - * @memberof ibc.core.connection.v1.QueryConnectionConsensusStateResponse - * @instance - */ - QueryConnectionConsensusStateResponse.prototype.client_id = ""; - - /** - * QueryConnectionConsensusStateResponse proof. - * @member {Uint8Array} proof - * @memberof ibc.core.connection.v1.QueryConnectionConsensusStateResponse - * @instance - */ - QueryConnectionConsensusStateResponse.prototype.proof = $util.newBuffer([]); - - /** - * QueryConnectionConsensusStateResponse proof_height. - * @member {ibc.core.client.v1.IHeight|null|undefined} proof_height - * @memberof ibc.core.connection.v1.QueryConnectionConsensusStateResponse - * @instance - */ - QueryConnectionConsensusStateResponse.prototype.proof_height = null; - - /** - * Encodes the specified QueryConnectionConsensusStateResponse message. Does not implicitly {@link ibc.core.connection.v1.QueryConnectionConsensusStateResponse.verify|verify} messages. + * Encodes the specified MsgConnectionOpenConfirmResponse message. Does not implicitly {@link ibc.core.connection.v1.MsgConnectionOpenConfirmResponse.verify|verify} messages. * @function encode - * @memberof ibc.core.connection.v1.QueryConnectionConsensusStateResponse + * @memberof ibc.core.connection.v1.MsgConnectionOpenConfirmResponse * @static - * @param {ibc.core.connection.v1.IQueryConnectionConsensusStateResponse} message QueryConnectionConsensusStateResponse message or plain object to encode + * @param {ibc.core.connection.v1.IMsgConnectionOpenConfirmResponse} message MsgConnectionOpenConfirmResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryConnectionConsensusStateResponse.encode = function encode(message, writer) { + MsgConnectionOpenConfirmResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.consensus_state != null && Object.hasOwnProperty.call(message, "consensus_state")) - $root.google.protobuf.Any.encode(message.consensus_state, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.client_id != null && Object.hasOwnProperty.call(message, "client_id")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.client_id); - if (message.proof != null && Object.hasOwnProperty.call(message, "proof")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.proof); - if (message.proof_height != null && Object.hasOwnProperty.call(message, "proof_height")) - $root.ibc.core.client.v1.Height.encode(message.proof_height, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; /** - * Encodes the specified QueryConnectionConsensusStateResponse message, length delimited. Does not implicitly {@link ibc.core.connection.v1.QueryConnectionConsensusStateResponse.verify|verify} messages. + * Encodes the specified MsgConnectionOpenConfirmResponse message, length delimited. Does not implicitly {@link ibc.core.connection.v1.MsgConnectionOpenConfirmResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.connection.v1.QueryConnectionConsensusStateResponse + * @memberof ibc.core.connection.v1.MsgConnectionOpenConfirmResponse * @static - * @param {ibc.core.connection.v1.IQueryConnectionConsensusStateResponse} message QueryConnectionConsensusStateResponse message or plain object to encode + * @param {ibc.core.connection.v1.IMsgConnectionOpenConfirmResponse} message MsgConnectionOpenConfirmResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryConnectionConsensusStateResponse.encodeDelimited = function encodeDelimited(message, writer) { + MsgConnectionOpenConfirmResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryConnectionConsensusStateResponse message from the specified reader or buffer. + * Decodes a MsgConnectionOpenConfirmResponse message from the specified reader or buffer. * @function decode - * @memberof ibc.core.connection.v1.QueryConnectionConsensusStateResponse + * @memberof ibc.core.connection.v1.MsgConnectionOpenConfirmResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.connection.v1.QueryConnectionConsensusStateResponse} QueryConnectionConsensusStateResponse + * @returns {ibc.core.connection.v1.MsgConnectionOpenConfirmResponse} MsgConnectionOpenConfirmResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryConnectionConsensusStateResponse.decode = function decode(reader, length) { + MsgConnectionOpenConfirmResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.connection.v1.QueryConnectionConsensusStateResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.consensus_state = $root.google.protobuf.Any.decode(reader, reader.uint32()); - break; - case 2: - message.client_id = reader.string(); - break; - case 3: - message.proof = reader.bytes(); - break; - case 4: - message.proof_height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); - break; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.connection.v1.MsgConnectionOpenConfirmResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { default: reader.skipType(tag & 7); break; @@ -63431,156 +69924,99 @@ }; /** - * Decodes a QueryConnectionConsensusStateResponse message from the specified reader or buffer, length delimited. + * Decodes a MsgConnectionOpenConfirmResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.connection.v1.QueryConnectionConsensusStateResponse + * @memberof ibc.core.connection.v1.MsgConnectionOpenConfirmResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.connection.v1.QueryConnectionConsensusStateResponse} QueryConnectionConsensusStateResponse + * @returns {ibc.core.connection.v1.MsgConnectionOpenConfirmResponse} MsgConnectionOpenConfirmResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryConnectionConsensusStateResponse.decodeDelimited = function decodeDelimited(reader) { + MsgConnectionOpenConfirmResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryConnectionConsensusStateResponse message. + * Verifies a MsgConnectionOpenConfirmResponse message. * @function verify - * @memberof ibc.core.connection.v1.QueryConnectionConsensusStateResponse + * @memberof ibc.core.connection.v1.MsgConnectionOpenConfirmResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryConnectionConsensusStateResponse.verify = function verify(message) { + MsgConnectionOpenConfirmResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.consensus_state != null && message.hasOwnProperty("consensus_state")) { - var error = $root.google.protobuf.Any.verify(message.consensus_state); - if (error) - return "consensus_state." + error; - } - if (message.client_id != null && message.hasOwnProperty("client_id")) - if (!$util.isString(message.client_id)) - return "client_id: string expected"; - if (message.proof != null && message.hasOwnProperty("proof")) - if (!(message.proof && typeof message.proof.length === "number" || $util.isString(message.proof))) - return "proof: buffer expected"; - if (message.proof_height != null && message.hasOwnProperty("proof_height")) { - var error = $root.ibc.core.client.v1.Height.verify(message.proof_height); - if (error) - return "proof_height." + error; - } return null; }; /** - * Creates a QueryConnectionConsensusStateResponse message from a plain object. Also converts values to their respective internal types. + * Creates a MsgConnectionOpenConfirmResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.connection.v1.QueryConnectionConsensusStateResponse + * @memberof ibc.core.connection.v1.MsgConnectionOpenConfirmResponse * @static * @param {Object.} object Plain object - * @returns {ibc.core.connection.v1.QueryConnectionConsensusStateResponse} QueryConnectionConsensusStateResponse + * @returns {ibc.core.connection.v1.MsgConnectionOpenConfirmResponse} MsgConnectionOpenConfirmResponse */ - QueryConnectionConsensusStateResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.connection.v1.QueryConnectionConsensusStateResponse) + MsgConnectionOpenConfirmResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.connection.v1.MsgConnectionOpenConfirmResponse) return object; - var message = new $root.ibc.core.connection.v1.QueryConnectionConsensusStateResponse(); - if (object.consensus_state != null) { - if (typeof object.consensus_state !== "object") - throw TypeError(".ibc.core.connection.v1.QueryConnectionConsensusStateResponse.consensus_state: object expected"); - message.consensus_state = $root.google.protobuf.Any.fromObject(object.consensus_state); - } - if (object.client_id != null) - message.client_id = String(object.client_id); - if (object.proof != null) - if (typeof object.proof === "string") - $util.base64.decode(object.proof, message.proof = $util.newBuffer($util.base64.length(object.proof)), 0); - else if (object.proof.length) - message.proof = object.proof; - if (object.proof_height != null) { - if (typeof object.proof_height !== "object") - throw TypeError(".ibc.core.connection.v1.QueryConnectionConsensusStateResponse.proof_height: object expected"); - message.proof_height = $root.ibc.core.client.v1.Height.fromObject(object.proof_height); - } - return message; + return new $root.ibc.core.connection.v1.MsgConnectionOpenConfirmResponse(); }; /** - * Creates a plain object from a QueryConnectionConsensusStateResponse message. Also converts values to other types if specified. + * Creates a plain object from a MsgConnectionOpenConfirmResponse message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.connection.v1.QueryConnectionConsensusStateResponse + * @memberof ibc.core.connection.v1.MsgConnectionOpenConfirmResponse * @static - * @param {ibc.core.connection.v1.QueryConnectionConsensusStateResponse} message QueryConnectionConsensusStateResponse + * @param {ibc.core.connection.v1.MsgConnectionOpenConfirmResponse} message MsgConnectionOpenConfirmResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryConnectionConsensusStateResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.consensus_state = null; - object.client_id = ""; - if (options.bytes === String) - object.proof = ""; - else { - object.proof = []; - if (options.bytes !== Array) - object.proof = $util.newBuffer(object.proof); - } - object.proof_height = null; - } - if (message.consensus_state != null && message.hasOwnProperty("consensus_state")) - object.consensus_state = $root.google.protobuf.Any.toObject(message.consensus_state, options); - if (message.client_id != null && message.hasOwnProperty("client_id")) - object.client_id = message.client_id; - if (message.proof != null && message.hasOwnProperty("proof")) - object.proof = options.bytes === String ? $util.base64.encode(message.proof, 0, message.proof.length) : options.bytes === Array ? Array.prototype.slice.call(message.proof) : message.proof; - if (message.proof_height != null && message.hasOwnProperty("proof_height")) - object.proof_height = $root.ibc.core.client.v1.Height.toObject(message.proof_height, options); - return object; + MsgConnectionOpenConfirmResponse.toObject = function toObject() { + return {}; }; /** - * Converts this QueryConnectionConsensusStateResponse to JSON. + * Converts this MsgConnectionOpenConfirmResponse to JSON. * @function toJSON - * @memberof ibc.core.connection.v1.QueryConnectionConsensusStateResponse + * @memberof ibc.core.connection.v1.MsgConnectionOpenConfirmResponse * @instance * @returns {Object.} JSON object */ - QueryConnectionConsensusStateResponse.prototype.toJSON = function toJSON() { + MsgConnectionOpenConfirmResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryConnectionConsensusStateResponse; + return MsgConnectionOpenConfirmResponse; })(); - v1.GenesisState = (function() { + v1.ConnectionEnd = (function() { /** - * Properties of a GenesisState. + * Properties of a ConnectionEnd. * @memberof ibc.core.connection.v1 - * @interface IGenesisState - * @property {Array.|null} [connections] GenesisState connections - * @property {Array.|null} [client_connection_paths] GenesisState client_connection_paths - * @property {Long|null} [next_connection_sequence] GenesisState next_connection_sequence - * @property {ibc.core.connection.v1.IParams|null} [params] GenesisState params + * @interface IConnectionEnd + * @property {string|null} [client_id] ConnectionEnd client_id + * @property {Array.|null} [versions] ConnectionEnd versions + * @property {ibc.core.connection.v1.State|null} [state] ConnectionEnd state + * @property {ibc.core.connection.v1.ICounterparty|null} [counterparty] ConnectionEnd counterparty + * @property {Long|null} [delay_period] ConnectionEnd delay_period */ /** - * Constructs a new GenesisState. + * Constructs a new ConnectionEnd. * @memberof ibc.core.connection.v1 - * @classdesc Represents a GenesisState. - * @implements IGenesisState + * @classdesc Represents a ConnectionEnd. + * @implements IConnectionEnd * @constructor - * @param {ibc.core.connection.v1.IGenesisState=} [properties] Properties to set + * @param {ibc.core.connection.v1.IConnectionEnd=} [properties] Properties to set */ - function GenesisState(properties) { - this.connections = []; - this.client_connection_paths = []; + function ConnectionEnd(properties) { + this.versions = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -63588,108 +70024,118 @@ } /** - * GenesisState connections. - * @member {Array.} connections - * @memberof ibc.core.connection.v1.GenesisState + * ConnectionEnd client_id. + * @member {string} client_id + * @memberof ibc.core.connection.v1.ConnectionEnd * @instance */ - GenesisState.prototype.connections = $util.emptyArray; + ConnectionEnd.prototype.client_id = ""; /** - * GenesisState client_connection_paths. - * @member {Array.} client_connection_paths - * @memberof ibc.core.connection.v1.GenesisState + * ConnectionEnd versions. + * @member {Array.} versions + * @memberof ibc.core.connection.v1.ConnectionEnd * @instance */ - GenesisState.prototype.client_connection_paths = $util.emptyArray; + ConnectionEnd.prototype.versions = $util.emptyArray; /** - * GenesisState next_connection_sequence. - * @member {Long} next_connection_sequence - * @memberof ibc.core.connection.v1.GenesisState + * ConnectionEnd state. + * @member {ibc.core.connection.v1.State} state + * @memberof ibc.core.connection.v1.ConnectionEnd * @instance */ - GenesisState.prototype.next_connection_sequence = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + ConnectionEnd.prototype.state = 0; /** - * GenesisState params. - * @member {ibc.core.connection.v1.IParams|null|undefined} params - * @memberof ibc.core.connection.v1.GenesisState + * ConnectionEnd counterparty. + * @member {ibc.core.connection.v1.ICounterparty|null|undefined} counterparty + * @memberof ibc.core.connection.v1.ConnectionEnd * @instance */ - GenesisState.prototype.params = null; + ConnectionEnd.prototype.counterparty = null; /** - * Encodes the specified GenesisState message. Does not implicitly {@link ibc.core.connection.v1.GenesisState.verify|verify} messages. + * ConnectionEnd delay_period. + * @member {Long} delay_period + * @memberof ibc.core.connection.v1.ConnectionEnd + * @instance + */ + ConnectionEnd.prototype.delay_period = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + + /** + * Encodes the specified ConnectionEnd message. Does not implicitly {@link ibc.core.connection.v1.ConnectionEnd.verify|verify} messages. * @function encode - * @memberof ibc.core.connection.v1.GenesisState + * @memberof ibc.core.connection.v1.ConnectionEnd * @static - * @param {ibc.core.connection.v1.IGenesisState} message GenesisState message or plain object to encode + * @param {ibc.core.connection.v1.IConnectionEnd} message ConnectionEnd message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GenesisState.encode = function encode(message, writer) { + ConnectionEnd.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.connections != null && message.connections.length) - for (var i = 0; i < message.connections.length; ++i) - $root.ibc.core.connection.v1.IdentifiedConnection.encode(message.connections[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.client_connection_paths != null && message.client_connection_paths.length) - for (var i = 0; i < message.client_connection_paths.length; ++i) - $root.ibc.core.connection.v1.ConnectionPaths.encode(message.client_connection_paths[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.next_connection_sequence != null && Object.hasOwnProperty.call(message, "next_connection_sequence")) - writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.next_connection_sequence); - if (message.params != null && Object.hasOwnProperty.call(message, "params")) - $root.ibc.core.connection.v1.Params.encode(message.params, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.client_id != null && Object.hasOwnProperty.call(message, "client_id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.client_id); + if (message.versions != null && message.versions.length) + for (var i = 0; i < message.versions.length; ++i) + $root.ibc.core.connection.v1.Version.encode(message.versions[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.state); + if (message.counterparty != null && Object.hasOwnProperty.call(message, "counterparty")) + $root.ibc.core.connection.v1.Counterparty.encode(message.counterparty, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.delay_period != null && Object.hasOwnProperty.call(message, "delay_period")) + writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.delay_period); return writer; }; /** - * Encodes the specified GenesisState message, length delimited. Does not implicitly {@link ibc.core.connection.v1.GenesisState.verify|verify} messages. + * Encodes the specified ConnectionEnd message, length delimited. Does not implicitly {@link ibc.core.connection.v1.ConnectionEnd.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.connection.v1.GenesisState + * @memberof ibc.core.connection.v1.ConnectionEnd * @static - * @param {ibc.core.connection.v1.IGenesisState} message GenesisState message or plain object to encode + * @param {ibc.core.connection.v1.IConnectionEnd} message ConnectionEnd message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GenesisState.encodeDelimited = function encodeDelimited(message, writer) { + ConnectionEnd.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GenesisState message from the specified reader or buffer. + * Decodes a ConnectionEnd message from the specified reader or buffer. * @function decode - * @memberof ibc.core.connection.v1.GenesisState + * @memberof ibc.core.connection.v1.ConnectionEnd * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.connection.v1.GenesisState} GenesisState + * @returns {ibc.core.connection.v1.ConnectionEnd} ConnectionEnd * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GenesisState.decode = function decode(reader, length) { + ConnectionEnd.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.connection.v1.GenesisState(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.connection.v1.ConnectionEnd(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.connections && message.connections.length)) - message.connections = []; - message.connections.push($root.ibc.core.connection.v1.IdentifiedConnection.decode(reader, reader.uint32())); + message.client_id = reader.string(); break; case 2: - if (!(message.client_connection_paths && message.client_connection_paths.length)) - message.client_connection_paths = []; - message.client_connection_paths.push($root.ibc.core.connection.v1.ConnectionPaths.decode(reader, reader.uint32())); + if (!(message.versions && message.versions.length)) + message.versions = []; + message.versions.push($root.ibc.core.connection.v1.Version.decode(reader, reader.uint32())); break; case 3: - message.next_connection_sequence = reader.uint64(); + message.state = reader.int32(); break; case 4: - message.params = $root.ibc.core.connection.v1.Params.decode(reader, reader.uint32()); + message.counterparty = $root.ibc.core.connection.v1.Counterparty.decode(reader, reader.uint32()); + break; + case 5: + message.delay_period = reader.uint64(); break; default: reader.skipType(tag & 7); @@ -63700,303 +70146,338 @@ }; /** - * Decodes a GenesisState message from the specified reader or buffer, length delimited. + * Decodes a ConnectionEnd message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.connection.v1.GenesisState + * @memberof ibc.core.connection.v1.ConnectionEnd * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.connection.v1.GenesisState} GenesisState + * @returns {ibc.core.connection.v1.ConnectionEnd} ConnectionEnd * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GenesisState.decodeDelimited = function decodeDelimited(reader) { + ConnectionEnd.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GenesisState message. + * Verifies a ConnectionEnd message. * @function verify - * @memberof ibc.core.connection.v1.GenesisState + * @memberof ibc.core.connection.v1.ConnectionEnd * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GenesisState.verify = function verify(message) { + ConnectionEnd.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.connections != null && message.hasOwnProperty("connections")) { - if (!Array.isArray(message.connections)) - return "connections: array expected"; - for (var i = 0; i < message.connections.length; ++i) { - var error = $root.ibc.core.connection.v1.IdentifiedConnection.verify(message.connections[i]); + if (message.client_id != null && message.hasOwnProperty("client_id")) + if (!$util.isString(message.client_id)) + return "client_id: string expected"; + if (message.versions != null && message.hasOwnProperty("versions")) { + if (!Array.isArray(message.versions)) + return "versions: array expected"; + for (var i = 0; i < message.versions.length; ++i) { + var error = $root.ibc.core.connection.v1.Version.verify(message.versions[i]); if (error) - return "connections." + error; + return "versions." + error; } } - if (message.client_connection_paths != null && message.hasOwnProperty("client_connection_paths")) { - if (!Array.isArray(message.client_connection_paths)) - return "client_connection_paths: array expected"; - for (var i = 0; i < message.client_connection_paths.length; ++i) { - var error = $root.ibc.core.connection.v1.ConnectionPaths.verify(message.client_connection_paths[i]); - if (error) - return "client_connection_paths." + error; + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; } - } - if (message.next_connection_sequence != null && message.hasOwnProperty("next_connection_sequence")) - if (!$util.isInteger(message.next_connection_sequence) && !(message.next_connection_sequence && $util.isInteger(message.next_connection_sequence.low) && $util.isInteger(message.next_connection_sequence.high))) - return "next_connection_sequence: integer|Long expected"; - if (message.params != null && message.hasOwnProperty("params")) { - var error = $root.ibc.core.connection.v1.Params.verify(message.params); + if (message.counterparty != null && message.hasOwnProperty("counterparty")) { + var error = $root.ibc.core.connection.v1.Counterparty.verify(message.counterparty); if (error) - return "params." + error; + return "counterparty." + error; } + if (message.delay_period != null && message.hasOwnProperty("delay_period")) + if (!$util.isInteger(message.delay_period) && !(message.delay_period && $util.isInteger(message.delay_period.low) && $util.isInteger(message.delay_period.high))) + return "delay_period: integer|Long expected"; return null; }; /** - * Creates a GenesisState message from a plain object. Also converts values to their respective internal types. + * Creates a ConnectionEnd message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.connection.v1.GenesisState + * @memberof ibc.core.connection.v1.ConnectionEnd * @static * @param {Object.} object Plain object - * @returns {ibc.core.connection.v1.GenesisState} GenesisState + * @returns {ibc.core.connection.v1.ConnectionEnd} ConnectionEnd */ - GenesisState.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.connection.v1.GenesisState) + ConnectionEnd.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.connection.v1.ConnectionEnd) return object; - var message = new $root.ibc.core.connection.v1.GenesisState(); - if (object.connections) { - if (!Array.isArray(object.connections)) - throw TypeError(".ibc.core.connection.v1.GenesisState.connections: array expected"); - message.connections = []; - for (var i = 0; i < object.connections.length; ++i) { - if (typeof object.connections[i] !== "object") - throw TypeError(".ibc.core.connection.v1.GenesisState.connections: object expected"); - message.connections[i] = $root.ibc.core.connection.v1.IdentifiedConnection.fromObject(object.connections[i]); + var message = new $root.ibc.core.connection.v1.ConnectionEnd(); + if (object.client_id != null) + message.client_id = String(object.client_id); + if (object.versions) { + if (!Array.isArray(object.versions)) + throw TypeError(".ibc.core.connection.v1.ConnectionEnd.versions: array expected"); + message.versions = []; + for (var i = 0; i < object.versions.length; ++i) { + if (typeof object.versions[i] !== "object") + throw TypeError(".ibc.core.connection.v1.ConnectionEnd.versions: object expected"); + message.versions[i] = $root.ibc.core.connection.v1.Version.fromObject(object.versions[i]); } } - if (object.client_connection_paths) { - if (!Array.isArray(object.client_connection_paths)) - throw TypeError(".ibc.core.connection.v1.GenesisState.client_connection_paths: array expected"); - message.client_connection_paths = []; - for (var i = 0; i < object.client_connection_paths.length; ++i) { - if (typeof object.client_connection_paths[i] !== "object") - throw TypeError(".ibc.core.connection.v1.GenesisState.client_connection_paths: object expected"); - message.client_connection_paths[i] = $root.ibc.core.connection.v1.ConnectionPaths.fromObject(object.client_connection_paths[i]); - } + switch (object.state) { + case "STATE_UNINITIALIZED_UNSPECIFIED": + case 0: + message.state = 0; + break; + case "STATE_INIT": + case 1: + message.state = 1; + break; + case "STATE_TRYOPEN": + case 2: + message.state = 2; + break; + case "STATE_OPEN": + case 3: + message.state = 3; + break; } - if (object.next_connection_sequence != null) - if ($util.Long) - (message.next_connection_sequence = $util.Long.fromValue(object.next_connection_sequence)).unsigned = true; - else if (typeof object.next_connection_sequence === "string") - message.next_connection_sequence = parseInt(object.next_connection_sequence, 10); - else if (typeof object.next_connection_sequence === "number") - message.next_connection_sequence = object.next_connection_sequence; - else if (typeof object.next_connection_sequence === "object") - message.next_connection_sequence = new $util.LongBits(object.next_connection_sequence.low >>> 0, object.next_connection_sequence.high >>> 0).toNumber(true); - if (object.params != null) { - if (typeof object.params !== "object") - throw TypeError(".ibc.core.connection.v1.GenesisState.params: object expected"); - message.params = $root.ibc.core.connection.v1.Params.fromObject(object.params); + if (object.counterparty != null) { + if (typeof object.counterparty !== "object") + throw TypeError(".ibc.core.connection.v1.ConnectionEnd.counterparty: object expected"); + message.counterparty = $root.ibc.core.connection.v1.Counterparty.fromObject(object.counterparty); } + if (object.delay_period != null) + if ($util.Long) + (message.delay_period = $util.Long.fromValue(object.delay_period)).unsigned = true; + else if (typeof object.delay_period === "string") + message.delay_period = parseInt(object.delay_period, 10); + else if (typeof object.delay_period === "number") + message.delay_period = object.delay_period; + else if (typeof object.delay_period === "object") + message.delay_period = new $util.LongBits(object.delay_period.low >>> 0, object.delay_period.high >>> 0).toNumber(true); return message; }; /** - * Creates a plain object from a GenesisState message. Also converts values to other types if specified. + * Creates a plain object from a ConnectionEnd message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.connection.v1.GenesisState + * @memberof ibc.core.connection.v1.ConnectionEnd * @static - * @param {ibc.core.connection.v1.GenesisState} message GenesisState + * @param {ibc.core.connection.v1.ConnectionEnd} message ConnectionEnd * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GenesisState.toObject = function toObject(message, options) { + ConnectionEnd.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.connections = []; - object.client_connection_paths = []; - } + if (options.arrays || options.defaults) + object.versions = []; if (options.defaults) { + object.client_id = ""; + object.state = options.enums === String ? "STATE_UNINITIALIZED_UNSPECIFIED" : 0; + object.counterparty = null; if ($util.Long) { var long = new $util.Long(0, 0, true); - object.next_connection_sequence = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + object.delay_period = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.next_connection_sequence = options.longs === String ? "0" : 0; - object.params = null; - } - if (message.connections && message.connections.length) { - object.connections = []; - for (var j = 0; j < message.connections.length; ++j) - object.connections[j] = $root.ibc.core.connection.v1.IdentifiedConnection.toObject(message.connections[j], options); + object.delay_period = options.longs === String ? "0" : 0; } - if (message.client_connection_paths && message.client_connection_paths.length) { - object.client_connection_paths = []; - for (var j = 0; j < message.client_connection_paths.length; ++j) - object.client_connection_paths[j] = $root.ibc.core.connection.v1.ConnectionPaths.toObject(message.client_connection_paths[j], options); + if (message.client_id != null && message.hasOwnProperty("client_id")) + object.client_id = message.client_id; + if (message.versions && message.versions.length) { + object.versions = []; + for (var j = 0; j < message.versions.length; ++j) + object.versions[j] = $root.ibc.core.connection.v1.Version.toObject(message.versions[j], options); } - if (message.next_connection_sequence != null && message.hasOwnProperty("next_connection_sequence")) - if (typeof message.next_connection_sequence === "number") - object.next_connection_sequence = options.longs === String ? String(message.next_connection_sequence) : message.next_connection_sequence; + if (message.state != null && message.hasOwnProperty("state")) + object.state = options.enums === String ? $root.ibc.core.connection.v1.State[message.state] : message.state; + if (message.counterparty != null && message.hasOwnProperty("counterparty")) + object.counterparty = $root.ibc.core.connection.v1.Counterparty.toObject(message.counterparty, options); + if (message.delay_period != null && message.hasOwnProperty("delay_period")) + if (typeof message.delay_period === "number") + object.delay_period = options.longs === String ? String(message.delay_period) : message.delay_period; else - object.next_connection_sequence = options.longs === String ? $util.Long.prototype.toString.call(message.next_connection_sequence) : options.longs === Number ? new $util.LongBits(message.next_connection_sequence.low >>> 0, message.next_connection_sequence.high >>> 0).toNumber(true) : message.next_connection_sequence; - if (message.params != null && message.hasOwnProperty("params")) - object.params = $root.ibc.core.connection.v1.Params.toObject(message.params, options); + object.delay_period = options.longs === String ? $util.Long.prototype.toString.call(message.delay_period) : options.longs === Number ? new $util.LongBits(message.delay_period.low >>> 0, message.delay_period.high >>> 0).toNumber(true) : message.delay_period; return object; }; /** - * Converts this GenesisState to JSON. + * Converts this ConnectionEnd to JSON. * @function toJSON - * @memberof ibc.core.connection.v1.GenesisState + * @memberof ibc.core.connection.v1.ConnectionEnd * @instance * @returns {Object.} JSON object */ - GenesisState.prototype.toJSON = function toJSON() { + ConnectionEnd.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GenesisState; + return ConnectionEnd; })(); - return v1; - })(); - - return connection; - })(); - - core.types = (function() { - - /** - * Namespace types. - * @memberof ibc.core - * @namespace - */ - var types = {}; + v1.IdentifiedConnection = (function() { - types.v1 = (function() { + /** + * Properties of an IdentifiedConnection. + * @memberof ibc.core.connection.v1 + * @interface IIdentifiedConnection + * @property {string|null} [id] IdentifiedConnection id + * @property {string|null} [client_id] IdentifiedConnection client_id + * @property {Array.|null} [versions] IdentifiedConnection versions + * @property {ibc.core.connection.v1.State|null} [state] IdentifiedConnection state + * @property {ibc.core.connection.v1.ICounterparty|null} [counterparty] IdentifiedConnection counterparty + * @property {Long|null} [delay_period] IdentifiedConnection delay_period + */ - /** - * Namespace v1. - * @memberof ibc.core.types - * @namespace - */ - var v1 = {}; + /** + * Constructs a new IdentifiedConnection. + * @memberof ibc.core.connection.v1 + * @classdesc Represents an IdentifiedConnection. + * @implements IIdentifiedConnection + * @constructor + * @param {ibc.core.connection.v1.IIdentifiedConnection=} [properties] Properties to set + */ + function IdentifiedConnection(properties) { + this.versions = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - v1.GenesisState = (function() { + /** + * IdentifiedConnection id. + * @member {string} id + * @memberof ibc.core.connection.v1.IdentifiedConnection + * @instance + */ + IdentifiedConnection.prototype.id = ""; /** - * Properties of a GenesisState. - * @memberof ibc.core.types.v1 - * @interface IGenesisState - * @property {ibc.core.client.v1.IGenesisState|null} [client_genesis] GenesisState client_genesis - * @property {ibc.core.connection.v1.IGenesisState|null} [connection_genesis] GenesisState connection_genesis - * @property {ibc.core.channel.v1.IGenesisState|null} [channel_genesis] GenesisState channel_genesis + * IdentifiedConnection client_id. + * @member {string} client_id + * @memberof ibc.core.connection.v1.IdentifiedConnection + * @instance */ + IdentifiedConnection.prototype.client_id = ""; /** - * Constructs a new GenesisState. - * @memberof ibc.core.types.v1 - * @classdesc Represents a GenesisState. - * @implements IGenesisState - * @constructor - * @param {ibc.core.types.v1.IGenesisState=} [properties] Properties to set + * IdentifiedConnection versions. + * @member {Array.} versions + * @memberof ibc.core.connection.v1.IdentifiedConnection + * @instance */ - function GenesisState(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + IdentifiedConnection.prototype.versions = $util.emptyArray; /** - * GenesisState client_genesis. - * @member {ibc.core.client.v1.IGenesisState|null|undefined} client_genesis - * @memberof ibc.core.types.v1.GenesisState + * IdentifiedConnection state. + * @member {ibc.core.connection.v1.State} state + * @memberof ibc.core.connection.v1.IdentifiedConnection * @instance */ - GenesisState.prototype.client_genesis = null; + IdentifiedConnection.prototype.state = 0; /** - * GenesisState connection_genesis. - * @member {ibc.core.connection.v1.IGenesisState|null|undefined} connection_genesis - * @memberof ibc.core.types.v1.GenesisState + * IdentifiedConnection counterparty. + * @member {ibc.core.connection.v1.ICounterparty|null|undefined} counterparty + * @memberof ibc.core.connection.v1.IdentifiedConnection * @instance */ - GenesisState.prototype.connection_genesis = null; + IdentifiedConnection.prototype.counterparty = null; /** - * GenesisState channel_genesis. - * @member {ibc.core.channel.v1.IGenesisState|null|undefined} channel_genesis - * @memberof ibc.core.types.v1.GenesisState + * IdentifiedConnection delay_period. + * @member {Long} delay_period + * @memberof ibc.core.connection.v1.IdentifiedConnection * @instance */ - GenesisState.prototype.channel_genesis = null; + IdentifiedConnection.prototype.delay_period = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** - * Encodes the specified GenesisState message. Does not implicitly {@link ibc.core.types.v1.GenesisState.verify|verify} messages. + * Encodes the specified IdentifiedConnection message. Does not implicitly {@link ibc.core.connection.v1.IdentifiedConnection.verify|verify} messages. * @function encode - * @memberof ibc.core.types.v1.GenesisState + * @memberof ibc.core.connection.v1.IdentifiedConnection * @static - * @param {ibc.core.types.v1.IGenesisState} message GenesisState message or plain object to encode + * @param {ibc.core.connection.v1.IIdentifiedConnection} message IdentifiedConnection message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GenesisState.encode = function encode(message, writer) { + IdentifiedConnection.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.client_genesis != null && Object.hasOwnProperty.call(message, "client_genesis")) - $root.ibc.core.client.v1.GenesisState.encode(message.client_genesis, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.connection_genesis != null && Object.hasOwnProperty.call(message, "connection_genesis")) - $root.ibc.core.connection.v1.GenesisState.encode(message.connection_genesis, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.channel_genesis != null && Object.hasOwnProperty.call(message, "channel_genesis")) - $root.ibc.core.channel.v1.GenesisState.encode(message.channel_genesis, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.id != null && Object.hasOwnProperty.call(message, "id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.id); + if (message.client_id != null && Object.hasOwnProperty.call(message, "client_id")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.client_id); + if (message.versions != null && message.versions.length) + for (var i = 0; i < message.versions.length; ++i) + $root.ibc.core.connection.v1.Version.encode(message.versions[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.state); + if (message.counterparty != null && Object.hasOwnProperty.call(message, "counterparty")) + $root.ibc.core.connection.v1.Counterparty.encode(message.counterparty, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.delay_period != null && Object.hasOwnProperty.call(message, "delay_period")) + writer.uint32(/* id 6, wireType 0 =*/48).uint64(message.delay_period); return writer; }; /** - * Encodes the specified GenesisState message, length delimited. Does not implicitly {@link ibc.core.types.v1.GenesisState.verify|verify} messages. + * Encodes the specified IdentifiedConnection message, length delimited. Does not implicitly {@link ibc.core.connection.v1.IdentifiedConnection.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.types.v1.GenesisState + * @memberof ibc.core.connection.v1.IdentifiedConnection * @static - * @param {ibc.core.types.v1.IGenesisState} message GenesisState message or plain object to encode + * @param {ibc.core.connection.v1.IIdentifiedConnection} message IdentifiedConnection message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GenesisState.encodeDelimited = function encodeDelimited(message, writer) { + IdentifiedConnection.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GenesisState message from the specified reader or buffer. + * Decodes an IdentifiedConnection message from the specified reader or buffer. * @function decode - * @memberof ibc.core.types.v1.GenesisState + * @memberof ibc.core.connection.v1.IdentifiedConnection * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.types.v1.GenesisState} GenesisState + * @returns {ibc.core.connection.v1.IdentifiedConnection} IdentifiedConnection * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GenesisState.decode = function decode(reader, length) { + IdentifiedConnection.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.types.v1.GenesisState(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.connection.v1.IdentifiedConnection(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.client_genesis = $root.ibc.core.client.v1.GenesisState.decode(reader, reader.uint32()); + message.id = reader.string(); break; case 2: - message.connection_genesis = $root.ibc.core.connection.v1.GenesisState.decode(reader, reader.uint32()); + message.client_id = reader.string(); break; case 3: - message.channel_genesis = $root.ibc.core.channel.v1.GenesisState.decode(reader, reader.uint32()); + if (!(message.versions && message.versions.length)) + message.versions = []; + message.versions.push($root.ibc.core.connection.v1.Version.decode(reader, reader.uint32())); + break; + case 4: + message.state = reader.int32(); + break; + case 5: + message.counterparty = $root.ibc.core.connection.v1.Counterparty.decode(reader, reader.uint32()); + break; + case 6: + message.delay_period = reader.uint64(); break; default: reader.skipType(tag & 7); @@ -64007,176 +70488,228 @@ }; /** - * Decodes a GenesisState message from the specified reader or buffer, length delimited. + * Decodes an IdentifiedConnection message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.types.v1.GenesisState + * @memberof ibc.core.connection.v1.IdentifiedConnection * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.types.v1.GenesisState} GenesisState + * @returns {ibc.core.connection.v1.IdentifiedConnection} IdentifiedConnection * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GenesisState.decodeDelimited = function decodeDelimited(reader) { + IdentifiedConnection.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GenesisState message. + * Verifies an IdentifiedConnection message. * @function verify - * @memberof ibc.core.types.v1.GenesisState + * @memberof ibc.core.connection.v1.IdentifiedConnection * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GenesisState.verify = function verify(message) { + IdentifiedConnection.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.client_genesis != null && message.hasOwnProperty("client_genesis")) { - var error = $root.ibc.core.client.v1.GenesisState.verify(message.client_genesis); - if (error) - return "client_genesis." + error; - } - if (message.connection_genesis != null && message.hasOwnProperty("connection_genesis")) { - var error = $root.ibc.core.connection.v1.GenesisState.verify(message.connection_genesis); - if (error) - return "connection_genesis." + error; + if (message.id != null && message.hasOwnProperty("id")) + if (!$util.isString(message.id)) + return "id: string expected"; + if (message.client_id != null && message.hasOwnProperty("client_id")) + if (!$util.isString(message.client_id)) + return "client_id: string expected"; + if (message.versions != null && message.hasOwnProperty("versions")) { + if (!Array.isArray(message.versions)) + return "versions: array expected"; + for (var i = 0; i < message.versions.length; ++i) { + var error = $root.ibc.core.connection.v1.Version.verify(message.versions[i]); + if (error) + return "versions." + error; + } } - if (message.channel_genesis != null && message.hasOwnProperty("channel_genesis")) { - var error = $root.ibc.core.channel.v1.GenesisState.verify(message.channel_genesis); + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + if (message.counterparty != null && message.hasOwnProperty("counterparty")) { + var error = $root.ibc.core.connection.v1.Counterparty.verify(message.counterparty); if (error) - return "channel_genesis." + error; + return "counterparty." + error; } + if (message.delay_period != null && message.hasOwnProperty("delay_period")) + if (!$util.isInteger(message.delay_period) && !(message.delay_period && $util.isInteger(message.delay_period.low) && $util.isInteger(message.delay_period.high))) + return "delay_period: integer|Long expected"; return null; }; /** - * Creates a GenesisState message from a plain object. Also converts values to their respective internal types. + * Creates an IdentifiedConnection message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.types.v1.GenesisState + * @memberof ibc.core.connection.v1.IdentifiedConnection * @static * @param {Object.} object Plain object - * @returns {ibc.core.types.v1.GenesisState} GenesisState + * @returns {ibc.core.connection.v1.IdentifiedConnection} IdentifiedConnection */ - GenesisState.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.types.v1.GenesisState) + IdentifiedConnection.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.connection.v1.IdentifiedConnection) return object; - var message = new $root.ibc.core.types.v1.GenesisState(); - if (object.client_genesis != null) { - if (typeof object.client_genesis !== "object") - throw TypeError(".ibc.core.types.v1.GenesisState.client_genesis: object expected"); - message.client_genesis = $root.ibc.core.client.v1.GenesisState.fromObject(object.client_genesis); + var message = new $root.ibc.core.connection.v1.IdentifiedConnection(); + if (object.id != null) + message.id = String(object.id); + if (object.client_id != null) + message.client_id = String(object.client_id); + if (object.versions) { + if (!Array.isArray(object.versions)) + throw TypeError(".ibc.core.connection.v1.IdentifiedConnection.versions: array expected"); + message.versions = []; + for (var i = 0; i < object.versions.length; ++i) { + if (typeof object.versions[i] !== "object") + throw TypeError(".ibc.core.connection.v1.IdentifiedConnection.versions: object expected"); + message.versions[i] = $root.ibc.core.connection.v1.Version.fromObject(object.versions[i]); + } } - if (object.connection_genesis != null) { - if (typeof object.connection_genesis !== "object") - throw TypeError(".ibc.core.types.v1.GenesisState.connection_genesis: object expected"); - message.connection_genesis = $root.ibc.core.connection.v1.GenesisState.fromObject(object.connection_genesis); + switch (object.state) { + case "STATE_UNINITIALIZED_UNSPECIFIED": + case 0: + message.state = 0; + break; + case "STATE_INIT": + case 1: + message.state = 1; + break; + case "STATE_TRYOPEN": + case 2: + message.state = 2; + break; + case "STATE_OPEN": + case 3: + message.state = 3; + break; } - if (object.channel_genesis != null) { - if (typeof object.channel_genesis !== "object") - throw TypeError(".ibc.core.types.v1.GenesisState.channel_genesis: object expected"); - message.channel_genesis = $root.ibc.core.channel.v1.GenesisState.fromObject(object.channel_genesis); + if (object.counterparty != null) { + if (typeof object.counterparty !== "object") + throw TypeError(".ibc.core.connection.v1.IdentifiedConnection.counterparty: object expected"); + message.counterparty = $root.ibc.core.connection.v1.Counterparty.fromObject(object.counterparty); } + if (object.delay_period != null) + if ($util.Long) + (message.delay_period = $util.Long.fromValue(object.delay_period)).unsigned = true; + else if (typeof object.delay_period === "string") + message.delay_period = parseInt(object.delay_period, 10); + else if (typeof object.delay_period === "number") + message.delay_period = object.delay_period; + else if (typeof object.delay_period === "object") + message.delay_period = new $util.LongBits(object.delay_period.low >>> 0, object.delay_period.high >>> 0).toNumber(true); return message; }; /** - * Creates a plain object from a GenesisState message. Also converts values to other types if specified. + * Creates a plain object from an IdentifiedConnection message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.types.v1.GenesisState + * @memberof ibc.core.connection.v1.IdentifiedConnection * @static - * @param {ibc.core.types.v1.GenesisState} message GenesisState + * @param {ibc.core.connection.v1.IdentifiedConnection} message IdentifiedConnection * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GenesisState.toObject = function toObject(message, options) { + IdentifiedConnection.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.versions = []; if (options.defaults) { - object.client_genesis = null; - object.connection_genesis = null; - object.channel_genesis = null; + object.id = ""; + object.client_id = ""; + object.state = options.enums === String ? "STATE_UNINITIALIZED_UNSPECIFIED" : 0; + object.counterparty = null; + if ($util.Long) { + var long = new $util.Long(0, 0, true); + object.delay_period = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.delay_period = options.longs === String ? "0" : 0; } - if (message.client_genesis != null && message.hasOwnProperty("client_genesis")) - object.client_genesis = $root.ibc.core.client.v1.GenesisState.toObject(message.client_genesis, options); - if (message.connection_genesis != null && message.hasOwnProperty("connection_genesis")) - object.connection_genesis = $root.ibc.core.connection.v1.GenesisState.toObject(message.connection_genesis, options); - if (message.channel_genesis != null && message.hasOwnProperty("channel_genesis")) - object.channel_genesis = $root.ibc.core.channel.v1.GenesisState.toObject(message.channel_genesis, options); + if (message.id != null && message.hasOwnProperty("id")) + object.id = message.id; + if (message.client_id != null && message.hasOwnProperty("client_id")) + object.client_id = message.client_id; + if (message.versions && message.versions.length) { + object.versions = []; + for (var j = 0; j < message.versions.length; ++j) + object.versions[j] = $root.ibc.core.connection.v1.Version.toObject(message.versions[j], options); + } + if (message.state != null && message.hasOwnProperty("state")) + object.state = options.enums === String ? $root.ibc.core.connection.v1.State[message.state] : message.state; + if (message.counterparty != null && message.hasOwnProperty("counterparty")) + object.counterparty = $root.ibc.core.connection.v1.Counterparty.toObject(message.counterparty, options); + if (message.delay_period != null && message.hasOwnProperty("delay_period")) + if (typeof message.delay_period === "number") + object.delay_period = options.longs === String ? String(message.delay_period) : message.delay_period; + else + object.delay_period = options.longs === String ? $util.Long.prototype.toString.call(message.delay_period) : options.longs === Number ? new $util.LongBits(message.delay_period.low >>> 0, message.delay_period.high >>> 0).toNumber(true) : message.delay_period; return object; }; /** - * Converts this GenesisState to JSON. + * Converts this IdentifiedConnection to JSON. * @function toJSON - * @memberof ibc.core.types.v1.GenesisState + * @memberof ibc.core.connection.v1.IdentifiedConnection * @instance * @returns {Object.} JSON object */ - GenesisState.prototype.toJSON = function toJSON() { + IdentifiedConnection.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GenesisState; + return IdentifiedConnection; })(); - return v1; - })(); - - return types; - })(); - - return core; - })(); - - ibc.lightclients = (function() { - - /** - * Namespace lightclients. - * @memberof ibc - * @namespace - */ - var lightclients = {}; - - lightclients.localhost = (function() { - - /** - * Namespace localhost. - * @memberof ibc.lightclients - * @namespace - */ - var localhost = {}; - - localhost.v1 = (function() { - /** - * Namespace v1. - * @memberof ibc.lightclients.localhost - * @namespace + * State enum. + * @name ibc.core.connection.v1.State + * @enum {number} + * @property {number} STATE_UNINITIALIZED_UNSPECIFIED=0 STATE_UNINITIALIZED_UNSPECIFIED value + * @property {number} STATE_INIT=1 STATE_INIT value + * @property {number} STATE_TRYOPEN=2 STATE_TRYOPEN value + * @property {number} STATE_OPEN=3 STATE_OPEN value */ - var v1 = {}; + v1.State = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "STATE_UNINITIALIZED_UNSPECIFIED"] = 0; + values[valuesById[1] = "STATE_INIT"] = 1; + values[valuesById[2] = "STATE_TRYOPEN"] = 2; + values[valuesById[3] = "STATE_OPEN"] = 3; + return values; + })(); - v1.ClientState = (function() { + v1.Counterparty = (function() { /** - * Properties of a ClientState. - * @memberof ibc.lightclients.localhost.v1 - * @interface IClientState - * @property {string|null} [chain_id] ClientState chain_id - * @property {ibc.core.client.v1.IHeight|null} [height] ClientState height + * Properties of a Counterparty. + * @memberof ibc.core.connection.v1 + * @interface ICounterparty + * @property {string|null} [client_id] Counterparty client_id + * @property {string|null} [connection_id] Counterparty connection_id + * @property {ibc.core.commitment.v1.IMerklePrefix|null} [prefix] Counterparty prefix */ /** - * Constructs a new ClientState. - * @memberof ibc.lightclients.localhost.v1 - * @classdesc Represents a ClientState. - * @implements IClientState + * Constructs a new Counterparty. + * @memberof ibc.core.connection.v1 + * @classdesc Represents a Counterparty. + * @implements ICounterparty * @constructor - * @param {ibc.lightclients.localhost.v1.IClientState=} [properties] Properties to set + * @param {ibc.core.connection.v1.ICounterparty=} [properties] Properties to set */ - function ClientState(properties) { + function Counterparty(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -64184,76 +70717,89 @@ } /** - * ClientState chain_id. - * @member {string} chain_id - * @memberof ibc.lightclients.localhost.v1.ClientState + * Counterparty client_id. + * @member {string} client_id + * @memberof ibc.core.connection.v1.Counterparty * @instance */ - ClientState.prototype.chain_id = ""; + Counterparty.prototype.client_id = ""; /** - * ClientState height. - * @member {ibc.core.client.v1.IHeight|null|undefined} height - * @memberof ibc.lightclients.localhost.v1.ClientState + * Counterparty connection_id. + * @member {string} connection_id + * @memberof ibc.core.connection.v1.Counterparty + * @instance + */ + Counterparty.prototype.connection_id = ""; + + /** + * Counterparty prefix. + * @member {ibc.core.commitment.v1.IMerklePrefix|null|undefined} prefix + * @memberof ibc.core.connection.v1.Counterparty * @instance */ - ClientState.prototype.height = null; + Counterparty.prototype.prefix = null; /** - * Encodes the specified ClientState message. Does not implicitly {@link ibc.lightclients.localhost.v1.ClientState.verify|verify} messages. + * Encodes the specified Counterparty message. Does not implicitly {@link ibc.core.connection.v1.Counterparty.verify|verify} messages. * @function encode - * @memberof ibc.lightclients.localhost.v1.ClientState + * @memberof ibc.core.connection.v1.Counterparty * @static - * @param {ibc.lightclients.localhost.v1.IClientState} message ClientState message or plain object to encode + * @param {ibc.core.connection.v1.ICounterparty} message Counterparty message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ClientState.encode = function encode(message, writer) { + Counterparty.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.chain_id != null && Object.hasOwnProperty.call(message, "chain_id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.chain_id); - if (message.height != null && Object.hasOwnProperty.call(message, "height")) - $root.ibc.core.client.v1.Height.encode(message.height, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.client_id != null && Object.hasOwnProperty.call(message, "client_id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.client_id); + if (message.connection_id != null && Object.hasOwnProperty.call(message, "connection_id")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.connection_id); + if (message.prefix != null && Object.hasOwnProperty.call(message, "prefix")) + $root.ibc.core.commitment.v1.MerklePrefix.encode(message.prefix, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified ClientState message, length delimited. Does not implicitly {@link ibc.lightclients.localhost.v1.ClientState.verify|verify} messages. + * Encodes the specified Counterparty message, length delimited. Does not implicitly {@link ibc.core.connection.v1.Counterparty.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.lightclients.localhost.v1.ClientState + * @memberof ibc.core.connection.v1.Counterparty * @static - * @param {ibc.lightclients.localhost.v1.IClientState} message ClientState message or plain object to encode + * @param {ibc.core.connection.v1.ICounterparty} message Counterparty message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ClientState.encodeDelimited = function encodeDelimited(message, writer) { + Counterparty.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ClientState message from the specified reader or buffer. + * Decodes a Counterparty message from the specified reader or buffer. * @function decode - * @memberof ibc.lightclients.localhost.v1.ClientState + * @memberof ibc.core.connection.v1.Counterparty * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.lightclients.localhost.v1.ClientState} ClientState + * @returns {ibc.core.connection.v1.Counterparty} Counterparty * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ClientState.decode = function decode(reader, length) { + Counterparty.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.localhost.v1.ClientState(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.connection.v1.Counterparty(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.chain_id = reader.string(); + message.client_id = reader.string(); break; case 2: - message.height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); + message.connection_id = reader.string(); + break; + case 3: + message.prefix = $root.ibc.core.commitment.v1.MerklePrefix.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -64264,148 +70810,130 @@ }; /** - * Decodes a ClientState message from the specified reader or buffer, length delimited. + * Decodes a Counterparty message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.lightclients.localhost.v1.ClientState + * @memberof ibc.core.connection.v1.Counterparty * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.lightclients.localhost.v1.ClientState} ClientState + * @returns {ibc.core.connection.v1.Counterparty} Counterparty * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ClientState.decodeDelimited = function decodeDelimited(reader) { + Counterparty.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ClientState message. + * Verifies a Counterparty message. * @function verify - * @memberof ibc.lightclients.localhost.v1.ClientState + * @memberof ibc.core.connection.v1.Counterparty * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ClientState.verify = function verify(message) { + Counterparty.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.chain_id != null && message.hasOwnProperty("chain_id")) - if (!$util.isString(message.chain_id)) - return "chain_id: string expected"; - if (message.height != null && message.hasOwnProperty("height")) { - var error = $root.ibc.core.client.v1.Height.verify(message.height); + if (message.client_id != null && message.hasOwnProperty("client_id")) + if (!$util.isString(message.client_id)) + return "client_id: string expected"; + if (message.connection_id != null && message.hasOwnProperty("connection_id")) + if (!$util.isString(message.connection_id)) + return "connection_id: string expected"; + if (message.prefix != null && message.hasOwnProperty("prefix")) { + var error = $root.ibc.core.commitment.v1.MerklePrefix.verify(message.prefix); if (error) - return "height." + error; + return "prefix." + error; } return null; }; /** - * Creates a ClientState message from a plain object. Also converts values to their respective internal types. + * Creates a Counterparty message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.lightclients.localhost.v1.ClientState + * @memberof ibc.core.connection.v1.Counterparty * @static * @param {Object.} object Plain object - * @returns {ibc.lightclients.localhost.v1.ClientState} ClientState + * @returns {ibc.core.connection.v1.Counterparty} Counterparty */ - ClientState.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.lightclients.localhost.v1.ClientState) + Counterparty.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.connection.v1.Counterparty) return object; - var message = new $root.ibc.lightclients.localhost.v1.ClientState(); - if (object.chain_id != null) - message.chain_id = String(object.chain_id); - if (object.height != null) { - if (typeof object.height !== "object") - throw TypeError(".ibc.lightclients.localhost.v1.ClientState.height: object expected"); - message.height = $root.ibc.core.client.v1.Height.fromObject(object.height); + var message = new $root.ibc.core.connection.v1.Counterparty(); + if (object.client_id != null) + message.client_id = String(object.client_id); + if (object.connection_id != null) + message.connection_id = String(object.connection_id); + if (object.prefix != null) { + if (typeof object.prefix !== "object") + throw TypeError(".ibc.core.connection.v1.Counterparty.prefix: object expected"); + message.prefix = $root.ibc.core.commitment.v1.MerklePrefix.fromObject(object.prefix); } return message; }; /** - * Creates a plain object from a ClientState message. Also converts values to other types if specified. + * Creates a plain object from a Counterparty message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.lightclients.localhost.v1.ClientState + * @memberof ibc.core.connection.v1.Counterparty * @static - * @param {ibc.lightclients.localhost.v1.ClientState} message ClientState + * @param {ibc.core.connection.v1.Counterparty} message Counterparty * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ClientState.toObject = function toObject(message, options) { + Counterparty.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.chain_id = ""; - object.height = null; + object.client_id = ""; + object.connection_id = ""; + object.prefix = null; } - if (message.chain_id != null && message.hasOwnProperty("chain_id")) - object.chain_id = message.chain_id; - if (message.height != null && message.hasOwnProperty("height")) - object.height = $root.ibc.core.client.v1.Height.toObject(message.height, options); + if (message.client_id != null && message.hasOwnProperty("client_id")) + object.client_id = message.client_id; + if (message.connection_id != null && message.hasOwnProperty("connection_id")) + object.connection_id = message.connection_id; + if (message.prefix != null && message.hasOwnProperty("prefix")) + object.prefix = $root.ibc.core.commitment.v1.MerklePrefix.toObject(message.prefix, options); return object; }; /** - * Converts this ClientState to JSON. + * Converts this Counterparty to JSON. * @function toJSON - * @memberof ibc.lightclients.localhost.v1.ClientState + * @memberof ibc.core.connection.v1.Counterparty * @instance * @returns {Object.} JSON object */ - ClientState.prototype.toJSON = function toJSON() { + Counterparty.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ClientState; + return Counterparty; })(); - return v1; - })(); - - return localhost; - })(); - - lightclients.solomachine = (function() { - - /** - * Namespace solomachine. - * @memberof ibc.lightclients - * @namespace - */ - var solomachine = {}; - - solomachine.v1 = (function() { - - /** - * Namespace v1. - * @memberof ibc.lightclients.solomachine - * @namespace - */ - var v1 = {}; - - v1.ClientState = (function() { + v1.ClientPaths = (function() { /** - * Properties of a ClientState. - * @memberof ibc.lightclients.solomachine.v1 - * @interface IClientState - * @property {Long|null} [sequence] ClientState sequence - * @property {Long|null} [frozen_sequence] ClientState frozen_sequence - * @property {ibc.lightclients.solomachine.v1.IConsensusState|null} [consensus_state] ClientState consensus_state - * @property {boolean|null} [allow_update_after_proposal] ClientState allow_update_after_proposal + * Properties of a ClientPaths. + * @memberof ibc.core.connection.v1 + * @interface IClientPaths + * @property {Array.|null} [paths] ClientPaths paths */ /** - * Constructs a new ClientState. - * @memberof ibc.lightclients.solomachine.v1 - * @classdesc Represents a ClientState. - * @implements IClientState + * Constructs a new ClientPaths. + * @memberof ibc.core.connection.v1 + * @classdesc Represents a ClientPaths. + * @implements IClientPaths * @constructor - * @param {ibc.lightclients.solomachine.v1.IClientState=} [properties] Properties to set + * @param {ibc.core.connection.v1.IClientPaths=} [properties] Properties to set */ - function ClientState(properties) { + function ClientPaths(properties) { + this.paths = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -64413,102 +70941,66 @@ } /** - * ClientState sequence. - * @member {Long} sequence - * @memberof ibc.lightclients.solomachine.v1.ClientState - * @instance - */ - ClientState.prototype.sequence = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * ClientState frozen_sequence. - * @member {Long} frozen_sequence - * @memberof ibc.lightclients.solomachine.v1.ClientState - * @instance - */ - ClientState.prototype.frozen_sequence = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * ClientState consensus_state. - * @member {ibc.lightclients.solomachine.v1.IConsensusState|null|undefined} consensus_state - * @memberof ibc.lightclients.solomachine.v1.ClientState - * @instance - */ - ClientState.prototype.consensus_state = null; - - /** - * ClientState allow_update_after_proposal. - * @member {boolean} allow_update_after_proposal - * @memberof ibc.lightclients.solomachine.v1.ClientState + * ClientPaths paths. + * @member {Array.} paths + * @memberof ibc.core.connection.v1.ClientPaths * @instance */ - ClientState.prototype.allow_update_after_proposal = false; + ClientPaths.prototype.paths = $util.emptyArray; /** - * Encodes the specified ClientState message. Does not implicitly {@link ibc.lightclients.solomachine.v1.ClientState.verify|verify} messages. + * Encodes the specified ClientPaths message. Does not implicitly {@link ibc.core.connection.v1.ClientPaths.verify|verify} messages. * @function encode - * @memberof ibc.lightclients.solomachine.v1.ClientState + * @memberof ibc.core.connection.v1.ClientPaths * @static - * @param {ibc.lightclients.solomachine.v1.IClientState} message ClientState message or plain object to encode + * @param {ibc.core.connection.v1.IClientPaths} message ClientPaths message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ClientState.encode = function encode(message, writer) { + ClientPaths.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.sequence != null && Object.hasOwnProperty.call(message, "sequence")) - writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.sequence); - if (message.frozen_sequence != null && Object.hasOwnProperty.call(message, "frozen_sequence")) - writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.frozen_sequence); - if (message.consensus_state != null && Object.hasOwnProperty.call(message, "consensus_state")) - $root.ibc.lightclients.solomachine.v1.ConsensusState.encode(message.consensus_state, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.allow_update_after_proposal != null && Object.hasOwnProperty.call(message, "allow_update_after_proposal")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.allow_update_after_proposal); + if (message.paths != null && message.paths.length) + for (var i = 0; i < message.paths.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.paths[i]); return writer; }; /** - * Encodes the specified ClientState message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v1.ClientState.verify|verify} messages. + * Encodes the specified ClientPaths message, length delimited. Does not implicitly {@link ibc.core.connection.v1.ClientPaths.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.lightclients.solomachine.v1.ClientState + * @memberof ibc.core.connection.v1.ClientPaths * @static - * @param {ibc.lightclients.solomachine.v1.IClientState} message ClientState message or plain object to encode + * @param {ibc.core.connection.v1.IClientPaths} message ClientPaths message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ClientState.encodeDelimited = function encodeDelimited(message, writer) { + ClientPaths.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ClientState message from the specified reader or buffer. + * Decodes a ClientPaths message from the specified reader or buffer. * @function decode - * @memberof ibc.lightclients.solomachine.v1.ClientState + * @memberof ibc.core.connection.v1.ClientPaths * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.lightclients.solomachine.v1.ClientState} ClientState + * @returns {ibc.core.connection.v1.ClientPaths} ClientPaths * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ClientState.decode = function decode(reader, length) { + ClientPaths.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.solomachine.v1.ClientState(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.connection.v1.ClientPaths(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.sequence = reader.uint64(); - break; - case 2: - message.frozen_sequence = reader.uint64(); - break; - case 3: - message.consensus_state = $root.ibc.lightclients.solomachine.v1.ConsensusState.decode(reader, reader.uint32()); - break; - case 4: - message.allow_update_after_proposal = reader.bool(); + if (!(message.paths && message.paths.length)) + message.paths = []; + message.paths.push(reader.string()); break; default: reader.skipType(tag & 7); @@ -64519,167 +71011,121 @@ }; /** - * Decodes a ClientState message from the specified reader or buffer, length delimited. + * Decodes a ClientPaths message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.lightclients.solomachine.v1.ClientState + * @memberof ibc.core.connection.v1.ClientPaths * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.lightclients.solomachine.v1.ClientState} ClientState + * @returns {ibc.core.connection.v1.ClientPaths} ClientPaths * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ClientState.decodeDelimited = function decodeDelimited(reader) { + ClientPaths.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ClientState message. + * Verifies a ClientPaths message. * @function verify - * @memberof ibc.lightclients.solomachine.v1.ClientState + * @memberof ibc.core.connection.v1.ClientPaths * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ClientState.verify = function verify(message) { + ClientPaths.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.sequence != null && message.hasOwnProperty("sequence")) - if (!$util.isInteger(message.sequence) && !(message.sequence && $util.isInteger(message.sequence.low) && $util.isInteger(message.sequence.high))) - return "sequence: integer|Long expected"; - if (message.frozen_sequence != null && message.hasOwnProperty("frozen_sequence")) - if (!$util.isInteger(message.frozen_sequence) && !(message.frozen_sequence && $util.isInteger(message.frozen_sequence.low) && $util.isInteger(message.frozen_sequence.high))) - return "frozen_sequence: integer|Long expected"; - if (message.consensus_state != null && message.hasOwnProperty("consensus_state")) { - var error = $root.ibc.lightclients.solomachine.v1.ConsensusState.verify(message.consensus_state); - if (error) - return "consensus_state." + error; + if (message.paths != null && message.hasOwnProperty("paths")) { + if (!Array.isArray(message.paths)) + return "paths: array expected"; + for (var i = 0; i < message.paths.length; ++i) + if (!$util.isString(message.paths[i])) + return "paths: string[] expected"; } - if (message.allow_update_after_proposal != null && message.hasOwnProperty("allow_update_after_proposal")) - if (typeof message.allow_update_after_proposal !== "boolean") - return "allow_update_after_proposal: boolean expected"; return null; }; /** - * Creates a ClientState message from a plain object. Also converts values to their respective internal types. + * Creates a ClientPaths message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.lightclients.solomachine.v1.ClientState + * @memberof ibc.core.connection.v1.ClientPaths * @static * @param {Object.} object Plain object - * @returns {ibc.lightclients.solomachine.v1.ClientState} ClientState + * @returns {ibc.core.connection.v1.ClientPaths} ClientPaths */ - ClientState.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.lightclients.solomachine.v1.ClientState) + ClientPaths.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.connection.v1.ClientPaths) return object; - var message = new $root.ibc.lightclients.solomachine.v1.ClientState(); - if (object.sequence != null) - if ($util.Long) - (message.sequence = $util.Long.fromValue(object.sequence)).unsigned = true; - else if (typeof object.sequence === "string") - message.sequence = parseInt(object.sequence, 10); - else if (typeof object.sequence === "number") - message.sequence = object.sequence; - else if (typeof object.sequence === "object") - message.sequence = new $util.LongBits(object.sequence.low >>> 0, object.sequence.high >>> 0).toNumber(true); - if (object.frozen_sequence != null) - if ($util.Long) - (message.frozen_sequence = $util.Long.fromValue(object.frozen_sequence)).unsigned = true; - else if (typeof object.frozen_sequence === "string") - message.frozen_sequence = parseInt(object.frozen_sequence, 10); - else if (typeof object.frozen_sequence === "number") - message.frozen_sequence = object.frozen_sequence; - else if (typeof object.frozen_sequence === "object") - message.frozen_sequence = new $util.LongBits(object.frozen_sequence.low >>> 0, object.frozen_sequence.high >>> 0).toNumber(true); - if (object.consensus_state != null) { - if (typeof object.consensus_state !== "object") - throw TypeError(".ibc.lightclients.solomachine.v1.ClientState.consensus_state: object expected"); - message.consensus_state = $root.ibc.lightclients.solomachine.v1.ConsensusState.fromObject(object.consensus_state); + var message = new $root.ibc.core.connection.v1.ClientPaths(); + if (object.paths) { + if (!Array.isArray(object.paths)) + throw TypeError(".ibc.core.connection.v1.ClientPaths.paths: array expected"); + message.paths = []; + for (var i = 0; i < object.paths.length; ++i) + message.paths[i] = String(object.paths[i]); } - if (object.allow_update_after_proposal != null) - message.allow_update_after_proposal = Boolean(object.allow_update_after_proposal); return message; }; /** - * Creates a plain object from a ClientState message. Also converts values to other types if specified. + * Creates a plain object from a ClientPaths message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.lightclients.solomachine.v1.ClientState + * @memberof ibc.core.connection.v1.ClientPaths * @static - * @param {ibc.lightclients.solomachine.v1.ClientState} message ClientState + * @param {ibc.core.connection.v1.ClientPaths} message ClientPaths * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ClientState.toObject = function toObject(message, options) { + ClientPaths.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - if ($util.Long) { - var long = new $util.Long(0, 0, true); - object.sequence = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.sequence = options.longs === String ? "0" : 0; - if ($util.Long) { - var long = new $util.Long(0, 0, true); - object.frozen_sequence = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.frozen_sequence = options.longs === String ? "0" : 0; - object.consensus_state = null; - object.allow_update_after_proposal = false; + if (options.arrays || options.defaults) + object.paths = []; + if (message.paths && message.paths.length) { + object.paths = []; + for (var j = 0; j < message.paths.length; ++j) + object.paths[j] = message.paths[j]; } - if (message.sequence != null && message.hasOwnProperty("sequence")) - if (typeof message.sequence === "number") - object.sequence = options.longs === String ? String(message.sequence) : message.sequence; - else - object.sequence = options.longs === String ? $util.Long.prototype.toString.call(message.sequence) : options.longs === Number ? new $util.LongBits(message.sequence.low >>> 0, message.sequence.high >>> 0).toNumber(true) : message.sequence; - if (message.frozen_sequence != null && message.hasOwnProperty("frozen_sequence")) - if (typeof message.frozen_sequence === "number") - object.frozen_sequence = options.longs === String ? String(message.frozen_sequence) : message.frozen_sequence; - else - object.frozen_sequence = options.longs === String ? $util.Long.prototype.toString.call(message.frozen_sequence) : options.longs === Number ? new $util.LongBits(message.frozen_sequence.low >>> 0, message.frozen_sequence.high >>> 0).toNumber(true) : message.frozen_sequence; - if (message.consensus_state != null && message.hasOwnProperty("consensus_state")) - object.consensus_state = $root.ibc.lightclients.solomachine.v1.ConsensusState.toObject(message.consensus_state, options); - if (message.allow_update_after_proposal != null && message.hasOwnProperty("allow_update_after_proposal")) - object.allow_update_after_proposal = message.allow_update_after_proposal; return object; }; /** - * Converts this ClientState to JSON. + * Converts this ClientPaths to JSON. * @function toJSON - * @memberof ibc.lightclients.solomachine.v1.ClientState + * @memberof ibc.core.connection.v1.ClientPaths * @instance * @returns {Object.} JSON object */ - ClientState.prototype.toJSON = function toJSON() { + ClientPaths.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ClientState; + return ClientPaths; })(); - v1.ConsensusState = (function() { + v1.ConnectionPaths = (function() { /** - * Properties of a ConsensusState. - * @memberof ibc.lightclients.solomachine.v1 - * @interface IConsensusState - * @property {google.protobuf.IAny|null} [public_key] ConsensusState public_key - * @property {string|null} [diversifier] ConsensusState diversifier - * @property {Long|null} [timestamp] ConsensusState timestamp + * Properties of a ConnectionPaths. + * @memberof ibc.core.connection.v1 + * @interface IConnectionPaths + * @property {string|null} [client_id] ConnectionPaths client_id + * @property {Array.|null} [paths] ConnectionPaths paths */ /** - * Constructs a new ConsensusState. - * @memberof ibc.lightclients.solomachine.v1 - * @classdesc Represents a ConsensusState. - * @implements IConsensusState + * Constructs a new ConnectionPaths. + * @memberof ibc.core.connection.v1 + * @classdesc Represents a ConnectionPaths. + * @implements IConnectionPaths * @constructor - * @param {ibc.lightclients.solomachine.v1.IConsensusState=} [properties] Properties to set + * @param {ibc.core.connection.v1.IConnectionPaths=} [properties] Properties to set */ - function ConsensusState(properties) { + function ConnectionPaths(properties) { + this.paths = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -64687,89 +71133,79 @@ } /** - * ConsensusState public_key. - * @member {google.protobuf.IAny|null|undefined} public_key - * @memberof ibc.lightclients.solomachine.v1.ConsensusState - * @instance - */ - ConsensusState.prototype.public_key = null; - - /** - * ConsensusState diversifier. - * @member {string} diversifier - * @memberof ibc.lightclients.solomachine.v1.ConsensusState + * ConnectionPaths client_id. + * @member {string} client_id + * @memberof ibc.core.connection.v1.ConnectionPaths * @instance */ - ConsensusState.prototype.diversifier = ""; + ConnectionPaths.prototype.client_id = ""; /** - * ConsensusState timestamp. - * @member {Long} timestamp - * @memberof ibc.lightclients.solomachine.v1.ConsensusState + * ConnectionPaths paths. + * @member {Array.} paths + * @memberof ibc.core.connection.v1.ConnectionPaths * @instance */ - ConsensusState.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + ConnectionPaths.prototype.paths = $util.emptyArray; /** - * Encodes the specified ConsensusState message. Does not implicitly {@link ibc.lightclients.solomachine.v1.ConsensusState.verify|verify} messages. + * Encodes the specified ConnectionPaths message. Does not implicitly {@link ibc.core.connection.v1.ConnectionPaths.verify|verify} messages. * @function encode - * @memberof ibc.lightclients.solomachine.v1.ConsensusState + * @memberof ibc.core.connection.v1.ConnectionPaths * @static - * @param {ibc.lightclients.solomachine.v1.IConsensusState} message ConsensusState message or plain object to encode + * @param {ibc.core.connection.v1.IConnectionPaths} message ConnectionPaths message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ConsensusState.encode = function encode(message, writer) { + ConnectionPaths.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.public_key != null && Object.hasOwnProperty.call(message, "public_key")) - $root.google.protobuf.Any.encode(message.public_key, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.diversifier != null && Object.hasOwnProperty.call(message, "diversifier")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.diversifier); - if (message.timestamp != null && Object.hasOwnProperty.call(message, "timestamp")) - writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.timestamp); + if (message.client_id != null && Object.hasOwnProperty.call(message, "client_id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.client_id); + if (message.paths != null && message.paths.length) + for (var i = 0; i < message.paths.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.paths[i]); return writer; }; /** - * Encodes the specified ConsensusState message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v1.ConsensusState.verify|verify} messages. + * Encodes the specified ConnectionPaths message, length delimited. Does not implicitly {@link ibc.core.connection.v1.ConnectionPaths.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.lightclients.solomachine.v1.ConsensusState + * @memberof ibc.core.connection.v1.ConnectionPaths * @static - * @param {ibc.lightclients.solomachine.v1.IConsensusState} message ConsensusState message or plain object to encode + * @param {ibc.core.connection.v1.IConnectionPaths} message ConnectionPaths message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ConsensusState.encodeDelimited = function encodeDelimited(message, writer) { + ConnectionPaths.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ConsensusState message from the specified reader or buffer. + * Decodes a ConnectionPaths message from the specified reader or buffer. * @function decode - * @memberof ibc.lightclients.solomachine.v1.ConsensusState + * @memberof ibc.core.connection.v1.ConnectionPaths * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.lightclients.solomachine.v1.ConsensusState} ConsensusState + * @returns {ibc.core.connection.v1.ConnectionPaths} ConnectionPaths * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ConsensusState.decode = function decode(reader, length) { + ConnectionPaths.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.solomachine.v1.ConsensusState(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.connection.v1.ConnectionPaths(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.public_key = $root.google.protobuf.Any.decode(reader, reader.uint32()); + message.client_id = reader.string(); break; case 2: - message.diversifier = reader.string(); - break; - case 3: - message.timestamp = reader.uint64(); + if (!(message.paths && message.paths.length)) + message.paths = []; + message.paths.push(reader.string()); break; default: reader.skipType(tag & 7); @@ -64780,147 +71216,130 @@ }; /** - * Decodes a ConsensusState message from the specified reader or buffer, length delimited. + * Decodes a ConnectionPaths message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.lightclients.solomachine.v1.ConsensusState + * @memberof ibc.core.connection.v1.ConnectionPaths * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.lightclients.solomachine.v1.ConsensusState} ConsensusState + * @returns {ibc.core.connection.v1.ConnectionPaths} ConnectionPaths * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ConsensusState.decodeDelimited = function decodeDelimited(reader) { + ConnectionPaths.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ConsensusState message. + * Verifies a ConnectionPaths message. * @function verify - * @memberof ibc.lightclients.solomachine.v1.ConsensusState + * @memberof ibc.core.connection.v1.ConnectionPaths * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ConsensusState.verify = function verify(message) { + ConnectionPaths.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.public_key != null && message.hasOwnProperty("public_key")) { - var error = $root.google.protobuf.Any.verify(message.public_key); - if (error) - return "public_key." + error; + if (message.client_id != null && message.hasOwnProperty("client_id")) + if (!$util.isString(message.client_id)) + return "client_id: string expected"; + if (message.paths != null && message.hasOwnProperty("paths")) { + if (!Array.isArray(message.paths)) + return "paths: array expected"; + for (var i = 0; i < message.paths.length; ++i) + if (!$util.isString(message.paths[i])) + return "paths: string[] expected"; } - if (message.diversifier != null && message.hasOwnProperty("diversifier")) - if (!$util.isString(message.diversifier)) - return "diversifier: string expected"; - if (message.timestamp != null && message.hasOwnProperty("timestamp")) - if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high))) - return "timestamp: integer|Long expected"; return null; }; /** - * Creates a ConsensusState message from a plain object. Also converts values to their respective internal types. + * Creates a ConnectionPaths message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.lightclients.solomachine.v1.ConsensusState + * @memberof ibc.core.connection.v1.ConnectionPaths * @static * @param {Object.} object Plain object - * @returns {ibc.lightclients.solomachine.v1.ConsensusState} ConsensusState + * @returns {ibc.core.connection.v1.ConnectionPaths} ConnectionPaths */ - ConsensusState.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.lightclients.solomachine.v1.ConsensusState) + ConnectionPaths.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.connection.v1.ConnectionPaths) return object; - var message = new $root.ibc.lightclients.solomachine.v1.ConsensusState(); - if (object.public_key != null) { - if (typeof object.public_key !== "object") - throw TypeError(".ibc.lightclients.solomachine.v1.ConsensusState.public_key: object expected"); - message.public_key = $root.google.protobuf.Any.fromObject(object.public_key); + var message = new $root.ibc.core.connection.v1.ConnectionPaths(); + if (object.client_id != null) + message.client_id = String(object.client_id); + if (object.paths) { + if (!Array.isArray(object.paths)) + throw TypeError(".ibc.core.connection.v1.ConnectionPaths.paths: array expected"); + message.paths = []; + for (var i = 0; i < object.paths.length; ++i) + message.paths[i] = String(object.paths[i]); } - if (object.diversifier != null) - message.diversifier = String(object.diversifier); - if (object.timestamp != null) - if ($util.Long) - (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true; - else if (typeof object.timestamp === "string") - message.timestamp = parseInt(object.timestamp, 10); - else if (typeof object.timestamp === "number") - message.timestamp = object.timestamp; - else if (typeof object.timestamp === "object") - message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true); return message; }; /** - * Creates a plain object from a ConsensusState message. Also converts values to other types if specified. + * Creates a plain object from a ConnectionPaths message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.lightclients.solomachine.v1.ConsensusState + * @memberof ibc.core.connection.v1.ConnectionPaths * @static - * @param {ibc.lightclients.solomachine.v1.ConsensusState} message ConsensusState + * @param {ibc.core.connection.v1.ConnectionPaths} message ConnectionPaths * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ConsensusState.toObject = function toObject(message, options) { + ConnectionPaths.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.public_key = null; - object.diversifier = ""; - if ($util.Long) { - var long = new $util.Long(0, 0, true); - object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.timestamp = options.longs === String ? "0" : 0; + if (options.arrays || options.defaults) + object.paths = []; + if (options.defaults) + object.client_id = ""; + if (message.client_id != null && message.hasOwnProperty("client_id")) + object.client_id = message.client_id; + if (message.paths && message.paths.length) { + object.paths = []; + for (var j = 0; j < message.paths.length; ++j) + object.paths[j] = message.paths[j]; } - if (message.public_key != null && message.hasOwnProperty("public_key")) - object.public_key = $root.google.protobuf.Any.toObject(message.public_key, options); - if (message.diversifier != null && message.hasOwnProperty("diversifier")) - object.diversifier = message.diversifier; - if (message.timestamp != null && message.hasOwnProperty("timestamp")) - if (typeof message.timestamp === "number") - object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp; - else - object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber(true) : message.timestamp; return object; }; /** - * Converts this ConsensusState to JSON. + * Converts this ConnectionPaths to JSON. * @function toJSON - * @memberof ibc.lightclients.solomachine.v1.ConsensusState + * @memberof ibc.core.connection.v1.ConnectionPaths * @instance * @returns {Object.} JSON object */ - ConsensusState.prototype.toJSON = function toJSON() { + ConnectionPaths.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ConsensusState; + return ConnectionPaths; })(); - v1.Header = (function() { + v1.Version = (function() { /** - * Properties of a Header. - * @memberof ibc.lightclients.solomachine.v1 - * @interface IHeader - * @property {Long|null} [sequence] Header sequence - * @property {Long|null} [timestamp] Header timestamp - * @property {Uint8Array|null} [signature] Header signature - * @property {google.protobuf.IAny|null} [new_public_key] Header new_public_key - * @property {string|null} [new_diversifier] Header new_diversifier + * Properties of a Version. + * @memberof ibc.core.connection.v1 + * @interface IVersion + * @property {string|null} [identifier] Version identifier + * @property {Array.|null} [features] Version features */ /** - * Constructs a new Header. - * @memberof ibc.lightclients.solomachine.v1 - * @classdesc Represents a Header. - * @implements IHeader + * Constructs a new Version. + * @memberof ibc.core.connection.v1 + * @classdesc Represents a Version. + * @implements IVersion * @constructor - * @param {ibc.lightclients.solomachine.v1.IHeader=} [properties] Properties to set + * @param {ibc.core.connection.v1.IVersion=} [properties] Properties to set */ - function Header(properties) { + function Version(properties) { + this.features = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -64928,115 +71347,79 @@ } /** - * Header sequence. - * @member {Long} sequence - * @memberof ibc.lightclients.solomachine.v1.Header - * @instance - */ - Header.prototype.sequence = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * Header timestamp. - * @member {Long} timestamp - * @memberof ibc.lightclients.solomachine.v1.Header - * @instance - */ - Header.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * Header signature. - * @member {Uint8Array} signature - * @memberof ibc.lightclients.solomachine.v1.Header - * @instance - */ - Header.prototype.signature = $util.newBuffer([]); - - /** - * Header new_public_key. - * @member {google.protobuf.IAny|null|undefined} new_public_key - * @memberof ibc.lightclients.solomachine.v1.Header + * Version identifier. + * @member {string} identifier + * @memberof ibc.core.connection.v1.Version * @instance */ - Header.prototype.new_public_key = null; + Version.prototype.identifier = ""; /** - * Header new_diversifier. - * @member {string} new_diversifier - * @memberof ibc.lightclients.solomachine.v1.Header + * Version features. + * @member {Array.} features + * @memberof ibc.core.connection.v1.Version * @instance */ - Header.prototype.new_diversifier = ""; + Version.prototype.features = $util.emptyArray; /** - * Encodes the specified Header message. Does not implicitly {@link ibc.lightclients.solomachine.v1.Header.verify|verify} messages. + * Encodes the specified Version message. Does not implicitly {@link ibc.core.connection.v1.Version.verify|verify} messages. * @function encode - * @memberof ibc.lightclients.solomachine.v1.Header + * @memberof ibc.core.connection.v1.Version * @static - * @param {ibc.lightclients.solomachine.v1.IHeader} message Header message or plain object to encode + * @param {ibc.core.connection.v1.IVersion} message Version message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Header.encode = function encode(message, writer) { + Version.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.sequence != null && Object.hasOwnProperty.call(message, "sequence")) - writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.sequence); - if (message.timestamp != null && Object.hasOwnProperty.call(message, "timestamp")) - writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.timestamp); - if (message.signature != null && Object.hasOwnProperty.call(message, "signature")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.signature); - if (message.new_public_key != null && Object.hasOwnProperty.call(message, "new_public_key")) - $root.google.protobuf.Any.encode(message.new_public_key, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.new_diversifier != null && Object.hasOwnProperty.call(message, "new_diversifier")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.new_diversifier); + if (message.identifier != null && Object.hasOwnProperty.call(message, "identifier")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.identifier); + if (message.features != null && message.features.length) + for (var i = 0; i < message.features.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.features[i]); return writer; }; /** - * Encodes the specified Header message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v1.Header.verify|verify} messages. + * Encodes the specified Version message, length delimited. Does not implicitly {@link ibc.core.connection.v1.Version.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.lightclients.solomachine.v1.Header + * @memberof ibc.core.connection.v1.Version * @static - * @param {ibc.lightclients.solomachine.v1.IHeader} message Header message or plain object to encode + * @param {ibc.core.connection.v1.IVersion} message Version message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Header.encodeDelimited = function encodeDelimited(message, writer) { + Version.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Header message from the specified reader or buffer. + * Decodes a Version message from the specified reader or buffer. * @function decode - * @memberof ibc.lightclients.solomachine.v1.Header + * @memberof ibc.core.connection.v1.Version * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.lightclients.solomachine.v1.Header} Header + * @returns {ibc.core.connection.v1.Version} Version * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Header.decode = function decode(reader, length) { + Version.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.solomachine.v1.Header(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.connection.v1.Version(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.sequence = reader.uint64(); + message.identifier = reader.string(); break; case 2: - message.timestamp = reader.uint64(); - break; - case 3: - message.signature = reader.bytes(); - break; - case 4: - message.new_public_key = $root.google.protobuf.Any.decode(reader, reader.uint32()); - break; - case 5: - message.new_diversifier = reader.string(); + if (!(message.features && message.features.length)) + message.features = []; + message.features.push(reader.string()); break; default: reader.skipType(tag & 7); @@ -65047,185 +71430,128 @@ }; /** - * Decodes a Header message from the specified reader or buffer, length delimited. + * Decodes a Version message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.lightclients.solomachine.v1.Header + * @memberof ibc.core.connection.v1.Version * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.lightclients.solomachine.v1.Header} Header + * @returns {ibc.core.connection.v1.Version} Version * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Header.decodeDelimited = function decodeDelimited(reader) { + Version.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Header message. + * Verifies a Version message. * @function verify - * @memberof ibc.lightclients.solomachine.v1.Header + * @memberof ibc.core.connection.v1.Version * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Header.verify = function verify(message) { + Version.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.sequence != null && message.hasOwnProperty("sequence")) - if (!$util.isInteger(message.sequence) && !(message.sequence && $util.isInteger(message.sequence.low) && $util.isInteger(message.sequence.high))) - return "sequence: integer|Long expected"; - if (message.timestamp != null && message.hasOwnProperty("timestamp")) - if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high))) - return "timestamp: integer|Long expected"; - if (message.signature != null && message.hasOwnProperty("signature")) - if (!(message.signature && typeof message.signature.length === "number" || $util.isString(message.signature))) - return "signature: buffer expected"; - if (message.new_public_key != null && message.hasOwnProperty("new_public_key")) { - var error = $root.google.protobuf.Any.verify(message.new_public_key); - if (error) - return "new_public_key." + error; + if (message.identifier != null && message.hasOwnProperty("identifier")) + if (!$util.isString(message.identifier)) + return "identifier: string expected"; + if (message.features != null && message.hasOwnProperty("features")) { + if (!Array.isArray(message.features)) + return "features: array expected"; + for (var i = 0; i < message.features.length; ++i) + if (!$util.isString(message.features[i])) + return "features: string[] expected"; } - if (message.new_diversifier != null && message.hasOwnProperty("new_diversifier")) - if (!$util.isString(message.new_diversifier)) - return "new_diversifier: string expected"; return null; }; - - /** - * Creates a Header message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof ibc.lightclients.solomachine.v1.Header - * @static - * @param {Object.} object Plain object - * @returns {ibc.lightclients.solomachine.v1.Header} Header - */ - Header.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.lightclients.solomachine.v1.Header) - return object; - var message = new $root.ibc.lightclients.solomachine.v1.Header(); - if (object.sequence != null) - if ($util.Long) - (message.sequence = $util.Long.fromValue(object.sequence)).unsigned = true; - else if (typeof object.sequence === "string") - message.sequence = parseInt(object.sequence, 10); - else if (typeof object.sequence === "number") - message.sequence = object.sequence; - else if (typeof object.sequence === "object") - message.sequence = new $util.LongBits(object.sequence.low >>> 0, object.sequence.high >>> 0).toNumber(true); - if (object.timestamp != null) - if ($util.Long) - (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true; - else if (typeof object.timestamp === "string") - message.timestamp = parseInt(object.timestamp, 10); - else if (typeof object.timestamp === "number") - message.timestamp = object.timestamp; - else if (typeof object.timestamp === "object") - message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true); - if (object.signature != null) - if (typeof object.signature === "string") - $util.base64.decode(object.signature, message.signature = $util.newBuffer($util.base64.length(object.signature)), 0); - else if (object.signature.length) - message.signature = object.signature; - if (object.new_public_key != null) { - if (typeof object.new_public_key !== "object") - throw TypeError(".ibc.lightclients.solomachine.v1.Header.new_public_key: object expected"); - message.new_public_key = $root.google.protobuf.Any.fromObject(object.new_public_key); + + /** + * Creates a Version message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof ibc.core.connection.v1.Version + * @static + * @param {Object.} object Plain object + * @returns {ibc.core.connection.v1.Version} Version + */ + Version.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.connection.v1.Version) + return object; + var message = new $root.ibc.core.connection.v1.Version(); + if (object.identifier != null) + message.identifier = String(object.identifier); + if (object.features) { + if (!Array.isArray(object.features)) + throw TypeError(".ibc.core.connection.v1.Version.features: array expected"); + message.features = []; + for (var i = 0; i < object.features.length; ++i) + message.features[i] = String(object.features[i]); } - if (object.new_diversifier != null) - message.new_diversifier = String(object.new_diversifier); return message; }; /** - * Creates a plain object from a Header message. Also converts values to other types if specified. + * Creates a plain object from a Version message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.lightclients.solomachine.v1.Header + * @memberof ibc.core.connection.v1.Version * @static - * @param {ibc.lightclients.solomachine.v1.Header} message Header + * @param {ibc.core.connection.v1.Version} message Version * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Header.toObject = function toObject(message, options) { + Version.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - if ($util.Long) { - var long = new $util.Long(0, 0, true); - object.sequence = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.sequence = options.longs === String ? "0" : 0; - if ($util.Long) { - var long = new $util.Long(0, 0, true); - object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.timestamp = options.longs === String ? "0" : 0; - if (options.bytes === String) - object.signature = ""; - else { - object.signature = []; - if (options.bytes !== Array) - object.signature = $util.newBuffer(object.signature); - } - object.new_public_key = null; - object.new_diversifier = ""; + if (options.arrays || options.defaults) + object.features = []; + if (options.defaults) + object.identifier = ""; + if (message.identifier != null && message.hasOwnProperty("identifier")) + object.identifier = message.identifier; + if (message.features && message.features.length) { + object.features = []; + for (var j = 0; j < message.features.length; ++j) + object.features[j] = message.features[j]; } - if (message.sequence != null && message.hasOwnProperty("sequence")) - if (typeof message.sequence === "number") - object.sequence = options.longs === String ? String(message.sequence) : message.sequence; - else - object.sequence = options.longs === String ? $util.Long.prototype.toString.call(message.sequence) : options.longs === Number ? new $util.LongBits(message.sequence.low >>> 0, message.sequence.high >>> 0).toNumber(true) : message.sequence; - if (message.timestamp != null && message.hasOwnProperty("timestamp")) - if (typeof message.timestamp === "number") - object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp; - else - object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber(true) : message.timestamp; - if (message.signature != null && message.hasOwnProperty("signature")) - object.signature = options.bytes === String ? $util.base64.encode(message.signature, 0, message.signature.length) : options.bytes === Array ? Array.prototype.slice.call(message.signature) : message.signature; - if (message.new_public_key != null && message.hasOwnProperty("new_public_key")) - object.new_public_key = $root.google.protobuf.Any.toObject(message.new_public_key, options); - if (message.new_diversifier != null && message.hasOwnProperty("new_diversifier")) - object.new_diversifier = message.new_diversifier; return object; }; /** - * Converts this Header to JSON. + * Converts this Version to JSON. * @function toJSON - * @memberof ibc.lightclients.solomachine.v1.Header + * @memberof ibc.core.connection.v1.Version * @instance * @returns {Object.} JSON object */ - Header.prototype.toJSON = function toJSON() { + Version.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Header; + return Version; })(); - v1.Misbehaviour = (function() { + v1.Params = (function() { /** - * Properties of a Misbehaviour. - * @memberof ibc.lightclients.solomachine.v1 - * @interface IMisbehaviour - * @property {string|null} [client_id] Misbehaviour client_id - * @property {Long|null} [sequence] Misbehaviour sequence - * @property {ibc.lightclients.solomachine.v1.ISignatureAndData|null} [signature_one] Misbehaviour signature_one - * @property {ibc.lightclients.solomachine.v1.ISignatureAndData|null} [signature_two] Misbehaviour signature_two + * Properties of a Params. + * @memberof ibc.core.connection.v1 + * @interface IParams + * @property {Long|null} [max_expected_time_per_block] Params max_expected_time_per_block */ /** - * Constructs a new Misbehaviour. - * @memberof ibc.lightclients.solomachine.v1 - * @classdesc Represents a Misbehaviour. - * @implements IMisbehaviour + * Constructs a new Params. + * @memberof ibc.core.connection.v1 + * @classdesc Represents a Params. + * @implements IParams * @constructor - * @param {ibc.lightclients.solomachine.v1.IMisbehaviour=} [properties] Properties to set + * @param {ibc.core.connection.v1.IParams=} [properties] Properties to set */ - function Misbehaviour(properties) { + function Params(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -65233,102 +71559,63 @@ } /** - * Misbehaviour client_id. - * @member {string} client_id - * @memberof ibc.lightclients.solomachine.v1.Misbehaviour - * @instance - */ - Misbehaviour.prototype.client_id = ""; - - /** - * Misbehaviour sequence. - * @member {Long} sequence - * @memberof ibc.lightclients.solomachine.v1.Misbehaviour - * @instance - */ - Misbehaviour.prototype.sequence = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * Misbehaviour signature_one. - * @member {ibc.lightclients.solomachine.v1.ISignatureAndData|null|undefined} signature_one - * @memberof ibc.lightclients.solomachine.v1.Misbehaviour - * @instance - */ - Misbehaviour.prototype.signature_one = null; - - /** - * Misbehaviour signature_two. - * @member {ibc.lightclients.solomachine.v1.ISignatureAndData|null|undefined} signature_two - * @memberof ibc.lightclients.solomachine.v1.Misbehaviour + * Params max_expected_time_per_block. + * @member {Long} max_expected_time_per_block + * @memberof ibc.core.connection.v1.Params * @instance */ - Misbehaviour.prototype.signature_two = null; + Params.prototype.max_expected_time_per_block = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** - * Encodes the specified Misbehaviour message. Does not implicitly {@link ibc.lightclients.solomachine.v1.Misbehaviour.verify|verify} messages. + * Encodes the specified Params message. Does not implicitly {@link ibc.core.connection.v1.Params.verify|verify} messages. * @function encode - * @memberof ibc.lightclients.solomachine.v1.Misbehaviour + * @memberof ibc.core.connection.v1.Params * @static - * @param {ibc.lightclients.solomachine.v1.IMisbehaviour} message Misbehaviour message or plain object to encode + * @param {ibc.core.connection.v1.IParams} message Params message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Misbehaviour.encode = function encode(message, writer) { + Params.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.client_id != null && Object.hasOwnProperty.call(message, "client_id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.client_id); - if (message.sequence != null && Object.hasOwnProperty.call(message, "sequence")) - writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.sequence); - if (message.signature_one != null && Object.hasOwnProperty.call(message, "signature_one")) - $root.ibc.lightclients.solomachine.v1.SignatureAndData.encode(message.signature_one, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.signature_two != null && Object.hasOwnProperty.call(message, "signature_two")) - $root.ibc.lightclients.solomachine.v1.SignatureAndData.encode(message.signature_two, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.max_expected_time_per_block != null && Object.hasOwnProperty.call(message, "max_expected_time_per_block")) + writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.max_expected_time_per_block); return writer; }; /** - * Encodes the specified Misbehaviour message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v1.Misbehaviour.verify|verify} messages. + * Encodes the specified Params message, length delimited. Does not implicitly {@link ibc.core.connection.v1.Params.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.lightclients.solomachine.v1.Misbehaviour + * @memberof ibc.core.connection.v1.Params * @static - * @param {ibc.lightclients.solomachine.v1.IMisbehaviour} message Misbehaviour message or plain object to encode + * @param {ibc.core.connection.v1.IParams} message Params message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Misbehaviour.encodeDelimited = function encodeDelimited(message, writer) { + Params.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Misbehaviour message from the specified reader or buffer. + * Decodes a Params message from the specified reader or buffer. * @function decode - * @memberof ibc.lightclients.solomachine.v1.Misbehaviour + * @memberof ibc.core.connection.v1.Params * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.lightclients.solomachine.v1.Misbehaviour} Misbehaviour + * @returns {ibc.core.connection.v1.Params} Params * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Misbehaviour.decode = function decode(reader, length) { + Params.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.solomachine.v1.Misbehaviour(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.connection.v1.Params(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.client_id = reader.string(); - break; - case 2: - message.sequence = reader.uint64(); - break; - case 3: - message.signature_one = $root.ibc.lightclients.solomachine.v1.SignatureAndData.decode(reader, reader.uint32()); - break; - case 4: - message.signature_two = $root.ibc.lightclients.solomachine.v1.SignatureAndData.decode(reader, reader.uint32()); + message.max_expected_time_per_block = reader.uint64(); break; default: reader.skipType(tag & 7); @@ -65339,262 +71626,404 @@ }; /** - * Decodes a Misbehaviour message from the specified reader or buffer, length delimited. + * Decodes a Params message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.lightclients.solomachine.v1.Misbehaviour + * @memberof ibc.core.connection.v1.Params * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.lightclients.solomachine.v1.Misbehaviour} Misbehaviour + * @returns {ibc.core.connection.v1.Params} Params * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Misbehaviour.decodeDelimited = function decodeDelimited(reader) { + Params.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Misbehaviour message. + * Verifies a Params message. * @function verify - * @memberof ibc.lightclients.solomachine.v1.Misbehaviour + * @memberof ibc.core.connection.v1.Params * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Misbehaviour.verify = function verify(message) { + Params.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.client_id != null && message.hasOwnProperty("client_id")) - if (!$util.isString(message.client_id)) - return "client_id: string expected"; - if (message.sequence != null && message.hasOwnProperty("sequence")) - if (!$util.isInteger(message.sequence) && !(message.sequence && $util.isInteger(message.sequence.low) && $util.isInteger(message.sequence.high))) - return "sequence: integer|Long expected"; - if (message.signature_one != null && message.hasOwnProperty("signature_one")) { - var error = $root.ibc.lightclients.solomachine.v1.SignatureAndData.verify(message.signature_one); - if (error) - return "signature_one." + error; - } - if (message.signature_two != null && message.hasOwnProperty("signature_two")) { - var error = $root.ibc.lightclients.solomachine.v1.SignatureAndData.verify(message.signature_two); - if (error) - return "signature_two." + error; - } + if (message.max_expected_time_per_block != null && message.hasOwnProperty("max_expected_time_per_block")) + if (!$util.isInteger(message.max_expected_time_per_block) && !(message.max_expected_time_per_block && $util.isInteger(message.max_expected_time_per_block.low) && $util.isInteger(message.max_expected_time_per_block.high))) + return "max_expected_time_per_block: integer|Long expected"; return null; }; /** - * Creates a Misbehaviour message from a plain object. Also converts values to their respective internal types. + * Creates a Params message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.lightclients.solomachine.v1.Misbehaviour + * @memberof ibc.core.connection.v1.Params * @static * @param {Object.} object Plain object - * @returns {ibc.lightclients.solomachine.v1.Misbehaviour} Misbehaviour + * @returns {ibc.core.connection.v1.Params} Params */ - Misbehaviour.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.lightclients.solomachine.v1.Misbehaviour) + Params.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.connection.v1.Params) return object; - var message = new $root.ibc.lightclients.solomachine.v1.Misbehaviour(); - if (object.client_id != null) - message.client_id = String(object.client_id); - if (object.sequence != null) + var message = new $root.ibc.core.connection.v1.Params(); + if (object.max_expected_time_per_block != null) if ($util.Long) - (message.sequence = $util.Long.fromValue(object.sequence)).unsigned = true; - else if (typeof object.sequence === "string") - message.sequence = parseInt(object.sequence, 10); - else if (typeof object.sequence === "number") - message.sequence = object.sequence; - else if (typeof object.sequence === "object") - message.sequence = new $util.LongBits(object.sequence.low >>> 0, object.sequence.high >>> 0).toNumber(true); - if (object.signature_one != null) { - if (typeof object.signature_one !== "object") - throw TypeError(".ibc.lightclients.solomachine.v1.Misbehaviour.signature_one: object expected"); - message.signature_one = $root.ibc.lightclients.solomachine.v1.SignatureAndData.fromObject(object.signature_one); - } - if (object.signature_two != null) { - if (typeof object.signature_two !== "object") - throw TypeError(".ibc.lightclients.solomachine.v1.Misbehaviour.signature_two: object expected"); - message.signature_two = $root.ibc.lightclients.solomachine.v1.SignatureAndData.fromObject(object.signature_two); - } + (message.max_expected_time_per_block = $util.Long.fromValue(object.max_expected_time_per_block)).unsigned = true; + else if (typeof object.max_expected_time_per_block === "string") + message.max_expected_time_per_block = parseInt(object.max_expected_time_per_block, 10); + else if (typeof object.max_expected_time_per_block === "number") + message.max_expected_time_per_block = object.max_expected_time_per_block; + else if (typeof object.max_expected_time_per_block === "object") + message.max_expected_time_per_block = new $util.LongBits(object.max_expected_time_per_block.low >>> 0, object.max_expected_time_per_block.high >>> 0).toNumber(true); return message; }; /** - * Creates a plain object from a Misbehaviour message. Also converts values to other types if specified. + * Creates a plain object from a Params message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.lightclients.solomachine.v1.Misbehaviour + * @memberof ibc.core.connection.v1.Params * @static - * @param {ibc.lightclients.solomachine.v1.Misbehaviour} message Misbehaviour + * @param {ibc.core.connection.v1.Params} message Params * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Misbehaviour.toObject = function toObject(message, options) { + Params.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.client_id = ""; + if (options.defaults) if ($util.Long) { var long = new $util.Long(0, 0, true); - object.sequence = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + object.max_expected_time_per_block = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.sequence = options.longs === String ? "0" : 0; - object.signature_one = null; - object.signature_two = null; - } - if (message.client_id != null && message.hasOwnProperty("client_id")) - object.client_id = message.client_id; - if (message.sequence != null && message.hasOwnProperty("sequence")) - if (typeof message.sequence === "number") - object.sequence = options.longs === String ? String(message.sequence) : message.sequence; + object.max_expected_time_per_block = options.longs === String ? "0" : 0; + if (message.max_expected_time_per_block != null && message.hasOwnProperty("max_expected_time_per_block")) + if (typeof message.max_expected_time_per_block === "number") + object.max_expected_time_per_block = options.longs === String ? String(message.max_expected_time_per_block) : message.max_expected_time_per_block; else - object.sequence = options.longs === String ? $util.Long.prototype.toString.call(message.sequence) : options.longs === Number ? new $util.LongBits(message.sequence.low >>> 0, message.sequence.high >>> 0).toNumber(true) : message.sequence; - if (message.signature_one != null && message.hasOwnProperty("signature_one")) - object.signature_one = $root.ibc.lightclients.solomachine.v1.SignatureAndData.toObject(message.signature_one, options); - if (message.signature_two != null && message.hasOwnProperty("signature_two")) - object.signature_two = $root.ibc.lightclients.solomachine.v1.SignatureAndData.toObject(message.signature_two, options); + object.max_expected_time_per_block = options.longs === String ? $util.Long.prototype.toString.call(message.max_expected_time_per_block) : options.longs === Number ? new $util.LongBits(message.max_expected_time_per_block.low >>> 0, message.max_expected_time_per_block.high >>> 0).toNumber(true) : message.max_expected_time_per_block; return object; }; /** - * Converts this Misbehaviour to JSON. + * Converts this Params to JSON. * @function toJSON - * @memberof ibc.lightclients.solomachine.v1.Misbehaviour + * @memberof ibc.core.connection.v1.Params * @instance * @returns {Object.} JSON object */ - Misbehaviour.prototype.toJSON = function toJSON() { + Params.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Misbehaviour; + return Params; })(); - v1.SignatureAndData = (function() { + v1.Query = (function() { /** - * Properties of a SignatureAndData. - * @memberof ibc.lightclients.solomachine.v1 - * @interface ISignatureAndData - * @property {Uint8Array|null} [signature] SignatureAndData signature - * @property {ibc.lightclients.solomachine.v1.DataType|null} [data_type] SignatureAndData data_type - * @property {Uint8Array|null} [data] SignatureAndData data - * @property {Long|null} [timestamp] SignatureAndData timestamp + * Constructs a new Query service. + * @memberof ibc.core.connection.v1 + * @classdesc Represents a Query + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited */ + function Query(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (Query.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Query; /** - * Constructs a new SignatureAndData. - * @memberof ibc.lightclients.solomachine.v1 - * @classdesc Represents a SignatureAndData. - * @implements ISignatureAndData - * @constructor - * @param {ibc.lightclients.solomachine.v1.ISignatureAndData=} [properties] Properties to set + * Callback as used by {@link ibc.core.connection.v1.Query#connection}. + * @memberof ibc.core.connection.v1.Query + * @typedef ConnectionCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.core.connection.v1.QueryConnectionResponse} [response] QueryConnectionResponse */ - function SignatureAndData(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } /** - * SignatureAndData signature. - * @member {Uint8Array} signature - * @memberof ibc.lightclients.solomachine.v1.SignatureAndData + * Calls Connection. + * @function connection + * @memberof ibc.core.connection.v1.Query * @instance + * @param {ibc.core.connection.v1.IQueryConnectionRequest} request QueryConnectionRequest message or plain object + * @param {ibc.core.connection.v1.Query.ConnectionCallback} callback Node-style callback called with the error, if any, and QueryConnectionResponse + * @returns {undefined} + * @variation 1 */ - SignatureAndData.prototype.signature = $util.newBuffer([]); + Object.defineProperty(Query.prototype.connection = function connection(request, callback) { + return this.rpcCall(connection, $root.ibc.core.connection.v1.QueryConnectionRequest, $root.ibc.core.connection.v1.QueryConnectionResponse, request, callback); + }, "name", { value: "Connection" }); /** - * SignatureAndData data_type. - * @member {ibc.lightclients.solomachine.v1.DataType} data_type - * @memberof ibc.lightclients.solomachine.v1.SignatureAndData + * Calls Connection. + * @function connection + * @memberof ibc.core.connection.v1.Query * @instance + * @param {ibc.core.connection.v1.IQueryConnectionRequest} request QueryConnectionRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - SignatureAndData.prototype.data_type = 0; /** - * SignatureAndData data. - * @member {Uint8Array} data - * @memberof ibc.lightclients.solomachine.v1.SignatureAndData + * Callback as used by {@link ibc.core.connection.v1.Query#connections}. + * @memberof ibc.core.connection.v1.Query + * @typedef ConnectionsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.core.connection.v1.QueryConnectionsResponse} [response] QueryConnectionsResponse + */ + + /** + * Calls Connections. + * @function connections + * @memberof ibc.core.connection.v1.Query * @instance + * @param {ibc.core.connection.v1.IQueryConnectionsRequest} request QueryConnectionsRequest message or plain object + * @param {ibc.core.connection.v1.Query.ConnectionsCallback} callback Node-style callback called with the error, if any, and QueryConnectionsResponse + * @returns {undefined} + * @variation 1 */ - SignatureAndData.prototype.data = $util.newBuffer([]); + Object.defineProperty(Query.prototype.connections = function connections(request, callback) { + return this.rpcCall(connections, $root.ibc.core.connection.v1.QueryConnectionsRequest, $root.ibc.core.connection.v1.QueryConnectionsResponse, request, callback); + }, "name", { value: "Connections" }); /** - * SignatureAndData timestamp. - * @member {Long} timestamp - * @memberof ibc.lightclients.solomachine.v1.SignatureAndData + * Calls Connections. + * @function connections + * @memberof ibc.core.connection.v1.Query * @instance + * @param {ibc.core.connection.v1.IQueryConnectionsRequest} request QueryConnectionsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - SignatureAndData.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** - * Encodes the specified SignatureAndData message. Does not implicitly {@link ibc.lightclients.solomachine.v1.SignatureAndData.verify|verify} messages. + * Callback as used by {@link ibc.core.connection.v1.Query#clientConnections}. + * @memberof ibc.core.connection.v1.Query + * @typedef ClientConnectionsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.core.connection.v1.QueryClientConnectionsResponse} [response] QueryClientConnectionsResponse + */ + + /** + * Calls ClientConnections. + * @function clientConnections + * @memberof ibc.core.connection.v1.Query + * @instance + * @param {ibc.core.connection.v1.IQueryClientConnectionsRequest} request QueryClientConnectionsRequest message or plain object + * @param {ibc.core.connection.v1.Query.ClientConnectionsCallback} callback Node-style callback called with the error, if any, and QueryClientConnectionsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Query.prototype.clientConnections = function clientConnections(request, callback) { + return this.rpcCall(clientConnections, $root.ibc.core.connection.v1.QueryClientConnectionsRequest, $root.ibc.core.connection.v1.QueryClientConnectionsResponse, request, callback); + }, "name", { value: "ClientConnections" }); + + /** + * Calls ClientConnections. + * @function clientConnections + * @memberof ibc.core.connection.v1.Query + * @instance + * @param {ibc.core.connection.v1.IQueryClientConnectionsRequest} request QueryClientConnectionsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link ibc.core.connection.v1.Query#connectionClientState}. + * @memberof ibc.core.connection.v1.Query + * @typedef ConnectionClientStateCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.core.connection.v1.QueryConnectionClientStateResponse} [response] QueryConnectionClientStateResponse + */ + + /** + * Calls ConnectionClientState. + * @function connectionClientState + * @memberof ibc.core.connection.v1.Query + * @instance + * @param {ibc.core.connection.v1.IQueryConnectionClientStateRequest} request QueryConnectionClientStateRequest message or plain object + * @param {ibc.core.connection.v1.Query.ConnectionClientStateCallback} callback Node-style callback called with the error, if any, and QueryConnectionClientStateResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Query.prototype.connectionClientState = function connectionClientState(request, callback) { + return this.rpcCall(connectionClientState, $root.ibc.core.connection.v1.QueryConnectionClientStateRequest, $root.ibc.core.connection.v1.QueryConnectionClientStateResponse, request, callback); + }, "name", { value: "ConnectionClientState" }); + + /** + * Calls ConnectionClientState. + * @function connectionClientState + * @memberof ibc.core.connection.v1.Query + * @instance + * @param {ibc.core.connection.v1.IQueryConnectionClientStateRequest} request QueryConnectionClientStateRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link ibc.core.connection.v1.Query#connectionConsensusState}. + * @memberof ibc.core.connection.v1.Query + * @typedef ConnectionConsensusStateCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.core.connection.v1.QueryConnectionConsensusStateResponse} [response] QueryConnectionConsensusStateResponse + */ + + /** + * Calls ConnectionConsensusState. + * @function connectionConsensusState + * @memberof ibc.core.connection.v1.Query + * @instance + * @param {ibc.core.connection.v1.IQueryConnectionConsensusStateRequest} request QueryConnectionConsensusStateRequest message or plain object + * @param {ibc.core.connection.v1.Query.ConnectionConsensusStateCallback} callback Node-style callback called with the error, if any, and QueryConnectionConsensusStateResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Query.prototype.connectionConsensusState = function connectionConsensusState(request, callback) { + return this.rpcCall(connectionConsensusState, $root.ibc.core.connection.v1.QueryConnectionConsensusStateRequest, $root.ibc.core.connection.v1.QueryConnectionConsensusStateResponse, request, callback); + }, "name", { value: "ConnectionConsensusState" }); + + /** + * Calls ConnectionConsensusState. + * @function connectionConsensusState + * @memberof ibc.core.connection.v1.Query + * @instance + * @param {ibc.core.connection.v1.IQueryConnectionConsensusStateRequest} request QueryConnectionConsensusStateRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link ibc.core.connection.v1.Query#connectionParams}. + * @memberof ibc.core.connection.v1.Query + * @typedef ConnectionParamsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.core.connection.v1.QueryConnectionParamsResponse} [response] QueryConnectionParamsResponse + */ + + /** + * Calls ConnectionParams. + * @function connectionParams + * @memberof ibc.core.connection.v1.Query + * @instance + * @param {ibc.core.connection.v1.IQueryConnectionParamsRequest} request QueryConnectionParamsRequest message or plain object + * @param {ibc.core.connection.v1.Query.ConnectionParamsCallback} callback Node-style callback called with the error, if any, and QueryConnectionParamsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Query.prototype.connectionParams = function connectionParams(request, callback) { + return this.rpcCall(connectionParams, $root.ibc.core.connection.v1.QueryConnectionParamsRequest, $root.ibc.core.connection.v1.QueryConnectionParamsResponse, request, callback); + }, "name", { value: "ConnectionParams" }); + + /** + * Calls ConnectionParams. + * @function connectionParams + * @memberof ibc.core.connection.v1.Query + * @instance + * @param {ibc.core.connection.v1.IQueryConnectionParamsRequest} request QueryConnectionParamsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return Query; + })(); + + v1.QueryConnectionRequest = (function() { + + /** + * Properties of a QueryConnectionRequest. + * @memberof ibc.core.connection.v1 + * @interface IQueryConnectionRequest + * @property {string|null} [connection_id] QueryConnectionRequest connection_id + */ + + /** + * Constructs a new QueryConnectionRequest. + * @memberof ibc.core.connection.v1 + * @classdesc Represents a QueryConnectionRequest. + * @implements IQueryConnectionRequest + * @constructor + * @param {ibc.core.connection.v1.IQueryConnectionRequest=} [properties] Properties to set + */ + function QueryConnectionRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * QueryConnectionRequest connection_id. + * @member {string} connection_id + * @memberof ibc.core.connection.v1.QueryConnectionRequest + * @instance + */ + QueryConnectionRequest.prototype.connection_id = ""; + + /** + * Encodes the specified QueryConnectionRequest message. Does not implicitly {@link ibc.core.connection.v1.QueryConnectionRequest.verify|verify} messages. * @function encode - * @memberof ibc.lightclients.solomachine.v1.SignatureAndData + * @memberof ibc.core.connection.v1.QueryConnectionRequest * @static - * @param {ibc.lightclients.solomachine.v1.ISignatureAndData} message SignatureAndData message or plain object to encode + * @param {ibc.core.connection.v1.IQueryConnectionRequest} message QueryConnectionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SignatureAndData.encode = function encode(message, writer) { + QueryConnectionRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.signature != null && Object.hasOwnProperty.call(message, "signature")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.signature); - if (message.data_type != null && Object.hasOwnProperty.call(message, "data_type")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.data_type); - if (message.data != null && Object.hasOwnProperty.call(message, "data")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.data); - if (message.timestamp != null && Object.hasOwnProperty.call(message, "timestamp")) - writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.timestamp); + if (message.connection_id != null && Object.hasOwnProperty.call(message, "connection_id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.connection_id); return writer; }; /** - * Encodes the specified SignatureAndData message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v1.SignatureAndData.verify|verify} messages. + * Encodes the specified QueryConnectionRequest message, length delimited. Does not implicitly {@link ibc.core.connection.v1.QueryConnectionRequest.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.lightclients.solomachine.v1.SignatureAndData + * @memberof ibc.core.connection.v1.QueryConnectionRequest * @static - * @param {ibc.lightclients.solomachine.v1.ISignatureAndData} message SignatureAndData message or plain object to encode + * @param {ibc.core.connection.v1.IQueryConnectionRequest} message QueryConnectionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SignatureAndData.encodeDelimited = function encodeDelimited(message, writer) { + QueryConnectionRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SignatureAndData message from the specified reader or buffer. + * Decodes a QueryConnectionRequest message from the specified reader or buffer. * @function decode - * @memberof ibc.lightclients.solomachine.v1.SignatureAndData + * @memberof ibc.core.connection.v1.QueryConnectionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.lightclients.solomachine.v1.SignatureAndData} SignatureAndData + * @returns {ibc.core.connection.v1.QueryConnectionRequest} QueryConnectionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SignatureAndData.decode = function decode(reader, length) { + QueryConnectionRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.solomachine.v1.SignatureAndData(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.connection.v1.QueryConnectionRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.signature = reader.bytes(); - break; - case 2: - message.data_type = reader.int32(); - break; - case 3: - message.data = reader.bytes(); - break; - case 4: - message.timestamp = reader.uint64(); + message.connection_id = reader.string(); break; default: reader.skipType(tag & 7); @@ -65605,218 +72034,109 @@ }; /** - * Decodes a SignatureAndData message from the specified reader or buffer, length delimited. + * Decodes a QueryConnectionRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.lightclients.solomachine.v1.SignatureAndData + * @memberof ibc.core.connection.v1.QueryConnectionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.lightclients.solomachine.v1.SignatureAndData} SignatureAndData + * @returns {ibc.core.connection.v1.QueryConnectionRequest} QueryConnectionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SignatureAndData.decodeDelimited = function decodeDelimited(reader) { + QueryConnectionRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SignatureAndData message. + * Verifies a QueryConnectionRequest message. * @function verify - * @memberof ibc.lightclients.solomachine.v1.SignatureAndData + * @memberof ibc.core.connection.v1.QueryConnectionRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SignatureAndData.verify = function verify(message) { + QueryConnectionRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.signature != null && message.hasOwnProperty("signature")) - if (!(message.signature && typeof message.signature.length === "number" || $util.isString(message.signature))) - return "signature: buffer expected"; - if (message.data_type != null && message.hasOwnProperty("data_type")) - switch (message.data_type) { - default: - return "data_type: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - break; - } - if (message.data != null && message.hasOwnProperty("data")) - if (!(message.data && typeof message.data.length === "number" || $util.isString(message.data))) - return "data: buffer expected"; - if (message.timestamp != null && message.hasOwnProperty("timestamp")) - if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high))) - return "timestamp: integer|Long expected"; + if (message.connection_id != null && message.hasOwnProperty("connection_id")) + if (!$util.isString(message.connection_id)) + return "connection_id: string expected"; return null; }; /** - * Creates a SignatureAndData message from a plain object. Also converts values to their respective internal types. + * Creates a QueryConnectionRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.lightclients.solomachine.v1.SignatureAndData + * @memberof ibc.core.connection.v1.QueryConnectionRequest * @static * @param {Object.} object Plain object - * @returns {ibc.lightclients.solomachine.v1.SignatureAndData} SignatureAndData + * @returns {ibc.core.connection.v1.QueryConnectionRequest} QueryConnectionRequest */ - SignatureAndData.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.lightclients.solomachine.v1.SignatureAndData) + QueryConnectionRequest.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.connection.v1.QueryConnectionRequest) return object; - var message = new $root.ibc.lightclients.solomachine.v1.SignatureAndData(); - if (object.signature != null) - if (typeof object.signature === "string") - $util.base64.decode(object.signature, message.signature = $util.newBuffer($util.base64.length(object.signature)), 0); - else if (object.signature.length) - message.signature = object.signature; - switch (object.data_type) { - case "DATA_TYPE_UNINITIALIZED_UNSPECIFIED": - case 0: - message.data_type = 0; - break; - case "DATA_TYPE_CLIENT_STATE": - case 1: - message.data_type = 1; - break; - case "DATA_TYPE_CONSENSUS_STATE": - case 2: - message.data_type = 2; - break; - case "DATA_TYPE_CONNECTION_STATE": - case 3: - message.data_type = 3; - break; - case "DATA_TYPE_CHANNEL_STATE": - case 4: - message.data_type = 4; - break; - case "DATA_TYPE_PACKET_COMMITMENT": - case 5: - message.data_type = 5; - break; - case "DATA_TYPE_PACKET_ACKNOWLEDGEMENT": - case 6: - message.data_type = 6; - break; - case "DATA_TYPE_PACKET_RECEIPT_ABSENCE": - case 7: - message.data_type = 7; - break; - case "DATA_TYPE_NEXT_SEQUENCE_RECV": - case 8: - message.data_type = 8; - break; - case "DATA_TYPE_HEADER": - case 9: - message.data_type = 9; - break; - } - if (object.data != null) - if (typeof object.data === "string") - $util.base64.decode(object.data, message.data = $util.newBuffer($util.base64.length(object.data)), 0); - else if (object.data.length) - message.data = object.data; - if (object.timestamp != null) - if ($util.Long) - (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true; - else if (typeof object.timestamp === "string") - message.timestamp = parseInt(object.timestamp, 10); - else if (typeof object.timestamp === "number") - message.timestamp = object.timestamp; - else if (typeof object.timestamp === "object") - message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true); + var message = new $root.ibc.core.connection.v1.QueryConnectionRequest(); + if (object.connection_id != null) + message.connection_id = String(object.connection_id); return message; }; /** - * Creates a plain object from a SignatureAndData message. Also converts values to other types if specified. + * Creates a plain object from a QueryConnectionRequest message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.lightclients.solomachine.v1.SignatureAndData + * @memberof ibc.core.connection.v1.QueryConnectionRequest * @static - * @param {ibc.lightclients.solomachine.v1.SignatureAndData} message SignatureAndData + * @param {ibc.core.connection.v1.QueryConnectionRequest} message QueryConnectionRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SignatureAndData.toObject = function toObject(message, options) { + QueryConnectionRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - if (options.bytes === String) - object.signature = ""; - else { - object.signature = []; - if (options.bytes !== Array) - object.signature = $util.newBuffer(object.signature); - } - object.data_type = options.enums === String ? "DATA_TYPE_UNINITIALIZED_UNSPECIFIED" : 0; - if (options.bytes === String) - object.data = ""; - else { - object.data = []; - if (options.bytes !== Array) - object.data = $util.newBuffer(object.data); - } - if ($util.Long) { - var long = new $util.Long(0, 0, true); - object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.timestamp = options.longs === String ? "0" : 0; - } - if (message.signature != null && message.hasOwnProperty("signature")) - object.signature = options.bytes === String ? $util.base64.encode(message.signature, 0, message.signature.length) : options.bytes === Array ? Array.prototype.slice.call(message.signature) : message.signature; - if (message.data_type != null && message.hasOwnProperty("data_type")) - object.data_type = options.enums === String ? $root.ibc.lightclients.solomachine.v1.DataType[message.data_type] : message.data_type; - if (message.data != null && message.hasOwnProperty("data")) - object.data = options.bytes === String ? $util.base64.encode(message.data, 0, message.data.length) : options.bytes === Array ? Array.prototype.slice.call(message.data) : message.data; - if (message.timestamp != null && message.hasOwnProperty("timestamp")) - if (typeof message.timestamp === "number") - object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp; - else - object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber(true) : message.timestamp; + if (options.defaults) + object.connection_id = ""; + if (message.connection_id != null && message.hasOwnProperty("connection_id")) + object.connection_id = message.connection_id; return object; }; /** - * Converts this SignatureAndData to JSON. + * Converts this QueryConnectionRequest to JSON. * @function toJSON - * @memberof ibc.lightclients.solomachine.v1.SignatureAndData + * @memberof ibc.core.connection.v1.QueryConnectionRequest * @instance * @returns {Object.} JSON object */ - SignatureAndData.prototype.toJSON = function toJSON() { + QueryConnectionRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return SignatureAndData; + return QueryConnectionRequest; })(); - v1.TimestampedSignatureData = (function() { + v1.QueryConnectionResponse = (function() { /** - * Properties of a TimestampedSignatureData. - * @memberof ibc.lightclients.solomachine.v1 - * @interface ITimestampedSignatureData - * @property {Uint8Array|null} [signature_data] TimestampedSignatureData signature_data - * @property {Long|null} [timestamp] TimestampedSignatureData timestamp + * Properties of a QueryConnectionResponse. + * @memberof ibc.core.connection.v1 + * @interface IQueryConnectionResponse + * @property {ibc.core.connection.v1.IConnectionEnd|null} [connection] QueryConnectionResponse connection + * @property {Uint8Array|null} [proof] QueryConnectionResponse proof + * @property {ibc.core.client.v1.IHeight|null} [proof_height] QueryConnectionResponse proof_height */ /** - * Constructs a new TimestampedSignatureData. - * @memberof ibc.lightclients.solomachine.v1 - * @classdesc Represents a TimestampedSignatureData. - * @implements ITimestampedSignatureData + * Constructs a new QueryConnectionResponse. + * @memberof ibc.core.connection.v1 + * @classdesc Represents a QueryConnectionResponse. + * @implements IQueryConnectionResponse * @constructor - * @param {ibc.lightclients.solomachine.v1.ITimestampedSignatureData=} [properties] Properties to set + * @param {ibc.core.connection.v1.IQueryConnectionResponse=} [properties] Properties to set */ - function TimestampedSignatureData(properties) { + function QueryConnectionResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -65824,76 +72144,89 @@ } /** - * TimestampedSignatureData signature_data. - * @member {Uint8Array} signature_data - * @memberof ibc.lightclients.solomachine.v1.TimestampedSignatureData + * QueryConnectionResponse connection. + * @member {ibc.core.connection.v1.IConnectionEnd|null|undefined} connection + * @memberof ibc.core.connection.v1.QueryConnectionResponse * @instance */ - TimestampedSignatureData.prototype.signature_data = $util.newBuffer([]); + QueryConnectionResponse.prototype.connection = null; /** - * TimestampedSignatureData timestamp. - * @member {Long} timestamp - * @memberof ibc.lightclients.solomachine.v1.TimestampedSignatureData + * QueryConnectionResponse proof. + * @member {Uint8Array} proof + * @memberof ibc.core.connection.v1.QueryConnectionResponse * @instance */ - TimestampedSignatureData.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + QueryConnectionResponse.prototype.proof = $util.newBuffer([]); + + /** + * QueryConnectionResponse proof_height. + * @member {ibc.core.client.v1.IHeight|null|undefined} proof_height + * @memberof ibc.core.connection.v1.QueryConnectionResponse + * @instance + */ + QueryConnectionResponse.prototype.proof_height = null; /** - * Encodes the specified TimestampedSignatureData message. Does not implicitly {@link ibc.lightclients.solomachine.v1.TimestampedSignatureData.verify|verify} messages. + * Encodes the specified QueryConnectionResponse message. Does not implicitly {@link ibc.core.connection.v1.QueryConnectionResponse.verify|verify} messages. * @function encode - * @memberof ibc.lightclients.solomachine.v1.TimestampedSignatureData + * @memberof ibc.core.connection.v1.QueryConnectionResponse * @static - * @param {ibc.lightclients.solomachine.v1.ITimestampedSignatureData} message TimestampedSignatureData message or plain object to encode + * @param {ibc.core.connection.v1.IQueryConnectionResponse} message QueryConnectionResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TimestampedSignatureData.encode = function encode(message, writer) { + QueryConnectionResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.signature_data != null && Object.hasOwnProperty.call(message, "signature_data")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.signature_data); - if (message.timestamp != null && Object.hasOwnProperty.call(message, "timestamp")) - writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.timestamp); + if (message.connection != null && Object.hasOwnProperty.call(message, "connection")) + $root.ibc.core.connection.v1.ConnectionEnd.encode(message.connection, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.proof != null && Object.hasOwnProperty.call(message, "proof")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.proof); + if (message.proof_height != null && Object.hasOwnProperty.call(message, "proof_height")) + $root.ibc.core.client.v1.Height.encode(message.proof_height, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified TimestampedSignatureData message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v1.TimestampedSignatureData.verify|verify} messages. + * Encodes the specified QueryConnectionResponse message, length delimited. Does not implicitly {@link ibc.core.connection.v1.QueryConnectionResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.lightclients.solomachine.v1.TimestampedSignatureData + * @memberof ibc.core.connection.v1.QueryConnectionResponse * @static - * @param {ibc.lightclients.solomachine.v1.ITimestampedSignatureData} message TimestampedSignatureData message or plain object to encode + * @param {ibc.core.connection.v1.IQueryConnectionResponse} message QueryConnectionResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TimestampedSignatureData.encodeDelimited = function encodeDelimited(message, writer) { + QueryConnectionResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TimestampedSignatureData message from the specified reader or buffer. + * Decodes a QueryConnectionResponse message from the specified reader or buffer. * @function decode - * @memberof ibc.lightclients.solomachine.v1.TimestampedSignatureData + * @memberof ibc.core.connection.v1.QueryConnectionResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.lightclients.solomachine.v1.TimestampedSignatureData} TimestampedSignatureData + * @returns {ibc.core.connection.v1.QueryConnectionResponse} QueryConnectionResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TimestampedSignatureData.decode = function decode(reader, length) { + QueryConnectionResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.solomachine.v1.TimestampedSignatureData(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.connection.v1.QueryConnectionResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.signature_data = reader.bytes(); + message.connection = $root.ibc.core.connection.v1.ConnectionEnd.decode(reader, reader.uint32()); break; case 2: - message.timestamp = reader.uint64(); + message.proof = reader.bytes(); + break; + case 3: + message.proof_height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -65904,143 +72237,143 @@ }; /** - * Decodes a TimestampedSignatureData message from the specified reader or buffer, length delimited. + * Decodes a QueryConnectionResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.lightclients.solomachine.v1.TimestampedSignatureData + * @memberof ibc.core.connection.v1.QueryConnectionResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.lightclients.solomachine.v1.TimestampedSignatureData} TimestampedSignatureData + * @returns {ibc.core.connection.v1.QueryConnectionResponse} QueryConnectionResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TimestampedSignatureData.decodeDelimited = function decodeDelimited(reader) { + QueryConnectionResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TimestampedSignatureData message. + * Verifies a QueryConnectionResponse message. * @function verify - * @memberof ibc.lightclients.solomachine.v1.TimestampedSignatureData + * @memberof ibc.core.connection.v1.QueryConnectionResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TimestampedSignatureData.verify = function verify(message) { + QueryConnectionResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.signature_data != null && message.hasOwnProperty("signature_data")) - if (!(message.signature_data && typeof message.signature_data.length === "number" || $util.isString(message.signature_data))) - return "signature_data: buffer expected"; - if (message.timestamp != null && message.hasOwnProperty("timestamp")) - if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high))) - return "timestamp: integer|Long expected"; + if (message.connection != null && message.hasOwnProperty("connection")) { + var error = $root.ibc.core.connection.v1.ConnectionEnd.verify(message.connection); + if (error) + return "connection." + error; + } + if (message.proof != null && message.hasOwnProperty("proof")) + if (!(message.proof && typeof message.proof.length === "number" || $util.isString(message.proof))) + return "proof: buffer expected"; + if (message.proof_height != null && message.hasOwnProperty("proof_height")) { + var error = $root.ibc.core.client.v1.Height.verify(message.proof_height); + if (error) + return "proof_height." + error; + } return null; }; /** - * Creates a TimestampedSignatureData message from a plain object. Also converts values to their respective internal types. + * Creates a QueryConnectionResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.lightclients.solomachine.v1.TimestampedSignatureData + * @memberof ibc.core.connection.v1.QueryConnectionResponse * @static * @param {Object.} object Plain object - * @returns {ibc.lightclients.solomachine.v1.TimestampedSignatureData} TimestampedSignatureData + * @returns {ibc.core.connection.v1.QueryConnectionResponse} QueryConnectionResponse */ - TimestampedSignatureData.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.lightclients.solomachine.v1.TimestampedSignatureData) + QueryConnectionResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.connection.v1.QueryConnectionResponse) return object; - var message = new $root.ibc.lightclients.solomachine.v1.TimestampedSignatureData(); - if (object.signature_data != null) - if (typeof object.signature_data === "string") - $util.base64.decode(object.signature_data, message.signature_data = $util.newBuffer($util.base64.length(object.signature_data)), 0); - else if (object.signature_data.length) - message.signature_data = object.signature_data; - if (object.timestamp != null) - if ($util.Long) - (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true; - else if (typeof object.timestamp === "string") - message.timestamp = parseInt(object.timestamp, 10); - else if (typeof object.timestamp === "number") - message.timestamp = object.timestamp; - else if (typeof object.timestamp === "object") - message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true); + var message = new $root.ibc.core.connection.v1.QueryConnectionResponse(); + if (object.connection != null) { + if (typeof object.connection !== "object") + throw TypeError(".ibc.core.connection.v1.QueryConnectionResponse.connection: object expected"); + message.connection = $root.ibc.core.connection.v1.ConnectionEnd.fromObject(object.connection); + } + if (object.proof != null) + if (typeof object.proof === "string") + $util.base64.decode(object.proof, message.proof = $util.newBuffer($util.base64.length(object.proof)), 0); + else if (object.proof.length) + message.proof = object.proof; + if (object.proof_height != null) { + if (typeof object.proof_height !== "object") + throw TypeError(".ibc.core.connection.v1.QueryConnectionResponse.proof_height: object expected"); + message.proof_height = $root.ibc.core.client.v1.Height.fromObject(object.proof_height); + } return message; }; /** - * Creates a plain object from a TimestampedSignatureData message. Also converts values to other types if specified. + * Creates a plain object from a QueryConnectionResponse message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.lightclients.solomachine.v1.TimestampedSignatureData + * @memberof ibc.core.connection.v1.QueryConnectionResponse * @static - * @param {ibc.lightclients.solomachine.v1.TimestampedSignatureData} message TimestampedSignatureData + * @param {ibc.core.connection.v1.QueryConnectionResponse} message QueryConnectionResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TimestampedSignatureData.toObject = function toObject(message, options) { + QueryConnectionResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { + object.connection = null; if (options.bytes === String) - object.signature_data = ""; + object.proof = ""; else { - object.signature_data = []; + object.proof = []; if (options.bytes !== Array) - object.signature_data = $util.newBuffer(object.signature_data); + object.proof = $util.newBuffer(object.proof); } - if ($util.Long) { - var long = new $util.Long(0, 0, true); - object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.timestamp = options.longs === String ? "0" : 0; + object.proof_height = null; } - if (message.signature_data != null && message.hasOwnProperty("signature_data")) - object.signature_data = options.bytes === String ? $util.base64.encode(message.signature_data, 0, message.signature_data.length) : options.bytes === Array ? Array.prototype.slice.call(message.signature_data) : message.signature_data; - if (message.timestamp != null && message.hasOwnProperty("timestamp")) - if (typeof message.timestamp === "number") - object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp; - else - object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber(true) : message.timestamp; + if (message.connection != null && message.hasOwnProperty("connection")) + object.connection = $root.ibc.core.connection.v1.ConnectionEnd.toObject(message.connection, options); + if (message.proof != null && message.hasOwnProperty("proof")) + object.proof = options.bytes === String ? $util.base64.encode(message.proof, 0, message.proof.length) : options.bytes === Array ? Array.prototype.slice.call(message.proof) : message.proof; + if (message.proof_height != null && message.hasOwnProperty("proof_height")) + object.proof_height = $root.ibc.core.client.v1.Height.toObject(message.proof_height, options); return object; }; /** - * Converts this TimestampedSignatureData to JSON. + * Converts this QueryConnectionResponse to JSON. * @function toJSON - * @memberof ibc.lightclients.solomachine.v1.TimestampedSignatureData + * @memberof ibc.core.connection.v1.QueryConnectionResponse * @instance * @returns {Object.} JSON object */ - TimestampedSignatureData.prototype.toJSON = function toJSON() { + QueryConnectionResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return TimestampedSignatureData; + return QueryConnectionResponse; })(); - v1.SignBytes = (function() { + v1.QueryConnectionsRequest = (function() { /** - * Properties of a SignBytes. - * @memberof ibc.lightclients.solomachine.v1 - * @interface ISignBytes - * @property {Long|null} [sequence] SignBytes sequence - * @property {Long|null} [timestamp] SignBytes timestamp - * @property {string|null} [diversifier] SignBytes diversifier - * @property {ibc.lightclients.solomachine.v1.DataType|null} [data_type] SignBytes data_type - * @property {Uint8Array|null} [data] SignBytes data + * Properties of a QueryConnectionsRequest. + * @memberof ibc.core.connection.v1 + * @interface IQueryConnectionsRequest + * @property {cosmos.base.query.v1beta1.IPageRequest|null} [pagination] QueryConnectionsRequest pagination */ /** - * Constructs a new SignBytes. - * @memberof ibc.lightclients.solomachine.v1 - * @classdesc Represents a SignBytes. - * @implements ISignBytes + * Constructs a new QueryConnectionsRequest. + * @memberof ibc.core.connection.v1 + * @classdesc Represents a QueryConnectionsRequest. + * @implements IQueryConnectionsRequest * @constructor - * @param {ibc.lightclients.solomachine.v1.ISignBytes=} [properties] Properties to set + * @param {ibc.core.connection.v1.IQueryConnectionsRequest=} [properties] Properties to set */ - function SignBytes(properties) { + function QueryConnectionsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -66048,115 +72381,63 @@ } /** - * SignBytes sequence. - * @member {Long} sequence - * @memberof ibc.lightclients.solomachine.v1.SignBytes - * @instance - */ - SignBytes.prototype.sequence = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * SignBytes timestamp. - * @member {Long} timestamp - * @memberof ibc.lightclients.solomachine.v1.SignBytes - * @instance - */ - SignBytes.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * SignBytes diversifier. - * @member {string} diversifier - * @memberof ibc.lightclients.solomachine.v1.SignBytes - * @instance - */ - SignBytes.prototype.diversifier = ""; - - /** - * SignBytes data_type. - * @member {ibc.lightclients.solomachine.v1.DataType} data_type - * @memberof ibc.lightclients.solomachine.v1.SignBytes - * @instance - */ - SignBytes.prototype.data_type = 0; - - /** - * SignBytes data. - * @member {Uint8Array} data - * @memberof ibc.lightclients.solomachine.v1.SignBytes + * QueryConnectionsRequest pagination. + * @member {cosmos.base.query.v1beta1.IPageRequest|null|undefined} pagination + * @memberof ibc.core.connection.v1.QueryConnectionsRequest * @instance */ - SignBytes.prototype.data = $util.newBuffer([]); + QueryConnectionsRequest.prototype.pagination = null; /** - * Encodes the specified SignBytes message. Does not implicitly {@link ibc.lightclients.solomachine.v1.SignBytes.verify|verify} messages. + * Encodes the specified QueryConnectionsRequest message. Does not implicitly {@link ibc.core.connection.v1.QueryConnectionsRequest.verify|verify} messages. * @function encode - * @memberof ibc.lightclients.solomachine.v1.SignBytes + * @memberof ibc.core.connection.v1.QueryConnectionsRequest * @static - * @param {ibc.lightclients.solomachine.v1.ISignBytes} message SignBytes message or plain object to encode + * @param {ibc.core.connection.v1.IQueryConnectionsRequest} message QueryConnectionsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SignBytes.encode = function encode(message, writer) { + QueryConnectionsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.sequence != null && Object.hasOwnProperty.call(message, "sequence")) - writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.sequence); - if (message.timestamp != null && Object.hasOwnProperty.call(message, "timestamp")) - writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.timestamp); - if (message.diversifier != null && Object.hasOwnProperty.call(message, "diversifier")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.diversifier); - if (message.data_type != null && Object.hasOwnProperty.call(message, "data_type")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.data_type); - if (message.data != null && Object.hasOwnProperty.call(message, "data")) - writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.data); + if (message.pagination != null && Object.hasOwnProperty.call(message, "pagination")) + $root.cosmos.base.query.v1beta1.PageRequest.encode(message.pagination, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified SignBytes message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v1.SignBytes.verify|verify} messages. + * Encodes the specified QueryConnectionsRequest message, length delimited. Does not implicitly {@link ibc.core.connection.v1.QueryConnectionsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.lightclients.solomachine.v1.SignBytes + * @memberof ibc.core.connection.v1.QueryConnectionsRequest * @static - * @param {ibc.lightclients.solomachine.v1.ISignBytes} message SignBytes message or plain object to encode + * @param {ibc.core.connection.v1.IQueryConnectionsRequest} message QueryConnectionsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SignBytes.encodeDelimited = function encodeDelimited(message, writer) { + QueryConnectionsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SignBytes message from the specified reader or buffer. + * Decodes a QueryConnectionsRequest message from the specified reader or buffer. * @function decode - * @memberof ibc.lightclients.solomachine.v1.SignBytes + * @memberof ibc.core.connection.v1.QueryConnectionsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.lightclients.solomachine.v1.SignBytes} SignBytes + * @returns {ibc.core.connection.v1.QueryConnectionsRequest} QueryConnectionsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SignBytes.decode = function decode(reader, length) { + QueryConnectionsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.solomachine.v1.SignBytes(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.connection.v1.QueryConnectionsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.sequence = reader.uint64(); - break; - case 2: - message.timestamp = reader.uint64(); - break; - case 3: - message.diversifier = reader.string(); - break; - case 4: - message.data_type = reader.int32(); - break; - case 5: - message.data = reader.bytes(); + message.pagination = $root.cosmos.base.query.v1beta1.PageRequest.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -66167,261 +72448,115 @@ }; /** - * Decodes a SignBytes message from the specified reader or buffer, length delimited. + * Decodes a QueryConnectionsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.lightclients.solomachine.v1.SignBytes + * @memberof ibc.core.connection.v1.QueryConnectionsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.lightclients.solomachine.v1.SignBytes} SignBytes + * @returns {ibc.core.connection.v1.QueryConnectionsRequest} QueryConnectionsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SignBytes.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SignBytes message. - * @function verify - * @memberof ibc.lightclients.solomachine.v1.SignBytes - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - SignBytes.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.sequence != null && message.hasOwnProperty("sequence")) - if (!$util.isInteger(message.sequence) && !(message.sequence && $util.isInteger(message.sequence.low) && $util.isInteger(message.sequence.high))) - return "sequence: integer|Long expected"; - if (message.timestamp != null && message.hasOwnProperty("timestamp")) - if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high))) - return "timestamp: integer|Long expected"; - if (message.diversifier != null && message.hasOwnProperty("diversifier")) - if (!$util.isString(message.diversifier)) - return "diversifier: string expected"; - if (message.data_type != null && message.hasOwnProperty("data_type")) - switch (message.data_type) { - default: - return "data_type: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - break; - } - if (message.data != null && message.hasOwnProperty("data")) - if (!(message.data && typeof message.data.length === "number" || $util.isString(message.data))) - return "data: buffer expected"; + QueryConnectionsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a QueryConnectionsRequest message. + * @function verify + * @memberof ibc.core.connection.v1.QueryConnectionsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + QueryConnectionsRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.pagination != null && message.hasOwnProperty("pagination")) { + var error = $root.cosmos.base.query.v1beta1.PageRequest.verify(message.pagination); + if (error) + return "pagination." + error; + } return null; }; /** - * Creates a SignBytes message from a plain object. Also converts values to their respective internal types. + * Creates a QueryConnectionsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.lightclients.solomachine.v1.SignBytes + * @memberof ibc.core.connection.v1.QueryConnectionsRequest * @static * @param {Object.} object Plain object - * @returns {ibc.lightclients.solomachine.v1.SignBytes} SignBytes + * @returns {ibc.core.connection.v1.QueryConnectionsRequest} QueryConnectionsRequest */ - SignBytes.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.lightclients.solomachine.v1.SignBytes) + QueryConnectionsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.connection.v1.QueryConnectionsRequest) return object; - var message = new $root.ibc.lightclients.solomachine.v1.SignBytes(); - if (object.sequence != null) - if ($util.Long) - (message.sequence = $util.Long.fromValue(object.sequence)).unsigned = true; - else if (typeof object.sequence === "string") - message.sequence = parseInt(object.sequence, 10); - else if (typeof object.sequence === "number") - message.sequence = object.sequence; - else if (typeof object.sequence === "object") - message.sequence = new $util.LongBits(object.sequence.low >>> 0, object.sequence.high >>> 0).toNumber(true); - if (object.timestamp != null) - if ($util.Long) - (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true; - else if (typeof object.timestamp === "string") - message.timestamp = parseInt(object.timestamp, 10); - else if (typeof object.timestamp === "number") - message.timestamp = object.timestamp; - else if (typeof object.timestamp === "object") - message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true); - if (object.diversifier != null) - message.diversifier = String(object.diversifier); - switch (object.data_type) { - case "DATA_TYPE_UNINITIALIZED_UNSPECIFIED": - case 0: - message.data_type = 0; - break; - case "DATA_TYPE_CLIENT_STATE": - case 1: - message.data_type = 1; - break; - case "DATA_TYPE_CONSENSUS_STATE": - case 2: - message.data_type = 2; - break; - case "DATA_TYPE_CONNECTION_STATE": - case 3: - message.data_type = 3; - break; - case "DATA_TYPE_CHANNEL_STATE": - case 4: - message.data_type = 4; - break; - case "DATA_TYPE_PACKET_COMMITMENT": - case 5: - message.data_type = 5; - break; - case "DATA_TYPE_PACKET_ACKNOWLEDGEMENT": - case 6: - message.data_type = 6; - break; - case "DATA_TYPE_PACKET_RECEIPT_ABSENCE": - case 7: - message.data_type = 7; - break; - case "DATA_TYPE_NEXT_SEQUENCE_RECV": - case 8: - message.data_type = 8; - break; - case "DATA_TYPE_HEADER": - case 9: - message.data_type = 9; - break; + var message = new $root.ibc.core.connection.v1.QueryConnectionsRequest(); + if (object.pagination != null) { + if (typeof object.pagination !== "object") + throw TypeError(".ibc.core.connection.v1.QueryConnectionsRequest.pagination: object expected"); + message.pagination = $root.cosmos.base.query.v1beta1.PageRequest.fromObject(object.pagination); } - if (object.data != null) - if (typeof object.data === "string") - $util.base64.decode(object.data, message.data = $util.newBuffer($util.base64.length(object.data)), 0); - else if (object.data.length) - message.data = object.data; return message; }; /** - * Creates a plain object from a SignBytes message. Also converts values to other types if specified. + * Creates a plain object from a QueryConnectionsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.lightclients.solomachine.v1.SignBytes + * @memberof ibc.core.connection.v1.QueryConnectionsRequest * @static - * @param {ibc.lightclients.solomachine.v1.SignBytes} message SignBytes + * @param {ibc.core.connection.v1.QueryConnectionsRequest} message QueryConnectionsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SignBytes.toObject = function toObject(message, options) { + QueryConnectionsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - if ($util.Long) { - var long = new $util.Long(0, 0, true); - object.sequence = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.sequence = options.longs === String ? "0" : 0; - if ($util.Long) { - var long = new $util.Long(0, 0, true); - object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.timestamp = options.longs === String ? "0" : 0; - object.diversifier = ""; - object.data_type = options.enums === String ? "DATA_TYPE_UNINITIALIZED_UNSPECIFIED" : 0; - if (options.bytes === String) - object.data = ""; - else { - object.data = []; - if (options.bytes !== Array) - object.data = $util.newBuffer(object.data); - } - } - if (message.sequence != null && message.hasOwnProperty("sequence")) - if (typeof message.sequence === "number") - object.sequence = options.longs === String ? String(message.sequence) : message.sequence; - else - object.sequence = options.longs === String ? $util.Long.prototype.toString.call(message.sequence) : options.longs === Number ? new $util.LongBits(message.sequence.low >>> 0, message.sequence.high >>> 0).toNumber(true) : message.sequence; - if (message.timestamp != null && message.hasOwnProperty("timestamp")) - if (typeof message.timestamp === "number") - object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp; - else - object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber(true) : message.timestamp; - if (message.diversifier != null && message.hasOwnProperty("diversifier")) - object.diversifier = message.diversifier; - if (message.data_type != null && message.hasOwnProperty("data_type")) - object.data_type = options.enums === String ? $root.ibc.lightclients.solomachine.v1.DataType[message.data_type] : message.data_type; - if (message.data != null && message.hasOwnProperty("data")) - object.data = options.bytes === String ? $util.base64.encode(message.data, 0, message.data.length) : options.bytes === Array ? Array.prototype.slice.call(message.data) : message.data; + if (options.defaults) + object.pagination = null; + if (message.pagination != null && message.hasOwnProperty("pagination")) + object.pagination = $root.cosmos.base.query.v1beta1.PageRequest.toObject(message.pagination, options); return object; }; /** - * Converts this SignBytes to JSON. + * Converts this QueryConnectionsRequest to JSON. * @function toJSON - * @memberof ibc.lightclients.solomachine.v1.SignBytes + * @memberof ibc.core.connection.v1.QueryConnectionsRequest * @instance * @returns {Object.} JSON object */ - SignBytes.prototype.toJSON = function toJSON() { + QueryConnectionsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return SignBytes; - })(); - - /** - * DataType enum. - * @name ibc.lightclients.solomachine.v1.DataType - * @enum {number} - * @property {number} DATA_TYPE_UNINITIALIZED_UNSPECIFIED=0 DATA_TYPE_UNINITIALIZED_UNSPECIFIED value - * @property {number} DATA_TYPE_CLIENT_STATE=1 DATA_TYPE_CLIENT_STATE value - * @property {number} DATA_TYPE_CONSENSUS_STATE=2 DATA_TYPE_CONSENSUS_STATE value - * @property {number} DATA_TYPE_CONNECTION_STATE=3 DATA_TYPE_CONNECTION_STATE value - * @property {number} DATA_TYPE_CHANNEL_STATE=4 DATA_TYPE_CHANNEL_STATE value - * @property {number} DATA_TYPE_PACKET_COMMITMENT=5 DATA_TYPE_PACKET_COMMITMENT value - * @property {number} DATA_TYPE_PACKET_ACKNOWLEDGEMENT=6 DATA_TYPE_PACKET_ACKNOWLEDGEMENT value - * @property {number} DATA_TYPE_PACKET_RECEIPT_ABSENCE=7 DATA_TYPE_PACKET_RECEIPT_ABSENCE value - * @property {number} DATA_TYPE_NEXT_SEQUENCE_RECV=8 DATA_TYPE_NEXT_SEQUENCE_RECV value - * @property {number} DATA_TYPE_HEADER=9 DATA_TYPE_HEADER value - */ - v1.DataType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "DATA_TYPE_UNINITIALIZED_UNSPECIFIED"] = 0; - values[valuesById[1] = "DATA_TYPE_CLIENT_STATE"] = 1; - values[valuesById[2] = "DATA_TYPE_CONSENSUS_STATE"] = 2; - values[valuesById[3] = "DATA_TYPE_CONNECTION_STATE"] = 3; - values[valuesById[4] = "DATA_TYPE_CHANNEL_STATE"] = 4; - values[valuesById[5] = "DATA_TYPE_PACKET_COMMITMENT"] = 5; - values[valuesById[6] = "DATA_TYPE_PACKET_ACKNOWLEDGEMENT"] = 6; - values[valuesById[7] = "DATA_TYPE_PACKET_RECEIPT_ABSENCE"] = 7; - values[valuesById[8] = "DATA_TYPE_NEXT_SEQUENCE_RECV"] = 8; - values[valuesById[9] = "DATA_TYPE_HEADER"] = 9; - return values; + return QueryConnectionsRequest; })(); - v1.HeaderData = (function() { + v1.QueryConnectionsResponse = (function() { /** - * Properties of a HeaderData. - * @memberof ibc.lightclients.solomachine.v1 - * @interface IHeaderData - * @property {google.protobuf.IAny|null} [new_pub_key] HeaderData new_pub_key - * @property {string|null} [new_diversifier] HeaderData new_diversifier + * Properties of a QueryConnectionsResponse. + * @memberof ibc.core.connection.v1 + * @interface IQueryConnectionsResponse + * @property {Array.|null} [connections] QueryConnectionsResponse connections + * @property {cosmos.base.query.v1beta1.IPageResponse|null} [pagination] QueryConnectionsResponse pagination + * @property {ibc.core.client.v1.IHeight|null} [height] QueryConnectionsResponse height */ /** - * Constructs a new HeaderData. - * @memberof ibc.lightclients.solomachine.v1 - * @classdesc Represents a HeaderData. - * @implements IHeaderData + * Constructs a new QueryConnectionsResponse. + * @memberof ibc.core.connection.v1 + * @classdesc Represents a QueryConnectionsResponse. + * @implements IQueryConnectionsResponse * @constructor - * @param {ibc.lightclients.solomachine.v1.IHeaderData=} [properties] Properties to set + * @param {ibc.core.connection.v1.IQueryConnectionsResponse=} [properties] Properties to set */ - function HeaderData(properties) { + function QueryConnectionsResponse(properties) { + this.connections = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -66429,76 +72564,92 @@ } /** - * HeaderData new_pub_key. - * @member {google.protobuf.IAny|null|undefined} new_pub_key - * @memberof ibc.lightclients.solomachine.v1.HeaderData + * QueryConnectionsResponse connections. + * @member {Array.} connections + * @memberof ibc.core.connection.v1.QueryConnectionsResponse * @instance */ - HeaderData.prototype.new_pub_key = null; + QueryConnectionsResponse.prototype.connections = $util.emptyArray; /** - * HeaderData new_diversifier. - * @member {string} new_diversifier - * @memberof ibc.lightclients.solomachine.v1.HeaderData + * QueryConnectionsResponse pagination. + * @member {cosmos.base.query.v1beta1.IPageResponse|null|undefined} pagination + * @memberof ibc.core.connection.v1.QueryConnectionsResponse * @instance */ - HeaderData.prototype.new_diversifier = ""; + QueryConnectionsResponse.prototype.pagination = null; + + /** + * QueryConnectionsResponse height. + * @member {ibc.core.client.v1.IHeight|null|undefined} height + * @memberof ibc.core.connection.v1.QueryConnectionsResponse + * @instance + */ + QueryConnectionsResponse.prototype.height = null; /** - * Encodes the specified HeaderData message. Does not implicitly {@link ibc.lightclients.solomachine.v1.HeaderData.verify|verify} messages. + * Encodes the specified QueryConnectionsResponse message. Does not implicitly {@link ibc.core.connection.v1.QueryConnectionsResponse.verify|verify} messages. * @function encode - * @memberof ibc.lightclients.solomachine.v1.HeaderData + * @memberof ibc.core.connection.v1.QueryConnectionsResponse * @static - * @param {ibc.lightclients.solomachine.v1.IHeaderData} message HeaderData message or plain object to encode + * @param {ibc.core.connection.v1.IQueryConnectionsResponse} message QueryConnectionsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - HeaderData.encode = function encode(message, writer) { + QueryConnectionsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.new_pub_key != null && Object.hasOwnProperty.call(message, "new_pub_key")) - $root.google.protobuf.Any.encode(message.new_pub_key, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.new_diversifier != null && Object.hasOwnProperty.call(message, "new_diversifier")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.new_diversifier); + if (message.connections != null && message.connections.length) + for (var i = 0; i < message.connections.length; ++i) + $root.ibc.core.connection.v1.IdentifiedConnection.encode(message.connections[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.pagination != null && Object.hasOwnProperty.call(message, "pagination")) + $root.cosmos.base.query.v1beta1.PageResponse.encode(message.pagination, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.height != null && Object.hasOwnProperty.call(message, "height")) + $root.ibc.core.client.v1.Height.encode(message.height, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified HeaderData message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v1.HeaderData.verify|verify} messages. + * Encodes the specified QueryConnectionsResponse message, length delimited. Does not implicitly {@link ibc.core.connection.v1.QueryConnectionsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.lightclients.solomachine.v1.HeaderData + * @memberof ibc.core.connection.v1.QueryConnectionsResponse * @static - * @param {ibc.lightclients.solomachine.v1.IHeaderData} message HeaderData message or plain object to encode + * @param {ibc.core.connection.v1.IQueryConnectionsResponse} message QueryConnectionsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - HeaderData.encodeDelimited = function encodeDelimited(message, writer) { + QueryConnectionsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a HeaderData message from the specified reader or buffer. + * Decodes a QueryConnectionsResponse message from the specified reader or buffer. * @function decode - * @memberof ibc.lightclients.solomachine.v1.HeaderData + * @memberof ibc.core.connection.v1.QueryConnectionsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.lightclients.solomachine.v1.HeaderData} HeaderData + * @returns {ibc.core.connection.v1.QueryConnectionsResponse} QueryConnectionsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - HeaderData.decode = function decode(reader, length) { + QueryConnectionsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.solomachine.v1.HeaderData(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.connection.v1.QueryConnectionsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.new_pub_key = $root.google.protobuf.Any.decode(reader, reader.uint32()); + if (!(message.connections && message.connections.length)) + message.connections = []; + message.connections.push($root.ibc.core.connection.v1.IdentifiedConnection.decode(reader, reader.uint32())); break; case 2: - message.new_diversifier = reader.string(); + message.pagination = $root.cosmos.base.query.v1beta1.PageResponse.decode(reader, reader.uint32()); + break; + case 3: + message.height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -66509,122 +72660,152 @@ }; /** - * Decodes a HeaderData message from the specified reader or buffer, length delimited. + * Decodes a QueryConnectionsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.lightclients.solomachine.v1.HeaderData + * @memberof ibc.core.connection.v1.QueryConnectionsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.lightclients.solomachine.v1.HeaderData} HeaderData + * @returns {ibc.core.connection.v1.QueryConnectionsResponse} QueryConnectionsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - HeaderData.decodeDelimited = function decodeDelimited(reader) { + QueryConnectionsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a HeaderData message. + * Verifies a QueryConnectionsResponse message. * @function verify - * @memberof ibc.lightclients.solomachine.v1.HeaderData + * @memberof ibc.core.connection.v1.QueryConnectionsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - HeaderData.verify = function verify(message) { + QueryConnectionsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.new_pub_key != null && message.hasOwnProperty("new_pub_key")) { - var error = $root.google.protobuf.Any.verify(message.new_pub_key); + if (message.connections != null && message.hasOwnProperty("connections")) { + if (!Array.isArray(message.connections)) + return "connections: array expected"; + for (var i = 0; i < message.connections.length; ++i) { + var error = $root.ibc.core.connection.v1.IdentifiedConnection.verify(message.connections[i]); + if (error) + return "connections." + error; + } + } + if (message.pagination != null && message.hasOwnProperty("pagination")) { + var error = $root.cosmos.base.query.v1beta1.PageResponse.verify(message.pagination); if (error) - return "new_pub_key." + error; + return "pagination." + error; + } + if (message.height != null && message.hasOwnProperty("height")) { + var error = $root.ibc.core.client.v1.Height.verify(message.height); + if (error) + return "height." + error; } - if (message.new_diversifier != null && message.hasOwnProperty("new_diversifier")) - if (!$util.isString(message.new_diversifier)) - return "new_diversifier: string expected"; return null; }; /** - * Creates a HeaderData message from a plain object. Also converts values to their respective internal types. + * Creates a QueryConnectionsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.lightclients.solomachine.v1.HeaderData + * @memberof ibc.core.connection.v1.QueryConnectionsResponse * @static * @param {Object.} object Plain object - * @returns {ibc.lightclients.solomachine.v1.HeaderData} HeaderData + * @returns {ibc.core.connection.v1.QueryConnectionsResponse} QueryConnectionsResponse */ - HeaderData.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.lightclients.solomachine.v1.HeaderData) + QueryConnectionsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.connection.v1.QueryConnectionsResponse) return object; - var message = new $root.ibc.lightclients.solomachine.v1.HeaderData(); - if (object.new_pub_key != null) { - if (typeof object.new_pub_key !== "object") - throw TypeError(".ibc.lightclients.solomachine.v1.HeaderData.new_pub_key: object expected"); - message.new_pub_key = $root.google.protobuf.Any.fromObject(object.new_pub_key); + var message = new $root.ibc.core.connection.v1.QueryConnectionsResponse(); + if (object.connections) { + if (!Array.isArray(object.connections)) + throw TypeError(".ibc.core.connection.v1.QueryConnectionsResponse.connections: array expected"); + message.connections = []; + for (var i = 0; i < object.connections.length; ++i) { + if (typeof object.connections[i] !== "object") + throw TypeError(".ibc.core.connection.v1.QueryConnectionsResponse.connections: object expected"); + message.connections[i] = $root.ibc.core.connection.v1.IdentifiedConnection.fromObject(object.connections[i]); + } + } + if (object.pagination != null) { + if (typeof object.pagination !== "object") + throw TypeError(".ibc.core.connection.v1.QueryConnectionsResponse.pagination: object expected"); + message.pagination = $root.cosmos.base.query.v1beta1.PageResponse.fromObject(object.pagination); + } + if (object.height != null) { + if (typeof object.height !== "object") + throw TypeError(".ibc.core.connection.v1.QueryConnectionsResponse.height: object expected"); + message.height = $root.ibc.core.client.v1.Height.fromObject(object.height); } - if (object.new_diversifier != null) - message.new_diversifier = String(object.new_diversifier); return message; }; /** - * Creates a plain object from a HeaderData message. Also converts values to other types if specified. + * Creates a plain object from a QueryConnectionsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.lightclients.solomachine.v1.HeaderData + * @memberof ibc.core.connection.v1.QueryConnectionsResponse * @static - * @param {ibc.lightclients.solomachine.v1.HeaderData} message HeaderData + * @param {ibc.core.connection.v1.QueryConnectionsResponse} message QueryConnectionsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - HeaderData.toObject = function toObject(message, options) { + QueryConnectionsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.connections = []; if (options.defaults) { - object.new_pub_key = null; - object.new_diversifier = ""; + object.pagination = null; + object.height = null; } - if (message.new_pub_key != null && message.hasOwnProperty("new_pub_key")) - object.new_pub_key = $root.google.protobuf.Any.toObject(message.new_pub_key, options); - if (message.new_diversifier != null && message.hasOwnProperty("new_diversifier")) - object.new_diversifier = message.new_diversifier; + if (message.connections && message.connections.length) { + object.connections = []; + for (var j = 0; j < message.connections.length; ++j) + object.connections[j] = $root.ibc.core.connection.v1.IdentifiedConnection.toObject(message.connections[j], options); + } + if (message.pagination != null && message.hasOwnProperty("pagination")) + object.pagination = $root.cosmos.base.query.v1beta1.PageResponse.toObject(message.pagination, options); + if (message.height != null && message.hasOwnProperty("height")) + object.height = $root.ibc.core.client.v1.Height.toObject(message.height, options); return object; }; /** - * Converts this HeaderData to JSON. + * Converts this QueryConnectionsResponse to JSON. * @function toJSON - * @memberof ibc.lightclients.solomachine.v1.HeaderData + * @memberof ibc.core.connection.v1.QueryConnectionsResponse * @instance * @returns {Object.} JSON object */ - HeaderData.prototype.toJSON = function toJSON() { + QueryConnectionsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return HeaderData; + return QueryConnectionsResponse; })(); - v1.ClientStateData = (function() { + v1.QueryClientConnectionsRequest = (function() { /** - * Properties of a ClientStateData. - * @memberof ibc.lightclients.solomachine.v1 - * @interface IClientStateData - * @property {Uint8Array|null} [path] ClientStateData path - * @property {google.protobuf.IAny|null} [client_state] ClientStateData client_state + * Properties of a QueryClientConnectionsRequest. + * @memberof ibc.core.connection.v1 + * @interface IQueryClientConnectionsRequest + * @property {string|null} [client_id] QueryClientConnectionsRequest client_id */ /** - * Constructs a new ClientStateData. - * @memberof ibc.lightclients.solomachine.v1 - * @classdesc Represents a ClientStateData. - * @implements IClientStateData + * Constructs a new QueryClientConnectionsRequest. + * @memberof ibc.core.connection.v1 + * @classdesc Represents a QueryClientConnectionsRequest. + * @implements IQueryClientConnectionsRequest * @constructor - * @param {ibc.lightclients.solomachine.v1.IClientStateData=} [properties] Properties to set + * @param {ibc.core.connection.v1.IQueryClientConnectionsRequest=} [properties] Properties to set */ - function ClientStateData(properties) { + function QueryClientConnectionsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -66632,76 +72813,63 @@ } /** - * ClientStateData path. - * @member {Uint8Array} path - * @memberof ibc.lightclients.solomachine.v1.ClientStateData - * @instance - */ - ClientStateData.prototype.path = $util.newBuffer([]); - - /** - * ClientStateData client_state. - * @member {google.protobuf.IAny|null|undefined} client_state - * @memberof ibc.lightclients.solomachine.v1.ClientStateData + * QueryClientConnectionsRequest client_id. + * @member {string} client_id + * @memberof ibc.core.connection.v1.QueryClientConnectionsRequest * @instance */ - ClientStateData.prototype.client_state = null; + QueryClientConnectionsRequest.prototype.client_id = ""; /** - * Encodes the specified ClientStateData message. Does not implicitly {@link ibc.lightclients.solomachine.v1.ClientStateData.verify|verify} messages. + * Encodes the specified QueryClientConnectionsRequest message. Does not implicitly {@link ibc.core.connection.v1.QueryClientConnectionsRequest.verify|verify} messages. * @function encode - * @memberof ibc.lightclients.solomachine.v1.ClientStateData + * @memberof ibc.core.connection.v1.QueryClientConnectionsRequest * @static - * @param {ibc.lightclients.solomachine.v1.IClientStateData} message ClientStateData message or plain object to encode + * @param {ibc.core.connection.v1.IQueryClientConnectionsRequest} message QueryClientConnectionsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ClientStateData.encode = function encode(message, writer) { + QueryClientConnectionsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.path != null && Object.hasOwnProperty.call(message, "path")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.path); - if (message.client_state != null && Object.hasOwnProperty.call(message, "client_state")) - $root.google.protobuf.Any.encode(message.client_state, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.client_id != null && Object.hasOwnProperty.call(message, "client_id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.client_id); return writer; }; /** - * Encodes the specified ClientStateData message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v1.ClientStateData.verify|verify} messages. + * Encodes the specified QueryClientConnectionsRequest message, length delimited. Does not implicitly {@link ibc.core.connection.v1.QueryClientConnectionsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.lightclients.solomachine.v1.ClientStateData + * @memberof ibc.core.connection.v1.QueryClientConnectionsRequest * @static - * @param {ibc.lightclients.solomachine.v1.IClientStateData} message ClientStateData message or plain object to encode + * @param {ibc.core.connection.v1.IQueryClientConnectionsRequest} message QueryClientConnectionsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ClientStateData.encodeDelimited = function encodeDelimited(message, writer) { + QueryClientConnectionsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ClientStateData message from the specified reader or buffer. + * Decodes a QueryClientConnectionsRequest message from the specified reader or buffer. * @function decode - * @memberof ibc.lightclients.solomachine.v1.ClientStateData + * @memberof ibc.core.connection.v1.QueryClientConnectionsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.lightclients.solomachine.v1.ClientStateData} ClientStateData + * @returns {ibc.core.connection.v1.QueryClientConnectionsRequest} QueryClientConnectionsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ClientStateData.decode = function decode(reader, length) { + QueryClientConnectionsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.solomachine.v1.ClientStateData(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.connection.v1.QueryClientConnectionsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.path = reader.bytes(); - break; - case 2: - message.client_state = $root.google.protobuf.Any.decode(reader, reader.uint32()); + message.client_id = reader.string(); break; default: reader.skipType(tag & 7); @@ -66712,131 +72880,110 @@ }; /** - * Decodes a ClientStateData message from the specified reader or buffer, length delimited. + * Decodes a QueryClientConnectionsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.lightclients.solomachine.v1.ClientStateData + * @memberof ibc.core.connection.v1.QueryClientConnectionsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.lightclients.solomachine.v1.ClientStateData} ClientStateData + * @returns {ibc.core.connection.v1.QueryClientConnectionsRequest} QueryClientConnectionsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ClientStateData.decodeDelimited = function decodeDelimited(reader) { + QueryClientConnectionsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ClientStateData message. + * Verifies a QueryClientConnectionsRequest message. * @function verify - * @memberof ibc.lightclients.solomachine.v1.ClientStateData + * @memberof ibc.core.connection.v1.QueryClientConnectionsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ClientStateData.verify = function verify(message) { + QueryClientConnectionsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.path != null && message.hasOwnProperty("path")) - if (!(message.path && typeof message.path.length === "number" || $util.isString(message.path))) - return "path: buffer expected"; - if (message.client_state != null && message.hasOwnProperty("client_state")) { - var error = $root.google.protobuf.Any.verify(message.client_state); - if (error) - return "client_state." + error; - } + if (message.client_id != null && message.hasOwnProperty("client_id")) + if (!$util.isString(message.client_id)) + return "client_id: string expected"; return null; }; /** - * Creates a ClientStateData message from a plain object. Also converts values to their respective internal types. + * Creates a QueryClientConnectionsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.lightclients.solomachine.v1.ClientStateData + * @memberof ibc.core.connection.v1.QueryClientConnectionsRequest * @static * @param {Object.} object Plain object - * @returns {ibc.lightclients.solomachine.v1.ClientStateData} ClientStateData + * @returns {ibc.core.connection.v1.QueryClientConnectionsRequest} QueryClientConnectionsRequest */ - ClientStateData.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.lightclients.solomachine.v1.ClientStateData) + QueryClientConnectionsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.connection.v1.QueryClientConnectionsRequest) return object; - var message = new $root.ibc.lightclients.solomachine.v1.ClientStateData(); - if (object.path != null) - if (typeof object.path === "string") - $util.base64.decode(object.path, message.path = $util.newBuffer($util.base64.length(object.path)), 0); - else if (object.path.length) - message.path = object.path; - if (object.client_state != null) { - if (typeof object.client_state !== "object") - throw TypeError(".ibc.lightclients.solomachine.v1.ClientStateData.client_state: object expected"); - message.client_state = $root.google.protobuf.Any.fromObject(object.client_state); - } + var message = new $root.ibc.core.connection.v1.QueryClientConnectionsRequest(); + if (object.client_id != null) + message.client_id = String(object.client_id); return message; }; /** - * Creates a plain object from a ClientStateData message. Also converts values to other types if specified. + * Creates a plain object from a QueryClientConnectionsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.lightclients.solomachine.v1.ClientStateData + * @memberof ibc.core.connection.v1.QueryClientConnectionsRequest * @static - * @param {ibc.lightclients.solomachine.v1.ClientStateData} message ClientStateData + * @param {ibc.core.connection.v1.QueryClientConnectionsRequest} message QueryClientConnectionsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ClientStateData.toObject = function toObject(message, options) { + QueryClientConnectionsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - if (options.bytes === String) - object.path = ""; - else { - object.path = []; - if (options.bytes !== Array) - object.path = $util.newBuffer(object.path); - } - object.client_state = null; - } - if (message.path != null && message.hasOwnProperty("path")) - object.path = options.bytes === String ? $util.base64.encode(message.path, 0, message.path.length) : options.bytes === Array ? Array.prototype.slice.call(message.path) : message.path; - if (message.client_state != null && message.hasOwnProperty("client_state")) - object.client_state = $root.google.protobuf.Any.toObject(message.client_state, options); + if (options.defaults) + object.client_id = ""; + if (message.client_id != null && message.hasOwnProperty("client_id")) + object.client_id = message.client_id; return object; }; /** - * Converts this ClientStateData to JSON. + * Converts this QueryClientConnectionsRequest to JSON. * @function toJSON - * @memberof ibc.lightclients.solomachine.v1.ClientStateData + * @memberof ibc.core.connection.v1.QueryClientConnectionsRequest * @instance * @returns {Object.} JSON object */ - ClientStateData.prototype.toJSON = function toJSON() { + QueryClientConnectionsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ClientStateData; + return QueryClientConnectionsRequest; })(); - v1.ConsensusStateData = (function() { + v1.QueryClientConnectionsResponse = (function() { /** - * Properties of a ConsensusStateData. - * @memberof ibc.lightclients.solomachine.v1 - * @interface IConsensusStateData - * @property {Uint8Array|null} [path] ConsensusStateData path - * @property {google.protobuf.IAny|null} [consensus_state] ConsensusStateData consensus_state + * Properties of a QueryClientConnectionsResponse. + * @memberof ibc.core.connection.v1 + * @interface IQueryClientConnectionsResponse + * @property {Array.|null} [connection_paths] QueryClientConnectionsResponse connection_paths + * @property {Uint8Array|null} [proof] QueryClientConnectionsResponse proof + * @property {ibc.core.client.v1.IHeight|null} [proof_height] QueryClientConnectionsResponse proof_height */ /** - * Constructs a new ConsensusStateData. - * @memberof ibc.lightclients.solomachine.v1 - * @classdesc Represents a ConsensusStateData. - * @implements IConsensusStateData + * Constructs a new QueryClientConnectionsResponse. + * @memberof ibc.core.connection.v1 + * @classdesc Represents a QueryClientConnectionsResponse. + * @implements IQueryClientConnectionsResponse * @constructor - * @param {ibc.lightclients.solomachine.v1.IConsensusStateData=} [properties] Properties to set + * @param {ibc.core.connection.v1.IQueryClientConnectionsResponse=} [properties] Properties to set */ - function ConsensusStateData(properties) { + function QueryClientConnectionsResponse(properties) { + this.connection_paths = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -66844,76 +72991,92 @@ } /** - * ConsensusStateData path. - * @member {Uint8Array} path - * @memberof ibc.lightclients.solomachine.v1.ConsensusStateData + * QueryClientConnectionsResponse connection_paths. + * @member {Array.} connection_paths + * @memberof ibc.core.connection.v1.QueryClientConnectionsResponse * @instance */ - ConsensusStateData.prototype.path = $util.newBuffer([]); + QueryClientConnectionsResponse.prototype.connection_paths = $util.emptyArray; /** - * ConsensusStateData consensus_state. - * @member {google.protobuf.IAny|null|undefined} consensus_state - * @memberof ibc.lightclients.solomachine.v1.ConsensusStateData + * QueryClientConnectionsResponse proof. + * @member {Uint8Array} proof + * @memberof ibc.core.connection.v1.QueryClientConnectionsResponse * @instance */ - ConsensusStateData.prototype.consensus_state = null; + QueryClientConnectionsResponse.prototype.proof = $util.newBuffer([]); /** - * Encodes the specified ConsensusStateData message. Does not implicitly {@link ibc.lightclients.solomachine.v1.ConsensusStateData.verify|verify} messages. + * QueryClientConnectionsResponse proof_height. + * @member {ibc.core.client.v1.IHeight|null|undefined} proof_height + * @memberof ibc.core.connection.v1.QueryClientConnectionsResponse + * @instance + */ + QueryClientConnectionsResponse.prototype.proof_height = null; + + /** + * Encodes the specified QueryClientConnectionsResponse message. Does not implicitly {@link ibc.core.connection.v1.QueryClientConnectionsResponse.verify|verify} messages. * @function encode - * @memberof ibc.lightclients.solomachine.v1.ConsensusStateData + * @memberof ibc.core.connection.v1.QueryClientConnectionsResponse * @static - * @param {ibc.lightclients.solomachine.v1.IConsensusStateData} message ConsensusStateData message or plain object to encode + * @param {ibc.core.connection.v1.IQueryClientConnectionsResponse} message QueryClientConnectionsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ConsensusStateData.encode = function encode(message, writer) { + QueryClientConnectionsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.path != null && Object.hasOwnProperty.call(message, "path")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.path); - if (message.consensus_state != null && Object.hasOwnProperty.call(message, "consensus_state")) - $root.google.protobuf.Any.encode(message.consensus_state, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.connection_paths != null && message.connection_paths.length) + for (var i = 0; i < message.connection_paths.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.connection_paths[i]); + if (message.proof != null && Object.hasOwnProperty.call(message, "proof")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.proof); + if (message.proof_height != null && Object.hasOwnProperty.call(message, "proof_height")) + $root.ibc.core.client.v1.Height.encode(message.proof_height, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified ConsensusStateData message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v1.ConsensusStateData.verify|verify} messages. + * Encodes the specified QueryClientConnectionsResponse message, length delimited. Does not implicitly {@link ibc.core.connection.v1.QueryClientConnectionsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.lightclients.solomachine.v1.ConsensusStateData + * @memberof ibc.core.connection.v1.QueryClientConnectionsResponse * @static - * @param {ibc.lightclients.solomachine.v1.IConsensusStateData} message ConsensusStateData message or plain object to encode + * @param {ibc.core.connection.v1.IQueryClientConnectionsResponse} message QueryClientConnectionsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ConsensusStateData.encodeDelimited = function encodeDelimited(message, writer) { + QueryClientConnectionsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ConsensusStateData message from the specified reader or buffer. + * Decodes a QueryClientConnectionsResponse message from the specified reader or buffer. * @function decode - * @memberof ibc.lightclients.solomachine.v1.ConsensusStateData + * @memberof ibc.core.connection.v1.QueryClientConnectionsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.lightclients.solomachine.v1.ConsensusStateData} ConsensusStateData + * @returns {ibc.core.connection.v1.QueryClientConnectionsResponse} QueryClientConnectionsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ConsensusStateData.decode = function decode(reader, length) { + QueryClientConnectionsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.solomachine.v1.ConsensusStateData(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.connection.v1.QueryClientConnectionsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.path = reader.bytes(); + if (!(message.connection_paths && message.connection_paths.length)) + message.connection_paths = []; + message.connection_paths.push(reader.string()); break; case 2: - message.consensus_state = $root.google.protobuf.Any.decode(reader, reader.uint32()); + message.proof = reader.bytes(); + break; + case 3: + message.proof_height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -66924,131 +73087,151 @@ }; /** - * Decodes a ConsensusStateData message from the specified reader or buffer, length delimited. + * Decodes a QueryClientConnectionsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.lightclients.solomachine.v1.ConsensusStateData + * @memberof ibc.core.connection.v1.QueryClientConnectionsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.lightclients.solomachine.v1.ConsensusStateData} ConsensusStateData + * @returns {ibc.core.connection.v1.QueryClientConnectionsResponse} QueryClientConnectionsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ConsensusStateData.decodeDelimited = function decodeDelimited(reader) { + QueryClientConnectionsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ConsensusStateData message. + * Verifies a QueryClientConnectionsResponse message. * @function verify - * @memberof ibc.lightclients.solomachine.v1.ConsensusStateData + * @memberof ibc.core.connection.v1.QueryClientConnectionsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ConsensusStateData.verify = function verify(message) { + QueryClientConnectionsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.path != null && message.hasOwnProperty("path")) - if (!(message.path && typeof message.path.length === "number" || $util.isString(message.path))) - return "path: buffer expected"; - if (message.consensus_state != null && message.hasOwnProperty("consensus_state")) { - var error = $root.google.protobuf.Any.verify(message.consensus_state); + if (message.connection_paths != null && message.hasOwnProperty("connection_paths")) { + if (!Array.isArray(message.connection_paths)) + return "connection_paths: array expected"; + for (var i = 0; i < message.connection_paths.length; ++i) + if (!$util.isString(message.connection_paths[i])) + return "connection_paths: string[] expected"; + } + if (message.proof != null && message.hasOwnProperty("proof")) + if (!(message.proof && typeof message.proof.length === "number" || $util.isString(message.proof))) + return "proof: buffer expected"; + if (message.proof_height != null && message.hasOwnProperty("proof_height")) { + var error = $root.ibc.core.client.v1.Height.verify(message.proof_height); if (error) - return "consensus_state." + error; + return "proof_height." + error; } return null; }; /** - * Creates a ConsensusStateData message from a plain object. Also converts values to their respective internal types. + * Creates a QueryClientConnectionsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.lightclients.solomachine.v1.ConsensusStateData + * @memberof ibc.core.connection.v1.QueryClientConnectionsResponse * @static * @param {Object.} object Plain object - * @returns {ibc.lightclients.solomachine.v1.ConsensusStateData} ConsensusStateData + * @returns {ibc.core.connection.v1.QueryClientConnectionsResponse} QueryClientConnectionsResponse */ - ConsensusStateData.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.lightclients.solomachine.v1.ConsensusStateData) + QueryClientConnectionsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.connection.v1.QueryClientConnectionsResponse) return object; - var message = new $root.ibc.lightclients.solomachine.v1.ConsensusStateData(); - if (object.path != null) - if (typeof object.path === "string") - $util.base64.decode(object.path, message.path = $util.newBuffer($util.base64.length(object.path)), 0); - else if (object.path.length) - message.path = object.path; - if (object.consensus_state != null) { - if (typeof object.consensus_state !== "object") - throw TypeError(".ibc.lightclients.solomachine.v1.ConsensusStateData.consensus_state: object expected"); - message.consensus_state = $root.google.protobuf.Any.fromObject(object.consensus_state); + var message = new $root.ibc.core.connection.v1.QueryClientConnectionsResponse(); + if (object.connection_paths) { + if (!Array.isArray(object.connection_paths)) + throw TypeError(".ibc.core.connection.v1.QueryClientConnectionsResponse.connection_paths: array expected"); + message.connection_paths = []; + for (var i = 0; i < object.connection_paths.length; ++i) + message.connection_paths[i] = String(object.connection_paths[i]); + } + if (object.proof != null) + if (typeof object.proof === "string") + $util.base64.decode(object.proof, message.proof = $util.newBuffer($util.base64.length(object.proof)), 0); + else if (object.proof.length) + message.proof = object.proof; + if (object.proof_height != null) { + if (typeof object.proof_height !== "object") + throw TypeError(".ibc.core.connection.v1.QueryClientConnectionsResponse.proof_height: object expected"); + message.proof_height = $root.ibc.core.client.v1.Height.fromObject(object.proof_height); } return message; }; /** - * Creates a plain object from a ConsensusStateData message. Also converts values to other types if specified. + * Creates a plain object from a QueryClientConnectionsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.lightclients.solomachine.v1.ConsensusStateData + * @memberof ibc.core.connection.v1.QueryClientConnectionsResponse * @static - * @param {ibc.lightclients.solomachine.v1.ConsensusStateData} message ConsensusStateData + * @param {ibc.core.connection.v1.QueryClientConnectionsResponse} message QueryClientConnectionsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ConsensusStateData.toObject = function toObject(message, options) { + QueryClientConnectionsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.connection_paths = []; if (options.defaults) { if (options.bytes === String) - object.path = ""; + object.proof = ""; else { - object.path = []; + object.proof = []; if (options.bytes !== Array) - object.path = $util.newBuffer(object.path); + object.proof = $util.newBuffer(object.proof); } - object.consensus_state = null; + object.proof_height = null; } - if (message.path != null && message.hasOwnProperty("path")) - object.path = options.bytes === String ? $util.base64.encode(message.path, 0, message.path.length) : options.bytes === Array ? Array.prototype.slice.call(message.path) : message.path; - if (message.consensus_state != null && message.hasOwnProperty("consensus_state")) - object.consensus_state = $root.google.protobuf.Any.toObject(message.consensus_state, options); + if (message.connection_paths && message.connection_paths.length) { + object.connection_paths = []; + for (var j = 0; j < message.connection_paths.length; ++j) + object.connection_paths[j] = message.connection_paths[j]; + } + if (message.proof != null && message.hasOwnProperty("proof")) + object.proof = options.bytes === String ? $util.base64.encode(message.proof, 0, message.proof.length) : options.bytes === Array ? Array.prototype.slice.call(message.proof) : message.proof; + if (message.proof_height != null && message.hasOwnProperty("proof_height")) + object.proof_height = $root.ibc.core.client.v1.Height.toObject(message.proof_height, options); return object; }; /** - * Converts this ConsensusStateData to JSON. + * Converts this QueryClientConnectionsResponse to JSON. * @function toJSON - * @memberof ibc.lightclients.solomachine.v1.ConsensusStateData + * @memberof ibc.core.connection.v1.QueryClientConnectionsResponse * @instance * @returns {Object.} JSON object */ - ConsensusStateData.prototype.toJSON = function toJSON() { + QueryClientConnectionsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ConsensusStateData; + return QueryClientConnectionsResponse; })(); - v1.ConnectionStateData = (function() { + v1.QueryConnectionClientStateRequest = (function() { /** - * Properties of a ConnectionStateData. - * @memberof ibc.lightclients.solomachine.v1 - * @interface IConnectionStateData - * @property {Uint8Array|null} [path] ConnectionStateData path - * @property {ibc.core.connection.v1.IConnectionEnd|null} [connection] ConnectionStateData connection + * Properties of a QueryConnectionClientStateRequest. + * @memberof ibc.core.connection.v1 + * @interface IQueryConnectionClientStateRequest + * @property {string|null} [connection_id] QueryConnectionClientStateRequest connection_id */ /** - * Constructs a new ConnectionStateData. - * @memberof ibc.lightclients.solomachine.v1 - * @classdesc Represents a ConnectionStateData. - * @implements IConnectionStateData + * Constructs a new QueryConnectionClientStateRequest. + * @memberof ibc.core.connection.v1 + * @classdesc Represents a QueryConnectionClientStateRequest. + * @implements IQueryConnectionClientStateRequest * @constructor - * @param {ibc.lightclients.solomachine.v1.IConnectionStateData=} [properties] Properties to set + * @param {ibc.core.connection.v1.IQueryConnectionClientStateRequest=} [properties] Properties to set */ - function ConnectionStateData(properties) { + function QueryConnectionClientStateRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -67056,76 +73239,63 @@ } /** - * ConnectionStateData path. - * @member {Uint8Array} path - * @memberof ibc.lightclients.solomachine.v1.ConnectionStateData - * @instance - */ - ConnectionStateData.prototype.path = $util.newBuffer([]); - - /** - * ConnectionStateData connection. - * @member {ibc.core.connection.v1.IConnectionEnd|null|undefined} connection - * @memberof ibc.lightclients.solomachine.v1.ConnectionStateData + * QueryConnectionClientStateRequest connection_id. + * @member {string} connection_id + * @memberof ibc.core.connection.v1.QueryConnectionClientStateRequest * @instance */ - ConnectionStateData.prototype.connection = null; + QueryConnectionClientStateRequest.prototype.connection_id = ""; /** - * Encodes the specified ConnectionStateData message. Does not implicitly {@link ibc.lightclients.solomachine.v1.ConnectionStateData.verify|verify} messages. + * Encodes the specified QueryConnectionClientStateRequest message. Does not implicitly {@link ibc.core.connection.v1.QueryConnectionClientStateRequest.verify|verify} messages. * @function encode - * @memberof ibc.lightclients.solomachine.v1.ConnectionStateData + * @memberof ibc.core.connection.v1.QueryConnectionClientStateRequest * @static - * @param {ibc.lightclients.solomachine.v1.IConnectionStateData} message ConnectionStateData message or plain object to encode + * @param {ibc.core.connection.v1.IQueryConnectionClientStateRequest} message QueryConnectionClientStateRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ConnectionStateData.encode = function encode(message, writer) { + QueryConnectionClientStateRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.path != null && Object.hasOwnProperty.call(message, "path")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.path); - if (message.connection != null && Object.hasOwnProperty.call(message, "connection")) - $root.ibc.core.connection.v1.ConnectionEnd.encode(message.connection, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.connection_id != null && Object.hasOwnProperty.call(message, "connection_id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.connection_id); return writer; }; /** - * Encodes the specified ConnectionStateData message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v1.ConnectionStateData.verify|verify} messages. + * Encodes the specified QueryConnectionClientStateRequest message, length delimited. Does not implicitly {@link ibc.core.connection.v1.QueryConnectionClientStateRequest.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.lightclients.solomachine.v1.ConnectionStateData + * @memberof ibc.core.connection.v1.QueryConnectionClientStateRequest * @static - * @param {ibc.lightclients.solomachine.v1.IConnectionStateData} message ConnectionStateData message or plain object to encode + * @param {ibc.core.connection.v1.IQueryConnectionClientStateRequest} message QueryConnectionClientStateRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ConnectionStateData.encodeDelimited = function encodeDelimited(message, writer) { + QueryConnectionClientStateRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ConnectionStateData message from the specified reader or buffer. + * Decodes a QueryConnectionClientStateRequest message from the specified reader or buffer. * @function decode - * @memberof ibc.lightclients.solomachine.v1.ConnectionStateData + * @memberof ibc.core.connection.v1.QueryConnectionClientStateRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.lightclients.solomachine.v1.ConnectionStateData} ConnectionStateData + * @returns {ibc.core.connection.v1.QueryConnectionClientStateRequest} QueryConnectionClientStateRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ConnectionStateData.decode = function decode(reader, length) { + QueryConnectionClientStateRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.solomachine.v1.ConnectionStateData(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.connection.v1.QueryConnectionClientStateRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.path = reader.bytes(); - break; - case 2: - message.connection = $root.ibc.core.connection.v1.ConnectionEnd.decode(reader, reader.uint32()); + message.connection_id = reader.string(); break; default: reader.skipType(tag & 7); @@ -67136,131 +73306,109 @@ }; /** - * Decodes a ConnectionStateData message from the specified reader or buffer, length delimited. + * Decodes a QueryConnectionClientStateRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.lightclients.solomachine.v1.ConnectionStateData + * @memberof ibc.core.connection.v1.QueryConnectionClientStateRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.lightclients.solomachine.v1.ConnectionStateData} ConnectionStateData + * @returns {ibc.core.connection.v1.QueryConnectionClientStateRequest} QueryConnectionClientStateRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ConnectionStateData.decodeDelimited = function decodeDelimited(reader) { + QueryConnectionClientStateRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ConnectionStateData message. + * Verifies a QueryConnectionClientStateRequest message. * @function verify - * @memberof ibc.lightclients.solomachine.v1.ConnectionStateData + * @memberof ibc.core.connection.v1.QueryConnectionClientStateRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ConnectionStateData.verify = function verify(message) { + QueryConnectionClientStateRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.path != null && message.hasOwnProperty("path")) - if (!(message.path && typeof message.path.length === "number" || $util.isString(message.path))) - return "path: buffer expected"; - if (message.connection != null && message.hasOwnProperty("connection")) { - var error = $root.ibc.core.connection.v1.ConnectionEnd.verify(message.connection); - if (error) - return "connection." + error; - } + if (message.connection_id != null && message.hasOwnProperty("connection_id")) + if (!$util.isString(message.connection_id)) + return "connection_id: string expected"; return null; }; /** - * Creates a ConnectionStateData message from a plain object. Also converts values to their respective internal types. + * Creates a QueryConnectionClientStateRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.lightclients.solomachine.v1.ConnectionStateData + * @memberof ibc.core.connection.v1.QueryConnectionClientStateRequest * @static * @param {Object.} object Plain object - * @returns {ibc.lightclients.solomachine.v1.ConnectionStateData} ConnectionStateData + * @returns {ibc.core.connection.v1.QueryConnectionClientStateRequest} QueryConnectionClientStateRequest */ - ConnectionStateData.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.lightclients.solomachine.v1.ConnectionStateData) + QueryConnectionClientStateRequest.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.connection.v1.QueryConnectionClientStateRequest) return object; - var message = new $root.ibc.lightclients.solomachine.v1.ConnectionStateData(); - if (object.path != null) - if (typeof object.path === "string") - $util.base64.decode(object.path, message.path = $util.newBuffer($util.base64.length(object.path)), 0); - else if (object.path.length) - message.path = object.path; - if (object.connection != null) { - if (typeof object.connection !== "object") - throw TypeError(".ibc.lightclients.solomachine.v1.ConnectionStateData.connection: object expected"); - message.connection = $root.ibc.core.connection.v1.ConnectionEnd.fromObject(object.connection); - } + var message = new $root.ibc.core.connection.v1.QueryConnectionClientStateRequest(); + if (object.connection_id != null) + message.connection_id = String(object.connection_id); return message; }; /** - * Creates a plain object from a ConnectionStateData message. Also converts values to other types if specified. + * Creates a plain object from a QueryConnectionClientStateRequest message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.lightclients.solomachine.v1.ConnectionStateData + * @memberof ibc.core.connection.v1.QueryConnectionClientStateRequest * @static - * @param {ibc.lightclients.solomachine.v1.ConnectionStateData} message ConnectionStateData + * @param {ibc.core.connection.v1.QueryConnectionClientStateRequest} message QueryConnectionClientStateRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ConnectionStateData.toObject = function toObject(message, options) { + QueryConnectionClientStateRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - if (options.bytes === String) - object.path = ""; - else { - object.path = []; - if (options.bytes !== Array) - object.path = $util.newBuffer(object.path); - } - object.connection = null; - } - if (message.path != null && message.hasOwnProperty("path")) - object.path = options.bytes === String ? $util.base64.encode(message.path, 0, message.path.length) : options.bytes === Array ? Array.prototype.slice.call(message.path) : message.path; - if (message.connection != null && message.hasOwnProperty("connection")) - object.connection = $root.ibc.core.connection.v1.ConnectionEnd.toObject(message.connection, options); + if (options.defaults) + object.connection_id = ""; + if (message.connection_id != null && message.hasOwnProperty("connection_id")) + object.connection_id = message.connection_id; return object; }; /** - * Converts this ConnectionStateData to JSON. + * Converts this QueryConnectionClientStateRequest to JSON. * @function toJSON - * @memberof ibc.lightclients.solomachine.v1.ConnectionStateData + * @memberof ibc.core.connection.v1.QueryConnectionClientStateRequest * @instance * @returns {Object.} JSON object */ - ConnectionStateData.prototype.toJSON = function toJSON() { + QueryConnectionClientStateRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ConnectionStateData; + return QueryConnectionClientStateRequest; })(); - v1.ChannelStateData = (function() { + v1.QueryConnectionClientStateResponse = (function() { /** - * Properties of a ChannelStateData. - * @memberof ibc.lightclients.solomachine.v1 - * @interface IChannelStateData - * @property {Uint8Array|null} [path] ChannelStateData path - * @property {ibc.core.channel.v1.IChannel|null} [channel] ChannelStateData channel + * Properties of a QueryConnectionClientStateResponse. + * @memberof ibc.core.connection.v1 + * @interface IQueryConnectionClientStateResponse + * @property {ibc.core.client.v1.IIdentifiedClientState|null} [identified_client_state] QueryConnectionClientStateResponse identified_client_state + * @property {Uint8Array|null} [proof] QueryConnectionClientStateResponse proof + * @property {ibc.core.client.v1.IHeight|null} [proof_height] QueryConnectionClientStateResponse proof_height */ /** - * Constructs a new ChannelStateData. - * @memberof ibc.lightclients.solomachine.v1 - * @classdesc Represents a ChannelStateData. - * @implements IChannelStateData + * Constructs a new QueryConnectionClientStateResponse. + * @memberof ibc.core.connection.v1 + * @classdesc Represents a QueryConnectionClientStateResponse. + * @implements IQueryConnectionClientStateResponse * @constructor - * @param {ibc.lightclients.solomachine.v1.IChannelStateData=} [properties] Properties to set + * @param {ibc.core.connection.v1.IQueryConnectionClientStateResponse=} [properties] Properties to set */ - function ChannelStateData(properties) { + function QueryConnectionClientStateResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -67268,76 +73416,89 @@ } /** - * ChannelStateData path. - * @member {Uint8Array} path - * @memberof ibc.lightclients.solomachine.v1.ChannelStateData + * QueryConnectionClientStateResponse identified_client_state. + * @member {ibc.core.client.v1.IIdentifiedClientState|null|undefined} identified_client_state + * @memberof ibc.core.connection.v1.QueryConnectionClientStateResponse * @instance */ - ChannelStateData.prototype.path = $util.newBuffer([]); + QueryConnectionClientStateResponse.prototype.identified_client_state = null; /** - * ChannelStateData channel. - * @member {ibc.core.channel.v1.IChannel|null|undefined} channel - * @memberof ibc.lightclients.solomachine.v1.ChannelStateData + * QueryConnectionClientStateResponse proof. + * @member {Uint8Array} proof + * @memberof ibc.core.connection.v1.QueryConnectionClientStateResponse * @instance */ - ChannelStateData.prototype.channel = null; + QueryConnectionClientStateResponse.prototype.proof = $util.newBuffer([]); + + /** + * QueryConnectionClientStateResponse proof_height. + * @member {ibc.core.client.v1.IHeight|null|undefined} proof_height + * @memberof ibc.core.connection.v1.QueryConnectionClientStateResponse + * @instance + */ + QueryConnectionClientStateResponse.prototype.proof_height = null; /** - * Encodes the specified ChannelStateData message. Does not implicitly {@link ibc.lightclients.solomachine.v1.ChannelStateData.verify|verify} messages. + * Encodes the specified QueryConnectionClientStateResponse message. Does not implicitly {@link ibc.core.connection.v1.QueryConnectionClientStateResponse.verify|verify} messages. * @function encode - * @memberof ibc.lightclients.solomachine.v1.ChannelStateData + * @memberof ibc.core.connection.v1.QueryConnectionClientStateResponse * @static - * @param {ibc.lightclients.solomachine.v1.IChannelStateData} message ChannelStateData message or plain object to encode + * @param {ibc.core.connection.v1.IQueryConnectionClientStateResponse} message QueryConnectionClientStateResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ChannelStateData.encode = function encode(message, writer) { + QueryConnectionClientStateResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.path != null && Object.hasOwnProperty.call(message, "path")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.path); - if (message.channel != null && Object.hasOwnProperty.call(message, "channel")) - $root.ibc.core.channel.v1.Channel.encode(message.channel, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.identified_client_state != null && Object.hasOwnProperty.call(message, "identified_client_state")) + $root.ibc.core.client.v1.IdentifiedClientState.encode(message.identified_client_state, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.proof != null && Object.hasOwnProperty.call(message, "proof")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.proof); + if (message.proof_height != null && Object.hasOwnProperty.call(message, "proof_height")) + $root.ibc.core.client.v1.Height.encode(message.proof_height, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified ChannelStateData message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v1.ChannelStateData.verify|verify} messages. + * Encodes the specified QueryConnectionClientStateResponse message, length delimited. Does not implicitly {@link ibc.core.connection.v1.QueryConnectionClientStateResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.lightclients.solomachine.v1.ChannelStateData + * @memberof ibc.core.connection.v1.QueryConnectionClientStateResponse * @static - * @param {ibc.lightclients.solomachine.v1.IChannelStateData} message ChannelStateData message or plain object to encode + * @param {ibc.core.connection.v1.IQueryConnectionClientStateResponse} message QueryConnectionClientStateResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ChannelStateData.encodeDelimited = function encodeDelimited(message, writer) { + QueryConnectionClientStateResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ChannelStateData message from the specified reader or buffer. + * Decodes a QueryConnectionClientStateResponse message from the specified reader or buffer. * @function decode - * @memberof ibc.lightclients.solomachine.v1.ChannelStateData + * @memberof ibc.core.connection.v1.QueryConnectionClientStateResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.lightclients.solomachine.v1.ChannelStateData} ChannelStateData + * @returns {ibc.core.connection.v1.QueryConnectionClientStateResponse} QueryConnectionClientStateResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ChannelStateData.decode = function decode(reader, length) { + QueryConnectionClientStateResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.solomachine.v1.ChannelStateData(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.connection.v1.QueryConnectionClientStateResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.path = reader.bytes(); + message.identified_client_state = $root.ibc.core.client.v1.IdentifiedClientState.decode(reader, reader.uint32()); break; case 2: - message.channel = $root.ibc.core.channel.v1.Channel.decode(reader, reader.uint32()); + message.proof = reader.bytes(); + break; + case 3: + message.proof_height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -67348,131 +73509,145 @@ }; /** - * Decodes a ChannelStateData message from the specified reader or buffer, length delimited. + * Decodes a QueryConnectionClientStateResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.lightclients.solomachine.v1.ChannelStateData + * @memberof ibc.core.connection.v1.QueryConnectionClientStateResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.lightclients.solomachine.v1.ChannelStateData} ChannelStateData + * @returns {ibc.core.connection.v1.QueryConnectionClientStateResponse} QueryConnectionClientStateResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ChannelStateData.decodeDelimited = function decodeDelimited(reader) { + QueryConnectionClientStateResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ChannelStateData message. + * Verifies a QueryConnectionClientStateResponse message. * @function verify - * @memberof ibc.lightclients.solomachine.v1.ChannelStateData + * @memberof ibc.core.connection.v1.QueryConnectionClientStateResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ChannelStateData.verify = function verify(message) { + QueryConnectionClientStateResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.path != null && message.hasOwnProperty("path")) - if (!(message.path && typeof message.path.length === "number" || $util.isString(message.path))) - return "path: buffer expected"; - if (message.channel != null && message.hasOwnProperty("channel")) { - var error = $root.ibc.core.channel.v1.Channel.verify(message.channel); + if (message.identified_client_state != null && message.hasOwnProperty("identified_client_state")) { + var error = $root.ibc.core.client.v1.IdentifiedClientState.verify(message.identified_client_state); if (error) - return "channel." + error; + return "identified_client_state." + error; + } + if (message.proof != null && message.hasOwnProperty("proof")) + if (!(message.proof && typeof message.proof.length === "number" || $util.isString(message.proof))) + return "proof: buffer expected"; + if (message.proof_height != null && message.hasOwnProperty("proof_height")) { + var error = $root.ibc.core.client.v1.Height.verify(message.proof_height); + if (error) + return "proof_height." + error; } return null; }; /** - * Creates a ChannelStateData message from a plain object. Also converts values to their respective internal types. + * Creates a QueryConnectionClientStateResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.lightclients.solomachine.v1.ChannelStateData + * @memberof ibc.core.connection.v1.QueryConnectionClientStateResponse * @static * @param {Object.} object Plain object - * @returns {ibc.lightclients.solomachine.v1.ChannelStateData} ChannelStateData + * @returns {ibc.core.connection.v1.QueryConnectionClientStateResponse} QueryConnectionClientStateResponse */ - ChannelStateData.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.lightclients.solomachine.v1.ChannelStateData) + QueryConnectionClientStateResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.connection.v1.QueryConnectionClientStateResponse) return object; - var message = new $root.ibc.lightclients.solomachine.v1.ChannelStateData(); - if (object.path != null) - if (typeof object.path === "string") - $util.base64.decode(object.path, message.path = $util.newBuffer($util.base64.length(object.path)), 0); - else if (object.path.length) - message.path = object.path; - if (object.channel != null) { - if (typeof object.channel !== "object") - throw TypeError(".ibc.lightclients.solomachine.v1.ChannelStateData.channel: object expected"); - message.channel = $root.ibc.core.channel.v1.Channel.fromObject(object.channel); + var message = new $root.ibc.core.connection.v1.QueryConnectionClientStateResponse(); + if (object.identified_client_state != null) { + if (typeof object.identified_client_state !== "object") + throw TypeError(".ibc.core.connection.v1.QueryConnectionClientStateResponse.identified_client_state: object expected"); + message.identified_client_state = $root.ibc.core.client.v1.IdentifiedClientState.fromObject(object.identified_client_state); + } + if (object.proof != null) + if (typeof object.proof === "string") + $util.base64.decode(object.proof, message.proof = $util.newBuffer($util.base64.length(object.proof)), 0); + else if (object.proof.length) + message.proof = object.proof; + if (object.proof_height != null) { + if (typeof object.proof_height !== "object") + throw TypeError(".ibc.core.connection.v1.QueryConnectionClientStateResponse.proof_height: object expected"); + message.proof_height = $root.ibc.core.client.v1.Height.fromObject(object.proof_height); } return message; }; /** - * Creates a plain object from a ChannelStateData message. Also converts values to other types if specified. + * Creates a plain object from a QueryConnectionClientStateResponse message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.lightclients.solomachine.v1.ChannelStateData + * @memberof ibc.core.connection.v1.QueryConnectionClientStateResponse * @static - * @param {ibc.lightclients.solomachine.v1.ChannelStateData} message ChannelStateData + * @param {ibc.core.connection.v1.QueryConnectionClientStateResponse} message QueryConnectionClientStateResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ChannelStateData.toObject = function toObject(message, options) { + QueryConnectionClientStateResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { + object.identified_client_state = null; if (options.bytes === String) - object.path = ""; + object.proof = ""; else { - object.path = []; + object.proof = []; if (options.bytes !== Array) - object.path = $util.newBuffer(object.path); + object.proof = $util.newBuffer(object.proof); } - object.channel = null; + object.proof_height = null; } - if (message.path != null && message.hasOwnProperty("path")) - object.path = options.bytes === String ? $util.base64.encode(message.path, 0, message.path.length) : options.bytes === Array ? Array.prototype.slice.call(message.path) : message.path; - if (message.channel != null && message.hasOwnProperty("channel")) - object.channel = $root.ibc.core.channel.v1.Channel.toObject(message.channel, options); + if (message.identified_client_state != null && message.hasOwnProperty("identified_client_state")) + object.identified_client_state = $root.ibc.core.client.v1.IdentifiedClientState.toObject(message.identified_client_state, options); + if (message.proof != null && message.hasOwnProperty("proof")) + object.proof = options.bytes === String ? $util.base64.encode(message.proof, 0, message.proof.length) : options.bytes === Array ? Array.prototype.slice.call(message.proof) : message.proof; + if (message.proof_height != null && message.hasOwnProperty("proof_height")) + object.proof_height = $root.ibc.core.client.v1.Height.toObject(message.proof_height, options); return object; }; /** - * Converts this ChannelStateData to JSON. + * Converts this QueryConnectionClientStateResponse to JSON. * @function toJSON - * @memberof ibc.lightclients.solomachine.v1.ChannelStateData + * @memberof ibc.core.connection.v1.QueryConnectionClientStateResponse * @instance * @returns {Object.} JSON object */ - ChannelStateData.prototype.toJSON = function toJSON() { + QueryConnectionClientStateResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ChannelStateData; + return QueryConnectionClientStateResponse; })(); - v1.PacketCommitmentData = (function() { + v1.QueryConnectionConsensusStateRequest = (function() { /** - * Properties of a PacketCommitmentData. - * @memberof ibc.lightclients.solomachine.v1 - * @interface IPacketCommitmentData - * @property {Uint8Array|null} [path] PacketCommitmentData path - * @property {Uint8Array|null} [commitment] PacketCommitmentData commitment + * Properties of a QueryConnectionConsensusStateRequest. + * @memberof ibc.core.connection.v1 + * @interface IQueryConnectionConsensusStateRequest + * @property {string|null} [connection_id] QueryConnectionConsensusStateRequest connection_id + * @property {Long|null} [revision_number] QueryConnectionConsensusStateRequest revision_number + * @property {Long|null} [revision_height] QueryConnectionConsensusStateRequest revision_height */ /** - * Constructs a new PacketCommitmentData. - * @memberof ibc.lightclients.solomachine.v1 - * @classdesc Represents a PacketCommitmentData. - * @implements IPacketCommitmentData + * Constructs a new QueryConnectionConsensusStateRequest. + * @memberof ibc.core.connection.v1 + * @classdesc Represents a QueryConnectionConsensusStateRequest. + * @implements IQueryConnectionConsensusStateRequest * @constructor - * @param {ibc.lightclients.solomachine.v1.IPacketCommitmentData=} [properties] Properties to set + * @param {ibc.core.connection.v1.IQueryConnectionConsensusStateRequest=} [properties] Properties to set */ - function PacketCommitmentData(properties) { + function QueryConnectionConsensusStateRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -67480,76 +73655,89 @@ } /** - * PacketCommitmentData path. - * @member {Uint8Array} path - * @memberof ibc.lightclients.solomachine.v1.PacketCommitmentData + * QueryConnectionConsensusStateRequest connection_id. + * @member {string} connection_id + * @memberof ibc.core.connection.v1.QueryConnectionConsensusStateRequest * @instance */ - PacketCommitmentData.prototype.path = $util.newBuffer([]); + QueryConnectionConsensusStateRequest.prototype.connection_id = ""; /** - * PacketCommitmentData commitment. - * @member {Uint8Array} commitment - * @memberof ibc.lightclients.solomachine.v1.PacketCommitmentData + * QueryConnectionConsensusStateRequest revision_number. + * @member {Long} revision_number + * @memberof ibc.core.connection.v1.QueryConnectionConsensusStateRequest * @instance */ - PacketCommitmentData.prototype.commitment = $util.newBuffer([]); + QueryConnectionConsensusStateRequest.prototype.revision_number = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + + /** + * QueryConnectionConsensusStateRequest revision_height. + * @member {Long} revision_height + * @memberof ibc.core.connection.v1.QueryConnectionConsensusStateRequest + * @instance + */ + QueryConnectionConsensusStateRequest.prototype.revision_height = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** - * Encodes the specified PacketCommitmentData message. Does not implicitly {@link ibc.lightclients.solomachine.v1.PacketCommitmentData.verify|verify} messages. + * Encodes the specified QueryConnectionConsensusStateRequest message. Does not implicitly {@link ibc.core.connection.v1.QueryConnectionConsensusStateRequest.verify|verify} messages. * @function encode - * @memberof ibc.lightclients.solomachine.v1.PacketCommitmentData + * @memberof ibc.core.connection.v1.QueryConnectionConsensusStateRequest * @static - * @param {ibc.lightclients.solomachine.v1.IPacketCommitmentData} message PacketCommitmentData message or plain object to encode + * @param {ibc.core.connection.v1.IQueryConnectionConsensusStateRequest} message QueryConnectionConsensusStateRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PacketCommitmentData.encode = function encode(message, writer) { + QueryConnectionConsensusStateRequest.encode = function encode(message, writer) { if (!writer) - writer = $Writer.create(); - if (message.path != null && Object.hasOwnProperty.call(message, "path")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.path); - if (message.commitment != null && Object.hasOwnProperty.call(message, "commitment")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.commitment); + writer = $Writer.create(); + if (message.connection_id != null && Object.hasOwnProperty.call(message, "connection_id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.connection_id); + if (message.revision_number != null && Object.hasOwnProperty.call(message, "revision_number")) + writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.revision_number); + if (message.revision_height != null && Object.hasOwnProperty.call(message, "revision_height")) + writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.revision_height); return writer; }; /** - * Encodes the specified PacketCommitmentData message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v1.PacketCommitmentData.verify|verify} messages. + * Encodes the specified QueryConnectionConsensusStateRequest message, length delimited. Does not implicitly {@link ibc.core.connection.v1.QueryConnectionConsensusStateRequest.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.lightclients.solomachine.v1.PacketCommitmentData + * @memberof ibc.core.connection.v1.QueryConnectionConsensusStateRequest * @static - * @param {ibc.lightclients.solomachine.v1.IPacketCommitmentData} message PacketCommitmentData message or plain object to encode + * @param {ibc.core.connection.v1.IQueryConnectionConsensusStateRequest} message QueryConnectionConsensusStateRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PacketCommitmentData.encodeDelimited = function encodeDelimited(message, writer) { + QueryConnectionConsensusStateRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PacketCommitmentData message from the specified reader or buffer. + * Decodes a QueryConnectionConsensusStateRequest message from the specified reader or buffer. * @function decode - * @memberof ibc.lightclients.solomachine.v1.PacketCommitmentData + * @memberof ibc.core.connection.v1.QueryConnectionConsensusStateRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.lightclients.solomachine.v1.PacketCommitmentData} PacketCommitmentData + * @returns {ibc.core.connection.v1.QueryConnectionConsensusStateRequest} QueryConnectionConsensusStateRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PacketCommitmentData.decode = function decode(reader, length) { + QueryConnectionConsensusStateRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.solomachine.v1.PacketCommitmentData(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.connection.v1.QueryConnectionConsensusStateRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.path = reader.bytes(); + message.connection_id = reader.string(); break; case 2: - message.commitment = reader.bytes(); + message.revision_number = reader.uint64(); + break; + case 3: + message.revision_height = reader.uint64(); break; default: reader.skipType(tag & 7); @@ -67560,135 +73748,155 @@ }; /** - * Decodes a PacketCommitmentData message from the specified reader or buffer, length delimited. + * Decodes a QueryConnectionConsensusStateRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.lightclients.solomachine.v1.PacketCommitmentData + * @memberof ibc.core.connection.v1.QueryConnectionConsensusStateRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.lightclients.solomachine.v1.PacketCommitmentData} PacketCommitmentData + * @returns {ibc.core.connection.v1.QueryConnectionConsensusStateRequest} QueryConnectionConsensusStateRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PacketCommitmentData.decodeDelimited = function decodeDelimited(reader) { + QueryConnectionConsensusStateRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PacketCommitmentData message. + * Verifies a QueryConnectionConsensusStateRequest message. * @function verify - * @memberof ibc.lightclients.solomachine.v1.PacketCommitmentData + * @memberof ibc.core.connection.v1.QueryConnectionConsensusStateRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PacketCommitmentData.verify = function verify(message) { + QueryConnectionConsensusStateRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.path != null && message.hasOwnProperty("path")) - if (!(message.path && typeof message.path.length === "number" || $util.isString(message.path))) - return "path: buffer expected"; - if (message.commitment != null && message.hasOwnProperty("commitment")) - if (!(message.commitment && typeof message.commitment.length === "number" || $util.isString(message.commitment))) - return "commitment: buffer expected"; + if (message.connection_id != null && message.hasOwnProperty("connection_id")) + if (!$util.isString(message.connection_id)) + return "connection_id: string expected"; + if (message.revision_number != null && message.hasOwnProperty("revision_number")) + if (!$util.isInteger(message.revision_number) && !(message.revision_number && $util.isInteger(message.revision_number.low) && $util.isInteger(message.revision_number.high))) + return "revision_number: integer|Long expected"; + if (message.revision_height != null && message.hasOwnProperty("revision_height")) + if (!$util.isInteger(message.revision_height) && !(message.revision_height && $util.isInteger(message.revision_height.low) && $util.isInteger(message.revision_height.high))) + return "revision_height: integer|Long expected"; return null; }; /** - * Creates a PacketCommitmentData message from a plain object. Also converts values to their respective internal types. + * Creates a QueryConnectionConsensusStateRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.lightclients.solomachine.v1.PacketCommitmentData + * @memberof ibc.core.connection.v1.QueryConnectionConsensusStateRequest * @static * @param {Object.} object Plain object - * @returns {ibc.lightclients.solomachine.v1.PacketCommitmentData} PacketCommitmentData + * @returns {ibc.core.connection.v1.QueryConnectionConsensusStateRequest} QueryConnectionConsensusStateRequest */ - PacketCommitmentData.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.lightclients.solomachine.v1.PacketCommitmentData) + QueryConnectionConsensusStateRequest.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.connection.v1.QueryConnectionConsensusStateRequest) return object; - var message = new $root.ibc.lightclients.solomachine.v1.PacketCommitmentData(); - if (object.path != null) - if (typeof object.path === "string") - $util.base64.decode(object.path, message.path = $util.newBuffer($util.base64.length(object.path)), 0); - else if (object.path.length) - message.path = object.path; - if (object.commitment != null) - if (typeof object.commitment === "string") - $util.base64.decode(object.commitment, message.commitment = $util.newBuffer($util.base64.length(object.commitment)), 0); - else if (object.commitment.length) - message.commitment = object.commitment; + var message = new $root.ibc.core.connection.v1.QueryConnectionConsensusStateRequest(); + if (object.connection_id != null) + message.connection_id = String(object.connection_id); + if (object.revision_number != null) + if ($util.Long) + (message.revision_number = $util.Long.fromValue(object.revision_number)).unsigned = true; + else if (typeof object.revision_number === "string") + message.revision_number = parseInt(object.revision_number, 10); + else if (typeof object.revision_number === "number") + message.revision_number = object.revision_number; + else if (typeof object.revision_number === "object") + message.revision_number = new $util.LongBits(object.revision_number.low >>> 0, object.revision_number.high >>> 0).toNumber(true); + if (object.revision_height != null) + if ($util.Long) + (message.revision_height = $util.Long.fromValue(object.revision_height)).unsigned = true; + else if (typeof object.revision_height === "string") + message.revision_height = parseInt(object.revision_height, 10); + else if (typeof object.revision_height === "number") + message.revision_height = object.revision_height; + else if (typeof object.revision_height === "object") + message.revision_height = new $util.LongBits(object.revision_height.low >>> 0, object.revision_height.high >>> 0).toNumber(true); return message; }; /** - * Creates a plain object from a PacketCommitmentData message. Also converts values to other types if specified. + * Creates a plain object from a QueryConnectionConsensusStateRequest message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.lightclients.solomachine.v1.PacketCommitmentData + * @memberof ibc.core.connection.v1.QueryConnectionConsensusStateRequest * @static - * @param {ibc.lightclients.solomachine.v1.PacketCommitmentData} message PacketCommitmentData + * @param {ibc.core.connection.v1.QueryConnectionConsensusStateRequest} message QueryConnectionConsensusStateRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PacketCommitmentData.toObject = function toObject(message, options) { + QueryConnectionConsensusStateRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - if (options.bytes === String) - object.path = ""; - else { - object.path = []; - if (options.bytes !== Array) - object.path = $util.newBuffer(object.path); - } - if (options.bytes === String) - object.commitment = ""; - else { - object.commitment = []; - if (options.bytes !== Array) - object.commitment = $util.newBuffer(object.commitment); - } + object.connection_id = ""; + if ($util.Long) { + var long = new $util.Long(0, 0, true); + object.revision_number = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.revision_number = options.longs === String ? "0" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, true); + object.revision_height = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.revision_height = options.longs === String ? "0" : 0; } - if (message.path != null && message.hasOwnProperty("path")) - object.path = options.bytes === String ? $util.base64.encode(message.path, 0, message.path.length) : options.bytes === Array ? Array.prototype.slice.call(message.path) : message.path; - if (message.commitment != null && message.hasOwnProperty("commitment")) - object.commitment = options.bytes === String ? $util.base64.encode(message.commitment, 0, message.commitment.length) : options.bytes === Array ? Array.prototype.slice.call(message.commitment) : message.commitment; + if (message.connection_id != null && message.hasOwnProperty("connection_id")) + object.connection_id = message.connection_id; + if (message.revision_number != null && message.hasOwnProperty("revision_number")) + if (typeof message.revision_number === "number") + object.revision_number = options.longs === String ? String(message.revision_number) : message.revision_number; + else + object.revision_number = options.longs === String ? $util.Long.prototype.toString.call(message.revision_number) : options.longs === Number ? new $util.LongBits(message.revision_number.low >>> 0, message.revision_number.high >>> 0).toNumber(true) : message.revision_number; + if (message.revision_height != null && message.hasOwnProperty("revision_height")) + if (typeof message.revision_height === "number") + object.revision_height = options.longs === String ? String(message.revision_height) : message.revision_height; + else + object.revision_height = options.longs === String ? $util.Long.prototype.toString.call(message.revision_height) : options.longs === Number ? new $util.LongBits(message.revision_height.low >>> 0, message.revision_height.high >>> 0).toNumber(true) : message.revision_height; return object; }; /** - * Converts this PacketCommitmentData to JSON. + * Converts this QueryConnectionConsensusStateRequest to JSON. * @function toJSON - * @memberof ibc.lightclients.solomachine.v1.PacketCommitmentData + * @memberof ibc.core.connection.v1.QueryConnectionConsensusStateRequest * @instance * @returns {Object.} JSON object */ - PacketCommitmentData.prototype.toJSON = function toJSON() { + QueryConnectionConsensusStateRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return PacketCommitmentData; + return QueryConnectionConsensusStateRequest; })(); - v1.PacketAcknowledgementData = (function() { + v1.QueryConnectionConsensusStateResponse = (function() { /** - * Properties of a PacketAcknowledgementData. - * @memberof ibc.lightclients.solomachine.v1 - * @interface IPacketAcknowledgementData - * @property {Uint8Array|null} [path] PacketAcknowledgementData path - * @property {Uint8Array|null} [acknowledgement] PacketAcknowledgementData acknowledgement + * Properties of a QueryConnectionConsensusStateResponse. + * @memberof ibc.core.connection.v1 + * @interface IQueryConnectionConsensusStateResponse + * @property {google.protobuf.IAny|null} [consensus_state] QueryConnectionConsensusStateResponse consensus_state + * @property {string|null} [client_id] QueryConnectionConsensusStateResponse client_id + * @property {Uint8Array|null} [proof] QueryConnectionConsensusStateResponse proof + * @property {ibc.core.client.v1.IHeight|null} [proof_height] QueryConnectionConsensusStateResponse proof_height */ /** - * Constructs a new PacketAcknowledgementData. - * @memberof ibc.lightclients.solomachine.v1 - * @classdesc Represents a PacketAcknowledgementData. - * @implements IPacketAcknowledgementData + * Constructs a new QueryConnectionConsensusStateResponse. + * @memberof ibc.core.connection.v1 + * @classdesc Represents a QueryConnectionConsensusStateResponse. + * @implements IQueryConnectionConsensusStateResponse * @constructor - * @param {ibc.lightclients.solomachine.v1.IPacketAcknowledgementData=} [properties] Properties to set + * @param {ibc.core.connection.v1.IQueryConnectionConsensusStateResponse=} [properties] Properties to set */ - function PacketAcknowledgementData(properties) { + function QueryConnectionConsensusStateResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -67696,76 +73904,102 @@ } /** - * PacketAcknowledgementData path. - * @member {Uint8Array} path - * @memberof ibc.lightclients.solomachine.v1.PacketAcknowledgementData + * QueryConnectionConsensusStateResponse consensus_state. + * @member {google.protobuf.IAny|null|undefined} consensus_state + * @memberof ibc.core.connection.v1.QueryConnectionConsensusStateResponse * @instance */ - PacketAcknowledgementData.prototype.path = $util.newBuffer([]); + QueryConnectionConsensusStateResponse.prototype.consensus_state = null; /** - * PacketAcknowledgementData acknowledgement. - * @member {Uint8Array} acknowledgement - * @memberof ibc.lightclients.solomachine.v1.PacketAcknowledgementData + * QueryConnectionConsensusStateResponse client_id. + * @member {string} client_id + * @memberof ibc.core.connection.v1.QueryConnectionConsensusStateResponse * @instance */ - PacketAcknowledgementData.prototype.acknowledgement = $util.newBuffer([]); + QueryConnectionConsensusStateResponse.prototype.client_id = ""; + + /** + * QueryConnectionConsensusStateResponse proof. + * @member {Uint8Array} proof + * @memberof ibc.core.connection.v1.QueryConnectionConsensusStateResponse + * @instance + */ + QueryConnectionConsensusStateResponse.prototype.proof = $util.newBuffer([]); + + /** + * QueryConnectionConsensusStateResponse proof_height. + * @member {ibc.core.client.v1.IHeight|null|undefined} proof_height + * @memberof ibc.core.connection.v1.QueryConnectionConsensusStateResponse + * @instance + */ + QueryConnectionConsensusStateResponse.prototype.proof_height = null; /** - * Encodes the specified PacketAcknowledgementData message. Does not implicitly {@link ibc.lightclients.solomachine.v1.PacketAcknowledgementData.verify|verify} messages. + * Encodes the specified QueryConnectionConsensusStateResponse message. Does not implicitly {@link ibc.core.connection.v1.QueryConnectionConsensusStateResponse.verify|verify} messages. * @function encode - * @memberof ibc.lightclients.solomachine.v1.PacketAcknowledgementData + * @memberof ibc.core.connection.v1.QueryConnectionConsensusStateResponse * @static - * @param {ibc.lightclients.solomachine.v1.IPacketAcknowledgementData} message PacketAcknowledgementData message or plain object to encode + * @param {ibc.core.connection.v1.IQueryConnectionConsensusStateResponse} message QueryConnectionConsensusStateResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PacketAcknowledgementData.encode = function encode(message, writer) { + QueryConnectionConsensusStateResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.path != null && Object.hasOwnProperty.call(message, "path")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.path); - if (message.acknowledgement != null && Object.hasOwnProperty.call(message, "acknowledgement")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.acknowledgement); + if (message.consensus_state != null && Object.hasOwnProperty.call(message, "consensus_state")) + $root.google.protobuf.Any.encode(message.consensus_state, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.client_id != null && Object.hasOwnProperty.call(message, "client_id")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.client_id); + if (message.proof != null && Object.hasOwnProperty.call(message, "proof")) + writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.proof); + if (message.proof_height != null && Object.hasOwnProperty.call(message, "proof_height")) + $root.ibc.core.client.v1.Height.encode(message.proof_height, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; /** - * Encodes the specified PacketAcknowledgementData message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v1.PacketAcknowledgementData.verify|verify} messages. + * Encodes the specified QueryConnectionConsensusStateResponse message, length delimited. Does not implicitly {@link ibc.core.connection.v1.QueryConnectionConsensusStateResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.lightclients.solomachine.v1.PacketAcknowledgementData + * @memberof ibc.core.connection.v1.QueryConnectionConsensusStateResponse * @static - * @param {ibc.lightclients.solomachine.v1.IPacketAcknowledgementData} message PacketAcknowledgementData message or plain object to encode + * @param {ibc.core.connection.v1.IQueryConnectionConsensusStateResponse} message QueryConnectionConsensusStateResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PacketAcknowledgementData.encodeDelimited = function encodeDelimited(message, writer) { + QueryConnectionConsensusStateResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PacketAcknowledgementData message from the specified reader or buffer. + * Decodes a QueryConnectionConsensusStateResponse message from the specified reader or buffer. * @function decode - * @memberof ibc.lightclients.solomachine.v1.PacketAcknowledgementData + * @memberof ibc.core.connection.v1.QueryConnectionConsensusStateResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.lightclients.solomachine.v1.PacketAcknowledgementData} PacketAcknowledgementData + * @returns {ibc.core.connection.v1.QueryConnectionConsensusStateResponse} QueryConnectionConsensusStateResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PacketAcknowledgementData.decode = function decode(reader, length) { + QueryConnectionConsensusStateResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.solomachine.v1.PacketAcknowledgementData(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.connection.v1.QueryConnectionConsensusStateResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.path = reader.bytes(); + message.consensus_state = $root.google.protobuf.Any.decode(reader, reader.uint32()); break; case 2: - message.acknowledgement = reader.bytes(); + message.client_id = reader.string(); + break; + case 3: + message.proof = reader.bytes(); + break; + case 4: + message.proof_height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -67776,134 +74010,150 @@ }; /** - * Decodes a PacketAcknowledgementData message from the specified reader or buffer, length delimited. + * Decodes a QueryConnectionConsensusStateResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.lightclients.solomachine.v1.PacketAcknowledgementData + * @memberof ibc.core.connection.v1.QueryConnectionConsensusStateResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.lightclients.solomachine.v1.PacketAcknowledgementData} PacketAcknowledgementData + * @returns {ibc.core.connection.v1.QueryConnectionConsensusStateResponse} QueryConnectionConsensusStateResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PacketAcknowledgementData.decodeDelimited = function decodeDelimited(reader) { + QueryConnectionConsensusStateResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PacketAcknowledgementData message. + * Verifies a QueryConnectionConsensusStateResponse message. * @function verify - * @memberof ibc.lightclients.solomachine.v1.PacketAcknowledgementData + * @memberof ibc.core.connection.v1.QueryConnectionConsensusStateResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PacketAcknowledgementData.verify = function verify(message) { + QueryConnectionConsensusStateResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.path != null && message.hasOwnProperty("path")) - if (!(message.path && typeof message.path.length === "number" || $util.isString(message.path))) - return "path: buffer expected"; - if (message.acknowledgement != null && message.hasOwnProperty("acknowledgement")) - if (!(message.acknowledgement && typeof message.acknowledgement.length === "number" || $util.isString(message.acknowledgement))) - return "acknowledgement: buffer expected"; + if (message.consensus_state != null && message.hasOwnProperty("consensus_state")) { + var error = $root.google.protobuf.Any.verify(message.consensus_state); + if (error) + return "consensus_state." + error; + } + if (message.client_id != null && message.hasOwnProperty("client_id")) + if (!$util.isString(message.client_id)) + return "client_id: string expected"; + if (message.proof != null && message.hasOwnProperty("proof")) + if (!(message.proof && typeof message.proof.length === "number" || $util.isString(message.proof))) + return "proof: buffer expected"; + if (message.proof_height != null && message.hasOwnProperty("proof_height")) { + var error = $root.ibc.core.client.v1.Height.verify(message.proof_height); + if (error) + return "proof_height." + error; + } return null; }; /** - * Creates a PacketAcknowledgementData message from a plain object. Also converts values to their respective internal types. + * Creates a QueryConnectionConsensusStateResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.lightclients.solomachine.v1.PacketAcknowledgementData + * @memberof ibc.core.connection.v1.QueryConnectionConsensusStateResponse * @static * @param {Object.} object Plain object - * @returns {ibc.lightclients.solomachine.v1.PacketAcknowledgementData} PacketAcknowledgementData + * @returns {ibc.core.connection.v1.QueryConnectionConsensusStateResponse} QueryConnectionConsensusStateResponse */ - PacketAcknowledgementData.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.lightclients.solomachine.v1.PacketAcknowledgementData) + QueryConnectionConsensusStateResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.connection.v1.QueryConnectionConsensusStateResponse) return object; - var message = new $root.ibc.lightclients.solomachine.v1.PacketAcknowledgementData(); - if (object.path != null) - if (typeof object.path === "string") - $util.base64.decode(object.path, message.path = $util.newBuffer($util.base64.length(object.path)), 0); - else if (object.path.length) - message.path = object.path; - if (object.acknowledgement != null) - if (typeof object.acknowledgement === "string") - $util.base64.decode(object.acknowledgement, message.acknowledgement = $util.newBuffer($util.base64.length(object.acknowledgement)), 0); - else if (object.acknowledgement.length) - message.acknowledgement = object.acknowledgement; + var message = new $root.ibc.core.connection.v1.QueryConnectionConsensusStateResponse(); + if (object.consensus_state != null) { + if (typeof object.consensus_state !== "object") + throw TypeError(".ibc.core.connection.v1.QueryConnectionConsensusStateResponse.consensus_state: object expected"); + message.consensus_state = $root.google.protobuf.Any.fromObject(object.consensus_state); + } + if (object.client_id != null) + message.client_id = String(object.client_id); + if (object.proof != null) + if (typeof object.proof === "string") + $util.base64.decode(object.proof, message.proof = $util.newBuffer($util.base64.length(object.proof)), 0); + else if (object.proof.length) + message.proof = object.proof; + if (object.proof_height != null) { + if (typeof object.proof_height !== "object") + throw TypeError(".ibc.core.connection.v1.QueryConnectionConsensusStateResponse.proof_height: object expected"); + message.proof_height = $root.ibc.core.client.v1.Height.fromObject(object.proof_height); + } return message; }; /** - * Creates a plain object from a PacketAcknowledgementData message. Also converts values to other types if specified. + * Creates a plain object from a QueryConnectionConsensusStateResponse message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.lightclients.solomachine.v1.PacketAcknowledgementData + * @memberof ibc.core.connection.v1.QueryConnectionConsensusStateResponse * @static - * @param {ibc.lightclients.solomachine.v1.PacketAcknowledgementData} message PacketAcknowledgementData + * @param {ibc.core.connection.v1.QueryConnectionConsensusStateResponse} message QueryConnectionConsensusStateResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PacketAcknowledgementData.toObject = function toObject(message, options) { + QueryConnectionConsensusStateResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { + object.consensus_state = null; + object.client_id = ""; if (options.bytes === String) - object.path = ""; - else { - object.path = []; - if (options.bytes !== Array) - object.path = $util.newBuffer(object.path); - } - if (options.bytes === String) - object.acknowledgement = ""; + object.proof = ""; else { - object.acknowledgement = []; + object.proof = []; if (options.bytes !== Array) - object.acknowledgement = $util.newBuffer(object.acknowledgement); + object.proof = $util.newBuffer(object.proof); } + object.proof_height = null; } - if (message.path != null && message.hasOwnProperty("path")) - object.path = options.bytes === String ? $util.base64.encode(message.path, 0, message.path.length) : options.bytes === Array ? Array.prototype.slice.call(message.path) : message.path; - if (message.acknowledgement != null && message.hasOwnProperty("acknowledgement")) - object.acknowledgement = options.bytes === String ? $util.base64.encode(message.acknowledgement, 0, message.acknowledgement.length) : options.bytes === Array ? Array.prototype.slice.call(message.acknowledgement) : message.acknowledgement; + if (message.consensus_state != null && message.hasOwnProperty("consensus_state")) + object.consensus_state = $root.google.protobuf.Any.toObject(message.consensus_state, options); + if (message.client_id != null && message.hasOwnProperty("client_id")) + object.client_id = message.client_id; + if (message.proof != null && message.hasOwnProperty("proof")) + object.proof = options.bytes === String ? $util.base64.encode(message.proof, 0, message.proof.length) : options.bytes === Array ? Array.prototype.slice.call(message.proof) : message.proof; + if (message.proof_height != null && message.hasOwnProperty("proof_height")) + object.proof_height = $root.ibc.core.client.v1.Height.toObject(message.proof_height, options); return object; }; /** - * Converts this PacketAcknowledgementData to JSON. + * Converts this QueryConnectionConsensusStateResponse to JSON. * @function toJSON - * @memberof ibc.lightclients.solomachine.v1.PacketAcknowledgementData + * @memberof ibc.core.connection.v1.QueryConnectionConsensusStateResponse * @instance * @returns {Object.} JSON object */ - PacketAcknowledgementData.prototype.toJSON = function toJSON() { + QueryConnectionConsensusStateResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return PacketAcknowledgementData; + return QueryConnectionConsensusStateResponse; })(); - v1.PacketReceiptAbsenceData = (function() { + v1.QueryConnectionParamsRequest = (function() { /** - * Properties of a PacketReceiptAbsenceData. - * @memberof ibc.lightclients.solomachine.v1 - * @interface IPacketReceiptAbsenceData - * @property {Uint8Array|null} [path] PacketReceiptAbsenceData path + * Properties of a QueryConnectionParamsRequest. + * @memberof ibc.core.connection.v1 + * @interface IQueryConnectionParamsRequest */ /** - * Constructs a new PacketReceiptAbsenceData. - * @memberof ibc.lightclients.solomachine.v1 - * @classdesc Represents a PacketReceiptAbsenceData. - * @implements IPacketReceiptAbsenceData + * Constructs a new QueryConnectionParamsRequest. + * @memberof ibc.core.connection.v1 + * @classdesc Represents a QueryConnectionParamsRequest. + * @implements IQueryConnectionParamsRequest * @constructor - * @param {ibc.lightclients.solomachine.v1.IPacketReceiptAbsenceData=} [properties] Properties to set + * @param {ibc.core.connection.v1.IQueryConnectionParamsRequest=} [properties] Properties to set */ - function PacketReceiptAbsenceData(properties) { + function QueryConnectionParamsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -67911,64 +74161,51 @@ } /** - * PacketReceiptAbsenceData path. - * @member {Uint8Array} path - * @memberof ibc.lightclients.solomachine.v1.PacketReceiptAbsenceData - * @instance - */ - PacketReceiptAbsenceData.prototype.path = $util.newBuffer([]); - - /** - * Encodes the specified PacketReceiptAbsenceData message. Does not implicitly {@link ibc.lightclients.solomachine.v1.PacketReceiptAbsenceData.verify|verify} messages. + * Encodes the specified QueryConnectionParamsRequest message. Does not implicitly {@link ibc.core.connection.v1.QueryConnectionParamsRequest.verify|verify} messages. * @function encode - * @memberof ibc.lightclients.solomachine.v1.PacketReceiptAbsenceData + * @memberof ibc.core.connection.v1.QueryConnectionParamsRequest * @static - * @param {ibc.lightclients.solomachine.v1.IPacketReceiptAbsenceData} message PacketReceiptAbsenceData message or plain object to encode + * @param {ibc.core.connection.v1.IQueryConnectionParamsRequest} message QueryConnectionParamsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PacketReceiptAbsenceData.encode = function encode(message, writer) { + QueryConnectionParamsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.path != null && Object.hasOwnProperty.call(message, "path")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.path); return writer; }; /** - * Encodes the specified PacketReceiptAbsenceData message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v1.PacketReceiptAbsenceData.verify|verify} messages. + * Encodes the specified QueryConnectionParamsRequest message, length delimited. Does not implicitly {@link ibc.core.connection.v1.QueryConnectionParamsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.lightclients.solomachine.v1.PacketReceiptAbsenceData + * @memberof ibc.core.connection.v1.QueryConnectionParamsRequest * @static - * @param {ibc.lightclients.solomachine.v1.IPacketReceiptAbsenceData} message PacketReceiptAbsenceData message or plain object to encode + * @param {ibc.core.connection.v1.IQueryConnectionParamsRequest} message QueryConnectionParamsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PacketReceiptAbsenceData.encodeDelimited = function encodeDelimited(message, writer) { + QueryConnectionParamsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PacketReceiptAbsenceData message from the specified reader or buffer. + * Decodes a QueryConnectionParamsRequest message from the specified reader or buffer. * @function decode - * @memberof ibc.lightclients.solomachine.v1.PacketReceiptAbsenceData + * @memberof ibc.core.connection.v1.QueryConnectionParamsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.lightclients.solomachine.v1.PacketReceiptAbsenceData} PacketReceiptAbsenceData + * @returns {ibc.core.connection.v1.QueryConnectionParamsRequest} QueryConnectionParamsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PacketReceiptAbsenceData.decode = function decode(reader, length) { + QueryConnectionParamsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.solomachine.v1.PacketReceiptAbsenceData(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.connection.v1.QueryConnectionParamsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.path = reader.bytes(); - break; default: reader.skipType(tag & 7); break; @@ -67978,117 +74215,94 @@ }; /** - * Decodes a PacketReceiptAbsenceData message from the specified reader or buffer, length delimited. + * Decodes a QueryConnectionParamsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.lightclients.solomachine.v1.PacketReceiptAbsenceData + * @memberof ibc.core.connection.v1.QueryConnectionParamsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.lightclients.solomachine.v1.PacketReceiptAbsenceData} PacketReceiptAbsenceData + * @returns {ibc.core.connection.v1.QueryConnectionParamsRequest} QueryConnectionParamsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PacketReceiptAbsenceData.decodeDelimited = function decodeDelimited(reader) { + QueryConnectionParamsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PacketReceiptAbsenceData message. + * Verifies a QueryConnectionParamsRequest message. * @function verify - * @memberof ibc.lightclients.solomachine.v1.PacketReceiptAbsenceData + * @memberof ibc.core.connection.v1.QueryConnectionParamsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PacketReceiptAbsenceData.verify = function verify(message) { + QueryConnectionParamsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.path != null && message.hasOwnProperty("path")) - if (!(message.path && typeof message.path.length === "number" || $util.isString(message.path))) - return "path: buffer expected"; return null; }; /** - * Creates a PacketReceiptAbsenceData message from a plain object. Also converts values to their respective internal types. + * Creates a QueryConnectionParamsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.lightclients.solomachine.v1.PacketReceiptAbsenceData + * @memberof ibc.core.connection.v1.QueryConnectionParamsRequest * @static * @param {Object.} object Plain object - * @returns {ibc.lightclients.solomachine.v1.PacketReceiptAbsenceData} PacketReceiptAbsenceData + * @returns {ibc.core.connection.v1.QueryConnectionParamsRequest} QueryConnectionParamsRequest */ - PacketReceiptAbsenceData.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.lightclients.solomachine.v1.PacketReceiptAbsenceData) + QueryConnectionParamsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.connection.v1.QueryConnectionParamsRequest) return object; - var message = new $root.ibc.lightclients.solomachine.v1.PacketReceiptAbsenceData(); - if (object.path != null) - if (typeof object.path === "string") - $util.base64.decode(object.path, message.path = $util.newBuffer($util.base64.length(object.path)), 0); - else if (object.path.length) - message.path = object.path; - return message; + return new $root.ibc.core.connection.v1.QueryConnectionParamsRequest(); }; /** - * Creates a plain object from a PacketReceiptAbsenceData message. Also converts values to other types if specified. + * Creates a plain object from a QueryConnectionParamsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.lightclients.solomachine.v1.PacketReceiptAbsenceData + * @memberof ibc.core.connection.v1.QueryConnectionParamsRequest * @static - * @param {ibc.lightclients.solomachine.v1.PacketReceiptAbsenceData} message PacketReceiptAbsenceData + * @param {ibc.core.connection.v1.QueryConnectionParamsRequest} message QueryConnectionParamsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PacketReceiptAbsenceData.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - if (options.bytes === String) - object.path = ""; - else { - object.path = []; - if (options.bytes !== Array) - object.path = $util.newBuffer(object.path); - } - if (message.path != null && message.hasOwnProperty("path")) - object.path = options.bytes === String ? $util.base64.encode(message.path, 0, message.path.length) : options.bytes === Array ? Array.prototype.slice.call(message.path) : message.path; - return object; + QueryConnectionParamsRequest.toObject = function toObject() { + return {}; }; /** - * Converts this PacketReceiptAbsenceData to JSON. + * Converts this QueryConnectionParamsRequest to JSON. * @function toJSON - * @memberof ibc.lightclients.solomachine.v1.PacketReceiptAbsenceData + * @memberof ibc.core.connection.v1.QueryConnectionParamsRequest * @instance * @returns {Object.} JSON object */ - PacketReceiptAbsenceData.prototype.toJSON = function toJSON() { + QueryConnectionParamsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return PacketReceiptAbsenceData; + return QueryConnectionParamsRequest; })(); - v1.NextSequenceRecvData = (function() { + v1.QueryConnectionParamsResponse = (function() { /** - * Properties of a NextSequenceRecvData. - * @memberof ibc.lightclients.solomachine.v1 - * @interface INextSequenceRecvData - * @property {Uint8Array|null} [path] NextSequenceRecvData path - * @property {Long|null} [next_seq_recv] NextSequenceRecvData next_seq_recv + * Properties of a QueryConnectionParamsResponse. + * @memberof ibc.core.connection.v1 + * @interface IQueryConnectionParamsResponse + * @property {ibc.core.connection.v1.IParams|null} [params] QueryConnectionParamsResponse params */ /** - * Constructs a new NextSequenceRecvData. - * @memberof ibc.lightclients.solomachine.v1 - * @classdesc Represents a NextSequenceRecvData. - * @implements INextSequenceRecvData + * Constructs a new QueryConnectionParamsResponse. + * @memberof ibc.core.connection.v1 + * @classdesc Represents a QueryConnectionParamsResponse. + * @implements IQueryConnectionParamsResponse * @constructor - * @param {ibc.lightclients.solomachine.v1.INextSequenceRecvData=} [properties] Properties to set + * @param {ibc.core.connection.v1.IQueryConnectionParamsResponse=} [properties] Properties to set */ - function NextSequenceRecvData(properties) { + function QueryConnectionParamsResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -68096,76 +74310,63 @@ } /** - * NextSequenceRecvData path. - * @member {Uint8Array} path - * @memberof ibc.lightclients.solomachine.v1.NextSequenceRecvData - * @instance - */ - NextSequenceRecvData.prototype.path = $util.newBuffer([]); - - /** - * NextSequenceRecvData next_seq_recv. - * @member {Long} next_seq_recv - * @memberof ibc.lightclients.solomachine.v1.NextSequenceRecvData + * QueryConnectionParamsResponse params. + * @member {ibc.core.connection.v1.IParams|null|undefined} params + * @memberof ibc.core.connection.v1.QueryConnectionParamsResponse * @instance */ - NextSequenceRecvData.prototype.next_seq_recv = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + QueryConnectionParamsResponse.prototype.params = null; /** - * Encodes the specified NextSequenceRecvData message. Does not implicitly {@link ibc.lightclients.solomachine.v1.NextSequenceRecvData.verify|verify} messages. + * Encodes the specified QueryConnectionParamsResponse message. Does not implicitly {@link ibc.core.connection.v1.QueryConnectionParamsResponse.verify|verify} messages. * @function encode - * @memberof ibc.lightclients.solomachine.v1.NextSequenceRecvData + * @memberof ibc.core.connection.v1.QueryConnectionParamsResponse * @static - * @param {ibc.lightclients.solomachine.v1.INextSequenceRecvData} message NextSequenceRecvData message or plain object to encode + * @param {ibc.core.connection.v1.IQueryConnectionParamsResponse} message QueryConnectionParamsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NextSequenceRecvData.encode = function encode(message, writer) { + QueryConnectionParamsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.path != null && Object.hasOwnProperty.call(message, "path")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.path); - if (message.next_seq_recv != null && Object.hasOwnProperty.call(message, "next_seq_recv")) - writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.next_seq_recv); + if (message.params != null && Object.hasOwnProperty.call(message, "params")) + $root.ibc.core.connection.v1.Params.encode(message.params, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified NextSequenceRecvData message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v1.NextSequenceRecvData.verify|verify} messages. + * Encodes the specified QueryConnectionParamsResponse message, length delimited. Does not implicitly {@link ibc.core.connection.v1.QueryConnectionParamsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.lightclients.solomachine.v1.NextSequenceRecvData + * @memberof ibc.core.connection.v1.QueryConnectionParamsResponse * @static - * @param {ibc.lightclients.solomachine.v1.INextSequenceRecvData} message NextSequenceRecvData message or plain object to encode + * @param {ibc.core.connection.v1.IQueryConnectionParamsResponse} message QueryConnectionParamsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NextSequenceRecvData.encodeDelimited = function encodeDelimited(message, writer) { + QueryConnectionParamsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a NextSequenceRecvData message from the specified reader or buffer. + * Decodes a QueryConnectionParamsResponse message from the specified reader or buffer. * @function decode - * @memberof ibc.lightclients.solomachine.v1.NextSequenceRecvData + * @memberof ibc.core.connection.v1.QueryConnectionParamsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.lightclients.solomachine.v1.NextSequenceRecvData} NextSequenceRecvData + * @returns {ibc.core.connection.v1.QueryConnectionParamsResponse} QueryConnectionParamsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - NextSequenceRecvData.decode = function decode(reader, length) { + QueryConnectionParamsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.solomachine.v1.NextSequenceRecvData(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.connection.v1.QueryConnectionParamsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.path = reader.bytes(); - break; - case 2: - message.next_seq_recv = reader.uint64(); + message.params = $root.ibc.core.connection.v1.Params.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -68176,154 +74377,117 @@ }; /** - * Decodes a NextSequenceRecvData message from the specified reader or buffer, length delimited. + * Decodes a QueryConnectionParamsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.lightclients.solomachine.v1.NextSequenceRecvData + * @memberof ibc.core.connection.v1.QueryConnectionParamsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.lightclients.solomachine.v1.NextSequenceRecvData} NextSequenceRecvData + * @returns {ibc.core.connection.v1.QueryConnectionParamsResponse} QueryConnectionParamsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - NextSequenceRecvData.decodeDelimited = function decodeDelimited(reader) { + QueryConnectionParamsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a NextSequenceRecvData message. + * Verifies a QueryConnectionParamsResponse message. * @function verify - * @memberof ibc.lightclients.solomachine.v1.NextSequenceRecvData + * @memberof ibc.core.connection.v1.QueryConnectionParamsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - NextSequenceRecvData.verify = function verify(message) { + QueryConnectionParamsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.path != null && message.hasOwnProperty("path")) - if (!(message.path && typeof message.path.length === "number" || $util.isString(message.path))) - return "path: buffer expected"; - if (message.next_seq_recv != null && message.hasOwnProperty("next_seq_recv")) - if (!$util.isInteger(message.next_seq_recv) && !(message.next_seq_recv && $util.isInteger(message.next_seq_recv.low) && $util.isInteger(message.next_seq_recv.high))) - return "next_seq_recv: integer|Long expected"; + if (message.params != null && message.hasOwnProperty("params")) { + var error = $root.ibc.core.connection.v1.Params.verify(message.params); + if (error) + return "params." + error; + } return null; }; /** - * Creates a NextSequenceRecvData message from a plain object. Also converts values to their respective internal types. + * Creates a QueryConnectionParamsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.lightclients.solomachine.v1.NextSequenceRecvData + * @memberof ibc.core.connection.v1.QueryConnectionParamsResponse * @static * @param {Object.} object Plain object - * @returns {ibc.lightclients.solomachine.v1.NextSequenceRecvData} NextSequenceRecvData + * @returns {ibc.core.connection.v1.QueryConnectionParamsResponse} QueryConnectionParamsResponse */ - NextSequenceRecvData.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.lightclients.solomachine.v1.NextSequenceRecvData) + QueryConnectionParamsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.connection.v1.QueryConnectionParamsResponse) return object; - var message = new $root.ibc.lightclients.solomachine.v1.NextSequenceRecvData(); - if (object.path != null) - if (typeof object.path === "string") - $util.base64.decode(object.path, message.path = $util.newBuffer($util.base64.length(object.path)), 0); - else if (object.path.length) - message.path = object.path; - if (object.next_seq_recv != null) - if ($util.Long) - (message.next_seq_recv = $util.Long.fromValue(object.next_seq_recv)).unsigned = true; - else if (typeof object.next_seq_recv === "string") - message.next_seq_recv = parseInt(object.next_seq_recv, 10); - else if (typeof object.next_seq_recv === "number") - message.next_seq_recv = object.next_seq_recv; - else if (typeof object.next_seq_recv === "object") - message.next_seq_recv = new $util.LongBits(object.next_seq_recv.low >>> 0, object.next_seq_recv.high >>> 0).toNumber(true); + var message = new $root.ibc.core.connection.v1.QueryConnectionParamsResponse(); + if (object.params != null) { + if (typeof object.params !== "object") + throw TypeError(".ibc.core.connection.v1.QueryConnectionParamsResponse.params: object expected"); + message.params = $root.ibc.core.connection.v1.Params.fromObject(object.params); + } return message; }; /** - * Creates a plain object from a NextSequenceRecvData message. Also converts values to other types if specified. + * Creates a plain object from a QueryConnectionParamsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.lightclients.solomachine.v1.NextSequenceRecvData + * @memberof ibc.core.connection.v1.QueryConnectionParamsResponse * @static - * @param {ibc.lightclients.solomachine.v1.NextSequenceRecvData} message NextSequenceRecvData + * @param {ibc.core.connection.v1.QueryConnectionParamsResponse} message QueryConnectionParamsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - NextSequenceRecvData.toObject = function toObject(message, options) { + QueryConnectionParamsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - if (options.bytes === String) - object.path = ""; - else { - object.path = []; - if (options.bytes !== Array) - object.path = $util.newBuffer(object.path); - } - if ($util.Long) { - var long = new $util.Long(0, 0, true); - object.next_seq_recv = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.next_seq_recv = options.longs === String ? "0" : 0; - } - if (message.path != null && message.hasOwnProperty("path")) - object.path = options.bytes === String ? $util.base64.encode(message.path, 0, message.path.length) : options.bytes === Array ? Array.prototype.slice.call(message.path) : message.path; - if (message.next_seq_recv != null && message.hasOwnProperty("next_seq_recv")) - if (typeof message.next_seq_recv === "number") - object.next_seq_recv = options.longs === String ? String(message.next_seq_recv) : message.next_seq_recv; - else - object.next_seq_recv = options.longs === String ? $util.Long.prototype.toString.call(message.next_seq_recv) : options.longs === Number ? new $util.LongBits(message.next_seq_recv.low >>> 0, message.next_seq_recv.high >>> 0).toNumber(true) : message.next_seq_recv; + if (options.defaults) + object.params = null; + if (message.params != null && message.hasOwnProperty("params")) + object.params = $root.ibc.core.connection.v1.Params.toObject(message.params, options); return object; }; /** - * Converts this NextSequenceRecvData to JSON. + * Converts this QueryConnectionParamsResponse to JSON. * @function toJSON - * @memberof ibc.lightclients.solomachine.v1.NextSequenceRecvData + * @memberof ibc.core.connection.v1.QueryConnectionParamsResponse * @instance * @returns {Object.} JSON object */ - NextSequenceRecvData.prototype.toJSON = function toJSON() { + QueryConnectionParamsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return NextSequenceRecvData; - })(); - - return v1; - })(); - - solomachine.v2 = (function() { + }; - /** - * Namespace v2. - * @memberof ibc.lightclients.solomachine - * @namespace - */ - var v2 = {}; + return QueryConnectionParamsResponse; + })(); - v2.ClientState = (function() { + v1.GenesisState = (function() { /** - * Properties of a ClientState. - * @memberof ibc.lightclients.solomachine.v2 - * @interface IClientState - * @property {Long|null} [sequence] ClientState sequence - * @property {boolean|null} [is_frozen] ClientState is_frozen - * @property {ibc.lightclients.solomachine.v2.IConsensusState|null} [consensus_state] ClientState consensus_state - * @property {boolean|null} [allow_update_after_proposal] ClientState allow_update_after_proposal + * Properties of a GenesisState. + * @memberof ibc.core.connection.v1 + * @interface IGenesisState + * @property {Array.|null} [connections] GenesisState connections + * @property {Array.|null} [client_connection_paths] GenesisState client_connection_paths + * @property {Long|null} [next_connection_sequence] GenesisState next_connection_sequence + * @property {ibc.core.connection.v1.IParams|null} [params] GenesisState params */ /** - * Constructs a new ClientState. - * @memberof ibc.lightclients.solomachine.v2 - * @classdesc Represents a ClientState. - * @implements IClientState + * Constructs a new GenesisState. + * @memberof ibc.core.connection.v1 + * @classdesc Represents a GenesisState. + * @implements IGenesisState * @constructor - * @param {ibc.lightclients.solomachine.v2.IClientState=} [properties] Properties to set + * @param {ibc.core.connection.v1.IGenesisState=} [properties] Properties to set */ - function ClientState(properties) { + function GenesisState(properties) { + this.connections = []; + this.client_connection_paths = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -68331,102 +74495,108 @@ } /** - * ClientState sequence. - * @member {Long} sequence - * @memberof ibc.lightclients.solomachine.v2.ClientState + * GenesisState connections. + * @member {Array.} connections + * @memberof ibc.core.connection.v1.GenesisState * @instance */ - ClientState.prototype.sequence = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + GenesisState.prototype.connections = $util.emptyArray; /** - * ClientState is_frozen. - * @member {boolean} is_frozen - * @memberof ibc.lightclients.solomachine.v2.ClientState + * GenesisState client_connection_paths. + * @member {Array.} client_connection_paths + * @memberof ibc.core.connection.v1.GenesisState * @instance */ - ClientState.prototype.is_frozen = false; + GenesisState.prototype.client_connection_paths = $util.emptyArray; /** - * ClientState consensus_state. - * @member {ibc.lightclients.solomachine.v2.IConsensusState|null|undefined} consensus_state - * @memberof ibc.lightclients.solomachine.v2.ClientState + * GenesisState next_connection_sequence. + * @member {Long} next_connection_sequence + * @memberof ibc.core.connection.v1.GenesisState * @instance */ - ClientState.prototype.consensus_state = null; + GenesisState.prototype.next_connection_sequence = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** - * ClientState allow_update_after_proposal. - * @member {boolean} allow_update_after_proposal - * @memberof ibc.lightclients.solomachine.v2.ClientState + * GenesisState params. + * @member {ibc.core.connection.v1.IParams|null|undefined} params + * @memberof ibc.core.connection.v1.GenesisState * @instance */ - ClientState.prototype.allow_update_after_proposal = false; + GenesisState.prototype.params = null; /** - * Encodes the specified ClientState message. Does not implicitly {@link ibc.lightclients.solomachine.v2.ClientState.verify|verify} messages. + * Encodes the specified GenesisState message. Does not implicitly {@link ibc.core.connection.v1.GenesisState.verify|verify} messages. * @function encode - * @memberof ibc.lightclients.solomachine.v2.ClientState + * @memberof ibc.core.connection.v1.GenesisState * @static - * @param {ibc.lightclients.solomachine.v2.IClientState} message ClientState message or plain object to encode + * @param {ibc.core.connection.v1.IGenesisState} message GenesisState message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ClientState.encode = function encode(message, writer) { + GenesisState.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.sequence != null && Object.hasOwnProperty.call(message, "sequence")) - writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.sequence); - if (message.is_frozen != null && Object.hasOwnProperty.call(message, "is_frozen")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.is_frozen); - if (message.consensus_state != null && Object.hasOwnProperty.call(message, "consensus_state")) - $root.ibc.lightclients.solomachine.v2.ConsensusState.encode(message.consensus_state, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.allow_update_after_proposal != null && Object.hasOwnProperty.call(message, "allow_update_after_proposal")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.allow_update_after_proposal); + if (message.connections != null && message.connections.length) + for (var i = 0; i < message.connections.length; ++i) + $root.ibc.core.connection.v1.IdentifiedConnection.encode(message.connections[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.client_connection_paths != null && message.client_connection_paths.length) + for (var i = 0; i < message.client_connection_paths.length; ++i) + $root.ibc.core.connection.v1.ConnectionPaths.encode(message.client_connection_paths[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.next_connection_sequence != null && Object.hasOwnProperty.call(message, "next_connection_sequence")) + writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.next_connection_sequence); + if (message.params != null && Object.hasOwnProperty.call(message, "params")) + $root.ibc.core.connection.v1.Params.encode(message.params, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; /** - * Encodes the specified ClientState message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v2.ClientState.verify|verify} messages. + * Encodes the specified GenesisState message, length delimited. Does not implicitly {@link ibc.core.connection.v1.GenesisState.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.lightclients.solomachine.v2.ClientState + * @memberof ibc.core.connection.v1.GenesisState * @static - * @param {ibc.lightclients.solomachine.v2.IClientState} message ClientState message or plain object to encode + * @param {ibc.core.connection.v1.IGenesisState} message GenesisState message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ClientState.encodeDelimited = function encodeDelimited(message, writer) { + GenesisState.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ClientState message from the specified reader or buffer. + * Decodes a GenesisState message from the specified reader or buffer. * @function decode - * @memberof ibc.lightclients.solomachine.v2.ClientState + * @memberof ibc.core.connection.v1.GenesisState * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.lightclients.solomachine.v2.ClientState} ClientState + * @returns {ibc.core.connection.v1.GenesisState} GenesisState * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ClientState.decode = function decode(reader, length) { + GenesisState.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.solomachine.v2.ClientState(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.connection.v1.GenesisState(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.sequence = reader.uint64(); + if (!(message.connections && message.connections.length)) + message.connections = []; + message.connections.push($root.ibc.core.connection.v1.IdentifiedConnection.decode(reader, reader.uint32())); break; case 2: - message.is_frozen = reader.bool(); + if (!(message.client_connection_paths && message.client_connection_paths.length)) + message.client_connection_paths = []; + message.client_connection_paths.push($root.ibc.core.connection.v1.ConnectionPaths.decode(reader, reader.uint32())); break; case 3: - message.consensus_state = $root.ibc.lightclients.solomachine.v2.ConsensusState.decode(reader, reader.uint32()); + message.next_connection_sequence = reader.uint64(); break; case 4: - message.allow_update_after_proposal = reader.bool(); + message.params = $root.ibc.core.connection.v1.Params.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -68437,153 +74607,213 @@ }; /** - * Decodes a ClientState message from the specified reader or buffer, length delimited. + * Decodes a GenesisState message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.lightclients.solomachine.v2.ClientState + * @memberof ibc.core.connection.v1.GenesisState * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.lightclients.solomachine.v2.ClientState} ClientState + * @returns {ibc.core.connection.v1.GenesisState} GenesisState * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ClientState.decodeDelimited = function decodeDelimited(reader) { + GenesisState.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ClientState message. + * Verifies a GenesisState message. * @function verify - * @memberof ibc.lightclients.solomachine.v2.ClientState + * @memberof ibc.core.connection.v1.GenesisState * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ClientState.verify = function verify(message) { + GenesisState.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.sequence != null && message.hasOwnProperty("sequence")) - if (!$util.isInteger(message.sequence) && !(message.sequence && $util.isInteger(message.sequence.low) && $util.isInteger(message.sequence.high))) - return "sequence: integer|Long expected"; - if (message.is_frozen != null && message.hasOwnProperty("is_frozen")) - if (typeof message.is_frozen !== "boolean") - return "is_frozen: boolean expected"; - if (message.consensus_state != null && message.hasOwnProperty("consensus_state")) { - var error = $root.ibc.lightclients.solomachine.v2.ConsensusState.verify(message.consensus_state); + if (message.connections != null && message.hasOwnProperty("connections")) { + if (!Array.isArray(message.connections)) + return "connections: array expected"; + for (var i = 0; i < message.connections.length; ++i) { + var error = $root.ibc.core.connection.v1.IdentifiedConnection.verify(message.connections[i]); + if (error) + return "connections." + error; + } + } + if (message.client_connection_paths != null && message.hasOwnProperty("client_connection_paths")) { + if (!Array.isArray(message.client_connection_paths)) + return "client_connection_paths: array expected"; + for (var i = 0; i < message.client_connection_paths.length; ++i) { + var error = $root.ibc.core.connection.v1.ConnectionPaths.verify(message.client_connection_paths[i]); + if (error) + return "client_connection_paths." + error; + } + } + if (message.next_connection_sequence != null && message.hasOwnProperty("next_connection_sequence")) + if (!$util.isInteger(message.next_connection_sequence) && !(message.next_connection_sequence && $util.isInteger(message.next_connection_sequence.low) && $util.isInteger(message.next_connection_sequence.high))) + return "next_connection_sequence: integer|Long expected"; + if (message.params != null && message.hasOwnProperty("params")) { + var error = $root.ibc.core.connection.v1.Params.verify(message.params); if (error) - return "consensus_state." + error; + return "params." + error; } - if (message.allow_update_after_proposal != null && message.hasOwnProperty("allow_update_after_proposal")) - if (typeof message.allow_update_after_proposal !== "boolean") - return "allow_update_after_proposal: boolean expected"; return null; }; /** - * Creates a ClientState message from a plain object. Also converts values to their respective internal types. + * Creates a GenesisState message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.lightclients.solomachine.v2.ClientState + * @memberof ibc.core.connection.v1.GenesisState * @static * @param {Object.} object Plain object - * @returns {ibc.lightclients.solomachine.v2.ClientState} ClientState + * @returns {ibc.core.connection.v1.GenesisState} GenesisState */ - ClientState.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.lightclients.solomachine.v2.ClientState) + GenesisState.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.connection.v1.GenesisState) return object; - var message = new $root.ibc.lightclients.solomachine.v2.ClientState(); - if (object.sequence != null) + var message = new $root.ibc.core.connection.v1.GenesisState(); + if (object.connections) { + if (!Array.isArray(object.connections)) + throw TypeError(".ibc.core.connection.v1.GenesisState.connections: array expected"); + message.connections = []; + for (var i = 0; i < object.connections.length; ++i) { + if (typeof object.connections[i] !== "object") + throw TypeError(".ibc.core.connection.v1.GenesisState.connections: object expected"); + message.connections[i] = $root.ibc.core.connection.v1.IdentifiedConnection.fromObject(object.connections[i]); + } + } + if (object.client_connection_paths) { + if (!Array.isArray(object.client_connection_paths)) + throw TypeError(".ibc.core.connection.v1.GenesisState.client_connection_paths: array expected"); + message.client_connection_paths = []; + for (var i = 0; i < object.client_connection_paths.length; ++i) { + if (typeof object.client_connection_paths[i] !== "object") + throw TypeError(".ibc.core.connection.v1.GenesisState.client_connection_paths: object expected"); + message.client_connection_paths[i] = $root.ibc.core.connection.v1.ConnectionPaths.fromObject(object.client_connection_paths[i]); + } + } + if (object.next_connection_sequence != null) if ($util.Long) - (message.sequence = $util.Long.fromValue(object.sequence)).unsigned = true; - else if (typeof object.sequence === "string") - message.sequence = parseInt(object.sequence, 10); - else if (typeof object.sequence === "number") - message.sequence = object.sequence; - else if (typeof object.sequence === "object") - message.sequence = new $util.LongBits(object.sequence.low >>> 0, object.sequence.high >>> 0).toNumber(true); - if (object.is_frozen != null) - message.is_frozen = Boolean(object.is_frozen); - if (object.consensus_state != null) { - if (typeof object.consensus_state !== "object") - throw TypeError(".ibc.lightclients.solomachine.v2.ClientState.consensus_state: object expected"); - message.consensus_state = $root.ibc.lightclients.solomachine.v2.ConsensusState.fromObject(object.consensus_state); + (message.next_connection_sequence = $util.Long.fromValue(object.next_connection_sequence)).unsigned = true; + else if (typeof object.next_connection_sequence === "string") + message.next_connection_sequence = parseInt(object.next_connection_sequence, 10); + else if (typeof object.next_connection_sequence === "number") + message.next_connection_sequence = object.next_connection_sequence; + else if (typeof object.next_connection_sequence === "object") + message.next_connection_sequence = new $util.LongBits(object.next_connection_sequence.low >>> 0, object.next_connection_sequence.high >>> 0).toNumber(true); + if (object.params != null) { + if (typeof object.params !== "object") + throw TypeError(".ibc.core.connection.v1.GenesisState.params: object expected"); + message.params = $root.ibc.core.connection.v1.Params.fromObject(object.params); } - if (object.allow_update_after_proposal != null) - message.allow_update_after_proposal = Boolean(object.allow_update_after_proposal); return message; }; /** - * Creates a plain object from a ClientState message. Also converts values to other types if specified. + * Creates a plain object from a GenesisState message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.lightclients.solomachine.v2.ClientState + * @memberof ibc.core.connection.v1.GenesisState * @static - * @param {ibc.lightclients.solomachine.v2.ClientState} message ClientState + * @param {ibc.core.connection.v1.GenesisState} message GenesisState * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ClientState.toObject = function toObject(message, options) { + GenesisState.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) { + object.connections = []; + object.client_connection_paths = []; + } if (options.defaults) { if ($util.Long) { var long = new $util.Long(0, 0, true); - object.sequence = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + object.next_connection_sequence = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.sequence = options.longs === String ? "0" : 0; - object.is_frozen = false; - object.consensus_state = null; - object.allow_update_after_proposal = false; + object.next_connection_sequence = options.longs === String ? "0" : 0; + object.params = null; } - if (message.sequence != null && message.hasOwnProperty("sequence")) - if (typeof message.sequence === "number") - object.sequence = options.longs === String ? String(message.sequence) : message.sequence; + if (message.connections && message.connections.length) { + object.connections = []; + for (var j = 0; j < message.connections.length; ++j) + object.connections[j] = $root.ibc.core.connection.v1.IdentifiedConnection.toObject(message.connections[j], options); + } + if (message.client_connection_paths && message.client_connection_paths.length) { + object.client_connection_paths = []; + for (var j = 0; j < message.client_connection_paths.length; ++j) + object.client_connection_paths[j] = $root.ibc.core.connection.v1.ConnectionPaths.toObject(message.client_connection_paths[j], options); + } + if (message.next_connection_sequence != null && message.hasOwnProperty("next_connection_sequence")) + if (typeof message.next_connection_sequence === "number") + object.next_connection_sequence = options.longs === String ? String(message.next_connection_sequence) : message.next_connection_sequence; else - object.sequence = options.longs === String ? $util.Long.prototype.toString.call(message.sequence) : options.longs === Number ? new $util.LongBits(message.sequence.low >>> 0, message.sequence.high >>> 0).toNumber(true) : message.sequence; - if (message.is_frozen != null && message.hasOwnProperty("is_frozen")) - object.is_frozen = message.is_frozen; - if (message.consensus_state != null && message.hasOwnProperty("consensus_state")) - object.consensus_state = $root.ibc.lightclients.solomachine.v2.ConsensusState.toObject(message.consensus_state, options); - if (message.allow_update_after_proposal != null && message.hasOwnProperty("allow_update_after_proposal")) - object.allow_update_after_proposal = message.allow_update_after_proposal; + object.next_connection_sequence = options.longs === String ? $util.Long.prototype.toString.call(message.next_connection_sequence) : options.longs === Number ? new $util.LongBits(message.next_connection_sequence.low >>> 0, message.next_connection_sequence.high >>> 0).toNumber(true) : message.next_connection_sequence; + if (message.params != null && message.hasOwnProperty("params")) + object.params = $root.ibc.core.connection.v1.Params.toObject(message.params, options); return object; }; /** - * Converts this ClientState to JSON. + * Converts this GenesisState to JSON. * @function toJSON - * @memberof ibc.lightclients.solomachine.v2.ClientState + * @memberof ibc.core.connection.v1.GenesisState * @instance * @returns {Object.} JSON object */ - ClientState.prototype.toJSON = function toJSON() { + GenesisState.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ClientState; + return GenesisState; })(); - v2.ConsensusState = (function() { + return v1; + })(); + + return connection; + })(); + + core.types = (function() { + + /** + * Namespace types. + * @memberof ibc.core + * @namespace + */ + var types = {}; + + types.v1 = (function() { + + /** + * Namespace v1. + * @memberof ibc.core.types + * @namespace + */ + var v1 = {}; + + v1.GenesisState = (function() { /** - * Properties of a ConsensusState. - * @memberof ibc.lightclients.solomachine.v2 - * @interface IConsensusState - * @property {google.protobuf.IAny|null} [public_key] ConsensusState public_key - * @property {string|null} [diversifier] ConsensusState diversifier - * @property {Long|null} [timestamp] ConsensusState timestamp + * Properties of a GenesisState. + * @memberof ibc.core.types.v1 + * @interface IGenesisState + * @property {ibc.core.client.v1.IGenesisState|null} [client_genesis] GenesisState client_genesis + * @property {ibc.core.connection.v1.IGenesisState|null} [connection_genesis] GenesisState connection_genesis + * @property {ibc.core.channel.v1.IGenesisState|null} [channel_genesis] GenesisState channel_genesis */ /** - * Constructs a new ConsensusState. - * @memberof ibc.lightclients.solomachine.v2 - * @classdesc Represents a ConsensusState. - * @implements IConsensusState + * Constructs a new GenesisState. + * @memberof ibc.core.types.v1 + * @classdesc Represents a GenesisState. + * @implements IGenesisState * @constructor - * @param {ibc.lightclients.solomachine.v2.IConsensusState=} [properties] Properties to set + * @param {ibc.core.types.v1.IGenesisState=} [properties] Properties to set */ - function ConsensusState(properties) { + function GenesisState(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -68591,89 +74821,89 @@ } /** - * ConsensusState public_key. - * @member {google.protobuf.IAny|null|undefined} public_key - * @memberof ibc.lightclients.solomachine.v2.ConsensusState + * GenesisState client_genesis. + * @member {ibc.core.client.v1.IGenesisState|null|undefined} client_genesis + * @memberof ibc.core.types.v1.GenesisState * @instance */ - ConsensusState.prototype.public_key = null; + GenesisState.prototype.client_genesis = null; /** - * ConsensusState diversifier. - * @member {string} diversifier - * @memberof ibc.lightclients.solomachine.v2.ConsensusState + * GenesisState connection_genesis. + * @member {ibc.core.connection.v1.IGenesisState|null|undefined} connection_genesis + * @memberof ibc.core.types.v1.GenesisState * @instance */ - ConsensusState.prototype.diversifier = ""; + GenesisState.prototype.connection_genesis = null; /** - * ConsensusState timestamp. - * @member {Long} timestamp - * @memberof ibc.lightclients.solomachine.v2.ConsensusState + * GenesisState channel_genesis. + * @member {ibc.core.channel.v1.IGenesisState|null|undefined} channel_genesis + * @memberof ibc.core.types.v1.GenesisState * @instance */ - ConsensusState.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + GenesisState.prototype.channel_genesis = null; /** - * Encodes the specified ConsensusState message. Does not implicitly {@link ibc.lightclients.solomachine.v2.ConsensusState.verify|verify} messages. + * Encodes the specified GenesisState message. Does not implicitly {@link ibc.core.types.v1.GenesisState.verify|verify} messages. * @function encode - * @memberof ibc.lightclients.solomachine.v2.ConsensusState + * @memberof ibc.core.types.v1.GenesisState * @static - * @param {ibc.lightclients.solomachine.v2.IConsensusState} message ConsensusState message or plain object to encode + * @param {ibc.core.types.v1.IGenesisState} message GenesisState message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ConsensusState.encode = function encode(message, writer) { + GenesisState.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.public_key != null && Object.hasOwnProperty.call(message, "public_key")) - $root.google.protobuf.Any.encode(message.public_key, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.diversifier != null && Object.hasOwnProperty.call(message, "diversifier")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.diversifier); - if (message.timestamp != null && Object.hasOwnProperty.call(message, "timestamp")) - writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.timestamp); + if (message.client_genesis != null && Object.hasOwnProperty.call(message, "client_genesis")) + $root.ibc.core.client.v1.GenesisState.encode(message.client_genesis, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.connection_genesis != null && Object.hasOwnProperty.call(message, "connection_genesis")) + $root.ibc.core.connection.v1.GenesisState.encode(message.connection_genesis, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.channel_genesis != null && Object.hasOwnProperty.call(message, "channel_genesis")) + $root.ibc.core.channel.v1.GenesisState.encode(message.channel_genesis, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified ConsensusState message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v2.ConsensusState.verify|verify} messages. + * Encodes the specified GenesisState message, length delimited. Does not implicitly {@link ibc.core.types.v1.GenesisState.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.lightclients.solomachine.v2.ConsensusState + * @memberof ibc.core.types.v1.GenesisState * @static - * @param {ibc.lightclients.solomachine.v2.IConsensusState} message ConsensusState message or plain object to encode + * @param {ibc.core.types.v1.IGenesisState} message GenesisState message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ConsensusState.encodeDelimited = function encodeDelimited(message, writer) { + GenesisState.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ConsensusState message from the specified reader or buffer. + * Decodes a GenesisState message from the specified reader or buffer. * @function decode - * @memberof ibc.lightclients.solomachine.v2.ConsensusState + * @memberof ibc.core.types.v1.GenesisState * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.lightclients.solomachine.v2.ConsensusState} ConsensusState + * @returns {ibc.core.types.v1.GenesisState} GenesisState * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ConsensusState.decode = function decode(reader, length) { + GenesisState.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.solomachine.v2.ConsensusState(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.types.v1.GenesisState(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.public_key = $root.google.protobuf.Any.decode(reader, reader.uint32()); + message.client_genesis = $root.ibc.core.client.v1.GenesisState.decode(reader, reader.uint32()); break; case 2: - message.diversifier = reader.string(); + message.connection_genesis = $root.ibc.core.connection.v1.GenesisState.decode(reader, reader.uint32()); break; case 3: - message.timestamp = reader.uint64(); + message.channel_genesis = $root.ibc.core.channel.v1.GenesisState.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -68684,147 +74914,175 @@ }; /** - * Decodes a ConsensusState message from the specified reader or buffer, length delimited. + * Decodes a GenesisState message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.lightclients.solomachine.v2.ConsensusState + * @memberof ibc.core.types.v1.GenesisState * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.lightclients.solomachine.v2.ConsensusState} ConsensusState + * @returns {ibc.core.types.v1.GenesisState} GenesisState * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ConsensusState.decodeDelimited = function decodeDelimited(reader) { + GenesisState.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ConsensusState message. + * Verifies a GenesisState message. * @function verify - * @memberof ibc.lightclients.solomachine.v2.ConsensusState + * @memberof ibc.core.types.v1.GenesisState * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ConsensusState.verify = function verify(message) { + GenesisState.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.public_key != null && message.hasOwnProperty("public_key")) { - var error = $root.google.protobuf.Any.verify(message.public_key); + if (message.client_genesis != null && message.hasOwnProperty("client_genesis")) { + var error = $root.ibc.core.client.v1.GenesisState.verify(message.client_genesis); if (error) - return "public_key." + error; + return "client_genesis." + error; + } + if (message.connection_genesis != null && message.hasOwnProperty("connection_genesis")) { + var error = $root.ibc.core.connection.v1.GenesisState.verify(message.connection_genesis); + if (error) + return "connection_genesis." + error; + } + if (message.channel_genesis != null && message.hasOwnProperty("channel_genesis")) { + var error = $root.ibc.core.channel.v1.GenesisState.verify(message.channel_genesis); + if (error) + return "channel_genesis." + error; } - if (message.diversifier != null && message.hasOwnProperty("diversifier")) - if (!$util.isString(message.diversifier)) - return "diversifier: string expected"; - if (message.timestamp != null && message.hasOwnProperty("timestamp")) - if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high))) - return "timestamp: integer|Long expected"; return null; }; /** - * Creates a ConsensusState message from a plain object. Also converts values to their respective internal types. + * Creates a GenesisState message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.lightclients.solomachine.v2.ConsensusState + * @memberof ibc.core.types.v1.GenesisState * @static * @param {Object.} object Plain object - * @returns {ibc.lightclients.solomachine.v2.ConsensusState} ConsensusState + * @returns {ibc.core.types.v1.GenesisState} GenesisState */ - ConsensusState.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.lightclients.solomachine.v2.ConsensusState) + GenesisState.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.types.v1.GenesisState) return object; - var message = new $root.ibc.lightclients.solomachine.v2.ConsensusState(); - if (object.public_key != null) { - if (typeof object.public_key !== "object") - throw TypeError(".ibc.lightclients.solomachine.v2.ConsensusState.public_key: object expected"); - message.public_key = $root.google.protobuf.Any.fromObject(object.public_key); + var message = new $root.ibc.core.types.v1.GenesisState(); + if (object.client_genesis != null) { + if (typeof object.client_genesis !== "object") + throw TypeError(".ibc.core.types.v1.GenesisState.client_genesis: object expected"); + message.client_genesis = $root.ibc.core.client.v1.GenesisState.fromObject(object.client_genesis); + } + if (object.connection_genesis != null) { + if (typeof object.connection_genesis !== "object") + throw TypeError(".ibc.core.types.v1.GenesisState.connection_genesis: object expected"); + message.connection_genesis = $root.ibc.core.connection.v1.GenesisState.fromObject(object.connection_genesis); + } + if (object.channel_genesis != null) { + if (typeof object.channel_genesis !== "object") + throw TypeError(".ibc.core.types.v1.GenesisState.channel_genesis: object expected"); + message.channel_genesis = $root.ibc.core.channel.v1.GenesisState.fromObject(object.channel_genesis); } - if (object.diversifier != null) - message.diversifier = String(object.diversifier); - if (object.timestamp != null) - if ($util.Long) - (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true; - else if (typeof object.timestamp === "string") - message.timestamp = parseInt(object.timestamp, 10); - else if (typeof object.timestamp === "number") - message.timestamp = object.timestamp; - else if (typeof object.timestamp === "object") - message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true); return message; }; /** - * Creates a plain object from a ConsensusState message. Also converts values to other types if specified. + * Creates a plain object from a GenesisState message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.lightclients.solomachine.v2.ConsensusState + * @memberof ibc.core.types.v1.GenesisState * @static - * @param {ibc.lightclients.solomachine.v2.ConsensusState} message ConsensusState + * @param {ibc.core.types.v1.GenesisState} message GenesisState * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ConsensusState.toObject = function toObject(message, options) { + GenesisState.toObject = function toObject(message, options) { if (!options) options = {}; - var object = {}; - if (options.defaults) { - object.public_key = null; - object.diversifier = ""; - if ($util.Long) { - var long = new $util.Long(0, 0, true); - object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.timestamp = options.longs === String ? "0" : 0; - } - if (message.public_key != null && message.hasOwnProperty("public_key")) - object.public_key = $root.google.protobuf.Any.toObject(message.public_key, options); - if (message.diversifier != null && message.hasOwnProperty("diversifier")) - object.diversifier = message.diversifier; - if (message.timestamp != null && message.hasOwnProperty("timestamp")) - if (typeof message.timestamp === "number") - object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp; - else - object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber(true) : message.timestamp; + var object = {}; + if (options.defaults) { + object.client_genesis = null; + object.connection_genesis = null; + object.channel_genesis = null; + } + if (message.client_genesis != null && message.hasOwnProperty("client_genesis")) + object.client_genesis = $root.ibc.core.client.v1.GenesisState.toObject(message.client_genesis, options); + if (message.connection_genesis != null && message.hasOwnProperty("connection_genesis")) + object.connection_genesis = $root.ibc.core.connection.v1.GenesisState.toObject(message.connection_genesis, options); + if (message.channel_genesis != null && message.hasOwnProperty("channel_genesis")) + object.channel_genesis = $root.ibc.core.channel.v1.GenesisState.toObject(message.channel_genesis, options); return object; }; /** - * Converts this ConsensusState to JSON. + * Converts this GenesisState to JSON. * @function toJSON - * @memberof ibc.lightclients.solomachine.v2.ConsensusState + * @memberof ibc.core.types.v1.GenesisState * @instance * @returns {Object.} JSON object */ - ConsensusState.prototype.toJSON = function toJSON() { + GenesisState.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ConsensusState; + return GenesisState; })(); - v2.Header = (function() { + return v1; + })(); + + return types; + })(); + + return core; + })(); + + ibc.lightclients = (function() { + + /** + * Namespace lightclients. + * @memberof ibc + * @namespace + */ + var lightclients = {}; + + lightclients.localhost = (function() { + + /** + * Namespace localhost. + * @memberof ibc.lightclients + * @namespace + */ + var localhost = {}; + + localhost.v2 = (function() { + + /** + * Namespace v2. + * @memberof ibc.lightclients.localhost + * @namespace + */ + var v2 = {}; + + v2.ClientState = (function() { /** - * Properties of a Header. - * @memberof ibc.lightclients.solomachine.v2 - * @interface IHeader - * @property {Long|null} [sequence] Header sequence - * @property {Long|null} [timestamp] Header timestamp - * @property {Uint8Array|null} [signature] Header signature - * @property {google.protobuf.IAny|null} [new_public_key] Header new_public_key - * @property {string|null} [new_diversifier] Header new_diversifier + * Properties of a ClientState. + * @memberof ibc.lightclients.localhost.v2 + * @interface IClientState + * @property {ibc.core.client.v1.IHeight|null} [latest_height] ClientState latest_height */ /** - * Constructs a new Header. - * @memberof ibc.lightclients.solomachine.v2 - * @classdesc Represents a Header. - * @implements IHeader + * Constructs a new ClientState. + * @memberof ibc.lightclients.localhost.v2 + * @classdesc Represents a ClientState. + * @implements IClientState * @constructor - * @param {ibc.lightclients.solomachine.v2.IHeader=} [properties] Properties to set + * @param {ibc.lightclients.localhost.v2.IClientState=} [properties] Properties to set */ - function Header(properties) { + function ClientState(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -68832,115 +75090,63 @@ } /** - * Header sequence. - * @member {Long} sequence - * @memberof ibc.lightclients.solomachine.v2.Header - * @instance - */ - Header.prototype.sequence = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * Header timestamp. - * @member {Long} timestamp - * @memberof ibc.lightclients.solomachine.v2.Header - * @instance - */ - Header.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * Header signature. - * @member {Uint8Array} signature - * @memberof ibc.lightclients.solomachine.v2.Header - * @instance - */ - Header.prototype.signature = $util.newBuffer([]); - - /** - * Header new_public_key. - * @member {google.protobuf.IAny|null|undefined} new_public_key - * @memberof ibc.lightclients.solomachine.v2.Header - * @instance - */ - Header.prototype.new_public_key = null; - - /** - * Header new_diversifier. - * @member {string} new_diversifier - * @memberof ibc.lightclients.solomachine.v2.Header + * ClientState latest_height. + * @member {ibc.core.client.v1.IHeight|null|undefined} latest_height + * @memberof ibc.lightclients.localhost.v2.ClientState * @instance */ - Header.prototype.new_diversifier = ""; + ClientState.prototype.latest_height = null; /** - * Encodes the specified Header message. Does not implicitly {@link ibc.lightclients.solomachine.v2.Header.verify|verify} messages. + * Encodes the specified ClientState message. Does not implicitly {@link ibc.lightclients.localhost.v2.ClientState.verify|verify} messages. * @function encode - * @memberof ibc.lightclients.solomachine.v2.Header + * @memberof ibc.lightclients.localhost.v2.ClientState * @static - * @param {ibc.lightclients.solomachine.v2.IHeader} message Header message or plain object to encode + * @param {ibc.lightclients.localhost.v2.IClientState} message ClientState message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Header.encode = function encode(message, writer) { + ClientState.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.sequence != null && Object.hasOwnProperty.call(message, "sequence")) - writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.sequence); - if (message.timestamp != null && Object.hasOwnProperty.call(message, "timestamp")) - writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.timestamp); - if (message.signature != null && Object.hasOwnProperty.call(message, "signature")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.signature); - if (message.new_public_key != null && Object.hasOwnProperty.call(message, "new_public_key")) - $root.google.protobuf.Any.encode(message.new_public_key, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.new_diversifier != null && Object.hasOwnProperty.call(message, "new_diversifier")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.new_diversifier); + if (message.latest_height != null && Object.hasOwnProperty.call(message, "latest_height")) + $root.ibc.core.client.v1.Height.encode(message.latest_height, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified Header message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v2.Header.verify|verify} messages. + * Encodes the specified ClientState message, length delimited. Does not implicitly {@link ibc.lightclients.localhost.v2.ClientState.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.lightclients.solomachine.v2.Header + * @memberof ibc.lightclients.localhost.v2.ClientState * @static - * @param {ibc.lightclients.solomachine.v2.IHeader} message Header message or plain object to encode + * @param {ibc.lightclients.localhost.v2.IClientState} message ClientState message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Header.encodeDelimited = function encodeDelimited(message, writer) { + ClientState.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Header message from the specified reader or buffer. + * Decodes a ClientState message from the specified reader or buffer. * @function decode - * @memberof ibc.lightclients.solomachine.v2.Header + * @memberof ibc.lightclients.localhost.v2.ClientState * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.lightclients.solomachine.v2.Header} Header + * @returns {ibc.lightclients.localhost.v2.ClientState} ClientState * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Header.decode = function decode(reader, length) { + ClientState.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.solomachine.v2.Header(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.localhost.v2.ClientState(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.sequence = reader.uint64(); - break; - case 2: - message.timestamp = reader.uint64(); - break; - case 3: - message.signature = reader.bytes(); - break; - case 4: - message.new_public_key = $root.google.protobuf.Any.decode(reader, reader.uint32()); - break; - case 5: - message.new_diversifier = reader.string(); + message.latest_height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -68951,185 +75157,139 @@ }; /** - * Decodes a Header message from the specified reader or buffer, length delimited. + * Decodes a ClientState message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.lightclients.solomachine.v2.Header + * @memberof ibc.lightclients.localhost.v2.ClientState * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.lightclients.solomachine.v2.Header} Header + * @returns {ibc.lightclients.localhost.v2.ClientState} ClientState * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Header.decodeDelimited = function decodeDelimited(reader) { + ClientState.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Header message. + * Verifies a ClientState message. * @function verify - * @memberof ibc.lightclients.solomachine.v2.Header + * @memberof ibc.lightclients.localhost.v2.ClientState * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Header.verify = function verify(message) { + ClientState.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.sequence != null && message.hasOwnProperty("sequence")) - if (!$util.isInteger(message.sequence) && !(message.sequence && $util.isInteger(message.sequence.low) && $util.isInteger(message.sequence.high))) - return "sequence: integer|Long expected"; - if (message.timestamp != null && message.hasOwnProperty("timestamp")) - if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high))) - return "timestamp: integer|Long expected"; - if (message.signature != null && message.hasOwnProperty("signature")) - if (!(message.signature && typeof message.signature.length === "number" || $util.isString(message.signature))) - return "signature: buffer expected"; - if (message.new_public_key != null && message.hasOwnProperty("new_public_key")) { - var error = $root.google.protobuf.Any.verify(message.new_public_key); + if (message.latest_height != null && message.hasOwnProperty("latest_height")) { + var error = $root.ibc.core.client.v1.Height.verify(message.latest_height); if (error) - return "new_public_key." + error; + return "latest_height." + error; } - if (message.new_diversifier != null && message.hasOwnProperty("new_diversifier")) - if (!$util.isString(message.new_diversifier)) - return "new_diversifier: string expected"; return null; }; /** - * Creates a Header message from a plain object. Also converts values to their respective internal types. + * Creates a ClientState message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.lightclients.solomachine.v2.Header + * @memberof ibc.lightclients.localhost.v2.ClientState * @static * @param {Object.} object Plain object - * @returns {ibc.lightclients.solomachine.v2.Header} Header + * @returns {ibc.lightclients.localhost.v2.ClientState} ClientState */ - Header.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.lightclients.solomachine.v2.Header) + ClientState.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.lightclients.localhost.v2.ClientState) return object; - var message = new $root.ibc.lightclients.solomachine.v2.Header(); - if (object.sequence != null) - if ($util.Long) - (message.sequence = $util.Long.fromValue(object.sequence)).unsigned = true; - else if (typeof object.sequence === "string") - message.sequence = parseInt(object.sequence, 10); - else if (typeof object.sequence === "number") - message.sequence = object.sequence; - else if (typeof object.sequence === "object") - message.sequence = new $util.LongBits(object.sequence.low >>> 0, object.sequence.high >>> 0).toNumber(true); - if (object.timestamp != null) - if ($util.Long) - (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true; - else if (typeof object.timestamp === "string") - message.timestamp = parseInt(object.timestamp, 10); - else if (typeof object.timestamp === "number") - message.timestamp = object.timestamp; - else if (typeof object.timestamp === "object") - message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true); - if (object.signature != null) - if (typeof object.signature === "string") - $util.base64.decode(object.signature, message.signature = $util.newBuffer($util.base64.length(object.signature)), 0); - else if (object.signature.length) - message.signature = object.signature; - if (object.new_public_key != null) { - if (typeof object.new_public_key !== "object") - throw TypeError(".ibc.lightclients.solomachine.v2.Header.new_public_key: object expected"); - message.new_public_key = $root.google.protobuf.Any.fromObject(object.new_public_key); + var message = new $root.ibc.lightclients.localhost.v2.ClientState(); + if (object.latest_height != null) { + if (typeof object.latest_height !== "object") + throw TypeError(".ibc.lightclients.localhost.v2.ClientState.latest_height: object expected"); + message.latest_height = $root.ibc.core.client.v1.Height.fromObject(object.latest_height); } - if (object.new_diversifier != null) - message.new_diversifier = String(object.new_diversifier); return message; }; /** - * Creates a plain object from a Header message. Also converts values to other types if specified. + * Creates a plain object from a ClientState message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.lightclients.solomachine.v2.Header + * @memberof ibc.lightclients.localhost.v2.ClientState * @static - * @param {ibc.lightclients.solomachine.v2.Header} message Header + * @param {ibc.lightclients.localhost.v2.ClientState} message ClientState * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Header.toObject = function toObject(message, options) { + ClientState.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - if ($util.Long) { - var long = new $util.Long(0, 0, true); - object.sequence = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.sequence = options.longs === String ? "0" : 0; - if ($util.Long) { - var long = new $util.Long(0, 0, true); - object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.timestamp = options.longs === String ? "0" : 0; - if (options.bytes === String) - object.signature = ""; - else { - object.signature = []; - if (options.bytes !== Array) - object.signature = $util.newBuffer(object.signature); - } - object.new_public_key = null; - object.new_diversifier = ""; - } - if (message.sequence != null && message.hasOwnProperty("sequence")) - if (typeof message.sequence === "number") - object.sequence = options.longs === String ? String(message.sequence) : message.sequence; - else - object.sequence = options.longs === String ? $util.Long.prototype.toString.call(message.sequence) : options.longs === Number ? new $util.LongBits(message.sequence.low >>> 0, message.sequence.high >>> 0).toNumber(true) : message.sequence; - if (message.timestamp != null && message.hasOwnProperty("timestamp")) - if (typeof message.timestamp === "number") - object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp; - else - object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber(true) : message.timestamp; - if (message.signature != null && message.hasOwnProperty("signature")) - object.signature = options.bytes === String ? $util.base64.encode(message.signature, 0, message.signature.length) : options.bytes === Array ? Array.prototype.slice.call(message.signature) : message.signature; - if (message.new_public_key != null && message.hasOwnProperty("new_public_key")) - object.new_public_key = $root.google.protobuf.Any.toObject(message.new_public_key, options); - if (message.new_diversifier != null && message.hasOwnProperty("new_diversifier")) - object.new_diversifier = message.new_diversifier; + if (options.defaults) + object.latest_height = null; + if (message.latest_height != null && message.hasOwnProperty("latest_height")) + object.latest_height = $root.ibc.core.client.v1.Height.toObject(message.latest_height, options); return object; }; /** - * Converts this Header to JSON. + * Converts this ClientState to JSON. * @function toJSON - * @memberof ibc.lightclients.solomachine.v2.Header + * @memberof ibc.lightclients.localhost.v2.ClientState * @instance * @returns {Object.} JSON object */ - Header.prototype.toJSON = function toJSON() { + ClientState.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Header; + return ClientState; })(); - v2.Misbehaviour = (function() { + return v2; + })(); + + return localhost; + })(); + + lightclients.solomachine = (function() { + + /** + * Namespace solomachine. + * @memberof ibc.lightclients + * @namespace + */ + var solomachine = {}; + + solomachine.v2 = (function() { + + /** + * Namespace v2. + * @memberof ibc.lightclients.solomachine + * @namespace + */ + var v2 = {}; + + v2.ClientState = (function() { /** - * Properties of a Misbehaviour. + * Properties of a ClientState. * @memberof ibc.lightclients.solomachine.v2 - * @interface IMisbehaviour - * @property {string|null} [client_id] Misbehaviour client_id - * @property {Long|null} [sequence] Misbehaviour sequence - * @property {ibc.lightclients.solomachine.v2.ISignatureAndData|null} [signature_one] Misbehaviour signature_one - * @property {ibc.lightclients.solomachine.v2.ISignatureAndData|null} [signature_two] Misbehaviour signature_two + * @interface IClientState + * @property {Long|null} [sequence] ClientState sequence + * @property {boolean|null} [is_frozen] ClientState is_frozen + * @property {ibc.lightclients.solomachine.v2.IConsensusState|null} [consensus_state] ClientState consensus_state + * @property {boolean|null} [allow_update_after_proposal] ClientState allow_update_after_proposal */ /** - * Constructs a new Misbehaviour. + * Constructs a new ClientState. * @memberof ibc.lightclients.solomachine.v2 - * @classdesc Represents a Misbehaviour. - * @implements IMisbehaviour + * @classdesc Represents a ClientState. + * @implements IClientState * @constructor - * @param {ibc.lightclients.solomachine.v2.IMisbehaviour=} [properties] Properties to set + * @param {ibc.lightclients.solomachine.v2.IClientState=} [properties] Properties to set */ - function Misbehaviour(properties) { + function ClientState(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -69137,102 +75297,102 @@ } /** - * Misbehaviour client_id. - * @member {string} client_id - * @memberof ibc.lightclients.solomachine.v2.Misbehaviour + * ClientState sequence. + * @member {Long} sequence + * @memberof ibc.lightclients.solomachine.v2.ClientState * @instance */ - Misbehaviour.prototype.client_id = ""; + ClientState.prototype.sequence = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** - * Misbehaviour sequence. - * @member {Long} sequence - * @memberof ibc.lightclients.solomachine.v2.Misbehaviour + * ClientState is_frozen. + * @member {boolean} is_frozen + * @memberof ibc.lightclients.solomachine.v2.ClientState * @instance */ - Misbehaviour.prototype.sequence = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + ClientState.prototype.is_frozen = false; /** - * Misbehaviour signature_one. - * @member {ibc.lightclients.solomachine.v2.ISignatureAndData|null|undefined} signature_one - * @memberof ibc.lightclients.solomachine.v2.Misbehaviour + * ClientState consensus_state. + * @member {ibc.lightclients.solomachine.v2.IConsensusState|null|undefined} consensus_state + * @memberof ibc.lightclients.solomachine.v2.ClientState * @instance */ - Misbehaviour.prototype.signature_one = null; + ClientState.prototype.consensus_state = null; /** - * Misbehaviour signature_two. - * @member {ibc.lightclients.solomachine.v2.ISignatureAndData|null|undefined} signature_two - * @memberof ibc.lightclients.solomachine.v2.Misbehaviour + * ClientState allow_update_after_proposal. + * @member {boolean} allow_update_after_proposal + * @memberof ibc.lightclients.solomachine.v2.ClientState * @instance */ - Misbehaviour.prototype.signature_two = null; + ClientState.prototype.allow_update_after_proposal = false; /** - * Encodes the specified Misbehaviour message. Does not implicitly {@link ibc.lightclients.solomachine.v2.Misbehaviour.verify|verify} messages. + * Encodes the specified ClientState message. Does not implicitly {@link ibc.lightclients.solomachine.v2.ClientState.verify|verify} messages. * @function encode - * @memberof ibc.lightclients.solomachine.v2.Misbehaviour + * @memberof ibc.lightclients.solomachine.v2.ClientState * @static - * @param {ibc.lightclients.solomachine.v2.IMisbehaviour} message Misbehaviour message or plain object to encode + * @param {ibc.lightclients.solomachine.v2.IClientState} message ClientState message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Misbehaviour.encode = function encode(message, writer) { + ClientState.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.client_id != null && Object.hasOwnProperty.call(message, "client_id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.client_id); if (message.sequence != null && Object.hasOwnProperty.call(message, "sequence")) - writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.sequence); - if (message.signature_one != null && Object.hasOwnProperty.call(message, "signature_one")) - $root.ibc.lightclients.solomachine.v2.SignatureAndData.encode(message.signature_one, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.signature_two != null && Object.hasOwnProperty.call(message, "signature_two")) - $root.ibc.lightclients.solomachine.v2.SignatureAndData.encode(message.signature_two, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.sequence); + if (message.is_frozen != null && Object.hasOwnProperty.call(message, "is_frozen")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.is_frozen); + if (message.consensus_state != null && Object.hasOwnProperty.call(message, "consensus_state")) + $root.ibc.lightclients.solomachine.v2.ConsensusState.encode(message.consensus_state, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.allow_update_after_proposal != null && Object.hasOwnProperty.call(message, "allow_update_after_proposal")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.allow_update_after_proposal); return writer; }; /** - * Encodes the specified Misbehaviour message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v2.Misbehaviour.verify|verify} messages. + * Encodes the specified ClientState message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v2.ClientState.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.lightclients.solomachine.v2.Misbehaviour + * @memberof ibc.lightclients.solomachine.v2.ClientState * @static - * @param {ibc.lightclients.solomachine.v2.IMisbehaviour} message Misbehaviour message or plain object to encode + * @param {ibc.lightclients.solomachine.v2.IClientState} message ClientState message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Misbehaviour.encodeDelimited = function encodeDelimited(message, writer) { + ClientState.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Misbehaviour message from the specified reader or buffer. + * Decodes a ClientState message from the specified reader or buffer. * @function decode - * @memberof ibc.lightclients.solomachine.v2.Misbehaviour + * @memberof ibc.lightclients.solomachine.v2.ClientState * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.lightclients.solomachine.v2.Misbehaviour} Misbehaviour + * @returns {ibc.lightclients.solomachine.v2.ClientState} ClientState * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Misbehaviour.decode = function decode(reader, length) { + ClientState.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.solomachine.v2.Misbehaviour(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.solomachine.v2.ClientState(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.client_id = reader.string(); + message.sequence = reader.uint64(); break; case 2: - message.sequence = reader.uint64(); + message.is_frozen = reader.bool(); break; case 3: - message.signature_one = $root.ibc.lightclients.solomachine.v2.SignatureAndData.decode(reader, reader.uint32()); + message.consensus_state = $root.ibc.lightclients.solomachine.v2.ConsensusState.decode(reader, reader.uint32()); break; case 4: - message.signature_two = $root.ibc.lightclients.solomachine.v2.SignatureAndData.decode(reader, reader.uint32()); + message.allow_update_after_proposal = reader.bool(); break; default: reader.skipType(tag & 7); @@ -69243,65 +75403,61 @@ }; /** - * Decodes a Misbehaviour message from the specified reader or buffer, length delimited. + * Decodes a ClientState message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.lightclients.solomachine.v2.Misbehaviour + * @memberof ibc.lightclients.solomachine.v2.ClientState * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.lightclients.solomachine.v2.Misbehaviour} Misbehaviour + * @returns {ibc.lightclients.solomachine.v2.ClientState} ClientState * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Misbehaviour.decodeDelimited = function decodeDelimited(reader) { + ClientState.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Misbehaviour message. + * Verifies a ClientState message. * @function verify - * @memberof ibc.lightclients.solomachine.v2.Misbehaviour + * @memberof ibc.lightclients.solomachine.v2.ClientState * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Misbehaviour.verify = function verify(message) { + ClientState.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.client_id != null && message.hasOwnProperty("client_id")) - if (!$util.isString(message.client_id)) - return "client_id: string expected"; if (message.sequence != null && message.hasOwnProperty("sequence")) if (!$util.isInteger(message.sequence) && !(message.sequence && $util.isInteger(message.sequence.low) && $util.isInteger(message.sequence.high))) return "sequence: integer|Long expected"; - if (message.signature_one != null && message.hasOwnProperty("signature_one")) { - var error = $root.ibc.lightclients.solomachine.v2.SignatureAndData.verify(message.signature_one); - if (error) - return "signature_one." + error; - } - if (message.signature_two != null && message.hasOwnProperty("signature_two")) { - var error = $root.ibc.lightclients.solomachine.v2.SignatureAndData.verify(message.signature_two); + if (message.is_frozen != null && message.hasOwnProperty("is_frozen")) + if (typeof message.is_frozen !== "boolean") + return "is_frozen: boolean expected"; + if (message.consensus_state != null && message.hasOwnProperty("consensus_state")) { + var error = $root.ibc.lightclients.solomachine.v2.ConsensusState.verify(message.consensus_state); if (error) - return "signature_two." + error; + return "consensus_state." + error; } + if (message.allow_update_after_proposal != null && message.hasOwnProperty("allow_update_after_proposal")) + if (typeof message.allow_update_after_proposal !== "boolean") + return "allow_update_after_proposal: boolean expected"; return null; }; /** - * Creates a Misbehaviour message from a plain object. Also converts values to their respective internal types. + * Creates a ClientState message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.lightclients.solomachine.v2.Misbehaviour + * @memberof ibc.lightclients.solomachine.v2.ClientState * @static * @param {Object.} object Plain object - * @returns {ibc.lightclients.solomachine.v2.Misbehaviour} Misbehaviour + * @returns {ibc.lightclients.solomachine.v2.ClientState} ClientState */ - Misbehaviour.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.lightclients.solomachine.v2.Misbehaviour) + ClientState.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.lightclients.solomachine.v2.ClientState) return object; - var message = new $root.ibc.lightclients.solomachine.v2.Misbehaviour(); - if (object.client_id != null) - message.client_id = String(object.client_id); + var message = new $root.ibc.lightclients.solomachine.v2.ClientState(); if (object.sequence != null) if ($util.Long) (message.sequence = $util.Long.fromValue(object.sequence)).unsigned = true; @@ -69311,91 +75467,89 @@ message.sequence = object.sequence; else if (typeof object.sequence === "object") message.sequence = new $util.LongBits(object.sequence.low >>> 0, object.sequence.high >>> 0).toNumber(true); - if (object.signature_one != null) { - if (typeof object.signature_one !== "object") - throw TypeError(".ibc.lightclients.solomachine.v2.Misbehaviour.signature_one: object expected"); - message.signature_one = $root.ibc.lightclients.solomachine.v2.SignatureAndData.fromObject(object.signature_one); - } - if (object.signature_two != null) { - if (typeof object.signature_two !== "object") - throw TypeError(".ibc.lightclients.solomachine.v2.Misbehaviour.signature_two: object expected"); - message.signature_two = $root.ibc.lightclients.solomachine.v2.SignatureAndData.fromObject(object.signature_two); + if (object.is_frozen != null) + message.is_frozen = Boolean(object.is_frozen); + if (object.consensus_state != null) { + if (typeof object.consensus_state !== "object") + throw TypeError(".ibc.lightclients.solomachine.v2.ClientState.consensus_state: object expected"); + message.consensus_state = $root.ibc.lightclients.solomachine.v2.ConsensusState.fromObject(object.consensus_state); } + if (object.allow_update_after_proposal != null) + message.allow_update_after_proposal = Boolean(object.allow_update_after_proposal); return message; }; /** - * Creates a plain object from a Misbehaviour message. Also converts values to other types if specified. + * Creates a plain object from a ClientState message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.lightclients.solomachine.v2.Misbehaviour + * @memberof ibc.lightclients.solomachine.v2.ClientState * @static - * @param {ibc.lightclients.solomachine.v2.Misbehaviour} message Misbehaviour + * @param {ibc.lightclients.solomachine.v2.ClientState} message ClientState * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Misbehaviour.toObject = function toObject(message, options) { + ClientState.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.client_id = ""; if ($util.Long) { var long = new $util.Long(0, 0, true); object.sequence = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else object.sequence = options.longs === String ? "0" : 0; - object.signature_one = null; - object.signature_two = null; + object.is_frozen = false; + object.consensus_state = null; + object.allow_update_after_proposal = false; } - if (message.client_id != null && message.hasOwnProperty("client_id")) - object.client_id = message.client_id; if (message.sequence != null && message.hasOwnProperty("sequence")) if (typeof message.sequence === "number") object.sequence = options.longs === String ? String(message.sequence) : message.sequence; else object.sequence = options.longs === String ? $util.Long.prototype.toString.call(message.sequence) : options.longs === Number ? new $util.LongBits(message.sequence.low >>> 0, message.sequence.high >>> 0).toNumber(true) : message.sequence; - if (message.signature_one != null && message.hasOwnProperty("signature_one")) - object.signature_one = $root.ibc.lightclients.solomachine.v2.SignatureAndData.toObject(message.signature_one, options); - if (message.signature_two != null && message.hasOwnProperty("signature_two")) - object.signature_two = $root.ibc.lightclients.solomachine.v2.SignatureAndData.toObject(message.signature_two, options); + if (message.is_frozen != null && message.hasOwnProperty("is_frozen")) + object.is_frozen = message.is_frozen; + if (message.consensus_state != null && message.hasOwnProperty("consensus_state")) + object.consensus_state = $root.ibc.lightclients.solomachine.v2.ConsensusState.toObject(message.consensus_state, options); + if (message.allow_update_after_proposal != null && message.hasOwnProperty("allow_update_after_proposal")) + object.allow_update_after_proposal = message.allow_update_after_proposal; return object; }; /** - * Converts this Misbehaviour to JSON. + * Converts this ClientState to JSON. * @function toJSON - * @memberof ibc.lightclients.solomachine.v2.Misbehaviour + * @memberof ibc.lightclients.solomachine.v2.ClientState * @instance * @returns {Object.} JSON object */ - Misbehaviour.prototype.toJSON = function toJSON() { + ClientState.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Misbehaviour; + return ClientState; })(); - v2.SignatureAndData = (function() { + v2.ConsensusState = (function() { /** - * Properties of a SignatureAndData. + * Properties of a ConsensusState. * @memberof ibc.lightclients.solomachine.v2 - * @interface ISignatureAndData - * @property {Uint8Array|null} [signature] SignatureAndData signature - * @property {ibc.lightclients.solomachine.v2.DataType|null} [data_type] SignatureAndData data_type - * @property {Uint8Array|null} [data] SignatureAndData data - * @property {Long|null} [timestamp] SignatureAndData timestamp + * @interface IConsensusState + * @property {google.protobuf.IAny|null} [public_key] ConsensusState public_key + * @property {string|null} [diversifier] ConsensusState diversifier + * @property {Long|null} [timestamp] ConsensusState timestamp */ /** - * Constructs a new SignatureAndData. + * Constructs a new ConsensusState. * @memberof ibc.lightclients.solomachine.v2 - * @classdesc Represents a SignatureAndData. - * @implements ISignatureAndData + * @classdesc Represents a ConsensusState. + * @implements IConsensusState * @constructor - * @param {ibc.lightclients.solomachine.v2.ISignatureAndData=} [properties] Properties to set + * @param {ibc.lightclients.solomachine.v2.IConsensusState=} [properties] Properties to set */ - function SignatureAndData(properties) { + function ConsensusState(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -69403,101 +75557,88 @@ } /** - * SignatureAndData signature. - * @member {Uint8Array} signature - * @memberof ibc.lightclients.solomachine.v2.SignatureAndData - * @instance - */ - SignatureAndData.prototype.signature = $util.newBuffer([]); - - /** - * SignatureAndData data_type. - * @member {ibc.lightclients.solomachine.v2.DataType} data_type - * @memberof ibc.lightclients.solomachine.v2.SignatureAndData + * ConsensusState public_key. + * @member {google.protobuf.IAny|null|undefined} public_key + * @memberof ibc.lightclients.solomachine.v2.ConsensusState * @instance */ - SignatureAndData.prototype.data_type = 0; + ConsensusState.prototype.public_key = null; /** - * SignatureAndData data. - * @member {Uint8Array} data - * @memberof ibc.lightclients.solomachine.v2.SignatureAndData + * ConsensusState diversifier. + * @member {string} diversifier + * @memberof ibc.lightclients.solomachine.v2.ConsensusState * @instance */ - SignatureAndData.prototype.data = $util.newBuffer([]); + ConsensusState.prototype.diversifier = ""; /** - * SignatureAndData timestamp. + * ConsensusState timestamp. * @member {Long} timestamp - * @memberof ibc.lightclients.solomachine.v2.SignatureAndData + * @memberof ibc.lightclients.solomachine.v2.ConsensusState * @instance */ - SignatureAndData.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + ConsensusState.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** - * Encodes the specified SignatureAndData message. Does not implicitly {@link ibc.lightclients.solomachine.v2.SignatureAndData.verify|verify} messages. + * Encodes the specified ConsensusState message. Does not implicitly {@link ibc.lightclients.solomachine.v2.ConsensusState.verify|verify} messages. * @function encode - * @memberof ibc.lightclients.solomachine.v2.SignatureAndData + * @memberof ibc.lightclients.solomachine.v2.ConsensusState * @static - * @param {ibc.lightclients.solomachine.v2.ISignatureAndData} message SignatureAndData message or plain object to encode + * @param {ibc.lightclients.solomachine.v2.IConsensusState} message ConsensusState message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SignatureAndData.encode = function encode(message, writer) { + ConsensusState.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.signature != null && Object.hasOwnProperty.call(message, "signature")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.signature); - if (message.data_type != null && Object.hasOwnProperty.call(message, "data_type")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.data_type); - if (message.data != null && Object.hasOwnProperty.call(message, "data")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.data); + if (message.public_key != null && Object.hasOwnProperty.call(message, "public_key")) + $root.google.protobuf.Any.encode(message.public_key, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.diversifier != null && Object.hasOwnProperty.call(message, "diversifier")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.diversifier); if (message.timestamp != null && Object.hasOwnProperty.call(message, "timestamp")) - writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.timestamp); + writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.timestamp); return writer; }; /** - * Encodes the specified SignatureAndData message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v2.SignatureAndData.verify|verify} messages. + * Encodes the specified ConsensusState message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v2.ConsensusState.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.lightclients.solomachine.v2.SignatureAndData + * @memberof ibc.lightclients.solomachine.v2.ConsensusState * @static - * @param {ibc.lightclients.solomachine.v2.ISignatureAndData} message SignatureAndData message or plain object to encode + * @param {ibc.lightclients.solomachine.v2.IConsensusState} message ConsensusState message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SignatureAndData.encodeDelimited = function encodeDelimited(message, writer) { + ConsensusState.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SignatureAndData message from the specified reader or buffer. + * Decodes a ConsensusState message from the specified reader or buffer. * @function decode - * @memberof ibc.lightclients.solomachine.v2.SignatureAndData + * @memberof ibc.lightclients.solomachine.v2.ConsensusState * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.lightclients.solomachine.v2.SignatureAndData} SignatureAndData + * @returns {ibc.lightclients.solomachine.v2.ConsensusState} ConsensusState * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SignatureAndData.decode = function decode(reader, length) { + ConsensusState.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.solomachine.v2.SignatureAndData(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.solomachine.v2.ConsensusState(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.signature = reader.bytes(); + message.public_key = $root.google.protobuf.Any.decode(reader, reader.uint32()); break; case 2: - message.data_type = reader.int32(); + message.diversifier = reader.string(); break; case 3: - message.data = reader.bytes(); - break; - case 4: message.timestamp = reader.uint64(); break; default: @@ -69509,54 +75650,40 @@ }; /** - * Decodes a SignatureAndData message from the specified reader or buffer, length delimited. + * Decodes a ConsensusState message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.lightclients.solomachine.v2.SignatureAndData + * @memberof ibc.lightclients.solomachine.v2.ConsensusState * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.lightclients.solomachine.v2.SignatureAndData} SignatureAndData + * @returns {ibc.lightclients.solomachine.v2.ConsensusState} ConsensusState * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SignatureAndData.decodeDelimited = function decodeDelimited(reader) { + ConsensusState.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SignatureAndData message. + * Verifies a ConsensusState message. * @function verify - * @memberof ibc.lightclients.solomachine.v2.SignatureAndData + * @memberof ibc.lightclients.solomachine.v2.ConsensusState * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SignatureAndData.verify = function verify(message) { + ConsensusState.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.signature != null && message.hasOwnProperty("signature")) - if (!(message.signature && typeof message.signature.length === "number" || $util.isString(message.signature))) - return "signature: buffer expected"; - if (message.data_type != null && message.hasOwnProperty("data_type")) - switch (message.data_type) { - default: - return "data_type: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - break; - } - if (message.data != null && message.hasOwnProperty("data")) - if (!(message.data && typeof message.data.length === "number" || $util.isString(message.data))) - return "data: buffer expected"; + if (message.public_key != null && message.hasOwnProperty("public_key")) { + var error = $root.google.protobuf.Any.verify(message.public_key); + if (error) + return "public_key." + error; + } + if (message.diversifier != null && message.hasOwnProperty("diversifier")) + if (!$util.isString(message.diversifier)) + return "diversifier: string expected"; if (message.timestamp != null && message.hasOwnProperty("timestamp")) if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high))) return "timestamp: integer|Long expected"; @@ -69564,69 +75691,24 @@ }; /** - * Creates a SignatureAndData message from a plain object. Also converts values to their respective internal types. + * Creates a ConsensusState message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.lightclients.solomachine.v2.SignatureAndData + * @memberof ibc.lightclients.solomachine.v2.ConsensusState * @static * @param {Object.} object Plain object - * @returns {ibc.lightclients.solomachine.v2.SignatureAndData} SignatureAndData + * @returns {ibc.lightclients.solomachine.v2.ConsensusState} ConsensusState */ - SignatureAndData.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.lightclients.solomachine.v2.SignatureAndData) + ConsensusState.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.lightclients.solomachine.v2.ConsensusState) return object; - var message = new $root.ibc.lightclients.solomachine.v2.SignatureAndData(); - if (object.signature != null) - if (typeof object.signature === "string") - $util.base64.decode(object.signature, message.signature = $util.newBuffer($util.base64.length(object.signature)), 0); - else if (object.signature.length) - message.signature = object.signature; - switch (object.data_type) { - case "DATA_TYPE_UNINITIALIZED_UNSPECIFIED": - case 0: - message.data_type = 0; - break; - case "DATA_TYPE_CLIENT_STATE": - case 1: - message.data_type = 1; - break; - case "DATA_TYPE_CONSENSUS_STATE": - case 2: - message.data_type = 2; - break; - case "DATA_TYPE_CONNECTION_STATE": - case 3: - message.data_type = 3; - break; - case "DATA_TYPE_CHANNEL_STATE": - case 4: - message.data_type = 4; - break; - case "DATA_TYPE_PACKET_COMMITMENT": - case 5: - message.data_type = 5; - break; - case "DATA_TYPE_PACKET_ACKNOWLEDGEMENT": - case 6: - message.data_type = 6; - break; - case "DATA_TYPE_PACKET_RECEIPT_ABSENCE": - case 7: - message.data_type = 7; - break; - case "DATA_TYPE_NEXT_SEQUENCE_RECV": - case 8: - message.data_type = 8; - break; - case "DATA_TYPE_HEADER": - case 9: - message.data_type = 9; - break; + var message = new $root.ibc.lightclients.solomachine.v2.ConsensusState(); + if (object.public_key != null) { + if (typeof object.public_key !== "object") + throw TypeError(".ibc.lightclients.solomachine.v2.ConsensusState.public_key: object expected"); + message.public_key = $root.google.protobuf.Any.fromObject(object.public_key); } - if (object.data != null) - if (typeof object.data === "string") - $util.base64.decode(object.data, message.data = $util.newBuffer($util.base64.length(object.data)), 0); - else if (object.data.length) - message.data = object.data; + if (object.diversifier != null) + message.diversifier = String(object.diversifier); if (object.timestamp != null) if ($util.Long) (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true; @@ -69640,46 +75722,31 @@ }; /** - * Creates a plain object from a SignatureAndData message. Also converts values to other types if specified. + * Creates a plain object from a ConsensusState message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.lightclients.solomachine.v2.SignatureAndData + * @memberof ibc.lightclients.solomachine.v2.ConsensusState * @static - * @param {ibc.lightclients.solomachine.v2.SignatureAndData} message SignatureAndData + * @param {ibc.lightclients.solomachine.v2.ConsensusState} message ConsensusState * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SignatureAndData.toObject = function toObject(message, options) { + ConsensusState.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - if (options.bytes === String) - object.signature = ""; - else { - object.signature = []; - if (options.bytes !== Array) - object.signature = $util.newBuffer(object.signature); - } - object.data_type = options.enums === String ? "DATA_TYPE_UNINITIALIZED_UNSPECIFIED" : 0; - if (options.bytes === String) - object.data = ""; - else { - object.data = []; - if (options.bytes !== Array) - object.data = $util.newBuffer(object.data); - } + object.public_key = null; + object.diversifier = ""; if ($util.Long) { var long = new $util.Long(0, 0, true); object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else object.timestamp = options.longs === String ? "0" : 0; } - if (message.signature != null && message.hasOwnProperty("signature")) - object.signature = options.bytes === String ? $util.base64.encode(message.signature, 0, message.signature.length) : options.bytes === Array ? Array.prototype.slice.call(message.signature) : message.signature; - if (message.data_type != null && message.hasOwnProperty("data_type")) - object.data_type = options.enums === String ? $root.ibc.lightclients.solomachine.v2.DataType[message.data_type] : message.data_type; - if (message.data != null && message.hasOwnProperty("data")) - object.data = options.bytes === String ? $util.base64.encode(message.data, 0, message.data.length) : options.bytes === Array ? Array.prototype.slice.call(message.data) : message.data; + if (message.public_key != null && message.hasOwnProperty("public_key")) + object.public_key = $root.google.protobuf.Any.toObject(message.public_key, options); + if (message.diversifier != null && message.hasOwnProperty("diversifier")) + object.diversifier = message.diversifier; if (message.timestamp != null && message.hasOwnProperty("timestamp")) if (typeof message.timestamp === "number") object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp; @@ -69689,38 +75756,41 @@ }; /** - * Converts this SignatureAndData to JSON. + * Converts this ConsensusState to JSON. * @function toJSON - * @memberof ibc.lightclients.solomachine.v2.SignatureAndData + * @memberof ibc.lightclients.solomachine.v2.ConsensusState * @instance * @returns {Object.} JSON object */ - SignatureAndData.prototype.toJSON = function toJSON() { + ConsensusState.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return SignatureAndData; + return ConsensusState; })(); - v2.TimestampedSignatureData = (function() { + v2.Header = (function() { /** - * Properties of a TimestampedSignatureData. + * Properties of a Header. * @memberof ibc.lightclients.solomachine.v2 - * @interface ITimestampedSignatureData - * @property {Uint8Array|null} [signature_data] TimestampedSignatureData signature_data - * @property {Long|null} [timestamp] TimestampedSignatureData timestamp + * @interface IHeader + * @property {Long|null} [sequence] Header sequence + * @property {Long|null} [timestamp] Header timestamp + * @property {Uint8Array|null} [signature] Header signature + * @property {google.protobuf.IAny|null} [new_public_key] Header new_public_key + * @property {string|null} [new_diversifier] Header new_diversifier */ /** - * Constructs a new TimestampedSignatureData. + * Constructs a new Header. * @memberof ibc.lightclients.solomachine.v2 - * @classdesc Represents a TimestampedSignatureData. - * @implements ITimestampedSignatureData + * @classdesc Represents a Header. + * @implements IHeader * @constructor - * @param {ibc.lightclients.solomachine.v2.ITimestampedSignatureData=} [properties] Properties to set + * @param {ibc.lightclients.solomachine.v2.IHeader=} [properties] Properties to set */ - function TimestampedSignatureData(properties) { + function Header(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -69728,77 +75798,116 @@ } /** - * TimestampedSignatureData signature_data. - * @member {Uint8Array} signature_data - * @memberof ibc.lightclients.solomachine.v2.TimestampedSignatureData + * Header sequence. + * @member {Long} sequence + * @memberof ibc.lightclients.solomachine.v2.Header * @instance */ - TimestampedSignatureData.prototype.signature_data = $util.newBuffer([]); + Header.prototype.sequence = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** - * TimestampedSignatureData timestamp. + * Header timestamp. * @member {Long} timestamp - * @memberof ibc.lightclients.solomachine.v2.TimestampedSignatureData + * @memberof ibc.lightclients.solomachine.v2.Header * @instance */ - TimestampedSignatureData.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + Header.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** - * Encodes the specified TimestampedSignatureData message. Does not implicitly {@link ibc.lightclients.solomachine.v2.TimestampedSignatureData.verify|verify} messages. + * Header signature. + * @member {Uint8Array} signature + * @memberof ibc.lightclients.solomachine.v2.Header + * @instance + */ + Header.prototype.signature = $util.newBuffer([]); + + /** + * Header new_public_key. + * @member {google.protobuf.IAny|null|undefined} new_public_key + * @memberof ibc.lightclients.solomachine.v2.Header + * @instance + */ + Header.prototype.new_public_key = null; + + /** + * Header new_diversifier. + * @member {string} new_diversifier + * @memberof ibc.lightclients.solomachine.v2.Header + * @instance + */ + Header.prototype.new_diversifier = ""; + + /** + * Encodes the specified Header message. Does not implicitly {@link ibc.lightclients.solomachine.v2.Header.verify|verify} messages. * @function encode - * @memberof ibc.lightclients.solomachine.v2.TimestampedSignatureData + * @memberof ibc.lightclients.solomachine.v2.Header * @static - * @param {ibc.lightclients.solomachine.v2.ITimestampedSignatureData} message TimestampedSignatureData message or plain object to encode + * @param {ibc.lightclients.solomachine.v2.IHeader} message Header message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TimestampedSignatureData.encode = function encode(message, writer) { + Header.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.signature_data != null && Object.hasOwnProperty.call(message, "signature_data")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.signature_data); + if (message.sequence != null && Object.hasOwnProperty.call(message, "sequence")) + writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.sequence); if (message.timestamp != null && Object.hasOwnProperty.call(message, "timestamp")) writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.timestamp); + if (message.signature != null && Object.hasOwnProperty.call(message, "signature")) + writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.signature); + if (message.new_public_key != null && Object.hasOwnProperty.call(message, "new_public_key")) + $root.google.protobuf.Any.encode(message.new_public_key, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.new_diversifier != null && Object.hasOwnProperty.call(message, "new_diversifier")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.new_diversifier); return writer; }; /** - * Encodes the specified TimestampedSignatureData message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v2.TimestampedSignatureData.verify|verify} messages. + * Encodes the specified Header message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v2.Header.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.lightclients.solomachine.v2.TimestampedSignatureData + * @memberof ibc.lightclients.solomachine.v2.Header * @static - * @param {ibc.lightclients.solomachine.v2.ITimestampedSignatureData} message TimestampedSignatureData message or plain object to encode + * @param {ibc.lightclients.solomachine.v2.IHeader} message Header message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TimestampedSignatureData.encodeDelimited = function encodeDelimited(message, writer) { + Header.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TimestampedSignatureData message from the specified reader or buffer. + * Decodes a Header message from the specified reader or buffer. * @function decode - * @memberof ibc.lightclients.solomachine.v2.TimestampedSignatureData + * @memberof ibc.lightclients.solomachine.v2.Header * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.lightclients.solomachine.v2.TimestampedSignatureData} TimestampedSignatureData + * @returns {ibc.lightclients.solomachine.v2.Header} Header * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TimestampedSignatureData.decode = function decode(reader, length) { + Header.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.solomachine.v2.TimestampedSignatureData(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.solomachine.v2.Header(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.signature_data = reader.bytes(); + message.sequence = reader.uint64(); break; case 2: message.timestamp = reader.uint64(); break; + case 3: + message.signature = reader.bytes(); + break; + case 4: + message.new_public_key = $root.google.protobuf.Any.decode(reader, reader.uint32()); + break; + case 5: + message.new_diversifier = reader.string(); + break; default: reader.skipType(tag & 7); break; @@ -69808,58 +75917,73 @@ }; /** - * Decodes a TimestampedSignatureData message from the specified reader or buffer, length delimited. + * Decodes a Header message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.lightclients.solomachine.v2.TimestampedSignatureData + * @memberof ibc.lightclients.solomachine.v2.Header * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.lightclients.solomachine.v2.TimestampedSignatureData} TimestampedSignatureData + * @returns {ibc.lightclients.solomachine.v2.Header} Header * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TimestampedSignatureData.decodeDelimited = function decodeDelimited(reader) { + Header.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TimestampedSignatureData message. + * Verifies a Header message. * @function verify - * @memberof ibc.lightclients.solomachine.v2.TimestampedSignatureData + * @memberof ibc.lightclients.solomachine.v2.Header * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TimestampedSignatureData.verify = function verify(message) { + Header.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.signature_data != null && message.hasOwnProperty("signature_data")) - if (!(message.signature_data && typeof message.signature_data.length === "number" || $util.isString(message.signature_data))) - return "signature_data: buffer expected"; + if (message.sequence != null && message.hasOwnProperty("sequence")) + if (!$util.isInteger(message.sequence) && !(message.sequence && $util.isInteger(message.sequence.low) && $util.isInteger(message.sequence.high))) + return "sequence: integer|Long expected"; if (message.timestamp != null && message.hasOwnProperty("timestamp")) if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high))) return "timestamp: integer|Long expected"; + if (message.signature != null && message.hasOwnProperty("signature")) + if (!(message.signature && typeof message.signature.length === "number" || $util.isString(message.signature))) + return "signature: buffer expected"; + if (message.new_public_key != null && message.hasOwnProperty("new_public_key")) { + var error = $root.google.protobuf.Any.verify(message.new_public_key); + if (error) + return "new_public_key." + error; + } + if (message.new_diversifier != null && message.hasOwnProperty("new_diversifier")) + if (!$util.isString(message.new_diversifier)) + return "new_diversifier: string expected"; return null; }; /** - * Creates a TimestampedSignatureData message from a plain object. Also converts values to their respective internal types. + * Creates a Header message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.lightclients.solomachine.v2.TimestampedSignatureData + * @memberof ibc.lightclients.solomachine.v2.Header * @static * @param {Object.} object Plain object - * @returns {ibc.lightclients.solomachine.v2.TimestampedSignatureData} TimestampedSignatureData + * @returns {ibc.lightclients.solomachine.v2.Header} Header */ - TimestampedSignatureData.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.lightclients.solomachine.v2.TimestampedSignatureData) + Header.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.lightclients.solomachine.v2.Header) return object; - var message = new $root.ibc.lightclients.solomachine.v2.TimestampedSignatureData(); - if (object.signature_data != null) - if (typeof object.signature_data === "string") - $util.base64.decode(object.signature_data, message.signature_data = $util.newBuffer($util.base64.length(object.signature_data)), 0); - else if (object.signature_data.length) - message.signature_data = object.signature_data; + var message = new $root.ibc.lightclients.solomachine.v2.Header(); + if (object.sequence != null) + if ($util.Long) + (message.sequence = $util.Long.fromValue(object.sequence)).unsigned = true; + else if (typeof object.sequence === "string") + message.sequence = parseInt(object.sequence, 10); + else if (typeof object.sequence === "number") + message.sequence = object.sequence; + else if (typeof object.sequence === "object") + message.sequence = new $util.LongBits(object.sequence.low >>> 0, object.sequence.high >>> 0).toNumber(true); if (object.timestamp != null) if ($util.Long) (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true; @@ -69869,198 +75993,212 @@ message.timestamp = object.timestamp; else if (typeof object.timestamp === "object") message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true); + if (object.signature != null) + if (typeof object.signature === "string") + $util.base64.decode(object.signature, message.signature = $util.newBuffer($util.base64.length(object.signature)), 0); + else if (object.signature.length) + message.signature = object.signature; + if (object.new_public_key != null) { + if (typeof object.new_public_key !== "object") + throw TypeError(".ibc.lightclients.solomachine.v2.Header.new_public_key: object expected"); + message.new_public_key = $root.google.protobuf.Any.fromObject(object.new_public_key); + } + if (object.new_diversifier != null) + message.new_diversifier = String(object.new_diversifier); return message; }; /** - * Creates a plain object from a TimestampedSignatureData message. Also converts values to other types if specified. + * Creates a plain object from a Header message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.lightclients.solomachine.v2.TimestampedSignatureData + * @memberof ibc.lightclients.solomachine.v2.Header * @static - * @param {ibc.lightclients.solomachine.v2.TimestampedSignatureData} message TimestampedSignatureData + * @param {ibc.lightclients.solomachine.v2.Header} message Header * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TimestampedSignatureData.toObject = function toObject(message, options) { + Header.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - if (options.bytes === String) - object.signature_data = ""; - else { - object.signature_data = []; - if (options.bytes !== Array) - object.signature_data = $util.newBuffer(object.signature_data); - } + if ($util.Long) { + var long = new $util.Long(0, 0, true); + object.sequence = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.sequence = options.longs === String ? "0" : 0; if ($util.Long) { var long = new $util.Long(0, 0, true); object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else object.timestamp = options.longs === String ? "0" : 0; + if (options.bytes === String) + object.signature = ""; + else { + object.signature = []; + if (options.bytes !== Array) + object.signature = $util.newBuffer(object.signature); + } + object.new_public_key = null; + object.new_diversifier = ""; } - if (message.signature_data != null && message.hasOwnProperty("signature_data")) - object.signature_data = options.bytes === String ? $util.base64.encode(message.signature_data, 0, message.signature_data.length) : options.bytes === Array ? Array.prototype.slice.call(message.signature_data) : message.signature_data; + if (message.sequence != null && message.hasOwnProperty("sequence")) + if (typeof message.sequence === "number") + object.sequence = options.longs === String ? String(message.sequence) : message.sequence; + else + object.sequence = options.longs === String ? $util.Long.prototype.toString.call(message.sequence) : options.longs === Number ? new $util.LongBits(message.sequence.low >>> 0, message.sequence.high >>> 0).toNumber(true) : message.sequence; if (message.timestamp != null && message.hasOwnProperty("timestamp")) if (typeof message.timestamp === "number") object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp; else object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber(true) : message.timestamp; + if (message.signature != null && message.hasOwnProperty("signature")) + object.signature = options.bytes === String ? $util.base64.encode(message.signature, 0, message.signature.length) : options.bytes === Array ? Array.prototype.slice.call(message.signature) : message.signature; + if (message.new_public_key != null && message.hasOwnProperty("new_public_key")) + object.new_public_key = $root.google.protobuf.Any.toObject(message.new_public_key, options); + if (message.new_diversifier != null && message.hasOwnProperty("new_diversifier")) + object.new_diversifier = message.new_diversifier; return object; }; /** - * Converts this TimestampedSignatureData to JSON. + * Converts this Header to JSON. * @function toJSON - * @memberof ibc.lightclients.solomachine.v2.TimestampedSignatureData + * @memberof ibc.lightclients.solomachine.v2.Header * @instance * @returns {Object.} JSON object */ - TimestampedSignatureData.prototype.toJSON = function toJSON() { + Header.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return TimestampedSignatureData; + return Header; })(); - v2.SignBytes = (function() { + v2.Misbehaviour = (function() { /** - * Properties of a SignBytes. + * Properties of a Misbehaviour. * @memberof ibc.lightclients.solomachine.v2 - * @interface ISignBytes - * @property {Long|null} [sequence] SignBytes sequence - * @property {Long|null} [timestamp] SignBytes timestamp - * @property {string|null} [diversifier] SignBytes diversifier - * @property {ibc.lightclients.solomachine.v2.DataType|null} [data_type] SignBytes data_type - * @property {Uint8Array|null} [data] SignBytes data + * @interface IMisbehaviour + * @property {string|null} [client_id] Misbehaviour client_id + * @property {Long|null} [sequence] Misbehaviour sequence + * @property {ibc.lightclients.solomachine.v2.ISignatureAndData|null} [signature_one] Misbehaviour signature_one + * @property {ibc.lightclients.solomachine.v2.ISignatureAndData|null} [signature_two] Misbehaviour signature_two */ /** - * Constructs a new SignBytes. + * Constructs a new Misbehaviour. * @memberof ibc.lightclients.solomachine.v2 - * @classdesc Represents a SignBytes. - * @implements ISignBytes + * @classdesc Represents a Misbehaviour. + * @implements IMisbehaviour * @constructor - * @param {ibc.lightclients.solomachine.v2.ISignBytes=} [properties] Properties to set + * @param {ibc.lightclients.solomachine.v2.IMisbehaviour=} [properties] Properties to set */ - function SignBytes(properties) { + function Misbehaviour(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; - } - - /** - * SignBytes sequence. - * @member {Long} sequence - * @memberof ibc.lightclients.solomachine.v2.SignBytes - * @instance - */ - SignBytes.prototype.sequence = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + } /** - * SignBytes timestamp. - * @member {Long} timestamp - * @memberof ibc.lightclients.solomachine.v2.SignBytes + * Misbehaviour client_id. + * @member {string} client_id + * @memberof ibc.lightclients.solomachine.v2.Misbehaviour * @instance */ - SignBytes.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + Misbehaviour.prototype.client_id = ""; /** - * SignBytes diversifier. - * @member {string} diversifier - * @memberof ibc.lightclients.solomachine.v2.SignBytes + * Misbehaviour sequence. + * @member {Long} sequence + * @memberof ibc.lightclients.solomachine.v2.Misbehaviour * @instance */ - SignBytes.prototype.diversifier = ""; + Misbehaviour.prototype.sequence = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** - * SignBytes data_type. - * @member {ibc.lightclients.solomachine.v2.DataType} data_type - * @memberof ibc.lightclients.solomachine.v2.SignBytes + * Misbehaviour signature_one. + * @member {ibc.lightclients.solomachine.v2.ISignatureAndData|null|undefined} signature_one + * @memberof ibc.lightclients.solomachine.v2.Misbehaviour * @instance */ - SignBytes.prototype.data_type = 0; + Misbehaviour.prototype.signature_one = null; /** - * SignBytes data. - * @member {Uint8Array} data - * @memberof ibc.lightclients.solomachine.v2.SignBytes + * Misbehaviour signature_two. + * @member {ibc.lightclients.solomachine.v2.ISignatureAndData|null|undefined} signature_two + * @memberof ibc.lightclients.solomachine.v2.Misbehaviour * @instance */ - SignBytes.prototype.data = $util.newBuffer([]); + Misbehaviour.prototype.signature_two = null; /** - * Encodes the specified SignBytes message. Does not implicitly {@link ibc.lightclients.solomachine.v2.SignBytes.verify|verify} messages. + * Encodes the specified Misbehaviour message. Does not implicitly {@link ibc.lightclients.solomachine.v2.Misbehaviour.verify|verify} messages. * @function encode - * @memberof ibc.lightclients.solomachine.v2.SignBytes + * @memberof ibc.lightclients.solomachine.v2.Misbehaviour * @static - * @param {ibc.lightclients.solomachine.v2.ISignBytes} message SignBytes message or plain object to encode + * @param {ibc.lightclients.solomachine.v2.IMisbehaviour} message Misbehaviour message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SignBytes.encode = function encode(message, writer) { + Misbehaviour.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.client_id != null && Object.hasOwnProperty.call(message, "client_id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.client_id); if (message.sequence != null && Object.hasOwnProperty.call(message, "sequence")) - writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.sequence); - if (message.timestamp != null && Object.hasOwnProperty.call(message, "timestamp")) - writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.timestamp); - if (message.diversifier != null && Object.hasOwnProperty.call(message, "diversifier")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.diversifier); - if (message.data_type != null && Object.hasOwnProperty.call(message, "data_type")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.data_type); - if (message.data != null && Object.hasOwnProperty.call(message, "data")) - writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.data); + writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.sequence); + if (message.signature_one != null && Object.hasOwnProperty.call(message, "signature_one")) + $root.ibc.lightclients.solomachine.v2.SignatureAndData.encode(message.signature_one, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.signature_two != null && Object.hasOwnProperty.call(message, "signature_two")) + $root.ibc.lightclients.solomachine.v2.SignatureAndData.encode(message.signature_two, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; /** - * Encodes the specified SignBytes message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v2.SignBytes.verify|verify} messages. + * Encodes the specified Misbehaviour message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v2.Misbehaviour.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.lightclients.solomachine.v2.SignBytes + * @memberof ibc.lightclients.solomachine.v2.Misbehaviour * @static - * @param {ibc.lightclients.solomachine.v2.ISignBytes} message SignBytes message or plain object to encode + * @param {ibc.lightclients.solomachine.v2.IMisbehaviour} message Misbehaviour message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SignBytes.encodeDelimited = function encodeDelimited(message, writer) { + Misbehaviour.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SignBytes message from the specified reader or buffer. + * Decodes a Misbehaviour message from the specified reader or buffer. * @function decode - * @memberof ibc.lightclients.solomachine.v2.SignBytes + * @memberof ibc.lightclients.solomachine.v2.Misbehaviour * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.lightclients.solomachine.v2.SignBytes} SignBytes + * @returns {ibc.lightclients.solomachine.v2.Misbehaviour} Misbehaviour * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SignBytes.decode = function decode(reader, length) { + Misbehaviour.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.solomachine.v2.SignBytes(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.solomachine.v2.Misbehaviour(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.sequence = reader.uint64(); + message.client_id = reader.string(); break; case 2: - message.timestamp = reader.uint64(); + message.sequence = reader.uint64(); break; case 3: - message.diversifier = reader.string(); + message.signature_one = $root.ibc.lightclients.solomachine.v2.SignatureAndData.decode(reader, reader.uint32()); break; case 4: - message.data_type = reader.int32(); - break; - case 5: - message.data = reader.bytes(); + message.signature_two = $root.ibc.lightclients.solomachine.v2.SignatureAndData.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -70071,75 +76209,65 @@ }; /** - * Decodes a SignBytes message from the specified reader or buffer, length delimited. + * Decodes a Misbehaviour message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.lightclients.solomachine.v2.SignBytes + * @memberof ibc.lightclients.solomachine.v2.Misbehaviour * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.lightclients.solomachine.v2.SignBytes} SignBytes + * @returns {ibc.lightclients.solomachine.v2.Misbehaviour} Misbehaviour * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SignBytes.decodeDelimited = function decodeDelimited(reader) { + Misbehaviour.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SignBytes message. + * Verifies a Misbehaviour message. * @function verify - * @memberof ibc.lightclients.solomachine.v2.SignBytes + * @memberof ibc.lightclients.solomachine.v2.Misbehaviour * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SignBytes.verify = function verify(message) { + Misbehaviour.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.client_id != null && message.hasOwnProperty("client_id")) + if (!$util.isString(message.client_id)) + return "client_id: string expected"; if (message.sequence != null && message.hasOwnProperty("sequence")) if (!$util.isInteger(message.sequence) && !(message.sequence && $util.isInteger(message.sequence.low) && $util.isInteger(message.sequence.high))) return "sequence: integer|Long expected"; - if (message.timestamp != null && message.hasOwnProperty("timestamp")) - if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high))) - return "timestamp: integer|Long expected"; - if (message.diversifier != null && message.hasOwnProperty("diversifier")) - if (!$util.isString(message.diversifier)) - return "diversifier: string expected"; - if (message.data_type != null && message.hasOwnProperty("data_type")) - switch (message.data_type) { - default: - return "data_type: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - break; - } - if (message.data != null && message.hasOwnProperty("data")) - if (!(message.data && typeof message.data.length === "number" || $util.isString(message.data))) - return "data: buffer expected"; + if (message.signature_one != null && message.hasOwnProperty("signature_one")) { + var error = $root.ibc.lightclients.solomachine.v2.SignatureAndData.verify(message.signature_one); + if (error) + return "signature_one." + error; + } + if (message.signature_two != null && message.hasOwnProperty("signature_two")) { + var error = $root.ibc.lightclients.solomachine.v2.SignatureAndData.verify(message.signature_two); + if (error) + return "signature_two." + error; + } return null; }; /** - * Creates a SignBytes message from a plain object. Also converts values to their respective internal types. + * Creates a Misbehaviour message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.lightclients.solomachine.v2.SignBytes + * @memberof ibc.lightclients.solomachine.v2.Misbehaviour * @static * @param {Object.} object Plain object - * @returns {ibc.lightclients.solomachine.v2.SignBytes} SignBytes + * @returns {ibc.lightclients.solomachine.v2.Misbehaviour} Misbehaviour */ - SignBytes.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.lightclients.solomachine.v2.SignBytes) + Misbehaviour.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.lightclients.solomachine.v2.Misbehaviour) return object; - var message = new $root.ibc.lightclients.solomachine.v2.SignBytes(); + var message = new $root.ibc.lightclients.solomachine.v2.Misbehaviour(); + if (object.client_id != null) + message.client_id = String(object.client_id); if (object.sequence != null) if ($util.Long) (message.sequence = $util.Long.fromValue(object.sequence)).unsigned = true; @@ -70149,183 +76277,91 @@ message.sequence = object.sequence; else if (typeof object.sequence === "object") message.sequence = new $util.LongBits(object.sequence.low >>> 0, object.sequence.high >>> 0).toNumber(true); - if (object.timestamp != null) - if ($util.Long) - (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true; - else if (typeof object.timestamp === "string") - message.timestamp = parseInt(object.timestamp, 10); - else if (typeof object.timestamp === "number") - message.timestamp = object.timestamp; - else if (typeof object.timestamp === "object") - message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true); - if (object.diversifier != null) - message.diversifier = String(object.diversifier); - switch (object.data_type) { - case "DATA_TYPE_UNINITIALIZED_UNSPECIFIED": - case 0: - message.data_type = 0; - break; - case "DATA_TYPE_CLIENT_STATE": - case 1: - message.data_type = 1; - break; - case "DATA_TYPE_CONSENSUS_STATE": - case 2: - message.data_type = 2; - break; - case "DATA_TYPE_CONNECTION_STATE": - case 3: - message.data_type = 3; - break; - case "DATA_TYPE_CHANNEL_STATE": - case 4: - message.data_type = 4; - break; - case "DATA_TYPE_PACKET_COMMITMENT": - case 5: - message.data_type = 5; - break; - case "DATA_TYPE_PACKET_ACKNOWLEDGEMENT": - case 6: - message.data_type = 6; - break; - case "DATA_TYPE_PACKET_RECEIPT_ABSENCE": - case 7: - message.data_type = 7; - break; - case "DATA_TYPE_NEXT_SEQUENCE_RECV": - case 8: - message.data_type = 8; - break; - case "DATA_TYPE_HEADER": - case 9: - message.data_type = 9; - break; + if (object.signature_one != null) { + if (typeof object.signature_one !== "object") + throw TypeError(".ibc.lightclients.solomachine.v2.Misbehaviour.signature_one: object expected"); + message.signature_one = $root.ibc.lightclients.solomachine.v2.SignatureAndData.fromObject(object.signature_one); + } + if (object.signature_two != null) { + if (typeof object.signature_two !== "object") + throw TypeError(".ibc.lightclients.solomachine.v2.Misbehaviour.signature_two: object expected"); + message.signature_two = $root.ibc.lightclients.solomachine.v2.SignatureAndData.fromObject(object.signature_two); } - if (object.data != null) - if (typeof object.data === "string") - $util.base64.decode(object.data, message.data = $util.newBuffer($util.base64.length(object.data)), 0); - else if (object.data.length) - message.data = object.data; return message; }; /** - * Creates a plain object from a SignBytes message. Also converts values to other types if specified. + * Creates a plain object from a Misbehaviour message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.lightclients.solomachine.v2.SignBytes + * @memberof ibc.lightclients.solomachine.v2.Misbehaviour * @static - * @param {ibc.lightclients.solomachine.v2.SignBytes} message SignBytes + * @param {ibc.lightclients.solomachine.v2.Misbehaviour} message Misbehaviour * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SignBytes.toObject = function toObject(message, options) { + Misbehaviour.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { + object.client_id = ""; if ($util.Long) { var long = new $util.Long(0, 0, true); object.sequence = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else object.sequence = options.longs === String ? "0" : 0; - if ($util.Long) { - var long = new $util.Long(0, 0, true); - object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.timestamp = options.longs === String ? "0" : 0; - object.diversifier = ""; - object.data_type = options.enums === String ? "DATA_TYPE_UNINITIALIZED_UNSPECIFIED" : 0; - if (options.bytes === String) - object.data = ""; - else { - object.data = []; - if (options.bytes !== Array) - object.data = $util.newBuffer(object.data); - } + object.signature_one = null; + object.signature_two = null; } + if (message.client_id != null && message.hasOwnProperty("client_id")) + object.client_id = message.client_id; if (message.sequence != null && message.hasOwnProperty("sequence")) if (typeof message.sequence === "number") object.sequence = options.longs === String ? String(message.sequence) : message.sequence; else object.sequence = options.longs === String ? $util.Long.prototype.toString.call(message.sequence) : options.longs === Number ? new $util.LongBits(message.sequence.low >>> 0, message.sequence.high >>> 0).toNumber(true) : message.sequence; - if (message.timestamp != null && message.hasOwnProperty("timestamp")) - if (typeof message.timestamp === "number") - object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp; - else - object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber(true) : message.timestamp; - if (message.diversifier != null && message.hasOwnProperty("diversifier")) - object.diversifier = message.diversifier; - if (message.data_type != null && message.hasOwnProperty("data_type")) - object.data_type = options.enums === String ? $root.ibc.lightclients.solomachine.v2.DataType[message.data_type] : message.data_type; - if (message.data != null && message.hasOwnProperty("data")) - object.data = options.bytes === String ? $util.base64.encode(message.data, 0, message.data.length) : options.bytes === Array ? Array.prototype.slice.call(message.data) : message.data; + if (message.signature_one != null && message.hasOwnProperty("signature_one")) + object.signature_one = $root.ibc.lightclients.solomachine.v2.SignatureAndData.toObject(message.signature_one, options); + if (message.signature_two != null && message.hasOwnProperty("signature_two")) + object.signature_two = $root.ibc.lightclients.solomachine.v2.SignatureAndData.toObject(message.signature_two, options); return object; }; /** - * Converts this SignBytes to JSON. + * Converts this Misbehaviour to JSON. * @function toJSON - * @memberof ibc.lightclients.solomachine.v2.SignBytes + * @memberof ibc.lightclients.solomachine.v2.Misbehaviour * @instance * @returns {Object.} JSON object */ - SignBytes.prototype.toJSON = function toJSON() { + Misbehaviour.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return SignBytes; - })(); - - /** - * DataType enum. - * @name ibc.lightclients.solomachine.v2.DataType - * @enum {number} - * @property {number} DATA_TYPE_UNINITIALIZED_UNSPECIFIED=0 DATA_TYPE_UNINITIALIZED_UNSPECIFIED value - * @property {number} DATA_TYPE_CLIENT_STATE=1 DATA_TYPE_CLIENT_STATE value - * @property {number} DATA_TYPE_CONSENSUS_STATE=2 DATA_TYPE_CONSENSUS_STATE value - * @property {number} DATA_TYPE_CONNECTION_STATE=3 DATA_TYPE_CONNECTION_STATE value - * @property {number} DATA_TYPE_CHANNEL_STATE=4 DATA_TYPE_CHANNEL_STATE value - * @property {number} DATA_TYPE_PACKET_COMMITMENT=5 DATA_TYPE_PACKET_COMMITMENT value - * @property {number} DATA_TYPE_PACKET_ACKNOWLEDGEMENT=6 DATA_TYPE_PACKET_ACKNOWLEDGEMENT value - * @property {number} DATA_TYPE_PACKET_RECEIPT_ABSENCE=7 DATA_TYPE_PACKET_RECEIPT_ABSENCE value - * @property {number} DATA_TYPE_NEXT_SEQUENCE_RECV=8 DATA_TYPE_NEXT_SEQUENCE_RECV value - * @property {number} DATA_TYPE_HEADER=9 DATA_TYPE_HEADER value - */ - v2.DataType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "DATA_TYPE_UNINITIALIZED_UNSPECIFIED"] = 0; - values[valuesById[1] = "DATA_TYPE_CLIENT_STATE"] = 1; - values[valuesById[2] = "DATA_TYPE_CONSENSUS_STATE"] = 2; - values[valuesById[3] = "DATA_TYPE_CONNECTION_STATE"] = 3; - values[valuesById[4] = "DATA_TYPE_CHANNEL_STATE"] = 4; - values[valuesById[5] = "DATA_TYPE_PACKET_COMMITMENT"] = 5; - values[valuesById[6] = "DATA_TYPE_PACKET_ACKNOWLEDGEMENT"] = 6; - values[valuesById[7] = "DATA_TYPE_PACKET_RECEIPT_ABSENCE"] = 7; - values[valuesById[8] = "DATA_TYPE_NEXT_SEQUENCE_RECV"] = 8; - values[valuesById[9] = "DATA_TYPE_HEADER"] = 9; - return values; + return Misbehaviour; })(); - v2.HeaderData = (function() { + v2.SignatureAndData = (function() { /** - * Properties of a HeaderData. + * Properties of a SignatureAndData. * @memberof ibc.lightclients.solomachine.v2 - * @interface IHeaderData - * @property {google.protobuf.IAny|null} [new_pub_key] HeaderData new_pub_key - * @property {string|null} [new_diversifier] HeaderData new_diversifier + * @interface ISignatureAndData + * @property {Uint8Array|null} [signature] SignatureAndData signature + * @property {ibc.lightclients.solomachine.v2.DataType|null} [data_type] SignatureAndData data_type + * @property {Uint8Array|null} [data] SignatureAndData data + * @property {Long|null} [timestamp] SignatureAndData timestamp */ /** - * Constructs a new HeaderData. + * Constructs a new SignatureAndData. * @memberof ibc.lightclients.solomachine.v2 - * @classdesc Represents a HeaderData. - * @implements IHeaderData + * @classdesc Represents a SignatureAndData. + * @implements ISignatureAndData * @constructor - * @param {ibc.lightclients.solomachine.v2.IHeaderData=} [properties] Properties to set + * @param {ibc.lightclients.solomachine.v2.ISignatureAndData=} [properties] Properties to set */ - function HeaderData(properties) { + function SignatureAndData(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -70333,76 +76369,102 @@ } /** - * HeaderData new_pub_key. - * @member {google.protobuf.IAny|null|undefined} new_pub_key - * @memberof ibc.lightclients.solomachine.v2.HeaderData + * SignatureAndData signature. + * @member {Uint8Array} signature + * @memberof ibc.lightclients.solomachine.v2.SignatureAndData * @instance */ - HeaderData.prototype.new_pub_key = null; + SignatureAndData.prototype.signature = $util.newBuffer([]); /** - * HeaderData new_diversifier. - * @member {string} new_diversifier - * @memberof ibc.lightclients.solomachine.v2.HeaderData + * SignatureAndData data_type. + * @member {ibc.lightclients.solomachine.v2.DataType} data_type + * @memberof ibc.lightclients.solomachine.v2.SignatureAndData * @instance */ - HeaderData.prototype.new_diversifier = ""; + SignatureAndData.prototype.data_type = 0; /** - * Encodes the specified HeaderData message. Does not implicitly {@link ibc.lightclients.solomachine.v2.HeaderData.verify|verify} messages. + * SignatureAndData data. + * @member {Uint8Array} data + * @memberof ibc.lightclients.solomachine.v2.SignatureAndData + * @instance + */ + SignatureAndData.prototype.data = $util.newBuffer([]); + + /** + * SignatureAndData timestamp. + * @member {Long} timestamp + * @memberof ibc.lightclients.solomachine.v2.SignatureAndData + * @instance + */ + SignatureAndData.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + + /** + * Encodes the specified SignatureAndData message. Does not implicitly {@link ibc.lightclients.solomachine.v2.SignatureAndData.verify|verify} messages. * @function encode - * @memberof ibc.lightclients.solomachine.v2.HeaderData + * @memberof ibc.lightclients.solomachine.v2.SignatureAndData * @static - * @param {ibc.lightclients.solomachine.v2.IHeaderData} message HeaderData message or plain object to encode + * @param {ibc.lightclients.solomachine.v2.ISignatureAndData} message SignatureAndData message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - HeaderData.encode = function encode(message, writer) { + SignatureAndData.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.new_pub_key != null && Object.hasOwnProperty.call(message, "new_pub_key")) - $root.google.protobuf.Any.encode(message.new_pub_key, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.new_diversifier != null && Object.hasOwnProperty.call(message, "new_diversifier")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.new_diversifier); + if (message.signature != null && Object.hasOwnProperty.call(message, "signature")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.signature); + if (message.data_type != null && Object.hasOwnProperty.call(message, "data_type")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.data_type); + if (message.data != null && Object.hasOwnProperty.call(message, "data")) + writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.data); + if (message.timestamp != null && Object.hasOwnProperty.call(message, "timestamp")) + writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.timestamp); return writer; }; /** - * Encodes the specified HeaderData message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v2.HeaderData.verify|verify} messages. + * Encodes the specified SignatureAndData message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v2.SignatureAndData.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.lightclients.solomachine.v2.HeaderData + * @memberof ibc.lightclients.solomachine.v2.SignatureAndData * @static - * @param {ibc.lightclients.solomachine.v2.IHeaderData} message HeaderData message or plain object to encode + * @param {ibc.lightclients.solomachine.v2.ISignatureAndData} message SignatureAndData message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - HeaderData.encodeDelimited = function encodeDelimited(message, writer) { + SignatureAndData.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a HeaderData message from the specified reader or buffer. + * Decodes a SignatureAndData message from the specified reader or buffer. * @function decode - * @memberof ibc.lightclients.solomachine.v2.HeaderData + * @memberof ibc.lightclients.solomachine.v2.SignatureAndData * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.lightclients.solomachine.v2.HeaderData} HeaderData + * @returns {ibc.lightclients.solomachine.v2.SignatureAndData} SignatureAndData * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - HeaderData.decode = function decode(reader, length) { + SignatureAndData.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.solomachine.v2.HeaderData(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.solomachine.v2.SignatureAndData(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.new_pub_key = $root.google.protobuf.Any.decode(reader, reader.uint32()); + message.signature = reader.bytes(); break; case 2: - message.new_diversifier = reader.string(); + message.data_type = reader.int32(); + break; + case 3: + message.data = reader.bytes(); + break; + case 4: + message.timestamp = reader.uint64(); break; default: reader.skipType(tag & 7); @@ -70413,122 +76475,218 @@ }; /** - * Decodes a HeaderData message from the specified reader or buffer, length delimited. + * Decodes a SignatureAndData message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.lightclients.solomachine.v2.HeaderData + * @memberof ibc.lightclients.solomachine.v2.SignatureAndData * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.lightclients.solomachine.v2.HeaderData} HeaderData + * @returns {ibc.lightclients.solomachine.v2.SignatureAndData} SignatureAndData * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - HeaderData.decodeDelimited = function decodeDelimited(reader) { + SignatureAndData.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a HeaderData message. + * Verifies a SignatureAndData message. * @function verify - * @memberof ibc.lightclients.solomachine.v2.HeaderData + * @memberof ibc.lightclients.solomachine.v2.SignatureAndData * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - HeaderData.verify = function verify(message) { + SignatureAndData.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.new_pub_key != null && message.hasOwnProperty("new_pub_key")) { - var error = $root.google.protobuf.Any.verify(message.new_pub_key); - if (error) - return "new_pub_key." + error; - } - if (message.new_diversifier != null && message.hasOwnProperty("new_diversifier")) - if (!$util.isString(message.new_diversifier)) - return "new_diversifier: string expected"; + if (message.signature != null && message.hasOwnProperty("signature")) + if (!(message.signature && typeof message.signature.length === "number" || $util.isString(message.signature))) + return "signature: buffer expected"; + if (message.data_type != null && message.hasOwnProperty("data_type")) + switch (message.data_type) { + default: + return "data_type: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + break; + } + if (message.data != null && message.hasOwnProperty("data")) + if (!(message.data && typeof message.data.length === "number" || $util.isString(message.data))) + return "data: buffer expected"; + if (message.timestamp != null && message.hasOwnProperty("timestamp")) + if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high))) + return "timestamp: integer|Long expected"; return null; }; /** - * Creates a HeaderData message from a plain object. Also converts values to their respective internal types. + * Creates a SignatureAndData message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.lightclients.solomachine.v2.HeaderData + * @memberof ibc.lightclients.solomachine.v2.SignatureAndData * @static * @param {Object.} object Plain object - * @returns {ibc.lightclients.solomachine.v2.HeaderData} HeaderData + * @returns {ibc.lightclients.solomachine.v2.SignatureAndData} SignatureAndData */ - HeaderData.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.lightclients.solomachine.v2.HeaderData) + SignatureAndData.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.lightclients.solomachine.v2.SignatureAndData) return object; - var message = new $root.ibc.lightclients.solomachine.v2.HeaderData(); - if (object.new_pub_key != null) { - if (typeof object.new_pub_key !== "object") - throw TypeError(".ibc.lightclients.solomachine.v2.HeaderData.new_pub_key: object expected"); - message.new_pub_key = $root.google.protobuf.Any.fromObject(object.new_pub_key); + var message = new $root.ibc.lightclients.solomachine.v2.SignatureAndData(); + if (object.signature != null) + if (typeof object.signature === "string") + $util.base64.decode(object.signature, message.signature = $util.newBuffer($util.base64.length(object.signature)), 0); + else if (object.signature.length) + message.signature = object.signature; + switch (object.data_type) { + case "DATA_TYPE_UNINITIALIZED_UNSPECIFIED": + case 0: + message.data_type = 0; + break; + case "DATA_TYPE_CLIENT_STATE": + case 1: + message.data_type = 1; + break; + case "DATA_TYPE_CONSENSUS_STATE": + case 2: + message.data_type = 2; + break; + case "DATA_TYPE_CONNECTION_STATE": + case 3: + message.data_type = 3; + break; + case "DATA_TYPE_CHANNEL_STATE": + case 4: + message.data_type = 4; + break; + case "DATA_TYPE_PACKET_COMMITMENT": + case 5: + message.data_type = 5; + break; + case "DATA_TYPE_PACKET_ACKNOWLEDGEMENT": + case 6: + message.data_type = 6; + break; + case "DATA_TYPE_PACKET_RECEIPT_ABSENCE": + case 7: + message.data_type = 7; + break; + case "DATA_TYPE_NEXT_SEQUENCE_RECV": + case 8: + message.data_type = 8; + break; + case "DATA_TYPE_HEADER": + case 9: + message.data_type = 9; + break; } - if (object.new_diversifier != null) - message.new_diversifier = String(object.new_diversifier); + if (object.data != null) + if (typeof object.data === "string") + $util.base64.decode(object.data, message.data = $util.newBuffer($util.base64.length(object.data)), 0); + else if (object.data.length) + message.data = object.data; + if (object.timestamp != null) + if ($util.Long) + (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true; + else if (typeof object.timestamp === "string") + message.timestamp = parseInt(object.timestamp, 10); + else if (typeof object.timestamp === "number") + message.timestamp = object.timestamp; + else if (typeof object.timestamp === "object") + message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true); return message; }; /** - * Creates a plain object from a HeaderData message. Also converts values to other types if specified. + * Creates a plain object from a SignatureAndData message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.lightclients.solomachine.v2.HeaderData + * @memberof ibc.lightclients.solomachine.v2.SignatureAndData * @static - * @param {ibc.lightclients.solomachine.v2.HeaderData} message HeaderData + * @param {ibc.lightclients.solomachine.v2.SignatureAndData} message SignatureAndData * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - HeaderData.toObject = function toObject(message, options) { + SignatureAndData.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.new_pub_key = null; - object.new_diversifier = ""; + if (options.bytes === String) + object.signature = ""; + else { + object.signature = []; + if (options.bytes !== Array) + object.signature = $util.newBuffer(object.signature); + } + object.data_type = options.enums === String ? "DATA_TYPE_UNINITIALIZED_UNSPECIFIED" : 0; + if (options.bytes === String) + object.data = ""; + else { + object.data = []; + if (options.bytes !== Array) + object.data = $util.newBuffer(object.data); + } + if ($util.Long) { + var long = new $util.Long(0, 0, true); + object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.timestamp = options.longs === String ? "0" : 0; } - if (message.new_pub_key != null && message.hasOwnProperty("new_pub_key")) - object.new_pub_key = $root.google.protobuf.Any.toObject(message.new_pub_key, options); - if (message.new_diversifier != null && message.hasOwnProperty("new_diversifier")) - object.new_diversifier = message.new_diversifier; + if (message.signature != null && message.hasOwnProperty("signature")) + object.signature = options.bytes === String ? $util.base64.encode(message.signature, 0, message.signature.length) : options.bytes === Array ? Array.prototype.slice.call(message.signature) : message.signature; + if (message.data_type != null && message.hasOwnProperty("data_type")) + object.data_type = options.enums === String ? $root.ibc.lightclients.solomachine.v2.DataType[message.data_type] : message.data_type; + if (message.data != null && message.hasOwnProperty("data")) + object.data = options.bytes === String ? $util.base64.encode(message.data, 0, message.data.length) : options.bytes === Array ? Array.prototype.slice.call(message.data) : message.data; + if (message.timestamp != null && message.hasOwnProperty("timestamp")) + if (typeof message.timestamp === "number") + object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp; + else + object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber(true) : message.timestamp; return object; }; /** - * Converts this HeaderData to JSON. + * Converts this SignatureAndData to JSON. * @function toJSON - * @memberof ibc.lightclients.solomachine.v2.HeaderData + * @memberof ibc.lightclients.solomachine.v2.SignatureAndData * @instance * @returns {Object.} JSON object */ - HeaderData.prototype.toJSON = function toJSON() { + SignatureAndData.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return HeaderData; + return SignatureAndData; })(); - v2.ClientStateData = (function() { + v2.TimestampedSignatureData = (function() { /** - * Properties of a ClientStateData. + * Properties of a TimestampedSignatureData. * @memberof ibc.lightclients.solomachine.v2 - * @interface IClientStateData - * @property {Uint8Array|null} [path] ClientStateData path - * @property {google.protobuf.IAny|null} [client_state] ClientStateData client_state + * @interface ITimestampedSignatureData + * @property {Uint8Array|null} [signature_data] TimestampedSignatureData signature_data + * @property {Long|null} [timestamp] TimestampedSignatureData timestamp */ /** - * Constructs a new ClientStateData. + * Constructs a new TimestampedSignatureData. * @memberof ibc.lightclients.solomachine.v2 - * @classdesc Represents a ClientStateData. - * @implements IClientStateData + * @classdesc Represents a TimestampedSignatureData. + * @implements ITimestampedSignatureData * @constructor - * @param {ibc.lightclients.solomachine.v2.IClientStateData=} [properties] Properties to set + * @param {ibc.lightclients.solomachine.v2.ITimestampedSignatureData=} [properties] Properties to set */ - function ClientStateData(properties) { + function TimestampedSignatureData(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -70536,76 +76694,76 @@ } /** - * ClientStateData path. - * @member {Uint8Array} path - * @memberof ibc.lightclients.solomachine.v2.ClientStateData + * TimestampedSignatureData signature_data. + * @member {Uint8Array} signature_data + * @memberof ibc.lightclients.solomachine.v2.TimestampedSignatureData * @instance */ - ClientStateData.prototype.path = $util.newBuffer([]); + TimestampedSignatureData.prototype.signature_data = $util.newBuffer([]); /** - * ClientStateData client_state. - * @member {google.protobuf.IAny|null|undefined} client_state - * @memberof ibc.lightclients.solomachine.v2.ClientStateData + * TimestampedSignatureData timestamp. + * @member {Long} timestamp + * @memberof ibc.lightclients.solomachine.v2.TimestampedSignatureData * @instance */ - ClientStateData.prototype.client_state = null; + TimestampedSignatureData.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** - * Encodes the specified ClientStateData message. Does not implicitly {@link ibc.lightclients.solomachine.v2.ClientStateData.verify|verify} messages. + * Encodes the specified TimestampedSignatureData message. Does not implicitly {@link ibc.lightclients.solomachine.v2.TimestampedSignatureData.verify|verify} messages. * @function encode - * @memberof ibc.lightclients.solomachine.v2.ClientStateData + * @memberof ibc.lightclients.solomachine.v2.TimestampedSignatureData * @static - * @param {ibc.lightclients.solomachine.v2.IClientStateData} message ClientStateData message or plain object to encode + * @param {ibc.lightclients.solomachine.v2.ITimestampedSignatureData} message TimestampedSignatureData message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ClientStateData.encode = function encode(message, writer) { + TimestampedSignatureData.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.path != null && Object.hasOwnProperty.call(message, "path")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.path); - if (message.client_state != null && Object.hasOwnProperty.call(message, "client_state")) - $root.google.protobuf.Any.encode(message.client_state, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.signature_data != null && Object.hasOwnProperty.call(message, "signature_data")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.signature_data); + if (message.timestamp != null && Object.hasOwnProperty.call(message, "timestamp")) + writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.timestamp); return writer; }; /** - * Encodes the specified ClientStateData message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v2.ClientStateData.verify|verify} messages. + * Encodes the specified TimestampedSignatureData message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v2.TimestampedSignatureData.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.lightclients.solomachine.v2.ClientStateData + * @memberof ibc.lightclients.solomachine.v2.TimestampedSignatureData * @static - * @param {ibc.lightclients.solomachine.v2.IClientStateData} message ClientStateData message or plain object to encode + * @param {ibc.lightclients.solomachine.v2.ITimestampedSignatureData} message TimestampedSignatureData message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ClientStateData.encodeDelimited = function encodeDelimited(message, writer) { + TimestampedSignatureData.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ClientStateData message from the specified reader or buffer. + * Decodes a TimestampedSignatureData message from the specified reader or buffer. * @function decode - * @memberof ibc.lightclients.solomachine.v2.ClientStateData + * @memberof ibc.lightclients.solomachine.v2.TimestampedSignatureData * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.lightclients.solomachine.v2.ClientStateData} ClientStateData + * @returns {ibc.lightclients.solomachine.v2.TimestampedSignatureData} TimestampedSignatureData * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ClientStateData.decode = function decode(reader, length) { + TimestampedSignatureData.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.solomachine.v2.ClientStateData(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.solomachine.v2.TimestampedSignatureData(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.path = reader.bytes(); + message.signature_data = reader.bytes(); break; case 2: - message.client_state = $root.google.protobuf.Any.decode(reader, reader.uint32()); + message.timestamp = reader.uint64(); break; default: reader.skipType(tag & 7); @@ -70616,131 +76774,143 @@ }; /** - * Decodes a ClientStateData message from the specified reader or buffer, length delimited. + * Decodes a TimestampedSignatureData message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.lightclients.solomachine.v2.ClientStateData + * @memberof ibc.lightclients.solomachine.v2.TimestampedSignatureData * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.lightclients.solomachine.v2.ClientStateData} ClientStateData + * @returns {ibc.lightclients.solomachine.v2.TimestampedSignatureData} TimestampedSignatureData * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ClientStateData.decodeDelimited = function decodeDelimited(reader) { + TimestampedSignatureData.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ClientStateData message. + * Verifies a TimestampedSignatureData message. * @function verify - * @memberof ibc.lightclients.solomachine.v2.ClientStateData + * @memberof ibc.lightclients.solomachine.v2.TimestampedSignatureData * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ClientStateData.verify = function verify(message) { + TimestampedSignatureData.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.path != null && message.hasOwnProperty("path")) - if (!(message.path && typeof message.path.length === "number" || $util.isString(message.path))) - return "path: buffer expected"; - if (message.client_state != null && message.hasOwnProperty("client_state")) { - var error = $root.google.protobuf.Any.verify(message.client_state); - if (error) - return "client_state." + error; - } + if (message.signature_data != null && message.hasOwnProperty("signature_data")) + if (!(message.signature_data && typeof message.signature_data.length === "number" || $util.isString(message.signature_data))) + return "signature_data: buffer expected"; + if (message.timestamp != null && message.hasOwnProperty("timestamp")) + if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high))) + return "timestamp: integer|Long expected"; return null; }; /** - * Creates a ClientStateData message from a plain object. Also converts values to their respective internal types. + * Creates a TimestampedSignatureData message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.lightclients.solomachine.v2.ClientStateData + * @memberof ibc.lightclients.solomachine.v2.TimestampedSignatureData * @static * @param {Object.} object Plain object - * @returns {ibc.lightclients.solomachine.v2.ClientStateData} ClientStateData + * @returns {ibc.lightclients.solomachine.v2.TimestampedSignatureData} TimestampedSignatureData */ - ClientStateData.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.lightclients.solomachine.v2.ClientStateData) + TimestampedSignatureData.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.lightclients.solomachine.v2.TimestampedSignatureData) return object; - var message = new $root.ibc.lightclients.solomachine.v2.ClientStateData(); - if (object.path != null) - if (typeof object.path === "string") - $util.base64.decode(object.path, message.path = $util.newBuffer($util.base64.length(object.path)), 0); - else if (object.path.length) - message.path = object.path; - if (object.client_state != null) { - if (typeof object.client_state !== "object") - throw TypeError(".ibc.lightclients.solomachine.v2.ClientStateData.client_state: object expected"); - message.client_state = $root.google.protobuf.Any.fromObject(object.client_state); - } + var message = new $root.ibc.lightclients.solomachine.v2.TimestampedSignatureData(); + if (object.signature_data != null) + if (typeof object.signature_data === "string") + $util.base64.decode(object.signature_data, message.signature_data = $util.newBuffer($util.base64.length(object.signature_data)), 0); + else if (object.signature_data.length) + message.signature_data = object.signature_data; + if (object.timestamp != null) + if ($util.Long) + (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true; + else if (typeof object.timestamp === "string") + message.timestamp = parseInt(object.timestamp, 10); + else if (typeof object.timestamp === "number") + message.timestamp = object.timestamp; + else if (typeof object.timestamp === "object") + message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true); return message; }; /** - * Creates a plain object from a ClientStateData message. Also converts values to other types if specified. + * Creates a plain object from a TimestampedSignatureData message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.lightclients.solomachine.v2.ClientStateData + * @memberof ibc.lightclients.solomachine.v2.TimestampedSignatureData * @static - * @param {ibc.lightclients.solomachine.v2.ClientStateData} message ClientStateData + * @param {ibc.lightclients.solomachine.v2.TimestampedSignatureData} message TimestampedSignatureData * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ClientStateData.toObject = function toObject(message, options) { + TimestampedSignatureData.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { if (options.bytes === String) - object.path = ""; + object.signature_data = ""; else { - object.path = []; + object.signature_data = []; if (options.bytes !== Array) - object.path = $util.newBuffer(object.path); + object.signature_data = $util.newBuffer(object.signature_data); } - object.client_state = null; + if ($util.Long) { + var long = new $util.Long(0, 0, true); + object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.timestamp = options.longs === String ? "0" : 0; } - if (message.path != null && message.hasOwnProperty("path")) - object.path = options.bytes === String ? $util.base64.encode(message.path, 0, message.path.length) : options.bytes === Array ? Array.prototype.slice.call(message.path) : message.path; - if (message.client_state != null && message.hasOwnProperty("client_state")) - object.client_state = $root.google.protobuf.Any.toObject(message.client_state, options); + if (message.signature_data != null && message.hasOwnProperty("signature_data")) + object.signature_data = options.bytes === String ? $util.base64.encode(message.signature_data, 0, message.signature_data.length) : options.bytes === Array ? Array.prototype.slice.call(message.signature_data) : message.signature_data; + if (message.timestamp != null && message.hasOwnProperty("timestamp")) + if (typeof message.timestamp === "number") + object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp; + else + object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber(true) : message.timestamp; return object; }; /** - * Converts this ClientStateData to JSON. + * Converts this TimestampedSignatureData to JSON. * @function toJSON - * @memberof ibc.lightclients.solomachine.v2.ClientStateData + * @memberof ibc.lightclients.solomachine.v2.TimestampedSignatureData * @instance * @returns {Object.} JSON object */ - ClientStateData.prototype.toJSON = function toJSON() { + TimestampedSignatureData.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ClientStateData; + return TimestampedSignatureData; })(); - v2.ConsensusStateData = (function() { + v2.SignBytes = (function() { /** - * Properties of a ConsensusStateData. + * Properties of a SignBytes. * @memberof ibc.lightclients.solomachine.v2 - * @interface IConsensusStateData - * @property {Uint8Array|null} [path] ConsensusStateData path - * @property {google.protobuf.IAny|null} [consensus_state] ConsensusStateData consensus_state + * @interface ISignBytes + * @property {Long|null} [sequence] SignBytes sequence + * @property {Long|null} [timestamp] SignBytes timestamp + * @property {string|null} [diversifier] SignBytes diversifier + * @property {ibc.lightclients.solomachine.v2.DataType|null} [data_type] SignBytes data_type + * @property {Uint8Array|null} [data] SignBytes data */ /** - * Constructs a new ConsensusStateData. + * Constructs a new SignBytes. * @memberof ibc.lightclients.solomachine.v2 - * @classdesc Represents a ConsensusStateData. - * @implements IConsensusStateData + * @classdesc Represents a SignBytes. + * @implements ISignBytes * @constructor - * @param {ibc.lightclients.solomachine.v2.IConsensusStateData=} [properties] Properties to set + * @param {ibc.lightclients.solomachine.v2.ISignBytes=} [properties] Properties to set */ - function ConsensusStateData(properties) { + function SignBytes(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -70748,76 +76918,115 @@ } /** - * ConsensusStateData path. - * @member {Uint8Array} path - * @memberof ibc.lightclients.solomachine.v2.ConsensusStateData + * SignBytes sequence. + * @member {Long} sequence + * @memberof ibc.lightclients.solomachine.v2.SignBytes * @instance */ - ConsensusStateData.prototype.path = $util.newBuffer([]); + SignBytes.prototype.sequence = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** - * ConsensusStateData consensus_state. - * @member {google.protobuf.IAny|null|undefined} consensus_state - * @memberof ibc.lightclients.solomachine.v2.ConsensusStateData + * SignBytes timestamp. + * @member {Long} timestamp + * @memberof ibc.lightclients.solomachine.v2.SignBytes * @instance */ - ConsensusStateData.prototype.consensus_state = null; + SignBytes.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** - * Encodes the specified ConsensusStateData message. Does not implicitly {@link ibc.lightclients.solomachine.v2.ConsensusStateData.verify|verify} messages. + * SignBytes diversifier. + * @member {string} diversifier + * @memberof ibc.lightclients.solomachine.v2.SignBytes + * @instance + */ + SignBytes.prototype.diversifier = ""; + + /** + * SignBytes data_type. + * @member {ibc.lightclients.solomachine.v2.DataType} data_type + * @memberof ibc.lightclients.solomachine.v2.SignBytes + * @instance + */ + SignBytes.prototype.data_type = 0; + + /** + * SignBytes data. + * @member {Uint8Array} data + * @memberof ibc.lightclients.solomachine.v2.SignBytes + * @instance + */ + SignBytes.prototype.data = $util.newBuffer([]); + + /** + * Encodes the specified SignBytes message. Does not implicitly {@link ibc.lightclients.solomachine.v2.SignBytes.verify|verify} messages. * @function encode - * @memberof ibc.lightclients.solomachine.v2.ConsensusStateData + * @memberof ibc.lightclients.solomachine.v2.SignBytes * @static - * @param {ibc.lightclients.solomachine.v2.IConsensusStateData} message ConsensusStateData message or plain object to encode + * @param {ibc.lightclients.solomachine.v2.ISignBytes} message SignBytes message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ConsensusStateData.encode = function encode(message, writer) { + SignBytes.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.path != null && Object.hasOwnProperty.call(message, "path")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.path); - if (message.consensus_state != null && Object.hasOwnProperty.call(message, "consensus_state")) - $root.google.protobuf.Any.encode(message.consensus_state, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.sequence != null && Object.hasOwnProperty.call(message, "sequence")) + writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.sequence); + if (message.timestamp != null && Object.hasOwnProperty.call(message, "timestamp")) + writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.timestamp); + if (message.diversifier != null && Object.hasOwnProperty.call(message, "diversifier")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.diversifier); + if (message.data_type != null && Object.hasOwnProperty.call(message, "data_type")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.data_type); + if (message.data != null && Object.hasOwnProperty.call(message, "data")) + writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.data); return writer; }; /** - * Encodes the specified ConsensusStateData message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v2.ConsensusStateData.verify|verify} messages. + * Encodes the specified SignBytes message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v2.SignBytes.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.lightclients.solomachine.v2.ConsensusStateData + * @memberof ibc.lightclients.solomachine.v2.SignBytes * @static - * @param {ibc.lightclients.solomachine.v2.IConsensusStateData} message ConsensusStateData message or plain object to encode + * @param {ibc.lightclients.solomachine.v2.ISignBytes} message SignBytes message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ConsensusStateData.encodeDelimited = function encodeDelimited(message, writer) { + SignBytes.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ConsensusStateData message from the specified reader or buffer. + * Decodes a SignBytes message from the specified reader or buffer. * @function decode - * @memberof ibc.lightclients.solomachine.v2.ConsensusStateData + * @memberof ibc.lightclients.solomachine.v2.SignBytes * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.lightclients.solomachine.v2.ConsensusStateData} ConsensusStateData + * @returns {ibc.lightclients.solomachine.v2.SignBytes} SignBytes * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ConsensusStateData.decode = function decode(reader, length) { + SignBytes.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.solomachine.v2.ConsensusStateData(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.solomachine.v2.SignBytes(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.path = reader.bytes(); + message.sequence = reader.uint64(); break; case 2: - message.consensus_state = $root.google.protobuf.Any.decode(reader, reader.uint32()); + message.timestamp = reader.uint64(); + break; + case 3: + message.diversifier = reader.string(); + break; + case 4: + message.data_type = reader.int32(); + break; + case 5: + message.data = reader.bytes(); break; default: reader.skipType(tag & 7); @@ -70828,131 +77037,261 @@ }; /** - * Decodes a ConsensusStateData message from the specified reader or buffer, length delimited. + * Decodes a SignBytes message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.lightclients.solomachine.v2.ConsensusStateData + * @memberof ibc.lightclients.solomachine.v2.SignBytes * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.lightclients.solomachine.v2.ConsensusStateData} ConsensusStateData + * @returns {ibc.lightclients.solomachine.v2.SignBytes} SignBytes * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ConsensusStateData.decodeDelimited = function decodeDelimited(reader) { + SignBytes.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ConsensusStateData message. + * Verifies a SignBytes message. * @function verify - * @memberof ibc.lightclients.solomachine.v2.ConsensusStateData + * @memberof ibc.lightclients.solomachine.v2.SignBytes * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ConsensusStateData.verify = function verify(message) { + SignBytes.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.path != null && message.hasOwnProperty("path")) - if (!(message.path && typeof message.path.length === "number" || $util.isString(message.path))) - return "path: buffer expected"; - if (message.consensus_state != null && message.hasOwnProperty("consensus_state")) { - var error = $root.google.protobuf.Any.verify(message.consensus_state); - if (error) - return "consensus_state." + error; - } + if (message.sequence != null && message.hasOwnProperty("sequence")) + if (!$util.isInteger(message.sequence) && !(message.sequence && $util.isInteger(message.sequence.low) && $util.isInteger(message.sequence.high))) + return "sequence: integer|Long expected"; + if (message.timestamp != null && message.hasOwnProperty("timestamp")) + if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high))) + return "timestamp: integer|Long expected"; + if (message.diversifier != null && message.hasOwnProperty("diversifier")) + if (!$util.isString(message.diversifier)) + return "diversifier: string expected"; + if (message.data_type != null && message.hasOwnProperty("data_type")) + switch (message.data_type) { + default: + return "data_type: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + break; + } + if (message.data != null && message.hasOwnProperty("data")) + if (!(message.data && typeof message.data.length === "number" || $util.isString(message.data))) + return "data: buffer expected"; return null; }; /** - * Creates a ConsensusStateData message from a plain object. Also converts values to their respective internal types. + * Creates a SignBytes message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.lightclients.solomachine.v2.ConsensusStateData + * @memberof ibc.lightclients.solomachine.v2.SignBytes * @static * @param {Object.} object Plain object - * @returns {ibc.lightclients.solomachine.v2.ConsensusStateData} ConsensusStateData + * @returns {ibc.lightclients.solomachine.v2.SignBytes} SignBytes */ - ConsensusStateData.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.lightclients.solomachine.v2.ConsensusStateData) + SignBytes.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.lightclients.solomachine.v2.SignBytes) return object; - var message = new $root.ibc.lightclients.solomachine.v2.ConsensusStateData(); - if (object.path != null) - if (typeof object.path === "string") - $util.base64.decode(object.path, message.path = $util.newBuffer($util.base64.length(object.path)), 0); - else if (object.path.length) - message.path = object.path; - if (object.consensus_state != null) { - if (typeof object.consensus_state !== "object") - throw TypeError(".ibc.lightclients.solomachine.v2.ConsensusStateData.consensus_state: object expected"); - message.consensus_state = $root.google.protobuf.Any.fromObject(object.consensus_state); + var message = new $root.ibc.lightclients.solomachine.v2.SignBytes(); + if (object.sequence != null) + if ($util.Long) + (message.sequence = $util.Long.fromValue(object.sequence)).unsigned = true; + else if (typeof object.sequence === "string") + message.sequence = parseInt(object.sequence, 10); + else if (typeof object.sequence === "number") + message.sequence = object.sequence; + else if (typeof object.sequence === "object") + message.sequence = new $util.LongBits(object.sequence.low >>> 0, object.sequence.high >>> 0).toNumber(true); + if (object.timestamp != null) + if ($util.Long) + (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true; + else if (typeof object.timestamp === "string") + message.timestamp = parseInt(object.timestamp, 10); + else if (typeof object.timestamp === "number") + message.timestamp = object.timestamp; + else if (typeof object.timestamp === "object") + message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true); + if (object.diversifier != null) + message.diversifier = String(object.diversifier); + switch (object.data_type) { + case "DATA_TYPE_UNINITIALIZED_UNSPECIFIED": + case 0: + message.data_type = 0; + break; + case "DATA_TYPE_CLIENT_STATE": + case 1: + message.data_type = 1; + break; + case "DATA_TYPE_CONSENSUS_STATE": + case 2: + message.data_type = 2; + break; + case "DATA_TYPE_CONNECTION_STATE": + case 3: + message.data_type = 3; + break; + case "DATA_TYPE_CHANNEL_STATE": + case 4: + message.data_type = 4; + break; + case "DATA_TYPE_PACKET_COMMITMENT": + case 5: + message.data_type = 5; + break; + case "DATA_TYPE_PACKET_ACKNOWLEDGEMENT": + case 6: + message.data_type = 6; + break; + case "DATA_TYPE_PACKET_RECEIPT_ABSENCE": + case 7: + message.data_type = 7; + break; + case "DATA_TYPE_NEXT_SEQUENCE_RECV": + case 8: + message.data_type = 8; + break; + case "DATA_TYPE_HEADER": + case 9: + message.data_type = 9; + break; } + if (object.data != null) + if (typeof object.data === "string") + $util.base64.decode(object.data, message.data = $util.newBuffer($util.base64.length(object.data)), 0); + else if (object.data.length) + message.data = object.data; return message; }; /** - * Creates a plain object from a ConsensusStateData message. Also converts values to other types if specified. + * Creates a plain object from a SignBytes message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.lightclients.solomachine.v2.ConsensusStateData + * @memberof ibc.lightclients.solomachine.v2.SignBytes * @static - * @param {ibc.lightclients.solomachine.v2.ConsensusStateData} message ConsensusStateData + * @param {ibc.lightclients.solomachine.v2.SignBytes} message SignBytes * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ConsensusStateData.toObject = function toObject(message, options) { + SignBytes.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { + if ($util.Long) { + var long = new $util.Long(0, 0, true); + object.sequence = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.sequence = options.longs === String ? "0" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, true); + object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.timestamp = options.longs === String ? "0" : 0; + object.diversifier = ""; + object.data_type = options.enums === String ? "DATA_TYPE_UNINITIALIZED_UNSPECIFIED" : 0; if (options.bytes === String) - object.path = ""; + object.data = ""; else { - object.path = []; + object.data = []; if (options.bytes !== Array) - object.path = $util.newBuffer(object.path); + object.data = $util.newBuffer(object.data); } - object.consensus_state = null; } - if (message.path != null && message.hasOwnProperty("path")) - object.path = options.bytes === String ? $util.base64.encode(message.path, 0, message.path.length) : options.bytes === Array ? Array.prototype.slice.call(message.path) : message.path; - if (message.consensus_state != null && message.hasOwnProperty("consensus_state")) - object.consensus_state = $root.google.protobuf.Any.toObject(message.consensus_state, options); + if (message.sequence != null && message.hasOwnProperty("sequence")) + if (typeof message.sequence === "number") + object.sequence = options.longs === String ? String(message.sequence) : message.sequence; + else + object.sequence = options.longs === String ? $util.Long.prototype.toString.call(message.sequence) : options.longs === Number ? new $util.LongBits(message.sequence.low >>> 0, message.sequence.high >>> 0).toNumber(true) : message.sequence; + if (message.timestamp != null && message.hasOwnProperty("timestamp")) + if (typeof message.timestamp === "number") + object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp; + else + object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber(true) : message.timestamp; + if (message.diversifier != null && message.hasOwnProperty("diversifier")) + object.diversifier = message.diversifier; + if (message.data_type != null && message.hasOwnProperty("data_type")) + object.data_type = options.enums === String ? $root.ibc.lightclients.solomachine.v2.DataType[message.data_type] : message.data_type; + if (message.data != null && message.hasOwnProperty("data")) + object.data = options.bytes === String ? $util.base64.encode(message.data, 0, message.data.length) : options.bytes === Array ? Array.prototype.slice.call(message.data) : message.data; return object; }; /** - * Converts this ConsensusStateData to JSON. + * Converts this SignBytes to JSON. * @function toJSON - * @memberof ibc.lightclients.solomachine.v2.ConsensusStateData + * @memberof ibc.lightclients.solomachine.v2.SignBytes * @instance * @returns {Object.} JSON object */ - ConsensusStateData.prototype.toJSON = function toJSON() { + SignBytes.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ConsensusStateData; + return SignBytes; })(); - v2.ConnectionStateData = (function() { + /** + * DataType enum. + * @name ibc.lightclients.solomachine.v2.DataType + * @enum {number} + * @property {number} DATA_TYPE_UNINITIALIZED_UNSPECIFIED=0 DATA_TYPE_UNINITIALIZED_UNSPECIFIED value + * @property {number} DATA_TYPE_CLIENT_STATE=1 DATA_TYPE_CLIENT_STATE value + * @property {number} DATA_TYPE_CONSENSUS_STATE=2 DATA_TYPE_CONSENSUS_STATE value + * @property {number} DATA_TYPE_CONNECTION_STATE=3 DATA_TYPE_CONNECTION_STATE value + * @property {number} DATA_TYPE_CHANNEL_STATE=4 DATA_TYPE_CHANNEL_STATE value + * @property {number} DATA_TYPE_PACKET_COMMITMENT=5 DATA_TYPE_PACKET_COMMITMENT value + * @property {number} DATA_TYPE_PACKET_ACKNOWLEDGEMENT=6 DATA_TYPE_PACKET_ACKNOWLEDGEMENT value + * @property {number} DATA_TYPE_PACKET_RECEIPT_ABSENCE=7 DATA_TYPE_PACKET_RECEIPT_ABSENCE value + * @property {number} DATA_TYPE_NEXT_SEQUENCE_RECV=8 DATA_TYPE_NEXT_SEQUENCE_RECV value + * @property {number} DATA_TYPE_HEADER=9 DATA_TYPE_HEADER value + */ + v2.DataType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "DATA_TYPE_UNINITIALIZED_UNSPECIFIED"] = 0; + values[valuesById[1] = "DATA_TYPE_CLIENT_STATE"] = 1; + values[valuesById[2] = "DATA_TYPE_CONSENSUS_STATE"] = 2; + values[valuesById[3] = "DATA_TYPE_CONNECTION_STATE"] = 3; + values[valuesById[4] = "DATA_TYPE_CHANNEL_STATE"] = 4; + values[valuesById[5] = "DATA_TYPE_PACKET_COMMITMENT"] = 5; + values[valuesById[6] = "DATA_TYPE_PACKET_ACKNOWLEDGEMENT"] = 6; + values[valuesById[7] = "DATA_TYPE_PACKET_RECEIPT_ABSENCE"] = 7; + values[valuesById[8] = "DATA_TYPE_NEXT_SEQUENCE_RECV"] = 8; + values[valuesById[9] = "DATA_TYPE_HEADER"] = 9; + return values; + })(); + + v2.HeaderData = (function() { /** - * Properties of a ConnectionStateData. + * Properties of a HeaderData. * @memberof ibc.lightclients.solomachine.v2 - * @interface IConnectionStateData - * @property {Uint8Array|null} [path] ConnectionStateData path - * @property {ibc.core.connection.v1.IConnectionEnd|null} [connection] ConnectionStateData connection + * @interface IHeaderData + * @property {google.protobuf.IAny|null} [new_pub_key] HeaderData new_pub_key + * @property {string|null} [new_diversifier] HeaderData new_diversifier */ /** - * Constructs a new ConnectionStateData. + * Constructs a new HeaderData. * @memberof ibc.lightclients.solomachine.v2 - * @classdesc Represents a ConnectionStateData. - * @implements IConnectionStateData + * @classdesc Represents a HeaderData. + * @implements IHeaderData * @constructor - * @param {ibc.lightclients.solomachine.v2.IConnectionStateData=} [properties] Properties to set + * @param {ibc.lightclients.solomachine.v2.IHeaderData=} [properties] Properties to set */ - function ConnectionStateData(properties) { + function HeaderData(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -70960,76 +77299,76 @@ } /** - * ConnectionStateData path. - * @member {Uint8Array} path - * @memberof ibc.lightclients.solomachine.v2.ConnectionStateData + * HeaderData new_pub_key. + * @member {google.protobuf.IAny|null|undefined} new_pub_key + * @memberof ibc.lightclients.solomachine.v2.HeaderData * @instance */ - ConnectionStateData.prototype.path = $util.newBuffer([]); + HeaderData.prototype.new_pub_key = null; /** - * ConnectionStateData connection. - * @member {ibc.core.connection.v1.IConnectionEnd|null|undefined} connection - * @memberof ibc.lightclients.solomachine.v2.ConnectionStateData + * HeaderData new_diversifier. + * @member {string} new_diversifier + * @memberof ibc.lightclients.solomachine.v2.HeaderData * @instance */ - ConnectionStateData.prototype.connection = null; + HeaderData.prototype.new_diversifier = ""; /** - * Encodes the specified ConnectionStateData message. Does not implicitly {@link ibc.lightclients.solomachine.v2.ConnectionStateData.verify|verify} messages. + * Encodes the specified HeaderData message. Does not implicitly {@link ibc.lightclients.solomachine.v2.HeaderData.verify|verify} messages. * @function encode - * @memberof ibc.lightclients.solomachine.v2.ConnectionStateData + * @memberof ibc.lightclients.solomachine.v2.HeaderData * @static - * @param {ibc.lightclients.solomachine.v2.IConnectionStateData} message ConnectionStateData message or plain object to encode + * @param {ibc.lightclients.solomachine.v2.IHeaderData} message HeaderData message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ConnectionStateData.encode = function encode(message, writer) { + HeaderData.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.path != null && Object.hasOwnProperty.call(message, "path")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.path); - if (message.connection != null && Object.hasOwnProperty.call(message, "connection")) - $root.ibc.core.connection.v1.ConnectionEnd.encode(message.connection, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.new_pub_key != null && Object.hasOwnProperty.call(message, "new_pub_key")) + $root.google.protobuf.Any.encode(message.new_pub_key, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.new_diversifier != null && Object.hasOwnProperty.call(message, "new_diversifier")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.new_diversifier); return writer; }; /** - * Encodes the specified ConnectionStateData message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v2.ConnectionStateData.verify|verify} messages. + * Encodes the specified HeaderData message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v2.HeaderData.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.lightclients.solomachine.v2.ConnectionStateData + * @memberof ibc.lightclients.solomachine.v2.HeaderData * @static - * @param {ibc.lightclients.solomachine.v2.IConnectionStateData} message ConnectionStateData message or plain object to encode + * @param {ibc.lightclients.solomachine.v2.IHeaderData} message HeaderData message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ConnectionStateData.encodeDelimited = function encodeDelimited(message, writer) { + HeaderData.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ConnectionStateData message from the specified reader or buffer. + * Decodes a HeaderData message from the specified reader or buffer. * @function decode - * @memberof ibc.lightclients.solomachine.v2.ConnectionStateData + * @memberof ibc.lightclients.solomachine.v2.HeaderData * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.lightclients.solomachine.v2.ConnectionStateData} ConnectionStateData + * @returns {ibc.lightclients.solomachine.v2.HeaderData} HeaderData * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ConnectionStateData.decode = function decode(reader, length) { + HeaderData.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.solomachine.v2.ConnectionStateData(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.solomachine.v2.HeaderData(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.path = reader.bytes(); + message.new_pub_key = $root.google.protobuf.Any.decode(reader, reader.uint32()); break; case 2: - message.connection = $root.ibc.core.connection.v1.ConnectionEnd.decode(reader, reader.uint32()); + message.new_diversifier = reader.string(); break; default: reader.skipType(tag & 7); @@ -71040,131 +77379,122 @@ }; /** - * Decodes a ConnectionStateData message from the specified reader or buffer, length delimited. + * Decodes a HeaderData message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.lightclients.solomachine.v2.ConnectionStateData + * @memberof ibc.lightclients.solomachine.v2.HeaderData * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.lightclients.solomachine.v2.ConnectionStateData} ConnectionStateData + * @returns {ibc.lightclients.solomachine.v2.HeaderData} HeaderData * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ConnectionStateData.decodeDelimited = function decodeDelimited(reader) { + HeaderData.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ConnectionStateData message. + * Verifies a HeaderData message. * @function verify - * @memberof ibc.lightclients.solomachine.v2.ConnectionStateData + * @memberof ibc.lightclients.solomachine.v2.HeaderData * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ConnectionStateData.verify = function verify(message) { + HeaderData.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.path != null && message.hasOwnProperty("path")) - if (!(message.path && typeof message.path.length === "number" || $util.isString(message.path))) - return "path: buffer expected"; - if (message.connection != null && message.hasOwnProperty("connection")) { - var error = $root.ibc.core.connection.v1.ConnectionEnd.verify(message.connection); + if (message.new_pub_key != null && message.hasOwnProperty("new_pub_key")) { + var error = $root.google.protobuf.Any.verify(message.new_pub_key); if (error) - return "connection." + error; + return "new_pub_key." + error; } + if (message.new_diversifier != null && message.hasOwnProperty("new_diversifier")) + if (!$util.isString(message.new_diversifier)) + return "new_diversifier: string expected"; return null; }; /** - * Creates a ConnectionStateData message from a plain object. Also converts values to their respective internal types. + * Creates a HeaderData message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.lightclients.solomachine.v2.ConnectionStateData + * @memberof ibc.lightclients.solomachine.v2.HeaderData * @static * @param {Object.} object Plain object - * @returns {ibc.lightclients.solomachine.v2.ConnectionStateData} ConnectionStateData + * @returns {ibc.lightclients.solomachine.v2.HeaderData} HeaderData */ - ConnectionStateData.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.lightclients.solomachine.v2.ConnectionStateData) + HeaderData.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.lightclients.solomachine.v2.HeaderData) return object; - var message = new $root.ibc.lightclients.solomachine.v2.ConnectionStateData(); - if (object.path != null) - if (typeof object.path === "string") - $util.base64.decode(object.path, message.path = $util.newBuffer($util.base64.length(object.path)), 0); - else if (object.path.length) - message.path = object.path; - if (object.connection != null) { - if (typeof object.connection !== "object") - throw TypeError(".ibc.lightclients.solomachine.v2.ConnectionStateData.connection: object expected"); - message.connection = $root.ibc.core.connection.v1.ConnectionEnd.fromObject(object.connection); + var message = new $root.ibc.lightclients.solomachine.v2.HeaderData(); + if (object.new_pub_key != null) { + if (typeof object.new_pub_key !== "object") + throw TypeError(".ibc.lightclients.solomachine.v2.HeaderData.new_pub_key: object expected"); + message.new_pub_key = $root.google.protobuf.Any.fromObject(object.new_pub_key); } + if (object.new_diversifier != null) + message.new_diversifier = String(object.new_diversifier); return message; }; /** - * Creates a plain object from a ConnectionStateData message. Also converts values to other types if specified. + * Creates a plain object from a HeaderData message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.lightclients.solomachine.v2.ConnectionStateData + * @memberof ibc.lightclients.solomachine.v2.HeaderData * @static - * @param {ibc.lightclients.solomachine.v2.ConnectionStateData} message ConnectionStateData + * @param {ibc.lightclients.solomachine.v2.HeaderData} message HeaderData * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ConnectionStateData.toObject = function toObject(message, options) { + HeaderData.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - if (options.bytes === String) - object.path = ""; - else { - object.path = []; - if (options.bytes !== Array) - object.path = $util.newBuffer(object.path); - } - object.connection = null; + object.new_pub_key = null; + object.new_diversifier = ""; } - if (message.path != null && message.hasOwnProperty("path")) - object.path = options.bytes === String ? $util.base64.encode(message.path, 0, message.path.length) : options.bytes === Array ? Array.prototype.slice.call(message.path) : message.path; - if (message.connection != null && message.hasOwnProperty("connection")) - object.connection = $root.ibc.core.connection.v1.ConnectionEnd.toObject(message.connection, options); + if (message.new_pub_key != null && message.hasOwnProperty("new_pub_key")) + object.new_pub_key = $root.google.protobuf.Any.toObject(message.new_pub_key, options); + if (message.new_diversifier != null && message.hasOwnProperty("new_diversifier")) + object.new_diversifier = message.new_diversifier; return object; }; /** - * Converts this ConnectionStateData to JSON. + * Converts this HeaderData to JSON. * @function toJSON - * @memberof ibc.lightclients.solomachine.v2.ConnectionStateData + * @memberof ibc.lightclients.solomachine.v2.HeaderData * @instance * @returns {Object.} JSON object */ - ConnectionStateData.prototype.toJSON = function toJSON() { + HeaderData.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ConnectionStateData; + return HeaderData; })(); - v2.ChannelStateData = (function() { + v2.ClientStateData = (function() { /** - * Properties of a ChannelStateData. + * Properties of a ClientStateData. * @memberof ibc.lightclients.solomachine.v2 - * @interface IChannelStateData - * @property {Uint8Array|null} [path] ChannelStateData path - * @property {ibc.core.channel.v1.IChannel|null} [channel] ChannelStateData channel + * @interface IClientStateData + * @property {Uint8Array|null} [path] ClientStateData path + * @property {google.protobuf.IAny|null} [client_state] ClientStateData client_state */ /** - * Constructs a new ChannelStateData. + * Constructs a new ClientStateData. * @memberof ibc.lightclients.solomachine.v2 - * @classdesc Represents a ChannelStateData. - * @implements IChannelStateData + * @classdesc Represents a ClientStateData. + * @implements IClientStateData * @constructor - * @param {ibc.lightclients.solomachine.v2.IChannelStateData=} [properties] Properties to set + * @param {ibc.lightclients.solomachine.v2.IClientStateData=} [properties] Properties to set */ - function ChannelStateData(properties) { + function ClientStateData(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -71172,68 +77502,68 @@ } /** - * ChannelStateData path. + * ClientStateData path. * @member {Uint8Array} path - * @memberof ibc.lightclients.solomachine.v2.ChannelStateData + * @memberof ibc.lightclients.solomachine.v2.ClientStateData * @instance */ - ChannelStateData.prototype.path = $util.newBuffer([]); + ClientStateData.prototype.path = $util.newBuffer([]); /** - * ChannelStateData channel. - * @member {ibc.core.channel.v1.IChannel|null|undefined} channel - * @memberof ibc.lightclients.solomachine.v2.ChannelStateData + * ClientStateData client_state. + * @member {google.protobuf.IAny|null|undefined} client_state + * @memberof ibc.lightclients.solomachine.v2.ClientStateData * @instance */ - ChannelStateData.prototype.channel = null; + ClientStateData.prototype.client_state = null; /** - * Encodes the specified ChannelStateData message. Does not implicitly {@link ibc.lightclients.solomachine.v2.ChannelStateData.verify|verify} messages. + * Encodes the specified ClientStateData message. Does not implicitly {@link ibc.lightclients.solomachine.v2.ClientStateData.verify|verify} messages. * @function encode - * @memberof ibc.lightclients.solomachine.v2.ChannelStateData + * @memberof ibc.lightclients.solomachine.v2.ClientStateData * @static - * @param {ibc.lightclients.solomachine.v2.IChannelStateData} message ChannelStateData message or plain object to encode + * @param {ibc.lightclients.solomachine.v2.IClientStateData} message ClientStateData message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ChannelStateData.encode = function encode(message, writer) { + ClientStateData.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.path != null && Object.hasOwnProperty.call(message, "path")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.path); - if (message.channel != null && Object.hasOwnProperty.call(message, "channel")) - $root.ibc.core.channel.v1.Channel.encode(message.channel, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.client_state != null && Object.hasOwnProperty.call(message, "client_state")) + $root.google.protobuf.Any.encode(message.client_state, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified ChannelStateData message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v2.ChannelStateData.verify|verify} messages. + * Encodes the specified ClientStateData message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v2.ClientStateData.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.lightclients.solomachine.v2.ChannelStateData + * @memberof ibc.lightclients.solomachine.v2.ClientStateData * @static - * @param {ibc.lightclients.solomachine.v2.IChannelStateData} message ChannelStateData message or plain object to encode + * @param {ibc.lightclients.solomachine.v2.IClientStateData} message ClientStateData message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ChannelStateData.encodeDelimited = function encodeDelimited(message, writer) { + ClientStateData.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ChannelStateData message from the specified reader or buffer. + * Decodes a ClientStateData message from the specified reader or buffer. * @function decode - * @memberof ibc.lightclients.solomachine.v2.ChannelStateData + * @memberof ibc.lightclients.solomachine.v2.ClientStateData * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.lightclients.solomachine.v2.ChannelStateData} ChannelStateData + * @returns {ibc.lightclients.solomachine.v2.ClientStateData} ClientStateData * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ChannelStateData.decode = function decode(reader, length) { + ClientStateData.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.solomachine.v2.ChannelStateData(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.solomachine.v2.ClientStateData(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -71241,7 +77571,7 @@ message.path = reader.bytes(); break; case 2: - message.channel = $root.ibc.core.channel.v1.Channel.decode(reader, reader.uint32()); + message.client_state = $root.google.protobuf.Any.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -71252,78 +77582,78 @@ }; /** - * Decodes a ChannelStateData message from the specified reader or buffer, length delimited. + * Decodes a ClientStateData message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.lightclients.solomachine.v2.ChannelStateData + * @memberof ibc.lightclients.solomachine.v2.ClientStateData * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.lightclients.solomachine.v2.ChannelStateData} ChannelStateData + * @returns {ibc.lightclients.solomachine.v2.ClientStateData} ClientStateData * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ChannelStateData.decodeDelimited = function decodeDelimited(reader) { + ClientStateData.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ChannelStateData message. + * Verifies a ClientStateData message. * @function verify - * @memberof ibc.lightclients.solomachine.v2.ChannelStateData + * @memberof ibc.lightclients.solomachine.v2.ClientStateData * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ChannelStateData.verify = function verify(message) { + ClientStateData.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.path != null && message.hasOwnProperty("path")) if (!(message.path && typeof message.path.length === "number" || $util.isString(message.path))) return "path: buffer expected"; - if (message.channel != null && message.hasOwnProperty("channel")) { - var error = $root.ibc.core.channel.v1.Channel.verify(message.channel); + if (message.client_state != null && message.hasOwnProperty("client_state")) { + var error = $root.google.protobuf.Any.verify(message.client_state); if (error) - return "channel." + error; + return "client_state." + error; } return null; }; /** - * Creates a ChannelStateData message from a plain object. Also converts values to their respective internal types. + * Creates a ClientStateData message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.lightclients.solomachine.v2.ChannelStateData + * @memberof ibc.lightclients.solomachine.v2.ClientStateData * @static * @param {Object.} object Plain object - * @returns {ibc.lightclients.solomachine.v2.ChannelStateData} ChannelStateData + * @returns {ibc.lightclients.solomachine.v2.ClientStateData} ClientStateData */ - ChannelStateData.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.lightclients.solomachine.v2.ChannelStateData) + ClientStateData.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.lightclients.solomachine.v2.ClientStateData) return object; - var message = new $root.ibc.lightclients.solomachine.v2.ChannelStateData(); + var message = new $root.ibc.lightclients.solomachine.v2.ClientStateData(); if (object.path != null) if (typeof object.path === "string") $util.base64.decode(object.path, message.path = $util.newBuffer($util.base64.length(object.path)), 0); else if (object.path.length) message.path = object.path; - if (object.channel != null) { - if (typeof object.channel !== "object") - throw TypeError(".ibc.lightclients.solomachine.v2.ChannelStateData.channel: object expected"); - message.channel = $root.ibc.core.channel.v1.Channel.fromObject(object.channel); + if (object.client_state != null) { + if (typeof object.client_state !== "object") + throw TypeError(".ibc.lightclients.solomachine.v2.ClientStateData.client_state: object expected"); + message.client_state = $root.google.protobuf.Any.fromObject(object.client_state); } return message; }; /** - * Creates a plain object from a ChannelStateData message. Also converts values to other types if specified. + * Creates a plain object from a ClientStateData message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.lightclients.solomachine.v2.ChannelStateData + * @memberof ibc.lightclients.solomachine.v2.ClientStateData * @static - * @param {ibc.lightclients.solomachine.v2.ChannelStateData} message ChannelStateData + * @param {ibc.lightclients.solomachine.v2.ClientStateData} message ClientStateData * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ChannelStateData.toObject = function toObject(message, options) { + ClientStateData.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -71335,48 +77665,48 @@ if (options.bytes !== Array) object.path = $util.newBuffer(object.path); } - object.channel = null; + object.client_state = null; } if (message.path != null && message.hasOwnProperty("path")) object.path = options.bytes === String ? $util.base64.encode(message.path, 0, message.path.length) : options.bytes === Array ? Array.prototype.slice.call(message.path) : message.path; - if (message.channel != null && message.hasOwnProperty("channel")) - object.channel = $root.ibc.core.channel.v1.Channel.toObject(message.channel, options); + if (message.client_state != null && message.hasOwnProperty("client_state")) + object.client_state = $root.google.protobuf.Any.toObject(message.client_state, options); return object; }; /** - * Converts this ChannelStateData to JSON. + * Converts this ClientStateData to JSON. * @function toJSON - * @memberof ibc.lightclients.solomachine.v2.ChannelStateData + * @memberof ibc.lightclients.solomachine.v2.ClientStateData * @instance * @returns {Object.} JSON object */ - ChannelStateData.prototype.toJSON = function toJSON() { + ClientStateData.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ChannelStateData; + return ClientStateData; })(); - v2.PacketCommitmentData = (function() { + v2.ConsensusStateData = (function() { /** - * Properties of a PacketCommitmentData. + * Properties of a ConsensusStateData. * @memberof ibc.lightclients.solomachine.v2 - * @interface IPacketCommitmentData - * @property {Uint8Array|null} [path] PacketCommitmentData path - * @property {Uint8Array|null} [commitment] PacketCommitmentData commitment + * @interface IConsensusStateData + * @property {Uint8Array|null} [path] ConsensusStateData path + * @property {google.protobuf.IAny|null} [consensus_state] ConsensusStateData consensus_state */ /** - * Constructs a new PacketCommitmentData. + * Constructs a new ConsensusStateData. * @memberof ibc.lightclients.solomachine.v2 - * @classdesc Represents a PacketCommitmentData. - * @implements IPacketCommitmentData + * @classdesc Represents a ConsensusStateData. + * @implements IConsensusStateData * @constructor - * @param {ibc.lightclients.solomachine.v2.IPacketCommitmentData=} [properties] Properties to set + * @param {ibc.lightclients.solomachine.v2.IConsensusStateData=} [properties] Properties to set */ - function PacketCommitmentData(properties) { + function ConsensusStateData(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -71384,68 +77714,68 @@ } /** - * PacketCommitmentData path. + * ConsensusStateData path. * @member {Uint8Array} path - * @memberof ibc.lightclients.solomachine.v2.PacketCommitmentData + * @memberof ibc.lightclients.solomachine.v2.ConsensusStateData * @instance */ - PacketCommitmentData.prototype.path = $util.newBuffer([]); + ConsensusStateData.prototype.path = $util.newBuffer([]); /** - * PacketCommitmentData commitment. - * @member {Uint8Array} commitment - * @memberof ibc.lightclients.solomachine.v2.PacketCommitmentData + * ConsensusStateData consensus_state. + * @member {google.protobuf.IAny|null|undefined} consensus_state + * @memberof ibc.lightclients.solomachine.v2.ConsensusStateData * @instance */ - PacketCommitmentData.prototype.commitment = $util.newBuffer([]); + ConsensusStateData.prototype.consensus_state = null; /** - * Encodes the specified PacketCommitmentData message. Does not implicitly {@link ibc.lightclients.solomachine.v2.PacketCommitmentData.verify|verify} messages. + * Encodes the specified ConsensusStateData message. Does not implicitly {@link ibc.lightclients.solomachine.v2.ConsensusStateData.verify|verify} messages. * @function encode - * @memberof ibc.lightclients.solomachine.v2.PacketCommitmentData + * @memberof ibc.lightclients.solomachine.v2.ConsensusStateData * @static - * @param {ibc.lightclients.solomachine.v2.IPacketCommitmentData} message PacketCommitmentData message or plain object to encode + * @param {ibc.lightclients.solomachine.v2.IConsensusStateData} message ConsensusStateData message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PacketCommitmentData.encode = function encode(message, writer) { + ConsensusStateData.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.path != null && Object.hasOwnProperty.call(message, "path")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.path); - if (message.commitment != null && Object.hasOwnProperty.call(message, "commitment")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.commitment); + if (message.consensus_state != null && Object.hasOwnProperty.call(message, "consensus_state")) + $root.google.protobuf.Any.encode(message.consensus_state, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified PacketCommitmentData message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v2.PacketCommitmentData.verify|verify} messages. + * Encodes the specified ConsensusStateData message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v2.ConsensusStateData.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.lightclients.solomachine.v2.PacketCommitmentData + * @memberof ibc.lightclients.solomachine.v2.ConsensusStateData * @static - * @param {ibc.lightclients.solomachine.v2.IPacketCommitmentData} message PacketCommitmentData message or plain object to encode + * @param {ibc.lightclients.solomachine.v2.IConsensusStateData} message ConsensusStateData message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PacketCommitmentData.encodeDelimited = function encodeDelimited(message, writer) { + ConsensusStateData.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PacketCommitmentData message from the specified reader or buffer. + * Decodes a ConsensusStateData message from the specified reader or buffer. * @function decode - * @memberof ibc.lightclients.solomachine.v2.PacketCommitmentData + * @memberof ibc.lightclients.solomachine.v2.ConsensusStateData * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.lightclients.solomachine.v2.PacketCommitmentData} PacketCommitmentData + * @returns {ibc.lightclients.solomachine.v2.ConsensusStateData} ConsensusStateData * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PacketCommitmentData.decode = function decode(reader, length) { + ConsensusStateData.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.solomachine.v2.PacketCommitmentData(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.solomachine.v2.ConsensusStateData(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -71453,7 +77783,7 @@ message.path = reader.bytes(); break; case 2: - message.commitment = reader.bytes(); + message.consensus_state = $root.google.protobuf.Any.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -71464,76 +77794,78 @@ }; /** - * Decodes a PacketCommitmentData message from the specified reader or buffer, length delimited. + * Decodes a ConsensusStateData message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.lightclients.solomachine.v2.PacketCommitmentData + * @memberof ibc.lightclients.solomachine.v2.ConsensusStateData * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.lightclients.solomachine.v2.PacketCommitmentData} PacketCommitmentData + * @returns {ibc.lightclients.solomachine.v2.ConsensusStateData} ConsensusStateData * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PacketCommitmentData.decodeDelimited = function decodeDelimited(reader) { + ConsensusStateData.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PacketCommitmentData message. + * Verifies a ConsensusStateData message. * @function verify - * @memberof ibc.lightclients.solomachine.v2.PacketCommitmentData + * @memberof ibc.lightclients.solomachine.v2.ConsensusStateData * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PacketCommitmentData.verify = function verify(message) { + ConsensusStateData.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.path != null && message.hasOwnProperty("path")) if (!(message.path && typeof message.path.length === "number" || $util.isString(message.path))) return "path: buffer expected"; - if (message.commitment != null && message.hasOwnProperty("commitment")) - if (!(message.commitment && typeof message.commitment.length === "number" || $util.isString(message.commitment))) - return "commitment: buffer expected"; + if (message.consensus_state != null && message.hasOwnProperty("consensus_state")) { + var error = $root.google.protobuf.Any.verify(message.consensus_state); + if (error) + return "consensus_state." + error; + } return null; }; /** - * Creates a PacketCommitmentData message from a plain object. Also converts values to their respective internal types. + * Creates a ConsensusStateData message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.lightclients.solomachine.v2.PacketCommitmentData + * @memberof ibc.lightclients.solomachine.v2.ConsensusStateData * @static * @param {Object.} object Plain object - * @returns {ibc.lightclients.solomachine.v2.PacketCommitmentData} PacketCommitmentData + * @returns {ibc.lightclients.solomachine.v2.ConsensusStateData} ConsensusStateData */ - PacketCommitmentData.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.lightclients.solomachine.v2.PacketCommitmentData) + ConsensusStateData.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.lightclients.solomachine.v2.ConsensusStateData) return object; - var message = new $root.ibc.lightclients.solomachine.v2.PacketCommitmentData(); + var message = new $root.ibc.lightclients.solomachine.v2.ConsensusStateData(); if (object.path != null) if (typeof object.path === "string") $util.base64.decode(object.path, message.path = $util.newBuffer($util.base64.length(object.path)), 0); else if (object.path.length) message.path = object.path; - if (object.commitment != null) - if (typeof object.commitment === "string") - $util.base64.decode(object.commitment, message.commitment = $util.newBuffer($util.base64.length(object.commitment)), 0); - else if (object.commitment.length) - message.commitment = object.commitment; + if (object.consensus_state != null) { + if (typeof object.consensus_state !== "object") + throw TypeError(".ibc.lightclients.solomachine.v2.ConsensusStateData.consensus_state: object expected"); + message.consensus_state = $root.google.protobuf.Any.fromObject(object.consensus_state); + } return message; }; /** - * Creates a plain object from a PacketCommitmentData message. Also converts values to other types if specified. + * Creates a plain object from a ConsensusStateData message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.lightclients.solomachine.v2.PacketCommitmentData + * @memberof ibc.lightclients.solomachine.v2.ConsensusStateData * @static - * @param {ibc.lightclients.solomachine.v2.PacketCommitmentData} message PacketCommitmentData + * @param {ibc.lightclients.solomachine.v2.ConsensusStateData} message ConsensusStateData * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PacketCommitmentData.toObject = function toObject(message, options) { + ConsensusStateData.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -71545,54 +77877,48 @@ if (options.bytes !== Array) object.path = $util.newBuffer(object.path); } - if (options.bytes === String) - object.commitment = ""; - else { - object.commitment = []; - if (options.bytes !== Array) - object.commitment = $util.newBuffer(object.commitment); - } + object.consensus_state = null; } if (message.path != null && message.hasOwnProperty("path")) object.path = options.bytes === String ? $util.base64.encode(message.path, 0, message.path.length) : options.bytes === Array ? Array.prototype.slice.call(message.path) : message.path; - if (message.commitment != null && message.hasOwnProperty("commitment")) - object.commitment = options.bytes === String ? $util.base64.encode(message.commitment, 0, message.commitment.length) : options.bytes === Array ? Array.prototype.slice.call(message.commitment) : message.commitment; + if (message.consensus_state != null && message.hasOwnProperty("consensus_state")) + object.consensus_state = $root.google.protobuf.Any.toObject(message.consensus_state, options); return object; }; /** - * Converts this PacketCommitmentData to JSON. + * Converts this ConsensusStateData to JSON. * @function toJSON - * @memberof ibc.lightclients.solomachine.v2.PacketCommitmentData + * @memberof ibc.lightclients.solomachine.v2.ConsensusStateData * @instance * @returns {Object.} JSON object */ - PacketCommitmentData.prototype.toJSON = function toJSON() { + ConsensusStateData.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return PacketCommitmentData; + return ConsensusStateData; })(); - v2.PacketAcknowledgementData = (function() { + v2.ConnectionStateData = (function() { /** - * Properties of a PacketAcknowledgementData. + * Properties of a ConnectionStateData. * @memberof ibc.lightclients.solomachine.v2 - * @interface IPacketAcknowledgementData - * @property {Uint8Array|null} [path] PacketAcknowledgementData path - * @property {Uint8Array|null} [acknowledgement] PacketAcknowledgementData acknowledgement + * @interface IConnectionStateData + * @property {Uint8Array|null} [path] ConnectionStateData path + * @property {ibc.core.connection.v1.IConnectionEnd|null} [connection] ConnectionStateData connection */ /** - * Constructs a new PacketAcknowledgementData. + * Constructs a new ConnectionStateData. * @memberof ibc.lightclients.solomachine.v2 - * @classdesc Represents a PacketAcknowledgementData. - * @implements IPacketAcknowledgementData + * @classdesc Represents a ConnectionStateData. + * @implements IConnectionStateData * @constructor - * @param {ibc.lightclients.solomachine.v2.IPacketAcknowledgementData=} [properties] Properties to set + * @param {ibc.lightclients.solomachine.v2.IConnectionStateData=} [properties] Properties to set */ - function PacketAcknowledgementData(properties) { + function ConnectionStateData(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -71600,68 +77926,68 @@ } /** - * PacketAcknowledgementData path. + * ConnectionStateData path. * @member {Uint8Array} path - * @memberof ibc.lightclients.solomachine.v2.PacketAcknowledgementData + * @memberof ibc.lightclients.solomachine.v2.ConnectionStateData * @instance */ - PacketAcknowledgementData.prototype.path = $util.newBuffer([]); + ConnectionStateData.prototype.path = $util.newBuffer([]); /** - * PacketAcknowledgementData acknowledgement. - * @member {Uint8Array} acknowledgement - * @memberof ibc.lightclients.solomachine.v2.PacketAcknowledgementData + * ConnectionStateData connection. + * @member {ibc.core.connection.v1.IConnectionEnd|null|undefined} connection + * @memberof ibc.lightclients.solomachine.v2.ConnectionStateData * @instance */ - PacketAcknowledgementData.prototype.acknowledgement = $util.newBuffer([]); + ConnectionStateData.prototype.connection = null; /** - * Encodes the specified PacketAcknowledgementData message. Does not implicitly {@link ibc.lightclients.solomachine.v2.PacketAcknowledgementData.verify|verify} messages. + * Encodes the specified ConnectionStateData message. Does not implicitly {@link ibc.lightclients.solomachine.v2.ConnectionStateData.verify|verify} messages. * @function encode - * @memberof ibc.lightclients.solomachine.v2.PacketAcknowledgementData + * @memberof ibc.lightclients.solomachine.v2.ConnectionStateData * @static - * @param {ibc.lightclients.solomachine.v2.IPacketAcknowledgementData} message PacketAcknowledgementData message or plain object to encode + * @param {ibc.lightclients.solomachine.v2.IConnectionStateData} message ConnectionStateData message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PacketAcknowledgementData.encode = function encode(message, writer) { + ConnectionStateData.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.path != null && Object.hasOwnProperty.call(message, "path")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.path); - if (message.acknowledgement != null && Object.hasOwnProperty.call(message, "acknowledgement")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.acknowledgement); + if (message.connection != null && Object.hasOwnProperty.call(message, "connection")) + $root.ibc.core.connection.v1.ConnectionEnd.encode(message.connection, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified PacketAcknowledgementData message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v2.PacketAcknowledgementData.verify|verify} messages. + * Encodes the specified ConnectionStateData message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v2.ConnectionStateData.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.lightclients.solomachine.v2.PacketAcknowledgementData + * @memberof ibc.lightclients.solomachine.v2.ConnectionStateData * @static - * @param {ibc.lightclients.solomachine.v2.IPacketAcknowledgementData} message PacketAcknowledgementData message or plain object to encode + * @param {ibc.lightclients.solomachine.v2.IConnectionStateData} message ConnectionStateData message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PacketAcknowledgementData.encodeDelimited = function encodeDelimited(message, writer) { + ConnectionStateData.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PacketAcknowledgementData message from the specified reader or buffer. + * Decodes a ConnectionStateData message from the specified reader or buffer. * @function decode - * @memberof ibc.lightclients.solomachine.v2.PacketAcknowledgementData + * @memberof ibc.lightclients.solomachine.v2.ConnectionStateData * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.lightclients.solomachine.v2.PacketAcknowledgementData} PacketAcknowledgementData + * @returns {ibc.lightclients.solomachine.v2.ConnectionStateData} ConnectionStateData * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PacketAcknowledgementData.decode = function decode(reader, length) { + ConnectionStateData.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.solomachine.v2.PacketAcknowledgementData(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.solomachine.v2.ConnectionStateData(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -71669,7 +77995,7 @@ message.path = reader.bytes(); break; case 2: - message.acknowledgement = reader.bytes(); + message.connection = $root.ibc.core.connection.v1.ConnectionEnd.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -71680,76 +78006,78 @@ }; /** - * Decodes a PacketAcknowledgementData message from the specified reader or buffer, length delimited. + * Decodes a ConnectionStateData message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.lightclients.solomachine.v2.PacketAcknowledgementData + * @memberof ibc.lightclients.solomachine.v2.ConnectionStateData * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.lightclients.solomachine.v2.PacketAcknowledgementData} PacketAcknowledgementData + * @returns {ibc.lightclients.solomachine.v2.ConnectionStateData} ConnectionStateData * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PacketAcknowledgementData.decodeDelimited = function decodeDelimited(reader) { + ConnectionStateData.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PacketAcknowledgementData message. + * Verifies a ConnectionStateData message. * @function verify - * @memberof ibc.lightclients.solomachine.v2.PacketAcknowledgementData + * @memberof ibc.lightclients.solomachine.v2.ConnectionStateData * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PacketAcknowledgementData.verify = function verify(message) { + ConnectionStateData.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.path != null && message.hasOwnProperty("path")) if (!(message.path && typeof message.path.length === "number" || $util.isString(message.path))) return "path: buffer expected"; - if (message.acknowledgement != null && message.hasOwnProperty("acknowledgement")) - if (!(message.acknowledgement && typeof message.acknowledgement.length === "number" || $util.isString(message.acknowledgement))) - return "acknowledgement: buffer expected"; + if (message.connection != null && message.hasOwnProperty("connection")) { + var error = $root.ibc.core.connection.v1.ConnectionEnd.verify(message.connection); + if (error) + return "connection." + error; + } return null; }; /** - * Creates a PacketAcknowledgementData message from a plain object. Also converts values to their respective internal types. + * Creates a ConnectionStateData message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.lightclients.solomachine.v2.PacketAcknowledgementData + * @memberof ibc.lightclients.solomachine.v2.ConnectionStateData * @static * @param {Object.} object Plain object - * @returns {ibc.lightclients.solomachine.v2.PacketAcknowledgementData} PacketAcknowledgementData + * @returns {ibc.lightclients.solomachine.v2.ConnectionStateData} ConnectionStateData */ - PacketAcknowledgementData.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.lightclients.solomachine.v2.PacketAcknowledgementData) + ConnectionStateData.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.lightclients.solomachine.v2.ConnectionStateData) return object; - var message = new $root.ibc.lightclients.solomachine.v2.PacketAcknowledgementData(); + var message = new $root.ibc.lightclients.solomachine.v2.ConnectionStateData(); if (object.path != null) if (typeof object.path === "string") $util.base64.decode(object.path, message.path = $util.newBuffer($util.base64.length(object.path)), 0); else if (object.path.length) message.path = object.path; - if (object.acknowledgement != null) - if (typeof object.acknowledgement === "string") - $util.base64.decode(object.acknowledgement, message.acknowledgement = $util.newBuffer($util.base64.length(object.acknowledgement)), 0); - else if (object.acknowledgement.length) - message.acknowledgement = object.acknowledgement; + if (object.connection != null) { + if (typeof object.connection !== "object") + throw TypeError(".ibc.lightclients.solomachine.v2.ConnectionStateData.connection: object expected"); + message.connection = $root.ibc.core.connection.v1.ConnectionEnd.fromObject(object.connection); + } return message; }; /** - * Creates a plain object from a PacketAcknowledgementData message. Also converts values to other types if specified. + * Creates a plain object from a ConnectionStateData message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.lightclients.solomachine.v2.PacketAcknowledgementData + * @memberof ibc.lightclients.solomachine.v2.ConnectionStateData * @static - * @param {ibc.lightclients.solomachine.v2.PacketAcknowledgementData} message PacketAcknowledgementData + * @param {ibc.lightclients.solomachine.v2.ConnectionStateData} message ConnectionStateData * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PacketAcknowledgementData.toObject = function toObject(message, options) { + ConnectionStateData.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -71761,53 +78089,48 @@ if (options.bytes !== Array) object.path = $util.newBuffer(object.path); } - if (options.bytes === String) - object.acknowledgement = ""; - else { - object.acknowledgement = []; - if (options.bytes !== Array) - object.acknowledgement = $util.newBuffer(object.acknowledgement); - } + object.connection = null; } if (message.path != null && message.hasOwnProperty("path")) object.path = options.bytes === String ? $util.base64.encode(message.path, 0, message.path.length) : options.bytes === Array ? Array.prototype.slice.call(message.path) : message.path; - if (message.acknowledgement != null && message.hasOwnProperty("acknowledgement")) - object.acknowledgement = options.bytes === String ? $util.base64.encode(message.acknowledgement, 0, message.acknowledgement.length) : options.bytes === Array ? Array.prototype.slice.call(message.acknowledgement) : message.acknowledgement; + if (message.connection != null && message.hasOwnProperty("connection")) + object.connection = $root.ibc.core.connection.v1.ConnectionEnd.toObject(message.connection, options); return object; }; /** - * Converts this PacketAcknowledgementData to JSON. + * Converts this ConnectionStateData to JSON. * @function toJSON - * @memberof ibc.lightclients.solomachine.v2.PacketAcknowledgementData + * @memberof ibc.lightclients.solomachine.v2.ConnectionStateData * @instance * @returns {Object.} JSON object */ - PacketAcknowledgementData.prototype.toJSON = function toJSON() { + ConnectionStateData.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return PacketAcknowledgementData; + return ConnectionStateData; })(); - v2.PacketReceiptAbsenceData = (function() { + v2.ChannelStateData = (function() { /** - * Properties of a PacketReceiptAbsenceData. + * Properties of a ChannelStateData. * @memberof ibc.lightclients.solomachine.v2 - * @interface IPacketReceiptAbsenceData - * @property {Uint8Array|null} [path] PacketReceiptAbsenceData path + * @interface IChannelStateData + * @property {Uint8Array|null} [path] ChannelStateData path + * @property {ibc.core.channel.v1.IChannel|null} [channel] ChannelStateData channel */ /** - * Constructs a new PacketReceiptAbsenceData. + * Constructs a new ChannelStateData. * @memberof ibc.lightclients.solomachine.v2 - * @classdesc Represents a PacketReceiptAbsenceData. - * @implements IPacketReceiptAbsenceData + * @classdesc Represents a ChannelStateData. + * @implements IChannelStateData * @constructor - * @param {ibc.lightclients.solomachine.v2.IPacketReceiptAbsenceData=} [properties] Properties to set + * @param {ibc.lightclients.solomachine.v2.IChannelStateData=} [properties] Properties to set */ - function PacketReceiptAbsenceData(properties) { + function ChannelStateData(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -71815,64 +78138,77 @@ } /** - * PacketReceiptAbsenceData path. + * ChannelStateData path. * @member {Uint8Array} path - * @memberof ibc.lightclients.solomachine.v2.PacketReceiptAbsenceData + * @memberof ibc.lightclients.solomachine.v2.ChannelStateData * @instance */ - PacketReceiptAbsenceData.prototype.path = $util.newBuffer([]); + ChannelStateData.prototype.path = $util.newBuffer([]); /** - * Encodes the specified PacketReceiptAbsenceData message. Does not implicitly {@link ibc.lightclients.solomachine.v2.PacketReceiptAbsenceData.verify|verify} messages. + * ChannelStateData channel. + * @member {ibc.core.channel.v1.IChannel|null|undefined} channel + * @memberof ibc.lightclients.solomachine.v2.ChannelStateData + * @instance + */ + ChannelStateData.prototype.channel = null; + + /** + * Encodes the specified ChannelStateData message. Does not implicitly {@link ibc.lightclients.solomachine.v2.ChannelStateData.verify|verify} messages. * @function encode - * @memberof ibc.lightclients.solomachine.v2.PacketReceiptAbsenceData + * @memberof ibc.lightclients.solomachine.v2.ChannelStateData * @static - * @param {ibc.lightclients.solomachine.v2.IPacketReceiptAbsenceData} message PacketReceiptAbsenceData message or plain object to encode + * @param {ibc.lightclients.solomachine.v2.IChannelStateData} message ChannelStateData message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PacketReceiptAbsenceData.encode = function encode(message, writer) { + ChannelStateData.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.path != null && Object.hasOwnProperty.call(message, "path")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.path); + if (message.channel != null && Object.hasOwnProperty.call(message, "channel")) + $root.ibc.core.channel.v1.Channel.encode(message.channel, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified PacketReceiptAbsenceData message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v2.PacketReceiptAbsenceData.verify|verify} messages. + * Encodes the specified ChannelStateData message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v2.ChannelStateData.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.lightclients.solomachine.v2.PacketReceiptAbsenceData + * @memberof ibc.lightclients.solomachine.v2.ChannelStateData * @static - * @param {ibc.lightclients.solomachine.v2.IPacketReceiptAbsenceData} message PacketReceiptAbsenceData message or plain object to encode + * @param {ibc.lightclients.solomachine.v2.IChannelStateData} message ChannelStateData message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PacketReceiptAbsenceData.encodeDelimited = function encodeDelimited(message, writer) { + ChannelStateData.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PacketReceiptAbsenceData message from the specified reader or buffer. + * Decodes a ChannelStateData message from the specified reader or buffer. * @function decode - * @memberof ibc.lightclients.solomachine.v2.PacketReceiptAbsenceData + * @memberof ibc.lightclients.solomachine.v2.ChannelStateData * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.lightclients.solomachine.v2.PacketReceiptAbsenceData} PacketReceiptAbsenceData + * @returns {ibc.lightclients.solomachine.v2.ChannelStateData} ChannelStateData * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PacketReceiptAbsenceData.decode = function decode(reader, length) { + ChannelStateData.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.solomachine.v2.PacketReceiptAbsenceData(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.solomachine.v2.ChannelStateData(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: message.path = reader.bytes(); break; + case 2: + message.channel = $root.ibc.core.channel.v1.Channel.decode(reader, reader.uint32()); + break; default: reader.skipType(tag & 7); break; @@ -71882,72 +78218,82 @@ }; /** - * Decodes a PacketReceiptAbsenceData message from the specified reader or buffer, length delimited. + * Decodes a ChannelStateData message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.lightclients.solomachine.v2.PacketReceiptAbsenceData + * @memberof ibc.lightclients.solomachine.v2.ChannelStateData * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.lightclients.solomachine.v2.PacketReceiptAbsenceData} PacketReceiptAbsenceData + * @returns {ibc.lightclients.solomachine.v2.ChannelStateData} ChannelStateData * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PacketReceiptAbsenceData.decodeDelimited = function decodeDelimited(reader) { + ChannelStateData.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PacketReceiptAbsenceData message. + * Verifies a ChannelStateData message. * @function verify - * @memberof ibc.lightclients.solomachine.v2.PacketReceiptAbsenceData + * @memberof ibc.lightclients.solomachine.v2.ChannelStateData * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PacketReceiptAbsenceData.verify = function verify(message) { + ChannelStateData.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.path != null && message.hasOwnProperty("path")) if (!(message.path && typeof message.path.length === "number" || $util.isString(message.path))) return "path: buffer expected"; + if (message.channel != null && message.hasOwnProperty("channel")) { + var error = $root.ibc.core.channel.v1.Channel.verify(message.channel); + if (error) + return "channel." + error; + } return null; }; /** - * Creates a PacketReceiptAbsenceData message from a plain object. Also converts values to their respective internal types. + * Creates a ChannelStateData message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.lightclients.solomachine.v2.PacketReceiptAbsenceData + * @memberof ibc.lightclients.solomachine.v2.ChannelStateData * @static * @param {Object.} object Plain object - * @returns {ibc.lightclients.solomachine.v2.PacketReceiptAbsenceData} PacketReceiptAbsenceData + * @returns {ibc.lightclients.solomachine.v2.ChannelStateData} ChannelStateData */ - PacketReceiptAbsenceData.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.lightclients.solomachine.v2.PacketReceiptAbsenceData) + ChannelStateData.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.lightclients.solomachine.v2.ChannelStateData) return object; - var message = new $root.ibc.lightclients.solomachine.v2.PacketReceiptAbsenceData(); + var message = new $root.ibc.lightclients.solomachine.v2.ChannelStateData(); if (object.path != null) if (typeof object.path === "string") $util.base64.decode(object.path, message.path = $util.newBuffer($util.base64.length(object.path)), 0); else if (object.path.length) message.path = object.path; + if (object.channel != null) { + if (typeof object.channel !== "object") + throw TypeError(".ibc.lightclients.solomachine.v2.ChannelStateData.channel: object expected"); + message.channel = $root.ibc.core.channel.v1.Channel.fromObject(object.channel); + } return message; }; /** - * Creates a plain object from a PacketReceiptAbsenceData message. Also converts values to other types if specified. + * Creates a plain object from a ChannelStateData message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.lightclients.solomachine.v2.PacketReceiptAbsenceData + * @memberof ibc.lightclients.solomachine.v2.ChannelStateData * @static - * @param {ibc.lightclients.solomachine.v2.PacketReceiptAbsenceData} message PacketReceiptAbsenceData + * @param {ibc.lightclients.solomachine.v2.ChannelStateData} message ChannelStateData * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PacketReceiptAbsenceData.toObject = function toObject(message, options) { + ChannelStateData.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) + if (options.defaults) { if (options.bytes === String) object.path = ""; else { @@ -71955,44 +78301,48 @@ if (options.bytes !== Array) object.path = $util.newBuffer(object.path); } + object.channel = null; + } if (message.path != null && message.hasOwnProperty("path")) object.path = options.bytes === String ? $util.base64.encode(message.path, 0, message.path.length) : options.bytes === Array ? Array.prototype.slice.call(message.path) : message.path; + if (message.channel != null && message.hasOwnProperty("channel")) + object.channel = $root.ibc.core.channel.v1.Channel.toObject(message.channel, options); return object; }; /** - * Converts this PacketReceiptAbsenceData to JSON. + * Converts this ChannelStateData to JSON. * @function toJSON - * @memberof ibc.lightclients.solomachine.v2.PacketReceiptAbsenceData + * @memberof ibc.lightclients.solomachine.v2.ChannelStateData * @instance * @returns {Object.} JSON object */ - PacketReceiptAbsenceData.prototype.toJSON = function toJSON() { + ChannelStateData.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return PacketReceiptAbsenceData; + return ChannelStateData; })(); - v2.NextSequenceRecvData = (function() { + v2.PacketCommitmentData = (function() { /** - * Properties of a NextSequenceRecvData. + * Properties of a PacketCommitmentData. * @memberof ibc.lightclients.solomachine.v2 - * @interface INextSequenceRecvData - * @property {Uint8Array|null} [path] NextSequenceRecvData path - * @property {Long|null} [next_seq_recv] NextSequenceRecvData next_seq_recv + * @interface IPacketCommitmentData + * @property {Uint8Array|null} [path] PacketCommitmentData path + * @property {Uint8Array|null} [commitment] PacketCommitmentData commitment */ /** - * Constructs a new NextSequenceRecvData. + * Constructs a new PacketCommitmentData. * @memberof ibc.lightclients.solomachine.v2 - * @classdesc Represents a NextSequenceRecvData. - * @implements INextSequenceRecvData + * @classdesc Represents a PacketCommitmentData. + * @implements IPacketCommitmentData * @constructor - * @param {ibc.lightclients.solomachine.v2.INextSequenceRecvData=} [properties] Properties to set + * @param {ibc.lightclients.solomachine.v2.IPacketCommitmentData=} [properties] Properties to set */ - function NextSequenceRecvData(properties) { + function PacketCommitmentData(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -72000,68 +78350,68 @@ } /** - * NextSequenceRecvData path. + * PacketCommitmentData path. * @member {Uint8Array} path - * @memberof ibc.lightclients.solomachine.v2.NextSequenceRecvData + * @memberof ibc.lightclients.solomachine.v2.PacketCommitmentData * @instance */ - NextSequenceRecvData.prototype.path = $util.newBuffer([]); + PacketCommitmentData.prototype.path = $util.newBuffer([]); /** - * NextSequenceRecvData next_seq_recv. - * @member {Long} next_seq_recv - * @memberof ibc.lightclients.solomachine.v2.NextSequenceRecvData + * PacketCommitmentData commitment. + * @member {Uint8Array} commitment + * @memberof ibc.lightclients.solomachine.v2.PacketCommitmentData * @instance */ - NextSequenceRecvData.prototype.next_seq_recv = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + PacketCommitmentData.prototype.commitment = $util.newBuffer([]); /** - * Encodes the specified NextSequenceRecvData message. Does not implicitly {@link ibc.lightclients.solomachine.v2.NextSequenceRecvData.verify|verify} messages. + * Encodes the specified PacketCommitmentData message. Does not implicitly {@link ibc.lightclients.solomachine.v2.PacketCommitmentData.verify|verify} messages. * @function encode - * @memberof ibc.lightclients.solomachine.v2.NextSequenceRecvData + * @memberof ibc.lightclients.solomachine.v2.PacketCommitmentData * @static - * @param {ibc.lightclients.solomachine.v2.INextSequenceRecvData} message NextSequenceRecvData message or plain object to encode + * @param {ibc.lightclients.solomachine.v2.IPacketCommitmentData} message PacketCommitmentData message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NextSequenceRecvData.encode = function encode(message, writer) { + PacketCommitmentData.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.path != null && Object.hasOwnProperty.call(message, "path")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.path); - if (message.next_seq_recv != null && Object.hasOwnProperty.call(message, "next_seq_recv")) - writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.next_seq_recv); + if (message.commitment != null && Object.hasOwnProperty.call(message, "commitment")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.commitment); return writer; }; /** - * Encodes the specified NextSequenceRecvData message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v2.NextSequenceRecvData.verify|verify} messages. + * Encodes the specified PacketCommitmentData message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v2.PacketCommitmentData.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.lightclients.solomachine.v2.NextSequenceRecvData + * @memberof ibc.lightclients.solomachine.v2.PacketCommitmentData * @static - * @param {ibc.lightclients.solomachine.v2.INextSequenceRecvData} message NextSequenceRecvData message or plain object to encode + * @param {ibc.lightclients.solomachine.v2.IPacketCommitmentData} message PacketCommitmentData message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NextSequenceRecvData.encodeDelimited = function encodeDelimited(message, writer) { + PacketCommitmentData.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a NextSequenceRecvData message from the specified reader or buffer. + * Decodes a PacketCommitmentData message from the specified reader or buffer. * @function decode - * @memberof ibc.lightclients.solomachine.v2.NextSequenceRecvData + * @memberof ibc.lightclients.solomachine.v2.PacketCommitmentData * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.lightclients.solomachine.v2.NextSequenceRecvData} NextSequenceRecvData + * @returns {ibc.lightclients.solomachine.v2.PacketCommitmentData} PacketCommitmentData * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - NextSequenceRecvData.decode = function decode(reader, length) { + PacketCommitmentData.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.solomachine.v2.NextSequenceRecvData(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.solomachine.v2.PacketCommitmentData(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -72069,7 +78419,7 @@ message.path = reader.bytes(); break; case 2: - message.next_seq_recv = reader.uint64(); + message.commitment = reader.bytes(); break; default: reader.skipType(tag & 7); @@ -72080,80 +78430,76 @@ }; /** - * Decodes a NextSequenceRecvData message from the specified reader or buffer, length delimited. + * Decodes a PacketCommitmentData message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.lightclients.solomachine.v2.NextSequenceRecvData + * @memberof ibc.lightclients.solomachine.v2.PacketCommitmentData * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.lightclients.solomachine.v2.NextSequenceRecvData} NextSequenceRecvData + * @returns {ibc.lightclients.solomachine.v2.PacketCommitmentData} PacketCommitmentData * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - NextSequenceRecvData.decodeDelimited = function decodeDelimited(reader) { + PacketCommitmentData.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a NextSequenceRecvData message. + * Verifies a PacketCommitmentData message. * @function verify - * @memberof ibc.lightclients.solomachine.v2.NextSequenceRecvData + * @memberof ibc.lightclients.solomachine.v2.PacketCommitmentData * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - NextSequenceRecvData.verify = function verify(message) { + PacketCommitmentData.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.path != null && message.hasOwnProperty("path")) if (!(message.path && typeof message.path.length === "number" || $util.isString(message.path))) return "path: buffer expected"; - if (message.next_seq_recv != null && message.hasOwnProperty("next_seq_recv")) - if (!$util.isInteger(message.next_seq_recv) && !(message.next_seq_recv && $util.isInteger(message.next_seq_recv.low) && $util.isInteger(message.next_seq_recv.high))) - return "next_seq_recv: integer|Long expected"; + if (message.commitment != null && message.hasOwnProperty("commitment")) + if (!(message.commitment && typeof message.commitment.length === "number" || $util.isString(message.commitment))) + return "commitment: buffer expected"; return null; }; /** - * Creates a NextSequenceRecvData message from a plain object. Also converts values to their respective internal types. + * Creates a PacketCommitmentData message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.lightclients.solomachine.v2.NextSequenceRecvData + * @memberof ibc.lightclients.solomachine.v2.PacketCommitmentData * @static * @param {Object.} object Plain object - * @returns {ibc.lightclients.solomachine.v2.NextSequenceRecvData} NextSequenceRecvData + * @returns {ibc.lightclients.solomachine.v2.PacketCommitmentData} PacketCommitmentData */ - NextSequenceRecvData.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.lightclients.solomachine.v2.NextSequenceRecvData) + PacketCommitmentData.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.lightclients.solomachine.v2.PacketCommitmentData) return object; - var message = new $root.ibc.lightclients.solomachine.v2.NextSequenceRecvData(); + var message = new $root.ibc.lightclients.solomachine.v2.PacketCommitmentData(); if (object.path != null) if (typeof object.path === "string") $util.base64.decode(object.path, message.path = $util.newBuffer($util.base64.length(object.path)), 0); else if (object.path.length) message.path = object.path; - if (object.next_seq_recv != null) - if ($util.Long) - (message.next_seq_recv = $util.Long.fromValue(object.next_seq_recv)).unsigned = true; - else if (typeof object.next_seq_recv === "string") - message.next_seq_recv = parseInt(object.next_seq_recv, 10); - else if (typeof object.next_seq_recv === "number") - message.next_seq_recv = object.next_seq_recv; - else if (typeof object.next_seq_recv === "object") - message.next_seq_recv = new $util.LongBits(object.next_seq_recv.low >>> 0, object.next_seq_recv.high >>> 0).toNumber(true); + if (object.commitment != null) + if (typeof object.commitment === "string") + $util.base64.decode(object.commitment, message.commitment = $util.newBuffer($util.base64.length(object.commitment)), 0); + else if (object.commitment.length) + message.commitment = object.commitment; return message; }; /** - * Creates a plain object from a NextSequenceRecvData message. Also converts values to other types if specified. + * Creates a plain object from a PacketCommitmentData message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.lightclients.solomachine.v2.NextSequenceRecvData + * @memberof ibc.lightclients.solomachine.v2.PacketCommitmentData * @static - * @param {ibc.lightclients.solomachine.v2.NextSequenceRecvData} message NextSequenceRecvData + * @param {ibc.lightclients.solomachine.v2.PacketCommitmentData} message PacketCommitmentData * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - NextSequenceRecvData.toObject = function toObject(message, options) { + PacketCommitmentData.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -72165,290 +78511,131 @@ if (options.bytes !== Array) object.path = $util.newBuffer(object.path); } - if ($util.Long) { - var long = new $util.Long(0, 0, true); - object.next_seq_recv = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.next_seq_recv = options.longs === String ? "0" : 0; + if (options.bytes === String) + object.commitment = ""; + else { + object.commitment = []; + if (options.bytes !== Array) + object.commitment = $util.newBuffer(object.commitment); + } } if (message.path != null && message.hasOwnProperty("path")) object.path = options.bytes === String ? $util.base64.encode(message.path, 0, message.path.length) : options.bytes === Array ? Array.prototype.slice.call(message.path) : message.path; - if (message.next_seq_recv != null && message.hasOwnProperty("next_seq_recv")) - if (typeof message.next_seq_recv === "number") - object.next_seq_recv = options.longs === String ? String(message.next_seq_recv) : message.next_seq_recv; - else - object.next_seq_recv = options.longs === String ? $util.Long.prototype.toString.call(message.next_seq_recv) : options.longs === Number ? new $util.LongBits(message.next_seq_recv.low >>> 0, message.next_seq_recv.high >>> 0).toNumber(true) : message.next_seq_recv; + if (message.commitment != null && message.hasOwnProperty("commitment")) + object.commitment = options.bytes === String ? $util.base64.encode(message.commitment, 0, message.commitment.length) : options.bytes === Array ? Array.prototype.slice.call(message.commitment) : message.commitment; return object; }; /** - * Converts this NextSequenceRecvData to JSON. + * Converts this PacketCommitmentData to JSON. * @function toJSON - * @memberof ibc.lightclients.solomachine.v2.NextSequenceRecvData + * @memberof ibc.lightclients.solomachine.v2.PacketCommitmentData * @instance * @returns {Object.} JSON object */ - NextSequenceRecvData.prototype.toJSON = function toJSON() { + PacketCommitmentData.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return NextSequenceRecvData; + return PacketCommitmentData; })(); - return v2; - })(); - - return solomachine; - })(); - - lightclients.tendermint = (function() { - - /** - * Namespace tendermint. - * @memberof ibc.lightclients - * @namespace - */ - var tendermint = {}; - - tendermint.v1 = (function() { - - /** - * Namespace v1. - * @memberof ibc.lightclients.tendermint - * @namespace - */ - var v1 = {}; - - v1.ClientState = (function() { - - /** - * Properties of a ClientState. - * @memberof ibc.lightclients.tendermint.v1 - * @interface IClientState - * @property {string|null} [chain_id] ClientState chain_id - * @property {ibc.lightclients.tendermint.v1.IFraction|null} [trust_level] ClientState trust_level - * @property {google.protobuf.IDuration|null} [trusting_period] ClientState trusting_period - * @property {google.protobuf.IDuration|null} [unbonding_period] ClientState unbonding_period - * @property {google.protobuf.IDuration|null} [max_clock_drift] ClientState max_clock_drift - * @property {ibc.core.client.v1.IHeight|null} [frozen_height] ClientState frozen_height - * @property {ibc.core.client.v1.IHeight|null} [latest_height] ClientState latest_height - * @property {Array.|null} [proof_specs] ClientState proof_specs - * @property {Array.|null} [upgrade_path] ClientState upgrade_path - * @property {boolean|null} [allow_update_after_expiry] ClientState allow_update_after_expiry - * @property {boolean|null} [allow_update_after_misbehaviour] ClientState allow_update_after_misbehaviour - */ - - /** - * Constructs a new ClientState. - * @memberof ibc.lightclients.tendermint.v1 - * @classdesc Represents a ClientState. - * @implements IClientState - * @constructor - * @param {ibc.lightclients.tendermint.v1.IClientState=} [properties] Properties to set - */ - function ClientState(properties) { - this.proof_specs = []; - this.upgrade_path = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ClientState chain_id. - * @member {string} chain_id - * @memberof ibc.lightclients.tendermint.v1.ClientState - * @instance - */ - ClientState.prototype.chain_id = ""; - - /** - * ClientState trust_level. - * @member {ibc.lightclients.tendermint.v1.IFraction|null|undefined} trust_level - * @memberof ibc.lightclients.tendermint.v1.ClientState - * @instance - */ - ClientState.prototype.trust_level = null; - - /** - * ClientState trusting_period. - * @member {google.protobuf.IDuration|null|undefined} trusting_period - * @memberof ibc.lightclients.tendermint.v1.ClientState - * @instance - */ - ClientState.prototype.trusting_period = null; - - /** - * ClientState unbonding_period. - * @member {google.protobuf.IDuration|null|undefined} unbonding_period - * @memberof ibc.lightclients.tendermint.v1.ClientState - * @instance - */ - ClientState.prototype.unbonding_period = null; - - /** - * ClientState max_clock_drift. - * @member {google.protobuf.IDuration|null|undefined} max_clock_drift - * @memberof ibc.lightclients.tendermint.v1.ClientState - * @instance - */ - ClientState.prototype.max_clock_drift = null; - - /** - * ClientState frozen_height. - * @member {ibc.core.client.v1.IHeight|null|undefined} frozen_height - * @memberof ibc.lightclients.tendermint.v1.ClientState - * @instance - */ - ClientState.prototype.frozen_height = null; - - /** - * ClientState latest_height. - * @member {ibc.core.client.v1.IHeight|null|undefined} latest_height - * @memberof ibc.lightclients.tendermint.v1.ClientState - * @instance - */ - ClientState.prototype.latest_height = null; + v2.PacketAcknowledgementData = (function() { /** - * ClientState proof_specs. - * @member {Array.} proof_specs - * @memberof ibc.lightclients.tendermint.v1.ClientState - * @instance + * Properties of a PacketAcknowledgementData. + * @memberof ibc.lightclients.solomachine.v2 + * @interface IPacketAcknowledgementData + * @property {Uint8Array|null} [path] PacketAcknowledgementData path + * @property {Uint8Array|null} [acknowledgement] PacketAcknowledgementData acknowledgement */ - ClientState.prototype.proof_specs = $util.emptyArray; /** - * ClientState upgrade_path. - * @member {Array.} upgrade_path - * @memberof ibc.lightclients.tendermint.v1.ClientState - * @instance + * Constructs a new PacketAcknowledgementData. + * @memberof ibc.lightclients.solomachine.v2 + * @classdesc Represents a PacketAcknowledgementData. + * @implements IPacketAcknowledgementData + * @constructor + * @param {ibc.lightclients.solomachine.v2.IPacketAcknowledgementData=} [properties] Properties to set */ - ClientState.prototype.upgrade_path = $util.emptyArray; + function PacketAcknowledgementData(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * ClientState allow_update_after_expiry. - * @member {boolean} allow_update_after_expiry - * @memberof ibc.lightclients.tendermint.v1.ClientState + * PacketAcknowledgementData path. + * @member {Uint8Array} path + * @memberof ibc.lightclients.solomachine.v2.PacketAcknowledgementData * @instance */ - ClientState.prototype.allow_update_after_expiry = false; + PacketAcknowledgementData.prototype.path = $util.newBuffer([]); /** - * ClientState allow_update_after_misbehaviour. - * @member {boolean} allow_update_after_misbehaviour - * @memberof ibc.lightclients.tendermint.v1.ClientState + * PacketAcknowledgementData acknowledgement. + * @member {Uint8Array} acknowledgement + * @memberof ibc.lightclients.solomachine.v2.PacketAcknowledgementData * @instance */ - ClientState.prototype.allow_update_after_misbehaviour = false; + PacketAcknowledgementData.prototype.acknowledgement = $util.newBuffer([]); /** - * Encodes the specified ClientState message. Does not implicitly {@link ibc.lightclients.tendermint.v1.ClientState.verify|verify} messages. + * Encodes the specified PacketAcknowledgementData message. Does not implicitly {@link ibc.lightclients.solomachine.v2.PacketAcknowledgementData.verify|verify} messages. * @function encode - * @memberof ibc.lightclients.tendermint.v1.ClientState + * @memberof ibc.lightclients.solomachine.v2.PacketAcknowledgementData * @static - * @param {ibc.lightclients.tendermint.v1.IClientState} message ClientState message or plain object to encode + * @param {ibc.lightclients.solomachine.v2.IPacketAcknowledgementData} message PacketAcknowledgementData message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ClientState.encode = function encode(message, writer) { + PacketAcknowledgementData.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.chain_id != null && Object.hasOwnProperty.call(message, "chain_id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.chain_id); - if (message.trust_level != null && Object.hasOwnProperty.call(message, "trust_level")) - $root.ibc.lightclients.tendermint.v1.Fraction.encode(message.trust_level, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.trusting_period != null && Object.hasOwnProperty.call(message, "trusting_period")) - $root.google.protobuf.Duration.encode(message.trusting_period, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.unbonding_period != null && Object.hasOwnProperty.call(message, "unbonding_period")) - $root.google.protobuf.Duration.encode(message.unbonding_period, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.max_clock_drift != null && Object.hasOwnProperty.call(message, "max_clock_drift")) - $root.google.protobuf.Duration.encode(message.max_clock_drift, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.frozen_height != null && Object.hasOwnProperty.call(message, "frozen_height")) - $root.ibc.core.client.v1.Height.encode(message.frozen_height, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.latest_height != null && Object.hasOwnProperty.call(message, "latest_height")) - $root.ibc.core.client.v1.Height.encode(message.latest_height, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.proof_specs != null && message.proof_specs.length) - for (var i = 0; i < message.proof_specs.length; ++i) - $root.ics23.ProofSpec.encode(message.proof_specs[i], writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.upgrade_path != null && message.upgrade_path.length) - for (var i = 0; i < message.upgrade_path.length; ++i) - writer.uint32(/* id 9, wireType 2 =*/74).string(message.upgrade_path[i]); - if (message.allow_update_after_expiry != null && Object.hasOwnProperty.call(message, "allow_update_after_expiry")) - writer.uint32(/* id 10, wireType 0 =*/80).bool(message.allow_update_after_expiry); - if (message.allow_update_after_misbehaviour != null && Object.hasOwnProperty.call(message, "allow_update_after_misbehaviour")) - writer.uint32(/* id 11, wireType 0 =*/88).bool(message.allow_update_after_misbehaviour); + if (message.path != null && Object.hasOwnProperty.call(message, "path")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.path); + if (message.acknowledgement != null && Object.hasOwnProperty.call(message, "acknowledgement")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.acknowledgement); return writer; }; /** - * Encodes the specified ClientState message, length delimited. Does not implicitly {@link ibc.lightclients.tendermint.v1.ClientState.verify|verify} messages. + * Encodes the specified PacketAcknowledgementData message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v2.PacketAcknowledgementData.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.lightclients.tendermint.v1.ClientState + * @memberof ibc.lightclients.solomachine.v2.PacketAcknowledgementData * @static - * @param {ibc.lightclients.tendermint.v1.IClientState} message ClientState message or plain object to encode + * @param {ibc.lightclients.solomachine.v2.IPacketAcknowledgementData} message PacketAcknowledgementData message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ClientState.encodeDelimited = function encodeDelimited(message, writer) { + PacketAcknowledgementData.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ClientState message from the specified reader or buffer. + * Decodes a PacketAcknowledgementData message from the specified reader or buffer. * @function decode - * @memberof ibc.lightclients.tendermint.v1.ClientState + * @memberof ibc.lightclients.solomachine.v2.PacketAcknowledgementData * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.lightclients.tendermint.v1.ClientState} ClientState + * @returns {ibc.lightclients.solomachine.v2.PacketAcknowledgementData} PacketAcknowledgementData * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ClientState.decode = function decode(reader, length) { + PacketAcknowledgementData.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.tendermint.v1.ClientState(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.solomachine.v2.PacketAcknowledgementData(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.chain_id = reader.string(); + message.path = reader.bytes(); break; case 2: - message.trust_level = $root.ibc.lightclients.tendermint.v1.Fraction.decode(reader, reader.uint32()); - break; - case 3: - message.trusting_period = $root.google.protobuf.Duration.decode(reader, reader.uint32()); - break; - case 4: - message.unbonding_period = $root.google.protobuf.Duration.decode(reader, reader.uint32()); - break; - case 5: - message.max_clock_drift = $root.google.protobuf.Duration.decode(reader, reader.uint32()); - break; - case 6: - message.frozen_height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); - break; - case 7: - message.latest_height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); - break; - case 8: - if (!(message.proof_specs && message.proof_specs.length)) - message.proof_specs = []; - message.proof_specs.push($root.ics23.ProofSpec.decode(reader, reader.uint32())); - break; - case 9: - if (!(message.upgrade_path && message.upgrade_path.length)) - message.upgrade_path = []; - message.upgrade_path.push(reader.string()); - break; - case 10: - message.allow_update_after_expiry = reader.bool(); - break; - case 11: - message.allow_update_after_misbehaviour = reader.bool(); + message.acknowledgement = reader.bytes(); break; default: reader.skipType(tag & 7); @@ -72459,251 +78646,134 @@ }; /** - * Decodes a ClientState message from the specified reader or buffer, length delimited. + * Decodes a PacketAcknowledgementData message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.lightclients.tendermint.v1.ClientState + * @memberof ibc.lightclients.solomachine.v2.PacketAcknowledgementData * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.lightclients.tendermint.v1.ClientState} ClientState + * @returns {ibc.lightclients.solomachine.v2.PacketAcknowledgementData} PacketAcknowledgementData * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ClientState.decodeDelimited = function decodeDelimited(reader) { + PacketAcknowledgementData.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ClientState message. + * Verifies a PacketAcknowledgementData message. * @function verify - * @memberof ibc.lightclients.tendermint.v1.ClientState + * @memberof ibc.lightclients.solomachine.v2.PacketAcknowledgementData * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ClientState.verify = function verify(message) { + PacketAcknowledgementData.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.chain_id != null && message.hasOwnProperty("chain_id")) - if (!$util.isString(message.chain_id)) - return "chain_id: string expected"; - if (message.trust_level != null && message.hasOwnProperty("trust_level")) { - var error = $root.ibc.lightclients.tendermint.v1.Fraction.verify(message.trust_level); - if (error) - return "trust_level." + error; - } - if (message.trusting_period != null && message.hasOwnProperty("trusting_period")) { - var error = $root.google.protobuf.Duration.verify(message.trusting_period); - if (error) - return "trusting_period." + error; - } - if (message.unbonding_period != null && message.hasOwnProperty("unbonding_period")) { - var error = $root.google.protobuf.Duration.verify(message.unbonding_period); - if (error) - return "unbonding_period." + error; - } - if (message.max_clock_drift != null && message.hasOwnProperty("max_clock_drift")) { - var error = $root.google.protobuf.Duration.verify(message.max_clock_drift); - if (error) - return "max_clock_drift." + error; - } - if (message.frozen_height != null && message.hasOwnProperty("frozen_height")) { - var error = $root.ibc.core.client.v1.Height.verify(message.frozen_height); - if (error) - return "frozen_height." + error; - } - if (message.latest_height != null && message.hasOwnProperty("latest_height")) { - var error = $root.ibc.core.client.v1.Height.verify(message.latest_height); - if (error) - return "latest_height." + error; - } - if (message.proof_specs != null && message.hasOwnProperty("proof_specs")) { - if (!Array.isArray(message.proof_specs)) - return "proof_specs: array expected"; - for (var i = 0; i < message.proof_specs.length; ++i) { - var error = $root.ics23.ProofSpec.verify(message.proof_specs[i]); - if (error) - return "proof_specs." + error; - } - } - if (message.upgrade_path != null && message.hasOwnProperty("upgrade_path")) { - if (!Array.isArray(message.upgrade_path)) - return "upgrade_path: array expected"; - for (var i = 0; i < message.upgrade_path.length; ++i) - if (!$util.isString(message.upgrade_path[i])) - return "upgrade_path: string[] expected"; - } - if (message.allow_update_after_expiry != null && message.hasOwnProperty("allow_update_after_expiry")) - if (typeof message.allow_update_after_expiry !== "boolean") - return "allow_update_after_expiry: boolean expected"; - if (message.allow_update_after_misbehaviour != null && message.hasOwnProperty("allow_update_after_misbehaviour")) - if (typeof message.allow_update_after_misbehaviour !== "boolean") - return "allow_update_after_misbehaviour: boolean expected"; + if (message.path != null && message.hasOwnProperty("path")) + if (!(message.path && typeof message.path.length === "number" || $util.isString(message.path))) + return "path: buffer expected"; + if (message.acknowledgement != null && message.hasOwnProperty("acknowledgement")) + if (!(message.acknowledgement && typeof message.acknowledgement.length === "number" || $util.isString(message.acknowledgement))) + return "acknowledgement: buffer expected"; return null; }; /** - * Creates a ClientState message from a plain object. Also converts values to their respective internal types. + * Creates a PacketAcknowledgementData message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.lightclients.tendermint.v1.ClientState + * @memberof ibc.lightclients.solomachine.v2.PacketAcknowledgementData * @static * @param {Object.} object Plain object - * @returns {ibc.lightclients.tendermint.v1.ClientState} ClientState + * @returns {ibc.lightclients.solomachine.v2.PacketAcknowledgementData} PacketAcknowledgementData */ - ClientState.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.lightclients.tendermint.v1.ClientState) + PacketAcknowledgementData.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.lightclients.solomachine.v2.PacketAcknowledgementData) return object; - var message = new $root.ibc.lightclients.tendermint.v1.ClientState(); - if (object.chain_id != null) - message.chain_id = String(object.chain_id); - if (object.trust_level != null) { - if (typeof object.trust_level !== "object") - throw TypeError(".ibc.lightclients.tendermint.v1.ClientState.trust_level: object expected"); - message.trust_level = $root.ibc.lightclients.tendermint.v1.Fraction.fromObject(object.trust_level); - } - if (object.trusting_period != null) { - if (typeof object.trusting_period !== "object") - throw TypeError(".ibc.lightclients.tendermint.v1.ClientState.trusting_period: object expected"); - message.trusting_period = $root.google.protobuf.Duration.fromObject(object.trusting_period); - } - if (object.unbonding_period != null) { - if (typeof object.unbonding_period !== "object") - throw TypeError(".ibc.lightclients.tendermint.v1.ClientState.unbonding_period: object expected"); - message.unbonding_period = $root.google.protobuf.Duration.fromObject(object.unbonding_period); - } - if (object.max_clock_drift != null) { - if (typeof object.max_clock_drift !== "object") - throw TypeError(".ibc.lightclients.tendermint.v1.ClientState.max_clock_drift: object expected"); - message.max_clock_drift = $root.google.protobuf.Duration.fromObject(object.max_clock_drift); - } - if (object.frozen_height != null) { - if (typeof object.frozen_height !== "object") - throw TypeError(".ibc.lightclients.tendermint.v1.ClientState.frozen_height: object expected"); - message.frozen_height = $root.ibc.core.client.v1.Height.fromObject(object.frozen_height); - } - if (object.latest_height != null) { - if (typeof object.latest_height !== "object") - throw TypeError(".ibc.lightclients.tendermint.v1.ClientState.latest_height: object expected"); - message.latest_height = $root.ibc.core.client.v1.Height.fromObject(object.latest_height); - } - if (object.proof_specs) { - if (!Array.isArray(object.proof_specs)) - throw TypeError(".ibc.lightclients.tendermint.v1.ClientState.proof_specs: array expected"); - message.proof_specs = []; - for (var i = 0; i < object.proof_specs.length; ++i) { - if (typeof object.proof_specs[i] !== "object") - throw TypeError(".ibc.lightclients.tendermint.v1.ClientState.proof_specs: object expected"); - message.proof_specs[i] = $root.ics23.ProofSpec.fromObject(object.proof_specs[i]); - } - } - if (object.upgrade_path) { - if (!Array.isArray(object.upgrade_path)) - throw TypeError(".ibc.lightclients.tendermint.v1.ClientState.upgrade_path: array expected"); - message.upgrade_path = []; - for (var i = 0; i < object.upgrade_path.length; ++i) - message.upgrade_path[i] = String(object.upgrade_path[i]); - } - if (object.allow_update_after_expiry != null) - message.allow_update_after_expiry = Boolean(object.allow_update_after_expiry); - if (object.allow_update_after_misbehaviour != null) - message.allow_update_after_misbehaviour = Boolean(object.allow_update_after_misbehaviour); + var message = new $root.ibc.lightclients.solomachine.v2.PacketAcknowledgementData(); + if (object.path != null) + if (typeof object.path === "string") + $util.base64.decode(object.path, message.path = $util.newBuffer($util.base64.length(object.path)), 0); + else if (object.path.length) + message.path = object.path; + if (object.acknowledgement != null) + if (typeof object.acknowledgement === "string") + $util.base64.decode(object.acknowledgement, message.acknowledgement = $util.newBuffer($util.base64.length(object.acknowledgement)), 0); + else if (object.acknowledgement.length) + message.acknowledgement = object.acknowledgement; return message; }; /** - * Creates a plain object from a ClientState message. Also converts values to other types if specified. + * Creates a plain object from a PacketAcknowledgementData message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.lightclients.tendermint.v1.ClientState + * @memberof ibc.lightclients.solomachine.v2.PacketAcknowledgementData * @static - * @param {ibc.lightclients.tendermint.v1.ClientState} message ClientState + * @param {ibc.lightclients.solomachine.v2.PacketAcknowledgementData} message PacketAcknowledgementData * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ClientState.toObject = function toObject(message, options) { + PacketAcknowledgementData.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.proof_specs = []; - object.upgrade_path = []; - } if (options.defaults) { - object.chain_id = ""; - object.trust_level = null; - object.trusting_period = null; - object.unbonding_period = null; - object.max_clock_drift = null; - object.frozen_height = null; - object.latest_height = null; - object.allow_update_after_expiry = false; - object.allow_update_after_misbehaviour = false; - } - if (message.chain_id != null && message.hasOwnProperty("chain_id")) - object.chain_id = message.chain_id; - if (message.trust_level != null && message.hasOwnProperty("trust_level")) - object.trust_level = $root.ibc.lightclients.tendermint.v1.Fraction.toObject(message.trust_level, options); - if (message.trusting_period != null && message.hasOwnProperty("trusting_period")) - object.trusting_period = $root.google.protobuf.Duration.toObject(message.trusting_period, options); - if (message.unbonding_period != null && message.hasOwnProperty("unbonding_period")) - object.unbonding_period = $root.google.protobuf.Duration.toObject(message.unbonding_period, options); - if (message.max_clock_drift != null && message.hasOwnProperty("max_clock_drift")) - object.max_clock_drift = $root.google.protobuf.Duration.toObject(message.max_clock_drift, options); - if (message.frozen_height != null && message.hasOwnProperty("frozen_height")) - object.frozen_height = $root.ibc.core.client.v1.Height.toObject(message.frozen_height, options); - if (message.latest_height != null && message.hasOwnProperty("latest_height")) - object.latest_height = $root.ibc.core.client.v1.Height.toObject(message.latest_height, options); - if (message.proof_specs && message.proof_specs.length) { - object.proof_specs = []; - for (var j = 0; j < message.proof_specs.length; ++j) - object.proof_specs[j] = $root.ics23.ProofSpec.toObject(message.proof_specs[j], options); - } - if (message.upgrade_path && message.upgrade_path.length) { - object.upgrade_path = []; - for (var j = 0; j < message.upgrade_path.length; ++j) - object.upgrade_path[j] = message.upgrade_path[j]; + if (options.bytes === String) + object.path = ""; + else { + object.path = []; + if (options.bytes !== Array) + object.path = $util.newBuffer(object.path); + } + if (options.bytes === String) + object.acknowledgement = ""; + else { + object.acknowledgement = []; + if (options.bytes !== Array) + object.acknowledgement = $util.newBuffer(object.acknowledgement); + } } - if (message.allow_update_after_expiry != null && message.hasOwnProperty("allow_update_after_expiry")) - object.allow_update_after_expiry = message.allow_update_after_expiry; - if (message.allow_update_after_misbehaviour != null && message.hasOwnProperty("allow_update_after_misbehaviour")) - object.allow_update_after_misbehaviour = message.allow_update_after_misbehaviour; + if (message.path != null && message.hasOwnProperty("path")) + object.path = options.bytes === String ? $util.base64.encode(message.path, 0, message.path.length) : options.bytes === Array ? Array.prototype.slice.call(message.path) : message.path; + if (message.acknowledgement != null && message.hasOwnProperty("acknowledgement")) + object.acknowledgement = options.bytes === String ? $util.base64.encode(message.acknowledgement, 0, message.acknowledgement.length) : options.bytes === Array ? Array.prototype.slice.call(message.acknowledgement) : message.acknowledgement; return object; }; /** - * Converts this ClientState to JSON. + * Converts this PacketAcknowledgementData to JSON. * @function toJSON - * @memberof ibc.lightclients.tendermint.v1.ClientState + * @memberof ibc.lightclients.solomachine.v2.PacketAcknowledgementData * @instance * @returns {Object.} JSON object */ - ClientState.prototype.toJSON = function toJSON() { + PacketAcknowledgementData.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ClientState; + return PacketAcknowledgementData; })(); - v1.ConsensusState = (function() { + v2.PacketReceiptAbsenceData = (function() { /** - * Properties of a ConsensusState. - * @memberof ibc.lightclients.tendermint.v1 - * @interface IConsensusState - * @property {google.protobuf.ITimestamp|null} [timestamp] ConsensusState timestamp - * @property {ibc.core.commitment.v1.IMerkleRoot|null} [root] ConsensusState root - * @property {Uint8Array|null} [next_validators_hash] ConsensusState next_validators_hash + * Properties of a PacketReceiptAbsenceData. + * @memberof ibc.lightclients.solomachine.v2 + * @interface IPacketReceiptAbsenceData + * @property {Uint8Array|null} [path] PacketReceiptAbsenceData path */ /** - * Constructs a new ConsensusState. - * @memberof ibc.lightclients.tendermint.v1 - * @classdesc Represents a ConsensusState. - * @implements IConsensusState + * Constructs a new PacketReceiptAbsenceData. + * @memberof ibc.lightclients.solomachine.v2 + * @classdesc Represents a PacketReceiptAbsenceData. + * @implements IPacketReceiptAbsenceData * @constructor - * @param {ibc.lightclients.tendermint.v1.IConsensusState=} [properties] Properties to set + * @param {ibc.lightclients.solomachine.v2.IPacketReceiptAbsenceData=} [properties] Properties to set */ - function ConsensusState(properties) { + function PacketReceiptAbsenceData(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -72711,89 +78781,63 @@ } /** - * ConsensusState timestamp. - * @member {google.protobuf.ITimestamp|null|undefined} timestamp - * @memberof ibc.lightclients.tendermint.v1.ConsensusState - * @instance - */ - ConsensusState.prototype.timestamp = null; - - /** - * ConsensusState root. - * @member {ibc.core.commitment.v1.IMerkleRoot|null|undefined} root - * @memberof ibc.lightclients.tendermint.v1.ConsensusState - * @instance - */ - ConsensusState.prototype.root = null; - - /** - * ConsensusState next_validators_hash. - * @member {Uint8Array} next_validators_hash - * @memberof ibc.lightclients.tendermint.v1.ConsensusState + * PacketReceiptAbsenceData path. + * @member {Uint8Array} path + * @memberof ibc.lightclients.solomachine.v2.PacketReceiptAbsenceData * @instance */ - ConsensusState.prototype.next_validators_hash = $util.newBuffer([]); + PacketReceiptAbsenceData.prototype.path = $util.newBuffer([]); /** - * Encodes the specified ConsensusState message. Does not implicitly {@link ibc.lightclients.tendermint.v1.ConsensusState.verify|verify} messages. + * Encodes the specified PacketReceiptAbsenceData message. Does not implicitly {@link ibc.lightclients.solomachine.v2.PacketReceiptAbsenceData.verify|verify} messages. * @function encode - * @memberof ibc.lightclients.tendermint.v1.ConsensusState + * @memberof ibc.lightclients.solomachine.v2.PacketReceiptAbsenceData * @static - * @param {ibc.lightclients.tendermint.v1.IConsensusState} message ConsensusState message or plain object to encode + * @param {ibc.lightclients.solomachine.v2.IPacketReceiptAbsenceData} message PacketReceiptAbsenceData message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ConsensusState.encode = function encode(message, writer) { + PacketReceiptAbsenceData.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.timestamp != null && Object.hasOwnProperty.call(message, "timestamp")) - $root.google.protobuf.Timestamp.encode(message.timestamp, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.root != null && Object.hasOwnProperty.call(message, "root")) - $root.ibc.core.commitment.v1.MerkleRoot.encode(message.root, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.next_validators_hash != null && Object.hasOwnProperty.call(message, "next_validators_hash")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.next_validators_hash); + if (message.path != null && Object.hasOwnProperty.call(message, "path")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.path); return writer; }; /** - * Encodes the specified ConsensusState message, length delimited. Does not implicitly {@link ibc.lightclients.tendermint.v1.ConsensusState.verify|verify} messages. + * Encodes the specified PacketReceiptAbsenceData message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v2.PacketReceiptAbsenceData.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.lightclients.tendermint.v1.ConsensusState + * @memberof ibc.lightclients.solomachine.v2.PacketReceiptAbsenceData * @static - * @param {ibc.lightclients.tendermint.v1.IConsensusState} message ConsensusState message or plain object to encode + * @param {ibc.lightclients.solomachine.v2.IPacketReceiptAbsenceData} message PacketReceiptAbsenceData message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ConsensusState.encodeDelimited = function encodeDelimited(message, writer) { + PacketReceiptAbsenceData.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ConsensusState message from the specified reader or buffer. + * Decodes a PacketReceiptAbsenceData message from the specified reader or buffer. * @function decode - * @memberof ibc.lightclients.tendermint.v1.ConsensusState + * @memberof ibc.lightclients.solomachine.v2.PacketReceiptAbsenceData * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.lightclients.tendermint.v1.ConsensusState} ConsensusState + * @returns {ibc.lightclients.solomachine.v2.PacketReceiptAbsenceData} PacketReceiptAbsenceData * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ConsensusState.decode = function decode(reader, length) { + PacketReceiptAbsenceData.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.tendermint.v1.ConsensusState(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.solomachine.v2.PacketReceiptAbsenceData(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.timestamp = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 2: - message.root = $root.ibc.core.commitment.v1.MerkleRoot.decode(reader, reader.uint32()); - break; - case 3: - message.next_validators_hash = reader.bytes(); + message.path = reader.bytes(); break; default: reader.skipType(tag & 7); @@ -72804,145 +78848,117 @@ }; /** - * Decodes a ConsensusState message from the specified reader or buffer, length delimited. + * Decodes a PacketReceiptAbsenceData message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.lightclients.tendermint.v1.ConsensusState + * @memberof ibc.lightclients.solomachine.v2.PacketReceiptAbsenceData * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.lightclients.tendermint.v1.ConsensusState} ConsensusState + * @returns {ibc.lightclients.solomachine.v2.PacketReceiptAbsenceData} PacketReceiptAbsenceData * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ConsensusState.decodeDelimited = function decodeDelimited(reader) { + PacketReceiptAbsenceData.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ConsensusState message. + * Verifies a PacketReceiptAbsenceData message. * @function verify - * @memberof ibc.lightclients.tendermint.v1.ConsensusState + * @memberof ibc.lightclients.solomachine.v2.PacketReceiptAbsenceData * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ConsensusState.verify = function verify(message) { + PacketReceiptAbsenceData.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.timestamp != null && message.hasOwnProperty("timestamp")) { - var error = $root.google.protobuf.Timestamp.verify(message.timestamp); - if (error) - return "timestamp." + error; - } - if (message.root != null && message.hasOwnProperty("root")) { - var error = $root.ibc.core.commitment.v1.MerkleRoot.verify(message.root); - if (error) - return "root." + error; - } - if (message.next_validators_hash != null && message.hasOwnProperty("next_validators_hash")) - if (!(message.next_validators_hash && typeof message.next_validators_hash.length === "number" || $util.isString(message.next_validators_hash))) - return "next_validators_hash: buffer expected"; + if (message.path != null && message.hasOwnProperty("path")) + if (!(message.path && typeof message.path.length === "number" || $util.isString(message.path))) + return "path: buffer expected"; return null; }; /** - * Creates a ConsensusState message from a plain object. Also converts values to their respective internal types. + * Creates a PacketReceiptAbsenceData message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.lightclients.tendermint.v1.ConsensusState + * @memberof ibc.lightclients.solomachine.v2.PacketReceiptAbsenceData * @static * @param {Object.} object Plain object - * @returns {ibc.lightclients.tendermint.v1.ConsensusState} ConsensusState + * @returns {ibc.lightclients.solomachine.v2.PacketReceiptAbsenceData} PacketReceiptAbsenceData */ - ConsensusState.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.lightclients.tendermint.v1.ConsensusState) + PacketReceiptAbsenceData.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.lightclients.solomachine.v2.PacketReceiptAbsenceData) return object; - var message = new $root.ibc.lightclients.tendermint.v1.ConsensusState(); - if (object.timestamp != null) { - if (typeof object.timestamp !== "object") - throw TypeError(".ibc.lightclients.tendermint.v1.ConsensusState.timestamp: object expected"); - message.timestamp = $root.google.protobuf.Timestamp.fromObject(object.timestamp); - } - if (object.root != null) { - if (typeof object.root !== "object") - throw TypeError(".ibc.lightclients.tendermint.v1.ConsensusState.root: object expected"); - message.root = $root.ibc.core.commitment.v1.MerkleRoot.fromObject(object.root); - } - if (object.next_validators_hash != null) - if (typeof object.next_validators_hash === "string") - $util.base64.decode(object.next_validators_hash, message.next_validators_hash = $util.newBuffer($util.base64.length(object.next_validators_hash)), 0); - else if (object.next_validators_hash.length) - message.next_validators_hash = object.next_validators_hash; + var message = new $root.ibc.lightclients.solomachine.v2.PacketReceiptAbsenceData(); + if (object.path != null) + if (typeof object.path === "string") + $util.base64.decode(object.path, message.path = $util.newBuffer($util.base64.length(object.path)), 0); + else if (object.path.length) + message.path = object.path; return message; }; /** - * Creates a plain object from a ConsensusState message. Also converts values to other types if specified. + * Creates a plain object from a PacketReceiptAbsenceData message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.lightclients.tendermint.v1.ConsensusState + * @memberof ibc.lightclients.solomachine.v2.PacketReceiptAbsenceData * @static - * @param {ibc.lightclients.tendermint.v1.ConsensusState} message ConsensusState + * @param {ibc.lightclients.solomachine.v2.PacketReceiptAbsenceData} message PacketReceiptAbsenceData * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ConsensusState.toObject = function toObject(message, options) { + PacketReceiptAbsenceData.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.timestamp = null; - object.root = null; + if (options.defaults) if (options.bytes === String) - object.next_validators_hash = ""; + object.path = ""; else { - object.next_validators_hash = []; + object.path = []; if (options.bytes !== Array) - object.next_validators_hash = $util.newBuffer(object.next_validators_hash); + object.path = $util.newBuffer(object.path); } - } - if (message.timestamp != null && message.hasOwnProperty("timestamp")) - object.timestamp = $root.google.protobuf.Timestamp.toObject(message.timestamp, options); - if (message.root != null && message.hasOwnProperty("root")) - object.root = $root.ibc.core.commitment.v1.MerkleRoot.toObject(message.root, options); - if (message.next_validators_hash != null && message.hasOwnProperty("next_validators_hash")) - object.next_validators_hash = options.bytes === String ? $util.base64.encode(message.next_validators_hash, 0, message.next_validators_hash.length) : options.bytes === Array ? Array.prototype.slice.call(message.next_validators_hash) : message.next_validators_hash; + if (message.path != null && message.hasOwnProperty("path")) + object.path = options.bytes === String ? $util.base64.encode(message.path, 0, message.path.length) : options.bytes === Array ? Array.prototype.slice.call(message.path) : message.path; return object; }; /** - * Converts this ConsensusState to JSON. + * Converts this PacketReceiptAbsenceData to JSON. * @function toJSON - * @memberof ibc.lightclients.tendermint.v1.ConsensusState + * @memberof ibc.lightclients.solomachine.v2.PacketReceiptAbsenceData * @instance * @returns {Object.} JSON object */ - ConsensusState.prototype.toJSON = function toJSON() { + PacketReceiptAbsenceData.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ConsensusState; + return PacketReceiptAbsenceData; })(); - v1.Misbehaviour = (function() { + v2.NextSequenceRecvData = (function() { /** - * Properties of a Misbehaviour. - * @memberof ibc.lightclients.tendermint.v1 - * @interface IMisbehaviour - * @property {string|null} [client_id] Misbehaviour client_id - * @property {ibc.lightclients.tendermint.v1.IHeader|null} [header_1] Misbehaviour header_1 - * @property {ibc.lightclients.tendermint.v1.IHeader|null} [header_2] Misbehaviour header_2 + * Properties of a NextSequenceRecvData. + * @memberof ibc.lightclients.solomachine.v2 + * @interface INextSequenceRecvData + * @property {Uint8Array|null} [path] NextSequenceRecvData path + * @property {Long|null} [next_seq_recv] NextSequenceRecvData next_seq_recv */ /** - * Constructs a new Misbehaviour. - * @memberof ibc.lightclients.tendermint.v1 - * @classdesc Represents a Misbehaviour. - * @implements IMisbehaviour + * Constructs a new NextSequenceRecvData. + * @memberof ibc.lightclients.solomachine.v2 + * @classdesc Represents a NextSequenceRecvData. + * @implements INextSequenceRecvData * @constructor - * @param {ibc.lightclients.tendermint.v1.IMisbehaviour=} [properties] Properties to set + * @param {ibc.lightclients.solomachine.v2.INextSequenceRecvData=} [properties] Properties to set */ - function Misbehaviour(properties) { + function NextSequenceRecvData(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -72950,89 +78966,76 @@ } /** - * Misbehaviour client_id. - * @member {string} client_id - * @memberof ibc.lightclients.tendermint.v1.Misbehaviour - * @instance - */ - Misbehaviour.prototype.client_id = ""; - - /** - * Misbehaviour header_1. - * @member {ibc.lightclients.tendermint.v1.IHeader|null|undefined} header_1 - * @memberof ibc.lightclients.tendermint.v1.Misbehaviour + * NextSequenceRecvData path. + * @member {Uint8Array} path + * @memberof ibc.lightclients.solomachine.v2.NextSequenceRecvData * @instance */ - Misbehaviour.prototype.header_1 = null; + NextSequenceRecvData.prototype.path = $util.newBuffer([]); /** - * Misbehaviour header_2. - * @member {ibc.lightclients.tendermint.v1.IHeader|null|undefined} header_2 - * @memberof ibc.lightclients.tendermint.v1.Misbehaviour + * NextSequenceRecvData next_seq_recv. + * @member {Long} next_seq_recv + * @memberof ibc.lightclients.solomachine.v2.NextSequenceRecvData * @instance */ - Misbehaviour.prototype.header_2 = null; + NextSequenceRecvData.prototype.next_seq_recv = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** - * Encodes the specified Misbehaviour message. Does not implicitly {@link ibc.lightclients.tendermint.v1.Misbehaviour.verify|verify} messages. + * Encodes the specified NextSequenceRecvData message. Does not implicitly {@link ibc.lightclients.solomachine.v2.NextSequenceRecvData.verify|verify} messages. * @function encode - * @memberof ibc.lightclients.tendermint.v1.Misbehaviour + * @memberof ibc.lightclients.solomachine.v2.NextSequenceRecvData * @static - * @param {ibc.lightclients.tendermint.v1.IMisbehaviour} message Misbehaviour message or plain object to encode + * @param {ibc.lightclients.solomachine.v2.INextSequenceRecvData} message NextSequenceRecvData message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Misbehaviour.encode = function encode(message, writer) { + NextSequenceRecvData.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.client_id != null && Object.hasOwnProperty.call(message, "client_id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.client_id); - if (message.header_1 != null && Object.hasOwnProperty.call(message, "header_1")) - $root.ibc.lightclients.tendermint.v1.Header.encode(message.header_1, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.header_2 != null && Object.hasOwnProperty.call(message, "header_2")) - $root.ibc.lightclients.tendermint.v1.Header.encode(message.header_2, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.path != null && Object.hasOwnProperty.call(message, "path")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.path); + if (message.next_seq_recv != null && Object.hasOwnProperty.call(message, "next_seq_recv")) + writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.next_seq_recv); return writer; }; /** - * Encodes the specified Misbehaviour message, length delimited. Does not implicitly {@link ibc.lightclients.tendermint.v1.Misbehaviour.verify|verify} messages. + * Encodes the specified NextSequenceRecvData message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v2.NextSequenceRecvData.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.lightclients.tendermint.v1.Misbehaviour + * @memberof ibc.lightclients.solomachine.v2.NextSequenceRecvData * @static - * @param {ibc.lightclients.tendermint.v1.IMisbehaviour} message Misbehaviour message or plain object to encode + * @param {ibc.lightclients.solomachine.v2.INextSequenceRecvData} message NextSequenceRecvData message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Misbehaviour.encodeDelimited = function encodeDelimited(message, writer) { + NextSequenceRecvData.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Misbehaviour message from the specified reader or buffer. + * Decodes a NextSequenceRecvData message from the specified reader or buffer. * @function decode - * @memberof ibc.lightclients.tendermint.v1.Misbehaviour + * @memberof ibc.lightclients.solomachine.v2.NextSequenceRecvData * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.lightclients.tendermint.v1.Misbehaviour} Misbehaviour + * @returns {ibc.lightclients.solomachine.v2.NextSequenceRecvData} NextSequenceRecvData * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Misbehaviour.decode = function decode(reader, length) { + NextSequenceRecvData.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.tendermint.v1.Misbehaviour(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.solomachine.v2.NextSequenceRecvData(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.client_id = reader.string(); + message.path = reader.bytes(); break; case 2: - message.header_1 = $root.ibc.lightclients.tendermint.v1.Header.decode(reader, reader.uint32()); - break; - case 3: - message.header_2 = $root.ibc.lightclients.tendermint.v1.Header.decode(reader, reader.uint32()); + message.next_seq_recv = reader.uint64(); break; default: reader.skipType(tag & 7); @@ -73043,137 +79046,153 @@ }; /** - * Decodes a Misbehaviour message from the specified reader or buffer, length delimited. + * Decodes a NextSequenceRecvData message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.lightclients.tendermint.v1.Misbehaviour + * @memberof ibc.lightclients.solomachine.v2.NextSequenceRecvData * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.lightclients.tendermint.v1.Misbehaviour} Misbehaviour + * @returns {ibc.lightclients.solomachine.v2.NextSequenceRecvData} NextSequenceRecvData * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Misbehaviour.decodeDelimited = function decodeDelimited(reader) { + NextSequenceRecvData.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Misbehaviour message. + * Verifies a NextSequenceRecvData message. * @function verify - * @memberof ibc.lightclients.tendermint.v1.Misbehaviour + * @memberof ibc.lightclients.solomachine.v2.NextSequenceRecvData * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Misbehaviour.verify = function verify(message) { + NextSequenceRecvData.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.client_id != null && message.hasOwnProperty("client_id")) - if (!$util.isString(message.client_id)) - return "client_id: string expected"; - if (message.header_1 != null && message.hasOwnProperty("header_1")) { - var error = $root.ibc.lightclients.tendermint.v1.Header.verify(message.header_1); - if (error) - return "header_1." + error; - } - if (message.header_2 != null && message.hasOwnProperty("header_2")) { - var error = $root.ibc.lightclients.tendermint.v1.Header.verify(message.header_2); - if (error) - return "header_2." + error; - } + if (message.path != null && message.hasOwnProperty("path")) + if (!(message.path && typeof message.path.length === "number" || $util.isString(message.path))) + return "path: buffer expected"; + if (message.next_seq_recv != null && message.hasOwnProperty("next_seq_recv")) + if (!$util.isInteger(message.next_seq_recv) && !(message.next_seq_recv && $util.isInteger(message.next_seq_recv.low) && $util.isInteger(message.next_seq_recv.high))) + return "next_seq_recv: integer|Long expected"; return null; }; /** - * Creates a Misbehaviour message from a plain object. Also converts values to their respective internal types. + * Creates a NextSequenceRecvData message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.lightclients.tendermint.v1.Misbehaviour + * @memberof ibc.lightclients.solomachine.v2.NextSequenceRecvData * @static * @param {Object.} object Plain object - * @returns {ibc.lightclients.tendermint.v1.Misbehaviour} Misbehaviour + * @returns {ibc.lightclients.solomachine.v2.NextSequenceRecvData} NextSequenceRecvData */ - Misbehaviour.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.lightclients.tendermint.v1.Misbehaviour) + NextSequenceRecvData.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.lightclients.solomachine.v2.NextSequenceRecvData) return object; - var message = new $root.ibc.lightclients.tendermint.v1.Misbehaviour(); - if (object.client_id != null) - message.client_id = String(object.client_id); - if (object.header_1 != null) { - if (typeof object.header_1 !== "object") - throw TypeError(".ibc.lightclients.tendermint.v1.Misbehaviour.header_1: object expected"); - message.header_1 = $root.ibc.lightclients.tendermint.v1.Header.fromObject(object.header_1); - } - if (object.header_2 != null) { - if (typeof object.header_2 !== "object") - throw TypeError(".ibc.lightclients.tendermint.v1.Misbehaviour.header_2: object expected"); - message.header_2 = $root.ibc.lightclients.tendermint.v1.Header.fromObject(object.header_2); - } + var message = new $root.ibc.lightclients.solomachine.v2.NextSequenceRecvData(); + if (object.path != null) + if (typeof object.path === "string") + $util.base64.decode(object.path, message.path = $util.newBuffer($util.base64.length(object.path)), 0); + else if (object.path.length) + message.path = object.path; + if (object.next_seq_recv != null) + if ($util.Long) + (message.next_seq_recv = $util.Long.fromValue(object.next_seq_recv)).unsigned = true; + else if (typeof object.next_seq_recv === "string") + message.next_seq_recv = parseInt(object.next_seq_recv, 10); + else if (typeof object.next_seq_recv === "number") + message.next_seq_recv = object.next_seq_recv; + else if (typeof object.next_seq_recv === "object") + message.next_seq_recv = new $util.LongBits(object.next_seq_recv.low >>> 0, object.next_seq_recv.high >>> 0).toNumber(true); return message; }; /** - * Creates a plain object from a Misbehaviour message. Also converts values to other types if specified. + * Creates a plain object from a NextSequenceRecvData message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.lightclients.tendermint.v1.Misbehaviour + * @memberof ibc.lightclients.solomachine.v2.NextSequenceRecvData * @static - * @param {ibc.lightclients.tendermint.v1.Misbehaviour} message Misbehaviour + * @param {ibc.lightclients.solomachine.v2.NextSequenceRecvData} message NextSequenceRecvData * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Misbehaviour.toObject = function toObject(message, options) { + NextSequenceRecvData.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.client_id = ""; - object.header_1 = null; - object.header_2 = null; + if (options.bytes === String) + object.path = ""; + else { + object.path = []; + if (options.bytes !== Array) + object.path = $util.newBuffer(object.path); + } + if ($util.Long) { + var long = new $util.Long(0, 0, true); + object.next_seq_recv = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.next_seq_recv = options.longs === String ? "0" : 0; } - if (message.client_id != null && message.hasOwnProperty("client_id")) - object.client_id = message.client_id; - if (message.header_1 != null && message.hasOwnProperty("header_1")) - object.header_1 = $root.ibc.lightclients.tendermint.v1.Header.toObject(message.header_1, options); - if (message.header_2 != null && message.hasOwnProperty("header_2")) - object.header_2 = $root.ibc.lightclients.tendermint.v1.Header.toObject(message.header_2, options); + if (message.path != null && message.hasOwnProperty("path")) + object.path = options.bytes === String ? $util.base64.encode(message.path, 0, message.path.length) : options.bytes === Array ? Array.prototype.slice.call(message.path) : message.path; + if (message.next_seq_recv != null && message.hasOwnProperty("next_seq_recv")) + if (typeof message.next_seq_recv === "number") + object.next_seq_recv = options.longs === String ? String(message.next_seq_recv) : message.next_seq_recv; + else + object.next_seq_recv = options.longs === String ? $util.Long.prototype.toString.call(message.next_seq_recv) : options.longs === Number ? new $util.LongBits(message.next_seq_recv.low >>> 0, message.next_seq_recv.high >>> 0).toNumber(true) : message.next_seq_recv; return object; }; /** - * Converts this Misbehaviour to JSON. + * Converts this NextSequenceRecvData to JSON. * @function toJSON - * @memberof ibc.lightclients.tendermint.v1.Misbehaviour + * @memberof ibc.lightclients.solomachine.v2.NextSequenceRecvData * @instance * @returns {Object.} JSON object */ - Misbehaviour.prototype.toJSON = function toJSON() { + NextSequenceRecvData.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Misbehaviour; + return NextSequenceRecvData; })(); - v1.Header = (function() { + return v2; + })(); + + solomachine.v3 = (function() { + + /** + * Namespace v3. + * @memberof ibc.lightclients.solomachine + * @namespace + */ + var v3 = {}; + + v3.ClientState = (function() { /** - * Properties of a Header. - * @memberof ibc.lightclients.tendermint.v1 - * @interface IHeader - * @property {tendermint.types.ISignedHeader|null} [signed_header] Header signed_header - * @property {tendermint.types.IValidatorSet|null} [validator_set] Header validator_set - * @property {ibc.core.client.v1.IHeight|null} [trusted_height] Header trusted_height - * @property {tendermint.types.IValidatorSet|null} [trusted_validators] Header trusted_validators + * Properties of a ClientState. + * @memberof ibc.lightclients.solomachine.v3 + * @interface IClientState + * @property {Long|null} [sequence] ClientState sequence + * @property {boolean|null} [is_frozen] ClientState is_frozen + * @property {ibc.lightclients.solomachine.v3.IConsensusState|null} [consensus_state] ClientState consensus_state */ /** - * Constructs a new Header. - * @memberof ibc.lightclients.tendermint.v1 - * @classdesc Represents a Header. - * @implements IHeader + * Constructs a new ClientState. + * @memberof ibc.lightclients.solomachine.v3 + * @classdesc Represents a ClientState. + * @implements IClientState * @constructor - * @param {ibc.lightclients.tendermint.v1.IHeader=} [properties] Properties to set + * @param {ibc.lightclients.solomachine.v3.IClientState=} [properties] Properties to set */ - function Header(properties) { + function ClientState(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -73181,102 +79200,89 @@ } /** - * Header signed_header. - * @member {tendermint.types.ISignedHeader|null|undefined} signed_header - * @memberof ibc.lightclients.tendermint.v1.Header - * @instance - */ - Header.prototype.signed_header = null; - - /** - * Header validator_set. - * @member {tendermint.types.IValidatorSet|null|undefined} validator_set - * @memberof ibc.lightclients.tendermint.v1.Header + * ClientState sequence. + * @member {Long} sequence + * @memberof ibc.lightclients.solomachine.v3.ClientState * @instance */ - Header.prototype.validator_set = null; + ClientState.prototype.sequence = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** - * Header trusted_height. - * @member {ibc.core.client.v1.IHeight|null|undefined} trusted_height - * @memberof ibc.lightclients.tendermint.v1.Header + * ClientState is_frozen. + * @member {boolean} is_frozen + * @memberof ibc.lightclients.solomachine.v3.ClientState * @instance */ - Header.prototype.trusted_height = null; + ClientState.prototype.is_frozen = false; /** - * Header trusted_validators. - * @member {tendermint.types.IValidatorSet|null|undefined} trusted_validators - * @memberof ibc.lightclients.tendermint.v1.Header + * ClientState consensus_state. + * @member {ibc.lightclients.solomachine.v3.IConsensusState|null|undefined} consensus_state + * @memberof ibc.lightclients.solomachine.v3.ClientState * @instance */ - Header.prototype.trusted_validators = null; + ClientState.prototype.consensus_state = null; /** - * Encodes the specified Header message. Does not implicitly {@link ibc.lightclients.tendermint.v1.Header.verify|verify} messages. + * Encodes the specified ClientState message. Does not implicitly {@link ibc.lightclients.solomachine.v3.ClientState.verify|verify} messages. * @function encode - * @memberof ibc.lightclients.tendermint.v1.Header + * @memberof ibc.lightclients.solomachine.v3.ClientState * @static - * @param {ibc.lightclients.tendermint.v1.IHeader} message Header message or plain object to encode + * @param {ibc.lightclients.solomachine.v3.IClientState} message ClientState message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Header.encode = function encode(message, writer) { + ClientState.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.signed_header != null && Object.hasOwnProperty.call(message, "signed_header")) - $root.tendermint.types.SignedHeader.encode(message.signed_header, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.validator_set != null && Object.hasOwnProperty.call(message, "validator_set")) - $root.tendermint.types.ValidatorSet.encode(message.validator_set, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.trusted_height != null && Object.hasOwnProperty.call(message, "trusted_height")) - $root.ibc.core.client.v1.Height.encode(message.trusted_height, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.trusted_validators != null && Object.hasOwnProperty.call(message, "trusted_validators")) - $root.tendermint.types.ValidatorSet.encode(message.trusted_validators, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.sequence != null && Object.hasOwnProperty.call(message, "sequence")) + writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.sequence); + if (message.is_frozen != null && Object.hasOwnProperty.call(message, "is_frozen")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.is_frozen); + if (message.consensus_state != null && Object.hasOwnProperty.call(message, "consensus_state")) + $root.ibc.lightclients.solomachine.v3.ConsensusState.encode(message.consensus_state, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified Header message, length delimited. Does not implicitly {@link ibc.lightclients.tendermint.v1.Header.verify|verify} messages. + * Encodes the specified ClientState message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v3.ClientState.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.lightclients.tendermint.v1.Header + * @memberof ibc.lightclients.solomachine.v3.ClientState * @static - * @param {ibc.lightclients.tendermint.v1.IHeader} message Header message or plain object to encode + * @param {ibc.lightclients.solomachine.v3.IClientState} message ClientState message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Header.encodeDelimited = function encodeDelimited(message, writer) { + ClientState.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Header message from the specified reader or buffer. + * Decodes a ClientState message from the specified reader or buffer. * @function decode - * @memberof ibc.lightclients.tendermint.v1.Header + * @memberof ibc.lightclients.solomachine.v3.ClientState * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.lightclients.tendermint.v1.Header} Header + * @returns {ibc.lightclients.solomachine.v3.ClientState} ClientState * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Header.decode = function decode(reader, length) { + ClientState.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.tendermint.v1.Header(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.solomachine.v3.ClientState(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.signed_header = $root.tendermint.types.SignedHeader.decode(reader, reader.uint32()); + message.sequence = reader.uint64(); break; case 2: - message.validator_set = $root.tendermint.types.ValidatorSet.decode(reader, reader.uint32()); + message.is_frozen = reader.bool(); break; case 3: - message.trusted_height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); - break; - case 4: - message.trusted_validators = $root.tendermint.types.ValidatorSet.decode(reader, reader.uint32()); + message.consensus_state = $root.ibc.lightclients.solomachine.v3.ConsensusState.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -73287,153 +79293,145 @@ }; /** - * Decodes a Header message from the specified reader or buffer, length delimited. + * Decodes a ClientState message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.lightclients.tendermint.v1.Header + * @memberof ibc.lightclients.solomachine.v3.ClientState * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.lightclients.tendermint.v1.Header} Header + * @returns {ibc.lightclients.solomachine.v3.ClientState} ClientState * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Header.decodeDelimited = function decodeDelimited(reader) { + ClientState.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Header message. + * Verifies a ClientState message. * @function verify - * @memberof ibc.lightclients.tendermint.v1.Header + * @memberof ibc.lightclients.solomachine.v3.ClientState * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Header.verify = function verify(message) { + ClientState.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.signed_header != null && message.hasOwnProperty("signed_header")) { - var error = $root.tendermint.types.SignedHeader.verify(message.signed_header); - if (error) - return "signed_header." + error; - } - if (message.validator_set != null && message.hasOwnProperty("validator_set")) { - var error = $root.tendermint.types.ValidatorSet.verify(message.validator_set); - if (error) - return "validator_set." + error; - } - if (message.trusted_height != null && message.hasOwnProperty("trusted_height")) { - var error = $root.ibc.core.client.v1.Height.verify(message.trusted_height); - if (error) - return "trusted_height." + error; - } - if (message.trusted_validators != null && message.hasOwnProperty("trusted_validators")) { - var error = $root.tendermint.types.ValidatorSet.verify(message.trusted_validators); + if (message.sequence != null && message.hasOwnProperty("sequence")) + if (!$util.isInteger(message.sequence) && !(message.sequence && $util.isInteger(message.sequence.low) && $util.isInteger(message.sequence.high))) + return "sequence: integer|Long expected"; + if (message.is_frozen != null && message.hasOwnProperty("is_frozen")) + if (typeof message.is_frozen !== "boolean") + return "is_frozen: boolean expected"; + if (message.consensus_state != null && message.hasOwnProperty("consensus_state")) { + var error = $root.ibc.lightclients.solomachine.v3.ConsensusState.verify(message.consensus_state); if (error) - return "trusted_validators." + error; + return "consensus_state." + error; } return null; }; /** - * Creates a Header message from a plain object. Also converts values to their respective internal types. + * Creates a ClientState message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.lightclients.tendermint.v1.Header + * @memberof ibc.lightclients.solomachine.v3.ClientState * @static * @param {Object.} object Plain object - * @returns {ibc.lightclients.tendermint.v1.Header} Header + * @returns {ibc.lightclients.solomachine.v3.ClientState} ClientState */ - Header.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.lightclients.tendermint.v1.Header) + ClientState.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.lightclients.solomachine.v3.ClientState) return object; - var message = new $root.ibc.lightclients.tendermint.v1.Header(); - if (object.signed_header != null) { - if (typeof object.signed_header !== "object") - throw TypeError(".ibc.lightclients.tendermint.v1.Header.signed_header: object expected"); - message.signed_header = $root.tendermint.types.SignedHeader.fromObject(object.signed_header); - } - if (object.validator_set != null) { - if (typeof object.validator_set !== "object") - throw TypeError(".ibc.lightclients.tendermint.v1.Header.validator_set: object expected"); - message.validator_set = $root.tendermint.types.ValidatorSet.fromObject(object.validator_set); - } - if (object.trusted_height != null) { - if (typeof object.trusted_height !== "object") - throw TypeError(".ibc.lightclients.tendermint.v1.Header.trusted_height: object expected"); - message.trusted_height = $root.ibc.core.client.v1.Height.fromObject(object.trusted_height); - } - if (object.trusted_validators != null) { - if (typeof object.trusted_validators !== "object") - throw TypeError(".ibc.lightclients.tendermint.v1.Header.trusted_validators: object expected"); - message.trusted_validators = $root.tendermint.types.ValidatorSet.fromObject(object.trusted_validators); + var message = new $root.ibc.lightclients.solomachine.v3.ClientState(); + if (object.sequence != null) + if ($util.Long) + (message.sequence = $util.Long.fromValue(object.sequence)).unsigned = true; + else if (typeof object.sequence === "string") + message.sequence = parseInt(object.sequence, 10); + else if (typeof object.sequence === "number") + message.sequence = object.sequence; + else if (typeof object.sequence === "object") + message.sequence = new $util.LongBits(object.sequence.low >>> 0, object.sequence.high >>> 0).toNumber(true); + if (object.is_frozen != null) + message.is_frozen = Boolean(object.is_frozen); + if (object.consensus_state != null) { + if (typeof object.consensus_state !== "object") + throw TypeError(".ibc.lightclients.solomachine.v3.ClientState.consensus_state: object expected"); + message.consensus_state = $root.ibc.lightclients.solomachine.v3.ConsensusState.fromObject(object.consensus_state); } return message; }; /** - * Creates a plain object from a Header message. Also converts values to other types if specified. + * Creates a plain object from a ClientState message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.lightclients.tendermint.v1.Header + * @memberof ibc.lightclients.solomachine.v3.ClientState * @static - * @param {ibc.lightclients.tendermint.v1.Header} message Header + * @param {ibc.lightclients.solomachine.v3.ClientState} message ClientState * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Header.toObject = function toObject(message, options) { + ClientState.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.signed_header = null; - object.validator_set = null; - object.trusted_height = null; - object.trusted_validators = null; + if ($util.Long) { + var long = new $util.Long(0, 0, true); + object.sequence = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.sequence = options.longs === String ? "0" : 0; + object.is_frozen = false; + object.consensus_state = null; } - if (message.signed_header != null && message.hasOwnProperty("signed_header")) - object.signed_header = $root.tendermint.types.SignedHeader.toObject(message.signed_header, options); - if (message.validator_set != null && message.hasOwnProperty("validator_set")) - object.validator_set = $root.tendermint.types.ValidatorSet.toObject(message.validator_set, options); - if (message.trusted_height != null && message.hasOwnProperty("trusted_height")) - object.trusted_height = $root.ibc.core.client.v1.Height.toObject(message.trusted_height, options); - if (message.trusted_validators != null && message.hasOwnProperty("trusted_validators")) - object.trusted_validators = $root.tendermint.types.ValidatorSet.toObject(message.trusted_validators, options); + if (message.sequence != null && message.hasOwnProperty("sequence")) + if (typeof message.sequence === "number") + object.sequence = options.longs === String ? String(message.sequence) : message.sequence; + else + object.sequence = options.longs === String ? $util.Long.prototype.toString.call(message.sequence) : options.longs === Number ? new $util.LongBits(message.sequence.low >>> 0, message.sequence.high >>> 0).toNumber(true) : message.sequence; + if (message.is_frozen != null && message.hasOwnProperty("is_frozen")) + object.is_frozen = message.is_frozen; + if (message.consensus_state != null && message.hasOwnProperty("consensus_state")) + object.consensus_state = $root.ibc.lightclients.solomachine.v3.ConsensusState.toObject(message.consensus_state, options); return object; }; /** - * Converts this Header to JSON. + * Converts this ClientState to JSON. * @function toJSON - * @memberof ibc.lightclients.tendermint.v1.Header + * @memberof ibc.lightclients.solomachine.v3.ClientState * @instance * @returns {Object.} JSON object */ - Header.prototype.toJSON = function toJSON() { + ClientState.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Header; + return ClientState; })(); - v1.Fraction = (function() { + v3.ConsensusState = (function() { /** - * Properties of a Fraction. - * @memberof ibc.lightclients.tendermint.v1 - * @interface IFraction - * @property {Long|null} [numerator] Fraction numerator - * @property {Long|null} [denominator] Fraction denominator + * Properties of a ConsensusState. + * @memberof ibc.lightclients.solomachine.v3 + * @interface IConsensusState + * @property {google.protobuf.IAny|null} [public_key] ConsensusState public_key + * @property {string|null} [diversifier] ConsensusState diversifier + * @property {Long|null} [timestamp] ConsensusState timestamp */ /** - * Constructs a new Fraction. - * @memberof ibc.lightclients.tendermint.v1 - * @classdesc Represents a Fraction. - * @implements IFraction + * Constructs a new ConsensusState. + * @memberof ibc.lightclients.solomachine.v3 + * @classdesc Represents a ConsensusState. + * @implements IConsensusState * @constructor - * @param {ibc.lightclients.tendermint.v1.IFraction=} [properties] Properties to set + * @param {ibc.lightclients.solomachine.v3.IConsensusState=} [properties] Properties to set */ - function Fraction(properties) { + function ConsensusState(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -73441,76 +79439,89 @@ } /** - * Fraction numerator. - * @member {Long} numerator - * @memberof ibc.lightclients.tendermint.v1.Fraction + * ConsensusState public_key. + * @member {google.protobuf.IAny|null|undefined} public_key + * @memberof ibc.lightclients.solomachine.v3.ConsensusState * @instance */ - Fraction.prototype.numerator = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + ConsensusState.prototype.public_key = null; /** - * Fraction denominator. - * @member {Long} denominator - * @memberof ibc.lightclients.tendermint.v1.Fraction + * ConsensusState diversifier. + * @member {string} diversifier + * @memberof ibc.lightclients.solomachine.v3.ConsensusState * @instance */ - Fraction.prototype.denominator = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + ConsensusState.prototype.diversifier = ""; /** - * Encodes the specified Fraction message. Does not implicitly {@link ibc.lightclients.tendermint.v1.Fraction.verify|verify} messages. + * ConsensusState timestamp. + * @member {Long} timestamp + * @memberof ibc.lightclients.solomachine.v3.ConsensusState + * @instance + */ + ConsensusState.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + + /** + * Encodes the specified ConsensusState message. Does not implicitly {@link ibc.lightclients.solomachine.v3.ConsensusState.verify|verify} messages. * @function encode - * @memberof ibc.lightclients.tendermint.v1.Fraction + * @memberof ibc.lightclients.solomachine.v3.ConsensusState * @static - * @param {ibc.lightclients.tendermint.v1.IFraction} message Fraction message or plain object to encode + * @param {ibc.lightclients.solomachine.v3.IConsensusState} message ConsensusState message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Fraction.encode = function encode(message, writer) { + ConsensusState.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.numerator != null && Object.hasOwnProperty.call(message, "numerator")) - writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.numerator); - if (message.denominator != null && Object.hasOwnProperty.call(message, "denominator")) - writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.denominator); + if (message.public_key != null && Object.hasOwnProperty.call(message, "public_key")) + $root.google.protobuf.Any.encode(message.public_key, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.diversifier != null && Object.hasOwnProperty.call(message, "diversifier")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.diversifier); + if (message.timestamp != null && Object.hasOwnProperty.call(message, "timestamp")) + writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.timestamp); return writer; }; /** - * Encodes the specified Fraction message, length delimited. Does not implicitly {@link ibc.lightclients.tendermint.v1.Fraction.verify|verify} messages. + * Encodes the specified ConsensusState message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v3.ConsensusState.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.lightclients.tendermint.v1.Fraction + * @memberof ibc.lightclients.solomachine.v3.ConsensusState * @static - * @param {ibc.lightclients.tendermint.v1.IFraction} message Fraction message or plain object to encode + * @param {ibc.lightclients.solomachine.v3.IConsensusState} message ConsensusState message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Fraction.encodeDelimited = function encodeDelimited(message, writer) { + ConsensusState.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Fraction message from the specified reader or buffer. + * Decodes a ConsensusState message from the specified reader or buffer. * @function decode - * @memberof ibc.lightclients.tendermint.v1.Fraction + * @memberof ibc.lightclients.solomachine.v3.ConsensusState * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.lightclients.tendermint.v1.Fraction} Fraction + * @returns {ibc.lightclients.solomachine.v3.ConsensusState} ConsensusState * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Fraction.decode = function decode(reader, length) { + ConsensusState.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.tendermint.v1.Fraction(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.solomachine.v3.ConsensusState(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.numerator = reader.uint64(); + message.public_key = $root.google.protobuf.Any.decode(reader, reader.uint32()); break; case 2: - message.denominator = reader.uint64(); + message.diversifier = reader.string(); + break; + case 3: + message.timestamp = reader.uint64(); break; default: reader.skipType(tag & 7); @@ -73521,3809 +79532,3112 @@ }; /** - * Decodes a Fraction message from the specified reader or buffer, length delimited. + * Decodes a ConsensusState message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.lightclients.tendermint.v1.Fraction + * @memberof ibc.lightclients.solomachine.v3.ConsensusState * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.lightclients.tendermint.v1.Fraction} Fraction + * @returns {ibc.lightclients.solomachine.v3.ConsensusState} ConsensusState * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Fraction.decodeDelimited = function decodeDelimited(reader) { + ConsensusState.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Fraction message. + * Verifies a ConsensusState message. * @function verify - * @memberof ibc.lightclients.tendermint.v1.Fraction + * @memberof ibc.lightclients.solomachine.v3.ConsensusState * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Fraction.verify = function verify(message) { + ConsensusState.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.numerator != null && message.hasOwnProperty("numerator")) - if (!$util.isInteger(message.numerator) && !(message.numerator && $util.isInteger(message.numerator.low) && $util.isInteger(message.numerator.high))) - return "numerator: integer|Long expected"; - if (message.denominator != null && message.hasOwnProperty("denominator")) - if (!$util.isInteger(message.denominator) && !(message.denominator && $util.isInteger(message.denominator.low) && $util.isInteger(message.denominator.high))) - return "denominator: integer|Long expected"; + if (message.public_key != null && message.hasOwnProperty("public_key")) { + var error = $root.google.protobuf.Any.verify(message.public_key); + if (error) + return "public_key." + error; + } + if (message.diversifier != null && message.hasOwnProperty("diversifier")) + if (!$util.isString(message.diversifier)) + return "diversifier: string expected"; + if (message.timestamp != null && message.hasOwnProperty("timestamp")) + if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high))) + return "timestamp: integer|Long expected"; return null; }; /** - * Creates a Fraction message from a plain object. Also converts values to their respective internal types. + * Creates a ConsensusState message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.lightclients.tendermint.v1.Fraction + * @memberof ibc.lightclients.solomachine.v3.ConsensusState * @static * @param {Object.} object Plain object - * @returns {ibc.lightclients.tendermint.v1.Fraction} Fraction + * @returns {ibc.lightclients.solomachine.v3.ConsensusState} ConsensusState */ - Fraction.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.lightclients.tendermint.v1.Fraction) + ConsensusState.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.lightclients.solomachine.v3.ConsensusState) return object; - var message = new $root.ibc.lightclients.tendermint.v1.Fraction(); - if (object.numerator != null) - if ($util.Long) - (message.numerator = $util.Long.fromValue(object.numerator)).unsigned = true; - else if (typeof object.numerator === "string") - message.numerator = parseInt(object.numerator, 10); - else if (typeof object.numerator === "number") - message.numerator = object.numerator; - else if (typeof object.numerator === "object") - message.numerator = new $util.LongBits(object.numerator.low >>> 0, object.numerator.high >>> 0).toNumber(true); - if (object.denominator != null) + var message = new $root.ibc.lightclients.solomachine.v3.ConsensusState(); + if (object.public_key != null) { + if (typeof object.public_key !== "object") + throw TypeError(".ibc.lightclients.solomachine.v3.ConsensusState.public_key: object expected"); + message.public_key = $root.google.protobuf.Any.fromObject(object.public_key); + } + if (object.diversifier != null) + message.diversifier = String(object.diversifier); + if (object.timestamp != null) if ($util.Long) - (message.denominator = $util.Long.fromValue(object.denominator)).unsigned = true; - else if (typeof object.denominator === "string") - message.denominator = parseInt(object.denominator, 10); - else if (typeof object.denominator === "number") - message.denominator = object.denominator; - else if (typeof object.denominator === "object") - message.denominator = new $util.LongBits(object.denominator.low >>> 0, object.denominator.high >>> 0).toNumber(true); + (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true; + else if (typeof object.timestamp === "string") + message.timestamp = parseInt(object.timestamp, 10); + else if (typeof object.timestamp === "number") + message.timestamp = object.timestamp; + else if (typeof object.timestamp === "object") + message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true); return message; }; /** - * Creates a plain object from a Fraction message. Also converts values to other types if specified. + * Creates a plain object from a ConsensusState message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.lightclients.tendermint.v1.Fraction + * @memberof ibc.lightclients.solomachine.v3.ConsensusState * @static - * @param {ibc.lightclients.tendermint.v1.Fraction} message Fraction + * @param {ibc.lightclients.solomachine.v3.ConsensusState} message ConsensusState * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Fraction.toObject = function toObject(message, options) { + ConsensusState.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { + object.public_key = null; + object.diversifier = ""; if ($util.Long) { var long = new $util.Long(0, 0, true); - object.numerator = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.numerator = options.longs === String ? "0" : 0; - if ($util.Long) { - var long = new $util.Long(0, 0, true); - object.denominator = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.denominator = options.longs === String ? "0" : 0; + object.timestamp = options.longs === String ? "0" : 0; } - if (message.numerator != null && message.hasOwnProperty("numerator")) - if (typeof message.numerator === "number") - object.numerator = options.longs === String ? String(message.numerator) : message.numerator; - else - object.numerator = options.longs === String ? $util.Long.prototype.toString.call(message.numerator) : options.longs === Number ? new $util.LongBits(message.numerator.low >>> 0, message.numerator.high >>> 0).toNumber(true) : message.numerator; - if (message.denominator != null && message.hasOwnProperty("denominator")) - if (typeof message.denominator === "number") - object.denominator = options.longs === String ? String(message.denominator) : message.denominator; + if (message.public_key != null && message.hasOwnProperty("public_key")) + object.public_key = $root.google.protobuf.Any.toObject(message.public_key, options); + if (message.diversifier != null && message.hasOwnProperty("diversifier")) + object.diversifier = message.diversifier; + if (message.timestamp != null && message.hasOwnProperty("timestamp")) + if (typeof message.timestamp === "number") + object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp; else - object.denominator = options.longs === String ? $util.Long.prototype.toString.call(message.denominator) : options.longs === Number ? new $util.LongBits(message.denominator.low >>> 0, message.denominator.high >>> 0).toNumber(true) : message.denominator; + object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber(true) : message.timestamp; return object; }; /** - * Converts this Fraction to JSON. + * Converts this ConsensusState to JSON. * @function toJSON - * @memberof ibc.lightclients.tendermint.v1.Fraction + * @memberof ibc.lightclients.solomachine.v3.ConsensusState * @instance * @returns {Object.} JSON object */ - Fraction.prototype.toJSON = function toJSON() { + ConsensusState.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Fraction; + return ConsensusState; })(); - return v1; - })(); - - return tendermint; - })(); - - return lightclients; - })(); - - return ibc; - })(); - - $root.ics23 = (function() { - - /** - * Namespace ics23. - * @exports ics23 - * @namespace - */ - var ics23 = {}; - - /** - * HashOp enum. - * @name ics23.HashOp - * @enum {number} - * @property {number} NO_HASH=0 NO_HASH value - * @property {number} SHA256=1 SHA256 value - * @property {number} SHA512=2 SHA512 value - * @property {number} KECCAK=3 KECCAK value - * @property {number} RIPEMD160=4 RIPEMD160 value - * @property {number} BITCOIN=5 BITCOIN value - */ - ics23.HashOp = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "NO_HASH"] = 0; - values[valuesById[1] = "SHA256"] = 1; - values[valuesById[2] = "SHA512"] = 2; - values[valuesById[3] = "KECCAK"] = 3; - values[valuesById[4] = "RIPEMD160"] = 4; - values[valuesById[5] = "BITCOIN"] = 5; - return values; - })(); - - /** - * LengthOp defines how to process the key and value of the LeafOp - * to include length information. After encoding the length with the given - * algorithm, the length will be prepended to the key and value bytes. - * (Each one with it's own encoded length) - * @name ics23.LengthOp - * @enum {number} - * @property {number} NO_PREFIX=0 NO_PREFIX value - * @property {number} VAR_PROTO=1 VAR_PROTO value - * @property {number} VAR_RLP=2 VAR_RLP value - * @property {number} FIXED32_BIG=3 FIXED32_BIG value - * @property {number} FIXED32_LITTLE=4 FIXED32_LITTLE value - * @property {number} FIXED64_BIG=5 FIXED64_BIG value - * @property {number} FIXED64_LITTLE=6 FIXED64_LITTLE value - * @property {number} REQUIRE_32_BYTES=7 REQUIRE_32_BYTES value - * @property {number} REQUIRE_64_BYTES=8 REQUIRE_64_BYTES value - */ - ics23.LengthOp = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "NO_PREFIX"] = 0; - values[valuesById[1] = "VAR_PROTO"] = 1; - values[valuesById[2] = "VAR_RLP"] = 2; - values[valuesById[3] = "FIXED32_BIG"] = 3; - values[valuesById[4] = "FIXED32_LITTLE"] = 4; - values[valuesById[5] = "FIXED64_BIG"] = 5; - values[valuesById[6] = "FIXED64_LITTLE"] = 6; - values[valuesById[7] = "REQUIRE_32_BYTES"] = 7; - values[valuesById[8] = "REQUIRE_64_BYTES"] = 8; - return values; - })(); - - ics23.ExistenceProof = (function() { - - /** - * Properties of an ExistenceProof. - * @memberof ics23 - * @interface IExistenceProof - * @property {Uint8Array|null} [key] ExistenceProof key - * @property {Uint8Array|null} [value] ExistenceProof value - * @property {ics23.ILeafOp|null} [leaf] ExistenceProof leaf - * @property {Array.|null} [path] ExistenceProof path - */ - - /** - * Constructs a new ExistenceProof. - * @memberof ics23 - * @classdesc ExistenceProof takes a key and a value and a set of steps to perform on it. - * The result of peforming all these steps will provide a "root hash", which can - * be compared to the value in a header. - * - * Since it is computationally infeasible to produce a hash collission for any of the used - * cryptographic hash functions, if someone can provide a series of operations to transform - * a given key and value into a root hash that matches some trusted root, these key and values - * must be in the referenced merkle tree. - * - * The only possible issue is maliablity in LeafOp, such as providing extra prefix data, - * which should be controlled by a spec. Eg. with lengthOp as NONE, - * prefix = FOO, key = BAR, value = CHOICE - * and - * prefix = F, key = OOBAR, value = CHOICE - * would produce the same value. - * - * With LengthOp this is tricker but not impossible. Which is why the "leafPrefixEqual" field - * in the ProofSpec is valuable to prevent this mutability. And why all trees should - * length-prefix the data before hashing it. - * @implements IExistenceProof - * @constructor - * @param {ics23.IExistenceProof=} [properties] Properties to set - */ - function ExistenceProof(properties) { - this.path = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ExistenceProof key. - * @member {Uint8Array} key - * @memberof ics23.ExistenceProof - * @instance - */ - ExistenceProof.prototype.key = $util.newBuffer([]); - - /** - * ExistenceProof value. - * @member {Uint8Array} value - * @memberof ics23.ExistenceProof - * @instance - */ - ExistenceProof.prototype.value = $util.newBuffer([]); - - /** - * ExistenceProof leaf. - * @member {ics23.ILeafOp|null|undefined} leaf - * @memberof ics23.ExistenceProof - * @instance - */ - ExistenceProof.prototype.leaf = null; - - /** - * ExistenceProof path. - * @member {Array.} path - * @memberof ics23.ExistenceProof - * @instance - */ - ExistenceProof.prototype.path = $util.emptyArray; - - /** - * Encodes the specified ExistenceProof message. Does not implicitly {@link ics23.ExistenceProof.verify|verify} messages. - * @function encode - * @memberof ics23.ExistenceProof - * @static - * @param {ics23.IExistenceProof} message ExistenceProof message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ExistenceProof.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.key != null && Object.hasOwnProperty.call(message, "key")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.key); - if (message.value != null && Object.hasOwnProperty.call(message, "value")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.value); - if (message.leaf != null && Object.hasOwnProperty.call(message, "leaf")) - $root.ics23.LeafOp.encode(message.leaf, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.path != null && message.path.length) - for (var i = 0; i < message.path.length; ++i) - $root.ics23.InnerOp.encode(message.path[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified ExistenceProof message, length delimited. Does not implicitly {@link ics23.ExistenceProof.verify|verify} messages. - * @function encodeDelimited - * @memberof ics23.ExistenceProof - * @static - * @param {ics23.IExistenceProof} message ExistenceProof message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ExistenceProof.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an ExistenceProof message from the specified reader or buffer. - * @function decode - * @memberof ics23.ExistenceProof - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {ics23.ExistenceProof} ExistenceProof - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ExistenceProof.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ics23.ExistenceProof(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.key = reader.bytes(); - break; - case 2: - message.value = reader.bytes(); - break; - case 3: - message.leaf = $root.ics23.LeafOp.decode(reader, reader.uint32()); - break; - case 4: - if (!(message.path && message.path.length)) - message.path = []; - message.path.push($root.ics23.InnerOp.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an ExistenceProof message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ics23.ExistenceProof - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ics23.ExistenceProof} ExistenceProof - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ExistenceProof.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an ExistenceProof message. - * @function verify - * @memberof ics23.ExistenceProof - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ExistenceProof.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.key != null && message.hasOwnProperty("key")) - if (!(message.key && typeof message.key.length === "number" || $util.isString(message.key))) - return "key: buffer expected"; - if (message.value != null && message.hasOwnProperty("value")) - if (!(message.value && typeof message.value.length === "number" || $util.isString(message.value))) - return "value: buffer expected"; - if (message.leaf != null && message.hasOwnProperty("leaf")) { - var error = $root.ics23.LeafOp.verify(message.leaf); - if (error) - return "leaf." + error; - } - if (message.path != null && message.hasOwnProperty("path")) { - if (!Array.isArray(message.path)) - return "path: array expected"; - for (var i = 0; i < message.path.length; ++i) { - var error = $root.ics23.InnerOp.verify(message.path[i]); - if (error) - return "path." + error; - } - } - return null; - }; - - /** - * Creates an ExistenceProof message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof ics23.ExistenceProof - * @static - * @param {Object.} object Plain object - * @returns {ics23.ExistenceProof} ExistenceProof - */ - ExistenceProof.fromObject = function fromObject(object) { - if (object instanceof $root.ics23.ExistenceProof) - return object; - var message = new $root.ics23.ExistenceProof(); - if (object.key != null) - if (typeof object.key === "string") - $util.base64.decode(object.key, message.key = $util.newBuffer($util.base64.length(object.key)), 0); - else if (object.key.length) - message.key = object.key; - if (object.value != null) - if (typeof object.value === "string") - $util.base64.decode(object.value, message.value = $util.newBuffer($util.base64.length(object.value)), 0); - else if (object.value.length) - message.value = object.value; - if (object.leaf != null) { - if (typeof object.leaf !== "object") - throw TypeError(".ics23.ExistenceProof.leaf: object expected"); - message.leaf = $root.ics23.LeafOp.fromObject(object.leaf); - } - if (object.path) { - if (!Array.isArray(object.path)) - throw TypeError(".ics23.ExistenceProof.path: array expected"); - message.path = []; - for (var i = 0; i < object.path.length; ++i) { - if (typeof object.path[i] !== "object") - throw TypeError(".ics23.ExistenceProof.path: object expected"); - message.path[i] = $root.ics23.InnerOp.fromObject(object.path[i]); - } - } - return message; - }; - - /** - * Creates a plain object from an ExistenceProof message. Also converts values to other types if specified. - * @function toObject - * @memberof ics23.ExistenceProof - * @static - * @param {ics23.ExistenceProof} message ExistenceProof - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ExistenceProof.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.path = []; - if (options.defaults) { - if (options.bytes === String) - object.key = ""; - else { - object.key = []; - if (options.bytes !== Array) - object.key = $util.newBuffer(object.key); - } - if (options.bytes === String) - object.value = ""; - else { - object.value = []; - if (options.bytes !== Array) - object.value = $util.newBuffer(object.value); - } - object.leaf = null; - } - if (message.key != null && message.hasOwnProperty("key")) - object.key = options.bytes === String ? $util.base64.encode(message.key, 0, message.key.length) : options.bytes === Array ? Array.prototype.slice.call(message.key) : message.key; - if (message.value != null && message.hasOwnProperty("value")) - object.value = options.bytes === String ? $util.base64.encode(message.value, 0, message.value.length) : options.bytes === Array ? Array.prototype.slice.call(message.value) : message.value; - if (message.leaf != null && message.hasOwnProperty("leaf")) - object.leaf = $root.ics23.LeafOp.toObject(message.leaf, options); - if (message.path && message.path.length) { - object.path = []; - for (var j = 0; j < message.path.length; ++j) - object.path[j] = $root.ics23.InnerOp.toObject(message.path[j], options); - } - return object; - }; - - /** - * Converts this ExistenceProof to JSON. - * @function toJSON - * @memberof ics23.ExistenceProof - * @instance - * @returns {Object.} JSON object - */ - ExistenceProof.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ExistenceProof; - })(); - - ics23.NonExistenceProof = (function() { - - /** - * Properties of a NonExistenceProof. - * @memberof ics23 - * @interface INonExistenceProof - * @property {Uint8Array|null} [key] NonExistenceProof key - * @property {ics23.IExistenceProof|null} [left] NonExistenceProof left - * @property {ics23.IExistenceProof|null} [right] NonExistenceProof right - */ - - /** - * Constructs a new NonExistenceProof. - * @memberof ics23 - * @classdesc Represents a NonExistenceProof. - * @implements INonExistenceProof - * @constructor - * @param {ics23.INonExistenceProof=} [properties] Properties to set - */ - function NonExistenceProof(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * NonExistenceProof key. - * @member {Uint8Array} key - * @memberof ics23.NonExistenceProof - * @instance - */ - NonExistenceProof.prototype.key = $util.newBuffer([]); - - /** - * NonExistenceProof left. - * @member {ics23.IExistenceProof|null|undefined} left - * @memberof ics23.NonExistenceProof - * @instance - */ - NonExistenceProof.prototype.left = null; - - /** - * NonExistenceProof right. - * @member {ics23.IExistenceProof|null|undefined} right - * @memberof ics23.NonExistenceProof - * @instance - */ - NonExistenceProof.prototype.right = null; - - /** - * Encodes the specified NonExistenceProof message. Does not implicitly {@link ics23.NonExistenceProof.verify|verify} messages. - * @function encode - * @memberof ics23.NonExistenceProof - * @static - * @param {ics23.INonExistenceProof} message NonExistenceProof message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NonExistenceProof.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.key != null && Object.hasOwnProperty.call(message, "key")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.key); - if (message.left != null && Object.hasOwnProperty.call(message, "left")) - $root.ics23.ExistenceProof.encode(message.left, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.right != null && Object.hasOwnProperty.call(message, "right")) - $root.ics23.ExistenceProof.encode(message.right, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified NonExistenceProof message, length delimited. Does not implicitly {@link ics23.NonExistenceProof.verify|verify} messages. - * @function encodeDelimited - * @memberof ics23.NonExistenceProof - * @static - * @param {ics23.INonExistenceProof} message NonExistenceProof message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NonExistenceProof.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a NonExistenceProof message from the specified reader or buffer. - * @function decode - * @memberof ics23.NonExistenceProof - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {ics23.NonExistenceProof} NonExistenceProof - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NonExistenceProof.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ics23.NonExistenceProof(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.key = reader.bytes(); - break; - case 2: - message.left = $root.ics23.ExistenceProof.decode(reader, reader.uint32()); - break; - case 3: - message.right = $root.ics23.ExistenceProof.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a NonExistenceProof message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ics23.NonExistenceProof - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ics23.NonExistenceProof} NonExistenceProof - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NonExistenceProof.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + v3.Header = (function() { - /** - * Verifies a NonExistenceProof message. - * @function verify - * @memberof ics23.NonExistenceProof - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - NonExistenceProof.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.key != null && message.hasOwnProperty("key")) - if (!(message.key && typeof message.key.length === "number" || $util.isString(message.key))) - return "key: buffer expected"; - if (message.left != null && message.hasOwnProperty("left")) { - var error = $root.ics23.ExistenceProof.verify(message.left); - if (error) - return "left." + error; - } - if (message.right != null && message.hasOwnProperty("right")) { - var error = $root.ics23.ExistenceProof.verify(message.right); - if (error) - return "right." + error; - } - return null; - }; + /** + * Properties of a Header. + * @memberof ibc.lightclients.solomachine.v3 + * @interface IHeader + * @property {Long|null} [timestamp] Header timestamp + * @property {Uint8Array|null} [signature] Header signature + * @property {google.protobuf.IAny|null} [new_public_key] Header new_public_key + * @property {string|null} [new_diversifier] Header new_diversifier + */ - /** - * Creates a NonExistenceProof message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof ics23.NonExistenceProof - * @static - * @param {Object.} object Plain object - * @returns {ics23.NonExistenceProof} NonExistenceProof - */ - NonExistenceProof.fromObject = function fromObject(object) { - if (object instanceof $root.ics23.NonExistenceProof) - return object; - var message = new $root.ics23.NonExistenceProof(); - if (object.key != null) - if (typeof object.key === "string") - $util.base64.decode(object.key, message.key = $util.newBuffer($util.base64.length(object.key)), 0); - else if (object.key.length) - message.key = object.key; - if (object.left != null) { - if (typeof object.left !== "object") - throw TypeError(".ics23.NonExistenceProof.left: object expected"); - message.left = $root.ics23.ExistenceProof.fromObject(object.left); - } - if (object.right != null) { - if (typeof object.right !== "object") - throw TypeError(".ics23.NonExistenceProof.right: object expected"); - message.right = $root.ics23.ExistenceProof.fromObject(object.right); - } - return message; - }; + /** + * Constructs a new Header. + * @memberof ibc.lightclients.solomachine.v3 + * @classdesc Represents a Header. + * @implements IHeader + * @constructor + * @param {ibc.lightclients.solomachine.v3.IHeader=} [properties] Properties to set + */ + function Header(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Creates a plain object from a NonExistenceProof message. Also converts values to other types if specified. - * @function toObject - * @memberof ics23.NonExistenceProof - * @static - * @param {ics23.NonExistenceProof} message NonExistenceProof - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - NonExistenceProof.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - if (options.bytes === String) - object.key = ""; - else { - object.key = []; - if (options.bytes !== Array) - object.key = $util.newBuffer(object.key); - } - object.left = null; - object.right = null; - } - if (message.key != null && message.hasOwnProperty("key")) - object.key = options.bytes === String ? $util.base64.encode(message.key, 0, message.key.length) : options.bytes === Array ? Array.prototype.slice.call(message.key) : message.key; - if (message.left != null && message.hasOwnProperty("left")) - object.left = $root.ics23.ExistenceProof.toObject(message.left, options); - if (message.right != null && message.hasOwnProperty("right")) - object.right = $root.ics23.ExistenceProof.toObject(message.right, options); - return object; - }; + /** + * Header timestamp. + * @member {Long} timestamp + * @memberof ibc.lightclients.solomachine.v3.Header + * @instance + */ + Header.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - /** - * Converts this NonExistenceProof to JSON. - * @function toJSON - * @memberof ics23.NonExistenceProof - * @instance - * @returns {Object.} JSON object - */ - NonExistenceProof.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Header signature. + * @member {Uint8Array} signature + * @memberof ibc.lightclients.solomachine.v3.Header + * @instance + */ + Header.prototype.signature = $util.newBuffer([]); - return NonExistenceProof; - })(); + /** + * Header new_public_key. + * @member {google.protobuf.IAny|null|undefined} new_public_key + * @memberof ibc.lightclients.solomachine.v3.Header + * @instance + */ + Header.prototype.new_public_key = null; - ics23.CommitmentProof = (function() { + /** + * Header new_diversifier. + * @member {string} new_diversifier + * @memberof ibc.lightclients.solomachine.v3.Header + * @instance + */ + Header.prototype.new_diversifier = ""; - /** - * Properties of a CommitmentProof. - * @memberof ics23 - * @interface ICommitmentProof - * @property {ics23.IExistenceProof|null} [exist] CommitmentProof exist - * @property {ics23.INonExistenceProof|null} [nonexist] CommitmentProof nonexist - * @property {ics23.IBatchProof|null} [batch] CommitmentProof batch - * @property {ics23.ICompressedBatchProof|null} [compressed] CommitmentProof compressed - */ + /** + * Encodes the specified Header message. Does not implicitly {@link ibc.lightclients.solomachine.v3.Header.verify|verify} messages. + * @function encode + * @memberof ibc.lightclients.solomachine.v3.Header + * @static + * @param {ibc.lightclients.solomachine.v3.IHeader} message Header message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Header.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.timestamp != null && Object.hasOwnProperty.call(message, "timestamp")) + writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.timestamp); + if (message.signature != null && Object.hasOwnProperty.call(message, "signature")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.signature); + if (message.new_public_key != null && Object.hasOwnProperty.call(message, "new_public_key")) + $root.google.protobuf.Any.encode(message.new_public_key, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.new_diversifier != null && Object.hasOwnProperty.call(message, "new_diversifier")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.new_diversifier); + return writer; + }; - /** - * Constructs a new CommitmentProof. - * @memberof ics23 - * @classdesc Represents a CommitmentProof. - * @implements ICommitmentProof - * @constructor - * @param {ics23.ICommitmentProof=} [properties] Properties to set - */ - function CommitmentProof(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Encodes the specified Header message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v3.Header.verify|verify} messages. + * @function encodeDelimited + * @memberof ibc.lightclients.solomachine.v3.Header + * @static + * @param {ibc.lightclients.solomachine.v3.IHeader} message Header message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Header.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * CommitmentProof exist. - * @member {ics23.IExistenceProof|null|undefined} exist - * @memberof ics23.CommitmentProof - * @instance - */ - CommitmentProof.prototype.exist = null; + /** + * Decodes a Header message from the specified reader or buffer. + * @function decode + * @memberof ibc.lightclients.solomachine.v3.Header + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {ibc.lightclients.solomachine.v3.Header} Header + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Header.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.solomachine.v3.Header(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.timestamp = reader.uint64(); + break; + case 2: + message.signature = reader.bytes(); + break; + case 3: + message.new_public_key = $root.google.protobuf.Any.decode(reader, reader.uint32()); + break; + case 4: + message.new_diversifier = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * CommitmentProof nonexist. - * @member {ics23.INonExistenceProof|null|undefined} nonexist - * @memberof ics23.CommitmentProof - * @instance - */ - CommitmentProof.prototype.nonexist = null; + /** + * Decodes a Header message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof ibc.lightclients.solomachine.v3.Header + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {ibc.lightclients.solomachine.v3.Header} Header + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Header.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * CommitmentProof batch. - * @member {ics23.IBatchProof|null|undefined} batch - * @memberof ics23.CommitmentProof - * @instance - */ - CommitmentProof.prototype.batch = null; + /** + * Verifies a Header message. + * @function verify + * @memberof ibc.lightclients.solomachine.v3.Header + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Header.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.timestamp != null && message.hasOwnProperty("timestamp")) + if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high))) + return "timestamp: integer|Long expected"; + if (message.signature != null && message.hasOwnProperty("signature")) + if (!(message.signature && typeof message.signature.length === "number" || $util.isString(message.signature))) + return "signature: buffer expected"; + if (message.new_public_key != null && message.hasOwnProperty("new_public_key")) { + var error = $root.google.protobuf.Any.verify(message.new_public_key); + if (error) + return "new_public_key." + error; + } + if (message.new_diversifier != null && message.hasOwnProperty("new_diversifier")) + if (!$util.isString(message.new_diversifier)) + return "new_diversifier: string expected"; + return null; + }; - /** - * CommitmentProof compressed. - * @member {ics23.ICompressedBatchProof|null|undefined} compressed - * @memberof ics23.CommitmentProof - * @instance - */ - CommitmentProof.prototype.compressed = null; + /** + * Creates a Header message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof ibc.lightclients.solomachine.v3.Header + * @static + * @param {Object.} object Plain object + * @returns {ibc.lightclients.solomachine.v3.Header} Header + */ + Header.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.lightclients.solomachine.v3.Header) + return object; + var message = new $root.ibc.lightclients.solomachine.v3.Header(); + if (object.timestamp != null) + if ($util.Long) + (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true; + else if (typeof object.timestamp === "string") + message.timestamp = parseInt(object.timestamp, 10); + else if (typeof object.timestamp === "number") + message.timestamp = object.timestamp; + else if (typeof object.timestamp === "object") + message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true); + if (object.signature != null) + if (typeof object.signature === "string") + $util.base64.decode(object.signature, message.signature = $util.newBuffer($util.base64.length(object.signature)), 0); + else if (object.signature.length) + message.signature = object.signature; + if (object.new_public_key != null) { + if (typeof object.new_public_key !== "object") + throw TypeError(".ibc.lightclients.solomachine.v3.Header.new_public_key: object expected"); + message.new_public_key = $root.google.protobuf.Any.fromObject(object.new_public_key); + } + if (object.new_diversifier != null) + message.new_diversifier = String(object.new_diversifier); + return message; + }; - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + /** + * Creates a plain object from a Header message. Also converts values to other types if specified. + * @function toObject + * @memberof ibc.lightclients.solomachine.v3.Header + * @static + * @param {ibc.lightclients.solomachine.v3.Header} message Header + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Header.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + if ($util.Long) { + var long = new $util.Long(0, 0, true); + object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.timestamp = options.longs === String ? "0" : 0; + if (options.bytes === String) + object.signature = ""; + else { + object.signature = []; + if (options.bytes !== Array) + object.signature = $util.newBuffer(object.signature); + } + object.new_public_key = null; + object.new_diversifier = ""; + } + if (message.timestamp != null && message.hasOwnProperty("timestamp")) + if (typeof message.timestamp === "number") + object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp; + else + object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber(true) : message.timestamp; + if (message.signature != null && message.hasOwnProperty("signature")) + object.signature = options.bytes === String ? $util.base64.encode(message.signature, 0, message.signature.length) : options.bytes === Array ? Array.prototype.slice.call(message.signature) : message.signature; + if (message.new_public_key != null && message.hasOwnProperty("new_public_key")) + object.new_public_key = $root.google.protobuf.Any.toObject(message.new_public_key, options); + if (message.new_diversifier != null && message.hasOwnProperty("new_diversifier")) + object.new_diversifier = message.new_diversifier; + return object; + }; - /** - * CommitmentProof proof. - * @member {"exist"|"nonexist"|"batch"|"compressed"|undefined} proof - * @memberof ics23.CommitmentProof - * @instance - */ - Object.defineProperty(CommitmentProof.prototype, "proof", { - get: $util.oneOfGetter($oneOfFields = ["exist", "nonexist", "batch", "compressed"]), - set: $util.oneOfSetter($oneOfFields) - }); + /** + * Converts this Header to JSON. + * @function toJSON + * @memberof ibc.lightclients.solomachine.v3.Header + * @instance + * @returns {Object.} JSON object + */ + Header.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Encodes the specified CommitmentProof message. Does not implicitly {@link ics23.CommitmentProof.verify|verify} messages. - * @function encode - * @memberof ics23.CommitmentProof - * @static - * @param {ics23.ICommitmentProof} message CommitmentProof message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CommitmentProof.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.exist != null && Object.hasOwnProperty.call(message, "exist")) - $root.ics23.ExistenceProof.encode(message.exist, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nonexist != null && Object.hasOwnProperty.call(message, "nonexist")) - $root.ics23.NonExistenceProof.encode(message.nonexist, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.batch != null && Object.hasOwnProperty.call(message, "batch")) - $root.ics23.BatchProof.encode(message.batch, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.compressed != null && Object.hasOwnProperty.call(message, "compressed")) - $root.ics23.CompressedBatchProof.encode(message.compressed, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - return writer; - }; + return Header; + })(); - /** - * Encodes the specified CommitmentProof message, length delimited. Does not implicitly {@link ics23.CommitmentProof.verify|verify} messages. - * @function encodeDelimited - * @memberof ics23.CommitmentProof - * @static - * @param {ics23.ICommitmentProof} message CommitmentProof message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CommitmentProof.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + v3.Misbehaviour = (function() { - /** - * Decodes a CommitmentProof message from the specified reader or buffer. - * @function decode - * @memberof ics23.CommitmentProof - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {ics23.CommitmentProof} CommitmentProof - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CommitmentProof.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ics23.CommitmentProof(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.exist = $root.ics23.ExistenceProof.decode(reader, reader.uint32()); - break; - case 2: - message.nonexist = $root.ics23.NonExistenceProof.decode(reader, reader.uint32()); - break; - case 3: - message.batch = $root.ics23.BatchProof.decode(reader, reader.uint32()); - break; - case 4: - message.compressed = $root.ics23.CompressedBatchProof.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Properties of a Misbehaviour. + * @memberof ibc.lightclients.solomachine.v3 + * @interface IMisbehaviour + * @property {Long|null} [sequence] Misbehaviour sequence + * @property {ibc.lightclients.solomachine.v3.ISignatureAndData|null} [signature_one] Misbehaviour signature_one + * @property {ibc.lightclients.solomachine.v3.ISignatureAndData|null} [signature_two] Misbehaviour signature_two + */ - /** - * Decodes a CommitmentProof message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ics23.CommitmentProof - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ics23.CommitmentProof} CommitmentProof - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CommitmentProof.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Constructs a new Misbehaviour. + * @memberof ibc.lightclients.solomachine.v3 + * @classdesc Represents a Misbehaviour. + * @implements IMisbehaviour + * @constructor + * @param {ibc.lightclients.solomachine.v3.IMisbehaviour=} [properties] Properties to set + */ + function Misbehaviour(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Verifies a CommitmentProof message. - * @function verify - * @memberof ics23.CommitmentProof - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CommitmentProof.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.exist != null && message.hasOwnProperty("exist")) { - properties.proof = 1; - { - var error = $root.ics23.ExistenceProof.verify(message.exist); - if (error) - return "exist." + error; - } - } - if (message.nonexist != null && message.hasOwnProperty("nonexist")) { - if (properties.proof === 1) - return "proof: multiple values"; - properties.proof = 1; - { - var error = $root.ics23.NonExistenceProof.verify(message.nonexist); - if (error) - return "nonexist." + error; - } - } - if (message.batch != null && message.hasOwnProperty("batch")) { - if (properties.proof === 1) - return "proof: multiple values"; - properties.proof = 1; - { - var error = $root.ics23.BatchProof.verify(message.batch); - if (error) - return "batch." + error; - } - } - if (message.compressed != null && message.hasOwnProperty("compressed")) { - if (properties.proof === 1) - return "proof: multiple values"; - properties.proof = 1; - { - var error = $root.ics23.CompressedBatchProof.verify(message.compressed); - if (error) - return "compressed." + error; - } - } - return null; - }; + /** + * Misbehaviour sequence. + * @member {Long} sequence + * @memberof ibc.lightclients.solomachine.v3.Misbehaviour + * @instance + */ + Misbehaviour.prototype.sequence = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - /** - * Creates a CommitmentProof message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof ics23.CommitmentProof - * @static - * @param {Object.} object Plain object - * @returns {ics23.CommitmentProof} CommitmentProof - */ - CommitmentProof.fromObject = function fromObject(object) { - if (object instanceof $root.ics23.CommitmentProof) - return object; - var message = new $root.ics23.CommitmentProof(); - if (object.exist != null) { - if (typeof object.exist !== "object") - throw TypeError(".ics23.CommitmentProof.exist: object expected"); - message.exist = $root.ics23.ExistenceProof.fromObject(object.exist); - } - if (object.nonexist != null) { - if (typeof object.nonexist !== "object") - throw TypeError(".ics23.CommitmentProof.nonexist: object expected"); - message.nonexist = $root.ics23.NonExistenceProof.fromObject(object.nonexist); - } - if (object.batch != null) { - if (typeof object.batch !== "object") - throw TypeError(".ics23.CommitmentProof.batch: object expected"); - message.batch = $root.ics23.BatchProof.fromObject(object.batch); - } - if (object.compressed != null) { - if (typeof object.compressed !== "object") - throw TypeError(".ics23.CommitmentProof.compressed: object expected"); - message.compressed = $root.ics23.CompressedBatchProof.fromObject(object.compressed); - } - return message; - }; + /** + * Misbehaviour signature_one. + * @member {ibc.lightclients.solomachine.v3.ISignatureAndData|null|undefined} signature_one + * @memberof ibc.lightclients.solomachine.v3.Misbehaviour + * @instance + */ + Misbehaviour.prototype.signature_one = null; - /** - * Creates a plain object from a CommitmentProof message. Also converts values to other types if specified. - * @function toObject - * @memberof ics23.CommitmentProof - * @static - * @param {ics23.CommitmentProof} message CommitmentProof - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - CommitmentProof.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (message.exist != null && message.hasOwnProperty("exist")) { - object.exist = $root.ics23.ExistenceProof.toObject(message.exist, options); - if (options.oneofs) - object.proof = "exist"; - } - if (message.nonexist != null && message.hasOwnProperty("nonexist")) { - object.nonexist = $root.ics23.NonExistenceProof.toObject(message.nonexist, options); - if (options.oneofs) - object.proof = "nonexist"; - } - if (message.batch != null && message.hasOwnProperty("batch")) { - object.batch = $root.ics23.BatchProof.toObject(message.batch, options); - if (options.oneofs) - object.proof = "batch"; - } - if (message.compressed != null && message.hasOwnProperty("compressed")) { - object.compressed = $root.ics23.CompressedBatchProof.toObject(message.compressed, options); - if (options.oneofs) - object.proof = "compressed"; - } - return object; - }; + /** + * Misbehaviour signature_two. + * @member {ibc.lightclients.solomachine.v3.ISignatureAndData|null|undefined} signature_two + * @memberof ibc.lightclients.solomachine.v3.Misbehaviour + * @instance + */ + Misbehaviour.prototype.signature_two = null; - /** - * Converts this CommitmentProof to JSON. - * @function toJSON - * @memberof ics23.CommitmentProof - * @instance - * @returns {Object.} JSON object - */ - CommitmentProof.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Encodes the specified Misbehaviour message. Does not implicitly {@link ibc.lightclients.solomachine.v3.Misbehaviour.verify|verify} messages. + * @function encode + * @memberof ibc.lightclients.solomachine.v3.Misbehaviour + * @static + * @param {ibc.lightclients.solomachine.v3.IMisbehaviour} message Misbehaviour message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Misbehaviour.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.sequence != null && Object.hasOwnProperty.call(message, "sequence")) + writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.sequence); + if (message.signature_one != null && Object.hasOwnProperty.call(message, "signature_one")) + $root.ibc.lightclients.solomachine.v3.SignatureAndData.encode(message.signature_one, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.signature_two != null && Object.hasOwnProperty.call(message, "signature_two")) + $root.ibc.lightclients.solomachine.v3.SignatureAndData.encode(message.signature_two, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; - return CommitmentProof; - })(); + /** + * Encodes the specified Misbehaviour message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v3.Misbehaviour.verify|verify} messages. + * @function encodeDelimited + * @memberof ibc.lightclients.solomachine.v3.Misbehaviour + * @static + * @param {ibc.lightclients.solomachine.v3.IMisbehaviour} message Misbehaviour message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Misbehaviour.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - ics23.LeafOp = (function() { + /** + * Decodes a Misbehaviour message from the specified reader or buffer. + * @function decode + * @memberof ibc.lightclients.solomachine.v3.Misbehaviour + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {ibc.lightclients.solomachine.v3.Misbehaviour} Misbehaviour + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Misbehaviour.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.solomachine.v3.Misbehaviour(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.sequence = reader.uint64(); + break; + case 2: + message.signature_one = $root.ibc.lightclients.solomachine.v3.SignatureAndData.decode(reader, reader.uint32()); + break; + case 3: + message.signature_two = $root.ibc.lightclients.solomachine.v3.SignatureAndData.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Properties of a LeafOp. - * @memberof ics23 - * @interface ILeafOp - * @property {ics23.HashOp|null} [hash] LeafOp hash - * @property {ics23.HashOp|null} [prehash_key] LeafOp prehash_key - * @property {ics23.HashOp|null} [prehash_value] LeafOp prehash_value - * @property {ics23.LengthOp|null} [length] LeafOp length - * @property {Uint8Array|null} [prefix] LeafOp prefix - */ + /** + * Decodes a Misbehaviour message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof ibc.lightclients.solomachine.v3.Misbehaviour + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {ibc.lightclients.solomachine.v3.Misbehaviour} Misbehaviour + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Misbehaviour.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Constructs a new LeafOp. - * @memberof ics23 - * @classdesc LeafOp represents the raw key-value data we wish to prove, and - * must be flexible to represent the internal transformation from - * the original key-value pairs into the basis hash, for many existing - * merkle trees. - * - * key and value are passed in. So that the signature of this operation is: - * leafOp(key, value) -> output - * - * To process this, first prehash the keys and values if needed (ANY means no hash in this case): - * hkey = prehashKey(key) - * hvalue = prehashValue(value) - * - * Then combine the bytes, and hash it - * output = hash(prefix || length(hkey) || hkey || length(hvalue) || hvalue) - * @implements ILeafOp - * @constructor - * @param {ics23.ILeafOp=} [properties] Properties to set - */ - function LeafOp(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Verifies a Misbehaviour message. + * @function verify + * @memberof ibc.lightclients.solomachine.v3.Misbehaviour + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Misbehaviour.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.sequence != null && message.hasOwnProperty("sequence")) + if (!$util.isInteger(message.sequence) && !(message.sequence && $util.isInteger(message.sequence.low) && $util.isInteger(message.sequence.high))) + return "sequence: integer|Long expected"; + if (message.signature_one != null && message.hasOwnProperty("signature_one")) { + var error = $root.ibc.lightclients.solomachine.v3.SignatureAndData.verify(message.signature_one); + if (error) + return "signature_one." + error; + } + if (message.signature_two != null && message.hasOwnProperty("signature_two")) { + var error = $root.ibc.lightclients.solomachine.v3.SignatureAndData.verify(message.signature_two); + if (error) + return "signature_two." + error; + } + return null; + }; - /** - * LeafOp hash. - * @member {ics23.HashOp} hash - * @memberof ics23.LeafOp - * @instance - */ - LeafOp.prototype.hash = 0; + /** + * Creates a Misbehaviour message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof ibc.lightclients.solomachine.v3.Misbehaviour + * @static + * @param {Object.} object Plain object + * @returns {ibc.lightclients.solomachine.v3.Misbehaviour} Misbehaviour + */ + Misbehaviour.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.lightclients.solomachine.v3.Misbehaviour) + return object; + var message = new $root.ibc.lightclients.solomachine.v3.Misbehaviour(); + if (object.sequence != null) + if ($util.Long) + (message.sequence = $util.Long.fromValue(object.sequence)).unsigned = true; + else if (typeof object.sequence === "string") + message.sequence = parseInt(object.sequence, 10); + else if (typeof object.sequence === "number") + message.sequence = object.sequence; + else if (typeof object.sequence === "object") + message.sequence = new $util.LongBits(object.sequence.low >>> 0, object.sequence.high >>> 0).toNumber(true); + if (object.signature_one != null) { + if (typeof object.signature_one !== "object") + throw TypeError(".ibc.lightclients.solomachine.v3.Misbehaviour.signature_one: object expected"); + message.signature_one = $root.ibc.lightclients.solomachine.v3.SignatureAndData.fromObject(object.signature_one); + } + if (object.signature_two != null) { + if (typeof object.signature_two !== "object") + throw TypeError(".ibc.lightclients.solomachine.v3.Misbehaviour.signature_two: object expected"); + message.signature_two = $root.ibc.lightclients.solomachine.v3.SignatureAndData.fromObject(object.signature_two); + } + return message; + }; - /** - * LeafOp prehash_key. - * @member {ics23.HashOp} prehash_key - * @memberof ics23.LeafOp - * @instance - */ - LeafOp.prototype.prehash_key = 0; + /** + * Creates a plain object from a Misbehaviour message. Also converts values to other types if specified. + * @function toObject + * @memberof ibc.lightclients.solomachine.v3.Misbehaviour + * @static + * @param {ibc.lightclients.solomachine.v3.Misbehaviour} message Misbehaviour + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Misbehaviour.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + if ($util.Long) { + var long = new $util.Long(0, 0, true); + object.sequence = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.sequence = options.longs === String ? "0" : 0; + object.signature_one = null; + object.signature_two = null; + } + if (message.sequence != null && message.hasOwnProperty("sequence")) + if (typeof message.sequence === "number") + object.sequence = options.longs === String ? String(message.sequence) : message.sequence; + else + object.sequence = options.longs === String ? $util.Long.prototype.toString.call(message.sequence) : options.longs === Number ? new $util.LongBits(message.sequence.low >>> 0, message.sequence.high >>> 0).toNumber(true) : message.sequence; + if (message.signature_one != null && message.hasOwnProperty("signature_one")) + object.signature_one = $root.ibc.lightclients.solomachine.v3.SignatureAndData.toObject(message.signature_one, options); + if (message.signature_two != null && message.hasOwnProperty("signature_two")) + object.signature_two = $root.ibc.lightclients.solomachine.v3.SignatureAndData.toObject(message.signature_two, options); + return object; + }; - /** - * LeafOp prehash_value. - * @member {ics23.HashOp} prehash_value - * @memberof ics23.LeafOp - * @instance - */ - LeafOp.prototype.prehash_value = 0; + /** + * Converts this Misbehaviour to JSON. + * @function toJSON + * @memberof ibc.lightclients.solomachine.v3.Misbehaviour + * @instance + * @returns {Object.} JSON object + */ + Misbehaviour.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * LeafOp length. - * @member {ics23.LengthOp} length - * @memberof ics23.LeafOp - * @instance - */ - LeafOp.prototype.length = 0; + return Misbehaviour; + })(); - /** - * LeafOp prefix. - * @member {Uint8Array} prefix - * @memberof ics23.LeafOp - * @instance - */ - LeafOp.prototype.prefix = $util.newBuffer([]); + v3.SignatureAndData = (function() { - /** - * Encodes the specified LeafOp message. Does not implicitly {@link ics23.LeafOp.verify|verify} messages. - * @function encode - * @memberof ics23.LeafOp - * @static - * @param {ics23.ILeafOp} message LeafOp message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - LeafOp.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.hash != null && Object.hasOwnProperty.call(message, "hash")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.hash); - if (message.prehash_key != null && Object.hasOwnProperty.call(message, "prehash_key")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.prehash_key); - if (message.prehash_value != null && Object.hasOwnProperty.call(message, "prehash_value")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.prehash_value); - if (message.length != null && Object.hasOwnProperty.call(message, "length")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.length); - if (message.prefix != null && Object.hasOwnProperty.call(message, "prefix")) - writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.prefix); - return writer; - }; + /** + * Properties of a SignatureAndData. + * @memberof ibc.lightclients.solomachine.v3 + * @interface ISignatureAndData + * @property {Uint8Array|null} [signature] SignatureAndData signature + * @property {Uint8Array|null} [path] SignatureAndData path + * @property {Uint8Array|null} [data] SignatureAndData data + * @property {Long|null} [timestamp] SignatureAndData timestamp + */ - /** - * Encodes the specified LeafOp message, length delimited. Does not implicitly {@link ics23.LeafOp.verify|verify} messages. - * @function encodeDelimited - * @memberof ics23.LeafOp - * @static - * @param {ics23.ILeafOp} message LeafOp message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - LeafOp.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Constructs a new SignatureAndData. + * @memberof ibc.lightclients.solomachine.v3 + * @classdesc Represents a SignatureAndData. + * @implements ISignatureAndData + * @constructor + * @param {ibc.lightclients.solomachine.v3.ISignatureAndData=} [properties] Properties to set + */ + function SignatureAndData(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Decodes a LeafOp message from the specified reader or buffer. - * @function decode - * @memberof ics23.LeafOp - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {ics23.LeafOp} LeafOp - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - LeafOp.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ics23.LeafOp(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.hash = reader.int32(); - break; - case 2: - message.prehash_key = reader.int32(); - break; - case 3: - message.prehash_value = reader.int32(); - break; - case 4: - message.length = reader.int32(); - break; - case 5: - message.prefix = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * SignatureAndData signature. + * @member {Uint8Array} signature + * @memberof ibc.lightclients.solomachine.v3.SignatureAndData + * @instance + */ + SignatureAndData.prototype.signature = $util.newBuffer([]); - /** - * Decodes a LeafOp message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ics23.LeafOp - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ics23.LeafOp} LeafOp - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - LeafOp.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * SignatureAndData path. + * @member {Uint8Array} path + * @memberof ibc.lightclients.solomachine.v3.SignatureAndData + * @instance + */ + SignatureAndData.prototype.path = $util.newBuffer([]); - /** - * Verifies a LeafOp message. - * @function verify - * @memberof ics23.LeafOp - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - LeafOp.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.hash != null && message.hasOwnProperty("hash")) - switch (message.hash) { - default: - return "hash: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - break; - } - if (message.prehash_key != null && message.hasOwnProperty("prehash_key")) - switch (message.prehash_key) { - default: - return "prehash_key: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - break; - } - if (message.prehash_value != null && message.hasOwnProperty("prehash_value")) - switch (message.prehash_value) { - default: - return "prehash_value: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - break; - } - if (message.length != null && message.hasOwnProperty("length")) - switch (message.length) { - default: - return "length: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - break; - } - if (message.prefix != null && message.hasOwnProperty("prefix")) - if (!(message.prefix && typeof message.prefix.length === "number" || $util.isString(message.prefix))) - return "prefix: buffer expected"; - return null; - }; + /** + * SignatureAndData data. + * @member {Uint8Array} data + * @memberof ibc.lightclients.solomachine.v3.SignatureAndData + * @instance + */ + SignatureAndData.prototype.data = $util.newBuffer([]); - /** - * Creates a LeafOp message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof ics23.LeafOp - * @static - * @param {Object.} object Plain object - * @returns {ics23.LeafOp} LeafOp - */ - LeafOp.fromObject = function fromObject(object) { - if (object instanceof $root.ics23.LeafOp) - return object; - var message = new $root.ics23.LeafOp(); - switch (object.hash) { - case "NO_HASH": - case 0: - message.hash = 0; - break; - case "SHA256": - case 1: - message.hash = 1; - break; - case "SHA512": - case 2: - message.hash = 2; - break; - case "KECCAK": - case 3: - message.hash = 3; - break; - case "RIPEMD160": - case 4: - message.hash = 4; - break; - case "BITCOIN": - case 5: - message.hash = 5; - break; - } - switch (object.prehash_key) { - case "NO_HASH": - case 0: - message.prehash_key = 0; - break; - case "SHA256": - case 1: - message.prehash_key = 1; - break; - case "SHA512": - case 2: - message.prehash_key = 2; - break; - case "KECCAK": - case 3: - message.prehash_key = 3; - break; - case "RIPEMD160": - case 4: - message.prehash_key = 4; - break; - case "BITCOIN": - case 5: - message.prehash_key = 5; - break; - } - switch (object.prehash_value) { - case "NO_HASH": - case 0: - message.prehash_value = 0; - break; - case "SHA256": - case 1: - message.prehash_value = 1; - break; - case "SHA512": - case 2: - message.prehash_value = 2; - break; - case "KECCAK": - case 3: - message.prehash_value = 3; - break; - case "RIPEMD160": - case 4: - message.prehash_value = 4; - break; - case "BITCOIN": - case 5: - message.prehash_value = 5; - break; - } - switch (object.length) { - case "NO_PREFIX": - case 0: - message.length = 0; - break; - case "VAR_PROTO": - case 1: - message.length = 1; - break; - case "VAR_RLP": - case 2: - message.length = 2; - break; - case "FIXED32_BIG": - case 3: - message.length = 3; - break; - case "FIXED32_LITTLE": - case 4: - message.length = 4; - break; - case "FIXED64_BIG": - case 5: - message.length = 5; - break; - case "FIXED64_LITTLE": - case 6: - message.length = 6; - break; - case "REQUIRE_32_BYTES": - case 7: - message.length = 7; - break; - case "REQUIRE_64_BYTES": - case 8: - message.length = 8; - break; - } - if (object.prefix != null) - if (typeof object.prefix === "string") - $util.base64.decode(object.prefix, message.prefix = $util.newBuffer($util.base64.length(object.prefix)), 0); - else if (object.prefix.length) - message.prefix = object.prefix; - return message; - }; + /** + * SignatureAndData timestamp. + * @member {Long} timestamp + * @memberof ibc.lightclients.solomachine.v3.SignatureAndData + * @instance + */ + SignatureAndData.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - /** - * Creates a plain object from a LeafOp message. Also converts values to other types if specified. - * @function toObject - * @memberof ics23.LeafOp - * @static - * @param {ics23.LeafOp} message LeafOp - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - LeafOp.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.hash = options.enums === String ? "NO_HASH" : 0; - object.prehash_key = options.enums === String ? "NO_HASH" : 0; - object.prehash_value = options.enums === String ? "NO_HASH" : 0; - object.length = options.enums === String ? "NO_PREFIX" : 0; - if (options.bytes === String) - object.prefix = ""; - else { - object.prefix = []; - if (options.bytes !== Array) - object.prefix = $util.newBuffer(object.prefix); - } - } - if (message.hash != null && message.hasOwnProperty("hash")) - object.hash = options.enums === String ? $root.ics23.HashOp[message.hash] : message.hash; - if (message.prehash_key != null && message.hasOwnProperty("prehash_key")) - object.prehash_key = options.enums === String ? $root.ics23.HashOp[message.prehash_key] : message.prehash_key; - if (message.prehash_value != null && message.hasOwnProperty("prehash_value")) - object.prehash_value = options.enums === String ? $root.ics23.HashOp[message.prehash_value] : message.prehash_value; - if (message.length != null && message.hasOwnProperty("length")) - object.length = options.enums === String ? $root.ics23.LengthOp[message.length] : message.length; - if (message.prefix != null && message.hasOwnProperty("prefix")) - object.prefix = options.bytes === String ? $util.base64.encode(message.prefix, 0, message.prefix.length) : options.bytes === Array ? Array.prototype.slice.call(message.prefix) : message.prefix; - return object; - }; + /** + * Encodes the specified SignatureAndData message. Does not implicitly {@link ibc.lightclients.solomachine.v3.SignatureAndData.verify|verify} messages. + * @function encode + * @memberof ibc.lightclients.solomachine.v3.SignatureAndData + * @static + * @param {ibc.lightclients.solomachine.v3.ISignatureAndData} message SignatureAndData message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SignatureAndData.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.signature != null && Object.hasOwnProperty.call(message, "signature")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.signature); + if (message.path != null && Object.hasOwnProperty.call(message, "path")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.path); + if (message.data != null && Object.hasOwnProperty.call(message, "data")) + writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.data); + if (message.timestamp != null && Object.hasOwnProperty.call(message, "timestamp")) + writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.timestamp); + return writer; + }; - /** - * Converts this LeafOp to JSON. - * @function toJSON - * @memberof ics23.LeafOp - * @instance - * @returns {Object.} JSON object - */ - LeafOp.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Encodes the specified SignatureAndData message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v3.SignatureAndData.verify|verify} messages. + * @function encodeDelimited + * @memberof ibc.lightclients.solomachine.v3.SignatureAndData + * @static + * @param {ibc.lightclients.solomachine.v3.ISignatureAndData} message SignatureAndData message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SignatureAndData.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - return LeafOp; - })(); + /** + * Decodes a SignatureAndData message from the specified reader or buffer. + * @function decode + * @memberof ibc.lightclients.solomachine.v3.SignatureAndData + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {ibc.lightclients.solomachine.v3.SignatureAndData} SignatureAndData + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SignatureAndData.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.solomachine.v3.SignatureAndData(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.signature = reader.bytes(); + break; + case 2: + message.path = reader.bytes(); + break; + case 3: + message.data = reader.bytes(); + break; + case 4: + message.timestamp = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - ics23.InnerOp = (function() { + /** + * Decodes a SignatureAndData message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof ibc.lightclients.solomachine.v3.SignatureAndData + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {ibc.lightclients.solomachine.v3.SignatureAndData} SignatureAndData + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SignatureAndData.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Properties of an InnerOp. - * @memberof ics23 - * @interface IInnerOp - * @property {ics23.HashOp|null} [hash] InnerOp hash - * @property {Uint8Array|null} [prefix] InnerOp prefix - * @property {Uint8Array|null} [suffix] InnerOp suffix - */ + /** + * Verifies a SignatureAndData message. + * @function verify + * @memberof ibc.lightclients.solomachine.v3.SignatureAndData + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SignatureAndData.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.signature != null && message.hasOwnProperty("signature")) + if (!(message.signature && typeof message.signature.length === "number" || $util.isString(message.signature))) + return "signature: buffer expected"; + if (message.path != null && message.hasOwnProperty("path")) + if (!(message.path && typeof message.path.length === "number" || $util.isString(message.path))) + return "path: buffer expected"; + if (message.data != null && message.hasOwnProperty("data")) + if (!(message.data && typeof message.data.length === "number" || $util.isString(message.data))) + return "data: buffer expected"; + if (message.timestamp != null && message.hasOwnProperty("timestamp")) + if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high))) + return "timestamp: integer|Long expected"; + return null; + }; - /** - * Constructs a new InnerOp. - * @memberof ics23 - * @classdesc InnerOp represents a merkle-proof step that is not a leaf. - * It represents concatenating two children and hashing them to provide the next result. - * - * The result of the previous step is passed in, so the signature of this op is: - * innerOp(child) -> output - * - * The result of applying InnerOp should be: - * output = op.hash(op.prefix || child || op.suffix) - * - * where the || operator is concatenation of binary data, - * and child is the result of hashing all the tree below this step. - * - * Any special data, like prepending child with the length, or prepending the entire operation with - * some value to differentiate from leaf nodes, should be included in prefix and suffix. - * If either of prefix or suffix is empty, we just treat it as an empty string - * @implements IInnerOp - * @constructor - * @param {ics23.IInnerOp=} [properties] Properties to set - */ - function InnerOp(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Creates a SignatureAndData message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof ibc.lightclients.solomachine.v3.SignatureAndData + * @static + * @param {Object.} object Plain object + * @returns {ibc.lightclients.solomachine.v3.SignatureAndData} SignatureAndData + */ + SignatureAndData.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.lightclients.solomachine.v3.SignatureAndData) + return object; + var message = new $root.ibc.lightclients.solomachine.v3.SignatureAndData(); + if (object.signature != null) + if (typeof object.signature === "string") + $util.base64.decode(object.signature, message.signature = $util.newBuffer($util.base64.length(object.signature)), 0); + else if (object.signature.length) + message.signature = object.signature; + if (object.path != null) + if (typeof object.path === "string") + $util.base64.decode(object.path, message.path = $util.newBuffer($util.base64.length(object.path)), 0); + else if (object.path.length) + message.path = object.path; + if (object.data != null) + if (typeof object.data === "string") + $util.base64.decode(object.data, message.data = $util.newBuffer($util.base64.length(object.data)), 0); + else if (object.data.length) + message.data = object.data; + if (object.timestamp != null) + if ($util.Long) + (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true; + else if (typeof object.timestamp === "string") + message.timestamp = parseInt(object.timestamp, 10); + else if (typeof object.timestamp === "number") + message.timestamp = object.timestamp; + else if (typeof object.timestamp === "object") + message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true); + return message; + }; - /** - * InnerOp hash. - * @member {ics23.HashOp} hash - * @memberof ics23.InnerOp - * @instance - */ - InnerOp.prototype.hash = 0; + /** + * Creates a plain object from a SignatureAndData message. Also converts values to other types if specified. + * @function toObject + * @memberof ibc.lightclients.solomachine.v3.SignatureAndData + * @static + * @param {ibc.lightclients.solomachine.v3.SignatureAndData} message SignatureAndData + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SignatureAndData.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + if (options.bytes === String) + object.signature = ""; + else { + object.signature = []; + if (options.bytes !== Array) + object.signature = $util.newBuffer(object.signature); + } + if (options.bytes === String) + object.path = ""; + else { + object.path = []; + if (options.bytes !== Array) + object.path = $util.newBuffer(object.path); + } + if (options.bytes === String) + object.data = ""; + else { + object.data = []; + if (options.bytes !== Array) + object.data = $util.newBuffer(object.data); + } + if ($util.Long) { + var long = new $util.Long(0, 0, true); + object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.timestamp = options.longs === String ? "0" : 0; + } + if (message.signature != null && message.hasOwnProperty("signature")) + object.signature = options.bytes === String ? $util.base64.encode(message.signature, 0, message.signature.length) : options.bytes === Array ? Array.prototype.slice.call(message.signature) : message.signature; + if (message.path != null && message.hasOwnProperty("path")) + object.path = options.bytes === String ? $util.base64.encode(message.path, 0, message.path.length) : options.bytes === Array ? Array.prototype.slice.call(message.path) : message.path; + if (message.data != null && message.hasOwnProperty("data")) + object.data = options.bytes === String ? $util.base64.encode(message.data, 0, message.data.length) : options.bytes === Array ? Array.prototype.slice.call(message.data) : message.data; + if (message.timestamp != null && message.hasOwnProperty("timestamp")) + if (typeof message.timestamp === "number") + object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp; + else + object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber(true) : message.timestamp; + return object; + }; - /** - * InnerOp prefix. - * @member {Uint8Array} prefix - * @memberof ics23.InnerOp - * @instance - */ - InnerOp.prototype.prefix = $util.newBuffer([]); + /** + * Converts this SignatureAndData to JSON. + * @function toJSON + * @memberof ibc.lightclients.solomachine.v3.SignatureAndData + * @instance + * @returns {Object.} JSON object + */ + SignatureAndData.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * InnerOp suffix. - * @member {Uint8Array} suffix - * @memberof ics23.InnerOp - * @instance - */ - InnerOp.prototype.suffix = $util.newBuffer([]); + return SignatureAndData; + })(); - /** - * Encodes the specified InnerOp message. Does not implicitly {@link ics23.InnerOp.verify|verify} messages. - * @function encode - * @memberof ics23.InnerOp - * @static - * @param {ics23.IInnerOp} message InnerOp message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - InnerOp.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.hash != null && Object.hasOwnProperty.call(message, "hash")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.hash); - if (message.prefix != null && Object.hasOwnProperty.call(message, "prefix")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.prefix); - if (message.suffix != null && Object.hasOwnProperty.call(message, "suffix")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.suffix); - return writer; - }; + v3.TimestampedSignatureData = (function() { - /** - * Encodes the specified InnerOp message, length delimited. Does not implicitly {@link ics23.InnerOp.verify|verify} messages. - * @function encodeDelimited - * @memberof ics23.InnerOp - * @static - * @param {ics23.IInnerOp} message InnerOp message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - InnerOp.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Properties of a TimestampedSignatureData. + * @memberof ibc.lightclients.solomachine.v3 + * @interface ITimestampedSignatureData + * @property {Uint8Array|null} [signature_data] TimestampedSignatureData signature_data + * @property {Long|null} [timestamp] TimestampedSignatureData timestamp + */ - /** - * Decodes an InnerOp message from the specified reader or buffer. - * @function decode - * @memberof ics23.InnerOp - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {ics23.InnerOp} InnerOp - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - InnerOp.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ics23.InnerOp(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.hash = reader.int32(); - break; - case 2: - message.prefix = reader.bytes(); - break; - case 3: - message.suffix = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Constructs a new TimestampedSignatureData. + * @memberof ibc.lightclients.solomachine.v3 + * @classdesc Represents a TimestampedSignatureData. + * @implements ITimestampedSignatureData + * @constructor + * @param {ibc.lightclients.solomachine.v3.ITimestampedSignatureData=} [properties] Properties to set + */ + function TimestampedSignatureData(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Decodes an InnerOp message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ics23.InnerOp - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ics23.InnerOp} InnerOp - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - InnerOp.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * TimestampedSignatureData signature_data. + * @member {Uint8Array} signature_data + * @memberof ibc.lightclients.solomachine.v3.TimestampedSignatureData + * @instance + */ + TimestampedSignatureData.prototype.signature_data = $util.newBuffer([]); - /** - * Verifies an InnerOp message. - * @function verify - * @memberof ics23.InnerOp - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - InnerOp.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.hash != null && message.hasOwnProperty("hash")) - switch (message.hash) { - default: - return "hash: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - break; - } - if (message.prefix != null && message.hasOwnProperty("prefix")) - if (!(message.prefix && typeof message.prefix.length === "number" || $util.isString(message.prefix))) - return "prefix: buffer expected"; - if (message.suffix != null && message.hasOwnProperty("suffix")) - if (!(message.suffix && typeof message.suffix.length === "number" || $util.isString(message.suffix))) - return "suffix: buffer expected"; - return null; - }; + /** + * TimestampedSignatureData timestamp. + * @member {Long} timestamp + * @memberof ibc.lightclients.solomachine.v3.TimestampedSignatureData + * @instance + */ + TimestampedSignatureData.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - /** - * Creates an InnerOp message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof ics23.InnerOp - * @static - * @param {Object.} object Plain object - * @returns {ics23.InnerOp} InnerOp - */ - InnerOp.fromObject = function fromObject(object) { - if (object instanceof $root.ics23.InnerOp) - return object; - var message = new $root.ics23.InnerOp(); - switch (object.hash) { - case "NO_HASH": - case 0: - message.hash = 0; - break; - case "SHA256": - case 1: - message.hash = 1; - break; - case "SHA512": - case 2: - message.hash = 2; - break; - case "KECCAK": - case 3: - message.hash = 3; - break; - case "RIPEMD160": - case 4: - message.hash = 4; - break; - case "BITCOIN": - case 5: - message.hash = 5; - break; - } - if (object.prefix != null) - if (typeof object.prefix === "string") - $util.base64.decode(object.prefix, message.prefix = $util.newBuffer($util.base64.length(object.prefix)), 0); - else if (object.prefix.length) - message.prefix = object.prefix; - if (object.suffix != null) - if (typeof object.suffix === "string") - $util.base64.decode(object.suffix, message.suffix = $util.newBuffer($util.base64.length(object.suffix)), 0); - else if (object.suffix.length) - message.suffix = object.suffix; - return message; - }; + /** + * Encodes the specified TimestampedSignatureData message. Does not implicitly {@link ibc.lightclients.solomachine.v3.TimestampedSignatureData.verify|verify} messages. + * @function encode + * @memberof ibc.lightclients.solomachine.v3.TimestampedSignatureData + * @static + * @param {ibc.lightclients.solomachine.v3.ITimestampedSignatureData} message TimestampedSignatureData message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TimestampedSignatureData.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.signature_data != null && Object.hasOwnProperty.call(message, "signature_data")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.signature_data); + if (message.timestamp != null && Object.hasOwnProperty.call(message, "timestamp")) + writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.timestamp); + return writer; + }; - /** - * Creates a plain object from an InnerOp message. Also converts values to other types if specified. - * @function toObject - * @memberof ics23.InnerOp - * @static - * @param {ics23.InnerOp} message InnerOp - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - InnerOp.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.hash = options.enums === String ? "NO_HASH" : 0; - if (options.bytes === String) - object.prefix = ""; - else { - object.prefix = []; - if (options.bytes !== Array) - object.prefix = $util.newBuffer(object.prefix); - } - if (options.bytes === String) - object.suffix = ""; - else { - object.suffix = []; - if (options.bytes !== Array) - object.suffix = $util.newBuffer(object.suffix); - } - } - if (message.hash != null && message.hasOwnProperty("hash")) - object.hash = options.enums === String ? $root.ics23.HashOp[message.hash] : message.hash; - if (message.prefix != null && message.hasOwnProperty("prefix")) - object.prefix = options.bytes === String ? $util.base64.encode(message.prefix, 0, message.prefix.length) : options.bytes === Array ? Array.prototype.slice.call(message.prefix) : message.prefix; - if (message.suffix != null && message.hasOwnProperty("suffix")) - object.suffix = options.bytes === String ? $util.base64.encode(message.suffix, 0, message.suffix.length) : options.bytes === Array ? Array.prototype.slice.call(message.suffix) : message.suffix; - return object; - }; + /** + * Encodes the specified TimestampedSignatureData message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v3.TimestampedSignatureData.verify|verify} messages. + * @function encodeDelimited + * @memberof ibc.lightclients.solomachine.v3.TimestampedSignatureData + * @static + * @param {ibc.lightclients.solomachine.v3.ITimestampedSignatureData} message TimestampedSignatureData message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TimestampedSignatureData.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Converts this InnerOp to JSON. - * @function toJSON - * @memberof ics23.InnerOp - * @instance - * @returns {Object.} JSON object - */ - InnerOp.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Decodes a TimestampedSignatureData message from the specified reader or buffer. + * @function decode + * @memberof ibc.lightclients.solomachine.v3.TimestampedSignatureData + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {ibc.lightclients.solomachine.v3.TimestampedSignatureData} TimestampedSignatureData + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TimestampedSignatureData.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.solomachine.v3.TimestampedSignatureData(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.signature_data = reader.bytes(); + break; + case 2: + message.timestamp = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - return InnerOp; - })(); + /** + * Decodes a TimestampedSignatureData message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof ibc.lightclients.solomachine.v3.TimestampedSignatureData + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {ibc.lightclients.solomachine.v3.TimestampedSignatureData} TimestampedSignatureData + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TimestampedSignatureData.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - ics23.ProofSpec = (function() { + /** + * Verifies a TimestampedSignatureData message. + * @function verify + * @memberof ibc.lightclients.solomachine.v3.TimestampedSignatureData + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TimestampedSignatureData.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.signature_data != null && message.hasOwnProperty("signature_data")) + if (!(message.signature_data && typeof message.signature_data.length === "number" || $util.isString(message.signature_data))) + return "signature_data: buffer expected"; + if (message.timestamp != null && message.hasOwnProperty("timestamp")) + if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high))) + return "timestamp: integer|Long expected"; + return null; + }; - /** - * Properties of a ProofSpec. - * @memberof ics23 - * @interface IProofSpec - * @property {ics23.ILeafOp|null} [leaf_spec] ProofSpec leaf_spec - * @property {ics23.IInnerSpec|null} [inner_spec] ProofSpec inner_spec - * @property {number|null} [max_depth] ProofSpec max_depth - * @property {number|null} [min_depth] ProofSpec min_depth - */ + /** + * Creates a TimestampedSignatureData message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof ibc.lightclients.solomachine.v3.TimestampedSignatureData + * @static + * @param {Object.} object Plain object + * @returns {ibc.lightclients.solomachine.v3.TimestampedSignatureData} TimestampedSignatureData + */ + TimestampedSignatureData.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.lightclients.solomachine.v3.TimestampedSignatureData) + return object; + var message = new $root.ibc.lightclients.solomachine.v3.TimestampedSignatureData(); + if (object.signature_data != null) + if (typeof object.signature_data === "string") + $util.base64.decode(object.signature_data, message.signature_data = $util.newBuffer($util.base64.length(object.signature_data)), 0); + else if (object.signature_data.length) + message.signature_data = object.signature_data; + if (object.timestamp != null) + if ($util.Long) + (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true; + else if (typeof object.timestamp === "string") + message.timestamp = parseInt(object.timestamp, 10); + else if (typeof object.timestamp === "number") + message.timestamp = object.timestamp; + else if (typeof object.timestamp === "object") + message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true); + return message; + }; - /** - * Constructs a new ProofSpec. - * @memberof ics23 - * @classdesc ProofSpec defines what the expected parameters are for a given proof type. - * This can be stored in the client and used to validate any incoming proofs. - * - * verify(ProofSpec, Proof) -> Proof | Error - * - * As demonstrated in tests, if we don't fix the algorithm used to calculate the - * LeafHash for a given tree, there are many possible key-value pairs that can - * generate a given hash (by interpretting the preimage differently). - * We need this for proper security, requires client knows a priori what - * tree format server uses. But not in code, rather a configuration object. - * @implements IProofSpec - * @constructor - * @param {ics23.IProofSpec=} [properties] Properties to set - */ - function ProofSpec(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Creates a plain object from a TimestampedSignatureData message. Also converts values to other types if specified. + * @function toObject + * @memberof ibc.lightclients.solomachine.v3.TimestampedSignatureData + * @static + * @param {ibc.lightclients.solomachine.v3.TimestampedSignatureData} message TimestampedSignatureData + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + TimestampedSignatureData.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + if (options.bytes === String) + object.signature_data = ""; + else { + object.signature_data = []; + if (options.bytes !== Array) + object.signature_data = $util.newBuffer(object.signature_data); + } + if ($util.Long) { + var long = new $util.Long(0, 0, true); + object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.timestamp = options.longs === String ? "0" : 0; + } + if (message.signature_data != null && message.hasOwnProperty("signature_data")) + object.signature_data = options.bytes === String ? $util.base64.encode(message.signature_data, 0, message.signature_data.length) : options.bytes === Array ? Array.prototype.slice.call(message.signature_data) : message.signature_data; + if (message.timestamp != null && message.hasOwnProperty("timestamp")) + if (typeof message.timestamp === "number") + object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp; + else + object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber(true) : message.timestamp; + return object; + }; - /** - * ProofSpec leaf_spec. - * @member {ics23.ILeafOp|null|undefined} leaf_spec - * @memberof ics23.ProofSpec - * @instance - */ - ProofSpec.prototype.leaf_spec = null; + /** + * Converts this TimestampedSignatureData to JSON. + * @function toJSON + * @memberof ibc.lightclients.solomachine.v3.TimestampedSignatureData + * @instance + * @returns {Object.} JSON object + */ + TimestampedSignatureData.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * ProofSpec inner_spec. - * @member {ics23.IInnerSpec|null|undefined} inner_spec - * @memberof ics23.ProofSpec - * @instance - */ - ProofSpec.prototype.inner_spec = null; + return TimestampedSignatureData; + })(); - /** - * ProofSpec max_depth. - * @member {number} max_depth - * @memberof ics23.ProofSpec - * @instance - */ - ProofSpec.prototype.max_depth = 0; + v3.SignBytes = (function() { - /** - * ProofSpec min_depth. - * @member {number} min_depth - * @memberof ics23.ProofSpec - * @instance - */ - ProofSpec.prototype.min_depth = 0; + /** + * Properties of a SignBytes. + * @memberof ibc.lightclients.solomachine.v3 + * @interface ISignBytes + * @property {Long|null} [sequence] SignBytes sequence + * @property {Long|null} [timestamp] SignBytes timestamp + * @property {string|null} [diversifier] SignBytes diversifier + * @property {Uint8Array|null} [path] SignBytes path + * @property {Uint8Array|null} [data] SignBytes data + */ - /** - * Encodes the specified ProofSpec message. Does not implicitly {@link ics23.ProofSpec.verify|verify} messages. - * @function encode - * @memberof ics23.ProofSpec - * @static - * @param {ics23.IProofSpec} message ProofSpec message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ProofSpec.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.leaf_spec != null && Object.hasOwnProperty.call(message, "leaf_spec")) - $root.ics23.LeafOp.encode(message.leaf_spec, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.inner_spec != null && Object.hasOwnProperty.call(message, "inner_spec")) - $root.ics23.InnerSpec.encode(message.inner_spec, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.max_depth != null && Object.hasOwnProperty.call(message, "max_depth")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.max_depth); - if (message.min_depth != null && Object.hasOwnProperty.call(message, "min_depth")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.min_depth); - return writer; - }; + /** + * Constructs a new SignBytes. + * @memberof ibc.lightclients.solomachine.v3 + * @classdesc Represents a SignBytes. + * @implements ISignBytes + * @constructor + * @param {ibc.lightclients.solomachine.v3.ISignBytes=} [properties] Properties to set + */ + function SignBytes(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Encodes the specified ProofSpec message, length delimited. Does not implicitly {@link ics23.ProofSpec.verify|verify} messages. - * @function encodeDelimited - * @memberof ics23.ProofSpec - * @static - * @param {ics23.IProofSpec} message ProofSpec message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ProofSpec.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * SignBytes sequence. + * @member {Long} sequence + * @memberof ibc.lightclients.solomachine.v3.SignBytes + * @instance + */ + SignBytes.prototype.sequence = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - /** - * Decodes a ProofSpec message from the specified reader or buffer. - * @function decode - * @memberof ics23.ProofSpec - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {ics23.ProofSpec} ProofSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ProofSpec.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ics23.ProofSpec(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.leaf_spec = $root.ics23.LeafOp.decode(reader, reader.uint32()); - break; - case 2: - message.inner_spec = $root.ics23.InnerSpec.decode(reader, reader.uint32()); - break; - case 3: - message.max_depth = reader.int32(); - break; - case 4: - message.min_depth = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * SignBytes timestamp. + * @member {Long} timestamp + * @memberof ibc.lightclients.solomachine.v3.SignBytes + * @instance + */ + SignBytes.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - /** - * Decodes a ProofSpec message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ics23.ProofSpec - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ics23.ProofSpec} ProofSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ProofSpec.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * SignBytes diversifier. + * @member {string} diversifier + * @memberof ibc.lightclients.solomachine.v3.SignBytes + * @instance + */ + SignBytes.prototype.diversifier = ""; - /** - * Verifies a ProofSpec message. - * @function verify - * @memberof ics23.ProofSpec - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ProofSpec.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.leaf_spec != null && message.hasOwnProperty("leaf_spec")) { - var error = $root.ics23.LeafOp.verify(message.leaf_spec); - if (error) - return "leaf_spec." + error; - } - if (message.inner_spec != null && message.hasOwnProperty("inner_spec")) { - var error = $root.ics23.InnerSpec.verify(message.inner_spec); - if (error) - return "inner_spec." + error; - } - if (message.max_depth != null && message.hasOwnProperty("max_depth")) - if (!$util.isInteger(message.max_depth)) - return "max_depth: integer expected"; - if (message.min_depth != null && message.hasOwnProperty("min_depth")) - if (!$util.isInteger(message.min_depth)) - return "min_depth: integer expected"; - return null; - }; + /** + * SignBytes path. + * @member {Uint8Array} path + * @memberof ibc.lightclients.solomachine.v3.SignBytes + * @instance + */ + SignBytes.prototype.path = $util.newBuffer([]); - /** - * Creates a ProofSpec message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof ics23.ProofSpec - * @static - * @param {Object.} object Plain object - * @returns {ics23.ProofSpec} ProofSpec - */ - ProofSpec.fromObject = function fromObject(object) { - if (object instanceof $root.ics23.ProofSpec) - return object; - var message = new $root.ics23.ProofSpec(); - if (object.leaf_spec != null) { - if (typeof object.leaf_spec !== "object") - throw TypeError(".ics23.ProofSpec.leaf_spec: object expected"); - message.leaf_spec = $root.ics23.LeafOp.fromObject(object.leaf_spec); - } - if (object.inner_spec != null) { - if (typeof object.inner_spec !== "object") - throw TypeError(".ics23.ProofSpec.inner_spec: object expected"); - message.inner_spec = $root.ics23.InnerSpec.fromObject(object.inner_spec); - } - if (object.max_depth != null) - message.max_depth = object.max_depth | 0; - if (object.min_depth != null) - message.min_depth = object.min_depth | 0; - return message; - }; + /** + * SignBytes data. + * @member {Uint8Array} data + * @memberof ibc.lightclients.solomachine.v3.SignBytes + * @instance + */ + SignBytes.prototype.data = $util.newBuffer([]); - /** - * Creates a plain object from a ProofSpec message. Also converts values to other types if specified. - * @function toObject - * @memberof ics23.ProofSpec - * @static - * @param {ics23.ProofSpec} message ProofSpec - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ProofSpec.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.leaf_spec = null; - object.inner_spec = null; - object.max_depth = 0; - object.min_depth = 0; - } - if (message.leaf_spec != null && message.hasOwnProperty("leaf_spec")) - object.leaf_spec = $root.ics23.LeafOp.toObject(message.leaf_spec, options); - if (message.inner_spec != null && message.hasOwnProperty("inner_spec")) - object.inner_spec = $root.ics23.InnerSpec.toObject(message.inner_spec, options); - if (message.max_depth != null && message.hasOwnProperty("max_depth")) - object.max_depth = message.max_depth; - if (message.min_depth != null && message.hasOwnProperty("min_depth")) - object.min_depth = message.min_depth; - return object; - }; + /** + * Encodes the specified SignBytes message. Does not implicitly {@link ibc.lightclients.solomachine.v3.SignBytes.verify|verify} messages. + * @function encode + * @memberof ibc.lightclients.solomachine.v3.SignBytes + * @static + * @param {ibc.lightclients.solomachine.v3.ISignBytes} message SignBytes message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SignBytes.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.sequence != null && Object.hasOwnProperty.call(message, "sequence")) + writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.sequence); + if (message.timestamp != null && Object.hasOwnProperty.call(message, "timestamp")) + writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.timestamp); + if (message.diversifier != null && Object.hasOwnProperty.call(message, "diversifier")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.diversifier); + if (message.path != null && Object.hasOwnProperty.call(message, "path")) + writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.path); + if (message.data != null && Object.hasOwnProperty.call(message, "data")) + writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.data); + return writer; + }; - /** - * Converts this ProofSpec to JSON. - * @function toJSON - * @memberof ics23.ProofSpec - * @instance - * @returns {Object.} JSON object - */ - ProofSpec.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Encodes the specified SignBytes message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v3.SignBytes.verify|verify} messages. + * @function encodeDelimited + * @memberof ibc.lightclients.solomachine.v3.SignBytes + * @static + * @param {ibc.lightclients.solomachine.v3.ISignBytes} message SignBytes message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SignBytes.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - return ProofSpec; - })(); + /** + * Decodes a SignBytes message from the specified reader or buffer. + * @function decode + * @memberof ibc.lightclients.solomachine.v3.SignBytes + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {ibc.lightclients.solomachine.v3.SignBytes} SignBytes + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SignBytes.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.solomachine.v3.SignBytes(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.sequence = reader.uint64(); + break; + case 2: + message.timestamp = reader.uint64(); + break; + case 3: + message.diversifier = reader.string(); + break; + case 4: + message.path = reader.bytes(); + break; + case 5: + message.data = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SignBytes message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof ibc.lightclients.solomachine.v3.SignBytes + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {ibc.lightclients.solomachine.v3.SignBytes} SignBytes + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SignBytes.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - ics23.InnerSpec = (function() { + /** + * Verifies a SignBytes message. + * @function verify + * @memberof ibc.lightclients.solomachine.v3.SignBytes + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SignBytes.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.sequence != null && message.hasOwnProperty("sequence")) + if (!$util.isInteger(message.sequence) && !(message.sequence && $util.isInteger(message.sequence.low) && $util.isInteger(message.sequence.high))) + return "sequence: integer|Long expected"; + if (message.timestamp != null && message.hasOwnProperty("timestamp")) + if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high))) + return "timestamp: integer|Long expected"; + if (message.diversifier != null && message.hasOwnProperty("diversifier")) + if (!$util.isString(message.diversifier)) + return "diversifier: string expected"; + if (message.path != null && message.hasOwnProperty("path")) + if (!(message.path && typeof message.path.length === "number" || $util.isString(message.path))) + return "path: buffer expected"; + if (message.data != null && message.hasOwnProperty("data")) + if (!(message.data && typeof message.data.length === "number" || $util.isString(message.data))) + return "data: buffer expected"; + return null; + }; - /** - * Properties of an InnerSpec. - * @memberof ics23 - * @interface IInnerSpec - * @property {Array.|null} [child_order] InnerSpec child_order - * @property {number|null} [child_size] InnerSpec child_size - * @property {number|null} [min_prefix_length] InnerSpec min_prefix_length - * @property {number|null} [max_prefix_length] InnerSpec max_prefix_length - * @property {Uint8Array|null} [empty_child] InnerSpec empty_child - * @property {ics23.HashOp|null} [hash] InnerSpec hash - */ + /** + * Creates a SignBytes message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof ibc.lightclients.solomachine.v3.SignBytes + * @static + * @param {Object.} object Plain object + * @returns {ibc.lightclients.solomachine.v3.SignBytes} SignBytes + */ + SignBytes.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.lightclients.solomachine.v3.SignBytes) + return object; + var message = new $root.ibc.lightclients.solomachine.v3.SignBytes(); + if (object.sequence != null) + if ($util.Long) + (message.sequence = $util.Long.fromValue(object.sequence)).unsigned = true; + else if (typeof object.sequence === "string") + message.sequence = parseInt(object.sequence, 10); + else if (typeof object.sequence === "number") + message.sequence = object.sequence; + else if (typeof object.sequence === "object") + message.sequence = new $util.LongBits(object.sequence.low >>> 0, object.sequence.high >>> 0).toNumber(true); + if (object.timestamp != null) + if ($util.Long) + (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true; + else if (typeof object.timestamp === "string") + message.timestamp = parseInt(object.timestamp, 10); + else if (typeof object.timestamp === "number") + message.timestamp = object.timestamp; + else if (typeof object.timestamp === "object") + message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true); + if (object.diversifier != null) + message.diversifier = String(object.diversifier); + if (object.path != null) + if (typeof object.path === "string") + $util.base64.decode(object.path, message.path = $util.newBuffer($util.base64.length(object.path)), 0); + else if (object.path.length) + message.path = object.path; + if (object.data != null) + if (typeof object.data === "string") + $util.base64.decode(object.data, message.data = $util.newBuffer($util.base64.length(object.data)), 0); + else if (object.data.length) + message.data = object.data; + return message; + }; - /** - * Constructs a new InnerSpec. - * @memberof ics23 - * @classdesc Represents an InnerSpec. - * @implements IInnerSpec - * @constructor - * @param {ics23.IInnerSpec=} [properties] Properties to set - */ - function InnerSpec(properties) { - this.child_order = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Creates a plain object from a SignBytes message. Also converts values to other types if specified. + * @function toObject + * @memberof ibc.lightclients.solomachine.v3.SignBytes + * @static + * @param {ibc.lightclients.solomachine.v3.SignBytes} message SignBytes + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SignBytes.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + if ($util.Long) { + var long = new $util.Long(0, 0, true); + object.sequence = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.sequence = options.longs === String ? "0" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, true); + object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.timestamp = options.longs === String ? "0" : 0; + object.diversifier = ""; + if (options.bytes === String) + object.path = ""; + else { + object.path = []; + if (options.bytes !== Array) + object.path = $util.newBuffer(object.path); + } + if (options.bytes === String) + object.data = ""; + else { + object.data = []; + if (options.bytes !== Array) + object.data = $util.newBuffer(object.data); + } + } + if (message.sequence != null && message.hasOwnProperty("sequence")) + if (typeof message.sequence === "number") + object.sequence = options.longs === String ? String(message.sequence) : message.sequence; + else + object.sequence = options.longs === String ? $util.Long.prototype.toString.call(message.sequence) : options.longs === Number ? new $util.LongBits(message.sequence.low >>> 0, message.sequence.high >>> 0).toNumber(true) : message.sequence; + if (message.timestamp != null && message.hasOwnProperty("timestamp")) + if (typeof message.timestamp === "number") + object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp; + else + object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber(true) : message.timestamp; + if (message.diversifier != null && message.hasOwnProperty("diversifier")) + object.diversifier = message.diversifier; + if (message.path != null && message.hasOwnProperty("path")) + object.path = options.bytes === String ? $util.base64.encode(message.path, 0, message.path.length) : options.bytes === Array ? Array.prototype.slice.call(message.path) : message.path; + if (message.data != null && message.hasOwnProperty("data")) + object.data = options.bytes === String ? $util.base64.encode(message.data, 0, message.data.length) : options.bytes === Array ? Array.prototype.slice.call(message.data) : message.data; + return object; + }; - /** - * InnerSpec child_order. - * @member {Array.} child_order - * @memberof ics23.InnerSpec - * @instance - */ - InnerSpec.prototype.child_order = $util.emptyArray; + /** + * Converts this SignBytes to JSON. + * @function toJSON + * @memberof ibc.lightclients.solomachine.v3.SignBytes + * @instance + * @returns {Object.} JSON object + */ + SignBytes.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * InnerSpec child_size. - * @member {number} child_size - * @memberof ics23.InnerSpec - * @instance - */ - InnerSpec.prototype.child_size = 0; + return SignBytes; + })(); - /** - * InnerSpec min_prefix_length. - * @member {number} min_prefix_length - * @memberof ics23.InnerSpec - * @instance - */ - InnerSpec.prototype.min_prefix_length = 0; + v3.HeaderData = (function() { - /** - * InnerSpec max_prefix_length. - * @member {number} max_prefix_length - * @memberof ics23.InnerSpec - * @instance - */ - InnerSpec.prototype.max_prefix_length = 0; + /** + * Properties of a HeaderData. + * @memberof ibc.lightclients.solomachine.v3 + * @interface IHeaderData + * @property {google.protobuf.IAny|null} [new_pub_key] HeaderData new_pub_key + * @property {string|null} [new_diversifier] HeaderData new_diversifier + */ - /** - * InnerSpec empty_child. - * @member {Uint8Array} empty_child - * @memberof ics23.InnerSpec - * @instance - */ - InnerSpec.prototype.empty_child = $util.newBuffer([]); + /** + * Constructs a new HeaderData. + * @memberof ibc.lightclients.solomachine.v3 + * @classdesc Represents a HeaderData. + * @implements IHeaderData + * @constructor + * @param {ibc.lightclients.solomachine.v3.IHeaderData=} [properties] Properties to set + */ + function HeaderData(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * InnerSpec hash. - * @member {ics23.HashOp} hash - * @memberof ics23.InnerSpec - * @instance - */ - InnerSpec.prototype.hash = 0; + /** + * HeaderData new_pub_key. + * @member {google.protobuf.IAny|null|undefined} new_pub_key + * @memberof ibc.lightclients.solomachine.v3.HeaderData + * @instance + */ + HeaderData.prototype.new_pub_key = null; - /** - * Encodes the specified InnerSpec message. Does not implicitly {@link ics23.InnerSpec.verify|verify} messages. - * @function encode - * @memberof ics23.InnerSpec - * @static - * @param {ics23.IInnerSpec} message InnerSpec message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - InnerSpec.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.child_order != null && message.child_order.length) { - writer.uint32(/* id 1, wireType 2 =*/10).fork(); - for (var i = 0; i < message.child_order.length; ++i) - writer.int32(message.child_order[i]); - writer.ldelim(); - } - if (message.child_size != null && Object.hasOwnProperty.call(message, "child_size")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.child_size); - if (message.min_prefix_length != null && Object.hasOwnProperty.call(message, "min_prefix_length")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.min_prefix_length); - if (message.max_prefix_length != null && Object.hasOwnProperty.call(message, "max_prefix_length")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.max_prefix_length); - if (message.empty_child != null && Object.hasOwnProperty.call(message, "empty_child")) - writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.empty_child); - if (message.hash != null && Object.hasOwnProperty.call(message, "hash")) - writer.uint32(/* id 6, wireType 0 =*/48).int32(message.hash); - return writer; - }; + /** + * HeaderData new_diversifier. + * @member {string} new_diversifier + * @memberof ibc.lightclients.solomachine.v3.HeaderData + * @instance + */ + HeaderData.prototype.new_diversifier = ""; - /** - * Encodes the specified InnerSpec message, length delimited. Does not implicitly {@link ics23.InnerSpec.verify|verify} messages. - * @function encodeDelimited - * @memberof ics23.InnerSpec - * @static - * @param {ics23.IInnerSpec} message InnerSpec message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - InnerSpec.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified HeaderData message. Does not implicitly {@link ibc.lightclients.solomachine.v3.HeaderData.verify|verify} messages. + * @function encode + * @memberof ibc.lightclients.solomachine.v3.HeaderData + * @static + * @param {ibc.lightclients.solomachine.v3.IHeaderData} message HeaderData message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + HeaderData.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.new_pub_key != null && Object.hasOwnProperty.call(message, "new_pub_key")) + $root.google.protobuf.Any.encode(message.new_pub_key, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.new_diversifier != null && Object.hasOwnProperty.call(message, "new_diversifier")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.new_diversifier); + return writer; + }; - /** - * Decodes an InnerSpec message from the specified reader or buffer. - * @function decode - * @memberof ics23.InnerSpec - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {ics23.InnerSpec} InnerSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - InnerSpec.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ics23.InnerSpec(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.child_order && message.child_order.length)) - message.child_order = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.child_order.push(reader.int32()); - } else - message.child_order.push(reader.int32()); - break; - case 2: - message.child_size = reader.int32(); - break; - case 3: - message.min_prefix_length = reader.int32(); - break; - case 4: - message.max_prefix_length = reader.int32(); - break; - case 5: - message.empty_child = reader.bytes(); - break; - case 6: - message.hash = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Encodes the specified HeaderData message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v3.HeaderData.verify|verify} messages. + * @function encodeDelimited + * @memberof ibc.lightclients.solomachine.v3.HeaderData + * @static + * @param {ibc.lightclients.solomachine.v3.IHeaderData} message HeaderData message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + HeaderData.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes an InnerSpec message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ics23.InnerSpec - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ics23.InnerSpec} InnerSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - InnerSpec.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a HeaderData message from the specified reader or buffer. + * @function decode + * @memberof ibc.lightclients.solomachine.v3.HeaderData + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {ibc.lightclients.solomachine.v3.HeaderData} HeaderData + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + HeaderData.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.solomachine.v3.HeaderData(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.new_pub_key = $root.google.protobuf.Any.decode(reader, reader.uint32()); + break; + case 2: + message.new_diversifier = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Verifies an InnerSpec message. - * @function verify - * @memberof ics23.InnerSpec - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - InnerSpec.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.child_order != null && message.hasOwnProperty("child_order")) { - if (!Array.isArray(message.child_order)) - return "child_order: array expected"; - for (var i = 0; i < message.child_order.length; ++i) - if (!$util.isInteger(message.child_order[i])) - return "child_order: integer[] expected"; - } - if (message.child_size != null && message.hasOwnProperty("child_size")) - if (!$util.isInteger(message.child_size)) - return "child_size: integer expected"; - if (message.min_prefix_length != null && message.hasOwnProperty("min_prefix_length")) - if (!$util.isInteger(message.min_prefix_length)) - return "min_prefix_length: integer expected"; - if (message.max_prefix_length != null && message.hasOwnProperty("max_prefix_length")) - if (!$util.isInteger(message.max_prefix_length)) - return "max_prefix_length: integer expected"; - if (message.empty_child != null && message.hasOwnProperty("empty_child")) - if (!(message.empty_child && typeof message.empty_child.length === "number" || $util.isString(message.empty_child))) - return "empty_child: buffer expected"; - if (message.hash != null && message.hasOwnProperty("hash")) - switch (message.hash) { - default: - return "hash: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - break; - } - return null; - }; + /** + * Decodes a HeaderData message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof ibc.lightclients.solomachine.v3.HeaderData + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {ibc.lightclients.solomachine.v3.HeaderData} HeaderData + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + HeaderData.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates an InnerSpec message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof ics23.InnerSpec - * @static - * @param {Object.} object Plain object - * @returns {ics23.InnerSpec} InnerSpec - */ - InnerSpec.fromObject = function fromObject(object) { - if (object instanceof $root.ics23.InnerSpec) - return object; - var message = new $root.ics23.InnerSpec(); - if (object.child_order) { - if (!Array.isArray(object.child_order)) - throw TypeError(".ics23.InnerSpec.child_order: array expected"); - message.child_order = []; - for (var i = 0; i < object.child_order.length; ++i) - message.child_order[i] = object.child_order[i] | 0; - } - if (object.child_size != null) - message.child_size = object.child_size | 0; - if (object.min_prefix_length != null) - message.min_prefix_length = object.min_prefix_length | 0; - if (object.max_prefix_length != null) - message.max_prefix_length = object.max_prefix_length | 0; - if (object.empty_child != null) - if (typeof object.empty_child === "string") - $util.base64.decode(object.empty_child, message.empty_child = $util.newBuffer($util.base64.length(object.empty_child)), 0); - else if (object.empty_child.length) - message.empty_child = object.empty_child; - switch (object.hash) { - case "NO_HASH": - case 0: - message.hash = 0; - break; - case "SHA256": - case 1: - message.hash = 1; - break; - case "SHA512": - case 2: - message.hash = 2; - break; - case "KECCAK": - case 3: - message.hash = 3; - break; - case "RIPEMD160": - case 4: - message.hash = 4; - break; - case "BITCOIN": - case 5: - message.hash = 5; - break; - } - return message; - }; + /** + * Verifies a HeaderData message. + * @function verify + * @memberof ibc.lightclients.solomachine.v3.HeaderData + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + HeaderData.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.new_pub_key != null && message.hasOwnProperty("new_pub_key")) { + var error = $root.google.protobuf.Any.verify(message.new_pub_key); + if (error) + return "new_pub_key." + error; + } + if (message.new_diversifier != null && message.hasOwnProperty("new_diversifier")) + if (!$util.isString(message.new_diversifier)) + return "new_diversifier: string expected"; + return null; + }; - /** - * Creates a plain object from an InnerSpec message. Also converts values to other types if specified. - * @function toObject - * @memberof ics23.InnerSpec - * @static - * @param {ics23.InnerSpec} message InnerSpec - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - InnerSpec.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.child_order = []; - if (options.defaults) { - object.child_size = 0; - object.min_prefix_length = 0; - object.max_prefix_length = 0; - if (options.bytes === String) - object.empty_child = ""; - else { - object.empty_child = []; - if (options.bytes !== Array) - object.empty_child = $util.newBuffer(object.empty_child); - } - object.hash = options.enums === String ? "NO_HASH" : 0; - } - if (message.child_order && message.child_order.length) { - object.child_order = []; - for (var j = 0; j < message.child_order.length; ++j) - object.child_order[j] = message.child_order[j]; - } - if (message.child_size != null && message.hasOwnProperty("child_size")) - object.child_size = message.child_size; - if (message.min_prefix_length != null && message.hasOwnProperty("min_prefix_length")) - object.min_prefix_length = message.min_prefix_length; - if (message.max_prefix_length != null && message.hasOwnProperty("max_prefix_length")) - object.max_prefix_length = message.max_prefix_length; - if (message.empty_child != null && message.hasOwnProperty("empty_child")) - object.empty_child = options.bytes === String ? $util.base64.encode(message.empty_child, 0, message.empty_child.length) : options.bytes === Array ? Array.prototype.slice.call(message.empty_child) : message.empty_child; - if (message.hash != null && message.hasOwnProperty("hash")) - object.hash = options.enums === String ? $root.ics23.HashOp[message.hash] : message.hash; - return object; - }; + /** + * Creates a HeaderData message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof ibc.lightclients.solomachine.v3.HeaderData + * @static + * @param {Object.} object Plain object + * @returns {ibc.lightclients.solomachine.v3.HeaderData} HeaderData + */ + HeaderData.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.lightclients.solomachine.v3.HeaderData) + return object; + var message = new $root.ibc.lightclients.solomachine.v3.HeaderData(); + if (object.new_pub_key != null) { + if (typeof object.new_pub_key !== "object") + throw TypeError(".ibc.lightclients.solomachine.v3.HeaderData.new_pub_key: object expected"); + message.new_pub_key = $root.google.protobuf.Any.fromObject(object.new_pub_key); + } + if (object.new_diversifier != null) + message.new_diversifier = String(object.new_diversifier); + return message; + }; - /** - * Converts this InnerSpec to JSON. - * @function toJSON - * @memberof ics23.InnerSpec - * @instance - * @returns {Object.} JSON object - */ - InnerSpec.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from a HeaderData message. Also converts values to other types if specified. + * @function toObject + * @memberof ibc.lightclients.solomachine.v3.HeaderData + * @static + * @param {ibc.lightclients.solomachine.v3.HeaderData} message HeaderData + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + HeaderData.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.new_pub_key = null; + object.new_diversifier = ""; + } + if (message.new_pub_key != null && message.hasOwnProperty("new_pub_key")) + object.new_pub_key = $root.google.protobuf.Any.toObject(message.new_pub_key, options); + if (message.new_diversifier != null && message.hasOwnProperty("new_diversifier")) + object.new_diversifier = message.new_diversifier; + return object; + }; - return InnerSpec; - })(); + /** + * Converts this HeaderData to JSON. + * @function toJSON + * @memberof ibc.lightclients.solomachine.v3.HeaderData + * @instance + * @returns {Object.} JSON object + */ + HeaderData.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - ics23.BatchProof = (function() { + return HeaderData; + })(); - /** - * Properties of a BatchProof. - * @memberof ics23 - * @interface IBatchProof - * @property {Array.|null} [entries] BatchProof entries - */ + return v3; + })(); - /** - * Constructs a new BatchProof. - * @memberof ics23 - * @classdesc Represents a BatchProof. - * @implements IBatchProof - * @constructor - * @param {ics23.IBatchProof=} [properties] Properties to set - */ - function BatchProof(properties) { - this.entries = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + return solomachine; + })(); - /** - * BatchProof entries. - * @member {Array.} entries - * @memberof ics23.BatchProof - * @instance - */ - BatchProof.prototype.entries = $util.emptyArray; + lightclients.tendermint = (function() { - /** - * Encodes the specified BatchProof message. Does not implicitly {@link ics23.BatchProof.verify|verify} messages. - * @function encode - * @memberof ics23.BatchProof - * @static - * @param {ics23.IBatchProof} message BatchProof message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - BatchProof.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.entries != null && message.entries.length) - for (var i = 0; i < message.entries.length; ++i) - $root.ics23.BatchEntry.encode(message.entries[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; + /** + * Namespace tendermint. + * @memberof ibc.lightclients + * @namespace + */ + var tendermint = {}; - /** - * Encodes the specified BatchProof message, length delimited. Does not implicitly {@link ics23.BatchProof.verify|verify} messages. - * @function encodeDelimited - * @memberof ics23.BatchProof - * @static - * @param {ics23.IBatchProof} message BatchProof message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - BatchProof.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + tendermint.v1 = (function() { - /** - * Decodes a BatchProof message from the specified reader or buffer. - * @function decode - * @memberof ics23.BatchProof - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {ics23.BatchProof} BatchProof - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - BatchProof.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ics23.BatchProof(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.entries && message.entries.length)) - message.entries = []; - message.entries.push($root.ics23.BatchEntry.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Namespace v1. + * @memberof ibc.lightclients.tendermint + * @namespace + */ + var v1 = {}; - /** - * Decodes a BatchProof message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ics23.BatchProof - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ics23.BatchProof} BatchProof - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - BatchProof.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + v1.ClientState = (function() { - /** - * Verifies a BatchProof message. - * @function verify - * @memberof ics23.BatchProof - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - BatchProof.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.entries != null && message.hasOwnProperty("entries")) { - if (!Array.isArray(message.entries)) - return "entries: array expected"; - for (var i = 0; i < message.entries.length; ++i) { - var error = $root.ics23.BatchEntry.verify(message.entries[i]); - if (error) - return "entries." + error; - } - } - return null; - }; + /** + * Properties of a ClientState. + * @memberof ibc.lightclients.tendermint.v1 + * @interface IClientState + * @property {string|null} [chain_id] ClientState chain_id + * @property {ibc.lightclients.tendermint.v1.IFraction|null} [trust_level] ClientState trust_level + * @property {google.protobuf.IDuration|null} [trusting_period] ClientState trusting_period + * @property {google.protobuf.IDuration|null} [unbonding_period] ClientState unbonding_period + * @property {google.protobuf.IDuration|null} [max_clock_drift] ClientState max_clock_drift + * @property {ibc.core.client.v1.IHeight|null} [frozen_height] ClientState frozen_height + * @property {ibc.core.client.v1.IHeight|null} [latest_height] ClientState latest_height + * @property {Array.|null} [proof_specs] ClientState proof_specs + * @property {Array.|null} [upgrade_path] ClientState upgrade_path + * @property {boolean|null} [allow_update_after_expiry] ClientState allow_update_after_expiry + * @property {boolean|null} [allow_update_after_misbehaviour] ClientState allow_update_after_misbehaviour + */ - /** - * Creates a BatchProof message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof ics23.BatchProof - * @static - * @param {Object.} object Plain object - * @returns {ics23.BatchProof} BatchProof - */ - BatchProof.fromObject = function fromObject(object) { - if (object instanceof $root.ics23.BatchProof) - return object; - var message = new $root.ics23.BatchProof(); - if (object.entries) { - if (!Array.isArray(object.entries)) - throw TypeError(".ics23.BatchProof.entries: array expected"); - message.entries = []; - for (var i = 0; i < object.entries.length; ++i) { - if (typeof object.entries[i] !== "object") - throw TypeError(".ics23.BatchProof.entries: object expected"); - message.entries[i] = $root.ics23.BatchEntry.fromObject(object.entries[i]); - } - } - return message; - }; + /** + * Constructs a new ClientState. + * @memberof ibc.lightclients.tendermint.v1 + * @classdesc Represents a ClientState. + * @implements IClientState + * @constructor + * @param {ibc.lightclients.tendermint.v1.IClientState=} [properties] Properties to set + */ + function ClientState(properties) { + this.proof_specs = []; + this.upgrade_path = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Creates a plain object from a BatchProof message. Also converts values to other types if specified. - * @function toObject - * @memberof ics23.BatchProof - * @static - * @param {ics23.BatchProof} message BatchProof - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - BatchProof.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.entries = []; - if (message.entries && message.entries.length) { - object.entries = []; - for (var j = 0; j < message.entries.length; ++j) - object.entries[j] = $root.ics23.BatchEntry.toObject(message.entries[j], options); - } - return object; - }; + /** + * ClientState chain_id. + * @member {string} chain_id + * @memberof ibc.lightclients.tendermint.v1.ClientState + * @instance + */ + ClientState.prototype.chain_id = ""; - /** - * Converts this BatchProof to JSON. - * @function toJSON - * @memberof ics23.BatchProof - * @instance - * @returns {Object.} JSON object - */ - BatchProof.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * ClientState trust_level. + * @member {ibc.lightclients.tendermint.v1.IFraction|null|undefined} trust_level + * @memberof ibc.lightclients.tendermint.v1.ClientState + * @instance + */ + ClientState.prototype.trust_level = null; - return BatchProof; - })(); + /** + * ClientState trusting_period. + * @member {google.protobuf.IDuration|null|undefined} trusting_period + * @memberof ibc.lightclients.tendermint.v1.ClientState + * @instance + */ + ClientState.prototype.trusting_period = null; - ics23.BatchEntry = (function() { + /** + * ClientState unbonding_period. + * @member {google.protobuf.IDuration|null|undefined} unbonding_period + * @memberof ibc.lightclients.tendermint.v1.ClientState + * @instance + */ + ClientState.prototype.unbonding_period = null; - /** - * Properties of a BatchEntry. - * @memberof ics23 - * @interface IBatchEntry - * @property {ics23.IExistenceProof|null} [exist] BatchEntry exist - * @property {ics23.INonExistenceProof|null} [nonexist] BatchEntry nonexist - */ + /** + * ClientState max_clock_drift. + * @member {google.protobuf.IDuration|null|undefined} max_clock_drift + * @memberof ibc.lightclients.tendermint.v1.ClientState + * @instance + */ + ClientState.prototype.max_clock_drift = null; - /** - * Constructs a new BatchEntry. - * @memberof ics23 - * @classdesc Represents a BatchEntry. - * @implements IBatchEntry - * @constructor - * @param {ics23.IBatchEntry=} [properties] Properties to set - */ - function BatchEntry(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * ClientState frozen_height. + * @member {ibc.core.client.v1.IHeight|null|undefined} frozen_height + * @memberof ibc.lightclients.tendermint.v1.ClientState + * @instance + */ + ClientState.prototype.frozen_height = null; - /** - * BatchEntry exist. - * @member {ics23.IExistenceProof|null|undefined} exist - * @memberof ics23.BatchEntry - * @instance - */ - BatchEntry.prototype.exist = null; + /** + * ClientState latest_height. + * @member {ibc.core.client.v1.IHeight|null|undefined} latest_height + * @memberof ibc.lightclients.tendermint.v1.ClientState + * @instance + */ + ClientState.prototype.latest_height = null; - /** - * BatchEntry nonexist. - * @member {ics23.INonExistenceProof|null|undefined} nonexist - * @memberof ics23.BatchEntry - * @instance - */ - BatchEntry.prototype.nonexist = null; + /** + * ClientState proof_specs. + * @member {Array.} proof_specs + * @memberof ibc.lightclients.tendermint.v1.ClientState + * @instance + */ + ClientState.prototype.proof_specs = $util.emptyArray; - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + /** + * ClientState upgrade_path. + * @member {Array.} upgrade_path + * @memberof ibc.lightclients.tendermint.v1.ClientState + * @instance + */ + ClientState.prototype.upgrade_path = $util.emptyArray; - /** - * BatchEntry proof. - * @member {"exist"|"nonexist"|undefined} proof - * @memberof ics23.BatchEntry - * @instance - */ - Object.defineProperty(BatchEntry.prototype, "proof", { - get: $util.oneOfGetter($oneOfFields = ["exist", "nonexist"]), - set: $util.oneOfSetter($oneOfFields) - }); + /** + * ClientState allow_update_after_expiry. + * @member {boolean} allow_update_after_expiry + * @memberof ibc.lightclients.tendermint.v1.ClientState + * @instance + */ + ClientState.prototype.allow_update_after_expiry = false; - /** - * Encodes the specified BatchEntry message. Does not implicitly {@link ics23.BatchEntry.verify|verify} messages. - * @function encode - * @memberof ics23.BatchEntry - * @static - * @param {ics23.IBatchEntry} message BatchEntry message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - BatchEntry.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.exist != null && Object.hasOwnProperty.call(message, "exist")) - $root.ics23.ExistenceProof.encode(message.exist, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nonexist != null && Object.hasOwnProperty.call(message, "nonexist")) - $root.ics23.NonExistenceProof.encode(message.nonexist, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; + /** + * ClientState allow_update_after_misbehaviour. + * @member {boolean} allow_update_after_misbehaviour + * @memberof ibc.lightclients.tendermint.v1.ClientState + * @instance + */ + ClientState.prototype.allow_update_after_misbehaviour = false; - /** - * Encodes the specified BatchEntry message, length delimited. Does not implicitly {@link ics23.BatchEntry.verify|verify} messages. - * @function encodeDelimited - * @memberof ics23.BatchEntry - * @static - * @param {ics23.IBatchEntry} message BatchEntry message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - BatchEntry.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified ClientState message. Does not implicitly {@link ibc.lightclients.tendermint.v1.ClientState.verify|verify} messages. + * @function encode + * @memberof ibc.lightclients.tendermint.v1.ClientState + * @static + * @param {ibc.lightclients.tendermint.v1.IClientState} message ClientState message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ClientState.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.chain_id != null && Object.hasOwnProperty.call(message, "chain_id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.chain_id); + if (message.trust_level != null && Object.hasOwnProperty.call(message, "trust_level")) + $root.ibc.lightclients.tendermint.v1.Fraction.encode(message.trust_level, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.trusting_period != null && Object.hasOwnProperty.call(message, "trusting_period")) + $root.google.protobuf.Duration.encode(message.trusting_period, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.unbonding_period != null && Object.hasOwnProperty.call(message, "unbonding_period")) + $root.google.protobuf.Duration.encode(message.unbonding_period, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.max_clock_drift != null && Object.hasOwnProperty.call(message, "max_clock_drift")) + $root.google.protobuf.Duration.encode(message.max_clock_drift, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.frozen_height != null && Object.hasOwnProperty.call(message, "frozen_height")) + $root.ibc.core.client.v1.Height.encode(message.frozen_height, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.latest_height != null && Object.hasOwnProperty.call(message, "latest_height")) + $root.ibc.core.client.v1.Height.encode(message.latest_height, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.proof_specs != null && message.proof_specs.length) + for (var i = 0; i < message.proof_specs.length; ++i) + $root.cosmos.ics23.v1.ProofSpec.encode(message.proof_specs[i], writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.upgrade_path != null && message.upgrade_path.length) + for (var i = 0; i < message.upgrade_path.length; ++i) + writer.uint32(/* id 9, wireType 2 =*/74).string(message.upgrade_path[i]); + if (message.allow_update_after_expiry != null && Object.hasOwnProperty.call(message, "allow_update_after_expiry")) + writer.uint32(/* id 10, wireType 0 =*/80).bool(message.allow_update_after_expiry); + if (message.allow_update_after_misbehaviour != null && Object.hasOwnProperty.call(message, "allow_update_after_misbehaviour")) + writer.uint32(/* id 11, wireType 0 =*/88).bool(message.allow_update_after_misbehaviour); + return writer; + }; - /** - * Decodes a BatchEntry message from the specified reader or buffer. - * @function decode - * @memberof ics23.BatchEntry - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {ics23.BatchEntry} BatchEntry - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - BatchEntry.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ics23.BatchEntry(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.exist = $root.ics23.ExistenceProof.decode(reader, reader.uint32()); - break; - case 2: - message.nonexist = $root.ics23.NonExistenceProof.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Encodes the specified ClientState message, length delimited. Does not implicitly {@link ibc.lightclients.tendermint.v1.ClientState.verify|verify} messages. + * @function encodeDelimited + * @memberof ibc.lightclients.tendermint.v1.ClientState + * @static + * @param {ibc.lightclients.tendermint.v1.IClientState} message ClientState message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ClientState.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a BatchEntry message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ics23.BatchEntry - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ics23.BatchEntry} BatchEntry - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - BatchEntry.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a ClientState message from the specified reader or buffer. + * @function decode + * @memberof ibc.lightclients.tendermint.v1.ClientState + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {ibc.lightclients.tendermint.v1.ClientState} ClientState + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ClientState.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.tendermint.v1.ClientState(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.chain_id = reader.string(); + break; + case 2: + message.trust_level = $root.ibc.lightclients.tendermint.v1.Fraction.decode(reader, reader.uint32()); + break; + case 3: + message.trusting_period = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + case 4: + message.unbonding_period = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + case 5: + message.max_clock_drift = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + case 6: + message.frozen_height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); + break; + case 7: + message.latest_height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); + break; + case 8: + if (!(message.proof_specs && message.proof_specs.length)) + message.proof_specs = []; + message.proof_specs.push($root.cosmos.ics23.v1.ProofSpec.decode(reader, reader.uint32())); + break; + case 9: + if (!(message.upgrade_path && message.upgrade_path.length)) + message.upgrade_path = []; + message.upgrade_path.push(reader.string()); + break; + case 10: + message.allow_update_after_expiry = reader.bool(); + break; + case 11: + message.allow_update_after_misbehaviour = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Verifies a BatchEntry message. - * @function verify - * @memberof ics23.BatchEntry - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - BatchEntry.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.exist != null && message.hasOwnProperty("exist")) { - properties.proof = 1; - { - var error = $root.ics23.ExistenceProof.verify(message.exist); - if (error) - return "exist." + error; - } - } - if (message.nonexist != null && message.hasOwnProperty("nonexist")) { - if (properties.proof === 1) - return "proof: multiple values"; - properties.proof = 1; - { - var error = $root.ics23.NonExistenceProof.verify(message.nonexist); - if (error) - return "nonexist." + error; - } - } - return null; - }; + /** + * Decodes a ClientState message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof ibc.lightclients.tendermint.v1.ClientState + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {ibc.lightclients.tendermint.v1.ClientState} ClientState + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ClientState.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a BatchEntry message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof ics23.BatchEntry - * @static - * @param {Object.} object Plain object - * @returns {ics23.BatchEntry} BatchEntry - */ - BatchEntry.fromObject = function fromObject(object) { - if (object instanceof $root.ics23.BatchEntry) - return object; - var message = new $root.ics23.BatchEntry(); - if (object.exist != null) { - if (typeof object.exist !== "object") - throw TypeError(".ics23.BatchEntry.exist: object expected"); - message.exist = $root.ics23.ExistenceProof.fromObject(object.exist); - } - if (object.nonexist != null) { - if (typeof object.nonexist !== "object") - throw TypeError(".ics23.BatchEntry.nonexist: object expected"); - message.nonexist = $root.ics23.NonExistenceProof.fromObject(object.nonexist); - } - return message; - }; + /** + * Verifies a ClientState message. + * @function verify + * @memberof ibc.lightclients.tendermint.v1.ClientState + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ClientState.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.chain_id != null && message.hasOwnProperty("chain_id")) + if (!$util.isString(message.chain_id)) + return "chain_id: string expected"; + if (message.trust_level != null && message.hasOwnProperty("trust_level")) { + var error = $root.ibc.lightclients.tendermint.v1.Fraction.verify(message.trust_level); + if (error) + return "trust_level." + error; + } + if (message.trusting_period != null && message.hasOwnProperty("trusting_period")) { + var error = $root.google.protobuf.Duration.verify(message.trusting_period); + if (error) + return "trusting_period." + error; + } + if (message.unbonding_period != null && message.hasOwnProperty("unbonding_period")) { + var error = $root.google.protobuf.Duration.verify(message.unbonding_period); + if (error) + return "unbonding_period." + error; + } + if (message.max_clock_drift != null && message.hasOwnProperty("max_clock_drift")) { + var error = $root.google.protobuf.Duration.verify(message.max_clock_drift); + if (error) + return "max_clock_drift." + error; + } + if (message.frozen_height != null && message.hasOwnProperty("frozen_height")) { + var error = $root.ibc.core.client.v1.Height.verify(message.frozen_height); + if (error) + return "frozen_height." + error; + } + if (message.latest_height != null && message.hasOwnProperty("latest_height")) { + var error = $root.ibc.core.client.v1.Height.verify(message.latest_height); + if (error) + return "latest_height." + error; + } + if (message.proof_specs != null && message.hasOwnProperty("proof_specs")) { + if (!Array.isArray(message.proof_specs)) + return "proof_specs: array expected"; + for (var i = 0; i < message.proof_specs.length; ++i) { + var error = $root.cosmos.ics23.v1.ProofSpec.verify(message.proof_specs[i]); + if (error) + return "proof_specs." + error; + } + } + if (message.upgrade_path != null && message.hasOwnProperty("upgrade_path")) { + if (!Array.isArray(message.upgrade_path)) + return "upgrade_path: array expected"; + for (var i = 0; i < message.upgrade_path.length; ++i) + if (!$util.isString(message.upgrade_path[i])) + return "upgrade_path: string[] expected"; + } + if (message.allow_update_after_expiry != null && message.hasOwnProperty("allow_update_after_expiry")) + if (typeof message.allow_update_after_expiry !== "boolean") + return "allow_update_after_expiry: boolean expected"; + if (message.allow_update_after_misbehaviour != null && message.hasOwnProperty("allow_update_after_misbehaviour")) + if (typeof message.allow_update_after_misbehaviour !== "boolean") + return "allow_update_after_misbehaviour: boolean expected"; + return null; + }; - /** - * Creates a plain object from a BatchEntry message. Also converts values to other types if specified. - * @function toObject - * @memberof ics23.BatchEntry - * @static - * @param {ics23.BatchEntry} message BatchEntry - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - BatchEntry.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (message.exist != null && message.hasOwnProperty("exist")) { - object.exist = $root.ics23.ExistenceProof.toObject(message.exist, options); - if (options.oneofs) - object.proof = "exist"; - } - if (message.nonexist != null && message.hasOwnProperty("nonexist")) { - object.nonexist = $root.ics23.NonExistenceProof.toObject(message.nonexist, options); - if (options.oneofs) - object.proof = "nonexist"; - } - return object; - }; + /** + * Creates a ClientState message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof ibc.lightclients.tendermint.v1.ClientState + * @static + * @param {Object.} object Plain object + * @returns {ibc.lightclients.tendermint.v1.ClientState} ClientState + */ + ClientState.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.lightclients.tendermint.v1.ClientState) + return object; + var message = new $root.ibc.lightclients.tendermint.v1.ClientState(); + if (object.chain_id != null) + message.chain_id = String(object.chain_id); + if (object.trust_level != null) { + if (typeof object.trust_level !== "object") + throw TypeError(".ibc.lightclients.tendermint.v1.ClientState.trust_level: object expected"); + message.trust_level = $root.ibc.lightclients.tendermint.v1.Fraction.fromObject(object.trust_level); + } + if (object.trusting_period != null) { + if (typeof object.trusting_period !== "object") + throw TypeError(".ibc.lightclients.tendermint.v1.ClientState.trusting_period: object expected"); + message.trusting_period = $root.google.protobuf.Duration.fromObject(object.trusting_period); + } + if (object.unbonding_period != null) { + if (typeof object.unbonding_period !== "object") + throw TypeError(".ibc.lightclients.tendermint.v1.ClientState.unbonding_period: object expected"); + message.unbonding_period = $root.google.protobuf.Duration.fromObject(object.unbonding_period); + } + if (object.max_clock_drift != null) { + if (typeof object.max_clock_drift !== "object") + throw TypeError(".ibc.lightclients.tendermint.v1.ClientState.max_clock_drift: object expected"); + message.max_clock_drift = $root.google.protobuf.Duration.fromObject(object.max_clock_drift); + } + if (object.frozen_height != null) { + if (typeof object.frozen_height !== "object") + throw TypeError(".ibc.lightclients.tendermint.v1.ClientState.frozen_height: object expected"); + message.frozen_height = $root.ibc.core.client.v1.Height.fromObject(object.frozen_height); + } + if (object.latest_height != null) { + if (typeof object.latest_height !== "object") + throw TypeError(".ibc.lightclients.tendermint.v1.ClientState.latest_height: object expected"); + message.latest_height = $root.ibc.core.client.v1.Height.fromObject(object.latest_height); + } + if (object.proof_specs) { + if (!Array.isArray(object.proof_specs)) + throw TypeError(".ibc.lightclients.tendermint.v1.ClientState.proof_specs: array expected"); + message.proof_specs = []; + for (var i = 0; i < object.proof_specs.length; ++i) { + if (typeof object.proof_specs[i] !== "object") + throw TypeError(".ibc.lightclients.tendermint.v1.ClientState.proof_specs: object expected"); + message.proof_specs[i] = $root.cosmos.ics23.v1.ProofSpec.fromObject(object.proof_specs[i]); + } + } + if (object.upgrade_path) { + if (!Array.isArray(object.upgrade_path)) + throw TypeError(".ibc.lightclients.tendermint.v1.ClientState.upgrade_path: array expected"); + message.upgrade_path = []; + for (var i = 0; i < object.upgrade_path.length; ++i) + message.upgrade_path[i] = String(object.upgrade_path[i]); + } + if (object.allow_update_after_expiry != null) + message.allow_update_after_expiry = Boolean(object.allow_update_after_expiry); + if (object.allow_update_after_misbehaviour != null) + message.allow_update_after_misbehaviour = Boolean(object.allow_update_after_misbehaviour); + return message; + }; - /** - * Converts this BatchEntry to JSON. - * @function toJSON - * @memberof ics23.BatchEntry - * @instance - * @returns {Object.} JSON object - */ - BatchEntry.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from a ClientState message. Also converts values to other types if specified. + * @function toObject + * @memberof ibc.lightclients.tendermint.v1.ClientState + * @static + * @param {ibc.lightclients.tendermint.v1.ClientState} message ClientState + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ClientState.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.proof_specs = []; + object.upgrade_path = []; + } + if (options.defaults) { + object.chain_id = ""; + object.trust_level = null; + object.trusting_period = null; + object.unbonding_period = null; + object.max_clock_drift = null; + object.frozen_height = null; + object.latest_height = null; + object.allow_update_after_expiry = false; + object.allow_update_after_misbehaviour = false; + } + if (message.chain_id != null && message.hasOwnProperty("chain_id")) + object.chain_id = message.chain_id; + if (message.trust_level != null && message.hasOwnProperty("trust_level")) + object.trust_level = $root.ibc.lightclients.tendermint.v1.Fraction.toObject(message.trust_level, options); + if (message.trusting_period != null && message.hasOwnProperty("trusting_period")) + object.trusting_period = $root.google.protobuf.Duration.toObject(message.trusting_period, options); + if (message.unbonding_period != null && message.hasOwnProperty("unbonding_period")) + object.unbonding_period = $root.google.protobuf.Duration.toObject(message.unbonding_period, options); + if (message.max_clock_drift != null && message.hasOwnProperty("max_clock_drift")) + object.max_clock_drift = $root.google.protobuf.Duration.toObject(message.max_clock_drift, options); + if (message.frozen_height != null && message.hasOwnProperty("frozen_height")) + object.frozen_height = $root.ibc.core.client.v1.Height.toObject(message.frozen_height, options); + if (message.latest_height != null && message.hasOwnProperty("latest_height")) + object.latest_height = $root.ibc.core.client.v1.Height.toObject(message.latest_height, options); + if (message.proof_specs && message.proof_specs.length) { + object.proof_specs = []; + for (var j = 0; j < message.proof_specs.length; ++j) + object.proof_specs[j] = $root.cosmos.ics23.v1.ProofSpec.toObject(message.proof_specs[j], options); + } + if (message.upgrade_path && message.upgrade_path.length) { + object.upgrade_path = []; + for (var j = 0; j < message.upgrade_path.length; ++j) + object.upgrade_path[j] = message.upgrade_path[j]; + } + if (message.allow_update_after_expiry != null && message.hasOwnProperty("allow_update_after_expiry")) + object.allow_update_after_expiry = message.allow_update_after_expiry; + if (message.allow_update_after_misbehaviour != null && message.hasOwnProperty("allow_update_after_misbehaviour")) + object.allow_update_after_misbehaviour = message.allow_update_after_misbehaviour; + return object; + }; - return BatchEntry; - })(); + /** + * Converts this ClientState to JSON. + * @function toJSON + * @memberof ibc.lightclients.tendermint.v1.ClientState + * @instance + * @returns {Object.} JSON object + */ + ClientState.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - ics23.CompressedBatchProof = (function() { + return ClientState; + })(); - /** - * Properties of a CompressedBatchProof. - * @memberof ics23 - * @interface ICompressedBatchProof - * @property {Array.|null} [entries] CompressedBatchProof entries - * @property {Array.|null} [lookup_inners] CompressedBatchProof lookup_inners - */ + v1.ConsensusState = (function() { - /** - * Constructs a new CompressedBatchProof. - * @memberof ics23 - * @classdesc Represents a CompressedBatchProof. - * @implements ICompressedBatchProof - * @constructor - * @param {ics23.ICompressedBatchProof=} [properties] Properties to set - */ - function CompressedBatchProof(properties) { - this.entries = []; - this.lookup_inners = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Properties of a ConsensusState. + * @memberof ibc.lightclients.tendermint.v1 + * @interface IConsensusState + * @property {google.protobuf.ITimestamp|null} [timestamp] ConsensusState timestamp + * @property {ibc.core.commitment.v1.IMerkleRoot|null} [root] ConsensusState root + * @property {Uint8Array|null} [next_validators_hash] ConsensusState next_validators_hash + */ - /** - * CompressedBatchProof entries. - * @member {Array.} entries - * @memberof ics23.CompressedBatchProof - * @instance - */ - CompressedBatchProof.prototype.entries = $util.emptyArray; + /** + * Constructs a new ConsensusState. + * @memberof ibc.lightclients.tendermint.v1 + * @classdesc Represents a ConsensusState. + * @implements IConsensusState + * @constructor + * @param {ibc.lightclients.tendermint.v1.IConsensusState=} [properties] Properties to set + */ + function ConsensusState(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * CompressedBatchProof lookup_inners. - * @member {Array.} lookup_inners - * @memberof ics23.CompressedBatchProof - * @instance - */ - CompressedBatchProof.prototype.lookup_inners = $util.emptyArray; + /** + * ConsensusState timestamp. + * @member {google.protobuf.ITimestamp|null|undefined} timestamp + * @memberof ibc.lightclients.tendermint.v1.ConsensusState + * @instance + */ + ConsensusState.prototype.timestamp = null; - /** - * Encodes the specified CompressedBatchProof message. Does not implicitly {@link ics23.CompressedBatchProof.verify|verify} messages. - * @function encode - * @memberof ics23.CompressedBatchProof - * @static - * @param {ics23.ICompressedBatchProof} message CompressedBatchProof message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CompressedBatchProof.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.entries != null && message.entries.length) - for (var i = 0; i < message.entries.length; ++i) - $root.ics23.CompressedBatchEntry.encode(message.entries[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.lookup_inners != null && message.lookup_inners.length) - for (var i = 0; i < message.lookup_inners.length; ++i) - $root.ics23.InnerOp.encode(message.lookup_inners[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; + /** + * ConsensusState root. + * @member {ibc.core.commitment.v1.IMerkleRoot|null|undefined} root + * @memberof ibc.lightclients.tendermint.v1.ConsensusState + * @instance + */ + ConsensusState.prototype.root = null; - /** - * Encodes the specified CompressedBatchProof message, length delimited. Does not implicitly {@link ics23.CompressedBatchProof.verify|verify} messages. - * @function encodeDelimited - * @memberof ics23.CompressedBatchProof - * @static - * @param {ics23.ICompressedBatchProof} message CompressedBatchProof message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CompressedBatchProof.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * ConsensusState next_validators_hash. + * @member {Uint8Array} next_validators_hash + * @memberof ibc.lightclients.tendermint.v1.ConsensusState + * @instance + */ + ConsensusState.prototype.next_validators_hash = $util.newBuffer([]); - /** - * Decodes a CompressedBatchProof message from the specified reader or buffer. - * @function decode - * @memberof ics23.CompressedBatchProof - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {ics23.CompressedBatchProof} CompressedBatchProof - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CompressedBatchProof.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ics23.CompressedBatchProof(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.entries && message.entries.length)) - message.entries = []; - message.entries.push($root.ics23.CompressedBatchEntry.decode(reader, reader.uint32())); - break; - case 2: - if (!(message.lookup_inners && message.lookup_inners.length)) - message.lookup_inners = []; - message.lookup_inners.push($root.ics23.InnerOp.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Encodes the specified ConsensusState message. Does not implicitly {@link ibc.lightclients.tendermint.v1.ConsensusState.verify|verify} messages. + * @function encode + * @memberof ibc.lightclients.tendermint.v1.ConsensusState + * @static + * @param {ibc.lightclients.tendermint.v1.IConsensusState} message ConsensusState message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ConsensusState.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.timestamp != null && Object.hasOwnProperty.call(message, "timestamp")) + $root.google.protobuf.Timestamp.encode(message.timestamp, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.root != null && Object.hasOwnProperty.call(message, "root")) + $root.ibc.core.commitment.v1.MerkleRoot.encode(message.root, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.next_validators_hash != null && Object.hasOwnProperty.call(message, "next_validators_hash")) + writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.next_validators_hash); + return writer; + }; - /** - * Decodes a CompressedBatchProof message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ics23.CompressedBatchProof - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ics23.CompressedBatchProof} CompressedBatchProof - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CompressedBatchProof.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Encodes the specified ConsensusState message, length delimited. Does not implicitly {@link ibc.lightclients.tendermint.v1.ConsensusState.verify|verify} messages. + * @function encodeDelimited + * @memberof ibc.lightclients.tendermint.v1.ConsensusState + * @static + * @param {ibc.lightclients.tendermint.v1.IConsensusState} message ConsensusState message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ConsensusState.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Verifies a CompressedBatchProof message. - * @function verify - * @memberof ics23.CompressedBatchProof - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CompressedBatchProof.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.entries != null && message.hasOwnProperty("entries")) { - if (!Array.isArray(message.entries)) - return "entries: array expected"; - for (var i = 0; i < message.entries.length; ++i) { - var error = $root.ics23.CompressedBatchEntry.verify(message.entries[i]); - if (error) - return "entries." + error; - } - } - if (message.lookup_inners != null && message.hasOwnProperty("lookup_inners")) { - if (!Array.isArray(message.lookup_inners)) - return "lookup_inners: array expected"; - for (var i = 0; i < message.lookup_inners.length; ++i) { - var error = $root.ics23.InnerOp.verify(message.lookup_inners[i]); - if (error) - return "lookup_inners." + error; - } - } - return null; - }; + /** + * Decodes a ConsensusState message from the specified reader or buffer. + * @function decode + * @memberof ibc.lightclients.tendermint.v1.ConsensusState + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {ibc.lightclients.tendermint.v1.ConsensusState} ConsensusState + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ConsensusState.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.tendermint.v1.ConsensusState(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.timestamp = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 2: + message.root = $root.ibc.core.commitment.v1.MerkleRoot.decode(reader, reader.uint32()); + break; + case 3: + message.next_validators_hash = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Creates a CompressedBatchProof message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof ics23.CompressedBatchProof - * @static - * @param {Object.} object Plain object - * @returns {ics23.CompressedBatchProof} CompressedBatchProof - */ - CompressedBatchProof.fromObject = function fromObject(object) { - if (object instanceof $root.ics23.CompressedBatchProof) - return object; - var message = new $root.ics23.CompressedBatchProof(); - if (object.entries) { - if (!Array.isArray(object.entries)) - throw TypeError(".ics23.CompressedBatchProof.entries: array expected"); - message.entries = []; - for (var i = 0; i < object.entries.length; ++i) { - if (typeof object.entries[i] !== "object") - throw TypeError(".ics23.CompressedBatchProof.entries: object expected"); - message.entries[i] = $root.ics23.CompressedBatchEntry.fromObject(object.entries[i]); - } - } - if (object.lookup_inners) { - if (!Array.isArray(object.lookup_inners)) - throw TypeError(".ics23.CompressedBatchProof.lookup_inners: array expected"); - message.lookup_inners = []; - for (var i = 0; i < object.lookup_inners.length; ++i) { - if (typeof object.lookup_inners[i] !== "object") - throw TypeError(".ics23.CompressedBatchProof.lookup_inners: object expected"); - message.lookup_inners[i] = $root.ics23.InnerOp.fromObject(object.lookup_inners[i]); - } - } - return message; - }; + /** + * Decodes a ConsensusState message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof ibc.lightclients.tendermint.v1.ConsensusState + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {ibc.lightclients.tendermint.v1.ConsensusState} ConsensusState + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ConsensusState.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a plain object from a CompressedBatchProof message. Also converts values to other types if specified. - * @function toObject - * @memberof ics23.CompressedBatchProof - * @static - * @param {ics23.CompressedBatchProof} message CompressedBatchProof - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - CompressedBatchProof.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) { - object.entries = []; - object.lookup_inners = []; - } - if (message.entries && message.entries.length) { - object.entries = []; - for (var j = 0; j < message.entries.length; ++j) - object.entries[j] = $root.ics23.CompressedBatchEntry.toObject(message.entries[j], options); - } - if (message.lookup_inners && message.lookup_inners.length) { - object.lookup_inners = []; - for (var j = 0; j < message.lookup_inners.length; ++j) - object.lookup_inners[j] = $root.ics23.InnerOp.toObject(message.lookup_inners[j], options); - } - return object; - }; + /** + * Verifies a ConsensusState message. + * @function verify + * @memberof ibc.lightclients.tendermint.v1.ConsensusState + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ConsensusState.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.timestamp != null && message.hasOwnProperty("timestamp")) { + var error = $root.google.protobuf.Timestamp.verify(message.timestamp); + if (error) + return "timestamp." + error; + } + if (message.root != null && message.hasOwnProperty("root")) { + var error = $root.ibc.core.commitment.v1.MerkleRoot.verify(message.root); + if (error) + return "root." + error; + } + if (message.next_validators_hash != null && message.hasOwnProperty("next_validators_hash")) + if (!(message.next_validators_hash && typeof message.next_validators_hash.length === "number" || $util.isString(message.next_validators_hash))) + return "next_validators_hash: buffer expected"; + return null; + }; - /** - * Converts this CompressedBatchProof to JSON. - * @function toJSON - * @memberof ics23.CompressedBatchProof - * @instance - * @returns {Object.} JSON object - */ - CompressedBatchProof.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a ConsensusState message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof ibc.lightclients.tendermint.v1.ConsensusState + * @static + * @param {Object.} object Plain object + * @returns {ibc.lightclients.tendermint.v1.ConsensusState} ConsensusState + */ + ConsensusState.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.lightclients.tendermint.v1.ConsensusState) + return object; + var message = new $root.ibc.lightclients.tendermint.v1.ConsensusState(); + if (object.timestamp != null) { + if (typeof object.timestamp !== "object") + throw TypeError(".ibc.lightclients.tendermint.v1.ConsensusState.timestamp: object expected"); + message.timestamp = $root.google.protobuf.Timestamp.fromObject(object.timestamp); + } + if (object.root != null) { + if (typeof object.root !== "object") + throw TypeError(".ibc.lightclients.tendermint.v1.ConsensusState.root: object expected"); + message.root = $root.ibc.core.commitment.v1.MerkleRoot.fromObject(object.root); + } + if (object.next_validators_hash != null) + if (typeof object.next_validators_hash === "string") + $util.base64.decode(object.next_validators_hash, message.next_validators_hash = $util.newBuffer($util.base64.length(object.next_validators_hash)), 0); + else if (object.next_validators_hash.length) + message.next_validators_hash = object.next_validators_hash; + return message; + }; - return CompressedBatchProof; - })(); + /** + * Creates a plain object from a ConsensusState message. Also converts values to other types if specified. + * @function toObject + * @memberof ibc.lightclients.tendermint.v1.ConsensusState + * @static + * @param {ibc.lightclients.tendermint.v1.ConsensusState} message ConsensusState + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ConsensusState.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.timestamp = null; + object.root = null; + if (options.bytes === String) + object.next_validators_hash = ""; + else { + object.next_validators_hash = []; + if (options.bytes !== Array) + object.next_validators_hash = $util.newBuffer(object.next_validators_hash); + } + } + if (message.timestamp != null && message.hasOwnProperty("timestamp")) + object.timestamp = $root.google.protobuf.Timestamp.toObject(message.timestamp, options); + if (message.root != null && message.hasOwnProperty("root")) + object.root = $root.ibc.core.commitment.v1.MerkleRoot.toObject(message.root, options); + if (message.next_validators_hash != null && message.hasOwnProperty("next_validators_hash")) + object.next_validators_hash = options.bytes === String ? $util.base64.encode(message.next_validators_hash, 0, message.next_validators_hash.length) : options.bytes === Array ? Array.prototype.slice.call(message.next_validators_hash) : message.next_validators_hash; + return object; + }; - ics23.CompressedBatchEntry = (function() { + /** + * Converts this ConsensusState to JSON. + * @function toJSON + * @memberof ibc.lightclients.tendermint.v1.ConsensusState + * @instance + * @returns {Object.} JSON object + */ + ConsensusState.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Properties of a CompressedBatchEntry. - * @memberof ics23 - * @interface ICompressedBatchEntry - * @property {ics23.ICompressedExistenceProof|null} [exist] CompressedBatchEntry exist - * @property {ics23.ICompressedNonExistenceProof|null} [nonexist] CompressedBatchEntry nonexist - */ + return ConsensusState; + })(); - /** - * Constructs a new CompressedBatchEntry. - * @memberof ics23 - * @classdesc Represents a CompressedBatchEntry. - * @implements ICompressedBatchEntry - * @constructor - * @param {ics23.ICompressedBatchEntry=} [properties] Properties to set - */ - function CompressedBatchEntry(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + v1.Misbehaviour = (function() { - /** - * CompressedBatchEntry exist. - * @member {ics23.ICompressedExistenceProof|null|undefined} exist - * @memberof ics23.CompressedBatchEntry - * @instance - */ - CompressedBatchEntry.prototype.exist = null; + /** + * Properties of a Misbehaviour. + * @memberof ibc.lightclients.tendermint.v1 + * @interface IMisbehaviour + * @property {string|null} [client_id] Misbehaviour client_id + * @property {ibc.lightclients.tendermint.v1.IHeader|null} [header_1] Misbehaviour header_1 + * @property {ibc.lightclients.tendermint.v1.IHeader|null} [header_2] Misbehaviour header_2 + */ - /** - * CompressedBatchEntry nonexist. - * @member {ics23.ICompressedNonExistenceProof|null|undefined} nonexist - * @memberof ics23.CompressedBatchEntry - * @instance - */ - CompressedBatchEntry.prototype.nonexist = null; + /** + * Constructs a new Misbehaviour. + * @memberof ibc.lightclients.tendermint.v1 + * @classdesc Represents a Misbehaviour. + * @implements IMisbehaviour + * @constructor + * @param {ibc.lightclients.tendermint.v1.IMisbehaviour=} [properties] Properties to set + */ + function Misbehaviour(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + /** + * Misbehaviour client_id. + * @member {string} client_id + * @memberof ibc.lightclients.tendermint.v1.Misbehaviour + * @instance + */ + Misbehaviour.prototype.client_id = ""; - /** - * CompressedBatchEntry proof. - * @member {"exist"|"nonexist"|undefined} proof - * @memberof ics23.CompressedBatchEntry - * @instance - */ - Object.defineProperty(CompressedBatchEntry.prototype, "proof", { - get: $util.oneOfGetter($oneOfFields = ["exist", "nonexist"]), - set: $util.oneOfSetter($oneOfFields) - }); + /** + * Misbehaviour header_1. + * @member {ibc.lightclients.tendermint.v1.IHeader|null|undefined} header_1 + * @memberof ibc.lightclients.tendermint.v1.Misbehaviour + * @instance + */ + Misbehaviour.prototype.header_1 = null; - /** - * Encodes the specified CompressedBatchEntry message. Does not implicitly {@link ics23.CompressedBatchEntry.verify|verify} messages. - * @function encode - * @memberof ics23.CompressedBatchEntry - * @static - * @param {ics23.ICompressedBatchEntry} message CompressedBatchEntry message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CompressedBatchEntry.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.exist != null && Object.hasOwnProperty.call(message, "exist")) - $root.ics23.CompressedExistenceProof.encode(message.exist, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nonexist != null && Object.hasOwnProperty.call(message, "nonexist")) - $root.ics23.CompressedNonExistenceProof.encode(message.nonexist, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; + /** + * Misbehaviour header_2. + * @member {ibc.lightclients.tendermint.v1.IHeader|null|undefined} header_2 + * @memberof ibc.lightclients.tendermint.v1.Misbehaviour + * @instance + */ + Misbehaviour.prototype.header_2 = null; - /** - * Encodes the specified CompressedBatchEntry message, length delimited. Does not implicitly {@link ics23.CompressedBatchEntry.verify|verify} messages. - * @function encodeDelimited - * @memberof ics23.CompressedBatchEntry - * @static - * @param {ics23.ICompressedBatchEntry} message CompressedBatchEntry message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CompressedBatchEntry.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified Misbehaviour message. Does not implicitly {@link ibc.lightclients.tendermint.v1.Misbehaviour.verify|verify} messages. + * @function encode + * @memberof ibc.lightclients.tendermint.v1.Misbehaviour + * @static + * @param {ibc.lightclients.tendermint.v1.IMisbehaviour} message Misbehaviour message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Misbehaviour.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.client_id != null && Object.hasOwnProperty.call(message, "client_id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.client_id); + if (message.header_1 != null && Object.hasOwnProperty.call(message, "header_1")) + $root.ibc.lightclients.tendermint.v1.Header.encode(message.header_1, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.header_2 != null && Object.hasOwnProperty.call(message, "header_2")) + $root.ibc.lightclients.tendermint.v1.Header.encode(message.header_2, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; - /** - * Decodes a CompressedBatchEntry message from the specified reader or buffer. - * @function decode - * @memberof ics23.CompressedBatchEntry - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {ics23.CompressedBatchEntry} CompressedBatchEntry - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CompressedBatchEntry.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ics23.CompressedBatchEntry(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.exist = $root.ics23.CompressedExistenceProof.decode(reader, reader.uint32()); - break; - case 2: - message.nonexist = $root.ics23.CompressedNonExistenceProof.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Encodes the specified Misbehaviour message, length delimited. Does not implicitly {@link ibc.lightclients.tendermint.v1.Misbehaviour.verify|verify} messages. + * @function encodeDelimited + * @memberof ibc.lightclients.tendermint.v1.Misbehaviour + * @static + * @param {ibc.lightclients.tendermint.v1.IMisbehaviour} message Misbehaviour message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Misbehaviour.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a CompressedBatchEntry message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ics23.CompressedBatchEntry - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ics23.CompressedBatchEntry} CompressedBatchEntry - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CompressedBatchEntry.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a Misbehaviour message from the specified reader or buffer. + * @function decode + * @memberof ibc.lightclients.tendermint.v1.Misbehaviour + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {ibc.lightclients.tendermint.v1.Misbehaviour} Misbehaviour + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Misbehaviour.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.tendermint.v1.Misbehaviour(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.client_id = reader.string(); + break; + case 2: + message.header_1 = $root.ibc.lightclients.tendermint.v1.Header.decode(reader, reader.uint32()); + break; + case 3: + message.header_2 = $root.ibc.lightclients.tendermint.v1.Header.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Misbehaviour message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof ibc.lightclients.tendermint.v1.Misbehaviour + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {ibc.lightclients.tendermint.v1.Misbehaviour} Misbehaviour + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Misbehaviour.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies a CompressedBatchEntry message. - * @function verify - * @memberof ics23.CompressedBatchEntry - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CompressedBatchEntry.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.exist != null && message.hasOwnProperty("exist")) { - properties.proof = 1; - { - var error = $root.ics23.CompressedExistenceProof.verify(message.exist); - if (error) - return "exist." + error; - } - } - if (message.nonexist != null && message.hasOwnProperty("nonexist")) { - if (properties.proof === 1) - return "proof: multiple values"; - properties.proof = 1; - { - var error = $root.ics23.CompressedNonExistenceProof.verify(message.nonexist); - if (error) - return "nonexist." + error; - } - } - return null; - }; + /** + * Verifies a Misbehaviour message. + * @function verify + * @memberof ibc.lightclients.tendermint.v1.Misbehaviour + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Misbehaviour.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.client_id != null && message.hasOwnProperty("client_id")) + if (!$util.isString(message.client_id)) + return "client_id: string expected"; + if (message.header_1 != null && message.hasOwnProperty("header_1")) { + var error = $root.ibc.lightclients.tendermint.v1.Header.verify(message.header_1); + if (error) + return "header_1." + error; + } + if (message.header_2 != null && message.hasOwnProperty("header_2")) { + var error = $root.ibc.lightclients.tendermint.v1.Header.verify(message.header_2); + if (error) + return "header_2." + error; + } + return null; + }; - /** - * Creates a CompressedBatchEntry message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof ics23.CompressedBatchEntry - * @static - * @param {Object.} object Plain object - * @returns {ics23.CompressedBatchEntry} CompressedBatchEntry - */ - CompressedBatchEntry.fromObject = function fromObject(object) { - if (object instanceof $root.ics23.CompressedBatchEntry) - return object; - var message = new $root.ics23.CompressedBatchEntry(); - if (object.exist != null) { - if (typeof object.exist !== "object") - throw TypeError(".ics23.CompressedBatchEntry.exist: object expected"); - message.exist = $root.ics23.CompressedExistenceProof.fromObject(object.exist); - } - if (object.nonexist != null) { - if (typeof object.nonexist !== "object") - throw TypeError(".ics23.CompressedBatchEntry.nonexist: object expected"); - message.nonexist = $root.ics23.CompressedNonExistenceProof.fromObject(object.nonexist); - } - return message; - }; + /** + * Creates a Misbehaviour message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof ibc.lightclients.tendermint.v1.Misbehaviour + * @static + * @param {Object.} object Plain object + * @returns {ibc.lightclients.tendermint.v1.Misbehaviour} Misbehaviour + */ + Misbehaviour.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.lightclients.tendermint.v1.Misbehaviour) + return object; + var message = new $root.ibc.lightclients.tendermint.v1.Misbehaviour(); + if (object.client_id != null) + message.client_id = String(object.client_id); + if (object.header_1 != null) { + if (typeof object.header_1 !== "object") + throw TypeError(".ibc.lightclients.tendermint.v1.Misbehaviour.header_1: object expected"); + message.header_1 = $root.ibc.lightclients.tendermint.v1.Header.fromObject(object.header_1); + } + if (object.header_2 != null) { + if (typeof object.header_2 !== "object") + throw TypeError(".ibc.lightclients.tendermint.v1.Misbehaviour.header_2: object expected"); + message.header_2 = $root.ibc.lightclients.tendermint.v1.Header.fromObject(object.header_2); + } + return message; + }; - /** - * Creates a plain object from a CompressedBatchEntry message. Also converts values to other types if specified. - * @function toObject - * @memberof ics23.CompressedBatchEntry - * @static - * @param {ics23.CompressedBatchEntry} message CompressedBatchEntry - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - CompressedBatchEntry.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (message.exist != null && message.hasOwnProperty("exist")) { - object.exist = $root.ics23.CompressedExistenceProof.toObject(message.exist, options); - if (options.oneofs) - object.proof = "exist"; - } - if (message.nonexist != null && message.hasOwnProperty("nonexist")) { - object.nonexist = $root.ics23.CompressedNonExistenceProof.toObject(message.nonexist, options); - if (options.oneofs) - object.proof = "nonexist"; - } - return object; - }; + /** + * Creates a plain object from a Misbehaviour message. Also converts values to other types if specified. + * @function toObject + * @memberof ibc.lightclients.tendermint.v1.Misbehaviour + * @static + * @param {ibc.lightclients.tendermint.v1.Misbehaviour} message Misbehaviour + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Misbehaviour.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.client_id = ""; + object.header_1 = null; + object.header_2 = null; + } + if (message.client_id != null && message.hasOwnProperty("client_id")) + object.client_id = message.client_id; + if (message.header_1 != null && message.hasOwnProperty("header_1")) + object.header_1 = $root.ibc.lightclients.tendermint.v1.Header.toObject(message.header_1, options); + if (message.header_2 != null && message.hasOwnProperty("header_2")) + object.header_2 = $root.ibc.lightclients.tendermint.v1.Header.toObject(message.header_2, options); + return object; + }; - /** - * Converts this CompressedBatchEntry to JSON. - * @function toJSON - * @memberof ics23.CompressedBatchEntry - * @instance - * @returns {Object.} JSON object - */ - CompressedBatchEntry.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Converts this Misbehaviour to JSON. + * @function toJSON + * @memberof ibc.lightclients.tendermint.v1.Misbehaviour + * @instance + * @returns {Object.} JSON object + */ + Misbehaviour.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return CompressedBatchEntry; - })(); + return Misbehaviour; + })(); - ics23.CompressedExistenceProof = (function() { + v1.Header = (function() { - /** - * Properties of a CompressedExistenceProof. - * @memberof ics23 - * @interface ICompressedExistenceProof - * @property {Uint8Array|null} [key] CompressedExistenceProof key - * @property {Uint8Array|null} [value] CompressedExistenceProof value - * @property {ics23.ILeafOp|null} [leaf] CompressedExistenceProof leaf - * @property {Array.|null} [path] CompressedExistenceProof path - */ + /** + * Properties of a Header. + * @memberof ibc.lightclients.tendermint.v1 + * @interface IHeader + * @property {tendermint.types.ISignedHeader|null} [signed_header] Header signed_header + * @property {tendermint.types.IValidatorSet|null} [validator_set] Header validator_set + * @property {ibc.core.client.v1.IHeight|null} [trusted_height] Header trusted_height + * @property {tendermint.types.IValidatorSet|null} [trusted_validators] Header trusted_validators + */ - /** - * Constructs a new CompressedExistenceProof. - * @memberof ics23 - * @classdesc Represents a CompressedExistenceProof. - * @implements ICompressedExistenceProof - * @constructor - * @param {ics23.ICompressedExistenceProof=} [properties] Properties to set - */ - function CompressedExistenceProof(properties) { - this.path = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Constructs a new Header. + * @memberof ibc.lightclients.tendermint.v1 + * @classdesc Represents a Header. + * @implements IHeader + * @constructor + * @param {ibc.lightclients.tendermint.v1.IHeader=} [properties] Properties to set + */ + function Header(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * CompressedExistenceProof key. - * @member {Uint8Array} key - * @memberof ics23.CompressedExistenceProof - * @instance - */ - CompressedExistenceProof.prototype.key = $util.newBuffer([]); + /** + * Header signed_header. + * @member {tendermint.types.ISignedHeader|null|undefined} signed_header + * @memberof ibc.lightclients.tendermint.v1.Header + * @instance + */ + Header.prototype.signed_header = null; - /** - * CompressedExistenceProof value. - * @member {Uint8Array} value - * @memberof ics23.CompressedExistenceProof - * @instance - */ - CompressedExistenceProof.prototype.value = $util.newBuffer([]); + /** + * Header validator_set. + * @member {tendermint.types.IValidatorSet|null|undefined} validator_set + * @memberof ibc.lightclients.tendermint.v1.Header + * @instance + */ + Header.prototype.validator_set = null; - /** - * CompressedExistenceProof leaf. - * @member {ics23.ILeafOp|null|undefined} leaf - * @memberof ics23.CompressedExistenceProof - * @instance - */ - CompressedExistenceProof.prototype.leaf = null; + /** + * Header trusted_height. + * @member {ibc.core.client.v1.IHeight|null|undefined} trusted_height + * @memberof ibc.lightclients.tendermint.v1.Header + * @instance + */ + Header.prototype.trusted_height = null; - /** - * CompressedExistenceProof path. - * @member {Array.} path - * @memberof ics23.CompressedExistenceProof - * @instance - */ - CompressedExistenceProof.prototype.path = $util.emptyArray; + /** + * Header trusted_validators. + * @member {tendermint.types.IValidatorSet|null|undefined} trusted_validators + * @memberof ibc.lightclients.tendermint.v1.Header + * @instance + */ + Header.prototype.trusted_validators = null; - /** - * Encodes the specified CompressedExistenceProof message. Does not implicitly {@link ics23.CompressedExistenceProof.verify|verify} messages. - * @function encode - * @memberof ics23.CompressedExistenceProof - * @static - * @param {ics23.ICompressedExistenceProof} message CompressedExistenceProof message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CompressedExistenceProof.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.key != null && Object.hasOwnProperty.call(message, "key")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.key); - if (message.value != null && Object.hasOwnProperty.call(message, "value")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.value); - if (message.leaf != null && Object.hasOwnProperty.call(message, "leaf")) - $root.ics23.LeafOp.encode(message.leaf, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.path != null && message.path.length) { - writer.uint32(/* id 4, wireType 2 =*/34).fork(); - for (var i = 0; i < message.path.length; ++i) - writer.int32(message.path[i]); - writer.ldelim(); - } - return writer; - }; + /** + * Encodes the specified Header message. Does not implicitly {@link ibc.lightclients.tendermint.v1.Header.verify|verify} messages. + * @function encode + * @memberof ibc.lightclients.tendermint.v1.Header + * @static + * @param {ibc.lightclients.tendermint.v1.IHeader} message Header message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Header.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.signed_header != null && Object.hasOwnProperty.call(message, "signed_header")) + $root.tendermint.types.SignedHeader.encode(message.signed_header, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.validator_set != null && Object.hasOwnProperty.call(message, "validator_set")) + $root.tendermint.types.ValidatorSet.encode(message.validator_set, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.trusted_height != null && Object.hasOwnProperty.call(message, "trusted_height")) + $root.ibc.core.client.v1.Height.encode(message.trusted_height, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.trusted_validators != null && Object.hasOwnProperty.call(message, "trusted_validators")) + $root.tendermint.types.ValidatorSet.encode(message.trusted_validators, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + return writer; + }; - /** - * Encodes the specified CompressedExistenceProof message, length delimited. Does not implicitly {@link ics23.CompressedExistenceProof.verify|verify} messages. - * @function encodeDelimited - * @memberof ics23.CompressedExistenceProof - * @static - * @param {ics23.ICompressedExistenceProof} message CompressedExistenceProof message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CompressedExistenceProof.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified Header message, length delimited. Does not implicitly {@link ibc.lightclients.tendermint.v1.Header.verify|verify} messages. + * @function encodeDelimited + * @memberof ibc.lightclients.tendermint.v1.Header + * @static + * @param {ibc.lightclients.tendermint.v1.IHeader} message Header message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Header.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a CompressedExistenceProof message from the specified reader or buffer. - * @function decode - * @memberof ics23.CompressedExistenceProof - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {ics23.CompressedExistenceProof} CompressedExistenceProof - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CompressedExistenceProof.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ics23.CompressedExistenceProof(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.key = reader.bytes(); - break; - case 2: - message.value = reader.bytes(); - break; - case 3: - message.leaf = $root.ics23.LeafOp.decode(reader, reader.uint32()); - break; - case 4: - if (!(message.path && message.path.length)) - message.path = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.path.push(reader.int32()); - } else - message.path.push(reader.int32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Decodes a Header message from the specified reader or buffer. + * @function decode + * @memberof ibc.lightclients.tendermint.v1.Header + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {ibc.lightclients.tendermint.v1.Header} Header + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Header.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.tendermint.v1.Header(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.signed_header = $root.tendermint.types.SignedHeader.decode(reader, reader.uint32()); + break; + case 2: + message.validator_set = $root.tendermint.types.ValidatorSet.decode(reader, reader.uint32()); + break; + case 3: + message.trusted_height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); + break; + case 4: + message.trusted_validators = $root.tendermint.types.ValidatorSet.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Decodes a CompressedExistenceProof message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ics23.CompressedExistenceProof - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ics23.CompressedExistenceProof} CompressedExistenceProof - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CompressedExistenceProof.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a Header message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof ibc.lightclients.tendermint.v1.Header + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {ibc.lightclients.tendermint.v1.Header} Header + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Header.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies a CompressedExistenceProof message. - * @function verify - * @memberof ics23.CompressedExistenceProof - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CompressedExistenceProof.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.key != null && message.hasOwnProperty("key")) - if (!(message.key && typeof message.key.length === "number" || $util.isString(message.key))) - return "key: buffer expected"; - if (message.value != null && message.hasOwnProperty("value")) - if (!(message.value && typeof message.value.length === "number" || $util.isString(message.value))) - return "value: buffer expected"; - if (message.leaf != null && message.hasOwnProperty("leaf")) { - var error = $root.ics23.LeafOp.verify(message.leaf); - if (error) - return "leaf." + error; - } - if (message.path != null && message.hasOwnProperty("path")) { - if (!Array.isArray(message.path)) - return "path: array expected"; - for (var i = 0; i < message.path.length; ++i) - if (!$util.isInteger(message.path[i])) - return "path: integer[] expected"; - } - return null; - }; + /** + * Verifies a Header message. + * @function verify + * @memberof ibc.lightclients.tendermint.v1.Header + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Header.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.signed_header != null && message.hasOwnProperty("signed_header")) { + var error = $root.tendermint.types.SignedHeader.verify(message.signed_header); + if (error) + return "signed_header." + error; + } + if (message.validator_set != null && message.hasOwnProperty("validator_set")) { + var error = $root.tendermint.types.ValidatorSet.verify(message.validator_set); + if (error) + return "validator_set." + error; + } + if (message.trusted_height != null && message.hasOwnProperty("trusted_height")) { + var error = $root.ibc.core.client.v1.Height.verify(message.trusted_height); + if (error) + return "trusted_height." + error; + } + if (message.trusted_validators != null && message.hasOwnProperty("trusted_validators")) { + var error = $root.tendermint.types.ValidatorSet.verify(message.trusted_validators); + if (error) + return "trusted_validators." + error; + } + return null; + }; - /** - * Creates a CompressedExistenceProof message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof ics23.CompressedExistenceProof - * @static - * @param {Object.} object Plain object - * @returns {ics23.CompressedExistenceProof} CompressedExistenceProof - */ - CompressedExistenceProof.fromObject = function fromObject(object) { - if (object instanceof $root.ics23.CompressedExistenceProof) - return object; - var message = new $root.ics23.CompressedExistenceProof(); - if (object.key != null) - if (typeof object.key === "string") - $util.base64.decode(object.key, message.key = $util.newBuffer($util.base64.length(object.key)), 0); - else if (object.key.length) - message.key = object.key; - if (object.value != null) - if (typeof object.value === "string") - $util.base64.decode(object.value, message.value = $util.newBuffer($util.base64.length(object.value)), 0); - else if (object.value.length) - message.value = object.value; - if (object.leaf != null) { - if (typeof object.leaf !== "object") - throw TypeError(".ics23.CompressedExistenceProof.leaf: object expected"); - message.leaf = $root.ics23.LeafOp.fromObject(object.leaf); - } - if (object.path) { - if (!Array.isArray(object.path)) - throw TypeError(".ics23.CompressedExistenceProof.path: array expected"); - message.path = []; - for (var i = 0; i < object.path.length; ++i) - message.path[i] = object.path[i] | 0; - } - return message; - }; + /** + * Creates a Header message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof ibc.lightclients.tendermint.v1.Header + * @static + * @param {Object.} object Plain object + * @returns {ibc.lightclients.tendermint.v1.Header} Header + */ + Header.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.lightclients.tendermint.v1.Header) + return object; + var message = new $root.ibc.lightclients.tendermint.v1.Header(); + if (object.signed_header != null) { + if (typeof object.signed_header !== "object") + throw TypeError(".ibc.lightclients.tendermint.v1.Header.signed_header: object expected"); + message.signed_header = $root.tendermint.types.SignedHeader.fromObject(object.signed_header); + } + if (object.validator_set != null) { + if (typeof object.validator_set !== "object") + throw TypeError(".ibc.lightclients.tendermint.v1.Header.validator_set: object expected"); + message.validator_set = $root.tendermint.types.ValidatorSet.fromObject(object.validator_set); + } + if (object.trusted_height != null) { + if (typeof object.trusted_height !== "object") + throw TypeError(".ibc.lightclients.tendermint.v1.Header.trusted_height: object expected"); + message.trusted_height = $root.ibc.core.client.v1.Height.fromObject(object.trusted_height); + } + if (object.trusted_validators != null) { + if (typeof object.trusted_validators !== "object") + throw TypeError(".ibc.lightclients.tendermint.v1.Header.trusted_validators: object expected"); + message.trusted_validators = $root.tendermint.types.ValidatorSet.fromObject(object.trusted_validators); + } + return message; + }; - /** - * Creates a plain object from a CompressedExistenceProof message. Also converts values to other types if specified. - * @function toObject - * @memberof ics23.CompressedExistenceProof - * @static - * @param {ics23.CompressedExistenceProof} message CompressedExistenceProof - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - CompressedExistenceProof.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.path = []; - if (options.defaults) { - if (options.bytes === String) - object.key = ""; - else { - object.key = []; - if (options.bytes !== Array) - object.key = $util.newBuffer(object.key); - } - if (options.bytes === String) - object.value = ""; - else { - object.value = []; - if (options.bytes !== Array) - object.value = $util.newBuffer(object.value); - } - object.leaf = null; - } - if (message.key != null && message.hasOwnProperty("key")) - object.key = options.bytes === String ? $util.base64.encode(message.key, 0, message.key.length) : options.bytes === Array ? Array.prototype.slice.call(message.key) : message.key; - if (message.value != null && message.hasOwnProperty("value")) - object.value = options.bytes === String ? $util.base64.encode(message.value, 0, message.value.length) : options.bytes === Array ? Array.prototype.slice.call(message.value) : message.value; - if (message.leaf != null && message.hasOwnProperty("leaf")) - object.leaf = $root.ics23.LeafOp.toObject(message.leaf, options); - if (message.path && message.path.length) { - object.path = []; - for (var j = 0; j < message.path.length; ++j) - object.path[j] = message.path[j]; - } - return object; - }; + /** + * Creates a plain object from a Header message. Also converts values to other types if specified. + * @function toObject + * @memberof ibc.lightclients.tendermint.v1.Header + * @static + * @param {ibc.lightclients.tendermint.v1.Header} message Header + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Header.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.signed_header = null; + object.validator_set = null; + object.trusted_height = null; + object.trusted_validators = null; + } + if (message.signed_header != null && message.hasOwnProperty("signed_header")) + object.signed_header = $root.tendermint.types.SignedHeader.toObject(message.signed_header, options); + if (message.validator_set != null && message.hasOwnProperty("validator_set")) + object.validator_set = $root.tendermint.types.ValidatorSet.toObject(message.validator_set, options); + if (message.trusted_height != null && message.hasOwnProperty("trusted_height")) + object.trusted_height = $root.ibc.core.client.v1.Height.toObject(message.trusted_height, options); + if (message.trusted_validators != null && message.hasOwnProperty("trusted_validators")) + object.trusted_validators = $root.tendermint.types.ValidatorSet.toObject(message.trusted_validators, options); + return object; + }; - /** - * Converts this CompressedExistenceProof to JSON. - * @function toJSON - * @memberof ics23.CompressedExistenceProof - * @instance - * @returns {Object.} JSON object - */ - CompressedExistenceProof.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Converts this Header to JSON. + * @function toJSON + * @memberof ibc.lightclients.tendermint.v1.Header + * @instance + * @returns {Object.} JSON object + */ + Header.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return CompressedExistenceProof; - })(); + return Header; + })(); - ics23.CompressedNonExistenceProof = (function() { + v1.Fraction = (function() { - /** - * Properties of a CompressedNonExistenceProof. - * @memberof ics23 - * @interface ICompressedNonExistenceProof - * @property {Uint8Array|null} [key] CompressedNonExistenceProof key - * @property {ics23.ICompressedExistenceProof|null} [left] CompressedNonExistenceProof left - * @property {ics23.ICompressedExistenceProof|null} [right] CompressedNonExistenceProof right - */ + /** + * Properties of a Fraction. + * @memberof ibc.lightclients.tendermint.v1 + * @interface IFraction + * @property {Long|null} [numerator] Fraction numerator + * @property {Long|null} [denominator] Fraction denominator + */ - /** - * Constructs a new CompressedNonExistenceProof. - * @memberof ics23 - * @classdesc Represents a CompressedNonExistenceProof. - * @implements ICompressedNonExistenceProof - * @constructor - * @param {ics23.ICompressedNonExistenceProof=} [properties] Properties to set - */ - function CompressedNonExistenceProof(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Constructs a new Fraction. + * @memberof ibc.lightclients.tendermint.v1 + * @classdesc Represents a Fraction. + * @implements IFraction + * @constructor + * @param {ibc.lightclients.tendermint.v1.IFraction=} [properties] Properties to set + */ + function Fraction(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * CompressedNonExistenceProof key. - * @member {Uint8Array} key - * @memberof ics23.CompressedNonExistenceProof - * @instance - */ - CompressedNonExistenceProof.prototype.key = $util.newBuffer([]); + /** + * Fraction numerator. + * @member {Long} numerator + * @memberof ibc.lightclients.tendermint.v1.Fraction + * @instance + */ + Fraction.prototype.numerator = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - /** - * CompressedNonExistenceProof left. - * @member {ics23.ICompressedExistenceProof|null|undefined} left - * @memberof ics23.CompressedNonExistenceProof - * @instance - */ - CompressedNonExistenceProof.prototype.left = null; + /** + * Fraction denominator. + * @member {Long} denominator + * @memberof ibc.lightclients.tendermint.v1.Fraction + * @instance + */ + Fraction.prototype.denominator = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - /** - * CompressedNonExistenceProof right. - * @member {ics23.ICompressedExistenceProof|null|undefined} right - * @memberof ics23.CompressedNonExistenceProof - * @instance - */ - CompressedNonExistenceProof.prototype.right = null; + /** + * Encodes the specified Fraction message. Does not implicitly {@link ibc.lightclients.tendermint.v1.Fraction.verify|verify} messages. + * @function encode + * @memberof ibc.lightclients.tendermint.v1.Fraction + * @static + * @param {ibc.lightclients.tendermint.v1.IFraction} message Fraction message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Fraction.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.numerator != null && Object.hasOwnProperty.call(message, "numerator")) + writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.numerator); + if (message.denominator != null && Object.hasOwnProperty.call(message, "denominator")) + writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.denominator); + return writer; + }; - /** - * Encodes the specified CompressedNonExistenceProof message. Does not implicitly {@link ics23.CompressedNonExistenceProof.verify|verify} messages. - * @function encode - * @memberof ics23.CompressedNonExistenceProof - * @static - * @param {ics23.ICompressedNonExistenceProof} message CompressedNonExistenceProof message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CompressedNonExistenceProof.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.key != null && Object.hasOwnProperty.call(message, "key")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.key); - if (message.left != null && Object.hasOwnProperty.call(message, "left")) - $root.ics23.CompressedExistenceProof.encode(message.left, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.right != null && Object.hasOwnProperty.call(message, "right")) - $root.ics23.CompressedExistenceProof.encode(message.right, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; + /** + * Encodes the specified Fraction message, length delimited. Does not implicitly {@link ibc.lightclients.tendermint.v1.Fraction.verify|verify} messages. + * @function encodeDelimited + * @memberof ibc.lightclients.tendermint.v1.Fraction + * @static + * @param {ibc.lightclients.tendermint.v1.IFraction} message Fraction message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Fraction.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Encodes the specified CompressedNonExistenceProof message, length delimited. Does not implicitly {@link ics23.CompressedNonExistenceProof.verify|verify} messages. - * @function encodeDelimited - * @memberof ics23.CompressedNonExistenceProof - * @static - * @param {ics23.ICompressedNonExistenceProof} message CompressedNonExistenceProof message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CompressedNonExistenceProof.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Decodes a Fraction message from the specified reader or buffer. + * @function decode + * @memberof ibc.lightclients.tendermint.v1.Fraction + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {ibc.lightclients.tendermint.v1.Fraction} Fraction + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Fraction.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.tendermint.v1.Fraction(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.numerator = reader.uint64(); + break; + case 2: + message.denominator = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Decodes a CompressedNonExistenceProof message from the specified reader or buffer. - * @function decode - * @memberof ics23.CompressedNonExistenceProof - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {ics23.CompressedNonExistenceProof} CompressedNonExistenceProof - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CompressedNonExistenceProof.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ics23.CompressedNonExistenceProof(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.key = reader.bytes(); - break; - case 2: - message.left = $root.ics23.CompressedExistenceProof.decode(reader, reader.uint32()); - break; - case 3: - message.right = $root.ics23.CompressedExistenceProof.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Decodes a Fraction message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof ibc.lightclients.tendermint.v1.Fraction + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {ibc.lightclients.tendermint.v1.Fraction} Fraction + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Fraction.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Decodes a CompressedNonExistenceProof message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ics23.CompressedNonExistenceProof - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ics23.CompressedNonExistenceProof} CompressedNonExistenceProof - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CompressedNonExistenceProof.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Verifies a Fraction message. + * @function verify + * @memberof ibc.lightclients.tendermint.v1.Fraction + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Fraction.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.numerator != null && message.hasOwnProperty("numerator")) + if (!$util.isInteger(message.numerator) && !(message.numerator && $util.isInteger(message.numerator.low) && $util.isInteger(message.numerator.high))) + return "numerator: integer|Long expected"; + if (message.denominator != null && message.hasOwnProperty("denominator")) + if (!$util.isInteger(message.denominator) && !(message.denominator && $util.isInteger(message.denominator.low) && $util.isInteger(message.denominator.high))) + return "denominator: integer|Long expected"; + return null; + }; - /** - * Verifies a CompressedNonExistenceProof message. - * @function verify - * @memberof ics23.CompressedNonExistenceProof - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CompressedNonExistenceProof.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.key != null && message.hasOwnProperty("key")) - if (!(message.key && typeof message.key.length === "number" || $util.isString(message.key))) - return "key: buffer expected"; - if (message.left != null && message.hasOwnProperty("left")) { - var error = $root.ics23.CompressedExistenceProof.verify(message.left); - if (error) - return "left." + error; - } - if (message.right != null && message.hasOwnProperty("right")) { - var error = $root.ics23.CompressedExistenceProof.verify(message.right); - if (error) - return "right." + error; - } - return null; - }; + /** + * Creates a Fraction message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof ibc.lightclients.tendermint.v1.Fraction + * @static + * @param {Object.} object Plain object + * @returns {ibc.lightclients.tendermint.v1.Fraction} Fraction + */ + Fraction.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.lightclients.tendermint.v1.Fraction) + return object; + var message = new $root.ibc.lightclients.tendermint.v1.Fraction(); + if (object.numerator != null) + if ($util.Long) + (message.numerator = $util.Long.fromValue(object.numerator)).unsigned = true; + else if (typeof object.numerator === "string") + message.numerator = parseInt(object.numerator, 10); + else if (typeof object.numerator === "number") + message.numerator = object.numerator; + else if (typeof object.numerator === "object") + message.numerator = new $util.LongBits(object.numerator.low >>> 0, object.numerator.high >>> 0).toNumber(true); + if (object.denominator != null) + if ($util.Long) + (message.denominator = $util.Long.fromValue(object.denominator)).unsigned = true; + else if (typeof object.denominator === "string") + message.denominator = parseInt(object.denominator, 10); + else if (typeof object.denominator === "number") + message.denominator = object.denominator; + else if (typeof object.denominator === "object") + message.denominator = new $util.LongBits(object.denominator.low >>> 0, object.denominator.high >>> 0).toNumber(true); + return message; + }; - /** - * Creates a CompressedNonExistenceProof message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof ics23.CompressedNonExistenceProof - * @static - * @param {Object.} object Plain object - * @returns {ics23.CompressedNonExistenceProof} CompressedNonExistenceProof - */ - CompressedNonExistenceProof.fromObject = function fromObject(object) { - if (object instanceof $root.ics23.CompressedNonExistenceProof) - return object; - var message = new $root.ics23.CompressedNonExistenceProof(); - if (object.key != null) - if (typeof object.key === "string") - $util.base64.decode(object.key, message.key = $util.newBuffer($util.base64.length(object.key)), 0); - else if (object.key.length) - message.key = object.key; - if (object.left != null) { - if (typeof object.left !== "object") - throw TypeError(".ics23.CompressedNonExistenceProof.left: object expected"); - message.left = $root.ics23.CompressedExistenceProof.fromObject(object.left); - } - if (object.right != null) { - if (typeof object.right !== "object") - throw TypeError(".ics23.CompressedNonExistenceProof.right: object expected"); - message.right = $root.ics23.CompressedExistenceProof.fromObject(object.right); - } - return message; - }; + /** + * Creates a plain object from a Fraction message. Also converts values to other types if specified. + * @function toObject + * @memberof ibc.lightclients.tendermint.v1.Fraction + * @static + * @param {ibc.lightclients.tendermint.v1.Fraction} message Fraction + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Fraction.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + if ($util.Long) { + var long = new $util.Long(0, 0, true); + object.numerator = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.numerator = options.longs === String ? "0" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, true); + object.denominator = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.denominator = options.longs === String ? "0" : 0; + } + if (message.numerator != null && message.hasOwnProperty("numerator")) + if (typeof message.numerator === "number") + object.numerator = options.longs === String ? String(message.numerator) : message.numerator; + else + object.numerator = options.longs === String ? $util.Long.prototype.toString.call(message.numerator) : options.longs === Number ? new $util.LongBits(message.numerator.low >>> 0, message.numerator.high >>> 0).toNumber(true) : message.numerator; + if (message.denominator != null && message.hasOwnProperty("denominator")) + if (typeof message.denominator === "number") + object.denominator = options.longs === String ? String(message.denominator) : message.denominator; + else + object.denominator = options.longs === String ? $util.Long.prototype.toString.call(message.denominator) : options.longs === Number ? new $util.LongBits(message.denominator.low >>> 0, message.denominator.high >>> 0).toNumber(true) : message.denominator; + return object; + }; - /** - * Creates a plain object from a CompressedNonExistenceProof message. Also converts values to other types if specified. - * @function toObject - * @memberof ics23.CompressedNonExistenceProof - * @static - * @param {ics23.CompressedNonExistenceProof} message CompressedNonExistenceProof - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - CompressedNonExistenceProof.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - if (options.bytes === String) - object.key = ""; - else { - object.key = []; - if (options.bytes !== Array) - object.key = $util.newBuffer(object.key); - } - object.left = null; - object.right = null; - } - if (message.key != null && message.hasOwnProperty("key")) - object.key = options.bytes === String ? $util.base64.encode(message.key, 0, message.key.length) : options.bytes === Array ? Array.prototype.slice.call(message.key) : message.key; - if (message.left != null && message.hasOwnProperty("left")) - object.left = $root.ics23.CompressedExistenceProof.toObject(message.left, options); - if (message.right != null && message.hasOwnProperty("right")) - object.right = $root.ics23.CompressedExistenceProof.toObject(message.right, options); - return object; - }; + /** + * Converts this Fraction to JSON. + * @function toJSON + * @memberof ibc.lightclients.tendermint.v1.Fraction + * @instance + * @returns {Object.} JSON object + */ + Fraction.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Converts this CompressedNonExistenceProof to JSON. - * @function toJSON - * @memberof ics23.CompressedNonExistenceProof - * @instance - * @returns {Object.} JSON object - */ - CompressedNonExistenceProof.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + return Fraction; + })(); + + return v1; + })(); + + return tendermint; + })(); - return CompressedNonExistenceProof; + return lightclients; })(); - return ics23; + return ibc; })(); $root.tendermint = (function() { @@ -83687,276 +89001,6 @@ return version; })(); - tendermint.libs = (function() { - - /** - * Namespace libs. - * @memberof tendermint - * @namespace - */ - var libs = {}; - - libs.bits = (function() { - - /** - * Namespace bits. - * @memberof tendermint.libs - * @namespace - */ - var bits = {}; - - bits.BitArray = (function() { - - /** - * Properties of a BitArray. - * @memberof tendermint.libs.bits - * @interface IBitArray - * @property {Long|null} [bits] BitArray bits - * @property {Array.|null} [elems] BitArray elems - */ - - /** - * Constructs a new BitArray. - * @memberof tendermint.libs.bits - * @classdesc Represents a BitArray. - * @implements IBitArray - * @constructor - * @param {tendermint.libs.bits.IBitArray=} [properties] Properties to set - */ - function BitArray(properties) { - this.elems = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * BitArray bits. - * @member {Long} bits - * @memberof tendermint.libs.bits.BitArray - * @instance - */ - BitArray.prototype.bits = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * BitArray elems. - * @member {Array.} elems - * @memberof tendermint.libs.bits.BitArray - * @instance - */ - BitArray.prototype.elems = $util.emptyArray; - - /** - * Encodes the specified BitArray message. Does not implicitly {@link tendermint.libs.bits.BitArray.verify|verify} messages. - * @function encode - * @memberof tendermint.libs.bits.BitArray - * @static - * @param {tendermint.libs.bits.IBitArray} message BitArray message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - BitArray.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.bits != null && Object.hasOwnProperty.call(message, "bits")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.bits); - if (message.elems != null && message.elems.length) { - writer.uint32(/* id 2, wireType 2 =*/18).fork(); - for (var i = 0; i < message.elems.length; ++i) - writer.uint64(message.elems[i]); - writer.ldelim(); - } - return writer; - }; - - /** - * Encodes the specified BitArray message, length delimited. Does not implicitly {@link tendermint.libs.bits.BitArray.verify|verify} messages. - * @function encodeDelimited - * @memberof tendermint.libs.bits.BitArray - * @static - * @param {tendermint.libs.bits.IBitArray} message BitArray message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - BitArray.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a BitArray message from the specified reader or buffer. - * @function decode - * @memberof tendermint.libs.bits.BitArray - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {tendermint.libs.bits.BitArray} BitArray - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - BitArray.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.tendermint.libs.bits.BitArray(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.bits = reader.int64(); - break; - case 2: - if (!(message.elems && message.elems.length)) - message.elems = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.elems.push(reader.uint64()); - } else - message.elems.push(reader.uint64()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a BitArray message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof tendermint.libs.bits.BitArray - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tendermint.libs.bits.BitArray} BitArray - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - BitArray.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a BitArray message. - * @function verify - * @memberof tendermint.libs.bits.BitArray - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - BitArray.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.bits != null && message.hasOwnProperty("bits")) - if (!$util.isInteger(message.bits) && !(message.bits && $util.isInteger(message.bits.low) && $util.isInteger(message.bits.high))) - return "bits: integer|Long expected"; - if (message.elems != null && message.hasOwnProperty("elems")) { - if (!Array.isArray(message.elems)) - return "elems: array expected"; - for (var i = 0; i < message.elems.length; ++i) - if (!$util.isInteger(message.elems[i]) && !(message.elems[i] && $util.isInteger(message.elems[i].low) && $util.isInteger(message.elems[i].high))) - return "elems: integer|Long[] expected"; - } - return null; - }; - - /** - * Creates a BitArray message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof tendermint.libs.bits.BitArray - * @static - * @param {Object.} object Plain object - * @returns {tendermint.libs.bits.BitArray} BitArray - */ - BitArray.fromObject = function fromObject(object) { - if (object instanceof $root.tendermint.libs.bits.BitArray) - return object; - var message = new $root.tendermint.libs.bits.BitArray(); - if (object.bits != null) - if ($util.Long) - (message.bits = $util.Long.fromValue(object.bits)).unsigned = false; - else if (typeof object.bits === "string") - message.bits = parseInt(object.bits, 10); - else if (typeof object.bits === "number") - message.bits = object.bits; - else if (typeof object.bits === "object") - message.bits = new $util.LongBits(object.bits.low >>> 0, object.bits.high >>> 0).toNumber(); - if (object.elems) { - if (!Array.isArray(object.elems)) - throw TypeError(".tendermint.libs.bits.BitArray.elems: array expected"); - message.elems = []; - for (var i = 0; i < object.elems.length; ++i) - if ($util.Long) - (message.elems[i] = $util.Long.fromValue(object.elems[i])).unsigned = true; - else if (typeof object.elems[i] === "string") - message.elems[i] = parseInt(object.elems[i], 10); - else if (typeof object.elems[i] === "number") - message.elems[i] = object.elems[i]; - else if (typeof object.elems[i] === "object") - message.elems[i] = new $util.LongBits(object.elems[i].low >>> 0, object.elems[i].high >>> 0).toNumber(true); - } - return message; - }; - - /** - * Creates a plain object from a BitArray message. Also converts values to other types if specified. - * @function toObject - * @memberof tendermint.libs.bits.BitArray - * @static - * @param {tendermint.libs.bits.BitArray} message BitArray - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - BitArray.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.elems = []; - if (options.defaults) - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.bits = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.bits = options.longs === String ? "0" : 0; - if (message.bits != null && message.hasOwnProperty("bits")) - if (typeof message.bits === "number") - object.bits = options.longs === String ? String(message.bits) : message.bits; - else - object.bits = options.longs === String ? $util.Long.prototype.toString.call(message.bits) : options.longs === Number ? new $util.LongBits(message.bits.low >>> 0, message.bits.high >>> 0).toNumber() : message.bits; - if (message.elems && message.elems.length) { - object.elems = []; - for (var j = 0; j < message.elems.length; ++j) - if (typeof message.elems[j] === "number") - object.elems[j] = options.longs === String ? String(message.elems[j]) : message.elems[j]; - else - object.elems[j] = options.longs === String ? $util.Long.prototype.toString.call(message.elems[j]) : options.longs === Number ? new $util.LongBits(message.elems[j].low >>> 0, message.elems[j].high >>> 0).toNumber(true) : message.elems[j]; - } - return object; - }; - - /** - * Converts this BitArray to JSON. - * @function toJSON - * @memberof tendermint.libs.bits.BitArray - * @instance - * @returns {Object.} JSON object - */ - BitArray.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return BitArray; - })(); - - return bits; - })(); - - return libs; - })(); - return tendermint; })(); diff --git a/src/generated/ibc/proto.d.ts b/src/generated/ibc/proto.d.ts index 9881e4df..e841ada2 100644 --- a/src/generated/ibc/proto.d.ts +++ b/src/generated/ibc/proto.d.ts @@ -60,6 +60,20 @@ export namespace cosmos { * @returns Promise */ public submitProposal(request: cosmos.adminmodule.adminmodule.IMsgSubmitProposal): Promise; + + /** + * Calls SubmitProposalLegacy. + * @param request MsgSubmitProposalLegacy message or plain object + * @param callback Node-style callback called with the error, if any, and MsgSubmitProposalLegacyResponse + */ + public submitProposalLegacy(request: cosmos.adminmodule.adminmodule.IMsgSubmitProposalLegacy, callback: cosmos.adminmodule.adminmodule.Msg.SubmitProposalLegacyCallback): void; + + /** + * Calls SubmitProposalLegacy. + * @param request MsgSubmitProposalLegacy message or plain object + * @returns Promise + */ + public submitProposalLegacy(request: cosmos.adminmodule.adminmodule.IMsgSubmitProposalLegacy): Promise; } namespace Msg { @@ -84,6 +98,13 @@ export namespace cosmos { * @param [response] MsgSubmitProposalResponse */ type SubmitProposalCallback = (error: (Error|null), response?: cosmos.adminmodule.adminmodule.MsgSubmitProposalResponse) => void; + + /** + * Callback as used by {@link cosmos.adminmodule.adminmodule.Msg#submitProposalLegacy}. + * @param error Error, if any + * @param [response] MsgSubmitProposalLegacyResponse + */ + type SubmitProposalLegacyCallback = (error: (Error|null), response?: cosmos.adminmodule.adminmodule.MsgSubmitProposalLegacyResponse) => void; } /** Properties of a MsgDeleteAdmin. */ @@ -418,11 +439,183 @@ export namespace cosmos { public toJSON(): { [k: string]: any }; } + /** Properties of a MsgSubmitProposalLegacy. */ + interface IMsgSubmitProposalLegacy { + + /** MsgSubmitProposalLegacy content */ + content?: (google.protobuf.IAny|null); + + /** MsgSubmitProposalLegacy proposer */ + proposer?: (string|null); + } + + /** Represents a MsgSubmitProposalLegacy. */ + class MsgSubmitProposalLegacy implements IMsgSubmitProposalLegacy { + + /** + * Constructs a new MsgSubmitProposalLegacy. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos.adminmodule.adminmodule.IMsgSubmitProposalLegacy); + + /** MsgSubmitProposalLegacy content. */ + public content?: (google.protobuf.IAny|null); + + /** MsgSubmitProposalLegacy proposer. */ + public proposer: string; + + /** + * Encodes the specified MsgSubmitProposalLegacy message. Does not implicitly {@link cosmos.adminmodule.adminmodule.MsgSubmitProposalLegacy.verify|verify} messages. + * @param message MsgSubmitProposalLegacy message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: cosmos.adminmodule.adminmodule.IMsgSubmitProposalLegacy, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MsgSubmitProposalLegacy message, length delimited. Does not implicitly {@link cosmos.adminmodule.adminmodule.MsgSubmitProposalLegacy.verify|verify} messages. + * @param message MsgSubmitProposalLegacy message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: cosmos.adminmodule.adminmodule.IMsgSubmitProposalLegacy, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MsgSubmitProposalLegacy message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MsgSubmitProposalLegacy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): cosmos.adminmodule.adminmodule.MsgSubmitProposalLegacy; + + /** + * Decodes a MsgSubmitProposalLegacy message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MsgSubmitProposalLegacy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): cosmos.adminmodule.adminmodule.MsgSubmitProposalLegacy; + + /** + * Verifies a MsgSubmitProposalLegacy message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a MsgSubmitProposalLegacy message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MsgSubmitProposalLegacy + */ + public static fromObject(object: { [k: string]: any }): cosmos.adminmodule.adminmodule.MsgSubmitProposalLegacy; + + /** + * Creates a plain object from a MsgSubmitProposalLegacy message. Also converts values to other types if specified. + * @param message MsgSubmitProposalLegacy + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: cosmos.adminmodule.adminmodule.MsgSubmitProposalLegacy, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MsgSubmitProposalLegacy to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a MsgSubmitProposalLegacyResponse. */ + interface IMsgSubmitProposalLegacyResponse { + + /** MsgSubmitProposalLegacyResponse proposal_id */ + proposal_id?: (Long|null); + } + + /** Represents a MsgSubmitProposalLegacyResponse. */ + class MsgSubmitProposalLegacyResponse implements IMsgSubmitProposalLegacyResponse { + + /** + * Constructs a new MsgSubmitProposalLegacyResponse. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos.adminmodule.adminmodule.IMsgSubmitProposalLegacyResponse); + + /** MsgSubmitProposalLegacyResponse proposal_id. */ + public proposal_id: Long; + + /** + * Encodes the specified MsgSubmitProposalLegacyResponse message. Does not implicitly {@link cosmos.adminmodule.adminmodule.MsgSubmitProposalLegacyResponse.verify|verify} messages. + * @param message MsgSubmitProposalLegacyResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: cosmos.adminmodule.adminmodule.IMsgSubmitProposalLegacyResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MsgSubmitProposalLegacyResponse message, length delimited. Does not implicitly {@link cosmos.adminmodule.adminmodule.MsgSubmitProposalLegacyResponse.verify|verify} messages. + * @param message MsgSubmitProposalLegacyResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: cosmos.adminmodule.adminmodule.IMsgSubmitProposalLegacyResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MsgSubmitProposalLegacyResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MsgSubmitProposalLegacyResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): cosmos.adminmodule.adminmodule.MsgSubmitProposalLegacyResponse; + + /** + * Decodes a MsgSubmitProposalLegacyResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MsgSubmitProposalLegacyResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): cosmos.adminmodule.adminmodule.MsgSubmitProposalLegacyResponse; + + /** + * Verifies a MsgSubmitProposalLegacyResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a MsgSubmitProposalLegacyResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MsgSubmitProposalLegacyResponse + */ + public static fromObject(object: { [k: string]: any }): cosmos.adminmodule.adminmodule.MsgSubmitProposalLegacyResponse; + + /** + * Creates a plain object from a MsgSubmitProposalLegacyResponse message. Also converts values to other types if specified. + * @param message MsgSubmitProposalLegacyResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: cosmos.adminmodule.adminmodule.MsgSubmitProposalLegacyResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MsgSubmitProposalLegacyResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + /** Properties of a MsgSubmitProposal. */ interface IMsgSubmitProposal { - /** MsgSubmitProposal content */ - content?: (google.protobuf.IAny|null); + /** MsgSubmitProposal messages */ + messages?: (google.protobuf.IAny[]|null); /** MsgSubmitProposal proposer */ proposer?: (string|null); @@ -437,8 +630,8 @@ export namespace cosmos { */ constructor(properties?: cosmos.adminmodule.adminmodule.IMsgSubmitProposal); - /** MsgSubmitProposal content. */ - public content?: (google.protobuf.IAny|null); + /** MsgSubmitProposal messages. */ + public messages: google.protobuf.IAny[]; /** MsgSubmitProposal proposer. */ public proposer: string; @@ -628,6 +821,20 @@ export namespace cosmos { * @returns Promise */ public archivedProposals(request: cosmos.adminmodule.adminmodule.IQueryArchivedProposalsRequest): Promise; + + /** + * Calls ArchivedProposalsLegacy. + * @param request QueryArchivedProposalsLegacyRequest message or plain object + * @param callback Node-style callback called with the error, if any, and QueryArchivedProposalsLegacyResponse + */ + public archivedProposalsLegacy(request: cosmos.adminmodule.adminmodule.IQueryArchivedProposalsLegacyRequest, callback: cosmos.adminmodule.adminmodule.Query.ArchivedProposalsLegacyCallback): void; + + /** + * Calls ArchivedProposalsLegacy. + * @param request QueryArchivedProposalsLegacyRequest message or plain object + * @returns Promise + */ + public archivedProposalsLegacy(request: cosmos.adminmodule.adminmodule.IQueryArchivedProposalsLegacyRequest): Promise; } namespace Query { @@ -645,6 +852,13 @@ export namespace cosmos { * @param [response] QueryArchivedProposalsResponse */ type ArchivedProposalsCallback = (error: (Error|null), response?: cosmos.adminmodule.adminmodule.QueryArchivedProposalsResponse) => void; + + /** + * Callback as used by {@link cosmos.adminmodule.adminmodule.Query#archivedProposalsLegacy}. + * @param error Error, if any + * @param [response] QueryArchivedProposalsLegacyResponse + */ + type ArchivedProposalsLegacyCallback = (error: (Error|null), response?: cosmos.adminmodule.adminmodule.QueryArchivedProposalsLegacyResponse) => void; } /** Properties of a QueryAdminsRequest. */ @@ -884,11 +1098,171 @@ export namespace cosmos { public toJSON(): { [k: string]: any }; } + /** Properties of a QueryArchivedProposalsLegacyRequest. */ + interface IQueryArchivedProposalsLegacyRequest { + } + + /** Represents a QueryArchivedProposalsLegacyRequest. */ + class QueryArchivedProposalsLegacyRequest implements IQueryArchivedProposalsLegacyRequest { + + /** + * Constructs a new QueryArchivedProposalsLegacyRequest. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos.adminmodule.adminmodule.IQueryArchivedProposalsLegacyRequest); + + /** + * Encodes the specified QueryArchivedProposalsLegacyRequest message. Does not implicitly {@link cosmos.adminmodule.adminmodule.QueryArchivedProposalsLegacyRequest.verify|verify} messages. + * @param message QueryArchivedProposalsLegacyRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: cosmos.adminmodule.adminmodule.IQueryArchivedProposalsLegacyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified QueryArchivedProposalsLegacyRequest message, length delimited. Does not implicitly {@link cosmos.adminmodule.adminmodule.QueryArchivedProposalsLegacyRequest.verify|verify} messages. + * @param message QueryArchivedProposalsLegacyRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: cosmos.adminmodule.adminmodule.IQueryArchivedProposalsLegacyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a QueryArchivedProposalsLegacyRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns QueryArchivedProposalsLegacyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): cosmos.adminmodule.adminmodule.QueryArchivedProposalsLegacyRequest; + + /** + * Decodes a QueryArchivedProposalsLegacyRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns QueryArchivedProposalsLegacyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): cosmos.adminmodule.adminmodule.QueryArchivedProposalsLegacyRequest; + + /** + * Verifies a QueryArchivedProposalsLegacyRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a QueryArchivedProposalsLegacyRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns QueryArchivedProposalsLegacyRequest + */ + public static fromObject(object: { [k: string]: any }): cosmos.adminmodule.adminmodule.QueryArchivedProposalsLegacyRequest; + + /** + * Creates a plain object from a QueryArchivedProposalsLegacyRequest message. Also converts values to other types if specified. + * @param message QueryArchivedProposalsLegacyRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: cosmos.adminmodule.adminmodule.QueryArchivedProposalsLegacyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this QueryArchivedProposalsLegacyRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a QueryProposalsResponse. */ + interface IQueryProposalsResponse { + + /** QueryProposalsResponse proposals */ + proposals?: (cosmos.gov.v1.IProposal[]|null); + } + + /** Represents a QueryProposalsResponse. */ + class QueryProposalsResponse implements IQueryProposalsResponse { + + /** + * Constructs a new QueryProposalsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos.adminmodule.adminmodule.IQueryProposalsResponse); + + /** QueryProposalsResponse proposals. */ + public proposals: cosmos.gov.v1.IProposal[]; + + /** + * Encodes the specified QueryProposalsResponse message. Does not implicitly {@link cosmos.adminmodule.adminmodule.QueryProposalsResponse.verify|verify} messages. + * @param message QueryProposalsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: cosmos.adminmodule.adminmodule.IQueryProposalsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified QueryProposalsResponse message, length delimited. Does not implicitly {@link cosmos.adminmodule.adminmodule.QueryProposalsResponse.verify|verify} messages. + * @param message QueryProposalsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: cosmos.adminmodule.adminmodule.IQueryProposalsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a QueryProposalsResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns QueryProposalsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): cosmos.adminmodule.adminmodule.QueryProposalsResponse; + + /** + * Decodes a QueryProposalsResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns QueryProposalsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): cosmos.adminmodule.adminmodule.QueryProposalsResponse; + + /** + * Verifies a QueryProposalsResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a QueryProposalsResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns QueryProposalsResponse + */ + public static fromObject(object: { [k: string]: any }): cosmos.adminmodule.adminmodule.QueryProposalsResponse; + + /** + * Creates a plain object from a QueryProposalsResponse message. Also converts values to other types if specified. + * @param message QueryProposalsResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: cosmos.adminmodule.adminmodule.QueryProposalsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this QueryProposalsResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + /** Properties of a QueryArchivedProposalsResponse. */ interface IQueryArchivedProposalsResponse { /** QueryArchivedProposalsResponse proposals */ - proposals?: (cosmos.gov.v1beta1.IProposal[]|null); + proposals?: (cosmos.gov.v1.IProposal[]|null); } /** Represents a QueryArchivedProposalsResponse. */ @@ -901,7 +1275,7 @@ export namespace cosmos { constructor(properties?: cosmos.adminmodule.adminmodule.IQueryArchivedProposalsResponse); /** QueryArchivedProposalsResponse proposals. */ - public proposals: cosmos.gov.v1beta1.IProposal[]; + public proposals: cosmos.gov.v1.IProposal[]; /** * Encodes the specified QueryArchivedProposalsResponse message. Does not implicitly {@link cosmos.adminmodule.adminmodule.QueryArchivedProposalsResponse.verify|verify} messages. @@ -967,6 +1341,89 @@ export namespace cosmos { public toJSON(): { [k: string]: any }; } + /** Properties of a QueryArchivedProposalsLegacyResponse. */ + interface IQueryArchivedProposalsLegacyResponse { + + /** QueryArchivedProposalsLegacyResponse proposalsLegacy */ + proposalsLegacy?: (cosmos.gov.v1beta1.IProposal[]|null); + } + + /** Represents a QueryArchivedProposalsLegacyResponse. */ + class QueryArchivedProposalsLegacyResponse implements IQueryArchivedProposalsLegacyResponse { + + /** + * Constructs a new QueryArchivedProposalsLegacyResponse. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos.adminmodule.adminmodule.IQueryArchivedProposalsLegacyResponse); + + /** QueryArchivedProposalsLegacyResponse proposalsLegacy. */ + public proposalsLegacy: cosmos.gov.v1beta1.IProposal[]; + + /** + * Encodes the specified QueryArchivedProposalsLegacyResponse message. Does not implicitly {@link cosmos.adminmodule.adminmodule.QueryArchivedProposalsLegacyResponse.verify|verify} messages. + * @param message QueryArchivedProposalsLegacyResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: cosmos.adminmodule.adminmodule.IQueryArchivedProposalsLegacyResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified QueryArchivedProposalsLegacyResponse message, length delimited. Does not implicitly {@link cosmos.adminmodule.adminmodule.QueryArchivedProposalsLegacyResponse.verify|verify} messages. + * @param message QueryArchivedProposalsLegacyResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: cosmos.adminmodule.adminmodule.IQueryArchivedProposalsLegacyResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a QueryArchivedProposalsLegacyResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns QueryArchivedProposalsLegacyResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): cosmos.adminmodule.adminmodule.QueryArchivedProposalsLegacyResponse; + + /** + * Decodes a QueryArchivedProposalsLegacyResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns QueryArchivedProposalsLegacyResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): cosmos.adminmodule.adminmodule.QueryArchivedProposalsLegacyResponse; + + /** + * Verifies a QueryArchivedProposalsLegacyResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a QueryArchivedProposalsLegacyResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns QueryArchivedProposalsLegacyResponse + */ + public static fromObject(object: { [k: string]: any }): cosmos.adminmodule.adminmodule.QueryArchivedProposalsLegacyResponse; + + /** + * Creates a plain object from a QueryArchivedProposalsLegacyResponse message. Also converts values to other types if specified. + * @param message QueryArchivedProposalsLegacyResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: cosmos.adminmodule.adminmodule.QueryArchivedProposalsLegacyResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this QueryArchivedProposalsLegacyResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + /** Properties of a GenesisState. */ interface IGenesisState { @@ -1950,844 +2407,969 @@ export namespace cosmos { public toJSON(): { [k: string]: any }; } } - } - /** Namespace base. */ - namespace base { + /** Namespace v1. */ + namespace v1 { - /** Namespace v1beta1. */ - namespace v1beta1 { + /** VoteOption enum. */ + enum VoteOption { + VOTE_OPTION_UNSPECIFIED = 0, + VOTE_OPTION_YES = 1, + VOTE_OPTION_ABSTAIN = 2, + VOTE_OPTION_NO = 3, + VOTE_OPTION_NO_WITH_VETO = 4 + } - /** Properties of a Coin. */ - interface ICoin { + /** Properties of a WeightedVoteOption. */ + interface IWeightedVoteOption { - /** Coin denom */ - denom?: (string|null); + /** WeightedVoteOption option */ + option?: (cosmos.gov.v1.VoteOption|null); - /** Coin amount */ - amount?: (string|null); + /** WeightedVoteOption weight */ + weight?: (string|null); } - /** Represents a Coin. */ - class Coin implements ICoin { + /** Represents a WeightedVoteOption. */ + class WeightedVoteOption implements IWeightedVoteOption { /** - * Constructs a new Coin. + * Constructs a new WeightedVoteOption. * @param [properties] Properties to set */ - constructor(properties?: cosmos.base.v1beta1.ICoin); + constructor(properties?: cosmos.gov.v1.IWeightedVoteOption); - /** Coin denom. */ - public denom: string; + /** WeightedVoteOption option. */ + public option: cosmos.gov.v1.VoteOption; - /** Coin amount. */ - public amount: string; + /** WeightedVoteOption weight. */ + public weight: string; /** - * Encodes the specified Coin message. Does not implicitly {@link cosmos.base.v1beta1.Coin.verify|verify} messages. - * @param message Coin message or plain object to encode + * Encodes the specified WeightedVoteOption message. Does not implicitly {@link cosmos.gov.v1.WeightedVoteOption.verify|verify} messages. + * @param message WeightedVoteOption message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: cosmos.base.v1beta1.ICoin, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: cosmos.gov.v1.IWeightedVoteOption, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Coin message, length delimited. Does not implicitly {@link cosmos.base.v1beta1.Coin.verify|verify} messages. - * @param message Coin message or plain object to encode + * Encodes the specified WeightedVoteOption message, length delimited. Does not implicitly {@link cosmos.gov.v1.WeightedVoteOption.verify|verify} messages. + * @param message WeightedVoteOption message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: cosmos.base.v1beta1.ICoin, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: cosmos.gov.v1.IWeightedVoteOption, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Coin message from the specified reader or buffer. + * Decodes a WeightedVoteOption message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Coin + * @returns WeightedVoteOption * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): cosmos.base.v1beta1.Coin; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): cosmos.gov.v1.WeightedVoteOption; /** - * Decodes a Coin message from the specified reader or buffer, length delimited. + * Decodes a WeightedVoteOption message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Coin + * @returns WeightedVoteOption * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): cosmos.base.v1beta1.Coin; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): cosmos.gov.v1.WeightedVoteOption; /** - * Verifies a Coin message. + * Verifies a WeightedVoteOption message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a Coin message from a plain object. Also converts values to their respective internal types. + * Creates a WeightedVoteOption message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Coin + * @returns WeightedVoteOption */ - public static fromObject(object: { [k: string]: any }): cosmos.base.v1beta1.Coin; + public static fromObject(object: { [k: string]: any }): cosmos.gov.v1.WeightedVoteOption; /** - * Creates a plain object from a Coin message. Also converts values to other types if specified. - * @param message Coin + * Creates a plain object from a WeightedVoteOption message. Also converts values to other types if specified. + * @param message WeightedVoteOption * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: cosmos.base.v1beta1.Coin, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: cosmos.gov.v1.WeightedVoteOption, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Coin to JSON. + * Converts this WeightedVoteOption to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DecCoin. */ - interface IDecCoin { + /** Properties of a Deposit. */ + interface IDeposit { - /** DecCoin denom */ - denom?: (string|null); + /** Deposit proposal_id */ + proposal_id?: (Long|null); - /** DecCoin amount */ - amount?: (string|null); + /** Deposit depositor */ + depositor?: (string|null); + + /** Deposit amount */ + amount?: (cosmos.base.v1beta1.ICoin[]|null); } - /** Represents a DecCoin. */ - class DecCoin implements IDecCoin { + /** Represents a Deposit. */ + class Deposit implements IDeposit { /** - * Constructs a new DecCoin. + * Constructs a new Deposit. * @param [properties] Properties to set */ - constructor(properties?: cosmos.base.v1beta1.IDecCoin); + constructor(properties?: cosmos.gov.v1.IDeposit); - /** DecCoin denom. */ - public denom: string; + /** Deposit proposal_id. */ + public proposal_id: Long; - /** DecCoin amount. */ - public amount: string; + /** Deposit depositor. */ + public depositor: string; + + /** Deposit amount. */ + public amount: cosmos.base.v1beta1.ICoin[]; /** - * Encodes the specified DecCoin message. Does not implicitly {@link cosmos.base.v1beta1.DecCoin.verify|verify} messages. - * @param message DecCoin message or plain object to encode + * Encodes the specified Deposit message. Does not implicitly {@link cosmos.gov.v1.Deposit.verify|verify} messages. + * @param message Deposit message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: cosmos.base.v1beta1.IDecCoin, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: cosmos.gov.v1.IDeposit, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DecCoin message, length delimited. Does not implicitly {@link cosmos.base.v1beta1.DecCoin.verify|verify} messages. - * @param message DecCoin message or plain object to encode + * Encodes the specified Deposit message, length delimited. Does not implicitly {@link cosmos.gov.v1.Deposit.verify|verify} messages. + * @param message Deposit message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: cosmos.base.v1beta1.IDecCoin, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: cosmos.gov.v1.IDeposit, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DecCoin message from the specified reader or buffer. + * Decodes a Deposit message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DecCoin + * @returns Deposit * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): cosmos.base.v1beta1.DecCoin; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): cosmos.gov.v1.Deposit; /** - * Decodes a DecCoin message from the specified reader or buffer, length delimited. + * Decodes a Deposit message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DecCoin + * @returns Deposit * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): cosmos.base.v1beta1.DecCoin; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): cosmos.gov.v1.Deposit; /** - * Verifies a DecCoin message. + * Verifies a Deposit message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DecCoin message from a plain object. Also converts values to their respective internal types. + * Creates a Deposit message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DecCoin + * @returns Deposit */ - public static fromObject(object: { [k: string]: any }): cosmos.base.v1beta1.DecCoin; + public static fromObject(object: { [k: string]: any }): cosmos.gov.v1.Deposit; /** - * Creates a plain object from a DecCoin message. Also converts values to other types if specified. - * @param message DecCoin + * Creates a plain object from a Deposit message. Also converts values to other types if specified. + * @param message Deposit * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: cosmos.base.v1beta1.DecCoin, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: cosmos.gov.v1.Deposit, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DecCoin to JSON. + * Converts this Deposit to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an IntProto. */ - interface IIntProto { + /** Properties of a Proposal. */ + interface IProposal { - /** IntProto int */ - int?: (string|null); + /** Proposal id */ + id?: (Long|null); + + /** Proposal messages */ + messages?: (google.protobuf.IAny[]|null); + + /** Proposal status */ + status?: (cosmos.gov.v1.ProposalStatus|null); + + /** Proposal final_tally_result */ + final_tally_result?: (cosmos.gov.v1.ITallyResult|null); + + /** Proposal submit_time */ + submit_time?: (google.protobuf.ITimestamp|null); + + /** Proposal deposit_end_time */ + deposit_end_time?: (google.protobuf.ITimestamp|null); + + /** Proposal total_deposit */ + total_deposit?: (cosmos.base.v1beta1.ICoin[]|null); + + /** Proposal voting_start_time */ + voting_start_time?: (google.protobuf.ITimestamp|null); + + /** Proposal voting_end_time */ + voting_end_time?: (google.protobuf.ITimestamp|null); + + /** Proposal metadata */ + metadata?: (string|null); + + /** Proposal title */ + title?: (string|null); + + /** Proposal summary */ + summary?: (string|null); + + /** Proposal proposer */ + proposer?: (string|null); } - /** Represents an IntProto. */ - class IntProto implements IIntProto { + /** Represents a Proposal. */ + class Proposal implements IProposal { /** - * Constructs a new IntProto. + * Constructs a new Proposal. * @param [properties] Properties to set */ - constructor(properties?: cosmos.base.v1beta1.IIntProto); + constructor(properties?: cosmos.gov.v1.IProposal); - /** IntProto int. */ - public int: string; + /** Proposal id. */ + public id: Long; + + /** Proposal messages. */ + public messages: google.protobuf.IAny[]; + + /** Proposal status. */ + public status: cosmos.gov.v1.ProposalStatus; + + /** Proposal final_tally_result. */ + public final_tally_result?: (cosmos.gov.v1.ITallyResult|null); + + /** Proposal submit_time. */ + public submit_time?: (google.protobuf.ITimestamp|null); + + /** Proposal deposit_end_time. */ + public deposit_end_time?: (google.protobuf.ITimestamp|null); + + /** Proposal total_deposit. */ + public total_deposit: cosmos.base.v1beta1.ICoin[]; + + /** Proposal voting_start_time. */ + public voting_start_time?: (google.protobuf.ITimestamp|null); + + /** Proposal voting_end_time. */ + public voting_end_time?: (google.protobuf.ITimestamp|null); + + /** Proposal metadata. */ + public metadata: string; + + /** Proposal title. */ + public title: string; + + /** Proposal summary. */ + public summary: string; + + /** Proposal proposer. */ + public proposer: string; /** - * Encodes the specified IntProto message. Does not implicitly {@link cosmos.base.v1beta1.IntProto.verify|verify} messages. - * @param message IntProto message or plain object to encode + * Encodes the specified Proposal message. Does not implicitly {@link cosmos.gov.v1.Proposal.verify|verify} messages. + * @param message Proposal message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: cosmos.base.v1beta1.IIntProto, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: cosmos.gov.v1.IProposal, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified IntProto message, length delimited. Does not implicitly {@link cosmos.base.v1beta1.IntProto.verify|verify} messages. - * @param message IntProto message or plain object to encode + * Encodes the specified Proposal message, length delimited. Does not implicitly {@link cosmos.gov.v1.Proposal.verify|verify} messages. + * @param message Proposal message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: cosmos.base.v1beta1.IIntProto, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: cosmos.gov.v1.IProposal, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an IntProto message from the specified reader or buffer. + * Decodes a Proposal message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns IntProto + * @returns Proposal * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): cosmos.base.v1beta1.IntProto; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): cosmos.gov.v1.Proposal; /** - * Decodes an IntProto message from the specified reader or buffer, length delimited. + * Decodes a Proposal message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns IntProto + * @returns Proposal * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): cosmos.base.v1beta1.IntProto; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): cosmos.gov.v1.Proposal; /** - * Verifies an IntProto message. + * Verifies a Proposal message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an IntProto message from a plain object. Also converts values to their respective internal types. + * Creates a Proposal message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns IntProto + * @returns Proposal */ - public static fromObject(object: { [k: string]: any }): cosmos.base.v1beta1.IntProto; + public static fromObject(object: { [k: string]: any }): cosmos.gov.v1.Proposal; /** - * Creates a plain object from an IntProto message. Also converts values to other types if specified. - * @param message IntProto + * Creates a plain object from a Proposal message. Also converts values to other types if specified. + * @param message Proposal * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: cosmos.base.v1beta1.IntProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: cosmos.gov.v1.Proposal, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this IntProto to JSON. + * Converts this Proposal to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DecProto. */ - interface IDecProto { + /** ProposalStatus enum. */ + enum ProposalStatus { + PROPOSAL_STATUS_UNSPECIFIED = 0, + PROPOSAL_STATUS_DEPOSIT_PERIOD = 1, + PROPOSAL_STATUS_VOTING_PERIOD = 2, + PROPOSAL_STATUS_PASSED = 3, + PROPOSAL_STATUS_REJECTED = 4, + PROPOSAL_STATUS_FAILED = 5 + } - /** DecProto dec */ - dec?: (string|null); + /** Properties of a TallyResult. */ + interface ITallyResult { + + /** TallyResult yes_count */ + yes_count?: (string|null); + + /** TallyResult abstain_count */ + abstain_count?: (string|null); + + /** TallyResult no_count */ + no_count?: (string|null); + + /** TallyResult no_with_veto_count */ + no_with_veto_count?: (string|null); } - /** Represents a DecProto. */ - class DecProto implements IDecProto { + /** Represents a TallyResult. */ + class TallyResult implements ITallyResult { /** - * Constructs a new DecProto. + * Constructs a new TallyResult. * @param [properties] Properties to set */ - constructor(properties?: cosmos.base.v1beta1.IDecProto); + constructor(properties?: cosmos.gov.v1.ITallyResult); - /** DecProto dec. */ - public dec: string; + /** TallyResult yes_count. */ + public yes_count: string; + + /** TallyResult abstain_count. */ + public abstain_count: string; + + /** TallyResult no_count. */ + public no_count: string; + + /** TallyResult no_with_veto_count. */ + public no_with_veto_count: string; /** - * Encodes the specified DecProto message. Does not implicitly {@link cosmos.base.v1beta1.DecProto.verify|verify} messages. - * @param message DecProto message or plain object to encode + * Encodes the specified TallyResult message. Does not implicitly {@link cosmos.gov.v1.TallyResult.verify|verify} messages. + * @param message TallyResult message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: cosmos.base.v1beta1.IDecProto, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: cosmos.gov.v1.ITallyResult, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DecProto message, length delimited. Does not implicitly {@link cosmos.base.v1beta1.DecProto.verify|verify} messages. - * @param message DecProto message or plain object to encode + * Encodes the specified TallyResult message, length delimited. Does not implicitly {@link cosmos.gov.v1.TallyResult.verify|verify} messages. + * @param message TallyResult message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: cosmos.base.v1beta1.IDecProto, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: cosmos.gov.v1.ITallyResult, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DecProto message from the specified reader or buffer. + * Decodes a TallyResult message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DecProto + * @returns TallyResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): cosmos.base.v1beta1.DecProto; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): cosmos.gov.v1.TallyResult; /** - * Decodes a DecProto message from the specified reader or buffer, length delimited. + * Decodes a TallyResult message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DecProto + * @returns TallyResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): cosmos.base.v1beta1.DecProto; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): cosmos.gov.v1.TallyResult; /** - * Verifies a DecProto message. + * Verifies a TallyResult message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DecProto message from a plain object. Also converts values to their respective internal types. + * Creates a TallyResult message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DecProto + * @returns TallyResult */ - public static fromObject(object: { [k: string]: any }): cosmos.base.v1beta1.DecProto; + public static fromObject(object: { [k: string]: any }): cosmos.gov.v1.TallyResult; /** - * Creates a plain object from a DecProto message. Also converts values to other types if specified. - * @param message DecProto + * Creates a plain object from a TallyResult message. Also converts values to other types if specified. + * @param message TallyResult * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: cosmos.base.v1beta1.DecProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: cosmos.gov.v1.TallyResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DecProto to JSON. + * Converts this TallyResult to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - } - /** Namespace query. */ - namespace query { + /** Properties of a Vote. */ + interface IVote { - /** Namespace v1beta1. */ - namespace v1beta1 { + /** Vote proposal_id */ + proposal_id?: (Long|null); - /** Properties of a PageRequest. */ - interface IPageRequest { + /** Vote voter */ + voter?: (string|null); - /** PageRequest key */ - key?: (Uint8Array|null); + /** Vote options */ + options?: (cosmos.gov.v1.IWeightedVoteOption[]|null); - /** PageRequest offset */ - offset?: (Long|null); + /** Vote metadata */ + metadata?: (string|null); + } - /** PageRequest limit */ - limit?: (Long|null); + /** Represents a Vote. */ + class Vote implements IVote { - /** PageRequest count_total */ - count_total?: (boolean|null); - } + /** + * Constructs a new Vote. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos.gov.v1.IVote); - /** Represents a PageRequest. */ - class PageRequest implements IPageRequest { + /** Vote proposal_id. */ + public proposal_id: Long; - /** - * Constructs a new PageRequest. - * @param [properties] Properties to set - */ - constructor(properties?: cosmos.base.query.v1beta1.IPageRequest); + /** Vote voter. */ + public voter: string; - /** PageRequest key. */ - public key: Uint8Array; + /** Vote options. */ + public options: cosmos.gov.v1.IWeightedVoteOption[]; - /** PageRequest offset. */ - public offset: Long; + /** Vote metadata. */ + public metadata: string; - /** PageRequest limit. */ - public limit: Long; + /** + * Encodes the specified Vote message. Does not implicitly {@link cosmos.gov.v1.Vote.verify|verify} messages. + * @param message Vote message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: cosmos.gov.v1.IVote, writer?: $protobuf.Writer): $protobuf.Writer; - /** PageRequest count_total. */ - public count_total: boolean; + /** + * Encodes the specified Vote message, length delimited. Does not implicitly {@link cosmos.gov.v1.Vote.verify|verify} messages. + * @param message Vote message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: cosmos.gov.v1.IVote, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified PageRequest message. Does not implicitly {@link cosmos.base.query.v1beta1.PageRequest.verify|verify} messages. - * @param message PageRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: cosmos.base.query.v1beta1.IPageRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a Vote message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Vote + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): cosmos.gov.v1.Vote; - /** - * Encodes the specified PageRequest message, length delimited. Does not implicitly {@link cosmos.base.query.v1beta1.PageRequest.verify|verify} messages. - * @param message PageRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: cosmos.base.query.v1beta1.IPageRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a Vote message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Vote + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): cosmos.gov.v1.Vote; - /** - * Decodes a PageRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns PageRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): cosmos.base.query.v1beta1.PageRequest; + /** + * Verifies a Vote message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Decodes a PageRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PageRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): cosmos.base.query.v1beta1.PageRequest; + /** + * Creates a Vote message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Vote + */ + public static fromObject(object: { [k: string]: any }): cosmos.gov.v1.Vote; - /** - * Verifies a PageRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Creates a plain object from a Vote message. Also converts values to other types if specified. + * @param message Vote + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: cosmos.gov.v1.Vote, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Creates a PageRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns PageRequest - */ - public static fromObject(object: { [k: string]: any }): cosmos.base.query.v1beta1.PageRequest; + /** + * Converts this Vote to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** - * Creates a plain object from a PageRequest message. Also converts values to other types if specified. - * @param message PageRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: cosmos.base.query.v1beta1.PageRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Properties of a DepositParams. */ + interface IDepositParams { - /** - * Converts this PageRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** DepositParams min_deposit */ + min_deposit?: (cosmos.base.v1beta1.ICoin[]|null); - /** Properties of a PageResponse. */ - interface IPageResponse { + /** DepositParams max_deposit_period */ + max_deposit_period?: (google.protobuf.IDuration|null); + } - /** PageResponse next_key */ - next_key?: (Uint8Array|null); + /** Represents a DepositParams. */ + class DepositParams implements IDepositParams { - /** PageResponse total */ - total?: (Long|null); - } + /** + * Constructs a new DepositParams. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos.gov.v1.IDepositParams); - /** Represents a PageResponse. */ - class PageResponse implements IPageResponse { + /** DepositParams min_deposit. */ + public min_deposit: cosmos.base.v1beta1.ICoin[]; - /** - * Constructs a new PageResponse. - * @param [properties] Properties to set - */ - constructor(properties?: cosmos.base.query.v1beta1.IPageResponse); + /** DepositParams max_deposit_period. */ + public max_deposit_period?: (google.protobuf.IDuration|null); - /** PageResponse next_key. */ - public next_key: Uint8Array; + /** + * Encodes the specified DepositParams message. Does not implicitly {@link cosmos.gov.v1.DepositParams.verify|verify} messages. + * @param message DepositParams message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: cosmos.gov.v1.IDepositParams, writer?: $protobuf.Writer): $protobuf.Writer; - /** PageResponse total. */ - public total: Long; + /** + * Encodes the specified DepositParams message, length delimited. Does not implicitly {@link cosmos.gov.v1.DepositParams.verify|verify} messages. + * @param message DepositParams message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: cosmos.gov.v1.IDepositParams, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified PageResponse message. Does not implicitly {@link cosmos.base.query.v1beta1.PageResponse.verify|verify} messages. - * @param message PageResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: cosmos.base.query.v1beta1.IPageResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a DepositParams message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DepositParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): cosmos.gov.v1.DepositParams; - /** - * Encodes the specified PageResponse message, length delimited. Does not implicitly {@link cosmos.base.query.v1beta1.PageResponse.verify|verify} messages. - * @param message PageResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: cosmos.base.query.v1beta1.IPageResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a PageResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns PageResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): cosmos.base.query.v1beta1.PageResponse; - - /** - * Decodes a PageResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PageResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): cosmos.base.query.v1beta1.PageResponse; + /** + * Decodes a DepositParams message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DepositParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): cosmos.gov.v1.DepositParams; - /** - * Verifies a PageResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Verifies a DepositParams message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Creates a PageResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns PageResponse - */ - public static fromObject(object: { [k: string]: any }): cosmos.base.query.v1beta1.PageResponse; + /** + * Creates a DepositParams message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DepositParams + */ + public static fromObject(object: { [k: string]: any }): cosmos.gov.v1.DepositParams; - /** - * Creates a plain object from a PageResponse message. Also converts values to other types if specified. - * @param message PageResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: cosmos.base.query.v1beta1.PageResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a plain object from a DepositParams message. Also converts values to other types if specified. + * @param message DepositParams + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: cosmos.gov.v1.DepositParams, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Converts this PageResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * Converts this DepositParams to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; } - } - } - - /** Namespace upgrade. */ - namespace upgrade { - - /** Namespace v1beta1. */ - namespace v1beta1 { - - /** Properties of a Plan. */ - interface IPlan { - - /** Plan name */ - name?: (string|null); - - /** Plan time */ - time?: (google.protobuf.ITimestamp|null); - /** Plan height */ - height?: (Long|null); + /** Properties of a VotingParams. */ + interface IVotingParams { - /** Plan info */ - info?: (string|null); + /** VotingParams voting_period */ + voting_period?: (google.protobuf.IDuration|null); } - /** Represents a Plan. */ - class Plan implements IPlan { + /** Represents a VotingParams. */ + class VotingParams implements IVotingParams { /** - * Constructs a new Plan. + * Constructs a new VotingParams. * @param [properties] Properties to set */ - constructor(properties?: cosmos.upgrade.v1beta1.IPlan); - - /** Plan name. */ - public name: string; - - /** Plan time. */ - public time?: (google.protobuf.ITimestamp|null); - - /** Plan height. */ - public height: Long; + constructor(properties?: cosmos.gov.v1.IVotingParams); - /** Plan info. */ - public info: string; + /** VotingParams voting_period. */ + public voting_period?: (google.protobuf.IDuration|null); /** - * Encodes the specified Plan message. Does not implicitly {@link cosmos.upgrade.v1beta1.Plan.verify|verify} messages. - * @param message Plan message or plain object to encode + * Encodes the specified VotingParams message. Does not implicitly {@link cosmos.gov.v1.VotingParams.verify|verify} messages. + * @param message VotingParams message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: cosmos.upgrade.v1beta1.IPlan, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: cosmos.gov.v1.IVotingParams, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Plan message, length delimited. Does not implicitly {@link cosmos.upgrade.v1beta1.Plan.verify|verify} messages. - * @param message Plan message or plain object to encode + * Encodes the specified VotingParams message, length delimited. Does not implicitly {@link cosmos.gov.v1.VotingParams.verify|verify} messages. + * @param message VotingParams message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: cosmos.upgrade.v1beta1.IPlan, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: cosmos.gov.v1.IVotingParams, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Plan message from the specified reader or buffer. + * Decodes a VotingParams message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Plan + * @returns VotingParams * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): cosmos.upgrade.v1beta1.Plan; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): cosmos.gov.v1.VotingParams; /** - * Decodes a Plan message from the specified reader or buffer, length delimited. + * Decodes a VotingParams message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Plan + * @returns VotingParams * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): cosmos.upgrade.v1beta1.Plan; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): cosmos.gov.v1.VotingParams; /** - * Verifies a Plan message. + * Verifies a VotingParams message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a Plan message from a plain object. Also converts values to their respective internal types. + * Creates a VotingParams message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Plan + * @returns VotingParams */ - public static fromObject(object: { [k: string]: any }): cosmos.upgrade.v1beta1.Plan; + public static fromObject(object: { [k: string]: any }): cosmos.gov.v1.VotingParams; /** - * Creates a plain object from a Plan message. Also converts values to other types if specified. - * @param message Plan + * Creates a plain object from a VotingParams message. Also converts values to other types if specified. + * @param message VotingParams * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: cosmos.upgrade.v1beta1.Plan, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: cosmos.gov.v1.VotingParams, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Plan to JSON. + * Converts this VotingParams to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a SoftwareUpgradeProposal. */ - interface ISoftwareUpgradeProposal { + /** Properties of a TallyParams. */ + interface ITallyParams { - /** SoftwareUpgradeProposal title */ - title?: (string|null); + /** TallyParams quorum */ + quorum?: (string|null); - /** SoftwareUpgradeProposal description */ - description?: (string|null); + /** TallyParams threshold */ + threshold?: (string|null); - /** SoftwareUpgradeProposal plan */ - plan?: (cosmos.upgrade.v1beta1.IPlan|null); + /** TallyParams veto_threshold */ + veto_threshold?: (string|null); } - /** Represents a SoftwareUpgradeProposal. */ - class SoftwareUpgradeProposal implements ISoftwareUpgradeProposal { + /** Represents a TallyParams. */ + class TallyParams implements ITallyParams { /** - * Constructs a new SoftwareUpgradeProposal. + * Constructs a new TallyParams. * @param [properties] Properties to set */ - constructor(properties?: cosmos.upgrade.v1beta1.ISoftwareUpgradeProposal); + constructor(properties?: cosmos.gov.v1.ITallyParams); - /** SoftwareUpgradeProposal title. */ - public title: string; + /** TallyParams quorum. */ + public quorum: string; - /** SoftwareUpgradeProposal description. */ - public description: string; + /** TallyParams threshold. */ + public threshold: string; - /** SoftwareUpgradeProposal plan. */ - public plan?: (cosmos.upgrade.v1beta1.IPlan|null); + /** TallyParams veto_threshold. */ + public veto_threshold: string; /** - * Encodes the specified SoftwareUpgradeProposal message. Does not implicitly {@link cosmos.upgrade.v1beta1.SoftwareUpgradeProposal.verify|verify} messages. - * @param message SoftwareUpgradeProposal message or plain object to encode + * Encodes the specified TallyParams message. Does not implicitly {@link cosmos.gov.v1.TallyParams.verify|verify} messages. + * @param message TallyParams message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: cosmos.upgrade.v1beta1.ISoftwareUpgradeProposal, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: cosmos.gov.v1.ITallyParams, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified SoftwareUpgradeProposal message, length delimited. Does not implicitly {@link cosmos.upgrade.v1beta1.SoftwareUpgradeProposal.verify|verify} messages. - * @param message SoftwareUpgradeProposal message or plain object to encode + * Encodes the specified TallyParams message, length delimited. Does not implicitly {@link cosmos.gov.v1.TallyParams.verify|verify} messages. + * @param message TallyParams message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: cosmos.upgrade.v1beta1.ISoftwareUpgradeProposal, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: cosmos.gov.v1.ITallyParams, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SoftwareUpgradeProposal message from the specified reader or buffer. + * Decodes a TallyParams message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SoftwareUpgradeProposal + * @returns TallyParams * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): cosmos.upgrade.v1beta1.SoftwareUpgradeProposal; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): cosmos.gov.v1.TallyParams; /** - * Decodes a SoftwareUpgradeProposal message from the specified reader or buffer, length delimited. + * Decodes a TallyParams message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SoftwareUpgradeProposal + * @returns TallyParams * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): cosmos.upgrade.v1beta1.SoftwareUpgradeProposal; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): cosmos.gov.v1.TallyParams; /** - * Verifies a SoftwareUpgradeProposal message. + * Verifies a TallyParams message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a SoftwareUpgradeProposal message from a plain object. Also converts values to their respective internal types. + * Creates a TallyParams message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SoftwareUpgradeProposal + * @returns TallyParams */ - public static fromObject(object: { [k: string]: any }): cosmos.upgrade.v1beta1.SoftwareUpgradeProposal; + public static fromObject(object: { [k: string]: any }): cosmos.gov.v1.TallyParams; /** - * Creates a plain object from a SoftwareUpgradeProposal message. Also converts values to other types if specified. - * @param message SoftwareUpgradeProposal + * Creates a plain object from a TallyParams message. Also converts values to other types if specified. + * @param message TallyParams * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: cosmos.upgrade.v1beta1.SoftwareUpgradeProposal, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: cosmos.gov.v1.TallyParams, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SoftwareUpgradeProposal to JSON. + * Converts this TallyParams to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a CancelSoftwareUpgradeProposal. */ - interface ICancelSoftwareUpgradeProposal { + /** Properties of a Params. */ + interface IParams { - /** CancelSoftwareUpgradeProposal title */ - title?: (string|null); + /** Params min_deposit */ + min_deposit?: (cosmos.base.v1beta1.ICoin[]|null); - /** CancelSoftwareUpgradeProposal description */ - description?: (string|null); + /** Params max_deposit_period */ + max_deposit_period?: (google.protobuf.IDuration|null); + + /** Params voting_period */ + voting_period?: (google.protobuf.IDuration|null); + + /** Params quorum */ + quorum?: (string|null); + + /** Params threshold */ + threshold?: (string|null); + + /** Params veto_threshold */ + veto_threshold?: (string|null); + + /** Params min_initial_deposit_ratio */ + min_initial_deposit_ratio?: (string|null); + + /** Params burn_vote_quorum */ + burn_vote_quorum?: (boolean|null); + + /** Params burn_proposal_deposit_prevote */ + burn_proposal_deposit_prevote?: (boolean|null); + + /** Params burn_vote_veto */ + burn_vote_veto?: (boolean|null); } - /** Represents a CancelSoftwareUpgradeProposal. */ - class CancelSoftwareUpgradeProposal implements ICancelSoftwareUpgradeProposal { + /** Represents a Params. */ + class Params implements IParams { /** - * Constructs a new CancelSoftwareUpgradeProposal. + * Constructs a new Params. * @param [properties] Properties to set */ - constructor(properties?: cosmos.upgrade.v1beta1.ICancelSoftwareUpgradeProposal); + constructor(properties?: cosmos.gov.v1.IParams); - /** CancelSoftwareUpgradeProposal title. */ - public title: string; + /** Params min_deposit. */ + public min_deposit: cosmos.base.v1beta1.ICoin[]; - /** CancelSoftwareUpgradeProposal description. */ - public description: string; + /** Params max_deposit_period. */ + public max_deposit_period?: (google.protobuf.IDuration|null); + + /** Params voting_period. */ + public voting_period?: (google.protobuf.IDuration|null); + + /** Params quorum. */ + public quorum: string; + + /** Params threshold. */ + public threshold: string; + + /** Params veto_threshold. */ + public veto_threshold: string; + + /** Params min_initial_deposit_ratio. */ + public min_initial_deposit_ratio: string; + + /** Params burn_vote_quorum. */ + public burn_vote_quorum: boolean; + + /** Params burn_proposal_deposit_prevote. */ + public burn_proposal_deposit_prevote: boolean; + + /** Params burn_vote_veto. */ + public burn_vote_veto: boolean; /** - * Encodes the specified CancelSoftwareUpgradeProposal message. Does not implicitly {@link cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal.verify|verify} messages. - * @param message CancelSoftwareUpgradeProposal message or plain object to encode + * Encodes the specified Params message. Does not implicitly {@link cosmos.gov.v1.Params.verify|verify} messages. + * @param message Params message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: cosmos.upgrade.v1beta1.ICancelSoftwareUpgradeProposal, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: cosmos.gov.v1.IParams, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CancelSoftwareUpgradeProposal message, length delimited. Does not implicitly {@link cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal.verify|verify} messages. - * @param message CancelSoftwareUpgradeProposal message or plain object to encode + * Encodes the specified Params message, length delimited. Does not implicitly {@link cosmos.gov.v1.Params.verify|verify} messages. + * @param message Params message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: cosmos.upgrade.v1beta1.ICancelSoftwareUpgradeProposal, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: cosmos.gov.v1.IParams, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CancelSoftwareUpgradeProposal message from the specified reader or buffer. + * Decodes a Params message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CancelSoftwareUpgradeProposal + * @returns Params * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): cosmos.gov.v1.Params; /** - * Decodes a CancelSoftwareUpgradeProposal message from the specified reader or buffer, length delimited. + * Decodes a Params message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CancelSoftwareUpgradeProposal + * @returns Params * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): cosmos.gov.v1.Params; /** - * Verifies a CancelSoftwareUpgradeProposal message. + * Verifies a Params message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CancelSoftwareUpgradeProposal message from a plain object. Also converts values to their respective internal types. + * Creates a Params message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CancelSoftwareUpgradeProposal + * @returns Params */ - public static fromObject(object: { [k: string]: any }): cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal; + public static fromObject(object: { [k: string]: any }): cosmos.gov.v1.Params; /** - * Creates a plain object from a CancelSoftwareUpgradeProposal message. Also converts values to other types if specified. - * @param message CancelSoftwareUpgradeProposal + * Creates a plain object from a Params message. Also converts values to other types if specified. + * @param message Params * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: cosmos.gov.v1.Params, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CancelSoftwareUpgradeProposal to JSON. + * Converts this Params to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; @@ -2795,4216 +3377,6832 @@ export namespace cosmos { } } - /** Namespace auth. */ - namespace auth { + /** Namespace base. */ + namespace base { /** Namespace v1beta1. */ namespace v1beta1 { - /** Properties of a BaseAccount. */ - interface IBaseAccount { - - /** BaseAccount address */ - address?: (string|null); - - /** BaseAccount pub_key */ - pub_key?: (google.protobuf.IAny|null); + /** Properties of a Coin. */ + interface ICoin { - /** BaseAccount account_number */ - account_number?: (Long|null); + /** Coin denom */ + denom?: (string|null); - /** BaseAccount sequence */ - sequence?: (Long|null); + /** Coin amount */ + amount?: (string|null); } - /** Represents a BaseAccount. */ - class BaseAccount implements IBaseAccount { + /** Represents a Coin. */ + class Coin implements ICoin { /** - * Constructs a new BaseAccount. + * Constructs a new Coin. * @param [properties] Properties to set */ - constructor(properties?: cosmos.auth.v1beta1.IBaseAccount); - - /** BaseAccount address. */ - public address: string; - - /** BaseAccount pub_key. */ - public pub_key?: (google.protobuf.IAny|null); + constructor(properties?: cosmos.base.v1beta1.ICoin); - /** BaseAccount account_number. */ - public account_number: Long; + /** Coin denom. */ + public denom: string; - /** BaseAccount sequence. */ - public sequence: Long; + /** Coin amount. */ + public amount: string; /** - * Encodes the specified BaseAccount message. Does not implicitly {@link cosmos.auth.v1beta1.BaseAccount.verify|verify} messages. - * @param message BaseAccount message or plain object to encode + * Encodes the specified Coin message. Does not implicitly {@link cosmos.base.v1beta1.Coin.verify|verify} messages. + * @param message Coin message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: cosmos.auth.v1beta1.IBaseAccount, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: cosmos.base.v1beta1.ICoin, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified BaseAccount message, length delimited. Does not implicitly {@link cosmos.auth.v1beta1.BaseAccount.verify|verify} messages. - * @param message BaseAccount message or plain object to encode + * Encodes the specified Coin message, length delimited. Does not implicitly {@link cosmos.base.v1beta1.Coin.verify|verify} messages. + * @param message Coin message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: cosmos.auth.v1beta1.IBaseAccount, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: cosmos.base.v1beta1.ICoin, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a BaseAccount message from the specified reader or buffer. + * Decodes a Coin message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns BaseAccount + * @returns Coin * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): cosmos.auth.v1beta1.BaseAccount; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): cosmos.base.v1beta1.Coin; /** - * Decodes a BaseAccount message from the specified reader or buffer, length delimited. + * Decodes a Coin message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns BaseAccount + * @returns Coin * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): cosmos.auth.v1beta1.BaseAccount; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): cosmos.base.v1beta1.Coin; /** - * Verifies a BaseAccount message. + * Verifies a Coin message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a BaseAccount message from a plain object. Also converts values to their respective internal types. + * Creates a Coin message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns BaseAccount + * @returns Coin */ - public static fromObject(object: { [k: string]: any }): cosmos.auth.v1beta1.BaseAccount; + public static fromObject(object: { [k: string]: any }): cosmos.base.v1beta1.Coin; /** - * Creates a plain object from a BaseAccount message. Also converts values to other types if specified. - * @param message BaseAccount + * Creates a plain object from a Coin message. Also converts values to other types if specified. + * @param message Coin * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: cosmos.auth.v1beta1.BaseAccount, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: cosmos.base.v1beta1.Coin, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this BaseAccount to JSON. + * Converts this Coin to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ModuleAccount. */ - interface IModuleAccount { - - /** ModuleAccount base_account */ - base_account?: (cosmos.auth.v1beta1.IBaseAccount|null); + /** Properties of a DecCoin. */ + interface IDecCoin { - /** ModuleAccount name */ - name?: (string|null); + /** DecCoin denom */ + denom?: (string|null); - /** ModuleAccount permissions */ - permissions?: (string[]|null); + /** DecCoin amount */ + amount?: (string|null); } - /** Represents a ModuleAccount. */ - class ModuleAccount implements IModuleAccount { + /** Represents a DecCoin. */ + class DecCoin implements IDecCoin { /** - * Constructs a new ModuleAccount. + * Constructs a new DecCoin. * @param [properties] Properties to set */ - constructor(properties?: cosmos.auth.v1beta1.IModuleAccount); - - /** ModuleAccount base_account. */ - public base_account?: (cosmos.auth.v1beta1.IBaseAccount|null); + constructor(properties?: cosmos.base.v1beta1.IDecCoin); - /** ModuleAccount name. */ - public name: string; + /** DecCoin denom. */ + public denom: string; - /** ModuleAccount permissions. */ - public permissions: string[]; + /** DecCoin amount. */ + public amount: string; /** - * Encodes the specified ModuleAccount message. Does not implicitly {@link cosmos.auth.v1beta1.ModuleAccount.verify|verify} messages. - * @param message ModuleAccount message or plain object to encode + * Encodes the specified DecCoin message. Does not implicitly {@link cosmos.base.v1beta1.DecCoin.verify|verify} messages. + * @param message DecCoin message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: cosmos.auth.v1beta1.IModuleAccount, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: cosmos.base.v1beta1.IDecCoin, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ModuleAccount message, length delimited. Does not implicitly {@link cosmos.auth.v1beta1.ModuleAccount.verify|verify} messages. - * @param message ModuleAccount message or plain object to encode + * Encodes the specified DecCoin message, length delimited. Does not implicitly {@link cosmos.base.v1beta1.DecCoin.verify|verify} messages. + * @param message DecCoin message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: cosmos.auth.v1beta1.IModuleAccount, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: cosmos.base.v1beta1.IDecCoin, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ModuleAccount message from the specified reader or buffer. + * Decodes a DecCoin message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ModuleAccount + * @returns DecCoin * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): cosmos.auth.v1beta1.ModuleAccount; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): cosmos.base.v1beta1.DecCoin; /** - * Decodes a ModuleAccount message from the specified reader or buffer, length delimited. + * Decodes a DecCoin message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ModuleAccount + * @returns DecCoin * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): cosmos.auth.v1beta1.ModuleAccount; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): cosmos.base.v1beta1.DecCoin; /** - * Verifies a ModuleAccount message. + * Verifies a DecCoin message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ModuleAccount message from a plain object. Also converts values to their respective internal types. + * Creates a DecCoin message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ModuleAccount + * @returns DecCoin */ - public static fromObject(object: { [k: string]: any }): cosmos.auth.v1beta1.ModuleAccount; + public static fromObject(object: { [k: string]: any }): cosmos.base.v1beta1.DecCoin; /** - * Creates a plain object from a ModuleAccount message. Also converts values to other types if specified. - * @param message ModuleAccount + * Creates a plain object from a DecCoin message. Also converts values to other types if specified. + * @param message DecCoin * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: cosmos.auth.v1beta1.ModuleAccount, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: cosmos.base.v1beta1.DecCoin, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ModuleAccount to JSON. + * Converts this DecCoin to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a Params. */ - interface IParams { - - /** Params max_memo_characters */ - max_memo_characters?: (Long|null); - - /** Params tx_sig_limit */ - tx_sig_limit?: (Long|null); - - /** Params tx_size_cost_per_byte */ - tx_size_cost_per_byte?: (Long|null); - - /** Params sig_verify_cost_ed25519 */ - sig_verify_cost_ed25519?: (Long|null); + /** Properties of an IntProto. */ + interface IIntProto { - /** Params sig_verify_cost_secp256k1 */ - sig_verify_cost_secp256k1?: (Long|null); + /** IntProto int */ + int?: (string|null); } - /** Represents a Params. */ - class Params implements IParams { + /** Represents an IntProto. */ + class IntProto implements IIntProto { /** - * Constructs a new Params. + * Constructs a new IntProto. * @param [properties] Properties to set */ - constructor(properties?: cosmos.auth.v1beta1.IParams); - - /** Params max_memo_characters. */ - public max_memo_characters: Long; - - /** Params tx_sig_limit. */ - public tx_sig_limit: Long; - - /** Params tx_size_cost_per_byte. */ - public tx_size_cost_per_byte: Long; - - /** Params sig_verify_cost_ed25519. */ - public sig_verify_cost_ed25519: Long; + constructor(properties?: cosmos.base.v1beta1.IIntProto); - /** Params sig_verify_cost_secp256k1. */ - public sig_verify_cost_secp256k1: Long; + /** IntProto int. */ + public int: string; /** - * Encodes the specified Params message. Does not implicitly {@link cosmos.auth.v1beta1.Params.verify|verify} messages. - * @param message Params message or plain object to encode + * Encodes the specified IntProto message. Does not implicitly {@link cosmos.base.v1beta1.IntProto.verify|verify} messages. + * @param message IntProto message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: cosmos.auth.v1beta1.IParams, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: cosmos.base.v1beta1.IIntProto, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Params message, length delimited. Does not implicitly {@link cosmos.auth.v1beta1.Params.verify|verify} messages. - * @param message Params message or plain object to encode + * Encodes the specified IntProto message, length delimited. Does not implicitly {@link cosmos.base.v1beta1.IntProto.verify|verify} messages. + * @param message IntProto message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: cosmos.auth.v1beta1.IParams, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: cosmos.base.v1beta1.IIntProto, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Params message from the specified reader or buffer. + * Decodes an IntProto message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Params + * @returns IntProto * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): cosmos.auth.v1beta1.Params; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): cosmos.base.v1beta1.IntProto; /** - * Decodes a Params message from the specified reader or buffer, length delimited. + * Decodes an IntProto message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Params + * @returns IntProto * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): cosmos.auth.v1beta1.Params; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): cosmos.base.v1beta1.IntProto; /** - * Verifies a Params message. + * Verifies an IntProto message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a Params message from a plain object. Also converts values to their respective internal types. + * Creates an IntProto message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Params + * @returns IntProto */ - public static fromObject(object: { [k: string]: any }): cosmos.auth.v1beta1.Params; + public static fromObject(object: { [k: string]: any }): cosmos.base.v1beta1.IntProto; /** - * Creates a plain object from a Params message. Also converts values to other types if specified. - * @param message Params + * Creates a plain object from an IntProto message. Also converts values to other types if specified. + * @param message IntProto * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: cosmos.auth.v1beta1.Params, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: cosmos.base.v1beta1.IntProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Params to JSON. + * Converts this IntProto to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - } - } -} -/** Namespace google. */ -export namespace google { + /** Properties of a DecProto. */ + interface IDecProto { - /** Namespace protobuf. */ - namespace protobuf { + /** DecProto dec */ + dec?: (string|null); + } - /** Properties of a FileDescriptorSet. */ - interface IFileDescriptorSet { + /** Represents a DecProto. */ + class DecProto implements IDecProto { - /** FileDescriptorSet file */ - file?: (google.protobuf.IFileDescriptorProto[]|null); - } + /** + * Constructs a new DecProto. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos.base.v1beta1.IDecProto); - /** Represents a FileDescriptorSet. */ - class FileDescriptorSet implements IFileDescriptorSet { + /** DecProto dec. */ + public dec: string; - /** - * Constructs a new FileDescriptorSet. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IFileDescriptorSet); + /** + * Encodes the specified DecProto message. Does not implicitly {@link cosmos.base.v1beta1.DecProto.verify|verify} messages. + * @param message DecProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: cosmos.base.v1beta1.IDecProto, writer?: $protobuf.Writer): $protobuf.Writer; - /** FileDescriptorSet file. */ - public file: google.protobuf.IFileDescriptorProto[]; + /** + * Encodes the specified DecProto message, length delimited. Does not implicitly {@link cosmos.base.v1beta1.DecProto.verify|verify} messages. + * @param message DecProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: cosmos.base.v1beta1.IDecProto, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified FileDescriptorSet message. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages. - * @param message FileDescriptorSet message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.IFileDescriptorSet, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a DecProto message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DecProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): cosmos.base.v1beta1.DecProto; - /** - * Encodes the specified FileDescriptorSet message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages. - * @param message FileDescriptorSet message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.protobuf.IFileDescriptorSet, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a DecProto message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DecProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): cosmos.base.v1beta1.DecProto; - /** - * Decodes a FileDescriptorSet message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns FileDescriptorSet - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileDescriptorSet; + /** + * Verifies a DecProto message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Decodes a FileDescriptorSet message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns FileDescriptorSet - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FileDescriptorSet; + /** + * Creates a DecProto message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DecProto + */ + public static fromObject(object: { [k: string]: any }): cosmos.base.v1beta1.DecProto; - /** - * Verifies a FileDescriptorSet message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Creates a plain object from a DecProto message. Also converts values to other types if specified. + * @param message DecProto + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: cosmos.base.v1beta1.DecProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Creates a FileDescriptorSet message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns FileDescriptorSet - */ - public static fromObject(object: { [k: string]: any }): google.protobuf.FileDescriptorSet; + /** + * Converts this DecProto to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } - /** - * Creates a plain object from a FileDescriptorSet message. Also converts values to other types if specified. - * @param message FileDescriptorSet - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.protobuf.FileDescriptorSet, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Namespace query. */ + namespace query { - /** - * Converts this FileDescriptorSet to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** Namespace v1beta1. */ + namespace v1beta1 { - /** Properties of a FileDescriptorProto. */ - interface IFileDescriptorProto { + /** Properties of a PageRequest. */ + interface IPageRequest { - /** FileDescriptorProto name */ - name?: (string|null); + /** PageRequest key */ + key?: (Uint8Array|null); - /** FileDescriptorProto package */ - "package"?: (string|null); + /** PageRequest offset */ + offset?: (Long|null); - /** FileDescriptorProto dependency */ - dependency?: (string[]|null); + /** PageRequest limit */ + limit?: (Long|null); - /** FileDescriptorProto public_dependency */ - public_dependency?: (number[]|null); + /** PageRequest count_total */ + count_total?: (boolean|null); - /** FileDescriptorProto weak_dependency */ - weak_dependency?: (number[]|null); + /** PageRequest reverse */ + reverse?: (boolean|null); + } - /** FileDescriptorProto message_type */ - message_type?: (google.protobuf.IDescriptorProto[]|null); + /** Represents a PageRequest. */ + class PageRequest implements IPageRequest { - /** FileDescriptorProto enum_type */ - enum_type?: (google.protobuf.IEnumDescriptorProto[]|null); + /** + * Constructs a new PageRequest. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos.base.query.v1beta1.IPageRequest); - /** FileDescriptorProto service */ - service?: (google.protobuf.IServiceDescriptorProto[]|null); + /** PageRequest key. */ + public key: Uint8Array; - /** FileDescriptorProto extension */ - extension?: (google.protobuf.IFieldDescriptorProto[]|null); + /** PageRequest offset. */ + public offset: Long; - /** FileDescriptorProto options */ - options?: (google.protobuf.IFileOptions|null); + /** PageRequest limit. */ + public limit: Long; - /** FileDescriptorProto source_code_info */ - source_code_info?: (google.protobuf.ISourceCodeInfo|null); + /** PageRequest count_total. */ + public count_total: boolean; - /** FileDescriptorProto syntax */ - syntax?: (string|null); - } + /** PageRequest reverse. */ + public reverse: boolean; - /** Represents a FileDescriptorProto. */ - class FileDescriptorProto implements IFileDescriptorProto { + /** + * Encodes the specified PageRequest message. Does not implicitly {@link cosmos.base.query.v1beta1.PageRequest.verify|verify} messages. + * @param message PageRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: cosmos.base.query.v1beta1.IPageRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Constructs a new FileDescriptorProto. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IFileDescriptorProto); + /** + * Encodes the specified PageRequest message, length delimited. Does not implicitly {@link cosmos.base.query.v1beta1.PageRequest.verify|verify} messages. + * @param message PageRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: cosmos.base.query.v1beta1.IPageRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** FileDescriptorProto name. */ - public name: string; + /** + * Decodes a PageRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PageRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): cosmos.base.query.v1beta1.PageRequest; - /** FileDescriptorProto package. */ - public package: string; + /** + * Decodes a PageRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PageRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): cosmos.base.query.v1beta1.PageRequest; - /** FileDescriptorProto dependency. */ - public dependency: string[]; + /** + * Verifies a PageRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** FileDescriptorProto public_dependency. */ - public public_dependency: number[]; + /** + * Creates a PageRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PageRequest + */ + public static fromObject(object: { [k: string]: any }): cosmos.base.query.v1beta1.PageRequest; - /** FileDescriptorProto weak_dependency. */ - public weak_dependency: number[]; + /** + * Creates a plain object from a PageRequest message. Also converts values to other types if specified. + * @param message PageRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: cosmos.base.query.v1beta1.PageRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** FileDescriptorProto message_type. */ - public message_type: google.protobuf.IDescriptorProto[]; + /** + * Converts this PageRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** FileDescriptorProto enum_type. */ - public enum_type: google.protobuf.IEnumDescriptorProto[]; + /** Properties of a PageResponse. */ + interface IPageResponse { - /** FileDescriptorProto service. */ - public service: google.protobuf.IServiceDescriptorProto[]; + /** PageResponse next_key */ + next_key?: (Uint8Array|null); - /** FileDescriptorProto extension. */ - public extension: google.protobuf.IFieldDescriptorProto[]; + /** PageResponse total */ + total?: (Long|null); + } - /** FileDescriptorProto options. */ - public options?: (google.protobuf.IFileOptions|null); + /** Represents a PageResponse. */ + class PageResponse implements IPageResponse { - /** FileDescriptorProto source_code_info. */ - public source_code_info?: (google.protobuf.ISourceCodeInfo|null); + /** + * Constructs a new PageResponse. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos.base.query.v1beta1.IPageResponse); - /** FileDescriptorProto syntax. */ - public syntax: string; + /** PageResponse next_key. */ + public next_key: Uint8Array; - /** - * Encodes the specified FileDescriptorProto message. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages. - * @param message FileDescriptorProto message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.IFileDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + /** PageResponse total. */ + public total: Long; - /** - * Encodes the specified FileDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages. - * @param message FileDescriptorProto message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.protobuf.IFileDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified PageResponse message. Does not implicitly {@link cosmos.base.query.v1beta1.PageResponse.verify|verify} messages. + * @param message PageResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: cosmos.base.query.v1beta1.IPageResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a FileDescriptorProto message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns FileDescriptorProto - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileDescriptorProto; + /** + * Encodes the specified PageResponse message, length delimited. Does not implicitly {@link cosmos.base.query.v1beta1.PageResponse.verify|verify} messages. + * @param message PageResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: cosmos.base.query.v1beta1.IPageResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a FileDescriptorProto message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns FileDescriptorProto - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FileDescriptorProto; + /** + * Decodes a PageResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PageResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): cosmos.base.query.v1beta1.PageResponse; - /** - * Verifies a FileDescriptorProto message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Decodes a PageResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PageResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): cosmos.base.query.v1beta1.PageResponse; - /** - * Creates a FileDescriptorProto message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns FileDescriptorProto - */ - public static fromObject(object: { [k: string]: any }): google.protobuf.FileDescriptorProto; + /** + * Verifies a PageResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Creates a plain object from a FileDescriptorProto message. Also converts values to other types if specified. - * @param message FileDescriptorProto - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.protobuf.FileDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a PageResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PageResponse + */ + public static fromObject(object: { [k: string]: any }): cosmos.base.query.v1beta1.PageResponse; - /** - * Converts this FileDescriptorProto to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * Creates a plain object from a PageResponse message. Also converts values to other types if specified. + * @param message PageResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: cosmos.base.query.v1beta1.PageResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Properties of a DescriptorProto. */ - interface IDescriptorProto { + /** + * Converts this PageResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } + } + } - /** DescriptorProto name */ - name?: (string|null); + /** Namespace upgrade. */ + namespace upgrade { - /** DescriptorProto field */ - field?: (google.protobuf.IFieldDescriptorProto[]|null); + /** Namespace v1beta1. */ + namespace v1beta1 { - /** DescriptorProto extension */ - extension?: (google.protobuf.IFieldDescriptorProto[]|null); + /** Properties of a Plan. */ + interface IPlan { - /** DescriptorProto nested_type */ - nested_type?: (google.protobuf.IDescriptorProto[]|null); + /** Plan name */ + name?: (string|null); - /** DescriptorProto enum_type */ - enum_type?: (google.protobuf.IEnumDescriptorProto[]|null); + /** Plan time */ + time?: (google.protobuf.ITimestamp|null); - /** DescriptorProto extension_range */ - extension_range?: (google.protobuf.DescriptorProto.IExtensionRange[]|null); + /** Plan height */ + height?: (Long|null); - /** DescriptorProto oneof_decl */ - oneof_decl?: (google.protobuf.IOneofDescriptorProto[]|null); + /** Plan info */ + info?: (string|null); - /** DescriptorProto options */ - options?: (google.protobuf.IMessageOptions|null); + /** Plan upgraded_client_state */ + upgraded_client_state?: (google.protobuf.IAny|null); + } - /** DescriptorProto reserved_range */ - reserved_range?: (google.protobuf.DescriptorProto.IReservedRange[]|null); + /** Represents a Plan. */ + class Plan implements IPlan { - /** DescriptorProto reserved_name */ - reserved_name?: (string[]|null); - } + /** + * Constructs a new Plan. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos.upgrade.v1beta1.IPlan); - /** Represents a DescriptorProto. */ - class DescriptorProto implements IDescriptorProto { + /** Plan name. */ + public name: string; - /** - * Constructs a new DescriptorProto. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IDescriptorProto); + /** Plan time. */ + public time?: (google.protobuf.ITimestamp|null); - /** DescriptorProto name. */ - public name: string; + /** Plan height. */ + public height: Long; - /** DescriptorProto field. */ - public field: google.protobuf.IFieldDescriptorProto[]; + /** Plan info. */ + public info: string; - /** DescriptorProto extension. */ - public extension: google.protobuf.IFieldDescriptorProto[]; + /** Plan upgraded_client_state. */ + public upgraded_client_state?: (google.protobuf.IAny|null); - /** DescriptorProto nested_type. */ - public nested_type: google.protobuf.IDescriptorProto[]; + /** + * Encodes the specified Plan message. Does not implicitly {@link cosmos.upgrade.v1beta1.Plan.verify|verify} messages. + * @param message Plan message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: cosmos.upgrade.v1beta1.IPlan, writer?: $protobuf.Writer): $protobuf.Writer; - /** DescriptorProto enum_type. */ - public enum_type: google.protobuf.IEnumDescriptorProto[]; + /** + * Encodes the specified Plan message, length delimited. Does not implicitly {@link cosmos.upgrade.v1beta1.Plan.verify|verify} messages. + * @param message Plan message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: cosmos.upgrade.v1beta1.IPlan, writer?: $protobuf.Writer): $protobuf.Writer; - /** DescriptorProto extension_range. */ - public extension_range: google.protobuf.DescriptorProto.IExtensionRange[]; + /** + * Decodes a Plan message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Plan + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): cosmos.upgrade.v1beta1.Plan; - /** DescriptorProto oneof_decl. */ - public oneof_decl: google.protobuf.IOneofDescriptorProto[]; + /** + * Decodes a Plan message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Plan + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): cosmos.upgrade.v1beta1.Plan; - /** DescriptorProto options. */ - public options?: (google.protobuf.IMessageOptions|null); + /** + * Verifies a Plan message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** DescriptorProto reserved_range. */ - public reserved_range: google.protobuf.DescriptorProto.IReservedRange[]; + /** + * Creates a Plan message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Plan + */ + public static fromObject(object: { [k: string]: any }): cosmos.upgrade.v1beta1.Plan; - /** DescriptorProto reserved_name. */ - public reserved_name: string[]; + /** + * Creates a plain object from a Plan message. Also converts values to other types if specified. + * @param message Plan + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: cosmos.upgrade.v1beta1.Plan, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Encodes the specified DescriptorProto message. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages. - * @param message DescriptorProto message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.IDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Converts this Plan to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** - * Encodes the specified DescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages. - * @param message DescriptorProto message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.protobuf.IDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + /** Properties of a SoftwareUpgradeProposal. */ + interface ISoftwareUpgradeProposal { - /** - * Decodes a DescriptorProto message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DescriptorProto - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto; + /** SoftwareUpgradeProposal title */ + title?: (string|null); - /** - * Decodes a DescriptorProto message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DescriptorProto - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.DescriptorProto; + /** SoftwareUpgradeProposal description */ + description?: (string|null); - /** - * Verifies a DescriptorProto message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** SoftwareUpgradeProposal plan */ + plan?: (cosmos.upgrade.v1beta1.IPlan|null); + } - /** - * Creates a DescriptorProto message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns DescriptorProto - */ - public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto; + /** Represents a SoftwareUpgradeProposal. */ + class SoftwareUpgradeProposal implements ISoftwareUpgradeProposal { - /** - * Creates a plain object from a DescriptorProto message. Also converts values to other types if specified. - * @param message DescriptorProto - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.protobuf.DescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Constructs a new SoftwareUpgradeProposal. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos.upgrade.v1beta1.ISoftwareUpgradeProposal); - /** - * Converts this DescriptorProto to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** SoftwareUpgradeProposal title. */ + public title: string; - namespace DescriptorProto { + /** SoftwareUpgradeProposal description. */ + public description: string; - /** Properties of an ExtensionRange. */ - interface IExtensionRange { + /** SoftwareUpgradeProposal plan. */ + public plan?: (cosmos.upgrade.v1beta1.IPlan|null); - /** ExtensionRange start */ - start?: (number|null); + /** + * Encodes the specified SoftwareUpgradeProposal message. Does not implicitly {@link cosmos.upgrade.v1beta1.SoftwareUpgradeProposal.verify|verify} messages. + * @param message SoftwareUpgradeProposal message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: cosmos.upgrade.v1beta1.ISoftwareUpgradeProposal, writer?: $protobuf.Writer): $protobuf.Writer; - /** ExtensionRange end */ - end?: (number|null); + /** + * Encodes the specified SoftwareUpgradeProposal message, length delimited. Does not implicitly {@link cosmos.upgrade.v1beta1.SoftwareUpgradeProposal.verify|verify} messages. + * @param message SoftwareUpgradeProposal message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: cosmos.upgrade.v1beta1.ISoftwareUpgradeProposal, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SoftwareUpgradeProposal message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SoftwareUpgradeProposal + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): cosmos.upgrade.v1beta1.SoftwareUpgradeProposal; + + /** + * Decodes a SoftwareUpgradeProposal message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SoftwareUpgradeProposal + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): cosmos.upgrade.v1beta1.SoftwareUpgradeProposal; + + /** + * Verifies a SoftwareUpgradeProposal message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a SoftwareUpgradeProposal message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SoftwareUpgradeProposal + */ + public static fromObject(object: { [k: string]: any }): cosmos.upgrade.v1beta1.SoftwareUpgradeProposal; + + /** + * Creates a plain object from a SoftwareUpgradeProposal message. Also converts values to other types if specified. + * @param message SoftwareUpgradeProposal + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: cosmos.upgrade.v1beta1.SoftwareUpgradeProposal, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SoftwareUpgradeProposal to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; } - /** Represents an ExtensionRange. */ - class ExtensionRange implements IExtensionRange { + /** Properties of a CancelSoftwareUpgradeProposal. */ + interface ICancelSoftwareUpgradeProposal { + + /** CancelSoftwareUpgradeProposal title */ + title?: (string|null); + + /** CancelSoftwareUpgradeProposal description */ + description?: (string|null); + } + + /** Represents a CancelSoftwareUpgradeProposal. */ + class CancelSoftwareUpgradeProposal implements ICancelSoftwareUpgradeProposal { /** - * Constructs a new ExtensionRange. + * Constructs a new CancelSoftwareUpgradeProposal. * @param [properties] Properties to set */ - constructor(properties?: google.protobuf.DescriptorProto.IExtensionRange); + constructor(properties?: cosmos.upgrade.v1beta1.ICancelSoftwareUpgradeProposal); - /** ExtensionRange start. */ - public start: number; + /** CancelSoftwareUpgradeProposal title. */ + public title: string; - /** ExtensionRange end. */ - public end: number; + /** CancelSoftwareUpgradeProposal description. */ + public description: string; /** - * Encodes the specified ExtensionRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages. - * @param message ExtensionRange message or plain object to encode + * Encodes the specified CancelSoftwareUpgradeProposal message. Does not implicitly {@link cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal.verify|verify} messages. + * @param message CancelSoftwareUpgradeProposal message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.protobuf.DescriptorProto.IExtensionRange, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: cosmos.upgrade.v1beta1.ICancelSoftwareUpgradeProposal, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ExtensionRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages. - * @param message ExtensionRange message or plain object to encode + * Encodes the specified CancelSoftwareUpgradeProposal message, length delimited. Does not implicitly {@link cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal.verify|verify} messages. + * @param message CancelSoftwareUpgradeProposal message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.protobuf.DescriptorProto.IExtensionRange, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: cosmos.upgrade.v1beta1.ICancelSoftwareUpgradeProposal, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ExtensionRange message from the specified reader or buffer. + * Decodes a CancelSoftwareUpgradeProposal message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ExtensionRange + * @returns CancelSoftwareUpgradeProposal * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto.ExtensionRange; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal; /** - * Decodes an ExtensionRange message from the specified reader or buffer, length delimited. + * Decodes a CancelSoftwareUpgradeProposal message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ExtensionRange + * @returns CancelSoftwareUpgradeProposal * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.DescriptorProto.ExtensionRange; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal; /** - * Verifies an ExtensionRange message. + * Verifies a CancelSoftwareUpgradeProposal message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an ExtensionRange message from a plain object. Also converts values to their respective internal types. + * Creates a CancelSoftwareUpgradeProposal message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ExtensionRange + * @returns CancelSoftwareUpgradeProposal */ - public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto.ExtensionRange; + public static fromObject(object: { [k: string]: any }): cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal; /** - * Creates a plain object from an ExtensionRange message. Also converts values to other types if specified. - * @param message ExtensionRange + * Creates a plain object from a CancelSoftwareUpgradeProposal message. Also converts values to other types if specified. + * @param message CancelSoftwareUpgradeProposal * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.protobuf.DescriptorProto.ExtensionRange, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ExtensionRange to JSON. + * Converts this CancelSoftwareUpgradeProposal to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ReservedRange. */ - interface IReservedRange { + /** Properties of a ModuleVersion. */ + interface IModuleVersion { - /** ReservedRange start */ - start?: (number|null); + /** ModuleVersion name */ + name?: (string|null); - /** ReservedRange end */ - end?: (number|null); + /** ModuleVersion version */ + version?: (Long|null); } - /** Represents a ReservedRange. */ - class ReservedRange implements IReservedRange { + /** Represents a ModuleVersion. */ + class ModuleVersion implements IModuleVersion { /** - * Constructs a new ReservedRange. + * Constructs a new ModuleVersion. * @param [properties] Properties to set */ - constructor(properties?: google.protobuf.DescriptorProto.IReservedRange); + constructor(properties?: cosmos.upgrade.v1beta1.IModuleVersion); - /** ReservedRange start. */ - public start: number; + /** ModuleVersion name. */ + public name: string; - /** ReservedRange end. */ - public end: number; + /** ModuleVersion version. */ + public version: Long; /** - * Encodes the specified ReservedRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages. - * @param message ReservedRange message or plain object to encode + * Encodes the specified ModuleVersion message. Does not implicitly {@link cosmos.upgrade.v1beta1.ModuleVersion.verify|verify} messages. + * @param message ModuleVersion message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.protobuf.DescriptorProto.IReservedRange, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: cosmos.upgrade.v1beta1.IModuleVersion, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ReservedRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages. - * @param message ReservedRange message or plain object to encode + * Encodes the specified ModuleVersion message, length delimited. Does not implicitly {@link cosmos.upgrade.v1beta1.ModuleVersion.verify|verify} messages. + * @param message ModuleVersion message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.protobuf.DescriptorProto.IReservedRange, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: cosmos.upgrade.v1beta1.IModuleVersion, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ReservedRange message from the specified reader or buffer. + * Decodes a ModuleVersion message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ReservedRange + * @returns ModuleVersion * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto.ReservedRange; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): cosmos.upgrade.v1beta1.ModuleVersion; /** - * Decodes a ReservedRange message from the specified reader or buffer, length delimited. + * Decodes a ModuleVersion message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ReservedRange + * @returns ModuleVersion * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.DescriptorProto.ReservedRange; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): cosmos.upgrade.v1beta1.ModuleVersion; /** - * Verifies a ReservedRange message. + * Verifies a ModuleVersion message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ReservedRange message from a plain object. Also converts values to their respective internal types. + * Creates a ModuleVersion message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ReservedRange + * @returns ModuleVersion */ - public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto.ReservedRange; + public static fromObject(object: { [k: string]: any }): cosmos.upgrade.v1beta1.ModuleVersion; /** - * Creates a plain object from a ReservedRange message. Also converts values to other types if specified. - * @param message ReservedRange + * Creates a plain object from a ModuleVersion message. Also converts values to other types if specified. + * @param message ModuleVersion * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.protobuf.DescriptorProto.ReservedRange, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: cosmos.upgrade.v1beta1.ModuleVersion, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ReservedRange to JSON. + * Converts this ModuleVersion to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } } + } - /** Properties of a FieldDescriptorProto. */ - interface IFieldDescriptorProto { + /** Namespace auth. */ + namespace auth { - /** FieldDescriptorProto name */ - name?: (string|null); + /** Namespace v1beta1. */ + namespace v1beta1 { - /** FieldDescriptorProto number */ - number?: (number|null); + /** Properties of a BaseAccount. */ + interface IBaseAccount { - /** FieldDescriptorProto label */ - label?: (google.protobuf.FieldDescriptorProto.Label|null); + /** BaseAccount address */ + address?: (string|null); - /** FieldDescriptorProto type */ - type?: (google.protobuf.FieldDescriptorProto.Type|null); + /** BaseAccount pub_key */ + pub_key?: (google.protobuf.IAny|null); - /** FieldDescriptorProto type_name */ - type_name?: (string|null); + /** BaseAccount account_number */ + account_number?: (Long|null); - /** FieldDescriptorProto extendee */ - extendee?: (string|null); + /** BaseAccount sequence */ + sequence?: (Long|null); + } - /** FieldDescriptorProto default_value */ - default_value?: (string|null); + /** Represents a BaseAccount. */ + class BaseAccount implements IBaseAccount { - /** FieldDescriptorProto oneof_index */ - oneof_index?: (number|null); + /** + * Constructs a new BaseAccount. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos.auth.v1beta1.IBaseAccount); - /** FieldDescriptorProto json_name */ - json_name?: (string|null); + /** BaseAccount address. */ + public address: string; - /** FieldDescriptorProto options */ - options?: (google.protobuf.IFieldOptions|null); - } + /** BaseAccount pub_key. */ + public pub_key?: (google.protobuf.IAny|null); - /** Represents a FieldDescriptorProto. */ - class FieldDescriptorProto implements IFieldDescriptorProto { + /** BaseAccount account_number. */ + public account_number: Long; - /** - * Constructs a new FieldDescriptorProto. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IFieldDescriptorProto); + /** BaseAccount sequence. */ + public sequence: Long; - /** FieldDescriptorProto name. */ - public name: string; + /** + * Encodes the specified BaseAccount message. Does not implicitly {@link cosmos.auth.v1beta1.BaseAccount.verify|verify} messages. + * @param message BaseAccount message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: cosmos.auth.v1beta1.IBaseAccount, writer?: $protobuf.Writer): $protobuf.Writer; - /** FieldDescriptorProto number. */ - public number: number; + /** + * Encodes the specified BaseAccount message, length delimited. Does not implicitly {@link cosmos.auth.v1beta1.BaseAccount.verify|verify} messages. + * @param message BaseAccount message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: cosmos.auth.v1beta1.IBaseAccount, writer?: $protobuf.Writer): $protobuf.Writer; - /** FieldDescriptorProto label. */ - public label: google.protobuf.FieldDescriptorProto.Label; + /** + * Decodes a BaseAccount message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BaseAccount + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): cosmos.auth.v1beta1.BaseAccount; - /** FieldDescriptorProto type. */ - public type: google.protobuf.FieldDescriptorProto.Type; + /** + * Decodes a BaseAccount message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns BaseAccount + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): cosmos.auth.v1beta1.BaseAccount; - /** FieldDescriptorProto type_name. */ - public type_name: string; + /** + * Verifies a BaseAccount message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** FieldDescriptorProto extendee. */ - public extendee: string; + /** + * Creates a BaseAccount message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns BaseAccount + */ + public static fromObject(object: { [k: string]: any }): cosmos.auth.v1beta1.BaseAccount; - /** FieldDescriptorProto default_value. */ - public default_value: string; + /** + * Creates a plain object from a BaseAccount message. Also converts values to other types if specified. + * @param message BaseAccount + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: cosmos.auth.v1beta1.BaseAccount, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** FieldDescriptorProto oneof_index. */ - public oneof_index: number; + /** + * Converts this BaseAccount to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** FieldDescriptorProto json_name. */ - public json_name: string; + /** Properties of a ModuleAccount. */ + interface IModuleAccount { - /** FieldDescriptorProto options. */ - public options?: (google.protobuf.IFieldOptions|null); + /** ModuleAccount base_account */ + base_account?: (cosmos.auth.v1beta1.IBaseAccount|null); - /** - * Encodes the specified FieldDescriptorProto message. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages. - * @param message FieldDescriptorProto message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.IFieldDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + /** ModuleAccount name */ + name?: (string|null); - /** - * Encodes the specified FieldDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages. - * @param message FieldDescriptorProto message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.protobuf.IFieldDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + /** ModuleAccount permissions */ + permissions?: (string[]|null); + } - /** - * Decodes a FieldDescriptorProto message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns FieldDescriptorProto - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldDescriptorProto; + /** Represents a ModuleAccount. */ + class ModuleAccount implements IModuleAccount { - /** - * Decodes a FieldDescriptorProto message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns FieldDescriptorProto - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldDescriptorProto; + /** + * Constructs a new ModuleAccount. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos.auth.v1beta1.IModuleAccount); - /** - * Verifies a FieldDescriptorProto message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** ModuleAccount base_account. */ + public base_account?: (cosmos.auth.v1beta1.IBaseAccount|null); - /** - * Creates a FieldDescriptorProto message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns FieldDescriptorProto - */ - public static fromObject(object: { [k: string]: any }): google.protobuf.FieldDescriptorProto; + /** ModuleAccount name. */ + public name: string; - /** - * Creates a plain object from a FieldDescriptorProto message. Also converts values to other types if specified. - * @param message FieldDescriptorProto - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.protobuf.FieldDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** ModuleAccount permissions. */ + public permissions: string[]; - /** - * Converts this FieldDescriptorProto to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * Encodes the specified ModuleAccount message. Does not implicitly {@link cosmos.auth.v1beta1.ModuleAccount.verify|verify} messages. + * @param message ModuleAccount message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: cosmos.auth.v1beta1.IModuleAccount, writer?: $protobuf.Writer): $protobuf.Writer; - namespace FieldDescriptorProto { + /** + * Encodes the specified ModuleAccount message, length delimited. Does not implicitly {@link cosmos.auth.v1beta1.ModuleAccount.verify|verify} messages. + * @param message ModuleAccount message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: cosmos.auth.v1beta1.IModuleAccount, writer?: $protobuf.Writer): $protobuf.Writer; - /** Type enum. */ - enum Type { - TYPE_DOUBLE = 1, - TYPE_FLOAT = 2, - TYPE_INT64 = 3, - TYPE_UINT64 = 4, - TYPE_INT32 = 5, - TYPE_FIXED64 = 6, - TYPE_FIXED32 = 7, - TYPE_BOOL = 8, - TYPE_STRING = 9, - TYPE_GROUP = 10, - TYPE_MESSAGE = 11, - TYPE_BYTES = 12, - TYPE_UINT32 = 13, - TYPE_ENUM = 14, - TYPE_SFIXED32 = 15, - TYPE_SFIXED64 = 16, - TYPE_SINT32 = 17, - TYPE_SINT64 = 18 - } + /** + * Decodes a ModuleAccount message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ModuleAccount + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): cosmos.auth.v1beta1.ModuleAccount; - /** Label enum. */ - enum Label { - LABEL_OPTIONAL = 1, - LABEL_REQUIRED = 2, - LABEL_REPEATED = 3 - } - } + /** + * Decodes a ModuleAccount message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ModuleAccount + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): cosmos.auth.v1beta1.ModuleAccount; - /** Properties of an OneofDescriptorProto. */ - interface IOneofDescriptorProto { + /** + * Verifies a ModuleAccount message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** OneofDescriptorProto name */ - name?: (string|null); + /** + * Creates a ModuleAccount message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ModuleAccount + */ + public static fromObject(object: { [k: string]: any }): cosmos.auth.v1beta1.ModuleAccount; - /** OneofDescriptorProto options */ - options?: (google.protobuf.IOneofOptions|null); - } + /** + * Creates a plain object from a ModuleAccount message. Also converts values to other types if specified. + * @param message ModuleAccount + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: cosmos.auth.v1beta1.ModuleAccount, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Represents an OneofDescriptorProto. */ - class OneofDescriptorProto implements IOneofDescriptorProto { + /** + * Converts this ModuleAccount to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** - * Constructs a new OneofDescriptorProto. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IOneofDescriptorProto); + /** Properties of a ModuleCredential. */ + interface IModuleCredential { - /** OneofDescriptorProto name. */ - public name: string; + /** ModuleCredential module_name */ + module_name?: (string|null); - /** OneofDescriptorProto options. */ - public options?: (google.protobuf.IOneofOptions|null); + /** ModuleCredential derivation_keys */ + derivation_keys?: (Uint8Array[]|null); + } - /** - * Encodes the specified OneofDescriptorProto message. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages. - * @param message OneofDescriptorProto message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.IOneofDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + /** Represents a ModuleCredential. */ + class ModuleCredential implements IModuleCredential { - /** - * Encodes the specified OneofDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages. - * @param message OneofDescriptorProto message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.protobuf.IOneofDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Constructs a new ModuleCredential. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos.auth.v1beta1.IModuleCredential); - /** - * Decodes an OneofDescriptorProto message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns OneofDescriptorProto - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.OneofDescriptorProto; + /** ModuleCredential module_name. */ + public module_name: string; - /** - * Decodes an OneofDescriptorProto message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns OneofDescriptorProto - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.OneofDescriptorProto; + /** ModuleCredential derivation_keys. */ + public derivation_keys: Uint8Array[]; - /** - * Verifies an OneofDescriptorProto message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Encodes the specified ModuleCredential message. Does not implicitly {@link cosmos.auth.v1beta1.ModuleCredential.verify|verify} messages. + * @param message ModuleCredential message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: cosmos.auth.v1beta1.IModuleCredential, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates an OneofDescriptorProto message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns OneofDescriptorProto - */ - public static fromObject(object: { [k: string]: any }): google.protobuf.OneofDescriptorProto; + /** + * Encodes the specified ModuleCredential message, length delimited. Does not implicitly {@link cosmos.auth.v1beta1.ModuleCredential.verify|verify} messages. + * @param message ModuleCredential message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: cosmos.auth.v1beta1.IModuleCredential, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a plain object from an OneofDescriptorProto message. Also converts values to other types if specified. - * @param message OneofDescriptorProto - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.protobuf.OneofDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Decodes a ModuleCredential message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ModuleCredential + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): cosmos.auth.v1beta1.ModuleCredential; - /** - * Converts this OneofDescriptorProto to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * Decodes a ModuleCredential message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ModuleCredential + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): cosmos.auth.v1beta1.ModuleCredential; - /** Properties of an EnumDescriptorProto. */ - interface IEnumDescriptorProto { + /** + * Verifies a ModuleCredential message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** EnumDescriptorProto name */ - name?: (string|null); + /** + * Creates a ModuleCredential message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ModuleCredential + */ + public static fromObject(object: { [k: string]: any }): cosmos.auth.v1beta1.ModuleCredential; - /** EnumDescriptorProto value */ - value?: (google.protobuf.IEnumValueDescriptorProto[]|null); + /** + * Creates a plain object from a ModuleCredential message. Also converts values to other types if specified. + * @param message ModuleCredential + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: cosmos.auth.v1beta1.ModuleCredential, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** EnumDescriptorProto options */ - options?: (google.protobuf.IEnumOptions|null); - } + /** + * Converts this ModuleCredential to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** Represents an EnumDescriptorProto. */ - class EnumDescriptorProto implements IEnumDescriptorProto { + /** Properties of a Params. */ + interface IParams { - /** - * Constructs a new EnumDescriptorProto. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IEnumDescriptorProto); + /** Params max_memo_characters */ + max_memo_characters?: (Long|null); - /** EnumDescriptorProto name. */ - public name: string; + /** Params tx_sig_limit */ + tx_sig_limit?: (Long|null); - /** EnumDescriptorProto value. */ - public value: google.protobuf.IEnumValueDescriptorProto[]; + /** Params tx_size_cost_per_byte */ + tx_size_cost_per_byte?: (Long|null); - /** EnumDescriptorProto options. */ - public options?: (google.protobuf.IEnumOptions|null); + /** Params sig_verify_cost_ed25519 */ + sig_verify_cost_ed25519?: (Long|null); - /** - * Encodes the specified EnumDescriptorProto message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages. - * @param message EnumDescriptorProto message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.IEnumDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + /** Params sig_verify_cost_secp256k1 */ + sig_verify_cost_secp256k1?: (Long|null); + } - /** - * Encodes the specified EnumDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages. - * @param message EnumDescriptorProto message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.protobuf.IEnumDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + /** Represents a Params. */ + class Params implements IParams { - /** - * Decodes an EnumDescriptorProto message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns EnumDescriptorProto - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumDescriptorProto; + /** + * Constructs a new Params. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos.auth.v1beta1.IParams); - /** - * Decodes an EnumDescriptorProto message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns EnumDescriptorProto - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumDescriptorProto; + /** Params max_memo_characters. */ + public max_memo_characters: Long; - /** - * Verifies an EnumDescriptorProto message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** Params tx_sig_limit. */ + public tx_sig_limit: Long; - /** - * Creates an EnumDescriptorProto message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns EnumDescriptorProto - */ - public static fromObject(object: { [k: string]: any }): google.protobuf.EnumDescriptorProto; + /** Params tx_size_cost_per_byte. */ + public tx_size_cost_per_byte: Long; - /** - * Creates a plain object from an EnumDescriptorProto message. Also converts values to other types if specified. - * @param message EnumDescriptorProto - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.protobuf.EnumDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Params sig_verify_cost_ed25519. */ + public sig_verify_cost_ed25519: Long; - /** - * Converts this EnumDescriptorProto to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** Params sig_verify_cost_secp256k1. */ + public sig_verify_cost_secp256k1: Long; - /** Properties of an EnumValueDescriptorProto. */ - interface IEnumValueDescriptorProto { + /** + * Encodes the specified Params message. Does not implicitly {@link cosmos.auth.v1beta1.Params.verify|verify} messages. + * @param message Params message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: cosmos.auth.v1beta1.IParams, writer?: $protobuf.Writer): $protobuf.Writer; - /** EnumValueDescriptorProto name */ - name?: (string|null); + /** + * Encodes the specified Params message, length delimited. Does not implicitly {@link cosmos.auth.v1beta1.Params.verify|verify} messages. + * @param message Params message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: cosmos.auth.v1beta1.IParams, writer?: $protobuf.Writer): $protobuf.Writer; - /** EnumValueDescriptorProto number */ - number?: (number|null); + /** + * Decodes a Params message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Params + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): cosmos.auth.v1beta1.Params; - /** EnumValueDescriptorProto options */ - options?: (google.protobuf.IEnumValueOptions|null); - } + /** + * Decodes a Params message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Params + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): cosmos.auth.v1beta1.Params; - /** Represents an EnumValueDescriptorProto. */ - class EnumValueDescriptorProto implements IEnumValueDescriptorProto { + /** + * Verifies a Params message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Constructs a new EnumValueDescriptorProto. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IEnumValueDescriptorProto); + /** + * Creates a Params message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Params + */ + public static fromObject(object: { [k: string]: any }): cosmos.auth.v1beta1.Params; - /** EnumValueDescriptorProto name. */ - public name: string; + /** + * Creates a plain object from a Params message. Also converts values to other types if specified. + * @param message Params + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: cosmos.auth.v1beta1.Params, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** EnumValueDescriptorProto number. */ - public number: number; + /** + * Converts this Params to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } + } - /** EnumValueDescriptorProto options. */ - public options?: (google.protobuf.IEnumValueOptions|null); + /** Namespace ics23. */ + namespace ics23 { + + /** Namespace v1. */ + namespace v1 { + + /** HashOp enum. */ + enum HashOp { + NO_HASH = 0, + SHA256 = 1, + SHA512 = 2, + KECCAK = 3, + RIPEMD160 = 4, + BITCOIN = 5, + SHA512_256 = 6 + } /** - * Encodes the specified EnumValueDescriptorProto message. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages. - * @param message EnumValueDescriptorProto message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.IEnumValueDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + * LengthOp defines how to process the key and value of the LeafOp + * to include length information. After encoding the length with the given + * algorithm, the length will be prepended to the key and value bytes. + * (Each one with it's own encoded length) + */ + enum LengthOp { + NO_PREFIX = 0, + VAR_PROTO = 1, + VAR_RLP = 2, + FIXED32_BIG = 3, + FIXED32_LITTLE = 4, + FIXED64_BIG = 5, + FIXED64_LITTLE = 6, + REQUIRE_32_BYTES = 7, + REQUIRE_64_BYTES = 8 + } - /** - * Encodes the specified EnumValueDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages. - * @param message EnumValueDescriptorProto message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.protobuf.IEnumValueDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + /** Properties of an ExistenceProof. */ + interface IExistenceProof { - /** - * Decodes an EnumValueDescriptorProto message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns EnumValueDescriptorProto - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumValueDescriptorProto; + /** ExistenceProof key */ + key?: (Uint8Array|null); - /** - * Decodes an EnumValueDescriptorProto message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns EnumValueDescriptorProto - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumValueDescriptorProto; + /** ExistenceProof value */ + value?: (Uint8Array|null); - /** - * Verifies an EnumValueDescriptorProto message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** ExistenceProof leaf */ + leaf?: (cosmos.ics23.v1.ILeafOp|null); - /** - * Creates an EnumValueDescriptorProto message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns EnumValueDescriptorProto - */ - public static fromObject(object: { [k: string]: any }): google.protobuf.EnumValueDescriptorProto; + /** ExistenceProof path */ + path?: (cosmos.ics23.v1.IInnerOp[]|null); + } /** - * Creates a plain object from an EnumValueDescriptorProto message. Also converts values to other types if specified. - * @param message EnumValueDescriptorProto - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.protobuf.EnumValueDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; + * ExistenceProof takes a key and a value and a set of steps to perform on it. + * The result of peforming all these steps will provide a "root hash", which can + * be compared to the value in a header. + * + * Since it is computationally infeasible to produce a hash collission for any of the used + * cryptographic hash functions, if someone can provide a series of operations to transform + * a given key and value into a root hash that matches some trusted root, these key and values + * must be in the referenced merkle tree. + * + * The only possible issue is maliablity in LeafOp, such as providing extra prefix data, + * which should be controlled by a spec. Eg. with lengthOp as NONE, + * prefix = FOO, key = BAR, value = CHOICE + * and + * prefix = F, key = OOBAR, value = CHOICE + * would produce the same value. + * + * With LengthOp this is tricker but not impossible. Which is why the "leafPrefixEqual" field + * in the ProofSpec is valuable to prevent this mutability. And why all trees should + * length-prefix the data before hashing it. + */ + class ExistenceProof implements IExistenceProof { + + /** + * Constructs a new ExistenceProof. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos.ics23.v1.IExistenceProof); - /** - * Converts this EnumValueDescriptorProto to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** ExistenceProof key. */ + public key: Uint8Array; - /** Properties of a ServiceDescriptorProto. */ - interface IServiceDescriptorProto { + /** ExistenceProof value. */ + public value: Uint8Array; - /** ServiceDescriptorProto name */ - name?: (string|null); + /** ExistenceProof leaf. */ + public leaf?: (cosmos.ics23.v1.ILeafOp|null); - /** ServiceDescriptorProto method */ - method?: (google.protobuf.IMethodDescriptorProto[]|null); + /** ExistenceProof path. */ + public path: cosmos.ics23.v1.IInnerOp[]; - /** ServiceDescriptorProto options */ - options?: (google.protobuf.IServiceOptions|null); - } + /** + * Encodes the specified ExistenceProof message. Does not implicitly {@link cosmos.ics23.v1.ExistenceProof.verify|verify} messages. + * @param message ExistenceProof message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: cosmos.ics23.v1.IExistenceProof, writer?: $protobuf.Writer): $protobuf.Writer; - /** Represents a ServiceDescriptorProto. */ - class ServiceDescriptorProto implements IServiceDescriptorProto { + /** + * Encodes the specified ExistenceProof message, length delimited. Does not implicitly {@link cosmos.ics23.v1.ExistenceProof.verify|verify} messages. + * @param message ExistenceProof message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: cosmos.ics23.v1.IExistenceProof, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Constructs a new ServiceDescriptorProto. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IServiceDescriptorProto); + /** + * Decodes an ExistenceProof message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExistenceProof + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): cosmos.ics23.v1.ExistenceProof; - /** ServiceDescriptorProto name. */ - public name: string; + /** + * Decodes an ExistenceProof message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ExistenceProof + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): cosmos.ics23.v1.ExistenceProof; - /** ServiceDescriptorProto method. */ - public method: google.protobuf.IMethodDescriptorProto[]; + /** + * Verifies an ExistenceProof message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** ServiceDescriptorProto options. */ - public options?: (google.protobuf.IServiceOptions|null); + /** + * Creates an ExistenceProof message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ExistenceProof + */ + public static fromObject(object: { [k: string]: any }): cosmos.ics23.v1.ExistenceProof; - /** - * Encodes the specified ServiceDescriptorProto message. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages. - * @param message ServiceDescriptorProto message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.IServiceDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a plain object from an ExistenceProof message. Also converts values to other types if specified. + * @param message ExistenceProof + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: cosmos.ics23.v1.ExistenceProof, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Encodes the specified ServiceDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages. - * @param message ServiceDescriptorProto message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.protobuf.IServiceDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Converts this ExistenceProof to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** - * Decodes a ServiceDescriptorProto message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ServiceDescriptorProto - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ServiceDescriptorProto; + /** Properties of a NonExistenceProof. */ + interface INonExistenceProof { - /** - * Decodes a ServiceDescriptorProto message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ServiceDescriptorProto - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ServiceDescriptorProto; + /** NonExistenceProof key */ + key?: (Uint8Array|null); - /** - * Verifies a ServiceDescriptorProto message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** NonExistenceProof left */ + left?: (cosmos.ics23.v1.IExistenceProof|null); - /** - * Creates a ServiceDescriptorProto message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ServiceDescriptorProto - */ - public static fromObject(object: { [k: string]: any }): google.protobuf.ServiceDescriptorProto; + /** NonExistenceProof right */ + right?: (cosmos.ics23.v1.IExistenceProof|null); + } - /** - * Creates a plain object from a ServiceDescriptorProto message. Also converts values to other types if specified. - * @param message ServiceDescriptorProto - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.protobuf.ServiceDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Represents a NonExistenceProof. */ + class NonExistenceProof implements INonExistenceProof { - /** - * Converts this ServiceDescriptorProto to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * Constructs a new NonExistenceProof. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos.ics23.v1.INonExistenceProof); - /** Properties of a MethodDescriptorProto. */ - interface IMethodDescriptorProto { + /** NonExistenceProof key. */ + public key: Uint8Array; - /** MethodDescriptorProto name */ - name?: (string|null); + /** NonExistenceProof left. */ + public left?: (cosmos.ics23.v1.IExistenceProof|null); - /** MethodDescriptorProto input_type */ - input_type?: (string|null); + /** NonExistenceProof right. */ + public right?: (cosmos.ics23.v1.IExistenceProof|null); - /** MethodDescriptorProto output_type */ - output_type?: (string|null); + /** + * Encodes the specified NonExistenceProof message. Does not implicitly {@link cosmos.ics23.v1.NonExistenceProof.verify|verify} messages. + * @param message NonExistenceProof message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: cosmos.ics23.v1.INonExistenceProof, writer?: $protobuf.Writer): $protobuf.Writer; - /** MethodDescriptorProto options */ - options?: (google.protobuf.IMethodOptions|null); + /** + * Encodes the specified NonExistenceProof message, length delimited. Does not implicitly {@link cosmos.ics23.v1.NonExistenceProof.verify|verify} messages. + * @param message NonExistenceProof message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: cosmos.ics23.v1.INonExistenceProof, writer?: $protobuf.Writer): $protobuf.Writer; - /** MethodDescriptorProto client_streaming */ - client_streaming?: (boolean|null); + /** + * Decodes a NonExistenceProof message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NonExistenceProof + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): cosmos.ics23.v1.NonExistenceProof; - /** MethodDescriptorProto server_streaming */ - server_streaming?: (boolean|null); - } + /** + * Decodes a NonExistenceProof message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns NonExistenceProof + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): cosmos.ics23.v1.NonExistenceProof; - /** Represents a MethodDescriptorProto. */ - class MethodDescriptorProto implements IMethodDescriptorProto { + /** + * Verifies a NonExistenceProof message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Constructs a new MethodDescriptorProto. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IMethodDescriptorProto); + /** + * Creates a NonExistenceProof message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns NonExistenceProof + */ + public static fromObject(object: { [k: string]: any }): cosmos.ics23.v1.NonExistenceProof; - /** MethodDescriptorProto name. */ - public name: string; + /** + * Creates a plain object from a NonExistenceProof message. Also converts values to other types if specified. + * @param message NonExistenceProof + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: cosmos.ics23.v1.NonExistenceProof, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** MethodDescriptorProto input_type. */ - public input_type: string; + /** + * Converts this NonExistenceProof to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** MethodDescriptorProto output_type. */ - public output_type: string; + /** Properties of a CommitmentProof. */ + interface ICommitmentProof { - /** MethodDescriptorProto options. */ - public options?: (google.protobuf.IMethodOptions|null); + /** CommitmentProof exist */ + exist?: (cosmos.ics23.v1.IExistenceProof|null); - /** MethodDescriptorProto client_streaming. */ - public client_streaming: boolean; + /** CommitmentProof nonexist */ + nonexist?: (cosmos.ics23.v1.INonExistenceProof|null); - /** MethodDescriptorProto server_streaming. */ - public server_streaming: boolean; + /** CommitmentProof batch */ + batch?: (cosmos.ics23.v1.IBatchProof|null); - /** - * Encodes the specified MethodDescriptorProto message. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages. - * @param message MethodDescriptorProto message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.IMethodDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + /** CommitmentProof compressed */ + compressed?: (cosmos.ics23.v1.ICompressedBatchProof|null); + } - /** - * Encodes the specified MethodDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages. - * @param message MethodDescriptorProto message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.protobuf.IMethodDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + /** Represents a CommitmentProof. */ + class CommitmentProof implements ICommitmentProof { - /** - * Decodes a MethodDescriptorProto message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MethodDescriptorProto - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MethodDescriptorProto; + /** + * Constructs a new CommitmentProof. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos.ics23.v1.ICommitmentProof); - /** - * Decodes a MethodDescriptorProto message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MethodDescriptorProto - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.MethodDescriptorProto; + /** CommitmentProof exist. */ + public exist?: (cosmos.ics23.v1.IExistenceProof|null); - /** - * Verifies a MethodDescriptorProto message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** CommitmentProof nonexist. */ + public nonexist?: (cosmos.ics23.v1.INonExistenceProof|null); - /** - * Creates a MethodDescriptorProto message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MethodDescriptorProto - */ - public static fromObject(object: { [k: string]: any }): google.protobuf.MethodDescriptorProto; + /** CommitmentProof batch. */ + public batch?: (cosmos.ics23.v1.IBatchProof|null); - /** - * Creates a plain object from a MethodDescriptorProto message. Also converts values to other types if specified. - * @param message MethodDescriptorProto - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.protobuf.MethodDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** CommitmentProof compressed. */ + public compressed?: (cosmos.ics23.v1.ICompressedBatchProof|null); - /** - * Converts this MethodDescriptorProto to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** CommitmentProof proof. */ + public proof?: ("exist"|"nonexist"|"batch"|"compressed"); - /** Properties of a FileOptions. */ - interface IFileOptions { + /** + * Encodes the specified CommitmentProof message. Does not implicitly {@link cosmos.ics23.v1.CommitmentProof.verify|verify} messages. + * @param message CommitmentProof message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: cosmos.ics23.v1.ICommitmentProof, writer?: $protobuf.Writer): $protobuf.Writer; - /** FileOptions java_package */ - java_package?: (string|null); + /** + * Encodes the specified CommitmentProof message, length delimited. Does not implicitly {@link cosmos.ics23.v1.CommitmentProof.verify|verify} messages. + * @param message CommitmentProof message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: cosmos.ics23.v1.ICommitmentProof, writer?: $protobuf.Writer): $protobuf.Writer; - /** FileOptions java_outer_classname */ - java_outer_classname?: (string|null); + /** + * Decodes a CommitmentProof message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CommitmentProof + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): cosmos.ics23.v1.CommitmentProof; - /** FileOptions java_multiple_files */ - java_multiple_files?: (boolean|null); + /** + * Decodes a CommitmentProof message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CommitmentProof + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): cosmos.ics23.v1.CommitmentProof; - /** FileOptions java_generate_equals_and_hash */ - java_generate_equals_and_hash?: (boolean|null); + /** + * Verifies a CommitmentProof message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** FileOptions java_string_check_utf8 */ - java_string_check_utf8?: (boolean|null); + /** + * Creates a CommitmentProof message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CommitmentProof + */ + public static fromObject(object: { [k: string]: any }): cosmos.ics23.v1.CommitmentProof; - /** FileOptions optimize_for */ - optimize_for?: (google.protobuf.FileOptions.OptimizeMode|null); + /** + * Creates a plain object from a CommitmentProof message. Also converts values to other types if specified. + * @param message CommitmentProof + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: cosmos.ics23.v1.CommitmentProof, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** FileOptions go_package */ - go_package?: (string|null); + /** + * Converts this CommitmentProof to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** FileOptions cc_generic_services */ - cc_generic_services?: (boolean|null); + /** Properties of a LeafOp. */ + interface ILeafOp { - /** FileOptions java_generic_services */ - java_generic_services?: (boolean|null); + /** LeafOp hash */ + hash?: (cosmos.ics23.v1.HashOp|null); - /** FileOptions py_generic_services */ - py_generic_services?: (boolean|null); + /** LeafOp prehash_key */ + prehash_key?: (cosmos.ics23.v1.HashOp|null); - /** FileOptions deprecated */ - deprecated?: (boolean|null); + /** LeafOp prehash_value */ + prehash_value?: (cosmos.ics23.v1.HashOp|null); - /** FileOptions cc_enable_arenas */ - cc_enable_arenas?: (boolean|null); + /** LeafOp length */ + length?: (cosmos.ics23.v1.LengthOp|null); - /** FileOptions objc_class_prefix */ - objc_class_prefix?: (string|null); + /** LeafOp prefix */ + prefix?: (Uint8Array|null); + } - /** FileOptions csharp_namespace */ - csharp_namespace?: (string|null); + /** + * LeafOp represents the raw key-value data we wish to prove, and + * must be flexible to represent the internal transformation from + * the original key-value pairs into the basis hash, for many existing + * merkle trees. + * + * key and value are passed in. So that the signature of this operation is: + * leafOp(key, value) -> output + * + * To process this, first prehash the keys and values if needed (ANY means no hash in this case): + * hkey = prehashKey(key) + * hvalue = prehashValue(value) + * + * Then combine the bytes, and hash it + * output = hash(prefix || length(hkey) || hkey || length(hvalue) || hvalue) + */ + class LeafOp implements ILeafOp { - /** FileOptions uninterpreted_option */ - uninterpreted_option?: (google.protobuf.IUninterpretedOption[]|null); + /** + * Constructs a new LeafOp. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos.ics23.v1.ILeafOp); - /** FileOptions .gogoproto.goproto_getters_all */ - ".gogoproto.goproto_getters_all"?: (boolean|null); + /** LeafOp hash. */ + public hash: cosmos.ics23.v1.HashOp; - /** FileOptions .gogoproto.goproto_enum_prefix_all */ - ".gogoproto.goproto_enum_prefix_all"?: (boolean|null); + /** LeafOp prehash_key. */ + public prehash_key: cosmos.ics23.v1.HashOp; - /** FileOptions .gogoproto.goproto_stringer_all */ - ".gogoproto.goproto_stringer_all"?: (boolean|null); + /** LeafOp prehash_value. */ + public prehash_value: cosmos.ics23.v1.HashOp; - /** FileOptions .gogoproto.verbose_equal_all */ - ".gogoproto.verbose_equal_all"?: (boolean|null); + /** LeafOp length. */ + public length: cosmos.ics23.v1.LengthOp; - /** FileOptions .gogoproto.face_all */ - ".gogoproto.face_all"?: (boolean|null); + /** LeafOp prefix. */ + public prefix: Uint8Array; - /** FileOptions .gogoproto.gostring_all */ - ".gogoproto.gostring_all"?: (boolean|null); + /** + * Encodes the specified LeafOp message. Does not implicitly {@link cosmos.ics23.v1.LeafOp.verify|verify} messages. + * @param message LeafOp message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: cosmos.ics23.v1.ILeafOp, writer?: $protobuf.Writer): $protobuf.Writer; - /** FileOptions .gogoproto.populate_all */ - ".gogoproto.populate_all"?: (boolean|null); + /** + * Encodes the specified LeafOp message, length delimited. Does not implicitly {@link cosmos.ics23.v1.LeafOp.verify|verify} messages. + * @param message LeafOp message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: cosmos.ics23.v1.ILeafOp, writer?: $protobuf.Writer): $protobuf.Writer; - /** FileOptions .gogoproto.stringer_all */ - ".gogoproto.stringer_all"?: (boolean|null); + /** + * Decodes a LeafOp message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns LeafOp + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): cosmos.ics23.v1.LeafOp; - /** FileOptions .gogoproto.onlyone_all */ - ".gogoproto.onlyone_all"?: (boolean|null); + /** + * Decodes a LeafOp message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns LeafOp + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): cosmos.ics23.v1.LeafOp; - /** FileOptions .gogoproto.equal_all */ - ".gogoproto.equal_all"?: (boolean|null); + /** + * Verifies a LeafOp message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** FileOptions .gogoproto.description_all */ - ".gogoproto.description_all"?: (boolean|null); + /** + * Creates a LeafOp message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns LeafOp + */ + public static fromObject(object: { [k: string]: any }): cosmos.ics23.v1.LeafOp; - /** FileOptions .gogoproto.testgen_all */ - ".gogoproto.testgen_all"?: (boolean|null); + /** + * Creates a plain object from a LeafOp message. Also converts values to other types if specified. + * @param message LeafOp + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: cosmos.ics23.v1.LeafOp, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** FileOptions .gogoproto.benchgen_all */ - ".gogoproto.benchgen_all"?: (boolean|null); + /** + * Converts this LeafOp to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** FileOptions .gogoproto.marshaler_all */ - ".gogoproto.marshaler_all"?: (boolean|null); + /** Properties of an InnerOp. */ + interface IInnerOp { - /** FileOptions .gogoproto.unmarshaler_all */ - ".gogoproto.unmarshaler_all"?: (boolean|null); + /** InnerOp hash */ + hash?: (cosmos.ics23.v1.HashOp|null); - /** FileOptions .gogoproto.stable_marshaler_all */ - ".gogoproto.stable_marshaler_all"?: (boolean|null); + /** InnerOp prefix */ + prefix?: (Uint8Array|null); - /** FileOptions .gogoproto.sizer_all */ - ".gogoproto.sizer_all"?: (boolean|null); + /** InnerOp suffix */ + suffix?: (Uint8Array|null); + } - /** FileOptions .gogoproto.goproto_enum_stringer_all */ - ".gogoproto.goproto_enum_stringer_all"?: (boolean|null); + /** + * InnerOp represents a merkle-proof step that is not a leaf. + * It represents concatenating two children and hashing them to provide the next result. + * + * The result of the previous step is passed in, so the signature of this op is: + * innerOp(child) -> output + * + * The result of applying InnerOp should be: + * output = op.hash(op.prefix || child || op.suffix) + * + * where the || operator is concatenation of binary data, + * and child is the result of hashing all the tree below this step. + * + * Any special data, like prepending child with the length, or prepending the entire operation with + * some value to differentiate from leaf nodes, should be included in prefix and suffix. + * If either of prefix or suffix is empty, we just treat it as an empty string + */ + class InnerOp implements IInnerOp { - /** FileOptions .gogoproto.enum_stringer_all */ - ".gogoproto.enum_stringer_all"?: (boolean|null); + /** + * Constructs a new InnerOp. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos.ics23.v1.IInnerOp); - /** FileOptions .gogoproto.unsafe_marshaler_all */ - ".gogoproto.unsafe_marshaler_all"?: (boolean|null); + /** InnerOp hash. */ + public hash: cosmos.ics23.v1.HashOp; - /** FileOptions .gogoproto.unsafe_unmarshaler_all */ - ".gogoproto.unsafe_unmarshaler_all"?: (boolean|null); + /** InnerOp prefix. */ + public prefix: Uint8Array; - /** FileOptions .gogoproto.goproto_extensions_map_all */ - ".gogoproto.goproto_extensions_map_all"?: (boolean|null); + /** InnerOp suffix. */ + public suffix: Uint8Array; - /** FileOptions .gogoproto.goproto_unrecognized_all */ - ".gogoproto.goproto_unrecognized_all"?: (boolean|null); + /** + * Encodes the specified InnerOp message. Does not implicitly {@link cosmos.ics23.v1.InnerOp.verify|verify} messages. + * @param message InnerOp message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: cosmos.ics23.v1.IInnerOp, writer?: $protobuf.Writer): $protobuf.Writer; - /** FileOptions .gogoproto.gogoproto_import */ - ".gogoproto.gogoproto_import"?: (boolean|null); + /** + * Encodes the specified InnerOp message, length delimited. Does not implicitly {@link cosmos.ics23.v1.InnerOp.verify|verify} messages. + * @param message InnerOp message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: cosmos.ics23.v1.IInnerOp, writer?: $protobuf.Writer): $protobuf.Writer; - /** FileOptions .gogoproto.protosizer_all */ - ".gogoproto.protosizer_all"?: (boolean|null); + /** + * Decodes an InnerOp message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns InnerOp + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): cosmos.ics23.v1.InnerOp; - /** FileOptions .gogoproto.compare_all */ - ".gogoproto.compare_all"?: (boolean|null); + /** + * Decodes an InnerOp message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns InnerOp + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): cosmos.ics23.v1.InnerOp; - /** FileOptions .gogoproto.typedecl_all */ - ".gogoproto.typedecl_all"?: (boolean|null); + /** + * Verifies an InnerOp message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** FileOptions .gogoproto.enumdecl_all */ - ".gogoproto.enumdecl_all"?: (boolean|null); + /** + * Creates an InnerOp message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns InnerOp + */ + public static fromObject(object: { [k: string]: any }): cosmos.ics23.v1.InnerOp; - /** FileOptions .gogoproto.goproto_registration */ - ".gogoproto.goproto_registration"?: (boolean|null); + /** + * Creates a plain object from an InnerOp message. Also converts values to other types if specified. + * @param message InnerOp + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: cosmos.ics23.v1.InnerOp, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** FileOptions .gogoproto.messagename_all */ - ".gogoproto.messagename_all"?: (boolean|null); + /** + * Converts this InnerOp to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** FileOptions .gogoproto.goproto_sizecache_all */ - ".gogoproto.goproto_sizecache_all"?: (boolean|null); + /** Properties of a ProofSpec. */ + interface IProofSpec { - /** FileOptions .gogoproto.goproto_unkeyed_all */ - ".gogoproto.goproto_unkeyed_all"?: (boolean|null); - } + /** ProofSpec leaf_spec */ + leaf_spec?: (cosmos.ics23.v1.ILeafOp|null); - /** Represents a FileOptions. */ - class FileOptions implements IFileOptions { + /** ProofSpec inner_spec */ + inner_spec?: (cosmos.ics23.v1.IInnerSpec|null); + + /** ProofSpec max_depth */ + max_depth?: (number|null); + + /** ProofSpec min_depth */ + min_depth?: (number|null); + } /** - * Constructs a new FileOptions. - * @param [properties] Properties to set + * ProofSpec defines what the expected parameters are for a given proof type. + * This can be stored in the client and used to validate any incoming proofs. + * + * verify(ProofSpec, Proof) -> Proof | Error + * + * As demonstrated in tests, if we don't fix the algorithm used to calculate the + * LeafHash for a given tree, there are many possible key-value pairs that can + * generate a given hash (by interpretting the preimage differently). + * We need this for proper security, requires client knows a priori what + * tree format server uses. But not in code, rather a configuration object. */ - constructor(properties?: google.protobuf.IFileOptions); + class ProofSpec implements IProofSpec { - /** FileOptions java_package. */ - public java_package: string; + /** + * Constructs a new ProofSpec. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos.ics23.v1.IProofSpec); - /** FileOptions java_outer_classname. */ - public java_outer_classname: string; + /** ProofSpec leaf_spec. */ + public leaf_spec?: (cosmos.ics23.v1.ILeafOp|null); - /** FileOptions java_multiple_files. */ - public java_multiple_files: boolean; + /** ProofSpec inner_spec. */ + public inner_spec?: (cosmos.ics23.v1.IInnerSpec|null); - /** FileOptions java_generate_equals_and_hash. */ - public java_generate_equals_and_hash: boolean; + /** ProofSpec max_depth. */ + public max_depth: number; - /** FileOptions java_string_check_utf8. */ - public java_string_check_utf8: boolean; + /** ProofSpec min_depth. */ + public min_depth: number; - /** FileOptions optimize_for. */ - public optimize_for: google.protobuf.FileOptions.OptimizeMode; + /** + * Encodes the specified ProofSpec message. Does not implicitly {@link cosmos.ics23.v1.ProofSpec.verify|verify} messages. + * @param message ProofSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: cosmos.ics23.v1.IProofSpec, writer?: $protobuf.Writer): $protobuf.Writer; - /** FileOptions go_package. */ - public go_package: string; + /** + * Encodes the specified ProofSpec message, length delimited. Does not implicitly {@link cosmos.ics23.v1.ProofSpec.verify|verify} messages. + * @param message ProofSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: cosmos.ics23.v1.IProofSpec, writer?: $protobuf.Writer): $protobuf.Writer; - /** FileOptions cc_generic_services. */ - public cc_generic_services: boolean; + /** + * Decodes a ProofSpec message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ProofSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): cosmos.ics23.v1.ProofSpec; - /** FileOptions java_generic_services. */ - public java_generic_services: boolean; + /** + * Decodes a ProofSpec message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ProofSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): cosmos.ics23.v1.ProofSpec; - /** FileOptions py_generic_services. */ - public py_generic_services: boolean; + /** + * Verifies a ProofSpec message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** FileOptions deprecated. */ - public deprecated: boolean; + /** + * Creates a ProofSpec message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ProofSpec + */ + public static fromObject(object: { [k: string]: any }): cosmos.ics23.v1.ProofSpec; - /** FileOptions cc_enable_arenas. */ - public cc_enable_arenas: boolean; + /** + * Creates a plain object from a ProofSpec message. Also converts values to other types if specified. + * @param message ProofSpec + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: cosmos.ics23.v1.ProofSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** FileOptions objc_class_prefix. */ - public objc_class_prefix: string; + /** + * Converts this ProofSpec to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** FileOptions csharp_namespace. */ - public csharp_namespace: string; + /** Properties of an InnerSpec. */ + interface IInnerSpec { - /** FileOptions uninterpreted_option. */ - public uninterpreted_option: google.protobuf.IUninterpretedOption[]; + /** InnerSpec child_order */ + child_order?: (number[]|null); - /** - * Encodes the specified FileOptions message. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages. - * @param message FileOptions message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.IFileOptions, writer?: $protobuf.Writer): $protobuf.Writer; + /** InnerSpec child_size */ + child_size?: (number|null); - /** - * Encodes the specified FileOptions message, length delimited. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages. - * @param message FileOptions message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.protobuf.IFileOptions, writer?: $protobuf.Writer): $protobuf.Writer; + /** InnerSpec min_prefix_length */ + min_prefix_length?: (number|null); - /** - * Decodes a FileOptions message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns FileOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileOptions; + /** InnerSpec max_prefix_length */ + max_prefix_length?: (number|null); - /** - * Decodes a FileOptions message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns FileOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FileOptions; + /** InnerSpec empty_child */ + empty_child?: (Uint8Array|null); - /** - * Verifies a FileOptions message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** InnerSpec hash */ + hash?: (cosmos.ics23.v1.HashOp|null); + } - /** - * Creates a FileOptions message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns FileOptions - */ - public static fromObject(object: { [k: string]: any }): google.protobuf.FileOptions; + /** Represents an InnerSpec. */ + class InnerSpec implements IInnerSpec { - /** - * Creates a plain object from a FileOptions message. Also converts values to other types if specified. - * @param message FileOptions - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.protobuf.FileOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Constructs a new InnerSpec. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos.ics23.v1.IInnerSpec); - /** - * Converts this FileOptions to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** InnerSpec child_order. */ + public child_order: number[]; - namespace FileOptions { + /** InnerSpec child_size. */ + public child_size: number; - /** OptimizeMode enum. */ - enum OptimizeMode { - SPEED = 1, - CODE_SIZE = 2, - LITE_RUNTIME = 3 - } - } + /** InnerSpec min_prefix_length. */ + public min_prefix_length: number; - /** Properties of a MessageOptions. */ - interface IMessageOptions { + /** InnerSpec max_prefix_length. */ + public max_prefix_length: number; - /** MessageOptions message_set_wire_format */ - message_set_wire_format?: (boolean|null); + /** InnerSpec empty_child. */ + public empty_child: Uint8Array; - /** MessageOptions no_standard_descriptor_accessor */ - no_standard_descriptor_accessor?: (boolean|null); + /** InnerSpec hash. */ + public hash: cosmos.ics23.v1.HashOp; - /** MessageOptions deprecated */ - deprecated?: (boolean|null); + /** + * Encodes the specified InnerSpec message. Does not implicitly {@link cosmos.ics23.v1.InnerSpec.verify|verify} messages. + * @param message InnerSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: cosmos.ics23.v1.IInnerSpec, writer?: $protobuf.Writer): $protobuf.Writer; - /** MessageOptions map_entry */ - map_entry?: (boolean|null); + /** + * Encodes the specified InnerSpec message, length delimited. Does not implicitly {@link cosmos.ics23.v1.InnerSpec.verify|verify} messages. + * @param message InnerSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: cosmos.ics23.v1.IInnerSpec, writer?: $protobuf.Writer): $protobuf.Writer; - /** MessageOptions uninterpreted_option */ - uninterpreted_option?: (google.protobuf.IUninterpretedOption[]|null); + /** + * Decodes an InnerSpec message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns InnerSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): cosmos.ics23.v1.InnerSpec; - /** MessageOptions .gogoproto.goproto_getters */ - ".gogoproto.goproto_getters"?: (boolean|null); + /** + * Decodes an InnerSpec message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns InnerSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): cosmos.ics23.v1.InnerSpec; - /** MessageOptions .gogoproto.goproto_stringer */ - ".gogoproto.goproto_stringer"?: (boolean|null); + /** + * Verifies an InnerSpec message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** MessageOptions .gogoproto.verbose_equal */ - ".gogoproto.verbose_equal"?: (boolean|null); + /** + * Creates an InnerSpec message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns InnerSpec + */ + public static fromObject(object: { [k: string]: any }): cosmos.ics23.v1.InnerSpec; - /** MessageOptions .gogoproto.face */ - ".gogoproto.face"?: (boolean|null); + /** + * Creates a plain object from an InnerSpec message. Also converts values to other types if specified. + * @param message InnerSpec + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: cosmos.ics23.v1.InnerSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** MessageOptions .gogoproto.gostring */ - ".gogoproto.gostring"?: (boolean|null); + /** + * Converts this InnerSpec to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** MessageOptions .gogoproto.populate */ - ".gogoproto.populate"?: (boolean|null); + /** Properties of a BatchProof. */ + interface IBatchProof { - /** MessageOptions .gogoproto.stringer */ - ".gogoproto.stringer"?: (boolean|null); + /** BatchProof entries */ + entries?: (cosmos.ics23.v1.IBatchEntry[]|null); + } - /** MessageOptions .gogoproto.onlyone */ - ".gogoproto.onlyone"?: (boolean|null); + /** Represents a BatchProof. */ + class BatchProof implements IBatchProof { - /** MessageOptions .gogoproto.equal */ - ".gogoproto.equal"?: (boolean|null); + /** + * Constructs a new BatchProof. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos.ics23.v1.IBatchProof); - /** MessageOptions .gogoproto.description */ - ".gogoproto.description"?: (boolean|null); + /** BatchProof entries. */ + public entries: cosmos.ics23.v1.IBatchEntry[]; - /** MessageOptions .gogoproto.testgen */ - ".gogoproto.testgen"?: (boolean|null); + /** + * Encodes the specified BatchProof message. Does not implicitly {@link cosmos.ics23.v1.BatchProof.verify|verify} messages. + * @param message BatchProof message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: cosmos.ics23.v1.IBatchProof, writer?: $protobuf.Writer): $protobuf.Writer; - /** MessageOptions .gogoproto.benchgen */ - ".gogoproto.benchgen"?: (boolean|null); + /** + * Encodes the specified BatchProof message, length delimited. Does not implicitly {@link cosmos.ics23.v1.BatchProof.verify|verify} messages. + * @param message BatchProof message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: cosmos.ics23.v1.IBatchProof, writer?: $protobuf.Writer): $protobuf.Writer; - /** MessageOptions .gogoproto.marshaler */ - ".gogoproto.marshaler"?: (boolean|null); + /** + * Decodes a BatchProof message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BatchProof + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): cosmos.ics23.v1.BatchProof; - /** MessageOptions .gogoproto.unmarshaler */ - ".gogoproto.unmarshaler"?: (boolean|null); + /** + * Decodes a BatchProof message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns BatchProof + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): cosmos.ics23.v1.BatchProof; - /** MessageOptions .gogoproto.stable_marshaler */ - ".gogoproto.stable_marshaler"?: (boolean|null); + /** + * Verifies a BatchProof message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** MessageOptions .gogoproto.sizer */ - ".gogoproto.sizer"?: (boolean|null); + /** + * Creates a BatchProof message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns BatchProof + */ + public static fromObject(object: { [k: string]: any }): cosmos.ics23.v1.BatchProof; - /** MessageOptions .gogoproto.unsafe_marshaler */ - ".gogoproto.unsafe_marshaler"?: (boolean|null); + /** + * Creates a plain object from a BatchProof message. Also converts values to other types if specified. + * @param message BatchProof + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: cosmos.ics23.v1.BatchProof, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** MessageOptions .gogoproto.unsafe_unmarshaler */ - ".gogoproto.unsafe_unmarshaler"?: (boolean|null); + /** + * Converts this BatchProof to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** MessageOptions .gogoproto.goproto_extensions_map */ - ".gogoproto.goproto_extensions_map"?: (boolean|null); + /** Properties of a BatchEntry. */ + interface IBatchEntry { - /** MessageOptions .gogoproto.goproto_unrecognized */ - ".gogoproto.goproto_unrecognized"?: (boolean|null); + /** BatchEntry exist */ + exist?: (cosmos.ics23.v1.IExistenceProof|null); - /** MessageOptions .gogoproto.protosizer */ - ".gogoproto.protosizer"?: (boolean|null); + /** BatchEntry nonexist */ + nonexist?: (cosmos.ics23.v1.INonExistenceProof|null); + } - /** MessageOptions .gogoproto.compare */ - ".gogoproto.compare"?: (boolean|null); + /** Represents a BatchEntry. */ + class BatchEntry implements IBatchEntry { - /** MessageOptions .gogoproto.typedecl */ - ".gogoproto.typedecl"?: (boolean|null); + /** + * Constructs a new BatchEntry. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos.ics23.v1.IBatchEntry); - /** MessageOptions .gogoproto.messagename */ - ".gogoproto.messagename"?: (boolean|null); + /** BatchEntry exist. */ + public exist?: (cosmos.ics23.v1.IExistenceProof|null); - /** MessageOptions .gogoproto.goproto_sizecache */ - ".gogoproto.goproto_sizecache"?: (boolean|null); + /** BatchEntry nonexist. */ + public nonexist?: (cosmos.ics23.v1.INonExistenceProof|null); - /** MessageOptions .gogoproto.goproto_unkeyed */ - ".gogoproto.goproto_unkeyed"?: (boolean|null); + /** BatchEntry proof. */ + public proof?: ("exist"|"nonexist"); - /** MessageOptions .cosmos_proto.interface_type */ - ".cosmos_proto.interface_type"?: (string|null); + /** + * Encodes the specified BatchEntry message. Does not implicitly {@link cosmos.ics23.v1.BatchEntry.verify|verify} messages. + * @param message BatchEntry message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: cosmos.ics23.v1.IBatchEntry, writer?: $protobuf.Writer): $protobuf.Writer; - /** MessageOptions .cosmos_proto.implements_interface */ - ".cosmos_proto.implements_interface"?: (string|null); - } + /** + * Encodes the specified BatchEntry message, length delimited. Does not implicitly {@link cosmos.ics23.v1.BatchEntry.verify|verify} messages. + * @param message BatchEntry message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: cosmos.ics23.v1.IBatchEntry, writer?: $protobuf.Writer): $protobuf.Writer; - /** Represents a MessageOptions. */ - class MessageOptions implements IMessageOptions { + /** + * Decodes a BatchEntry message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BatchEntry + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): cosmos.ics23.v1.BatchEntry; - /** - * Constructs a new MessageOptions. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IMessageOptions); + /** + * Decodes a BatchEntry message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns BatchEntry + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): cosmos.ics23.v1.BatchEntry; - /** MessageOptions message_set_wire_format. */ - public message_set_wire_format: boolean; + /** + * Verifies a BatchEntry message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** MessageOptions no_standard_descriptor_accessor. */ - public no_standard_descriptor_accessor: boolean; + /** + * Creates a BatchEntry message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns BatchEntry + */ + public static fromObject(object: { [k: string]: any }): cosmos.ics23.v1.BatchEntry; - /** MessageOptions deprecated. */ - public deprecated: boolean; + /** + * Creates a plain object from a BatchEntry message. Also converts values to other types if specified. + * @param message BatchEntry + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: cosmos.ics23.v1.BatchEntry, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** MessageOptions map_entry. */ - public map_entry: boolean; + /** + * Converts this BatchEntry to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** MessageOptions uninterpreted_option. */ - public uninterpreted_option: google.protobuf.IUninterpretedOption[]; + /** Properties of a CompressedBatchProof. */ + interface ICompressedBatchProof { - /** - * Encodes the specified MessageOptions message. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages. - * @param message MessageOptions message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.IMessageOptions, writer?: $protobuf.Writer): $protobuf.Writer; + /** CompressedBatchProof entries */ + entries?: (cosmos.ics23.v1.ICompressedBatchEntry[]|null); - /** - * Encodes the specified MessageOptions message, length delimited. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages. - * @param message MessageOptions message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.protobuf.IMessageOptions, writer?: $protobuf.Writer): $protobuf.Writer; + /** CompressedBatchProof lookup_inners */ + lookup_inners?: (cosmos.ics23.v1.IInnerOp[]|null); + } - /** - * Decodes a MessageOptions message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MessageOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MessageOptions; + /** Represents a CompressedBatchProof. */ + class CompressedBatchProof implements ICompressedBatchProof { - /** - * Decodes a MessageOptions message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MessageOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.MessageOptions; + /** + * Constructs a new CompressedBatchProof. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos.ics23.v1.ICompressedBatchProof); - /** - * Verifies a MessageOptions message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** CompressedBatchProof entries. */ + public entries: cosmos.ics23.v1.ICompressedBatchEntry[]; - /** - * Creates a MessageOptions message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MessageOptions - */ - public static fromObject(object: { [k: string]: any }): google.protobuf.MessageOptions; + /** CompressedBatchProof lookup_inners. */ + public lookup_inners: cosmos.ics23.v1.IInnerOp[]; - /** - * Creates a plain object from a MessageOptions message. Also converts values to other types if specified. - * @param message MessageOptions - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.protobuf.MessageOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Encodes the specified CompressedBatchProof message. Does not implicitly {@link cosmos.ics23.v1.CompressedBatchProof.verify|verify} messages. + * @param message CompressedBatchProof message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: cosmos.ics23.v1.ICompressedBatchProof, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Converts this MessageOptions to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * Encodes the specified CompressedBatchProof message, length delimited. Does not implicitly {@link cosmos.ics23.v1.CompressedBatchProof.verify|verify} messages. + * @param message CompressedBatchProof message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: cosmos.ics23.v1.ICompressedBatchProof, writer?: $protobuf.Writer): $protobuf.Writer; - /** Properties of a FieldOptions. */ - interface IFieldOptions { + /** + * Decodes a CompressedBatchProof message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CompressedBatchProof + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): cosmos.ics23.v1.CompressedBatchProof; - /** FieldOptions ctype */ - ctype?: (google.protobuf.FieldOptions.CType|null); + /** + * Decodes a CompressedBatchProof message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CompressedBatchProof + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): cosmos.ics23.v1.CompressedBatchProof; - /** FieldOptions packed */ - packed?: (boolean|null); + /** + * Verifies a CompressedBatchProof message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** FieldOptions jstype */ - jstype?: (google.protobuf.FieldOptions.JSType|null); + /** + * Creates a CompressedBatchProof message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CompressedBatchProof + */ + public static fromObject(object: { [k: string]: any }): cosmos.ics23.v1.CompressedBatchProof; - /** FieldOptions lazy */ - lazy?: (boolean|null); + /** + * Creates a plain object from a CompressedBatchProof message. Also converts values to other types if specified. + * @param message CompressedBatchProof + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: cosmos.ics23.v1.CompressedBatchProof, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** FieldOptions deprecated */ - deprecated?: (boolean|null); + /** + * Converts this CompressedBatchProof to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** FieldOptions weak */ - weak?: (boolean|null); + /** Properties of a CompressedBatchEntry. */ + interface ICompressedBatchEntry { - /** FieldOptions uninterpreted_option */ - uninterpreted_option?: (google.protobuf.IUninterpretedOption[]|null); + /** CompressedBatchEntry exist */ + exist?: (cosmos.ics23.v1.ICompressedExistenceProof|null); - /** FieldOptions .gogoproto.nullable */ - ".gogoproto.nullable"?: (boolean|null); + /** CompressedBatchEntry nonexist */ + nonexist?: (cosmos.ics23.v1.ICompressedNonExistenceProof|null); + } - /** FieldOptions .gogoproto.embed */ - ".gogoproto.embed"?: (boolean|null); + /** Represents a CompressedBatchEntry. */ + class CompressedBatchEntry implements ICompressedBatchEntry { - /** FieldOptions .gogoproto.customtype */ - ".gogoproto.customtype"?: (string|null); + /** + * Constructs a new CompressedBatchEntry. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos.ics23.v1.ICompressedBatchEntry); - /** FieldOptions .gogoproto.customname */ - ".gogoproto.customname"?: (string|null); + /** CompressedBatchEntry exist. */ + public exist?: (cosmos.ics23.v1.ICompressedExistenceProof|null); - /** FieldOptions .gogoproto.jsontag */ - ".gogoproto.jsontag"?: (string|null); + /** CompressedBatchEntry nonexist. */ + public nonexist?: (cosmos.ics23.v1.ICompressedNonExistenceProof|null); - /** FieldOptions .gogoproto.moretags */ - ".gogoproto.moretags"?: (string|null); + /** CompressedBatchEntry proof. */ + public proof?: ("exist"|"nonexist"); - /** FieldOptions .gogoproto.casttype */ - ".gogoproto.casttype"?: (string|null); + /** + * Encodes the specified CompressedBatchEntry message. Does not implicitly {@link cosmos.ics23.v1.CompressedBatchEntry.verify|verify} messages. + * @param message CompressedBatchEntry message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: cosmos.ics23.v1.ICompressedBatchEntry, writer?: $protobuf.Writer): $protobuf.Writer; - /** FieldOptions .gogoproto.castkey */ - ".gogoproto.castkey"?: (string|null); + /** + * Encodes the specified CompressedBatchEntry message, length delimited. Does not implicitly {@link cosmos.ics23.v1.CompressedBatchEntry.verify|verify} messages. + * @param message CompressedBatchEntry message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: cosmos.ics23.v1.ICompressedBatchEntry, writer?: $protobuf.Writer): $protobuf.Writer; - /** FieldOptions .gogoproto.castvalue */ - ".gogoproto.castvalue"?: (string|null); + /** + * Decodes a CompressedBatchEntry message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CompressedBatchEntry + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): cosmos.ics23.v1.CompressedBatchEntry; - /** FieldOptions .gogoproto.stdtime */ - ".gogoproto.stdtime"?: (boolean|null); + /** + * Decodes a CompressedBatchEntry message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CompressedBatchEntry + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): cosmos.ics23.v1.CompressedBatchEntry; - /** FieldOptions .gogoproto.stdduration */ - ".gogoproto.stdduration"?: (boolean|null); + /** + * Verifies a CompressedBatchEntry message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** FieldOptions .gogoproto.wktpointer */ - ".gogoproto.wktpointer"?: (boolean|null); + /** + * Creates a CompressedBatchEntry message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CompressedBatchEntry + */ + public static fromObject(object: { [k: string]: any }): cosmos.ics23.v1.CompressedBatchEntry; - /** FieldOptions .gogoproto.castrepeated */ - ".gogoproto.castrepeated"?: (string|null); + /** + * Creates a plain object from a CompressedBatchEntry message. Also converts values to other types if specified. + * @param message CompressedBatchEntry + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: cosmos.ics23.v1.CompressedBatchEntry, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** FieldOptions .cosmos_proto.accepts_interface */ - ".cosmos_proto.accepts_interface"?: (string|null); - } + /** + * Converts this CompressedBatchEntry to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** Represents a FieldOptions. */ - class FieldOptions implements IFieldOptions { + /** Properties of a CompressedExistenceProof. */ + interface ICompressedExistenceProof { - /** - * Constructs a new FieldOptions. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IFieldOptions); + /** CompressedExistenceProof key */ + key?: (Uint8Array|null); - /** FieldOptions ctype. */ - public ctype: google.protobuf.FieldOptions.CType; + /** CompressedExistenceProof value */ + value?: (Uint8Array|null); - /** FieldOptions packed. */ - public packed: boolean; + /** CompressedExistenceProof leaf */ + leaf?: (cosmos.ics23.v1.ILeafOp|null); - /** FieldOptions jstype. */ - public jstype: google.protobuf.FieldOptions.JSType; + /** CompressedExistenceProof path */ + path?: (number[]|null); + } - /** FieldOptions lazy. */ - public lazy: boolean; + /** Represents a CompressedExistenceProof. */ + class CompressedExistenceProof implements ICompressedExistenceProof { - /** FieldOptions deprecated. */ - public deprecated: boolean; + /** + * Constructs a new CompressedExistenceProof. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos.ics23.v1.ICompressedExistenceProof); - /** FieldOptions weak. */ - public weak: boolean; + /** CompressedExistenceProof key. */ + public key: Uint8Array; - /** FieldOptions uninterpreted_option. */ - public uninterpreted_option: google.protobuf.IUninterpretedOption[]; + /** CompressedExistenceProof value. */ + public value: Uint8Array; - /** - * Encodes the specified FieldOptions message. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages. - * @param message FieldOptions message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.IFieldOptions, writer?: $protobuf.Writer): $protobuf.Writer; + /** CompressedExistenceProof leaf. */ + public leaf?: (cosmos.ics23.v1.ILeafOp|null); - /** - * Encodes the specified FieldOptions message, length delimited. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages. - * @param message FieldOptions message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.protobuf.IFieldOptions, writer?: $protobuf.Writer): $protobuf.Writer; + /** CompressedExistenceProof path. */ + public path: number[]; - /** - * Decodes a FieldOptions message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns FieldOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldOptions; + /** + * Encodes the specified CompressedExistenceProof message. Does not implicitly {@link cosmos.ics23.v1.CompressedExistenceProof.verify|verify} messages. + * @param message CompressedExistenceProof message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: cosmos.ics23.v1.ICompressedExistenceProof, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a FieldOptions message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns FieldOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldOptions; + /** + * Encodes the specified CompressedExistenceProof message, length delimited. Does not implicitly {@link cosmos.ics23.v1.CompressedExistenceProof.verify|verify} messages. + * @param message CompressedExistenceProof message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: cosmos.ics23.v1.ICompressedExistenceProof, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Verifies a FieldOptions message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Decodes a CompressedExistenceProof message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CompressedExistenceProof + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): cosmos.ics23.v1.CompressedExistenceProof; - /** - * Creates a FieldOptions message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns FieldOptions - */ - public static fromObject(object: { [k: string]: any }): google.protobuf.FieldOptions; + /** + * Decodes a CompressedExistenceProof message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CompressedExistenceProof + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): cosmos.ics23.v1.CompressedExistenceProof; - /** - * Creates a plain object from a FieldOptions message. Also converts values to other types if specified. - * @param message FieldOptions - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.protobuf.FieldOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Verifies a CompressedExistenceProof message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Converts this FieldOptions to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * Creates a CompressedExistenceProof message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CompressedExistenceProof + */ + public static fromObject(object: { [k: string]: any }): cosmos.ics23.v1.CompressedExistenceProof; - namespace FieldOptions { + /** + * Creates a plain object from a CompressedExistenceProof message. Also converts values to other types if specified. + * @param message CompressedExistenceProof + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: cosmos.ics23.v1.CompressedExistenceProof, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** CType enum. */ - enum CType { - STRING = 0, - CORD = 1, - STRING_PIECE = 2 + /** + * Converts this CompressedExistenceProof to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; } - /** JSType enum. */ - enum JSType { - JS_NORMAL = 0, - JS_STRING = 1, - JS_NUMBER = 2 + /** Properties of a CompressedNonExistenceProof. */ + interface ICompressedNonExistenceProof { + + /** CompressedNonExistenceProof key */ + key?: (Uint8Array|null); + + /** CompressedNonExistenceProof left */ + left?: (cosmos.ics23.v1.ICompressedExistenceProof|null); + + /** CompressedNonExistenceProof right */ + right?: (cosmos.ics23.v1.ICompressedExistenceProof|null); + } + + /** Represents a CompressedNonExistenceProof. */ + class CompressedNonExistenceProof implements ICompressedNonExistenceProof { + + /** + * Constructs a new CompressedNonExistenceProof. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos.ics23.v1.ICompressedNonExistenceProof); + + /** CompressedNonExistenceProof key. */ + public key: Uint8Array; + + /** CompressedNonExistenceProof left. */ + public left?: (cosmos.ics23.v1.ICompressedExistenceProof|null); + + /** CompressedNonExistenceProof right. */ + public right?: (cosmos.ics23.v1.ICompressedExistenceProof|null); + + /** + * Encodes the specified CompressedNonExistenceProof message. Does not implicitly {@link cosmos.ics23.v1.CompressedNonExistenceProof.verify|verify} messages. + * @param message CompressedNonExistenceProof message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: cosmos.ics23.v1.ICompressedNonExistenceProof, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CompressedNonExistenceProof message, length delimited. Does not implicitly {@link cosmos.ics23.v1.CompressedNonExistenceProof.verify|verify} messages. + * @param message CompressedNonExistenceProof message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: cosmos.ics23.v1.ICompressedNonExistenceProof, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CompressedNonExistenceProof message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CompressedNonExistenceProof + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): cosmos.ics23.v1.CompressedNonExistenceProof; + + /** + * Decodes a CompressedNonExistenceProof message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CompressedNonExistenceProof + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): cosmos.ics23.v1.CompressedNonExistenceProof; + + /** + * Verifies a CompressedNonExistenceProof message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CompressedNonExistenceProof message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CompressedNonExistenceProof + */ + public static fromObject(object: { [k: string]: any }): cosmos.ics23.v1.CompressedNonExistenceProof; + + /** + * Creates a plain object from a CompressedNonExistenceProof message. Also converts values to other types if specified. + * @param message CompressedNonExistenceProof + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: cosmos.ics23.v1.CompressedNonExistenceProof, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CompressedNonExistenceProof to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; } } + } +} - /** Properties of an OneofOptions. */ - interface IOneofOptions { +/** Namespace cosmos_proto. */ +export namespace cosmos_proto { - /** OneofOptions uninterpreted_option */ - uninterpreted_option?: (google.protobuf.IUninterpretedOption[]|null); + /** Properties of an InterfaceDescriptor. */ + interface IInterfaceDescriptor { + + /** InterfaceDescriptor name */ + name?: (string|null); + + /** InterfaceDescriptor description */ + description?: (string|null); + } + + /** Represents an InterfaceDescriptor. */ + class InterfaceDescriptor implements IInterfaceDescriptor { + + /** + * Constructs a new InterfaceDescriptor. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_proto.IInterfaceDescriptor); + + /** InterfaceDescriptor name. */ + public name: string; + + /** InterfaceDescriptor description. */ + public description: string; + + /** + * Encodes the specified InterfaceDescriptor message. Does not implicitly {@link cosmos_proto.InterfaceDescriptor.verify|verify} messages. + * @param message InterfaceDescriptor message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: cosmos_proto.IInterfaceDescriptor, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified InterfaceDescriptor message, length delimited. Does not implicitly {@link cosmos_proto.InterfaceDescriptor.verify|verify} messages. + * @param message InterfaceDescriptor message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: cosmos_proto.IInterfaceDescriptor, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an InterfaceDescriptor message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns InterfaceDescriptor + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): cosmos_proto.InterfaceDescriptor; + + /** + * Decodes an InterfaceDescriptor message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns InterfaceDescriptor + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): cosmos_proto.InterfaceDescriptor; + + /** + * Verifies an InterfaceDescriptor message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an InterfaceDescriptor message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns InterfaceDescriptor + */ + public static fromObject(object: { [k: string]: any }): cosmos_proto.InterfaceDescriptor; + + /** + * Creates a plain object from an InterfaceDescriptor message. Also converts values to other types if specified. + * @param message InterfaceDescriptor + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: cosmos_proto.InterfaceDescriptor, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this InterfaceDescriptor to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ScalarDescriptor. */ + interface IScalarDescriptor { + + /** ScalarDescriptor name */ + name?: (string|null); + + /** ScalarDescriptor description */ + description?: (string|null); + + /** ScalarDescriptor field_type */ + field_type?: (cosmos_proto.ScalarType[]|null); + } + + /** Represents a ScalarDescriptor. */ + class ScalarDescriptor implements IScalarDescriptor { + + /** + * Constructs a new ScalarDescriptor. + * @param [properties] Properties to set + */ + constructor(properties?: cosmos_proto.IScalarDescriptor); + + /** ScalarDescriptor name. */ + public name: string; + + /** ScalarDescriptor description. */ + public description: string; + + /** ScalarDescriptor field_type. */ + public field_type: cosmos_proto.ScalarType[]; + + /** + * Encodes the specified ScalarDescriptor message. Does not implicitly {@link cosmos_proto.ScalarDescriptor.verify|verify} messages. + * @param message ScalarDescriptor message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: cosmos_proto.IScalarDescriptor, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ScalarDescriptor message, length delimited. Does not implicitly {@link cosmos_proto.ScalarDescriptor.verify|verify} messages. + * @param message ScalarDescriptor message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: cosmos_proto.IScalarDescriptor, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ScalarDescriptor message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ScalarDescriptor + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): cosmos_proto.ScalarDescriptor; + + /** + * Decodes a ScalarDescriptor message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ScalarDescriptor + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): cosmos_proto.ScalarDescriptor; + + /** + * Verifies a ScalarDescriptor message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ScalarDescriptor message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ScalarDescriptor + */ + public static fromObject(object: { [k: string]: any }): cosmos_proto.ScalarDescriptor; + + /** + * Creates a plain object from a ScalarDescriptor message. Also converts values to other types if specified. + * @param message ScalarDescriptor + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: cosmos_proto.ScalarDescriptor, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ScalarDescriptor to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** ScalarType enum. */ + enum ScalarType { + SCALAR_TYPE_UNSPECIFIED = 0, + SCALAR_TYPE_STRING = 1, + SCALAR_TYPE_BYTES = 2 + } +} + +/** Namespace google. */ +export namespace google { + + /** Namespace protobuf. */ + namespace protobuf { + + /** Properties of a FileDescriptorSet. */ + interface IFileDescriptorSet { + + /** FileDescriptorSet file */ + file?: (google.protobuf.IFileDescriptorProto[]|null); } - /** Represents an OneofOptions. */ - class OneofOptions implements IOneofOptions { + /** Represents a FileDescriptorSet. */ + class FileDescriptorSet implements IFileDescriptorSet { /** - * Constructs a new OneofOptions. + * Constructs a new FileDescriptorSet. * @param [properties] Properties to set */ - constructor(properties?: google.protobuf.IOneofOptions); + constructor(properties?: google.protobuf.IFileDescriptorSet); - /** OneofOptions uninterpreted_option. */ - public uninterpreted_option: google.protobuf.IUninterpretedOption[]; + /** FileDescriptorSet file. */ + public file: google.protobuf.IFileDescriptorProto[]; /** - * Encodes the specified OneofOptions message. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages. - * @param message OneofOptions message or plain object to encode + * Encodes the specified FileDescriptorSet message. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages. + * @param message FileDescriptorSet message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.protobuf.IOneofOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.protobuf.IFileDescriptorSet, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified OneofOptions message, length delimited. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages. - * @param message OneofOptions message or plain object to encode + * Encodes the specified FileDescriptorSet message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages. + * @param message FileDescriptorSet message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.protobuf.IOneofOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.protobuf.IFileDescriptorSet, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an OneofOptions message from the specified reader or buffer. + * Decodes a FileDescriptorSet message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns OneofOptions + * @returns FileDescriptorSet * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.OneofOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileDescriptorSet; /** - * Decodes an OneofOptions message from the specified reader or buffer, length delimited. + * Decodes a FileDescriptorSet message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns OneofOptions + * @returns FileDescriptorSet * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.OneofOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FileDescriptorSet; /** - * Verifies an OneofOptions message. + * Verifies a FileDescriptorSet message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an OneofOptions message from a plain object. Also converts values to their respective internal types. + * Creates a FileDescriptorSet message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns OneofOptions + * @returns FileDescriptorSet */ - public static fromObject(object: { [k: string]: any }): google.protobuf.OneofOptions; + public static fromObject(object: { [k: string]: any }): google.protobuf.FileDescriptorSet; /** - * Creates a plain object from an OneofOptions message. Also converts values to other types if specified. - * @param message OneofOptions + * Creates a plain object from a FileDescriptorSet message. Also converts values to other types if specified. + * @param message FileDescriptorSet * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.protobuf.OneofOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.FileDescriptorSet, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this OneofOptions to JSON. + * Converts this FileDescriptorSet to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an EnumOptions. */ - interface IEnumOptions { + /** Properties of a FileDescriptorProto. */ + interface IFileDescriptorProto { - /** EnumOptions allow_alias */ - allow_alias?: (boolean|null); + /** FileDescriptorProto name */ + name?: (string|null); - /** EnumOptions deprecated */ - deprecated?: (boolean|null); + /** FileDescriptorProto package */ + "package"?: (string|null); - /** EnumOptions uninterpreted_option */ - uninterpreted_option?: (google.protobuf.IUninterpretedOption[]|null); + /** FileDescriptorProto dependency */ + dependency?: (string[]|null); - /** EnumOptions .gogoproto.goproto_enum_prefix */ - ".gogoproto.goproto_enum_prefix"?: (boolean|null); + /** FileDescriptorProto public_dependency */ + public_dependency?: (number[]|null); - /** EnumOptions .gogoproto.goproto_enum_stringer */ - ".gogoproto.goproto_enum_stringer"?: (boolean|null); + /** FileDescriptorProto weak_dependency */ + weak_dependency?: (number[]|null); - /** EnumOptions .gogoproto.enum_stringer */ - ".gogoproto.enum_stringer"?: (boolean|null); + /** FileDescriptorProto message_type */ + message_type?: (google.protobuf.IDescriptorProto[]|null); - /** EnumOptions .gogoproto.enum_customname */ - ".gogoproto.enum_customname"?: (string|null); + /** FileDescriptorProto enum_type */ + enum_type?: (google.protobuf.IEnumDescriptorProto[]|null); - /** EnumOptions .gogoproto.enumdecl */ - ".gogoproto.enumdecl"?: (boolean|null); + /** FileDescriptorProto service */ + service?: (google.protobuf.IServiceDescriptorProto[]|null); + + /** FileDescriptorProto extension */ + extension?: (google.protobuf.IFieldDescriptorProto[]|null); + + /** FileDescriptorProto options */ + options?: (google.protobuf.IFileOptions|null); + + /** FileDescriptorProto source_code_info */ + source_code_info?: (google.protobuf.ISourceCodeInfo|null); + + /** FileDescriptorProto syntax */ + syntax?: (string|null); } - /** Represents an EnumOptions. */ - class EnumOptions implements IEnumOptions { + /** Represents a FileDescriptorProto. */ + class FileDescriptorProto implements IFileDescriptorProto { /** - * Constructs a new EnumOptions. + * Constructs a new FileDescriptorProto. * @param [properties] Properties to set */ - constructor(properties?: google.protobuf.IEnumOptions); + constructor(properties?: google.protobuf.IFileDescriptorProto); - /** EnumOptions allow_alias. */ - public allow_alias: boolean; + /** FileDescriptorProto name. */ + public name: string; - /** EnumOptions deprecated. */ - public deprecated: boolean; + /** FileDescriptorProto package. */ + public package: string; - /** EnumOptions uninterpreted_option. */ - public uninterpreted_option: google.protobuf.IUninterpretedOption[]; + /** FileDescriptorProto dependency. */ + public dependency: string[]; + + /** FileDescriptorProto public_dependency. */ + public public_dependency: number[]; + + /** FileDescriptorProto weak_dependency. */ + public weak_dependency: number[]; + + /** FileDescriptorProto message_type. */ + public message_type: google.protobuf.IDescriptorProto[]; + + /** FileDescriptorProto enum_type. */ + public enum_type: google.protobuf.IEnumDescriptorProto[]; + + /** FileDescriptorProto service. */ + public service: google.protobuf.IServiceDescriptorProto[]; + + /** FileDescriptorProto extension. */ + public extension: google.protobuf.IFieldDescriptorProto[]; + + /** FileDescriptorProto options. */ + public options?: (google.protobuf.IFileOptions|null); + + /** FileDescriptorProto source_code_info. */ + public source_code_info?: (google.protobuf.ISourceCodeInfo|null); + + /** FileDescriptorProto syntax. */ + public syntax: string; /** - * Encodes the specified EnumOptions message. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages. - * @param message EnumOptions message or plain object to encode + * Encodes the specified FileDescriptorProto message. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages. + * @param message FileDescriptorProto message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.protobuf.IEnumOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.protobuf.IFileDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified EnumOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages. - * @param message EnumOptions message or plain object to encode + * Encodes the specified FileDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages. + * @param message FileDescriptorProto message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.protobuf.IEnumOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.protobuf.IFileDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an EnumOptions message from the specified reader or buffer. + * Decodes a FileDescriptorProto message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns EnumOptions + * @returns FileDescriptorProto * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileDescriptorProto; /** - * Decodes an EnumOptions message from the specified reader or buffer, length delimited. + * Decodes a FileDescriptorProto message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns EnumOptions + * @returns FileDescriptorProto * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FileDescriptorProto; /** - * Verifies an EnumOptions message. + * Verifies a FileDescriptorProto message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an EnumOptions message from a plain object. Also converts values to their respective internal types. + * Creates a FileDescriptorProto message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns EnumOptions + * @returns FileDescriptorProto */ - public static fromObject(object: { [k: string]: any }): google.protobuf.EnumOptions; + public static fromObject(object: { [k: string]: any }): google.protobuf.FileDescriptorProto; /** - * Creates a plain object from an EnumOptions message. Also converts values to other types if specified. - * @param message EnumOptions + * Creates a plain object from a FileDescriptorProto message. Also converts values to other types if specified. + * @param message FileDescriptorProto * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.protobuf.EnumOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.FileDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this EnumOptions to JSON. + * Converts this FileDescriptorProto to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an EnumValueOptions. */ - interface IEnumValueOptions { + /** Properties of a DescriptorProto. */ + interface IDescriptorProto { - /** EnumValueOptions deprecated */ - deprecated?: (boolean|null); + /** DescriptorProto name */ + name?: (string|null); - /** EnumValueOptions uninterpreted_option */ - uninterpreted_option?: (google.protobuf.IUninterpretedOption[]|null); + /** DescriptorProto field */ + field?: (google.protobuf.IFieldDescriptorProto[]|null); - /** EnumValueOptions .gogoproto.enumvalue_customname */ - ".gogoproto.enumvalue_customname"?: (string|null); + /** DescriptorProto extension */ + extension?: (google.protobuf.IFieldDescriptorProto[]|null); + + /** DescriptorProto nested_type */ + nested_type?: (google.protobuf.IDescriptorProto[]|null); + + /** DescriptorProto enum_type */ + enum_type?: (google.protobuf.IEnumDescriptorProto[]|null); + + /** DescriptorProto extension_range */ + extension_range?: (google.protobuf.DescriptorProto.IExtensionRange[]|null); + + /** DescriptorProto oneof_decl */ + oneof_decl?: (google.protobuf.IOneofDescriptorProto[]|null); + + /** DescriptorProto options */ + options?: (google.protobuf.IMessageOptions|null); + + /** DescriptorProto reserved_range */ + reserved_range?: (google.protobuf.DescriptorProto.IReservedRange[]|null); + + /** DescriptorProto reserved_name */ + reserved_name?: (string[]|null); } - /** Represents an EnumValueOptions. */ - class EnumValueOptions implements IEnumValueOptions { + /** Represents a DescriptorProto. */ + class DescriptorProto implements IDescriptorProto { /** - * Constructs a new EnumValueOptions. + * Constructs a new DescriptorProto. * @param [properties] Properties to set */ - constructor(properties?: google.protobuf.IEnumValueOptions); + constructor(properties?: google.protobuf.IDescriptorProto); - /** EnumValueOptions deprecated. */ - public deprecated: boolean; + /** DescriptorProto name. */ + public name: string; - /** EnumValueOptions uninterpreted_option. */ - public uninterpreted_option: google.protobuf.IUninterpretedOption[]; + /** DescriptorProto field. */ + public field: google.protobuf.IFieldDescriptorProto[]; + + /** DescriptorProto extension. */ + public extension: google.protobuf.IFieldDescriptorProto[]; + + /** DescriptorProto nested_type. */ + public nested_type: google.protobuf.IDescriptorProto[]; + + /** DescriptorProto enum_type. */ + public enum_type: google.protobuf.IEnumDescriptorProto[]; + + /** DescriptorProto extension_range. */ + public extension_range: google.protobuf.DescriptorProto.IExtensionRange[]; + + /** DescriptorProto oneof_decl. */ + public oneof_decl: google.protobuf.IOneofDescriptorProto[]; + + /** DescriptorProto options. */ + public options?: (google.protobuf.IMessageOptions|null); + + /** DescriptorProto reserved_range. */ + public reserved_range: google.protobuf.DescriptorProto.IReservedRange[]; + + /** DescriptorProto reserved_name. */ + public reserved_name: string[]; /** - * Encodes the specified EnumValueOptions message. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages. - * @param message EnumValueOptions message or plain object to encode + * Encodes the specified DescriptorProto message. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages. + * @param message DescriptorProto message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.protobuf.IEnumValueOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.protobuf.IDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified EnumValueOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages. - * @param message EnumValueOptions message or plain object to encode + * Encodes the specified DescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages. + * @param message DescriptorProto message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.protobuf.IEnumValueOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.protobuf.IDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an EnumValueOptions message from the specified reader or buffer. + * Decodes a DescriptorProto message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns EnumValueOptions + * @returns DescriptorProto * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumValueOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto; /** - * Decodes an EnumValueOptions message from the specified reader or buffer, length delimited. + * Decodes a DescriptorProto message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns EnumValueOptions + * @returns DescriptorProto * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumValueOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.DescriptorProto; /** - * Verifies an EnumValueOptions message. + * Verifies a DescriptorProto message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an EnumValueOptions message from a plain object. Also converts values to their respective internal types. + * Creates a DescriptorProto message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns EnumValueOptions + * @returns DescriptorProto */ - public static fromObject(object: { [k: string]: any }): google.protobuf.EnumValueOptions; + public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto; /** - * Creates a plain object from an EnumValueOptions message. Also converts values to other types if specified. - * @param message EnumValueOptions + * Creates a plain object from a DescriptorProto message. Also converts values to other types if specified. + * @param message DescriptorProto * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.protobuf.EnumValueOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.DescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this EnumValueOptions to JSON. + * Converts this DescriptorProto to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ServiceOptions. */ - interface IServiceOptions { + namespace DescriptorProto { - /** ServiceOptions deprecated */ - deprecated?: (boolean|null); + /** Properties of an ExtensionRange. */ + interface IExtensionRange { - /** ServiceOptions uninterpreted_option */ - uninterpreted_option?: (google.protobuf.IUninterpretedOption[]|null); + /** ExtensionRange start */ + start?: (number|null); + + /** ExtensionRange end */ + end?: (number|null); + } + + /** Represents an ExtensionRange. */ + class ExtensionRange implements IExtensionRange { + + /** + * Constructs a new ExtensionRange. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.DescriptorProto.IExtensionRange); + + /** ExtensionRange start. */ + public start: number; + + /** ExtensionRange end. */ + public end: number; + + /** + * Encodes the specified ExtensionRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages. + * @param message ExtensionRange message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.DescriptorProto.IExtensionRange, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ExtensionRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages. + * @param message ExtensionRange message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.DescriptorProto.IExtensionRange, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExtensionRange message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExtensionRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto.ExtensionRange; + + /** + * Decodes an ExtensionRange message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ExtensionRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.DescriptorProto.ExtensionRange; + + /** + * Verifies an ExtensionRange message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an ExtensionRange message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ExtensionRange + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto.ExtensionRange; + + /** + * Creates a plain object from an ExtensionRange message. Also converts values to other types if specified. + * @param message ExtensionRange + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.DescriptorProto.ExtensionRange, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ExtensionRange to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ReservedRange. */ + interface IReservedRange { + + /** ReservedRange start */ + start?: (number|null); + + /** ReservedRange end */ + end?: (number|null); + } + + /** Represents a ReservedRange. */ + class ReservedRange implements IReservedRange { + + /** + * Constructs a new ReservedRange. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.DescriptorProto.IReservedRange); + + /** ReservedRange start. */ + public start: number; + + /** ReservedRange end. */ + public end: number; + + /** + * Encodes the specified ReservedRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages. + * @param message ReservedRange message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.DescriptorProto.IReservedRange, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ReservedRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages. + * @param message ReservedRange message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.DescriptorProto.IReservedRange, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ReservedRange message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ReservedRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto.ReservedRange; + + /** + * Decodes a ReservedRange message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ReservedRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.DescriptorProto.ReservedRange; + + /** + * Verifies a ReservedRange message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ReservedRange message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ReservedRange + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto.ReservedRange; + + /** + * Creates a plain object from a ReservedRange message. Also converts values to other types if specified. + * @param message ReservedRange + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.DescriptorProto.ReservedRange, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ReservedRange to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } } - /** Represents a ServiceOptions. */ - class ServiceOptions implements IServiceOptions { + /** Properties of a FieldDescriptorProto. */ + interface IFieldDescriptorProto { + + /** FieldDescriptorProto name */ + name?: (string|null); + + /** FieldDescriptorProto number */ + number?: (number|null); + + /** FieldDescriptorProto label */ + label?: (google.protobuf.FieldDescriptorProto.Label|null); + + /** FieldDescriptorProto type */ + type?: (google.protobuf.FieldDescriptorProto.Type|null); + + /** FieldDescriptorProto type_name */ + type_name?: (string|null); + + /** FieldDescriptorProto extendee */ + extendee?: (string|null); + + /** FieldDescriptorProto default_value */ + default_value?: (string|null); + + /** FieldDescriptorProto oneof_index */ + oneof_index?: (number|null); + + /** FieldDescriptorProto json_name */ + json_name?: (string|null); + + /** FieldDescriptorProto options */ + options?: (google.protobuf.IFieldOptions|null); + } + + /** Represents a FieldDescriptorProto. */ + class FieldDescriptorProto implements IFieldDescriptorProto { /** - * Constructs a new ServiceOptions. + * Constructs a new FieldDescriptorProto. * @param [properties] Properties to set */ - constructor(properties?: google.protobuf.IServiceOptions); + constructor(properties?: google.protobuf.IFieldDescriptorProto); - /** ServiceOptions deprecated. */ - public deprecated: boolean; + /** FieldDescriptorProto name. */ + public name: string; - /** ServiceOptions uninterpreted_option. */ - public uninterpreted_option: google.protobuf.IUninterpretedOption[]; + /** FieldDescriptorProto number. */ + public number: number; + + /** FieldDescriptorProto label. */ + public label: google.protobuf.FieldDescriptorProto.Label; + + /** FieldDescriptorProto type. */ + public type: google.protobuf.FieldDescriptorProto.Type; + + /** FieldDescriptorProto type_name. */ + public type_name: string; + + /** FieldDescriptorProto extendee. */ + public extendee: string; + + /** FieldDescriptorProto default_value. */ + public default_value: string; + + /** FieldDescriptorProto oneof_index. */ + public oneof_index: number; + + /** FieldDescriptorProto json_name. */ + public json_name: string; + + /** FieldDescriptorProto options. */ + public options?: (google.protobuf.IFieldOptions|null); /** - * Encodes the specified ServiceOptions message. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages. - * @param message ServiceOptions message or plain object to encode + * Encodes the specified FieldDescriptorProto message. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages. + * @param message FieldDescriptorProto message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.protobuf.IServiceOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.protobuf.IFieldDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ServiceOptions message, length delimited. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages. - * @param message ServiceOptions message or plain object to encode + * Encodes the specified FieldDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages. + * @param message FieldDescriptorProto message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.protobuf.IServiceOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.protobuf.IFieldDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ServiceOptions message from the specified reader or buffer. + * Decodes a FieldDescriptorProto message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ServiceOptions + * @returns FieldDescriptorProto * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ServiceOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldDescriptorProto; /** - * Decodes a ServiceOptions message from the specified reader or buffer, length delimited. + * Decodes a FieldDescriptorProto message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ServiceOptions + * @returns FieldDescriptorProto * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ServiceOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldDescriptorProto; /** - * Verifies a ServiceOptions message. + * Verifies a FieldDescriptorProto message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ServiceOptions message from a plain object. Also converts values to their respective internal types. + * Creates a FieldDescriptorProto message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ServiceOptions + * @returns FieldDescriptorProto */ - public static fromObject(object: { [k: string]: any }): google.protobuf.ServiceOptions; + public static fromObject(object: { [k: string]: any }): google.protobuf.FieldDescriptorProto; /** - * Creates a plain object from a ServiceOptions message. Also converts values to other types if specified. - * @param message ServiceOptions + * Creates a plain object from a FieldDescriptorProto message. Also converts values to other types if specified. + * @param message FieldDescriptorProto * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.protobuf.ServiceOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.FieldDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ServiceOptions to JSON. + * Converts this FieldDescriptorProto to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a MethodOptions. */ - interface IMethodOptions { + namespace FieldDescriptorProto { - /** MethodOptions deprecated */ - deprecated?: (boolean|null); + /** Type enum. */ + enum Type { + TYPE_DOUBLE = 1, + TYPE_FLOAT = 2, + TYPE_INT64 = 3, + TYPE_UINT64 = 4, + TYPE_INT32 = 5, + TYPE_FIXED64 = 6, + TYPE_FIXED32 = 7, + TYPE_BOOL = 8, + TYPE_STRING = 9, + TYPE_GROUP = 10, + TYPE_MESSAGE = 11, + TYPE_BYTES = 12, + TYPE_UINT32 = 13, + TYPE_ENUM = 14, + TYPE_SFIXED32 = 15, + TYPE_SFIXED64 = 16, + TYPE_SINT32 = 17, + TYPE_SINT64 = 18 + } - /** MethodOptions uninterpreted_option */ - uninterpreted_option?: (google.protobuf.IUninterpretedOption[]|null); + /** Label enum. */ + enum Label { + LABEL_OPTIONAL = 1, + LABEL_REQUIRED = 2, + LABEL_REPEATED = 3 + } + } - /** MethodOptions .google.api.http */ - ".google.api.http"?: (google.api.IHttpRule|null); + /** Properties of an OneofDescriptorProto. */ + interface IOneofDescriptorProto { + + /** OneofDescriptorProto name */ + name?: (string|null); + + /** OneofDescriptorProto options */ + options?: (google.protobuf.IOneofOptions|null); } - /** Represents a MethodOptions. */ - class MethodOptions implements IMethodOptions { + /** Represents an OneofDescriptorProto. */ + class OneofDescriptorProto implements IOneofDescriptorProto { /** - * Constructs a new MethodOptions. + * Constructs a new OneofDescriptorProto. * @param [properties] Properties to set */ - constructor(properties?: google.protobuf.IMethodOptions); + constructor(properties?: google.protobuf.IOneofDescriptorProto); - /** MethodOptions deprecated. */ - public deprecated: boolean; + /** OneofDescriptorProto name. */ + public name: string; - /** MethodOptions uninterpreted_option. */ - public uninterpreted_option: google.protobuf.IUninterpretedOption[]; + /** OneofDescriptorProto options. */ + public options?: (google.protobuf.IOneofOptions|null); /** - * Encodes the specified MethodOptions message. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages. - * @param message MethodOptions message or plain object to encode + * Encodes the specified OneofDescriptorProto message. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages. + * @param message OneofDescriptorProto message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.protobuf.IMethodOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.protobuf.IOneofDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MethodOptions message, length delimited. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages. - * @param message MethodOptions message or plain object to encode + * Encodes the specified OneofDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages. + * @param message OneofDescriptorProto message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.protobuf.IMethodOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.protobuf.IOneofDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MethodOptions message from the specified reader or buffer. + * Decodes an OneofDescriptorProto message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MethodOptions + * @returns OneofDescriptorProto * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MethodOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.OneofDescriptorProto; /** - * Decodes a MethodOptions message from the specified reader or buffer, length delimited. + * Decodes an OneofDescriptorProto message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MethodOptions + * @returns OneofDescriptorProto * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.MethodOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.OneofDescriptorProto; /** - * Verifies a MethodOptions message. + * Verifies an OneofDescriptorProto message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a MethodOptions message from a plain object. Also converts values to their respective internal types. + * Creates an OneofDescriptorProto message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MethodOptions + * @returns OneofDescriptorProto */ - public static fromObject(object: { [k: string]: any }): google.protobuf.MethodOptions; + public static fromObject(object: { [k: string]: any }): google.protobuf.OneofDescriptorProto; /** - * Creates a plain object from a MethodOptions message. Also converts values to other types if specified. - * @param message MethodOptions + * Creates a plain object from an OneofDescriptorProto message. Also converts values to other types if specified. + * @param message OneofDescriptorProto * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.protobuf.MethodOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.OneofDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MethodOptions to JSON. + * Converts this OneofDescriptorProto to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an UninterpretedOption. */ - interface IUninterpretedOption { - - /** UninterpretedOption name */ - name?: (google.protobuf.UninterpretedOption.INamePart[]|null); - - /** UninterpretedOption identifier_value */ - identifier_value?: (string|null); - - /** UninterpretedOption positive_int_value */ - positive_int_value?: (Long|null); - - /** UninterpretedOption negative_int_value */ - negative_int_value?: (Long|null); + /** Properties of an EnumDescriptorProto. */ + interface IEnumDescriptorProto { - /** UninterpretedOption double_value */ - double_value?: (number|null); + /** EnumDescriptorProto name */ + name?: (string|null); - /** UninterpretedOption string_value */ - string_value?: (Uint8Array|null); + /** EnumDescriptorProto value */ + value?: (google.protobuf.IEnumValueDescriptorProto[]|null); - /** UninterpretedOption aggregate_value */ - aggregate_value?: (string|null); + /** EnumDescriptorProto options */ + options?: (google.protobuf.IEnumOptions|null); } - /** Represents an UninterpretedOption. */ - class UninterpretedOption implements IUninterpretedOption { + /** Represents an EnumDescriptorProto. */ + class EnumDescriptorProto implements IEnumDescriptorProto { /** - * Constructs a new UninterpretedOption. + * Constructs a new EnumDescriptorProto. * @param [properties] Properties to set */ - constructor(properties?: google.protobuf.IUninterpretedOption); - - /** UninterpretedOption name. */ - public name: google.protobuf.UninterpretedOption.INamePart[]; - - /** UninterpretedOption identifier_value. */ - public identifier_value: string; - - /** UninterpretedOption positive_int_value. */ - public positive_int_value: Long; - - /** UninterpretedOption negative_int_value. */ - public negative_int_value: Long; + constructor(properties?: google.protobuf.IEnumDescriptorProto); - /** UninterpretedOption double_value. */ - public double_value: number; + /** EnumDescriptorProto name. */ + public name: string; - /** UninterpretedOption string_value. */ - public string_value: Uint8Array; + /** EnumDescriptorProto value. */ + public value: google.protobuf.IEnumValueDescriptorProto[]; - /** UninterpretedOption aggregate_value. */ - public aggregate_value: string; + /** EnumDescriptorProto options. */ + public options?: (google.protobuf.IEnumOptions|null); /** - * Encodes the specified UninterpretedOption message. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages. - * @param message UninterpretedOption message or plain object to encode + * Encodes the specified EnumDescriptorProto message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages. + * @param message EnumDescriptorProto message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.protobuf.IUninterpretedOption, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.protobuf.IEnumDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UninterpretedOption message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages. - * @param message UninterpretedOption message or plain object to encode + * Encodes the specified EnumDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages. + * @param message EnumDescriptorProto message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.protobuf.IUninterpretedOption, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.protobuf.IEnumDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UninterpretedOption message from the specified reader or buffer. + * Decodes an EnumDescriptorProto message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UninterpretedOption + * @returns EnumDescriptorProto * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.UninterpretedOption; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumDescriptorProto; /** - * Decodes an UninterpretedOption message from the specified reader or buffer, length delimited. + * Decodes an EnumDescriptorProto message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UninterpretedOption + * @returns EnumDescriptorProto * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.UninterpretedOption; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumDescriptorProto; /** - * Verifies an UninterpretedOption message. + * Verifies an EnumDescriptorProto message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an UninterpretedOption message from a plain object. Also converts values to their respective internal types. + * Creates an EnumDescriptorProto message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UninterpretedOption + * @returns EnumDescriptorProto */ - public static fromObject(object: { [k: string]: any }): google.protobuf.UninterpretedOption; + public static fromObject(object: { [k: string]: any }): google.protobuf.EnumDescriptorProto; /** - * Creates a plain object from an UninterpretedOption message. Also converts values to other types if specified. - * @param message UninterpretedOption + * Creates a plain object from an EnumDescriptorProto message. Also converts values to other types if specified. + * @param message EnumDescriptorProto * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.protobuf.UninterpretedOption, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.EnumDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UninterpretedOption to JSON. + * Converts this EnumDescriptorProto to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace UninterpretedOption { - - /** Properties of a NamePart. */ - interface INamePart { - - /** NamePart name_part */ - name_part: string; - - /** NamePart is_extension */ - is_extension: boolean; - } - - /** Represents a NamePart. */ - class NamePart implements INamePart { - - /** - * Constructs a new NamePart. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.UninterpretedOption.INamePart); - - /** NamePart name_part. */ - public name_part: string; - - /** NamePart is_extension. */ - public is_extension: boolean; - - /** - * Encodes the specified NamePart message. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages. - * @param message NamePart message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.UninterpretedOption.INamePart, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified NamePart message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages. - * @param message NamePart message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.protobuf.UninterpretedOption.INamePart, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a NamePart message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns NamePart - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.UninterpretedOption.NamePart; - - /** - * Decodes a NamePart message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns NamePart - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.UninterpretedOption.NamePart; - - /** - * Verifies a NamePart message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a NamePart message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns NamePart - */ - public static fromObject(object: { [k: string]: any }): google.protobuf.UninterpretedOption.NamePart; - - /** - * Creates a plain object from a NamePart message. Also converts values to other types if specified. - * @param message NamePart - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.protobuf.UninterpretedOption.NamePart, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Properties of an EnumValueDescriptorProto. */ + interface IEnumValueDescriptorProto { - /** - * Converts this NamePart to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - } + /** EnumValueDescriptorProto name */ + name?: (string|null); - /** Properties of a SourceCodeInfo. */ - interface ISourceCodeInfo { + /** EnumValueDescriptorProto number */ + number?: (number|null); - /** SourceCodeInfo location */ - location?: (google.protobuf.SourceCodeInfo.ILocation[]|null); + /** EnumValueDescriptorProto options */ + options?: (google.protobuf.IEnumValueOptions|null); } - /** Represents a SourceCodeInfo. */ - class SourceCodeInfo implements ISourceCodeInfo { + /** Represents an EnumValueDescriptorProto. */ + class EnumValueDescriptorProto implements IEnumValueDescriptorProto { /** - * Constructs a new SourceCodeInfo. + * Constructs a new EnumValueDescriptorProto. * @param [properties] Properties to set */ - constructor(properties?: google.protobuf.ISourceCodeInfo); + constructor(properties?: google.protobuf.IEnumValueDescriptorProto); - /** SourceCodeInfo location. */ - public location: google.protobuf.SourceCodeInfo.ILocation[]; + /** EnumValueDescriptorProto name. */ + public name: string; + + /** EnumValueDescriptorProto number. */ + public number: number; + + /** EnumValueDescriptorProto options. */ + public options?: (google.protobuf.IEnumValueOptions|null); /** - * Encodes the specified SourceCodeInfo message. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages. - * @param message SourceCodeInfo message or plain object to encode + * Encodes the specified EnumValueDescriptorProto message. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages. + * @param message EnumValueDescriptorProto message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.protobuf.ISourceCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.protobuf.IEnumValueDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified SourceCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages. - * @param message SourceCodeInfo message or plain object to encode + * Encodes the specified EnumValueDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages. + * @param message EnumValueDescriptorProto message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.protobuf.ISourceCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.protobuf.IEnumValueDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SourceCodeInfo message from the specified reader or buffer. + * Decodes an EnumValueDescriptorProto message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SourceCodeInfo + * @returns EnumValueDescriptorProto * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.SourceCodeInfo; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumValueDescriptorProto; /** - * Decodes a SourceCodeInfo message from the specified reader or buffer, length delimited. + * Decodes an EnumValueDescriptorProto message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SourceCodeInfo + * @returns EnumValueDescriptorProto * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.SourceCodeInfo; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumValueDescriptorProto; /** - * Verifies a SourceCodeInfo message. + * Verifies an EnumValueDescriptorProto message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a SourceCodeInfo message from a plain object. Also converts values to their respective internal types. + * Creates an EnumValueDescriptorProto message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SourceCodeInfo + * @returns EnumValueDescriptorProto */ - public static fromObject(object: { [k: string]: any }): google.protobuf.SourceCodeInfo; + public static fromObject(object: { [k: string]: any }): google.protobuf.EnumValueDescriptorProto; /** - * Creates a plain object from a SourceCodeInfo message. Also converts values to other types if specified. - * @param message SourceCodeInfo + * Creates a plain object from an EnumValueDescriptorProto message. Also converts values to other types if specified. + * @param message EnumValueDescriptorProto * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.protobuf.SourceCodeInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.EnumValueDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SourceCodeInfo to JSON. + * Converts this EnumValueDescriptorProto to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace SourceCodeInfo { + /** Properties of a ServiceDescriptorProto. */ + interface IServiceDescriptorProto { - /** Properties of a Location. */ - interface ILocation { + /** ServiceDescriptorProto name */ + name?: (string|null); - /** Location path */ - path?: (number[]|null); + /** ServiceDescriptorProto method */ + method?: (google.protobuf.IMethodDescriptorProto[]|null); - /** Location span */ - span?: (number[]|null); + /** ServiceDescriptorProto options */ + options?: (google.protobuf.IServiceOptions|null); + } - /** Location leading_comments */ - leading_comments?: (string|null); + /** Represents a ServiceDescriptorProto. */ + class ServiceDescriptorProto implements IServiceDescriptorProto { - /** Location trailing_comments */ - trailing_comments?: (string|null); + /** + * Constructs a new ServiceDescriptorProto. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IServiceDescriptorProto); - /** Location leading_detached_comments */ - leading_detached_comments?: (string[]|null); - } + /** ServiceDescriptorProto name. */ + public name: string; - /** Represents a Location. */ - class Location implements ILocation { + /** ServiceDescriptorProto method. */ + public method: google.protobuf.IMethodDescriptorProto[]; - /** - * Constructs a new Location. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.SourceCodeInfo.ILocation); + /** ServiceDescriptorProto options. */ + public options?: (google.protobuf.IServiceOptions|null); - /** Location path. */ - public path: number[]; + /** + * Encodes the specified ServiceDescriptorProto message. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages. + * @param message ServiceDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IServiceDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; - /** Location span. */ - public span: number[]; + /** + * Encodes the specified ServiceDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages. + * @param message ServiceDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IServiceDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; - /** Location leading_comments. */ - public leading_comments: string; + /** + * Decodes a ServiceDescriptorProto message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ServiceDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ServiceDescriptorProto; - /** Location trailing_comments. */ - public trailing_comments: string; + /** + * Decodes a ServiceDescriptorProto message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ServiceDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ServiceDescriptorProto; - /** Location leading_detached_comments. */ - public leading_detached_comments: string[]; + /** + * Verifies a ServiceDescriptorProto message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Encodes the specified Location message. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages. - * @param message Location message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.SourceCodeInfo.ILocation, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a ServiceDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ServiceDescriptorProto + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.ServiceDescriptorProto; - /** - * Encodes the specified Location message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages. - * @param message Location message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.protobuf.SourceCodeInfo.ILocation, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a plain object from a ServiceDescriptorProto message. Also converts values to other types if specified. + * @param message ServiceDescriptorProto + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.ServiceDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Decodes a Location message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Location - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.SourceCodeInfo.Location; + /** + * Converts this ServiceDescriptorProto to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** - * Decodes a Location message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Location - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.SourceCodeInfo.Location; + /** Properties of a MethodDescriptorProto. */ + interface IMethodDescriptorProto { - /** - * Verifies a Location message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** MethodDescriptorProto name */ + name?: (string|null); - /** - * Creates a Location message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Location - */ - public static fromObject(object: { [k: string]: any }): google.protobuf.SourceCodeInfo.Location; + /** MethodDescriptorProto input_type */ + input_type?: (string|null); - /** - * Creates a plain object from a Location message. Also converts values to other types if specified. - * @param message Location - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.protobuf.SourceCodeInfo.Location, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** MethodDescriptorProto output_type */ + output_type?: (string|null); - /** - * Converts this Location to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - } + /** MethodDescriptorProto options */ + options?: (google.protobuf.IMethodOptions|null); - /** Properties of a GeneratedCodeInfo. */ - interface IGeneratedCodeInfo { + /** MethodDescriptorProto client_streaming */ + client_streaming?: (boolean|null); - /** GeneratedCodeInfo annotation */ - annotation?: (google.protobuf.GeneratedCodeInfo.IAnnotation[]|null); + /** MethodDescriptorProto server_streaming */ + server_streaming?: (boolean|null); } - /** Represents a GeneratedCodeInfo. */ - class GeneratedCodeInfo implements IGeneratedCodeInfo { + /** Represents a MethodDescriptorProto. */ + class MethodDescriptorProto implements IMethodDescriptorProto { /** - * Constructs a new GeneratedCodeInfo. + * Constructs a new MethodDescriptorProto. * @param [properties] Properties to set */ - constructor(properties?: google.protobuf.IGeneratedCodeInfo); + constructor(properties?: google.protobuf.IMethodDescriptorProto); - /** GeneratedCodeInfo annotation. */ - public annotation: google.protobuf.GeneratedCodeInfo.IAnnotation[]; + /** MethodDescriptorProto name. */ + public name: string; + + /** MethodDescriptorProto input_type. */ + public input_type: string; + + /** MethodDescriptorProto output_type. */ + public output_type: string; + + /** MethodDescriptorProto options. */ + public options?: (google.protobuf.IMethodOptions|null); + + /** MethodDescriptorProto client_streaming. */ + public client_streaming: boolean; + + /** MethodDescriptorProto server_streaming. */ + public server_streaming: boolean; /** - * Encodes the specified GeneratedCodeInfo message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages. - * @param message GeneratedCodeInfo message or plain object to encode + * Encodes the specified MethodDescriptorProto message. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages. + * @param message MethodDescriptorProto message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.protobuf.IGeneratedCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.protobuf.IMethodDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GeneratedCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages. - * @param message GeneratedCodeInfo message or plain object to encode + * Encodes the specified MethodDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages. + * @param message MethodDescriptorProto message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.protobuf.IGeneratedCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.protobuf.IMethodDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GeneratedCodeInfo message from the specified reader or buffer. + * Decodes a MethodDescriptorProto message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GeneratedCodeInfo + * @returns MethodDescriptorProto * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.GeneratedCodeInfo; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MethodDescriptorProto; /** - * Decodes a GeneratedCodeInfo message from the specified reader or buffer, length delimited. + * Decodes a MethodDescriptorProto message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GeneratedCodeInfo + * @returns MethodDescriptorProto * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.GeneratedCodeInfo; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.MethodDescriptorProto; /** - * Verifies a GeneratedCodeInfo message. + * Verifies a MethodDescriptorProto message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GeneratedCodeInfo message from a plain object. Also converts values to their respective internal types. + * Creates a MethodDescriptorProto message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GeneratedCodeInfo + * @returns MethodDescriptorProto */ - public static fromObject(object: { [k: string]: any }): google.protobuf.GeneratedCodeInfo; + public static fromObject(object: { [k: string]: any }): google.protobuf.MethodDescriptorProto; /** - * Creates a plain object from a GeneratedCodeInfo message. Also converts values to other types if specified. - * @param message GeneratedCodeInfo + * Creates a plain object from a MethodDescriptorProto message. Also converts values to other types if specified. + * @param message MethodDescriptorProto * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.protobuf.GeneratedCodeInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.MethodDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GeneratedCodeInfo to JSON. + * Converts this MethodDescriptorProto to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace GeneratedCodeInfo { + /** Properties of a FileOptions. */ + interface IFileOptions { - /** Properties of an Annotation. */ - interface IAnnotation { + /** FileOptions java_package */ + java_package?: (string|null); - /** Annotation path */ - path?: (number[]|null); + /** FileOptions java_outer_classname */ + java_outer_classname?: (string|null); - /** Annotation source_file */ - source_file?: (string|null); + /** FileOptions java_multiple_files */ + java_multiple_files?: (boolean|null); - /** Annotation begin */ - begin?: (number|null); + /** FileOptions java_generate_equals_and_hash */ + java_generate_equals_and_hash?: (boolean|null); - /** Annotation end */ - end?: (number|null); - } + /** FileOptions java_string_check_utf8 */ + java_string_check_utf8?: (boolean|null); - /** Represents an Annotation. */ - class Annotation implements IAnnotation { + /** FileOptions optimize_for */ + optimize_for?: (google.protobuf.FileOptions.OptimizeMode|null); - /** - * Constructs a new Annotation. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.GeneratedCodeInfo.IAnnotation); + /** FileOptions go_package */ + go_package?: (string|null); - /** Annotation path. */ - public path: number[]; + /** FileOptions cc_generic_services */ + cc_generic_services?: (boolean|null); - /** Annotation source_file. */ - public source_file: string; + /** FileOptions java_generic_services */ + java_generic_services?: (boolean|null); - /** Annotation begin. */ - public begin: number; + /** FileOptions py_generic_services */ + py_generic_services?: (boolean|null); - /** Annotation end. */ - public end: number; + /** FileOptions deprecated */ + deprecated?: (boolean|null); - /** - * Encodes the specified Annotation message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages. - * @param message Annotation message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.GeneratedCodeInfo.IAnnotation, writer?: $protobuf.Writer): $protobuf.Writer; + /** FileOptions cc_enable_arenas */ + cc_enable_arenas?: (boolean|null); - /** - * Encodes the specified Annotation message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages. - * @param message Annotation message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.protobuf.GeneratedCodeInfo.IAnnotation, writer?: $protobuf.Writer): $protobuf.Writer; + /** FileOptions objc_class_prefix */ + objc_class_prefix?: (string|null); - /** - * Decodes an Annotation message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Annotation - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.GeneratedCodeInfo.Annotation; + /** FileOptions csharp_namespace */ + csharp_namespace?: (string|null); - /** - * Decodes an Annotation message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Annotation - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.GeneratedCodeInfo.Annotation; + /** FileOptions uninterpreted_option */ + uninterpreted_option?: (google.protobuf.IUninterpretedOption[]|null); - /** - * Verifies an Annotation message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** FileOptions .gogoproto.goproto_getters_all */ + ".gogoproto.goproto_getters_all"?: (boolean|null); - /** - * Creates an Annotation message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Annotation - */ - public static fromObject(object: { [k: string]: any }): google.protobuf.GeneratedCodeInfo.Annotation; + /** FileOptions .gogoproto.goproto_enum_prefix_all */ + ".gogoproto.goproto_enum_prefix_all"?: (boolean|null); - /** - * Creates a plain object from an Annotation message. Also converts values to other types if specified. - * @param message Annotation - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.protobuf.GeneratedCodeInfo.Annotation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** FileOptions .gogoproto.goproto_stringer_all */ + ".gogoproto.goproto_stringer_all"?: (boolean|null); - /** - * Converts this Annotation to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - } + /** FileOptions .gogoproto.verbose_equal_all */ + ".gogoproto.verbose_equal_all"?: (boolean|null); - /** Properties of an Any. */ - interface IAny { + /** FileOptions .gogoproto.face_all */ + ".gogoproto.face_all"?: (boolean|null); - /** Any type_url */ - type_url?: (string|null); + /** FileOptions .gogoproto.gostring_all */ + ".gogoproto.gostring_all"?: (boolean|null); - /** Any value */ - value?: (Uint8Array|null); - } + /** FileOptions .gogoproto.populate_all */ + ".gogoproto.populate_all"?: (boolean|null); - /** Represents an Any. */ - class Any implements IAny { + /** FileOptions .gogoproto.stringer_all */ + ".gogoproto.stringer_all"?: (boolean|null); - /** - * Constructs a new Any. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IAny); + /** FileOptions .gogoproto.onlyone_all */ + ".gogoproto.onlyone_all"?: (boolean|null); - /** Any type_url. */ - public type_url: string; + /** FileOptions .gogoproto.equal_all */ + ".gogoproto.equal_all"?: (boolean|null); - /** Any value. */ - public value: Uint8Array; + /** FileOptions .gogoproto.description_all */ + ".gogoproto.description_all"?: (boolean|null); - /** - * Encodes the specified Any message. Does not implicitly {@link google.protobuf.Any.verify|verify} messages. - * @param message Any message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.IAny, writer?: $protobuf.Writer): $protobuf.Writer; + /** FileOptions .gogoproto.testgen_all */ + ".gogoproto.testgen_all"?: (boolean|null); - /** - * Encodes the specified Any message, length delimited. Does not implicitly {@link google.protobuf.Any.verify|verify} messages. - * @param message Any message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.protobuf.IAny, writer?: $protobuf.Writer): $protobuf.Writer; + /** FileOptions .gogoproto.benchgen_all */ + ".gogoproto.benchgen_all"?: (boolean|null); - /** - * Decodes an Any message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Any - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Any; + /** FileOptions .gogoproto.marshaler_all */ + ".gogoproto.marshaler_all"?: (boolean|null); - /** - * Decodes an Any message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Any - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Any; + /** FileOptions .gogoproto.unmarshaler_all */ + ".gogoproto.unmarshaler_all"?: (boolean|null); - /** - * Verifies an Any message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** FileOptions .gogoproto.stable_marshaler_all */ + ".gogoproto.stable_marshaler_all"?: (boolean|null); - /** - * Creates an Any message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Any - */ - public static fromObject(object: { [k: string]: any }): google.protobuf.Any; + /** FileOptions .gogoproto.sizer_all */ + ".gogoproto.sizer_all"?: (boolean|null); - /** - * Creates a plain object from an Any message. Also converts values to other types if specified. - * @param message Any - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.protobuf.Any, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** FileOptions .gogoproto.goproto_enum_stringer_all */ + ".gogoproto.goproto_enum_stringer_all"?: (boolean|null); - /** - * Converts this Any to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** FileOptions .gogoproto.enum_stringer_all */ + ".gogoproto.enum_stringer_all"?: (boolean|null); - /** Properties of a Timestamp. */ - interface ITimestamp { + /** FileOptions .gogoproto.unsafe_marshaler_all */ + ".gogoproto.unsafe_marshaler_all"?: (boolean|null); - /** Timestamp seconds */ - seconds?: (Long|null); + /** FileOptions .gogoproto.unsafe_unmarshaler_all */ + ".gogoproto.unsafe_unmarshaler_all"?: (boolean|null); - /** Timestamp nanos */ - nanos?: (number|null); + /** FileOptions .gogoproto.goproto_extensions_map_all */ + ".gogoproto.goproto_extensions_map_all"?: (boolean|null); + + /** FileOptions .gogoproto.goproto_unrecognized_all */ + ".gogoproto.goproto_unrecognized_all"?: (boolean|null); + + /** FileOptions .gogoproto.gogoproto_import */ + ".gogoproto.gogoproto_import"?: (boolean|null); + + /** FileOptions .gogoproto.protosizer_all */ + ".gogoproto.protosizer_all"?: (boolean|null); + + /** FileOptions .gogoproto.compare_all */ + ".gogoproto.compare_all"?: (boolean|null); + + /** FileOptions .gogoproto.typedecl_all */ + ".gogoproto.typedecl_all"?: (boolean|null); + + /** FileOptions .gogoproto.enumdecl_all */ + ".gogoproto.enumdecl_all"?: (boolean|null); + + /** FileOptions .gogoproto.goproto_registration */ + ".gogoproto.goproto_registration"?: (boolean|null); + + /** FileOptions .gogoproto.messagename_all */ + ".gogoproto.messagename_all"?: (boolean|null); + + /** FileOptions .gogoproto.goproto_sizecache_all */ + ".gogoproto.goproto_sizecache_all"?: (boolean|null); + + /** FileOptions .gogoproto.goproto_unkeyed_all */ + ".gogoproto.goproto_unkeyed_all"?: (boolean|null); + + /** FileOptions .cosmos_proto.declare_interface */ + ".cosmos_proto.declare_interface"?: (cosmos_proto.IInterfaceDescriptor[]|null); + + /** FileOptions .cosmos_proto.declare_scalar */ + ".cosmos_proto.declare_scalar"?: (cosmos_proto.IScalarDescriptor[]|null); } - /** Represents a Timestamp. */ - class Timestamp implements ITimestamp { + /** Represents a FileOptions. */ + class FileOptions implements IFileOptions { /** - * Constructs a new Timestamp. + * Constructs a new FileOptions. * @param [properties] Properties to set */ - constructor(properties?: google.protobuf.ITimestamp); + constructor(properties?: google.protobuf.IFileOptions); - /** Timestamp seconds. */ - public seconds: Long; + /** FileOptions java_package. */ + public java_package: string; - /** Timestamp nanos. */ - public nanos: number; + /** FileOptions java_outer_classname. */ + public java_outer_classname: string; + + /** FileOptions java_multiple_files. */ + public java_multiple_files: boolean; + + /** FileOptions java_generate_equals_and_hash. */ + public java_generate_equals_and_hash: boolean; + + /** FileOptions java_string_check_utf8. */ + public java_string_check_utf8: boolean; + + /** FileOptions optimize_for. */ + public optimize_for: google.protobuf.FileOptions.OptimizeMode; + + /** FileOptions go_package. */ + public go_package: string; + + /** FileOptions cc_generic_services. */ + public cc_generic_services: boolean; + + /** FileOptions java_generic_services. */ + public java_generic_services: boolean; + + /** FileOptions py_generic_services. */ + public py_generic_services: boolean; + + /** FileOptions deprecated. */ + public deprecated: boolean; + + /** FileOptions cc_enable_arenas. */ + public cc_enable_arenas: boolean; + + /** FileOptions objc_class_prefix. */ + public objc_class_prefix: string; + + /** FileOptions csharp_namespace. */ + public csharp_namespace: string; + + /** FileOptions uninterpreted_option. */ + public uninterpreted_option: google.protobuf.IUninterpretedOption[]; /** - * Encodes the specified Timestamp message. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages. - * @param message Timestamp message or plain object to encode + * Encodes the specified FileOptions message. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages. + * @param message FileOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.protobuf.ITimestamp, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.protobuf.IFileOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Timestamp message, length delimited. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages. - * @param message Timestamp message or plain object to encode + * Encodes the specified FileOptions message, length delimited. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages. + * @param message FileOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.protobuf.ITimestamp, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.protobuf.IFileOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Timestamp message from the specified reader or buffer. + * Decodes a FileOptions message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Timestamp + * @returns FileOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Timestamp; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileOptions; /** - * Decodes a Timestamp message from the specified reader or buffer, length delimited. + * Decodes a FileOptions message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Timestamp + * @returns FileOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Timestamp; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FileOptions; /** - * Verifies a Timestamp message. + * Verifies a FileOptions message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a Timestamp message from a plain object. Also converts values to their respective internal types. + * Creates a FileOptions message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Timestamp + * @returns FileOptions */ - public static fromObject(object: { [k: string]: any }): google.protobuf.Timestamp; + public static fromObject(object: { [k: string]: any }): google.protobuf.FileOptions; /** - * Creates a plain object from a Timestamp message. Also converts values to other types if specified. - * @param message Timestamp + * Creates a plain object from a FileOptions message. Also converts values to other types if specified. + * @param message FileOptions * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.protobuf.Timestamp, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.FileOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Timestamp to JSON. + * Converts this FileOptions to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a Duration. */ - interface IDuration { + namespace FileOptions { - /** Duration seconds */ - seconds?: (Long|null); + /** OptimizeMode enum. */ + enum OptimizeMode { + SPEED = 1, + CODE_SIZE = 2, + LITE_RUNTIME = 3 + } + } - /** Duration nanos */ - nanos?: (number|null); + /** Properties of a MessageOptions. */ + interface IMessageOptions { + + /** MessageOptions message_set_wire_format */ + message_set_wire_format?: (boolean|null); + + /** MessageOptions no_standard_descriptor_accessor */ + no_standard_descriptor_accessor?: (boolean|null); + + /** MessageOptions deprecated */ + deprecated?: (boolean|null); + + /** MessageOptions map_entry */ + map_entry?: (boolean|null); + + /** MessageOptions uninterpreted_option */ + uninterpreted_option?: (google.protobuf.IUninterpretedOption[]|null); + + /** MessageOptions .gogoproto.goproto_getters */ + ".gogoproto.goproto_getters"?: (boolean|null); + + /** MessageOptions .gogoproto.goproto_stringer */ + ".gogoproto.goproto_stringer"?: (boolean|null); + + /** MessageOptions .gogoproto.verbose_equal */ + ".gogoproto.verbose_equal"?: (boolean|null); + + /** MessageOptions .gogoproto.face */ + ".gogoproto.face"?: (boolean|null); + + /** MessageOptions .gogoproto.gostring */ + ".gogoproto.gostring"?: (boolean|null); + + /** MessageOptions .gogoproto.populate */ + ".gogoproto.populate"?: (boolean|null); + + /** MessageOptions .gogoproto.stringer */ + ".gogoproto.stringer"?: (boolean|null); + + /** MessageOptions .gogoproto.onlyone */ + ".gogoproto.onlyone"?: (boolean|null); + + /** MessageOptions .gogoproto.equal */ + ".gogoproto.equal"?: (boolean|null); + + /** MessageOptions .gogoproto.description */ + ".gogoproto.description"?: (boolean|null); + + /** MessageOptions .gogoproto.testgen */ + ".gogoproto.testgen"?: (boolean|null); + + /** MessageOptions .gogoproto.benchgen */ + ".gogoproto.benchgen"?: (boolean|null); + + /** MessageOptions .gogoproto.marshaler */ + ".gogoproto.marshaler"?: (boolean|null); + + /** MessageOptions .gogoproto.unmarshaler */ + ".gogoproto.unmarshaler"?: (boolean|null); + + /** MessageOptions .gogoproto.stable_marshaler */ + ".gogoproto.stable_marshaler"?: (boolean|null); + + /** MessageOptions .gogoproto.sizer */ + ".gogoproto.sizer"?: (boolean|null); + + /** MessageOptions .gogoproto.unsafe_marshaler */ + ".gogoproto.unsafe_marshaler"?: (boolean|null); + + /** MessageOptions .gogoproto.unsafe_unmarshaler */ + ".gogoproto.unsafe_unmarshaler"?: (boolean|null); + + /** MessageOptions .gogoproto.goproto_extensions_map */ + ".gogoproto.goproto_extensions_map"?: (boolean|null); + + /** MessageOptions .gogoproto.goproto_unrecognized */ + ".gogoproto.goproto_unrecognized"?: (boolean|null); + + /** MessageOptions .gogoproto.protosizer */ + ".gogoproto.protosizer"?: (boolean|null); + + /** MessageOptions .gogoproto.compare */ + ".gogoproto.compare"?: (boolean|null); + + /** MessageOptions .gogoproto.typedecl */ + ".gogoproto.typedecl"?: (boolean|null); + + /** MessageOptions .gogoproto.messagename */ + ".gogoproto.messagename"?: (boolean|null); + + /** MessageOptions .gogoproto.goproto_sizecache */ + ".gogoproto.goproto_sizecache"?: (boolean|null); + + /** MessageOptions .gogoproto.goproto_unkeyed */ + ".gogoproto.goproto_unkeyed"?: (boolean|null); + + /** MessageOptions .cosmos_proto.implements_interface */ + ".cosmos_proto.implements_interface"?: (string[]|null); + + /** MessageOptions .amino.name */ + ".amino.name"?: (string|null); + + /** MessageOptions .amino.message_encoding */ + ".amino.message_encoding"?: (string|null); } - /** Represents a Duration. */ - class Duration implements IDuration { + /** Represents a MessageOptions. */ + class MessageOptions implements IMessageOptions { /** - * Constructs a new Duration. + * Constructs a new MessageOptions. * @param [properties] Properties to set */ - constructor(properties?: google.protobuf.IDuration); + constructor(properties?: google.protobuf.IMessageOptions); - /** Duration seconds. */ - public seconds: Long; + /** MessageOptions message_set_wire_format. */ + public message_set_wire_format: boolean; - /** Duration nanos. */ - public nanos: number; + /** MessageOptions no_standard_descriptor_accessor. */ + public no_standard_descriptor_accessor: boolean; + + /** MessageOptions deprecated. */ + public deprecated: boolean; + + /** MessageOptions map_entry. */ + public map_entry: boolean; + + /** MessageOptions uninterpreted_option. */ + public uninterpreted_option: google.protobuf.IUninterpretedOption[]; /** - * Encodes the specified Duration message. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages. - * @param message Duration message or plain object to encode + * Encodes the specified MessageOptions message. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages. + * @param message MessageOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.protobuf.IDuration, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.protobuf.IMessageOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Duration message, length delimited. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages. - * @param message Duration message or plain object to encode + * Encodes the specified MessageOptions message, length delimited. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages. + * @param message MessageOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.protobuf.IDuration, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.protobuf.IMessageOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Duration message from the specified reader or buffer. + * Decodes a MessageOptions message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Duration + * @returns MessageOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Duration; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MessageOptions; /** - * Decodes a Duration message from the specified reader or buffer, length delimited. + * Decodes a MessageOptions message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Duration + * @returns MessageOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Duration; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.MessageOptions; /** - * Verifies a Duration message. + * Verifies a MessageOptions message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a Duration message from a plain object. Also converts values to their respective internal types. + * Creates a MessageOptions message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Duration + * @returns MessageOptions */ - public static fromObject(object: { [k: string]: any }): google.protobuf.Duration; + public static fromObject(object: { [k: string]: any }): google.protobuf.MessageOptions; /** - * Creates a plain object from a Duration message. Also converts values to other types if specified. - * @param message Duration + * Creates a plain object from a MessageOptions message. Also converts values to other types if specified. + * @param message MessageOptions * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.protobuf.Duration, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.MessageOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Duration to JSON. + * Converts this MessageOptions to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - } - - /** Namespace api. */ - namespace api { - /** Properties of a Http. */ - interface IHttp { + /** Properties of a FieldOptions. */ + interface IFieldOptions { - /** Http rules */ - rules?: (google.api.IHttpRule[]|null); + /** FieldOptions ctype */ + ctype?: (google.protobuf.FieldOptions.CType|null); - /** Http fully_decode_reserved_expansion */ - fully_decode_reserved_expansion?: (boolean|null); - } + /** FieldOptions packed */ + packed?: (boolean|null); - /** Represents a Http. */ - class Http implements IHttp { + /** FieldOptions jstype */ + jstype?: (google.protobuf.FieldOptions.JSType|null); - /** - * Constructs a new Http. - * @param [properties] Properties to set - */ - constructor(properties?: google.api.IHttp); + /** FieldOptions lazy */ + lazy?: (boolean|null); - /** Http rules. */ - public rules: google.api.IHttpRule[]; + /** FieldOptions deprecated */ + deprecated?: (boolean|null); - /** Http fully_decode_reserved_expansion. */ - public fully_decode_reserved_expansion: boolean; + /** FieldOptions weak */ + weak?: (boolean|null); - /** - * Encodes the specified Http message. Does not implicitly {@link google.api.Http.verify|verify} messages. - * @param message Http message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.api.IHttp, writer?: $protobuf.Writer): $protobuf.Writer; + /** FieldOptions uninterpreted_option */ + uninterpreted_option?: (google.protobuf.IUninterpretedOption[]|null); - /** - * Encodes the specified Http message, length delimited. Does not implicitly {@link google.api.Http.verify|verify} messages. - * @param message Http message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.api.IHttp, writer?: $protobuf.Writer): $protobuf.Writer; + /** FieldOptions .gogoproto.nullable */ + ".gogoproto.nullable"?: (boolean|null); + + /** FieldOptions .gogoproto.embed */ + ".gogoproto.embed"?: (boolean|null); + + /** FieldOptions .gogoproto.customtype */ + ".gogoproto.customtype"?: (string|null); + + /** FieldOptions .gogoproto.customname */ + ".gogoproto.customname"?: (string|null); + + /** FieldOptions .gogoproto.jsontag */ + ".gogoproto.jsontag"?: (string|null); + + /** FieldOptions .gogoproto.moretags */ + ".gogoproto.moretags"?: (string|null); + + /** FieldOptions .gogoproto.casttype */ + ".gogoproto.casttype"?: (string|null); + + /** FieldOptions .gogoproto.castkey */ + ".gogoproto.castkey"?: (string|null); + + /** FieldOptions .gogoproto.castvalue */ + ".gogoproto.castvalue"?: (string|null); + + /** FieldOptions .gogoproto.stdtime */ + ".gogoproto.stdtime"?: (boolean|null); + + /** FieldOptions .gogoproto.stdduration */ + ".gogoproto.stdduration"?: (boolean|null); + + /** FieldOptions .gogoproto.wktpointer */ + ".gogoproto.wktpointer"?: (boolean|null); + + /** FieldOptions .gogoproto.castrepeated */ + ".gogoproto.castrepeated"?: (string|null); + + /** FieldOptions .cosmos_proto.accepts_interface */ + ".cosmos_proto.accepts_interface"?: (string|null); + + /** FieldOptions .cosmos_proto.scalar */ + ".cosmos_proto.scalar"?: (string|null); + + /** FieldOptions .amino.encoding */ + ".amino.encoding"?: (string|null); + + /** FieldOptions .amino.field_name */ + ".amino.field_name"?: (string|null); + + /** FieldOptions .amino.dont_omitempty */ + ".amino.dont_omitempty"?: (boolean|null); + } + + /** Represents a FieldOptions. */ + class FieldOptions implements IFieldOptions { /** - * Decodes a Http message from the specified reader or buffer. + * Constructs a new FieldOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IFieldOptions); + + /** FieldOptions ctype. */ + public ctype: google.protobuf.FieldOptions.CType; + + /** FieldOptions packed. */ + public packed: boolean; + + /** FieldOptions jstype. */ + public jstype: google.protobuf.FieldOptions.JSType; + + /** FieldOptions lazy. */ + public lazy: boolean; + + /** FieldOptions deprecated. */ + public deprecated: boolean; + + /** FieldOptions weak. */ + public weak: boolean; + + /** FieldOptions uninterpreted_option. */ + public uninterpreted_option: google.protobuf.IUninterpretedOption[]; + + /** + * Encodes the specified FieldOptions message. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages. + * @param message FieldOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IFieldOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified FieldOptions message, length delimited. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages. + * @param message FieldOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IFieldOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FieldOptions message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Http + * @returns FieldOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.Http; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldOptions; /** - * Decodes a Http message from the specified reader or buffer, length delimited. + * Decodes a FieldOptions message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Http + * @returns FieldOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.Http; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldOptions; /** - * Verifies a Http message. + * Verifies a FieldOptions message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a Http message from a plain object. Also converts values to their respective internal types. + * Creates a FieldOptions message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Http + * @returns FieldOptions */ - public static fromObject(object: { [k: string]: any }): google.api.Http; + public static fromObject(object: { [k: string]: any }): google.protobuf.FieldOptions; /** - * Creates a plain object from a Http message. Also converts values to other types if specified. - * @param message Http + * Creates a plain object from a FieldOptions message. Also converts values to other types if specified. + * @param message FieldOptions * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.api.Http, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.FieldOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Http to JSON. + * Converts this FieldOptions to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a HttpRule. */ - interface IHttpRule { + namespace FieldOptions { - /** HttpRule selector */ - selector?: (string|null); + /** CType enum. */ + enum CType { + STRING = 0, + CORD = 1, + STRING_PIECE = 2 + } - /** HttpRule get */ - get?: (string|null); + /** JSType enum. */ + enum JSType { + JS_NORMAL = 0, + JS_STRING = 1, + JS_NUMBER = 2 + } + } - /** HttpRule put */ - put?: (string|null); + /** Properties of an OneofOptions. */ + interface IOneofOptions { - /** HttpRule post */ - post?: (string|null); + /** OneofOptions uninterpreted_option */ + uninterpreted_option?: (google.protobuf.IUninterpretedOption[]|null); + } - /** HttpRule delete */ - "delete"?: (string|null); + /** Represents an OneofOptions. */ + class OneofOptions implements IOneofOptions { - /** HttpRule patch */ - patch?: (string|null); + /** + * Constructs a new OneofOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IOneofOptions); - /** HttpRule custom */ - custom?: (google.api.ICustomHttpPattern|null); + /** OneofOptions uninterpreted_option. */ + public uninterpreted_option: google.protobuf.IUninterpretedOption[]; - /** HttpRule body */ - body?: (string|null); + /** + * Encodes the specified OneofOptions message. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages. + * @param message OneofOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IOneofOptions, writer?: $protobuf.Writer): $protobuf.Writer; - /** HttpRule response_body */ - response_body?: (string|null); + /** + * Encodes the specified OneofOptions message, length delimited. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages. + * @param message OneofOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IOneofOptions, writer?: $protobuf.Writer): $protobuf.Writer; - /** HttpRule additional_bindings */ - additional_bindings?: (google.api.IHttpRule[]|null); - } + /** + * Decodes an OneofOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns OneofOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.OneofOptions; - /** Represents a HttpRule. */ - class HttpRule implements IHttpRule { + /** + * Decodes an OneofOptions message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns OneofOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.OneofOptions; /** - * Constructs a new HttpRule. - * @param [properties] Properties to set + * Verifies an OneofOptions message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - constructor(properties?: google.api.IHttpRule); + public static verify(message: { [k: string]: any }): (string|null); - /** HttpRule selector. */ - public selector: string; + /** + * Creates an OneofOptions message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns OneofOptions + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.OneofOptions; - /** HttpRule get. */ - public get?: (string|null); + /** + * Creates a plain object from an OneofOptions message. Also converts values to other types if specified. + * @param message OneofOptions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.OneofOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** HttpRule put. */ - public put?: (string|null); + /** + * Converts this OneofOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** HttpRule post. */ - public post?: (string|null); + /** Properties of an EnumOptions. */ + interface IEnumOptions { - /** HttpRule delete. */ - public delete?: (string|null); + /** EnumOptions allow_alias */ + allow_alias?: (boolean|null); - /** HttpRule patch. */ - public patch?: (string|null); + /** EnumOptions deprecated */ + deprecated?: (boolean|null); - /** HttpRule custom. */ - public custom?: (google.api.ICustomHttpPattern|null); + /** EnumOptions uninterpreted_option */ + uninterpreted_option?: (google.protobuf.IUninterpretedOption[]|null); - /** HttpRule body. */ - public body: string; + /** EnumOptions .gogoproto.goproto_enum_prefix */ + ".gogoproto.goproto_enum_prefix"?: (boolean|null); - /** HttpRule response_body. */ - public response_body: string; + /** EnumOptions .gogoproto.goproto_enum_stringer */ + ".gogoproto.goproto_enum_stringer"?: (boolean|null); - /** HttpRule additional_bindings. */ - public additional_bindings: google.api.IHttpRule[]; + /** EnumOptions .gogoproto.enum_stringer */ + ".gogoproto.enum_stringer"?: (boolean|null); - /** HttpRule pattern. */ - public pattern?: ("get"|"put"|"post"|"delete"|"patch"|"custom"); + /** EnumOptions .gogoproto.enum_customname */ + ".gogoproto.enum_customname"?: (string|null); + + /** EnumOptions .gogoproto.enumdecl */ + ".gogoproto.enumdecl"?: (boolean|null); + } + + /** Represents an EnumOptions. */ + class EnumOptions implements IEnumOptions { /** - * Encodes the specified HttpRule message. Does not implicitly {@link google.api.HttpRule.verify|verify} messages. - * @param message HttpRule message or plain object to encode + * Constructs a new EnumOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IEnumOptions); + + /** EnumOptions allow_alias. */ + public allow_alias: boolean; + + /** EnumOptions deprecated. */ + public deprecated: boolean; + + /** EnumOptions uninterpreted_option. */ + public uninterpreted_option: google.protobuf.IUninterpretedOption[]; + + /** + * Encodes the specified EnumOptions message. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages. + * @param message EnumOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.api.IHttpRule, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.protobuf.IEnumOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified HttpRule message, length delimited. Does not implicitly {@link google.api.HttpRule.verify|verify} messages. - * @param message HttpRule message or plain object to encode + * Encodes the specified EnumOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages. + * @param message EnumOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.api.IHttpRule, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.protobuf.IEnumOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a HttpRule message from the specified reader or buffer. + * Decodes an EnumOptions message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns HttpRule + * @returns EnumOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.HttpRule; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumOptions; /** - * Decodes a HttpRule message from the specified reader or buffer, length delimited. + * Decodes an EnumOptions message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns HttpRule + * @returns EnumOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.HttpRule; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumOptions; /** - * Verifies a HttpRule message. + * Verifies an EnumOptions message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a HttpRule message from a plain object. Also converts values to their respective internal types. + * Creates an EnumOptions message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns HttpRule + * @returns EnumOptions */ - public static fromObject(object: { [k: string]: any }): google.api.HttpRule; + public static fromObject(object: { [k: string]: any }): google.protobuf.EnumOptions; /** - * Creates a plain object from a HttpRule message. Also converts values to other types if specified. - * @param message HttpRule + * Creates a plain object from an EnumOptions message. Also converts values to other types if specified. + * @param message EnumOptions * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.api.HttpRule, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.EnumOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this HttpRule to JSON. + * Converts this EnumOptions to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a CustomHttpPattern. */ - interface ICustomHttpPattern { + /** Properties of an EnumValueOptions. */ + interface IEnumValueOptions { - /** CustomHttpPattern kind */ - kind?: (string|null); + /** EnumValueOptions deprecated */ + deprecated?: (boolean|null); - /** CustomHttpPattern path */ - path?: (string|null); + /** EnumValueOptions uninterpreted_option */ + uninterpreted_option?: (google.protobuf.IUninterpretedOption[]|null); + + /** EnumValueOptions .gogoproto.enumvalue_customname */ + ".gogoproto.enumvalue_customname"?: (string|null); } - /** Represents a CustomHttpPattern. */ - class CustomHttpPattern implements ICustomHttpPattern { + /** Represents an EnumValueOptions. */ + class EnumValueOptions implements IEnumValueOptions { /** - * Constructs a new CustomHttpPattern. + * Constructs a new EnumValueOptions. * @param [properties] Properties to set */ - constructor(properties?: google.api.ICustomHttpPattern); + constructor(properties?: google.protobuf.IEnumValueOptions); - /** CustomHttpPattern kind. */ - public kind: string; + /** EnumValueOptions deprecated. */ + public deprecated: boolean; - /** CustomHttpPattern path. */ - public path: string; + /** EnumValueOptions uninterpreted_option. */ + public uninterpreted_option: google.protobuf.IUninterpretedOption[]; /** - * Encodes the specified CustomHttpPattern message. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages. - * @param message CustomHttpPattern message or plain object to encode + * Encodes the specified EnumValueOptions message. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages. + * @param message EnumValueOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.api.ICustomHttpPattern, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.protobuf.IEnumValueOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CustomHttpPattern message, length delimited. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages. - * @param message CustomHttpPattern message or plain object to encode + * Encodes the specified EnumValueOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages. + * @param message EnumValueOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.api.ICustomHttpPattern, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.protobuf.IEnumValueOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CustomHttpPattern message from the specified reader or buffer. + * Decodes an EnumValueOptions message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CustomHttpPattern + * @returns EnumValueOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.CustomHttpPattern; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumValueOptions; /** - * Decodes a CustomHttpPattern message from the specified reader or buffer, length delimited. + * Decodes an EnumValueOptions message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CustomHttpPattern + * @returns EnumValueOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.CustomHttpPattern; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumValueOptions; /** - * Verifies a CustomHttpPattern message. + * Verifies an EnumValueOptions message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CustomHttpPattern message from a plain object. Also converts values to their respective internal types. + * Creates an EnumValueOptions message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CustomHttpPattern + * @returns EnumValueOptions */ - public static fromObject(object: { [k: string]: any }): google.api.CustomHttpPattern; + public static fromObject(object: { [k: string]: any }): google.protobuf.EnumValueOptions; /** - * Creates a plain object from a CustomHttpPattern message. Also converts values to other types if specified. - * @param message CustomHttpPattern + * Creates a plain object from an EnumValueOptions message. Also converts values to other types if specified. + * @param message EnumValueOptions * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.api.CustomHttpPattern, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.EnumValueOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CustomHttpPattern to JSON. + * Converts this EnumValueOptions to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - } -} -/** Namespace ibc. */ -export namespace ibc { + /** Properties of a ServiceOptions. */ + interface IServiceOptions { - /** Namespace applications. */ - namespace applications { + /** ServiceOptions deprecated */ + deprecated?: (boolean|null); - /** Namespace fee. */ - namespace fee { + /** ServiceOptions uninterpreted_option */ + uninterpreted_option?: (google.protobuf.IUninterpretedOption[]|null); + } - /** Namespace v1. */ - namespace v1 { + /** Represents a ServiceOptions. */ + class ServiceOptions implements IServiceOptions { - /** Represents a Msg */ - class Msg extends $protobuf.rpc.Service { + /** + * Constructs a new ServiceOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IServiceOptions); - /** - * Constructs a new Msg service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + /** ServiceOptions deprecated. */ + public deprecated: boolean; - /** - * Calls RegisterPayee. - * @param request MsgRegisterPayee message or plain object - * @param callback Node-style callback called with the error, if any, and MsgRegisterPayeeResponse - */ - public registerPayee(request: ibc.applications.fee.v1.IMsgRegisterPayee, callback: ibc.applications.fee.v1.Msg.RegisterPayeeCallback): void; + /** ServiceOptions uninterpreted_option. */ + public uninterpreted_option: google.protobuf.IUninterpretedOption[]; - /** - * Calls RegisterPayee. - * @param request MsgRegisterPayee message or plain object - * @returns Promise - */ - public registerPayee(request: ibc.applications.fee.v1.IMsgRegisterPayee): Promise; + /** + * Encodes the specified ServiceOptions message. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages. + * @param message ServiceOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IServiceOptions, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Calls RegisterCounterpartyPayee. - * @param request MsgRegisterCounterpartyPayee message or plain object - * @param callback Node-style callback called with the error, if any, and MsgRegisterCounterpartyPayeeResponse - */ - public registerCounterpartyPayee(request: ibc.applications.fee.v1.IMsgRegisterCounterpartyPayee, callback: ibc.applications.fee.v1.Msg.RegisterCounterpartyPayeeCallback): void; + /** + * Encodes the specified ServiceOptions message, length delimited. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages. + * @param message ServiceOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IServiceOptions, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Calls RegisterCounterpartyPayee. - * @param request MsgRegisterCounterpartyPayee message or plain object - * @returns Promise - */ - public registerCounterpartyPayee(request: ibc.applications.fee.v1.IMsgRegisterCounterpartyPayee): Promise; + /** + * Decodes a ServiceOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ServiceOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ServiceOptions; - /** - * Calls PayPacketFee. - * @param request MsgPayPacketFee message or plain object - * @param callback Node-style callback called with the error, if any, and MsgPayPacketFeeResponse - */ - public payPacketFee(request: ibc.applications.fee.v1.IMsgPayPacketFee, callback: ibc.applications.fee.v1.Msg.PayPacketFeeCallback): void; + /** + * Decodes a ServiceOptions message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ServiceOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ServiceOptions; - /** - * Calls PayPacketFee. - * @param request MsgPayPacketFee message or plain object - * @returns Promise - */ - public payPacketFee(request: ibc.applications.fee.v1.IMsgPayPacketFee): Promise; + /** + * Verifies a ServiceOptions message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Calls PayPacketFeeAsync. - * @param request MsgPayPacketFeeAsync message or plain object - * @param callback Node-style callback called with the error, if any, and MsgPayPacketFeeAsyncResponse - */ - public payPacketFeeAsync(request: ibc.applications.fee.v1.IMsgPayPacketFeeAsync, callback: ibc.applications.fee.v1.Msg.PayPacketFeeAsyncCallback): void; - - /** - * Calls PayPacketFeeAsync. - * @param request MsgPayPacketFeeAsync message or plain object - * @returns Promise - */ - public payPacketFeeAsync(request: ibc.applications.fee.v1.IMsgPayPacketFeeAsync): Promise; - } - - namespace Msg { + /** + * Creates a ServiceOptions message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ServiceOptions + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.ServiceOptions; - /** - * Callback as used by {@link ibc.applications.fee.v1.Msg#registerPayee}. - * @param error Error, if any - * @param [response] MsgRegisterPayeeResponse - */ - type RegisterPayeeCallback = (error: (Error|null), response?: ibc.applications.fee.v1.MsgRegisterPayeeResponse) => void; + /** + * Creates a plain object from a ServiceOptions message. Also converts values to other types if specified. + * @param message ServiceOptions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.ServiceOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Callback as used by {@link ibc.applications.fee.v1.Msg#registerCounterpartyPayee}. - * @param error Error, if any - * @param [response] MsgRegisterCounterpartyPayeeResponse - */ - type RegisterCounterpartyPayeeCallback = (error: (Error|null), response?: ibc.applications.fee.v1.MsgRegisterCounterpartyPayeeResponse) => void; + /** + * Converts this ServiceOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** - * Callback as used by {@link ibc.applications.fee.v1.Msg#payPacketFee}. - * @param error Error, if any - * @param [response] MsgPayPacketFeeResponse - */ - type PayPacketFeeCallback = (error: (Error|null), response?: ibc.applications.fee.v1.MsgPayPacketFeeResponse) => void; + /** Properties of a MethodOptions. */ + interface IMethodOptions { - /** - * Callback as used by {@link ibc.applications.fee.v1.Msg#payPacketFeeAsync}. - * @param error Error, if any - * @param [response] MsgPayPacketFeeAsyncResponse - */ - type PayPacketFeeAsyncCallback = (error: (Error|null), response?: ibc.applications.fee.v1.MsgPayPacketFeeAsyncResponse) => void; - } + /** MethodOptions deprecated */ + deprecated?: (boolean|null); - /** Properties of a MsgRegisterPayee. */ - interface IMsgRegisterPayee { + /** MethodOptions uninterpreted_option */ + uninterpreted_option?: (google.protobuf.IUninterpretedOption[]|null); - /** MsgRegisterPayee port_id */ - port_id?: (string|null); + /** MethodOptions .google.api.http */ + ".google.api.http"?: (google.api.IHttpRule|null); + } - /** MsgRegisterPayee channel_id */ - channel_id?: (string|null); + /** Represents a MethodOptions. */ + class MethodOptions implements IMethodOptions { - /** MsgRegisterPayee relayer */ - relayer?: (string|null); + /** + * Constructs a new MethodOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IMethodOptions); - /** MsgRegisterPayee payee */ - payee?: (string|null); - } + /** MethodOptions deprecated. */ + public deprecated: boolean; - /** Represents a MsgRegisterPayee. */ - class MsgRegisterPayee implements IMsgRegisterPayee { + /** MethodOptions uninterpreted_option. */ + public uninterpreted_option: google.protobuf.IUninterpretedOption[]; - /** - * Constructs a new MsgRegisterPayee. - * @param [properties] Properties to set - */ - constructor(properties?: ibc.applications.fee.v1.IMsgRegisterPayee); + /** + * Encodes the specified MethodOptions message. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages. + * @param message MethodOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IMethodOptions, writer?: $protobuf.Writer): $protobuf.Writer; - /** MsgRegisterPayee port_id. */ - public port_id: string; + /** + * Encodes the specified MethodOptions message, length delimited. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages. + * @param message MethodOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IMethodOptions, writer?: $protobuf.Writer): $protobuf.Writer; - /** MsgRegisterPayee channel_id. */ - public channel_id: string; + /** + * Decodes a MethodOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MethodOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MethodOptions; - /** MsgRegisterPayee relayer. */ - public relayer: string; + /** + * Decodes a MethodOptions message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MethodOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.MethodOptions; - /** MsgRegisterPayee payee. */ - public payee: string; + /** + * Verifies a MethodOptions message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Encodes the specified MsgRegisterPayee message. Does not implicitly {@link ibc.applications.fee.v1.MsgRegisterPayee.verify|verify} messages. - * @param message MsgRegisterPayee message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: ibc.applications.fee.v1.IMsgRegisterPayee, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a MethodOptions message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MethodOptions + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.MethodOptions; - /** - * Encodes the specified MsgRegisterPayee message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.MsgRegisterPayee.verify|verify} messages. - * @param message MsgRegisterPayee message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: ibc.applications.fee.v1.IMsgRegisterPayee, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a plain object from a MethodOptions message. Also converts values to other types if specified. + * @param message MethodOptions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.MethodOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Decodes a MsgRegisterPayee message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MsgRegisterPayee - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.applications.fee.v1.MsgRegisterPayee; + /** + * Converts this MethodOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** - * Decodes a MsgRegisterPayee message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MsgRegisterPayee - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.applications.fee.v1.MsgRegisterPayee; + /** Properties of an UninterpretedOption. */ + interface IUninterpretedOption { - /** - * Verifies a MsgRegisterPayee message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** UninterpretedOption name */ + name?: (google.protobuf.UninterpretedOption.INamePart[]|null); - /** - * Creates a MsgRegisterPayee message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MsgRegisterPayee - */ - public static fromObject(object: { [k: string]: any }): ibc.applications.fee.v1.MsgRegisterPayee; + /** UninterpretedOption identifier_value */ + identifier_value?: (string|null); - /** - * Creates a plain object from a MsgRegisterPayee message. Also converts values to other types if specified. - * @param message MsgRegisterPayee - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: ibc.applications.fee.v1.MsgRegisterPayee, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** UninterpretedOption positive_int_value */ + positive_int_value?: (Long|null); - /** - * Converts this MsgRegisterPayee to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** UninterpretedOption negative_int_value */ + negative_int_value?: (Long|null); - /** Properties of a MsgRegisterPayeeResponse. */ - interface IMsgRegisterPayeeResponse { - } + /** UninterpretedOption double_value */ + double_value?: (number|null); - /** Represents a MsgRegisterPayeeResponse. */ - class MsgRegisterPayeeResponse implements IMsgRegisterPayeeResponse { + /** UninterpretedOption string_value */ + string_value?: (Uint8Array|null); - /** - * Constructs a new MsgRegisterPayeeResponse. - * @param [properties] Properties to set - */ - constructor(properties?: ibc.applications.fee.v1.IMsgRegisterPayeeResponse); + /** UninterpretedOption aggregate_value */ + aggregate_value?: (string|null); + } - /** - * Encodes the specified MsgRegisterPayeeResponse message. Does not implicitly {@link ibc.applications.fee.v1.MsgRegisterPayeeResponse.verify|verify} messages. - * @param message MsgRegisterPayeeResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: ibc.applications.fee.v1.IMsgRegisterPayeeResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** Represents an UninterpretedOption. */ + class UninterpretedOption implements IUninterpretedOption { - /** - * Encodes the specified MsgRegisterPayeeResponse message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.MsgRegisterPayeeResponse.verify|verify} messages. - * @param message MsgRegisterPayeeResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: ibc.applications.fee.v1.IMsgRegisterPayeeResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Constructs a new UninterpretedOption. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IUninterpretedOption); - /** - * Decodes a MsgRegisterPayeeResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MsgRegisterPayeeResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.applications.fee.v1.MsgRegisterPayeeResponse; + /** UninterpretedOption name. */ + public name: google.protobuf.UninterpretedOption.INamePart[]; - /** - * Decodes a MsgRegisterPayeeResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MsgRegisterPayeeResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.applications.fee.v1.MsgRegisterPayeeResponse; + /** UninterpretedOption identifier_value. */ + public identifier_value: string; - /** - * Verifies a MsgRegisterPayeeResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** UninterpretedOption positive_int_value. */ + public positive_int_value: Long; - /** - * Creates a MsgRegisterPayeeResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MsgRegisterPayeeResponse - */ - public static fromObject(object: { [k: string]: any }): ibc.applications.fee.v1.MsgRegisterPayeeResponse; + /** UninterpretedOption negative_int_value. */ + public negative_int_value: Long; - /** - * Creates a plain object from a MsgRegisterPayeeResponse message. Also converts values to other types if specified. - * @param message MsgRegisterPayeeResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: ibc.applications.fee.v1.MsgRegisterPayeeResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** UninterpretedOption double_value. */ + public double_value: number; - /** - * Converts this MsgRegisterPayeeResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** UninterpretedOption string_value. */ + public string_value: Uint8Array; - /** Properties of a MsgRegisterCounterpartyPayee. */ - interface IMsgRegisterCounterpartyPayee { + /** UninterpretedOption aggregate_value. */ + public aggregate_value: string; - /** MsgRegisterCounterpartyPayee port_id */ - port_id?: (string|null); + /** + * Encodes the specified UninterpretedOption message. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages. + * @param message UninterpretedOption message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IUninterpretedOption, writer?: $protobuf.Writer): $protobuf.Writer; - /** MsgRegisterCounterpartyPayee channel_id */ - channel_id?: (string|null); + /** + * Encodes the specified UninterpretedOption message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages. + * @param message UninterpretedOption message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IUninterpretedOption, writer?: $protobuf.Writer): $protobuf.Writer; - /** MsgRegisterCounterpartyPayee relayer */ - relayer?: (string|null); + /** + * Decodes an UninterpretedOption message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UninterpretedOption + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.UninterpretedOption; - /** MsgRegisterCounterpartyPayee counterparty_payee */ - counterparty_payee?: (string|null); - } + /** + * Decodes an UninterpretedOption message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UninterpretedOption + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.UninterpretedOption; - /** Represents a MsgRegisterCounterpartyPayee. */ - class MsgRegisterCounterpartyPayee implements IMsgRegisterCounterpartyPayee { + /** + * Verifies an UninterpretedOption message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Constructs a new MsgRegisterCounterpartyPayee. - * @param [properties] Properties to set - */ - constructor(properties?: ibc.applications.fee.v1.IMsgRegisterCounterpartyPayee); + /** + * Creates an UninterpretedOption message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UninterpretedOption + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.UninterpretedOption; - /** MsgRegisterCounterpartyPayee port_id. */ - public port_id: string; + /** + * Creates a plain object from an UninterpretedOption message. Also converts values to other types if specified. + * @param message UninterpretedOption + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.UninterpretedOption, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** MsgRegisterCounterpartyPayee channel_id. */ - public channel_id: string; + /** + * Converts this UninterpretedOption to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** MsgRegisterCounterpartyPayee relayer. */ - public relayer: string; + namespace UninterpretedOption { - /** MsgRegisterCounterpartyPayee counterparty_payee. */ - public counterparty_payee: string; + /** Properties of a NamePart. */ + interface INamePart { - /** - * Encodes the specified MsgRegisterCounterpartyPayee message. Does not implicitly {@link ibc.applications.fee.v1.MsgRegisterCounterpartyPayee.verify|verify} messages. - * @param message MsgRegisterCounterpartyPayee message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: ibc.applications.fee.v1.IMsgRegisterCounterpartyPayee, writer?: $protobuf.Writer): $protobuf.Writer; + /** NamePart name_part */ + name_part: string; - /** - * Encodes the specified MsgRegisterCounterpartyPayee message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.MsgRegisterCounterpartyPayee.verify|verify} messages. - * @param message MsgRegisterCounterpartyPayee message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: ibc.applications.fee.v1.IMsgRegisterCounterpartyPayee, writer?: $protobuf.Writer): $protobuf.Writer; + /** NamePart is_extension */ + is_extension: boolean; + } - /** - * Decodes a MsgRegisterCounterpartyPayee message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MsgRegisterCounterpartyPayee - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.applications.fee.v1.MsgRegisterCounterpartyPayee; + /** Represents a NamePart. */ + class NamePart implements INamePart { - /** - * Decodes a MsgRegisterCounterpartyPayee message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MsgRegisterCounterpartyPayee - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.applications.fee.v1.MsgRegisterCounterpartyPayee; + /** + * Constructs a new NamePart. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.UninterpretedOption.INamePart); - /** - * Verifies a MsgRegisterCounterpartyPayee message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** NamePart name_part. */ + public name_part: string; - /** - * Creates a MsgRegisterCounterpartyPayee message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MsgRegisterCounterpartyPayee - */ - public static fromObject(object: { [k: string]: any }): ibc.applications.fee.v1.MsgRegisterCounterpartyPayee; + /** NamePart is_extension. */ + public is_extension: boolean; - /** - * Creates a plain object from a MsgRegisterCounterpartyPayee message. Also converts values to other types if specified. - * @param message MsgRegisterCounterpartyPayee - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: ibc.applications.fee.v1.MsgRegisterCounterpartyPayee, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Encodes the specified NamePart message. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages. + * @param message NamePart message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.UninterpretedOption.INamePart, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Converts this MsgRegisterCounterpartyPayee to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * Encodes the specified NamePart message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages. + * @param message NamePart message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.UninterpretedOption.INamePart, writer?: $protobuf.Writer): $protobuf.Writer; - /** Properties of a MsgRegisterCounterpartyPayeeResponse. */ - interface IMsgRegisterCounterpartyPayeeResponse { - } + /** + * Decodes a NamePart message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NamePart + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.UninterpretedOption.NamePart; - /** Represents a MsgRegisterCounterpartyPayeeResponse. */ - class MsgRegisterCounterpartyPayeeResponse implements IMsgRegisterCounterpartyPayeeResponse { + /** + * Decodes a NamePart message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns NamePart + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.UninterpretedOption.NamePart; + + /** + * Verifies a NamePart message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a NamePart message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns NamePart + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.UninterpretedOption.NamePart; + + /** + * Creates a plain object from a NamePart message. Also converts values to other types if specified. + * @param message NamePart + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.UninterpretedOption.NamePart, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this NamePart to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } + + /** Properties of a SourceCodeInfo. */ + interface ISourceCodeInfo { + + /** SourceCodeInfo location */ + location?: (google.protobuf.SourceCodeInfo.ILocation[]|null); + } + + /** Represents a SourceCodeInfo. */ + class SourceCodeInfo implements ISourceCodeInfo { + + /** + * Constructs a new SourceCodeInfo. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.ISourceCodeInfo); + + /** SourceCodeInfo location. */ + public location: google.protobuf.SourceCodeInfo.ILocation[]; + + /** + * Encodes the specified SourceCodeInfo message. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages. + * @param message SourceCodeInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.ISourceCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SourceCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages. + * @param message SourceCodeInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.ISourceCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SourceCodeInfo message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SourceCodeInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.SourceCodeInfo; + + /** + * Decodes a SourceCodeInfo message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SourceCodeInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.SourceCodeInfo; + + /** + * Verifies a SourceCodeInfo message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a SourceCodeInfo message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SourceCodeInfo + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.SourceCodeInfo; + + /** + * Creates a plain object from a SourceCodeInfo message. Also converts values to other types if specified. + * @param message SourceCodeInfo + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.SourceCodeInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SourceCodeInfo to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace SourceCodeInfo { + + /** Properties of a Location. */ + interface ILocation { + + /** Location path */ + path?: (number[]|null); + + /** Location span */ + span?: (number[]|null); + + /** Location leading_comments */ + leading_comments?: (string|null); + + /** Location trailing_comments */ + trailing_comments?: (string|null); + + /** Location leading_detached_comments */ + leading_detached_comments?: (string[]|null); + } + + /** Represents a Location. */ + class Location implements ILocation { + + /** + * Constructs a new Location. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.SourceCodeInfo.ILocation); + + /** Location path. */ + public path: number[]; + + /** Location span. */ + public span: number[]; + + /** Location leading_comments. */ + public leading_comments: string; + + /** Location trailing_comments. */ + public trailing_comments: string; + + /** Location leading_detached_comments. */ + public leading_detached_comments: string[]; + + /** + * Encodes the specified Location message. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages. + * @param message Location message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.SourceCodeInfo.ILocation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Location message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages. + * @param message Location message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.SourceCodeInfo.ILocation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Location message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Location + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.SourceCodeInfo.Location; + + /** + * Decodes a Location message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Location + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.SourceCodeInfo.Location; + + /** + * Verifies a Location message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Location message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Location + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.SourceCodeInfo.Location; + + /** + * Creates a plain object from a Location message. Also converts values to other types if specified. + * @param message Location + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.SourceCodeInfo.Location, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Location to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } + + /** Properties of a GeneratedCodeInfo. */ + interface IGeneratedCodeInfo { + + /** GeneratedCodeInfo annotation */ + annotation?: (google.protobuf.GeneratedCodeInfo.IAnnotation[]|null); + } + + /** Represents a GeneratedCodeInfo. */ + class GeneratedCodeInfo implements IGeneratedCodeInfo { + + /** + * Constructs a new GeneratedCodeInfo. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IGeneratedCodeInfo); + + /** GeneratedCodeInfo annotation. */ + public annotation: google.protobuf.GeneratedCodeInfo.IAnnotation[]; + + /** + * Encodes the specified GeneratedCodeInfo message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages. + * @param message GeneratedCodeInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IGeneratedCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GeneratedCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages. + * @param message GeneratedCodeInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IGeneratedCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GeneratedCodeInfo message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GeneratedCodeInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.GeneratedCodeInfo; + + /** + * Decodes a GeneratedCodeInfo message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GeneratedCodeInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.GeneratedCodeInfo; + + /** + * Verifies a GeneratedCodeInfo message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GeneratedCodeInfo message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GeneratedCodeInfo + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.GeneratedCodeInfo; + + /** + * Creates a plain object from a GeneratedCodeInfo message. Also converts values to other types if specified. + * @param message GeneratedCodeInfo + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.GeneratedCodeInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GeneratedCodeInfo to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace GeneratedCodeInfo { + + /** Properties of an Annotation. */ + interface IAnnotation { + + /** Annotation path */ + path?: (number[]|null); + + /** Annotation source_file */ + source_file?: (string|null); + + /** Annotation begin */ + begin?: (number|null); + + /** Annotation end */ + end?: (number|null); + } + + /** Represents an Annotation. */ + class Annotation implements IAnnotation { + + /** + * Constructs a new Annotation. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.GeneratedCodeInfo.IAnnotation); + + /** Annotation path. */ + public path: number[]; + + /** Annotation source_file. */ + public source_file: string; + + /** Annotation begin. */ + public begin: number; + + /** Annotation end. */ + public end: number; + + /** + * Encodes the specified Annotation message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages. + * @param message Annotation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.GeneratedCodeInfo.IAnnotation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Annotation message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages. + * @param message Annotation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.GeneratedCodeInfo.IAnnotation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an Annotation message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Annotation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.GeneratedCodeInfo.Annotation; + + /** + * Decodes an Annotation message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Annotation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.GeneratedCodeInfo.Annotation; + + /** + * Verifies an Annotation message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an Annotation message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Annotation + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.GeneratedCodeInfo.Annotation; + + /** + * Creates a plain object from an Annotation message. Also converts values to other types if specified. + * @param message Annotation + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.GeneratedCodeInfo.Annotation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Annotation to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } + + /** Properties of an Any. */ + interface IAny { + + /** Any type_url */ + type_url?: (string|null); + + /** Any value */ + value?: (Uint8Array|null); + } + + /** Represents an Any. */ + class Any implements IAny { + + /** + * Constructs a new Any. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IAny); + + /** Any type_url. */ + public type_url: string; + + /** Any value. */ + public value: Uint8Array; + + /** + * Encodes the specified Any message. Does not implicitly {@link google.protobuf.Any.verify|verify} messages. + * @param message Any message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IAny, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Any message, length delimited. Does not implicitly {@link google.protobuf.Any.verify|verify} messages. + * @param message Any message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IAny, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an Any message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Any + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Any; + + /** + * Decodes an Any message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Any + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Any; + + /** + * Verifies an Any message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an Any message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Any + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.Any; + + /** + * Creates a plain object from an Any message. Also converts values to other types if specified. + * @param message Any + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.Any, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Any to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a Timestamp. */ + interface ITimestamp { + + /** Timestamp seconds */ + seconds?: (Long|null); + + /** Timestamp nanos */ + nanos?: (number|null); + } + + /** Represents a Timestamp. */ + class Timestamp implements ITimestamp { + + /** + * Constructs a new Timestamp. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.ITimestamp); + + /** Timestamp seconds. */ + public seconds: Long; + + /** Timestamp nanos. */ + public nanos: number; + + /** + * Encodes the specified Timestamp message. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages. + * @param message Timestamp message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.ITimestamp, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Timestamp message, length delimited. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages. + * @param message Timestamp message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.ITimestamp, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Timestamp message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Timestamp + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Timestamp; + + /** + * Decodes a Timestamp message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Timestamp + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Timestamp; + + /** + * Verifies a Timestamp message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Timestamp message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Timestamp + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.Timestamp; + + /** + * Creates a plain object from a Timestamp message. Also converts values to other types if specified. + * @param message Timestamp + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.Timestamp, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Timestamp to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a Duration. */ + interface IDuration { + + /** Duration seconds */ + seconds?: (Long|null); + + /** Duration nanos */ + nanos?: (number|null); + } + + /** Represents a Duration. */ + class Duration implements IDuration { + + /** + * Constructs a new Duration. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IDuration); + + /** Duration seconds. */ + public seconds: Long; + + /** Duration nanos. */ + public nanos: number; + + /** + * Encodes the specified Duration message. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages. + * @param message Duration message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IDuration, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Duration message, length delimited. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages. + * @param message Duration message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IDuration, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Duration message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Duration + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Duration; + + /** + * Decodes a Duration message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Duration + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Duration; + + /** + * Verifies a Duration message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Duration message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Duration + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.Duration; + + /** + * Creates a plain object from a Duration message. Also converts values to other types if specified. + * @param message Duration + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.Duration, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Duration to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } + + /** Namespace api. */ + namespace api { + + /** Properties of a Http. */ + interface IHttp { + + /** Http rules */ + rules?: (google.api.IHttpRule[]|null); + + /** Http fully_decode_reserved_expansion */ + fully_decode_reserved_expansion?: (boolean|null); + } + + /** Represents a Http. */ + class Http implements IHttp { + + /** + * Constructs a new Http. + * @param [properties] Properties to set + */ + constructor(properties?: google.api.IHttp); + + /** Http rules. */ + public rules: google.api.IHttpRule[]; + + /** Http fully_decode_reserved_expansion. */ + public fully_decode_reserved_expansion: boolean; + + /** + * Encodes the specified Http message. Does not implicitly {@link google.api.Http.verify|verify} messages. + * @param message Http message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.api.IHttp, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Http message, length delimited. Does not implicitly {@link google.api.Http.verify|verify} messages. + * @param message Http message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.api.IHttp, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Http message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Http + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.Http; + + /** + * Decodes a Http message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Http + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.Http; + + /** + * Verifies a Http message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Http message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Http + */ + public static fromObject(object: { [k: string]: any }): google.api.Http; + + /** + * Creates a plain object from a Http message. Also converts values to other types if specified. + * @param message Http + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.api.Http, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Http to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a HttpRule. */ + interface IHttpRule { + + /** HttpRule selector */ + selector?: (string|null); + + /** HttpRule get */ + get?: (string|null); + + /** HttpRule put */ + put?: (string|null); + + /** HttpRule post */ + post?: (string|null); + + /** HttpRule delete */ + "delete"?: (string|null); + + /** HttpRule patch */ + patch?: (string|null); + + /** HttpRule custom */ + custom?: (google.api.ICustomHttpPattern|null); + + /** HttpRule body */ + body?: (string|null); + + /** HttpRule response_body */ + response_body?: (string|null); + + /** HttpRule additional_bindings */ + additional_bindings?: (google.api.IHttpRule[]|null); + } + + /** Represents a HttpRule. */ + class HttpRule implements IHttpRule { + + /** + * Constructs a new HttpRule. + * @param [properties] Properties to set + */ + constructor(properties?: google.api.IHttpRule); + + /** HttpRule selector. */ + public selector: string; + + /** HttpRule get. */ + public get?: (string|null); + + /** HttpRule put. */ + public put?: (string|null); + + /** HttpRule post. */ + public post?: (string|null); + + /** HttpRule delete. */ + public delete?: (string|null); + + /** HttpRule patch. */ + public patch?: (string|null); + + /** HttpRule custom. */ + public custom?: (google.api.ICustomHttpPattern|null); + + /** HttpRule body. */ + public body: string; + + /** HttpRule response_body. */ + public response_body: string; + + /** HttpRule additional_bindings. */ + public additional_bindings: google.api.IHttpRule[]; + + /** HttpRule pattern. */ + public pattern?: ("get"|"put"|"post"|"delete"|"patch"|"custom"); + + /** + * Encodes the specified HttpRule message. Does not implicitly {@link google.api.HttpRule.verify|verify} messages. + * @param message HttpRule message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.api.IHttpRule, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified HttpRule message, length delimited. Does not implicitly {@link google.api.HttpRule.verify|verify} messages. + * @param message HttpRule message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.api.IHttpRule, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a HttpRule message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns HttpRule + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.HttpRule; + + /** + * Decodes a HttpRule message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns HttpRule + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.HttpRule; + + /** + * Verifies a HttpRule message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a HttpRule message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns HttpRule + */ + public static fromObject(object: { [k: string]: any }): google.api.HttpRule; + + /** + * Creates a plain object from a HttpRule message. Also converts values to other types if specified. + * @param message HttpRule + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.api.HttpRule, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this HttpRule to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a CustomHttpPattern. */ + interface ICustomHttpPattern { + + /** CustomHttpPattern kind */ + kind?: (string|null); + + /** CustomHttpPattern path */ + path?: (string|null); + } + + /** Represents a CustomHttpPattern. */ + class CustomHttpPattern implements ICustomHttpPattern { + + /** + * Constructs a new CustomHttpPattern. + * @param [properties] Properties to set + */ + constructor(properties?: google.api.ICustomHttpPattern); + + /** CustomHttpPattern kind. */ + public kind: string; + + /** CustomHttpPattern path. */ + public path: string; + + /** + * Encodes the specified CustomHttpPattern message. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages. + * @param message CustomHttpPattern message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.api.ICustomHttpPattern, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CustomHttpPattern message, length delimited. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages. + * @param message CustomHttpPattern message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.api.ICustomHttpPattern, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CustomHttpPattern message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CustomHttpPattern + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.CustomHttpPattern; + + /** + * Decodes a CustomHttpPattern message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CustomHttpPattern + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.CustomHttpPattern; + + /** + * Verifies a CustomHttpPattern message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CustomHttpPattern message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CustomHttpPattern + */ + public static fromObject(object: { [k: string]: any }): google.api.CustomHttpPattern; + + /** + * Creates a plain object from a CustomHttpPattern message. Also converts values to other types if specified. + * @param message CustomHttpPattern + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.api.CustomHttpPattern, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CustomHttpPattern to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } +} + +/** Namespace ibc. */ +export namespace ibc { + + /** Namespace applications. */ + namespace applications { + + /** Namespace fee. */ + namespace fee { + + /** Namespace v1. */ + namespace v1 { + + /** Represents a Msg */ + class Msg extends $protobuf.rpc.Service { + + /** + * Constructs a new Msg service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + + /** + * Calls RegisterPayee. + * @param request MsgRegisterPayee message or plain object + * @param callback Node-style callback called with the error, if any, and MsgRegisterPayeeResponse + */ + public registerPayee(request: ibc.applications.fee.v1.IMsgRegisterPayee, callback: ibc.applications.fee.v1.Msg.RegisterPayeeCallback): void; + + /** + * Calls RegisterPayee. + * @param request MsgRegisterPayee message or plain object + * @returns Promise + */ + public registerPayee(request: ibc.applications.fee.v1.IMsgRegisterPayee): Promise; + + /** + * Calls RegisterCounterpartyPayee. + * @param request MsgRegisterCounterpartyPayee message or plain object + * @param callback Node-style callback called with the error, if any, and MsgRegisterCounterpartyPayeeResponse + */ + public registerCounterpartyPayee(request: ibc.applications.fee.v1.IMsgRegisterCounterpartyPayee, callback: ibc.applications.fee.v1.Msg.RegisterCounterpartyPayeeCallback): void; + + /** + * Calls RegisterCounterpartyPayee. + * @param request MsgRegisterCounterpartyPayee message or plain object + * @returns Promise + */ + public registerCounterpartyPayee(request: ibc.applications.fee.v1.IMsgRegisterCounterpartyPayee): Promise; + + /** + * Calls PayPacketFee. + * @param request MsgPayPacketFee message or plain object + * @param callback Node-style callback called with the error, if any, and MsgPayPacketFeeResponse + */ + public payPacketFee(request: ibc.applications.fee.v1.IMsgPayPacketFee, callback: ibc.applications.fee.v1.Msg.PayPacketFeeCallback): void; + + /** + * Calls PayPacketFee. + * @param request MsgPayPacketFee message or plain object + * @returns Promise + */ + public payPacketFee(request: ibc.applications.fee.v1.IMsgPayPacketFee): Promise; + + /** + * Calls PayPacketFeeAsync. + * @param request MsgPayPacketFeeAsync message or plain object + * @param callback Node-style callback called with the error, if any, and MsgPayPacketFeeAsyncResponse + */ + public payPacketFeeAsync(request: ibc.applications.fee.v1.IMsgPayPacketFeeAsync, callback: ibc.applications.fee.v1.Msg.PayPacketFeeAsyncCallback): void; + + /** + * Calls PayPacketFeeAsync. + * @param request MsgPayPacketFeeAsync message or plain object + * @returns Promise + */ + public payPacketFeeAsync(request: ibc.applications.fee.v1.IMsgPayPacketFeeAsync): Promise; + } + + namespace Msg { + + /** + * Callback as used by {@link ibc.applications.fee.v1.Msg#registerPayee}. + * @param error Error, if any + * @param [response] MsgRegisterPayeeResponse + */ + type RegisterPayeeCallback = (error: (Error|null), response?: ibc.applications.fee.v1.MsgRegisterPayeeResponse) => void; + + /** + * Callback as used by {@link ibc.applications.fee.v1.Msg#registerCounterpartyPayee}. + * @param error Error, if any + * @param [response] MsgRegisterCounterpartyPayeeResponse + */ + type RegisterCounterpartyPayeeCallback = (error: (Error|null), response?: ibc.applications.fee.v1.MsgRegisterCounterpartyPayeeResponse) => void; + + /** + * Callback as used by {@link ibc.applications.fee.v1.Msg#payPacketFee}. + * @param error Error, if any + * @param [response] MsgPayPacketFeeResponse + */ + type PayPacketFeeCallback = (error: (Error|null), response?: ibc.applications.fee.v1.MsgPayPacketFeeResponse) => void; + + /** + * Callback as used by {@link ibc.applications.fee.v1.Msg#payPacketFeeAsync}. + * @param error Error, if any + * @param [response] MsgPayPacketFeeAsyncResponse + */ + type PayPacketFeeAsyncCallback = (error: (Error|null), response?: ibc.applications.fee.v1.MsgPayPacketFeeAsyncResponse) => void; + } + + /** Properties of a MsgRegisterPayee. */ + interface IMsgRegisterPayee { + + /** MsgRegisterPayee port_id */ + port_id?: (string|null); + + /** MsgRegisterPayee channel_id */ + channel_id?: (string|null); + + /** MsgRegisterPayee relayer */ + relayer?: (string|null); + + /** MsgRegisterPayee payee */ + payee?: (string|null); + } + + /** Represents a MsgRegisterPayee. */ + class MsgRegisterPayee implements IMsgRegisterPayee { + + /** + * Constructs a new MsgRegisterPayee. + * @param [properties] Properties to set + */ + constructor(properties?: ibc.applications.fee.v1.IMsgRegisterPayee); + + /** MsgRegisterPayee port_id. */ + public port_id: string; + + /** MsgRegisterPayee channel_id. */ + public channel_id: string; + + /** MsgRegisterPayee relayer. */ + public relayer: string; + + /** MsgRegisterPayee payee. */ + public payee: string; + + /** + * Encodes the specified MsgRegisterPayee message. Does not implicitly {@link ibc.applications.fee.v1.MsgRegisterPayee.verify|verify} messages. + * @param message MsgRegisterPayee message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: ibc.applications.fee.v1.IMsgRegisterPayee, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MsgRegisterPayee message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.MsgRegisterPayee.verify|verify} messages. + * @param message MsgRegisterPayee message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: ibc.applications.fee.v1.IMsgRegisterPayee, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MsgRegisterPayee message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MsgRegisterPayee + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.applications.fee.v1.MsgRegisterPayee; + + /** + * Decodes a MsgRegisterPayee message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MsgRegisterPayee + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.applications.fee.v1.MsgRegisterPayee; + + /** + * Verifies a MsgRegisterPayee message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a MsgRegisterPayee message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MsgRegisterPayee + */ + public static fromObject(object: { [k: string]: any }): ibc.applications.fee.v1.MsgRegisterPayee; + + /** + * Creates a plain object from a MsgRegisterPayee message. Also converts values to other types if specified. + * @param message MsgRegisterPayee + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: ibc.applications.fee.v1.MsgRegisterPayee, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MsgRegisterPayee to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a MsgRegisterPayeeResponse. */ + interface IMsgRegisterPayeeResponse { + } + + /** Represents a MsgRegisterPayeeResponse. */ + class MsgRegisterPayeeResponse implements IMsgRegisterPayeeResponse { + + /** + * Constructs a new MsgRegisterPayeeResponse. + * @param [properties] Properties to set + */ + constructor(properties?: ibc.applications.fee.v1.IMsgRegisterPayeeResponse); + + /** + * Encodes the specified MsgRegisterPayeeResponse message. Does not implicitly {@link ibc.applications.fee.v1.MsgRegisterPayeeResponse.verify|verify} messages. + * @param message MsgRegisterPayeeResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: ibc.applications.fee.v1.IMsgRegisterPayeeResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MsgRegisterPayeeResponse message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.MsgRegisterPayeeResponse.verify|verify} messages. + * @param message MsgRegisterPayeeResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: ibc.applications.fee.v1.IMsgRegisterPayeeResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MsgRegisterPayeeResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MsgRegisterPayeeResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.applications.fee.v1.MsgRegisterPayeeResponse; + + /** + * Decodes a MsgRegisterPayeeResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MsgRegisterPayeeResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.applications.fee.v1.MsgRegisterPayeeResponse; + + /** + * Verifies a MsgRegisterPayeeResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a MsgRegisterPayeeResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MsgRegisterPayeeResponse + */ + public static fromObject(object: { [k: string]: any }): ibc.applications.fee.v1.MsgRegisterPayeeResponse; + + /** + * Creates a plain object from a MsgRegisterPayeeResponse message. Also converts values to other types if specified. + * @param message MsgRegisterPayeeResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: ibc.applications.fee.v1.MsgRegisterPayeeResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MsgRegisterPayeeResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a MsgRegisterCounterpartyPayee. */ + interface IMsgRegisterCounterpartyPayee { + + /** MsgRegisterCounterpartyPayee port_id */ + port_id?: (string|null); + + /** MsgRegisterCounterpartyPayee channel_id */ + channel_id?: (string|null); + + /** MsgRegisterCounterpartyPayee relayer */ + relayer?: (string|null); + + /** MsgRegisterCounterpartyPayee counterparty_payee */ + counterparty_payee?: (string|null); + } + + /** Represents a MsgRegisterCounterpartyPayee. */ + class MsgRegisterCounterpartyPayee implements IMsgRegisterCounterpartyPayee { + + /** + * Constructs a new MsgRegisterCounterpartyPayee. + * @param [properties] Properties to set + */ + constructor(properties?: ibc.applications.fee.v1.IMsgRegisterCounterpartyPayee); + + /** MsgRegisterCounterpartyPayee port_id. */ + public port_id: string; + + /** MsgRegisterCounterpartyPayee channel_id. */ + public channel_id: string; + + /** MsgRegisterCounterpartyPayee relayer. */ + public relayer: string; + + /** MsgRegisterCounterpartyPayee counterparty_payee. */ + public counterparty_payee: string; + + /** + * Encodes the specified MsgRegisterCounterpartyPayee message. Does not implicitly {@link ibc.applications.fee.v1.MsgRegisterCounterpartyPayee.verify|verify} messages. + * @param message MsgRegisterCounterpartyPayee message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: ibc.applications.fee.v1.IMsgRegisterCounterpartyPayee, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MsgRegisterCounterpartyPayee message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.MsgRegisterCounterpartyPayee.verify|verify} messages. + * @param message MsgRegisterCounterpartyPayee message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: ibc.applications.fee.v1.IMsgRegisterCounterpartyPayee, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MsgRegisterCounterpartyPayee message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MsgRegisterCounterpartyPayee + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.applications.fee.v1.MsgRegisterCounterpartyPayee; + + /** + * Decodes a MsgRegisterCounterpartyPayee message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MsgRegisterCounterpartyPayee + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.applications.fee.v1.MsgRegisterCounterpartyPayee; + + /** + * Verifies a MsgRegisterCounterpartyPayee message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a MsgRegisterCounterpartyPayee message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MsgRegisterCounterpartyPayee + */ + public static fromObject(object: { [k: string]: any }): ibc.applications.fee.v1.MsgRegisterCounterpartyPayee; + + /** + * Creates a plain object from a MsgRegisterCounterpartyPayee message. Also converts values to other types if specified. + * @param message MsgRegisterCounterpartyPayee + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: ibc.applications.fee.v1.MsgRegisterCounterpartyPayee, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MsgRegisterCounterpartyPayee to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a MsgRegisterCounterpartyPayeeResponse. */ + interface IMsgRegisterCounterpartyPayeeResponse { + } + + /** Represents a MsgRegisterCounterpartyPayeeResponse. */ + class MsgRegisterCounterpartyPayeeResponse implements IMsgRegisterCounterpartyPayeeResponse { /** * Constructs a new MsgRegisterCounterpartyPayeeResponse. @@ -10397,11 +13595,11 @@ export namespace ibc { /** Namespace v1. */ namespace v1 { - /** Represents a Query */ - class Query extends $protobuf.rpc.Service { + /** Represents a Msg */ + class Msg extends $protobuf.rpc.Service { /** - * Constructs a new Query service. + * Constructs a new Msg service. * @param rpcImpl RPC implementation * @param [requestDelimited=false] Whether requests are length-delimited * @param [responseDelimited=false] Whether responses are length-delimited @@ -10409,754 +13607,886 @@ export namespace ibc { constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); /** - * Calls InterchainAccount. - * @param request QueryInterchainAccountRequest message or plain object - * @param callback Node-style callback called with the error, if any, and QueryInterchainAccountResponse + * Calls RegisterInterchainAccount. + * @param request MsgRegisterInterchainAccount message or plain object + * @param callback Node-style callback called with the error, if any, and MsgRegisterInterchainAccountResponse */ - public interchainAccount(request: ibc.applications.interchain_accounts.controller.v1.IQueryInterchainAccountRequest, callback: ibc.applications.interchain_accounts.controller.v1.Query.InterchainAccountCallback): void; + public registerInterchainAccount(request: ibc.applications.interchain_accounts.controller.v1.IMsgRegisterInterchainAccount, callback: ibc.applications.interchain_accounts.controller.v1.Msg.RegisterInterchainAccountCallback): void; /** - * Calls InterchainAccount. - * @param request QueryInterchainAccountRequest message or plain object + * Calls RegisterInterchainAccount. + * @param request MsgRegisterInterchainAccount message or plain object * @returns Promise */ - public interchainAccount(request: ibc.applications.interchain_accounts.controller.v1.IQueryInterchainAccountRequest): Promise; + public registerInterchainAccount(request: ibc.applications.interchain_accounts.controller.v1.IMsgRegisterInterchainAccount): Promise; /** - * Calls Params. - * @param request QueryParamsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and QueryParamsResponse + * Calls SendTx. + * @param request MsgSendTx message or plain object + * @param callback Node-style callback called with the error, if any, and MsgSendTxResponse */ - public params(request: ibc.applications.interchain_accounts.controller.v1.IQueryParamsRequest, callback: ibc.applications.interchain_accounts.controller.v1.Query.ParamsCallback): void; + public sendTx(request: ibc.applications.interchain_accounts.controller.v1.IMsgSendTx, callback: ibc.applications.interchain_accounts.controller.v1.Msg.SendTxCallback): void; /** - * Calls Params. - * @param request QueryParamsRequest message or plain object + * Calls SendTx. + * @param request MsgSendTx message or plain object * @returns Promise */ - public params(request: ibc.applications.interchain_accounts.controller.v1.IQueryParamsRequest): Promise; + public sendTx(request: ibc.applications.interchain_accounts.controller.v1.IMsgSendTx): Promise; } - namespace Query { + namespace Msg { /** - * Callback as used by {@link ibc.applications.interchain_accounts.controller.v1.Query#interchainAccount}. + * Callback as used by {@link ibc.applications.interchain_accounts.controller.v1.Msg#registerInterchainAccount}. * @param error Error, if any - * @param [response] QueryInterchainAccountResponse + * @param [response] MsgRegisterInterchainAccountResponse */ - type InterchainAccountCallback = (error: (Error|null), response?: ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountResponse) => void; + type RegisterInterchainAccountCallback = (error: (Error|null), response?: ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccountResponse) => void; /** - * Callback as used by {@link ibc.applications.interchain_accounts.controller.v1.Query#params}. + * Callback as used by {@link ibc.applications.interchain_accounts.controller.v1.Msg#sendTx}. * @param error Error, if any - * @param [response] QueryParamsResponse + * @param [response] MsgSendTxResponse */ - type ParamsCallback = (error: (Error|null), response?: ibc.applications.interchain_accounts.controller.v1.QueryParamsResponse) => void; + type SendTxCallback = (error: (Error|null), response?: ibc.applications.interchain_accounts.controller.v1.MsgSendTxResponse) => void; } - /** Properties of a QueryInterchainAccountRequest. */ - interface IQueryInterchainAccountRequest { + /** Properties of a MsgRegisterInterchainAccount. */ + interface IMsgRegisterInterchainAccount { - /** QueryInterchainAccountRequest owner */ + /** MsgRegisterInterchainAccount owner */ owner?: (string|null); - /** QueryInterchainAccountRequest connection_id */ + /** MsgRegisterInterchainAccount connection_id */ connection_id?: (string|null); + + /** MsgRegisterInterchainAccount version */ + version?: (string|null); } - /** Represents a QueryInterchainAccountRequest. */ - class QueryInterchainAccountRequest implements IQueryInterchainAccountRequest { + /** Represents a MsgRegisterInterchainAccount. */ + class MsgRegisterInterchainAccount implements IMsgRegisterInterchainAccount { /** - * Constructs a new QueryInterchainAccountRequest. + * Constructs a new MsgRegisterInterchainAccount. * @param [properties] Properties to set */ - constructor(properties?: ibc.applications.interchain_accounts.controller.v1.IQueryInterchainAccountRequest); + constructor(properties?: ibc.applications.interchain_accounts.controller.v1.IMsgRegisterInterchainAccount); - /** QueryInterchainAccountRequest owner. */ + /** MsgRegisterInterchainAccount owner. */ public owner: string; - /** QueryInterchainAccountRequest connection_id. */ + /** MsgRegisterInterchainAccount connection_id. */ public connection_id: string; + /** MsgRegisterInterchainAccount version. */ + public version: string; + /** - * Encodes the specified QueryInterchainAccountRequest message. Does not implicitly {@link ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountRequest.verify|verify} messages. - * @param message QueryInterchainAccountRequest message or plain object to encode + * Encodes the specified MsgRegisterInterchainAccount message. Does not implicitly {@link ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccount.verify|verify} messages. + * @param message MsgRegisterInterchainAccount message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.applications.interchain_accounts.controller.v1.IQueryInterchainAccountRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.applications.interchain_accounts.controller.v1.IMsgRegisterInterchainAccount, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified QueryInterchainAccountRequest message, length delimited. Does not implicitly {@link ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountRequest.verify|verify} messages. - * @param message QueryInterchainAccountRequest message or plain object to encode + * Encodes the specified MsgRegisterInterchainAccount message, length delimited. Does not implicitly {@link ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccount.verify|verify} messages. + * @param message MsgRegisterInterchainAccount message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.applications.interchain_accounts.controller.v1.IQueryInterchainAccountRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.applications.interchain_accounts.controller.v1.IMsgRegisterInterchainAccount, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a QueryInterchainAccountRequest message from the specified reader or buffer. + * Decodes a MsgRegisterInterchainAccount message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns QueryInterchainAccountRequest + * @returns MsgRegisterInterchainAccount * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccount; /** - * Decodes a QueryInterchainAccountRequest message from the specified reader or buffer, length delimited. + * Decodes a MsgRegisterInterchainAccount message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns QueryInterchainAccountRequest + * @returns MsgRegisterInterchainAccount * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccount; /** - * Verifies a QueryInterchainAccountRequest message. + * Verifies a MsgRegisterInterchainAccount message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a QueryInterchainAccountRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MsgRegisterInterchainAccount message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns QueryInterchainAccountRequest + * @returns MsgRegisterInterchainAccount */ - public static fromObject(object: { [k: string]: any }): ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountRequest; + public static fromObject(object: { [k: string]: any }): ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccount; /** - * Creates a plain object from a QueryInterchainAccountRequest message. Also converts values to other types if specified. - * @param message QueryInterchainAccountRequest + * Creates a plain object from a MsgRegisterInterchainAccount message. Also converts values to other types if specified. + * @param message MsgRegisterInterchainAccount * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccount, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this QueryInterchainAccountRequest to JSON. + * Converts this MsgRegisterInterchainAccount to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a QueryInterchainAccountResponse. */ - interface IQueryInterchainAccountResponse { + /** Properties of a MsgRegisterInterchainAccountResponse. */ + interface IMsgRegisterInterchainAccountResponse { - /** QueryInterchainAccountResponse address */ - address?: (string|null); + /** MsgRegisterInterchainAccountResponse channel_id */ + channel_id?: (string|null); + + /** MsgRegisterInterchainAccountResponse port_id */ + port_id?: (string|null); } - /** Represents a QueryInterchainAccountResponse. */ - class QueryInterchainAccountResponse implements IQueryInterchainAccountResponse { + /** Represents a MsgRegisterInterchainAccountResponse. */ + class MsgRegisterInterchainAccountResponse implements IMsgRegisterInterchainAccountResponse { /** - * Constructs a new QueryInterchainAccountResponse. + * Constructs a new MsgRegisterInterchainAccountResponse. * @param [properties] Properties to set */ - constructor(properties?: ibc.applications.interchain_accounts.controller.v1.IQueryInterchainAccountResponse); + constructor(properties?: ibc.applications.interchain_accounts.controller.v1.IMsgRegisterInterchainAccountResponse); - /** QueryInterchainAccountResponse address. */ - public address: string; + /** MsgRegisterInterchainAccountResponse channel_id. */ + public channel_id: string; + + /** MsgRegisterInterchainAccountResponse port_id. */ + public port_id: string; /** - * Encodes the specified QueryInterchainAccountResponse message. Does not implicitly {@link ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountResponse.verify|verify} messages. - * @param message QueryInterchainAccountResponse message or plain object to encode + * Encodes the specified MsgRegisterInterchainAccountResponse message. Does not implicitly {@link ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccountResponse.verify|verify} messages. + * @param message MsgRegisterInterchainAccountResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.applications.interchain_accounts.controller.v1.IQueryInterchainAccountResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.applications.interchain_accounts.controller.v1.IMsgRegisterInterchainAccountResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified QueryInterchainAccountResponse message, length delimited. Does not implicitly {@link ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountResponse.verify|verify} messages. - * @param message QueryInterchainAccountResponse message or plain object to encode + * Encodes the specified MsgRegisterInterchainAccountResponse message, length delimited. Does not implicitly {@link ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccountResponse.verify|verify} messages. + * @param message MsgRegisterInterchainAccountResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.applications.interchain_accounts.controller.v1.IQueryInterchainAccountResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.applications.interchain_accounts.controller.v1.IMsgRegisterInterchainAccountResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a QueryInterchainAccountResponse message from the specified reader or buffer. + * Decodes a MsgRegisterInterchainAccountResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns QueryInterchainAccountResponse + * @returns MsgRegisterInterchainAccountResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccountResponse; /** - * Decodes a QueryInterchainAccountResponse message from the specified reader or buffer, length delimited. + * Decodes a MsgRegisterInterchainAccountResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns QueryInterchainAccountResponse + * @returns MsgRegisterInterchainAccountResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccountResponse; /** - * Verifies a QueryInterchainAccountResponse message. + * Verifies a MsgRegisterInterchainAccountResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a QueryInterchainAccountResponse message from a plain object. Also converts values to their respective internal types. + * Creates a MsgRegisterInterchainAccountResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns QueryInterchainAccountResponse + * @returns MsgRegisterInterchainAccountResponse */ - public static fromObject(object: { [k: string]: any }): ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountResponse; + public static fromObject(object: { [k: string]: any }): ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccountResponse; /** - * Creates a plain object from a QueryInterchainAccountResponse message. Also converts values to other types if specified. - * @param message QueryInterchainAccountResponse + * Creates a plain object from a MsgRegisterInterchainAccountResponse message. Also converts values to other types if specified. + * @param message MsgRegisterInterchainAccountResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccountResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this QueryInterchainAccountResponse to JSON. + * Converts this MsgRegisterInterchainAccountResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a QueryParamsRequest. */ - interface IQueryParamsRequest { + /** Properties of a MsgSendTx. */ + interface IMsgSendTx { + + /** MsgSendTx owner */ + owner?: (string|null); + + /** MsgSendTx connection_id */ + connection_id?: (string|null); + + /** MsgSendTx packet_data */ + packet_data?: (ibc.applications.interchain_accounts.v1.IInterchainAccountPacketData|null); + + /** MsgSendTx relative_timeout */ + relative_timeout?: (Long|null); } - /** Represents a QueryParamsRequest. */ - class QueryParamsRequest implements IQueryParamsRequest { + /** Represents a MsgSendTx. */ + class MsgSendTx implements IMsgSendTx { /** - * Constructs a new QueryParamsRequest. + * Constructs a new MsgSendTx. * @param [properties] Properties to set */ - constructor(properties?: ibc.applications.interchain_accounts.controller.v1.IQueryParamsRequest); + constructor(properties?: ibc.applications.interchain_accounts.controller.v1.IMsgSendTx); + + /** MsgSendTx owner. */ + public owner: string; + + /** MsgSendTx connection_id. */ + public connection_id: string; + + /** MsgSendTx packet_data. */ + public packet_data?: (ibc.applications.interchain_accounts.v1.IInterchainAccountPacketData|null); + + /** MsgSendTx relative_timeout. */ + public relative_timeout: Long; /** - * Encodes the specified QueryParamsRequest message. Does not implicitly {@link ibc.applications.interchain_accounts.controller.v1.QueryParamsRequest.verify|verify} messages. - * @param message QueryParamsRequest message or plain object to encode + * Encodes the specified MsgSendTx message. Does not implicitly {@link ibc.applications.interchain_accounts.controller.v1.MsgSendTx.verify|verify} messages. + * @param message MsgSendTx message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.applications.interchain_accounts.controller.v1.IQueryParamsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.applications.interchain_accounts.controller.v1.IMsgSendTx, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified QueryParamsRequest message, length delimited. Does not implicitly {@link ibc.applications.interchain_accounts.controller.v1.QueryParamsRequest.verify|verify} messages. - * @param message QueryParamsRequest message or plain object to encode + * Encodes the specified MsgSendTx message, length delimited. Does not implicitly {@link ibc.applications.interchain_accounts.controller.v1.MsgSendTx.verify|verify} messages. + * @param message MsgSendTx message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.applications.interchain_accounts.controller.v1.IQueryParamsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.applications.interchain_accounts.controller.v1.IMsgSendTx, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a QueryParamsRequest message from the specified reader or buffer. + * Decodes a MsgSendTx message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns QueryParamsRequest + * @returns MsgSendTx * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.applications.interchain_accounts.controller.v1.QueryParamsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.applications.interchain_accounts.controller.v1.MsgSendTx; /** - * Decodes a QueryParamsRequest message from the specified reader or buffer, length delimited. + * Decodes a MsgSendTx message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns QueryParamsRequest + * @returns MsgSendTx * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.applications.interchain_accounts.controller.v1.QueryParamsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.applications.interchain_accounts.controller.v1.MsgSendTx; /** - * Verifies a QueryParamsRequest message. + * Verifies a MsgSendTx message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a QueryParamsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MsgSendTx message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns QueryParamsRequest + * @returns MsgSendTx */ - public static fromObject(object: { [k: string]: any }): ibc.applications.interchain_accounts.controller.v1.QueryParamsRequest; + public static fromObject(object: { [k: string]: any }): ibc.applications.interchain_accounts.controller.v1.MsgSendTx; /** - * Creates a plain object from a QueryParamsRequest message. Also converts values to other types if specified. - * @param message QueryParamsRequest + * Creates a plain object from a MsgSendTx message. Also converts values to other types if specified. + * @param message MsgSendTx * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.applications.interchain_accounts.controller.v1.QueryParamsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.applications.interchain_accounts.controller.v1.MsgSendTx, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this QueryParamsRequest to JSON. + * Converts this MsgSendTx to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a QueryParamsResponse. */ - interface IQueryParamsResponse { + /** Properties of a MsgSendTxResponse. */ + interface IMsgSendTxResponse { - /** QueryParamsResponse params */ - params?: (ibc.applications.interchain_accounts.controller.v1.IParams|null); + /** MsgSendTxResponse sequence */ + sequence?: (Long|null); } - /** Represents a QueryParamsResponse. */ - class QueryParamsResponse implements IQueryParamsResponse { + /** Represents a MsgSendTxResponse. */ + class MsgSendTxResponse implements IMsgSendTxResponse { /** - * Constructs a new QueryParamsResponse. + * Constructs a new MsgSendTxResponse. * @param [properties] Properties to set */ - constructor(properties?: ibc.applications.interchain_accounts.controller.v1.IQueryParamsResponse); + constructor(properties?: ibc.applications.interchain_accounts.controller.v1.IMsgSendTxResponse); - /** QueryParamsResponse params. */ - public params?: (ibc.applications.interchain_accounts.controller.v1.IParams|null); + /** MsgSendTxResponse sequence. */ + public sequence: Long; /** - * Encodes the specified QueryParamsResponse message. Does not implicitly {@link ibc.applications.interchain_accounts.controller.v1.QueryParamsResponse.verify|verify} messages. - * @param message QueryParamsResponse message or plain object to encode + * Encodes the specified MsgSendTxResponse message. Does not implicitly {@link ibc.applications.interchain_accounts.controller.v1.MsgSendTxResponse.verify|verify} messages. + * @param message MsgSendTxResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.applications.interchain_accounts.controller.v1.IQueryParamsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.applications.interchain_accounts.controller.v1.IMsgSendTxResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified QueryParamsResponse message, length delimited. Does not implicitly {@link ibc.applications.interchain_accounts.controller.v1.QueryParamsResponse.verify|verify} messages. - * @param message QueryParamsResponse message or plain object to encode + * Encodes the specified MsgSendTxResponse message, length delimited. Does not implicitly {@link ibc.applications.interchain_accounts.controller.v1.MsgSendTxResponse.verify|verify} messages. + * @param message MsgSendTxResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.applications.interchain_accounts.controller.v1.IQueryParamsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.applications.interchain_accounts.controller.v1.IMsgSendTxResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a QueryParamsResponse message from the specified reader or buffer. + * Decodes a MsgSendTxResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns QueryParamsResponse + * @returns MsgSendTxResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.applications.interchain_accounts.controller.v1.QueryParamsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.applications.interchain_accounts.controller.v1.MsgSendTxResponse; /** - * Decodes a QueryParamsResponse message from the specified reader or buffer, length delimited. + * Decodes a MsgSendTxResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns QueryParamsResponse + * @returns MsgSendTxResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.applications.interchain_accounts.controller.v1.QueryParamsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.applications.interchain_accounts.controller.v1.MsgSendTxResponse; /** - * Verifies a QueryParamsResponse message. + * Verifies a MsgSendTxResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a QueryParamsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a MsgSendTxResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns QueryParamsResponse + * @returns MsgSendTxResponse */ - public static fromObject(object: { [k: string]: any }): ibc.applications.interchain_accounts.controller.v1.QueryParamsResponse; + public static fromObject(object: { [k: string]: any }): ibc.applications.interchain_accounts.controller.v1.MsgSendTxResponse; /** - * Creates a plain object from a QueryParamsResponse message. Also converts values to other types if specified. - * @param message QueryParamsResponse + * Creates a plain object from a MsgSendTxResponse message. Also converts values to other types if specified. + * @param message MsgSendTxResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.applications.interchain_accounts.controller.v1.QueryParamsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.applications.interchain_accounts.controller.v1.MsgSendTxResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this QueryParamsResponse to JSON. + * Converts this MsgSendTxResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a Params. */ - interface IParams { + /** Represents a Query */ + class Query extends $protobuf.rpc.Service { - /** Params controller_enabled */ - controller_enabled?: (boolean|null); + /** + * Constructs a new Query service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + + /** + * Calls InterchainAccount. + * @param request QueryInterchainAccountRequest message or plain object + * @param callback Node-style callback called with the error, if any, and QueryInterchainAccountResponse + */ + public interchainAccount(request: ibc.applications.interchain_accounts.controller.v1.IQueryInterchainAccountRequest, callback: ibc.applications.interchain_accounts.controller.v1.Query.InterchainAccountCallback): void; + + /** + * Calls InterchainAccount. + * @param request QueryInterchainAccountRequest message or plain object + * @returns Promise + */ + public interchainAccount(request: ibc.applications.interchain_accounts.controller.v1.IQueryInterchainAccountRequest): Promise; + + /** + * Calls Params. + * @param request QueryParamsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and QueryParamsResponse + */ + public params(request: ibc.applications.interchain_accounts.controller.v1.IQueryParamsRequest, callback: ibc.applications.interchain_accounts.controller.v1.Query.ParamsCallback): void; + + /** + * Calls Params. + * @param request QueryParamsRequest message or plain object + * @returns Promise + */ + public params(request: ibc.applications.interchain_accounts.controller.v1.IQueryParamsRequest): Promise; } - /** Represents a Params. */ - class Params implements IParams { + namespace Query { /** - * Constructs a new Params. + * Callback as used by {@link ibc.applications.interchain_accounts.controller.v1.Query#interchainAccount}. + * @param error Error, if any + * @param [response] QueryInterchainAccountResponse + */ + type InterchainAccountCallback = (error: (Error|null), response?: ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountResponse) => void; + + /** + * Callback as used by {@link ibc.applications.interchain_accounts.controller.v1.Query#params}. + * @param error Error, if any + * @param [response] QueryParamsResponse + */ + type ParamsCallback = (error: (Error|null), response?: ibc.applications.interchain_accounts.controller.v1.QueryParamsResponse) => void; + } + + /** Properties of a QueryInterchainAccountRequest. */ + interface IQueryInterchainAccountRequest { + + /** QueryInterchainAccountRequest owner */ + owner?: (string|null); + + /** QueryInterchainAccountRequest connection_id */ + connection_id?: (string|null); + } + + /** Represents a QueryInterchainAccountRequest. */ + class QueryInterchainAccountRequest implements IQueryInterchainAccountRequest { + + /** + * Constructs a new QueryInterchainAccountRequest. * @param [properties] Properties to set */ - constructor(properties?: ibc.applications.interchain_accounts.controller.v1.IParams); + constructor(properties?: ibc.applications.interchain_accounts.controller.v1.IQueryInterchainAccountRequest); - /** Params controller_enabled. */ - public controller_enabled: boolean; + /** QueryInterchainAccountRequest owner. */ + public owner: string; + + /** QueryInterchainAccountRequest connection_id. */ + public connection_id: string; /** - * Encodes the specified Params message. Does not implicitly {@link ibc.applications.interchain_accounts.controller.v1.Params.verify|verify} messages. - * @param message Params message or plain object to encode + * Encodes the specified QueryInterchainAccountRequest message. Does not implicitly {@link ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountRequest.verify|verify} messages. + * @param message QueryInterchainAccountRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.applications.interchain_accounts.controller.v1.IParams, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.applications.interchain_accounts.controller.v1.IQueryInterchainAccountRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Params message, length delimited. Does not implicitly {@link ibc.applications.interchain_accounts.controller.v1.Params.verify|verify} messages. - * @param message Params message or plain object to encode + * Encodes the specified QueryInterchainAccountRequest message, length delimited. Does not implicitly {@link ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountRequest.verify|verify} messages. + * @param message QueryInterchainAccountRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.applications.interchain_accounts.controller.v1.IParams, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.applications.interchain_accounts.controller.v1.IQueryInterchainAccountRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Params message from the specified reader or buffer. + * Decodes a QueryInterchainAccountRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Params + * @returns QueryInterchainAccountRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.applications.interchain_accounts.controller.v1.Params; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountRequest; /** - * Decodes a Params message from the specified reader or buffer, length delimited. + * Decodes a QueryInterchainAccountRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Params + * @returns QueryInterchainAccountRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.applications.interchain_accounts.controller.v1.Params; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountRequest; /** - * Verifies a Params message. + * Verifies a QueryInterchainAccountRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a Params message from a plain object. Also converts values to their respective internal types. + * Creates a QueryInterchainAccountRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Params + * @returns QueryInterchainAccountRequest */ - public static fromObject(object: { [k: string]: any }): ibc.applications.interchain_accounts.controller.v1.Params; + public static fromObject(object: { [k: string]: any }): ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountRequest; /** - * Creates a plain object from a Params message. Also converts values to other types if specified. - * @param message Params + * Creates a plain object from a QueryInterchainAccountRequest message. Also converts values to other types if specified. + * @param message QueryInterchainAccountRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.applications.interchain_accounts.controller.v1.Params, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Params to JSON. + * Converts this QueryInterchainAccountRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - } - } - - /** Namespace host. */ - namespace host { - - /** Namespace v1. */ - namespace v1 { - - /** Properties of a Params. */ - interface IParams { - /** Params host_enabled */ - host_enabled?: (boolean|null); + /** Properties of a QueryInterchainAccountResponse. */ + interface IQueryInterchainAccountResponse { - /** Params allow_messages */ - allow_messages?: (string[]|null); + /** QueryInterchainAccountResponse address */ + address?: (string|null); } - /** Represents a Params. */ - class Params implements IParams { + /** Represents a QueryInterchainAccountResponse. */ + class QueryInterchainAccountResponse implements IQueryInterchainAccountResponse { /** - * Constructs a new Params. + * Constructs a new QueryInterchainAccountResponse. * @param [properties] Properties to set */ - constructor(properties?: ibc.applications.interchain_accounts.host.v1.IParams); - - /** Params host_enabled. */ - public host_enabled: boolean; + constructor(properties?: ibc.applications.interchain_accounts.controller.v1.IQueryInterchainAccountResponse); - /** Params allow_messages. */ - public allow_messages: string[]; + /** QueryInterchainAccountResponse address. */ + public address: string; /** - * Encodes the specified Params message. Does not implicitly {@link ibc.applications.interchain_accounts.host.v1.Params.verify|verify} messages. - * @param message Params message or plain object to encode + * Encodes the specified QueryInterchainAccountResponse message. Does not implicitly {@link ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountResponse.verify|verify} messages. + * @param message QueryInterchainAccountResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.applications.interchain_accounts.host.v1.IParams, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.applications.interchain_accounts.controller.v1.IQueryInterchainAccountResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Params message, length delimited. Does not implicitly {@link ibc.applications.interchain_accounts.host.v1.Params.verify|verify} messages. - * @param message Params message or plain object to encode + * Encodes the specified QueryInterchainAccountResponse message, length delimited. Does not implicitly {@link ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountResponse.verify|verify} messages. + * @param message QueryInterchainAccountResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.applications.interchain_accounts.host.v1.IParams, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.applications.interchain_accounts.controller.v1.IQueryInterchainAccountResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Params message from the specified reader or buffer. + * Decodes a QueryInterchainAccountResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Params + * @returns QueryInterchainAccountResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.applications.interchain_accounts.host.v1.Params; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountResponse; /** - * Decodes a Params message from the specified reader or buffer, length delimited. + * Decodes a QueryInterchainAccountResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Params + * @returns QueryInterchainAccountResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.applications.interchain_accounts.host.v1.Params; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountResponse; /** - * Verifies a Params message. + * Verifies a QueryInterchainAccountResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a Params message from a plain object. Also converts values to their respective internal types. + * Creates a QueryInterchainAccountResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Params + * @returns QueryInterchainAccountResponse */ - public static fromObject(object: { [k: string]: any }): ibc.applications.interchain_accounts.host.v1.Params; + public static fromObject(object: { [k: string]: any }): ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountResponse; /** - * Creates a plain object from a Params message. Also converts values to other types if specified. - * @param message Params + * Creates a plain object from a QueryInterchainAccountResponse message. Also converts values to other types if specified. + * @param message QueryInterchainAccountResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.applications.interchain_accounts.host.v1.Params, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Params to JSON. + * Converts this QueryInterchainAccountResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Represents a Query */ - class Query extends $protobuf.rpc.Service { + /** Properties of a QueryParamsRequest. */ + interface IQueryParamsRequest { + } + + /** Represents a QueryParamsRequest. */ + class QueryParamsRequest implements IQueryParamsRequest { /** - * Constructs a new Query service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited + * Constructs a new QueryParamsRequest. + * @param [properties] Properties to set */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + constructor(properties?: ibc.applications.interchain_accounts.controller.v1.IQueryParamsRequest); /** - * Calls Params. - * @param request QueryParamsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and QueryParamsResponse + * Encodes the specified QueryParamsRequest message. Does not implicitly {@link ibc.applications.interchain_accounts.controller.v1.QueryParamsRequest.verify|verify} messages. + * @param message QueryParamsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public params(request: ibc.applications.interchain_accounts.host.v1.IQueryParamsRequest, callback: ibc.applications.interchain_accounts.host.v1.Query.ParamsCallback): void; + public static encode(message: ibc.applications.interchain_accounts.controller.v1.IQueryParamsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls Params. - * @param request QueryParamsRequest message or plain object - * @returns Promise + * Encodes the specified QueryParamsRequest message, length delimited. Does not implicitly {@link ibc.applications.interchain_accounts.controller.v1.QueryParamsRequest.verify|verify} messages. + * @param message QueryParamsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public params(request: ibc.applications.interchain_accounts.host.v1.IQueryParamsRequest): Promise; - } + public static encodeDelimited(message: ibc.applications.interchain_accounts.controller.v1.IQueryParamsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - namespace Query { + /** + * Decodes a QueryParamsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns QueryParamsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.applications.interchain_accounts.controller.v1.QueryParamsRequest; /** - * Callback as used by {@link ibc.applications.interchain_accounts.host.v1.Query#params}. - * @param error Error, if any - * @param [response] QueryParamsResponse + * Decodes a QueryParamsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns QueryParamsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type ParamsCallback = (error: (Error|null), response?: ibc.applications.interchain_accounts.host.v1.QueryParamsResponse) => void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.applications.interchain_accounts.controller.v1.QueryParamsRequest; + + /** + * Verifies a QueryParamsRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a QueryParamsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns QueryParamsRequest + */ + public static fromObject(object: { [k: string]: any }): ibc.applications.interchain_accounts.controller.v1.QueryParamsRequest; + + /** + * Creates a plain object from a QueryParamsRequest message. Also converts values to other types if specified. + * @param message QueryParamsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: ibc.applications.interchain_accounts.controller.v1.QueryParamsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this QueryParamsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; } - /** Properties of a QueryParamsRequest. */ - interface IQueryParamsRequest { + /** Properties of a QueryParamsResponse. */ + interface IQueryParamsResponse { + + /** QueryParamsResponse params */ + params?: (ibc.applications.interchain_accounts.controller.v1.IParams|null); } - /** Represents a QueryParamsRequest. */ - class QueryParamsRequest implements IQueryParamsRequest { + /** Represents a QueryParamsResponse. */ + class QueryParamsResponse implements IQueryParamsResponse { /** - * Constructs a new QueryParamsRequest. + * Constructs a new QueryParamsResponse. * @param [properties] Properties to set */ - constructor(properties?: ibc.applications.interchain_accounts.host.v1.IQueryParamsRequest); + constructor(properties?: ibc.applications.interchain_accounts.controller.v1.IQueryParamsResponse); + + /** QueryParamsResponse params. */ + public params?: (ibc.applications.interchain_accounts.controller.v1.IParams|null); /** - * Encodes the specified QueryParamsRequest message. Does not implicitly {@link ibc.applications.interchain_accounts.host.v1.QueryParamsRequest.verify|verify} messages. - * @param message QueryParamsRequest message or plain object to encode + * Encodes the specified QueryParamsResponse message. Does not implicitly {@link ibc.applications.interchain_accounts.controller.v1.QueryParamsResponse.verify|verify} messages. + * @param message QueryParamsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.applications.interchain_accounts.host.v1.IQueryParamsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.applications.interchain_accounts.controller.v1.IQueryParamsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified QueryParamsRequest message, length delimited. Does not implicitly {@link ibc.applications.interchain_accounts.host.v1.QueryParamsRequest.verify|verify} messages. - * @param message QueryParamsRequest message or plain object to encode + * Encodes the specified QueryParamsResponse message, length delimited. Does not implicitly {@link ibc.applications.interchain_accounts.controller.v1.QueryParamsResponse.verify|verify} messages. + * @param message QueryParamsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.applications.interchain_accounts.host.v1.IQueryParamsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.applications.interchain_accounts.controller.v1.IQueryParamsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a QueryParamsRequest message from the specified reader or buffer. + * Decodes a QueryParamsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns QueryParamsRequest + * @returns QueryParamsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.applications.interchain_accounts.host.v1.QueryParamsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.applications.interchain_accounts.controller.v1.QueryParamsResponse; /** - * Decodes a QueryParamsRequest message from the specified reader or buffer, length delimited. + * Decodes a QueryParamsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns QueryParamsRequest + * @returns QueryParamsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.applications.interchain_accounts.host.v1.QueryParamsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.applications.interchain_accounts.controller.v1.QueryParamsResponse; /** - * Verifies a QueryParamsRequest message. + * Verifies a QueryParamsResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a QueryParamsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a QueryParamsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns QueryParamsRequest + * @returns QueryParamsResponse */ - public static fromObject(object: { [k: string]: any }): ibc.applications.interchain_accounts.host.v1.QueryParamsRequest; + public static fromObject(object: { [k: string]: any }): ibc.applications.interchain_accounts.controller.v1.QueryParamsResponse; /** - * Creates a plain object from a QueryParamsRequest message. Also converts values to other types if specified. - * @param message QueryParamsRequest + * Creates a plain object from a QueryParamsResponse message. Also converts values to other types if specified. + * @param message QueryParamsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.applications.interchain_accounts.host.v1.QueryParamsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.applications.interchain_accounts.controller.v1.QueryParamsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this QueryParamsRequest to JSON. + * Converts this QueryParamsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a QueryParamsResponse. */ - interface IQueryParamsResponse { + /** Properties of a Params. */ + interface IParams { - /** QueryParamsResponse params */ - params?: (ibc.applications.interchain_accounts.host.v1.IParams|null); + /** Params controller_enabled */ + controller_enabled?: (boolean|null); } - /** Represents a QueryParamsResponse. */ - class QueryParamsResponse implements IQueryParamsResponse { + /** Represents a Params. */ + class Params implements IParams { /** - * Constructs a new QueryParamsResponse. + * Constructs a new Params. * @param [properties] Properties to set */ - constructor(properties?: ibc.applications.interchain_accounts.host.v1.IQueryParamsResponse); + constructor(properties?: ibc.applications.interchain_accounts.controller.v1.IParams); - /** QueryParamsResponse params. */ - public params?: (ibc.applications.interchain_accounts.host.v1.IParams|null); + /** Params controller_enabled. */ + public controller_enabled: boolean; /** - * Encodes the specified QueryParamsResponse message. Does not implicitly {@link ibc.applications.interchain_accounts.host.v1.QueryParamsResponse.verify|verify} messages. - * @param message QueryParamsResponse message or plain object to encode + * Encodes the specified Params message. Does not implicitly {@link ibc.applications.interchain_accounts.controller.v1.Params.verify|verify} messages. + * @param message Params message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.applications.interchain_accounts.host.v1.IQueryParamsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.applications.interchain_accounts.controller.v1.IParams, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified QueryParamsResponse message, length delimited. Does not implicitly {@link ibc.applications.interchain_accounts.host.v1.QueryParamsResponse.verify|verify} messages. - * @param message QueryParamsResponse message or plain object to encode + * Encodes the specified Params message, length delimited. Does not implicitly {@link ibc.applications.interchain_accounts.controller.v1.Params.verify|verify} messages. + * @param message Params message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.applications.interchain_accounts.host.v1.IQueryParamsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.applications.interchain_accounts.controller.v1.IParams, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a QueryParamsResponse message from the specified reader or buffer. + * Decodes a Params message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns QueryParamsResponse + * @returns Params * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.applications.interchain_accounts.host.v1.QueryParamsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.applications.interchain_accounts.controller.v1.Params; /** - * Decodes a QueryParamsResponse message from the specified reader or buffer, length delimited. + * Decodes a Params message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns QueryParamsResponse + * @returns Params * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.applications.interchain_accounts.host.v1.QueryParamsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.applications.interchain_accounts.controller.v1.Params; /** - * Verifies a QueryParamsResponse message. + * Verifies a Params message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a QueryParamsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a Params message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns QueryParamsResponse + * @returns Params */ - public static fromObject(object: { [k: string]: any }): ibc.applications.interchain_accounts.host.v1.QueryParamsResponse; + public static fromObject(object: { [k: string]: any }): ibc.applications.interchain_accounts.controller.v1.Params; /** - * Creates a plain object from a QueryParamsResponse message. Also converts values to other types if specified. - * @param message QueryParamsResponse + * Creates a plain object from a Params message. Also converts values to other types if specified. + * @param message Params * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.applications.interchain_accounts.host.v1.QueryParamsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.applications.interchain_accounts.controller.v1.Params, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this QueryParamsResponse to JSON. + * Converts this Params to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; @@ -11167,95 +14497,6 @@ export namespace ibc { /** Namespace v1. */ namespace v1 { - /** Properties of an InterchainAccount. */ - interface IInterchainAccount { - - /** InterchainAccount base_account */ - base_account?: (cosmos.auth.v1beta1.IBaseAccount|null); - - /** InterchainAccount account_owner */ - account_owner?: (string|null); - } - - /** Represents an InterchainAccount. */ - class InterchainAccount implements IInterchainAccount { - - /** - * Constructs a new InterchainAccount. - * @param [properties] Properties to set - */ - constructor(properties?: ibc.applications.interchain_accounts.v1.IInterchainAccount); - - /** InterchainAccount base_account. */ - public base_account?: (cosmos.auth.v1beta1.IBaseAccount|null); - - /** InterchainAccount account_owner. */ - public account_owner: string; - - /** - * Encodes the specified InterchainAccount message. Does not implicitly {@link ibc.applications.interchain_accounts.v1.InterchainAccount.verify|verify} messages. - * @param message InterchainAccount message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: ibc.applications.interchain_accounts.v1.IInterchainAccount, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified InterchainAccount message, length delimited. Does not implicitly {@link ibc.applications.interchain_accounts.v1.InterchainAccount.verify|verify} messages. - * @param message InterchainAccount message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: ibc.applications.interchain_accounts.v1.IInterchainAccount, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an InterchainAccount message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns InterchainAccount - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.applications.interchain_accounts.v1.InterchainAccount; - - /** - * Decodes an InterchainAccount message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns InterchainAccount - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.applications.interchain_accounts.v1.InterchainAccount; - - /** - * Verifies an InterchainAccount message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an InterchainAccount message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns InterchainAccount - */ - public static fromObject(object: { [k: string]: any }): ibc.applications.interchain_accounts.v1.InterchainAccount; - - /** - * Creates a plain object from an InterchainAccount message. Also converts values to other types if specified. - * @param message InterchainAccount - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: ibc.applications.interchain_accounts.v1.InterchainAccount, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this InterchainAccount to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - /** Type enum. */ enum Type { TYPE_UNSPECIFIED = 0, @@ -11276,16438 +14517,15890 @@ export namespace ibc { } /** Represents an InterchainAccountPacketData. */ - class InterchainAccountPacketData implements IInterchainAccountPacketData { - - /** - * Constructs a new InterchainAccountPacketData. - * @param [properties] Properties to set - */ - constructor(properties?: ibc.applications.interchain_accounts.v1.IInterchainAccountPacketData); - - /** InterchainAccountPacketData type. */ - public type: ibc.applications.interchain_accounts.v1.Type; - - /** InterchainAccountPacketData data. */ - public data: Uint8Array; - - /** InterchainAccountPacketData memo. */ - public memo: string; - - /** - * Encodes the specified InterchainAccountPacketData message. Does not implicitly {@link ibc.applications.interchain_accounts.v1.InterchainAccountPacketData.verify|verify} messages. - * @param message InterchainAccountPacketData message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: ibc.applications.interchain_accounts.v1.IInterchainAccountPacketData, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified InterchainAccountPacketData message, length delimited. Does not implicitly {@link ibc.applications.interchain_accounts.v1.InterchainAccountPacketData.verify|verify} messages. - * @param message InterchainAccountPacketData message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: ibc.applications.interchain_accounts.v1.IInterchainAccountPacketData, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an InterchainAccountPacketData message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns InterchainAccountPacketData - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.applications.interchain_accounts.v1.InterchainAccountPacketData; - - /** - * Decodes an InterchainAccountPacketData message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns InterchainAccountPacketData - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.applications.interchain_accounts.v1.InterchainAccountPacketData; - - /** - * Verifies an InterchainAccountPacketData message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an InterchainAccountPacketData message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns InterchainAccountPacketData - */ - public static fromObject(object: { [k: string]: any }): ibc.applications.interchain_accounts.v1.InterchainAccountPacketData; - - /** - * Creates a plain object from an InterchainAccountPacketData message. Also converts values to other types if specified. - * @param message InterchainAccountPacketData - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: ibc.applications.interchain_accounts.v1.InterchainAccountPacketData, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this InterchainAccountPacketData to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a CosmosTx. */ - interface ICosmosTx { - - /** CosmosTx messages */ - messages?: (google.protobuf.IAny[]|null); - } - - /** Represents a CosmosTx. */ - class CosmosTx implements ICosmosTx { - - /** - * Constructs a new CosmosTx. - * @param [properties] Properties to set - */ - constructor(properties?: ibc.applications.interchain_accounts.v1.ICosmosTx); - - /** CosmosTx messages. */ - public messages: google.protobuf.IAny[]; - - /** - * Encodes the specified CosmosTx message. Does not implicitly {@link ibc.applications.interchain_accounts.v1.CosmosTx.verify|verify} messages. - * @param message CosmosTx message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: ibc.applications.interchain_accounts.v1.ICosmosTx, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified CosmosTx message, length delimited. Does not implicitly {@link ibc.applications.interchain_accounts.v1.CosmosTx.verify|verify} messages. - * @param message CosmosTx message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: ibc.applications.interchain_accounts.v1.ICosmosTx, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a CosmosTx message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CosmosTx - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.applications.interchain_accounts.v1.CosmosTx; - - /** - * Decodes a CosmosTx message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CosmosTx - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.applications.interchain_accounts.v1.CosmosTx; - - /** - * Verifies a CosmosTx message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a CosmosTx message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CosmosTx - */ - public static fromObject(object: { [k: string]: any }): ibc.applications.interchain_accounts.v1.CosmosTx; - - /** - * Creates a plain object from a CosmosTx message. Also converts values to other types if specified. - * @param message CosmosTx - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: ibc.applications.interchain_accounts.v1.CosmosTx, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this CosmosTx to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a Metadata. */ - interface IMetadata { - - /** Metadata version */ - version?: (string|null); - - /** Metadata controller_connection_id */ - controller_connection_id?: (string|null); - - /** Metadata host_connection_id */ - host_connection_id?: (string|null); - - /** Metadata address */ - address?: (string|null); - - /** Metadata encoding */ - encoding?: (string|null); - - /** Metadata tx_type */ - tx_type?: (string|null); - } - - /** Represents a Metadata. */ - class Metadata implements IMetadata { - - /** - * Constructs a new Metadata. - * @param [properties] Properties to set - */ - constructor(properties?: ibc.applications.interchain_accounts.v1.IMetadata); - - /** Metadata version. */ - public version: string; - - /** Metadata controller_connection_id. */ - public controller_connection_id: string; - - /** Metadata host_connection_id. */ - public host_connection_id: string; - - /** Metadata address. */ - public address: string; - - /** Metadata encoding. */ - public encoding: string; - - /** Metadata tx_type. */ - public tx_type: string; - - /** - * Encodes the specified Metadata message. Does not implicitly {@link ibc.applications.interchain_accounts.v1.Metadata.verify|verify} messages. - * @param message Metadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: ibc.applications.interchain_accounts.v1.IMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified Metadata message, length delimited. Does not implicitly {@link ibc.applications.interchain_accounts.v1.Metadata.verify|verify} messages. - * @param message Metadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: ibc.applications.interchain_accounts.v1.IMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Metadata message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Metadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.applications.interchain_accounts.v1.Metadata; - - /** - * Decodes a Metadata message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Metadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.applications.interchain_accounts.v1.Metadata; - - /** - * Verifies a Metadata message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a Metadata message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Metadata - */ - public static fromObject(object: { [k: string]: any }): ibc.applications.interchain_accounts.v1.Metadata; - - /** - * Creates a plain object from a Metadata message. Also converts values to other types if specified. - * @param message Metadata - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: ibc.applications.interchain_accounts.v1.Metadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Metadata to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a GenesisState. */ - interface IGenesisState { - - /** GenesisState controller_genesis_state */ - controller_genesis_state?: (ibc.applications.interchain_accounts.v1.IControllerGenesisState|null); - - /** GenesisState host_genesis_state */ - host_genesis_state?: (ibc.applications.interchain_accounts.v1.IHostGenesisState|null); - } - - /** Represents a GenesisState. */ - class GenesisState implements IGenesisState { - - /** - * Constructs a new GenesisState. - * @param [properties] Properties to set - */ - constructor(properties?: ibc.applications.interchain_accounts.v1.IGenesisState); - - /** GenesisState controller_genesis_state. */ - public controller_genesis_state?: (ibc.applications.interchain_accounts.v1.IControllerGenesisState|null); - - /** GenesisState host_genesis_state. */ - public host_genesis_state?: (ibc.applications.interchain_accounts.v1.IHostGenesisState|null); - - /** - * Encodes the specified GenesisState message. Does not implicitly {@link ibc.applications.interchain_accounts.v1.GenesisState.verify|verify} messages. - * @param message GenesisState message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: ibc.applications.interchain_accounts.v1.IGenesisState, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GenesisState message, length delimited. Does not implicitly {@link ibc.applications.interchain_accounts.v1.GenesisState.verify|verify} messages. - * @param message GenesisState message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: ibc.applications.interchain_accounts.v1.IGenesisState, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GenesisState message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GenesisState - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.applications.interchain_accounts.v1.GenesisState; - - /** - * Decodes a GenesisState message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GenesisState - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.applications.interchain_accounts.v1.GenesisState; - - /** - * Verifies a GenesisState message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GenesisState message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GenesisState - */ - public static fromObject(object: { [k: string]: any }): ibc.applications.interchain_accounts.v1.GenesisState; - - /** - * Creates a plain object from a GenesisState message. Also converts values to other types if specified. - * @param message GenesisState - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: ibc.applications.interchain_accounts.v1.GenesisState, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GenesisState to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a ControllerGenesisState. */ - interface IControllerGenesisState { - - /** ControllerGenesisState active_channels */ - active_channels?: (ibc.applications.interchain_accounts.v1.IActiveChannel[]|null); - - /** ControllerGenesisState interchain_accounts */ - interchain_accounts?: (ibc.applications.interchain_accounts.v1.IRegisteredInterchainAccount[]|null); - - /** ControllerGenesisState ports */ - ports?: (string[]|null); - - /** ControllerGenesisState params */ - params?: (ibc.applications.interchain_accounts.controller.v1.IParams|null); - } - - /** Represents a ControllerGenesisState. */ - class ControllerGenesisState implements IControllerGenesisState { + class InterchainAccountPacketData implements IInterchainAccountPacketData { /** - * Constructs a new ControllerGenesisState. + * Constructs a new InterchainAccountPacketData. * @param [properties] Properties to set */ - constructor(properties?: ibc.applications.interchain_accounts.v1.IControllerGenesisState); - - /** ControllerGenesisState active_channels. */ - public active_channels: ibc.applications.interchain_accounts.v1.IActiveChannel[]; + constructor(properties?: ibc.applications.interchain_accounts.v1.IInterchainAccountPacketData); - /** ControllerGenesisState interchain_accounts. */ - public interchain_accounts: ibc.applications.interchain_accounts.v1.IRegisteredInterchainAccount[]; + /** InterchainAccountPacketData type. */ + public type: ibc.applications.interchain_accounts.v1.Type; - /** ControllerGenesisState ports. */ - public ports: string[]; + /** InterchainAccountPacketData data. */ + public data: Uint8Array; - /** ControllerGenesisState params. */ - public params?: (ibc.applications.interchain_accounts.controller.v1.IParams|null); + /** InterchainAccountPacketData memo. */ + public memo: string; /** - * Encodes the specified ControllerGenesisState message. Does not implicitly {@link ibc.applications.interchain_accounts.v1.ControllerGenesisState.verify|verify} messages. - * @param message ControllerGenesisState message or plain object to encode + * Encodes the specified InterchainAccountPacketData message. Does not implicitly {@link ibc.applications.interchain_accounts.v1.InterchainAccountPacketData.verify|verify} messages. + * @param message InterchainAccountPacketData message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.applications.interchain_accounts.v1.IControllerGenesisState, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.applications.interchain_accounts.v1.IInterchainAccountPacketData, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ControllerGenesisState message, length delimited. Does not implicitly {@link ibc.applications.interchain_accounts.v1.ControllerGenesisState.verify|verify} messages. - * @param message ControllerGenesisState message or plain object to encode + * Encodes the specified InterchainAccountPacketData message, length delimited. Does not implicitly {@link ibc.applications.interchain_accounts.v1.InterchainAccountPacketData.verify|verify} messages. + * @param message InterchainAccountPacketData message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.applications.interchain_accounts.v1.IControllerGenesisState, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.applications.interchain_accounts.v1.IInterchainAccountPacketData, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ControllerGenesisState message from the specified reader or buffer. + * Decodes an InterchainAccountPacketData message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ControllerGenesisState + * @returns InterchainAccountPacketData * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.applications.interchain_accounts.v1.ControllerGenesisState; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.applications.interchain_accounts.v1.InterchainAccountPacketData; /** - * Decodes a ControllerGenesisState message from the specified reader or buffer, length delimited. + * Decodes an InterchainAccountPacketData message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ControllerGenesisState + * @returns InterchainAccountPacketData * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.applications.interchain_accounts.v1.ControllerGenesisState; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.applications.interchain_accounts.v1.InterchainAccountPacketData; /** - * Verifies a ControllerGenesisState message. + * Verifies an InterchainAccountPacketData message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ControllerGenesisState message from a plain object. Also converts values to their respective internal types. + * Creates an InterchainAccountPacketData message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ControllerGenesisState + * @returns InterchainAccountPacketData */ - public static fromObject(object: { [k: string]: any }): ibc.applications.interchain_accounts.v1.ControllerGenesisState; + public static fromObject(object: { [k: string]: any }): ibc.applications.interchain_accounts.v1.InterchainAccountPacketData; /** - * Creates a plain object from a ControllerGenesisState message. Also converts values to other types if specified. - * @param message ControllerGenesisState + * Creates a plain object from an InterchainAccountPacketData message. Also converts values to other types if specified. + * @param message InterchainAccountPacketData * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.applications.interchain_accounts.v1.ControllerGenesisState, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.applications.interchain_accounts.v1.InterchainAccountPacketData, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ControllerGenesisState to JSON. + * Converts this InterchainAccountPacketData to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a HostGenesisState. */ - interface IHostGenesisState { - - /** HostGenesisState active_channels */ - active_channels?: (ibc.applications.interchain_accounts.v1.IActiveChannel[]|null); - - /** HostGenesisState interchain_accounts */ - interchain_accounts?: (ibc.applications.interchain_accounts.v1.IRegisteredInterchainAccount[]|null); - - /** HostGenesisState port */ - port?: (string|null); + /** Properties of a CosmosTx. */ + interface ICosmosTx { - /** HostGenesisState params */ - params?: (ibc.applications.interchain_accounts.host.v1.IParams|null); + /** CosmosTx messages */ + messages?: (google.protobuf.IAny[]|null); } - /** Represents a HostGenesisState. */ - class HostGenesisState implements IHostGenesisState { + /** Represents a CosmosTx. */ + class CosmosTx implements ICosmosTx { /** - * Constructs a new HostGenesisState. + * Constructs a new CosmosTx. * @param [properties] Properties to set */ - constructor(properties?: ibc.applications.interchain_accounts.v1.IHostGenesisState); - - /** HostGenesisState active_channels. */ - public active_channels: ibc.applications.interchain_accounts.v1.IActiveChannel[]; - - /** HostGenesisState interchain_accounts. */ - public interchain_accounts: ibc.applications.interchain_accounts.v1.IRegisteredInterchainAccount[]; - - /** HostGenesisState port. */ - public port: string; + constructor(properties?: ibc.applications.interchain_accounts.v1.ICosmosTx); - /** HostGenesisState params. */ - public params?: (ibc.applications.interchain_accounts.host.v1.IParams|null); + /** CosmosTx messages. */ + public messages: google.protobuf.IAny[]; /** - * Encodes the specified HostGenesisState message. Does not implicitly {@link ibc.applications.interchain_accounts.v1.HostGenesisState.verify|verify} messages. - * @param message HostGenesisState message or plain object to encode + * Encodes the specified CosmosTx message. Does not implicitly {@link ibc.applications.interchain_accounts.v1.CosmosTx.verify|verify} messages. + * @param message CosmosTx message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.applications.interchain_accounts.v1.IHostGenesisState, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.applications.interchain_accounts.v1.ICosmosTx, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified HostGenesisState message, length delimited. Does not implicitly {@link ibc.applications.interchain_accounts.v1.HostGenesisState.verify|verify} messages. - * @param message HostGenesisState message or plain object to encode + * Encodes the specified CosmosTx message, length delimited. Does not implicitly {@link ibc.applications.interchain_accounts.v1.CosmosTx.verify|verify} messages. + * @param message CosmosTx message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.applications.interchain_accounts.v1.IHostGenesisState, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.applications.interchain_accounts.v1.ICosmosTx, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a HostGenesisState message from the specified reader or buffer. + * Decodes a CosmosTx message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns HostGenesisState + * @returns CosmosTx * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.applications.interchain_accounts.v1.HostGenesisState; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.applications.interchain_accounts.v1.CosmosTx; /** - * Decodes a HostGenesisState message from the specified reader or buffer, length delimited. + * Decodes a CosmosTx message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns HostGenesisState + * @returns CosmosTx * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.applications.interchain_accounts.v1.HostGenesisState; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.applications.interchain_accounts.v1.CosmosTx; /** - * Verifies a HostGenesisState message. + * Verifies a CosmosTx message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a HostGenesisState message from a plain object. Also converts values to their respective internal types. + * Creates a CosmosTx message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns HostGenesisState + * @returns CosmosTx */ - public static fromObject(object: { [k: string]: any }): ibc.applications.interchain_accounts.v1.HostGenesisState; + public static fromObject(object: { [k: string]: any }): ibc.applications.interchain_accounts.v1.CosmosTx; /** - * Creates a plain object from a HostGenesisState message. Also converts values to other types if specified. - * @param message HostGenesisState + * Creates a plain object from a CosmosTx message. Also converts values to other types if specified. + * @param message CosmosTx * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.applications.interchain_accounts.v1.HostGenesisState, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.applications.interchain_accounts.v1.CosmosTx, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this HostGenesisState to JSON. + * Converts this CosmosTx to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an ActiveChannel. */ - interface IActiveChannel { - - /** ActiveChannel connection_id */ - connection_id?: (string|null); + /** Properties of an InterchainAccount. */ + interface IInterchainAccount { - /** ActiveChannel port_id */ - port_id?: (string|null); + /** InterchainAccount base_account */ + base_account?: (cosmos.auth.v1beta1.IBaseAccount|null); - /** ActiveChannel channel_id */ - channel_id?: (string|null); + /** InterchainAccount account_owner */ + account_owner?: (string|null); } - /** Represents an ActiveChannel. */ - class ActiveChannel implements IActiveChannel { + /** Represents an InterchainAccount. */ + class InterchainAccount implements IInterchainAccount { /** - * Constructs a new ActiveChannel. + * Constructs a new InterchainAccount. * @param [properties] Properties to set */ - constructor(properties?: ibc.applications.interchain_accounts.v1.IActiveChannel); - - /** ActiveChannel connection_id. */ - public connection_id: string; + constructor(properties?: ibc.applications.interchain_accounts.v1.IInterchainAccount); - /** ActiveChannel port_id. */ - public port_id: string; + /** InterchainAccount base_account. */ + public base_account?: (cosmos.auth.v1beta1.IBaseAccount|null); - /** ActiveChannel channel_id. */ - public channel_id: string; + /** InterchainAccount account_owner. */ + public account_owner: string; /** - * Encodes the specified ActiveChannel message. Does not implicitly {@link ibc.applications.interchain_accounts.v1.ActiveChannel.verify|verify} messages. - * @param message ActiveChannel message or plain object to encode + * Encodes the specified InterchainAccount message. Does not implicitly {@link ibc.applications.interchain_accounts.v1.InterchainAccount.verify|verify} messages. + * @param message InterchainAccount message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.applications.interchain_accounts.v1.IActiveChannel, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.applications.interchain_accounts.v1.IInterchainAccount, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ActiveChannel message, length delimited. Does not implicitly {@link ibc.applications.interchain_accounts.v1.ActiveChannel.verify|verify} messages. - * @param message ActiveChannel message or plain object to encode + * Encodes the specified InterchainAccount message, length delimited. Does not implicitly {@link ibc.applications.interchain_accounts.v1.InterchainAccount.verify|verify} messages. + * @param message InterchainAccount message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.applications.interchain_accounts.v1.IActiveChannel, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.applications.interchain_accounts.v1.IInterchainAccount, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ActiveChannel message from the specified reader or buffer. + * Decodes an InterchainAccount message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ActiveChannel + * @returns InterchainAccount * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.applications.interchain_accounts.v1.ActiveChannel; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.applications.interchain_accounts.v1.InterchainAccount; /** - * Decodes an ActiveChannel message from the specified reader or buffer, length delimited. + * Decodes an InterchainAccount message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ActiveChannel + * @returns InterchainAccount * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.applications.interchain_accounts.v1.ActiveChannel; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.applications.interchain_accounts.v1.InterchainAccount; /** - * Verifies an ActiveChannel message. + * Verifies an InterchainAccount message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an ActiveChannel message from a plain object. Also converts values to their respective internal types. + * Creates an InterchainAccount message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ActiveChannel + * @returns InterchainAccount */ - public static fromObject(object: { [k: string]: any }): ibc.applications.interchain_accounts.v1.ActiveChannel; + public static fromObject(object: { [k: string]: any }): ibc.applications.interchain_accounts.v1.InterchainAccount; /** - * Creates a plain object from an ActiveChannel message. Also converts values to other types if specified. - * @param message ActiveChannel + * Creates a plain object from an InterchainAccount message. Also converts values to other types if specified. + * @param message InterchainAccount * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.applications.interchain_accounts.v1.ActiveChannel, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.applications.interchain_accounts.v1.InterchainAccount, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ActiveChannel to JSON. + * Converts this InterchainAccount to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a RegisteredInterchainAccount. */ - interface IRegisteredInterchainAccount { + /** Properties of a Metadata. */ + interface IMetadata { - /** RegisteredInterchainAccount connection_id */ - connection_id?: (string|null); + /** Metadata version */ + version?: (string|null); - /** RegisteredInterchainAccount port_id */ - port_id?: (string|null); + /** Metadata controller_connection_id */ + controller_connection_id?: (string|null); + + /** Metadata host_connection_id */ + host_connection_id?: (string|null); + + /** Metadata address */ + address?: (string|null); + + /** Metadata encoding */ + encoding?: (string|null); - /** RegisteredInterchainAccount account_address */ - account_address?: (string|null); + /** Metadata tx_type */ + tx_type?: (string|null); } - /** Represents a RegisteredInterchainAccount. */ - class RegisteredInterchainAccount implements IRegisteredInterchainAccount { + /** Represents a Metadata. */ + class Metadata implements IMetadata { /** - * Constructs a new RegisteredInterchainAccount. + * Constructs a new Metadata. * @param [properties] Properties to set */ - constructor(properties?: ibc.applications.interchain_accounts.v1.IRegisteredInterchainAccount); + constructor(properties?: ibc.applications.interchain_accounts.v1.IMetadata); - /** RegisteredInterchainAccount connection_id. */ - public connection_id: string; + /** Metadata version. */ + public version: string; - /** RegisteredInterchainAccount port_id. */ - public port_id: string; + /** Metadata controller_connection_id. */ + public controller_connection_id: string; + + /** Metadata host_connection_id. */ + public host_connection_id: string; + + /** Metadata address. */ + public address: string; + + /** Metadata encoding. */ + public encoding: string; - /** RegisteredInterchainAccount account_address. */ - public account_address: string; + /** Metadata tx_type. */ + public tx_type: string; /** - * Encodes the specified RegisteredInterchainAccount message. Does not implicitly {@link ibc.applications.interchain_accounts.v1.RegisteredInterchainAccount.verify|verify} messages. - * @param message RegisteredInterchainAccount message or plain object to encode + * Encodes the specified Metadata message. Does not implicitly {@link ibc.applications.interchain_accounts.v1.Metadata.verify|verify} messages. + * @param message Metadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.applications.interchain_accounts.v1.IRegisteredInterchainAccount, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.applications.interchain_accounts.v1.IMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified RegisteredInterchainAccount message, length delimited. Does not implicitly {@link ibc.applications.interchain_accounts.v1.RegisteredInterchainAccount.verify|verify} messages. - * @param message RegisteredInterchainAccount message or plain object to encode + * Encodes the specified Metadata message, length delimited. Does not implicitly {@link ibc.applications.interchain_accounts.v1.Metadata.verify|verify} messages. + * @param message Metadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.applications.interchain_accounts.v1.IRegisteredInterchainAccount, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.applications.interchain_accounts.v1.IMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RegisteredInterchainAccount message from the specified reader or buffer. + * Decodes a Metadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RegisteredInterchainAccount + * @returns Metadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.applications.interchain_accounts.v1.RegisteredInterchainAccount; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.applications.interchain_accounts.v1.Metadata; /** - * Decodes a RegisteredInterchainAccount message from the specified reader or buffer, length delimited. + * Decodes a Metadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RegisteredInterchainAccount + * @returns Metadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.applications.interchain_accounts.v1.RegisteredInterchainAccount; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.applications.interchain_accounts.v1.Metadata; /** - * Verifies a RegisteredInterchainAccount message. + * Verifies a Metadata message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a RegisteredInterchainAccount message from a plain object. Also converts values to their respective internal types. + * Creates a Metadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RegisteredInterchainAccount + * @returns Metadata */ - public static fromObject(object: { [k: string]: any }): ibc.applications.interchain_accounts.v1.RegisteredInterchainAccount; + public static fromObject(object: { [k: string]: any }): ibc.applications.interchain_accounts.v1.Metadata; /** - * Creates a plain object from a RegisteredInterchainAccount message. Also converts values to other types if specified. - * @param message RegisteredInterchainAccount + * Creates a plain object from a Metadata message. Also converts values to other types if specified. + * @param message Metadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.applications.interchain_accounts.v1.RegisteredInterchainAccount, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.applications.interchain_accounts.v1.Metadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RegisteredInterchainAccount to JSON. + * Converts this Metadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } } - } - /** Namespace transfer. */ - namespace transfer { + /** Namespace genesis. */ + namespace genesis { - /** Namespace v1. */ - namespace v1 { + /** Namespace v1. */ + namespace v1 { - /** Represents a Msg */ - class Msg extends $protobuf.rpc.Service { + /** Properties of a GenesisState. */ + interface IGenesisState { - /** - * Constructs a new Msg service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + /** GenesisState controller_genesis_state */ + controller_genesis_state?: (ibc.applications.interchain_accounts.genesis.v1.IControllerGenesisState|null); - /** - * Calls Transfer. - * @param request MsgTransfer message or plain object - * @param callback Node-style callback called with the error, if any, and MsgTransferResponse - */ - public transfer(request: ibc.applications.transfer.v1.IMsgTransfer, callback: ibc.applications.transfer.v1.Msg.TransferCallback): void; + /** GenesisState host_genesis_state */ + host_genesis_state?: (ibc.applications.interchain_accounts.genesis.v1.IHostGenesisState|null); + } - /** - * Calls Transfer. - * @param request MsgTransfer message or plain object - * @returns Promise - */ - public transfer(request: ibc.applications.transfer.v1.IMsgTransfer): Promise; - } + /** Represents a GenesisState. */ + class GenesisState implements IGenesisState { - namespace Msg { + /** + * Constructs a new GenesisState. + * @param [properties] Properties to set + */ + constructor(properties?: ibc.applications.interchain_accounts.genesis.v1.IGenesisState); - /** - * Callback as used by {@link ibc.applications.transfer.v1.Msg#transfer}. - * @param error Error, if any - * @param [response] MsgTransferResponse - */ - type TransferCallback = (error: (Error|null), response?: ibc.applications.transfer.v1.MsgTransferResponse) => void; - } + /** GenesisState controller_genesis_state. */ + public controller_genesis_state?: (ibc.applications.interchain_accounts.genesis.v1.IControllerGenesisState|null); - /** Properties of a MsgTransfer. */ - interface IMsgTransfer { + /** GenesisState host_genesis_state. */ + public host_genesis_state?: (ibc.applications.interchain_accounts.genesis.v1.IHostGenesisState|null); - /** MsgTransfer source_port */ - source_port?: (string|null); + /** + * Encodes the specified GenesisState message. Does not implicitly {@link ibc.applications.interchain_accounts.genesis.v1.GenesisState.verify|verify} messages. + * @param message GenesisState message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: ibc.applications.interchain_accounts.genesis.v1.IGenesisState, writer?: $protobuf.Writer): $protobuf.Writer; - /** MsgTransfer source_channel */ - source_channel?: (string|null); + /** + * Encodes the specified GenesisState message, length delimited. Does not implicitly {@link ibc.applications.interchain_accounts.genesis.v1.GenesisState.verify|verify} messages. + * @param message GenesisState message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: ibc.applications.interchain_accounts.genesis.v1.IGenesisState, writer?: $protobuf.Writer): $protobuf.Writer; - /** MsgTransfer token */ - token?: (cosmos.base.v1beta1.ICoin|null); + /** + * Decodes a GenesisState message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GenesisState + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.applications.interchain_accounts.genesis.v1.GenesisState; - /** MsgTransfer sender */ - sender?: (string|null); + /** + * Decodes a GenesisState message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GenesisState + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.applications.interchain_accounts.genesis.v1.GenesisState; - /** MsgTransfer receiver */ - receiver?: (string|null); + /** + * Verifies a GenesisState message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** MsgTransfer timeout_height */ - timeout_height?: (ibc.core.client.v1.IHeight|null); + /** + * Creates a GenesisState message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GenesisState + */ + public static fromObject(object: { [k: string]: any }): ibc.applications.interchain_accounts.genesis.v1.GenesisState; - /** MsgTransfer timeout_timestamp */ - timeout_timestamp?: (Long|null); + /** + * Creates a plain object from a GenesisState message. Also converts values to other types if specified. + * @param message GenesisState + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: ibc.applications.interchain_accounts.genesis.v1.GenesisState, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** MsgTransfer memo */ - memo?: (string|null); - } + /** + * Converts this GenesisState to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** Represents a MsgTransfer. */ - class MsgTransfer implements IMsgTransfer { + /** Properties of a ControllerGenesisState. */ + interface IControllerGenesisState { - /** - * Constructs a new MsgTransfer. - * @param [properties] Properties to set - */ - constructor(properties?: ibc.applications.transfer.v1.IMsgTransfer); + /** ControllerGenesisState active_channels */ + active_channels?: (ibc.applications.interchain_accounts.genesis.v1.IActiveChannel[]|null); - /** MsgTransfer source_port. */ - public source_port: string; + /** ControllerGenesisState interchain_accounts */ + interchain_accounts?: (ibc.applications.interchain_accounts.genesis.v1.IRegisteredInterchainAccount[]|null); - /** MsgTransfer source_channel. */ - public source_channel: string; + /** ControllerGenesisState ports */ + ports?: (string[]|null); - /** MsgTransfer token. */ - public token?: (cosmos.base.v1beta1.ICoin|null); + /** ControllerGenesisState params */ + params?: (ibc.applications.interchain_accounts.controller.v1.IParams|null); + } - /** MsgTransfer sender. */ - public sender: string; + /** Represents a ControllerGenesisState. */ + class ControllerGenesisState implements IControllerGenesisState { - /** MsgTransfer receiver. */ - public receiver: string; + /** + * Constructs a new ControllerGenesisState. + * @param [properties] Properties to set + */ + constructor(properties?: ibc.applications.interchain_accounts.genesis.v1.IControllerGenesisState); - /** MsgTransfer timeout_height. */ - public timeout_height?: (ibc.core.client.v1.IHeight|null); + /** ControllerGenesisState active_channels. */ + public active_channels: ibc.applications.interchain_accounts.genesis.v1.IActiveChannel[]; - /** MsgTransfer timeout_timestamp. */ - public timeout_timestamp: Long; + /** ControllerGenesisState interchain_accounts. */ + public interchain_accounts: ibc.applications.interchain_accounts.genesis.v1.IRegisteredInterchainAccount[]; - /** MsgTransfer memo. */ - public memo: string; + /** ControllerGenesisState ports. */ + public ports: string[]; - /** - * Encodes the specified MsgTransfer message. Does not implicitly {@link ibc.applications.transfer.v1.MsgTransfer.verify|verify} messages. - * @param message MsgTransfer message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: ibc.applications.transfer.v1.IMsgTransfer, writer?: $protobuf.Writer): $protobuf.Writer; + /** ControllerGenesisState params. */ + public params?: (ibc.applications.interchain_accounts.controller.v1.IParams|null); - /** - * Encodes the specified MsgTransfer message, length delimited. Does not implicitly {@link ibc.applications.transfer.v1.MsgTransfer.verify|verify} messages. - * @param message MsgTransfer message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: ibc.applications.transfer.v1.IMsgTransfer, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified ControllerGenesisState message. Does not implicitly {@link ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState.verify|verify} messages. + * @param message ControllerGenesisState message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: ibc.applications.interchain_accounts.genesis.v1.IControllerGenesisState, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a MsgTransfer message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MsgTransfer - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.applications.transfer.v1.MsgTransfer; + /** + * Encodes the specified ControllerGenesisState message, length delimited. Does not implicitly {@link ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState.verify|verify} messages. + * @param message ControllerGenesisState message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: ibc.applications.interchain_accounts.genesis.v1.IControllerGenesisState, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a MsgTransfer message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MsgTransfer - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.applications.transfer.v1.MsgTransfer; + /** + * Decodes a ControllerGenesisState message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ControllerGenesisState + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState; - /** - * Verifies a MsgTransfer message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Decodes a ControllerGenesisState message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ControllerGenesisState + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState; - /** - * Creates a MsgTransfer message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MsgTransfer - */ - public static fromObject(object: { [k: string]: any }): ibc.applications.transfer.v1.MsgTransfer; + /** + * Verifies a ControllerGenesisState message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Creates a plain object from a MsgTransfer message. Also converts values to other types if specified. - * @param message MsgTransfer - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: ibc.applications.transfer.v1.MsgTransfer, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a ControllerGenesisState message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ControllerGenesisState + */ + public static fromObject(object: { [k: string]: any }): ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState; - /** - * Converts this MsgTransfer to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * Creates a plain object from a ControllerGenesisState message. Also converts values to other types if specified. + * @param message ControllerGenesisState + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Properties of a MsgTransferResponse. */ - interface IMsgTransferResponse { + /** + * Converts this ControllerGenesisState to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** MsgTransferResponse sequence */ - sequence?: (Long|null); - } + /** Properties of a HostGenesisState. */ + interface IHostGenesisState { - /** Represents a MsgTransferResponse. */ - class MsgTransferResponse implements IMsgTransferResponse { + /** HostGenesisState active_channels */ + active_channels?: (ibc.applications.interchain_accounts.genesis.v1.IActiveChannel[]|null); - /** - * Constructs a new MsgTransferResponse. - * @param [properties] Properties to set - */ - constructor(properties?: ibc.applications.transfer.v1.IMsgTransferResponse); + /** HostGenesisState interchain_accounts */ + interchain_accounts?: (ibc.applications.interchain_accounts.genesis.v1.IRegisteredInterchainAccount[]|null); - /** MsgTransferResponse sequence. */ - public sequence: Long; + /** HostGenesisState port */ + port?: (string|null); - /** - * Encodes the specified MsgTransferResponse message. Does not implicitly {@link ibc.applications.transfer.v1.MsgTransferResponse.verify|verify} messages. - * @param message MsgTransferResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: ibc.applications.transfer.v1.IMsgTransferResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** HostGenesisState params */ + params?: (ibc.applications.interchain_accounts.host.v1.IParams|null); + } - /** - * Encodes the specified MsgTransferResponse message, length delimited. Does not implicitly {@link ibc.applications.transfer.v1.MsgTransferResponse.verify|verify} messages. - * @param message MsgTransferResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: ibc.applications.transfer.v1.IMsgTransferResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** Represents a HostGenesisState. */ + class HostGenesisState implements IHostGenesisState { - /** - * Decodes a MsgTransferResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MsgTransferResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.applications.transfer.v1.MsgTransferResponse; + /** + * Constructs a new HostGenesisState. + * @param [properties] Properties to set + */ + constructor(properties?: ibc.applications.interchain_accounts.genesis.v1.IHostGenesisState); - /** - * Decodes a MsgTransferResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MsgTransferResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.applications.transfer.v1.MsgTransferResponse; + /** HostGenesisState active_channels. */ + public active_channels: ibc.applications.interchain_accounts.genesis.v1.IActiveChannel[]; + + /** HostGenesisState interchain_accounts. */ + public interchain_accounts: ibc.applications.interchain_accounts.genesis.v1.IRegisteredInterchainAccount[]; + + /** HostGenesisState port. */ + public port: string; + + /** HostGenesisState params. */ + public params?: (ibc.applications.interchain_accounts.host.v1.IParams|null); + + /** + * Encodes the specified HostGenesisState message. Does not implicitly {@link ibc.applications.interchain_accounts.genesis.v1.HostGenesisState.verify|verify} messages. + * @param message HostGenesisState message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: ibc.applications.interchain_accounts.genesis.v1.IHostGenesisState, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified HostGenesisState message, length delimited. Does not implicitly {@link ibc.applications.interchain_accounts.genesis.v1.HostGenesisState.verify|verify} messages. + * @param message HostGenesisState message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: ibc.applications.interchain_accounts.genesis.v1.IHostGenesisState, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a HostGenesisState message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns HostGenesisState + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.applications.interchain_accounts.genesis.v1.HostGenesisState; + + /** + * Decodes a HostGenesisState message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns HostGenesisState + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.applications.interchain_accounts.genesis.v1.HostGenesisState; + + /** + * Verifies a HostGenesisState message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a HostGenesisState message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns HostGenesisState + */ + public static fromObject(object: { [k: string]: any }): ibc.applications.interchain_accounts.genesis.v1.HostGenesisState; + + /** + * Creates a plain object from a HostGenesisState message. Also converts values to other types if specified. + * @param message HostGenesisState + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: ibc.applications.interchain_accounts.genesis.v1.HostGenesisState, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this HostGenesisState to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an ActiveChannel. */ + interface IActiveChannel { + + /** ActiveChannel connection_id */ + connection_id?: (string|null); + + /** ActiveChannel port_id */ + port_id?: (string|null); + + /** ActiveChannel channel_id */ + channel_id?: (string|null); + + /** ActiveChannel is_middleware_enabled */ + is_middleware_enabled?: (boolean|null); + } + + /** Represents an ActiveChannel. */ + class ActiveChannel implements IActiveChannel { + + /** + * Constructs a new ActiveChannel. + * @param [properties] Properties to set + */ + constructor(properties?: ibc.applications.interchain_accounts.genesis.v1.IActiveChannel); + + /** ActiveChannel connection_id. */ + public connection_id: string; + + /** ActiveChannel port_id. */ + public port_id: string; + + /** ActiveChannel channel_id. */ + public channel_id: string; + + /** ActiveChannel is_middleware_enabled. */ + public is_middleware_enabled: boolean; + + /** + * Encodes the specified ActiveChannel message. Does not implicitly {@link ibc.applications.interchain_accounts.genesis.v1.ActiveChannel.verify|verify} messages. + * @param message ActiveChannel message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: ibc.applications.interchain_accounts.genesis.v1.IActiveChannel, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ActiveChannel message, length delimited. Does not implicitly {@link ibc.applications.interchain_accounts.genesis.v1.ActiveChannel.verify|verify} messages. + * @param message ActiveChannel message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: ibc.applications.interchain_accounts.genesis.v1.IActiveChannel, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ActiveChannel message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ActiveChannel + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.applications.interchain_accounts.genesis.v1.ActiveChannel; - /** - * Verifies a MsgTransferResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Decodes an ActiveChannel message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ActiveChannel + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.applications.interchain_accounts.genesis.v1.ActiveChannel; - /** - * Creates a MsgTransferResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MsgTransferResponse - */ - public static fromObject(object: { [k: string]: any }): ibc.applications.transfer.v1.MsgTransferResponse; + /** + * Verifies an ActiveChannel message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Creates a plain object from a MsgTransferResponse message. Also converts values to other types if specified. - * @param message MsgTransferResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: ibc.applications.transfer.v1.MsgTransferResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates an ActiveChannel message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ActiveChannel + */ + public static fromObject(object: { [k: string]: any }): ibc.applications.interchain_accounts.genesis.v1.ActiveChannel; - /** - * Converts this MsgTransferResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * Creates a plain object from an ActiveChannel message. Also converts values to other types if specified. + * @param message ActiveChannel + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: ibc.applications.interchain_accounts.genesis.v1.ActiveChannel, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Properties of a DenomTrace. */ - interface IDenomTrace { + /** + * Converts this ActiveChannel to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** DenomTrace path */ - path?: (string|null); + /** Properties of a RegisteredInterchainAccount. */ + interface IRegisteredInterchainAccount { - /** DenomTrace base_denom */ - base_denom?: (string|null); - } + /** RegisteredInterchainAccount connection_id */ + connection_id?: (string|null); - /** Represents a DenomTrace. */ - class DenomTrace implements IDenomTrace { + /** RegisteredInterchainAccount port_id */ + port_id?: (string|null); - /** - * Constructs a new DenomTrace. - * @param [properties] Properties to set - */ - constructor(properties?: ibc.applications.transfer.v1.IDenomTrace); + /** RegisteredInterchainAccount account_address */ + account_address?: (string|null); + } - /** DenomTrace path. */ - public path: string; + /** Represents a RegisteredInterchainAccount. */ + class RegisteredInterchainAccount implements IRegisteredInterchainAccount { - /** DenomTrace base_denom. */ - public base_denom: string; + /** + * Constructs a new RegisteredInterchainAccount. + * @param [properties] Properties to set + */ + constructor(properties?: ibc.applications.interchain_accounts.genesis.v1.IRegisteredInterchainAccount); - /** - * Encodes the specified DenomTrace message. Does not implicitly {@link ibc.applications.transfer.v1.DenomTrace.verify|verify} messages. - * @param message DenomTrace message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: ibc.applications.transfer.v1.IDenomTrace, writer?: $protobuf.Writer): $protobuf.Writer; + /** RegisteredInterchainAccount connection_id. */ + public connection_id: string; - /** - * Encodes the specified DenomTrace message, length delimited. Does not implicitly {@link ibc.applications.transfer.v1.DenomTrace.verify|verify} messages. - * @param message DenomTrace message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: ibc.applications.transfer.v1.IDenomTrace, writer?: $protobuf.Writer): $protobuf.Writer; + /** RegisteredInterchainAccount port_id. */ + public port_id: string; - /** - * Decodes a DenomTrace message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DenomTrace - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.applications.transfer.v1.DenomTrace; + /** RegisteredInterchainAccount account_address. */ + public account_address: string; - /** - * Decodes a DenomTrace message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DenomTrace - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.applications.transfer.v1.DenomTrace; + /** + * Encodes the specified RegisteredInterchainAccount message. Does not implicitly {@link ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount.verify|verify} messages. + * @param message RegisteredInterchainAccount message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: ibc.applications.interchain_accounts.genesis.v1.IRegisteredInterchainAccount, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Verifies a DenomTrace message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Encodes the specified RegisteredInterchainAccount message, length delimited. Does not implicitly {@link ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount.verify|verify} messages. + * @param message RegisteredInterchainAccount message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: ibc.applications.interchain_accounts.genesis.v1.IRegisteredInterchainAccount, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a DenomTrace message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns DenomTrace - */ - public static fromObject(object: { [k: string]: any }): ibc.applications.transfer.v1.DenomTrace; + /** + * Decodes a RegisteredInterchainAccount message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RegisteredInterchainAccount + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount; - /** - * Creates a plain object from a DenomTrace message. Also converts values to other types if specified. - * @param message DenomTrace - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: ibc.applications.transfer.v1.DenomTrace, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Decodes a RegisteredInterchainAccount message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RegisteredInterchainAccount + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount; - /** - * Converts this DenomTrace to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * Verifies a RegisteredInterchainAccount message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** Properties of a Params. */ - interface IParams { + /** + * Creates a RegisteredInterchainAccount message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RegisteredInterchainAccount + */ + public static fromObject(object: { [k: string]: any }): ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount; - /** Params send_enabled */ - send_enabled?: (boolean|null); + /** + * Creates a plain object from a RegisteredInterchainAccount message. Also converts values to other types if specified. + * @param message RegisteredInterchainAccount + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Params receive_enabled */ - receive_enabled?: (boolean|null); + /** + * Converts this RegisteredInterchainAccount to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } } + } - /** Represents a Params. */ - class Params implements IParams { - - /** - * Constructs a new Params. - * @param [properties] Properties to set - */ - constructor(properties?: ibc.applications.transfer.v1.IParams); + /** Namespace host. */ + namespace host { - /** Params send_enabled. */ - public send_enabled: boolean; + /** Namespace v1. */ + namespace v1 { - /** Params receive_enabled. */ - public receive_enabled: boolean; + /** Properties of a Params. */ + interface IParams { - /** - * Encodes the specified Params message. Does not implicitly {@link ibc.applications.transfer.v1.Params.verify|verify} messages. - * @param message Params message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: ibc.applications.transfer.v1.IParams, writer?: $protobuf.Writer): $protobuf.Writer; + /** Params host_enabled */ + host_enabled?: (boolean|null); - /** - * Encodes the specified Params message, length delimited. Does not implicitly {@link ibc.applications.transfer.v1.Params.verify|verify} messages. - * @param message Params message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: ibc.applications.transfer.v1.IParams, writer?: $protobuf.Writer): $protobuf.Writer; + /** Params allow_messages */ + allow_messages?: (string[]|null); + } - /** - * Decodes a Params message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Params - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.applications.transfer.v1.Params; + /** Represents a Params. */ + class Params implements IParams { - /** - * Decodes a Params message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Params - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.applications.transfer.v1.Params; + /** + * Constructs a new Params. + * @param [properties] Properties to set + */ + constructor(properties?: ibc.applications.interchain_accounts.host.v1.IParams); - /** - * Verifies a Params message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** Params host_enabled. */ + public host_enabled: boolean; - /** - * Creates a Params message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Params - */ - public static fromObject(object: { [k: string]: any }): ibc.applications.transfer.v1.Params; + /** Params allow_messages. */ + public allow_messages: string[]; - /** - * Creates a plain object from a Params message. Also converts values to other types if specified. - * @param message Params - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: ibc.applications.transfer.v1.Params, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Encodes the specified Params message. Does not implicitly {@link ibc.applications.interchain_accounts.host.v1.Params.verify|verify} messages. + * @param message Params message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: ibc.applications.interchain_accounts.host.v1.IParams, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Converts this Params to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * Encodes the specified Params message, length delimited. Does not implicitly {@link ibc.applications.interchain_accounts.host.v1.Params.verify|verify} messages. + * @param message Params message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: ibc.applications.interchain_accounts.host.v1.IParams, writer?: $protobuf.Writer): $protobuf.Writer; - /** Represents a Query */ - class Query extends $protobuf.rpc.Service { + /** + * Decodes a Params message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Params + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.applications.interchain_accounts.host.v1.Params; - /** - * Constructs a new Query service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + /** + * Decodes a Params message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Params + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.applications.interchain_accounts.host.v1.Params; - /** - * Calls DenomTrace. - * @param request QueryDenomTraceRequest message or plain object - * @param callback Node-style callback called with the error, if any, and QueryDenomTraceResponse - */ - public denomTrace(request: ibc.applications.transfer.v1.IQueryDenomTraceRequest, callback: ibc.applications.transfer.v1.Query.DenomTraceCallback): void; + /** + * Verifies a Params message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Calls DenomTrace. - * @param request QueryDenomTraceRequest message or plain object - * @returns Promise - */ - public denomTrace(request: ibc.applications.transfer.v1.IQueryDenomTraceRequest): Promise; + /** + * Creates a Params message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Params + */ + public static fromObject(object: { [k: string]: any }): ibc.applications.interchain_accounts.host.v1.Params; - /** - * Calls DenomTraces. - * @param request QueryDenomTracesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and QueryDenomTracesResponse - */ - public denomTraces(request: ibc.applications.transfer.v1.IQueryDenomTracesRequest, callback: ibc.applications.transfer.v1.Query.DenomTracesCallback): void; + /** + * Creates a plain object from a Params message. Also converts values to other types if specified. + * @param message Params + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: ibc.applications.interchain_accounts.host.v1.Params, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Calls DenomTraces. - * @param request QueryDenomTracesRequest message or plain object - * @returns Promise - */ - public denomTraces(request: ibc.applications.transfer.v1.IQueryDenomTracesRequest): Promise; + /** + * Converts this Params to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** - * Calls Params. - * @param request QueryParamsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and QueryParamsResponse - */ - public params(request: ibc.applications.transfer.v1.IQueryParamsRequest, callback: ibc.applications.transfer.v1.Query.ParamsCallback): void; + /** Represents a Query */ + class Query extends $protobuf.rpc.Service { - /** - * Calls Params. - * @param request QueryParamsRequest message or plain object - * @returns Promise - */ - public params(request: ibc.applications.transfer.v1.IQueryParamsRequest): Promise; + /** + * Constructs a new Query service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); - /** - * Calls DenomHash. - * @param request QueryDenomHashRequest message or plain object - * @param callback Node-style callback called with the error, if any, and QueryDenomHashResponse - */ - public denomHash(request: ibc.applications.transfer.v1.IQueryDenomHashRequest, callback: ibc.applications.transfer.v1.Query.DenomHashCallback): void; + /** + * Calls Params. + * @param request QueryParamsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and QueryParamsResponse + */ + public params(request: ibc.applications.interchain_accounts.host.v1.IQueryParamsRequest, callback: ibc.applications.interchain_accounts.host.v1.Query.ParamsCallback): void; - /** - * Calls DenomHash. - * @param request QueryDenomHashRequest message or plain object - * @returns Promise - */ - public denomHash(request: ibc.applications.transfer.v1.IQueryDenomHashRequest): Promise; + /** + * Calls Params. + * @param request QueryParamsRequest message or plain object + * @returns Promise + */ + public params(request: ibc.applications.interchain_accounts.host.v1.IQueryParamsRequest): Promise; + } - /** - * Calls EscrowAddress. - * @param request QueryEscrowAddressRequest message or plain object - * @param callback Node-style callback called with the error, if any, and QueryEscrowAddressResponse - */ - public escrowAddress(request: ibc.applications.transfer.v1.IQueryEscrowAddressRequest, callback: ibc.applications.transfer.v1.Query.EscrowAddressCallback): void; + namespace Query { - /** - * Calls EscrowAddress. - * @param request QueryEscrowAddressRequest message or plain object - * @returns Promise - */ - public escrowAddress(request: ibc.applications.transfer.v1.IQueryEscrowAddressRequest): Promise; - } + /** + * Callback as used by {@link ibc.applications.interchain_accounts.host.v1.Query#params}. + * @param error Error, if any + * @param [response] QueryParamsResponse + */ + type ParamsCallback = (error: (Error|null), response?: ibc.applications.interchain_accounts.host.v1.QueryParamsResponse) => void; + } - namespace Query { + /** Properties of a QueryParamsRequest. */ + interface IQueryParamsRequest { + } - /** - * Callback as used by {@link ibc.applications.transfer.v1.Query#denomTrace}. - * @param error Error, if any - * @param [response] QueryDenomTraceResponse - */ - type DenomTraceCallback = (error: (Error|null), response?: ibc.applications.transfer.v1.QueryDenomTraceResponse) => void; + /** Represents a QueryParamsRequest. */ + class QueryParamsRequest implements IQueryParamsRequest { - /** - * Callback as used by {@link ibc.applications.transfer.v1.Query#denomTraces}. - * @param error Error, if any - * @param [response] QueryDenomTracesResponse - */ - type DenomTracesCallback = (error: (Error|null), response?: ibc.applications.transfer.v1.QueryDenomTracesResponse) => void; + /** + * Constructs a new QueryParamsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: ibc.applications.interchain_accounts.host.v1.IQueryParamsRequest); - /** - * Callback as used by {@link ibc.applications.transfer.v1.Query#params}. - * @param error Error, if any - * @param [response] QueryParamsResponse - */ - type ParamsCallback = (error: (Error|null), response?: ibc.applications.transfer.v1.QueryParamsResponse) => void; + /** + * Encodes the specified QueryParamsRequest message. Does not implicitly {@link ibc.applications.interchain_accounts.host.v1.QueryParamsRequest.verify|verify} messages. + * @param message QueryParamsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: ibc.applications.interchain_accounts.host.v1.IQueryParamsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Callback as used by {@link ibc.applications.transfer.v1.Query#denomHash}. - * @param error Error, if any - * @param [response] QueryDenomHashResponse - */ - type DenomHashCallback = (error: (Error|null), response?: ibc.applications.transfer.v1.QueryDenomHashResponse) => void; + /** + * Encodes the specified QueryParamsRequest message, length delimited. Does not implicitly {@link ibc.applications.interchain_accounts.host.v1.QueryParamsRequest.verify|verify} messages. + * @param message QueryParamsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: ibc.applications.interchain_accounts.host.v1.IQueryParamsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Callback as used by {@link ibc.applications.transfer.v1.Query#escrowAddress}. - * @param error Error, if any - * @param [response] QueryEscrowAddressResponse - */ - type EscrowAddressCallback = (error: (Error|null), response?: ibc.applications.transfer.v1.QueryEscrowAddressResponse) => void; - } + /** + * Decodes a QueryParamsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns QueryParamsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.applications.interchain_accounts.host.v1.QueryParamsRequest; - /** Properties of a QueryDenomTraceRequest. */ - interface IQueryDenomTraceRequest { + /** + * Decodes a QueryParamsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns QueryParamsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.applications.interchain_accounts.host.v1.QueryParamsRequest; - /** QueryDenomTraceRequest hash */ - hash?: (string|null); - } + /** + * Verifies a QueryParamsRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** Represents a QueryDenomTraceRequest. */ - class QueryDenomTraceRequest implements IQueryDenomTraceRequest { + /** + * Creates a QueryParamsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns QueryParamsRequest + */ + public static fromObject(object: { [k: string]: any }): ibc.applications.interchain_accounts.host.v1.QueryParamsRequest; - /** - * Constructs a new QueryDenomTraceRequest. - * @param [properties] Properties to set - */ - constructor(properties?: ibc.applications.transfer.v1.IQueryDenomTraceRequest); + /** + * Creates a plain object from a QueryParamsRequest message. Also converts values to other types if specified. + * @param message QueryParamsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: ibc.applications.interchain_accounts.host.v1.QueryParamsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** QueryDenomTraceRequest hash. */ - public hash: string; + /** + * Converts this QueryParamsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** - * Encodes the specified QueryDenomTraceRequest message. Does not implicitly {@link ibc.applications.transfer.v1.QueryDenomTraceRequest.verify|verify} messages. - * @param message QueryDenomTraceRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: ibc.applications.transfer.v1.IQueryDenomTraceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** Properties of a QueryParamsResponse. */ + interface IQueryParamsResponse { - /** - * Encodes the specified QueryDenomTraceRequest message, length delimited. Does not implicitly {@link ibc.applications.transfer.v1.QueryDenomTraceRequest.verify|verify} messages. - * @param message QueryDenomTraceRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: ibc.applications.transfer.v1.IQueryDenomTraceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** QueryParamsResponse params */ + params?: (ibc.applications.interchain_accounts.host.v1.IParams|null); + } - /** - * Decodes a QueryDenomTraceRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns QueryDenomTraceRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.applications.transfer.v1.QueryDenomTraceRequest; + /** Represents a QueryParamsResponse. */ + class QueryParamsResponse implements IQueryParamsResponse { - /** - * Decodes a QueryDenomTraceRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns QueryDenomTraceRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.applications.transfer.v1.QueryDenomTraceRequest; + /** + * Constructs a new QueryParamsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: ibc.applications.interchain_accounts.host.v1.IQueryParamsResponse); - /** - * Verifies a QueryDenomTraceRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** QueryParamsResponse params. */ + public params?: (ibc.applications.interchain_accounts.host.v1.IParams|null); - /** - * Creates a QueryDenomTraceRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns QueryDenomTraceRequest - */ - public static fromObject(object: { [k: string]: any }): ibc.applications.transfer.v1.QueryDenomTraceRequest; + /** + * Encodes the specified QueryParamsResponse message. Does not implicitly {@link ibc.applications.interchain_accounts.host.v1.QueryParamsResponse.verify|verify} messages. + * @param message QueryParamsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: ibc.applications.interchain_accounts.host.v1.IQueryParamsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a plain object from a QueryDenomTraceRequest message. Also converts values to other types if specified. - * @param message QueryDenomTraceRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: ibc.applications.transfer.v1.QueryDenomTraceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Encodes the specified QueryParamsResponse message, length delimited. Does not implicitly {@link ibc.applications.interchain_accounts.host.v1.QueryParamsResponse.verify|verify} messages. + * @param message QueryParamsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: ibc.applications.interchain_accounts.host.v1.IQueryParamsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Converts this QueryDenomTraceRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * Decodes a QueryParamsResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns QueryParamsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.applications.interchain_accounts.host.v1.QueryParamsResponse; - /** Properties of a QueryDenomTraceResponse. */ - interface IQueryDenomTraceResponse { + /** + * Decodes a QueryParamsResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns QueryParamsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.applications.interchain_accounts.host.v1.QueryParamsResponse; - /** QueryDenomTraceResponse denom_trace */ - denom_trace?: (ibc.applications.transfer.v1.IDenomTrace|null); - } + /** + * Verifies a QueryParamsResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** Represents a QueryDenomTraceResponse. */ - class QueryDenomTraceResponse implements IQueryDenomTraceResponse { + /** + * Creates a QueryParamsResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns QueryParamsResponse + */ + public static fromObject(object: { [k: string]: any }): ibc.applications.interchain_accounts.host.v1.QueryParamsResponse; - /** - * Constructs a new QueryDenomTraceResponse. - * @param [properties] Properties to set - */ - constructor(properties?: ibc.applications.transfer.v1.IQueryDenomTraceResponse); + /** + * Creates a plain object from a QueryParamsResponse message. Also converts values to other types if specified. + * @param message QueryParamsResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: ibc.applications.interchain_accounts.host.v1.QueryParamsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** QueryDenomTraceResponse denom_trace. */ - public denom_trace?: (ibc.applications.transfer.v1.IDenomTrace|null); + /** + * Converts this QueryParamsResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } + } + } - /** - * Encodes the specified QueryDenomTraceResponse message. Does not implicitly {@link ibc.applications.transfer.v1.QueryDenomTraceResponse.verify|verify} messages. - * @param message QueryDenomTraceResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: ibc.applications.transfer.v1.IQueryDenomTraceResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** Namespace transfer. */ + namespace transfer { - /** - * Encodes the specified QueryDenomTraceResponse message, length delimited. Does not implicitly {@link ibc.applications.transfer.v1.QueryDenomTraceResponse.verify|verify} messages. - * @param message QueryDenomTraceResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: ibc.applications.transfer.v1.IQueryDenomTraceResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** Namespace v1. */ + namespace v1 { - /** - * Decodes a QueryDenomTraceResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns QueryDenomTraceResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.applications.transfer.v1.QueryDenomTraceResponse; + /** Represents a Msg */ + class Msg extends $protobuf.rpc.Service { /** - * Decodes a QueryDenomTraceResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns QueryDenomTraceResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Constructs a new Msg service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.applications.transfer.v1.QueryDenomTraceResponse; + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); /** - * Verifies a QueryDenomTraceResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls Transfer. + * @param request MsgTransfer message or plain object + * @param callback Node-style callback called with the error, if any, and MsgTransferResponse */ - public static verify(message: { [k: string]: any }): (string|null); + public transfer(request: ibc.applications.transfer.v1.IMsgTransfer, callback: ibc.applications.transfer.v1.Msg.TransferCallback): void; /** - * Creates a QueryDenomTraceResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns QueryDenomTraceResponse + * Calls Transfer. + * @param request MsgTransfer message or plain object + * @returns Promise */ - public static fromObject(object: { [k: string]: any }): ibc.applications.transfer.v1.QueryDenomTraceResponse; + public transfer(request: ibc.applications.transfer.v1.IMsgTransfer): Promise; + } - /** - * Creates a plain object from a QueryDenomTraceResponse message. Also converts values to other types if specified. - * @param message QueryDenomTraceResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: ibc.applications.transfer.v1.QueryDenomTraceResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + namespace Msg { /** - * Converts this QueryDenomTraceResponse to JSON. - * @returns JSON object + * Callback as used by {@link ibc.applications.transfer.v1.Msg#transfer}. + * @param error Error, if any + * @param [response] MsgTransferResponse */ - public toJSON(): { [k: string]: any }; + type TransferCallback = (error: (Error|null), response?: ibc.applications.transfer.v1.MsgTransferResponse) => void; } - /** Properties of a QueryDenomTracesRequest. */ - interface IQueryDenomTracesRequest { - - /** QueryDenomTracesRequest pagination */ - pagination?: (cosmos.base.query.v1beta1.IPageRequest|null); - } + /** Properties of a MsgTransfer. */ + interface IMsgTransfer { - /** Represents a QueryDenomTracesRequest. */ - class QueryDenomTracesRequest implements IQueryDenomTracesRequest { + /** MsgTransfer source_port */ + source_port?: (string|null); - /** - * Constructs a new QueryDenomTracesRequest. - * @param [properties] Properties to set - */ - constructor(properties?: ibc.applications.transfer.v1.IQueryDenomTracesRequest); + /** MsgTransfer source_channel */ + source_channel?: (string|null); - /** QueryDenomTracesRequest pagination. */ - public pagination?: (cosmos.base.query.v1beta1.IPageRequest|null); + /** MsgTransfer token */ + token?: (cosmos.base.v1beta1.ICoin|null); - /** - * Encodes the specified QueryDenomTracesRequest message. Does not implicitly {@link ibc.applications.transfer.v1.QueryDenomTracesRequest.verify|verify} messages. - * @param message QueryDenomTracesRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: ibc.applications.transfer.v1.IQueryDenomTracesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** MsgTransfer sender */ + sender?: (string|null); - /** - * Encodes the specified QueryDenomTracesRequest message, length delimited. Does not implicitly {@link ibc.applications.transfer.v1.QueryDenomTracesRequest.verify|verify} messages. - * @param message QueryDenomTracesRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: ibc.applications.transfer.v1.IQueryDenomTracesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** MsgTransfer receiver */ + receiver?: (string|null); - /** - * Decodes a QueryDenomTracesRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns QueryDenomTracesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.applications.transfer.v1.QueryDenomTracesRequest; + /** MsgTransfer timeout_height */ + timeout_height?: (ibc.core.client.v1.IHeight|null); - /** - * Decodes a QueryDenomTracesRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns QueryDenomTracesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.applications.transfer.v1.QueryDenomTracesRequest; + /** MsgTransfer timeout_timestamp */ + timeout_timestamp?: (Long|null); - /** - * Verifies a QueryDenomTracesRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** MsgTransfer memo */ + memo?: (string|null); + } - /** - * Creates a QueryDenomTracesRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns QueryDenomTracesRequest - */ - public static fromObject(object: { [k: string]: any }): ibc.applications.transfer.v1.QueryDenomTracesRequest; + /** Represents a MsgTransfer. */ + class MsgTransfer implements IMsgTransfer { /** - * Creates a plain object from a QueryDenomTracesRequest message. Also converts values to other types if specified. - * @param message QueryDenomTracesRequest - * @param [options] Conversion options - * @returns Plain object + * Constructs a new MsgTransfer. + * @param [properties] Properties to set */ - public static toObject(message: ibc.applications.transfer.v1.QueryDenomTracesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + constructor(properties?: ibc.applications.transfer.v1.IMsgTransfer); - /** - * Converts this QueryDenomTracesRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** MsgTransfer source_port. */ + public source_port: string; - /** Properties of a QueryDenomTracesResponse. */ - interface IQueryDenomTracesResponse { + /** MsgTransfer source_channel. */ + public source_channel: string; - /** QueryDenomTracesResponse denom_traces */ - denom_traces?: (ibc.applications.transfer.v1.IDenomTrace[]|null); + /** MsgTransfer token. */ + public token?: (cosmos.base.v1beta1.ICoin|null); - /** QueryDenomTracesResponse pagination */ - pagination?: (cosmos.base.query.v1beta1.IPageResponse|null); - } + /** MsgTransfer sender. */ + public sender: string; - /** Represents a QueryDenomTracesResponse. */ - class QueryDenomTracesResponse implements IQueryDenomTracesResponse { + /** MsgTransfer receiver. */ + public receiver: string; - /** - * Constructs a new QueryDenomTracesResponse. - * @param [properties] Properties to set - */ - constructor(properties?: ibc.applications.transfer.v1.IQueryDenomTracesResponse); + /** MsgTransfer timeout_height. */ + public timeout_height?: (ibc.core.client.v1.IHeight|null); - /** QueryDenomTracesResponse denom_traces. */ - public denom_traces: ibc.applications.transfer.v1.IDenomTrace[]; + /** MsgTransfer timeout_timestamp. */ + public timeout_timestamp: Long; - /** QueryDenomTracesResponse pagination. */ - public pagination?: (cosmos.base.query.v1beta1.IPageResponse|null); + /** MsgTransfer memo. */ + public memo: string; /** - * Encodes the specified QueryDenomTracesResponse message. Does not implicitly {@link ibc.applications.transfer.v1.QueryDenomTracesResponse.verify|verify} messages. - * @param message QueryDenomTracesResponse message or plain object to encode + * Encodes the specified MsgTransfer message. Does not implicitly {@link ibc.applications.transfer.v1.MsgTransfer.verify|verify} messages. + * @param message MsgTransfer message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.applications.transfer.v1.IQueryDenomTracesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.applications.transfer.v1.IMsgTransfer, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified QueryDenomTracesResponse message, length delimited. Does not implicitly {@link ibc.applications.transfer.v1.QueryDenomTracesResponse.verify|verify} messages. - * @param message QueryDenomTracesResponse message or plain object to encode + * Encodes the specified MsgTransfer message, length delimited. Does not implicitly {@link ibc.applications.transfer.v1.MsgTransfer.verify|verify} messages. + * @param message MsgTransfer message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.applications.transfer.v1.IQueryDenomTracesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.applications.transfer.v1.IMsgTransfer, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a QueryDenomTracesResponse message from the specified reader or buffer. + * Decodes a MsgTransfer message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns QueryDenomTracesResponse + * @returns MsgTransfer * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.applications.transfer.v1.QueryDenomTracesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.applications.transfer.v1.MsgTransfer; /** - * Decodes a QueryDenomTracesResponse message from the specified reader or buffer, length delimited. + * Decodes a MsgTransfer message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns QueryDenomTracesResponse + * @returns MsgTransfer * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.applications.transfer.v1.QueryDenomTracesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.applications.transfer.v1.MsgTransfer; /** - * Verifies a QueryDenomTracesResponse message. + * Verifies a MsgTransfer message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a QueryDenomTracesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a MsgTransfer message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns QueryDenomTracesResponse + * @returns MsgTransfer */ - public static fromObject(object: { [k: string]: any }): ibc.applications.transfer.v1.QueryDenomTracesResponse; + public static fromObject(object: { [k: string]: any }): ibc.applications.transfer.v1.MsgTransfer; /** - * Creates a plain object from a QueryDenomTracesResponse message. Also converts values to other types if specified. - * @param message QueryDenomTracesResponse + * Creates a plain object from a MsgTransfer message. Also converts values to other types if specified. + * @param message MsgTransfer * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.applications.transfer.v1.QueryDenomTracesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.applications.transfer.v1.MsgTransfer, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this QueryDenomTracesResponse to JSON. + * Converts this MsgTransfer to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a QueryParamsRequest. */ - interface IQueryParamsRequest { + /** Properties of a MsgTransferResponse. */ + interface IMsgTransferResponse { + + /** MsgTransferResponse sequence */ + sequence?: (Long|null); } - /** Represents a QueryParamsRequest. */ - class QueryParamsRequest implements IQueryParamsRequest { + /** Represents a MsgTransferResponse. */ + class MsgTransferResponse implements IMsgTransferResponse { /** - * Constructs a new QueryParamsRequest. + * Constructs a new MsgTransferResponse. * @param [properties] Properties to set */ - constructor(properties?: ibc.applications.transfer.v1.IQueryParamsRequest); + constructor(properties?: ibc.applications.transfer.v1.IMsgTransferResponse); + + /** MsgTransferResponse sequence. */ + public sequence: Long; /** - * Encodes the specified QueryParamsRequest message. Does not implicitly {@link ibc.applications.transfer.v1.QueryParamsRequest.verify|verify} messages. - * @param message QueryParamsRequest message or plain object to encode + * Encodes the specified MsgTransferResponse message. Does not implicitly {@link ibc.applications.transfer.v1.MsgTransferResponse.verify|verify} messages. + * @param message MsgTransferResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.applications.transfer.v1.IQueryParamsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.applications.transfer.v1.IMsgTransferResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified QueryParamsRequest message, length delimited. Does not implicitly {@link ibc.applications.transfer.v1.QueryParamsRequest.verify|verify} messages. - * @param message QueryParamsRequest message or plain object to encode + * Encodes the specified MsgTransferResponse message, length delimited. Does not implicitly {@link ibc.applications.transfer.v1.MsgTransferResponse.verify|verify} messages. + * @param message MsgTransferResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.applications.transfer.v1.IQueryParamsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.applications.transfer.v1.IMsgTransferResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a QueryParamsRequest message from the specified reader or buffer. + * Decodes a MsgTransferResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns QueryParamsRequest + * @returns MsgTransferResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.applications.transfer.v1.QueryParamsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.applications.transfer.v1.MsgTransferResponse; /** - * Decodes a QueryParamsRequest message from the specified reader or buffer, length delimited. + * Decodes a MsgTransferResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns QueryParamsRequest + * @returns MsgTransferResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.applications.transfer.v1.QueryParamsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.applications.transfer.v1.MsgTransferResponse; /** - * Verifies a QueryParamsRequest message. + * Verifies a MsgTransferResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a QueryParamsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MsgTransferResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns QueryParamsRequest + * @returns MsgTransferResponse */ - public static fromObject(object: { [k: string]: any }): ibc.applications.transfer.v1.QueryParamsRequest; + public static fromObject(object: { [k: string]: any }): ibc.applications.transfer.v1.MsgTransferResponse; /** - * Creates a plain object from a QueryParamsRequest message. Also converts values to other types if specified. - * @param message QueryParamsRequest + * Creates a plain object from a MsgTransferResponse message. Also converts values to other types if specified. + * @param message MsgTransferResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.applications.transfer.v1.QueryParamsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.applications.transfer.v1.MsgTransferResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this QueryParamsRequest to JSON. + * Converts this MsgTransferResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a QueryParamsResponse. */ - interface IQueryParamsResponse { + /** Properties of a DenomTrace. */ + interface IDenomTrace { - /** QueryParamsResponse params */ - params?: (ibc.applications.transfer.v1.IParams|null); + /** DenomTrace path */ + path?: (string|null); + + /** DenomTrace base_denom */ + base_denom?: (string|null); } - /** Represents a QueryParamsResponse. */ - class QueryParamsResponse implements IQueryParamsResponse { + /** Represents a DenomTrace. */ + class DenomTrace implements IDenomTrace { /** - * Constructs a new QueryParamsResponse. + * Constructs a new DenomTrace. * @param [properties] Properties to set */ - constructor(properties?: ibc.applications.transfer.v1.IQueryParamsResponse); + constructor(properties?: ibc.applications.transfer.v1.IDenomTrace); - /** QueryParamsResponse params. */ - public params?: (ibc.applications.transfer.v1.IParams|null); + /** DenomTrace path. */ + public path: string; + + /** DenomTrace base_denom. */ + public base_denom: string; /** - * Encodes the specified QueryParamsResponse message. Does not implicitly {@link ibc.applications.transfer.v1.QueryParamsResponse.verify|verify} messages. - * @param message QueryParamsResponse message or plain object to encode + * Encodes the specified DenomTrace message. Does not implicitly {@link ibc.applications.transfer.v1.DenomTrace.verify|verify} messages. + * @param message DenomTrace message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.applications.transfer.v1.IQueryParamsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.applications.transfer.v1.IDenomTrace, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified QueryParamsResponse message, length delimited. Does not implicitly {@link ibc.applications.transfer.v1.QueryParamsResponse.verify|verify} messages. - * @param message QueryParamsResponse message or plain object to encode + * Encodes the specified DenomTrace message, length delimited. Does not implicitly {@link ibc.applications.transfer.v1.DenomTrace.verify|verify} messages. + * @param message DenomTrace message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.applications.transfer.v1.IQueryParamsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.applications.transfer.v1.IDenomTrace, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a QueryParamsResponse message from the specified reader or buffer. + * Decodes a DenomTrace message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns QueryParamsResponse + * @returns DenomTrace * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.applications.transfer.v1.QueryParamsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.applications.transfer.v1.DenomTrace; /** - * Decodes a QueryParamsResponse message from the specified reader or buffer, length delimited. + * Decodes a DenomTrace message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns QueryParamsResponse + * @returns DenomTrace * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.applications.transfer.v1.QueryParamsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.applications.transfer.v1.DenomTrace; /** - * Verifies a QueryParamsResponse message. + * Verifies a DenomTrace message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a QueryParamsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a DenomTrace message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns QueryParamsResponse + * @returns DenomTrace */ - public static fromObject(object: { [k: string]: any }): ibc.applications.transfer.v1.QueryParamsResponse; + public static fromObject(object: { [k: string]: any }): ibc.applications.transfer.v1.DenomTrace; /** - * Creates a plain object from a QueryParamsResponse message. Also converts values to other types if specified. - * @param message QueryParamsResponse + * Creates a plain object from a DenomTrace message. Also converts values to other types if specified. + * @param message DenomTrace * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.applications.transfer.v1.QueryParamsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.applications.transfer.v1.DenomTrace, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this QueryParamsResponse to JSON. + * Converts this DenomTrace to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a QueryDenomHashRequest. */ - interface IQueryDenomHashRequest { + /** Properties of a Params. */ + interface IParams { - /** QueryDenomHashRequest trace */ - trace?: (string|null); + /** Params send_enabled */ + send_enabled?: (boolean|null); + + /** Params receive_enabled */ + receive_enabled?: (boolean|null); } - /** Represents a QueryDenomHashRequest. */ - class QueryDenomHashRequest implements IQueryDenomHashRequest { + /** Represents a Params. */ + class Params implements IParams { /** - * Constructs a new QueryDenomHashRequest. + * Constructs a new Params. * @param [properties] Properties to set */ - constructor(properties?: ibc.applications.transfer.v1.IQueryDenomHashRequest); + constructor(properties?: ibc.applications.transfer.v1.IParams); - /** QueryDenomHashRequest trace. */ - public trace: string; + /** Params send_enabled. */ + public send_enabled: boolean; + + /** Params receive_enabled. */ + public receive_enabled: boolean; /** - * Encodes the specified QueryDenomHashRequest message. Does not implicitly {@link ibc.applications.transfer.v1.QueryDenomHashRequest.verify|verify} messages. - * @param message QueryDenomHashRequest message or plain object to encode + * Encodes the specified Params message. Does not implicitly {@link ibc.applications.transfer.v1.Params.verify|verify} messages. + * @param message Params message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.applications.transfer.v1.IQueryDenomHashRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.applications.transfer.v1.IParams, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified QueryDenomHashRequest message, length delimited. Does not implicitly {@link ibc.applications.transfer.v1.QueryDenomHashRequest.verify|verify} messages. - * @param message QueryDenomHashRequest message or plain object to encode + * Encodes the specified Params message, length delimited. Does not implicitly {@link ibc.applications.transfer.v1.Params.verify|verify} messages. + * @param message Params message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.applications.transfer.v1.IQueryDenomHashRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.applications.transfer.v1.IParams, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a QueryDenomHashRequest message from the specified reader or buffer. + * Decodes a Params message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns QueryDenomHashRequest + * @returns Params * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.applications.transfer.v1.QueryDenomHashRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.applications.transfer.v1.Params; /** - * Decodes a QueryDenomHashRequest message from the specified reader or buffer, length delimited. + * Decodes a Params message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns QueryDenomHashRequest + * @returns Params * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.applications.transfer.v1.QueryDenomHashRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.applications.transfer.v1.Params; /** - * Verifies a QueryDenomHashRequest message. + * Verifies a Params message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a QueryDenomHashRequest message from a plain object. Also converts values to their respective internal types. + * Creates a Params message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns QueryDenomHashRequest + * @returns Params */ - public static fromObject(object: { [k: string]: any }): ibc.applications.transfer.v1.QueryDenomHashRequest; + public static fromObject(object: { [k: string]: any }): ibc.applications.transfer.v1.Params; /** - * Creates a plain object from a QueryDenomHashRequest message. Also converts values to other types if specified. - * @param message QueryDenomHashRequest + * Creates a plain object from a Params message. Also converts values to other types if specified. + * @param message Params * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.applications.transfer.v1.QueryDenomHashRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.applications.transfer.v1.Params, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this QueryDenomHashRequest to JSON. + * Converts this Params to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a QueryDenomHashResponse. */ - interface IQueryDenomHashResponse { + /** Represents a Query */ + class Query extends $protobuf.rpc.Service { - /** QueryDenomHashResponse hash */ - hash?: (string|null); - } + /** + * Constructs a new Query service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); - /** Represents a QueryDenomHashResponse. */ - class QueryDenomHashResponse implements IQueryDenomHashResponse { + /** + * Calls DenomTrace. + * @param request QueryDenomTraceRequest message or plain object + * @param callback Node-style callback called with the error, if any, and QueryDenomTraceResponse + */ + public denomTrace(request: ibc.applications.transfer.v1.IQueryDenomTraceRequest, callback: ibc.applications.transfer.v1.Query.DenomTraceCallback): void; /** - * Constructs a new QueryDenomHashResponse. - * @param [properties] Properties to set + * Calls DenomTrace. + * @param request QueryDenomTraceRequest message or plain object + * @returns Promise */ - constructor(properties?: ibc.applications.transfer.v1.IQueryDenomHashResponse); + public denomTrace(request: ibc.applications.transfer.v1.IQueryDenomTraceRequest): Promise; - /** QueryDenomHashResponse hash. */ - public hash: string; + /** + * Calls DenomTraces. + * @param request QueryDenomTracesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and QueryDenomTracesResponse + */ + public denomTraces(request: ibc.applications.transfer.v1.IQueryDenomTracesRequest, callback: ibc.applications.transfer.v1.Query.DenomTracesCallback): void; /** - * Encodes the specified QueryDenomHashResponse message. Does not implicitly {@link ibc.applications.transfer.v1.QueryDenomHashResponse.verify|verify} messages. - * @param message QueryDenomHashResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls DenomTraces. + * @param request QueryDenomTracesRequest message or plain object + * @returns Promise */ - public static encode(message: ibc.applications.transfer.v1.IQueryDenomHashResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public denomTraces(request: ibc.applications.transfer.v1.IQueryDenomTracesRequest): Promise; /** - * Encodes the specified QueryDenomHashResponse message, length delimited. Does not implicitly {@link ibc.applications.transfer.v1.QueryDenomHashResponse.verify|verify} messages. - * @param message QueryDenomHashResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls Params. + * @param request QueryParamsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and QueryParamsResponse */ - public static encodeDelimited(message: ibc.applications.transfer.v1.IQueryDenomHashResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public params(request: ibc.applications.transfer.v1.IQueryParamsRequest, callback: ibc.applications.transfer.v1.Query.ParamsCallback): void; /** - * Decodes a QueryDenomHashResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns QueryDenomHashResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls Params. + * @param request QueryParamsRequest message or plain object + * @returns Promise */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.applications.transfer.v1.QueryDenomHashResponse; + public params(request: ibc.applications.transfer.v1.IQueryParamsRequest): Promise; /** - * Decodes a QueryDenomHashResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns QueryDenomHashResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls DenomHash. + * @param request QueryDenomHashRequest message or plain object + * @param callback Node-style callback called with the error, if any, and QueryDenomHashResponse */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.applications.transfer.v1.QueryDenomHashResponse; + public denomHash(request: ibc.applications.transfer.v1.IQueryDenomHashRequest, callback: ibc.applications.transfer.v1.Query.DenomHashCallback): void; /** - * Verifies a QueryDenomHashResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls DenomHash. + * @param request QueryDenomHashRequest message or plain object + * @returns Promise */ - public static verify(message: { [k: string]: any }): (string|null); + public denomHash(request: ibc.applications.transfer.v1.IQueryDenomHashRequest): Promise; /** - * Creates a QueryDenomHashResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns QueryDenomHashResponse + * Calls EscrowAddress. + * @param request QueryEscrowAddressRequest message or plain object + * @param callback Node-style callback called with the error, if any, and QueryEscrowAddressResponse */ - public static fromObject(object: { [k: string]: any }): ibc.applications.transfer.v1.QueryDenomHashResponse; + public escrowAddress(request: ibc.applications.transfer.v1.IQueryEscrowAddressRequest, callback: ibc.applications.transfer.v1.Query.EscrowAddressCallback): void; /** - * Creates a plain object from a QueryDenomHashResponse message. Also converts values to other types if specified. - * @param message QueryDenomHashResponse - * @param [options] Conversion options - * @returns Plain object + * Calls EscrowAddress. + * @param request QueryEscrowAddressRequest message or plain object + * @returns Promise */ - public static toObject(message: ibc.applications.transfer.v1.QueryDenomHashResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public escrowAddress(request: ibc.applications.transfer.v1.IQueryEscrowAddressRequest): Promise; /** - * Converts this QueryDenomHashResponse to JSON. - * @returns JSON object + * Calls TotalEscrowForDenom. + * @param request QueryTotalEscrowForDenomRequest message or plain object + * @param callback Node-style callback called with the error, if any, and QueryTotalEscrowForDenomResponse */ - public toJSON(): { [k: string]: any }; + public totalEscrowForDenom(request: ibc.applications.transfer.v1.IQueryTotalEscrowForDenomRequest, callback: ibc.applications.transfer.v1.Query.TotalEscrowForDenomCallback): void; + + /** + * Calls TotalEscrowForDenom. + * @param request QueryTotalEscrowForDenomRequest message or plain object + * @returns Promise + */ + public totalEscrowForDenom(request: ibc.applications.transfer.v1.IQueryTotalEscrowForDenomRequest): Promise; } - /** Properties of a QueryEscrowAddressRequest. */ - interface IQueryEscrowAddressRequest { + namespace Query { - /** QueryEscrowAddressRequest port_id */ - port_id?: (string|null); + /** + * Callback as used by {@link ibc.applications.transfer.v1.Query#denomTrace}. + * @param error Error, if any + * @param [response] QueryDenomTraceResponse + */ + type DenomTraceCallback = (error: (Error|null), response?: ibc.applications.transfer.v1.QueryDenomTraceResponse) => void; - /** QueryEscrowAddressRequest channel_id */ - channel_id?: (string|null); + /** + * Callback as used by {@link ibc.applications.transfer.v1.Query#denomTraces}. + * @param error Error, if any + * @param [response] QueryDenomTracesResponse + */ + type DenomTracesCallback = (error: (Error|null), response?: ibc.applications.transfer.v1.QueryDenomTracesResponse) => void; + + /** + * Callback as used by {@link ibc.applications.transfer.v1.Query#params}. + * @param error Error, if any + * @param [response] QueryParamsResponse + */ + type ParamsCallback = (error: (Error|null), response?: ibc.applications.transfer.v1.QueryParamsResponse) => void; + + /** + * Callback as used by {@link ibc.applications.transfer.v1.Query#denomHash}. + * @param error Error, if any + * @param [response] QueryDenomHashResponse + */ + type DenomHashCallback = (error: (Error|null), response?: ibc.applications.transfer.v1.QueryDenomHashResponse) => void; + + /** + * Callback as used by {@link ibc.applications.transfer.v1.Query#escrowAddress}. + * @param error Error, if any + * @param [response] QueryEscrowAddressResponse + */ + type EscrowAddressCallback = (error: (Error|null), response?: ibc.applications.transfer.v1.QueryEscrowAddressResponse) => void; + + /** + * Callback as used by {@link ibc.applications.transfer.v1.Query#totalEscrowForDenom}. + * @param error Error, if any + * @param [response] QueryTotalEscrowForDenomResponse + */ + type TotalEscrowForDenomCallback = (error: (Error|null), response?: ibc.applications.transfer.v1.QueryTotalEscrowForDenomResponse) => void; } - /** Represents a QueryEscrowAddressRequest. */ - class QueryEscrowAddressRequest implements IQueryEscrowAddressRequest { + /** Properties of a QueryDenomTraceRequest. */ + interface IQueryDenomTraceRequest { + + /** QueryDenomTraceRequest hash */ + hash?: (string|null); + } + + /** Represents a QueryDenomTraceRequest. */ + class QueryDenomTraceRequest implements IQueryDenomTraceRequest { /** - * Constructs a new QueryEscrowAddressRequest. + * Constructs a new QueryDenomTraceRequest. * @param [properties] Properties to set */ - constructor(properties?: ibc.applications.transfer.v1.IQueryEscrowAddressRequest); - - /** QueryEscrowAddressRequest port_id. */ - public port_id: string; + constructor(properties?: ibc.applications.transfer.v1.IQueryDenomTraceRequest); - /** QueryEscrowAddressRequest channel_id. */ - public channel_id: string; + /** QueryDenomTraceRequest hash. */ + public hash: string; /** - * Encodes the specified QueryEscrowAddressRequest message. Does not implicitly {@link ibc.applications.transfer.v1.QueryEscrowAddressRequest.verify|verify} messages. - * @param message QueryEscrowAddressRequest message or plain object to encode + * Encodes the specified QueryDenomTraceRequest message. Does not implicitly {@link ibc.applications.transfer.v1.QueryDenomTraceRequest.verify|verify} messages. + * @param message QueryDenomTraceRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.applications.transfer.v1.IQueryEscrowAddressRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.applications.transfer.v1.IQueryDenomTraceRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified QueryEscrowAddressRequest message, length delimited. Does not implicitly {@link ibc.applications.transfer.v1.QueryEscrowAddressRequest.verify|verify} messages. - * @param message QueryEscrowAddressRequest message or plain object to encode + * Encodes the specified QueryDenomTraceRequest message, length delimited. Does not implicitly {@link ibc.applications.transfer.v1.QueryDenomTraceRequest.verify|verify} messages. + * @param message QueryDenomTraceRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.applications.transfer.v1.IQueryEscrowAddressRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.applications.transfer.v1.IQueryDenomTraceRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a QueryEscrowAddressRequest message from the specified reader or buffer. + * Decodes a QueryDenomTraceRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns QueryEscrowAddressRequest + * @returns QueryDenomTraceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.applications.transfer.v1.QueryEscrowAddressRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.applications.transfer.v1.QueryDenomTraceRequest; /** - * Decodes a QueryEscrowAddressRequest message from the specified reader or buffer, length delimited. + * Decodes a QueryDenomTraceRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns QueryEscrowAddressRequest + * @returns QueryDenomTraceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.applications.transfer.v1.QueryEscrowAddressRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.applications.transfer.v1.QueryDenomTraceRequest; /** - * Verifies a QueryEscrowAddressRequest message. + * Verifies a QueryDenomTraceRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a QueryEscrowAddressRequest message from a plain object. Also converts values to their respective internal types. + * Creates a QueryDenomTraceRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns QueryEscrowAddressRequest + * @returns QueryDenomTraceRequest */ - public static fromObject(object: { [k: string]: any }): ibc.applications.transfer.v1.QueryEscrowAddressRequest; + public static fromObject(object: { [k: string]: any }): ibc.applications.transfer.v1.QueryDenomTraceRequest; /** - * Creates a plain object from a QueryEscrowAddressRequest message. Also converts values to other types if specified. - * @param message QueryEscrowAddressRequest + * Creates a plain object from a QueryDenomTraceRequest message. Also converts values to other types if specified. + * @param message QueryDenomTraceRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.applications.transfer.v1.QueryEscrowAddressRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.applications.transfer.v1.QueryDenomTraceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this QueryEscrowAddressRequest to JSON. + * Converts this QueryDenomTraceRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a QueryEscrowAddressResponse. */ - interface IQueryEscrowAddressResponse { + /** Properties of a QueryDenomTraceResponse. */ + interface IQueryDenomTraceResponse { - /** QueryEscrowAddressResponse escrow_address */ - escrow_address?: (string|null); + /** QueryDenomTraceResponse denom_trace */ + denom_trace?: (ibc.applications.transfer.v1.IDenomTrace|null); } - /** Represents a QueryEscrowAddressResponse. */ - class QueryEscrowAddressResponse implements IQueryEscrowAddressResponse { + /** Represents a QueryDenomTraceResponse. */ + class QueryDenomTraceResponse implements IQueryDenomTraceResponse { /** - * Constructs a new QueryEscrowAddressResponse. + * Constructs a new QueryDenomTraceResponse. * @param [properties] Properties to set */ - constructor(properties?: ibc.applications.transfer.v1.IQueryEscrowAddressResponse); + constructor(properties?: ibc.applications.transfer.v1.IQueryDenomTraceResponse); - /** QueryEscrowAddressResponse escrow_address. */ - public escrow_address: string; + /** QueryDenomTraceResponse denom_trace. */ + public denom_trace?: (ibc.applications.transfer.v1.IDenomTrace|null); /** - * Encodes the specified QueryEscrowAddressResponse message. Does not implicitly {@link ibc.applications.transfer.v1.QueryEscrowAddressResponse.verify|verify} messages. - * @param message QueryEscrowAddressResponse message or plain object to encode + * Encodes the specified QueryDenomTraceResponse message. Does not implicitly {@link ibc.applications.transfer.v1.QueryDenomTraceResponse.verify|verify} messages. + * @param message QueryDenomTraceResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.applications.transfer.v1.IQueryEscrowAddressResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.applications.transfer.v1.IQueryDenomTraceResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified QueryEscrowAddressResponse message, length delimited. Does not implicitly {@link ibc.applications.transfer.v1.QueryEscrowAddressResponse.verify|verify} messages. - * @param message QueryEscrowAddressResponse message or plain object to encode + * Encodes the specified QueryDenomTraceResponse message, length delimited. Does not implicitly {@link ibc.applications.transfer.v1.QueryDenomTraceResponse.verify|verify} messages. + * @param message QueryDenomTraceResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.applications.transfer.v1.IQueryEscrowAddressResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.applications.transfer.v1.IQueryDenomTraceResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a QueryEscrowAddressResponse message from the specified reader or buffer. + * Decodes a QueryDenomTraceResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns QueryEscrowAddressResponse + * @returns QueryDenomTraceResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.applications.transfer.v1.QueryEscrowAddressResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.applications.transfer.v1.QueryDenomTraceResponse; /** - * Decodes a QueryEscrowAddressResponse message from the specified reader or buffer, length delimited. + * Decodes a QueryDenomTraceResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns QueryEscrowAddressResponse + * @returns QueryDenomTraceResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.applications.transfer.v1.QueryEscrowAddressResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.applications.transfer.v1.QueryDenomTraceResponse; /** - * Verifies a QueryEscrowAddressResponse message. + * Verifies a QueryDenomTraceResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a QueryEscrowAddressResponse message from a plain object. Also converts values to their respective internal types. + * Creates a QueryDenomTraceResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns QueryEscrowAddressResponse + * @returns QueryDenomTraceResponse */ - public static fromObject(object: { [k: string]: any }): ibc.applications.transfer.v1.QueryEscrowAddressResponse; + public static fromObject(object: { [k: string]: any }): ibc.applications.transfer.v1.QueryDenomTraceResponse; /** - * Creates a plain object from a QueryEscrowAddressResponse message. Also converts values to other types if specified. - * @param message QueryEscrowAddressResponse + * Creates a plain object from a QueryDenomTraceResponse message. Also converts values to other types if specified. + * @param message QueryDenomTraceResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.applications.transfer.v1.QueryEscrowAddressResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.applications.transfer.v1.QueryDenomTraceResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this QueryEscrowAddressResponse to JSON. + * Converts this QueryDenomTraceResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GenesisState. */ - interface IGenesisState { - - /** GenesisState port_id */ - port_id?: (string|null); - - /** GenesisState denom_traces */ - denom_traces?: (ibc.applications.transfer.v1.IDenomTrace[]|null); + /** Properties of a QueryDenomTracesRequest. */ + interface IQueryDenomTracesRequest { - /** GenesisState params */ - params?: (ibc.applications.transfer.v1.IParams|null); + /** QueryDenomTracesRequest pagination */ + pagination?: (cosmos.base.query.v1beta1.IPageRequest|null); } - /** Represents a GenesisState. */ - class GenesisState implements IGenesisState { + /** Represents a QueryDenomTracesRequest. */ + class QueryDenomTracesRequest implements IQueryDenomTracesRequest { /** - * Constructs a new GenesisState. + * Constructs a new QueryDenomTracesRequest. * @param [properties] Properties to set */ - constructor(properties?: ibc.applications.transfer.v1.IGenesisState); - - /** GenesisState port_id. */ - public port_id: string; - - /** GenesisState denom_traces. */ - public denom_traces: ibc.applications.transfer.v1.IDenomTrace[]; + constructor(properties?: ibc.applications.transfer.v1.IQueryDenomTracesRequest); - /** GenesisState params. */ - public params?: (ibc.applications.transfer.v1.IParams|null); + /** QueryDenomTracesRequest pagination. */ + public pagination?: (cosmos.base.query.v1beta1.IPageRequest|null); /** - * Encodes the specified GenesisState message. Does not implicitly {@link ibc.applications.transfer.v1.GenesisState.verify|verify} messages. - * @param message GenesisState message or plain object to encode + * Encodes the specified QueryDenomTracesRequest message. Does not implicitly {@link ibc.applications.transfer.v1.QueryDenomTracesRequest.verify|verify} messages. + * @param message QueryDenomTracesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.applications.transfer.v1.IGenesisState, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.applications.transfer.v1.IQueryDenomTracesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GenesisState message, length delimited. Does not implicitly {@link ibc.applications.transfer.v1.GenesisState.verify|verify} messages. - * @param message GenesisState message or plain object to encode + * Encodes the specified QueryDenomTracesRequest message, length delimited. Does not implicitly {@link ibc.applications.transfer.v1.QueryDenomTracesRequest.verify|verify} messages. + * @param message QueryDenomTracesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.applications.transfer.v1.IGenesisState, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.applications.transfer.v1.IQueryDenomTracesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GenesisState message from the specified reader or buffer. + * Decodes a QueryDenomTracesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GenesisState + * @returns QueryDenomTracesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.applications.transfer.v1.GenesisState; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.applications.transfer.v1.QueryDenomTracesRequest; /** - * Decodes a GenesisState message from the specified reader or buffer, length delimited. + * Decodes a QueryDenomTracesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GenesisState + * @returns QueryDenomTracesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.applications.transfer.v1.GenesisState; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.applications.transfer.v1.QueryDenomTracesRequest; /** - * Verifies a GenesisState message. + * Verifies a QueryDenomTracesRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GenesisState message from a plain object. Also converts values to their respective internal types. + * Creates a QueryDenomTracesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GenesisState + * @returns QueryDenomTracesRequest */ - public static fromObject(object: { [k: string]: any }): ibc.applications.transfer.v1.GenesisState; + public static fromObject(object: { [k: string]: any }): ibc.applications.transfer.v1.QueryDenomTracesRequest; /** - * Creates a plain object from a GenesisState message. Also converts values to other types if specified. - * @param message GenesisState + * Creates a plain object from a QueryDenomTracesRequest message. Also converts values to other types if specified. + * @param message QueryDenomTracesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.applications.transfer.v1.GenesisState, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.applications.transfer.v1.QueryDenomTracesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GenesisState to JSON. + * Converts this QueryDenomTracesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - } - - /** Namespace v2. */ - namespace v2 { - - /** Properties of a FungibleTokenPacketData. */ - interface IFungibleTokenPacketData { - - /** FungibleTokenPacketData denom */ - denom?: (string|null); - - /** FungibleTokenPacketData amount */ - amount?: (string|null); - /** FungibleTokenPacketData sender */ - sender?: (string|null); + /** Properties of a QueryDenomTracesResponse. */ + interface IQueryDenomTracesResponse { - /** FungibleTokenPacketData receiver */ - receiver?: (string|null); + /** QueryDenomTracesResponse denom_traces */ + denom_traces?: (ibc.applications.transfer.v1.IDenomTrace[]|null); - /** FungibleTokenPacketData memo */ - memo?: (string|null); + /** QueryDenomTracesResponse pagination */ + pagination?: (cosmos.base.query.v1beta1.IPageResponse|null); } - /** Represents a FungibleTokenPacketData. */ - class FungibleTokenPacketData implements IFungibleTokenPacketData { + /** Represents a QueryDenomTracesResponse. */ + class QueryDenomTracesResponse implements IQueryDenomTracesResponse { /** - * Constructs a new FungibleTokenPacketData. + * Constructs a new QueryDenomTracesResponse. * @param [properties] Properties to set */ - constructor(properties?: ibc.applications.transfer.v2.IFungibleTokenPacketData); - - /** FungibleTokenPacketData denom. */ - public denom: string; - - /** FungibleTokenPacketData amount. */ - public amount: string; - - /** FungibleTokenPacketData sender. */ - public sender: string; + constructor(properties?: ibc.applications.transfer.v1.IQueryDenomTracesResponse); - /** FungibleTokenPacketData receiver. */ - public receiver: string; + /** QueryDenomTracesResponse denom_traces. */ + public denom_traces: ibc.applications.transfer.v1.IDenomTrace[]; - /** FungibleTokenPacketData memo. */ - public memo: string; + /** QueryDenomTracesResponse pagination. */ + public pagination?: (cosmos.base.query.v1beta1.IPageResponse|null); /** - * Encodes the specified FungibleTokenPacketData message. Does not implicitly {@link ibc.applications.transfer.v2.FungibleTokenPacketData.verify|verify} messages. - * @param message FungibleTokenPacketData message or plain object to encode + * Encodes the specified QueryDenomTracesResponse message. Does not implicitly {@link ibc.applications.transfer.v1.QueryDenomTracesResponse.verify|verify} messages. + * @param message QueryDenomTracesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.applications.transfer.v2.IFungibleTokenPacketData, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.applications.transfer.v1.IQueryDenomTracesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified FungibleTokenPacketData message, length delimited. Does not implicitly {@link ibc.applications.transfer.v2.FungibleTokenPacketData.verify|verify} messages. - * @param message FungibleTokenPacketData message or plain object to encode + * Encodes the specified QueryDenomTracesResponse message, length delimited. Does not implicitly {@link ibc.applications.transfer.v1.QueryDenomTracesResponse.verify|verify} messages. + * @param message QueryDenomTracesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.applications.transfer.v2.IFungibleTokenPacketData, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.applications.transfer.v1.IQueryDenomTracesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a FungibleTokenPacketData message from the specified reader or buffer. + * Decodes a QueryDenomTracesResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns FungibleTokenPacketData + * @returns QueryDenomTracesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.applications.transfer.v2.FungibleTokenPacketData; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.applications.transfer.v1.QueryDenomTracesResponse; /** - * Decodes a FungibleTokenPacketData message from the specified reader or buffer, length delimited. + * Decodes a QueryDenomTracesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns FungibleTokenPacketData + * @returns QueryDenomTracesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.applications.transfer.v2.FungibleTokenPacketData; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.applications.transfer.v1.QueryDenomTracesResponse; /** - * Verifies a FungibleTokenPacketData message. + * Verifies a QueryDenomTracesResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a FungibleTokenPacketData message from a plain object. Also converts values to their respective internal types. + * Creates a QueryDenomTracesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns FungibleTokenPacketData + * @returns QueryDenomTracesResponse */ - public static fromObject(object: { [k: string]: any }): ibc.applications.transfer.v2.FungibleTokenPacketData; + public static fromObject(object: { [k: string]: any }): ibc.applications.transfer.v1.QueryDenomTracesResponse; /** - * Creates a plain object from a FungibleTokenPacketData message. Also converts values to other types if specified. - * @param message FungibleTokenPacketData + * Creates a plain object from a QueryDenomTracesResponse message. Also converts values to other types if specified. + * @param message QueryDenomTracesResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.applications.transfer.v2.FungibleTokenPacketData, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.applications.transfer.v1.QueryDenomTracesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this FungibleTokenPacketData to JSON. + * Converts this QueryDenomTracesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - } - } - } - - /** Namespace core. */ - namespace core { - - /** Namespace channel. */ - namespace channel { - - /** Namespace v1. */ - namespace v1 { - - /** Properties of a Channel. */ - interface IChannel { - - /** Channel state */ - state?: (ibc.core.channel.v1.State|null); - - /** Channel ordering */ - ordering?: (ibc.core.channel.v1.Order|null); - - /** Channel counterparty */ - counterparty?: (ibc.core.channel.v1.ICounterparty|null); - - /** Channel connection_hops */ - connection_hops?: (string[]|null); - /** Channel version */ - version?: (string|null); + /** Properties of a QueryParamsRequest. */ + interface IQueryParamsRequest { } - /** Represents a Channel. */ - class Channel implements IChannel { + /** Represents a QueryParamsRequest. */ + class QueryParamsRequest implements IQueryParamsRequest { /** - * Constructs a new Channel. + * Constructs a new QueryParamsRequest. * @param [properties] Properties to set */ - constructor(properties?: ibc.core.channel.v1.IChannel); - - /** Channel state. */ - public state: ibc.core.channel.v1.State; - - /** Channel ordering. */ - public ordering: ibc.core.channel.v1.Order; - - /** Channel counterparty. */ - public counterparty?: (ibc.core.channel.v1.ICounterparty|null); - - /** Channel connection_hops. */ - public connection_hops: string[]; - - /** Channel version. */ - public version: string; + constructor(properties?: ibc.applications.transfer.v1.IQueryParamsRequest); /** - * Encodes the specified Channel message. Does not implicitly {@link ibc.core.channel.v1.Channel.verify|verify} messages. - * @param message Channel message or plain object to encode + * Encodes the specified QueryParamsRequest message. Does not implicitly {@link ibc.applications.transfer.v1.QueryParamsRequest.verify|verify} messages. + * @param message QueryParamsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.core.channel.v1.IChannel, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.applications.transfer.v1.IQueryParamsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Channel message, length delimited. Does not implicitly {@link ibc.core.channel.v1.Channel.verify|verify} messages. - * @param message Channel message or plain object to encode + * Encodes the specified QueryParamsRequest message, length delimited. Does not implicitly {@link ibc.applications.transfer.v1.QueryParamsRequest.verify|verify} messages. + * @param message QueryParamsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.core.channel.v1.IChannel, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.applications.transfer.v1.IQueryParamsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Channel message from the specified reader or buffer. + * Decodes a QueryParamsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Channel + * @returns QueryParamsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.channel.v1.Channel; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.applications.transfer.v1.QueryParamsRequest; /** - * Decodes a Channel message from the specified reader or buffer, length delimited. + * Decodes a QueryParamsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Channel + * @returns QueryParamsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.channel.v1.Channel; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.applications.transfer.v1.QueryParamsRequest; /** - * Verifies a Channel message. + * Verifies a QueryParamsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a Channel message from a plain object. Also converts values to their respective internal types. + * Creates a QueryParamsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Channel + * @returns QueryParamsRequest */ - public static fromObject(object: { [k: string]: any }): ibc.core.channel.v1.Channel; + public static fromObject(object: { [k: string]: any }): ibc.applications.transfer.v1.QueryParamsRequest; /** - * Creates a plain object from a Channel message. Also converts values to other types if specified. - * @param message Channel + * Creates a plain object from a QueryParamsRequest message. Also converts values to other types if specified. + * @param message QueryParamsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.core.channel.v1.Channel, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.applications.transfer.v1.QueryParamsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Channel to JSON. + * Converts this QueryParamsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an IdentifiedChannel. */ - interface IIdentifiedChannel { - - /** IdentifiedChannel state */ - state?: (ibc.core.channel.v1.State|null); - - /** IdentifiedChannel ordering */ - ordering?: (ibc.core.channel.v1.Order|null); - - /** IdentifiedChannel counterparty */ - counterparty?: (ibc.core.channel.v1.ICounterparty|null); - - /** IdentifiedChannel connection_hops */ - connection_hops?: (string[]|null); - - /** IdentifiedChannel version */ - version?: (string|null); - - /** IdentifiedChannel port_id */ - port_id?: (string|null); + /** Properties of a QueryParamsResponse. */ + interface IQueryParamsResponse { - /** IdentifiedChannel channel_id */ - channel_id?: (string|null); + /** QueryParamsResponse params */ + params?: (ibc.applications.transfer.v1.IParams|null); } - /** Represents an IdentifiedChannel. */ - class IdentifiedChannel implements IIdentifiedChannel { + /** Represents a QueryParamsResponse. */ + class QueryParamsResponse implements IQueryParamsResponse { /** - * Constructs a new IdentifiedChannel. + * Constructs a new QueryParamsResponse. * @param [properties] Properties to set */ - constructor(properties?: ibc.core.channel.v1.IIdentifiedChannel); - - /** IdentifiedChannel state. */ - public state: ibc.core.channel.v1.State; - - /** IdentifiedChannel ordering. */ - public ordering: ibc.core.channel.v1.Order; - - /** IdentifiedChannel counterparty. */ - public counterparty?: (ibc.core.channel.v1.ICounterparty|null); - - /** IdentifiedChannel connection_hops. */ - public connection_hops: string[]; - - /** IdentifiedChannel version. */ - public version: string; - - /** IdentifiedChannel port_id. */ - public port_id: string; + constructor(properties?: ibc.applications.transfer.v1.IQueryParamsResponse); - /** IdentifiedChannel channel_id. */ - public channel_id: string; + /** QueryParamsResponse params. */ + public params?: (ibc.applications.transfer.v1.IParams|null); /** - * Encodes the specified IdentifiedChannel message. Does not implicitly {@link ibc.core.channel.v1.IdentifiedChannel.verify|verify} messages. - * @param message IdentifiedChannel message or plain object to encode + * Encodes the specified QueryParamsResponse message. Does not implicitly {@link ibc.applications.transfer.v1.QueryParamsResponse.verify|verify} messages. + * @param message QueryParamsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.core.channel.v1.IIdentifiedChannel, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.applications.transfer.v1.IQueryParamsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified IdentifiedChannel message, length delimited. Does not implicitly {@link ibc.core.channel.v1.IdentifiedChannel.verify|verify} messages. - * @param message IdentifiedChannel message or plain object to encode + * Encodes the specified QueryParamsResponse message, length delimited. Does not implicitly {@link ibc.applications.transfer.v1.QueryParamsResponse.verify|verify} messages. + * @param message QueryParamsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.core.channel.v1.IIdentifiedChannel, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.applications.transfer.v1.IQueryParamsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an IdentifiedChannel message from the specified reader or buffer. + * Decodes a QueryParamsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns IdentifiedChannel + * @returns QueryParamsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.channel.v1.IdentifiedChannel; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.applications.transfer.v1.QueryParamsResponse; /** - * Decodes an IdentifiedChannel message from the specified reader or buffer, length delimited. + * Decodes a QueryParamsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns IdentifiedChannel + * @returns QueryParamsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.channel.v1.IdentifiedChannel; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.applications.transfer.v1.QueryParamsResponse; /** - * Verifies an IdentifiedChannel message. + * Verifies a QueryParamsResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an IdentifiedChannel message from a plain object. Also converts values to their respective internal types. + * Creates a QueryParamsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns IdentifiedChannel + * @returns QueryParamsResponse */ - public static fromObject(object: { [k: string]: any }): ibc.core.channel.v1.IdentifiedChannel; + public static fromObject(object: { [k: string]: any }): ibc.applications.transfer.v1.QueryParamsResponse; /** - * Creates a plain object from an IdentifiedChannel message. Also converts values to other types if specified. - * @param message IdentifiedChannel + * Creates a plain object from a QueryParamsResponse message. Also converts values to other types if specified. + * @param message QueryParamsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.core.channel.v1.IdentifiedChannel, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.applications.transfer.v1.QueryParamsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this IdentifiedChannel to JSON. + * Converts this QueryParamsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** State enum. */ - enum State { - STATE_UNINITIALIZED_UNSPECIFIED = 0, - STATE_INIT = 1, - STATE_TRYOPEN = 2, - STATE_OPEN = 3, - STATE_CLOSED = 4 - } - - /** Order enum. */ - enum Order { - ORDER_NONE_UNSPECIFIED = 0, - ORDER_UNORDERED = 1, - ORDER_ORDERED = 2 - } - - /** Properties of a Counterparty. */ - interface ICounterparty { - - /** Counterparty port_id */ - port_id?: (string|null); + /** Properties of a QueryDenomHashRequest. */ + interface IQueryDenomHashRequest { - /** Counterparty channel_id */ - channel_id?: (string|null); + /** QueryDenomHashRequest trace */ + trace?: (string|null); } - /** Represents a Counterparty. */ - class Counterparty implements ICounterparty { + /** Represents a QueryDenomHashRequest. */ + class QueryDenomHashRequest implements IQueryDenomHashRequest { /** - * Constructs a new Counterparty. + * Constructs a new QueryDenomHashRequest. * @param [properties] Properties to set */ - constructor(properties?: ibc.core.channel.v1.ICounterparty); - - /** Counterparty port_id. */ - public port_id: string; + constructor(properties?: ibc.applications.transfer.v1.IQueryDenomHashRequest); - /** Counterparty channel_id. */ - public channel_id: string; + /** QueryDenomHashRequest trace. */ + public trace: string; /** - * Encodes the specified Counterparty message. Does not implicitly {@link ibc.core.channel.v1.Counterparty.verify|verify} messages. - * @param message Counterparty message or plain object to encode + * Encodes the specified QueryDenomHashRequest message. Does not implicitly {@link ibc.applications.transfer.v1.QueryDenomHashRequest.verify|verify} messages. + * @param message QueryDenomHashRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.core.channel.v1.ICounterparty, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.applications.transfer.v1.IQueryDenomHashRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Counterparty message, length delimited. Does not implicitly {@link ibc.core.channel.v1.Counterparty.verify|verify} messages. - * @param message Counterparty message or plain object to encode + * Encodes the specified QueryDenomHashRequest message, length delimited. Does not implicitly {@link ibc.applications.transfer.v1.QueryDenomHashRequest.verify|verify} messages. + * @param message QueryDenomHashRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.core.channel.v1.ICounterparty, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.applications.transfer.v1.IQueryDenomHashRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Counterparty message from the specified reader or buffer. + * Decodes a QueryDenomHashRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Counterparty + * @returns QueryDenomHashRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.channel.v1.Counterparty; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.applications.transfer.v1.QueryDenomHashRequest; /** - * Decodes a Counterparty message from the specified reader or buffer, length delimited. + * Decodes a QueryDenomHashRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Counterparty + * @returns QueryDenomHashRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.channel.v1.Counterparty; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.applications.transfer.v1.QueryDenomHashRequest; /** - * Verifies a Counterparty message. + * Verifies a QueryDenomHashRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a Counterparty message from a plain object. Also converts values to their respective internal types. + * Creates a QueryDenomHashRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Counterparty + * @returns QueryDenomHashRequest */ - public static fromObject(object: { [k: string]: any }): ibc.core.channel.v1.Counterparty; + public static fromObject(object: { [k: string]: any }): ibc.applications.transfer.v1.QueryDenomHashRequest; /** - * Creates a plain object from a Counterparty message. Also converts values to other types if specified. - * @param message Counterparty + * Creates a plain object from a QueryDenomHashRequest message. Also converts values to other types if specified. + * @param message QueryDenomHashRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.core.channel.v1.Counterparty, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.applications.transfer.v1.QueryDenomHashRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Counterparty to JSON. + * Converts this QueryDenomHashRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a Packet. */ - interface IPacket { - - /** Packet sequence */ - sequence?: (Long|null); - - /** Packet source_port */ - source_port?: (string|null); - - /** Packet source_channel */ - source_channel?: (string|null); - - /** Packet destination_port */ - destination_port?: (string|null); - - /** Packet destination_channel */ - destination_channel?: (string|null); - - /** Packet data */ - data?: (Uint8Array|null); - - /** Packet timeout_height */ - timeout_height?: (ibc.core.client.v1.IHeight|null); + /** Properties of a QueryDenomHashResponse. */ + interface IQueryDenomHashResponse { - /** Packet timeout_timestamp */ - timeout_timestamp?: (Long|null); + /** QueryDenomHashResponse hash */ + hash?: (string|null); } - /** Represents a Packet. */ - class Packet implements IPacket { + /** Represents a QueryDenomHashResponse. */ + class QueryDenomHashResponse implements IQueryDenomHashResponse { /** - * Constructs a new Packet. + * Constructs a new QueryDenomHashResponse. * @param [properties] Properties to set */ - constructor(properties?: ibc.core.channel.v1.IPacket); - - /** Packet sequence. */ - public sequence: Long; - - /** Packet source_port. */ - public source_port: string; - - /** Packet source_channel. */ - public source_channel: string; - - /** Packet destination_port. */ - public destination_port: string; - - /** Packet destination_channel. */ - public destination_channel: string; - - /** Packet data. */ - public data: Uint8Array; - - /** Packet timeout_height. */ - public timeout_height?: (ibc.core.client.v1.IHeight|null); + constructor(properties?: ibc.applications.transfer.v1.IQueryDenomHashResponse); - /** Packet timeout_timestamp. */ - public timeout_timestamp: Long; + /** QueryDenomHashResponse hash. */ + public hash: string; /** - * Encodes the specified Packet message. Does not implicitly {@link ibc.core.channel.v1.Packet.verify|verify} messages. - * @param message Packet message or plain object to encode + * Encodes the specified QueryDenomHashResponse message. Does not implicitly {@link ibc.applications.transfer.v1.QueryDenomHashResponse.verify|verify} messages. + * @param message QueryDenomHashResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.core.channel.v1.IPacket, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.applications.transfer.v1.IQueryDenomHashResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Packet message, length delimited. Does not implicitly {@link ibc.core.channel.v1.Packet.verify|verify} messages. - * @param message Packet message or plain object to encode + * Encodes the specified QueryDenomHashResponse message, length delimited. Does not implicitly {@link ibc.applications.transfer.v1.QueryDenomHashResponse.verify|verify} messages. + * @param message QueryDenomHashResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.core.channel.v1.IPacket, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.applications.transfer.v1.IQueryDenomHashResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Packet message from the specified reader or buffer. + * Decodes a QueryDenomHashResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Packet + * @returns QueryDenomHashResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.channel.v1.Packet; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.applications.transfer.v1.QueryDenomHashResponse; /** - * Decodes a Packet message from the specified reader or buffer, length delimited. + * Decodes a QueryDenomHashResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Packet + * @returns QueryDenomHashResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.channel.v1.Packet; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.applications.transfer.v1.QueryDenomHashResponse; /** - * Verifies a Packet message. + * Verifies a QueryDenomHashResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a Packet message from a plain object. Also converts values to their respective internal types. + * Creates a QueryDenomHashResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Packet + * @returns QueryDenomHashResponse */ - public static fromObject(object: { [k: string]: any }): ibc.core.channel.v1.Packet; + public static fromObject(object: { [k: string]: any }): ibc.applications.transfer.v1.QueryDenomHashResponse; /** - * Creates a plain object from a Packet message. Also converts values to other types if specified. - * @param message Packet + * Creates a plain object from a QueryDenomHashResponse message. Also converts values to other types if specified. + * @param message QueryDenomHashResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.core.channel.v1.Packet, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.applications.transfer.v1.QueryDenomHashResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Packet to JSON. + * Converts this QueryDenomHashResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a PacketState. */ - interface IPacketState { + /** Properties of a QueryEscrowAddressRequest. */ + interface IQueryEscrowAddressRequest { - /** PacketState port_id */ + /** QueryEscrowAddressRequest port_id */ port_id?: (string|null); - /** PacketState channel_id */ + /** QueryEscrowAddressRequest channel_id */ channel_id?: (string|null); - - /** PacketState sequence */ - sequence?: (Long|null); - - /** PacketState data */ - data?: (Uint8Array|null); } - /** Represents a PacketState. */ - class PacketState implements IPacketState { + /** Represents a QueryEscrowAddressRequest. */ + class QueryEscrowAddressRequest implements IQueryEscrowAddressRequest { /** - * Constructs a new PacketState. + * Constructs a new QueryEscrowAddressRequest. * @param [properties] Properties to set */ - constructor(properties?: ibc.core.channel.v1.IPacketState); + constructor(properties?: ibc.applications.transfer.v1.IQueryEscrowAddressRequest); - /** PacketState port_id. */ + /** QueryEscrowAddressRequest port_id. */ public port_id: string; - /** PacketState channel_id. */ + /** QueryEscrowAddressRequest channel_id. */ public channel_id: string; - /** PacketState sequence. */ - public sequence: Long; - - /** PacketState data. */ - public data: Uint8Array; - /** - * Encodes the specified PacketState message. Does not implicitly {@link ibc.core.channel.v1.PacketState.verify|verify} messages. - * @param message PacketState message or plain object to encode + * Encodes the specified QueryEscrowAddressRequest message. Does not implicitly {@link ibc.applications.transfer.v1.QueryEscrowAddressRequest.verify|verify} messages. + * @param message QueryEscrowAddressRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.core.channel.v1.IPacketState, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.applications.transfer.v1.IQueryEscrowAddressRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified PacketState message, length delimited. Does not implicitly {@link ibc.core.channel.v1.PacketState.verify|verify} messages. - * @param message PacketState message or plain object to encode + * Encodes the specified QueryEscrowAddressRequest message, length delimited. Does not implicitly {@link ibc.applications.transfer.v1.QueryEscrowAddressRequest.verify|verify} messages. + * @param message QueryEscrowAddressRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.core.channel.v1.IPacketState, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.applications.transfer.v1.IQueryEscrowAddressRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PacketState message from the specified reader or buffer. + * Decodes a QueryEscrowAddressRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PacketState + * @returns QueryEscrowAddressRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.channel.v1.PacketState; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.applications.transfer.v1.QueryEscrowAddressRequest; /** - * Decodes a PacketState message from the specified reader or buffer, length delimited. + * Decodes a QueryEscrowAddressRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PacketState + * @returns QueryEscrowAddressRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.channel.v1.PacketState; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.applications.transfer.v1.QueryEscrowAddressRequest; /** - * Verifies a PacketState message. + * Verifies a QueryEscrowAddressRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a PacketState message from a plain object. Also converts values to their respective internal types. + * Creates a QueryEscrowAddressRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PacketState + * @returns QueryEscrowAddressRequest */ - public static fromObject(object: { [k: string]: any }): ibc.core.channel.v1.PacketState; + public static fromObject(object: { [k: string]: any }): ibc.applications.transfer.v1.QueryEscrowAddressRequest; /** - * Creates a plain object from a PacketState message. Also converts values to other types if specified. - * @param message PacketState + * Creates a plain object from a QueryEscrowAddressRequest message. Also converts values to other types if specified. + * @param message QueryEscrowAddressRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.core.channel.v1.PacketState, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.applications.transfer.v1.QueryEscrowAddressRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PacketState to JSON. + * Converts this QueryEscrowAddressRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a PacketId. */ - interface IPacketId { - - /** PacketId port_id */ - port_id?: (string|null); - - /** PacketId channel_id */ - channel_id?: (string|null); + /** Properties of a QueryEscrowAddressResponse. */ + interface IQueryEscrowAddressResponse { - /** PacketId sequence */ - sequence?: (Long|null); + /** QueryEscrowAddressResponse escrow_address */ + escrow_address?: (string|null); } - /** Represents a PacketId. */ - class PacketId implements IPacketId { + /** Represents a QueryEscrowAddressResponse. */ + class QueryEscrowAddressResponse implements IQueryEscrowAddressResponse { /** - * Constructs a new PacketId. + * Constructs a new QueryEscrowAddressResponse. * @param [properties] Properties to set */ - constructor(properties?: ibc.core.channel.v1.IPacketId); - - /** PacketId port_id. */ - public port_id: string; - - /** PacketId channel_id. */ - public channel_id: string; + constructor(properties?: ibc.applications.transfer.v1.IQueryEscrowAddressResponse); - /** PacketId sequence. */ - public sequence: Long; + /** QueryEscrowAddressResponse escrow_address. */ + public escrow_address: string; /** - * Encodes the specified PacketId message. Does not implicitly {@link ibc.core.channel.v1.PacketId.verify|verify} messages. - * @param message PacketId message or plain object to encode + * Encodes the specified QueryEscrowAddressResponse message. Does not implicitly {@link ibc.applications.transfer.v1.QueryEscrowAddressResponse.verify|verify} messages. + * @param message QueryEscrowAddressResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.core.channel.v1.IPacketId, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.applications.transfer.v1.IQueryEscrowAddressResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified PacketId message, length delimited. Does not implicitly {@link ibc.core.channel.v1.PacketId.verify|verify} messages. - * @param message PacketId message or plain object to encode + * Encodes the specified QueryEscrowAddressResponse message, length delimited. Does not implicitly {@link ibc.applications.transfer.v1.QueryEscrowAddressResponse.verify|verify} messages. + * @param message QueryEscrowAddressResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.core.channel.v1.IPacketId, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.applications.transfer.v1.IQueryEscrowAddressResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PacketId message from the specified reader or buffer. + * Decodes a QueryEscrowAddressResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PacketId + * @returns QueryEscrowAddressResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.channel.v1.PacketId; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.applications.transfer.v1.QueryEscrowAddressResponse; /** - * Decodes a PacketId message from the specified reader or buffer, length delimited. + * Decodes a QueryEscrowAddressResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PacketId + * @returns QueryEscrowAddressResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.channel.v1.PacketId; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.applications.transfer.v1.QueryEscrowAddressResponse; /** - * Verifies a PacketId message. + * Verifies a QueryEscrowAddressResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a PacketId message from a plain object. Also converts values to their respective internal types. + * Creates a QueryEscrowAddressResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PacketId + * @returns QueryEscrowAddressResponse */ - public static fromObject(object: { [k: string]: any }): ibc.core.channel.v1.PacketId; + public static fromObject(object: { [k: string]: any }): ibc.applications.transfer.v1.QueryEscrowAddressResponse; /** - * Creates a plain object from a PacketId message. Also converts values to other types if specified. - * @param message PacketId + * Creates a plain object from a QueryEscrowAddressResponse message. Also converts values to other types if specified. + * @param message QueryEscrowAddressResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.core.channel.v1.PacketId, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.applications.transfer.v1.QueryEscrowAddressResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PacketId to JSON. + * Converts this QueryEscrowAddressResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an Acknowledgement. */ - interface IAcknowledgement { - - /** Acknowledgement result */ - result?: (Uint8Array|null); + /** Properties of a QueryTotalEscrowForDenomRequest. */ + interface IQueryTotalEscrowForDenomRequest { - /** Acknowledgement error */ - error?: (string|null); + /** QueryTotalEscrowForDenomRequest denom */ + denom?: (string|null); } - /** Represents an Acknowledgement. */ - class Acknowledgement implements IAcknowledgement { + /** Represents a QueryTotalEscrowForDenomRequest. */ + class QueryTotalEscrowForDenomRequest implements IQueryTotalEscrowForDenomRequest { /** - * Constructs a new Acknowledgement. + * Constructs a new QueryTotalEscrowForDenomRequest. * @param [properties] Properties to set */ - constructor(properties?: ibc.core.channel.v1.IAcknowledgement); - - /** Acknowledgement result. */ - public result?: (Uint8Array|null); - - /** Acknowledgement error. */ - public error?: (string|null); + constructor(properties?: ibc.applications.transfer.v1.IQueryTotalEscrowForDenomRequest); - /** Acknowledgement response. */ - public response?: ("result"|"error"); + /** QueryTotalEscrowForDenomRequest denom. */ + public denom: string; /** - * Encodes the specified Acknowledgement message. Does not implicitly {@link ibc.core.channel.v1.Acknowledgement.verify|verify} messages. - * @param message Acknowledgement message or plain object to encode + * Encodes the specified QueryTotalEscrowForDenomRequest message. Does not implicitly {@link ibc.applications.transfer.v1.QueryTotalEscrowForDenomRequest.verify|verify} messages. + * @param message QueryTotalEscrowForDenomRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.core.channel.v1.IAcknowledgement, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.applications.transfer.v1.IQueryTotalEscrowForDenomRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Acknowledgement message, length delimited. Does not implicitly {@link ibc.core.channel.v1.Acknowledgement.verify|verify} messages. - * @param message Acknowledgement message or plain object to encode + * Encodes the specified QueryTotalEscrowForDenomRequest message, length delimited. Does not implicitly {@link ibc.applications.transfer.v1.QueryTotalEscrowForDenomRequest.verify|verify} messages. + * @param message QueryTotalEscrowForDenomRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.core.channel.v1.IAcknowledgement, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.applications.transfer.v1.IQueryTotalEscrowForDenomRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an Acknowledgement message from the specified reader or buffer. + * Decodes a QueryTotalEscrowForDenomRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Acknowledgement + * @returns QueryTotalEscrowForDenomRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.channel.v1.Acknowledgement; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.applications.transfer.v1.QueryTotalEscrowForDenomRequest; /** - * Decodes an Acknowledgement message from the specified reader or buffer, length delimited. + * Decodes a QueryTotalEscrowForDenomRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Acknowledgement + * @returns QueryTotalEscrowForDenomRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.channel.v1.Acknowledgement; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.applications.transfer.v1.QueryTotalEscrowForDenomRequest; /** - * Verifies an Acknowledgement message. + * Verifies a QueryTotalEscrowForDenomRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an Acknowledgement message from a plain object. Also converts values to their respective internal types. + * Creates a QueryTotalEscrowForDenomRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Acknowledgement + * @returns QueryTotalEscrowForDenomRequest */ - public static fromObject(object: { [k: string]: any }): ibc.core.channel.v1.Acknowledgement; + public static fromObject(object: { [k: string]: any }): ibc.applications.transfer.v1.QueryTotalEscrowForDenomRequest; /** - * Creates a plain object from an Acknowledgement message. Also converts values to other types if specified. - * @param message Acknowledgement + * Creates a plain object from a QueryTotalEscrowForDenomRequest message. Also converts values to other types if specified. + * @param message QueryTotalEscrowForDenomRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.core.channel.v1.Acknowledgement, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.applications.transfer.v1.QueryTotalEscrowForDenomRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Acknowledgement to JSON. + * Converts this QueryTotalEscrowForDenomRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Represents a Msg */ - class Msg extends $protobuf.rpc.Service { - - /** - * Constructs a new Msg service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + /** Properties of a QueryTotalEscrowForDenomResponse. */ + interface IQueryTotalEscrowForDenomResponse { - /** - * Calls ChannelOpenInit. - * @param request MsgChannelOpenInit message or plain object - * @param callback Node-style callback called with the error, if any, and MsgChannelOpenInitResponse - */ - public channelOpenInit(request: ibc.core.channel.v1.IMsgChannelOpenInit, callback: ibc.core.channel.v1.Msg.ChannelOpenInitCallback): void; + /** QueryTotalEscrowForDenomResponse amount */ + amount?: (cosmos.base.v1beta1.ICoin|null); + } - /** - * Calls ChannelOpenInit. - * @param request MsgChannelOpenInit message or plain object - * @returns Promise - */ - public channelOpenInit(request: ibc.core.channel.v1.IMsgChannelOpenInit): Promise; + /** Represents a QueryTotalEscrowForDenomResponse. */ + class QueryTotalEscrowForDenomResponse implements IQueryTotalEscrowForDenomResponse { /** - * Calls ChannelOpenTry. - * @param request MsgChannelOpenTry message or plain object - * @param callback Node-style callback called with the error, if any, and MsgChannelOpenTryResponse + * Constructs a new QueryTotalEscrowForDenomResponse. + * @param [properties] Properties to set */ - public channelOpenTry(request: ibc.core.channel.v1.IMsgChannelOpenTry, callback: ibc.core.channel.v1.Msg.ChannelOpenTryCallback): void; + constructor(properties?: ibc.applications.transfer.v1.IQueryTotalEscrowForDenomResponse); - /** - * Calls ChannelOpenTry. - * @param request MsgChannelOpenTry message or plain object - * @returns Promise - */ - public channelOpenTry(request: ibc.core.channel.v1.IMsgChannelOpenTry): Promise; + /** QueryTotalEscrowForDenomResponse amount. */ + public amount?: (cosmos.base.v1beta1.ICoin|null); /** - * Calls ChannelOpenAck. - * @param request MsgChannelOpenAck message or plain object - * @param callback Node-style callback called with the error, if any, and MsgChannelOpenAckResponse + * Encodes the specified QueryTotalEscrowForDenomResponse message. Does not implicitly {@link ibc.applications.transfer.v1.QueryTotalEscrowForDenomResponse.verify|verify} messages. + * @param message QueryTotalEscrowForDenomResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public channelOpenAck(request: ibc.core.channel.v1.IMsgChannelOpenAck, callback: ibc.core.channel.v1.Msg.ChannelOpenAckCallback): void; + public static encode(message: ibc.applications.transfer.v1.IQueryTotalEscrowForDenomResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls ChannelOpenAck. - * @param request MsgChannelOpenAck message or plain object - * @returns Promise + * Encodes the specified QueryTotalEscrowForDenomResponse message, length delimited. Does not implicitly {@link ibc.applications.transfer.v1.QueryTotalEscrowForDenomResponse.verify|verify} messages. + * @param message QueryTotalEscrowForDenomResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public channelOpenAck(request: ibc.core.channel.v1.IMsgChannelOpenAck): Promise; + public static encodeDelimited(message: ibc.applications.transfer.v1.IQueryTotalEscrowForDenomResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls ChannelOpenConfirm. - * @param request MsgChannelOpenConfirm message or plain object - * @param callback Node-style callback called with the error, if any, and MsgChannelOpenConfirmResponse + * Decodes a QueryTotalEscrowForDenomResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns QueryTotalEscrowForDenomResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public channelOpenConfirm(request: ibc.core.channel.v1.IMsgChannelOpenConfirm, callback: ibc.core.channel.v1.Msg.ChannelOpenConfirmCallback): void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.applications.transfer.v1.QueryTotalEscrowForDenomResponse; /** - * Calls ChannelOpenConfirm. - * @param request MsgChannelOpenConfirm message or plain object - * @returns Promise + * Decodes a QueryTotalEscrowForDenomResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns QueryTotalEscrowForDenomResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public channelOpenConfirm(request: ibc.core.channel.v1.IMsgChannelOpenConfirm): Promise; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.applications.transfer.v1.QueryTotalEscrowForDenomResponse; /** - * Calls ChannelCloseInit. - * @param request MsgChannelCloseInit message or plain object - * @param callback Node-style callback called with the error, if any, and MsgChannelCloseInitResponse + * Verifies a QueryTotalEscrowForDenomResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public channelCloseInit(request: ibc.core.channel.v1.IMsgChannelCloseInit, callback: ibc.core.channel.v1.Msg.ChannelCloseInitCallback): void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls ChannelCloseInit. - * @param request MsgChannelCloseInit message or plain object - * @returns Promise + * Creates a QueryTotalEscrowForDenomResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns QueryTotalEscrowForDenomResponse */ - public channelCloseInit(request: ibc.core.channel.v1.IMsgChannelCloseInit): Promise; + public static fromObject(object: { [k: string]: any }): ibc.applications.transfer.v1.QueryTotalEscrowForDenomResponse; /** - * Calls ChannelCloseConfirm. - * @param request MsgChannelCloseConfirm message or plain object - * @param callback Node-style callback called with the error, if any, and MsgChannelCloseConfirmResponse + * Creates a plain object from a QueryTotalEscrowForDenomResponse message. Also converts values to other types if specified. + * @param message QueryTotalEscrowForDenomResponse + * @param [options] Conversion options + * @returns Plain object */ - public channelCloseConfirm(request: ibc.core.channel.v1.IMsgChannelCloseConfirm, callback: ibc.core.channel.v1.Msg.ChannelCloseConfirmCallback): void; + public static toObject(message: ibc.applications.transfer.v1.QueryTotalEscrowForDenomResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls ChannelCloseConfirm. - * @param request MsgChannelCloseConfirm message or plain object - * @returns Promise + * Converts this QueryTotalEscrowForDenomResponse to JSON. + * @returns JSON object */ - public channelCloseConfirm(request: ibc.core.channel.v1.IMsgChannelCloseConfirm): Promise; + public toJSON(): { [k: string]: any }; + } - /** - * Calls RecvPacket. - * @param request MsgRecvPacket message or plain object - * @param callback Node-style callback called with the error, if any, and MsgRecvPacketResponse - */ - public recvPacket(request: ibc.core.channel.v1.IMsgRecvPacket, callback: ibc.core.channel.v1.Msg.RecvPacketCallback): void; + /** Properties of an Allocation. */ + interface IAllocation { - /** - * Calls RecvPacket. - * @param request MsgRecvPacket message or plain object - * @returns Promise - */ - public recvPacket(request: ibc.core.channel.v1.IMsgRecvPacket): Promise; + /** Allocation source_port */ + source_port?: (string|null); - /** - * Calls Timeout. - * @param request MsgTimeout message or plain object - * @param callback Node-style callback called with the error, if any, and MsgTimeoutResponse - */ - public timeout(request: ibc.core.channel.v1.IMsgTimeout, callback: ibc.core.channel.v1.Msg.TimeoutCallback): void; + /** Allocation source_channel */ + source_channel?: (string|null); - /** - * Calls Timeout. - * @param request MsgTimeout message or plain object - * @returns Promise - */ - public timeout(request: ibc.core.channel.v1.IMsgTimeout): Promise; + /** Allocation spend_limit */ + spend_limit?: (cosmos.base.v1beta1.ICoin[]|null); - /** - * Calls TimeoutOnClose. - * @param request MsgTimeoutOnClose message or plain object - * @param callback Node-style callback called with the error, if any, and MsgTimeoutOnCloseResponse - */ - public timeoutOnClose(request: ibc.core.channel.v1.IMsgTimeoutOnClose, callback: ibc.core.channel.v1.Msg.TimeoutOnCloseCallback): void; + /** Allocation allow_list */ + allow_list?: (string[]|null); + } - /** - * Calls TimeoutOnClose. - * @param request MsgTimeoutOnClose message or plain object - * @returns Promise - */ - public timeoutOnClose(request: ibc.core.channel.v1.IMsgTimeoutOnClose): Promise; + /** Represents an Allocation. */ + class Allocation implements IAllocation { /** - * Calls Acknowledgement. - * @param request MsgAcknowledgement message or plain object - * @param callback Node-style callback called with the error, if any, and MsgAcknowledgementResponse + * Constructs a new Allocation. + * @param [properties] Properties to set */ - public acknowledgement(request: ibc.core.channel.v1.IMsgAcknowledgement, callback: ibc.core.channel.v1.Msg.AcknowledgementCallback): void; + constructor(properties?: ibc.applications.transfer.v1.IAllocation); - /** - * Calls Acknowledgement. - * @param request MsgAcknowledgement message or plain object - * @returns Promise - */ - public acknowledgement(request: ibc.core.channel.v1.IMsgAcknowledgement): Promise; - } + /** Allocation source_port. */ + public source_port: string; - namespace Msg { + /** Allocation source_channel. */ + public source_channel: string; - /** - * Callback as used by {@link ibc.core.channel.v1.Msg#channelOpenInit}. - * @param error Error, if any - * @param [response] MsgChannelOpenInitResponse - */ - type ChannelOpenInitCallback = (error: (Error|null), response?: ibc.core.channel.v1.MsgChannelOpenInitResponse) => void; + /** Allocation spend_limit. */ + public spend_limit: cosmos.base.v1beta1.ICoin[]; - /** - * Callback as used by {@link ibc.core.channel.v1.Msg#channelOpenTry}. - * @param error Error, if any - * @param [response] MsgChannelOpenTryResponse - */ - type ChannelOpenTryCallback = (error: (Error|null), response?: ibc.core.channel.v1.MsgChannelOpenTryResponse) => void; + /** Allocation allow_list. */ + public allow_list: string[]; /** - * Callback as used by {@link ibc.core.channel.v1.Msg#channelOpenAck}. - * @param error Error, if any - * @param [response] MsgChannelOpenAckResponse + * Encodes the specified Allocation message. Does not implicitly {@link ibc.applications.transfer.v1.Allocation.verify|verify} messages. + * @param message Allocation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - type ChannelOpenAckCallback = (error: (Error|null), response?: ibc.core.channel.v1.MsgChannelOpenAckResponse) => void; + public static encode(message: ibc.applications.transfer.v1.IAllocation, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link ibc.core.channel.v1.Msg#channelOpenConfirm}. - * @param error Error, if any - * @param [response] MsgChannelOpenConfirmResponse + * Encodes the specified Allocation message, length delimited. Does not implicitly {@link ibc.applications.transfer.v1.Allocation.verify|verify} messages. + * @param message Allocation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - type ChannelOpenConfirmCallback = (error: (Error|null), response?: ibc.core.channel.v1.MsgChannelOpenConfirmResponse) => void; + public static encodeDelimited(message: ibc.applications.transfer.v1.IAllocation, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link ibc.core.channel.v1.Msg#channelCloseInit}. - * @param error Error, if any - * @param [response] MsgChannelCloseInitResponse + * Decodes an Allocation message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Allocation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type ChannelCloseInitCallback = (error: (Error|null), response?: ibc.core.channel.v1.MsgChannelCloseInitResponse) => void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.applications.transfer.v1.Allocation; /** - * Callback as used by {@link ibc.core.channel.v1.Msg#channelCloseConfirm}. - * @param error Error, if any - * @param [response] MsgChannelCloseConfirmResponse + * Decodes an Allocation message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Allocation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type ChannelCloseConfirmCallback = (error: (Error|null), response?: ibc.core.channel.v1.MsgChannelCloseConfirmResponse) => void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.applications.transfer.v1.Allocation; /** - * Callback as used by {@link ibc.core.channel.v1.Msg#recvPacket}. - * @param error Error, if any - * @param [response] MsgRecvPacketResponse + * Verifies an Allocation message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - type RecvPacketCallback = (error: (Error|null), response?: ibc.core.channel.v1.MsgRecvPacketResponse) => void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Callback as used by {@link ibc.core.channel.v1.Msg#timeout}. - * @param error Error, if any - * @param [response] MsgTimeoutResponse + * Creates an Allocation message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Allocation */ - type TimeoutCallback = (error: (Error|null), response?: ibc.core.channel.v1.MsgTimeoutResponse) => void; + public static fromObject(object: { [k: string]: any }): ibc.applications.transfer.v1.Allocation; /** - * Callback as used by {@link ibc.core.channel.v1.Msg#timeoutOnClose}. - * @param error Error, if any - * @param [response] MsgTimeoutOnCloseResponse + * Creates a plain object from an Allocation message. Also converts values to other types if specified. + * @param message Allocation + * @param [options] Conversion options + * @returns Plain object */ - type TimeoutOnCloseCallback = (error: (Error|null), response?: ibc.core.channel.v1.MsgTimeoutOnCloseResponse) => void; + public static toObject(message: ibc.applications.transfer.v1.Allocation, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Callback as used by {@link ibc.core.channel.v1.Msg#acknowledgement}. - * @param error Error, if any - * @param [response] MsgAcknowledgementResponse + * Converts this Allocation to JSON. + * @returns JSON object */ - type AcknowledgementCallback = (error: (Error|null), response?: ibc.core.channel.v1.MsgAcknowledgementResponse) => void; - } - - /** ResponseResultType enum. */ - enum ResponseResultType { - RESPONSE_RESULT_TYPE_UNSPECIFIED = 0, - RESPONSE_RESULT_TYPE_NOOP = 1, - RESPONSE_RESULT_TYPE_SUCCESS = 2 + public toJSON(): { [k: string]: any }; } - /** Properties of a MsgChannelOpenInit. */ - interface IMsgChannelOpenInit { - - /** MsgChannelOpenInit port_id */ - port_id?: (string|null); - - /** MsgChannelOpenInit channel */ - channel?: (ibc.core.channel.v1.IChannel|null); + /** Properties of a TransferAuthorization. */ + interface ITransferAuthorization { - /** MsgChannelOpenInit signer */ - signer?: (string|null); + /** TransferAuthorization allocations */ + allocations?: (ibc.applications.transfer.v1.IAllocation[]|null); } - /** Represents a MsgChannelOpenInit. */ - class MsgChannelOpenInit implements IMsgChannelOpenInit { + /** Represents a TransferAuthorization. */ + class TransferAuthorization implements ITransferAuthorization { /** - * Constructs a new MsgChannelOpenInit. + * Constructs a new TransferAuthorization. * @param [properties] Properties to set */ - constructor(properties?: ibc.core.channel.v1.IMsgChannelOpenInit); - - /** MsgChannelOpenInit port_id. */ - public port_id: string; - - /** MsgChannelOpenInit channel. */ - public channel?: (ibc.core.channel.v1.IChannel|null); + constructor(properties?: ibc.applications.transfer.v1.ITransferAuthorization); - /** MsgChannelOpenInit signer. */ - public signer: string; + /** TransferAuthorization allocations. */ + public allocations: ibc.applications.transfer.v1.IAllocation[]; /** - * Encodes the specified MsgChannelOpenInit message. Does not implicitly {@link ibc.core.channel.v1.MsgChannelOpenInit.verify|verify} messages. - * @param message MsgChannelOpenInit message or plain object to encode + * Encodes the specified TransferAuthorization message. Does not implicitly {@link ibc.applications.transfer.v1.TransferAuthorization.verify|verify} messages. + * @param message TransferAuthorization message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.core.channel.v1.IMsgChannelOpenInit, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.applications.transfer.v1.ITransferAuthorization, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MsgChannelOpenInit message, length delimited. Does not implicitly {@link ibc.core.channel.v1.MsgChannelOpenInit.verify|verify} messages. - * @param message MsgChannelOpenInit message or plain object to encode + * Encodes the specified TransferAuthorization message, length delimited. Does not implicitly {@link ibc.applications.transfer.v1.TransferAuthorization.verify|verify} messages. + * @param message TransferAuthorization message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.core.channel.v1.IMsgChannelOpenInit, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.applications.transfer.v1.ITransferAuthorization, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MsgChannelOpenInit message from the specified reader or buffer. + * Decodes a TransferAuthorization message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MsgChannelOpenInit + * @returns TransferAuthorization * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.channel.v1.MsgChannelOpenInit; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.applications.transfer.v1.TransferAuthorization; /** - * Decodes a MsgChannelOpenInit message from the specified reader or buffer, length delimited. + * Decodes a TransferAuthorization message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MsgChannelOpenInit + * @returns TransferAuthorization * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.channel.v1.MsgChannelOpenInit; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.applications.transfer.v1.TransferAuthorization; /** - * Verifies a MsgChannelOpenInit message. + * Verifies a TransferAuthorization message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a MsgChannelOpenInit message from a plain object. Also converts values to their respective internal types. + * Creates a TransferAuthorization message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MsgChannelOpenInit + * @returns TransferAuthorization */ - public static fromObject(object: { [k: string]: any }): ibc.core.channel.v1.MsgChannelOpenInit; + public static fromObject(object: { [k: string]: any }): ibc.applications.transfer.v1.TransferAuthorization; /** - * Creates a plain object from a MsgChannelOpenInit message. Also converts values to other types if specified. - * @param message MsgChannelOpenInit + * Creates a plain object from a TransferAuthorization message. Also converts values to other types if specified. + * @param message TransferAuthorization * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.core.channel.v1.MsgChannelOpenInit, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.applications.transfer.v1.TransferAuthorization, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MsgChannelOpenInit to JSON. + * Converts this TransferAuthorization to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a MsgChannelOpenInitResponse. */ - interface IMsgChannelOpenInitResponse { + /** Properties of a GenesisState. */ + interface IGenesisState { - /** MsgChannelOpenInitResponse channel_id */ - channel_id?: (string|null); + /** GenesisState port_id */ + port_id?: (string|null); - /** MsgChannelOpenInitResponse version */ - version?: (string|null); + /** GenesisState denom_traces */ + denom_traces?: (ibc.applications.transfer.v1.IDenomTrace[]|null); + + /** GenesisState params */ + params?: (ibc.applications.transfer.v1.IParams|null); + + /** GenesisState total_escrowed */ + total_escrowed?: (cosmos.base.v1beta1.ICoin[]|null); } - /** Represents a MsgChannelOpenInitResponse. */ - class MsgChannelOpenInitResponse implements IMsgChannelOpenInitResponse { + /** Represents a GenesisState. */ + class GenesisState implements IGenesisState { /** - * Constructs a new MsgChannelOpenInitResponse. + * Constructs a new GenesisState. * @param [properties] Properties to set */ - constructor(properties?: ibc.core.channel.v1.IMsgChannelOpenInitResponse); + constructor(properties?: ibc.applications.transfer.v1.IGenesisState); - /** MsgChannelOpenInitResponse channel_id. */ - public channel_id: string; + /** GenesisState port_id. */ + public port_id: string; - /** MsgChannelOpenInitResponse version. */ - public version: string; + /** GenesisState denom_traces. */ + public denom_traces: ibc.applications.transfer.v1.IDenomTrace[]; + + /** GenesisState params. */ + public params?: (ibc.applications.transfer.v1.IParams|null); + + /** GenesisState total_escrowed. */ + public total_escrowed: cosmos.base.v1beta1.ICoin[]; /** - * Encodes the specified MsgChannelOpenInitResponse message. Does not implicitly {@link ibc.core.channel.v1.MsgChannelOpenInitResponse.verify|verify} messages. - * @param message MsgChannelOpenInitResponse message or plain object to encode + * Encodes the specified GenesisState message. Does not implicitly {@link ibc.applications.transfer.v1.GenesisState.verify|verify} messages. + * @param message GenesisState message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.core.channel.v1.IMsgChannelOpenInitResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.applications.transfer.v1.IGenesisState, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MsgChannelOpenInitResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.MsgChannelOpenInitResponse.verify|verify} messages. - * @param message MsgChannelOpenInitResponse message or plain object to encode + * Encodes the specified GenesisState message, length delimited. Does not implicitly {@link ibc.applications.transfer.v1.GenesisState.verify|verify} messages. + * @param message GenesisState message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.core.channel.v1.IMsgChannelOpenInitResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.applications.transfer.v1.IGenesisState, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MsgChannelOpenInitResponse message from the specified reader or buffer. + * Decodes a GenesisState message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MsgChannelOpenInitResponse + * @returns GenesisState * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.channel.v1.MsgChannelOpenInitResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.applications.transfer.v1.GenesisState; /** - * Decodes a MsgChannelOpenInitResponse message from the specified reader or buffer, length delimited. + * Decodes a GenesisState message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MsgChannelOpenInitResponse + * @returns GenesisState * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.channel.v1.MsgChannelOpenInitResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.applications.transfer.v1.GenesisState; /** - * Verifies a MsgChannelOpenInitResponse message. + * Verifies a GenesisState message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a MsgChannelOpenInitResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GenesisState message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MsgChannelOpenInitResponse + * @returns GenesisState */ - public static fromObject(object: { [k: string]: any }): ibc.core.channel.v1.MsgChannelOpenInitResponse; + public static fromObject(object: { [k: string]: any }): ibc.applications.transfer.v1.GenesisState; /** - * Creates a plain object from a MsgChannelOpenInitResponse message. Also converts values to other types if specified. - * @param message MsgChannelOpenInitResponse + * Creates a plain object from a GenesisState message. Also converts values to other types if specified. + * @param message GenesisState * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.core.channel.v1.MsgChannelOpenInitResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.applications.transfer.v1.GenesisState, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MsgChannelOpenInitResponse to JSON. + * Converts this GenesisState to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } + } - /** Properties of a MsgChannelOpenTry. */ - interface IMsgChannelOpenTry { - - /** MsgChannelOpenTry port_id */ - port_id?: (string|null); + /** Namespace v2. */ + namespace v2 { - /** MsgChannelOpenTry previous_channel_id */ - previous_channel_id?: (string|null); + /** Properties of a FungibleTokenPacketData. */ + interface IFungibleTokenPacketData { - /** MsgChannelOpenTry channel */ - channel?: (ibc.core.channel.v1.IChannel|null); + /** FungibleTokenPacketData denom */ + denom?: (string|null); - /** MsgChannelOpenTry counterparty_version */ - counterparty_version?: (string|null); + /** FungibleTokenPacketData amount */ + amount?: (string|null); - /** MsgChannelOpenTry proof_init */ - proof_init?: (Uint8Array|null); + /** FungibleTokenPacketData sender */ + sender?: (string|null); - /** MsgChannelOpenTry proof_height */ - proof_height?: (ibc.core.client.v1.IHeight|null); + /** FungibleTokenPacketData receiver */ + receiver?: (string|null); - /** MsgChannelOpenTry signer */ - signer?: (string|null); + /** FungibleTokenPacketData memo */ + memo?: (string|null); } - /** Represents a MsgChannelOpenTry. */ - class MsgChannelOpenTry implements IMsgChannelOpenTry { + /** Represents a FungibleTokenPacketData. */ + class FungibleTokenPacketData implements IFungibleTokenPacketData { /** - * Constructs a new MsgChannelOpenTry. + * Constructs a new FungibleTokenPacketData. * @param [properties] Properties to set */ - constructor(properties?: ibc.core.channel.v1.IMsgChannelOpenTry); - - /** MsgChannelOpenTry port_id. */ - public port_id: string; - - /** MsgChannelOpenTry previous_channel_id. */ - public previous_channel_id: string; + constructor(properties?: ibc.applications.transfer.v2.IFungibleTokenPacketData); - /** MsgChannelOpenTry channel. */ - public channel?: (ibc.core.channel.v1.IChannel|null); + /** FungibleTokenPacketData denom. */ + public denom: string; - /** MsgChannelOpenTry counterparty_version. */ - public counterparty_version: string; + /** FungibleTokenPacketData amount. */ + public amount: string; - /** MsgChannelOpenTry proof_init. */ - public proof_init: Uint8Array; + /** FungibleTokenPacketData sender. */ + public sender: string; - /** MsgChannelOpenTry proof_height. */ - public proof_height?: (ibc.core.client.v1.IHeight|null); + /** FungibleTokenPacketData receiver. */ + public receiver: string; - /** MsgChannelOpenTry signer. */ - public signer: string; + /** FungibleTokenPacketData memo. */ + public memo: string; /** - * Encodes the specified MsgChannelOpenTry message. Does not implicitly {@link ibc.core.channel.v1.MsgChannelOpenTry.verify|verify} messages. - * @param message MsgChannelOpenTry message or plain object to encode + * Encodes the specified FungibleTokenPacketData message. Does not implicitly {@link ibc.applications.transfer.v2.FungibleTokenPacketData.verify|verify} messages. + * @param message FungibleTokenPacketData message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.core.channel.v1.IMsgChannelOpenTry, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.applications.transfer.v2.IFungibleTokenPacketData, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MsgChannelOpenTry message, length delimited. Does not implicitly {@link ibc.core.channel.v1.MsgChannelOpenTry.verify|verify} messages. - * @param message MsgChannelOpenTry message or plain object to encode + * Encodes the specified FungibleTokenPacketData message, length delimited. Does not implicitly {@link ibc.applications.transfer.v2.FungibleTokenPacketData.verify|verify} messages. + * @param message FungibleTokenPacketData message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.core.channel.v1.IMsgChannelOpenTry, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.applications.transfer.v2.IFungibleTokenPacketData, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MsgChannelOpenTry message from the specified reader or buffer. + * Decodes a FungibleTokenPacketData message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MsgChannelOpenTry + * @returns FungibleTokenPacketData * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.channel.v1.MsgChannelOpenTry; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.applications.transfer.v2.FungibleTokenPacketData; /** - * Decodes a MsgChannelOpenTry message from the specified reader or buffer, length delimited. + * Decodes a FungibleTokenPacketData message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MsgChannelOpenTry + * @returns FungibleTokenPacketData * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.channel.v1.MsgChannelOpenTry; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.applications.transfer.v2.FungibleTokenPacketData; /** - * Verifies a MsgChannelOpenTry message. + * Verifies a FungibleTokenPacketData message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a MsgChannelOpenTry message from a plain object. Also converts values to their respective internal types. + * Creates a FungibleTokenPacketData message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MsgChannelOpenTry + * @returns FungibleTokenPacketData */ - public static fromObject(object: { [k: string]: any }): ibc.core.channel.v1.MsgChannelOpenTry; + public static fromObject(object: { [k: string]: any }): ibc.applications.transfer.v2.FungibleTokenPacketData; /** - * Creates a plain object from a MsgChannelOpenTry message. Also converts values to other types if specified. - * @param message MsgChannelOpenTry + * Creates a plain object from a FungibleTokenPacketData message. Also converts values to other types if specified. + * @param message FungibleTokenPacketData * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.core.channel.v1.MsgChannelOpenTry, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.applications.transfer.v2.FungibleTokenPacketData, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FungibleTokenPacketData to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } + } + } + + /** Namespace core. */ + namespace core { + + /** Namespace channel. */ + namespace channel { + + /** Namespace v1. */ + namespace v1 { + + /** Properties of a Channel. */ + interface IChannel { + + /** Channel state */ + state?: (ibc.core.channel.v1.State|null); + + /** Channel ordering */ + ordering?: (ibc.core.channel.v1.Order|null); - /** - * Converts this MsgChannelOpenTry to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** Channel counterparty */ + counterparty?: (ibc.core.channel.v1.ICounterparty|null); - /** Properties of a MsgChannelOpenTryResponse. */ - interface IMsgChannelOpenTryResponse { + /** Channel connection_hops */ + connection_hops?: (string[]|null); - /** MsgChannelOpenTryResponse version */ + /** Channel version */ version?: (string|null); } - /** Represents a MsgChannelOpenTryResponse. */ - class MsgChannelOpenTryResponse implements IMsgChannelOpenTryResponse { + /** Represents a Channel. */ + class Channel implements IChannel { /** - * Constructs a new MsgChannelOpenTryResponse. + * Constructs a new Channel. * @param [properties] Properties to set */ - constructor(properties?: ibc.core.channel.v1.IMsgChannelOpenTryResponse); + constructor(properties?: ibc.core.channel.v1.IChannel); - /** MsgChannelOpenTryResponse version. */ + /** Channel state. */ + public state: ibc.core.channel.v1.State; + + /** Channel ordering. */ + public ordering: ibc.core.channel.v1.Order; + + /** Channel counterparty. */ + public counterparty?: (ibc.core.channel.v1.ICounterparty|null); + + /** Channel connection_hops. */ + public connection_hops: string[]; + + /** Channel version. */ public version: string; /** - * Encodes the specified MsgChannelOpenTryResponse message. Does not implicitly {@link ibc.core.channel.v1.MsgChannelOpenTryResponse.verify|verify} messages. - * @param message MsgChannelOpenTryResponse message or plain object to encode + * Encodes the specified Channel message. Does not implicitly {@link ibc.core.channel.v1.Channel.verify|verify} messages. + * @param message Channel message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.core.channel.v1.IMsgChannelOpenTryResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.core.channel.v1.IChannel, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MsgChannelOpenTryResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.MsgChannelOpenTryResponse.verify|verify} messages. - * @param message MsgChannelOpenTryResponse message or plain object to encode + * Encodes the specified Channel message, length delimited. Does not implicitly {@link ibc.core.channel.v1.Channel.verify|verify} messages. + * @param message Channel message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.core.channel.v1.IMsgChannelOpenTryResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.core.channel.v1.IChannel, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MsgChannelOpenTryResponse message from the specified reader or buffer. + * Decodes a Channel message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MsgChannelOpenTryResponse + * @returns Channel * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.channel.v1.MsgChannelOpenTryResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.channel.v1.Channel; /** - * Decodes a MsgChannelOpenTryResponse message from the specified reader or buffer, length delimited. + * Decodes a Channel message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MsgChannelOpenTryResponse + * @returns Channel * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.channel.v1.MsgChannelOpenTryResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.channel.v1.Channel; /** - * Verifies a MsgChannelOpenTryResponse message. + * Verifies a Channel message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a MsgChannelOpenTryResponse message from a plain object. Also converts values to their respective internal types. + * Creates a Channel message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MsgChannelOpenTryResponse + * @returns Channel */ - public static fromObject(object: { [k: string]: any }): ibc.core.channel.v1.MsgChannelOpenTryResponse; + public static fromObject(object: { [k: string]: any }): ibc.core.channel.v1.Channel; /** - * Creates a plain object from a MsgChannelOpenTryResponse message. Also converts values to other types if specified. - * @param message MsgChannelOpenTryResponse + * Creates a plain object from a Channel message. Also converts values to other types if specified. + * @param message Channel * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.core.channel.v1.MsgChannelOpenTryResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.core.channel.v1.Channel, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MsgChannelOpenTryResponse to JSON. + * Converts this Channel to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a MsgChannelOpenAck. */ - interface IMsgChannelOpenAck { + /** Properties of an IdentifiedChannel. */ + interface IIdentifiedChannel { - /** MsgChannelOpenAck port_id */ - port_id?: (string|null); + /** IdentifiedChannel state */ + state?: (ibc.core.channel.v1.State|null); - /** MsgChannelOpenAck channel_id */ - channel_id?: (string|null); + /** IdentifiedChannel ordering */ + ordering?: (ibc.core.channel.v1.Order|null); - /** MsgChannelOpenAck counterparty_channel_id */ - counterparty_channel_id?: (string|null); + /** IdentifiedChannel counterparty */ + counterparty?: (ibc.core.channel.v1.ICounterparty|null); - /** MsgChannelOpenAck counterparty_version */ - counterparty_version?: (string|null); + /** IdentifiedChannel connection_hops */ + connection_hops?: (string[]|null); - /** MsgChannelOpenAck proof_try */ - proof_try?: (Uint8Array|null); + /** IdentifiedChannel version */ + version?: (string|null); - /** MsgChannelOpenAck proof_height */ - proof_height?: (ibc.core.client.v1.IHeight|null); + /** IdentifiedChannel port_id */ + port_id?: (string|null); - /** MsgChannelOpenAck signer */ - signer?: (string|null); + /** IdentifiedChannel channel_id */ + channel_id?: (string|null); } - /** Represents a MsgChannelOpenAck. */ - class MsgChannelOpenAck implements IMsgChannelOpenAck { + /** Represents an IdentifiedChannel. */ + class IdentifiedChannel implements IIdentifiedChannel { /** - * Constructs a new MsgChannelOpenAck. + * Constructs a new IdentifiedChannel. * @param [properties] Properties to set */ - constructor(properties?: ibc.core.channel.v1.IMsgChannelOpenAck); + constructor(properties?: ibc.core.channel.v1.IIdentifiedChannel); - /** MsgChannelOpenAck port_id. */ - public port_id: string; + /** IdentifiedChannel state. */ + public state: ibc.core.channel.v1.State; - /** MsgChannelOpenAck channel_id. */ - public channel_id: string; + /** IdentifiedChannel ordering. */ + public ordering: ibc.core.channel.v1.Order; - /** MsgChannelOpenAck counterparty_channel_id. */ - public counterparty_channel_id: string; + /** IdentifiedChannel counterparty. */ + public counterparty?: (ibc.core.channel.v1.ICounterparty|null); - /** MsgChannelOpenAck counterparty_version. */ - public counterparty_version: string; + /** IdentifiedChannel connection_hops. */ + public connection_hops: string[]; - /** MsgChannelOpenAck proof_try. */ - public proof_try: Uint8Array; + /** IdentifiedChannel version. */ + public version: string; - /** MsgChannelOpenAck proof_height. */ - public proof_height?: (ibc.core.client.v1.IHeight|null); + /** IdentifiedChannel port_id. */ + public port_id: string; - /** MsgChannelOpenAck signer. */ - public signer: string; + /** IdentifiedChannel channel_id. */ + public channel_id: string; /** - * Encodes the specified MsgChannelOpenAck message. Does not implicitly {@link ibc.core.channel.v1.MsgChannelOpenAck.verify|verify} messages. - * @param message MsgChannelOpenAck message or plain object to encode + * Encodes the specified IdentifiedChannel message. Does not implicitly {@link ibc.core.channel.v1.IdentifiedChannel.verify|verify} messages. + * @param message IdentifiedChannel message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.core.channel.v1.IMsgChannelOpenAck, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.core.channel.v1.IIdentifiedChannel, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MsgChannelOpenAck message, length delimited. Does not implicitly {@link ibc.core.channel.v1.MsgChannelOpenAck.verify|verify} messages. - * @param message MsgChannelOpenAck message or plain object to encode + * Encodes the specified IdentifiedChannel message, length delimited. Does not implicitly {@link ibc.core.channel.v1.IdentifiedChannel.verify|verify} messages. + * @param message IdentifiedChannel message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.core.channel.v1.IMsgChannelOpenAck, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.core.channel.v1.IIdentifiedChannel, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MsgChannelOpenAck message from the specified reader or buffer. + * Decodes an IdentifiedChannel message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MsgChannelOpenAck + * @returns IdentifiedChannel * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.channel.v1.MsgChannelOpenAck; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.channel.v1.IdentifiedChannel; /** - * Decodes a MsgChannelOpenAck message from the specified reader or buffer, length delimited. + * Decodes an IdentifiedChannel message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MsgChannelOpenAck + * @returns IdentifiedChannel * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.channel.v1.MsgChannelOpenAck; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.channel.v1.IdentifiedChannel; /** - * Verifies a MsgChannelOpenAck message. + * Verifies an IdentifiedChannel message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a MsgChannelOpenAck message from a plain object. Also converts values to their respective internal types. + * Creates an IdentifiedChannel message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MsgChannelOpenAck + * @returns IdentifiedChannel */ - public static fromObject(object: { [k: string]: any }): ibc.core.channel.v1.MsgChannelOpenAck; + public static fromObject(object: { [k: string]: any }): ibc.core.channel.v1.IdentifiedChannel; /** - * Creates a plain object from a MsgChannelOpenAck message. Also converts values to other types if specified. - * @param message MsgChannelOpenAck + * Creates a plain object from an IdentifiedChannel message. Also converts values to other types if specified. + * @param message IdentifiedChannel * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.core.channel.v1.MsgChannelOpenAck, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.core.channel.v1.IdentifiedChannel, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MsgChannelOpenAck to JSON. + * Converts this IdentifiedChannel to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a MsgChannelOpenAckResponse. */ - interface IMsgChannelOpenAckResponse { + /** State enum. */ + enum State { + STATE_UNINITIALIZED_UNSPECIFIED = 0, + STATE_INIT = 1, + STATE_TRYOPEN = 2, + STATE_OPEN = 3, + STATE_CLOSED = 4 } - /** Represents a MsgChannelOpenAckResponse. */ - class MsgChannelOpenAckResponse implements IMsgChannelOpenAckResponse { + /** Order enum. */ + enum Order { + ORDER_NONE_UNSPECIFIED = 0, + ORDER_UNORDERED = 1, + ORDER_ORDERED = 2 + } + + /** Properties of a Counterparty. */ + interface ICounterparty { + + /** Counterparty port_id */ + port_id?: (string|null); + + /** Counterparty channel_id */ + channel_id?: (string|null); + } + + /** Represents a Counterparty. */ + class Counterparty implements ICounterparty { /** - * Constructs a new MsgChannelOpenAckResponse. + * Constructs a new Counterparty. * @param [properties] Properties to set */ - constructor(properties?: ibc.core.channel.v1.IMsgChannelOpenAckResponse); + constructor(properties?: ibc.core.channel.v1.ICounterparty); + + /** Counterparty port_id. */ + public port_id: string; + + /** Counterparty channel_id. */ + public channel_id: string; /** - * Encodes the specified MsgChannelOpenAckResponse message. Does not implicitly {@link ibc.core.channel.v1.MsgChannelOpenAckResponse.verify|verify} messages. - * @param message MsgChannelOpenAckResponse message or plain object to encode + * Encodes the specified Counterparty message. Does not implicitly {@link ibc.core.channel.v1.Counterparty.verify|verify} messages. + * @param message Counterparty message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.core.channel.v1.IMsgChannelOpenAckResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.core.channel.v1.ICounterparty, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MsgChannelOpenAckResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.MsgChannelOpenAckResponse.verify|verify} messages. - * @param message MsgChannelOpenAckResponse message or plain object to encode + * Encodes the specified Counterparty message, length delimited. Does not implicitly {@link ibc.core.channel.v1.Counterparty.verify|verify} messages. + * @param message Counterparty message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.core.channel.v1.IMsgChannelOpenAckResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.core.channel.v1.ICounterparty, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MsgChannelOpenAckResponse message from the specified reader or buffer. + * Decodes a Counterparty message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MsgChannelOpenAckResponse + * @returns Counterparty * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.channel.v1.MsgChannelOpenAckResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.channel.v1.Counterparty; /** - * Decodes a MsgChannelOpenAckResponse message from the specified reader or buffer, length delimited. + * Decodes a Counterparty message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MsgChannelOpenAckResponse + * @returns Counterparty * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.channel.v1.MsgChannelOpenAckResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.channel.v1.Counterparty; /** - * Verifies a MsgChannelOpenAckResponse message. + * Verifies a Counterparty message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a MsgChannelOpenAckResponse message from a plain object. Also converts values to their respective internal types. + * Creates a Counterparty message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MsgChannelOpenAckResponse + * @returns Counterparty */ - public static fromObject(object: { [k: string]: any }): ibc.core.channel.v1.MsgChannelOpenAckResponse; + public static fromObject(object: { [k: string]: any }): ibc.core.channel.v1.Counterparty; /** - * Creates a plain object from a MsgChannelOpenAckResponse message. Also converts values to other types if specified. - * @param message MsgChannelOpenAckResponse + * Creates a plain object from a Counterparty message. Also converts values to other types if specified. + * @param message Counterparty * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.core.channel.v1.MsgChannelOpenAckResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.core.channel.v1.Counterparty, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MsgChannelOpenAckResponse to JSON. + * Converts this Counterparty to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a MsgChannelOpenConfirm. */ - interface IMsgChannelOpenConfirm { + /** Properties of a Packet. */ + interface IPacket { - /** MsgChannelOpenConfirm port_id */ - port_id?: (string|null); + /** Packet sequence */ + sequence?: (Long|null); - /** MsgChannelOpenConfirm channel_id */ - channel_id?: (string|null); + /** Packet source_port */ + source_port?: (string|null); - /** MsgChannelOpenConfirm proof_ack */ - proof_ack?: (Uint8Array|null); + /** Packet source_channel */ + source_channel?: (string|null); - /** MsgChannelOpenConfirm proof_height */ - proof_height?: (ibc.core.client.v1.IHeight|null); + /** Packet destination_port */ + destination_port?: (string|null); - /** MsgChannelOpenConfirm signer */ - signer?: (string|null); + /** Packet destination_channel */ + destination_channel?: (string|null); + + /** Packet data */ + data?: (Uint8Array|null); + + /** Packet timeout_height */ + timeout_height?: (ibc.core.client.v1.IHeight|null); + + /** Packet timeout_timestamp */ + timeout_timestamp?: (Long|null); } - /** Represents a MsgChannelOpenConfirm. */ - class MsgChannelOpenConfirm implements IMsgChannelOpenConfirm { + /** Represents a Packet. */ + class Packet implements IPacket { /** - * Constructs a new MsgChannelOpenConfirm. + * Constructs a new Packet. * @param [properties] Properties to set */ - constructor(properties?: ibc.core.channel.v1.IMsgChannelOpenConfirm); + constructor(properties?: ibc.core.channel.v1.IPacket); - /** MsgChannelOpenConfirm port_id. */ - public port_id: string; + /** Packet sequence. */ + public sequence: Long; - /** MsgChannelOpenConfirm channel_id. */ - public channel_id: string; + /** Packet source_port. */ + public source_port: string; - /** MsgChannelOpenConfirm proof_ack. */ - public proof_ack: Uint8Array; + /** Packet source_channel. */ + public source_channel: string; - /** MsgChannelOpenConfirm proof_height. */ - public proof_height?: (ibc.core.client.v1.IHeight|null); + /** Packet destination_port. */ + public destination_port: string; - /** MsgChannelOpenConfirm signer. */ - public signer: string; + /** Packet destination_channel. */ + public destination_channel: string; + + /** Packet data. */ + public data: Uint8Array; + + /** Packet timeout_height. */ + public timeout_height?: (ibc.core.client.v1.IHeight|null); + + /** Packet timeout_timestamp. */ + public timeout_timestamp: Long; /** - * Encodes the specified MsgChannelOpenConfirm message. Does not implicitly {@link ibc.core.channel.v1.MsgChannelOpenConfirm.verify|verify} messages. - * @param message MsgChannelOpenConfirm message or plain object to encode + * Encodes the specified Packet message. Does not implicitly {@link ibc.core.channel.v1.Packet.verify|verify} messages. + * @param message Packet message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.core.channel.v1.IMsgChannelOpenConfirm, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.core.channel.v1.IPacket, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MsgChannelOpenConfirm message, length delimited. Does not implicitly {@link ibc.core.channel.v1.MsgChannelOpenConfirm.verify|verify} messages. - * @param message MsgChannelOpenConfirm message or plain object to encode + * Encodes the specified Packet message, length delimited. Does not implicitly {@link ibc.core.channel.v1.Packet.verify|verify} messages. + * @param message Packet message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.core.channel.v1.IMsgChannelOpenConfirm, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.core.channel.v1.IPacket, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MsgChannelOpenConfirm message from the specified reader or buffer. + * Decodes a Packet message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MsgChannelOpenConfirm + * @returns Packet * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.channel.v1.MsgChannelOpenConfirm; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.channel.v1.Packet; /** - * Decodes a MsgChannelOpenConfirm message from the specified reader or buffer, length delimited. + * Decodes a Packet message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MsgChannelOpenConfirm + * @returns Packet * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.channel.v1.MsgChannelOpenConfirm; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.channel.v1.Packet; /** - * Verifies a MsgChannelOpenConfirm message. + * Verifies a Packet message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a MsgChannelOpenConfirm message from a plain object. Also converts values to their respective internal types. + * Creates a Packet message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MsgChannelOpenConfirm + * @returns Packet */ - public static fromObject(object: { [k: string]: any }): ibc.core.channel.v1.MsgChannelOpenConfirm; + public static fromObject(object: { [k: string]: any }): ibc.core.channel.v1.Packet; /** - * Creates a plain object from a MsgChannelOpenConfirm message. Also converts values to other types if specified. - * @param message MsgChannelOpenConfirm + * Creates a plain object from a Packet message. Also converts values to other types if specified. + * @param message Packet * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.core.channel.v1.MsgChannelOpenConfirm, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.core.channel.v1.Packet, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MsgChannelOpenConfirm to JSON. + * Converts this Packet to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a MsgChannelOpenConfirmResponse. */ - interface IMsgChannelOpenConfirmResponse { + /** Properties of a PacketState. */ + interface IPacketState { + + /** PacketState port_id */ + port_id?: (string|null); + + /** PacketState channel_id */ + channel_id?: (string|null); + + /** PacketState sequence */ + sequence?: (Long|null); + + /** PacketState data */ + data?: (Uint8Array|null); } - /** Represents a MsgChannelOpenConfirmResponse. */ - class MsgChannelOpenConfirmResponse implements IMsgChannelOpenConfirmResponse { + /** Represents a PacketState. */ + class PacketState implements IPacketState { /** - * Constructs a new MsgChannelOpenConfirmResponse. + * Constructs a new PacketState. * @param [properties] Properties to set */ - constructor(properties?: ibc.core.channel.v1.IMsgChannelOpenConfirmResponse); + constructor(properties?: ibc.core.channel.v1.IPacketState); + + /** PacketState port_id. */ + public port_id: string; + + /** PacketState channel_id. */ + public channel_id: string; + + /** PacketState sequence. */ + public sequence: Long; + + /** PacketState data. */ + public data: Uint8Array; /** - * Encodes the specified MsgChannelOpenConfirmResponse message. Does not implicitly {@link ibc.core.channel.v1.MsgChannelOpenConfirmResponse.verify|verify} messages. - * @param message MsgChannelOpenConfirmResponse message or plain object to encode + * Encodes the specified PacketState message. Does not implicitly {@link ibc.core.channel.v1.PacketState.verify|verify} messages. + * @param message PacketState message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.core.channel.v1.IMsgChannelOpenConfirmResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.core.channel.v1.IPacketState, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MsgChannelOpenConfirmResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.MsgChannelOpenConfirmResponse.verify|verify} messages. - * @param message MsgChannelOpenConfirmResponse message or plain object to encode + * Encodes the specified PacketState message, length delimited. Does not implicitly {@link ibc.core.channel.v1.PacketState.verify|verify} messages. + * @param message PacketState message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.core.channel.v1.IMsgChannelOpenConfirmResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.core.channel.v1.IPacketState, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MsgChannelOpenConfirmResponse message from the specified reader or buffer. + * Decodes a PacketState message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MsgChannelOpenConfirmResponse + * @returns PacketState * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.channel.v1.MsgChannelOpenConfirmResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.channel.v1.PacketState; /** - * Decodes a MsgChannelOpenConfirmResponse message from the specified reader or buffer, length delimited. + * Decodes a PacketState message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MsgChannelOpenConfirmResponse + * @returns PacketState * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.channel.v1.MsgChannelOpenConfirmResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.channel.v1.PacketState; /** - * Verifies a MsgChannelOpenConfirmResponse message. + * Verifies a PacketState message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a MsgChannelOpenConfirmResponse message from a plain object. Also converts values to their respective internal types. + * Creates a PacketState message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MsgChannelOpenConfirmResponse + * @returns PacketState */ - public static fromObject(object: { [k: string]: any }): ibc.core.channel.v1.MsgChannelOpenConfirmResponse; + public static fromObject(object: { [k: string]: any }): ibc.core.channel.v1.PacketState; /** - * Creates a plain object from a MsgChannelOpenConfirmResponse message. Also converts values to other types if specified. - * @param message MsgChannelOpenConfirmResponse + * Creates a plain object from a PacketState message. Also converts values to other types if specified. + * @param message PacketState * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.core.channel.v1.MsgChannelOpenConfirmResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.core.channel.v1.PacketState, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MsgChannelOpenConfirmResponse to JSON. + * Converts this PacketState to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a MsgChannelCloseInit. */ - interface IMsgChannelCloseInit { + /** Properties of a PacketId. */ + interface IPacketId { - /** MsgChannelCloseInit port_id */ + /** PacketId port_id */ port_id?: (string|null); - /** MsgChannelCloseInit channel_id */ + /** PacketId channel_id */ channel_id?: (string|null); - /** MsgChannelCloseInit signer */ - signer?: (string|null); + /** PacketId sequence */ + sequence?: (Long|null); } - /** Represents a MsgChannelCloseInit. */ - class MsgChannelCloseInit implements IMsgChannelCloseInit { + /** Represents a PacketId. */ + class PacketId implements IPacketId { /** - * Constructs a new MsgChannelCloseInit. + * Constructs a new PacketId. * @param [properties] Properties to set */ - constructor(properties?: ibc.core.channel.v1.IMsgChannelCloseInit); + constructor(properties?: ibc.core.channel.v1.IPacketId); - /** MsgChannelCloseInit port_id. */ + /** PacketId port_id. */ public port_id: string; - /** MsgChannelCloseInit channel_id. */ + /** PacketId channel_id. */ public channel_id: string; - /** MsgChannelCloseInit signer. */ - public signer: string; + /** PacketId sequence. */ + public sequence: Long; /** - * Encodes the specified MsgChannelCloseInit message. Does not implicitly {@link ibc.core.channel.v1.MsgChannelCloseInit.verify|verify} messages. - * @param message MsgChannelCloseInit message or plain object to encode + * Encodes the specified PacketId message. Does not implicitly {@link ibc.core.channel.v1.PacketId.verify|verify} messages. + * @param message PacketId message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.core.channel.v1.IMsgChannelCloseInit, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.core.channel.v1.IPacketId, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MsgChannelCloseInit message, length delimited. Does not implicitly {@link ibc.core.channel.v1.MsgChannelCloseInit.verify|verify} messages. - * @param message MsgChannelCloseInit message or plain object to encode + * Encodes the specified PacketId message, length delimited. Does not implicitly {@link ibc.core.channel.v1.PacketId.verify|verify} messages. + * @param message PacketId message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.core.channel.v1.IMsgChannelCloseInit, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.core.channel.v1.IPacketId, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MsgChannelCloseInit message from the specified reader or buffer. + * Decodes a PacketId message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MsgChannelCloseInit + * @returns PacketId * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.channel.v1.MsgChannelCloseInit; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.channel.v1.PacketId; /** - * Decodes a MsgChannelCloseInit message from the specified reader or buffer, length delimited. + * Decodes a PacketId message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MsgChannelCloseInit + * @returns PacketId * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.channel.v1.MsgChannelCloseInit; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.channel.v1.PacketId; /** - * Verifies a MsgChannelCloseInit message. + * Verifies a PacketId message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a MsgChannelCloseInit message from a plain object. Also converts values to their respective internal types. + * Creates a PacketId message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MsgChannelCloseInit + * @returns PacketId */ - public static fromObject(object: { [k: string]: any }): ibc.core.channel.v1.MsgChannelCloseInit; + public static fromObject(object: { [k: string]: any }): ibc.core.channel.v1.PacketId; /** - * Creates a plain object from a MsgChannelCloseInit message. Also converts values to other types if specified. - * @param message MsgChannelCloseInit + * Creates a plain object from a PacketId message. Also converts values to other types if specified. + * @param message PacketId * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.core.channel.v1.MsgChannelCloseInit, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.core.channel.v1.PacketId, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MsgChannelCloseInit to JSON. + * Converts this PacketId to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a MsgChannelCloseInitResponse. */ - interface IMsgChannelCloseInitResponse { + /** Properties of an Acknowledgement. */ + interface IAcknowledgement { + + /** Acknowledgement result */ + result?: (Uint8Array|null); + + /** Acknowledgement error */ + error?: (string|null); } - /** Represents a MsgChannelCloseInitResponse. */ - class MsgChannelCloseInitResponse implements IMsgChannelCloseInitResponse { + /** Represents an Acknowledgement. */ + class Acknowledgement implements IAcknowledgement { /** - * Constructs a new MsgChannelCloseInitResponse. + * Constructs a new Acknowledgement. * @param [properties] Properties to set */ - constructor(properties?: ibc.core.channel.v1.IMsgChannelCloseInitResponse); + constructor(properties?: ibc.core.channel.v1.IAcknowledgement); + + /** Acknowledgement result. */ + public result?: (Uint8Array|null); + + /** Acknowledgement error. */ + public error?: (string|null); + + /** Acknowledgement response. */ + public response?: ("result"|"error"); /** - * Encodes the specified MsgChannelCloseInitResponse message. Does not implicitly {@link ibc.core.channel.v1.MsgChannelCloseInitResponse.verify|verify} messages. - * @param message MsgChannelCloseInitResponse message or plain object to encode + * Encodes the specified Acknowledgement message. Does not implicitly {@link ibc.core.channel.v1.Acknowledgement.verify|verify} messages. + * @param message Acknowledgement message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.core.channel.v1.IMsgChannelCloseInitResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.core.channel.v1.IAcknowledgement, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MsgChannelCloseInitResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.MsgChannelCloseInitResponse.verify|verify} messages. - * @param message MsgChannelCloseInitResponse message or plain object to encode + * Encodes the specified Acknowledgement message, length delimited. Does not implicitly {@link ibc.core.channel.v1.Acknowledgement.verify|verify} messages. + * @param message Acknowledgement message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.core.channel.v1.IMsgChannelCloseInitResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.core.channel.v1.IAcknowledgement, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MsgChannelCloseInitResponse message from the specified reader or buffer. + * Decodes an Acknowledgement message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MsgChannelCloseInitResponse + * @returns Acknowledgement * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.channel.v1.MsgChannelCloseInitResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.channel.v1.Acknowledgement; /** - * Decodes a MsgChannelCloseInitResponse message from the specified reader or buffer, length delimited. + * Decodes an Acknowledgement message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MsgChannelCloseInitResponse + * @returns Acknowledgement * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.channel.v1.MsgChannelCloseInitResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.channel.v1.Acknowledgement; /** - * Verifies a MsgChannelCloseInitResponse message. + * Verifies an Acknowledgement message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a MsgChannelCloseInitResponse message from a plain object. Also converts values to their respective internal types. + * Creates an Acknowledgement message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MsgChannelCloseInitResponse + * @returns Acknowledgement */ - public static fromObject(object: { [k: string]: any }): ibc.core.channel.v1.MsgChannelCloseInitResponse; + public static fromObject(object: { [k: string]: any }): ibc.core.channel.v1.Acknowledgement; /** - * Creates a plain object from a MsgChannelCloseInitResponse message. Also converts values to other types if specified. - * @param message MsgChannelCloseInitResponse + * Creates a plain object from an Acknowledgement message. Also converts values to other types if specified. + * @param message Acknowledgement * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.core.channel.v1.MsgChannelCloseInitResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.core.channel.v1.Acknowledgement, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MsgChannelCloseInitResponse to JSON. + * Converts this Acknowledgement to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a MsgChannelCloseConfirm. */ - interface IMsgChannelCloseConfirm { + /** Represents a Msg */ + class Msg extends $protobuf.rpc.Service { - /** MsgChannelCloseConfirm port_id */ - port_id?: (string|null); + /** + * Constructs a new Msg service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); - /** MsgChannelCloseConfirm channel_id */ - channel_id?: (string|null); + /** + * Calls ChannelOpenInit. + * @param request MsgChannelOpenInit message or plain object + * @param callback Node-style callback called with the error, if any, and MsgChannelOpenInitResponse + */ + public channelOpenInit(request: ibc.core.channel.v1.IMsgChannelOpenInit, callback: ibc.core.channel.v1.Msg.ChannelOpenInitCallback): void; - /** MsgChannelCloseConfirm proof_init */ - proof_init?: (Uint8Array|null); + /** + * Calls ChannelOpenInit. + * @param request MsgChannelOpenInit message or plain object + * @returns Promise + */ + public channelOpenInit(request: ibc.core.channel.v1.IMsgChannelOpenInit): Promise; - /** MsgChannelCloseConfirm proof_height */ - proof_height?: (ibc.core.client.v1.IHeight|null); + /** + * Calls ChannelOpenTry. + * @param request MsgChannelOpenTry message or plain object + * @param callback Node-style callback called with the error, if any, and MsgChannelOpenTryResponse + */ + public channelOpenTry(request: ibc.core.channel.v1.IMsgChannelOpenTry, callback: ibc.core.channel.v1.Msg.ChannelOpenTryCallback): void; - /** MsgChannelCloseConfirm signer */ - signer?: (string|null); - } + /** + * Calls ChannelOpenTry. + * @param request MsgChannelOpenTry message or plain object + * @returns Promise + */ + public channelOpenTry(request: ibc.core.channel.v1.IMsgChannelOpenTry): Promise; - /** Represents a MsgChannelCloseConfirm. */ - class MsgChannelCloseConfirm implements IMsgChannelCloseConfirm { + /** + * Calls ChannelOpenAck. + * @param request MsgChannelOpenAck message or plain object + * @param callback Node-style callback called with the error, if any, and MsgChannelOpenAckResponse + */ + public channelOpenAck(request: ibc.core.channel.v1.IMsgChannelOpenAck, callback: ibc.core.channel.v1.Msg.ChannelOpenAckCallback): void; /** - * Constructs a new MsgChannelCloseConfirm. - * @param [properties] Properties to set + * Calls ChannelOpenAck. + * @param request MsgChannelOpenAck message or plain object + * @returns Promise */ - constructor(properties?: ibc.core.channel.v1.IMsgChannelCloseConfirm); + public channelOpenAck(request: ibc.core.channel.v1.IMsgChannelOpenAck): Promise; - /** MsgChannelCloseConfirm port_id. */ - public port_id: string; + /** + * Calls ChannelOpenConfirm. + * @param request MsgChannelOpenConfirm message or plain object + * @param callback Node-style callback called with the error, if any, and MsgChannelOpenConfirmResponse + */ + public channelOpenConfirm(request: ibc.core.channel.v1.IMsgChannelOpenConfirm, callback: ibc.core.channel.v1.Msg.ChannelOpenConfirmCallback): void; - /** MsgChannelCloseConfirm channel_id. */ - public channel_id: string; + /** + * Calls ChannelOpenConfirm. + * @param request MsgChannelOpenConfirm message or plain object + * @returns Promise + */ + public channelOpenConfirm(request: ibc.core.channel.v1.IMsgChannelOpenConfirm): Promise; - /** MsgChannelCloseConfirm proof_init. */ - public proof_init: Uint8Array; + /** + * Calls ChannelCloseInit. + * @param request MsgChannelCloseInit message or plain object + * @param callback Node-style callback called with the error, if any, and MsgChannelCloseInitResponse + */ + public channelCloseInit(request: ibc.core.channel.v1.IMsgChannelCloseInit, callback: ibc.core.channel.v1.Msg.ChannelCloseInitCallback): void; - /** MsgChannelCloseConfirm proof_height. */ - public proof_height?: (ibc.core.client.v1.IHeight|null); + /** + * Calls ChannelCloseInit. + * @param request MsgChannelCloseInit message or plain object + * @returns Promise + */ + public channelCloseInit(request: ibc.core.channel.v1.IMsgChannelCloseInit): Promise; - /** MsgChannelCloseConfirm signer. */ - public signer: string; + /** + * Calls ChannelCloseConfirm. + * @param request MsgChannelCloseConfirm message or plain object + * @param callback Node-style callback called with the error, if any, and MsgChannelCloseConfirmResponse + */ + public channelCloseConfirm(request: ibc.core.channel.v1.IMsgChannelCloseConfirm, callback: ibc.core.channel.v1.Msg.ChannelCloseConfirmCallback): void; /** - * Encodes the specified MsgChannelCloseConfirm message. Does not implicitly {@link ibc.core.channel.v1.MsgChannelCloseConfirm.verify|verify} messages. - * @param message MsgChannelCloseConfirm message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls ChannelCloseConfirm. + * @param request MsgChannelCloseConfirm message or plain object + * @returns Promise */ - public static encode(message: ibc.core.channel.v1.IMsgChannelCloseConfirm, writer?: $protobuf.Writer): $protobuf.Writer; + public channelCloseConfirm(request: ibc.core.channel.v1.IMsgChannelCloseConfirm): Promise; /** - * Encodes the specified MsgChannelCloseConfirm message, length delimited. Does not implicitly {@link ibc.core.channel.v1.MsgChannelCloseConfirm.verify|verify} messages. - * @param message MsgChannelCloseConfirm message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls RecvPacket. + * @param request MsgRecvPacket message or plain object + * @param callback Node-style callback called with the error, if any, and MsgRecvPacketResponse */ - public static encodeDelimited(message: ibc.core.channel.v1.IMsgChannelCloseConfirm, writer?: $protobuf.Writer): $protobuf.Writer; + public recvPacket(request: ibc.core.channel.v1.IMsgRecvPacket, callback: ibc.core.channel.v1.Msg.RecvPacketCallback): void; /** - * Decodes a MsgChannelCloseConfirm message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MsgChannelCloseConfirm - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls RecvPacket. + * @param request MsgRecvPacket message or plain object + * @returns Promise */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.channel.v1.MsgChannelCloseConfirm; + public recvPacket(request: ibc.core.channel.v1.IMsgRecvPacket): Promise; /** - * Decodes a MsgChannelCloseConfirm message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MsgChannelCloseConfirm - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls Timeout. + * @param request MsgTimeout message or plain object + * @param callback Node-style callback called with the error, if any, and MsgTimeoutResponse */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.channel.v1.MsgChannelCloseConfirm; + public timeout(request: ibc.core.channel.v1.IMsgTimeout, callback: ibc.core.channel.v1.Msg.TimeoutCallback): void; /** - * Verifies a MsgChannelCloseConfirm message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls Timeout. + * @param request MsgTimeout message or plain object + * @returns Promise */ - public static verify(message: { [k: string]: any }): (string|null); + public timeout(request: ibc.core.channel.v1.IMsgTimeout): Promise; /** - * Creates a MsgChannelCloseConfirm message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MsgChannelCloseConfirm + * Calls TimeoutOnClose. + * @param request MsgTimeoutOnClose message or plain object + * @param callback Node-style callback called with the error, if any, and MsgTimeoutOnCloseResponse */ - public static fromObject(object: { [k: string]: any }): ibc.core.channel.v1.MsgChannelCloseConfirm; + public timeoutOnClose(request: ibc.core.channel.v1.IMsgTimeoutOnClose, callback: ibc.core.channel.v1.Msg.TimeoutOnCloseCallback): void; /** - * Creates a plain object from a MsgChannelCloseConfirm message. Also converts values to other types if specified. - * @param message MsgChannelCloseConfirm - * @param [options] Conversion options - * @returns Plain object + * Calls TimeoutOnClose. + * @param request MsgTimeoutOnClose message or plain object + * @returns Promise */ - public static toObject(message: ibc.core.channel.v1.MsgChannelCloseConfirm, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public timeoutOnClose(request: ibc.core.channel.v1.IMsgTimeoutOnClose): Promise; /** - * Converts this MsgChannelCloseConfirm to JSON. - * @returns JSON object + * Calls Acknowledgement. + * @param request MsgAcknowledgement message or plain object + * @param callback Node-style callback called with the error, if any, and MsgAcknowledgementResponse */ - public toJSON(): { [k: string]: any }; - } + public acknowledgement(request: ibc.core.channel.v1.IMsgAcknowledgement, callback: ibc.core.channel.v1.Msg.AcknowledgementCallback): void; - /** Properties of a MsgChannelCloseConfirmResponse. */ - interface IMsgChannelCloseConfirmResponse { + /** + * Calls Acknowledgement. + * @param request MsgAcknowledgement message or plain object + * @returns Promise + */ + public acknowledgement(request: ibc.core.channel.v1.IMsgAcknowledgement): Promise; } - /** Represents a MsgChannelCloseConfirmResponse. */ - class MsgChannelCloseConfirmResponse implements IMsgChannelCloseConfirmResponse { + namespace Msg { /** - * Constructs a new MsgChannelCloseConfirmResponse. - * @param [properties] Properties to set + * Callback as used by {@link ibc.core.channel.v1.Msg#channelOpenInit}. + * @param error Error, if any + * @param [response] MsgChannelOpenInitResponse */ - constructor(properties?: ibc.core.channel.v1.IMsgChannelCloseConfirmResponse); + type ChannelOpenInitCallback = (error: (Error|null), response?: ibc.core.channel.v1.MsgChannelOpenInitResponse) => void; /** - * Encodes the specified MsgChannelCloseConfirmResponse message. Does not implicitly {@link ibc.core.channel.v1.MsgChannelCloseConfirmResponse.verify|verify} messages. - * @param message MsgChannelCloseConfirmResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Callback as used by {@link ibc.core.channel.v1.Msg#channelOpenTry}. + * @param error Error, if any + * @param [response] MsgChannelOpenTryResponse */ - public static encode(message: ibc.core.channel.v1.IMsgChannelCloseConfirmResponse, writer?: $protobuf.Writer): $protobuf.Writer; + type ChannelOpenTryCallback = (error: (Error|null), response?: ibc.core.channel.v1.MsgChannelOpenTryResponse) => void; /** - * Encodes the specified MsgChannelCloseConfirmResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.MsgChannelCloseConfirmResponse.verify|verify} messages. - * @param message MsgChannelCloseConfirmResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Callback as used by {@link ibc.core.channel.v1.Msg#channelOpenAck}. + * @param error Error, if any + * @param [response] MsgChannelOpenAckResponse */ - public static encodeDelimited(message: ibc.core.channel.v1.IMsgChannelCloseConfirmResponse, writer?: $protobuf.Writer): $protobuf.Writer; + type ChannelOpenAckCallback = (error: (Error|null), response?: ibc.core.channel.v1.MsgChannelOpenAckResponse) => void; /** - * Decodes a MsgChannelCloseConfirmResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MsgChannelCloseConfirmResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link ibc.core.channel.v1.Msg#channelOpenConfirm}. + * @param error Error, if any + * @param [response] MsgChannelOpenConfirmResponse */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.channel.v1.MsgChannelCloseConfirmResponse; + type ChannelOpenConfirmCallback = (error: (Error|null), response?: ibc.core.channel.v1.MsgChannelOpenConfirmResponse) => void; /** - * Decodes a MsgChannelCloseConfirmResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MsgChannelCloseConfirmResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link ibc.core.channel.v1.Msg#channelCloseInit}. + * @param error Error, if any + * @param [response] MsgChannelCloseInitResponse */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.channel.v1.MsgChannelCloseConfirmResponse; + type ChannelCloseInitCallback = (error: (Error|null), response?: ibc.core.channel.v1.MsgChannelCloseInitResponse) => void; /** - * Verifies a MsgChannelCloseConfirmResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Callback as used by {@link ibc.core.channel.v1.Msg#channelCloseConfirm}. + * @param error Error, if any + * @param [response] MsgChannelCloseConfirmResponse */ - public static verify(message: { [k: string]: any }): (string|null); + type ChannelCloseConfirmCallback = (error: (Error|null), response?: ibc.core.channel.v1.MsgChannelCloseConfirmResponse) => void; /** - * Creates a MsgChannelCloseConfirmResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MsgChannelCloseConfirmResponse + * Callback as used by {@link ibc.core.channel.v1.Msg#recvPacket}. + * @param error Error, if any + * @param [response] MsgRecvPacketResponse */ - public static fromObject(object: { [k: string]: any }): ibc.core.channel.v1.MsgChannelCloseConfirmResponse; + type RecvPacketCallback = (error: (Error|null), response?: ibc.core.channel.v1.MsgRecvPacketResponse) => void; /** - * Creates a plain object from a MsgChannelCloseConfirmResponse message. Also converts values to other types if specified. - * @param message MsgChannelCloseConfirmResponse - * @param [options] Conversion options - * @returns Plain object + * Callback as used by {@link ibc.core.channel.v1.Msg#timeout}. + * @param error Error, if any + * @param [response] MsgTimeoutResponse */ - public static toObject(message: ibc.core.channel.v1.MsgChannelCloseConfirmResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + type TimeoutCallback = (error: (Error|null), response?: ibc.core.channel.v1.MsgTimeoutResponse) => void; /** - * Converts this MsgChannelCloseConfirmResponse to JSON. - * @returns JSON object + * Callback as used by {@link ibc.core.channel.v1.Msg#timeoutOnClose}. + * @param error Error, if any + * @param [response] MsgTimeoutOnCloseResponse */ - public toJSON(): { [k: string]: any }; + type TimeoutOnCloseCallback = (error: (Error|null), response?: ibc.core.channel.v1.MsgTimeoutOnCloseResponse) => void; + + /** + * Callback as used by {@link ibc.core.channel.v1.Msg#acknowledgement}. + * @param error Error, if any + * @param [response] MsgAcknowledgementResponse + */ + type AcknowledgementCallback = (error: (Error|null), response?: ibc.core.channel.v1.MsgAcknowledgementResponse) => void; } - /** Properties of a MsgRecvPacket. */ - interface IMsgRecvPacket { + /** ResponseResultType enum. */ + enum ResponseResultType { + RESPONSE_RESULT_TYPE_UNSPECIFIED = 0, + RESPONSE_RESULT_TYPE_NOOP = 1, + RESPONSE_RESULT_TYPE_SUCCESS = 2 + } - /** MsgRecvPacket packet */ - packet?: (ibc.core.channel.v1.IPacket|null); + /** Properties of a MsgChannelOpenInit. */ + interface IMsgChannelOpenInit { - /** MsgRecvPacket proof_commitment */ - proof_commitment?: (Uint8Array|null); + /** MsgChannelOpenInit port_id */ + port_id?: (string|null); - /** MsgRecvPacket proof_height */ - proof_height?: (ibc.core.client.v1.IHeight|null); + /** MsgChannelOpenInit channel */ + channel?: (ibc.core.channel.v1.IChannel|null); - /** MsgRecvPacket signer */ + /** MsgChannelOpenInit signer */ signer?: (string|null); } - /** Represents a MsgRecvPacket. */ - class MsgRecvPacket implements IMsgRecvPacket { + /** Represents a MsgChannelOpenInit. */ + class MsgChannelOpenInit implements IMsgChannelOpenInit { /** - * Constructs a new MsgRecvPacket. + * Constructs a new MsgChannelOpenInit. * @param [properties] Properties to set */ - constructor(properties?: ibc.core.channel.v1.IMsgRecvPacket); - - /** MsgRecvPacket packet. */ - public packet?: (ibc.core.channel.v1.IPacket|null); + constructor(properties?: ibc.core.channel.v1.IMsgChannelOpenInit); - /** MsgRecvPacket proof_commitment. */ - public proof_commitment: Uint8Array; + /** MsgChannelOpenInit port_id. */ + public port_id: string; - /** MsgRecvPacket proof_height. */ - public proof_height?: (ibc.core.client.v1.IHeight|null); + /** MsgChannelOpenInit channel. */ + public channel?: (ibc.core.channel.v1.IChannel|null); - /** MsgRecvPacket signer. */ + /** MsgChannelOpenInit signer. */ public signer: string; /** - * Encodes the specified MsgRecvPacket message. Does not implicitly {@link ibc.core.channel.v1.MsgRecvPacket.verify|verify} messages. - * @param message MsgRecvPacket message or plain object to encode + * Encodes the specified MsgChannelOpenInit message. Does not implicitly {@link ibc.core.channel.v1.MsgChannelOpenInit.verify|verify} messages. + * @param message MsgChannelOpenInit message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.core.channel.v1.IMsgRecvPacket, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.core.channel.v1.IMsgChannelOpenInit, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MsgRecvPacket message, length delimited. Does not implicitly {@link ibc.core.channel.v1.MsgRecvPacket.verify|verify} messages. - * @param message MsgRecvPacket message or plain object to encode + * Encodes the specified MsgChannelOpenInit message, length delimited. Does not implicitly {@link ibc.core.channel.v1.MsgChannelOpenInit.verify|verify} messages. + * @param message MsgChannelOpenInit message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.core.channel.v1.IMsgRecvPacket, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.core.channel.v1.IMsgChannelOpenInit, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MsgRecvPacket message from the specified reader or buffer. + * Decodes a MsgChannelOpenInit message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MsgRecvPacket + * @returns MsgChannelOpenInit * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.channel.v1.MsgRecvPacket; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.channel.v1.MsgChannelOpenInit; /** - * Decodes a MsgRecvPacket message from the specified reader or buffer, length delimited. + * Decodes a MsgChannelOpenInit message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MsgRecvPacket + * @returns MsgChannelOpenInit * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.channel.v1.MsgRecvPacket; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.channel.v1.MsgChannelOpenInit; /** - * Verifies a MsgRecvPacket message. + * Verifies a MsgChannelOpenInit message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a MsgRecvPacket message from a plain object. Also converts values to their respective internal types. + * Creates a MsgChannelOpenInit message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MsgRecvPacket + * @returns MsgChannelOpenInit */ - public static fromObject(object: { [k: string]: any }): ibc.core.channel.v1.MsgRecvPacket; + public static fromObject(object: { [k: string]: any }): ibc.core.channel.v1.MsgChannelOpenInit; /** - * Creates a plain object from a MsgRecvPacket message. Also converts values to other types if specified. - * @param message MsgRecvPacket + * Creates a plain object from a MsgChannelOpenInit message. Also converts values to other types if specified. + * @param message MsgChannelOpenInit * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.core.channel.v1.MsgRecvPacket, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.core.channel.v1.MsgChannelOpenInit, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MsgRecvPacket to JSON. + * Converts this MsgChannelOpenInit to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a MsgRecvPacketResponse. */ - interface IMsgRecvPacketResponse { + /** Properties of a MsgChannelOpenInitResponse. */ + interface IMsgChannelOpenInitResponse { - /** MsgRecvPacketResponse result */ - result?: (ibc.core.channel.v1.ResponseResultType|null); + /** MsgChannelOpenInitResponse channel_id */ + channel_id?: (string|null); + + /** MsgChannelOpenInitResponse version */ + version?: (string|null); } - /** Represents a MsgRecvPacketResponse. */ - class MsgRecvPacketResponse implements IMsgRecvPacketResponse { + /** Represents a MsgChannelOpenInitResponse. */ + class MsgChannelOpenInitResponse implements IMsgChannelOpenInitResponse { /** - * Constructs a new MsgRecvPacketResponse. + * Constructs a new MsgChannelOpenInitResponse. * @param [properties] Properties to set */ - constructor(properties?: ibc.core.channel.v1.IMsgRecvPacketResponse); + constructor(properties?: ibc.core.channel.v1.IMsgChannelOpenInitResponse); - /** MsgRecvPacketResponse result. */ - public result: ibc.core.channel.v1.ResponseResultType; + /** MsgChannelOpenInitResponse channel_id. */ + public channel_id: string; + + /** MsgChannelOpenInitResponse version. */ + public version: string; /** - * Encodes the specified MsgRecvPacketResponse message. Does not implicitly {@link ibc.core.channel.v1.MsgRecvPacketResponse.verify|verify} messages. - * @param message MsgRecvPacketResponse message or plain object to encode + * Encodes the specified MsgChannelOpenInitResponse message. Does not implicitly {@link ibc.core.channel.v1.MsgChannelOpenInitResponse.verify|verify} messages. + * @param message MsgChannelOpenInitResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.core.channel.v1.IMsgRecvPacketResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.core.channel.v1.IMsgChannelOpenInitResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MsgRecvPacketResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.MsgRecvPacketResponse.verify|verify} messages. - * @param message MsgRecvPacketResponse message or plain object to encode + * Encodes the specified MsgChannelOpenInitResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.MsgChannelOpenInitResponse.verify|verify} messages. + * @param message MsgChannelOpenInitResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.core.channel.v1.IMsgRecvPacketResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.core.channel.v1.IMsgChannelOpenInitResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MsgRecvPacketResponse message from the specified reader or buffer. + * Decodes a MsgChannelOpenInitResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MsgRecvPacketResponse + * @returns MsgChannelOpenInitResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.channel.v1.MsgRecvPacketResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.channel.v1.MsgChannelOpenInitResponse; /** - * Decodes a MsgRecvPacketResponse message from the specified reader or buffer, length delimited. + * Decodes a MsgChannelOpenInitResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MsgRecvPacketResponse + * @returns MsgChannelOpenInitResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.channel.v1.MsgRecvPacketResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.channel.v1.MsgChannelOpenInitResponse; /** - * Verifies a MsgRecvPacketResponse message. + * Verifies a MsgChannelOpenInitResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a MsgRecvPacketResponse message from a plain object. Also converts values to their respective internal types. + * Creates a MsgChannelOpenInitResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MsgRecvPacketResponse + * @returns MsgChannelOpenInitResponse */ - public static fromObject(object: { [k: string]: any }): ibc.core.channel.v1.MsgRecvPacketResponse; + public static fromObject(object: { [k: string]: any }): ibc.core.channel.v1.MsgChannelOpenInitResponse; /** - * Creates a plain object from a MsgRecvPacketResponse message. Also converts values to other types if specified. - * @param message MsgRecvPacketResponse + * Creates a plain object from a MsgChannelOpenInitResponse message. Also converts values to other types if specified. + * @param message MsgChannelOpenInitResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.core.channel.v1.MsgRecvPacketResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.core.channel.v1.MsgChannelOpenInitResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MsgRecvPacketResponse to JSON. + * Converts this MsgChannelOpenInitResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a MsgTimeout. */ - interface IMsgTimeout { + /** Properties of a MsgChannelOpenTry. */ + interface IMsgChannelOpenTry { - /** MsgTimeout packet */ - packet?: (ibc.core.channel.v1.IPacket|null); + /** MsgChannelOpenTry port_id */ + port_id?: (string|null); - /** MsgTimeout proof_unreceived */ - proof_unreceived?: (Uint8Array|null); + /** MsgChannelOpenTry previous_channel_id */ + previous_channel_id?: (string|null); + + /** MsgChannelOpenTry channel */ + channel?: (ibc.core.channel.v1.IChannel|null); + + /** MsgChannelOpenTry counterparty_version */ + counterparty_version?: (string|null); + + /** MsgChannelOpenTry proof_init */ + proof_init?: (Uint8Array|null); - /** MsgTimeout proof_height */ + /** MsgChannelOpenTry proof_height */ proof_height?: (ibc.core.client.v1.IHeight|null); - /** MsgTimeout next_sequence_recv */ - next_sequence_recv?: (Long|null); - - /** MsgTimeout signer */ + /** MsgChannelOpenTry signer */ signer?: (string|null); } - /** Represents a MsgTimeout. */ - class MsgTimeout implements IMsgTimeout { + /** Represents a MsgChannelOpenTry. */ + class MsgChannelOpenTry implements IMsgChannelOpenTry { /** - * Constructs a new MsgTimeout. + * Constructs a new MsgChannelOpenTry. * @param [properties] Properties to set */ - constructor(properties?: ibc.core.channel.v1.IMsgTimeout); + constructor(properties?: ibc.core.channel.v1.IMsgChannelOpenTry); - /** MsgTimeout packet. */ - public packet?: (ibc.core.channel.v1.IPacket|null); + /** MsgChannelOpenTry port_id. */ + public port_id: string; - /** MsgTimeout proof_unreceived. */ - public proof_unreceived: Uint8Array; + /** MsgChannelOpenTry previous_channel_id. */ + public previous_channel_id: string; - /** MsgTimeout proof_height. */ - public proof_height?: (ibc.core.client.v1.IHeight|null); + /** MsgChannelOpenTry channel. */ + public channel?: (ibc.core.channel.v1.IChannel|null); - /** MsgTimeout next_sequence_recv. */ - public next_sequence_recv: Long; + /** MsgChannelOpenTry counterparty_version. */ + public counterparty_version: string; - /** MsgTimeout signer. */ + /** MsgChannelOpenTry proof_init. */ + public proof_init: Uint8Array; + + /** MsgChannelOpenTry proof_height. */ + public proof_height?: (ibc.core.client.v1.IHeight|null); + + /** MsgChannelOpenTry signer. */ public signer: string; /** - * Encodes the specified MsgTimeout message. Does not implicitly {@link ibc.core.channel.v1.MsgTimeout.verify|verify} messages. - * @param message MsgTimeout message or plain object to encode + * Encodes the specified MsgChannelOpenTry message. Does not implicitly {@link ibc.core.channel.v1.MsgChannelOpenTry.verify|verify} messages. + * @param message MsgChannelOpenTry message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.core.channel.v1.IMsgTimeout, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.core.channel.v1.IMsgChannelOpenTry, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MsgTimeout message, length delimited. Does not implicitly {@link ibc.core.channel.v1.MsgTimeout.verify|verify} messages. - * @param message MsgTimeout message or plain object to encode + * Encodes the specified MsgChannelOpenTry message, length delimited. Does not implicitly {@link ibc.core.channel.v1.MsgChannelOpenTry.verify|verify} messages. + * @param message MsgChannelOpenTry message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.core.channel.v1.IMsgTimeout, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.core.channel.v1.IMsgChannelOpenTry, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MsgTimeout message from the specified reader or buffer. + * Decodes a MsgChannelOpenTry message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MsgTimeout + * @returns MsgChannelOpenTry * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.channel.v1.MsgTimeout; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.channel.v1.MsgChannelOpenTry; /** - * Decodes a MsgTimeout message from the specified reader or buffer, length delimited. + * Decodes a MsgChannelOpenTry message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MsgTimeout + * @returns MsgChannelOpenTry * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.channel.v1.MsgTimeout; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.channel.v1.MsgChannelOpenTry; /** - * Verifies a MsgTimeout message. + * Verifies a MsgChannelOpenTry message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a MsgTimeout message from a plain object. Also converts values to their respective internal types. + * Creates a MsgChannelOpenTry message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MsgTimeout + * @returns MsgChannelOpenTry */ - public static fromObject(object: { [k: string]: any }): ibc.core.channel.v1.MsgTimeout; + public static fromObject(object: { [k: string]: any }): ibc.core.channel.v1.MsgChannelOpenTry; /** - * Creates a plain object from a MsgTimeout message. Also converts values to other types if specified. - * @param message MsgTimeout + * Creates a plain object from a MsgChannelOpenTry message. Also converts values to other types if specified. + * @param message MsgChannelOpenTry * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.core.channel.v1.MsgTimeout, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.core.channel.v1.MsgChannelOpenTry, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MsgTimeout to JSON. + * Converts this MsgChannelOpenTry to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a MsgTimeoutResponse. */ - interface IMsgTimeoutResponse { + /** Properties of a MsgChannelOpenTryResponse. */ + interface IMsgChannelOpenTryResponse { - /** MsgTimeoutResponse result */ - result?: (ibc.core.channel.v1.ResponseResultType|null); + /** MsgChannelOpenTryResponse version */ + version?: (string|null); + + /** MsgChannelOpenTryResponse channel_id */ + channel_id?: (string|null); } - /** Represents a MsgTimeoutResponse. */ - class MsgTimeoutResponse implements IMsgTimeoutResponse { + /** Represents a MsgChannelOpenTryResponse. */ + class MsgChannelOpenTryResponse implements IMsgChannelOpenTryResponse { /** - * Constructs a new MsgTimeoutResponse. + * Constructs a new MsgChannelOpenTryResponse. * @param [properties] Properties to set */ - constructor(properties?: ibc.core.channel.v1.IMsgTimeoutResponse); + constructor(properties?: ibc.core.channel.v1.IMsgChannelOpenTryResponse); - /** MsgTimeoutResponse result. */ - public result: ibc.core.channel.v1.ResponseResultType; + /** MsgChannelOpenTryResponse version. */ + public version: string; + + /** MsgChannelOpenTryResponse channel_id. */ + public channel_id: string; /** - * Encodes the specified MsgTimeoutResponse message. Does not implicitly {@link ibc.core.channel.v1.MsgTimeoutResponse.verify|verify} messages. - * @param message MsgTimeoutResponse message or plain object to encode + * Encodes the specified MsgChannelOpenTryResponse message. Does not implicitly {@link ibc.core.channel.v1.MsgChannelOpenTryResponse.verify|verify} messages. + * @param message MsgChannelOpenTryResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.core.channel.v1.IMsgTimeoutResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.core.channel.v1.IMsgChannelOpenTryResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MsgTimeoutResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.MsgTimeoutResponse.verify|verify} messages. - * @param message MsgTimeoutResponse message or plain object to encode + * Encodes the specified MsgChannelOpenTryResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.MsgChannelOpenTryResponse.verify|verify} messages. + * @param message MsgChannelOpenTryResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.core.channel.v1.IMsgTimeoutResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.core.channel.v1.IMsgChannelOpenTryResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MsgTimeoutResponse message from the specified reader or buffer. + * Decodes a MsgChannelOpenTryResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MsgTimeoutResponse + * @returns MsgChannelOpenTryResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.channel.v1.MsgTimeoutResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.channel.v1.MsgChannelOpenTryResponse; /** - * Decodes a MsgTimeoutResponse message from the specified reader or buffer, length delimited. + * Decodes a MsgChannelOpenTryResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MsgTimeoutResponse + * @returns MsgChannelOpenTryResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.channel.v1.MsgTimeoutResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.channel.v1.MsgChannelOpenTryResponse; /** - * Verifies a MsgTimeoutResponse message. + * Verifies a MsgChannelOpenTryResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a MsgTimeoutResponse message from a plain object. Also converts values to their respective internal types. + * Creates a MsgChannelOpenTryResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MsgTimeoutResponse + * @returns MsgChannelOpenTryResponse */ - public static fromObject(object: { [k: string]: any }): ibc.core.channel.v1.MsgTimeoutResponse; + public static fromObject(object: { [k: string]: any }): ibc.core.channel.v1.MsgChannelOpenTryResponse; /** - * Creates a plain object from a MsgTimeoutResponse message. Also converts values to other types if specified. - * @param message MsgTimeoutResponse + * Creates a plain object from a MsgChannelOpenTryResponse message. Also converts values to other types if specified. + * @param message MsgChannelOpenTryResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.core.channel.v1.MsgTimeoutResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.core.channel.v1.MsgChannelOpenTryResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MsgTimeoutResponse to JSON. + * Converts this MsgChannelOpenTryResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a MsgTimeoutOnClose. */ - interface IMsgTimeoutOnClose { + /** Properties of a MsgChannelOpenAck. */ + interface IMsgChannelOpenAck { - /** MsgTimeoutOnClose packet */ - packet?: (ibc.core.channel.v1.IPacket|null); + /** MsgChannelOpenAck port_id */ + port_id?: (string|null); - /** MsgTimeoutOnClose proof_unreceived */ - proof_unreceived?: (Uint8Array|null); + /** MsgChannelOpenAck channel_id */ + channel_id?: (string|null); - /** MsgTimeoutOnClose proof_close */ - proof_close?: (Uint8Array|null); + /** MsgChannelOpenAck counterparty_channel_id */ + counterparty_channel_id?: (string|null); - /** MsgTimeoutOnClose proof_height */ - proof_height?: (ibc.core.client.v1.IHeight|null); + /** MsgChannelOpenAck counterparty_version */ + counterparty_version?: (string|null); - /** MsgTimeoutOnClose next_sequence_recv */ - next_sequence_recv?: (Long|null); + /** MsgChannelOpenAck proof_try */ + proof_try?: (Uint8Array|null); - /** MsgTimeoutOnClose signer */ + /** MsgChannelOpenAck proof_height */ + proof_height?: (ibc.core.client.v1.IHeight|null); + + /** MsgChannelOpenAck signer */ signer?: (string|null); } - /** Represents a MsgTimeoutOnClose. */ - class MsgTimeoutOnClose implements IMsgTimeoutOnClose { + /** Represents a MsgChannelOpenAck. */ + class MsgChannelOpenAck implements IMsgChannelOpenAck { /** - * Constructs a new MsgTimeoutOnClose. + * Constructs a new MsgChannelOpenAck. * @param [properties] Properties to set */ - constructor(properties?: ibc.core.channel.v1.IMsgTimeoutOnClose); + constructor(properties?: ibc.core.channel.v1.IMsgChannelOpenAck); - /** MsgTimeoutOnClose packet. */ - public packet?: (ibc.core.channel.v1.IPacket|null); + /** MsgChannelOpenAck port_id. */ + public port_id: string; - /** MsgTimeoutOnClose proof_unreceived. */ - public proof_unreceived: Uint8Array; + /** MsgChannelOpenAck channel_id. */ + public channel_id: string; - /** MsgTimeoutOnClose proof_close. */ - public proof_close: Uint8Array; + /** MsgChannelOpenAck counterparty_channel_id. */ + public counterparty_channel_id: string; - /** MsgTimeoutOnClose proof_height. */ - public proof_height?: (ibc.core.client.v1.IHeight|null); + /** MsgChannelOpenAck counterparty_version. */ + public counterparty_version: string; - /** MsgTimeoutOnClose next_sequence_recv. */ - public next_sequence_recv: Long; + /** MsgChannelOpenAck proof_try. */ + public proof_try: Uint8Array; - /** MsgTimeoutOnClose signer. */ + /** MsgChannelOpenAck proof_height. */ + public proof_height?: (ibc.core.client.v1.IHeight|null); + + /** MsgChannelOpenAck signer. */ public signer: string; /** - * Encodes the specified MsgTimeoutOnClose message. Does not implicitly {@link ibc.core.channel.v1.MsgTimeoutOnClose.verify|verify} messages. - * @param message MsgTimeoutOnClose message or plain object to encode + * Encodes the specified MsgChannelOpenAck message. Does not implicitly {@link ibc.core.channel.v1.MsgChannelOpenAck.verify|verify} messages. + * @param message MsgChannelOpenAck message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.core.channel.v1.IMsgTimeoutOnClose, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.core.channel.v1.IMsgChannelOpenAck, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MsgTimeoutOnClose message, length delimited. Does not implicitly {@link ibc.core.channel.v1.MsgTimeoutOnClose.verify|verify} messages. - * @param message MsgTimeoutOnClose message or plain object to encode + * Encodes the specified MsgChannelOpenAck message, length delimited. Does not implicitly {@link ibc.core.channel.v1.MsgChannelOpenAck.verify|verify} messages. + * @param message MsgChannelOpenAck message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.core.channel.v1.IMsgTimeoutOnClose, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.core.channel.v1.IMsgChannelOpenAck, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MsgTimeoutOnClose message from the specified reader or buffer. + * Decodes a MsgChannelOpenAck message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MsgTimeoutOnClose + * @returns MsgChannelOpenAck * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.channel.v1.MsgTimeoutOnClose; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.channel.v1.MsgChannelOpenAck; /** - * Decodes a MsgTimeoutOnClose message from the specified reader or buffer, length delimited. + * Decodes a MsgChannelOpenAck message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MsgTimeoutOnClose + * @returns MsgChannelOpenAck * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.channel.v1.MsgTimeoutOnClose; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.channel.v1.MsgChannelOpenAck; /** - * Verifies a MsgTimeoutOnClose message. + * Verifies a MsgChannelOpenAck message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a MsgTimeoutOnClose message from a plain object. Also converts values to their respective internal types. + * Creates a MsgChannelOpenAck message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MsgTimeoutOnClose + * @returns MsgChannelOpenAck */ - public static fromObject(object: { [k: string]: any }): ibc.core.channel.v1.MsgTimeoutOnClose; + public static fromObject(object: { [k: string]: any }): ibc.core.channel.v1.MsgChannelOpenAck; /** - * Creates a plain object from a MsgTimeoutOnClose message. Also converts values to other types if specified. - * @param message MsgTimeoutOnClose + * Creates a plain object from a MsgChannelOpenAck message. Also converts values to other types if specified. + * @param message MsgChannelOpenAck * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.core.channel.v1.MsgTimeoutOnClose, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.core.channel.v1.MsgChannelOpenAck, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MsgTimeoutOnClose to JSON. + * Converts this MsgChannelOpenAck to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a MsgTimeoutOnCloseResponse. */ - interface IMsgTimeoutOnCloseResponse { - - /** MsgTimeoutOnCloseResponse result */ - result?: (ibc.core.channel.v1.ResponseResultType|null); + /** Properties of a MsgChannelOpenAckResponse. */ + interface IMsgChannelOpenAckResponse { } - /** Represents a MsgTimeoutOnCloseResponse. */ - class MsgTimeoutOnCloseResponse implements IMsgTimeoutOnCloseResponse { + /** Represents a MsgChannelOpenAckResponse. */ + class MsgChannelOpenAckResponse implements IMsgChannelOpenAckResponse { /** - * Constructs a new MsgTimeoutOnCloseResponse. + * Constructs a new MsgChannelOpenAckResponse. * @param [properties] Properties to set */ - constructor(properties?: ibc.core.channel.v1.IMsgTimeoutOnCloseResponse); - - /** MsgTimeoutOnCloseResponse result. */ - public result: ibc.core.channel.v1.ResponseResultType; + constructor(properties?: ibc.core.channel.v1.IMsgChannelOpenAckResponse); /** - * Encodes the specified MsgTimeoutOnCloseResponse message. Does not implicitly {@link ibc.core.channel.v1.MsgTimeoutOnCloseResponse.verify|verify} messages. - * @param message MsgTimeoutOnCloseResponse message or plain object to encode + * Encodes the specified MsgChannelOpenAckResponse message. Does not implicitly {@link ibc.core.channel.v1.MsgChannelOpenAckResponse.verify|verify} messages. + * @param message MsgChannelOpenAckResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.core.channel.v1.IMsgTimeoutOnCloseResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.core.channel.v1.IMsgChannelOpenAckResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MsgTimeoutOnCloseResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.MsgTimeoutOnCloseResponse.verify|verify} messages. - * @param message MsgTimeoutOnCloseResponse message or plain object to encode + * Encodes the specified MsgChannelOpenAckResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.MsgChannelOpenAckResponse.verify|verify} messages. + * @param message MsgChannelOpenAckResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.core.channel.v1.IMsgTimeoutOnCloseResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.core.channel.v1.IMsgChannelOpenAckResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MsgTimeoutOnCloseResponse message from the specified reader or buffer. + * Decodes a MsgChannelOpenAckResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MsgTimeoutOnCloseResponse + * @returns MsgChannelOpenAckResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.channel.v1.MsgTimeoutOnCloseResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.channel.v1.MsgChannelOpenAckResponse; /** - * Decodes a MsgTimeoutOnCloseResponse message from the specified reader or buffer, length delimited. + * Decodes a MsgChannelOpenAckResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MsgTimeoutOnCloseResponse + * @returns MsgChannelOpenAckResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.channel.v1.MsgTimeoutOnCloseResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.channel.v1.MsgChannelOpenAckResponse; /** - * Verifies a MsgTimeoutOnCloseResponse message. + * Verifies a MsgChannelOpenAckResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a MsgTimeoutOnCloseResponse message from a plain object. Also converts values to their respective internal types. + * Creates a MsgChannelOpenAckResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MsgTimeoutOnCloseResponse + * @returns MsgChannelOpenAckResponse */ - public static fromObject(object: { [k: string]: any }): ibc.core.channel.v1.MsgTimeoutOnCloseResponse; + public static fromObject(object: { [k: string]: any }): ibc.core.channel.v1.MsgChannelOpenAckResponse; /** - * Creates a plain object from a MsgTimeoutOnCloseResponse message. Also converts values to other types if specified. - * @param message MsgTimeoutOnCloseResponse + * Creates a plain object from a MsgChannelOpenAckResponse message. Also converts values to other types if specified. + * @param message MsgChannelOpenAckResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.core.channel.v1.MsgTimeoutOnCloseResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.core.channel.v1.MsgChannelOpenAckResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MsgTimeoutOnCloseResponse to JSON. + * Converts this MsgChannelOpenAckResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a MsgAcknowledgement. */ - interface IMsgAcknowledgement { + /** Properties of a MsgChannelOpenConfirm. */ + interface IMsgChannelOpenConfirm { - /** MsgAcknowledgement packet */ - packet?: (ibc.core.channel.v1.IPacket|null); + /** MsgChannelOpenConfirm port_id */ + port_id?: (string|null); - /** MsgAcknowledgement acknowledgement */ - acknowledgement?: (Uint8Array|null); + /** MsgChannelOpenConfirm channel_id */ + channel_id?: (string|null); - /** MsgAcknowledgement proof_acked */ - proof_acked?: (Uint8Array|null); + /** MsgChannelOpenConfirm proof_ack */ + proof_ack?: (Uint8Array|null); - /** MsgAcknowledgement proof_height */ + /** MsgChannelOpenConfirm proof_height */ proof_height?: (ibc.core.client.v1.IHeight|null); - /** MsgAcknowledgement signer */ + /** MsgChannelOpenConfirm signer */ signer?: (string|null); } - /** Represents a MsgAcknowledgement. */ - class MsgAcknowledgement implements IMsgAcknowledgement { + /** Represents a MsgChannelOpenConfirm. */ + class MsgChannelOpenConfirm implements IMsgChannelOpenConfirm { /** - * Constructs a new MsgAcknowledgement. + * Constructs a new MsgChannelOpenConfirm. * @param [properties] Properties to set */ - constructor(properties?: ibc.core.channel.v1.IMsgAcknowledgement); + constructor(properties?: ibc.core.channel.v1.IMsgChannelOpenConfirm); - /** MsgAcknowledgement packet. */ - public packet?: (ibc.core.channel.v1.IPacket|null); + /** MsgChannelOpenConfirm port_id. */ + public port_id: string; - /** MsgAcknowledgement acknowledgement. */ - public acknowledgement: Uint8Array; + /** MsgChannelOpenConfirm channel_id. */ + public channel_id: string; - /** MsgAcknowledgement proof_acked. */ - public proof_acked: Uint8Array; + /** MsgChannelOpenConfirm proof_ack. */ + public proof_ack: Uint8Array; - /** MsgAcknowledgement proof_height. */ + /** MsgChannelOpenConfirm proof_height. */ public proof_height?: (ibc.core.client.v1.IHeight|null); - /** MsgAcknowledgement signer. */ + /** MsgChannelOpenConfirm signer. */ public signer: string; /** - * Encodes the specified MsgAcknowledgement message. Does not implicitly {@link ibc.core.channel.v1.MsgAcknowledgement.verify|verify} messages. - * @param message MsgAcknowledgement message or plain object to encode + * Encodes the specified MsgChannelOpenConfirm message. Does not implicitly {@link ibc.core.channel.v1.MsgChannelOpenConfirm.verify|verify} messages. + * @param message MsgChannelOpenConfirm message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.core.channel.v1.IMsgAcknowledgement, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.core.channel.v1.IMsgChannelOpenConfirm, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MsgAcknowledgement message, length delimited. Does not implicitly {@link ibc.core.channel.v1.MsgAcknowledgement.verify|verify} messages. - * @param message MsgAcknowledgement message or plain object to encode + * Encodes the specified MsgChannelOpenConfirm message, length delimited. Does not implicitly {@link ibc.core.channel.v1.MsgChannelOpenConfirm.verify|verify} messages. + * @param message MsgChannelOpenConfirm message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.core.channel.v1.IMsgAcknowledgement, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.core.channel.v1.IMsgChannelOpenConfirm, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MsgAcknowledgement message from the specified reader or buffer. + * Decodes a MsgChannelOpenConfirm message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MsgAcknowledgement + * @returns MsgChannelOpenConfirm * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.channel.v1.MsgAcknowledgement; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.channel.v1.MsgChannelOpenConfirm; /** - * Decodes a MsgAcknowledgement message from the specified reader or buffer, length delimited. + * Decodes a MsgChannelOpenConfirm message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MsgAcknowledgement + * @returns MsgChannelOpenConfirm * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.channel.v1.MsgAcknowledgement; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.channel.v1.MsgChannelOpenConfirm; /** - * Verifies a MsgAcknowledgement message. + * Verifies a MsgChannelOpenConfirm message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a MsgAcknowledgement message from a plain object. Also converts values to their respective internal types. + * Creates a MsgChannelOpenConfirm message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MsgAcknowledgement + * @returns MsgChannelOpenConfirm */ - public static fromObject(object: { [k: string]: any }): ibc.core.channel.v1.MsgAcknowledgement; + public static fromObject(object: { [k: string]: any }): ibc.core.channel.v1.MsgChannelOpenConfirm; /** - * Creates a plain object from a MsgAcknowledgement message. Also converts values to other types if specified. - * @param message MsgAcknowledgement + * Creates a plain object from a MsgChannelOpenConfirm message. Also converts values to other types if specified. + * @param message MsgChannelOpenConfirm * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.core.channel.v1.MsgAcknowledgement, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.core.channel.v1.MsgChannelOpenConfirm, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MsgAcknowledgement to JSON. + * Converts this MsgChannelOpenConfirm to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a MsgAcknowledgementResponse. */ - interface IMsgAcknowledgementResponse { - - /** MsgAcknowledgementResponse result */ - result?: (ibc.core.channel.v1.ResponseResultType|null); + /** Properties of a MsgChannelOpenConfirmResponse. */ + interface IMsgChannelOpenConfirmResponse { } - /** Represents a MsgAcknowledgementResponse. */ - class MsgAcknowledgementResponse implements IMsgAcknowledgementResponse { + /** Represents a MsgChannelOpenConfirmResponse. */ + class MsgChannelOpenConfirmResponse implements IMsgChannelOpenConfirmResponse { /** - * Constructs a new MsgAcknowledgementResponse. + * Constructs a new MsgChannelOpenConfirmResponse. * @param [properties] Properties to set */ - constructor(properties?: ibc.core.channel.v1.IMsgAcknowledgementResponse); - - /** MsgAcknowledgementResponse result. */ - public result: ibc.core.channel.v1.ResponseResultType; + constructor(properties?: ibc.core.channel.v1.IMsgChannelOpenConfirmResponse); /** - * Encodes the specified MsgAcknowledgementResponse message. Does not implicitly {@link ibc.core.channel.v1.MsgAcknowledgementResponse.verify|verify} messages. - * @param message MsgAcknowledgementResponse message or plain object to encode + * Encodes the specified MsgChannelOpenConfirmResponse message. Does not implicitly {@link ibc.core.channel.v1.MsgChannelOpenConfirmResponse.verify|verify} messages. + * @param message MsgChannelOpenConfirmResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.core.channel.v1.IMsgAcknowledgementResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.core.channel.v1.IMsgChannelOpenConfirmResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MsgAcknowledgementResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.MsgAcknowledgementResponse.verify|verify} messages. - * @param message MsgAcknowledgementResponse message or plain object to encode + * Encodes the specified MsgChannelOpenConfirmResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.MsgChannelOpenConfirmResponse.verify|verify} messages. + * @param message MsgChannelOpenConfirmResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.core.channel.v1.IMsgAcknowledgementResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.core.channel.v1.IMsgChannelOpenConfirmResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MsgAcknowledgementResponse message from the specified reader or buffer. + * Decodes a MsgChannelOpenConfirmResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MsgAcknowledgementResponse + * @returns MsgChannelOpenConfirmResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.channel.v1.MsgAcknowledgementResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.channel.v1.MsgChannelOpenConfirmResponse; /** - * Decodes a MsgAcknowledgementResponse message from the specified reader or buffer, length delimited. + * Decodes a MsgChannelOpenConfirmResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MsgAcknowledgementResponse + * @returns MsgChannelOpenConfirmResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.channel.v1.MsgAcknowledgementResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.channel.v1.MsgChannelOpenConfirmResponse; /** - * Verifies a MsgAcknowledgementResponse message. + * Verifies a MsgChannelOpenConfirmResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a MsgAcknowledgementResponse message from a plain object. Also converts values to their respective internal types. + * Creates a MsgChannelOpenConfirmResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MsgAcknowledgementResponse + * @returns MsgChannelOpenConfirmResponse */ - public static fromObject(object: { [k: string]: any }): ibc.core.channel.v1.MsgAcknowledgementResponse; + public static fromObject(object: { [k: string]: any }): ibc.core.channel.v1.MsgChannelOpenConfirmResponse; /** - * Creates a plain object from a MsgAcknowledgementResponse message. Also converts values to other types if specified. - * @param message MsgAcknowledgementResponse + * Creates a plain object from a MsgChannelOpenConfirmResponse message. Also converts values to other types if specified. + * @param message MsgChannelOpenConfirmResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.core.channel.v1.MsgAcknowledgementResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.core.channel.v1.MsgChannelOpenConfirmResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MsgAcknowledgementResponse to JSON. + * Converts this MsgChannelOpenConfirmResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Represents a Query */ - class Query extends $protobuf.rpc.Service { + /** Properties of a MsgChannelCloseInit. */ + interface IMsgChannelCloseInit { - /** - * Constructs a new Query service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + /** MsgChannelCloseInit port_id */ + port_id?: (string|null); - /** - * Calls Channel. - * @param request QueryChannelRequest message or plain object - * @param callback Node-style callback called with the error, if any, and QueryChannelResponse - */ - public channel(request: ibc.core.channel.v1.IQueryChannelRequest, callback: ibc.core.channel.v1.Query.ChannelCallback): void; + /** MsgChannelCloseInit channel_id */ + channel_id?: (string|null); - /** - * Calls Channel. - * @param request QueryChannelRequest message or plain object - * @returns Promise - */ - public channel(request: ibc.core.channel.v1.IQueryChannelRequest): Promise; + /** MsgChannelCloseInit signer */ + signer?: (string|null); + } - /** - * Calls Channels. - * @param request QueryChannelsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and QueryChannelsResponse - */ - public channels(request: ibc.core.channel.v1.IQueryChannelsRequest, callback: ibc.core.channel.v1.Query.ChannelsCallback): void; + /** Represents a MsgChannelCloseInit. */ + class MsgChannelCloseInit implements IMsgChannelCloseInit { /** - * Calls Channels. - * @param request QueryChannelsRequest message or plain object - * @returns Promise + * Constructs a new MsgChannelCloseInit. + * @param [properties] Properties to set */ - public channels(request: ibc.core.channel.v1.IQueryChannelsRequest): Promise; + constructor(properties?: ibc.core.channel.v1.IMsgChannelCloseInit); - /** - * Calls ConnectionChannels. - * @param request QueryConnectionChannelsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and QueryConnectionChannelsResponse - */ - public connectionChannels(request: ibc.core.channel.v1.IQueryConnectionChannelsRequest, callback: ibc.core.channel.v1.Query.ConnectionChannelsCallback): void; + /** MsgChannelCloseInit port_id. */ + public port_id: string; - /** - * Calls ConnectionChannels. - * @param request QueryConnectionChannelsRequest message or plain object - * @returns Promise - */ - public connectionChannels(request: ibc.core.channel.v1.IQueryConnectionChannelsRequest): Promise; + /** MsgChannelCloseInit channel_id. */ + public channel_id: string; - /** - * Calls ChannelClientState. - * @param request QueryChannelClientStateRequest message or plain object - * @param callback Node-style callback called with the error, if any, and QueryChannelClientStateResponse - */ - public channelClientState(request: ibc.core.channel.v1.IQueryChannelClientStateRequest, callback: ibc.core.channel.v1.Query.ChannelClientStateCallback): void; + /** MsgChannelCloseInit signer. */ + public signer: string; /** - * Calls ChannelClientState. - * @param request QueryChannelClientStateRequest message or plain object - * @returns Promise + * Encodes the specified MsgChannelCloseInit message. Does not implicitly {@link ibc.core.channel.v1.MsgChannelCloseInit.verify|verify} messages. + * @param message MsgChannelCloseInit message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public channelClientState(request: ibc.core.channel.v1.IQueryChannelClientStateRequest): Promise; + public static encode(message: ibc.core.channel.v1.IMsgChannelCloseInit, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls ChannelConsensusState. - * @param request QueryChannelConsensusStateRequest message or plain object - * @param callback Node-style callback called with the error, if any, and QueryChannelConsensusStateResponse + * Encodes the specified MsgChannelCloseInit message, length delimited. Does not implicitly {@link ibc.core.channel.v1.MsgChannelCloseInit.verify|verify} messages. + * @param message MsgChannelCloseInit message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public channelConsensusState(request: ibc.core.channel.v1.IQueryChannelConsensusStateRequest, callback: ibc.core.channel.v1.Query.ChannelConsensusStateCallback): void; + public static encodeDelimited(message: ibc.core.channel.v1.IMsgChannelCloseInit, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls ChannelConsensusState. - * @param request QueryChannelConsensusStateRequest message or plain object - * @returns Promise + * Decodes a MsgChannelCloseInit message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MsgChannelCloseInit + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public channelConsensusState(request: ibc.core.channel.v1.IQueryChannelConsensusStateRequest): Promise; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.channel.v1.MsgChannelCloseInit; /** - * Calls PacketCommitment. - * @param request QueryPacketCommitmentRequest message or plain object - * @param callback Node-style callback called with the error, if any, and QueryPacketCommitmentResponse + * Decodes a MsgChannelCloseInit message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MsgChannelCloseInit + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public packetCommitment(request: ibc.core.channel.v1.IQueryPacketCommitmentRequest, callback: ibc.core.channel.v1.Query.PacketCommitmentCallback): void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.channel.v1.MsgChannelCloseInit; /** - * Calls PacketCommitment. - * @param request QueryPacketCommitmentRequest message or plain object - * @returns Promise + * Verifies a MsgChannelCloseInit message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public packetCommitment(request: ibc.core.channel.v1.IQueryPacketCommitmentRequest): Promise; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls PacketCommitments. - * @param request QueryPacketCommitmentsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and QueryPacketCommitmentsResponse + * Creates a MsgChannelCloseInit message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MsgChannelCloseInit */ - public packetCommitments(request: ibc.core.channel.v1.IQueryPacketCommitmentsRequest, callback: ibc.core.channel.v1.Query.PacketCommitmentsCallback): void; + public static fromObject(object: { [k: string]: any }): ibc.core.channel.v1.MsgChannelCloseInit; /** - * Calls PacketCommitments. - * @param request QueryPacketCommitmentsRequest message or plain object - * @returns Promise + * Creates a plain object from a MsgChannelCloseInit message. Also converts values to other types if specified. + * @param message MsgChannelCloseInit + * @param [options] Conversion options + * @returns Plain object */ - public packetCommitments(request: ibc.core.channel.v1.IQueryPacketCommitmentsRequest): Promise; + public static toObject(message: ibc.core.channel.v1.MsgChannelCloseInit, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls PacketReceipt. - * @param request QueryPacketReceiptRequest message or plain object - * @param callback Node-style callback called with the error, if any, and QueryPacketReceiptResponse + * Converts this MsgChannelCloseInit to JSON. + * @returns JSON object */ - public packetReceipt(request: ibc.core.channel.v1.IQueryPacketReceiptRequest, callback: ibc.core.channel.v1.Query.PacketReceiptCallback): void; + public toJSON(): { [k: string]: any }; + } - /** - * Calls PacketReceipt. - * @param request QueryPacketReceiptRequest message or plain object - * @returns Promise - */ - public packetReceipt(request: ibc.core.channel.v1.IQueryPacketReceiptRequest): Promise; + /** Properties of a MsgChannelCloseInitResponse. */ + interface IMsgChannelCloseInitResponse { + } - /** - * Calls PacketAcknowledgement. - * @param request QueryPacketAcknowledgementRequest message or plain object - * @param callback Node-style callback called with the error, if any, and QueryPacketAcknowledgementResponse - */ - public packetAcknowledgement(request: ibc.core.channel.v1.IQueryPacketAcknowledgementRequest, callback: ibc.core.channel.v1.Query.PacketAcknowledgementCallback): void; + /** Represents a MsgChannelCloseInitResponse. */ + class MsgChannelCloseInitResponse implements IMsgChannelCloseInitResponse { /** - * Calls PacketAcknowledgement. - * @param request QueryPacketAcknowledgementRequest message or plain object - * @returns Promise + * Constructs a new MsgChannelCloseInitResponse. + * @param [properties] Properties to set */ - public packetAcknowledgement(request: ibc.core.channel.v1.IQueryPacketAcknowledgementRequest): Promise; + constructor(properties?: ibc.core.channel.v1.IMsgChannelCloseInitResponse); /** - * Calls PacketAcknowledgements. - * @param request QueryPacketAcknowledgementsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and QueryPacketAcknowledgementsResponse + * Encodes the specified MsgChannelCloseInitResponse message. Does not implicitly {@link ibc.core.channel.v1.MsgChannelCloseInitResponse.verify|verify} messages. + * @param message MsgChannelCloseInitResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public packetAcknowledgements(request: ibc.core.channel.v1.IQueryPacketAcknowledgementsRequest, callback: ibc.core.channel.v1.Query.PacketAcknowledgementsCallback): void; + public static encode(message: ibc.core.channel.v1.IMsgChannelCloseInitResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls PacketAcknowledgements. - * @param request QueryPacketAcknowledgementsRequest message or plain object - * @returns Promise + * Encodes the specified MsgChannelCloseInitResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.MsgChannelCloseInitResponse.verify|verify} messages. + * @param message MsgChannelCloseInitResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public packetAcknowledgements(request: ibc.core.channel.v1.IQueryPacketAcknowledgementsRequest): Promise; + public static encodeDelimited(message: ibc.core.channel.v1.IMsgChannelCloseInitResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls UnreceivedPackets. - * @param request QueryUnreceivedPacketsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and QueryUnreceivedPacketsResponse + * Decodes a MsgChannelCloseInitResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MsgChannelCloseInitResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public unreceivedPackets(request: ibc.core.channel.v1.IQueryUnreceivedPacketsRequest, callback: ibc.core.channel.v1.Query.UnreceivedPacketsCallback): void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.channel.v1.MsgChannelCloseInitResponse; /** - * Calls UnreceivedPackets. - * @param request QueryUnreceivedPacketsRequest message or plain object - * @returns Promise + * Decodes a MsgChannelCloseInitResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MsgChannelCloseInitResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public unreceivedPackets(request: ibc.core.channel.v1.IQueryUnreceivedPacketsRequest): Promise; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.channel.v1.MsgChannelCloseInitResponse; /** - * Calls UnreceivedAcks. - * @param request QueryUnreceivedAcksRequest message or plain object - * @param callback Node-style callback called with the error, if any, and QueryUnreceivedAcksResponse + * Verifies a MsgChannelCloseInitResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public unreceivedAcks(request: ibc.core.channel.v1.IQueryUnreceivedAcksRequest, callback: ibc.core.channel.v1.Query.UnreceivedAcksCallback): void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls UnreceivedAcks. - * @param request QueryUnreceivedAcksRequest message or plain object - * @returns Promise + * Creates a MsgChannelCloseInitResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MsgChannelCloseInitResponse */ - public unreceivedAcks(request: ibc.core.channel.v1.IQueryUnreceivedAcksRequest): Promise; + public static fromObject(object: { [k: string]: any }): ibc.core.channel.v1.MsgChannelCloseInitResponse; /** - * Calls NextSequenceReceive. - * @param request QueryNextSequenceReceiveRequest message or plain object - * @param callback Node-style callback called with the error, if any, and QueryNextSequenceReceiveResponse + * Creates a plain object from a MsgChannelCloseInitResponse message. Also converts values to other types if specified. + * @param message MsgChannelCloseInitResponse + * @param [options] Conversion options + * @returns Plain object */ - public nextSequenceReceive(request: ibc.core.channel.v1.IQueryNextSequenceReceiveRequest, callback: ibc.core.channel.v1.Query.NextSequenceReceiveCallback): void; + public static toObject(message: ibc.core.channel.v1.MsgChannelCloseInitResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls NextSequenceReceive. - * @param request QueryNextSequenceReceiveRequest message or plain object - * @returns Promise + * Converts this MsgChannelCloseInitResponse to JSON. + * @returns JSON object */ - public nextSequenceReceive(request: ibc.core.channel.v1.IQueryNextSequenceReceiveRequest): Promise; + public toJSON(): { [k: string]: any }; } - namespace Query { + /** Properties of a MsgChannelCloseConfirm. */ + interface IMsgChannelCloseConfirm { - /** - * Callback as used by {@link ibc.core.channel.v1.Query#channel}. - * @param error Error, if any - * @param [response] QueryChannelResponse - */ - type ChannelCallback = (error: (Error|null), response?: ibc.core.channel.v1.QueryChannelResponse) => void; + /** MsgChannelCloseConfirm port_id */ + port_id?: (string|null); - /** - * Callback as used by {@link ibc.core.channel.v1.Query#channels}. - * @param error Error, if any - * @param [response] QueryChannelsResponse - */ - type ChannelsCallback = (error: (Error|null), response?: ibc.core.channel.v1.QueryChannelsResponse) => void; + /** MsgChannelCloseConfirm channel_id */ + channel_id?: (string|null); - /** - * Callback as used by {@link ibc.core.channel.v1.Query#connectionChannels}. - * @param error Error, if any - * @param [response] QueryConnectionChannelsResponse - */ - type ConnectionChannelsCallback = (error: (Error|null), response?: ibc.core.channel.v1.QueryConnectionChannelsResponse) => void; + /** MsgChannelCloseConfirm proof_init */ + proof_init?: (Uint8Array|null); - /** - * Callback as used by {@link ibc.core.channel.v1.Query#channelClientState}. - * @param error Error, if any - * @param [response] QueryChannelClientStateResponse - */ - type ChannelClientStateCallback = (error: (Error|null), response?: ibc.core.channel.v1.QueryChannelClientStateResponse) => void; + /** MsgChannelCloseConfirm proof_height */ + proof_height?: (ibc.core.client.v1.IHeight|null); + + /** MsgChannelCloseConfirm signer */ + signer?: (string|null); + } + + /** Represents a MsgChannelCloseConfirm. */ + class MsgChannelCloseConfirm implements IMsgChannelCloseConfirm { /** - * Callback as used by {@link ibc.core.channel.v1.Query#channelConsensusState}. - * @param error Error, if any - * @param [response] QueryChannelConsensusStateResponse + * Constructs a new MsgChannelCloseConfirm. + * @param [properties] Properties to set */ - type ChannelConsensusStateCallback = (error: (Error|null), response?: ibc.core.channel.v1.QueryChannelConsensusStateResponse) => void; + constructor(properties?: ibc.core.channel.v1.IMsgChannelCloseConfirm); + + /** MsgChannelCloseConfirm port_id. */ + public port_id: string; + + /** MsgChannelCloseConfirm channel_id. */ + public channel_id: string; + + /** MsgChannelCloseConfirm proof_init. */ + public proof_init: Uint8Array; + + /** MsgChannelCloseConfirm proof_height. */ + public proof_height?: (ibc.core.client.v1.IHeight|null); + + /** MsgChannelCloseConfirm signer. */ + public signer: string; /** - * Callback as used by {@link ibc.core.channel.v1.Query#packetCommitment}. - * @param error Error, if any - * @param [response] QueryPacketCommitmentResponse + * Encodes the specified MsgChannelCloseConfirm message. Does not implicitly {@link ibc.core.channel.v1.MsgChannelCloseConfirm.verify|verify} messages. + * @param message MsgChannelCloseConfirm message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - type PacketCommitmentCallback = (error: (Error|null), response?: ibc.core.channel.v1.QueryPacketCommitmentResponse) => void; + public static encode(message: ibc.core.channel.v1.IMsgChannelCloseConfirm, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link ibc.core.channel.v1.Query#packetCommitments}. - * @param error Error, if any - * @param [response] QueryPacketCommitmentsResponse + * Encodes the specified MsgChannelCloseConfirm message, length delimited. Does not implicitly {@link ibc.core.channel.v1.MsgChannelCloseConfirm.verify|verify} messages. + * @param message MsgChannelCloseConfirm message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - type PacketCommitmentsCallback = (error: (Error|null), response?: ibc.core.channel.v1.QueryPacketCommitmentsResponse) => void; + public static encodeDelimited(message: ibc.core.channel.v1.IMsgChannelCloseConfirm, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link ibc.core.channel.v1.Query#packetReceipt}. - * @param error Error, if any - * @param [response] QueryPacketReceiptResponse + * Decodes a MsgChannelCloseConfirm message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MsgChannelCloseConfirm + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type PacketReceiptCallback = (error: (Error|null), response?: ibc.core.channel.v1.QueryPacketReceiptResponse) => void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.channel.v1.MsgChannelCloseConfirm; /** - * Callback as used by {@link ibc.core.channel.v1.Query#packetAcknowledgement}. - * @param error Error, if any - * @param [response] QueryPacketAcknowledgementResponse + * Decodes a MsgChannelCloseConfirm message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MsgChannelCloseConfirm + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type PacketAcknowledgementCallback = (error: (Error|null), response?: ibc.core.channel.v1.QueryPacketAcknowledgementResponse) => void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.channel.v1.MsgChannelCloseConfirm; /** - * Callback as used by {@link ibc.core.channel.v1.Query#packetAcknowledgements}. - * @param error Error, if any - * @param [response] QueryPacketAcknowledgementsResponse + * Verifies a MsgChannelCloseConfirm message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - type PacketAcknowledgementsCallback = (error: (Error|null), response?: ibc.core.channel.v1.QueryPacketAcknowledgementsResponse) => void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Callback as used by {@link ibc.core.channel.v1.Query#unreceivedPackets}. - * @param error Error, if any - * @param [response] QueryUnreceivedPacketsResponse + * Creates a MsgChannelCloseConfirm message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MsgChannelCloseConfirm */ - type UnreceivedPacketsCallback = (error: (Error|null), response?: ibc.core.channel.v1.QueryUnreceivedPacketsResponse) => void; + public static fromObject(object: { [k: string]: any }): ibc.core.channel.v1.MsgChannelCloseConfirm; /** - * Callback as used by {@link ibc.core.channel.v1.Query#unreceivedAcks}. - * @param error Error, if any - * @param [response] QueryUnreceivedAcksResponse + * Creates a plain object from a MsgChannelCloseConfirm message. Also converts values to other types if specified. + * @param message MsgChannelCloseConfirm + * @param [options] Conversion options + * @returns Plain object */ - type UnreceivedAcksCallback = (error: (Error|null), response?: ibc.core.channel.v1.QueryUnreceivedAcksResponse) => void; + public static toObject(message: ibc.core.channel.v1.MsgChannelCloseConfirm, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Callback as used by {@link ibc.core.channel.v1.Query#nextSequenceReceive}. - * @param error Error, if any - * @param [response] QueryNextSequenceReceiveResponse + * Converts this MsgChannelCloseConfirm to JSON. + * @returns JSON object */ - type NextSequenceReceiveCallback = (error: (Error|null), response?: ibc.core.channel.v1.QueryNextSequenceReceiveResponse) => void; + public toJSON(): { [k: string]: any }; } - /** Properties of a QueryChannelRequest. */ - interface IQueryChannelRequest { - - /** QueryChannelRequest port_id */ - port_id?: (string|null); - - /** QueryChannelRequest channel_id */ - channel_id?: (string|null); + /** Properties of a MsgChannelCloseConfirmResponse. */ + interface IMsgChannelCloseConfirmResponse { } - /** Represents a QueryChannelRequest. */ - class QueryChannelRequest implements IQueryChannelRequest { + /** Represents a MsgChannelCloseConfirmResponse. */ + class MsgChannelCloseConfirmResponse implements IMsgChannelCloseConfirmResponse { /** - * Constructs a new QueryChannelRequest. + * Constructs a new MsgChannelCloseConfirmResponse. * @param [properties] Properties to set */ - constructor(properties?: ibc.core.channel.v1.IQueryChannelRequest); - - /** QueryChannelRequest port_id. */ - public port_id: string; - - /** QueryChannelRequest channel_id. */ - public channel_id: string; + constructor(properties?: ibc.core.channel.v1.IMsgChannelCloseConfirmResponse); /** - * Encodes the specified QueryChannelRequest message. Does not implicitly {@link ibc.core.channel.v1.QueryChannelRequest.verify|verify} messages. - * @param message QueryChannelRequest message or plain object to encode + * Encodes the specified MsgChannelCloseConfirmResponse message. Does not implicitly {@link ibc.core.channel.v1.MsgChannelCloseConfirmResponse.verify|verify} messages. + * @param message MsgChannelCloseConfirmResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.core.channel.v1.IQueryChannelRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.core.channel.v1.IMsgChannelCloseConfirmResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified QueryChannelRequest message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryChannelRequest.verify|verify} messages. - * @param message QueryChannelRequest message or plain object to encode + * Encodes the specified MsgChannelCloseConfirmResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.MsgChannelCloseConfirmResponse.verify|verify} messages. + * @param message MsgChannelCloseConfirmResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.core.channel.v1.IQueryChannelRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.core.channel.v1.IMsgChannelCloseConfirmResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a QueryChannelRequest message from the specified reader or buffer. + * Decodes a MsgChannelCloseConfirmResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns QueryChannelRequest + * @returns MsgChannelCloseConfirmResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.channel.v1.QueryChannelRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.channel.v1.MsgChannelCloseConfirmResponse; /** - * Decodes a QueryChannelRequest message from the specified reader or buffer, length delimited. + * Decodes a MsgChannelCloseConfirmResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns QueryChannelRequest + * @returns MsgChannelCloseConfirmResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.channel.v1.QueryChannelRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.channel.v1.MsgChannelCloseConfirmResponse; /** - * Verifies a QueryChannelRequest message. + * Verifies a MsgChannelCloseConfirmResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a QueryChannelRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MsgChannelCloseConfirmResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns QueryChannelRequest + * @returns MsgChannelCloseConfirmResponse */ - public static fromObject(object: { [k: string]: any }): ibc.core.channel.v1.QueryChannelRequest; + public static fromObject(object: { [k: string]: any }): ibc.core.channel.v1.MsgChannelCloseConfirmResponse; /** - * Creates a plain object from a QueryChannelRequest message. Also converts values to other types if specified. - * @param message QueryChannelRequest + * Creates a plain object from a MsgChannelCloseConfirmResponse message. Also converts values to other types if specified. + * @param message MsgChannelCloseConfirmResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.core.channel.v1.QueryChannelRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.core.channel.v1.MsgChannelCloseConfirmResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this QueryChannelRequest to JSON. + * Converts this MsgChannelCloseConfirmResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a QueryChannelResponse. */ - interface IQueryChannelResponse { + /** Properties of a MsgRecvPacket. */ + interface IMsgRecvPacket { - /** QueryChannelResponse channel */ - channel?: (ibc.core.channel.v1.IChannel|null); + /** MsgRecvPacket packet */ + packet?: (ibc.core.channel.v1.IPacket|null); - /** QueryChannelResponse proof */ - proof?: (Uint8Array|null); + /** MsgRecvPacket proof_commitment */ + proof_commitment?: (Uint8Array|null); - /** QueryChannelResponse proof_height */ + /** MsgRecvPacket proof_height */ proof_height?: (ibc.core.client.v1.IHeight|null); + + /** MsgRecvPacket signer */ + signer?: (string|null); } - /** Represents a QueryChannelResponse. */ - class QueryChannelResponse implements IQueryChannelResponse { + /** Represents a MsgRecvPacket. */ + class MsgRecvPacket implements IMsgRecvPacket { /** - * Constructs a new QueryChannelResponse. + * Constructs a new MsgRecvPacket. * @param [properties] Properties to set */ - constructor(properties?: ibc.core.channel.v1.IQueryChannelResponse); + constructor(properties?: ibc.core.channel.v1.IMsgRecvPacket); - /** QueryChannelResponse channel. */ - public channel?: (ibc.core.channel.v1.IChannel|null); + /** MsgRecvPacket packet. */ + public packet?: (ibc.core.channel.v1.IPacket|null); - /** QueryChannelResponse proof. */ - public proof: Uint8Array; + /** MsgRecvPacket proof_commitment. */ + public proof_commitment: Uint8Array; - /** QueryChannelResponse proof_height. */ + /** MsgRecvPacket proof_height. */ public proof_height?: (ibc.core.client.v1.IHeight|null); + /** MsgRecvPacket signer. */ + public signer: string; + /** - * Encodes the specified QueryChannelResponse message. Does not implicitly {@link ibc.core.channel.v1.QueryChannelResponse.verify|verify} messages. - * @param message QueryChannelResponse message or plain object to encode + * Encodes the specified MsgRecvPacket message. Does not implicitly {@link ibc.core.channel.v1.MsgRecvPacket.verify|verify} messages. + * @param message MsgRecvPacket message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.core.channel.v1.IQueryChannelResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.core.channel.v1.IMsgRecvPacket, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified QueryChannelResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryChannelResponse.verify|verify} messages. - * @param message QueryChannelResponse message or plain object to encode + * Encodes the specified MsgRecvPacket message, length delimited. Does not implicitly {@link ibc.core.channel.v1.MsgRecvPacket.verify|verify} messages. + * @param message MsgRecvPacket message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.core.channel.v1.IQueryChannelResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.core.channel.v1.IMsgRecvPacket, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a QueryChannelResponse message from the specified reader or buffer. + * Decodes a MsgRecvPacket message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns QueryChannelResponse + * @returns MsgRecvPacket * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.channel.v1.QueryChannelResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.channel.v1.MsgRecvPacket; /** - * Decodes a QueryChannelResponse message from the specified reader or buffer, length delimited. + * Decodes a MsgRecvPacket message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns QueryChannelResponse + * @returns MsgRecvPacket * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.channel.v1.QueryChannelResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.channel.v1.MsgRecvPacket; /** - * Verifies a QueryChannelResponse message. + * Verifies a MsgRecvPacket message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a QueryChannelResponse message from a plain object. Also converts values to their respective internal types. + * Creates a MsgRecvPacket message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns QueryChannelResponse + * @returns MsgRecvPacket */ - public static fromObject(object: { [k: string]: any }): ibc.core.channel.v1.QueryChannelResponse; + public static fromObject(object: { [k: string]: any }): ibc.core.channel.v1.MsgRecvPacket; /** - * Creates a plain object from a QueryChannelResponse message. Also converts values to other types if specified. - * @param message QueryChannelResponse + * Creates a plain object from a MsgRecvPacket message. Also converts values to other types if specified. + * @param message MsgRecvPacket * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.core.channel.v1.QueryChannelResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.core.channel.v1.MsgRecvPacket, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this QueryChannelResponse to JSON. + * Converts this MsgRecvPacket to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a QueryChannelsRequest. */ - interface IQueryChannelsRequest { + /** Properties of a MsgRecvPacketResponse. */ + interface IMsgRecvPacketResponse { - /** QueryChannelsRequest pagination */ - pagination?: (cosmos.base.query.v1beta1.IPageRequest|null); + /** MsgRecvPacketResponse result */ + result?: (ibc.core.channel.v1.ResponseResultType|null); } - /** Represents a QueryChannelsRequest. */ - class QueryChannelsRequest implements IQueryChannelsRequest { + /** Represents a MsgRecvPacketResponse. */ + class MsgRecvPacketResponse implements IMsgRecvPacketResponse { /** - * Constructs a new QueryChannelsRequest. + * Constructs a new MsgRecvPacketResponse. * @param [properties] Properties to set */ - constructor(properties?: ibc.core.channel.v1.IQueryChannelsRequest); + constructor(properties?: ibc.core.channel.v1.IMsgRecvPacketResponse); - /** QueryChannelsRequest pagination. */ - public pagination?: (cosmos.base.query.v1beta1.IPageRequest|null); + /** MsgRecvPacketResponse result. */ + public result: ibc.core.channel.v1.ResponseResultType; /** - * Encodes the specified QueryChannelsRequest message. Does not implicitly {@link ibc.core.channel.v1.QueryChannelsRequest.verify|verify} messages. - * @param message QueryChannelsRequest message or plain object to encode + * Encodes the specified MsgRecvPacketResponse message. Does not implicitly {@link ibc.core.channel.v1.MsgRecvPacketResponse.verify|verify} messages. + * @param message MsgRecvPacketResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.core.channel.v1.IQueryChannelsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.core.channel.v1.IMsgRecvPacketResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified QueryChannelsRequest message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryChannelsRequest.verify|verify} messages. - * @param message QueryChannelsRequest message or plain object to encode + * Encodes the specified MsgRecvPacketResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.MsgRecvPacketResponse.verify|verify} messages. + * @param message MsgRecvPacketResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.core.channel.v1.IQueryChannelsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.core.channel.v1.IMsgRecvPacketResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a QueryChannelsRequest message from the specified reader or buffer. + * Decodes a MsgRecvPacketResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns QueryChannelsRequest + * @returns MsgRecvPacketResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.channel.v1.QueryChannelsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.channel.v1.MsgRecvPacketResponse; /** - * Decodes a QueryChannelsRequest message from the specified reader or buffer, length delimited. + * Decodes a MsgRecvPacketResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns QueryChannelsRequest + * @returns MsgRecvPacketResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.channel.v1.QueryChannelsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.channel.v1.MsgRecvPacketResponse; /** - * Verifies a QueryChannelsRequest message. + * Verifies a MsgRecvPacketResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a QueryChannelsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MsgRecvPacketResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns QueryChannelsRequest + * @returns MsgRecvPacketResponse */ - public static fromObject(object: { [k: string]: any }): ibc.core.channel.v1.QueryChannelsRequest; + public static fromObject(object: { [k: string]: any }): ibc.core.channel.v1.MsgRecvPacketResponse; /** - * Creates a plain object from a QueryChannelsRequest message. Also converts values to other types if specified. - * @param message QueryChannelsRequest + * Creates a plain object from a MsgRecvPacketResponse message. Also converts values to other types if specified. + * @param message MsgRecvPacketResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.core.channel.v1.QueryChannelsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.core.channel.v1.MsgRecvPacketResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this QueryChannelsRequest to JSON. + * Converts this MsgRecvPacketResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a QueryChannelsResponse. */ - interface IQueryChannelsResponse { + /** Properties of a MsgTimeout. */ + interface IMsgTimeout { + + /** MsgTimeout packet */ + packet?: (ibc.core.channel.v1.IPacket|null); + + /** MsgTimeout proof_unreceived */ + proof_unreceived?: (Uint8Array|null); - /** QueryChannelsResponse channels */ - channels?: (ibc.core.channel.v1.IIdentifiedChannel[]|null); + /** MsgTimeout proof_height */ + proof_height?: (ibc.core.client.v1.IHeight|null); - /** QueryChannelsResponse pagination */ - pagination?: (cosmos.base.query.v1beta1.IPageResponse|null); + /** MsgTimeout next_sequence_recv */ + next_sequence_recv?: (Long|null); - /** QueryChannelsResponse height */ - height?: (ibc.core.client.v1.IHeight|null); + /** MsgTimeout signer */ + signer?: (string|null); } - /** Represents a QueryChannelsResponse. */ - class QueryChannelsResponse implements IQueryChannelsResponse { + /** Represents a MsgTimeout. */ + class MsgTimeout implements IMsgTimeout { /** - * Constructs a new QueryChannelsResponse. + * Constructs a new MsgTimeout. * @param [properties] Properties to set */ - constructor(properties?: ibc.core.channel.v1.IQueryChannelsResponse); + constructor(properties?: ibc.core.channel.v1.IMsgTimeout); - /** QueryChannelsResponse channels. */ - public channels: ibc.core.channel.v1.IIdentifiedChannel[]; + /** MsgTimeout packet. */ + public packet?: (ibc.core.channel.v1.IPacket|null); - /** QueryChannelsResponse pagination. */ - public pagination?: (cosmos.base.query.v1beta1.IPageResponse|null); + /** MsgTimeout proof_unreceived. */ + public proof_unreceived: Uint8Array; - /** QueryChannelsResponse height. */ - public height?: (ibc.core.client.v1.IHeight|null); + /** MsgTimeout proof_height. */ + public proof_height?: (ibc.core.client.v1.IHeight|null); + + /** MsgTimeout next_sequence_recv. */ + public next_sequence_recv: Long; + + /** MsgTimeout signer. */ + public signer: string; /** - * Encodes the specified QueryChannelsResponse message. Does not implicitly {@link ibc.core.channel.v1.QueryChannelsResponse.verify|verify} messages. - * @param message QueryChannelsResponse message or plain object to encode + * Encodes the specified MsgTimeout message. Does not implicitly {@link ibc.core.channel.v1.MsgTimeout.verify|verify} messages. + * @param message MsgTimeout message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.core.channel.v1.IQueryChannelsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.core.channel.v1.IMsgTimeout, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified QueryChannelsResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryChannelsResponse.verify|verify} messages. - * @param message QueryChannelsResponse message or plain object to encode + * Encodes the specified MsgTimeout message, length delimited. Does not implicitly {@link ibc.core.channel.v1.MsgTimeout.verify|verify} messages. + * @param message MsgTimeout message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.core.channel.v1.IQueryChannelsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.core.channel.v1.IMsgTimeout, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a QueryChannelsResponse message from the specified reader or buffer. + * Decodes a MsgTimeout message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns QueryChannelsResponse + * @returns MsgTimeout * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.channel.v1.QueryChannelsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.channel.v1.MsgTimeout; /** - * Decodes a QueryChannelsResponse message from the specified reader or buffer, length delimited. + * Decodes a MsgTimeout message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns QueryChannelsResponse + * @returns MsgTimeout * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.channel.v1.QueryChannelsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.channel.v1.MsgTimeout; /** - * Verifies a QueryChannelsResponse message. + * Verifies a MsgTimeout message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a QueryChannelsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a MsgTimeout message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns QueryChannelsResponse + * @returns MsgTimeout */ - public static fromObject(object: { [k: string]: any }): ibc.core.channel.v1.QueryChannelsResponse; + public static fromObject(object: { [k: string]: any }): ibc.core.channel.v1.MsgTimeout; /** - * Creates a plain object from a QueryChannelsResponse message. Also converts values to other types if specified. - * @param message QueryChannelsResponse + * Creates a plain object from a MsgTimeout message. Also converts values to other types if specified. + * @param message MsgTimeout * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.core.channel.v1.QueryChannelsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.core.channel.v1.MsgTimeout, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this QueryChannelsResponse to JSON. + * Converts this MsgTimeout to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a QueryConnectionChannelsRequest. */ - interface IQueryConnectionChannelsRequest { - - /** QueryConnectionChannelsRequest connection */ - connection?: (string|null); + /** Properties of a MsgTimeoutResponse. */ + interface IMsgTimeoutResponse { - /** QueryConnectionChannelsRequest pagination */ - pagination?: (cosmos.base.query.v1beta1.IPageRequest|null); + /** MsgTimeoutResponse result */ + result?: (ibc.core.channel.v1.ResponseResultType|null); } - /** Represents a QueryConnectionChannelsRequest. */ - class QueryConnectionChannelsRequest implements IQueryConnectionChannelsRequest { + /** Represents a MsgTimeoutResponse. */ + class MsgTimeoutResponse implements IMsgTimeoutResponse { /** - * Constructs a new QueryConnectionChannelsRequest. + * Constructs a new MsgTimeoutResponse. * @param [properties] Properties to set */ - constructor(properties?: ibc.core.channel.v1.IQueryConnectionChannelsRequest); - - /** QueryConnectionChannelsRequest connection. */ - public connection: string; + constructor(properties?: ibc.core.channel.v1.IMsgTimeoutResponse); - /** QueryConnectionChannelsRequest pagination. */ - public pagination?: (cosmos.base.query.v1beta1.IPageRequest|null); + /** MsgTimeoutResponse result. */ + public result: ibc.core.channel.v1.ResponseResultType; /** - * Encodes the specified QueryConnectionChannelsRequest message. Does not implicitly {@link ibc.core.channel.v1.QueryConnectionChannelsRequest.verify|verify} messages. - * @param message QueryConnectionChannelsRequest message or plain object to encode + * Encodes the specified MsgTimeoutResponse message. Does not implicitly {@link ibc.core.channel.v1.MsgTimeoutResponse.verify|verify} messages. + * @param message MsgTimeoutResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.core.channel.v1.IQueryConnectionChannelsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.core.channel.v1.IMsgTimeoutResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified QueryConnectionChannelsRequest message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryConnectionChannelsRequest.verify|verify} messages. - * @param message QueryConnectionChannelsRequest message or plain object to encode + * Encodes the specified MsgTimeoutResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.MsgTimeoutResponse.verify|verify} messages. + * @param message MsgTimeoutResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.core.channel.v1.IQueryConnectionChannelsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.core.channel.v1.IMsgTimeoutResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a QueryConnectionChannelsRequest message from the specified reader or buffer. + * Decodes a MsgTimeoutResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns QueryConnectionChannelsRequest + * @returns MsgTimeoutResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.channel.v1.QueryConnectionChannelsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.channel.v1.MsgTimeoutResponse; /** - * Decodes a QueryConnectionChannelsRequest message from the specified reader or buffer, length delimited. + * Decodes a MsgTimeoutResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns QueryConnectionChannelsRequest + * @returns MsgTimeoutResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.channel.v1.QueryConnectionChannelsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.channel.v1.MsgTimeoutResponse; /** - * Verifies a QueryConnectionChannelsRequest message. + * Verifies a MsgTimeoutResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a QueryConnectionChannelsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MsgTimeoutResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns QueryConnectionChannelsRequest + * @returns MsgTimeoutResponse */ - public static fromObject(object: { [k: string]: any }): ibc.core.channel.v1.QueryConnectionChannelsRequest; + public static fromObject(object: { [k: string]: any }): ibc.core.channel.v1.MsgTimeoutResponse; /** - * Creates a plain object from a QueryConnectionChannelsRequest message. Also converts values to other types if specified. - * @param message QueryConnectionChannelsRequest + * Creates a plain object from a MsgTimeoutResponse message. Also converts values to other types if specified. + * @param message MsgTimeoutResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.core.channel.v1.QueryConnectionChannelsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.core.channel.v1.MsgTimeoutResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this QueryConnectionChannelsRequest to JSON. + * Converts this MsgTimeoutResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a QueryConnectionChannelsResponse. */ - interface IQueryConnectionChannelsResponse { + /** Properties of a MsgTimeoutOnClose. */ + interface IMsgTimeoutOnClose { - /** QueryConnectionChannelsResponse channels */ - channels?: (ibc.core.channel.v1.IIdentifiedChannel[]|null); + /** MsgTimeoutOnClose packet */ + packet?: (ibc.core.channel.v1.IPacket|null); - /** QueryConnectionChannelsResponse pagination */ - pagination?: (cosmos.base.query.v1beta1.IPageResponse|null); + /** MsgTimeoutOnClose proof_unreceived */ + proof_unreceived?: (Uint8Array|null); - /** QueryConnectionChannelsResponse height */ - height?: (ibc.core.client.v1.IHeight|null); + /** MsgTimeoutOnClose proof_close */ + proof_close?: (Uint8Array|null); + + /** MsgTimeoutOnClose proof_height */ + proof_height?: (ibc.core.client.v1.IHeight|null); + + /** MsgTimeoutOnClose next_sequence_recv */ + next_sequence_recv?: (Long|null); + + /** MsgTimeoutOnClose signer */ + signer?: (string|null); } - /** Represents a QueryConnectionChannelsResponse. */ - class QueryConnectionChannelsResponse implements IQueryConnectionChannelsResponse { + /** Represents a MsgTimeoutOnClose. */ + class MsgTimeoutOnClose implements IMsgTimeoutOnClose { /** - * Constructs a new QueryConnectionChannelsResponse. + * Constructs a new MsgTimeoutOnClose. * @param [properties] Properties to set */ - constructor(properties?: ibc.core.channel.v1.IQueryConnectionChannelsResponse); + constructor(properties?: ibc.core.channel.v1.IMsgTimeoutOnClose); - /** QueryConnectionChannelsResponse channels. */ - public channels: ibc.core.channel.v1.IIdentifiedChannel[]; + /** MsgTimeoutOnClose packet. */ + public packet?: (ibc.core.channel.v1.IPacket|null); - /** QueryConnectionChannelsResponse pagination. */ - public pagination?: (cosmos.base.query.v1beta1.IPageResponse|null); + /** MsgTimeoutOnClose proof_unreceived. */ + public proof_unreceived: Uint8Array; - /** QueryConnectionChannelsResponse height. */ - public height?: (ibc.core.client.v1.IHeight|null); + /** MsgTimeoutOnClose proof_close. */ + public proof_close: Uint8Array; + + /** MsgTimeoutOnClose proof_height. */ + public proof_height?: (ibc.core.client.v1.IHeight|null); + + /** MsgTimeoutOnClose next_sequence_recv. */ + public next_sequence_recv: Long; + + /** MsgTimeoutOnClose signer. */ + public signer: string; /** - * Encodes the specified QueryConnectionChannelsResponse message. Does not implicitly {@link ibc.core.channel.v1.QueryConnectionChannelsResponse.verify|verify} messages. - * @param message QueryConnectionChannelsResponse message or plain object to encode + * Encodes the specified MsgTimeoutOnClose message. Does not implicitly {@link ibc.core.channel.v1.MsgTimeoutOnClose.verify|verify} messages. + * @param message MsgTimeoutOnClose message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.core.channel.v1.IQueryConnectionChannelsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.core.channel.v1.IMsgTimeoutOnClose, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified QueryConnectionChannelsResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryConnectionChannelsResponse.verify|verify} messages. - * @param message QueryConnectionChannelsResponse message or plain object to encode + * Encodes the specified MsgTimeoutOnClose message, length delimited. Does not implicitly {@link ibc.core.channel.v1.MsgTimeoutOnClose.verify|verify} messages. + * @param message MsgTimeoutOnClose message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.core.channel.v1.IQueryConnectionChannelsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.core.channel.v1.IMsgTimeoutOnClose, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a QueryConnectionChannelsResponse message from the specified reader or buffer. + * Decodes a MsgTimeoutOnClose message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns QueryConnectionChannelsResponse + * @returns MsgTimeoutOnClose * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.channel.v1.QueryConnectionChannelsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.channel.v1.MsgTimeoutOnClose; /** - * Decodes a QueryConnectionChannelsResponse message from the specified reader or buffer, length delimited. + * Decodes a MsgTimeoutOnClose message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns QueryConnectionChannelsResponse + * @returns MsgTimeoutOnClose * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.channel.v1.QueryConnectionChannelsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.channel.v1.MsgTimeoutOnClose; /** - * Verifies a QueryConnectionChannelsResponse message. + * Verifies a MsgTimeoutOnClose message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a QueryConnectionChannelsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a MsgTimeoutOnClose message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns QueryConnectionChannelsResponse + * @returns MsgTimeoutOnClose */ - public static fromObject(object: { [k: string]: any }): ibc.core.channel.v1.QueryConnectionChannelsResponse; + public static fromObject(object: { [k: string]: any }): ibc.core.channel.v1.MsgTimeoutOnClose; /** - * Creates a plain object from a QueryConnectionChannelsResponse message. Also converts values to other types if specified. - * @param message QueryConnectionChannelsResponse + * Creates a plain object from a MsgTimeoutOnClose message. Also converts values to other types if specified. + * @param message MsgTimeoutOnClose * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.core.channel.v1.QueryConnectionChannelsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.core.channel.v1.MsgTimeoutOnClose, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this QueryConnectionChannelsResponse to JSON. + * Converts this MsgTimeoutOnClose to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a QueryChannelClientStateRequest. */ - interface IQueryChannelClientStateRequest { - - /** QueryChannelClientStateRequest port_id */ - port_id?: (string|null); + /** Properties of a MsgTimeoutOnCloseResponse. */ + interface IMsgTimeoutOnCloseResponse { - /** QueryChannelClientStateRequest channel_id */ - channel_id?: (string|null); + /** MsgTimeoutOnCloseResponse result */ + result?: (ibc.core.channel.v1.ResponseResultType|null); } - /** Represents a QueryChannelClientStateRequest. */ - class QueryChannelClientStateRequest implements IQueryChannelClientStateRequest { + /** Represents a MsgTimeoutOnCloseResponse. */ + class MsgTimeoutOnCloseResponse implements IMsgTimeoutOnCloseResponse { /** - * Constructs a new QueryChannelClientStateRequest. + * Constructs a new MsgTimeoutOnCloseResponse. * @param [properties] Properties to set */ - constructor(properties?: ibc.core.channel.v1.IQueryChannelClientStateRequest); - - /** QueryChannelClientStateRequest port_id. */ - public port_id: string; + constructor(properties?: ibc.core.channel.v1.IMsgTimeoutOnCloseResponse); - /** QueryChannelClientStateRequest channel_id. */ - public channel_id: string; + /** MsgTimeoutOnCloseResponse result. */ + public result: ibc.core.channel.v1.ResponseResultType; /** - * Encodes the specified QueryChannelClientStateRequest message. Does not implicitly {@link ibc.core.channel.v1.QueryChannelClientStateRequest.verify|verify} messages. - * @param message QueryChannelClientStateRequest message or plain object to encode + * Encodes the specified MsgTimeoutOnCloseResponse message. Does not implicitly {@link ibc.core.channel.v1.MsgTimeoutOnCloseResponse.verify|verify} messages. + * @param message MsgTimeoutOnCloseResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.core.channel.v1.IQueryChannelClientStateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.core.channel.v1.IMsgTimeoutOnCloseResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified QueryChannelClientStateRequest message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryChannelClientStateRequest.verify|verify} messages. - * @param message QueryChannelClientStateRequest message or plain object to encode + * Encodes the specified MsgTimeoutOnCloseResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.MsgTimeoutOnCloseResponse.verify|verify} messages. + * @param message MsgTimeoutOnCloseResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.core.channel.v1.IQueryChannelClientStateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.core.channel.v1.IMsgTimeoutOnCloseResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a QueryChannelClientStateRequest message from the specified reader or buffer. + * Decodes a MsgTimeoutOnCloseResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns QueryChannelClientStateRequest + * @returns MsgTimeoutOnCloseResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.channel.v1.QueryChannelClientStateRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.channel.v1.MsgTimeoutOnCloseResponse; /** - * Decodes a QueryChannelClientStateRequest message from the specified reader or buffer, length delimited. + * Decodes a MsgTimeoutOnCloseResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns QueryChannelClientStateRequest + * @returns MsgTimeoutOnCloseResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.channel.v1.QueryChannelClientStateRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.channel.v1.MsgTimeoutOnCloseResponse; /** - * Verifies a QueryChannelClientStateRequest message. + * Verifies a MsgTimeoutOnCloseResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a QueryChannelClientStateRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MsgTimeoutOnCloseResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns QueryChannelClientStateRequest + * @returns MsgTimeoutOnCloseResponse */ - public static fromObject(object: { [k: string]: any }): ibc.core.channel.v1.QueryChannelClientStateRequest; + public static fromObject(object: { [k: string]: any }): ibc.core.channel.v1.MsgTimeoutOnCloseResponse; /** - * Creates a plain object from a QueryChannelClientStateRequest message. Also converts values to other types if specified. - * @param message QueryChannelClientStateRequest + * Creates a plain object from a MsgTimeoutOnCloseResponse message. Also converts values to other types if specified. + * @param message MsgTimeoutOnCloseResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.core.channel.v1.QueryChannelClientStateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.core.channel.v1.MsgTimeoutOnCloseResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this QueryChannelClientStateRequest to JSON. + * Converts this MsgTimeoutOnCloseResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a QueryChannelClientStateResponse. */ - interface IQueryChannelClientStateResponse { + /** Properties of a MsgAcknowledgement. */ + interface IMsgAcknowledgement { - /** QueryChannelClientStateResponse identified_client_state */ - identified_client_state?: (ibc.core.client.v1.IIdentifiedClientState|null); + /** MsgAcknowledgement packet */ + packet?: (ibc.core.channel.v1.IPacket|null); - /** QueryChannelClientStateResponse proof */ - proof?: (Uint8Array|null); + /** MsgAcknowledgement acknowledgement */ + acknowledgement?: (Uint8Array|null); - /** QueryChannelClientStateResponse proof_height */ + /** MsgAcknowledgement proof_acked */ + proof_acked?: (Uint8Array|null); + + /** MsgAcknowledgement proof_height */ proof_height?: (ibc.core.client.v1.IHeight|null); + + /** MsgAcknowledgement signer */ + signer?: (string|null); } - /** Represents a QueryChannelClientStateResponse. */ - class QueryChannelClientStateResponse implements IQueryChannelClientStateResponse { + /** Represents a MsgAcknowledgement. */ + class MsgAcknowledgement implements IMsgAcknowledgement { /** - * Constructs a new QueryChannelClientStateResponse. + * Constructs a new MsgAcknowledgement. * @param [properties] Properties to set */ - constructor(properties?: ibc.core.channel.v1.IQueryChannelClientStateResponse); + constructor(properties?: ibc.core.channel.v1.IMsgAcknowledgement); - /** QueryChannelClientStateResponse identified_client_state. */ - public identified_client_state?: (ibc.core.client.v1.IIdentifiedClientState|null); + /** MsgAcknowledgement packet. */ + public packet?: (ibc.core.channel.v1.IPacket|null); - /** QueryChannelClientStateResponse proof. */ - public proof: Uint8Array; + /** MsgAcknowledgement acknowledgement. */ + public acknowledgement: Uint8Array; - /** QueryChannelClientStateResponse proof_height. */ + /** MsgAcknowledgement proof_acked. */ + public proof_acked: Uint8Array; + + /** MsgAcknowledgement proof_height. */ public proof_height?: (ibc.core.client.v1.IHeight|null); + /** MsgAcknowledgement signer. */ + public signer: string; + /** - * Encodes the specified QueryChannelClientStateResponse message. Does not implicitly {@link ibc.core.channel.v1.QueryChannelClientStateResponse.verify|verify} messages. - * @param message QueryChannelClientStateResponse message or plain object to encode + * Encodes the specified MsgAcknowledgement message. Does not implicitly {@link ibc.core.channel.v1.MsgAcknowledgement.verify|verify} messages. + * @param message MsgAcknowledgement message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.core.channel.v1.IQueryChannelClientStateResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.core.channel.v1.IMsgAcknowledgement, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified QueryChannelClientStateResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryChannelClientStateResponse.verify|verify} messages. - * @param message QueryChannelClientStateResponse message or plain object to encode + * Encodes the specified MsgAcknowledgement message, length delimited. Does not implicitly {@link ibc.core.channel.v1.MsgAcknowledgement.verify|verify} messages. + * @param message MsgAcknowledgement message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.core.channel.v1.IQueryChannelClientStateResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.core.channel.v1.IMsgAcknowledgement, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a QueryChannelClientStateResponse message from the specified reader or buffer. + * Decodes a MsgAcknowledgement message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns QueryChannelClientStateResponse + * @returns MsgAcknowledgement * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.channel.v1.QueryChannelClientStateResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.channel.v1.MsgAcknowledgement; /** - * Decodes a QueryChannelClientStateResponse message from the specified reader or buffer, length delimited. + * Decodes a MsgAcknowledgement message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns QueryChannelClientStateResponse + * @returns MsgAcknowledgement * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.channel.v1.QueryChannelClientStateResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.channel.v1.MsgAcknowledgement; /** - * Verifies a QueryChannelClientStateResponse message. + * Verifies a MsgAcknowledgement message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a QueryChannelClientStateResponse message from a plain object. Also converts values to their respective internal types. + * Creates a MsgAcknowledgement message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns QueryChannelClientStateResponse + * @returns MsgAcknowledgement */ - public static fromObject(object: { [k: string]: any }): ibc.core.channel.v1.QueryChannelClientStateResponse; + public static fromObject(object: { [k: string]: any }): ibc.core.channel.v1.MsgAcknowledgement; /** - * Creates a plain object from a QueryChannelClientStateResponse message. Also converts values to other types if specified. - * @param message QueryChannelClientStateResponse + * Creates a plain object from a MsgAcknowledgement message. Also converts values to other types if specified. + * @param message MsgAcknowledgement * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.core.channel.v1.QueryChannelClientStateResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.core.channel.v1.MsgAcknowledgement, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this QueryChannelClientStateResponse to JSON. + * Converts this MsgAcknowledgement to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a QueryChannelConsensusStateRequest. */ - interface IQueryChannelConsensusStateRequest { - - /** QueryChannelConsensusStateRequest port_id */ - port_id?: (string|null); - - /** QueryChannelConsensusStateRequest channel_id */ - channel_id?: (string|null); - - /** QueryChannelConsensusStateRequest revision_number */ - revision_number?: (Long|null); + /** Properties of a MsgAcknowledgementResponse. */ + interface IMsgAcknowledgementResponse { - /** QueryChannelConsensusStateRequest revision_height */ - revision_height?: (Long|null); + /** MsgAcknowledgementResponse result */ + result?: (ibc.core.channel.v1.ResponseResultType|null); } - /** Represents a QueryChannelConsensusStateRequest. */ - class QueryChannelConsensusStateRequest implements IQueryChannelConsensusStateRequest { + /** Represents a MsgAcknowledgementResponse. */ + class MsgAcknowledgementResponse implements IMsgAcknowledgementResponse { /** - * Constructs a new QueryChannelConsensusStateRequest. + * Constructs a new MsgAcknowledgementResponse. * @param [properties] Properties to set */ - constructor(properties?: ibc.core.channel.v1.IQueryChannelConsensusStateRequest); - - /** QueryChannelConsensusStateRequest port_id. */ - public port_id: string; - - /** QueryChannelConsensusStateRequest channel_id. */ - public channel_id: string; - - /** QueryChannelConsensusStateRequest revision_number. */ - public revision_number: Long; + constructor(properties?: ibc.core.channel.v1.IMsgAcknowledgementResponse); - /** QueryChannelConsensusStateRequest revision_height. */ - public revision_height: Long; + /** MsgAcknowledgementResponse result. */ + public result: ibc.core.channel.v1.ResponseResultType; /** - * Encodes the specified QueryChannelConsensusStateRequest message. Does not implicitly {@link ibc.core.channel.v1.QueryChannelConsensusStateRequest.verify|verify} messages. - * @param message QueryChannelConsensusStateRequest message or plain object to encode + * Encodes the specified MsgAcknowledgementResponse message. Does not implicitly {@link ibc.core.channel.v1.MsgAcknowledgementResponse.verify|verify} messages. + * @param message MsgAcknowledgementResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.core.channel.v1.IQueryChannelConsensusStateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.core.channel.v1.IMsgAcknowledgementResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified QueryChannelConsensusStateRequest message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryChannelConsensusStateRequest.verify|verify} messages. - * @param message QueryChannelConsensusStateRequest message or plain object to encode + * Encodes the specified MsgAcknowledgementResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.MsgAcknowledgementResponse.verify|verify} messages. + * @param message MsgAcknowledgementResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.core.channel.v1.IQueryChannelConsensusStateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.core.channel.v1.IMsgAcknowledgementResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a QueryChannelConsensusStateRequest message from the specified reader or buffer. + * Decodes a MsgAcknowledgementResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns QueryChannelConsensusStateRequest + * @returns MsgAcknowledgementResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.channel.v1.QueryChannelConsensusStateRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.channel.v1.MsgAcknowledgementResponse; /** - * Decodes a QueryChannelConsensusStateRequest message from the specified reader or buffer, length delimited. + * Decodes a MsgAcknowledgementResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns QueryChannelConsensusStateRequest + * @returns MsgAcknowledgementResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.channel.v1.QueryChannelConsensusStateRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.channel.v1.MsgAcknowledgementResponse; /** - * Verifies a QueryChannelConsensusStateRequest message. + * Verifies a MsgAcknowledgementResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a QueryChannelConsensusStateRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MsgAcknowledgementResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns QueryChannelConsensusStateRequest + * @returns MsgAcknowledgementResponse */ - public static fromObject(object: { [k: string]: any }): ibc.core.channel.v1.QueryChannelConsensusStateRequest; + public static fromObject(object: { [k: string]: any }): ibc.core.channel.v1.MsgAcknowledgementResponse; /** - * Creates a plain object from a QueryChannelConsensusStateRequest message. Also converts values to other types if specified. - * @param message QueryChannelConsensusStateRequest + * Creates a plain object from a MsgAcknowledgementResponse message. Also converts values to other types if specified. + * @param message MsgAcknowledgementResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.core.channel.v1.QueryChannelConsensusStateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.core.channel.v1.MsgAcknowledgementResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this QueryChannelConsensusStateRequest to JSON. + * Converts this MsgAcknowledgementResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a QueryChannelConsensusStateResponse. */ - interface IQueryChannelConsensusStateResponse { - - /** QueryChannelConsensusStateResponse consensus_state */ - consensus_state?: (google.protobuf.IAny|null); - - /** QueryChannelConsensusStateResponse client_id */ - client_id?: (string|null); - - /** QueryChannelConsensusStateResponse proof */ - proof?: (Uint8Array|null); - - /** QueryChannelConsensusStateResponse proof_height */ - proof_height?: (ibc.core.client.v1.IHeight|null); - } - - /** Represents a QueryChannelConsensusStateResponse. */ - class QueryChannelConsensusStateResponse implements IQueryChannelConsensusStateResponse { + /** Represents a Query */ + class Query extends $protobuf.rpc.Service { /** - * Constructs a new QueryChannelConsensusStateResponse. - * @param [properties] Properties to set + * Constructs a new Query service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited */ - constructor(properties?: ibc.core.channel.v1.IQueryChannelConsensusStateResponse); - - /** QueryChannelConsensusStateResponse consensus_state. */ - public consensus_state?: (google.protobuf.IAny|null); - - /** QueryChannelConsensusStateResponse client_id. */ - public client_id: string; - - /** QueryChannelConsensusStateResponse proof. */ - public proof: Uint8Array; + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); - /** QueryChannelConsensusStateResponse proof_height. */ - public proof_height?: (ibc.core.client.v1.IHeight|null); + /** + * Calls Channel. + * @param request QueryChannelRequest message or plain object + * @param callback Node-style callback called with the error, if any, and QueryChannelResponse + */ + public channel(request: ibc.core.channel.v1.IQueryChannelRequest, callback: ibc.core.channel.v1.Query.ChannelCallback): void; /** - * Encodes the specified QueryChannelConsensusStateResponse message. Does not implicitly {@link ibc.core.channel.v1.QueryChannelConsensusStateResponse.verify|verify} messages. - * @param message QueryChannelConsensusStateResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls Channel. + * @param request QueryChannelRequest message or plain object + * @returns Promise */ - public static encode(message: ibc.core.channel.v1.IQueryChannelConsensusStateResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public channel(request: ibc.core.channel.v1.IQueryChannelRequest): Promise; /** - * Encodes the specified QueryChannelConsensusStateResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryChannelConsensusStateResponse.verify|verify} messages. - * @param message QueryChannelConsensusStateResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls Channels. + * @param request QueryChannelsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and QueryChannelsResponse */ - public static encodeDelimited(message: ibc.core.channel.v1.IQueryChannelConsensusStateResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public channels(request: ibc.core.channel.v1.IQueryChannelsRequest, callback: ibc.core.channel.v1.Query.ChannelsCallback): void; /** - * Decodes a QueryChannelConsensusStateResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns QueryChannelConsensusStateResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls Channels. + * @param request QueryChannelsRequest message or plain object + * @returns Promise */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.channel.v1.QueryChannelConsensusStateResponse; + public channels(request: ibc.core.channel.v1.IQueryChannelsRequest): Promise; /** - * Decodes a QueryChannelConsensusStateResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns QueryChannelConsensusStateResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls ConnectionChannels. + * @param request QueryConnectionChannelsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and QueryConnectionChannelsResponse */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.channel.v1.QueryChannelConsensusStateResponse; + public connectionChannels(request: ibc.core.channel.v1.IQueryConnectionChannelsRequest, callback: ibc.core.channel.v1.Query.ConnectionChannelsCallback): void; /** - * Verifies a QueryChannelConsensusStateResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls ConnectionChannels. + * @param request QueryConnectionChannelsRequest message or plain object + * @returns Promise */ - public static verify(message: { [k: string]: any }): (string|null); + public connectionChannels(request: ibc.core.channel.v1.IQueryConnectionChannelsRequest): Promise; /** - * Creates a QueryChannelConsensusStateResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns QueryChannelConsensusStateResponse + * Calls ChannelClientState. + * @param request QueryChannelClientStateRequest message or plain object + * @param callback Node-style callback called with the error, if any, and QueryChannelClientStateResponse */ - public static fromObject(object: { [k: string]: any }): ibc.core.channel.v1.QueryChannelConsensusStateResponse; + public channelClientState(request: ibc.core.channel.v1.IQueryChannelClientStateRequest, callback: ibc.core.channel.v1.Query.ChannelClientStateCallback): void; /** - * Creates a plain object from a QueryChannelConsensusStateResponse message. Also converts values to other types if specified. - * @param message QueryChannelConsensusStateResponse - * @param [options] Conversion options - * @returns Plain object + * Calls ChannelClientState. + * @param request QueryChannelClientStateRequest message or plain object + * @returns Promise */ - public static toObject(message: ibc.core.channel.v1.QueryChannelConsensusStateResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public channelClientState(request: ibc.core.channel.v1.IQueryChannelClientStateRequest): Promise; /** - * Converts this QueryChannelConsensusStateResponse to JSON. - * @returns JSON object + * Calls ChannelConsensusState. + * @param request QueryChannelConsensusStateRequest message or plain object + * @param callback Node-style callback called with the error, if any, and QueryChannelConsensusStateResponse */ - public toJSON(): { [k: string]: any }; - } + public channelConsensusState(request: ibc.core.channel.v1.IQueryChannelConsensusStateRequest, callback: ibc.core.channel.v1.Query.ChannelConsensusStateCallback): void; - /** Properties of a QueryPacketCommitmentRequest. */ - interface IQueryPacketCommitmentRequest { + /** + * Calls ChannelConsensusState. + * @param request QueryChannelConsensusStateRequest message or plain object + * @returns Promise + */ + public channelConsensusState(request: ibc.core.channel.v1.IQueryChannelConsensusStateRequest): Promise; - /** QueryPacketCommitmentRequest port_id */ - port_id?: (string|null); + /** + * Calls PacketCommitment. + * @param request QueryPacketCommitmentRequest message or plain object + * @param callback Node-style callback called with the error, if any, and QueryPacketCommitmentResponse + */ + public packetCommitment(request: ibc.core.channel.v1.IQueryPacketCommitmentRequest, callback: ibc.core.channel.v1.Query.PacketCommitmentCallback): void; - /** QueryPacketCommitmentRequest channel_id */ - channel_id?: (string|null); + /** + * Calls PacketCommitment. + * @param request QueryPacketCommitmentRequest message or plain object + * @returns Promise + */ + public packetCommitment(request: ibc.core.channel.v1.IQueryPacketCommitmentRequest): Promise; - /** QueryPacketCommitmentRequest sequence */ - sequence?: (Long|null); - } + /** + * Calls PacketCommitments. + * @param request QueryPacketCommitmentsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and QueryPacketCommitmentsResponse + */ + public packetCommitments(request: ibc.core.channel.v1.IQueryPacketCommitmentsRequest, callback: ibc.core.channel.v1.Query.PacketCommitmentsCallback): void; - /** Represents a QueryPacketCommitmentRequest. */ - class QueryPacketCommitmentRequest implements IQueryPacketCommitmentRequest { + /** + * Calls PacketCommitments. + * @param request QueryPacketCommitmentsRequest message or plain object + * @returns Promise + */ + public packetCommitments(request: ibc.core.channel.v1.IQueryPacketCommitmentsRequest): Promise; /** - * Constructs a new QueryPacketCommitmentRequest. - * @param [properties] Properties to set + * Calls PacketReceipt. + * @param request QueryPacketReceiptRequest message or plain object + * @param callback Node-style callback called with the error, if any, and QueryPacketReceiptResponse */ - constructor(properties?: ibc.core.channel.v1.IQueryPacketCommitmentRequest); + public packetReceipt(request: ibc.core.channel.v1.IQueryPacketReceiptRequest, callback: ibc.core.channel.v1.Query.PacketReceiptCallback): void; - /** QueryPacketCommitmentRequest port_id. */ - public port_id: string; + /** + * Calls PacketReceipt. + * @param request QueryPacketReceiptRequest message or plain object + * @returns Promise + */ + public packetReceipt(request: ibc.core.channel.v1.IQueryPacketReceiptRequest): Promise; - /** QueryPacketCommitmentRequest channel_id. */ - public channel_id: string; + /** + * Calls PacketAcknowledgement. + * @param request QueryPacketAcknowledgementRequest message or plain object + * @param callback Node-style callback called with the error, if any, and QueryPacketAcknowledgementResponse + */ + public packetAcknowledgement(request: ibc.core.channel.v1.IQueryPacketAcknowledgementRequest, callback: ibc.core.channel.v1.Query.PacketAcknowledgementCallback): void; - /** QueryPacketCommitmentRequest sequence. */ - public sequence: Long; + /** + * Calls PacketAcknowledgement. + * @param request QueryPacketAcknowledgementRequest message or plain object + * @returns Promise + */ + public packetAcknowledgement(request: ibc.core.channel.v1.IQueryPacketAcknowledgementRequest): Promise; /** - * Encodes the specified QueryPacketCommitmentRequest message. Does not implicitly {@link ibc.core.channel.v1.QueryPacketCommitmentRequest.verify|verify} messages. - * @param message QueryPacketCommitmentRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls PacketAcknowledgements. + * @param request QueryPacketAcknowledgementsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and QueryPacketAcknowledgementsResponse */ - public static encode(message: ibc.core.channel.v1.IQueryPacketCommitmentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public packetAcknowledgements(request: ibc.core.channel.v1.IQueryPacketAcknowledgementsRequest, callback: ibc.core.channel.v1.Query.PacketAcknowledgementsCallback): void; /** - * Encodes the specified QueryPacketCommitmentRequest message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryPacketCommitmentRequest.verify|verify} messages. - * @param message QueryPacketCommitmentRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls PacketAcknowledgements. + * @param request QueryPacketAcknowledgementsRequest message or plain object + * @returns Promise */ - public static encodeDelimited(message: ibc.core.channel.v1.IQueryPacketCommitmentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public packetAcknowledgements(request: ibc.core.channel.v1.IQueryPacketAcknowledgementsRequest): Promise; /** - * Decodes a QueryPacketCommitmentRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns QueryPacketCommitmentRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls UnreceivedPackets. + * @param request QueryUnreceivedPacketsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and QueryUnreceivedPacketsResponse */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.channel.v1.QueryPacketCommitmentRequest; + public unreceivedPackets(request: ibc.core.channel.v1.IQueryUnreceivedPacketsRequest, callback: ibc.core.channel.v1.Query.UnreceivedPacketsCallback): void; /** - * Decodes a QueryPacketCommitmentRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns QueryPacketCommitmentRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls UnreceivedPackets. + * @param request QueryUnreceivedPacketsRequest message or plain object + * @returns Promise */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.channel.v1.QueryPacketCommitmentRequest; + public unreceivedPackets(request: ibc.core.channel.v1.IQueryUnreceivedPacketsRequest): Promise; /** - * Verifies a QueryPacketCommitmentRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls UnreceivedAcks. + * @param request QueryUnreceivedAcksRequest message or plain object + * @param callback Node-style callback called with the error, if any, and QueryUnreceivedAcksResponse */ - public static verify(message: { [k: string]: any }): (string|null); + public unreceivedAcks(request: ibc.core.channel.v1.IQueryUnreceivedAcksRequest, callback: ibc.core.channel.v1.Query.UnreceivedAcksCallback): void; /** - * Creates a QueryPacketCommitmentRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns QueryPacketCommitmentRequest + * Calls UnreceivedAcks. + * @param request QueryUnreceivedAcksRequest message or plain object + * @returns Promise */ - public static fromObject(object: { [k: string]: any }): ibc.core.channel.v1.QueryPacketCommitmentRequest; + public unreceivedAcks(request: ibc.core.channel.v1.IQueryUnreceivedAcksRequest): Promise; /** - * Creates a plain object from a QueryPacketCommitmentRequest message. Also converts values to other types if specified. - * @param message QueryPacketCommitmentRequest - * @param [options] Conversion options - * @returns Plain object + * Calls NextSequenceReceive. + * @param request QueryNextSequenceReceiveRequest message or plain object + * @param callback Node-style callback called with the error, if any, and QueryNextSequenceReceiveResponse */ - public static toObject(message: ibc.core.channel.v1.QueryPacketCommitmentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public nextSequenceReceive(request: ibc.core.channel.v1.IQueryNextSequenceReceiveRequest, callback: ibc.core.channel.v1.Query.NextSequenceReceiveCallback): void; /** - * Converts this QueryPacketCommitmentRequest to JSON. - * @returns JSON object + * Calls NextSequenceReceive. + * @param request QueryNextSequenceReceiveRequest message or plain object + * @returns Promise */ - public toJSON(): { [k: string]: any }; + public nextSequenceReceive(request: ibc.core.channel.v1.IQueryNextSequenceReceiveRequest): Promise; } - /** Properties of a QueryPacketCommitmentResponse. */ - interface IQueryPacketCommitmentResponse { - - /** QueryPacketCommitmentResponse commitment */ - commitment?: (Uint8Array|null); - - /** QueryPacketCommitmentResponse proof */ - proof?: (Uint8Array|null); - - /** QueryPacketCommitmentResponse proof_height */ - proof_height?: (ibc.core.client.v1.IHeight|null); - } + namespace Query { - /** Represents a QueryPacketCommitmentResponse. */ - class QueryPacketCommitmentResponse implements IQueryPacketCommitmentResponse { + /** + * Callback as used by {@link ibc.core.channel.v1.Query#channel}. + * @param error Error, if any + * @param [response] QueryChannelResponse + */ + type ChannelCallback = (error: (Error|null), response?: ibc.core.channel.v1.QueryChannelResponse) => void; /** - * Constructs a new QueryPacketCommitmentResponse. - * @param [properties] Properties to set + * Callback as used by {@link ibc.core.channel.v1.Query#channels}. + * @param error Error, if any + * @param [response] QueryChannelsResponse */ - constructor(properties?: ibc.core.channel.v1.IQueryPacketCommitmentResponse); + type ChannelsCallback = (error: (Error|null), response?: ibc.core.channel.v1.QueryChannelsResponse) => void; - /** QueryPacketCommitmentResponse commitment. */ - public commitment: Uint8Array; + /** + * Callback as used by {@link ibc.core.channel.v1.Query#connectionChannels}. + * @param error Error, if any + * @param [response] QueryConnectionChannelsResponse + */ + type ConnectionChannelsCallback = (error: (Error|null), response?: ibc.core.channel.v1.QueryConnectionChannelsResponse) => void; - /** QueryPacketCommitmentResponse proof. */ - public proof: Uint8Array; + /** + * Callback as used by {@link ibc.core.channel.v1.Query#channelClientState}. + * @param error Error, if any + * @param [response] QueryChannelClientStateResponse + */ + type ChannelClientStateCallback = (error: (Error|null), response?: ibc.core.channel.v1.QueryChannelClientStateResponse) => void; - /** QueryPacketCommitmentResponse proof_height. */ - public proof_height?: (ibc.core.client.v1.IHeight|null); + /** + * Callback as used by {@link ibc.core.channel.v1.Query#channelConsensusState}. + * @param error Error, if any + * @param [response] QueryChannelConsensusStateResponse + */ + type ChannelConsensusStateCallback = (error: (Error|null), response?: ibc.core.channel.v1.QueryChannelConsensusStateResponse) => void; /** - * Encodes the specified QueryPacketCommitmentResponse message. Does not implicitly {@link ibc.core.channel.v1.QueryPacketCommitmentResponse.verify|verify} messages. - * @param message QueryPacketCommitmentResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Callback as used by {@link ibc.core.channel.v1.Query#packetCommitment}. + * @param error Error, if any + * @param [response] QueryPacketCommitmentResponse */ - public static encode(message: ibc.core.channel.v1.IQueryPacketCommitmentResponse, writer?: $protobuf.Writer): $protobuf.Writer; + type PacketCommitmentCallback = (error: (Error|null), response?: ibc.core.channel.v1.QueryPacketCommitmentResponse) => void; /** - * Encodes the specified QueryPacketCommitmentResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryPacketCommitmentResponse.verify|verify} messages. - * @param message QueryPacketCommitmentResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Callback as used by {@link ibc.core.channel.v1.Query#packetCommitments}. + * @param error Error, if any + * @param [response] QueryPacketCommitmentsResponse */ - public static encodeDelimited(message: ibc.core.channel.v1.IQueryPacketCommitmentResponse, writer?: $protobuf.Writer): $protobuf.Writer; + type PacketCommitmentsCallback = (error: (Error|null), response?: ibc.core.channel.v1.QueryPacketCommitmentsResponse) => void; /** - * Decodes a QueryPacketCommitmentResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns QueryPacketCommitmentResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link ibc.core.channel.v1.Query#packetReceipt}. + * @param error Error, if any + * @param [response] QueryPacketReceiptResponse */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.channel.v1.QueryPacketCommitmentResponse; + type PacketReceiptCallback = (error: (Error|null), response?: ibc.core.channel.v1.QueryPacketReceiptResponse) => void; /** - * Decodes a QueryPacketCommitmentResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns QueryPacketCommitmentResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link ibc.core.channel.v1.Query#packetAcknowledgement}. + * @param error Error, if any + * @param [response] QueryPacketAcknowledgementResponse */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.channel.v1.QueryPacketCommitmentResponse; + type PacketAcknowledgementCallback = (error: (Error|null), response?: ibc.core.channel.v1.QueryPacketAcknowledgementResponse) => void; /** - * Verifies a QueryPacketCommitmentResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Callback as used by {@link ibc.core.channel.v1.Query#packetAcknowledgements}. + * @param error Error, if any + * @param [response] QueryPacketAcknowledgementsResponse */ - public static verify(message: { [k: string]: any }): (string|null); + type PacketAcknowledgementsCallback = (error: (Error|null), response?: ibc.core.channel.v1.QueryPacketAcknowledgementsResponse) => void; /** - * Creates a QueryPacketCommitmentResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns QueryPacketCommitmentResponse + * Callback as used by {@link ibc.core.channel.v1.Query#unreceivedPackets}. + * @param error Error, if any + * @param [response] QueryUnreceivedPacketsResponse */ - public static fromObject(object: { [k: string]: any }): ibc.core.channel.v1.QueryPacketCommitmentResponse; + type UnreceivedPacketsCallback = (error: (Error|null), response?: ibc.core.channel.v1.QueryUnreceivedPacketsResponse) => void; /** - * Creates a plain object from a QueryPacketCommitmentResponse message. Also converts values to other types if specified. - * @param message QueryPacketCommitmentResponse - * @param [options] Conversion options - * @returns Plain object + * Callback as used by {@link ibc.core.channel.v1.Query#unreceivedAcks}. + * @param error Error, if any + * @param [response] QueryUnreceivedAcksResponse */ - public static toObject(message: ibc.core.channel.v1.QueryPacketCommitmentResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + type UnreceivedAcksCallback = (error: (Error|null), response?: ibc.core.channel.v1.QueryUnreceivedAcksResponse) => void; /** - * Converts this QueryPacketCommitmentResponse to JSON. - * @returns JSON object + * Callback as used by {@link ibc.core.channel.v1.Query#nextSequenceReceive}. + * @param error Error, if any + * @param [response] QueryNextSequenceReceiveResponse */ - public toJSON(): { [k: string]: any }; + type NextSequenceReceiveCallback = (error: (Error|null), response?: ibc.core.channel.v1.QueryNextSequenceReceiveResponse) => void; } - /** Properties of a QueryPacketCommitmentsRequest. */ - interface IQueryPacketCommitmentsRequest { + /** Properties of a QueryChannelRequest. */ + interface IQueryChannelRequest { - /** QueryPacketCommitmentsRequest port_id */ + /** QueryChannelRequest port_id */ port_id?: (string|null); - /** QueryPacketCommitmentsRequest channel_id */ + /** QueryChannelRequest channel_id */ channel_id?: (string|null); - - /** QueryPacketCommitmentsRequest pagination */ - pagination?: (cosmos.base.query.v1beta1.IPageRequest|null); } - /** Represents a QueryPacketCommitmentsRequest. */ - class QueryPacketCommitmentsRequest implements IQueryPacketCommitmentsRequest { + /** Represents a QueryChannelRequest. */ + class QueryChannelRequest implements IQueryChannelRequest { /** - * Constructs a new QueryPacketCommitmentsRequest. + * Constructs a new QueryChannelRequest. * @param [properties] Properties to set */ - constructor(properties?: ibc.core.channel.v1.IQueryPacketCommitmentsRequest); + constructor(properties?: ibc.core.channel.v1.IQueryChannelRequest); - /** QueryPacketCommitmentsRequest port_id. */ + /** QueryChannelRequest port_id. */ public port_id: string; - /** QueryPacketCommitmentsRequest channel_id. */ + /** QueryChannelRequest channel_id. */ public channel_id: string; - /** QueryPacketCommitmentsRequest pagination. */ - public pagination?: (cosmos.base.query.v1beta1.IPageRequest|null); - /** - * Encodes the specified QueryPacketCommitmentsRequest message. Does not implicitly {@link ibc.core.channel.v1.QueryPacketCommitmentsRequest.verify|verify} messages. - * @param message QueryPacketCommitmentsRequest message or plain object to encode + * Encodes the specified QueryChannelRequest message. Does not implicitly {@link ibc.core.channel.v1.QueryChannelRequest.verify|verify} messages. + * @param message QueryChannelRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.core.channel.v1.IQueryPacketCommitmentsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.core.channel.v1.IQueryChannelRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified QueryPacketCommitmentsRequest message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryPacketCommitmentsRequest.verify|verify} messages. - * @param message QueryPacketCommitmentsRequest message or plain object to encode + * Encodes the specified QueryChannelRequest message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryChannelRequest.verify|verify} messages. + * @param message QueryChannelRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.core.channel.v1.IQueryPacketCommitmentsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.core.channel.v1.IQueryChannelRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a QueryPacketCommitmentsRequest message from the specified reader or buffer. + * Decodes a QueryChannelRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns QueryPacketCommitmentsRequest + * @returns QueryChannelRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.channel.v1.QueryPacketCommitmentsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.channel.v1.QueryChannelRequest; /** - * Decodes a QueryPacketCommitmentsRequest message from the specified reader or buffer, length delimited. + * Decodes a QueryChannelRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns QueryPacketCommitmentsRequest + * @returns QueryChannelRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.channel.v1.QueryPacketCommitmentsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.channel.v1.QueryChannelRequest; /** - * Verifies a QueryPacketCommitmentsRequest message. + * Verifies a QueryChannelRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a QueryPacketCommitmentsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a QueryChannelRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns QueryPacketCommitmentsRequest + * @returns QueryChannelRequest */ - public static fromObject(object: { [k: string]: any }): ibc.core.channel.v1.QueryPacketCommitmentsRequest; + public static fromObject(object: { [k: string]: any }): ibc.core.channel.v1.QueryChannelRequest; /** - * Creates a plain object from a QueryPacketCommitmentsRequest message. Also converts values to other types if specified. - * @param message QueryPacketCommitmentsRequest + * Creates a plain object from a QueryChannelRequest message. Also converts values to other types if specified. + * @param message QueryChannelRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.core.channel.v1.QueryPacketCommitmentsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.core.channel.v1.QueryChannelRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this QueryPacketCommitmentsRequest to JSON. + * Converts this QueryChannelRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a QueryPacketCommitmentsResponse. */ - interface IQueryPacketCommitmentsResponse { + /** Properties of a QueryChannelResponse. */ + interface IQueryChannelResponse { - /** QueryPacketCommitmentsResponse commitments */ - commitments?: (ibc.core.channel.v1.IPacketState[]|null); + /** QueryChannelResponse channel */ + channel?: (ibc.core.channel.v1.IChannel|null); - /** QueryPacketCommitmentsResponse pagination */ - pagination?: (cosmos.base.query.v1beta1.IPageResponse|null); + /** QueryChannelResponse proof */ + proof?: (Uint8Array|null); - /** QueryPacketCommitmentsResponse height */ - height?: (ibc.core.client.v1.IHeight|null); + /** QueryChannelResponse proof_height */ + proof_height?: (ibc.core.client.v1.IHeight|null); } - /** Represents a QueryPacketCommitmentsResponse. */ - class QueryPacketCommitmentsResponse implements IQueryPacketCommitmentsResponse { + /** Represents a QueryChannelResponse. */ + class QueryChannelResponse implements IQueryChannelResponse { /** - * Constructs a new QueryPacketCommitmentsResponse. + * Constructs a new QueryChannelResponse. * @param [properties] Properties to set */ - constructor(properties?: ibc.core.channel.v1.IQueryPacketCommitmentsResponse); + constructor(properties?: ibc.core.channel.v1.IQueryChannelResponse); - /** QueryPacketCommitmentsResponse commitments. */ - public commitments: ibc.core.channel.v1.IPacketState[]; + /** QueryChannelResponse channel. */ + public channel?: (ibc.core.channel.v1.IChannel|null); - /** QueryPacketCommitmentsResponse pagination. */ - public pagination?: (cosmos.base.query.v1beta1.IPageResponse|null); + /** QueryChannelResponse proof. */ + public proof: Uint8Array; - /** QueryPacketCommitmentsResponse height. */ - public height?: (ibc.core.client.v1.IHeight|null); + /** QueryChannelResponse proof_height. */ + public proof_height?: (ibc.core.client.v1.IHeight|null); /** - * Encodes the specified QueryPacketCommitmentsResponse message. Does not implicitly {@link ibc.core.channel.v1.QueryPacketCommitmentsResponse.verify|verify} messages. - * @param message QueryPacketCommitmentsResponse message or plain object to encode + * Encodes the specified QueryChannelResponse message. Does not implicitly {@link ibc.core.channel.v1.QueryChannelResponse.verify|verify} messages. + * @param message QueryChannelResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.core.channel.v1.IQueryPacketCommitmentsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.core.channel.v1.IQueryChannelResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified QueryPacketCommitmentsResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryPacketCommitmentsResponse.verify|verify} messages. - * @param message QueryPacketCommitmentsResponse message or plain object to encode + * Encodes the specified QueryChannelResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryChannelResponse.verify|verify} messages. + * @param message QueryChannelResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.core.channel.v1.IQueryPacketCommitmentsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.core.channel.v1.IQueryChannelResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a QueryPacketCommitmentsResponse message from the specified reader or buffer. + * Decodes a QueryChannelResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns QueryPacketCommitmentsResponse + * @returns QueryChannelResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.channel.v1.QueryPacketCommitmentsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.channel.v1.QueryChannelResponse; /** - * Decodes a QueryPacketCommitmentsResponse message from the specified reader or buffer, length delimited. + * Decodes a QueryChannelResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns QueryPacketCommitmentsResponse + * @returns QueryChannelResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.channel.v1.QueryPacketCommitmentsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.channel.v1.QueryChannelResponse; /** - * Verifies a QueryPacketCommitmentsResponse message. + * Verifies a QueryChannelResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a QueryPacketCommitmentsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a QueryChannelResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns QueryPacketCommitmentsResponse + * @returns QueryChannelResponse */ - public static fromObject(object: { [k: string]: any }): ibc.core.channel.v1.QueryPacketCommitmentsResponse; + public static fromObject(object: { [k: string]: any }): ibc.core.channel.v1.QueryChannelResponse; /** - * Creates a plain object from a QueryPacketCommitmentsResponse message. Also converts values to other types if specified. - * @param message QueryPacketCommitmentsResponse + * Creates a plain object from a QueryChannelResponse message. Also converts values to other types if specified. + * @param message QueryChannelResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.core.channel.v1.QueryPacketCommitmentsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.core.channel.v1.QueryChannelResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this QueryPacketCommitmentsResponse to JSON. + * Converts this QueryChannelResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a QueryPacketReceiptRequest. */ - interface IQueryPacketReceiptRequest { - - /** QueryPacketReceiptRequest port_id */ - port_id?: (string|null); - - /** QueryPacketReceiptRequest channel_id */ - channel_id?: (string|null); + /** Properties of a QueryChannelsRequest. */ + interface IQueryChannelsRequest { - /** QueryPacketReceiptRequest sequence */ - sequence?: (Long|null); + /** QueryChannelsRequest pagination */ + pagination?: (cosmos.base.query.v1beta1.IPageRequest|null); } - /** Represents a QueryPacketReceiptRequest. */ - class QueryPacketReceiptRequest implements IQueryPacketReceiptRequest { + /** Represents a QueryChannelsRequest. */ + class QueryChannelsRequest implements IQueryChannelsRequest { /** - * Constructs a new QueryPacketReceiptRequest. - * @param [properties] Properties to set - */ - constructor(properties?: ibc.core.channel.v1.IQueryPacketReceiptRequest); - - /** QueryPacketReceiptRequest port_id. */ - public port_id: string; - - /** QueryPacketReceiptRequest channel_id. */ - public channel_id: string; + * Constructs a new QueryChannelsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: ibc.core.channel.v1.IQueryChannelsRequest); - /** QueryPacketReceiptRequest sequence. */ - public sequence: Long; + /** QueryChannelsRequest pagination. */ + public pagination?: (cosmos.base.query.v1beta1.IPageRequest|null); /** - * Encodes the specified QueryPacketReceiptRequest message. Does not implicitly {@link ibc.core.channel.v1.QueryPacketReceiptRequest.verify|verify} messages. - * @param message QueryPacketReceiptRequest message or plain object to encode + * Encodes the specified QueryChannelsRequest message. Does not implicitly {@link ibc.core.channel.v1.QueryChannelsRequest.verify|verify} messages. + * @param message QueryChannelsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.core.channel.v1.IQueryPacketReceiptRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.core.channel.v1.IQueryChannelsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified QueryPacketReceiptRequest message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryPacketReceiptRequest.verify|verify} messages. - * @param message QueryPacketReceiptRequest message or plain object to encode + * Encodes the specified QueryChannelsRequest message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryChannelsRequest.verify|verify} messages. + * @param message QueryChannelsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.core.channel.v1.IQueryPacketReceiptRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.core.channel.v1.IQueryChannelsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a QueryPacketReceiptRequest message from the specified reader or buffer. + * Decodes a QueryChannelsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns QueryPacketReceiptRequest + * @returns QueryChannelsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.channel.v1.QueryPacketReceiptRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.channel.v1.QueryChannelsRequest; /** - * Decodes a QueryPacketReceiptRequest message from the specified reader or buffer, length delimited. + * Decodes a QueryChannelsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns QueryPacketReceiptRequest + * @returns QueryChannelsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.channel.v1.QueryPacketReceiptRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.channel.v1.QueryChannelsRequest; /** - * Verifies a QueryPacketReceiptRequest message. + * Verifies a QueryChannelsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a QueryPacketReceiptRequest message from a plain object. Also converts values to their respective internal types. + * Creates a QueryChannelsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns QueryPacketReceiptRequest + * @returns QueryChannelsRequest */ - public static fromObject(object: { [k: string]: any }): ibc.core.channel.v1.QueryPacketReceiptRequest; + public static fromObject(object: { [k: string]: any }): ibc.core.channel.v1.QueryChannelsRequest; /** - * Creates a plain object from a QueryPacketReceiptRequest message. Also converts values to other types if specified. - * @param message QueryPacketReceiptRequest + * Creates a plain object from a QueryChannelsRequest message. Also converts values to other types if specified. + * @param message QueryChannelsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.core.channel.v1.QueryPacketReceiptRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.core.channel.v1.QueryChannelsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this QueryPacketReceiptRequest to JSON. + * Converts this QueryChannelsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a QueryPacketReceiptResponse. */ - interface IQueryPacketReceiptResponse { + /** Properties of a QueryChannelsResponse. */ + interface IQueryChannelsResponse { - /** QueryPacketReceiptResponse received */ - received?: (boolean|null); + /** QueryChannelsResponse channels */ + channels?: (ibc.core.channel.v1.IIdentifiedChannel[]|null); - /** QueryPacketReceiptResponse proof */ - proof?: (Uint8Array|null); + /** QueryChannelsResponse pagination */ + pagination?: (cosmos.base.query.v1beta1.IPageResponse|null); - /** QueryPacketReceiptResponse proof_height */ - proof_height?: (ibc.core.client.v1.IHeight|null); + /** QueryChannelsResponse height */ + height?: (ibc.core.client.v1.IHeight|null); } - /** Represents a QueryPacketReceiptResponse. */ - class QueryPacketReceiptResponse implements IQueryPacketReceiptResponse { + /** Represents a QueryChannelsResponse. */ + class QueryChannelsResponse implements IQueryChannelsResponse { /** - * Constructs a new QueryPacketReceiptResponse. + * Constructs a new QueryChannelsResponse. * @param [properties] Properties to set */ - constructor(properties?: ibc.core.channel.v1.IQueryPacketReceiptResponse); + constructor(properties?: ibc.core.channel.v1.IQueryChannelsResponse); - /** QueryPacketReceiptResponse received. */ - public received: boolean; + /** QueryChannelsResponse channels. */ + public channels: ibc.core.channel.v1.IIdentifiedChannel[]; - /** QueryPacketReceiptResponse proof. */ - public proof: Uint8Array; + /** QueryChannelsResponse pagination. */ + public pagination?: (cosmos.base.query.v1beta1.IPageResponse|null); - /** QueryPacketReceiptResponse proof_height. */ - public proof_height?: (ibc.core.client.v1.IHeight|null); + /** QueryChannelsResponse height. */ + public height?: (ibc.core.client.v1.IHeight|null); /** - * Encodes the specified QueryPacketReceiptResponse message. Does not implicitly {@link ibc.core.channel.v1.QueryPacketReceiptResponse.verify|verify} messages. - * @param message QueryPacketReceiptResponse message or plain object to encode + * Encodes the specified QueryChannelsResponse message. Does not implicitly {@link ibc.core.channel.v1.QueryChannelsResponse.verify|verify} messages. + * @param message QueryChannelsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.core.channel.v1.IQueryPacketReceiptResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.core.channel.v1.IQueryChannelsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified QueryPacketReceiptResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryPacketReceiptResponse.verify|verify} messages. - * @param message QueryPacketReceiptResponse message or plain object to encode + * Encodes the specified QueryChannelsResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryChannelsResponse.verify|verify} messages. + * @param message QueryChannelsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.core.channel.v1.IQueryPacketReceiptResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.core.channel.v1.IQueryChannelsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a QueryPacketReceiptResponse message from the specified reader or buffer. + * Decodes a QueryChannelsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns QueryPacketReceiptResponse + * @returns QueryChannelsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.channel.v1.QueryPacketReceiptResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.channel.v1.QueryChannelsResponse; /** - * Decodes a QueryPacketReceiptResponse message from the specified reader or buffer, length delimited. + * Decodes a QueryChannelsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns QueryPacketReceiptResponse + * @returns QueryChannelsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.channel.v1.QueryPacketReceiptResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.channel.v1.QueryChannelsResponse; /** - * Verifies a QueryPacketReceiptResponse message. + * Verifies a QueryChannelsResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a QueryPacketReceiptResponse message from a plain object. Also converts values to their respective internal types. + * Creates a QueryChannelsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns QueryPacketReceiptResponse + * @returns QueryChannelsResponse */ - public static fromObject(object: { [k: string]: any }): ibc.core.channel.v1.QueryPacketReceiptResponse; + public static fromObject(object: { [k: string]: any }): ibc.core.channel.v1.QueryChannelsResponse; /** - * Creates a plain object from a QueryPacketReceiptResponse message. Also converts values to other types if specified. - * @param message QueryPacketReceiptResponse + * Creates a plain object from a QueryChannelsResponse message. Also converts values to other types if specified. + * @param message QueryChannelsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.core.channel.v1.QueryPacketReceiptResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.core.channel.v1.QueryChannelsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this QueryPacketReceiptResponse to JSON. + * Converts this QueryChannelsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a QueryPacketAcknowledgementRequest. */ - interface IQueryPacketAcknowledgementRequest { - - /** QueryPacketAcknowledgementRequest port_id */ - port_id?: (string|null); + /** Properties of a QueryConnectionChannelsRequest. */ + interface IQueryConnectionChannelsRequest { - /** QueryPacketAcknowledgementRequest channel_id */ - channel_id?: (string|null); + /** QueryConnectionChannelsRequest connection */ + connection?: (string|null); - /** QueryPacketAcknowledgementRequest sequence */ - sequence?: (Long|null); + /** QueryConnectionChannelsRequest pagination */ + pagination?: (cosmos.base.query.v1beta1.IPageRequest|null); } - /** Represents a QueryPacketAcknowledgementRequest. */ - class QueryPacketAcknowledgementRequest implements IQueryPacketAcknowledgementRequest { + /** Represents a QueryConnectionChannelsRequest. */ + class QueryConnectionChannelsRequest implements IQueryConnectionChannelsRequest { /** - * Constructs a new QueryPacketAcknowledgementRequest. + * Constructs a new QueryConnectionChannelsRequest. * @param [properties] Properties to set */ - constructor(properties?: ibc.core.channel.v1.IQueryPacketAcknowledgementRequest); - - /** QueryPacketAcknowledgementRequest port_id. */ - public port_id: string; + constructor(properties?: ibc.core.channel.v1.IQueryConnectionChannelsRequest); - /** QueryPacketAcknowledgementRequest channel_id. */ - public channel_id: string; + /** QueryConnectionChannelsRequest connection. */ + public connection: string; - /** QueryPacketAcknowledgementRequest sequence. */ - public sequence: Long; + /** QueryConnectionChannelsRequest pagination. */ + public pagination?: (cosmos.base.query.v1beta1.IPageRequest|null); /** - * Encodes the specified QueryPacketAcknowledgementRequest message. Does not implicitly {@link ibc.core.channel.v1.QueryPacketAcknowledgementRequest.verify|verify} messages. - * @param message QueryPacketAcknowledgementRequest message or plain object to encode + * Encodes the specified QueryConnectionChannelsRequest message. Does not implicitly {@link ibc.core.channel.v1.QueryConnectionChannelsRequest.verify|verify} messages. + * @param message QueryConnectionChannelsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.core.channel.v1.IQueryPacketAcknowledgementRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.core.channel.v1.IQueryConnectionChannelsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified QueryPacketAcknowledgementRequest message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryPacketAcknowledgementRequest.verify|verify} messages. - * @param message QueryPacketAcknowledgementRequest message or plain object to encode + * Encodes the specified QueryConnectionChannelsRequest message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryConnectionChannelsRequest.verify|verify} messages. + * @param message QueryConnectionChannelsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.core.channel.v1.IQueryPacketAcknowledgementRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.core.channel.v1.IQueryConnectionChannelsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a QueryPacketAcknowledgementRequest message from the specified reader or buffer. + * Decodes a QueryConnectionChannelsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns QueryPacketAcknowledgementRequest + * @returns QueryConnectionChannelsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.channel.v1.QueryPacketAcknowledgementRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.channel.v1.QueryConnectionChannelsRequest; /** - * Decodes a QueryPacketAcknowledgementRequest message from the specified reader or buffer, length delimited. + * Decodes a QueryConnectionChannelsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns QueryPacketAcknowledgementRequest + * @returns QueryConnectionChannelsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.channel.v1.QueryPacketAcknowledgementRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.channel.v1.QueryConnectionChannelsRequest; /** - * Verifies a QueryPacketAcknowledgementRequest message. + * Verifies a QueryConnectionChannelsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a QueryPacketAcknowledgementRequest message from a plain object. Also converts values to their respective internal types. + * Creates a QueryConnectionChannelsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns QueryPacketAcknowledgementRequest + * @returns QueryConnectionChannelsRequest */ - public static fromObject(object: { [k: string]: any }): ibc.core.channel.v1.QueryPacketAcknowledgementRequest; + public static fromObject(object: { [k: string]: any }): ibc.core.channel.v1.QueryConnectionChannelsRequest; /** - * Creates a plain object from a QueryPacketAcknowledgementRequest message. Also converts values to other types if specified. - * @param message QueryPacketAcknowledgementRequest + * Creates a plain object from a QueryConnectionChannelsRequest message. Also converts values to other types if specified. + * @param message QueryConnectionChannelsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.core.channel.v1.QueryPacketAcknowledgementRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.core.channel.v1.QueryConnectionChannelsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this QueryPacketAcknowledgementRequest to JSON. + * Converts this QueryConnectionChannelsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a QueryPacketAcknowledgementResponse. */ - interface IQueryPacketAcknowledgementResponse { + /** Properties of a QueryConnectionChannelsResponse. */ + interface IQueryConnectionChannelsResponse { - /** QueryPacketAcknowledgementResponse acknowledgement */ - acknowledgement?: (Uint8Array|null); + /** QueryConnectionChannelsResponse channels */ + channels?: (ibc.core.channel.v1.IIdentifiedChannel[]|null); - /** QueryPacketAcknowledgementResponse proof */ - proof?: (Uint8Array|null); + /** QueryConnectionChannelsResponse pagination */ + pagination?: (cosmos.base.query.v1beta1.IPageResponse|null); - /** QueryPacketAcknowledgementResponse proof_height */ - proof_height?: (ibc.core.client.v1.IHeight|null); + /** QueryConnectionChannelsResponse height */ + height?: (ibc.core.client.v1.IHeight|null); } - /** Represents a QueryPacketAcknowledgementResponse. */ - class QueryPacketAcknowledgementResponse implements IQueryPacketAcknowledgementResponse { + /** Represents a QueryConnectionChannelsResponse. */ + class QueryConnectionChannelsResponse implements IQueryConnectionChannelsResponse { /** - * Constructs a new QueryPacketAcknowledgementResponse. + * Constructs a new QueryConnectionChannelsResponse. * @param [properties] Properties to set */ - constructor(properties?: ibc.core.channel.v1.IQueryPacketAcknowledgementResponse); + constructor(properties?: ibc.core.channel.v1.IQueryConnectionChannelsResponse); - /** QueryPacketAcknowledgementResponse acknowledgement. */ - public acknowledgement: Uint8Array; + /** QueryConnectionChannelsResponse channels. */ + public channels: ibc.core.channel.v1.IIdentifiedChannel[]; - /** QueryPacketAcknowledgementResponse proof. */ - public proof: Uint8Array; + /** QueryConnectionChannelsResponse pagination. */ + public pagination?: (cosmos.base.query.v1beta1.IPageResponse|null); - /** QueryPacketAcknowledgementResponse proof_height. */ - public proof_height?: (ibc.core.client.v1.IHeight|null); + /** QueryConnectionChannelsResponse height. */ + public height?: (ibc.core.client.v1.IHeight|null); /** - * Encodes the specified QueryPacketAcknowledgementResponse message. Does not implicitly {@link ibc.core.channel.v1.QueryPacketAcknowledgementResponse.verify|verify} messages. - * @param message QueryPacketAcknowledgementResponse message or plain object to encode + * Encodes the specified QueryConnectionChannelsResponse message. Does not implicitly {@link ibc.core.channel.v1.QueryConnectionChannelsResponse.verify|verify} messages. + * @param message QueryConnectionChannelsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.core.channel.v1.IQueryPacketAcknowledgementResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.core.channel.v1.IQueryConnectionChannelsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified QueryPacketAcknowledgementResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryPacketAcknowledgementResponse.verify|verify} messages. - * @param message QueryPacketAcknowledgementResponse message or plain object to encode + * Encodes the specified QueryConnectionChannelsResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryConnectionChannelsResponse.verify|verify} messages. + * @param message QueryConnectionChannelsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.core.channel.v1.IQueryPacketAcknowledgementResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.core.channel.v1.IQueryConnectionChannelsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a QueryPacketAcknowledgementResponse message from the specified reader or buffer. + * Decodes a QueryConnectionChannelsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns QueryPacketAcknowledgementResponse + * @returns QueryConnectionChannelsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.channel.v1.QueryPacketAcknowledgementResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.channel.v1.QueryConnectionChannelsResponse; /** - * Decodes a QueryPacketAcknowledgementResponse message from the specified reader or buffer, length delimited. + * Decodes a QueryConnectionChannelsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns QueryPacketAcknowledgementResponse + * @returns QueryConnectionChannelsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.channel.v1.QueryPacketAcknowledgementResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.channel.v1.QueryConnectionChannelsResponse; /** - * Verifies a QueryPacketAcknowledgementResponse message. + * Verifies a QueryConnectionChannelsResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a QueryPacketAcknowledgementResponse message from a plain object. Also converts values to their respective internal types. + * Creates a QueryConnectionChannelsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns QueryPacketAcknowledgementResponse + * @returns QueryConnectionChannelsResponse */ - public static fromObject(object: { [k: string]: any }): ibc.core.channel.v1.QueryPacketAcknowledgementResponse; + public static fromObject(object: { [k: string]: any }): ibc.core.channel.v1.QueryConnectionChannelsResponse; /** - * Creates a plain object from a QueryPacketAcknowledgementResponse message. Also converts values to other types if specified. - * @param message QueryPacketAcknowledgementResponse + * Creates a plain object from a QueryConnectionChannelsResponse message. Also converts values to other types if specified. + * @param message QueryConnectionChannelsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.core.channel.v1.QueryPacketAcknowledgementResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.core.channel.v1.QueryConnectionChannelsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this QueryPacketAcknowledgementResponse to JSON. + * Converts this QueryConnectionChannelsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a QueryPacketAcknowledgementsRequest. */ - interface IQueryPacketAcknowledgementsRequest { + /** Properties of a QueryChannelClientStateRequest. */ + interface IQueryChannelClientStateRequest { - /** QueryPacketAcknowledgementsRequest port_id */ + /** QueryChannelClientStateRequest port_id */ port_id?: (string|null); - /** QueryPacketAcknowledgementsRequest channel_id */ + /** QueryChannelClientStateRequest channel_id */ channel_id?: (string|null); - - /** QueryPacketAcknowledgementsRequest pagination */ - pagination?: (cosmos.base.query.v1beta1.IPageRequest|null); - - /** QueryPacketAcknowledgementsRequest packet_commitment_sequences */ - packet_commitment_sequences?: (Long[]|null); } - /** Represents a QueryPacketAcknowledgementsRequest. */ - class QueryPacketAcknowledgementsRequest implements IQueryPacketAcknowledgementsRequest { + /** Represents a QueryChannelClientStateRequest. */ + class QueryChannelClientStateRequest implements IQueryChannelClientStateRequest { /** - * Constructs a new QueryPacketAcknowledgementsRequest. + * Constructs a new QueryChannelClientStateRequest. * @param [properties] Properties to set */ - constructor(properties?: ibc.core.channel.v1.IQueryPacketAcknowledgementsRequest); + constructor(properties?: ibc.core.channel.v1.IQueryChannelClientStateRequest); - /** QueryPacketAcknowledgementsRequest port_id. */ + /** QueryChannelClientStateRequest port_id. */ public port_id: string; - /** QueryPacketAcknowledgementsRequest channel_id. */ + /** QueryChannelClientStateRequest channel_id. */ public channel_id: string; - /** QueryPacketAcknowledgementsRequest pagination. */ - public pagination?: (cosmos.base.query.v1beta1.IPageRequest|null); - - /** QueryPacketAcknowledgementsRequest packet_commitment_sequences. */ - public packet_commitment_sequences: Long[]; - /** - * Encodes the specified QueryPacketAcknowledgementsRequest message. Does not implicitly {@link ibc.core.channel.v1.QueryPacketAcknowledgementsRequest.verify|verify} messages. - * @param message QueryPacketAcknowledgementsRequest message or plain object to encode + * Encodes the specified QueryChannelClientStateRequest message. Does not implicitly {@link ibc.core.channel.v1.QueryChannelClientStateRequest.verify|verify} messages. + * @param message QueryChannelClientStateRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.core.channel.v1.IQueryPacketAcknowledgementsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.core.channel.v1.IQueryChannelClientStateRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified QueryPacketAcknowledgementsRequest message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryPacketAcknowledgementsRequest.verify|verify} messages. - * @param message QueryPacketAcknowledgementsRequest message or plain object to encode + * Encodes the specified QueryChannelClientStateRequest message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryChannelClientStateRequest.verify|verify} messages. + * @param message QueryChannelClientStateRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.core.channel.v1.IQueryPacketAcknowledgementsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.core.channel.v1.IQueryChannelClientStateRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a QueryPacketAcknowledgementsRequest message from the specified reader or buffer. + * Decodes a QueryChannelClientStateRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns QueryPacketAcknowledgementsRequest + * @returns QueryChannelClientStateRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.channel.v1.QueryPacketAcknowledgementsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.channel.v1.QueryChannelClientStateRequest; /** - * Decodes a QueryPacketAcknowledgementsRequest message from the specified reader or buffer, length delimited. + * Decodes a QueryChannelClientStateRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns QueryPacketAcknowledgementsRequest + * @returns QueryChannelClientStateRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.channel.v1.QueryPacketAcknowledgementsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.channel.v1.QueryChannelClientStateRequest; /** - * Verifies a QueryPacketAcknowledgementsRequest message. + * Verifies a QueryChannelClientStateRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a QueryPacketAcknowledgementsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a QueryChannelClientStateRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns QueryPacketAcknowledgementsRequest + * @returns QueryChannelClientStateRequest */ - public static fromObject(object: { [k: string]: any }): ibc.core.channel.v1.QueryPacketAcknowledgementsRequest; + public static fromObject(object: { [k: string]: any }): ibc.core.channel.v1.QueryChannelClientStateRequest; /** - * Creates a plain object from a QueryPacketAcknowledgementsRequest message. Also converts values to other types if specified. - * @param message QueryPacketAcknowledgementsRequest + * Creates a plain object from a QueryChannelClientStateRequest message. Also converts values to other types if specified. + * @param message QueryChannelClientStateRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.core.channel.v1.QueryPacketAcknowledgementsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.core.channel.v1.QueryChannelClientStateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this QueryPacketAcknowledgementsRequest to JSON. + * Converts this QueryChannelClientStateRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a QueryPacketAcknowledgementsResponse. */ - interface IQueryPacketAcknowledgementsResponse { + /** Properties of a QueryChannelClientStateResponse. */ + interface IQueryChannelClientStateResponse { - /** QueryPacketAcknowledgementsResponse acknowledgements */ - acknowledgements?: (ibc.core.channel.v1.IPacketState[]|null); + /** QueryChannelClientStateResponse identified_client_state */ + identified_client_state?: (ibc.core.client.v1.IIdentifiedClientState|null); - /** QueryPacketAcknowledgementsResponse pagination */ - pagination?: (cosmos.base.query.v1beta1.IPageResponse|null); + /** QueryChannelClientStateResponse proof */ + proof?: (Uint8Array|null); - /** QueryPacketAcknowledgementsResponse height */ - height?: (ibc.core.client.v1.IHeight|null); + /** QueryChannelClientStateResponse proof_height */ + proof_height?: (ibc.core.client.v1.IHeight|null); } - /** Represents a QueryPacketAcknowledgementsResponse. */ - class QueryPacketAcknowledgementsResponse implements IQueryPacketAcknowledgementsResponse { + /** Represents a QueryChannelClientStateResponse. */ + class QueryChannelClientStateResponse implements IQueryChannelClientStateResponse { /** - * Constructs a new QueryPacketAcknowledgementsResponse. + * Constructs a new QueryChannelClientStateResponse. * @param [properties] Properties to set */ - constructor(properties?: ibc.core.channel.v1.IQueryPacketAcknowledgementsResponse); + constructor(properties?: ibc.core.channel.v1.IQueryChannelClientStateResponse); - /** QueryPacketAcknowledgementsResponse acknowledgements. */ - public acknowledgements: ibc.core.channel.v1.IPacketState[]; + /** QueryChannelClientStateResponse identified_client_state. */ + public identified_client_state?: (ibc.core.client.v1.IIdentifiedClientState|null); - /** QueryPacketAcknowledgementsResponse pagination. */ - public pagination?: (cosmos.base.query.v1beta1.IPageResponse|null); + /** QueryChannelClientStateResponse proof. */ + public proof: Uint8Array; - /** QueryPacketAcknowledgementsResponse height. */ - public height?: (ibc.core.client.v1.IHeight|null); + /** QueryChannelClientStateResponse proof_height. */ + public proof_height?: (ibc.core.client.v1.IHeight|null); /** - * Encodes the specified QueryPacketAcknowledgementsResponse message. Does not implicitly {@link ibc.core.channel.v1.QueryPacketAcknowledgementsResponse.verify|verify} messages. - * @param message QueryPacketAcknowledgementsResponse message or plain object to encode + * Encodes the specified QueryChannelClientStateResponse message. Does not implicitly {@link ibc.core.channel.v1.QueryChannelClientStateResponse.verify|verify} messages. + * @param message QueryChannelClientStateResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.core.channel.v1.IQueryPacketAcknowledgementsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.core.channel.v1.IQueryChannelClientStateResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified QueryPacketAcknowledgementsResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryPacketAcknowledgementsResponse.verify|verify} messages. - * @param message QueryPacketAcknowledgementsResponse message or plain object to encode + * Encodes the specified QueryChannelClientStateResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryChannelClientStateResponse.verify|verify} messages. + * @param message QueryChannelClientStateResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.core.channel.v1.IQueryPacketAcknowledgementsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.core.channel.v1.IQueryChannelClientStateResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a QueryPacketAcknowledgementsResponse message from the specified reader or buffer. + * Decodes a QueryChannelClientStateResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns QueryPacketAcknowledgementsResponse + * @returns QueryChannelClientStateResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.channel.v1.QueryPacketAcknowledgementsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.channel.v1.QueryChannelClientStateResponse; /** - * Decodes a QueryPacketAcknowledgementsResponse message from the specified reader or buffer, length delimited. + * Decodes a QueryChannelClientStateResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns QueryPacketAcknowledgementsResponse + * @returns QueryChannelClientStateResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.channel.v1.QueryPacketAcknowledgementsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.channel.v1.QueryChannelClientStateResponse; /** - * Verifies a QueryPacketAcknowledgementsResponse message. + * Verifies a QueryChannelClientStateResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a QueryPacketAcknowledgementsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a QueryChannelClientStateResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns QueryPacketAcknowledgementsResponse + * @returns QueryChannelClientStateResponse */ - public static fromObject(object: { [k: string]: any }): ibc.core.channel.v1.QueryPacketAcknowledgementsResponse; + public static fromObject(object: { [k: string]: any }): ibc.core.channel.v1.QueryChannelClientStateResponse; /** - * Creates a plain object from a QueryPacketAcknowledgementsResponse message. Also converts values to other types if specified. - * @param message QueryPacketAcknowledgementsResponse + * Creates a plain object from a QueryChannelClientStateResponse message. Also converts values to other types if specified. + * @param message QueryChannelClientStateResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.core.channel.v1.QueryPacketAcknowledgementsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.core.channel.v1.QueryChannelClientStateResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this QueryPacketAcknowledgementsResponse to JSON. + * Converts this QueryChannelClientStateResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a QueryUnreceivedPacketsRequest. */ - interface IQueryUnreceivedPacketsRequest { + /** Properties of a QueryChannelConsensusStateRequest. */ + interface IQueryChannelConsensusStateRequest { - /** QueryUnreceivedPacketsRequest port_id */ + /** QueryChannelConsensusStateRequest port_id */ port_id?: (string|null); - /** QueryUnreceivedPacketsRequest channel_id */ + /** QueryChannelConsensusStateRequest channel_id */ channel_id?: (string|null); - /** QueryUnreceivedPacketsRequest packet_commitment_sequences */ - packet_commitment_sequences?: (Long[]|null); + /** QueryChannelConsensusStateRequest revision_number */ + revision_number?: (Long|null); + + /** QueryChannelConsensusStateRequest revision_height */ + revision_height?: (Long|null); } - /** Represents a QueryUnreceivedPacketsRequest. */ - class QueryUnreceivedPacketsRequest implements IQueryUnreceivedPacketsRequest { + /** Represents a QueryChannelConsensusStateRequest. */ + class QueryChannelConsensusStateRequest implements IQueryChannelConsensusStateRequest { /** - * Constructs a new QueryUnreceivedPacketsRequest. + * Constructs a new QueryChannelConsensusStateRequest. * @param [properties] Properties to set */ - constructor(properties?: ibc.core.channel.v1.IQueryUnreceivedPacketsRequest); + constructor(properties?: ibc.core.channel.v1.IQueryChannelConsensusStateRequest); - /** QueryUnreceivedPacketsRequest port_id. */ + /** QueryChannelConsensusStateRequest port_id. */ public port_id: string; - /** QueryUnreceivedPacketsRequest channel_id. */ + /** QueryChannelConsensusStateRequest channel_id. */ public channel_id: string; - /** QueryUnreceivedPacketsRequest packet_commitment_sequences. */ - public packet_commitment_sequences: Long[]; + /** QueryChannelConsensusStateRequest revision_number. */ + public revision_number: Long; + + /** QueryChannelConsensusStateRequest revision_height. */ + public revision_height: Long; /** - * Encodes the specified QueryUnreceivedPacketsRequest message. Does not implicitly {@link ibc.core.channel.v1.QueryUnreceivedPacketsRequest.verify|verify} messages. - * @param message QueryUnreceivedPacketsRequest message or plain object to encode + * Encodes the specified QueryChannelConsensusStateRequest message. Does not implicitly {@link ibc.core.channel.v1.QueryChannelConsensusStateRequest.verify|verify} messages. + * @param message QueryChannelConsensusStateRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.core.channel.v1.IQueryUnreceivedPacketsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.core.channel.v1.IQueryChannelConsensusStateRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified QueryUnreceivedPacketsRequest message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryUnreceivedPacketsRequest.verify|verify} messages. - * @param message QueryUnreceivedPacketsRequest message or plain object to encode + * Encodes the specified QueryChannelConsensusStateRequest message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryChannelConsensusStateRequest.verify|verify} messages. + * @param message QueryChannelConsensusStateRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.core.channel.v1.IQueryUnreceivedPacketsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.core.channel.v1.IQueryChannelConsensusStateRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a QueryUnreceivedPacketsRequest message from the specified reader or buffer. + * Decodes a QueryChannelConsensusStateRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns QueryUnreceivedPacketsRequest + * @returns QueryChannelConsensusStateRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.channel.v1.QueryUnreceivedPacketsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.channel.v1.QueryChannelConsensusStateRequest; /** - * Decodes a QueryUnreceivedPacketsRequest message from the specified reader or buffer, length delimited. + * Decodes a QueryChannelConsensusStateRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns QueryUnreceivedPacketsRequest + * @returns QueryChannelConsensusStateRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.channel.v1.QueryUnreceivedPacketsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.channel.v1.QueryChannelConsensusStateRequest; /** - * Verifies a QueryUnreceivedPacketsRequest message. + * Verifies a QueryChannelConsensusStateRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a QueryUnreceivedPacketsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a QueryChannelConsensusStateRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns QueryUnreceivedPacketsRequest + * @returns QueryChannelConsensusStateRequest */ - public static fromObject(object: { [k: string]: any }): ibc.core.channel.v1.QueryUnreceivedPacketsRequest; + public static fromObject(object: { [k: string]: any }): ibc.core.channel.v1.QueryChannelConsensusStateRequest; /** - * Creates a plain object from a QueryUnreceivedPacketsRequest message. Also converts values to other types if specified. - * @param message QueryUnreceivedPacketsRequest + * Creates a plain object from a QueryChannelConsensusStateRequest message. Also converts values to other types if specified. + * @param message QueryChannelConsensusStateRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.core.channel.v1.QueryUnreceivedPacketsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.core.channel.v1.QueryChannelConsensusStateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this QueryUnreceivedPacketsRequest to JSON. + * Converts this QueryChannelConsensusStateRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a QueryUnreceivedPacketsResponse. */ - interface IQueryUnreceivedPacketsResponse { + /** Properties of a QueryChannelConsensusStateResponse. */ + interface IQueryChannelConsensusStateResponse { - /** QueryUnreceivedPacketsResponse sequences */ - sequences?: (Long[]|null); + /** QueryChannelConsensusStateResponse consensus_state */ + consensus_state?: (google.protobuf.IAny|null); - /** QueryUnreceivedPacketsResponse height */ - height?: (ibc.core.client.v1.IHeight|null); + /** QueryChannelConsensusStateResponse client_id */ + client_id?: (string|null); + + /** QueryChannelConsensusStateResponse proof */ + proof?: (Uint8Array|null); + + /** QueryChannelConsensusStateResponse proof_height */ + proof_height?: (ibc.core.client.v1.IHeight|null); } - /** Represents a QueryUnreceivedPacketsResponse. */ - class QueryUnreceivedPacketsResponse implements IQueryUnreceivedPacketsResponse { + /** Represents a QueryChannelConsensusStateResponse. */ + class QueryChannelConsensusStateResponse implements IQueryChannelConsensusStateResponse { /** - * Constructs a new QueryUnreceivedPacketsResponse. + * Constructs a new QueryChannelConsensusStateResponse. * @param [properties] Properties to set */ - constructor(properties?: ibc.core.channel.v1.IQueryUnreceivedPacketsResponse); + constructor(properties?: ibc.core.channel.v1.IQueryChannelConsensusStateResponse); - /** QueryUnreceivedPacketsResponse sequences. */ - public sequences: Long[]; + /** QueryChannelConsensusStateResponse consensus_state. */ + public consensus_state?: (google.protobuf.IAny|null); - /** QueryUnreceivedPacketsResponse height. */ - public height?: (ibc.core.client.v1.IHeight|null); + /** QueryChannelConsensusStateResponse client_id. */ + public client_id: string; + + /** QueryChannelConsensusStateResponse proof. */ + public proof: Uint8Array; + + /** QueryChannelConsensusStateResponse proof_height. */ + public proof_height?: (ibc.core.client.v1.IHeight|null); /** - * Encodes the specified QueryUnreceivedPacketsResponse message. Does not implicitly {@link ibc.core.channel.v1.QueryUnreceivedPacketsResponse.verify|verify} messages. - * @param message QueryUnreceivedPacketsResponse message or plain object to encode + * Encodes the specified QueryChannelConsensusStateResponse message. Does not implicitly {@link ibc.core.channel.v1.QueryChannelConsensusStateResponse.verify|verify} messages. + * @param message QueryChannelConsensusStateResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.core.channel.v1.IQueryUnreceivedPacketsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.core.channel.v1.IQueryChannelConsensusStateResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified QueryUnreceivedPacketsResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryUnreceivedPacketsResponse.verify|verify} messages. - * @param message QueryUnreceivedPacketsResponse message or plain object to encode + * Encodes the specified QueryChannelConsensusStateResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryChannelConsensusStateResponse.verify|verify} messages. + * @param message QueryChannelConsensusStateResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.core.channel.v1.IQueryUnreceivedPacketsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.core.channel.v1.IQueryChannelConsensusStateResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a QueryUnreceivedPacketsResponse message from the specified reader or buffer. + * Decodes a QueryChannelConsensusStateResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns QueryUnreceivedPacketsResponse + * @returns QueryChannelConsensusStateResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.channel.v1.QueryUnreceivedPacketsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.channel.v1.QueryChannelConsensusStateResponse; /** - * Decodes a QueryUnreceivedPacketsResponse message from the specified reader or buffer, length delimited. + * Decodes a QueryChannelConsensusStateResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns QueryUnreceivedPacketsResponse + * @returns QueryChannelConsensusStateResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.channel.v1.QueryUnreceivedPacketsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.channel.v1.QueryChannelConsensusStateResponse; /** - * Verifies a QueryUnreceivedPacketsResponse message. + * Verifies a QueryChannelConsensusStateResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a QueryUnreceivedPacketsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a QueryChannelConsensusStateResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns QueryUnreceivedPacketsResponse + * @returns QueryChannelConsensusStateResponse */ - public static fromObject(object: { [k: string]: any }): ibc.core.channel.v1.QueryUnreceivedPacketsResponse; + public static fromObject(object: { [k: string]: any }): ibc.core.channel.v1.QueryChannelConsensusStateResponse; /** - * Creates a plain object from a QueryUnreceivedPacketsResponse message. Also converts values to other types if specified. - * @param message QueryUnreceivedPacketsResponse + * Creates a plain object from a QueryChannelConsensusStateResponse message. Also converts values to other types if specified. + * @param message QueryChannelConsensusStateResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.core.channel.v1.QueryUnreceivedPacketsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.core.channel.v1.QueryChannelConsensusStateResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this QueryUnreceivedPacketsResponse to JSON. + * Converts this QueryChannelConsensusStateResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a QueryUnreceivedAcksRequest. */ - interface IQueryUnreceivedAcksRequest { + /** Properties of a QueryPacketCommitmentRequest. */ + interface IQueryPacketCommitmentRequest { - /** QueryUnreceivedAcksRequest port_id */ + /** QueryPacketCommitmentRequest port_id */ port_id?: (string|null); - /** QueryUnreceivedAcksRequest channel_id */ + /** QueryPacketCommitmentRequest channel_id */ channel_id?: (string|null); - /** QueryUnreceivedAcksRequest packet_ack_sequences */ - packet_ack_sequences?: (Long[]|null); + /** QueryPacketCommitmentRequest sequence */ + sequence?: (Long|null); } - /** Represents a QueryUnreceivedAcksRequest. */ - class QueryUnreceivedAcksRequest implements IQueryUnreceivedAcksRequest { + /** Represents a QueryPacketCommitmentRequest. */ + class QueryPacketCommitmentRequest implements IQueryPacketCommitmentRequest { /** - * Constructs a new QueryUnreceivedAcksRequest. + * Constructs a new QueryPacketCommitmentRequest. * @param [properties] Properties to set */ - constructor(properties?: ibc.core.channel.v1.IQueryUnreceivedAcksRequest); + constructor(properties?: ibc.core.channel.v1.IQueryPacketCommitmentRequest); - /** QueryUnreceivedAcksRequest port_id. */ + /** QueryPacketCommitmentRequest port_id. */ public port_id: string; - /** QueryUnreceivedAcksRequest channel_id. */ + /** QueryPacketCommitmentRequest channel_id. */ public channel_id: string; - /** QueryUnreceivedAcksRequest packet_ack_sequences. */ - public packet_ack_sequences: Long[]; + /** QueryPacketCommitmentRequest sequence. */ + public sequence: Long; /** - * Encodes the specified QueryUnreceivedAcksRequest message. Does not implicitly {@link ibc.core.channel.v1.QueryUnreceivedAcksRequest.verify|verify} messages. - * @param message QueryUnreceivedAcksRequest message or plain object to encode + * Encodes the specified QueryPacketCommitmentRequest message. Does not implicitly {@link ibc.core.channel.v1.QueryPacketCommitmentRequest.verify|verify} messages. + * @param message QueryPacketCommitmentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.core.channel.v1.IQueryUnreceivedAcksRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.core.channel.v1.IQueryPacketCommitmentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified QueryUnreceivedAcksRequest message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryUnreceivedAcksRequest.verify|verify} messages. - * @param message QueryUnreceivedAcksRequest message or plain object to encode + * Encodes the specified QueryPacketCommitmentRequest message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryPacketCommitmentRequest.verify|verify} messages. + * @param message QueryPacketCommitmentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.core.channel.v1.IQueryUnreceivedAcksRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.core.channel.v1.IQueryPacketCommitmentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a QueryUnreceivedAcksRequest message from the specified reader or buffer. + * Decodes a QueryPacketCommitmentRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns QueryUnreceivedAcksRequest + * @returns QueryPacketCommitmentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.channel.v1.QueryUnreceivedAcksRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.channel.v1.QueryPacketCommitmentRequest; /** - * Decodes a QueryUnreceivedAcksRequest message from the specified reader or buffer, length delimited. + * Decodes a QueryPacketCommitmentRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns QueryUnreceivedAcksRequest + * @returns QueryPacketCommitmentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.channel.v1.QueryUnreceivedAcksRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.channel.v1.QueryPacketCommitmentRequest; /** - * Verifies a QueryUnreceivedAcksRequest message. + * Verifies a QueryPacketCommitmentRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a QueryUnreceivedAcksRequest message from a plain object. Also converts values to their respective internal types. + * Creates a QueryPacketCommitmentRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns QueryUnreceivedAcksRequest + * @returns QueryPacketCommitmentRequest */ - public static fromObject(object: { [k: string]: any }): ibc.core.channel.v1.QueryUnreceivedAcksRequest; + public static fromObject(object: { [k: string]: any }): ibc.core.channel.v1.QueryPacketCommitmentRequest; /** - * Creates a plain object from a QueryUnreceivedAcksRequest message. Also converts values to other types if specified. - * @param message QueryUnreceivedAcksRequest + * Creates a plain object from a QueryPacketCommitmentRequest message. Also converts values to other types if specified. + * @param message QueryPacketCommitmentRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.core.channel.v1.QueryUnreceivedAcksRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.core.channel.v1.QueryPacketCommitmentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this QueryUnreceivedAcksRequest to JSON. + * Converts this QueryPacketCommitmentRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a QueryUnreceivedAcksResponse. */ - interface IQueryUnreceivedAcksResponse { + /** Properties of a QueryPacketCommitmentResponse. */ + interface IQueryPacketCommitmentResponse { - /** QueryUnreceivedAcksResponse sequences */ - sequences?: (Long[]|null); + /** QueryPacketCommitmentResponse commitment */ + commitment?: (Uint8Array|null); - /** QueryUnreceivedAcksResponse height */ - height?: (ibc.core.client.v1.IHeight|null); + /** QueryPacketCommitmentResponse proof */ + proof?: (Uint8Array|null); + + /** QueryPacketCommitmentResponse proof_height */ + proof_height?: (ibc.core.client.v1.IHeight|null); } - /** Represents a QueryUnreceivedAcksResponse. */ - class QueryUnreceivedAcksResponse implements IQueryUnreceivedAcksResponse { + /** Represents a QueryPacketCommitmentResponse. */ + class QueryPacketCommitmentResponse implements IQueryPacketCommitmentResponse { /** - * Constructs a new QueryUnreceivedAcksResponse. + * Constructs a new QueryPacketCommitmentResponse. * @param [properties] Properties to set */ - constructor(properties?: ibc.core.channel.v1.IQueryUnreceivedAcksResponse); + constructor(properties?: ibc.core.channel.v1.IQueryPacketCommitmentResponse); - /** QueryUnreceivedAcksResponse sequences. */ - public sequences: Long[]; + /** QueryPacketCommitmentResponse commitment. */ + public commitment: Uint8Array; - /** QueryUnreceivedAcksResponse height. */ - public height?: (ibc.core.client.v1.IHeight|null); + /** QueryPacketCommitmentResponse proof. */ + public proof: Uint8Array; + + /** QueryPacketCommitmentResponse proof_height. */ + public proof_height?: (ibc.core.client.v1.IHeight|null); /** - * Encodes the specified QueryUnreceivedAcksResponse message. Does not implicitly {@link ibc.core.channel.v1.QueryUnreceivedAcksResponse.verify|verify} messages. - * @param message QueryUnreceivedAcksResponse message or plain object to encode + * Encodes the specified QueryPacketCommitmentResponse message. Does not implicitly {@link ibc.core.channel.v1.QueryPacketCommitmentResponse.verify|verify} messages. + * @param message QueryPacketCommitmentResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.core.channel.v1.IQueryUnreceivedAcksResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.core.channel.v1.IQueryPacketCommitmentResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified QueryUnreceivedAcksResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryUnreceivedAcksResponse.verify|verify} messages. - * @param message QueryUnreceivedAcksResponse message or plain object to encode + * Encodes the specified QueryPacketCommitmentResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryPacketCommitmentResponse.verify|verify} messages. + * @param message QueryPacketCommitmentResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.core.channel.v1.IQueryUnreceivedAcksResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.core.channel.v1.IQueryPacketCommitmentResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a QueryUnreceivedAcksResponse message from the specified reader or buffer. + * Decodes a QueryPacketCommitmentResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns QueryUnreceivedAcksResponse + * @returns QueryPacketCommitmentResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.channel.v1.QueryUnreceivedAcksResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.channel.v1.QueryPacketCommitmentResponse; /** - * Decodes a QueryUnreceivedAcksResponse message from the specified reader or buffer, length delimited. + * Decodes a QueryPacketCommitmentResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns QueryUnreceivedAcksResponse + * @returns QueryPacketCommitmentResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.channel.v1.QueryUnreceivedAcksResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.channel.v1.QueryPacketCommitmentResponse; /** - * Verifies a QueryUnreceivedAcksResponse message. + * Verifies a QueryPacketCommitmentResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a QueryUnreceivedAcksResponse message from a plain object. Also converts values to their respective internal types. + * Creates a QueryPacketCommitmentResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns QueryUnreceivedAcksResponse + * @returns QueryPacketCommitmentResponse */ - public static fromObject(object: { [k: string]: any }): ibc.core.channel.v1.QueryUnreceivedAcksResponse; + public static fromObject(object: { [k: string]: any }): ibc.core.channel.v1.QueryPacketCommitmentResponse; /** - * Creates a plain object from a QueryUnreceivedAcksResponse message. Also converts values to other types if specified. - * @param message QueryUnreceivedAcksResponse + * Creates a plain object from a QueryPacketCommitmentResponse message. Also converts values to other types if specified. + * @param message QueryPacketCommitmentResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.core.channel.v1.QueryUnreceivedAcksResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.core.channel.v1.QueryPacketCommitmentResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this QueryUnreceivedAcksResponse to JSON. + * Converts this QueryPacketCommitmentResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a QueryNextSequenceReceiveRequest. */ - interface IQueryNextSequenceReceiveRequest { + /** Properties of a QueryPacketCommitmentsRequest. */ + interface IQueryPacketCommitmentsRequest { - /** QueryNextSequenceReceiveRequest port_id */ + /** QueryPacketCommitmentsRequest port_id */ port_id?: (string|null); - /** QueryNextSequenceReceiveRequest channel_id */ + /** QueryPacketCommitmentsRequest channel_id */ channel_id?: (string|null); + + /** QueryPacketCommitmentsRequest pagination */ + pagination?: (cosmos.base.query.v1beta1.IPageRequest|null); } - /** Represents a QueryNextSequenceReceiveRequest. */ - class QueryNextSequenceReceiveRequest implements IQueryNextSequenceReceiveRequest { + /** Represents a QueryPacketCommitmentsRequest. */ + class QueryPacketCommitmentsRequest implements IQueryPacketCommitmentsRequest { /** - * Constructs a new QueryNextSequenceReceiveRequest. + * Constructs a new QueryPacketCommitmentsRequest. * @param [properties] Properties to set */ - constructor(properties?: ibc.core.channel.v1.IQueryNextSequenceReceiveRequest); + constructor(properties?: ibc.core.channel.v1.IQueryPacketCommitmentsRequest); - /** QueryNextSequenceReceiveRequest port_id. */ + /** QueryPacketCommitmentsRequest port_id. */ public port_id: string; - /** QueryNextSequenceReceiveRequest channel_id. */ + /** QueryPacketCommitmentsRequest channel_id. */ public channel_id: string; + /** QueryPacketCommitmentsRequest pagination. */ + public pagination?: (cosmos.base.query.v1beta1.IPageRequest|null); + /** - * Encodes the specified QueryNextSequenceReceiveRequest message. Does not implicitly {@link ibc.core.channel.v1.QueryNextSequenceReceiveRequest.verify|verify} messages. - * @param message QueryNextSequenceReceiveRequest message or plain object to encode + * Encodes the specified QueryPacketCommitmentsRequest message. Does not implicitly {@link ibc.core.channel.v1.QueryPacketCommitmentsRequest.verify|verify} messages. + * @param message QueryPacketCommitmentsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.core.channel.v1.IQueryNextSequenceReceiveRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.core.channel.v1.IQueryPacketCommitmentsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified QueryNextSequenceReceiveRequest message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryNextSequenceReceiveRequest.verify|verify} messages. - * @param message QueryNextSequenceReceiveRequest message or plain object to encode + * Encodes the specified QueryPacketCommitmentsRequest message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryPacketCommitmentsRequest.verify|verify} messages. + * @param message QueryPacketCommitmentsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.core.channel.v1.IQueryNextSequenceReceiveRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.core.channel.v1.IQueryPacketCommitmentsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a QueryNextSequenceReceiveRequest message from the specified reader or buffer. + * Decodes a QueryPacketCommitmentsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns QueryNextSequenceReceiveRequest + * @returns QueryPacketCommitmentsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.channel.v1.QueryNextSequenceReceiveRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.channel.v1.QueryPacketCommitmentsRequest; /** - * Decodes a QueryNextSequenceReceiveRequest message from the specified reader or buffer, length delimited. + * Decodes a QueryPacketCommitmentsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns QueryNextSequenceReceiveRequest + * @returns QueryPacketCommitmentsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.channel.v1.QueryNextSequenceReceiveRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.channel.v1.QueryPacketCommitmentsRequest; /** - * Verifies a QueryNextSequenceReceiveRequest message. + * Verifies a QueryPacketCommitmentsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a QueryNextSequenceReceiveRequest message from a plain object. Also converts values to their respective internal types. + * Creates a QueryPacketCommitmentsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns QueryNextSequenceReceiveRequest + * @returns QueryPacketCommitmentsRequest */ - public static fromObject(object: { [k: string]: any }): ibc.core.channel.v1.QueryNextSequenceReceiveRequest; + public static fromObject(object: { [k: string]: any }): ibc.core.channel.v1.QueryPacketCommitmentsRequest; /** - * Creates a plain object from a QueryNextSequenceReceiveRequest message. Also converts values to other types if specified. - * @param message QueryNextSequenceReceiveRequest + * Creates a plain object from a QueryPacketCommitmentsRequest message. Also converts values to other types if specified. + * @param message QueryPacketCommitmentsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.core.channel.v1.QueryNextSequenceReceiveRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.core.channel.v1.QueryPacketCommitmentsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this QueryNextSequenceReceiveRequest to JSON. + * Converts this QueryPacketCommitmentsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a QueryNextSequenceReceiveResponse. */ - interface IQueryNextSequenceReceiveResponse { + /** Properties of a QueryPacketCommitmentsResponse. */ + interface IQueryPacketCommitmentsResponse { - /** QueryNextSequenceReceiveResponse next_sequence_receive */ - next_sequence_receive?: (Long|null); + /** QueryPacketCommitmentsResponse commitments */ + commitments?: (ibc.core.channel.v1.IPacketState[]|null); - /** QueryNextSequenceReceiveResponse proof */ - proof?: (Uint8Array|null); + /** QueryPacketCommitmentsResponse pagination */ + pagination?: (cosmos.base.query.v1beta1.IPageResponse|null); - /** QueryNextSequenceReceiveResponse proof_height */ - proof_height?: (ibc.core.client.v1.IHeight|null); + /** QueryPacketCommitmentsResponse height */ + height?: (ibc.core.client.v1.IHeight|null); } - /** Represents a QueryNextSequenceReceiveResponse. */ - class QueryNextSequenceReceiveResponse implements IQueryNextSequenceReceiveResponse { + /** Represents a QueryPacketCommitmentsResponse. */ + class QueryPacketCommitmentsResponse implements IQueryPacketCommitmentsResponse { /** - * Constructs a new QueryNextSequenceReceiveResponse. + * Constructs a new QueryPacketCommitmentsResponse. * @param [properties] Properties to set */ - constructor(properties?: ibc.core.channel.v1.IQueryNextSequenceReceiveResponse); + constructor(properties?: ibc.core.channel.v1.IQueryPacketCommitmentsResponse); - /** QueryNextSequenceReceiveResponse next_sequence_receive. */ - public next_sequence_receive: Long; + /** QueryPacketCommitmentsResponse commitments. */ + public commitments: ibc.core.channel.v1.IPacketState[]; - /** QueryNextSequenceReceiveResponse proof. */ - public proof: Uint8Array; + /** QueryPacketCommitmentsResponse pagination. */ + public pagination?: (cosmos.base.query.v1beta1.IPageResponse|null); - /** QueryNextSequenceReceiveResponse proof_height. */ - public proof_height?: (ibc.core.client.v1.IHeight|null); + /** QueryPacketCommitmentsResponse height. */ + public height?: (ibc.core.client.v1.IHeight|null); /** - * Encodes the specified QueryNextSequenceReceiveResponse message. Does not implicitly {@link ibc.core.channel.v1.QueryNextSequenceReceiveResponse.verify|verify} messages. - * @param message QueryNextSequenceReceiveResponse message or plain object to encode + * Encodes the specified QueryPacketCommitmentsResponse message. Does not implicitly {@link ibc.core.channel.v1.QueryPacketCommitmentsResponse.verify|verify} messages. + * @param message QueryPacketCommitmentsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.core.channel.v1.IQueryNextSequenceReceiveResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.core.channel.v1.IQueryPacketCommitmentsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified QueryNextSequenceReceiveResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryNextSequenceReceiveResponse.verify|verify} messages. - * @param message QueryNextSequenceReceiveResponse message or plain object to encode + * Encodes the specified QueryPacketCommitmentsResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryPacketCommitmentsResponse.verify|verify} messages. + * @param message QueryPacketCommitmentsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.core.channel.v1.IQueryNextSequenceReceiveResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.core.channel.v1.IQueryPacketCommitmentsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a QueryNextSequenceReceiveResponse message from the specified reader or buffer. + * Decodes a QueryPacketCommitmentsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns QueryNextSequenceReceiveResponse + * @returns QueryPacketCommitmentsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.channel.v1.QueryNextSequenceReceiveResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.channel.v1.QueryPacketCommitmentsResponse; /** - * Decodes a QueryNextSequenceReceiveResponse message from the specified reader or buffer, length delimited. + * Decodes a QueryPacketCommitmentsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns QueryNextSequenceReceiveResponse + * @returns QueryPacketCommitmentsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.channel.v1.QueryNextSequenceReceiveResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.channel.v1.QueryPacketCommitmentsResponse; /** - * Verifies a QueryNextSequenceReceiveResponse message. + * Verifies a QueryPacketCommitmentsResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a QueryNextSequenceReceiveResponse message from a plain object. Also converts values to their respective internal types. + * Creates a QueryPacketCommitmentsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns QueryNextSequenceReceiveResponse + * @returns QueryPacketCommitmentsResponse */ - public static fromObject(object: { [k: string]: any }): ibc.core.channel.v1.QueryNextSequenceReceiveResponse; + public static fromObject(object: { [k: string]: any }): ibc.core.channel.v1.QueryPacketCommitmentsResponse; /** - * Creates a plain object from a QueryNextSequenceReceiveResponse message. Also converts values to other types if specified. - * @param message QueryNextSequenceReceiveResponse + * Creates a plain object from a QueryPacketCommitmentsResponse message. Also converts values to other types if specified. + * @param message QueryPacketCommitmentsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.core.channel.v1.QueryNextSequenceReceiveResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.core.channel.v1.QueryPacketCommitmentsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this QueryNextSequenceReceiveResponse to JSON. + * Converts this QueryPacketCommitmentsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GenesisState. */ - interface IGenesisState { - - /** GenesisState channels */ - channels?: (ibc.core.channel.v1.IIdentifiedChannel[]|null); - - /** GenesisState acknowledgements */ - acknowledgements?: (ibc.core.channel.v1.IPacketState[]|null); - - /** GenesisState commitments */ - commitments?: (ibc.core.channel.v1.IPacketState[]|null); - - /** GenesisState receipts */ - receipts?: (ibc.core.channel.v1.IPacketState[]|null); - - /** GenesisState send_sequences */ - send_sequences?: (ibc.core.channel.v1.IPacketSequence[]|null); + /** Properties of a QueryPacketReceiptRequest. */ + interface IQueryPacketReceiptRequest { - /** GenesisState recv_sequences */ - recv_sequences?: (ibc.core.channel.v1.IPacketSequence[]|null); + /** QueryPacketReceiptRequest port_id */ + port_id?: (string|null); - /** GenesisState ack_sequences */ - ack_sequences?: (ibc.core.channel.v1.IPacketSequence[]|null); + /** QueryPacketReceiptRequest channel_id */ + channel_id?: (string|null); - /** GenesisState next_channel_sequence */ - next_channel_sequence?: (Long|null); + /** QueryPacketReceiptRequest sequence */ + sequence?: (Long|null); } - /** Represents a GenesisState. */ - class GenesisState implements IGenesisState { + /** Represents a QueryPacketReceiptRequest. */ + class QueryPacketReceiptRequest implements IQueryPacketReceiptRequest { /** - * Constructs a new GenesisState. + * Constructs a new QueryPacketReceiptRequest. * @param [properties] Properties to set */ - constructor(properties?: ibc.core.channel.v1.IGenesisState); - - /** GenesisState channels. */ - public channels: ibc.core.channel.v1.IIdentifiedChannel[]; - - /** GenesisState acknowledgements. */ - public acknowledgements: ibc.core.channel.v1.IPacketState[]; - - /** GenesisState commitments. */ - public commitments: ibc.core.channel.v1.IPacketState[]; - - /** GenesisState receipts. */ - public receipts: ibc.core.channel.v1.IPacketState[]; - - /** GenesisState send_sequences. */ - public send_sequences: ibc.core.channel.v1.IPacketSequence[]; + constructor(properties?: ibc.core.channel.v1.IQueryPacketReceiptRequest); - /** GenesisState recv_sequences. */ - public recv_sequences: ibc.core.channel.v1.IPacketSequence[]; + /** QueryPacketReceiptRequest port_id. */ + public port_id: string; - /** GenesisState ack_sequences. */ - public ack_sequences: ibc.core.channel.v1.IPacketSequence[]; + /** QueryPacketReceiptRequest channel_id. */ + public channel_id: string; - /** GenesisState next_channel_sequence. */ - public next_channel_sequence: Long; + /** QueryPacketReceiptRequest sequence. */ + public sequence: Long; /** - * Encodes the specified GenesisState message. Does not implicitly {@link ibc.core.channel.v1.GenesisState.verify|verify} messages. - * @param message GenesisState message or plain object to encode + * Encodes the specified QueryPacketReceiptRequest message. Does not implicitly {@link ibc.core.channel.v1.QueryPacketReceiptRequest.verify|verify} messages. + * @param message QueryPacketReceiptRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.core.channel.v1.IGenesisState, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.core.channel.v1.IQueryPacketReceiptRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GenesisState message, length delimited. Does not implicitly {@link ibc.core.channel.v1.GenesisState.verify|verify} messages. - * @param message GenesisState message or plain object to encode + * Encodes the specified QueryPacketReceiptRequest message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryPacketReceiptRequest.verify|verify} messages. + * @param message QueryPacketReceiptRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.core.channel.v1.IGenesisState, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.core.channel.v1.IQueryPacketReceiptRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GenesisState message from the specified reader or buffer. + * Decodes a QueryPacketReceiptRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GenesisState + * @returns QueryPacketReceiptRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.channel.v1.GenesisState; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.channel.v1.QueryPacketReceiptRequest; /** - * Decodes a GenesisState message from the specified reader or buffer, length delimited. + * Decodes a QueryPacketReceiptRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GenesisState + * @returns QueryPacketReceiptRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.channel.v1.GenesisState; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.channel.v1.QueryPacketReceiptRequest; /** - * Verifies a GenesisState message. + * Verifies a QueryPacketReceiptRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GenesisState message from a plain object. Also converts values to their respective internal types. + * Creates a QueryPacketReceiptRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GenesisState + * @returns QueryPacketReceiptRequest */ - public static fromObject(object: { [k: string]: any }): ibc.core.channel.v1.GenesisState; + public static fromObject(object: { [k: string]: any }): ibc.core.channel.v1.QueryPacketReceiptRequest; /** - * Creates a plain object from a GenesisState message. Also converts values to other types if specified. - * @param message GenesisState + * Creates a plain object from a QueryPacketReceiptRequest message. Also converts values to other types if specified. + * @param message QueryPacketReceiptRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.core.channel.v1.GenesisState, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.core.channel.v1.QueryPacketReceiptRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GenesisState to JSON. + * Converts this QueryPacketReceiptRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a PacketSequence. */ - interface IPacketSequence { + /** Properties of a QueryPacketReceiptResponse. */ + interface IQueryPacketReceiptResponse { - /** PacketSequence port_id */ - port_id?: (string|null); + /** QueryPacketReceiptResponse received */ + received?: (boolean|null); - /** PacketSequence channel_id */ - channel_id?: (string|null); + /** QueryPacketReceiptResponse proof */ + proof?: (Uint8Array|null); - /** PacketSequence sequence */ - sequence?: (Long|null); + /** QueryPacketReceiptResponse proof_height */ + proof_height?: (ibc.core.client.v1.IHeight|null); } - /** Represents a PacketSequence. */ - class PacketSequence implements IPacketSequence { + /** Represents a QueryPacketReceiptResponse. */ + class QueryPacketReceiptResponse implements IQueryPacketReceiptResponse { /** - * Constructs a new PacketSequence. + * Constructs a new QueryPacketReceiptResponse. * @param [properties] Properties to set */ - constructor(properties?: ibc.core.channel.v1.IPacketSequence); + constructor(properties?: ibc.core.channel.v1.IQueryPacketReceiptResponse); - /** PacketSequence port_id. */ - public port_id: string; + /** QueryPacketReceiptResponse received. */ + public received: boolean; - /** PacketSequence channel_id. */ - public channel_id: string; + /** QueryPacketReceiptResponse proof. */ + public proof: Uint8Array; - /** PacketSequence sequence. */ - public sequence: Long; + /** QueryPacketReceiptResponse proof_height. */ + public proof_height?: (ibc.core.client.v1.IHeight|null); /** - * Encodes the specified PacketSequence message. Does not implicitly {@link ibc.core.channel.v1.PacketSequence.verify|verify} messages. - * @param message PacketSequence message or plain object to encode + * Encodes the specified QueryPacketReceiptResponse message. Does not implicitly {@link ibc.core.channel.v1.QueryPacketReceiptResponse.verify|verify} messages. + * @param message QueryPacketReceiptResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.core.channel.v1.IPacketSequence, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.core.channel.v1.IQueryPacketReceiptResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified PacketSequence message, length delimited. Does not implicitly {@link ibc.core.channel.v1.PacketSequence.verify|verify} messages. - * @param message PacketSequence message or plain object to encode + * Encodes the specified QueryPacketReceiptResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryPacketReceiptResponse.verify|verify} messages. + * @param message QueryPacketReceiptResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.core.channel.v1.IPacketSequence, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.core.channel.v1.IQueryPacketReceiptResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PacketSequence message from the specified reader or buffer. + * Decodes a QueryPacketReceiptResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PacketSequence + * @returns QueryPacketReceiptResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.channel.v1.PacketSequence; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.channel.v1.QueryPacketReceiptResponse; /** - * Decodes a PacketSequence message from the specified reader or buffer, length delimited. + * Decodes a QueryPacketReceiptResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PacketSequence + * @returns QueryPacketReceiptResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.channel.v1.PacketSequence; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.channel.v1.QueryPacketReceiptResponse; /** - * Verifies a PacketSequence message. + * Verifies a QueryPacketReceiptResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a PacketSequence message from a plain object. Also converts values to their respective internal types. + * Creates a QueryPacketReceiptResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PacketSequence + * @returns QueryPacketReceiptResponse */ - public static fromObject(object: { [k: string]: any }): ibc.core.channel.v1.PacketSequence; + public static fromObject(object: { [k: string]: any }): ibc.core.channel.v1.QueryPacketReceiptResponse; /** - * Creates a plain object from a PacketSequence message. Also converts values to other types if specified. - * @param message PacketSequence + * Creates a plain object from a QueryPacketReceiptResponse message. Also converts values to other types if specified. + * @param message QueryPacketReceiptResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.core.channel.v1.PacketSequence, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.core.channel.v1.QueryPacketReceiptResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PacketSequence to JSON. + * Converts this QueryPacketReceiptResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - } - } - - /** Namespace client. */ - namespace client { - /** Namespace v1. */ - namespace v1 { + /** Properties of a QueryPacketAcknowledgementRequest. */ + interface IQueryPacketAcknowledgementRequest { - /** Properties of an IdentifiedClientState. */ - interface IIdentifiedClientState { + /** QueryPacketAcknowledgementRequest port_id */ + port_id?: (string|null); - /** IdentifiedClientState client_id */ - client_id?: (string|null); + /** QueryPacketAcknowledgementRequest channel_id */ + channel_id?: (string|null); - /** IdentifiedClientState client_state */ - client_state?: (google.protobuf.IAny|null); + /** QueryPacketAcknowledgementRequest sequence */ + sequence?: (Long|null); } - /** Represents an IdentifiedClientState. */ - class IdentifiedClientState implements IIdentifiedClientState { + /** Represents a QueryPacketAcknowledgementRequest. */ + class QueryPacketAcknowledgementRequest implements IQueryPacketAcknowledgementRequest { /** - * Constructs a new IdentifiedClientState. + * Constructs a new QueryPacketAcknowledgementRequest. * @param [properties] Properties to set */ - constructor(properties?: ibc.core.client.v1.IIdentifiedClientState); + constructor(properties?: ibc.core.channel.v1.IQueryPacketAcknowledgementRequest); - /** IdentifiedClientState client_id. */ - public client_id: string; + /** QueryPacketAcknowledgementRequest port_id. */ + public port_id: string; - /** IdentifiedClientState client_state. */ - public client_state?: (google.protobuf.IAny|null); + /** QueryPacketAcknowledgementRequest channel_id. */ + public channel_id: string; + + /** QueryPacketAcknowledgementRequest sequence. */ + public sequence: Long; /** - * Encodes the specified IdentifiedClientState message. Does not implicitly {@link ibc.core.client.v1.IdentifiedClientState.verify|verify} messages. - * @param message IdentifiedClientState message or plain object to encode + * Encodes the specified QueryPacketAcknowledgementRequest message. Does not implicitly {@link ibc.core.channel.v1.QueryPacketAcknowledgementRequest.verify|verify} messages. + * @param message QueryPacketAcknowledgementRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.core.client.v1.IIdentifiedClientState, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.core.channel.v1.IQueryPacketAcknowledgementRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified IdentifiedClientState message, length delimited. Does not implicitly {@link ibc.core.client.v1.IdentifiedClientState.verify|verify} messages. - * @param message IdentifiedClientState message or plain object to encode + * Encodes the specified QueryPacketAcknowledgementRequest message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryPacketAcknowledgementRequest.verify|verify} messages. + * @param message QueryPacketAcknowledgementRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.core.client.v1.IIdentifiedClientState, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.core.channel.v1.IQueryPacketAcknowledgementRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an IdentifiedClientState message from the specified reader or buffer. + * Decodes a QueryPacketAcknowledgementRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns IdentifiedClientState + * @returns QueryPacketAcknowledgementRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.client.v1.IdentifiedClientState; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.channel.v1.QueryPacketAcknowledgementRequest; /** - * Decodes an IdentifiedClientState message from the specified reader or buffer, length delimited. + * Decodes a QueryPacketAcknowledgementRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns IdentifiedClientState + * @returns QueryPacketAcknowledgementRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.client.v1.IdentifiedClientState; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.channel.v1.QueryPacketAcknowledgementRequest; /** - * Verifies an IdentifiedClientState message. + * Verifies a QueryPacketAcknowledgementRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an IdentifiedClientState message from a plain object. Also converts values to their respective internal types. + * Creates a QueryPacketAcknowledgementRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns IdentifiedClientState + * @returns QueryPacketAcknowledgementRequest */ - public static fromObject(object: { [k: string]: any }): ibc.core.client.v1.IdentifiedClientState; + public static fromObject(object: { [k: string]: any }): ibc.core.channel.v1.QueryPacketAcknowledgementRequest; /** - * Creates a plain object from an IdentifiedClientState message. Also converts values to other types if specified. - * @param message IdentifiedClientState + * Creates a plain object from a QueryPacketAcknowledgementRequest message. Also converts values to other types if specified. + * @param message QueryPacketAcknowledgementRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.core.client.v1.IdentifiedClientState, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.core.channel.v1.QueryPacketAcknowledgementRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this IdentifiedClientState to JSON. + * Converts this QueryPacketAcknowledgementRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ConsensusStateWithHeight. */ - interface IConsensusStateWithHeight { + /** Properties of a QueryPacketAcknowledgementResponse. */ + interface IQueryPacketAcknowledgementResponse { - /** ConsensusStateWithHeight height */ - height?: (ibc.core.client.v1.IHeight|null); + /** QueryPacketAcknowledgementResponse acknowledgement */ + acknowledgement?: (Uint8Array|null); - /** ConsensusStateWithHeight consensus_state */ - consensus_state?: (google.protobuf.IAny|null); + /** QueryPacketAcknowledgementResponse proof */ + proof?: (Uint8Array|null); + + /** QueryPacketAcknowledgementResponse proof_height */ + proof_height?: (ibc.core.client.v1.IHeight|null); } - /** Represents a ConsensusStateWithHeight. */ - class ConsensusStateWithHeight implements IConsensusStateWithHeight { + /** Represents a QueryPacketAcknowledgementResponse. */ + class QueryPacketAcknowledgementResponse implements IQueryPacketAcknowledgementResponse { /** - * Constructs a new ConsensusStateWithHeight. + * Constructs a new QueryPacketAcknowledgementResponse. * @param [properties] Properties to set */ - constructor(properties?: ibc.core.client.v1.IConsensusStateWithHeight); + constructor(properties?: ibc.core.channel.v1.IQueryPacketAcknowledgementResponse); - /** ConsensusStateWithHeight height. */ - public height?: (ibc.core.client.v1.IHeight|null); + /** QueryPacketAcknowledgementResponse acknowledgement. */ + public acknowledgement: Uint8Array; - /** ConsensusStateWithHeight consensus_state. */ - public consensus_state?: (google.protobuf.IAny|null); + /** QueryPacketAcknowledgementResponse proof. */ + public proof: Uint8Array; + + /** QueryPacketAcknowledgementResponse proof_height. */ + public proof_height?: (ibc.core.client.v1.IHeight|null); /** - * Encodes the specified ConsensusStateWithHeight message. Does not implicitly {@link ibc.core.client.v1.ConsensusStateWithHeight.verify|verify} messages. - * @param message ConsensusStateWithHeight message or plain object to encode + * Encodes the specified QueryPacketAcknowledgementResponse message. Does not implicitly {@link ibc.core.channel.v1.QueryPacketAcknowledgementResponse.verify|verify} messages. + * @param message QueryPacketAcknowledgementResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.core.client.v1.IConsensusStateWithHeight, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.core.channel.v1.IQueryPacketAcknowledgementResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ConsensusStateWithHeight message, length delimited. Does not implicitly {@link ibc.core.client.v1.ConsensusStateWithHeight.verify|verify} messages. - * @param message ConsensusStateWithHeight message or plain object to encode + * Encodes the specified QueryPacketAcknowledgementResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryPacketAcknowledgementResponse.verify|verify} messages. + * @param message QueryPacketAcknowledgementResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.core.client.v1.IConsensusStateWithHeight, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.core.channel.v1.IQueryPacketAcknowledgementResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ConsensusStateWithHeight message from the specified reader or buffer. + * Decodes a QueryPacketAcknowledgementResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ConsensusStateWithHeight + * @returns QueryPacketAcknowledgementResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.client.v1.ConsensusStateWithHeight; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.channel.v1.QueryPacketAcknowledgementResponse; /** - * Decodes a ConsensusStateWithHeight message from the specified reader or buffer, length delimited. + * Decodes a QueryPacketAcknowledgementResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ConsensusStateWithHeight + * @returns QueryPacketAcknowledgementResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.client.v1.ConsensusStateWithHeight; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.channel.v1.QueryPacketAcknowledgementResponse; /** - * Verifies a ConsensusStateWithHeight message. + * Verifies a QueryPacketAcknowledgementResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ConsensusStateWithHeight message from a plain object. Also converts values to their respective internal types. + * Creates a QueryPacketAcknowledgementResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ConsensusStateWithHeight + * @returns QueryPacketAcknowledgementResponse */ - public static fromObject(object: { [k: string]: any }): ibc.core.client.v1.ConsensusStateWithHeight; + public static fromObject(object: { [k: string]: any }): ibc.core.channel.v1.QueryPacketAcknowledgementResponse; /** - * Creates a plain object from a ConsensusStateWithHeight message. Also converts values to other types if specified. - * @param message ConsensusStateWithHeight + * Creates a plain object from a QueryPacketAcknowledgementResponse message. Also converts values to other types if specified. + * @param message QueryPacketAcknowledgementResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.core.client.v1.ConsensusStateWithHeight, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.core.channel.v1.QueryPacketAcknowledgementResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ConsensusStateWithHeight to JSON. + * Converts this QueryPacketAcknowledgementResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ClientConsensusStates. */ - interface IClientConsensusStates { + /** Properties of a QueryPacketAcknowledgementsRequest. */ + interface IQueryPacketAcknowledgementsRequest { - /** ClientConsensusStates client_id */ - client_id?: (string|null); + /** QueryPacketAcknowledgementsRequest port_id */ + port_id?: (string|null); - /** ClientConsensusStates consensus_states */ - consensus_states?: (ibc.core.client.v1.IConsensusStateWithHeight[]|null); + /** QueryPacketAcknowledgementsRequest channel_id */ + channel_id?: (string|null); + + /** QueryPacketAcknowledgementsRequest pagination */ + pagination?: (cosmos.base.query.v1beta1.IPageRequest|null); + + /** QueryPacketAcknowledgementsRequest packet_commitment_sequences */ + packet_commitment_sequences?: (Long[]|null); } - /** Represents a ClientConsensusStates. */ - class ClientConsensusStates implements IClientConsensusStates { + /** Represents a QueryPacketAcknowledgementsRequest. */ + class QueryPacketAcknowledgementsRequest implements IQueryPacketAcknowledgementsRequest { /** - * Constructs a new ClientConsensusStates. + * Constructs a new QueryPacketAcknowledgementsRequest. * @param [properties] Properties to set */ - constructor(properties?: ibc.core.client.v1.IClientConsensusStates); + constructor(properties?: ibc.core.channel.v1.IQueryPacketAcknowledgementsRequest); - /** ClientConsensusStates client_id. */ - public client_id: string; + /** QueryPacketAcknowledgementsRequest port_id. */ + public port_id: string; - /** ClientConsensusStates consensus_states. */ - public consensus_states: ibc.core.client.v1.IConsensusStateWithHeight[]; + /** QueryPacketAcknowledgementsRequest channel_id. */ + public channel_id: string; + + /** QueryPacketAcknowledgementsRequest pagination. */ + public pagination?: (cosmos.base.query.v1beta1.IPageRequest|null); + + /** QueryPacketAcknowledgementsRequest packet_commitment_sequences. */ + public packet_commitment_sequences: Long[]; /** - * Encodes the specified ClientConsensusStates message. Does not implicitly {@link ibc.core.client.v1.ClientConsensusStates.verify|verify} messages. - * @param message ClientConsensusStates message or plain object to encode + * Encodes the specified QueryPacketAcknowledgementsRequest message. Does not implicitly {@link ibc.core.channel.v1.QueryPacketAcknowledgementsRequest.verify|verify} messages. + * @param message QueryPacketAcknowledgementsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.core.client.v1.IClientConsensusStates, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.core.channel.v1.IQueryPacketAcknowledgementsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ClientConsensusStates message, length delimited. Does not implicitly {@link ibc.core.client.v1.ClientConsensusStates.verify|verify} messages. - * @param message ClientConsensusStates message or plain object to encode + * Encodes the specified QueryPacketAcknowledgementsRequest message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryPacketAcknowledgementsRequest.verify|verify} messages. + * @param message QueryPacketAcknowledgementsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.core.client.v1.IClientConsensusStates, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.core.channel.v1.IQueryPacketAcknowledgementsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ClientConsensusStates message from the specified reader or buffer. + * Decodes a QueryPacketAcknowledgementsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ClientConsensusStates + * @returns QueryPacketAcknowledgementsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.client.v1.ClientConsensusStates; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.channel.v1.QueryPacketAcknowledgementsRequest; /** - * Decodes a ClientConsensusStates message from the specified reader or buffer, length delimited. + * Decodes a QueryPacketAcknowledgementsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ClientConsensusStates + * @returns QueryPacketAcknowledgementsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.client.v1.ClientConsensusStates; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.channel.v1.QueryPacketAcknowledgementsRequest; /** - * Verifies a ClientConsensusStates message. + * Verifies a QueryPacketAcknowledgementsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ClientConsensusStates message from a plain object. Also converts values to their respective internal types. + * Creates a QueryPacketAcknowledgementsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ClientConsensusStates + * @returns QueryPacketAcknowledgementsRequest */ - public static fromObject(object: { [k: string]: any }): ibc.core.client.v1.ClientConsensusStates; + public static fromObject(object: { [k: string]: any }): ibc.core.channel.v1.QueryPacketAcknowledgementsRequest; /** - * Creates a plain object from a ClientConsensusStates message. Also converts values to other types if specified. - * @param message ClientConsensusStates + * Creates a plain object from a QueryPacketAcknowledgementsRequest message. Also converts values to other types if specified. + * @param message QueryPacketAcknowledgementsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.core.client.v1.ClientConsensusStates, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.core.channel.v1.QueryPacketAcknowledgementsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ClientConsensusStates to JSON. + * Converts this QueryPacketAcknowledgementsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ClientUpdateProposal. */ - interface IClientUpdateProposal { - - /** ClientUpdateProposal title */ - title?: (string|null); + /** Properties of a QueryPacketAcknowledgementsResponse. */ + interface IQueryPacketAcknowledgementsResponse { - /** ClientUpdateProposal description */ - description?: (string|null); + /** QueryPacketAcknowledgementsResponse acknowledgements */ + acknowledgements?: (ibc.core.channel.v1.IPacketState[]|null); - /** ClientUpdateProposal subject_client_id */ - subject_client_id?: (string|null); + /** QueryPacketAcknowledgementsResponse pagination */ + pagination?: (cosmos.base.query.v1beta1.IPageResponse|null); - /** ClientUpdateProposal substitute_client_id */ - substitute_client_id?: (string|null); + /** QueryPacketAcknowledgementsResponse height */ + height?: (ibc.core.client.v1.IHeight|null); } - /** Represents a ClientUpdateProposal. */ - class ClientUpdateProposal implements IClientUpdateProposal { + /** Represents a QueryPacketAcknowledgementsResponse. */ + class QueryPacketAcknowledgementsResponse implements IQueryPacketAcknowledgementsResponse { /** - * Constructs a new ClientUpdateProposal. + * Constructs a new QueryPacketAcknowledgementsResponse. * @param [properties] Properties to set */ - constructor(properties?: ibc.core.client.v1.IClientUpdateProposal); - - /** ClientUpdateProposal title. */ - public title: string; + constructor(properties?: ibc.core.channel.v1.IQueryPacketAcknowledgementsResponse); - /** ClientUpdateProposal description. */ - public description: string; + /** QueryPacketAcknowledgementsResponse acknowledgements. */ + public acknowledgements: ibc.core.channel.v1.IPacketState[]; - /** ClientUpdateProposal subject_client_id. */ - public subject_client_id: string; + /** QueryPacketAcknowledgementsResponse pagination. */ + public pagination?: (cosmos.base.query.v1beta1.IPageResponse|null); - /** ClientUpdateProposal substitute_client_id. */ - public substitute_client_id: string; + /** QueryPacketAcknowledgementsResponse height. */ + public height?: (ibc.core.client.v1.IHeight|null); /** - * Encodes the specified ClientUpdateProposal message. Does not implicitly {@link ibc.core.client.v1.ClientUpdateProposal.verify|verify} messages. - * @param message ClientUpdateProposal message or plain object to encode + * Encodes the specified QueryPacketAcknowledgementsResponse message. Does not implicitly {@link ibc.core.channel.v1.QueryPacketAcknowledgementsResponse.verify|verify} messages. + * @param message QueryPacketAcknowledgementsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.core.client.v1.IClientUpdateProposal, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.core.channel.v1.IQueryPacketAcknowledgementsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ClientUpdateProposal message, length delimited. Does not implicitly {@link ibc.core.client.v1.ClientUpdateProposal.verify|verify} messages. - * @param message ClientUpdateProposal message or plain object to encode + * Encodes the specified QueryPacketAcknowledgementsResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryPacketAcknowledgementsResponse.verify|verify} messages. + * @param message QueryPacketAcknowledgementsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.core.client.v1.IClientUpdateProposal, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.core.channel.v1.IQueryPacketAcknowledgementsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ClientUpdateProposal message from the specified reader or buffer. + * Decodes a QueryPacketAcknowledgementsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ClientUpdateProposal + * @returns QueryPacketAcknowledgementsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.client.v1.ClientUpdateProposal; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.channel.v1.QueryPacketAcknowledgementsResponse; /** - * Decodes a ClientUpdateProposal message from the specified reader or buffer, length delimited. + * Decodes a QueryPacketAcknowledgementsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ClientUpdateProposal + * @returns QueryPacketAcknowledgementsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.client.v1.ClientUpdateProposal; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.channel.v1.QueryPacketAcknowledgementsResponse; /** - * Verifies a ClientUpdateProposal message. + * Verifies a QueryPacketAcknowledgementsResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ClientUpdateProposal message from a plain object. Also converts values to their respective internal types. + * Creates a QueryPacketAcknowledgementsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ClientUpdateProposal + * @returns QueryPacketAcknowledgementsResponse */ - public static fromObject(object: { [k: string]: any }): ibc.core.client.v1.ClientUpdateProposal; + public static fromObject(object: { [k: string]: any }): ibc.core.channel.v1.QueryPacketAcknowledgementsResponse; /** - * Creates a plain object from a ClientUpdateProposal message. Also converts values to other types if specified. - * @param message ClientUpdateProposal + * Creates a plain object from a QueryPacketAcknowledgementsResponse message. Also converts values to other types if specified. + * @param message QueryPacketAcknowledgementsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.core.client.v1.ClientUpdateProposal, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.core.channel.v1.QueryPacketAcknowledgementsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ClientUpdateProposal to JSON. + * Converts this QueryPacketAcknowledgementsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an UpgradeProposal. */ - interface IUpgradeProposal { - - /** UpgradeProposal title */ - title?: (string|null); + /** Properties of a QueryUnreceivedPacketsRequest. */ + interface IQueryUnreceivedPacketsRequest { - /** UpgradeProposal description */ - description?: (string|null); + /** QueryUnreceivedPacketsRequest port_id */ + port_id?: (string|null); - /** UpgradeProposal plan */ - plan?: (cosmos.upgrade.v1beta1.IPlan|null); + /** QueryUnreceivedPacketsRequest channel_id */ + channel_id?: (string|null); - /** UpgradeProposal upgraded_client_state */ - upgraded_client_state?: (google.protobuf.IAny|null); + /** QueryUnreceivedPacketsRequest packet_commitment_sequences */ + packet_commitment_sequences?: (Long[]|null); } - /** Represents an UpgradeProposal. */ - class UpgradeProposal implements IUpgradeProposal { + /** Represents a QueryUnreceivedPacketsRequest. */ + class QueryUnreceivedPacketsRequest implements IQueryUnreceivedPacketsRequest { /** - * Constructs a new UpgradeProposal. + * Constructs a new QueryUnreceivedPacketsRequest. * @param [properties] Properties to set */ - constructor(properties?: ibc.core.client.v1.IUpgradeProposal); - - /** UpgradeProposal title. */ - public title: string; + constructor(properties?: ibc.core.channel.v1.IQueryUnreceivedPacketsRequest); - /** UpgradeProposal description. */ - public description: string; + /** QueryUnreceivedPacketsRequest port_id. */ + public port_id: string; - /** UpgradeProposal plan. */ - public plan?: (cosmos.upgrade.v1beta1.IPlan|null); + /** QueryUnreceivedPacketsRequest channel_id. */ + public channel_id: string; - /** UpgradeProposal upgraded_client_state. */ - public upgraded_client_state?: (google.protobuf.IAny|null); + /** QueryUnreceivedPacketsRequest packet_commitment_sequences. */ + public packet_commitment_sequences: Long[]; /** - * Encodes the specified UpgradeProposal message. Does not implicitly {@link ibc.core.client.v1.UpgradeProposal.verify|verify} messages. - * @param message UpgradeProposal message or plain object to encode + * Encodes the specified QueryUnreceivedPacketsRequest message. Does not implicitly {@link ibc.core.channel.v1.QueryUnreceivedPacketsRequest.verify|verify} messages. + * @param message QueryUnreceivedPacketsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.core.client.v1.IUpgradeProposal, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.core.channel.v1.IQueryUnreceivedPacketsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpgradeProposal message, length delimited. Does not implicitly {@link ibc.core.client.v1.UpgradeProposal.verify|verify} messages. - * @param message UpgradeProposal message or plain object to encode + * Encodes the specified QueryUnreceivedPacketsRequest message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryUnreceivedPacketsRequest.verify|verify} messages. + * @param message QueryUnreceivedPacketsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.core.client.v1.IUpgradeProposal, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.core.channel.v1.IQueryUnreceivedPacketsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpgradeProposal message from the specified reader or buffer. + * Decodes a QueryUnreceivedPacketsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpgradeProposal + * @returns QueryUnreceivedPacketsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.client.v1.UpgradeProposal; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.channel.v1.QueryUnreceivedPacketsRequest; /** - * Decodes an UpgradeProposal message from the specified reader or buffer, length delimited. + * Decodes a QueryUnreceivedPacketsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpgradeProposal + * @returns QueryUnreceivedPacketsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.client.v1.UpgradeProposal; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.channel.v1.QueryUnreceivedPacketsRequest; /** - * Verifies an UpgradeProposal message. + * Verifies a QueryUnreceivedPacketsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an UpgradeProposal message from a plain object. Also converts values to their respective internal types. + * Creates a QueryUnreceivedPacketsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpgradeProposal + * @returns QueryUnreceivedPacketsRequest */ - public static fromObject(object: { [k: string]: any }): ibc.core.client.v1.UpgradeProposal; + public static fromObject(object: { [k: string]: any }): ibc.core.channel.v1.QueryUnreceivedPacketsRequest; /** - * Creates a plain object from an UpgradeProposal message. Also converts values to other types if specified. - * @param message UpgradeProposal + * Creates a plain object from a QueryUnreceivedPacketsRequest message. Also converts values to other types if specified. + * @param message QueryUnreceivedPacketsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.core.client.v1.UpgradeProposal, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.core.channel.v1.QueryUnreceivedPacketsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpgradeProposal to JSON. + * Converts this QueryUnreceivedPacketsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an Height. */ - interface IHeight { + /** Properties of a QueryUnreceivedPacketsResponse. */ + interface IQueryUnreceivedPacketsResponse { - /** Height revision_number */ - revision_number?: (Long|null); + /** QueryUnreceivedPacketsResponse sequences */ + sequences?: (Long[]|null); - /** Height revision_height */ - revision_height?: (Long|null); + /** QueryUnreceivedPacketsResponse height */ + height?: (ibc.core.client.v1.IHeight|null); } - /** Represents an Height. */ - class Height implements IHeight { + /** Represents a QueryUnreceivedPacketsResponse. */ + class QueryUnreceivedPacketsResponse implements IQueryUnreceivedPacketsResponse { /** - * Constructs a new Height. + * Constructs a new QueryUnreceivedPacketsResponse. * @param [properties] Properties to set */ - constructor(properties?: ibc.core.client.v1.IHeight); + constructor(properties?: ibc.core.channel.v1.IQueryUnreceivedPacketsResponse); - /** Height revision_number. */ - public revision_number: Long; + /** QueryUnreceivedPacketsResponse sequences. */ + public sequences: Long[]; - /** Height revision_height. */ - public revision_height: Long; + /** QueryUnreceivedPacketsResponse height. */ + public height?: (ibc.core.client.v1.IHeight|null); /** - * Encodes the specified Height message. Does not implicitly {@link ibc.core.client.v1.Height.verify|verify} messages. - * @param message Height message or plain object to encode + * Encodes the specified QueryUnreceivedPacketsResponse message. Does not implicitly {@link ibc.core.channel.v1.QueryUnreceivedPacketsResponse.verify|verify} messages. + * @param message QueryUnreceivedPacketsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.core.client.v1.IHeight, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.core.channel.v1.IQueryUnreceivedPacketsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Height message, length delimited. Does not implicitly {@link ibc.core.client.v1.Height.verify|verify} messages. - * @param message Height message or plain object to encode + * Encodes the specified QueryUnreceivedPacketsResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryUnreceivedPacketsResponse.verify|verify} messages. + * @param message QueryUnreceivedPacketsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.core.client.v1.IHeight, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.core.channel.v1.IQueryUnreceivedPacketsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an Height message from the specified reader or buffer. + * Decodes a QueryUnreceivedPacketsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Height + * @returns QueryUnreceivedPacketsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.client.v1.Height; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.channel.v1.QueryUnreceivedPacketsResponse; /** - * Decodes an Height message from the specified reader or buffer, length delimited. + * Decodes a QueryUnreceivedPacketsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Height + * @returns QueryUnreceivedPacketsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.client.v1.Height; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.channel.v1.QueryUnreceivedPacketsResponse; /** - * Verifies an Height message. + * Verifies a QueryUnreceivedPacketsResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an Height message from a plain object. Also converts values to their respective internal types. + * Creates a QueryUnreceivedPacketsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Height + * @returns QueryUnreceivedPacketsResponse */ - public static fromObject(object: { [k: string]: any }): ibc.core.client.v1.Height; + public static fromObject(object: { [k: string]: any }): ibc.core.channel.v1.QueryUnreceivedPacketsResponse; /** - * Creates a plain object from an Height message. Also converts values to other types if specified. - * @param message Height + * Creates a plain object from a QueryUnreceivedPacketsResponse message. Also converts values to other types if specified. + * @param message QueryUnreceivedPacketsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.core.client.v1.Height, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.core.channel.v1.QueryUnreceivedPacketsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Height to JSON. + * Converts this QueryUnreceivedPacketsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a Params. */ - interface IParams { + /** Properties of a QueryUnreceivedAcksRequest. */ + interface IQueryUnreceivedAcksRequest { - /** Params allowed_clients */ - allowed_clients?: (string[]|null); + /** QueryUnreceivedAcksRequest port_id */ + port_id?: (string|null); + + /** QueryUnreceivedAcksRequest channel_id */ + channel_id?: (string|null); + + /** QueryUnreceivedAcksRequest packet_ack_sequences */ + packet_ack_sequences?: (Long[]|null); } - /** Represents a Params. */ - class Params implements IParams { + /** Represents a QueryUnreceivedAcksRequest. */ + class QueryUnreceivedAcksRequest implements IQueryUnreceivedAcksRequest { /** - * Constructs a new Params. + * Constructs a new QueryUnreceivedAcksRequest. * @param [properties] Properties to set */ - constructor(properties?: ibc.core.client.v1.IParams); + constructor(properties?: ibc.core.channel.v1.IQueryUnreceivedAcksRequest); - /** Params allowed_clients. */ - public allowed_clients: string[]; + /** QueryUnreceivedAcksRequest port_id. */ + public port_id: string; + + /** QueryUnreceivedAcksRequest channel_id. */ + public channel_id: string; + + /** QueryUnreceivedAcksRequest packet_ack_sequences. */ + public packet_ack_sequences: Long[]; /** - * Encodes the specified Params message. Does not implicitly {@link ibc.core.client.v1.Params.verify|verify} messages. - * @param message Params message or plain object to encode + * Encodes the specified QueryUnreceivedAcksRequest message. Does not implicitly {@link ibc.core.channel.v1.QueryUnreceivedAcksRequest.verify|verify} messages. + * @param message QueryUnreceivedAcksRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.core.client.v1.IParams, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.core.channel.v1.IQueryUnreceivedAcksRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Params message, length delimited. Does not implicitly {@link ibc.core.client.v1.Params.verify|verify} messages. - * @param message Params message or plain object to encode + * Encodes the specified QueryUnreceivedAcksRequest message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryUnreceivedAcksRequest.verify|verify} messages. + * @param message QueryUnreceivedAcksRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.core.client.v1.IParams, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.core.channel.v1.IQueryUnreceivedAcksRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Params message from the specified reader or buffer. + * Decodes a QueryUnreceivedAcksRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Params + * @returns QueryUnreceivedAcksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.client.v1.Params; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.channel.v1.QueryUnreceivedAcksRequest; /** - * Decodes a Params message from the specified reader or buffer, length delimited. + * Decodes a QueryUnreceivedAcksRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Params + * @returns QueryUnreceivedAcksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.client.v1.Params; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.channel.v1.QueryUnreceivedAcksRequest; /** - * Verifies a Params message. + * Verifies a QueryUnreceivedAcksRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a Params message from a plain object. Also converts values to their respective internal types. + * Creates a QueryUnreceivedAcksRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Params + * @returns QueryUnreceivedAcksRequest */ - public static fromObject(object: { [k: string]: any }): ibc.core.client.v1.Params; + public static fromObject(object: { [k: string]: any }): ibc.core.channel.v1.QueryUnreceivedAcksRequest; /** - * Creates a plain object from a Params message. Also converts values to other types if specified. - * @param message Params + * Creates a plain object from a QueryUnreceivedAcksRequest message. Also converts values to other types if specified. + * @param message QueryUnreceivedAcksRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.core.client.v1.Params, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.core.channel.v1.QueryUnreceivedAcksRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Params to JSON. + * Converts this QueryUnreceivedAcksRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Represents a Msg */ - class Msg extends $protobuf.rpc.Service { + /** Properties of a QueryUnreceivedAcksResponse. */ + interface IQueryUnreceivedAcksResponse { - /** - * Constructs a new Msg service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + /** QueryUnreceivedAcksResponse sequences */ + sequences?: (Long[]|null); - /** - * Calls CreateClient. - * @param request MsgCreateClient message or plain object - * @param callback Node-style callback called with the error, if any, and MsgCreateClientResponse - */ - public createClient(request: ibc.core.client.v1.IMsgCreateClient, callback: ibc.core.client.v1.Msg.CreateClientCallback): void; + /** QueryUnreceivedAcksResponse height */ + height?: (ibc.core.client.v1.IHeight|null); + } - /** - * Calls CreateClient. - * @param request MsgCreateClient message or plain object - * @returns Promise - */ - public createClient(request: ibc.core.client.v1.IMsgCreateClient): Promise; + /** Represents a QueryUnreceivedAcksResponse. */ + class QueryUnreceivedAcksResponse implements IQueryUnreceivedAcksResponse { /** - * Calls UpdateClient. - * @param request MsgUpdateClient message or plain object - * @param callback Node-style callback called with the error, if any, and MsgUpdateClientResponse + * Constructs a new QueryUnreceivedAcksResponse. + * @param [properties] Properties to set */ - public updateClient(request: ibc.core.client.v1.IMsgUpdateClient, callback: ibc.core.client.v1.Msg.UpdateClientCallback): void; + constructor(properties?: ibc.core.channel.v1.IQueryUnreceivedAcksResponse); - /** - * Calls UpdateClient. - * @param request MsgUpdateClient message or plain object - * @returns Promise - */ - public updateClient(request: ibc.core.client.v1.IMsgUpdateClient): Promise; + /** QueryUnreceivedAcksResponse sequences. */ + public sequences: Long[]; + + /** QueryUnreceivedAcksResponse height. */ + public height?: (ibc.core.client.v1.IHeight|null); /** - * Calls UpgradeClient. - * @param request MsgUpgradeClient message or plain object - * @param callback Node-style callback called with the error, if any, and MsgUpgradeClientResponse + * Encodes the specified QueryUnreceivedAcksResponse message. Does not implicitly {@link ibc.core.channel.v1.QueryUnreceivedAcksResponse.verify|verify} messages. + * @param message QueryUnreceivedAcksResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public upgradeClient(request: ibc.core.client.v1.IMsgUpgradeClient, callback: ibc.core.client.v1.Msg.UpgradeClientCallback): void; + public static encode(message: ibc.core.channel.v1.IQueryUnreceivedAcksResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls UpgradeClient. - * @param request MsgUpgradeClient message or plain object - * @returns Promise + * Encodes the specified QueryUnreceivedAcksResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryUnreceivedAcksResponse.verify|verify} messages. + * @param message QueryUnreceivedAcksResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public upgradeClient(request: ibc.core.client.v1.IMsgUpgradeClient): Promise; + public static encodeDelimited(message: ibc.core.channel.v1.IQueryUnreceivedAcksResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls SubmitMisbehaviour. - * @param request MsgSubmitMisbehaviour message or plain object - * @param callback Node-style callback called with the error, if any, and MsgSubmitMisbehaviourResponse + * Decodes a QueryUnreceivedAcksResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns QueryUnreceivedAcksResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public submitMisbehaviour(request: ibc.core.client.v1.IMsgSubmitMisbehaviour, callback: ibc.core.client.v1.Msg.SubmitMisbehaviourCallback): void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.channel.v1.QueryUnreceivedAcksResponse; /** - * Calls SubmitMisbehaviour. - * @param request MsgSubmitMisbehaviour message or plain object - * @returns Promise + * Decodes a QueryUnreceivedAcksResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns QueryUnreceivedAcksResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public submitMisbehaviour(request: ibc.core.client.v1.IMsgSubmitMisbehaviour): Promise; - } - - namespace Msg { + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.channel.v1.QueryUnreceivedAcksResponse; /** - * Callback as used by {@link ibc.core.client.v1.Msg#createClient}. - * @param error Error, if any - * @param [response] MsgCreateClientResponse + * Verifies a QueryUnreceivedAcksResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - type CreateClientCallback = (error: (Error|null), response?: ibc.core.client.v1.MsgCreateClientResponse) => void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Callback as used by {@link ibc.core.client.v1.Msg#updateClient}. - * @param error Error, if any - * @param [response] MsgUpdateClientResponse + * Creates a QueryUnreceivedAcksResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns QueryUnreceivedAcksResponse */ - type UpdateClientCallback = (error: (Error|null), response?: ibc.core.client.v1.MsgUpdateClientResponse) => void; + public static fromObject(object: { [k: string]: any }): ibc.core.channel.v1.QueryUnreceivedAcksResponse; /** - * Callback as used by {@link ibc.core.client.v1.Msg#upgradeClient}. - * @param error Error, if any - * @param [response] MsgUpgradeClientResponse + * Creates a plain object from a QueryUnreceivedAcksResponse message. Also converts values to other types if specified. + * @param message QueryUnreceivedAcksResponse + * @param [options] Conversion options + * @returns Plain object */ - type UpgradeClientCallback = (error: (Error|null), response?: ibc.core.client.v1.MsgUpgradeClientResponse) => void; + public static toObject(message: ibc.core.channel.v1.QueryUnreceivedAcksResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Callback as used by {@link ibc.core.client.v1.Msg#submitMisbehaviour}. - * @param error Error, if any - * @param [response] MsgSubmitMisbehaviourResponse + * Converts this QueryUnreceivedAcksResponse to JSON. + * @returns JSON object */ - type SubmitMisbehaviourCallback = (error: (Error|null), response?: ibc.core.client.v1.MsgSubmitMisbehaviourResponse) => void; + public toJSON(): { [k: string]: any }; } - /** Properties of a MsgCreateClient. */ - interface IMsgCreateClient { - - /** MsgCreateClient client_state */ - client_state?: (google.protobuf.IAny|null); + /** Properties of a QueryNextSequenceReceiveRequest. */ + interface IQueryNextSequenceReceiveRequest { - /** MsgCreateClient consensus_state */ - consensus_state?: (google.protobuf.IAny|null); + /** QueryNextSequenceReceiveRequest port_id */ + port_id?: (string|null); - /** MsgCreateClient signer */ - signer?: (string|null); + /** QueryNextSequenceReceiveRequest channel_id */ + channel_id?: (string|null); } - /** Represents a MsgCreateClient. */ - class MsgCreateClient implements IMsgCreateClient { + /** Represents a QueryNextSequenceReceiveRequest. */ + class QueryNextSequenceReceiveRequest implements IQueryNextSequenceReceiveRequest { /** - * Constructs a new MsgCreateClient. + * Constructs a new QueryNextSequenceReceiveRequest. * @param [properties] Properties to set */ - constructor(properties?: ibc.core.client.v1.IMsgCreateClient); - - /** MsgCreateClient client_state. */ - public client_state?: (google.protobuf.IAny|null); + constructor(properties?: ibc.core.channel.v1.IQueryNextSequenceReceiveRequest); - /** MsgCreateClient consensus_state. */ - public consensus_state?: (google.protobuf.IAny|null); + /** QueryNextSequenceReceiveRequest port_id. */ + public port_id: string; - /** MsgCreateClient signer. */ - public signer: string; + /** QueryNextSequenceReceiveRequest channel_id. */ + public channel_id: string; /** - * Encodes the specified MsgCreateClient message. Does not implicitly {@link ibc.core.client.v1.MsgCreateClient.verify|verify} messages. - * @param message MsgCreateClient message or plain object to encode + * Encodes the specified QueryNextSequenceReceiveRequest message. Does not implicitly {@link ibc.core.channel.v1.QueryNextSequenceReceiveRequest.verify|verify} messages. + * @param message QueryNextSequenceReceiveRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.core.client.v1.IMsgCreateClient, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.core.channel.v1.IQueryNextSequenceReceiveRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MsgCreateClient message, length delimited. Does not implicitly {@link ibc.core.client.v1.MsgCreateClient.verify|verify} messages. - * @param message MsgCreateClient message or plain object to encode + * Encodes the specified QueryNextSequenceReceiveRequest message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryNextSequenceReceiveRequest.verify|verify} messages. + * @param message QueryNextSequenceReceiveRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.core.client.v1.IMsgCreateClient, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.core.channel.v1.IQueryNextSequenceReceiveRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MsgCreateClient message from the specified reader or buffer. + * Decodes a QueryNextSequenceReceiveRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MsgCreateClient + * @returns QueryNextSequenceReceiveRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.client.v1.MsgCreateClient; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.channel.v1.QueryNextSequenceReceiveRequest; /** - * Decodes a MsgCreateClient message from the specified reader or buffer, length delimited. + * Decodes a QueryNextSequenceReceiveRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MsgCreateClient + * @returns QueryNextSequenceReceiveRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.client.v1.MsgCreateClient; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.channel.v1.QueryNextSequenceReceiveRequest; /** - * Verifies a MsgCreateClient message. + * Verifies a QueryNextSequenceReceiveRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a MsgCreateClient message from a plain object. Also converts values to their respective internal types. + * Creates a QueryNextSequenceReceiveRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MsgCreateClient + * @returns QueryNextSequenceReceiveRequest */ - public static fromObject(object: { [k: string]: any }): ibc.core.client.v1.MsgCreateClient; + public static fromObject(object: { [k: string]: any }): ibc.core.channel.v1.QueryNextSequenceReceiveRequest; /** - * Creates a plain object from a MsgCreateClient message. Also converts values to other types if specified. - * @param message MsgCreateClient + * Creates a plain object from a QueryNextSequenceReceiveRequest message. Also converts values to other types if specified. + * @param message QueryNextSequenceReceiveRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.core.client.v1.MsgCreateClient, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.core.channel.v1.QueryNextSequenceReceiveRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MsgCreateClient to JSON. + * Converts this QueryNextSequenceReceiveRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a MsgCreateClientResponse. */ - interface IMsgCreateClientResponse { + /** Properties of a QueryNextSequenceReceiveResponse. */ + interface IQueryNextSequenceReceiveResponse { + + /** QueryNextSequenceReceiveResponse next_sequence_receive */ + next_sequence_receive?: (Long|null); + + /** QueryNextSequenceReceiveResponse proof */ + proof?: (Uint8Array|null); + + /** QueryNextSequenceReceiveResponse proof_height */ + proof_height?: (ibc.core.client.v1.IHeight|null); } - /** Represents a MsgCreateClientResponse. */ - class MsgCreateClientResponse implements IMsgCreateClientResponse { + /** Represents a QueryNextSequenceReceiveResponse. */ + class QueryNextSequenceReceiveResponse implements IQueryNextSequenceReceiveResponse { /** - * Constructs a new MsgCreateClientResponse. + * Constructs a new QueryNextSequenceReceiveResponse. * @param [properties] Properties to set */ - constructor(properties?: ibc.core.client.v1.IMsgCreateClientResponse); + constructor(properties?: ibc.core.channel.v1.IQueryNextSequenceReceiveResponse); + + /** QueryNextSequenceReceiveResponse next_sequence_receive. */ + public next_sequence_receive: Long; + + /** QueryNextSequenceReceiveResponse proof. */ + public proof: Uint8Array; + + /** QueryNextSequenceReceiveResponse proof_height. */ + public proof_height?: (ibc.core.client.v1.IHeight|null); /** - * Encodes the specified MsgCreateClientResponse message. Does not implicitly {@link ibc.core.client.v1.MsgCreateClientResponse.verify|verify} messages. - * @param message MsgCreateClientResponse message or plain object to encode + * Encodes the specified QueryNextSequenceReceiveResponse message. Does not implicitly {@link ibc.core.channel.v1.QueryNextSequenceReceiveResponse.verify|verify} messages. + * @param message QueryNextSequenceReceiveResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.core.client.v1.IMsgCreateClientResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.core.channel.v1.IQueryNextSequenceReceiveResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MsgCreateClientResponse message, length delimited. Does not implicitly {@link ibc.core.client.v1.MsgCreateClientResponse.verify|verify} messages. - * @param message MsgCreateClientResponse message or plain object to encode + * Encodes the specified QueryNextSequenceReceiveResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryNextSequenceReceiveResponse.verify|verify} messages. + * @param message QueryNextSequenceReceiveResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.core.client.v1.IMsgCreateClientResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.core.channel.v1.IQueryNextSequenceReceiveResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MsgCreateClientResponse message from the specified reader or buffer. + * Decodes a QueryNextSequenceReceiveResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MsgCreateClientResponse + * @returns QueryNextSequenceReceiveResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.client.v1.MsgCreateClientResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.channel.v1.QueryNextSequenceReceiveResponse; /** - * Decodes a MsgCreateClientResponse message from the specified reader or buffer, length delimited. + * Decodes a QueryNextSequenceReceiveResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MsgCreateClientResponse + * @returns QueryNextSequenceReceiveResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.client.v1.MsgCreateClientResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.channel.v1.QueryNextSequenceReceiveResponse; /** - * Verifies a MsgCreateClientResponse message. + * Verifies a QueryNextSequenceReceiveResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a MsgCreateClientResponse message from a plain object. Also converts values to their respective internal types. + * Creates a QueryNextSequenceReceiveResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MsgCreateClientResponse + * @returns QueryNextSequenceReceiveResponse */ - public static fromObject(object: { [k: string]: any }): ibc.core.client.v1.MsgCreateClientResponse; + public static fromObject(object: { [k: string]: any }): ibc.core.channel.v1.QueryNextSequenceReceiveResponse; /** - * Creates a plain object from a MsgCreateClientResponse message. Also converts values to other types if specified. - * @param message MsgCreateClientResponse + * Creates a plain object from a QueryNextSequenceReceiveResponse message. Also converts values to other types if specified. + * @param message QueryNextSequenceReceiveResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.core.client.v1.MsgCreateClientResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.core.channel.v1.QueryNextSequenceReceiveResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MsgCreateClientResponse to JSON. + * Converts this QueryNextSequenceReceiveResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a MsgUpdateClient. */ - interface IMsgUpdateClient { + /** Properties of a GenesisState. */ + interface IGenesisState { - /** MsgUpdateClient client_id */ - client_id?: (string|null); + /** GenesisState channels */ + channels?: (ibc.core.channel.v1.IIdentifiedChannel[]|null); - /** MsgUpdateClient header */ - header?: (google.protobuf.IAny|null); + /** GenesisState acknowledgements */ + acknowledgements?: (ibc.core.channel.v1.IPacketState[]|null); - /** MsgUpdateClient signer */ - signer?: (string|null); + /** GenesisState commitments */ + commitments?: (ibc.core.channel.v1.IPacketState[]|null); + + /** GenesisState receipts */ + receipts?: (ibc.core.channel.v1.IPacketState[]|null); + + /** GenesisState send_sequences */ + send_sequences?: (ibc.core.channel.v1.IPacketSequence[]|null); + + /** GenesisState recv_sequences */ + recv_sequences?: (ibc.core.channel.v1.IPacketSequence[]|null); + + /** GenesisState ack_sequences */ + ack_sequences?: (ibc.core.channel.v1.IPacketSequence[]|null); + + /** GenesisState next_channel_sequence */ + next_channel_sequence?: (Long|null); } - /** Represents a MsgUpdateClient. */ - class MsgUpdateClient implements IMsgUpdateClient { + /** Represents a GenesisState. */ + class GenesisState implements IGenesisState { /** - * Constructs a new MsgUpdateClient. + * Constructs a new GenesisState. * @param [properties] Properties to set */ - constructor(properties?: ibc.core.client.v1.IMsgUpdateClient); + constructor(properties?: ibc.core.channel.v1.IGenesisState); - /** MsgUpdateClient client_id. */ - public client_id: string; + /** GenesisState channels. */ + public channels: ibc.core.channel.v1.IIdentifiedChannel[]; + + /** GenesisState acknowledgements. */ + public acknowledgements: ibc.core.channel.v1.IPacketState[]; - /** MsgUpdateClient header. */ - public header?: (google.protobuf.IAny|null); + /** GenesisState commitments. */ + public commitments: ibc.core.channel.v1.IPacketState[]; - /** MsgUpdateClient signer. */ - public signer: string; + /** GenesisState receipts. */ + public receipts: ibc.core.channel.v1.IPacketState[]; + + /** GenesisState send_sequences. */ + public send_sequences: ibc.core.channel.v1.IPacketSequence[]; + + /** GenesisState recv_sequences. */ + public recv_sequences: ibc.core.channel.v1.IPacketSequence[]; + + /** GenesisState ack_sequences. */ + public ack_sequences: ibc.core.channel.v1.IPacketSequence[]; + + /** GenesisState next_channel_sequence. */ + public next_channel_sequence: Long; /** - * Encodes the specified MsgUpdateClient message. Does not implicitly {@link ibc.core.client.v1.MsgUpdateClient.verify|verify} messages. - * @param message MsgUpdateClient message or plain object to encode + * Encodes the specified GenesisState message. Does not implicitly {@link ibc.core.channel.v1.GenesisState.verify|verify} messages. + * @param message GenesisState message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.core.client.v1.IMsgUpdateClient, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.core.channel.v1.IGenesisState, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MsgUpdateClient message, length delimited. Does not implicitly {@link ibc.core.client.v1.MsgUpdateClient.verify|verify} messages. - * @param message MsgUpdateClient message or plain object to encode + * Encodes the specified GenesisState message, length delimited. Does not implicitly {@link ibc.core.channel.v1.GenesisState.verify|verify} messages. + * @param message GenesisState message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.core.client.v1.IMsgUpdateClient, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.core.channel.v1.IGenesisState, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MsgUpdateClient message from the specified reader or buffer. + * Decodes a GenesisState message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MsgUpdateClient + * @returns GenesisState * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.client.v1.MsgUpdateClient; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.channel.v1.GenesisState; /** - * Decodes a MsgUpdateClient message from the specified reader or buffer, length delimited. + * Decodes a GenesisState message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MsgUpdateClient + * @returns GenesisState * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.client.v1.MsgUpdateClient; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.channel.v1.GenesisState; /** - * Verifies a MsgUpdateClient message. + * Verifies a GenesisState message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a MsgUpdateClient message from a plain object. Also converts values to their respective internal types. + * Creates a GenesisState message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MsgUpdateClient + * @returns GenesisState */ - public static fromObject(object: { [k: string]: any }): ibc.core.client.v1.MsgUpdateClient; + public static fromObject(object: { [k: string]: any }): ibc.core.channel.v1.GenesisState; /** - * Creates a plain object from a MsgUpdateClient message. Also converts values to other types if specified. - * @param message MsgUpdateClient + * Creates a plain object from a GenesisState message. Also converts values to other types if specified. + * @param message GenesisState * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.core.client.v1.MsgUpdateClient, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.core.channel.v1.GenesisState, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MsgUpdateClient to JSON. + * Converts this GenesisState to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a MsgUpdateClientResponse. */ - interface IMsgUpdateClientResponse { + /** Properties of a PacketSequence. */ + interface IPacketSequence { + + /** PacketSequence port_id */ + port_id?: (string|null); + + /** PacketSequence channel_id */ + channel_id?: (string|null); + + /** PacketSequence sequence */ + sequence?: (Long|null); } - /** Represents a MsgUpdateClientResponse. */ - class MsgUpdateClientResponse implements IMsgUpdateClientResponse { + /** Represents a PacketSequence. */ + class PacketSequence implements IPacketSequence { /** - * Constructs a new MsgUpdateClientResponse. + * Constructs a new PacketSequence. * @param [properties] Properties to set */ - constructor(properties?: ibc.core.client.v1.IMsgUpdateClientResponse); + constructor(properties?: ibc.core.channel.v1.IPacketSequence); + + /** PacketSequence port_id. */ + public port_id: string; + + /** PacketSequence channel_id. */ + public channel_id: string; + + /** PacketSequence sequence. */ + public sequence: Long; /** - * Encodes the specified MsgUpdateClientResponse message. Does not implicitly {@link ibc.core.client.v1.MsgUpdateClientResponse.verify|verify} messages. - * @param message MsgUpdateClientResponse message or plain object to encode + * Encodes the specified PacketSequence message. Does not implicitly {@link ibc.core.channel.v1.PacketSequence.verify|verify} messages. + * @param message PacketSequence message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.core.client.v1.IMsgUpdateClientResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.core.channel.v1.IPacketSequence, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MsgUpdateClientResponse message, length delimited. Does not implicitly {@link ibc.core.client.v1.MsgUpdateClientResponse.verify|verify} messages. - * @param message MsgUpdateClientResponse message or plain object to encode + * Encodes the specified PacketSequence message, length delimited. Does not implicitly {@link ibc.core.channel.v1.PacketSequence.verify|verify} messages. + * @param message PacketSequence message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.core.client.v1.IMsgUpdateClientResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.core.channel.v1.IPacketSequence, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MsgUpdateClientResponse message from the specified reader or buffer. + * Decodes a PacketSequence message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MsgUpdateClientResponse + * @returns PacketSequence * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.client.v1.MsgUpdateClientResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.channel.v1.PacketSequence; /** - * Decodes a MsgUpdateClientResponse message from the specified reader or buffer, length delimited. + * Decodes a PacketSequence message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MsgUpdateClientResponse + * @returns PacketSequence * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.client.v1.MsgUpdateClientResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.channel.v1.PacketSequence; /** - * Verifies a MsgUpdateClientResponse message. + * Verifies a PacketSequence message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a MsgUpdateClientResponse message from a plain object. Also converts values to their respective internal types. + * Creates a PacketSequence message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MsgUpdateClientResponse + * @returns PacketSequence */ - public static fromObject(object: { [k: string]: any }): ibc.core.client.v1.MsgUpdateClientResponse; + public static fromObject(object: { [k: string]: any }): ibc.core.channel.v1.PacketSequence; /** - * Creates a plain object from a MsgUpdateClientResponse message. Also converts values to other types if specified. - * @param message MsgUpdateClientResponse + * Creates a plain object from a PacketSequence message. Also converts values to other types if specified. + * @param message PacketSequence * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.core.client.v1.MsgUpdateClientResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.core.channel.v1.PacketSequence, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MsgUpdateClientResponse to JSON. + * Converts this PacketSequence to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } + } + } - /** Properties of a MsgUpgradeClient. */ - interface IMsgUpgradeClient { - - /** MsgUpgradeClient client_id */ - client_id?: (string|null); - - /** MsgUpgradeClient client_state */ - client_state?: (google.protobuf.IAny|null); + /** Namespace client. */ + namespace client { - /** MsgUpgradeClient consensus_state */ - consensus_state?: (google.protobuf.IAny|null); + /** Namespace v1. */ + namespace v1 { - /** MsgUpgradeClient proof_upgrade_client */ - proof_upgrade_client?: (Uint8Array|null); + /** Properties of an IdentifiedClientState. */ + interface IIdentifiedClientState { - /** MsgUpgradeClient proof_upgrade_consensus_state */ - proof_upgrade_consensus_state?: (Uint8Array|null); + /** IdentifiedClientState client_id */ + client_id?: (string|null); - /** MsgUpgradeClient signer */ - signer?: (string|null); + /** IdentifiedClientState client_state */ + client_state?: (google.protobuf.IAny|null); } - /** Represents a MsgUpgradeClient. */ - class MsgUpgradeClient implements IMsgUpgradeClient { + /** Represents an IdentifiedClientState. */ + class IdentifiedClientState implements IIdentifiedClientState { /** - * Constructs a new MsgUpgradeClient. + * Constructs a new IdentifiedClientState. * @param [properties] Properties to set */ - constructor(properties?: ibc.core.client.v1.IMsgUpgradeClient); + constructor(properties?: ibc.core.client.v1.IIdentifiedClientState); - /** MsgUpgradeClient client_id. */ + /** IdentifiedClientState client_id. */ public client_id: string; - /** MsgUpgradeClient client_state. */ + /** IdentifiedClientState client_state. */ public client_state?: (google.protobuf.IAny|null); - /** MsgUpgradeClient consensus_state. */ - public consensus_state?: (google.protobuf.IAny|null); - - /** MsgUpgradeClient proof_upgrade_client. */ - public proof_upgrade_client: Uint8Array; - - /** MsgUpgradeClient proof_upgrade_consensus_state. */ - public proof_upgrade_consensus_state: Uint8Array; - - /** MsgUpgradeClient signer. */ - public signer: string; - /** - * Encodes the specified MsgUpgradeClient message. Does not implicitly {@link ibc.core.client.v1.MsgUpgradeClient.verify|verify} messages. - * @param message MsgUpgradeClient message or plain object to encode + * Encodes the specified IdentifiedClientState message. Does not implicitly {@link ibc.core.client.v1.IdentifiedClientState.verify|verify} messages. + * @param message IdentifiedClientState message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.core.client.v1.IMsgUpgradeClient, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.core.client.v1.IIdentifiedClientState, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MsgUpgradeClient message, length delimited. Does not implicitly {@link ibc.core.client.v1.MsgUpgradeClient.verify|verify} messages. - * @param message MsgUpgradeClient message or plain object to encode + * Encodes the specified IdentifiedClientState message, length delimited. Does not implicitly {@link ibc.core.client.v1.IdentifiedClientState.verify|verify} messages. + * @param message IdentifiedClientState message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.core.client.v1.IMsgUpgradeClient, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.core.client.v1.IIdentifiedClientState, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MsgUpgradeClient message from the specified reader or buffer. + * Decodes an IdentifiedClientState message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MsgUpgradeClient + * @returns IdentifiedClientState * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.client.v1.MsgUpgradeClient; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.client.v1.IdentifiedClientState; /** - * Decodes a MsgUpgradeClient message from the specified reader or buffer, length delimited. + * Decodes an IdentifiedClientState message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MsgUpgradeClient + * @returns IdentifiedClientState * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.client.v1.MsgUpgradeClient; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.client.v1.IdentifiedClientState; /** - * Verifies a MsgUpgradeClient message. + * Verifies an IdentifiedClientState message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a MsgUpgradeClient message from a plain object. Also converts values to their respective internal types. + * Creates an IdentifiedClientState message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MsgUpgradeClient + * @returns IdentifiedClientState */ - public static fromObject(object: { [k: string]: any }): ibc.core.client.v1.MsgUpgradeClient; + public static fromObject(object: { [k: string]: any }): ibc.core.client.v1.IdentifiedClientState; /** - * Creates a plain object from a MsgUpgradeClient message. Also converts values to other types if specified. - * @param message MsgUpgradeClient + * Creates a plain object from an IdentifiedClientState message. Also converts values to other types if specified. + * @param message IdentifiedClientState * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.core.client.v1.MsgUpgradeClient, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.core.client.v1.IdentifiedClientState, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MsgUpgradeClient to JSON. + * Converts this IdentifiedClientState to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a MsgUpgradeClientResponse. */ - interface IMsgUpgradeClientResponse { + /** Properties of a ConsensusStateWithHeight. */ + interface IConsensusStateWithHeight { + + /** ConsensusStateWithHeight height */ + height?: (ibc.core.client.v1.IHeight|null); + + /** ConsensusStateWithHeight consensus_state */ + consensus_state?: (google.protobuf.IAny|null); } - /** Represents a MsgUpgradeClientResponse. */ - class MsgUpgradeClientResponse implements IMsgUpgradeClientResponse { + /** Represents a ConsensusStateWithHeight. */ + class ConsensusStateWithHeight implements IConsensusStateWithHeight { /** - * Constructs a new MsgUpgradeClientResponse. + * Constructs a new ConsensusStateWithHeight. * @param [properties] Properties to set */ - constructor(properties?: ibc.core.client.v1.IMsgUpgradeClientResponse); + constructor(properties?: ibc.core.client.v1.IConsensusStateWithHeight); + + /** ConsensusStateWithHeight height. */ + public height?: (ibc.core.client.v1.IHeight|null); + + /** ConsensusStateWithHeight consensus_state. */ + public consensus_state?: (google.protobuf.IAny|null); /** - * Encodes the specified MsgUpgradeClientResponse message. Does not implicitly {@link ibc.core.client.v1.MsgUpgradeClientResponse.verify|verify} messages. - * @param message MsgUpgradeClientResponse message or plain object to encode + * Encodes the specified ConsensusStateWithHeight message. Does not implicitly {@link ibc.core.client.v1.ConsensusStateWithHeight.verify|verify} messages. + * @param message ConsensusStateWithHeight message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.core.client.v1.IMsgUpgradeClientResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.core.client.v1.IConsensusStateWithHeight, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MsgUpgradeClientResponse message, length delimited. Does not implicitly {@link ibc.core.client.v1.MsgUpgradeClientResponse.verify|verify} messages. - * @param message MsgUpgradeClientResponse message or plain object to encode + * Encodes the specified ConsensusStateWithHeight message, length delimited. Does not implicitly {@link ibc.core.client.v1.ConsensusStateWithHeight.verify|verify} messages. + * @param message ConsensusStateWithHeight message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.core.client.v1.IMsgUpgradeClientResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.core.client.v1.IConsensusStateWithHeight, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MsgUpgradeClientResponse message from the specified reader or buffer. + * Decodes a ConsensusStateWithHeight message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MsgUpgradeClientResponse + * @returns ConsensusStateWithHeight * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.client.v1.MsgUpgradeClientResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.client.v1.ConsensusStateWithHeight; /** - * Decodes a MsgUpgradeClientResponse message from the specified reader or buffer, length delimited. + * Decodes a ConsensusStateWithHeight message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MsgUpgradeClientResponse + * @returns ConsensusStateWithHeight * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.client.v1.MsgUpgradeClientResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.client.v1.ConsensusStateWithHeight; /** - * Verifies a MsgUpgradeClientResponse message. + * Verifies a ConsensusStateWithHeight message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a MsgUpgradeClientResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ConsensusStateWithHeight message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MsgUpgradeClientResponse + * @returns ConsensusStateWithHeight */ - public static fromObject(object: { [k: string]: any }): ibc.core.client.v1.MsgUpgradeClientResponse; + public static fromObject(object: { [k: string]: any }): ibc.core.client.v1.ConsensusStateWithHeight; /** - * Creates a plain object from a MsgUpgradeClientResponse message. Also converts values to other types if specified. - * @param message MsgUpgradeClientResponse + * Creates a plain object from a ConsensusStateWithHeight message. Also converts values to other types if specified. + * @param message ConsensusStateWithHeight * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.core.client.v1.MsgUpgradeClientResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.core.client.v1.ConsensusStateWithHeight, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MsgUpgradeClientResponse to JSON. + * Converts this ConsensusStateWithHeight to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a MsgSubmitMisbehaviour. */ - interface IMsgSubmitMisbehaviour { + /** Properties of a ClientConsensusStates. */ + interface IClientConsensusStates { - /** MsgSubmitMisbehaviour client_id */ + /** ClientConsensusStates client_id */ client_id?: (string|null); - /** MsgSubmitMisbehaviour misbehaviour */ - misbehaviour?: (google.protobuf.IAny|null); - - /** MsgSubmitMisbehaviour signer */ - signer?: (string|null); + /** ClientConsensusStates consensus_states */ + consensus_states?: (ibc.core.client.v1.IConsensusStateWithHeight[]|null); } - /** Represents a MsgSubmitMisbehaviour. */ - class MsgSubmitMisbehaviour implements IMsgSubmitMisbehaviour { + /** Represents a ClientConsensusStates. */ + class ClientConsensusStates implements IClientConsensusStates { /** - * Constructs a new MsgSubmitMisbehaviour. + * Constructs a new ClientConsensusStates. * @param [properties] Properties to set */ - constructor(properties?: ibc.core.client.v1.IMsgSubmitMisbehaviour); + constructor(properties?: ibc.core.client.v1.IClientConsensusStates); - /** MsgSubmitMisbehaviour client_id. */ + /** ClientConsensusStates client_id. */ public client_id: string; - /** MsgSubmitMisbehaviour misbehaviour. */ - public misbehaviour?: (google.protobuf.IAny|null); - - /** MsgSubmitMisbehaviour signer. */ - public signer: string; + /** ClientConsensusStates consensus_states. */ + public consensus_states: ibc.core.client.v1.IConsensusStateWithHeight[]; /** - * Encodes the specified MsgSubmitMisbehaviour message. Does not implicitly {@link ibc.core.client.v1.MsgSubmitMisbehaviour.verify|verify} messages. - * @param message MsgSubmitMisbehaviour message or plain object to encode + * Encodes the specified ClientConsensusStates message. Does not implicitly {@link ibc.core.client.v1.ClientConsensusStates.verify|verify} messages. + * @param message ClientConsensusStates message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.core.client.v1.IMsgSubmitMisbehaviour, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.core.client.v1.IClientConsensusStates, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MsgSubmitMisbehaviour message, length delimited. Does not implicitly {@link ibc.core.client.v1.MsgSubmitMisbehaviour.verify|verify} messages. - * @param message MsgSubmitMisbehaviour message or plain object to encode + * Encodes the specified ClientConsensusStates message, length delimited. Does not implicitly {@link ibc.core.client.v1.ClientConsensusStates.verify|verify} messages. + * @param message ClientConsensusStates message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.core.client.v1.IMsgSubmitMisbehaviour, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.core.client.v1.IClientConsensusStates, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MsgSubmitMisbehaviour message from the specified reader or buffer. + * Decodes a ClientConsensusStates message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MsgSubmitMisbehaviour + * @returns ClientConsensusStates * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.client.v1.MsgSubmitMisbehaviour; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.client.v1.ClientConsensusStates; /** - * Decodes a MsgSubmitMisbehaviour message from the specified reader or buffer, length delimited. + * Decodes a ClientConsensusStates message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MsgSubmitMisbehaviour + * @returns ClientConsensusStates * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.client.v1.MsgSubmitMisbehaviour; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.client.v1.ClientConsensusStates; /** - * Verifies a MsgSubmitMisbehaviour message. + * Verifies a ClientConsensusStates message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a MsgSubmitMisbehaviour message from a plain object. Also converts values to their respective internal types. + * Creates a ClientConsensusStates message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MsgSubmitMisbehaviour + * @returns ClientConsensusStates */ - public static fromObject(object: { [k: string]: any }): ibc.core.client.v1.MsgSubmitMisbehaviour; + public static fromObject(object: { [k: string]: any }): ibc.core.client.v1.ClientConsensusStates; /** - * Creates a plain object from a MsgSubmitMisbehaviour message. Also converts values to other types if specified. - * @param message MsgSubmitMisbehaviour + * Creates a plain object from a ClientConsensusStates message. Also converts values to other types if specified. + * @param message ClientConsensusStates * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.core.client.v1.MsgSubmitMisbehaviour, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.core.client.v1.ClientConsensusStates, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MsgSubmitMisbehaviour to JSON. + * Converts this ClientConsensusStates to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a MsgSubmitMisbehaviourResponse. */ - interface IMsgSubmitMisbehaviourResponse { + /** Properties of a ClientUpdateProposal. */ + interface IClientUpdateProposal { + + /** ClientUpdateProposal title */ + title?: (string|null); + + /** ClientUpdateProposal description */ + description?: (string|null); + + /** ClientUpdateProposal subject_client_id */ + subject_client_id?: (string|null); + + /** ClientUpdateProposal substitute_client_id */ + substitute_client_id?: (string|null); } - /** Represents a MsgSubmitMisbehaviourResponse. */ - class MsgSubmitMisbehaviourResponse implements IMsgSubmitMisbehaviourResponse { + /** Represents a ClientUpdateProposal. */ + class ClientUpdateProposal implements IClientUpdateProposal { /** - * Constructs a new MsgSubmitMisbehaviourResponse. + * Constructs a new ClientUpdateProposal. * @param [properties] Properties to set */ - constructor(properties?: ibc.core.client.v1.IMsgSubmitMisbehaviourResponse); + constructor(properties?: ibc.core.client.v1.IClientUpdateProposal); + + /** ClientUpdateProposal title. */ + public title: string; + + /** ClientUpdateProposal description. */ + public description: string; + + /** ClientUpdateProposal subject_client_id. */ + public subject_client_id: string; + + /** ClientUpdateProposal substitute_client_id. */ + public substitute_client_id: string; /** - * Encodes the specified MsgSubmitMisbehaviourResponse message. Does not implicitly {@link ibc.core.client.v1.MsgSubmitMisbehaviourResponse.verify|verify} messages. - * @param message MsgSubmitMisbehaviourResponse message or plain object to encode + * Encodes the specified ClientUpdateProposal message. Does not implicitly {@link ibc.core.client.v1.ClientUpdateProposal.verify|verify} messages. + * @param message ClientUpdateProposal message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.core.client.v1.IMsgSubmitMisbehaviourResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.core.client.v1.IClientUpdateProposal, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MsgSubmitMisbehaviourResponse message, length delimited. Does not implicitly {@link ibc.core.client.v1.MsgSubmitMisbehaviourResponse.verify|verify} messages. - * @param message MsgSubmitMisbehaviourResponse message or plain object to encode + * Encodes the specified ClientUpdateProposal message, length delimited. Does not implicitly {@link ibc.core.client.v1.ClientUpdateProposal.verify|verify} messages. + * @param message ClientUpdateProposal message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.core.client.v1.IMsgSubmitMisbehaviourResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.core.client.v1.IClientUpdateProposal, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MsgSubmitMisbehaviourResponse message from the specified reader or buffer. + * Decodes a ClientUpdateProposal message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MsgSubmitMisbehaviourResponse + * @returns ClientUpdateProposal * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.client.v1.MsgSubmitMisbehaviourResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.client.v1.ClientUpdateProposal; /** - * Decodes a MsgSubmitMisbehaviourResponse message from the specified reader or buffer, length delimited. + * Decodes a ClientUpdateProposal message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MsgSubmitMisbehaviourResponse + * @returns ClientUpdateProposal * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.client.v1.MsgSubmitMisbehaviourResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.client.v1.ClientUpdateProposal; /** - * Verifies a MsgSubmitMisbehaviourResponse message. + * Verifies a ClientUpdateProposal message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a MsgSubmitMisbehaviourResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ClientUpdateProposal message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MsgSubmitMisbehaviourResponse + * @returns ClientUpdateProposal */ - public static fromObject(object: { [k: string]: any }): ibc.core.client.v1.MsgSubmitMisbehaviourResponse; + public static fromObject(object: { [k: string]: any }): ibc.core.client.v1.ClientUpdateProposal; /** - * Creates a plain object from a MsgSubmitMisbehaviourResponse message. Also converts values to other types if specified. - * @param message MsgSubmitMisbehaviourResponse + * Creates a plain object from a ClientUpdateProposal message. Also converts values to other types if specified. + * @param message ClientUpdateProposal * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.core.client.v1.MsgSubmitMisbehaviourResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.core.client.v1.ClientUpdateProposal, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MsgSubmitMisbehaviourResponse to JSON. + * Converts this ClientUpdateProposal to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Represents a Query */ - class Query extends $protobuf.rpc.Service { + /** Properties of an UpgradeProposal. */ + interface IUpgradeProposal { - /** - * Constructs a new Query service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + /** UpgradeProposal title */ + title?: (string|null); - /** - * Calls ClientState. - * @param request QueryClientStateRequest message or plain object - * @param callback Node-style callback called with the error, if any, and QueryClientStateResponse - */ - public clientState(request: ibc.core.client.v1.IQueryClientStateRequest, callback: ibc.core.client.v1.Query.ClientStateCallback): void; + /** UpgradeProposal description */ + description?: (string|null); - /** - * Calls ClientState. - * @param request QueryClientStateRequest message or plain object - * @returns Promise - */ - public clientState(request: ibc.core.client.v1.IQueryClientStateRequest): Promise; + /** UpgradeProposal plan */ + plan?: (cosmos.upgrade.v1beta1.IPlan|null); - /** - * Calls ClientStates. - * @param request QueryClientStatesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and QueryClientStatesResponse - */ - public clientStates(request: ibc.core.client.v1.IQueryClientStatesRequest, callback: ibc.core.client.v1.Query.ClientStatesCallback): void; + /** UpgradeProposal upgraded_client_state */ + upgraded_client_state?: (google.protobuf.IAny|null); + } - /** - * Calls ClientStates. - * @param request QueryClientStatesRequest message or plain object - * @returns Promise - */ - public clientStates(request: ibc.core.client.v1.IQueryClientStatesRequest): Promise; + /** Represents an UpgradeProposal. */ + class UpgradeProposal implements IUpgradeProposal { /** - * Calls ConsensusState. - * @param request QueryConsensusStateRequest message or plain object - * @param callback Node-style callback called with the error, if any, and QueryConsensusStateResponse + * Constructs a new UpgradeProposal. + * @param [properties] Properties to set */ - public consensusState(request: ibc.core.client.v1.IQueryConsensusStateRequest, callback: ibc.core.client.v1.Query.ConsensusStateCallback): void; + constructor(properties?: ibc.core.client.v1.IUpgradeProposal); - /** - * Calls ConsensusState. - * @param request QueryConsensusStateRequest message or plain object - * @returns Promise - */ - public consensusState(request: ibc.core.client.v1.IQueryConsensusStateRequest): Promise; + /** UpgradeProposal title. */ + public title: string; - /** - * Calls ConsensusStates. - * @param request QueryConsensusStatesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and QueryConsensusStatesResponse - */ - public consensusStates(request: ibc.core.client.v1.IQueryConsensusStatesRequest, callback: ibc.core.client.v1.Query.ConsensusStatesCallback): void; + /** UpgradeProposal description. */ + public description: string; - /** - * Calls ConsensusStates. - * @param request QueryConsensusStatesRequest message or plain object - * @returns Promise - */ - public consensusStates(request: ibc.core.client.v1.IQueryConsensusStatesRequest): Promise; + /** UpgradeProposal plan. */ + public plan?: (cosmos.upgrade.v1beta1.IPlan|null); - /** - * Calls ConsensusStateHeights. - * @param request QueryConsensusStateHeightsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and QueryConsensusStateHeightsResponse - */ - public consensusStateHeights(request: ibc.core.client.v1.IQueryConsensusStateHeightsRequest, callback: ibc.core.client.v1.Query.ConsensusStateHeightsCallback): void; + /** UpgradeProposal upgraded_client_state. */ + public upgraded_client_state?: (google.protobuf.IAny|null); /** - * Calls ConsensusStateHeights. - * @param request QueryConsensusStateHeightsRequest message or plain object - * @returns Promise + * Encodes the specified UpgradeProposal message. Does not implicitly {@link ibc.core.client.v1.UpgradeProposal.verify|verify} messages. + * @param message UpgradeProposal message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public consensusStateHeights(request: ibc.core.client.v1.IQueryConsensusStateHeightsRequest): Promise; + public static encode(message: ibc.core.client.v1.IUpgradeProposal, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls ClientStatus. - * @param request QueryClientStatusRequest message or plain object - * @param callback Node-style callback called with the error, if any, and QueryClientStatusResponse + * Encodes the specified UpgradeProposal message, length delimited. Does not implicitly {@link ibc.core.client.v1.UpgradeProposal.verify|verify} messages. + * @param message UpgradeProposal message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public clientStatus(request: ibc.core.client.v1.IQueryClientStatusRequest, callback: ibc.core.client.v1.Query.ClientStatusCallback): void; + public static encodeDelimited(message: ibc.core.client.v1.IUpgradeProposal, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls ClientStatus. - * @param request QueryClientStatusRequest message or plain object - * @returns Promise + * Decodes an UpgradeProposal message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpgradeProposal + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public clientStatus(request: ibc.core.client.v1.IQueryClientStatusRequest): Promise; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.client.v1.UpgradeProposal; /** - * Calls ClientParams. - * @param request QueryClientParamsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and QueryClientParamsResponse + * Decodes an UpgradeProposal message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpgradeProposal + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public clientParams(request: ibc.core.client.v1.IQueryClientParamsRequest, callback: ibc.core.client.v1.Query.ClientParamsCallback): void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.client.v1.UpgradeProposal; /** - * Calls ClientParams. - * @param request QueryClientParamsRequest message or plain object - * @returns Promise + * Verifies an UpgradeProposal message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public clientParams(request: ibc.core.client.v1.IQueryClientParamsRequest): Promise; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls UpgradedClientState. - * @param request QueryUpgradedClientStateRequest message or plain object - * @param callback Node-style callback called with the error, if any, and QueryUpgradedClientStateResponse + * Creates an UpgradeProposal message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpgradeProposal */ - public upgradedClientState(request: ibc.core.client.v1.IQueryUpgradedClientStateRequest, callback: ibc.core.client.v1.Query.UpgradedClientStateCallback): void; + public static fromObject(object: { [k: string]: any }): ibc.core.client.v1.UpgradeProposal; /** - * Calls UpgradedClientState. - * @param request QueryUpgradedClientStateRequest message or plain object - * @returns Promise + * Creates a plain object from an UpgradeProposal message. Also converts values to other types if specified. + * @param message UpgradeProposal + * @param [options] Conversion options + * @returns Plain object */ - public upgradedClientState(request: ibc.core.client.v1.IQueryUpgradedClientStateRequest): Promise; + public static toObject(message: ibc.core.client.v1.UpgradeProposal, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls UpgradedConsensusState. - * @param request QueryUpgradedConsensusStateRequest message or plain object - * @param callback Node-style callback called with the error, if any, and QueryUpgradedConsensusStateResponse + * Converts this UpgradeProposal to JSON. + * @returns JSON object */ - public upgradedConsensusState(request: ibc.core.client.v1.IQueryUpgradedConsensusStateRequest, callback: ibc.core.client.v1.Query.UpgradedConsensusStateCallback): void; + public toJSON(): { [k: string]: any }; + } - /** - * Calls UpgradedConsensusState. - * @param request QueryUpgradedConsensusStateRequest message or plain object - * @returns Promise - */ - public upgradedConsensusState(request: ibc.core.client.v1.IQueryUpgradedConsensusStateRequest): Promise; + /** Properties of an Height. */ + interface IHeight { + + /** Height revision_number */ + revision_number?: (Long|null); + + /** Height revision_height */ + revision_height?: (Long|null); } - namespace Query { + /** Represents an Height. */ + class Height implements IHeight { /** - * Callback as used by {@link ibc.core.client.v1.Query#clientState}. - * @param error Error, if any - * @param [response] QueryClientStateResponse + * Constructs a new Height. + * @param [properties] Properties to set */ - type ClientStateCallback = (error: (Error|null), response?: ibc.core.client.v1.QueryClientStateResponse) => void; + constructor(properties?: ibc.core.client.v1.IHeight); + + /** Height revision_number. */ + public revision_number: Long; + + /** Height revision_height. */ + public revision_height: Long; /** - * Callback as used by {@link ibc.core.client.v1.Query#clientStates}. - * @param error Error, if any - * @param [response] QueryClientStatesResponse + * Encodes the specified Height message. Does not implicitly {@link ibc.core.client.v1.Height.verify|verify} messages. + * @param message Height message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - type ClientStatesCallback = (error: (Error|null), response?: ibc.core.client.v1.QueryClientStatesResponse) => void; + public static encode(message: ibc.core.client.v1.IHeight, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link ibc.core.client.v1.Query#consensusState}. - * @param error Error, if any - * @param [response] QueryConsensusStateResponse + * Encodes the specified Height message, length delimited. Does not implicitly {@link ibc.core.client.v1.Height.verify|verify} messages. + * @param message Height message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - type ConsensusStateCallback = (error: (Error|null), response?: ibc.core.client.v1.QueryConsensusStateResponse) => void; + public static encodeDelimited(message: ibc.core.client.v1.IHeight, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link ibc.core.client.v1.Query#consensusStates}. - * @param error Error, if any - * @param [response] QueryConsensusStatesResponse + * Decodes an Height message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Height + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type ConsensusStatesCallback = (error: (Error|null), response?: ibc.core.client.v1.QueryConsensusStatesResponse) => void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.client.v1.Height; /** - * Callback as used by {@link ibc.core.client.v1.Query#consensusStateHeights}. - * @param error Error, if any - * @param [response] QueryConsensusStateHeightsResponse + * Decodes an Height message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Height + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type ConsensusStateHeightsCallback = (error: (Error|null), response?: ibc.core.client.v1.QueryConsensusStateHeightsResponse) => void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.client.v1.Height; /** - * Callback as used by {@link ibc.core.client.v1.Query#clientStatus}. - * @param error Error, if any - * @param [response] QueryClientStatusResponse + * Verifies an Height message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - type ClientStatusCallback = (error: (Error|null), response?: ibc.core.client.v1.QueryClientStatusResponse) => void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Callback as used by {@link ibc.core.client.v1.Query#clientParams}. - * @param error Error, if any - * @param [response] QueryClientParamsResponse + * Creates an Height message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Height */ - type ClientParamsCallback = (error: (Error|null), response?: ibc.core.client.v1.QueryClientParamsResponse) => void; + public static fromObject(object: { [k: string]: any }): ibc.core.client.v1.Height; /** - * Callback as used by {@link ibc.core.client.v1.Query#upgradedClientState}. - * @param error Error, if any - * @param [response] QueryUpgradedClientStateResponse + * Creates a plain object from an Height message. Also converts values to other types if specified. + * @param message Height + * @param [options] Conversion options + * @returns Plain object */ - type UpgradedClientStateCallback = (error: (Error|null), response?: ibc.core.client.v1.QueryUpgradedClientStateResponse) => void; + public static toObject(message: ibc.core.client.v1.Height, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Callback as used by {@link ibc.core.client.v1.Query#upgradedConsensusState}. - * @param error Error, if any - * @param [response] QueryUpgradedConsensusStateResponse + * Converts this Height to JSON. + * @returns JSON object */ - type UpgradedConsensusStateCallback = (error: (Error|null), response?: ibc.core.client.v1.QueryUpgradedConsensusStateResponse) => void; + public toJSON(): { [k: string]: any }; } - /** Properties of a QueryClientStateRequest. */ - interface IQueryClientStateRequest { + /** Properties of a Params. */ + interface IParams { - /** QueryClientStateRequest client_id */ - client_id?: (string|null); + /** Params allowed_clients */ + allowed_clients?: (string[]|null); } - /** Represents a QueryClientStateRequest. */ - class QueryClientStateRequest implements IQueryClientStateRequest { + /** Represents a Params. */ + class Params implements IParams { /** - * Constructs a new QueryClientStateRequest. + * Constructs a new Params. * @param [properties] Properties to set */ - constructor(properties?: ibc.core.client.v1.IQueryClientStateRequest); + constructor(properties?: ibc.core.client.v1.IParams); - /** QueryClientStateRequest client_id. */ - public client_id: string; + /** Params allowed_clients. */ + public allowed_clients: string[]; /** - * Encodes the specified QueryClientStateRequest message. Does not implicitly {@link ibc.core.client.v1.QueryClientStateRequest.verify|verify} messages. - * @param message QueryClientStateRequest message or plain object to encode + * Encodes the specified Params message. Does not implicitly {@link ibc.core.client.v1.Params.verify|verify} messages. + * @param message Params message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.core.client.v1.IQueryClientStateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.core.client.v1.IParams, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified QueryClientStateRequest message, length delimited. Does not implicitly {@link ibc.core.client.v1.QueryClientStateRequest.verify|verify} messages. - * @param message QueryClientStateRequest message or plain object to encode + * Encodes the specified Params message, length delimited. Does not implicitly {@link ibc.core.client.v1.Params.verify|verify} messages. + * @param message Params message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.core.client.v1.IQueryClientStateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.core.client.v1.IParams, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a QueryClientStateRequest message from the specified reader or buffer. + * Decodes a Params message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns QueryClientStateRequest + * @returns Params * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.client.v1.QueryClientStateRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.client.v1.Params; /** - * Decodes a QueryClientStateRequest message from the specified reader or buffer, length delimited. + * Decodes a Params message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns QueryClientStateRequest + * @returns Params * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.client.v1.QueryClientStateRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.client.v1.Params; /** - * Verifies a QueryClientStateRequest message. + * Verifies a Params message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a QueryClientStateRequest message from a plain object. Also converts values to their respective internal types. + * Creates a Params message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns QueryClientStateRequest + * @returns Params */ - public static fromObject(object: { [k: string]: any }): ibc.core.client.v1.QueryClientStateRequest; + public static fromObject(object: { [k: string]: any }): ibc.core.client.v1.Params; /** - * Creates a plain object from a QueryClientStateRequest message. Also converts values to other types if specified. - * @param message QueryClientStateRequest + * Creates a plain object from a Params message. Also converts values to other types if specified. + * @param message Params * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.core.client.v1.QueryClientStateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.core.client.v1.Params, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this QueryClientStateRequest to JSON. + * Converts this Params to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a QueryClientStateResponse. */ - interface IQueryClientStateResponse { - - /** QueryClientStateResponse client_state */ - client_state?: (google.protobuf.IAny|null); - - /** QueryClientStateResponse proof */ - proof?: (Uint8Array|null); - - /** QueryClientStateResponse proof_height */ - proof_height?: (ibc.core.client.v1.IHeight|null); - } + /** Represents a Msg */ + class Msg extends $protobuf.rpc.Service { - /** Represents a QueryClientStateResponse. */ - class QueryClientStateResponse implements IQueryClientStateResponse { + /** + * Constructs a new Msg service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); /** - * Constructs a new QueryClientStateResponse. - * @param [properties] Properties to set + * Calls CreateClient. + * @param request MsgCreateClient message or plain object + * @param callback Node-style callback called with the error, if any, and MsgCreateClientResponse */ - constructor(properties?: ibc.core.client.v1.IQueryClientStateResponse); + public createClient(request: ibc.core.client.v1.IMsgCreateClient, callback: ibc.core.client.v1.Msg.CreateClientCallback): void; - /** QueryClientStateResponse client_state. */ - public client_state?: (google.protobuf.IAny|null); + /** + * Calls CreateClient. + * @param request MsgCreateClient message or plain object + * @returns Promise + */ + public createClient(request: ibc.core.client.v1.IMsgCreateClient): Promise; - /** QueryClientStateResponse proof. */ - public proof: Uint8Array; + /** + * Calls UpdateClient. + * @param request MsgUpdateClient message or plain object + * @param callback Node-style callback called with the error, if any, and MsgUpdateClientResponse + */ + public updateClient(request: ibc.core.client.v1.IMsgUpdateClient, callback: ibc.core.client.v1.Msg.UpdateClientCallback): void; - /** QueryClientStateResponse proof_height. */ - public proof_height?: (ibc.core.client.v1.IHeight|null); + /** + * Calls UpdateClient. + * @param request MsgUpdateClient message or plain object + * @returns Promise + */ + public updateClient(request: ibc.core.client.v1.IMsgUpdateClient): Promise; /** - * Encodes the specified QueryClientStateResponse message. Does not implicitly {@link ibc.core.client.v1.QueryClientStateResponse.verify|verify} messages. - * @param message QueryClientStateResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls UpgradeClient. + * @param request MsgUpgradeClient message or plain object + * @param callback Node-style callback called with the error, if any, and MsgUpgradeClientResponse */ - public static encode(message: ibc.core.client.v1.IQueryClientStateResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public upgradeClient(request: ibc.core.client.v1.IMsgUpgradeClient, callback: ibc.core.client.v1.Msg.UpgradeClientCallback): void; /** - * Encodes the specified QueryClientStateResponse message, length delimited. Does not implicitly {@link ibc.core.client.v1.QueryClientStateResponse.verify|verify} messages. - * @param message QueryClientStateResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls UpgradeClient. + * @param request MsgUpgradeClient message or plain object + * @returns Promise */ - public static encodeDelimited(message: ibc.core.client.v1.IQueryClientStateResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public upgradeClient(request: ibc.core.client.v1.IMsgUpgradeClient): Promise; /** - * Decodes a QueryClientStateResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns QueryClientStateResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls SubmitMisbehaviour. + * @param request MsgSubmitMisbehaviour message or plain object + * @param callback Node-style callback called with the error, if any, and MsgSubmitMisbehaviourResponse */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.client.v1.QueryClientStateResponse; + public submitMisbehaviour(request: ibc.core.client.v1.IMsgSubmitMisbehaviour, callback: ibc.core.client.v1.Msg.SubmitMisbehaviourCallback): void; /** - * Decodes a QueryClientStateResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns QueryClientStateResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls SubmitMisbehaviour. + * @param request MsgSubmitMisbehaviour message or plain object + * @returns Promise */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.client.v1.QueryClientStateResponse; + public submitMisbehaviour(request: ibc.core.client.v1.IMsgSubmitMisbehaviour): Promise; + } + + namespace Msg { /** - * Verifies a QueryClientStateResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Callback as used by {@link ibc.core.client.v1.Msg#createClient}. + * @param error Error, if any + * @param [response] MsgCreateClientResponse */ - public static verify(message: { [k: string]: any }): (string|null); + type CreateClientCallback = (error: (Error|null), response?: ibc.core.client.v1.MsgCreateClientResponse) => void; /** - * Creates a QueryClientStateResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns QueryClientStateResponse + * Callback as used by {@link ibc.core.client.v1.Msg#updateClient}. + * @param error Error, if any + * @param [response] MsgUpdateClientResponse */ - public static fromObject(object: { [k: string]: any }): ibc.core.client.v1.QueryClientStateResponse; + type UpdateClientCallback = (error: (Error|null), response?: ibc.core.client.v1.MsgUpdateClientResponse) => void; /** - * Creates a plain object from a QueryClientStateResponse message. Also converts values to other types if specified. - * @param message QueryClientStateResponse - * @param [options] Conversion options - * @returns Plain object + * Callback as used by {@link ibc.core.client.v1.Msg#upgradeClient}. + * @param error Error, if any + * @param [response] MsgUpgradeClientResponse */ - public static toObject(message: ibc.core.client.v1.QueryClientStateResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + type UpgradeClientCallback = (error: (Error|null), response?: ibc.core.client.v1.MsgUpgradeClientResponse) => void; /** - * Converts this QueryClientStateResponse to JSON. - * @returns JSON object + * Callback as used by {@link ibc.core.client.v1.Msg#submitMisbehaviour}. + * @param error Error, if any + * @param [response] MsgSubmitMisbehaviourResponse */ - public toJSON(): { [k: string]: any }; + type SubmitMisbehaviourCallback = (error: (Error|null), response?: ibc.core.client.v1.MsgSubmitMisbehaviourResponse) => void; } - /** Properties of a QueryClientStatesRequest. */ - interface IQueryClientStatesRequest { + /** Properties of a MsgCreateClient. */ + interface IMsgCreateClient { - /** QueryClientStatesRequest pagination */ - pagination?: (cosmos.base.query.v1beta1.IPageRequest|null); + /** MsgCreateClient client_state */ + client_state?: (google.protobuf.IAny|null); + + /** MsgCreateClient consensus_state */ + consensus_state?: (google.protobuf.IAny|null); + + /** MsgCreateClient signer */ + signer?: (string|null); } - /** Represents a QueryClientStatesRequest. */ - class QueryClientStatesRequest implements IQueryClientStatesRequest { + /** Represents a MsgCreateClient. */ + class MsgCreateClient implements IMsgCreateClient { /** - * Constructs a new QueryClientStatesRequest. + * Constructs a new MsgCreateClient. * @param [properties] Properties to set */ - constructor(properties?: ibc.core.client.v1.IQueryClientStatesRequest); + constructor(properties?: ibc.core.client.v1.IMsgCreateClient); - /** QueryClientStatesRequest pagination. */ - public pagination?: (cosmos.base.query.v1beta1.IPageRequest|null); + /** MsgCreateClient client_state. */ + public client_state?: (google.protobuf.IAny|null); + + /** MsgCreateClient consensus_state. */ + public consensus_state?: (google.protobuf.IAny|null); + + /** MsgCreateClient signer. */ + public signer: string; /** - * Encodes the specified QueryClientStatesRequest message. Does not implicitly {@link ibc.core.client.v1.QueryClientStatesRequest.verify|verify} messages. - * @param message QueryClientStatesRequest message or plain object to encode + * Encodes the specified MsgCreateClient message. Does not implicitly {@link ibc.core.client.v1.MsgCreateClient.verify|verify} messages. + * @param message MsgCreateClient message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.core.client.v1.IQueryClientStatesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.core.client.v1.IMsgCreateClient, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified QueryClientStatesRequest message, length delimited. Does not implicitly {@link ibc.core.client.v1.QueryClientStatesRequest.verify|verify} messages. - * @param message QueryClientStatesRequest message or plain object to encode + * Encodes the specified MsgCreateClient message, length delimited. Does not implicitly {@link ibc.core.client.v1.MsgCreateClient.verify|verify} messages. + * @param message MsgCreateClient message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.core.client.v1.IQueryClientStatesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.core.client.v1.IMsgCreateClient, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a QueryClientStatesRequest message from the specified reader or buffer. + * Decodes a MsgCreateClient message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns QueryClientStatesRequest + * @returns MsgCreateClient * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.client.v1.QueryClientStatesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.client.v1.MsgCreateClient; /** - * Decodes a QueryClientStatesRequest message from the specified reader or buffer, length delimited. + * Decodes a MsgCreateClient message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns QueryClientStatesRequest + * @returns MsgCreateClient * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.client.v1.QueryClientStatesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.client.v1.MsgCreateClient; /** - * Verifies a QueryClientStatesRequest message. + * Verifies a MsgCreateClient message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a QueryClientStatesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MsgCreateClient message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns QueryClientStatesRequest + * @returns MsgCreateClient */ - public static fromObject(object: { [k: string]: any }): ibc.core.client.v1.QueryClientStatesRequest; + public static fromObject(object: { [k: string]: any }): ibc.core.client.v1.MsgCreateClient; /** - * Creates a plain object from a QueryClientStatesRequest message. Also converts values to other types if specified. - * @param message QueryClientStatesRequest + * Creates a plain object from a MsgCreateClient message. Also converts values to other types if specified. + * @param message MsgCreateClient * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.core.client.v1.QueryClientStatesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.core.client.v1.MsgCreateClient, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this QueryClientStatesRequest to JSON. + * Converts this MsgCreateClient to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a QueryClientStatesResponse. */ - interface IQueryClientStatesResponse { - - /** QueryClientStatesResponse client_states */ - client_states?: (ibc.core.client.v1.IIdentifiedClientState[]|null); - - /** QueryClientStatesResponse pagination */ - pagination?: (cosmos.base.query.v1beta1.IPageResponse|null); + /** Properties of a MsgCreateClientResponse. */ + interface IMsgCreateClientResponse { } - /** Represents a QueryClientStatesResponse. */ - class QueryClientStatesResponse implements IQueryClientStatesResponse { + /** Represents a MsgCreateClientResponse. */ + class MsgCreateClientResponse implements IMsgCreateClientResponse { /** - * Constructs a new QueryClientStatesResponse. + * Constructs a new MsgCreateClientResponse. * @param [properties] Properties to set */ - constructor(properties?: ibc.core.client.v1.IQueryClientStatesResponse); - - /** QueryClientStatesResponse client_states. */ - public client_states: ibc.core.client.v1.IIdentifiedClientState[]; - - /** QueryClientStatesResponse pagination. */ - public pagination?: (cosmos.base.query.v1beta1.IPageResponse|null); + constructor(properties?: ibc.core.client.v1.IMsgCreateClientResponse); /** - * Encodes the specified QueryClientStatesResponse message. Does not implicitly {@link ibc.core.client.v1.QueryClientStatesResponse.verify|verify} messages. - * @param message QueryClientStatesResponse message or plain object to encode + * Encodes the specified MsgCreateClientResponse message. Does not implicitly {@link ibc.core.client.v1.MsgCreateClientResponse.verify|verify} messages. + * @param message MsgCreateClientResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.core.client.v1.IQueryClientStatesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.core.client.v1.IMsgCreateClientResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified QueryClientStatesResponse message, length delimited. Does not implicitly {@link ibc.core.client.v1.QueryClientStatesResponse.verify|verify} messages. - * @param message QueryClientStatesResponse message or plain object to encode + * Encodes the specified MsgCreateClientResponse message, length delimited. Does not implicitly {@link ibc.core.client.v1.MsgCreateClientResponse.verify|verify} messages. + * @param message MsgCreateClientResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.core.client.v1.IQueryClientStatesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.core.client.v1.IMsgCreateClientResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a QueryClientStatesResponse message from the specified reader or buffer. + * Decodes a MsgCreateClientResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns QueryClientStatesResponse + * @returns MsgCreateClientResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.client.v1.QueryClientStatesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.client.v1.MsgCreateClientResponse; /** - * Decodes a QueryClientStatesResponse message from the specified reader or buffer, length delimited. + * Decodes a MsgCreateClientResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns QueryClientStatesResponse + * @returns MsgCreateClientResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.client.v1.QueryClientStatesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.client.v1.MsgCreateClientResponse; /** - * Verifies a QueryClientStatesResponse message. + * Verifies a MsgCreateClientResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a QueryClientStatesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a MsgCreateClientResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns QueryClientStatesResponse + * @returns MsgCreateClientResponse */ - public static fromObject(object: { [k: string]: any }): ibc.core.client.v1.QueryClientStatesResponse; + public static fromObject(object: { [k: string]: any }): ibc.core.client.v1.MsgCreateClientResponse; /** - * Creates a plain object from a QueryClientStatesResponse message. Also converts values to other types if specified. - * @param message QueryClientStatesResponse + * Creates a plain object from a MsgCreateClientResponse message. Also converts values to other types if specified. + * @param message MsgCreateClientResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.core.client.v1.QueryClientStatesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.core.client.v1.MsgCreateClientResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this QueryClientStatesResponse to JSON. + * Converts this MsgCreateClientResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a QueryConsensusStateRequest. */ - interface IQueryConsensusStateRequest { + /** Properties of a MsgUpdateClient. */ + interface IMsgUpdateClient { - /** QueryConsensusStateRequest client_id */ + /** MsgUpdateClient client_id */ client_id?: (string|null); - /** QueryConsensusStateRequest revision_number */ - revision_number?: (Long|null); - - /** QueryConsensusStateRequest revision_height */ - revision_height?: (Long|null); + /** MsgUpdateClient client_message */ + client_message?: (google.protobuf.IAny|null); - /** QueryConsensusStateRequest latest_height */ - latest_height?: (boolean|null); + /** MsgUpdateClient signer */ + signer?: (string|null); } - /** Represents a QueryConsensusStateRequest. */ - class QueryConsensusStateRequest implements IQueryConsensusStateRequest { + /** Represents a MsgUpdateClient. */ + class MsgUpdateClient implements IMsgUpdateClient { /** - * Constructs a new QueryConsensusStateRequest. + * Constructs a new MsgUpdateClient. * @param [properties] Properties to set */ - constructor(properties?: ibc.core.client.v1.IQueryConsensusStateRequest); + constructor(properties?: ibc.core.client.v1.IMsgUpdateClient); - /** QueryConsensusStateRequest client_id. */ + /** MsgUpdateClient client_id. */ public client_id: string; - /** QueryConsensusStateRequest revision_number. */ - public revision_number: Long; - - /** QueryConsensusStateRequest revision_height. */ - public revision_height: Long; + /** MsgUpdateClient client_message. */ + public client_message?: (google.protobuf.IAny|null); - /** QueryConsensusStateRequest latest_height. */ - public latest_height: boolean; + /** MsgUpdateClient signer. */ + public signer: string; /** - * Encodes the specified QueryConsensusStateRequest message. Does not implicitly {@link ibc.core.client.v1.QueryConsensusStateRequest.verify|verify} messages. - * @param message QueryConsensusStateRequest message or plain object to encode + * Encodes the specified MsgUpdateClient message. Does not implicitly {@link ibc.core.client.v1.MsgUpdateClient.verify|verify} messages. + * @param message MsgUpdateClient message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.core.client.v1.IQueryConsensusStateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.core.client.v1.IMsgUpdateClient, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified QueryConsensusStateRequest message, length delimited. Does not implicitly {@link ibc.core.client.v1.QueryConsensusStateRequest.verify|verify} messages. - * @param message QueryConsensusStateRequest message or plain object to encode + * Encodes the specified MsgUpdateClient message, length delimited. Does not implicitly {@link ibc.core.client.v1.MsgUpdateClient.verify|verify} messages. + * @param message MsgUpdateClient message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.core.client.v1.IQueryConsensusStateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.core.client.v1.IMsgUpdateClient, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a QueryConsensusStateRequest message from the specified reader or buffer. + * Decodes a MsgUpdateClient message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns QueryConsensusStateRequest + * @returns MsgUpdateClient * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.client.v1.QueryConsensusStateRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.client.v1.MsgUpdateClient; /** - * Decodes a QueryConsensusStateRequest message from the specified reader or buffer, length delimited. + * Decodes a MsgUpdateClient message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns QueryConsensusStateRequest + * @returns MsgUpdateClient * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.client.v1.QueryConsensusStateRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.client.v1.MsgUpdateClient; /** - * Verifies a QueryConsensusStateRequest message. + * Verifies a MsgUpdateClient message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a QueryConsensusStateRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MsgUpdateClient message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns QueryConsensusStateRequest + * @returns MsgUpdateClient */ - public static fromObject(object: { [k: string]: any }): ibc.core.client.v1.QueryConsensusStateRequest; + public static fromObject(object: { [k: string]: any }): ibc.core.client.v1.MsgUpdateClient; /** - * Creates a plain object from a QueryConsensusStateRequest message. Also converts values to other types if specified. - * @param message QueryConsensusStateRequest + * Creates a plain object from a MsgUpdateClient message. Also converts values to other types if specified. + * @param message MsgUpdateClient * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.core.client.v1.QueryConsensusStateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.core.client.v1.MsgUpdateClient, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this QueryConsensusStateRequest to JSON. + * Converts this MsgUpdateClient to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a QueryConsensusStateResponse. */ - interface IQueryConsensusStateResponse { - - /** QueryConsensusStateResponse consensus_state */ - consensus_state?: (google.protobuf.IAny|null); - - /** QueryConsensusStateResponse proof */ - proof?: (Uint8Array|null); - - /** QueryConsensusStateResponse proof_height */ - proof_height?: (ibc.core.client.v1.IHeight|null); + /** Properties of a MsgUpdateClientResponse. */ + interface IMsgUpdateClientResponse { } - /** Represents a QueryConsensusStateResponse. */ - class QueryConsensusStateResponse implements IQueryConsensusStateResponse { + /** Represents a MsgUpdateClientResponse. */ + class MsgUpdateClientResponse implements IMsgUpdateClientResponse { /** - * Constructs a new QueryConsensusStateResponse. + * Constructs a new MsgUpdateClientResponse. * @param [properties] Properties to set */ - constructor(properties?: ibc.core.client.v1.IQueryConsensusStateResponse); - - /** QueryConsensusStateResponse consensus_state. */ - public consensus_state?: (google.protobuf.IAny|null); - - /** QueryConsensusStateResponse proof. */ - public proof: Uint8Array; - - /** QueryConsensusStateResponse proof_height. */ - public proof_height?: (ibc.core.client.v1.IHeight|null); + constructor(properties?: ibc.core.client.v1.IMsgUpdateClientResponse); /** - * Encodes the specified QueryConsensusStateResponse message. Does not implicitly {@link ibc.core.client.v1.QueryConsensusStateResponse.verify|verify} messages. - * @param message QueryConsensusStateResponse message or plain object to encode + * Encodes the specified MsgUpdateClientResponse message. Does not implicitly {@link ibc.core.client.v1.MsgUpdateClientResponse.verify|verify} messages. + * @param message MsgUpdateClientResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.core.client.v1.IQueryConsensusStateResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.core.client.v1.IMsgUpdateClientResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified QueryConsensusStateResponse message, length delimited. Does not implicitly {@link ibc.core.client.v1.QueryConsensusStateResponse.verify|verify} messages. - * @param message QueryConsensusStateResponse message or plain object to encode + * Encodes the specified MsgUpdateClientResponse message, length delimited. Does not implicitly {@link ibc.core.client.v1.MsgUpdateClientResponse.verify|verify} messages. + * @param message MsgUpdateClientResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.core.client.v1.IQueryConsensusStateResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.core.client.v1.IMsgUpdateClientResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a QueryConsensusStateResponse message from the specified reader or buffer. + * Decodes a MsgUpdateClientResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns QueryConsensusStateResponse + * @returns MsgUpdateClientResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.client.v1.QueryConsensusStateResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.client.v1.MsgUpdateClientResponse; /** - * Decodes a QueryConsensusStateResponse message from the specified reader or buffer, length delimited. + * Decodes a MsgUpdateClientResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns QueryConsensusStateResponse + * @returns MsgUpdateClientResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.client.v1.QueryConsensusStateResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.client.v1.MsgUpdateClientResponse; /** - * Verifies a QueryConsensusStateResponse message. + * Verifies a MsgUpdateClientResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a QueryConsensusStateResponse message from a plain object. Also converts values to their respective internal types. + * Creates a MsgUpdateClientResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns QueryConsensusStateResponse + * @returns MsgUpdateClientResponse */ - public static fromObject(object: { [k: string]: any }): ibc.core.client.v1.QueryConsensusStateResponse; + public static fromObject(object: { [k: string]: any }): ibc.core.client.v1.MsgUpdateClientResponse; /** - * Creates a plain object from a QueryConsensusStateResponse message. Also converts values to other types if specified. - * @param message QueryConsensusStateResponse + * Creates a plain object from a MsgUpdateClientResponse message. Also converts values to other types if specified. + * @param message MsgUpdateClientResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.core.client.v1.QueryConsensusStateResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.core.client.v1.MsgUpdateClientResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this QueryConsensusStateResponse to JSON. + * Converts this MsgUpdateClientResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a QueryConsensusStatesRequest. */ - interface IQueryConsensusStatesRequest { + /** Properties of a MsgUpgradeClient. */ + interface IMsgUpgradeClient { - /** QueryConsensusStatesRequest client_id */ + /** MsgUpgradeClient client_id */ client_id?: (string|null); - /** QueryConsensusStatesRequest pagination */ - pagination?: (cosmos.base.query.v1beta1.IPageRequest|null); + /** MsgUpgradeClient client_state */ + client_state?: (google.protobuf.IAny|null); + + /** MsgUpgradeClient consensus_state */ + consensus_state?: (google.protobuf.IAny|null); + + /** MsgUpgradeClient proof_upgrade_client */ + proof_upgrade_client?: (Uint8Array|null); + + /** MsgUpgradeClient proof_upgrade_consensus_state */ + proof_upgrade_consensus_state?: (Uint8Array|null); + + /** MsgUpgradeClient signer */ + signer?: (string|null); } - /** Represents a QueryConsensusStatesRequest. */ - class QueryConsensusStatesRequest implements IQueryConsensusStatesRequest { + /** Represents a MsgUpgradeClient. */ + class MsgUpgradeClient implements IMsgUpgradeClient { /** - * Constructs a new QueryConsensusStatesRequest. + * Constructs a new MsgUpgradeClient. * @param [properties] Properties to set */ - constructor(properties?: ibc.core.client.v1.IQueryConsensusStatesRequest); + constructor(properties?: ibc.core.client.v1.IMsgUpgradeClient); - /** QueryConsensusStatesRequest client_id. */ + /** MsgUpgradeClient client_id. */ public client_id: string; - /** QueryConsensusStatesRequest pagination. */ - public pagination?: (cosmos.base.query.v1beta1.IPageRequest|null); + /** MsgUpgradeClient client_state. */ + public client_state?: (google.protobuf.IAny|null); + + /** MsgUpgradeClient consensus_state. */ + public consensus_state?: (google.protobuf.IAny|null); + + /** MsgUpgradeClient proof_upgrade_client. */ + public proof_upgrade_client: Uint8Array; + + /** MsgUpgradeClient proof_upgrade_consensus_state. */ + public proof_upgrade_consensus_state: Uint8Array; + + /** MsgUpgradeClient signer. */ + public signer: string; /** - * Encodes the specified QueryConsensusStatesRequest message. Does not implicitly {@link ibc.core.client.v1.QueryConsensusStatesRequest.verify|verify} messages. - * @param message QueryConsensusStatesRequest message or plain object to encode + * Encodes the specified MsgUpgradeClient message. Does not implicitly {@link ibc.core.client.v1.MsgUpgradeClient.verify|verify} messages. + * @param message MsgUpgradeClient message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.core.client.v1.IQueryConsensusStatesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.core.client.v1.IMsgUpgradeClient, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified QueryConsensusStatesRequest message, length delimited. Does not implicitly {@link ibc.core.client.v1.QueryConsensusStatesRequest.verify|verify} messages. - * @param message QueryConsensusStatesRequest message or plain object to encode + * Encodes the specified MsgUpgradeClient message, length delimited. Does not implicitly {@link ibc.core.client.v1.MsgUpgradeClient.verify|verify} messages. + * @param message MsgUpgradeClient message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.core.client.v1.IQueryConsensusStatesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.core.client.v1.IMsgUpgradeClient, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a QueryConsensusStatesRequest message from the specified reader or buffer. + * Decodes a MsgUpgradeClient message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns QueryConsensusStatesRequest + * @returns MsgUpgradeClient * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.client.v1.QueryConsensusStatesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.client.v1.MsgUpgradeClient; /** - * Decodes a QueryConsensusStatesRequest message from the specified reader or buffer, length delimited. + * Decodes a MsgUpgradeClient message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns QueryConsensusStatesRequest + * @returns MsgUpgradeClient * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.client.v1.QueryConsensusStatesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.client.v1.MsgUpgradeClient; /** - * Verifies a QueryConsensusStatesRequest message. + * Verifies a MsgUpgradeClient message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a QueryConsensusStatesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MsgUpgradeClient message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns QueryConsensusStatesRequest + * @returns MsgUpgradeClient */ - public static fromObject(object: { [k: string]: any }): ibc.core.client.v1.QueryConsensusStatesRequest; + public static fromObject(object: { [k: string]: any }): ibc.core.client.v1.MsgUpgradeClient; /** - * Creates a plain object from a QueryConsensusStatesRequest message. Also converts values to other types if specified. - * @param message QueryConsensusStatesRequest + * Creates a plain object from a MsgUpgradeClient message. Also converts values to other types if specified. + * @param message MsgUpgradeClient * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.core.client.v1.QueryConsensusStatesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.core.client.v1.MsgUpgradeClient, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this QueryConsensusStatesRequest to JSON. + * Converts this MsgUpgradeClient to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a QueryConsensusStatesResponse. */ - interface IQueryConsensusStatesResponse { - - /** QueryConsensusStatesResponse consensus_states */ - consensus_states?: (ibc.core.client.v1.IConsensusStateWithHeight[]|null); - - /** QueryConsensusStatesResponse pagination */ - pagination?: (cosmos.base.query.v1beta1.IPageResponse|null); + /** Properties of a MsgUpgradeClientResponse. */ + interface IMsgUpgradeClientResponse { } - /** Represents a QueryConsensusStatesResponse. */ - class QueryConsensusStatesResponse implements IQueryConsensusStatesResponse { + /** Represents a MsgUpgradeClientResponse. */ + class MsgUpgradeClientResponse implements IMsgUpgradeClientResponse { /** - * Constructs a new QueryConsensusStatesResponse. + * Constructs a new MsgUpgradeClientResponse. * @param [properties] Properties to set */ - constructor(properties?: ibc.core.client.v1.IQueryConsensusStatesResponse); - - /** QueryConsensusStatesResponse consensus_states. */ - public consensus_states: ibc.core.client.v1.IConsensusStateWithHeight[]; - - /** QueryConsensusStatesResponse pagination. */ - public pagination?: (cosmos.base.query.v1beta1.IPageResponse|null); + constructor(properties?: ibc.core.client.v1.IMsgUpgradeClientResponse); /** - * Encodes the specified QueryConsensusStatesResponse message. Does not implicitly {@link ibc.core.client.v1.QueryConsensusStatesResponse.verify|verify} messages. - * @param message QueryConsensusStatesResponse message or plain object to encode + * Encodes the specified MsgUpgradeClientResponse message. Does not implicitly {@link ibc.core.client.v1.MsgUpgradeClientResponse.verify|verify} messages. + * @param message MsgUpgradeClientResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.core.client.v1.IQueryConsensusStatesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.core.client.v1.IMsgUpgradeClientResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified QueryConsensusStatesResponse message, length delimited. Does not implicitly {@link ibc.core.client.v1.QueryConsensusStatesResponse.verify|verify} messages. - * @param message QueryConsensusStatesResponse message or plain object to encode + * Encodes the specified MsgUpgradeClientResponse message, length delimited. Does not implicitly {@link ibc.core.client.v1.MsgUpgradeClientResponse.verify|verify} messages. + * @param message MsgUpgradeClientResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.core.client.v1.IQueryConsensusStatesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.core.client.v1.IMsgUpgradeClientResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a QueryConsensusStatesResponse message from the specified reader or buffer. + * Decodes a MsgUpgradeClientResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns QueryConsensusStatesResponse + * @returns MsgUpgradeClientResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.client.v1.QueryConsensusStatesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.client.v1.MsgUpgradeClientResponse; /** - * Decodes a QueryConsensusStatesResponse message from the specified reader or buffer, length delimited. + * Decodes a MsgUpgradeClientResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns QueryConsensusStatesResponse + * @returns MsgUpgradeClientResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.client.v1.QueryConsensusStatesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.client.v1.MsgUpgradeClientResponse; /** - * Verifies a QueryConsensusStatesResponse message. + * Verifies a MsgUpgradeClientResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a QueryConsensusStatesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a MsgUpgradeClientResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns QueryConsensusStatesResponse + * @returns MsgUpgradeClientResponse */ - public static fromObject(object: { [k: string]: any }): ibc.core.client.v1.QueryConsensusStatesResponse; + public static fromObject(object: { [k: string]: any }): ibc.core.client.v1.MsgUpgradeClientResponse; /** - * Creates a plain object from a QueryConsensusStatesResponse message. Also converts values to other types if specified. - * @param message QueryConsensusStatesResponse + * Creates a plain object from a MsgUpgradeClientResponse message. Also converts values to other types if specified. + * @param message MsgUpgradeClientResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.core.client.v1.QueryConsensusStatesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.core.client.v1.MsgUpgradeClientResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this QueryConsensusStatesResponse to JSON. + * Converts this MsgUpgradeClientResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a QueryConsensusStateHeightsRequest. */ - interface IQueryConsensusStateHeightsRequest { + /** Properties of a MsgSubmitMisbehaviour. */ + interface IMsgSubmitMisbehaviour { - /** QueryConsensusStateHeightsRequest client_id */ + /** MsgSubmitMisbehaviour client_id */ client_id?: (string|null); - /** QueryConsensusStateHeightsRequest pagination */ - pagination?: (cosmos.base.query.v1beta1.IPageRequest|null); + /** MsgSubmitMisbehaviour misbehaviour */ + misbehaviour?: (google.protobuf.IAny|null); + + /** MsgSubmitMisbehaviour signer */ + signer?: (string|null); } - /** Represents a QueryConsensusStateHeightsRequest. */ - class QueryConsensusStateHeightsRequest implements IQueryConsensusStateHeightsRequest { + /** Represents a MsgSubmitMisbehaviour. */ + class MsgSubmitMisbehaviour implements IMsgSubmitMisbehaviour { /** - * Constructs a new QueryConsensusStateHeightsRequest. + * Constructs a new MsgSubmitMisbehaviour. * @param [properties] Properties to set */ - constructor(properties?: ibc.core.client.v1.IQueryConsensusStateHeightsRequest); + constructor(properties?: ibc.core.client.v1.IMsgSubmitMisbehaviour); - /** QueryConsensusStateHeightsRequest client_id. */ + /** MsgSubmitMisbehaviour client_id. */ public client_id: string; - /** QueryConsensusStateHeightsRequest pagination. */ - public pagination?: (cosmos.base.query.v1beta1.IPageRequest|null); + /** MsgSubmitMisbehaviour misbehaviour. */ + public misbehaviour?: (google.protobuf.IAny|null); + + /** MsgSubmitMisbehaviour signer. */ + public signer: string; /** - * Encodes the specified QueryConsensusStateHeightsRequest message. Does not implicitly {@link ibc.core.client.v1.QueryConsensusStateHeightsRequest.verify|verify} messages. - * @param message QueryConsensusStateHeightsRequest message or plain object to encode + * Encodes the specified MsgSubmitMisbehaviour message. Does not implicitly {@link ibc.core.client.v1.MsgSubmitMisbehaviour.verify|verify} messages. + * @param message MsgSubmitMisbehaviour message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.core.client.v1.IQueryConsensusStateHeightsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.core.client.v1.IMsgSubmitMisbehaviour, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified QueryConsensusStateHeightsRequest message, length delimited. Does not implicitly {@link ibc.core.client.v1.QueryConsensusStateHeightsRequest.verify|verify} messages. - * @param message QueryConsensusStateHeightsRequest message or plain object to encode + * Encodes the specified MsgSubmitMisbehaviour message, length delimited. Does not implicitly {@link ibc.core.client.v1.MsgSubmitMisbehaviour.verify|verify} messages. + * @param message MsgSubmitMisbehaviour message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.core.client.v1.IQueryConsensusStateHeightsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.core.client.v1.IMsgSubmitMisbehaviour, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a QueryConsensusStateHeightsRequest message from the specified reader or buffer. + * Decodes a MsgSubmitMisbehaviour message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns QueryConsensusStateHeightsRequest + * @returns MsgSubmitMisbehaviour * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.client.v1.QueryConsensusStateHeightsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.client.v1.MsgSubmitMisbehaviour; /** - * Decodes a QueryConsensusStateHeightsRequest message from the specified reader or buffer, length delimited. + * Decodes a MsgSubmitMisbehaviour message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns QueryConsensusStateHeightsRequest + * @returns MsgSubmitMisbehaviour * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.client.v1.QueryConsensusStateHeightsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.client.v1.MsgSubmitMisbehaviour; /** - * Verifies a QueryConsensusStateHeightsRequest message. + * Verifies a MsgSubmitMisbehaviour message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a QueryConsensusStateHeightsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MsgSubmitMisbehaviour message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns QueryConsensusStateHeightsRequest + * @returns MsgSubmitMisbehaviour */ - public static fromObject(object: { [k: string]: any }): ibc.core.client.v1.QueryConsensusStateHeightsRequest; + public static fromObject(object: { [k: string]: any }): ibc.core.client.v1.MsgSubmitMisbehaviour; /** - * Creates a plain object from a QueryConsensusStateHeightsRequest message. Also converts values to other types if specified. - * @param message QueryConsensusStateHeightsRequest + * Creates a plain object from a MsgSubmitMisbehaviour message. Also converts values to other types if specified. + * @param message MsgSubmitMisbehaviour * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.core.client.v1.QueryConsensusStateHeightsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.core.client.v1.MsgSubmitMisbehaviour, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this QueryConsensusStateHeightsRequest to JSON. + * Converts this MsgSubmitMisbehaviour to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a QueryConsensusStateHeightsResponse. */ - interface IQueryConsensusStateHeightsResponse { - - /** QueryConsensusStateHeightsResponse consensus_state_heights */ - consensus_state_heights?: (ibc.core.client.v1.IHeight[]|null); - - /** QueryConsensusStateHeightsResponse pagination */ - pagination?: (cosmos.base.query.v1beta1.IPageResponse|null); + /** Properties of a MsgSubmitMisbehaviourResponse. */ + interface IMsgSubmitMisbehaviourResponse { } - /** Represents a QueryConsensusStateHeightsResponse. */ - class QueryConsensusStateHeightsResponse implements IQueryConsensusStateHeightsResponse { + /** Represents a MsgSubmitMisbehaviourResponse. */ + class MsgSubmitMisbehaviourResponse implements IMsgSubmitMisbehaviourResponse { /** - * Constructs a new QueryConsensusStateHeightsResponse. + * Constructs a new MsgSubmitMisbehaviourResponse. * @param [properties] Properties to set */ - constructor(properties?: ibc.core.client.v1.IQueryConsensusStateHeightsResponse); - - /** QueryConsensusStateHeightsResponse consensus_state_heights. */ - public consensus_state_heights: ibc.core.client.v1.IHeight[]; - - /** QueryConsensusStateHeightsResponse pagination. */ - public pagination?: (cosmos.base.query.v1beta1.IPageResponse|null); + constructor(properties?: ibc.core.client.v1.IMsgSubmitMisbehaviourResponse); /** - * Encodes the specified QueryConsensusStateHeightsResponse message. Does not implicitly {@link ibc.core.client.v1.QueryConsensusStateHeightsResponse.verify|verify} messages. - * @param message QueryConsensusStateHeightsResponse message or plain object to encode + * Encodes the specified MsgSubmitMisbehaviourResponse message. Does not implicitly {@link ibc.core.client.v1.MsgSubmitMisbehaviourResponse.verify|verify} messages. + * @param message MsgSubmitMisbehaviourResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.core.client.v1.IQueryConsensusStateHeightsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.core.client.v1.IMsgSubmitMisbehaviourResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified QueryConsensusStateHeightsResponse message, length delimited. Does not implicitly {@link ibc.core.client.v1.QueryConsensusStateHeightsResponse.verify|verify} messages. - * @param message QueryConsensusStateHeightsResponse message or plain object to encode + * Encodes the specified MsgSubmitMisbehaviourResponse message, length delimited. Does not implicitly {@link ibc.core.client.v1.MsgSubmitMisbehaviourResponse.verify|verify} messages. + * @param message MsgSubmitMisbehaviourResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.core.client.v1.IQueryConsensusStateHeightsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.core.client.v1.IMsgSubmitMisbehaviourResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a QueryConsensusStateHeightsResponse message from the specified reader or buffer. + * Decodes a MsgSubmitMisbehaviourResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns QueryConsensusStateHeightsResponse + * @returns MsgSubmitMisbehaviourResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.client.v1.QueryConsensusStateHeightsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.client.v1.MsgSubmitMisbehaviourResponse; /** - * Decodes a QueryConsensusStateHeightsResponse message from the specified reader or buffer, length delimited. + * Decodes a MsgSubmitMisbehaviourResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns QueryConsensusStateHeightsResponse + * @returns MsgSubmitMisbehaviourResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.client.v1.QueryConsensusStateHeightsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.client.v1.MsgSubmitMisbehaviourResponse; /** - * Verifies a QueryConsensusStateHeightsResponse message. + * Verifies a MsgSubmitMisbehaviourResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a QueryConsensusStateHeightsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a MsgSubmitMisbehaviourResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns QueryConsensusStateHeightsResponse + * @returns MsgSubmitMisbehaviourResponse */ - public static fromObject(object: { [k: string]: any }): ibc.core.client.v1.QueryConsensusStateHeightsResponse; + public static fromObject(object: { [k: string]: any }): ibc.core.client.v1.MsgSubmitMisbehaviourResponse; /** - * Creates a plain object from a QueryConsensusStateHeightsResponse message. Also converts values to other types if specified. - * @param message QueryConsensusStateHeightsResponse + * Creates a plain object from a MsgSubmitMisbehaviourResponse message. Also converts values to other types if specified. + * @param message MsgSubmitMisbehaviourResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.core.client.v1.QueryConsensusStateHeightsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.core.client.v1.MsgSubmitMisbehaviourResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this QueryConsensusStateHeightsResponse to JSON. + * Converts this MsgSubmitMisbehaviourResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a QueryClientStatusRequest. */ - interface IQueryClientStatusRequest { + /** Represents a Query */ + class Query extends $protobuf.rpc.Service { - /** QueryClientStatusRequest client_id */ - client_id?: (string|null); - } + /** + * Constructs a new Query service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); - /** Represents a QueryClientStatusRequest. */ - class QueryClientStatusRequest implements IQueryClientStatusRequest { + /** + * Calls ClientState. + * @param request QueryClientStateRequest message or plain object + * @param callback Node-style callback called with the error, if any, and QueryClientStateResponse + */ + public clientState(request: ibc.core.client.v1.IQueryClientStateRequest, callback: ibc.core.client.v1.Query.ClientStateCallback): void; /** - * Constructs a new QueryClientStatusRequest. - * @param [properties] Properties to set + * Calls ClientState. + * @param request QueryClientStateRequest message or plain object + * @returns Promise */ - constructor(properties?: ibc.core.client.v1.IQueryClientStatusRequest); + public clientState(request: ibc.core.client.v1.IQueryClientStateRequest): Promise; - /** QueryClientStatusRequest client_id. */ - public client_id: string; + /** + * Calls ClientStates. + * @param request QueryClientStatesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and QueryClientStatesResponse + */ + public clientStates(request: ibc.core.client.v1.IQueryClientStatesRequest, callback: ibc.core.client.v1.Query.ClientStatesCallback): void; /** - * Encodes the specified QueryClientStatusRequest message. Does not implicitly {@link ibc.core.client.v1.QueryClientStatusRequest.verify|verify} messages. - * @param message QueryClientStatusRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls ClientStates. + * @param request QueryClientStatesRequest message or plain object + * @returns Promise */ - public static encode(message: ibc.core.client.v1.IQueryClientStatusRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public clientStates(request: ibc.core.client.v1.IQueryClientStatesRequest): Promise; /** - * Encodes the specified QueryClientStatusRequest message, length delimited. Does not implicitly {@link ibc.core.client.v1.QueryClientStatusRequest.verify|verify} messages. - * @param message QueryClientStatusRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls ConsensusState. + * @param request QueryConsensusStateRequest message or plain object + * @param callback Node-style callback called with the error, if any, and QueryConsensusStateResponse */ - public static encodeDelimited(message: ibc.core.client.v1.IQueryClientStatusRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public consensusState(request: ibc.core.client.v1.IQueryConsensusStateRequest, callback: ibc.core.client.v1.Query.ConsensusStateCallback): void; /** - * Decodes a QueryClientStatusRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns QueryClientStatusRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls ConsensusState. + * @param request QueryConsensusStateRequest message or plain object + * @returns Promise */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.client.v1.QueryClientStatusRequest; + public consensusState(request: ibc.core.client.v1.IQueryConsensusStateRequest): Promise; /** - * Decodes a QueryClientStatusRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns QueryClientStatusRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls ConsensusStates. + * @param request QueryConsensusStatesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and QueryConsensusStatesResponse */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.client.v1.QueryClientStatusRequest; + public consensusStates(request: ibc.core.client.v1.IQueryConsensusStatesRequest, callback: ibc.core.client.v1.Query.ConsensusStatesCallback): void; /** - * Verifies a QueryClientStatusRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls ConsensusStates. + * @param request QueryConsensusStatesRequest message or plain object + * @returns Promise */ - public static verify(message: { [k: string]: any }): (string|null); + public consensusStates(request: ibc.core.client.v1.IQueryConsensusStatesRequest): Promise; /** - * Creates a QueryClientStatusRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns QueryClientStatusRequest + * Calls ConsensusStateHeights. + * @param request QueryConsensusStateHeightsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and QueryConsensusStateHeightsResponse */ - public static fromObject(object: { [k: string]: any }): ibc.core.client.v1.QueryClientStatusRequest; + public consensusStateHeights(request: ibc.core.client.v1.IQueryConsensusStateHeightsRequest, callback: ibc.core.client.v1.Query.ConsensusStateHeightsCallback): void; /** - * Creates a plain object from a QueryClientStatusRequest message. Also converts values to other types if specified. - * @param message QueryClientStatusRequest - * @param [options] Conversion options - * @returns Plain object + * Calls ConsensusStateHeights. + * @param request QueryConsensusStateHeightsRequest message or plain object + * @returns Promise */ - public static toObject(message: ibc.core.client.v1.QueryClientStatusRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public consensusStateHeights(request: ibc.core.client.v1.IQueryConsensusStateHeightsRequest): Promise; /** - * Converts this QueryClientStatusRequest to JSON. - * @returns JSON object + * Calls ClientStatus. + * @param request QueryClientStatusRequest message or plain object + * @param callback Node-style callback called with the error, if any, and QueryClientStatusResponse */ - public toJSON(): { [k: string]: any }; - } + public clientStatus(request: ibc.core.client.v1.IQueryClientStatusRequest, callback: ibc.core.client.v1.Query.ClientStatusCallback): void; - /** Properties of a QueryClientStatusResponse. */ - interface IQueryClientStatusResponse { + /** + * Calls ClientStatus. + * @param request QueryClientStatusRequest message or plain object + * @returns Promise + */ + public clientStatus(request: ibc.core.client.v1.IQueryClientStatusRequest): Promise; - /** QueryClientStatusResponse status */ - status?: (string|null); - } + /** + * Calls ClientParams. + * @param request QueryClientParamsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and QueryClientParamsResponse + */ + public clientParams(request: ibc.core.client.v1.IQueryClientParamsRequest, callback: ibc.core.client.v1.Query.ClientParamsCallback): void; - /** Represents a QueryClientStatusResponse. */ - class QueryClientStatusResponse implements IQueryClientStatusResponse { + /** + * Calls ClientParams. + * @param request QueryClientParamsRequest message or plain object + * @returns Promise + */ + public clientParams(request: ibc.core.client.v1.IQueryClientParamsRequest): Promise; /** - * Constructs a new QueryClientStatusResponse. - * @param [properties] Properties to set + * Calls UpgradedClientState. + * @param request QueryUpgradedClientStateRequest message or plain object + * @param callback Node-style callback called with the error, if any, and QueryUpgradedClientStateResponse */ - constructor(properties?: ibc.core.client.v1.IQueryClientStatusResponse); + public upgradedClientState(request: ibc.core.client.v1.IQueryUpgradedClientStateRequest, callback: ibc.core.client.v1.Query.UpgradedClientStateCallback): void; - /** QueryClientStatusResponse status. */ - public status: string; + /** + * Calls UpgradedClientState. + * @param request QueryUpgradedClientStateRequest message or plain object + * @returns Promise + */ + public upgradedClientState(request: ibc.core.client.v1.IQueryUpgradedClientStateRequest): Promise; /** - * Encodes the specified QueryClientStatusResponse message. Does not implicitly {@link ibc.core.client.v1.QueryClientStatusResponse.verify|verify} messages. - * @param message QueryClientStatusResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls UpgradedConsensusState. + * @param request QueryUpgradedConsensusStateRequest message or plain object + * @param callback Node-style callback called with the error, if any, and QueryUpgradedConsensusStateResponse */ - public static encode(message: ibc.core.client.v1.IQueryClientStatusResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public upgradedConsensusState(request: ibc.core.client.v1.IQueryUpgradedConsensusStateRequest, callback: ibc.core.client.v1.Query.UpgradedConsensusStateCallback): void; /** - * Encodes the specified QueryClientStatusResponse message, length delimited. Does not implicitly {@link ibc.core.client.v1.QueryClientStatusResponse.verify|verify} messages. - * @param message QueryClientStatusResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls UpgradedConsensusState. + * @param request QueryUpgradedConsensusStateRequest message or plain object + * @returns Promise */ - public static encodeDelimited(message: ibc.core.client.v1.IQueryClientStatusResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public upgradedConsensusState(request: ibc.core.client.v1.IQueryUpgradedConsensusStateRequest): Promise; + } + + namespace Query { /** - * Decodes a QueryClientStatusResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns QueryClientStatusResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link ibc.core.client.v1.Query#clientState}. + * @param error Error, if any + * @param [response] QueryClientStateResponse */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.client.v1.QueryClientStatusResponse; + type ClientStateCallback = (error: (Error|null), response?: ibc.core.client.v1.QueryClientStateResponse) => void; /** - * Decodes a QueryClientStatusResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns QueryClientStatusResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link ibc.core.client.v1.Query#clientStates}. + * @param error Error, if any + * @param [response] QueryClientStatesResponse */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.client.v1.QueryClientStatusResponse; + type ClientStatesCallback = (error: (Error|null), response?: ibc.core.client.v1.QueryClientStatesResponse) => void; /** - * Verifies a QueryClientStatusResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Callback as used by {@link ibc.core.client.v1.Query#consensusState}. + * @param error Error, if any + * @param [response] QueryConsensusStateResponse */ - public static verify(message: { [k: string]: any }): (string|null); + type ConsensusStateCallback = (error: (Error|null), response?: ibc.core.client.v1.QueryConsensusStateResponse) => void; /** - * Creates a QueryClientStatusResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns QueryClientStatusResponse + * Callback as used by {@link ibc.core.client.v1.Query#consensusStates}. + * @param error Error, if any + * @param [response] QueryConsensusStatesResponse */ - public static fromObject(object: { [k: string]: any }): ibc.core.client.v1.QueryClientStatusResponse; + type ConsensusStatesCallback = (error: (Error|null), response?: ibc.core.client.v1.QueryConsensusStatesResponse) => void; /** - * Creates a plain object from a QueryClientStatusResponse message. Also converts values to other types if specified. - * @param message QueryClientStatusResponse - * @param [options] Conversion options - * @returns Plain object + * Callback as used by {@link ibc.core.client.v1.Query#consensusStateHeights}. + * @param error Error, if any + * @param [response] QueryConsensusStateHeightsResponse */ - public static toObject(message: ibc.core.client.v1.QueryClientStatusResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + type ConsensusStateHeightsCallback = (error: (Error|null), response?: ibc.core.client.v1.QueryConsensusStateHeightsResponse) => void; /** - * Converts this QueryClientStatusResponse to JSON. - * @returns JSON object + * Callback as used by {@link ibc.core.client.v1.Query#clientStatus}. + * @param error Error, if any + * @param [response] QueryClientStatusResponse */ - public toJSON(): { [k: string]: any }; + type ClientStatusCallback = (error: (Error|null), response?: ibc.core.client.v1.QueryClientStatusResponse) => void; + + /** + * Callback as used by {@link ibc.core.client.v1.Query#clientParams}. + * @param error Error, if any + * @param [response] QueryClientParamsResponse + */ + type ClientParamsCallback = (error: (Error|null), response?: ibc.core.client.v1.QueryClientParamsResponse) => void; + + /** + * Callback as used by {@link ibc.core.client.v1.Query#upgradedClientState}. + * @param error Error, if any + * @param [response] QueryUpgradedClientStateResponse + */ + type UpgradedClientStateCallback = (error: (Error|null), response?: ibc.core.client.v1.QueryUpgradedClientStateResponse) => void; + + /** + * Callback as used by {@link ibc.core.client.v1.Query#upgradedConsensusState}. + * @param error Error, if any + * @param [response] QueryUpgradedConsensusStateResponse + */ + type UpgradedConsensusStateCallback = (error: (Error|null), response?: ibc.core.client.v1.QueryUpgradedConsensusStateResponse) => void; } - /** Properties of a QueryClientParamsRequest. */ - interface IQueryClientParamsRequest { + /** Properties of a QueryClientStateRequest. */ + interface IQueryClientStateRequest { + + /** QueryClientStateRequest client_id */ + client_id?: (string|null); } - /** Represents a QueryClientParamsRequest. */ - class QueryClientParamsRequest implements IQueryClientParamsRequest { + /** Represents a QueryClientStateRequest. */ + class QueryClientStateRequest implements IQueryClientStateRequest { /** - * Constructs a new QueryClientParamsRequest. + * Constructs a new QueryClientStateRequest. * @param [properties] Properties to set */ - constructor(properties?: ibc.core.client.v1.IQueryClientParamsRequest); + constructor(properties?: ibc.core.client.v1.IQueryClientStateRequest); + + /** QueryClientStateRequest client_id. */ + public client_id: string; /** - * Encodes the specified QueryClientParamsRequest message. Does not implicitly {@link ibc.core.client.v1.QueryClientParamsRequest.verify|verify} messages. - * @param message QueryClientParamsRequest message or plain object to encode + * Encodes the specified QueryClientStateRequest message. Does not implicitly {@link ibc.core.client.v1.QueryClientStateRequest.verify|verify} messages. + * @param message QueryClientStateRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.core.client.v1.IQueryClientParamsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.core.client.v1.IQueryClientStateRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified QueryClientParamsRequest message, length delimited. Does not implicitly {@link ibc.core.client.v1.QueryClientParamsRequest.verify|verify} messages. - * @param message QueryClientParamsRequest message or plain object to encode + * Encodes the specified QueryClientStateRequest message, length delimited. Does not implicitly {@link ibc.core.client.v1.QueryClientStateRequest.verify|verify} messages. + * @param message QueryClientStateRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.core.client.v1.IQueryClientParamsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.core.client.v1.IQueryClientStateRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a QueryClientParamsRequest message from the specified reader or buffer. + * Decodes a QueryClientStateRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns QueryClientParamsRequest + * @returns QueryClientStateRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.client.v1.QueryClientParamsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.client.v1.QueryClientStateRequest; /** - * Decodes a QueryClientParamsRequest message from the specified reader or buffer, length delimited. + * Decodes a QueryClientStateRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns QueryClientParamsRequest + * @returns QueryClientStateRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.client.v1.QueryClientParamsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.client.v1.QueryClientStateRequest; /** - * Verifies a QueryClientParamsRequest message. + * Verifies a QueryClientStateRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a QueryClientParamsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a QueryClientStateRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns QueryClientParamsRequest + * @returns QueryClientStateRequest */ - public static fromObject(object: { [k: string]: any }): ibc.core.client.v1.QueryClientParamsRequest; + public static fromObject(object: { [k: string]: any }): ibc.core.client.v1.QueryClientStateRequest; /** - * Creates a plain object from a QueryClientParamsRequest message. Also converts values to other types if specified. - * @param message QueryClientParamsRequest + * Creates a plain object from a QueryClientStateRequest message. Also converts values to other types if specified. + * @param message QueryClientStateRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.core.client.v1.QueryClientParamsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.core.client.v1.QueryClientStateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this QueryClientParamsRequest to JSON. + * Converts this QueryClientStateRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a QueryClientParamsResponse. */ - interface IQueryClientParamsResponse { + /** Properties of a QueryClientStateResponse. */ + interface IQueryClientStateResponse { - /** QueryClientParamsResponse params */ - params?: (ibc.core.client.v1.IParams|null); + /** QueryClientStateResponse client_state */ + client_state?: (google.protobuf.IAny|null); + + /** QueryClientStateResponse proof */ + proof?: (Uint8Array|null); + + /** QueryClientStateResponse proof_height */ + proof_height?: (ibc.core.client.v1.IHeight|null); } - /** Represents a QueryClientParamsResponse. */ - class QueryClientParamsResponse implements IQueryClientParamsResponse { + /** Represents a QueryClientStateResponse. */ + class QueryClientStateResponse implements IQueryClientStateResponse { /** - * Constructs a new QueryClientParamsResponse. + * Constructs a new QueryClientStateResponse. * @param [properties] Properties to set */ - constructor(properties?: ibc.core.client.v1.IQueryClientParamsResponse); + constructor(properties?: ibc.core.client.v1.IQueryClientStateResponse); - /** QueryClientParamsResponse params. */ - public params?: (ibc.core.client.v1.IParams|null); + /** QueryClientStateResponse client_state. */ + public client_state?: (google.protobuf.IAny|null); + + /** QueryClientStateResponse proof. */ + public proof: Uint8Array; + + /** QueryClientStateResponse proof_height. */ + public proof_height?: (ibc.core.client.v1.IHeight|null); /** - * Encodes the specified QueryClientParamsResponse message. Does not implicitly {@link ibc.core.client.v1.QueryClientParamsResponse.verify|verify} messages. - * @param message QueryClientParamsResponse message or plain object to encode + * Encodes the specified QueryClientStateResponse message. Does not implicitly {@link ibc.core.client.v1.QueryClientStateResponse.verify|verify} messages. + * @param message QueryClientStateResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.core.client.v1.IQueryClientParamsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.core.client.v1.IQueryClientStateResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified QueryClientParamsResponse message, length delimited. Does not implicitly {@link ibc.core.client.v1.QueryClientParamsResponse.verify|verify} messages. - * @param message QueryClientParamsResponse message or plain object to encode + * Encodes the specified QueryClientStateResponse message, length delimited. Does not implicitly {@link ibc.core.client.v1.QueryClientStateResponse.verify|verify} messages. + * @param message QueryClientStateResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.core.client.v1.IQueryClientParamsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.core.client.v1.IQueryClientStateResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a QueryClientParamsResponse message from the specified reader or buffer. + * Decodes a QueryClientStateResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns QueryClientParamsResponse + * @returns QueryClientStateResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.client.v1.QueryClientParamsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.client.v1.QueryClientStateResponse; /** - * Decodes a QueryClientParamsResponse message from the specified reader or buffer, length delimited. + * Decodes a QueryClientStateResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns QueryClientParamsResponse + * @returns QueryClientStateResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.client.v1.QueryClientParamsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.client.v1.QueryClientStateResponse; /** - * Verifies a QueryClientParamsResponse message. + * Verifies a QueryClientStateResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a QueryClientParamsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a QueryClientStateResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns QueryClientParamsResponse + * @returns QueryClientStateResponse */ - public static fromObject(object: { [k: string]: any }): ibc.core.client.v1.QueryClientParamsResponse; + public static fromObject(object: { [k: string]: any }): ibc.core.client.v1.QueryClientStateResponse; /** - * Creates a plain object from a QueryClientParamsResponse message. Also converts values to other types if specified. - * @param message QueryClientParamsResponse + * Creates a plain object from a QueryClientStateResponse message. Also converts values to other types if specified. + * @param message QueryClientStateResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.core.client.v1.QueryClientParamsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.core.client.v1.QueryClientStateResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this QueryClientParamsResponse to JSON. + * Converts this QueryClientStateResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a QueryUpgradedClientStateRequest. */ - interface IQueryUpgradedClientStateRequest { + /** Properties of a QueryClientStatesRequest. */ + interface IQueryClientStatesRequest { + + /** QueryClientStatesRequest pagination */ + pagination?: (cosmos.base.query.v1beta1.IPageRequest|null); } - /** Represents a QueryUpgradedClientStateRequest. */ - class QueryUpgradedClientStateRequest implements IQueryUpgradedClientStateRequest { + /** Represents a QueryClientStatesRequest. */ + class QueryClientStatesRequest implements IQueryClientStatesRequest { /** - * Constructs a new QueryUpgradedClientStateRequest. + * Constructs a new QueryClientStatesRequest. * @param [properties] Properties to set */ - constructor(properties?: ibc.core.client.v1.IQueryUpgradedClientStateRequest); + constructor(properties?: ibc.core.client.v1.IQueryClientStatesRequest); + + /** QueryClientStatesRequest pagination. */ + public pagination?: (cosmos.base.query.v1beta1.IPageRequest|null); /** - * Encodes the specified QueryUpgradedClientStateRequest message. Does not implicitly {@link ibc.core.client.v1.QueryUpgradedClientStateRequest.verify|verify} messages. - * @param message QueryUpgradedClientStateRequest message or plain object to encode + * Encodes the specified QueryClientStatesRequest message. Does not implicitly {@link ibc.core.client.v1.QueryClientStatesRequest.verify|verify} messages. + * @param message QueryClientStatesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.core.client.v1.IQueryUpgradedClientStateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.core.client.v1.IQueryClientStatesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified QueryUpgradedClientStateRequest message, length delimited. Does not implicitly {@link ibc.core.client.v1.QueryUpgradedClientStateRequest.verify|verify} messages. - * @param message QueryUpgradedClientStateRequest message or plain object to encode + * Encodes the specified QueryClientStatesRequest message, length delimited. Does not implicitly {@link ibc.core.client.v1.QueryClientStatesRequest.verify|verify} messages. + * @param message QueryClientStatesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.core.client.v1.IQueryUpgradedClientStateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.core.client.v1.IQueryClientStatesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a QueryUpgradedClientStateRequest message from the specified reader or buffer. + * Decodes a QueryClientStatesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns QueryUpgradedClientStateRequest + * @returns QueryClientStatesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.client.v1.QueryUpgradedClientStateRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.client.v1.QueryClientStatesRequest; /** - * Decodes a QueryUpgradedClientStateRequest message from the specified reader or buffer, length delimited. + * Decodes a QueryClientStatesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns QueryUpgradedClientStateRequest + * @returns QueryClientStatesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.client.v1.QueryUpgradedClientStateRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.client.v1.QueryClientStatesRequest; /** - * Verifies a QueryUpgradedClientStateRequest message. + * Verifies a QueryClientStatesRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a QueryUpgradedClientStateRequest message from a plain object. Also converts values to their respective internal types. + * Creates a QueryClientStatesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns QueryUpgradedClientStateRequest + * @returns QueryClientStatesRequest */ - public static fromObject(object: { [k: string]: any }): ibc.core.client.v1.QueryUpgradedClientStateRequest; + public static fromObject(object: { [k: string]: any }): ibc.core.client.v1.QueryClientStatesRequest; /** - * Creates a plain object from a QueryUpgradedClientStateRequest message. Also converts values to other types if specified. - * @param message QueryUpgradedClientStateRequest + * Creates a plain object from a QueryClientStatesRequest message. Also converts values to other types if specified. + * @param message QueryClientStatesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.core.client.v1.QueryUpgradedClientStateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.core.client.v1.QueryClientStatesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this QueryUpgradedClientStateRequest to JSON. + * Converts this QueryClientStatesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a QueryUpgradedClientStateResponse. */ - interface IQueryUpgradedClientStateResponse { + /** Properties of a QueryClientStatesResponse. */ + interface IQueryClientStatesResponse { - /** QueryUpgradedClientStateResponse upgraded_client_state */ - upgraded_client_state?: (google.protobuf.IAny|null); + /** QueryClientStatesResponse client_states */ + client_states?: (ibc.core.client.v1.IIdentifiedClientState[]|null); + + /** QueryClientStatesResponse pagination */ + pagination?: (cosmos.base.query.v1beta1.IPageResponse|null); } - /** Represents a QueryUpgradedClientStateResponse. */ - class QueryUpgradedClientStateResponse implements IQueryUpgradedClientStateResponse { + /** Represents a QueryClientStatesResponse. */ + class QueryClientStatesResponse implements IQueryClientStatesResponse { /** - * Constructs a new QueryUpgradedClientStateResponse. + * Constructs a new QueryClientStatesResponse. * @param [properties] Properties to set */ - constructor(properties?: ibc.core.client.v1.IQueryUpgradedClientStateResponse); + constructor(properties?: ibc.core.client.v1.IQueryClientStatesResponse); - /** QueryUpgradedClientStateResponse upgraded_client_state. */ - public upgraded_client_state?: (google.protobuf.IAny|null); + /** QueryClientStatesResponse client_states. */ + public client_states: ibc.core.client.v1.IIdentifiedClientState[]; + + /** QueryClientStatesResponse pagination. */ + public pagination?: (cosmos.base.query.v1beta1.IPageResponse|null); /** - * Encodes the specified QueryUpgradedClientStateResponse message. Does not implicitly {@link ibc.core.client.v1.QueryUpgradedClientStateResponse.verify|verify} messages. - * @param message QueryUpgradedClientStateResponse message or plain object to encode + * Encodes the specified QueryClientStatesResponse message. Does not implicitly {@link ibc.core.client.v1.QueryClientStatesResponse.verify|verify} messages. + * @param message QueryClientStatesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.core.client.v1.IQueryUpgradedClientStateResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.core.client.v1.IQueryClientStatesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified QueryUpgradedClientStateResponse message, length delimited. Does not implicitly {@link ibc.core.client.v1.QueryUpgradedClientStateResponse.verify|verify} messages. - * @param message QueryUpgradedClientStateResponse message or plain object to encode + * Encodes the specified QueryClientStatesResponse message, length delimited. Does not implicitly {@link ibc.core.client.v1.QueryClientStatesResponse.verify|verify} messages. + * @param message QueryClientStatesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.core.client.v1.IQueryUpgradedClientStateResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.core.client.v1.IQueryClientStatesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a QueryUpgradedClientStateResponse message from the specified reader or buffer. + * Decodes a QueryClientStatesResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns QueryUpgradedClientStateResponse + * @returns QueryClientStatesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.client.v1.QueryUpgradedClientStateResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.client.v1.QueryClientStatesResponse; /** - * Decodes a QueryUpgradedClientStateResponse message from the specified reader or buffer, length delimited. + * Decodes a QueryClientStatesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns QueryUpgradedClientStateResponse + * @returns QueryClientStatesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.client.v1.QueryUpgradedClientStateResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.client.v1.QueryClientStatesResponse; /** - * Verifies a QueryUpgradedClientStateResponse message. + * Verifies a QueryClientStatesResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a QueryUpgradedClientStateResponse message from a plain object. Also converts values to their respective internal types. + * Creates a QueryClientStatesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns QueryUpgradedClientStateResponse + * @returns QueryClientStatesResponse */ - public static fromObject(object: { [k: string]: any }): ibc.core.client.v1.QueryUpgradedClientStateResponse; + public static fromObject(object: { [k: string]: any }): ibc.core.client.v1.QueryClientStatesResponse; /** - * Creates a plain object from a QueryUpgradedClientStateResponse message. Also converts values to other types if specified. - * @param message QueryUpgradedClientStateResponse + * Creates a plain object from a QueryClientStatesResponse message. Also converts values to other types if specified. + * @param message QueryClientStatesResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.core.client.v1.QueryUpgradedClientStateResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.core.client.v1.QueryClientStatesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this QueryUpgradedClientStateResponse to JSON. + * Converts this QueryClientStatesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a QueryUpgradedConsensusStateRequest. */ - interface IQueryUpgradedConsensusStateRequest { + /** Properties of a QueryConsensusStateRequest. */ + interface IQueryConsensusStateRequest { + + /** QueryConsensusStateRequest client_id */ + client_id?: (string|null); + + /** QueryConsensusStateRequest revision_number */ + revision_number?: (Long|null); + + /** QueryConsensusStateRequest revision_height */ + revision_height?: (Long|null); + + /** QueryConsensusStateRequest latest_height */ + latest_height?: (boolean|null); } - /** Represents a QueryUpgradedConsensusStateRequest. */ - class QueryUpgradedConsensusStateRequest implements IQueryUpgradedConsensusStateRequest { + /** Represents a QueryConsensusStateRequest. */ + class QueryConsensusStateRequest implements IQueryConsensusStateRequest { /** - * Constructs a new QueryUpgradedConsensusStateRequest. + * Constructs a new QueryConsensusStateRequest. * @param [properties] Properties to set */ - constructor(properties?: ibc.core.client.v1.IQueryUpgradedConsensusStateRequest); + constructor(properties?: ibc.core.client.v1.IQueryConsensusStateRequest); + + /** QueryConsensusStateRequest client_id. */ + public client_id: string; + + /** QueryConsensusStateRequest revision_number. */ + public revision_number: Long; + + /** QueryConsensusStateRequest revision_height. */ + public revision_height: Long; + + /** QueryConsensusStateRequest latest_height. */ + public latest_height: boolean; /** - * Encodes the specified QueryUpgradedConsensusStateRequest message. Does not implicitly {@link ibc.core.client.v1.QueryUpgradedConsensusStateRequest.verify|verify} messages. - * @param message QueryUpgradedConsensusStateRequest message or plain object to encode + * Encodes the specified QueryConsensusStateRequest message. Does not implicitly {@link ibc.core.client.v1.QueryConsensusStateRequest.verify|verify} messages. + * @param message QueryConsensusStateRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.core.client.v1.IQueryUpgradedConsensusStateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.core.client.v1.IQueryConsensusStateRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified QueryUpgradedConsensusStateRequest message, length delimited. Does not implicitly {@link ibc.core.client.v1.QueryUpgradedConsensusStateRequest.verify|verify} messages. - * @param message QueryUpgradedConsensusStateRequest message or plain object to encode + * Encodes the specified QueryConsensusStateRequest message, length delimited. Does not implicitly {@link ibc.core.client.v1.QueryConsensusStateRequest.verify|verify} messages. + * @param message QueryConsensusStateRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.core.client.v1.IQueryUpgradedConsensusStateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.core.client.v1.IQueryConsensusStateRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a QueryUpgradedConsensusStateRequest message from the specified reader or buffer. + * Decodes a QueryConsensusStateRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns QueryUpgradedConsensusStateRequest + * @returns QueryConsensusStateRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.client.v1.QueryUpgradedConsensusStateRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.client.v1.QueryConsensusStateRequest; /** - * Decodes a QueryUpgradedConsensusStateRequest message from the specified reader or buffer, length delimited. + * Decodes a QueryConsensusStateRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns QueryUpgradedConsensusStateRequest + * @returns QueryConsensusStateRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.client.v1.QueryUpgradedConsensusStateRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.client.v1.QueryConsensusStateRequest; /** - * Verifies a QueryUpgradedConsensusStateRequest message. + * Verifies a QueryConsensusStateRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a QueryUpgradedConsensusStateRequest message from a plain object. Also converts values to their respective internal types. + * Creates a QueryConsensusStateRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns QueryUpgradedConsensusStateRequest + * @returns QueryConsensusStateRequest */ - public static fromObject(object: { [k: string]: any }): ibc.core.client.v1.QueryUpgradedConsensusStateRequest; + public static fromObject(object: { [k: string]: any }): ibc.core.client.v1.QueryConsensusStateRequest; /** - * Creates a plain object from a QueryUpgradedConsensusStateRequest message. Also converts values to other types if specified. - * @param message QueryUpgradedConsensusStateRequest + * Creates a plain object from a QueryConsensusStateRequest message. Also converts values to other types if specified. + * @param message QueryConsensusStateRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.core.client.v1.QueryUpgradedConsensusStateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.core.client.v1.QueryConsensusStateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this QueryUpgradedConsensusStateRequest to JSON. + * Converts this QueryConsensusStateRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a QueryUpgradedConsensusStateResponse. */ - interface IQueryUpgradedConsensusStateResponse { + /** Properties of a QueryConsensusStateResponse. */ + interface IQueryConsensusStateResponse { - /** QueryUpgradedConsensusStateResponse upgraded_consensus_state */ - upgraded_consensus_state?: (google.protobuf.IAny|null); + /** QueryConsensusStateResponse consensus_state */ + consensus_state?: (google.protobuf.IAny|null); + + /** QueryConsensusStateResponse proof */ + proof?: (Uint8Array|null); + + /** QueryConsensusStateResponse proof_height */ + proof_height?: (ibc.core.client.v1.IHeight|null); } - /** Represents a QueryUpgradedConsensusStateResponse. */ - class QueryUpgradedConsensusStateResponse implements IQueryUpgradedConsensusStateResponse { + /** Represents a QueryConsensusStateResponse. */ + class QueryConsensusStateResponse implements IQueryConsensusStateResponse { /** - * Constructs a new QueryUpgradedConsensusStateResponse. + * Constructs a new QueryConsensusStateResponse. * @param [properties] Properties to set */ - constructor(properties?: ibc.core.client.v1.IQueryUpgradedConsensusStateResponse); + constructor(properties?: ibc.core.client.v1.IQueryConsensusStateResponse); - /** QueryUpgradedConsensusStateResponse upgraded_consensus_state. */ - public upgraded_consensus_state?: (google.protobuf.IAny|null); + /** QueryConsensusStateResponse consensus_state. */ + public consensus_state?: (google.protobuf.IAny|null); + + /** QueryConsensusStateResponse proof. */ + public proof: Uint8Array; + + /** QueryConsensusStateResponse proof_height. */ + public proof_height?: (ibc.core.client.v1.IHeight|null); /** - * Encodes the specified QueryUpgradedConsensusStateResponse message. Does not implicitly {@link ibc.core.client.v1.QueryUpgradedConsensusStateResponse.verify|verify} messages. - * @param message QueryUpgradedConsensusStateResponse message or plain object to encode + * Encodes the specified QueryConsensusStateResponse message. Does not implicitly {@link ibc.core.client.v1.QueryConsensusStateResponse.verify|verify} messages. + * @param message QueryConsensusStateResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.core.client.v1.IQueryUpgradedConsensusStateResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.core.client.v1.IQueryConsensusStateResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified QueryUpgradedConsensusStateResponse message, length delimited. Does not implicitly {@link ibc.core.client.v1.QueryUpgradedConsensusStateResponse.verify|verify} messages. - * @param message QueryUpgradedConsensusStateResponse message or plain object to encode + * Encodes the specified QueryConsensusStateResponse message, length delimited. Does not implicitly {@link ibc.core.client.v1.QueryConsensusStateResponse.verify|verify} messages. + * @param message QueryConsensusStateResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.core.client.v1.IQueryUpgradedConsensusStateResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.core.client.v1.IQueryConsensusStateResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a QueryUpgradedConsensusStateResponse message from the specified reader or buffer. + * Decodes a QueryConsensusStateResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns QueryUpgradedConsensusStateResponse + * @returns QueryConsensusStateResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.client.v1.QueryUpgradedConsensusStateResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.client.v1.QueryConsensusStateResponse; /** - * Decodes a QueryUpgradedConsensusStateResponse message from the specified reader or buffer, length delimited. + * Decodes a QueryConsensusStateResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns QueryUpgradedConsensusStateResponse + * @returns QueryConsensusStateResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.client.v1.QueryUpgradedConsensusStateResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.client.v1.QueryConsensusStateResponse; /** - * Verifies a QueryUpgradedConsensusStateResponse message. + * Verifies a QueryConsensusStateResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a QueryUpgradedConsensusStateResponse message from a plain object. Also converts values to their respective internal types. + * Creates a QueryConsensusStateResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns QueryUpgradedConsensusStateResponse + * @returns QueryConsensusStateResponse */ - public static fromObject(object: { [k: string]: any }): ibc.core.client.v1.QueryUpgradedConsensusStateResponse; + public static fromObject(object: { [k: string]: any }): ibc.core.client.v1.QueryConsensusStateResponse; /** - * Creates a plain object from a QueryUpgradedConsensusStateResponse message. Also converts values to other types if specified. - * @param message QueryUpgradedConsensusStateResponse + * Creates a plain object from a QueryConsensusStateResponse message. Also converts values to other types if specified. + * @param message QueryConsensusStateResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.core.client.v1.QueryUpgradedConsensusStateResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.core.client.v1.QueryConsensusStateResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this QueryUpgradedConsensusStateResponse to JSON. + * Converts this QueryConsensusStateResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GenesisState. */ - interface IGenesisState { - - /** GenesisState clients */ - clients?: (ibc.core.client.v1.IIdentifiedClientState[]|null); - - /** GenesisState clients_consensus */ - clients_consensus?: (ibc.core.client.v1.IClientConsensusStates[]|null); - - /** GenesisState clients_metadata */ - clients_metadata?: (ibc.core.client.v1.IIdentifiedGenesisMetadata[]|null); - - /** GenesisState params */ - params?: (ibc.core.client.v1.IParams|null); + /** Properties of a QueryConsensusStatesRequest. */ + interface IQueryConsensusStatesRequest { - /** GenesisState create_localhost */ - create_localhost?: (boolean|null); + /** QueryConsensusStatesRequest client_id */ + client_id?: (string|null); - /** GenesisState next_client_sequence */ - next_client_sequence?: (Long|null); + /** QueryConsensusStatesRequest pagination */ + pagination?: (cosmos.base.query.v1beta1.IPageRequest|null); } - /** Represents a GenesisState. */ - class GenesisState implements IGenesisState { + /** Represents a QueryConsensusStatesRequest. */ + class QueryConsensusStatesRequest implements IQueryConsensusStatesRequest { /** - * Constructs a new GenesisState. + * Constructs a new QueryConsensusStatesRequest. * @param [properties] Properties to set */ - constructor(properties?: ibc.core.client.v1.IGenesisState); - - /** GenesisState clients. */ - public clients: ibc.core.client.v1.IIdentifiedClientState[]; - - /** GenesisState clients_consensus. */ - public clients_consensus: ibc.core.client.v1.IClientConsensusStates[]; - - /** GenesisState clients_metadata. */ - public clients_metadata: ibc.core.client.v1.IIdentifiedGenesisMetadata[]; - - /** GenesisState params. */ - public params?: (ibc.core.client.v1.IParams|null); + constructor(properties?: ibc.core.client.v1.IQueryConsensusStatesRequest); - /** GenesisState create_localhost. */ - public create_localhost: boolean; + /** QueryConsensusStatesRequest client_id. */ + public client_id: string; - /** GenesisState next_client_sequence. */ - public next_client_sequence: Long; + /** QueryConsensusStatesRequest pagination. */ + public pagination?: (cosmos.base.query.v1beta1.IPageRequest|null); /** - * Encodes the specified GenesisState message. Does not implicitly {@link ibc.core.client.v1.GenesisState.verify|verify} messages. - * @param message GenesisState message or plain object to encode + * Encodes the specified QueryConsensusStatesRequest message. Does not implicitly {@link ibc.core.client.v1.QueryConsensusStatesRequest.verify|verify} messages. + * @param message QueryConsensusStatesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.core.client.v1.IGenesisState, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.core.client.v1.IQueryConsensusStatesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GenesisState message, length delimited. Does not implicitly {@link ibc.core.client.v1.GenesisState.verify|verify} messages. - * @param message GenesisState message or plain object to encode + * Encodes the specified QueryConsensusStatesRequest message, length delimited. Does not implicitly {@link ibc.core.client.v1.QueryConsensusStatesRequest.verify|verify} messages. + * @param message QueryConsensusStatesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.core.client.v1.IGenesisState, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.core.client.v1.IQueryConsensusStatesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GenesisState message from the specified reader or buffer. + * Decodes a QueryConsensusStatesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GenesisState + * @returns QueryConsensusStatesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.client.v1.GenesisState; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.client.v1.QueryConsensusStatesRequest; /** - * Decodes a GenesisState message from the specified reader or buffer, length delimited. + * Decodes a QueryConsensusStatesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GenesisState + * @returns QueryConsensusStatesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.client.v1.GenesisState; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.client.v1.QueryConsensusStatesRequest; /** - * Verifies a GenesisState message. + * Verifies a QueryConsensusStatesRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GenesisState message from a plain object. Also converts values to their respective internal types. + * Creates a QueryConsensusStatesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GenesisState + * @returns QueryConsensusStatesRequest */ - public static fromObject(object: { [k: string]: any }): ibc.core.client.v1.GenesisState; + public static fromObject(object: { [k: string]: any }): ibc.core.client.v1.QueryConsensusStatesRequest; /** - * Creates a plain object from a GenesisState message. Also converts values to other types if specified. - * @param message GenesisState + * Creates a plain object from a QueryConsensusStatesRequest message. Also converts values to other types if specified. + * @param message QueryConsensusStatesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.core.client.v1.GenesisState, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.core.client.v1.QueryConsensusStatesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GenesisState to JSON. + * Converts this QueryConsensusStatesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GenesisMetadata. */ - interface IGenesisMetadata { + /** Properties of a QueryConsensusStatesResponse. */ + interface IQueryConsensusStatesResponse { - /** GenesisMetadata key */ - key?: (Uint8Array|null); + /** QueryConsensusStatesResponse consensus_states */ + consensus_states?: (ibc.core.client.v1.IConsensusStateWithHeight[]|null); - /** GenesisMetadata value */ - value?: (Uint8Array|null); + /** QueryConsensusStatesResponse pagination */ + pagination?: (cosmos.base.query.v1beta1.IPageResponse|null); } - /** Represents a GenesisMetadata. */ - class GenesisMetadata implements IGenesisMetadata { + /** Represents a QueryConsensusStatesResponse. */ + class QueryConsensusStatesResponse implements IQueryConsensusStatesResponse { /** - * Constructs a new GenesisMetadata. + * Constructs a new QueryConsensusStatesResponse. * @param [properties] Properties to set */ - constructor(properties?: ibc.core.client.v1.IGenesisMetadata); + constructor(properties?: ibc.core.client.v1.IQueryConsensusStatesResponse); - /** GenesisMetadata key. */ - public key: Uint8Array; + /** QueryConsensusStatesResponse consensus_states. */ + public consensus_states: ibc.core.client.v1.IConsensusStateWithHeight[]; - /** GenesisMetadata value. */ - public value: Uint8Array; + /** QueryConsensusStatesResponse pagination. */ + public pagination?: (cosmos.base.query.v1beta1.IPageResponse|null); /** - * Encodes the specified GenesisMetadata message. Does not implicitly {@link ibc.core.client.v1.GenesisMetadata.verify|verify} messages. - * @param message GenesisMetadata message or plain object to encode + * Encodes the specified QueryConsensusStatesResponse message. Does not implicitly {@link ibc.core.client.v1.QueryConsensusStatesResponse.verify|verify} messages. + * @param message QueryConsensusStatesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.core.client.v1.IGenesisMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.core.client.v1.IQueryConsensusStatesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GenesisMetadata message, length delimited. Does not implicitly {@link ibc.core.client.v1.GenesisMetadata.verify|verify} messages. - * @param message GenesisMetadata message or plain object to encode + * Encodes the specified QueryConsensusStatesResponse message, length delimited. Does not implicitly {@link ibc.core.client.v1.QueryConsensusStatesResponse.verify|verify} messages. + * @param message QueryConsensusStatesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.core.client.v1.IGenesisMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.core.client.v1.IQueryConsensusStatesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GenesisMetadata message from the specified reader or buffer. + * Decodes a QueryConsensusStatesResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GenesisMetadata + * @returns QueryConsensusStatesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.client.v1.GenesisMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.client.v1.QueryConsensusStatesResponse; /** - * Decodes a GenesisMetadata message from the specified reader or buffer, length delimited. + * Decodes a QueryConsensusStatesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GenesisMetadata + * @returns QueryConsensusStatesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.client.v1.GenesisMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.client.v1.QueryConsensusStatesResponse; /** - * Verifies a GenesisMetadata message. + * Verifies a QueryConsensusStatesResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GenesisMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a QueryConsensusStatesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GenesisMetadata + * @returns QueryConsensusStatesResponse */ - public static fromObject(object: { [k: string]: any }): ibc.core.client.v1.GenesisMetadata; + public static fromObject(object: { [k: string]: any }): ibc.core.client.v1.QueryConsensusStatesResponse; /** - * Creates a plain object from a GenesisMetadata message. Also converts values to other types if specified. - * @param message GenesisMetadata + * Creates a plain object from a QueryConsensusStatesResponse message. Also converts values to other types if specified. + * @param message QueryConsensusStatesResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.core.client.v1.GenesisMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.core.client.v1.QueryConsensusStatesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GenesisMetadata to JSON. + * Converts this QueryConsensusStatesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an IdentifiedGenesisMetadata. */ - interface IIdentifiedGenesisMetadata { + /** Properties of a QueryConsensusStateHeightsRequest. */ + interface IQueryConsensusStateHeightsRequest { - /** IdentifiedGenesisMetadata client_id */ + /** QueryConsensusStateHeightsRequest client_id */ client_id?: (string|null); - /** IdentifiedGenesisMetadata client_metadata */ - client_metadata?: (ibc.core.client.v1.IGenesisMetadata[]|null); + /** QueryConsensusStateHeightsRequest pagination */ + pagination?: (cosmos.base.query.v1beta1.IPageRequest|null); } - /** Represents an IdentifiedGenesisMetadata. */ - class IdentifiedGenesisMetadata implements IIdentifiedGenesisMetadata { + /** Represents a QueryConsensusStateHeightsRequest. */ + class QueryConsensusStateHeightsRequest implements IQueryConsensusStateHeightsRequest { /** - * Constructs a new IdentifiedGenesisMetadata. + * Constructs a new QueryConsensusStateHeightsRequest. * @param [properties] Properties to set */ - constructor(properties?: ibc.core.client.v1.IIdentifiedGenesisMetadata); + constructor(properties?: ibc.core.client.v1.IQueryConsensusStateHeightsRequest); - /** IdentifiedGenesisMetadata client_id. */ + /** QueryConsensusStateHeightsRequest client_id. */ public client_id: string; - /** IdentifiedGenesisMetadata client_metadata. */ - public client_metadata: ibc.core.client.v1.IGenesisMetadata[]; + /** QueryConsensusStateHeightsRequest pagination. */ + public pagination?: (cosmos.base.query.v1beta1.IPageRequest|null); /** - * Encodes the specified IdentifiedGenesisMetadata message. Does not implicitly {@link ibc.core.client.v1.IdentifiedGenesisMetadata.verify|verify} messages. - * @param message IdentifiedGenesisMetadata message or plain object to encode + * Encodes the specified QueryConsensusStateHeightsRequest message. Does not implicitly {@link ibc.core.client.v1.QueryConsensusStateHeightsRequest.verify|verify} messages. + * @param message QueryConsensusStateHeightsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.core.client.v1.IIdentifiedGenesisMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.core.client.v1.IQueryConsensusStateHeightsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified IdentifiedGenesisMetadata message, length delimited. Does not implicitly {@link ibc.core.client.v1.IdentifiedGenesisMetadata.verify|verify} messages. - * @param message IdentifiedGenesisMetadata message or plain object to encode + * Encodes the specified QueryConsensusStateHeightsRequest message, length delimited. Does not implicitly {@link ibc.core.client.v1.QueryConsensusStateHeightsRequest.verify|verify} messages. + * @param message QueryConsensusStateHeightsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.core.client.v1.IIdentifiedGenesisMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.core.client.v1.IQueryConsensusStateHeightsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an IdentifiedGenesisMetadata message from the specified reader or buffer. + * Decodes a QueryConsensusStateHeightsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns IdentifiedGenesisMetadata + * @returns QueryConsensusStateHeightsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.client.v1.IdentifiedGenesisMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.client.v1.QueryConsensusStateHeightsRequest; /** - * Decodes an IdentifiedGenesisMetadata message from the specified reader or buffer, length delimited. + * Decodes a QueryConsensusStateHeightsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns IdentifiedGenesisMetadata + * @returns QueryConsensusStateHeightsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.client.v1.IdentifiedGenesisMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.client.v1.QueryConsensusStateHeightsRequest; /** - * Verifies an IdentifiedGenesisMetadata message. + * Verifies a QueryConsensusStateHeightsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an IdentifiedGenesisMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a QueryConsensusStateHeightsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns IdentifiedGenesisMetadata + * @returns QueryConsensusStateHeightsRequest */ - public static fromObject(object: { [k: string]: any }): ibc.core.client.v1.IdentifiedGenesisMetadata; + public static fromObject(object: { [k: string]: any }): ibc.core.client.v1.QueryConsensusStateHeightsRequest; /** - * Creates a plain object from an IdentifiedGenesisMetadata message. Also converts values to other types if specified. - * @param message IdentifiedGenesisMetadata + * Creates a plain object from a QueryConsensusStateHeightsRequest message. Also converts values to other types if specified. + * @param message QueryConsensusStateHeightsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.core.client.v1.IdentifiedGenesisMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.core.client.v1.QueryConsensusStateHeightsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this IdentifiedGenesisMetadata to JSON. + * Converts this QueryConsensusStateHeightsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - } - } - - /** Namespace commitment. */ - namespace commitment { - /** Namespace v1. */ - namespace v1 { + /** Properties of a QueryConsensusStateHeightsResponse. */ + interface IQueryConsensusStateHeightsResponse { - /** Properties of a MerkleRoot. */ - interface IMerkleRoot { + /** QueryConsensusStateHeightsResponse consensus_state_heights */ + consensus_state_heights?: (ibc.core.client.v1.IHeight[]|null); - /** MerkleRoot hash */ - hash?: (Uint8Array|null); + /** QueryConsensusStateHeightsResponse pagination */ + pagination?: (cosmos.base.query.v1beta1.IPageResponse|null); } - /** Represents a MerkleRoot. */ - class MerkleRoot implements IMerkleRoot { + /** Represents a QueryConsensusStateHeightsResponse. */ + class QueryConsensusStateHeightsResponse implements IQueryConsensusStateHeightsResponse { /** - * Constructs a new MerkleRoot. + * Constructs a new QueryConsensusStateHeightsResponse. * @param [properties] Properties to set */ - constructor(properties?: ibc.core.commitment.v1.IMerkleRoot); + constructor(properties?: ibc.core.client.v1.IQueryConsensusStateHeightsResponse); - /** MerkleRoot hash. */ - public hash: Uint8Array; + /** QueryConsensusStateHeightsResponse consensus_state_heights. */ + public consensus_state_heights: ibc.core.client.v1.IHeight[]; + + /** QueryConsensusStateHeightsResponse pagination. */ + public pagination?: (cosmos.base.query.v1beta1.IPageResponse|null); /** - * Encodes the specified MerkleRoot message. Does not implicitly {@link ibc.core.commitment.v1.MerkleRoot.verify|verify} messages. - * @param message MerkleRoot message or plain object to encode + * Encodes the specified QueryConsensusStateHeightsResponse message. Does not implicitly {@link ibc.core.client.v1.QueryConsensusStateHeightsResponse.verify|verify} messages. + * @param message QueryConsensusStateHeightsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.core.commitment.v1.IMerkleRoot, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.core.client.v1.IQueryConsensusStateHeightsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MerkleRoot message, length delimited. Does not implicitly {@link ibc.core.commitment.v1.MerkleRoot.verify|verify} messages. - * @param message MerkleRoot message or plain object to encode + * Encodes the specified QueryConsensusStateHeightsResponse message, length delimited. Does not implicitly {@link ibc.core.client.v1.QueryConsensusStateHeightsResponse.verify|verify} messages. + * @param message QueryConsensusStateHeightsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.core.commitment.v1.IMerkleRoot, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.core.client.v1.IQueryConsensusStateHeightsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MerkleRoot message from the specified reader or buffer. + * Decodes a QueryConsensusStateHeightsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MerkleRoot + * @returns QueryConsensusStateHeightsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.commitment.v1.MerkleRoot; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.client.v1.QueryConsensusStateHeightsResponse; /** - * Decodes a MerkleRoot message from the specified reader or buffer, length delimited. + * Decodes a QueryConsensusStateHeightsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MerkleRoot + * @returns QueryConsensusStateHeightsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.commitment.v1.MerkleRoot; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.client.v1.QueryConsensusStateHeightsResponse; /** - * Verifies a MerkleRoot message. + * Verifies a QueryConsensusStateHeightsResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a MerkleRoot message from a plain object. Also converts values to their respective internal types. + * Creates a QueryConsensusStateHeightsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MerkleRoot + * @returns QueryConsensusStateHeightsResponse */ - public static fromObject(object: { [k: string]: any }): ibc.core.commitment.v1.MerkleRoot; + public static fromObject(object: { [k: string]: any }): ibc.core.client.v1.QueryConsensusStateHeightsResponse; /** - * Creates a plain object from a MerkleRoot message. Also converts values to other types if specified. - * @param message MerkleRoot + * Creates a plain object from a QueryConsensusStateHeightsResponse message. Also converts values to other types if specified. + * @param message QueryConsensusStateHeightsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.core.commitment.v1.MerkleRoot, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.core.client.v1.QueryConsensusStateHeightsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MerkleRoot to JSON. + * Converts this QueryConsensusStateHeightsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a MerklePrefix. */ - interface IMerklePrefix { + /** Properties of a QueryClientStatusRequest. */ + interface IQueryClientStatusRequest { - /** MerklePrefix key_prefix */ - key_prefix?: (Uint8Array|null); + /** QueryClientStatusRequest client_id */ + client_id?: (string|null); } - /** Represents a MerklePrefix. */ - class MerklePrefix implements IMerklePrefix { + /** Represents a QueryClientStatusRequest. */ + class QueryClientStatusRequest implements IQueryClientStatusRequest { /** - * Constructs a new MerklePrefix. + * Constructs a new QueryClientStatusRequest. * @param [properties] Properties to set */ - constructor(properties?: ibc.core.commitment.v1.IMerklePrefix); + constructor(properties?: ibc.core.client.v1.IQueryClientStatusRequest); - /** MerklePrefix key_prefix. */ - public key_prefix: Uint8Array; + /** QueryClientStatusRequest client_id. */ + public client_id: string; /** - * Encodes the specified MerklePrefix message. Does not implicitly {@link ibc.core.commitment.v1.MerklePrefix.verify|verify} messages. - * @param message MerklePrefix message or plain object to encode + * Encodes the specified QueryClientStatusRequest message. Does not implicitly {@link ibc.core.client.v1.QueryClientStatusRequest.verify|verify} messages. + * @param message QueryClientStatusRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.core.commitment.v1.IMerklePrefix, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.core.client.v1.IQueryClientStatusRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MerklePrefix message, length delimited. Does not implicitly {@link ibc.core.commitment.v1.MerklePrefix.verify|verify} messages. - * @param message MerklePrefix message or plain object to encode + * Encodes the specified QueryClientStatusRequest message, length delimited. Does not implicitly {@link ibc.core.client.v1.QueryClientStatusRequest.verify|verify} messages. + * @param message QueryClientStatusRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.core.commitment.v1.IMerklePrefix, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.core.client.v1.IQueryClientStatusRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MerklePrefix message from the specified reader or buffer. + * Decodes a QueryClientStatusRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MerklePrefix + * @returns QueryClientStatusRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.commitment.v1.MerklePrefix; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.client.v1.QueryClientStatusRequest; /** - * Decodes a MerklePrefix message from the specified reader or buffer, length delimited. + * Decodes a QueryClientStatusRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MerklePrefix + * @returns QueryClientStatusRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.commitment.v1.MerklePrefix; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.client.v1.QueryClientStatusRequest; /** - * Verifies a MerklePrefix message. + * Verifies a QueryClientStatusRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a MerklePrefix message from a plain object. Also converts values to their respective internal types. + * Creates a QueryClientStatusRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MerklePrefix + * @returns QueryClientStatusRequest */ - public static fromObject(object: { [k: string]: any }): ibc.core.commitment.v1.MerklePrefix; + public static fromObject(object: { [k: string]: any }): ibc.core.client.v1.QueryClientStatusRequest; /** - * Creates a plain object from a MerklePrefix message. Also converts values to other types if specified. - * @param message MerklePrefix + * Creates a plain object from a QueryClientStatusRequest message. Also converts values to other types if specified. + * @param message QueryClientStatusRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.core.commitment.v1.MerklePrefix, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.core.client.v1.QueryClientStatusRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MerklePrefix to JSON. + * Converts this QueryClientStatusRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a MerklePath. */ - interface IMerklePath { + /** Properties of a QueryClientStatusResponse. */ + interface IQueryClientStatusResponse { - /** MerklePath key_path */ - key_path?: (string[]|null); + /** QueryClientStatusResponse status */ + status?: (string|null); } - /** Represents a MerklePath. */ - class MerklePath implements IMerklePath { + /** Represents a QueryClientStatusResponse. */ + class QueryClientStatusResponse implements IQueryClientStatusResponse { /** - * Constructs a new MerklePath. + * Constructs a new QueryClientStatusResponse. * @param [properties] Properties to set */ - constructor(properties?: ibc.core.commitment.v1.IMerklePath); + constructor(properties?: ibc.core.client.v1.IQueryClientStatusResponse); - /** MerklePath key_path. */ - public key_path: string[]; + /** QueryClientStatusResponse status. */ + public status: string; /** - * Encodes the specified MerklePath message. Does not implicitly {@link ibc.core.commitment.v1.MerklePath.verify|verify} messages. - * @param message MerklePath message or plain object to encode + * Encodes the specified QueryClientStatusResponse message. Does not implicitly {@link ibc.core.client.v1.QueryClientStatusResponse.verify|verify} messages. + * @param message QueryClientStatusResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.core.commitment.v1.IMerklePath, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.core.client.v1.IQueryClientStatusResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MerklePath message, length delimited. Does not implicitly {@link ibc.core.commitment.v1.MerklePath.verify|verify} messages. - * @param message MerklePath message or plain object to encode + * Encodes the specified QueryClientStatusResponse message, length delimited. Does not implicitly {@link ibc.core.client.v1.QueryClientStatusResponse.verify|verify} messages. + * @param message QueryClientStatusResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.core.commitment.v1.IMerklePath, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.core.client.v1.IQueryClientStatusResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MerklePath message from the specified reader or buffer. + * Decodes a QueryClientStatusResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MerklePath + * @returns QueryClientStatusResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.commitment.v1.MerklePath; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.client.v1.QueryClientStatusResponse; /** - * Decodes a MerklePath message from the specified reader or buffer, length delimited. + * Decodes a QueryClientStatusResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MerklePath + * @returns QueryClientStatusResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.commitment.v1.MerklePath; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.client.v1.QueryClientStatusResponse; /** - * Verifies a MerklePath message. + * Verifies a QueryClientStatusResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a MerklePath message from a plain object. Also converts values to their respective internal types. + * Creates a QueryClientStatusResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MerklePath + * @returns QueryClientStatusResponse */ - public static fromObject(object: { [k: string]: any }): ibc.core.commitment.v1.MerklePath; + public static fromObject(object: { [k: string]: any }): ibc.core.client.v1.QueryClientStatusResponse; /** - * Creates a plain object from a MerklePath message. Also converts values to other types if specified. - * @param message MerklePath + * Creates a plain object from a QueryClientStatusResponse message. Also converts values to other types if specified. + * @param message QueryClientStatusResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.core.commitment.v1.MerklePath, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.core.client.v1.QueryClientStatusResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MerklePath to JSON. + * Converts this QueryClientStatusResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a MerkleProof. */ - interface IMerkleProof { - - /** MerkleProof proofs */ - proofs?: (ics23.ICommitmentProof[]|null); + /** Properties of a QueryClientParamsRequest. */ + interface IQueryClientParamsRequest { } - /** Represents a MerkleProof. */ - class MerkleProof implements IMerkleProof { + /** Represents a QueryClientParamsRequest. */ + class QueryClientParamsRequest implements IQueryClientParamsRequest { /** - * Constructs a new MerkleProof. + * Constructs a new QueryClientParamsRequest. * @param [properties] Properties to set */ - constructor(properties?: ibc.core.commitment.v1.IMerkleProof); - - /** MerkleProof proofs. */ - public proofs: ics23.ICommitmentProof[]; + constructor(properties?: ibc.core.client.v1.IQueryClientParamsRequest); /** - * Encodes the specified MerkleProof message. Does not implicitly {@link ibc.core.commitment.v1.MerkleProof.verify|verify} messages. - * @param message MerkleProof message or plain object to encode + * Encodes the specified QueryClientParamsRequest message. Does not implicitly {@link ibc.core.client.v1.QueryClientParamsRequest.verify|verify} messages. + * @param message QueryClientParamsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.core.commitment.v1.IMerkleProof, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.core.client.v1.IQueryClientParamsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MerkleProof message, length delimited. Does not implicitly {@link ibc.core.commitment.v1.MerkleProof.verify|verify} messages. - * @param message MerkleProof message or plain object to encode + * Encodes the specified QueryClientParamsRequest message, length delimited. Does not implicitly {@link ibc.core.client.v1.QueryClientParamsRequest.verify|verify} messages. + * @param message QueryClientParamsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.core.commitment.v1.IMerkleProof, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.core.client.v1.IQueryClientParamsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MerkleProof message from the specified reader or buffer. + * Decodes a QueryClientParamsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MerkleProof + * @returns QueryClientParamsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.commitment.v1.MerkleProof; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.client.v1.QueryClientParamsRequest; /** - * Decodes a MerkleProof message from the specified reader or buffer, length delimited. + * Decodes a QueryClientParamsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MerkleProof + * @returns QueryClientParamsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.commitment.v1.MerkleProof; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.client.v1.QueryClientParamsRequest; /** - * Verifies a MerkleProof message. + * Verifies a QueryClientParamsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a MerkleProof message from a plain object. Also converts values to their respective internal types. + * Creates a QueryClientParamsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MerkleProof + * @returns QueryClientParamsRequest */ - public static fromObject(object: { [k: string]: any }): ibc.core.commitment.v1.MerkleProof; + public static fromObject(object: { [k: string]: any }): ibc.core.client.v1.QueryClientParamsRequest; /** - * Creates a plain object from a MerkleProof message. Also converts values to other types if specified. - * @param message MerkleProof + * Creates a plain object from a QueryClientParamsRequest message. Also converts values to other types if specified. + * @param message QueryClientParamsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.core.commitment.v1.MerkleProof, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.core.client.v1.QueryClientParamsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MerkleProof to JSON. + * Converts this QueryClientParamsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - } - } - - /** Namespace connection. */ - namespace connection { - - /** Namespace v1. */ - namespace v1 { - - /** Represents a Msg */ - class Msg extends $protobuf.rpc.Service { - - /** - * Constructs a new Msg service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); - - /** - * Calls ConnectionOpenInit. - * @param request MsgConnectionOpenInit message or plain object - * @param callback Node-style callback called with the error, if any, and MsgConnectionOpenInitResponse - */ - public connectionOpenInit(request: ibc.core.connection.v1.IMsgConnectionOpenInit, callback: ibc.core.connection.v1.Msg.ConnectionOpenInitCallback): void; - - /** - * Calls ConnectionOpenInit. - * @param request MsgConnectionOpenInit message or plain object - * @returns Promise - */ - public connectionOpenInit(request: ibc.core.connection.v1.IMsgConnectionOpenInit): Promise; - - /** - * Calls ConnectionOpenTry. - * @param request MsgConnectionOpenTry message or plain object - * @param callback Node-style callback called with the error, if any, and MsgConnectionOpenTryResponse - */ - public connectionOpenTry(request: ibc.core.connection.v1.IMsgConnectionOpenTry, callback: ibc.core.connection.v1.Msg.ConnectionOpenTryCallback): void; - - /** - * Calls ConnectionOpenTry. - * @param request MsgConnectionOpenTry message or plain object - * @returns Promise - */ - public connectionOpenTry(request: ibc.core.connection.v1.IMsgConnectionOpenTry): Promise; - - /** - * Calls ConnectionOpenAck. - * @param request MsgConnectionOpenAck message or plain object - * @param callback Node-style callback called with the error, if any, and MsgConnectionOpenAckResponse - */ - public connectionOpenAck(request: ibc.core.connection.v1.IMsgConnectionOpenAck, callback: ibc.core.connection.v1.Msg.ConnectionOpenAckCallback): void; - - /** - * Calls ConnectionOpenAck. - * @param request MsgConnectionOpenAck message or plain object - * @returns Promise - */ - public connectionOpenAck(request: ibc.core.connection.v1.IMsgConnectionOpenAck): Promise; - - /** - * Calls ConnectionOpenConfirm. - * @param request MsgConnectionOpenConfirm message or plain object - * @param callback Node-style callback called with the error, if any, and MsgConnectionOpenConfirmResponse - */ - public connectionOpenConfirm(request: ibc.core.connection.v1.IMsgConnectionOpenConfirm, callback: ibc.core.connection.v1.Msg.ConnectionOpenConfirmCallback): void; - - /** - * Calls ConnectionOpenConfirm. - * @param request MsgConnectionOpenConfirm message or plain object - * @returns Promise - */ - public connectionOpenConfirm(request: ibc.core.connection.v1.IMsgConnectionOpenConfirm): Promise; - } - - namespace Msg { - - /** - * Callback as used by {@link ibc.core.connection.v1.Msg#connectionOpenInit}. - * @param error Error, if any - * @param [response] MsgConnectionOpenInitResponse - */ - type ConnectionOpenInitCallback = (error: (Error|null), response?: ibc.core.connection.v1.MsgConnectionOpenInitResponse) => void; - - /** - * Callback as used by {@link ibc.core.connection.v1.Msg#connectionOpenTry}. - * @param error Error, if any - * @param [response] MsgConnectionOpenTryResponse - */ - type ConnectionOpenTryCallback = (error: (Error|null), response?: ibc.core.connection.v1.MsgConnectionOpenTryResponse) => void; - - /** - * Callback as used by {@link ibc.core.connection.v1.Msg#connectionOpenAck}. - * @param error Error, if any - * @param [response] MsgConnectionOpenAckResponse - */ - type ConnectionOpenAckCallback = (error: (Error|null), response?: ibc.core.connection.v1.MsgConnectionOpenAckResponse) => void; - - /** - * Callback as used by {@link ibc.core.connection.v1.Msg#connectionOpenConfirm}. - * @param error Error, if any - * @param [response] MsgConnectionOpenConfirmResponse - */ - type ConnectionOpenConfirmCallback = (error: (Error|null), response?: ibc.core.connection.v1.MsgConnectionOpenConfirmResponse) => void; - } - - /** Properties of a MsgConnectionOpenInit. */ - interface IMsgConnectionOpenInit { - - /** MsgConnectionOpenInit client_id */ - client_id?: (string|null); - - /** MsgConnectionOpenInit counterparty */ - counterparty?: (ibc.core.connection.v1.ICounterparty|null); - - /** MsgConnectionOpenInit version */ - version?: (ibc.core.connection.v1.IVersion|null); - /** MsgConnectionOpenInit delay_period */ - delay_period?: (Long|null); + /** Properties of a QueryClientParamsResponse. */ + interface IQueryClientParamsResponse { - /** MsgConnectionOpenInit signer */ - signer?: (string|null); + /** QueryClientParamsResponse params */ + params?: (ibc.core.client.v1.IParams|null); } - /** Represents a MsgConnectionOpenInit. */ - class MsgConnectionOpenInit implements IMsgConnectionOpenInit { + /** Represents a QueryClientParamsResponse. */ + class QueryClientParamsResponse implements IQueryClientParamsResponse { /** - * Constructs a new MsgConnectionOpenInit. + * Constructs a new QueryClientParamsResponse. * @param [properties] Properties to set */ - constructor(properties?: ibc.core.connection.v1.IMsgConnectionOpenInit); - - /** MsgConnectionOpenInit client_id. */ - public client_id: string; - - /** MsgConnectionOpenInit counterparty. */ - public counterparty?: (ibc.core.connection.v1.ICounterparty|null); - - /** MsgConnectionOpenInit version. */ - public version?: (ibc.core.connection.v1.IVersion|null); - - /** MsgConnectionOpenInit delay_period. */ - public delay_period: Long; + constructor(properties?: ibc.core.client.v1.IQueryClientParamsResponse); - /** MsgConnectionOpenInit signer. */ - public signer: string; + /** QueryClientParamsResponse params. */ + public params?: (ibc.core.client.v1.IParams|null); /** - * Encodes the specified MsgConnectionOpenInit message. Does not implicitly {@link ibc.core.connection.v1.MsgConnectionOpenInit.verify|verify} messages. - * @param message MsgConnectionOpenInit message or plain object to encode + * Encodes the specified QueryClientParamsResponse message. Does not implicitly {@link ibc.core.client.v1.QueryClientParamsResponse.verify|verify} messages. + * @param message QueryClientParamsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.core.connection.v1.IMsgConnectionOpenInit, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.core.client.v1.IQueryClientParamsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MsgConnectionOpenInit message, length delimited. Does not implicitly {@link ibc.core.connection.v1.MsgConnectionOpenInit.verify|verify} messages. - * @param message MsgConnectionOpenInit message or plain object to encode + * Encodes the specified QueryClientParamsResponse message, length delimited. Does not implicitly {@link ibc.core.client.v1.QueryClientParamsResponse.verify|verify} messages. + * @param message QueryClientParamsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.core.connection.v1.IMsgConnectionOpenInit, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.core.client.v1.IQueryClientParamsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MsgConnectionOpenInit message from the specified reader or buffer. + * Decodes a QueryClientParamsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MsgConnectionOpenInit + * @returns QueryClientParamsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.connection.v1.MsgConnectionOpenInit; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.client.v1.QueryClientParamsResponse; /** - * Decodes a MsgConnectionOpenInit message from the specified reader or buffer, length delimited. + * Decodes a QueryClientParamsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MsgConnectionOpenInit + * @returns QueryClientParamsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.connection.v1.MsgConnectionOpenInit; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.client.v1.QueryClientParamsResponse; /** - * Verifies a MsgConnectionOpenInit message. + * Verifies a QueryClientParamsResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a MsgConnectionOpenInit message from a plain object. Also converts values to their respective internal types. + * Creates a QueryClientParamsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MsgConnectionOpenInit + * @returns QueryClientParamsResponse */ - public static fromObject(object: { [k: string]: any }): ibc.core.connection.v1.MsgConnectionOpenInit; + public static fromObject(object: { [k: string]: any }): ibc.core.client.v1.QueryClientParamsResponse; /** - * Creates a plain object from a MsgConnectionOpenInit message. Also converts values to other types if specified. - * @param message MsgConnectionOpenInit + * Creates a plain object from a QueryClientParamsResponse message. Also converts values to other types if specified. + * @param message QueryClientParamsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.core.connection.v1.MsgConnectionOpenInit, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.core.client.v1.QueryClientParamsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MsgConnectionOpenInit to JSON. + * Converts this QueryClientParamsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a MsgConnectionOpenInitResponse. */ - interface IMsgConnectionOpenInitResponse { + /** Properties of a QueryUpgradedClientStateRequest. */ + interface IQueryUpgradedClientStateRequest { } - /** Represents a MsgConnectionOpenInitResponse. */ - class MsgConnectionOpenInitResponse implements IMsgConnectionOpenInitResponse { + /** Represents a QueryUpgradedClientStateRequest. */ + class QueryUpgradedClientStateRequest implements IQueryUpgradedClientStateRequest { /** - * Constructs a new MsgConnectionOpenInitResponse. + * Constructs a new QueryUpgradedClientStateRequest. * @param [properties] Properties to set */ - constructor(properties?: ibc.core.connection.v1.IMsgConnectionOpenInitResponse); + constructor(properties?: ibc.core.client.v1.IQueryUpgradedClientStateRequest); /** - * Encodes the specified MsgConnectionOpenInitResponse message. Does not implicitly {@link ibc.core.connection.v1.MsgConnectionOpenInitResponse.verify|verify} messages. - * @param message MsgConnectionOpenInitResponse message or plain object to encode + * Encodes the specified QueryUpgradedClientStateRequest message. Does not implicitly {@link ibc.core.client.v1.QueryUpgradedClientStateRequest.verify|verify} messages. + * @param message QueryUpgradedClientStateRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.core.connection.v1.IMsgConnectionOpenInitResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.core.client.v1.IQueryUpgradedClientStateRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MsgConnectionOpenInitResponse message, length delimited. Does not implicitly {@link ibc.core.connection.v1.MsgConnectionOpenInitResponse.verify|verify} messages. - * @param message MsgConnectionOpenInitResponse message or plain object to encode + * Encodes the specified QueryUpgradedClientStateRequest message, length delimited. Does not implicitly {@link ibc.core.client.v1.QueryUpgradedClientStateRequest.verify|verify} messages. + * @param message QueryUpgradedClientStateRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.core.connection.v1.IMsgConnectionOpenInitResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.core.client.v1.IQueryUpgradedClientStateRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MsgConnectionOpenInitResponse message from the specified reader or buffer. + * Decodes a QueryUpgradedClientStateRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MsgConnectionOpenInitResponse + * @returns QueryUpgradedClientStateRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.connection.v1.MsgConnectionOpenInitResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.client.v1.QueryUpgradedClientStateRequest; /** - * Decodes a MsgConnectionOpenInitResponse message from the specified reader or buffer, length delimited. + * Decodes a QueryUpgradedClientStateRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MsgConnectionOpenInitResponse + * @returns QueryUpgradedClientStateRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.connection.v1.MsgConnectionOpenInitResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.client.v1.QueryUpgradedClientStateRequest; /** - * Verifies a MsgConnectionOpenInitResponse message. + * Verifies a QueryUpgradedClientStateRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a MsgConnectionOpenInitResponse message from a plain object. Also converts values to their respective internal types. + * Creates a QueryUpgradedClientStateRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MsgConnectionOpenInitResponse + * @returns QueryUpgradedClientStateRequest */ - public static fromObject(object: { [k: string]: any }): ibc.core.connection.v1.MsgConnectionOpenInitResponse; + public static fromObject(object: { [k: string]: any }): ibc.core.client.v1.QueryUpgradedClientStateRequest; /** - * Creates a plain object from a MsgConnectionOpenInitResponse message. Also converts values to other types if specified. - * @param message MsgConnectionOpenInitResponse + * Creates a plain object from a QueryUpgradedClientStateRequest message. Also converts values to other types if specified. + * @param message QueryUpgradedClientStateRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.core.connection.v1.MsgConnectionOpenInitResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.core.client.v1.QueryUpgradedClientStateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MsgConnectionOpenInitResponse to JSON. + * Converts this QueryUpgradedClientStateRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a MsgConnectionOpenTry. */ - interface IMsgConnectionOpenTry { - - /** MsgConnectionOpenTry client_id */ - client_id?: (string|null); - - /** MsgConnectionOpenTry previous_connection_id */ - previous_connection_id?: (string|null); - - /** MsgConnectionOpenTry client_state */ - client_state?: (google.protobuf.IAny|null); - - /** MsgConnectionOpenTry counterparty */ - counterparty?: (ibc.core.connection.v1.ICounterparty|null); - - /** MsgConnectionOpenTry delay_period */ - delay_period?: (Long|null); - - /** MsgConnectionOpenTry counterparty_versions */ - counterparty_versions?: (ibc.core.connection.v1.IVersion[]|null); - - /** MsgConnectionOpenTry proof_height */ - proof_height?: (ibc.core.client.v1.IHeight|null); - - /** MsgConnectionOpenTry proof_init */ - proof_init?: (Uint8Array|null); - - /** MsgConnectionOpenTry proof_client */ - proof_client?: (Uint8Array|null); - - /** MsgConnectionOpenTry proof_consensus */ - proof_consensus?: (Uint8Array|null); - - /** MsgConnectionOpenTry consensus_height */ - consensus_height?: (ibc.core.client.v1.IHeight|null); + /** Properties of a QueryUpgradedClientStateResponse. */ + interface IQueryUpgradedClientStateResponse { - /** MsgConnectionOpenTry signer */ - signer?: (string|null); + /** QueryUpgradedClientStateResponse upgraded_client_state */ + upgraded_client_state?: (google.protobuf.IAny|null); } - /** Represents a MsgConnectionOpenTry. */ - class MsgConnectionOpenTry implements IMsgConnectionOpenTry { + /** Represents a QueryUpgradedClientStateResponse. */ + class QueryUpgradedClientStateResponse implements IQueryUpgradedClientStateResponse { /** - * Constructs a new MsgConnectionOpenTry. + * Constructs a new QueryUpgradedClientStateResponse. * @param [properties] Properties to set */ - constructor(properties?: ibc.core.connection.v1.IMsgConnectionOpenTry); - - /** MsgConnectionOpenTry client_id. */ - public client_id: string; - - /** MsgConnectionOpenTry previous_connection_id. */ - public previous_connection_id: string; - - /** MsgConnectionOpenTry client_state. */ - public client_state?: (google.protobuf.IAny|null); - - /** MsgConnectionOpenTry counterparty. */ - public counterparty?: (ibc.core.connection.v1.ICounterparty|null); - - /** MsgConnectionOpenTry delay_period. */ - public delay_period: Long; - - /** MsgConnectionOpenTry counterparty_versions. */ - public counterparty_versions: ibc.core.connection.v1.IVersion[]; - - /** MsgConnectionOpenTry proof_height. */ - public proof_height?: (ibc.core.client.v1.IHeight|null); - - /** MsgConnectionOpenTry proof_init. */ - public proof_init: Uint8Array; - - /** MsgConnectionOpenTry proof_client. */ - public proof_client: Uint8Array; - - /** MsgConnectionOpenTry proof_consensus. */ - public proof_consensus: Uint8Array; - - /** MsgConnectionOpenTry consensus_height. */ - public consensus_height?: (ibc.core.client.v1.IHeight|null); + constructor(properties?: ibc.core.client.v1.IQueryUpgradedClientStateResponse); - /** MsgConnectionOpenTry signer. */ - public signer: string; + /** QueryUpgradedClientStateResponse upgraded_client_state. */ + public upgraded_client_state?: (google.protobuf.IAny|null); /** - * Encodes the specified MsgConnectionOpenTry message. Does not implicitly {@link ibc.core.connection.v1.MsgConnectionOpenTry.verify|verify} messages. - * @param message MsgConnectionOpenTry message or plain object to encode + * Encodes the specified QueryUpgradedClientStateResponse message. Does not implicitly {@link ibc.core.client.v1.QueryUpgradedClientStateResponse.verify|verify} messages. + * @param message QueryUpgradedClientStateResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.core.connection.v1.IMsgConnectionOpenTry, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.core.client.v1.IQueryUpgradedClientStateResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MsgConnectionOpenTry message, length delimited. Does not implicitly {@link ibc.core.connection.v1.MsgConnectionOpenTry.verify|verify} messages. - * @param message MsgConnectionOpenTry message or plain object to encode + * Encodes the specified QueryUpgradedClientStateResponse message, length delimited. Does not implicitly {@link ibc.core.client.v1.QueryUpgradedClientStateResponse.verify|verify} messages. + * @param message QueryUpgradedClientStateResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.core.connection.v1.IMsgConnectionOpenTry, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.core.client.v1.IQueryUpgradedClientStateResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MsgConnectionOpenTry message from the specified reader or buffer. + * Decodes a QueryUpgradedClientStateResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MsgConnectionOpenTry + * @returns QueryUpgradedClientStateResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.connection.v1.MsgConnectionOpenTry; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.client.v1.QueryUpgradedClientStateResponse; /** - * Decodes a MsgConnectionOpenTry message from the specified reader or buffer, length delimited. + * Decodes a QueryUpgradedClientStateResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MsgConnectionOpenTry + * @returns QueryUpgradedClientStateResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.connection.v1.MsgConnectionOpenTry; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.client.v1.QueryUpgradedClientStateResponse; /** - * Verifies a MsgConnectionOpenTry message. + * Verifies a QueryUpgradedClientStateResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a MsgConnectionOpenTry message from a plain object. Also converts values to their respective internal types. + * Creates a QueryUpgradedClientStateResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MsgConnectionOpenTry + * @returns QueryUpgradedClientStateResponse */ - public static fromObject(object: { [k: string]: any }): ibc.core.connection.v1.MsgConnectionOpenTry; + public static fromObject(object: { [k: string]: any }): ibc.core.client.v1.QueryUpgradedClientStateResponse; /** - * Creates a plain object from a MsgConnectionOpenTry message. Also converts values to other types if specified. - * @param message MsgConnectionOpenTry + * Creates a plain object from a QueryUpgradedClientStateResponse message. Also converts values to other types if specified. + * @param message QueryUpgradedClientStateResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.core.connection.v1.MsgConnectionOpenTry, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.core.client.v1.QueryUpgradedClientStateResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MsgConnectionOpenTry to JSON. + * Converts this QueryUpgradedClientStateResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a MsgConnectionOpenTryResponse. */ - interface IMsgConnectionOpenTryResponse { + /** Properties of a QueryUpgradedConsensusStateRequest. */ + interface IQueryUpgradedConsensusStateRequest { } - /** Represents a MsgConnectionOpenTryResponse. */ - class MsgConnectionOpenTryResponse implements IMsgConnectionOpenTryResponse { + /** Represents a QueryUpgradedConsensusStateRequest. */ + class QueryUpgradedConsensusStateRequest implements IQueryUpgradedConsensusStateRequest { /** - * Constructs a new MsgConnectionOpenTryResponse. + * Constructs a new QueryUpgradedConsensusStateRequest. * @param [properties] Properties to set */ - constructor(properties?: ibc.core.connection.v1.IMsgConnectionOpenTryResponse); + constructor(properties?: ibc.core.client.v1.IQueryUpgradedConsensusStateRequest); /** - * Encodes the specified MsgConnectionOpenTryResponse message. Does not implicitly {@link ibc.core.connection.v1.MsgConnectionOpenTryResponse.verify|verify} messages. - * @param message MsgConnectionOpenTryResponse message or plain object to encode + * Encodes the specified QueryUpgradedConsensusStateRequest message. Does not implicitly {@link ibc.core.client.v1.QueryUpgradedConsensusStateRequest.verify|verify} messages. + * @param message QueryUpgradedConsensusStateRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.core.connection.v1.IMsgConnectionOpenTryResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.core.client.v1.IQueryUpgradedConsensusStateRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MsgConnectionOpenTryResponse message, length delimited. Does not implicitly {@link ibc.core.connection.v1.MsgConnectionOpenTryResponse.verify|verify} messages. - * @param message MsgConnectionOpenTryResponse message or plain object to encode + * Encodes the specified QueryUpgradedConsensusStateRequest message, length delimited. Does not implicitly {@link ibc.core.client.v1.QueryUpgradedConsensusStateRequest.verify|verify} messages. + * @param message QueryUpgradedConsensusStateRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.core.connection.v1.IMsgConnectionOpenTryResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.core.client.v1.IQueryUpgradedConsensusStateRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MsgConnectionOpenTryResponse message from the specified reader or buffer. + * Decodes a QueryUpgradedConsensusStateRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MsgConnectionOpenTryResponse + * @returns QueryUpgradedConsensusStateRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.connection.v1.MsgConnectionOpenTryResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.client.v1.QueryUpgradedConsensusStateRequest; /** - * Decodes a MsgConnectionOpenTryResponse message from the specified reader or buffer, length delimited. + * Decodes a QueryUpgradedConsensusStateRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MsgConnectionOpenTryResponse + * @returns QueryUpgradedConsensusStateRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.connection.v1.MsgConnectionOpenTryResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.client.v1.QueryUpgradedConsensusStateRequest; /** - * Verifies a MsgConnectionOpenTryResponse message. + * Verifies a QueryUpgradedConsensusStateRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a MsgConnectionOpenTryResponse message from a plain object. Also converts values to their respective internal types. + * Creates a QueryUpgradedConsensusStateRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MsgConnectionOpenTryResponse + * @returns QueryUpgradedConsensusStateRequest */ - public static fromObject(object: { [k: string]: any }): ibc.core.connection.v1.MsgConnectionOpenTryResponse; + public static fromObject(object: { [k: string]: any }): ibc.core.client.v1.QueryUpgradedConsensusStateRequest; /** - * Creates a plain object from a MsgConnectionOpenTryResponse message. Also converts values to other types if specified. - * @param message MsgConnectionOpenTryResponse + * Creates a plain object from a QueryUpgradedConsensusStateRequest message. Also converts values to other types if specified. + * @param message QueryUpgradedConsensusStateRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.core.connection.v1.MsgConnectionOpenTryResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.core.client.v1.QueryUpgradedConsensusStateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MsgConnectionOpenTryResponse to JSON. + * Converts this QueryUpgradedConsensusStateRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a MsgConnectionOpenAck. */ - interface IMsgConnectionOpenAck { - - /** MsgConnectionOpenAck connection_id */ - connection_id?: (string|null); - - /** MsgConnectionOpenAck counterparty_connection_id */ - counterparty_connection_id?: (string|null); - - /** MsgConnectionOpenAck version */ - version?: (ibc.core.connection.v1.IVersion|null); - - /** MsgConnectionOpenAck client_state */ - client_state?: (google.protobuf.IAny|null); - - /** MsgConnectionOpenAck proof_height */ - proof_height?: (ibc.core.client.v1.IHeight|null); - - /** MsgConnectionOpenAck proof_try */ - proof_try?: (Uint8Array|null); - - /** MsgConnectionOpenAck proof_client */ - proof_client?: (Uint8Array|null); - - /** MsgConnectionOpenAck proof_consensus */ - proof_consensus?: (Uint8Array|null); - - /** MsgConnectionOpenAck consensus_height */ - consensus_height?: (ibc.core.client.v1.IHeight|null); + /** Properties of a QueryUpgradedConsensusStateResponse. */ + interface IQueryUpgradedConsensusStateResponse { - /** MsgConnectionOpenAck signer */ - signer?: (string|null); + /** QueryUpgradedConsensusStateResponse upgraded_consensus_state */ + upgraded_consensus_state?: (google.protobuf.IAny|null); } - /** Represents a MsgConnectionOpenAck. */ - class MsgConnectionOpenAck implements IMsgConnectionOpenAck { + /** Represents a QueryUpgradedConsensusStateResponse. */ + class QueryUpgradedConsensusStateResponse implements IQueryUpgradedConsensusStateResponse { /** - * Constructs a new MsgConnectionOpenAck. + * Constructs a new QueryUpgradedConsensusStateResponse. * @param [properties] Properties to set */ - constructor(properties?: ibc.core.connection.v1.IMsgConnectionOpenAck); - - /** MsgConnectionOpenAck connection_id. */ - public connection_id: string; - - /** MsgConnectionOpenAck counterparty_connection_id. */ - public counterparty_connection_id: string; - - /** MsgConnectionOpenAck version. */ - public version?: (ibc.core.connection.v1.IVersion|null); - - /** MsgConnectionOpenAck client_state. */ - public client_state?: (google.protobuf.IAny|null); - - /** MsgConnectionOpenAck proof_height. */ - public proof_height?: (ibc.core.client.v1.IHeight|null); - - /** MsgConnectionOpenAck proof_try. */ - public proof_try: Uint8Array; - - /** MsgConnectionOpenAck proof_client. */ - public proof_client: Uint8Array; - - /** MsgConnectionOpenAck proof_consensus. */ - public proof_consensus: Uint8Array; - - /** MsgConnectionOpenAck consensus_height. */ - public consensus_height?: (ibc.core.client.v1.IHeight|null); + constructor(properties?: ibc.core.client.v1.IQueryUpgradedConsensusStateResponse); - /** MsgConnectionOpenAck signer. */ - public signer: string; + /** QueryUpgradedConsensusStateResponse upgraded_consensus_state. */ + public upgraded_consensus_state?: (google.protobuf.IAny|null); /** - * Encodes the specified MsgConnectionOpenAck message. Does not implicitly {@link ibc.core.connection.v1.MsgConnectionOpenAck.verify|verify} messages. - * @param message MsgConnectionOpenAck message or plain object to encode + * Encodes the specified QueryUpgradedConsensusStateResponse message. Does not implicitly {@link ibc.core.client.v1.QueryUpgradedConsensusStateResponse.verify|verify} messages. + * @param message QueryUpgradedConsensusStateResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.core.connection.v1.IMsgConnectionOpenAck, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.core.client.v1.IQueryUpgradedConsensusStateResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MsgConnectionOpenAck message, length delimited. Does not implicitly {@link ibc.core.connection.v1.MsgConnectionOpenAck.verify|verify} messages. - * @param message MsgConnectionOpenAck message or plain object to encode + * Encodes the specified QueryUpgradedConsensusStateResponse message, length delimited. Does not implicitly {@link ibc.core.client.v1.QueryUpgradedConsensusStateResponse.verify|verify} messages. + * @param message QueryUpgradedConsensusStateResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.core.connection.v1.IMsgConnectionOpenAck, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.core.client.v1.IQueryUpgradedConsensusStateResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MsgConnectionOpenAck message from the specified reader or buffer. + * Decodes a QueryUpgradedConsensusStateResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MsgConnectionOpenAck + * @returns QueryUpgradedConsensusStateResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.connection.v1.MsgConnectionOpenAck; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.client.v1.QueryUpgradedConsensusStateResponse; /** - * Decodes a MsgConnectionOpenAck message from the specified reader or buffer, length delimited. + * Decodes a QueryUpgradedConsensusStateResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MsgConnectionOpenAck + * @returns QueryUpgradedConsensusStateResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.connection.v1.MsgConnectionOpenAck; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.client.v1.QueryUpgradedConsensusStateResponse; /** - * Verifies a MsgConnectionOpenAck message. + * Verifies a QueryUpgradedConsensusStateResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a MsgConnectionOpenAck message from a plain object. Also converts values to their respective internal types. + * Creates a QueryUpgradedConsensusStateResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MsgConnectionOpenAck + * @returns QueryUpgradedConsensusStateResponse */ - public static fromObject(object: { [k: string]: any }): ibc.core.connection.v1.MsgConnectionOpenAck; + public static fromObject(object: { [k: string]: any }): ibc.core.client.v1.QueryUpgradedConsensusStateResponse; /** - * Creates a plain object from a MsgConnectionOpenAck message. Also converts values to other types if specified. - * @param message MsgConnectionOpenAck + * Creates a plain object from a QueryUpgradedConsensusStateResponse message. Also converts values to other types if specified. + * @param message QueryUpgradedConsensusStateResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.core.connection.v1.MsgConnectionOpenAck, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.core.client.v1.QueryUpgradedConsensusStateResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MsgConnectionOpenAck to JSON. + * Converts this QueryUpgradedConsensusStateResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a MsgConnectionOpenAckResponse. */ - interface IMsgConnectionOpenAckResponse { + /** Properties of a GenesisState. */ + interface IGenesisState { + + /** GenesisState clients */ + clients?: (ibc.core.client.v1.IIdentifiedClientState[]|null); + + /** GenesisState clients_consensus */ + clients_consensus?: (ibc.core.client.v1.IClientConsensusStates[]|null); + + /** GenesisState clients_metadata */ + clients_metadata?: (ibc.core.client.v1.IIdentifiedGenesisMetadata[]|null); + + /** GenesisState params */ + params?: (ibc.core.client.v1.IParams|null); + + /** GenesisState create_localhost */ + create_localhost?: (boolean|null); + + /** GenesisState next_client_sequence */ + next_client_sequence?: (Long|null); } - /** Represents a MsgConnectionOpenAckResponse. */ - class MsgConnectionOpenAckResponse implements IMsgConnectionOpenAckResponse { + /** Represents a GenesisState. */ + class GenesisState implements IGenesisState { /** - * Constructs a new MsgConnectionOpenAckResponse. + * Constructs a new GenesisState. * @param [properties] Properties to set */ - constructor(properties?: ibc.core.connection.v1.IMsgConnectionOpenAckResponse); + constructor(properties?: ibc.core.client.v1.IGenesisState); + + /** GenesisState clients. */ + public clients: ibc.core.client.v1.IIdentifiedClientState[]; + + /** GenesisState clients_consensus. */ + public clients_consensus: ibc.core.client.v1.IClientConsensusStates[]; + + /** GenesisState clients_metadata. */ + public clients_metadata: ibc.core.client.v1.IIdentifiedGenesisMetadata[]; + + /** GenesisState params. */ + public params?: (ibc.core.client.v1.IParams|null); + + /** GenesisState create_localhost. */ + public create_localhost: boolean; + + /** GenesisState next_client_sequence. */ + public next_client_sequence: Long; /** - * Encodes the specified MsgConnectionOpenAckResponse message. Does not implicitly {@link ibc.core.connection.v1.MsgConnectionOpenAckResponse.verify|verify} messages. - * @param message MsgConnectionOpenAckResponse message or plain object to encode + * Encodes the specified GenesisState message. Does not implicitly {@link ibc.core.client.v1.GenesisState.verify|verify} messages. + * @param message GenesisState message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.core.connection.v1.IMsgConnectionOpenAckResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.core.client.v1.IGenesisState, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MsgConnectionOpenAckResponse message, length delimited. Does not implicitly {@link ibc.core.connection.v1.MsgConnectionOpenAckResponse.verify|verify} messages. - * @param message MsgConnectionOpenAckResponse message or plain object to encode + * Encodes the specified GenesisState message, length delimited. Does not implicitly {@link ibc.core.client.v1.GenesisState.verify|verify} messages. + * @param message GenesisState message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.core.connection.v1.IMsgConnectionOpenAckResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.core.client.v1.IGenesisState, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MsgConnectionOpenAckResponse message from the specified reader or buffer. + * Decodes a GenesisState message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MsgConnectionOpenAckResponse + * @returns GenesisState * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.connection.v1.MsgConnectionOpenAckResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.client.v1.GenesisState; /** - * Decodes a MsgConnectionOpenAckResponse message from the specified reader or buffer, length delimited. + * Decodes a GenesisState message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MsgConnectionOpenAckResponse + * @returns GenesisState * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.connection.v1.MsgConnectionOpenAckResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.client.v1.GenesisState; /** - * Verifies a MsgConnectionOpenAckResponse message. + * Verifies a GenesisState message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a MsgConnectionOpenAckResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GenesisState message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MsgConnectionOpenAckResponse + * @returns GenesisState */ - public static fromObject(object: { [k: string]: any }): ibc.core.connection.v1.MsgConnectionOpenAckResponse; + public static fromObject(object: { [k: string]: any }): ibc.core.client.v1.GenesisState; /** - * Creates a plain object from a MsgConnectionOpenAckResponse message. Also converts values to other types if specified. - * @param message MsgConnectionOpenAckResponse + * Creates a plain object from a GenesisState message. Also converts values to other types if specified. + * @param message GenesisState * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.core.connection.v1.MsgConnectionOpenAckResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.core.client.v1.GenesisState, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MsgConnectionOpenAckResponse to JSON. + * Converts this GenesisState to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a MsgConnectionOpenConfirm. */ - interface IMsgConnectionOpenConfirm { - - /** MsgConnectionOpenConfirm connection_id */ - connection_id?: (string|null); - - /** MsgConnectionOpenConfirm proof_ack */ - proof_ack?: (Uint8Array|null); + /** Properties of a GenesisMetadata. */ + interface IGenesisMetadata { - /** MsgConnectionOpenConfirm proof_height */ - proof_height?: (ibc.core.client.v1.IHeight|null); + /** GenesisMetadata key */ + key?: (Uint8Array|null); - /** MsgConnectionOpenConfirm signer */ - signer?: (string|null); + /** GenesisMetadata value */ + value?: (Uint8Array|null); } - /** Represents a MsgConnectionOpenConfirm. */ - class MsgConnectionOpenConfirm implements IMsgConnectionOpenConfirm { + /** Represents a GenesisMetadata. */ + class GenesisMetadata implements IGenesisMetadata { /** - * Constructs a new MsgConnectionOpenConfirm. + * Constructs a new GenesisMetadata. * @param [properties] Properties to set */ - constructor(properties?: ibc.core.connection.v1.IMsgConnectionOpenConfirm); - - /** MsgConnectionOpenConfirm connection_id. */ - public connection_id: string; - - /** MsgConnectionOpenConfirm proof_ack. */ - public proof_ack: Uint8Array; + constructor(properties?: ibc.core.client.v1.IGenesisMetadata); - /** MsgConnectionOpenConfirm proof_height. */ - public proof_height?: (ibc.core.client.v1.IHeight|null); + /** GenesisMetadata key. */ + public key: Uint8Array; - /** MsgConnectionOpenConfirm signer. */ - public signer: string; + /** GenesisMetadata value. */ + public value: Uint8Array; /** - * Encodes the specified MsgConnectionOpenConfirm message. Does not implicitly {@link ibc.core.connection.v1.MsgConnectionOpenConfirm.verify|verify} messages. - * @param message MsgConnectionOpenConfirm message or plain object to encode + * Encodes the specified GenesisMetadata message. Does not implicitly {@link ibc.core.client.v1.GenesisMetadata.verify|verify} messages. + * @param message GenesisMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.core.connection.v1.IMsgConnectionOpenConfirm, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.core.client.v1.IGenesisMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MsgConnectionOpenConfirm message, length delimited. Does not implicitly {@link ibc.core.connection.v1.MsgConnectionOpenConfirm.verify|verify} messages. - * @param message MsgConnectionOpenConfirm message or plain object to encode + * Encodes the specified GenesisMetadata message, length delimited. Does not implicitly {@link ibc.core.client.v1.GenesisMetadata.verify|verify} messages. + * @param message GenesisMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.core.connection.v1.IMsgConnectionOpenConfirm, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.core.client.v1.IGenesisMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MsgConnectionOpenConfirm message from the specified reader or buffer. + * Decodes a GenesisMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MsgConnectionOpenConfirm + * @returns GenesisMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.connection.v1.MsgConnectionOpenConfirm; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.client.v1.GenesisMetadata; /** - * Decodes a MsgConnectionOpenConfirm message from the specified reader or buffer, length delimited. + * Decodes a GenesisMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MsgConnectionOpenConfirm + * @returns GenesisMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.connection.v1.MsgConnectionOpenConfirm; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.client.v1.GenesisMetadata; /** - * Verifies a MsgConnectionOpenConfirm message. + * Verifies a GenesisMetadata message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a MsgConnectionOpenConfirm message from a plain object. Also converts values to their respective internal types. + * Creates a GenesisMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MsgConnectionOpenConfirm + * @returns GenesisMetadata */ - public static fromObject(object: { [k: string]: any }): ibc.core.connection.v1.MsgConnectionOpenConfirm; + public static fromObject(object: { [k: string]: any }): ibc.core.client.v1.GenesisMetadata; /** - * Creates a plain object from a MsgConnectionOpenConfirm message. Also converts values to other types if specified. - * @param message MsgConnectionOpenConfirm + * Creates a plain object from a GenesisMetadata message. Also converts values to other types if specified. + * @param message GenesisMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.core.connection.v1.MsgConnectionOpenConfirm, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.core.client.v1.GenesisMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MsgConnectionOpenConfirm to JSON. + * Converts this GenesisMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a MsgConnectionOpenConfirmResponse. */ - interface IMsgConnectionOpenConfirmResponse { + /** Properties of an IdentifiedGenesisMetadata. */ + interface IIdentifiedGenesisMetadata { + + /** IdentifiedGenesisMetadata client_id */ + client_id?: (string|null); + + /** IdentifiedGenesisMetadata client_metadata */ + client_metadata?: (ibc.core.client.v1.IGenesisMetadata[]|null); } - /** Represents a MsgConnectionOpenConfirmResponse. */ - class MsgConnectionOpenConfirmResponse implements IMsgConnectionOpenConfirmResponse { + /** Represents an IdentifiedGenesisMetadata. */ + class IdentifiedGenesisMetadata implements IIdentifiedGenesisMetadata { /** - * Constructs a new MsgConnectionOpenConfirmResponse. + * Constructs a new IdentifiedGenesisMetadata. * @param [properties] Properties to set */ - constructor(properties?: ibc.core.connection.v1.IMsgConnectionOpenConfirmResponse); + constructor(properties?: ibc.core.client.v1.IIdentifiedGenesisMetadata); + + /** IdentifiedGenesisMetadata client_id. */ + public client_id: string; + + /** IdentifiedGenesisMetadata client_metadata. */ + public client_metadata: ibc.core.client.v1.IGenesisMetadata[]; /** - * Encodes the specified MsgConnectionOpenConfirmResponse message. Does not implicitly {@link ibc.core.connection.v1.MsgConnectionOpenConfirmResponse.verify|verify} messages. - * @param message MsgConnectionOpenConfirmResponse message or plain object to encode + * Encodes the specified IdentifiedGenesisMetadata message. Does not implicitly {@link ibc.core.client.v1.IdentifiedGenesisMetadata.verify|verify} messages. + * @param message IdentifiedGenesisMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.core.connection.v1.IMsgConnectionOpenConfirmResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.core.client.v1.IIdentifiedGenesisMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MsgConnectionOpenConfirmResponse message, length delimited. Does not implicitly {@link ibc.core.connection.v1.MsgConnectionOpenConfirmResponse.verify|verify} messages. - * @param message MsgConnectionOpenConfirmResponse message or plain object to encode + * Encodes the specified IdentifiedGenesisMetadata message, length delimited. Does not implicitly {@link ibc.core.client.v1.IdentifiedGenesisMetadata.verify|verify} messages. + * @param message IdentifiedGenesisMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.core.connection.v1.IMsgConnectionOpenConfirmResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.core.client.v1.IIdentifiedGenesisMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MsgConnectionOpenConfirmResponse message from the specified reader or buffer. + * Decodes an IdentifiedGenesisMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MsgConnectionOpenConfirmResponse + * @returns IdentifiedGenesisMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.connection.v1.MsgConnectionOpenConfirmResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.client.v1.IdentifiedGenesisMetadata; /** - * Decodes a MsgConnectionOpenConfirmResponse message from the specified reader or buffer, length delimited. + * Decodes an IdentifiedGenesisMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MsgConnectionOpenConfirmResponse + * @returns IdentifiedGenesisMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.connection.v1.MsgConnectionOpenConfirmResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.client.v1.IdentifiedGenesisMetadata; /** - * Verifies a MsgConnectionOpenConfirmResponse message. + * Verifies an IdentifiedGenesisMetadata message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a MsgConnectionOpenConfirmResponse message from a plain object. Also converts values to their respective internal types. + * Creates an IdentifiedGenesisMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MsgConnectionOpenConfirmResponse + * @returns IdentifiedGenesisMetadata */ - public static fromObject(object: { [k: string]: any }): ibc.core.connection.v1.MsgConnectionOpenConfirmResponse; + public static fromObject(object: { [k: string]: any }): ibc.core.client.v1.IdentifiedGenesisMetadata; /** - * Creates a plain object from a MsgConnectionOpenConfirmResponse message. Also converts values to other types if specified. - * @param message MsgConnectionOpenConfirmResponse + * Creates a plain object from an IdentifiedGenesisMetadata message. Also converts values to other types if specified. + * @param message IdentifiedGenesisMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.core.connection.v1.MsgConnectionOpenConfirmResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.core.client.v1.IdentifiedGenesisMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MsgConnectionOpenConfirmResponse to JSON. + * Converts this IdentifiedGenesisMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } + } + } - /** Properties of a ConnectionEnd. */ - interface IConnectionEnd { - - /** ConnectionEnd client_id */ - client_id?: (string|null); - - /** ConnectionEnd versions */ - versions?: (ibc.core.connection.v1.IVersion[]|null); + /** Namespace commitment. */ + namespace commitment { - /** ConnectionEnd state */ - state?: (ibc.core.connection.v1.State|null); + /** Namespace v1. */ + namespace v1 { - /** ConnectionEnd counterparty */ - counterparty?: (ibc.core.connection.v1.ICounterparty|null); + /** Properties of a MerkleRoot. */ + interface IMerkleRoot { - /** ConnectionEnd delay_period */ - delay_period?: (Long|null); + /** MerkleRoot hash */ + hash?: (Uint8Array|null); } - /** Represents a ConnectionEnd. */ - class ConnectionEnd implements IConnectionEnd { + /** Represents a MerkleRoot. */ + class MerkleRoot implements IMerkleRoot { /** - * Constructs a new ConnectionEnd. + * Constructs a new MerkleRoot. * @param [properties] Properties to set */ - constructor(properties?: ibc.core.connection.v1.IConnectionEnd); - - /** ConnectionEnd client_id. */ - public client_id: string; - - /** ConnectionEnd versions. */ - public versions: ibc.core.connection.v1.IVersion[]; - - /** ConnectionEnd state. */ - public state: ibc.core.connection.v1.State; - - /** ConnectionEnd counterparty. */ - public counterparty?: (ibc.core.connection.v1.ICounterparty|null); + constructor(properties?: ibc.core.commitment.v1.IMerkleRoot); - /** ConnectionEnd delay_period. */ - public delay_period: Long; + /** MerkleRoot hash. */ + public hash: Uint8Array; /** - * Encodes the specified ConnectionEnd message. Does not implicitly {@link ibc.core.connection.v1.ConnectionEnd.verify|verify} messages. - * @param message ConnectionEnd message or plain object to encode + * Encodes the specified MerkleRoot message. Does not implicitly {@link ibc.core.commitment.v1.MerkleRoot.verify|verify} messages. + * @param message MerkleRoot message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.core.connection.v1.IConnectionEnd, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.core.commitment.v1.IMerkleRoot, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ConnectionEnd message, length delimited. Does not implicitly {@link ibc.core.connection.v1.ConnectionEnd.verify|verify} messages. - * @param message ConnectionEnd message or plain object to encode + * Encodes the specified MerkleRoot message, length delimited. Does not implicitly {@link ibc.core.commitment.v1.MerkleRoot.verify|verify} messages. + * @param message MerkleRoot message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.core.connection.v1.IConnectionEnd, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.core.commitment.v1.IMerkleRoot, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ConnectionEnd message from the specified reader or buffer. + * Decodes a MerkleRoot message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ConnectionEnd + * @returns MerkleRoot * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.connection.v1.ConnectionEnd; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.commitment.v1.MerkleRoot; /** - * Decodes a ConnectionEnd message from the specified reader or buffer, length delimited. + * Decodes a MerkleRoot message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ConnectionEnd + * @returns MerkleRoot * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.connection.v1.ConnectionEnd; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.commitment.v1.MerkleRoot; /** - * Verifies a ConnectionEnd message. + * Verifies a MerkleRoot message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ConnectionEnd message from a plain object. Also converts values to their respective internal types. + * Creates a MerkleRoot message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ConnectionEnd + * @returns MerkleRoot */ - public static fromObject(object: { [k: string]: any }): ibc.core.connection.v1.ConnectionEnd; + public static fromObject(object: { [k: string]: any }): ibc.core.commitment.v1.MerkleRoot; /** - * Creates a plain object from a ConnectionEnd message. Also converts values to other types if specified. - * @param message ConnectionEnd + * Creates a plain object from a MerkleRoot message. Also converts values to other types if specified. + * @param message MerkleRoot * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.core.connection.v1.ConnectionEnd, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.core.commitment.v1.MerkleRoot, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ConnectionEnd to JSON. + * Converts this MerkleRoot to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an IdentifiedConnection. */ - interface IIdentifiedConnection { - - /** IdentifiedConnection id */ - id?: (string|null); - - /** IdentifiedConnection client_id */ - client_id?: (string|null); - - /** IdentifiedConnection versions */ - versions?: (ibc.core.connection.v1.IVersion[]|null); - - /** IdentifiedConnection state */ - state?: (ibc.core.connection.v1.State|null); - - /** IdentifiedConnection counterparty */ - counterparty?: (ibc.core.connection.v1.ICounterparty|null); + /** Properties of a MerklePrefix. */ + interface IMerklePrefix { - /** IdentifiedConnection delay_period */ - delay_period?: (Long|null); + /** MerklePrefix key_prefix */ + key_prefix?: (Uint8Array|null); } - /** Represents an IdentifiedConnection. */ - class IdentifiedConnection implements IIdentifiedConnection { + /** Represents a MerklePrefix. */ + class MerklePrefix implements IMerklePrefix { /** - * Constructs a new IdentifiedConnection. + * Constructs a new MerklePrefix. * @param [properties] Properties to set */ - constructor(properties?: ibc.core.connection.v1.IIdentifiedConnection); - - /** IdentifiedConnection id. */ - public id: string; - - /** IdentifiedConnection client_id. */ - public client_id: string; - - /** IdentifiedConnection versions. */ - public versions: ibc.core.connection.v1.IVersion[]; - - /** IdentifiedConnection state. */ - public state: ibc.core.connection.v1.State; - - /** IdentifiedConnection counterparty. */ - public counterparty?: (ibc.core.connection.v1.ICounterparty|null); + constructor(properties?: ibc.core.commitment.v1.IMerklePrefix); - /** IdentifiedConnection delay_period. */ - public delay_period: Long; + /** MerklePrefix key_prefix. */ + public key_prefix: Uint8Array; /** - * Encodes the specified IdentifiedConnection message. Does not implicitly {@link ibc.core.connection.v1.IdentifiedConnection.verify|verify} messages. - * @param message IdentifiedConnection message or plain object to encode + * Encodes the specified MerklePrefix message. Does not implicitly {@link ibc.core.commitment.v1.MerklePrefix.verify|verify} messages. + * @param message MerklePrefix message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.core.connection.v1.IIdentifiedConnection, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.core.commitment.v1.IMerklePrefix, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified IdentifiedConnection message, length delimited. Does not implicitly {@link ibc.core.connection.v1.IdentifiedConnection.verify|verify} messages. - * @param message IdentifiedConnection message or plain object to encode + * Encodes the specified MerklePrefix message, length delimited. Does not implicitly {@link ibc.core.commitment.v1.MerklePrefix.verify|verify} messages. + * @param message MerklePrefix message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.core.connection.v1.IIdentifiedConnection, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.core.commitment.v1.IMerklePrefix, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an IdentifiedConnection message from the specified reader or buffer. + * Decodes a MerklePrefix message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns IdentifiedConnection + * @returns MerklePrefix * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.connection.v1.IdentifiedConnection; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.commitment.v1.MerklePrefix; /** - * Decodes an IdentifiedConnection message from the specified reader or buffer, length delimited. + * Decodes a MerklePrefix message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns IdentifiedConnection + * @returns MerklePrefix * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.connection.v1.IdentifiedConnection; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.commitment.v1.MerklePrefix; /** - * Verifies an IdentifiedConnection message. + * Verifies a MerklePrefix message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an IdentifiedConnection message from a plain object. Also converts values to their respective internal types. + * Creates a MerklePrefix message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns IdentifiedConnection + * @returns MerklePrefix */ - public static fromObject(object: { [k: string]: any }): ibc.core.connection.v1.IdentifiedConnection; + public static fromObject(object: { [k: string]: any }): ibc.core.commitment.v1.MerklePrefix; /** - * Creates a plain object from an IdentifiedConnection message. Also converts values to other types if specified. - * @param message IdentifiedConnection + * Creates a plain object from a MerklePrefix message. Also converts values to other types if specified. + * @param message MerklePrefix * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.core.connection.v1.IdentifiedConnection, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.core.commitment.v1.MerklePrefix, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this IdentifiedConnection to JSON. + * Converts this MerklePrefix to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** State enum. */ - enum State { - STATE_UNINITIALIZED_UNSPECIFIED = 0, - STATE_INIT = 1, - STATE_TRYOPEN = 2, - STATE_OPEN = 3 - } - - /** Properties of a Counterparty. */ - interface ICounterparty { - - /** Counterparty client_id */ - client_id?: (string|null); - - /** Counterparty connection_id */ - connection_id?: (string|null); + /** Properties of a MerklePath. */ + interface IMerklePath { - /** Counterparty prefix */ - prefix?: (ibc.core.commitment.v1.IMerklePrefix|null); + /** MerklePath key_path */ + key_path?: (string[]|null); } - /** Represents a Counterparty. */ - class Counterparty implements ICounterparty { + /** Represents a MerklePath. */ + class MerklePath implements IMerklePath { /** - * Constructs a new Counterparty. + * Constructs a new MerklePath. * @param [properties] Properties to set */ - constructor(properties?: ibc.core.connection.v1.ICounterparty); - - /** Counterparty client_id. */ - public client_id: string; - - /** Counterparty connection_id. */ - public connection_id: string; + constructor(properties?: ibc.core.commitment.v1.IMerklePath); - /** Counterparty prefix. */ - public prefix?: (ibc.core.commitment.v1.IMerklePrefix|null); + /** MerklePath key_path. */ + public key_path: string[]; /** - * Encodes the specified Counterparty message. Does not implicitly {@link ibc.core.connection.v1.Counterparty.verify|verify} messages. - * @param message Counterparty message or plain object to encode + * Encodes the specified MerklePath message. Does not implicitly {@link ibc.core.commitment.v1.MerklePath.verify|verify} messages. + * @param message MerklePath message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.core.connection.v1.ICounterparty, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.core.commitment.v1.IMerklePath, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Counterparty message, length delimited. Does not implicitly {@link ibc.core.connection.v1.Counterparty.verify|verify} messages. - * @param message Counterparty message or plain object to encode + * Encodes the specified MerklePath message, length delimited. Does not implicitly {@link ibc.core.commitment.v1.MerklePath.verify|verify} messages. + * @param message MerklePath message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.core.connection.v1.ICounterparty, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.core.commitment.v1.IMerklePath, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Counterparty message from the specified reader or buffer. + * Decodes a MerklePath message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Counterparty + * @returns MerklePath * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.connection.v1.Counterparty; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.commitment.v1.MerklePath; /** - * Decodes a Counterparty message from the specified reader or buffer, length delimited. + * Decodes a MerklePath message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Counterparty + * @returns MerklePath * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.connection.v1.Counterparty; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.commitment.v1.MerklePath; /** - * Verifies a Counterparty message. + * Verifies a MerklePath message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a Counterparty message from a plain object. Also converts values to their respective internal types. + * Creates a MerklePath message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Counterparty + * @returns MerklePath */ - public static fromObject(object: { [k: string]: any }): ibc.core.connection.v1.Counterparty; + public static fromObject(object: { [k: string]: any }): ibc.core.commitment.v1.MerklePath; /** - * Creates a plain object from a Counterparty message. Also converts values to other types if specified. - * @param message Counterparty + * Creates a plain object from a MerklePath message. Also converts values to other types if specified. + * @param message MerklePath * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.core.connection.v1.Counterparty, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.core.commitment.v1.MerklePath, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Counterparty to JSON. + * Converts this MerklePath to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ClientPaths. */ - interface IClientPaths { + /** Properties of a MerkleProof. */ + interface IMerkleProof { - /** ClientPaths paths */ - paths?: (string[]|null); + /** MerkleProof proofs */ + proofs?: (cosmos.ics23.v1.ICommitmentProof[]|null); } - /** Represents a ClientPaths. */ - class ClientPaths implements IClientPaths { + /** Represents a MerkleProof. */ + class MerkleProof implements IMerkleProof { /** - * Constructs a new ClientPaths. + * Constructs a new MerkleProof. * @param [properties] Properties to set */ - constructor(properties?: ibc.core.connection.v1.IClientPaths); + constructor(properties?: ibc.core.commitment.v1.IMerkleProof); - /** ClientPaths paths. */ - public paths: string[]; + /** MerkleProof proofs. */ + public proofs: cosmos.ics23.v1.ICommitmentProof[]; /** - * Encodes the specified ClientPaths message. Does not implicitly {@link ibc.core.connection.v1.ClientPaths.verify|verify} messages. - * @param message ClientPaths message or plain object to encode + * Encodes the specified MerkleProof message. Does not implicitly {@link ibc.core.commitment.v1.MerkleProof.verify|verify} messages. + * @param message MerkleProof message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.core.connection.v1.IClientPaths, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.core.commitment.v1.IMerkleProof, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ClientPaths message, length delimited. Does not implicitly {@link ibc.core.connection.v1.ClientPaths.verify|verify} messages. - * @param message ClientPaths message or plain object to encode + * Encodes the specified MerkleProof message, length delimited. Does not implicitly {@link ibc.core.commitment.v1.MerkleProof.verify|verify} messages. + * @param message MerkleProof message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.core.connection.v1.IClientPaths, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.core.commitment.v1.IMerkleProof, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ClientPaths message from the specified reader or buffer. + * Decodes a MerkleProof message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ClientPaths + * @returns MerkleProof * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.connection.v1.ClientPaths; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.commitment.v1.MerkleProof; /** - * Decodes a ClientPaths message from the specified reader or buffer, length delimited. + * Decodes a MerkleProof message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ClientPaths + * @returns MerkleProof * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.connection.v1.ClientPaths; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.commitment.v1.MerkleProof; /** - * Verifies a ClientPaths message. + * Verifies a MerkleProof message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ClientPaths message from a plain object. Also converts values to their respective internal types. + * Creates a MerkleProof message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ClientPaths + * @returns MerkleProof */ - public static fromObject(object: { [k: string]: any }): ibc.core.connection.v1.ClientPaths; + public static fromObject(object: { [k: string]: any }): ibc.core.commitment.v1.MerkleProof; /** - * Creates a plain object from a ClientPaths message. Also converts values to other types if specified. - * @param message ClientPaths + * Creates a plain object from a MerkleProof message. Also converts values to other types if specified. + * @param message MerkleProof * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.core.connection.v1.ClientPaths, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.core.commitment.v1.MerkleProof, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ClientPaths to JSON. + * Converts this MerkleProof to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } + } + } - /** Properties of a ConnectionPaths. */ - interface IConnectionPaths { + /** Namespace connection. */ + namespace connection { - /** ConnectionPaths client_id */ - client_id?: (string|null); + /** Namespace v1. */ + namespace v1 { - /** ConnectionPaths paths */ - paths?: (string[]|null); - } + /** Represents a Msg */ + class Msg extends $protobuf.rpc.Service { - /** Represents a ConnectionPaths. */ - class ConnectionPaths implements IConnectionPaths { + /** + * Constructs a new Msg service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); /** - * Constructs a new ConnectionPaths. - * @param [properties] Properties to set + * Calls ConnectionOpenInit. + * @param request MsgConnectionOpenInit message or plain object + * @param callback Node-style callback called with the error, if any, and MsgConnectionOpenInitResponse */ - constructor(properties?: ibc.core.connection.v1.IConnectionPaths); + public connectionOpenInit(request: ibc.core.connection.v1.IMsgConnectionOpenInit, callback: ibc.core.connection.v1.Msg.ConnectionOpenInitCallback): void; - /** ConnectionPaths client_id. */ - public client_id: string; + /** + * Calls ConnectionOpenInit. + * @param request MsgConnectionOpenInit message or plain object + * @returns Promise + */ + public connectionOpenInit(request: ibc.core.connection.v1.IMsgConnectionOpenInit): Promise; - /** ConnectionPaths paths. */ - public paths: string[]; + /** + * Calls ConnectionOpenTry. + * @param request MsgConnectionOpenTry message or plain object + * @param callback Node-style callback called with the error, if any, and MsgConnectionOpenTryResponse + */ + public connectionOpenTry(request: ibc.core.connection.v1.IMsgConnectionOpenTry, callback: ibc.core.connection.v1.Msg.ConnectionOpenTryCallback): void; /** - * Encodes the specified ConnectionPaths message. Does not implicitly {@link ibc.core.connection.v1.ConnectionPaths.verify|verify} messages. - * @param message ConnectionPaths message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls ConnectionOpenTry. + * @param request MsgConnectionOpenTry message or plain object + * @returns Promise */ - public static encode(message: ibc.core.connection.v1.IConnectionPaths, writer?: $protobuf.Writer): $protobuf.Writer; + public connectionOpenTry(request: ibc.core.connection.v1.IMsgConnectionOpenTry): Promise; /** - * Encodes the specified ConnectionPaths message, length delimited. Does not implicitly {@link ibc.core.connection.v1.ConnectionPaths.verify|verify} messages. - * @param message ConnectionPaths message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls ConnectionOpenAck. + * @param request MsgConnectionOpenAck message or plain object + * @param callback Node-style callback called with the error, if any, and MsgConnectionOpenAckResponse */ - public static encodeDelimited(message: ibc.core.connection.v1.IConnectionPaths, writer?: $protobuf.Writer): $protobuf.Writer; + public connectionOpenAck(request: ibc.core.connection.v1.IMsgConnectionOpenAck, callback: ibc.core.connection.v1.Msg.ConnectionOpenAckCallback): void; /** - * Decodes a ConnectionPaths message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ConnectionPaths - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls ConnectionOpenAck. + * @param request MsgConnectionOpenAck message or plain object + * @returns Promise */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.connection.v1.ConnectionPaths; + public connectionOpenAck(request: ibc.core.connection.v1.IMsgConnectionOpenAck): Promise; /** - * Decodes a ConnectionPaths message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ConnectionPaths - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls ConnectionOpenConfirm. + * @param request MsgConnectionOpenConfirm message or plain object + * @param callback Node-style callback called with the error, if any, and MsgConnectionOpenConfirmResponse */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.connection.v1.ConnectionPaths; + public connectionOpenConfirm(request: ibc.core.connection.v1.IMsgConnectionOpenConfirm, callback: ibc.core.connection.v1.Msg.ConnectionOpenConfirmCallback): void; /** - * Verifies a ConnectionPaths message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls ConnectionOpenConfirm. + * @param request MsgConnectionOpenConfirm message or plain object + * @returns Promise + */ + public connectionOpenConfirm(request: ibc.core.connection.v1.IMsgConnectionOpenConfirm): Promise; + } + + namespace Msg { + + /** + * Callback as used by {@link ibc.core.connection.v1.Msg#connectionOpenInit}. + * @param error Error, if any + * @param [response] MsgConnectionOpenInitResponse */ - public static verify(message: { [k: string]: any }): (string|null); + type ConnectionOpenInitCallback = (error: (Error|null), response?: ibc.core.connection.v1.MsgConnectionOpenInitResponse) => void; /** - * Creates a ConnectionPaths message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ConnectionPaths + * Callback as used by {@link ibc.core.connection.v1.Msg#connectionOpenTry}. + * @param error Error, if any + * @param [response] MsgConnectionOpenTryResponse */ - public static fromObject(object: { [k: string]: any }): ibc.core.connection.v1.ConnectionPaths; + type ConnectionOpenTryCallback = (error: (Error|null), response?: ibc.core.connection.v1.MsgConnectionOpenTryResponse) => void; /** - * Creates a plain object from a ConnectionPaths message. Also converts values to other types if specified. - * @param message ConnectionPaths - * @param [options] Conversion options - * @returns Plain object + * Callback as used by {@link ibc.core.connection.v1.Msg#connectionOpenAck}. + * @param error Error, if any + * @param [response] MsgConnectionOpenAckResponse */ - public static toObject(message: ibc.core.connection.v1.ConnectionPaths, options?: $protobuf.IConversionOptions): { [k: string]: any }; + type ConnectionOpenAckCallback = (error: (Error|null), response?: ibc.core.connection.v1.MsgConnectionOpenAckResponse) => void; /** - * Converts this ConnectionPaths to JSON. - * @returns JSON object + * Callback as used by {@link ibc.core.connection.v1.Msg#connectionOpenConfirm}. + * @param error Error, if any + * @param [response] MsgConnectionOpenConfirmResponse */ - public toJSON(): { [k: string]: any }; + type ConnectionOpenConfirmCallback = (error: (Error|null), response?: ibc.core.connection.v1.MsgConnectionOpenConfirmResponse) => void; } - /** Properties of a Version. */ - interface IVersion { + /** Properties of a MsgConnectionOpenInit. */ + interface IMsgConnectionOpenInit { - /** Version identifier */ - identifier?: (string|null); + /** MsgConnectionOpenInit client_id */ + client_id?: (string|null); - /** Version features */ - features?: (string[]|null); + /** MsgConnectionOpenInit counterparty */ + counterparty?: (ibc.core.connection.v1.ICounterparty|null); + + /** MsgConnectionOpenInit version */ + version?: (ibc.core.connection.v1.IVersion|null); + + /** MsgConnectionOpenInit delay_period */ + delay_period?: (Long|null); + + /** MsgConnectionOpenInit signer */ + signer?: (string|null); } - /** Represents a Version. */ - class Version implements IVersion { + /** Represents a MsgConnectionOpenInit. */ + class MsgConnectionOpenInit implements IMsgConnectionOpenInit { /** - * Constructs a new Version. + * Constructs a new MsgConnectionOpenInit. * @param [properties] Properties to set */ - constructor(properties?: ibc.core.connection.v1.IVersion); + constructor(properties?: ibc.core.connection.v1.IMsgConnectionOpenInit); - /** Version identifier. */ - public identifier: string; + /** MsgConnectionOpenInit client_id. */ + public client_id: string; - /** Version features. */ - public features: string[]; + /** MsgConnectionOpenInit counterparty. */ + public counterparty?: (ibc.core.connection.v1.ICounterparty|null); + + /** MsgConnectionOpenInit version. */ + public version?: (ibc.core.connection.v1.IVersion|null); + + /** MsgConnectionOpenInit delay_period. */ + public delay_period: Long; + + /** MsgConnectionOpenInit signer. */ + public signer: string; /** - * Encodes the specified Version message. Does not implicitly {@link ibc.core.connection.v1.Version.verify|verify} messages. - * @param message Version message or plain object to encode + * Encodes the specified MsgConnectionOpenInit message. Does not implicitly {@link ibc.core.connection.v1.MsgConnectionOpenInit.verify|verify} messages. + * @param message MsgConnectionOpenInit message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.core.connection.v1.IVersion, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.core.connection.v1.IMsgConnectionOpenInit, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Version message, length delimited. Does not implicitly {@link ibc.core.connection.v1.Version.verify|verify} messages. - * @param message Version message or plain object to encode + * Encodes the specified MsgConnectionOpenInit message, length delimited. Does not implicitly {@link ibc.core.connection.v1.MsgConnectionOpenInit.verify|verify} messages. + * @param message MsgConnectionOpenInit message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.core.connection.v1.IVersion, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.core.connection.v1.IMsgConnectionOpenInit, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Version message from the specified reader or buffer. + * Decodes a MsgConnectionOpenInit message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Version + * @returns MsgConnectionOpenInit * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.connection.v1.Version; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.connection.v1.MsgConnectionOpenInit; /** - * Decodes a Version message from the specified reader or buffer, length delimited. + * Decodes a MsgConnectionOpenInit message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Version + * @returns MsgConnectionOpenInit * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.connection.v1.Version; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.connection.v1.MsgConnectionOpenInit; /** - * Verifies a Version message. + * Verifies a MsgConnectionOpenInit message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a Version message from a plain object. Also converts values to their respective internal types. + * Creates a MsgConnectionOpenInit message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Version + * @returns MsgConnectionOpenInit */ - public static fromObject(object: { [k: string]: any }): ibc.core.connection.v1.Version; + public static fromObject(object: { [k: string]: any }): ibc.core.connection.v1.MsgConnectionOpenInit; /** - * Creates a plain object from a Version message. Also converts values to other types if specified. - * @param message Version + * Creates a plain object from a MsgConnectionOpenInit message. Also converts values to other types if specified. + * @param message MsgConnectionOpenInit * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.core.connection.v1.Version, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.core.connection.v1.MsgConnectionOpenInit, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Version to JSON. + * Converts this MsgConnectionOpenInit to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a Params. */ - interface IParams { - - /** Params max_expected_time_per_block */ - max_expected_time_per_block?: (Long|null); + /** Properties of a MsgConnectionOpenInitResponse. */ + interface IMsgConnectionOpenInitResponse { } - /** Represents a Params. */ - class Params implements IParams { + /** Represents a MsgConnectionOpenInitResponse. */ + class MsgConnectionOpenInitResponse implements IMsgConnectionOpenInitResponse { /** - * Constructs a new Params. + * Constructs a new MsgConnectionOpenInitResponse. * @param [properties] Properties to set */ - constructor(properties?: ibc.core.connection.v1.IParams); - - /** Params max_expected_time_per_block. */ - public max_expected_time_per_block: Long; + constructor(properties?: ibc.core.connection.v1.IMsgConnectionOpenInitResponse); /** - * Encodes the specified Params message. Does not implicitly {@link ibc.core.connection.v1.Params.verify|verify} messages. - * @param message Params message or plain object to encode + * Encodes the specified MsgConnectionOpenInitResponse message. Does not implicitly {@link ibc.core.connection.v1.MsgConnectionOpenInitResponse.verify|verify} messages. + * @param message MsgConnectionOpenInitResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.core.connection.v1.IParams, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.core.connection.v1.IMsgConnectionOpenInitResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Params message, length delimited. Does not implicitly {@link ibc.core.connection.v1.Params.verify|verify} messages. - * @param message Params message or plain object to encode + * Encodes the specified MsgConnectionOpenInitResponse message, length delimited. Does not implicitly {@link ibc.core.connection.v1.MsgConnectionOpenInitResponse.verify|verify} messages. + * @param message MsgConnectionOpenInitResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.core.connection.v1.IParams, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.core.connection.v1.IMsgConnectionOpenInitResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Params message from the specified reader or buffer. + * Decodes a MsgConnectionOpenInitResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Params + * @returns MsgConnectionOpenInitResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.connection.v1.Params; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.connection.v1.MsgConnectionOpenInitResponse; /** - * Decodes a Params message from the specified reader or buffer, length delimited. + * Decodes a MsgConnectionOpenInitResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Params + * @returns MsgConnectionOpenInitResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.connection.v1.Params; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.connection.v1.MsgConnectionOpenInitResponse; /** - * Verifies a Params message. + * Verifies a MsgConnectionOpenInitResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a Params message from a plain object. Also converts values to their respective internal types. + * Creates a MsgConnectionOpenInitResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Params + * @returns MsgConnectionOpenInitResponse */ - public static fromObject(object: { [k: string]: any }): ibc.core.connection.v1.Params; + public static fromObject(object: { [k: string]: any }): ibc.core.connection.v1.MsgConnectionOpenInitResponse; /** - * Creates a plain object from a Params message. Also converts values to other types if specified. - * @param message Params + * Creates a plain object from a MsgConnectionOpenInitResponse message. Also converts values to other types if specified. + * @param message MsgConnectionOpenInitResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.core.connection.v1.Params, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.core.connection.v1.MsgConnectionOpenInitResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Params to JSON. + * Converts this MsgConnectionOpenInitResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Represents a Query */ - class Query extends $protobuf.rpc.Service { + /** Properties of a MsgConnectionOpenTry. */ + interface IMsgConnectionOpenTry { - /** - * Constructs a new Query service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + /** MsgConnectionOpenTry client_id */ + client_id?: (string|null); - /** - * Calls Connection. - * @param request QueryConnectionRequest message or plain object - * @param callback Node-style callback called with the error, if any, and QueryConnectionResponse - */ - public connection(request: ibc.core.connection.v1.IQueryConnectionRequest, callback: ibc.core.connection.v1.Query.ConnectionCallback): void; + /** MsgConnectionOpenTry previous_connection_id */ + previous_connection_id?: (string|null); - /** - * Calls Connection. - * @param request QueryConnectionRequest message or plain object - * @returns Promise - */ - public connection(request: ibc.core.connection.v1.IQueryConnectionRequest): Promise; + /** MsgConnectionOpenTry client_state */ + client_state?: (google.protobuf.IAny|null); - /** - * Calls Connections. - * @param request QueryConnectionsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and QueryConnectionsResponse - */ - public connections(request: ibc.core.connection.v1.IQueryConnectionsRequest, callback: ibc.core.connection.v1.Query.ConnectionsCallback): void; + /** MsgConnectionOpenTry counterparty */ + counterparty?: (ibc.core.connection.v1.ICounterparty|null); - /** - * Calls Connections. - * @param request QueryConnectionsRequest message or plain object - * @returns Promise - */ - public connections(request: ibc.core.connection.v1.IQueryConnectionsRequest): Promise; + /** MsgConnectionOpenTry delay_period */ + delay_period?: (Long|null); - /** - * Calls ClientConnections. - * @param request QueryClientConnectionsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and QueryClientConnectionsResponse - */ - public clientConnections(request: ibc.core.connection.v1.IQueryClientConnectionsRequest, callback: ibc.core.connection.v1.Query.ClientConnectionsCallback): void; + /** MsgConnectionOpenTry counterparty_versions */ + counterparty_versions?: (ibc.core.connection.v1.IVersion[]|null); - /** - * Calls ClientConnections. - * @param request QueryClientConnectionsRequest message or plain object - * @returns Promise - */ - public clientConnections(request: ibc.core.connection.v1.IQueryClientConnectionsRequest): Promise; + /** MsgConnectionOpenTry proof_height */ + proof_height?: (ibc.core.client.v1.IHeight|null); - /** - * Calls ConnectionClientState. - * @param request QueryConnectionClientStateRequest message or plain object - * @param callback Node-style callback called with the error, if any, and QueryConnectionClientStateResponse - */ - public connectionClientState(request: ibc.core.connection.v1.IQueryConnectionClientStateRequest, callback: ibc.core.connection.v1.Query.ConnectionClientStateCallback): void; + /** MsgConnectionOpenTry proof_init */ + proof_init?: (Uint8Array|null); - /** - * Calls ConnectionClientState. - * @param request QueryConnectionClientStateRequest message or plain object - * @returns Promise - */ - public connectionClientState(request: ibc.core.connection.v1.IQueryConnectionClientStateRequest): Promise; + /** MsgConnectionOpenTry proof_client */ + proof_client?: (Uint8Array|null); - /** - * Calls ConnectionConsensusState. - * @param request QueryConnectionConsensusStateRequest message or plain object - * @param callback Node-style callback called with the error, if any, and QueryConnectionConsensusStateResponse - */ - public connectionConsensusState(request: ibc.core.connection.v1.IQueryConnectionConsensusStateRequest, callback: ibc.core.connection.v1.Query.ConnectionConsensusStateCallback): void; + /** MsgConnectionOpenTry proof_consensus */ + proof_consensus?: (Uint8Array|null); - /** - * Calls ConnectionConsensusState. - * @param request QueryConnectionConsensusStateRequest message or plain object - * @returns Promise - */ - public connectionConsensusState(request: ibc.core.connection.v1.IQueryConnectionConsensusStateRequest): Promise; + /** MsgConnectionOpenTry consensus_height */ + consensus_height?: (ibc.core.client.v1.IHeight|null); + + /** MsgConnectionOpenTry signer */ + signer?: (string|null); + + /** MsgConnectionOpenTry host_consensus_state_proof */ + host_consensus_state_proof?: (Uint8Array|null); } - namespace Query { + /** Represents a MsgConnectionOpenTry. */ + class MsgConnectionOpenTry implements IMsgConnectionOpenTry { /** - * Callback as used by {@link ibc.core.connection.v1.Query#connection}. - * @param error Error, if any - * @param [response] QueryConnectionResponse + * Constructs a new MsgConnectionOpenTry. + * @param [properties] Properties to set */ - type ConnectionCallback = (error: (Error|null), response?: ibc.core.connection.v1.QueryConnectionResponse) => void; + constructor(properties?: ibc.core.connection.v1.IMsgConnectionOpenTry); - /** - * Callback as used by {@link ibc.core.connection.v1.Query#connections}. - * @param error Error, if any - * @param [response] QueryConnectionsResponse - */ - type ConnectionsCallback = (error: (Error|null), response?: ibc.core.connection.v1.QueryConnectionsResponse) => void; + /** MsgConnectionOpenTry client_id. */ + public client_id: string; - /** - * Callback as used by {@link ibc.core.connection.v1.Query#clientConnections}. - * @param error Error, if any - * @param [response] QueryClientConnectionsResponse - */ - type ClientConnectionsCallback = (error: (Error|null), response?: ibc.core.connection.v1.QueryClientConnectionsResponse) => void; + /** MsgConnectionOpenTry previous_connection_id. */ + public previous_connection_id: string; - /** - * Callback as used by {@link ibc.core.connection.v1.Query#connectionClientState}. - * @param error Error, if any - * @param [response] QueryConnectionClientStateResponse - */ - type ConnectionClientStateCallback = (error: (Error|null), response?: ibc.core.connection.v1.QueryConnectionClientStateResponse) => void; + /** MsgConnectionOpenTry client_state. */ + public client_state?: (google.protobuf.IAny|null); - /** - * Callback as used by {@link ibc.core.connection.v1.Query#connectionConsensusState}. - * @param error Error, if any - * @param [response] QueryConnectionConsensusStateResponse - */ - type ConnectionConsensusStateCallback = (error: (Error|null), response?: ibc.core.connection.v1.QueryConnectionConsensusStateResponse) => void; - } + /** MsgConnectionOpenTry counterparty. */ + public counterparty?: (ibc.core.connection.v1.ICounterparty|null); - /** Properties of a QueryConnectionRequest. */ - interface IQueryConnectionRequest { + /** MsgConnectionOpenTry delay_period. */ + public delay_period: Long; - /** QueryConnectionRequest connection_id */ - connection_id?: (string|null); - } + /** MsgConnectionOpenTry counterparty_versions. */ + public counterparty_versions: ibc.core.connection.v1.IVersion[]; - /** Represents a QueryConnectionRequest. */ - class QueryConnectionRequest implements IQueryConnectionRequest { + /** MsgConnectionOpenTry proof_height. */ + public proof_height?: (ibc.core.client.v1.IHeight|null); - /** - * Constructs a new QueryConnectionRequest. - * @param [properties] Properties to set - */ - constructor(properties?: ibc.core.connection.v1.IQueryConnectionRequest); + /** MsgConnectionOpenTry proof_init. */ + public proof_init: Uint8Array; - /** QueryConnectionRequest connection_id. */ - public connection_id: string; + /** MsgConnectionOpenTry proof_client. */ + public proof_client: Uint8Array; + + /** MsgConnectionOpenTry proof_consensus. */ + public proof_consensus: Uint8Array; + + /** MsgConnectionOpenTry consensus_height. */ + public consensus_height?: (ibc.core.client.v1.IHeight|null); + + /** MsgConnectionOpenTry signer. */ + public signer: string; + + /** MsgConnectionOpenTry host_consensus_state_proof. */ + public host_consensus_state_proof: Uint8Array; /** - * Encodes the specified QueryConnectionRequest message. Does not implicitly {@link ibc.core.connection.v1.QueryConnectionRequest.verify|verify} messages. - * @param message QueryConnectionRequest message or plain object to encode + * Encodes the specified MsgConnectionOpenTry message. Does not implicitly {@link ibc.core.connection.v1.MsgConnectionOpenTry.verify|verify} messages. + * @param message MsgConnectionOpenTry message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.core.connection.v1.IQueryConnectionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.core.connection.v1.IMsgConnectionOpenTry, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified QueryConnectionRequest message, length delimited. Does not implicitly {@link ibc.core.connection.v1.QueryConnectionRequest.verify|verify} messages. - * @param message QueryConnectionRequest message or plain object to encode + * Encodes the specified MsgConnectionOpenTry message, length delimited. Does not implicitly {@link ibc.core.connection.v1.MsgConnectionOpenTry.verify|verify} messages. + * @param message MsgConnectionOpenTry message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.core.connection.v1.IQueryConnectionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.core.connection.v1.IMsgConnectionOpenTry, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a QueryConnectionRequest message from the specified reader or buffer. + * Decodes a MsgConnectionOpenTry message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns QueryConnectionRequest + * @returns MsgConnectionOpenTry * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.connection.v1.QueryConnectionRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.connection.v1.MsgConnectionOpenTry; /** - * Decodes a QueryConnectionRequest message from the specified reader or buffer, length delimited. + * Decodes a MsgConnectionOpenTry message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns QueryConnectionRequest + * @returns MsgConnectionOpenTry * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.connection.v1.QueryConnectionRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.connection.v1.MsgConnectionOpenTry; /** - * Verifies a QueryConnectionRequest message. + * Verifies a MsgConnectionOpenTry message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a QueryConnectionRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MsgConnectionOpenTry message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns QueryConnectionRequest + * @returns MsgConnectionOpenTry */ - public static fromObject(object: { [k: string]: any }): ibc.core.connection.v1.QueryConnectionRequest; + public static fromObject(object: { [k: string]: any }): ibc.core.connection.v1.MsgConnectionOpenTry; /** - * Creates a plain object from a QueryConnectionRequest message. Also converts values to other types if specified. - * @param message QueryConnectionRequest + * Creates a plain object from a MsgConnectionOpenTry message. Also converts values to other types if specified. + * @param message MsgConnectionOpenTry * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.core.connection.v1.QueryConnectionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.core.connection.v1.MsgConnectionOpenTry, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this QueryConnectionRequest to JSON. + * Converts this MsgConnectionOpenTry to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a QueryConnectionResponse. */ - interface IQueryConnectionResponse { - - /** QueryConnectionResponse connection */ - connection?: (ibc.core.connection.v1.IConnectionEnd|null); - - /** QueryConnectionResponse proof */ - proof?: (Uint8Array|null); - - /** QueryConnectionResponse proof_height */ - proof_height?: (ibc.core.client.v1.IHeight|null); + /** Properties of a MsgConnectionOpenTryResponse. */ + interface IMsgConnectionOpenTryResponse { } - /** Represents a QueryConnectionResponse. */ - class QueryConnectionResponse implements IQueryConnectionResponse { + /** Represents a MsgConnectionOpenTryResponse. */ + class MsgConnectionOpenTryResponse implements IMsgConnectionOpenTryResponse { /** - * Constructs a new QueryConnectionResponse. + * Constructs a new MsgConnectionOpenTryResponse. * @param [properties] Properties to set */ - constructor(properties?: ibc.core.connection.v1.IQueryConnectionResponse); - - /** QueryConnectionResponse connection. */ - public connection?: (ibc.core.connection.v1.IConnectionEnd|null); - - /** QueryConnectionResponse proof. */ - public proof: Uint8Array; - - /** QueryConnectionResponse proof_height. */ - public proof_height?: (ibc.core.client.v1.IHeight|null); + constructor(properties?: ibc.core.connection.v1.IMsgConnectionOpenTryResponse); /** - * Encodes the specified QueryConnectionResponse message. Does not implicitly {@link ibc.core.connection.v1.QueryConnectionResponse.verify|verify} messages. - * @param message QueryConnectionResponse message or plain object to encode + * Encodes the specified MsgConnectionOpenTryResponse message. Does not implicitly {@link ibc.core.connection.v1.MsgConnectionOpenTryResponse.verify|verify} messages. + * @param message MsgConnectionOpenTryResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.core.connection.v1.IQueryConnectionResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.core.connection.v1.IMsgConnectionOpenTryResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified QueryConnectionResponse message, length delimited. Does not implicitly {@link ibc.core.connection.v1.QueryConnectionResponse.verify|verify} messages. - * @param message QueryConnectionResponse message or plain object to encode + * Encodes the specified MsgConnectionOpenTryResponse message, length delimited. Does not implicitly {@link ibc.core.connection.v1.MsgConnectionOpenTryResponse.verify|verify} messages. + * @param message MsgConnectionOpenTryResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.core.connection.v1.IQueryConnectionResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.core.connection.v1.IMsgConnectionOpenTryResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a QueryConnectionResponse message from the specified reader or buffer. + * Decodes a MsgConnectionOpenTryResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns QueryConnectionResponse + * @returns MsgConnectionOpenTryResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.connection.v1.QueryConnectionResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.connection.v1.MsgConnectionOpenTryResponse; /** - * Decodes a QueryConnectionResponse message from the specified reader or buffer, length delimited. + * Decodes a MsgConnectionOpenTryResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns QueryConnectionResponse + * @returns MsgConnectionOpenTryResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.connection.v1.QueryConnectionResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.connection.v1.MsgConnectionOpenTryResponse; /** - * Verifies a QueryConnectionResponse message. + * Verifies a MsgConnectionOpenTryResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a QueryConnectionResponse message from a plain object. Also converts values to their respective internal types. + * Creates a MsgConnectionOpenTryResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns QueryConnectionResponse + * @returns MsgConnectionOpenTryResponse */ - public static fromObject(object: { [k: string]: any }): ibc.core.connection.v1.QueryConnectionResponse; + public static fromObject(object: { [k: string]: any }): ibc.core.connection.v1.MsgConnectionOpenTryResponse; /** - * Creates a plain object from a QueryConnectionResponse message. Also converts values to other types if specified. - * @param message QueryConnectionResponse + * Creates a plain object from a MsgConnectionOpenTryResponse message. Also converts values to other types if specified. + * @param message MsgConnectionOpenTryResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.core.connection.v1.QueryConnectionResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.core.connection.v1.MsgConnectionOpenTryResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MsgConnectionOpenTryResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a MsgConnectionOpenAck. */ + interface IMsgConnectionOpenAck { + + /** MsgConnectionOpenAck connection_id */ + connection_id?: (string|null); + + /** MsgConnectionOpenAck counterparty_connection_id */ + counterparty_connection_id?: (string|null); + + /** MsgConnectionOpenAck version */ + version?: (ibc.core.connection.v1.IVersion|null); + + /** MsgConnectionOpenAck client_state */ + client_state?: (google.protobuf.IAny|null); + + /** MsgConnectionOpenAck proof_height */ + proof_height?: (ibc.core.client.v1.IHeight|null); + + /** MsgConnectionOpenAck proof_try */ + proof_try?: (Uint8Array|null); + + /** MsgConnectionOpenAck proof_client */ + proof_client?: (Uint8Array|null); + + /** MsgConnectionOpenAck proof_consensus */ + proof_consensus?: (Uint8Array|null); + + /** MsgConnectionOpenAck consensus_height */ + consensus_height?: (ibc.core.client.v1.IHeight|null); + + /** MsgConnectionOpenAck signer */ + signer?: (string|null); + + /** MsgConnectionOpenAck host_consensus_state_proof */ + host_consensus_state_proof?: (Uint8Array|null); + } + + /** Represents a MsgConnectionOpenAck. */ + class MsgConnectionOpenAck implements IMsgConnectionOpenAck { + + /** + * Constructs a new MsgConnectionOpenAck. + * @param [properties] Properties to set + */ + constructor(properties?: ibc.core.connection.v1.IMsgConnectionOpenAck); + + /** MsgConnectionOpenAck connection_id. */ + public connection_id: string; + + /** MsgConnectionOpenAck counterparty_connection_id. */ + public counterparty_connection_id: string; + + /** MsgConnectionOpenAck version. */ + public version?: (ibc.core.connection.v1.IVersion|null); - /** - * Converts this QueryConnectionResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** MsgConnectionOpenAck client_state. */ + public client_state?: (google.protobuf.IAny|null); - /** Properties of a QueryConnectionsRequest. */ - interface IQueryConnectionsRequest { + /** MsgConnectionOpenAck proof_height. */ + public proof_height?: (ibc.core.client.v1.IHeight|null); - /** QueryConnectionsRequest pagination */ - pagination?: (cosmos.base.query.v1beta1.IPageRequest|null); - } + /** MsgConnectionOpenAck proof_try. */ + public proof_try: Uint8Array; - /** Represents a QueryConnectionsRequest. */ - class QueryConnectionsRequest implements IQueryConnectionsRequest { + /** MsgConnectionOpenAck proof_client. */ + public proof_client: Uint8Array; - /** - * Constructs a new QueryConnectionsRequest. - * @param [properties] Properties to set - */ - constructor(properties?: ibc.core.connection.v1.IQueryConnectionsRequest); + /** MsgConnectionOpenAck proof_consensus. */ + public proof_consensus: Uint8Array; - /** QueryConnectionsRequest pagination. */ - public pagination?: (cosmos.base.query.v1beta1.IPageRequest|null); + /** MsgConnectionOpenAck consensus_height. */ + public consensus_height?: (ibc.core.client.v1.IHeight|null); + + /** MsgConnectionOpenAck signer. */ + public signer: string; + + /** MsgConnectionOpenAck host_consensus_state_proof. */ + public host_consensus_state_proof: Uint8Array; /** - * Encodes the specified QueryConnectionsRequest message. Does not implicitly {@link ibc.core.connection.v1.QueryConnectionsRequest.verify|verify} messages. - * @param message QueryConnectionsRequest message or plain object to encode + * Encodes the specified MsgConnectionOpenAck message. Does not implicitly {@link ibc.core.connection.v1.MsgConnectionOpenAck.verify|verify} messages. + * @param message MsgConnectionOpenAck message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.core.connection.v1.IQueryConnectionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.core.connection.v1.IMsgConnectionOpenAck, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified QueryConnectionsRequest message, length delimited. Does not implicitly {@link ibc.core.connection.v1.QueryConnectionsRequest.verify|verify} messages. - * @param message QueryConnectionsRequest message or plain object to encode + * Encodes the specified MsgConnectionOpenAck message, length delimited. Does not implicitly {@link ibc.core.connection.v1.MsgConnectionOpenAck.verify|verify} messages. + * @param message MsgConnectionOpenAck message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.core.connection.v1.IQueryConnectionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.core.connection.v1.IMsgConnectionOpenAck, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a QueryConnectionsRequest message from the specified reader or buffer. + * Decodes a MsgConnectionOpenAck message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns QueryConnectionsRequest + * @returns MsgConnectionOpenAck * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.connection.v1.QueryConnectionsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.connection.v1.MsgConnectionOpenAck; /** - * Decodes a QueryConnectionsRequest message from the specified reader or buffer, length delimited. + * Decodes a MsgConnectionOpenAck message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns QueryConnectionsRequest + * @returns MsgConnectionOpenAck * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.connection.v1.QueryConnectionsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.connection.v1.MsgConnectionOpenAck; /** - * Verifies a QueryConnectionsRequest message. + * Verifies a MsgConnectionOpenAck message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a QueryConnectionsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MsgConnectionOpenAck message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns QueryConnectionsRequest + * @returns MsgConnectionOpenAck */ - public static fromObject(object: { [k: string]: any }): ibc.core.connection.v1.QueryConnectionsRequest; + public static fromObject(object: { [k: string]: any }): ibc.core.connection.v1.MsgConnectionOpenAck; /** - * Creates a plain object from a QueryConnectionsRequest message. Also converts values to other types if specified. - * @param message QueryConnectionsRequest + * Creates a plain object from a MsgConnectionOpenAck message. Also converts values to other types if specified. + * @param message MsgConnectionOpenAck * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.core.connection.v1.QueryConnectionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.core.connection.v1.MsgConnectionOpenAck, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this QueryConnectionsRequest to JSON. + * Converts this MsgConnectionOpenAck to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a QueryConnectionsResponse. */ - interface IQueryConnectionsResponse { - - /** QueryConnectionsResponse connections */ - connections?: (ibc.core.connection.v1.IIdentifiedConnection[]|null); - - /** QueryConnectionsResponse pagination */ - pagination?: (cosmos.base.query.v1beta1.IPageResponse|null); - - /** QueryConnectionsResponse height */ - height?: (ibc.core.client.v1.IHeight|null); + /** Properties of a MsgConnectionOpenAckResponse. */ + interface IMsgConnectionOpenAckResponse { } - /** Represents a QueryConnectionsResponse. */ - class QueryConnectionsResponse implements IQueryConnectionsResponse { + /** Represents a MsgConnectionOpenAckResponse. */ + class MsgConnectionOpenAckResponse implements IMsgConnectionOpenAckResponse { /** - * Constructs a new QueryConnectionsResponse. + * Constructs a new MsgConnectionOpenAckResponse. * @param [properties] Properties to set */ - constructor(properties?: ibc.core.connection.v1.IQueryConnectionsResponse); - - /** QueryConnectionsResponse connections. */ - public connections: ibc.core.connection.v1.IIdentifiedConnection[]; - - /** QueryConnectionsResponse pagination. */ - public pagination?: (cosmos.base.query.v1beta1.IPageResponse|null); - - /** QueryConnectionsResponse height. */ - public height?: (ibc.core.client.v1.IHeight|null); + constructor(properties?: ibc.core.connection.v1.IMsgConnectionOpenAckResponse); /** - * Encodes the specified QueryConnectionsResponse message. Does not implicitly {@link ibc.core.connection.v1.QueryConnectionsResponse.verify|verify} messages. - * @param message QueryConnectionsResponse message or plain object to encode + * Encodes the specified MsgConnectionOpenAckResponse message. Does not implicitly {@link ibc.core.connection.v1.MsgConnectionOpenAckResponse.verify|verify} messages. + * @param message MsgConnectionOpenAckResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.core.connection.v1.IQueryConnectionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.core.connection.v1.IMsgConnectionOpenAckResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified QueryConnectionsResponse message, length delimited. Does not implicitly {@link ibc.core.connection.v1.QueryConnectionsResponse.verify|verify} messages. - * @param message QueryConnectionsResponse message or plain object to encode + * Encodes the specified MsgConnectionOpenAckResponse message, length delimited. Does not implicitly {@link ibc.core.connection.v1.MsgConnectionOpenAckResponse.verify|verify} messages. + * @param message MsgConnectionOpenAckResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.core.connection.v1.IQueryConnectionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.core.connection.v1.IMsgConnectionOpenAckResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a QueryConnectionsResponse message from the specified reader or buffer. + * Decodes a MsgConnectionOpenAckResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns QueryConnectionsResponse + * @returns MsgConnectionOpenAckResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.connection.v1.QueryConnectionsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.connection.v1.MsgConnectionOpenAckResponse; /** - * Decodes a QueryConnectionsResponse message from the specified reader or buffer, length delimited. + * Decodes a MsgConnectionOpenAckResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns QueryConnectionsResponse + * @returns MsgConnectionOpenAckResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.connection.v1.QueryConnectionsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.connection.v1.MsgConnectionOpenAckResponse; /** - * Verifies a QueryConnectionsResponse message. + * Verifies a MsgConnectionOpenAckResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a QueryConnectionsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a MsgConnectionOpenAckResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns QueryConnectionsResponse + * @returns MsgConnectionOpenAckResponse */ - public static fromObject(object: { [k: string]: any }): ibc.core.connection.v1.QueryConnectionsResponse; + public static fromObject(object: { [k: string]: any }): ibc.core.connection.v1.MsgConnectionOpenAckResponse; /** - * Creates a plain object from a QueryConnectionsResponse message. Also converts values to other types if specified. - * @param message QueryConnectionsResponse + * Creates a plain object from a MsgConnectionOpenAckResponse message. Also converts values to other types if specified. + * @param message MsgConnectionOpenAckResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.core.connection.v1.QueryConnectionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.core.connection.v1.MsgConnectionOpenAckResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this QueryConnectionsResponse to JSON. + * Converts this MsgConnectionOpenAckResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a QueryClientConnectionsRequest. */ - interface IQueryClientConnectionsRequest { + /** Properties of a MsgConnectionOpenConfirm. */ + interface IMsgConnectionOpenConfirm { - /** QueryClientConnectionsRequest client_id */ - client_id?: (string|null); + /** MsgConnectionOpenConfirm connection_id */ + connection_id?: (string|null); + + /** MsgConnectionOpenConfirm proof_ack */ + proof_ack?: (Uint8Array|null); + + /** MsgConnectionOpenConfirm proof_height */ + proof_height?: (ibc.core.client.v1.IHeight|null); + + /** MsgConnectionOpenConfirm signer */ + signer?: (string|null); } - /** Represents a QueryClientConnectionsRequest. */ - class QueryClientConnectionsRequest implements IQueryClientConnectionsRequest { + /** Represents a MsgConnectionOpenConfirm. */ + class MsgConnectionOpenConfirm implements IMsgConnectionOpenConfirm { /** - * Constructs a new QueryClientConnectionsRequest. + * Constructs a new MsgConnectionOpenConfirm. * @param [properties] Properties to set */ - constructor(properties?: ibc.core.connection.v1.IQueryClientConnectionsRequest); + constructor(properties?: ibc.core.connection.v1.IMsgConnectionOpenConfirm); - /** QueryClientConnectionsRequest client_id. */ - public client_id: string; + /** MsgConnectionOpenConfirm connection_id. */ + public connection_id: string; + + /** MsgConnectionOpenConfirm proof_ack. */ + public proof_ack: Uint8Array; + + /** MsgConnectionOpenConfirm proof_height. */ + public proof_height?: (ibc.core.client.v1.IHeight|null); + + /** MsgConnectionOpenConfirm signer. */ + public signer: string; /** - * Encodes the specified QueryClientConnectionsRequest message. Does not implicitly {@link ibc.core.connection.v1.QueryClientConnectionsRequest.verify|verify} messages. - * @param message QueryClientConnectionsRequest message or plain object to encode + * Encodes the specified MsgConnectionOpenConfirm message. Does not implicitly {@link ibc.core.connection.v1.MsgConnectionOpenConfirm.verify|verify} messages. + * @param message MsgConnectionOpenConfirm message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.core.connection.v1.IQueryClientConnectionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.core.connection.v1.IMsgConnectionOpenConfirm, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified QueryClientConnectionsRequest message, length delimited. Does not implicitly {@link ibc.core.connection.v1.QueryClientConnectionsRequest.verify|verify} messages. - * @param message QueryClientConnectionsRequest message or plain object to encode + * Encodes the specified MsgConnectionOpenConfirm message, length delimited. Does not implicitly {@link ibc.core.connection.v1.MsgConnectionOpenConfirm.verify|verify} messages. + * @param message MsgConnectionOpenConfirm message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.core.connection.v1.IQueryClientConnectionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.core.connection.v1.IMsgConnectionOpenConfirm, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a QueryClientConnectionsRequest message from the specified reader or buffer. + * Decodes a MsgConnectionOpenConfirm message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns QueryClientConnectionsRequest + * @returns MsgConnectionOpenConfirm * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.connection.v1.QueryClientConnectionsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.connection.v1.MsgConnectionOpenConfirm; /** - * Decodes a QueryClientConnectionsRequest message from the specified reader or buffer, length delimited. + * Decodes a MsgConnectionOpenConfirm message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns QueryClientConnectionsRequest + * @returns MsgConnectionOpenConfirm * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.connection.v1.QueryClientConnectionsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.connection.v1.MsgConnectionOpenConfirm; /** - * Verifies a QueryClientConnectionsRequest message. + * Verifies a MsgConnectionOpenConfirm message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a QueryClientConnectionsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MsgConnectionOpenConfirm message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns QueryClientConnectionsRequest + * @returns MsgConnectionOpenConfirm */ - public static fromObject(object: { [k: string]: any }): ibc.core.connection.v1.QueryClientConnectionsRequest; + public static fromObject(object: { [k: string]: any }): ibc.core.connection.v1.MsgConnectionOpenConfirm; /** - * Creates a plain object from a QueryClientConnectionsRequest message. Also converts values to other types if specified. - * @param message QueryClientConnectionsRequest + * Creates a plain object from a MsgConnectionOpenConfirm message. Also converts values to other types if specified. + * @param message MsgConnectionOpenConfirm * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.core.connection.v1.QueryClientConnectionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.core.connection.v1.MsgConnectionOpenConfirm, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this QueryClientConnectionsRequest to JSON. + * Converts this MsgConnectionOpenConfirm to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a QueryClientConnectionsResponse. */ - interface IQueryClientConnectionsResponse { - - /** QueryClientConnectionsResponse connection_paths */ - connection_paths?: (string[]|null); - - /** QueryClientConnectionsResponse proof */ - proof?: (Uint8Array|null); - - /** QueryClientConnectionsResponse proof_height */ - proof_height?: (ibc.core.client.v1.IHeight|null); + /** Properties of a MsgConnectionOpenConfirmResponse. */ + interface IMsgConnectionOpenConfirmResponse { } - /** Represents a QueryClientConnectionsResponse. */ - class QueryClientConnectionsResponse implements IQueryClientConnectionsResponse { + /** Represents a MsgConnectionOpenConfirmResponse. */ + class MsgConnectionOpenConfirmResponse implements IMsgConnectionOpenConfirmResponse { /** - * Constructs a new QueryClientConnectionsResponse. + * Constructs a new MsgConnectionOpenConfirmResponse. * @param [properties] Properties to set */ - constructor(properties?: ibc.core.connection.v1.IQueryClientConnectionsResponse); - - /** QueryClientConnectionsResponse connection_paths. */ - public connection_paths: string[]; - - /** QueryClientConnectionsResponse proof. */ - public proof: Uint8Array; - - /** QueryClientConnectionsResponse proof_height. */ - public proof_height?: (ibc.core.client.v1.IHeight|null); + constructor(properties?: ibc.core.connection.v1.IMsgConnectionOpenConfirmResponse); /** - * Encodes the specified QueryClientConnectionsResponse message. Does not implicitly {@link ibc.core.connection.v1.QueryClientConnectionsResponse.verify|verify} messages. - * @param message QueryClientConnectionsResponse message or plain object to encode + * Encodes the specified MsgConnectionOpenConfirmResponse message. Does not implicitly {@link ibc.core.connection.v1.MsgConnectionOpenConfirmResponse.verify|verify} messages. + * @param message MsgConnectionOpenConfirmResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.core.connection.v1.IQueryClientConnectionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.core.connection.v1.IMsgConnectionOpenConfirmResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified QueryClientConnectionsResponse message, length delimited. Does not implicitly {@link ibc.core.connection.v1.QueryClientConnectionsResponse.verify|verify} messages. - * @param message QueryClientConnectionsResponse message or plain object to encode + * Encodes the specified MsgConnectionOpenConfirmResponse message, length delimited. Does not implicitly {@link ibc.core.connection.v1.MsgConnectionOpenConfirmResponse.verify|verify} messages. + * @param message MsgConnectionOpenConfirmResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.core.connection.v1.IQueryClientConnectionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.core.connection.v1.IMsgConnectionOpenConfirmResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a QueryClientConnectionsResponse message from the specified reader or buffer. + * Decodes a MsgConnectionOpenConfirmResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns QueryClientConnectionsResponse + * @returns MsgConnectionOpenConfirmResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.connection.v1.QueryClientConnectionsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.connection.v1.MsgConnectionOpenConfirmResponse; /** - * Decodes a QueryClientConnectionsResponse message from the specified reader or buffer, length delimited. + * Decodes a MsgConnectionOpenConfirmResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns QueryClientConnectionsResponse + * @returns MsgConnectionOpenConfirmResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.connection.v1.QueryClientConnectionsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.connection.v1.MsgConnectionOpenConfirmResponse; /** - * Verifies a QueryClientConnectionsResponse message. + * Verifies a MsgConnectionOpenConfirmResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a QueryClientConnectionsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a MsgConnectionOpenConfirmResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns QueryClientConnectionsResponse + * @returns MsgConnectionOpenConfirmResponse */ - public static fromObject(object: { [k: string]: any }): ibc.core.connection.v1.QueryClientConnectionsResponse; + public static fromObject(object: { [k: string]: any }): ibc.core.connection.v1.MsgConnectionOpenConfirmResponse; /** - * Creates a plain object from a QueryClientConnectionsResponse message. Also converts values to other types if specified. - * @param message QueryClientConnectionsResponse + * Creates a plain object from a MsgConnectionOpenConfirmResponse message. Also converts values to other types if specified. + * @param message MsgConnectionOpenConfirmResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.core.connection.v1.QueryClientConnectionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.core.connection.v1.MsgConnectionOpenConfirmResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this QueryClientConnectionsResponse to JSON. + * Converts this MsgConnectionOpenConfirmResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a QueryConnectionClientStateRequest. */ - interface IQueryConnectionClientStateRequest { + /** Properties of a ConnectionEnd. */ + interface IConnectionEnd { - /** QueryConnectionClientStateRequest connection_id */ - connection_id?: (string|null); + /** ConnectionEnd client_id */ + client_id?: (string|null); + + /** ConnectionEnd versions */ + versions?: (ibc.core.connection.v1.IVersion[]|null); + + /** ConnectionEnd state */ + state?: (ibc.core.connection.v1.State|null); + + /** ConnectionEnd counterparty */ + counterparty?: (ibc.core.connection.v1.ICounterparty|null); + + /** ConnectionEnd delay_period */ + delay_period?: (Long|null); } - /** Represents a QueryConnectionClientStateRequest. */ - class QueryConnectionClientStateRequest implements IQueryConnectionClientStateRequest { + /** Represents a ConnectionEnd. */ + class ConnectionEnd implements IConnectionEnd { /** - * Constructs a new QueryConnectionClientStateRequest. + * Constructs a new ConnectionEnd. * @param [properties] Properties to set */ - constructor(properties?: ibc.core.connection.v1.IQueryConnectionClientStateRequest); + constructor(properties?: ibc.core.connection.v1.IConnectionEnd); - /** QueryConnectionClientStateRequest connection_id. */ - public connection_id: string; + /** ConnectionEnd client_id. */ + public client_id: string; + + /** ConnectionEnd versions. */ + public versions: ibc.core.connection.v1.IVersion[]; + + /** ConnectionEnd state. */ + public state: ibc.core.connection.v1.State; + + /** ConnectionEnd counterparty. */ + public counterparty?: (ibc.core.connection.v1.ICounterparty|null); + + /** ConnectionEnd delay_period. */ + public delay_period: Long; /** - * Encodes the specified QueryConnectionClientStateRequest message. Does not implicitly {@link ibc.core.connection.v1.QueryConnectionClientStateRequest.verify|verify} messages. - * @param message QueryConnectionClientStateRequest message or plain object to encode + * Encodes the specified ConnectionEnd message. Does not implicitly {@link ibc.core.connection.v1.ConnectionEnd.verify|verify} messages. + * @param message ConnectionEnd message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.core.connection.v1.IQueryConnectionClientStateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.core.connection.v1.IConnectionEnd, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified QueryConnectionClientStateRequest message, length delimited. Does not implicitly {@link ibc.core.connection.v1.QueryConnectionClientStateRequest.verify|verify} messages. - * @param message QueryConnectionClientStateRequest message or plain object to encode + * Encodes the specified ConnectionEnd message, length delimited. Does not implicitly {@link ibc.core.connection.v1.ConnectionEnd.verify|verify} messages. + * @param message ConnectionEnd message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.core.connection.v1.IQueryConnectionClientStateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.core.connection.v1.IConnectionEnd, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a QueryConnectionClientStateRequest message from the specified reader or buffer. + * Decodes a ConnectionEnd message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns QueryConnectionClientStateRequest + * @returns ConnectionEnd * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.connection.v1.QueryConnectionClientStateRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.connection.v1.ConnectionEnd; /** - * Decodes a QueryConnectionClientStateRequest message from the specified reader or buffer, length delimited. + * Decodes a ConnectionEnd message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns QueryConnectionClientStateRequest + * @returns ConnectionEnd * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.connection.v1.QueryConnectionClientStateRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.connection.v1.ConnectionEnd; /** - * Verifies a QueryConnectionClientStateRequest message. + * Verifies a ConnectionEnd message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a QueryConnectionClientStateRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ConnectionEnd message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns QueryConnectionClientStateRequest + * @returns ConnectionEnd */ - public static fromObject(object: { [k: string]: any }): ibc.core.connection.v1.QueryConnectionClientStateRequest; + public static fromObject(object: { [k: string]: any }): ibc.core.connection.v1.ConnectionEnd; /** - * Creates a plain object from a QueryConnectionClientStateRequest message. Also converts values to other types if specified. - * @param message QueryConnectionClientStateRequest + * Creates a plain object from a ConnectionEnd message. Also converts values to other types if specified. + * @param message ConnectionEnd * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.core.connection.v1.QueryConnectionClientStateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.core.connection.v1.ConnectionEnd, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this QueryConnectionClientStateRequest to JSON. + * Converts this ConnectionEnd to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a QueryConnectionClientStateResponse. */ - interface IQueryConnectionClientStateResponse { + /** Properties of an IdentifiedConnection. */ + interface IIdentifiedConnection { - /** QueryConnectionClientStateResponse identified_client_state */ - identified_client_state?: (ibc.core.client.v1.IIdentifiedClientState|null); + /** IdentifiedConnection id */ + id?: (string|null); - /** QueryConnectionClientStateResponse proof */ - proof?: (Uint8Array|null); + /** IdentifiedConnection client_id */ + client_id?: (string|null); - /** QueryConnectionClientStateResponse proof_height */ - proof_height?: (ibc.core.client.v1.IHeight|null); + /** IdentifiedConnection versions */ + versions?: (ibc.core.connection.v1.IVersion[]|null); + + /** IdentifiedConnection state */ + state?: (ibc.core.connection.v1.State|null); + + /** IdentifiedConnection counterparty */ + counterparty?: (ibc.core.connection.v1.ICounterparty|null); + + /** IdentifiedConnection delay_period */ + delay_period?: (Long|null); } - /** Represents a QueryConnectionClientStateResponse. */ - class QueryConnectionClientStateResponse implements IQueryConnectionClientStateResponse { + /** Represents an IdentifiedConnection. */ + class IdentifiedConnection implements IIdentifiedConnection { /** - * Constructs a new QueryConnectionClientStateResponse. + * Constructs a new IdentifiedConnection. * @param [properties] Properties to set */ - constructor(properties?: ibc.core.connection.v1.IQueryConnectionClientStateResponse); + constructor(properties?: ibc.core.connection.v1.IIdentifiedConnection); - /** QueryConnectionClientStateResponse identified_client_state. */ - public identified_client_state?: (ibc.core.client.v1.IIdentifiedClientState|null); + /** IdentifiedConnection id. */ + public id: string; - /** QueryConnectionClientStateResponse proof. */ - public proof: Uint8Array; + /** IdentifiedConnection client_id. */ + public client_id: string; - /** QueryConnectionClientStateResponse proof_height. */ - public proof_height?: (ibc.core.client.v1.IHeight|null); + /** IdentifiedConnection versions. */ + public versions: ibc.core.connection.v1.IVersion[]; + + /** IdentifiedConnection state. */ + public state: ibc.core.connection.v1.State; + + /** IdentifiedConnection counterparty. */ + public counterparty?: (ibc.core.connection.v1.ICounterparty|null); + + /** IdentifiedConnection delay_period. */ + public delay_period: Long; /** - * Encodes the specified QueryConnectionClientStateResponse message. Does not implicitly {@link ibc.core.connection.v1.QueryConnectionClientStateResponse.verify|verify} messages. - * @param message QueryConnectionClientStateResponse message or plain object to encode + * Encodes the specified IdentifiedConnection message. Does not implicitly {@link ibc.core.connection.v1.IdentifiedConnection.verify|verify} messages. + * @param message IdentifiedConnection message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.core.connection.v1.IQueryConnectionClientStateResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.core.connection.v1.IIdentifiedConnection, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified QueryConnectionClientStateResponse message, length delimited. Does not implicitly {@link ibc.core.connection.v1.QueryConnectionClientStateResponse.verify|verify} messages. - * @param message QueryConnectionClientStateResponse message or plain object to encode + * Encodes the specified IdentifiedConnection message, length delimited. Does not implicitly {@link ibc.core.connection.v1.IdentifiedConnection.verify|verify} messages. + * @param message IdentifiedConnection message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.core.connection.v1.IQueryConnectionClientStateResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.core.connection.v1.IIdentifiedConnection, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a QueryConnectionClientStateResponse message from the specified reader or buffer. + * Decodes an IdentifiedConnection message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns QueryConnectionClientStateResponse + * @returns IdentifiedConnection * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.connection.v1.QueryConnectionClientStateResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.connection.v1.IdentifiedConnection; /** - * Decodes a QueryConnectionClientStateResponse message from the specified reader or buffer, length delimited. + * Decodes an IdentifiedConnection message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns QueryConnectionClientStateResponse + * @returns IdentifiedConnection * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.connection.v1.QueryConnectionClientStateResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.connection.v1.IdentifiedConnection; /** - * Verifies a QueryConnectionClientStateResponse message. + * Verifies an IdentifiedConnection message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a QueryConnectionClientStateResponse message from a plain object. Also converts values to their respective internal types. + * Creates an IdentifiedConnection message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns QueryConnectionClientStateResponse + * @returns IdentifiedConnection */ - public static fromObject(object: { [k: string]: any }): ibc.core.connection.v1.QueryConnectionClientStateResponse; + public static fromObject(object: { [k: string]: any }): ibc.core.connection.v1.IdentifiedConnection; /** - * Creates a plain object from a QueryConnectionClientStateResponse message. Also converts values to other types if specified. - * @param message QueryConnectionClientStateResponse + * Creates a plain object from an IdentifiedConnection message. Also converts values to other types if specified. + * @param message IdentifiedConnection * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.core.connection.v1.QueryConnectionClientStateResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.core.connection.v1.IdentifiedConnection, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this QueryConnectionClientStateResponse to JSON. + * Converts this IdentifiedConnection to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a QueryConnectionConsensusStateRequest. */ - interface IQueryConnectionConsensusStateRequest { + /** State enum. */ + enum State { + STATE_UNINITIALIZED_UNSPECIFIED = 0, + STATE_INIT = 1, + STATE_TRYOPEN = 2, + STATE_OPEN = 3 + } - /** QueryConnectionConsensusStateRequest connection_id */ - connection_id?: (string|null); + /** Properties of a Counterparty. */ + interface ICounterparty { - /** QueryConnectionConsensusStateRequest revision_number */ - revision_number?: (Long|null); + /** Counterparty client_id */ + client_id?: (string|null); - /** QueryConnectionConsensusStateRequest revision_height */ - revision_height?: (Long|null); + /** Counterparty connection_id */ + connection_id?: (string|null); + + /** Counterparty prefix */ + prefix?: (ibc.core.commitment.v1.IMerklePrefix|null); } - /** Represents a QueryConnectionConsensusStateRequest. */ - class QueryConnectionConsensusStateRequest implements IQueryConnectionConsensusStateRequest { + /** Represents a Counterparty. */ + class Counterparty implements ICounterparty { /** - * Constructs a new QueryConnectionConsensusStateRequest. + * Constructs a new Counterparty. * @param [properties] Properties to set */ - constructor(properties?: ibc.core.connection.v1.IQueryConnectionConsensusStateRequest); + constructor(properties?: ibc.core.connection.v1.ICounterparty); - /** QueryConnectionConsensusStateRequest connection_id. */ - public connection_id: string; + /** Counterparty client_id. */ + public client_id: string; - /** QueryConnectionConsensusStateRequest revision_number. */ - public revision_number: Long; + /** Counterparty connection_id. */ + public connection_id: string; - /** QueryConnectionConsensusStateRequest revision_height. */ - public revision_height: Long; + /** Counterparty prefix. */ + public prefix?: (ibc.core.commitment.v1.IMerklePrefix|null); /** - * Encodes the specified QueryConnectionConsensusStateRequest message. Does not implicitly {@link ibc.core.connection.v1.QueryConnectionConsensusStateRequest.verify|verify} messages. - * @param message QueryConnectionConsensusStateRequest message or plain object to encode + * Encodes the specified Counterparty message. Does not implicitly {@link ibc.core.connection.v1.Counterparty.verify|verify} messages. + * @param message Counterparty message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.core.connection.v1.IQueryConnectionConsensusStateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.core.connection.v1.ICounterparty, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified QueryConnectionConsensusStateRequest message, length delimited. Does not implicitly {@link ibc.core.connection.v1.QueryConnectionConsensusStateRequest.verify|verify} messages. - * @param message QueryConnectionConsensusStateRequest message or plain object to encode + * Encodes the specified Counterparty message, length delimited. Does not implicitly {@link ibc.core.connection.v1.Counterparty.verify|verify} messages. + * @param message Counterparty message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.core.connection.v1.IQueryConnectionConsensusStateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.core.connection.v1.ICounterparty, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a QueryConnectionConsensusStateRequest message from the specified reader or buffer. + * Decodes a Counterparty message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns QueryConnectionConsensusStateRequest + * @returns Counterparty * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.connection.v1.QueryConnectionConsensusStateRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.connection.v1.Counterparty; /** - * Decodes a QueryConnectionConsensusStateRequest message from the specified reader or buffer, length delimited. + * Decodes a Counterparty message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns QueryConnectionConsensusStateRequest + * @returns Counterparty * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.connection.v1.QueryConnectionConsensusStateRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.connection.v1.Counterparty; /** - * Verifies a QueryConnectionConsensusStateRequest message. + * Verifies a Counterparty message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a QueryConnectionConsensusStateRequest message from a plain object. Also converts values to their respective internal types. + * Creates a Counterparty message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns QueryConnectionConsensusStateRequest + * @returns Counterparty */ - public static fromObject(object: { [k: string]: any }): ibc.core.connection.v1.QueryConnectionConsensusStateRequest; + public static fromObject(object: { [k: string]: any }): ibc.core.connection.v1.Counterparty; /** - * Creates a plain object from a QueryConnectionConsensusStateRequest message. Also converts values to other types if specified. - * @param message QueryConnectionConsensusStateRequest + * Creates a plain object from a Counterparty message. Also converts values to other types if specified. + * @param message Counterparty * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.core.connection.v1.QueryConnectionConsensusStateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.core.connection.v1.Counterparty, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this QueryConnectionConsensusStateRequest to JSON. + * Converts this Counterparty to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a QueryConnectionConsensusStateResponse. */ - interface IQueryConnectionConsensusStateResponse { - - /** QueryConnectionConsensusStateResponse consensus_state */ - consensus_state?: (google.protobuf.IAny|null); - - /** QueryConnectionConsensusStateResponse client_id */ - client_id?: (string|null); - - /** QueryConnectionConsensusStateResponse proof */ - proof?: (Uint8Array|null); + /** Properties of a ClientPaths. */ + interface IClientPaths { - /** QueryConnectionConsensusStateResponse proof_height */ - proof_height?: (ibc.core.client.v1.IHeight|null); + /** ClientPaths paths */ + paths?: (string[]|null); } - /** Represents a QueryConnectionConsensusStateResponse. */ - class QueryConnectionConsensusStateResponse implements IQueryConnectionConsensusStateResponse { + /** Represents a ClientPaths. */ + class ClientPaths implements IClientPaths { /** - * Constructs a new QueryConnectionConsensusStateResponse. + * Constructs a new ClientPaths. * @param [properties] Properties to set */ - constructor(properties?: ibc.core.connection.v1.IQueryConnectionConsensusStateResponse); - - /** QueryConnectionConsensusStateResponse consensus_state. */ - public consensus_state?: (google.protobuf.IAny|null); - - /** QueryConnectionConsensusStateResponse client_id. */ - public client_id: string; - - /** QueryConnectionConsensusStateResponse proof. */ - public proof: Uint8Array; + constructor(properties?: ibc.core.connection.v1.IClientPaths); - /** QueryConnectionConsensusStateResponse proof_height. */ - public proof_height?: (ibc.core.client.v1.IHeight|null); + /** ClientPaths paths. */ + public paths: string[]; /** - * Encodes the specified QueryConnectionConsensusStateResponse message. Does not implicitly {@link ibc.core.connection.v1.QueryConnectionConsensusStateResponse.verify|verify} messages. - * @param message QueryConnectionConsensusStateResponse message or plain object to encode + * Encodes the specified ClientPaths message. Does not implicitly {@link ibc.core.connection.v1.ClientPaths.verify|verify} messages. + * @param message ClientPaths message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.core.connection.v1.IQueryConnectionConsensusStateResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.core.connection.v1.IClientPaths, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified QueryConnectionConsensusStateResponse message, length delimited. Does not implicitly {@link ibc.core.connection.v1.QueryConnectionConsensusStateResponse.verify|verify} messages. - * @param message QueryConnectionConsensusStateResponse message or plain object to encode + * Encodes the specified ClientPaths message, length delimited. Does not implicitly {@link ibc.core.connection.v1.ClientPaths.verify|verify} messages. + * @param message ClientPaths message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.core.connection.v1.IQueryConnectionConsensusStateResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.core.connection.v1.IClientPaths, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a QueryConnectionConsensusStateResponse message from the specified reader or buffer. + * Decodes a ClientPaths message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns QueryConnectionConsensusStateResponse + * @returns ClientPaths * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.connection.v1.QueryConnectionConsensusStateResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.connection.v1.ClientPaths; /** - * Decodes a QueryConnectionConsensusStateResponse message from the specified reader or buffer, length delimited. + * Decodes a ClientPaths message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns QueryConnectionConsensusStateResponse + * @returns ClientPaths * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.connection.v1.QueryConnectionConsensusStateResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.connection.v1.ClientPaths; /** - * Verifies a QueryConnectionConsensusStateResponse message. + * Verifies a ClientPaths message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a QueryConnectionConsensusStateResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ClientPaths message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns QueryConnectionConsensusStateResponse + * @returns ClientPaths */ - public static fromObject(object: { [k: string]: any }): ibc.core.connection.v1.QueryConnectionConsensusStateResponse; + public static fromObject(object: { [k: string]: any }): ibc.core.connection.v1.ClientPaths; /** - * Creates a plain object from a QueryConnectionConsensusStateResponse message. Also converts values to other types if specified. - * @param message QueryConnectionConsensusStateResponse + * Creates a plain object from a ClientPaths message. Also converts values to other types if specified. + * @param message ClientPaths * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.core.connection.v1.QueryConnectionConsensusStateResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.core.connection.v1.ClientPaths, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this QueryConnectionConsensusStateResponse to JSON. + * Converts this ClientPaths to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GenesisState. */ - interface IGenesisState { - - /** GenesisState connections */ - connections?: (ibc.core.connection.v1.IIdentifiedConnection[]|null); - - /** GenesisState client_connection_paths */ - client_connection_paths?: (ibc.core.connection.v1.IConnectionPaths[]|null); + /** Properties of a ConnectionPaths. */ + interface IConnectionPaths { - /** GenesisState next_connection_sequence */ - next_connection_sequence?: (Long|null); + /** ConnectionPaths client_id */ + client_id?: (string|null); - /** GenesisState params */ - params?: (ibc.core.connection.v1.IParams|null); + /** ConnectionPaths paths */ + paths?: (string[]|null); } - /** Represents a GenesisState. */ - class GenesisState implements IGenesisState { + /** Represents a ConnectionPaths. */ + class ConnectionPaths implements IConnectionPaths { /** - * Constructs a new GenesisState. + * Constructs a new ConnectionPaths. * @param [properties] Properties to set */ - constructor(properties?: ibc.core.connection.v1.IGenesisState); - - /** GenesisState connections. */ - public connections: ibc.core.connection.v1.IIdentifiedConnection[]; - - /** GenesisState client_connection_paths. */ - public client_connection_paths: ibc.core.connection.v1.IConnectionPaths[]; + constructor(properties?: ibc.core.connection.v1.IConnectionPaths); - /** GenesisState next_connection_sequence. */ - public next_connection_sequence: Long; + /** ConnectionPaths client_id. */ + public client_id: string; - /** GenesisState params. */ - public params?: (ibc.core.connection.v1.IParams|null); + /** ConnectionPaths paths. */ + public paths: string[]; /** - * Encodes the specified GenesisState message. Does not implicitly {@link ibc.core.connection.v1.GenesisState.verify|verify} messages. - * @param message GenesisState message or plain object to encode + * Encodes the specified ConnectionPaths message. Does not implicitly {@link ibc.core.connection.v1.ConnectionPaths.verify|verify} messages. + * @param message ConnectionPaths message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.core.connection.v1.IGenesisState, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.core.connection.v1.IConnectionPaths, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GenesisState message, length delimited. Does not implicitly {@link ibc.core.connection.v1.GenesisState.verify|verify} messages. - * @param message GenesisState message or plain object to encode + * Encodes the specified ConnectionPaths message, length delimited. Does not implicitly {@link ibc.core.connection.v1.ConnectionPaths.verify|verify} messages. + * @param message ConnectionPaths message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.core.connection.v1.IGenesisState, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.core.connection.v1.IConnectionPaths, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GenesisState message from the specified reader or buffer. + * Decodes a ConnectionPaths message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GenesisState + * @returns ConnectionPaths * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.connection.v1.GenesisState; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.connection.v1.ConnectionPaths; /** - * Decodes a GenesisState message from the specified reader or buffer, length delimited. + * Decodes a ConnectionPaths message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GenesisState + * @returns ConnectionPaths * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.connection.v1.GenesisState; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.connection.v1.ConnectionPaths; /** - * Verifies a GenesisState message. + * Verifies a ConnectionPaths message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GenesisState message from a plain object. Also converts values to their respective internal types. + * Creates a ConnectionPaths message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GenesisState + * @returns ConnectionPaths */ - public static fromObject(object: { [k: string]: any }): ibc.core.connection.v1.GenesisState; + public static fromObject(object: { [k: string]: any }): ibc.core.connection.v1.ConnectionPaths; /** - * Creates a plain object from a GenesisState message. Also converts values to other types if specified. - * @param message GenesisState + * Creates a plain object from a ConnectionPaths message. Also converts values to other types if specified. + * @param message ConnectionPaths * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.core.connection.v1.GenesisState, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.core.connection.v1.ConnectionPaths, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GenesisState to JSON. + * Converts this ConnectionPaths to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - } - } - - /** Namespace types. */ - namespace types { - - /** Namespace v1. */ - namespace v1 { - /** Properties of a GenesisState. */ - interface IGenesisState { - - /** GenesisState client_genesis */ - client_genesis?: (ibc.core.client.v1.IGenesisState|null); + /** Properties of a Version. */ + interface IVersion { - /** GenesisState connection_genesis */ - connection_genesis?: (ibc.core.connection.v1.IGenesisState|null); + /** Version identifier */ + identifier?: (string|null); - /** GenesisState channel_genesis */ - channel_genesis?: (ibc.core.channel.v1.IGenesisState|null); + /** Version features */ + features?: (string[]|null); } - /** Represents a GenesisState. */ - class GenesisState implements IGenesisState { + /** Represents a Version. */ + class Version implements IVersion { /** - * Constructs a new GenesisState. + * Constructs a new Version. * @param [properties] Properties to set */ - constructor(properties?: ibc.core.types.v1.IGenesisState); - - /** GenesisState client_genesis. */ - public client_genesis?: (ibc.core.client.v1.IGenesisState|null); + constructor(properties?: ibc.core.connection.v1.IVersion); - /** GenesisState connection_genesis. */ - public connection_genesis?: (ibc.core.connection.v1.IGenesisState|null); + /** Version identifier. */ + public identifier: string; - /** GenesisState channel_genesis. */ - public channel_genesis?: (ibc.core.channel.v1.IGenesisState|null); + /** Version features. */ + public features: string[]; /** - * Encodes the specified GenesisState message. Does not implicitly {@link ibc.core.types.v1.GenesisState.verify|verify} messages. - * @param message GenesisState message or plain object to encode + * Encodes the specified Version message. Does not implicitly {@link ibc.core.connection.v1.Version.verify|verify} messages. + * @param message Version message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.core.types.v1.IGenesisState, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.core.connection.v1.IVersion, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GenesisState message, length delimited. Does not implicitly {@link ibc.core.types.v1.GenesisState.verify|verify} messages. - * @param message GenesisState message or plain object to encode + * Encodes the specified Version message, length delimited. Does not implicitly {@link ibc.core.connection.v1.Version.verify|verify} messages. + * @param message Version message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.core.types.v1.IGenesisState, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.core.connection.v1.IVersion, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GenesisState message from the specified reader or buffer. + * Decodes a Version message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GenesisState + * @returns Version * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.types.v1.GenesisState; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.connection.v1.Version; /** - * Decodes a GenesisState message from the specified reader or buffer, length delimited. + * Decodes a Version message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GenesisState + * @returns Version * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.types.v1.GenesisState; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.connection.v1.Version; /** - * Verifies a GenesisState message. + * Verifies a Version message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GenesisState message from a plain object. Also converts values to their respective internal types. + * Creates a Version message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GenesisState + * @returns Version */ - public static fromObject(object: { [k: string]: any }): ibc.core.types.v1.GenesisState; + public static fromObject(object: { [k: string]: any }): ibc.core.connection.v1.Version; /** - * Creates a plain object from a GenesisState message. Also converts values to other types if specified. - * @param message GenesisState + * Creates a plain object from a Version message. Also converts values to other types if specified. + * @param message Version * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.core.types.v1.GenesisState, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.core.connection.v1.Version, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GenesisState to JSON. + * Converts this Version to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - } - } - } - - /** Namespace lightclients. */ - namespace lightclients { - - /** Namespace localhost. */ - namespace localhost { - - /** Namespace v1. */ - namespace v1 { - - /** Properties of a ClientState. */ - interface IClientState { - /** ClientState chain_id */ - chain_id?: (string|null); + /** Properties of a Params. */ + interface IParams { - /** ClientState height */ - height?: (ibc.core.client.v1.IHeight|null); + /** Params max_expected_time_per_block */ + max_expected_time_per_block?: (Long|null); } - /** Represents a ClientState. */ - class ClientState implements IClientState { + /** Represents a Params. */ + class Params implements IParams { /** - * Constructs a new ClientState. + * Constructs a new Params. * @param [properties] Properties to set */ - constructor(properties?: ibc.lightclients.localhost.v1.IClientState); - - /** ClientState chain_id. */ - public chain_id: string; + constructor(properties?: ibc.core.connection.v1.IParams); - /** ClientState height. */ - public height?: (ibc.core.client.v1.IHeight|null); + /** Params max_expected_time_per_block. */ + public max_expected_time_per_block: Long; /** - * Encodes the specified ClientState message. Does not implicitly {@link ibc.lightclients.localhost.v1.ClientState.verify|verify} messages. - * @param message ClientState message or plain object to encode + * Encodes the specified Params message. Does not implicitly {@link ibc.core.connection.v1.Params.verify|verify} messages. + * @param message Params message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.lightclients.localhost.v1.IClientState, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.core.connection.v1.IParams, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ClientState message, length delimited. Does not implicitly {@link ibc.lightclients.localhost.v1.ClientState.verify|verify} messages. - * @param message ClientState message or plain object to encode + * Encodes the specified Params message, length delimited. Does not implicitly {@link ibc.core.connection.v1.Params.verify|verify} messages. + * @param message Params message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.lightclients.localhost.v1.IClientState, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.core.connection.v1.IParams, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ClientState message from the specified reader or buffer. + * Decodes a Params message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ClientState + * @returns Params * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.lightclients.localhost.v1.ClientState; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.connection.v1.Params; /** - * Decodes a ClientState message from the specified reader or buffer, length delimited. + * Decodes a Params message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ClientState + * @returns Params * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.lightclients.localhost.v1.ClientState; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.connection.v1.Params; /** - * Verifies a ClientState message. + * Verifies a Params message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ClientState message from a plain object. Also converts values to their respective internal types. + * Creates a Params message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ClientState + * @returns Params */ - public static fromObject(object: { [k: string]: any }): ibc.lightclients.localhost.v1.ClientState; + public static fromObject(object: { [k: string]: any }): ibc.core.connection.v1.Params; /** - * Creates a plain object from a ClientState message. Also converts values to other types if specified. - * @param message ClientState + * Creates a plain object from a Params message. Also converts values to other types if specified. + * @param message Params * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.lightclients.localhost.v1.ClientState, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.core.connection.v1.Params, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ClientState to JSON. + * Converts this Params to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - } - } - - /** Namespace solomachine. */ - namespace solomachine { - /** Namespace v1. */ - namespace v1 { + /** Represents a Query */ + class Query extends $protobuf.rpc.Service { - /** Properties of a ClientState. */ - interface IClientState { + /** + * Constructs a new Query service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); - /** ClientState sequence */ - sequence?: (Long|null); + /** + * Calls Connection. + * @param request QueryConnectionRequest message or plain object + * @param callback Node-style callback called with the error, if any, and QueryConnectionResponse + */ + public connection(request: ibc.core.connection.v1.IQueryConnectionRequest, callback: ibc.core.connection.v1.Query.ConnectionCallback): void; - /** ClientState frozen_sequence */ - frozen_sequence?: (Long|null); + /** + * Calls Connection. + * @param request QueryConnectionRequest message or plain object + * @returns Promise + */ + public connection(request: ibc.core.connection.v1.IQueryConnectionRequest): Promise; - /** ClientState consensus_state */ - consensus_state?: (ibc.lightclients.solomachine.v1.IConsensusState|null); + /** + * Calls Connections. + * @param request QueryConnectionsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and QueryConnectionsResponse + */ + public connections(request: ibc.core.connection.v1.IQueryConnectionsRequest, callback: ibc.core.connection.v1.Query.ConnectionsCallback): void; - /** ClientState allow_update_after_proposal */ - allow_update_after_proposal?: (boolean|null); - } + /** + * Calls Connections. + * @param request QueryConnectionsRequest message or plain object + * @returns Promise + */ + public connections(request: ibc.core.connection.v1.IQueryConnectionsRequest): Promise; - /** Represents a ClientState. */ - class ClientState implements IClientState { + /** + * Calls ClientConnections. + * @param request QueryClientConnectionsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and QueryClientConnectionsResponse + */ + public clientConnections(request: ibc.core.connection.v1.IQueryClientConnectionsRequest, callback: ibc.core.connection.v1.Query.ClientConnectionsCallback): void; /** - * Constructs a new ClientState. - * @param [properties] Properties to set + * Calls ClientConnections. + * @param request QueryClientConnectionsRequest message or plain object + * @returns Promise */ - constructor(properties?: ibc.lightclients.solomachine.v1.IClientState); + public clientConnections(request: ibc.core.connection.v1.IQueryClientConnectionsRequest): Promise; - /** ClientState sequence. */ - public sequence: Long; + /** + * Calls ConnectionClientState. + * @param request QueryConnectionClientStateRequest message or plain object + * @param callback Node-style callback called with the error, if any, and QueryConnectionClientStateResponse + */ + public connectionClientState(request: ibc.core.connection.v1.IQueryConnectionClientStateRequest, callback: ibc.core.connection.v1.Query.ConnectionClientStateCallback): void; - /** ClientState frozen_sequence. */ - public frozen_sequence: Long; + /** + * Calls ConnectionClientState. + * @param request QueryConnectionClientStateRequest message or plain object + * @returns Promise + */ + public connectionClientState(request: ibc.core.connection.v1.IQueryConnectionClientStateRequest): Promise; - /** ClientState consensus_state. */ - public consensus_state?: (ibc.lightclients.solomachine.v1.IConsensusState|null); + /** + * Calls ConnectionConsensusState. + * @param request QueryConnectionConsensusStateRequest message or plain object + * @param callback Node-style callback called with the error, if any, and QueryConnectionConsensusStateResponse + */ + public connectionConsensusState(request: ibc.core.connection.v1.IQueryConnectionConsensusStateRequest, callback: ibc.core.connection.v1.Query.ConnectionConsensusStateCallback): void; - /** ClientState allow_update_after_proposal. */ - public allow_update_after_proposal: boolean; + /** + * Calls ConnectionConsensusState. + * @param request QueryConnectionConsensusStateRequest message or plain object + * @returns Promise + */ + public connectionConsensusState(request: ibc.core.connection.v1.IQueryConnectionConsensusStateRequest): Promise; /** - * Encodes the specified ClientState message. Does not implicitly {@link ibc.lightclients.solomachine.v1.ClientState.verify|verify} messages. - * @param message ClientState message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls ConnectionParams. + * @param request QueryConnectionParamsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and QueryConnectionParamsResponse */ - public static encode(message: ibc.lightclients.solomachine.v1.IClientState, writer?: $protobuf.Writer): $protobuf.Writer; + public connectionParams(request: ibc.core.connection.v1.IQueryConnectionParamsRequest, callback: ibc.core.connection.v1.Query.ConnectionParamsCallback): void; /** - * Encodes the specified ClientState message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v1.ClientState.verify|verify} messages. - * @param message ClientState message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls ConnectionParams. + * @param request QueryConnectionParamsRequest message or plain object + * @returns Promise */ - public static encodeDelimited(message: ibc.lightclients.solomachine.v1.IClientState, writer?: $protobuf.Writer): $protobuf.Writer; + public connectionParams(request: ibc.core.connection.v1.IQueryConnectionParamsRequest): Promise; + } + + namespace Query { /** - * Decodes a ClientState message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ClientState - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link ibc.core.connection.v1.Query#connection}. + * @param error Error, if any + * @param [response] QueryConnectionResponse */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.lightclients.solomachine.v1.ClientState; + type ConnectionCallback = (error: (Error|null), response?: ibc.core.connection.v1.QueryConnectionResponse) => void; /** - * Decodes a ClientState message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ClientState - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link ibc.core.connection.v1.Query#connections}. + * @param error Error, if any + * @param [response] QueryConnectionsResponse */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.lightclients.solomachine.v1.ClientState; + type ConnectionsCallback = (error: (Error|null), response?: ibc.core.connection.v1.QueryConnectionsResponse) => void; /** - * Verifies a ClientState message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Callback as used by {@link ibc.core.connection.v1.Query#clientConnections}. + * @param error Error, if any + * @param [response] QueryClientConnectionsResponse */ - public static verify(message: { [k: string]: any }): (string|null); + type ClientConnectionsCallback = (error: (Error|null), response?: ibc.core.connection.v1.QueryClientConnectionsResponse) => void; /** - * Creates a ClientState message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ClientState + * Callback as used by {@link ibc.core.connection.v1.Query#connectionClientState}. + * @param error Error, if any + * @param [response] QueryConnectionClientStateResponse */ - public static fromObject(object: { [k: string]: any }): ibc.lightclients.solomachine.v1.ClientState; + type ConnectionClientStateCallback = (error: (Error|null), response?: ibc.core.connection.v1.QueryConnectionClientStateResponse) => void; /** - * Creates a plain object from a ClientState message. Also converts values to other types if specified. - * @param message ClientState - * @param [options] Conversion options - * @returns Plain object + * Callback as used by {@link ibc.core.connection.v1.Query#connectionConsensusState}. + * @param error Error, if any + * @param [response] QueryConnectionConsensusStateResponse */ - public static toObject(message: ibc.lightclients.solomachine.v1.ClientState, options?: $protobuf.IConversionOptions): { [k: string]: any }; + type ConnectionConsensusStateCallback = (error: (Error|null), response?: ibc.core.connection.v1.QueryConnectionConsensusStateResponse) => void; /** - * Converts this ClientState to JSON. - * @returns JSON object + * Callback as used by {@link ibc.core.connection.v1.Query#connectionParams}. + * @param error Error, if any + * @param [response] QueryConnectionParamsResponse */ - public toJSON(): { [k: string]: any }; + type ConnectionParamsCallback = (error: (Error|null), response?: ibc.core.connection.v1.QueryConnectionParamsResponse) => void; } - /** Properties of a ConsensusState. */ - interface IConsensusState { - - /** ConsensusState public_key */ - public_key?: (google.protobuf.IAny|null); - - /** ConsensusState diversifier */ - diversifier?: (string|null); + /** Properties of a QueryConnectionRequest. */ + interface IQueryConnectionRequest { - /** ConsensusState timestamp */ - timestamp?: (Long|null); + /** QueryConnectionRequest connection_id */ + connection_id?: (string|null); } - /** Represents a ConsensusState. */ - class ConsensusState implements IConsensusState { + /** Represents a QueryConnectionRequest. */ + class QueryConnectionRequest implements IQueryConnectionRequest { /** - * Constructs a new ConsensusState. + * Constructs a new QueryConnectionRequest. * @param [properties] Properties to set */ - constructor(properties?: ibc.lightclients.solomachine.v1.IConsensusState); - - /** ConsensusState public_key. */ - public public_key?: (google.protobuf.IAny|null); - - /** ConsensusState diversifier. */ - public diversifier: string; + constructor(properties?: ibc.core.connection.v1.IQueryConnectionRequest); - /** ConsensusState timestamp. */ - public timestamp: Long; + /** QueryConnectionRequest connection_id. */ + public connection_id: string; /** - * Encodes the specified ConsensusState message. Does not implicitly {@link ibc.lightclients.solomachine.v1.ConsensusState.verify|verify} messages. - * @param message ConsensusState message or plain object to encode + * Encodes the specified QueryConnectionRequest message. Does not implicitly {@link ibc.core.connection.v1.QueryConnectionRequest.verify|verify} messages. + * @param message QueryConnectionRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.lightclients.solomachine.v1.IConsensusState, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.core.connection.v1.IQueryConnectionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ConsensusState message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v1.ConsensusState.verify|verify} messages. - * @param message ConsensusState message or plain object to encode + * Encodes the specified QueryConnectionRequest message, length delimited. Does not implicitly {@link ibc.core.connection.v1.QueryConnectionRequest.verify|verify} messages. + * @param message QueryConnectionRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.lightclients.solomachine.v1.IConsensusState, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.core.connection.v1.IQueryConnectionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ConsensusState message from the specified reader or buffer. + * Decodes a QueryConnectionRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ConsensusState + * @returns QueryConnectionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.lightclients.solomachine.v1.ConsensusState; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.connection.v1.QueryConnectionRequest; /** - * Decodes a ConsensusState message from the specified reader or buffer, length delimited. + * Decodes a QueryConnectionRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ConsensusState + * @returns QueryConnectionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.lightclients.solomachine.v1.ConsensusState; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.connection.v1.QueryConnectionRequest; /** - * Verifies a ConsensusState message. + * Verifies a QueryConnectionRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ConsensusState message from a plain object. Also converts values to their respective internal types. + * Creates a QueryConnectionRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ConsensusState + * @returns QueryConnectionRequest */ - public static fromObject(object: { [k: string]: any }): ibc.lightclients.solomachine.v1.ConsensusState; + public static fromObject(object: { [k: string]: any }): ibc.core.connection.v1.QueryConnectionRequest; /** - * Creates a plain object from a ConsensusState message. Also converts values to other types if specified. - * @param message ConsensusState + * Creates a plain object from a QueryConnectionRequest message. Also converts values to other types if specified. + * @param message QueryConnectionRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.lightclients.solomachine.v1.ConsensusState, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.core.connection.v1.QueryConnectionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ConsensusState to JSON. + * Converts this QueryConnectionRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a Header. */ - interface IHeader { - - /** Header sequence */ - sequence?: (Long|null); - - /** Header timestamp */ - timestamp?: (Long|null); + /** Properties of a QueryConnectionResponse. */ + interface IQueryConnectionResponse { - /** Header signature */ - signature?: (Uint8Array|null); + /** QueryConnectionResponse connection */ + connection?: (ibc.core.connection.v1.IConnectionEnd|null); - /** Header new_public_key */ - new_public_key?: (google.protobuf.IAny|null); + /** QueryConnectionResponse proof */ + proof?: (Uint8Array|null); - /** Header new_diversifier */ - new_diversifier?: (string|null); + /** QueryConnectionResponse proof_height */ + proof_height?: (ibc.core.client.v1.IHeight|null); } - /** Represents a Header. */ - class Header implements IHeader { + /** Represents a QueryConnectionResponse. */ + class QueryConnectionResponse implements IQueryConnectionResponse { /** - * Constructs a new Header. + * Constructs a new QueryConnectionResponse. * @param [properties] Properties to set */ - constructor(properties?: ibc.lightclients.solomachine.v1.IHeader); - - /** Header sequence. */ - public sequence: Long; - - /** Header timestamp. */ - public timestamp: Long; + constructor(properties?: ibc.core.connection.v1.IQueryConnectionResponse); - /** Header signature. */ - public signature: Uint8Array; + /** QueryConnectionResponse connection. */ + public connection?: (ibc.core.connection.v1.IConnectionEnd|null); - /** Header new_public_key. */ - public new_public_key?: (google.protobuf.IAny|null); + /** QueryConnectionResponse proof. */ + public proof: Uint8Array; - /** Header new_diversifier. */ - public new_diversifier: string; + /** QueryConnectionResponse proof_height. */ + public proof_height?: (ibc.core.client.v1.IHeight|null); /** - * Encodes the specified Header message. Does not implicitly {@link ibc.lightclients.solomachine.v1.Header.verify|verify} messages. - * @param message Header message or plain object to encode + * Encodes the specified QueryConnectionResponse message. Does not implicitly {@link ibc.core.connection.v1.QueryConnectionResponse.verify|verify} messages. + * @param message QueryConnectionResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.lightclients.solomachine.v1.IHeader, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.core.connection.v1.IQueryConnectionResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Header message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v1.Header.verify|verify} messages. - * @param message Header message or plain object to encode + * Encodes the specified QueryConnectionResponse message, length delimited. Does not implicitly {@link ibc.core.connection.v1.QueryConnectionResponse.verify|verify} messages. + * @param message QueryConnectionResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.lightclients.solomachine.v1.IHeader, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.core.connection.v1.IQueryConnectionResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Header message from the specified reader or buffer. + * Decodes a QueryConnectionResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Header + * @returns QueryConnectionResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.lightclients.solomachine.v1.Header; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.connection.v1.QueryConnectionResponse; /** - * Decodes a Header message from the specified reader or buffer, length delimited. + * Decodes a QueryConnectionResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Header + * @returns QueryConnectionResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.lightclients.solomachine.v1.Header; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.connection.v1.QueryConnectionResponse; /** - * Verifies a Header message. + * Verifies a QueryConnectionResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a Header message from a plain object. Also converts values to their respective internal types. + * Creates a QueryConnectionResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Header + * @returns QueryConnectionResponse */ - public static fromObject(object: { [k: string]: any }): ibc.lightclients.solomachine.v1.Header; + public static fromObject(object: { [k: string]: any }): ibc.core.connection.v1.QueryConnectionResponse; /** - * Creates a plain object from a Header message. Also converts values to other types if specified. - * @param message Header + * Creates a plain object from a QueryConnectionResponse message. Also converts values to other types if specified. + * @param message QueryConnectionResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.lightclients.solomachine.v1.Header, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.core.connection.v1.QueryConnectionResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Header to JSON. + * Converts this QueryConnectionResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a Misbehaviour. */ - interface IMisbehaviour { - - /** Misbehaviour client_id */ - client_id?: (string|null); - - /** Misbehaviour sequence */ - sequence?: (Long|null); - - /** Misbehaviour signature_one */ - signature_one?: (ibc.lightclients.solomachine.v1.ISignatureAndData|null); + /** Properties of a QueryConnectionsRequest. */ + interface IQueryConnectionsRequest { - /** Misbehaviour signature_two */ - signature_two?: (ibc.lightclients.solomachine.v1.ISignatureAndData|null); + /** QueryConnectionsRequest pagination */ + pagination?: (cosmos.base.query.v1beta1.IPageRequest|null); } - /** Represents a Misbehaviour. */ - class Misbehaviour implements IMisbehaviour { + /** Represents a QueryConnectionsRequest. */ + class QueryConnectionsRequest implements IQueryConnectionsRequest { /** - * Constructs a new Misbehaviour. + * Constructs a new QueryConnectionsRequest. * @param [properties] Properties to set */ - constructor(properties?: ibc.lightclients.solomachine.v1.IMisbehaviour); - - /** Misbehaviour client_id. */ - public client_id: string; - - /** Misbehaviour sequence. */ - public sequence: Long; - - /** Misbehaviour signature_one. */ - public signature_one?: (ibc.lightclients.solomachine.v1.ISignatureAndData|null); + constructor(properties?: ibc.core.connection.v1.IQueryConnectionsRequest); - /** Misbehaviour signature_two. */ - public signature_two?: (ibc.lightclients.solomachine.v1.ISignatureAndData|null); + /** QueryConnectionsRequest pagination. */ + public pagination?: (cosmos.base.query.v1beta1.IPageRequest|null); /** - * Encodes the specified Misbehaviour message. Does not implicitly {@link ibc.lightclients.solomachine.v1.Misbehaviour.verify|verify} messages. - * @param message Misbehaviour message or plain object to encode + * Encodes the specified QueryConnectionsRequest message. Does not implicitly {@link ibc.core.connection.v1.QueryConnectionsRequest.verify|verify} messages. + * @param message QueryConnectionsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.lightclients.solomachine.v1.IMisbehaviour, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.core.connection.v1.IQueryConnectionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Misbehaviour message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v1.Misbehaviour.verify|verify} messages. - * @param message Misbehaviour message or plain object to encode + * Encodes the specified QueryConnectionsRequest message, length delimited. Does not implicitly {@link ibc.core.connection.v1.QueryConnectionsRequest.verify|verify} messages. + * @param message QueryConnectionsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.lightclients.solomachine.v1.IMisbehaviour, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.core.connection.v1.IQueryConnectionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Misbehaviour message from the specified reader or buffer. + * Decodes a QueryConnectionsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Misbehaviour + * @returns QueryConnectionsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.lightclients.solomachine.v1.Misbehaviour; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.connection.v1.QueryConnectionsRequest; /** - * Decodes a Misbehaviour message from the specified reader or buffer, length delimited. + * Decodes a QueryConnectionsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Misbehaviour + * @returns QueryConnectionsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.lightclients.solomachine.v1.Misbehaviour; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.connection.v1.QueryConnectionsRequest; /** - * Verifies a Misbehaviour message. + * Verifies a QueryConnectionsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a Misbehaviour message from a plain object. Also converts values to their respective internal types. + * Creates a QueryConnectionsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Misbehaviour + * @returns QueryConnectionsRequest */ - public static fromObject(object: { [k: string]: any }): ibc.lightclients.solomachine.v1.Misbehaviour; + public static fromObject(object: { [k: string]: any }): ibc.core.connection.v1.QueryConnectionsRequest; /** - * Creates a plain object from a Misbehaviour message. Also converts values to other types if specified. - * @param message Misbehaviour + * Creates a plain object from a QueryConnectionsRequest message. Also converts values to other types if specified. + * @param message QueryConnectionsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.lightclients.solomachine.v1.Misbehaviour, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.core.connection.v1.QueryConnectionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Misbehaviour to JSON. + * Converts this QueryConnectionsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a SignatureAndData. */ - interface ISignatureAndData { - - /** SignatureAndData signature */ - signature?: (Uint8Array|null); + /** Properties of a QueryConnectionsResponse. */ + interface IQueryConnectionsResponse { - /** SignatureAndData data_type */ - data_type?: (ibc.lightclients.solomachine.v1.DataType|null); + /** QueryConnectionsResponse connections */ + connections?: (ibc.core.connection.v1.IIdentifiedConnection[]|null); - /** SignatureAndData data */ - data?: (Uint8Array|null); + /** QueryConnectionsResponse pagination */ + pagination?: (cosmos.base.query.v1beta1.IPageResponse|null); - /** SignatureAndData timestamp */ - timestamp?: (Long|null); + /** QueryConnectionsResponse height */ + height?: (ibc.core.client.v1.IHeight|null); } - /** Represents a SignatureAndData. */ - class SignatureAndData implements ISignatureAndData { + /** Represents a QueryConnectionsResponse. */ + class QueryConnectionsResponse implements IQueryConnectionsResponse { /** - * Constructs a new SignatureAndData. + * Constructs a new QueryConnectionsResponse. * @param [properties] Properties to set */ - constructor(properties?: ibc.lightclients.solomachine.v1.ISignatureAndData); - - /** SignatureAndData signature. */ - public signature: Uint8Array; + constructor(properties?: ibc.core.connection.v1.IQueryConnectionsResponse); - /** SignatureAndData data_type. */ - public data_type: ibc.lightclients.solomachine.v1.DataType; + /** QueryConnectionsResponse connections. */ + public connections: ibc.core.connection.v1.IIdentifiedConnection[]; - /** SignatureAndData data. */ - public data: Uint8Array; + /** QueryConnectionsResponse pagination. */ + public pagination?: (cosmos.base.query.v1beta1.IPageResponse|null); - /** SignatureAndData timestamp. */ - public timestamp: Long; + /** QueryConnectionsResponse height. */ + public height?: (ibc.core.client.v1.IHeight|null); /** - * Encodes the specified SignatureAndData message. Does not implicitly {@link ibc.lightclients.solomachine.v1.SignatureAndData.verify|verify} messages. - * @param message SignatureAndData message or plain object to encode + * Encodes the specified QueryConnectionsResponse message. Does not implicitly {@link ibc.core.connection.v1.QueryConnectionsResponse.verify|verify} messages. + * @param message QueryConnectionsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.lightclients.solomachine.v1.ISignatureAndData, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.core.connection.v1.IQueryConnectionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified SignatureAndData message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v1.SignatureAndData.verify|verify} messages. - * @param message SignatureAndData message or plain object to encode + * Encodes the specified QueryConnectionsResponse message, length delimited. Does not implicitly {@link ibc.core.connection.v1.QueryConnectionsResponse.verify|verify} messages. + * @param message QueryConnectionsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.lightclients.solomachine.v1.ISignatureAndData, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.core.connection.v1.IQueryConnectionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SignatureAndData message from the specified reader or buffer. + * Decodes a QueryConnectionsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SignatureAndData + * @returns QueryConnectionsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.lightclients.solomachine.v1.SignatureAndData; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.connection.v1.QueryConnectionsResponse; /** - * Decodes a SignatureAndData message from the specified reader or buffer, length delimited. + * Decodes a QueryConnectionsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SignatureAndData + * @returns QueryConnectionsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.lightclients.solomachine.v1.SignatureAndData; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.connection.v1.QueryConnectionsResponse; /** - * Verifies a SignatureAndData message. + * Verifies a QueryConnectionsResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a SignatureAndData message from a plain object. Also converts values to their respective internal types. + * Creates a QueryConnectionsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SignatureAndData + * @returns QueryConnectionsResponse */ - public static fromObject(object: { [k: string]: any }): ibc.lightclients.solomachine.v1.SignatureAndData; + public static fromObject(object: { [k: string]: any }): ibc.core.connection.v1.QueryConnectionsResponse; /** - * Creates a plain object from a SignatureAndData message. Also converts values to other types if specified. - * @param message SignatureAndData + * Creates a plain object from a QueryConnectionsResponse message. Also converts values to other types if specified. + * @param message QueryConnectionsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.lightclients.solomachine.v1.SignatureAndData, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.core.connection.v1.QueryConnectionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SignatureAndData to JSON. + * Converts this QueryConnectionsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a TimestampedSignatureData. */ - interface ITimestampedSignatureData { - - /** TimestampedSignatureData signature_data */ - signature_data?: (Uint8Array|null); + /** Properties of a QueryClientConnectionsRequest. */ + interface IQueryClientConnectionsRequest { - /** TimestampedSignatureData timestamp */ - timestamp?: (Long|null); + /** QueryClientConnectionsRequest client_id */ + client_id?: (string|null); } - /** Represents a TimestampedSignatureData. */ - class TimestampedSignatureData implements ITimestampedSignatureData { + /** Represents a QueryClientConnectionsRequest. */ + class QueryClientConnectionsRequest implements IQueryClientConnectionsRequest { /** - * Constructs a new TimestampedSignatureData. + * Constructs a new QueryClientConnectionsRequest. * @param [properties] Properties to set */ - constructor(properties?: ibc.lightclients.solomachine.v1.ITimestampedSignatureData); - - /** TimestampedSignatureData signature_data. */ - public signature_data: Uint8Array; + constructor(properties?: ibc.core.connection.v1.IQueryClientConnectionsRequest); - /** TimestampedSignatureData timestamp. */ - public timestamp: Long; + /** QueryClientConnectionsRequest client_id. */ + public client_id: string; /** - * Encodes the specified TimestampedSignatureData message. Does not implicitly {@link ibc.lightclients.solomachine.v1.TimestampedSignatureData.verify|verify} messages. - * @param message TimestampedSignatureData message or plain object to encode + * Encodes the specified QueryClientConnectionsRequest message. Does not implicitly {@link ibc.core.connection.v1.QueryClientConnectionsRequest.verify|verify} messages. + * @param message QueryClientConnectionsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.lightclients.solomachine.v1.ITimestampedSignatureData, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.core.connection.v1.IQueryClientConnectionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified TimestampedSignatureData message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v1.TimestampedSignatureData.verify|verify} messages. - * @param message TimestampedSignatureData message or plain object to encode + * Encodes the specified QueryClientConnectionsRequest message, length delimited. Does not implicitly {@link ibc.core.connection.v1.QueryClientConnectionsRequest.verify|verify} messages. + * @param message QueryClientConnectionsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.lightclients.solomachine.v1.ITimestampedSignatureData, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.core.connection.v1.IQueryClientConnectionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TimestampedSignatureData message from the specified reader or buffer. + * Decodes a QueryClientConnectionsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns TimestampedSignatureData + * @returns QueryClientConnectionsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.lightclients.solomachine.v1.TimestampedSignatureData; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.connection.v1.QueryClientConnectionsRequest; /** - * Decodes a TimestampedSignatureData message from the specified reader or buffer, length delimited. + * Decodes a QueryClientConnectionsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns TimestampedSignatureData + * @returns QueryClientConnectionsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.lightclients.solomachine.v1.TimestampedSignatureData; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.connection.v1.QueryClientConnectionsRequest; /** - * Verifies a TimestampedSignatureData message. + * Verifies a QueryClientConnectionsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a TimestampedSignatureData message from a plain object. Also converts values to their respective internal types. + * Creates a QueryClientConnectionsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns TimestampedSignatureData + * @returns QueryClientConnectionsRequest */ - public static fromObject(object: { [k: string]: any }): ibc.lightclients.solomachine.v1.TimestampedSignatureData; + public static fromObject(object: { [k: string]: any }): ibc.core.connection.v1.QueryClientConnectionsRequest; /** - * Creates a plain object from a TimestampedSignatureData message. Also converts values to other types if specified. - * @param message TimestampedSignatureData + * Creates a plain object from a QueryClientConnectionsRequest message. Also converts values to other types if specified. + * @param message QueryClientConnectionsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.lightclients.solomachine.v1.TimestampedSignatureData, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.core.connection.v1.QueryClientConnectionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TimestampedSignatureData to JSON. + * Converts this QueryClientConnectionsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a SignBytes. */ - interface ISignBytes { - - /** SignBytes sequence */ - sequence?: (Long|null); - - /** SignBytes timestamp */ - timestamp?: (Long|null); + /** Properties of a QueryClientConnectionsResponse. */ + interface IQueryClientConnectionsResponse { - /** SignBytes diversifier */ - diversifier?: (string|null); + /** QueryClientConnectionsResponse connection_paths */ + connection_paths?: (string[]|null); - /** SignBytes data_type */ - data_type?: (ibc.lightclients.solomachine.v1.DataType|null); + /** QueryClientConnectionsResponse proof */ + proof?: (Uint8Array|null); - /** SignBytes data */ - data?: (Uint8Array|null); + /** QueryClientConnectionsResponse proof_height */ + proof_height?: (ibc.core.client.v1.IHeight|null); } - /** Represents a SignBytes. */ - class SignBytes implements ISignBytes { + /** Represents a QueryClientConnectionsResponse. */ + class QueryClientConnectionsResponse implements IQueryClientConnectionsResponse { /** - * Constructs a new SignBytes. + * Constructs a new QueryClientConnectionsResponse. * @param [properties] Properties to set */ - constructor(properties?: ibc.lightclients.solomachine.v1.ISignBytes); - - /** SignBytes sequence. */ - public sequence: Long; - - /** SignBytes timestamp. */ - public timestamp: Long; + constructor(properties?: ibc.core.connection.v1.IQueryClientConnectionsResponse); - /** SignBytes diversifier. */ - public diversifier: string; + /** QueryClientConnectionsResponse connection_paths. */ + public connection_paths: string[]; - /** SignBytes data_type. */ - public data_type: ibc.lightclients.solomachine.v1.DataType; + /** QueryClientConnectionsResponse proof. */ + public proof: Uint8Array; - /** SignBytes data. */ - public data: Uint8Array; + /** QueryClientConnectionsResponse proof_height. */ + public proof_height?: (ibc.core.client.v1.IHeight|null); /** - * Encodes the specified SignBytes message. Does not implicitly {@link ibc.lightclients.solomachine.v1.SignBytes.verify|verify} messages. - * @param message SignBytes message or plain object to encode + * Encodes the specified QueryClientConnectionsResponse message. Does not implicitly {@link ibc.core.connection.v1.QueryClientConnectionsResponse.verify|verify} messages. + * @param message QueryClientConnectionsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.lightclients.solomachine.v1.ISignBytes, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.core.connection.v1.IQueryClientConnectionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified SignBytes message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v1.SignBytes.verify|verify} messages. - * @param message SignBytes message or plain object to encode + * Encodes the specified QueryClientConnectionsResponse message, length delimited. Does not implicitly {@link ibc.core.connection.v1.QueryClientConnectionsResponse.verify|verify} messages. + * @param message QueryClientConnectionsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.lightclients.solomachine.v1.ISignBytes, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.core.connection.v1.IQueryClientConnectionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SignBytes message from the specified reader or buffer. + * Decodes a QueryClientConnectionsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SignBytes + * @returns QueryClientConnectionsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.lightclients.solomachine.v1.SignBytes; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.connection.v1.QueryClientConnectionsResponse; /** - * Decodes a SignBytes message from the specified reader or buffer, length delimited. + * Decodes a QueryClientConnectionsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SignBytes + * @returns QueryClientConnectionsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.lightclients.solomachine.v1.SignBytes; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.connection.v1.QueryClientConnectionsResponse; /** - * Verifies a SignBytes message. + * Verifies a QueryClientConnectionsResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a SignBytes message from a plain object. Also converts values to their respective internal types. + * Creates a QueryClientConnectionsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SignBytes + * @returns QueryClientConnectionsResponse */ - public static fromObject(object: { [k: string]: any }): ibc.lightclients.solomachine.v1.SignBytes; + public static fromObject(object: { [k: string]: any }): ibc.core.connection.v1.QueryClientConnectionsResponse; /** - * Creates a plain object from a SignBytes message. Also converts values to other types if specified. - * @param message SignBytes + * Creates a plain object from a QueryClientConnectionsResponse message. Also converts values to other types if specified. + * @param message QueryClientConnectionsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.lightclients.solomachine.v1.SignBytes, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.core.connection.v1.QueryClientConnectionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SignBytes to JSON. + * Converts this QueryClientConnectionsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** DataType enum. */ - enum DataType { - DATA_TYPE_UNINITIALIZED_UNSPECIFIED = 0, - DATA_TYPE_CLIENT_STATE = 1, - DATA_TYPE_CONSENSUS_STATE = 2, - DATA_TYPE_CONNECTION_STATE = 3, - DATA_TYPE_CHANNEL_STATE = 4, - DATA_TYPE_PACKET_COMMITMENT = 5, - DATA_TYPE_PACKET_ACKNOWLEDGEMENT = 6, - DATA_TYPE_PACKET_RECEIPT_ABSENCE = 7, - DATA_TYPE_NEXT_SEQUENCE_RECV = 8, - DATA_TYPE_HEADER = 9 - } - - /** Properties of a HeaderData. */ - interface IHeaderData { - - /** HeaderData new_pub_key */ - new_pub_key?: (google.protobuf.IAny|null); + /** Properties of a QueryConnectionClientStateRequest. */ + interface IQueryConnectionClientStateRequest { - /** HeaderData new_diversifier */ - new_diversifier?: (string|null); + /** QueryConnectionClientStateRequest connection_id */ + connection_id?: (string|null); } - /** Represents a HeaderData. */ - class HeaderData implements IHeaderData { + /** Represents a QueryConnectionClientStateRequest. */ + class QueryConnectionClientStateRequest implements IQueryConnectionClientStateRequest { /** - * Constructs a new HeaderData. + * Constructs a new QueryConnectionClientStateRequest. * @param [properties] Properties to set */ - constructor(properties?: ibc.lightclients.solomachine.v1.IHeaderData); - - /** HeaderData new_pub_key. */ - public new_pub_key?: (google.protobuf.IAny|null); + constructor(properties?: ibc.core.connection.v1.IQueryConnectionClientStateRequest); - /** HeaderData new_diversifier. */ - public new_diversifier: string; + /** QueryConnectionClientStateRequest connection_id. */ + public connection_id: string; /** - * Encodes the specified HeaderData message. Does not implicitly {@link ibc.lightclients.solomachine.v1.HeaderData.verify|verify} messages. - * @param message HeaderData message or plain object to encode + * Encodes the specified QueryConnectionClientStateRequest message. Does not implicitly {@link ibc.core.connection.v1.QueryConnectionClientStateRequest.verify|verify} messages. + * @param message QueryConnectionClientStateRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.lightclients.solomachine.v1.IHeaderData, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.core.connection.v1.IQueryConnectionClientStateRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified HeaderData message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v1.HeaderData.verify|verify} messages. - * @param message HeaderData message or plain object to encode + * Encodes the specified QueryConnectionClientStateRequest message, length delimited. Does not implicitly {@link ibc.core.connection.v1.QueryConnectionClientStateRequest.verify|verify} messages. + * @param message QueryConnectionClientStateRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.lightclients.solomachine.v1.IHeaderData, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.core.connection.v1.IQueryConnectionClientStateRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a HeaderData message from the specified reader or buffer. + * Decodes a QueryConnectionClientStateRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns HeaderData + * @returns QueryConnectionClientStateRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.lightclients.solomachine.v1.HeaderData; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.connection.v1.QueryConnectionClientStateRequest; /** - * Decodes a HeaderData message from the specified reader or buffer, length delimited. + * Decodes a QueryConnectionClientStateRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns HeaderData + * @returns QueryConnectionClientStateRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.lightclients.solomachine.v1.HeaderData; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.connection.v1.QueryConnectionClientStateRequest; /** - * Verifies a HeaderData message. + * Verifies a QueryConnectionClientStateRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a HeaderData message from a plain object. Also converts values to their respective internal types. + * Creates a QueryConnectionClientStateRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns HeaderData + * @returns QueryConnectionClientStateRequest */ - public static fromObject(object: { [k: string]: any }): ibc.lightclients.solomachine.v1.HeaderData; + public static fromObject(object: { [k: string]: any }): ibc.core.connection.v1.QueryConnectionClientStateRequest; /** - * Creates a plain object from a HeaderData message. Also converts values to other types if specified. - * @param message HeaderData + * Creates a plain object from a QueryConnectionClientStateRequest message. Also converts values to other types if specified. + * @param message QueryConnectionClientStateRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.lightclients.solomachine.v1.HeaderData, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.core.connection.v1.QueryConnectionClientStateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this HeaderData to JSON. + * Converts this QueryConnectionClientStateRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ClientStateData. */ - interface IClientStateData { + /** Properties of a QueryConnectionClientStateResponse. */ + interface IQueryConnectionClientStateResponse { - /** ClientStateData path */ - path?: (Uint8Array|null); + /** QueryConnectionClientStateResponse identified_client_state */ + identified_client_state?: (ibc.core.client.v1.IIdentifiedClientState|null); - /** ClientStateData client_state */ - client_state?: (google.protobuf.IAny|null); + /** QueryConnectionClientStateResponse proof */ + proof?: (Uint8Array|null); + + /** QueryConnectionClientStateResponse proof_height */ + proof_height?: (ibc.core.client.v1.IHeight|null); } - /** Represents a ClientStateData. */ - class ClientStateData implements IClientStateData { + /** Represents a QueryConnectionClientStateResponse. */ + class QueryConnectionClientStateResponse implements IQueryConnectionClientStateResponse { /** - * Constructs a new ClientStateData. + * Constructs a new QueryConnectionClientStateResponse. * @param [properties] Properties to set */ - constructor(properties?: ibc.lightclients.solomachine.v1.IClientStateData); + constructor(properties?: ibc.core.connection.v1.IQueryConnectionClientStateResponse); - /** ClientStateData path. */ - public path: Uint8Array; + /** QueryConnectionClientStateResponse identified_client_state. */ + public identified_client_state?: (ibc.core.client.v1.IIdentifiedClientState|null); - /** ClientStateData client_state. */ - public client_state?: (google.protobuf.IAny|null); + /** QueryConnectionClientStateResponse proof. */ + public proof: Uint8Array; + + /** QueryConnectionClientStateResponse proof_height. */ + public proof_height?: (ibc.core.client.v1.IHeight|null); /** - * Encodes the specified ClientStateData message. Does not implicitly {@link ibc.lightclients.solomachine.v1.ClientStateData.verify|verify} messages. - * @param message ClientStateData message or plain object to encode + * Encodes the specified QueryConnectionClientStateResponse message. Does not implicitly {@link ibc.core.connection.v1.QueryConnectionClientStateResponse.verify|verify} messages. + * @param message QueryConnectionClientStateResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.lightclients.solomachine.v1.IClientStateData, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.core.connection.v1.IQueryConnectionClientStateResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ClientStateData message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v1.ClientStateData.verify|verify} messages. - * @param message ClientStateData message or plain object to encode + * Encodes the specified QueryConnectionClientStateResponse message, length delimited. Does not implicitly {@link ibc.core.connection.v1.QueryConnectionClientStateResponse.verify|verify} messages. + * @param message QueryConnectionClientStateResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.lightclients.solomachine.v1.IClientStateData, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.core.connection.v1.IQueryConnectionClientStateResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ClientStateData message from the specified reader or buffer. + * Decodes a QueryConnectionClientStateResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ClientStateData + * @returns QueryConnectionClientStateResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.lightclients.solomachine.v1.ClientStateData; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.connection.v1.QueryConnectionClientStateResponse; /** - * Decodes a ClientStateData message from the specified reader or buffer, length delimited. + * Decodes a QueryConnectionClientStateResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ClientStateData + * @returns QueryConnectionClientStateResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.lightclients.solomachine.v1.ClientStateData; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.connection.v1.QueryConnectionClientStateResponse; /** - * Verifies a ClientStateData message. + * Verifies a QueryConnectionClientStateResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ClientStateData message from a plain object. Also converts values to their respective internal types. + * Creates a QueryConnectionClientStateResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ClientStateData + * @returns QueryConnectionClientStateResponse */ - public static fromObject(object: { [k: string]: any }): ibc.lightclients.solomachine.v1.ClientStateData; + public static fromObject(object: { [k: string]: any }): ibc.core.connection.v1.QueryConnectionClientStateResponse; /** - * Creates a plain object from a ClientStateData message. Also converts values to other types if specified. - * @param message ClientStateData + * Creates a plain object from a QueryConnectionClientStateResponse message. Also converts values to other types if specified. + * @param message QueryConnectionClientStateResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.lightclients.solomachine.v1.ClientStateData, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.core.connection.v1.QueryConnectionClientStateResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ClientStateData to JSON. + * Converts this QueryConnectionClientStateResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ConsensusStateData. */ - interface IConsensusStateData { + /** Properties of a QueryConnectionConsensusStateRequest. */ + interface IQueryConnectionConsensusStateRequest { - /** ConsensusStateData path */ - path?: (Uint8Array|null); + /** QueryConnectionConsensusStateRequest connection_id */ + connection_id?: (string|null); - /** ConsensusStateData consensus_state */ - consensus_state?: (google.protobuf.IAny|null); + /** QueryConnectionConsensusStateRequest revision_number */ + revision_number?: (Long|null); + + /** QueryConnectionConsensusStateRequest revision_height */ + revision_height?: (Long|null); } - /** Represents a ConsensusStateData. */ - class ConsensusStateData implements IConsensusStateData { + /** Represents a QueryConnectionConsensusStateRequest. */ + class QueryConnectionConsensusStateRequest implements IQueryConnectionConsensusStateRequest { /** - * Constructs a new ConsensusStateData. + * Constructs a new QueryConnectionConsensusStateRequest. * @param [properties] Properties to set */ - constructor(properties?: ibc.lightclients.solomachine.v1.IConsensusStateData); + constructor(properties?: ibc.core.connection.v1.IQueryConnectionConsensusStateRequest); - /** ConsensusStateData path. */ - public path: Uint8Array; + /** QueryConnectionConsensusStateRequest connection_id. */ + public connection_id: string; - /** ConsensusStateData consensus_state. */ - public consensus_state?: (google.protobuf.IAny|null); + /** QueryConnectionConsensusStateRequest revision_number. */ + public revision_number: Long; + + /** QueryConnectionConsensusStateRequest revision_height. */ + public revision_height: Long; /** - * Encodes the specified ConsensusStateData message. Does not implicitly {@link ibc.lightclients.solomachine.v1.ConsensusStateData.verify|verify} messages. - * @param message ConsensusStateData message or plain object to encode + * Encodes the specified QueryConnectionConsensusStateRequest message. Does not implicitly {@link ibc.core.connection.v1.QueryConnectionConsensusStateRequest.verify|verify} messages. + * @param message QueryConnectionConsensusStateRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.lightclients.solomachine.v1.IConsensusStateData, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.core.connection.v1.IQueryConnectionConsensusStateRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ConsensusStateData message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v1.ConsensusStateData.verify|verify} messages. - * @param message ConsensusStateData message or plain object to encode + * Encodes the specified QueryConnectionConsensusStateRequest message, length delimited. Does not implicitly {@link ibc.core.connection.v1.QueryConnectionConsensusStateRequest.verify|verify} messages. + * @param message QueryConnectionConsensusStateRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.lightclients.solomachine.v1.IConsensusStateData, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.core.connection.v1.IQueryConnectionConsensusStateRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ConsensusStateData message from the specified reader or buffer. + * Decodes a QueryConnectionConsensusStateRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ConsensusStateData + * @returns QueryConnectionConsensusStateRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.lightclients.solomachine.v1.ConsensusStateData; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.connection.v1.QueryConnectionConsensusStateRequest; /** - * Decodes a ConsensusStateData message from the specified reader or buffer, length delimited. + * Decodes a QueryConnectionConsensusStateRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ConsensusStateData + * @returns QueryConnectionConsensusStateRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.lightclients.solomachine.v1.ConsensusStateData; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.connection.v1.QueryConnectionConsensusStateRequest; /** - * Verifies a ConsensusStateData message. + * Verifies a QueryConnectionConsensusStateRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ConsensusStateData message from a plain object. Also converts values to their respective internal types. + * Creates a QueryConnectionConsensusStateRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ConsensusStateData + * @returns QueryConnectionConsensusStateRequest */ - public static fromObject(object: { [k: string]: any }): ibc.lightclients.solomachine.v1.ConsensusStateData; + public static fromObject(object: { [k: string]: any }): ibc.core.connection.v1.QueryConnectionConsensusStateRequest; /** - * Creates a plain object from a ConsensusStateData message. Also converts values to other types if specified. - * @param message ConsensusStateData + * Creates a plain object from a QueryConnectionConsensusStateRequest message. Also converts values to other types if specified. + * @param message QueryConnectionConsensusStateRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.lightclients.solomachine.v1.ConsensusStateData, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.core.connection.v1.QueryConnectionConsensusStateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ConsensusStateData to JSON. + * Converts this QueryConnectionConsensusStateRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ConnectionStateData. */ - interface IConnectionStateData { + /** Properties of a QueryConnectionConsensusStateResponse. */ + interface IQueryConnectionConsensusStateResponse { - /** ConnectionStateData path */ - path?: (Uint8Array|null); + /** QueryConnectionConsensusStateResponse consensus_state */ + consensus_state?: (google.protobuf.IAny|null); - /** ConnectionStateData connection */ - connection?: (ibc.core.connection.v1.IConnectionEnd|null); + /** QueryConnectionConsensusStateResponse client_id */ + client_id?: (string|null); + + /** QueryConnectionConsensusStateResponse proof */ + proof?: (Uint8Array|null); + + /** QueryConnectionConsensusStateResponse proof_height */ + proof_height?: (ibc.core.client.v1.IHeight|null); } - /** Represents a ConnectionStateData. */ - class ConnectionStateData implements IConnectionStateData { + /** Represents a QueryConnectionConsensusStateResponse. */ + class QueryConnectionConsensusStateResponse implements IQueryConnectionConsensusStateResponse { /** - * Constructs a new ConnectionStateData. + * Constructs a new QueryConnectionConsensusStateResponse. * @param [properties] Properties to set */ - constructor(properties?: ibc.lightclients.solomachine.v1.IConnectionStateData); + constructor(properties?: ibc.core.connection.v1.IQueryConnectionConsensusStateResponse); - /** ConnectionStateData path. */ - public path: Uint8Array; + /** QueryConnectionConsensusStateResponse consensus_state. */ + public consensus_state?: (google.protobuf.IAny|null); - /** ConnectionStateData connection. */ - public connection?: (ibc.core.connection.v1.IConnectionEnd|null); + /** QueryConnectionConsensusStateResponse client_id. */ + public client_id: string; + + /** QueryConnectionConsensusStateResponse proof. */ + public proof: Uint8Array; + + /** QueryConnectionConsensusStateResponse proof_height. */ + public proof_height?: (ibc.core.client.v1.IHeight|null); /** - * Encodes the specified ConnectionStateData message. Does not implicitly {@link ibc.lightclients.solomachine.v1.ConnectionStateData.verify|verify} messages. - * @param message ConnectionStateData message or plain object to encode + * Encodes the specified QueryConnectionConsensusStateResponse message. Does not implicitly {@link ibc.core.connection.v1.QueryConnectionConsensusStateResponse.verify|verify} messages. + * @param message QueryConnectionConsensusStateResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.lightclients.solomachine.v1.IConnectionStateData, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.core.connection.v1.IQueryConnectionConsensusStateResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ConnectionStateData message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v1.ConnectionStateData.verify|verify} messages. - * @param message ConnectionStateData message or plain object to encode + * Encodes the specified QueryConnectionConsensusStateResponse message, length delimited. Does not implicitly {@link ibc.core.connection.v1.QueryConnectionConsensusStateResponse.verify|verify} messages. + * @param message QueryConnectionConsensusStateResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.lightclients.solomachine.v1.IConnectionStateData, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.core.connection.v1.IQueryConnectionConsensusStateResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ConnectionStateData message from the specified reader or buffer. + * Decodes a QueryConnectionConsensusStateResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ConnectionStateData + * @returns QueryConnectionConsensusStateResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.lightclients.solomachine.v1.ConnectionStateData; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.connection.v1.QueryConnectionConsensusStateResponse; /** - * Decodes a ConnectionStateData message from the specified reader or buffer, length delimited. + * Decodes a QueryConnectionConsensusStateResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ConnectionStateData + * @returns QueryConnectionConsensusStateResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.lightclients.solomachine.v1.ConnectionStateData; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.connection.v1.QueryConnectionConsensusStateResponse; /** - * Verifies a ConnectionStateData message. + * Verifies a QueryConnectionConsensusStateResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ConnectionStateData message from a plain object. Also converts values to their respective internal types. + * Creates a QueryConnectionConsensusStateResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ConnectionStateData + * @returns QueryConnectionConsensusStateResponse */ - public static fromObject(object: { [k: string]: any }): ibc.lightclients.solomachine.v1.ConnectionStateData; + public static fromObject(object: { [k: string]: any }): ibc.core.connection.v1.QueryConnectionConsensusStateResponse; /** - * Creates a plain object from a ConnectionStateData message. Also converts values to other types if specified. - * @param message ConnectionStateData + * Creates a plain object from a QueryConnectionConsensusStateResponse message. Also converts values to other types if specified. + * @param message QueryConnectionConsensusStateResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.lightclients.solomachine.v1.ConnectionStateData, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.core.connection.v1.QueryConnectionConsensusStateResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ConnectionStateData to JSON. + * Converts this QueryConnectionConsensusStateResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ChannelStateData. */ - interface IChannelStateData { - - /** ChannelStateData path */ - path?: (Uint8Array|null); - - /** ChannelStateData channel */ - channel?: (ibc.core.channel.v1.IChannel|null); + /** Properties of a QueryConnectionParamsRequest. */ + interface IQueryConnectionParamsRequest { } - /** Represents a ChannelStateData. */ - class ChannelStateData implements IChannelStateData { + /** Represents a QueryConnectionParamsRequest. */ + class QueryConnectionParamsRequest implements IQueryConnectionParamsRequest { /** - * Constructs a new ChannelStateData. + * Constructs a new QueryConnectionParamsRequest. * @param [properties] Properties to set */ - constructor(properties?: ibc.lightclients.solomachine.v1.IChannelStateData); - - /** ChannelStateData path. */ - public path: Uint8Array; - - /** ChannelStateData channel. */ - public channel?: (ibc.core.channel.v1.IChannel|null); + constructor(properties?: ibc.core.connection.v1.IQueryConnectionParamsRequest); /** - * Encodes the specified ChannelStateData message. Does not implicitly {@link ibc.lightclients.solomachine.v1.ChannelStateData.verify|verify} messages. - * @param message ChannelStateData message or plain object to encode + * Encodes the specified QueryConnectionParamsRequest message. Does not implicitly {@link ibc.core.connection.v1.QueryConnectionParamsRequest.verify|verify} messages. + * @param message QueryConnectionParamsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.lightclients.solomachine.v1.IChannelStateData, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.core.connection.v1.IQueryConnectionParamsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ChannelStateData message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v1.ChannelStateData.verify|verify} messages. - * @param message ChannelStateData message or plain object to encode + * Encodes the specified QueryConnectionParamsRequest message, length delimited. Does not implicitly {@link ibc.core.connection.v1.QueryConnectionParamsRequest.verify|verify} messages. + * @param message QueryConnectionParamsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.lightclients.solomachine.v1.IChannelStateData, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.core.connection.v1.IQueryConnectionParamsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ChannelStateData message from the specified reader or buffer. + * Decodes a QueryConnectionParamsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ChannelStateData + * @returns QueryConnectionParamsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.lightclients.solomachine.v1.ChannelStateData; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.connection.v1.QueryConnectionParamsRequest; /** - * Decodes a ChannelStateData message from the specified reader or buffer, length delimited. + * Decodes a QueryConnectionParamsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ChannelStateData + * @returns QueryConnectionParamsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.lightclients.solomachine.v1.ChannelStateData; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.connection.v1.QueryConnectionParamsRequest; /** - * Verifies a ChannelStateData message. + * Verifies a QueryConnectionParamsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ChannelStateData message from a plain object. Also converts values to their respective internal types. + * Creates a QueryConnectionParamsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ChannelStateData + * @returns QueryConnectionParamsRequest */ - public static fromObject(object: { [k: string]: any }): ibc.lightclients.solomachine.v1.ChannelStateData; + public static fromObject(object: { [k: string]: any }): ibc.core.connection.v1.QueryConnectionParamsRequest; /** - * Creates a plain object from a ChannelStateData message. Also converts values to other types if specified. - * @param message ChannelStateData + * Creates a plain object from a QueryConnectionParamsRequest message. Also converts values to other types if specified. + * @param message QueryConnectionParamsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.lightclients.solomachine.v1.ChannelStateData, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.core.connection.v1.QueryConnectionParamsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ChannelStateData to JSON. + * Converts this QueryConnectionParamsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a PacketCommitmentData. */ - interface IPacketCommitmentData { - - /** PacketCommitmentData path */ - path?: (Uint8Array|null); + /** Properties of a QueryConnectionParamsResponse. */ + interface IQueryConnectionParamsResponse { - /** PacketCommitmentData commitment */ - commitment?: (Uint8Array|null); + /** QueryConnectionParamsResponse params */ + params?: (ibc.core.connection.v1.IParams|null); } - /** Represents a PacketCommitmentData. */ - class PacketCommitmentData implements IPacketCommitmentData { + /** Represents a QueryConnectionParamsResponse. */ + class QueryConnectionParamsResponse implements IQueryConnectionParamsResponse { /** - * Constructs a new PacketCommitmentData. + * Constructs a new QueryConnectionParamsResponse. * @param [properties] Properties to set */ - constructor(properties?: ibc.lightclients.solomachine.v1.IPacketCommitmentData); + constructor(properties?: ibc.core.connection.v1.IQueryConnectionParamsResponse); - /** PacketCommitmentData path. */ - public path: Uint8Array; - - /** PacketCommitmentData commitment. */ - public commitment: Uint8Array; + /** QueryConnectionParamsResponse params. */ + public params?: (ibc.core.connection.v1.IParams|null); /** - * Encodes the specified PacketCommitmentData message. Does not implicitly {@link ibc.lightclients.solomachine.v1.PacketCommitmentData.verify|verify} messages. - * @param message PacketCommitmentData message or plain object to encode + * Encodes the specified QueryConnectionParamsResponse message. Does not implicitly {@link ibc.core.connection.v1.QueryConnectionParamsResponse.verify|verify} messages. + * @param message QueryConnectionParamsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.lightclients.solomachine.v1.IPacketCommitmentData, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.core.connection.v1.IQueryConnectionParamsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified PacketCommitmentData message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v1.PacketCommitmentData.verify|verify} messages. - * @param message PacketCommitmentData message or plain object to encode + * Encodes the specified QueryConnectionParamsResponse message, length delimited. Does not implicitly {@link ibc.core.connection.v1.QueryConnectionParamsResponse.verify|verify} messages. + * @param message QueryConnectionParamsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.lightclients.solomachine.v1.IPacketCommitmentData, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.core.connection.v1.IQueryConnectionParamsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PacketCommitmentData message from the specified reader or buffer. + * Decodes a QueryConnectionParamsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PacketCommitmentData + * @returns QueryConnectionParamsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.lightclients.solomachine.v1.PacketCommitmentData; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.connection.v1.QueryConnectionParamsResponse; /** - * Decodes a PacketCommitmentData message from the specified reader or buffer, length delimited. + * Decodes a QueryConnectionParamsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PacketCommitmentData + * @returns QueryConnectionParamsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.lightclients.solomachine.v1.PacketCommitmentData; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.connection.v1.QueryConnectionParamsResponse; /** - * Verifies a PacketCommitmentData message. + * Verifies a QueryConnectionParamsResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a PacketCommitmentData message from a plain object. Also converts values to their respective internal types. + * Creates a QueryConnectionParamsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PacketCommitmentData + * @returns QueryConnectionParamsResponse */ - public static fromObject(object: { [k: string]: any }): ibc.lightclients.solomachine.v1.PacketCommitmentData; + public static fromObject(object: { [k: string]: any }): ibc.core.connection.v1.QueryConnectionParamsResponse; /** - * Creates a plain object from a PacketCommitmentData message. Also converts values to other types if specified. - * @param message PacketCommitmentData + * Creates a plain object from a QueryConnectionParamsResponse message. Also converts values to other types if specified. + * @param message QueryConnectionParamsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.lightclients.solomachine.v1.PacketCommitmentData, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.core.connection.v1.QueryConnectionParamsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PacketCommitmentData to JSON. + * Converts this QueryConnectionParamsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a PacketAcknowledgementData. */ - interface IPacketAcknowledgementData { + /** Properties of a GenesisState. */ + interface IGenesisState { - /** PacketAcknowledgementData path */ - path?: (Uint8Array|null); + /** GenesisState connections */ + connections?: (ibc.core.connection.v1.IIdentifiedConnection[]|null); - /** PacketAcknowledgementData acknowledgement */ - acknowledgement?: (Uint8Array|null); + /** GenesisState client_connection_paths */ + client_connection_paths?: (ibc.core.connection.v1.IConnectionPaths[]|null); + + /** GenesisState next_connection_sequence */ + next_connection_sequence?: (Long|null); + + /** GenesisState params */ + params?: (ibc.core.connection.v1.IParams|null); } - /** Represents a PacketAcknowledgementData. */ - class PacketAcknowledgementData implements IPacketAcknowledgementData { + /** Represents a GenesisState. */ + class GenesisState implements IGenesisState { /** - * Constructs a new PacketAcknowledgementData. + * Constructs a new GenesisState. * @param [properties] Properties to set */ - constructor(properties?: ibc.lightclients.solomachine.v1.IPacketAcknowledgementData); + constructor(properties?: ibc.core.connection.v1.IGenesisState); - /** PacketAcknowledgementData path. */ - public path: Uint8Array; + /** GenesisState connections. */ + public connections: ibc.core.connection.v1.IIdentifiedConnection[]; - /** PacketAcknowledgementData acknowledgement. */ - public acknowledgement: Uint8Array; + /** GenesisState client_connection_paths. */ + public client_connection_paths: ibc.core.connection.v1.IConnectionPaths[]; + + /** GenesisState next_connection_sequence. */ + public next_connection_sequence: Long; + + /** GenesisState params. */ + public params?: (ibc.core.connection.v1.IParams|null); /** - * Encodes the specified PacketAcknowledgementData message. Does not implicitly {@link ibc.lightclients.solomachine.v1.PacketAcknowledgementData.verify|verify} messages. - * @param message PacketAcknowledgementData message or plain object to encode + * Encodes the specified GenesisState message. Does not implicitly {@link ibc.core.connection.v1.GenesisState.verify|verify} messages. + * @param message GenesisState message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.lightclients.solomachine.v1.IPacketAcknowledgementData, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.core.connection.v1.IGenesisState, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified PacketAcknowledgementData message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v1.PacketAcknowledgementData.verify|verify} messages. - * @param message PacketAcknowledgementData message or plain object to encode + * Encodes the specified GenesisState message, length delimited. Does not implicitly {@link ibc.core.connection.v1.GenesisState.verify|verify} messages. + * @param message GenesisState message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.lightclients.solomachine.v1.IPacketAcknowledgementData, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.core.connection.v1.IGenesisState, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PacketAcknowledgementData message from the specified reader or buffer. + * Decodes a GenesisState message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PacketAcknowledgementData + * @returns GenesisState * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.lightclients.solomachine.v1.PacketAcknowledgementData; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.connection.v1.GenesisState; /** - * Decodes a PacketAcknowledgementData message from the specified reader or buffer, length delimited. + * Decodes a GenesisState message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PacketAcknowledgementData + * @returns GenesisState * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.lightclients.solomachine.v1.PacketAcknowledgementData; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.connection.v1.GenesisState; /** - * Verifies a PacketAcknowledgementData message. + * Verifies a GenesisState message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a PacketAcknowledgementData message from a plain object. Also converts values to their respective internal types. + * Creates a GenesisState message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PacketAcknowledgementData + * @returns GenesisState */ - public static fromObject(object: { [k: string]: any }): ibc.lightclients.solomachine.v1.PacketAcknowledgementData; + public static fromObject(object: { [k: string]: any }): ibc.core.connection.v1.GenesisState; /** - * Creates a plain object from a PacketAcknowledgementData message. Also converts values to other types if specified. - * @param message PacketAcknowledgementData + * Creates a plain object from a GenesisState message. Also converts values to other types if specified. + * @param message GenesisState * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.lightclients.solomachine.v1.PacketAcknowledgementData, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.core.connection.v1.GenesisState, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PacketAcknowledgementData to JSON. + * Converts this GenesisState to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } + } + } - /** Properties of a PacketReceiptAbsenceData. */ - interface IPacketReceiptAbsenceData { + /** Namespace types. */ + namespace types { - /** PacketReceiptAbsenceData path */ - path?: (Uint8Array|null); + /** Namespace v1. */ + namespace v1 { + + /** Properties of a GenesisState. */ + interface IGenesisState { + + /** GenesisState client_genesis */ + client_genesis?: (ibc.core.client.v1.IGenesisState|null); + + /** GenesisState connection_genesis */ + connection_genesis?: (ibc.core.connection.v1.IGenesisState|null); + + /** GenesisState channel_genesis */ + channel_genesis?: (ibc.core.channel.v1.IGenesisState|null); } - /** Represents a PacketReceiptAbsenceData. */ - class PacketReceiptAbsenceData implements IPacketReceiptAbsenceData { + /** Represents a GenesisState. */ + class GenesisState implements IGenesisState { /** - * Constructs a new PacketReceiptAbsenceData. + * Constructs a new GenesisState. * @param [properties] Properties to set */ - constructor(properties?: ibc.lightclients.solomachine.v1.IPacketReceiptAbsenceData); + constructor(properties?: ibc.core.types.v1.IGenesisState); - /** PacketReceiptAbsenceData path. */ - public path: Uint8Array; + /** GenesisState client_genesis. */ + public client_genesis?: (ibc.core.client.v1.IGenesisState|null); + + /** GenesisState connection_genesis. */ + public connection_genesis?: (ibc.core.connection.v1.IGenesisState|null); + + /** GenesisState channel_genesis. */ + public channel_genesis?: (ibc.core.channel.v1.IGenesisState|null); /** - * Encodes the specified PacketReceiptAbsenceData message. Does not implicitly {@link ibc.lightclients.solomachine.v1.PacketReceiptAbsenceData.verify|verify} messages. - * @param message PacketReceiptAbsenceData message or plain object to encode + * Encodes the specified GenesisState message. Does not implicitly {@link ibc.core.types.v1.GenesisState.verify|verify} messages. + * @param message GenesisState message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.lightclients.solomachine.v1.IPacketReceiptAbsenceData, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.core.types.v1.IGenesisState, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified PacketReceiptAbsenceData message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v1.PacketReceiptAbsenceData.verify|verify} messages. - * @param message PacketReceiptAbsenceData message or plain object to encode + * Encodes the specified GenesisState message, length delimited. Does not implicitly {@link ibc.core.types.v1.GenesisState.verify|verify} messages. + * @param message GenesisState message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.lightclients.solomachine.v1.IPacketReceiptAbsenceData, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.core.types.v1.IGenesisState, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PacketReceiptAbsenceData message from the specified reader or buffer. + * Decodes a GenesisState message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PacketReceiptAbsenceData + * @returns GenesisState * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.lightclients.solomachine.v1.PacketReceiptAbsenceData; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.core.types.v1.GenesisState; /** - * Decodes a PacketReceiptAbsenceData message from the specified reader or buffer, length delimited. + * Decodes a GenesisState message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PacketReceiptAbsenceData + * @returns GenesisState * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.lightclients.solomachine.v1.PacketReceiptAbsenceData; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.core.types.v1.GenesisState; /** - * Verifies a PacketReceiptAbsenceData message. + * Verifies a GenesisState message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a PacketReceiptAbsenceData message from a plain object. Also converts values to their respective internal types. + * Creates a GenesisState message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PacketReceiptAbsenceData + * @returns GenesisState */ - public static fromObject(object: { [k: string]: any }): ibc.lightclients.solomachine.v1.PacketReceiptAbsenceData; + public static fromObject(object: { [k: string]: any }): ibc.core.types.v1.GenesisState; /** - * Creates a plain object from a PacketReceiptAbsenceData message. Also converts values to other types if specified. - * @param message PacketReceiptAbsenceData + * Creates a plain object from a GenesisState message. Also converts values to other types if specified. + * @param message GenesisState * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.lightclients.solomachine.v1.PacketReceiptAbsenceData, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.core.types.v1.GenesisState, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PacketReceiptAbsenceData to JSON. + * Converts this GenesisState to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } + } + } + } - /** Properties of a NextSequenceRecvData. */ - interface INextSequenceRecvData { + /** Namespace lightclients. */ + namespace lightclients { - /** NextSequenceRecvData path */ - path?: (Uint8Array|null); + /** Namespace localhost. */ + namespace localhost { - /** NextSequenceRecvData next_seq_recv */ - next_seq_recv?: (Long|null); + /** Namespace v2. */ + namespace v2 { + + /** Properties of a ClientState. */ + interface IClientState { + + /** ClientState latest_height */ + latest_height?: (ibc.core.client.v1.IHeight|null); } - /** Represents a NextSequenceRecvData. */ - class NextSequenceRecvData implements INextSequenceRecvData { + /** Represents a ClientState. */ + class ClientState implements IClientState { /** - * Constructs a new NextSequenceRecvData. + * Constructs a new ClientState. * @param [properties] Properties to set */ - constructor(properties?: ibc.lightclients.solomachine.v1.INextSequenceRecvData); - - /** NextSequenceRecvData path. */ - public path: Uint8Array; + constructor(properties?: ibc.lightclients.localhost.v2.IClientState); - /** NextSequenceRecvData next_seq_recv. */ - public next_seq_recv: Long; + /** ClientState latest_height. */ + public latest_height?: (ibc.core.client.v1.IHeight|null); /** - * Encodes the specified NextSequenceRecvData message. Does not implicitly {@link ibc.lightclients.solomachine.v1.NextSequenceRecvData.verify|verify} messages. - * @param message NextSequenceRecvData message or plain object to encode + * Encodes the specified ClientState message. Does not implicitly {@link ibc.lightclients.localhost.v2.ClientState.verify|verify} messages. + * @param message ClientState message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.lightclients.solomachine.v1.INextSequenceRecvData, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.lightclients.localhost.v2.IClientState, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified NextSequenceRecvData message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v1.NextSequenceRecvData.verify|verify} messages. - * @param message NextSequenceRecvData message or plain object to encode + * Encodes the specified ClientState message, length delimited. Does not implicitly {@link ibc.lightclients.localhost.v2.ClientState.verify|verify} messages. + * @param message ClientState message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.lightclients.solomachine.v1.INextSequenceRecvData, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.lightclients.localhost.v2.IClientState, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a NextSequenceRecvData message from the specified reader or buffer. + * Decodes a ClientState message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns NextSequenceRecvData + * @returns ClientState * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.lightclients.solomachine.v1.NextSequenceRecvData; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.lightclients.localhost.v2.ClientState; /** - * Decodes a NextSequenceRecvData message from the specified reader or buffer, length delimited. + * Decodes a ClientState message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns NextSequenceRecvData + * @returns ClientState * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.lightclients.solomachine.v1.NextSequenceRecvData; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.lightclients.localhost.v2.ClientState; /** - * Verifies a NextSequenceRecvData message. + * Verifies a ClientState message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a NextSequenceRecvData message from a plain object. Also converts values to their respective internal types. + * Creates a ClientState message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns NextSequenceRecvData + * @returns ClientState */ - public static fromObject(object: { [k: string]: any }): ibc.lightclients.solomachine.v1.NextSequenceRecvData; + public static fromObject(object: { [k: string]: any }): ibc.lightclients.localhost.v2.ClientState; /** - * Creates a plain object from a NextSequenceRecvData message. Also converts values to other types if specified. - * @param message NextSequenceRecvData + * Creates a plain object from a ClientState message. Also converts values to other types if specified. + * @param message ClientState * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.lightclients.solomachine.v1.NextSequenceRecvData, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.lightclients.localhost.v2.ClientState, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this NextSequenceRecvData to JSON. + * Converts this ClientState to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } } + } + + /** Namespace solomachine. */ + namespace solomachine { /** Namespace v2. */ namespace v2 { @@ -29222,49 +31915,21 @@ export namespace ibc { public toJSON(): { [k: string]: any }; } } - } - - /** Namespace tendermint. */ - namespace tendermint { - /** Namespace v1. */ - namespace v1 { + /** Namespace v3. */ + namespace v3 { /** Properties of a ClientState. */ interface IClientState { - /** ClientState chain_id */ - chain_id?: (string|null); - - /** ClientState trust_level */ - trust_level?: (ibc.lightclients.tendermint.v1.IFraction|null); - - /** ClientState trusting_period */ - trusting_period?: (google.protobuf.IDuration|null); - - /** ClientState unbonding_period */ - unbonding_period?: (google.protobuf.IDuration|null); - - /** ClientState max_clock_drift */ - max_clock_drift?: (google.protobuf.IDuration|null); - - /** ClientState frozen_height */ - frozen_height?: (ibc.core.client.v1.IHeight|null); - - /** ClientState latest_height */ - latest_height?: (ibc.core.client.v1.IHeight|null); - - /** ClientState proof_specs */ - proof_specs?: (ics23.IProofSpec[]|null); - - /** ClientState upgrade_path */ - upgrade_path?: (string[]|null); + /** ClientState sequence */ + sequence?: (Long|null); - /** ClientState allow_update_after_expiry */ - allow_update_after_expiry?: (boolean|null); + /** ClientState is_frozen */ + is_frozen?: (boolean|null); - /** ClientState allow_update_after_misbehaviour */ - allow_update_after_misbehaviour?: (boolean|null); + /** ClientState consensus_state */ + consensus_state?: (ibc.lightclients.solomachine.v3.IConsensusState|null); } /** Represents a ClientState. */ @@ -29274,56 +31939,32 @@ export namespace ibc { * Constructs a new ClientState. * @param [properties] Properties to set */ - constructor(properties?: ibc.lightclients.tendermint.v1.IClientState); - - /** ClientState chain_id. */ - public chain_id: string; - - /** ClientState trust_level. */ - public trust_level?: (ibc.lightclients.tendermint.v1.IFraction|null); - - /** ClientState trusting_period. */ - public trusting_period?: (google.protobuf.IDuration|null); - - /** ClientState unbonding_period. */ - public unbonding_period?: (google.protobuf.IDuration|null); - - /** ClientState max_clock_drift. */ - public max_clock_drift?: (google.protobuf.IDuration|null); - - /** ClientState frozen_height. */ - public frozen_height?: (ibc.core.client.v1.IHeight|null); - - /** ClientState latest_height. */ - public latest_height?: (ibc.core.client.v1.IHeight|null); + constructor(properties?: ibc.lightclients.solomachine.v3.IClientState); - /** ClientState proof_specs. */ - public proof_specs: ics23.IProofSpec[]; - - /** ClientState upgrade_path. */ - public upgrade_path: string[]; + /** ClientState sequence. */ + public sequence: Long; - /** ClientState allow_update_after_expiry. */ - public allow_update_after_expiry: boolean; + /** ClientState is_frozen. */ + public is_frozen: boolean; - /** ClientState allow_update_after_misbehaviour. */ - public allow_update_after_misbehaviour: boolean; + /** ClientState consensus_state. */ + public consensus_state?: (ibc.lightclients.solomachine.v3.IConsensusState|null); /** - * Encodes the specified ClientState message. Does not implicitly {@link ibc.lightclients.tendermint.v1.ClientState.verify|verify} messages. + * Encodes the specified ClientState message. Does not implicitly {@link ibc.lightclients.solomachine.v3.ClientState.verify|verify} messages. * @param message ClientState message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.lightclients.tendermint.v1.IClientState, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.lightclients.solomachine.v3.IClientState, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ClientState message, length delimited. Does not implicitly {@link ibc.lightclients.tendermint.v1.ClientState.verify|verify} messages. + * Encodes the specified ClientState message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v3.ClientState.verify|verify} messages. * @param message ClientState message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.lightclients.tendermint.v1.IClientState, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.lightclients.solomachine.v3.IClientState, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a ClientState message from the specified reader or buffer. @@ -29333,7 +31974,7 @@ export namespace ibc { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.lightclients.tendermint.v1.ClientState; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.lightclients.solomachine.v3.ClientState; /** * Decodes a ClientState message from the specified reader or buffer, length delimited. @@ -29342,7 +31983,7 @@ export namespace ibc { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.lightclients.tendermint.v1.ClientState; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.lightclients.solomachine.v3.ClientState; /** * Verifies a ClientState message. @@ -29356,7 +31997,7 @@ export namespace ibc { * @param object Plain object * @returns ClientState */ - public static fromObject(object: { [k: string]: any }): ibc.lightclients.tendermint.v1.ClientState; + public static fromObject(object: { [k: string]: any }): ibc.lightclients.solomachine.v3.ClientState; /** * Creates a plain object from a ClientState message. Also converts values to other types if specified. @@ -29364,7 +32005,7 @@ export namespace ibc { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.lightclients.tendermint.v1.ClientState, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.lightclients.solomachine.v3.ClientState, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this ClientState to JSON. @@ -29376,14 +32017,14 @@ export namespace ibc { /** Properties of a ConsensusState. */ interface IConsensusState { - /** ConsensusState timestamp */ - timestamp?: (google.protobuf.ITimestamp|null); + /** ConsensusState public_key */ + public_key?: (google.protobuf.IAny|null); - /** ConsensusState root */ - root?: (ibc.core.commitment.v1.IMerkleRoot|null); + /** ConsensusState diversifier */ + diversifier?: (string|null); - /** ConsensusState next_validators_hash */ - next_validators_hash?: (Uint8Array|null); + /** ConsensusState timestamp */ + timestamp?: (Long|null); } /** Represents a ConsensusState. */ @@ -29393,32 +32034,32 @@ export namespace ibc { * Constructs a new ConsensusState. * @param [properties] Properties to set */ - constructor(properties?: ibc.lightclients.tendermint.v1.IConsensusState); + constructor(properties?: ibc.lightclients.solomachine.v3.IConsensusState); - /** ConsensusState timestamp. */ - public timestamp?: (google.protobuf.ITimestamp|null); + /** ConsensusState public_key. */ + public public_key?: (google.protobuf.IAny|null); - /** ConsensusState root. */ - public root?: (ibc.core.commitment.v1.IMerkleRoot|null); + /** ConsensusState diversifier. */ + public diversifier: string; - /** ConsensusState next_validators_hash. */ - public next_validators_hash: Uint8Array; + /** ConsensusState timestamp. */ + public timestamp: Long; /** - * Encodes the specified ConsensusState message. Does not implicitly {@link ibc.lightclients.tendermint.v1.ConsensusState.verify|verify} messages. + * Encodes the specified ConsensusState message. Does not implicitly {@link ibc.lightclients.solomachine.v3.ConsensusState.verify|verify} messages. * @param message ConsensusState message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.lightclients.tendermint.v1.IConsensusState, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.lightclients.solomachine.v3.IConsensusState, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ConsensusState message, length delimited. Does not implicitly {@link ibc.lightclients.tendermint.v1.ConsensusState.verify|verify} messages. + * Encodes the specified ConsensusState message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v3.ConsensusState.verify|verify} messages. * @param message ConsensusState message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.lightclients.tendermint.v1.IConsensusState, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.lightclients.solomachine.v3.IConsensusState, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a ConsensusState message from the specified reader or buffer. @@ -29428,7 +32069,7 @@ export namespace ibc { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.lightclients.tendermint.v1.ConsensusState; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.lightclients.solomachine.v3.ConsensusState; /** * Decodes a ConsensusState message from the specified reader or buffer, length delimited. @@ -29437,7 +32078,7 @@ export namespace ibc { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.lightclients.tendermint.v1.ConsensusState; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.lightclients.solomachine.v3.ConsensusState; /** * Verifies a ConsensusState message. @@ -29451,7 +32092,7 @@ export namespace ibc { * @param object Plain object * @returns ConsensusState */ - public static fromObject(object: { [k: string]: any }): ibc.lightclients.tendermint.v1.ConsensusState; + public static fromObject(object: { [k: string]: any }): ibc.lightclients.solomachine.v3.ConsensusState; /** * Creates a plain object from a ConsensusState message. Also converts values to other types if specified. @@ -29459,7 +32100,7 @@ export namespace ibc { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.lightclients.tendermint.v1.ConsensusState, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.lightclients.solomachine.v3.ConsensusState, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this ConsensusState to JSON. @@ -29468,1654 +32109,1120 @@ export namespace ibc { public toJSON(): { [k: string]: any }; } - /** Properties of a Misbehaviour. */ - interface IMisbehaviour { + /** Properties of a Header. */ + interface IHeader { - /** Misbehaviour client_id */ - client_id?: (string|null); + /** Header timestamp */ + timestamp?: (Long|null); - /** Misbehaviour header_1 */ - header_1?: (ibc.lightclients.tendermint.v1.IHeader|null); + /** Header signature */ + signature?: (Uint8Array|null); - /** Misbehaviour header_2 */ - header_2?: (ibc.lightclients.tendermint.v1.IHeader|null); + /** Header new_public_key */ + new_public_key?: (google.protobuf.IAny|null); + + /** Header new_diversifier */ + new_diversifier?: (string|null); } - /** Represents a Misbehaviour. */ - class Misbehaviour implements IMisbehaviour { + /** Represents a Header. */ + class Header implements IHeader { /** - * Constructs a new Misbehaviour. + * Constructs a new Header. * @param [properties] Properties to set */ - constructor(properties?: ibc.lightclients.tendermint.v1.IMisbehaviour); + constructor(properties?: ibc.lightclients.solomachine.v3.IHeader); - /** Misbehaviour client_id. */ - public client_id: string; + /** Header timestamp. */ + public timestamp: Long; - /** Misbehaviour header_1. */ - public header_1?: (ibc.lightclients.tendermint.v1.IHeader|null); + /** Header signature. */ + public signature: Uint8Array; - /** Misbehaviour header_2. */ - public header_2?: (ibc.lightclients.tendermint.v1.IHeader|null); + /** Header new_public_key. */ + public new_public_key?: (google.protobuf.IAny|null); + + /** Header new_diversifier. */ + public new_diversifier: string; /** - * Encodes the specified Misbehaviour message. Does not implicitly {@link ibc.lightclients.tendermint.v1.Misbehaviour.verify|verify} messages. - * @param message Misbehaviour message or plain object to encode + * Encodes the specified Header message. Does not implicitly {@link ibc.lightclients.solomachine.v3.Header.verify|verify} messages. + * @param message Header message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.lightclients.tendermint.v1.IMisbehaviour, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.lightclients.solomachine.v3.IHeader, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Misbehaviour message, length delimited. Does not implicitly {@link ibc.lightclients.tendermint.v1.Misbehaviour.verify|verify} messages. - * @param message Misbehaviour message or plain object to encode + * Encodes the specified Header message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v3.Header.verify|verify} messages. + * @param message Header message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.lightclients.tendermint.v1.IMisbehaviour, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.lightclients.solomachine.v3.IHeader, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Misbehaviour message from the specified reader or buffer. + * Decodes a Header message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Misbehaviour + * @returns Header * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.lightclients.tendermint.v1.Misbehaviour; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.lightclients.solomachine.v3.Header; /** - * Decodes a Misbehaviour message from the specified reader or buffer, length delimited. + * Decodes a Header message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Misbehaviour + * @returns Header * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.lightclients.tendermint.v1.Misbehaviour; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.lightclients.solomachine.v3.Header; /** - * Verifies a Misbehaviour message. + * Verifies a Header message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a Misbehaviour message from a plain object. Also converts values to their respective internal types. + * Creates a Header message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Misbehaviour + * @returns Header */ - public static fromObject(object: { [k: string]: any }): ibc.lightclients.tendermint.v1.Misbehaviour; + public static fromObject(object: { [k: string]: any }): ibc.lightclients.solomachine.v3.Header; /** - * Creates a plain object from a Misbehaviour message. Also converts values to other types if specified. - * @param message Misbehaviour + * Creates a plain object from a Header message. Also converts values to other types if specified. + * @param message Header * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.lightclients.tendermint.v1.Misbehaviour, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.lightclients.solomachine.v3.Header, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Misbehaviour to JSON. + * Converts this Header to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a Header. */ - interface IHeader { - - /** Header signed_header */ - signed_header?: (tendermint.types.ISignedHeader|null); + /** Properties of a Misbehaviour. */ + interface IMisbehaviour { - /** Header validator_set */ - validator_set?: (tendermint.types.IValidatorSet|null); + /** Misbehaviour sequence */ + sequence?: (Long|null); - /** Header trusted_height */ - trusted_height?: (ibc.core.client.v1.IHeight|null); + /** Misbehaviour signature_one */ + signature_one?: (ibc.lightclients.solomachine.v3.ISignatureAndData|null); - /** Header trusted_validators */ - trusted_validators?: (tendermint.types.IValidatorSet|null); + /** Misbehaviour signature_two */ + signature_two?: (ibc.lightclients.solomachine.v3.ISignatureAndData|null); } - /** Represents a Header. */ - class Header implements IHeader { + /** Represents a Misbehaviour. */ + class Misbehaviour implements IMisbehaviour { /** - * Constructs a new Header. + * Constructs a new Misbehaviour. * @param [properties] Properties to set */ - constructor(properties?: ibc.lightclients.tendermint.v1.IHeader); - - /** Header signed_header. */ - public signed_header?: (tendermint.types.ISignedHeader|null); + constructor(properties?: ibc.lightclients.solomachine.v3.IMisbehaviour); - /** Header validator_set. */ - public validator_set?: (tendermint.types.IValidatorSet|null); + /** Misbehaviour sequence. */ + public sequence: Long; - /** Header trusted_height. */ - public trusted_height?: (ibc.core.client.v1.IHeight|null); + /** Misbehaviour signature_one. */ + public signature_one?: (ibc.lightclients.solomachine.v3.ISignatureAndData|null); - /** Header trusted_validators. */ - public trusted_validators?: (tendermint.types.IValidatorSet|null); + /** Misbehaviour signature_two. */ + public signature_two?: (ibc.lightclients.solomachine.v3.ISignatureAndData|null); /** - * Encodes the specified Header message. Does not implicitly {@link ibc.lightclients.tendermint.v1.Header.verify|verify} messages. - * @param message Header message or plain object to encode + * Encodes the specified Misbehaviour message. Does not implicitly {@link ibc.lightclients.solomachine.v3.Misbehaviour.verify|verify} messages. + * @param message Misbehaviour message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.lightclients.tendermint.v1.IHeader, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.lightclients.solomachine.v3.IMisbehaviour, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Header message, length delimited. Does not implicitly {@link ibc.lightclients.tendermint.v1.Header.verify|verify} messages. - * @param message Header message or plain object to encode + * Encodes the specified Misbehaviour message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v3.Misbehaviour.verify|verify} messages. + * @param message Misbehaviour message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.lightclients.tendermint.v1.IHeader, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.lightclients.solomachine.v3.IMisbehaviour, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Header message from the specified reader or buffer. + * Decodes a Misbehaviour message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Header + * @returns Misbehaviour * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.lightclients.tendermint.v1.Header; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.lightclients.solomachine.v3.Misbehaviour; /** - * Decodes a Header message from the specified reader or buffer, length delimited. + * Decodes a Misbehaviour message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Header + * @returns Misbehaviour * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.lightclients.tendermint.v1.Header; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.lightclients.solomachine.v3.Misbehaviour; /** - * Verifies a Header message. + * Verifies a Misbehaviour message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a Header message from a plain object. Also converts values to their respective internal types. + * Creates a Misbehaviour message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Header + * @returns Misbehaviour */ - public static fromObject(object: { [k: string]: any }): ibc.lightclients.tendermint.v1.Header; + public static fromObject(object: { [k: string]: any }): ibc.lightclients.solomachine.v3.Misbehaviour; /** - * Creates a plain object from a Header message. Also converts values to other types if specified. - * @param message Header + * Creates a plain object from a Misbehaviour message. Also converts values to other types if specified. + * @param message Misbehaviour * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.lightclients.tendermint.v1.Header, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.lightclients.solomachine.v3.Misbehaviour, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Header to JSON. + * Converts this Misbehaviour to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a Fraction. */ - interface IFraction { + /** Properties of a SignatureAndData. */ + interface ISignatureAndData { - /** Fraction numerator */ - numerator?: (Long|null); + /** SignatureAndData signature */ + signature?: (Uint8Array|null); - /** Fraction denominator */ - denominator?: (Long|null); + /** SignatureAndData path */ + path?: (Uint8Array|null); + + /** SignatureAndData data */ + data?: (Uint8Array|null); + + /** SignatureAndData timestamp */ + timestamp?: (Long|null); } - /** Represents a Fraction. */ - class Fraction implements IFraction { + /** Represents a SignatureAndData. */ + class SignatureAndData implements ISignatureAndData { /** - * Constructs a new Fraction. + * Constructs a new SignatureAndData. * @param [properties] Properties to set */ - constructor(properties?: ibc.lightclients.tendermint.v1.IFraction); + constructor(properties?: ibc.lightclients.solomachine.v3.ISignatureAndData); - /** Fraction numerator. */ - public numerator: Long; + /** SignatureAndData signature. */ + public signature: Uint8Array; - /** Fraction denominator. */ - public denominator: Long; + /** SignatureAndData path. */ + public path: Uint8Array; + + /** SignatureAndData data. */ + public data: Uint8Array; + + /** SignatureAndData timestamp. */ + public timestamp: Long; /** - * Encodes the specified Fraction message. Does not implicitly {@link ibc.lightclients.tendermint.v1.Fraction.verify|verify} messages. - * @param message Fraction message or plain object to encode + * Encodes the specified SignatureAndData message. Does not implicitly {@link ibc.lightclients.solomachine.v3.SignatureAndData.verify|verify} messages. + * @param message SignatureAndData message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ibc.lightclients.tendermint.v1.IFraction, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: ibc.lightclients.solomachine.v3.ISignatureAndData, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Fraction message, length delimited. Does not implicitly {@link ibc.lightclients.tendermint.v1.Fraction.verify|verify} messages. - * @param message Fraction message or plain object to encode + * Encodes the specified SignatureAndData message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v3.SignatureAndData.verify|verify} messages. + * @param message SignatureAndData message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ibc.lightclients.tendermint.v1.IFraction, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: ibc.lightclients.solomachine.v3.ISignatureAndData, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Fraction message from the specified reader or buffer. + * Decodes a SignatureAndData message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Fraction + * @returns SignatureAndData * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.lightclients.tendermint.v1.Fraction; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.lightclients.solomachine.v3.SignatureAndData; /** - * Decodes a Fraction message from the specified reader or buffer, length delimited. + * Decodes a SignatureAndData message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Fraction + * @returns SignatureAndData * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.lightclients.tendermint.v1.Fraction; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.lightclients.solomachine.v3.SignatureAndData; /** - * Verifies a Fraction message. + * Verifies a SignatureAndData message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a Fraction message from a plain object. Also converts values to their respective internal types. + * Creates a SignatureAndData message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Fraction + * @returns SignatureAndData */ - public static fromObject(object: { [k: string]: any }): ibc.lightclients.tendermint.v1.Fraction; + public static fromObject(object: { [k: string]: any }): ibc.lightclients.solomachine.v3.SignatureAndData; /** - * Creates a plain object from a Fraction message. Also converts values to other types if specified. - * @param message Fraction + * Creates a plain object from a SignatureAndData message. Also converts values to other types if specified. + * @param message SignatureAndData * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ibc.lightclients.tendermint.v1.Fraction, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: ibc.lightclients.solomachine.v3.SignatureAndData, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Fraction to JSON. + * Converts this SignatureAndData to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - } - } - } -} - -/** Namespace ics23. */ -export namespace ics23 { - - /** HashOp enum. */ - enum HashOp { - NO_HASH = 0, - SHA256 = 1, - SHA512 = 2, - KECCAK = 3, - RIPEMD160 = 4, - BITCOIN = 5 - } - - /** - * LengthOp defines how to process the key and value of the LeafOp - * to include length information. After encoding the length with the given - * algorithm, the length will be prepended to the key and value bytes. - * (Each one with it's own encoded length) - */ - enum LengthOp { - NO_PREFIX = 0, - VAR_PROTO = 1, - VAR_RLP = 2, - FIXED32_BIG = 3, - FIXED32_LITTLE = 4, - FIXED64_BIG = 5, - FIXED64_LITTLE = 6, - REQUIRE_32_BYTES = 7, - REQUIRE_64_BYTES = 8 - } - - /** Properties of an ExistenceProof. */ - interface IExistenceProof { - - /** ExistenceProof key */ - key?: (Uint8Array|null); - - /** ExistenceProof value */ - value?: (Uint8Array|null); - - /** ExistenceProof leaf */ - leaf?: (ics23.ILeafOp|null); - - /** ExistenceProof path */ - path?: (ics23.IInnerOp[]|null); - } - - /** - * ExistenceProof takes a key and a value and a set of steps to perform on it. - * The result of peforming all these steps will provide a "root hash", which can - * be compared to the value in a header. - * - * Since it is computationally infeasible to produce a hash collission for any of the used - * cryptographic hash functions, if someone can provide a series of operations to transform - * a given key and value into a root hash that matches some trusted root, these key and values - * must be in the referenced merkle tree. - * - * The only possible issue is maliablity in LeafOp, such as providing extra prefix data, - * which should be controlled by a spec. Eg. with lengthOp as NONE, - * prefix = FOO, key = BAR, value = CHOICE - * and - * prefix = F, key = OOBAR, value = CHOICE - * would produce the same value. - * - * With LengthOp this is tricker but not impossible. Which is why the "leafPrefixEqual" field - * in the ProofSpec is valuable to prevent this mutability. And why all trees should - * length-prefix the data before hashing it. - */ - class ExistenceProof implements IExistenceProof { - - /** - * Constructs a new ExistenceProof. - * @param [properties] Properties to set - */ - constructor(properties?: ics23.IExistenceProof); - /** ExistenceProof key. */ - public key: Uint8Array; - - /** ExistenceProof value. */ - public value: Uint8Array; - - /** ExistenceProof leaf. */ - public leaf?: (ics23.ILeafOp|null); - - /** ExistenceProof path. */ - public path: ics23.IInnerOp[]; - - /** - * Encodes the specified ExistenceProof message. Does not implicitly {@link ics23.ExistenceProof.verify|verify} messages. - * @param message ExistenceProof message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: ics23.IExistenceProof, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ExistenceProof message, length delimited. Does not implicitly {@link ics23.ExistenceProof.verify|verify} messages. - * @param message ExistenceProof message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: ics23.IExistenceProof, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ExistenceProof message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ExistenceProof - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ics23.ExistenceProof; - - /** - * Decodes an ExistenceProof message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ExistenceProof - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ics23.ExistenceProof; - - /** - * Verifies an ExistenceProof message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an ExistenceProof message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ExistenceProof - */ - public static fromObject(object: { [k: string]: any }): ics23.ExistenceProof; - - /** - * Creates a plain object from an ExistenceProof message. Also converts values to other types if specified. - * @param message ExistenceProof - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: ics23.ExistenceProof, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ExistenceProof to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a NonExistenceProof. */ - interface INonExistenceProof { - - /** NonExistenceProof key */ - key?: (Uint8Array|null); - - /** NonExistenceProof left */ - left?: (ics23.IExistenceProof|null); - - /** NonExistenceProof right */ - right?: (ics23.IExistenceProof|null); - } - - /** Represents a NonExistenceProof. */ - class NonExistenceProof implements INonExistenceProof { - - /** - * Constructs a new NonExistenceProof. - * @param [properties] Properties to set - */ - constructor(properties?: ics23.INonExistenceProof); - - /** NonExistenceProof key. */ - public key: Uint8Array; - - /** NonExistenceProof left. */ - public left?: (ics23.IExistenceProof|null); - - /** NonExistenceProof right. */ - public right?: (ics23.IExistenceProof|null); - - /** - * Encodes the specified NonExistenceProof message. Does not implicitly {@link ics23.NonExistenceProof.verify|verify} messages. - * @param message NonExistenceProof message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: ics23.INonExistenceProof, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified NonExistenceProof message, length delimited. Does not implicitly {@link ics23.NonExistenceProof.verify|verify} messages. - * @param message NonExistenceProof message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: ics23.INonExistenceProof, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a NonExistenceProof message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns NonExistenceProof - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ics23.NonExistenceProof; - - /** - * Decodes a NonExistenceProof message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns NonExistenceProof - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ics23.NonExistenceProof; - - /** - * Verifies a NonExistenceProof message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a NonExistenceProof message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns NonExistenceProof - */ - public static fromObject(object: { [k: string]: any }): ics23.NonExistenceProof; - - /** - * Creates a plain object from a NonExistenceProof message. Also converts values to other types if specified. - * @param message NonExistenceProof - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: ics23.NonExistenceProof, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this NonExistenceProof to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a CommitmentProof. */ - interface ICommitmentProof { - - /** CommitmentProof exist */ - exist?: (ics23.IExistenceProof|null); - - /** CommitmentProof nonexist */ - nonexist?: (ics23.INonExistenceProof|null); - - /** CommitmentProof batch */ - batch?: (ics23.IBatchProof|null); - - /** CommitmentProof compressed */ - compressed?: (ics23.ICompressedBatchProof|null); - } - - /** Represents a CommitmentProof. */ - class CommitmentProof implements ICommitmentProof { - - /** - * Constructs a new CommitmentProof. - * @param [properties] Properties to set - */ - constructor(properties?: ics23.ICommitmentProof); - - /** CommitmentProof exist. */ - public exist?: (ics23.IExistenceProof|null); - - /** CommitmentProof nonexist. */ - public nonexist?: (ics23.INonExistenceProof|null); - - /** CommitmentProof batch. */ - public batch?: (ics23.IBatchProof|null); - - /** CommitmentProof compressed. */ - public compressed?: (ics23.ICompressedBatchProof|null); - - /** CommitmentProof proof. */ - public proof?: ("exist"|"nonexist"|"batch"|"compressed"); - - /** - * Encodes the specified CommitmentProof message. Does not implicitly {@link ics23.CommitmentProof.verify|verify} messages. - * @param message CommitmentProof message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: ics23.ICommitmentProof, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified CommitmentProof message, length delimited. Does not implicitly {@link ics23.CommitmentProof.verify|verify} messages. - * @param message CommitmentProof message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: ics23.ICommitmentProof, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a CommitmentProof message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CommitmentProof - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ics23.CommitmentProof; - - /** - * Decodes a CommitmentProof message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CommitmentProof - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ics23.CommitmentProof; - - /** - * Verifies a CommitmentProof message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a CommitmentProof message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CommitmentProof - */ - public static fromObject(object: { [k: string]: any }): ics23.CommitmentProof; - - /** - * Creates a plain object from a CommitmentProof message. Also converts values to other types if specified. - * @param message CommitmentProof - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: ics23.CommitmentProof, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this CommitmentProof to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a LeafOp. */ - interface ILeafOp { - - /** LeafOp hash */ - hash?: (ics23.HashOp|null); - - /** LeafOp prehash_key */ - prehash_key?: (ics23.HashOp|null); - - /** LeafOp prehash_value */ - prehash_value?: (ics23.HashOp|null); - - /** LeafOp length */ - length?: (ics23.LengthOp|null); - - /** LeafOp prefix */ - prefix?: (Uint8Array|null); - } - - /** - * LeafOp represents the raw key-value data we wish to prove, and - * must be flexible to represent the internal transformation from - * the original key-value pairs into the basis hash, for many existing - * merkle trees. - * - * key and value are passed in. So that the signature of this operation is: - * leafOp(key, value) -> output - * - * To process this, first prehash the keys and values if needed (ANY means no hash in this case): - * hkey = prehashKey(key) - * hvalue = prehashValue(value) - * - * Then combine the bytes, and hash it - * output = hash(prefix || length(hkey) || hkey || length(hvalue) || hvalue) - */ - class LeafOp implements ILeafOp { - - /** - * Constructs a new LeafOp. - * @param [properties] Properties to set - */ - constructor(properties?: ics23.ILeafOp); - - /** LeafOp hash. */ - public hash: ics23.HashOp; - - /** LeafOp prehash_key. */ - public prehash_key: ics23.HashOp; - - /** LeafOp prehash_value. */ - public prehash_value: ics23.HashOp; - - /** LeafOp length. */ - public length: ics23.LengthOp; - - /** LeafOp prefix. */ - public prefix: Uint8Array; - - /** - * Encodes the specified LeafOp message. Does not implicitly {@link ics23.LeafOp.verify|verify} messages. - * @param message LeafOp message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: ics23.ILeafOp, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified LeafOp message, length delimited. Does not implicitly {@link ics23.LeafOp.verify|verify} messages. - * @param message LeafOp message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: ics23.ILeafOp, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a LeafOp message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns LeafOp - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ics23.LeafOp; - - /** - * Decodes a LeafOp message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns LeafOp - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ics23.LeafOp; - - /** - * Verifies a LeafOp message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a LeafOp message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns LeafOp - */ - public static fromObject(object: { [k: string]: any }): ics23.LeafOp; - - /** - * Creates a plain object from a LeafOp message. Also converts values to other types if specified. - * @param message LeafOp - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: ics23.LeafOp, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this LeafOp to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of an InnerOp. */ - interface IInnerOp { - - /** InnerOp hash */ - hash?: (ics23.HashOp|null); - - /** InnerOp prefix */ - prefix?: (Uint8Array|null); + /** Properties of a TimestampedSignatureData. */ + interface ITimestampedSignatureData { - /** InnerOp suffix */ - suffix?: (Uint8Array|null); - } + /** TimestampedSignatureData signature_data */ + signature_data?: (Uint8Array|null); - /** - * InnerOp represents a merkle-proof step that is not a leaf. - * It represents concatenating two children and hashing them to provide the next result. - * - * The result of the previous step is passed in, so the signature of this op is: - * innerOp(child) -> output - * - * The result of applying InnerOp should be: - * output = op.hash(op.prefix || child || op.suffix) - * - * where the || operator is concatenation of binary data, - * and child is the result of hashing all the tree below this step. - * - * Any special data, like prepending child with the length, or prepending the entire operation with - * some value to differentiate from leaf nodes, should be included in prefix and suffix. - * If either of prefix or suffix is empty, we just treat it as an empty string - */ - class InnerOp implements IInnerOp { + /** TimestampedSignatureData timestamp */ + timestamp?: (Long|null); + } - /** - * Constructs a new InnerOp. - * @param [properties] Properties to set - */ - constructor(properties?: ics23.IInnerOp); + /** Represents a TimestampedSignatureData. */ + class TimestampedSignatureData implements ITimestampedSignatureData { - /** InnerOp hash. */ - public hash: ics23.HashOp; + /** + * Constructs a new TimestampedSignatureData. + * @param [properties] Properties to set + */ + constructor(properties?: ibc.lightclients.solomachine.v3.ITimestampedSignatureData); - /** InnerOp prefix. */ - public prefix: Uint8Array; + /** TimestampedSignatureData signature_data. */ + public signature_data: Uint8Array; - /** InnerOp suffix. */ - public suffix: Uint8Array; + /** TimestampedSignatureData timestamp. */ + public timestamp: Long; - /** - * Encodes the specified InnerOp message. Does not implicitly {@link ics23.InnerOp.verify|verify} messages. - * @param message InnerOp message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: ics23.IInnerOp, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified TimestampedSignatureData message. Does not implicitly {@link ibc.lightclients.solomachine.v3.TimestampedSignatureData.verify|verify} messages. + * @param message TimestampedSignatureData message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: ibc.lightclients.solomachine.v3.ITimestampedSignatureData, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified InnerOp message, length delimited. Does not implicitly {@link ics23.InnerOp.verify|verify} messages. - * @param message InnerOp message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: ics23.IInnerOp, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified TimestampedSignatureData message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v3.TimestampedSignatureData.verify|verify} messages. + * @param message TimestampedSignatureData message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: ibc.lightclients.solomachine.v3.ITimestampedSignatureData, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes an InnerOp message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns InnerOp - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ics23.InnerOp; + /** + * Decodes a TimestampedSignatureData message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TimestampedSignatureData + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.lightclients.solomachine.v3.TimestampedSignatureData; - /** - * Decodes an InnerOp message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns InnerOp - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ics23.InnerOp; + /** + * Decodes a TimestampedSignatureData message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TimestampedSignatureData + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.lightclients.solomachine.v3.TimestampedSignatureData; - /** - * Verifies an InnerOp message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Verifies a TimestampedSignatureData message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Creates an InnerOp message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns InnerOp - */ - public static fromObject(object: { [k: string]: any }): ics23.InnerOp; + /** + * Creates a TimestampedSignatureData message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TimestampedSignatureData + */ + public static fromObject(object: { [k: string]: any }): ibc.lightclients.solomachine.v3.TimestampedSignatureData; - /** - * Creates a plain object from an InnerOp message. Also converts values to other types if specified. - * @param message InnerOp - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: ics23.InnerOp, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a plain object from a TimestampedSignatureData message. Also converts values to other types if specified. + * @param message TimestampedSignatureData + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: ibc.lightclients.solomachine.v3.TimestampedSignatureData, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Converts this InnerOp to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * Converts this TimestampedSignatureData to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** Properties of a ProofSpec. */ - interface IProofSpec { + /** Properties of a SignBytes. */ + interface ISignBytes { - /** ProofSpec leaf_spec */ - leaf_spec?: (ics23.ILeafOp|null); + /** SignBytes sequence */ + sequence?: (Long|null); - /** ProofSpec inner_spec */ - inner_spec?: (ics23.IInnerSpec|null); + /** SignBytes timestamp */ + timestamp?: (Long|null); - /** ProofSpec max_depth */ - max_depth?: (number|null); + /** SignBytes diversifier */ + diversifier?: (string|null); - /** ProofSpec min_depth */ - min_depth?: (number|null); - } + /** SignBytes path */ + path?: (Uint8Array|null); - /** - * ProofSpec defines what the expected parameters are for a given proof type. - * This can be stored in the client and used to validate any incoming proofs. - * - * verify(ProofSpec, Proof) -> Proof | Error - * - * As demonstrated in tests, if we don't fix the algorithm used to calculate the - * LeafHash for a given tree, there are many possible key-value pairs that can - * generate a given hash (by interpretting the preimage differently). - * We need this for proper security, requires client knows a priori what - * tree format server uses. But not in code, rather a configuration object. - */ - class ProofSpec implements IProofSpec { + /** SignBytes data */ + data?: (Uint8Array|null); + } - /** - * Constructs a new ProofSpec. - * @param [properties] Properties to set - */ - constructor(properties?: ics23.IProofSpec); + /** Represents a SignBytes. */ + class SignBytes implements ISignBytes { - /** ProofSpec leaf_spec. */ - public leaf_spec?: (ics23.ILeafOp|null); + /** + * Constructs a new SignBytes. + * @param [properties] Properties to set + */ + constructor(properties?: ibc.lightclients.solomachine.v3.ISignBytes); - /** ProofSpec inner_spec. */ - public inner_spec?: (ics23.IInnerSpec|null); + /** SignBytes sequence. */ + public sequence: Long; - /** ProofSpec max_depth. */ - public max_depth: number; + /** SignBytes timestamp. */ + public timestamp: Long; - /** ProofSpec min_depth. */ - public min_depth: number; + /** SignBytes diversifier. */ + public diversifier: string; - /** - * Encodes the specified ProofSpec message. Does not implicitly {@link ics23.ProofSpec.verify|verify} messages. - * @param message ProofSpec message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: ics23.IProofSpec, writer?: $protobuf.Writer): $protobuf.Writer; + /** SignBytes path. */ + public path: Uint8Array; - /** - * Encodes the specified ProofSpec message, length delimited. Does not implicitly {@link ics23.ProofSpec.verify|verify} messages. - * @param message ProofSpec message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: ics23.IProofSpec, writer?: $protobuf.Writer): $protobuf.Writer; + /** SignBytes data. */ + public data: Uint8Array; - /** - * Decodes a ProofSpec message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ProofSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ics23.ProofSpec; + /** + * Encodes the specified SignBytes message. Does not implicitly {@link ibc.lightclients.solomachine.v3.SignBytes.verify|verify} messages. + * @param message SignBytes message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: ibc.lightclients.solomachine.v3.ISignBytes, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a ProofSpec message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ProofSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ics23.ProofSpec; + /** + * Encodes the specified SignBytes message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v3.SignBytes.verify|verify} messages. + * @param message SignBytes message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: ibc.lightclients.solomachine.v3.ISignBytes, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Verifies a ProofSpec message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Decodes a SignBytes message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SignBytes + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.lightclients.solomachine.v3.SignBytes; - /** - * Creates a ProofSpec message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ProofSpec - */ - public static fromObject(object: { [k: string]: any }): ics23.ProofSpec; + /** + * Decodes a SignBytes message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SignBytes + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.lightclients.solomachine.v3.SignBytes; - /** - * Creates a plain object from a ProofSpec message. Also converts values to other types if specified. - * @param message ProofSpec - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: ics23.ProofSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Verifies a SignBytes message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Converts this ProofSpec to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * Creates a SignBytes message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SignBytes + */ + public static fromObject(object: { [k: string]: any }): ibc.lightclients.solomachine.v3.SignBytes; - /** Properties of an InnerSpec. */ - interface IInnerSpec { + /** + * Creates a plain object from a SignBytes message. Also converts values to other types if specified. + * @param message SignBytes + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: ibc.lightclients.solomachine.v3.SignBytes, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** InnerSpec child_order */ - child_order?: (number[]|null); + /** + * Converts this SignBytes to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** InnerSpec child_size */ - child_size?: (number|null); + /** Properties of a HeaderData. */ + interface IHeaderData { - /** InnerSpec min_prefix_length */ - min_prefix_length?: (number|null); + /** HeaderData new_pub_key */ + new_pub_key?: (google.protobuf.IAny|null); - /** InnerSpec max_prefix_length */ - max_prefix_length?: (number|null); + /** HeaderData new_diversifier */ + new_diversifier?: (string|null); + } - /** InnerSpec empty_child */ - empty_child?: (Uint8Array|null); + /** Represents a HeaderData. */ + class HeaderData implements IHeaderData { - /** InnerSpec hash */ - hash?: (ics23.HashOp|null); - } + /** + * Constructs a new HeaderData. + * @param [properties] Properties to set + */ + constructor(properties?: ibc.lightclients.solomachine.v3.IHeaderData); - /** Represents an InnerSpec. */ - class InnerSpec implements IInnerSpec { + /** HeaderData new_pub_key. */ + public new_pub_key?: (google.protobuf.IAny|null); - /** - * Constructs a new InnerSpec. - * @param [properties] Properties to set - */ - constructor(properties?: ics23.IInnerSpec); + /** HeaderData new_diversifier. */ + public new_diversifier: string; - /** InnerSpec child_order. */ - public child_order: number[]; + /** + * Encodes the specified HeaderData message. Does not implicitly {@link ibc.lightclients.solomachine.v3.HeaderData.verify|verify} messages. + * @param message HeaderData message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: ibc.lightclients.solomachine.v3.IHeaderData, writer?: $protobuf.Writer): $protobuf.Writer; - /** InnerSpec child_size. */ - public child_size: number; + /** + * Encodes the specified HeaderData message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v3.HeaderData.verify|verify} messages. + * @param message HeaderData message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: ibc.lightclients.solomachine.v3.IHeaderData, writer?: $protobuf.Writer): $protobuf.Writer; - /** InnerSpec min_prefix_length. */ - public min_prefix_length: number; + /** + * Decodes a HeaderData message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns HeaderData + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.lightclients.solomachine.v3.HeaderData; - /** InnerSpec max_prefix_length. */ - public max_prefix_length: number; + /** + * Decodes a HeaderData message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns HeaderData + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.lightclients.solomachine.v3.HeaderData; - /** InnerSpec empty_child. */ - public empty_child: Uint8Array; + /** + * Verifies a HeaderData message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** InnerSpec hash. */ - public hash: ics23.HashOp; + /** + * Creates a HeaderData message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns HeaderData + */ + public static fromObject(object: { [k: string]: any }): ibc.lightclients.solomachine.v3.HeaderData; - /** - * Encodes the specified InnerSpec message. Does not implicitly {@link ics23.InnerSpec.verify|verify} messages. - * @param message InnerSpec message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: ics23.IInnerSpec, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a plain object from a HeaderData message. Also converts values to other types if specified. + * @param message HeaderData + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: ibc.lightclients.solomachine.v3.HeaderData, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Encodes the specified InnerSpec message, length delimited. Does not implicitly {@link ics23.InnerSpec.verify|verify} messages. - * @param message InnerSpec message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: ics23.IInnerSpec, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Converts this HeaderData to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } + } - /** - * Decodes an InnerSpec message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns InnerSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ics23.InnerSpec; + /** Namespace tendermint. */ + namespace tendermint { - /** - * Decodes an InnerSpec message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns InnerSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ics23.InnerSpec; + /** Namespace v1. */ + namespace v1 { - /** - * Verifies an InnerSpec message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** Properties of a ClientState. */ + interface IClientState { - /** - * Creates an InnerSpec message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns InnerSpec - */ - public static fromObject(object: { [k: string]: any }): ics23.InnerSpec; + /** ClientState chain_id */ + chain_id?: (string|null); - /** - * Creates a plain object from an InnerSpec message. Also converts values to other types if specified. - * @param message InnerSpec - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: ics23.InnerSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** ClientState trust_level */ + trust_level?: (ibc.lightclients.tendermint.v1.IFraction|null); - /** - * Converts this InnerSpec to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** ClientState trusting_period */ + trusting_period?: (google.protobuf.IDuration|null); - /** Properties of a BatchProof. */ - interface IBatchProof { + /** ClientState unbonding_period */ + unbonding_period?: (google.protobuf.IDuration|null); - /** BatchProof entries */ - entries?: (ics23.IBatchEntry[]|null); - } + /** ClientState max_clock_drift */ + max_clock_drift?: (google.protobuf.IDuration|null); - /** Represents a BatchProof. */ - class BatchProof implements IBatchProof { + /** ClientState frozen_height */ + frozen_height?: (ibc.core.client.v1.IHeight|null); - /** - * Constructs a new BatchProof. - * @param [properties] Properties to set - */ - constructor(properties?: ics23.IBatchProof); + /** ClientState latest_height */ + latest_height?: (ibc.core.client.v1.IHeight|null); - /** BatchProof entries. */ - public entries: ics23.IBatchEntry[]; + /** ClientState proof_specs */ + proof_specs?: (cosmos.ics23.v1.IProofSpec[]|null); - /** - * Encodes the specified BatchProof message. Does not implicitly {@link ics23.BatchProof.verify|verify} messages. - * @param message BatchProof message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: ics23.IBatchProof, writer?: $protobuf.Writer): $protobuf.Writer; + /** ClientState upgrade_path */ + upgrade_path?: (string[]|null); - /** - * Encodes the specified BatchProof message, length delimited. Does not implicitly {@link ics23.BatchProof.verify|verify} messages. - * @param message BatchProof message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: ics23.IBatchProof, writer?: $protobuf.Writer): $protobuf.Writer; + /** ClientState allow_update_after_expiry */ + allow_update_after_expiry?: (boolean|null); - /** - * Decodes a BatchProof message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns BatchProof - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ics23.BatchProof; + /** ClientState allow_update_after_misbehaviour */ + allow_update_after_misbehaviour?: (boolean|null); + } - /** - * Decodes a BatchProof message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns BatchProof - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ics23.BatchProof; + /** Represents a ClientState. */ + class ClientState implements IClientState { - /** - * Verifies a BatchProof message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Constructs a new ClientState. + * @param [properties] Properties to set + */ + constructor(properties?: ibc.lightclients.tendermint.v1.IClientState); - /** - * Creates a BatchProof message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns BatchProof - */ - public static fromObject(object: { [k: string]: any }): ics23.BatchProof; + /** ClientState chain_id. */ + public chain_id: string; - /** - * Creates a plain object from a BatchProof message. Also converts values to other types if specified. - * @param message BatchProof - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: ics23.BatchProof, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** ClientState trust_level. */ + public trust_level?: (ibc.lightclients.tendermint.v1.IFraction|null); - /** - * Converts this BatchProof to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** ClientState trusting_period. */ + public trusting_period?: (google.protobuf.IDuration|null); - /** Properties of a BatchEntry. */ - interface IBatchEntry { + /** ClientState unbonding_period. */ + public unbonding_period?: (google.protobuf.IDuration|null); + + /** ClientState max_clock_drift. */ + public max_clock_drift?: (google.protobuf.IDuration|null); - /** BatchEntry exist */ - exist?: (ics23.IExistenceProof|null); + /** ClientState frozen_height. */ + public frozen_height?: (ibc.core.client.v1.IHeight|null); - /** BatchEntry nonexist */ - nonexist?: (ics23.INonExistenceProof|null); - } + /** ClientState latest_height. */ + public latest_height?: (ibc.core.client.v1.IHeight|null); - /** Represents a BatchEntry. */ - class BatchEntry implements IBatchEntry { + /** ClientState proof_specs. */ + public proof_specs: cosmos.ics23.v1.IProofSpec[]; - /** - * Constructs a new BatchEntry. - * @param [properties] Properties to set - */ - constructor(properties?: ics23.IBatchEntry); + /** ClientState upgrade_path. */ + public upgrade_path: string[]; - /** BatchEntry exist. */ - public exist?: (ics23.IExistenceProof|null); + /** ClientState allow_update_after_expiry. */ + public allow_update_after_expiry: boolean; - /** BatchEntry nonexist. */ - public nonexist?: (ics23.INonExistenceProof|null); + /** ClientState allow_update_after_misbehaviour. */ + public allow_update_after_misbehaviour: boolean; - /** BatchEntry proof. */ - public proof?: ("exist"|"nonexist"); + /** + * Encodes the specified ClientState message. Does not implicitly {@link ibc.lightclients.tendermint.v1.ClientState.verify|verify} messages. + * @param message ClientState message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: ibc.lightclients.tendermint.v1.IClientState, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified BatchEntry message. Does not implicitly {@link ics23.BatchEntry.verify|verify} messages. - * @param message BatchEntry message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: ics23.IBatchEntry, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified ClientState message, length delimited. Does not implicitly {@link ibc.lightclients.tendermint.v1.ClientState.verify|verify} messages. + * @param message ClientState message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: ibc.lightclients.tendermint.v1.IClientState, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified BatchEntry message, length delimited. Does not implicitly {@link ics23.BatchEntry.verify|verify} messages. - * @param message BatchEntry message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: ics23.IBatchEntry, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a ClientState message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ClientState + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.lightclients.tendermint.v1.ClientState; - /** - * Decodes a BatchEntry message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns BatchEntry - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ics23.BatchEntry; + /** + * Decodes a ClientState message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ClientState + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.lightclients.tendermint.v1.ClientState; - /** - * Decodes a BatchEntry message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns BatchEntry - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ics23.BatchEntry; + /** + * Verifies a ClientState message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Verifies a BatchEntry message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Creates a ClientState message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ClientState + */ + public static fromObject(object: { [k: string]: any }): ibc.lightclients.tendermint.v1.ClientState; - /** - * Creates a BatchEntry message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns BatchEntry - */ - public static fromObject(object: { [k: string]: any }): ics23.BatchEntry; + /** + * Creates a plain object from a ClientState message. Also converts values to other types if specified. + * @param message ClientState + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: ibc.lightclients.tendermint.v1.ClientState, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Creates a plain object from a BatchEntry message. Also converts values to other types if specified. - * @param message BatchEntry - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: ics23.BatchEntry, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Converts this ClientState to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** - * Converts this BatchEntry to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** Properties of a ConsensusState. */ + interface IConsensusState { - /** Properties of a CompressedBatchProof. */ - interface ICompressedBatchProof { + /** ConsensusState timestamp */ + timestamp?: (google.protobuf.ITimestamp|null); - /** CompressedBatchProof entries */ - entries?: (ics23.ICompressedBatchEntry[]|null); + /** ConsensusState root */ + root?: (ibc.core.commitment.v1.IMerkleRoot|null); - /** CompressedBatchProof lookup_inners */ - lookup_inners?: (ics23.IInnerOp[]|null); - } + /** ConsensusState next_validators_hash */ + next_validators_hash?: (Uint8Array|null); + } - /** Represents a CompressedBatchProof. */ - class CompressedBatchProof implements ICompressedBatchProof { + /** Represents a ConsensusState. */ + class ConsensusState implements IConsensusState { - /** - * Constructs a new CompressedBatchProof. - * @param [properties] Properties to set - */ - constructor(properties?: ics23.ICompressedBatchProof); + /** + * Constructs a new ConsensusState. + * @param [properties] Properties to set + */ + constructor(properties?: ibc.lightclients.tendermint.v1.IConsensusState); - /** CompressedBatchProof entries. */ - public entries: ics23.ICompressedBatchEntry[]; + /** ConsensusState timestamp. */ + public timestamp?: (google.protobuf.ITimestamp|null); - /** CompressedBatchProof lookup_inners. */ - public lookup_inners: ics23.IInnerOp[]; + /** ConsensusState root. */ + public root?: (ibc.core.commitment.v1.IMerkleRoot|null); - /** - * Encodes the specified CompressedBatchProof message. Does not implicitly {@link ics23.CompressedBatchProof.verify|verify} messages. - * @param message CompressedBatchProof message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: ics23.ICompressedBatchProof, writer?: $protobuf.Writer): $protobuf.Writer; + /** ConsensusState next_validators_hash. */ + public next_validators_hash: Uint8Array; - /** - * Encodes the specified CompressedBatchProof message, length delimited. Does not implicitly {@link ics23.CompressedBatchProof.verify|verify} messages. - * @param message CompressedBatchProof message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: ics23.ICompressedBatchProof, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified ConsensusState message. Does not implicitly {@link ibc.lightclients.tendermint.v1.ConsensusState.verify|verify} messages. + * @param message ConsensusState message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: ibc.lightclients.tendermint.v1.IConsensusState, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a CompressedBatchProof message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CompressedBatchProof - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ics23.CompressedBatchProof; + /** + * Encodes the specified ConsensusState message, length delimited. Does not implicitly {@link ibc.lightclients.tendermint.v1.ConsensusState.verify|verify} messages. + * @param message ConsensusState message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: ibc.lightclients.tendermint.v1.IConsensusState, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a CompressedBatchProof message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CompressedBatchProof - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ics23.CompressedBatchProof; + /** + * Decodes a ConsensusState message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ConsensusState + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.lightclients.tendermint.v1.ConsensusState; - /** - * Verifies a CompressedBatchProof message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Decodes a ConsensusState message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ConsensusState + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.lightclients.tendermint.v1.ConsensusState; - /** - * Creates a CompressedBatchProof message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CompressedBatchProof - */ - public static fromObject(object: { [k: string]: any }): ics23.CompressedBatchProof; + /** + * Verifies a ConsensusState message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Creates a plain object from a CompressedBatchProof message. Also converts values to other types if specified. - * @param message CompressedBatchProof - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: ics23.CompressedBatchProof, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a ConsensusState message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ConsensusState + */ + public static fromObject(object: { [k: string]: any }): ibc.lightclients.tendermint.v1.ConsensusState; - /** - * Converts this CompressedBatchProof to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * Creates a plain object from a ConsensusState message. Also converts values to other types if specified. + * @param message ConsensusState + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: ibc.lightclients.tendermint.v1.ConsensusState, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Properties of a CompressedBatchEntry. */ - interface ICompressedBatchEntry { + /** + * Converts this ConsensusState to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** CompressedBatchEntry exist */ - exist?: (ics23.ICompressedExistenceProof|null); + /** Properties of a Misbehaviour. */ + interface IMisbehaviour { - /** CompressedBatchEntry nonexist */ - nonexist?: (ics23.ICompressedNonExistenceProof|null); - } + /** Misbehaviour client_id */ + client_id?: (string|null); - /** Represents a CompressedBatchEntry. */ - class CompressedBatchEntry implements ICompressedBatchEntry { + /** Misbehaviour header_1 */ + header_1?: (ibc.lightclients.tendermint.v1.IHeader|null); - /** - * Constructs a new CompressedBatchEntry. - * @param [properties] Properties to set - */ - constructor(properties?: ics23.ICompressedBatchEntry); + /** Misbehaviour header_2 */ + header_2?: (ibc.lightclients.tendermint.v1.IHeader|null); + } - /** CompressedBatchEntry exist. */ - public exist?: (ics23.ICompressedExistenceProof|null); + /** Represents a Misbehaviour. */ + class Misbehaviour implements IMisbehaviour { - /** CompressedBatchEntry nonexist. */ - public nonexist?: (ics23.ICompressedNonExistenceProof|null); + /** + * Constructs a new Misbehaviour. + * @param [properties] Properties to set + */ + constructor(properties?: ibc.lightclients.tendermint.v1.IMisbehaviour); - /** CompressedBatchEntry proof. */ - public proof?: ("exist"|"nonexist"); + /** Misbehaviour client_id. */ + public client_id: string; - /** - * Encodes the specified CompressedBatchEntry message. Does not implicitly {@link ics23.CompressedBatchEntry.verify|verify} messages. - * @param message CompressedBatchEntry message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: ics23.ICompressedBatchEntry, writer?: $protobuf.Writer): $protobuf.Writer; + /** Misbehaviour header_1. */ + public header_1?: (ibc.lightclients.tendermint.v1.IHeader|null); - /** - * Encodes the specified CompressedBatchEntry message, length delimited. Does not implicitly {@link ics23.CompressedBatchEntry.verify|verify} messages. - * @param message CompressedBatchEntry message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: ics23.ICompressedBatchEntry, writer?: $protobuf.Writer): $protobuf.Writer; + /** Misbehaviour header_2. */ + public header_2?: (ibc.lightclients.tendermint.v1.IHeader|null); - /** - * Decodes a CompressedBatchEntry message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CompressedBatchEntry - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ics23.CompressedBatchEntry; + /** + * Encodes the specified Misbehaviour message. Does not implicitly {@link ibc.lightclients.tendermint.v1.Misbehaviour.verify|verify} messages. + * @param message Misbehaviour message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: ibc.lightclients.tendermint.v1.IMisbehaviour, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a CompressedBatchEntry message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CompressedBatchEntry - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ics23.CompressedBatchEntry; + /** + * Encodes the specified Misbehaviour message, length delimited. Does not implicitly {@link ibc.lightclients.tendermint.v1.Misbehaviour.verify|verify} messages. + * @param message Misbehaviour message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: ibc.lightclients.tendermint.v1.IMisbehaviour, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Verifies a CompressedBatchEntry message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Decodes a Misbehaviour message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Misbehaviour + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.lightclients.tendermint.v1.Misbehaviour; - /** - * Creates a CompressedBatchEntry message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CompressedBatchEntry - */ - public static fromObject(object: { [k: string]: any }): ics23.CompressedBatchEntry; + /** + * Decodes a Misbehaviour message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Misbehaviour + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.lightclients.tendermint.v1.Misbehaviour; - /** - * Creates a plain object from a CompressedBatchEntry message. Also converts values to other types if specified. - * @param message CompressedBatchEntry - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: ics23.CompressedBatchEntry, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Verifies a Misbehaviour message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Converts this CompressedBatchEntry to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * Creates a Misbehaviour message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Misbehaviour + */ + public static fromObject(object: { [k: string]: any }): ibc.lightclients.tendermint.v1.Misbehaviour; - /** Properties of a CompressedExistenceProof. */ - interface ICompressedExistenceProof { + /** + * Creates a plain object from a Misbehaviour message. Also converts values to other types if specified. + * @param message Misbehaviour + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: ibc.lightclients.tendermint.v1.Misbehaviour, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** CompressedExistenceProof key */ - key?: (Uint8Array|null); + /** + * Converts this Misbehaviour to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** CompressedExistenceProof value */ - value?: (Uint8Array|null); + /** Properties of a Header. */ + interface IHeader { - /** CompressedExistenceProof leaf */ - leaf?: (ics23.ILeafOp|null); + /** Header signed_header */ + signed_header?: (tendermint.types.ISignedHeader|null); - /** CompressedExistenceProof path */ - path?: (number[]|null); - } + /** Header validator_set */ + validator_set?: (tendermint.types.IValidatorSet|null); - /** Represents a CompressedExistenceProof. */ - class CompressedExistenceProof implements ICompressedExistenceProof { + /** Header trusted_height */ + trusted_height?: (ibc.core.client.v1.IHeight|null); - /** - * Constructs a new CompressedExistenceProof. - * @param [properties] Properties to set - */ - constructor(properties?: ics23.ICompressedExistenceProof); + /** Header trusted_validators */ + trusted_validators?: (tendermint.types.IValidatorSet|null); + } - /** CompressedExistenceProof key. */ - public key: Uint8Array; + /** Represents a Header. */ + class Header implements IHeader { - /** CompressedExistenceProof value. */ - public value: Uint8Array; + /** + * Constructs a new Header. + * @param [properties] Properties to set + */ + constructor(properties?: ibc.lightclients.tendermint.v1.IHeader); - /** CompressedExistenceProof leaf. */ - public leaf?: (ics23.ILeafOp|null); + /** Header signed_header. */ + public signed_header?: (tendermint.types.ISignedHeader|null); - /** CompressedExistenceProof path. */ - public path: number[]; + /** Header validator_set. */ + public validator_set?: (tendermint.types.IValidatorSet|null); - /** - * Encodes the specified CompressedExistenceProof message. Does not implicitly {@link ics23.CompressedExistenceProof.verify|verify} messages. - * @param message CompressedExistenceProof message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: ics23.ICompressedExistenceProof, writer?: $protobuf.Writer): $protobuf.Writer; + /** Header trusted_height. */ + public trusted_height?: (ibc.core.client.v1.IHeight|null); - /** - * Encodes the specified CompressedExistenceProof message, length delimited. Does not implicitly {@link ics23.CompressedExistenceProof.verify|verify} messages. - * @param message CompressedExistenceProof message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: ics23.ICompressedExistenceProof, writer?: $protobuf.Writer): $protobuf.Writer; + /** Header trusted_validators. */ + public trusted_validators?: (tendermint.types.IValidatorSet|null); - /** - * Decodes a CompressedExistenceProof message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CompressedExistenceProof - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ics23.CompressedExistenceProof; + /** + * Encodes the specified Header message. Does not implicitly {@link ibc.lightclients.tendermint.v1.Header.verify|verify} messages. + * @param message Header message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: ibc.lightclients.tendermint.v1.IHeader, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a CompressedExistenceProof message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CompressedExistenceProof - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ics23.CompressedExistenceProof; + /** + * Encodes the specified Header message, length delimited. Does not implicitly {@link ibc.lightclients.tendermint.v1.Header.verify|verify} messages. + * @param message Header message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: ibc.lightclients.tendermint.v1.IHeader, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Verifies a CompressedExistenceProof message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Decodes a Header message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Header + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.lightclients.tendermint.v1.Header; - /** - * Creates a CompressedExistenceProof message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CompressedExistenceProof - */ - public static fromObject(object: { [k: string]: any }): ics23.CompressedExistenceProof; + /** + * Decodes a Header message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Header + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.lightclients.tendermint.v1.Header; - /** - * Creates a plain object from a CompressedExistenceProof message. Also converts values to other types if specified. - * @param message CompressedExistenceProof - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: ics23.CompressedExistenceProof, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Verifies a Header message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Converts this CompressedExistenceProof to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * Creates a Header message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Header + */ + public static fromObject(object: { [k: string]: any }): ibc.lightclients.tendermint.v1.Header; - /** Properties of a CompressedNonExistenceProof. */ - interface ICompressedNonExistenceProof { + /** + * Creates a plain object from a Header message. Also converts values to other types if specified. + * @param message Header + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: ibc.lightclients.tendermint.v1.Header, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** CompressedNonExistenceProof key */ - key?: (Uint8Array|null); + /** + * Converts this Header to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** CompressedNonExistenceProof left */ - left?: (ics23.ICompressedExistenceProof|null); + /** Properties of a Fraction. */ + interface IFraction { - /** CompressedNonExistenceProof right */ - right?: (ics23.ICompressedExistenceProof|null); - } + /** Fraction numerator */ + numerator?: (Long|null); - /** Represents a CompressedNonExistenceProof. */ - class CompressedNonExistenceProof implements ICompressedNonExistenceProof { + /** Fraction denominator */ + denominator?: (Long|null); + } - /** - * Constructs a new CompressedNonExistenceProof. - * @param [properties] Properties to set - */ - constructor(properties?: ics23.ICompressedNonExistenceProof); + /** Represents a Fraction. */ + class Fraction implements IFraction { - /** CompressedNonExistenceProof key. */ - public key: Uint8Array; + /** + * Constructs a new Fraction. + * @param [properties] Properties to set + */ + constructor(properties?: ibc.lightclients.tendermint.v1.IFraction); - /** CompressedNonExistenceProof left. */ - public left?: (ics23.ICompressedExistenceProof|null); + /** Fraction numerator. */ + public numerator: Long; - /** CompressedNonExistenceProof right. */ - public right?: (ics23.ICompressedExistenceProof|null); + /** Fraction denominator. */ + public denominator: Long; - /** - * Encodes the specified CompressedNonExistenceProof message. Does not implicitly {@link ics23.CompressedNonExistenceProof.verify|verify} messages. - * @param message CompressedNonExistenceProof message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: ics23.ICompressedNonExistenceProof, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified Fraction message. Does not implicitly {@link ibc.lightclients.tendermint.v1.Fraction.verify|verify} messages. + * @param message Fraction message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: ibc.lightclients.tendermint.v1.IFraction, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified CompressedNonExistenceProof message, length delimited. Does not implicitly {@link ics23.CompressedNonExistenceProof.verify|verify} messages. - * @param message CompressedNonExistenceProof message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: ics23.ICompressedNonExistenceProof, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified Fraction message, length delimited. Does not implicitly {@link ibc.lightclients.tendermint.v1.Fraction.verify|verify} messages. + * @param message Fraction message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: ibc.lightclients.tendermint.v1.IFraction, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a CompressedNonExistenceProof message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CompressedNonExistenceProof - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ics23.CompressedNonExistenceProof; + /** + * Decodes a Fraction message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Fraction + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ibc.lightclients.tendermint.v1.Fraction; - /** - * Decodes a CompressedNonExistenceProof message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CompressedNonExistenceProof - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ics23.CompressedNonExistenceProof; + /** + * Decodes a Fraction message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Fraction + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ibc.lightclients.tendermint.v1.Fraction; - /** - * Verifies a CompressedNonExistenceProof message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Verifies a Fraction message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Creates a CompressedNonExistenceProof message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CompressedNonExistenceProof - */ - public static fromObject(object: { [k: string]: any }): ics23.CompressedNonExistenceProof; + /** + * Creates a Fraction message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Fraction + */ + public static fromObject(object: { [k: string]: any }): ibc.lightclients.tendermint.v1.Fraction; - /** - * Creates a plain object from a CompressedNonExistenceProof message. Also converts values to other types if specified. - * @param message CompressedNonExistenceProof - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: ics23.CompressedNonExistenceProof, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a plain object from a Fraction message. Also converts values to other types if specified. + * @param message Fraction + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: ibc.lightclients.tendermint.v1.Fraction, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Converts this CompressedNonExistenceProof to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Converts this Fraction to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } + } } } @@ -33504,101 +35611,4 @@ export namespace tendermint { public toJSON(): { [k: string]: any }; } } - - /** Namespace libs. */ - namespace libs { - - /** Namespace bits. */ - namespace bits { - - /** Properties of a BitArray. */ - interface IBitArray { - - /** BitArray bits */ - bits?: (Long|null); - - /** BitArray elems */ - elems?: (Long[]|null); - } - - /** Represents a BitArray. */ - class BitArray implements IBitArray { - - /** - * Constructs a new BitArray. - * @param [properties] Properties to set - */ - constructor(properties?: tendermint.libs.bits.IBitArray); - - /** BitArray bits. */ - public bits: Long; - - /** BitArray elems. */ - public elems: Long[]; - - /** - * Encodes the specified BitArray message. Does not implicitly {@link tendermint.libs.bits.BitArray.verify|verify} messages. - * @param message BitArray message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: tendermint.libs.bits.IBitArray, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified BitArray message, length delimited. Does not implicitly {@link tendermint.libs.bits.BitArray.verify|verify} messages. - * @param message BitArray message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: tendermint.libs.bits.IBitArray, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a BitArray message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns BitArray - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): tendermint.libs.bits.BitArray; - - /** - * Decodes a BitArray message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns BitArray - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): tendermint.libs.bits.BitArray; - - /** - * Verifies a BitArray message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a BitArray message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns BitArray - */ - public static fromObject(object: { [k: string]: any }): tendermint.libs.bits.BitArray; - - /** - * Creates a plain object from a BitArray message. Also converts values to other types if specified. - * @param message BitArray - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: tendermint.libs.bits.BitArray, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this BitArray to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - } - } } diff --git a/src/generated/ibc/proto.js b/src/generated/ibc/proto.js index f33f97ab..a121f032 100644 --- a/src/generated/ibc/proto.js +++ b/src/generated/ibc/proto.js @@ -151,6 +151,39 @@ export const cosmos = $root.cosmos = (() => { * @variation 2 */ + /** + * Callback as used by {@link cosmos.adminmodule.adminmodule.Msg#submitProposalLegacy}. + * @memberof cosmos.adminmodule.adminmodule.Msg + * @typedef SubmitProposalLegacyCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {cosmos.adminmodule.adminmodule.MsgSubmitProposalLegacyResponse} [response] MsgSubmitProposalLegacyResponse + */ + + /** + * Calls SubmitProposalLegacy. + * @function submitProposalLegacy + * @memberof cosmos.adminmodule.adminmodule.Msg + * @instance + * @param {cosmos.adminmodule.adminmodule.IMsgSubmitProposalLegacy} request MsgSubmitProposalLegacy message or plain object + * @param {cosmos.adminmodule.adminmodule.Msg.SubmitProposalLegacyCallback} callback Node-style callback called with the error, if any, and MsgSubmitProposalLegacyResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Msg.prototype.submitProposalLegacy = function submitProposalLegacy(request, callback) { + return this.rpcCall(submitProposalLegacy, $root.cosmos.adminmodule.adminmodule.MsgSubmitProposalLegacy, $root.cosmos.adminmodule.adminmodule.MsgSubmitProposalLegacyResponse, request, callback); + }, "name", { value: "SubmitProposalLegacy" }); + + /** + * Calls SubmitProposalLegacy. + * @function submitProposalLegacy + * @memberof cosmos.adminmodule.adminmodule.Msg + * @instance + * @param {cosmos.adminmodule.adminmodule.IMsgSubmitProposalLegacy} request MsgSubmitProposalLegacy message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + return Msg; })(); @@ -846,13 +879,405 @@ export const cosmos = $root.cosmos = (() => { return MsgAddAdminResponse; })(); + adminmodule.MsgSubmitProposalLegacy = (function() { + + /** + * Properties of a MsgSubmitProposalLegacy. + * @memberof cosmos.adminmodule.adminmodule + * @interface IMsgSubmitProposalLegacy + * @property {google.protobuf.IAny|null} [content] MsgSubmitProposalLegacy content + * @property {string|null} [proposer] MsgSubmitProposalLegacy proposer + */ + + /** + * Constructs a new MsgSubmitProposalLegacy. + * @memberof cosmos.adminmodule.adminmodule + * @classdesc Represents a MsgSubmitProposalLegacy. + * @implements IMsgSubmitProposalLegacy + * @constructor + * @param {cosmos.adminmodule.adminmodule.IMsgSubmitProposalLegacy=} [properties] Properties to set + */ + function MsgSubmitProposalLegacy(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * MsgSubmitProposalLegacy content. + * @member {google.protobuf.IAny|null|undefined} content + * @memberof cosmos.adminmodule.adminmodule.MsgSubmitProposalLegacy + * @instance + */ + MsgSubmitProposalLegacy.prototype.content = null; + + /** + * MsgSubmitProposalLegacy proposer. + * @member {string} proposer + * @memberof cosmos.adminmodule.adminmodule.MsgSubmitProposalLegacy + * @instance + */ + MsgSubmitProposalLegacy.prototype.proposer = ""; + + /** + * Encodes the specified MsgSubmitProposalLegacy message. Does not implicitly {@link cosmos.adminmodule.adminmodule.MsgSubmitProposalLegacy.verify|verify} messages. + * @function encode + * @memberof cosmos.adminmodule.adminmodule.MsgSubmitProposalLegacy + * @static + * @param {cosmos.adminmodule.adminmodule.IMsgSubmitProposalLegacy} message MsgSubmitProposalLegacy message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MsgSubmitProposalLegacy.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.content != null && Object.hasOwnProperty.call(message, "content")) + $root.google.protobuf.Any.encode(message.content, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.proposer != null && Object.hasOwnProperty.call(message, "proposer")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.proposer); + return writer; + }; + + /** + * Encodes the specified MsgSubmitProposalLegacy message, length delimited. Does not implicitly {@link cosmos.adminmodule.adminmodule.MsgSubmitProposalLegacy.verify|verify} messages. + * @function encodeDelimited + * @memberof cosmos.adminmodule.adminmodule.MsgSubmitProposalLegacy + * @static + * @param {cosmos.adminmodule.adminmodule.IMsgSubmitProposalLegacy} message MsgSubmitProposalLegacy message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MsgSubmitProposalLegacy.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a MsgSubmitProposalLegacy message from the specified reader or buffer. + * @function decode + * @memberof cosmos.adminmodule.adminmodule.MsgSubmitProposalLegacy + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {cosmos.adminmodule.adminmodule.MsgSubmitProposalLegacy} MsgSubmitProposalLegacy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MsgSubmitProposalLegacy.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.cosmos.adminmodule.adminmodule.MsgSubmitProposalLegacy(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.content = $root.google.protobuf.Any.decode(reader, reader.uint32()); + break; + case 2: + message.proposer = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a MsgSubmitProposalLegacy message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof cosmos.adminmodule.adminmodule.MsgSubmitProposalLegacy + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {cosmos.adminmodule.adminmodule.MsgSubmitProposalLegacy} MsgSubmitProposalLegacy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MsgSubmitProposalLegacy.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a MsgSubmitProposalLegacy message. + * @function verify + * @memberof cosmos.adminmodule.adminmodule.MsgSubmitProposalLegacy + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MsgSubmitProposalLegacy.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.content != null && message.hasOwnProperty("content")) { + let error = $root.google.protobuf.Any.verify(message.content); + if (error) + return "content." + error; + } + if (message.proposer != null && message.hasOwnProperty("proposer")) + if (!$util.isString(message.proposer)) + return "proposer: string expected"; + return null; + }; + + /** + * Creates a MsgSubmitProposalLegacy message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof cosmos.adminmodule.adminmodule.MsgSubmitProposalLegacy + * @static + * @param {Object.} object Plain object + * @returns {cosmos.adminmodule.adminmodule.MsgSubmitProposalLegacy} MsgSubmitProposalLegacy + */ + MsgSubmitProposalLegacy.fromObject = function fromObject(object) { + if (object instanceof $root.cosmos.adminmodule.adminmodule.MsgSubmitProposalLegacy) + return object; + let message = new $root.cosmos.adminmodule.adminmodule.MsgSubmitProposalLegacy(); + if (object.content != null) { + if (typeof object.content !== "object") + throw TypeError(".cosmos.adminmodule.adminmodule.MsgSubmitProposalLegacy.content: object expected"); + message.content = $root.google.protobuf.Any.fromObject(object.content); + } + if (object.proposer != null) + message.proposer = String(object.proposer); + return message; + }; + + /** + * Creates a plain object from a MsgSubmitProposalLegacy message. Also converts values to other types if specified. + * @function toObject + * @memberof cosmos.adminmodule.adminmodule.MsgSubmitProposalLegacy + * @static + * @param {cosmos.adminmodule.adminmodule.MsgSubmitProposalLegacy} message MsgSubmitProposalLegacy + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MsgSubmitProposalLegacy.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + object.content = null; + object.proposer = ""; + } + if (message.content != null && message.hasOwnProperty("content")) + object.content = $root.google.protobuf.Any.toObject(message.content, options); + if (message.proposer != null && message.hasOwnProperty("proposer")) + object.proposer = message.proposer; + return object; + }; + + /** + * Converts this MsgSubmitProposalLegacy to JSON. + * @function toJSON + * @memberof cosmos.adminmodule.adminmodule.MsgSubmitProposalLegacy + * @instance + * @returns {Object.} JSON object + */ + MsgSubmitProposalLegacy.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return MsgSubmitProposalLegacy; + })(); + + adminmodule.MsgSubmitProposalLegacyResponse = (function() { + + /** + * Properties of a MsgSubmitProposalLegacyResponse. + * @memberof cosmos.adminmodule.adminmodule + * @interface IMsgSubmitProposalLegacyResponse + * @property {Long|null} [proposal_id] MsgSubmitProposalLegacyResponse proposal_id + */ + + /** + * Constructs a new MsgSubmitProposalLegacyResponse. + * @memberof cosmos.adminmodule.adminmodule + * @classdesc Represents a MsgSubmitProposalLegacyResponse. + * @implements IMsgSubmitProposalLegacyResponse + * @constructor + * @param {cosmos.adminmodule.adminmodule.IMsgSubmitProposalLegacyResponse=} [properties] Properties to set + */ + function MsgSubmitProposalLegacyResponse(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * MsgSubmitProposalLegacyResponse proposal_id. + * @member {Long} proposal_id + * @memberof cosmos.adminmodule.adminmodule.MsgSubmitProposalLegacyResponse + * @instance + */ + MsgSubmitProposalLegacyResponse.prototype.proposal_id = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + + /** + * Encodes the specified MsgSubmitProposalLegacyResponse message. Does not implicitly {@link cosmos.adminmodule.adminmodule.MsgSubmitProposalLegacyResponse.verify|verify} messages. + * @function encode + * @memberof cosmos.adminmodule.adminmodule.MsgSubmitProposalLegacyResponse + * @static + * @param {cosmos.adminmodule.adminmodule.IMsgSubmitProposalLegacyResponse} message MsgSubmitProposalLegacyResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MsgSubmitProposalLegacyResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.proposal_id != null && Object.hasOwnProperty.call(message, "proposal_id")) + writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.proposal_id); + return writer; + }; + + /** + * Encodes the specified MsgSubmitProposalLegacyResponse message, length delimited. Does not implicitly {@link cosmos.adminmodule.adminmodule.MsgSubmitProposalLegacyResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof cosmos.adminmodule.adminmodule.MsgSubmitProposalLegacyResponse + * @static + * @param {cosmos.adminmodule.adminmodule.IMsgSubmitProposalLegacyResponse} message MsgSubmitProposalLegacyResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MsgSubmitProposalLegacyResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a MsgSubmitProposalLegacyResponse message from the specified reader or buffer. + * @function decode + * @memberof cosmos.adminmodule.adminmodule.MsgSubmitProposalLegacyResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {cosmos.adminmodule.adminmodule.MsgSubmitProposalLegacyResponse} MsgSubmitProposalLegacyResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MsgSubmitProposalLegacyResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.cosmos.adminmodule.adminmodule.MsgSubmitProposalLegacyResponse(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposal_id = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a MsgSubmitProposalLegacyResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof cosmos.adminmodule.adminmodule.MsgSubmitProposalLegacyResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {cosmos.adminmodule.adminmodule.MsgSubmitProposalLegacyResponse} MsgSubmitProposalLegacyResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MsgSubmitProposalLegacyResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a MsgSubmitProposalLegacyResponse message. + * @function verify + * @memberof cosmos.adminmodule.adminmodule.MsgSubmitProposalLegacyResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MsgSubmitProposalLegacyResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.proposal_id != null && message.hasOwnProperty("proposal_id")) + if (!$util.isInteger(message.proposal_id) && !(message.proposal_id && $util.isInteger(message.proposal_id.low) && $util.isInteger(message.proposal_id.high))) + return "proposal_id: integer|Long expected"; + return null; + }; + + /** + * Creates a MsgSubmitProposalLegacyResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof cosmos.adminmodule.adminmodule.MsgSubmitProposalLegacyResponse + * @static + * @param {Object.} object Plain object + * @returns {cosmos.adminmodule.adminmodule.MsgSubmitProposalLegacyResponse} MsgSubmitProposalLegacyResponse + */ + MsgSubmitProposalLegacyResponse.fromObject = function fromObject(object) { + if (object instanceof $root.cosmos.adminmodule.adminmodule.MsgSubmitProposalLegacyResponse) + return object; + let message = new $root.cosmos.adminmodule.adminmodule.MsgSubmitProposalLegacyResponse(); + if (object.proposal_id != null) + if ($util.Long) + (message.proposal_id = $util.Long.fromValue(object.proposal_id)).unsigned = true; + else if (typeof object.proposal_id === "string") + message.proposal_id = parseInt(object.proposal_id, 10); + else if (typeof object.proposal_id === "number") + message.proposal_id = object.proposal_id; + else if (typeof object.proposal_id === "object") + message.proposal_id = new $util.LongBits(object.proposal_id.low >>> 0, object.proposal_id.high >>> 0).toNumber(true); + return message; + }; + + /** + * Creates a plain object from a MsgSubmitProposalLegacyResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof cosmos.adminmodule.adminmodule.MsgSubmitProposalLegacyResponse + * @static + * @param {cosmos.adminmodule.adminmodule.MsgSubmitProposalLegacyResponse} message MsgSubmitProposalLegacyResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MsgSubmitProposalLegacyResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) + if ($util.Long) { + let long = new $util.Long(0, 0, true); + object.proposal_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.proposal_id = options.longs === String ? "0" : 0; + if (message.proposal_id != null && message.hasOwnProperty("proposal_id")) + if (typeof message.proposal_id === "number") + object.proposal_id = options.longs === String ? String(message.proposal_id) : message.proposal_id; + else + object.proposal_id = options.longs === String ? $util.Long.prototype.toString.call(message.proposal_id) : options.longs === Number ? new $util.LongBits(message.proposal_id.low >>> 0, message.proposal_id.high >>> 0).toNumber(true) : message.proposal_id; + return object; + }; + + /** + * Converts this MsgSubmitProposalLegacyResponse to JSON. + * @function toJSON + * @memberof cosmos.adminmodule.adminmodule.MsgSubmitProposalLegacyResponse + * @instance + * @returns {Object.} JSON object + */ + MsgSubmitProposalLegacyResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return MsgSubmitProposalLegacyResponse; + })(); + adminmodule.MsgSubmitProposal = (function() { /** * Properties of a MsgSubmitProposal. * @memberof cosmos.adminmodule.adminmodule * @interface IMsgSubmitProposal - * @property {google.protobuf.IAny|null} [content] MsgSubmitProposal content + * @property {Array.|null} [messages] MsgSubmitProposal messages * @property {string|null} [proposer] MsgSubmitProposal proposer */ @@ -865,6 +1290,7 @@ export const cosmos = $root.cosmos = (() => { * @param {cosmos.adminmodule.adminmodule.IMsgSubmitProposal=} [properties] Properties to set */ function MsgSubmitProposal(properties) { + this.messages = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -872,12 +1298,12 @@ export const cosmos = $root.cosmos = (() => { } /** - * MsgSubmitProposal content. - * @member {google.protobuf.IAny|null|undefined} content + * MsgSubmitProposal messages. + * @member {Array.} messages * @memberof cosmos.adminmodule.adminmodule.MsgSubmitProposal * @instance */ - MsgSubmitProposal.prototype.content = null; + MsgSubmitProposal.prototype.messages = $util.emptyArray; /** * MsgSubmitProposal proposer. @@ -899,8 +1325,9 @@ export const cosmos = $root.cosmos = (() => { MsgSubmitProposal.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.content != null && Object.hasOwnProperty.call(message, "content")) - $root.google.protobuf.Any.encode(message.content, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.messages != null && message.messages.length) + for (let i = 0; i < message.messages.length; ++i) + $root.google.protobuf.Any.encode(message.messages[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.proposer != null && Object.hasOwnProperty.call(message, "proposer")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.proposer); return writer; @@ -938,7 +1365,9 @@ export const cosmos = $root.cosmos = (() => { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.content = $root.google.protobuf.Any.decode(reader, reader.uint32()); + if (!(message.messages && message.messages.length)) + message.messages = []; + message.messages.push($root.google.protobuf.Any.decode(reader, reader.uint32())); break; case 2: message.proposer = reader.string(); @@ -978,10 +1407,14 @@ export const cosmos = $root.cosmos = (() => { MsgSubmitProposal.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.content != null && message.hasOwnProperty("content")) { - let error = $root.google.protobuf.Any.verify(message.content); - if (error) - return "content." + error; + if (message.messages != null && message.hasOwnProperty("messages")) { + if (!Array.isArray(message.messages)) + return "messages: array expected"; + for (let i = 0; i < message.messages.length; ++i) { + let error = $root.google.protobuf.Any.verify(message.messages[i]); + if (error) + return "messages." + error; + } } if (message.proposer != null && message.hasOwnProperty("proposer")) if (!$util.isString(message.proposer)) @@ -1001,10 +1434,15 @@ export const cosmos = $root.cosmos = (() => { if (object instanceof $root.cosmos.adminmodule.adminmodule.MsgSubmitProposal) return object; let message = new $root.cosmos.adminmodule.adminmodule.MsgSubmitProposal(); - if (object.content != null) { - if (typeof object.content !== "object") - throw TypeError(".cosmos.adminmodule.adminmodule.MsgSubmitProposal.content: object expected"); - message.content = $root.google.protobuf.Any.fromObject(object.content); + if (object.messages) { + if (!Array.isArray(object.messages)) + throw TypeError(".cosmos.adminmodule.adminmodule.MsgSubmitProposal.messages: array expected"); + message.messages = []; + for (let i = 0; i < object.messages.length; ++i) { + if (typeof object.messages[i] !== "object") + throw TypeError(".cosmos.adminmodule.adminmodule.MsgSubmitProposal.messages: object expected"); + message.messages[i] = $root.google.protobuf.Any.fromObject(object.messages[i]); + } } if (object.proposer != null) message.proposer = String(object.proposer); @@ -1024,12 +1462,15 @@ export const cosmos = $root.cosmos = (() => { if (!options) options = {}; let object = {}; - if (options.defaults) { - object.content = null; + if (options.arrays || options.defaults) + object.messages = []; + if (options.defaults) object.proposer = ""; + if (message.messages && message.messages.length) { + object.messages = []; + for (let j = 0; j < message.messages.length; ++j) + object.messages[j] = $root.google.protobuf.Any.toObject(message.messages[j], options); } - if (message.content != null && message.hasOwnProperty("content")) - object.content = $root.google.protobuf.Any.toObject(message.content, options); if (message.proposer != null && message.hasOwnProperty("proposer")) object.proposer = message.proposer; return object; @@ -1322,6 +1763,39 @@ export const cosmos = $root.cosmos = (() => { * @variation 2 */ + /** + * Callback as used by {@link cosmos.adminmodule.adminmodule.Query#archivedProposalsLegacy}. + * @memberof cosmos.adminmodule.adminmodule.Query + * @typedef ArchivedProposalsLegacyCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {cosmos.adminmodule.adminmodule.QueryArchivedProposalsLegacyResponse} [response] QueryArchivedProposalsLegacyResponse + */ + + /** + * Calls ArchivedProposalsLegacy. + * @function archivedProposalsLegacy + * @memberof cosmos.adminmodule.adminmodule.Query + * @instance + * @param {cosmos.adminmodule.adminmodule.IQueryArchivedProposalsLegacyRequest} request QueryArchivedProposalsLegacyRequest message or plain object + * @param {cosmos.adminmodule.adminmodule.Query.ArchivedProposalsLegacyCallback} callback Node-style callback called with the error, if any, and QueryArchivedProposalsLegacyResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Query.prototype.archivedProposalsLegacy = function archivedProposalsLegacy(request, callback) { + return this.rpcCall(archivedProposalsLegacy, $root.cosmos.adminmodule.adminmodule.QueryArchivedProposalsLegacyRequest, $root.cosmos.adminmodule.adminmodule.QueryArchivedProposalsLegacyResponse, request, callback); + }, "name", { value: "ArchivedProposalsLegacy" }); + + /** + * Calls ArchivedProposalsLegacy. + * @function archivedProposalsLegacy + * @memberof cosmos.adminmodule.adminmodule.Query + * @instance + * @param {cosmos.adminmodule.adminmodule.IQueryArchivedProposalsLegacyRequest} request QueryArchivedProposalsLegacyRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + return Query; })(); @@ -1812,13 +2286,357 @@ export const cosmos = $root.cosmos = (() => { return QueryArchivedProposalsRequest; })(); + adminmodule.QueryArchivedProposalsLegacyRequest = (function() { + + /** + * Properties of a QueryArchivedProposalsLegacyRequest. + * @memberof cosmos.adminmodule.adminmodule + * @interface IQueryArchivedProposalsLegacyRequest + */ + + /** + * Constructs a new QueryArchivedProposalsLegacyRequest. + * @memberof cosmos.adminmodule.adminmodule + * @classdesc Represents a QueryArchivedProposalsLegacyRequest. + * @implements IQueryArchivedProposalsLegacyRequest + * @constructor + * @param {cosmos.adminmodule.adminmodule.IQueryArchivedProposalsLegacyRequest=} [properties] Properties to set + */ + function QueryArchivedProposalsLegacyRequest(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Encodes the specified QueryArchivedProposalsLegacyRequest message. Does not implicitly {@link cosmos.adminmodule.adminmodule.QueryArchivedProposalsLegacyRequest.verify|verify} messages. + * @function encode + * @memberof cosmos.adminmodule.adminmodule.QueryArchivedProposalsLegacyRequest + * @static + * @param {cosmos.adminmodule.adminmodule.IQueryArchivedProposalsLegacyRequest} message QueryArchivedProposalsLegacyRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + QueryArchivedProposalsLegacyRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Encodes the specified QueryArchivedProposalsLegacyRequest message, length delimited. Does not implicitly {@link cosmos.adminmodule.adminmodule.QueryArchivedProposalsLegacyRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof cosmos.adminmodule.adminmodule.QueryArchivedProposalsLegacyRequest + * @static + * @param {cosmos.adminmodule.adminmodule.IQueryArchivedProposalsLegacyRequest} message QueryArchivedProposalsLegacyRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + QueryArchivedProposalsLegacyRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a QueryArchivedProposalsLegacyRequest message from the specified reader or buffer. + * @function decode + * @memberof cosmos.adminmodule.adminmodule.QueryArchivedProposalsLegacyRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {cosmos.adminmodule.adminmodule.QueryArchivedProposalsLegacyRequest} QueryArchivedProposalsLegacyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + QueryArchivedProposalsLegacyRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.cosmos.adminmodule.adminmodule.QueryArchivedProposalsLegacyRequest(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a QueryArchivedProposalsLegacyRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof cosmos.adminmodule.adminmodule.QueryArchivedProposalsLegacyRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {cosmos.adminmodule.adminmodule.QueryArchivedProposalsLegacyRequest} QueryArchivedProposalsLegacyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + QueryArchivedProposalsLegacyRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a QueryArchivedProposalsLegacyRequest message. + * @function verify + * @memberof cosmos.adminmodule.adminmodule.QueryArchivedProposalsLegacyRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + QueryArchivedProposalsLegacyRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + /** + * Creates a QueryArchivedProposalsLegacyRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof cosmos.adminmodule.adminmodule.QueryArchivedProposalsLegacyRequest + * @static + * @param {Object.} object Plain object + * @returns {cosmos.adminmodule.adminmodule.QueryArchivedProposalsLegacyRequest} QueryArchivedProposalsLegacyRequest + */ + QueryArchivedProposalsLegacyRequest.fromObject = function fromObject(object) { + if (object instanceof $root.cosmos.adminmodule.adminmodule.QueryArchivedProposalsLegacyRequest) + return object; + return new $root.cosmos.adminmodule.adminmodule.QueryArchivedProposalsLegacyRequest(); + }; + + /** + * Creates a plain object from a QueryArchivedProposalsLegacyRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof cosmos.adminmodule.adminmodule.QueryArchivedProposalsLegacyRequest + * @static + * @param {cosmos.adminmodule.adminmodule.QueryArchivedProposalsLegacyRequest} message QueryArchivedProposalsLegacyRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + QueryArchivedProposalsLegacyRequest.toObject = function toObject() { + return {}; + }; + + /** + * Converts this QueryArchivedProposalsLegacyRequest to JSON. + * @function toJSON + * @memberof cosmos.adminmodule.adminmodule.QueryArchivedProposalsLegacyRequest + * @instance + * @returns {Object.} JSON object + */ + QueryArchivedProposalsLegacyRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return QueryArchivedProposalsLegacyRequest; + })(); + + adminmodule.QueryProposalsResponse = (function() { + + /** + * Properties of a QueryProposalsResponse. + * @memberof cosmos.adminmodule.adminmodule + * @interface IQueryProposalsResponse + * @property {Array.|null} [proposals] QueryProposalsResponse proposals + */ + + /** + * Constructs a new QueryProposalsResponse. + * @memberof cosmos.adminmodule.adminmodule + * @classdesc Represents a QueryProposalsResponse. + * @implements IQueryProposalsResponse + * @constructor + * @param {cosmos.adminmodule.adminmodule.IQueryProposalsResponse=} [properties] Properties to set + */ + function QueryProposalsResponse(properties) { + this.proposals = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * QueryProposalsResponse proposals. + * @member {Array.} proposals + * @memberof cosmos.adminmodule.adminmodule.QueryProposalsResponse + * @instance + */ + QueryProposalsResponse.prototype.proposals = $util.emptyArray; + + /** + * Encodes the specified QueryProposalsResponse message. Does not implicitly {@link cosmos.adminmodule.adminmodule.QueryProposalsResponse.verify|verify} messages. + * @function encode + * @memberof cosmos.adminmodule.adminmodule.QueryProposalsResponse + * @static + * @param {cosmos.adminmodule.adminmodule.IQueryProposalsResponse} message QueryProposalsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + QueryProposalsResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.proposals != null && message.proposals.length) + for (let i = 0; i < message.proposals.length; ++i) + $root.cosmos.gov.v1.Proposal.encode(message.proposals[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified QueryProposalsResponse message, length delimited. Does not implicitly {@link cosmos.adminmodule.adminmodule.QueryProposalsResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof cosmos.adminmodule.adminmodule.QueryProposalsResponse + * @static + * @param {cosmos.adminmodule.adminmodule.IQueryProposalsResponse} message QueryProposalsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + QueryProposalsResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a QueryProposalsResponse message from the specified reader or buffer. + * @function decode + * @memberof cosmos.adminmodule.adminmodule.QueryProposalsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {cosmos.adminmodule.adminmodule.QueryProposalsResponse} QueryProposalsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + QueryProposalsResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.cosmos.adminmodule.adminmodule.QueryProposalsResponse(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.proposals && message.proposals.length)) + message.proposals = []; + message.proposals.push($root.cosmos.gov.v1.Proposal.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a QueryProposalsResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof cosmos.adminmodule.adminmodule.QueryProposalsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {cosmos.adminmodule.adminmodule.QueryProposalsResponse} QueryProposalsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + QueryProposalsResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a QueryProposalsResponse message. + * @function verify + * @memberof cosmos.adminmodule.adminmodule.QueryProposalsResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + QueryProposalsResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.proposals != null && message.hasOwnProperty("proposals")) { + if (!Array.isArray(message.proposals)) + return "proposals: array expected"; + for (let i = 0; i < message.proposals.length; ++i) { + let error = $root.cosmos.gov.v1.Proposal.verify(message.proposals[i]); + if (error) + return "proposals." + error; + } + } + return null; + }; + + /** + * Creates a QueryProposalsResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof cosmos.adminmodule.adminmodule.QueryProposalsResponse + * @static + * @param {Object.} object Plain object + * @returns {cosmos.adminmodule.adminmodule.QueryProposalsResponse} QueryProposalsResponse + */ + QueryProposalsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.cosmos.adminmodule.adminmodule.QueryProposalsResponse) + return object; + let message = new $root.cosmos.adminmodule.adminmodule.QueryProposalsResponse(); + if (object.proposals) { + if (!Array.isArray(object.proposals)) + throw TypeError(".cosmos.adminmodule.adminmodule.QueryProposalsResponse.proposals: array expected"); + message.proposals = []; + for (let i = 0; i < object.proposals.length; ++i) { + if (typeof object.proposals[i] !== "object") + throw TypeError(".cosmos.adminmodule.adminmodule.QueryProposalsResponse.proposals: object expected"); + message.proposals[i] = $root.cosmos.gov.v1.Proposal.fromObject(object.proposals[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a QueryProposalsResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof cosmos.adminmodule.adminmodule.QueryProposalsResponse + * @static + * @param {cosmos.adminmodule.adminmodule.QueryProposalsResponse} message QueryProposalsResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + QueryProposalsResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) + object.proposals = []; + if (message.proposals && message.proposals.length) { + object.proposals = []; + for (let j = 0; j < message.proposals.length; ++j) + object.proposals[j] = $root.cosmos.gov.v1.Proposal.toObject(message.proposals[j], options); + } + return object; + }; + + /** + * Converts this QueryProposalsResponse to JSON. + * @function toJSON + * @memberof cosmos.adminmodule.adminmodule.QueryProposalsResponse + * @instance + * @returns {Object.} JSON object + */ + QueryProposalsResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return QueryProposalsResponse; + })(); + adminmodule.QueryArchivedProposalsResponse = (function() { /** * Properties of a QueryArchivedProposalsResponse. * @memberof cosmos.adminmodule.adminmodule * @interface IQueryArchivedProposalsResponse - * @property {Array.|null} [proposals] QueryArchivedProposalsResponse proposals + * @property {Array.|null} [proposals] QueryArchivedProposalsResponse proposals */ /** @@ -1839,7 +2657,7 @@ export const cosmos = $root.cosmos = (() => { /** * QueryArchivedProposalsResponse proposals. - * @member {Array.} proposals + * @member {Array.} proposals * @memberof cosmos.adminmodule.adminmodule.QueryArchivedProposalsResponse * @instance */ @@ -1859,7 +2677,7 @@ export const cosmos = $root.cosmos = (() => { writer = $Writer.create(); if (message.proposals != null && message.proposals.length) for (let i = 0; i < message.proposals.length; ++i) - $root.cosmos.gov.v1beta1.Proposal.encode(message.proposals[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.cosmos.gov.v1.Proposal.encode(message.proposals[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; @@ -1897,7 +2715,7 @@ export const cosmos = $root.cosmos = (() => { case 1: if (!(message.proposals && message.proposals.length)) message.proposals = []; - message.proposals.push($root.cosmos.gov.v1beta1.Proposal.decode(reader, reader.uint32())); + message.proposals.push($root.cosmos.gov.v1.Proposal.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -1938,7 +2756,7 @@ export const cosmos = $root.cosmos = (() => { if (!Array.isArray(message.proposals)) return "proposals: array expected"; for (let i = 0; i < message.proposals.length; ++i) { - let error = $root.cosmos.gov.v1beta1.Proposal.verify(message.proposals[i]); + let error = $root.cosmos.gov.v1.Proposal.verify(message.proposals[i]); if (error) return "proposals." + error; } @@ -1965,7 +2783,7 @@ export const cosmos = $root.cosmos = (() => { for (let i = 0; i < object.proposals.length; ++i) { if (typeof object.proposals[i] !== "object") throw TypeError(".cosmos.adminmodule.adminmodule.QueryArchivedProposalsResponse.proposals: object expected"); - message.proposals[i] = $root.cosmos.gov.v1beta1.Proposal.fromObject(object.proposals[i]); + message.proposals[i] = $root.cosmos.gov.v1.Proposal.fromObject(object.proposals[i]); } } return message; @@ -1989,7 +2807,7 @@ export const cosmos = $root.cosmos = (() => { if (message.proposals && message.proposals.length) { object.proposals = []; for (let j = 0; j < message.proposals.length; ++j) - object.proposals[j] = $root.cosmos.gov.v1beta1.Proposal.toObject(message.proposals[j], options); + object.proposals[j] = $root.cosmos.gov.v1.Proposal.toObject(message.proposals[j], options); } return object; }; @@ -2008,6 +2826,202 @@ export const cosmos = $root.cosmos = (() => { return QueryArchivedProposalsResponse; })(); + adminmodule.QueryArchivedProposalsLegacyResponse = (function() { + + /** + * Properties of a QueryArchivedProposalsLegacyResponse. + * @memberof cosmos.adminmodule.adminmodule + * @interface IQueryArchivedProposalsLegacyResponse + * @property {Array.|null} [proposalsLegacy] QueryArchivedProposalsLegacyResponse proposalsLegacy + */ + + /** + * Constructs a new QueryArchivedProposalsLegacyResponse. + * @memberof cosmos.adminmodule.adminmodule + * @classdesc Represents a QueryArchivedProposalsLegacyResponse. + * @implements IQueryArchivedProposalsLegacyResponse + * @constructor + * @param {cosmos.adminmodule.adminmodule.IQueryArchivedProposalsLegacyResponse=} [properties] Properties to set + */ + function QueryArchivedProposalsLegacyResponse(properties) { + this.proposalsLegacy = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * QueryArchivedProposalsLegacyResponse proposalsLegacy. + * @member {Array.} proposalsLegacy + * @memberof cosmos.adminmodule.adminmodule.QueryArchivedProposalsLegacyResponse + * @instance + */ + QueryArchivedProposalsLegacyResponse.prototype.proposalsLegacy = $util.emptyArray; + + /** + * Encodes the specified QueryArchivedProposalsLegacyResponse message. Does not implicitly {@link cosmos.adminmodule.adminmodule.QueryArchivedProposalsLegacyResponse.verify|verify} messages. + * @function encode + * @memberof cosmos.adminmodule.adminmodule.QueryArchivedProposalsLegacyResponse + * @static + * @param {cosmos.adminmodule.adminmodule.IQueryArchivedProposalsLegacyResponse} message QueryArchivedProposalsLegacyResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + QueryArchivedProposalsLegacyResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.proposalsLegacy != null && message.proposalsLegacy.length) + for (let i = 0; i < message.proposalsLegacy.length; ++i) + $root.cosmos.gov.v1beta1.Proposal.encode(message.proposalsLegacy[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified QueryArchivedProposalsLegacyResponse message, length delimited. Does not implicitly {@link cosmos.adminmodule.adminmodule.QueryArchivedProposalsLegacyResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof cosmos.adminmodule.adminmodule.QueryArchivedProposalsLegacyResponse + * @static + * @param {cosmos.adminmodule.adminmodule.IQueryArchivedProposalsLegacyResponse} message QueryArchivedProposalsLegacyResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + QueryArchivedProposalsLegacyResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a QueryArchivedProposalsLegacyResponse message from the specified reader or buffer. + * @function decode + * @memberof cosmos.adminmodule.adminmodule.QueryArchivedProposalsLegacyResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {cosmos.adminmodule.adminmodule.QueryArchivedProposalsLegacyResponse} QueryArchivedProposalsLegacyResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + QueryArchivedProposalsLegacyResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.cosmos.adminmodule.adminmodule.QueryArchivedProposalsLegacyResponse(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.proposalsLegacy && message.proposalsLegacy.length)) + message.proposalsLegacy = []; + message.proposalsLegacy.push($root.cosmos.gov.v1beta1.Proposal.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a QueryArchivedProposalsLegacyResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof cosmos.adminmodule.adminmodule.QueryArchivedProposalsLegacyResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {cosmos.adminmodule.adminmodule.QueryArchivedProposalsLegacyResponse} QueryArchivedProposalsLegacyResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + QueryArchivedProposalsLegacyResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a QueryArchivedProposalsLegacyResponse message. + * @function verify + * @memberof cosmos.adminmodule.adminmodule.QueryArchivedProposalsLegacyResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + QueryArchivedProposalsLegacyResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.proposalsLegacy != null && message.hasOwnProperty("proposalsLegacy")) { + if (!Array.isArray(message.proposalsLegacy)) + return "proposalsLegacy: array expected"; + for (let i = 0; i < message.proposalsLegacy.length; ++i) { + let error = $root.cosmos.gov.v1beta1.Proposal.verify(message.proposalsLegacy[i]); + if (error) + return "proposalsLegacy." + error; + } + } + return null; + }; + + /** + * Creates a QueryArchivedProposalsLegacyResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof cosmos.adminmodule.adminmodule.QueryArchivedProposalsLegacyResponse + * @static + * @param {Object.} object Plain object + * @returns {cosmos.adminmodule.adminmodule.QueryArchivedProposalsLegacyResponse} QueryArchivedProposalsLegacyResponse + */ + QueryArchivedProposalsLegacyResponse.fromObject = function fromObject(object) { + if (object instanceof $root.cosmos.adminmodule.adminmodule.QueryArchivedProposalsLegacyResponse) + return object; + let message = new $root.cosmos.adminmodule.adminmodule.QueryArchivedProposalsLegacyResponse(); + if (object.proposalsLegacy) { + if (!Array.isArray(object.proposalsLegacy)) + throw TypeError(".cosmos.adminmodule.adminmodule.QueryArchivedProposalsLegacyResponse.proposalsLegacy: array expected"); + message.proposalsLegacy = []; + for (let i = 0; i < object.proposalsLegacy.length; ++i) { + if (typeof object.proposalsLegacy[i] !== "object") + throw TypeError(".cosmos.adminmodule.adminmodule.QueryArchivedProposalsLegacyResponse.proposalsLegacy: object expected"); + message.proposalsLegacy[i] = $root.cosmos.gov.v1beta1.Proposal.fromObject(object.proposalsLegacy[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a QueryArchivedProposalsLegacyResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof cosmos.adminmodule.adminmodule.QueryArchivedProposalsLegacyResponse + * @static + * @param {cosmos.adminmodule.adminmodule.QueryArchivedProposalsLegacyResponse} message QueryArchivedProposalsLegacyResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + QueryArchivedProposalsLegacyResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) + object.proposalsLegacy = []; + if (message.proposalsLegacy && message.proposalsLegacy.length) { + object.proposalsLegacy = []; + for (let j = 0; j < message.proposalsLegacy.length; ++j) + object.proposalsLegacy[j] = $root.cosmos.gov.v1beta1.Proposal.toObject(message.proposalsLegacy[j], options); + } + return object; + }; + + /** + * Converts this QueryArchivedProposalsLegacyResponse to JSON. + * @function toJSON + * @memberof cosmos.adminmodule.adminmodule.QueryArchivedProposalsLegacyResponse + * @instance + * @returns {Object.} JSON object + */ + QueryArchivedProposalsLegacyResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return QueryArchivedProposalsLegacyResponse; + })(); + adminmodule.GenesisState = (function() { /** @@ -4598,46 +5612,54 @@ export const cosmos = $root.cosmos = (() => { return v1beta1; })(); - return gov; - })(); - - cosmos.base = (function() { - - /** - * Namespace base. - * @memberof cosmos - * @namespace - */ - const base = {}; - - base.v1beta1 = (function() { + gov.v1 = (function() { /** - * Namespace v1beta1. - * @memberof cosmos.base + * Namespace v1. + * @memberof cosmos.gov * @namespace */ - const v1beta1 = {}; + const v1 = {}; - v1beta1.Coin = (function() { + /** + * VoteOption enum. + * @name cosmos.gov.v1.VoteOption + * @enum {number} + * @property {number} VOTE_OPTION_UNSPECIFIED=0 VOTE_OPTION_UNSPECIFIED value + * @property {number} VOTE_OPTION_YES=1 VOTE_OPTION_YES value + * @property {number} VOTE_OPTION_ABSTAIN=2 VOTE_OPTION_ABSTAIN value + * @property {number} VOTE_OPTION_NO=3 VOTE_OPTION_NO value + * @property {number} VOTE_OPTION_NO_WITH_VETO=4 VOTE_OPTION_NO_WITH_VETO value + */ + v1.VoteOption = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "VOTE_OPTION_UNSPECIFIED"] = 0; + values[valuesById[1] = "VOTE_OPTION_YES"] = 1; + values[valuesById[2] = "VOTE_OPTION_ABSTAIN"] = 2; + values[valuesById[3] = "VOTE_OPTION_NO"] = 3; + values[valuesById[4] = "VOTE_OPTION_NO_WITH_VETO"] = 4; + return values; + })(); + + v1.WeightedVoteOption = (function() { /** - * Properties of a Coin. - * @memberof cosmos.base.v1beta1 - * @interface ICoin - * @property {string|null} [denom] Coin denom - * @property {string|null} [amount] Coin amount + * Properties of a WeightedVoteOption. + * @memberof cosmos.gov.v1 + * @interface IWeightedVoteOption + * @property {cosmos.gov.v1.VoteOption|null} [option] WeightedVoteOption option + * @property {string|null} [weight] WeightedVoteOption weight */ /** - * Constructs a new Coin. - * @memberof cosmos.base.v1beta1 - * @classdesc Represents a Coin. - * @implements ICoin + * Constructs a new WeightedVoteOption. + * @memberof cosmos.gov.v1 + * @classdesc Represents a WeightedVoteOption. + * @implements IWeightedVoteOption * @constructor - * @param {cosmos.base.v1beta1.ICoin=} [properties] Properties to set + * @param {cosmos.gov.v1.IWeightedVoteOption=} [properties] Properties to set */ - function Coin(properties) { + function WeightedVoteOption(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -4645,76 +5667,76 @@ export const cosmos = $root.cosmos = (() => { } /** - * Coin denom. - * @member {string} denom - * @memberof cosmos.base.v1beta1.Coin + * WeightedVoteOption option. + * @member {cosmos.gov.v1.VoteOption} option + * @memberof cosmos.gov.v1.WeightedVoteOption * @instance */ - Coin.prototype.denom = ""; + WeightedVoteOption.prototype.option = 0; /** - * Coin amount. - * @member {string} amount - * @memberof cosmos.base.v1beta1.Coin + * WeightedVoteOption weight. + * @member {string} weight + * @memberof cosmos.gov.v1.WeightedVoteOption * @instance */ - Coin.prototype.amount = ""; + WeightedVoteOption.prototype.weight = ""; /** - * Encodes the specified Coin message. Does not implicitly {@link cosmos.base.v1beta1.Coin.verify|verify} messages. + * Encodes the specified WeightedVoteOption message. Does not implicitly {@link cosmos.gov.v1.WeightedVoteOption.verify|verify} messages. * @function encode - * @memberof cosmos.base.v1beta1.Coin + * @memberof cosmos.gov.v1.WeightedVoteOption * @static - * @param {cosmos.base.v1beta1.ICoin} message Coin message or plain object to encode + * @param {cosmos.gov.v1.IWeightedVoteOption} message WeightedVoteOption message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Coin.encode = function encode(message, writer) { + WeightedVoteOption.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.denom != null && Object.hasOwnProperty.call(message, "denom")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.denom); - if (message.amount != null && Object.hasOwnProperty.call(message, "amount")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.amount); + if (message.option != null && Object.hasOwnProperty.call(message, "option")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.option); + if (message.weight != null && Object.hasOwnProperty.call(message, "weight")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.weight); return writer; }; /** - * Encodes the specified Coin message, length delimited. Does not implicitly {@link cosmos.base.v1beta1.Coin.verify|verify} messages. + * Encodes the specified WeightedVoteOption message, length delimited. Does not implicitly {@link cosmos.gov.v1.WeightedVoteOption.verify|verify} messages. * @function encodeDelimited - * @memberof cosmos.base.v1beta1.Coin + * @memberof cosmos.gov.v1.WeightedVoteOption * @static - * @param {cosmos.base.v1beta1.ICoin} message Coin message or plain object to encode + * @param {cosmos.gov.v1.IWeightedVoteOption} message WeightedVoteOption message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Coin.encodeDelimited = function encodeDelimited(message, writer) { + WeightedVoteOption.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Coin message from the specified reader or buffer. + * Decodes a WeightedVoteOption message from the specified reader or buffer. * @function decode - * @memberof cosmos.base.v1beta1.Coin + * @memberof cosmos.gov.v1.WeightedVoteOption * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {cosmos.base.v1beta1.Coin} Coin + * @returns {cosmos.gov.v1.WeightedVoteOption} WeightedVoteOption * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Coin.decode = function decode(reader, length) { + WeightedVoteOption.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.cosmos.base.v1beta1.Coin(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.cosmos.gov.v1.WeightedVoteOption(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.denom = reader.string(); + message.option = reader.int32(); break; case 2: - message.amount = reader.string(); + message.weight = reader.string(); break; default: reader.skipType(tag & 7); @@ -4725,117 +5747,147 @@ export const cosmos = $root.cosmos = (() => { }; /** - * Decodes a Coin message from the specified reader or buffer, length delimited. + * Decodes a WeightedVoteOption message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof cosmos.base.v1beta1.Coin + * @memberof cosmos.gov.v1.WeightedVoteOption * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {cosmos.base.v1beta1.Coin} Coin + * @returns {cosmos.gov.v1.WeightedVoteOption} WeightedVoteOption * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Coin.decodeDelimited = function decodeDelimited(reader) { + WeightedVoteOption.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Coin message. + * Verifies a WeightedVoteOption message. * @function verify - * @memberof cosmos.base.v1beta1.Coin + * @memberof cosmos.gov.v1.WeightedVoteOption * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Coin.verify = function verify(message) { + WeightedVoteOption.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.denom != null && message.hasOwnProperty("denom")) - if (!$util.isString(message.denom)) - return "denom: string expected"; - if (message.amount != null && message.hasOwnProperty("amount")) - if (!$util.isString(message.amount)) - return "amount: string expected"; + if (message.option != null && message.hasOwnProperty("option")) + switch (message.option) { + default: + return "option: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + break; + } + if (message.weight != null && message.hasOwnProperty("weight")) + if (!$util.isString(message.weight)) + return "weight: string expected"; return null; }; /** - * Creates a Coin message from a plain object. Also converts values to their respective internal types. + * Creates a WeightedVoteOption message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof cosmos.base.v1beta1.Coin + * @memberof cosmos.gov.v1.WeightedVoteOption * @static * @param {Object.} object Plain object - * @returns {cosmos.base.v1beta1.Coin} Coin + * @returns {cosmos.gov.v1.WeightedVoteOption} WeightedVoteOption */ - Coin.fromObject = function fromObject(object) { - if (object instanceof $root.cosmos.base.v1beta1.Coin) + WeightedVoteOption.fromObject = function fromObject(object) { + if (object instanceof $root.cosmos.gov.v1.WeightedVoteOption) return object; - let message = new $root.cosmos.base.v1beta1.Coin(); - if (object.denom != null) - message.denom = String(object.denom); - if (object.amount != null) - message.amount = String(object.amount); + let message = new $root.cosmos.gov.v1.WeightedVoteOption(); + switch (object.option) { + case "VOTE_OPTION_UNSPECIFIED": + case 0: + message.option = 0; + break; + case "VOTE_OPTION_YES": + case 1: + message.option = 1; + break; + case "VOTE_OPTION_ABSTAIN": + case 2: + message.option = 2; + break; + case "VOTE_OPTION_NO": + case 3: + message.option = 3; + break; + case "VOTE_OPTION_NO_WITH_VETO": + case 4: + message.option = 4; + break; + } + if (object.weight != null) + message.weight = String(object.weight); return message; }; /** - * Creates a plain object from a Coin message. Also converts values to other types if specified. + * Creates a plain object from a WeightedVoteOption message. Also converts values to other types if specified. * @function toObject - * @memberof cosmos.base.v1beta1.Coin + * @memberof cosmos.gov.v1.WeightedVoteOption * @static - * @param {cosmos.base.v1beta1.Coin} message Coin + * @param {cosmos.gov.v1.WeightedVoteOption} message WeightedVoteOption * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Coin.toObject = function toObject(message, options) { + WeightedVoteOption.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - object.denom = ""; - object.amount = ""; + object.option = options.enums === String ? "VOTE_OPTION_UNSPECIFIED" : 0; + object.weight = ""; } - if (message.denom != null && message.hasOwnProperty("denom")) - object.denom = message.denom; - if (message.amount != null && message.hasOwnProperty("amount")) - object.amount = message.amount; + if (message.option != null && message.hasOwnProperty("option")) + object.option = options.enums === String ? $root.cosmos.gov.v1.VoteOption[message.option] : message.option; + if (message.weight != null && message.hasOwnProperty("weight")) + object.weight = message.weight; return object; }; /** - * Converts this Coin to JSON. + * Converts this WeightedVoteOption to JSON. * @function toJSON - * @memberof cosmos.base.v1beta1.Coin + * @memberof cosmos.gov.v1.WeightedVoteOption * @instance * @returns {Object.} JSON object */ - Coin.prototype.toJSON = function toJSON() { + WeightedVoteOption.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Coin; + return WeightedVoteOption; })(); - v1beta1.DecCoin = (function() { + v1.Deposit = (function() { /** - * Properties of a DecCoin. - * @memberof cosmos.base.v1beta1 - * @interface IDecCoin - * @property {string|null} [denom] DecCoin denom - * @property {string|null} [amount] DecCoin amount + * Properties of a Deposit. + * @memberof cosmos.gov.v1 + * @interface IDeposit + * @property {Long|null} [proposal_id] Deposit proposal_id + * @property {string|null} [depositor] Deposit depositor + * @property {Array.|null} [amount] Deposit amount */ /** - * Constructs a new DecCoin. - * @memberof cosmos.base.v1beta1 - * @classdesc Represents a DecCoin. - * @implements IDecCoin + * Constructs a new Deposit. + * @memberof cosmos.gov.v1 + * @classdesc Represents a Deposit. + * @implements IDeposit * @constructor - * @param {cosmos.base.v1beta1.IDecCoin=} [properties] Properties to set + * @param {cosmos.gov.v1.IDeposit=} [properties] Properties to set */ - function DecCoin(properties) { + function Deposit(properties) { + this.amount = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -4843,76 +5895,92 @@ export const cosmos = $root.cosmos = (() => { } /** - * DecCoin denom. - * @member {string} denom - * @memberof cosmos.base.v1beta1.DecCoin + * Deposit proposal_id. + * @member {Long} proposal_id + * @memberof cosmos.gov.v1.Deposit * @instance */ - DecCoin.prototype.denom = ""; + Deposit.prototype.proposal_id = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** - * DecCoin amount. - * @member {string} amount - * @memberof cosmos.base.v1beta1.DecCoin + * Deposit depositor. + * @member {string} depositor + * @memberof cosmos.gov.v1.Deposit * @instance */ - DecCoin.prototype.amount = ""; + Deposit.prototype.depositor = ""; /** - * Encodes the specified DecCoin message. Does not implicitly {@link cosmos.base.v1beta1.DecCoin.verify|verify} messages. + * Deposit amount. + * @member {Array.} amount + * @memberof cosmos.gov.v1.Deposit + * @instance + */ + Deposit.prototype.amount = $util.emptyArray; + + /** + * Encodes the specified Deposit message. Does not implicitly {@link cosmos.gov.v1.Deposit.verify|verify} messages. * @function encode - * @memberof cosmos.base.v1beta1.DecCoin + * @memberof cosmos.gov.v1.Deposit * @static - * @param {cosmos.base.v1beta1.IDecCoin} message DecCoin message or plain object to encode + * @param {cosmos.gov.v1.IDeposit} message Deposit message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DecCoin.encode = function encode(message, writer) { + Deposit.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.denom != null && Object.hasOwnProperty.call(message, "denom")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.denom); - if (message.amount != null && Object.hasOwnProperty.call(message, "amount")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.amount); + if (message.proposal_id != null && Object.hasOwnProperty.call(message, "proposal_id")) + writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.proposal_id); + if (message.depositor != null && Object.hasOwnProperty.call(message, "depositor")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.depositor); + if (message.amount != null && message.amount.length) + for (let i = 0; i < message.amount.length; ++i) + $root.cosmos.base.v1beta1.Coin.encode(message.amount[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified DecCoin message, length delimited. Does not implicitly {@link cosmos.base.v1beta1.DecCoin.verify|verify} messages. + * Encodes the specified Deposit message, length delimited. Does not implicitly {@link cosmos.gov.v1.Deposit.verify|verify} messages. * @function encodeDelimited - * @memberof cosmos.base.v1beta1.DecCoin + * @memberof cosmos.gov.v1.Deposit * @static - * @param {cosmos.base.v1beta1.IDecCoin} message DecCoin message or plain object to encode + * @param {cosmos.gov.v1.IDeposit} message Deposit message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DecCoin.encodeDelimited = function encodeDelimited(message, writer) { + Deposit.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DecCoin message from the specified reader or buffer. + * Decodes a Deposit message from the specified reader or buffer. * @function decode - * @memberof cosmos.base.v1beta1.DecCoin + * @memberof cosmos.gov.v1.Deposit * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {cosmos.base.v1beta1.DecCoin} DecCoin + * @returns {cosmos.gov.v1.Deposit} Deposit * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DecCoin.decode = function decode(reader, length) { + Deposit.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.cosmos.base.v1beta1.DecCoin(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.cosmos.gov.v1.Deposit(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.denom = reader.string(); + message.proposal_id = reader.uint64(); break; case 2: - message.amount = reader.string(); + message.depositor = reader.string(); + break; + case 3: + if (!(message.amount && message.amount.length)) + message.amount = []; + message.amount.push($root.cosmos.base.v1beta1.Coin.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -4923,116 +5991,170 @@ export const cosmos = $root.cosmos = (() => { }; /** - * Decodes a DecCoin message from the specified reader or buffer, length delimited. + * Decodes a Deposit message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof cosmos.base.v1beta1.DecCoin + * @memberof cosmos.gov.v1.Deposit * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {cosmos.base.v1beta1.DecCoin} DecCoin + * @returns {cosmos.gov.v1.Deposit} Deposit * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DecCoin.decodeDelimited = function decodeDelimited(reader) { + Deposit.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DecCoin message. + * Verifies a Deposit message. * @function verify - * @memberof cosmos.base.v1beta1.DecCoin + * @memberof cosmos.gov.v1.Deposit * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DecCoin.verify = function verify(message) { + Deposit.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.denom != null && message.hasOwnProperty("denom")) - if (!$util.isString(message.denom)) - return "denom: string expected"; - if (message.amount != null && message.hasOwnProperty("amount")) - if (!$util.isString(message.amount)) - return "amount: string expected"; + if (message.proposal_id != null && message.hasOwnProperty("proposal_id")) + if (!$util.isInteger(message.proposal_id) && !(message.proposal_id && $util.isInteger(message.proposal_id.low) && $util.isInteger(message.proposal_id.high))) + return "proposal_id: integer|Long expected"; + if (message.depositor != null && message.hasOwnProperty("depositor")) + if (!$util.isString(message.depositor)) + return "depositor: string expected"; + if (message.amount != null && message.hasOwnProperty("amount")) { + if (!Array.isArray(message.amount)) + return "amount: array expected"; + for (let i = 0; i < message.amount.length; ++i) { + let error = $root.cosmos.base.v1beta1.Coin.verify(message.amount[i]); + if (error) + return "amount." + error; + } + } return null; }; /** - * Creates a DecCoin message from a plain object. Also converts values to their respective internal types. + * Creates a Deposit message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof cosmos.base.v1beta1.DecCoin + * @memberof cosmos.gov.v1.Deposit * @static * @param {Object.} object Plain object - * @returns {cosmos.base.v1beta1.DecCoin} DecCoin + * @returns {cosmos.gov.v1.Deposit} Deposit */ - DecCoin.fromObject = function fromObject(object) { - if (object instanceof $root.cosmos.base.v1beta1.DecCoin) + Deposit.fromObject = function fromObject(object) { + if (object instanceof $root.cosmos.gov.v1.Deposit) return object; - let message = new $root.cosmos.base.v1beta1.DecCoin(); - if (object.denom != null) - message.denom = String(object.denom); - if (object.amount != null) - message.amount = String(object.amount); + let message = new $root.cosmos.gov.v1.Deposit(); + if (object.proposal_id != null) + if ($util.Long) + (message.proposal_id = $util.Long.fromValue(object.proposal_id)).unsigned = true; + else if (typeof object.proposal_id === "string") + message.proposal_id = parseInt(object.proposal_id, 10); + else if (typeof object.proposal_id === "number") + message.proposal_id = object.proposal_id; + else if (typeof object.proposal_id === "object") + message.proposal_id = new $util.LongBits(object.proposal_id.low >>> 0, object.proposal_id.high >>> 0).toNumber(true); + if (object.depositor != null) + message.depositor = String(object.depositor); + if (object.amount) { + if (!Array.isArray(object.amount)) + throw TypeError(".cosmos.gov.v1.Deposit.amount: array expected"); + message.amount = []; + for (let i = 0; i < object.amount.length; ++i) { + if (typeof object.amount[i] !== "object") + throw TypeError(".cosmos.gov.v1.Deposit.amount: object expected"); + message.amount[i] = $root.cosmos.base.v1beta1.Coin.fromObject(object.amount[i]); + } + } return message; }; /** - * Creates a plain object from a DecCoin message. Also converts values to other types if specified. + * Creates a plain object from a Deposit message. Also converts values to other types if specified. * @function toObject - * @memberof cosmos.base.v1beta1.DecCoin + * @memberof cosmos.gov.v1.Deposit * @static - * @param {cosmos.base.v1beta1.DecCoin} message DecCoin + * @param {cosmos.gov.v1.Deposit} message Deposit * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DecCoin.toObject = function toObject(message, options) { + Deposit.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; + if (options.arrays || options.defaults) + object.amount = []; if (options.defaults) { - object.denom = ""; - object.amount = ""; + if ($util.Long) { + let long = new $util.Long(0, 0, true); + object.proposal_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.proposal_id = options.longs === String ? "0" : 0; + object.depositor = ""; + } + if (message.proposal_id != null && message.hasOwnProperty("proposal_id")) + if (typeof message.proposal_id === "number") + object.proposal_id = options.longs === String ? String(message.proposal_id) : message.proposal_id; + else + object.proposal_id = options.longs === String ? $util.Long.prototype.toString.call(message.proposal_id) : options.longs === Number ? new $util.LongBits(message.proposal_id.low >>> 0, message.proposal_id.high >>> 0).toNumber(true) : message.proposal_id; + if (message.depositor != null && message.hasOwnProperty("depositor")) + object.depositor = message.depositor; + if (message.amount && message.amount.length) { + object.amount = []; + for (let j = 0; j < message.amount.length; ++j) + object.amount[j] = $root.cosmos.base.v1beta1.Coin.toObject(message.amount[j], options); } - if (message.denom != null && message.hasOwnProperty("denom")) - object.denom = message.denom; - if (message.amount != null && message.hasOwnProperty("amount")) - object.amount = message.amount; return object; }; /** - * Converts this DecCoin to JSON. + * Converts this Deposit to JSON. * @function toJSON - * @memberof cosmos.base.v1beta1.DecCoin + * @memberof cosmos.gov.v1.Deposit * @instance * @returns {Object.} JSON object */ - DecCoin.prototype.toJSON = function toJSON() { + Deposit.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DecCoin; + return Deposit; })(); - v1beta1.IntProto = (function() { + v1.Proposal = (function() { /** - * Properties of an IntProto. - * @memberof cosmos.base.v1beta1 - * @interface IIntProto - * @property {string|null} [int] IntProto int + * Properties of a Proposal. + * @memberof cosmos.gov.v1 + * @interface IProposal + * @property {Long|null} [id] Proposal id + * @property {Array.|null} [messages] Proposal messages + * @property {cosmos.gov.v1.ProposalStatus|null} [status] Proposal status + * @property {cosmos.gov.v1.ITallyResult|null} [final_tally_result] Proposal final_tally_result + * @property {google.protobuf.ITimestamp|null} [submit_time] Proposal submit_time + * @property {google.protobuf.ITimestamp|null} [deposit_end_time] Proposal deposit_end_time + * @property {Array.|null} [total_deposit] Proposal total_deposit + * @property {google.protobuf.ITimestamp|null} [voting_start_time] Proposal voting_start_time + * @property {google.protobuf.ITimestamp|null} [voting_end_time] Proposal voting_end_time + * @property {string|null} [metadata] Proposal metadata + * @property {string|null} [title] Proposal title + * @property {string|null} [summary] Proposal summary + * @property {string|null} [proposer] Proposal proposer */ /** - * Constructs a new IntProto. - * @memberof cosmos.base.v1beta1 - * @classdesc Represents an IntProto. - * @implements IIntProto + * Constructs a new Proposal. + * @memberof cosmos.gov.v1 + * @classdesc Represents a Proposal. + * @implements IProposal * @constructor - * @param {cosmos.base.v1beta1.IIntProto=} [properties] Properties to set + * @param {cosmos.gov.v1.IProposal=} [properties] Properties to set */ - function IntProto(properties) { + function Proposal(properties) { + this.messages = []; + this.total_deposit = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -5040,63 +6162,225 @@ export const cosmos = $root.cosmos = (() => { } /** - * IntProto int. - * @member {string} int - * @memberof cosmos.base.v1beta1.IntProto + * Proposal id. + * @member {Long} id + * @memberof cosmos.gov.v1.Proposal * @instance */ - IntProto.prototype.int = ""; + Proposal.prototype.id = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** - * Encodes the specified IntProto message. Does not implicitly {@link cosmos.base.v1beta1.IntProto.verify|verify} messages. + * Proposal messages. + * @member {Array.} messages + * @memberof cosmos.gov.v1.Proposal + * @instance + */ + Proposal.prototype.messages = $util.emptyArray; + + /** + * Proposal status. + * @member {cosmos.gov.v1.ProposalStatus} status + * @memberof cosmos.gov.v1.Proposal + * @instance + */ + Proposal.prototype.status = 0; + + /** + * Proposal final_tally_result. + * @member {cosmos.gov.v1.ITallyResult|null|undefined} final_tally_result + * @memberof cosmos.gov.v1.Proposal + * @instance + */ + Proposal.prototype.final_tally_result = null; + + /** + * Proposal submit_time. + * @member {google.protobuf.ITimestamp|null|undefined} submit_time + * @memberof cosmos.gov.v1.Proposal + * @instance + */ + Proposal.prototype.submit_time = null; + + /** + * Proposal deposit_end_time. + * @member {google.protobuf.ITimestamp|null|undefined} deposit_end_time + * @memberof cosmos.gov.v1.Proposal + * @instance + */ + Proposal.prototype.deposit_end_time = null; + + /** + * Proposal total_deposit. + * @member {Array.} total_deposit + * @memberof cosmos.gov.v1.Proposal + * @instance + */ + Proposal.prototype.total_deposit = $util.emptyArray; + + /** + * Proposal voting_start_time. + * @member {google.protobuf.ITimestamp|null|undefined} voting_start_time + * @memberof cosmos.gov.v1.Proposal + * @instance + */ + Proposal.prototype.voting_start_time = null; + + /** + * Proposal voting_end_time. + * @member {google.protobuf.ITimestamp|null|undefined} voting_end_time + * @memberof cosmos.gov.v1.Proposal + * @instance + */ + Proposal.prototype.voting_end_time = null; + + /** + * Proposal metadata. + * @member {string} metadata + * @memberof cosmos.gov.v1.Proposal + * @instance + */ + Proposal.prototype.metadata = ""; + + /** + * Proposal title. + * @member {string} title + * @memberof cosmos.gov.v1.Proposal + * @instance + */ + Proposal.prototype.title = ""; + + /** + * Proposal summary. + * @member {string} summary + * @memberof cosmos.gov.v1.Proposal + * @instance + */ + Proposal.prototype.summary = ""; + + /** + * Proposal proposer. + * @member {string} proposer + * @memberof cosmos.gov.v1.Proposal + * @instance + */ + Proposal.prototype.proposer = ""; + + /** + * Encodes the specified Proposal message. Does not implicitly {@link cosmos.gov.v1.Proposal.verify|verify} messages. * @function encode - * @memberof cosmos.base.v1beta1.IntProto + * @memberof cosmos.gov.v1.Proposal * @static - * @param {cosmos.base.v1beta1.IIntProto} message IntProto message or plain object to encode + * @param {cosmos.gov.v1.IProposal} message Proposal message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - IntProto.encode = function encode(message, writer) { + Proposal.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.int != null && Object.hasOwnProperty.call(message, "int")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.int); + if (message.id != null && Object.hasOwnProperty.call(message, "id")) + writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.id); + if (message.messages != null && message.messages.length) + for (let i = 0; i < message.messages.length; ++i) + $root.google.protobuf.Any.encode(message.messages[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.status != null && Object.hasOwnProperty.call(message, "status")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.status); + if (message.final_tally_result != null && Object.hasOwnProperty.call(message, "final_tally_result")) + $root.cosmos.gov.v1.TallyResult.encode(message.final_tally_result, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.submit_time != null && Object.hasOwnProperty.call(message, "submit_time")) + $root.google.protobuf.Timestamp.encode(message.submit_time, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.deposit_end_time != null && Object.hasOwnProperty.call(message, "deposit_end_time")) + $root.google.protobuf.Timestamp.encode(message.deposit_end_time, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.total_deposit != null && message.total_deposit.length) + for (let i = 0; i < message.total_deposit.length; ++i) + $root.cosmos.base.v1beta1.Coin.encode(message.total_deposit[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.voting_start_time != null && Object.hasOwnProperty.call(message, "voting_start_time")) + $root.google.protobuf.Timestamp.encode(message.voting_start_time, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.voting_end_time != null && Object.hasOwnProperty.call(message, "voting_end_time")) + $root.google.protobuf.Timestamp.encode(message.voting_end_time, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata")) + writer.uint32(/* id 10, wireType 2 =*/82).string(message.metadata); + if (message.title != null && Object.hasOwnProperty.call(message, "title")) + writer.uint32(/* id 11, wireType 2 =*/90).string(message.title); + if (message.summary != null && Object.hasOwnProperty.call(message, "summary")) + writer.uint32(/* id 12, wireType 2 =*/98).string(message.summary); + if (message.proposer != null && Object.hasOwnProperty.call(message, "proposer")) + writer.uint32(/* id 13, wireType 2 =*/106).string(message.proposer); return writer; }; /** - * Encodes the specified IntProto message, length delimited. Does not implicitly {@link cosmos.base.v1beta1.IntProto.verify|verify} messages. + * Encodes the specified Proposal message, length delimited. Does not implicitly {@link cosmos.gov.v1.Proposal.verify|verify} messages. * @function encodeDelimited - * @memberof cosmos.base.v1beta1.IntProto + * @memberof cosmos.gov.v1.Proposal * @static - * @param {cosmos.base.v1beta1.IIntProto} message IntProto message or plain object to encode + * @param {cosmos.gov.v1.IProposal} message Proposal message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - IntProto.encodeDelimited = function encodeDelimited(message, writer) { + Proposal.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an IntProto message from the specified reader or buffer. + * Decodes a Proposal message from the specified reader or buffer. * @function decode - * @memberof cosmos.base.v1beta1.IntProto + * @memberof cosmos.gov.v1.Proposal * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {cosmos.base.v1beta1.IntProto} IntProto + * @returns {cosmos.gov.v1.Proposal} Proposal * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - IntProto.decode = function decode(reader, length) { + Proposal.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.cosmos.base.v1beta1.IntProto(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.cosmos.gov.v1.Proposal(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.int = reader.string(); + message.id = reader.uint64(); + break; + case 2: + if (!(message.messages && message.messages.length)) + message.messages = []; + message.messages.push($root.google.protobuf.Any.decode(reader, reader.uint32())); + break; + case 3: + message.status = reader.int32(); + break; + case 4: + message.final_tally_result = $root.cosmos.gov.v1.TallyResult.decode(reader, reader.uint32()); + break; + case 5: + message.submit_time = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 6: + message.deposit_end_time = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 7: + if (!(message.total_deposit && message.total_deposit.length)) + message.total_deposit = []; + message.total_deposit.push($root.cosmos.base.v1beta1.Coin.decode(reader, reader.uint32())); + break; + case 8: + message.voting_start_time = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 9: + message.voting_end_time = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 10: + message.metadata = reader.string(); + break; + case 11: + message.title = reader.string(); + break; + case 12: + message.summary = reader.string(); + break; + case 13: + message.proposer = reader.string(); break; default: reader.skipType(tag & 7); @@ -5107,107 +6391,337 @@ export const cosmos = $root.cosmos = (() => { }; /** - * Decodes an IntProto message from the specified reader or buffer, length delimited. + * Decodes a Proposal message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof cosmos.base.v1beta1.IntProto + * @memberof cosmos.gov.v1.Proposal * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {cosmos.base.v1beta1.IntProto} IntProto + * @returns {cosmos.gov.v1.Proposal} Proposal * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - IntProto.decodeDelimited = function decodeDelimited(reader) { + Proposal.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an IntProto message. + * Verifies a Proposal message. * @function verify - * @memberof cosmos.base.v1beta1.IntProto + * @memberof cosmos.gov.v1.Proposal * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - IntProto.verify = function verify(message) { + Proposal.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.int != null && message.hasOwnProperty("int")) - if (!$util.isString(message.int)) - return "int: string expected"; + if (message.id != null && message.hasOwnProperty("id")) + if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high))) + return "id: integer|Long expected"; + if (message.messages != null && message.hasOwnProperty("messages")) { + if (!Array.isArray(message.messages)) + return "messages: array expected"; + for (let i = 0; i < message.messages.length; ++i) { + let error = $root.google.protobuf.Any.verify(message.messages[i]); + if (error) + return "messages." + error; + } + } + if (message.status != null && message.hasOwnProperty("status")) + switch (message.status) { + default: + return "status: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + break; + } + if (message.final_tally_result != null && message.hasOwnProperty("final_tally_result")) { + let error = $root.cosmos.gov.v1.TallyResult.verify(message.final_tally_result); + if (error) + return "final_tally_result." + error; + } + if (message.submit_time != null && message.hasOwnProperty("submit_time")) { + let error = $root.google.protobuf.Timestamp.verify(message.submit_time); + if (error) + return "submit_time." + error; + } + if (message.deposit_end_time != null && message.hasOwnProperty("deposit_end_time")) { + let error = $root.google.protobuf.Timestamp.verify(message.deposit_end_time); + if (error) + return "deposit_end_time." + error; + } + if (message.total_deposit != null && message.hasOwnProperty("total_deposit")) { + if (!Array.isArray(message.total_deposit)) + return "total_deposit: array expected"; + for (let i = 0; i < message.total_deposit.length; ++i) { + let error = $root.cosmos.base.v1beta1.Coin.verify(message.total_deposit[i]); + if (error) + return "total_deposit." + error; + } + } + if (message.voting_start_time != null && message.hasOwnProperty("voting_start_time")) { + let error = $root.google.protobuf.Timestamp.verify(message.voting_start_time); + if (error) + return "voting_start_time." + error; + } + if (message.voting_end_time != null && message.hasOwnProperty("voting_end_time")) { + let error = $root.google.protobuf.Timestamp.verify(message.voting_end_time); + if (error) + return "voting_end_time." + error; + } + if (message.metadata != null && message.hasOwnProperty("metadata")) + if (!$util.isString(message.metadata)) + return "metadata: string expected"; + if (message.title != null && message.hasOwnProperty("title")) + if (!$util.isString(message.title)) + return "title: string expected"; + if (message.summary != null && message.hasOwnProperty("summary")) + if (!$util.isString(message.summary)) + return "summary: string expected"; + if (message.proposer != null && message.hasOwnProperty("proposer")) + if (!$util.isString(message.proposer)) + return "proposer: string expected"; return null; }; /** - * Creates an IntProto message from a plain object. Also converts values to their respective internal types. + * Creates a Proposal message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof cosmos.base.v1beta1.IntProto + * @memberof cosmos.gov.v1.Proposal * @static * @param {Object.} object Plain object - * @returns {cosmos.base.v1beta1.IntProto} IntProto + * @returns {cosmos.gov.v1.Proposal} Proposal */ - IntProto.fromObject = function fromObject(object) { - if (object instanceof $root.cosmos.base.v1beta1.IntProto) + Proposal.fromObject = function fromObject(object) { + if (object instanceof $root.cosmos.gov.v1.Proposal) return object; - let message = new $root.cosmos.base.v1beta1.IntProto(); - if (object.int != null) - message.int = String(object.int); + let message = new $root.cosmos.gov.v1.Proposal(); + if (object.id != null) + if ($util.Long) + (message.id = $util.Long.fromValue(object.id)).unsigned = true; + else if (typeof object.id === "string") + message.id = parseInt(object.id, 10); + else if (typeof object.id === "number") + message.id = object.id; + else if (typeof object.id === "object") + message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber(true); + if (object.messages) { + if (!Array.isArray(object.messages)) + throw TypeError(".cosmos.gov.v1.Proposal.messages: array expected"); + message.messages = []; + for (let i = 0; i < object.messages.length; ++i) { + if (typeof object.messages[i] !== "object") + throw TypeError(".cosmos.gov.v1.Proposal.messages: object expected"); + message.messages[i] = $root.google.protobuf.Any.fromObject(object.messages[i]); + } + } + switch (object.status) { + case "PROPOSAL_STATUS_UNSPECIFIED": + case 0: + message.status = 0; + break; + case "PROPOSAL_STATUS_DEPOSIT_PERIOD": + case 1: + message.status = 1; + break; + case "PROPOSAL_STATUS_VOTING_PERIOD": + case 2: + message.status = 2; + break; + case "PROPOSAL_STATUS_PASSED": + case 3: + message.status = 3; + break; + case "PROPOSAL_STATUS_REJECTED": + case 4: + message.status = 4; + break; + case "PROPOSAL_STATUS_FAILED": + case 5: + message.status = 5; + break; + } + if (object.final_tally_result != null) { + if (typeof object.final_tally_result !== "object") + throw TypeError(".cosmos.gov.v1.Proposal.final_tally_result: object expected"); + message.final_tally_result = $root.cosmos.gov.v1.TallyResult.fromObject(object.final_tally_result); + } + if (object.submit_time != null) { + if (typeof object.submit_time !== "object") + throw TypeError(".cosmos.gov.v1.Proposal.submit_time: object expected"); + message.submit_time = $root.google.protobuf.Timestamp.fromObject(object.submit_time); + } + if (object.deposit_end_time != null) { + if (typeof object.deposit_end_time !== "object") + throw TypeError(".cosmos.gov.v1.Proposal.deposit_end_time: object expected"); + message.deposit_end_time = $root.google.protobuf.Timestamp.fromObject(object.deposit_end_time); + } + if (object.total_deposit) { + if (!Array.isArray(object.total_deposit)) + throw TypeError(".cosmos.gov.v1.Proposal.total_deposit: array expected"); + message.total_deposit = []; + for (let i = 0; i < object.total_deposit.length; ++i) { + if (typeof object.total_deposit[i] !== "object") + throw TypeError(".cosmos.gov.v1.Proposal.total_deposit: object expected"); + message.total_deposit[i] = $root.cosmos.base.v1beta1.Coin.fromObject(object.total_deposit[i]); + } + } + if (object.voting_start_time != null) { + if (typeof object.voting_start_time !== "object") + throw TypeError(".cosmos.gov.v1.Proposal.voting_start_time: object expected"); + message.voting_start_time = $root.google.protobuf.Timestamp.fromObject(object.voting_start_time); + } + if (object.voting_end_time != null) { + if (typeof object.voting_end_time !== "object") + throw TypeError(".cosmos.gov.v1.Proposal.voting_end_time: object expected"); + message.voting_end_time = $root.google.protobuf.Timestamp.fromObject(object.voting_end_time); + } + if (object.metadata != null) + message.metadata = String(object.metadata); + if (object.title != null) + message.title = String(object.title); + if (object.summary != null) + message.summary = String(object.summary); + if (object.proposer != null) + message.proposer = String(object.proposer); return message; }; /** - * Creates a plain object from an IntProto message. Also converts values to other types if specified. + * Creates a plain object from a Proposal message. Also converts values to other types if specified. * @function toObject - * @memberof cosmos.base.v1beta1.IntProto + * @memberof cosmos.gov.v1.Proposal * @static - * @param {cosmos.base.v1beta1.IntProto} message IntProto + * @param {cosmos.gov.v1.Proposal} message Proposal * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - IntProto.toObject = function toObject(message, options) { + Proposal.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) - object.int = ""; - if (message.int != null && message.hasOwnProperty("int")) - object.int = message.int; + if (options.arrays || options.defaults) { + object.messages = []; + object.total_deposit = []; + } + if (options.defaults) { + if ($util.Long) { + let long = new $util.Long(0, 0, true); + object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.id = options.longs === String ? "0" : 0; + object.status = options.enums === String ? "PROPOSAL_STATUS_UNSPECIFIED" : 0; + object.final_tally_result = null; + object.submit_time = null; + object.deposit_end_time = null; + object.voting_start_time = null; + object.voting_end_time = null; + object.metadata = ""; + object.title = ""; + object.summary = ""; + object.proposer = ""; + } + if (message.id != null && message.hasOwnProperty("id")) + if (typeof message.id === "number") + object.id = options.longs === String ? String(message.id) : message.id; + else + object.id = options.longs === String ? $util.Long.prototype.toString.call(message.id) : options.longs === Number ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber(true) : message.id; + if (message.messages && message.messages.length) { + object.messages = []; + for (let j = 0; j < message.messages.length; ++j) + object.messages[j] = $root.google.protobuf.Any.toObject(message.messages[j], options); + } + if (message.status != null && message.hasOwnProperty("status")) + object.status = options.enums === String ? $root.cosmos.gov.v1.ProposalStatus[message.status] : message.status; + if (message.final_tally_result != null && message.hasOwnProperty("final_tally_result")) + object.final_tally_result = $root.cosmos.gov.v1.TallyResult.toObject(message.final_tally_result, options); + if (message.submit_time != null && message.hasOwnProperty("submit_time")) + object.submit_time = $root.google.protobuf.Timestamp.toObject(message.submit_time, options); + if (message.deposit_end_time != null && message.hasOwnProperty("deposit_end_time")) + object.deposit_end_time = $root.google.protobuf.Timestamp.toObject(message.deposit_end_time, options); + if (message.total_deposit && message.total_deposit.length) { + object.total_deposit = []; + for (let j = 0; j < message.total_deposit.length; ++j) + object.total_deposit[j] = $root.cosmos.base.v1beta1.Coin.toObject(message.total_deposit[j], options); + } + if (message.voting_start_time != null && message.hasOwnProperty("voting_start_time")) + object.voting_start_time = $root.google.protobuf.Timestamp.toObject(message.voting_start_time, options); + if (message.voting_end_time != null && message.hasOwnProperty("voting_end_time")) + object.voting_end_time = $root.google.protobuf.Timestamp.toObject(message.voting_end_time, options); + if (message.metadata != null && message.hasOwnProperty("metadata")) + object.metadata = message.metadata; + if (message.title != null && message.hasOwnProperty("title")) + object.title = message.title; + if (message.summary != null && message.hasOwnProperty("summary")) + object.summary = message.summary; + if (message.proposer != null && message.hasOwnProperty("proposer")) + object.proposer = message.proposer; return object; }; /** - * Converts this IntProto to JSON. + * Converts this Proposal to JSON. * @function toJSON - * @memberof cosmos.base.v1beta1.IntProto + * @memberof cosmos.gov.v1.Proposal * @instance * @returns {Object.} JSON object */ - IntProto.prototype.toJSON = function toJSON() { + Proposal.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return IntProto; + return Proposal; })(); - v1beta1.DecProto = (function() { + /** + * ProposalStatus enum. + * @name cosmos.gov.v1.ProposalStatus + * @enum {number} + * @property {number} PROPOSAL_STATUS_UNSPECIFIED=0 PROPOSAL_STATUS_UNSPECIFIED value + * @property {number} PROPOSAL_STATUS_DEPOSIT_PERIOD=1 PROPOSAL_STATUS_DEPOSIT_PERIOD value + * @property {number} PROPOSAL_STATUS_VOTING_PERIOD=2 PROPOSAL_STATUS_VOTING_PERIOD value + * @property {number} PROPOSAL_STATUS_PASSED=3 PROPOSAL_STATUS_PASSED value + * @property {number} PROPOSAL_STATUS_REJECTED=4 PROPOSAL_STATUS_REJECTED value + * @property {number} PROPOSAL_STATUS_FAILED=5 PROPOSAL_STATUS_FAILED value + */ + v1.ProposalStatus = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "PROPOSAL_STATUS_UNSPECIFIED"] = 0; + values[valuesById[1] = "PROPOSAL_STATUS_DEPOSIT_PERIOD"] = 1; + values[valuesById[2] = "PROPOSAL_STATUS_VOTING_PERIOD"] = 2; + values[valuesById[3] = "PROPOSAL_STATUS_PASSED"] = 3; + values[valuesById[4] = "PROPOSAL_STATUS_REJECTED"] = 4; + values[valuesById[5] = "PROPOSAL_STATUS_FAILED"] = 5; + return values; + })(); + + v1.TallyResult = (function() { /** - * Properties of a DecProto. - * @memberof cosmos.base.v1beta1 - * @interface IDecProto - * @property {string|null} [dec] DecProto dec + * Properties of a TallyResult. + * @memberof cosmos.gov.v1 + * @interface ITallyResult + * @property {string|null} [yes_count] TallyResult yes_count + * @property {string|null} [abstain_count] TallyResult abstain_count + * @property {string|null} [no_count] TallyResult no_count + * @property {string|null} [no_with_veto_count] TallyResult no_with_veto_count */ /** - * Constructs a new DecProto. - * @memberof cosmos.base.v1beta1 - * @classdesc Represents a DecProto. - * @implements IDecProto + * Constructs a new TallyResult. + * @memberof cosmos.gov.v1 + * @classdesc Represents a TallyResult. + * @implements ITallyResult * @constructor - * @param {cosmos.base.v1beta1.IDecProto=} [properties] Properties to set + * @param {cosmos.gov.v1.ITallyResult=} [properties] Properties to set */ - function DecProto(properties) { + function TallyResult(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -5215,63 +6729,102 @@ export const cosmos = $root.cosmos = (() => { } /** - * DecProto dec. - * @member {string} dec - * @memberof cosmos.base.v1beta1.DecProto + * TallyResult yes_count. + * @member {string} yes_count + * @memberof cosmos.gov.v1.TallyResult * @instance */ - DecProto.prototype.dec = ""; + TallyResult.prototype.yes_count = ""; /** - * Encodes the specified DecProto message. Does not implicitly {@link cosmos.base.v1beta1.DecProto.verify|verify} messages. + * TallyResult abstain_count. + * @member {string} abstain_count + * @memberof cosmos.gov.v1.TallyResult + * @instance + */ + TallyResult.prototype.abstain_count = ""; + + /** + * TallyResult no_count. + * @member {string} no_count + * @memberof cosmos.gov.v1.TallyResult + * @instance + */ + TallyResult.prototype.no_count = ""; + + /** + * TallyResult no_with_veto_count. + * @member {string} no_with_veto_count + * @memberof cosmos.gov.v1.TallyResult + * @instance + */ + TallyResult.prototype.no_with_veto_count = ""; + + /** + * Encodes the specified TallyResult message. Does not implicitly {@link cosmos.gov.v1.TallyResult.verify|verify} messages. * @function encode - * @memberof cosmos.base.v1beta1.DecProto + * @memberof cosmos.gov.v1.TallyResult * @static - * @param {cosmos.base.v1beta1.IDecProto} message DecProto message or plain object to encode + * @param {cosmos.gov.v1.ITallyResult} message TallyResult message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DecProto.encode = function encode(message, writer) { + TallyResult.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.dec != null && Object.hasOwnProperty.call(message, "dec")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.dec); + if (message.yes_count != null && Object.hasOwnProperty.call(message, "yes_count")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.yes_count); + if (message.abstain_count != null && Object.hasOwnProperty.call(message, "abstain_count")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.abstain_count); + if (message.no_count != null && Object.hasOwnProperty.call(message, "no_count")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.no_count); + if (message.no_with_veto_count != null && Object.hasOwnProperty.call(message, "no_with_veto_count")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.no_with_veto_count); return writer; }; /** - * Encodes the specified DecProto message, length delimited. Does not implicitly {@link cosmos.base.v1beta1.DecProto.verify|verify} messages. + * Encodes the specified TallyResult message, length delimited. Does not implicitly {@link cosmos.gov.v1.TallyResult.verify|verify} messages. * @function encodeDelimited - * @memberof cosmos.base.v1beta1.DecProto + * @memberof cosmos.gov.v1.TallyResult * @static - * @param {cosmos.base.v1beta1.IDecProto} message DecProto message or plain object to encode + * @param {cosmos.gov.v1.ITallyResult} message TallyResult message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DecProto.encodeDelimited = function encodeDelimited(message, writer) { + TallyResult.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DecProto message from the specified reader or buffer. + * Decodes a TallyResult message from the specified reader or buffer. * @function decode - * @memberof cosmos.base.v1beta1.DecProto + * @memberof cosmos.gov.v1.TallyResult * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {cosmos.base.v1beta1.DecProto} DecProto + * @returns {cosmos.gov.v1.TallyResult} TallyResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DecProto.decode = function decode(reader, length) { + TallyResult.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.cosmos.base.v1beta1.DecProto(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.cosmos.gov.v1.TallyResult(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.dec = reader.string(); + message.yes_count = reader.string(); + break; + case 2: + message.abstain_count = reader.string(); + break; + case 3: + message.no_count = reader.string(); + break; + case 4: + message.no_with_veto_count = reader.string(); break; default: reader.skipType(tag & 7); @@ -5282,761 +6835,492 @@ export const cosmos = $root.cosmos = (() => { }; /** - * Decodes a DecProto message from the specified reader or buffer, length delimited. + * Decodes a TallyResult message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof cosmos.base.v1beta1.DecProto + * @memberof cosmos.gov.v1.TallyResult * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {cosmos.base.v1beta1.DecProto} DecProto + * @returns {cosmos.gov.v1.TallyResult} TallyResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DecProto.decodeDelimited = function decodeDelimited(reader) { + TallyResult.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DecProto message. + * Verifies a TallyResult message. * @function verify - * @memberof cosmos.base.v1beta1.DecProto + * @memberof cosmos.gov.v1.TallyResult * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DecProto.verify = function verify(message) { + TallyResult.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.dec != null && message.hasOwnProperty("dec")) - if (!$util.isString(message.dec)) - return "dec: string expected"; + if (message.yes_count != null && message.hasOwnProperty("yes_count")) + if (!$util.isString(message.yes_count)) + return "yes_count: string expected"; + if (message.abstain_count != null && message.hasOwnProperty("abstain_count")) + if (!$util.isString(message.abstain_count)) + return "abstain_count: string expected"; + if (message.no_count != null && message.hasOwnProperty("no_count")) + if (!$util.isString(message.no_count)) + return "no_count: string expected"; + if (message.no_with_veto_count != null && message.hasOwnProperty("no_with_veto_count")) + if (!$util.isString(message.no_with_veto_count)) + return "no_with_veto_count: string expected"; return null; }; /** - * Creates a DecProto message from a plain object. Also converts values to their respective internal types. + * Creates a TallyResult message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof cosmos.base.v1beta1.DecProto + * @memberof cosmos.gov.v1.TallyResult * @static * @param {Object.} object Plain object - * @returns {cosmos.base.v1beta1.DecProto} DecProto + * @returns {cosmos.gov.v1.TallyResult} TallyResult */ - DecProto.fromObject = function fromObject(object) { - if (object instanceof $root.cosmos.base.v1beta1.DecProto) + TallyResult.fromObject = function fromObject(object) { + if (object instanceof $root.cosmos.gov.v1.TallyResult) return object; - let message = new $root.cosmos.base.v1beta1.DecProto(); - if (object.dec != null) - message.dec = String(object.dec); + let message = new $root.cosmos.gov.v1.TallyResult(); + if (object.yes_count != null) + message.yes_count = String(object.yes_count); + if (object.abstain_count != null) + message.abstain_count = String(object.abstain_count); + if (object.no_count != null) + message.no_count = String(object.no_count); + if (object.no_with_veto_count != null) + message.no_with_veto_count = String(object.no_with_veto_count); return message; }; /** - * Creates a plain object from a DecProto message. Also converts values to other types if specified. + * Creates a plain object from a TallyResult message. Also converts values to other types if specified. * @function toObject - * @memberof cosmos.base.v1beta1.DecProto + * @memberof cosmos.gov.v1.TallyResult * @static - * @param {cosmos.base.v1beta1.DecProto} message DecProto + * @param {cosmos.gov.v1.TallyResult} message TallyResult * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DecProto.toObject = function toObject(message, options) { + TallyResult.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) - object.dec = ""; - if (message.dec != null && message.hasOwnProperty("dec")) - object.dec = message.dec; + if (options.defaults) { + object.yes_count = ""; + object.abstain_count = ""; + object.no_count = ""; + object.no_with_veto_count = ""; + } + if (message.yes_count != null && message.hasOwnProperty("yes_count")) + object.yes_count = message.yes_count; + if (message.abstain_count != null && message.hasOwnProperty("abstain_count")) + object.abstain_count = message.abstain_count; + if (message.no_count != null && message.hasOwnProperty("no_count")) + object.no_count = message.no_count; + if (message.no_with_veto_count != null && message.hasOwnProperty("no_with_veto_count")) + object.no_with_veto_count = message.no_with_veto_count; return object; }; /** - * Converts this DecProto to JSON. + * Converts this TallyResult to JSON. * @function toJSON - * @memberof cosmos.base.v1beta1.DecProto + * @memberof cosmos.gov.v1.TallyResult * @instance * @returns {Object.} JSON object */ - DecProto.prototype.toJSON = function toJSON() { + TallyResult.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DecProto; + return TallyResult; })(); - return v1beta1; - })(); + v1.Vote = (function() { - base.query = (function() { + /** + * Properties of a Vote. + * @memberof cosmos.gov.v1 + * @interface IVote + * @property {Long|null} [proposal_id] Vote proposal_id + * @property {string|null} [voter] Vote voter + * @property {Array.|null} [options] Vote options + * @property {string|null} [metadata] Vote metadata + */ - /** - * Namespace query. - * @memberof cosmos.base - * @namespace - */ - const query = {}; + /** + * Constructs a new Vote. + * @memberof cosmos.gov.v1 + * @classdesc Represents a Vote. + * @implements IVote + * @constructor + * @param {cosmos.gov.v1.IVote=} [properties] Properties to set + */ + function Vote(properties) { + this.options = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - query.v1beta1 = (function() { + /** + * Vote proposal_id. + * @member {Long} proposal_id + * @memberof cosmos.gov.v1.Vote + * @instance + */ + Vote.prototype.proposal_id = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** - * Namespace v1beta1. - * @memberof cosmos.base.query - * @namespace + * Vote voter. + * @member {string} voter + * @memberof cosmos.gov.v1.Vote + * @instance */ - const v1beta1 = {}; + Vote.prototype.voter = ""; - v1beta1.PageRequest = (function() { + /** + * Vote options. + * @member {Array.} options + * @memberof cosmos.gov.v1.Vote + * @instance + */ + Vote.prototype.options = $util.emptyArray; - /** - * Properties of a PageRequest. - * @memberof cosmos.base.query.v1beta1 - * @interface IPageRequest - * @property {Uint8Array|null} [key] PageRequest key - * @property {Long|null} [offset] PageRequest offset - * @property {Long|null} [limit] PageRequest limit - * @property {boolean|null} [count_total] PageRequest count_total - */ - - /** - * Constructs a new PageRequest. - * @memberof cosmos.base.query.v1beta1 - * @classdesc Represents a PageRequest. - * @implements IPageRequest - * @constructor - * @param {cosmos.base.query.v1beta1.IPageRequest=} [properties] Properties to set - */ - function PageRequest(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * PageRequest key. - * @member {Uint8Array} key - * @memberof cosmos.base.query.v1beta1.PageRequest - * @instance - */ - PageRequest.prototype.key = $util.newBuffer([]); - - /** - * PageRequest offset. - * @member {Long} offset - * @memberof cosmos.base.query.v1beta1.PageRequest - * @instance - */ - PageRequest.prototype.offset = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + /** + * Vote metadata. + * @member {string} metadata + * @memberof cosmos.gov.v1.Vote + * @instance + */ + Vote.prototype.metadata = ""; - /** - * PageRequest limit. - * @member {Long} limit - * @memberof cosmos.base.query.v1beta1.PageRequest - * @instance - */ - PageRequest.prototype.limit = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + /** + * Encodes the specified Vote message. Does not implicitly {@link cosmos.gov.v1.Vote.verify|verify} messages. + * @function encode + * @memberof cosmos.gov.v1.Vote + * @static + * @param {cosmos.gov.v1.IVote} message Vote message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Vote.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.proposal_id != null && Object.hasOwnProperty.call(message, "proposal_id")) + writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.proposal_id); + if (message.voter != null && Object.hasOwnProperty.call(message, "voter")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.voter); + if (message.options != null && message.options.length) + for (let i = 0; i < message.options.length; ++i) + $root.cosmos.gov.v1.WeightedVoteOption.encode(message.options[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.metadata); + return writer; + }; - /** - * PageRequest count_total. - * @member {boolean} count_total - * @memberof cosmos.base.query.v1beta1.PageRequest - * @instance - */ - PageRequest.prototype.count_total = false; + /** + * Encodes the specified Vote message, length delimited. Does not implicitly {@link cosmos.gov.v1.Vote.verify|verify} messages. + * @function encodeDelimited + * @memberof cosmos.gov.v1.Vote + * @static + * @param {cosmos.gov.v1.IVote} message Vote message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Vote.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Encodes the specified PageRequest message. Does not implicitly {@link cosmos.base.query.v1beta1.PageRequest.verify|verify} messages. - * @function encode - * @memberof cosmos.base.query.v1beta1.PageRequest - * @static - * @param {cosmos.base.query.v1beta1.IPageRequest} message PageRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PageRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.key != null && Object.hasOwnProperty.call(message, "key")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.key); - if (message.offset != null && Object.hasOwnProperty.call(message, "offset")) - writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.offset); - if (message.limit != null && Object.hasOwnProperty.call(message, "limit")) - writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.limit); - if (message.count_total != null && Object.hasOwnProperty.call(message, "count_total")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.count_total); - return writer; - }; + /** + * Decodes a Vote message from the specified reader or buffer. + * @function decode + * @memberof cosmos.gov.v1.Vote + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {cosmos.gov.v1.Vote} Vote + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Vote.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.cosmos.gov.v1.Vote(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.proposal_id = reader.uint64(); + break; + case 2: + message.voter = reader.string(); + break; + case 4: + if (!(message.options && message.options.length)) + message.options = []; + message.options.push($root.cosmos.gov.v1.WeightedVoteOption.decode(reader, reader.uint32())); + break; + case 5: + message.metadata = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Encodes the specified PageRequest message, length delimited. Does not implicitly {@link cosmos.base.query.v1beta1.PageRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof cosmos.base.query.v1beta1.PageRequest - * @static - * @param {cosmos.base.query.v1beta1.IPageRequest} message PageRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PageRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Decodes a Vote message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof cosmos.gov.v1.Vote + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {cosmos.gov.v1.Vote} Vote + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Vote.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Decodes a PageRequest message from the specified reader or buffer. - * @function decode - * @memberof cosmos.base.query.v1beta1.PageRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {cosmos.base.query.v1beta1.PageRequest} PageRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PageRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.cosmos.base.query.v1beta1.PageRequest(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.key = reader.bytes(); - break; - case 2: - message.offset = reader.uint64(); - break; - case 3: - message.limit = reader.uint64(); - break; - case 4: - message.count_total = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } + /** + * Verifies a Vote message. + * @function verify + * @memberof cosmos.gov.v1.Vote + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Vote.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.proposal_id != null && message.hasOwnProperty("proposal_id")) + if (!$util.isInteger(message.proposal_id) && !(message.proposal_id && $util.isInteger(message.proposal_id.low) && $util.isInteger(message.proposal_id.high))) + return "proposal_id: integer|Long expected"; + if (message.voter != null && message.hasOwnProperty("voter")) + if (!$util.isString(message.voter)) + return "voter: string expected"; + if (message.options != null && message.hasOwnProperty("options")) { + if (!Array.isArray(message.options)) + return "options: array expected"; + for (let i = 0; i < message.options.length; ++i) { + let error = $root.cosmos.gov.v1.WeightedVoteOption.verify(message.options[i]); + if (error) + return "options." + error; } - return message; - }; + } + if (message.metadata != null && message.hasOwnProperty("metadata")) + if (!$util.isString(message.metadata)) + return "metadata: string expected"; + return null; + }; - /** - * Decodes a PageRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof cosmos.base.query.v1beta1.PageRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {cosmos.base.query.v1beta1.PageRequest} PageRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PageRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Creates a Vote message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof cosmos.gov.v1.Vote + * @static + * @param {Object.} object Plain object + * @returns {cosmos.gov.v1.Vote} Vote + */ + Vote.fromObject = function fromObject(object) { + if (object instanceof $root.cosmos.gov.v1.Vote) + return object; + let message = new $root.cosmos.gov.v1.Vote(); + if (object.proposal_id != null) + if ($util.Long) + (message.proposal_id = $util.Long.fromValue(object.proposal_id)).unsigned = true; + else if (typeof object.proposal_id === "string") + message.proposal_id = parseInt(object.proposal_id, 10); + else if (typeof object.proposal_id === "number") + message.proposal_id = object.proposal_id; + else if (typeof object.proposal_id === "object") + message.proposal_id = new $util.LongBits(object.proposal_id.low >>> 0, object.proposal_id.high >>> 0).toNumber(true); + if (object.voter != null) + message.voter = String(object.voter); + if (object.options) { + if (!Array.isArray(object.options)) + throw TypeError(".cosmos.gov.v1.Vote.options: array expected"); + message.options = []; + for (let i = 0; i < object.options.length; ++i) { + if (typeof object.options[i] !== "object") + throw TypeError(".cosmos.gov.v1.Vote.options: object expected"); + message.options[i] = $root.cosmos.gov.v1.WeightedVoteOption.fromObject(object.options[i]); + } + } + if (object.metadata != null) + message.metadata = String(object.metadata); + return message; + }; - /** - * Verifies a PageRequest message. - * @function verify - * @memberof cosmos.base.query.v1beta1.PageRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - PageRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.key != null && message.hasOwnProperty("key")) - if (!(message.key && typeof message.key.length === "number" || $util.isString(message.key))) - return "key: buffer expected"; - if (message.offset != null && message.hasOwnProperty("offset")) - if (!$util.isInteger(message.offset) && !(message.offset && $util.isInteger(message.offset.low) && $util.isInteger(message.offset.high))) - return "offset: integer|Long expected"; - if (message.limit != null && message.hasOwnProperty("limit")) - if (!$util.isInteger(message.limit) && !(message.limit && $util.isInteger(message.limit.low) && $util.isInteger(message.limit.high))) - return "limit: integer|Long expected"; - if (message.count_total != null && message.hasOwnProperty("count_total")) - if (typeof message.count_total !== "boolean") - return "count_total: boolean expected"; - return null; - }; + /** + * Creates a plain object from a Vote message. Also converts values to other types if specified. + * @function toObject + * @memberof cosmos.gov.v1.Vote + * @static + * @param {cosmos.gov.v1.Vote} message Vote + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Vote.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) + object.options = []; + if (options.defaults) { + if ($util.Long) { + let long = new $util.Long(0, 0, true); + object.proposal_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.proposal_id = options.longs === String ? "0" : 0; + object.voter = ""; + object.metadata = ""; + } + if (message.proposal_id != null && message.hasOwnProperty("proposal_id")) + if (typeof message.proposal_id === "number") + object.proposal_id = options.longs === String ? String(message.proposal_id) : message.proposal_id; + else + object.proposal_id = options.longs === String ? $util.Long.prototype.toString.call(message.proposal_id) : options.longs === Number ? new $util.LongBits(message.proposal_id.low >>> 0, message.proposal_id.high >>> 0).toNumber(true) : message.proposal_id; + if (message.voter != null && message.hasOwnProperty("voter")) + object.voter = message.voter; + if (message.options && message.options.length) { + object.options = []; + for (let j = 0; j < message.options.length; ++j) + object.options[j] = $root.cosmos.gov.v1.WeightedVoteOption.toObject(message.options[j], options); + } + if (message.metadata != null && message.hasOwnProperty("metadata")) + object.metadata = message.metadata; + return object; + }; - /** - * Creates a PageRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof cosmos.base.query.v1beta1.PageRequest - * @static - * @param {Object.} object Plain object - * @returns {cosmos.base.query.v1beta1.PageRequest} PageRequest - */ - PageRequest.fromObject = function fromObject(object) { - if (object instanceof $root.cosmos.base.query.v1beta1.PageRequest) - return object; - let message = new $root.cosmos.base.query.v1beta1.PageRequest(); - if (object.key != null) - if (typeof object.key === "string") - $util.base64.decode(object.key, message.key = $util.newBuffer($util.base64.length(object.key)), 0); - else if (object.key.length) - message.key = object.key; - if (object.offset != null) - if ($util.Long) - (message.offset = $util.Long.fromValue(object.offset)).unsigned = true; - else if (typeof object.offset === "string") - message.offset = parseInt(object.offset, 10); - else if (typeof object.offset === "number") - message.offset = object.offset; - else if (typeof object.offset === "object") - message.offset = new $util.LongBits(object.offset.low >>> 0, object.offset.high >>> 0).toNumber(true); - if (object.limit != null) - if ($util.Long) - (message.limit = $util.Long.fromValue(object.limit)).unsigned = true; - else if (typeof object.limit === "string") - message.limit = parseInt(object.limit, 10); - else if (typeof object.limit === "number") - message.limit = object.limit; - else if (typeof object.limit === "object") - message.limit = new $util.LongBits(object.limit.low >>> 0, object.limit.high >>> 0).toNumber(true); - if (object.count_total != null) - message.count_total = Boolean(object.count_total); - return message; - }; + /** + * Converts this Vote to JSON. + * @function toJSON + * @memberof cosmos.gov.v1.Vote + * @instance + * @returns {Object.} JSON object + */ + Vote.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Creates a plain object from a PageRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof cosmos.base.query.v1beta1.PageRequest - * @static - * @param {cosmos.base.query.v1beta1.PageRequest} message PageRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - PageRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - if (options.bytes === String) - object.key = ""; - else { - object.key = []; - if (options.bytes !== Array) - object.key = $util.newBuffer(object.key); - } - if ($util.Long) { - let long = new $util.Long(0, 0, true); - object.offset = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.offset = options.longs === String ? "0" : 0; - if ($util.Long) { - let long = new $util.Long(0, 0, true); - object.limit = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.limit = options.longs === String ? "0" : 0; - object.count_total = false; - } - if (message.key != null && message.hasOwnProperty("key")) - object.key = options.bytes === String ? $util.base64.encode(message.key, 0, message.key.length) : options.bytes === Array ? Array.prototype.slice.call(message.key) : message.key; - if (message.offset != null && message.hasOwnProperty("offset")) - if (typeof message.offset === "number") - object.offset = options.longs === String ? String(message.offset) : message.offset; - else - object.offset = options.longs === String ? $util.Long.prototype.toString.call(message.offset) : options.longs === Number ? new $util.LongBits(message.offset.low >>> 0, message.offset.high >>> 0).toNumber(true) : message.offset; - if (message.limit != null && message.hasOwnProperty("limit")) - if (typeof message.limit === "number") - object.limit = options.longs === String ? String(message.limit) : message.limit; - else - object.limit = options.longs === String ? $util.Long.prototype.toString.call(message.limit) : options.longs === Number ? new $util.LongBits(message.limit.low >>> 0, message.limit.high >>> 0).toNumber(true) : message.limit; - if (message.count_total != null && message.hasOwnProperty("count_total")) - object.count_total = message.count_total; - return object; - }; + return Vote; + })(); - /** - * Converts this PageRequest to JSON. - * @function toJSON - * @memberof cosmos.base.query.v1beta1.PageRequest - * @instance - * @returns {Object.} JSON object - */ - PageRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + v1.DepositParams = (function() { - return PageRequest; - })(); + /** + * Properties of a DepositParams. + * @memberof cosmos.gov.v1 + * @interface IDepositParams + * @property {Array.|null} [min_deposit] DepositParams min_deposit + * @property {google.protobuf.IDuration|null} [max_deposit_period] DepositParams max_deposit_period + */ - v1beta1.PageResponse = (function() { + /** + * Constructs a new DepositParams. + * @memberof cosmos.gov.v1 + * @classdesc Represents a DepositParams. + * @implements IDepositParams + * @constructor + * @param {cosmos.gov.v1.IDepositParams=} [properties] Properties to set + */ + function DepositParams(properties) { + this.min_deposit = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Properties of a PageResponse. - * @memberof cosmos.base.query.v1beta1 - * @interface IPageResponse - * @property {Uint8Array|null} [next_key] PageResponse next_key - * @property {Long|null} [total] PageResponse total - */ + /** + * DepositParams min_deposit. + * @member {Array.} min_deposit + * @memberof cosmos.gov.v1.DepositParams + * @instance + */ + DepositParams.prototype.min_deposit = $util.emptyArray; - /** - * Constructs a new PageResponse. - * @memberof cosmos.base.query.v1beta1 - * @classdesc Represents a PageResponse. - * @implements IPageResponse - * @constructor - * @param {cosmos.base.query.v1beta1.IPageResponse=} [properties] Properties to set - */ - function PageResponse(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * DepositParams max_deposit_period. + * @member {google.protobuf.IDuration|null|undefined} max_deposit_period + * @memberof cosmos.gov.v1.DepositParams + * @instance + */ + DepositParams.prototype.max_deposit_period = null; - /** - * PageResponse next_key. - * @member {Uint8Array} next_key - * @memberof cosmos.base.query.v1beta1.PageResponse - * @instance - */ - PageResponse.prototype.next_key = $util.newBuffer([]); - - /** - * PageResponse total. - * @member {Long} total - * @memberof cosmos.base.query.v1beta1.PageResponse - * @instance - */ - PageResponse.prototype.total = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * Encodes the specified PageResponse message. Does not implicitly {@link cosmos.base.query.v1beta1.PageResponse.verify|verify} messages. - * @function encode - * @memberof cosmos.base.query.v1beta1.PageResponse - * @static - * @param {cosmos.base.query.v1beta1.IPageResponse} message PageResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PageResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.next_key != null && Object.hasOwnProperty.call(message, "next_key")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.next_key); - if (message.total != null && Object.hasOwnProperty.call(message, "total")) - writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.total); - return writer; - }; - - /** - * Encodes the specified PageResponse message, length delimited. Does not implicitly {@link cosmos.base.query.v1beta1.PageResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof cosmos.base.query.v1beta1.PageResponse - * @static - * @param {cosmos.base.query.v1beta1.IPageResponse} message PageResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PageResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a PageResponse message from the specified reader or buffer. - * @function decode - * @memberof cosmos.base.query.v1beta1.PageResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {cosmos.base.query.v1beta1.PageResponse} PageResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PageResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.cosmos.base.query.v1beta1.PageResponse(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.next_key = reader.bytes(); - break; - case 2: - message.total = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a PageResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof cosmos.base.query.v1beta1.PageResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {cosmos.base.query.v1beta1.PageResponse} PageResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PageResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a PageResponse message. - * @function verify - * @memberof cosmos.base.query.v1beta1.PageResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - PageResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.next_key != null && message.hasOwnProperty("next_key")) - if (!(message.next_key && typeof message.next_key.length === "number" || $util.isString(message.next_key))) - return "next_key: buffer expected"; - if (message.total != null && message.hasOwnProperty("total")) - if (!$util.isInteger(message.total) && !(message.total && $util.isInteger(message.total.low) && $util.isInteger(message.total.high))) - return "total: integer|Long expected"; - return null; - }; - - /** - * Creates a PageResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof cosmos.base.query.v1beta1.PageResponse - * @static - * @param {Object.} object Plain object - * @returns {cosmos.base.query.v1beta1.PageResponse} PageResponse - */ - PageResponse.fromObject = function fromObject(object) { - if (object instanceof $root.cosmos.base.query.v1beta1.PageResponse) - return object; - let message = new $root.cosmos.base.query.v1beta1.PageResponse(); - if (object.next_key != null) - if (typeof object.next_key === "string") - $util.base64.decode(object.next_key, message.next_key = $util.newBuffer($util.base64.length(object.next_key)), 0); - else if (object.next_key.length) - message.next_key = object.next_key; - if (object.total != null) - if ($util.Long) - (message.total = $util.Long.fromValue(object.total)).unsigned = true; - else if (typeof object.total === "string") - message.total = parseInt(object.total, 10); - else if (typeof object.total === "number") - message.total = object.total; - else if (typeof object.total === "object") - message.total = new $util.LongBits(object.total.low >>> 0, object.total.high >>> 0).toNumber(true); - return message; - }; - - /** - * Creates a plain object from a PageResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof cosmos.base.query.v1beta1.PageResponse - * @static - * @param {cosmos.base.query.v1beta1.PageResponse} message PageResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - PageResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - if (options.bytes === String) - object.next_key = ""; - else { - object.next_key = []; - if (options.bytes !== Array) - object.next_key = $util.newBuffer(object.next_key); - } - if ($util.Long) { - let long = new $util.Long(0, 0, true); - object.total = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.total = options.longs === String ? "0" : 0; - } - if (message.next_key != null && message.hasOwnProperty("next_key")) - object.next_key = options.bytes === String ? $util.base64.encode(message.next_key, 0, message.next_key.length) : options.bytes === Array ? Array.prototype.slice.call(message.next_key) : message.next_key; - if (message.total != null && message.hasOwnProperty("total")) - if (typeof message.total === "number") - object.total = options.longs === String ? String(message.total) : message.total; - else - object.total = options.longs === String ? $util.Long.prototype.toString.call(message.total) : options.longs === Number ? new $util.LongBits(message.total.low >>> 0, message.total.high >>> 0).toNumber(true) : message.total; - return object; - }; - - /** - * Converts this PageResponse to JSON. - * @function toJSON - * @memberof cosmos.base.query.v1beta1.PageResponse - * @instance - * @returns {Object.} JSON object - */ - PageResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return PageResponse; - })(); - - return v1beta1; - })(); - - return query; - })(); - - return base; - })(); - - cosmos.upgrade = (function() { - - /** - * Namespace upgrade. - * @memberof cosmos - * @namespace - */ - const upgrade = {}; - - upgrade.v1beta1 = (function() { - - /** - * Namespace v1beta1. - * @memberof cosmos.upgrade - * @namespace - */ - const v1beta1 = {}; - - v1beta1.Plan = (function() { - - /** - * Properties of a Plan. - * @memberof cosmos.upgrade.v1beta1 - * @interface IPlan - * @property {string|null} [name] Plan name - * @property {google.protobuf.ITimestamp|null} [time] Plan time - * @property {Long|null} [height] Plan height - * @property {string|null} [info] Plan info - */ - - /** - * Constructs a new Plan. - * @memberof cosmos.upgrade.v1beta1 - * @classdesc Represents a Plan. - * @implements IPlan - * @constructor - * @param {cosmos.upgrade.v1beta1.IPlan=} [properties] Properties to set - */ - function Plan(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Plan name. - * @member {string} name - * @memberof cosmos.upgrade.v1beta1.Plan - * @instance - */ - Plan.prototype.name = ""; - - /** - * Plan time. - * @member {google.protobuf.ITimestamp|null|undefined} time - * @memberof cosmos.upgrade.v1beta1.Plan - * @instance - */ - Plan.prototype.time = null; - - /** - * Plan height. - * @member {Long} height - * @memberof cosmos.upgrade.v1beta1.Plan - * @instance - */ - Plan.prototype.height = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * Plan info. - * @member {string} info - * @memberof cosmos.upgrade.v1beta1.Plan - * @instance - */ - Plan.prototype.info = ""; - - /** - * Encodes the specified Plan message. Does not implicitly {@link cosmos.upgrade.v1beta1.Plan.verify|verify} messages. - * @function encode - * @memberof cosmos.upgrade.v1beta1.Plan - * @static - * @param {cosmos.upgrade.v1beta1.IPlan} message Plan message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Plan.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.time != null && Object.hasOwnProperty.call(message, "time")) - $root.google.protobuf.Timestamp.encode(message.time, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.height != null && Object.hasOwnProperty.call(message, "height")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.height); - if (message.info != null && Object.hasOwnProperty.call(message, "info")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.info); - return writer; - }; + /** + * Encodes the specified DepositParams message. Does not implicitly {@link cosmos.gov.v1.DepositParams.verify|verify} messages. + * @function encode + * @memberof cosmos.gov.v1.DepositParams + * @static + * @param {cosmos.gov.v1.IDepositParams} message DepositParams message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DepositParams.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.min_deposit != null && message.min_deposit.length) + for (let i = 0; i < message.min_deposit.length; ++i) + $root.cosmos.base.v1beta1.Coin.encode(message.min_deposit[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.max_deposit_period != null && Object.hasOwnProperty.call(message, "max_deposit_period")) + $root.google.protobuf.Duration.encode(message.max_deposit_period, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; /** - * Encodes the specified Plan message, length delimited. Does not implicitly {@link cosmos.upgrade.v1beta1.Plan.verify|verify} messages. + * Encodes the specified DepositParams message, length delimited. Does not implicitly {@link cosmos.gov.v1.DepositParams.verify|verify} messages. * @function encodeDelimited - * @memberof cosmos.upgrade.v1beta1.Plan + * @memberof cosmos.gov.v1.DepositParams * @static - * @param {cosmos.upgrade.v1beta1.IPlan} message Plan message or plain object to encode + * @param {cosmos.gov.v1.IDepositParams} message DepositParams message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Plan.encodeDelimited = function encodeDelimited(message, writer) { + DepositParams.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Plan message from the specified reader or buffer. + * Decodes a DepositParams message from the specified reader or buffer. * @function decode - * @memberof cosmos.upgrade.v1beta1.Plan + * @memberof cosmos.gov.v1.DepositParams * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {cosmos.upgrade.v1beta1.Plan} Plan + * @returns {cosmos.gov.v1.DepositParams} DepositParams * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Plan.decode = function decode(reader, length) { + DepositParams.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.cosmos.upgrade.v1beta1.Plan(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.cosmos.gov.v1.DepositParams(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + if (!(message.min_deposit && message.min_deposit.length)) + message.min_deposit = []; + message.min_deposit.push($root.cosmos.base.v1beta1.Coin.decode(reader, reader.uint32())); break; case 2: - message.time = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 3: - message.height = reader.int64(); - break; - case 4: - message.info = reader.string(); + message.max_deposit_period = $root.google.protobuf.Duration.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -6047,153 +7331,138 @@ export const cosmos = $root.cosmos = (() => { }; /** - * Decodes a Plan message from the specified reader or buffer, length delimited. + * Decodes a DepositParams message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof cosmos.upgrade.v1beta1.Plan + * @memberof cosmos.gov.v1.DepositParams * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {cosmos.upgrade.v1beta1.Plan} Plan + * @returns {cosmos.gov.v1.DepositParams} DepositParams * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Plan.decodeDelimited = function decodeDelimited(reader) { + DepositParams.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Plan message. + * Verifies a DepositParams message. * @function verify - * @memberof cosmos.upgrade.v1beta1.Plan + * @memberof cosmos.gov.v1.DepositParams * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Plan.verify = function verify(message) { + DepositParams.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.time != null && message.hasOwnProperty("time")) { - let error = $root.google.protobuf.Timestamp.verify(message.time); + if (message.min_deposit != null && message.hasOwnProperty("min_deposit")) { + if (!Array.isArray(message.min_deposit)) + return "min_deposit: array expected"; + for (let i = 0; i < message.min_deposit.length; ++i) { + let error = $root.cosmos.base.v1beta1.Coin.verify(message.min_deposit[i]); + if (error) + return "min_deposit." + error; + } + } + if (message.max_deposit_period != null && message.hasOwnProperty("max_deposit_period")) { + let error = $root.google.protobuf.Duration.verify(message.max_deposit_period); if (error) - return "time." + error; + return "max_deposit_period." + error; } - if (message.height != null && message.hasOwnProperty("height")) - if (!$util.isInteger(message.height) && !(message.height && $util.isInteger(message.height.low) && $util.isInteger(message.height.high))) - return "height: integer|Long expected"; - if (message.info != null && message.hasOwnProperty("info")) - if (!$util.isString(message.info)) - return "info: string expected"; return null; }; /** - * Creates a Plan message from a plain object. Also converts values to their respective internal types. + * Creates a DepositParams message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof cosmos.upgrade.v1beta1.Plan + * @memberof cosmos.gov.v1.DepositParams * @static * @param {Object.} object Plain object - * @returns {cosmos.upgrade.v1beta1.Plan} Plan + * @returns {cosmos.gov.v1.DepositParams} DepositParams */ - Plan.fromObject = function fromObject(object) { - if (object instanceof $root.cosmos.upgrade.v1beta1.Plan) + DepositParams.fromObject = function fromObject(object) { + if (object instanceof $root.cosmos.gov.v1.DepositParams) return object; - let message = new $root.cosmos.upgrade.v1beta1.Plan(); - if (object.name != null) - message.name = String(object.name); - if (object.time != null) { - if (typeof object.time !== "object") - throw TypeError(".cosmos.upgrade.v1beta1.Plan.time: object expected"); - message.time = $root.google.protobuf.Timestamp.fromObject(object.time); + let message = new $root.cosmos.gov.v1.DepositParams(); + if (object.min_deposit) { + if (!Array.isArray(object.min_deposit)) + throw TypeError(".cosmos.gov.v1.DepositParams.min_deposit: array expected"); + message.min_deposit = []; + for (let i = 0; i < object.min_deposit.length; ++i) { + if (typeof object.min_deposit[i] !== "object") + throw TypeError(".cosmos.gov.v1.DepositParams.min_deposit: object expected"); + message.min_deposit[i] = $root.cosmos.base.v1beta1.Coin.fromObject(object.min_deposit[i]); + } + } + if (object.max_deposit_period != null) { + if (typeof object.max_deposit_period !== "object") + throw TypeError(".cosmos.gov.v1.DepositParams.max_deposit_period: object expected"); + message.max_deposit_period = $root.google.protobuf.Duration.fromObject(object.max_deposit_period); } - if (object.height != null) - if ($util.Long) - (message.height = $util.Long.fromValue(object.height)).unsigned = false; - else if (typeof object.height === "string") - message.height = parseInt(object.height, 10); - else if (typeof object.height === "number") - message.height = object.height; - else if (typeof object.height === "object") - message.height = new $util.LongBits(object.height.low >>> 0, object.height.high >>> 0).toNumber(); - if (object.info != null) - message.info = String(object.info); return message; }; /** - * Creates a plain object from a Plan message. Also converts values to other types if specified. + * Creates a plain object from a DepositParams message. Also converts values to other types if specified. * @function toObject - * @memberof cosmos.upgrade.v1beta1.Plan + * @memberof cosmos.gov.v1.DepositParams * @static - * @param {cosmos.upgrade.v1beta1.Plan} message Plan + * @param {cosmos.gov.v1.DepositParams} message DepositParams * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Plan.toObject = function toObject(message, options) { + DepositParams.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) { - object.name = ""; - object.time = null; - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.height = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.height = options.longs === String ? "0" : 0; - object.info = ""; + if (options.arrays || options.defaults) + object.min_deposit = []; + if (options.defaults) + object.max_deposit_period = null; + if (message.min_deposit && message.min_deposit.length) { + object.min_deposit = []; + for (let j = 0; j < message.min_deposit.length; ++j) + object.min_deposit[j] = $root.cosmos.base.v1beta1.Coin.toObject(message.min_deposit[j], options); } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.time != null && message.hasOwnProperty("time")) - object.time = $root.google.protobuf.Timestamp.toObject(message.time, options); - if (message.height != null && message.hasOwnProperty("height")) - if (typeof message.height === "number") - object.height = options.longs === String ? String(message.height) : message.height; - else - object.height = options.longs === String ? $util.Long.prototype.toString.call(message.height) : options.longs === Number ? new $util.LongBits(message.height.low >>> 0, message.height.high >>> 0).toNumber() : message.height; - if (message.info != null && message.hasOwnProperty("info")) - object.info = message.info; + if (message.max_deposit_period != null && message.hasOwnProperty("max_deposit_period")) + object.max_deposit_period = $root.google.protobuf.Duration.toObject(message.max_deposit_period, options); return object; }; /** - * Converts this Plan to JSON. + * Converts this DepositParams to JSON. * @function toJSON - * @memberof cosmos.upgrade.v1beta1.Plan + * @memberof cosmos.gov.v1.DepositParams * @instance * @returns {Object.} JSON object */ - Plan.prototype.toJSON = function toJSON() { + DepositParams.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Plan; + return DepositParams; })(); - v1beta1.SoftwareUpgradeProposal = (function() { + v1.VotingParams = (function() { /** - * Properties of a SoftwareUpgradeProposal. - * @memberof cosmos.upgrade.v1beta1 - * @interface ISoftwareUpgradeProposal - * @property {string|null} [title] SoftwareUpgradeProposal title - * @property {string|null} [description] SoftwareUpgradeProposal description - * @property {cosmos.upgrade.v1beta1.IPlan|null} [plan] SoftwareUpgradeProposal plan + * Properties of a VotingParams. + * @memberof cosmos.gov.v1 + * @interface IVotingParams + * @property {google.protobuf.IDuration|null} [voting_period] VotingParams voting_period */ /** - * Constructs a new SoftwareUpgradeProposal. - * @memberof cosmos.upgrade.v1beta1 - * @classdesc Represents a SoftwareUpgradeProposal. - * @implements ISoftwareUpgradeProposal + * Constructs a new VotingParams. + * @memberof cosmos.gov.v1 + * @classdesc Represents a VotingParams. + * @implements IVotingParams * @constructor - * @param {cosmos.upgrade.v1beta1.ISoftwareUpgradeProposal=} [properties] Properties to set + * @param {cosmos.gov.v1.IVotingParams=} [properties] Properties to set */ - function SoftwareUpgradeProposal(properties) { + function VotingParams(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -6201,89 +7470,63 @@ export const cosmos = $root.cosmos = (() => { } /** - * SoftwareUpgradeProposal title. - * @member {string} title - * @memberof cosmos.upgrade.v1beta1.SoftwareUpgradeProposal - * @instance - */ - SoftwareUpgradeProposal.prototype.title = ""; - - /** - * SoftwareUpgradeProposal description. - * @member {string} description - * @memberof cosmos.upgrade.v1beta1.SoftwareUpgradeProposal - * @instance - */ - SoftwareUpgradeProposal.prototype.description = ""; - - /** - * SoftwareUpgradeProposal plan. - * @member {cosmos.upgrade.v1beta1.IPlan|null|undefined} plan - * @memberof cosmos.upgrade.v1beta1.SoftwareUpgradeProposal + * VotingParams voting_period. + * @member {google.protobuf.IDuration|null|undefined} voting_period + * @memberof cosmos.gov.v1.VotingParams * @instance */ - SoftwareUpgradeProposal.prototype.plan = null; + VotingParams.prototype.voting_period = null; /** - * Encodes the specified SoftwareUpgradeProposal message. Does not implicitly {@link cosmos.upgrade.v1beta1.SoftwareUpgradeProposal.verify|verify} messages. + * Encodes the specified VotingParams message. Does not implicitly {@link cosmos.gov.v1.VotingParams.verify|verify} messages. * @function encode - * @memberof cosmos.upgrade.v1beta1.SoftwareUpgradeProposal + * @memberof cosmos.gov.v1.VotingParams * @static - * @param {cosmos.upgrade.v1beta1.ISoftwareUpgradeProposal} message SoftwareUpgradeProposal message or plain object to encode + * @param {cosmos.gov.v1.IVotingParams} message VotingParams message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SoftwareUpgradeProposal.encode = function encode(message, writer) { + VotingParams.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.title != null && Object.hasOwnProperty.call(message, "title")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.title); - if (message.description != null && Object.hasOwnProperty.call(message, "description")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.description); - if (message.plan != null && Object.hasOwnProperty.call(message, "plan")) - $root.cosmos.upgrade.v1beta1.Plan.encode(message.plan, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.voting_period != null && Object.hasOwnProperty.call(message, "voting_period")) + $root.google.protobuf.Duration.encode(message.voting_period, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified SoftwareUpgradeProposal message, length delimited. Does not implicitly {@link cosmos.upgrade.v1beta1.SoftwareUpgradeProposal.verify|verify} messages. + * Encodes the specified VotingParams message, length delimited. Does not implicitly {@link cosmos.gov.v1.VotingParams.verify|verify} messages. * @function encodeDelimited - * @memberof cosmos.upgrade.v1beta1.SoftwareUpgradeProposal + * @memberof cosmos.gov.v1.VotingParams * @static - * @param {cosmos.upgrade.v1beta1.ISoftwareUpgradeProposal} message SoftwareUpgradeProposal message or plain object to encode + * @param {cosmos.gov.v1.IVotingParams} message VotingParams message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SoftwareUpgradeProposal.encodeDelimited = function encodeDelimited(message, writer) { + VotingParams.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SoftwareUpgradeProposal message from the specified reader or buffer. + * Decodes a VotingParams message from the specified reader or buffer. * @function decode - * @memberof cosmos.upgrade.v1beta1.SoftwareUpgradeProposal + * @memberof cosmos.gov.v1.VotingParams * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {cosmos.upgrade.v1beta1.SoftwareUpgradeProposal} SoftwareUpgradeProposal + * @returns {cosmos.gov.v1.VotingParams} VotingParams * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SoftwareUpgradeProposal.decode = function decode(reader, length) { + VotingParams.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.cosmos.upgrade.v1beta1.SoftwareUpgradeProposal(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.cosmos.gov.v1.VotingParams(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.title = reader.string(); - break; - case 2: - message.description = reader.string(); - break; - case 3: - message.plan = $root.cosmos.upgrade.v1beta1.Plan.decode(reader, reader.uint32()); + message.voting_period = $root.google.protobuf.Duration.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -6294,130 +7537,114 @@ export const cosmos = $root.cosmos = (() => { }; /** - * Decodes a SoftwareUpgradeProposal message from the specified reader or buffer, length delimited. + * Decodes a VotingParams message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof cosmos.upgrade.v1beta1.SoftwareUpgradeProposal + * @memberof cosmos.gov.v1.VotingParams * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {cosmos.upgrade.v1beta1.SoftwareUpgradeProposal} SoftwareUpgradeProposal + * @returns {cosmos.gov.v1.VotingParams} VotingParams * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SoftwareUpgradeProposal.decodeDelimited = function decodeDelimited(reader) { + VotingParams.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SoftwareUpgradeProposal message. + * Verifies a VotingParams message. * @function verify - * @memberof cosmos.upgrade.v1beta1.SoftwareUpgradeProposal + * @memberof cosmos.gov.v1.VotingParams * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SoftwareUpgradeProposal.verify = function verify(message) { + VotingParams.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.title != null && message.hasOwnProperty("title")) - if (!$util.isString(message.title)) - return "title: string expected"; - if (message.description != null && message.hasOwnProperty("description")) - if (!$util.isString(message.description)) - return "description: string expected"; - if (message.plan != null && message.hasOwnProperty("plan")) { - let error = $root.cosmos.upgrade.v1beta1.Plan.verify(message.plan); + if (message.voting_period != null && message.hasOwnProperty("voting_period")) { + let error = $root.google.protobuf.Duration.verify(message.voting_period); if (error) - return "plan." + error; + return "voting_period." + error; } return null; }; /** - * Creates a SoftwareUpgradeProposal message from a plain object. Also converts values to their respective internal types. + * Creates a VotingParams message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof cosmos.upgrade.v1beta1.SoftwareUpgradeProposal + * @memberof cosmos.gov.v1.VotingParams * @static * @param {Object.} object Plain object - * @returns {cosmos.upgrade.v1beta1.SoftwareUpgradeProposal} SoftwareUpgradeProposal + * @returns {cosmos.gov.v1.VotingParams} VotingParams */ - SoftwareUpgradeProposal.fromObject = function fromObject(object) { - if (object instanceof $root.cosmos.upgrade.v1beta1.SoftwareUpgradeProposal) + VotingParams.fromObject = function fromObject(object) { + if (object instanceof $root.cosmos.gov.v1.VotingParams) return object; - let message = new $root.cosmos.upgrade.v1beta1.SoftwareUpgradeProposal(); - if (object.title != null) - message.title = String(object.title); - if (object.description != null) - message.description = String(object.description); - if (object.plan != null) { - if (typeof object.plan !== "object") - throw TypeError(".cosmos.upgrade.v1beta1.SoftwareUpgradeProposal.plan: object expected"); - message.plan = $root.cosmos.upgrade.v1beta1.Plan.fromObject(object.plan); + let message = new $root.cosmos.gov.v1.VotingParams(); + if (object.voting_period != null) { + if (typeof object.voting_period !== "object") + throw TypeError(".cosmos.gov.v1.VotingParams.voting_period: object expected"); + message.voting_period = $root.google.protobuf.Duration.fromObject(object.voting_period); } return message; }; /** - * Creates a plain object from a SoftwareUpgradeProposal message. Also converts values to other types if specified. + * Creates a plain object from a VotingParams message. Also converts values to other types if specified. * @function toObject - * @memberof cosmos.upgrade.v1beta1.SoftwareUpgradeProposal + * @memberof cosmos.gov.v1.VotingParams * @static - * @param {cosmos.upgrade.v1beta1.SoftwareUpgradeProposal} message SoftwareUpgradeProposal + * @param {cosmos.gov.v1.VotingParams} message VotingParams * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SoftwareUpgradeProposal.toObject = function toObject(message, options) { + VotingParams.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) { - object.title = ""; - object.description = ""; - object.plan = null; - } - if (message.title != null && message.hasOwnProperty("title")) - object.title = message.title; - if (message.description != null && message.hasOwnProperty("description")) - object.description = message.description; - if (message.plan != null && message.hasOwnProperty("plan")) - object.plan = $root.cosmos.upgrade.v1beta1.Plan.toObject(message.plan, options); + if (options.defaults) + object.voting_period = null; + if (message.voting_period != null && message.hasOwnProperty("voting_period")) + object.voting_period = $root.google.protobuf.Duration.toObject(message.voting_period, options); return object; }; /** - * Converts this SoftwareUpgradeProposal to JSON. + * Converts this VotingParams to JSON. * @function toJSON - * @memberof cosmos.upgrade.v1beta1.SoftwareUpgradeProposal + * @memberof cosmos.gov.v1.VotingParams * @instance * @returns {Object.} JSON object */ - SoftwareUpgradeProposal.prototype.toJSON = function toJSON() { + VotingParams.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return SoftwareUpgradeProposal; + return VotingParams; })(); - v1beta1.CancelSoftwareUpgradeProposal = (function() { + v1.TallyParams = (function() { /** - * Properties of a CancelSoftwareUpgradeProposal. - * @memberof cosmos.upgrade.v1beta1 - * @interface ICancelSoftwareUpgradeProposal - * @property {string|null} [title] CancelSoftwareUpgradeProposal title - * @property {string|null} [description] CancelSoftwareUpgradeProposal description + * Properties of a TallyParams. + * @memberof cosmos.gov.v1 + * @interface ITallyParams + * @property {string|null} [quorum] TallyParams quorum + * @property {string|null} [threshold] TallyParams threshold + * @property {string|null} [veto_threshold] TallyParams veto_threshold */ /** - * Constructs a new CancelSoftwareUpgradeProposal. - * @memberof cosmos.upgrade.v1beta1 - * @classdesc Represents a CancelSoftwareUpgradeProposal. - * @implements ICancelSoftwareUpgradeProposal + * Constructs a new TallyParams. + * @memberof cosmos.gov.v1 + * @classdesc Represents a TallyParams. + * @implements ITallyParams * @constructor - * @param {cosmos.upgrade.v1beta1.ICancelSoftwareUpgradeProposal=} [properties] Properties to set + * @param {cosmos.gov.v1.ITallyParams=} [properties] Properties to set */ - function CancelSoftwareUpgradeProposal(properties) { + function TallyParams(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -6425,76 +7652,89 @@ export const cosmos = $root.cosmos = (() => { } /** - * CancelSoftwareUpgradeProposal title. - * @member {string} title - * @memberof cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal + * TallyParams quorum. + * @member {string} quorum + * @memberof cosmos.gov.v1.TallyParams * @instance */ - CancelSoftwareUpgradeProposal.prototype.title = ""; + TallyParams.prototype.quorum = ""; /** - * CancelSoftwareUpgradeProposal description. - * @member {string} description - * @memberof cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal + * TallyParams threshold. + * @member {string} threshold + * @memberof cosmos.gov.v1.TallyParams * @instance */ - CancelSoftwareUpgradeProposal.prototype.description = ""; + TallyParams.prototype.threshold = ""; /** - * Encodes the specified CancelSoftwareUpgradeProposal message. Does not implicitly {@link cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal.verify|verify} messages. + * TallyParams veto_threshold. + * @member {string} veto_threshold + * @memberof cosmos.gov.v1.TallyParams + * @instance + */ + TallyParams.prototype.veto_threshold = ""; + + /** + * Encodes the specified TallyParams message. Does not implicitly {@link cosmos.gov.v1.TallyParams.verify|verify} messages. * @function encode - * @memberof cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal + * @memberof cosmos.gov.v1.TallyParams * @static - * @param {cosmos.upgrade.v1beta1.ICancelSoftwareUpgradeProposal} message CancelSoftwareUpgradeProposal message or plain object to encode + * @param {cosmos.gov.v1.ITallyParams} message TallyParams message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CancelSoftwareUpgradeProposal.encode = function encode(message, writer) { + TallyParams.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.title != null && Object.hasOwnProperty.call(message, "title")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.title); - if (message.description != null && Object.hasOwnProperty.call(message, "description")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.description); + if (message.quorum != null && Object.hasOwnProperty.call(message, "quorum")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.quorum); + if (message.threshold != null && Object.hasOwnProperty.call(message, "threshold")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.threshold); + if (message.veto_threshold != null && Object.hasOwnProperty.call(message, "veto_threshold")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.veto_threshold); return writer; }; /** - * Encodes the specified CancelSoftwareUpgradeProposal message, length delimited. Does not implicitly {@link cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal.verify|verify} messages. + * Encodes the specified TallyParams message, length delimited. Does not implicitly {@link cosmos.gov.v1.TallyParams.verify|verify} messages. * @function encodeDelimited - * @memberof cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal + * @memberof cosmos.gov.v1.TallyParams * @static - * @param {cosmos.upgrade.v1beta1.ICancelSoftwareUpgradeProposal} message CancelSoftwareUpgradeProposal message or plain object to encode + * @param {cosmos.gov.v1.ITallyParams} message TallyParams message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CancelSoftwareUpgradeProposal.encodeDelimited = function encodeDelimited(message, writer) { + TallyParams.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CancelSoftwareUpgradeProposal message from the specified reader or buffer. + * Decodes a TallyParams message from the specified reader or buffer. * @function decode - * @memberof cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal + * @memberof cosmos.gov.v1.TallyParams * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal} CancelSoftwareUpgradeProposal + * @returns {cosmos.gov.v1.TallyParams} TallyParams * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CancelSoftwareUpgradeProposal.decode = function decode(reader, length) { + TallyParams.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.cosmos.gov.v1.TallyParams(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.title = reader.string(); + message.quorum = reader.string(); break; case 2: - message.description = reader.string(); + message.threshold = reader.string(); + break; + case 3: + message.veto_threshold = reader.string(); break; default: reader.skipType(tag & 7); @@ -6505,143 +7745,134 @@ export const cosmos = $root.cosmos = (() => { }; /** - * Decodes a CancelSoftwareUpgradeProposal message from the specified reader or buffer, length delimited. + * Decodes a TallyParams message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal + * @memberof cosmos.gov.v1.TallyParams * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal} CancelSoftwareUpgradeProposal + * @returns {cosmos.gov.v1.TallyParams} TallyParams * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CancelSoftwareUpgradeProposal.decodeDelimited = function decodeDelimited(reader) { + TallyParams.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CancelSoftwareUpgradeProposal message. + * Verifies a TallyParams message. * @function verify - * @memberof cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal + * @memberof cosmos.gov.v1.TallyParams * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CancelSoftwareUpgradeProposal.verify = function verify(message) { + TallyParams.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.title != null && message.hasOwnProperty("title")) - if (!$util.isString(message.title)) - return "title: string expected"; - if (message.description != null && message.hasOwnProperty("description")) - if (!$util.isString(message.description)) - return "description: string expected"; + if (message.quorum != null && message.hasOwnProperty("quorum")) + if (!$util.isString(message.quorum)) + return "quorum: string expected"; + if (message.threshold != null && message.hasOwnProperty("threshold")) + if (!$util.isString(message.threshold)) + return "threshold: string expected"; + if (message.veto_threshold != null && message.hasOwnProperty("veto_threshold")) + if (!$util.isString(message.veto_threshold)) + return "veto_threshold: string expected"; return null; }; /** - * Creates a CancelSoftwareUpgradeProposal message from a plain object. Also converts values to their respective internal types. + * Creates a TallyParams message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal + * @memberof cosmos.gov.v1.TallyParams * @static * @param {Object.} object Plain object - * @returns {cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal} CancelSoftwareUpgradeProposal + * @returns {cosmos.gov.v1.TallyParams} TallyParams */ - CancelSoftwareUpgradeProposal.fromObject = function fromObject(object) { - if (object instanceof $root.cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal) + TallyParams.fromObject = function fromObject(object) { + if (object instanceof $root.cosmos.gov.v1.TallyParams) return object; - let message = new $root.cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal(); - if (object.title != null) - message.title = String(object.title); - if (object.description != null) - message.description = String(object.description); + let message = new $root.cosmos.gov.v1.TallyParams(); + if (object.quorum != null) + message.quorum = String(object.quorum); + if (object.threshold != null) + message.threshold = String(object.threshold); + if (object.veto_threshold != null) + message.veto_threshold = String(object.veto_threshold); return message; }; /** - * Creates a plain object from a CancelSoftwareUpgradeProposal message. Also converts values to other types if specified. + * Creates a plain object from a TallyParams message. Also converts values to other types if specified. * @function toObject - * @memberof cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal + * @memberof cosmos.gov.v1.TallyParams * @static - * @param {cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal} message CancelSoftwareUpgradeProposal + * @param {cosmos.gov.v1.TallyParams} message TallyParams * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CancelSoftwareUpgradeProposal.toObject = function toObject(message, options) { + TallyParams.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - object.title = ""; - object.description = ""; + object.quorum = ""; + object.threshold = ""; + object.veto_threshold = ""; } - if (message.title != null && message.hasOwnProperty("title")) - object.title = message.title; - if (message.description != null && message.hasOwnProperty("description")) - object.description = message.description; + if (message.quorum != null && message.hasOwnProperty("quorum")) + object.quorum = message.quorum; + if (message.threshold != null && message.hasOwnProperty("threshold")) + object.threshold = message.threshold; + if (message.veto_threshold != null && message.hasOwnProperty("veto_threshold")) + object.veto_threshold = message.veto_threshold; return object; }; /** - * Converts this CancelSoftwareUpgradeProposal to JSON. + * Converts this TallyParams to JSON. * @function toJSON - * @memberof cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal + * @memberof cosmos.gov.v1.TallyParams * @instance * @returns {Object.} JSON object */ - CancelSoftwareUpgradeProposal.prototype.toJSON = function toJSON() { + TallyParams.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CancelSoftwareUpgradeProposal; + return TallyParams; })(); - return v1beta1; - })(); - - return upgrade; - })(); - - cosmos.auth = (function() { - - /** - * Namespace auth. - * @memberof cosmos - * @namespace - */ - const auth = {}; - - auth.v1beta1 = (function() { - - /** - * Namespace v1beta1. - * @memberof cosmos.auth - * @namespace - */ - const v1beta1 = {}; - - v1beta1.BaseAccount = (function() { + v1.Params = (function() { /** - * Properties of a BaseAccount. - * @memberof cosmos.auth.v1beta1 - * @interface IBaseAccount - * @property {string|null} [address] BaseAccount address - * @property {google.protobuf.IAny|null} [pub_key] BaseAccount pub_key - * @property {Long|null} [account_number] BaseAccount account_number - * @property {Long|null} [sequence] BaseAccount sequence + * Properties of a Params. + * @memberof cosmos.gov.v1 + * @interface IParams + * @property {Array.|null} [min_deposit] Params min_deposit + * @property {google.protobuf.IDuration|null} [max_deposit_period] Params max_deposit_period + * @property {google.protobuf.IDuration|null} [voting_period] Params voting_period + * @property {string|null} [quorum] Params quorum + * @property {string|null} [threshold] Params threshold + * @property {string|null} [veto_threshold] Params veto_threshold + * @property {string|null} [min_initial_deposit_ratio] Params min_initial_deposit_ratio + * @property {boolean|null} [burn_vote_quorum] Params burn_vote_quorum + * @property {boolean|null} [burn_proposal_deposit_prevote] Params burn_proposal_deposit_prevote + * @property {boolean|null} [burn_vote_veto] Params burn_vote_veto */ /** - * Constructs a new BaseAccount. - * @memberof cosmos.auth.v1beta1 - * @classdesc Represents a BaseAccount. - * @implements IBaseAccount + * Constructs a new Params. + * @memberof cosmos.gov.v1 + * @classdesc Represents a Params. + * @implements IParams * @constructor - * @param {cosmos.auth.v1beta1.IBaseAccount=} [properties] Properties to set + * @param {cosmos.gov.v1.IParams=} [properties] Properties to set */ - function BaseAccount(properties) { + function Params(properties) { + this.min_deposit = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -6649,102 +7880,183 @@ export const cosmos = $root.cosmos = (() => { } /** - * BaseAccount address. - * @member {string} address - * @memberof cosmos.auth.v1beta1.BaseAccount + * Params min_deposit. + * @member {Array.} min_deposit + * @memberof cosmos.gov.v1.Params * @instance */ - BaseAccount.prototype.address = ""; + Params.prototype.min_deposit = $util.emptyArray; /** - * BaseAccount pub_key. - * @member {google.protobuf.IAny|null|undefined} pub_key - * @memberof cosmos.auth.v1beta1.BaseAccount + * Params max_deposit_period. + * @member {google.protobuf.IDuration|null|undefined} max_deposit_period + * @memberof cosmos.gov.v1.Params * @instance */ - BaseAccount.prototype.pub_key = null; + Params.prototype.max_deposit_period = null; /** - * BaseAccount account_number. - * @member {Long} account_number - * @memberof cosmos.auth.v1beta1.BaseAccount + * Params voting_period. + * @member {google.protobuf.IDuration|null|undefined} voting_period + * @memberof cosmos.gov.v1.Params * @instance */ - BaseAccount.prototype.account_number = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + Params.prototype.voting_period = null; /** - * BaseAccount sequence. - * @member {Long} sequence - * @memberof cosmos.auth.v1beta1.BaseAccount + * Params quorum. + * @member {string} quorum + * @memberof cosmos.gov.v1.Params * @instance */ - BaseAccount.prototype.sequence = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + Params.prototype.quorum = ""; /** - * Encodes the specified BaseAccount message. Does not implicitly {@link cosmos.auth.v1beta1.BaseAccount.verify|verify} messages. + * Params threshold. + * @member {string} threshold + * @memberof cosmos.gov.v1.Params + * @instance + */ + Params.prototype.threshold = ""; + + /** + * Params veto_threshold. + * @member {string} veto_threshold + * @memberof cosmos.gov.v1.Params + * @instance + */ + Params.prototype.veto_threshold = ""; + + /** + * Params min_initial_deposit_ratio. + * @member {string} min_initial_deposit_ratio + * @memberof cosmos.gov.v1.Params + * @instance + */ + Params.prototype.min_initial_deposit_ratio = ""; + + /** + * Params burn_vote_quorum. + * @member {boolean} burn_vote_quorum + * @memberof cosmos.gov.v1.Params + * @instance + */ + Params.prototype.burn_vote_quorum = false; + + /** + * Params burn_proposal_deposit_prevote. + * @member {boolean} burn_proposal_deposit_prevote + * @memberof cosmos.gov.v1.Params + * @instance + */ + Params.prototype.burn_proposal_deposit_prevote = false; + + /** + * Params burn_vote_veto. + * @member {boolean} burn_vote_veto + * @memberof cosmos.gov.v1.Params + * @instance + */ + Params.prototype.burn_vote_veto = false; + + /** + * Encodes the specified Params message. Does not implicitly {@link cosmos.gov.v1.Params.verify|verify} messages. * @function encode - * @memberof cosmos.auth.v1beta1.BaseAccount + * @memberof cosmos.gov.v1.Params * @static - * @param {cosmos.auth.v1beta1.IBaseAccount} message BaseAccount message or plain object to encode + * @param {cosmos.gov.v1.IParams} message Params message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BaseAccount.encode = function encode(message, writer) { + Params.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.address != null && Object.hasOwnProperty.call(message, "address")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.address); - if (message.pub_key != null && Object.hasOwnProperty.call(message, "pub_key")) - $root.google.protobuf.Any.encode(message.pub_key, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.account_number != null && Object.hasOwnProperty.call(message, "account_number")) - writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.account_number); - if (message.sequence != null && Object.hasOwnProperty.call(message, "sequence")) - writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.sequence); + if (message.min_deposit != null && message.min_deposit.length) + for (let i = 0; i < message.min_deposit.length; ++i) + $root.cosmos.base.v1beta1.Coin.encode(message.min_deposit[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.max_deposit_period != null && Object.hasOwnProperty.call(message, "max_deposit_period")) + $root.google.protobuf.Duration.encode(message.max_deposit_period, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.voting_period != null && Object.hasOwnProperty.call(message, "voting_period")) + $root.google.protobuf.Duration.encode(message.voting_period, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.quorum != null && Object.hasOwnProperty.call(message, "quorum")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.quorum); + if (message.threshold != null && Object.hasOwnProperty.call(message, "threshold")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.threshold); + if (message.veto_threshold != null && Object.hasOwnProperty.call(message, "veto_threshold")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.veto_threshold); + if (message.min_initial_deposit_ratio != null && Object.hasOwnProperty.call(message, "min_initial_deposit_ratio")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.min_initial_deposit_ratio); + if (message.burn_vote_quorum != null && Object.hasOwnProperty.call(message, "burn_vote_quorum")) + writer.uint32(/* id 13, wireType 0 =*/104).bool(message.burn_vote_quorum); + if (message.burn_proposal_deposit_prevote != null && Object.hasOwnProperty.call(message, "burn_proposal_deposit_prevote")) + writer.uint32(/* id 14, wireType 0 =*/112).bool(message.burn_proposal_deposit_prevote); + if (message.burn_vote_veto != null && Object.hasOwnProperty.call(message, "burn_vote_veto")) + writer.uint32(/* id 15, wireType 0 =*/120).bool(message.burn_vote_veto); return writer; }; /** - * Encodes the specified BaseAccount message, length delimited. Does not implicitly {@link cosmos.auth.v1beta1.BaseAccount.verify|verify} messages. + * Encodes the specified Params message, length delimited. Does not implicitly {@link cosmos.gov.v1.Params.verify|verify} messages. * @function encodeDelimited - * @memberof cosmos.auth.v1beta1.BaseAccount + * @memberof cosmos.gov.v1.Params * @static - * @param {cosmos.auth.v1beta1.IBaseAccount} message BaseAccount message or plain object to encode + * @param {cosmos.gov.v1.IParams} message Params message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BaseAccount.encodeDelimited = function encodeDelimited(message, writer) { + Params.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BaseAccount message from the specified reader or buffer. + * Decodes a Params message from the specified reader or buffer. * @function decode - * @memberof cosmos.auth.v1beta1.BaseAccount + * @memberof cosmos.gov.v1.Params * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {cosmos.auth.v1beta1.BaseAccount} BaseAccount + * @returns {cosmos.gov.v1.Params} Params * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BaseAccount.decode = function decode(reader, length) { + Params.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.cosmos.auth.v1beta1.BaseAccount(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.cosmos.gov.v1.Params(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.address = reader.string(); + if (!(message.min_deposit && message.min_deposit.length)) + message.min_deposit = []; + message.min_deposit.push($root.cosmos.base.v1beta1.Coin.decode(reader, reader.uint32())); break; case 2: - message.pub_key = $root.google.protobuf.Any.decode(reader, reader.uint32()); + message.max_deposit_period = $root.google.protobuf.Duration.decode(reader, reader.uint32()); break; case 3: - message.account_number = reader.uint64(); + message.voting_period = $root.google.protobuf.Duration.decode(reader, reader.uint32()); break; case 4: - message.sequence = reader.uint64(); + message.quorum = reader.string(); + break; + case 5: + message.threshold = reader.string(); + break; + case 6: + message.veto_threshold = reader.string(); + break; + case 7: + message.min_initial_deposit_ratio = reader.string(); + break; + case 13: + message.burn_vote_quorum = reader.bool(); + break; + case 14: + message.burn_proposal_deposit_prevote = reader.bool(); + break; + case 15: + message.burn_vote_veto = reader.bool(); break; default: reader.skipType(tag & 7); @@ -6755,168 +8067,233 @@ export const cosmos = $root.cosmos = (() => { }; /** - * Decodes a BaseAccount message from the specified reader or buffer, length delimited. + * Decodes a Params message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof cosmos.auth.v1beta1.BaseAccount + * @memberof cosmos.gov.v1.Params * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {cosmos.auth.v1beta1.BaseAccount} BaseAccount + * @returns {cosmos.gov.v1.Params} Params * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BaseAccount.decodeDelimited = function decodeDelimited(reader) { + Params.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a BaseAccount message. + * Verifies a Params message. * @function verify - * @memberof cosmos.auth.v1beta1.BaseAccount + * @memberof cosmos.gov.v1.Params * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BaseAccount.verify = function verify(message) { + Params.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.address != null && message.hasOwnProperty("address")) - if (!$util.isString(message.address)) - return "address: string expected"; - if (message.pub_key != null && message.hasOwnProperty("pub_key")) { - let error = $root.google.protobuf.Any.verify(message.pub_key); + if (message.min_deposit != null && message.hasOwnProperty("min_deposit")) { + if (!Array.isArray(message.min_deposit)) + return "min_deposit: array expected"; + for (let i = 0; i < message.min_deposit.length; ++i) { + let error = $root.cosmos.base.v1beta1.Coin.verify(message.min_deposit[i]); + if (error) + return "min_deposit." + error; + } + } + if (message.max_deposit_period != null && message.hasOwnProperty("max_deposit_period")) { + let error = $root.google.protobuf.Duration.verify(message.max_deposit_period); if (error) - return "pub_key." + error; + return "max_deposit_period." + error; } - if (message.account_number != null && message.hasOwnProperty("account_number")) - if (!$util.isInteger(message.account_number) && !(message.account_number && $util.isInteger(message.account_number.low) && $util.isInteger(message.account_number.high))) - return "account_number: integer|Long expected"; - if (message.sequence != null && message.hasOwnProperty("sequence")) - if (!$util.isInteger(message.sequence) && !(message.sequence && $util.isInteger(message.sequence.low) && $util.isInteger(message.sequence.high))) - return "sequence: integer|Long expected"; + if (message.voting_period != null && message.hasOwnProperty("voting_period")) { + let error = $root.google.protobuf.Duration.verify(message.voting_period); + if (error) + return "voting_period." + error; + } + if (message.quorum != null && message.hasOwnProperty("quorum")) + if (!$util.isString(message.quorum)) + return "quorum: string expected"; + if (message.threshold != null && message.hasOwnProperty("threshold")) + if (!$util.isString(message.threshold)) + return "threshold: string expected"; + if (message.veto_threshold != null && message.hasOwnProperty("veto_threshold")) + if (!$util.isString(message.veto_threshold)) + return "veto_threshold: string expected"; + if (message.min_initial_deposit_ratio != null && message.hasOwnProperty("min_initial_deposit_ratio")) + if (!$util.isString(message.min_initial_deposit_ratio)) + return "min_initial_deposit_ratio: string expected"; + if (message.burn_vote_quorum != null && message.hasOwnProperty("burn_vote_quorum")) + if (typeof message.burn_vote_quorum !== "boolean") + return "burn_vote_quorum: boolean expected"; + if (message.burn_proposal_deposit_prevote != null && message.hasOwnProperty("burn_proposal_deposit_prevote")) + if (typeof message.burn_proposal_deposit_prevote !== "boolean") + return "burn_proposal_deposit_prevote: boolean expected"; + if (message.burn_vote_veto != null && message.hasOwnProperty("burn_vote_veto")) + if (typeof message.burn_vote_veto !== "boolean") + return "burn_vote_veto: boolean expected"; return null; }; /** - * Creates a BaseAccount message from a plain object. Also converts values to their respective internal types. + * Creates a Params message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof cosmos.auth.v1beta1.BaseAccount + * @memberof cosmos.gov.v1.Params * @static * @param {Object.} object Plain object - * @returns {cosmos.auth.v1beta1.BaseAccount} BaseAccount + * @returns {cosmos.gov.v1.Params} Params */ - BaseAccount.fromObject = function fromObject(object) { - if (object instanceof $root.cosmos.auth.v1beta1.BaseAccount) + Params.fromObject = function fromObject(object) { + if (object instanceof $root.cosmos.gov.v1.Params) return object; - let message = new $root.cosmos.auth.v1beta1.BaseAccount(); - if (object.address != null) - message.address = String(object.address); - if (object.pub_key != null) { - if (typeof object.pub_key !== "object") - throw TypeError(".cosmos.auth.v1beta1.BaseAccount.pub_key: object expected"); - message.pub_key = $root.google.protobuf.Any.fromObject(object.pub_key); + let message = new $root.cosmos.gov.v1.Params(); + if (object.min_deposit) { + if (!Array.isArray(object.min_deposit)) + throw TypeError(".cosmos.gov.v1.Params.min_deposit: array expected"); + message.min_deposit = []; + for (let i = 0; i < object.min_deposit.length; ++i) { + if (typeof object.min_deposit[i] !== "object") + throw TypeError(".cosmos.gov.v1.Params.min_deposit: object expected"); + message.min_deposit[i] = $root.cosmos.base.v1beta1.Coin.fromObject(object.min_deposit[i]); + } } - if (object.account_number != null) - if ($util.Long) - (message.account_number = $util.Long.fromValue(object.account_number)).unsigned = true; - else if (typeof object.account_number === "string") - message.account_number = parseInt(object.account_number, 10); - else if (typeof object.account_number === "number") - message.account_number = object.account_number; - else if (typeof object.account_number === "object") - message.account_number = new $util.LongBits(object.account_number.low >>> 0, object.account_number.high >>> 0).toNumber(true); - if (object.sequence != null) - if ($util.Long) - (message.sequence = $util.Long.fromValue(object.sequence)).unsigned = true; - else if (typeof object.sequence === "string") - message.sequence = parseInt(object.sequence, 10); - else if (typeof object.sequence === "number") - message.sequence = object.sequence; - else if (typeof object.sequence === "object") - message.sequence = new $util.LongBits(object.sequence.low >>> 0, object.sequence.high >>> 0).toNumber(true); + if (object.max_deposit_period != null) { + if (typeof object.max_deposit_period !== "object") + throw TypeError(".cosmos.gov.v1.Params.max_deposit_period: object expected"); + message.max_deposit_period = $root.google.protobuf.Duration.fromObject(object.max_deposit_period); + } + if (object.voting_period != null) { + if (typeof object.voting_period !== "object") + throw TypeError(".cosmos.gov.v1.Params.voting_period: object expected"); + message.voting_period = $root.google.protobuf.Duration.fromObject(object.voting_period); + } + if (object.quorum != null) + message.quorum = String(object.quorum); + if (object.threshold != null) + message.threshold = String(object.threshold); + if (object.veto_threshold != null) + message.veto_threshold = String(object.veto_threshold); + if (object.min_initial_deposit_ratio != null) + message.min_initial_deposit_ratio = String(object.min_initial_deposit_ratio); + if (object.burn_vote_quorum != null) + message.burn_vote_quorum = Boolean(object.burn_vote_quorum); + if (object.burn_proposal_deposit_prevote != null) + message.burn_proposal_deposit_prevote = Boolean(object.burn_proposal_deposit_prevote); + if (object.burn_vote_veto != null) + message.burn_vote_veto = Boolean(object.burn_vote_veto); return message; }; /** - * Creates a plain object from a BaseAccount message. Also converts values to other types if specified. + * Creates a plain object from a Params message. Also converts values to other types if specified. * @function toObject - * @memberof cosmos.auth.v1beta1.BaseAccount + * @memberof cosmos.gov.v1.Params * @static - * @param {cosmos.auth.v1beta1.BaseAccount} message BaseAccount + * @param {cosmos.gov.v1.Params} message Params * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BaseAccount.toObject = function toObject(message, options) { + Params.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; + if (options.arrays || options.defaults) + object.min_deposit = []; if (options.defaults) { - object.address = ""; - object.pub_key = null; - if ($util.Long) { - let long = new $util.Long(0, 0, true); - object.account_number = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.account_number = options.longs === String ? "0" : 0; - if ($util.Long) { - let long = new $util.Long(0, 0, true); - object.sequence = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.sequence = options.longs === String ? "0" : 0; + object.max_deposit_period = null; + object.voting_period = null; + object.quorum = ""; + object.threshold = ""; + object.veto_threshold = ""; + object.min_initial_deposit_ratio = ""; + object.burn_vote_quorum = false; + object.burn_proposal_deposit_prevote = false; + object.burn_vote_veto = false; } - if (message.address != null && message.hasOwnProperty("address")) - object.address = message.address; - if (message.pub_key != null && message.hasOwnProperty("pub_key")) - object.pub_key = $root.google.protobuf.Any.toObject(message.pub_key, options); - if (message.account_number != null && message.hasOwnProperty("account_number")) - if (typeof message.account_number === "number") - object.account_number = options.longs === String ? String(message.account_number) : message.account_number; - else - object.account_number = options.longs === String ? $util.Long.prototype.toString.call(message.account_number) : options.longs === Number ? new $util.LongBits(message.account_number.low >>> 0, message.account_number.high >>> 0).toNumber(true) : message.account_number; - if (message.sequence != null && message.hasOwnProperty("sequence")) - if (typeof message.sequence === "number") - object.sequence = options.longs === String ? String(message.sequence) : message.sequence; - else - object.sequence = options.longs === String ? $util.Long.prototype.toString.call(message.sequence) : options.longs === Number ? new $util.LongBits(message.sequence.low >>> 0, message.sequence.high >>> 0).toNumber(true) : message.sequence; + if (message.min_deposit && message.min_deposit.length) { + object.min_deposit = []; + for (let j = 0; j < message.min_deposit.length; ++j) + object.min_deposit[j] = $root.cosmos.base.v1beta1.Coin.toObject(message.min_deposit[j], options); + } + if (message.max_deposit_period != null && message.hasOwnProperty("max_deposit_period")) + object.max_deposit_period = $root.google.protobuf.Duration.toObject(message.max_deposit_period, options); + if (message.voting_period != null && message.hasOwnProperty("voting_period")) + object.voting_period = $root.google.protobuf.Duration.toObject(message.voting_period, options); + if (message.quorum != null && message.hasOwnProperty("quorum")) + object.quorum = message.quorum; + if (message.threshold != null && message.hasOwnProperty("threshold")) + object.threshold = message.threshold; + if (message.veto_threshold != null && message.hasOwnProperty("veto_threshold")) + object.veto_threshold = message.veto_threshold; + if (message.min_initial_deposit_ratio != null && message.hasOwnProperty("min_initial_deposit_ratio")) + object.min_initial_deposit_ratio = message.min_initial_deposit_ratio; + if (message.burn_vote_quorum != null && message.hasOwnProperty("burn_vote_quorum")) + object.burn_vote_quorum = message.burn_vote_quorum; + if (message.burn_proposal_deposit_prevote != null && message.hasOwnProperty("burn_proposal_deposit_prevote")) + object.burn_proposal_deposit_prevote = message.burn_proposal_deposit_prevote; + if (message.burn_vote_veto != null && message.hasOwnProperty("burn_vote_veto")) + object.burn_vote_veto = message.burn_vote_veto; return object; }; /** - * Converts this BaseAccount to JSON. + * Converts this Params to JSON. * @function toJSON - * @memberof cosmos.auth.v1beta1.BaseAccount + * @memberof cosmos.gov.v1.Params * @instance * @returns {Object.} JSON object */ - BaseAccount.prototype.toJSON = function toJSON() { + Params.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return BaseAccount; + return Params; })(); - v1beta1.ModuleAccount = (function() { + return v1; + })(); + + return gov; + })(); + + cosmos.base = (function() { + + /** + * Namespace base. + * @memberof cosmos + * @namespace + */ + const base = {}; + + base.v1beta1 = (function() { + + /** + * Namespace v1beta1. + * @memberof cosmos.base + * @namespace + */ + const v1beta1 = {}; + + v1beta1.Coin = (function() { /** - * Properties of a ModuleAccount. - * @memberof cosmos.auth.v1beta1 - * @interface IModuleAccount - * @property {cosmos.auth.v1beta1.IBaseAccount|null} [base_account] ModuleAccount base_account - * @property {string|null} [name] ModuleAccount name - * @property {Array.|null} [permissions] ModuleAccount permissions + * Properties of a Coin. + * @memberof cosmos.base.v1beta1 + * @interface ICoin + * @property {string|null} [denom] Coin denom + * @property {string|null} [amount] Coin amount */ /** - * Constructs a new ModuleAccount. - * @memberof cosmos.auth.v1beta1 - * @classdesc Represents a ModuleAccount. - * @implements IModuleAccount - * @constructor - * @param {cosmos.auth.v1beta1.IModuleAccount=} [properties] Properties to set - */ - function ModuleAccount(properties) { - this.permissions = []; + * Constructs a new Coin. + * @memberof cosmos.base.v1beta1 + * @classdesc Represents a Coin. + * @implements ICoin + * @constructor + * @param {cosmos.base.v1beta1.ICoin=} [properties] Properties to set + */ + function Coin(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -6924,92 +8301,76 @@ export const cosmos = $root.cosmos = (() => { } /** - * ModuleAccount base_account. - * @member {cosmos.auth.v1beta1.IBaseAccount|null|undefined} base_account - * @memberof cosmos.auth.v1beta1.ModuleAccount - * @instance - */ - ModuleAccount.prototype.base_account = null; - - /** - * ModuleAccount name. - * @member {string} name - * @memberof cosmos.auth.v1beta1.ModuleAccount + * Coin denom. + * @member {string} denom + * @memberof cosmos.base.v1beta1.Coin * @instance */ - ModuleAccount.prototype.name = ""; + Coin.prototype.denom = ""; /** - * ModuleAccount permissions. - * @member {Array.} permissions - * @memberof cosmos.auth.v1beta1.ModuleAccount + * Coin amount. + * @member {string} amount + * @memberof cosmos.base.v1beta1.Coin * @instance */ - ModuleAccount.prototype.permissions = $util.emptyArray; + Coin.prototype.amount = ""; /** - * Encodes the specified ModuleAccount message. Does not implicitly {@link cosmos.auth.v1beta1.ModuleAccount.verify|verify} messages. + * Encodes the specified Coin message. Does not implicitly {@link cosmos.base.v1beta1.Coin.verify|verify} messages. * @function encode - * @memberof cosmos.auth.v1beta1.ModuleAccount + * @memberof cosmos.base.v1beta1.Coin * @static - * @param {cosmos.auth.v1beta1.IModuleAccount} message ModuleAccount message or plain object to encode + * @param {cosmos.base.v1beta1.ICoin} message Coin message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ModuleAccount.encode = function encode(message, writer) { + Coin.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.base_account != null && Object.hasOwnProperty.call(message, "base_account")) - $root.cosmos.auth.v1beta1.BaseAccount.encode(message.base_account, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.name); - if (message.permissions != null && message.permissions.length) - for (let i = 0; i < message.permissions.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.permissions[i]); + if (message.denom != null && Object.hasOwnProperty.call(message, "denom")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.denom); + if (message.amount != null && Object.hasOwnProperty.call(message, "amount")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.amount); return writer; }; /** - * Encodes the specified ModuleAccount message, length delimited. Does not implicitly {@link cosmos.auth.v1beta1.ModuleAccount.verify|verify} messages. + * Encodes the specified Coin message, length delimited. Does not implicitly {@link cosmos.base.v1beta1.Coin.verify|verify} messages. * @function encodeDelimited - * @memberof cosmos.auth.v1beta1.ModuleAccount + * @memberof cosmos.base.v1beta1.Coin * @static - * @param {cosmos.auth.v1beta1.IModuleAccount} message ModuleAccount message or plain object to encode + * @param {cosmos.base.v1beta1.ICoin} message Coin message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ModuleAccount.encodeDelimited = function encodeDelimited(message, writer) { + Coin.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ModuleAccount message from the specified reader or buffer. + * Decodes a Coin message from the specified reader or buffer. * @function decode - * @memberof cosmos.auth.v1beta1.ModuleAccount + * @memberof cosmos.base.v1beta1.Coin * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {cosmos.auth.v1beta1.ModuleAccount} ModuleAccount + * @returns {cosmos.base.v1beta1.Coin} Coin * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ModuleAccount.decode = function decode(reader, length) { + Coin.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.cosmos.auth.v1beta1.ModuleAccount(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.cosmos.base.v1beta1.Coin(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.base_account = $root.cosmos.auth.v1beta1.BaseAccount.decode(reader, reader.uint32()); + message.denom = reader.string(); break; case 2: - message.name = reader.string(); - break; - case 3: - if (!(message.permissions && message.permissions.length)) - message.permissions = []; - message.permissions.push(reader.string()); + message.amount = reader.string(); break; default: reader.skipType(tag & 7); @@ -7020,146 +8381,117 @@ export const cosmos = $root.cosmos = (() => { }; /** - * Decodes a ModuleAccount message from the specified reader or buffer, length delimited. + * Decodes a Coin message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof cosmos.auth.v1beta1.ModuleAccount + * @memberof cosmos.base.v1beta1.Coin * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {cosmos.auth.v1beta1.ModuleAccount} ModuleAccount + * @returns {cosmos.base.v1beta1.Coin} Coin * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ModuleAccount.decodeDelimited = function decodeDelimited(reader) { + Coin.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ModuleAccount message. + * Verifies a Coin message. * @function verify - * @memberof cosmos.auth.v1beta1.ModuleAccount + * @memberof cosmos.base.v1beta1.Coin * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ModuleAccount.verify = function verify(message) { + Coin.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.base_account != null && message.hasOwnProperty("base_account")) { - let error = $root.cosmos.auth.v1beta1.BaseAccount.verify(message.base_account); - if (error) - return "base_account." + error; - } - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.permissions != null && message.hasOwnProperty("permissions")) { - if (!Array.isArray(message.permissions)) - return "permissions: array expected"; - for (let i = 0; i < message.permissions.length; ++i) - if (!$util.isString(message.permissions[i])) - return "permissions: string[] expected"; - } + if (message.denom != null && message.hasOwnProperty("denom")) + if (!$util.isString(message.denom)) + return "denom: string expected"; + if (message.amount != null && message.hasOwnProperty("amount")) + if (!$util.isString(message.amount)) + return "amount: string expected"; return null; }; /** - * Creates a ModuleAccount message from a plain object. Also converts values to their respective internal types. + * Creates a Coin message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof cosmos.auth.v1beta1.ModuleAccount + * @memberof cosmos.base.v1beta1.Coin * @static * @param {Object.} object Plain object - * @returns {cosmos.auth.v1beta1.ModuleAccount} ModuleAccount + * @returns {cosmos.base.v1beta1.Coin} Coin */ - ModuleAccount.fromObject = function fromObject(object) { - if (object instanceof $root.cosmos.auth.v1beta1.ModuleAccount) + Coin.fromObject = function fromObject(object) { + if (object instanceof $root.cosmos.base.v1beta1.Coin) return object; - let message = new $root.cosmos.auth.v1beta1.ModuleAccount(); - if (object.base_account != null) { - if (typeof object.base_account !== "object") - throw TypeError(".cosmos.auth.v1beta1.ModuleAccount.base_account: object expected"); - message.base_account = $root.cosmos.auth.v1beta1.BaseAccount.fromObject(object.base_account); - } - if (object.name != null) - message.name = String(object.name); - if (object.permissions) { - if (!Array.isArray(object.permissions)) - throw TypeError(".cosmos.auth.v1beta1.ModuleAccount.permissions: array expected"); - message.permissions = []; - for (let i = 0; i < object.permissions.length; ++i) - message.permissions[i] = String(object.permissions[i]); - } + let message = new $root.cosmos.base.v1beta1.Coin(); + if (object.denom != null) + message.denom = String(object.denom); + if (object.amount != null) + message.amount = String(object.amount); return message; }; /** - * Creates a plain object from a ModuleAccount message. Also converts values to other types if specified. + * Creates a plain object from a Coin message. Also converts values to other types if specified. * @function toObject - * @memberof cosmos.auth.v1beta1.ModuleAccount + * @memberof cosmos.base.v1beta1.Coin * @static - * @param {cosmos.auth.v1beta1.ModuleAccount} message ModuleAccount + * @param {cosmos.base.v1beta1.Coin} message Coin * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ModuleAccount.toObject = function toObject(message, options) { + Coin.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.permissions = []; if (options.defaults) { - object.base_account = null; - object.name = ""; - } - if (message.base_account != null && message.hasOwnProperty("base_account")) - object.base_account = $root.cosmos.auth.v1beta1.BaseAccount.toObject(message.base_account, options); - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.permissions && message.permissions.length) { - object.permissions = []; - for (let j = 0; j < message.permissions.length; ++j) - object.permissions[j] = message.permissions[j]; + object.denom = ""; + object.amount = ""; } + if (message.denom != null && message.hasOwnProperty("denom")) + object.denom = message.denom; + if (message.amount != null && message.hasOwnProperty("amount")) + object.amount = message.amount; return object; }; /** - * Converts this ModuleAccount to JSON. + * Converts this Coin to JSON. * @function toJSON - * @memberof cosmos.auth.v1beta1.ModuleAccount + * @memberof cosmos.base.v1beta1.Coin * @instance * @returns {Object.} JSON object */ - ModuleAccount.prototype.toJSON = function toJSON() { + Coin.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ModuleAccount; + return Coin; })(); - v1beta1.Params = (function() { + v1beta1.DecCoin = (function() { /** - * Properties of a Params. - * @memberof cosmos.auth.v1beta1 - * @interface IParams - * @property {Long|null} [max_memo_characters] Params max_memo_characters - * @property {Long|null} [tx_sig_limit] Params tx_sig_limit - * @property {Long|null} [tx_size_cost_per_byte] Params tx_size_cost_per_byte - * @property {Long|null} [sig_verify_cost_ed25519] Params sig_verify_cost_ed25519 - * @property {Long|null} [sig_verify_cost_secp256k1] Params sig_verify_cost_secp256k1 + * Properties of a DecCoin. + * @memberof cosmos.base.v1beta1 + * @interface IDecCoin + * @property {string|null} [denom] DecCoin denom + * @property {string|null} [amount] DecCoin amount */ /** - * Constructs a new Params. - * @memberof cosmos.auth.v1beta1 - * @classdesc Represents a Params. - * @implements IParams + * Constructs a new DecCoin. + * @memberof cosmos.base.v1beta1 + * @classdesc Represents a DecCoin. + * @implements IDecCoin * @constructor - * @param {cosmos.auth.v1beta1.IParams=} [properties] Properties to set + * @param {cosmos.base.v1beta1.IDecCoin=} [properties] Properties to set */ - function Params(properties) { + function DecCoin(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -7167,115 +8499,76 @@ export const cosmos = $root.cosmos = (() => { } /** - * Params max_memo_characters. - * @member {Long} max_memo_characters - * @memberof cosmos.auth.v1beta1.Params - * @instance - */ - Params.prototype.max_memo_characters = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * Params tx_sig_limit. - * @member {Long} tx_sig_limit - * @memberof cosmos.auth.v1beta1.Params - * @instance - */ - Params.prototype.tx_sig_limit = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * Params tx_size_cost_per_byte. - * @member {Long} tx_size_cost_per_byte - * @memberof cosmos.auth.v1beta1.Params - * @instance - */ - Params.prototype.tx_size_cost_per_byte = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * Params sig_verify_cost_ed25519. - * @member {Long} sig_verify_cost_ed25519 - * @memberof cosmos.auth.v1beta1.Params + * DecCoin denom. + * @member {string} denom + * @memberof cosmos.base.v1beta1.DecCoin * @instance */ - Params.prototype.sig_verify_cost_ed25519 = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + DecCoin.prototype.denom = ""; /** - * Params sig_verify_cost_secp256k1. - * @member {Long} sig_verify_cost_secp256k1 - * @memberof cosmos.auth.v1beta1.Params + * DecCoin amount. + * @member {string} amount + * @memberof cosmos.base.v1beta1.DecCoin * @instance */ - Params.prototype.sig_verify_cost_secp256k1 = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + DecCoin.prototype.amount = ""; /** - * Encodes the specified Params message. Does not implicitly {@link cosmos.auth.v1beta1.Params.verify|verify} messages. + * Encodes the specified DecCoin message. Does not implicitly {@link cosmos.base.v1beta1.DecCoin.verify|verify} messages. * @function encode - * @memberof cosmos.auth.v1beta1.Params + * @memberof cosmos.base.v1beta1.DecCoin * @static - * @param {cosmos.auth.v1beta1.IParams} message Params message or plain object to encode + * @param {cosmos.base.v1beta1.IDecCoin} message DecCoin message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Params.encode = function encode(message, writer) { + DecCoin.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.max_memo_characters != null && Object.hasOwnProperty.call(message, "max_memo_characters")) - writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.max_memo_characters); - if (message.tx_sig_limit != null && Object.hasOwnProperty.call(message, "tx_sig_limit")) - writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.tx_sig_limit); - if (message.tx_size_cost_per_byte != null && Object.hasOwnProperty.call(message, "tx_size_cost_per_byte")) - writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.tx_size_cost_per_byte); - if (message.sig_verify_cost_ed25519 != null && Object.hasOwnProperty.call(message, "sig_verify_cost_ed25519")) - writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.sig_verify_cost_ed25519); - if (message.sig_verify_cost_secp256k1 != null && Object.hasOwnProperty.call(message, "sig_verify_cost_secp256k1")) - writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.sig_verify_cost_secp256k1); + if (message.denom != null && Object.hasOwnProperty.call(message, "denom")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.denom); + if (message.amount != null && Object.hasOwnProperty.call(message, "amount")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.amount); return writer; }; /** - * Encodes the specified Params message, length delimited. Does not implicitly {@link cosmos.auth.v1beta1.Params.verify|verify} messages. + * Encodes the specified DecCoin message, length delimited. Does not implicitly {@link cosmos.base.v1beta1.DecCoin.verify|verify} messages. * @function encodeDelimited - * @memberof cosmos.auth.v1beta1.Params + * @memberof cosmos.base.v1beta1.DecCoin * @static - * @param {cosmos.auth.v1beta1.IParams} message Params message or plain object to encode + * @param {cosmos.base.v1beta1.IDecCoin} message DecCoin message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Params.encodeDelimited = function encodeDelimited(message, writer) { + DecCoin.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Params message from the specified reader or buffer. + * Decodes a DecCoin message from the specified reader or buffer. * @function decode - * @memberof cosmos.auth.v1beta1.Params + * @memberof cosmos.base.v1beta1.DecCoin * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {cosmos.auth.v1beta1.Params} Params + * @returns {cosmos.base.v1beta1.DecCoin} DecCoin * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Params.decode = function decode(reader, length) { + DecCoin.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.cosmos.auth.v1beta1.Params(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.cosmos.base.v1beta1.DecCoin(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.max_memo_characters = reader.uint64(); + message.denom = reader.string(); break; case 2: - message.tx_sig_limit = reader.uint64(); - break; - case 3: - message.tx_size_cost_per_byte = reader.uint64(); - break; - case 4: - message.sig_verify_cost_ed25519 = reader.uint64(); - break; - case 5: - message.sig_verify_cost_secp256k1 = reader.uint64(); + message.amount = reader.string(); break; default: reader.skipType(tag & 7); @@ -7286,1571 +8579,6238 @@ export const cosmos = $root.cosmos = (() => { }; /** - * Decodes a Params message from the specified reader or buffer, length delimited. + * Decodes a DecCoin message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof cosmos.auth.v1beta1.Params + * @memberof cosmos.base.v1beta1.DecCoin * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {cosmos.auth.v1beta1.Params} Params + * @returns {cosmos.base.v1beta1.DecCoin} DecCoin * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Params.decodeDelimited = function decodeDelimited(reader) { + DecCoin.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Params message. + * Verifies a DecCoin message. * @function verify - * @memberof cosmos.auth.v1beta1.Params + * @memberof cosmos.base.v1beta1.DecCoin * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Params.verify = function verify(message) { + DecCoin.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.max_memo_characters != null && message.hasOwnProperty("max_memo_characters")) - if (!$util.isInteger(message.max_memo_characters) && !(message.max_memo_characters && $util.isInteger(message.max_memo_characters.low) && $util.isInteger(message.max_memo_characters.high))) - return "max_memo_characters: integer|Long expected"; - if (message.tx_sig_limit != null && message.hasOwnProperty("tx_sig_limit")) - if (!$util.isInteger(message.tx_sig_limit) && !(message.tx_sig_limit && $util.isInteger(message.tx_sig_limit.low) && $util.isInteger(message.tx_sig_limit.high))) - return "tx_sig_limit: integer|Long expected"; - if (message.tx_size_cost_per_byte != null && message.hasOwnProperty("tx_size_cost_per_byte")) - if (!$util.isInteger(message.tx_size_cost_per_byte) && !(message.tx_size_cost_per_byte && $util.isInteger(message.tx_size_cost_per_byte.low) && $util.isInteger(message.tx_size_cost_per_byte.high))) - return "tx_size_cost_per_byte: integer|Long expected"; - if (message.sig_verify_cost_ed25519 != null && message.hasOwnProperty("sig_verify_cost_ed25519")) - if (!$util.isInteger(message.sig_verify_cost_ed25519) && !(message.sig_verify_cost_ed25519 && $util.isInteger(message.sig_verify_cost_ed25519.low) && $util.isInteger(message.sig_verify_cost_ed25519.high))) - return "sig_verify_cost_ed25519: integer|Long expected"; - if (message.sig_verify_cost_secp256k1 != null && message.hasOwnProperty("sig_verify_cost_secp256k1")) - if (!$util.isInteger(message.sig_verify_cost_secp256k1) && !(message.sig_verify_cost_secp256k1 && $util.isInteger(message.sig_verify_cost_secp256k1.low) && $util.isInteger(message.sig_verify_cost_secp256k1.high))) - return "sig_verify_cost_secp256k1: integer|Long expected"; + if (message.denom != null && message.hasOwnProperty("denom")) + if (!$util.isString(message.denom)) + return "denom: string expected"; + if (message.amount != null && message.hasOwnProperty("amount")) + if (!$util.isString(message.amount)) + return "amount: string expected"; return null; }; /** - * Creates a Params message from a plain object. Also converts values to their respective internal types. + * Creates a DecCoin message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof cosmos.auth.v1beta1.Params + * @memberof cosmos.base.v1beta1.DecCoin * @static * @param {Object.} object Plain object - * @returns {cosmos.auth.v1beta1.Params} Params + * @returns {cosmos.base.v1beta1.DecCoin} DecCoin */ - Params.fromObject = function fromObject(object) { - if (object instanceof $root.cosmos.auth.v1beta1.Params) + DecCoin.fromObject = function fromObject(object) { + if (object instanceof $root.cosmos.base.v1beta1.DecCoin) return object; - let message = new $root.cosmos.auth.v1beta1.Params(); - if (object.max_memo_characters != null) - if ($util.Long) - (message.max_memo_characters = $util.Long.fromValue(object.max_memo_characters)).unsigned = true; - else if (typeof object.max_memo_characters === "string") - message.max_memo_characters = parseInt(object.max_memo_characters, 10); - else if (typeof object.max_memo_characters === "number") - message.max_memo_characters = object.max_memo_characters; - else if (typeof object.max_memo_characters === "object") - message.max_memo_characters = new $util.LongBits(object.max_memo_characters.low >>> 0, object.max_memo_characters.high >>> 0).toNumber(true); - if (object.tx_sig_limit != null) - if ($util.Long) - (message.tx_sig_limit = $util.Long.fromValue(object.tx_sig_limit)).unsigned = true; - else if (typeof object.tx_sig_limit === "string") - message.tx_sig_limit = parseInt(object.tx_sig_limit, 10); - else if (typeof object.tx_sig_limit === "number") - message.tx_sig_limit = object.tx_sig_limit; - else if (typeof object.tx_sig_limit === "object") - message.tx_sig_limit = new $util.LongBits(object.tx_sig_limit.low >>> 0, object.tx_sig_limit.high >>> 0).toNumber(true); - if (object.tx_size_cost_per_byte != null) - if ($util.Long) - (message.tx_size_cost_per_byte = $util.Long.fromValue(object.tx_size_cost_per_byte)).unsigned = true; - else if (typeof object.tx_size_cost_per_byte === "string") - message.tx_size_cost_per_byte = parseInt(object.tx_size_cost_per_byte, 10); - else if (typeof object.tx_size_cost_per_byte === "number") - message.tx_size_cost_per_byte = object.tx_size_cost_per_byte; - else if (typeof object.tx_size_cost_per_byte === "object") - message.tx_size_cost_per_byte = new $util.LongBits(object.tx_size_cost_per_byte.low >>> 0, object.tx_size_cost_per_byte.high >>> 0).toNumber(true); - if (object.sig_verify_cost_ed25519 != null) - if ($util.Long) - (message.sig_verify_cost_ed25519 = $util.Long.fromValue(object.sig_verify_cost_ed25519)).unsigned = true; - else if (typeof object.sig_verify_cost_ed25519 === "string") - message.sig_verify_cost_ed25519 = parseInt(object.sig_verify_cost_ed25519, 10); - else if (typeof object.sig_verify_cost_ed25519 === "number") - message.sig_verify_cost_ed25519 = object.sig_verify_cost_ed25519; - else if (typeof object.sig_verify_cost_ed25519 === "object") - message.sig_verify_cost_ed25519 = new $util.LongBits(object.sig_verify_cost_ed25519.low >>> 0, object.sig_verify_cost_ed25519.high >>> 0).toNumber(true); - if (object.sig_verify_cost_secp256k1 != null) - if ($util.Long) - (message.sig_verify_cost_secp256k1 = $util.Long.fromValue(object.sig_verify_cost_secp256k1)).unsigned = true; - else if (typeof object.sig_verify_cost_secp256k1 === "string") - message.sig_verify_cost_secp256k1 = parseInt(object.sig_verify_cost_secp256k1, 10); - else if (typeof object.sig_verify_cost_secp256k1 === "number") - message.sig_verify_cost_secp256k1 = object.sig_verify_cost_secp256k1; - else if (typeof object.sig_verify_cost_secp256k1 === "object") - message.sig_verify_cost_secp256k1 = new $util.LongBits(object.sig_verify_cost_secp256k1.low >>> 0, object.sig_verify_cost_secp256k1.high >>> 0).toNumber(true); + let message = new $root.cosmos.base.v1beta1.DecCoin(); + if (object.denom != null) + message.denom = String(object.denom); + if (object.amount != null) + message.amount = String(object.amount); return message; }; /** - * Creates a plain object from a Params message. Also converts values to other types if specified. + * Creates a plain object from a DecCoin message. Also converts values to other types if specified. * @function toObject - * @memberof cosmos.auth.v1beta1.Params + * @memberof cosmos.base.v1beta1.DecCoin * @static - * @param {cosmos.auth.v1beta1.Params} message Params + * @param {cosmos.base.v1beta1.DecCoin} message DecCoin * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Params.toObject = function toObject(message, options) { + DecCoin.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - if ($util.Long) { - let long = new $util.Long(0, 0, true); - object.max_memo_characters = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.max_memo_characters = options.longs === String ? "0" : 0; - if ($util.Long) { - let long = new $util.Long(0, 0, true); - object.tx_sig_limit = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.tx_sig_limit = options.longs === String ? "0" : 0; - if ($util.Long) { - let long = new $util.Long(0, 0, true); - object.tx_size_cost_per_byte = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.tx_size_cost_per_byte = options.longs === String ? "0" : 0; - if ($util.Long) { - let long = new $util.Long(0, 0, true); - object.sig_verify_cost_ed25519 = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.sig_verify_cost_ed25519 = options.longs === String ? "0" : 0; - if ($util.Long) { - let long = new $util.Long(0, 0, true); - object.sig_verify_cost_secp256k1 = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.sig_verify_cost_secp256k1 = options.longs === String ? "0" : 0; + object.denom = ""; + object.amount = ""; } - if (message.max_memo_characters != null && message.hasOwnProperty("max_memo_characters")) - if (typeof message.max_memo_characters === "number") - object.max_memo_characters = options.longs === String ? String(message.max_memo_characters) : message.max_memo_characters; - else - object.max_memo_characters = options.longs === String ? $util.Long.prototype.toString.call(message.max_memo_characters) : options.longs === Number ? new $util.LongBits(message.max_memo_characters.low >>> 0, message.max_memo_characters.high >>> 0).toNumber(true) : message.max_memo_characters; - if (message.tx_sig_limit != null && message.hasOwnProperty("tx_sig_limit")) - if (typeof message.tx_sig_limit === "number") - object.tx_sig_limit = options.longs === String ? String(message.tx_sig_limit) : message.tx_sig_limit; - else - object.tx_sig_limit = options.longs === String ? $util.Long.prototype.toString.call(message.tx_sig_limit) : options.longs === Number ? new $util.LongBits(message.tx_sig_limit.low >>> 0, message.tx_sig_limit.high >>> 0).toNumber(true) : message.tx_sig_limit; - if (message.tx_size_cost_per_byte != null && message.hasOwnProperty("tx_size_cost_per_byte")) - if (typeof message.tx_size_cost_per_byte === "number") - object.tx_size_cost_per_byte = options.longs === String ? String(message.tx_size_cost_per_byte) : message.tx_size_cost_per_byte; - else - object.tx_size_cost_per_byte = options.longs === String ? $util.Long.prototype.toString.call(message.tx_size_cost_per_byte) : options.longs === Number ? new $util.LongBits(message.tx_size_cost_per_byte.low >>> 0, message.tx_size_cost_per_byte.high >>> 0).toNumber(true) : message.tx_size_cost_per_byte; - if (message.sig_verify_cost_ed25519 != null && message.hasOwnProperty("sig_verify_cost_ed25519")) - if (typeof message.sig_verify_cost_ed25519 === "number") - object.sig_verify_cost_ed25519 = options.longs === String ? String(message.sig_verify_cost_ed25519) : message.sig_verify_cost_ed25519; - else - object.sig_verify_cost_ed25519 = options.longs === String ? $util.Long.prototype.toString.call(message.sig_verify_cost_ed25519) : options.longs === Number ? new $util.LongBits(message.sig_verify_cost_ed25519.low >>> 0, message.sig_verify_cost_ed25519.high >>> 0).toNumber(true) : message.sig_verify_cost_ed25519; - if (message.sig_verify_cost_secp256k1 != null && message.hasOwnProperty("sig_verify_cost_secp256k1")) - if (typeof message.sig_verify_cost_secp256k1 === "number") - object.sig_verify_cost_secp256k1 = options.longs === String ? String(message.sig_verify_cost_secp256k1) : message.sig_verify_cost_secp256k1; - else - object.sig_verify_cost_secp256k1 = options.longs === String ? $util.Long.prototype.toString.call(message.sig_verify_cost_secp256k1) : options.longs === Number ? new $util.LongBits(message.sig_verify_cost_secp256k1.low >>> 0, message.sig_verify_cost_secp256k1.high >>> 0).toNumber(true) : message.sig_verify_cost_secp256k1; + if (message.denom != null && message.hasOwnProperty("denom")) + object.denom = message.denom; + if (message.amount != null && message.hasOwnProperty("amount")) + object.amount = message.amount; return object; }; /** - * Converts this Params to JSON. + * Converts this DecCoin to JSON. * @function toJSON - * @memberof cosmos.auth.v1beta1.Params + * @memberof cosmos.base.v1beta1.DecCoin * @instance * @returns {Object.} JSON object */ - Params.prototype.toJSON = function toJSON() { + DecCoin.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Params; + return DecCoin; })(); - return v1beta1; - })(); - - return auth; - })(); + v1beta1.IntProto = (function() { - return cosmos; -})(); + /** + * Properties of an IntProto. + * @memberof cosmos.base.v1beta1 + * @interface IIntProto + * @property {string|null} [int] IntProto int + */ -export const gogoproto = $root.gogoproto = (() => { + /** + * Constructs a new IntProto. + * @memberof cosmos.base.v1beta1 + * @classdesc Represents an IntProto. + * @implements IIntProto + * @constructor + * @param {cosmos.base.v1beta1.IIntProto=} [properties] Properties to set + */ + function IntProto(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Namespace gogoproto. - * @exports gogoproto - * @namespace - */ - const gogoproto = {}; + /** + * IntProto int. + * @member {string} int + * @memberof cosmos.base.v1beta1.IntProto + * @instance + */ + IntProto.prototype.int = ""; - return gogoproto; -})(); + /** + * Encodes the specified IntProto message. Does not implicitly {@link cosmos.base.v1beta1.IntProto.verify|verify} messages. + * @function encode + * @memberof cosmos.base.v1beta1.IntProto + * @static + * @param {cosmos.base.v1beta1.IIntProto} message IntProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + IntProto.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.int != null && Object.hasOwnProperty.call(message, "int")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.int); + return writer; + }; -export const cosmos_proto = $root.cosmos_proto = (() => { + /** + * Encodes the specified IntProto message, length delimited. Does not implicitly {@link cosmos.base.v1beta1.IntProto.verify|verify} messages. + * @function encodeDelimited + * @memberof cosmos.base.v1beta1.IntProto + * @static + * @param {cosmos.base.v1beta1.IIntProto} message IntProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + IntProto.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Namespace cosmos_proto. - * @exports cosmos_proto - * @namespace - */ - const cosmos_proto = {}; + /** + * Decodes an IntProto message from the specified reader or buffer. + * @function decode + * @memberof cosmos.base.v1beta1.IntProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {cosmos.base.v1beta1.IntProto} IntProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + IntProto.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.cosmos.base.v1beta1.IntProto(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.int = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - return cosmos_proto; -})(); + /** + * Decodes an IntProto message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof cosmos.base.v1beta1.IntProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {cosmos.base.v1beta1.IntProto} IntProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + IntProto.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; -export const google = $root.google = (() => { + /** + * Verifies an IntProto message. + * @function verify + * @memberof cosmos.base.v1beta1.IntProto + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + IntProto.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.int != null && message.hasOwnProperty("int")) + if (!$util.isString(message.int)) + return "int: string expected"; + return null; + }; - /** - * Namespace google. - * @exports google - * @namespace - */ - const google = {}; + /** + * Creates an IntProto message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof cosmos.base.v1beta1.IntProto + * @static + * @param {Object.} object Plain object + * @returns {cosmos.base.v1beta1.IntProto} IntProto + */ + IntProto.fromObject = function fromObject(object) { + if (object instanceof $root.cosmos.base.v1beta1.IntProto) + return object; + let message = new $root.cosmos.base.v1beta1.IntProto(); + if (object.int != null) + message.int = String(object.int); + return message; + }; - google.protobuf = (function() { + /** + * Creates a plain object from an IntProto message. Also converts values to other types if specified. + * @function toObject + * @memberof cosmos.base.v1beta1.IntProto + * @static + * @param {cosmos.base.v1beta1.IntProto} message IntProto + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + IntProto.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) + object.int = ""; + if (message.int != null && message.hasOwnProperty("int")) + object.int = message.int; + return object; + }; - /** - * Namespace protobuf. - * @memberof google - * @namespace - */ - const protobuf = {}; + /** + * Converts this IntProto to JSON. + * @function toJSON + * @memberof cosmos.base.v1beta1.IntProto + * @instance + * @returns {Object.} JSON object + */ + IntProto.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - protobuf.FileDescriptorSet = (function() { + return IntProto; + })(); - /** - * Properties of a FileDescriptorSet. - * @memberof google.protobuf - * @interface IFileDescriptorSet - * @property {Array.|null} [file] FileDescriptorSet file - */ + v1beta1.DecProto = (function() { - /** - * Constructs a new FileDescriptorSet. - * @memberof google.protobuf - * @classdesc Represents a FileDescriptorSet. - * @implements IFileDescriptorSet - * @constructor - * @param {google.protobuf.IFileDescriptorSet=} [properties] Properties to set - */ - function FileDescriptorSet(properties) { - this.file = []; - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Properties of a DecProto. + * @memberof cosmos.base.v1beta1 + * @interface IDecProto + * @property {string|null} [dec] DecProto dec + */ - /** - * FileDescriptorSet file. - * @member {Array.} file - * @memberof google.protobuf.FileDescriptorSet - * @instance - */ - FileDescriptorSet.prototype.file = $util.emptyArray; + /** + * Constructs a new DecProto. + * @memberof cosmos.base.v1beta1 + * @classdesc Represents a DecProto. + * @implements IDecProto + * @constructor + * @param {cosmos.base.v1beta1.IDecProto=} [properties] Properties to set + */ + function DecProto(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Encodes the specified FileDescriptorSet message. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages. - * @function encode - * @memberof google.protobuf.FileDescriptorSet - * @static - * @param {google.protobuf.IFileDescriptorSet} message FileDescriptorSet message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FileDescriptorSet.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.file != null && message.file.length) - for (let i = 0; i < message.file.length; ++i) - $root.google.protobuf.FileDescriptorProto.encode(message.file[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; + /** + * DecProto dec. + * @member {string} dec + * @memberof cosmos.base.v1beta1.DecProto + * @instance + */ + DecProto.prototype.dec = ""; - /** - * Encodes the specified FileDescriptorSet message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.FileDescriptorSet - * @static - * @param {google.protobuf.IFileDescriptorSet} message FileDescriptorSet message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FileDescriptorSet.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified DecProto message. Does not implicitly {@link cosmos.base.v1beta1.DecProto.verify|verify} messages. + * @function encode + * @memberof cosmos.base.v1beta1.DecProto + * @static + * @param {cosmos.base.v1beta1.IDecProto} message DecProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DecProto.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.dec != null && Object.hasOwnProperty.call(message, "dec")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.dec); + return writer; + }; - /** - * Decodes a FileDescriptorSet message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.FileDescriptorSet - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.FileDescriptorSet} FileDescriptorSet - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FileDescriptorSet.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FileDescriptorSet(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.file && message.file.length)) - message.file = []; - message.file.push($root.google.protobuf.FileDescriptorProto.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; + /** + * Encodes the specified DecProto message, length delimited. Does not implicitly {@link cosmos.base.v1beta1.DecProto.verify|verify} messages. + * @function encodeDelimited + * @memberof cosmos.base.v1beta1.DecProto + * @static + * @param {cosmos.base.v1beta1.IDecProto} message DecProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DecProto.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DecProto message from the specified reader or buffer. + * @function decode + * @memberof cosmos.base.v1beta1.DecProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {cosmos.base.v1beta1.DecProto} DecProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DecProto.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.cosmos.base.v1beta1.DecProto(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.dec = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } } - } - return message; - }; + return message; + }; - /** - * Decodes a FileDescriptorSet message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.FileDescriptorSet - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.FileDescriptorSet} FileDescriptorSet - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FileDescriptorSet.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a DecProto message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof cosmos.base.v1beta1.DecProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {cosmos.base.v1beta1.DecProto} DecProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DecProto.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies a FileDescriptorSet message. - * @function verify - * @memberof google.protobuf.FileDescriptorSet - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - FileDescriptorSet.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.file != null && message.hasOwnProperty("file")) { - if (!Array.isArray(message.file)) - return "file: array expected"; - for (let i = 0; i < message.file.length; ++i) { - let error = $root.google.protobuf.FileDescriptorProto.verify(message.file[i]); - if (error) - return "file." + error; - } - } - return null; - }; + /** + * Verifies a DecProto message. + * @function verify + * @memberof cosmos.base.v1beta1.DecProto + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DecProto.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.dec != null && message.hasOwnProperty("dec")) + if (!$util.isString(message.dec)) + return "dec: string expected"; + return null; + }; - /** - * Creates a FileDescriptorSet message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.FileDescriptorSet - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.FileDescriptorSet} FileDescriptorSet - */ - FileDescriptorSet.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.FileDescriptorSet) + /** + * Creates a DecProto message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof cosmos.base.v1beta1.DecProto + * @static + * @param {Object.} object Plain object + * @returns {cosmos.base.v1beta1.DecProto} DecProto + */ + DecProto.fromObject = function fromObject(object) { + if (object instanceof $root.cosmos.base.v1beta1.DecProto) + return object; + let message = new $root.cosmos.base.v1beta1.DecProto(); + if (object.dec != null) + message.dec = String(object.dec); + return message; + }; + + /** + * Creates a plain object from a DecProto message. Also converts values to other types if specified. + * @function toObject + * @memberof cosmos.base.v1beta1.DecProto + * @static + * @param {cosmos.base.v1beta1.DecProto} message DecProto + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DecProto.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) + object.dec = ""; + if (message.dec != null && message.hasOwnProperty("dec")) + object.dec = message.dec; return object; - let message = new $root.google.protobuf.FileDescriptorSet(); - if (object.file) { - if (!Array.isArray(object.file)) - throw TypeError(".google.protobuf.FileDescriptorSet.file: array expected"); - message.file = []; - for (let i = 0; i < object.file.length; ++i) { - if (typeof object.file[i] !== "object") - throw TypeError(".google.protobuf.FileDescriptorSet.file: object expected"); - message.file[i] = $root.google.protobuf.FileDescriptorProto.fromObject(object.file[i]); - } - } - return message; - }; + }; - /** - * Creates a plain object from a FileDescriptorSet message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.FileDescriptorSet - * @static - * @param {google.protobuf.FileDescriptorSet} message FileDescriptorSet - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - FileDescriptorSet.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.arrays || options.defaults) - object.file = []; - if (message.file && message.file.length) { - object.file = []; - for (let j = 0; j < message.file.length; ++j) - object.file[j] = $root.google.protobuf.FileDescriptorProto.toObject(message.file[j], options); - } - return object; - }; + /** + * Converts this DecProto to JSON. + * @function toJSON + * @memberof cosmos.base.v1beta1.DecProto + * @instance + * @returns {Object.} JSON object + */ + DecProto.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Converts this FileDescriptorSet to JSON. - * @function toJSON - * @memberof google.protobuf.FileDescriptorSet - * @instance - * @returns {Object.} JSON object - */ - FileDescriptorSet.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + return DecProto; + })(); - return FileDescriptorSet; + return v1beta1; })(); - protobuf.FileDescriptorProto = (function() { + base.query = (function() { /** - * Properties of a FileDescriptorProto. - * @memberof google.protobuf - * @interface IFileDescriptorProto - * @property {string|null} [name] FileDescriptorProto name - * @property {string|null} ["package"] FileDescriptorProto package - * @property {Array.|null} [dependency] FileDescriptorProto dependency - * @property {Array.|null} [public_dependency] FileDescriptorProto public_dependency - * @property {Array.|null} [weak_dependency] FileDescriptorProto weak_dependency - * @property {Array.|null} [message_type] FileDescriptorProto message_type - * @property {Array.|null} [enum_type] FileDescriptorProto enum_type - * @property {Array.|null} [service] FileDescriptorProto service - * @property {Array.|null} [extension] FileDescriptorProto extension - * @property {google.protobuf.IFileOptions|null} [options] FileDescriptorProto options - * @property {google.protobuf.ISourceCodeInfo|null} [source_code_info] FileDescriptorProto source_code_info - * @property {string|null} [syntax] FileDescriptorProto syntax - */ - - /** - * Constructs a new FileDescriptorProto. - * @memberof google.protobuf - * @classdesc Represents a FileDescriptorProto. - * @implements IFileDescriptorProto - * @constructor - * @param {google.protobuf.IFileDescriptorProto=} [properties] Properties to set + * Namespace query. + * @memberof cosmos.base + * @namespace */ - function FileDescriptorProto(properties) { - this.dependency = []; - this.public_dependency = []; - this.weak_dependency = []; - this.message_type = []; - this.enum_type = []; - this.service = []; - this.extension = []; - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + const query = {}; - /** - * FileDescriptorProto name. - * @member {string} name - * @memberof google.protobuf.FileDescriptorProto - * @instance - */ - FileDescriptorProto.prototype.name = ""; + query.v1beta1 = (function() { - /** - * FileDescriptorProto package. - * @member {string} package - * @memberof google.protobuf.FileDescriptorProto - * @instance - */ - FileDescriptorProto.prototype["package"] = ""; + /** + * Namespace v1beta1. + * @memberof cosmos.base.query + * @namespace + */ + const v1beta1 = {}; - /** - * FileDescriptorProto dependency. - * @member {Array.} dependency - * @memberof google.protobuf.FileDescriptorProto - * @instance - */ - FileDescriptorProto.prototype.dependency = $util.emptyArray; + v1beta1.PageRequest = (function() { - /** - * FileDescriptorProto public_dependency. - * @member {Array.} public_dependency - * @memberof google.protobuf.FileDescriptorProto - * @instance - */ - FileDescriptorProto.prototype.public_dependency = $util.emptyArray; + /** + * Properties of a PageRequest. + * @memberof cosmos.base.query.v1beta1 + * @interface IPageRequest + * @property {Uint8Array|null} [key] PageRequest key + * @property {Long|null} [offset] PageRequest offset + * @property {Long|null} [limit] PageRequest limit + * @property {boolean|null} [count_total] PageRequest count_total + * @property {boolean|null} [reverse] PageRequest reverse + */ - /** - * FileDescriptorProto weak_dependency. - * @member {Array.} weak_dependency - * @memberof google.protobuf.FileDescriptorProto - * @instance - */ - FileDescriptorProto.prototype.weak_dependency = $util.emptyArray; + /** + * Constructs a new PageRequest. + * @memberof cosmos.base.query.v1beta1 + * @classdesc Represents a PageRequest. + * @implements IPageRequest + * @constructor + * @param {cosmos.base.query.v1beta1.IPageRequest=} [properties] Properties to set + */ + function PageRequest(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * FileDescriptorProto message_type. - * @member {Array.} message_type - * @memberof google.protobuf.FileDescriptorProto - * @instance - */ - FileDescriptorProto.prototype.message_type = $util.emptyArray; + /** + * PageRequest key. + * @member {Uint8Array} key + * @memberof cosmos.base.query.v1beta1.PageRequest + * @instance + */ + PageRequest.prototype.key = $util.newBuffer([]); - /** - * FileDescriptorProto enum_type. - * @member {Array.} enum_type - * @memberof google.protobuf.FileDescriptorProto - * @instance - */ - FileDescriptorProto.prototype.enum_type = $util.emptyArray; + /** + * PageRequest offset. + * @member {Long} offset + * @memberof cosmos.base.query.v1beta1.PageRequest + * @instance + */ + PageRequest.prototype.offset = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - /** - * FileDescriptorProto service. - * @member {Array.} service - * @memberof google.protobuf.FileDescriptorProto - * @instance - */ - FileDescriptorProto.prototype.service = $util.emptyArray; + /** + * PageRequest limit. + * @member {Long} limit + * @memberof cosmos.base.query.v1beta1.PageRequest + * @instance + */ + PageRequest.prototype.limit = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - /** - * FileDescriptorProto extension. - * @member {Array.} extension - * @memberof google.protobuf.FileDescriptorProto - * @instance - */ - FileDescriptorProto.prototype.extension = $util.emptyArray; + /** + * PageRequest count_total. + * @member {boolean} count_total + * @memberof cosmos.base.query.v1beta1.PageRequest + * @instance + */ + PageRequest.prototype.count_total = false; - /** - * FileDescriptorProto options. - * @member {google.protobuf.IFileOptions|null|undefined} options - * @memberof google.protobuf.FileDescriptorProto - * @instance - */ - FileDescriptorProto.prototype.options = null; + /** + * PageRequest reverse. + * @member {boolean} reverse + * @memberof cosmos.base.query.v1beta1.PageRequest + * @instance + */ + PageRequest.prototype.reverse = false; - /** - * FileDescriptorProto source_code_info. - * @member {google.protobuf.ISourceCodeInfo|null|undefined} source_code_info - * @memberof google.protobuf.FileDescriptorProto - * @instance - */ - FileDescriptorProto.prototype.source_code_info = null; + /** + * Encodes the specified PageRequest message. Does not implicitly {@link cosmos.base.query.v1beta1.PageRequest.verify|verify} messages. + * @function encode + * @memberof cosmos.base.query.v1beta1.PageRequest + * @static + * @param {cosmos.base.query.v1beta1.IPageRequest} message PageRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PageRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.key != null && Object.hasOwnProperty.call(message, "key")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.key); + if (message.offset != null && Object.hasOwnProperty.call(message, "offset")) + writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.offset); + if (message.limit != null && Object.hasOwnProperty.call(message, "limit")) + writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.limit); + if (message.count_total != null && Object.hasOwnProperty.call(message, "count_total")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.count_total); + if (message.reverse != null && Object.hasOwnProperty.call(message, "reverse")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.reverse); + return writer; + }; - /** - * FileDescriptorProto syntax. - * @member {string} syntax - * @memberof google.protobuf.FileDescriptorProto - * @instance - */ - FileDescriptorProto.prototype.syntax = ""; + /** + * Encodes the specified PageRequest message, length delimited. Does not implicitly {@link cosmos.base.query.v1beta1.PageRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof cosmos.base.query.v1beta1.PageRequest + * @static + * @param {cosmos.base.query.v1beta1.IPageRequest} message PageRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PageRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Encodes the specified FileDescriptorProto message. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages. - * @function encode - * @memberof google.protobuf.FileDescriptorProto - * @static - * @param {google.protobuf.IFileDescriptorProto} message FileDescriptorProto message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FileDescriptorProto.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message["package"] != null && Object.hasOwnProperty.call(message, "package")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message["package"]); - if (message.dependency != null && message.dependency.length) - for (let i = 0; i < message.dependency.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.dependency[i]); - if (message.message_type != null && message.message_type.length) - for (let i = 0; i < message.message_type.length; ++i) - $root.google.protobuf.DescriptorProto.encode(message.message_type[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.enum_type != null && message.enum_type.length) - for (let i = 0; i < message.enum_type.length; ++i) - $root.google.protobuf.EnumDescriptorProto.encode(message.enum_type[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.service != null && message.service.length) - for (let i = 0; i < message.service.length; ++i) - $root.google.protobuf.ServiceDescriptorProto.encode(message.service[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.extension != null && message.extension.length) - for (let i = 0; i < message.extension.length; ++i) - $root.google.protobuf.FieldDescriptorProto.encode(message.extension[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.options != null && Object.hasOwnProperty.call(message, "options")) - $root.google.protobuf.FileOptions.encode(message.options, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.source_code_info != null && Object.hasOwnProperty.call(message, "source_code_info")) - $root.google.protobuf.SourceCodeInfo.encode(message.source_code_info, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - if (message.public_dependency != null && message.public_dependency.length) - for (let i = 0; i < message.public_dependency.length; ++i) - writer.uint32(/* id 10, wireType 0 =*/80).int32(message.public_dependency[i]); - if (message.weak_dependency != null && message.weak_dependency.length) - for (let i = 0; i < message.weak_dependency.length; ++i) - writer.uint32(/* id 11, wireType 0 =*/88).int32(message.weak_dependency[i]); - if (message.syntax != null && Object.hasOwnProperty.call(message, "syntax")) - writer.uint32(/* id 12, wireType 2 =*/98).string(message.syntax); - return writer; - }; + /** + * Decodes a PageRequest message from the specified reader or buffer. + * @function decode + * @memberof cosmos.base.query.v1beta1.PageRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {cosmos.base.query.v1beta1.PageRequest} PageRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PageRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.cosmos.base.query.v1beta1.PageRequest(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.key = reader.bytes(); + break; + case 2: + message.offset = reader.uint64(); + break; + case 3: + message.limit = reader.uint64(); + break; + case 4: + message.count_total = reader.bool(); + break; + case 5: + message.reverse = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Encodes the specified FileDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.FileDescriptorProto - * @static - * @param {google.protobuf.IFileDescriptorProto} message FileDescriptorProto message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FileDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Decodes a PageRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof cosmos.base.query.v1beta1.PageRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {cosmos.base.query.v1beta1.PageRequest} PageRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PageRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Decodes a FileDescriptorProto message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.FileDescriptorProto - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.FileDescriptorProto} FileDescriptorProto - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FileDescriptorProto.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FileDescriptorProto(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message["package"] = reader.string(); - break; - case 3: - if (!(message.dependency && message.dependency.length)) - message.dependency = []; - message.dependency.push(reader.string()); - break; - case 10: - if (!(message.public_dependency && message.public_dependency.length)) - message.public_dependency = []; - if ((tag & 7) === 2) { - let end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.public_dependency.push(reader.int32()); - } else - message.public_dependency.push(reader.int32()); - break; - case 11: - if (!(message.weak_dependency && message.weak_dependency.length)) - message.weak_dependency = []; - if ((tag & 7) === 2) { - let end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.weak_dependency.push(reader.int32()); - } else - message.weak_dependency.push(reader.int32()); - break; - case 4: - if (!(message.message_type && message.message_type.length)) - message.message_type = []; - message.message_type.push($root.google.protobuf.DescriptorProto.decode(reader, reader.uint32())); - break; - case 5: - if (!(message.enum_type && message.enum_type.length)) - message.enum_type = []; - message.enum_type.push($root.google.protobuf.EnumDescriptorProto.decode(reader, reader.uint32())); - break; - case 6: - if (!(message.service && message.service.length)) - message.service = []; - message.service.push($root.google.protobuf.ServiceDescriptorProto.decode(reader, reader.uint32())); - break; - case 7: - if (!(message.extension && message.extension.length)) - message.extension = []; - message.extension.push($root.google.protobuf.FieldDescriptorProto.decode(reader, reader.uint32())); - break; - case 8: - message.options = $root.google.protobuf.FileOptions.decode(reader, reader.uint32()); - break; - case 9: - message.source_code_info = $root.google.protobuf.SourceCodeInfo.decode(reader, reader.uint32()); - break; - case 12: - message.syntax = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Verifies a PageRequest message. + * @function verify + * @memberof cosmos.base.query.v1beta1.PageRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + PageRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.key != null && message.hasOwnProperty("key")) + if (!(message.key && typeof message.key.length === "number" || $util.isString(message.key))) + return "key: buffer expected"; + if (message.offset != null && message.hasOwnProperty("offset")) + if (!$util.isInteger(message.offset) && !(message.offset && $util.isInteger(message.offset.low) && $util.isInteger(message.offset.high))) + return "offset: integer|Long expected"; + if (message.limit != null && message.hasOwnProperty("limit")) + if (!$util.isInteger(message.limit) && !(message.limit && $util.isInteger(message.limit.low) && $util.isInteger(message.limit.high))) + return "limit: integer|Long expected"; + if (message.count_total != null && message.hasOwnProperty("count_total")) + if (typeof message.count_total !== "boolean") + return "count_total: boolean expected"; + if (message.reverse != null && message.hasOwnProperty("reverse")) + if (typeof message.reverse !== "boolean") + return "reverse: boolean expected"; + return null; + }; - /** - * Decodes a FileDescriptorProto message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.FileDescriptorProto - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.FileDescriptorProto} FileDescriptorProto - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FileDescriptorProto.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Creates a PageRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof cosmos.base.query.v1beta1.PageRequest + * @static + * @param {Object.} object Plain object + * @returns {cosmos.base.query.v1beta1.PageRequest} PageRequest + */ + PageRequest.fromObject = function fromObject(object) { + if (object instanceof $root.cosmos.base.query.v1beta1.PageRequest) + return object; + let message = new $root.cosmos.base.query.v1beta1.PageRequest(); + if (object.key != null) + if (typeof object.key === "string") + $util.base64.decode(object.key, message.key = $util.newBuffer($util.base64.length(object.key)), 0); + else if (object.key.length) + message.key = object.key; + if (object.offset != null) + if ($util.Long) + (message.offset = $util.Long.fromValue(object.offset)).unsigned = true; + else if (typeof object.offset === "string") + message.offset = parseInt(object.offset, 10); + else if (typeof object.offset === "number") + message.offset = object.offset; + else if (typeof object.offset === "object") + message.offset = new $util.LongBits(object.offset.low >>> 0, object.offset.high >>> 0).toNumber(true); + if (object.limit != null) + if ($util.Long) + (message.limit = $util.Long.fromValue(object.limit)).unsigned = true; + else if (typeof object.limit === "string") + message.limit = parseInt(object.limit, 10); + else if (typeof object.limit === "number") + message.limit = object.limit; + else if (typeof object.limit === "object") + message.limit = new $util.LongBits(object.limit.low >>> 0, object.limit.high >>> 0).toNumber(true); + if (object.count_total != null) + message.count_total = Boolean(object.count_total); + if (object.reverse != null) + message.reverse = Boolean(object.reverse); + return message; + }; - /** - * Verifies a FileDescriptorProto message. - * @function verify - * @memberof google.protobuf.FileDescriptorProto - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - FileDescriptorProto.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message["package"] != null && message.hasOwnProperty("package")) - if (!$util.isString(message["package"])) - return "package: string expected"; - if (message.dependency != null && message.hasOwnProperty("dependency")) { - if (!Array.isArray(message.dependency)) - return "dependency: array expected"; - for (let i = 0; i < message.dependency.length; ++i) - if (!$util.isString(message.dependency[i])) - return "dependency: string[] expected"; - } - if (message.public_dependency != null && message.hasOwnProperty("public_dependency")) { - if (!Array.isArray(message.public_dependency)) - return "public_dependency: array expected"; - for (let i = 0; i < message.public_dependency.length; ++i) - if (!$util.isInteger(message.public_dependency[i])) - return "public_dependency: integer[] expected"; + /** + * Creates a plain object from a PageRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof cosmos.base.query.v1beta1.PageRequest + * @static + * @param {cosmos.base.query.v1beta1.PageRequest} message PageRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + PageRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + if (options.bytes === String) + object.key = ""; + else { + object.key = []; + if (options.bytes !== Array) + object.key = $util.newBuffer(object.key); + } + if ($util.Long) { + let long = new $util.Long(0, 0, true); + object.offset = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.offset = options.longs === String ? "0" : 0; + if ($util.Long) { + let long = new $util.Long(0, 0, true); + object.limit = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.limit = options.longs === String ? "0" : 0; + object.count_total = false; + object.reverse = false; + } + if (message.key != null && message.hasOwnProperty("key")) + object.key = options.bytes === String ? $util.base64.encode(message.key, 0, message.key.length) : options.bytes === Array ? Array.prototype.slice.call(message.key) : message.key; + if (message.offset != null && message.hasOwnProperty("offset")) + if (typeof message.offset === "number") + object.offset = options.longs === String ? String(message.offset) : message.offset; + else + object.offset = options.longs === String ? $util.Long.prototype.toString.call(message.offset) : options.longs === Number ? new $util.LongBits(message.offset.low >>> 0, message.offset.high >>> 0).toNumber(true) : message.offset; + if (message.limit != null && message.hasOwnProperty("limit")) + if (typeof message.limit === "number") + object.limit = options.longs === String ? String(message.limit) : message.limit; + else + object.limit = options.longs === String ? $util.Long.prototype.toString.call(message.limit) : options.longs === Number ? new $util.LongBits(message.limit.low >>> 0, message.limit.high >>> 0).toNumber(true) : message.limit; + if (message.count_total != null && message.hasOwnProperty("count_total")) + object.count_total = message.count_total; + if (message.reverse != null && message.hasOwnProperty("reverse")) + object.reverse = message.reverse; + return object; + }; + + /** + * Converts this PageRequest to JSON. + * @function toJSON + * @memberof cosmos.base.query.v1beta1.PageRequest + * @instance + * @returns {Object.} JSON object + */ + PageRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return PageRequest; + })(); + + v1beta1.PageResponse = (function() { + + /** + * Properties of a PageResponse. + * @memberof cosmos.base.query.v1beta1 + * @interface IPageResponse + * @property {Uint8Array|null} [next_key] PageResponse next_key + * @property {Long|null} [total] PageResponse total + */ + + /** + * Constructs a new PageResponse. + * @memberof cosmos.base.query.v1beta1 + * @classdesc Represents a PageResponse. + * @implements IPageResponse + * @constructor + * @param {cosmos.base.query.v1beta1.IPageResponse=} [properties] Properties to set + */ + function PageResponse(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * PageResponse next_key. + * @member {Uint8Array} next_key + * @memberof cosmos.base.query.v1beta1.PageResponse + * @instance + */ + PageResponse.prototype.next_key = $util.newBuffer([]); + + /** + * PageResponse total. + * @member {Long} total + * @memberof cosmos.base.query.v1beta1.PageResponse + * @instance + */ + PageResponse.prototype.total = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + + /** + * Encodes the specified PageResponse message. Does not implicitly {@link cosmos.base.query.v1beta1.PageResponse.verify|verify} messages. + * @function encode + * @memberof cosmos.base.query.v1beta1.PageResponse + * @static + * @param {cosmos.base.query.v1beta1.IPageResponse} message PageResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PageResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.next_key != null && Object.hasOwnProperty.call(message, "next_key")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.next_key); + if (message.total != null && Object.hasOwnProperty.call(message, "total")) + writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.total); + return writer; + }; + + /** + * Encodes the specified PageResponse message, length delimited. Does not implicitly {@link cosmos.base.query.v1beta1.PageResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof cosmos.base.query.v1beta1.PageResponse + * @static + * @param {cosmos.base.query.v1beta1.IPageResponse} message PageResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PageResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a PageResponse message from the specified reader or buffer. + * @function decode + * @memberof cosmos.base.query.v1beta1.PageResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {cosmos.base.query.v1beta1.PageResponse} PageResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PageResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.cosmos.base.query.v1beta1.PageResponse(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.next_key = reader.bytes(); + break; + case 2: + message.total = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a PageResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof cosmos.base.query.v1beta1.PageResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {cosmos.base.query.v1beta1.PageResponse} PageResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PageResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a PageResponse message. + * @function verify + * @memberof cosmos.base.query.v1beta1.PageResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + PageResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.next_key != null && message.hasOwnProperty("next_key")) + if (!(message.next_key && typeof message.next_key.length === "number" || $util.isString(message.next_key))) + return "next_key: buffer expected"; + if (message.total != null && message.hasOwnProperty("total")) + if (!$util.isInteger(message.total) && !(message.total && $util.isInteger(message.total.low) && $util.isInteger(message.total.high))) + return "total: integer|Long expected"; + return null; + }; + + /** + * Creates a PageResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof cosmos.base.query.v1beta1.PageResponse + * @static + * @param {Object.} object Plain object + * @returns {cosmos.base.query.v1beta1.PageResponse} PageResponse + */ + PageResponse.fromObject = function fromObject(object) { + if (object instanceof $root.cosmos.base.query.v1beta1.PageResponse) + return object; + let message = new $root.cosmos.base.query.v1beta1.PageResponse(); + if (object.next_key != null) + if (typeof object.next_key === "string") + $util.base64.decode(object.next_key, message.next_key = $util.newBuffer($util.base64.length(object.next_key)), 0); + else if (object.next_key.length) + message.next_key = object.next_key; + if (object.total != null) + if ($util.Long) + (message.total = $util.Long.fromValue(object.total)).unsigned = true; + else if (typeof object.total === "string") + message.total = parseInt(object.total, 10); + else if (typeof object.total === "number") + message.total = object.total; + else if (typeof object.total === "object") + message.total = new $util.LongBits(object.total.low >>> 0, object.total.high >>> 0).toNumber(true); + return message; + }; + + /** + * Creates a plain object from a PageResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof cosmos.base.query.v1beta1.PageResponse + * @static + * @param {cosmos.base.query.v1beta1.PageResponse} message PageResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + PageResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + if (options.bytes === String) + object.next_key = ""; + else { + object.next_key = []; + if (options.bytes !== Array) + object.next_key = $util.newBuffer(object.next_key); + } + if ($util.Long) { + let long = new $util.Long(0, 0, true); + object.total = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.total = options.longs === String ? "0" : 0; + } + if (message.next_key != null && message.hasOwnProperty("next_key")) + object.next_key = options.bytes === String ? $util.base64.encode(message.next_key, 0, message.next_key.length) : options.bytes === Array ? Array.prototype.slice.call(message.next_key) : message.next_key; + if (message.total != null && message.hasOwnProperty("total")) + if (typeof message.total === "number") + object.total = options.longs === String ? String(message.total) : message.total; + else + object.total = options.longs === String ? $util.Long.prototype.toString.call(message.total) : options.longs === Number ? new $util.LongBits(message.total.low >>> 0, message.total.high >>> 0).toNumber(true) : message.total; + return object; + }; + + /** + * Converts this PageResponse to JSON. + * @function toJSON + * @memberof cosmos.base.query.v1beta1.PageResponse + * @instance + * @returns {Object.} JSON object + */ + PageResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return PageResponse; + })(); + + return v1beta1; + })(); + + return query; + })(); + + return base; + })(); + + cosmos.upgrade = (function() { + + /** + * Namespace upgrade. + * @memberof cosmos + * @namespace + */ + const upgrade = {}; + + upgrade.v1beta1 = (function() { + + /** + * Namespace v1beta1. + * @memberof cosmos.upgrade + * @namespace + */ + const v1beta1 = {}; + + v1beta1.Plan = (function() { + + /** + * Properties of a Plan. + * @memberof cosmos.upgrade.v1beta1 + * @interface IPlan + * @property {string|null} [name] Plan name + * @property {google.protobuf.ITimestamp|null} [time] Plan time + * @property {Long|null} [height] Plan height + * @property {string|null} [info] Plan info + * @property {google.protobuf.IAny|null} [upgraded_client_state] Plan upgraded_client_state + */ + + /** + * Constructs a new Plan. + * @memberof cosmos.upgrade.v1beta1 + * @classdesc Represents a Plan. + * @implements IPlan + * @constructor + * @param {cosmos.upgrade.v1beta1.IPlan=} [properties] Properties to set + */ + function Plan(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Plan name. + * @member {string} name + * @memberof cosmos.upgrade.v1beta1.Plan + * @instance + */ + Plan.prototype.name = ""; + + /** + * Plan time. + * @member {google.protobuf.ITimestamp|null|undefined} time + * @memberof cosmos.upgrade.v1beta1.Plan + * @instance + */ + Plan.prototype.time = null; + + /** + * Plan height. + * @member {Long} height + * @memberof cosmos.upgrade.v1beta1.Plan + * @instance + */ + Plan.prototype.height = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Plan info. + * @member {string} info + * @memberof cosmos.upgrade.v1beta1.Plan + * @instance + */ + Plan.prototype.info = ""; + + /** + * Plan upgraded_client_state. + * @member {google.protobuf.IAny|null|undefined} upgraded_client_state + * @memberof cosmos.upgrade.v1beta1.Plan + * @instance + */ + Plan.prototype.upgraded_client_state = null; + + /** + * Encodes the specified Plan message. Does not implicitly {@link cosmos.upgrade.v1beta1.Plan.verify|verify} messages. + * @function encode + * @memberof cosmos.upgrade.v1beta1.Plan + * @static + * @param {cosmos.upgrade.v1beta1.IPlan} message Plan message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Plan.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.time != null && Object.hasOwnProperty.call(message, "time")) + $root.google.protobuf.Timestamp.encode(message.time, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.height != null && Object.hasOwnProperty.call(message, "height")) + writer.uint32(/* id 3, wireType 0 =*/24).int64(message.height); + if (message.info != null && Object.hasOwnProperty.call(message, "info")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.info); + if (message.upgraded_client_state != null && Object.hasOwnProperty.call(message, "upgraded_client_state")) + $root.google.protobuf.Any.encode(message.upgraded_client_state, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified Plan message, length delimited. Does not implicitly {@link cosmos.upgrade.v1beta1.Plan.verify|verify} messages. + * @function encodeDelimited + * @memberof cosmos.upgrade.v1beta1.Plan + * @static + * @param {cosmos.upgrade.v1beta1.IPlan} message Plan message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Plan.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Plan message from the specified reader or buffer. + * @function decode + * @memberof cosmos.upgrade.v1beta1.Plan + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {cosmos.upgrade.v1beta1.Plan} Plan + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Plan.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.cosmos.upgrade.v1beta1.Plan(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.time = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 3: + message.height = reader.int64(); + break; + case 4: + message.info = reader.string(); + break; + case 5: + message.upgraded_client_state = $root.google.protobuf.Any.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Plan message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof cosmos.upgrade.v1beta1.Plan + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {cosmos.upgrade.v1beta1.Plan} Plan + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Plan.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Plan message. + * @function verify + * @memberof cosmos.upgrade.v1beta1.Plan + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Plan.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.time != null && message.hasOwnProperty("time")) { + let error = $root.google.protobuf.Timestamp.verify(message.time); + if (error) + return "time." + error; + } + if (message.height != null && message.hasOwnProperty("height")) + if (!$util.isInteger(message.height) && !(message.height && $util.isInteger(message.height.low) && $util.isInteger(message.height.high))) + return "height: integer|Long expected"; + if (message.info != null && message.hasOwnProperty("info")) + if (!$util.isString(message.info)) + return "info: string expected"; + if (message.upgraded_client_state != null && message.hasOwnProperty("upgraded_client_state")) { + let error = $root.google.protobuf.Any.verify(message.upgraded_client_state); + if (error) + return "upgraded_client_state." + error; + } + return null; + }; + + /** + * Creates a Plan message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof cosmos.upgrade.v1beta1.Plan + * @static + * @param {Object.} object Plain object + * @returns {cosmos.upgrade.v1beta1.Plan} Plan + */ + Plan.fromObject = function fromObject(object) { + if (object instanceof $root.cosmos.upgrade.v1beta1.Plan) + return object; + let message = new $root.cosmos.upgrade.v1beta1.Plan(); + if (object.name != null) + message.name = String(object.name); + if (object.time != null) { + if (typeof object.time !== "object") + throw TypeError(".cosmos.upgrade.v1beta1.Plan.time: object expected"); + message.time = $root.google.protobuf.Timestamp.fromObject(object.time); + } + if (object.height != null) + if ($util.Long) + (message.height = $util.Long.fromValue(object.height)).unsigned = false; + else if (typeof object.height === "string") + message.height = parseInt(object.height, 10); + else if (typeof object.height === "number") + message.height = object.height; + else if (typeof object.height === "object") + message.height = new $util.LongBits(object.height.low >>> 0, object.height.high >>> 0).toNumber(); + if (object.info != null) + message.info = String(object.info); + if (object.upgraded_client_state != null) { + if (typeof object.upgraded_client_state !== "object") + throw TypeError(".cosmos.upgrade.v1beta1.Plan.upgraded_client_state: object expected"); + message.upgraded_client_state = $root.google.protobuf.Any.fromObject(object.upgraded_client_state); + } + return message; + }; + + /** + * Creates a plain object from a Plan message. Also converts values to other types if specified. + * @function toObject + * @memberof cosmos.upgrade.v1beta1.Plan + * @static + * @param {cosmos.upgrade.v1beta1.Plan} message Plan + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Plan.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + object.name = ""; + object.time = null; + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.height = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.height = options.longs === String ? "0" : 0; + object.info = ""; + object.upgraded_client_state = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.time != null && message.hasOwnProperty("time")) + object.time = $root.google.protobuf.Timestamp.toObject(message.time, options); + if (message.height != null && message.hasOwnProperty("height")) + if (typeof message.height === "number") + object.height = options.longs === String ? String(message.height) : message.height; + else + object.height = options.longs === String ? $util.Long.prototype.toString.call(message.height) : options.longs === Number ? new $util.LongBits(message.height.low >>> 0, message.height.high >>> 0).toNumber() : message.height; + if (message.info != null && message.hasOwnProperty("info")) + object.info = message.info; + if (message.upgraded_client_state != null && message.hasOwnProperty("upgraded_client_state")) + object.upgraded_client_state = $root.google.protobuf.Any.toObject(message.upgraded_client_state, options); + return object; + }; + + /** + * Converts this Plan to JSON. + * @function toJSON + * @memberof cosmos.upgrade.v1beta1.Plan + * @instance + * @returns {Object.} JSON object + */ + Plan.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return Plan; + })(); + + v1beta1.SoftwareUpgradeProposal = (function() { + + /** + * Properties of a SoftwareUpgradeProposal. + * @memberof cosmos.upgrade.v1beta1 + * @interface ISoftwareUpgradeProposal + * @property {string|null} [title] SoftwareUpgradeProposal title + * @property {string|null} [description] SoftwareUpgradeProposal description + * @property {cosmos.upgrade.v1beta1.IPlan|null} [plan] SoftwareUpgradeProposal plan + */ + + /** + * Constructs a new SoftwareUpgradeProposal. + * @memberof cosmos.upgrade.v1beta1 + * @classdesc Represents a SoftwareUpgradeProposal. + * @implements ISoftwareUpgradeProposal + * @constructor + * @param {cosmos.upgrade.v1beta1.ISoftwareUpgradeProposal=} [properties] Properties to set + */ + function SoftwareUpgradeProposal(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * SoftwareUpgradeProposal title. + * @member {string} title + * @memberof cosmos.upgrade.v1beta1.SoftwareUpgradeProposal + * @instance + */ + SoftwareUpgradeProposal.prototype.title = ""; + + /** + * SoftwareUpgradeProposal description. + * @member {string} description + * @memberof cosmos.upgrade.v1beta1.SoftwareUpgradeProposal + * @instance + */ + SoftwareUpgradeProposal.prototype.description = ""; + + /** + * SoftwareUpgradeProposal plan. + * @member {cosmos.upgrade.v1beta1.IPlan|null|undefined} plan + * @memberof cosmos.upgrade.v1beta1.SoftwareUpgradeProposal + * @instance + */ + SoftwareUpgradeProposal.prototype.plan = null; + + /** + * Encodes the specified SoftwareUpgradeProposal message. Does not implicitly {@link cosmos.upgrade.v1beta1.SoftwareUpgradeProposal.verify|verify} messages. + * @function encode + * @memberof cosmos.upgrade.v1beta1.SoftwareUpgradeProposal + * @static + * @param {cosmos.upgrade.v1beta1.ISoftwareUpgradeProposal} message SoftwareUpgradeProposal message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SoftwareUpgradeProposal.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.title != null && Object.hasOwnProperty.call(message, "title")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.title); + if (message.description != null && Object.hasOwnProperty.call(message, "description")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.description); + if (message.plan != null && Object.hasOwnProperty.call(message, "plan")) + $root.cosmos.upgrade.v1beta1.Plan.encode(message.plan, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified SoftwareUpgradeProposal message, length delimited. Does not implicitly {@link cosmos.upgrade.v1beta1.SoftwareUpgradeProposal.verify|verify} messages. + * @function encodeDelimited + * @memberof cosmos.upgrade.v1beta1.SoftwareUpgradeProposal + * @static + * @param {cosmos.upgrade.v1beta1.ISoftwareUpgradeProposal} message SoftwareUpgradeProposal message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SoftwareUpgradeProposal.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SoftwareUpgradeProposal message from the specified reader or buffer. + * @function decode + * @memberof cosmos.upgrade.v1beta1.SoftwareUpgradeProposal + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {cosmos.upgrade.v1beta1.SoftwareUpgradeProposal} SoftwareUpgradeProposal + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SoftwareUpgradeProposal.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.cosmos.upgrade.v1beta1.SoftwareUpgradeProposal(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.title = reader.string(); + break; + case 2: + message.description = reader.string(); + break; + case 3: + message.plan = $root.cosmos.upgrade.v1beta1.Plan.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SoftwareUpgradeProposal message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof cosmos.upgrade.v1beta1.SoftwareUpgradeProposal + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {cosmos.upgrade.v1beta1.SoftwareUpgradeProposal} SoftwareUpgradeProposal + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SoftwareUpgradeProposal.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SoftwareUpgradeProposal message. + * @function verify + * @memberof cosmos.upgrade.v1beta1.SoftwareUpgradeProposal + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SoftwareUpgradeProposal.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.title != null && message.hasOwnProperty("title")) + if (!$util.isString(message.title)) + return "title: string expected"; + if (message.description != null && message.hasOwnProperty("description")) + if (!$util.isString(message.description)) + return "description: string expected"; + if (message.plan != null && message.hasOwnProperty("plan")) { + let error = $root.cosmos.upgrade.v1beta1.Plan.verify(message.plan); + if (error) + return "plan." + error; + } + return null; + }; + + /** + * Creates a SoftwareUpgradeProposal message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof cosmos.upgrade.v1beta1.SoftwareUpgradeProposal + * @static + * @param {Object.} object Plain object + * @returns {cosmos.upgrade.v1beta1.SoftwareUpgradeProposal} SoftwareUpgradeProposal + */ + SoftwareUpgradeProposal.fromObject = function fromObject(object) { + if (object instanceof $root.cosmos.upgrade.v1beta1.SoftwareUpgradeProposal) + return object; + let message = new $root.cosmos.upgrade.v1beta1.SoftwareUpgradeProposal(); + if (object.title != null) + message.title = String(object.title); + if (object.description != null) + message.description = String(object.description); + if (object.plan != null) { + if (typeof object.plan !== "object") + throw TypeError(".cosmos.upgrade.v1beta1.SoftwareUpgradeProposal.plan: object expected"); + message.plan = $root.cosmos.upgrade.v1beta1.Plan.fromObject(object.plan); + } + return message; + }; + + /** + * Creates a plain object from a SoftwareUpgradeProposal message. Also converts values to other types if specified. + * @function toObject + * @memberof cosmos.upgrade.v1beta1.SoftwareUpgradeProposal + * @static + * @param {cosmos.upgrade.v1beta1.SoftwareUpgradeProposal} message SoftwareUpgradeProposal + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SoftwareUpgradeProposal.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + object.title = ""; + object.description = ""; + object.plan = null; + } + if (message.title != null && message.hasOwnProperty("title")) + object.title = message.title; + if (message.description != null && message.hasOwnProperty("description")) + object.description = message.description; + if (message.plan != null && message.hasOwnProperty("plan")) + object.plan = $root.cosmos.upgrade.v1beta1.Plan.toObject(message.plan, options); + return object; + }; + + /** + * Converts this SoftwareUpgradeProposal to JSON. + * @function toJSON + * @memberof cosmos.upgrade.v1beta1.SoftwareUpgradeProposal + * @instance + * @returns {Object.} JSON object + */ + SoftwareUpgradeProposal.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return SoftwareUpgradeProposal; + })(); + + v1beta1.CancelSoftwareUpgradeProposal = (function() { + + /** + * Properties of a CancelSoftwareUpgradeProposal. + * @memberof cosmos.upgrade.v1beta1 + * @interface ICancelSoftwareUpgradeProposal + * @property {string|null} [title] CancelSoftwareUpgradeProposal title + * @property {string|null} [description] CancelSoftwareUpgradeProposal description + */ + + /** + * Constructs a new CancelSoftwareUpgradeProposal. + * @memberof cosmos.upgrade.v1beta1 + * @classdesc Represents a CancelSoftwareUpgradeProposal. + * @implements ICancelSoftwareUpgradeProposal + * @constructor + * @param {cosmos.upgrade.v1beta1.ICancelSoftwareUpgradeProposal=} [properties] Properties to set + */ + function CancelSoftwareUpgradeProposal(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * CancelSoftwareUpgradeProposal title. + * @member {string} title + * @memberof cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal + * @instance + */ + CancelSoftwareUpgradeProposal.prototype.title = ""; + + /** + * CancelSoftwareUpgradeProposal description. + * @member {string} description + * @memberof cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal + * @instance + */ + CancelSoftwareUpgradeProposal.prototype.description = ""; + + /** + * Encodes the specified CancelSoftwareUpgradeProposal message. Does not implicitly {@link cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal.verify|verify} messages. + * @function encode + * @memberof cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal + * @static + * @param {cosmos.upgrade.v1beta1.ICancelSoftwareUpgradeProposal} message CancelSoftwareUpgradeProposal message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CancelSoftwareUpgradeProposal.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.title != null && Object.hasOwnProperty.call(message, "title")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.title); + if (message.description != null && Object.hasOwnProperty.call(message, "description")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.description); + return writer; + }; + + /** + * Encodes the specified CancelSoftwareUpgradeProposal message, length delimited. Does not implicitly {@link cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal.verify|verify} messages. + * @function encodeDelimited + * @memberof cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal + * @static + * @param {cosmos.upgrade.v1beta1.ICancelSoftwareUpgradeProposal} message CancelSoftwareUpgradeProposal message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CancelSoftwareUpgradeProposal.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CancelSoftwareUpgradeProposal message from the specified reader or buffer. + * @function decode + * @memberof cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal} CancelSoftwareUpgradeProposal + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CancelSoftwareUpgradeProposal.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.title = reader.string(); + break; + case 2: + message.description = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CancelSoftwareUpgradeProposal message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal} CancelSoftwareUpgradeProposal + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CancelSoftwareUpgradeProposal.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CancelSoftwareUpgradeProposal message. + * @function verify + * @memberof cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CancelSoftwareUpgradeProposal.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.title != null && message.hasOwnProperty("title")) + if (!$util.isString(message.title)) + return "title: string expected"; + if (message.description != null && message.hasOwnProperty("description")) + if (!$util.isString(message.description)) + return "description: string expected"; + return null; + }; + + /** + * Creates a CancelSoftwareUpgradeProposal message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal + * @static + * @param {Object.} object Plain object + * @returns {cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal} CancelSoftwareUpgradeProposal + */ + CancelSoftwareUpgradeProposal.fromObject = function fromObject(object) { + if (object instanceof $root.cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal) + return object; + let message = new $root.cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal(); + if (object.title != null) + message.title = String(object.title); + if (object.description != null) + message.description = String(object.description); + return message; + }; + + /** + * Creates a plain object from a CancelSoftwareUpgradeProposal message. Also converts values to other types if specified. + * @function toObject + * @memberof cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal + * @static + * @param {cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal} message CancelSoftwareUpgradeProposal + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CancelSoftwareUpgradeProposal.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + object.title = ""; + object.description = ""; + } + if (message.title != null && message.hasOwnProperty("title")) + object.title = message.title; + if (message.description != null && message.hasOwnProperty("description")) + object.description = message.description; + return object; + }; + + /** + * Converts this CancelSoftwareUpgradeProposal to JSON. + * @function toJSON + * @memberof cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal + * @instance + * @returns {Object.} JSON object + */ + CancelSoftwareUpgradeProposal.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return CancelSoftwareUpgradeProposal; + })(); + + v1beta1.ModuleVersion = (function() { + + /** + * Properties of a ModuleVersion. + * @memberof cosmos.upgrade.v1beta1 + * @interface IModuleVersion + * @property {string|null} [name] ModuleVersion name + * @property {Long|null} [version] ModuleVersion version + */ + + /** + * Constructs a new ModuleVersion. + * @memberof cosmos.upgrade.v1beta1 + * @classdesc Represents a ModuleVersion. + * @implements IModuleVersion + * @constructor + * @param {cosmos.upgrade.v1beta1.IModuleVersion=} [properties] Properties to set + */ + function ModuleVersion(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ModuleVersion name. + * @member {string} name + * @memberof cosmos.upgrade.v1beta1.ModuleVersion + * @instance + */ + ModuleVersion.prototype.name = ""; + + /** + * ModuleVersion version. + * @member {Long} version + * @memberof cosmos.upgrade.v1beta1.ModuleVersion + * @instance + */ + ModuleVersion.prototype.version = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + + /** + * Encodes the specified ModuleVersion message. Does not implicitly {@link cosmos.upgrade.v1beta1.ModuleVersion.verify|verify} messages. + * @function encode + * @memberof cosmos.upgrade.v1beta1.ModuleVersion + * @static + * @param {cosmos.upgrade.v1beta1.IModuleVersion} message ModuleVersion message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ModuleVersion.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.version != null && Object.hasOwnProperty.call(message, "version")) + writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.version); + return writer; + }; + + /** + * Encodes the specified ModuleVersion message, length delimited. Does not implicitly {@link cosmos.upgrade.v1beta1.ModuleVersion.verify|verify} messages. + * @function encodeDelimited + * @memberof cosmos.upgrade.v1beta1.ModuleVersion + * @static + * @param {cosmos.upgrade.v1beta1.IModuleVersion} message ModuleVersion message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ModuleVersion.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ModuleVersion message from the specified reader or buffer. + * @function decode + * @memberof cosmos.upgrade.v1beta1.ModuleVersion + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {cosmos.upgrade.v1beta1.ModuleVersion} ModuleVersion + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ModuleVersion.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.cosmos.upgrade.v1beta1.ModuleVersion(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.version = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ModuleVersion message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof cosmos.upgrade.v1beta1.ModuleVersion + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {cosmos.upgrade.v1beta1.ModuleVersion} ModuleVersion + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ModuleVersion.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ModuleVersion message. + * @function verify + * @memberof cosmos.upgrade.v1beta1.ModuleVersion + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ModuleVersion.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.version != null && message.hasOwnProperty("version")) + if (!$util.isInteger(message.version) && !(message.version && $util.isInteger(message.version.low) && $util.isInteger(message.version.high))) + return "version: integer|Long expected"; + return null; + }; + + /** + * Creates a ModuleVersion message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof cosmos.upgrade.v1beta1.ModuleVersion + * @static + * @param {Object.} object Plain object + * @returns {cosmos.upgrade.v1beta1.ModuleVersion} ModuleVersion + */ + ModuleVersion.fromObject = function fromObject(object) { + if (object instanceof $root.cosmos.upgrade.v1beta1.ModuleVersion) + return object; + let message = new $root.cosmos.upgrade.v1beta1.ModuleVersion(); + if (object.name != null) + message.name = String(object.name); + if (object.version != null) + if ($util.Long) + (message.version = $util.Long.fromValue(object.version)).unsigned = true; + else if (typeof object.version === "string") + message.version = parseInt(object.version, 10); + else if (typeof object.version === "number") + message.version = object.version; + else if (typeof object.version === "object") + message.version = new $util.LongBits(object.version.low >>> 0, object.version.high >>> 0).toNumber(true); + return message; + }; + + /** + * Creates a plain object from a ModuleVersion message. Also converts values to other types if specified. + * @function toObject + * @memberof cosmos.upgrade.v1beta1.ModuleVersion + * @static + * @param {cosmos.upgrade.v1beta1.ModuleVersion} message ModuleVersion + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ModuleVersion.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + object.name = ""; + if ($util.Long) { + let long = new $util.Long(0, 0, true); + object.version = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.version = options.longs === String ? "0" : 0; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.version != null && message.hasOwnProperty("version")) + if (typeof message.version === "number") + object.version = options.longs === String ? String(message.version) : message.version; + else + object.version = options.longs === String ? $util.Long.prototype.toString.call(message.version) : options.longs === Number ? new $util.LongBits(message.version.low >>> 0, message.version.high >>> 0).toNumber(true) : message.version; + return object; + }; + + /** + * Converts this ModuleVersion to JSON. + * @function toJSON + * @memberof cosmos.upgrade.v1beta1.ModuleVersion + * @instance + * @returns {Object.} JSON object + */ + ModuleVersion.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ModuleVersion; + })(); + + return v1beta1; + })(); + + return upgrade; + })(); + + cosmos.auth = (function() { + + /** + * Namespace auth. + * @memberof cosmos + * @namespace + */ + const auth = {}; + + auth.v1beta1 = (function() { + + /** + * Namespace v1beta1. + * @memberof cosmos.auth + * @namespace + */ + const v1beta1 = {}; + + v1beta1.BaseAccount = (function() { + + /** + * Properties of a BaseAccount. + * @memberof cosmos.auth.v1beta1 + * @interface IBaseAccount + * @property {string|null} [address] BaseAccount address + * @property {google.protobuf.IAny|null} [pub_key] BaseAccount pub_key + * @property {Long|null} [account_number] BaseAccount account_number + * @property {Long|null} [sequence] BaseAccount sequence + */ + + /** + * Constructs a new BaseAccount. + * @memberof cosmos.auth.v1beta1 + * @classdesc Represents a BaseAccount. + * @implements IBaseAccount + * @constructor + * @param {cosmos.auth.v1beta1.IBaseAccount=} [properties] Properties to set + */ + function BaseAccount(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * BaseAccount address. + * @member {string} address + * @memberof cosmos.auth.v1beta1.BaseAccount + * @instance + */ + BaseAccount.prototype.address = ""; + + /** + * BaseAccount pub_key. + * @member {google.protobuf.IAny|null|undefined} pub_key + * @memberof cosmos.auth.v1beta1.BaseAccount + * @instance + */ + BaseAccount.prototype.pub_key = null; + + /** + * BaseAccount account_number. + * @member {Long} account_number + * @memberof cosmos.auth.v1beta1.BaseAccount + * @instance + */ + BaseAccount.prototype.account_number = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + + /** + * BaseAccount sequence. + * @member {Long} sequence + * @memberof cosmos.auth.v1beta1.BaseAccount + * @instance + */ + BaseAccount.prototype.sequence = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + + /** + * Encodes the specified BaseAccount message. Does not implicitly {@link cosmos.auth.v1beta1.BaseAccount.verify|verify} messages. + * @function encode + * @memberof cosmos.auth.v1beta1.BaseAccount + * @static + * @param {cosmos.auth.v1beta1.IBaseAccount} message BaseAccount message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BaseAccount.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.address != null && Object.hasOwnProperty.call(message, "address")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.address); + if (message.pub_key != null && Object.hasOwnProperty.call(message, "pub_key")) + $root.google.protobuf.Any.encode(message.pub_key, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.account_number != null && Object.hasOwnProperty.call(message, "account_number")) + writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.account_number); + if (message.sequence != null && Object.hasOwnProperty.call(message, "sequence")) + writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.sequence); + return writer; + }; + + /** + * Encodes the specified BaseAccount message, length delimited. Does not implicitly {@link cosmos.auth.v1beta1.BaseAccount.verify|verify} messages. + * @function encodeDelimited + * @memberof cosmos.auth.v1beta1.BaseAccount + * @static + * @param {cosmos.auth.v1beta1.IBaseAccount} message BaseAccount message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BaseAccount.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a BaseAccount message from the specified reader or buffer. + * @function decode + * @memberof cosmos.auth.v1beta1.BaseAccount + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {cosmos.auth.v1beta1.BaseAccount} BaseAccount + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BaseAccount.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.cosmos.auth.v1beta1.BaseAccount(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.address = reader.string(); + break; + case 2: + message.pub_key = $root.google.protobuf.Any.decode(reader, reader.uint32()); + break; + case 3: + message.account_number = reader.uint64(); + break; + case 4: + message.sequence = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a BaseAccount message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof cosmos.auth.v1beta1.BaseAccount + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {cosmos.auth.v1beta1.BaseAccount} BaseAccount + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BaseAccount.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a BaseAccount message. + * @function verify + * @memberof cosmos.auth.v1beta1.BaseAccount + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + BaseAccount.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.address != null && message.hasOwnProperty("address")) + if (!$util.isString(message.address)) + return "address: string expected"; + if (message.pub_key != null && message.hasOwnProperty("pub_key")) { + let error = $root.google.protobuf.Any.verify(message.pub_key); + if (error) + return "pub_key." + error; + } + if (message.account_number != null && message.hasOwnProperty("account_number")) + if (!$util.isInteger(message.account_number) && !(message.account_number && $util.isInteger(message.account_number.low) && $util.isInteger(message.account_number.high))) + return "account_number: integer|Long expected"; + if (message.sequence != null && message.hasOwnProperty("sequence")) + if (!$util.isInteger(message.sequence) && !(message.sequence && $util.isInteger(message.sequence.low) && $util.isInteger(message.sequence.high))) + return "sequence: integer|Long expected"; + return null; + }; + + /** + * Creates a BaseAccount message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof cosmos.auth.v1beta1.BaseAccount + * @static + * @param {Object.} object Plain object + * @returns {cosmos.auth.v1beta1.BaseAccount} BaseAccount + */ + BaseAccount.fromObject = function fromObject(object) { + if (object instanceof $root.cosmos.auth.v1beta1.BaseAccount) + return object; + let message = new $root.cosmos.auth.v1beta1.BaseAccount(); + if (object.address != null) + message.address = String(object.address); + if (object.pub_key != null) { + if (typeof object.pub_key !== "object") + throw TypeError(".cosmos.auth.v1beta1.BaseAccount.pub_key: object expected"); + message.pub_key = $root.google.protobuf.Any.fromObject(object.pub_key); + } + if (object.account_number != null) + if ($util.Long) + (message.account_number = $util.Long.fromValue(object.account_number)).unsigned = true; + else if (typeof object.account_number === "string") + message.account_number = parseInt(object.account_number, 10); + else if (typeof object.account_number === "number") + message.account_number = object.account_number; + else if (typeof object.account_number === "object") + message.account_number = new $util.LongBits(object.account_number.low >>> 0, object.account_number.high >>> 0).toNumber(true); + if (object.sequence != null) + if ($util.Long) + (message.sequence = $util.Long.fromValue(object.sequence)).unsigned = true; + else if (typeof object.sequence === "string") + message.sequence = parseInt(object.sequence, 10); + else if (typeof object.sequence === "number") + message.sequence = object.sequence; + else if (typeof object.sequence === "object") + message.sequence = new $util.LongBits(object.sequence.low >>> 0, object.sequence.high >>> 0).toNumber(true); + return message; + }; + + /** + * Creates a plain object from a BaseAccount message. Also converts values to other types if specified. + * @function toObject + * @memberof cosmos.auth.v1beta1.BaseAccount + * @static + * @param {cosmos.auth.v1beta1.BaseAccount} message BaseAccount + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + BaseAccount.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + object.address = ""; + object.pub_key = null; + if ($util.Long) { + let long = new $util.Long(0, 0, true); + object.account_number = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.account_number = options.longs === String ? "0" : 0; + if ($util.Long) { + let long = new $util.Long(0, 0, true); + object.sequence = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.sequence = options.longs === String ? "0" : 0; + } + if (message.address != null && message.hasOwnProperty("address")) + object.address = message.address; + if (message.pub_key != null && message.hasOwnProperty("pub_key")) + object.pub_key = $root.google.protobuf.Any.toObject(message.pub_key, options); + if (message.account_number != null && message.hasOwnProperty("account_number")) + if (typeof message.account_number === "number") + object.account_number = options.longs === String ? String(message.account_number) : message.account_number; + else + object.account_number = options.longs === String ? $util.Long.prototype.toString.call(message.account_number) : options.longs === Number ? new $util.LongBits(message.account_number.low >>> 0, message.account_number.high >>> 0).toNumber(true) : message.account_number; + if (message.sequence != null && message.hasOwnProperty("sequence")) + if (typeof message.sequence === "number") + object.sequence = options.longs === String ? String(message.sequence) : message.sequence; + else + object.sequence = options.longs === String ? $util.Long.prototype.toString.call(message.sequence) : options.longs === Number ? new $util.LongBits(message.sequence.low >>> 0, message.sequence.high >>> 0).toNumber(true) : message.sequence; + return object; + }; + + /** + * Converts this BaseAccount to JSON. + * @function toJSON + * @memberof cosmos.auth.v1beta1.BaseAccount + * @instance + * @returns {Object.} JSON object + */ + BaseAccount.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return BaseAccount; + })(); + + v1beta1.ModuleAccount = (function() { + + /** + * Properties of a ModuleAccount. + * @memberof cosmos.auth.v1beta1 + * @interface IModuleAccount + * @property {cosmos.auth.v1beta1.IBaseAccount|null} [base_account] ModuleAccount base_account + * @property {string|null} [name] ModuleAccount name + * @property {Array.|null} [permissions] ModuleAccount permissions + */ + + /** + * Constructs a new ModuleAccount. + * @memberof cosmos.auth.v1beta1 + * @classdesc Represents a ModuleAccount. + * @implements IModuleAccount + * @constructor + * @param {cosmos.auth.v1beta1.IModuleAccount=} [properties] Properties to set + */ + function ModuleAccount(properties) { + this.permissions = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ModuleAccount base_account. + * @member {cosmos.auth.v1beta1.IBaseAccount|null|undefined} base_account + * @memberof cosmos.auth.v1beta1.ModuleAccount + * @instance + */ + ModuleAccount.prototype.base_account = null; + + /** + * ModuleAccount name. + * @member {string} name + * @memberof cosmos.auth.v1beta1.ModuleAccount + * @instance + */ + ModuleAccount.prototype.name = ""; + + /** + * ModuleAccount permissions. + * @member {Array.} permissions + * @memberof cosmos.auth.v1beta1.ModuleAccount + * @instance + */ + ModuleAccount.prototype.permissions = $util.emptyArray; + + /** + * Encodes the specified ModuleAccount message. Does not implicitly {@link cosmos.auth.v1beta1.ModuleAccount.verify|verify} messages. + * @function encode + * @memberof cosmos.auth.v1beta1.ModuleAccount + * @static + * @param {cosmos.auth.v1beta1.IModuleAccount} message ModuleAccount message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ModuleAccount.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.base_account != null && Object.hasOwnProperty.call(message, "base_account")) + $root.cosmos.auth.v1beta1.BaseAccount.encode(message.base_account, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.name); + if (message.permissions != null && message.permissions.length) + for (let i = 0; i < message.permissions.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.permissions[i]); + return writer; + }; + + /** + * Encodes the specified ModuleAccount message, length delimited. Does not implicitly {@link cosmos.auth.v1beta1.ModuleAccount.verify|verify} messages. + * @function encodeDelimited + * @memberof cosmos.auth.v1beta1.ModuleAccount + * @static + * @param {cosmos.auth.v1beta1.IModuleAccount} message ModuleAccount message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ModuleAccount.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ModuleAccount message from the specified reader or buffer. + * @function decode + * @memberof cosmos.auth.v1beta1.ModuleAccount + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {cosmos.auth.v1beta1.ModuleAccount} ModuleAccount + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ModuleAccount.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.cosmos.auth.v1beta1.ModuleAccount(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.base_account = $root.cosmos.auth.v1beta1.BaseAccount.decode(reader, reader.uint32()); + break; + case 2: + message.name = reader.string(); + break; + case 3: + if (!(message.permissions && message.permissions.length)) + message.permissions = []; + message.permissions.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ModuleAccount message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof cosmos.auth.v1beta1.ModuleAccount + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {cosmos.auth.v1beta1.ModuleAccount} ModuleAccount + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ModuleAccount.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ModuleAccount message. + * @function verify + * @memberof cosmos.auth.v1beta1.ModuleAccount + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ModuleAccount.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.base_account != null && message.hasOwnProperty("base_account")) { + let error = $root.cosmos.auth.v1beta1.BaseAccount.verify(message.base_account); + if (error) + return "base_account." + error; + } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.permissions != null && message.hasOwnProperty("permissions")) { + if (!Array.isArray(message.permissions)) + return "permissions: array expected"; + for (let i = 0; i < message.permissions.length; ++i) + if (!$util.isString(message.permissions[i])) + return "permissions: string[] expected"; + } + return null; + }; + + /** + * Creates a ModuleAccount message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof cosmos.auth.v1beta1.ModuleAccount + * @static + * @param {Object.} object Plain object + * @returns {cosmos.auth.v1beta1.ModuleAccount} ModuleAccount + */ + ModuleAccount.fromObject = function fromObject(object) { + if (object instanceof $root.cosmos.auth.v1beta1.ModuleAccount) + return object; + let message = new $root.cosmos.auth.v1beta1.ModuleAccount(); + if (object.base_account != null) { + if (typeof object.base_account !== "object") + throw TypeError(".cosmos.auth.v1beta1.ModuleAccount.base_account: object expected"); + message.base_account = $root.cosmos.auth.v1beta1.BaseAccount.fromObject(object.base_account); + } + if (object.name != null) + message.name = String(object.name); + if (object.permissions) { + if (!Array.isArray(object.permissions)) + throw TypeError(".cosmos.auth.v1beta1.ModuleAccount.permissions: array expected"); + message.permissions = []; + for (let i = 0; i < object.permissions.length; ++i) + message.permissions[i] = String(object.permissions[i]); + } + return message; + }; + + /** + * Creates a plain object from a ModuleAccount message. Also converts values to other types if specified. + * @function toObject + * @memberof cosmos.auth.v1beta1.ModuleAccount + * @static + * @param {cosmos.auth.v1beta1.ModuleAccount} message ModuleAccount + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ModuleAccount.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) + object.permissions = []; + if (options.defaults) { + object.base_account = null; + object.name = ""; + } + if (message.base_account != null && message.hasOwnProperty("base_account")) + object.base_account = $root.cosmos.auth.v1beta1.BaseAccount.toObject(message.base_account, options); + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.permissions && message.permissions.length) { + object.permissions = []; + for (let j = 0; j < message.permissions.length; ++j) + object.permissions[j] = message.permissions[j]; + } + return object; + }; + + /** + * Converts this ModuleAccount to JSON. + * @function toJSON + * @memberof cosmos.auth.v1beta1.ModuleAccount + * @instance + * @returns {Object.} JSON object + */ + ModuleAccount.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ModuleAccount; + })(); + + v1beta1.ModuleCredential = (function() { + + /** + * Properties of a ModuleCredential. + * @memberof cosmos.auth.v1beta1 + * @interface IModuleCredential + * @property {string|null} [module_name] ModuleCredential module_name + * @property {Array.|null} [derivation_keys] ModuleCredential derivation_keys + */ + + /** + * Constructs a new ModuleCredential. + * @memberof cosmos.auth.v1beta1 + * @classdesc Represents a ModuleCredential. + * @implements IModuleCredential + * @constructor + * @param {cosmos.auth.v1beta1.IModuleCredential=} [properties] Properties to set + */ + function ModuleCredential(properties) { + this.derivation_keys = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ModuleCredential module_name. + * @member {string} module_name + * @memberof cosmos.auth.v1beta1.ModuleCredential + * @instance + */ + ModuleCredential.prototype.module_name = ""; + + /** + * ModuleCredential derivation_keys. + * @member {Array.} derivation_keys + * @memberof cosmos.auth.v1beta1.ModuleCredential + * @instance + */ + ModuleCredential.prototype.derivation_keys = $util.emptyArray; + + /** + * Encodes the specified ModuleCredential message. Does not implicitly {@link cosmos.auth.v1beta1.ModuleCredential.verify|verify} messages. + * @function encode + * @memberof cosmos.auth.v1beta1.ModuleCredential + * @static + * @param {cosmos.auth.v1beta1.IModuleCredential} message ModuleCredential message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ModuleCredential.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.module_name != null && Object.hasOwnProperty.call(message, "module_name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.module_name); + if (message.derivation_keys != null && message.derivation_keys.length) + for (let i = 0; i < message.derivation_keys.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.derivation_keys[i]); + return writer; + }; + + /** + * Encodes the specified ModuleCredential message, length delimited. Does not implicitly {@link cosmos.auth.v1beta1.ModuleCredential.verify|verify} messages. + * @function encodeDelimited + * @memberof cosmos.auth.v1beta1.ModuleCredential + * @static + * @param {cosmos.auth.v1beta1.IModuleCredential} message ModuleCredential message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ModuleCredential.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ModuleCredential message from the specified reader or buffer. + * @function decode + * @memberof cosmos.auth.v1beta1.ModuleCredential + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {cosmos.auth.v1beta1.ModuleCredential} ModuleCredential + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ModuleCredential.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.cosmos.auth.v1beta1.ModuleCredential(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.module_name = reader.string(); + break; + case 2: + if (!(message.derivation_keys && message.derivation_keys.length)) + message.derivation_keys = []; + message.derivation_keys.push(reader.bytes()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ModuleCredential message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof cosmos.auth.v1beta1.ModuleCredential + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {cosmos.auth.v1beta1.ModuleCredential} ModuleCredential + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ModuleCredential.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ModuleCredential message. + * @function verify + * @memberof cosmos.auth.v1beta1.ModuleCredential + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ModuleCredential.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.module_name != null && message.hasOwnProperty("module_name")) + if (!$util.isString(message.module_name)) + return "module_name: string expected"; + if (message.derivation_keys != null && message.hasOwnProperty("derivation_keys")) { + if (!Array.isArray(message.derivation_keys)) + return "derivation_keys: array expected"; + for (let i = 0; i < message.derivation_keys.length; ++i) + if (!(message.derivation_keys[i] && typeof message.derivation_keys[i].length === "number" || $util.isString(message.derivation_keys[i]))) + return "derivation_keys: buffer[] expected"; + } + return null; + }; + + /** + * Creates a ModuleCredential message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof cosmos.auth.v1beta1.ModuleCredential + * @static + * @param {Object.} object Plain object + * @returns {cosmos.auth.v1beta1.ModuleCredential} ModuleCredential + */ + ModuleCredential.fromObject = function fromObject(object) { + if (object instanceof $root.cosmos.auth.v1beta1.ModuleCredential) + return object; + let message = new $root.cosmos.auth.v1beta1.ModuleCredential(); + if (object.module_name != null) + message.module_name = String(object.module_name); + if (object.derivation_keys) { + if (!Array.isArray(object.derivation_keys)) + throw TypeError(".cosmos.auth.v1beta1.ModuleCredential.derivation_keys: array expected"); + message.derivation_keys = []; + for (let i = 0; i < object.derivation_keys.length; ++i) + if (typeof object.derivation_keys[i] === "string") + $util.base64.decode(object.derivation_keys[i], message.derivation_keys[i] = $util.newBuffer($util.base64.length(object.derivation_keys[i])), 0); + else if (object.derivation_keys[i].length) + message.derivation_keys[i] = object.derivation_keys[i]; + } + return message; + }; + + /** + * Creates a plain object from a ModuleCredential message. Also converts values to other types if specified. + * @function toObject + * @memberof cosmos.auth.v1beta1.ModuleCredential + * @static + * @param {cosmos.auth.v1beta1.ModuleCredential} message ModuleCredential + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ModuleCredential.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) + object.derivation_keys = []; + if (options.defaults) + object.module_name = ""; + if (message.module_name != null && message.hasOwnProperty("module_name")) + object.module_name = message.module_name; + if (message.derivation_keys && message.derivation_keys.length) { + object.derivation_keys = []; + for (let j = 0; j < message.derivation_keys.length; ++j) + object.derivation_keys[j] = options.bytes === String ? $util.base64.encode(message.derivation_keys[j], 0, message.derivation_keys[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.derivation_keys[j]) : message.derivation_keys[j]; + } + return object; + }; + + /** + * Converts this ModuleCredential to JSON. + * @function toJSON + * @memberof cosmos.auth.v1beta1.ModuleCredential + * @instance + * @returns {Object.} JSON object + */ + ModuleCredential.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ModuleCredential; + })(); + + v1beta1.Params = (function() { + + /** + * Properties of a Params. + * @memberof cosmos.auth.v1beta1 + * @interface IParams + * @property {Long|null} [max_memo_characters] Params max_memo_characters + * @property {Long|null} [tx_sig_limit] Params tx_sig_limit + * @property {Long|null} [tx_size_cost_per_byte] Params tx_size_cost_per_byte + * @property {Long|null} [sig_verify_cost_ed25519] Params sig_verify_cost_ed25519 + * @property {Long|null} [sig_verify_cost_secp256k1] Params sig_verify_cost_secp256k1 + */ + + /** + * Constructs a new Params. + * @memberof cosmos.auth.v1beta1 + * @classdesc Represents a Params. + * @implements IParams + * @constructor + * @param {cosmos.auth.v1beta1.IParams=} [properties] Properties to set + */ + function Params(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Params max_memo_characters. + * @member {Long} max_memo_characters + * @memberof cosmos.auth.v1beta1.Params + * @instance + */ + Params.prototype.max_memo_characters = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + + /** + * Params tx_sig_limit. + * @member {Long} tx_sig_limit + * @memberof cosmos.auth.v1beta1.Params + * @instance + */ + Params.prototype.tx_sig_limit = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + + /** + * Params tx_size_cost_per_byte. + * @member {Long} tx_size_cost_per_byte + * @memberof cosmos.auth.v1beta1.Params + * @instance + */ + Params.prototype.tx_size_cost_per_byte = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + + /** + * Params sig_verify_cost_ed25519. + * @member {Long} sig_verify_cost_ed25519 + * @memberof cosmos.auth.v1beta1.Params + * @instance + */ + Params.prototype.sig_verify_cost_ed25519 = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + + /** + * Params sig_verify_cost_secp256k1. + * @member {Long} sig_verify_cost_secp256k1 + * @memberof cosmos.auth.v1beta1.Params + * @instance + */ + Params.prototype.sig_verify_cost_secp256k1 = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + + /** + * Encodes the specified Params message. Does not implicitly {@link cosmos.auth.v1beta1.Params.verify|verify} messages. + * @function encode + * @memberof cosmos.auth.v1beta1.Params + * @static + * @param {cosmos.auth.v1beta1.IParams} message Params message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Params.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.max_memo_characters != null && Object.hasOwnProperty.call(message, "max_memo_characters")) + writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.max_memo_characters); + if (message.tx_sig_limit != null && Object.hasOwnProperty.call(message, "tx_sig_limit")) + writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.tx_sig_limit); + if (message.tx_size_cost_per_byte != null && Object.hasOwnProperty.call(message, "tx_size_cost_per_byte")) + writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.tx_size_cost_per_byte); + if (message.sig_verify_cost_ed25519 != null && Object.hasOwnProperty.call(message, "sig_verify_cost_ed25519")) + writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.sig_verify_cost_ed25519); + if (message.sig_verify_cost_secp256k1 != null && Object.hasOwnProperty.call(message, "sig_verify_cost_secp256k1")) + writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.sig_verify_cost_secp256k1); + return writer; + }; + + /** + * Encodes the specified Params message, length delimited. Does not implicitly {@link cosmos.auth.v1beta1.Params.verify|verify} messages. + * @function encodeDelimited + * @memberof cosmos.auth.v1beta1.Params + * @static + * @param {cosmos.auth.v1beta1.IParams} message Params message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Params.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Params message from the specified reader or buffer. + * @function decode + * @memberof cosmos.auth.v1beta1.Params + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {cosmos.auth.v1beta1.Params} Params + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Params.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.cosmos.auth.v1beta1.Params(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.max_memo_characters = reader.uint64(); + break; + case 2: + message.tx_sig_limit = reader.uint64(); + break; + case 3: + message.tx_size_cost_per_byte = reader.uint64(); + break; + case 4: + message.sig_verify_cost_ed25519 = reader.uint64(); + break; + case 5: + message.sig_verify_cost_secp256k1 = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Params message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof cosmos.auth.v1beta1.Params + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {cosmos.auth.v1beta1.Params} Params + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Params.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Params message. + * @function verify + * @memberof cosmos.auth.v1beta1.Params + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Params.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.max_memo_characters != null && message.hasOwnProperty("max_memo_characters")) + if (!$util.isInteger(message.max_memo_characters) && !(message.max_memo_characters && $util.isInteger(message.max_memo_characters.low) && $util.isInteger(message.max_memo_characters.high))) + return "max_memo_characters: integer|Long expected"; + if (message.tx_sig_limit != null && message.hasOwnProperty("tx_sig_limit")) + if (!$util.isInteger(message.tx_sig_limit) && !(message.tx_sig_limit && $util.isInteger(message.tx_sig_limit.low) && $util.isInteger(message.tx_sig_limit.high))) + return "tx_sig_limit: integer|Long expected"; + if (message.tx_size_cost_per_byte != null && message.hasOwnProperty("tx_size_cost_per_byte")) + if (!$util.isInteger(message.tx_size_cost_per_byte) && !(message.tx_size_cost_per_byte && $util.isInteger(message.tx_size_cost_per_byte.low) && $util.isInteger(message.tx_size_cost_per_byte.high))) + return "tx_size_cost_per_byte: integer|Long expected"; + if (message.sig_verify_cost_ed25519 != null && message.hasOwnProperty("sig_verify_cost_ed25519")) + if (!$util.isInteger(message.sig_verify_cost_ed25519) && !(message.sig_verify_cost_ed25519 && $util.isInteger(message.sig_verify_cost_ed25519.low) && $util.isInteger(message.sig_verify_cost_ed25519.high))) + return "sig_verify_cost_ed25519: integer|Long expected"; + if (message.sig_verify_cost_secp256k1 != null && message.hasOwnProperty("sig_verify_cost_secp256k1")) + if (!$util.isInteger(message.sig_verify_cost_secp256k1) && !(message.sig_verify_cost_secp256k1 && $util.isInteger(message.sig_verify_cost_secp256k1.low) && $util.isInteger(message.sig_verify_cost_secp256k1.high))) + return "sig_verify_cost_secp256k1: integer|Long expected"; + return null; + }; + + /** + * Creates a Params message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof cosmos.auth.v1beta1.Params + * @static + * @param {Object.} object Plain object + * @returns {cosmos.auth.v1beta1.Params} Params + */ + Params.fromObject = function fromObject(object) { + if (object instanceof $root.cosmos.auth.v1beta1.Params) + return object; + let message = new $root.cosmos.auth.v1beta1.Params(); + if (object.max_memo_characters != null) + if ($util.Long) + (message.max_memo_characters = $util.Long.fromValue(object.max_memo_characters)).unsigned = true; + else if (typeof object.max_memo_characters === "string") + message.max_memo_characters = parseInt(object.max_memo_characters, 10); + else if (typeof object.max_memo_characters === "number") + message.max_memo_characters = object.max_memo_characters; + else if (typeof object.max_memo_characters === "object") + message.max_memo_characters = new $util.LongBits(object.max_memo_characters.low >>> 0, object.max_memo_characters.high >>> 0).toNumber(true); + if (object.tx_sig_limit != null) + if ($util.Long) + (message.tx_sig_limit = $util.Long.fromValue(object.tx_sig_limit)).unsigned = true; + else if (typeof object.tx_sig_limit === "string") + message.tx_sig_limit = parseInt(object.tx_sig_limit, 10); + else if (typeof object.tx_sig_limit === "number") + message.tx_sig_limit = object.tx_sig_limit; + else if (typeof object.tx_sig_limit === "object") + message.tx_sig_limit = new $util.LongBits(object.tx_sig_limit.low >>> 0, object.tx_sig_limit.high >>> 0).toNumber(true); + if (object.tx_size_cost_per_byte != null) + if ($util.Long) + (message.tx_size_cost_per_byte = $util.Long.fromValue(object.tx_size_cost_per_byte)).unsigned = true; + else if (typeof object.tx_size_cost_per_byte === "string") + message.tx_size_cost_per_byte = parseInt(object.tx_size_cost_per_byte, 10); + else if (typeof object.tx_size_cost_per_byte === "number") + message.tx_size_cost_per_byte = object.tx_size_cost_per_byte; + else if (typeof object.tx_size_cost_per_byte === "object") + message.tx_size_cost_per_byte = new $util.LongBits(object.tx_size_cost_per_byte.low >>> 0, object.tx_size_cost_per_byte.high >>> 0).toNumber(true); + if (object.sig_verify_cost_ed25519 != null) + if ($util.Long) + (message.sig_verify_cost_ed25519 = $util.Long.fromValue(object.sig_verify_cost_ed25519)).unsigned = true; + else if (typeof object.sig_verify_cost_ed25519 === "string") + message.sig_verify_cost_ed25519 = parseInt(object.sig_verify_cost_ed25519, 10); + else if (typeof object.sig_verify_cost_ed25519 === "number") + message.sig_verify_cost_ed25519 = object.sig_verify_cost_ed25519; + else if (typeof object.sig_verify_cost_ed25519 === "object") + message.sig_verify_cost_ed25519 = new $util.LongBits(object.sig_verify_cost_ed25519.low >>> 0, object.sig_verify_cost_ed25519.high >>> 0).toNumber(true); + if (object.sig_verify_cost_secp256k1 != null) + if ($util.Long) + (message.sig_verify_cost_secp256k1 = $util.Long.fromValue(object.sig_verify_cost_secp256k1)).unsigned = true; + else if (typeof object.sig_verify_cost_secp256k1 === "string") + message.sig_verify_cost_secp256k1 = parseInt(object.sig_verify_cost_secp256k1, 10); + else if (typeof object.sig_verify_cost_secp256k1 === "number") + message.sig_verify_cost_secp256k1 = object.sig_verify_cost_secp256k1; + else if (typeof object.sig_verify_cost_secp256k1 === "object") + message.sig_verify_cost_secp256k1 = new $util.LongBits(object.sig_verify_cost_secp256k1.low >>> 0, object.sig_verify_cost_secp256k1.high >>> 0).toNumber(true); + return message; + }; + + /** + * Creates a plain object from a Params message. Also converts values to other types if specified. + * @function toObject + * @memberof cosmos.auth.v1beta1.Params + * @static + * @param {cosmos.auth.v1beta1.Params} message Params + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Params.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + if ($util.Long) { + let long = new $util.Long(0, 0, true); + object.max_memo_characters = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.max_memo_characters = options.longs === String ? "0" : 0; + if ($util.Long) { + let long = new $util.Long(0, 0, true); + object.tx_sig_limit = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.tx_sig_limit = options.longs === String ? "0" : 0; + if ($util.Long) { + let long = new $util.Long(0, 0, true); + object.tx_size_cost_per_byte = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.tx_size_cost_per_byte = options.longs === String ? "0" : 0; + if ($util.Long) { + let long = new $util.Long(0, 0, true); + object.sig_verify_cost_ed25519 = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.sig_verify_cost_ed25519 = options.longs === String ? "0" : 0; + if ($util.Long) { + let long = new $util.Long(0, 0, true); + object.sig_verify_cost_secp256k1 = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.sig_verify_cost_secp256k1 = options.longs === String ? "0" : 0; + } + if (message.max_memo_characters != null && message.hasOwnProperty("max_memo_characters")) + if (typeof message.max_memo_characters === "number") + object.max_memo_characters = options.longs === String ? String(message.max_memo_characters) : message.max_memo_characters; + else + object.max_memo_characters = options.longs === String ? $util.Long.prototype.toString.call(message.max_memo_characters) : options.longs === Number ? new $util.LongBits(message.max_memo_characters.low >>> 0, message.max_memo_characters.high >>> 0).toNumber(true) : message.max_memo_characters; + if (message.tx_sig_limit != null && message.hasOwnProperty("tx_sig_limit")) + if (typeof message.tx_sig_limit === "number") + object.tx_sig_limit = options.longs === String ? String(message.tx_sig_limit) : message.tx_sig_limit; + else + object.tx_sig_limit = options.longs === String ? $util.Long.prototype.toString.call(message.tx_sig_limit) : options.longs === Number ? new $util.LongBits(message.tx_sig_limit.low >>> 0, message.tx_sig_limit.high >>> 0).toNumber(true) : message.tx_sig_limit; + if (message.tx_size_cost_per_byte != null && message.hasOwnProperty("tx_size_cost_per_byte")) + if (typeof message.tx_size_cost_per_byte === "number") + object.tx_size_cost_per_byte = options.longs === String ? String(message.tx_size_cost_per_byte) : message.tx_size_cost_per_byte; + else + object.tx_size_cost_per_byte = options.longs === String ? $util.Long.prototype.toString.call(message.tx_size_cost_per_byte) : options.longs === Number ? new $util.LongBits(message.tx_size_cost_per_byte.low >>> 0, message.tx_size_cost_per_byte.high >>> 0).toNumber(true) : message.tx_size_cost_per_byte; + if (message.sig_verify_cost_ed25519 != null && message.hasOwnProperty("sig_verify_cost_ed25519")) + if (typeof message.sig_verify_cost_ed25519 === "number") + object.sig_verify_cost_ed25519 = options.longs === String ? String(message.sig_verify_cost_ed25519) : message.sig_verify_cost_ed25519; + else + object.sig_verify_cost_ed25519 = options.longs === String ? $util.Long.prototype.toString.call(message.sig_verify_cost_ed25519) : options.longs === Number ? new $util.LongBits(message.sig_verify_cost_ed25519.low >>> 0, message.sig_verify_cost_ed25519.high >>> 0).toNumber(true) : message.sig_verify_cost_ed25519; + if (message.sig_verify_cost_secp256k1 != null && message.hasOwnProperty("sig_verify_cost_secp256k1")) + if (typeof message.sig_verify_cost_secp256k1 === "number") + object.sig_verify_cost_secp256k1 = options.longs === String ? String(message.sig_verify_cost_secp256k1) : message.sig_verify_cost_secp256k1; + else + object.sig_verify_cost_secp256k1 = options.longs === String ? $util.Long.prototype.toString.call(message.sig_verify_cost_secp256k1) : options.longs === Number ? new $util.LongBits(message.sig_verify_cost_secp256k1.low >>> 0, message.sig_verify_cost_secp256k1.high >>> 0).toNumber(true) : message.sig_verify_cost_secp256k1; + return object; + }; + + /** + * Converts this Params to JSON. + * @function toJSON + * @memberof cosmos.auth.v1beta1.Params + * @instance + * @returns {Object.} JSON object + */ + Params.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return Params; + })(); + + return v1beta1; + })(); + + return auth; + })(); + + cosmos.ics23 = (function() { + + /** + * Namespace ics23. + * @memberof cosmos + * @namespace + */ + const ics23 = {}; + + ics23.v1 = (function() { + + /** + * Namespace v1. + * @memberof cosmos.ics23 + * @namespace + */ + const v1 = {}; + + /** + * HashOp enum. + * @name cosmos.ics23.v1.HashOp + * @enum {number} + * @property {number} NO_HASH=0 NO_HASH value + * @property {number} SHA256=1 SHA256 value + * @property {number} SHA512=2 SHA512 value + * @property {number} KECCAK=3 KECCAK value + * @property {number} RIPEMD160=4 RIPEMD160 value + * @property {number} BITCOIN=5 BITCOIN value + * @property {number} SHA512_256=6 SHA512_256 value + */ + v1.HashOp = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "NO_HASH"] = 0; + values[valuesById[1] = "SHA256"] = 1; + values[valuesById[2] = "SHA512"] = 2; + values[valuesById[3] = "KECCAK"] = 3; + values[valuesById[4] = "RIPEMD160"] = 4; + values[valuesById[5] = "BITCOIN"] = 5; + values[valuesById[6] = "SHA512_256"] = 6; + return values; + })(); + + /** + * LengthOp defines how to process the key and value of the LeafOp + * to include length information. After encoding the length with the given + * algorithm, the length will be prepended to the key and value bytes. + * (Each one with it's own encoded length) + * @name cosmos.ics23.v1.LengthOp + * @enum {number} + * @property {number} NO_PREFIX=0 NO_PREFIX value + * @property {number} VAR_PROTO=1 VAR_PROTO value + * @property {number} VAR_RLP=2 VAR_RLP value + * @property {number} FIXED32_BIG=3 FIXED32_BIG value + * @property {number} FIXED32_LITTLE=4 FIXED32_LITTLE value + * @property {number} FIXED64_BIG=5 FIXED64_BIG value + * @property {number} FIXED64_LITTLE=6 FIXED64_LITTLE value + * @property {number} REQUIRE_32_BYTES=7 REQUIRE_32_BYTES value + * @property {number} REQUIRE_64_BYTES=8 REQUIRE_64_BYTES value + */ + v1.LengthOp = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "NO_PREFIX"] = 0; + values[valuesById[1] = "VAR_PROTO"] = 1; + values[valuesById[2] = "VAR_RLP"] = 2; + values[valuesById[3] = "FIXED32_BIG"] = 3; + values[valuesById[4] = "FIXED32_LITTLE"] = 4; + values[valuesById[5] = "FIXED64_BIG"] = 5; + values[valuesById[6] = "FIXED64_LITTLE"] = 6; + values[valuesById[7] = "REQUIRE_32_BYTES"] = 7; + values[valuesById[8] = "REQUIRE_64_BYTES"] = 8; + return values; + })(); + + v1.ExistenceProof = (function() { + + /** + * Properties of an ExistenceProof. + * @memberof cosmos.ics23.v1 + * @interface IExistenceProof + * @property {Uint8Array|null} [key] ExistenceProof key + * @property {Uint8Array|null} [value] ExistenceProof value + * @property {cosmos.ics23.v1.ILeafOp|null} [leaf] ExistenceProof leaf + * @property {Array.|null} [path] ExistenceProof path + */ + + /** + * Constructs a new ExistenceProof. + * @memberof cosmos.ics23.v1 + * @classdesc ExistenceProof takes a key and a value and a set of steps to perform on it. + * The result of peforming all these steps will provide a "root hash", which can + * be compared to the value in a header. + * + * Since it is computationally infeasible to produce a hash collission for any of the used + * cryptographic hash functions, if someone can provide a series of operations to transform + * a given key and value into a root hash that matches some trusted root, these key and values + * must be in the referenced merkle tree. + * + * The only possible issue is maliablity in LeafOp, such as providing extra prefix data, + * which should be controlled by a spec. Eg. with lengthOp as NONE, + * prefix = FOO, key = BAR, value = CHOICE + * and + * prefix = F, key = OOBAR, value = CHOICE + * would produce the same value. + * + * With LengthOp this is tricker but not impossible. Which is why the "leafPrefixEqual" field + * in the ProofSpec is valuable to prevent this mutability. And why all trees should + * length-prefix the data before hashing it. + * @implements IExistenceProof + * @constructor + * @param {cosmos.ics23.v1.IExistenceProof=} [properties] Properties to set + */ + function ExistenceProof(properties) { + this.path = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; } - if (message.weak_dependency != null && message.hasOwnProperty("weak_dependency")) { - if (!Array.isArray(message.weak_dependency)) - return "weak_dependency: array expected"; - for (let i = 0; i < message.weak_dependency.length; ++i) - if (!$util.isInteger(message.weak_dependency[i])) - return "weak_dependency: integer[] expected"; + + /** + * ExistenceProof key. + * @member {Uint8Array} key + * @memberof cosmos.ics23.v1.ExistenceProof + * @instance + */ + ExistenceProof.prototype.key = $util.newBuffer([]); + + /** + * ExistenceProof value. + * @member {Uint8Array} value + * @memberof cosmos.ics23.v1.ExistenceProof + * @instance + */ + ExistenceProof.prototype.value = $util.newBuffer([]); + + /** + * ExistenceProof leaf. + * @member {cosmos.ics23.v1.ILeafOp|null|undefined} leaf + * @memberof cosmos.ics23.v1.ExistenceProof + * @instance + */ + ExistenceProof.prototype.leaf = null; + + /** + * ExistenceProof path. + * @member {Array.} path + * @memberof cosmos.ics23.v1.ExistenceProof + * @instance + */ + ExistenceProof.prototype.path = $util.emptyArray; + + /** + * Encodes the specified ExistenceProof message. Does not implicitly {@link cosmos.ics23.v1.ExistenceProof.verify|verify} messages. + * @function encode + * @memberof cosmos.ics23.v1.ExistenceProof + * @static + * @param {cosmos.ics23.v1.IExistenceProof} message ExistenceProof message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExistenceProof.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.key != null && Object.hasOwnProperty.call(message, "key")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.key); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.value); + if (message.leaf != null && Object.hasOwnProperty.call(message, "leaf")) + $root.cosmos.ics23.v1.LeafOp.encode(message.leaf, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.path != null && message.path.length) + for (let i = 0; i < message.path.length; ++i) + $root.cosmos.ics23.v1.InnerOp.encode(message.path[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ExistenceProof message, length delimited. Does not implicitly {@link cosmos.ics23.v1.ExistenceProof.verify|verify} messages. + * @function encodeDelimited + * @memberof cosmos.ics23.v1.ExistenceProof + * @static + * @param {cosmos.ics23.v1.IExistenceProof} message ExistenceProof message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExistenceProof.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an ExistenceProof message from the specified reader or buffer. + * @function decode + * @memberof cosmos.ics23.v1.ExistenceProof + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {cosmos.ics23.v1.ExistenceProof} ExistenceProof + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExistenceProof.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.cosmos.ics23.v1.ExistenceProof(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.key = reader.bytes(); + break; + case 2: + message.value = reader.bytes(); + break; + case 3: + message.leaf = $root.cosmos.ics23.v1.LeafOp.decode(reader, reader.uint32()); + break; + case 4: + if (!(message.path && message.path.length)) + message.path = []; + message.path.push($root.cosmos.ics23.v1.InnerOp.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an ExistenceProof message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof cosmos.ics23.v1.ExistenceProof + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {cosmos.ics23.v1.ExistenceProof} ExistenceProof + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExistenceProof.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an ExistenceProof message. + * @function verify + * @memberof cosmos.ics23.v1.ExistenceProof + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExistenceProof.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.key != null && message.hasOwnProperty("key")) + if (!(message.key && typeof message.key.length === "number" || $util.isString(message.key))) + return "key: buffer expected"; + if (message.value != null && message.hasOwnProperty("value")) + if (!(message.value && typeof message.value.length === "number" || $util.isString(message.value))) + return "value: buffer expected"; + if (message.leaf != null && message.hasOwnProperty("leaf")) { + let error = $root.cosmos.ics23.v1.LeafOp.verify(message.leaf); + if (error) + return "leaf." + error; + } + if (message.path != null && message.hasOwnProperty("path")) { + if (!Array.isArray(message.path)) + return "path: array expected"; + for (let i = 0; i < message.path.length; ++i) { + let error = $root.cosmos.ics23.v1.InnerOp.verify(message.path[i]); + if (error) + return "path." + error; + } + } + return null; + }; + + /** + * Creates an ExistenceProof message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof cosmos.ics23.v1.ExistenceProof + * @static + * @param {Object.} object Plain object + * @returns {cosmos.ics23.v1.ExistenceProof} ExistenceProof + */ + ExistenceProof.fromObject = function fromObject(object) { + if (object instanceof $root.cosmos.ics23.v1.ExistenceProof) + return object; + let message = new $root.cosmos.ics23.v1.ExistenceProof(); + if (object.key != null) + if (typeof object.key === "string") + $util.base64.decode(object.key, message.key = $util.newBuffer($util.base64.length(object.key)), 0); + else if (object.key.length) + message.key = object.key; + if (object.value != null) + if (typeof object.value === "string") + $util.base64.decode(object.value, message.value = $util.newBuffer($util.base64.length(object.value)), 0); + else if (object.value.length) + message.value = object.value; + if (object.leaf != null) { + if (typeof object.leaf !== "object") + throw TypeError(".cosmos.ics23.v1.ExistenceProof.leaf: object expected"); + message.leaf = $root.cosmos.ics23.v1.LeafOp.fromObject(object.leaf); + } + if (object.path) { + if (!Array.isArray(object.path)) + throw TypeError(".cosmos.ics23.v1.ExistenceProof.path: array expected"); + message.path = []; + for (let i = 0; i < object.path.length; ++i) { + if (typeof object.path[i] !== "object") + throw TypeError(".cosmos.ics23.v1.ExistenceProof.path: object expected"); + message.path[i] = $root.cosmos.ics23.v1.InnerOp.fromObject(object.path[i]); + } + } + return message; + }; + + /** + * Creates a plain object from an ExistenceProof message. Also converts values to other types if specified. + * @function toObject + * @memberof cosmos.ics23.v1.ExistenceProof + * @static + * @param {cosmos.ics23.v1.ExistenceProof} message ExistenceProof + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ExistenceProof.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) + object.path = []; + if (options.defaults) { + if (options.bytes === String) + object.key = ""; + else { + object.key = []; + if (options.bytes !== Array) + object.key = $util.newBuffer(object.key); + } + if (options.bytes === String) + object.value = ""; + else { + object.value = []; + if (options.bytes !== Array) + object.value = $util.newBuffer(object.value); + } + object.leaf = null; + } + if (message.key != null && message.hasOwnProperty("key")) + object.key = options.bytes === String ? $util.base64.encode(message.key, 0, message.key.length) : options.bytes === Array ? Array.prototype.slice.call(message.key) : message.key; + if (message.value != null && message.hasOwnProperty("value")) + object.value = options.bytes === String ? $util.base64.encode(message.value, 0, message.value.length) : options.bytes === Array ? Array.prototype.slice.call(message.value) : message.value; + if (message.leaf != null && message.hasOwnProperty("leaf")) + object.leaf = $root.cosmos.ics23.v1.LeafOp.toObject(message.leaf, options); + if (message.path && message.path.length) { + object.path = []; + for (let j = 0; j < message.path.length; ++j) + object.path[j] = $root.cosmos.ics23.v1.InnerOp.toObject(message.path[j], options); + } + return object; + }; + + /** + * Converts this ExistenceProof to JSON. + * @function toJSON + * @memberof cosmos.ics23.v1.ExistenceProof + * @instance + * @returns {Object.} JSON object + */ + ExistenceProof.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ExistenceProof; + })(); + + v1.NonExistenceProof = (function() { + + /** + * Properties of a NonExistenceProof. + * @memberof cosmos.ics23.v1 + * @interface INonExistenceProof + * @property {Uint8Array|null} [key] NonExistenceProof key + * @property {cosmos.ics23.v1.IExistenceProof|null} [left] NonExistenceProof left + * @property {cosmos.ics23.v1.IExistenceProof|null} [right] NonExistenceProof right + */ + + /** + * Constructs a new NonExistenceProof. + * @memberof cosmos.ics23.v1 + * @classdesc Represents a NonExistenceProof. + * @implements INonExistenceProof + * @constructor + * @param {cosmos.ics23.v1.INonExistenceProof=} [properties] Properties to set + */ + function NonExistenceProof(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * NonExistenceProof key. + * @member {Uint8Array} key + * @memberof cosmos.ics23.v1.NonExistenceProof + * @instance + */ + NonExistenceProof.prototype.key = $util.newBuffer([]); + + /** + * NonExistenceProof left. + * @member {cosmos.ics23.v1.IExistenceProof|null|undefined} left + * @memberof cosmos.ics23.v1.NonExistenceProof + * @instance + */ + NonExistenceProof.prototype.left = null; + + /** + * NonExistenceProof right. + * @member {cosmos.ics23.v1.IExistenceProof|null|undefined} right + * @memberof cosmos.ics23.v1.NonExistenceProof + * @instance + */ + NonExistenceProof.prototype.right = null; + + /** + * Encodes the specified NonExistenceProof message. Does not implicitly {@link cosmos.ics23.v1.NonExistenceProof.verify|verify} messages. + * @function encode + * @memberof cosmos.ics23.v1.NonExistenceProof + * @static + * @param {cosmos.ics23.v1.INonExistenceProof} message NonExistenceProof message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NonExistenceProof.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.key != null && Object.hasOwnProperty.call(message, "key")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.key); + if (message.left != null && Object.hasOwnProperty.call(message, "left")) + $root.cosmos.ics23.v1.ExistenceProof.encode(message.left, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.right != null && Object.hasOwnProperty.call(message, "right")) + $root.cosmos.ics23.v1.ExistenceProof.encode(message.right, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified NonExistenceProof message, length delimited. Does not implicitly {@link cosmos.ics23.v1.NonExistenceProof.verify|verify} messages. + * @function encodeDelimited + * @memberof cosmos.ics23.v1.NonExistenceProof + * @static + * @param {cosmos.ics23.v1.INonExistenceProof} message NonExistenceProof message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NonExistenceProof.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a NonExistenceProof message from the specified reader or buffer. + * @function decode + * @memberof cosmos.ics23.v1.NonExistenceProof + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {cosmos.ics23.v1.NonExistenceProof} NonExistenceProof + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NonExistenceProof.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.cosmos.ics23.v1.NonExistenceProof(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.key = reader.bytes(); + break; + case 2: + message.left = $root.cosmos.ics23.v1.ExistenceProof.decode(reader, reader.uint32()); + break; + case 3: + message.right = $root.cosmos.ics23.v1.ExistenceProof.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a NonExistenceProof message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof cosmos.ics23.v1.NonExistenceProof + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {cosmos.ics23.v1.NonExistenceProof} NonExistenceProof + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NonExistenceProof.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a NonExistenceProof message. + * @function verify + * @memberof cosmos.ics23.v1.NonExistenceProof + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NonExistenceProof.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.key != null && message.hasOwnProperty("key")) + if (!(message.key && typeof message.key.length === "number" || $util.isString(message.key))) + return "key: buffer expected"; + if (message.left != null && message.hasOwnProperty("left")) { + let error = $root.cosmos.ics23.v1.ExistenceProof.verify(message.left); + if (error) + return "left." + error; + } + if (message.right != null && message.hasOwnProperty("right")) { + let error = $root.cosmos.ics23.v1.ExistenceProof.verify(message.right); + if (error) + return "right." + error; + } + return null; + }; + + /** + * Creates a NonExistenceProof message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof cosmos.ics23.v1.NonExistenceProof + * @static + * @param {Object.} object Plain object + * @returns {cosmos.ics23.v1.NonExistenceProof} NonExistenceProof + */ + NonExistenceProof.fromObject = function fromObject(object) { + if (object instanceof $root.cosmos.ics23.v1.NonExistenceProof) + return object; + let message = new $root.cosmos.ics23.v1.NonExistenceProof(); + if (object.key != null) + if (typeof object.key === "string") + $util.base64.decode(object.key, message.key = $util.newBuffer($util.base64.length(object.key)), 0); + else if (object.key.length) + message.key = object.key; + if (object.left != null) { + if (typeof object.left !== "object") + throw TypeError(".cosmos.ics23.v1.NonExistenceProof.left: object expected"); + message.left = $root.cosmos.ics23.v1.ExistenceProof.fromObject(object.left); + } + if (object.right != null) { + if (typeof object.right !== "object") + throw TypeError(".cosmos.ics23.v1.NonExistenceProof.right: object expected"); + message.right = $root.cosmos.ics23.v1.ExistenceProof.fromObject(object.right); + } + return message; + }; + + /** + * Creates a plain object from a NonExistenceProof message. Also converts values to other types if specified. + * @function toObject + * @memberof cosmos.ics23.v1.NonExistenceProof + * @static + * @param {cosmos.ics23.v1.NonExistenceProof} message NonExistenceProof + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + NonExistenceProof.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + if (options.bytes === String) + object.key = ""; + else { + object.key = []; + if (options.bytes !== Array) + object.key = $util.newBuffer(object.key); + } + object.left = null; + object.right = null; + } + if (message.key != null && message.hasOwnProperty("key")) + object.key = options.bytes === String ? $util.base64.encode(message.key, 0, message.key.length) : options.bytes === Array ? Array.prototype.slice.call(message.key) : message.key; + if (message.left != null && message.hasOwnProperty("left")) + object.left = $root.cosmos.ics23.v1.ExistenceProof.toObject(message.left, options); + if (message.right != null && message.hasOwnProperty("right")) + object.right = $root.cosmos.ics23.v1.ExistenceProof.toObject(message.right, options); + return object; + }; + + /** + * Converts this NonExistenceProof to JSON. + * @function toJSON + * @memberof cosmos.ics23.v1.NonExistenceProof + * @instance + * @returns {Object.} JSON object + */ + NonExistenceProof.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return NonExistenceProof; + })(); + + v1.CommitmentProof = (function() { + + /** + * Properties of a CommitmentProof. + * @memberof cosmos.ics23.v1 + * @interface ICommitmentProof + * @property {cosmos.ics23.v1.IExistenceProof|null} [exist] CommitmentProof exist + * @property {cosmos.ics23.v1.INonExistenceProof|null} [nonexist] CommitmentProof nonexist + * @property {cosmos.ics23.v1.IBatchProof|null} [batch] CommitmentProof batch + * @property {cosmos.ics23.v1.ICompressedBatchProof|null} [compressed] CommitmentProof compressed + */ + + /** + * Constructs a new CommitmentProof. + * @memberof cosmos.ics23.v1 + * @classdesc Represents a CommitmentProof. + * @implements ICommitmentProof + * @constructor + * @param {cosmos.ics23.v1.ICommitmentProof=} [properties] Properties to set + */ + function CommitmentProof(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * CommitmentProof exist. + * @member {cosmos.ics23.v1.IExistenceProof|null|undefined} exist + * @memberof cosmos.ics23.v1.CommitmentProof + * @instance + */ + CommitmentProof.prototype.exist = null; + + /** + * CommitmentProof nonexist. + * @member {cosmos.ics23.v1.INonExistenceProof|null|undefined} nonexist + * @memberof cosmos.ics23.v1.CommitmentProof + * @instance + */ + CommitmentProof.prototype.nonexist = null; + + /** + * CommitmentProof batch. + * @member {cosmos.ics23.v1.IBatchProof|null|undefined} batch + * @memberof cosmos.ics23.v1.CommitmentProof + * @instance + */ + CommitmentProof.prototype.batch = null; + + /** + * CommitmentProof compressed. + * @member {cosmos.ics23.v1.ICompressedBatchProof|null|undefined} compressed + * @memberof cosmos.ics23.v1.CommitmentProof + * @instance + */ + CommitmentProof.prototype.compressed = null; + + // OneOf field names bound to virtual getters and setters + let $oneOfFields; + + /** + * CommitmentProof proof. + * @member {"exist"|"nonexist"|"batch"|"compressed"|undefined} proof + * @memberof cosmos.ics23.v1.CommitmentProof + * @instance + */ + Object.defineProperty(CommitmentProof.prototype, "proof", { + get: $util.oneOfGetter($oneOfFields = ["exist", "nonexist", "batch", "compressed"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Encodes the specified CommitmentProof message. Does not implicitly {@link cosmos.ics23.v1.CommitmentProof.verify|verify} messages. + * @function encode + * @memberof cosmos.ics23.v1.CommitmentProof + * @static + * @param {cosmos.ics23.v1.ICommitmentProof} message CommitmentProof message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CommitmentProof.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.exist != null && Object.hasOwnProperty.call(message, "exist")) + $root.cosmos.ics23.v1.ExistenceProof.encode(message.exist, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nonexist != null && Object.hasOwnProperty.call(message, "nonexist")) + $root.cosmos.ics23.v1.NonExistenceProof.encode(message.nonexist, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.batch != null && Object.hasOwnProperty.call(message, "batch")) + $root.cosmos.ics23.v1.BatchProof.encode(message.batch, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.compressed != null && Object.hasOwnProperty.call(message, "compressed")) + $root.cosmos.ics23.v1.CompressedBatchProof.encode(message.compressed, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified CommitmentProof message, length delimited. Does not implicitly {@link cosmos.ics23.v1.CommitmentProof.verify|verify} messages. + * @function encodeDelimited + * @memberof cosmos.ics23.v1.CommitmentProof + * @static + * @param {cosmos.ics23.v1.ICommitmentProof} message CommitmentProof message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CommitmentProof.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CommitmentProof message from the specified reader or buffer. + * @function decode + * @memberof cosmos.ics23.v1.CommitmentProof + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {cosmos.ics23.v1.CommitmentProof} CommitmentProof + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CommitmentProof.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.cosmos.ics23.v1.CommitmentProof(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.exist = $root.cosmos.ics23.v1.ExistenceProof.decode(reader, reader.uint32()); + break; + case 2: + message.nonexist = $root.cosmos.ics23.v1.NonExistenceProof.decode(reader, reader.uint32()); + break; + case 3: + message.batch = $root.cosmos.ics23.v1.BatchProof.decode(reader, reader.uint32()); + break; + case 4: + message.compressed = $root.cosmos.ics23.v1.CompressedBatchProof.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CommitmentProof message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof cosmos.ics23.v1.CommitmentProof + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {cosmos.ics23.v1.CommitmentProof} CommitmentProof + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CommitmentProof.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CommitmentProof message. + * @function verify + * @memberof cosmos.ics23.v1.CommitmentProof + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CommitmentProof.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + let properties = {}; + if (message.exist != null && message.hasOwnProperty("exist")) { + properties.proof = 1; + { + let error = $root.cosmos.ics23.v1.ExistenceProof.verify(message.exist); + if (error) + return "exist." + error; + } + } + if (message.nonexist != null && message.hasOwnProperty("nonexist")) { + if (properties.proof === 1) + return "proof: multiple values"; + properties.proof = 1; + { + let error = $root.cosmos.ics23.v1.NonExistenceProof.verify(message.nonexist); + if (error) + return "nonexist." + error; + } + } + if (message.batch != null && message.hasOwnProperty("batch")) { + if (properties.proof === 1) + return "proof: multiple values"; + properties.proof = 1; + { + let error = $root.cosmos.ics23.v1.BatchProof.verify(message.batch); + if (error) + return "batch." + error; + } + } + if (message.compressed != null && message.hasOwnProperty("compressed")) { + if (properties.proof === 1) + return "proof: multiple values"; + properties.proof = 1; + { + let error = $root.cosmos.ics23.v1.CompressedBatchProof.verify(message.compressed); + if (error) + return "compressed." + error; + } + } + return null; + }; + + /** + * Creates a CommitmentProof message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof cosmos.ics23.v1.CommitmentProof + * @static + * @param {Object.} object Plain object + * @returns {cosmos.ics23.v1.CommitmentProof} CommitmentProof + */ + CommitmentProof.fromObject = function fromObject(object) { + if (object instanceof $root.cosmos.ics23.v1.CommitmentProof) + return object; + let message = new $root.cosmos.ics23.v1.CommitmentProof(); + if (object.exist != null) { + if (typeof object.exist !== "object") + throw TypeError(".cosmos.ics23.v1.CommitmentProof.exist: object expected"); + message.exist = $root.cosmos.ics23.v1.ExistenceProof.fromObject(object.exist); + } + if (object.nonexist != null) { + if (typeof object.nonexist !== "object") + throw TypeError(".cosmos.ics23.v1.CommitmentProof.nonexist: object expected"); + message.nonexist = $root.cosmos.ics23.v1.NonExistenceProof.fromObject(object.nonexist); + } + if (object.batch != null) { + if (typeof object.batch !== "object") + throw TypeError(".cosmos.ics23.v1.CommitmentProof.batch: object expected"); + message.batch = $root.cosmos.ics23.v1.BatchProof.fromObject(object.batch); + } + if (object.compressed != null) { + if (typeof object.compressed !== "object") + throw TypeError(".cosmos.ics23.v1.CommitmentProof.compressed: object expected"); + message.compressed = $root.cosmos.ics23.v1.CompressedBatchProof.fromObject(object.compressed); + } + return message; + }; + + /** + * Creates a plain object from a CommitmentProof message. Also converts values to other types if specified. + * @function toObject + * @memberof cosmos.ics23.v1.CommitmentProof + * @static + * @param {cosmos.ics23.v1.CommitmentProof} message CommitmentProof + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CommitmentProof.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (message.exist != null && message.hasOwnProperty("exist")) { + object.exist = $root.cosmos.ics23.v1.ExistenceProof.toObject(message.exist, options); + if (options.oneofs) + object.proof = "exist"; + } + if (message.nonexist != null && message.hasOwnProperty("nonexist")) { + object.nonexist = $root.cosmos.ics23.v1.NonExistenceProof.toObject(message.nonexist, options); + if (options.oneofs) + object.proof = "nonexist"; + } + if (message.batch != null && message.hasOwnProperty("batch")) { + object.batch = $root.cosmos.ics23.v1.BatchProof.toObject(message.batch, options); + if (options.oneofs) + object.proof = "batch"; + } + if (message.compressed != null && message.hasOwnProperty("compressed")) { + object.compressed = $root.cosmos.ics23.v1.CompressedBatchProof.toObject(message.compressed, options); + if (options.oneofs) + object.proof = "compressed"; + } + return object; + }; + + /** + * Converts this CommitmentProof to JSON. + * @function toJSON + * @memberof cosmos.ics23.v1.CommitmentProof + * @instance + * @returns {Object.} JSON object + */ + CommitmentProof.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return CommitmentProof; + })(); + + v1.LeafOp = (function() { + + /** + * Properties of a LeafOp. + * @memberof cosmos.ics23.v1 + * @interface ILeafOp + * @property {cosmos.ics23.v1.HashOp|null} [hash] LeafOp hash + * @property {cosmos.ics23.v1.HashOp|null} [prehash_key] LeafOp prehash_key + * @property {cosmos.ics23.v1.HashOp|null} [prehash_value] LeafOp prehash_value + * @property {cosmos.ics23.v1.LengthOp|null} [length] LeafOp length + * @property {Uint8Array|null} [prefix] LeafOp prefix + */ + + /** + * Constructs a new LeafOp. + * @memberof cosmos.ics23.v1 + * @classdesc LeafOp represents the raw key-value data we wish to prove, and + * must be flexible to represent the internal transformation from + * the original key-value pairs into the basis hash, for many existing + * merkle trees. + * + * key and value are passed in. So that the signature of this operation is: + * leafOp(key, value) -> output + * + * To process this, first prehash the keys and values if needed (ANY means no hash in this case): + * hkey = prehashKey(key) + * hvalue = prehashValue(value) + * + * Then combine the bytes, and hash it + * output = hash(prefix || length(hkey) || hkey || length(hvalue) || hvalue) + * @implements ILeafOp + * @constructor + * @param {cosmos.ics23.v1.ILeafOp=} [properties] Properties to set + */ + function LeafOp(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; } - if (message.message_type != null && message.hasOwnProperty("message_type")) { - if (!Array.isArray(message.message_type)) - return "message_type: array expected"; - for (let i = 0; i < message.message_type.length; ++i) { - let error = $root.google.protobuf.DescriptorProto.verify(message.message_type[i]); - if (error) - return "message_type." + error; + + /** + * LeafOp hash. + * @member {cosmos.ics23.v1.HashOp} hash + * @memberof cosmos.ics23.v1.LeafOp + * @instance + */ + LeafOp.prototype.hash = 0; + + /** + * LeafOp prehash_key. + * @member {cosmos.ics23.v1.HashOp} prehash_key + * @memberof cosmos.ics23.v1.LeafOp + * @instance + */ + LeafOp.prototype.prehash_key = 0; + + /** + * LeafOp prehash_value. + * @member {cosmos.ics23.v1.HashOp} prehash_value + * @memberof cosmos.ics23.v1.LeafOp + * @instance + */ + LeafOp.prototype.prehash_value = 0; + + /** + * LeafOp length. + * @member {cosmos.ics23.v1.LengthOp} length + * @memberof cosmos.ics23.v1.LeafOp + * @instance + */ + LeafOp.prototype.length = 0; + + /** + * LeafOp prefix. + * @member {Uint8Array} prefix + * @memberof cosmos.ics23.v1.LeafOp + * @instance + */ + LeafOp.prototype.prefix = $util.newBuffer([]); + + /** + * Encodes the specified LeafOp message. Does not implicitly {@link cosmos.ics23.v1.LeafOp.verify|verify} messages. + * @function encode + * @memberof cosmos.ics23.v1.LeafOp + * @static + * @param {cosmos.ics23.v1.ILeafOp} message LeafOp message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + LeafOp.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.hash != null && Object.hasOwnProperty.call(message, "hash")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.hash); + if (message.prehash_key != null && Object.hasOwnProperty.call(message, "prehash_key")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.prehash_key); + if (message.prehash_value != null && Object.hasOwnProperty.call(message, "prehash_value")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.prehash_value); + if (message.length != null && Object.hasOwnProperty.call(message, "length")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.length); + if (message.prefix != null && Object.hasOwnProperty.call(message, "prefix")) + writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.prefix); + return writer; + }; + + /** + * Encodes the specified LeafOp message, length delimited. Does not implicitly {@link cosmos.ics23.v1.LeafOp.verify|verify} messages. + * @function encodeDelimited + * @memberof cosmos.ics23.v1.LeafOp + * @static + * @param {cosmos.ics23.v1.ILeafOp} message LeafOp message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + LeafOp.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a LeafOp message from the specified reader or buffer. + * @function decode + * @memberof cosmos.ics23.v1.LeafOp + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {cosmos.ics23.v1.LeafOp} LeafOp + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + LeafOp.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.cosmos.ics23.v1.LeafOp(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.hash = reader.int32(); + break; + case 2: + message.prehash_key = reader.int32(); + break; + case 3: + message.prehash_value = reader.int32(); + break; + case 4: + message.length = reader.int32(); + break; + case 5: + message.prefix = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a LeafOp message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof cosmos.ics23.v1.LeafOp + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {cosmos.ics23.v1.LeafOp} LeafOp + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + LeafOp.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a LeafOp message. + * @function verify + * @memberof cosmos.ics23.v1.LeafOp + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + LeafOp.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.hash != null && message.hasOwnProperty("hash")) + switch (message.hash) { + default: + return "hash: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + break; + } + if (message.prehash_key != null && message.hasOwnProperty("prehash_key")) + switch (message.prehash_key) { + default: + return "prehash_key: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + break; + } + if (message.prehash_value != null && message.hasOwnProperty("prehash_value")) + switch (message.prehash_value) { + default: + return "prehash_value: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + break; + } + if (message.length != null && message.hasOwnProperty("length")) + switch (message.length) { + default: + return "length: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + break; + } + if (message.prefix != null && message.hasOwnProperty("prefix")) + if (!(message.prefix && typeof message.prefix.length === "number" || $util.isString(message.prefix))) + return "prefix: buffer expected"; + return null; + }; + + /** + * Creates a LeafOp message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof cosmos.ics23.v1.LeafOp + * @static + * @param {Object.} object Plain object + * @returns {cosmos.ics23.v1.LeafOp} LeafOp + */ + LeafOp.fromObject = function fromObject(object) { + if (object instanceof $root.cosmos.ics23.v1.LeafOp) + return object; + let message = new $root.cosmos.ics23.v1.LeafOp(); + switch (object.hash) { + case "NO_HASH": + case 0: + message.hash = 0; + break; + case "SHA256": + case 1: + message.hash = 1; + break; + case "SHA512": + case 2: + message.hash = 2; + break; + case "KECCAK": + case 3: + message.hash = 3; + break; + case "RIPEMD160": + case 4: + message.hash = 4; + break; + case "BITCOIN": + case 5: + message.hash = 5; + break; + case "SHA512_256": + case 6: + message.hash = 6; + break; + } + switch (object.prehash_key) { + case "NO_HASH": + case 0: + message.prehash_key = 0; + break; + case "SHA256": + case 1: + message.prehash_key = 1; + break; + case "SHA512": + case 2: + message.prehash_key = 2; + break; + case "KECCAK": + case 3: + message.prehash_key = 3; + break; + case "RIPEMD160": + case 4: + message.prehash_key = 4; + break; + case "BITCOIN": + case 5: + message.prehash_key = 5; + break; + case "SHA512_256": + case 6: + message.prehash_key = 6; + break; + } + switch (object.prehash_value) { + case "NO_HASH": + case 0: + message.prehash_value = 0; + break; + case "SHA256": + case 1: + message.prehash_value = 1; + break; + case "SHA512": + case 2: + message.prehash_value = 2; + break; + case "KECCAK": + case 3: + message.prehash_value = 3; + break; + case "RIPEMD160": + case 4: + message.prehash_value = 4; + break; + case "BITCOIN": + case 5: + message.prehash_value = 5; + break; + case "SHA512_256": + case 6: + message.prehash_value = 6; + break; + } + switch (object.length) { + case "NO_PREFIX": + case 0: + message.length = 0; + break; + case "VAR_PROTO": + case 1: + message.length = 1; + break; + case "VAR_RLP": + case 2: + message.length = 2; + break; + case "FIXED32_BIG": + case 3: + message.length = 3; + break; + case "FIXED32_LITTLE": + case 4: + message.length = 4; + break; + case "FIXED64_BIG": + case 5: + message.length = 5; + break; + case "FIXED64_LITTLE": + case 6: + message.length = 6; + break; + case "REQUIRE_32_BYTES": + case 7: + message.length = 7; + break; + case "REQUIRE_64_BYTES": + case 8: + message.length = 8; + break; } + if (object.prefix != null) + if (typeof object.prefix === "string") + $util.base64.decode(object.prefix, message.prefix = $util.newBuffer($util.base64.length(object.prefix)), 0); + else if (object.prefix.length) + message.prefix = object.prefix; + return message; + }; + + /** + * Creates a plain object from a LeafOp message. Also converts values to other types if specified. + * @function toObject + * @memberof cosmos.ics23.v1.LeafOp + * @static + * @param {cosmos.ics23.v1.LeafOp} message LeafOp + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + LeafOp.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + object.hash = options.enums === String ? "NO_HASH" : 0; + object.prehash_key = options.enums === String ? "NO_HASH" : 0; + object.prehash_value = options.enums === String ? "NO_HASH" : 0; + object.length = options.enums === String ? "NO_PREFIX" : 0; + if (options.bytes === String) + object.prefix = ""; + else { + object.prefix = []; + if (options.bytes !== Array) + object.prefix = $util.newBuffer(object.prefix); + } + } + if (message.hash != null && message.hasOwnProperty("hash")) + object.hash = options.enums === String ? $root.cosmos.ics23.v1.HashOp[message.hash] : message.hash; + if (message.prehash_key != null && message.hasOwnProperty("prehash_key")) + object.prehash_key = options.enums === String ? $root.cosmos.ics23.v1.HashOp[message.prehash_key] : message.prehash_key; + if (message.prehash_value != null && message.hasOwnProperty("prehash_value")) + object.prehash_value = options.enums === String ? $root.cosmos.ics23.v1.HashOp[message.prehash_value] : message.prehash_value; + if (message.length != null && message.hasOwnProperty("length")) + object.length = options.enums === String ? $root.cosmos.ics23.v1.LengthOp[message.length] : message.length; + if (message.prefix != null && message.hasOwnProperty("prefix")) + object.prefix = options.bytes === String ? $util.base64.encode(message.prefix, 0, message.prefix.length) : options.bytes === Array ? Array.prototype.slice.call(message.prefix) : message.prefix; + return object; + }; + + /** + * Converts this LeafOp to JSON. + * @function toJSON + * @memberof cosmos.ics23.v1.LeafOp + * @instance + * @returns {Object.} JSON object + */ + LeafOp.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return LeafOp; + })(); + + v1.InnerOp = (function() { + + /** + * Properties of an InnerOp. + * @memberof cosmos.ics23.v1 + * @interface IInnerOp + * @property {cosmos.ics23.v1.HashOp|null} [hash] InnerOp hash + * @property {Uint8Array|null} [prefix] InnerOp prefix + * @property {Uint8Array|null} [suffix] InnerOp suffix + */ + + /** + * Constructs a new InnerOp. + * @memberof cosmos.ics23.v1 + * @classdesc InnerOp represents a merkle-proof step that is not a leaf. + * It represents concatenating two children and hashing them to provide the next result. + * + * The result of the previous step is passed in, so the signature of this op is: + * innerOp(child) -> output + * + * The result of applying InnerOp should be: + * output = op.hash(op.prefix || child || op.suffix) + * + * where the || operator is concatenation of binary data, + * and child is the result of hashing all the tree below this step. + * + * Any special data, like prepending child with the length, or prepending the entire operation with + * some value to differentiate from leaf nodes, should be included in prefix and suffix. + * If either of prefix or suffix is empty, we just treat it as an empty string + * @implements IInnerOp + * @constructor + * @param {cosmos.ics23.v1.IInnerOp=} [properties] Properties to set + */ + function InnerOp(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; } - if (message.enum_type != null && message.hasOwnProperty("enum_type")) { - if (!Array.isArray(message.enum_type)) - return "enum_type: array expected"; - for (let i = 0; i < message.enum_type.length; ++i) { - let error = $root.google.protobuf.EnumDescriptorProto.verify(message.enum_type[i]); - if (error) - return "enum_type." + error; + + /** + * InnerOp hash. + * @member {cosmos.ics23.v1.HashOp} hash + * @memberof cosmos.ics23.v1.InnerOp + * @instance + */ + InnerOp.prototype.hash = 0; + + /** + * InnerOp prefix. + * @member {Uint8Array} prefix + * @memberof cosmos.ics23.v1.InnerOp + * @instance + */ + InnerOp.prototype.prefix = $util.newBuffer([]); + + /** + * InnerOp suffix. + * @member {Uint8Array} suffix + * @memberof cosmos.ics23.v1.InnerOp + * @instance + */ + InnerOp.prototype.suffix = $util.newBuffer([]); + + /** + * Encodes the specified InnerOp message. Does not implicitly {@link cosmos.ics23.v1.InnerOp.verify|verify} messages. + * @function encode + * @memberof cosmos.ics23.v1.InnerOp + * @static + * @param {cosmos.ics23.v1.IInnerOp} message InnerOp message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InnerOp.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.hash != null && Object.hasOwnProperty.call(message, "hash")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.hash); + if (message.prefix != null && Object.hasOwnProperty.call(message, "prefix")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.prefix); + if (message.suffix != null && Object.hasOwnProperty.call(message, "suffix")) + writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.suffix); + return writer; + }; + + /** + * Encodes the specified InnerOp message, length delimited. Does not implicitly {@link cosmos.ics23.v1.InnerOp.verify|verify} messages. + * @function encodeDelimited + * @memberof cosmos.ics23.v1.InnerOp + * @static + * @param {cosmos.ics23.v1.IInnerOp} message InnerOp message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InnerOp.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an InnerOp message from the specified reader or buffer. + * @function decode + * @memberof cosmos.ics23.v1.InnerOp + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {cosmos.ics23.v1.InnerOp} InnerOp + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InnerOp.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.cosmos.ics23.v1.InnerOp(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.hash = reader.int32(); + break; + case 2: + message.prefix = reader.bytes(); + break; + case 3: + message.suffix = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an InnerOp message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof cosmos.ics23.v1.InnerOp + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {cosmos.ics23.v1.InnerOp} InnerOp + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InnerOp.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an InnerOp message. + * @function verify + * @memberof cosmos.ics23.v1.InnerOp + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + InnerOp.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.hash != null && message.hasOwnProperty("hash")) + switch (message.hash) { + default: + return "hash: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + break; + } + if (message.prefix != null && message.hasOwnProperty("prefix")) + if (!(message.prefix && typeof message.prefix.length === "number" || $util.isString(message.prefix))) + return "prefix: buffer expected"; + if (message.suffix != null && message.hasOwnProperty("suffix")) + if (!(message.suffix && typeof message.suffix.length === "number" || $util.isString(message.suffix))) + return "suffix: buffer expected"; + return null; + }; + + /** + * Creates an InnerOp message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof cosmos.ics23.v1.InnerOp + * @static + * @param {Object.} object Plain object + * @returns {cosmos.ics23.v1.InnerOp} InnerOp + */ + InnerOp.fromObject = function fromObject(object) { + if (object instanceof $root.cosmos.ics23.v1.InnerOp) + return object; + let message = new $root.cosmos.ics23.v1.InnerOp(); + switch (object.hash) { + case "NO_HASH": + case 0: + message.hash = 0; + break; + case "SHA256": + case 1: + message.hash = 1; + break; + case "SHA512": + case 2: + message.hash = 2; + break; + case "KECCAK": + case 3: + message.hash = 3; + break; + case "RIPEMD160": + case 4: + message.hash = 4; + break; + case "BITCOIN": + case 5: + message.hash = 5; + break; + case "SHA512_256": + case 6: + message.hash = 6; + break; + } + if (object.prefix != null) + if (typeof object.prefix === "string") + $util.base64.decode(object.prefix, message.prefix = $util.newBuffer($util.base64.length(object.prefix)), 0); + else if (object.prefix.length) + message.prefix = object.prefix; + if (object.suffix != null) + if (typeof object.suffix === "string") + $util.base64.decode(object.suffix, message.suffix = $util.newBuffer($util.base64.length(object.suffix)), 0); + else if (object.suffix.length) + message.suffix = object.suffix; + return message; + }; + + /** + * Creates a plain object from an InnerOp message. Also converts values to other types if specified. + * @function toObject + * @memberof cosmos.ics23.v1.InnerOp + * @static + * @param {cosmos.ics23.v1.InnerOp} message InnerOp + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + InnerOp.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + object.hash = options.enums === String ? "NO_HASH" : 0; + if (options.bytes === String) + object.prefix = ""; + else { + object.prefix = []; + if (options.bytes !== Array) + object.prefix = $util.newBuffer(object.prefix); + } + if (options.bytes === String) + object.suffix = ""; + else { + object.suffix = []; + if (options.bytes !== Array) + object.suffix = $util.newBuffer(object.suffix); + } } + if (message.hash != null && message.hasOwnProperty("hash")) + object.hash = options.enums === String ? $root.cosmos.ics23.v1.HashOp[message.hash] : message.hash; + if (message.prefix != null && message.hasOwnProperty("prefix")) + object.prefix = options.bytes === String ? $util.base64.encode(message.prefix, 0, message.prefix.length) : options.bytes === Array ? Array.prototype.slice.call(message.prefix) : message.prefix; + if (message.suffix != null && message.hasOwnProperty("suffix")) + object.suffix = options.bytes === String ? $util.base64.encode(message.suffix, 0, message.suffix.length) : options.bytes === Array ? Array.prototype.slice.call(message.suffix) : message.suffix; + return object; + }; + + /** + * Converts this InnerOp to JSON. + * @function toJSON + * @memberof cosmos.ics23.v1.InnerOp + * @instance + * @returns {Object.} JSON object + */ + InnerOp.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return InnerOp; + })(); + + v1.ProofSpec = (function() { + + /** + * Properties of a ProofSpec. + * @memberof cosmos.ics23.v1 + * @interface IProofSpec + * @property {cosmos.ics23.v1.ILeafOp|null} [leaf_spec] ProofSpec leaf_spec + * @property {cosmos.ics23.v1.IInnerSpec|null} [inner_spec] ProofSpec inner_spec + * @property {number|null} [max_depth] ProofSpec max_depth + * @property {number|null} [min_depth] ProofSpec min_depth + */ + + /** + * Constructs a new ProofSpec. + * @memberof cosmos.ics23.v1 + * @classdesc ProofSpec defines what the expected parameters are for a given proof type. + * This can be stored in the client and used to validate any incoming proofs. + * + * verify(ProofSpec, Proof) -> Proof | Error + * + * As demonstrated in tests, if we don't fix the algorithm used to calculate the + * LeafHash for a given tree, there are many possible key-value pairs that can + * generate a given hash (by interpretting the preimage differently). + * We need this for proper security, requires client knows a priori what + * tree format server uses. But not in code, rather a configuration object. + * @implements IProofSpec + * @constructor + * @param {cosmos.ics23.v1.IProofSpec=} [properties] Properties to set + */ + function ProofSpec(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; } - if (message.service != null && message.hasOwnProperty("service")) { - if (!Array.isArray(message.service)) - return "service: array expected"; - for (let i = 0; i < message.service.length; ++i) { - let error = $root.google.protobuf.ServiceDescriptorProto.verify(message.service[i]); + + /** + * ProofSpec leaf_spec. + * @member {cosmos.ics23.v1.ILeafOp|null|undefined} leaf_spec + * @memberof cosmos.ics23.v1.ProofSpec + * @instance + */ + ProofSpec.prototype.leaf_spec = null; + + /** + * ProofSpec inner_spec. + * @member {cosmos.ics23.v1.IInnerSpec|null|undefined} inner_spec + * @memberof cosmos.ics23.v1.ProofSpec + * @instance + */ + ProofSpec.prototype.inner_spec = null; + + /** + * ProofSpec max_depth. + * @member {number} max_depth + * @memberof cosmos.ics23.v1.ProofSpec + * @instance + */ + ProofSpec.prototype.max_depth = 0; + + /** + * ProofSpec min_depth. + * @member {number} min_depth + * @memberof cosmos.ics23.v1.ProofSpec + * @instance + */ + ProofSpec.prototype.min_depth = 0; + + /** + * Encodes the specified ProofSpec message. Does not implicitly {@link cosmos.ics23.v1.ProofSpec.verify|verify} messages. + * @function encode + * @memberof cosmos.ics23.v1.ProofSpec + * @static + * @param {cosmos.ics23.v1.IProofSpec} message ProofSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ProofSpec.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.leaf_spec != null && Object.hasOwnProperty.call(message, "leaf_spec")) + $root.cosmos.ics23.v1.LeafOp.encode(message.leaf_spec, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.inner_spec != null && Object.hasOwnProperty.call(message, "inner_spec")) + $root.cosmos.ics23.v1.InnerSpec.encode(message.inner_spec, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.max_depth != null && Object.hasOwnProperty.call(message, "max_depth")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.max_depth); + if (message.min_depth != null && Object.hasOwnProperty.call(message, "min_depth")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.min_depth); + return writer; + }; + + /** + * Encodes the specified ProofSpec message, length delimited. Does not implicitly {@link cosmos.ics23.v1.ProofSpec.verify|verify} messages. + * @function encodeDelimited + * @memberof cosmos.ics23.v1.ProofSpec + * @static + * @param {cosmos.ics23.v1.IProofSpec} message ProofSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ProofSpec.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ProofSpec message from the specified reader or buffer. + * @function decode + * @memberof cosmos.ics23.v1.ProofSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {cosmos.ics23.v1.ProofSpec} ProofSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ProofSpec.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.cosmos.ics23.v1.ProofSpec(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.leaf_spec = $root.cosmos.ics23.v1.LeafOp.decode(reader, reader.uint32()); + break; + case 2: + message.inner_spec = $root.cosmos.ics23.v1.InnerSpec.decode(reader, reader.uint32()); + break; + case 3: + message.max_depth = reader.int32(); + break; + case 4: + message.min_depth = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ProofSpec message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof cosmos.ics23.v1.ProofSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {cosmos.ics23.v1.ProofSpec} ProofSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ProofSpec.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ProofSpec message. + * @function verify + * @memberof cosmos.ics23.v1.ProofSpec + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ProofSpec.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.leaf_spec != null && message.hasOwnProperty("leaf_spec")) { + let error = $root.cosmos.ics23.v1.LeafOp.verify(message.leaf_spec); if (error) - return "service." + error; + return "leaf_spec." + error; } - } - if (message.extension != null && message.hasOwnProperty("extension")) { - if (!Array.isArray(message.extension)) - return "extension: array expected"; - for (let i = 0; i < message.extension.length; ++i) { - let error = $root.google.protobuf.FieldDescriptorProto.verify(message.extension[i]); + if (message.inner_spec != null && message.hasOwnProperty("inner_spec")) { + let error = $root.cosmos.ics23.v1.InnerSpec.verify(message.inner_spec); if (error) - return "extension." + error; - } - } - if (message.options != null && message.hasOwnProperty("options")) { - let error = $root.google.protobuf.FileOptions.verify(message.options); - if (error) - return "options." + error; - } - if (message.source_code_info != null && message.hasOwnProperty("source_code_info")) { - let error = $root.google.protobuf.SourceCodeInfo.verify(message.source_code_info); - if (error) - return "source_code_info." + error; - } - if (message.syntax != null && message.hasOwnProperty("syntax")) - if (!$util.isString(message.syntax)) - return "syntax: string expected"; - return null; - }; + return "inner_spec." + error; + } + if (message.max_depth != null && message.hasOwnProperty("max_depth")) + if (!$util.isInteger(message.max_depth)) + return "max_depth: integer expected"; + if (message.min_depth != null && message.hasOwnProperty("min_depth")) + if (!$util.isInteger(message.min_depth)) + return "min_depth: integer expected"; + return null; + }; - /** - * Creates a FileDescriptorProto message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.FileDescriptorProto - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.FileDescriptorProto} FileDescriptorProto - */ - FileDescriptorProto.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.FileDescriptorProto) + /** + * Creates a ProofSpec message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof cosmos.ics23.v1.ProofSpec + * @static + * @param {Object.} object Plain object + * @returns {cosmos.ics23.v1.ProofSpec} ProofSpec + */ + ProofSpec.fromObject = function fromObject(object) { + if (object instanceof $root.cosmos.ics23.v1.ProofSpec) + return object; + let message = new $root.cosmos.ics23.v1.ProofSpec(); + if (object.leaf_spec != null) { + if (typeof object.leaf_spec !== "object") + throw TypeError(".cosmos.ics23.v1.ProofSpec.leaf_spec: object expected"); + message.leaf_spec = $root.cosmos.ics23.v1.LeafOp.fromObject(object.leaf_spec); + } + if (object.inner_spec != null) { + if (typeof object.inner_spec !== "object") + throw TypeError(".cosmos.ics23.v1.ProofSpec.inner_spec: object expected"); + message.inner_spec = $root.cosmos.ics23.v1.InnerSpec.fromObject(object.inner_spec); + } + if (object.max_depth != null) + message.max_depth = object.max_depth | 0; + if (object.min_depth != null) + message.min_depth = object.min_depth | 0; + return message; + }; + + /** + * Creates a plain object from a ProofSpec message. Also converts values to other types if specified. + * @function toObject + * @memberof cosmos.ics23.v1.ProofSpec + * @static + * @param {cosmos.ics23.v1.ProofSpec} message ProofSpec + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ProofSpec.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + object.leaf_spec = null; + object.inner_spec = null; + object.max_depth = 0; + object.min_depth = 0; + } + if (message.leaf_spec != null && message.hasOwnProperty("leaf_spec")) + object.leaf_spec = $root.cosmos.ics23.v1.LeafOp.toObject(message.leaf_spec, options); + if (message.inner_spec != null && message.hasOwnProperty("inner_spec")) + object.inner_spec = $root.cosmos.ics23.v1.InnerSpec.toObject(message.inner_spec, options); + if (message.max_depth != null && message.hasOwnProperty("max_depth")) + object.max_depth = message.max_depth; + if (message.min_depth != null && message.hasOwnProperty("min_depth")) + object.min_depth = message.min_depth; return object; - let message = new $root.google.protobuf.FileDescriptorProto(); - if (object.name != null) - message.name = String(object.name); - if (object["package"] != null) - message["package"] = String(object["package"]); - if (object.dependency) { - if (!Array.isArray(object.dependency)) - throw TypeError(".google.protobuf.FileDescriptorProto.dependency: array expected"); - message.dependency = []; - for (let i = 0; i < object.dependency.length; ++i) - message.dependency[i] = String(object.dependency[i]); - } - if (object.public_dependency) { - if (!Array.isArray(object.public_dependency)) - throw TypeError(".google.protobuf.FileDescriptorProto.public_dependency: array expected"); - message.public_dependency = []; - for (let i = 0; i < object.public_dependency.length; ++i) - message.public_dependency[i] = object.public_dependency[i] | 0; - } - if (object.weak_dependency) { - if (!Array.isArray(object.weak_dependency)) - throw TypeError(".google.protobuf.FileDescriptorProto.weak_dependency: array expected"); - message.weak_dependency = []; - for (let i = 0; i < object.weak_dependency.length; ++i) - message.weak_dependency[i] = object.weak_dependency[i] | 0; + }; + + /** + * Converts this ProofSpec to JSON. + * @function toJSON + * @memberof cosmos.ics23.v1.ProofSpec + * @instance + * @returns {Object.} JSON object + */ + ProofSpec.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ProofSpec; + })(); + + v1.InnerSpec = (function() { + + /** + * Properties of an InnerSpec. + * @memberof cosmos.ics23.v1 + * @interface IInnerSpec + * @property {Array.|null} [child_order] InnerSpec child_order + * @property {number|null} [child_size] InnerSpec child_size + * @property {number|null} [min_prefix_length] InnerSpec min_prefix_length + * @property {number|null} [max_prefix_length] InnerSpec max_prefix_length + * @property {Uint8Array|null} [empty_child] InnerSpec empty_child + * @property {cosmos.ics23.v1.HashOp|null} [hash] InnerSpec hash + */ + + /** + * Constructs a new InnerSpec. + * @memberof cosmos.ics23.v1 + * @classdesc Represents an InnerSpec. + * @implements IInnerSpec + * @constructor + * @param {cosmos.ics23.v1.IInnerSpec=} [properties] Properties to set + */ + function InnerSpec(properties) { + this.child_order = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; } - if (object.message_type) { - if (!Array.isArray(object.message_type)) - throw TypeError(".google.protobuf.FileDescriptorProto.message_type: array expected"); - message.message_type = []; - for (let i = 0; i < object.message_type.length; ++i) { - if (typeof object.message_type[i] !== "object") - throw TypeError(".google.protobuf.FileDescriptorProto.message_type: object expected"); - message.message_type[i] = $root.google.protobuf.DescriptorProto.fromObject(object.message_type[i]); + + /** + * InnerSpec child_order. + * @member {Array.} child_order + * @memberof cosmos.ics23.v1.InnerSpec + * @instance + */ + InnerSpec.prototype.child_order = $util.emptyArray; + + /** + * InnerSpec child_size. + * @member {number} child_size + * @memberof cosmos.ics23.v1.InnerSpec + * @instance + */ + InnerSpec.prototype.child_size = 0; + + /** + * InnerSpec min_prefix_length. + * @member {number} min_prefix_length + * @memberof cosmos.ics23.v1.InnerSpec + * @instance + */ + InnerSpec.prototype.min_prefix_length = 0; + + /** + * InnerSpec max_prefix_length. + * @member {number} max_prefix_length + * @memberof cosmos.ics23.v1.InnerSpec + * @instance + */ + InnerSpec.prototype.max_prefix_length = 0; + + /** + * InnerSpec empty_child. + * @member {Uint8Array} empty_child + * @memberof cosmos.ics23.v1.InnerSpec + * @instance + */ + InnerSpec.prototype.empty_child = $util.newBuffer([]); + + /** + * InnerSpec hash. + * @member {cosmos.ics23.v1.HashOp} hash + * @memberof cosmos.ics23.v1.InnerSpec + * @instance + */ + InnerSpec.prototype.hash = 0; + + /** + * Encodes the specified InnerSpec message. Does not implicitly {@link cosmos.ics23.v1.InnerSpec.verify|verify} messages. + * @function encode + * @memberof cosmos.ics23.v1.InnerSpec + * @static + * @param {cosmos.ics23.v1.IInnerSpec} message InnerSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InnerSpec.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.child_order != null && message.child_order.length) { + writer.uint32(/* id 1, wireType 2 =*/10).fork(); + for (let i = 0; i < message.child_order.length; ++i) + writer.int32(message.child_order[i]); + writer.ldelim(); } - } - if (object.enum_type) { - if (!Array.isArray(object.enum_type)) - throw TypeError(".google.protobuf.FileDescriptorProto.enum_type: array expected"); - message.enum_type = []; - for (let i = 0; i < object.enum_type.length; ++i) { - if (typeof object.enum_type[i] !== "object") - throw TypeError(".google.protobuf.FileDescriptorProto.enum_type: object expected"); - message.enum_type[i] = $root.google.protobuf.EnumDescriptorProto.fromObject(object.enum_type[i]); + if (message.child_size != null && Object.hasOwnProperty.call(message, "child_size")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.child_size); + if (message.min_prefix_length != null && Object.hasOwnProperty.call(message, "min_prefix_length")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.min_prefix_length); + if (message.max_prefix_length != null && Object.hasOwnProperty.call(message, "max_prefix_length")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.max_prefix_length); + if (message.empty_child != null && Object.hasOwnProperty.call(message, "empty_child")) + writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.empty_child); + if (message.hash != null && Object.hasOwnProperty.call(message, "hash")) + writer.uint32(/* id 6, wireType 0 =*/48).int32(message.hash); + return writer; + }; + + /** + * Encodes the specified InnerSpec message, length delimited. Does not implicitly {@link cosmos.ics23.v1.InnerSpec.verify|verify} messages. + * @function encodeDelimited + * @memberof cosmos.ics23.v1.InnerSpec + * @static + * @param {cosmos.ics23.v1.IInnerSpec} message InnerSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InnerSpec.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an InnerSpec message from the specified reader or buffer. + * @function decode + * @memberof cosmos.ics23.v1.InnerSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {cosmos.ics23.v1.InnerSpec} InnerSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InnerSpec.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.cosmos.ics23.v1.InnerSpec(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.child_order && message.child_order.length)) + message.child_order = []; + if ((tag & 7) === 2) { + let end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.child_order.push(reader.int32()); + } else + message.child_order.push(reader.int32()); + break; + case 2: + message.child_size = reader.int32(); + break; + case 3: + message.min_prefix_length = reader.int32(); + break; + case 4: + message.max_prefix_length = reader.int32(); + break; + case 5: + message.empty_child = reader.bytes(); + break; + case 6: + message.hash = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } } - } - if (object.service) { - if (!Array.isArray(object.service)) - throw TypeError(".google.protobuf.FileDescriptorProto.service: array expected"); - message.service = []; - for (let i = 0; i < object.service.length; ++i) { - if (typeof object.service[i] !== "object") - throw TypeError(".google.protobuf.FileDescriptorProto.service: object expected"); - message.service[i] = $root.google.protobuf.ServiceDescriptorProto.fromObject(object.service[i]); + return message; + }; + + /** + * Decodes an InnerSpec message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof cosmos.ics23.v1.InnerSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {cosmos.ics23.v1.InnerSpec} InnerSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InnerSpec.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an InnerSpec message. + * @function verify + * @memberof cosmos.ics23.v1.InnerSpec + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + InnerSpec.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.child_order != null && message.hasOwnProperty("child_order")) { + if (!Array.isArray(message.child_order)) + return "child_order: array expected"; + for (let i = 0; i < message.child_order.length; ++i) + if (!$util.isInteger(message.child_order[i])) + return "child_order: integer[] expected"; + } + if (message.child_size != null && message.hasOwnProperty("child_size")) + if (!$util.isInteger(message.child_size)) + return "child_size: integer expected"; + if (message.min_prefix_length != null && message.hasOwnProperty("min_prefix_length")) + if (!$util.isInteger(message.min_prefix_length)) + return "min_prefix_length: integer expected"; + if (message.max_prefix_length != null && message.hasOwnProperty("max_prefix_length")) + if (!$util.isInteger(message.max_prefix_length)) + return "max_prefix_length: integer expected"; + if (message.empty_child != null && message.hasOwnProperty("empty_child")) + if (!(message.empty_child && typeof message.empty_child.length === "number" || $util.isString(message.empty_child))) + return "empty_child: buffer expected"; + if (message.hash != null && message.hasOwnProperty("hash")) + switch (message.hash) { + default: + return "hash: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + break; + } + return null; + }; + + /** + * Creates an InnerSpec message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof cosmos.ics23.v1.InnerSpec + * @static + * @param {Object.} object Plain object + * @returns {cosmos.ics23.v1.InnerSpec} InnerSpec + */ + InnerSpec.fromObject = function fromObject(object) { + if (object instanceof $root.cosmos.ics23.v1.InnerSpec) + return object; + let message = new $root.cosmos.ics23.v1.InnerSpec(); + if (object.child_order) { + if (!Array.isArray(object.child_order)) + throw TypeError(".cosmos.ics23.v1.InnerSpec.child_order: array expected"); + message.child_order = []; + for (let i = 0; i < object.child_order.length; ++i) + message.child_order[i] = object.child_order[i] | 0; + } + if (object.child_size != null) + message.child_size = object.child_size | 0; + if (object.min_prefix_length != null) + message.min_prefix_length = object.min_prefix_length | 0; + if (object.max_prefix_length != null) + message.max_prefix_length = object.max_prefix_length | 0; + if (object.empty_child != null) + if (typeof object.empty_child === "string") + $util.base64.decode(object.empty_child, message.empty_child = $util.newBuffer($util.base64.length(object.empty_child)), 0); + else if (object.empty_child.length) + message.empty_child = object.empty_child; + switch (object.hash) { + case "NO_HASH": + case 0: + message.hash = 0; + break; + case "SHA256": + case 1: + message.hash = 1; + break; + case "SHA512": + case 2: + message.hash = 2; + break; + case "KECCAK": + case 3: + message.hash = 3; + break; + case "RIPEMD160": + case 4: + message.hash = 4; + break; + case "BITCOIN": + case 5: + message.hash = 5; + break; + case "SHA512_256": + case 6: + message.hash = 6; + break; } + return message; + }; + + /** + * Creates a plain object from an InnerSpec message. Also converts values to other types if specified. + * @function toObject + * @memberof cosmos.ics23.v1.InnerSpec + * @static + * @param {cosmos.ics23.v1.InnerSpec} message InnerSpec + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + InnerSpec.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) + object.child_order = []; + if (options.defaults) { + object.child_size = 0; + object.min_prefix_length = 0; + object.max_prefix_length = 0; + if (options.bytes === String) + object.empty_child = ""; + else { + object.empty_child = []; + if (options.bytes !== Array) + object.empty_child = $util.newBuffer(object.empty_child); + } + object.hash = options.enums === String ? "NO_HASH" : 0; + } + if (message.child_order && message.child_order.length) { + object.child_order = []; + for (let j = 0; j < message.child_order.length; ++j) + object.child_order[j] = message.child_order[j]; + } + if (message.child_size != null && message.hasOwnProperty("child_size")) + object.child_size = message.child_size; + if (message.min_prefix_length != null && message.hasOwnProperty("min_prefix_length")) + object.min_prefix_length = message.min_prefix_length; + if (message.max_prefix_length != null && message.hasOwnProperty("max_prefix_length")) + object.max_prefix_length = message.max_prefix_length; + if (message.empty_child != null && message.hasOwnProperty("empty_child")) + object.empty_child = options.bytes === String ? $util.base64.encode(message.empty_child, 0, message.empty_child.length) : options.bytes === Array ? Array.prototype.slice.call(message.empty_child) : message.empty_child; + if (message.hash != null && message.hasOwnProperty("hash")) + object.hash = options.enums === String ? $root.cosmos.ics23.v1.HashOp[message.hash] : message.hash; + return object; + }; + + /** + * Converts this InnerSpec to JSON. + * @function toJSON + * @memberof cosmos.ics23.v1.InnerSpec + * @instance + * @returns {Object.} JSON object + */ + InnerSpec.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return InnerSpec; + })(); + + v1.BatchProof = (function() { + + /** + * Properties of a BatchProof. + * @memberof cosmos.ics23.v1 + * @interface IBatchProof + * @property {Array.|null} [entries] BatchProof entries + */ + + /** + * Constructs a new BatchProof. + * @memberof cosmos.ics23.v1 + * @classdesc Represents a BatchProof. + * @implements IBatchProof + * @constructor + * @param {cosmos.ics23.v1.IBatchProof=} [properties] Properties to set + */ + function BatchProof(properties) { + this.entries = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; } - if (object.extension) { - if (!Array.isArray(object.extension)) - throw TypeError(".google.protobuf.FileDescriptorProto.extension: array expected"); - message.extension = []; - for (let i = 0; i < object.extension.length; ++i) { - if (typeof object.extension[i] !== "object") - throw TypeError(".google.protobuf.FileDescriptorProto.extension: object expected"); - message.extension[i] = $root.google.protobuf.FieldDescriptorProto.fromObject(object.extension[i]); + + /** + * BatchProof entries. + * @member {Array.} entries + * @memberof cosmos.ics23.v1.BatchProof + * @instance + */ + BatchProof.prototype.entries = $util.emptyArray; + + /** + * Encodes the specified BatchProof message. Does not implicitly {@link cosmos.ics23.v1.BatchProof.verify|verify} messages. + * @function encode + * @memberof cosmos.ics23.v1.BatchProof + * @static + * @param {cosmos.ics23.v1.IBatchProof} message BatchProof message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BatchProof.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.entries != null && message.entries.length) + for (let i = 0; i < message.entries.length; ++i) + $root.cosmos.ics23.v1.BatchEntry.encode(message.entries[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified BatchProof message, length delimited. Does not implicitly {@link cosmos.ics23.v1.BatchProof.verify|verify} messages. + * @function encodeDelimited + * @memberof cosmos.ics23.v1.BatchProof + * @static + * @param {cosmos.ics23.v1.IBatchProof} message BatchProof message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BatchProof.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a BatchProof message from the specified reader or buffer. + * @function decode + * @memberof cosmos.ics23.v1.BatchProof + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {cosmos.ics23.v1.BatchProof} BatchProof + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BatchProof.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.cosmos.ics23.v1.BatchProof(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.entries && message.entries.length)) + message.entries = []; + message.entries.push($root.cosmos.ics23.v1.BatchEntry.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } } - } - if (object.options != null) { - if (typeof object.options !== "object") - throw TypeError(".google.protobuf.FileDescriptorProto.options: object expected"); - message.options = $root.google.protobuf.FileOptions.fromObject(object.options); - } - if (object.source_code_info != null) { - if (typeof object.source_code_info !== "object") - throw TypeError(".google.protobuf.FileDescriptorProto.source_code_info: object expected"); - message.source_code_info = $root.google.protobuf.SourceCodeInfo.fromObject(object.source_code_info); - } - if (object.syntax != null) - message.syntax = String(object.syntax); - return message; - }; + return message; + }; - /** - * Creates a plain object from a FileDescriptorProto message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.FileDescriptorProto - * @static - * @param {google.protobuf.FileDescriptorProto} message FileDescriptorProto - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - FileDescriptorProto.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.arrays || options.defaults) { - object.dependency = []; - object.message_type = []; - object.enum_type = []; - object.service = []; - object.extension = []; - object.public_dependency = []; - object.weak_dependency = []; - } - if (options.defaults) { - object.name = ""; - object["package"] = ""; - object.options = null; - object.source_code_info = null; - object.syntax = ""; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message["package"] != null && message.hasOwnProperty("package")) - object["package"] = message["package"]; - if (message.dependency && message.dependency.length) { - object.dependency = []; - for (let j = 0; j < message.dependency.length; ++j) - object.dependency[j] = message.dependency[j]; - } - if (message.message_type && message.message_type.length) { - object.message_type = []; - for (let j = 0; j < message.message_type.length; ++j) - object.message_type[j] = $root.google.protobuf.DescriptorProto.toObject(message.message_type[j], options); - } - if (message.enum_type && message.enum_type.length) { - object.enum_type = []; - for (let j = 0; j < message.enum_type.length; ++j) - object.enum_type[j] = $root.google.protobuf.EnumDescriptorProto.toObject(message.enum_type[j], options); - } - if (message.service && message.service.length) { - object.service = []; - for (let j = 0; j < message.service.length; ++j) - object.service[j] = $root.google.protobuf.ServiceDescriptorProto.toObject(message.service[j], options); - } - if (message.extension && message.extension.length) { - object.extension = []; - for (let j = 0; j < message.extension.length; ++j) - object.extension[j] = $root.google.protobuf.FieldDescriptorProto.toObject(message.extension[j], options); - } - if (message.options != null && message.hasOwnProperty("options")) - object.options = $root.google.protobuf.FileOptions.toObject(message.options, options); - if (message.source_code_info != null && message.hasOwnProperty("source_code_info")) - object.source_code_info = $root.google.protobuf.SourceCodeInfo.toObject(message.source_code_info, options); - if (message.public_dependency && message.public_dependency.length) { - object.public_dependency = []; - for (let j = 0; j < message.public_dependency.length; ++j) - object.public_dependency[j] = message.public_dependency[j]; - } - if (message.weak_dependency && message.weak_dependency.length) { - object.weak_dependency = []; - for (let j = 0; j < message.weak_dependency.length; ++j) - object.weak_dependency[j] = message.weak_dependency[j]; - } - if (message.syntax != null && message.hasOwnProperty("syntax")) - object.syntax = message.syntax; - return object; - }; + /** + * Decodes a BatchProof message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof cosmos.ics23.v1.BatchProof + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {cosmos.ics23.v1.BatchProof} BatchProof + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BatchProof.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Converts this FileDescriptorProto to JSON. - * @function toJSON - * @memberof google.protobuf.FileDescriptorProto - * @instance - * @returns {Object.} JSON object - */ - FileDescriptorProto.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Verifies a BatchProof message. + * @function verify + * @memberof cosmos.ics23.v1.BatchProof + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + BatchProof.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.entries != null && message.hasOwnProperty("entries")) { + if (!Array.isArray(message.entries)) + return "entries: array expected"; + for (let i = 0; i < message.entries.length; ++i) { + let error = $root.cosmos.ics23.v1.BatchEntry.verify(message.entries[i]); + if (error) + return "entries." + error; + } + } + return null; + }; + + /** + * Creates a BatchProof message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof cosmos.ics23.v1.BatchProof + * @static + * @param {Object.} object Plain object + * @returns {cosmos.ics23.v1.BatchProof} BatchProof + */ + BatchProof.fromObject = function fromObject(object) { + if (object instanceof $root.cosmos.ics23.v1.BatchProof) + return object; + let message = new $root.cosmos.ics23.v1.BatchProof(); + if (object.entries) { + if (!Array.isArray(object.entries)) + throw TypeError(".cosmos.ics23.v1.BatchProof.entries: array expected"); + message.entries = []; + for (let i = 0; i < object.entries.length; ++i) { + if (typeof object.entries[i] !== "object") + throw TypeError(".cosmos.ics23.v1.BatchProof.entries: object expected"); + message.entries[i] = $root.cosmos.ics23.v1.BatchEntry.fromObject(object.entries[i]); + } + } + return message; + }; - return FileDescriptorProto; - })(); + /** + * Creates a plain object from a BatchProof message. Also converts values to other types if specified. + * @function toObject + * @memberof cosmos.ics23.v1.BatchProof + * @static + * @param {cosmos.ics23.v1.BatchProof} message BatchProof + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + BatchProof.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) + object.entries = []; + if (message.entries && message.entries.length) { + object.entries = []; + for (let j = 0; j < message.entries.length; ++j) + object.entries[j] = $root.cosmos.ics23.v1.BatchEntry.toObject(message.entries[j], options); + } + return object; + }; - protobuf.DescriptorProto = (function() { + /** + * Converts this BatchProof to JSON. + * @function toJSON + * @memberof cosmos.ics23.v1.BatchProof + * @instance + * @returns {Object.} JSON object + */ + BatchProof.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Properties of a DescriptorProto. - * @memberof google.protobuf - * @interface IDescriptorProto - * @property {string|null} [name] DescriptorProto name - * @property {Array.|null} [field] DescriptorProto field - * @property {Array.|null} [extension] DescriptorProto extension - * @property {Array.|null} [nested_type] DescriptorProto nested_type - * @property {Array.|null} [enum_type] DescriptorProto enum_type - * @property {Array.|null} [extension_range] DescriptorProto extension_range - * @property {Array.|null} [oneof_decl] DescriptorProto oneof_decl - * @property {google.protobuf.IMessageOptions|null} [options] DescriptorProto options - * @property {Array.|null} [reserved_range] DescriptorProto reserved_range - * @property {Array.|null} [reserved_name] DescriptorProto reserved_name - */ + return BatchProof; + })(); - /** - * Constructs a new DescriptorProto. - * @memberof google.protobuf - * @classdesc Represents a DescriptorProto. - * @implements IDescriptorProto - * @constructor - * @param {google.protobuf.IDescriptorProto=} [properties] Properties to set - */ - function DescriptorProto(properties) { - this.field = []; - this.extension = []; - this.nested_type = []; - this.enum_type = []; - this.extension_range = []; - this.oneof_decl = []; - this.reserved_range = []; - this.reserved_name = []; - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + v1.BatchEntry = (function() { - /** - * DescriptorProto name. - * @member {string} name - * @memberof google.protobuf.DescriptorProto - * @instance - */ - DescriptorProto.prototype.name = ""; + /** + * Properties of a BatchEntry. + * @memberof cosmos.ics23.v1 + * @interface IBatchEntry + * @property {cosmos.ics23.v1.IExistenceProof|null} [exist] BatchEntry exist + * @property {cosmos.ics23.v1.INonExistenceProof|null} [nonexist] BatchEntry nonexist + */ - /** - * DescriptorProto field. - * @member {Array.} field - * @memberof google.protobuf.DescriptorProto - * @instance - */ - DescriptorProto.prototype.field = $util.emptyArray; + /** + * Constructs a new BatchEntry. + * @memberof cosmos.ics23.v1 + * @classdesc Represents a BatchEntry. + * @implements IBatchEntry + * @constructor + * @param {cosmos.ics23.v1.IBatchEntry=} [properties] Properties to set + */ + function BatchEntry(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * DescriptorProto extension. - * @member {Array.} extension - * @memberof google.protobuf.DescriptorProto - * @instance - */ - DescriptorProto.prototype.extension = $util.emptyArray; + /** + * BatchEntry exist. + * @member {cosmos.ics23.v1.IExistenceProof|null|undefined} exist + * @memberof cosmos.ics23.v1.BatchEntry + * @instance + */ + BatchEntry.prototype.exist = null; - /** - * DescriptorProto nested_type. - * @member {Array.} nested_type - * @memberof google.protobuf.DescriptorProto - * @instance - */ - DescriptorProto.prototype.nested_type = $util.emptyArray; + /** + * BatchEntry nonexist. + * @member {cosmos.ics23.v1.INonExistenceProof|null|undefined} nonexist + * @memberof cosmos.ics23.v1.BatchEntry + * @instance + */ + BatchEntry.prototype.nonexist = null; - /** - * DescriptorProto enum_type. - * @member {Array.} enum_type - * @memberof google.protobuf.DescriptorProto - * @instance - */ - DescriptorProto.prototype.enum_type = $util.emptyArray; + // OneOf field names bound to virtual getters and setters + let $oneOfFields; - /** - * DescriptorProto extension_range. - * @member {Array.} extension_range - * @memberof google.protobuf.DescriptorProto - * @instance - */ - DescriptorProto.prototype.extension_range = $util.emptyArray; + /** + * BatchEntry proof. + * @member {"exist"|"nonexist"|undefined} proof + * @memberof cosmos.ics23.v1.BatchEntry + * @instance + */ + Object.defineProperty(BatchEntry.prototype, "proof", { + get: $util.oneOfGetter($oneOfFields = ["exist", "nonexist"]), + set: $util.oneOfSetter($oneOfFields) + }); - /** - * DescriptorProto oneof_decl. - * @member {Array.} oneof_decl - * @memberof google.protobuf.DescriptorProto - * @instance - */ - DescriptorProto.prototype.oneof_decl = $util.emptyArray; + /** + * Encodes the specified BatchEntry message. Does not implicitly {@link cosmos.ics23.v1.BatchEntry.verify|verify} messages. + * @function encode + * @memberof cosmos.ics23.v1.BatchEntry + * @static + * @param {cosmos.ics23.v1.IBatchEntry} message BatchEntry message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BatchEntry.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.exist != null && Object.hasOwnProperty.call(message, "exist")) + $root.cosmos.ics23.v1.ExistenceProof.encode(message.exist, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nonexist != null && Object.hasOwnProperty.call(message, "nonexist")) + $root.cosmos.ics23.v1.NonExistenceProof.encode(message.nonexist, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; - /** - * DescriptorProto options. - * @member {google.protobuf.IMessageOptions|null|undefined} options - * @memberof google.protobuf.DescriptorProto - * @instance - */ - DescriptorProto.prototype.options = null; + /** + * Encodes the specified BatchEntry message, length delimited. Does not implicitly {@link cosmos.ics23.v1.BatchEntry.verify|verify} messages. + * @function encodeDelimited + * @memberof cosmos.ics23.v1.BatchEntry + * @static + * @param {cosmos.ics23.v1.IBatchEntry} message BatchEntry message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BatchEntry.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * DescriptorProto reserved_range. - * @member {Array.} reserved_range - * @memberof google.protobuf.DescriptorProto - * @instance - */ - DescriptorProto.prototype.reserved_range = $util.emptyArray; + /** + * Decodes a BatchEntry message from the specified reader or buffer. + * @function decode + * @memberof cosmos.ics23.v1.BatchEntry + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {cosmos.ics23.v1.BatchEntry} BatchEntry + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BatchEntry.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.cosmos.ics23.v1.BatchEntry(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.exist = $root.cosmos.ics23.v1.ExistenceProof.decode(reader, reader.uint32()); + break; + case 2: + message.nonexist = $root.cosmos.ics23.v1.NonExistenceProof.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * DescriptorProto reserved_name. - * @member {Array.} reserved_name - * @memberof google.protobuf.DescriptorProto - * @instance - */ - DescriptorProto.prototype.reserved_name = $util.emptyArray; + /** + * Decodes a BatchEntry message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof cosmos.ics23.v1.BatchEntry + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {cosmos.ics23.v1.BatchEntry} BatchEntry + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BatchEntry.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Encodes the specified DescriptorProto message. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages. - * @function encode - * @memberof google.protobuf.DescriptorProto - * @static - * @param {google.protobuf.IDescriptorProto} message DescriptorProto message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DescriptorProto.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.field != null && message.field.length) - for (let i = 0; i < message.field.length; ++i) - $root.google.protobuf.FieldDescriptorProto.encode(message.field[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.nested_type != null && message.nested_type.length) - for (let i = 0; i < message.nested_type.length; ++i) - $root.google.protobuf.DescriptorProto.encode(message.nested_type[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.enum_type != null && message.enum_type.length) - for (let i = 0; i < message.enum_type.length; ++i) - $root.google.protobuf.EnumDescriptorProto.encode(message.enum_type[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.extension_range != null && message.extension_range.length) - for (let i = 0; i < message.extension_range.length; ++i) - $root.google.protobuf.DescriptorProto.ExtensionRange.encode(message.extension_range[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.extension != null && message.extension.length) - for (let i = 0; i < message.extension.length; ++i) - $root.google.protobuf.FieldDescriptorProto.encode(message.extension[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.options != null && Object.hasOwnProperty.call(message, "options")) - $root.google.protobuf.MessageOptions.encode(message.options, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.oneof_decl != null && message.oneof_decl.length) - for (let i = 0; i < message.oneof_decl.length; ++i) - $root.google.protobuf.OneofDescriptorProto.encode(message.oneof_decl[i], writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.reserved_range != null && message.reserved_range.length) - for (let i = 0; i < message.reserved_range.length; ++i) - $root.google.protobuf.DescriptorProto.ReservedRange.encode(message.reserved_range[i], writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - if (message.reserved_name != null && message.reserved_name.length) - for (let i = 0; i < message.reserved_name.length; ++i) - writer.uint32(/* id 10, wireType 2 =*/82).string(message.reserved_name[i]); - return writer; - }; + /** + * Verifies a BatchEntry message. + * @function verify + * @memberof cosmos.ics23.v1.BatchEntry + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + BatchEntry.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + let properties = {}; + if (message.exist != null && message.hasOwnProperty("exist")) { + properties.proof = 1; + { + let error = $root.cosmos.ics23.v1.ExistenceProof.verify(message.exist); + if (error) + return "exist." + error; + } + } + if (message.nonexist != null && message.hasOwnProperty("nonexist")) { + if (properties.proof === 1) + return "proof: multiple values"; + properties.proof = 1; + { + let error = $root.cosmos.ics23.v1.NonExistenceProof.verify(message.nonexist); + if (error) + return "nonexist." + error; + } + } + return null; + }; - /** - * Encodes the specified DescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.DescriptorProto - * @static - * @param {google.protobuf.IDescriptorProto} message DescriptorProto message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Creates a BatchEntry message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof cosmos.ics23.v1.BatchEntry + * @static + * @param {Object.} object Plain object + * @returns {cosmos.ics23.v1.BatchEntry} BatchEntry + */ + BatchEntry.fromObject = function fromObject(object) { + if (object instanceof $root.cosmos.ics23.v1.BatchEntry) + return object; + let message = new $root.cosmos.ics23.v1.BatchEntry(); + if (object.exist != null) { + if (typeof object.exist !== "object") + throw TypeError(".cosmos.ics23.v1.BatchEntry.exist: object expected"); + message.exist = $root.cosmos.ics23.v1.ExistenceProof.fromObject(object.exist); + } + if (object.nonexist != null) { + if (typeof object.nonexist !== "object") + throw TypeError(".cosmos.ics23.v1.BatchEntry.nonexist: object expected"); + message.nonexist = $root.cosmos.ics23.v1.NonExistenceProof.fromObject(object.nonexist); + } + return message; + }; - /** - * Decodes a DescriptorProto message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.DescriptorProto - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.DescriptorProto} DescriptorProto - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DescriptorProto.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.DescriptorProto(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - if (!(message.field && message.field.length)) - message.field = []; - message.field.push($root.google.protobuf.FieldDescriptorProto.decode(reader, reader.uint32())); - break; - case 6: - if (!(message.extension && message.extension.length)) - message.extension = []; - message.extension.push($root.google.protobuf.FieldDescriptorProto.decode(reader, reader.uint32())); - break; - case 3: - if (!(message.nested_type && message.nested_type.length)) - message.nested_type = []; - message.nested_type.push($root.google.protobuf.DescriptorProto.decode(reader, reader.uint32())); - break; - case 4: - if (!(message.enum_type && message.enum_type.length)) - message.enum_type = []; - message.enum_type.push($root.google.protobuf.EnumDescriptorProto.decode(reader, reader.uint32())); - break; - case 5: - if (!(message.extension_range && message.extension_range.length)) - message.extension_range = []; - message.extension_range.push($root.google.protobuf.DescriptorProto.ExtensionRange.decode(reader, reader.uint32())); - break; - case 8: - if (!(message.oneof_decl && message.oneof_decl.length)) - message.oneof_decl = []; - message.oneof_decl.push($root.google.protobuf.OneofDescriptorProto.decode(reader, reader.uint32())); - break; - case 7: - message.options = $root.google.protobuf.MessageOptions.decode(reader, reader.uint32()); - break; - case 9: - if (!(message.reserved_range && message.reserved_range.length)) - message.reserved_range = []; - message.reserved_range.push($root.google.protobuf.DescriptorProto.ReservedRange.decode(reader, reader.uint32())); - break; - case 10: - if (!(message.reserved_name && message.reserved_name.length)) - message.reserved_name = []; - message.reserved_name.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; + /** + * Creates a plain object from a BatchEntry message. Also converts values to other types if specified. + * @function toObject + * @memberof cosmos.ics23.v1.BatchEntry + * @static + * @param {cosmos.ics23.v1.BatchEntry} message BatchEntry + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + BatchEntry.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (message.exist != null && message.hasOwnProperty("exist")) { + object.exist = $root.cosmos.ics23.v1.ExistenceProof.toObject(message.exist, options); + if (options.oneofs) + object.proof = "exist"; + } + if (message.nonexist != null && message.hasOwnProperty("nonexist")) { + object.nonexist = $root.cosmos.ics23.v1.NonExistenceProof.toObject(message.nonexist, options); + if (options.oneofs) + object.proof = "nonexist"; } + return object; + }; + + /** + * Converts this BatchEntry to JSON. + * @function toJSON + * @memberof cosmos.ics23.v1.BatchEntry + * @instance + * @returns {Object.} JSON object + */ + BatchEntry.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return BatchEntry; + })(); + + v1.CompressedBatchProof = (function() { + + /** + * Properties of a CompressedBatchProof. + * @memberof cosmos.ics23.v1 + * @interface ICompressedBatchProof + * @property {Array.|null} [entries] CompressedBatchProof entries + * @property {Array.|null} [lookup_inners] CompressedBatchProof lookup_inners + */ + + /** + * Constructs a new CompressedBatchProof. + * @memberof cosmos.ics23.v1 + * @classdesc Represents a CompressedBatchProof. + * @implements ICompressedBatchProof + * @constructor + * @param {cosmos.ics23.v1.ICompressedBatchProof=} [properties] Properties to set + */ + function CompressedBatchProof(properties) { + this.entries = []; + this.lookup_inners = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; } - return message; - }; - /** - * Decodes a DescriptorProto message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.DescriptorProto - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.DescriptorProto} DescriptorProto - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DescriptorProto.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * CompressedBatchProof entries. + * @member {Array.} entries + * @memberof cosmos.ics23.v1.CompressedBatchProof + * @instance + */ + CompressedBatchProof.prototype.entries = $util.emptyArray; - /** - * Verifies a DescriptorProto message. - * @function verify - * @memberof google.protobuf.DescriptorProto - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - DescriptorProto.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.field != null && message.hasOwnProperty("field")) { - if (!Array.isArray(message.field)) - return "field: array expected"; - for (let i = 0; i < message.field.length; ++i) { - let error = $root.google.protobuf.FieldDescriptorProto.verify(message.field[i]); - if (error) - return "field." + error; + /** + * CompressedBatchProof lookup_inners. + * @member {Array.} lookup_inners + * @memberof cosmos.ics23.v1.CompressedBatchProof + * @instance + */ + CompressedBatchProof.prototype.lookup_inners = $util.emptyArray; + + /** + * Encodes the specified CompressedBatchProof message. Does not implicitly {@link cosmos.ics23.v1.CompressedBatchProof.verify|verify} messages. + * @function encode + * @memberof cosmos.ics23.v1.CompressedBatchProof + * @static + * @param {cosmos.ics23.v1.ICompressedBatchProof} message CompressedBatchProof message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CompressedBatchProof.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.entries != null && message.entries.length) + for (let i = 0; i < message.entries.length; ++i) + $root.cosmos.ics23.v1.CompressedBatchEntry.encode(message.entries[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.lookup_inners != null && message.lookup_inners.length) + for (let i = 0; i < message.lookup_inners.length; ++i) + $root.cosmos.ics23.v1.InnerOp.encode(message.lookup_inners[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified CompressedBatchProof message, length delimited. Does not implicitly {@link cosmos.ics23.v1.CompressedBatchProof.verify|verify} messages. + * @function encodeDelimited + * @memberof cosmos.ics23.v1.CompressedBatchProof + * @static + * @param {cosmos.ics23.v1.ICompressedBatchProof} message CompressedBatchProof message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CompressedBatchProof.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CompressedBatchProof message from the specified reader or buffer. + * @function decode + * @memberof cosmos.ics23.v1.CompressedBatchProof + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {cosmos.ics23.v1.CompressedBatchProof} CompressedBatchProof + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CompressedBatchProof.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.cosmos.ics23.v1.CompressedBatchProof(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.entries && message.entries.length)) + message.entries = []; + message.entries.push($root.cosmos.ics23.v1.CompressedBatchEntry.decode(reader, reader.uint32())); + break; + case 2: + if (!(message.lookup_inners && message.lookup_inners.length)) + message.lookup_inners = []; + message.lookup_inners.push($root.cosmos.ics23.v1.InnerOp.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } } - } - if (message.extension != null && message.hasOwnProperty("extension")) { - if (!Array.isArray(message.extension)) - return "extension: array expected"; - for (let i = 0; i < message.extension.length; ++i) { - let error = $root.google.protobuf.FieldDescriptorProto.verify(message.extension[i]); - if (error) - return "extension." + error; + return message; + }; + + /** + * Decodes a CompressedBatchProof message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof cosmos.ics23.v1.CompressedBatchProof + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {cosmos.ics23.v1.CompressedBatchProof} CompressedBatchProof + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CompressedBatchProof.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CompressedBatchProof message. + * @function verify + * @memberof cosmos.ics23.v1.CompressedBatchProof + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CompressedBatchProof.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.entries != null && message.hasOwnProperty("entries")) { + if (!Array.isArray(message.entries)) + return "entries: array expected"; + for (let i = 0; i < message.entries.length; ++i) { + let error = $root.cosmos.ics23.v1.CompressedBatchEntry.verify(message.entries[i]); + if (error) + return "entries." + error; + } } - } - if (message.nested_type != null && message.hasOwnProperty("nested_type")) { - if (!Array.isArray(message.nested_type)) - return "nested_type: array expected"; - for (let i = 0; i < message.nested_type.length; ++i) { - let error = $root.google.protobuf.DescriptorProto.verify(message.nested_type[i]); - if (error) - return "nested_type." + error; + if (message.lookup_inners != null && message.hasOwnProperty("lookup_inners")) { + if (!Array.isArray(message.lookup_inners)) + return "lookup_inners: array expected"; + for (let i = 0; i < message.lookup_inners.length; ++i) { + let error = $root.cosmos.ics23.v1.InnerOp.verify(message.lookup_inners[i]); + if (error) + return "lookup_inners." + error; + } } - } - if (message.enum_type != null && message.hasOwnProperty("enum_type")) { - if (!Array.isArray(message.enum_type)) - return "enum_type: array expected"; - for (let i = 0; i < message.enum_type.length; ++i) { - let error = $root.google.protobuf.EnumDescriptorProto.verify(message.enum_type[i]); - if (error) - return "enum_type." + error; + return null; + }; + + /** + * Creates a CompressedBatchProof message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof cosmos.ics23.v1.CompressedBatchProof + * @static + * @param {Object.} object Plain object + * @returns {cosmos.ics23.v1.CompressedBatchProof} CompressedBatchProof + */ + CompressedBatchProof.fromObject = function fromObject(object) { + if (object instanceof $root.cosmos.ics23.v1.CompressedBatchProof) + return object; + let message = new $root.cosmos.ics23.v1.CompressedBatchProof(); + if (object.entries) { + if (!Array.isArray(object.entries)) + throw TypeError(".cosmos.ics23.v1.CompressedBatchProof.entries: array expected"); + message.entries = []; + for (let i = 0; i < object.entries.length; ++i) { + if (typeof object.entries[i] !== "object") + throw TypeError(".cosmos.ics23.v1.CompressedBatchProof.entries: object expected"); + message.entries[i] = $root.cosmos.ics23.v1.CompressedBatchEntry.fromObject(object.entries[i]); + } } - } - if (message.extension_range != null && message.hasOwnProperty("extension_range")) { - if (!Array.isArray(message.extension_range)) - return "extension_range: array expected"; - for (let i = 0; i < message.extension_range.length; ++i) { - let error = $root.google.protobuf.DescriptorProto.ExtensionRange.verify(message.extension_range[i]); - if (error) - return "extension_range." + error; + if (object.lookup_inners) { + if (!Array.isArray(object.lookup_inners)) + throw TypeError(".cosmos.ics23.v1.CompressedBatchProof.lookup_inners: array expected"); + message.lookup_inners = []; + for (let i = 0; i < object.lookup_inners.length; ++i) { + if (typeof object.lookup_inners[i] !== "object") + throw TypeError(".cosmos.ics23.v1.CompressedBatchProof.lookup_inners: object expected"); + message.lookup_inners[i] = $root.cosmos.ics23.v1.InnerOp.fromObject(object.lookup_inners[i]); + } } - } - if (message.oneof_decl != null && message.hasOwnProperty("oneof_decl")) { - if (!Array.isArray(message.oneof_decl)) - return "oneof_decl: array expected"; - for (let i = 0; i < message.oneof_decl.length; ++i) { - let error = $root.google.protobuf.OneofDescriptorProto.verify(message.oneof_decl[i]); - if (error) - return "oneof_decl." + error; + return message; + }; + + /** + * Creates a plain object from a CompressedBatchProof message. Also converts values to other types if specified. + * @function toObject + * @memberof cosmos.ics23.v1.CompressedBatchProof + * @static + * @param {cosmos.ics23.v1.CompressedBatchProof} message CompressedBatchProof + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CompressedBatchProof.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) { + object.entries = []; + object.lookup_inners = []; } - } - if (message.options != null && message.hasOwnProperty("options")) { - let error = $root.google.protobuf.MessageOptions.verify(message.options); - if (error) - return "options." + error; - } - if (message.reserved_range != null && message.hasOwnProperty("reserved_range")) { - if (!Array.isArray(message.reserved_range)) - return "reserved_range: array expected"; - for (let i = 0; i < message.reserved_range.length; ++i) { - let error = $root.google.protobuf.DescriptorProto.ReservedRange.verify(message.reserved_range[i]); - if (error) - return "reserved_range." + error; + if (message.entries && message.entries.length) { + object.entries = []; + for (let j = 0; j < message.entries.length; ++j) + object.entries[j] = $root.cosmos.ics23.v1.CompressedBatchEntry.toObject(message.entries[j], options); } + if (message.lookup_inners && message.lookup_inners.length) { + object.lookup_inners = []; + for (let j = 0; j < message.lookup_inners.length; ++j) + object.lookup_inners[j] = $root.cosmos.ics23.v1.InnerOp.toObject(message.lookup_inners[j], options); + } + return object; + }; + + /** + * Converts this CompressedBatchProof to JSON. + * @function toJSON + * @memberof cosmos.ics23.v1.CompressedBatchProof + * @instance + * @returns {Object.} JSON object + */ + CompressedBatchProof.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return CompressedBatchProof; + })(); + + v1.CompressedBatchEntry = (function() { + + /** + * Properties of a CompressedBatchEntry. + * @memberof cosmos.ics23.v1 + * @interface ICompressedBatchEntry + * @property {cosmos.ics23.v1.ICompressedExistenceProof|null} [exist] CompressedBatchEntry exist + * @property {cosmos.ics23.v1.ICompressedNonExistenceProof|null} [nonexist] CompressedBatchEntry nonexist + */ + + /** + * Constructs a new CompressedBatchEntry. + * @memberof cosmos.ics23.v1 + * @classdesc Represents a CompressedBatchEntry. + * @implements ICompressedBatchEntry + * @constructor + * @param {cosmos.ics23.v1.ICompressedBatchEntry=} [properties] Properties to set + */ + function CompressedBatchEntry(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; } - if (message.reserved_name != null && message.hasOwnProperty("reserved_name")) { - if (!Array.isArray(message.reserved_name)) - return "reserved_name: array expected"; - for (let i = 0; i < message.reserved_name.length; ++i) - if (!$util.isString(message.reserved_name[i])) - return "reserved_name: string[] expected"; - } - return null; - }; - /** - * Creates a DescriptorProto message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.DescriptorProto - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.DescriptorProto} DescriptorProto - */ - DescriptorProto.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.DescriptorProto) - return object; - let message = new $root.google.protobuf.DescriptorProto(); - if (object.name != null) - message.name = String(object.name); - if (object.field) { - if (!Array.isArray(object.field)) - throw TypeError(".google.protobuf.DescriptorProto.field: array expected"); - message.field = []; - for (let i = 0; i < object.field.length; ++i) { - if (typeof object.field[i] !== "object") - throw TypeError(".google.protobuf.DescriptorProto.field: object expected"); - message.field[i] = $root.google.protobuf.FieldDescriptorProto.fromObject(object.field[i]); + /** + * CompressedBatchEntry exist. + * @member {cosmos.ics23.v1.ICompressedExistenceProof|null|undefined} exist + * @memberof cosmos.ics23.v1.CompressedBatchEntry + * @instance + */ + CompressedBatchEntry.prototype.exist = null; + + /** + * CompressedBatchEntry nonexist. + * @member {cosmos.ics23.v1.ICompressedNonExistenceProof|null|undefined} nonexist + * @memberof cosmos.ics23.v1.CompressedBatchEntry + * @instance + */ + CompressedBatchEntry.prototype.nonexist = null; + + // OneOf field names bound to virtual getters and setters + let $oneOfFields; + + /** + * CompressedBatchEntry proof. + * @member {"exist"|"nonexist"|undefined} proof + * @memberof cosmos.ics23.v1.CompressedBatchEntry + * @instance + */ + Object.defineProperty(CompressedBatchEntry.prototype, "proof", { + get: $util.oneOfGetter($oneOfFields = ["exist", "nonexist"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Encodes the specified CompressedBatchEntry message. Does not implicitly {@link cosmos.ics23.v1.CompressedBatchEntry.verify|verify} messages. + * @function encode + * @memberof cosmos.ics23.v1.CompressedBatchEntry + * @static + * @param {cosmos.ics23.v1.ICompressedBatchEntry} message CompressedBatchEntry message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CompressedBatchEntry.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.exist != null && Object.hasOwnProperty.call(message, "exist")) + $root.cosmos.ics23.v1.CompressedExistenceProof.encode(message.exist, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nonexist != null && Object.hasOwnProperty.call(message, "nonexist")) + $root.cosmos.ics23.v1.CompressedNonExistenceProof.encode(message.nonexist, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified CompressedBatchEntry message, length delimited. Does not implicitly {@link cosmos.ics23.v1.CompressedBatchEntry.verify|verify} messages. + * @function encodeDelimited + * @memberof cosmos.ics23.v1.CompressedBatchEntry + * @static + * @param {cosmos.ics23.v1.ICompressedBatchEntry} message CompressedBatchEntry message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CompressedBatchEntry.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CompressedBatchEntry message from the specified reader or buffer. + * @function decode + * @memberof cosmos.ics23.v1.CompressedBatchEntry + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {cosmos.ics23.v1.CompressedBatchEntry} CompressedBatchEntry + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CompressedBatchEntry.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.cosmos.ics23.v1.CompressedBatchEntry(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.exist = $root.cosmos.ics23.v1.CompressedExistenceProof.decode(reader, reader.uint32()); + break; + case 2: + message.nonexist = $root.cosmos.ics23.v1.CompressedNonExistenceProof.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } } - } - if (object.extension) { - if (!Array.isArray(object.extension)) - throw TypeError(".google.protobuf.DescriptorProto.extension: array expected"); - message.extension = []; - for (let i = 0; i < object.extension.length; ++i) { - if (typeof object.extension[i] !== "object") - throw TypeError(".google.protobuf.DescriptorProto.extension: object expected"); - message.extension[i] = $root.google.protobuf.FieldDescriptorProto.fromObject(object.extension[i]); + return message; + }; + + /** + * Decodes a CompressedBatchEntry message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof cosmos.ics23.v1.CompressedBatchEntry + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {cosmos.ics23.v1.CompressedBatchEntry} CompressedBatchEntry + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CompressedBatchEntry.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CompressedBatchEntry message. + * @function verify + * @memberof cosmos.ics23.v1.CompressedBatchEntry + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CompressedBatchEntry.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + let properties = {}; + if (message.exist != null && message.hasOwnProperty("exist")) { + properties.proof = 1; + { + let error = $root.cosmos.ics23.v1.CompressedExistenceProof.verify(message.exist); + if (error) + return "exist." + error; + } } - } - if (object.nested_type) { - if (!Array.isArray(object.nested_type)) - throw TypeError(".google.protobuf.DescriptorProto.nested_type: array expected"); - message.nested_type = []; - for (let i = 0; i < object.nested_type.length; ++i) { - if (typeof object.nested_type[i] !== "object") - throw TypeError(".google.protobuf.DescriptorProto.nested_type: object expected"); - message.nested_type[i] = $root.google.protobuf.DescriptorProto.fromObject(object.nested_type[i]); + if (message.nonexist != null && message.hasOwnProperty("nonexist")) { + if (properties.proof === 1) + return "proof: multiple values"; + properties.proof = 1; + { + let error = $root.cosmos.ics23.v1.CompressedNonExistenceProof.verify(message.nonexist); + if (error) + return "nonexist." + error; + } } - } - if (object.enum_type) { - if (!Array.isArray(object.enum_type)) - throw TypeError(".google.protobuf.DescriptorProto.enum_type: array expected"); - message.enum_type = []; - for (let i = 0; i < object.enum_type.length; ++i) { - if (typeof object.enum_type[i] !== "object") - throw TypeError(".google.protobuf.DescriptorProto.enum_type: object expected"); - message.enum_type[i] = $root.google.protobuf.EnumDescriptorProto.fromObject(object.enum_type[i]); + return null; + }; + + /** + * Creates a CompressedBatchEntry message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof cosmos.ics23.v1.CompressedBatchEntry + * @static + * @param {Object.} object Plain object + * @returns {cosmos.ics23.v1.CompressedBatchEntry} CompressedBatchEntry + */ + CompressedBatchEntry.fromObject = function fromObject(object) { + if (object instanceof $root.cosmos.ics23.v1.CompressedBatchEntry) + return object; + let message = new $root.cosmos.ics23.v1.CompressedBatchEntry(); + if (object.exist != null) { + if (typeof object.exist !== "object") + throw TypeError(".cosmos.ics23.v1.CompressedBatchEntry.exist: object expected"); + message.exist = $root.cosmos.ics23.v1.CompressedExistenceProof.fromObject(object.exist); } - } - if (object.extension_range) { - if (!Array.isArray(object.extension_range)) - throw TypeError(".google.protobuf.DescriptorProto.extension_range: array expected"); - message.extension_range = []; - for (let i = 0; i < object.extension_range.length; ++i) { - if (typeof object.extension_range[i] !== "object") - throw TypeError(".google.protobuf.DescriptorProto.extension_range: object expected"); - message.extension_range[i] = $root.google.protobuf.DescriptorProto.ExtensionRange.fromObject(object.extension_range[i]); + if (object.nonexist != null) { + if (typeof object.nonexist !== "object") + throw TypeError(".cosmos.ics23.v1.CompressedBatchEntry.nonexist: object expected"); + message.nonexist = $root.cosmos.ics23.v1.CompressedNonExistenceProof.fromObject(object.nonexist); } - } - if (object.oneof_decl) { - if (!Array.isArray(object.oneof_decl)) - throw TypeError(".google.protobuf.DescriptorProto.oneof_decl: array expected"); - message.oneof_decl = []; - for (let i = 0; i < object.oneof_decl.length; ++i) { - if (typeof object.oneof_decl[i] !== "object") - throw TypeError(".google.protobuf.DescriptorProto.oneof_decl: object expected"); - message.oneof_decl[i] = $root.google.protobuf.OneofDescriptorProto.fromObject(object.oneof_decl[i]); + return message; + }; + + /** + * Creates a plain object from a CompressedBatchEntry message. Also converts values to other types if specified. + * @function toObject + * @memberof cosmos.ics23.v1.CompressedBatchEntry + * @static + * @param {cosmos.ics23.v1.CompressedBatchEntry} message CompressedBatchEntry + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CompressedBatchEntry.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (message.exist != null && message.hasOwnProperty("exist")) { + object.exist = $root.cosmos.ics23.v1.CompressedExistenceProof.toObject(message.exist, options); + if (options.oneofs) + object.proof = "exist"; } - } - if (object.options != null) { - if (typeof object.options !== "object") - throw TypeError(".google.protobuf.DescriptorProto.options: object expected"); - message.options = $root.google.protobuf.MessageOptions.fromObject(object.options); - } - if (object.reserved_range) { - if (!Array.isArray(object.reserved_range)) - throw TypeError(".google.protobuf.DescriptorProto.reserved_range: array expected"); - message.reserved_range = []; - for (let i = 0; i < object.reserved_range.length; ++i) { - if (typeof object.reserved_range[i] !== "object") - throw TypeError(".google.protobuf.DescriptorProto.reserved_range: object expected"); - message.reserved_range[i] = $root.google.protobuf.DescriptorProto.ReservedRange.fromObject(object.reserved_range[i]); + if (message.nonexist != null && message.hasOwnProperty("nonexist")) { + object.nonexist = $root.cosmos.ics23.v1.CompressedNonExistenceProof.toObject(message.nonexist, options); + if (options.oneofs) + object.proof = "nonexist"; } - } - if (object.reserved_name) { - if (!Array.isArray(object.reserved_name)) - throw TypeError(".google.protobuf.DescriptorProto.reserved_name: array expected"); - message.reserved_name = []; - for (let i = 0; i < object.reserved_name.length; ++i) - message.reserved_name[i] = String(object.reserved_name[i]); - } - return message; - }; + return object; + }; - /** - * Creates a plain object from a DescriptorProto message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.DescriptorProto - * @static - * @param {google.protobuf.DescriptorProto} message DescriptorProto - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - DescriptorProto.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.arrays || options.defaults) { - object.field = []; - object.nested_type = []; - object.enum_type = []; - object.extension_range = []; - object.extension = []; - object.oneof_decl = []; - object.reserved_range = []; - object.reserved_name = []; - } - if (options.defaults) { - object.name = ""; - object.options = null; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.field && message.field.length) { - object.field = []; - for (let j = 0; j < message.field.length; ++j) - object.field[j] = $root.google.protobuf.FieldDescriptorProto.toObject(message.field[j], options); - } - if (message.nested_type && message.nested_type.length) { - object.nested_type = []; - for (let j = 0; j < message.nested_type.length; ++j) - object.nested_type[j] = $root.google.protobuf.DescriptorProto.toObject(message.nested_type[j], options); - } - if (message.enum_type && message.enum_type.length) { - object.enum_type = []; - for (let j = 0; j < message.enum_type.length; ++j) - object.enum_type[j] = $root.google.protobuf.EnumDescriptorProto.toObject(message.enum_type[j], options); - } - if (message.extension_range && message.extension_range.length) { - object.extension_range = []; - for (let j = 0; j < message.extension_range.length; ++j) - object.extension_range[j] = $root.google.protobuf.DescriptorProto.ExtensionRange.toObject(message.extension_range[j], options); - } - if (message.extension && message.extension.length) { - object.extension = []; - for (let j = 0; j < message.extension.length; ++j) - object.extension[j] = $root.google.protobuf.FieldDescriptorProto.toObject(message.extension[j], options); - } - if (message.options != null && message.hasOwnProperty("options")) - object.options = $root.google.protobuf.MessageOptions.toObject(message.options, options); - if (message.oneof_decl && message.oneof_decl.length) { - object.oneof_decl = []; - for (let j = 0; j < message.oneof_decl.length; ++j) - object.oneof_decl[j] = $root.google.protobuf.OneofDescriptorProto.toObject(message.oneof_decl[j], options); - } - if (message.reserved_range && message.reserved_range.length) { - object.reserved_range = []; - for (let j = 0; j < message.reserved_range.length; ++j) - object.reserved_range[j] = $root.google.protobuf.DescriptorProto.ReservedRange.toObject(message.reserved_range[j], options); - } - if (message.reserved_name && message.reserved_name.length) { - object.reserved_name = []; - for (let j = 0; j < message.reserved_name.length; ++j) - object.reserved_name[j] = message.reserved_name[j]; - } - return object; - }; + /** + * Converts this CompressedBatchEntry to JSON. + * @function toJSON + * @memberof cosmos.ics23.v1.CompressedBatchEntry + * @instance + * @returns {Object.} JSON object + */ + CompressedBatchEntry.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Converts this DescriptorProto to JSON. - * @function toJSON - * @memberof google.protobuf.DescriptorProto - * @instance - * @returns {Object.} JSON object - */ - DescriptorProto.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + return CompressedBatchEntry; + })(); - DescriptorProto.ExtensionRange = (function() { + v1.CompressedExistenceProof = (function() { /** - * Properties of an ExtensionRange. - * @memberof google.protobuf.DescriptorProto - * @interface IExtensionRange - * @property {number|null} [start] ExtensionRange start - * @property {number|null} [end] ExtensionRange end + * Properties of a CompressedExistenceProof. + * @memberof cosmos.ics23.v1 + * @interface ICompressedExistenceProof + * @property {Uint8Array|null} [key] CompressedExistenceProof key + * @property {Uint8Array|null} [value] CompressedExistenceProof value + * @property {cosmos.ics23.v1.ILeafOp|null} [leaf] CompressedExistenceProof leaf + * @property {Array.|null} [path] CompressedExistenceProof path */ /** - * Constructs a new ExtensionRange. - * @memberof google.protobuf.DescriptorProto - * @classdesc Represents an ExtensionRange. - * @implements IExtensionRange + * Constructs a new CompressedExistenceProof. + * @memberof cosmos.ics23.v1 + * @classdesc Represents a CompressedExistenceProof. + * @implements ICompressedExistenceProof * @constructor - * @param {google.protobuf.DescriptorProto.IExtensionRange=} [properties] Properties to set + * @param {cosmos.ics23.v1.ICompressedExistenceProof=} [properties] Properties to set */ - function ExtensionRange(properties) { + function CompressedExistenceProof(properties) { + this.path = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -8858,76 +14818,113 @@ export const google = $root.google = (() => { } /** - * ExtensionRange start. - * @member {number} start - * @memberof google.protobuf.DescriptorProto.ExtensionRange + * CompressedExistenceProof key. + * @member {Uint8Array} key + * @memberof cosmos.ics23.v1.CompressedExistenceProof * @instance */ - ExtensionRange.prototype.start = 0; + CompressedExistenceProof.prototype.key = $util.newBuffer([]); /** - * ExtensionRange end. - * @member {number} end - * @memberof google.protobuf.DescriptorProto.ExtensionRange + * CompressedExistenceProof value. + * @member {Uint8Array} value + * @memberof cosmos.ics23.v1.CompressedExistenceProof * @instance */ - ExtensionRange.prototype.end = 0; + CompressedExistenceProof.prototype.value = $util.newBuffer([]); /** - * Encodes the specified ExtensionRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages. + * CompressedExistenceProof leaf. + * @member {cosmos.ics23.v1.ILeafOp|null|undefined} leaf + * @memberof cosmos.ics23.v1.CompressedExistenceProof + * @instance + */ + CompressedExistenceProof.prototype.leaf = null; + + /** + * CompressedExistenceProof path. + * @member {Array.} path + * @memberof cosmos.ics23.v1.CompressedExistenceProof + * @instance + */ + CompressedExistenceProof.prototype.path = $util.emptyArray; + + /** + * Encodes the specified CompressedExistenceProof message. Does not implicitly {@link cosmos.ics23.v1.CompressedExistenceProof.verify|verify} messages. * @function encode - * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @memberof cosmos.ics23.v1.CompressedExistenceProof * @static - * @param {google.protobuf.DescriptorProto.IExtensionRange} message ExtensionRange message or plain object to encode + * @param {cosmos.ics23.v1.ICompressedExistenceProof} message CompressedExistenceProof message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExtensionRange.encode = function encode(message, writer) { + CompressedExistenceProof.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.start != null && Object.hasOwnProperty.call(message, "start")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.start); - if (message.end != null && Object.hasOwnProperty.call(message, "end")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.end); + if (message.key != null && Object.hasOwnProperty.call(message, "key")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.key); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.value); + if (message.leaf != null && Object.hasOwnProperty.call(message, "leaf")) + $root.cosmos.ics23.v1.LeafOp.encode(message.leaf, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.path != null && message.path.length) { + writer.uint32(/* id 4, wireType 2 =*/34).fork(); + for (let i = 0; i < message.path.length; ++i) + writer.int32(message.path[i]); + writer.ldelim(); + } return writer; }; /** - * Encodes the specified ExtensionRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages. + * Encodes the specified CompressedExistenceProof message, length delimited. Does not implicitly {@link cosmos.ics23.v1.CompressedExistenceProof.verify|verify} messages. * @function encodeDelimited - * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @memberof cosmos.ics23.v1.CompressedExistenceProof * @static - * @param {google.protobuf.DescriptorProto.IExtensionRange} message ExtensionRange message or plain object to encode + * @param {cosmos.ics23.v1.ICompressedExistenceProof} message CompressedExistenceProof message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExtensionRange.encodeDelimited = function encodeDelimited(message, writer) { + CompressedExistenceProof.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ExtensionRange message from the specified reader or buffer. + * Decodes a CompressedExistenceProof message from the specified reader or buffer. * @function decode - * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @memberof cosmos.ics23.v1.CompressedExistenceProof * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.DescriptorProto.ExtensionRange} ExtensionRange + * @returns {cosmos.ics23.v1.CompressedExistenceProof} CompressedExistenceProof * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExtensionRange.decode = function decode(reader, length) { + CompressedExistenceProof.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.DescriptorProto.ExtensionRange(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.cosmos.ics23.v1.CompressedExistenceProof(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.start = reader.int32(); + message.key = reader.bytes(); break; case 2: - message.end = reader.int32(); + message.value = reader.bytes(); + break; + case 3: + message.leaf = $root.cosmos.ics23.v1.LeafOp.decode(reader, reader.uint32()); + break; + case 4: + if (!(message.path && message.path.length)) + message.path = []; + if ((tag & 7) === 2) { + let end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.path.push(reader.int32()); + } else + message.path.push(reader.int32()); break; default: reader.skipType(tag & 7); @@ -8938,117 +14935,170 @@ export const google = $root.google = (() => { }; /** - * Decodes an ExtensionRange message from the specified reader or buffer, length delimited. + * Decodes a CompressedExistenceProof message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @memberof cosmos.ics23.v1.CompressedExistenceProof * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.DescriptorProto.ExtensionRange} ExtensionRange + * @returns {cosmos.ics23.v1.CompressedExistenceProof} CompressedExistenceProof * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExtensionRange.decodeDelimited = function decodeDelimited(reader) { + CompressedExistenceProof.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ExtensionRange message. + * Verifies a CompressedExistenceProof message. * @function verify - * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @memberof cosmos.ics23.v1.CompressedExistenceProof * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ExtensionRange.verify = function verify(message) { + CompressedExistenceProof.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.start != null && message.hasOwnProperty("start")) - if (!$util.isInteger(message.start)) - return "start: integer expected"; - if (message.end != null && message.hasOwnProperty("end")) - if (!$util.isInteger(message.end)) - return "end: integer expected"; + if (message.key != null && message.hasOwnProperty("key")) + if (!(message.key && typeof message.key.length === "number" || $util.isString(message.key))) + return "key: buffer expected"; + if (message.value != null && message.hasOwnProperty("value")) + if (!(message.value && typeof message.value.length === "number" || $util.isString(message.value))) + return "value: buffer expected"; + if (message.leaf != null && message.hasOwnProperty("leaf")) { + let error = $root.cosmos.ics23.v1.LeafOp.verify(message.leaf); + if (error) + return "leaf." + error; + } + if (message.path != null && message.hasOwnProperty("path")) { + if (!Array.isArray(message.path)) + return "path: array expected"; + for (let i = 0; i < message.path.length; ++i) + if (!$util.isInteger(message.path[i])) + return "path: integer[] expected"; + } return null; }; /** - * Creates an ExtensionRange message from a plain object. Also converts values to their respective internal types. + * Creates a CompressedExistenceProof message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @memberof cosmos.ics23.v1.CompressedExistenceProof * @static * @param {Object.} object Plain object - * @returns {google.protobuf.DescriptorProto.ExtensionRange} ExtensionRange + * @returns {cosmos.ics23.v1.CompressedExistenceProof} CompressedExistenceProof */ - ExtensionRange.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.DescriptorProto.ExtensionRange) + CompressedExistenceProof.fromObject = function fromObject(object) { + if (object instanceof $root.cosmos.ics23.v1.CompressedExistenceProof) return object; - let message = new $root.google.protobuf.DescriptorProto.ExtensionRange(); - if (object.start != null) - message.start = object.start | 0; - if (object.end != null) - message.end = object.end | 0; + let message = new $root.cosmos.ics23.v1.CompressedExistenceProof(); + if (object.key != null) + if (typeof object.key === "string") + $util.base64.decode(object.key, message.key = $util.newBuffer($util.base64.length(object.key)), 0); + else if (object.key.length) + message.key = object.key; + if (object.value != null) + if (typeof object.value === "string") + $util.base64.decode(object.value, message.value = $util.newBuffer($util.base64.length(object.value)), 0); + else if (object.value.length) + message.value = object.value; + if (object.leaf != null) { + if (typeof object.leaf !== "object") + throw TypeError(".cosmos.ics23.v1.CompressedExistenceProof.leaf: object expected"); + message.leaf = $root.cosmos.ics23.v1.LeafOp.fromObject(object.leaf); + } + if (object.path) { + if (!Array.isArray(object.path)) + throw TypeError(".cosmos.ics23.v1.CompressedExistenceProof.path: array expected"); + message.path = []; + for (let i = 0; i < object.path.length; ++i) + message.path[i] = object.path[i] | 0; + } return message; }; /** - * Creates a plain object from an ExtensionRange message. Also converts values to other types if specified. + * Creates a plain object from a CompressedExistenceProof message. Also converts values to other types if specified. * @function toObject - * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @memberof cosmos.ics23.v1.CompressedExistenceProof * @static - * @param {google.protobuf.DescriptorProto.ExtensionRange} message ExtensionRange + * @param {cosmos.ics23.v1.CompressedExistenceProof} message CompressedExistenceProof * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ExtensionRange.toObject = function toObject(message, options) { + CompressedExistenceProof.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; + if (options.arrays || options.defaults) + object.path = []; if (options.defaults) { - object.start = 0; - object.end = 0; + if (options.bytes === String) + object.key = ""; + else { + object.key = []; + if (options.bytes !== Array) + object.key = $util.newBuffer(object.key); + } + if (options.bytes === String) + object.value = ""; + else { + object.value = []; + if (options.bytes !== Array) + object.value = $util.newBuffer(object.value); + } + object.leaf = null; + } + if (message.key != null && message.hasOwnProperty("key")) + object.key = options.bytes === String ? $util.base64.encode(message.key, 0, message.key.length) : options.bytes === Array ? Array.prototype.slice.call(message.key) : message.key; + if (message.value != null && message.hasOwnProperty("value")) + object.value = options.bytes === String ? $util.base64.encode(message.value, 0, message.value.length) : options.bytes === Array ? Array.prototype.slice.call(message.value) : message.value; + if (message.leaf != null && message.hasOwnProperty("leaf")) + object.leaf = $root.cosmos.ics23.v1.LeafOp.toObject(message.leaf, options); + if (message.path && message.path.length) { + object.path = []; + for (let j = 0; j < message.path.length; ++j) + object.path[j] = message.path[j]; } - if (message.start != null && message.hasOwnProperty("start")) - object.start = message.start; - if (message.end != null && message.hasOwnProperty("end")) - object.end = message.end; return object; }; /** - * Converts this ExtensionRange to JSON. + * Converts this CompressedExistenceProof to JSON. * @function toJSON - * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @memberof cosmos.ics23.v1.CompressedExistenceProof * @instance * @returns {Object.} JSON object */ - ExtensionRange.prototype.toJSON = function toJSON() { + CompressedExistenceProof.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ExtensionRange; + return CompressedExistenceProof; })(); - DescriptorProto.ReservedRange = (function() { + v1.CompressedNonExistenceProof = (function() { /** - * Properties of a ReservedRange. - * @memberof google.protobuf.DescriptorProto - * @interface IReservedRange - * @property {number|null} [start] ReservedRange start - * @property {number|null} [end] ReservedRange end + * Properties of a CompressedNonExistenceProof. + * @memberof cosmos.ics23.v1 + * @interface ICompressedNonExistenceProof + * @property {Uint8Array|null} [key] CompressedNonExistenceProof key + * @property {cosmos.ics23.v1.ICompressedExistenceProof|null} [left] CompressedNonExistenceProof left + * @property {cosmos.ics23.v1.ICompressedExistenceProof|null} [right] CompressedNonExistenceProof right */ /** - * Constructs a new ReservedRange. - * @memberof google.protobuf.DescriptorProto - * @classdesc Represents a ReservedRange. - * @implements IReservedRange + * Constructs a new CompressedNonExistenceProof. + * @memberof cosmos.ics23.v1 + * @classdesc Represents a CompressedNonExistenceProof. + * @implements ICompressedNonExistenceProof * @constructor - * @param {google.protobuf.DescriptorProto.IReservedRange=} [properties] Properties to set + * @param {cosmos.ics23.v1.ICompressedNonExistenceProof=} [properties] Properties to set */ - function ReservedRange(properties) { + function CompressedNonExistenceProof(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -9056,76 +15106,89 @@ export const google = $root.google = (() => { } /** - * ReservedRange start. - * @member {number} start - * @memberof google.protobuf.DescriptorProto.ReservedRange + * CompressedNonExistenceProof key. + * @member {Uint8Array} key + * @memberof cosmos.ics23.v1.CompressedNonExistenceProof * @instance */ - ReservedRange.prototype.start = 0; + CompressedNonExistenceProof.prototype.key = $util.newBuffer([]); /** - * ReservedRange end. - * @member {number} end - * @memberof google.protobuf.DescriptorProto.ReservedRange + * CompressedNonExistenceProof left. + * @member {cosmos.ics23.v1.ICompressedExistenceProof|null|undefined} left + * @memberof cosmos.ics23.v1.CompressedNonExistenceProof * @instance */ - ReservedRange.prototype.end = 0; + CompressedNonExistenceProof.prototype.left = null; /** - * Encodes the specified ReservedRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages. + * CompressedNonExistenceProof right. + * @member {cosmos.ics23.v1.ICompressedExistenceProof|null|undefined} right + * @memberof cosmos.ics23.v1.CompressedNonExistenceProof + * @instance + */ + CompressedNonExistenceProof.prototype.right = null; + + /** + * Encodes the specified CompressedNonExistenceProof message. Does not implicitly {@link cosmos.ics23.v1.CompressedNonExistenceProof.verify|verify} messages. * @function encode - * @memberof google.protobuf.DescriptorProto.ReservedRange + * @memberof cosmos.ics23.v1.CompressedNonExistenceProof * @static - * @param {google.protobuf.DescriptorProto.IReservedRange} message ReservedRange message or plain object to encode + * @param {cosmos.ics23.v1.ICompressedNonExistenceProof} message CompressedNonExistenceProof message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReservedRange.encode = function encode(message, writer) { + CompressedNonExistenceProof.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.start != null && Object.hasOwnProperty.call(message, "start")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.start); - if (message.end != null && Object.hasOwnProperty.call(message, "end")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.end); + if (message.key != null && Object.hasOwnProperty.call(message, "key")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.key); + if (message.left != null && Object.hasOwnProperty.call(message, "left")) + $root.cosmos.ics23.v1.CompressedExistenceProof.encode(message.left, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.right != null && Object.hasOwnProperty.call(message, "right")) + $root.cosmos.ics23.v1.CompressedExistenceProof.encode(message.right, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified ReservedRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages. + * Encodes the specified CompressedNonExistenceProof message, length delimited. Does not implicitly {@link cosmos.ics23.v1.CompressedNonExistenceProof.verify|verify} messages. * @function encodeDelimited - * @memberof google.protobuf.DescriptorProto.ReservedRange + * @memberof cosmos.ics23.v1.CompressedNonExistenceProof * @static - * @param {google.protobuf.DescriptorProto.IReservedRange} message ReservedRange message or plain object to encode + * @param {cosmos.ics23.v1.ICompressedNonExistenceProof} message CompressedNonExistenceProof message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReservedRange.encodeDelimited = function encodeDelimited(message, writer) { + CompressedNonExistenceProof.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ReservedRange message from the specified reader or buffer. + * Decodes a CompressedNonExistenceProof message from the specified reader or buffer. * @function decode - * @memberof google.protobuf.DescriptorProto.ReservedRange + * @memberof cosmos.ics23.v1.CompressedNonExistenceProof * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.DescriptorProto.ReservedRange} ReservedRange + * @returns {cosmos.ics23.v1.CompressedNonExistenceProof} CompressedNonExistenceProof * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReservedRange.decode = function decode(reader, length) { + CompressedNonExistenceProof.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.DescriptorProto.ReservedRange(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.cosmos.ics23.v1.CompressedNonExistenceProof(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.start = reader.int32(); + message.key = reader.bytes(); break; case 2: - message.end = reader.int32(); + message.left = $root.cosmos.ics23.v1.CompressedExistenceProof.decode(reader, reader.uint32()); + break; + case 3: + message.right = $root.cosmos.ics23.v1.CompressedExistenceProof.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -9136,877 +15199,686 @@ export const google = $root.google = (() => { }; /** - * Decodes a ReservedRange message from the specified reader or buffer, length delimited. + * Decodes a CompressedNonExistenceProof message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.protobuf.DescriptorProto.ReservedRange + * @memberof cosmos.ics23.v1.CompressedNonExistenceProof * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.DescriptorProto.ReservedRange} ReservedRange + * @returns {cosmos.ics23.v1.CompressedNonExistenceProof} CompressedNonExistenceProof * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReservedRange.decodeDelimited = function decodeDelimited(reader) { + CompressedNonExistenceProof.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ReservedRange message. + * Verifies a CompressedNonExistenceProof message. * @function verify - * @memberof google.protobuf.DescriptorProto.ReservedRange + * @memberof cosmos.ics23.v1.CompressedNonExistenceProof * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ReservedRange.verify = function verify(message) { + CompressedNonExistenceProof.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.start != null && message.hasOwnProperty("start")) - if (!$util.isInteger(message.start)) - return "start: integer expected"; - if (message.end != null && message.hasOwnProperty("end")) - if (!$util.isInteger(message.end)) - return "end: integer expected"; + if (message.key != null && message.hasOwnProperty("key")) + if (!(message.key && typeof message.key.length === "number" || $util.isString(message.key))) + return "key: buffer expected"; + if (message.left != null && message.hasOwnProperty("left")) { + let error = $root.cosmos.ics23.v1.CompressedExistenceProof.verify(message.left); + if (error) + return "left." + error; + } + if (message.right != null && message.hasOwnProperty("right")) { + let error = $root.cosmos.ics23.v1.CompressedExistenceProof.verify(message.right); + if (error) + return "right." + error; + } return null; }; /** - * Creates a ReservedRange message from a plain object. Also converts values to their respective internal types. + * Creates a CompressedNonExistenceProof message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.protobuf.DescriptorProto.ReservedRange + * @memberof cosmos.ics23.v1.CompressedNonExistenceProof * @static * @param {Object.} object Plain object - * @returns {google.protobuf.DescriptorProto.ReservedRange} ReservedRange + * @returns {cosmos.ics23.v1.CompressedNonExistenceProof} CompressedNonExistenceProof */ - ReservedRange.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.DescriptorProto.ReservedRange) + CompressedNonExistenceProof.fromObject = function fromObject(object) { + if (object instanceof $root.cosmos.ics23.v1.CompressedNonExistenceProof) return object; - let message = new $root.google.protobuf.DescriptorProto.ReservedRange(); - if (object.start != null) - message.start = object.start | 0; - if (object.end != null) - message.end = object.end | 0; + let message = new $root.cosmos.ics23.v1.CompressedNonExistenceProof(); + if (object.key != null) + if (typeof object.key === "string") + $util.base64.decode(object.key, message.key = $util.newBuffer($util.base64.length(object.key)), 0); + else if (object.key.length) + message.key = object.key; + if (object.left != null) { + if (typeof object.left !== "object") + throw TypeError(".cosmos.ics23.v1.CompressedNonExistenceProof.left: object expected"); + message.left = $root.cosmos.ics23.v1.CompressedExistenceProof.fromObject(object.left); + } + if (object.right != null) { + if (typeof object.right !== "object") + throw TypeError(".cosmos.ics23.v1.CompressedNonExistenceProof.right: object expected"); + message.right = $root.cosmos.ics23.v1.CompressedExistenceProof.fromObject(object.right); + } return message; }; /** - * Creates a plain object from a ReservedRange message. Also converts values to other types if specified. + * Creates a plain object from a CompressedNonExistenceProof message. Also converts values to other types if specified. * @function toObject - * @memberof google.protobuf.DescriptorProto.ReservedRange + * @memberof cosmos.ics23.v1.CompressedNonExistenceProof * @static - * @param {google.protobuf.DescriptorProto.ReservedRange} message ReservedRange + * @param {cosmos.ics23.v1.CompressedNonExistenceProof} message CompressedNonExistenceProof * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReservedRange.toObject = function toObject(message, options) { + CompressedNonExistenceProof.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - object.start = 0; - object.end = 0; + if (options.bytes === String) + object.key = ""; + else { + object.key = []; + if (options.bytes !== Array) + object.key = $util.newBuffer(object.key); + } + object.left = null; + object.right = null; } - if (message.start != null && message.hasOwnProperty("start")) - object.start = message.start; - if (message.end != null && message.hasOwnProperty("end")) - object.end = message.end; + if (message.key != null && message.hasOwnProperty("key")) + object.key = options.bytes === String ? $util.base64.encode(message.key, 0, message.key.length) : options.bytes === Array ? Array.prototype.slice.call(message.key) : message.key; + if (message.left != null && message.hasOwnProperty("left")) + object.left = $root.cosmos.ics23.v1.CompressedExistenceProof.toObject(message.left, options); + if (message.right != null && message.hasOwnProperty("right")) + object.right = $root.cosmos.ics23.v1.CompressedExistenceProof.toObject(message.right, options); return object; }; /** - * Converts this ReservedRange to JSON. + * Converts this CompressedNonExistenceProof to JSON. * @function toJSON - * @memberof google.protobuf.DescriptorProto.ReservedRange + * @memberof cosmos.ics23.v1.CompressedNonExistenceProof * @instance * @returns {Object.} JSON object */ - ReservedRange.prototype.toJSON = function toJSON() { + CompressedNonExistenceProof.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ReservedRange; + return CompressedNonExistenceProof; })(); - return DescriptorProto; + return v1; })(); - protobuf.FieldDescriptorProto = (function() { - - /** - * Properties of a FieldDescriptorProto. - * @memberof google.protobuf - * @interface IFieldDescriptorProto - * @property {string|null} [name] FieldDescriptorProto name - * @property {number|null} [number] FieldDescriptorProto number - * @property {google.protobuf.FieldDescriptorProto.Label|null} [label] FieldDescriptorProto label - * @property {google.protobuf.FieldDescriptorProto.Type|null} [type] FieldDescriptorProto type - * @property {string|null} [type_name] FieldDescriptorProto type_name - * @property {string|null} [extendee] FieldDescriptorProto extendee - * @property {string|null} [default_value] FieldDescriptorProto default_value - * @property {number|null} [oneof_index] FieldDescriptorProto oneof_index - * @property {string|null} [json_name] FieldDescriptorProto json_name - * @property {google.protobuf.IFieldOptions|null} [options] FieldDescriptorProto options - */ - - /** - * Constructs a new FieldDescriptorProto. - * @memberof google.protobuf - * @classdesc Represents a FieldDescriptorProto. - * @implements IFieldDescriptorProto - * @constructor - * @param {google.protobuf.IFieldDescriptorProto=} [properties] Properties to set - */ - function FieldDescriptorProto(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * FieldDescriptorProto name. - * @member {string} name - * @memberof google.protobuf.FieldDescriptorProto - * @instance - */ - FieldDescriptorProto.prototype.name = ""; - - /** - * FieldDescriptorProto number. - * @member {number} number - * @memberof google.protobuf.FieldDescriptorProto - * @instance - */ - FieldDescriptorProto.prototype.number = 0; - - /** - * FieldDescriptorProto label. - * @member {google.protobuf.FieldDescriptorProto.Label} label - * @memberof google.protobuf.FieldDescriptorProto - * @instance - */ - FieldDescriptorProto.prototype.label = 1; - - /** - * FieldDescriptorProto type. - * @member {google.protobuf.FieldDescriptorProto.Type} type - * @memberof google.protobuf.FieldDescriptorProto - * @instance - */ - FieldDescriptorProto.prototype.type = 1; - - /** - * FieldDescriptorProto type_name. - * @member {string} type_name - * @memberof google.protobuf.FieldDescriptorProto - * @instance - */ - FieldDescriptorProto.prototype.type_name = ""; - - /** - * FieldDescriptorProto extendee. - * @member {string} extendee - * @memberof google.protobuf.FieldDescriptorProto - * @instance - */ - FieldDescriptorProto.prototype.extendee = ""; - - /** - * FieldDescriptorProto default_value. - * @member {string} default_value - * @memberof google.protobuf.FieldDescriptorProto - * @instance - */ - FieldDescriptorProto.prototype.default_value = ""; + return ics23; + })(); - /** - * FieldDescriptorProto oneof_index. - * @member {number} oneof_index - * @memberof google.protobuf.FieldDescriptorProto - * @instance - */ - FieldDescriptorProto.prototype.oneof_index = 0; + return cosmos; +})(); - /** - * FieldDescriptorProto json_name. - * @member {string} json_name - * @memberof google.protobuf.FieldDescriptorProto - * @instance - */ - FieldDescriptorProto.prototype.json_name = ""; +export const gogoproto = $root.gogoproto = (() => { - /** - * FieldDescriptorProto options. - * @member {google.protobuf.IFieldOptions|null|undefined} options - * @memberof google.protobuf.FieldDescriptorProto - * @instance - */ - FieldDescriptorProto.prototype.options = null; + /** + * Namespace gogoproto. + * @exports gogoproto + * @namespace + */ + const gogoproto = {}; - /** - * Encodes the specified FieldDescriptorProto message. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages. - * @function encode - * @memberof google.protobuf.FieldDescriptorProto - * @static - * @param {google.protobuf.IFieldDescriptorProto} message FieldDescriptorProto message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FieldDescriptorProto.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.extendee != null && Object.hasOwnProperty.call(message, "extendee")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.extendee); - if (message.number != null && Object.hasOwnProperty.call(message, "number")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.number); - if (message.label != null && Object.hasOwnProperty.call(message, "label")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.label); - if (message.type != null && Object.hasOwnProperty.call(message, "type")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.type); - if (message.type_name != null && Object.hasOwnProperty.call(message, "type_name")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.type_name); - if (message.default_value != null && Object.hasOwnProperty.call(message, "default_value")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.default_value); - if (message.options != null && Object.hasOwnProperty.call(message, "options")) - $root.google.protobuf.FieldOptions.encode(message.options, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.oneof_index != null && Object.hasOwnProperty.call(message, "oneof_index")) - writer.uint32(/* id 9, wireType 0 =*/72).int32(message.oneof_index); - if (message.json_name != null && Object.hasOwnProperty.call(message, "json_name")) - writer.uint32(/* id 10, wireType 2 =*/82).string(message.json_name); - return writer; - }; + return gogoproto; +})(); - /** - * Encodes the specified FieldDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.FieldDescriptorProto - * @static - * @param {google.protobuf.IFieldDescriptorProto} message FieldDescriptorProto message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FieldDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; +export const cosmos_proto = $root.cosmos_proto = (() => { - /** - * Decodes a FieldDescriptorProto message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.FieldDescriptorProto - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.FieldDescriptorProto} FieldDescriptorProto - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FieldDescriptorProto.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FieldDescriptorProto(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 3: - message.number = reader.int32(); - break; - case 4: - message.label = reader.int32(); - break; - case 5: - message.type = reader.int32(); - break; - case 6: - message.type_name = reader.string(); - break; - case 2: - message.extendee = reader.string(); - break; - case 7: - message.default_value = reader.string(); - break; - case 9: - message.oneof_index = reader.int32(); - break; - case 10: - message.json_name = reader.string(); - break; - case 8: - message.options = $root.google.protobuf.FieldOptions.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Namespace cosmos_proto. + * @exports cosmos_proto + * @namespace + */ + const cosmos_proto = {}; - /** - * Decodes a FieldDescriptorProto message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.FieldDescriptorProto - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.FieldDescriptorProto} FieldDescriptorProto - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FieldDescriptorProto.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + cosmos_proto.InterfaceDescriptor = (function() { - /** - * Verifies a FieldDescriptorProto message. - * @function verify - * @memberof google.protobuf.FieldDescriptorProto - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - FieldDescriptorProto.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.number != null && message.hasOwnProperty("number")) - if (!$util.isInteger(message.number)) - return "number: integer expected"; - if (message.label != null && message.hasOwnProperty("label")) - switch (message.label) { - default: - return "label: enum value expected"; - case 1: - case 2: - case 3: - break; - } - if (message.type != null && message.hasOwnProperty("type")) - switch (message.type) { - default: - return "type: enum value expected"; - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - case 10: - case 11: - case 12: - case 13: - case 14: - case 15: - case 16: - case 17: - case 18: - break; - } - if (message.type_name != null && message.hasOwnProperty("type_name")) - if (!$util.isString(message.type_name)) - return "type_name: string expected"; - if (message.extendee != null && message.hasOwnProperty("extendee")) - if (!$util.isString(message.extendee)) - return "extendee: string expected"; - if (message.default_value != null && message.hasOwnProperty("default_value")) - if (!$util.isString(message.default_value)) - return "default_value: string expected"; - if (message.oneof_index != null && message.hasOwnProperty("oneof_index")) - if (!$util.isInteger(message.oneof_index)) - return "oneof_index: integer expected"; - if (message.json_name != null && message.hasOwnProperty("json_name")) - if (!$util.isString(message.json_name)) - return "json_name: string expected"; - if (message.options != null && message.hasOwnProperty("options")) { - let error = $root.google.protobuf.FieldOptions.verify(message.options); - if (error) - return "options." + error; - } - return null; - }; + /** + * Properties of an InterfaceDescriptor. + * @memberof cosmos_proto + * @interface IInterfaceDescriptor + * @property {string|null} [name] InterfaceDescriptor name + * @property {string|null} [description] InterfaceDescriptor description + */ - /** - * Creates a FieldDescriptorProto message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.FieldDescriptorProto - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.FieldDescriptorProto} FieldDescriptorProto - */ - FieldDescriptorProto.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.FieldDescriptorProto) - return object; - let message = new $root.google.protobuf.FieldDescriptorProto(); - if (object.name != null) - message.name = String(object.name); - if (object.number != null) - message.number = object.number | 0; - switch (object.label) { - case "LABEL_OPTIONAL": - case 1: - message.label = 1; - break; - case "LABEL_REQUIRED": - case 2: - message.label = 2; - break; - case "LABEL_REPEATED": - case 3: - message.label = 3; - break; - } - switch (object.type) { - case "TYPE_DOUBLE": - case 1: - message.type = 1; - break; - case "TYPE_FLOAT": - case 2: - message.type = 2; - break; - case "TYPE_INT64": - case 3: - message.type = 3; - break; - case "TYPE_UINT64": - case 4: - message.type = 4; - break; - case "TYPE_INT32": - case 5: - message.type = 5; - break; - case "TYPE_FIXED64": - case 6: - message.type = 6; - break; - case "TYPE_FIXED32": - case 7: - message.type = 7; - break; - case "TYPE_BOOL": - case 8: - message.type = 8; - break; - case "TYPE_STRING": - case 9: - message.type = 9; - break; - case "TYPE_GROUP": - case 10: - message.type = 10; - break; - case "TYPE_MESSAGE": - case 11: - message.type = 11; - break; - case "TYPE_BYTES": - case 12: - message.type = 12; - break; - case "TYPE_UINT32": - case 13: - message.type = 13; - break; - case "TYPE_ENUM": - case 14: - message.type = 14; - break; - case "TYPE_SFIXED32": - case 15: - message.type = 15; - break; - case "TYPE_SFIXED64": - case 16: - message.type = 16; + /** + * Constructs a new InterfaceDescriptor. + * @memberof cosmos_proto + * @classdesc Represents an InterfaceDescriptor. + * @implements IInterfaceDescriptor + * @constructor + * @param {cosmos_proto.IInterfaceDescriptor=} [properties] Properties to set + */ + function InterfaceDescriptor(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * InterfaceDescriptor name. + * @member {string} name + * @memberof cosmos_proto.InterfaceDescriptor + * @instance + */ + InterfaceDescriptor.prototype.name = ""; + + /** + * InterfaceDescriptor description. + * @member {string} description + * @memberof cosmos_proto.InterfaceDescriptor + * @instance + */ + InterfaceDescriptor.prototype.description = ""; + + /** + * Encodes the specified InterfaceDescriptor message. Does not implicitly {@link cosmos_proto.InterfaceDescriptor.verify|verify} messages. + * @function encode + * @memberof cosmos_proto.InterfaceDescriptor + * @static + * @param {cosmos_proto.IInterfaceDescriptor} message InterfaceDescriptor message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InterfaceDescriptor.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.description != null && Object.hasOwnProperty.call(message, "description")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.description); + return writer; + }; + + /** + * Encodes the specified InterfaceDescriptor message, length delimited. Does not implicitly {@link cosmos_proto.InterfaceDescriptor.verify|verify} messages. + * @function encodeDelimited + * @memberof cosmos_proto.InterfaceDescriptor + * @static + * @param {cosmos_proto.IInterfaceDescriptor} message InterfaceDescriptor message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InterfaceDescriptor.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an InterfaceDescriptor message from the specified reader or buffer. + * @function decode + * @memberof cosmos_proto.InterfaceDescriptor + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {cosmos_proto.InterfaceDescriptor} InterfaceDescriptor + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InterfaceDescriptor.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.cosmos_proto.InterfaceDescriptor(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); break; - case "TYPE_SINT32": - case 17: - message.type = 17; + case 2: + message.description = reader.string(); break; - case "TYPE_SINT64": - case 18: - message.type = 18; + default: + reader.skipType(tag & 7); break; } - if (object.type_name != null) - message.type_name = String(object.type_name); - if (object.extendee != null) - message.extendee = String(object.extendee); - if (object.default_value != null) - message.default_value = String(object.default_value); - if (object.oneof_index != null) - message.oneof_index = object.oneof_index | 0; - if (object.json_name != null) - message.json_name = String(object.json_name); - if (object.options != null) { - if (typeof object.options !== "object") - throw TypeError(".google.protobuf.FieldDescriptorProto.options: object expected"); - message.options = $root.google.protobuf.FieldOptions.fromObject(object.options); - } - return message; - }; + } + return message; + }; - /** - * Creates a plain object from a FieldDescriptorProto message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.FieldDescriptorProto - * @static - * @param {google.protobuf.FieldDescriptorProto} message FieldDescriptorProto - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - FieldDescriptorProto.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - object.name = ""; - object.extendee = ""; - object.number = 0; - object.label = options.enums === String ? "LABEL_OPTIONAL" : 1; - object.type = options.enums === String ? "TYPE_DOUBLE" : 1; - object.type_name = ""; - object.default_value = ""; - object.options = null; - object.oneof_index = 0; - object.json_name = ""; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.extendee != null && message.hasOwnProperty("extendee")) - object.extendee = message.extendee; - if (message.number != null && message.hasOwnProperty("number")) - object.number = message.number; - if (message.label != null && message.hasOwnProperty("label")) - object.label = options.enums === String ? $root.google.protobuf.FieldDescriptorProto.Label[message.label] : message.label; - if (message.type != null && message.hasOwnProperty("type")) - object.type = options.enums === String ? $root.google.protobuf.FieldDescriptorProto.Type[message.type] : message.type; - if (message.type_name != null && message.hasOwnProperty("type_name")) - object.type_name = message.type_name; - if (message.default_value != null && message.hasOwnProperty("default_value")) - object.default_value = message.default_value; - if (message.options != null && message.hasOwnProperty("options")) - object.options = $root.google.protobuf.FieldOptions.toObject(message.options, options); - if (message.oneof_index != null && message.hasOwnProperty("oneof_index")) - object.oneof_index = message.oneof_index; - if (message.json_name != null && message.hasOwnProperty("json_name")) - object.json_name = message.json_name; + /** + * Decodes an InterfaceDescriptor message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof cosmos_proto.InterfaceDescriptor + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {cosmos_proto.InterfaceDescriptor} InterfaceDescriptor + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InterfaceDescriptor.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an InterfaceDescriptor message. + * @function verify + * @memberof cosmos_proto.InterfaceDescriptor + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + InterfaceDescriptor.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.description != null && message.hasOwnProperty("description")) + if (!$util.isString(message.description)) + return "description: string expected"; + return null; + }; + + /** + * Creates an InterfaceDescriptor message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof cosmos_proto.InterfaceDescriptor + * @static + * @param {Object.} object Plain object + * @returns {cosmos_proto.InterfaceDescriptor} InterfaceDescriptor + */ + InterfaceDescriptor.fromObject = function fromObject(object) { + if (object instanceof $root.cosmos_proto.InterfaceDescriptor) return object; - }; + let message = new $root.cosmos_proto.InterfaceDescriptor(); + if (object.name != null) + message.name = String(object.name); + if (object.description != null) + message.description = String(object.description); + return message; + }; - /** - * Converts this FieldDescriptorProto to JSON. - * @function toJSON - * @memberof google.protobuf.FieldDescriptorProto - * @instance - * @returns {Object.} JSON object - */ - FieldDescriptorProto.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from an InterfaceDescriptor message. Also converts values to other types if specified. + * @function toObject + * @memberof cosmos_proto.InterfaceDescriptor + * @static + * @param {cosmos_proto.InterfaceDescriptor} message InterfaceDescriptor + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + InterfaceDescriptor.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + object.name = ""; + object.description = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.description != null && message.hasOwnProperty("description")) + object.description = message.description; + return object; + }; - /** - * Type enum. - * @name google.protobuf.FieldDescriptorProto.Type - * @enum {number} - * @property {number} TYPE_DOUBLE=1 TYPE_DOUBLE value - * @property {number} TYPE_FLOAT=2 TYPE_FLOAT value - * @property {number} TYPE_INT64=3 TYPE_INT64 value - * @property {number} TYPE_UINT64=4 TYPE_UINT64 value - * @property {number} TYPE_INT32=5 TYPE_INT32 value - * @property {number} TYPE_FIXED64=6 TYPE_FIXED64 value - * @property {number} TYPE_FIXED32=7 TYPE_FIXED32 value - * @property {number} TYPE_BOOL=8 TYPE_BOOL value - * @property {number} TYPE_STRING=9 TYPE_STRING value - * @property {number} TYPE_GROUP=10 TYPE_GROUP value - * @property {number} TYPE_MESSAGE=11 TYPE_MESSAGE value - * @property {number} TYPE_BYTES=12 TYPE_BYTES value - * @property {number} TYPE_UINT32=13 TYPE_UINT32 value - * @property {number} TYPE_ENUM=14 TYPE_ENUM value - * @property {number} TYPE_SFIXED32=15 TYPE_SFIXED32 value - * @property {number} TYPE_SFIXED64=16 TYPE_SFIXED64 value - * @property {number} TYPE_SINT32=17 TYPE_SINT32 value - * @property {number} TYPE_SINT64=18 TYPE_SINT64 value - */ - FieldDescriptorProto.Type = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[1] = "TYPE_DOUBLE"] = 1; - values[valuesById[2] = "TYPE_FLOAT"] = 2; - values[valuesById[3] = "TYPE_INT64"] = 3; - values[valuesById[4] = "TYPE_UINT64"] = 4; - values[valuesById[5] = "TYPE_INT32"] = 5; - values[valuesById[6] = "TYPE_FIXED64"] = 6; - values[valuesById[7] = "TYPE_FIXED32"] = 7; - values[valuesById[8] = "TYPE_BOOL"] = 8; - values[valuesById[9] = "TYPE_STRING"] = 9; - values[valuesById[10] = "TYPE_GROUP"] = 10; - values[valuesById[11] = "TYPE_MESSAGE"] = 11; - values[valuesById[12] = "TYPE_BYTES"] = 12; - values[valuesById[13] = "TYPE_UINT32"] = 13; - values[valuesById[14] = "TYPE_ENUM"] = 14; - values[valuesById[15] = "TYPE_SFIXED32"] = 15; - values[valuesById[16] = "TYPE_SFIXED64"] = 16; - values[valuesById[17] = "TYPE_SINT32"] = 17; - values[valuesById[18] = "TYPE_SINT64"] = 18; - return values; - })(); + /** + * Converts this InterfaceDescriptor to JSON. + * @function toJSON + * @memberof cosmos_proto.InterfaceDescriptor + * @instance + * @returns {Object.} JSON object + */ + InterfaceDescriptor.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Label enum. - * @name google.protobuf.FieldDescriptorProto.Label - * @enum {number} - * @property {number} LABEL_OPTIONAL=1 LABEL_OPTIONAL value - * @property {number} LABEL_REQUIRED=2 LABEL_REQUIRED value - * @property {number} LABEL_REPEATED=3 LABEL_REPEATED value - */ - FieldDescriptorProto.Label = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[1] = "LABEL_OPTIONAL"] = 1; - values[valuesById[2] = "LABEL_REQUIRED"] = 2; - values[valuesById[3] = "LABEL_REPEATED"] = 3; - return values; - })(); + return InterfaceDescriptor; + })(); - return FieldDescriptorProto; - })(); + cosmos_proto.ScalarDescriptor = (function() { - protobuf.OneofDescriptorProto = (function() { + /** + * Properties of a ScalarDescriptor. + * @memberof cosmos_proto + * @interface IScalarDescriptor + * @property {string|null} [name] ScalarDescriptor name + * @property {string|null} [description] ScalarDescriptor description + * @property {Array.|null} [field_type] ScalarDescriptor field_type + */ - /** - * Properties of an OneofDescriptorProto. - * @memberof google.protobuf - * @interface IOneofDescriptorProto - * @property {string|null} [name] OneofDescriptorProto name - * @property {google.protobuf.IOneofOptions|null} [options] OneofDescriptorProto options - */ + /** + * Constructs a new ScalarDescriptor. + * @memberof cosmos_proto + * @classdesc Represents a ScalarDescriptor. + * @implements IScalarDescriptor + * @constructor + * @param {cosmos_proto.IScalarDescriptor=} [properties] Properties to set + */ + function ScalarDescriptor(properties) { + this.field_type = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Constructs a new OneofDescriptorProto. - * @memberof google.protobuf - * @classdesc Represents an OneofDescriptorProto. - * @implements IOneofDescriptorProto - * @constructor - * @param {google.protobuf.IOneofDescriptorProto=} [properties] Properties to set - */ - function OneofDescriptorProto(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * ScalarDescriptor name. + * @member {string} name + * @memberof cosmos_proto.ScalarDescriptor + * @instance + */ + ScalarDescriptor.prototype.name = ""; - /** - * OneofDescriptorProto name. - * @member {string} name - * @memberof google.protobuf.OneofDescriptorProto - * @instance - */ - OneofDescriptorProto.prototype.name = ""; + /** + * ScalarDescriptor description. + * @member {string} description + * @memberof cosmos_proto.ScalarDescriptor + * @instance + */ + ScalarDescriptor.prototype.description = ""; - /** - * OneofDescriptorProto options. - * @member {google.protobuf.IOneofOptions|null|undefined} options - * @memberof google.protobuf.OneofDescriptorProto - * @instance - */ - OneofDescriptorProto.prototype.options = null; + /** + * ScalarDescriptor field_type. + * @member {Array.} field_type + * @memberof cosmos_proto.ScalarDescriptor + * @instance + */ + ScalarDescriptor.prototype.field_type = $util.emptyArray; - /** - * Encodes the specified OneofDescriptorProto message. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages. - * @function encode - * @memberof google.protobuf.OneofDescriptorProto - * @static - * @param {google.protobuf.IOneofDescriptorProto} message OneofDescriptorProto message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - OneofDescriptorProto.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.options != null && Object.hasOwnProperty.call(message, "options")) - $root.google.protobuf.OneofOptions.encode(message.options, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; + /** + * Encodes the specified ScalarDescriptor message. Does not implicitly {@link cosmos_proto.ScalarDescriptor.verify|verify} messages. + * @function encode + * @memberof cosmos_proto.ScalarDescriptor + * @static + * @param {cosmos_proto.IScalarDescriptor} message ScalarDescriptor message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ScalarDescriptor.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.description != null && Object.hasOwnProperty.call(message, "description")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.description); + if (message.field_type != null && message.field_type.length) { + writer.uint32(/* id 3, wireType 2 =*/26).fork(); + for (let i = 0; i < message.field_type.length; ++i) + writer.int32(message.field_type[i]); + writer.ldelim(); + } + return writer; + }; - /** - * Encodes the specified OneofDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.OneofDescriptorProto - * @static - * @param {google.protobuf.IOneofDescriptorProto} message OneofDescriptorProto message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - OneofDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified ScalarDescriptor message, length delimited. Does not implicitly {@link cosmos_proto.ScalarDescriptor.verify|verify} messages. + * @function encodeDelimited + * @memberof cosmos_proto.ScalarDescriptor + * @static + * @param {cosmos_proto.IScalarDescriptor} message ScalarDescriptor message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ScalarDescriptor.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes an OneofDescriptorProto message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.OneofDescriptorProto - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.OneofDescriptorProto} OneofDescriptorProto - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - OneofDescriptorProto.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.OneofDescriptorProto(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { + /** + * Decodes a ScalarDescriptor message from the specified reader or buffer. + * @function decode + * @memberof cosmos_proto.ScalarDescriptor + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {cosmos_proto.ScalarDescriptor} ScalarDescriptor + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ScalarDescriptor.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.cosmos_proto.ScalarDescriptor(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.description = reader.string(); + break; + case 3: + if (!(message.field_type && message.field_type.length)) + message.field_type = []; + if ((tag & 7) === 2) { + let end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.field_type.push(reader.int32()); + } else + message.field_type.push(reader.int32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ScalarDescriptor message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof cosmos_proto.ScalarDescriptor + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {cosmos_proto.ScalarDescriptor} ScalarDescriptor + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ScalarDescriptor.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ScalarDescriptor message. + * @function verify + * @memberof cosmos_proto.ScalarDescriptor + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ScalarDescriptor.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.description != null && message.hasOwnProperty("description")) + if (!$util.isString(message.description)) + return "description: string expected"; + if (message.field_type != null && message.hasOwnProperty("field_type")) { + if (!Array.isArray(message.field_type)) + return "field_type: array expected"; + for (let i = 0; i < message.field_type.length; ++i) + switch (message.field_type[i]) { + default: + return "field_type: enum value[] expected"; + case 0: case 1: - message.name = reader.string(); - break; case 2: - message.options = $root.google.protobuf.OneofOptions.decode(reader, reader.uint32()); break; + } + } + return null; + }; + + /** + * Creates a ScalarDescriptor message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof cosmos_proto.ScalarDescriptor + * @static + * @param {Object.} object Plain object + * @returns {cosmos_proto.ScalarDescriptor} ScalarDescriptor + */ + ScalarDescriptor.fromObject = function fromObject(object) { + if (object instanceof $root.cosmos_proto.ScalarDescriptor) + return object; + let message = new $root.cosmos_proto.ScalarDescriptor(); + if (object.name != null) + message.name = String(object.name); + if (object.description != null) + message.description = String(object.description); + if (object.field_type) { + if (!Array.isArray(object.field_type)) + throw TypeError(".cosmos_proto.ScalarDescriptor.field_type: array expected"); + message.field_type = []; + for (let i = 0; i < object.field_type.length; ++i) + switch (object.field_type[i]) { default: - reader.skipType(tag & 7); + case "SCALAR_TYPE_UNSPECIFIED": + case 0: + message.field_type[i] = 0; + break; + case "SCALAR_TYPE_STRING": + case 1: + message.field_type[i] = 1; + break; + case "SCALAR_TYPE_BYTES": + case 2: + message.field_type[i] = 2; break; } - } - return message; - }; + } + return message; + }; - /** - * Decodes an OneofDescriptorProto message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.OneofDescriptorProto - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.OneofDescriptorProto} OneofDescriptorProto - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - OneofDescriptorProto.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Creates a plain object from a ScalarDescriptor message. Also converts values to other types if specified. + * @function toObject + * @memberof cosmos_proto.ScalarDescriptor + * @static + * @param {cosmos_proto.ScalarDescriptor} message ScalarDescriptor + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ScalarDescriptor.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) + object.field_type = []; + if (options.defaults) { + object.name = ""; + object.description = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.description != null && message.hasOwnProperty("description")) + object.description = message.description; + if (message.field_type && message.field_type.length) { + object.field_type = []; + for (let j = 0; j < message.field_type.length; ++j) + object.field_type[j] = options.enums === String ? $root.cosmos_proto.ScalarType[message.field_type[j]] : message.field_type[j]; + } + return object; + }; - /** - * Verifies an OneofDescriptorProto message. - * @function verify - * @memberof google.protobuf.OneofDescriptorProto - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - OneofDescriptorProto.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.options != null && message.hasOwnProperty("options")) { - let error = $root.google.protobuf.OneofOptions.verify(message.options); - if (error) - return "options." + error; - } - return null; - }; + /** + * Converts this ScalarDescriptor to JSON. + * @function toJSON + * @memberof cosmos_proto.ScalarDescriptor + * @instance + * @returns {Object.} JSON object + */ + ScalarDescriptor.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ScalarDescriptor; + })(); + + /** + * ScalarType enum. + * @name cosmos_proto.ScalarType + * @enum {number} + * @property {number} SCALAR_TYPE_UNSPECIFIED=0 SCALAR_TYPE_UNSPECIFIED value + * @property {number} SCALAR_TYPE_STRING=1 SCALAR_TYPE_STRING value + * @property {number} SCALAR_TYPE_BYTES=2 SCALAR_TYPE_BYTES value + */ + cosmos_proto.ScalarType = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "SCALAR_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "SCALAR_TYPE_STRING"] = 1; + values[valuesById[2] = "SCALAR_TYPE_BYTES"] = 2; + return values; + })(); - /** - * Creates an OneofDescriptorProto message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.OneofDescriptorProto - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.OneofDescriptorProto} OneofDescriptorProto - */ - OneofDescriptorProto.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.OneofDescriptorProto) - return object; - let message = new $root.google.protobuf.OneofDescriptorProto(); - if (object.name != null) - message.name = String(object.name); - if (object.options != null) { - if (typeof object.options !== "object") - throw TypeError(".google.protobuf.OneofDescriptorProto.options: object expected"); - message.options = $root.google.protobuf.OneofOptions.fromObject(object.options); - } - return message; - }; + return cosmos_proto; +})(); - /** - * Creates a plain object from an OneofDescriptorProto message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.OneofDescriptorProto - * @static - * @param {google.protobuf.OneofDescriptorProto} message OneofDescriptorProto - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - OneofDescriptorProto.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - object.name = ""; - object.options = null; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.options != null && message.hasOwnProperty("options")) - object.options = $root.google.protobuf.OneofOptions.toObject(message.options, options); - return object; - }; +export const amino = $root.amino = (() => { - /** - * Converts this OneofDescriptorProto to JSON. - * @function toJSON - * @memberof google.protobuf.OneofDescriptorProto - * @instance - * @returns {Object.} JSON object - */ - OneofDescriptorProto.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Namespace amino. + * @exports amino + * @namespace + */ + const amino = {}; - return OneofDescriptorProto; - })(); + return amino; +})(); - protobuf.EnumDescriptorProto = (function() { +export const google = $root.google = (() => { + + /** + * Namespace google. + * @exports google + * @namespace + */ + const google = {}; + + google.protobuf = (function() { + + /** + * Namespace protobuf. + * @memberof google + * @namespace + */ + const protobuf = {}; + + protobuf.FileDescriptorSet = (function() { /** - * Properties of an EnumDescriptorProto. + * Properties of a FileDescriptorSet. * @memberof google.protobuf - * @interface IEnumDescriptorProto - * @property {string|null} [name] EnumDescriptorProto name - * @property {Array.|null} [value] EnumDescriptorProto value - * @property {google.protobuf.IEnumOptions|null} [options] EnumDescriptorProto options + * @interface IFileDescriptorSet + * @property {Array.|null} [file] FileDescriptorSet file */ /** - * Constructs a new EnumDescriptorProto. + * Constructs a new FileDescriptorSet. * @memberof google.protobuf - * @classdesc Represents an EnumDescriptorProto. - * @implements IEnumDescriptorProto + * @classdesc Represents a FileDescriptorSet. + * @implements IFileDescriptorSet * @constructor - * @param {google.protobuf.IEnumDescriptorProto=} [properties] Properties to set + * @param {google.protobuf.IFileDescriptorSet=} [properties] Properties to set */ - function EnumDescriptorProto(properties) { - this.value = []; + function FileDescriptorSet(properties) { + this.file = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -10014,92 +15886,66 @@ export const google = $root.google = (() => { } /** - * EnumDescriptorProto name. - * @member {string} name - * @memberof google.protobuf.EnumDescriptorProto - * @instance - */ - EnumDescriptorProto.prototype.name = ""; - - /** - * EnumDescriptorProto value. - * @member {Array.} value - * @memberof google.protobuf.EnumDescriptorProto - * @instance - */ - EnumDescriptorProto.prototype.value = $util.emptyArray; - - /** - * EnumDescriptorProto options. - * @member {google.protobuf.IEnumOptions|null|undefined} options - * @memberof google.protobuf.EnumDescriptorProto + * FileDescriptorSet file. + * @member {Array.} file + * @memberof google.protobuf.FileDescriptorSet * @instance */ - EnumDescriptorProto.prototype.options = null; + FileDescriptorSet.prototype.file = $util.emptyArray; /** - * Encodes the specified EnumDescriptorProto message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages. + * Encodes the specified FileDescriptorSet message. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages. * @function encode - * @memberof google.protobuf.EnumDescriptorProto + * @memberof google.protobuf.FileDescriptorSet * @static - * @param {google.protobuf.IEnumDescriptorProto} message EnumDescriptorProto message or plain object to encode + * @param {google.protobuf.IFileDescriptorSet} message FileDescriptorSet message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EnumDescriptorProto.encode = function encode(message, writer) { + FileDescriptorSet.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.value != null && message.value.length) - for (let i = 0; i < message.value.length; ++i) - $root.google.protobuf.EnumValueDescriptorProto.encode(message.value[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.options != null && Object.hasOwnProperty.call(message, "options")) - $root.google.protobuf.EnumOptions.encode(message.options, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.file != null && message.file.length) + for (let i = 0; i < message.file.length; ++i) + $root.google.protobuf.FileDescriptorProto.encode(message.file[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified EnumDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages. + * Encodes the specified FileDescriptorSet message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages. * @function encodeDelimited - * @memberof google.protobuf.EnumDescriptorProto + * @memberof google.protobuf.FileDescriptorSet * @static - * @param {google.protobuf.IEnumDescriptorProto} message EnumDescriptorProto message or plain object to encode + * @param {google.protobuf.IFileDescriptorSet} message FileDescriptorSet message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EnumDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { + FileDescriptorSet.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an EnumDescriptorProto message from the specified reader or buffer. + * Decodes a FileDescriptorSet message from the specified reader or buffer. * @function decode - * @memberof google.protobuf.EnumDescriptorProto + * @memberof google.protobuf.FileDescriptorSet * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.EnumDescriptorProto} EnumDescriptorProto + * @returns {google.protobuf.FileDescriptorSet} FileDescriptorSet * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EnumDescriptorProto.decode = function decode(reader, length) { + FileDescriptorSet.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.EnumDescriptorProto(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FileDescriptorSet(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); - break; - case 2: - if (!(message.value && message.value.length)) - message.value = []; - message.value.push($root.google.protobuf.EnumValueDescriptorProto.decode(reader, reader.uint32())); - break; - case 3: - message.options = $root.google.protobuf.EnumOptions.decode(reader, reader.uint32()); + if (!(message.file && message.file.length)) + message.file = []; + message.file.push($root.google.protobuf.FileDescriptorProto.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -10110,149 +15956,142 @@ export const google = $root.google = (() => { }; /** - * Decodes an EnumDescriptorProto message from the specified reader or buffer, length delimited. + * Decodes a FileDescriptorSet message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.protobuf.EnumDescriptorProto + * @memberof google.protobuf.FileDescriptorSet * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.EnumDescriptorProto} EnumDescriptorProto + * @returns {google.protobuf.FileDescriptorSet} FileDescriptorSet * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EnumDescriptorProto.decodeDelimited = function decodeDelimited(reader) { + FileDescriptorSet.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an EnumDescriptorProto message. + * Verifies a FileDescriptorSet message. * @function verify - * @memberof google.protobuf.EnumDescriptorProto + * @memberof google.protobuf.FileDescriptorSet * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - EnumDescriptorProto.verify = function verify(message) { + FileDescriptorSet.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.value != null && message.hasOwnProperty("value")) { - if (!Array.isArray(message.value)) - return "value: array expected"; - for (let i = 0; i < message.value.length; ++i) { - let error = $root.google.protobuf.EnumValueDescriptorProto.verify(message.value[i]); + if (message.file != null && message.hasOwnProperty("file")) { + if (!Array.isArray(message.file)) + return "file: array expected"; + for (let i = 0; i < message.file.length; ++i) { + let error = $root.google.protobuf.FileDescriptorProto.verify(message.file[i]); if (error) - return "value." + error; + return "file." + error; } } - if (message.options != null && message.hasOwnProperty("options")) { - let error = $root.google.protobuf.EnumOptions.verify(message.options); - if (error) - return "options." + error; - } return null; }; /** - * Creates an EnumDescriptorProto message from a plain object. Also converts values to their respective internal types. + * Creates a FileDescriptorSet message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.protobuf.EnumDescriptorProto + * @memberof google.protobuf.FileDescriptorSet * @static * @param {Object.} object Plain object - * @returns {google.protobuf.EnumDescriptorProto} EnumDescriptorProto + * @returns {google.protobuf.FileDescriptorSet} FileDescriptorSet */ - EnumDescriptorProto.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.EnumDescriptorProto) + FileDescriptorSet.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.FileDescriptorSet) return object; - let message = new $root.google.protobuf.EnumDescriptorProto(); - if (object.name != null) - message.name = String(object.name); - if (object.value) { - if (!Array.isArray(object.value)) - throw TypeError(".google.protobuf.EnumDescriptorProto.value: array expected"); - message.value = []; - for (let i = 0; i < object.value.length; ++i) { - if (typeof object.value[i] !== "object") - throw TypeError(".google.protobuf.EnumDescriptorProto.value: object expected"); - message.value[i] = $root.google.protobuf.EnumValueDescriptorProto.fromObject(object.value[i]); + let message = new $root.google.protobuf.FileDescriptorSet(); + if (object.file) { + if (!Array.isArray(object.file)) + throw TypeError(".google.protobuf.FileDescriptorSet.file: array expected"); + message.file = []; + for (let i = 0; i < object.file.length; ++i) { + if (typeof object.file[i] !== "object") + throw TypeError(".google.protobuf.FileDescriptorSet.file: object expected"); + message.file[i] = $root.google.protobuf.FileDescriptorProto.fromObject(object.file[i]); } } - if (object.options != null) { - if (typeof object.options !== "object") - throw TypeError(".google.protobuf.EnumDescriptorProto.options: object expected"); - message.options = $root.google.protobuf.EnumOptions.fromObject(object.options); - } return message; }; /** - * Creates a plain object from an EnumDescriptorProto message. Also converts values to other types if specified. + * Creates a plain object from a FileDescriptorSet message. Also converts values to other types if specified. * @function toObject - * @memberof google.protobuf.EnumDescriptorProto + * @memberof google.protobuf.FileDescriptorSet * @static - * @param {google.protobuf.EnumDescriptorProto} message EnumDescriptorProto + * @param {google.protobuf.FileDescriptorSet} message FileDescriptorSet * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - EnumDescriptorProto.toObject = function toObject(message, options) { + FileDescriptorSet.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) - object.value = []; - if (options.defaults) { - object.name = ""; - object.options = null; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.value && message.value.length) { - object.value = []; - for (let j = 0; j < message.value.length; ++j) - object.value[j] = $root.google.protobuf.EnumValueDescriptorProto.toObject(message.value[j], options); + object.file = []; + if (message.file && message.file.length) { + object.file = []; + for (let j = 0; j < message.file.length; ++j) + object.file[j] = $root.google.protobuf.FileDescriptorProto.toObject(message.file[j], options); } - if (message.options != null && message.hasOwnProperty("options")) - object.options = $root.google.protobuf.EnumOptions.toObject(message.options, options); return object; }; /** - * Converts this EnumDescriptorProto to JSON. + * Converts this FileDescriptorSet to JSON. * @function toJSON - * @memberof google.protobuf.EnumDescriptorProto + * @memberof google.protobuf.FileDescriptorSet * @instance * @returns {Object.} JSON object */ - EnumDescriptorProto.prototype.toJSON = function toJSON() { + FileDescriptorSet.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return EnumDescriptorProto; + return FileDescriptorSet; })(); - protobuf.EnumValueDescriptorProto = (function() { + protobuf.FileDescriptorProto = (function() { /** - * Properties of an EnumValueDescriptorProto. + * Properties of a FileDescriptorProto. * @memberof google.protobuf - * @interface IEnumValueDescriptorProto - * @property {string|null} [name] EnumValueDescriptorProto name - * @property {number|null} [number] EnumValueDescriptorProto number - * @property {google.protobuf.IEnumValueOptions|null} [options] EnumValueDescriptorProto options + * @interface IFileDescriptorProto + * @property {string|null} [name] FileDescriptorProto name + * @property {string|null} ["package"] FileDescriptorProto package + * @property {Array.|null} [dependency] FileDescriptorProto dependency + * @property {Array.|null} [public_dependency] FileDescriptorProto public_dependency + * @property {Array.|null} [weak_dependency] FileDescriptorProto weak_dependency + * @property {Array.|null} [message_type] FileDescriptorProto message_type + * @property {Array.|null} [enum_type] FileDescriptorProto enum_type + * @property {Array.|null} [service] FileDescriptorProto service + * @property {Array.|null} [extension] FileDescriptorProto extension + * @property {google.protobuf.IFileOptions|null} [options] FileDescriptorProto options + * @property {google.protobuf.ISourceCodeInfo|null} [source_code_info] FileDescriptorProto source_code_info + * @property {string|null} [syntax] FileDescriptorProto syntax */ /** - * Constructs a new EnumValueDescriptorProto. + * Constructs a new FileDescriptorProto. * @memberof google.protobuf - * @classdesc Represents an EnumValueDescriptorProto. - * @implements IEnumValueDescriptorProto + * @classdesc Represents a FileDescriptorProto. + * @implements IFileDescriptorProto * @constructor - * @param {google.protobuf.IEnumValueDescriptorProto=} [properties] Properties to set + * @param {google.protobuf.IFileDescriptorProto=} [properties] Properties to set */ - function EnumValueDescriptorProto(properties) { + function FileDescriptorProto(properties) { + this.dependency = []; + this.public_dependency = []; + this.weak_dependency = []; + this.message_type = []; + this.enum_type = []; + this.service = []; + this.extension = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -10260,305 +16099,175 @@ export const google = $root.google = (() => { } /** - * EnumValueDescriptorProto name. + * FileDescriptorProto name. * @member {string} name - * @memberof google.protobuf.EnumValueDescriptorProto + * @memberof google.protobuf.FileDescriptorProto * @instance */ - EnumValueDescriptorProto.prototype.name = ""; + FileDescriptorProto.prototype.name = ""; /** - * EnumValueDescriptorProto number. - * @member {number} number - * @memberof google.protobuf.EnumValueDescriptorProto + * FileDescriptorProto package. + * @member {string} package + * @memberof google.protobuf.FileDescriptorProto * @instance */ - EnumValueDescriptorProto.prototype.number = 0; + FileDescriptorProto.prototype["package"] = ""; /** - * EnumValueDescriptorProto options. - * @member {google.protobuf.IEnumValueOptions|null|undefined} options - * @memberof google.protobuf.EnumValueDescriptorProto + * FileDescriptorProto dependency. + * @member {Array.} dependency + * @memberof google.protobuf.FileDescriptorProto * @instance */ - EnumValueDescriptorProto.prototype.options = null; - - /** - * Encodes the specified EnumValueDescriptorProto message. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages. - * @function encode - * @memberof google.protobuf.EnumValueDescriptorProto - * @static - * @param {google.protobuf.IEnumValueDescriptorProto} message EnumValueDescriptorProto message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EnumValueDescriptorProto.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.number != null && Object.hasOwnProperty.call(message, "number")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.number); - if (message.options != null && Object.hasOwnProperty.call(message, "options")) - $root.google.protobuf.EnumValueOptions.encode(message.options, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified EnumValueDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.EnumValueDescriptorProto - * @static - * @param {google.protobuf.IEnumValueDescriptorProto} message EnumValueDescriptorProto message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EnumValueDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an EnumValueDescriptorProto message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.EnumValueDescriptorProto - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.EnumValueDescriptorProto} EnumValueDescriptorProto - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EnumValueDescriptorProto.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.EnumValueDescriptorProto(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.number = reader.int32(); - break; - case 3: - message.options = $root.google.protobuf.EnumValueOptions.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an EnumValueDescriptorProto message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.EnumValueDescriptorProto - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.EnumValueDescriptorProto} EnumValueDescriptorProto - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EnumValueDescriptorProto.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + FileDescriptorProto.prototype.dependency = $util.emptyArray; /** - * Verifies an EnumValueDescriptorProto message. - * @function verify - * @memberof google.protobuf.EnumValueDescriptorProto - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * FileDescriptorProto public_dependency. + * @member {Array.} public_dependency + * @memberof google.protobuf.FileDescriptorProto + * @instance */ - EnumValueDescriptorProto.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.number != null && message.hasOwnProperty("number")) - if (!$util.isInteger(message.number)) - return "number: integer expected"; - if (message.options != null && message.hasOwnProperty("options")) { - let error = $root.google.protobuf.EnumValueOptions.verify(message.options); - if (error) - return "options." + error; - } - return null; - }; + FileDescriptorProto.prototype.public_dependency = $util.emptyArray; /** - * Creates an EnumValueDescriptorProto message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.EnumValueDescriptorProto - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.EnumValueDescriptorProto} EnumValueDescriptorProto + * FileDescriptorProto weak_dependency. + * @member {Array.} weak_dependency + * @memberof google.protobuf.FileDescriptorProto + * @instance */ - EnumValueDescriptorProto.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.EnumValueDescriptorProto) - return object; - let message = new $root.google.protobuf.EnumValueDescriptorProto(); - if (object.name != null) - message.name = String(object.name); - if (object.number != null) - message.number = object.number | 0; - if (object.options != null) { - if (typeof object.options !== "object") - throw TypeError(".google.protobuf.EnumValueDescriptorProto.options: object expected"); - message.options = $root.google.protobuf.EnumValueOptions.fromObject(object.options); - } - return message; - }; + FileDescriptorProto.prototype.weak_dependency = $util.emptyArray; /** - * Creates a plain object from an EnumValueDescriptorProto message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.EnumValueDescriptorProto - * @static - * @param {google.protobuf.EnumValueDescriptorProto} message EnumValueDescriptorProto - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * FileDescriptorProto message_type. + * @member {Array.} message_type + * @memberof google.protobuf.FileDescriptorProto + * @instance */ - EnumValueDescriptorProto.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - object.name = ""; - object.number = 0; - object.options = null; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.number != null && message.hasOwnProperty("number")) - object.number = message.number; - if (message.options != null && message.hasOwnProperty("options")) - object.options = $root.google.protobuf.EnumValueOptions.toObject(message.options, options); - return object; - }; + FileDescriptorProto.prototype.message_type = $util.emptyArray; - /** - * Converts this EnumValueDescriptorProto to JSON. - * @function toJSON - * @memberof google.protobuf.EnumValueDescriptorProto + /** + * FileDescriptorProto enum_type. + * @member {Array.} enum_type + * @memberof google.protobuf.FileDescriptorProto * @instance - * @returns {Object.} JSON object */ - EnumValueDescriptorProto.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return EnumValueDescriptorProto; - })(); - - protobuf.ServiceDescriptorProto = (function() { + FileDescriptorProto.prototype.enum_type = $util.emptyArray; /** - * Properties of a ServiceDescriptorProto. - * @memberof google.protobuf - * @interface IServiceDescriptorProto - * @property {string|null} [name] ServiceDescriptorProto name - * @property {Array.|null} [method] ServiceDescriptorProto method - * @property {google.protobuf.IServiceOptions|null} [options] ServiceDescriptorProto options + * FileDescriptorProto service. + * @member {Array.} service + * @memberof google.protobuf.FileDescriptorProto + * @instance */ + FileDescriptorProto.prototype.service = $util.emptyArray; /** - * Constructs a new ServiceDescriptorProto. - * @memberof google.protobuf - * @classdesc Represents a ServiceDescriptorProto. - * @implements IServiceDescriptorProto - * @constructor - * @param {google.protobuf.IServiceDescriptorProto=} [properties] Properties to set + * FileDescriptorProto extension. + * @member {Array.} extension + * @memberof google.protobuf.FileDescriptorProto + * @instance */ - function ServiceDescriptorProto(properties) { - this.method = []; - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + FileDescriptorProto.prototype.extension = $util.emptyArray; /** - * ServiceDescriptorProto name. - * @member {string} name - * @memberof google.protobuf.ServiceDescriptorProto + * FileDescriptorProto options. + * @member {google.protobuf.IFileOptions|null|undefined} options + * @memberof google.protobuf.FileDescriptorProto * @instance */ - ServiceDescriptorProto.prototype.name = ""; + FileDescriptorProto.prototype.options = null; /** - * ServiceDescriptorProto method. - * @member {Array.} method - * @memberof google.protobuf.ServiceDescriptorProto + * FileDescriptorProto source_code_info. + * @member {google.protobuf.ISourceCodeInfo|null|undefined} source_code_info + * @memberof google.protobuf.FileDescriptorProto * @instance */ - ServiceDescriptorProto.prototype.method = $util.emptyArray; + FileDescriptorProto.prototype.source_code_info = null; /** - * ServiceDescriptorProto options. - * @member {google.protobuf.IServiceOptions|null|undefined} options - * @memberof google.protobuf.ServiceDescriptorProto + * FileDescriptorProto syntax. + * @member {string} syntax + * @memberof google.protobuf.FileDescriptorProto * @instance */ - ServiceDescriptorProto.prototype.options = null; + FileDescriptorProto.prototype.syntax = ""; /** - * Encodes the specified ServiceDescriptorProto message. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages. + * Encodes the specified FileDescriptorProto message. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages. * @function encode - * @memberof google.protobuf.ServiceDescriptorProto + * @memberof google.protobuf.FileDescriptorProto * @static - * @param {google.protobuf.IServiceDescriptorProto} message ServiceDescriptorProto message or plain object to encode + * @param {google.protobuf.IFileDescriptorProto} message FileDescriptorProto message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ServiceDescriptorProto.encode = function encode(message, writer) { + FileDescriptorProto.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.method != null && message.method.length) - for (let i = 0; i < message.method.length; ++i) - $root.google.protobuf.MethodDescriptorProto.encode(message.method[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message["package"] != null && Object.hasOwnProperty.call(message, "package")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message["package"]); + if (message.dependency != null && message.dependency.length) + for (let i = 0; i < message.dependency.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.dependency[i]); + if (message.message_type != null && message.message_type.length) + for (let i = 0; i < message.message_type.length; ++i) + $root.google.protobuf.DescriptorProto.encode(message.message_type[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.enum_type != null && message.enum_type.length) + for (let i = 0; i < message.enum_type.length; ++i) + $root.google.protobuf.EnumDescriptorProto.encode(message.enum_type[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.service != null && message.service.length) + for (let i = 0; i < message.service.length; ++i) + $root.google.protobuf.ServiceDescriptorProto.encode(message.service[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.extension != null && message.extension.length) + for (let i = 0; i < message.extension.length; ++i) + $root.google.protobuf.FieldDescriptorProto.encode(message.extension[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); if (message.options != null && Object.hasOwnProperty.call(message, "options")) - $root.google.protobuf.ServiceOptions.encode(message.options, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + $root.google.protobuf.FileOptions.encode(message.options, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.source_code_info != null && Object.hasOwnProperty.call(message, "source_code_info")) + $root.google.protobuf.SourceCodeInfo.encode(message.source_code_info, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.public_dependency != null && message.public_dependency.length) + for (let i = 0; i < message.public_dependency.length; ++i) + writer.uint32(/* id 10, wireType 0 =*/80).int32(message.public_dependency[i]); + if (message.weak_dependency != null && message.weak_dependency.length) + for (let i = 0; i < message.weak_dependency.length; ++i) + writer.uint32(/* id 11, wireType 0 =*/88).int32(message.weak_dependency[i]); + if (message.syntax != null && Object.hasOwnProperty.call(message, "syntax")) + writer.uint32(/* id 12, wireType 2 =*/98).string(message.syntax); return writer; }; /** - * Encodes the specified ServiceDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages. + * Encodes the specified FileDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages. * @function encodeDelimited - * @memberof google.protobuf.ServiceDescriptorProto + * @memberof google.protobuf.FileDescriptorProto * @static - * @param {google.protobuf.IServiceDescriptorProto} message ServiceDescriptorProto message or plain object to encode + * @param {google.protobuf.IFileDescriptorProto} message FileDescriptorProto message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ServiceDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { + FileDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ServiceDescriptorProto message from the specified reader or buffer. + * Decodes a FileDescriptorProto message from the specified reader or buffer. * @function decode - * @memberof google.protobuf.ServiceDescriptorProto + * @memberof google.protobuf.FileDescriptorProto * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.ServiceDescriptorProto} ServiceDescriptorProto + * @returns {google.protobuf.FileDescriptorProto} FileDescriptorProto * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ServiceDescriptorProto.decode = function decode(reader, length) { + FileDescriptorProto.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.ServiceDescriptorProto(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FileDescriptorProto(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { @@ -10566,12 +16275,61 @@ export const google = $root.google = (() => { message.name = reader.string(); break; case 2: - if (!(message.method && message.method.length)) - message.method = []; - message.method.push($root.google.protobuf.MethodDescriptorProto.decode(reader, reader.uint32())); + message["package"] = reader.string(); break; case 3: - message.options = $root.google.protobuf.ServiceOptions.decode(reader, reader.uint32()); + if (!(message.dependency && message.dependency.length)) + message.dependency = []; + message.dependency.push(reader.string()); + break; + case 10: + if (!(message.public_dependency && message.public_dependency.length)) + message.public_dependency = []; + if ((tag & 7) === 2) { + let end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.public_dependency.push(reader.int32()); + } else + message.public_dependency.push(reader.int32()); + break; + case 11: + if (!(message.weak_dependency && message.weak_dependency.length)) + message.weak_dependency = []; + if ((tag & 7) === 2) { + let end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.weak_dependency.push(reader.int32()); + } else + message.weak_dependency.push(reader.int32()); + break; + case 4: + if (!(message.message_type && message.message_type.length)) + message.message_type = []; + message.message_type.push($root.google.protobuf.DescriptorProto.decode(reader, reader.uint32())); + break; + case 5: + if (!(message.enum_type && message.enum_type.length)) + message.enum_type = []; + message.enum_type.push($root.google.protobuf.EnumDescriptorProto.decode(reader, reader.uint32())); + break; + case 6: + if (!(message.service && message.service.length)) + message.service = []; + message.service.push($root.google.protobuf.ServiceDescriptorProto.decode(reader, reader.uint32())); + break; + case 7: + if (!(message.extension && message.extension.length)) + message.extension = []; + message.extension.push($root.google.protobuf.FieldDescriptorProto.decode(reader, reader.uint32())); + break; + case 8: + message.options = $root.google.protobuf.FileOptions.decode(reader, reader.uint32()); + break; + case 9: + message.source_code_info = $root.google.protobuf.SourceCodeInfo.decode(reader, reader.uint32()); + break; + case 12: + message.syntax = reader.string(); break; default: reader.skipType(tag & 7); @@ -10582,152 +16340,329 @@ export const google = $root.google = (() => { }; /** - * Decodes a ServiceDescriptorProto message from the specified reader or buffer, length delimited. + * Decodes a FileDescriptorProto message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.protobuf.ServiceDescriptorProto + * @memberof google.protobuf.FileDescriptorProto * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.ServiceDescriptorProto} ServiceDescriptorProto + * @returns {google.protobuf.FileDescriptorProto} FileDescriptorProto * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ServiceDescriptorProto.decodeDelimited = function decodeDelimited(reader) { + FileDescriptorProto.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ServiceDescriptorProto message. + * Verifies a FileDescriptorProto message. * @function verify - * @memberof google.protobuf.ServiceDescriptorProto + * @memberof google.protobuf.FileDescriptorProto * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ServiceDescriptorProto.verify = function verify(message) { + FileDescriptorProto.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; - if (message.method != null && message.hasOwnProperty("method")) { - if (!Array.isArray(message.method)) - return "method: array expected"; - for (let i = 0; i < message.method.length; ++i) { - let error = $root.google.protobuf.MethodDescriptorProto.verify(message.method[i]); + if (message["package"] != null && message.hasOwnProperty("package")) + if (!$util.isString(message["package"])) + return "package: string expected"; + if (message.dependency != null && message.hasOwnProperty("dependency")) { + if (!Array.isArray(message.dependency)) + return "dependency: array expected"; + for (let i = 0; i < message.dependency.length; ++i) + if (!$util.isString(message.dependency[i])) + return "dependency: string[] expected"; + } + if (message.public_dependency != null && message.hasOwnProperty("public_dependency")) { + if (!Array.isArray(message.public_dependency)) + return "public_dependency: array expected"; + for (let i = 0; i < message.public_dependency.length; ++i) + if (!$util.isInteger(message.public_dependency[i])) + return "public_dependency: integer[] expected"; + } + if (message.weak_dependency != null && message.hasOwnProperty("weak_dependency")) { + if (!Array.isArray(message.weak_dependency)) + return "weak_dependency: array expected"; + for (let i = 0; i < message.weak_dependency.length; ++i) + if (!$util.isInteger(message.weak_dependency[i])) + return "weak_dependency: integer[] expected"; + } + if (message.message_type != null && message.hasOwnProperty("message_type")) { + if (!Array.isArray(message.message_type)) + return "message_type: array expected"; + for (let i = 0; i < message.message_type.length; ++i) { + let error = $root.google.protobuf.DescriptorProto.verify(message.message_type[i]); if (error) - return "method." + error; + return "message_type." + error; + } + } + if (message.enum_type != null && message.hasOwnProperty("enum_type")) { + if (!Array.isArray(message.enum_type)) + return "enum_type: array expected"; + for (let i = 0; i < message.enum_type.length; ++i) { + let error = $root.google.protobuf.EnumDescriptorProto.verify(message.enum_type[i]); + if (error) + return "enum_type." + error; + } + } + if (message.service != null && message.hasOwnProperty("service")) { + if (!Array.isArray(message.service)) + return "service: array expected"; + for (let i = 0; i < message.service.length; ++i) { + let error = $root.google.protobuf.ServiceDescriptorProto.verify(message.service[i]); + if (error) + return "service." + error; + } + } + if (message.extension != null && message.hasOwnProperty("extension")) { + if (!Array.isArray(message.extension)) + return "extension: array expected"; + for (let i = 0; i < message.extension.length; ++i) { + let error = $root.google.protobuf.FieldDescriptorProto.verify(message.extension[i]); + if (error) + return "extension." + error; } } if (message.options != null && message.hasOwnProperty("options")) { - let error = $root.google.protobuf.ServiceOptions.verify(message.options); + let error = $root.google.protobuf.FileOptions.verify(message.options); if (error) return "options." + error; } + if (message.source_code_info != null && message.hasOwnProperty("source_code_info")) { + let error = $root.google.protobuf.SourceCodeInfo.verify(message.source_code_info); + if (error) + return "source_code_info." + error; + } + if (message.syntax != null && message.hasOwnProperty("syntax")) + if (!$util.isString(message.syntax)) + return "syntax: string expected"; return null; }; /** - * Creates a ServiceDescriptorProto message from a plain object. Also converts values to their respective internal types. + * Creates a FileDescriptorProto message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.protobuf.ServiceDescriptorProto + * @memberof google.protobuf.FileDescriptorProto * @static * @param {Object.} object Plain object - * @returns {google.protobuf.ServiceDescriptorProto} ServiceDescriptorProto + * @returns {google.protobuf.FileDescriptorProto} FileDescriptorProto */ - ServiceDescriptorProto.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.ServiceDescriptorProto) + FileDescriptorProto.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.FileDescriptorProto) return object; - let message = new $root.google.protobuf.ServiceDescriptorProto(); + let message = new $root.google.protobuf.FileDescriptorProto(); if (object.name != null) message.name = String(object.name); - if (object.method) { - if (!Array.isArray(object.method)) - throw TypeError(".google.protobuf.ServiceDescriptorProto.method: array expected"); - message.method = []; - for (let i = 0; i < object.method.length; ++i) { - if (typeof object.method[i] !== "object") - throw TypeError(".google.protobuf.ServiceDescriptorProto.method: object expected"); - message.method[i] = $root.google.protobuf.MethodDescriptorProto.fromObject(object.method[i]); + if (object["package"] != null) + message["package"] = String(object["package"]); + if (object.dependency) { + if (!Array.isArray(object.dependency)) + throw TypeError(".google.protobuf.FileDescriptorProto.dependency: array expected"); + message.dependency = []; + for (let i = 0; i < object.dependency.length; ++i) + message.dependency[i] = String(object.dependency[i]); + } + if (object.public_dependency) { + if (!Array.isArray(object.public_dependency)) + throw TypeError(".google.protobuf.FileDescriptorProto.public_dependency: array expected"); + message.public_dependency = []; + for (let i = 0; i < object.public_dependency.length; ++i) + message.public_dependency[i] = object.public_dependency[i] | 0; + } + if (object.weak_dependency) { + if (!Array.isArray(object.weak_dependency)) + throw TypeError(".google.protobuf.FileDescriptorProto.weak_dependency: array expected"); + message.weak_dependency = []; + for (let i = 0; i < object.weak_dependency.length; ++i) + message.weak_dependency[i] = object.weak_dependency[i] | 0; + } + if (object.message_type) { + if (!Array.isArray(object.message_type)) + throw TypeError(".google.protobuf.FileDescriptorProto.message_type: array expected"); + message.message_type = []; + for (let i = 0; i < object.message_type.length; ++i) { + if (typeof object.message_type[i] !== "object") + throw TypeError(".google.protobuf.FileDescriptorProto.message_type: object expected"); + message.message_type[i] = $root.google.protobuf.DescriptorProto.fromObject(object.message_type[i]); + } + } + if (object.enum_type) { + if (!Array.isArray(object.enum_type)) + throw TypeError(".google.protobuf.FileDescriptorProto.enum_type: array expected"); + message.enum_type = []; + for (let i = 0; i < object.enum_type.length; ++i) { + if (typeof object.enum_type[i] !== "object") + throw TypeError(".google.protobuf.FileDescriptorProto.enum_type: object expected"); + message.enum_type[i] = $root.google.protobuf.EnumDescriptorProto.fromObject(object.enum_type[i]); + } + } + if (object.service) { + if (!Array.isArray(object.service)) + throw TypeError(".google.protobuf.FileDescriptorProto.service: array expected"); + message.service = []; + for (let i = 0; i < object.service.length; ++i) { + if (typeof object.service[i] !== "object") + throw TypeError(".google.protobuf.FileDescriptorProto.service: object expected"); + message.service[i] = $root.google.protobuf.ServiceDescriptorProto.fromObject(object.service[i]); + } + } + if (object.extension) { + if (!Array.isArray(object.extension)) + throw TypeError(".google.protobuf.FileDescriptorProto.extension: array expected"); + message.extension = []; + for (let i = 0; i < object.extension.length; ++i) { + if (typeof object.extension[i] !== "object") + throw TypeError(".google.protobuf.FileDescriptorProto.extension: object expected"); + message.extension[i] = $root.google.protobuf.FieldDescriptorProto.fromObject(object.extension[i]); } } if (object.options != null) { if (typeof object.options !== "object") - throw TypeError(".google.protobuf.ServiceDescriptorProto.options: object expected"); - message.options = $root.google.protobuf.ServiceOptions.fromObject(object.options); + throw TypeError(".google.protobuf.FileDescriptorProto.options: object expected"); + message.options = $root.google.protobuf.FileOptions.fromObject(object.options); + } + if (object.source_code_info != null) { + if (typeof object.source_code_info !== "object") + throw TypeError(".google.protobuf.FileDescriptorProto.source_code_info: object expected"); + message.source_code_info = $root.google.protobuf.SourceCodeInfo.fromObject(object.source_code_info); } + if (object.syntax != null) + message.syntax = String(object.syntax); return message; }; /** - * Creates a plain object from a ServiceDescriptorProto message. Also converts values to other types if specified. + * Creates a plain object from a FileDescriptorProto message. Also converts values to other types if specified. * @function toObject - * @memberof google.protobuf.ServiceDescriptorProto + * @memberof google.protobuf.FileDescriptorProto * @static - * @param {google.protobuf.ServiceDescriptorProto} message ServiceDescriptorProto + * @param {google.protobuf.FileDescriptorProto} message FileDescriptorProto * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ServiceDescriptorProto.toObject = function toObject(message, options) { + FileDescriptorProto.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.method = []; + if (options.arrays || options.defaults) { + object.dependency = []; + object.message_type = []; + object.enum_type = []; + object.service = []; + object.extension = []; + object.public_dependency = []; + object.weak_dependency = []; + } if (options.defaults) { object.name = ""; + object["package"] = ""; object.options = null; + object.source_code_info = null; + object.syntax = ""; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; - if (message.method && message.method.length) { - object.method = []; - for (let j = 0; j < message.method.length; ++j) - object.method[j] = $root.google.protobuf.MethodDescriptorProto.toObject(message.method[j], options); + if (message["package"] != null && message.hasOwnProperty("package")) + object["package"] = message["package"]; + if (message.dependency && message.dependency.length) { + object.dependency = []; + for (let j = 0; j < message.dependency.length; ++j) + object.dependency[j] = message.dependency[j]; + } + if (message.message_type && message.message_type.length) { + object.message_type = []; + for (let j = 0; j < message.message_type.length; ++j) + object.message_type[j] = $root.google.protobuf.DescriptorProto.toObject(message.message_type[j], options); + } + if (message.enum_type && message.enum_type.length) { + object.enum_type = []; + for (let j = 0; j < message.enum_type.length; ++j) + object.enum_type[j] = $root.google.protobuf.EnumDescriptorProto.toObject(message.enum_type[j], options); + } + if (message.service && message.service.length) { + object.service = []; + for (let j = 0; j < message.service.length; ++j) + object.service[j] = $root.google.protobuf.ServiceDescriptorProto.toObject(message.service[j], options); + } + if (message.extension && message.extension.length) { + object.extension = []; + for (let j = 0; j < message.extension.length; ++j) + object.extension[j] = $root.google.protobuf.FieldDescriptorProto.toObject(message.extension[j], options); } if (message.options != null && message.hasOwnProperty("options")) - object.options = $root.google.protobuf.ServiceOptions.toObject(message.options, options); + object.options = $root.google.protobuf.FileOptions.toObject(message.options, options); + if (message.source_code_info != null && message.hasOwnProperty("source_code_info")) + object.source_code_info = $root.google.protobuf.SourceCodeInfo.toObject(message.source_code_info, options); + if (message.public_dependency && message.public_dependency.length) { + object.public_dependency = []; + for (let j = 0; j < message.public_dependency.length; ++j) + object.public_dependency[j] = message.public_dependency[j]; + } + if (message.weak_dependency && message.weak_dependency.length) { + object.weak_dependency = []; + for (let j = 0; j < message.weak_dependency.length; ++j) + object.weak_dependency[j] = message.weak_dependency[j]; + } + if (message.syntax != null && message.hasOwnProperty("syntax")) + object.syntax = message.syntax; return object; }; /** - * Converts this ServiceDescriptorProto to JSON. + * Converts this FileDescriptorProto to JSON. * @function toJSON - * @memberof google.protobuf.ServiceDescriptorProto + * @memberof google.protobuf.FileDescriptorProto * @instance * @returns {Object.} JSON object */ - ServiceDescriptorProto.prototype.toJSON = function toJSON() { + FileDescriptorProto.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ServiceDescriptorProto; + return FileDescriptorProto; })(); - protobuf.MethodDescriptorProto = (function() { + protobuf.DescriptorProto = (function() { /** - * Properties of a MethodDescriptorProto. + * Properties of a DescriptorProto. * @memberof google.protobuf - * @interface IMethodDescriptorProto - * @property {string|null} [name] MethodDescriptorProto name - * @property {string|null} [input_type] MethodDescriptorProto input_type - * @property {string|null} [output_type] MethodDescriptorProto output_type - * @property {google.protobuf.IMethodOptions|null} [options] MethodDescriptorProto options - * @property {boolean|null} [client_streaming] MethodDescriptorProto client_streaming - * @property {boolean|null} [server_streaming] MethodDescriptorProto server_streaming + * @interface IDescriptorProto + * @property {string|null} [name] DescriptorProto name + * @property {Array.|null} [field] DescriptorProto field + * @property {Array.|null} [extension] DescriptorProto extension + * @property {Array.|null} [nested_type] DescriptorProto nested_type + * @property {Array.|null} [enum_type] DescriptorProto enum_type + * @property {Array.|null} [extension_range] DescriptorProto extension_range + * @property {Array.|null} [oneof_decl] DescriptorProto oneof_decl + * @property {google.protobuf.IMessageOptions|null} [options] DescriptorProto options + * @property {Array.|null} [reserved_range] DescriptorProto reserved_range + * @property {Array.|null} [reserved_name] DescriptorProto reserved_name */ /** - * Constructs a new MethodDescriptorProto. + * Constructs a new DescriptorProto. * @memberof google.protobuf - * @classdesc Represents a MethodDescriptorProto. - * @implements IMethodDescriptorProto + * @classdesc Represents a DescriptorProto. + * @implements IDescriptorProto * @constructor - * @param {google.protobuf.IMethodDescriptorProto=} [properties] Properties to set + * @param {google.protobuf.IDescriptorProto=} [properties] Properties to set */ - function MethodDescriptorProto(properties) { + function DescriptorProto(properties) { + this.field = []; + this.extension = []; + this.nested_type = []; + this.enum_type = []; + this.extension_range = []; + this.oneof_decl = []; + this.reserved_range = []; + this.reserved_name = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -10735,108 +16670,156 @@ export const google = $root.google = (() => { } /** - * MethodDescriptorProto name. + * DescriptorProto name. * @member {string} name - * @memberof google.protobuf.MethodDescriptorProto + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.name = ""; + + /** + * DescriptorProto field. + * @member {Array.} field + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.field = $util.emptyArray; + + /** + * DescriptorProto extension. + * @member {Array.} extension + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.extension = $util.emptyArray; + + /** + * DescriptorProto nested_type. + * @member {Array.} nested_type + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.nested_type = $util.emptyArray; + + /** + * DescriptorProto enum_type. + * @member {Array.} enum_type + * @memberof google.protobuf.DescriptorProto * @instance */ - MethodDescriptorProto.prototype.name = ""; + DescriptorProto.prototype.enum_type = $util.emptyArray; /** - * MethodDescriptorProto input_type. - * @member {string} input_type - * @memberof google.protobuf.MethodDescriptorProto + * DescriptorProto extension_range. + * @member {Array.} extension_range + * @memberof google.protobuf.DescriptorProto * @instance */ - MethodDescriptorProto.prototype.input_type = ""; + DescriptorProto.prototype.extension_range = $util.emptyArray; /** - * MethodDescriptorProto output_type. - * @member {string} output_type - * @memberof google.protobuf.MethodDescriptorProto + * DescriptorProto oneof_decl. + * @member {Array.} oneof_decl + * @memberof google.protobuf.DescriptorProto * @instance */ - MethodDescriptorProto.prototype.output_type = ""; + DescriptorProto.prototype.oneof_decl = $util.emptyArray; /** - * MethodDescriptorProto options. - * @member {google.protobuf.IMethodOptions|null|undefined} options - * @memberof google.protobuf.MethodDescriptorProto + * DescriptorProto options. + * @member {google.protobuf.IMessageOptions|null|undefined} options + * @memberof google.protobuf.DescriptorProto * @instance */ - MethodDescriptorProto.prototype.options = null; + DescriptorProto.prototype.options = null; /** - * MethodDescriptorProto client_streaming. - * @member {boolean} client_streaming - * @memberof google.protobuf.MethodDescriptorProto + * DescriptorProto reserved_range. + * @member {Array.} reserved_range + * @memberof google.protobuf.DescriptorProto * @instance */ - MethodDescriptorProto.prototype.client_streaming = false; + DescriptorProto.prototype.reserved_range = $util.emptyArray; /** - * MethodDescriptorProto server_streaming. - * @member {boolean} server_streaming - * @memberof google.protobuf.MethodDescriptorProto + * DescriptorProto reserved_name. + * @member {Array.} reserved_name + * @memberof google.protobuf.DescriptorProto * @instance */ - MethodDescriptorProto.prototype.server_streaming = false; + DescriptorProto.prototype.reserved_name = $util.emptyArray; /** - * Encodes the specified MethodDescriptorProto message. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages. + * Encodes the specified DescriptorProto message. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages. * @function encode - * @memberof google.protobuf.MethodDescriptorProto + * @memberof google.protobuf.DescriptorProto * @static - * @param {google.protobuf.IMethodDescriptorProto} message MethodDescriptorProto message or plain object to encode + * @param {google.protobuf.IDescriptorProto} message DescriptorProto message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MethodDescriptorProto.encode = function encode(message, writer) { + DescriptorProto.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.input_type != null && Object.hasOwnProperty.call(message, "input_type")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.input_type); - if (message.output_type != null && Object.hasOwnProperty.call(message, "output_type")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.output_type); + if (message.field != null && message.field.length) + for (let i = 0; i < message.field.length; ++i) + $root.google.protobuf.FieldDescriptorProto.encode(message.field[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.nested_type != null && message.nested_type.length) + for (let i = 0; i < message.nested_type.length; ++i) + $root.google.protobuf.DescriptorProto.encode(message.nested_type[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.enum_type != null && message.enum_type.length) + for (let i = 0; i < message.enum_type.length; ++i) + $root.google.protobuf.EnumDescriptorProto.encode(message.enum_type[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.extension_range != null && message.extension_range.length) + for (let i = 0; i < message.extension_range.length; ++i) + $root.google.protobuf.DescriptorProto.ExtensionRange.encode(message.extension_range[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.extension != null && message.extension.length) + for (let i = 0; i < message.extension.length; ++i) + $root.google.protobuf.FieldDescriptorProto.encode(message.extension[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); if (message.options != null && Object.hasOwnProperty.call(message, "options")) - $root.google.protobuf.MethodOptions.encode(message.options, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.client_streaming != null && Object.hasOwnProperty.call(message, "client_streaming")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.client_streaming); - if (message.server_streaming != null && Object.hasOwnProperty.call(message, "server_streaming")) - writer.uint32(/* id 6, wireType 0 =*/48).bool(message.server_streaming); + $root.google.protobuf.MessageOptions.encode(message.options, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.oneof_decl != null && message.oneof_decl.length) + for (let i = 0; i < message.oneof_decl.length; ++i) + $root.google.protobuf.OneofDescriptorProto.encode(message.oneof_decl[i], writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.reserved_range != null && message.reserved_range.length) + for (let i = 0; i < message.reserved_range.length; ++i) + $root.google.protobuf.DescriptorProto.ReservedRange.encode(message.reserved_range[i], writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.reserved_name != null && message.reserved_name.length) + for (let i = 0; i < message.reserved_name.length; ++i) + writer.uint32(/* id 10, wireType 2 =*/82).string(message.reserved_name[i]); return writer; }; /** - * Encodes the specified MethodDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages. + * Encodes the specified DescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages. * @function encodeDelimited - * @memberof google.protobuf.MethodDescriptorProto + * @memberof google.protobuf.DescriptorProto * @static - * @param {google.protobuf.IMethodDescriptorProto} message MethodDescriptorProto message or plain object to encode + * @param {google.protobuf.IDescriptorProto} message DescriptorProto message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MethodDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { + DescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MethodDescriptorProto message from the specified reader or buffer. + * Decodes a DescriptorProto message from the specified reader or buffer. * @function decode - * @memberof google.protobuf.MethodDescriptorProto + * @memberof google.protobuf.DescriptorProto * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.MethodDescriptorProto} MethodDescriptorProto + * @returns {google.protobuf.DescriptorProto} DescriptorProto * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MethodDescriptorProto.decode = function decode(reader, length) { + DescriptorProto.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.MethodDescriptorProto(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.DescriptorProto(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { @@ -10844,19 +16827,47 @@ export const google = $root.google = (() => { message.name = reader.string(); break; case 2: - message.input_type = reader.string(); + if (!(message.field && message.field.length)) + message.field = []; + message.field.push($root.google.protobuf.FieldDescriptorProto.decode(reader, reader.uint32())); + break; + case 6: + if (!(message.extension && message.extension.length)) + message.extension = []; + message.extension.push($root.google.protobuf.FieldDescriptorProto.decode(reader, reader.uint32())); break; case 3: - message.output_type = reader.string(); + if (!(message.nested_type && message.nested_type.length)) + message.nested_type = []; + message.nested_type.push($root.google.protobuf.DescriptorProto.decode(reader, reader.uint32())); break; case 4: - message.options = $root.google.protobuf.MethodOptions.decode(reader, reader.uint32()); + if (!(message.enum_type && message.enum_type.length)) + message.enum_type = []; + message.enum_type.push($root.google.protobuf.EnumDescriptorProto.decode(reader, reader.uint32())); break; case 5: - message.client_streaming = reader.bool(); + if (!(message.extension_range && message.extension_range.length)) + message.extension_range = []; + message.extension_range.push($root.google.protobuf.DescriptorProto.ExtensionRange.decode(reader, reader.uint32())); break; - case 6: - message.server_streaming = reader.bool(); + case 8: + if (!(message.oneof_decl && message.oneof_decl.length)) + message.oneof_decl = []; + message.oneof_decl.push($root.google.protobuf.OneofDescriptorProto.decode(reader, reader.uint32())); + break; + case 7: + message.options = $root.google.protobuf.MessageOptions.decode(reader, reader.uint32()); + break; + case 9: + if (!(message.reserved_range && message.reserved_range.length)) + message.reserved_range = []; + message.reserved_range.push($root.google.protobuf.DescriptorProto.ReservedRange.decode(reader, reader.uint32())); + break; + case 10: + if (!(message.reserved_name && message.reserved_name.length)) + message.reserved_name = []; + message.reserved_name.push(reader.string()); break; default: reader.skipType(tag & 7); @@ -10867,865 +16878,904 @@ export const google = $root.google = (() => { }; /** - * Decodes a MethodDescriptorProto message from the specified reader or buffer, length delimited. + * Decodes a DescriptorProto message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.protobuf.MethodDescriptorProto + * @memberof google.protobuf.DescriptorProto * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.MethodDescriptorProto} MethodDescriptorProto + * @returns {google.protobuf.DescriptorProto} DescriptorProto * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MethodDescriptorProto.decodeDelimited = function decodeDelimited(reader) { + DescriptorProto.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MethodDescriptorProto message. + * Verifies a DescriptorProto message. * @function verify - * @memberof google.protobuf.MethodDescriptorProto + * @memberof google.protobuf.DescriptorProto * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MethodDescriptorProto.verify = function verify(message) { + DescriptorProto.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; - if (message.input_type != null && message.hasOwnProperty("input_type")) - if (!$util.isString(message.input_type)) - return "input_type: string expected"; - if (message.output_type != null && message.hasOwnProperty("output_type")) - if (!$util.isString(message.output_type)) - return "output_type: string expected"; + if (message.field != null && message.hasOwnProperty("field")) { + if (!Array.isArray(message.field)) + return "field: array expected"; + for (let i = 0; i < message.field.length; ++i) { + let error = $root.google.protobuf.FieldDescriptorProto.verify(message.field[i]); + if (error) + return "field." + error; + } + } + if (message.extension != null && message.hasOwnProperty("extension")) { + if (!Array.isArray(message.extension)) + return "extension: array expected"; + for (let i = 0; i < message.extension.length; ++i) { + let error = $root.google.protobuf.FieldDescriptorProto.verify(message.extension[i]); + if (error) + return "extension." + error; + } + } + if (message.nested_type != null && message.hasOwnProperty("nested_type")) { + if (!Array.isArray(message.nested_type)) + return "nested_type: array expected"; + for (let i = 0; i < message.nested_type.length; ++i) { + let error = $root.google.protobuf.DescriptorProto.verify(message.nested_type[i]); + if (error) + return "nested_type." + error; + } + } + if (message.enum_type != null && message.hasOwnProperty("enum_type")) { + if (!Array.isArray(message.enum_type)) + return "enum_type: array expected"; + for (let i = 0; i < message.enum_type.length; ++i) { + let error = $root.google.protobuf.EnumDescriptorProto.verify(message.enum_type[i]); + if (error) + return "enum_type." + error; + } + } + if (message.extension_range != null && message.hasOwnProperty("extension_range")) { + if (!Array.isArray(message.extension_range)) + return "extension_range: array expected"; + for (let i = 0; i < message.extension_range.length; ++i) { + let error = $root.google.protobuf.DescriptorProto.ExtensionRange.verify(message.extension_range[i]); + if (error) + return "extension_range." + error; + } + } + if (message.oneof_decl != null && message.hasOwnProperty("oneof_decl")) { + if (!Array.isArray(message.oneof_decl)) + return "oneof_decl: array expected"; + for (let i = 0; i < message.oneof_decl.length; ++i) { + let error = $root.google.protobuf.OneofDescriptorProto.verify(message.oneof_decl[i]); + if (error) + return "oneof_decl." + error; + } + } if (message.options != null && message.hasOwnProperty("options")) { - let error = $root.google.protobuf.MethodOptions.verify(message.options); + let error = $root.google.protobuf.MessageOptions.verify(message.options); if (error) return "options." + error; } - if (message.client_streaming != null && message.hasOwnProperty("client_streaming")) - if (typeof message.client_streaming !== "boolean") - return "client_streaming: boolean expected"; - if (message.server_streaming != null && message.hasOwnProperty("server_streaming")) - if (typeof message.server_streaming !== "boolean") - return "server_streaming: boolean expected"; + if (message.reserved_range != null && message.hasOwnProperty("reserved_range")) { + if (!Array.isArray(message.reserved_range)) + return "reserved_range: array expected"; + for (let i = 0; i < message.reserved_range.length; ++i) { + let error = $root.google.protobuf.DescriptorProto.ReservedRange.verify(message.reserved_range[i]); + if (error) + return "reserved_range." + error; + } + } + if (message.reserved_name != null && message.hasOwnProperty("reserved_name")) { + if (!Array.isArray(message.reserved_name)) + return "reserved_name: array expected"; + for (let i = 0; i < message.reserved_name.length; ++i) + if (!$util.isString(message.reserved_name[i])) + return "reserved_name: string[] expected"; + } return null; }; /** - * Creates a MethodDescriptorProto message from a plain object. Also converts values to their respective internal types. + * Creates a DescriptorProto message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.protobuf.MethodDescriptorProto + * @memberof google.protobuf.DescriptorProto * @static * @param {Object.} object Plain object - * @returns {google.protobuf.MethodDescriptorProto} MethodDescriptorProto + * @returns {google.protobuf.DescriptorProto} DescriptorProto */ - MethodDescriptorProto.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.MethodDescriptorProto) + DescriptorProto.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.DescriptorProto) return object; - let message = new $root.google.protobuf.MethodDescriptorProto(); + let message = new $root.google.protobuf.DescriptorProto(); if (object.name != null) message.name = String(object.name); - if (object.input_type != null) - message.input_type = String(object.input_type); - if (object.output_type != null) - message.output_type = String(object.output_type); + if (object.field) { + if (!Array.isArray(object.field)) + throw TypeError(".google.protobuf.DescriptorProto.field: array expected"); + message.field = []; + for (let i = 0; i < object.field.length; ++i) { + if (typeof object.field[i] !== "object") + throw TypeError(".google.protobuf.DescriptorProto.field: object expected"); + message.field[i] = $root.google.protobuf.FieldDescriptorProto.fromObject(object.field[i]); + } + } + if (object.extension) { + if (!Array.isArray(object.extension)) + throw TypeError(".google.protobuf.DescriptorProto.extension: array expected"); + message.extension = []; + for (let i = 0; i < object.extension.length; ++i) { + if (typeof object.extension[i] !== "object") + throw TypeError(".google.protobuf.DescriptorProto.extension: object expected"); + message.extension[i] = $root.google.protobuf.FieldDescriptorProto.fromObject(object.extension[i]); + } + } + if (object.nested_type) { + if (!Array.isArray(object.nested_type)) + throw TypeError(".google.protobuf.DescriptorProto.nested_type: array expected"); + message.nested_type = []; + for (let i = 0; i < object.nested_type.length; ++i) { + if (typeof object.nested_type[i] !== "object") + throw TypeError(".google.protobuf.DescriptorProto.nested_type: object expected"); + message.nested_type[i] = $root.google.protobuf.DescriptorProto.fromObject(object.nested_type[i]); + } + } + if (object.enum_type) { + if (!Array.isArray(object.enum_type)) + throw TypeError(".google.protobuf.DescriptorProto.enum_type: array expected"); + message.enum_type = []; + for (let i = 0; i < object.enum_type.length; ++i) { + if (typeof object.enum_type[i] !== "object") + throw TypeError(".google.protobuf.DescriptorProto.enum_type: object expected"); + message.enum_type[i] = $root.google.protobuf.EnumDescriptorProto.fromObject(object.enum_type[i]); + } + } + if (object.extension_range) { + if (!Array.isArray(object.extension_range)) + throw TypeError(".google.protobuf.DescriptorProto.extension_range: array expected"); + message.extension_range = []; + for (let i = 0; i < object.extension_range.length; ++i) { + if (typeof object.extension_range[i] !== "object") + throw TypeError(".google.protobuf.DescriptorProto.extension_range: object expected"); + message.extension_range[i] = $root.google.protobuf.DescriptorProto.ExtensionRange.fromObject(object.extension_range[i]); + } + } + if (object.oneof_decl) { + if (!Array.isArray(object.oneof_decl)) + throw TypeError(".google.protobuf.DescriptorProto.oneof_decl: array expected"); + message.oneof_decl = []; + for (let i = 0; i < object.oneof_decl.length; ++i) { + if (typeof object.oneof_decl[i] !== "object") + throw TypeError(".google.protobuf.DescriptorProto.oneof_decl: object expected"); + message.oneof_decl[i] = $root.google.protobuf.OneofDescriptorProto.fromObject(object.oneof_decl[i]); + } + } if (object.options != null) { if (typeof object.options !== "object") - throw TypeError(".google.protobuf.MethodDescriptorProto.options: object expected"); - message.options = $root.google.protobuf.MethodOptions.fromObject(object.options); + throw TypeError(".google.protobuf.DescriptorProto.options: object expected"); + message.options = $root.google.protobuf.MessageOptions.fromObject(object.options); } - if (object.client_streaming != null) - message.client_streaming = Boolean(object.client_streaming); - if (object.server_streaming != null) - message.server_streaming = Boolean(object.server_streaming); - return message; - }; - - /** - * Creates a plain object from a MethodDescriptorProto message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.MethodDescriptorProto - * @static - * @param {google.protobuf.MethodDescriptorProto} message MethodDescriptorProto - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - MethodDescriptorProto.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - object.name = ""; - object.input_type = ""; - object.output_type = ""; - object.options = null; - object.client_streaming = false; - object.server_streaming = false; + if (object.reserved_range) { + if (!Array.isArray(object.reserved_range)) + throw TypeError(".google.protobuf.DescriptorProto.reserved_range: array expected"); + message.reserved_range = []; + for (let i = 0; i < object.reserved_range.length; ++i) { + if (typeof object.reserved_range[i] !== "object") + throw TypeError(".google.protobuf.DescriptorProto.reserved_range: object expected"); + message.reserved_range[i] = $root.google.protobuf.DescriptorProto.ReservedRange.fromObject(object.reserved_range[i]); + } } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.input_type != null && message.hasOwnProperty("input_type")) - object.input_type = message.input_type; - if (message.output_type != null && message.hasOwnProperty("output_type")) - object.output_type = message.output_type; - if (message.options != null && message.hasOwnProperty("options")) - object.options = $root.google.protobuf.MethodOptions.toObject(message.options, options); - if (message.client_streaming != null && message.hasOwnProperty("client_streaming")) - object.client_streaming = message.client_streaming; - if (message.server_streaming != null && message.hasOwnProperty("server_streaming")) - object.server_streaming = message.server_streaming; - return object; - }; - - /** - * Converts this MethodDescriptorProto to JSON. - * @function toJSON - * @memberof google.protobuf.MethodDescriptorProto - * @instance - * @returns {Object.} JSON object - */ - MethodDescriptorProto.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return MethodDescriptorProto; - })(); - - protobuf.FileOptions = (function() { - - /** - * Properties of a FileOptions. - * @memberof google.protobuf - * @interface IFileOptions - * @property {string|null} [java_package] FileOptions java_package - * @property {string|null} [java_outer_classname] FileOptions java_outer_classname - * @property {boolean|null} [java_multiple_files] FileOptions java_multiple_files - * @property {boolean|null} [java_generate_equals_and_hash] FileOptions java_generate_equals_and_hash - * @property {boolean|null} [java_string_check_utf8] FileOptions java_string_check_utf8 - * @property {google.protobuf.FileOptions.OptimizeMode|null} [optimize_for] FileOptions optimize_for - * @property {string|null} [go_package] FileOptions go_package - * @property {boolean|null} [cc_generic_services] FileOptions cc_generic_services - * @property {boolean|null} [java_generic_services] FileOptions java_generic_services - * @property {boolean|null} [py_generic_services] FileOptions py_generic_services - * @property {boolean|null} [deprecated] FileOptions deprecated - * @property {boolean|null} [cc_enable_arenas] FileOptions cc_enable_arenas - * @property {string|null} [objc_class_prefix] FileOptions objc_class_prefix - * @property {string|null} [csharp_namespace] FileOptions csharp_namespace - * @property {Array.|null} [uninterpreted_option] FileOptions uninterpreted_option - * @property {boolean|null} [".gogoproto.goproto_getters_all"] FileOptions .gogoproto.goproto_getters_all - * @property {boolean|null} [".gogoproto.goproto_enum_prefix_all"] FileOptions .gogoproto.goproto_enum_prefix_all - * @property {boolean|null} [".gogoproto.goproto_stringer_all"] FileOptions .gogoproto.goproto_stringer_all - * @property {boolean|null} [".gogoproto.verbose_equal_all"] FileOptions .gogoproto.verbose_equal_all - * @property {boolean|null} [".gogoproto.face_all"] FileOptions .gogoproto.face_all - * @property {boolean|null} [".gogoproto.gostring_all"] FileOptions .gogoproto.gostring_all - * @property {boolean|null} [".gogoproto.populate_all"] FileOptions .gogoproto.populate_all - * @property {boolean|null} [".gogoproto.stringer_all"] FileOptions .gogoproto.stringer_all - * @property {boolean|null} [".gogoproto.onlyone_all"] FileOptions .gogoproto.onlyone_all - * @property {boolean|null} [".gogoproto.equal_all"] FileOptions .gogoproto.equal_all - * @property {boolean|null} [".gogoproto.description_all"] FileOptions .gogoproto.description_all - * @property {boolean|null} [".gogoproto.testgen_all"] FileOptions .gogoproto.testgen_all - * @property {boolean|null} [".gogoproto.benchgen_all"] FileOptions .gogoproto.benchgen_all - * @property {boolean|null} [".gogoproto.marshaler_all"] FileOptions .gogoproto.marshaler_all - * @property {boolean|null} [".gogoproto.unmarshaler_all"] FileOptions .gogoproto.unmarshaler_all - * @property {boolean|null} [".gogoproto.stable_marshaler_all"] FileOptions .gogoproto.stable_marshaler_all - * @property {boolean|null} [".gogoproto.sizer_all"] FileOptions .gogoproto.sizer_all - * @property {boolean|null} [".gogoproto.goproto_enum_stringer_all"] FileOptions .gogoproto.goproto_enum_stringer_all - * @property {boolean|null} [".gogoproto.enum_stringer_all"] FileOptions .gogoproto.enum_stringer_all - * @property {boolean|null} [".gogoproto.unsafe_marshaler_all"] FileOptions .gogoproto.unsafe_marshaler_all - * @property {boolean|null} [".gogoproto.unsafe_unmarshaler_all"] FileOptions .gogoproto.unsafe_unmarshaler_all - * @property {boolean|null} [".gogoproto.goproto_extensions_map_all"] FileOptions .gogoproto.goproto_extensions_map_all - * @property {boolean|null} [".gogoproto.goproto_unrecognized_all"] FileOptions .gogoproto.goproto_unrecognized_all - * @property {boolean|null} [".gogoproto.gogoproto_import"] FileOptions .gogoproto.gogoproto_import - * @property {boolean|null} [".gogoproto.protosizer_all"] FileOptions .gogoproto.protosizer_all - * @property {boolean|null} [".gogoproto.compare_all"] FileOptions .gogoproto.compare_all - * @property {boolean|null} [".gogoproto.typedecl_all"] FileOptions .gogoproto.typedecl_all - * @property {boolean|null} [".gogoproto.enumdecl_all"] FileOptions .gogoproto.enumdecl_all - * @property {boolean|null} [".gogoproto.goproto_registration"] FileOptions .gogoproto.goproto_registration - * @property {boolean|null} [".gogoproto.messagename_all"] FileOptions .gogoproto.messagename_all - * @property {boolean|null} [".gogoproto.goproto_sizecache_all"] FileOptions .gogoproto.goproto_sizecache_all - * @property {boolean|null} [".gogoproto.goproto_unkeyed_all"] FileOptions .gogoproto.goproto_unkeyed_all - */ - - /** - * Constructs a new FileOptions. - * @memberof google.protobuf - * @classdesc Represents a FileOptions. - * @implements IFileOptions - * @constructor - * @param {google.protobuf.IFileOptions=} [properties] Properties to set - */ - function FileOptions(properties) { - this.uninterpreted_option = []; - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * FileOptions java_package. - * @member {string} java_package - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.java_package = ""; - - /** - * FileOptions java_outer_classname. - * @member {string} java_outer_classname - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.java_outer_classname = ""; - - /** - * FileOptions java_multiple_files. - * @member {boolean} java_multiple_files - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.java_multiple_files = false; - - /** - * FileOptions java_generate_equals_and_hash. - * @member {boolean} java_generate_equals_and_hash - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.java_generate_equals_and_hash = false; - - /** - * FileOptions java_string_check_utf8. - * @member {boolean} java_string_check_utf8 - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.java_string_check_utf8 = false; - - /** - * FileOptions optimize_for. - * @member {google.protobuf.FileOptions.OptimizeMode} optimize_for - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.optimize_for = 1; + if (object.reserved_name) { + if (!Array.isArray(object.reserved_name)) + throw TypeError(".google.protobuf.DescriptorProto.reserved_name: array expected"); + message.reserved_name = []; + for (let i = 0; i < object.reserved_name.length; ++i) + message.reserved_name[i] = String(object.reserved_name[i]); + } + return message; + }; /** - * FileOptions go_package. - * @member {string} go_package - * @memberof google.protobuf.FileOptions - * @instance + * Creates a plain object from a DescriptorProto message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.DescriptorProto + * @static + * @param {google.protobuf.DescriptorProto} message DescriptorProto + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - FileOptions.prototype.go_package = ""; + DescriptorProto.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) { + object.field = []; + object.nested_type = []; + object.enum_type = []; + object.extension_range = []; + object.extension = []; + object.oneof_decl = []; + object.reserved_range = []; + object.reserved_name = []; + } + if (options.defaults) { + object.name = ""; + object.options = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.field && message.field.length) { + object.field = []; + for (let j = 0; j < message.field.length; ++j) + object.field[j] = $root.google.protobuf.FieldDescriptorProto.toObject(message.field[j], options); + } + if (message.nested_type && message.nested_type.length) { + object.nested_type = []; + for (let j = 0; j < message.nested_type.length; ++j) + object.nested_type[j] = $root.google.protobuf.DescriptorProto.toObject(message.nested_type[j], options); + } + if (message.enum_type && message.enum_type.length) { + object.enum_type = []; + for (let j = 0; j < message.enum_type.length; ++j) + object.enum_type[j] = $root.google.protobuf.EnumDescriptorProto.toObject(message.enum_type[j], options); + } + if (message.extension_range && message.extension_range.length) { + object.extension_range = []; + for (let j = 0; j < message.extension_range.length; ++j) + object.extension_range[j] = $root.google.protobuf.DescriptorProto.ExtensionRange.toObject(message.extension_range[j], options); + } + if (message.extension && message.extension.length) { + object.extension = []; + for (let j = 0; j < message.extension.length; ++j) + object.extension[j] = $root.google.protobuf.FieldDescriptorProto.toObject(message.extension[j], options); + } + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.google.protobuf.MessageOptions.toObject(message.options, options); + if (message.oneof_decl && message.oneof_decl.length) { + object.oneof_decl = []; + for (let j = 0; j < message.oneof_decl.length; ++j) + object.oneof_decl[j] = $root.google.protobuf.OneofDescriptorProto.toObject(message.oneof_decl[j], options); + } + if (message.reserved_range && message.reserved_range.length) { + object.reserved_range = []; + for (let j = 0; j < message.reserved_range.length; ++j) + object.reserved_range[j] = $root.google.protobuf.DescriptorProto.ReservedRange.toObject(message.reserved_range[j], options); + } + if (message.reserved_name && message.reserved_name.length) { + object.reserved_name = []; + for (let j = 0; j < message.reserved_name.length; ++j) + object.reserved_name[j] = message.reserved_name[j]; + } + return object; + }; /** - * FileOptions cc_generic_services. - * @member {boolean} cc_generic_services - * @memberof google.protobuf.FileOptions + * Converts this DescriptorProto to JSON. + * @function toJSON + * @memberof google.protobuf.DescriptorProto * @instance + * @returns {Object.} JSON object */ - FileOptions.prototype.cc_generic_services = false; + DescriptorProto.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * FileOptions java_generic_services. - * @member {boolean} java_generic_services - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.java_generic_services = false; + DescriptorProto.ExtensionRange = (function() { - /** - * FileOptions py_generic_services. - * @member {boolean} py_generic_services - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.py_generic_services = false; + /** + * Properties of an ExtensionRange. + * @memberof google.protobuf.DescriptorProto + * @interface IExtensionRange + * @property {number|null} [start] ExtensionRange start + * @property {number|null} [end] ExtensionRange end + */ - /** - * FileOptions deprecated. - * @member {boolean} deprecated - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.deprecated = false; + /** + * Constructs a new ExtensionRange. + * @memberof google.protobuf.DescriptorProto + * @classdesc Represents an ExtensionRange. + * @implements IExtensionRange + * @constructor + * @param {google.protobuf.DescriptorProto.IExtensionRange=} [properties] Properties to set + */ + function ExtensionRange(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * FileOptions cc_enable_arenas. - * @member {boolean} cc_enable_arenas - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.cc_enable_arenas = false; + /** + * ExtensionRange start. + * @member {number} start + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @instance + */ + ExtensionRange.prototype.start = 0; - /** - * FileOptions objc_class_prefix. - * @member {string} objc_class_prefix - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.objc_class_prefix = ""; + /** + * ExtensionRange end. + * @member {number} end + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @instance + */ + ExtensionRange.prototype.end = 0; - /** - * FileOptions csharp_namespace. - * @member {string} csharp_namespace - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.csharp_namespace = ""; + /** + * Encodes the specified ExtensionRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages. + * @function encode + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {google.protobuf.DescriptorProto.IExtensionRange} message ExtensionRange message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExtensionRange.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.start != null && Object.hasOwnProperty.call(message, "start")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.start); + if (message.end != null && Object.hasOwnProperty.call(message, "end")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.end); + return writer; + }; - /** - * FileOptions uninterpreted_option. - * @member {Array.} uninterpreted_option - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.uninterpreted_option = $util.emptyArray; + /** + * Encodes the specified ExtensionRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {google.protobuf.DescriptorProto.IExtensionRange} message ExtensionRange message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExtensionRange.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * FileOptions .gogoproto.goproto_getters_all. - * @member {boolean} .gogoproto.goproto_getters_all - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype[".gogoproto.goproto_getters_all"] = false; + /** + * Decodes an ExtensionRange message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.DescriptorProto.ExtensionRange} ExtensionRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExtensionRange.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.DescriptorProto.ExtensionRange(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.start = reader.int32(); + break; + case 2: + message.end = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * FileOptions .gogoproto.goproto_enum_prefix_all. - * @member {boolean} .gogoproto.goproto_enum_prefix_all - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype[".gogoproto.goproto_enum_prefix_all"] = false; + /** + * Decodes an ExtensionRange message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.DescriptorProto.ExtensionRange} ExtensionRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExtensionRange.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * FileOptions .gogoproto.goproto_stringer_all. - * @member {boolean} .gogoproto.goproto_stringer_all - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype[".gogoproto.goproto_stringer_all"] = false; + /** + * Verifies an ExtensionRange message. + * @function verify + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExtensionRange.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.start != null && message.hasOwnProperty("start")) + if (!$util.isInteger(message.start)) + return "start: integer expected"; + if (message.end != null && message.hasOwnProperty("end")) + if (!$util.isInteger(message.end)) + return "end: integer expected"; + return null; + }; - /** - * FileOptions .gogoproto.verbose_equal_all. - * @member {boolean} .gogoproto.verbose_equal_all - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype[".gogoproto.verbose_equal_all"] = false; + /** + * Creates an ExtensionRange message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.DescriptorProto.ExtensionRange} ExtensionRange + */ + ExtensionRange.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.DescriptorProto.ExtensionRange) + return object; + let message = new $root.google.protobuf.DescriptorProto.ExtensionRange(); + if (object.start != null) + message.start = object.start | 0; + if (object.end != null) + message.end = object.end | 0; + return message; + }; - /** - * FileOptions .gogoproto.face_all. - * @member {boolean} .gogoproto.face_all - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype[".gogoproto.face_all"] = false; + /** + * Creates a plain object from an ExtensionRange message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {google.protobuf.DescriptorProto.ExtensionRange} message ExtensionRange + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ExtensionRange.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + object.start = 0; + object.end = 0; + } + if (message.start != null && message.hasOwnProperty("start")) + object.start = message.start; + if (message.end != null && message.hasOwnProperty("end")) + object.end = message.end; + return object; + }; - /** - * FileOptions .gogoproto.gostring_all. - * @member {boolean} .gogoproto.gostring_all - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype[".gogoproto.gostring_all"] = false; + /** + * Converts this ExtensionRange to JSON. + * @function toJSON + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @instance + * @returns {Object.} JSON object + */ + ExtensionRange.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * FileOptions .gogoproto.populate_all. - * @member {boolean} .gogoproto.populate_all - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype[".gogoproto.populate_all"] = false; + return ExtensionRange; + })(); - /** - * FileOptions .gogoproto.stringer_all. - * @member {boolean} .gogoproto.stringer_all - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype[".gogoproto.stringer_all"] = false; + DescriptorProto.ReservedRange = (function() { - /** - * FileOptions .gogoproto.onlyone_all. - * @member {boolean} .gogoproto.onlyone_all - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype[".gogoproto.onlyone_all"] = false; + /** + * Properties of a ReservedRange. + * @memberof google.protobuf.DescriptorProto + * @interface IReservedRange + * @property {number|null} [start] ReservedRange start + * @property {number|null} [end] ReservedRange end + */ - /** - * FileOptions .gogoproto.equal_all. - * @member {boolean} .gogoproto.equal_all - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype[".gogoproto.equal_all"] = false; + /** + * Constructs a new ReservedRange. + * @memberof google.protobuf.DescriptorProto + * @classdesc Represents a ReservedRange. + * @implements IReservedRange + * @constructor + * @param {google.protobuf.DescriptorProto.IReservedRange=} [properties] Properties to set + */ + function ReservedRange(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * FileOptions .gogoproto.description_all. - * @member {boolean} .gogoproto.description_all - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype[".gogoproto.description_all"] = false; + /** + * ReservedRange start. + * @member {number} start + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @instance + */ + ReservedRange.prototype.start = 0; - /** - * FileOptions .gogoproto.testgen_all. - * @member {boolean} .gogoproto.testgen_all - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype[".gogoproto.testgen_all"] = false; + /** + * ReservedRange end. + * @member {number} end + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @instance + */ + ReservedRange.prototype.end = 0; - /** - * FileOptions .gogoproto.benchgen_all. - * @member {boolean} .gogoproto.benchgen_all - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype[".gogoproto.benchgen_all"] = false; + /** + * Encodes the specified ReservedRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages. + * @function encode + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {google.protobuf.DescriptorProto.IReservedRange} message ReservedRange message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ReservedRange.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.start != null && Object.hasOwnProperty.call(message, "start")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.start); + if (message.end != null && Object.hasOwnProperty.call(message, "end")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.end); + return writer; + }; + + /** + * Encodes the specified ReservedRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {google.protobuf.DescriptorProto.IReservedRange} message ReservedRange message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ReservedRange.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ReservedRange message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.DescriptorProto.ReservedRange} ReservedRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ReservedRange.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.DescriptorProto.ReservedRange(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.start = reader.int32(); + break; + case 2: + message.end = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ReservedRange message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.DescriptorProto.ReservedRange} ReservedRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ReservedRange.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * FileOptions .gogoproto.marshaler_all. - * @member {boolean} .gogoproto.marshaler_all - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype[".gogoproto.marshaler_all"] = false; + /** + * Verifies a ReservedRange message. + * @function verify + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ReservedRange.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.start != null && message.hasOwnProperty("start")) + if (!$util.isInteger(message.start)) + return "start: integer expected"; + if (message.end != null && message.hasOwnProperty("end")) + if (!$util.isInteger(message.end)) + return "end: integer expected"; + return null; + }; - /** - * FileOptions .gogoproto.unmarshaler_all. - * @member {boolean} .gogoproto.unmarshaler_all - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype[".gogoproto.unmarshaler_all"] = false; + /** + * Creates a ReservedRange message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.DescriptorProto.ReservedRange} ReservedRange + */ + ReservedRange.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.DescriptorProto.ReservedRange) + return object; + let message = new $root.google.protobuf.DescriptorProto.ReservedRange(); + if (object.start != null) + message.start = object.start | 0; + if (object.end != null) + message.end = object.end | 0; + return message; + }; - /** - * FileOptions .gogoproto.stable_marshaler_all. - * @member {boolean} .gogoproto.stable_marshaler_all - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype[".gogoproto.stable_marshaler_all"] = false; + /** + * Creates a plain object from a ReservedRange message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {google.protobuf.DescriptorProto.ReservedRange} message ReservedRange + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ReservedRange.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + object.start = 0; + object.end = 0; + } + if (message.start != null && message.hasOwnProperty("start")) + object.start = message.start; + if (message.end != null && message.hasOwnProperty("end")) + object.end = message.end; + return object; + }; - /** - * FileOptions .gogoproto.sizer_all. - * @member {boolean} .gogoproto.sizer_all - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype[".gogoproto.sizer_all"] = false; + /** + * Converts this ReservedRange to JSON. + * @function toJSON + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @instance + * @returns {Object.} JSON object + */ + ReservedRange.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * FileOptions .gogoproto.goproto_enum_stringer_all. - * @member {boolean} .gogoproto.goproto_enum_stringer_all - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype[".gogoproto.goproto_enum_stringer_all"] = false; + return ReservedRange; + })(); - /** - * FileOptions .gogoproto.enum_stringer_all. - * @member {boolean} .gogoproto.enum_stringer_all - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype[".gogoproto.enum_stringer_all"] = false; + return DescriptorProto; + })(); - /** - * FileOptions .gogoproto.unsafe_marshaler_all. - * @member {boolean} .gogoproto.unsafe_marshaler_all - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype[".gogoproto.unsafe_marshaler_all"] = false; + protobuf.FieldDescriptorProto = (function() { /** - * FileOptions .gogoproto.unsafe_unmarshaler_all. - * @member {boolean} .gogoproto.unsafe_unmarshaler_all - * @memberof google.protobuf.FileOptions - * @instance + * Properties of a FieldDescriptorProto. + * @memberof google.protobuf + * @interface IFieldDescriptorProto + * @property {string|null} [name] FieldDescriptorProto name + * @property {number|null} [number] FieldDescriptorProto number + * @property {google.protobuf.FieldDescriptorProto.Label|null} [label] FieldDescriptorProto label + * @property {google.protobuf.FieldDescriptorProto.Type|null} [type] FieldDescriptorProto type + * @property {string|null} [type_name] FieldDescriptorProto type_name + * @property {string|null} [extendee] FieldDescriptorProto extendee + * @property {string|null} [default_value] FieldDescriptorProto default_value + * @property {number|null} [oneof_index] FieldDescriptorProto oneof_index + * @property {string|null} [json_name] FieldDescriptorProto json_name + * @property {google.protobuf.IFieldOptions|null} [options] FieldDescriptorProto options */ - FileOptions.prototype[".gogoproto.unsafe_unmarshaler_all"] = false; /** - * FileOptions .gogoproto.goproto_extensions_map_all. - * @member {boolean} .gogoproto.goproto_extensions_map_all - * @memberof google.protobuf.FileOptions - * @instance + * Constructs a new FieldDescriptorProto. + * @memberof google.protobuf + * @classdesc Represents a FieldDescriptorProto. + * @implements IFieldDescriptorProto + * @constructor + * @param {google.protobuf.IFieldDescriptorProto=} [properties] Properties to set */ - FileOptions.prototype[".gogoproto.goproto_extensions_map_all"] = false; + function FieldDescriptorProto(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * FileOptions .gogoproto.goproto_unrecognized_all. - * @member {boolean} .gogoproto.goproto_unrecognized_all - * @memberof google.protobuf.FileOptions + * FieldDescriptorProto name. + * @member {string} name + * @memberof google.protobuf.FieldDescriptorProto * @instance */ - FileOptions.prototype[".gogoproto.goproto_unrecognized_all"] = false; + FieldDescriptorProto.prototype.name = ""; /** - * FileOptions .gogoproto.gogoproto_import. - * @member {boolean} .gogoproto.gogoproto_import - * @memberof google.protobuf.FileOptions + * FieldDescriptorProto number. + * @member {number} number + * @memberof google.protobuf.FieldDescriptorProto * @instance */ - FileOptions.prototype[".gogoproto.gogoproto_import"] = false; + FieldDescriptorProto.prototype.number = 0; /** - * FileOptions .gogoproto.protosizer_all. - * @member {boolean} .gogoproto.protosizer_all - * @memberof google.protobuf.FileOptions + * FieldDescriptorProto label. + * @member {google.protobuf.FieldDescriptorProto.Label} label + * @memberof google.protobuf.FieldDescriptorProto * @instance */ - FileOptions.prototype[".gogoproto.protosizer_all"] = false; + FieldDescriptorProto.prototype.label = 1; /** - * FileOptions .gogoproto.compare_all. - * @member {boolean} .gogoproto.compare_all - * @memberof google.protobuf.FileOptions + * FieldDescriptorProto type. + * @member {google.protobuf.FieldDescriptorProto.Type} type + * @memberof google.protobuf.FieldDescriptorProto * @instance */ - FileOptions.prototype[".gogoproto.compare_all"] = false; + FieldDescriptorProto.prototype.type = 1; /** - * FileOptions .gogoproto.typedecl_all. - * @member {boolean} .gogoproto.typedecl_all - * @memberof google.protobuf.FileOptions + * FieldDescriptorProto type_name. + * @member {string} type_name + * @memberof google.protobuf.FieldDescriptorProto * @instance */ - FileOptions.prototype[".gogoproto.typedecl_all"] = false; + FieldDescriptorProto.prototype.type_name = ""; /** - * FileOptions .gogoproto.enumdecl_all. - * @member {boolean} .gogoproto.enumdecl_all - * @memberof google.protobuf.FileOptions + * FieldDescriptorProto extendee. + * @member {string} extendee + * @memberof google.protobuf.FieldDescriptorProto * @instance */ - FileOptions.prototype[".gogoproto.enumdecl_all"] = false; + FieldDescriptorProto.prototype.extendee = ""; /** - * FileOptions .gogoproto.goproto_registration. - * @member {boolean} .gogoproto.goproto_registration - * @memberof google.protobuf.FileOptions + * FieldDescriptorProto default_value. + * @member {string} default_value + * @memberof google.protobuf.FieldDescriptorProto * @instance */ - FileOptions.prototype[".gogoproto.goproto_registration"] = false; + FieldDescriptorProto.prototype.default_value = ""; /** - * FileOptions .gogoproto.messagename_all. - * @member {boolean} .gogoproto.messagename_all - * @memberof google.protobuf.FileOptions + * FieldDescriptorProto oneof_index. + * @member {number} oneof_index + * @memberof google.protobuf.FieldDescriptorProto * @instance */ - FileOptions.prototype[".gogoproto.messagename_all"] = false; + FieldDescriptorProto.prototype.oneof_index = 0; /** - * FileOptions .gogoproto.goproto_sizecache_all. - * @member {boolean} .gogoproto.goproto_sizecache_all - * @memberof google.protobuf.FileOptions + * FieldDescriptorProto json_name. + * @member {string} json_name + * @memberof google.protobuf.FieldDescriptorProto * @instance */ - FileOptions.prototype[".gogoproto.goproto_sizecache_all"] = false; + FieldDescriptorProto.prototype.json_name = ""; /** - * FileOptions .gogoproto.goproto_unkeyed_all. - * @member {boolean} .gogoproto.goproto_unkeyed_all - * @memberof google.protobuf.FileOptions + * FieldDescriptorProto options. + * @member {google.protobuf.IFieldOptions|null|undefined} options + * @memberof google.protobuf.FieldDescriptorProto * @instance */ - FileOptions.prototype[".gogoproto.goproto_unkeyed_all"] = false; + FieldDescriptorProto.prototype.options = null; /** - * Encodes the specified FileOptions message. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages. + * Encodes the specified FieldDescriptorProto message. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages. * @function encode - * @memberof google.protobuf.FileOptions + * @memberof google.protobuf.FieldDescriptorProto * @static - * @param {google.protobuf.IFileOptions} message FileOptions message or plain object to encode + * @param {google.protobuf.IFieldDescriptorProto} message FieldDescriptorProto message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FileOptions.encode = function encode(message, writer) { + FieldDescriptorProto.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.java_package != null && Object.hasOwnProperty.call(message, "java_package")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.java_package); - if (message.java_outer_classname != null && Object.hasOwnProperty.call(message, "java_outer_classname")) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.java_outer_classname); - if (message.optimize_for != null && Object.hasOwnProperty.call(message, "optimize_for")) - writer.uint32(/* id 9, wireType 0 =*/72).int32(message.optimize_for); - if (message.java_multiple_files != null && Object.hasOwnProperty.call(message, "java_multiple_files")) - writer.uint32(/* id 10, wireType 0 =*/80).bool(message.java_multiple_files); - if (message.go_package != null && Object.hasOwnProperty.call(message, "go_package")) - writer.uint32(/* id 11, wireType 2 =*/90).string(message.go_package); - if (message.cc_generic_services != null && Object.hasOwnProperty.call(message, "cc_generic_services")) - writer.uint32(/* id 16, wireType 0 =*/128).bool(message.cc_generic_services); - if (message.java_generic_services != null && Object.hasOwnProperty.call(message, "java_generic_services")) - writer.uint32(/* id 17, wireType 0 =*/136).bool(message.java_generic_services); - if (message.py_generic_services != null && Object.hasOwnProperty.call(message, "py_generic_services")) - writer.uint32(/* id 18, wireType 0 =*/144).bool(message.py_generic_services); - if (message.java_generate_equals_and_hash != null && Object.hasOwnProperty.call(message, "java_generate_equals_and_hash")) - writer.uint32(/* id 20, wireType 0 =*/160).bool(message.java_generate_equals_and_hash); - if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) - writer.uint32(/* id 23, wireType 0 =*/184).bool(message.deprecated); - if (message.java_string_check_utf8 != null && Object.hasOwnProperty.call(message, "java_string_check_utf8")) - writer.uint32(/* id 27, wireType 0 =*/216).bool(message.java_string_check_utf8); - if (message.cc_enable_arenas != null && Object.hasOwnProperty.call(message, "cc_enable_arenas")) - writer.uint32(/* id 31, wireType 0 =*/248).bool(message.cc_enable_arenas); - if (message.objc_class_prefix != null && Object.hasOwnProperty.call(message, "objc_class_prefix")) - writer.uint32(/* id 36, wireType 2 =*/290).string(message.objc_class_prefix); - if (message.csharp_namespace != null && Object.hasOwnProperty.call(message, "csharp_namespace")) - writer.uint32(/* id 37, wireType 2 =*/298).string(message.csharp_namespace); - if (message.uninterpreted_option != null && message.uninterpreted_option.length) - for (let i = 0; i < message.uninterpreted_option.length; ++i) - $root.google.protobuf.UninterpretedOption.encode(message.uninterpreted_option[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); - if (message[".gogoproto.goproto_getters_all"] != null && Object.hasOwnProperty.call(message, ".gogoproto.goproto_getters_all")) - writer.uint32(/* id 63001, wireType 0 =*/504008).bool(message[".gogoproto.goproto_getters_all"]); - if (message[".gogoproto.goproto_enum_prefix_all"] != null && Object.hasOwnProperty.call(message, ".gogoproto.goproto_enum_prefix_all")) - writer.uint32(/* id 63002, wireType 0 =*/504016).bool(message[".gogoproto.goproto_enum_prefix_all"]); - if (message[".gogoproto.goproto_stringer_all"] != null && Object.hasOwnProperty.call(message, ".gogoproto.goproto_stringer_all")) - writer.uint32(/* id 63003, wireType 0 =*/504024).bool(message[".gogoproto.goproto_stringer_all"]); - if (message[".gogoproto.verbose_equal_all"] != null && Object.hasOwnProperty.call(message, ".gogoproto.verbose_equal_all")) - writer.uint32(/* id 63004, wireType 0 =*/504032).bool(message[".gogoproto.verbose_equal_all"]); - if (message[".gogoproto.face_all"] != null && Object.hasOwnProperty.call(message, ".gogoproto.face_all")) - writer.uint32(/* id 63005, wireType 0 =*/504040).bool(message[".gogoproto.face_all"]); - if (message[".gogoproto.gostring_all"] != null && Object.hasOwnProperty.call(message, ".gogoproto.gostring_all")) - writer.uint32(/* id 63006, wireType 0 =*/504048).bool(message[".gogoproto.gostring_all"]); - if (message[".gogoproto.populate_all"] != null && Object.hasOwnProperty.call(message, ".gogoproto.populate_all")) - writer.uint32(/* id 63007, wireType 0 =*/504056).bool(message[".gogoproto.populate_all"]); - if (message[".gogoproto.stringer_all"] != null && Object.hasOwnProperty.call(message, ".gogoproto.stringer_all")) - writer.uint32(/* id 63008, wireType 0 =*/504064).bool(message[".gogoproto.stringer_all"]); - if (message[".gogoproto.onlyone_all"] != null && Object.hasOwnProperty.call(message, ".gogoproto.onlyone_all")) - writer.uint32(/* id 63009, wireType 0 =*/504072).bool(message[".gogoproto.onlyone_all"]); - if (message[".gogoproto.equal_all"] != null && Object.hasOwnProperty.call(message, ".gogoproto.equal_all")) - writer.uint32(/* id 63013, wireType 0 =*/504104).bool(message[".gogoproto.equal_all"]); - if (message[".gogoproto.description_all"] != null && Object.hasOwnProperty.call(message, ".gogoproto.description_all")) - writer.uint32(/* id 63014, wireType 0 =*/504112).bool(message[".gogoproto.description_all"]); - if (message[".gogoproto.testgen_all"] != null && Object.hasOwnProperty.call(message, ".gogoproto.testgen_all")) - writer.uint32(/* id 63015, wireType 0 =*/504120).bool(message[".gogoproto.testgen_all"]); - if (message[".gogoproto.benchgen_all"] != null && Object.hasOwnProperty.call(message, ".gogoproto.benchgen_all")) - writer.uint32(/* id 63016, wireType 0 =*/504128).bool(message[".gogoproto.benchgen_all"]); - if (message[".gogoproto.marshaler_all"] != null && Object.hasOwnProperty.call(message, ".gogoproto.marshaler_all")) - writer.uint32(/* id 63017, wireType 0 =*/504136).bool(message[".gogoproto.marshaler_all"]); - if (message[".gogoproto.unmarshaler_all"] != null && Object.hasOwnProperty.call(message, ".gogoproto.unmarshaler_all")) - writer.uint32(/* id 63018, wireType 0 =*/504144).bool(message[".gogoproto.unmarshaler_all"]); - if (message[".gogoproto.stable_marshaler_all"] != null && Object.hasOwnProperty.call(message, ".gogoproto.stable_marshaler_all")) - writer.uint32(/* id 63019, wireType 0 =*/504152).bool(message[".gogoproto.stable_marshaler_all"]); - if (message[".gogoproto.sizer_all"] != null && Object.hasOwnProperty.call(message, ".gogoproto.sizer_all")) - writer.uint32(/* id 63020, wireType 0 =*/504160).bool(message[".gogoproto.sizer_all"]); - if (message[".gogoproto.goproto_enum_stringer_all"] != null && Object.hasOwnProperty.call(message, ".gogoproto.goproto_enum_stringer_all")) - writer.uint32(/* id 63021, wireType 0 =*/504168).bool(message[".gogoproto.goproto_enum_stringer_all"]); - if (message[".gogoproto.enum_stringer_all"] != null && Object.hasOwnProperty.call(message, ".gogoproto.enum_stringer_all")) - writer.uint32(/* id 63022, wireType 0 =*/504176).bool(message[".gogoproto.enum_stringer_all"]); - if (message[".gogoproto.unsafe_marshaler_all"] != null && Object.hasOwnProperty.call(message, ".gogoproto.unsafe_marshaler_all")) - writer.uint32(/* id 63023, wireType 0 =*/504184).bool(message[".gogoproto.unsafe_marshaler_all"]); - if (message[".gogoproto.unsafe_unmarshaler_all"] != null && Object.hasOwnProperty.call(message, ".gogoproto.unsafe_unmarshaler_all")) - writer.uint32(/* id 63024, wireType 0 =*/504192).bool(message[".gogoproto.unsafe_unmarshaler_all"]); - if (message[".gogoproto.goproto_extensions_map_all"] != null && Object.hasOwnProperty.call(message, ".gogoproto.goproto_extensions_map_all")) - writer.uint32(/* id 63025, wireType 0 =*/504200).bool(message[".gogoproto.goproto_extensions_map_all"]); - if (message[".gogoproto.goproto_unrecognized_all"] != null && Object.hasOwnProperty.call(message, ".gogoproto.goproto_unrecognized_all")) - writer.uint32(/* id 63026, wireType 0 =*/504208).bool(message[".gogoproto.goproto_unrecognized_all"]); - if (message[".gogoproto.gogoproto_import"] != null && Object.hasOwnProperty.call(message, ".gogoproto.gogoproto_import")) - writer.uint32(/* id 63027, wireType 0 =*/504216).bool(message[".gogoproto.gogoproto_import"]); - if (message[".gogoproto.protosizer_all"] != null && Object.hasOwnProperty.call(message, ".gogoproto.protosizer_all")) - writer.uint32(/* id 63028, wireType 0 =*/504224).bool(message[".gogoproto.protosizer_all"]); - if (message[".gogoproto.compare_all"] != null && Object.hasOwnProperty.call(message, ".gogoproto.compare_all")) - writer.uint32(/* id 63029, wireType 0 =*/504232).bool(message[".gogoproto.compare_all"]); - if (message[".gogoproto.typedecl_all"] != null && Object.hasOwnProperty.call(message, ".gogoproto.typedecl_all")) - writer.uint32(/* id 63030, wireType 0 =*/504240).bool(message[".gogoproto.typedecl_all"]); - if (message[".gogoproto.enumdecl_all"] != null && Object.hasOwnProperty.call(message, ".gogoproto.enumdecl_all")) - writer.uint32(/* id 63031, wireType 0 =*/504248).bool(message[".gogoproto.enumdecl_all"]); - if (message[".gogoproto.goproto_registration"] != null && Object.hasOwnProperty.call(message, ".gogoproto.goproto_registration")) - writer.uint32(/* id 63032, wireType 0 =*/504256).bool(message[".gogoproto.goproto_registration"]); - if (message[".gogoproto.messagename_all"] != null && Object.hasOwnProperty.call(message, ".gogoproto.messagename_all")) - writer.uint32(/* id 63033, wireType 0 =*/504264).bool(message[".gogoproto.messagename_all"]); - if (message[".gogoproto.goproto_sizecache_all"] != null && Object.hasOwnProperty.call(message, ".gogoproto.goproto_sizecache_all")) - writer.uint32(/* id 63034, wireType 0 =*/504272).bool(message[".gogoproto.goproto_sizecache_all"]); - if (message[".gogoproto.goproto_unkeyed_all"] != null && Object.hasOwnProperty.call(message, ".gogoproto.goproto_unkeyed_all")) - writer.uint32(/* id 63035, wireType 0 =*/504280).bool(message[".gogoproto.goproto_unkeyed_all"]); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.extendee != null && Object.hasOwnProperty.call(message, "extendee")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.extendee); + if (message.number != null && Object.hasOwnProperty.call(message, "number")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.number); + if (message.label != null && Object.hasOwnProperty.call(message, "label")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.label); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.type); + if (message.type_name != null && Object.hasOwnProperty.call(message, "type_name")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.type_name); + if (message.default_value != null && Object.hasOwnProperty.call(message, "default_value")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.default_value); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + $root.google.protobuf.FieldOptions.encode(message.options, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.oneof_index != null && Object.hasOwnProperty.call(message, "oneof_index")) + writer.uint32(/* id 9, wireType 0 =*/72).int32(message.oneof_index); + if (message.json_name != null && Object.hasOwnProperty.call(message, "json_name")) + writer.uint32(/* id 10, wireType 2 =*/82).string(message.json_name); return writer; }; /** - * Encodes the specified FileOptions message, length delimited. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages. + * Encodes the specified FieldDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages. * @function encodeDelimited - * @memberof google.protobuf.FileOptions + * @memberof google.protobuf.FieldDescriptorProto * @static - * @param {google.protobuf.IFileOptions} message FileOptions message or plain object to encode + * @param {google.protobuf.IFieldDescriptorProto} message FieldDescriptorProto message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FileOptions.encodeDelimited = function encodeDelimited(message, writer) { + FieldDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a FileOptions message from the specified reader or buffer. + * Decodes a FieldDescriptorProto message from the specified reader or buffer. * @function decode - * @memberof google.protobuf.FileOptions + * @memberof google.protobuf.FieldDescriptorProto * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.FileOptions} FileOptions + * @returns {google.protobuf.FieldDescriptorProto} FieldDescriptorProto * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FileOptions.decode = function decode(reader, length) { + FieldDescriptorProto.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FileOptions(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FieldDescriptorProto(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.java_package = reader.string(); - break; - case 8: - message.java_outer_classname = reader.string(); - break; - case 10: - message.java_multiple_files = reader.bool(); - break; - case 20: - message.java_generate_equals_and_hash = reader.bool(); - break; - case 27: - message.java_string_check_utf8 = reader.bool(); - break; - case 9: - message.optimize_for = reader.int32(); - break; - case 11: - message.go_package = reader.string(); - break; - case 16: - message.cc_generic_services = reader.bool(); - break; - case 17: - message.java_generic_services = reader.bool(); - break; - case 18: - message.py_generic_services = reader.bool(); - break; - case 23: - message.deprecated = reader.bool(); - break; - case 31: - message.cc_enable_arenas = reader.bool(); - break; - case 36: - message.objc_class_prefix = reader.string(); - break; - case 37: - message.csharp_namespace = reader.string(); - break; - case 999: - if (!(message.uninterpreted_option && message.uninterpreted_option.length)) - message.uninterpreted_option = []; - message.uninterpreted_option.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); - break; - case 63001: - message[".gogoproto.goproto_getters_all"] = reader.bool(); - break; - case 63002: - message[".gogoproto.goproto_enum_prefix_all"] = reader.bool(); - break; - case 63003: - message[".gogoproto.goproto_stringer_all"] = reader.bool(); - break; - case 63004: - message[".gogoproto.verbose_equal_all"] = reader.bool(); - break; - case 63005: - message[".gogoproto.face_all"] = reader.bool(); - break; - case 63006: - message[".gogoproto.gostring_all"] = reader.bool(); - break; - case 63007: - message[".gogoproto.populate_all"] = reader.bool(); - break; - case 63008: - message[".gogoproto.stringer_all"] = reader.bool(); - break; - case 63009: - message[".gogoproto.onlyone_all"] = reader.bool(); - break; - case 63013: - message[".gogoproto.equal_all"] = reader.bool(); - break; - case 63014: - message[".gogoproto.description_all"] = reader.bool(); - break; - case 63015: - message[".gogoproto.testgen_all"] = reader.bool(); - break; - case 63016: - message[".gogoproto.benchgen_all"] = reader.bool(); - break; - case 63017: - message[".gogoproto.marshaler_all"] = reader.bool(); - break; - case 63018: - message[".gogoproto.unmarshaler_all"] = reader.bool(); - break; - case 63019: - message[".gogoproto.stable_marshaler_all"] = reader.bool(); - break; - case 63020: - message[".gogoproto.sizer_all"] = reader.bool(); - break; - case 63021: - message[".gogoproto.goproto_enum_stringer_all"] = reader.bool(); - break; - case 63022: - message[".gogoproto.enum_stringer_all"] = reader.bool(); - break; - case 63023: - message[".gogoproto.unsafe_marshaler_all"] = reader.bool(); - break; - case 63024: - message[".gogoproto.unsafe_unmarshaler_all"] = reader.bool(); - break; - case 63025: - message[".gogoproto.goproto_extensions_map_all"] = reader.bool(); - break; - case 63026: - message[".gogoproto.goproto_unrecognized_all"] = reader.bool(); + message.name = reader.string(); break; - case 63027: - message[".gogoproto.gogoproto_import"] = reader.bool(); + case 3: + message.number = reader.int32(); break; - case 63028: - message[".gogoproto.protosizer_all"] = reader.bool(); + case 4: + message.label = reader.int32(); break; - case 63029: - message[".gogoproto.compare_all"] = reader.bool(); + case 5: + message.type = reader.int32(); break; - case 63030: - message[".gogoproto.typedecl_all"] = reader.bool(); + case 6: + message.type_name = reader.string(); break; - case 63031: - message[".gogoproto.enumdecl_all"] = reader.bool(); + case 2: + message.extendee = reader.string(); break; - case 63032: - message[".gogoproto.goproto_registration"] = reader.bool(); + case 7: + message.default_value = reader.string(); break; - case 63033: - message[".gogoproto.messagename_all"] = reader.bool(); + case 9: + message.oneof_index = reader.int32(); break; - case 63034: - message[".gogoproto.goproto_sizecache_all"] = reader.bool(); + case 10: + message.json_name = reader.string(); break; - case 63035: - message[".gogoproto.goproto_unkeyed_all"] = reader.bool(); + case 8: + message.options = $root.google.protobuf.FieldOptions.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -11736,561 +17786,359 @@ export const google = $root.google = (() => { }; /** - * Decodes a FileOptions message from the specified reader or buffer, length delimited. + * Decodes a FieldDescriptorProto message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.protobuf.FileOptions + * @memberof google.protobuf.FieldDescriptorProto * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.FileOptions} FileOptions + * @returns {google.protobuf.FieldDescriptorProto} FieldDescriptorProto * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FileOptions.decodeDelimited = function decodeDelimited(reader) { + FieldDescriptorProto.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a FileOptions message. + * Verifies a FieldDescriptorProto message. * @function verify - * @memberof google.protobuf.FileOptions + * @memberof google.protobuf.FieldDescriptorProto * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FileOptions.verify = function verify(message) { + FieldDescriptorProto.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.java_package != null && message.hasOwnProperty("java_package")) - if (!$util.isString(message.java_package)) - return "java_package: string expected"; - if (message.java_outer_classname != null && message.hasOwnProperty("java_outer_classname")) - if (!$util.isString(message.java_outer_classname)) - return "java_outer_classname: string expected"; - if (message.java_multiple_files != null && message.hasOwnProperty("java_multiple_files")) - if (typeof message.java_multiple_files !== "boolean") - return "java_multiple_files: boolean expected"; - if (message.java_generate_equals_and_hash != null && message.hasOwnProperty("java_generate_equals_and_hash")) - if (typeof message.java_generate_equals_and_hash !== "boolean") - return "java_generate_equals_and_hash: boolean expected"; - if (message.java_string_check_utf8 != null && message.hasOwnProperty("java_string_check_utf8")) - if (typeof message.java_string_check_utf8 !== "boolean") - return "java_string_check_utf8: boolean expected"; - if (message.optimize_for != null && message.hasOwnProperty("optimize_for")) - switch (message.optimize_for) { + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.number != null && message.hasOwnProperty("number")) + if (!$util.isInteger(message.number)) + return "number: integer expected"; + if (message.label != null && message.hasOwnProperty("label")) + switch (message.label) { default: - return "optimize_for: enum value expected"; + return "label: enum value expected"; case 1: case 2: case 3: break; } - if (message.go_package != null && message.hasOwnProperty("go_package")) - if (!$util.isString(message.go_package)) - return "go_package: string expected"; - if (message.cc_generic_services != null && message.hasOwnProperty("cc_generic_services")) - if (typeof message.cc_generic_services !== "boolean") - return "cc_generic_services: boolean expected"; - if (message.java_generic_services != null && message.hasOwnProperty("java_generic_services")) - if (typeof message.java_generic_services !== "boolean") - return "java_generic_services: boolean expected"; - if (message.py_generic_services != null && message.hasOwnProperty("py_generic_services")) - if (typeof message.py_generic_services !== "boolean") - return "py_generic_services: boolean expected"; - if (message.deprecated != null && message.hasOwnProperty("deprecated")) - if (typeof message.deprecated !== "boolean") - return "deprecated: boolean expected"; - if (message.cc_enable_arenas != null && message.hasOwnProperty("cc_enable_arenas")) - if (typeof message.cc_enable_arenas !== "boolean") - return "cc_enable_arenas: boolean expected"; - if (message.objc_class_prefix != null && message.hasOwnProperty("objc_class_prefix")) - if (!$util.isString(message.objc_class_prefix)) - return "objc_class_prefix: string expected"; - if (message.csharp_namespace != null && message.hasOwnProperty("csharp_namespace")) - if (!$util.isString(message.csharp_namespace)) - return "csharp_namespace: string expected"; - if (message.uninterpreted_option != null && message.hasOwnProperty("uninterpreted_option")) { - if (!Array.isArray(message.uninterpreted_option)) - return "uninterpreted_option: array expected"; - for (let i = 0; i < message.uninterpreted_option.length; ++i) { - let error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpreted_option[i]); - if (error) - return "uninterpreted_option." + error; + if (message.type != null && message.hasOwnProperty("type")) + switch (message.type) { + default: + return "type: enum value expected"; + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + case 10: + case 11: + case 12: + case 13: + case 14: + case 15: + case 16: + case 17: + case 18: + break; } + if (message.type_name != null && message.hasOwnProperty("type_name")) + if (!$util.isString(message.type_name)) + return "type_name: string expected"; + if (message.extendee != null && message.hasOwnProperty("extendee")) + if (!$util.isString(message.extendee)) + return "extendee: string expected"; + if (message.default_value != null && message.hasOwnProperty("default_value")) + if (!$util.isString(message.default_value)) + return "default_value: string expected"; + if (message.oneof_index != null && message.hasOwnProperty("oneof_index")) + if (!$util.isInteger(message.oneof_index)) + return "oneof_index: integer expected"; + if (message.json_name != null && message.hasOwnProperty("json_name")) + if (!$util.isString(message.json_name)) + return "json_name: string expected"; + if (message.options != null && message.hasOwnProperty("options")) { + let error = $root.google.protobuf.FieldOptions.verify(message.options); + if (error) + return "options." + error; } - if (message[".gogoproto.goproto_getters_all"] != null && message.hasOwnProperty(".gogoproto.goproto_getters_all")) - if (typeof message[".gogoproto.goproto_getters_all"] !== "boolean") - return ".gogoproto.goproto_getters_all: boolean expected"; - if (message[".gogoproto.goproto_enum_prefix_all"] != null && message.hasOwnProperty(".gogoproto.goproto_enum_prefix_all")) - if (typeof message[".gogoproto.goproto_enum_prefix_all"] !== "boolean") - return ".gogoproto.goproto_enum_prefix_all: boolean expected"; - if (message[".gogoproto.goproto_stringer_all"] != null && message.hasOwnProperty(".gogoproto.goproto_stringer_all")) - if (typeof message[".gogoproto.goproto_stringer_all"] !== "boolean") - return ".gogoproto.goproto_stringer_all: boolean expected"; - if (message[".gogoproto.verbose_equal_all"] != null && message.hasOwnProperty(".gogoproto.verbose_equal_all")) - if (typeof message[".gogoproto.verbose_equal_all"] !== "boolean") - return ".gogoproto.verbose_equal_all: boolean expected"; - if (message[".gogoproto.face_all"] != null && message.hasOwnProperty(".gogoproto.face_all")) - if (typeof message[".gogoproto.face_all"] !== "boolean") - return ".gogoproto.face_all: boolean expected"; - if (message[".gogoproto.gostring_all"] != null && message.hasOwnProperty(".gogoproto.gostring_all")) - if (typeof message[".gogoproto.gostring_all"] !== "boolean") - return ".gogoproto.gostring_all: boolean expected"; - if (message[".gogoproto.populate_all"] != null && message.hasOwnProperty(".gogoproto.populate_all")) - if (typeof message[".gogoproto.populate_all"] !== "boolean") - return ".gogoproto.populate_all: boolean expected"; - if (message[".gogoproto.stringer_all"] != null && message.hasOwnProperty(".gogoproto.stringer_all")) - if (typeof message[".gogoproto.stringer_all"] !== "boolean") - return ".gogoproto.stringer_all: boolean expected"; - if (message[".gogoproto.onlyone_all"] != null && message.hasOwnProperty(".gogoproto.onlyone_all")) - if (typeof message[".gogoproto.onlyone_all"] !== "boolean") - return ".gogoproto.onlyone_all: boolean expected"; - if (message[".gogoproto.equal_all"] != null && message.hasOwnProperty(".gogoproto.equal_all")) - if (typeof message[".gogoproto.equal_all"] !== "boolean") - return ".gogoproto.equal_all: boolean expected"; - if (message[".gogoproto.description_all"] != null && message.hasOwnProperty(".gogoproto.description_all")) - if (typeof message[".gogoproto.description_all"] !== "boolean") - return ".gogoproto.description_all: boolean expected"; - if (message[".gogoproto.testgen_all"] != null && message.hasOwnProperty(".gogoproto.testgen_all")) - if (typeof message[".gogoproto.testgen_all"] !== "boolean") - return ".gogoproto.testgen_all: boolean expected"; - if (message[".gogoproto.benchgen_all"] != null && message.hasOwnProperty(".gogoproto.benchgen_all")) - if (typeof message[".gogoproto.benchgen_all"] !== "boolean") - return ".gogoproto.benchgen_all: boolean expected"; - if (message[".gogoproto.marshaler_all"] != null && message.hasOwnProperty(".gogoproto.marshaler_all")) - if (typeof message[".gogoproto.marshaler_all"] !== "boolean") - return ".gogoproto.marshaler_all: boolean expected"; - if (message[".gogoproto.unmarshaler_all"] != null && message.hasOwnProperty(".gogoproto.unmarshaler_all")) - if (typeof message[".gogoproto.unmarshaler_all"] !== "boolean") - return ".gogoproto.unmarshaler_all: boolean expected"; - if (message[".gogoproto.stable_marshaler_all"] != null && message.hasOwnProperty(".gogoproto.stable_marshaler_all")) - if (typeof message[".gogoproto.stable_marshaler_all"] !== "boolean") - return ".gogoproto.stable_marshaler_all: boolean expected"; - if (message[".gogoproto.sizer_all"] != null && message.hasOwnProperty(".gogoproto.sizer_all")) - if (typeof message[".gogoproto.sizer_all"] !== "boolean") - return ".gogoproto.sizer_all: boolean expected"; - if (message[".gogoproto.goproto_enum_stringer_all"] != null && message.hasOwnProperty(".gogoproto.goproto_enum_stringer_all")) - if (typeof message[".gogoproto.goproto_enum_stringer_all"] !== "boolean") - return ".gogoproto.goproto_enum_stringer_all: boolean expected"; - if (message[".gogoproto.enum_stringer_all"] != null && message.hasOwnProperty(".gogoproto.enum_stringer_all")) - if (typeof message[".gogoproto.enum_stringer_all"] !== "boolean") - return ".gogoproto.enum_stringer_all: boolean expected"; - if (message[".gogoproto.unsafe_marshaler_all"] != null && message.hasOwnProperty(".gogoproto.unsafe_marshaler_all")) - if (typeof message[".gogoproto.unsafe_marshaler_all"] !== "boolean") - return ".gogoproto.unsafe_marshaler_all: boolean expected"; - if (message[".gogoproto.unsafe_unmarshaler_all"] != null && message.hasOwnProperty(".gogoproto.unsafe_unmarshaler_all")) - if (typeof message[".gogoproto.unsafe_unmarshaler_all"] !== "boolean") - return ".gogoproto.unsafe_unmarshaler_all: boolean expected"; - if (message[".gogoproto.goproto_extensions_map_all"] != null && message.hasOwnProperty(".gogoproto.goproto_extensions_map_all")) - if (typeof message[".gogoproto.goproto_extensions_map_all"] !== "boolean") - return ".gogoproto.goproto_extensions_map_all: boolean expected"; - if (message[".gogoproto.goproto_unrecognized_all"] != null && message.hasOwnProperty(".gogoproto.goproto_unrecognized_all")) - if (typeof message[".gogoproto.goproto_unrecognized_all"] !== "boolean") - return ".gogoproto.goproto_unrecognized_all: boolean expected"; - if (message[".gogoproto.gogoproto_import"] != null && message.hasOwnProperty(".gogoproto.gogoproto_import")) - if (typeof message[".gogoproto.gogoproto_import"] !== "boolean") - return ".gogoproto.gogoproto_import: boolean expected"; - if (message[".gogoproto.protosizer_all"] != null && message.hasOwnProperty(".gogoproto.protosizer_all")) - if (typeof message[".gogoproto.protosizer_all"] !== "boolean") - return ".gogoproto.protosizer_all: boolean expected"; - if (message[".gogoproto.compare_all"] != null && message.hasOwnProperty(".gogoproto.compare_all")) - if (typeof message[".gogoproto.compare_all"] !== "boolean") - return ".gogoproto.compare_all: boolean expected"; - if (message[".gogoproto.typedecl_all"] != null && message.hasOwnProperty(".gogoproto.typedecl_all")) - if (typeof message[".gogoproto.typedecl_all"] !== "boolean") - return ".gogoproto.typedecl_all: boolean expected"; - if (message[".gogoproto.enumdecl_all"] != null && message.hasOwnProperty(".gogoproto.enumdecl_all")) - if (typeof message[".gogoproto.enumdecl_all"] !== "boolean") - return ".gogoproto.enumdecl_all: boolean expected"; - if (message[".gogoproto.goproto_registration"] != null && message.hasOwnProperty(".gogoproto.goproto_registration")) - if (typeof message[".gogoproto.goproto_registration"] !== "boolean") - return ".gogoproto.goproto_registration: boolean expected"; - if (message[".gogoproto.messagename_all"] != null && message.hasOwnProperty(".gogoproto.messagename_all")) - if (typeof message[".gogoproto.messagename_all"] !== "boolean") - return ".gogoproto.messagename_all: boolean expected"; - if (message[".gogoproto.goproto_sizecache_all"] != null && message.hasOwnProperty(".gogoproto.goproto_sizecache_all")) - if (typeof message[".gogoproto.goproto_sizecache_all"] !== "boolean") - return ".gogoproto.goproto_sizecache_all: boolean expected"; - if (message[".gogoproto.goproto_unkeyed_all"] != null && message.hasOwnProperty(".gogoproto.goproto_unkeyed_all")) - if (typeof message[".gogoproto.goproto_unkeyed_all"] !== "boolean") - return ".gogoproto.goproto_unkeyed_all: boolean expected"; return null; }; /** - * Creates a FileOptions message from a plain object. Also converts values to their respective internal types. + * Creates a FieldDescriptorProto message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.protobuf.FileOptions + * @memberof google.protobuf.FieldDescriptorProto * @static * @param {Object.} object Plain object - * @returns {google.protobuf.FileOptions} FileOptions + * @returns {google.protobuf.FieldDescriptorProto} FieldDescriptorProto */ - FileOptions.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.FileOptions) + FieldDescriptorProto.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.FieldDescriptorProto) return object; - let message = new $root.google.protobuf.FileOptions(); - if (object.java_package != null) - message.java_package = String(object.java_package); - if (object.java_outer_classname != null) - message.java_outer_classname = String(object.java_outer_classname); - if (object.java_multiple_files != null) - message.java_multiple_files = Boolean(object.java_multiple_files); - if (object.java_generate_equals_and_hash != null) - message.java_generate_equals_and_hash = Boolean(object.java_generate_equals_and_hash); - if (object.java_string_check_utf8 != null) - message.java_string_check_utf8 = Boolean(object.java_string_check_utf8); - switch (object.optimize_for) { - case "SPEED": + let message = new $root.google.protobuf.FieldDescriptorProto(); + if (object.name != null) + message.name = String(object.name); + if (object.number != null) + message.number = object.number | 0; + switch (object.label) { + case "LABEL_OPTIONAL": case 1: - message.optimize_for = 1; + message.label = 1; break; - case "CODE_SIZE": + case "LABEL_REQUIRED": case 2: - message.optimize_for = 2; + message.label = 2; break; - case "LITE_RUNTIME": + case "LABEL_REPEATED": case 3: - message.optimize_for = 3; + message.label = 3; break; } - if (object.go_package != null) - message.go_package = String(object.go_package); - if (object.cc_generic_services != null) - message.cc_generic_services = Boolean(object.cc_generic_services); - if (object.java_generic_services != null) - message.java_generic_services = Boolean(object.java_generic_services); - if (object.py_generic_services != null) - message.py_generic_services = Boolean(object.py_generic_services); - if (object.deprecated != null) - message.deprecated = Boolean(object.deprecated); - if (object.cc_enable_arenas != null) - message.cc_enable_arenas = Boolean(object.cc_enable_arenas); - if (object.objc_class_prefix != null) - message.objc_class_prefix = String(object.objc_class_prefix); - if (object.csharp_namespace != null) - message.csharp_namespace = String(object.csharp_namespace); - if (object.uninterpreted_option) { - if (!Array.isArray(object.uninterpreted_option)) - throw TypeError(".google.protobuf.FileOptions.uninterpreted_option: array expected"); - message.uninterpreted_option = []; - for (let i = 0; i < object.uninterpreted_option.length; ++i) { - if (typeof object.uninterpreted_option[i] !== "object") - throw TypeError(".google.protobuf.FileOptions.uninterpreted_option: object expected"); - message.uninterpreted_option[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpreted_option[i]); - } - } - if (object[".gogoproto.goproto_getters_all"] != null) - message[".gogoproto.goproto_getters_all"] = Boolean(object[".gogoproto.goproto_getters_all"]); - if (object[".gogoproto.goproto_enum_prefix_all"] != null) - message[".gogoproto.goproto_enum_prefix_all"] = Boolean(object[".gogoproto.goproto_enum_prefix_all"]); - if (object[".gogoproto.goproto_stringer_all"] != null) - message[".gogoproto.goproto_stringer_all"] = Boolean(object[".gogoproto.goproto_stringer_all"]); - if (object[".gogoproto.verbose_equal_all"] != null) - message[".gogoproto.verbose_equal_all"] = Boolean(object[".gogoproto.verbose_equal_all"]); - if (object[".gogoproto.face_all"] != null) - message[".gogoproto.face_all"] = Boolean(object[".gogoproto.face_all"]); - if (object[".gogoproto.gostring_all"] != null) - message[".gogoproto.gostring_all"] = Boolean(object[".gogoproto.gostring_all"]); - if (object[".gogoproto.populate_all"] != null) - message[".gogoproto.populate_all"] = Boolean(object[".gogoproto.populate_all"]); - if (object[".gogoproto.stringer_all"] != null) - message[".gogoproto.stringer_all"] = Boolean(object[".gogoproto.stringer_all"]); - if (object[".gogoproto.onlyone_all"] != null) - message[".gogoproto.onlyone_all"] = Boolean(object[".gogoproto.onlyone_all"]); - if (object[".gogoproto.equal_all"] != null) - message[".gogoproto.equal_all"] = Boolean(object[".gogoproto.equal_all"]); - if (object[".gogoproto.description_all"] != null) - message[".gogoproto.description_all"] = Boolean(object[".gogoproto.description_all"]); - if (object[".gogoproto.testgen_all"] != null) - message[".gogoproto.testgen_all"] = Boolean(object[".gogoproto.testgen_all"]); - if (object[".gogoproto.benchgen_all"] != null) - message[".gogoproto.benchgen_all"] = Boolean(object[".gogoproto.benchgen_all"]); - if (object[".gogoproto.marshaler_all"] != null) - message[".gogoproto.marshaler_all"] = Boolean(object[".gogoproto.marshaler_all"]); - if (object[".gogoproto.unmarshaler_all"] != null) - message[".gogoproto.unmarshaler_all"] = Boolean(object[".gogoproto.unmarshaler_all"]); - if (object[".gogoproto.stable_marshaler_all"] != null) - message[".gogoproto.stable_marshaler_all"] = Boolean(object[".gogoproto.stable_marshaler_all"]); - if (object[".gogoproto.sizer_all"] != null) - message[".gogoproto.sizer_all"] = Boolean(object[".gogoproto.sizer_all"]); - if (object[".gogoproto.goproto_enum_stringer_all"] != null) - message[".gogoproto.goproto_enum_stringer_all"] = Boolean(object[".gogoproto.goproto_enum_stringer_all"]); - if (object[".gogoproto.enum_stringer_all"] != null) - message[".gogoproto.enum_stringer_all"] = Boolean(object[".gogoproto.enum_stringer_all"]); - if (object[".gogoproto.unsafe_marshaler_all"] != null) - message[".gogoproto.unsafe_marshaler_all"] = Boolean(object[".gogoproto.unsafe_marshaler_all"]); - if (object[".gogoproto.unsafe_unmarshaler_all"] != null) - message[".gogoproto.unsafe_unmarshaler_all"] = Boolean(object[".gogoproto.unsafe_unmarshaler_all"]); - if (object[".gogoproto.goproto_extensions_map_all"] != null) - message[".gogoproto.goproto_extensions_map_all"] = Boolean(object[".gogoproto.goproto_extensions_map_all"]); - if (object[".gogoproto.goproto_unrecognized_all"] != null) - message[".gogoproto.goproto_unrecognized_all"] = Boolean(object[".gogoproto.goproto_unrecognized_all"]); - if (object[".gogoproto.gogoproto_import"] != null) - message[".gogoproto.gogoproto_import"] = Boolean(object[".gogoproto.gogoproto_import"]); - if (object[".gogoproto.protosizer_all"] != null) - message[".gogoproto.protosizer_all"] = Boolean(object[".gogoproto.protosizer_all"]); - if (object[".gogoproto.compare_all"] != null) - message[".gogoproto.compare_all"] = Boolean(object[".gogoproto.compare_all"]); - if (object[".gogoproto.typedecl_all"] != null) - message[".gogoproto.typedecl_all"] = Boolean(object[".gogoproto.typedecl_all"]); - if (object[".gogoproto.enumdecl_all"] != null) - message[".gogoproto.enumdecl_all"] = Boolean(object[".gogoproto.enumdecl_all"]); - if (object[".gogoproto.goproto_registration"] != null) - message[".gogoproto.goproto_registration"] = Boolean(object[".gogoproto.goproto_registration"]); - if (object[".gogoproto.messagename_all"] != null) - message[".gogoproto.messagename_all"] = Boolean(object[".gogoproto.messagename_all"]); - if (object[".gogoproto.goproto_sizecache_all"] != null) - message[".gogoproto.goproto_sizecache_all"] = Boolean(object[".gogoproto.goproto_sizecache_all"]); - if (object[".gogoproto.goproto_unkeyed_all"] != null) - message[".gogoproto.goproto_unkeyed_all"] = Boolean(object[".gogoproto.goproto_unkeyed_all"]); - return message; - }; - - /** - * Creates a plain object from a FileOptions message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.FileOptions - * @static - * @param {google.protobuf.FileOptions} message FileOptions - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - FileOptions.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.arrays || options.defaults) - object.uninterpreted_option = []; - if (options.defaults) { - object.java_package = ""; - object.java_outer_classname = ""; - object.optimize_for = options.enums === String ? "SPEED" : 1; - object.java_multiple_files = false; - object.go_package = ""; - object.cc_generic_services = false; - object.java_generic_services = false; - object.py_generic_services = false; - object.java_generate_equals_and_hash = false; - object.deprecated = false; - object.java_string_check_utf8 = false; - object.cc_enable_arenas = false; - object.objc_class_prefix = ""; - object.csharp_namespace = ""; - object[".gogoproto.goproto_getters_all"] = false; - object[".gogoproto.goproto_enum_prefix_all"] = false; - object[".gogoproto.goproto_stringer_all"] = false; - object[".gogoproto.verbose_equal_all"] = false; - object[".gogoproto.face_all"] = false; - object[".gogoproto.gostring_all"] = false; - object[".gogoproto.populate_all"] = false; - object[".gogoproto.stringer_all"] = false; - object[".gogoproto.onlyone_all"] = false; - object[".gogoproto.equal_all"] = false; - object[".gogoproto.description_all"] = false; - object[".gogoproto.testgen_all"] = false; - object[".gogoproto.benchgen_all"] = false; - object[".gogoproto.marshaler_all"] = false; - object[".gogoproto.unmarshaler_all"] = false; - object[".gogoproto.stable_marshaler_all"] = false; - object[".gogoproto.sizer_all"] = false; - object[".gogoproto.goproto_enum_stringer_all"] = false; - object[".gogoproto.enum_stringer_all"] = false; - object[".gogoproto.unsafe_marshaler_all"] = false; - object[".gogoproto.unsafe_unmarshaler_all"] = false; - object[".gogoproto.goproto_extensions_map_all"] = false; - object[".gogoproto.goproto_unrecognized_all"] = false; - object[".gogoproto.gogoproto_import"] = false; - object[".gogoproto.protosizer_all"] = false; - object[".gogoproto.compare_all"] = false; - object[".gogoproto.typedecl_all"] = false; - object[".gogoproto.enumdecl_all"] = false; - object[".gogoproto.goproto_registration"] = false; - object[".gogoproto.messagename_all"] = false; - object[".gogoproto.goproto_sizecache_all"] = false; - object[".gogoproto.goproto_unkeyed_all"] = false; + switch (object.type) { + case "TYPE_DOUBLE": + case 1: + message.type = 1; + break; + case "TYPE_FLOAT": + case 2: + message.type = 2; + break; + case "TYPE_INT64": + case 3: + message.type = 3; + break; + case "TYPE_UINT64": + case 4: + message.type = 4; + break; + case "TYPE_INT32": + case 5: + message.type = 5; + break; + case "TYPE_FIXED64": + case 6: + message.type = 6; + break; + case "TYPE_FIXED32": + case 7: + message.type = 7; + break; + case "TYPE_BOOL": + case 8: + message.type = 8; + break; + case "TYPE_STRING": + case 9: + message.type = 9; + break; + case "TYPE_GROUP": + case 10: + message.type = 10; + break; + case "TYPE_MESSAGE": + case 11: + message.type = 11; + break; + case "TYPE_BYTES": + case 12: + message.type = 12; + break; + case "TYPE_UINT32": + case 13: + message.type = 13; + break; + case "TYPE_ENUM": + case 14: + message.type = 14; + break; + case "TYPE_SFIXED32": + case 15: + message.type = 15; + break; + case "TYPE_SFIXED64": + case 16: + message.type = 16; + break; + case "TYPE_SINT32": + case 17: + message.type = 17; + break; + case "TYPE_SINT64": + case 18: + message.type = 18; + break; } - if (message.java_package != null && message.hasOwnProperty("java_package")) - object.java_package = message.java_package; - if (message.java_outer_classname != null && message.hasOwnProperty("java_outer_classname")) - object.java_outer_classname = message.java_outer_classname; - if (message.optimize_for != null && message.hasOwnProperty("optimize_for")) - object.optimize_for = options.enums === String ? $root.google.protobuf.FileOptions.OptimizeMode[message.optimize_for] : message.optimize_for; - if (message.java_multiple_files != null && message.hasOwnProperty("java_multiple_files")) - object.java_multiple_files = message.java_multiple_files; - if (message.go_package != null && message.hasOwnProperty("go_package")) - object.go_package = message.go_package; - if (message.cc_generic_services != null && message.hasOwnProperty("cc_generic_services")) - object.cc_generic_services = message.cc_generic_services; - if (message.java_generic_services != null && message.hasOwnProperty("java_generic_services")) - object.java_generic_services = message.java_generic_services; - if (message.py_generic_services != null && message.hasOwnProperty("py_generic_services")) - object.py_generic_services = message.py_generic_services; - if (message.java_generate_equals_and_hash != null && message.hasOwnProperty("java_generate_equals_and_hash")) - object.java_generate_equals_and_hash = message.java_generate_equals_and_hash; - if (message.deprecated != null && message.hasOwnProperty("deprecated")) - object.deprecated = message.deprecated; - if (message.java_string_check_utf8 != null && message.hasOwnProperty("java_string_check_utf8")) - object.java_string_check_utf8 = message.java_string_check_utf8; - if (message.cc_enable_arenas != null && message.hasOwnProperty("cc_enable_arenas")) - object.cc_enable_arenas = message.cc_enable_arenas; - if (message.objc_class_prefix != null && message.hasOwnProperty("objc_class_prefix")) - object.objc_class_prefix = message.objc_class_prefix; - if (message.csharp_namespace != null && message.hasOwnProperty("csharp_namespace")) - object.csharp_namespace = message.csharp_namespace; - if (message.uninterpreted_option && message.uninterpreted_option.length) { - object.uninterpreted_option = []; - for (let j = 0; j < message.uninterpreted_option.length; ++j) - object.uninterpreted_option[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpreted_option[j], options); + if (object.type_name != null) + message.type_name = String(object.type_name); + if (object.extendee != null) + message.extendee = String(object.extendee); + if (object.default_value != null) + message.default_value = String(object.default_value); + if (object.oneof_index != null) + message.oneof_index = object.oneof_index | 0; + if (object.json_name != null) + message.json_name = String(object.json_name); + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".google.protobuf.FieldDescriptorProto.options: object expected"); + message.options = $root.google.protobuf.FieldOptions.fromObject(object.options); } - if (message[".gogoproto.goproto_getters_all"] != null && message.hasOwnProperty(".gogoproto.goproto_getters_all")) - object[".gogoproto.goproto_getters_all"] = message[".gogoproto.goproto_getters_all"]; - if (message[".gogoproto.goproto_enum_prefix_all"] != null && message.hasOwnProperty(".gogoproto.goproto_enum_prefix_all")) - object[".gogoproto.goproto_enum_prefix_all"] = message[".gogoproto.goproto_enum_prefix_all"]; - if (message[".gogoproto.goproto_stringer_all"] != null && message.hasOwnProperty(".gogoproto.goproto_stringer_all")) - object[".gogoproto.goproto_stringer_all"] = message[".gogoproto.goproto_stringer_all"]; - if (message[".gogoproto.verbose_equal_all"] != null && message.hasOwnProperty(".gogoproto.verbose_equal_all")) - object[".gogoproto.verbose_equal_all"] = message[".gogoproto.verbose_equal_all"]; - if (message[".gogoproto.face_all"] != null && message.hasOwnProperty(".gogoproto.face_all")) - object[".gogoproto.face_all"] = message[".gogoproto.face_all"]; - if (message[".gogoproto.gostring_all"] != null && message.hasOwnProperty(".gogoproto.gostring_all")) - object[".gogoproto.gostring_all"] = message[".gogoproto.gostring_all"]; - if (message[".gogoproto.populate_all"] != null && message.hasOwnProperty(".gogoproto.populate_all")) - object[".gogoproto.populate_all"] = message[".gogoproto.populate_all"]; - if (message[".gogoproto.stringer_all"] != null && message.hasOwnProperty(".gogoproto.stringer_all")) - object[".gogoproto.stringer_all"] = message[".gogoproto.stringer_all"]; - if (message[".gogoproto.onlyone_all"] != null && message.hasOwnProperty(".gogoproto.onlyone_all")) - object[".gogoproto.onlyone_all"] = message[".gogoproto.onlyone_all"]; - if (message[".gogoproto.equal_all"] != null && message.hasOwnProperty(".gogoproto.equal_all")) - object[".gogoproto.equal_all"] = message[".gogoproto.equal_all"]; - if (message[".gogoproto.description_all"] != null && message.hasOwnProperty(".gogoproto.description_all")) - object[".gogoproto.description_all"] = message[".gogoproto.description_all"]; - if (message[".gogoproto.testgen_all"] != null && message.hasOwnProperty(".gogoproto.testgen_all")) - object[".gogoproto.testgen_all"] = message[".gogoproto.testgen_all"]; - if (message[".gogoproto.benchgen_all"] != null && message.hasOwnProperty(".gogoproto.benchgen_all")) - object[".gogoproto.benchgen_all"] = message[".gogoproto.benchgen_all"]; - if (message[".gogoproto.marshaler_all"] != null && message.hasOwnProperty(".gogoproto.marshaler_all")) - object[".gogoproto.marshaler_all"] = message[".gogoproto.marshaler_all"]; - if (message[".gogoproto.unmarshaler_all"] != null && message.hasOwnProperty(".gogoproto.unmarshaler_all")) - object[".gogoproto.unmarshaler_all"] = message[".gogoproto.unmarshaler_all"]; - if (message[".gogoproto.stable_marshaler_all"] != null && message.hasOwnProperty(".gogoproto.stable_marshaler_all")) - object[".gogoproto.stable_marshaler_all"] = message[".gogoproto.stable_marshaler_all"]; - if (message[".gogoproto.sizer_all"] != null && message.hasOwnProperty(".gogoproto.sizer_all")) - object[".gogoproto.sizer_all"] = message[".gogoproto.sizer_all"]; - if (message[".gogoproto.goproto_enum_stringer_all"] != null && message.hasOwnProperty(".gogoproto.goproto_enum_stringer_all")) - object[".gogoproto.goproto_enum_stringer_all"] = message[".gogoproto.goproto_enum_stringer_all"]; - if (message[".gogoproto.enum_stringer_all"] != null && message.hasOwnProperty(".gogoproto.enum_stringer_all")) - object[".gogoproto.enum_stringer_all"] = message[".gogoproto.enum_stringer_all"]; - if (message[".gogoproto.unsafe_marshaler_all"] != null && message.hasOwnProperty(".gogoproto.unsafe_marshaler_all")) - object[".gogoproto.unsafe_marshaler_all"] = message[".gogoproto.unsafe_marshaler_all"]; - if (message[".gogoproto.unsafe_unmarshaler_all"] != null && message.hasOwnProperty(".gogoproto.unsafe_unmarshaler_all")) - object[".gogoproto.unsafe_unmarshaler_all"] = message[".gogoproto.unsafe_unmarshaler_all"]; - if (message[".gogoproto.goproto_extensions_map_all"] != null && message.hasOwnProperty(".gogoproto.goproto_extensions_map_all")) - object[".gogoproto.goproto_extensions_map_all"] = message[".gogoproto.goproto_extensions_map_all"]; - if (message[".gogoproto.goproto_unrecognized_all"] != null && message.hasOwnProperty(".gogoproto.goproto_unrecognized_all")) - object[".gogoproto.goproto_unrecognized_all"] = message[".gogoproto.goproto_unrecognized_all"]; - if (message[".gogoproto.gogoproto_import"] != null && message.hasOwnProperty(".gogoproto.gogoproto_import")) - object[".gogoproto.gogoproto_import"] = message[".gogoproto.gogoproto_import"]; - if (message[".gogoproto.protosizer_all"] != null && message.hasOwnProperty(".gogoproto.protosizer_all")) - object[".gogoproto.protosizer_all"] = message[".gogoproto.protosizer_all"]; - if (message[".gogoproto.compare_all"] != null && message.hasOwnProperty(".gogoproto.compare_all")) - object[".gogoproto.compare_all"] = message[".gogoproto.compare_all"]; - if (message[".gogoproto.typedecl_all"] != null && message.hasOwnProperty(".gogoproto.typedecl_all")) - object[".gogoproto.typedecl_all"] = message[".gogoproto.typedecl_all"]; - if (message[".gogoproto.enumdecl_all"] != null && message.hasOwnProperty(".gogoproto.enumdecl_all")) - object[".gogoproto.enumdecl_all"] = message[".gogoproto.enumdecl_all"]; - if (message[".gogoproto.goproto_registration"] != null && message.hasOwnProperty(".gogoproto.goproto_registration")) - object[".gogoproto.goproto_registration"] = message[".gogoproto.goproto_registration"]; - if (message[".gogoproto.messagename_all"] != null && message.hasOwnProperty(".gogoproto.messagename_all")) - object[".gogoproto.messagename_all"] = message[".gogoproto.messagename_all"]; - if (message[".gogoproto.goproto_sizecache_all"] != null && message.hasOwnProperty(".gogoproto.goproto_sizecache_all")) - object[".gogoproto.goproto_sizecache_all"] = message[".gogoproto.goproto_sizecache_all"]; - if (message[".gogoproto.goproto_unkeyed_all"] != null && message.hasOwnProperty(".gogoproto.goproto_unkeyed_all")) - object[".gogoproto.goproto_unkeyed_all"] = message[".gogoproto.goproto_unkeyed_all"]; + return message; + }; + + /** + * Creates a plain object from a FieldDescriptorProto message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.FieldDescriptorProto + * @static + * @param {google.protobuf.FieldDescriptorProto} message FieldDescriptorProto + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FieldDescriptorProto.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + object.name = ""; + object.extendee = ""; + object.number = 0; + object.label = options.enums === String ? "LABEL_OPTIONAL" : 1; + object.type = options.enums === String ? "TYPE_DOUBLE" : 1; + object.type_name = ""; + object.default_value = ""; + object.options = null; + object.oneof_index = 0; + object.json_name = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.extendee != null && message.hasOwnProperty("extendee")) + object.extendee = message.extendee; + if (message.number != null && message.hasOwnProperty("number")) + object.number = message.number; + if (message.label != null && message.hasOwnProperty("label")) + object.label = options.enums === String ? $root.google.protobuf.FieldDescriptorProto.Label[message.label] : message.label; + if (message.type != null && message.hasOwnProperty("type")) + object.type = options.enums === String ? $root.google.protobuf.FieldDescriptorProto.Type[message.type] : message.type; + if (message.type_name != null && message.hasOwnProperty("type_name")) + object.type_name = message.type_name; + if (message.default_value != null && message.hasOwnProperty("default_value")) + object.default_value = message.default_value; + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.google.protobuf.FieldOptions.toObject(message.options, options); + if (message.oneof_index != null && message.hasOwnProperty("oneof_index")) + object.oneof_index = message.oneof_index; + if (message.json_name != null && message.hasOwnProperty("json_name")) + object.json_name = message.json_name; return object; }; /** - * Converts this FileOptions to JSON. + * Converts this FieldDescriptorProto to JSON. * @function toJSON - * @memberof google.protobuf.FileOptions + * @memberof google.protobuf.FieldDescriptorProto * @instance * @returns {Object.} JSON object */ - FileOptions.prototype.toJSON = function toJSON() { + FieldDescriptorProto.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * OptimizeMode enum. - * @name google.protobuf.FileOptions.OptimizeMode + * Type enum. + * @name google.protobuf.FieldDescriptorProto.Type * @enum {number} - * @property {number} SPEED=1 SPEED value - * @property {number} CODE_SIZE=2 CODE_SIZE value - * @property {number} LITE_RUNTIME=3 LITE_RUNTIME value + * @property {number} TYPE_DOUBLE=1 TYPE_DOUBLE value + * @property {number} TYPE_FLOAT=2 TYPE_FLOAT value + * @property {number} TYPE_INT64=3 TYPE_INT64 value + * @property {number} TYPE_UINT64=4 TYPE_UINT64 value + * @property {number} TYPE_INT32=5 TYPE_INT32 value + * @property {number} TYPE_FIXED64=6 TYPE_FIXED64 value + * @property {number} TYPE_FIXED32=7 TYPE_FIXED32 value + * @property {number} TYPE_BOOL=8 TYPE_BOOL value + * @property {number} TYPE_STRING=9 TYPE_STRING value + * @property {number} TYPE_GROUP=10 TYPE_GROUP value + * @property {number} TYPE_MESSAGE=11 TYPE_MESSAGE value + * @property {number} TYPE_BYTES=12 TYPE_BYTES value + * @property {number} TYPE_UINT32=13 TYPE_UINT32 value + * @property {number} TYPE_ENUM=14 TYPE_ENUM value + * @property {number} TYPE_SFIXED32=15 TYPE_SFIXED32 value + * @property {number} TYPE_SFIXED64=16 TYPE_SFIXED64 value + * @property {number} TYPE_SINT32=17 TYPE_SINT32 value + * @property {number} TYPE_SINT64=18 TYPE_SINT64 value */ - FileOptions.OptimizeMode = (function() { + FieldDescriptorProto.Type = (function() { const valuesById = {}, values = Object.create(valuesById); - values[valuesById[1] = "SPEED"] = 1; - values[valuesById[2] = "CODE_SIZE"] = 2; - values[valuesById[3] = "LITE_RUNTIME"] = 3; + values[valuesById[1] = "TYPE_DOUBLE"] = 1; + values[valuesById[2] = "TYPE_FLOAT"] = 2; + values[valuesById[3] = "TYPE_INT64"] = 3; + values[valuesById[4] = "TYPE_UINT64"] = 4; + values[valuesById[5] = "TYPE_INT32"] = 5; + values[valuesById[6] = "TYPE_FIXED64"] = 6; + values[valuesById[7] = "TYPE_FIXED32"] = 7; + values[valuesById[8] = "TYPE_BOOL"] = 8; + values[valuesById[9] = "TYPE_STRING"] = 9; + values[valuesById[10] = "TYPE_GROUP"] = 10; + values[valuesById[11] = "TYPE_MESSAGE"] = 11; + values[valuesById[12] = "TYPE_BYTES"] = 12; + values[valuesById[13] = "TYPE_UINT32"] = 13; + values[valuesById[14] = "TYPE_ENUM"] = 14; + values[valuesById[15] = "TYPE_SFIXED32"] = 15; + values[valuesById[16] = "TYPE_SFIXED64"] = 16; + values[valuesById[17] = "TYPE_SINT32"] = 17; + values[valuesById[18] = "TYPE_SINT64"] = 18; return values; })(); - return FileOptions; + /** + * Label enum. + * @name google.protobuf.FieldDescriptorProto.Label + * @enum {number} + * @property {number} LABEL_OPTIONAL=1 LABEL_OPTIONAL value + * @property {number} LABEL_REQUIRED=2 LABEL_REQUIRED value + * @property {number} LABEL_REPEATED=3 LABEL_REPEATED value + */ + FieldDescriptorProto.Label = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[1] = "LABEL_OPTIONAL"] = 1; + values[valuesById[2] = "LABEL_REQUIRED"] = 2; + values[valuesById[3] = "LABEL_REPEATED"] = 3; + return values; + })(); + + return FieldDescriptorProto; })(); - protobuf.MessageOptions = (function() { + protobuf.OneofDescriptorProto = (function() { /** - * Properties of a MessageOptions. + * Properties of an OneofDescriptorProto. * @memberof google.protobuf - * @interface IMessageOptions - * @property {boolean|null} [message_set_wire_format] MessageOptions message_set_wire_format - * @property {boolean|null} [no_standard_descriptor_accessor] MessageOptions no_standard_descriptor_accessor - * @property {boolean|null} [deprecated] MessageOptions deprecated - * @property {boolean|null} [map_entry] MessageOptions map_entry - * @property {Array.|null} [uninterpreted_option] MessageOptions uninterpreted_option - * @property {boolean|null} [".gogoproto.goproto_getters"] MessageOptions .gogoproto.goproto_getters - * @property {boolean|null} [".gogoproto.goproto_stringer"] MessageOptions .gogoproto.goproto_stringer - * @property {boolean|null} [".gogoproto.verbose_equal"] MessageOptions .gogoproto.verbose_equal - * @property {boolean|null} [".gogoproto.face"] MessageOptions .gogoproto.face - * @property {boolean|null} [".gogoproto.gostring"] MessageOptions .gogoproto.gostring - * @property {boolean|null} [".gogoproto.populate"] MessageOptions .gogoproto.populate - * @property {boolean|null} [".gogoproto.stringer"] MessageOptions .gogoproto.stringer - * @property {boolean|null} [".gogoproto.onlyone"] MessageOptions .gogoproto.onlyone - * @property {boolean|null} [".gogoproto.equal"] MessageOptions .gogoproto.equal - * @property {boolean|null} [".gogoproto.description"] MessageOptions .gogoproto.description - * @property {boolean|null} [".gogoproto.testgen"] MessageOptions .gogoproto.testgen - * @property {boolean|null} [".gogoproto.benchgen"] MessageOptions .gogoproto.benchgen - * @property {boolean|null} [".gogoproto.marshaler"] MessageOptions .gogoproto.marshaler - * @property {boolean|null} [".gogoproto.unmarshaler"] MessageOptions .gogoproto.unmarshaler - * @property {boolean|null} [".gogoproto.stable_marshaler"] MessageOptions .gogoproto.stable_marshaler - * @property {boolean|null} [".gogoproto.sizer"] MessageOptions .gogoproto.sizer - * @property {boolean|null} [".gogoproto.unsafe_marshaler"] MessageOptions .gogoproto.unsafe_marshaler - * @property {boolean|null} [".gogoproto.unsafe_unmarshaler"] MessageOptions .gogoproto.unsafe_unmarshaler - * @property {boolean|null} [".gogoproto.goproto_extensions_map"] MessageOptions .gogoproto.goproto_extensions_map - * @property {boolean|null} [".gogoproto.goproto_unrecognized"] MessageOptions .gogoproto.goproto_unrecognized - * @property {boolean|null} [".gogoproto.protosizer"] MessageOptions .gogoproto.protosizer - * @property {boolean|null} [".gogoproto.compare"] MessageOptions .gogoproto.compare - * @property {boolean|null} [".gogoproto.typedecl"] MessageOptions .gogoproto.typedecl - * @property {boolean|null} [".gogoproto.messagename"] MessageOptions .gogoproto.messagename - * @property {boolean|null} [".gogoproto.goproto_sizecache"] MessageOptions .gogoproto.goproto_sizecache - * @property {boolean|null} [".gogoproto.goproto_unkeyed"] MessageOptions .gogoproto.goproto_unkeyed - * @property {string|null} [".cosmos_proto.interface_type"] MessageOptions .cosmos_proto.interface_type - * @property {string|null} [".cosmos_proto.implements_interface"] MessageOptions .cosmos_proto.implements_interface + * @interface IOneofDescriptorProto + * @property {string|null} [name] OneofDescriptorProto name + * @property {google.protobuf.IOneofOptions|null} [options] OneofDescriptorProto options */ /** - * Constructs a new MessageOptions. + * Constructs a new OneofDescriptorProto. * @memberof google.protobuf - * @classdesc Represents a MessageOptions. - * @implements IMessageOptions + * @classdesc Represents an OneofDescriptorProto. + * @implements IOneofDescriptorProto * @constructor - * @param {google.protobuf.IMessageOptions=} [properties] Properties to set + * @param {google.protobuf.IOneofDescriptorProto=} [properties] Properties to set */ - function MessageOptions(properties) { - this.uninterpreted_option = []; + function OneofDescriptorProto(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -12298,482 +18146,297 @@ export const google = $root.google = (() => { } /** - * MessageOptions message_set_wire_format. - * @member {boolean} message_set_wire_format - * @memberof google.protobuf.MessageOptions - * @instance - */ - MessageOptions.prototype.message_set_wire_format = false; - - /** - * MessageOptions no_standard_descriptor_accessor. - * @member {boolean} no_standard_descriptor_accessor - * @memberof google.protobuf.MessageOptions - * @instance - */ - MessageOptions.prototype.no_standard_descriptor_accessor = false; - - /** - * MessageOptions deprecated. - * @member {boolean} deprecated - * @memberof google.protobuf.MessageOptions - * @instance - */ - MessageOptions.prototype.deprecated = false; - - /** - * MessageOptions map_entry. - * @member {boolean} map_entry - * @memberof google.protobuf.MessageOptions - * @instance - */ - MessageOptions.prototype.map_entry = false; - - /** - * MessageOptions uninterpreted_option. - * @member {Array.} uninterpreted_option - * @memberof google.protobuf.MessageOptions - * @instance - */ - MessageOptions.prototype.uninterpreted_option = $util.emptyArray; - - /** - * MessageOptions .gogoproto.goproto_getters. - * @member {boolean} .gogoproto.goproto_getters - * @memberof google.protobuf.MessageOptions - * @instance - */ - MessageOptions.prototype[".gogoproto.goproto_getters"] = false; - - /** - * MessageOptions .gogoproto.goproto_stringer. - * @member {boolean} .gogoproto.goproto_stringer - * @memberof google.protobuf.MessageOptions - * @instance - */ - MessageOptions.prototype[".gogoproto.goproto_stringer"] = false; - - /** - * MessageOptions .gogoproto.verbose_equal. - * @member {boolean} .gogoproto.verbose_equal - * @memberof google.protobuf.MessageOptions - * @instance - */ - MessageOptions.prototype[".gogoproto.verbose_equal"] = false; - - /** - * MessageOptions .gogoproto.face. - * @member {boolean} .gogoproto.face - * @memberof google.protobuf.MessageOptions - * @instance - */ - MessageOptions.prototype[".gogoproto.face"] = false; - - /** - * MessageOptions .gogoproto.gostring. - * @member {boolean} .gogoproto.gostring - * @memberof google.protobuf.MessageOptions - * @instance - */ - MessageOptions.prototype[".gogoproto.gostring"] = false; - - /** - * MessageOptions .gogoproto.populate. - * @member {boolean} .gogoproto.populate - * @memberof google.protobuf.MessageOptions - * @instance - */ - MessageOptions.prototype[".gogoproto.populate"] = false; - - /** - * MessageOptions .gogoproto.stringer. - * @member {boolean} .gogoproto.stringer - * @memberof google.protobuf.MessageOptions - * @instance - */ - MessageOptions.prototype[".gogoproto.stringer"] = false; - - /** - * MessageOptions .gogoproto.onlyone. - * @member {boolean} .gogoproto.onlyone - * @memberof google.protobuf.MessageOptions - * @instance - */ - MessageOptions.prototype[".gogoproto.onlyone"] = false; - - /** - * MessageOptions .gogoproto.equal. - * @member {boolean} .gogoproto.equal - * @memberof google.protobuf.MessageOptions - * @instance - */ - MessageOptions.prototype[".gogoproto.equal"] = false; - - /** - * MessageOptions .gogoproto.description. - * @member {boolean} .gogoproto.description - * @memberof google.protobuf.MessageOptions - * @instance - */ - MessageOptions.prototype[".gogoproto.description"] = false; - - /** - * MessageOptions .gogoproto.testgen. - * @member {boolean} .gogoproto.testgen - * @memberof google.protobuf.MessageOptions - * @instance - */ - MessageOptions.prototype[".gogoproto.testgen"] = false; - - /** - * MessageOptions .gogoproto.benchgen. - * @member {boolean} .gogoproto.benchgen - * @memberof google.protobuf.MessageOptions - * @instance - */ - MessageOptions.prototype[".gogoproto.benchgen"] = false; - - /** - * MessageOptions .gogoproto.marshaler. - * @member {boolean} .gogoproto.marshaler - * @memberof google.protobuf.MessageOptions + * OneofDescriptorProto name. + * @member {string} name + * @memberof google.protobuf.OneofDescriptorProto * @instance */ - MessageOptions.prototype[".gogoproto.marshaler"] = false; + OneofDescriptorProto.prototype.name = ""; /** - * MessageOptions .gogoproto.unmarshaler. - * @member {boolean} .gogoproto.unmarshaler - * @memberof google.protobuf.MessageOptions + * OneofDescriptorProto options. + * @member {google.protobuf.IOneofOptions|null|undefined} options + * @memberof google.protobuf.OneofDescriptorProto * @instance */ - MessageOptions.prototype[".gogoproto.unmarshaler"] = false; + OneofDescriptorProto.prototype.options = null; /** - * MessageOptions .gogoproto.stable_marshaler. - * @member {boolean} .gogoproto.stable_marshaler - * @memberof google.protobuf.MessageOptions - * @instance + * Encodes the specified OneofDescriptorProto message. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages. + * @function encode + * @memberof google.protobuf.OneofDescriptorProto + * @static + * @param {google.protobuf.IOneofDescriptorProto} message OneofDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - MessageOptions.prototype[".gogoproto.stable_marshaler"] = false; + OneofDescriptorProto.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + $root.google.protobuf.OneofOptions.encode(message.options, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; /** - * MessageOptions .gogoproto.sizer. - * @member {boolean} .gogoproto.sizer - * @memberof google.protobuf.MessageOptions - * @instance + * Encodes the specified OneofDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.OneofDescriptorProto + * @static + * @param {google.protobuf.IOneofDescriptorProto} message OneofDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - MessageOptions.prototype[".gogoproto.sizer"] = false; + OneofDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * MessageOptions .gogoproto.unsafe_marshaler. - * @member {boolean} .gogoproto.unsafe_marshaler - * @memberof google.protobuf.MessageOptions - * @instance + * Decodes an OneofDescriptorProto message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.OneofDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.OneofDescriptorProto} OneofDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MessageOptions.prototype[".gogoproto.unsafe_marshaler"] = false; + OneofDescriptorProto.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.OneofDescriptorProto(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.options = $root.google.protobuf.OneofOptions.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * MessageOptions .gogoproto.unsafe_unmarshaler. - * @member {boolean} .gogoproto.unsafe_unmarshaler - * @memberof google.protobuf.MessageOptions - * @instance + * Decodes an OneofDescriptorProto message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.OneofDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.OneofDescriptorProto} OneofDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MessageOptions.prototype[".gogoproto.unsafe_unmarshaler"] = false; + OneofDescriptorProto.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * MessageOptions .gogoproto.goproto_extensions_map. - * @member {boolean} .gogoproto.goproto_extensions_map - * @memberof google.protobuf.MessageOptions - * @instance + * Verifies an OneofDescriptorProto message. + * @function verify + * @memberof google.protobuf.OneofDescriptorProto + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MessageOptions.prototype[".gogoproto.goproto_extensions_map"] = false; + OneofDescriptorProto.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.options != null && message.hasOwnProperty("options")) { + let error = $root.google.protobuf.OneofOptions.verify(message.options); + if (error) + return "options." + error; + } + return null; + }; /** - * MessageOptions .gogoproto.goproto_unrecognized. - * @member {boolean} .gogoproto.goproto_unrecognized - * @memberof google.protobuf.MessageOptions - * @instance + * Creates an OneofDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.OneofDescriptorProto + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.OneofDescriptorProto} OneofDescriptorProto */ - MessageOptions.prototype[".gogoproto.goproto_unrecognized"] = false; + OneofDescriptorProto.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.OneofDescriptorProto) + return object; + let message = new $root.google.protobuf.OneofDescriptorProto(); + if (object.name != null) + message.name = String(object.name); + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".google.protobuf.OneofDescriptorProto.options: object expected"); + message.options = $root.google.protobuf.OneofOptions.fromObject(object.options); + } + return message; + }; /** - * MessageOptions .gogoproto.protosizer. - * @member {boolean} .gogoproto.protosizer - * @memberof google.protobuf.MessageOptions - * @instance + * Creates a plain object from an OneofDescriptorProto message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.OneofDescriptorProto + * @static + * @param {google.protobuf.OneofDescriptorProto} message OneofDescriptorProto + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - MessageOptions.prototype[".gogoproto.protosizer"] = false; + OneofDescriptorProto.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + object.name = ""; + object.options = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.google.protobuf.OneofOptions.toObject(message.options, options); + return object; + }; /** - * MessageOptions .gogoproto.compare. - * @member {boolean} .gogoproto.compare - * @memberof google.protobuf.MessageOptions + * Converts this OneofDescriptorProto to JSON. + * @function toJSON + * @memberof google.protobuf.OneofDescriptorProto * @instance + * @returns {Object.} JSON object */ - MessageOptions.prototype[".gogoproto.compare"] = false; + OneofDescriptorProto.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * MessageOptions .gogoproto.typedecl. - * @member {boolean} .gogoproto.typedecl - * @memberof google.protobuf.MessageOptions - * @instance - */ - MessageOptions.prototype[".gogoproto.typedecl"] = false; + return OneofDescriptorProto; + })(); + + protobuf.EnumDescriptorProto = (function() { /** - * MessageOptions .gogoproto.messagename. - * @member {boolean} .gogoproto.messagename - * @memberof google.protobuf.MessageOptions - * @instance + * Properties of an EnumDescriptorProto. + * @memberof google.protobuf + * @interface IEnumDescriptorProto + * @property {string|null} [name] EnumDescriptorProto name + * @property {Array.|null} [value] EnumDescriptorProto value + * @property {google.protobuf.IEnumOptions|null} [options] EnumDescriptorProto options */ - MessageOptions.prototype[".gogoproto.messagename"] = false; /** - * MessageOptions .gogoproto.goproto_sizecache. - * @member {boolean} .gogoproto.goproto_sizecache - * @memberof google.protobuf.MessageOptions - * @instance + * Constructs a new EnumDescriptorProto. + * @memberof google.protobuf + * @classdesc Represents an EnumDescriptorProto. + * @implements IEnumDescriptorProto + * @constructor + * @param {google.protobuf.IEnumDescriptorProto=} [properties] Properties to set */ - MessageOptions.prototype[".gogoproto.goproto_sizecache"] = false; + function EnumDescriptorProto(properties) { + this.value = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * MessageOptions .gogoproto.goproto_unkeyed. - * @member {boolean} .gogoproto.goproto_unkeyed - * @memberof google.protobuf.MessageOptions + * EnumDescriptorProto name. + * @member {string} name + * @memberof google.protobuf.EnumDescriptorProto * @instance */ - MessageOptions.prototype[".gogoproto.goproto_unkeyed"] = false; + EnumDescriptorProto.prototype.name = ""; /** - * MessageOptions .cosmos_proto.interface_type. - * @member {string} .cosmos_proto.interface_type - * @memberof google.protobuf.MessageOptions + * EnumDescriptorProto value. + * @member {Array.} value + * @memberof google.protobuf.EnumDescriptorProto * @instance */ - MessageOptions.prototype[".cosmos_proto.interface_type"] = ""; + EnumDescriptorProto.prototype.value = $util.emptyArray; /** - * MessageOptions .cosmos_proto.implements_interface. - * @member {string} .cosmos_proto.implements_interface - * @memberof google.protobuf.MessageOptions + * EnumDescriptorProto options. + * @member {google.protobuf.IEnumOptions|null|undefined} options + * @memberof google.protobuf.EnumDescriptorProto * @instance */ - MessageOptions.prototype[".cosmos_proto.implements_interface"] = ""; + EnumDescriptorProto.prototype.options = null; /** - * Encodes the specified MessageOptions message. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages. + * Encodes the specified EnumDescriptorProto message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages. * @function encode - * @memberof google.protobuf.MessageOptions + * @memberof google.protobuf.EnumDescriptorProto * @static - * @param {google.protobuf.IMessageOptions} message MessageOptions message or plain object to encode + * @param {google.protobuf.IEnumDescriptorProto} message EnumDescriptorProto message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MessageOptions.encode = function encode(message, writer) { + EnumDescriptorProto.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.message_set_wire_format != null && Object.hasOwnProperty.call(message, "message_set_wire_format")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.message_set_wire_format); - if (message.no_standard_descriptor_accessor != null && Object.hasOwnProperty.call(message, "no_standard_descriptor_accessor")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.no_standard_descriptor_accessor); - if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.deprecated); - if (message.map_entry != null && Object.hasOwnProperty.call(message, "map_entry")) - writer.uint32(/* id 7, wireType 0 =*/56).bool(message.map_entry); - if (message.uninterpreted_option != null && message.uninterpreted_option.length) - for (let i = 0; i < message.uninterpreted_option.length; ++i) - $root.google.protobuf.UninterpretedOption.encode(message.uninterpreted_option[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); - if (message[".gogoproto.goproto_getters"] != null && Object.hasOwnProperty.call(message, ".gogoproto.goproto_getters")) - writer.uint32(/* id 64001, wireType 0 =*/512008).bool(message[".gogoproto.goproto_getters"]); - if (message[".gogoproto.goproto_stringer"] != null && Object.hasOwnProperty.call(message, ".gogoproto.goproto_stringer")) - writer.uint32(/* id 64003, wireType 0 =*/512024).bool(message[".gogoproto.goproto_stringer"]); - if (message[".gogoproto.verbose_equal"] != null && Object.hasOwnProperty.call(message, ".gogoproto.verbose_equal")) - writer.uint32(/* id 64004, wireType 0 =*/512032).bool(message[".gogoproto.verbose_equal"]); - if (message[".gogoproto.face"] != null && Object.hasOwnProperty.call(message, ".gogoproto.face")) - writer.uint32(/* id 64005, wireType 0 =*/512040).bool(message[".gogoproto.face"]); - if (message[".gogoproto.gostring"] != null && Object.hasOwnProperty.call(message, ".gogoproto.gostring")) - writer.uint32(/* id 64006, wireType 0 =*/512048).bool(message[".gogoproto.gostring"]); - if (message[".gogoproto.populate"] != null && Object.hasOwnProperty.call(message, ".gogoproto.populate")) - writer.uint32(/* id 64007, wireType 0 =*/512056).bool(message[".gogoproto.populate"]); - if (message[".gogoproto.onlyone"] != null && Object.hasOwnProperty.call(message, ".gogoproto.onlyone")) - writer.uint32(/* id 64009, wireType 0 =*/512072).bool(message[".gogoproto.onlyone"]); - if (message[".gogoproto.equal"] != null && Object.hasOwnProperty.call(message, ".gogoproto.equal")) - writer.uint32(/* id 64013, wireType 0 =*/512104).bool(message[".gogoproto.equal"]); - if (message[".gogoproto.description"] != null && Object.hasOwnProperty.call(message, ".gogoproto.description")) - writer.uint32(/* id 64014, wireType 0 =*/512112).bool(message[".gogoproto.description"]); - if (message[".gogoproto.testgen"] != null && Object.hasOwnProperty.call(message, ".gogoproto.testgen")) - writer.uint32(/* id 64015, wireType 0 =*/512120).bool(message[".gogoproto.testgen"]); - if (message[".gogoproto.benchgen"] != null && Object.hasOwnProperty.call(message, ".gogoproto.benchgen")) - writer.uint32(/* id 64016, wireType 0 =*/512128).bool(message[".gogoproto.benchgen"]); - if (message[".gogoproto.marshaler"] != null && Object.hasOwnProperty.call(message, ".gogoproto.marshaler")) - writer.uint32(/* id 64017, wireType 0 =*/512136).bool(message[".gogoproto.marshaler"]); - if (message[".gogoproto.unmarshaler"] != null && Object.hasOwnProperty.call(message, ".gogoproto.unmarshaler")) - writer.uint32(/* id 64018, wireType 0 =*/512144).bool(message[".gogoproto.unmarshaler"]); - if (message[".gogoproto.stable_marshaler"] != null && Object.hasOwnProperty.call(message, ".gogoproto.stable_marshaler")) - writer.uint32(/* id 64019, wireType 0 =*/512152).bool(message[".gogoproto.stable_marshaler"]); - if (message[".gogoproto.sizer"] != null && Object.hasOwnProperty.call(message, ".gogoproto.sizer")) - writer.uint32(/* id 64020, wireType 0 =*/512160).bool(message[".gogoproto.sizer"]); - if (message[".gogoproto.unsafe_marshaler"] != null && Object.hasOwnProperty.call(message, ".gogoproto.unsafe_marshaler")) - writer.uint32(/* id 64023, wireType 0 =*/512184).bool(message[".gogoproto.unsafe_marshaler"]); - if (message[".gogoproto.unsafe_unmarshaler"] != null && Object.hasOwnProperty.call(message, ".gogoproto.unsafe_unmarshaler")) - writer.uint32(/* id 64024, wireType 0 =*/512192).bool(message[".gogoproto.unsafe_unmarshaler"]); - if (message[".gogoproto.goproto_extensions_map"] != null && Object.hasOwnProperty.call(message, ".gogoproto.goproto_extensions_map")) - writer.uint32(/* id 64025, wireType 0 =*/512200).bool(message[".gogoproto.goproto_extensions_map"]); - if (message[".gogoproto.goproto_unrecognized"] != null && Object.hasOwnProperty.call(message, ".gogoproto.goproto_unrecognized")) - writer.uint32(/* id 64026, wireType 0 =*/512208).bool(message[".gogoproto.goproto_unrecognized"]); - if (message[".gogoproto.protosizer"] != null && Object.hasOwnProperty.call(message, ".gogoproto.protosizer")) - writer.uint32(/* id 64028, wireType 0 =*/512224).bool(message[".gogoproto.protosizer"]); - if (message[".gogoproto.compare"] != null && Object.hasOwnProperty.call(message, ".gogoproto.compare")) - writer.uint32(/* id 64029, wireType 0 =*/512232).bool(message[".gogoproto.compare"]); - if (message[".gogoproto.typedecl"] != null && Object.hasOwnProperty.call(message, ".gogoproto.typedecl")) - writer.uint32(/* id 64030, wireType 0 =*/512240).bool(message[".gogoproto.typedecl"]); - if (message[".gogoproto.messagename"] != null && Object.hasOwnProperty.call(message, ".gogoproto.messagename")) - writer.uint32(/* id 64033, wireType 0 =*/512264).bool(message[".gogoproto.messagename"]); - if (message[".gogoproto.goproto_sizecache"] != null && Object.hasOwnProperty.call(message, ".gogoproto.goproto_sizecache")) - writer.uint32(/* id 64034, wireType 0 =*/512272).bool(message[".gogoproto.goproto_sizecache"]); - if (message[".gogoproto.goproto_unkeyed"] != null && Object.hasOwnProperty.call(message, ".gogoproto.goproto_unkeyed")) - writer.uint32(/* id 64035, wireType 0 =*/512280).bool(message[".gogoproto.goproto_unkeyed"]); - if (message[".gogoproto.stringer"] != null && Object.hasOwnProperty.call(message, ".gogoproto.stringer")) - writer.uint32(/* id 67008, wireType 0 =*/536064).bool(message[".gogoproto.stringer"]); - if (message[".cosmos_proto.interface_type"] != null && Object.hasOwnProperty.call(message, ".cosmos_proto.interface_type")) - writer.uint32(/* id 93001, wireType 2 =*/744010).string(message[".cosmos_proto.interface_type"]); - if (message[".cosmos_proto.implements_interface"] != null && Object.hasOwnProperty.call(message, ".cosmos_proto.implements_interface")) - writer.uint32(/* id 93002, wireType 2 =*/744018).string(message[".cosmos_proto.implements_interface"]); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.value != null && message.value.length) + for (let i = 0; i < message.value.length; ++i) + $root.google.protobuf.EnumValueDescriptorProto.encode(message.value[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + $root.google.protobuf.EnumOptions.encode(message.options, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified MessageOptions message, length delimited. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages. + * Encodes the specified EnumDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages. * @function encodeDelimited - * @memberof google.protobuf.MessageOptions + * @memberof google.protobuf.EnumDescriptorProto * @static - * @param {google.protobuf.IMessageOptions} message MessageOptions message or plain object to encode + * @param {google.protobuf.IEnumDescriptorProto} message EnumDescriptorProto message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MessageOptions.encodeDelimited = function encodeDelimited(message, writer) { + EnumDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MessageOptions message from the specified reader or buffer. + * Decodes an EnumDescriptorProto message from the specified reader or buffer. * @function decode - * @memberof google.protobuf.MessageOptions + * @memberof google.protobuf.EnumDescriptorProto * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.MessageOptions} MessageOptions + * @returns {google.protobuf.EnumDescriptorProto} EnumDescriptorProto * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MessageOptions.decode = function decode(reader, length) { + EnumDescriptorProto.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.MessageOptions(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.EnumDescriptorProto(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.message_set_wire_format = reader.bool(); + message.name = reader.string(); break; case 2: - message.no_standard_descriptor_accessor = reader.bool(); + if (!(message.value && message.value.length)) + message.value = []; + message.value.push($root.google.protobuf.EnumValueDescriptorProto.decode(reader, reader.uint32())); break; case 3: - message.deprecated = reader.bool(); - break; - case 7: - message.map_entry = reader.bool(); - break; - case 999: - if (!(message.uninterpreted_option && message.uninterpreted_option.length)) - message.uninterpreted_option = []; - message.uninterpreted_option.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); - break; - case 64001: - message[".gogoproto.goproto_getters"] = reader.bool(); - break; - case 64003: - message[".gogoproto.goproto_stringer"] = reader.bool(); - break; - case 64004: - message[".gogoproto.verbose_equal"] = reader.bool(); - break; - case 64005: - message[".gogoproto.face"] = reader.bool(); - break; - case 64006: - message[".gogoproto.gostring"] = reader.bool(); - break; - case 64007: - message[".gogoproto.populate"] = reader.bool(); - break; - case 67008: - message[".gogoproto.stringer"] = reader.bool(); - break; - case 64009: - message[".gogoproto.onlyone"] = reader.bool(); - break; - case 64013: - message[".gogoproto.equal"] = reader.bool(); - break; - case 64014: - message[".gogoproto.description"] = reader.bool(); - break; - case 64015: - message[".gogoproto.testgen"] = reader.bool(); - break; - case 64016: - message[".gogoproto.benchgen"] = reader.bool(); - break; - case 64017: - message[".gogoproto.marshaler"] = reader.bool(); - break; - case 64018: - message[".gogoproto.unmarshaler"] = reader.bool(); - break; - case 64019: - message[".gogoproto.stable_marshaler"] = reader.bool(); - break; - case 64020: - message[".gogoproto.sizer"] = reader.bool(); - break; - case 64023: - message[".gogoproto.unsafe_marshaler"] = reader.bool(); - break; - case 64024: - message[".gogoproto.unsafe_unmarshaler"] = reader.bool(); - break; - case 64025: - message[".gogoproto.goproto_extensions_map"] = reader.bool(); - break; - case 64026: - message[".gogoproto.goproto_unrecognized"] = reader.bool(); - break; - case 64028: - message[".gogoproto.protosizer"] = reader.bool(); - break; - case 64029: - message[".gogoproto.compare"] = reader.bool(); - break; - case 64030: - message[".gogoproto.typedecl"] = reader.bool(); - break; - case 64033: - message[".gogoproto.messagename"] = reader.bool(); - break; - case 64034: - message[".gogoproto.goproto_sizecache"] = reader.bool(); - break; - case 64035: - message[".gogoproto.goproto_unkeyed"] = reader.bool(); - break; - case 93001: - message[".cosmos_proto.interface_type"] = reader.string(); - break; - case 93002: - message[".cosmos_proto.implements_interface"] = reader.string(); + message.options = $root.google.protobuf.EnumOptions.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -12784,403 +18447,149 @@ export const google = $root.google = (() => { }; /** - * Decodes a MessageOptions message from the specified reader or buffer, length delimited. + * Decodes an EnumDescriptorProto message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.protobuf.MessageOptions + * @memberof google.protobuf.EnumDescriptorProto * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.MessageOptions} MessageOptions + * @returns {google.protobuf.EnumDescriptorProto} EnumDescriptorProto * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MessageOptions.decodeDelimited = function decodeDelimited(reader) { + EnumDescriptorProto.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MessageOptions message. + * Verifies an EnumDescriptorProto message. * @function verify - * @memberof google.protobuf.MessageOptions + * @memberof google.protobuf.EnumDescriptorProto * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MessageOptions.verify = function verify(message) { + EnumDescriptorProto.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.message_set_wire_format != null && message.hasOwnProperty("message_set_wire_format")) - if (typeof message.message_set_wire_format !== "boolean") - return "message_set_wire_format: boolean expected"; - if (message.no_standard_descriptor_accessor != null && message.hasOwnProperty("no_standard_descriptor_accessor")) - if (typeof message.no_standard_descriptor_accessor !== "boolean") - return "no_standard_descriptor_accessor: boolean expected"; - if (message.deprecated != null && message.hasOwnProperty("deprecated")) - if (typeof message.deprecated !== "boolean") - return "deprecated: boolean expected"; - if (message.map_entry != null && message.hasOwnProperty("map_entry")) - if (typeof message.map_entry !== "boolean") - return "map_entry: boolean expected"; - if (message.uninterpreted_option != null && message.hasOwnProperty("uninterpreted_option")) { - if (!Array.isArray(message.uninterpreted_option)) - return "uninterpreted_option: array expected"; - for (let i = 0; i < message.uninterpreted_option.length; ++i) { - let error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpreted_option[i]); + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.value != null && message.hasOwnProperty("value")) { + if (!Array.isArray(message.value)) + return "value: array expected"; + for (let i = 0; i < message.value.length; ++i) { + let error = $root.google.protobuf.EnumValueDescriptorProto.verify(message.value[i]); if (error) - return "uninterpreted_option." + error; + return "value." + error; } } - if (message[".gogoproto.goproto_getters"] != null && message.hasOwnProperty(".gogoproto.goproto_getters")) - if (typeof message[".gogoproto.goproto_getters"] !== "boolean") - return ".gogoproto.goproto_getters: boolean expected"; - if (message[".gogoproto.goproto_stringer"] != null && message.hasOwnProperty(".gogoproto.goproto_stringer")) - if (typeof message[".gogoproto.goproto_stringer"] !== "boolean") - return ".gogoproto.goproto_stringer: boolean expected"; - if (message[".gogoproto.verbose_equal"] != null && message.hasOwnProperty(".gogoproto.verbose_equal")) - if (typeof message[".gogoproto.verbose_equal"] !== "boolean") - return ".gogoproto.verbose_equal: boolean expected"; - if (message[".gogoproto.face"] != null && message.hasOwnProperty(".gogoproto.face")) - if (typeof message[".gogoproto.face"] !== "boolean") - return ".gogoproto.face: boolean expected"; - if (message[".gogoproto.gostring"] != null && message.hasOwnProperty(".gogoproto.gostring")) - if (typeof message[".gogoproto.gostring"] !== "boolean") - return ".gogoproto.gostring: boolean expected"; - if (message[".gogoproto.populate"] != null && message.hasOwnProperty(".gogoproto.populate")) - if (typeof message[".gogoproto.populate"] !== "boolean") - return ".gogoproto.populate: boolean expected"; - if (message[".gogoproto.stringer"] != null && message.hasOwnProperty(".gogoproto.stringer")) - if (typeof message[".gogoproto.stringer"] !== "boolean") - return ".gogoproto.stringer: boolean expected"; - if (message[".gogoproto.onlyone"] != null && message.hasOwnProperty(".gogoproto.onlyone")) - if (typeof message[".gogoproto.onlyone"] !== "boolean") - return ".gogoproto.onlyone: boolean expected"; - if (message[".gogoproto.equal"] != null && message.hasOwnProperty(".gogoproto.equal")) - if (typeof message[".gogoproto.equal"] !== "boolean") - return ".gogoproto.equal: boolean expected"; - if (message[".gogoproto.description"] != null && message.hasOwnProperty(".gogoproto.description")) - if (typeof message[".gogoproto.description"] !== "boolean") - return ".gogoproto.description: boolean expected"; - if (message[".gogoproto.testgen"] != null && message.hasOwnProperty(".gogoproto.testgen")) - if (typeof message[".gogoproto.testgen"] !== "boolean") - return ".gogoproto.testgen: boolean expected"; - if (message[".gogoproto.benchgen"] != null && message.hasOwnProperty(".gogoproto.benchgen")) - if (typeof message[".gogoproto.benchgen"] !== "boolean") - return ".gogoproto.benchgen: boolean expected"; - if (message[".gogoproto.marshaler"] != null && message.hasOwnProperty(".gogoproto.marshaler")) - if (typeof message[".gogoproto.marshaler"] !== "boolean") - return ".gogoproto.marshaler: boolean expected"; - if (message[".gogoproto.unmarshaler"] != null && message.hasOwnProperty(".gogoproto.unmarshaler")) - if (typeof message[".gogoproto.unmarshaler"] !== "boolean") - return ".gogoproto.unmarshaler: boolean expected"; - if (message[".gogoproto.stable_marshaler"] != null && message.hasOwnProperty(".gogoproto.stable_marshaler")) - if (typeof message[".gogoproto.stable_marshaler"] !== "boolean") - return ".gogoproto.stable_marshaler: boolean expected"; - if (message[".gogoproto.sizer"] != null && message.hasOwnProperty(".gogoproto.sizer")) - if (typeof message[".gogoproto.sizer"] !== "boolean") - return ".gogoproto.sizer: boolean expected"; - if (message[".gogoproto.unsafe_marshaler"] != null && message.hasOwnProperty(".gogoproto.unsafe_marshaler")) - if (typeof message[".gogoproto.unsafe_marshaler"] !== "boolean") - return ".gogoproto.unsafe_marshaler: boolean expected"; - if (message[".gogoproto.unsafe_unmarshaler"] != null && message.hasOwnProperty(".gogoproto.unsafe_unmarshaler")) - if (typeof message[".gogoproto.unsafe_unmarshaler"] !== "boolean") - return ".gogoproto.unsafe_unmarshaler: boolean expected"; - if (message[".gogoproto.goproto_extensions_map"] != null && message.hasOwnProperty(".gogoproto.goproto_extensions_map")) - if (typeof message[".gogoproto.goproto_extensions_map"] !== "boolean") - return ".gogoproto.goproto_extensions_map: boolean expected"; - if (message[".gogoproto.goproto_unrecognized"] != null && message.hasOwnProperty(".gogoproto.goproto_unrecognized")) - if (typeof message[".gogoproto.goproto_unrecognized"] !== "boolean") - return ".gogoproto.goproto_unrecognized: boolean expected"; - if (message[".gogoproto.protosizer"] != null && message.hasOwnProperty(".gogoproto.protosizer")) - if (typeof message[".gogoproto.protosizer"] !== "boolean") - return ".gogoproto.protosizer: boolean expected"; - if (message[".gogoproto.compare"] != null && message.hasOwnProperty(".gogoproto.compare")) - if (typeof message[".gogoproto.compare"] !== "boolean") - return ".gogoproto.compare: boolean expected"; - if (message[".gogoproto.typedecl"] != null && message.hasOwnProperty(".gogoproto.typedecl")) - if (typeof message[".gogoproto.typedecl"] !== "boolean") - return ".gogoproto.typedecl: boolean expected"; - if (message[".gogoproto.messagename"] != null && message.hasOwnProperty(".gogoproto.messagename")) - if (typeof message[".gogoproto.messagename"] !== "boolean") - return ".gogoproto.messagename: boolean expected"; - if (message[".gogoproto.goproto_sizecache"] != null && message.hasOwnProperty(".gogoproto.goproto_sizecache")) - if (typeof message[".gogoproto.goproto_sizecache"] !== "boolean") - return ".gogoproto.goproto_sizecache: boolean expected"; - if (message[".gogoproto.goproto_unkeyed"] != null && message.hasOwnProperty(".gogoproto.goproto_unkeyed")) - if (typeof message[".gogoproto.goproto_unkeyed"] !== "boolean") - return ".gogoproto.goproto_unkeyed: boolean expected"; - if (message[".cosmos_proto.interface_type"] != null && message.hasOwnProperty(".cosmos_proto.interface_type")) - if (!$util.isString(message[".cosmos_proto.interface_type"])) - return ".cosmos_proto.interface_type: string expected"; - if (message[".cosmos_proto.implements_interface"] != null && message.hasOwnProperty(".cosmos_proto.implements_interface")) - if (!$util.isString(message[".cosmos_proto.implements_interface"])) - return ".cosmos_proto.implements_interface: string expected"; + if (message.options != null && message.hasOwnProperty("options")) { + let error = $root.google.protobuf.EnumOptions.verify(message.options); + if (error) + return "options." + error; + } return null; }; /** - * Creates a MessageOptions message from a plain object. Also converts values to their respective internal types. + * Creates an EnumDescriptorProto message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.protobuf.MessageOptions + * @memberof google.protobuf.EnumDescriptorProto * @static * @param {Object.} object Plain object - * @returns {google.protobuf.MessageOptions} MessageOptions + * @returns {google.protobuf.EnumDescriptorProto} EnumDescriptorProto */ - MessageOptions.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.MessageOptions) + EnumDescriptorProto.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.EnumDescriptorProto) return object; - let message = new $root.google.protobuf.MessageOptions(); - if (object.message_set_wire_format != null) - message.message_set_wire_format = Boolean(object.message_set_wire_format); - if (object.no_standard_descriptor_accessor != null) - message.no_standard_descriptor_accessor = Boolean(object.no_standard_descriptor_accessor); - if (object.deprecated != null) - message.deprecated = Boolean(object.deprecated); - if (object.map_entry != null) - message.map_entry = Boolean(object.map_entry); - if (object.uninterpreted_option) { - if (!Array.isArray(object.uninterpreted_option)) - throw TypeError(".google.protobuf.MessageOptions.uninterpreted_option: array expected"); - message.uninterpreted_option = []; - for (let i = 0; i < object.uninterpreted_option.length; ++i) { - if (typeof object.uninterpreted_option[i] !== "object") - throw TypeError(".google.protobuf.MessageOptions.uninterpreted_option: object expected"); - message.uninterpreted_option[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpreted_option[i]); + let message = new $root.google.protobuf.EnumDescriptorProto(); + if (object.name != null) + message.name = String(object.name); + if (object.value) { + if (!Array.isArray(object.value)) + throw TypeError(".google.protobuf.EnumDescriptorProto.value: array expected"); + message.value = []; + for (let i = 0; i < object.value.length; ++i) { + if (typeof object.value[i] !== "object") + throw TypeError(".google.protobuf.EnumDescriptorProto.value: object expected"); + message.value[i] = $root.google.protobuf.EnumValueDescriptorProto.fromObject(object.value[i]); } } - if (object[".gogoproto.goproto_getters"] != null) - message[".gogoproto.goproto_getters"] = Boolean(object[".gogoproto.goproto_getters"]); - if (object[".gogoproto.goproto_stringer"] != null) - message[".gogoproto.goproto_stringer"] = Boolean(object[".gogoproto.goproto_stringer"]); - if (object[".gogoproto.verbose_equal"] != null) - message[".gogoproto.verbose_equal"] = Boolean(object[".gogoproto.verbose_equal"]); - if (object[".gogoproto.face"] != null) - message[".gogoproto.face"] = Boolean(object[".gogoproto.face"]); - if (object[".gogoproto.gostring"] != null) - message[".gogoproto.gostring"] = Boolean(object[".gogoproto.gostring"]); - if (object[".gogoproto.populate"] != null) - message[".gogoproto.populate"] = Boolean(object[".gogoproto.populate"]); - if (object[".gogoproto.stringer"] != null) - message[".gogoproto.stringer"] = Boolean(object[".gogoproto.stringer"]); - if (object[".gogoproto.onlyone"] != null) - message[".gogoproto.onlyone"] = Boolean(object[".gogoproto.onlyone"]); - if (object[".gogoproto.equal"] != null) - message[".gogoproto.equal"] = Boolean(object[".gogoproto.equal"]); - if (object[".gogoproto.description"] != null) - message[".gogoproto.description"] = Boolean(object[".gogoproto.description"]); - if (object[".gogoproto.testgen"] != null) - message[".gogoproto.testgen"] = Boolean(object[".gogoproto.testgen"]); - if (object[".gogoproto.benchgen"] != null) - message[".gogoproto.benchgen"] = Boolean(object[".gogoproto.benchgen"]); - if (object[".gogoproto.marshaler"] != null) - message[".gogoproto.marshaler"] = Boolean(object[".gogoproto.marshaler"]); - if (object[".gogoproto.unmarshaler"] != null) - message[".gogoproto.unmarshaler"] = Boolean(object[".gogoproto.unmarshaler"]); - if (object[".gogoproto.stable_marshaler"] != null) - message[".gogoproto.stable_marshaler"] = Boolean(object[".gogoproto.stable_marshaler"]); - if (object[".gogoproto.sizer"] != null) - message[".gogoproto.sizer"] = Boolean(object[".gogoproto.sizer"]); - if (object[".gogoproto.unsafe_marshaler"] != null) - message[".gogoproto.unsafe_marshaler"] = Boolean(object[".gogoproto.unsafe_marshaler"]); - if (object[".gogoproto.unsafe_unmarshaler"] != null) - message[".gogoproto.unsafe_unmarshaler"] = Boolean(object[".gogoproto.unsafe_unmarshaler"]); - if (object[".gogoproto.goproto_extensions_map"] != null) - message[".gogoproto.goproto_extensions_map"] = Boolean(object[".gogoproto.goproto_extensions_map"]); - if (object[".gogoproto.goproto_unrecognized"] != null) - message[".gogoproto.goproto_unrecognized"] = Boolean(object[".gogoproto.goproto_unrecognized"]); - if (object[".gogoproto.protosizer"] != null) - message[".gogoproto.protosizer"] = Boolean(object[".gogoproto.protosizer"]); - if (object[".gogoproto.compare"] != null) - message[".gogoproto.compare"] = Boolean(object[".gogoproto.compare"]); - if (object[".gogoproto.typedecl"] != null) - message[".gogoproto.typedecl"] = Boolean(object[".gogoproto.typedecl"]); - if (object[".gogoproto.messagename"] != null) - message[".gogoproto.messagename"] = Boolean(object[".gogoproto.messagename"]); - if (object[".gogoproto.goproto_sizecache"] != null) - message[".gogoproto.goproto_sizecache"] = Boolean(object[".gogoproto.goproto_sizecache"]); - if (object[".gogoproto.goproto_unkeyed"] != null) - message[".gogoproto.goproto_unkeyed"] = Boolean(object[".gogoproto.goproto_unkeyed"]); - if (object[".cosmos_proto.interface_type"] != null) - message[".cosmos_proto.interface_type"] = String(object[".cosmos_proto.interface_type"]); - if (object[".cosmos_proto.implements_interface"] != null) - message[".cosmos_proto.implements_interface"] = String(object[".cosmos_proto.implements_interface"]); + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".google.protobuf.EnumDescriptorProto.options: object expected"); + message.options = $root.google.protobuf.EnumOptions.fromObject(object.options); + } return message; }; /** - * Creates a plain object from a MessageOptions message. Also converts values to other types if specified. + * Creates a plain object from an EnumDescriptorProto message. Also converts values to other types if specified. * @function toObject - * @memberof google.protobuf.MessageOptions + * @memberof google.protobuf.EnumDescriptorProto * @static - * @param {google.protobuf.MessageOptions} message MessageOptions + * @param {google.protobuf.EnumDescriptorProto} message EnumDescriptorProto * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MessageOptions.toObject = function toObject(message, options) { + EnumDescriptorProto.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) - object.uninterpreted_option = []; + object.value = []; if (options.defaults) { - object.message_set_wire_format = false; - object.no_standard_descriptor_accessor = false; - object.deprecated = false; - object.map_entry = false; - object[".gogoproto.goproto_getters"] = false; - object[".gogoproto.goproto_stringer"] = false; - object[".gogoproto.verbose_equal"] = false; - object[".gogoproto.face"] = false; - object[".gogoproto.gostring"] = false; - object[".gogoproto.populate"] = false; - object[".gogoproto.onlyone"] = false; - object[".gogoproto.equal"] = false; - object[".gogoproto.description"] = false; - object[".gogoproto.testgen"] = false; - object[".gogoproto.benchgen"] = false; - object[".gogoproto.marshaler"] = false; - object[".gogoproto.unmarshaler"] = false; - object[".gogoproto.stable_marshaler"] = false; - object[".gogoproto.sizer"] = false; - object[".gogoproto.unsafe_marshaler"] = false; - object[".gogoproto.unsafe_unmarshaler"] = false; - object[".gogoproto.goproto_extensions_map"] = false; - object[".gogoproto.goproto_unrecognized"] = false; - object[".gogoproto.protosizer"] = false; - object[".gogoproto.compare"] = false; - object[".gogoproto.typedecl"] = false; - object[".gogoproto.messagename"] = false; - object[".gogoproto.goproto_sizecache"] = false; - object[".gogoproto.goproto_unkeyed"] = false; - object[".gogoproto.stringer"] = false; - object[".cosmos_proto.interface_type"] = ""; - object[".cosmos_proto.implements_interface"] = ""; + object.name = ""; + object.options = null; } - if (message.message_set_wire_format != null && message.hasOwnProperty("message_set_wire_format")) - object.message_set_wire_format = message.message_set_wire_format; - if (message.no_standard_descriptor_accessor != null && message.hasOwnProperty("no_standard_descriptor_accessor")) - object.no_standard_descriptor_accessor = message.no_standard_descriptor_accessor; - if (message.deprecated != null && message.hasOwnProperty("deprecated")) - object.deprecated = message.deprecated; - if (message.map_entry != null && message.hasOwnProperty("map_entry")) - object.map_entry = message.map_entry; - if (message.uninterpreted_option && message.uninterpreted_option.length) { - object.uninterpreted_option = []; - for (let j = 0; j < message.uninterpreted_option.length; ++j) - object.uninterpreted_option[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpreted_option[j], options); + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.value && message.value.length) { + object.value = []; + for (let j = 0; j < message.value.length; ++j) + object.value[j] = $root.google.protobuf.EnumValueDescriptorProto.toObject(message.value[j], options); } - if (message[".gogoproto.goproto_getters"] != null && message.hasOwnProperty(".gogoproto.goproto_getters")) - object[".gogoproto.goproto_getters"] = message[".gogoproto.goproto_getters"]; - if (message[".gogoproto.goproto_stringer"] != null && message.hasOwnProperty(".gogoproto.goproto_stringer")) - object[".gogoproto.goproto_stringer"] = message[".gogoproto.goproto_stringer"]; - if (message[".gogoproto.verbose_equal"] != null && message.hasOwnProperty(".gogoproto.verbose_equal")) - object[".gogoproto.verbose_equal"] = message[".gogoproto.verbose_equal"]; - if (message[".gogoproto.face"] != null && message.hasOwnProperty(".gogoproto.face")) - object[".gogoproto.face"] = message[".gogoproto.face"]; - if (message[".gogoproto.gostring"] != null && message.hasOwnProperty(".gogoproto.gostring")) - object[".gogoproto.gostring"] = message[".gogoproto.gostring"]; - if (message[".gogoproto.populate"] != null && message.hasOwnProperty(".gogoproto.populate")) - object[".gogoproto.populate"] = message[".gogoproto.populate"]; - if (message[".gogoproto.onlyone"] != null && message.hasOwnProperty(".gogoproto.onlyone")) - object[".gogoproto.onlyone"] = message[".gogoproto.onlyone"]; - if (message[".gogoproto.equal"] != null && message.hasOwnProperty(".gogoproto.equal")) - object[".gogoproto.equal"] = message[".gogoproto.equal"]; - if (message[".gogoproto.description"] != null && message.hasOwnProperty(".gogoproto.description")) - object[".gogoproto.description"] = message[".gogoproto.description"]; - if (message[".gogoproto.testgen"] != null && message.hasOwnProperty(".gogoproto.testgen")) - object[".gogoproto.testgen"] = message[".gogoproto.testgen"]; - if (message[".gogoproto.benchgen"] != null && message.hasOwnProperty(".gogoproto.benchgen")) - object[".gogoproto.benchgen"] = message[".gogoproto.benchgen"]; - if (message[".gogoproto.marshaler"] != null && message.hasOwnProperty(".gogoproto.marshaler")) - object[".gogoproto.marshaler"] = message[".gogoproto.marshaler"]; - if (message[".gogoproto.unmarshaler"] != null && message.hasOwnProperty(".gogoproto.unmarshaler")) - object[".gogoproto.unmarshaler"] = message[".gogoproto.unmarshaler"]; - if (message[".gogoproto.stable_marshaler"] != null && message.hasOwnProperty(".gogoproto.stable_marshaler")) - object[".gogoproto.stable_marshaler"] = message[".gogoproto.stable_marshaler"]; - if (message[".gogoproto.sizer"] != null && message.hasOwnProperty(".gogoproto.sizer")) - object[".gogoproto.sizer"] = message[".gogoproto.sizer"]; - if (message[".gogoproto.unsafe_marshaler"] != null && message.hasOwnProperty(".gogoproto.unsafe_marshaler")) - object[".gogoproto.unsafe_marshaler"] = message[".gogoproto.unsafe_marshaler"]; - if (message[".gogoproto.unsafe_unmarshaler"] != null && message.hasOwnProperty(".gogoproto.unsafe_unmarshaler")) - object[".gogoproto.unsafe_unmarshaler"] = message[".gogoproto.unsafe_unmarshaler"]; - if (message[".gogoproto.goproto_extensions_map"] != null && message.hasOwnProperty(".gogoproto.goproto_extensions_map")) - object[".gogoproto.goproto_extensions_map"] = message[".gogoproto.goproto_extensions_map"]; - if (message[".gogoproto.goproto_unrecognized"] != null && message.hasOwnProperty(".gogoproto.goproto_unrecognized")) - object[".gogoproto.goproto_unrecognized"] = message[".gogoproto.goproto_unrecognized"]; - if (message[".gogoproto.protosizer"] != null && message.hasOwnProperty(".gogoproto.protosizer")) - object[".gogoproto.protosizer"] = message[".gogoproto.protosizer"]; - if (message[".gogoproto.compare"] != null && message.hasOwnProperty(".gogoproto.compare")) - object[".gogoproto.compare"] = message[".gogoproto.compare"]; - if (message[".gogoproto.typedecl"] != null && message.hasOwnProperty(".gogoproto.typedecl")) - object[".gogoproto.typedecl"] = message[".gogoproto.typedecl"]; - if (message[".gogoproto.messagename"] != null && message.hasOwnProperty(".gogoproto.messagename")) - object[".gogoproto.messagename"] = message[".gogoproto.messagename"]; - if (message[".gogoproto.goproto_sizecache"] != null && message.hasOwnProperty(".gogoproto.goproto_sizecache")) - object[".gogoproto.goproto_sizecache"] = message[".gogoproto.goproto_sizecache"]; - if (message[".gogoproto.goproto_unkeyed"] != null && message.hasOwnProperty(".gogoproto.goproto_unkeyed")) - object[".gogoproto.goproto_unkeyed"] = message[".gogoproto.goproto_unkeyed"]; - if (message[".gogoproto.stringer"] != null && message.hasOwnProperty(".gogoproto.stringer")) - object[".gogoproto.stringer"] = message[".gogoproto.stringer"]; - if (message[".cosmos_proto.interface_type"] != null && message.hasOwnProperty(".cosmos_proto.interface_type")) - object[".cosmos_proto.interface_type"] = message[".cosmos_proto.interface_type"]; - if (message[".cosmos_proto.implements_interface"] != null && message.hasOwnProperty(".cosmos_proto.implements_interface")) - object[".cosmos_proto.implements_interface"] = message[".cosmos_proto.implements_interface"]; + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.google.protobuf.EnumOptions.toObject(message.options, options); return object; }; /** - * Converts this MessageOptions to JSON. + * Converts this EnumDescriptorProto to JSON. * @function toJSON - * @memberof google.protobuf.MessageOptions + * @memberof google.protobuf.EnumDescriptorProto * @instance * @returns {Object.} JSON object */ - MessageOptions.prototype.toJSON = function toJSON() { + EnumDescriptorProto.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MessageOptions; + return EnumDescriptorProto; })(); - protobuf.FieldOptions = (function() { + protobuf.EnumValueDescriptorProto = (function() { /** - * Properties of a FieldOptions. + * Properties of an EnumValueDescriptorProto. * @memberof google.protobuf - * @interface IFieldOptions - * @property {google.protobuf.FieldOptions.CType|null} [ctype] FieldOptions ctype - * @property {boolean|null} [packed] FieldOptions packed - * @property {google.protobuf.FieldOptions.JSType|null} [jstype] FieldOptions jstype - * @property {boolean|null} [lazy] FieldOptions lazy - * @property {boolean|null} [deprecated] FieldOptions deprecated - * @property {boolean|null} [weak] FieldOptions weak - * @property {Array.|null} [uninterpreted_option] FieldOptions uninterpreted_option - * @property {boolean|null} [".gogoproto.nullable"] FieldOptions .gogoproto.nullable - * @property {boolean|null} [".gogoproto.embed"] FieldOptions .gogoproto.embed - * @property {string|null} [".gogoproto.customtype"] FieldOptions .gogoproto.customtype - * @property {string|null} [".gogoproto.customname"] FieldOptions .gogoproto.customname - * @property {string|null} [".gogoproto.jsontag"] FieldOptions .gogoproto.jsontag - * @property {string|null} [".gogoproto.moretags"] FieldOptions .gogoproto.moretags - * @property {string|null} [".gogoproto.casttype"] FieldOptions .gogoproto.casttype - * @property {string|null} [".gogoproto.castkey"] FieldOptions .gogoproto.castkey - * @property {string|null} [".gogoproto.castvalue"] FieldOptions .gogoproto.castvalue - * @property {boolean|null} [".gogoproto.stdtime"] FieldOptions .gogoproto.stdtime - * @property {boolean|null} [".gogoproto.stdduration"] FieldOptions .gogoproto.stdduration - * @property {boolean|null} [".gogoproto.wktpointer"] FieldOptions .gogoproto.wktpointer - * @property {string|null} [".gogoproto.castrepeated"] FieldOptions .gogoproto.castrepeated - * @property {string|null} [".cosmos_proto.accepts_interface"] FieldOptions .cosmos_proto.accepts_interface + * @interface IEnumValueDescriptorProto + * @property {string|null} [name] EnumValueDescriptorProto name + * @property {number|null} [number] EnumValueDescriptorProto number + * @property {google.protobuf.IEnumValueOptions|null} [options] EnumValueDescriptorProto options */ /** - * Constructs a new FieldOptions. + * Constructs a new EnumValueDescriptorProto. * @memberof google.protobuf - * @classdesc Represents a FieldOptions. - * @implements IFieldOptions + * @classdesc Represents an EnumValueDescriptorProto. + * @implements IEnumValueDescriptorProto * @constructor - * @param {google.protobuf.IFieldOptions=} [properties] Properties to set + * @param {google.protobuf.IEnumValueDescriptorProto=} [properties] Properties to set */ - function FieldOptions(properties) { - this.uninterpreted_option = []; + function EnumValueDescriptorProto(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -13188,326 +18597,318 @@ export const google = $root.google = (() => { } /** - * FieldOptions ctype. - * @member {google.protobuf.FieldOptions.CType} ctype - * @memberof google.protobuf.FieldOptions - * @instance - */ - FieldOptions.prototype.ctype = 0; - - /** - * FieldOptions packed. - * @member {boolean} packed - * @memberof google.protobuf.FieldOptions - * @instance - */ - FieldOptions.prototype.packed = false; - - /** - * FieldOptions jstype. - * @member {google.protobuf.FieldOptions.JSType} jstype - * @memberof google.protobuf.FieldOptions - * @instance - */ - FieldOptions.prototype.jstype = 0; - - /** - * FieldOptions lazy. - * @member {boolean} lazy - * @memberof google.protobuf.FieldOptions + * EnumValueDescriptorProto name. + * @member {string} name + * @memberof google.protobuf.EnumValueDescriptorProto * @instance */ - FieldOptions.prototype.lazy = false; + EnumValueDescriptorProto.prototype.name = ""; /** - * FieldOptions deprecated. - * @member {boolean} deprecated - * @memberof google.protobuf.FieldOptions + * EnumValueDescriptorProto number. + * @member {number} number + * @memberof google.protobuf.EnumValueDescriptorProto * @instance */ - FieldOptions.prototype.deprecated = false; + EnumValueDescriptorProto.prototype.number = 0; /** - * FieldOptions weak. - * @member {boolean} weak - * @memberof google.protobuf.FieldOptions + * EnumValueDescriptorProto options. + * @member {google.protobuf.IEnumValueOptions|null|undefined} options + * @memberof google.protobuf.EnumValueDescriptorProto * @instance */ - FieldOptions.prototype.weak = false; + EnumValueDescriptorProto.prototype.options = null; /** - * FieldOptions uninterpreted_option. - * @member {Array.} uninterpreted_option - * @memberof google.protobuf.FieldOptions - * @instance + * Encodes the specified EnumValueDescriptorProto message. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages. + * @function encode + * @memberof google.protobuf.EnumValueDescriptorProto + * @static + * @param {google.protobuf.IEnumValueDescriptorProto} message EnumValueDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - FieldOptions.prototype.uninterpreted_option = $util.emptyArray; + EnumValueDescriptorProto.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.number != null && Object.hasOwnProperty.call(message, "number")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.number); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + $root.google.protobuf.EnumValueOptions.encode(message.options, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; /** - * FieldOptions .gogoproto.nullable. - * @member {boolean} .gogoproto.nullable - * @memberof google.protobuf.FieldOptions - * @instance + * Encodes the specified EnumValueDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.EnumValueDescriptorProto + * @static + * @param {google.protobuf.IEnumValueDescriptorProto} message EnumValueDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - FieldOptions.prototype[".gogoproto.nullable"] = false; + EnumValueDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * FieldOptions .gogoproto.embed. - * @member {boolean} .gogoproto.embed - * @memberof google.protobuf.FieldOptions - * @instance + * Decodes an EnumValueDescriptorProto message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.EnumValueDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.EnumValueDescriptorProto} EnumValueDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FieldOptions.prototype[".gogoproto.embed"] = false; + EnumValueDescriptorProto.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.EnumValueDescriptorProto(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.number = reader.int32(); + break; + case 3: + message.options = $root.google.protobuf.EnumValueOptions.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * FieldOptions .gogoproto.customtype. - * @member {string} .gogoproto.customtype - * @memberof google.protobuf.FieldOptions - * @instance + * Decodes an EnumValueDescriptorProto message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.EnumValueDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.EnumValueDescriptorProto} EnumValueDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FieldOptions.prototype[".gogoproto.customtype"] = ""; + EnumValueDescriptorProto.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * FieldOptions .gogoproto.customname. - * @member {string} .gogoproto.customname - * @memberof google.protobuf.FieldOptions - * @instance + * Verifies an EnumValueDescriptorProto message. + * @function verify + * @memberof google.protobuf.EnumValueDescriptorProto + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FieldOptions.prototype[".gogoproto.customname"] = ""; + EnumValueDescriptorProto.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.number != null && message.hasOwnProperty("number")) + if (!$util.isInteger(message.number)) + return "number: integer expected"; + if (message.options != null && message.hasOwnProperty("options")) { + let error = $root.google.protobuf.EnumValueOptions.verify(message.options); + if (error) + return "options." + error; + } + return null; + }; /** - * FieldOptions .gogoproto.jsontag. - * @member {string} .gogoproto.jsontag - * @memberof google.protobuf.FieldOptions - * @instance + * Creates an EnumValueDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.EnumValueDescriptorProto + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.EnumValueDescriptorProto} EnumValueDescriptorProto */ - FieldOptions.prototype[".gogoproto.jsontag"] = ""; + EnumValueDescriptorProto.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.EnumValueDescriptorProto) + return object; + let message = new $root.google.protobuf.EnumValueDescriptorProto(); + if (object.name != null) + message.name = String(object.name); + if (object.number != null) + message.number = object.number | 0; + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".google.protobuf.EnumValueDescriptorProto.options: object expected"); + message.options = $root.google.protobuf.EnumValueOptions.fromObject(object.options); + } + return message; + }; /** - * FieldOptions .gogoproto.moretags. - * @member {string} .gogoproto.moretags - * @memberof google.protobuf.FieldOptions - * @instance + * Creates a plain object from an EnumValueDescriptorProto message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.EnumValueDescriptorProto + * @static + * @param {google.protobuf.EnumValueDescriptorProto} message EnumValueDescriptorProto + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - FieldOptions.prototype[".gogoproto.moretags"] = ""; + EnumValueDescriptorProto.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + object.name = ""; + object.number = 0; + object.options = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.number != null && message.hasOwnProperty("number")) + object.number = message.number; + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.google.protobuf.EnumValueOptions.toObject(message.options, options); + return object; + }; /** - * FieldOptions .gogoproto.casttype. - * @member {string} .gogoproto.casttype - * @memberof google.protobuf.FieldOptions + * Converts this EnumValueDescriptorProto to JSON. + * @function toJSON + * @memberof google.protobuf.EnumValueDescriptorProto * @instance + * @returns {Object.} JSON object */ - FieldOptions.prototype[".gogoproto.casttype"] = ""; + EnumValueDescriptorProto.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * FieldOptions .gogoproto.castkey. - * @member {string} .gogoproto.castkey - * @memberof google.protobuf.FieldOptions - * @instance - */ - FieldOptions.prototype[".gogoproto.castkey"] = ""; + return EnumValueDescriptorProto; + })(); - /** - * FieldOptions .gogoproto.castvalue. - * @member {string} .gogoproto.castvalue - * @memberof google.protobuf.FieldOptions - * @instance - */ - FieldOptions.prototype[".gogoproto.castvalue"] = ""; + protobuf.ServiceDescriptorProto = (function() { /** - * FieldOptions .gogoproto.stdtime. - * @member {boolean} .gogoproto.stdtime - * @memberof google.protobuf.FieldOptions - * @instance + * Properties of a ServiceDescriptorProto. + * @memberof google.protobuf + * @interface IServiceDescriptorProto + * @property {string|null} [name] ServiceDescriptorProto name + * @property {Array.|null} [method] ServiceDescriptorProto method + * @property {google.protobuf.IServiceOptions|null} [options] ServiceDescriptorProto options */ - FieldOptions.prototype[".gogoproto.stdtime"] = false; /** - * FieldOptions .gogoproto.stdduration. - * @member {boolean} .gogoproto.stdduration - * @memberof google.protobuf.FieldOptions - * @instance + * Constructs a new ServiceDescriptorProto. + * @memberof google.protobuf + * @classdesc Represents a ServiceDescriptorProto. + * @implements IServiceDescriptorProto + * @constructor + * @param {google.protobuf.IServiceDescriptorProto=} [properties] Properties to set */ - FieldOptions.prototype[".gogoproto.stdduration"] = false; + function ServiceDescriptorProto(properties) { + this.method = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * FieldOptions .gogoproto.wktpointer. - * @member {boolean} .gogoproto.wktpointer - * @memberof google.protobuf.FieldOptions + * ServiceDescriptorProto name. + * @member {string} name + * @memberof google.protobuf.ServiceDescriptorProto * @instance */ - FieldOptions.prototype[".gogoproto.wktpointer"] = false; + ServiceDescriptorProto.prototype.name = ""; /** - * FieldOptions .gogoproto.castrepeated. - * @member {string} .gogoproto.castrepeated - * @memberof google.protobuf.FieldOptions + * ServiceDescriptorProto method. + * @member {Array.} method + * @memberof google.protobuf.ServiceDescriptorProto * @instance */ - FieldOptions.prototype[".gogoproto.castrepeated"] = ""; + ServiceDescriptorProto.prototype.method = $util.emptyArray; /** - * FieldOptions .cosmos_proto.accepts_interface. - * @member {string} .cosmos_proto.accepts_interface - * @memberof google.protobuf.FieldOptions + * ServiceDescriptorProto options. + * @member {google.protobuf.IServiceOptions|null|undefined} options + * @memberof google.protobuf.ServiceDescriptorProto * @instance */ - FieldOptions.prototype[".cosmos_proto.accepts_interface"] = ""; + ServiceDescriptorProto.prototype.options = null; /** - * Encodes the specified FieldOptions message. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages. + * Encodes the specified ServiceDescriptorProto message. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages. * @function encode - * @memberof google.protobuf.FieldOptions + * @memberof google.protobuf.ServiceDescriptorProto * @static - * @param {google.protobuf.IFieldOptions} message FieldOptions message or plain object to encode + * @param {google.protobuf.IServiceDescriptorProto} message ServiceDescriptorProto message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FieldOptions.encode = function encode(message, writer) { + ServiceDescriptorProto.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.ctype != null && Object.hasOwnProperty.call(message, "ctype")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.ctype); - if (message.packed != null && Object.hasOwnProperty.call(message, "packed")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.packed); - if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.deprecated); - if (message.lazy != null && Object.hasOwnProperty.call(message, "lazy")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.lazy); - if (message.jstype != null && Object.hasOwnProperty.call(message, "jstype")) - writer.uint32(/* id 6, wireType 0 =*/48).int32(message.jstype); - if (message.weak != null && Object.hasOwnProperty.call(message, "weak")) - writer.uint32(/* id 10, wireType 0 =*/80).bool(message.weak); - if (message.uninterpreted_option != null && message.uninterpreted_option.length) - for (let i = 0; i < message.uninterpreted_option.length; ++i) - $root.google.protobuf.UninterpretedOption.encode(message.uninterpreted_option[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); - if (message[".gogoproto.nullable"] != null && Object.hasOwnProperty.call(message, ".gogoproto.nullable")) - writer.uint32(/* id 65001, wireType 0 =*/520008).bool(message[".gogoproto.nullable"]); - if (message[".gogoproto.embed"] != null && Object.hasOwnProperty.call(message, ".gogoproto.embed")) - writer.uint32(/* id 65002, wireType 0 =*/520016).bool(message[".gogoproto.embed"]); - if (message[".gogoproto.customtype"] != null && Object.hasOwnProperty.call(message, ".gogoproto.customtype")) - writer.uint32(/* id 65003, wireType 2 =*/520026).string(message[".gogoproto.customtype"]); - if (message[".gogoproto.customname"] != null && Object.hasOwnProperty.call(message, ".gogoproto.customname")) - writer.uint32(/* id 65004, wireType 2 =*/520034).string(message[".gogoproto.customname"]); - if (message[".gogoproto.jsontag"] != null && Object.hasOwnProperty.call(message, ".gogoproto.jsontag")) - writer.uint32(/* id 65005, wireType 2 =*/520042).string(message[".gogoproto.jsontag"]); - if (message[".gogoproto.moretags"] != null && Object.hasOwnProperty.call(message, ".gogoproto.moretags")) - writer.uint32(/* id 65006, wireType 2 =*/520050).string(message[".gogoproto.moretags"]); - if (message[".gogoproto.casttype"] != null && Object.hasOwnProperty.call(message, ".gogoproto.casttype")) - writer.uint32(/* id 65007, wireType 2 =*/520058).string(message[".gogoproto.casttype"]); - if (message[".gogoproto.castkey"] != null && Object.hasOwnProperty.call(message, ".gogoproto.castkey")) - writer.uint32(/* id 65008, wireType 2 =*/520066).string(message[".gogoproto.castkey"]); - if (message[".gogoproto.castvalue"] != null && Object.hasOwnProperty.call(message, ".gogoproto.castvalue")) - writer.uint32(/* id 65009, wireType 2 =*/520074).string(message[".gogoproto.castvalue"]); - if (message[".gogoproto.stdtime"] != null && Object.hasOwnProperty.call(message, ".gogoproto.stdtime")) - writer.uint32(/* id 65010, wireType 0 =*/520080).bool(message[".gogoproto.stdtime"]); - if (message[".gogoproto.stdduration"] != null && Object.hasOwnProperty.call(message, ".gogoproto.stdduration")) - writer.uint32(/* id 65011, wireType 0 =*/520088).bool(message[".gogoproto.stdduration"]); - if (message[".gogoproto.wktpointer"] != null && Object.hasOwnProperty.call(message, ".gogoproto.wktpointer")) - writer.uint32(/* id 65012, wireType 0 =*/520096).bool(message[".gogoproto.wktpointer"]); - if (message[".gogoproto.castrepeated"] != null && Object.hasOwnProperty.call(message, ".gogoproto.castrepeated")) - writer.uint32(/* id 65013, wireType 2 =*/520106).string(message[".gogoproto.castrepeated"]); - if (message[".cosmos_proto.accepts_interface"] != null && Object.hasOwnProperty.call(message, ".cosmos_proto.accepts_interface")) - writer.uint32(/* id 93001, wireType 2 =*/744010).string(message[".cosmos_proto.accepts_interface"]); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.method != null && message.method.length) + for (let i = 0; i < message.method.length; ++i) + $root.google.protobuf.MethodDescriptorProto.encode(message.method[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + $root.google.protobuf.ServiceOptions.encode(message.options, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified FieldOptions message, length delimited. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages. + * Encodes the specified ServiceDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages. * @function encodeDelimited - * @memberof google.protobuf.FieldOptions + * @memberof google.protobuf.ServiceDescriptorProto * @static - * @param {google.protobuf.IFieldOptions} message FieldOptions message or plain object to encode + * @param {google.protobuf.IServiceDescriptorProto} message ServiceDescriptorProto message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FieldOptions.encodeDelimited = function encodeDelimited(message, writer) { + ServiceDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a FieldOptions message from the specified reader or buffer. + * Decodes a ServiceDescriptorProto message from the specified reader or buffer. * @function decode - * @memberof google.protobuf.FieldOptions + * @memberof google.protobuf.ServiceDescriptorProto * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.FieldOptions} FieldOptions + * @returns {google.protobuf.ServiceDescriptorProto} ServiceDescriptorProto * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FieldOptions.decode = function decode(reader, length) { + ServiceDescriptorProto.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FieldOptions(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.ServiceDescriptorProto(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.ctype = reader.int32(); + message.name = reader.string(); break; case 2: - message.packed = reader.bool(); - break; - case 6: - message.jstype = reader.int32(); - break; - case 5: - message.lazy = reader.bool(); + if (!(message.method && message.method.length)) + message.method = []; + message.method.push($root.google.protobuf.MethodDescriptorProto.decode(reader, reader.uint32())); break; case 3: - message.deprecated = reader.bool(); - break; - case 10: - message.weak = reader.bool(); - break; - case 999: - if (!(message.uninterpreted_option && message.uninterpreted_option.length)) - message.uninterpreted_option = []; - message.uninterpreted_option.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); - break; - case 65001: - message[".gogoproto.nullable"] = reader.bool(); - break; - case 65002: - message[".gogoproto.embed"] = reader.bool(); - break; - case 65003: - message[".gogoproto.customtype"] = reader.string(); - break; - case 65004: - message[".gogoproto.customname"] = reader.string(); - break; - case 65005: - message[".gogoproto.jsontag"] = reader.string(); - break; - case 65006: - message[".gogoproto.moretags"] = reader.string(); - break; - case 65007: - message[".gogoproto.casttype"] = reader.string(); - break; - case 65008: - message[".gogoproto.castkey"] = reader.string(); - break; - case 65009: - message[".gogoproto.castvalue"] = reader.string(); - break; - case 65010: - message[".gogoproto.stdtime"] = reader.bool(); - break; - case 65011: - message[".gogoproto.stdduration"] = reader.bool(); - break; - case 65012: - message[".gogoproto.wktpointer"] = reader.bool(); - break; - case 65013: - message[".gogoproto.castrepeated"] = reader.string(); - break; - case 93001: - message[".cosmos_proto.accepts_interface"] = reader.string(); + message.options = $root.google.protobuf.ServiceOptions.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -13518,422 +18919,281 @@ export const google = $root.google = (() => { }; /** - * Decodes a FieldOptions message from the specified reader or buffer, length delimited. + * Decodes a ServiceDescriptorProto message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.protobuf.FieldOptions + * @memberof google.protobuf.ServiceDescriptorProto * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.FieldOptions} FieldOptions + * @returns {google.protobuf.ServiceDescriptorProto} ServiceDescriptorProto * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FieldOptions.decodeDelimited = function decodeDelimited(reader) { + ServiceDescriptorProto.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a FieldOptions message. + * Verifies a ServiceDescriptorProto message. * @function verify - * @memberof google.protobuf.FieldOptions + * @memberof google.protobuf.ServiceDescriptorProto * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FieldOptions.verify = function verify(message) { + ServiceDescriptorProto.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.ctype != null && message.hasOwnProperty("ctype")) - switch (message.ctype) { - default: - return "ctype: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.packed != null && message.hasOwnProperty("packed")) - if (typeof message.packed !== "boolean") - return "packed: boolean expected"; - if (message.jstype != null && message.hasOwnProperty("jstype")) - switch (message.jstype) { - default: - return "jstype: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.lazy != null && message.hasOwnProperty("lazy")) - if (typeof message.lazy !== "boolean") - return "lazy: boolean expected"; - if (message.deprecated != null && message.hasOwnProperty("deprecated")) - if (typeof message.deprecated !== "boolean") - return "deprecated: boolean expected"; - if (message.weak != null && message.hasOwnProperty("weak")) - if (typeof message.weak !== "boolean") - return "weak: boolean expected"; - if (message.uninterpreted_option != null && message.hasOwnProperty("uninterpreted_option")) { - if (!Array.isArray(message.uninterpreted_option)) - return "uninterpreted_option: array expected"; - for (let i = 0; i < message.uninterpreted_option.length; ++i) { - let error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpreted_option[i]); + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.method != null && message.hasOwnProperty("method")) { + if (!Array.isArray(message.method)) + return "method: array expected"; + for (let i = 0; i < message.method.length; ++i) { + let error = $root.google.protobuf.MethodDescriptorProto.verify(message.method[i]); if (error) - return "uninterpreted_option." + error; + return "method." + error; } } - if (message[".gogoproto.nullable"] != null && message.hasOwnProperty(".gogoproto.nullable")) - if (typeof message[".gogoproto.nullable"] !== "boolean") - return ".gogoproto.nullable: boolean expected"; - if (message[".gogoproto.embed"] != null && message.hasOwnProperty(".gogoproto.embed")) - if (typeof message[".gogoproto.embed"] !== "boolean") - return ".gogoproto.embed: boolean expected"; - if (message[".gogoproto.customtype"] != null && message.hasOwnProperty(".gogoproto.customtype")) - if (!$util.isString(message[".gogoproto.customtype"])) - return ".gogoproto.customtype: string expected"; - if (message[".gogoproto.customname"] != null && message.hasOwnProperty(".gogoproto.customname")) - if (!$util.isString(message[".gogoproto.customname"])) - return ".gogoproto.customname: string expected"; - if (message[".gogoproto.jsontag"] != null && message.hasOwnProperty(".gogoproto.jsontag")) - if (!$util.isString(message[".gogoproto.jsontag"])) - return ".gogoproto.jsontag: string expected"; - if (message[".gogoproto.moretags"] != null && message.hasOwnProperty(".gogoproto.moretags")) - if (!$util.isString(message[".gogoproto.moretags"])) - return ".gogoproto.moretags: string expected"; - if (message[".gogoproto.casttype"] != null && message.hasOwnProperty(".gogoproto.casttype")) - if (!$util.isString(message[".gogoproto.casttype"])) - return ".gogoproto.casttype: string expected"; - if (message[".gogoproto.castkey"] != null && message.hasOwnProperty(".gogoproto.castkey")) - if (!$util.isString(message[".gogoproto.castkey"])) - return ".gogoproto.castkey: string expected"; - if (message[".gogoproto.castvalue"] != null && message.hasOwnProperty(".gogoproto.castvalue")) - if (!$util.isString(message[".gogoproto.castvalue"])) - return ".gogoproto.castvalue: string expected"; - if (message[".gogoproto.stdtime"] != null && message.hasOwnProperty(".gogoproto.stdtime")) - if (typeof message[".gogoproto.stdtime"] !== "boolean") - return ".gogoproto.stdtime: boolean expected"; - if (message[".gogoproto.stdduration"] != null && message.hasOwnProperty(".gogoproto.stdduration")) - if (typeof message[".gogoproto.stdduration"] !== "boolean") - return ".gogoproto.stdduration: boolean expected"; - if (message[".gogoproto.wktpointer"] != null && message.hasOwnProperty(".gogoproto.wktpointer")) - if (typeof message[".gogoproto.wktpointer"] !== "boolean") - return ".gogoproto.wktpointer: boolean expected"; - if (message[".gogoproto.castrepeated"] != null && message.hasOwnProperty(".gogoproto.castrepeated")) - if (!$util.isString(message[".gogoproto.castrepeated"])) - return ".gogoproto.castrepeated: string expected"; - if (message[".cosmos_proto.accepts_interface"] != null && message.hasOwnProperty(".cosmos_proto.accepts_interface")) - if (!$util.isString(message[".cosmos_proto.accepts_interface"])) - return ".cosmos_proto.accepts_interface: string expected"; + if (message.options != null && message.hasOwnProperty("options")) { + let error = $root.google.protobuf.ServiceOptions.verify(message.options); + if (error) + return "options." + error; + } return null; }; /** - * Creates a FieldOptions message from a plain object. Also converts values to their respective internal types. + * Creates a ServiceDescriptorProto message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.protobuf.FieldOptions + * @memberof google.protobuf.ServiceDescriptorProto * @static * @param {Object.} object Plain object - * @returns {google.protobuf.FieldOptions} FieldOptions + * @returns {google.protobuf.ServiceDescriptorProto} ServiceDescriptorProto */ - FieldOptions.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.FieldOptions) + ServiceDescriptorProto.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.ServiceDescriptorProto) return object; - let message = new $root.google.protobuf.FieldOptions(); - switch (object.ctype) { - case "STRING": - case 0: - message.ctype = 0; - break; - case "CORD": - case 1: - message.ctype = 1; - break; - case "STRING_PIECE": - case 2: - message.ctype = 2; - break; - } - if (object.packed != null) - message.packed = Boolean(object.packed); - switch (object.jstype) { - case "JS_NORMAL": - case 0: - message.jstype = 0; - break; - case "JS_STRING": - case 1: - message.jstype = 1; - break; - case "JS_NUMBER": - case 2: - message.jstype = 2; - break; - } - if (object.lazy != null) - message.lazy = Boolean(object.lazy); - if (object.deprecated != null) - message.deprecated = Boolean(object.deprecated); - if (object.weak != null) - message.weak = Boolean(object.weak); - if (object.uninterpreted_option) { - if (!Array.isArray(object.uninterpreted_option)) - throw TypeError(".google.protobuf.FieldOptions.uninterpreted_option: array expected"); - message.uninterpreted_option = []; - for (let i = 0; i < object.uninterpreted_option.length; ++i) { - if (typeof object.uninterpreted_option[i] !== "object") - throw TypeError(".google.protobuf.FieldOptions.uninterpreted_option: object expected"); - message.uninterpreted_option[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpreted_option[i]); + let message = new $root.google.protobuf.ServiceDescriptorProto(); + if (object.name != null) + message.name = String(object.name); + if (object.method) { + if (!Array.isArray(object.method)) + throw TypeError(".google.protobuf.ServiceDescriptorProto.method: array expected"); + message.method = []; + for (let i = 0; i < object.method.length; ++i) { + if (typeof object.method[i] !== "object") + throw TypeError(".google.protobuf.ServiceDescriptorProto.method: object expected"); + message.method[i] = $root.google.protobuf.MethodDescriptorProto.fromObject(object.method[i]); } } - if (object[".gogoproto.nullable"] != null) - message[".gogoproto.nullable"] = Boolean(object[".gogoproto.nullable"]); - if (object[".gogoproto.embed"] != null) - message[".gogoproto.embed"] = Boolean(object[".gogoproto.embed"]); - if (object[".gogoproto.customtype"] != null) - message[".gogoproto.customtype"] = String(object[".gogoproto.customtype"]); - if (object[".gogoproto.customname"] != null) - message[".gogoproto.customname"] = String(object[".gogoproto.customname"]); - if (object[".gogoproto.jsontag"] != null) - message[".gogoproto.jsontag"] = String(object[".gogoproto.jsontag"]); - if (object[".gogoproto.moretags"] != null) - message[".gogoproto.moretags"] = String(object[".gogoproto.moretags"]); - if (object[".gogoproto.casttype"] != null) - message[".gogoproto.casttype"] = String(object[".gogoproto.casttype"]); - if (object[".gogoproto.castkey"] != null) - message[".gogoproto.castkey"] = String(object[".gogoproto.castkey"]); - if (object[".gogoproto.castvalue"] != null) - message[".gogoproto.castvalue"] = String(object[".gogoproto.castvalue"]); - if (object[".gogoproto.stdtime"] != null) - message[".gogoproto.stdtime"] = Boolean(object[".gogoproto.stdtime"]); - if (object[".gogoproto.stdduration"] != null) - message[".gogoproto.stdduration"] = Boolean(object[".gogoproto.stdduration"]); - if (object[".gogoproto.wktpointer"] != null) - message[".gogoproto.wktpointer"] = Boolean(object[".gogoproto.wktpointer"]); - if (object[".gogoproto.castrepeated"] != null) - message[".gogoproto.castrepeated"] = String(object[".gogoproto.castrepeated"]); - if (object[".cosmos_proto.accepts_interface"] != null) - message[".cosmos_proto.accepts_interface"] = String(object[".cosmos_proto.accepts_interface"]); + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".google.protobuf.ServiceDescriptorProto.options: object expected"); + message.options = $root.google.protobuf.ServiceOptions.fromObject(object.options); + } return message; }; /** - * Creates a plain object from a FieldOptions message. Also converts values to other types if specified. + * Creates a plain object from a ServiceDescriptorProto message. Also converts values to other types if specified. * @function toObject - * @memberof google.protobuf.FieldOptions + * @memberof google.protobuf.ServiceDescriptorProto * @static - * @param {google.protobuf.FieldOptions} message FieldOptions + * @param {google.protobuf.ServiceDescriptorProto} message ServiceDescriptorProto * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FieldOptions.toObject = function toObject(message, options) { + ServiceDescriptorProto.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) - object.uninterpreted_option = []; + object.method = []; if (options.defaults) { - object.ctype = options.enums === String ? "STRING" : 0; - object.packed = false; - object.deprecated = false; - object.lazy = false; - object.jstype = options.enums === String ? "JS_NORMAL" : 0; - object.weak = false; - object[".gogoproto.nullable"] = false; - object[".gogoproto.embed"] = false; - object[".gogoproto.customtype"] = ""; - object[".gogoproto.customname"] = ""; - object[".gogoproto.jsontag"] = ""; - object[".gogoproto.moretags"] = ""; - object[".gogoproto.casttype"] = ""; - object[".gogoproto.castkey"] = ""; - object[".gogoproto.castvalue"] = ""; - object[".gogoproto.stdtime"] = false; - object[".gogoproto.stdduration"] = false; - object[".gogoproto.wktpointer"] = false; - object[".gogoproto.castrepeated"] = ""; - object[".cosmos_proto.accepts_interface"] = ""; + object.name = ""; + object.options = null; } - if (message.ctype != null && message.hasOwnProperty("ctype")) - object.ctype = options.enums === String ? $root.google.protobuf.FieldOptions.CType[message.ctype] : message.ctype; - if (message.packed != null && message.hasOwnProperty("packed")) - object.packed = message.packed; - if (message.deprecated != null && message.hasOwnProperty("deprecated")) - object.deprecated = message.deprecated; - if (message.lazy != null && message.hasOwnProperty("lazy")) - object.lazy = message.lazy; - if (message.jstype != null && message.hasOwnProperty("jstype")) - object.jstype = options.enums === String ? $root.google.protobuf.FieldOptions.JSType[message.jstype] : message.jstype; - if (message.weak != null && message.hasOwnProperty("weak")) - object.weak = message.weak; - if (message.uninterpreted_option && message.uninterpreted_option.length) { - object.uninterpreted_option = []; - for (let j = 0; j < message.uninterpreted_option.length; ++j) - object.uninterpreted_option[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpreted_option[j], options); + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.method && message.method.length) { + object.method = []; + for (let j = 0; j < message.method.length; ++j) + object.method[j] = $root.google.protobuf.MethodDescriptorProto.toObject(message.method[j], options); } - if (message[".gogoproto.nullable"] != null && message.hasOwnProperty(".gogoproto.nullable")) - object[".gogoproto.nullable"] = message[".gogoproto.nullable"]; - if (message[".gogoproto.embed"] != null && message.hasOwnProperty(".gogoproto.embed")) - object[".gogoproto.embed"] = message[".gogoproto.embed"]; - if (message[".gogoproto.customtype"] != null && message.hasOwnProperty(".gogoproto.customtype")) - object[".gogoproto.customtype"] = message[".gogoproto.customtype"]; - if (message[".gogoproto.customname"] != null && message.hasOwnProperty(".gogoproto.customname")) - object[".gogoproto.customname"] = message[".gogoproto.customname"]; - if (message[".gogoproto.jsontag"] != null && message.hasOwnProperty(".gogoproto.jsontag")) - object[".gogoproto.jsontag"] = message[".gogoproto.jsontag"]; - if (message[".gogoproto.moretags"] != null && message.hasOwnProperty(".gogoproto.moretags")) - object[".gogoproto.moretags"] = message[".gogoproto.moretags"]; - if (message[".gogoproto.casttype"] != null && message.hasOwnProperty(".gogoproto.casttype")) - object[".gogoproto.casttype"] = message[".gogoproto.casttype"]; - if (message[".gogoproto.castkey"] != null && message.hasOwnProperty(".gogoproto.castkey")) - object[".gogoproto.castkey"] = message[".gogoproto.castkey"]; - if (message[".gogoproto.castvalue"] != null && message.hasOwnProperty(".gogoproto.castvalue")) - object[".gogoproto.castvalue"] = message[".gogoproto.castvalue"]; - if (message[".gogoproto.stdtime"] != null && message.hasOwnProperty(".gogoproto.stdtime")) - object[".gogoproto.stdtime"] = message[".gogoproto.stdtime"]; - if (message[".gogoproto.stdduration"] != null && message.hasOwnProperty(".gogoproto.stdduration")) - object[".gogoproto.stdduration"] = message[".gogoproto.stdduration"]; - if (message[".gogoproto.wktpointer"] != null && message.hasOwnProperty(".gogoproto.wktpointer")) - object[".gogoproto.wktpointer"] = message[".gogoproto.wktpointer"]; - if (message[".gogoproto.castrepeated"] != null && message.hasOwnProperty(".gogoproto.castrepeated")) - object[".gogoproto.castrepeated"] = message[".gogoproto.castrepeated"]; - if (message[".cosmos_proto.accepts_interface"] != null && message.hasOwnProperty(".cosmos_proto.accepts_interface")) - object[".cosmos_proto.accepts_interface"] = message[".cosmos_proto.accepts_interface"]; + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.google.protobuf.ServiceOptions.toObject(message.options, options); return object; }; /** - * Converts this FieldOptions to JSON. + * Converts this ServiceDescriptorProto to JSON. * @function toJSON - * @memberof google.protobuf.FieldOptions + * @memberof google.protobuf.ServiceDescriptorProto * @instance * @returns {Object.} JSON object */ - FieldOptions.prototype.toJSON = function toJSON() { + ServiceDescriptorProto.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + return ServiceDescriptorProto; + })(); + + protobuf.MethodDescriptorProto = (function() { + /** - * CType enum. - * @name google.protobuf.FieldOptions.CType - * @enum {number} - * @property {number} STRING=0 STRING value - * @property {number} CORD=1 CORD value - * @property {number} STRING_PIECE=2 STRING_PIECE value + * Properties of a MethodDescriptorProto. + * @memberof google.protobuf + * @interface IMethodDescriptorProto + * @property {string|null} [name] MethodDescriptorProto name + * @property {string|null} [input_type] MethodDescriptorProto input_type + * @property {string|null} [output_type] MethodDescriptorProto output_type + * @property {google.protobuf.IMethodOptions|null} [options] MethodDescriptorProto options + * @property {boolean|null} [client_streaming] MethodDescriptorProto client_streaming + * @property {boolean|null} [server_streaming] MethodDescriptorProto server_streaming */ - FieldOptions.CType = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "STRING"] = 0; - values[valuesById[1] = "CORD"] = 1; - values[valuesById[2] = "STRING_PIECE"] = 2; - return values; - })(); /** - * JSType enum. - * @name google.protobuf.FieldOptions.JSType - * @enum {number} - * @property {number} JS_NORMAL=0 JS_NORMAL value - * @property {number} JS_STRING=1 JS_STRING value - * @property {number} JS_NUMBER=2 JS_NUMBER value + * Constructs a new MethodDescriptorProto. + * @memberof google.protobuf + * @classdesc Represents a MethodDescriptorProto. + * @implements IMethodDescriptorProto + * @constructor + * @param {google.protobuf.IMethodDescriptorProto=} [properties] Properties to set */ - FieldOptions.JSType = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "JS_NORMAL"] = 0; - values[valuesById[1] = "JS_STRING"] = 1; - values[valuesById[2] = "JS_NUMBER"] = 2; - return values; - })(); + function MethodDescriptorProto(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - return FieldOptions; - })(); + /** + * MethodDescriptorProto name. + * @member {string} name + * @memberof google.protobuf.MethodDescriptorProto + * @instance + */ + MethodDescriptorProto.prototype.name = ""; + + /** + * MethodDescriptorProto input_type. + * @member {string} input_type + * @memberof google.protobuf.MethodDescriptorProto + * @instance + */ + MethodDescriptorProto.prototype.input_type = ""; - protobuf.OneofOptions = (function() { + /** + * MethodDescriptorProto output_type. + * @member {string} output_type + * @memberof google.protobuf.MethodDescriptorProto + * @instance + */ + MethodDescriptorProto.prototype.output_type = ""; /** - * Properties of an OneofOptions. - * @memberof google.protobuf - * @interface IOneofOptions - * @property {Array.|null} [uninterpreted_option] OneofOptions uninterpreted_option + * MethodDescriptorProto options. + * @member {google.protobuf.IMethodOptions|null|undefined} options + * @memberof google.protobuf.MethodDescriptorProto + * @instance */ + MethodDescriptorProto.prototype.options = null; /** - * Constructs a new OneofOptions. - * @memberof google.protobuf - * @classdesc Represents an OneofOptions. - * @implements IOneofOptions - * @constructor - * @param {google.protobuf.IOneofOptions=} [properties] Properties to set + * MethodDescriptorProto client_streaming. + * @member {boolean} client_streaming + * @memberof google.protobuf.MethodDescriptorProto + * @instance */ - function OneofOptions(properties) { - this.uninterpreted_option = []; - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + MethodDescriptorProto.prototype.client_streaming = false; /** - * OneofOptions uninterpreted_option. - * @member {Array.} uninterpreted_option - * @memberof google.protobuf.OneofOptions + * MethodDescriptorProto server_streaming. + * @member {boolean} server_streaming + * @memberof google.protobuf.MethodDescriptorProto * @instance */ - OneofOptions.prototype.uninterpreted_option = $util.emptyArray; + MethodDescriptorProto.prototype.server_streaming = false; /** - * Encodes the specified OneofOptions message. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages. + * Encodes the specified MethodDescriptorProto message. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages. * @function encode - * @memberof google.protobuf.OneofOptions + * @memberof google.protobuf.MethodDescriptorProto * @static - * @param {google.protobuf.IOneofOptions} message OneofOptions message or plain object to encode + * @param {google.protobuf.IMethodDescriptorProto} message MethodDescriptorProto message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - OneofOptions.encode = function encode(message, writer) { + MethodDescriptorProto.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.uninterpreted_option != null && message.uninterpreted_option.length) - for (let i = 0; i < message.uninterpreted_option.length; ++i) - $root.google.protobuf.UninterpretedOption.encode(message.uninterpreted_option[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.input_type != null && Object.hasOwnProperty.call(message, "input_type")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.input_type); + if (message.output_type != null && Object.hasOwnProperty.call(message, "output_type")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.output_type); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + $root.google.protobuf.MethodOptions.encode(message.options, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.client_streaming != null && Object.hasOwnProperty.call(message, "client_streaming")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.client_streaming); + if (message.server_streaming != null && Object.hasOwnProperty.call(message, "server_streaming")) + writer.uint32(/* id 6, wireType 0 =*/48).bool(message.server_streaming); return writer; }; /** - * Encodes the specified OneofOptions message, length delimited. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages. + * Encodes the specified MethodDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages. * @function encodeDelimited - * @memberof google.protobuf.OneofOptions + * @memberof google.protobuf.MethodDescriptorProto * @static - * @param {google.protobuf.IOneofOptions} message OneofOptions message or plain object to encode + * @param {google.protobuf.IMethodDescriptorProto} message MethodDescriptorProto message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - OneofOptions.encodeDelimited = function encodeDelimited(message, writer) { + MethodDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an OneofOptions message from the specified reader or buffer. + * Decodes a MethodDescriptorProto message from the specified reader or buffer. * @function decode - * @memberof google.protobuf.OneofOptions + * @memberof google.protobuf.MethodDescriptorProto * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.OneofOptions} OneofOptions + * @returns {google.protobuf.MethodDescriptorProto} MethodDescriptorProto * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - OneofOptions.decode = function decode(reader, length) { + MethodDescriptorProto.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.OneofOptions(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.MethodDescriptorProto(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 999: - if (!(message.uninterpreted_option && message.uninterpreted_option.length)) - message.uninterpreted_option = []; - message.uninterpreted_option.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + case 1: + message.name = reader.string(); + break; + case 2: + message.input_type = reader.string(); + break; + case 3: + message.output_type = reader.string(); + break; + case 4: + message.options = $root.google.protobuf.MethodOptions.decode(reader, reader.uint32()); + break; + case 5: + message.client_streaming = reader.bool(); + break; + case 6: + message.server_streaming = reader.bool(); break; default: reader.skipType(tag & 7); @@ -13944,572 +19204,901 @@ export const google = $root.google = (() => { }; /** - * Decodes an OneofOptions message from the specified reader or buffer, length delimited. + * Decodes a MethodDescriptorProto message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.protobuf.OneofOptions + * @memberof google.protobuf.MethodDescriptorProto * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.OneofOptions} OneofOptions + * @returns {google.protobuf.MethodDescriptorProto} MethodDescriptorProto * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - OneofOptions.decodeDelimited = function decodeDelimited(reader) { + MethodDescriptorProto.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an OneofOptions message. + * Verifies a MethodDescriptorProto message. * @function verify - * @memberof google.protobuf.OneofOptions + * @memberof google.protobuf.MethodDescriptorProto * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - OneofOptions.verify = function verify(message) { + MethodDescriptorProto.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.uninterpreted_option != null && message.hasOwnProperty("uninterpreted_option")) { - if (!Array.isArray(message.uninterpreted_option)) - return "uninterpreted_option: array expected"; - for (let i = 0; i < message.uninterpreted_option.length; ++i) { - let error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpreted_option[i]); - if (error) - return "uninterpreted_option." + error; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.input_type != null && message.hasOwnProperty("input_type")) + if (!$util.isString(message.input_type)) + return "input_type: string expected"; + if (message.output_type != null && message.hasOwnProperty("output_type")) + if (!$util.isString(message.output_type)) + return "output_type: string expected"; + if (message.options != null && message.hasOwnProperty("options")) { + let error = $root.google.protobuf.MethodOptions.verify(message.options); + if (error) + return "options." + error; } + if (message.client_streaming != null && message.hasOwnProperty("client_streaming")) + if (typeof message.client_streaming !== "boolean") + return "client_streaming: boolean expected"; + if (message.server_streaming != null && message.hasOwnProperty("server_streaming")) + if (typeof message.server_streaming !== "boolean") + return "server_streaming: boolean expected"; return null; }; /** - * Creates an OneofOptions message from a plain object. Also converts values to their respective internal types. + * Creates a MethodDescriptorProto message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.protobuf.OneofOptions + * @memberof google.protobuf.MethodDescriptorProto * @static * @param {Object.} object Plain object - * @returns {google.protobuf.OneofOptions} OneofOptions + * @returns {google.protobuf.MethodDescriptorProto} MethodDescriptorProto */ - OneofOptions.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.OneofOptions) + MethodDescriptorProto.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.MethodDescriptorProto) return object; - let message = new $root.google.protobuf.OneofOptions(); - if (object.uninterpreted_option) { - if (!Array.isArray(object.uninterpreted_option)) - throw TypeError(".google.protobuf.OneofOptions.uninterpreted_option: array expected"); - message.uninterpreted_option = []; - for (let i = 0; i < object.uninterpreted_option.length; ++i) { - if (typeof object.uninterpreted_option[i] !== "object") - throw TypeError(".google.protobuf.OneofOptions.uninterpreted_option: object expected"); - message.uninterpreted_option[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpreted_option[i]); - } + let message = new $root.google.protobuf.MethodDescriptorProto(); + if (object.name != null) + message.name = String(object.name); + if (object.input_type != null) + message.input_type = String(object.input_type); + if (object.output_type != null) + message.output_type = String(object.output_type); + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".google.protobuf.MethodDescriptorProto.options: object expected"); + message.options = $root.google.protobuf.MethodOptions.fromObject(object.options); } + if (object.client_streaming != null) + message.client_streaming = Boolean(object.client_streaming); + if (object.server_streaming != null) + message.server_streaming = Boolean(object.server_streaming); return message; }; /** - * Creates a plain object from an OneofOptions message. Also converts values to other types if specified. + * Creates a plain object from a MethodDescriptorProto message. Also converts values to other types if specified. * @function toObject - * @memberof google.protobuf.OneofOptions + * @memberof google.protobuf.MethodDescriptorProto * @static - * @param {google.protobuf.OneofOptions} message OneofOptions + * @param {google.protobuf.MethodDescriptorProto} message MethodDescriptorProto * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - OneofOptions.toObject = function toObject(message, options) { + MethodDescriptorProto.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.uninterpreted_option = []; - if (message.uninterpreted_option && message.uninterpreted_option.length) { - object.uninterpreted_option = []; - for (let j = 0; j < message.uninterpreted_option.length; ++j) - object.uninterpreted_option[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpreted_option[j], options); + if (options.defaults) { + object.name = ""; + object.input_type = ""; + object.output_type = ""; + object.options = null; + object.client_streaming = false; + object.server_streaming = false; } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.input_type != null && message.hasOwnProperty("input_type")) + object.input_type = message.input_type; + if (message.output_type != null && message.hasOwnProperty("output_type")) + object.output_type = message.output_type; + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.google.protobuf.MethodOptions.toObject(message.options, options); + if (message.client_streaming != null && message.hasOwnProperty("client_streaming")) + object.client_streaming = message.client_streaming; + if (message.server_streaming != null && message.hasOwnProperty("server_streaming")) + object.server_streaming = message.server_streaming; return object; }; /** - * Converts this OneofOptions to JSON. + * Converts this MethodDescriptorProto to JSON. * @function toJSON - * @memberof google.protobuf.OneofOptions + * @memberof google.protobuf.MethodDescriptorProto * @instance * @returns {Object.} JSON object */ - OneofOptions.prototype.toJSON = function toJSON() { + MethodDescriptorProto.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return OneofOptions; + return MethodDescriptorProto; })(); - protobuf.EnumOptions = (function() { + protobuf.FileOptions = (function() { /** - * Properties of an EnumOptions. + * Properties of a FileOptions. * @memberof google.protobuf - * @interface IEnumOptions - * @property {boolean|null} [allow_alias] EnumOptions allow_alias - * @property {boolean|null} [deprecated] EnumOptions deprecated - * @property {Array.|null} [uninterpreted_option] EnumOptions uninterpreted_option - * @property {boolean|null} [".gogoproto.goproto_enum_prefix"] EnumOptions .gogoproto.goproto_enum_prefix - * @property {boolean|null} [".gogoproto.goproto_enum_stringer"] EnumOptions .gogoproto.goproto_enum_stringer - * @property {boolean|null} [".gogoproto.enum_stringer"] EnumOptions .gogoproto.enum_stringer - * @property {string|null} [".gogoproto.enum_customname"] EnumOptions .gogoproto.enum_customname - * @property {boolean|null} [".gogoproto.enumdecl"] EnumOptions .gogoproto.enumdecl + * @interface IFileOptions + * @property {string|null} [java_package] FileOptions java_package + * @property {string|null} [java_outer_classname] FileOptions java_outer_classname + * @property {boolean|null} [java_multiple_files] FileOptions java_multiple_files + * @property {boolean|null} [java_generate_equals_and_hash] FileOptions java_generate_equals_and_hash + * @property {boolean|null} [java_string_check_utf8] FileOptions java_string_check_utf8 + * @property {google.protobuf.FileOptions.OptimizeMode|null} [optimize_for] FileOptions optimize_for + * @property {string|null} [go_package] FileOptions go_package + * @property {boolean|null} [cc_generic_services] FileOptions cc_generic_services + * @property {boolean|null} [java_generic_services] FileOptions java_generic_services + * @property {boolean|null} [py_generic_services] FileOptions py_generic_services + * @property {boolean|null} [deprecated] FileOptions deprecated + * @property {boolean|null} [cc_enable_arenas] FileOptions cc_enable_arenas + * @property {string|null} [objc_class_prefix] FileOptions objc_class_prefix + * @property {string|null} [csharp_namespace] FileOptions csharp_namespace + * @property {Array.|null} [uninterpreted_option] FileOptions uninterpreted_option + * @property {boolean|null} [".gogoproto.goproto_getters_all"] FileOptions .gogoproto.goproto_getters_all + * @property {boolean|null} [".gogoproto.goproto_enum_prefix_all"] FileOptions .gogoproto.goproto_enum_prefix_all + * @property {boolean|null} [".gogoproto.goproto_stringer_all"] FileOptions .gogoproto.goproto_stringer_all + * @property {boolean|null} [".gogoproto.verbose_equal_all"] FileOptions .gogoproto.verbose_equal_all + * @property {boolean|null} [".gogoproto.face_all"] FileOptions .gogoproto.face_all + * @property {boolean|null} [".gogoproto.gostring_all"] FileOptions .gogoproto.gostring_all + * @property {boolean|null} [".gogoproto.populate_all"] FileOptions .gogoproto.populate_all + * @property {boolean|null} [".gogoproto.stringer_all"] FileOptions .gogoproto.stringer_all + * @property {boolean|null} [".gogoproto.onlyone_all"] FileOptions .gogoproto.onlyone_all + * @property {boolean|null} [".gogoproto.equal_all"] FileOptions .gogoproto.equal_all + * @property {boolean|null} [".gogoproto.description_all"] FileOptions .gogoproto.description_all + * @property {boolean|null} [".gogoproto.testgen_all"] FileOptions .gogoproto.testgen_all + * @property {boolean|null} [".gogoproto.benchgen_all"] FileOptions .gogoproto.benchgen_all + * @property {boolean|null} [".gogoproto.marshaler_all"] FileOptions .gogoproto.marshaler_all + * @property {boolean|null} [".gogoproto.unmarshaler_all"] FileOptions .gogoproto.unmarshaler_all + * @property {boolean|null} [".gogoproto.stable_marshaler_all"] FileOptions .gogoproto.stable_marshaler_all + * @property {boolean|null} [".gogoproto.sizer_all"] FileOptions .gogoproto.sizer_all + * @property {boolean|null} [".gogoproto.goproto_enum_stringer_all"] FileOptions .gogoproto.goproto_enum_stringer_all + * @property {boolean|null} [".gogoproto.enum_stringer_all"] FileOptions .gogoproto.enum_stringer_all + * @property {boolean|null} [".gogoproto.unsafe_marshaler_all"] FileOptions .gogoproto.unsafe_marshaler_all + * @property {boolean|null} [".gogoproto.unsafe_unmarshaler_all"] FileOptions .gogoproto.unsafe_unmarshaler_all + * @property {boolean|null} [".gogoproto.goproto_extensions_map_all"] FileOptions .gogoproto.goproto_extensions_map_all + * @property {boolean|null} [".gogoproto.goproto_unrecognized_all"] FileOptions .gogoproto.goproto_unrecognized_all + * @property {boolean|null} [".gogoproto.gogoproto_import"] FileOptions .gogoproto.gogoproto_import + * @property {boolean|null} [".gogoproto.protosizer_all"] FileOptions .gogoproto.protosizer_all + * @property {boolean|null} [".gogoproto.compare_all"] FileOptions .gogoproto.compare_all + * @property {boolean|null} [".gogoproto.typedecl_all"] FileOptions .gogoproto.typedecl_all + * @property {boolean|null} [".gogoproto.enumdecl_all"] FileOptions .gogoproto.enumdecl_all + * @property {boolean|null} [".gogoproto.goproto_registration"] FileOptions .gogoproto.goproto_registration + * @property {boolean|null} [".gogoproto.messagename_all"] FileOptions .gogoproto.messagename_all + * @property {boolean|null} [".gogoproto.goproto_sizecache_all"] FileOptions .gogoproto.goproto_sizecache_all + * @property {boolean|null} [".gogoproto.goproto_unkeyed_all"] FileOptions .gogoproto.goproto_unkeyed_all + * @property {Array.|null} [".cosmos_proto.declare_interface"] FileOptions .cosmos_proto.declare_interface + * @property {Array.|null} [".cosmos_proto.declare_scalar"] FileOptions .cosmos_proto.declare_scalar + */ + + /** + * Constructs a new FileOptions. + * @memberof google.protobuf + * @classdesc Represents a FileOptions. + * @implements IFileOptions + * @constructor + * @param {google.protobuf.IFileOptions=} [properties] Properties to set + */ + function FileOptions(properties) { + this.uninterpreted_option = []; + this[".cosmos_proto.declare_interface"] = []; + this[".cosmos_proto.declare_scalar"] = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * FileOptions java_package. + * @member {string} java_package + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.java_package = ""; + + /** + * FileOptions java_outer_classname. + * @member {string} java_outer_classname + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.java_outer_classname = ""; + + /** + * FileOptions java_multiple_files. + * @member {boolean} java_multiple_files + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.java_multiple_files = false; + + /** + * FileOptions java_generate_equals_and_hash. + * @member {boolean} java_generate_equals_and_hash + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.java_generate_equals_and_hash = false; + + /** + * FileOptions java_string_check_utf8. + * @member {boolean} java_string_check_utf8 + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.java_string_check_utf8 = false; + + /** + * FileOptions optimize_for. + * @member {google.protobuf.FileOptions.OptimizeMode} optimize_for + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.optimize_for = 1; + + /** + * FileOptions go_package. + * @member {string} go_package + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.go_package = ""; + + /** + * FileOptions cc_generic_services. + * @member {boolean} cc_generic_services + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.cc_generic_services = false; + + /** + * FileOptions java_generic_services. + * @member {boolean} java_generic_services + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.java_generic_services = false; + + /** + * FileOptions py_generic_services. + * @member {boolean} py_generic_services + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.py_generic_services = false; + + /** + * FileOptions deprecated. + * @member {boolean} deprecated + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.deprecated = false; + + /** + * FileOptions cc_enable_arenas. + * @member {boolean} cc_enable_arenas + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.cc_enable_arenas = false; + + /** + * FileOptions objc_class_prefix. + * @member {string} objc_class_prefix + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.objc_class_prefix = ""; + + /** + * FileOptions csharp_namespace. + * @member {string} csharp_namespace + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.csharp_namespace = ""; + + /** + * FileOptions uninterpreted_option. + * @member {Array.} uninterpreted_option + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.uninterpreted_option = $util.emptyArray; + + /** + * FileOptions .gogoproto.goproto_getters_all. + * @member {boolean} .gogoproto.goproto_getters_all + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype[".gogoproto.goproto_getters_all"] = false; + + /** + * FileOptions .gogoproto.goproto_enum_prefix_all. + * @member {boolean} .gogoproto.goproto_enum_prefix_all + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype[".gogoproto.goproto_enum_prefix_all"] = false; + + /** + * FileOptions .gogoproto.goproto_stringer_all. + * @member {boolean} .gogoproto.goproto_stringer_all + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype[".gogoproto.goproto_stringer_all"] = false; + + /** + * FileOptions .gogoproto.verbose_equal_all. + * @member {boolean} .gogoproto.verbose_equal_all + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype[".gogoproto.verbose_equal_all"] = false; + + /** + * FileOptions .gogoproto.face_all. + * @member {boolean} .gogoproto.face_all + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype[".gogoproto.face_all"] = false; + + /** + * FileOptions .gogoproto.gostring_all. + * @member {boolean} .gogoproto.gostring_all + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype[".gogoproto.gostring_all"] = false; + + /** + * FileOptions .gogoproto.populate_all. + * @member {boolean} .gogoproto.populate_all + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype[".gogoproto.populate_all"] = false; + + /** + * FileOptions .gogoproto.stringer_all. + * @member {boolean} .gogoproto.stringer_all + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype[".gogoproto.stringer_all"] = false; + + /** + * FileOptions .gogoproto.onlyone_all. + * @member {boolean} .gogoproto.onlyone_all + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype[".gogoproto.onlyone_all"] = false; + + /** + * FileOptions .gogoproto.equal_all. + * @member {boolean} .gogoproto.equal_all + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype[".gogoproto.equal_all"] = false; + + /** + * FileOptions .gogoproto.description_all. + * @member {boolean} .gogoproto.description_all + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype[".gogoproto.description_all"] = false; + + /** + * FileOptions .gogoproto.testgen_all. + * @member {boolean} .gogoproto.testgen_all + * @memberof google.protobuf.FileOptions + * @instance */ + FileOptions.prototype[".gogoproto.testgen_all"] = false; /** - * Constructs a new EnumOptions. - * @memberof google.protobuf - * @classdesc Represents an EnumOptions. - * @implements IEnumOptions - * @constructor - * @param {google.protobuf.IEnumOptions=} [properties] Properties to set + * FileOptions .gogoproto.benchgen_all. + * @member {boolean} .gogoproto.benchgen_all + * @memberof google.protobuf.FileOptions + * @instance */ - function EnumOptions(properties) { - this.uninterpreted_option = []; - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + FileOptions.prototype[".gogoproto.benchgen_all"] = false; /** - * EnumOptions allow_alias. - * @member {boolean} allow_alias - * @memberof google.protobuf.EnumOptions + * FileOptions .gogoproto.marshaler_all. + * @member {boolean} .gogoproto.marshaler_all + * @memberof google.protobuf.FileOptions * @instance */ - EnumOptions.prototype.allow_alias = false; + FileOptions.prototype[".gogoproto.marshaler_all"] = false; /** - * EnumOptions deprecated. - * @member {boolean} deprecated - * @memberof google.protobuf.EnumOptions + * FileOptions .gogoproto.unmarshaler_all. + * @member {boolean} .gogoproto.unmarshaler_all + * @memberof google.protobuf.FileOptions * @instance */ - EnumOptions.prototype.deprecated = false; + FileOptions.prototype[".gogoproto.unmarshaler_all"] = false; /** - * EnumOptions uninterpreted_option. - * @member {Array.} uninterpreted_option - * @memberof google.protobuf.EnumOptions + * FileOptions .gogoproto.stable_marshaler_all. + * @member {boolean} .gogoproto.stable_marshaler_all + * @memberof google.protobuf.FileOptions * @instance */ - EnumOptions.prototype.uninterpreted_option = $util.emptyArray; + FileOptions.prototype[".gogoproto.stable_marshaler_all"] = false; /** - * EnumOptions .gogoproto.goproto_enum_prefix. - * @member {boolean} .gogoproto.goproto_enum_prefix - * @memberof google.protobuf.EnumOptions + * FileOptions .gogoproto.sizer_all. + * @member {boolean} .gogoproto.sizer_all + * @memberof google.protobuf.FileOptions * @instance */ - EnumOptions.prototype[".gogoproto.goproto_enum_prefix"] = false; + FileOptions.prototype[".gogoproto.sizer_all"] = false; /** - * EnumOptions .gogoproto.goproto_enum_stringer. - * @member {boolean} .gogoproto.goproto_enum_stringer - * @memberof google.protobuf.EnumOptions + * FileOptions .gogoproto.goproto_enum_stringer_all. + * @member {boolean} .gogoproto.goproto_enum_stringer_all + * @memberof google.protobuf.FileOptions * @instance */ - EnumOptions.prototype[".gogoproto.goproto_enum_stringer"] = false; + FileOptions.prototype[".gogoproto.goproto_enum_stringer_all"] = false; /** - * EnumOptions .gogoproto.enum_stringer. - * @member {boolean} .gogoproto.enum_stringer - * @memberof google.protobuf.EnumOptions + * FileOptions .gogoproto.enum_stringer_all. + * @member {boolean} .gogoproto.enum_stringer_all + * @memberof google.protobuf.FileOptions * @instance */ - EnumOptions.prototype[".gogoproto.enum_stringer"] = false; + FileOptions.prototype[".gogoproto.enum_stringer_all"] = false; /** - * EnumOptions .gogoproto.enum_customname. - * @member {string} .gogoproto.enum_customname - * @memberof google.protobuf.EnumOptions + * FileOptions .gogoproto.unsafe_marshaler_all. + * @member {boolean} .gogoproto.unsafe_marshaler_all + * @memberof google.protobuf.FileOptions * @instance */ - EnumOptions.prototype[".gogoproto.enum_customname"] = ""; + FileOptions.prototype[".gogoproto.unsafe_marshaler_all"] = false; /** - * EnumOptions .gogoproto.enumdecl. - * @member {boolean} .gogoproto.enumdecl - * @memberof google.protobuf.EnumOptions + * FileOptions .gogoproto.unsafe_unmarshaler_all. + * @member {boolean} .gogoproto.unsafe_unmarshaler_all + * @memberof google.protobuf.FileOptions * @instance */ - EnumOptions.prototype[".gogoproto.enumdecl"] = false; + FileOptions.prototype[".gogoproto.unsafe_unmarshaler_all"] = false; /** - * Encodes the specified EnumOptions message. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages. - * @function encode - * @memberof google.protobuf.EnumOptions - * @static - * @param {google.protobuf.IEnumOptions} message EnumOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * FileOptions .gogoproto.goproto_extensions_map_all. + * @member {boolean} .gogoproto.goproto_extensions_map_all + * @memberof google.protobuf.FileOptions + * @instance */ - EnumOptions.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.allow_alias != null && Object.hasOwnProperty.call(message, "allow_alias")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.allow_alias); - if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.deprecated); - if (message.uninterpreted_option != null && message.uninterpreted_option.length) - for (let i = 0; i < message.uninterpreted_option.length; ++i) - $root.google.protobuf.UninterpretedOption.encode(message.uninterpreted_option[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); - if (message[".gogoproto.goproto_enum_prefix"] != null && Object.hasOwnProperty.call(message, ".gogoproto.goproto_enum_prefix")) - writer.uint32(/* id 62001, wireType 0 =*/496008).bool(message[".gogoproto.goproto_enum_prefix"]); - if (message[".gogoproto.goproto_enum_stringer"] != null && Object.hasOwnProperty.call(message, ".gogoproto.goproto_enum_stringer")) - writer.uint32(/* id 62021, wireType 0 =*/496168).bool(message[".gogoproto.goproto_enum_stringer"]); - if (message[".gogoproto.enum_stringer"] != null && Object.hasOwnProperty.call(message, ".gogoproto.enum_stringer")) - writer.uint32(/* id 62022, wireType 0 =*/496176).bool(message[".gogoproto.enum_stringer"]); - if (message[".gogoproto.enum_customname"] != null && Object.hasOwnProperty.call(message, ".gogoproto.enum_customname")) - writer.uint32(/* id 62023, wireType 2 =*/496186).string(message[".gogoproto.enum_customname"]); - if (message[".gogoproto.enumdecl"] != null && Object.hasOwnProperty.call(message, ".gogoproto.enumdecl")) - writer.uint32(/* id 62024, wireType 0 =*/496192).bool(message[".gogoproto.enumdecl"]); - return writer; - }; + FileOptions.prototype[".gogoproto.goproto_extensions_map_all"] = false; /** - * Encodes the specified EnumOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.EnumOptions - * @static - * @param {google.protobuf.IEnumOptions} message EnumOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * FileOptions .gogoproto.goproto_unrecognized_all. + * @member {boolean} .gogoproto.goproto_unrecognized_all + * @memberof google.protobuf.FileOptions + * @instance */ - EnumOptions.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + FileOptions.prototype[".gogoproto.goproto_unrecognized_all"] = false; /** - * Decodes an EnumOptions message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.EnumOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.EnumOptions} EnumOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * FileOptions .gogoproto.gogoproto_import. + * @member {boolean} .gogoproto.gogoproto_import + * @memberof google.protobuf.FileOptions + * @instance */ - EnumOptions.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.EnumOptions(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 2: - message.allow_alias = reader.bool(); - break; - case 3: - message.deprecated = reader.bool(); - break; - case 999: - if (!(message.uninterpreted_option && message.uninterpreted_option.length)) - message.uninterpreted_option = []; - message.uninterpreted_option.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); - break; - case 62001: - message[".gogoproto.goproto_enum_prefix"] = reader.bool(); - break; - case 62021: - message[".gogoproto.goproto_enum_stringer"] = reader.bool(); - break; - case 62022: - message[".gogoproto.enum_stringer"] = reader.bool(); - break; - case 62023: - message[".gogoproto.enum_customname"] = reader.string(); - break; - case 62024: - message[".gogoproto.enumdecl"] = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + FileOptions.prototype[".gogoproto.gogoproto_import"] = false; /** - * Decodes an EnumOptions message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.EnumOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.EnumOptions} EnumOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * FileOptions .gogoproto.protosizer_all. + * @member {boolean} .gogoproto.protosizer_all + * @memberof google.protobuf.FileOptions + * @instance */ - EnumOptions.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + FileOptions.prototype[".gogoproto.protosizer_all"] = false; /** - * Verifies an EnumOptions message. - * @function verify - * @memberof google.protobuf.EnumOptions - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * FileOptions .gogoproto.compare_all. + * @member {boolean} .gogoproto.compare_all + * @memberof google.protobuf.FileOptions + * @instance */ - EnumOptions.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.allow_alias != null && message.hasOwnProperty("allow_alias")) - if (typeof message.allow_alias !== "boolean") - return "allow_alias: boolean expected"; - if (message.deprecated != null && message.hasOwnProperty("deprecated")) - if (typeof message.deprecated !== "boolean") - return "deprecated: boolean expected"; - if (message.uninterpreted_option != null && message.hasOwnProperty("uninterpreted_option")) { - if (!Array.isArray(message.uninterpreted_option)) - return "uninterpreted_option: array expected"; - for (let i = 0; i < message.uninterpreted_option.length; ++i) { - let error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpreted_option[i]); - if (error) - return "uninterpreted_option." + error; - } - } - if (message[".gogoproto.goproto_enum_prefix"] != null && message.hasOwnProperty(".gogoproto.goproto_enum_prefix")) - if (typeof message[".gogoproto.goproto_enum_prefix"] !== "boolean") - return ".gogoproto.goproto_enum_prefix: boolean expected"; - if (message[".gogoproto.goproto_enum_stringer"] != null && message.hasOwnProperty(".gogoproto.goproto_enum_stringer")) - if (typeof message[".gogoproto.goproto_enum_stringer"] !== "boolean") - return ".gogoproto.goproto_enum_stringer: boolean expected"; - if (message[".gogoproto.enum_stringer"] != null && message.hasOwnProperty(".gogoproto.enum_stringer")) - if (typeof message[".gogoproto.enum_stringer"] !== "boolean") - return ".gogoproto.enum_stringer: boolean expected"; - if (message[".gogoproto.enum_customname"] != null && message.hasOwnProperty(".gogoproto.enum_customname")) - if (!$util.isString(message[".gogoproto.enum_customname"])) - return ".gogoproto.enum_customname: string expected"; - if (message[".gogoproto.enumdecl"] != null && message.hasOwnProperty(".gogoproto.enumdecl")) - if (typeof message[".gogoproto.enumdecl"] !== "boolean") - return ".gogoproto.enumdecl: boolean expected"; - return null; - }; + FileOptions.prototype[".gogoproto.compare_all"] = false; /** - * Creates an EnumOptions message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.EnumOptions - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.EnumOptions} EnumOptions + * FileOptions .gogoproto.typedecl_all. + * @member {boolean} .gogoproto.typedecl_all + * @memberof google.protobuf.FileOptions + * @instance */ - EnumOptions.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.EnumOptions) - return object; - let message = new $root.google.protobuf.EnumOptions(); - if (object.allow_alias != null) - message.allow_alias = Boolean(object.allow_alias); - if (object.deprecated != null) - message.deprecated = Boolean(object.deprecated); - if (object.uninterpreted_option) { - if (!Array.isArray(object.uninterpreted_option)) - throw TypeError(".google.protobuf.EnumOptions.uninterpreted_option: array expected"); - message.uninterpreted_option = []; - for (let i = 0; i < object.uninterpreted_option.length; ++i) { - if (typeof object.uninterpreted_option[i] !== "object") - throw TypeError(".google.protobuf.EnumOptions.uninterpreted_option: object expected"); - message.uninterpreted_option[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpreted_option[i]); - } - } - if (object[".gogoproto.goproto_enum_prefix"] != null) - message[".gogoproto.goproto_enum_prefix"] = Boolean(object[".gogoproto.goproto_enum_prefix"]); - if (object[".gogoproto.goproto_enum_stringer"] != null) - message[".gogoproto.goproto_enum_stringer"] = Boolean(object[".gogoproto.goproto_enum_stringer"]); - if (object[".gogoproto.enum_stringer"] != null) - message[".gogoproto.enum_stringer"] = Boolean(object[".gogoproto.enum_stringer"]); - if (object[".gogoproto.enum_customname"] != null) - message[".gogoproto.enum_customname"] = String(object[".gogoproto.enum_customname"]); - if (object[".gogoproto.enumdecl"] != null) - message[".gogoproto.enumdecl"] = Boolean(object[".gogoproto.enumdecl"]); - return message; - }; + FileOptions.prototype[".gogoproto.typedecl_all"] = false; /** - * Creates a plain object from an EnumOptions message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.EnumOptions - * @static - * @param {google.protobuf.EnumOptions} message EnumOptions - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * FileOptions .gogoproto.enumdecl_all. + * @member {boolean} .gogoproto.enumdecl_all + * @memberof google.protobuf.FileOptions + * @instance */ - EnumOptions.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.arrays || options.defaults) - object.uninterpreted_option = []; - if (options.defaults) { - object.allow_alias = false; - object.deprecated = false; - object[".gogoproto.goproto_enum_prefix"] = false; - object[".gogoproto.goproto_enum_stringer"] = false; - object[".gogoproto.enum_stringer"] = false; - object[".gogoproto.enum_customname"] = ""; - object[".gogoproto.enumdecl"] = false; - } - if (message.allow_alias != null && message.hasOwnProperty("allow_alias")) - object.allow_alias = message.allow_alias; - if (message.deprecated != null && message.hasOwnProperty("deprecated")) - object.deprecated = message.deprecated; - if (message.uninterpreted_option && message.uninterpreted_option.length) { - object.uninterpreted_option = []; - for (let j = 0; j < message.uninterpreted_option.length; ++j) - object.uninterpreted_option[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpreted_option[j], options); - } - if (message[".gogoproto.goproto_enum_prefix"] != null && message.hasOwnProperty(".gogoproto.goproto_enum_prefix")) - object[".gogoproto.goproto_enum_prefix"] = message[".gogoproto.goproto_enum_prefix"]; - if (message[".gogoproto.goproto_enum_stringer"] != null && message.hasOwnProperty(".gogoproto.goproto_enum_stringer")) - object[".gogoproto.goproto_enum_stringer"] = message[".gogoproto.goproto_enum_stringer"]; - if (message[".gogoproto.enum_stringer"] != null && message.hasOwnProperty(".gogoproto.enum_stringer")) - object[".gogoproto.enum_stringer"] = message[".gogoproto.enum_stringer"]; - if (message[".gogoproto.enum_customname"] != null && message.hasOwnProperty(".gogoproto.enum_customname")) - object[".gogoproto.enum_customname"] = message[".gogoproto.enum_customname"]; - if (message[".gogoproto.enumdecl"] != null && message.hasOwnProperty(".gogoproto.enumdecl")) - object[".gogoproto.enumdecl"] = message[".gogoproto.enumdecl"]; - return object; - }; + FileOptions.prototype[".gogoproto.enumdecl_all"] = false; /** - * Converts this EnumOptions to JSON. - * @function toJSON - * @memberof google.protobuf.EnumOptions + * FileOptions .gogoproto.goproto_registration. + * @member {boolean} .gogoproto.goproto_registration + * @memberof google.protobuf.FileOptions * @instance - * @returns {Object.} JSON object */ - EnumOptions.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return EnumOptions; - })(); - - protobuf.EnumValueOptions = (function() { + FileOptions.prototype[".gogoproto.goproto_registration"] = false; /** - * Properties of an EnumValueOptions. - * @memberof google.protobuf - * @interface IEnumValueOptions - * @property {boolean|null} [deprecated] EnumValueOptions deprecated - * @property {Array.|null} [uninterpreted_option] EnumValueOptions uninterpreted_option - * @property {string|null} [".gogoproto.enumvalue_customname"] EnumValueOptions .gogoproto.enumvalue_customname + * FileOptions .gogoproto.messagename_all. + * @member {boolean} .gogoproto.messagename_all + * @memberof google.protobuf.FileOptions + * @instance */ + FileOptions.prototype[".gogoproto.messagename_all"] = false; /** - * Constructs a new EnumValueOptions. - * @memberof google.protobuf - * @classdesc Represents an EnumValueOptions. - * @implements IEnumValueOptions - * @constructor - * @param {google.protobuf.IEnumValueOptions=} [properties] Properties to set + * FileOptions .gogoproto.goproto_sizecache_all. + * @member {boolean} .gogoproto.goproto_sizecache_all + * @memberof google.protobuf.FileOptions + * @instance */ - function EnumValueOptions(properties) { - this.uninterpreted_option = []; - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + FileOptions.prototype[".gogoproto.goproto_sizecache_all"] = false; /** - * EnumValueOptions deprecated. - * @member {boolean} deprecated - * @memberof google.protobuf.EnumValueOptions + * FileOptions .gogoproto.goproto_unkeyed_all. + * @member {boolean} .gogoproto.goproto_unkeyed_all + * @memberof google.protobuf.FileOptions * @instance */ - EnumValueOptions.prototype.deprecated = false; + FileOptions.prototype[".gogoproto.goproto_unkeyed_all"] = false; /** - * EnumValueOptions uninterpreted_option. - * @member {Array.} uninterpreted_option - * @memberof google.protobuf.EnumValueOptions + * FileOptions .cosmos_proto.declare_interface. + * @member {Array.} .cosmos_proto.declare_interface + * @memberof google.protobuf.FileOptions * @instance */ - EnumValueOptions.prototype.uninterpreted_option = $util.emptyArray; + FileOptions.prototype[".cosmos_proto.declare_interface"] = $util.emptyArray; /** - * EnumValueOptions .gogoproto.enumvalue_customname. - * @member {string} .gogoproto.enumvalue_customname - * @memberof google.protobuf.EnumValueOptions + * FileOptions .cosmos_proto.declare_scalar. + * @member {Array.} .cosmos_proto.declare_scalar + * @memberof google.protobuf.FileOptions * @instance */ - EnumValueOptions.prototype[".gogoproto.enumvalue_customname"] = ""; + FileOptions.prototype[".cosmos_proto.declare_scalar"] = $util.emptyArray; /** - * Encodes the specified EnumValueOptions message. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages. + * Encodes the specified FileOptions message. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages. * @function encode - * @memberof google.protobuf.EnumValueOptions + * @memberof google.protobuf.FileOptions * @static - * @param {google.protobuf.IEnumValueOptions} message EnumValueOptions message or plain object to encode + * @param {google.protobuf.IFileOptions} message FileOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EnumValueOptions.encode = function encode(message, writer) { + FileOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.java_package != null && Object.hasOwnProperty.call(message, "java_package")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.java_package); + if (message.java_outer_classname != null && Object.hasOwnProperty.call(message, "java_outer_classname")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.java_outer_classname); + if (message.optimize_for != null && Object.hasOwnProperty.call(message, "optimize_for")) + writer.uint32(/* id 9, wireType 0 =*/72).int32(message.optimize_for); + if (message.java_multiple_files != null && Object.hasOwnProperty.call(message, "java_multiple_files")) + writer.uint32(/* id 10, wireType 0 =*/80).bool(message.java_multiple_files); + if (message.go_package != null && Object.hasOwnProperty.call(message, "go_package")) + writer.uint32(/* id 11, wireType 2 =*/90).string(message.go_package); + if (message.cc_generic_services != null && Object.hasOwnProperty.call(message, "cc_generic_services")) + writer.uint32(/* id 16, wireType 0 =*/128).bool(message.cc_generic_services); + if (message.java_generic_services != null && Object.hasOwnProperty.call(message, "java_generic_services")) + writer.uint32(/* id 17, wireType 0 =*/136).bool(message.java_generic_services); + if (message.py_generic_services != null && Object.hasOwnProperty.call(message, "py_generic_services")) + writer.uint32(/* id 18, wireType 0 =*/144).bool(message.py_generic_services); + if (message.java_generate_equals_and_hash != null && Object.hasOwnProperty.call(message, "java_generate_equals_and_hash")) + writer.uint32(/* id 20, wireType 0 =*/160).bool(message.java_generate_equals_and_hash); if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.deprecated); + writer.uint32(/* id 23, wireType 0 =*/184).bool(message.deprecated); + if (message.java_string_check_utf8 != null && Object.hasOwnProperty.call(message, "java_string_check_utf8")) + writer.uint32(/* id 27, wireType 0 =*/216).bool(message.java_string_check_utf8); + if (message.cc_enable_arenas != null && Object.hasOwnProperty.call(message, "cc_enable_arenas")) + writer.uint32(/* id 31, wireType 0 =*/248).bool(message.cc_enable_arenas); + if (message.objc_class_prefix != null && Object.hasOwnProperty.call(message, "objc_class_prefix")) + writer.uint32(/* id 36, wireType 2 =*/290).string(message.objc_class_prefix); + if (message.csharp_namespace != null && Object.hasOwnProperty.call(message, "csharp_namespace")) + writer.uint32(/* id 37, wireType 2 =*/298).string(message.csharp_namespace); if (message.uninterpreted_option != null && message.uninterpreted_option.length) for (let i = 0; i < message.uninterpreted_option.length; ++i) $root.google.protobuf.UninterpretedOption.encode(message.uninterpreted_option[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); - if (message[".gogoproto.enumvalue_customname"] != null && Object.hasOwnProperty.call(message, ".gogoproto.enumvalue_customname")) - writer.uint32(/* id 66001, wireType 2 =*/528010).string(message[".gogoproto.enumvalue_customname"]); + if (message[".gogoproto.goproto_getters_all"] != null && Object.hasOwnProperty.call(message, ".gogoproto.goproto_getters_all")) + writer.uint32(/* id 63001, wireType 0 =*/504008).bool(message[".gogoproto.goproto_getters_all"]); + if (message[".gogoproto.goproto_enum_prefix_all"] != null && Object.hasOwnProperty.call(message, ".gogoproto.goproto_enum_prefix_all")) + writer.uint32(/* id 63002, wireType 0 =*/504016).bool(message[".gogoproto.goproto_enum_prefix_all"]); + if (message[".gogoproto.goproto_stringer_all"] != null && Object.hasOwnProperty.call(message, ".gogoproto.goproto_stringer_all")) + writer.uint32(/* id 63003, wireType 0 =*/504024).bool(message[".gogoproto.goproto_stringer_all"]); + if (message[".gogoproto.verbose_equal_all"] != null && Object.hasOwnProperty.call(message, ".gogoproto.verbose_equal_all")) + writer.uint32(/* id 63004, wireType 0 =*/504032).bool(message[".gogoproto.verbose_equal_all"]); + if (message[".gogoproto.face_all"] != null && Object.hasOwnProperty.call(message, ".gogoproto.face_all")) + writer.uint32(/* id 63005, wireType 0 =*/504040).bool(message[".gogoproto.face_all"]); + if (message[".gogoproto.gostring_all"] != null && Object.hasOwnProperty.call(message, ".gogoproto.gostring_all")) + writer.uint32(/* id 63006, wireType 0 =*/504048).bool(message[".gogoproto.gostring_all"]); + if (message[".gogoproto.populate_all"] != null && Object.hasOwnProperty.call(message, ".gogoproto.populate_all")) + writer.uint32(/* id 63007, wireType 0 =*/504056).bool(message[".gogoproto.populate_all"]); + if (message[".gogoproto.stringer_all"] != null && Object.hasOwnProperty.call(message, ".gogoproto.stringer_all")) + writer.uint32(/* id 63008, wireType 0 =*/504064).bool(message[".gogoproto.stringer_all"]); + if (message[".gogoproto.onlyone_all"] != null && Object.hasOwnProperty.call(message, ".gogoproto.onlyone_all")) + writer.uint32(/* id 63009, wireType 0 =*/504072).bool(message[".gogoproto.onlyone_all"]); + if (message[".gogoproto.equal_all"] != null && Object.hasOwnProperty.call(message, ".gogoproto.equal_all")) + writer.uint32(/* id 63013, wireType 0 =*/504104).bool(message[".gogoproto.equal_all"]); + if (message[".gogoproto.description_all"] != null && Object.hasOwnProperty.call(message, ".gogoproto.description_all")) + writer.uint32(/* id 63014, wireType 0 =*/504112).bool(message[".gogoproto.description_all"]); + if (message[".gogoproto.testgen_all"] != null && Object.hasOwnProperty.call(message, ".gogoproto.testgen_all")) + writer.uint32(/* id 63015, wireType 0 =*/504120).bool(message[".gogoproto.testgen_all"]); + if (message[".gogoproto.benchgen_all"] != null && Object.hasOwnProperty.call(message, ".gogoproto.benchgen_all")) + writer.uint32(/* id 63016, wireType 0 =*/504128).bool(message[".gogoproto.benchgen_all"]); + if (message[".gogoproto.marshaler_all"] != null && Object.hasOwnProperty.call(message, ".gogoproto.marshaler_all")) + writer.uint32(/* id 63017, wireType 0 =*/504136).bool(message[".gogoproto.marshaler_all"]); + if (message[".gogoproto.unmarshaler_all"] != null && Object.hasOwnProperty.call(message, ".gogoproto.unmarshaler_all")) + writer.uint32(/* id 63018, wireType 0 =*/504144).bool(message[".gogoproto.unmarshaler_all"]); + if (message[".gogoproto.stable_marshaler_all"] != null && Object.hasOwnProperty.call(message, ".gogoproto.stable_marshaler_all")) + writer.uint32(/* id 63019, wireType 0 =*/504152).bool(message[".gogoproto.stable_marshaler_all"]); + if (message[".gogoproto.sizer_all"] != null && Object.hasOwnProperty.call(message, ".gogoproto.sizer_all")) + writer.uint32(/* id 63020, wireType 0 =*/504160).bool(message[".gogoproto.sizer_all"]); + if (message[".gogoproto.goproto_enum_stringer_all"] != null && Object.hasOwnProperty.call(message, ".gogoproto.goproto_enum_stringer_all")) + writer.uint32(/* id 63021, wireType 0 =*/504168).bool(message[".gogoproto.goproto_enum_stringer_all"]); + if (message[".gogoproto.enum_stringer_all"] != null && Object.hasOwnProperty.call(message, ".gogoproto.enum_stringer_all")) + writer.uint32(/* id 63022, wireType 0 =*/504176).bool(message[".gogoproto.enum_stringer_all"]); + if (message[".gogoproto.unsafe_marshaler_all"] != null && Object.hasOwnProperty.call(message, ".gogoproto.unsafe_marshaler_all")) + writer.uint32(/* id 63023, wireType 0 =*/504184).bool(message[".gogoproto.unsafe_marshaler_all"]); + if (message[".gogoproto.unsafe_unmarshaler_all"] != null && Object.hasOwnProperty.call(message, ".gogoproto.unsafe_unmarshaler_all")) + writer.uint32(/* id 63024, wireType 0 =*/504192).bool(message[".gogoproto.unsafe_unmarshaler_all"]); + if (message[".gogoproto.goproto_extensions_map_all"] != null && Object.hasOwnProperty.call(message, ".gogoproto.goproto_extensions_map_all")) + writer.uint32(/* id 63025, wireType 0 =*/504200).bool(message[".gogoproto.goproto_extensions_map_all"]); + if (message[".gogoproto.goproto_unrecognized_all"] != null && Object.hasOwnProperty.call(message, ".gogoproto.goproto_unrecognized_all")) + writer.uint32(/* id 63026, wireType 0 =*/504208).bool(message[".gogoproto.goproto_unrecognized_all"]); + if (message[".gogoproto.gogoproto_import"] != null && Object.hasOwnProperty.call(message, ".gogoproto.gogoproto_import")) + writer.uint32(/* id 63027, wireType 0 =*/504216).bool(message[".gogoproto.gogoproto_import"]); + if (message[".gogoproto.protosizer_all"] != null && Object.hasOwnProperty.call(message, ".gogoproto.protosizer_all")) + writer.uint32(/* id 63028, wireType 0 =*/504224).bool(message[".gogoproto.protosizer_all"]); + if (message[".gogoproto.compare_all"] != null && Object.hasOwnProperty.call(message, ".gogoproto.compare_all")) + writer.uint32(/* id 63029, wireType 0 =*/504232).bool(message[".gogoproto.compare_all"]); + if (message[".gogoproto.typedecl_all"] != null && Object.hasOwnProperty.call(message, ".gogoproto.typedecl_all")) + writer.uint32(/* id 63030, wireType 0 =*/504240).bool(message[".gogoproto.typedecl_all"]); + if (message[".gogoproto.enumdecl_all"] != null && Object.hasOwnProperty.call(message, ".gogoproto.enumdecl_all")) + writer.uint32(/* id 63031, wireType 0 =*/504248).bool(message[".gogoproto.enumdecl_all"]); + if (message[".gogoproto.goproto_registration"] != null && Object.hasOwnProperty.call(message, ".gogoproto.goproto_registration")) + writer.uint32(/* id 63032, wireType 0 =*/504256).bool(message[".gogoproto.goproto_registration"]); + if (message[".gogoproto.messagename_all"] != null && Object.hasOwnProperty.call(message, ".gogoproto.messagename_all")) + writer.uint32(/* id 63033, wireType 0 =*/504264).bool(message[".gogoproto.messagename_all"]); + if (message[".gogoproto.goproto_sizecache_all"] != null && Object.hasOwnProperty.call(message, ".gogoproto.goproto_sizecache_all")) + writer.uint32(/* id 63034, wireType 0 =*/504272).bool(message[".gogoproto.goproto_sizecache_all"]); + if (message[".gogoproto.goproto_unkeyed_all"] != null && Object.hasOwnProperty.call(message, ".gogoproto.goproto_unkeyed_all")) + writer.uint32(/* id 63035, wireType 0 =*/504280).bool(message[".gogoproto.goproto_unkeyed_all"]); + if (message[".cosmos_proto.declare_interface"] != null && message[".cosmos_proto.declare_interface"].length) + for (let i = 0; i < message[".cosmos_proto.declare_interface"].length; ++i) + $root.cosmos_proto.InterfaceDescriptor.encode(message[".cosmos_proto.declare_interface"][i], writer.uint32(/* id 793021, wireType 2 =*/6344170).fork()).ldelim(); + if (message[".cosmos_proto.declare_scalar"] != null && message[".cosmos_proto.declare_scalar"].length) + for (let i = 0; i < message[".cosmos_proto.declare_scalar"].length; ++i) + $root.cosmos_proto.ScalarDescriptor.encode(message[".cosmos_proto.declare_scalar"][i], writer.uint32(/* id 793022, wireType 2 =*/6344178).fork()).ldelim(); return writer; }; /** - * Encodes the specified EnumValueOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages. + * Encodes the specified FileOptions message, length delimited. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages. * @function encodeDelimited - * @memberof google.protobuf.EnumValueOptions + * @memberof google.protobuf.FileOptions * @static - * @param {google.protobuf.IEnumValueOptions} message EnumValueOptions message or plain object to encode + * @param {google.protobuf.IFileOptions} message FileOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EnumValueOptions.encodeDelimited = function encodeDelimited(message, writer) { + FileOptions.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an EnumValueOptions message from the specified reader or buffer. + * Decodes a FileOptions message from the specified reader or buffer. * @function decode - * @memberof google.protobuf.EnumValueOptions + * @memberof google.protobuf.FileOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.EnumValueOptions} EnumValueOptions + * @returns {google.protobuf.FileOptions} FileOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EnumValueOptions.decode = function decode(reader, length) { + FileOptions.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.EnumValueOptions(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FileOptions(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: + message.java_package = reader.string(); + break; + case 8: + message.java_outer_classname = reader.string(); + break; + case 10: + message.java_multiple_files = reader.bool(); + break; + case 20: + message.java_generate_equals_and_hash = reader.bool(); + break; + case 27: + message.java_string_check_utf8 = reader.bool(); + break; + case 9: + message.optimize_for = reader.int32(); + break; + case 11: + message.go_package = reader.string(); + break; + case 16: + message.cc_generic_services = reader.bool(); + break; + case 17: + message.java_generic_services = reader.bool(); + break; + case 18: + message.py_generic_services = reader.bool(); + break; + case 23: message.deprecated = reader.bool(); break; + case 31: + message.cc_enable_arenas = reader.bool(); + break; + case 36: + message.objc_class_prefix = reader.string(); + break; + case 37: + message.csharp_namespace = reader.string(); + break; case 999: if (!(message.uninterpreted_option && message.uninterpreted_option.length)) message.uninterpreted_option = []; message.uninterpreted_option.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); break; - case 66001: - message[".gogoproto.enumvalue_customname"] = reader.string(); + case 63001: + message[".gogoproto.goproto_getters_all"] = reader.bool(); + break; + case 63002: + message[".gogoproto.goproto_enum_prefix_all"] = reader.bool(); + break; + case 63003: + message[".gogoproto.goproto_stringer_all"] = reader.bool(); + break; + case 63004: + message[".gogoproto.verbose_equal_all"] = reader.bool(); + break; + case 63005: + message[".gogoproto.face_all"] = reader.bool(); + break; + case 63006: + message[".gogoproto.gostring_all"] = reader.bool(); + break; + case 63007: + message[".gogoproto.populate_all"] = reader.bool(); + break; + case 63008: + message[".gogoproto.stringer_all"] = reader.bool(); + break; + case 63009: + message[".gogoproto.onlyone_all"] = reader.bool(); + break; + case 63013: + message[".gogoproto.equal_all"] = reader.bool(); + break; + case 63014: + message[".gogoproto.description_all"] = reader.bool(); + break; + case 63015: + message[".gogoproto.testgen_all"] = reader.bool(); + break; + case 63016: + message[".gogoproto.benchgen_all"] = reader.bool(); + break; + case 63017: + message[".gogoproto.marshaler_all"] = reader.bool(); + break; + case 63018: + message[".gogoproto.unmarshaler_all"] = reader.bool(); + break; + case 63019: + message[".gogoproto.stable_marshaler_all"] = reader.bool(); + break; + case 63020: + message[".gogoproto.sizer_all"] = reader.bool(); + break; + case 63021: + message[".gogoproto.goproto_enum_stringer_all"] = reader.bool(); + break; + case 63022: + message[".gogoproto.enum_stringer_all"] = reader.bool(); + break; + case 63023: + message[".gogoproto.unsafe_marshaler_all"] = reader.bool(); + break; + case 63024: + message[".gogoproto.unsafe_unmarshaler_all"] = reader.bool(); + break; + case 63025: + message[".gogoproto.goproto_extensions_map_all"] = reader.bool(); + break; + case 63026: + message[".gogoproto.goproto_unrecognized_all"] = reader.bool(); + break; + case 63027: + message[".gogoproto.gogoproto_import"] = reader.bool(); + break; + case 63028: + message[".gogoproto.protosizer_all"] = reader.bool(); + break; + case 63029: + message[".gogoproto.compare_all"] = reader.bool(); + break; + case 63030: + message[".gogoproto.typedecl_all"] = reader.bool(); + break; + case 63031: + message[".gogoproto.enumdecl_all"] = reader.bool(); + break; + case 63032: + message[".gogoproto.goproto_registration"] = reader.bool(); + break; + case 63033: + message[".gogoproto.messagename_all"] = reader.bool(); + break; + case 63034: + message[".gogoproto.goproto_sizecache_all"] = reader.bool(); + break; + case 63035: + message[".gogoproto.goproto_unkeyed_all"] = reader.bool(); + break; + case 793021: + if (!(message[".cosmos_proto.declare_interface"] && message[".cosmos_proto.declare_interface"].length)) + message[".cosmos_proto.declare_interface"] = []; + message[".cosmos_proto.declare_interface"].push($root.cosmos_proto.InterfaceDescriptor.decode(reader, reader.uint32())); + break; + case 793022: + if (!(message[".cosmos_proto.declare_scalar"] && message[".cosmos_proto.declare_scalar"].length)) + message[".cosmos_proto.declare_scalar"] = []; + message[".cosmos_proto.declare_scalar"].push($root.cosmos_proto.ScalarDescriptor.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -14520,35 +20109,80 @@ export const google = $root.google = (() => { }; /** - * Decodes an EnumValueOptions message from the specified reader or buffer, length delimited. + * Decodes a FileOptions message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.protobuf.EnumValueOptions + * @memberof google.protobuf.FileOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.EnumValueOptions} EnumValueOptions + * @returns {google.protobuf.FileOptions} FileOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EnumValueOptions.decodeDelimited = function decodeDelimited(reader) { + FileOptions.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an EnumValueOptions message. + * Verifies a FileOptions message. * @function verify - * @memberof google.protobuf.EnumValueOptions + * @memberof google.protobuf.FileOptions * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - EnumValueOptions.verify = function verify(message) { + FileOptions.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.java_package != null && message.hasOwnProperty("java_package")) + if (!$util.isString(message.java_package)) + return "java_package: string expected"; + if (message.java_outer_classname != null && message.hasOwnProperty("java_outer_classname")) + if (!$util.isString(message.java_outer_classname)) + return "java_outer_classname: string expected"; + if (message.java_multiple_files != null && message.hasOwnProperty("java_multiple_files")) + if (typeof message.java_multiple_files !== "boolean") + return "java_multiple_files: boolean expected"; + if (message.java_generate_equals_and_hash != null && message.hasOwnProperty("java_generate_equals_and_hash")) + if (typeof message.java_generate_equals_and_hash !== "boolean") + return "java_generate_equals_and_hash: boolean expected"; + if (message.java_string_check_utf8 != null && message.hasOwnProperty("java_string_check_utf8")) + if (typeof message.java_string_check_utf8 !== "boolean") + return "java_string_check_utf8: boolean expected"; + if (message.optimize_for != null && message.hasOwnProperty("optimize_for")) + switch (message.optimize_for) { + default: + return "optimize_for: enum value expected"; + case 1: + case 2: + case 3: + break; + } + if (message.go_package != null && message.hasOwnProperty("go_package")) + if (!$util.isString(message.go_package)) + return "go_package: string expected"; + if (message.cc_generic_services != null && message.hasOwnProperty("cc_generic_services")) + if (typeof message.cc_generic_services !== "boolean") + return "cc_generic_services: boolean expected"; + if (message.java_generic_services != null && message.hasOwnProperty("java_generic_services")) + if (typeof message.java_generic_services !== "boolean") + return "java_generic_services: boolean expected"; + if (message.py_generic_services != null && message.hasOwnProperty("py_generic_services")) + if (typeof message.py_generic_services !== "boolean") + return "py_generic_services: boolean expected"; if (message.deprecated != null && message.hasOwnProperty("deprecated")) if (typeof message.deprecated !== "boolean") return "deprecated: boolean expected"; + if (message.cc_enable_arenas != null && message.hasOwnProperty("cc_enable_arenas")) + if (typeof message.cc_enable_arenas !== "boolean") + return "cc_enable_arenas: boolean expected"; + if (message.objc_class_prefix != null && message.hasOwnProperty("objc_class_prefix")) + if (!$util.isString(message.objc_class_prefix)) + return "objc_class_prefix: string expected"; + if (message.csharp_namespace != null && message.hasOwnProperty("csharp_namespace")) + if (!$util.isString(message.csharp_namespace)) + return "csharp_namespace: string expected"; if (message.uninterpreted_option != null && message.hasOwnProperty("uninterpreted_option")) { if (!Array.isArray(message.uninterpreted_option)) return "uninterpreted_option: array expected"; @@ -14558,106 +20192,531 @@ export const google = $root.google = (() => { return "uninterpreted_option." + error; } } - if (message[".gogoproto.enumvalue_customname"] != null && message.hasOwnProperty(".gogoproto.enumvalue_customname")) - if (!$util.isString(message[".gogoproto.enumvalue_customname"])) - return ".gogoproto.enumvalue_customname: string expected"; + if (message[".gogoproto.goproto_getters_all"] != null && message.hasOwnProperty(".gogoproto.goproto_getters_all")) + if (typeof message[".gogoproto.goproto_getters_all"] !== "boolean") + return ".gogoproto.goproto_getters_all: boolean expected"; + if (message[".gogoproto.goproto_enum_prefix_all"] != null && message.hasOwnProperty(".gogoproto.goproto_enum_prefix_all")) + if (typeof message[".gogoproto.goproto_enum_prefix_all"] !== "boolean") + return ".gogoproto.goproto_enum_prefix_all: boolean expected"; + if (message[".gogoproto.goproto_stringer_all"] != null && message.hasOwnProperty(".gogoproto.goproto_stringer_all")) + if (typeof message[".gogoproto.goproto_stringer_all"] !== "boolean") + return ".gogoproto.goproto_stringer_all: boolean expected"; + if (message[".gogoproto.verbose_equal_all"] != null && message.hasOwnProperty(".gogoproto.verbose_equal_all")) + if (typeof message[".gogoproto.verbose_equal_all"] !== "boolean") + return ".gogoproto.verbose_equal_all: boolean expected"; + if (message[".gogoproto.face_all"] != null && message.hasOwnProperty(".gogoproto.face_all")) + if (typeof message[".gogoproto.face_all"] !== "boolean") + return ".gogoproto.face_all: boolean expected"; + if (message[".gogoproto.gostring_all"] != null && message.hasOwnProperty(".gogoproto.gostring_all")) + if (typeof message[".gogoproto.gostring_all"] !== "boolean") + return ".gogoproto.gostring_all: boolean expected"; + if (message[".gogoproto.populate_all"] != null && message.hasOwnProperty(".gogoproto.populate_all")) + if (typeof message[".gogoproto.populate_all"] !== "boolean") + return ".gogoproto.populate_all: boolean expected"; + if (message[".gogoproto.stringer_all"] != null && message.hasOwnProperty(".gogoproto.stringer_all")) + if (typeof message[".gogoproto.stringer_all"] !== "boolean") + return ".gogoproto.stringer_all: boolean expected"; + if (message[".gogoproto.onlyone_all"] != null && message.hasOwnProperty(".gogoproto.onlyone_all")) + if (typeof message[".gogoproto.onlyone_all"] !== "boolean") + return ".gogoproto.onlyone_all: boolean expected"; + if (message[".gogoproto.equal_all"] != null && message.hasOwnProperty(".gogoproto.equal_all")) + if (typeof message[".gogoproto.equal_all"] !== "boolean") + return ".gogoproto.equal_all: boolean expected"; + if (message[".gogoproto.description_all"] != null && message.hasOwnProperty(".gogoproto.description_all")) + if (typeof message[".gogoproto.description_all"] !== "boolean") + return ".gogoproto.description_all: boolean expected"; + if (message[".gogoproto.testgen_all"] != null && message.hasOwnProperty(".gogoproto.testgen_all")) + if (typeof message[".gogoproto.testgen_all"] !== "boolean") + return ".gogoproto.testgen_all: boolean expected"; + if (message[".gogoproto.benchgen_all"] != null && message.hasOwnProperty(".gogoproto.benchgen_all")) + if (typeof message[".gogoproto.benchgen_all"] !== "boolean") + return ".gogoproto.benchgen_all: boolean expected"; + if (message[".gogoproto.marshaler_all"] != null && message.hasOwnProperty(".gogoproto.marshaler_all")) + if (typeof message[".gogoproto.marshaler_all"] !== "boolean") + return ".gogoproto.marshaler_all: boolean expected"; + if (message[".gogoproto.unmarshaler_all"] != null && message.hasOwnProperty(".gogoproto.unmarshaler_all")) + if (typeof message[".gogoproto.unmarshaler_all"] !== "boolean") + return ".gogoproto.unmarshaler_all: boolean expected"; + if (message[".gogoproto.stable_marshaler_all"] != null && message.hasOwnProperty(".gogoproto.stable_marshaler_all")) + if (typeof message[".gogoproto.stable_marshaler_all"] !== "boolean") + return ".gogoproto.stable_marshaler_all: boolean expected"; + if (message[".gogoproto.sizer_all"] != null && message.hasOwnProperty(".gogoproto.sizer_all")) + if (typeof message[".gogoproto.sizer_all"] !== "boolean") + return ".gogoproto.sizer_all: boolean expected"; + if (message[".gogoproto.goproto_enum_stringer_all"] != null && message.hasOwnProperty(".gogoproto.goproto_enum_stringer_all")) + if (typeof message[".gogoproto.goproto_enum_stringer_all"] !== "boolean") + return ".gogoproto.goproto_enum_stringer_all: boolean expected"; + if (message[".gogoproto.enum_stringer_all"] != null && message.hasOwnProperty(".gogoproto.enum_stringer_all")) + if (typeof message[".gogoproto.enum_stringer_all"] !== "boolean") + return ".gogoproto.enum_stringer_all: boolean expected"; + if (message[".gogoproto.unsafe_marshaler_all"] != null && message.hasOwnProperty(".gogoproto.unsafe_marshaler_all")) + if (typeof message[".gogoproto.unsafe_marshaler_all"] !== "boolean") + return ".gogoproto.unsafe_marshaler_all: boolean expected"; + if (message[".gogoproto.unsafe_unmarshaler_all"] != null && message.hasOwnProperty(".gogoproto.unsafe_unmarshaler_all")) + if (typeof message[".gogoproto.unsafe_unmarshaler_all"] !== "boolean") + return ".gogoproto.unsafe_unmarshaler_all: boolean expected"; + if (message[".gogoproto.goproto_extensions_map_all"] != null && message.hasOwnProperty(".gogoproto.goproto_extensions_map_all")) + if (typeof message[".gogoproto.goproto_extensions_map_all"] !== "boolean") + return ".gogoproto.goproto_extensions_map_all: boolean expected"; + if (message[".gogoproto.goproto_unrecognized_all"] != null && message.hasOwnProperty(".gogoproto.goproto_unrecognized_all")) + if (typeof message[".gogoproto.goproto_unrecognized_all"] !== "boolean") + return ".gogoproto.goproto_unrecognized_all: boolean expected"; + if (message[".gogoproto.gogoproto_import"] != null && message.hasOwnProperty(".gogoproto.gogoproto_import")) + if (typeof message[".gogoproto.gogoproto_import"] !== "boolean") + return ".gogoproto.gogoproto_import: boolean expected"; + if (message[".gogoproto.protosizer_all"] != null && message.hasOwnProperty(".gogoproto.protosizer_all")) + if (typeof message[".gogoproto.protosizer_all"] !== "boolean") + return ".gogoproto.protosizer_all: boolean expected"; + if (message[".gogoproto.compare_all"] != null && message.hasOwnProperty(".gogoproto.compare_all")) + if (typeof message[".gogoproto.compare_all"] !== "boolean") + return ".gogoproto.compare_all: boolean expected"; + if (message[".gogoproto.typedecl_all"] != null && message.hasOwnProperty(".gogoproto.typedecl_all")) + if (typeof message[".gogoproto.typedecl_all"] !== "boolean") + return ".gogoproto.typedecl_all: boolean expected"; + if (message[".gogoproto.enumdecl_all"] != null && message.hasOwnProperty(".gogoproto.enumdecl_all")) + if (typeof message[".gogoproto.enumdecl_all"] !== "boolean") + return ".gogoproto.enumdecl_all: boolean expected"; + if (message[".gogoproto.goproto_registration"] != null && message.hasOwnProperty(".gogoproto.goproto_registration")) + if (typeof message[".gogoproto.goproto_registration"] !== "boolean") + return ".gogoproto.goproto_registration: boolean expected"; + if (message[".gogoproto.messagename_all"] != null && message.hasOwnProperty(".gogoproto.messagename_all")) + if (typeof message[".gogoproto.messagename_all"] !== "boolean") + return ".gogoproto.messagename_all: boolean expected"; + if (message[".gogoproto.goproto_sizecache_all"] != null && message.hasOwnProperty(".gogoproto.goproto_sizecache_all")) + if (typeof message[".gogoproto.goproto_sizecache_all"] !== "boolean") + return ".gogoproto.goproto_sizecache_all: boolean expected"; + if (message[".gogoproto.goproto_unkeyed_all"] != null && message.hasOwnProperty(".gogoproto.goproto_unkeyed_all")) + if (typeof message[".gogoproto.goproto_unkeyed_all"] !== "boolean") + return ".gogoproto.goproto_unkeyed_all: boolean expected"; + if (message[".cosmos_proto.declare_interface"] != null && message.hasOwnProperty(".cosmos_proto.declare_interface")) { + if (!Array.isArray(message[".cosmos_proto.declare_interface"])) + return ".cosmos_proto.declare_interface: array expected"; + for (let i = 0; i < message[".cosmos_proto.declare_interface"].length; ++i) { + let error = $root.cosmos_proto.InterfaceDescriptor.verify(message[".cosmos_proto.declare_interface"][i]); + if (error) + return ".cosmos_proto.declare_interface." + error; + } + } + if (message[".cosmos_proto.declare_scalar"] != null && message.hasOwnProperty(".cosmos_proto.declare_scalar")) { + if (!Array.isArray(message[".cosmos_proto.declare_scalar"])) + return ".cosmos_proto.declare_scalar: array expected"; + for (let i = 0; i < message[".cosmos_proto.declare_scalar"].length; ++i) { + let error = $root.cosmos_proto.ScalarDescriptor.verify(message[".cosmos_proto.declare_scalar"][i]); + if (error) + return ".cosmos_proto.declare_scalar." + error; + } + } return null; }; /** - * Creates an EnumValueOptions message from a plain object. Also converts values to their respective internal types. + * Creates a FileOptions message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.protobuf.EnumValueOptions + * @memberof google.protobuf.FileOptions * @static * @param {Object.} object Plain object - * @returns {google.protobuf.EnumValueOptions} EnumValueOptions + * @returns {google.protobuf.FileOptions} FileOptions */ - EnumValueOptions.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.EnumValueOptions) + FileOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.FileOptions) return object; - let message = new $root.google.protobuf.EnumValueOptions(); + let message = new $root.google.protobuf.FileOptions(); + if (object.java_package != null) + message.java_package = String(object.java_package); + if (object.java_outer_classname != null) + message.java_outer_classname = String(object.java_outer_classname); + if (object.java_multiple_files != null) + message.java_multiple_files = Boolean(object.java_multiple_files); + if (object.java_generate_equals_and_hash != null) + message.java_generate_equals_and_hash = Boolean(object.java_generate_equals_and_hash); + if (object.java_string_check_utf8 != null) + message.java_string_check_utf8 = Boolean(object.java_string_check_utf8); + switch (object.optimize_for) { + case "SPEED": + case 1: + message.optimize_for = 1; + break; + case "CODE_SIZE": + case 2: + message.optimize_for = 2; + break; + case "LITE_RUNTIME": + case 3: + message.optimize_for = 3; + break; + } + if (object.go_package != null) + message.go_package = String(object.go_package); + if (object.cc_generic_services != null) + message.cc_generic_services = Boolean(object.cc_generic_services); + if (object.java_generic_services != null) + message.java_generic_services = Boolean(object.java_generic_services); + if (object.py_generic_services != null) + message.py_generic_services = Boolean(object.py_generic_services); if (object.deprecated != null) message.deprecated = Boolean(object.deprecated); + if (object.cc_enable_arenas != null) + message.cc_enable_arenas = Boolean(object.cc_enable_arenas); + if (object.objc_class_prefix != null) + message.objc_class_prefix = String(object.objc_class_prefix); + if (object.csharp_namespace != null) + message.csharp_namespace = String(object.csharp_namespace); if (object.uninterpreted_option) { if (!Array.isArray(object.uninterpreted_option)) - throw TypeError(".google.protobuf.EnumValueOptions.uninterpreted_option: array expected"); + throw TypeError(".google.protobuf.FileOptions.uninterpreted_option: array expected"); message.uninterpreted_option = []; for (let i = 0; i < object.uninterpreted_option.length; ++i) { if (typeof object.uninterpreted_option[i] !== "object") - throw TypeError(".google.protobuf.EnumValueOptions.uninterpreted_option: object expected"); + throw TypeError(".google.protobuf.FileOptions.uninterpreted_option: object expected"); message.uninterpreted_option[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpreted_option[i]); } } - if (object[".gogoproto.enumvalue_customname"] != null) - message[".gogoproto.enumvalue_customname"] = String(object[".gogoproto.enumvalue_customname"]); + if (object[".gogoproto.goproto_getters_all"] != null) + message[".gogoproto.goproto_getters_all"] = Boolean(object[".gogoproto.goproto_getters_all"]); + if (object[".gogoproto.goproto_enum_prefix_all"] != null) + message[".gogoproto.goproto_enum_prefix_all"] = Boolean(object[".gogoproto.goproto_enum_prefix_all"]); + if (object[".gogoproto.goproto_stringer_all"] != null) + message[".gogoproto.goproto_stringer_all"] = Boolean(object[".gogoproto.goproto_stringer_all"]); + if (object[".gogoproto.verbose_equal_all"] != null) + message[".gogoproto.verbose_equal_all"] = Boolean(object[".gogoproto.verbose_equal_all"]); + if (object[".gogoproto.face_all"] != null) + message[".gogoproto.face_all"] = Boolean(object[".gogoproto.face_all"]); + if (object[".gogoproto.gostring_all"] != null) + message[".gogoproto.gostring_all"] = Boolean(object[".gogoproto.gostring_all"]); + if (object[".gogoproto.populate_all"] != null) + message[".gogoproto.populate_all"] = Boolean(object[".gogoproto.populate_all"]); + if (object[".gogoproto.stringer_all"] != null) + message[".gogoproto.stringer_all"] = Boolean(object[".gogoproto.stringer_all"]); + if (object[".gogoproto.onlyone_all"] != null) + message[".gogoproto.onlyone_all"] = Boolean(object[".gogoproto.onlyone_all"]); + if (object[".gogoproto.equal_all"] != null) + message[".gogoproto.equal_all"] = Boolean(object[".gogoproto.equal_all"]); + if (object[".gogoproto.description_all"] != null) + message[".gogoproto.description_all"] = Boolean(object[".gogoproto.description_all"]); + if (object[".gogoproto.testgen_all"] != null) + message[".gogoproto.testgen_all"] = Boolean(object[".gogoproto.testgen_all"]); + if (object[".gogoproto.benchgen_all"] != null) + message[".gogoproto.benchgen_all"] = Boolean(object[".gogoproto.benchgen_all"]); + if (object[".gogoproto.marshaler_all"] != null) + message[".gogoproto.marshaler_all"] = Boolean(object[".gogoproto.marshaler_all"]); + if (object[".gogoproto.unmarshaler_all"] != null) + message[".gogoproto.unmarshaler_all"] = Boolean(object[".gogoproto.unmarshaler_all"]); + if (object[".gogoproto.stable_marshaler_all"] != null) + message[".gogoproto.stable_marshaler_all"] = Boolean(object[".gogoproto.stable_marshaler_all"]); + if (object[".gogoproto.sizer_all"] != null) + message[".gogoproto.sizer_all"] = Boolean(object[".gogoproto.sizer_all"]); + if (object[".gogoproto.goproto_enum_stringer_all"] != null) + message[".gogoproto.goproto_enum_stringer_all"] = Boolean(object[".gogoproto.goproto_enum_stringer_all"]); + if (object[".gogoproto.enum_stringer_all"] != null) + message[".gogoproto.enum_stringer_all"] = Boolean(object[".gogoproto.enum_stringer_all"]); + if (object[".gogoproto.unsafe_marshaler_all"] != null) + message[".gogoproto.unsafe_marshaler_all"] = Boolean(object[".gogoproto.unsafe_marshaler_all"]); + if (object[".gogoproto.unsafe_unmarshaler_all"] != null) + message[".gogoproto.unsafe_unmarshaler_all"] = Boolean(object[".gogoproto.unsafe_unmarshaler_all"]); + if (object[".gogoproto.goproto_extensions_map_all"] != null) + message[".gogoproto.goproto_extensions_map_all"] = Boolean(object[".gogoproto.goproto_extensions_map_all"]); + if (object[".gogoproto.goproto_unrecognized_all"] != null) + message[".gogoproto.goproto_unrecognized_all"] = Boolean(object[".gogoproto.goproto_unrecognized_all"]); + if (object[".gogoproto.gogoproto_import"] != null) + message[".gogoproto.gogoproto_import"] = Boolean(object[".gogoproto.gogoproto_import"]); + if (object[".gogoproto.protosizer_all"] != null) + message[".gogoproto.protosizer_all"] = Boolean(object[".gogoproto.protosizer_all"]); + if (object[".gogoproto.compare_all"] != null) + message[".gogoproto.compare_all"] = Boolean(object[".gogoproto.compare_all"]); + if (object[".gogoproto.typedecl_all"] != null) + message[".gogoproto.typedecl_all"] = Boolean(object[".gogoproto.typedecl_all"]); + if (object[".gogoproto.enumdecl_all"] != null) + message[".gogoproto.enumdecl_all"] = Boolean(object[".gogoproto.enumdecl_all"]); + if (object[".gogoproto.goproto_registration"] != null) + message[".gogoproto.goproto_registration"] = Boolean(object[".gogoproto.goproto_registration"]); + if (object[".gogoproto.messagename_all"] != null) + message[".gogoproto.messagename_all"] = Boolean(object[".gogoproto.messagename_all"]); + if (object[".gogoproto.goproto_sizecache_all"] != null) + message[".gogoproto.goproto_sizecache_all"] = Boolean(object[".gogoproto.goproto_sizecache_all"]); + if (object[".gogoproto.goproto_unkeyed_all"] != null) + message[".gogoproto.goproto_unkeyed_all"] = Boolean(object[".gogoproto.goproto_unkeyed_all"]); + if (object[".cosmos_proto.declare_interface"]) { + if (!Array.isArray(object[".cosmos_proto.declare_interface"])) + throw TypeError(".google.protobuf.FileOptions..cosmos_proto.declare_interface: array expected"); + message[".cosmos_proto.declare_interface"] = []; + for (let i = 0; i < object[".cosmos_proto.declare_interface"].length; ++i) { + if (typeof object[".cosmos_proto.declare_interface"][i] !== "object") + throw TypeError(".google.protobuf.FileOptions..cosmos_proto.declare_interface: object expected"); + message[".cosmos_proto.declare_interface"][i] = $root.cosmos_proto.InterfaceDescriptor.fromObject(object[".cosmos_proto.declare_interface"][i]); + } + } + if (object[".cosmos_proto.declare_scalar"]) { + if (!Array.isArray(object[".cosmos_proto.declare_scalar"])) + throw TypeError(".google.protobuf.FileOptions..cosmos_proto.declare_scalar: array expected"); + message[".cosmos_proto.declare_scalar"] = []; + for (let i = 0; i < object[".cosmos_proto.declare_scalar"].length; ++i) { + if (typeof object[".cosmos_proto.declare_scalar"][i] !== "object") + throw TypeError(".google.protobuf.FileOptions..cosmos_proto.declare_scalar: object expected"); + message[".cosmos_proto.declare_scalar"][i] = $root.cosmos_proto.ScalarDescriptor.fromObject(object[".cosmos_proto.declare_scalar"][i]); + } + } return message; }; /** - * Creates a plain object from an EnumValueOptions message. Also converts values to other types if specified. + * Creates a plain object from a FileOptions message. Also converts values to other types if specified. * @function toObject - * @memberof google.protobuf.EnumValueOptions + * @memberof google.protobuf.FileOptions * @static - * @param {google.protobuf.EnumValueOptions} message EnumValueOptions + * @param {google.protobuf.FileOptions} message FileOptions * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - EnumValueOptions.toObject = function toObject(message, options) { + FileOptions.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) + if (options.arrays || options.defaults) { object.uninterpreted_option = []; + object[".cosmos_proto.declare_interface"] = []; + object[".cosmos_proto.declare_scalar"] = []; + } if (options.defaults) { + object.java_package = ""; + object.java_outer_classname = ""; + object.optimize_for = options.enums === String ? "SPEED" : 1; + object.java_multiple_files = false; + object.go_package = ""; + object.cc_generic_services = false; + object.java_generic_services = false; + object.py_generic_services = false; + object.java_generate_equals_and_hash = false; object.deprecated = false; - object[".gogoproto.enumvalue_customname"] = ""; + object.java_string_check_utf8 = false; + object.cc_enable_arenas = false; + object.objc_class_prefix = ""; + object.csharp_namespace = ""; + object[".gogoproto.goproto_getters_all"] = false; + object[".gogoproto.goproto_enum_prefix_all"] = false; + object[".gogoproto.goproto_stringer_all"] = false; + object[".gogoproto.verbose_equal_all"] = false; + object[".gogoproto.face_all"] = false; + object[".gogoproto.gostring_all"] = false; + object[".gogoproto.populate_all"] = false; + object[".gogoproto.stringer_all"] = false; + object[".gogoproto.onlyone_all"] = false; + object[".gogoproto.equal_all"] = false; + object[".gogoproto.description_all"] = false; + object[".gogoproto.testgen_all"] = false; + object[".gogoproto.benchgen_all"] = false; + object[".gogoproto.marshaler_all"] = false; + object[".gogoproto.unmarshaler_all"] = false; + object[".gogoproto.stable_marshaler_all"] = false; + object[".gogoproto.sizer_all"] = false; + object[".gogoproto.goproto_enum_stringer_all"] = false; + object[".gogoproto.enum_stringer_all"] = false; + object[".gogoproto.unsafe_marshaler_all"] = false; + object[".gogoproto.unsafe_unmarshaler_all"] = false; + object[".gogoproto.goproto_extensions_map_all"] = false; + object[".gogoproto.goproto_unrecognized_all"] = false; + object[".gogoproto.gogoproto_import"] = false; + object[".gogoproto.protosizer_all"] = false; + object[".gogoproto.compare_all"] = false; + object[".gogoproto.typedecl_all"] = false; + object[".gogoproto.enumdecl_all"] = false; + object[".gogoproto.goproto_registration"] = false; + object[".gogoproto.messagename_all"] = false; + object[".gogoproto.goproto_sizecache_all"] = false; + object[".gogoproto.goproto_unkeyed_all"] = false; } + if (message.java_package != null && message.hasOwnProperty("java_package")) + object.java_package = message.java_package; + if (message.java_outer_classname != null && message.hasOwnProperty("java_outer_classname")) + object.java_outer_classname = message.java_outer_classname; + if (message.optimize_for != null && message.hasOwnProperty("optimize_for")) + object.optimize_for = options.enums === String ? $root.google.protobuf.FileOptions.OptimizeMode[message.optimize_for] : message.optimize_for; + if (message.java_multiple_files != null && message.hasOwnProperty("java_multiple_files")) + object.java_multiple_files = message.java_multiple_files; + if (message.go_package != null && message.hasOwnProperty("go_package")) + object.go_package = message.go_package; + if (message.cc_generic_services != null && message.hasOwnProperty("cc_generic_services")) + object.cc_generic_services = message.cc_generic_services; + if (message.java_generic_services != null && message.hasOwnProperty("java_generic_services")) + object.java_generic_services = message.java_generic_services; + if (message.py_generic_services != null && message.hasOwnProperty("py_generic_services")) + object.py_generic_services = message.py_generic_services; + if (message.java_generate_equals_and_hash != null && message.hasOwnProperty("java_generate_equals_and_hash")) + object.java_generate_equals_and_hash = message.java_generate_equals_and_hash; if (message.deprecated != null && message.hasOwnProperty("deprecated")) object.deprecated = message.deprecated; + if (message.java_string_check_utf8 != null && message.hasOwnProperty("java_string_check_utf8")) + object.java_string_check_utf8 = message.java_string_check_utf8; + if (message.cc_enable_arenas != null && message.hasOwnProperty("cc_enable_arenas")) + object.cc_enable_arenas = message.cc_enable_arenas; + if (message.objc_class_prefix != null && message.hasOwnProperty("objc_class_prefix")) + object.objc_class_prefix = message.objc_class_prefix; + if (message.csharp_namespace != null && message.hasOwnProperty("csharp_namespace")) + object.csharp_namespace = message.csharp_namespace; if (message.uninterpreted_option && message.uninterpreted_option.length) { object.uninterpreted_option = []; for (let j = 0; j < message.uninterpreted_option.length; ++j) object.uninterpreted_option[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpreted_option[j], options); } - if (message[".gogoproto.enumvalue_customname"] != null && message.hasOwnProperty(".gogoproto.enumvalue_customname")) - object[".gogoproto.enumvalue_customname"] = message[".gogoproto.enumvalue_customname"]; + if (message[".gogoproto.goproto_getters_all"] != null && message.hasOwnProperty(".gogoproto.goproto_getters_all")) + object[".gogoproto.goproto_getters_all"] = message[".gogoproto.goproto_getters_all"]; + if (message[".gogoproto.goproto_enum_prefix_all"] != null && message.hasOwnProperty(".gogoproto.goproto_enum_prefix_all")) + object[".gogoproto.goproto_enum_prefix_all"] = message[".gogoproto.goproto_enum_prefix_all"]; + if (message[".gogoproto.goproto_stringer_all"] != null && message.hasOwnProperty(".gogoproto.goproto_stringer_all")) + object[".gogoproto.goproto_stringer_all"] = message[".gogoproto.goproto_stringer_all"]; + if (message[".gogoproto.verbose_equal_all"] != null && message.hasOwnProperty(".gogoproto.verbose_equal_all")) + object[".gogoproto.verbose_equal_all"] = message[".gogoproto.verbose_equal_all"]; + if (message[".gogoproto.face_all"] != null && message.hasOwnProperty(".gogoproto.face_all")) + object[".gogoproto.face_all"] = message[".gogoproto.face_all"]; + if (message[".gogoproto.gostring_all"] != null && message.hasOwnProperty(".gogoproto.gostring_all")) + object[".gogoproto.gostring_all"] = message[".gogoproto.gostring_all"]; + if (message[".gogoproto.populate_all"] != null && message.hasOwnProperty(".gogoproto.populate_all")) + object[".gogoproto.populate_all"] = message[".gogoproto.populate_all"]; + if (message[".gogoproto.stringer_all"] != null && message.hasOwnProperty(".gogoproto.stringer_all")) + object[".gogoproto.stringer_all"] = message[".gogoproto.stringer_all"]; + if (message[".gogoproto.onlyone_all"] != null && message.hasOwnProperty(".gogoproto.onlyone_all")) + object[".gogoproto.onlyone_all"] = message[".gogoproto.onlyone_all"]; + if (message[".gogoproto.equal_all"] != null && message.hasOwnProperty(".gogoproto.equal_all")) + object[".gogoproto.equal_all"] = message[".gogoproto.equal_all"]; + if (message[".gogoproto.description_all"] != null && message.hasOwnProperty(".gogoproto.description_all")) + object[".gogoproto.description_all"] = message[".gogoproto.description_all"]; + if (message[".gogoproto.testgen_all"] != null && message.hasOwnProperty(".gogoproto.testgen_all")) + object[".gogoproto.testgen_all"] = message[".gogoproto.testgen_all"]; + if (message[".gogoproto.benchgen_all"] != null && message.hasOwnProperty(".gogoproto.benchgen_all")) + object[".gogoproto.benchgen_all"] = message[".gogoproto.benchgen_all"]; + if (message[".gogoproto.marshaler_all"] != null && message.hasOwnProperty(".gogoproto.marshaler_all")) + object[".gogoproto.marshaler_all"] = message[".gogoproto.marshaler_all"]; + if (message[".gogoproto.unmarshaler_all"] != null && message.hasOwnProperty(".gogoproto.unmarshaler_all")) + object[".gogoproto.unmarshaler_all"] = message[".gogoproto.unmarshaler_all"]; + if (message[".gogoproto.stable_marshaler_all"] != null && message.hasOwnProperty(".gogoproto.stable_marshaler_all")) + object[".gogoproto.stable_marshaler_all"] = message[".gogoproto.stable_marshaler_all"]; + if (message[".gogoproto.sizer_all"] != null && message.hasOwnProperty(".gogoproto.sizer_all")) + object[".gogoproto.sizer_all"] = message[".gogoproto.sizer_all"]; + if (message[".gogoproto.goproto_enum_stringer_all"] != null && message.hasOwnProperty(".gogoproto.goproto_enum_stringer_all")) + object[".gogoproto.goproto_enum_stringer_all"] = message[".gogoproto.goproto_enum_stringer_all"]; + if (message[".gogoproto.enum_stringer_all"] != null && message.hasOwnProperty(".gogoproto.enum_stringer_all")) + object[".gogoproto.enum_stringer_all"] = message[".gogoproto.enum_stringer_all"]; + if (message[".gogoproto.unsafe_marshaler_all"] != null && message.hasOwnProperty(".gogoproto.unsafe_marshaler_all")) + object[".gogoproto.unsafe_marshaler_all"] = message[".gogoproto.unsafe_marshaler_all"]; + if (message[".gogoproto.unsafe_unmarshaler_all"] != null && message.hasOwnProperty(".gogoproto.unsafe_unmarshaler_all")) + object[".gogoproto.unsafe_unmarshaler_all"] = message[".gogoproto.unsafe_unmarshaler_all"]; + if (message[".gogoproto.goproto_extensions_map_all"] != null && message.hasOwnProperty(".gogoproto.goproto_extensions_map_all")) + object[".gogoproto.goproto_extensions_map_all"] = message[".gogoproto.goproto_extensions_map_all"]; + if (message[".gogoproto.goproto_unrecognized_all"] != null && message.hasOwnProperty(".gogoproto.goproto_unrecognized_all")) + object[".gogoproto.goproto_unrecognized_all"] = message[".gogoproto.goproto_unrecognized_all"]; + if (message[".gogoproto.gogoproto_import"] != null && message.hasOwnProperty(".gogoproto.gogoproto_import")) + object[".gogoproto.gogoproto_import"] = message[".gogoproto.gogoproto_import"]; + if (message[".gogoproto.protosizer_all"] != null && message.hasOwnProperty(".gogoproto.protosizer_all")) + object[".gogoproto.protosizer_all"] = message[".gogoproto.protosizer_all"]; + if (message[".gogoproto.compare_all"] != null && message.hasOwnProperty(".gogoproto.compare_all")) + object[".gogoproto.compare_all"] = message[".gogoproto.compare_all"]; + if (message[".gogoproto.typedecl_all"] != null && message.hasOwnProperty(".gogoproto.typedecl_all")) + object[".gogoproto.typedecl_all"] = message[".gogoproto.typedecl_all"]; + if (message[".gogoproto.enumdecl_all"] != null && message.hasOwnProperty(".gogoproto.enumdecl_all")) + object[".gogoproto.enumdecl_all"] = message[".gogoproto.enumdecl_all"]; + if (message[".gogoproto.goproto_registration"] != null && message.hasOwnProperty(".gogoproto.goproto_registration")) + object[".gogoproto.goproto_registration"] = message[".gogoproto.goproto_registration"]; + if (message[".gogoproto.messagename_all"] != null && message.hasOwnProperty(".gogoproto.messagename_all")) + object[".gogoproto.messagename_all"] = message[".gogoproto.messagename_all"]; + if (message[".gogoproto.goproto_sizecache_all"] != null && message.hasOwnProperty(".gogoproto.goproto_sizecache_all")) + object[".gogoproto.goproto_sizecache_all"] = message[".gogoproto.goproto_sizecache_all"]; + if (message[".gogoproto.goproto_unkeyed_all"] != null && message.hasOwnProperty(".gogoproto.goproto_unkeyed_all")) + object[".gogoproto.goproto_unkeyed_all"] = message[".gogoproto.goproto_unkeyed_all"]; + if (message[".cosmos_proto.declare_interface"] && message[".cosmos_proto.declare_interface"].length) { + object[".cosmos_proto.declare_interface"] = []; + for (let j = 0; j < message[".cosmos_proto.declare_interface"].length; ++j) + object[".cosmos_proto.declare_interface"][j] = $root.cosmos_proto.InterfaceDescriptor.toObject(message[".cosmos_proto.declare_interface"][j], options); + } + if (message[".cosmos_proto.declare_scalar"] && message[".cosmos_proto.declare_scalar"].length) { + object[".cosmos_proto.declare_scalar"] = []; + for (let j = 0; j < message[".cosmos_proto.declare_scalar"].length; ++j) + object[".cosmos_proto.declare_scalar"][j] = $root.cosmos_proto.ScalarDescriptor.toObject(message[".cosmos_proto.declare_scalar"][j], options); + } return object; }; /** - * Converts this EnumValueOptions to JSON. + * Converts this FileOptions to JSON. * @function toJSON - * @memberof google.protobuf.EnumValueOptions + * @memberof google.protobuf.FileOptions * @instance * @returns {Object.} JSON object */ - EnumValueOptions.prototype.toJSON = function toJSON() { + FileOptions.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return EnumValueOptions; + /** + * OptimizeMode enum. + * @name google.protobuf.FileOptions.OptimizeMode + * @enum {number} + * @property {number} SPEED=1 SPEED value + * @property {number} CODE_SIZE=2 CODE_SIZE value + * @property {number} LITE_RUNTIME=3 LITE_RUNTIME value + */ + FileOptions.OptimizeMode = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[1] = "SPEED"] = 1; + values[valuesById[2] = "CODE_SIZE"] = 2; + values[valuesById[3] = "LITE_RUNTIME"] = 3; + return values; + })(); + + return FileOptions; })(); - protobuf.ServiceOptions = (function() { + protobuf.MessageOptions = (function() { /** - * Properties of a ServiceOptions. + * Properties of a MessageOptions. * @memberof google.protobuf - * @interface IServiceOptions - * @property {boolean|null} [deprecated] ServiceOptions deprecated - * @property {Array.|null} [uninterpreted_option] ServiceOptions uninterpreted_option + * @interface IMessageOptions + * @property {boolean|null} [message_set_wire_format] MessageOptions message_set_wire_format + * @property {boolean|null} [no_standard_descriptor_accessor] MessageOptions no_standard_descriptor_accessor + * @property {boolean|null} [deprecated] MessageOptions deprecated + * @property {boolean|null} [map_entry] MessageOptions map_entry + * @property {Array.|null} [uninterpreted_option] MessageOptions uninterpreted_option + * @property {boolean|null} [".gogoproto.goproto_getters"] MessageOptions .gogoproto.goproto_getters + * @property {boolean|null} [".gogoproto.goproto_stringer"] MessageOptions .gogoproto.goproto_stringer + * @property {boolean|null} [".gogoproto.verbose_equal"] MessageOptions .gogoproto.verbose_equal + * @property {boolean|null} [".gogoproto.face"] MessageOptions .gogoproto.face + * @property {boolean|null} [".gogoproto.gostring"] MessageOptions .gogoproto.gostring + * @property {boolean|null} [".gogoproto.populate"] MessageOptions .gogoproto.populate + * @property {boolean|null} [".gogoproto.stringer"] MessageOptions .gogoproto.stringer + * @property {boolean|null} [".gogoproto.onlyone"] MessageOptions .gogoproto.onlyone + * @property {boolean|null} [".gogoproto.equal"] MessageOptions .gogoproto.equal + * @property {boolean|null} [".gogoproto.description"] MessageOptions .gogoproto.description + * @property {boolean|null} [".gogoproto.testgen"] MessageOptions .gogoproto.testgen + * @property {boolean|null} [".gogoproto.benchgen"] MessageOptions .gogoproto.benchgen + * @property {boolean|null} [".gogoproto.marshaler"] MessageOptions .gogoproto.marshaler + * @property {boolean|null} [".gogoproto.unmarshaler"] MessageOptions .gogoproto.unmarshaler + * @property {boolean|null} [".gogoproto.stable_marshaler"] MessageOptions .gogoproto.stable_marshaler + * @property {boolean|null} [".gogoproto.sizer"] MessageOptions .gogoproto.sizer + * @property {boolean|null} [".gogoproto.unsafe_marshaler"] MessageOptions .gogoproto.unsafe_marshaler + * @property {boolean|null} [".gogoproto.unsafe_unmarshaler"] MessageOptions .gogoproto.unsafe_unmarshaler + * @property {boolean|null} [".gogoproto.goproto_extensions_map"] MessageOptions .gogoproto.goproto_extensions_map + * @property {boolean|null} [".gogoproto.goproto_unrecognized"] MessageOptions .gogoproto.goproto_unrecognized + * @property {boolean|null} [".gogoproto.protosizer"] MessageOptions .gogoproto.protosizer + * @property {boolean|null} [".gogoproto.compare"] MessageOptions .gogoproto.compare + * @property {boolean|null} [".gogoproto.typedecl"] MessageOptions .gogoproto.typedecl + * @property {boolean|null} [".gogoproto.messagename"] MessageOptions .gogoproto.messagename + * @property {boolean|null} [".gogoproto.goproto_sizecache"] MessageOptions .gogoproto.goproto_sizecache + * @property {boolean|null} [".gogoproto.goproto_unkeyed"] MessageOptions .gogoproto.goproto_unkeyed + * @property {Array.|null} [".cosmos_proto.implements_interface"] MessageOptions .cosmos_proto.implements_interface + * @property {string|null} [".amino.name"] MessageOptions .amino.name + * @property {string|null} [".amino.message_encoding"] MessageOptions .amino.message_encoding */ /** - * Constructs a new ServiceOptions. + * Constructs a new MessageOptions. * @memberof google.protobuf - * @classdesc Represents a ServiceOptions. - * @implements IServiceOptions + * @classdesc Represents a MessageOptions. + * @implements IMessageOptions * @constructor - * @param {google.protobuf.IServiceOptions=} [properties] Properties to set + * @param {google.protobuf.IMessageOptions=} [properties] Properties to set */ - function ServiceOptions(properties) { + function MessageOptions(properties) { this.uninterpreted_option = []; + this[".cosmos_proto.implements_interface"] = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -14665,615 +20724,498 @@ export const google = $root.google = (() => { } /** - * ServiceOptions deprecated. - * @member {boolean} deprecated - * @memberof google.protobuf.ServiceOptions + * MessageOptions message_set_wire_format. + * @member {boolean} message_set_wire_format + * @memberof google.protobuf.MessageOptions * @instance */ - ServiceOptions.prototype.deprecated = false; + MessageOptions.prototype.message_set_wire_format = false; /** - * ServiceOptions uninterpreted_option. - * @member {Array.} uninterpreted_option - * @memberof google.protobuf.ServiceOptions + * MessageOptions no_standard_descriptor_accessor. + * @member {boolean} no_standard_descriptor_accessor + * @memberof google.protobuf.MessageOptions * @instance */ - ServiceOptions.prototype.uninterpreted_option = $util.emptyArray; + MessageOptions.prototype.no_standard_descriptor_accessor = false; /** - * Encodes the specified ServiceOptions message. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages. - * @function encode - * @memberof google.protobuf.ServiceOptions - * @static - * @param {google.protobuf.IServiceOptions} message ServiceOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * MessageOptions deprecated. + * @member {boolean} deprecated + * @memberof google.protobuf.MessageOptions + * @instance */ - ServiceOptions.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) - writer.uint32(/* id 33, wireType 0 =*/264).bool(message.deprecated); - if (message.uninterpreted_option != null && message.uninterpreted_option.length) - for (let i = 0; i < message.uninterpreted_option.length; ++i) - $root.google.protobuf.UninterpretedOption.encode(message.uninterpreted_option[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); - return writer; - }; + MessageOptions.prototype.deprecated = false; /** - * Encodes the specified ServiceOptions message, length delimited. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.ServiceOptions - * @static - * @param {google.protobuf.IServiceOptions} message ServiceOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * MessageOptions map_entry. + * @member {boolean} map_entry + * @memberof google.protobuf.MessageOptions + * @instance */ - ServiceOptions.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + MessageOptions.prototype.map_entry = false; /** - * Decodes a ServiceOptions message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.ServiceOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.ServiceOptions} ServiceOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * MessageOptions uninterpreted_option. + * @member {Array.} uninterpreted_option + * @memberof google.protobuf.MessageOptions + * @instance */ - ServiceOptions.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.ServiceOptions(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 33: - message.deprecated = reader.bool(); - break; - case 999: - if (!(message.uninterpreted_option && message.uninterpreted_option.length)) - message.uninterpreted_option = []; - message.uninterpreted_option.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + MessageOptions.prototype.uninterpreted_option = $util.emptyArray; /** - * Decodes a ServiceOptions message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.ServiceOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.ServiceOptions} ServiceOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * MessageOptions .gogoproto.goproto_getters. + * @member {boolean} .gogoproto.goproto_getters + * @memberof google.protobuf.MessageOptions + * @instance */ - ServiceOptions.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + MessageOptions.prototype[".gogoproto.goproto_getters"] = false; /** - * Verifies a ServiceOptions message. - * @function verify - * @memberof google.protobuf.ServiceOptions - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * MessageOptions .gogoproto.goproto_stringer. + * @member {boolean} .gogoproto.goproto_stringer + * @memberof google.protobuf.MessageOptions + * @instance */ - ServiceOptions.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.deprecated != null && message.hasOwnProperty("deprecated")) - if (typeof message.deprecated !== "boolean") - return "deprecated: boolean expected"; - if (message.uninterpreted_option != null && message.hasOwnProperty("uninterpreted_option")) { - if (!Array.isArray(message.uninterpreted_option)) - return "uninterpreted_option: array expected"; - for (let i = 0; i < message.uninterpreted_option.length; ++i) { - let error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpreted_option[i]); - if (error) - return "uninterpreted_option." + error; - } - } - return null; - }; + MessageOptions.prototype[".gogoproto.goproto_stringer"] = false; /** - * Creates a ServiceOptions message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.ServiceOptions - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.ServiceOptions} ServiceOptions + * MessageOptions .gogoproto.verbose_equal. + * @member {boolean} .gogoproto.verbose_equal + * @memberof google.protobuf.MessageOptions + * @instance */ - ServiceOptions.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.ServiceOptions) - return object; - let message = new $root.google.protobuf.ServiceOptions(); - if (object.deprecated != null) - message.deprecated = Boolean(object.deprecated); - if (object.uninterpreted_option) { - if (!Array.isArray(object.uninterpreted_option)) - throw TypeError(".google.protobuf.ServiceOptions.uninterpreted_option: array expected"); - message.uninterpreted_option = []; - for (let i = 0; i < object.uninterpreted_option.length; ++i) { - if (typeof object.uninterpreted_option[i] !== "object") - throw TypeError(".google.protobuf.ServiceOptions.uninterpreted_option: object expected"); - message.uninterpreted_option[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpreted_option[i]); - } - } - return message; - }; + MessageOptions.prototype[".gogoproto.verbose_equal"] = false; /** - * Creates a plain object from a ServiceOptions message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.ServiceOptions - * @static - * @param {google.protobuf.ServiceOptions} message ServiceOptions - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * MessageOptions .gogoproto.face. + * @member {boolean} .gogoproto.face + * @memberof google.protobuf.MessageOptions + * @instance */ - ServiceOptions.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.arrays || options.defaults) - object.uninterpreted_option = []; - if (options.defaults) - object.deprecated = false; - if (message.deprecated != null && message.hasOwnProperty("deprecated")) - object.deprecated = message.deprecated; - if (message.uninterpreted_option && message.uninterpreted_option.length) { - object.uninterpreted_option = []; - for (let j = 0; j < message.uninterpreted_option.length; ++j) - object.uninterpreted_option[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpreted_option[j], options); - } - return object; - }; + MessageOptions.prototype[".gogoproto.face"] = false; /** - * Converts this ServiceOptions to JSON. - * @function toJSON - * @memberof google.protobuf.ServiceOptions + * MessageOptions .gogoproto.gostring. + * @member {boolean} .gogoproto.gostring + * @memberof google.protobuf.MessageOptions * @instance - * @returns {Object.} JSON object */ - ServiceOptions.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ServiceOptions; - })(); - - protobuf.MethodOptions = (function() { + MessageOptions.prototype[".gogoproto.gostring"] = false; /** - * Properties of a MethodOptions. - * @memberof google.protobuf - * @interface IMethodOptions - * @property {boolean|null} [deprecated] MethodOptions deprecated - * @property {Array.|null} [uninterpreted_option] MethodOptions uninterpreted_option - * @property {google.api.IHttpRule|null} [".google.api.http"] MethodOptions .google.api.http + * MessageOptions .gogoproto.populate. + * @member {boolean} .gogoproto.populate + * @memberof google.protobuf.MessageOptions + * @instance */ + MessageOptions.prototype[".gogoproto.populate"] = false; /** - * Constructs a new MethodOptions. - * @memberof google.protobuf - * @classdesc Represents a MethodOptions. - * @implements IMethodOptions - * @constructor - * @param {google.protobuf.IMethodOptions=} [properties] Properties to set + * MessageOptions .gogoproto.stringer. + * @member {boolean} .gogoproto.stringer + * @memberof google.protobuf.MessageOptions + * @instance */ - function MethodOptions(properties) { - this.uninterpreted_option = []; - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + MessageOptions.prototype[".gogoproto.stringer"] = false; /** - * MethodOptions deprecated. - * @member {boolean} deprecated - * @memberof google.protobuf.MethodOptions + * MessageOptions .gogoproto.onlyone. + * @member {boolean} .gogoproto.onlyone + * @memberof google.protobuf.MessageOptions * @instance */ - MethodOptions.prototype.deprecated = false; + MessageOptions.prototype[".gogoproto.onlyone"] = false; /** - * MethodOptions uninterpreted_option. - * @member {Array.} uninterpreted_option - * @memberof google.protobuf.MethodOptions + * MessageOptions .gogoproto.equal. + * @member {boolean} .gogoproto.equal + * @memberof google.protobuf.MessageOptions * @instance */ - MethodOptions.prototype.uninterpreted_option = $util.emptyArray; + MessageOptions.prototype[".gogoproto.equal"] = false; /** - * MethodOptions .google.api.http. - * @member {google.api.IHttpRule|null|undefined} .google.api.http - * @memberof google.protobuf.MethodOptions + * MessageOptions .gogoproto.description. + * @member {boolean} .gogoproto.description + * @memberof google.protobuf.MessageOptions * @instance */ - MethodOptions.prototype[".google.api.http"] = null; + MessageOptions.prototype[".gogoproto.description"] = false; /** - * Encodes the specified MethodOptions message. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages. - * @function encode - * @memberof google.protobuf.MethodOptions - * @static - * @param {google.protobuf.IMethodOptions} message MethodOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * MessageOptions .gogoproto.testgen. + * @member {boolean} .gogoproto.testgen + * @memberof google.protobuf.MessageOptions + * @instance */ - MethodOptions.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) - writer.uint32(/* id 33, wireType 0 =*/264).bool(message.deprecated); - if (message.uninterpreted_option != null && message.uninterpreted_option.length) - for (let i = 0; i < message.uninterpreted_option.length; ++i) - $root.google.protobuf.UninterpretedOption.encode(message.uninterpreted_option[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); - if (message[".google.api.http"] != null && Object.hasOwnProperty.call(message, ".google.api.http")) - $root.google.api.HttpRule.encode(message[".google.api.http"], writer.uint32(/* id 72295728, wireType 2 =*/578365826).fork()).ldelim(); - return writer; - }; + MessageOptions.prototype[".gogoproto.testgen"] = false; /** - * Encodes the specified MethodOptions message, length delimited. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.MethodOptions - * @static - * @param {google.protobuf.IMethodOptions} message MethodOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * MessageOptions .gogoproto.benchgen. + * @member {boolean} .gogoproto.benchgen + * @memberof google.protobuf.MessageOptions + * @instance */ - MethodOptions.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + MessageOptions.prototype[".gogoproto.benchgen"] = false; /** - * Decodes a MethodOptions message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.MethodOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.MethodOptions} MethodOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * MessageOptions .gogoproto.marshaler. + * @member {boolean} .gogoproto.marshaler + * @memberof google.protobuf.MessageOptions + * @instance */ - MethodOptions.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.MethodOptions(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 33: - message.deprecated = reader.bool(); - break; - case 999: - if (!(message.uninterpreted_option && message.uninterpreted_option.length)) - message.uninterpreted_option = []; - message.uninterpreted_option.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); - break; - case 72295728: - message[".google.api.http"] = $root.google.api.HttpRule.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + MessageOptions.prototype[".gogoproto.marshaler"] = false; /** - * Decodes a MethodOptions message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.MethodOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.MethodOptions} MethodOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * MessageOptions .gogoproto.unmarshaler. + * @member {boolean} .gogoproto.unmarshaler + * @memberof google.protobuf.MessageOptions + * @instance */ - MethodOptions.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + MessageOptions.prototype[".gogoproto.unmarshaler"] = false; + + /** + * MessageOptions .gogoproto.stable_marshaler. + * @member {boolean} .gogoproto.stable_marshaler + * @memberof google.protobuf.MessageOptions + * @instance + */ + MessageOptions.prototype[".gogoproto.stable_marshaler"] = false; /** - * Verifies a MethodOptions message. - * @function verify - * @memberof google.protobuf.MethodOptions - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * MessageOptions .gogoproto.sizer. + * @member {boolean} .gogoproto.sizer + * @memberof google.protobuf.MessageOptions + * @instance */ - MethodOptions.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.deprecated != null && message.hasOwnProperty("deprecated")) - if (typeof message.deprecated !== "boolean") - return "deprecated: boolean expected"; - if (message.uninterpreted_option != null && message.hasOwnProperty("uninterpreted_option")) { - if (!Array.isArray(message.uninterpreted_option)) - return "uninterpreted_option: array expected"; - for (let i = 0; i < message.uninterpreted_option.length; ++i) { - let error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpreted_option[i]); - if (error) - return "uninterpreted_option." + error; - } - } - if (message[".google.api.http"] != null && message.hasOwnProperty(".google.api.http")) { - let error = $root.google.api.HttpRule.verify(message[".google.api.http"]); - if (error) - return ".google.api.http." + error; - } - return null; - }; + MessageOptions.prototype[".gogoproto.sizer"] = false; /** - * Creates a MethodOptions message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.MethodOptions - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.MethodOptions} MethodOptions + * MessageOptions .gogoproto.unsafe_marshaler. + * @member {boolean} .gogoproto.unsafe_marshaler + * @memberof google.protobuf.MessageOptions + * @instance */ - MethodOptions.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.MethodOptions) - return object; - let message = new $root.google.protobuf.MethodOptions(); - if (object.deprecated != null) - message.deprecated = Boolean(object.deprecated); - if (object.uninterpreted_option) { - if (!Array.isArray(object.uninterpreted_option)) - throw TypeError(".google.protobuf.MethodOptions.uninterpreted_option: array expected"); - message.uninterpreted_option = []; - for (let i = 0; i < object.uninterpreted_option.length; ++i) { - if (typeof object.uninterpreted_option[i] !== "object") - throw TypeError(".google.protobuf.MethodOptions.uninterpreted_option: object expected"); - message.uninterpreted_option[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpreted_option[i]); - } - } - if (object[".google.api.http"] != null) { - if (typeof object[".google.api.http"] !== "object") - throw TypeError(".google.protobuf.MethodOptions..google.api.http: object expected"); - message[".google.api.http"] = $root.google.api.HttpRule.fromObject(object[".google.api.http"]); - } - return message; - }; + MessageOptions.prototype[".gogoproto.unsafe_marshaler"] = false; /** - * Creates a plain object from a MethodOptions message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.MethodOptions - * @static - * @param {google.protobuf.MethodOptions} message MethodOptions - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * MessageOptions .gogoproto.unsafe_unmarshaler. + * @member {boolean} .gogoproto.unsafe_unmarshaler + * @memberof google.protobuf.MessageOptions + * @instance */ - MethodOptions.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.arrays || options.defaults) - object.uninterpreted_option = []; - if (options.defaults) { - object.deprecated = false; - object[".google.api.http"] = null; - } - if (message.deprecated != null && message.hasOwnProperty("deprecated")) - object.deprecated = message.deprecated; - if (message.uninterpreted_option && message.uninterpreted_option.length) { - object.uninterpreted_option = []; - for (let j = 0; j < message.uninterpreted_option.length; ++j) - object.uninterpreted_option[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpreted_option[j], options); - } - if (message[".google.api.http"] != null && message.hasOwnProperty(".google.api.http")) - object[".google.api.http"] = $root.google.api.HttpRule.toObject(message[".google.api.http"], options); - return object; - }; + MessageOptions.prototype[".gogoproto.unsafe_unmarshaler"] = false; /** - * Converts this MethodOptions to JSON. - * @function toJSON - * @memberof google.protobuf.MethodOptions + * MessageOptions .gogoproto.goproto_extensions_map. + * @member {boolean} .gogoproto.goproto_extensions_map + * @memberof google.protobuf.MessageOptions * @instance - * @returns {Object.} JSON object */ - MethodOptions.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return MethodOptions; - })(); + MessageOptions.prototype[".gogoproto.goproto_extensions_map"] = false; - protobuf.UninterpretedOption = (function() { + /** + * MessageOptions .gogoproto.goproto_unrecognized. + * @member {boolean} .gogoproto.goproto_unrecognized + * @memberof google.protobuf.MessageOptions + * @instance + */ + MessageOptions.prototype[".gogoproto.goproto_unrecognized"] = false; /** - * Properties of an UninterpretedOption. - * @memberof google.protobuf - * @interface IUninterpretedOption - * @property {Array.|null} [name] UninterpretedOption name - * @property {string|null} [identifier_value] UninterpretedOption identifier_value - * @property {Long|null} [positive_int_value] UninterpretedOption positive_int_value - * @property {Long|null} [negative_int_value] UninterpretedOption negative_int_value - * @property {number|null} [double_value] UninterpretedOption double_value - * @property {Uint8Array|null} [string_value] UninterpretedOption string_value - * @property {string|null} [aggregate_value] UninterpretedOption aggregate_value + * MessageOptions .gogoproto.protosizer. + * @member {boolean} .gogoproto.protosizer + * @memberof google.protobuf.MessageOptions + * @instance */ + MessageOptions.prototype[".gogoproto.protosizer"] = false; /** - * Constructs a new UninterpretedOption. - * @memberof google.protobuf - * @classdesc Represents an UninterpretedOption. - * @implements IUninterpretedOption - * @constructor - * @param {google.protobuf.IUninterpretedOption=} [properties] Properties to set + * MessageOptions .gogoproto.compare. + * @member {boolean} .gogoproto.compare + * @memberof google.protobuf.MessageOptions + * @instance */ - function UninterpretedOption(properties) { - this.name = []; - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + MessageOptions.prototype[".gogoproto.compare"] = false; /** - * UninterpretedOption name. - * @member {Array.} name - * @memberof google.protobuf.UninterpretedOption + * MessageOptions .gogoproto.typedecl. + * @member {boolean} .gogoproto.typedecl + * @memberof google.protobuf.MessageOptions * @instance */ - UninterpretedOption.prototype.name = $util.emptyArray; + MessageOptions.prototype[".gogoproto.typedecl"] = false; /** - * UninterpretedOption identifier_value. - * @member {string} identifier_value - * @memberof google.protobuf.UninterpretedOption + * MessageOptions .gogoproto.messagename. + * @member {boolean} .gogoproto.messagename + * @memberof google.protobuf.MessageOptions * @instance */ - UninterpretedOption.prototype.identifier_value = ""; + MessageOptions.prototype[".gogoproto.messagename"] = false; /** - * UninterpretedOption positive_int_value. - * @member {Long} positive_int_value - * @memberof google.protobuf.UninterpretedOption + * MessageOptions .gogoproto.goproto_sizecache. + * @member {boolean} .gogoproto.goproto_sizecache + * @memberof google.protobuf.MessageOptions * @instance */ - UninterpretedOption.prototype.positive_int_value = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + MessageOptions.prototype[".gogoproto.goproto_sizecache"] = false; /** - * UninterpretedOption negative_int_value. - * @member {Long} negative_int_value - * @memberof google.protobuf.UninterpretedOption + * MessageOptions .gogoproto.goproto_unkeyed. + * @member {boolean} .gogoproto.goproto_unkeyed + * @memberof google.protobuf.MessageOptions * @instance */ - UninterpretedOption.prototype.negative_int_value = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + MessageOptions.prototype[".gogoproto.goproto_unkeyed"] = false; /** - * UninterpretedOption double_value. - * @member {number} double_value - * @memberof google.protobuf.UninterpretedOption + * MessageOptions .cosmos_proto.implements_interface. + * @member {Array.} .cosmos_proto.implements_interface + * @memberof google.protobuf.MessageOptions * @instance */ - UninterpretedOption.prototype.double_value = 0; + MessageOptions.prototype[".cosmos_proto.implements_interface"] = $util.emptyArray; /** - * UninterpretedOption string_value. - * @member {Uint8Array} string_value - * @memberof google.protobuf.UninterpretedOption + * MessageOptions .amino.name. + * @member {string} .amino.name + * @memberof google.protobuf.MessageOptions * @instance */ - UninterpretedOption.prototype.string_value = $util.newBuffer([]); + MessageOptions.prototype[".amino.name"] = ""; /** - * UninterpretedOption aggregate_value. - * @member {string} aggregate_value - * @memberof google.protobuf.UninterpretedOption + * MessageOptions .amino.message_encoding. + * @member {string} .amino.message_encoding + * @memberof google.protobuf.MessageOptions * @instance */ - UninterpretedOption.prototype.aggregate_value = ""; + MessageOptions.prototype[".amino.message_encoding"] = ""; /** - * Encodes the specified UninterpretedOption message. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages. + * Encodes the specified MessageOptions message. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages. * @function encode - * @memberof google.protobuf.UninterpretedOption + * @memberof google.protobuf.MessageOptions * @static - * @param {google.protobuf.IUninterpretedOption} message UninterpretedOption message or plain object to encode + * @param {google.protobuf.IMessageOptions} message MessageOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UninterpretedOption.encode = function encode(message, writer) { + MessageOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && message.name.length) - for (let i = 0; i < message.name.length; ++i) - $root.google.protobuf.UninterpretedOption.NamePart.encode(message.name[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.identifier_value != null && Object.hasOwnProperty.call(message, "identifier_value")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.identifier_value); - if (message.positive_int_value != null && Object.hasOwnProperty.call(message, "positive_int_value")) - writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.positive_int_value); - if (message.negative_int_value != null && Object.hasOwnProperty.call(message, "negative_int_value")) - writer.uint32(/* id 5, wireType 0 =*/40).int64(message.negative_int_value); - if (message.double_value != null && Object.hasOwnProperty.call(message, "double_value")) - writer.uint32(/* id 6, wireType 1 =*/49).double(message.double_value); - if (message.string_value != null && Object.hasOwnProperty.call(message, "string_value")) - writer.uint32(/* id 7, wireType 2 =*/58).bytes(message.string_value); - if (message.aggregate_value != null && Object.hasOwnProperty.call(message, "aggregate_value")) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.aggregate_value); + if (message.message_set_wire_format != null && Object.hasOwnProperty.call(message, "message_set_wire_format")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.message_set_wire_format); + if (message.no_standard_descriptor_accessor != null && Object.hasOwnProperty.call(message, "no_standard_descriptor_accessor")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.no_standard_descriptor_accessor); + if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.deprecated); + if (message.map_entry != null && Object.hasOwnProperty.call(message, "map_entry")) + writer.uint32(/* id 7, wireType 0 =*/56).bool(message.map_entry); + if (message.uninterpreted_option != null && message.uninterpreted_option.length) + for (let i = 0; i < message.uninterpreted_option.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpreted_option[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + if (message[".gogoproto.goproto_getters"] != null && Object.hasOwnProperty.call(message, ".gogoproto.goproto_getters")) + writer.uint32(/* id 64001, wireType 0 =*/512008).bool(message[".gogoproto.goproto_getters"]); + if (message[".gogoproto.goproto_stringer"] != null && Object.hasOwnProperty.call(message, ".gogoproto.goproto_stringer")) + writer.uint32(/* id 64003, wireType 0 =*/512024).bool(message[".gogoproto.goproto_stringer"]); + if (message[".gogoproto.verbose_equal"] != null && Object.hasOwnProperty.call(message, ".gogoproto.verbose_equal")) + writer.uint32(/* id 64004, wireType 0 =*/512032).bool(message[".gogoproto.verbose_equal"]); + if (message[".gogoproto.face"] != null && Object.hasOwnProperty.call(message, ".gogoproto.face")) + writer.uint32(/* id 64005, wireType 0 =*/512040).bool(message[".gogoproto.face"]); + if (message[".gogoproto.gostring"] != null && Object.hasOwnProperty.call(message, ".gogoproto.gostring")) + writer.uint32(/* id 64006, wireType 0 =*/512048).bool(message[".gogoproto.gostring"]); + if (message[".gogoproto.populate"] != null && Object.hasOwnProperty.call(message, ".gogoproto.populate")) + writer.uint32(/* id 64007, wireType 0 =*/512056).bool(message[".gogoproto.populate"]); + if (message[".gogoproto.onlyone"] != null && Object.hasOwnProperty.call(message, ".gogoproto.onlyone")) + writer.uint32(/* id 64009, wireType 0 =*/512072).bool(message[".gogoproto.onlyone"]); + if (message[".gogoproto.equal"] != null && Object.hasOwnProperty.call(message, ".gogoproto.equal")) + writer.uint32(/* id 64013, wireType 0 =*/512104).bool(message[".gogoproto.equal"]); + if (message[".gogoproto.description"] != null && Object.hasOwnProperty.call(message, ".gogoproto.description")) + writer.uint32(/* id 64014, wireType 0 =*/512112).bool(message[".gogoproto.description"]); + if (message[".gogoproto.testgen"] != null && Object.hasOwnProperty.call(message, ".gogoproto.testgen")) + writer.uint32(/* id 64015, wireType 0 =*/512120).bool(message[".gogoproto.testgen"]); + if (message[".gogoproto.benchgen"] != null && Object.hasOwnProperty.call(message, ".gogoproto.benchgen")) + writer.uint32(/* id 64016, wireType 0 =*/512128).bool(message[".gogoproto.benchgen"]); + if (message[".gogoproto.marshaler"] != null && Object.hasOwnProperty.call(message, ".gogoproto.marshaler")) + writer.uint32(/* id 64017, wireType 0 =*/512136).bool(message[".gogoproto.marshaler"]); + if (message[".gogoproto.unmarshaler"] != null && Object.hasOwnProperty.call(message, ".gogoproto.unmarshaler")) + writer.uint32(/* id 64018, wireType 0 =*/512144).bool(message[".gogoproto.unmarshaler"]); + if (message[".gogoproto.stable_marshaler"] != null && Object.hasOwnProperty.call(message, ".gogoproto.stable_marshaler")) + writer.uint32(/* id 64019, wireType 0 =*/512152).bool(message[".gogoproto.stable_marshaler"]); + if (message[".gogoproto.sizer"] != null && Object.hasOwnProperty.call(message, ".gogoproto.sizer")) + writer.uint32(/* id 64020, wireType 0 =*/512160).bool(message[".gogoproto.sizer"]); + if (message[".gogoproto.unsafe_marshaler"] != null && Object.hasOwnProperty.call(message, ".gogoproto.unsafe_marshaler")) + writer.uint32(/* id 64023, wireType 0 =*/512184).bool(message[".gogoproto.unsafe_marshaler"]); + if (message[".gogoproto.unsafe_unmarshaler"] != null && Object.hasOwnProperty.call(message, ".gogoproto.unsafe_unmarshaler")) + writer.uint32(/* id 64024, wireType 0 =*/512192).bool(message[".gogoproto.unsafe_unmarshaler"]); + if (message[".gogoproto.goproto_extensions_map"] != null && Object.hasOwnProperty.call(message, ".gogoproto.goproto_extensions_map")) + writer.uint32(/* id 64025, wireType 0 =*/512200).bool(message[".gogoproto.goproto_extensions_map"]); + if (message[".gogoproto.goproto_unrecognized"] != null && Object.hasOwnProperty.call(message, ".gogoproto.goproto_unrecognized")) + writer.uint32(/* id 64026, wireType 0 =*/512208).bool(message[".gogoproto.goproto_unrecognized"]); + if (message[".gogoproto.protosizer"] != null && Object.hasOwnProperty.call(message, ".gogoproto.protosizer")) + writer.uint32(/* id 64028, wireType 0 =*/512224).bool(message[".gogoproto.protosizer"]); + if (message[".gogoproto.compare"] != null && Object.hasOwnProperty.call(message, ".gogoproto.compare")) + writer.uint32(/* id 64029, wireType 0 =*/512232).bool(message[".gogoproto.compare"]); + if (message[".gogoproto.typedecl"] != null && Object.hasOwnProperty.call(message, ".gogoproto.typedecl")) + writer.uint32(/* id 64030, wireType 0 =*/512240).bool(message[".gogoproto.typedecl"]); + if (message[".gogoproto.messagename"] != null && Object.hasOwnProperty.call(message, ".gogoproto.messagename")) + writer.uint32(/* id 64033, wireType 0 =*/512264).bool(message[".gogoproto.messagename"]); + if (message[".gogoproto.goproto_sizecache"] != null && Object.hasOwnProperty.call(message, ".gogoproto.goproto_sizecache")) + writer.uint32(/* id 64034, wireType 0 =*/512272).bool(message[".gogoproto.goproto_sizecache"]); + if (message[".gogoproto.goproto_unkeyed"] != null && Object.hasOwnProperty.call(message, ".gogoproto.goproto_unkeyed")) + writer.uint32(/* id 64035, wireType 0 =*/512280).bool(message[".gogoproto.goproto_unkeyed"]); + if (message[".gogoproto.stringer"] != null && Object.hasOwnProperty.call(message, ".gogoproto.stringer")) + writer.uint32(/* id 67008, wireType 0 =*/536064).bool(message[".gogoproto.stringer"]); + if (message[".cosmos_proto.implements_interface"] != null && message[".cosmos_proto.implements_interface"].length) + for (let i = 0; i < message[".cosmos_proto.implements_interface"].length; ++i) + writer.uint32(/* id 93001, wireType 2 =*/744010).string(message[".cosmos_proto.implements_interface"][i]); + if (message[".amino.name"] != null && Object.hasOwnProperty.call(message, ".amino.name")) + writer.uint32(/* id 11110001, wireType 2 =*/88880010).string(message[".amino.name"]); + if (message[".amino.message_encoding"] != null && Object.hasOwnProperty.call(message, ".amino.message_encoding")) + writer.uint32(/* id 11110002, wireType 2 =*/88880018).string(message[".amino.message_encoding"]); return writer; }; /** - * Encodes the specified UninterpretedOption message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages. + * Encodes the specified MessageOptions message, length delimited. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages. * @function encodeDelimited - * @memberof google.protobuf.UninterpretedOption + * @memberof google.protobuf.MessageOptions * @static - * @param {google.protobuf.IUninterpretedOption} message UninterpretedOption message or plain object to encode + * @param {google.protobuf.IMessageOptions} message MessageOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UninterpretedOption.encodeDelimited = function encodeDelimited(message, writer) { + MessageOptions.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UninterpretedOption message from the specified reader or buffer. + * Decodes a MessageOptions message from the specified reader or buffer. * @function decode - * @memberof google.protobuf.UninterpretedOption + * @memberof google.protobuf.MessageOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.UninterpretedOption} UninterpretedOption + * @returns {google.protobuf.MessageOptions} MessageOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UninterpretedOption.decode = function decode(reader, length) { + MessageOptions.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.UninterpretedOption(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.MessageOptions(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { + case 1: + message.message_set_wire_format = reader.bool(); + break; case 2: - if (!(message.name && message.name.length)) - message.name = []; - message.name.push($root.google.protobuf.UninterpretedOption.NamePart.decode(reader, reader.uint32())); + message.no_standard_descriptor_accessor = reader.bool(); break; case 3: - message.identifier_value = reader.string(); + message.deprecated = reader.bool(); break; - case 4: - message.positive_int_value = reader.uint64(); + case 7: + message.map_entry = reader.bool(); break; - case 5: - message.negative_int_value = reader.int64(); + case 999: + if (!(message.uninterpreted_option && message.uninterpreted_option.length)) + message.uninterpreted_option = []; + message.uninterpreted_option.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); break; - case 6: - message.double_value = reader.double(); + case 64001: + message[".gogoproto.goproto_getters"] = reader.bool(); break; - case 7: - message.string_value = reader.bytes(); + case 64003: + message[".gogoproto.goproto_stringer"] = reader.bool(); break; - case 8: - message.aggregate_value = reader.string(); + case 64004: + message[".gogoproto.verbose_equal"] = reader.bool(); + break; + case 64005: + message[".gogoproto.face"] = reader.bool(); + break; + case 64006: + message[".gogoproto.gostring"] = reader.bool(); + break; + case 64007: + message[".gogoproto.populate"] = reader.bool(); + break; + case 67008: + message[".gogoproto.stringer"] = reader.bool(); + break; + case 64009: + message[".gogoproto.onlyone"] = reader.bool(); + break; + case 64013: + message[".gogoproto.equal"] = reader.bool(); + break; + case 64014: + message[".gogoproto.description"] = reader.bool(); + break; + case 64015: + message[".gogoproto.testgen"] = reader.bool(); + break; + case 64016: + message[".gogoproto.benchgen"] = reader.bool(); + break; + case 64017: + message[".gogoproto.marshaler"] = reader.bool(); + break; + case 64018: + message[".gogoproto.unmarshaler"] = reader.bool(); + break; + case 64019: + message[".gogoproto.stable_marshaler"] = reader.bool(); + break; + case 64020: + message[".gogoproto.sizer"] = reader.bool(); + break; + case 64023: + message[".gogoproto.unsafe_marshaler"] = reader.bool(); + break; + case 64024: + message[".gogoproto.unsafe_unmarshaler"] = reader.bool(); + break; + case 64025: + message[".gogoproto.goproto_extensions_map"] = reader.bool(); + break; + case 64026: + message[".gogoproto.goproto_unrecognized"] = reader.bool(); + break; + case 64028: + message[".gogoproto.protosizer"] = reader.bool(); + break; + case 64029: + message[".gogoproto.compare"] = reader.bool(); + break; + case 64030: + message[".gogoproto.typedecl"] = reader.bool(); + break; + case 64033: + message[".gogoproto.messagename"] = reader.bool(); + break; + case 64034: + message[".gogoproto.goproto_sizecache"] = reader.bool(); + break; + case 64035: + message[".gogoproto.goproto_unkeyed"] = reader.bool(); + break; + case 93001: + if (!(message[".cosmos_proto.implements_interface"] && message[".cosmos_proto.implements_interface"].length)) + message[".cosmos_proto.implements_interface"] = []; + message[".cosmos_proto.implements_interface"].push(reader.string()); + break; + case 11110001: + message[".amino.name"] = reader.string(); + break; + case 11110002: + message[".amino.message_encoding"] = reader.string(); break; default: reader.skipType(tag & 7); @@ -15284,410 +21226,428 @@ export const google = $root.google = (() => { }; /** - * Decodes an UninterpretedOption message from the specified reader or buffer, length delimited. + * Decodes a MessageOptions message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.protobuf.UninterpretedOption + * @memberof google.protobuf.MessageOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.UninterpretedOption} UninterpretedOption + * @returns {google.protobuf.MessageOptions} MessageOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UninterpretedOption.decodeDelimited = function decodeDelimited(reader) { + MessageOptions.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UninterpretedOption message. + * Verifies a MessageOptions message. * @function verify - * @memberof google.protobuf.UninterpretedOption + * @memberof google.protobuf.MessageOptions * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UninterpretedOption.verify = function verify(message) { + MessageOptions.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) { - if (!Array.isArray(message.name)) - return "name: array expected"; - for (let i = 0; i < message.name.length; ++i) { - let error = $root.google.protobuf.UninterpretedOption.NamePart.verify(message.name[i]); + if (message.message_set_wire_format != null && message.hasOwnProperty("message_set_wire_format")) + if (typeof message.message_set_wire_format !== "boolean") + return "message_set_wire_format: boolean expected"; + if (message.no_standard_descriptor_accessor != null && message.hasOwnProperty("no_standard_descriptor_accessor")) + if (typeof message.no_standard_descriptor_accessor !== "boolean") + return "no_standard_descriptor_accessor: boolean expected"; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (typeof message.deprecated !== "boolean") + return "deprecated: boolean expected"; + if (message.map_entry != null && message.hasOwnProperty("map_entry")) + if (typeof message.map_entry !== "boolean") + return "map_entry: boolean expected"; + if (message.uninterpreted_option != null && message.hasOwnProperty("uninterpreted_option")) { + if (!Array.isArray(message.uninterpreted_option)) + return "uninterpreted_option: array expected"; + for (let i = 0; i < message.uninterpreted_option.length; ++i) { + let error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpreted_option[i]); if (error) - return "name." + error; + return "uninterpreted_option." + error; } } - if (message.identifier_value != null && message.hasOwnProperty("identifier_value")) - if (!$util.isString(message.identifier_value)) - return "identifier_value: string expected"; - if (message.positive_int_value != null && message.hasOwnProperty("positive_int_value")) - if (!$util.isInteger(message.positive_int_value) && !(message.positive_int_value && $util.isInteger(message.positive_int_value.low) && $util.isInteger(message.positive_int_value.high))) - return "positive_int_value: integer|Long expected"; - if (message.negative_int_value != null && message.hasOwnProperty("negative_int_value")) - if (!$util.isInteger(message.negative_int_value) && !(message.negative_int_value && $util.isInteger(message.negative_int_value.low) && $util.isInteger(message.negative_int_value.high))) - return "negative_int_value: integer|Long expected"; - if (message.double_value != null && message.hasOwnProperty("double_value")) - if (typeof message.double_value !== "number") - return "double_value: number expected"; - if (message.string_value != null && message.hasOwnProperty("string_value")) - if (!(message.string_value && typeof message.string_value.length === "number" || $util.isString(message.string_value))) - return "string_value: buffer expected"; - if (message.aggregate_value != null && message.hasOwnProperty("aggregate_value")) - if (!$util.isString(message.aggregate_value)) - return "aggregate_value: string expected"; + if (message[".gogoproto.goproto_getters"] != null && message.hasOwnProperty(".gogoproto.goproto_getters")) + if (typeof message[".gogoproto.goproto_getters"] !== "boolean") + return ".gogoproto.goproto_getters: boolean expected"; + if (message[".gogoproto.goproto_stringer"] != null && message.hasOwnProperty(".gogoproto.goproto_stringer")) + if (typeof message[".gogoproto.goproto_stringer"] !== "boolean") + return ".gogoproto.goproto_stringer: boolean expected"; + if (message[".gogoproto.verbose_equal"] != null && message.hasOwnProperty(".gogoproto.verbose_equal")) + if (typeof message[".gogoproto.verbose_equal"] !== "boolean") + return ".gogoproto.verbose_equal: boolean expected"; + if (message[".gogoproto.face"] != null && message.hasOwnProperty(".gogoproto.face")) + if (typeof message[".gogoproto.face"] !== "boolean") + return ".gogoproto.face: boolean expected"; + if (message[".gogoproto.gostring"] != null && message.hasOwnProperty(".gogoproto.gostring")) + if (typeof message[".gogoproto.gostring"] !== "boolean") + return ".gogoproto.gostring: boolean expected"; + if (message[".gogoproto.populate"] != null && message.hasOwnProperty(".gogoproto.populate")) + if (typeof message[".gogoproto.populate"] !== "boolean") + return ".gogoproto.populate: boolean expected"; + if (message[".gogoproto.stringer"] != null && message.hasOwnProperty(".gogoproto.stringer")) + if (typeof message[".gogoproto.stringer"] !== "boolean") + return ".gogoproto.stringer: boolean expected"; + if (message[".gogoproto.onlyone"] != null && message.hasOwnProperty(".gogoproto.onlyone")) + if (typeof message[".gogoproto.onlyone"] !== "boolean") + return ".gogoproto.onlyone: boolean expected"; + if (message[".gogoproto.equal"] != null && message.hasOwnProperty(".gogoproto.equal")) + if (typeof message[".gogoproto.equal"] !== "boolean") + return ".gogoproto.equal: boolean expected"; + if (message[".gogoproto.description"] != null && message.hasOwnProperty(".gogoproto.description")) + if (typeof message[".gogoproto.description"] !== "boolean") + return ".gogoproto.description: boolean expected"; + if (message[".gogoproto.testgen"] != null && message.hasOwnProperty(".gogoproto.testgen")) + if (typeof message[".gogoproto.testgen"] !== "boolean") + return ".gogoproto.testgen: boolean expected"; + if (message[".gogoproto.benchgen"] != null && message.hasOwnProperty(".gogoproto.benchgen")) + if (typeof message[".gogoproto.benchgen"] !== "boolean") + return ".gogoproto.benchgen: boolean expected"; + if (message[".gogoproto.marshaler"] != null && message.hasOwnProperty(".gogoproto.marshaler")) + if (typeof message[".gogoproto.marshaler"] !== "boolean") + return ".gogoproto.marshaler: boolean expected"; + if (message[".gogoproto.unmarshaler"] != null && message.hasOwnProperty(".gogoproto.unmarshaler")) + if (typeof message[".gogoproto.unmarshaler"] !== "boolean") + return ".gogoproto.unmarshaler: boolean expected"; + if (message[".gogoproto.stable_marshaler"] != null && message.hasOwnProperty(".gogoproto.stable_marshaler")) + if (typeof message[".gogoproto.stable_marshaler"] !== "boolean") + return ".gogoproto.stable_marshaler: boolean expected"; + if (message[".gogoproto.sizer"] != null && message.hasOwnProperty(".gogoproto.sizer")) + if (typeof message[".gogoproto.sizer"] !== "boolean") + return ".gogoproto.sizer: boolean expected"; + if (message[".gogoproto.unsafe_marshaler"] != null && message.hasOwnProperty(".gogoproto.unsafe_marshaler")) + if (typeof message[".gogoproto.unsafe_marshaler"] !== "boolean") + return ".gogoproto.unsafe_marshaler: boolean expected"; + if (message[".gogoproto.unsafe_unmarshaler"] != null && message.hasOwnProperty(".gogoproto.unsafe_unmarshaler")) + if (typeof message[".gogoproto.unsafe_unmarshaler"] !== "boolean") + return ".gogoproto.unsafe_unmarshaler: boolean expected"; + if (message[".gogoproto.goproto_extensions_map"] != null && message.hasOwnProperty(".gogoproto.goproto_extensions_map")) + if (typeof message[".gogoproto.goproto_extensions_map"] !== "boolean") + return ".gogoproto.goproto_extensions_map: boolean expected"; + if (message[".gogoproto.goproto_unrecognized"] != null && message.hasOwnProperty(".gogoproto.goproto_unrecognized")) + if (typeof message[".gogoproto.goproto_unrecognized"] !== "boolean") + return ".gogoproto.goproto_unrecognized: boolean expected"; + if (message[".gogoproto.protosizer"] != null && message.hasOwnProperty(".gogoproto.protosizer")) + if (typeof message[".gogoproto.protosizer"] !== "boolean") + return ".gogoproto.protosizer: boolean expected"; + if (message[".gogoproto.compare"] != null && message.hasOwnProperty(".gogoproto.compare")) + if (typeof message[".gogoproto.compare"] !== "boolean") + return ".gogoproto.compare: boolean expected"; + if (message[".gogoproto.typedecl"] != null && message.hasOwnProperty(".gogoproto.typedecl")) + if (typeof message[".gogoproto.typedecl"] !== "boolean") + return ".gogoproto.typedecl: boolean expected"; + if (message[".gogoproto.messagename"] != null && message.hasOwnProperty(".gogoproto.messagename")) + if (typeof message[".gogoproto.messagename"] !== "boolean") + return ".gogoproto.messagename: boolean expected"; + if (message[".gogoproto.goproto_sizecache"] != null && message.hasOwnProperty(".gogoproto.goproto_sizecache")) + if (typeof message[".gogoproto.goproto_sizecache"] !== "boolean") + return ".gogoproto.goproto_sizecache: boolean expected"; + if (message[".gogoproto.goproto_unkeyed"] != null && message.hasOwnProperty(".gogoproto.goproto_unkeyed")) + if (typeof message[".gogoproto.goproto_unkeyed"] !== "boolean") + return ".gogoproto.goproto_unkeyed: boolean expected"; + if (message[".cosmos_proto.implements_interface"] != null && message.hasOwnProperty(".cosmos_proto.implements_interface")) { + if (!Array.isArray(message[".cosmos_proto.implements_interface"])) + return ".cosmos_proto.implements_interface: array expected"; + for (let i = 0; i < message[".cosmos_proto.implements_interface"].length; ++i) + if (!$util.isString(message[".cosmos_proto.implements_interface"][i])) + return ".cosmos_proto.implements_interface: string[] expected"; + } + if (message[".amino.name"] != null && message.hasOwnProperty(".amino.name")) + if (!$util.isString(message[".amino.name"])) + return ".amino.name: string expected"; + if (message[".amino.message_encoding"] != null && message.hasOwnProperty(".amino.message_encoding")) + if (!$util.isString(message[".amino.message_encoding"])) + return ".amino.message_encoding: string expected"; return null; }; /** - * Creates an UninterpretedOption message from a plain object. Also converts values to their respective internal types. + * Creates a MessageOptions message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.protobuf.UninterpretedOption + * @memberof google.protobuf.MessageOptions * @static * @param {Object.} object Plain object - * @returns {google.protobuf.UninterpretedOption} UninterpretedOption + * @returns {google.protobuf.MessageOptions} MessageOptions */ - UninterpretedOption.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.UninterpretedOption) + MessageOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.MessageOptions) return object; - let message = new $root.google.protobuf.UninterpretedOption(); - if (object.name) { - if (!Array.isArray(object.name)) - throw TypeError(".google.protobuf.UninterpretedOption.name: array expected"); - message.name = []; - for (let i = 0; i < object.name.length; ++i) { - if (typeof object.name[i] !== "object") - throw TypeError(".google.protobuf.UninterpretedOption.name: object expected"); - message.name[i] = $root.google.protobuf.UninterpretedOption.NamePart.fromObject(object.name[i]); + let message = new $root.google.protobuf.MessageOptions(); + if (object.message_set_wire_format != null) + message.message_set_wire_format = Boolean(object.message_set_wire_format); + if (object.no_standard_descriptor_accessor != null) + message.no_standard_descriptor_accessor = Boolean(object.no_standard_descriptor_accessor); + if (object.deprecated != null) + message.deprecated = Boolean(object.deprecated); + if (object.map_entry != null) + message.map_entry = Boolean(object.map_entry); + if (object.uninterpreted_option) { + if (!Array.isArray(object.uninterpreted_option)) + throw TypeError(".google.protobuf.MessageOptions.uninterpreted_option: array expected"); + message.uninterpreted_option = []; + for (let i = 0; i < object.uninterpreted_option.length; ++i) { + if (typeof object.uninterpreted_option[i] !== "object") + throw TypeError(".google.protobuf.MessageOptions.uninterpreted_option: object expected"); + message.uninterpreted_option[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpreted_option[i]); } } - if (object.identifier_value != null) - message.identifier_value = String(object.identifier_value); - if (object.positive_int_value != null) - if ($util.Long) - (message.positive_int_value = $util.Long.fromValue(object.positive_int_value)).unsigned = true; - else if (typeof object.positive_int_value === "string") - message.positive_int_value = parseInt(object.positive_int_value, 10); - else if (typeof object.positive_int_value === "number") - message.positive_int_value = object.positive_int_value; - else if (typeof object.positive_int_value === "object") - message.positive_int_value = new $util.LongBits(object.positive_int_value.low >>> 0, object.positive_int_value.high >>> 0).toNumber(true); - if (object.negative_int_value != null) - if ($util.Long) - (message.negative_int_value = $util.Long.fromValue(object.negative_int_value)).unsigned = false; - else if (typeof object.negative_int_value === "string") - message.negative_int_value = parseInt(object.negative_int_value, 10); - else if (typeof object.negative_int_value === "number") - message.negative_int_value = object.negative_int_value; - else if (typeof object.negative_int_value === "object") - message.negative_int_value = new $util.LongBits(object.negative_int_value.low >>> 0, object.negative_int_value.high >>> 0).toNumber(); - if (object.double_value != null) - message.double_value = Number(object.double_value); - if (object.string_value != null) - if (typeof object.string_value === "string") - $util.base64.decode(object.string_value, message.string_value = $util.newBuffer($util.base64.length(object.string_value)), 0); - else if (object.string_value.length) - message.string_value = object.string_value; - if (object.aggregate_value != null) - message.aggregate_value = String(object.aggregate_value); + if (object[".gogoproto.goproto_getters"] != null) + message[".gogoproto.goproto_getters"] = Boolean(object[".gogoproto.goproto_getters"]); + if (object[".gogoproto.goproto_stringer"] != null) + message[".gogoproto.goproto_stringer"] = Boolean(object[".gogoproto.goproto_stringer"]); + if (object[".gogoproto.verbose_equal"] != null) + message[".gogoproto.verbose_equal"] = Boolean(object[".gogoproto.verbose_equal"]); + if (object[".gogoproto.face"] != null) + message[".gogoproto.face"] = Boolean(object[".gogoproto.face"]); + if (object[".gogoproto.gostring"] != null) + message[".gogoproto.gostring"] = Boolean(object[".gogoproto.gostring"]); + if (object[".gogoproto.populate"] != null) + message[".gogoproto.populate"] = Boolean(object[".gogoproto.populate"]); + if (object[".gogoproto.stringer"] != null) + message[".gogoproto.stringer"] = Boolean(object[".gogoproto.stringer"]); + if (object[".gogoproto.onlyone"] != null) + message[".gogoproto.onlyone"] = Boolean(object[".gogoproto.onlyone"]); + if (object[".gogoproto.equal"] != null) + message[".gogoproto.equal"] = Boolean(object[".gogoproto.equal"]); + if (object[".gogoproto.description"] != null) + message[".gogoproto.description"] = Boolean(object[".gogoproto.description"]); + if (object[".gogoproto.testgen"] != null) + message[".gogoproto.testgen"] = Boolean(object[".gogoproto.testgen"]); + if (object[".gogoproto.benchgen"] != null) + message[".gogoproto.benchgen"] = Boolean(object[".gogoproto.benchgen"]); + if (object[".gogoproto.marshaler"] != null) + message[".gogoproto.marshaler"] = Boolean(object[".gogoproto.marshaler"]); + if (object[".gogoproto.unmarshaler"] != null) + message[".gogoproto.unmarshaler"] = Boolean(object[".gogoproto.unmarshaler"]); + if (object[".gogoproto.stable_marshaler"] != null) + message[".gogoproto.stable_marshaler"] = Boolean(object[".gogoproto.stable_marshaler"]); + if (object[".gogoproto.sizer"] != null) + message[".gogoproto.sizer"] = Boolean(object[".gogoproto.sizer"]); + if (object[".gogoproto.unsafe_marshaler"] != null) + message[".gogoproto.unsafe_marshaler"] = Boolean(object[".gogoproto.unsafe_marshaler"]); + if (object[".gogoproto.unsafe_unmarshaler"] != null) + message[".gogoproto.unsafe_unmarshaler"] = Boolean(object[".gogoproto.unsafe_unmarshaler"]); + if (object[".gogoproto.goproto_extensions_map"] != null) + message[".gogoproto.goproto_extensions_map"] = Boolean(object[".gogoproto.goproto_extensions_map"]); + if (object[".gogoproto.goproto_unrecognized"] != null) + message[".gogoproto.goproto_unrecognized"] = Boolean(object[".gogoproto.goproto_unrecognized"]); + if (object[".gogoproto.protosizer"] != null) + message[".gogoproto.protosizer"] = Boolean(object[".gogoproto.protosizer"]); + if (object[".gogoproto.compare"] != null) + message[".gogoproto.compare"] = Boolean(object[".gogoproto.compare"]); + if (object[".gogoproto.typedecl"] != null) + message[".gogoproto.typedecl"] = Boolean(object[".gogoproto.typedecl"]); + if (object[".gogoproto.messagename"] != null) + message[".gogoproto.messagename"] = Boolean(object[".gogoproto.messagename"]); + if (object[".gogoproto.goproto_sizecache"] != null) + message[".gogoproto.goproto_sizecache"] = Boolean(object[".gogoproto.goproto_sizecache"]); + if (object[".gogoproto.goproto_unkeyed"] != null) + message[".gogoproto.goproto_unkeyed"] = Boolean(object[".gogoproto.goproto_unkeyed"]); + if (object[".cosmos_proto.implements_interface"]) { + if (!Array.isArray(object[".cosmos_proto.implements_interface"])) + throw TypeError(".google.protobuf.MessageOptions..cosmos_proto.implements_interface: array expected"); + message[".cosmos_proto.implements_interface"] = []; + for (let i = 0; i < object[".cosmos_proto.implements_interface"].length; ++i) + message[".cosmos_proto.implements_interface"][i] = String(object[".cosmos_proto.implements_interface"][i]); + } + if (object[".amino.name"] != null) + message[".amino.name"] = String(object[".amino.name"]); + if (object[".amino.message_encoding"] != null) + message[".amino.message_encoding"] = String(object[".amino.message_encoding"]); return message; }; /** - * Creates a plain object from an UninterpretedOption message. Also converts values to other types if specified. + * Creates a plain object from a MessageOptions message. Also converts values to other types if specified. * @function toObject - * @memberof google.protobuf.UninterpretedOption + * @memberof google.protobuf.MessageOptions * @static - * @param {google.protobuf.UninterpretedOption} message UninterpretedOption + * @param {google.protobuf.MessageOptions} message MessageOptions * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UninterpretedOption.toObject = function toObject(message, options) { + MessageOptions.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.name = []; + if (options.arrays || options.defaults) { + object.uninterpreted_option = []; + object[".cosmos_proto.implements_interface"] = []; + } if (options.defaults) { - object.identifier_value = ""; - if ($util.Long) { - let long = new $util.Long(0, 0, true); - object.positive_int_value = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.positive_int_value = options.longs === String ? "0" : 0; - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.negative_int_value = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.negative_int_value = options.longs === String ? "0" : 0; - object.double_value = 0; - if (options.bytes === String) - object.string_value = ""; - else { - object.string_value = []; - if (options.bytes !== Array) - object.string_value = $util.newBuffer(object.string_value); - } - object.aggregate_value = ""; + object.message_set_wire_format = false; + object.no_standard_descriptor_accessor = false; + object.deprecated = false; + object.map_entry = false; + object[".gogoproto.goproto_getters"] = false; + object[".gogoproto.goproto_stringer"] = false; + object[".gogoproto.verbose_equal"] = false; + object[".gogoproto.face"] = false; + object[".gogoproto.gostring"] = false; + object[".gogoproto.populate"] = false; + object[".gogoproto.onlyone"] = false; + object[".gogoproto.equal"] = false; + object[".gogoproto.description"] = false; + object[".gogoproto.testgen"] = false; + object[".gogoproto.benchgen"] = false; + object[".gogoproto.marshaler"] = false; + object[".gogoproto.unmarshaler"] = false; + object[".gogoproto.stable_marshaler"] = false; + object[".gogoproto.sizer"] = false; + object[".gogoproto.unsafe_marshaler"] = false; + object[".gogoproto.unsafe_unmarshaler"] = false; + object[".gogoproto.goproto_extensions_map"] = false; + object[".gogoproto.goproto_unrecognized"] = false; + object[".gogoproto.protosizer"] = false; + object[".gogoproto.compare"] = false; + object[".gogoproto.typedecl"] = false; + object[".gogoproto.messagename"] = false; + object[".gogoproto.goproto_sizecache"] = false; + object[".gogoproto.goproto_unkeyed"] = false; + object[".gogoproto.stringer"] = false; + object[".amino.name"] = ""; + object[".amino.message_encoding"] = ""; } - if (message.name && message.name.length) { - object.name = []; - for (let j = 0; j < message.name.length; ++j) - object.name[j] = $root.google.protobuf.UninterpretedOption.NamePart.toObject(message.name[j], options); + if (message.message_set_wire_format != null && message.hasOwnProperty("message_set_wire_format")) + object.message_set_wire_format = message.message_set_wire_format; + if (message.no_standard_descriptor_accessor != null && message.hasOwnProperty("no_standard_descriptor_accessor")) + object.no_standard_descriptor_accessor = message.no_standard_descriptor_accessor; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + object.deprecated = message.deprecated; + if (message.map_entry != null && message.hasOwnProperty("map_entry")) + object.map_entry = message.map_entry; + if (message.uninterpreted_option && message.uninterpreted_option.length) { + object.uninterpreted_option = []; + for (let j = 0; j < message.uninterpreted_option.length; ++j) + object.uninterpreted_option[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpreted_option[j], options); } - if (message.identifier_value != null && message.hasOwnProperty("identifier_value")) - object.identifier_value = message.identifier_value; - if (message.positive_int_value != null && message.hasOwnProperty("positive_int_value")) - if (typeof message.positive_int_value === "number") - object.positive_int_value = options.longs === String ? String(message.positive_int_value) : message.positive_int_value; - else - object.positive_int_value = options.longs === String ? $util.Long.prototype.toString.call(message.positive_int_value) : options.longs === Number ? new $util.LongBits(message.positive_int_value.low >>> 0, message.positive_int_value.high >>> 0).toNumber(true) : message.positive_int_value; - if (message.negative_int_value != null && message.hasOwnProperty("negative_int_value")) - if (typeof message.negative_int_value === "number") - object.negative_int_value = options.longs === String ? String(message.negative_int_value) : message.negative_int_value; - else - object.negative_int_value = options.longs === String ? $util.Long.prototype.toString.call(message.negative_int_value) : options.longs === Number ? new $util.LongBits(message.negative_int_value.low >>> 0, message.negative_int_value.high >>> 0).toNumber() : message.negative_int_value; - if (message.double_value != null && message.hasOwnProperty("double_value")) - object.double_value = options.json && !isFinite(message.double_value) ? String(message.double_value) : message.double_value; - if (message.string_value != null && message.hasOwnProperty("string_value")) - object.string_value = options.bytes === String ? $util.base64.encode(message.string_value, 0, message.string_value.length) : options.bytes === Array ? Array.prototype.slice.call(message.string_value) : message.string_value; - if (message.aggregate_value != null && message.hasOwnProperty("aggregate_value")) - object.aggregate_value = message.aggregate_value; + if (message[".gogoproto.goproto_getters"] != null && message.hasOwnProperty(".gogoproto.goproto_getters")) + object[".gogoproto.goproto_getters"] = message[".gogoproto.goproto_getters"]; + if (message[".gogoproto.goproto_stringer"] != null && message.hasOwnProperty(".gogoproto.goproto_stringer")) + object[".gogoproto.goproto_stringer"] = message[".gogoproto.goproto_stringer"]; + if (message[".gogoproto.verbose_equal"] != null && message.hasOwnProperty(".gogoproto.verbose_equal")) + object[".gogoproto.verbose_equal"] = message[".gogoproto.verbose_equal"]; + if (message[".gogoproto.face"] != null && message.hasOwnProperty(".gogoproto.face")) + object[".gogoproto.face"] = message[".gogoproto.face"]; + if (message[".gogoproto.gostring"] != null && message.hasOwnProperty(".gogoproto.gostring")) + object[".gogoproto.gostring"] = message[".gogoproto.gostring"]; + if (message[".gogoproto.populate"] != null && message.hasOwnProperty(".gogoproto.populate")) + object[".gogoproto.populate"] = message[".gogoproto.populate"]; + if (message[".gogoproto.onlyone"] != null && message.hasOwnProperty(".gogoproto.onlyone")) + object[".gogoproto.onlyone"] = message[".gogoproto.onlyone"]; + if (message[".gogoproto.equal"] != null && message.hasOwnProperty(".gogoproto.equal")) + object[".gogoproto.equal"] = message[".gogoproto.equal"]; + if (message[".gogoproto.description"] != null && message.hasOwnProperty(".gogoproto.description")) + object[".gogoproto.description"] = message[".gogoproto.description"]; + if (message[".gogoproto.testgen"] != null && message.hasOwnProperty(".gogoproto.testgen")) + object[".gogoproto.testgen"] = message[".gogoproto.testgen"]; + if (message[".gogoproto.benchgen"] != null && message.hasOwnProperty(".gogoproto.benchgen")) + object[".gogoproto.benchgen"] = message[".gogoproto.benchgen"]; + if (message[".gogoproto.marshaler"] != null && message.hasOwnProperty(".gogoproto.marshaler")) + object[".gogoproto.marshaler"] = message[".gogoproto.marshaler"]; + if (message[".gogoproto.unmarshaler"] != null && message.hasOwnProperty(".gogoproto.unmarshaler")) + object[".gogoproto.unmarshaler"] = message[".gogoproto.unmarshaler"]; + if (message[".gogoproto.stable_marshaler"] != null && message.hasOwnProperty(".gogoproto.stable_marshaler")) + object[".gogoproto.stable_marshaler"] = message[".gogoproto.stable_marshaler"]; + if (message[".gogoproto.sizer"] != null && message.hasOwnProperty(".gogoproto.sizer")) + object[".gogoproto.sizer"] = message[".gogoproto.sizer"]; + if (message[".gogoproto.unsafe_marshaler"] != null && message.hasOwnProperty(".gogoproto.unsafe_marshaler")) + object[".gogoproto.unsafe_marshaler"] = message[".gogoproto.unsafe_marshaler"]; + if (message[".gogoproto.unsafe_unmarshaler"] != null && message.hasOwnProperty(".gogoproto.unsafe_unmarshaler")) + object[".gogoproto.unsafe_unmarshaler"] = message[".gogoproto.unsafe_unmarshaler"]; + if (message[".gogoproto.goproto_extensions_map"] != null && message.hasOwnProperty(".gogoproto.goproto_extensions_map")) + object[".gogoproto.goproto_extensions_map"] = message[".gogoproto.goproto_extensions_map"]; + if (message[".gogoproto.goproto_unrecognized"] != null && message.hasOwnProperty(".gogoproto.goproto_unrecognized")) + object[".gogoproto.goproto_unrecognized"] = message[".gogoproto.goproto_unrecognized"]; + if (message[".gogoproto.protosizer"] != null && message.hasOwnProperty(".gogoproto.protosizer")) + object[".gogoproto.protosizer"] = message[".gogoproto.protosizer"]; + if (message[".gogoproto.compare"] != null && message.hasOwnProperty(".gogoproto.compare")) + object[".gogoproto.compare"] = message[".gogoproto.compare"]; + if (message[".gogoproto.typedecl"] != null && message.hasOwnProperty(".gogoproto.typedecl")) + object[".gogoproto.typedecl"] = message[".gogoproto.typedecl"]; + if (message[".gogoproto.messagename"] != null && message.hasOwnProperty(".gogoproto.messagename")) + object[".gogoproto.messagename"] = message[".gogoproto.messagename"]; + if (message[".gogoproto.goproto_sizecache"] != null && message.hasOwnProperty(".gogoproto.goproto_sizecache")) + object[".gogoproto.goproto_sizecache"] = message[".gogoproto.goproto_sizecache"]; + if (message[".gogoproto.goproto_unkeyed"] != null && message.hasOwnProperty(".gogoproto.goproto_unkeyed")) + object[".gogoproto.goproto_unkeyed"] = message[".gogoproto.goproto_unkeyed"]; + if (message[".gogoproto.stringer"] != null && message.hasOwnProperty(".gogoproto.stringer")) + object[".gogoproto.stringer"] = message[".gogoproto.stringer"]; + if (message[".cosmos_proto.implements_interface"] && message[".cosmos_proto.implements_interface"].length) { + object[".cosmos_proto.implements_interface"] = []; + for (let j = 0; j < message[".cosmos_proto.implements_interface"].length; ++j) + object[".cosmos_proto.implements_interface"][j] = message[".cosmos_proto.implements_interface"][j]; + } + if (message[".amino.name"] != null && message.hasOwnProperty(".amino.name")) + object[".amino.name"] = message[".amino.name"]; + if (message[".amino.message_encoding"] != null && message.hasOwnProperty(".amino.message_encoding")) + object[".amino.message_encoding"] = message[".amino.message_encoding"]; return object; }; /** - * Converts this UninterpretedOption to JSON. + * Converts this MessageOptions to JSON. * @function toJSON - * @memberof google.protobuf.UninterpretedOption + * @memberof google.protobuf.MessageOptions * @instance * @returns {Object.} JSON object - */ - UninterpretedOption.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - UninterpretedOption.NamePart = (function() { - - /** - * Properties of a NamePart. - * @memberof google.protobuf.UninterpretedOption - * @interface INamePart - * @property {string} name_part NamePart name_part - * @property {boolean} is_extension NamePart is_extension - */ - - /** - * Constructs a new NamePart. - * @memberof google.protobuf.UninterpretedOption - * @classdesc Represents a NamePart. - * @implements INamePart - * @constructor - * @param {google.protobuf.UninterpretedOption.INamePart=} [properties] Properties to set - */ - function NamePart(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * NamePart name_part. - * @member {string} name_part - * @memberof google.protobuf.UninterpretedOption.NamePart - * @instance - */ - NamePart.prototype.name_part = ""; - - /** - * NamePart is_extension. - * @member {boolean} is_extension - * @memberof google.protobuf.UninterpretedOption.NamePart - * @instance - */ - NamePart.prototype.is_extension = false; - - /** - * Encodes the specified NamePart message. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages. - * @function encode - * @memberof google.protobuf.UninterpretedOption.NamePart - * @static - * @param {google.protobuf.UninterpretedOption.INamePart} message NamePart message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NamePart.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name_part); - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.is_extension); - return writer; - }; - - /** - * Encodes the specified NamePart message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.UninterpretedOption.NamePart - * @static - * @param {google.protobuf.UninterpretedOption.INamePart} message NamePart message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NamePart.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a NamePart message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.UninterpretedOption.NamePart - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.UninterpretedOption.NamePart} NamePart - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NamePart.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.UninterpretedOption.NamePart(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name_part = reader.string(); - break; - case 2: - message.is_extension = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - if (!message.hasOwnProperty("name_part")) - throw $util.ProtocolError("missing required 'name_part'", { instance: message }); - if (!message.hasOwnProperty("is_extension")) - throw $util.ProtocolError("missing required 'is_extension'", { instance: message }); - return message; - }; - - /** - * Decodes a NamePart message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.UninterpretedOption.NamePart - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.UninterpretedOption.NamePart} NamePart - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NamePart.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a NamePart message. - * @function verify - * @memberof google.protobuf.UninterpretedOption.NamePart - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - NamePart.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (!$util.isString(message.name_part)) - return "name_part: string expected"; - if (typeof message.is_extension !== "boolean") - return "is_extension: boolean expected"; - return null; - }; - - /** - * Creates a NamePart message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.UninterpretedOption.NamePart - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.UninterpretedOption.NamePart} NamePart - */ - NamePart.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.UninterpretedOption.NamePart) - return object; - let message = new $root.google.protobuf.UninterpretedOption.NamePart(); - if (object.name_part != null) - message.name_part = String(object.name_part); - if (object.is_extension != null) - message.is_extension = Boolean(object.is_extension); - return message; - }; - - /** - * Creates a plain object from a NamePart message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.UninterpretedOption.NamePart - * @static - * @param {google.protobuf.UninterpretedOption.NamePart} message NamePart - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - NamePart.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - object.name_part = ""; - object.is_extension = false; - } - if (message.name_part != null && message.hasOwnProperty("name_part")) - object.name_part = message.name_part; - if (message.is_extension != null && message.hasOwnProperty("is_extension")) - object.is_extension = message.is_extension; - return object; - }; - - /** - * Converts this NamePart to JSON. - * @function toJSON - * @memberof google.protobuf.UninterpretedOption.NamePart - * @instance - * @returns {Object.} JSON object - */ - NamePart.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return NamePart; - })(); + */ + MessageOptions.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return UninterpretedOption; + return MessageOptions; })(); - protobuf.SourceCodeInfo = (function() { + protobuf.FieldOptions = (function() { /** - * Properties of a SourceCodeInfo. + * Properties of a FieldOptions. * @memberof google.protobuf - * @interface ISourceCodeInfo - * @property {Array.|null} [location] SourceCodeInfo location + * @interface IFieldOptions + * @property {google.protobuf.FieldOptions.CType|null} [ctype] FieldOptions ctype + * @property {boolean|null} [packed] FieldOptions packed + * @property {google.protobuf.FieldOptions.JSType|null} [jstype] FieldOptions jstype + * @property {boolean|null} [lazy] FieldOptions lazy + * @property {boolean|null} [deprecated] FieldOptions deprecated + * @property {boolean|null} [weak] FieldOptions weak + * @property {Array.|null} [uninterpreted_option] FieldOptions uninterpreted_option + * @property {boolean|null} [".gogoproto.nullable"] FieldOptions .gogoproto.nullable + * @property {boolean|null} [".gogoproto.embed"] FieldOptions .gogoproto.embed + * @property {string|null} [".gogoproto.customtype"] FieldOptions .gogoproto.customtype + * @property {string|null} [".gogoproto.customname"] FieldOptions .gogoproto.customname + * @property {string|null} [".gogoproto.jsontag"] FieldOptions .gogoproto.jsontag + * @property {string|null} [".gogoproto.moretags"] FieldOptions .gogoproto.moretags + * @property {string|null} [".gogoproto.casttype"] FieldOptions .gogoproto.casttype + * @property {string|null} [".gogoproto.castkey"] FieldOptions .gogoproto.castkey + * @property {string|null} [".gogoproto.castvalue"] FieldOptions .gogoproto.castvalue + * @property {boolean|null} [".gogoproto.stdtime"] FieldOptions .gogoproto.stdtime + * @property {boolean|null} [".gogoproto.stdduration"] FieldOptions .gogoproto.stdduration + * @property {boolean|null} [".gogoproto.wktpointer"] FieldOptions .gogoproto.wktpointer + * @property {string|null} [".gogoproto.castrepeated"] FieldOptions .gogoproto.castrepeated + * @property {string|null} [".cosmos_proto.accepts_interface"] FieldOptions .cosmos_proto.accepts_interface + * @property {string|null} [".cosmos_proto.scalar"] FieldOptions .cosmos_proto.scalar + * @property {string|null} [".amino.encoding"] FieldOptions .amino.encoding + * @property {string|null} [".amino.field_name"] FieldOptions .amino.field_name + * @property {boolean|null} [".amino.dont_omitempty"] FieldOptions .amino.dont_omitempty */ /** - * Constructs a new SourceCodeInfo. + * Constructs a new FieldOptions. * @memberof google.protobuf - * @classdesc Represents a SourceCodeInfo. - * @implements ISourceCodeInfo + * @classdesc Represents a FieldOptions. + * @implements IFieldOptions * @constructor - * @param {google.protobuf.ISourceCodeInfo=} [properties] Properties to set + * @param {google.protobuf.IFieldOptions=} [properties] Properties to set */ - function SourceCodeInfo(properties) { - this.location = []; + function FieldOptions(properties) { + this.uninterpreted_option = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -15695,66 +21655,378 @@ export const google = $root.google = (() => { } /** - * SourceCodeInfo location. - * @member {Array.} location - * @memberof google.protobuf.SourceCodeInfo + * FieldOptions ctype. + * @member {google.protobuf.FieldOptions.CType} ctype + * @memberof google.protobuf.FieldOptions * @instance */ - SourceCodeInfo.prototype.location = $util.emptyArray; + FieldOptions.prototype.ctype = 0; /** - * Encodes the specified SourceCodeInfo message. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages. + * FieldOptions packed. + * @member {boolean} packed + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.packed = false; + + /** + * FieldOptions jstype. + * @member {google.protobuf.FieldOptions.JSType} jstype + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.jstype = 0; + + /** + * FieldOptions lazy. + * @member {boolean} lazy + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.lazy = false; + + /** + * FieldOptions deprecated. + * @member {boolean} deprecated + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.deprecated = false; + + /** + * FieldOptions weak. + * @member {boolean} weak + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.weak = false; + + /** + * FieldOptions uninterpreted_option. + * @member {Array.} uninterpreted_option + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.uninterpreted_option = $util.emptyArray; + + /** + * FieldOptions .gogoproto.nullable. + * @member {boolean} .gogoproto.nullable + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype[".gogoproto.nullable"] = false; + + /** + * FieldOptions .gogoproto.embed. + * @member {boolean} .gogoproto.embed + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype[".gogoproto.embed"] = false; + + /** + * FieldOptions .gogoproto.customtype. + * @member {string} .gogoproto.customtype + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype[".gogoproto.customtype"] = ""; + + /** + * FieldOptions .gogoproto.customname. + * @member {string} .gogoproto.customname + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype[".gogoproto.customname"] = ""; + + /** + * FieldOptions .gogoproto.jsontag. + * @member {string} .gogoproto.jsontag + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype[".gogoproto.jsontag"] = ""; + + /** + * FieldOptions .gogoproto.moretags. + * @member {string} .gogoproto.moretags + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype[".gogoproto.moretags"] = ""; + + /** + * FieldOptions .gogoproto.casttype. + * @member {string} .gogoproto.casttype + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype[".gogoproto.casttype"] = ""; + + /** + * FieldOptions .gogoproto.castkey. + * @member {string} .gogoproto.castkey + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype[".gogoproto.castkey"] = ""; + + /** + * FieldOptions .gogoproto.castvalue. + * @member {string} .gogoproto.castvalue + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype[".gogoproto.castvalue"] = ""; + + /** + * FieldOptions .gogoproto.stdtime. + * @member {boolean} .gogoproto.stdtime + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype[".gogoproto.stdtime"] = false; + + /** + * FieldOptions .gogoproto.stdduration. + * @member {boolean} .gogoproto.stdduration + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype[".gogoproto.stdduration"] = false; + + /** + * FieldOptions .gogoproto.wktpointer. + * @member {boolean} .gogoproto.wktpointer + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype[".gogoproto.wktpointer"] = false; + + /** + * FieldOptions .gogoproto.castrepeated. + * @member {string} .gogoproto.castrepeated + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype[".gogoproto.castrepeated"] = ""; + + /** + * FieldOptions .cosmos_proto.accepts_interface. + * @member {string} .cosmos_proto.accepts_interface + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype[".cosmos_proto.accepts_interface"] = ""; + + /** + * FieldOptions .cosmos_proto.scalar. + * @member {string} .cosmos_proto.scalar + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype[".cosmos_proto.scalar"] = ""; + + /** + * FieldOptions .amino.encoding. + * @member {string} .amino.encoding + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype[".amino.encoding"] = ""; + + /** + * FieldOptions .amino.field_name. + * @member {string} .amino.field_name + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype[".amino.field_name"] = ""; + + /** + * FieldOptions .amino.dont_omitempty. + * @member {boolean} .amino.dont_omitempty + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype[".amino.dont_omitempty"] = false; + + /** + * Encodes the specified FieldOptions message. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages. * @function encode - * @memberof google.protobuf.SourceCodeInfo + * @memberof google.protobuf.FieldOptions * @static - * @param {google.protobuf.ISourceCodeInfo} message SourceCodeInfo message or plain object to encode + * @param {google.protobuf.IFieldOptions} message FieldOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SourceCodeInfo.encode = function encode(message, writer) { + FieldOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.location != null && message.location.length) - for (let i = 0; i < message.location.length; ++i) - $root.google.protobuf.SourceCodeInfo.Location.encode(message.location[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.ctype != null && Object.hasOwnProperty.call(message, "ctype")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.ctype); + if (message.packed != null && Object.hasOwnProperty.call(message, "packed")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.packed); + if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.deprecated); + if (message.lazy != null && Object.hasOwnProperty.call(message, "lazy")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.lazy); + if (message.jstype != null && Object.hasOwnProperty.call(message, "jstype")) + writer.uint32(/* id 6, wireType 0 =*/48).int32(message.jstype); + if (message.weak != null && Object.hasOwnProperty.call(message, "weak")) + writer.uint32(/* id 10, wireType 0 =*/80).bool(message.weak); + if (message.uninterpreted_option != null && message.uninterpreted_option.length) + for (let i = 0; i < message.uninterpreted_option.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpreted_option[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + if (message[".gogoproto.nullable"] != null && Object.hasOwnProperty.call(message, ".gogoproto.nullable")) + writer.uint32(/* id 65001, wireType 0 =*/520008).bool(message[".gogoproto.nullable"]); + if (message[".gogoproto.embed"] != null && Object.hasOwnProperty.call(message, ".gogoproto.embed")) + writer.uint32(/* id 65002, wireType 0 =*/520016).bool(message[".gogoproto.embed"]); + if (message[".gogoproto.customtype"] != null && Object.hasOwnProperty.call(message, ".gogoproto.customtype")) + writer.uint32(/* id 65003, wireType 2 =*/520026).string(message[".gogoproto.customtype"]); + if (message[".gogoproto.customname"] != null && Object.hasOwnProperty.call(message, ".gogoproto.customname")) + writer.uint32(/* id 65004, wireType 2 =*/520034).string(message[".gogoproto.customname"]); + if (message[".gogoproto.jsontag"] != null && Object.hasOwnProperty.call(message, ".gogoproto.jsontag")) + writer.uint32(/* id 65005, wireType 2 =*/520042).string(message[".gogoproto.jsontag"]); + if (message[".gogoproto.moretags"] != null && Object.hasOwnProperty.call(message, ".gogoproto.moretags")) + writer.uint32(/* id 65006, wireType 2 =*/520050).string(message[".gogoproto.moretags"]); + if (message[".gogoproto.casttype"] != null && Object.hasOwnProperty.call(message, ".gogoproto.casttype")) + writer.uint32(/* id 65007, wireType 2 =*/520058).string(message[".gogoproto.casttype"]); + if (message[".gogoproto.castkey"] != null && Object.hasOwnProperty.call(message, ".gogoproto.castkey")) + writer.uint32(/* id 65008, wireType 2 =*/520066).string(message[".gogoproto.castkey"]); + if (message[".gogoproto.castvalue"] != null && Object.hasOwnProperty.call(message, ".gogoproto.castvalue")) + writer.uint32(/* id 65009, wireType 2 =*/520074).string(message[".gogoproto.castvalue"]); + if (message[".gogoproto.stdtime"] != null && Object.hasOwnProperty.call(message, ".gogoproto.stdtime")) + writer.uint32(/* id 65010, wireType 0 =*/520080).bool(message[".gogoproto.stdtime"]); + if (message[".gogoproto.stdduration"] != null && Object.hasOwnProperty.call(message, ".gogoproto.stdduration")) + writer.uint32(/* id 65011, wireType 0 =*/520088).bool(message[".gogoproto.stdduration"]); + if (message[".gogoproto.wktpointer"] != null && Object.hasOwnProperty.call(message, ".gogoproto.wktpointer")) + writer.uint32(/* id 65012, wireType 0 =*/520096).bool(message[".gogoproto.wktpointer"]); + if (message[".gogoproto.castrepeated"] != null && Object.hasOwnProperty.call(message, ".gogoproto.castrepeated")) + writer.uint32(/* id 65013, wireType 2 =*/520106).string(message[".gogoproto.castrepeated"]); + if (message[".cosmos_proto.accepts_interface"] != null && Object.hasOwnProperty.call(message, ".cosmos_proto.accepts_interface")) + writer.uint32(/* id 93001, wireType 2 =*/744010).string(message[".cosmos_proto.accepts_interface"]); + if (message[".cosmos_proto.scalar"] != null && Object.hasOwnProperty.call(message, ".cosmos_proto.scalar")) + writer.uint32(/* id 93002, wireType 2 =*/744018).string(message[".cosmos_proto.scalar"]); + if (message[".amino.encoding"] != null && Object.hasOwnProperty.call(message, ".amino.encoding")) + writer.uint32(/* id 11110003, wireType 2 =*/88880026).string(message[".amino.encoding"]); + if (message[".amino.field_name"] != null && Object.hasOwnProperty.call(message, ".amino.field_name")) + writer.uint32(/* id 11110004, wireType 2 =*/88880034).string(message[".amino.field_name"]); + if (message[".amino.dont_omitempty"] != null && Object.hasOwnProperty.call(message, ".amino.dont_omitempty")) + writer.uint32(/* id 11110005, wireType 0 =*/88880040).bool(message[".amino.dont_omitempty"]); return writer; }; /** - * Encodes the specified SourceCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages. + * Encodes the specified FieldOptions message, length delimited. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages. * @function encodeDelimited - * @memberof google.protobuf.SourceCodeInfo + * @memberof google.protobuf.FieldOptions * @static - * @param {google.protobuf.ISourceCodeInfo} message SourceCodeInfo message or plain object to encode + * @param {google.protobuf.IFieldOptions} message FieldOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SourceCodeInfo.encodeDelimited = function encodeDelimited(message, writer) { + FieldOptions.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SourceCodeInfo message from the specified reader or buffer. + * Decodes a FieldOptions message from the specified reader or buffer. * @function decode - * @memberof google.protobuf.SourceCodeInfo + * @memberof google.protobuf.FieldOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.SourceCodeInfo} SourceCodeInfo + * @returns {google.protobuf.FieldOptions} FieldOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SourceCodeInfo.decode = function decode(reader, length) { + FieldOptions.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.SourceCodeInfo(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FieldOptions(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.location && message.location.length)) - message.location = []; - message.location.push($root.google.protobuf.SourceCodeInfo.Location.decode(reader, reader.uint32())); + message.ctype = reader.int32(); + break; + case 2: + message.packed = reader.bool(); + break; + case 6: + message.jstype = reader.int32(); + break; + case 5: + message.lazy = reader.bool(); + break; + case 3: + message.deprecated = reader.bool(); + break; + case 10: + message.weak = reader.bool(); + break; + case 999: + if (!(message.uninterpreted_option && message.uninterpreted_option.length)) + message.uninterpreted_option = []; + message.uninterpreted_option.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + case 65001: + message[".gogoproto.nullable"] = reader.bool(); + break; + case 65002: + message[".gogoproto.embed"] = reader.bool(); + break; + case 65003: + message[".gogoproto.customtype"] = reader.string(); + break; + case 65004: + message[".gogoproto.customname"] = reader.string(); + break; + case 65005: + message[".gogoproto.jsontag"] = reader.string(); + break; + case 65006: + message[".gogoproto.moretags"] = reader.string(); + break; + case 65007: + message[".gogoproto.casttype"] = reader.string(); + break; + case 65008: + message[".gogoproto.castkey"] = reader.string(); + break; + case 65009: + message[".gogoproto.castvalue"] = reader.string(); + break; + case 65010: + message[".gogoproto.stdtime"] = reader.bool(); + break; + case 65011: + message[".gogoproto.stdduration"] = reader.bool(); + break; + case 65012: + message[".gogoproto.wktpointer"] = reader.bool(); + break; + case 65013: + message[".gogoproto.castrepeated"] = reader.string(); + break; + case 93001: + message[".cosmos_proto.accepts_interface"] = reader.string(); + break; + case 93002: + message[".cosmos_proto.scalar"] = reader.string(); + break; + case 11110003: + message[".amino.encoding"] = reader.string(); + break; + case 11110004: + message[".amino.field_name"] = reader.string(); + break; + case 11110005: + message[".amino.dont_omitempty"] = reader.bool(); break; default: reader.skipType(tag & 7); @@ -15765,455 +22037,387 @@ export const google = $root.google = (() => { }; /** - * Decodes a SourceCodeInfo message from the specified reader or buffer, length delimited. + * Decodes a FieldOptions message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.protobuf.SourceCodeInfo + * @memberof google.protobuf.FieldOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.SourceCodeInfo} SourceCodeInfo + * @returns {google.protobuf.FieldOptions} FieldOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SourceCodeInfo.decodeDelimited = function decodeDelimited(reader) { + FieldOptions.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SourceCodeInfo message. + * Verifies a FieldOptions message. * @function verify - * @memberof google.protobuf.SourceCodeInfo + * @memberof google.protobuf.FieldOptions * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SourceCodeInfo.verify = function verify(message) { + FieldOptions.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.location != null && message.hasOwnProperty("location")) { - if (!Array.isArray(message.location)) - return "location: array expected"; - for (let i = 0; i < message.location.length; ++i) { - let error = $root.google.protobuf.SourceCodeInfo.Location.verify(message.location[i]); + if (message.ctype != null && message.hasOwnProperty("ctype")) + switch (message.ctype) { + default: + return "ctype: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.packed != null && message.hasOwnProperty("packed")) + if (typeof message.packed !== "boolean") + return "packed: boolean expected"; + if (message.jstype != null && message.hasOwnProperty("jstype")) + switch (message.jstype) { + default: + return "jstype: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.lazy != null && message.hasOwnProperty("lazy")) + if (typeof message.lazy !== "boolean") + return "lazy: boolean expected"; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (typeof message.deprecated !== "boolean") + return "deprecated: boolean expected"; + if (message.weak != null && message.hasOwnProperty("weak")) + if (typeof message.weak !== "boolean") + return "weak: boolean expected"; + if (message.uninterpreted_option != null && message.hasOwnProperty("uninterpreted_option")) { + if (!Array.isArray(message.uninterpreted_option)) + return "uninterpreted_option: array expected"; + for (let i = 0; i < message.uninterpreted_option.length; ++i) { + let error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpreted_option[i]); if (error) - return "location." + error; + return "uninterpreted_option." + error; } } - return null; - }; - - /** - * Creates a SourceCodeInfo message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.SourceCodeInfo - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.SourceCodeInfo} SourceCodeInfo - */ - SourceCodeInfo.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.SourceCodeInfo) - return object; - let message = new $root.google.protobuf.SourceCodeInfo(); - if (object.location) { - if (!Array.isArray(object.location)) - throw TypeError(".google.protobuf.SourceCodeInfo.location: array expected"); - message.location = []; - for (let i = 0; i < object.location.length; ++i) { - if (typeof object.location[i] !== "object") - throw TypeError(".google.protobuf.SourceCodeInfo.location: object expected"); - message.location[i] = $root.google.protobuf.SourceCodeInfo.Location.fromObject(object.location[i]); + if (message[".gogoproto.nullable"] != null && message.hasOwnProperty(".gogoproto.nullable")) + if (typeof message[".gogoproto.nullable"] !== "boolean") + return ".gogoproto.nullable: boolean expected"; + if (message[".gogoproto.embed"] != null && message.hasOwnProperty(".gogoproto.embed")) + if (typeof message[".gogoproto.embed"] !== "boolean") + return ".gogoproto.embed: boolean expected"; + if (message[".gogoproto.customtype"] != null && message.hasOwnProperty(".gogoproto.customtype")) + if (!$util.isString(message[".gogoproto.customtype"])) + return ".gogoproto.customtype: string expected"; + if (message[".gogoproto.customname"] != null && message.hasOwnProperty(".gogoproto.customname")) + if (!$util.isString(message[".gogoproto.customname"])) + return ".gogoproto.customname: string expected"; + if (message[".gogoproto.jsontag"] != null && message.hasOwnProperty(".gogoproto.jsontag")) + if (!$util.isString(message[".gogoproto.jsontag"])) + return ".gogoproto.jsontag: string expected"; + if (message[".gogoproto.moretags"] != null && message.hasOwnProperty(".gogoproto.moretags")) + if (!$util.isString(message[".gogoproto.moretags"])) + return ".gogoproto.moretags: string expected"; + if (message[".gogoproto.casttype"] != null && message.hasOwnProperty(".gogoproto.casttype")) + if (!$util.isString(message[".gogoproto.casttype"])) + return ".gogoproto.casttype: string expected"; + if (message[".gogoproto.castkey"] != null && message.hasOwnProperty(".gogoproto.castkey")) + if (!$util.isString(message[".gogoproto.castkey"])) + return ".gogoproto.castkey: string expected"; + if (message[".gogoproto.castvalue"] != null && message.hasOwnProperty(".gogoproto.castvalue")) + if (!$util.isString(message[".gogoproto.castvalue"])) + return ".gogoproto.castvalue: string expected"; + if (message[".gogoproto.stdtime"] != null && message.hasOwnProperty(".gogoproto.stdtime")) + if (typeof message[".gogoproto.stdtime"] !== "boolean") + return ".gogoproto.stdtime: boolean expected"; + if (message[".gogoproto.stdduration"] != null && message.hasOwnProperty(".gogoproto.stdduration")) + if (typeof message[".gogoproto.stdduration"] !== "boolean") + return ".gogoproto.stdduration: boolean expected"; + if (message[".gogoproto.wktpointer"] != null && message.hasOwnProperty(".gogoproto.wktpointer")) + if (typeof message[".gogoproto.wktpointer"] !== "boolean") + return ".gogoproto.wktpointer: boolean expected"; + if (message[".gogoproto.castrepeated"] != null && message.hasOwnProperty(".gogoproto.castrepeated")) + if (!$util.isString(message[".gogoproto.castrepeated"])) + return ".gogoproto.castrepeated: string expected"; + if (message[".cosmos_proto.accepts_interface"] != null && message.hasOwnProperty(".cosmos_proto.accepts_interface")) + if (!$util.isString(message[".cosmos_proto.accepts_interface"])) + return ".cosmos_proto.accepts_interface: string expected"; + if (message[".cosmos_proto.scalar"] != null && message.hasOwnProperty(".cosmos_proto.scalar")) + if (!$util.isString(message[".cosmos_proto.scalar"])) + return ".cosmos_proto.scalar: string expected"; + if (message[".amino.encoding"] != null && message.hasOwnProperty(".amino.encoding")) + if (!$util.isString(message[".amino.encoding"])) + return ".amino.encoding: string expected"; + if (message[".amino.field_name"] != null && message.hasOwnProperty(".amino.field_name")) + if (!$util.isString(message[".amino.field_name"])) + return ".amino.field_name: string expected"; + if (message[".amino.dont_omitempty"] != null && message.hasOwnProperty(".amino.dont_omitempty")) + if (typeof message[".amino.dont_omitempty"] !== "boolean") + return ".amino.dont_omitempty: boolean expected"; + return null; + }; + + /** + * Creates a FieldOptions message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.FieldOptions + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.FieldOptions} FieldOptions + */ + FieldOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.FieldOptions) + return object; + let message = new $root.google.protobuf.FieldOptions(); + switch (object.ctype) { + case "STRING": + case 0: + message.ctype = 0; + break; + case "CORD": + case 1: + message.ctype = 1; + break; + case "STRING_PIECE": + case 2: + message.ctype = 2; + break; + } + if (object.packed != null) + message.packed = Boolean(object.packed); + switch (object.jstype) { + case "JS_NORMAL": + case 0: + message.jstype = 0; + break; + case "JS_STRING": + case 1: + message.jstype = 1; + break; + case "JS_NUMBER": + case 2: + message.jstype = 2; + break; + } + if (object.lazy != null) + message.lazy = Boolean(object.lazy); + if (object.deprecated != null) + message.deprecated = Boolean(object.deprecated); + if (object.weak != null) + message.weak = Boolean(object.weak); + if (object.uninterpreted_option) { + if (!Array.isArray(object.uninterpreted_option)) + throw TypeError(".google.protobuf.FieldOptions.uninterpreted_option: array expected"); + message.uninterpreted_option = []; + for (let i = 0; i < object.uninterpreted_option.length; ++i) { + if (typeof object.uninterpreted_option[i] !== "object") + throw TypeError(".google.protobuf.FieldOptions.uninterpreted_option: object expected"); + message.uninterpreted_option[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpreted_option[i]); } } + if (object[".gogoproto.nullable"] != null) + message[".gogoproto.nullable"] = Boolean(object[".gogoproto.nullable"]); + if (object[".gogoproto.embed"] != null) + message[".gogoproto.embed"] = Boolean(object[".gogoproto.embed"]); + if (object[".gogoproto.customtype"] != null) + message[".gogoproto.customtype"] = String(object[".gogoproto.customtype"]); + if (object[".gogoproto.customname"] != null) + message[".gogoproto.customname"] = String(object[".gogoproto.customname"]); + if (object[".gogoproto.jsontag"] != null) + message[".gogoproto.jsontag"] = String(object[".gogoproto.jsontag"]); + if (object[".gogoproto.moretags"] != null) + message[".gogoproto.moretags"] = String(object[".gogoproto.moretags"]); + if (object[".gogoproto.casttype"] != null) + message[".gogoproto.casttype"] = String(object[".gogoproto.casttype"]); + if (object[".gogoproto.castkey"] != null) + message[".gogoproto.castkey"] = String(object[".gogoproto.castkey"]); + if (object[".gogoproto.castvalue"] != null) + message[".gogoproto.castvalue"] = String(object[".gogoproto.castvalue"]); + if (object[".gogoproto.stdtime"] != null) + message[".gogoproto.stdtime"] = Boolean(object[".gogoproto.stdtime"]); + if (object[".gogoproto.stdduration"] != null) + message[".gogoproto.stdduration"] = Boolean(object[".gogoproto.stdduration"]); + if (object[".gogoproto.wktpointer"] != null) + message[".gogoproto.wktpointer"] = Boolean(object[".gogoproto.wktpointer"]); + if (object[".gogoproto.castrepeated"] != null) + message[".gogoproto.castrepeated"] = String(object[".gogoproto.castrepeated"]); + if (object[".cosmos_proto.accepts_interface"] != null) + message[".cosmos_proto.accepts_interface"] = String(object[".cosmos_proto.accepts_interface"]); + if (object[".cosmos_proto.scalar"] != null) + message[".cosmos_proto.scalar"] = String(object[".cosmos_proto.scalar"]); + if (object[".amino.encoding"] != null) + message[".amino.encoding"] = String(object[".amino.encoding"]); + if (object[".amino.field_name"] != null) + message[".amino.field_name"] = String(object[".amino.field_name"]); + if (object[".amino.dont_omitempty"] != null) + message[".amino.dont_omitempty"] = Boolean(object[".amino.dont_omitempty"]); return message; }; /** - * Creates a plain object from a SourceCodeInfo message. Also converts values to other types if specified. + * Creates a plain object from a FieldOptions message. Also converts values to other types if specified. * @function toObject - * @memberof google.protobuf.SourceCodeInfo + * @memberof google.protobuf.FieldOptions * @static - * @param {google.protobuf.SourceCodeInfo} message SourceCodeInfo + * @param {google.protobuf.FieldOptions} message FieldOptions * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SourceCodeInfo.toObject = function toObject(message, options) { + FieldOptions.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) - object.location = []; - if (message.location && message.location.length) { - object.location = []; - for (let j = 0; j < message.location.length; ++j) - object.location[j] = $root.google.protobuf.SourceCodeInfo.Location.toObject(message.location[j], options); + object.uninterpreted_option = []; + if (options.defaults) { + object.ctype = options.enums === String ? "STRING" : 0; + object.packed = false; + object.deprecated = false; + object.lazy = false; + object.jstype = options.enums === String ? "JS_NORMAL" : 0; + object.weak = false; + object[".gogoproto.nullable"] = false; + object[".gogoproto.embed"] = false; + object[".gogoproto.customtype"] = ""; + object[".gogoproto.customname"] = ""; + object[".gogoproto.jsontag"] = ""; + object[".gogoproto.moretags"] = ""; + object[".gogoproto.casttype"] = ""; + object[".gogoproto.castkey"] = ""; + object[".gogoproto.castvalue"] = ""; + object[".gogoproto.stdtime"] = false; + object[".gogoproto.stdduration"] = false; + object[".gogoproto.wktpointer"] = false; + object[".gogoproto.castrepeated"] = ""; + object[".cosmos_proto.accepts_interface"] = ""; + object[".cosmos_proto.scalar"] = ""; + object[".amino.encoding"] = ""; + object[".amino.field_name"] = ""; + object[".amino.dont_omitempty"] = false; + } + if (message.ctype != null && message.hasOwnProperty("ctype")) + object.ctype = options.enums === String ? $root.google.protobuf.FieldOptions.CType[message.ctype] : message.ctype; + if (message.packed != null && message.hasOwnProperty("packed")) + object.packed = message.packed; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + object.deprecated = message.deprecated; + if (message.lazy != null && message.hasOwnProperty("lazy")) + object.lazy = message.lazy; + if (message.jstype != null && message.hasOwnProperty("jstype")) + object.jstype = options.enums === String ? $root.google.protobuf.FieldOptions.JSType[message.jstype] : message.jstype; + if (message.weak != null && message.hasOwnProperty("weak")) + object.weak = message.weak; + if (message.uninterpreted_option && message.uninterpreted_option.length) { + object.uninterpreted_option = []; + for (let j = 0; j < message.uninterpreted_option.length; ++j) + object.uninterpreted_option[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpreted_option[j], options); } + if (message[".gogoproto.nullable"] != null && message.hasOwnProperty(".gogoproto.nullable")) + object[".gogoproto.nullable"] = message[".gogoproto.nullable"]; + if (message[".gogoproto.embed"] != null && message.hasOwnProperty(".gogoproto.embed")) + object[".gogoproto.embed"] = message[".gogoproto.embed"]; + if (message[".gogoproto.customtype"] != null && message.hasOwnProperty(".gogoproto.customtype")) + object[".gogoproto.customtype"] = message[".gogoproto.customtype"]; + if (message[".gogoproto.customname"] != null && message.hasOwnProperty(".gogoproto.customname")) + object[".gogoproto.customname"] = message[".gogoproto.customname"]; + if (message[".gogoproto.jsontag"] != null && message.hasOwnProperty(".gogoproto.jsontag")) + object[".gogoproto.jsontag"] = message[".gogoproto.jsontag"]; + if (message[".gogoproto.moretags"] != null && message.hasOwnProperty(".gogoproto.moretags")) + object[".gogoproto.moretags"] = message[".gogoproto.moretags"]; + if (message[".gogoproto.casttype"] != null && message.hasOwnProperty(".gogoproto.casttype")) + object[".gogoproto.casttype"] = message[".gogoproto.casttype"]; + if (message[".gogoproto.castkey"] != null && message.hasOwnProperty(".gogoproto.castkey")) + object[".gogoproto.castkey"] = message[".gogoproto.castkey"]; + if (message[".gogoproto.castvalue"] != null && message.hasOwnProperty(".gogoproto.castvalue")) + object[".gogoproto.castvalue"] = message[".gogoproto.castvalue"]; + if (message[".gogoproto.stdtime"] != null && message.hasOwnProperty(".gogoproto.stdtime")) + object[".gogoproto.stdtime"] = message[".gogoproto.stdtime"]; + if (message[".gogoproto.stdduration"] != null && message.hasOwnProperty(".gogoproto.stdduration")) + object[".gogoproto.stdduration"] = message[".gogoproto.stdduration"]; + if (message[".gogoproto.wktpointer"] != null && message.hasOwnProperty(".gogoproto.wktpointer")) + object[".gogoproto.wktpointer"] = message[".gogoproto.wktpointer"]; + if (message[".gogoproto.castrepeated"] != null && message.hasOwnProperty(".gogoproto.castrepeated")) + object[".gogoproto.castrepeated"] = message[".gogoproto.castrepeated"]; + if (message[".cosmos_proto.accepts_interface"] != null && message.hasOwnProperty(".cosmos_proto.accepts_interface")) + object[".cosmos_proto.accepts_interface"] = message[".cosmos_proto.accepts_interface"]; + if (message[".cosmos_proto.scalar"] != null && message.hasOwnProperty(".cosmos_proto.scalar")) + object[".cosmos_proto.scalar"] = message[".cosmos_proto.scalar"]; + if (message[".amino.encoding"] != null && message.hasOwnProperty(".amino.encoding")) + object[".amino.encoding"] = message[".amino.encoding"]; + if (message[".amino.field_name"] != null && message.hasOwnProperty(".amino.field_name")) + object[".amino.field_name"] = message[".amino.field_name"]; + if (message[".amino.dont_omitempty"] != null && message.hasOwnProperty(".amino.dont_omitempty")) + object[".amino.dont_omitempty"] = message[".amino.dont_omitempty"]; return object; }; /** - * Converts this SourceCodeInfo to JSON. + * Converts this FieldOptions to JSON. * @function toJSON - * @memberof google.protobuf.SourceCodeInfo + * @memberof google.protobuf.FieldOptions * @instance * @returns {Object.} JSON object */ - SourceCodeInfo.prototype.toJSON = function toJSON() { + FieldOptions.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - SourceCodeInfo.Location = (function() { - - /** - * Properties of a Location. - * @memberof google.protobuf.SourceCodeInfo - * @interface ILocation - * @property {Array.|null} [path] Location path - * @property {Array.|null} [span] Location span - * @property {string|null} [leading_comments] Location leading_comments - * @property {string|null} [trailing_comments] Location trailing_comments - * @property {Array.|null} [leading_detached_comments] Location leading_detached_comments - */ - - /** - * Constructs a new Location. - * @memberof google.protobuf.SourceCodeInfo - * @classdesc Represents a Location. - * @implements ILocation - * @constructor - * @param {google.protobuf.SourceCodeInfo.ILocation=} [properties] Properties to set - */ - function Location(properties) { - this.path = []; - this.span = []; - this.leading_detached_comments = []; - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Location path. - * @member {Array.} path - * @memberof google.protobuf.SourceCodeInfo.Location - * @instance - */ - Location.prototype.path = $util.emptyArray; - - /** - * Location span. - * @member {Array.} span - * @memberof google.protobuf.SourceCodeInfo.Location - * @instance - */ - Location.prototype.span = $util.emptyArray; - - /** - * Location leading_comments. - * @member {string} leading_comments - * @memberof google.protobuf.SourceCodeInfo.Location - * @instance - */ - Location.prototype.leading_comments = ""; - - /** - * Location trailing_comments. - * @member {string} trailing_comments - * @memberof google.protobuf.SourceCodeInfo.Location - * @instance - */ - Location.prototype.trailing_comments = ""; - - /** - * Location leading_detached_comments. - * @member {Array.} leading_detached_comments - * @memberof google.protobuf.SourceCodeInfo.Location - * @instance - */ - Location.prototype.leading_detached_comments = $util.emptyArray; - - /** - * Encodes the specified Location message. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages. - * @function encode - * @memberof google.protobuf.SourceCodeInfo.Location - * @static - * @param {google.protobuf.SourceCodeInfo.ILocation} message Location message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Location.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.path != null && message.path.length) { - writer.uint32(/* id 1, wireType 2 =*/10).fork(); - for (let i = 0; i < message.path.length; ++i) - writer.int32(message.path[i]); - writer.ldelim(); - } - if (message.span != null && message.span.length) { - writer.uint32(/* id 2, wireType 2 =*/18).fork(); - for (let i = 0; i < message.span.length; ++i) - writer.int32(message.span[i]); - writer.ldelim(); - } - if (message.leading_comments != null && Object.hasOwnProperty.call(message, "leading_comments")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.leading_comments); - if (message.trailing_comments != null && Object.hasOwnProperty.call(message, "trailing_comments")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.trailing_comments); - if (message.leading_detached_comments != null && message.leading_detached_comments.length) - for (let i = 0; i < message.leading_detached_comments.length; ++i) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.leading_detached_comments[i]); - return writer; - }; - - /** - * Encodes the specified Location message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.SourceCodeInfo.Location - * @static - * @param {google.protobuf.SourceCodeInfo.ILocation} message Location message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Location.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a Location message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.SourceCodeInfo.Location - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.SourceCodeInfo.Location} Location - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Location.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.SourceCodeInfo.Location(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.path && message.path.length)) - message.path = []; - if ((tag & 7) === 2) { - let end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.path.push(reader.int32()); - } else - message.path.push(reader.int32()); - break; - case 2: - if (!(message.span && message.span.length)) - message.span = []; - if ((tag & 7) === 2) { - let end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.span.push(reader.int32()); - } else - message.span.push(reader.int32()); - break; - case 3: - message.leading_comments = reader.string(); - break; - case 4: - message.trailing_comments = reader.string(); - break; - case 6: - if (!(message.leading_detached_comments && message.leading_detached_comments.length)) - message.leading_detached_comments = []; - message.leading_detached_comments.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a Location message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.SourceCodeInfo.Location - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.SourceCodeInfo.Location} Location - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Location.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a Location message. - * @function verify - * @memberof google.protobuf.SourceCodeInfo.Location - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Location.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.path != null && message.hasOwnProperty("path")) { - if (!Array.isArray(message.path)) - return "path: array expected"; - for (let i = 0; i < message.path.length; ++i) - if (!$util.isInteger(message.path[i])) - return "path: integer[] expected"; - } - if (message.span != null && message.hasOwnProperty("span")) { - if (!Array.isArray(message.span)) - return "span: array expected"; - for (let i = 0; i < message.span.length; ++i) - if (!$util.isInteger(message.span[i])) - return "span: integer[] expected"; - } - if (message.leading_comments != null && message.hasOwnProperty("leading_comments")) - if (!$util.isString(message.leading_comments)) - return "leading_comments: string expected"; - if (message.trailing_comments != null && message.hasOwnProperty("trailing_comments")) - if (!$util.isString(message.trailing_comments)) - return "trailing_comments: string expected"; - if (message.leading_detached_comments != null && message.hasOwnProperty("leading_detached_comments")) { - if (!Array.isArray(message.leading_detached_comments)) - return "leading_detached_comments: array expected"; - for (let i = 0; i < message.leading_detached_comments.length; ++i) - if (!$util.isString(message.leading_detached_comments[i])) - return "leading_detached_comments: string[] expected"; - } - return null; - }; - - /** - * Creates a Location message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.SourceCodeInfo.Location - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.SourceCodeInfo.Location} Location - */ - Location.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.SourceCodeInfo.Location) - return object; - let message = new $root.google.protobuf.SourceCodeInfo.Location(); - if (object.path) { - if (!Array.isArray(object.path)) - throw TypeError(".google.protobuf.SourceCodeInfo.Location.path: array expected"); - message.path = []; - for (let i = 0; i < object.path.length; ++i) - message.path[i] = object.path[i] | 0; - } - if (object.span) { - if (!Array.isArray(object.span)) - throw TypeError(".google.protobuf.SourceCodeInfo.Location.span: array expected"); - message.span = []; - for (let i = 0; i < object.span.length; ++i) - message.span[i] = object.span[i] | 0; - } - if (object.leading_comments != null) - message.leading_comments = String(object.leading_comments); - if (object.trailing_comments != null) - message.trailing_comments = String(object.trailing_comments); - if (object.leading_detached_comments) { - if (!Array.isArray(object.leading_detached_comments)) - throw TypeError(".google.protobuf.SourceCodeInfo.Location.leading_detached_comments: array expected"); - message.leading_detached_comments = []; - for (let i = 0; i < object.leading_detached_comments.length; ++i) - message.leading_detached_comments[i] = String(object.leading_detached_comments[i]); - } - return message; - }; - - /** - * Creates a plain object from a Location message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.SourceCodeInfo.Location - * @static - * @param {google.protobuf.SourceCodeInfo.Location} message Location - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Location.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.arrays || options.defaults) { - object.path = []; - object.span = []; - object.leading_detached_comments = []; - } - if (options.defaults) { - object.leading_comments = ""; - object.trailing_comments = ""; - } - if (message.path && message.path.length) { - object.path = []; - for (let j = 0; j < message.path.length; ++j) - object.path[j] = message.path[j]; - } - if (message.span && message.span.length) { - object.span = []; - for (let j = 0; j < message.span.length; ++j) - object.span[j] = message.span[j]; - } - if (message.leading_comments != null && message.hasOwnProperty("leading_comments")) - object.leading_comments = message.leading_comments; - if (message.trailing_comments != null && message.hasOwnProperty("trailing_comments")) - object.trailing_comments = message.trailing_comments; - if (message.leading_detached_comments && message.leading_detached_comments.length) { - object.leading_detached_comments = []; - for (let j = 0; j < message.leading_detached_comments.length; ++j) - object.leading_detached_comments[j] = message.leading_detached_comments[j]; - } - return object; - }; - - /** - * Converts this Location to JSON. - * @function toJSON - * @memberof google.protobuf.SourceCodeInfo.Location - * @instance - * @returns {Object.} JSON object - */ - Location.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * CType enum. + * @name google.protobuf.FieldOptions.CType + * @enum {number} + * @property {number} STRING=0 STRING value + * @property {number} CORD=1 CORD value + * @property {number} STRING_PIECE=2 STRING_PIECE value + */ + FieldOptions.CType = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "STRING"] = 0; + values[valuesById[1] = "CORD"] = 1; + values[valuesById[2] = "STRING_PIECE"] = 2; + return values; + })(); - return Location; + /** + * JSType enum. + * @name google.protobuf.FieldOptions.JSType + * @enum {number} + * @property {number} JS_NORMAL=0 JS_NORMAL value + * @property {number} JS_STRING=1 JS_STRING value + * @property {number} JS_NUMBER=2 JS_NUMBER value + */ + FieldOptions.JSType = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "JS_NORMAL"] = 0; + values[valuesById[1] = "JS_STRING"] = 1; + values[valuesById[2] = "JS_NUMBER"] = 2; + return values; })(); - return SourceCodeInfo; + return FieldOptions; })(); - protobuf.GeneratedCodeInfo = (function() { + protobuf.OneofOptions = (function() { /** - * Properties of a GeneratedCodeInfo. + * Properties of an OneofOptions. * @memberof google.protobuf - * @interface IGeneratedCodeInfo - * @property {Array.|null} [annotation] GeneratedCodeInfo annotation + * @interface IOneofOptions + * @property {Array.|null} [uninterpreted_option] OneofOptions uninterpreted_option */ /** - * Constructs a new GeneratedCodeInfo. + * Constructs a new OneofOptions. * @memberof google.protobuf - * @classdesc Represents a GeneratedCodeInfo. - * @implements IGeneratedCodeInfo + * @classdesc Represents an OneofOptions. + * @implements IOneofOptions * @constructor - * @param {google.protobuf.IGeneratedCodeInfo=} [properties] Properties to set + * @param {google.protobuf.IOneofOptions=} [properties] Properties to set */ - function GeneratedCodeInfo(properties) { - this.annotation = []; + function OneofOptions(properties) { + this.uninterpreted_option = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -16221,66 +22425,66 @@ export const google = $root.google = (() => { } /** - * GeneratedCodeInfo annotation. - * @member {Array.} annotation - * @memberof google.protobuf.GeneratedCodeInfo + * OneofOptions uninterpreted_option. + * @member {Array.} uninterpreted_option + * @memberof google.protobuf.OneofOptions * @instance */ - GeneratedCodeInfo.prototype.annotation = $util.emptyArray; + OneofOptions.prototype.uninterpreted_option = $util.emptyArray; /** - * Encodes the specified GeneratedCodeInfo message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages. + * Encodes the specified OneofOptions message. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages. * @function encode - * @memberof google.protobuf.GeneratedCodeInfo + * @memberof google.protobuf.OneofOptions * @static - * @param {google.protobuf.IGeneratedCodeInfo} message GeneratedCodeInfo message or plain object to encode + * @param {google.protobuf.IOneofOptions} message OneofOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GeneratedCodeInfo.encode = function encode(message, writer) { + OneofOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.annotation != null && message.annotation.length) - for (let i = 0; i < message.annotation.length; ++i) - $root.google.protobuf.GeneratedCodeInfo.Annotation.encode(message.annotation[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.uninterpreted_option != null && message.uninterpreted_option.length) + for (let i = 0; i < message.uninterpreted_option.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpreted_option[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); return writer; }; /** - * Encodes the specified GeneratedCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages. + * Encodes the specified OneofOptions message, length delimited. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages. * @function encodeDelimited - * @memberof google.protobuf.GeneratedCodeInfo + * @memberof google.protobuf.OneofOptions * @static - * @param {google.protobuf.IGeneratedCodeInfo} message GeneratedCodeInfo message or plain object to encode + * @param {google.protobuf.IOneofOptions} message OneofOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GeneratedCodeInfo.encodeDelimited = function encodeDelimited(message, writer) { + OneofOptions.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GeneratedCodeInfo message from the specified reader or buffer. + * Decodes an OneofOptions message from the specified reader or buffer. * @function decode - * @memberof google.protobuf.GeneratedCodeInfo + * @memberof google.protobuf.OneofOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.GeneratedCodeInfo} GeneratedCodeInfo + * @returns {google.protobuf.OneofOptions} OneofOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GeneratedCodeInfo.decode = function decode(reader, length) { + OneofOptions.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.GeneratedCodeInfo(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.OneofOptions(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: - if (!(message.annotation && message.annotation.length)) - message.annotation = []; - message.annotation.push($root.google.protobuf.GeneratedCodeInfo.Annotation.decode(reader, reader.uint32())); + case 999: + if (!(message.uninterpreted_option && message.uninterpreted_option.length)) + message.uninterpreted_option = []; + message.uninterpreted_option.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -16291,392 +22495,479 @@ export const google = $root.google = (() => { }; /** - * Decodes a GeneratedCodeInfo message from the specified reader or buffer, length delimited. + * Decodes an OneofOptions message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.protobuf.GeneratedCodeInfo + * @memberof google.protobuf.OneofOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.GeneratedCodeInfo} GeneratedCodeInfo + * @returns {google.protobuf.OneofOptions} OneofOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GeneratedCodeInfo.decodeDelimited = function decodeDelimited(reader) { + OneofOptions.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GeneratedCodeInfo message. + * Verifies an OneofOptions message. * @function verify - * @memberof google.protobuf.GeneratedCodeInfo + * @memberof google.protobuf.OneofOptions * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GeneratedCodeInfo.verify = function verify(message) { + OneofOptions.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.annotation != null && message.hasOwnProperty("annotation")) { - if (!Array.isArray(message.annotation)) - return "annotation: array expected"; - for (let i = 0; i < message.annotation.length; ++i) { - let error = $root.google.protobuf.GeneratedCodeInfo.Annotation.verify(message.annotation[i]); + if (message.uninterpreted_option != null && message.hasOwnProperty("uninterpreted_option")) { + if (!Array.isArray(message.uninterpreted_option)) + return "uninterpreted_option: array expected"; + for (let i = 0; i < message.uninterpreted_option.length; ++i) { + let error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpreted_option[i]); if (error) - return "annotation." + error; + return "uninterpreted_option." + error; } } return null; }; /** - * Creates a GeneratedCodeInfo message from a plain object. Also converts values to their respective internal types. + * Creates an OneofOptions message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.protobuf.GeneratedCodeInfo + * @memberof google.protobuf.OneofOptions * @static * @param {Object.} object Plain object - * @returns {google.protobuf.GeneratedCodeInfo} GeneratedCodeInfo + * @returns {google.protobuf.OneofOptions} OneofOptions */ - GeneratedCodeInfo.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.GeneratedCodeInfo) + OneofOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.OneofOptions) return object; - let message = new $root.google.protobuf.GeneratedCodeInfo(); - if (object.annotation) { - if (!Array.isArray(object.annotation)) - throw TypeError(".google.protobuf.GeneratedCodeInfo.annotation: array expected"); - message.annotation = []; - for (let i = 0; i < object.annotation.length; ++i) { - if (typeof object.annotation[i] !== "object") - throw TypeError(".google.protobuf.GeneratedCodeInfo.annotation: object expected"); - message.annotation[i] = $root.google.protobuf.GeneratedCodeInfo.Annotation.fromObject(object.annotation[i]); + let message = new $root.google.protobuf.OneofOptions(); + if (object.uninterpreted_option) { + if (!Array.isArray(object.uninterpreted_option)) + throw TypeError(".google.protobuf.OneofOptions.uninterpreted_option: array expected"); + message.uninterpreted_option = []; + for (let i = 0; i < object.uninterpreted_option.length; ++i) { + if (typeof object.uninterpreted_option[i] !== "object") + throw TypeError(".google.protobuf.OneofOptions.uninterpreted_option: object expected"); + message.uninterpreted_option[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpreted_option[i]); } } return message; }; /** - * Creates a plain object from a GeneratedCodeInfo message. Also converts values to other types if specified. + * Creates a plain object from an OneofOptions message. Also converts values to other types if specified. * @function toObject - * @memberof google.protobuf.GeneratedCodeInfo + * @memberof google.protobuf.OneofOptions * @static - * @param {google.protobuf.GeneratedCodeInfo} message GeneratedCodeInfo + * @param {google.protobuf.OneofOptions} message OneofOptions * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GeneratedCodeInfo.toObject = function toObject(message, options) { + OneofOptions.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) - object.annotation = []; - if (message.annotation && message.annotation.length) { - object.annotation = []; - for (let j = 0; j < message.annotation.length; ++j) - object.annotation[j] = $root.google.protobuf.GeneratedCodeInfo.Annotation.toObject(message.annotation[j], options); + object.uninterpreted_option = []; + if (message.uninterpreted_option && message.uninterpreted_option.length) { + object.uninterpreted_option = []; + for (let j = 0; j < message.uninterpreted_option.length; ++j) + object.uninterpreted_option[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpreted_option[j], options); } return object; }; /** - * Converts this GeneratedCodeInfo to JSON. + * Converts this OneofOptions to JSON. * @function toJSON - * @memberof google.protobuf.GeneratedCodeInfo + * @memberof google.protobuf.OneofOptions * @instance * @returns {Object.} JSON object */ - GeneratedCodeInfo.prototype.toJSON = function toJSON() { + OneofOptions.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - GeneratedCodeInfo.Annotation = (function() { + return OneofOptions; + })(); - /** - * Properties of an Annotation. - * @memberof google.protobuf.GeneratedCodeInfo - * @interface IAnnotation - * @property {Array.|null} [path] Annotation path - * @property {string|null} [source_file] Annotation source_file - * @property {number|null} [begin] Annotation begin - * @property {number|null} [end] Annotation end - */ + protobuf.EnumOptions = (function() { - /** - * Constructs a new Annotation. - * @memberof google.protobuf.GeneratedCodeInfo - * @classdesc Represents an Annotation. - * @implements IAnnotation - * @constructor - * @param {google.protobuf.GeneratedCodeInfo.IAnnotation=} [properties] Properties to set - */ - function Annotation(properties) { - this.path = []; - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Properties of an EnumOptions. + * @memberof google.protobuf + * @interface IEnumOptions + * @property {boolean|null} [allow_alias] EnumOptions allow_alias + * @property {boolean|null} [deprecated] EnumOptions deprecated + * @property {Array.|null} [uninterpreted_option] EnumOptions uninterpreted_option + * @property {boolean|null} [".gogoproto.goproto_enum_prefix"] EnumOptions .gogoproto.goproto_enum_prefix + * @property {boolean|null} [".gogoproto.goproto_enum_stringer"] EnumOptions .gogoproto.goproto_enum_stringer + * @property {boolean|null} [".gogoproto.enum_stringer"] EnumOptions .gogoproto.enum_stringer + * @property {string|null} [".gogoproto.enum_customname"] EnumOptions .gogoproto.enum_customname + * @property {boolean|null} [".gogoproto.enumdecl"] EnumOptions .gogoproto.enumdecl + */ - /** - * Annotation path. - * @member {Array.} path - * @memberof google.protobuf.GeneratedCodeInfo.Annotation - * @instance - */ - Annotation.prototype.path = $util.emptyArray; + /** + * Constructs a new EnumOptions. + * @memberof google.protobuf + * @classdesc Represents an EnumOptions. + * @implements IEnumOptions + * @constructor + * @param {google.protobuf.IEnumOptions=} [properties] Properties to set + */ + function EnumOptions(properties) { + this.uninterpreted_option = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Annotation source_file. - * @member {string} source_file - * @memberof google.protobuf.GeneratedCodeInfo.Annotation - * @instance - */ - Annotation.prototype.source_file = ""; + /** + * EnumOptions allow_alias. + * @member {boolean} allow_alias + * @memberof google.protobuf.EnumOptions + * @instance + */ + EnumOptions.prototype.allow_alias = false; - /** - * Annotation begin. - * @member {number} begin - * @memberof google.protobuf.GeneratedCodeInfo.Annotation - * @instance - */ - Annotation.prototype.begin = 0; + /** + * EnumOptions deprecated. + * @member {boolean} deprecated + * @memberof google.protobuf.EnumOptions + * @instance + */ + EnumOptions.prototype.deprecated = false; - /** - * Annotation end. - * @member {number} end - * @memberof google.protobuf.GeneratedCodeInfo.Annotation - * @instance - */ - Annotation.prototype.end = 0; + /** + * EnumOptions uninterpreted_option. + * @member {Array.} uninterpreted_option + * @memberof google.protobuf.EnumOptions + * @instance + */ + EnumOptions.prototype.uninterpreted_option = $util.emptyArray; - /** - * Encodes the specified Annotation message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages. - * @function encode - * @memberof google.protobuf.GeneratedCodeInfo.Annotation - * @static - * @param {google.protobuf.GeneratedCodeInfo.IAnnotation} message Annotation message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Annotation.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.path != null && message.path.length) { - writer.uint32(/* id 1, wireType 2 =*/10).fork(); - for (let i = 0; i < message.path.length; ++i) - writer.int32(message.path[i]); - writer.ldelim(); - } - if (message.source_file != null && Object.hasOwnProperty.call(message, "source_file")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.source_file); - if (message.begin != null && Object.hasOwnProperty.call(message, "begin")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.begin); - if (message.end != null && Object.hasOwnProperty.call(message, "end")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.end); - return writer; - }; + /** + * EnumOptions .gogoproto.goproto_enum_prefix. + * @member {boolean} .gogoproto.goproto_enum_prefix + * @memberof google.protobuf.EnumOptions + * @instance + */ + EnumOptions.prototype[".gogoproto.goproto_enum_prefix"] = false; - /** - * Encodes the specified Annotation message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.GeneratedCodeInfo.Annotation - * @static - * @param {google.protobuf.GeneratedCodeInfo.IAnnotation} message Annotation message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Annotation.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * EnumOptions .gogoproto.goproto_enum_stringer. + * @member {boolean} .gogoproto.goproto_enum_stringer + * @memberof google.protobuf.EnumOptions + * @instance + */ + EnumOptions.prototype[".gogoproto.goproto_enum_stringer"] = false; - /** - * Decodes an Annotation message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.GeneratedCodeInfo.Annotation - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.GeneratedCodeInfo.Annotation} Annotation - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Annotation.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.GeneratedCodeInfo.Annotation(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.path && message.path.length)) - message.path = []; - if ((tag & 7) === 2) { - let end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.path.push(reader.int32()); - } else - message.path.push(reader.int32()); - break; - case 2: - message.source_file = reader.string(); - break; - case 3: - message.begin = reader.int32(); - break; - case 4: - message.end = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * EnumOptions .gogoproto.enum_stringer. + * @member {boolean} .gogoproto.enum_stringer + * @memberof google.protobuf.EnumOptions + * @instance + */ + EnumOptions.prototype[".gogoproto.enum_stringer"] = false; - /** - * Decodes an Annotation message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.GeneratedCodeInfo.Annotation - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.GeneratedCodeInfo.Annotation} Annotation - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Annotation.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * EnumOptions .gogoproto.enum_customname. + * @member {string} .gogoproto.enum_customname + * @memberof google.protobuf.EnumOptions + * @instance + */ + EnumOptions.prototype[".gogoproto.enum_customname"] = ""; - /** - * Verifies an Annotation message. - * @function verify - * @memberof google.protobuf.GeneratedCodeInfo.Annotation - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Annotation.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.path != null && message.hasOwnProperty("path")) { - if (!Array.isArray(message.path)) - return "path: array expected"; - for (let i = 0; i < message.path.length; ++i) - if (!$util.isInteger(message.path[i])) - return "path: integer[] expected"; - } - if (message.source_file != null && message.hasOwnProperty("source_file")) - if (!$util.isString(message.source_file)) - return "source_file: string expected"; - if (message.begin != null && message.hasOwnProperty("begin")) - if (!$util.isInteger(message.begin)) - return "begin: integer expected"; - if (message.end != null && message.hasOwnProperty("end")) - if (!$util.isInteger(message.end)) - return "end: integer expected"; - return null; - }; + /** + * EnumOptions .gogoproto.enumdecl. + * @member {boolean} .gogoproto.enumdecl + * @memberof google.protobuf.EnumOptions + * @instance + */ + EnumOptions.prototype[".gogoproto.enumdecl"] = false; - /** - * Creates an Annotation message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.GeneratedCodeInfo.Annotation - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.GeneratedCodeInfo.Annotation} Annotation - */ - Annotation.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.GeneratedCodeInfo.Annotation) - return object; - let message = new $root.google.protobuf.GeneratedCodeInfo.Annotation(); - if (object.path) { - if (!Array.isArray(object.path)) - throw TypeError(".google.protobuf.GeneratedCodeInfo.Annotation.path: array expected"); - message.path = []; - for (let i = 0; i < object.path.length; ++i) - message.path[i] = object.path[i] | 0; + /** + * Encodes the specified EnumOptions message. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages. + * @function encode + * @memberof google.protobuf.EnumOptions + * @static + * @param {google.protobuf.IEnumOptions} message EnumOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EnumOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.allow_alias != null && Object.hasOwnProperty.call(message, "allow_alias")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.allow_alias); + if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.deprecated); + if (message.uninterpreted_option != null && message.uninterpreted_option.length) + for (let i = 0; i < message.uninterpreted_option.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpreted_option[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + if (message[".gogoproto.goproto_enum_prefix"] != null && Object.hasOwnProperty.call(message, ".gogoproto.goproto_enum_prefix")) + writer.uint32(/* id 62001, wireType 0 =*/496008).bool(message[".gogoproto.goproto_enum_prefix"]); + if (message[".gogoproto.goproto_enum_stringer"] != null && Object.hasOwnProperty.call(message, ".gogoproto.goproto_enum_stringer")) + writer.uint32(/* id 62021, wireType 0 =*/496168).bool(message[".gogoproto.goproto_enum_stringer"]); + if (message[".gogoproto.enum_stringer"] != null && Object.hasOwnProperty.call(message, ".gogoproto.enum_stringer")) + writer.uint32(/* id 62022, wireType 0 =*/496176).bool(message[".gogoproto.enum_stringer"]); + if (message[".gogoproto.enum_customname"] != null && Object.hasOwnProperty.call(message, ".gogoproto.enum_customname")) + writer.uint32(/* id 62023, wireType 2 =*/496186).string(message[".gogoproto.enum_customname"]); + if (message[".gogoproto.enumdecl"] != null && Object.hasOwnProperty.call(message, ".gogoproto.enumdecl")) + writer.uint32(/* id 62024, wireType 0 =*/496192).bool(message[".gogoproto.enumdecl"]); + return writer; + }; + + /** + * Encodes the specified EnumOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.EnumOptions + * @static + * @param {google.protobuf.IEnumOptions} message EnumOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EnumOptions.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an EnumOptions message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.EnumOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.EnumOptions} EnumOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EnumOptions.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.EnumOptions(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 2: + message.allow_alias = reader.bool(); + break; + case 3: + message.deprecated = reader.bool(); + break; + case 999: + if (!(message.uninterpreted_option && message.uninterpreted_option.length)) + message.uninterpreted_option = []; + message.uninterpreted_option.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + case 62001: + message[".gogoproto.goproto_enum_prefix"] = reader.bool(); + break; + case 62021: + message[".gogoproto.goproto_enum_stringer"] = reader.bool(); + break; + case 62022: + message[".gogoproto.enum_stringer"] = reader.bool(); + break; + case 62023: + message[".gogoproto.enum_customname"] = reader.string(); + break; + case 62024: + message[".gogoproto.enumdecl"] = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; } - if (object.source_file != null) - message.source_file = String(object.source_file); - if (object.begin != null) - message.begin = object.begin | 0; - if (object.end != null) - message.end = object.end | 0; - return message; - }; + } + return message; + }; - /** - * Creates a plain object from an Annotation message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.GeneratedCodeInfo.Annotation - * @static - * @param {google.protobuf.GeneratedCodeInfo.Annotation} message Annotation - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Annotation.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.arrays || options.defaults) - object.path = []; - if (options.defaults) { - object.source_file = ""; - object.begin = 0; - object.end = 0; - } - if (message.path && message.path.length) { - object.path = []; - for (let j = 0; j < message.path.length; ++j) - object.path[j] = message.path[j]; + /** + * Decodes an EnumOptions message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.EnumOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.EnumOptions} EnumOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EnumOptions.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an EnumOptions message. + * @function verify + * @memberof google.protobuf.EnumOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + EnumOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.allow_alias != null && message.hasOwnProperty("allow_alias")) + if (typeof message.allow_alias !== "boolean") + return "allow_alias: boolean expected"; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (typeof message.deprecated !== "boolean") + return "deprecated: boolean expected"; + if (message.uninterpreted_option != null && message.hasOwnProperty("uninterpreted_option")) { + if (!Array.isArray(message.uninterpreted_option)) + return "uninterpreted_option: array expected"; + for (let i = 0; i < message.uninterpreted_option.length; ++i) { + let error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpreted_option[i]); + if (error) + return "uninterpreted_option." + error; } - if (message.source_file != null && message.hasOwnProperty("source_file")) - object.source_file = message.source_file; - if (message.begin != null && message.hasOwnProperty("begin")) - object.begin = message.begin; - if (message.end != null && message.hasOwnProperty("end")) - object.end = message.end; + } + if (message[".gogoproto.goproto_enum_prefix"] != null && message.hasOwnProperty(".gogoproto.goproto_enum_prefix")) + if (typeof message[".gogoproto.goproto_enum_prefix"] !== "boolean") + return ".gogoproto.goproto_enum_prefix: boolean expected"; + if (message[".gogoproto.goproto_enum_stringer"] != null && message.hasOwnProperty(".gogoproto.goproto_enum_stringer")) + if (typeof message[".gogoproto.goproto_enum_stringer"] !== "boolean") + return ".gogoproto.goproto_enum_stringer: boolean expected"; + if (message[".gogoproto.enum_stringer"] != null && message.hasOwnProperty(".gogoproto.enum_stringer")) + if (typeof message[".gogoproto.enum_stringer"] !== "boolean") + return ".gogoproto.enum_stringer: boolean expected"; + if (message[".gogoproto.enum_customname"] != null && message.hasOwnProperty(".gogoproto.enum_customname")) + if (!$util.isString(message[".gogoproto.enum_customname"])) + return ".gogoproto.enum_customname: string expected"; + if (message[".gogoproto.enumdecl"] != null && message.hasOwnProperty(".gogoproto.enumdecl")) + if (typeof message[".gogoproto.enumdecl"] !== "boolean") + return ".gogoproto.enumdecl: boolean expected"; + return null; + }; + + /** + * Creates an EnumOptions message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.EnumOptions + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.EnumOptions} EnumOptions + */ + EnumOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.EnumOptions) return object; - }; + let message = new $root.google.protobuf.EnumOptions(); + if (object.allow_alias != null) + message.allow_alias = Boolean(object.allow_alias); + if (object.deprecated != null) + message.deprecated = Boolean(object.deprecated); + if (object.uninterpreted_option) { + if (!Array.isArray(object.uninterpreted_option)) + throw TypeError(".google.protobuf.EnumOptions.uninterpreted_option: array expected"); + message.uninterpreted_option = []; + for (let i = 0; i < object.uninterpreted_option.length; ++i) { + if (typeof object.uninterpreted_option[i] !== "object") + throw TypeError(".google.protobuf.EnumOptions.uninterpreted_option: object expected"); + message.uninterpreted_option[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpreted_option[i]); + } + } + if (object[".gogoproto.goproto_enum_prefix"] != null) + message[".gogoproto.goproto_enum_prefix"] = Boolean(object[".gogoproto.goproto_enum_prefix"]); + if (object[".gogoproto.goproto_enum_stringer"] != null) + message[".gogoproto.goproto_enum_stringer"] = Boolean(object[".gogoproto.goproto_enum_stringer"]); + if (object[".gogoproto.enum_stringer"] != null) + message[".gogoproto.enum_stringer"] = Boolean(object[".gogoproto.enum_stringer"]); + if (object[".gogoproto.enum_customname"] != null) + message[".gogoproto.enum_customname"] = String(object[".gogoproto.enum_customname"]); + if (object[".gogoproto.enumdecl"] != null) + message[".gogoproto.enumdecl"] = Boolean(object[".gogoproto.enumdecl"]); + return message; + }; - /** - * Converts this Annotation to JSON. - * @function toJSON - * @memberof google.protobuf.GeneratedCodeInfo.Annotation - * @instance - * @returns {Object.} JSON object - */ - Annotation.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from an EnumOptions message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.EnumOptions + * @static + * @param {google.protobuf.EnumOptions} message EnumOptions + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + EnumOptions.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) + object.uninterpreted_option = []; + if (options.defaults) { + object.allow_alias = false; + object.deprecated = false; + object[".gogoproto.goproto_enum_prefix"] = false; + object[".gogoproto.goproto_enum_stringer"] = false; + object[".gogoproto.enum_stringer"] = false; + object[".gogoproto.enum_customname"] = ""; + object[".gogoproto.enumdecl"] = false; + } + if (message.allow_alias != null && message.hasOwnProperty("allow_alias")) + object.allow_alias = message.allow_alias; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + object.deprecated = message.deprecated; + if (message.uninterpreted_option && message.uninterpreted_option.length) { + object.uninterpreted_option = []; + for (let j = 0; j < message.uninterpreted_option.length; ++j) + object.uninterpreted_option[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpreted_option[j], options); + } + if (message[".gogoproto.goproto_enum_prefix"] != null && message.hasOwnProperty(".gogoproto.goproto_enum_prefix")) + object[".gogoproto.goproto_enum_prefix"] = message[".gogoproto.goproto_enum_prefix"]; + if (message[".gogoproto.goproto_enum_stringer"] != null && message.hasOwnProperty(".gogoproto.goproto_enum_stringer")) + object[".gogoproto.goproto_enum_stringer"] = message[".gogoproto.goproto_enum_stringer"]; + if (message[".gogoproto.enum_stringer"] != null && message.hasOwnProperty(".gogoproto.enum_stringer")) + object[".gogoproto.enum_stringer"] = message[".gogoproto.enum_stringer"]; + if (message[".gogoproto.enum_customname"] != null && message.hasOwnProperty(".gogoproto.enum_customname")) + object[".gogoproto.enum_customname"] = message[".gogoproto.enum_customname"]; + if (message[".gogoproto.enumdecl"] != null && message.hasOwnProperty(".gogoproto.enumdecl")) + object[".gogoproto.enumdecl"] = message[".gogoproto.enumdecl"]; + return object; + }; - return Annotation; - })(); + /** + * Converts this EnumOptions to JSON. + * @function toJSON + * @memberof google.protobuf.EnumOptions + * @instance + * @returns {Object.} JSON object + */ + EnumOptions.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return GeneratedCodeInfo; + return EnumOptions; })(); - protobuf.Any = (function() { + protobuf.EnumValueOptions = (function() { /** - * Properties of an Any. + * Properties of an EnumValueOptions. * @memberof google.protobuf - * @interface IAny - * @property {string|null} [type_url] Any type_url - * @property {Uint8Array|null} [value] Any value + * @interface IEnumValueOptions + * @property {boolean|null} [deprecated] EnumValueOptions deprecated + * @property {Array.|null} [uninterpreted_option] EnumValueOptions uninterpreted_option + * @property {string|null} [".gogoproto.enumvalue_customname"] EnumValueOptions .gogoproto.enumvalue_customname */ /** - * Constructs a new Any. + * Constructs a new EnumValueOptions. * @memberof google.protobuf - * @classdesc Represents an Any. - * @implements IAny + * @classdesc Represents an EnumValueOptions. + * @implements IEnumValueOptions * @constructor - * @param {google.protobuf.IAny=} [properties] Properties to set + * @param {google.protobuf.IEnumValueOptions=} [properties] Properties to set */ - function Any(properties) { + function EnumValueOptions(properties) { + this.uninterpreted_option = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -16684,76 +22975,92 @@ export const google = $root.google = (() => { } /** - * Any type_url. - * @member {string} type_url - * @memberof google.protobuf.Any + * EnumValueOptions deprecated. + * @member {boolean} deprecated + * @memberof google.protobuf.EnumValueOptions * @instance */ - Any.prototype.type_url = ""; + EnumValueOptions.prototype.deprecated = false; /** - * Any value. - * @member {Uint8Array} value - * @memberof google.protobuf.Any + * EnumValueOptions uninterpreted_option. + * @member {Array.} uninterpreted_option + * @memberof google.protobuf.EnumValueOptions * @instance */ - Any.prototype.value = $util.newBuffer([]); + EnumValueOptions.prototype.uninterpreted_option = $util.emptyArray; /** - * Encodes the specified Any message. Does not implicitly {@link google.protobuf.Any.verify|verify} messages. + * EnumValueOptions .gogoproto.enumvalue_customname. + * @member {string} .gogoproto.enumvalue_customname + * @memberof google.protobuf.EnumValueOptions + * @instance + */ + EnumValueOptions.prototype[".gogoproto.enumvalue_customname"] = ""; + + /** + * Encodes the specified EnumValueOptions message. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages. * @function encode - * @memberof google.protobuf.Any + * @memberof google.protobuf.EnumValueOptions * @static - * @param {google.protobuf.IAny} message Any message or plain object to encode + * @param {google.protobuf.IEnumValueOptions} message EnumValueOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Any.encode = function encode(message, writer) { + EnumValueOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.type_url != null && Object.hasOwnProperty.call(message, "type_url")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.type_url); - if (message.value != null && Object.hasOwnProperty.call(message, "value")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.value); + if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.deprecated); + if (message.uninterpreted_option != null && message.uninterpreted_option.length) + for (let i = 0; i < message.uninterpreted_option.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpreted_option[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + if (message[".gogoproto.enumvalue_customname"] != null && Object.hasOwnProperty.call(message, ".gogoproto.enumvalue_customname")) + writer.uint32(/* id 66001, wireType 2 =*/528010).string(message[".gogoproto.enumvalue_customname"]); return writer; }; /** - * Encodes the specified Any message, length delimited. Does not implicitly {@link google.protobuf.Any.verify|verify} messages. + * Encodes the specified EnumValueOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages. * @function encodeDelimited - * @memberof google.protobuf.Any + * @memberof google.protobuf.EnumValueOptions * @static - * @param {google.protobuf.IAny} message Any message or plain object to encode + * @param {google.protobuf.IEnumValueOptions} message EnumValueOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Any.encodeDelimited = function encodeDelimited(message, writer) { + EnumValueOptions.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an Any message from the specified reader or buffer. + * Decodes an EnumValueOptions message from the specified reader or buffer. * @function decode - * @memberof google.protobuf.Any + * @memberof google.protobuf.EnumValueOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.Any} Any + * @returns {google.protobuf.EnumValueOptions} EnumValueOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Any.decode = function decode(reader, length) { + EnumValueOptions.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Any(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.EnumValueOptions(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.type_url = reader.string(); + message.deprecated = reader.bool(); break; - case 2: - message.value = reader.bytes(); + case 999: + if (!(message.uninterpreted_option && message.uninterpreted_option.length)) + message.uninterpreted_option = []; + message.uninterpreted_option.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + case 66001: + message[".gogoproto.enumvalue_customname"] = reader.string(); break; default: reader.skipType(tag & 7); @@ -16764,126 +23071,144 @@ export const google = $root.google = (() => { }; /** - * Decodes an Any message from the specified reader or buffer, length delimited. + * Decodes an EnumValueOptions message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.protobuf.Any + * @memberof google.protobuf.EnumValueOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.Any} Any + * @returns {google.protobuf.EnumValueOptions} EnumValueOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Any.decodeDelimited = function decodeDelimited(reader) { + EnumValueOptions.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an Any message. + * Verifies an EnumValueOptions message. * @function verify - * @memberof google.protobuf.Any + * @memberof google.protobuf.EnumValueOptions * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Any.verify = function verify(message) { + EnumValueOptions.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.type_url != null && message.hasOwnProperty("type_url")) - if (!$util.isString(message.type_url)) - return "type_url: string expected"; - if (message.value != null && message.hasOwnProperty("value")) - if (!(message.value && typeof message.value.length === "number" || $util.isString(message.value))) - return "value: buffer expected"; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (typeof message.deprecated !== "boolean") + return "deprecated: boolean expected"; + if (message.uninterpreted_option != null && message.hasOwnProperty("uninterpreted_option")) { + if (!Array.isArray(message.uninterpreted_option)) + return "uninterpreted_option: array expected"; + for (let i = 0; i < message.uninterpreted_option.length; ++i) { + let error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpreted_option[i]); + if (error) + return "uninterpreted_option." + error; + } + } + if (message[".gogoproto.enumvalue_customname"] != null && message.hasOwnProperty(".gogoproto.enumvalue_customname")) + if (!$util.isString(message[".gogoproto.enumvalue_customname"])) + return ".gogoproto.enumvalue_customname: string expected"; return null; }; /** - * Creates an Any message from a plain object. Also converts values to their respective internal types. + * Creates an EnumValueOptions message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.protobuf.Any + * @memberof google.protobuf.EnumValueOptions * @static * @param {Object.} object Plain object - * @returns {google.protobuf.Any} Any + * @returns {google.protobuf.EnumValueOptions} EnumValueOptions */ - Any.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.Any) + EnumValueOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.EnumValueOptions) return object; - let message = new $root.google.protobuf.Any(); - if (object.type_url != null) - message.type_url = String(object.type_url); - if (object.value != null) - if (typeof object.value === "string") - $util.base64.decode(object.value, message.value = $util.newBuffer($util.base64.length(object.value)), 0); - else if (object.value.length) - message.value = object.value; + let message = new $root.google.protobuf.EnumValueOptions(); + if (object.deprecated != null) + message.deprecated = Boolean(object.deprecated); + if (object.uninterpreted_option) { + if (!Array.isArray(object.uninterpreted_option)) + throw TypeError(".google.protobuf.EnumValueOptions.uninterpreted_option: array expected"); + message.uninterpreted_option = []; + for (let i = 0; i < object.uninterpreted_option.length; ++i) { + if (typeof object.uninterpreted_option[i] !== "object") + throw TypeError(".google.protobuf.EnumValueOptions.uninterpreted_option: object expected"); + message.uninterpreted_option[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpreted_option[i]); + } + } + if (object[".gogoproto.enumvalue_customname"] != null) + message[".gogoproto.enumvalue_customname"] = String(object[".gogoproto.enumvalue_customname"]); return message; }; /** - * Creates a plain object from an Any message. Also converts values to other types if specified. + * Creates a plain object from an EnumValueOptions message. Also converts values to other types if specified. * @function toObject - * @memberof google.protobuf.Any + * @memberof google.protobuf.EnumValueOptions * @static - * @param {google.protobuf.Any} message Any + * @param {google.protobuf.EnumValueOptions} message EnumValueOptions * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Any.toObject = function toObject(message, options) { + EnumValueOptions.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; + if (options.arrays || options.defaults) + object.uninterpreted_option = []; if (options.defaults) { - object.type_url = ""; - if (options.bytes === String) - object.value = ""; - else { - object.value = []; - if (options.bytes !== Array) - object.value = $util.newBuffer(object.value); - } + object.deprecated = false; + object[".gogoproto.enumvalue_customname"] = ""; } - if (message.type_url != null && message.hasOwnProperty("type_url")) - object.type_url = message.type_url; - if (message.value != null && message.hasOwnProperty("value")) - object.value = options.bytes === String ? $util.base64.encode(message.value, 0, message.value.length) : options.bytes === Array ? Array.prototype.slice.call(message.value) : message.value; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + object.deprecated = message.deprecated; + if (message.uninterpreted_option && message.uninterpreted_option.length) { + object.uninterpreted_option = []; + for (let j = 0; j < message.uninterpreted_option.length; ++j) + object.uninterpreted_option[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpreted_option[j], options); + } + if (message[".gogoproto.enumvalue_customname"] != null && message.hasOwnProperty(".gogoproto.enumvalue_customname")) + object[".gogoproto.enumvalue_customname"] = message[".gogoproto.enumvalue_customname"]; return object; }; /** - * Converts this Any to JSON. + * Converts this EnumValueOptions to JSON. * @function toJSON - * @memberof google.protobuf.Any + * @memberof google.protobuf.EnumValueOptions * @instance * @returns {Object.} JSON object */ - Any.prototype.toJSON = function toJSON() { + EnumValueOptions.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Any; + return EnumValueOptions; })(); - protobuf.Timestamp = (function() { + protobuf.ServiceOptions = (function() { /** - * Properties of a Timestamp. + * Properties of a ServiceOptions. * @memberof google.protobuf - * @interface ITimestamp - * @property {Long|null} [seconds] Timestamp seconds - * @property {number|null} [nanos] Timestamp nanos + * @interface IServiceOptions + * @property {boolean|null} [deprecated] ServiceOptions deprecated + * @property {Array.|null} [uninterpreted_option] ServiceOptions uninterpreted_option */ /** - * Constructs a new Timestamp. + * Constructs a new ServiceOptions. * @memberof google.protobuf - * @classdesc Represents a Timestamp. - * @implements ITimestamp + * @classdesc Represents a ServiceOptions. + * @implements IServiceOptions * @constructor - * @param {google.protobuf.ITimestamp=} [properties] Properties to set + * @param {google.protobuf.IServiceOptions=} [properties] Properties to set */ - function Timestamp(properties) { + function ServiceOptions(properties) { + this.uninterpreted_option = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -16891,76 +23216,79 @@ export const google = $root.google = (() => { } /** - * Timestamp seconds. - * @member {Long} seconds - * @memberof google.protobuf.Timestamp + * ServiceOptions deprecated. + * @member {boolean} deprecated + * @memberof google.protobuf.ServiceOptions * @instance */ - Timestamp.prototype.seconds = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + ServiceOptions.prototype.deprecated = false; /** - * Timestamp nanos. - * @member {number} nanos - * @memberof google.protobuf.Timestamp + * ServiceOptions uninterpreted_option. + * @member {Array.} uninterpreted_option + * @memberof google.protobuf.ServiceOptions * @instance */ - Timestamp.prototype.nanos = 0; + ServiceOptions.prototype.uninterpreted_option = $util.emptyArray; /** - * Encodes the specified Timestamp message. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages. + * Encodes the specified ServiceOptions message. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages. * @function encode - * @memberof google.protobuf.Timestamp + * @memberof google.protobuf.ServiceOptions * @static - * @param {google.protobuf.ITimestamp} message Timestamp message or plain object to encode + * @param {google.protobuf.IServiceOptions} message ServiceOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Timestamp.encode = function encode(message, writer) { + ServiceOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.seconds != null && Object.hasOwnProperty.call(message, "seconds")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.seconds); - if (message.nanos != null && Object.hasOwnProperty.call(message, "nanos")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.nanos); + if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) + writer.uint32(/* id 33, wireType 0 =*/264).bool(message.deprecated); + if (message.uninterpreted_option != null && message.uninterpreted_option.length) + for (let i = 0; i < message.uninterpreted_option.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpreted_option[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); return writer; }; /** - * Encodes the specified Timestamp message, length delimited. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages. + * Encodes the specified ServiceOptions message, length delimited. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages. * @function encodeDelimited - * @memberof google.protobuf.Timestamp + * @memberof google.protobuf.ServiceOptions * @static - * @param {google.protobuf.ITimestamp} message Timestamp message or plain object to encode + * @param {google.protobuf.IServiceOptions} message ServiceOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Timestamp.encodeDelimited = function encodeDelimited(message, writer) { + ServiceOptions.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Timestamp message from the specified reader or buffer. + * Decodes a ServiceOptions message from the specified reader or buffer. * @function decode - * @memberof google.protobuf.Timestamp + * @memberof google.protobuf.ServiceOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.Timestamp} Timestamp + * @returns {google.protobuf.ServiceOptions} ServiceOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Timestamp.decode = function decode(reader, length) { + ServiceOptions.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Timestamp(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.ServiceOptions(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.seconds = reader.int64(); + case 33: + message.deprecated = reader.bool(); break; - case 2: - message.nanos = reader.int32(); + case 999: + if (!(message.uninterpreted_option && message.uninterpreted_option.length)) + message.uninterpreted_option = []; + message.uninterpreted_option.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -16971,131 +23299,136 @@ export const google = $root.google = (() => { }; /** - * Decodes a Timestamp message from the specified reader or buffer, length delimited. + * Decodes a ServiceOptions message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.protobuf.Timestamp + * @memberof google.protobuf.ServiceOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.Timestamp} Timestamp + * @returns {google.protobuf.ServiceOptions} ServiceOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Timestamp.decodeDelimited = function decodeDelimited(reader) { + ServiceOptions.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Timestamp message. + * Verifies a ServiceOptions message. * @function verify - * @memberof google.protobuf.Timestamp + * @memberof google.protobuf.ServiceOptions * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Timestamp.verify = function verify(message) { + ServiceOptions.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.seconds != null && message.hasOwnProperty("seconds")) - if (!$util.isInteger(message.seconds) && !(message.seconds && $util.isInteger(message.seconds.low) && $util.isInteger(message.seconds.high))) - return "seconds: integer|Long expected"; - if (message.nanos != null && message.hasOwnProperty("nanos")) - if (!$util.isInteger(message.nanos)) - return "nanos: integer expected"; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (typeof message.deprecated !== "boolean") + return "deprecated: boolean expected"; + if (message.uninterpreted_option != null && message.hasOwnProperty("uninterpreted_option")) { + if (!Array.isArray(message.uninterpreted_option)) + return "uninterpreted_option: array expected"; + for (let i = 0; i < message.uninterpreted_option.length; ++i) { + let error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpreted_option[i]); + if (error) + return "uninterpreted_option." + error; + } + } return null; }; /** - * Creates a Timestamp message from a plain object. Also converts values to their respective internal types. + * Creates a ServiceOptions message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.protobuf.Timestamp + * @memberof google.protobuf.ServiceOptions * @static * @param {Object.} object Plain object - * @returns {google.protobuf.Timestamp} Timestamp + * @returns {google.protobuf.ServiceOptions} ServiceOptions */ - Timestamp.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.Timestamp) + ServiceOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.ServiceOptions) return object; - let message = new $root.google.protobuf.Timestamp(); - if (object.seconds != null) - if ($util.Long) - (message.seconds = $util.Long.fromValue(object.seconds)).unsigned = false; - else if (typeof object.seconds === "string") - message.seconds = parseInt(object.seconds, 10); - else if (typeof object.seconds === "number") - message.seconds = object.seconds; - else if (typeof object.seconds === "object") - message.seconds = new $util.LongBits(object.seconds.low >>> 0, object.seconds.high >>> 0).toNumber(); - if (object.nanos != null) - message.nanos = object.nanos | 0; + let message = new $root.google.protobuf.ServiceOptions(); + if (object.deprecated != null) + message.deprecated = Boolean(object.deprecated); + if (object.uninterpreted_option) { + if (!Array.isArray(object.uninterpreted_option)) + throw TypeError(".google.protobuf.ServiceOptions.uninterpreted_option: array expected"); + message.uninterpreted_option = []; + for (let i = 0; i < object.uninterpreted_option.length; ++i) { + if (typeof object.uninterpreted_option[i] !== "object") + throw TypeError(".google.protobuf.ServiceOptions.uninterpreted_option: object expected"); + message.uninterpreted_option[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpreted_option[i]); + } + } return message; }; /** - * Creates a plain object from a Timestamp message. Also converts values to other types if specified. + * Creates a plain object from a ServiceOptions message. Also converts values to other types if specified. * @function toObject - * @memberof google.protobuf.Timestamp + * @memberof google.protobuf.ServiceOptions * @static - * @param {google.protobuf.Timestamp} message Timestamp + * @param {google.protobuf.ServiceOptions} message ServiceOptions * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Timestamp.toObject = function toObject(message, options) { + ServiceOptions.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) { - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.seconds = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.seconds = options.longs === String ? "0" : 0; - object.nanos = 0; + if (options.arrays || options.defaults) + object.uninterpreted_option = []; + if (options.defaults) + object.deprecated = false; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + object.deprecated = message.deprecated; + if (message.uninterpreted_option && message.uninterpreted_option.length) { + object.uninterpreted_option = []; + for (let j = 0; j < message.uninterpreted_option.length; ++j) + object.uninterpreted_option[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpreted_option[j], options); } - if (message.seconds != null && message.hasOwnProperty("seconds")) - if (typeof message.seconds === "number") - object.seconds = options.longs === String ? String(message.seconds) : message.seconds; - else - object.seconds = options.longs === String ? $util.Long.prototype.toString.call(message.seconds) : options.longs === Number ? new $util.LongBits(message.seconds.low >>> 0, message.seconds.high >>> 0).toNumber() : message.seconds; - if (message.nanos != null && message.hasOwnProperty("nanos")) - object.nanos = message.nanos; return object; }; /** - * Converts this Timestamp to JSON. + * Converts this ServiceOptions to JSON. * @function toJSON - * @memberof google.protobuf.Timestamp + * @memberof google.protobuf.ServiceOptions * @instance * @returns {Object.} JSON object */ - Timestamp.prototype.toJSON = function toJSON() { + ServiceOptions.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Timestamp; + return ServiceOptions; })(); - protobuf.Duration = (function() { + protobuf.MethodOptions = (function() { /** - * Properties of a Duration. + * Properties of a MethodOptions. * @memberof google.protobuf - * @interface IDuration - * @property {Long|null} [seconds] Duration seconds - * @property {number|null} [nanos] Duration nanos + * @interface IMethodOptions + * @property {boolean|null} [deprecated] MethodOptions deprecated + * @property {Array.|null} [uninterpreted_option] MethodOptions uninterpreted_option + * @property {google.api.IHttpRule|null} [".google.api.http"] MethodOptions .google.api.http */ /** - * Constructs a new Duration. + * Constructs a new MethodOptions. * @memberof google.protobuf - * @classdesc Represents a Duration. - * @implements IDuration + * @classdesc Represents a MethodOptions. + * @implements IMethodOptions * @constructor - * @param {google.protobuf.IDuration=} [properties] Properties to set + * @param {google.protobuf.IMethodOptions=} [properties] Properties to set */ - function Duration(properties) { + function MethodOptions(properties) { + this.uninterpreted_option = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -17103,76 +23436,92 @@ export const google = $root.google = (() => { } /** - * Duration seconds. - * @member {Long} seconds - * @memberof google.protobuf.Duration + * MethodOptions deprecated. + * @member {boolean} deprecated + * @memberof google.protobuf.MethodOptions * @instance */ - Duration.prototype.seconds = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + MethodOptions.prototype.deprecated = false; /** - * Duration nanos. - * @member {number} nanos - * @memberof google.protobuf.Duration + * MethodOptions uninterpreted_option. + * @member {Array.} uninterpreted_option + * @memberof google.protobuf.MethodOptions * @instance */ - Duration.prototype.nanos = 0; + MethodOptions.prototype.uninterpreted_option = $util.emptyArray; /** - * Encodes the specified Duration message. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages. + * MethodOptions .google.api.http. + * @member {google.api.IHttpRule|null|undefined} .google.api.http + * @memberof google.protobuf.MethodOptions + * @instance + */ + MethodOptions.prototype[".google.api.http"] = null; + + /** + * Encodes the specified MethodOptions message. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages. * @function encode - * @memberof google.protobuf.Duration + * @memberof google.protobuf.MethodOptions * @static - * @param {google.protobuf.IDuration} message Duration message or plain object to encode + * @param {google.protobuf.IMethodOptions} message MethodOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Duration.encode = function encode(message, writer) { + MethodOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.seconds != null && Object.hasOwnProperty.call(message, "seconds")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.seconds); - if (message.nanos != null && Object.hasOwnProperty.call(message, "nanos")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.nanos); + if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) + writer.uint32(/* id 33, wireType 0 =*/264).bool(message.deprecated); + if (message.uninterpreted_option != null && message.uninterpreted_option.length) + for (let i = 0; i < message.uninterpreted_option.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpreted_option[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + if (message[".google.api.http"] != null && Object.hasOwnProperty.call(message, ".google.api.http")) + $root.google.api.HttpRule.encode(message[".google.api.http"], writer.uint32(/* id 72295728, wireType 2 =*/578365826).fork()).ldelim(); return writer; }; /** - * Encodes the specified Duration message, length delimited. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages. + * Encodes the specified MethodOptions message, length delimited. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages. * @function encodeDelimited - * @memberof google.protobuf.Duration + * @memberof google.protobuf.MethodOptions * @static - * @param {google.protobuf.IDuration} message Duration message or plain object to encode + * @param {google.protobuf.IMethodOptions} message MethodOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Duration.encodeDelimited = function encodeDelimited(message, writer) { + MethodOptions.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Duration message from the specified reader or buffer. + * Decodes a MethodOptions message from the specified reader or buffer. * @function decode - * @memberof google.protobuf.Duration + * @memberof google.protobuf.MethodOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.Duration} Duration + * @returns {google.protobuf.MethodOptions} MethodOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Duration.decode = function decode(reader, length) { + MethodOptions.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Duration(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.MethodOptions(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.seconds = reader.int64(); + case 33: + message.deprecated = reader.bool(); break; - case 2: - message.nanos = reader.int32(); + case 999: + if (!(message.uninterpreted_option && message.uninterpreted_option.length)) + message.uninterpreted_option = []; + message.uninterpreted_option.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + case 72295728: + message[".google.api.http"] = $root.google.api.HttpRule.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -17183,144 +23532,154 @@ export const google = $root.google = (() => { }; /** - * Decodes a Duration message from the specified reader or buffer, length delimited. + * Decodes a MethodOptions message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.protobuf.Duration + * @memberof google.protobuf.MethodOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.Duration} Duration + * @returns {google.protobuf.MethodOptions} MethodOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Duration.decodeDelimited = function decodeDelimited(reader) { + MethodOptions.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Duration message. + * Verifies a MethodOptions message. * @function verify - * @memberof google.protobuf.Duration + * @memberof google.protobuf.MethodOptions * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Duration.verify = function verify(message) { + MethodOptions.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.seconds != null && message.hasOwnProperty("seconds")) - if (!$util.isInteger(message.seconds) && !(message.seconds && $util.isInteger(message.seconds.low) && $util.isInteger(message.seconds.high))) - return "seconds: integer|Long expected"; - if (message.nanos != null && message.hasOwnProperty("nanos")) - if (!$util.isInteger(message.nanos)) - return "nanos: integer expected"; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (typeof message.deprecated !== "boolean") + return "deprecated: boolean expected"; + if (message.uninterpreted_option != null && message.hasOwnProperty("uninterpreted_option")) { + if (!Array.isArray(message.uninterpreted_option)) + return "uninterpreted_option: array expected"; + for (let i = 0; i < message.uninterpreted_option.length; ++i) { + let error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpreted_option[i]); + if (error) + return "uninterpreted_option." + error; + } + } + if (message[".google.api.http"] != null && message.hasOwnProperty(".google.api.http")) { + let error = $root.google.api.HttpRule.verify(message[".google.api.http"]); + if (error) + return ".google.api.http." + error; + } return null; }; /** - * Creates a Duration message from a plain object. Also converts values to their respective internal types. + * Creates a MethodOptions message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.protobuf.Duration + * @memberof google.protobuf.MethodOptions * @static * @param {Object.} object Plain object - * @returns {google.protobuf.Duration} Duration + * @returns {google.protobuf.MethodOptions} MethodOptions */ - Duration.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.Duration) + MethodOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.MethodOptions) return object; - let message = new $root.google.protobuf.Duration(); - if (object.seconds != null) - if ($util.Long) - (message.seconds = $util.Long.fromValue(object.seconds)).unsigned = false; - else if (typeof object.seconds === "string") - message.seconds = parseInt(object.seconds, 10); - else if (typeof object.seconds === "number") - message.seconds = object.seconds; - else if (typeof object.seconds === "object") - message.seconds = new $util.LongBits(object.seconds.low >>> 0, object.seconds.high >>> 0).toNumber(); - if (object.nanos != null) - message.nanos = object.nanos | 0; + let message = new $root.google.protobuf.MethodOptions(); + if (object.deprecated != null) + message.deprecated = Boolean(object.deprecated); + if (object.uninterpreted_option) { + if (!Array.isArray(object.uninterpreted_option)) + throw TypeError(".google.protobuf.MethodOptions.uninterpreted_option: array expected"); + message.uninterpreted_option = []; + for (let i = 0; i < object.uninterpreted_option.length; ++i) { + if (typeof object.uninterpreted_option[i] !== "object") + throw TypeError(".google.protobuf.MethodOptions.uninterpreted_option: object expected"); + message.uninterpreted_option[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpreted_option[i]); + } + } + if (object[".google.api.http"] != null) { + if (typeof object[".google.api.http"] !== "object") + throw TypeError(".google.protobuf.MethodOptions..google.api.http: object expected"); + message[".google.api.http"] = $root.google.api.HttpRule.fromObject(object[".google.api.http"]); + } return message; }; /** - * Creates a plain object from a Duration message. Also converts values to other types if specified. + * Creates a plain object from a MethodOptions message. Also converts values to other types if specified. * @function toObject - * @memberof google.protobuf.Duration + * @memberof google.protobuf.MethodOptions * @static - * @param {google.protobuf.Duration} message Duration + * @param {google.protobuf.MethodOptions} message MethodOptions * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Duration.toObject = function toObject(message, options) { + MethodOptions.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; + if (options.arrays || options.defaults) + object.uninterpreted_option = []; if (options.defaults) { - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.seconds = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.seconds = options.longs === String ? "0" : 0; - object.nanos = 0; + object.deprecated = false; + object[".google.api.http"] = null; } - if (message.seconds != null && message.hasOwnProperty("seconds")) - if (typeof message.seconds === "number") - object.seconds = options.longs === String ? String(message.seconds) : message.seconds; - else - object.seconds = options.longs === String ? $util.Long.prototype.toString.call(message.seconds) : options.longs === Number ? new $util.LongBits(message.seconds.low >>> 0, message.seconds.high >>> 0).toNumber() : message.seconds; - if (message.nanos != null && message.hasOwnProperty("nanos")) - object.nanos = message.nanos; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + object.deprecated = message.deprecated; + if (message.uninterpreted_option && message.uninterpreted_option.length) { + object.uninterpreted_option = []; + for (let j = 0; j < message.uninterpreted_option.length; ++j) + object.uninterpreted_option[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpreted_option[j], options); + } + if (message[".google.api.http"] != null && message.hasOwnProperty(".google.api.http")) + object[".google.api.http"] = $root.google.api.HttpRule.toObject(message[".google.api.http"], options); return object; }; /** - * Converts this Duration to JSON. + * Converts this MethodOptions to JSON. * @function toJSON - * @memberof google.protobuf.Duration + * @memberof google.protobuf.MethodOptions * @instance * @returns {Object.} JSON object */ - Duration.prototype.toJSON = function toJSON() { + MethodOptions.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Duration; + return MethodOptions; })(); - return protobuf; - })(); - - google.api = (function() { - - /** - * Namespace api. - * @memberof google - * @namespace - */ - const api = {}; - - api.Http = (function() { + protobuf.UninterpretedOption = (function() { /** - * Properties of a Http. - * @memberof google.api - * @interface IHttp - * @property {Array.|null} [rules] Http rules - * @property {boolean|null} [fully_decode_reserved_expansion] Http fully_decode_reserved_expansion + * Properties of an UninterpretedOption. + * @memberof google.protobuf + * @interface IUninterpretedOption + * @property {Array.|null} [name] UninterpretedOption name + * @property {string|null} [identifier_value] UninterpretedOption identifier_value + * @property {Long|null} [positive_int_value] UninterpretedOption positive_int_value + * @property {Long|null} [negative_int_value] UninterpretedOption negative_int_value + * @property {number|null} [double_value] UninterpretedOption double_value + * @property {Uint8Array|null} [string_value] UninterpretedOption string_value + * @property {string|null} [aggregate_value] UninterpretedOption aggregate_value */ /** - * Constructs a new Http. - * @memberof google.api - * @classdesc Represents a Http. - * @implements IHttp + * Constructs a new UninterpretedOption. + * @memberof google.protobuf + * @classdesc Represents an UninterpretedOption. + * @implements IUninterpretedOption * @constructor - * @param {google.api.IHttp=} [properties] Properties to set + * @param {google.protobuf.IUninterpretedOption=} [properties] Properties to set */ - function Http(properties) { - this.rules = []; + function UninterpretedOption(properties) { + this.name = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -17328,79 +23687,144 @@ export const google = $root.google = (() => { } /** - * Http rules. - * @member {Array.} rules - * @memberof google.api.Http + * UninterpretedOption name. + * @member {Array.} name + * @memberof google.protobuf.UninterpretedOption * @instance */ - Http.prototype.rules = $util.emptyArray; + UninterpretedOption.prototype.name = $util.emptyArray; /** - * Http fully_decode_reserved_expansion. - * @member {boolean} fully_decode_reserved_expansion - * @memberof google.api.Http + * UninterpretedOption identifier_value. + * @member {string} identifier_value + * @memberof google.protobuf.UninterpretedOption * @instance */ - Http.prototype.fully_decode_reserved_expansion = false; + UninterpretedOption.prototype.identifier_value = ""; /** - * Encodes the specified Http message. Does not implicitly {@link google.api.Http.verify|verify} messages. + * UninterpretedOption positive_int_value. + * @member {Long} positive_int_value + * @memberof google.protobuf.UninterpretedOption + * @instance + */ + UninterpretedOption.prototype.positive_int_value = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + + /** + * UninterpretedOption negative_int_value. + * @member {Long} negative_int_value + * @memberof google.protobuf.UninterpretedOption + * @instance + */ + UninterpretedOption.prototype.negative_int_value = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * UninterpretedOption double_value. + * @member {number} double_value + * @memberof google.protobuf.UninterpretedOption + * @instance + */ + UninterpretedOption.prototype.double_value = 0; + + /** + * UninterpretedOption string_value. + * @member {Uint8Array} string_value + * @memberof google.protobuf.UninterpretedOption + * @instance + */ + UninterpretedOption.prototype.string_value = $util.newBuffer([]); + + /** + * UninterpretedOption aggregate_value. + * @member {string} aggregate_value + * @memberof google.protobuf.UninterpretedOption + * @instance + */ + UninterpretedOption.prototype.aggregate_value = ""; + + /** + * Encodes the specified UninterpretedOption message. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages. * @function encode - * @memberof google.api.Http + * @memberof google.protobuf.UninterpretedOption * @static - * @param {google.api.IHttp} message Http message or plain object to encode + * @param {google.protobuf.IUninterpretedOption} message UninterpretedOption message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Http.encode = function encode(message, writer) { + UninterpretedOption.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.rules != null && message.rules.length) - for (let i = 0; i < message.rules.length; ++i) - $root.google.api.HttpRule.encode(message.rules[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.fully_decode_reserved_expansion != null && Object.hasOwnProperty.call(message, "fully_decode_reserved_expansion")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.fully_decode_reserved_expansion); + if (message.name != null && message.name.length) + for (let i = 0; i < message.name.length; ++i) + $root.google.protobuf.UninterpretedOption.NamePart.encode(message.name[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.identifier_value != null && Object.hasOwnProperty.call(message, "identifier_value")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.identifier_value); + if (message.positive_int_value != null && Object.hasOwnProperty.call(message, "positive_int_value")) + writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.positive_int_value); + if (message.negative_int_value != null && Object.hasOwnProperty.call(message, "negative_int_value")) + writer.uint32(/* id 5, wireType 0 =*/40).int64(message.negative_int_value); + if (message.double_value != null && Object.hasOwnProperty.call(message, "double_value")) + writer.uint32(/* id 6, wireType 1 =*/49).double(message.double_value); + if (message.string_value != null && Object.hasOwnProperty.call(message, "string_value")) + writer.uint32(/* id 7, wireType 2 =*/58).bytes(message.string_value); + if (message.aggregate_value != null && Object.hasOwnProperty.call(message, "aggregate_value")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.aggregate_value); return writer; }; /** - * Encodes the specified Http message, length delimited. Does not implicitly {@link google.api.Http.verify|verify} messages. + * Encodes the specified UninterpretedOption message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages. * @function encodeDelimited - * @memberof google.api.Http + * @memberof google.protobuf.UninterpretedOption * @static - * @param {google.api.IHttp} message Http message or plain object to encode + * @param {google.protobuf.IUninterpretedOption} message UninterpretedOption message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Http.encodeDelimited = function encodeDelimited(message, writer) { + UninterpretedOption.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Http message from the specified reader or buffer. + * Decodes an UninterpretedOption message from the specified reader or buffer. * @function decode - * @memberof google.api.Http + * @memberof google.protobuf.UninterpretedOption * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.api.Http} Http + * @returns {google.protobuf.UninterpretedOption} UninterpretedOption * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Http.decode = function decode(reader, length) { + UninterpretedOption.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.Http(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.UninterpretedOption(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: - if (!(message.rules && message.rules.length)) - message.rules = []; - message.rules.push($root.google.api.HttpRule.decode(reader, reader.uint32())); - break; case 2: - message.fully_decode_reserved_expansion = reader.bool(); + if (!(message.name && message.name.length)) + message.name = []; + message.name.push($root.google.protobuf.UninterpretedOption.NamePart.decode(reader, reader.uint32())); + break; + case 3: + message.identifier_value = reader.string(); + break; + case 4: + message.positive_int_value = reader.uint64(); + break; + case 5: + message.negative_int_value = reader.int64(); + break; + case 6: + message.double_value = reader.double(); + break; + case 7: + message.string_value = reader.bytes(); + break; + case 8: + message.aggregate_value = reader.string(); break; default: reader.skipType(tag & 7); @@ -17411,341 +23835,477 @@ export const google = $root.google = (() => { }; /** - * Decodes a Http message from the specified reader or buffer, length delimited. + * Decodes an UninterpretedOption message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.api.Http + * @memberof google.protobuf.UninterpretedOption * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.api.Http} Http + * @returns {google.protobuf.UninterpretedOption} UninterpretedOption * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Http.decodeDelimited = function decodeDelimited(reader) { + UninterpretedOption.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Http message. + * Verifies an UninterpretedOption message. * @function verify - * @memberof google.api.Http + * @memberof google.protobuf.UninterpretedOption * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Http.verify = function verify(message) { + UninterpretedOption.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.rules != null && message.hasOwnProperty("rules")) { - if (!Array.isArray(message.rules)) - return "rules: array expected"; - for (let i = 0; i < message.rules.length; ++i) { - let error = $root.google.api.HttpRule.verify(message.rules[i]); + if (message.name != null && message.hasOwnProperty("name")) { + if (!Array.isArray(message.name)) + return "name: array expected"; + for (let i = 0; i < message.name.length; ++i) { + let error = $root.google.protobuf.UninterpretedOption.NamePart.verify(message.name[i]); if (error) - return "rules." + error; + return "name." + error; } } - if (message.fully_decode_reserved_expansion != null && message.hasOwnProperty("fully_decode_reserved_expansion")) - if (typeof message.fully_decode_reserved_expansion !== "boolean") - return "fully_decode_reserved_expansion: boolean expected"; + if (message.identifier_value != null && message.hasOwnProperty("identifier_value")) + if (!$util.isString(message.identifier_value)) + return "identifier_value: string expected"; + if (message.positive_int_value != null && message.hasOwnProperty("positive_int_value")) + if (!$util.isInteger(message.positive_int_value) && !(message.positive_int_value && $util.isInteger(message.positive_int_value.low) && $util.isInteger(message.positive_int_value.high))) + return "positive_int_value: integer|Long expected"; + if (message.negative_int_value != null && message.hasOwnProperty("negative_int_value")) + if (!$util.isInteger(message.negative_int_value) && !(message.negative_int_value && $util.isInteger(message.negative_int_value.low) && $util.isInteger(message.negative_int_value.high))) + return "negative_int_value: integer|Long expected"; + if (message.double_value != null && message.hasOwnProperty("double_value")) + if (typeof message.double_value !== "number") + return "double_value: number expected"; + if (message.string_value != null && message.hasOwnProperty("string_value")) + if (!(message.string_value && typeof message.string_value.length === "number" || $util.isString(message.string_value))) + return "string_value: buffer expected"; + if (message.aggregate_value != null && message.hasOwnProperty("aggregate_value")) + if (!$util.isString(message.aggregate_value)) + return "aggregate_value: string expected"; return null; }; /** - * Creates a Http message from a plain object. Also converts values to their respective internal types. + * Creates an UninterpretedOption message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.api.Http + * @memberof google.protobuf.UninterpretedOption * @static * @param {Object.} object Plain object - * @returns {google.api.Http} Http + * @returns {google.protobuf.UninterpretedOption} UninterpretedOption */ - Http.fromObject = function fromObject(object) { - if (object instanceof $root.google.api.Http) + UninterpretedOption.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.UninterpretedOption) return object; - let message = new $root.google.api.Http(); - if (object.rules) { - if (!Array.isArray(object.rules)) - throw TypeError(".google.api.Http.rules: array expected"); - message.rules = []; - for (let i = 0; i < object.rules.length; ++i) { - if (typeof object.rules[i] !== "object") - throw TypeError(".google.api.Http.rules: object expected"); - message.rules[i] = $root.google.api.HttpRule.fromObject(object.rules[i]); + let message = new $root.google.protobuf.UninterpretedOption(); + if (object.name) { + if (!Array.isArray(object.name)) + throw TypeError(".google.protobuf.UninterpretedOption.name: array expected"); + message.name = []; + for (let i = 0; i < object.name.length; ++i) { + if (typeof object.name[i] !== "object") + throw TypeError(".google.protobuf.UninterpretedOption.name: object expected"); + message.name[i] = $root.google.protobuf.UninterpretedOption.NamePart.fromObject(object.name[i]); } } - if (object.fully_decode_reserved_expansion != null) - message.fully_decode_reserved_expansion = Boolean(object.fully_decode_reserved_expansion); + if (object.identifier_value != null) + message.identifier_value = String(object.identifier_value); + if (object.positive_int_value != null) + if ($util.Long) + (message.positive_int_value = $util.Long.fromValue(object.positive_int_value)).unsigned = true; + else if (typeof object.positive_int_value === "string") + message.positive_int_value = parseInt(object.positive_int_value, 10); + else if (typeof object.positive_int_value === "number") + message.positive_int_value = object.positive_int_value; + else if (typeof object.positive_int_value === "object") + message.positive_int_value = new $util.LongBits(object.positive_int_value.low >>> 0, object.positive_int_value.high >>> 0).toNumber(true); + if (object.negative_int_value != null) + if ($util.Long) + (message.negative_int_value = $util.Long.fromValue(object.negative_int_value)).unsigned = false; + else if (typeof object.negative_int_value === "string") + message.negative_int_value = parseInt(object.negative_int_value, 10); + else if (typeof object.negative_int_value === "number") + message.negative_int_value = object.negative_int_value; + else if (typeof object.negative_int_value === "object") + message.negative_int_value = new $util.LongBits(object.negative_int_value.low >>> 0, object.negative_int_value.high >>> 0).toNumber(); + if (object.double_value != null) + message.double_value = Number(object.double_value); + if (object.string_value != null) + if (typeof object.string_value === "string") + $util.base64.decode(object.string_value, message.string_value = $util.newBuffer($util.base64.length(object.string_value)), 0); + else if (object.string_value.length) + message.string_value = object.string_value; + if (object.aggregate_value != null) + message.aggregate_value = String(object.aggregate_value); return message; }; /** - * Creates a plain object from a Http message. Also converts values to other types if specified. + * Creates a plain object from an UninterpretedOption message. Also converts values to other types if specified. * @function toObject - * @memberof google.api.Http + * @memberof google.protobuf.UninterpretedOption * @static - * @param {google.api.Http} message Http + * @param {google.protobuf.UninterpretedOption} message UninterpretedOption * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Http.toObject = function toObject(message, options) { + UninterpretedOption.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) - object.rules = []; - if (options.defaults) - object.fully_decode_reserved_expansion = false; - if (message.rules && message.rules.length) { - object.rules = []; - for (let j = 0; j < message.rules.length; ++j) - object.rules[j] = $root.google.api.HttpRule.toObject(message.rules[j], options); + object.name = []; + if (options.defaults) { + object.identifier_value = ""; + if ($util.Long) { + let long = new $util.Long(0, 0, true); + object.positive_int_value = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.positive_int_value = options.longs === String ? "0" : 0; + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.negative_int_value = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.negative_int_value = options.longs === String ? "0" : 0; + object.double_value = 0; + if (options.bytes === String) + object.string_value = ""; + else { + object.string_value = []; + if (options.bytes !== Array) + object.string_value = $util.newBuffer(object.string_value); + } + object.aggregate_value = ""; } - if (message.fully_decode_reserved_expansion != null && message.hasOwnProperty("fully_decode_reserved_expansion")) - object.fully_decode_reserved_expansion = message.fully_decode_reserved_expansion; + if (message.name && message.name.length) { + object.name = []; + for (let j = 0; j < message.name.length; ++j) + object.name[j] = $root.google.protobuf.UninterpretedOption.NamePart.toObject(message.name[j], options); + } + if (message.identifier_value != null && message.hasOwnProperty("identifier_value")) + object.identifier_value = message.identifier_value; + if (message.positive_int_value != null && message.hasOwnProperty("positive_int_value")) + if (typeof message.positive_int_value === "number") + object.positive_int_value = options.longs === String ? String(message.positive_int_value) : message.positive_int_value; + else + object.positive_int_value = options.longs === String ? $util.Long.prototype.toString.call(message.positive_int_value) : options.longs === Number ? new $util.LongBits(message.positive_int_value.low >>> 0, message.positive_int_value.high >>> 0).toNumber(true) : message.positive_int_value; + if (message.negative_int_value != null && message.hasOwnProperty("negative_int_value")) + if (typeof message.negative_int_value === "number") + object.negative_int_value = options.longs === String ? String(message.negative_int_value) : message.negative_int_value; + else + object.negative_int_value = options.longs === String ? $util.Long.prototype.toString.call(message.negative_int_value) : options.longs === Number ? new $util.LongBits(message.negative_int_value.low >>> 0, message.negative_int_value.high >>> 0).toNumber() : message.negative_int_value; + if (message.double_value != null && message.hasOwnProperty("double_value")) + object.double_value = options.json && !isFinite(message.double_value) ? String(message.double_value) : message.double_value; + if (message.string_value != null && message.hasOwnProperty("string_value")) + object.string_value = options.bytes === String ? $util.base64.encode(message.string_value, 0, message.string_value.length) : options.bytes === Array ? Array.prototype.slice.call(message.string_value) : message.string_value; + if (message.aggregate_value != null && message.hasOwnProperty("aggregate_value")) + object.aggregate_value = message.aggregate_value; return object; }; /** - * Converts this Http to JSON. + * Converts this UninterpretedOption to JSON. * @function toJSON - * @memberof google.api.Http + * @memberof google.protobuf.UninterpretedOption * @instance * @returns {Object.} JSON object */ - Http.prototype.toJSON = function toJSON() { + UninterpretedOption.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Http; - })(); + UninterpretedOption.NamePart = (function() { - api.HttpRule = (function() { + /** + * Properties of a NamePart. + * @memberof google.protobuf.UninterpretedOption + * @interface INamePart + * @property {string} name_part NamePart name_part + * @property {boolean} is_extension NamePart is_extension + */ - /** - * Properties of a HttpRule. - * @memberof google.api - * @interface IHttpRule - * @property {string|null} [selector] HttpRule selector - * @property {string|null} [get] HttpRule get - * @property {string|null} [put] HttpRule put - * @property {string|null} [post] HttpRule post - * @property {string|null} ["delete"] HttpRule delete - * @property {string|null} [patch] HttpRule patch - * @property {google.api.ICustomHttpPattern|null} [custom] HttpRule custom - * @property {string|null} [body] HttpRule body - * @property {string|null} [response_body] HttpRule response_body - * @property {Array.|null} [additional_bindings] HttpRule additional_bindings - */ + /** + * Constructs a new NamePart. + * @memberof google.protobuf.UninterpretedOption + * @classdesc Represents a NamePart. + * @implements INamePart + * @constructor + * @param {google.protobuf.UninterpretedOption.INamePart=} [properties] Properties to set + */ + function NamePart(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Constructs a new HttpRule. - * @memberof google.api - * @classdesc Represents a HttpRule. - * @implements IHttpRule - * @constructor - * @param {google.api.IHttpRule=} [properties] Properties to set - */ - function HttpRule(properties) { - this.additional_bindings = []; - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * NamePart name_part. + * @member {string} name_part + * @memberof google.protobuf.UninterpretedOption.NamePart + * @instance + */ + NamePart.prototype.name_part = ""; - /** - * HttpRule selector. - * @member {string} selector - * @memberof google.api.HttpRule - * @instance - */ - HttpRule.prototype.selector = ""; + /** + * NamePart is_extension. + * @member {boolean} is_extension + * @memberof google.protobuf.UninterpretedOption.NamePart + * @instance + */ + NamePart.prototype.is_extension = false; - /** - * HttpRule get. - * @member {string|null|undefined} get - * @memberof google.api.HttpRule - * @instance - */ - HttpRule.prototype.get = null; + /** + * Encodes the specified NamePart message. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages. + * @function encode + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {google.protobuf.UninterpretedOption.INamePart} message NamePart message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NamePart.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name_part); + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.is_extension); + return writer; + }; - /** - * HttpRule put. - * @member {string|null|undefined} put - * @memberof google.api.HttpRule - * @instance - */ - HttpRule.prototype.put = null; + /** + * Encodes the specified NamePart message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {google.protobuf.UninterpretedOption.INamePart} message NamePart message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NamePart.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * HttpRule post. - * @member {string|null|undefined} post - * @memberof google.api.HttpRule - * @instance - */ - HttpRule.prototype.post = null; + /** + * Decodes a NamePart message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.UninterpretedOption.NamePart} NamePart + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NamePart.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.UninterpretedOption.NamePart(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name_part = reader.string(); + break; + case 2: + message.is_extension = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + if (!message.hasOwnProperty("name_part")) + throw $util.ProtocolError("missing required 'name_part'", { instance: message }); + if (!message.hasOwnProperty("is_extension")) + throw $util.ProtocolError("missing required 'is_extension'", { instance: message }); + return message; + }; - /** - * HttpRule delete. - * @member {string|null|undefined} delete - * @memberof google.api.HttpRule - * @instance - */ - HttpRule.prototype["delete"] = null; + /** + * Decodes a NamePart message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.UninterpretedOption.NamePart} NamePart + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NamePart.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * HttpRule patch. - * @member {string|null|undefined} patch - * @memberof google.api.HttpRule - * @instance - */ - HttpRule.prototype.patch = null; + /** + * Verifies a NamePart message. + * @function verify + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NamePart.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (!$util.isString(message.name_part)) + return "name_part: string expected"; + if (typeof message.is_extension !== "boolean") + return "is_extension: boolean expected"; + return null; + }; - /** - * HttpRule custom. - * @member {google.api.ICustomHttpPattern|null|undefined} custom - * @memberof google.api.HttpRule - * @instance - */ - HttpRule.prototype.custom = null; + /** + * Creates a NamePart message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.UninterpretedOption.NamePart} NamePart + */ + NamePart.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.UninterpretedOption.NamePart) + return object; + let message = new $root.google.protobuf.UninterpretedOption.NamePart(); + if (object.name_part != null) + message.name_part = String(object.name_part); + if (object.is_extension != null) + message.is_extension = Boolean(object.is_extension); + return message; + }; - /** - * HttpRule body. - * @member {string} body - * @memberof google.api.HttpRule - * @instance - */ - HttpRule.prototype.body = ""; + /** + * Creates a plain object from a NamePart message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {google.protobuf.UninterpretedOption.NamePart} message NamePart + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + NamePart.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + object.name_part = ""; + object.is_extension = false; + } + if (message.name_part != null && message.hasOwnProperty("name_part")) + object.name_part = message.name_part; + if (message.is_extension != null && message.hasOwnProperty("is_extension")) + object.is_extension = message.is_extension; + return object; + }; + + /** + * Converts this NamePart to JSON. + * @function toJSON + * @memberof google.protobuf.UninterpretedOption.NamePart + * @instance + * @returns {Object.} JSON object + */ + NamePart.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return NamePart; + })(); + + return UninterpretedOption; + })(); + + protobuf.SourceCodeInfo = (function() { /** - * HttpRule response_body. - * @member {string} response_body - * @memberof google.api.HttpRule - * @instance + * Properties of a SourceCodeInfo. + * @memberof google.protobuf + * @interface ISourceCodeInfo + * @property {Array.|null} [location] SourceCodeInfo location */ - HttpRule.prototype.response_body = ""; /** - * HttpRule additional_bindings. - * @member {Array.} additional_bindings - * @memberof google.api.HttpRule - * @instance + * Constructs a new SourceCodeInfo. + * @memberof google.protobuf + * @classdesc Represents a SourceCodeInfo. + * @implements ISourceCodeInfo + * @constructor + * @param {google.protobuf.ISourceCodeInfo=} [properties] Properties to set */ - HttpRule.prototype.additional_bindings = $util.emptyArray; - - // OneOf field names bound to virtual getters and setters - let $oneOfFields; + function SourceCodeInfo(properties) { + this.location = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * HttpRule pattern. - * @member {"get"|"put"|"post"|"delete"|"patch"|"custom"|undefined} pattern - * @memberof google.api.HttpRule + * SourceCodeInfo location. + * @member {Array.} location + * @memberof google.protobuf.SourceCodeInfo * @instance */ - Object.defineProperty(HttpRule.prototype, "pattern", { - get: $util.oneOfGetter($oneOfFields = ["get", "put", "post", "delete", "patch", "custom"]), - set: $util.oneOfSetter($oneOfFields) - }); + SourceCodeInfo.prototype.location = $util.emptyArray; /** - * Encodes the specified HttpRule message. Does not implicitly {@link google.api.HttpRule.verify|verify} messages. + * Encodes the specified SourceCodeInfo message. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages. * @function encode - * @memberof google.api.HttpRule + * @memberof google.protobuf.SourceCodeInfo * @static - * @param {google.api.IHttpRule} message HttpRule message or plain object to encode + * @param {google.protobuf.ISourceCodeInfo} message SourceCodeInfo message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - HttpRule.encode = function encode(message, writer) { + SourceCodeInfo.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.selector != null && Object.hasOwnProperty.call(message, "selector")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.selector); - if (message.get != null && Object.hasOwnProperty.call(message, "get")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.get); - if (message.put != null && Object.hasOwnProperty.call(message, "put")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.put); - if (message.post != null && Object.hasOwnProperty.call(message, "post")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.post); - if (message["delete"] != null && Object.hasOwnProperty.call(message, "delete")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message["delete"]); - if (message.patch != null && Object.hasOwnProperty.call(message, "patch")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.patch); - if (message.body != null && Object.hasOwnProperty.call(message, "body")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.body); - if (message.custom != null && Object.hasOwnProperty.call(message, "custom")) - $root.google.api.CustomHttpPattern.encode(message.custom, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.additional_bindings != null && message.additional_bindings.length) - for (let i = 0; i < message.additional_bindings.length; ++i) - $root.google.api.HttpRule.encode(message.additional_bindings[i], writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); - if (message.response_body != null && Object.hasOwnProperty.call(message, "response_body")) - writer.uint32(/* id 12, wireType 2 =*/98).string(message.response_body); + if (message.location != null && message.location.length) + for (let i = 0; i < message.location.length; ++i) + $root.google.protobuf.SourceCodeInfo.Location.encode(message.location[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified HttpRule message, length delimited. Does not implicitly {@link google.api.HttpRule.verify|verify} messages. + * Encodes the specified SourceCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages. * @function encodeDelimited - * @memberof google.api.HttpRule + * @memberof google.protobuf.SourceCodeInfo * @static - * @param {google.api.IHttpRule} message HttpRule message or plain object to encode + * @param {google.protobuf.ISourceCodeInfo} message SourceCodeInfo message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - HttpRule.encodeDelimited = function encodeDelimited(message, writer) { + SourceCodeInfo.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a HttpRule message from the specified reader or buffer. + * Decodes a SourceCodeInfo message from the specified reader or buffer. * @function decode - * @memberof google.api.HttpRule + * @memberof google.protobuf.SourceCodeInfo * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.api.HttpRule} HttpRule + * @returns {google.protobuf.SourceCodeInfo} SourceCodeInfo * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - HttpRule.decode = function decode(reader, length) { + SourceCodeInfo.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.HttpRule(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.SourceCodeInfo(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.selector = reader.string(); - break; - case 2: - message.get = reader.string(); - break; - case 3: - message.put = reader.string(); - break; - case 4: - message.post = reader.string(); - break; - case 5: - message["delete"] = reader.string(); - break; - case 6: - message.patch = reader.string(); - break; - case 8: - message.custom = $root.google.api.CustomHttpPattern.decode(reader, reader.uint32()); - break; - case 7: - message.body = reader.string(); - break; - case 12: - message.response_body = reader.string(); - break; - case 11: - if (!(message.additional_bindings && message.additional_bindings.length)) - message.additional_bindings = []; - message.additional_bindings.push($root.google.api.HttpRule.decode(reader, reader.uint32())); + if (!(message.location && message.location.length)) + message.location = []; + message.location.push($root.google.protobuf.SourceCodeInfo.Location.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -17756,240 +24316,455 @@ export const google = $root.google = (() => { }; /** - * Decodes a HttpRule message from the specified reader or buffer, length delimited. + * Decodes a SourceCodeInfo message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.api.HttpRule + * @memberof google.protobuf.SourceCodeInfo * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.api.HttpRule} HttpRule + * @returns {google.protobuf.SourceCodeInfo} SourceCodeInfo * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - HttpRule.decodeDelimited = function decodeDelimited(reader) { + SourceCodeInfo.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a HttpRule message. + * Verifies a SourceCodeInfo message. * @function verify - * @memberof google.api.HttpRule + * @memberof google.protobuf.SourceCodeInfo * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - HttpRule.verify = function verify(message) { + SourceCodeInfo.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - let properties = {}; - if (message.selector != null && message.hasOwnProperty("selector")) - if (!$util.isString(message.selector)) - return "selector: string expected"; - if (message.get != null && message.hasOwnProperty("get")) { - properties.pattern = 1; - if (!$util.isString(message.get)) - return "get: string expected"; - } - if (message.put != null && message.hasOwnProperty("put")) { - if (properties.pattern === 1) - return "pattern: multiple values"; - properties.pattern = 1; - if (!$util.isString(message.put)) - return "put: string expected"; - } - if (message.post != null && message.hasOwnProperty("post")) { - if (properties.pattern === 1) - return "pattern: multiple values"; - properties.pattern = 1; - if (!$util.isString(message.post)) - return "post: string expected"; - } - if (message["delete"] != null && message.hasOwnProperty("delete")) { - if (properties.pattern === 1) - return "pattern: multiple values"; - properties.pattern = 1; - if (!$util.isString(message["delete"])) - return "delete: string expected"; - } - if (message.patch != null && message.hasOwnProperty("patch")) { - if (properties.pattern === 1) - return "pattern: multiple values"; - properties.pattern = 1; - if (!$util.isString(message.patch)) - return "patch: string expected"; - } - if (message.custom != null && message.hasOwnProperty("custom")) { - if (properties.pattern === 1) - return "pattern: multiple values"; - properties.pattern = 1; - { - let error = $root.google.api.CustomHttpPattern.verify(message.custom); - if (error) - return "custom." + error; - } - } - if (message.body != null && message.hasOwnProperty("body")) - if (!$util.isString(message.body)) - return "body: string expected"; - if (message.response_body != null && message.hasOwnProperty("response_body")) - if (!$util.isString(message.response_body)) - return "response_body: string expected"; - if (message.additional_bindings != null && message.hasOwnProperty("additional_bindings")) { - if (!Array.isArray(message.additional_bindings)) - return "additional_bindings: array expected"; - for (let i = 0; i < message.additional_bindings.length; ++i) { - let error = $root.google.api.HttpRule.verify(message.additional_bindings[i]); + if (message.location != null && message.hasOwnProperty("location")) { + if (!Array.isArray(message.location)) + return "location: array expected"; + for (let i = 0; i < message.location.length; ++i) { + let error = $root.google.protobuf.SourceCodeInfo.Location.verify(message.location[i]); if (error) - return "additional_bindings." + error; + return "location." + error; } } return null; }; /** - * Creates a HttpRule message from a plain object. Also converts values to their respective internal types. + * Creates a SourceCodeInfo message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.api.HttpRule + * @memberof google.protobuf.SourceCodeInfo * @static * @param {Object.} object Plain object - * @returns {google.api.HttpRule} HttpRule + * @returns {google.protobuf.SourceCodeInfo} SourceCodeInfo */ - HttpRule.fromObject = function fromObject(object) { - if (object instanceof $root.google.api.HttpRule) + SourceCodeInfo.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.SourceCodeInfo) return object; - let message = new $root.google.api.HttpRule(); - if (object.selector != null) - message.selector = String(object.selector); - if (object.get != null) - message.get = String(object.get); - if (object.put != null) - message.put = String(object.put); - if (object.post != null) - message.post = String(object.post); - if (object["delete"] != null) - message["delete"] = String(object["delete"]); - if (object.patch != null) - message.patch = String(object.patch); - if (object.custom != null) { - if (typeof object.custom !== "object") - throw TypeError(".google.api.HttpRule.custom: object expected"); - message.custom = $root.google.api.CustomHttpPattern.fromObject(object.custom); - } - if (object.body != null) - message.body = String(object.body); - if (object.response_body != null) - message.response_body = String(object.response_body); - if (object.additional_bindings) { - if (!Array.isArray(object.additional_bindings)) - throw TypeError(".google.api.HttpRule.additional_bindings: array expected"); - message.additional_bindings = []; - for (let i = 0; i < object.additional_bindings.length; ++i) { - if (typeof object.additional_bindings[i] !== "object") - throw TypeError(".google.api.HttpRule.additional_bindings: object expected"); - message.additional_bindings[i] = $root.google.api.HttpRule.fromObject(object.additional_bindings[i]); + let message = new $root.google.protobuf.SourceCodeInfo(); + if (object.location) { + if (!Array.isArray(object.location)) + throw TypeError(".google.protobuf.SourceCodeInfo.location: array expected"); + message.location = []; + for (let i = 0; i < object.location.length; ++i) { + if (typeof object.location[i] !== "object") + throw TypeError(".google.protobuf.SourceCodeInfo.location: object expected"); + message.location[i] = $root.google.protobuf.SourceCodeInfo.Location.fromObject(object.location[i]); } } return message; }; /** - * Creates a plain object from a HttpRule message. Also converts values to other types if specified. + * Creates a plain object from a SourceCodeInfo message. Also converts values to other types if specified. * @function toObject - * @memberof google.api.HttpRule + * @memberof google.protobuf.SourceCodeInfo * @static - * @param {google.api.HttpRule} message HttpRule + * @param {google.protobuf.SourceCodeInfo} message SourceCodeInfo * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - HttpRule.toObject = function toObject(message, options) { + SourceCodeInfo.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) - object.additional_bindings = []; - if (options.defaults) { - object.selector = ""; - object.body = ""; - object.response_body = ""; - } - if (message.selector != null && message.hasOwnProperty("selector")) - object.selector = message.selector; - if (message.get != null && message.hasOwnProperty("get")) { - object.get = message.get; - if (options.oneofs) - object.pattern = "get"; - } - if (message.put != null && message.hasOwnProperty("put")) { - object.put = message.put; - if (options.oneofs) - object.pattern = "put"; - } - if (message.post != null && message.hasOwnProperty("post")) { - object.post = message.post; - if (options.oneofs) - object.pattern = "post"; - } - if (message["delete"] != null && message.hasOwnProperty("delete")) { - object["delete"] = message["delete"]; - if (options.oneofs) - object.pattern = "delete"; - } - if (message.patch != null && message.hasOwnProperty("patch")) { - object.patch = message.patch; - if (options.oneofs) - object.pattern = "patch"; - } - if (message.body != null && message.hasOwnProperty("body")) - object.body = message.body; - if (message.custom != null && message.hasOwnProperty("custom")) { - object.custom = $root.google.api.CustomHttpPattern.toObject(message.custom, options); - if (options.oneofs) - object.pattern = "custom"; - } - if (message.additional_bindings && message.additional_bindings.length) { - object.additional_bindings = []; - for (let j = 0; j < message.additional_bindings.length; ++j) - object.additional_bindings[j] = $root.google.api.HttpRule.toObject(message.additional_bindings[j], options); + object.location = []; + if (message.location && message.location.length) { + object.location = []; + for (let j = 0; j < message.location.length; ++j) + object.location[j] = $root.google.protobuf.SourceCodeInfo.Location.toObject(message.location[j], options); } - if (message.response_body != null && message.hasOwnProperty("response_body")) - object.response_body = message.response_body; return object; }; - /** - * Converts this HttpRule to JSON. - * @function toJSON - * @memberof google.api.HttpRule - * @instance - * @returns {Object.} JSON object - */ - HttpRule.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Converts this SourceCodeInfo to JSON. + * @function toJSON + * @memberof google.protobuf.SourceCodeInfo + * @instance + * @returns {Object.} JSON object + */ + SourceCodeInfo.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + SourceCodeInfo.Location = (function() { + + /** + * Properties of a Location. + * @memberof google.protobuf.SourceCodeInfo + * @interface ILocation + * @property {Array.|null} [path] Location path + * @property {Array.|null} [span] Location span + * @property {string|null} [leading_comments] Location leading_comments + * @property {string|null} [trailing_comments] Location trailing_comments + * @property {Array.|null} [leading_detached_comments] Location leading_detached_comments + */ + + /** + * Constructs a new Location. + * @memberof google.protobuf.SourceCodeInfo + * @classdesc Represents a Location. + * @implements ILocation + * @constructor + * @param {google.protobuf.SourceCodeInfo.ILocation=} [properties] Properties to set + */ + function Location(properties) { + this.path = []; + this.span = []; + this.leading_detached_comments = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Location path. + * @member {Array.} path + * @memberof google.protobuf.SourceCodeInfo.Location + * @instance + */ + Location.prototype.path = $util.emptyArray; + + /** + * Location span. + * @member {Array.} span + * @memberof google.protobuf.SourceCodeInfo.Location + * @instance + */ + Location.prototype.span = $util.emptyArray; + + /** + * Location leading_comments. + * @member {string} leading_comments + * @memberof google.protobuf.SourceCodeInfo.Location + * @instance + */ + Location.prototype.leading_comments = ""; + + /** + * Location trailing_comments. + * @member {string} trailing_comments + * @memberof google.protobuf.SourceCodeInfo.Location + * @instance + */ + Location.prototype.trailing_comments = ""; + + /** + * Location leading_detached_comments. + * @member {Array.} leading_detached_comments + * @memberof google.protobuf.SourceCodeInfo.Location + * @instance + */ + Location.prototype.leading_detached_comments = $util.emptyArray; + + /** + * Encodes the specified Location message. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages. + * @function encode + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {google.protobuf.SourceCodeInfo.ILocation} message Location message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Location.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.path != null && message.path.length) { + writer.uint32(/* id 1, wireType 2 =*/10).fork(); + for (let i = 0; i < message.path.length; ++i) + writer.int32(message.path[i]); + writer.ldelim(); + } + if (message.span != null && message.span.length) { + writer.uint32(/* id 2, wireType 2 =*/18).fork(); + for (let i = 0; i < message.span.length; ++i) + writer.int32(message.span[i]); + writer.ldelim(); + } + if (message.leading_comments != null && Object.hasOwnProperty.call(message, "leading_comments")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.leading_comments); + if (message.trailing_comments != null && Object.hasOwnProperty.call(message, "trailing_comments")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.trailing_comments); + if (message.leading_detached_comments != null && message.leading_detached_comments.length) + for (let i = 0; i < message.leading_detached_comments.length; ++i) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.leading_detached_comments[i]); + return writer; + }; + + /** + * Encodes the specified Location message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {google.protobuf.SourceCodeInfo.ILocation} message Location message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Location.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Location message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.SourceCodeInfo.Location} Location + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Location.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.SourceCodeInfo.Location(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.path && message.path.length)) + message.path = []; + if ((tag & 7) === 2) { + let end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.path.push(reader.int32()); + } else + message.path.push(reader.int32()); + break; + case 2: + if (!(message.span && message.span.length)) + message.span = []; + if ((tag & 7) === 2) { + let end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.span.push(reader.int32()); + } else + message.span.push(reader.int32()); + break; + case 3: + message.leading_comments = reader.string(); + break; + case 4: + message.trailing_comments = reader.string(); + break; + case 6: + if (!(message.leading_detached_comments && message.leading_detached_comments.length)) + message.leading_detached_comments = []; + message.leading_detached_comments.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Location message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.SourceCodeInfo.Location} Location + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Location.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Location message. + * @function verify + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Location.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.path != null && message.hasOwnProperty("path")) { + if (!Array.isArray(message.path)) + return "path: array expected"; + for (let i = 0; i < message.path.length; ++i) + if (!$util.isInteger(message.path[i])) + return "path: integer[] expected"; + } + if (message.span != null && message.hasOwnProperty("span")) { + if (!Array.isArray(message.span)) + return "span: array expected"; + for (let i = 0; i < message.span.length; ++i) + if (!$util.isInteger(message.span[i])) + return "span: integer[] expected"; + } + if (message.leading_comments != null && message.hasOwnProperty("leading_comments")) + if (!$util.isString(message.leading_comments)) + return "leading_comments: string expected"; + if (message.trailing_comments != null && message.hasOwnProperty("trailing_comments")) + if (!$util.isString(message.trailing_comments)) + return "trailing_comments: string expected"; + if (message.leading_detached_comments != null && message.hasOwnProperty("leading_detached_comments")) { + if (!Array.isArray(message.leading_detached_comments)) + return "leading_detached_comments: array expected"; + for (let i = 0; i < message.leading_detached_comments.length; ++i) + if (!$util.isString(message.leading_detached_comments[i])) + return "leading_detached_comments: string[] expected"; + } + return null; + }; + + /** + * Creates a Location message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.SourceCodeInfo.Location} Location + */ + Location.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.SourceCodeInfo.Location) + return object; + let message = new $root.google.protobuf.SourceCodeInfo.Location(); + if (object.path) { + if (!Array.isArray(object.path)) + throw TypeError(".google.protobuf.SourceCodeInfo.Location.path: array expected"); + message.path = []; + for (let i = 0; i < object.path.length; ++i) + message.path[i] = object.path[i] | 0; + } + if (object.span) { + if (!Array.isArray(object.span)) + throw TypeError(".google.protobuf.SourceCodeInfo.Location.span: array expected"); + message.span = []; + for (let i = 0; i < object.span.length; ++i) + message.span[i] = object.span[i] | 0; + } + if (object.leading_comments != null) + message.leading_comments = String(object.leading_comments); + if (object.trailing_comments != null) + message.trailing_comments = String(object.trailing_comments); + if (object.leading_detached_comments) { + if (!Array.isArray(object.leading_detached_comments)) + throw TypeError(".google.protobuf.SourceCodeInfo.Location.leading_detached_comments: array expected"); + message.leading_detached_comments = []; + for (let i = 0; i < object.leading_detached_comments.length; ++i) + message.leading_detached_comments[i] = String(object.leading_detached_comments[i]); + } + return message; + }; + + /** + * Creates a plain object from a Location message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {google.protobuf.SourceCodeInfo.Location} message Location + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Location.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) { + object.path = []; + object.span = []; + object.leading_detached_comments = []; + } + if (options.defaults) { + object.leading_comments = ""; + object.trailing_comments = ""; + } + if (message.path && message.path.length) { + object.path = []; + for (let j = 0; j < message.path.length; ++j) + object.path[j] = message.path[j]; + } + if (message.span && message.span.length) { + object.span = []; + for (let j = 0; j < message.span.length; ++j) + object.span[j] = message.span[j]; + } + if (message.leading_comments != null && message.hasOwnProperty("leading_comments")) + object.leading_comments = message.leading_comments; + if (message.trailing_comments != null && message.hasOwnProperty("trailing_comments")) + object.trailing_comments = message.trailing_comments; + if (message.leading_detached_comments && message.leading_detached_comments.length) { + object.leading_detached_comments = []; + for (let j = 0; j < message.leading_detached_comments.length; ++j) + object.leading_detached_comments[j] = message.leading_detached_comments[j]; + } + return object; + }; - return HttpRule; + /** + * Converts this Location to JSON. + * @function toJSON + * @memberof google.protobuf.SourceCodeInfo.Location + * @instance + * @returns {Object.} JSON object + */ + Location.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return Location; + })(); + + return SourceCodeInfo; })(); - api.CustomHttpPattern = (function() { + protobuf.GeneratedCodeInfo = (function() { /** - * Properties of a CustomHttpPattern. - * @memberof google.api - * @interface ICustomHttpPattern - * @property {string|null} [kind] CustomHttpPattern kind - * @property {string|null} [path] CustomHttpPattern path + * Properties of a GeneratedCodeInfo. + * @memberof google.protobuf + * @interface IGeneratedCodeInfo + * @property {Array.|null} [annotation] GeneratedCodeInfo annotation */ /** - * Constructs a new CustomHttpPattern. - * @memberof google.api - * @classdesc Represents a CustomHttpPattern. - * @implements ICustomHttpPattern + * Constructs a new GeneratedCodeInfo. + * @memberof google.protobuf + * @classdesc Represents a GeneratedCodeInfo. + * @implements IGeneratedCodeInfo * @constructor - * @param {google.api.ICustomHttpPattern=} [properties] Properties to set + * @param {google.protobuf.IGeneratedCodeInfo=} [properties] Properties to set */ - function CustomHttpPattern(properties) { + function GeneratedCodeInfo(properties) { + this.annotation = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -17997,76 +24772,66 @@ export const google = $root.google = (() => { } /** - * CustomHttpPattern kind. - * @member {string} kind - * @memberof google.api.CustomHttpPattern - * @instance - */ - CustomHttpPattern.prototype.kind = ""; - - /** - * CustomHttpPattern path. - * @member {string} path - * @memberof google.api.CustomHttpPattern + * GeneratedCodeInfo annotation. + * @member {Array.} annotation + * @memberof google.protobuf.GeneratedCodeInfo * @instance */ - CustomHttpPattern.prototype.path = ""; + GeneratedCodeInfo.prototype.annotation = $util.emptyArray; /** - * Encodes the specified CustomHttpPattern message. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages. + * Encodes the specified GeneratedCodeInfo message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages. * @function encode - * @memberof google.api.CustomHttpPattern + * @memberof google.protobuf.GeneratedCodeInfo * @static - * @param {google.api.ICustomHttpPattern} message CustomHttpPattern message or plain object to encode + * @param {google.protobuf.IGeneratedCodeInfo} message GeneratedCodeInfo message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CustomHttpPattern.encode = function encode(message, writer) { + GeneratedCodeInfo.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.kind != null && Object.hasOwnProperty.call(message, "kind")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.kind); - if (message.path != null && Object.hasOwnProperty.call(message, "path")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.path); + if (message.annotation != null && message.annotation.length) + for (let i = 0; i < message.annotation.length; ++i) + $root.google.protobuf.GeneratedCodeInfo.Annotation.encode(message.annotation[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified CustomHttpPattern message, length delimited. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages. + * Encodes the specified GeneratedCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages. * @function encodeDelimited - * @memberof google.api.CustomHttpPattern + * @memberof google.protobuf.GeneratedCodeInfo * @static - * @param {google.api.ICustomHttpPattern} message CustomHttpPattern message or plain object to encode + * @param {google.protobuf.IGeneratedCodeInfo} message GeneratedCodeInfo message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CustomHttpPattern.encodeDelimited = function encodeDelimited(message, writer) { + GeneratedCodeInfo.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CustomHttpPattern message from the specified reader or buffer. + * Decodes a GeneratedCodeInfo message from the specified reader or buffer. * @function decode - * @memberof google.api.CustomHttpPattern + * @memberof google.protobuf.GeneratedCodeInfo * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.api.CustomHttpPattern} CustomHttpPattern + * @returns {google.protobuf.GeneratedCodeInfo} GeneratedCodeInfo * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CustomHttpPattern.decode = function decode(reader, length) { + GeneratedCodeInfo.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.CustomHttpPattern(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.GeneratedCodeInfo(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.kind = reader.string(); - break; - case 2: - message.path = reader.string(); + if (!(message.annotation && message.annotation.length)) + message.annotation = []; + message.annotation.push($root.google.protobuf.GeneratedCodeInfo.Annotation.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -18077,2407 +24842,2100 @@ export const google = $root.google = (() => { }; /** - * Decodes a CustomHttpPattern message from the specified reader or buffer, length delimited. + * Decodes a GeneratedCodeInfo message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.api.CustomHttpPattern + * @memberof google.protobuf.GeneratedCodeInfo * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.api.CustomHttpPattern} CustomHttpPattern + * @returns {google.protobuf.GeneratedCodeInfo} GeneratedCodeInfo * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CustomHttpPattern.decodeDelimited = function decodeDelimited(reader) { + GeneratedCodeInfo.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; - /** - * Verifies a CustomHttpPattern message. - * @function verify - * @memberof google.api.CustomHttpPattern - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CustomHttpPattern.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.kind != null && message.hasOwnProperty("kind")) - if (!$util.isString(message.kind)) - return "kind: string expected"; - if (message.path != null && message.hasOwnProperty("path")) - if (!$util.isString(message.path)) - return "path: string expected"; - return null; - }; - - /** - * Creates a CustomHttpPattern message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.api.CustomHttpPattern - * @static - * @param {Object.} object Plain object - * @returns {google.api.CustomHttpPattern} CustomHttpPattern - */ - CustomHttpPattern.fromObject = function fromObject(object) { - if (object instanceof $root.google.api.CustomHttpPattern) - return object; - let message = new $root.google.api.CustomHttpPattern(); - if (object.kind != null) - message.kind = String(object.kind); - if (object.path != null) - message.path = String(object.path); - return message; - }; - - /** - * Creates a plain object from a CustomHttpPattern message. Also converts values to other types if specified. - * @function toObject - * @memberof google.api.CustomHttpPattern - * @static - * @param {google.api.CustomHttpPattern} message CustomHttpPattern - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - CustomHttpPattern.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - object.kind = ""; - object.path = ""; - } - if (message.kind != null && message.hasOwnProperty("kind")) - object.kind = message.kind; - if (message.path != null && message.hasOwnProperty("path")) - object.path = message.path; - return object; - }; - - /** - * Converts this CustomHttpPattern to JSON. - * @function toJSON - * @memberof google.api.CustomHttpPattern - * @instance - * @returns {Object.} JSON object - */ - CustomHttpPattern.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return CustomHttpPattern; - })(); - - return api; - })(); - - return google; -})(); - -export const ibc = $root.ibc = (() => { - - /** - * Namespace ibc. - * @exports ibc - * @namespace - */ - const ibc = {}; - - ibc.applications = (function() { - - /** - * Namespace applications. - * @memberof ibc - * @namespace - */ - const applications = {}; - - applications.fee = (function() { - - /** - * Namespace fee. - * @memberof ibc.applications - * @namespace - */ - const fee = {}; - - fee.v1 = (function() { - - /** - * Namespace v1. - * @memberof ibc.applications.fee - * @namespace - */ - const v1 = {}; - - v1.Msg = (function() { - - /** - * Constructs a new Msg service. - * @memberof ibc.applications.fee.v1 - * @classdesc Represents a Msg - * @extends $protobuf.rpc.Service - * @constructor - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - */ - function Msg(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } - - (Msg.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Msg; - - /** - * Callback as used by {@link ibc.applications.fee.v1.Msg#registerPayee}. - * @memberof ibc.applications.fee.v1.Msg - * @typedef RegisterPayeeCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.applications.fee.v1.MsgRegisterPayeeResponse} [response] MsgRegisterPayeeResponse - */ - - /** - * Calls RegisterPayee. - * @function registerPayee - * @memberof ibc.applications.fee.v1.Msg - * @instance - * @param {ibc.applications.fee.v1.IMsgRegisterPayee} request MsgRegisterPayee message or plain object - * @param {ibc.applications.fee.v1.Msg.RegisterPayeeCallback} callback Node-style callback called with the error, if any, and MsgRegisterPayeeResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Msg.prototype.registerPayee = function registerPayee(request, callback) { - return this.rpcCall(registerPayee, $root.ibc.applications.fee.v1.MsgRegisterPayee, $root.ibc.applications.fee.v1.MsgRegisterPayeeResponse, request, callback); - }, "name", { value: "RegisterPayee" }); - - /** - * Calls RegisterPayee. - * @function registerPayee - * @memberof ibc.applications.fee.v1.Msg - * @instance - * @param {ibc.applications.fee.v1.IMsgRegisterPayee} request MsgRegisterPayee message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link ibc.applications.fee.v1.Msg#registerCounterpartyPayee}. - * @memberof ibc.applications.fee.v1.Msg - * @typedef RegisterCounterpartyPayeeCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.applications.fee.v1.MsgRegisterCounterpartyPayeeResponse} [response] MsgRegisterCounterpartyPayeeResponse - */ - - /** - * Calls RegisterCounterpartyPayee. - * @function registerCounterpartyPayee - * @memberof ibc.applications.fee.v1.Msg - * @instance - * @param {ibc.applications.fee.v1.IMsgRegisterCounterpartyPayee} request MsgRegisterCounterpartyPayee message or plain object - * @param {ibc.applications.fee.v1.Msg.RegisterCounterpartyPayeeCallback} callback Node-style callback called with the error, if any, and MsgRegisterCounterpartyPayeeResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Msg.prototype.registerCounterpartyPayee = function registerCounterpartyPayee(request, callback) { - return this.rpcCall(registerCounterpartyPayee, $root.ibc.applications.fee.v1.MsgRegisterCounterpartyPayee, $root.ibc.applications.fee.v1.MsgRegisterCounterpartyPayeeResponse, request, callback); - }, "name", { value: "RegisterCounterpartyPayee" }); - - /** - * Calls RegisterCounterpartyPayee. - * @function registerCounterpartyPayee - * @memberof ibc.applications.fee.v1.Msg - * @instance - * @param {ibc.applications.fee.v1.IMsgRegisterCounterpartyPayee} request MsgRegisterCounterpartyPayee message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link ibc.applications.fee.v1.Msg#payPacketFee}. - * @memberof ibc.applications.fee.v1.Msg - * @typedef PayPacketFeeCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.applications.fee.v1.MsgPayPacketFeeResponse} [response] MsgPayPacketFeeResponse - */ - - /** - * Calls PayPacketFee. - * @function payPacketFee - * @memberof ibc.applications.fee.v1.Msg - * @instance - * @param {ibc.applications.fee.v1.IMsgPayPacketFee} request MsgPayPacketFee message or plain object - * @param {ibc.applications.fee.v1.Msg.PayPacketFeeCallback} callback Node-style callback called with the error, if any, and MsgPayPacketFeeResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Msg.prototype.payPacketFee = function payPacketFee(request, callback) { - return this.rpcCall(payPacketFee, $root.ibc.applications.fee.v1.MsgPayPacketFee, $root.ibc.applications.fee.v1.MsgPayPacketFeeResponse, request, callback); - }, "name", { value: "PayPacketFee" }); - - /** - * Calls PayPacketFee. - * @function payPacketFee - * @memberof ibc.applications.fee.v1.Msg - * @instance - * @param {ibc.applications.fee.v1.IMsgPayPacketFee} request MsgPayPacketFee message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link ibc.applications.fee.v1.Msg#payPacketFeeAsync}. - * @memberof ibc.applications.fee.v1.Msg - * @typedef PayPacketFeeAsyncCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.applications.fee.v1.MsgPayPacketFeeAsyncResponse} [response] MsgPayPacketFeeAsyncResponse - */ - - /** - * Calls PayPacketFeeAsync. - * @function payPacketFeeAsync - * @memberof ibc.applications.fee.v1.Msg - * @instance - * @param {ibc.applications.fee.v1.IMsgPayPacketFeeAsync} request MsgPayPacketFeeAsync message or plain object - * @param {ibc.applications.fee.v1.Msg.PayPacketFeeAsyncCallback} callback Node-style callback called with the error, if any, and MsgPayPacketFeeAsyncResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Msg.prototype.payPacketFeeAsync = function payPacketFeeAsync(request, callback) { - return this.rpcCall(payPacketFeeAsync, $root.ibc.applications.fee.v1.MsgPayPacketFeeAsync, $root.ibc.applications.fee.v1.MsgPayPacketFeeAsyncResponse, request, callback); - }, "name", { value: "PayPacketFeeAsync" }); - - /** - * Calls PayPacketFeeAsync. - * @function payPacketFeeAsync - * @memberof ibc.applications.fee.v1.Msg - * @instance - * @param {ibc.applications.fee.v1.IMsgPayPacketFeeAsync} request MsgPayPacketFeeAsync message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - return Msg; - })(); - - v1.MsgRegisterPayee = (function() { - - /** - * Properties of a MsgRegisterPayee. - * @memberof ibc.applications.fee.v1 - * @interface IMsgRegisterPayee - * @property {string|null} [port_id] MsgRegisterPayee port_id - * @property {string|null} [channel_id] MsgRegisterPayee channel_id - * @property {string|null} [relayer] MsgRegisterPayee relayer - * @property {string|null} [payee] MsgRegisterPayee payee - */ - - /** - * Constructs a new MsgRegisterPayee. - * @memberof ibc.applications.fee.v1 - * @classdesc Represents a MsgRegisterPayee. - * @implements IMsgRegisterPayee - * @constructor - * @param {ibc.applications.fee.v1.IMsgRegisterPayee=} [properties] Properties to set - */ - function MsgRegisterPayee(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * MsgRegisterPayee port_id. - * @member {string} port_id - * @memberof ibc.applications.fee.v1.MsgRegisterPayee - * @instance - */ - MsgRegisterPayee.prototype.port_id = ""; - - /** - * MsgRegisterPayee channel_id. - * @member {string} channel_id - * @memberof ibc.applications.fee.v1.MsgRegisterPayee - * @instance - */ - MsgRegisterPayee.prototype.channel_id = ""; - - /** - * MsgRegisterPayee relayer. - * @member {string} relayer - * @memberof ibc.applications.fee.v1.MsgRegisterPayee - * @instance - */ - MsgRegisterPayee.prototype.relayer = ""; - - /** - * MsgRegisterPayee payee. - * @member {string} payee - * @memberof ibc.applications.fee.v1.MsgRegisterPayee - * @instance - */ - MsgRegisterPayee.prototype.payee = ""; - - /** - * Encodes the specified MsgRegisterPayee message. Does not implicitly {@link ibc.applications.fee.v1.MsgRegisterPayee.verify|verify} messages. - * @function encode - * @memberof ibc.applications.fee.v1.MsgRegisterPayee - * @static - * @param {ibc.applications.fee.v1.IMsgRegisterPayee} message MsgRegisterPayee message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MsgRegisterPayee.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.port_id != null && Object.hasOwnProperty.call(message, "port_id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.port_id); - if (message.channel_id != null && Object.hasOwnProperty.call(message, "channel_id")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.channel_id); - if (message.relayer != null && Object.hasOwnProperty.call(message, "relayer")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.relayer); - if (message.payee != null && Object.hasOwnProperty.call(message, "payee")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.payee); - return writer; - }; - - /** - * Encodes the specified MsgRegisterPayee message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.MsgRegisterPayee.verify|verify} messages. - * @function encodeDelimited - * @memberof ibc.applications.fee.v1.MsgRegisterPayee - * @static - * @param {ibc.applications.fee.v1.IMsgRegisterPayee} message MsgRegisterPayee message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MsgRegisterPayee.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Verifies a GeneratedCodeInfo message. + * @function verify + * @memberof google.protobuf.GeneratedCodeInfo + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GeneratedCodeInfo.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.annotation != null && message.hasOwnProperty("annotation")) { + if (!Array.isArray(message.annotation)) + return "annotation: array expected"; + for (let i = 0; i < message.annotation.length; ++i) { + let error = $root.google.protobuf.GeneratedCodeInfo.Annotation.verify(message.annotation[i]); + if (error) + return "annotation." + error; + } + } + return null; + }; - /** - * Decodes a MsgRegisterPayee message from the specified reader or buffer. - * @function decode - * @memberof ibc.applications.fee.v1.MsgRegisterPayee - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.fee.v1.MsgRegisterPayee} MsgRegisterPayee - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MsgRegisterPayee.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.MsgRegisterPayee(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.port_id = reader.string(); - break; - case 2: - message.channel_id = reader.string(); - break; - case 3: - message.relayer = reader.string(); - break; - case 4: - message.payee = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Creates a GeneratedCodeInfo message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.GeneratedCodeInfo + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.GeneratedCodeInfo} GeneratedCodeInfo + */ + GeneratedCodeInfo.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.GeneratedCodeInfo) + return object; + let message = new $root.google.protobuf.GeneratedCodeInfo(); + if (object.annotation) { + if (!Array.isArray(object.annotation)) + throw TypeError(".google.protobuf.GeneratedCodeInfo.annotation: array expected"); + message.annotation = []; + for (let i = 0; i < object.annotation.length; ++i) { + if (typeof object.annotation[i] !== "object") + throw TypeError(".google.protobuf.GeneratedCodeInfo.annotation: object expected"); + message.annotation[i] = $root.google.protobuf.GeneratedCodeInfo.Annotation.fromObject(object.annotation[i]); + } + } + return message; + }; - /** - * Decodes a MsgRegisterPayee message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ibc.applications.fee.v1.MsgRegisterPayee - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.fee.v1.MsgRegisterPayee} MsgRegisterPayee - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MsgRegisterPayee.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Creates a plain object from a GeneratedCodeInfo message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.GeneratedCodeInfo + * @static + * @param {google.protobuf.GeneratedCodeInfo} message GeneratedCodeInfo + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GeneratedCodeInfo.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) + object.annotation = []; + if (message.annotation && message.annotation.length) { + object.annotation = []; + for (let j = 0; j < message.annotation.length; ++j) + object.annotation[j] = $root.google.protobuf.GeneratedCodeInfo.Annotation.toObject(message.annotation[j], options); + } + return object; + }; - /** - * Verifies a MsgRegisterPayee message. - * @function verify - * @memberof ibc.applications.fee.v1.MsgRegisterPayee - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - MsgRegisterPayee.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.port_id != null && message.hasOwnProperty("port_id")) - if (!$util.isString(message.port_id)) - return "port_id: string expected"; - if (message.channel_id != null && message.hasOwnProperty("channel_id")) - if (!$util.isString(message.channel_id)) - return "channel_id: string expected"; - if (message.relayer != null && message.hasOwnProperty("relayer")) - if (!$util.isString(message.relayer)) - return "relayer: string expected"; - if (message.payee != null && message.hasOwnProperty("payee")) - if (!$util.isString(message.payee)) - return "payee: string expected"; - return null; - }; + /** + * Converts this GeneratedCodeInfo to JSON. + * @function toJSON + * @memberof google.protobuf.GeneratedCodeInfo + * @instance + * @returns {Object.} JSON object + */ + GeneratedCodeInfo.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Creates a MsgRegisterPayee message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof ibc.applications.fee.v1.MsgRegisterPayee - * @static - * @param {Object.} object Plain object - * @returns {ibc.applications.fee.v1.MsgRegisterPayee} MsgRegisterPayee - */ - MsgRegisterPayee.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.fee.v1.MsgRegisterPayee) - return object; - let message = new $root.ibc.applications.fee.v1.MsgRegisterPayee(); - if (object.port_id != null) - message.port_id = String(object.port_id); - if (object.channel_id != null) - message.channel_id = String(object.channel_id); - if (object.relayer != null) - message.relayer = String(object.relayer); - if (object.payee != null) - message.payee = String(object.payee); - return message; - }; + GeneratedCodeInfo.Annotation = (function() { - /** - * Creates a plain object from a MsgRegisterPayee message. Also converts values to other types if specified. - * @function toObject - * @memberof ibc.applications.fee.v1.MsgRegisterPayee - * @static - * @param {ibc.applications.fee.v1.MsgRegisterPayee} message MsgRegisterPayee - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - MsgRegisterPayee.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - object.port_id = ""; - object.channel_id = ""; - object.relayer = ""; - object.payee = ""; - } - if (message.port_id != null && message.hasOwnProperty("port_id")) - object.port_id = message.port_id; - if (message.channel_id != null && message.hasOwnProperty("channel_id")) - object.channel_id = message.channel_id; - if (message.relayer != null && message.hasOwnProperty("relayer")) - object.relayer = message.relayer; - if (message.payee != null && message.hasOwnProperty("payee")) - object.payee = message.payee; - return object; - }; + /** + * Properties of an Annotation. + * @memberof google.protobuf.GeneratedCodeInfo + * @interface IAnnotation + * @property {Array.|null} [path] Annotation path + * @property {string|null} [source_file] Annotation source_file + * @property {number|null} [begin] Annotation begin + * @property {number|null} [end] Annotation end + */ - /** - * Converts this MsgRegisterPayee to JSON. - * @function toJSON - * @memberof ibc.applications.fee.v1.MsgRegisterPayee - * @instance - * @returns {Object.} JSON object - */ - MsgRegisterPayee.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Constructs a new Annotation. + * @memberof google.protobuf.GeneratedCodeInfo + * @classdesc Represents an Annotation. + * @implements IAnnotation + * @constructor + * @param {google.protobuf.GeneratedCodeInfo.IAnnotation=} [properties] Properties to set + */ + function Annotation(properties) { + this.path = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - return MsgRegisterPayee; - })(); + /** + * Annotation path. + * @member {Array.} path + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @instance + */ + Annotation.prototype.path = $util.emptyArray; - v1.MsgRegisterPayeeResponse = (function() { + /** + * Annotation source_file. + * @member {string} source_file + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @instance + */ + Annotation.prototype.source_file = ""; - /** - * Properties of a MsgRegisterPayeeResponse. - * @memberof ibc.applications.fee.v1 - * @interface IMsgRegisterPayeeResponse - */ + /** + * Annotation begin. + * @member {number} begin + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @instance + */ + Annotation.prototype.begin = 0; - /** - * Constructs a new MsgRegisterPayeeResponse. - * @memberof ibc.applications.fee.v1 - * @classdesc Represents a MsgRegisterPayeeResponse. - * @implements IMsgRegisterPayeeResponse - * @constructor - * @param {ibc.applications.fee.v1.IMsgRegisterPayeeResponse=} [properties] Properties to set - */ - function MsgRegisterPayeeResponse(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Annotation end. + * @member {number} end + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @instance + */ + Annotation.prototype.end = 0; - /** - * Encodes the specified MsgRegisterPayeeResponse message. Does not implicitly {@link ibc.applications.fee.v1.MsgRegisterPayeeResponse.verify|verify} messages. - * @function encode - * @memberof ibc.applications.fee.v1.MsgRegisterPayeeResponse - * @static - * @param {ibc.applications.fee.v1.IMsgRegisterPayeeResponse} message MsgRegisterPayeeResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MsgRegisterPayeeResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; + /** + * Encodes the specified Annotation message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages. + * @function encode + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {google.protobuf.GeneratedCodeInfo.IAnnotation} message Annotation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Annotation.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.path != null && message.path.length) { + writer.uint32(/* id 1, wireType 2 =*/10).fork(); + for (let i = 0; i < message.path.length; ++i) + writer.int32(message.path[i]); + writer.ldelim(); + } + if (message.source_file != null && Object.hasOwnProperty.call(message, "source_file")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.source_file); + if (message.begin != null && Object.hasOwnProperty.call(message, "begin")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.begin); + if (message.end != null && Object.hasOwnProperty.call(message, "end")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.end); + return writer; + }; - /** - * Encodes the specified MsgRegisterPayeeResponse message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.MsgRegisterPayeeResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof ibc.applications.fee.v1.MsgRegisterPayeeResponse - * @static - * @param {ibc.applications.fee.v1.IMsgRegisterPayeeResponse} message MsgRegisterPayeeResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MsgRegisterPayeeResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified Annotation message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {google.protobuf.GeneratedCodeInfo.IAnnotation} message Annotation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Annotation.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a MsgRegisterPayeeResponse message from the specified reader or buffer. - * @function decode - * @memberof ibc.applications.fee.v1.MsgRegisterPayeeResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.fee.v1.MsgRegisterPayeeResponse} MsgRegisterPayeeResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MsgRegisterPayeeResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.MsgRegisterPayeeResponse(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } + /** + * Decodes an Annotation message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.GeneratedCodeInfo.Annotation} Annotation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Annotation.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.GeneratedCodeInfo.Annotation(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.path && message.path.length)) + message.path = []; + if ((tag & 7) === 2) { + let end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.path.push(reader.int32()); + } else + message.path.push(reader.int32()); + break; + case 2: + message.source_file = reader.string(); + break; + case 3: + message.begin = reader.int32(); + break; + case 4: + message.end = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; } - return message; - }; + } + return message; + }; - /** - * Decodes a MsgRegisterPayeeResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ibc.applications.fee.v1.MsgRegisterPayeeResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.fee.v1.MsgRegisterPayeeResponse} MsgRegisterPayeeResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MsgRegisterPayeeResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes an Annotation message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.GeneratedCodeInfo.Annotation} Annotation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Annotation.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies a MsgRegisterPayeeResponse message. - * @function verify - * @memberof ibc.applications.fee.v1.MsgRegisterPayeeResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - MsgRegisterPayeeResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; + /** + * Verifies an Annotation message. + * @function verify + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Annotation.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.path != null && message.hasOwnProperty("path")) { + if (!Array.isArray(message.path)) + return "path: array expected"; + for (let i = 0; i < message.path.length; ++i) + if (!$util.isInteger(message.path[i])) + return "path: integer[] expected"; + } + if (message.source_file != null && message.hasOwnProperty("source_file")) + if (!$util.isString(message.source_file)) + return "source_file: string expected"; + if (message.begin != null && message.hasOwnProperty("begin")) + if (!$util.isInteger(message.begin)) + return "begin: integer expected"; + if (message.end != null && message.hasOwnProperty("end")) + if (!$util.isInteger(message.end)) + return "end: integer expected"; + return null; + }; + + /** + * Creates an Annotation message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.GeneratedCodeInfo.Annotation} Annotation + */ + Annotation.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.GeneratedCodeInfo.Annotation) + return object; + let message = new $root.google.protobuf.GeneratedCodeInfo.Annotation(); + if (object.path) { + if (!Array.isArray(object.path)) + throw TypeError(".google.protobuf.GeneratedCodeInfo.Annotation.path: array expected"); + message.path = []; + for (let i = 0; i < object.path.length; ++i) + message.path[i] = object.path[i] | 0; + } + if (object.source_file != null) + message.source_file = String(object.source_file); + if (object.begin != null) + message.begin = object.begin | 0; + if (object.end != null) + message.end = object.end | 0; + return message; + }; - /** - * Creates a MsgRegisterPayeeResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof ibc.applications.fee.v1.MsgRegisterPayeeResponse - * @static - * @param {Object.} object Plain object - * @returns {ibc.applications.fee.v1.MsgRegisterPayeeResponse} MsgRegisterPayeeResponse - */ - MsgRegisterPayeeResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.fee.v1.MsgRegisterPayeeResponse) - return object; - return new $root.ibc.applications.fee.v1.MsgRegisterPayeeResponse(); - }; + /** + * Creates a plain object from an Annotation message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {google.protobuf.GeneratedCodeInfo.Annotation} message Annotation + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Annotation.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) + object.path = []; + if (options.defaults) { + object.source_file = ""; + object.begin = 0; + object.end = 0; + } + if (message.path && message.path.length) { + object.path = []; + for (let j = 0; j < message.path.length; ++j) + object.path[j] = message.path[j]; + } + if (message.source_file != null && message.hasOwnProperty("source_file")) + object.source_file = message.source_file; + if (message.begin != null && message.hasOwnProperty("begin")) + object.begin = message.begin; + if (message.end != null && message.hasOwnProperty("end")) + object.end = message.end; + return object; + }; - /** - * Creates a plain object from a MsgRegisterPayeeResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof ibc.applications.fee.v1.MsgRegisterPayeeResponse - * @static - * @param {ibc.applications.fee.v1.MsgRegisterPayeeResponse} message MsgRegisterPayeeResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - MsgRegisterPayeeResponse.toObject = function toObject() { - return {}; - }; + /** + * Converts this Annotation to JSON. + * @function toJSON + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @instance + * @returns {Object.} JSON object + */ + Annotation.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Converts this MsgRegisterPayeeResponse to JSON. - * @function toJSON - * @memberof ibc.applications.fee.v1.MsgRegisterPayeeResponse - * @instance - * @returns {Object.} JSON object - */ - MsgRegisterPayeeResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + return Annotation; + })(); - return MsgRegisterPayeeResponse; - })(); + return GeneratedCodeInfo; + })(); - v1.MsgRegisterCounterpartyPayee = (function() { + protobuf.Any = (function() { - /** - * Properties of a MsgRegisterCounterpartyPayee. - * @memberof ibc.applications.fee.v1 - * @interface IMsgRegisterCounterpartyPayee - * @property {string|null} [port_id] MsgRegisterCounterpartyPayee port_id - * @property {string|null} [channel_id] MsgRegisterCounterpartyPayee channel_id - * @property {string|null} [relayer] MsgRegisterCounterpartyPayee relayer - * @property {string|null} [counterparty_payee] MsgRegisterCounterpartyPayee counterparty_payee - */ + /** + * Properties of an Any. + * @memberof google.protobuf + * @interface IAny + * @property {string|null} [type_url] Any type_url + * @property {Uint8Array|null} [value] Any value + */ - /** - * Constructs a new MsgRegisterCounterpartyPayee. - * @memberof ibc.applications.fee.v1 - * @classdesc Represents a MsgRegisterCounterpartyPayee. - * @implements IMsgRegisterCounterpartyPayee - * @constructor - * @param {ibc.applications.fee.v1.IMsgRegisterCounterpartyPayee=} [properties] Properties to set - */ - function MsgRegisterCounterpartyPayee(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Constructs a new Any. + * @memberof google.protobuf + * @classdesc Represents an Any. + * @implements IAny + * @constructor + * @param {google.protobuf.IAny=} [properties] Properties to set + */ + function Any(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * MsgRegisterCounterpartyPayee port_id. - * @member {string} port_id - * @memberof ibc.applications.fee.v1.MsgRegisterCounterpartyPayee - * @instance - */ - MsgRegisterCounterpartyPayee.prototype.port_id = ""; + /** + * Any type_url. + * @member {string} type_url + * @memberof google.protobuf.Any + * @instance + */ + Any.prototype.type_url = ""; - /** - * MsgRegisterCounterpartyPayee channel_id. - * @member {string} channel_id - * @memberof ibc.applications.fee.v1.MsgRegisterCounterpartyPayee - * @instance - */ - MsgRegisterCounterpartyPayee.prototype.channel_id = ""; + /** + * Any value. + * @member {Uint8Array} value + * @memberof google.protobuf.Any + * @instance + */ + Any.prototype.value = $util.newBuffer([]); - /** - * MsgRegisterCounterpartyPayee relayer. - * @member {string} relayer - * @memberof ibc.applications.fee.v1.MsgRegisterCounterpartyPayee - * @instance - */ - MsgRegisterCounterpartyPayee.prototype.relayer = ""; + /** + * Encodes the specified Any message. Does not implicitly {@link google.protobuf.Any.verify|verify} messages. + * @function encode + * @memberof google.protobuf.Any + * @static + * @param {google.protobuf.IAny} message Any message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Any.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.type_url != null && Object.hasOwnProperty.call(message, "type_url")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.type_url); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.value); + return writer; + }; - /** - * MsgRegisterCounterpartyPayee counterparty_payee. - * @member {string} counterparty_payee - * @memberof ibc.applications.fee.v1.MsgRegisterCounterpartyPayee - * @instance - */ - MsgRegisterCounterpartyPayee.prototype.counterparty_payee = ""; + /** + * Encodes the specified Any message, length delimited. Does not implicitly {@link google.protobuf.Any.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.Any + * @static + * @param {google.protobuf.IAny} message Any message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Any.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Encodes the specified MsgRegisterCounterpartyPayee message. Does not implicitly {@link ibc.applications.fee.v1.MsgRegisterCounterpartyPayee.verify|verify} messages. - * @function encode - * @memberof ibc.applications.fee.v1.MsgRegisterCounterpartyPayee - * @static - * @param {ibc.applications.fee.v1.IMsgRegisterCounterpartyPayee} message MsgRegisterCounterpartyPayee message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MsgRegisterCounterpartyPayee.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.port_id != null && Object.hasOwnProperty.call(message, "port_id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.port_id); - if (message.channel_id != null && Object.hasOwnProperty.call(message, "channel_id")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.channel_id); - if (message.relayer != null && Object.hasOwnProperty.call(message, "relayer")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.relayer); - if (message.counterparty_payee != null && Object.hasOwnProperty.call(message, "counterparty_payee")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.counterparty_payee); - return writer; - }; + /** + * Decodes an Any message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.Any + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.Any} Any + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Any.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Any(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.type_url = reader.string(); + break; + case 2: + message.value = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Encodes the specified MsgRegisterCounterpartyPayee message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.MsgRegisterCounterpartyPayee.verify|verify} messages. - * @function encodeDelimited - * @memberof ibc.applications.fee.v1.MsgRegisterCounterpartyPayee - * @static - * @param {ibc.applications.fee.v1.IMsgRegisterCounterpartyPayee} message MsgRegisterCounterpartyPayee message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MsgRegisterCounterpartyPayee.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Decodes an Any message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.Any + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.Any} Any + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Any.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Decodes a MsgRegisterCounterpartyPayee message from the specified reader or buffer. - * @function decode - * @memberof ibc.applications.fee.v1.MsgRegisterCounterpartyPayee - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.fee.v1.MsgRegisterCounterpartyPayee} MsgRegisterCounterpartyPayee - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MsgRegisterCounterpartyPayee.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.MsgRegisterCounterpartyPayee(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.port_id = reader.string(); - break; - case 2: - message.channel_id = reader.string(); - break; - case 3: - message.relayer = reader.string(); - break; - case 4: - message.counterparty_payee = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Verifies an Any message. + * @function verify + * @memberof google.protobuf.Any + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Any.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.type_url != null && message.hasOwnProperty("type_url")) + if (!$util.isString(message.type_url)) + return "type_url: string expected"; + if (message.value != null && message.hasOwnProperty("value")) + if (!(message.value && typeof message.value.length === "number" || $util.isString(message.value))) + return "value: buffer expected"; + return null; + }; - /** - * Decodes a MsgRegisterCounterpartyPayee message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ibc.applications.fee.v1.MsgRegisterCounterpartyPayee - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.fee.v1.MsgRegisterCounterpartyPayee} MsgRegisterCounterpartyPayee - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MsgRegisterCounterpartyPayee.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Creates an Any message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.Any + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.Any} Any + */ + Any.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.Any) + return object; + let message = new $root.google.protobuf.Any(); + if (object.type_url != null) + message.type_url = String(object.type_url); + if (object.value != null) + if (typeof object.value === "string") + $util.base64.decode(object.value, message.value = $util.newBuffer($util.base64.length(object.value)), 0); + else if (object.value.length) + message.value = object.value; + return message; + }; - /** - * Verifies a MsgRegisterCounterpartyPayee message. - * @function verify - * @memberof ibc.applications.fee.v1.MsgRegisterCounterpartyPayee - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - MsgRegisterCounterpartyPayee.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.port_id != null && message.hasOwnProperty("port_id")) - if (!$util.isString(message.port_id)) - return "port_id: string expected"; - if (message.channel_id != null && message.hasOwnProperty("channel_id")) - if (!$util.isString(message.channel_id)) - return "channel_id: string expected"; - if (message.relayer != null && message.hasOwnProperty("relayer")) - if (!$util.isString(message.relayer)) - return "relayer: string expected"; - if (message.counterparty_payee != null && message.hasOwnProperty("counterparty_payee")) - if (!$util.isString(message.counterparty_payee)) - return "counterparty_payee: string expected"; - return null; - }; + /** + * Creates a plain object from an Any message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.Any + * @static + * @param {google.protobuf.Any} message Any + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Any.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + object.type_url = ""; + if (options.bytes === String) + object.value = ""; + else { + object.value = []; + if (options.bytes !== Array) + object.value = $util.newBuffer(object.value); + } + } + if (message.type_url != null && message.hasOwnProperty("type_url")) + object.type_url = message.type_url; + if (message.value != null && message.hasOwnProperty("value")) + object.value = options.bytes === String ? $util.base64.encode(message.value, 0, message.value.length) : options.bytes === Array ? Array.prototype.slice.call(message.value) : message.value; + return object; + }; - /** - * Creates a MsgRegisterCounterpartyPayee message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof ibc.applications.fee.v1.MsgRegisterCounterpartyPayee - * @static - * @param {Object.} object Plain object - * @returns {ibc.applications.fee.v1.MsgRegisterCounterpartyPayee} MsgRegisterCounterpartyPayee - */ - MsgRegisterCounterpartyPayee.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.fee.v1.MsgRegisterCounterpartyPayee) - return object; - let message = new $root.ibc.applications.fee.v1.MsgRegisterCounterpartyPayee(); - if (object.port_id != null) - message.port_id = String(object.port_id); - if (object.channel_id != null) - message.channel_id = String(object.channel_id); - if (object.relayer != null) - message.relayer = String(object.relayer); - if (object.counterparty_payee != null) - message.counterparty_payee = String(object.counterparty_payee); - return message; - }; + /** + * Converts this Any to JSON. + * @function toJSON + * @memberof google.protobuf.Any + * @instance + * @returns {Object.} JSON object + */ + Any.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Creates a plain object from a MsgRegisterCounterpartyPayee message. Also converts values to other types if specified. - * @function toObject - * @memberof ibc.applications.fee.v1.MsgRegisterCounterpartyPayee - * @static - * @param {ibc.applications.fee.v1.MsgRegisterCounterpartyPayee} message MsgRegisterCounterpartyPayee - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - MsgRegisterCounterpartyPayee.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - object.port_id = ""; - object.channel_id = ""; - object.relayer = ""; - object.counterparty_payee = ""; - } - if (message.port_id != null && message.hasOwnProperty("port_id")) - object.port_id = message.port_id; - if (message.channel_id != null && message.hasOwnProperty("channel_id")) - object.channel_id = message.channel_id; - if (message.relayer != null && message.hasOwnProperty("relayer")) - object.relayer = message.relayer; - if (message.counterparty_payee != null && message.hasOwnProperty("counterparty_payee")) - object.counterparty_payee = message.counterparty_payee; - return object; - }; + return Any; + })(); - /** - * Converts this MsgRegisterCounterpartyPayee to JSON. - * @function toJSON - * @memberof ibc.applications.fee.v1.MsgRegisterCounterpartyPayee - * @instance - * @returns {Object.} JSON object - */ - MsgRegisterCounterpartyPayee.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + protobuf.Timestamp = (function() { - return MsgRegisterCounterpartyPayee; - })(); + /** + * Properties of a Timestamp. + * @memberof google.protobuf + * @interface ITimestamp + * @property {Long|null} [seconds] Timestamp seconds + * @property {number|null} [nanos] Timestamp nanos + */ - v1.MsgRegisterCounterpartyPayeeResponse = (function() { + /** + * Constructs a new Timestamp. + * @memberof google.protobuf + * @classdesc Represents a Timestamp. + * @implements ITimestamp + * @constructor + * @param {google.protobuf.ITimestamp=} [properties] Properties to set + */ + function Timestamp(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Properties of a MsgRegisterCounterpartyPayeeResponse. - * @memberof ibc.applications.fee.v1 - * @interface IMsgRegisterCounterpartyPayeeResponse - */ + /** + * Timestamp seconds. + * @member {Long} seconds + * @memberof google.protobuf.Timestamp + * @instance + */ + Timestamp.prototype.seconds = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - /** - * Constructs a new MsgRegisterCounterpartyPayeeResponse. - * @memberof ibc.applications.fee.v1 - * @classdesc Represents a MsgRegisterCounterpartyPayeeResponse. - * @implements IMsgRegisterCounterpartyPayeeResponse - * @constructor - * @param {ibc.applications.fee.v1.IMsgRegisterCounterpartyPayeeResponse=} [properties] Properties to set - */ - function MsgRegisterCounterpartyPayeeResponse(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + /** + * Timestamp nanos. + * @member {number} nanos + * @memberof google.protobuf.Timestamp + * @instance + */ + Timestamp.prototype.nanos = 0; + + /** + * Encodes the specified Timestamp message. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages. + * @function encode + * @memberof google.protobuf.Timestamp + * @static + * @param {google.protobuf.ITimestamp} message Timestamp message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Timestamp.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.seconds != null && Object.hasOwnProperty.call(message, "seconds")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.seconds); + if (message.nanos != null && Object.hasOwnProperty.call(message, "nanos")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.nanos); + return writer; + }; + + /** + * Encodes the specified Timestamp message, length delimited. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.Timestamp + * @static + * @param {google.protobuf.ITimestamp} message Timestamp message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Timestamp.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Timestamp message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.Timestamp + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.Timestamp} Timestamp + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Timestamp.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Timestamp(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.seconds = reader.int64(); + break; + case 2: + message.nanos = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; } + } + return message; + }; - /** - * Encodes the specified MsgRegisterCounterpartyPayeeResponse message. Does not implicitly {@link ibc.applications.fee.v1.MsgRegisterCounterpartyPayeeResponse.verify|verify} messages. - * @function encode - * @memberof ibc.applications.fee.v1.MsgRegisterCounterpartyPayeeResponse - * @static - * @param {ibc.applications.fee.v1.IMsgRegisterCounterpartyPayeeResponse} message MsgRegisterCounterpartyPayeeResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MsgRegisterCounterpartyPayeeResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; + /** + * Decodes a Timestamp message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.Timestamp + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.Timestamp} Timestamp + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Timestamp.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Encodes the specified MsgRegisterCounterpartyPayeeResponse message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.MsgRegisterCounterpartyPayeeResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof ibc.applications.fee.v1.MsgRegisterCounterpartyPayeeResponse - * @static - * @param {ibc.applications.fee.v1.IMsgRegisterCounterpartyPayeeResponse} message MsgRegisterCounterpartyPayeeResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MsgRegisterCounterpartyPayeeResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Verifies a Timestamp message. + * @function verify + * @memberof google.protobuf.Timestamp + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Timestamp.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.seconds != null && message.hasOwnProperty("seconds")) + if (!$util.isInteger(message.seconds) && !(message.seconds && $util.isInteger(message.seconds.low) && $util.isInteger(message.seconds.high))) + return "seconds: integer|Long expected"; + if (message.nanos != null && message.hasOwnProperty("nanos")) + if (!$util.isInteger(message.nanos)) + return "nanos: integer expected"; + return null; + }; - /** - * Decodes a MsgRegisterCounterpartyPayeeResponse message from the specified reader or buffer. - * @function decode - * @memberof ibc.applications.fee.v1.MsgRegisterCounterpartyPayeeResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.fee.v1.MsgRegisterCounterpartyPayeeResponse} MsgRegisterCounterpartyPayeeResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MsgRegisterCounterpartyPayeeResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.MsgRegisterCounterpartyPayeeResponse(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Creates a Timestamp message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.Timestamp + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.Timestamp} Timestamp + */ + Timestamp.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.Timestamp) + return object; + let message = new $root.google.protobuf.Timestamp(); + if (object.seconds != null) + if ($util.Long) + (message.seconds = $util.Long.fromValue(object.seconds)).unsigned = false; + else if (typeof object.seconds === "string") + message.seconds = parseInt(object.seconds, 10); + else if (typeof object.seconds === "number") + message.seconds = object.seconds; + else if (typeof object.seconds === "object") + message.seconds = new $util.LongBits(object.seconds.low >>> 0, object.seconds.high >>> 0).toNumber(); + if (object.nanos != null) + message.nanos = object.nanos | 0; + return message; + }; - /** - * Decodes a MsgRegisterCounterpartyPayeeResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ibc.applications.fee.v1.MsgRegisterCounterpartyPayeeResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.fee.v1.MsgRegisterCounterpartyPayeeResponse} MsgRegisterCounterpartyPayeeResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MsgRegisterCounterpartyPayeeResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Creates a plain object from a Timestamp message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.Timestamp + * @static + * @param {google.protobuf.Timestamp} message Timestamp + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Timestamp.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.seconds = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.seconds = options.longs === String ? "0" : 0; + object.nanos = 0; + } + if (message.seconds != null && message.hasOwnProperty("seconds")) + if (typeof message.seconds === "number") + object.seconds = options.longs === String ? String(message.seconds) : message.seconds; + else + object.seconds = options.longs === String ? $util.Long.prototype.toString.call(message.seconds) : options.longs === Number ? new $util.LongBits(message.seconds.low >>> 0, message.seconds.high >>> 0).toNumber() : message.seconds; + if (message.nanos != null && message.hasOwnProperty("nanos")) + object.nanos = message.nanos; + return object; + }; - /** - * Verifies a MsgRegisterCounterpartyPayeeResponse message. - * @function verify - * @memberof ibc.applications.fee.v1.MsgRegisterCounterpartyPayeeResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - MsgRegisterCounterpartyPayeeResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; + /** + * Converts this Timestamp to JSON. + * @function toJSON + * @memberof google.protobuf.Timestamp + * @instance + * @returns {Object.} JSON object + */ + Timestamp.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Creates a MsgRegisterCounterpartyPayeeResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof ibc.applications.fee.v1.MsgRegisterCounterpartyPayeeResponse - * @static - * @param {Object.} object Plain object - * @returns {ibc.applications.fee.v1.MsgRegisterCounterpartyPayeeResponse} MsgRegisterCounterpartyPayeeResponse - */ - MsgRegisterCounterpartyPayeeResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.fee.v1.MsgRegisterCounterpartyPayeeResponse) - return object; - return new $root.ibc.applications.fee.v1.MsgRegisterCounterpartyPayeeResponse(); - }; + return Timestamp; + })(); - /** - * Creates a plain object from a MsgRegisterCounterpartyPayeeResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof ibc.applications.fee.v1.MsgRegisterCounterpartyPayeeResponse - * @static - * @param {ibc.applications.fee.v1.MsgRegisterCounterpartyPayeeResponse} message MsgRegisterCounterpartyPayeeResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - MsgRegisterCounterpartyPayeeResponse.toObject = function toObject() { - return {}; - }; + protobuf.Duration = (function() { - /** - * Converts this MsgRegisterCounterpartyPayeeResponse to JSON. - * @function toJSON - * @memberof ibc.applications.fee.v1.MsgRegisterCounterpartyPayeeResponse - * @instance - * @returns {Object.} JSON object - */ - MsgRegisterCounterpartyPayeeResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Properties of a Duration. + * @memberof google.protobuf + * @interface IDuration + * @property {Long|null} [seconds] Duration seconds + * @property {number|null} [nanos] Duration nanos + */ - return MsgRegisterCounterpartyPayeeResponse; - })(); + /** + * Constructs a new Duration. + * @memberof google.protobuf + * @classdesc Represents a Duration. + * @implements IDuration + * @constructor + * @param {google.protobuf.IDuration=} [properties] Properties to set + */ + function Duration(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - v1.MsgPayPacketFee = (function() { + /** + * Duration seconds. + * @member {Long} seconds + * @memberof google.protobuf.Duration + * @instance + */ + Duration.prototype.seconds = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - /** - * Properties of a MsgPayPacketFee. - * @memberof ibc.applications.fee.v1 - * @interface IMsgPayPacketFee - * @property {ibc.applications.fee.v1.IFee|null} [fee] MsgPayPacketFee fee - * @property {string|null} [source_port_id] MsgPayPacketFee source_port_id - * @property {string|null} [source_channel_id] MsgPayPacketFee source_channel_id - * @property {string|null} [signer] MsgPayPacketFee signer - * @property {Array.|null} [relayers] MsgPayPacketFee relayers - */ + /** + * Duration nanos. + * @member {number} nanos + * @memberof google.protobuf.Duration + * @instance + */ + Duration.prototype.nanos = 0; - /** - * Constructs a new MsgPayPacketFee. - * @memberof ibc.applications.fee.v1 - * @classdesc Represents a MsgPayPacketFee. - * @implements IMsgPayPacketFee - * @constructor - * @param {ibc.applications.fee.v1.IMsgPayPacketFee=} [properties] Properties to set - */ - function MsgPayPacketFee(properties) { - this.relayers = []; - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + /** + * Encodes the specified Duration message. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages. + * @function encode + * @memberof google.protobuf.Duration + * @static + * @param {google.protobuf.IDuration} message Duration message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Duration.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.seconds != null && Object.hasOwnProperty.call(message, "seconds")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.seconds); + if (message.nanos != null && Object.hasOwnProperty.call(message, "nanos")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.nanos); + return writer; + }; + + /** + * Encodes the specified Duration message, length delimited. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.Duration + * @static + * @param {google.protobuf.IDuration} message Duration message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Duration.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Duration message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.Duration + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.Duration} Duration + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Duration.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Duration(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.seconds = reader.int64(); + break; + case 2: + message.nanos = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; } + } + return message; + }; - /** - * MsgPayPacketFee fee. - * @member {ibc.applications.fee.v1.IFee|null|undefined} fee - * @memberof ibc.applications.fee.v1.MsgPayPacketFee - * @instance - */ - MsgPayPacketFee.prototype.fee = null; + /** + * Decodes a Duration message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.Duration + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.Duration} Duration + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Duration.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Duration message. + * @function verify + * @memberof google.protobuf.Duration + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Duration.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.seconds != null && message.hasOwnProperty("seconds")) + if (!$util.isInteger(message.seconds) && !(message.seconds && $util.isInteger(message.seconds.low) && $util.isInteger(message.seconds.high))) + return "seconds: integer|Long expected"; + if (message.nanos != null && message.hasOwnProperty("nanos")) + if (!$util.isInteger(message.nanos)) + return "nanos: integer expected"; + return null; + }; - /** - * MsgPayPacketFee source_port_id. - * @member {string} source_port_id - * @memberof ibc.applications.fee.v1.MsgPayPacketFee - * @instance - */ - MsgPayPacketFee.prototype.source_port_id = ""; + /** + * Creates a Duration message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.Duration + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.Duration} Duration + */ + Duration.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.Duration) + return object; + let message = new $root.google.protobuf.Duration(); + if (object.seconds != null) + if ($util.Long) + (message.seconds = $util.Long.fromValue(object.seconds)).unsigned = false; + else if (typeof object.seconds === "string") + message.seconds = parseInt(object.seconds, 10); + else if (typeof object.seconds === "number") + message.seconds = object.seconds; + else if (typeof object.seconds === "object") + message.seconds = new $util.LongBits(object.seconds.low >>> 0, object.seconds.high >>> 0).toNumber(); + if (object.nanos != null) + message.nanos = object.nanos | 0; + return message; + }; - /** - * MsgPayPacketFee source_channel_id. - * @member {string} source_channel_id - * @memberof ibc.applications.fee.v1.MsgPayPacketFee - * @instance - */ - MsgPayPacketFee.prototype.source_channel_id = ""; + /** + * Creates a plain object from a Duration message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.Duration + * @static + * @param {google.protobuf.Duration} message Duration + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Duration.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + if ($util.Long) { + let long = new $util.Long(0, 0, false); + object.seconds = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.seconds = options.longs === String ? "0" : 0; + object.nanos = 0; + } + if (message.seconds != null && message.hasOwnProperty("seconds")) + if (typeof message.seconds === "number") + object.seconds = options.longs === String ? String(message.seconds) : message.seconds; + else + object.seconds = options.longs === String ? $util.Long.prototype.toString.call(message.seconds) : options.longs === Number ? new $util.LongBits(message.seconds.low >>> 0, message.seconds.high >>> 0).toNumber() : message.seconds; + if (message.nanos != null && message.hasOwnProperty("nanos")) + object.nanos = message.nanos; + return object; + }; - /** - * MsgPayPacketFee signer. - * @member {string} signer - * @memberof ibc.applications.fee.v1.MsgPayPacketFee - * @instance - */ - MsgPayPacketFee.prototype.signer = ""; + /** + * Converts this Duration to JSON. + * @function toJSON + * @memberof google.protobuf.Duration + * @instance + * @returns {Object.} JSON object + */ + Duration.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * MsgPayPacketFee relayers. - * @member {Array.} relayers - * @memberof ibc.applications.fee.v1.MsgPayPacketFee - * @instance - */ - MsgPayPacketFee.prototype.relayers = $util.emptyArray; + return Duration; + })(); - /** - * Encodes the specified MsgPayPacketFee message. Does not implicitly {@link ibc.applications.fee.v1.MsgPayPacketFee.verify|verify} messages. - * @function encode - * @memberof ibc.applications.fee.v1.MsgPayPacketFee - * @static - * @param {ibc.applications.fee.v1.IMsgPayPacketFee} message MsgPayPacketFee message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MsgPayPacketFee.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.fee != null && Object.hasOwnProperty.call(message, "fee")) - $root.ibc.applications.fee.v1.Fee.encode(message.fee, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.source_port_id != null && Object.hasOwnProperty.call(message, "source_port_id")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.source_port_id); - if (message.source_channel_id != null && Object.hasOwnProperty.call(message, "source_channel_id")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.source_channel_id); - if (message.signer != null && Object.hasOwnProperty.call(message, "signer")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.signer); - if (message.relayers != null && message.relayers.length) - for (let i = 0; i < message.relayers.length; ++i) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.relayers[i]); - return writer; - }; + return protobuf; + })(); - /** - * Encodes the specified MsgPayPacketFee message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.MsgPayPacketFee.verify|verify} messages. - * @function encodeDelimited - * @memberof ibc.applications.fee.v1.MsgPayPacketFee - * @static - * @param {ibc.applications.fee.v1.IMsgPayPacketFee} message MsgPayPacketFee message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MsgPayPacketFee.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + google.api = (function() { - /** - * Decodes a MsgPayPacketFee message from the specified reader or buffer. - * @function decode - * @memberof ibc.applications.fee.v1.MsgPayPacketFee - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.fee.v1.MsgPayPacketFee} MsgPayPacketFee - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MsgPayPacketFee.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.MsgPayPacketFee(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.fee = $root.ibc.applications.fee.v1.Fee.decode(reader, reader.uint32()); - break; - case 2: - message.source_port_id = reader.string(); - break; - case 3: - message.source_channel_id = reader.string(); - break; - case 4: - message.signer = reader.string(); - break; - case 5: - if (!(message.relayers && message.relayers.length)) - message.relayers = []; - message.relayers.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Namespace api. + * @memberof google + * @namespace + */ + const api = {}; - /** - * Decodes a MsgPayPacketFee message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ibc.applications.fee.v1.MsgPayPacketFee - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.fee.v1.MsgPayPacketFee} MsgPayPacketFee - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MsgPayPacketFee.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + api.Http = (function() { - /** - * Verifies a MsgPayPacketFee message. - * @function verify - * @memberof ibc.applications.fee.v1.MsgPayPacketFee - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - MsgPayPacketFee.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.fee != null && message.hasOwnProperty("fee")) { - let error = $root.ibc.applications.fee.v1.Fee.verify(message.fee); - if (error) - return "fee." + error; - } - if (message.source_port_id != null && message.hasOwnProperty("source_port_id")) - if (!$util.isString(message.source_port_id)) - return "source_port_id: string expected"; - if (message.source_channel_id != null && message.hasOwnProperty("source_channel_id")) - if (!$util.isString(message.source_channel_id)) - return "source_channel_id: string expected"; - if (message.signer != null && message.hasOwnProperty("signer")) - if (!$util.isString(message.signer)) - return "signer: string expected"; - if (message.relayers != null && message.hasOwnProperty("relayers")) { - if (!Array.isArray(message.relayers)) - return "relayers: array expected"; - for (let i = 0; i < message.relayers.length; ++i) - if (!$util.isString(message.relayers[i])) - return "relayers: string[] expected"; - } - return null; - }; + /** + * Properties of a Http. + * @memberof google.api + * @interface IHttp + * @property {Array.|null} [rules] Http rules + * @property {boolean|null} [fully_decode_reserved_expansion] Http fully_decode_reserved_expansion + */ - /** - * Creates a MsgPayPacketFee message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof ibc.applications.fee.v1.MsgPayPacketFee - * @static - * @param {Object.} object Plain object - * @returns {ibc.applications.fee.v1.MsgPayPacketFee} MsgPayPacketFee - */ - MsgPayPacketFee.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.fee.v1.MsgPayPacketFee) - return object; - let message = new $root.ibc.applications.fee.v1.MsgPayPacketFee(); - if (object.fee != null) { - if (typeof object.fee !== "object") - throw TypeError(".ibc.applications.fee.v1.MsgPayPacketFee.fee: object expected"); - message.fee = $root.ibc.applications.fee.v1.Fee.fromObject(object.fee); - } - if (object.source_port_id != null) - message.source_port_id = String(object.source_port_id); - if (object.source_channel_id != null) - message.source_channel_id = String(object.source_channel_id); - if (object.signer != null) - message.signer = String(object.signer); - if (object.relayers) { - if (!Array.isArray(object.relayers)) - throw TypeError(".ibc.applications.fee.v1.MsgPayPacketFee.relayers: array expected"); - message.relayers = []; - for (let i = 0; i < object.relayers.length; ++i) - message.relayers[i] = String(object.relayers[i]); - } - return message; - }; + /** + * Constructs a new Http. + * @memberof google.api + * @classdesc Represents a Http. + * @implements IHttp + * @constructor + * @param {google.api.IHttp=} [properties] Properties to set + */ + function Http(properties) { + this.rules = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Creates a plain object from a MsgPayPacketFee message. Also converts values to other types if specified. - * @function toObject - * @memberof ibc.applications.fee.v1.MsgPayPacketFee - * @static - * @param {ibc.applications.fee.v1.MsgPayPacketFee} message MsgPayPacketFee - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - MsgPayPacketFee.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.arrays || options.defaults) - object.relayers = []; - if (options.defaults) { - object.fee = null; - object.source_port_id = ""; - object.source_channel_id = ""; - object.signer = ""; - } - if (message.fee != null && message.hasOwnProperty("fee")) - object.fee = $root.ibc.applications.fee.v1.Fee.toObject(message.fee, options); - if (message.source_port_id != null && message.hasOwnProperty("source_port_id")) - object.source_port_id = message.source_port_id; - if (message.source_channel_id != null && message.hasOwnProperty("source_channel_id")) - object.source_channel_id = message.source_channel_id; - if (message.signer != null && message.hasOwnProperty("signer")) - object.signer = message.signer; - if (message.relayers && message.relayers.length) { - object.relayers = []; - for (let j = 0; j < message.relayers.length; ++j) - object.relayers[j] = message.relayers[j]; - } - return object; - }; + /** + * Http rules. + * @member {Array.} rules + * @memberof google.api.Http + * @instance + */ + Http.prototype.rules = $util.emptyArray; - /** - * Converts this MsgPayPacketFee to JSON. - * @function toJSON - * @memberof ibc.applications.fee.v1.MsgPayPacketFee - * @instance - * @returns {Object.} JSON object - */ - MsgPayPacketFee.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Http fully_decode_reserved_expansion. + * @member {boolean} fully_decode_reserved_expansion + * @memberof google.api.Http + * @instance + */ + Http.prototype.fully_decode_reserved_expansion = false; - return MsgPayPacketFee; - })(); + /** + * Encodes the specified Http message. Does not implicitly {@link google.api.Http.verify|verify} messages. + * @function encode + * @memberof google.api.Http + * @static + * @param {google.api.IHttp} message Http message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Http.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.rules != null && message.rules.length) + for (let i = 0; i < message.rules.length; ++i) + $root.google.api.HttpRule.encode(message.rules[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.fully_decode_reserved_expansion != null && Object.hasOwnProperty.call(message, "fully_decode_reserved_expansion")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.fully_decode_reserved_expansion); + return writer; + }; - v1.MsgPayPacketFeeResponse = (function() { + /** + * Encodes the specified Http message, length delimited. Does not implicitly {@link google.api.Http.verify|verify} messages. + * @function encodeDelimited + * @memberof google.api.Http + * @static + * @param {google.api.IHttp} message Http message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Http.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Properties of a MsgPayPacketFeeResponse. - * @memberof ibc.applications.fee.v1 - * @interface IMsgPayPacketFeeResponse - */ + /** + * Decodes a Http message from the specified reader or buffer. + * @function decode + * @memberof google.api.Http + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.api.Http} Http + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Http.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.Http(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.rules && message.rules.length)) + message.rules = []; + message.rules.push($root.google.api.HttpRule.decode(reader, reader.uint32())); + break; + case 2: + message.fully_decode_reserved_expansion = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Constructs a new MsgPayPacketFeeResponse. - * @memberof ibc.applications.fee.v1 - * @classdesc Represents a MsgPayPacketFeeResponse. - * @implements IMsgPayPacketFeeResponse - * @constructor - * @param {ibc.applications.fee.v1.IMsgPayPacketFeeResponse=} [properties] Properties to set - */ - function MsgPayPacketFeeResponse(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + /** + * Decodes a Http message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.api.Http + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.api.Http} Http + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Http.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Http message. + * @function verify + * @memberof google.api.Http + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Http.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.rules != null && message.hasOwnProperty("rules")) { + if (!Array.isArray(message.rules)) + return "rules: array expected"; + for (let i = 0; i < message.rules.length; ++i) { + let error = $root.google.api.HttpRule.verify(message.rules[i]); + if (error) + return "rules." + error; } + } + if (message.fully_decode_reserved_expansion != null && message.hasOwnProperty("fully_decode_reserved_expansion")) + if (typeof message.fully_decode_reserved_expansion !== "boolean") + return "fully_decode_reserved_expansion: boolean expected"; + return null; + }; - /** - * Encodes the specified MsgPayPacketFeeResponse message. Does not implicitly {@link ibc.applications.fee.v1.MsgPayPacketFeeResponse.verify|verify} messages. - * @function encode - * @memberof ibc.applications.fee.v1.MsgPayPacketFeeResponse - * @static - * @param {ibc.applications.fee.v1.IMsgPayPacketFeeResponse} message MsgPayPacketFeeResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MsgPayPacketFeeResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; + /** + * Creates a Http message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.api.Http + * @static + * @param {Object.} object Plain object + * @returns {google.api.Http} Http + */ + Http.fromObject = function fromObject(object) { + if (object instanceof $root.google.api.Http) + return object; + let message = new $root.google.api.Http(); + if (object.rules) { + if (!Array.isArray(object.rules)) + throw TypeError(".google.api.Http.rules: array expected"); + message.rules = []; + for (let i = 0; i < object.rules.length; ++i) { + if (typeof object.rules[i] !== "object") + throw TypeError(".google.api.Http.rules: object expected"); + message.rules[i] = $root.google.api.HttpRule.fromObject(object.rules[i]); + } + } + if (object.fully_decode_reserved_expansion != null) + message.fully_decode_reserved_expansion = Boolean(object.fully_decode_reserved_expansion); + return message; + }; - /** - * Encodes the specified MsgPayPacketFeeResponse message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.MsgPayPacketFeeResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof ibc.applications.fee.v1.MsgPayPacketFeeResponse - * @static - * @param {ibc.applications.fee.v1.IMsgPayPacketFeeResponse} message MsgPayPacketFeeResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MsgPayPacketFeeResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Creates a plain object from a Http message. Also converts values to other types if specified. + * @function toObject + * @memberof google.api.Http + * @static + * @param {google.api.Http} message Http + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Http.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) + object.rules = []; + if (options.defaults) + object.fully_decode_reserved_expansion = false; + if (message.rules && message.rules.length) { + object.rules = []; + for (let j = 0; j < message.rules.length; ++j) + object.rules[j] = $root.google.api.HttpRule.toObject(message.rules[j], options); + } + if (message.fully_decode_reserved_expansion != null && message.hasOwnProperty("fully_decode_reserved_expansion")) + object.fully_decode_reserved_expansion = message.fully_decode_reserved_expansion; + return object; + }; - /** - * Decodes a MsgPayPacketFeeResponse message from the specified reader or buffer. - * @function decode - * @memberof ibc.applications.fee.v1.MsgPayPacketFeeResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.fee.v1.MsgPayPacketFeeResponse} MsgPayPacketFeeResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MsgPayPacketFeeResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.MsgPayPacketFeeResponse(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Converts this Http to JSON. + * @function toJSON + * @memberof google.api.Http + * @instance + * @returns {Object.} JSON object + */ + Http.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Decodes a MsgPayPacketFeeResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ibc.applications.fee.v1.MsgPayPacketFeeResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.fee.v1.MsgPayPacketFeeResponse} MsgPayPacketFeeResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MsgPayPacketFeeResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + return Http; + })(); - /** - * Verifies a MsgPayPacketFeeResponse message. - * @function verify - * @memberof ibc.applications.fee.v1.MsgPayPacketFeeResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - MsgPayPacketFeeResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; + api.HttpRule = (function() { - /** - * Creates a MsgPayPacketFeeResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof ibc.applications.fee.v1.MsgPayPacketFeeResponse - * @static - * @param {Object.} object Plain object - * @returns {ibc.applications.fee.v1.MsgPayPacketFeeResponse} MsgPayPacketFeeResponse - */ - MsgPayPacketFeeResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.fee.v1.MsgPayPacketFeeResponse) - return object; - return new $root.ibc.applications.fee.v1.MsgPayPacketFeeResponse(); - }; + /** + * Properties of a HttpRule. + * @memberof google.api + * @interface IHttpRule + * @property {string|null} [selector] HttpRule selector + * @property {string|null} [get] HttpRule get + * @property {string|null} [put] HttpRule put + * @property {string|null} [post] HttpRule post + * @property {string|null} ["delete"] HttpRule delete + * @property {string|null} [patch] HttpRule patch + * @property {google.api.ICustomHttpPattern|null} [custom] HttpRule custom + * @property {string|null} [body] HttpRule body + * @property {string|null} [response_body] HttpRule response_body + * @property {Array.|null} [additional_bindings] HttpRule additional_bindings + */ - /** - * Creates a plain object from a MsgPayPacketFeeResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof ibc.applications.fee.v1.MsgPayPacketFeeResponse - * @static - * @param {ibc.applications.fee.v1.MsgPayPacketFeeResponse} message MsgPayPacketFeeResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - MsgPayPacketFeeResponse.toObject = function toObject() { - return {}; - }; + /** + * Constructs a new HttpRule. + * @memberof google.api + * @classdesc Represents a HttpRule. + * @implements IHttpRule + * @constructor + * @param {google.api.IHttpRule=} [properties] Properties to set + */ + function HttpRule(properties) { + this.additional_bindings = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Converts this MsgPayPacketFeeResponse to JSON. - * @function toJSON - * @memberof ibc.applications.fee.v1.MsgPayPacketFeeResponse - * @instance - * @returns {Object.} JSON object - */ - MsgPayPacketFeeResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * HttpRule selector. + * @member {string} selector + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.selector = ""; - return MsgPayPacketFeeResponse; - })(); + /** + * HttpRule get. + * @member {string|null|undefined} get + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.get = null; - v1.MsgPayPacketFeeAsync = (function() { + /** + * HttpRule put. + * @member {string|null|undefined} put + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.put = null; - /** - * Properties of a MsgPayPacketFeeAsync. - * @memberof ibc.applications.fee.v1 - * @interface IMsgPayPacketFeeAsync - * @property {ibc.core.channel.v1.IPacketId|null} [packet_id] MsgPayPacketFeeAsync packet_id - * @property {ibc.applications.fee.v1.IPacketFee|null} [packet_fee] MsgPayPacketFeeAsync packet_fee - */ + /** + * HttpRule post. + * @member {string|null|undefined} post + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.post = null; - /** - * Constructs a new MsgPayPacketFeeAsync. - * @memberof ibc.applications.fee.v1 - * @classdesc Represents a MsgPayPacketFeeAsync. - * @implements IMsgPayPacketFeeAsync - * @constructor - * @param {ibc.applications.fee.v1.IMsgPayPacketFeeAsync=} [properties] Properties to set - */ - function MsgPayPacketFeeAsync(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * HttpRule delete. + * @member {string|null|undefined} delete + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype["delete"] = null; - /** - * MsgPayPacketFeeAsync packet_id. - * @member {ibc.core.channel.v1.IPacketId|null|undefined} packet_id - * @memberof ibc.applications.fee.v1.MsgPayPacketFeeAsync - * @instance - */ - MsgPayPacketFeeAsync.prototype.packet_id = null; + /** + * HttpRule patch. + * @member {string|null|undefined} patch + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.patch = null; - /** - * MsgPayPacketFeeAsync packet_fee. - * @member {ibc.applications.fee.v1.IPacketFee|null|undefined} packet_fee - * @memberof ibc.applications.fee.v1.MsgPayPacketFeeAsync - * @instance - */ - MsgPayPacketFeeAsync.prototype.packet_fee = null; + /** + * HttpRule custom. + * @member {google.api.ICustomHttpPattern|null|undefined} custom + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.custom = null; - /** - * Encodes the specified MsgPayPacketFeeAsync message. Does not implicitly {@link ibc.applications.fee.v1.MsgPayPacketFeeAsync.verify|verify} messages. - * @function encode - * @memberof ibc.applications.fee.v1.MsgPayPacketFeeAsync - * @static - * @param {ibc.applications.fee.v1.IMsgPayPacketFeeAsync} message MsgPayPacketFeeAsync message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MsgPayPacketFeeAsync.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.packet_id != null && Object.hasOwnProperty.call(message, "packet_id")) - $root.ibc.core.channel.v1.PacketId.encode(message.packet_id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.packet_fee != null && Object.hasOwnProperty.call(message, "packet_fee")) - $root.ibc.applications.fee.v1.PacketFee.encode(message.packet_fee, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; + /** + * HttpRule body. + * @member {string} body + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.body = ""; - /** - * Encodes the specified MsgPayPacketFeeAsync message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.MsgPayPacketFeeAsync.verify|verify} messages. - * @function encodeDelimited - * @memberof ibc.applications.fee.v1.MsgPayPacketFeeAsync - * @static - * @param {ibc.applications.fee.v1.IMsgPayPacketFeeAsync} message MsgPayPacketFeeAsync message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MsgPayPacketFeeAsync.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * HttpRule response_body. + * @member {string} response_body + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.response_body = ""; - /** - * Decodes a MsgPayPacketFeeAsync message from the specified reader or buffer. - * @function decode - * @memberof ibc.applications.fee.v1.MsgPayPacketFeeAsync - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.fee.v1.MsgPayPacketFeeAsync} MsgPayPacketFeeAsync - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MsgPayPacketFeeAsync.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.MsgPayPacketFeeAsync(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.packet_id = $root.ibc.core.channel.v1.PacketId.decode(reader, reader.uint32()); - break; - case 2: - message.packet_fee = $root.ibc.applications.fee.v1.PacketFee.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * HttpRule additional_bindings. + * @member {Array.} additional_bindings + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.additional_bindings = $util.emptyArray; - /** - * Decodes a MsgPayPacketFeeAsync message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ibc.applications.fee.v1.MsgPayPacketFeeAsync - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.fee.v1.MsgPayPacketFeeAsync} MsgPayPacketFeeAsync - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MsgPayPacketFeeAsync.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + // OneOf field names bound to virtual getters and setters + let $oneOfFields; - /** - * Verifies a MsgPayPacketFeeAsync message. - * @function verify - * @memberof ibc.applications.fee.v1.MsgPayPacketFeeAsync - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - MsgPayPacketFeeAsync.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.packet_id != null && message.hasOwnProperty("packet_id")) { - let error = $root.ibc.core.channel.v1.PacketId.verify(message.packet_id); - if (error) - return "packet_id." + error; - } - if (message.packet_fee != null && message.hasOwnProperty("packet_fee")) { - let error = $root.ibc.applications.fee.v1.PacketFee.verify(message.packet_fee); - if (error) - return "packet_fee." + error; - } - return null; - }; + /** + * HttpRule pattern. + * @member {"get"|"put"|"post"|"delete"|"patch"|"custom"|undefined} pattern + * @memberof google.api.HttpRule + * @instance + */ + Object.defineProperty(HttpRule.prototype, "pattern", { + get: $util.oneOfGetter($oneOfFields = ["get", "put", "post", "delete", "patch", "custom"]), + set: $util.oneOfSetter($oneOfFields) + }); - /** - * Creates a MsgPayPacketFeeAsync message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof ibc.applications.fee.v1.MsgPayPacketFeeAsync - * @static - * @param {Object.} object Plain object - * @returns {ibc.applications.fee.v1.MsgPayPacketFeeAsync} MsgPayPacketFeeAsync - */ - MsgPayPacketFeeAsync.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.fee.v1.MsgPayPacketFeeAsync) - return object; - let message = new $root.ibc.applications.fee.v1.MsgPayPacketFeeAsync(); - if (object.packet_id != null) { - if (typeof object.packet_id !== "object") - throw TypeError(".ibc.applications.fee.v1.MsgPayPacketFeeAsync.packet_id: object expected"); - message.packet_id = $root.ibc.core.channel.v1.PacketId.fromObject(object.packet_id); - } - if (object.packet_fee != null) { - if (typeof object.packet_fee !== "object") - throw TypeError(".ibc.applications.fee.v1.MsgPayPacketFeeAsync.packet_fee: object expected"); - message.packet_fee = $root.ibc.applications.fee.v1.PacketFee.fromObject(object.packet_fee); - } - return message; - }; + /** + * Encodes the specified HttpRule message. Does not implicitly {@link google.api.HttpRule.verify|verify} messages. + * @function encode + * @memberof google.api.HttpRule + * @static + * @param {google.api.IHttpRule} message HttpRule message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + HttpRule.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.selector != null && Object.hasOwnProperty.call(message, "selector")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.selector); + if (message.get != null && Object.hasOwnProperty.call(message, "get")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.get); + if (message.put != null && Object.hasOwnProperty.call(message, "put")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.put); + if (message.post != null && Object.hasOwnProperty.call(message, "post")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.post); + if (message["delete"] != null && Object.hasOwnProperty.call(message, "delete")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message["delete"]); + if (message.patch != null && Object.hasOwnProperty.call(message, "patch")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.patch); + if (message.body != null && Object.hasOwnProperty.call(message, "body")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.body); + if (message.custom != null && Object.hasOwnProperty.call(message, "custom")) + $root.google.api.CustomHttpPattern.encode(message.custom, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.additional_bindings != null && message.additional_bindings.length) + for (let i = 0; i < message.additional_bindings.length; ++i) + $root.google.api.HttpRule.encode(message.additional_bindings[i], writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); + if (message.response_body != null && Object.hasOwnProperty.call(message, "response_body")) + writer.uint32(/* id 12, wireType 2 =*/98).string(message.response_body); + return writer; + }; - /** - * Creates a plain object from a MsgPayPacketFeeAsync message. Also converts values to other types if specified. - * @function toObject - * @memberof ibc.applications.fee.v1.MsgPayPacketFeeAsync - * @static - * @param {ibc.applications.fee.v1.MsgPayPacketFeeAsync} message MsgPayPacketFeeAsync - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - MsgPayPacketFeeAsync.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - object.packet_id = null; - object.packet_fee = null; - } - if (message.packet_id != null && message.hasOwnProperty("packet_id")) - object.packet_id = $root.ibc.core.channel.v1.PacketId.toObject(message.packet_id, options); - if (message.packet_fee != null && message.hasOwnProperty("packet_fee")) - object.packet_fee = $root.ibc.applications.fee.v1.PacketFee.toObject(message.packet_fee, options); - return object; - }; + /** + * Encodes the specified HttpRule message, length delimited. Does not implicitly {@link google.api.HttpRule.verify|verify} messages. + * @function encodeDelimited + * @memberof google.api.HttpRule + * @static + * @param {google.api.IHttpRule} message HttpRule message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + HttpRule.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a HttpRule message from the specified reader or buffer. + * @function decode + * @memberof google.api.HttpRule + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.api.HttpRule} HttpRule + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + HttpRule.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.HttpRule(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.selector = reader.string(); + break; + case 2: + message.get = reader.string(); + break; + case 3: + message.put = reader.string(); + break; + case 4: + message.post = reader.string(); + break; + case 5: + message["delete"] = reader.string(); + break; + case 6: + message.patch = reader.string(); + break; + case 8: + message.custom = $root.google.api.CustomHttpPattern.decode(reader, reader.uint32()); + break; + case 7: + message.body = reader.string(); + break; + case 12: + message.response_body = reader.string(); + break; + case 11: + if (!(message.additional_bindings && message.additional_bindings.length)) + message.additional_bindings = []; + message.additional_bindings.push($root.google.api.HttpRule.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Converts this MsgPayPacketFeeAsync to JSON. - * @function toJSON - * @memberof ibc.applications.fee.v1.MsgPayPacketFeeAsync - * @instance - * @returns {Object.} JSON object - */ - MsgPayPacketFeeAsync.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Decodes a HttpRule message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.api.HttpRule + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.api.HttpRule} HttpRule + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + HttpRule.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - return MsgPayPacketFeeAsync; - })(); + /** + * Verifies a HttpRule message. + * @function verify + * @memberof google.api.HttpRule + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + HttpRule.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + let properties = {}; + if (message.selector != null && message.hasOwnProperty("selector")) + if (!$util.isString(message.selector)) + return "selector: string expected"; + if (message.get != null && message.hasOwnProperty("get")) { + properties.pattern = 1; + if (!$util.isString(message.get)) + return "get: string expected"; + } + if (message.put != null && message.hasOwnProperty("put")) { + if (properties.pattern === 1) + return "pattern: multiple values"; + properties.pattern = 1; + if (!$util.isString(message.put)) + return "put: string expected"; + } + if (message.post != null && message.hasOwnProperty("post")) { + if (properties.pattern === 1) + return "pattern: multiple values"; + properties.pattern = 1; + if (!$util.isString(message.post)) + return "post: string expected"; + } + if (message["delete"] != null && message.hasOwnProperty("delete")) { + if (properties.pattern === 1) + return "pattern: multiple values"; + properties.pattern = 1; + if (!$util.isString(message["delete"])) + return "delete: string expected"; + } + if (message.patch != null && message.hasOwnProperty("patch")) { + if (properties.pattern === 1) + return "pattern: multiple values"; + properties.pattern = 1; + if (!$util.isString(message.patch)) + return "patch: string expected"; + } + if (message.custom != null && message.hasOwnProperty("custom")) { + if (properties.pattern === 1) + return "pattern: multiple values"; + properties.pattern = 1; + { + let error = $root.google.api.CustomHttpPattern.verify(message.custom); + if (error) + return "custom." + error; + } + } + if (message.body != null && message.hasOwnProperty("body")) + if (!$util.isString(message.body)) + return "body: string expected"; + if (message.response_body != null && message.hasOwnProperty("response_body")) + if (!$util.isString(message.response_body)) + return "response_body: string expected"; + if (message.additional_bindings != null && message.hasOwnProperty("additional_bindings")) { + if (!Array.isArray(message.additional_bindings)) + return "additional_bindings: array expected"; + for (let i = 0; i < message.additional_bindings.length; ++i) { + let error = $root.google.api.HttpRule.verify(message.additional_bindings[i]); + if (error) + return "additional_bindings." + error; + } + } + return null; + }; - v1.MsgPayPacketFeeAsyncResponse = (function() { + /** + * Creates a HttpRule message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.api.HttpRule + * @static + * @param {Object.} object Plain object + * @returns {google.api.HttpRule} HttpRule + */ + HttpRule.fromObject = function fromObject(object) { + if (object instanceof $root.google.api.HttpRule) + return object; + let message = new $root.google.api.HttpRule(); + if (object.selector != null) + message.selector = String(object.selector); + if (object.get != null) + message.get = String(object.get); + if (object.put != null) + message.put = String(object.put); + if (object.post != null) + message.post = String(object.post); + if (object["delete"] != null) + message["delete"] = String(object["delete"]); + if (object.patch != null) + message.patch = String(object.patch); + if (object.custom != null) { + if (typeof object.custom !== "object") + throw TypeError(".google.api.HttpRule.custom: object expected"); + message.custom = $root.google.api.CustomHttpPattern.fromObject(object.custom); + } + if (object.body != null) + message.body = String(object.body); + if (object.response_body != null) + message.response_body = String(object.response_body); + if (object.additional_bindings) { + if (!Array.isArray(object.additional_bindings)) + throw TypeError(".google.api.HttpRule.additional_bindings: array expected"); + message.additional_bindings = []; + for (let i = 0; i < object.additional_bindings.length; ++i) { + if (typeof object.additional_bindings[i] !== "object") + throw TypeError(".google.api.HttpRule.additional_bindings: object expected"); + message.additional_bindings[i] = $root.google.api.HttpRule.fromObject(object.additional_bindings[i]); + } + } + return message; + }; - /** - * Properties of a MsgPayPacketFeeAsyncResponse. - * @memberof ibc.applications.fee.v1 - * @interface IMsgPayPacketFeeAsyncResponse - */ + /** + * Creates a plain object from a HttpRule message. Also converts values to other types if specified. + * @function toObject + * @memberof google.api.HttpRule + * @static + * @param {google.api.HttpRule} message HttpRule + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + HttpRule.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) + object.additional_bindings = []; + if (options.defaults) { + object.selector = ""; + object.body = ""; + object.response_body = ""; + } + if (message.selector != null && message.hasOwnProperty("selector")) + object.selector = message.selector; + if (message.get != null && message.hasOwnProperty("get")) { + object.get = message.get; + if (options.oneofs) + object.pattern = "get"; + } + if (message.put != null && message.hasOwnProperty("put")) { + object.put = message.put; + if (options.oneofs) + object.pattern = "put"; + } + if (message.post != null && message.hasOwnProperty("post")) { + object.post = message.post; + if (options.oneofs) + object.pattern = "post"; + } + if (message["delete"] != null && message.hasOwnProperty("delete")) { + object["delete"] = message["delete"]; + if (options.oneofs) + object.pattern = "delete"; + } + if (message.patch != null && message.hasOwnProperty("patch")) { + object.patch = message.patch; + if (options.oneofs) + object.pattern = "patch"; + } + if (message.body != null && message.hasOwnProperty("body")) + object.body = message.body; + if (message.custom != null && message.hasOwnProperty("custom")) { + object.custom = $root.google.api.CustomHttpPattern.toObject(message.custom, options); + if (options.oneofs) + object.pattern = "custom"; + } + if (message.additional_bindings && message.additional_bindings.length) { + object.additional_bindings = []; + for (let j = 0; j < message.additional_bindings.length; ++j) + object.additional_bindings[j] = $root.google.api.HttpRule.toObject(message.additional_bindings[j], options); + } + if (message.response_body != null && message.hasOwnProperty("response_body")) + object.response_body = message.response_body; + return object; + }; - /** - * Constructs a new MsgPayPacketFeeAsyncResponse. - * @memberof ibc.applications.fee.v1 - * @classdesc Represents a MsgPayPacketFeeAsyncResponse. - * @implements IMsgPayPacketFeeAsyncResponse - * @constructor - * @param {ibc.applications.fee.v1.IMsgPayPacketFeeAsyncResponse=} [properties] Properties to set - */ - function MsgPayPacketFeeAsyncResponse(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Converts this HttpRule to JSON. + * @function toJSON + * @memberof google.api.HttpRule + * @instance + * @returns {Object.} JSON object + */ + HttpRule.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Encodes the specified MsgPayPacketFeeAsyncResponse message. Does not implicitly {@link ibc.applications.fee.v1.MsgPayPacketFeeAsyncResponse.verify|verify} messages. - * @function encode - * @memberof ibc.applications.fee.v1.MsgPayPacketFeeAsyncResponse - * @static - * @param {ibc.applications.fee.v1.IMsgPayPacketFeeAsyncResponse} message MsgPayPacketFeeAsyncResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MsgPayPacketFeeAsyncResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; + return HttpRule; + })(); - /** - * Encodes the specified MsgPayPacketFeeAsyncResponse message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.MsgPayPacketFeeAsyncResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof ibc.applications.fee.v1.MsgPayPacketFeeAsyncResponse - * @static - * @param {ibc.applications.fee.v1.IMsgPayPacketFeeAsyncResponse} message MsgPayPacketFeeAsyncResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MsgPayPacketFeeAsyncResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + api.CustomHttpPattern = (function() { - /** - * Decodes a MsgPayPacketFeeAsyncResponse message from the specified reader or buffer. - * @function decode - * @memberof ibc.applications.fee.v1.MsgPayPacketFeeAsyncResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.fee.v1.MsgPayPacketFeeAsyncResponse} MsgPayPacketFeeAsyncResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MsgPayPacketFeeAsyncResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.MsgPayPacketFeeAsyncResponse(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Properties of a CustomHttpPattern. + * @memberof google.api + * @interface ICustomHttpPattern + * @property {string|null} [kind] CustomHttpPattern kind + * @property {string|null} [path] CustomHttpPattern path + */ - /** - * Decodes a MsgPayPacketFeeAsyncResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ibc.applications.fee.v1.MsgPayPacketFeeAsyncResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.fee.v1.MsgPayPacketFeeAsyncResponse} MsgPayPacketFeeAsyncResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MsgPayPacketFeeAsyncResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Constructs a new CustomHttpPattern. + * @memberof google.api + * @classdesc Represents a CustomHttpPattern. + * @implements ICustomHttpPattern + * @constructor + * @param {google.api.ICustomHttpPattern=} [properties] Properties to set + */ + function CustomHttpPattern(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Verifies a MsgPayPacketFeeAsyncResponse message. - * @function verify - * @memberof ibc.applications.fee.v1.MsgPayPacketFeeAsyncResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - MsgPayPacketFeeAsyncResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; + /** + * CustomHttpPattern kind. + * @member {string} kind + * @memberof google.api.CustomHttpPattern + * @instance + */ + CustomHttpPattern.prototype.kind = ""; - /** - * Creates a MsgPayPacketFeeAsyncResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof ibc.applications.fee.v1.MsgPayPacketFeeAsyncResponse - * @static - * @param {Object.} object Plain object - * @returns {ibc.applications.fee.v1.MsgPayPacketFeeAsyncResponse} MsgPayPacketFeeAsyncResponse - */ - MsgPayPacketFeeAsyncResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.fee.v1.MsgPayPacketFeeAsyncResponse) - return object; - return new $root.ibc.applications.fee.v1.MsgPayPacketFeeAsyncResponse(); - }; + /** + * CustomHttpPattern path. + * @member {string} path + * @memberof google.api.CustomHttpPattern + * @instance + */ + CustomHttpPattern.prototype.path = ""; - /** - * Creates a plain object from a MsgPayPacketFeeAsyncResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof ibc.applications.fee.v1.MsgPayPacketFeeAsyncResponse - * @static - * @param {ibc.applications.fee.v1.MsgPayPacketFeeAsyncResponse} message MsgPayPacketFeeAsyncResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - MsgPayPacketFeeAsyncResponse.toObject = function toObject() { - return {}; - }; + /** + * Encodes the specified CustomHttpPattern message. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages. + * @function encode + * @memberof google.api.CustomHttpPattern + * @static + * @param {google.api.ICustomHttpPattern} message CustomHttpPattern message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CustomHttpPattern.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.kind != null && Object.hasOwnProperty.call(message, "kind")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.kind); + if (message.path != null && Object.hasOwnProperty.call(message, "path")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.path); + return writer; + }; - /** - * Converts this MsgPayPacketFeeAsyncResponse to JSON. - * @function toJSON - * @memberof ibc.applications.fee.v1.MsgPayPacketFeeAsyncResponse - * @instance - * @returns {Object.} JSON object - */ - MsgPayPacketFeeAsyncResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Encodes the specified CustomHttpPattern message, length delimited. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages. + * @function encodeDelimited + * @memberof google.api.CustomHttpPattern + * @static + * @param {google.api.ICustomHttpPattern} message CustomHttpPattern message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CustomHttpPattern.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - return MsgPayPacketFeeAsyncResponse; - })(); + /** + * Decodes a CustomHttpPattern message from the specified reader or buffer. + * @function decode + * @memberof google.api.CustomHttpPattern + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.api.CustomHttpPattern} CustomHttpPattern + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CustomHttpPattern.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.CustomHttpPattern(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.kind = reader.string(); + break; + case 2: + message.path = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - v1.Fee = (function() { + /** + * Decodes a CustomHttpPattern message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.api.CustomHttpPattern + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.api.CustomHttpPattern} CustomHttpPattern + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CustomHttpPattern.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Properties of a Fee. - * @memberof ibc.applications.fee.v1 - * @interface IFee - * @property {Array.|null} [recv_fee] Fee recv_fee - * @property {Array.|null} [ack_fee] Fee ack_fee - * @property {Array.|null} [timeout_fee] Fee timeout_fee - */ + /** + * Verifies a CustomHttpPattern message. + * @function verify + * @memberof google.api.CustomHttpPattern + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CustomHttpPattern.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.kind != null && message.hasOwnProperty("kind")) + if (!$util.isString(message.kind)) + return "kind: string expected"; + if (message.path != null && message.hasOwnProperty("path")) + if (!$util.isString(message.path)) + return "path: string expected"; + return null; + }; - /** - * Constructs a new Fee. - * @memberof ibc.applications.fee.v1 - * @classdesc Represents a Fee. - * @implements IFee - * @constructor - * @param {ibc.applications.fee.v1.IFee=} [properties] Properties to set - */ - function Fee(properties) { - this.recv_fee = []; - this.ack_fee = []; - this.timeout_fee = []; - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Creates a CustomHttpPattern message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.api.CustomHttpPattern + * @static + * @param {Object.} object Plain object + * @returns {google.api.CustomHttpPattern} CustomHttpPattern + */ + CustomHttpPattern.fromObject = function fromObject(object) { + if (object instanceof $root.google.api.CustomHttpPattern) + return object; + let message = new $root.google.api.CustomHttpPattern(); + if (object.kind != null) + message.kind = String(object.kind); + if (object.path != null) + message.path = String(object.path); + return message; + }; - /** - * Fee recv_fee. - * @member {Array.} recv_fee - * @memberof ibc.applications.fee.v1.Fee - * @instance - */ - Fee.prototype.recv_fee = $util.emptyArray; + /** + * Creates a plain object from a CustomHttpPattern message. Also converts values to other types if specified. + * @function toObject + * @memberof google.api.CustomHttpPattern + * @static + * @param {google.api.CustomHttpPattern} message CustomHttpPattern + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CustomHttpPattern.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + object.kind = ""; + object.path = ""; + } + if (message.kind != null && message.hasOwnProperty("kind")) + object.kind = message.kind; + if (message.path != null && message.hasOwnProperty("path")) + object.path = message.path; + return object; + }; - /** - * Fee ack_fee. - * @member {Array.} ack_fee - * @memberof ibc.applications.fee.v1.Fee - * @instance - */ - Fee.prototype.ack_fee = $util.emptyArray; + /** + * Converts this CustomHttpPattern to JSON. + * @function toJSON + * @memberof google.api.CustomHttpPattern + * @instance + * @returns {Object.} JSON object + */ + CustomHttpPattern.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Fee timeout_fee. - * @member {Array.} timeout_fee - * @memberof ibc.applications.fee.v1.Fee - * @instance - */ - Fee.prototype.timeout_fee = $util.emptyArray; + return CustomHttpPattern; + })(); - /** - * Encodes the specified Fee message. Does not implicitly {@link ibc.applications.fee.v1.Fee.verify|verify} messages. - * @function encode - * @memberof ibc.applications.fee.v1.Fee - * @static - * @param {ibc.applications.fee.v1.IFee} message Fee message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Fee.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.recv_fee != null && message.recv_fee.length) - for (let i = 0; i < message.recv_fee.length; ++i) - $root.cosmos.base.v1beta1.Coin.encode(message.recv_fee[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.ack_fee != null && message.ack_fee.length) - for (let i = 0; i < message.ack_fee.length; ++i) - $root.cosmos.base.v1beta1.Coin.encode(message.ack_fee[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.timeout_fee != null && message.timeout_fee.length) - for (let i = 0; i < message.timeout_fee.length; ++i) - $root.cosmos.base.v1beta1.Coin.encode(message.timeout_fee[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; + return api; + })(); - /** - * Encodes the specified Fee message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.Fee.verify|verify} messages. - * @function encodeDelimited - * @memberof ibc.applications.fee.v1.Fee - * @static - * @param {ibc.applications.fee.v1.IFee} message Fee message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Fee.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + return google; +})(); - /** - * Decodes a Fee message from the specified reader or buffer. - * @function decode - * @memberof ibc.applications.fee.v1.Fee - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.fee.v1.Fee} Fee - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Fee.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.Fee(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.recv_fee && message.recv_fee.length)) - message.recv_fee = []; - message.recv_fee.push($root.cosmos.base.v1beta1.Coin.decode(reader, reader.uint32())); - break; - case 2: - if (!(message.ack_fee && message.ack_fee.length)) - message.ack_fee = []; - message.ack_fee.push($root.cosmos.base.v1beta1.Coin.decode(reader, reader.uint32())); - break; - case 3: - if (!(message.timeout_fee && message.timeout_fee.length)) - message.timeout_fee = []; - message.timeout_fee.push($root.cosmos.base.v1beta1.Coin.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; +export const ibc = $root.ibc = (() => { - /** - * Decodes a Fee message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ibc.applications.fee.v1.Fee - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.fee.v1.Fee} Fee - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Fee.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Namespace ibc. + * @exports ibc + * @namespace + */ + const ibc = {}; - /** - * Verifies a Fee message. - * @function verify - * @memberof ibc.applications.fee.v1.Fee - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Fee.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.recv_fee != null && message.hasOwnProperty("recv_fee")) { - if (!Array.isArray(message.recv_fee)) - return "recv_fee: array expected"; - for (let i = 0; i < message.recv_fee.length; ++i) { - let error = $root.cosmos.base.v1beta1.Coin.verify(message.recv_fee[i]); - if (error) - return "recv_fee." + error; - } - } - if (message.ack_fee != null && message.hasOwnProperty("ack_fee")) { - if (!Array.isArray(message.ack_fee)) - return "ack_fee: array expected"; - for (let i = 0; i < message.ack_fee.length; ++i) { - let error = $root.cosmos.base.v1beta1.Coin.verify(message.ack_fee[i]); - if (error) - return "ack_fee." + error; - } - } - if (message.timeout_fee != null && message.hasOwnProperty("timeout_fee")) { - if (!Array.isArray(message.timeout_fee)) - return "timeout_fee: array expected"; - for (let i = 0; i < message.timeout_fee.length; ++i) { - let error = $root.cosmos.base.v1beta1.Coin.verify(message.timeout_fee[i]); - if (error) - return "timeout_fee." + error; - } - } - return null; - }; + ibc.applications = (function() { - /** - * Creates a Fee message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof ibc.applications.fee.v1.Fee - * @static - * @param {Object.} object Plain object - * @returns {ibc.applications.fee.v1.Fee} Fee - */ - Fee.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.fee.v1.Fee) - return object; - let message = new $root.ibc.applications.fee.v1.Fee(); - if (object.recv_fee) { - if (!Array.isArray(object.recv_fee)) - throw TypeError(".ibc.applications.fee.v1.Fee.recv_fee: array expected"); - message.recv_fee = []; - for (let i = 0; i < object.recv_fee.length; ++i) { - if (typeof object.recv_fee[i] !== "object") - throw TypeError(".ibc.applications.fee.v1.Fee.recv_fee: object expected"); - message.recv_fee[i] = $root.cosmos.base.v1beta1.Coin.fromObject(object.recv_fee[i]); - } - } - if (object.ack_fee) { - if (!Array.isArray(object.ack_fee)) - throw TypeError(".ibc.applications.fee.v1.Fee.ack_fee: array expected"); - message.ack_fee = []; - for (let i = 0; i < object.ack_fee.length; ++i) { - if (typeof object.ack_fee[i] !== "object") - throw TypeError(".ibc.applications.fee.v1.Fee.ack_fee: object expected"); - message.ack_fee[i] = $root.cosmos.base.v1beta1.Coin.fromObject(object.ack_fee[i]); - } - } - if (object.timeout_fee) { - if (!Array.isArray(object.timeout_fee)) - throw TypeError(".ibc.applications.fee.v1.Fee.timeout_fee: array expected"); - message.timeout_fee = []; - for (let i = 0; i < object.timeout_fee.length; ++i) { - if (typeof object.timeout_fee[i] !== "object") - throw TypeError(".ibc.applications.fee.v1.Fee.timeout_fee: object expected"); - message.timeout_fee[i] = $root.cosmos.base.v1beta1.Coin.fromObject(object.timeout_fee[i]); - } - } - return message; - }; + /** + * Namespace applications. + * @memberof ibc + * @namespace + */ + const applications = {}; - /** - * Creates a plain object from a Fee message. Also converts values to other types if specified. - * @function toObject - * @memberof ibc.applications.fee.v1.Fee - * @static - * @param {ibc.applications.fee.v1.Fee} message Fee - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Fee.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.arrays || options.defaults) { - object.recv_fee = []; - object.ack_fee = []; - object.timeout_fee = []; - } - if (message.recv_fee && message.recv_fee.length) { - object.recv_fee = []; - for (let j = 0; j < message.recv_fee.length; ++j) - object.recv_fee[j] = $root.cosmos.base.v1beta1.Coin.toObject(message.recv_fee[j], options); - } - if (message.ack_fee && message.ack_fee.length) { - object.ack_fee = []; - for (let j = 0; j < message.ack_fee.length; ++j) - object.ack_fee[j] = $root.cosmos.base.v1beta1.Coin.toObject(message.ack_fee[j], options); - } - if (message.timeout_fee && message.timeout_fee.length) { - object.timeout_fee = []; - for (let j = 0; j < message.timeout_fee.length; ++j) - object.timeout_fee[j] = $root.cosmos.base.v1beta1.Coin.toObject(message.timeout_fee[j], options); - } - return object; - }; + applications.fee = (function() { - /** - * Converts this Fee to JSON. - * @function toJSON - * @memberof ibc.applications.fee.v1.Fee - * @instance - * @returns {Object.} JSON object - */ - Fee.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Namespace fee. + * @memberof ibc.applications + * @namespace + */ + const fee = {}; - return Fee; - })(); + fee.v1 = (function() { - v1.PacketFee = (function() { + /** + * Namespace v1. + * @memberof ibc.applications.fee + * @namespace + */ + const v1 = {}; - /** - * Properties of a PacketFee. - * @memberof ibc.applications.fee.v1 - * @interface IPacketFee - * @property {ibc.applications.fee.v1.IFee|null} [fee] PacketFee fee - * @property {string|null} [refund_address] PacketFee refund_address - * @property {Array.|null} [relayers] PacketFee relayers - */ + v1.Msg = (function() { /** - * Constructs a new PacketFee. + * Constructs a new Msg service. * @memberof ibc.applications.fee.v1 - * @classdesc Represents a PacketFee. - * @implements IPacketFee + * @classdesc Represents a Msg + * @extends $protobuf.rpc.Service * @constructor - * @param {ibc.applications.fee.v1.IPacketFee=} [properties] Properties to set + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited */ - function PacketFee(properties) { - this.relayers = []; - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + function Msg(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); } + (Msg.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Msg; + /** - * PacketFee fee. - * @member {ibc.applications.fee.v1.IFee|null|undefined} fee - * @memberof ibc.applications.fee.v1.PacketFee - * @instance + * Callback as used by {@link ibc.applications.fee.v1.Msg#registerPayee}. + * @memberof ibc.applications.fee.v1.Msg + * @typedef RegisterPayeeCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.applications.fee.v1.MsgRegisterPayeeResponse} [response] MsgRegisterPayeeResponse */ - PacketFee.prototype.fee = null; /** - * PacketFee refund_address. - * @member {string} refund_address - * @memberof ibc.applications.fee.v1.PacketFee + * Calls RegisterPayee. + * @function registerPayee + * @memberof ibc.applications.fee.v1.Msg * @instance + * @param {ibc.applications.fee.v1.IMsgRegisterPayee} request MsgRegisterPayee message or plain object + * @param {ibc.applications.fee.v1.Msg.RegisterPayeeCallback} callback Node-style callback called with the error, if any, and MsgRegisterPayeeResponse + * @returns {undefined} + * @variation 1 */ - PacketFee.prototype.refund_address = ""; + Object.defineProperty(Msg.prototype.registerPayee = function registerPayee(request, callback) { + return this.rpcCall(registerPayee, $root.ibc.applications.fee.v1.MsgRegisterPayee, $root.ibc.applications.fee.v1.MsgRegisterPayeeResponse, request, callback); + }, "name", { value: "RegisterPayee" }); /** - * PacketFee relayers. - * @member {Array.} relayers - * @memberof ibc.applications.fee.v1.PacketFee + * Calls RegisterPayee. + * @function registerPayee + * @memberof ibc.applications.fee.v1.Msg * @instance + * @param {ibc.applications.fee.v1.IMsgRegisterPayee} request MsgRegisterPayee message or plain object + * @returns {Promise} Promise + * @variation 2 */ - PacketFee.prototype.relayers = $util.emptyArray; /** - * Encodes the specified PacketFee message. Does not implicitly {@link ibc.applications.fee.v1.PacketFee.verify|verify} messages. - * @function encode - * @memberof ibc.applications.fee.v1.PacketFee - * @static - * @param {ibc.applications.fee.v1.IPacketFee} message PacketFee message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Callback as used by {@link ibc.applications.fee.v1.Msg#registerCounterpartyPayee}. + * @memberof ibc.applications.fee.v1.Msg + * @typedef RegisterCounterpartyPayeeCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.applications.fee.v1.MsgRegisterCounterpartyPayeeResponse} [response] MsgRegisterCounterpartyPayeeResponse */ - PacketFee.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.fee != null && Object.hasOwnProperty.call(message, "fee")) - $root.ibc.applications.fee.v1.Fee.encode(message.fee, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.refund_address != null && Object.hasOwnProperty.call(message, "refund_address")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.refund_address); - if (message.relayers != null && message.relayers.length) - for (let i = 0; i < message.relayers.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.relayers[i]); - return writer; - }; /** - * Encodes the specified PacketFee message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.PacketFee.verify|verify} messages. - * @function encodeDelimited - * @memberof ibc.applications.fee.v1.PacketFee - * @static - * @param {ibc.applications.fee.v1.IPacketFee} message PacketFee message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls RegisterCounterpartyPayee. + * @function registerCounterpartyPayee + * @memberof ibc.applications.fee.v1.Msg + * @instance + * @param {ibc.applications.fee.v1.IMsgRegisterCounterpartyPayee} request MsgRegisterCounterpartyPayee message or plain object + * @param {ibc.applications.fee.v1.Msg.RegisterCounterpartyPayeeCallback} callback Node-style callback called with the error, if any, and MsgRegisterCounterpartyPayeeResponse + * @returns {undefined} + * @variation 1 */ - PacketFee.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + Object.defineProperty(Msg.prototype.registerCounterpartyPayee = function registerCounterpartyPayee(request, callback) { + return this.rpcCall(registerCounterpartyPayee, $root.ibc.applications.fee.v1.MsgRegisterCounterpartyPayee, $root.ibc.applications.fee.v1.MsgRegisterCounterpartyPayeeResponse, request, callback); + }, "name", { value: "RegisterCounterpartyPayee" }); /** - * Decodes a PacketFee message from the specified reader or buffer. - * @function decode - * @memberof ibc.applications.fee.v1.PacketFee - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.fee.v1.PacketFee} PacketFee - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PacketFee.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.PacketFee(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.fee = $root.ibc.applications.fee.v1.Fee.decode(reader, reader.uint32()); - break; - case 2: - message.refund_address = reader.string(); - break; - case 3: - if (!(message.relayers && message.relayers.length)) - message.relayers = []; - message.relayers.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + * Calls RegisterCounterpartyPayee. + * @function registerCounterpartyPayee + * @memberof ibc.applications.fee.v1.Msg + * @instance + * @param {ibc.applications.fee.v1.IMsgRegisterCounterpartyPayee} request MsgRegisterCounterpartyPayee message or plain object + * @returns {Promise} Promise + * @variation 2 + */ /** - * Decodes a PacketFee message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ibc.applications.fee.v1.PacketFee - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.fee.v1.PacketFee} PacketFee - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link ibc.applications.fee.v1.Msg#payPacketFee}. + * @memberof ibc.applications.fee.v1.Msg + * @typedef PayPacketFeeCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.applications.fee.v1.MsgPayPacketFeeResponse} [response] MsgPayPacketFeeResponse */ - PacketFee.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; /** - * Verifies a PacketFee message. - * @function verify - * @memberof ibc.applications.fee.v1.PacketFee - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Calls PayPacketFee. + * @function payPacketFee + * @memberof ibc.applications.fee.v1.Msg + * @instance + * @param {ibc.applications.fee.v1.IMsgPayPacketFee} request MsgPayPacketFee message or plain object + * @param {ibc.applications.fee.v1.Msg.PayPacketFeeCallback} callback Node-style callback called with the error, if any, and MsgPayPacketFeeResponse + * @returns {undefined} + * @variation 1 */ - PacketFee.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.fee != null && message.hasOwnProperty("fee")) { - let error = $root.ibc.applications.fee.v1.Fee.verify(message.fee); - if (error) - return "fee." + error; - } - if (message.refund_address != null && message.hasOwnProperty("refund_address")) - if (!$util.isString(message.refund_address)) - return "refund_address: string expected"; - if (message.relayers != null && message.hasOwnProperty("relayers")) { - if (!Array.isArray(message.relayers)) - return "relayers: array expected"; - for (let i = 0; i < message.relayers.length; ++i) - if (!$util.isString(message.relayers[i])) - return "relayers: string[] expected"; - } - return null; - }; + Object.defineProperty(Msg.prototype.payPacketFee = function payPacketFee(request, callback) { + return this.rpcCall(payPacketFee, $root.ibc.applications.fee.v1.MsgPayPacketFee, $root.ibc.applications.fee.v1.MsgPayPacketFeeResponse, request, callback); + }, "name", { value: "PayPacketFee" }); /** - * Creates a PacketFee message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof ibc.applications.fee.v1.PacketFee - * @static - * @param {Object.} object Plain object - * @returns {ibc.applications.fee.v1.PacketFee} PacketFee + * Calls PayPacketFee. + * @function payPacketFee + * @memberof ibc.applications.fee.v1.Msg + * @instance + * @param {ibc.applications.fee.v1.IMsgPayPacketFee} request MsgPayPacketFee message or plain object + * @returns {Promise} Promise + * @variation 2 */ - PacketFee.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.fee.v1.PacketFee) - return object; - let message = new $root.ibc.applications.fee.v1.PacketFee(); - if (object.fee != null) { - if (typeof object.fee !== "object") - throw TypeError(".ibc.applications.fee.v1.PacketFee.fee: object expected"); - message.fee = $root.ibc.applications.fee.v1.Fee.fromObject(object.fee); - } - if (object.refund_address != null) - message.refund_address = String(object.refund_address); - if (object.relayers) { - if (!Array.isArray(object.relayers)) - throw TypeError(".ibc.applications.fee.v1.PacketFee.relayers: array expected"); - message.relayers = []; - for (let i = 0; i < object.relayers.length; ++i) - message.relayers[i] = String(object.relayers[i]); - } - return message; - }; /** - * Creates a plain object from a PacketFee message. Also converts values to other types if specified. - * @function toObject - * @memberof ibc.applications.fee.v1.PacketFee - * @static - * @param {ibc.applications.fee.v1.PacketFee} message PacketFee - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Callback as used by {@link ibc.applications.fee.v1.Msg#payPacketFeeAsync}. + * @memberof ibc.applications.fee.v1.Msg + * @typedef PayPacketFeeAsyncCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.applications.fee.v1.MsgPayPacketFeeAsyncResponse} [response] MsgPayPacketFeeAsyncResponse */ - PacketFee.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.arrays || options.defaults) - object.relayers = []; - if (options.defaults) { - object.fee = null; - object.refund_address = ""; - } - if (message.fee != null && message.hasOwnProperty("fee")) - object.fee = $root.ibc.applications.fee.v1.Fee.toObject(message.fee, options); - if (message.refund_address != null && message.hasOwnProperty("refund_address")) - object.refund_address = message.refund_address; - if (message.relayers && message.relayers.length) { - object.relayers = []; - for (let j = 0; j < message.relayers.length; ++j) - object.relayers[j] = message.relayers[j]; - } - return object; - }; /** - * Converts this PacketFee to JSON. - * @function toJSON - * @memberof ibc.applications.fee.v1.PacketFee + * Calls PayPacketFeeAsync. + * @function payPacketFeeAsync + * @memberof ibc.applications.fee.v1.Msg * @instance - * @returns {Object.} JSON object + * @param {ibc.applications.fee.v1.IMsgPayPacketFeeAsync} request MsgPayPacketFeeAsync message or plain object + * @param {ibc.applications.fee.v1.Msg.PayPacketFeeAsyncCallback} callback Node-style callback called with the error, if any, and MsgPayPacketFeeAsyncResponse + * @returns {undefined} + * @variation 1 */ - PacketFee.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + Object.defineProperty(Msg.prototype.payPacketFeeAsync = function payPacketFeeAsync(request, callback) { + return this.rpcCall(payPacketFeeAsync, $root.ibc.applications.fee.v1.MsgPayPacketFeeAsync, $root.ibc.applications.fee.v1.MsgPayPacketFeeAsyncResponse, request, callback); + }, "name", { value: "PayPacketFeeAsync" }); - return PacketFee; + /** + * Calls PayPacketFeeAsync. + * @function payPacketFeeAsync + * @memberof ibc.applications.fee.v1.Msg + * @instance + * @param {ibc.applications.fee.v1.IMsgPayPacketFeeAsync} request MsgPayPacketFeeAsync message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return Msg; })(); - v1.PacketFees = (function() { + v1.MsgRegisterPayee = (function() { /** - * Properties of a PacketFees. + * Properties of a MsgRegisterPayee. * @memberof ibc.applications.fee.v1 - * @interface IPacketFees - * @property {Array.|null} [packet_fees] PacketFees packet_fees + * @interface IMsgRegisterPayee + * @property {string|null} [port_id] MsgRegisterPayee port_id + * @property {string|null} [channel_id] MsgRegisterPayee channel_id + * @property {string|null} [relayer] MsgRegisterPayee relayer + * @property {string|null} [payee] MsgRegisterPayee payee */ /** - * Constructs a new PacketFees. + * Constructs a new MsgRegisterPayee. * @memberof ibc.applications.fee.v1 - * @classdesc Represents a PacketFees. - * @implements IPacketFees + * @classdesc Represents a MsgRegisterPayee. + * @implements IMsgRegisterPayee * @constructor - * @param {ibc.applications.fee.v1.IPacketFees=} [properties] Properties to set + * @param {ibc.applications.fee.v1.IMsgRegisterPayee=} [properties] Properties to set */ - function PacketFees(properties) { - this.packet_fees = []; + function MsgRegisterPayee(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -20485,66 +26943,102 @@ export const ibc = $root.ibc = (() => { } /** - * PacketFees packet_fees. - * @member {Array.} packet_fees - * @memberof ibc.applications.fee.v1.PacketFees + * MsgRegisterPayee port_id. + * @member {string} port_id + * @memberof ibc.applications.fee.v1.MsgRegisterPayee * @instance */ - PacketFees.prototype.packet_fees = $util.emptyArray; + MsgRegisterPayee.prototype.port_id = ""; /** - * Encodes the specified PacketFees message. Does not implicitly {@link ibc.applications.fee.v1.PacketFees.verify|verify} messages. + * MsgRegisterPayee channel_id. + * @member {string} channel_id + * @memberof ibc.applications.fee.v1.MsgRegisterPayee + * @instance + */ + MsgRegisterPayee.prototype.channel_id = ""; + + /** + * MsgRegisterPayee relayer. + * @member {string} relayer + * @memberof ibc.applications.fee.v1.MsgRegisterPayee + * @instance + */ + MsgRegisterPayee.prototype.relayer = ""; + + /** + * MsgRegisterPayee payee. + * @member {string} payee + * @memberof ibc.applications.fee.v1.MsgRegisterPayee + * @instance + */ + MsgRegisterPayee.prototype.payee = ""; + + /** + * Encodes the specified MsgRegisterPayee message. Does not implicitly {@link ibc.applications.fee.v1.MsgRegisterPayee.verify|verify} messages. * @function encode - * @memberof ibc.applications.fee.v1.PacketFees + * @memberof ibc.applications.fee.v1.MsgRegisterPayee * @static - * @param {ibc.applications.fee.v1.IPacketFees} message PacketFees message or plain object to encode + * @param {ibc.applications.fee.v1.IMsgRegisterPayee} message MsgRegisterPayee message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PacketFees.encode = function encode(message, writer) { + MsgRegisterPayee.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.packet_fees != null && message.packet_fees.length) - for (let i = 0; i < message.packet_fees.length; ++i) - $root.ibc.applications.fee.v1.PacketFee.encode(message.packet_fees[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.port_id != null && Object.hasOwnProperty.call(message, "port_id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.port_id); + if (message.channel_id != null && Object.hasOwnProperty.call(message, "channel_id")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.channel_id); + if (message.relayer != null && Object.hasOwnProperty.call(message, "relayer")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.relayer); + if (message.payee != null && Object.hasOwnProperty.call(message, "payee")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.payee); return writer; }; /** - * Encodes the specified PacketFees message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.PacketFees.verify|verify} messages. + * Encodes the specified MsgRegisterPayee message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.MsgRegisterPayee.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.applications.fee.v1.PacketFees + * @memberof ibc.applications.fee.v1.MsgRegisterPayee * @static - * @param {ibc.applications.fee.v1.IPacketFees} message PacketFees message or plain object to encode + * @param {ibc.applications.fee.v1.IMsgRegisterPayee} message MsgRegisterPayee message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PacketFees.encodeDelimited = function encodeDelimited(message, writer) { + MsgRegisterPayee.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PacketFees message from the specified reader or buffer. + * Decodes a MsgRegisterPayee message from the specified reader or buffer. * @function decode - * @memberof ibc.applications.fee.v1.PacketFees + * @memberof ibc.applications.fee.v1.MsgRegisterPayee * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.fee.v1.PacketFees} PacketFees + * @returns {ibc.applications.fee.v1.MsgRegisterPayee} MsgRegisterPayee * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PacketFees.decode = function decode(reader, length) { + MsgRegisterPayee.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.PacketFees(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.MsgRegisterPayee(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.packet_fees && message.packet_fees.length)) - message.packet_fees = []; - message.packet_fees.push($root.ibc.applications.fee.v1.PacketFee.decode(reader, reader.uint32())); + message.port_id = reader.string(); + break; + case 2: + message.channel_id = reader.string(); + break; + case 3: + message.relayer = reader.string(); + break; + case 4: + message.payee = reader.string(); break; default: reader.skipType(tag & 7); @@ -20555,126 +27049,131 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a PacketFees message from the specified reader or buffer, length delimited. + * Decodes a MsgRegisterPayee message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.applications.fee.v1.PacketFees + * @memberof ibc.applications.fee.v1.MsgRegisterPayee * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.fee.v1.PacketFees} PacketFees + * @returns {ibc.applications.fee.v1.MsgRegisterPayee} MsgRegisterPayee * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PacketFees.decodeDelimited = function decodeDelimited(reader) { + MsgRegisterPayee.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PacketFees message. + * Verifies a MsgRegisterPayee message. * @function verify - * @memberof ibc.applications.fee.v1.PacketFees + * @memberof ibc.applications.fee.v1.MsgRegisterPayee * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PacketFees.verify = function verify(message) { + MsgRegisterPayee.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.packet_fees != null && message.hasOwnProperty("packet_fees")) { - if (!Array.isArray(message.packet_fees)) - return "packet_fees: array expected"; - for (let i = 0; i < message.packet_fees.length; ++i) { - let error = $root.ibc.applications.fee.v1.PacketFee.verify(message.packet_fees[i]); - if (error) - return "packet_fees." + error; - } - } + if (message.port_id != null && message.hasOwnProperty("port_id")) + if (!$util.isString(message.port_id)) + return "port_id: string expected"; + if (message.channel_id != null && message.hasOwnProperty("channel_id")) + if (!$util.isString(message.channel_id)) + return "channel_id: string expected"; + if (message.relayer != null && message.hasOwnProperty("relayer")) + if (!$util.isString(message.relayer)) + return "relayer: string expected"; + if (message.payee != null && message.hasOwnProperty("payee")) + if (!$util.isString(message.payee)) + return "payee: string expected"; return null; }; /** - * Creates a PacketFees message from a plain object. Also converts values to their respective internal types. + * Creates a MsgRegisterPayee message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.applications.fee.v1.PacketFees + * @memberof ibc.applications.fee.v1.MsgRegisterPayee * @static * @param {Object.} object Plain object - * @returns {ibc.applications.fee.v1.PacketFees} PacketFees + * @returns {ibc.applications.fee.v1.MsgRegisterPayee} MsgRegisterPayee */ - PacketFees.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.fee.v1.PacketFees) + MsgRegisterPayee.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.fee.v1.MsgRegisterPayee) return object; - let message = new $root.ibc.applications.fee.v1.PacketFees(); - if (object.packet_fees) { - if (!Array.isArray(object.packet_fees)) - throw TypeError(".ibc.applications.fee.v1.PacketFees.packet_fees: array expected"); - message.packet_fees = []; - for (let i = 0; i < object.packet_fees.length; ++i) { - if (typeof object.packet_fees[i] !== "object") - throw TypeError(".ibc.applications.fee.v1.PacketFees.packet_fees: object expected"); - message.packet_fees[i] = $root.ibc.applications.fee.v1.PacketFee.fromObject(object.packet_fees[i]); - } - } + let message = new $root.ibc.applications.fee.v1.MsgRegisterPayee(); + if (object.port_id != null) + message.port_id = String(object.port_id); + if (object.channel_id != null) + message.channel_id = String(object.channel_id); + if (object.relayer != null) + message.relayer = String(object.relayer); + if (object.payee != null) + message.payee = String(object.payee); return message; }; /** - * Creates a plain object from a PacketFees message. Also converts values to other types if specified. + * Creates a plain object from a MsgRegisterPayee message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.applications.fee.v1.PacketFees + * @memberof ibc.applications.fee.v1.MsgRegisterPayee * @static - * @param {ibc.applications.fee.v1.PacketFees} message PacketFees + * @param {ibc.applications.fee.v1.MsgRegisterPayee} message MsgRegisterPayee * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PacketFees.toObject = function toObject(message, options) { + MsgRegisterPayee.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.packet_fees = []; - if (message.packet_fees && message.packet_fees.length) { - object.packet_fees = []; - for (let j = 0; j < message.packet_fees.length; ++j) - object.packet_fees[j] = $root.ibc.applications.fee.v1.PacketFee.toObject(message.packet_fees[j], options); + if (options.defaults) { + object.port_id = ""; + object.channel_id = ""; + object.relayer = ""; + object.payee = ""; } + if (message.port_id != null && message.hasOwnProperty("port_id")) + object.port_id = message.port_id; + if (message.channel_id != null && message.hasOwnProperty("channel_id")) + object.channel_id = message.channel_id; + if (message.relayer != null && message.hasOwnProperty("relayer")) + object.relayer = message.relayer; + if (message.payee != null && message.hasOwnProperty("payee")) + object.payee = message.payee; return object; }; /** - * Converts this PacketFees to JSON. + * Converts this MsgRegisterPayee to JSON. * @function toJSON - * @memberof ibc.applications.fee.v1.PacketFees + * @memberof ibc.applications.fee.v1.MsgRegisterPayee * @instance * @returns {Object.} JSON object */ - PacketFees.prototype.toJSON = function toJSON() { + MsgRegisterPayee.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return PacketFees; + return MsgRegisterPayee; })(); - v1.IdentifiedPacketFees = (function() { + v1.MsgRegisterPayeeResponse = (function() { /** - * Properties of an IdentifiedPacketFees. + * Properties of a MsgRegisterPayeeResponse. * @memberof ibc.applications.fee.v1 - * @interface IIdentifiedPacketFees - * @property {ibc.core.channel.v1.IPacketId|null} [packet_id] IdentifiedPacketFees packet_id - * @property {Array.|null} [packet_fees] IdentifiedPacketFees packet_fees + * @interface IMsgRegisterPayeeResponse */ /** - * Constructs a new IdentifiedPacketFees. + * Constructs a new MsgRegisterPayeeResponse. * @memberof ibc.applications.fee.v1 - * @classdesc Represents an IdentifiedPacketFees. - * @implements IIdentifiedPacketFees + * @classdesc Represents a MsgRegisterPayeeResponse. + * @implements IMsgRegisterPayeeResponse * @constructor - * @param {ibc.applications.fee.v1.IIdentifiedPacketFees=} [properties] Properties to set + * @param {ibc.applications.fee.v1.IMsgRegisterPayeeResponse=} [properties] Properties to set */ - function IdentifiedPacketFees(properties) { - this.packet_fees = []; + function MsgRegisterPayeeResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -20682,80 +27181,51 @@ export const ibc = $root.ibc = (() => { } /** - * IdentifiedPacketFees packet_id. - * @member {ibc.core.channel.v1.IPacketId|null|undefined} packet_id - * @memberof ibc.applications.fee.v1.IdentifiedPacketFees - * @instance - */ - IdentifiedPacketFees.prototype.packet_id = null; - - /** - * IdentifiedPacketFees packet_fees. - * @member {Array.} packet_fees - * @memberof ibc.applications.fee.v1.IdentifiedPacketFees - * @instance - */ - IdentifiedPacketFees.prototype.packet_fees = $util.emptyArray; - - /** - * Encodes the specified IdentifiedPacketFees message. Does not implicitly {@link ibc.applications.fee.v1.IdentifiedPacketFees.verify|verify} messages. + * Encodes the specified MsgRegisterPayeeResponse message. Does not implicitly {@link ibc.applications.fee.v1.MsgRegisterPayeeResponse.verify|verify} messages. * @function encode - * @memberof ibc.applications.fee.v1.IdentifiedPacketFees + * @memberof ibc.applications.fee.v1.MsgRegisterPayeeResponse * @static - * @param {ibc.applications.fee.v1.IIdentifiedPacketFees} message IdentifiedPacketFees message or plain object to encode + * @param {ibc.applications.fee.v1.IMsgRegisterPayeeResponse} message MsgRegisterPayeeResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - IdentifiedPacketFees.encode = function encode(message, writer) { + MsgRegisterPayeeResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.packet_id != null && Object.hasOwnProperty.call(message, "packet_id")) - $root.ibc.core.channel.v1.PacketId.encode(message.packet_id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.packet_fees != null && message.packet_fees.length) - for (let i = 0; i < message.packet_fees.length; ++i) - $root.ibc.applications.fee.v1.PacketFee.encode(message.packet_fees[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified IdentifiedPacketFees message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.IdentifiedPacketFees.verify|verify} messages. + * Encodes the specified MsgRegisterPayeeResponse message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.MsgRegisterPayeeResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.applications.fee.v1.IdentifiedPacketFees + * @memberof ibc.applications.fee.v1.MsgRegisterPayeeResponse * @static - * @param {ibc.applications.fee.v1.IIdentifiedPacketFees} message IdentifiedPacketFees message or plain object to encode + * @param {ibc.applications.fee.v1.IMsgRegisterPayeeResponse} message MsgRegisterPayeeResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - IdentifiedPacketFees.encodeDelimited = function encodeDelimited(message, writer) { + MsgRegisterPayeeResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an IdentifiedPacketFees message from the specified reader or buffer. + * Decodes a MsgRegisterPayeeResponse message from the specified reader or buffer. * @function decode - * @memberof ibc.applications.fee.v1.IdentifiedPacketFees + * @memberof ibc.applications.fee.v1.MsgRegisterPayeeResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.fee.v1.IdentifiedPacketFees} IdentifiedPacketFees + * @returns {ibc.applications.fee.v1.MsgRegisterPayeeResponse} MsgRegisterPayeeResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - IdentifiedPacketFees.decode = function decode(reader, length) { + MsgRegisterPayeeResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.IdentifiedPacketFees(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.MsgRegisterPayeeResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.packet_id = $root.ibc.core.channel.v1.PacketId.decode(reader, reader.uint32()); - break; - case 2: - if (!(message.packet_fees && message.packet_fees.length)) - message.packet_fees = []; - message.packet_fees.push($root.ibc.applications.fee.v1.PacketFee.decode(reader, reader.uint32())); - break; default: reader.skipType(tag & 7); break; @@ -20765,140 +27235,97 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes an IdentifiedPacketFees message from the specified reader or buffer, length delimited. + * Decodes a MsgRegisterPayeeResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.applications.fee.v1.IdentifiedPacketFees + * @memberof ibc.applications.fee.v1.MsgRegisterPayeeResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.fee.v1.IdentifiedPacketFees} IdentifiedPacketFees + * @returns {ibc.applications.fee.v1.MsgRegisterPayeeResponse} MsgRegisterPayeeResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - IdentifiedPacketFees.decodeDelimited = function decodeDelimited(reader) { + MsgRegisterPayeeResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an IdentifiedPacketFees message. + * Verifies a MsgRegisterPayeeResponse message. * @function verify - * @memberof ibc.applications.fee.v1.IdentifiedPacketFees + * @memberof ibc.applications.fee.v1.MsgRegisterPayeeResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - IdentifiedPacketFees.verify = function verify(message) { + MsgRegisterPayeeResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.packet_id != null && message.hasOwnProperty("packet_id")) { - let error = $root.ibc.core.channel.v1.PacketId.verify(message.packet_id); - if (error) - return "packet_id." + error; - } - if (message.packet_fees != null && message.hasOwnProperty("packet_fees")) { - if (!Array.isArray(message.packet_fees)) - return "packet_fees: array expected"; - for (let i = 0; i < message.packet_fees.length; ++i) { - let error = $root.ibc.applications.fee.v1.PacketFee.verify(message.packet_fees[i]); - if (error) - return "packet_fees." + error; - } - } return null; }; /** - * Creates an IdentifiedPacketFees message from a plain object. Also converts values to their respective internal types. + * Creates a MsgRegisterPayeeResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.applications.fee.v1.IdentifiedPacketFees + * @memberof ibc.applications.fee.v1.MsgRegisterPayeeResponse * @static * @param {Object.} object Plain object - * @returns {ibc.applications.fee.v1.IdentifiedPacketFees} IdentifiedPacketFees - */ - IdentifiedPacketFees.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.fee.v1.IdentifiedPacketFees) - return object; - let message = new $root.ibc.applications.fee.v1.IdentifiedPacketFees(); - if (object.packet_id != null) { - if (typeof object.packet_id !== "object") - throw TypeError(".ibc.applications.fee.v1.IdentifiedPacketFees.packet_id: object expected"); - message.packet_id = $root.ibc.core.channel.v1.PacketId.fromObject(object.packet_id); - } - if (object.packet_fees) { - if (!Array.isArray(object.packet_fees)) - throw TypeError(".ibc.applications.fee.v1.IdentifiedPacketFees.packet_fees: array expected"); - message.packet_fees = []; - for (let i = 0; i < object.packet_fees.length; ++i) { - if (typeof object.packet_fees[i] !== "object") - throw TypeError(".ibc.applications.fee.v1.IdentifiedPacketFees.packet_fees: object expected"); - message.packet_fees[i] = $root.ibc.applications.fee.v1.PacketFee.fromObject(object.packet_fees[i]); - } - } - return message; - }; - - /** - * Creates a plain object from an IdentifiedPacketFees message. Also converts values to other types if specified. - * @function toObject - * @memberof ibc.applications.fee.v1.IdentifiedPacketFees - * @static - * @param {ibc.applications.fee.v1.IdentifiedPacketFees} message IdentifiedPacketFees - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * @returns {ibc.applications.fee.v1.MsgRegisterPayeeResponse} MsgRegisterPayeeResponse */ - IdentifiedPacketFees.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.arrays || options.defaults) - object.packet_fees = []; - if (options.defaults) - object.packet_id = null; - if (message.packet_id != null && message.hasOwnProperty("packet_id")) - object.packet_id = $root.ibc.core.channel.v1.PacketId.toObject(message.packet_id, options); - if (message.packet_fees && message.packet_fees.length) { - object.packet_fees = []; - for (let j = 0; j < message.packet_fees.length; ++j) - object.packet_fees[j] = $root.ibc.applications.fee.v1.PacketFee.toObject(message.packet_fees[j], options); - } - return object; + MsgRegisterPayeeResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.fee.v1.MsgRegisterPayeeResponse) + return object; + return new $root.ibc.applications.fee.v1.MsgRegisterPayeeResponse(); }; /** - * Converts this IdentifiedPacketFees to JSON. + * Creates a plain object from a MsgRegisterPayeeResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof ibc.applications.fee.v1.MsgRegisterPayeeResponse + * @static + * @param {ibc.applications.fee.v1.MsgRegisterPayeeResponse} message MsgRegisterPayeeResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MsgRegisterPayeeResponse.toObject = function toObject() { + return {}; + }; + + /** + * Converts this MsgRegisterPayeeResponse to JSON. * @function toJSON - * @memberof ibc.applications.fee.v1.IdentifiedPacketFees + * @memberof ibc.applications.fee.v1.MsgRegisterPayeeResponse * @instance * @returns {Object.} JSON object */ - IdentifiedPacketFees.prototype.toJSON = function toJSON() { + MsgRegisterPayeeResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return IdentifiedPacketFees; + return MsgRegisterPayeeResponse; })(); - v1.IncentivizedAcknowledgement = (function() { + v1.MsgRegisterCounterpartyPayee = (function() { /** - * Properties of an IncentivizedAcknowledgement. + * Properties of a MsgRegisterCounterpartyPayee. * @memberof ibc.applications.fee.v1 - * @interface IIncentivizedAcknowledgement - * @property {Uint8Array|null} [app_acknowledgement] IncentivizedAcknowledgement app_acknowledgement - * @property {string|null} [forward_relayer_address] IncentivizedAcknowledgement forward_relayer_address - * @property {boolean|null} [underlying_app_success] IncentivizedAcknowledgement underlying_app_success + * @interface IMsgRegisterCounterpartyPayee + * @property {string|null} [port_id] MsgRegisterCounterpartyPayee port_id + * @property {string|null} [channel_id] MsgRegisterCounterpartyPayee channel_id + * @property {string|null} [relayer] MsgRegisterCounterpartyPayee relayer + * @property {string|null} [counterparty_payee] MsgRegisterCounterpartyPayee counterparty_payee */ /** - * Constructs a new IncentivizedAcknowledgement. + * Constructs a new MsgRegisterCounterpartyPayee. * @memberof ibc.applications.fee.v1 - * @classdesc Represents an IncentivizedAcknowledgement. - * @implements IIncentivizedAcknowledgement + * @classdesc Represents a MsgRegisterCounterpartyPayee. + * @implements IMsgRegisterCounterpartyPayee * @constructor - * @param {ibc.applications.fee.v1.IIncentivizedAcknowledgement=} [properties] Properties to set + * @param {ibc.applications.fee.v1.IMsgRegisterCounterpartyPayee=} [properties] Properties to set */ - function IncentivizedAcknowledgement(properties) { + function MsgRegisterCounterpartyPayee(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -20906,89 +27333,102 @@ export const ibc = $root.ibc = (() => { } /** - * IncentivizedAcknowledgement app_acknowledgement. - * @member {Uint8Array} app_acknowledgement - * @memberof ibc.applications.fee.v1.IncentivizedAcknowledgement + * MsgRegisterCounterpartyPayee port_id. + * @member {string} port_id + * @memberof ibc.applications.fee.v1.MsgRegisterCounterpartyPayee * @instance */ - IncentivizedAcknowledgement.prototype.app_acknowledgement = $util.newBuffer([]); + MsgRegisterCounterpartyPayee.prototype.port_id = ""; /** - * IncentivizedAcknowledgement forward_relayer_address. - * @member {string} forward_relayer_address - * @memberof ibc.applications.fee.v1.IncentivizedAcknowledgement + * MsgRegisterCounterpartyPayee channel_id. + * @member {string} channel_id + * @memberof ibc.applications.fee.v1.MsgRegisterCounterpartyPayee * @instance */ - IncentivizedAcknowledgement.prototype.forward_relayer_address = ""; + MsgRegisterCounterpartyPayee.prototype.channel_id = ""; /** - * IncentivizedAcknowledgement underlying_app_success. - * @member {boolean} underlying_app_success - * @memberof ibc.applications.fee.v1.IncentivizedAcknowledgement + * MsgRegisterCounterpartyPayee relayer. + * @member {string} relayer + * @memberof ibc.applications.fee.v1.MsgRegisterCounterpartyPayee * @instance */ - IncentivizedAcknowledgement.prototype.underlying_app_success = false; + MsgRegisterCounterpartyPayee.prototype.relayer = ""; /** - * Encodes the specified IncentivizedAcknowledgement message. Does not implicitly {@link ibc.applications.fee.v1.IncentivizedAcknowledgement.verify|verify} messages. + * MsgRegisterCounterpartyPayee counterparty_payee. + * @member {string} counterparty_payee + * @memberof ibc.applications.fee.v1.MsgRegisterCounterpartyPayee + * @instance + */ + MsgRegisterCounterpartyPayee.prototype.counterparty_payee = ""; + + /** + * Encodes the specified MsgRegisterCounterpartyPayee message. Does not implicitly {@link ibc.applications.fee.v1.MsgRegisterCounterpartyPayee.verify|verify} messages. * @function encode - * @memberof ibc.applications.fee.v1.IncentivizedAcknowledgement + * @memberof ibc.applications.fee.v1.MsgRegisterCounterpartyPayee * @static - * @param {ibc.applications.fee.v1.IIncentivizedAcknowledgement} message IncentivizedAcknowledgement message or plain object to encode + * @param {ibc.applications.fee.v1.IMsgRegisterCounterpartyPayee} message MsgRegisterCounterpartyPayee message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - IncentivizedAcknowledgement.encode = function encode(message, writer) { + MsgRegisterCounterpartyPayee.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.app_acknowledgement != null && Object.hasOwnProperty.call(message, "app_acknowledgement")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.app_acknowledgement); - if (message.forward_relayer_address != null && Object.hasOwnProperty.call(message, "forward_relayer_address")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.forward_relayer_address); - if (message.underlying_app_success != null && Object.hasOwnProperty.call(message, "underlying_app_success")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.underlying_app_success); + if (message.port_id != null && Object.hasOwnProperty.call(message, "port_id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.port_id); + if (message.channel_id != null && Object.hasOwnProperty.call(message, "channel_id")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.channel_id); + if (message.relayer != null && Object.hasOwnProperty.call(message, "relayer")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.relayer); + if (message.counterparty_payee != null && Object.hasOwnProperty.call(message, "counterparty_payee")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.counterparty_payee); return writer; }; /** - * Encodes the specified IncentivizedAcknowledgement message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.IncentivizedAcknowledgement.verify|verify} messages. + * Encodes the specified MsgRegisterCounterpartyPayee message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.MsgRegisterCounterpartyPayee.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.applications.fee.v1.IncentivizedAcknowledgement + * @memberof ibc.applications.fee.v1.MsgRegisterCounterpartyPayee * @static - * @param {ibc.applications.fee.v1.IIncentivizedAcknowledgement} message IncentivizedAcknowledgement message or plain object to encode + * @param {ibc.applications.fee.v1.IMsgRegisterCounterpartyPayee} message MsgRegisterCounterpartyPayee message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - IncentivizedAcknowledgement.encodeDelimited = function encodeDelimited(message, writer) { + MsgRegisterCounterpartyPayee.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an IncentivizedAcknowledgement message from the specified reader or buffer. + * Decodes a MsgRegisterCounterpartyPayee message from the specified reader or buffer. * @function decode - * @memberof ibc.applications.fee.v1.IncentivizedAcknowledgement + * @memberof ibc.applications.fee.v1.MsgRegisterCounterpartyPayee * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.fee.v1.IncentivizedAcknowledgement} IncentivizedAcknowledgement + * @returns {ibc.applications.fee.v1.MsgRegisterCounterpartyPayee} MsgRegisterCounterpartyPayee * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - IncentivizedAcknowledgement.decode = function decode(reader, length) { + MsgRegisterCounterpartyPayee.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.IncentivizedAcknowledgement(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.MsgRegisterCounterpartyPayee(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.app_acknowledgement = reader.bytes(); + message.port_id = reader.string(); break; case 2: - message.forward_relayer_address = reader.string(); + message.channel_id = reader.string(); break; case 3: - message.underlying_app_success = reader.bool(); + message.relayer = reader.string(); + break; + case 4: + message.counterparty_payee = reader.string(); break; default: reader.skipType(tag & 7); @@ -20999,485 +27439,285 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes an IncentivizedAcknowledgement message from the specified reader or buffer, length delimited. + * Decodes a MsgRegisterCounterpartyPayee message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.applications.fee.v1.IncentivizedAcknowledgement + * @memberof ibc.applications.fee.v1.MsgRegisterCounterpartyPayee * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.fee.v1.IncentivizedAcknowledgement} IncentivizedAcknowledgement + * @returns {ibc.applications.fee.v1.MsgRegisterCounterpartyPayee} MsgRegisterCounterpartyPayee * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - IncentivizedAcknowledgement.decodeDelimited = function decodeDelimited(reader) { + MsgRegisterCounterpartyPayee.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an IncentivizedAcknowledgement message. + * Verifies a MsgRegisterCounterpartyPayee message. * @function verify - * @memberof ibc.applications.fee.v1.IncentivizedAcknowledgement + * @memberof ibc.applications.fee.v1.MsgRegisterCounterpartyPayee * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - IncentivizedAcknowledgement.verify = function verify(message) { + MsgRegisterCounterpartyPayee.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.app_acknowledgement != null && message.hasOwnProperty("app_acknowledgement")) - if (!(message.app_acknowledgement && typeof message.app_acknowledgement.length === "number" || $util.isString(message.app_acknowledgement))) - return "app_acknowledgement: buffer expected"; - if (message.forward_relayer_address != null && message.hasOwnProperty("forward_relayer_address")) - if (!$util.isString(message.forward_relayer_address)) - return "forward_relayer_address: string expected"; - if (message.underlying_app_success != null && message.hasOwnProperty("underlying_app_success")) - if (typeof message.underlying_app_success !== "boolean") - return "underlying_app_success: boolean expected"; + if (message.port_id != null && message.hasOwnProperty("port_id")) + if (!$util.isString(message.port_id)) + return "port_id: string expected"; + if (message.channel_id != null && message.hasOwnProperty("channel_id")) + if (!$util.isString(message.channel_id)) + return "channel_id: string expected"; + if (message.relayer != null && message.hasOwnProperty("relayer")) + if (!$util.isString(message.relayer)) + return "relayer: string expected"; + if (message.counterparty_payee != null && message.hasOwnProperty("counterparty_payee")) + if (!$util.isString(message.counterparty_payee)) + return "counterparty_payee: string expected"; return null; }; /** - * Creates an IncentivizedAcknowledgement message from a plain object. Also converts values to their respective internal types. + * Creates a MsgRegisterCounterpartyPayee message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.applications.fee.v1.IncentivizedAcknowledgement + * @memberof ibc.applications.fee.v1.MsgRegisterCounterpartyPayee * @static * @param {Object.} object Plain object - * @returns {ibc.applications.fee.v1.IncentivizedAcknowledgement} IncentivizedAcknowledgement + * @returns {ibc.applications.fee.v1.MsgRegisterCounterpartyPayee} MsgRegisterCounterpartyPayee */ - IncentivizedAcknowledgement.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.fee.v1.IncentivizedAcknowledgement) + MsgRegisterCounterpartyPayee.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.fee.v1.MsgRegisterCounterpartyPayee) return object; - let message = new $root.ibc.applications.fee.v1.IncentivizedAcknowledgement(); - if (object.app_acknowledgement != null) - if (typeof object.app_acknowledgement === "string") - $util.base64.decode(object.app_acknowledgement, message.app_acknowledgement = $util.newBuffer($util.base64.length(object.app_acknowledgement)), 0); - else if (object.app_acknowledgement.length) - message.app_acknowledgement = object.app_acknowledgement; - if (object.forward_relayer_address != null) - message.forward_relayer_address = String(object.forward_relayer_address); - if (object.underlying_app_success != null) - message.underlying_app_success = Boolean(object.underlying_app_success); + let message = new $root.ibc.applications.fee.v1.MsgRegisterCounterpartyPayee(); + if (object.port_id != null) + message.port_id = String(object.port_id); + if (object.channel_id != null) + message.channel_id = String(object.channel_id); + if (object.relayer != null) + message.relayer = String(object.relayer); + if (object.counterparty_payee != null) + message.counterparty_payee = String(object.counterparty_payee); return message; }; /** - * Creates a plain object from an IncentivizedAcknowledgement message. Also converts values to other types if specified. + * Creates a plain object from a MsgRegisterCounterpartyPayee message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.applications.fee.v1.IncentivizedAcknowledgement + * @memberof ibc.applications.fee.v1.MsgRegisterCounterpartyPayee * @static - * @param {ibc.applications.fee.v1.IncentivizedAcknowledgement} message IncentivizedAcknowledgement + * @param {ibc.applications.fee.v1.MsgRegisterCounterpartyPayee} message MsgRegisterCounterpartyPayee * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - IncentivizedAcknowledgement.toObject = function toObject(message, options) { + MsgRegisterCounterpartyPayee.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.app_acknowledgement = ""; - else { - object.app_acknowledgement = []; - if (options.bytes !== Array) - object.app_acknowledgement = $util.newBuffer(object.app_acknowledgement); - } - object.forward_relayer_address = ""; - object.underlying_app_success = false; + object.port_id = ""; + object.channel_id = ""; + object.relayer = ""; + object.counterparty_payee = ""; } - if (message.app_acknowledgement != null && message.hasOwnProperty("app_acknowledgement")) - object.app_acknowledgement = options.bytes === String ? $util.base64.encode(message.app_acknowledgement, 0, message.app_acknowledgement.length) : options.bytes === Array ? Array.prototype.slice.call(message.app_acknowledgement) : message.app_acknowledgement; - if (message.forward_relayer_address != null && message.hasOwnProperty("forward_relayer_address")) - object.forward_relayer_address = message.forward_relayer_address; - if (message.underlying_app_success != null && message.hasOwnProperty("underlying_app_success")) - object.underlying_app_success = message.underlying_app_success; + if (message.port_id != null && message.hasOwnProperty("port_id")) + object.port_id = message.port_id; + if (message.channel_id != null && message.hasOwnProperty("channel_id")) + object.channel_id = message.channel_id; + if (message.relayer != null && message.hasOwnProperty("relayer")) + object.relayer = message.relayer; + if (message.counterparty_payee != null && message.hasOwnProperty("counterparty_payee")) + object.counterparty_payee = message.counterparty_payee; return object; }; /** - * Converts this IncentivizedAcknowledgement to JSON. + * Converts this MsgRegisterCounterpartyPayee to JSON. * @function toJSON - * @memberof ibc.applications.fee.v1.IncentivizedAcknowledgement + * @memberof ibc.applications.fee.v1.MsgRegisterCounterpartyPayee * @instance * @returns {Object.} JSON object */ - IncentivizedAcknowledgement.prototype.toJSON = function toJSON() { + MsgRegisterCounterpartyPayee.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return IncentivizedAcknowledgement; + return MsgRegisterCounterpartyPayee; })(); - v1.Query = (function() { + v1.MsgRegisterCounterpartyPayeeResponse = (function() { /** - * Constructs a new Query service. + * Properties of a MsgRegisterCounterpartyPayeeResponse. * @memberof ibc.applications.fee.v1 - * @classdesc Represents a Query - * @extends $protobuf.rpc.Service - * @constructor - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - */ - function Query(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } - - (Query.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Query; - - /** - * Callback as used by {@link ibc.applications.fee.v1.Query#incentivizedPackets}. - * @memberof ibc.applications.fee.v1.Query - * @typedef IncentivizedPacketsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.applications.fee.v1.QueryIncentivizedPacketsResponse} [response] QueryIncentivizedPacketsResponse - */ - - /** - * Calls IncentivizedPackets. - * @function incentivizedPackets - * @memberof ibc.applications.fee.v1.Query - * @instance - * @param {ibc.applications.fee.v1.IQueryIncentivizedPacketsRequest} request QueryIncentivizedPacketsRequest message or plain object - * @param {ibc.applications.fee.v1.Query.IncentivizedPacketsCallback} callback Node-style callback called with the error, if any, and QueryIncentivizedPacketsResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Query.prototype.incentivizedPackets = function incentivizedPackets(request, callback) { - return this.rpcCall(incentivizedPackets, $root.ibc.applications.fee.v1.QueryIncentivizedPacketsRequest, $root.ibc.applications.fee.v1.QueryIncentivizedPacketsResponse, request, callback); - }, "name", { value: "IncentivizedPackets" }); - - /** - * Calls IncentivizedPackets. - * @function incentivizedPackets - * @memberof ibc.applications.fee.v1.Query - * @instance - * @param {ibc.applications.fee.v1.IQueryIncentivizedPacketsRequest} request QueryIncentivizedPacketsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link ibc.applications.fee.v1.Query#incentivizedPacket}. - * @memberof ibc.applications.fee.v1.Query - * @typedef IncentivizedPacketCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.applications.fee.v1.QueryIncentivizedPacketResponse} [response] QueryIncentivizedPacketResponse - */ - - /** - * Calls IncentivizedPacket. - * @function incentivizedPacket - * @memberof ibc.applications.fee.v1.Query - * @instance - * @param {ibc.applications.fee.v1.IQueryIncentivizedPacketRequest} request QueryIncentivizedPacketRequest message or plain object - * @param {ibc.applications.fee.v1.Query.IncentivizedPacketCallback} callback Node-style callback called with the error, if any, and QueryIncentivizedPacketResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Query.prototype.incentivizedPacket = function incentivizedPacket(request, callback) { - return this.rpcCall(incentivizedPacket, $root.ibc.applications.fee.v1.QueryIncentivizedPacketRequest, $root.ibc.applications.fee.v1.QueryIncentivizedPacketResponse, request, callback); - }, "name", { value: "IncentivizedPacket" }); - - /** - * Calls IncentivizedPacket. - * @function incentivizedPacket - * @memberof ibc.applications.fee.v1.Query - * @instance - * @param {ibc.applications.fee.v1.IQueryIncentivizedPacketRequest} request QueryIncentivizedPacketRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link ibc.applications.fee.v1.Query#incentivizedPacketsForChannel}. - * @memberof ibc.applications.fee.v1.Query - * @typedef IncentivizedPacketsForChannelCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelResponse} [response] QueryIncentivizedPacketsForChannelResponse - */ - - /** - * Calls IncentivizedPacketsForChannel. - * @function incentivizedPacketsForChannel - * @memberof ibc.applications.fee.v1.Query - * @instance - * @param {ibc.applications.fee.v1.IQueryIncentivizedPacketsForChannelRequest} request QueryIncentivizedPacketsForChannelRequest message or plain object - * @param {ibc.applications.fee.v1.Query.IncentivizedPacketsForChannelCallback} callback Node-style callback called with the error, if any, and QueryIncentivizedPacketsForChannelResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Query.prototype.incentivizedPacketsForChannel = function incentivizedPacketsForChannel(request, callback) { - return this.rpcCall(incentivizedPacketsForChannel, $root.ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest, $root.ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelResponse, request, callback); - }, "name", { value: "IncentivizedPacketsForChannel" }); - - /** - * Calls IncentivizedPacketsForChannel. - * @function incentivizedPacketsForChannel - * @memberof ibc.applications.fee.v1.Query - * @instance - * @param {ibc.applications.fee.v1.IQueryIncentivizedPacketsForChannelRequest} request QueryIncentivizedPacketsForChannelRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link ibc.applications.fee.v1.Query#totalRecvFees}. - * @memberof ibc.applications.fee.v1.Query - * @typedef TotalRecvFeesCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.applications.fee.v1.QueryTotalRecvFeesResponse} [response] QueryTotalRecvFeesResponse - */ - - /** - * Calls TotalRecvFees. - * @function totalRecvFees - * @memberof ibc.applications.fee.v1.Query - * @instance - * @param {ibc.applications.fee.v1.IQueryTotalRecvFeesRequest} request QueryTotalRecvFeesRequest message or plain object - * @param {ibc.applications.fee.v1.Query.TotalRecvFeesCallback} callback Node-style callback called with the error, if any, and QueryTotalRecvFeesResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Query.prototype.totalRecvFees = function totalRecvFees(request, callback) { - return this.rpcCall(totalRecvFees, $root.ibc.applications.fee.v1.QueryTotalRecvFeesRequest, $root.ibc.applications.fee.v1.QueryTotalRecvFeesResponse, request, callback); - }, "name", { value: "TotalRecvFees" }); - - /** - * Calls TotalRecvFees. - * @function totalRecvFees - * @memberof ibc.applications.fee.v1.Query - * @instance - * @param {ibc.applications.fee.v1.IQueryTotalRecvFeesRequest} request QueryTotalRecvFeesRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link ibc.applications.fee.v1.Query#totalAckFees}. - * @memberof ibc.applications.fee.v1.Query - * @typedef TotalAckFeesCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.applications.fee.v1.QueryTotalAckFeesResponse} [response] QueryTotalAckFeesResponse - */ - - /** - * Calls TotalAckFees. - * @function totalAckFees - * @memberof ibc.applications.fee.v1.Query - * @instance - * @param {ibc.applications.fee.v1.IQueryTotalAckFeesRequest} request QueryTotalAckFeesRequest message or plain object - * @param {ibc.applications.fee.v1.Query.TotalAckFeesCallback} callback Node-style callback called with the error, if any, and QueryTotalAckFeesResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Query.prototype.totalAckFees = function totalAckFees(request, callback) { - return this.rpcCall(totalAckFees, $root.ibc.applications.fee.v1.QueryTotalAckFeesRequest, $root.ibc.applications.fee.v1.QueryTotalAckFeesResponse, request, callback); - }, "name", { value: "TotalAckFees" }); - - /** - * Calls TotalAckFees. - * @function totalAckFees - * @memberof ibc.applications.fee.v1.Query - * @instance - * @param {ibc.applications.fee.v1.IQueryTotalAckFeesRequest} request QueryTotalAckFeesRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link ibc.applications.fee.v1.Query#totalTimeoutFees}. - * @memberof ibc.applications.fee.v1.Query - * @typedef TotalTimeoutFeesCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.applications.fee.v1.QueryTotalTimeoutFeesResponse} [response] QueryTotalTimeoutFeesResponse - */ - - /** - * Calls TotalTimeoutFees. - * @function totalTimeoutFees - * @memberof ibc.applications.fee.v1.Query - * @instance - * @param {ibc.applications.fee.v1.IQueryTotalTimeoutFeesRequest} request QueryTotalTimeoutFeesRequest message or plain object - * @param {ibc.applications.fee.v1.Query.TotalTimeoutFeesCallback} callback Node-style callback called with the error, if any, and QueryTotalTimeoutFeesResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Query.prototype.totalTimeoutFees = function totalTimeoutFees(request, callback) { - return this.rpcCall(totalTimeoutFees, $root.ibc.applications.fee.v1.QueryTotalTimeoutFeesRequest, $root.ibc.applications.fee.v1.QueryTotalTimeoutFeesResponse, request, callback); - }, "name", { value: "TotalTimeoutFees" }); - - /** - * Calls TotalTimeoutFees. - * @function totalTimeoutFees - * @memberof ibc.applications.fee.v1.Query - * @instance - * @param {ibc.applications.fee.v1.IQueryTotalTimeoutFeesRequest} request QueryTotalTimeoutFeesRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link ibc.applications.fee.v1.Query#payee}. - * @memberof ibc.applications.fee.v1.Query - * @typedef PayeeCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.applications.fee.v1.QueryPayeeResponse} [response] QueryPayeeResponse - */ - - /** - * Calls Payee. - * @function payee - * @memberof ibc.applications.fee.v1.Query - * @instance - * @param {ibc.applications.fee.v1.IQueryPayeeRequest} request QueryPayeeRequest message or plain object - * @param {ibc.applications.fee.v1.Query.PayeeCallback} callback Node-style callback called with the error, if any, and QueryPayeeResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Query.prototype.payee = function payee(request, callback) { - return this.rpcCall(payee, $root.ibc.applications.fee.v1.QueryPayeeRequest, $root.ibc.applications.fee.v1.QueryPayeeResponse, request, callback); - }, "name", { value: "Payee" }); - - /** - * Calls Payee. - * @function payee - * @memberof ibc.applications.fee.v1.Query - * @instance - * @param {ibc.applications.fee.v1.IQueryPayeeRequest} request QueryPayeeRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * @interface IMsgRegisterCounterpartyPayeeResponse */ /** - * Callback as used by {@link ibc.applications.fee.v1.Query#counterpartyPayee}. - * @memberof ibc.applications.fee.v1.Query - * @typedef CounterpartyPayeeCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.applications.fee.v1.QueryCounterpartyPayeeResponse} [response] QueryCounterpartyPayeeResponse + * Constructs a new MsgRegisterCounterpartyPayeeResponse. + * @memberof ibc.applications.fee.v1 + * @classdesc Represents a MsgRegisterCounterpartyPayeeResponse. + * @implements IMsgRegisterCounterpartyPayeeResponse + * @constructor + * @param {ibc.applications.fee.v1.IMsgRegisterCounterpartyPayeeResponse=} [properties] Properties to set */ + function MsgRegisterCounterpartyPayeeResponse(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * Calls CounterpartyPayee. - * @function counterpartyPayee - * @memberof ibc.applications.fee.v1.Query - * @instance - * @param {ibc.applications.fee.v1.IQueryCounterpartyPayeeRequest} request QueryCounterpartyPayeeRequest message or plain object - * @param {ibc.applications.fee.v1.Query.CounterpartyPayeeCallback} callback Node-style callback called with the error, if any, and QueryCounterpartyPayeeResponse - * @returns {undefined} - * @variation 1 + * Encodes the specified MsgRegisterCounterpartyPayeeResponse message. Does not implicitly {@link ibc.applications.fee.v1.MsgRegisterCounterpartyPayeeResponse.verify|verify} messages. + * @function encode + * @memberof ibc.applications.fee.v1.MsgRegisterCounterpartyPayeeResponse + * @static + * @param {ibc.applications.fee.v1.IMsgRegisterCounterpartyPayeeResponse} message MsgRegisterCounterpartyPayeeResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Object.defineProperty(Query.prototype.counterpartyPayee = function counterpartyPayee(request, callback) { - return this.rpcCall(counterpartyPayee, $root.ibc.applications.fee.v1.QueryCounterpartyPayeeRequest, $root.ibc.applications.fee.v1.QueryCounterpartyPayeeResponse, request, callback); - }, "name", { value: "CounterpartyPayee" }); + MsgRegisterCounterpartyPayeeResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; /** - * Calls CounterpartyPayee. - * @function counterpartyPayee - * @memberof ibc.applications.fee.v1.Query - * @instance - * @param {ibc.applications.fee.v1.IQueryCounterpartyPayeeRequest} request QueryCounterpartyPayeeRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Encodes the specified MsgRegisterCounterpartyPayeeResponse message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.MsgRegisterCounterpartyPayeeResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof ibc.applications.fee.v1.MsgRegisterCounterpartyPayeeResponse + * @static + * @param {ibc.applications.fee.v1.IMsgRegisterCounterpartyPayeeResponse} message MsgRegisterCounterpartyPayeeResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ + MsgRegisterCounterpartyPayeeResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Callback as used by {@link ibc.applications.fee.v1.Query#feeEnabledChannels}. - * @memberof ibc.applications.fee.v1.Query - * @typedef FeeEnabledChannelsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.applications.fee.v1.QueryFeeEnabledChannelsResponse} [response] QueryFeeEnabledChannelsResponse + * Decodes a MsgRegisterCounterpartyPayeeResponse message from the specified reader or buffer. + * @function decode + * @memberof ibc.applications.fee.v1.MsgRegisterCounterpartyPayeeResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {ibc.applications.fee.v1.MsgRegisterCounterpartyPayeeResponse} MsgRegisterCounterpartyPayeeResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + MsgRegisterCounterpartyPayeeResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.MsgRegisterCounterpartyPayeeResponse(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Calls FeeEnabledChannels. - * @function feeEnabledChannels - * @memberof ibc.applications.fee.v1.Query - * @instance - * @param {ibc.applications.fee.v1.IQueryFeeEnabledChannelsRequest} request QueryFeeEnabledChannelsRequest message or plain object - * @param {ibc.applications.fee.v1.Query.FeeEnabledChannelsCallback} callback Node-style callback called with the error, if any, and QueryFeeEnabledChannelsResponse - * @returns {undefined} - * @variation 1 + * Decodes a MsgRegisterCounterpartyPayeeResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof ibc.applications.fee.v1.MsgRegisterCounterpartyPayeeResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {ibc.applications.fee.v1.MsgRegisterCounterpartyPayeeResponse} MsgRegisterCounterpartyPayeeResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Object.defineProperty(Query.prototype.feeEnabledChannels = function feeEnabledChannels(request, callback) { - return this.rpcCall(feeEnabledChannels, $root.ibc.applications.fee.v1.QueryFeeEnabledChannelsRequest, $root.ibc.applications.fee.v1.QueryFeeEnabledChannelsResponse, request, callback); - }, "name", { value: "FeeEnabledChannels" }); + MsgRegisterCounterpartyPayeeResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Calls FeeEnabledChannels. - * @function feeEnabledChannels - * @memberof ibc.applications.fee.v1.Query - * @instance - * @param {ibc.applications.fee.v1.IQueryFeeEnabledChannelsRequest} request QueryFeeEnabledChannelsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Verifies a MsgRegisterCounterpartyPayeeResponse message. + * @function verify + * @memberof ibc.applications.fee.v1.MsgRegisterCounterpartyPayeeResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ + MsgRegisterCounterpartyPayeeResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; /** - * Callback as used by {@link ibc.applications.fee.v1.Query#feeEnabledChannel}. - * @memberof ibc.applications.fee.v1.Query - * @typedef FeeEnabledChannelCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.applications.fee.v1.QueryFeeEnabledChannelResponse} [response] QueryFeeEnabledChannelResponse + * Creates a MsgRegisterCounterpartyPayeeResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof ibc.applications.fee.v1.MsgRegisterCounterpartyPayeeResponse + * @static + * @param {Object.} object Plain object + * @returns {ibc.applications.fee.v1.MsgRegisterCounterpartyPayeeResponse} MsgRegisterCounterpartyPayeeResponse */ + MsgRegisterCounterpartyPayeeResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.fee.v1.MsgRegisterCounterpartyPayeeResponse) + return object; + return new $root.ibc.applications.fee.v1.MsgRegisterCounterpartyPayeeResponse(); + }; /** - * Calls FeeEnabledChannel. - * @function feeEnabledChannel - * @memberof ibc.applications.fee.v1.Query - * @instance - * @param {ibc.applications.fee.v1.IQueryFeeEnabledChannelRequest} request QueryFeeEnabledChannelRequest message or plain object - * @param {ibc.applications.fee.v1.Query.FeeEnabledChannelCallback} callback Node-style callback called with the error, if any, and QueryFeeEnabledChannelResponse - * @returns {undefined} - * @variation 1 + * Creates a plain object from a MsgRegisterCounterpartyPayeeResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof ibc.applications.fee.v1.MsgRegisterCounterpartyPayeeResponse + * @static + * @param {ibc.applications.fee.v1.MsgRegisterCounterpartyPayeeResponse} message MsgRegisterCounterpartyPayeeResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - Object.defineProperty(Query.prototype.feeEnabledChannel = function feeEnabledChannel(request, callback) { - return this.rpcCall(feeEnabledChannel, $root.ibc.applications.fee.v1.QueryFeeEnabledChannelRequest, $root.ibc.applications.fee.v1.QueryFeeEnabledChannelResponse, request, callback); - }, "name", { value: "FeeEnabledChannel" }); + MsgRegisterCounterpartyPayeeResponse.toObject = function toObject() { + return {}; + }; /** - * Calls FeeEnabledChannel. - * @function feeEnabledChannel - * @memberof ibc.applications.fee.v1.Query + * Converts this MsgRegisterCounterpartyPayeeResponse to JSON. + * @function toJSON + * @memberof ibc.applications.fee.v1.MsgRegisterCounterpartyPayeeResponse * @instance - * @param {ibc.applications.fee.v1.IQueryFeeEnabledChannelRequest} request QueryFeeEnabledChannelRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * @returns {Object.} JSON object */ + MsgRegisterCounterpartyPayeeResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return Query; + return MsgRegisterCounterpartyPayeeResponse; })(); - v1.QueryIncentivizedPacketsRequest = (function() { + v1.MsgPayPacketFee = (function() { /** - * Properties of a QueryIncentivizedPacketsRequest. + * Properties of a MsgPayPacketFee. * @memberof ibc.applications.fee.v1 - * @interface IQueryIncentivizedPacketsRequest - * @property {cosmos.base.query.v1beta1.IPageRequest|null} [pagination] QueryIncentivizedPacketsRequest pagination - * @property {Long|null} [query_height] QueryIncentivizedPacketsRequest query_height + * @interface IMsgPayPacketFee + * @property {ibc.applications.fee.v1.IFee|null} [fee] MsgPayPacketFee fee + * @property {string|null} [source_port_id] MsgPayPacketFee source_port_id + * @property {string|null} [source_channel_id] MsgPayPacketFee source_channel_id + * @property {string|null} [signer] MsgPayPacketFee signer + * @property {Array.|null} [relayers] MsgPayPacketFee relayers */ /** - * Constructs a new QueryIncentivizedPacketsRequest. + * Constructs a new MsgPayPacketFee. * @memberof ibc.applications.fee.v1 - * @classdesc Represents a QueryIncentivizedPacketsRequest. - * @implements IQueryIncentivizedPacketsRequest + * @classdesc Represents a MsgPayPacketFee. + * @implements IMsgPayPacketFee * @constructor - * @param {ibc.applications.fee.v1.IQueryIncentivizedPacketsRequest=} [properties] Properties to set + * @param {ibc.applications.fee.v1.IMsgPayPacketFee=} [properties] Properties to set */ - function QueryIncentivizedPacketsRequest(properties) { + function MsgPayPacketFee(properties) { + this.relayers = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -21485,76 +27725,118 @@ export const ibc = $root.ibc = (() => { } /** - * QueryIncentivizedPacketsRequest pagination. - * @member {cosmos.base.query.v1beta1.IPageRequest|null|undefined} pagination - * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsRequest + * MsgPayPacketFee fee. + * @member {ibc.applications.fee.v1.IFee|null|undefined} fee + * @memberof ibc.applications.fee.v1.MsgPayPacketFee * @instance */ - QueryIncentivizedPacketsRequest.prototype.pagination = null; + MsgPayPacketFee.prototype.fee = null; /** - * QueryIncentivizedPacketsRequest query_height. - * @member {Long} query_height - * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsRequest + * MsgPayPacketFee source_port_id. + * @member {string} source_port_id + * @memberof ibc.applications.fee.v1.MsgPayPacketFee * @instance */ - QueryIncentivizedPacketsRequest.prototype.query_height = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + MsgPayPacketFee.prototype.source_port_id = ""; /** - * Encodes the specified QueryIncentivizedPacketsRequest message. Does not implicitly {@link ibc.applications.fee.v1.QueryIncentivizedPacketsRequest.verify|verify} messages. + * MsgPayPacketFee source_channel_id. + * @member {string} source_channel_id + * @memberof ibc.applications.fee.v1.MsgPayPacketFee + * @instance + */ + MsgPayPacketFee.prototype.source_channel_id = ""; + + /** + * MsgPayPacketFee signer. + * @member {string} signer + * @memberof ibc.applications.fee.v1.MsgPayPacketFee + * @instance + */ + MsgPayPacketFee.prototype.signer = ""; + + /** + * MsgPayPacketFee relayers. + * @member {Array.} relayers + * @memberof ibc.applications.fee.v1.MsgPayPacketFee + * @instance + */ + MsgPayPacketFee.prototype.relayers = $util.emptyArray; + + /** + * Encodes the specified MsgPayPacketFee message. Does not implicitly {@link ibc.applications.fee.v1.MsgPayPacketFee.verify|verify} messages. * @function encode - * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsRequest + * @memberof ibc.applications.fee.v1.MsgPayPacketFee * @static - * @param {ibc.applications.fee.v1.IQueryIncentivizedPacketsRequest} message QueryIncentivizedPacketsRequest message or plain object to encode + * @param {ibc.applications.fee.v1.IMsgPayPacketFee} message MsgPayPacketFee message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryIncentivizedPacketsRequest.encode = function encode(message, writer) { + MsgPayPacketFee.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.pagination != null && Object.hasOwnProperty.call(message, "pagination")) - $root.cosmos.base.query.v1beta1.PageRequest.encode(message.pagination, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.query_height != null && Object.hasOwnProperty.call(message, "query_height")) - writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.query_height); + if (message.fee != null && Object.hasOwnProperty.call(message, "fee")) + $root.ibc.applications.fee.v1.Fee.encode(message.fee, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.source_port_id != null && Object.hasOwnProperty.call(message, "source_port_id")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.source_port_id); + if (message.source_channel_id != null && Object.hasOwnProperty.call(message, "source_channel_id")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.source_channel_id); + if (message.signer != null && Object.hasOwnProperty.call(message, "signer")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.signer); + if (message.relayers != null && message.relayers.length) + for (let i = 0; i < message.relayers.length; ++i) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.relayers[i]); return writer; }; /** - * Encodes the specified QueryIncentivizedPacketsRequest message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.QueryIncentivizedPacketsRequest.verify|verify} messages. + * Encodes the specified MsgPayPacketFee message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.MsgPayPacketFee.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsRequest + * @memberof ibc.applications.fee.v1.MsgPayPacketFee * @static - * @param {ibc.applications.fee.v1.IQueryIncentivizedPacketsRequest} message QueryIncentivizedPacketsRequest message or plain object to encode + * @param {ibc.applications.fee.v1.IMsgPayPacketFee} message MsgPayPacketFee message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryIncentivizedPacketsRequest.encodeDelimited = function encodeDelimited(message, writer) { + MsgPayPacketFee.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryIncentivizedPacketsRequest message from the specified reader or buffer. + * Decodes a MsgPayPacketFee message from the specified reader or buffer. * @function decode - * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsRequest + * @memberof ibc.applications.fee.v1.MsgPayPacketFee * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.fee.v1.QueryIncentivizedPacketsRequest} QueryIncentivizedPacketsRequest + * @returns {ibc.applications.fee.v1.MsgPayPacketFee} MsgPayPacketFee * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryIncentivizedPacketsRequest.decode = function decode(reader, length) { + MsgPayPacketFee.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.QueryIncentivizedPacketsRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.MsgPayPacketFee(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.pagination = $root.cosmos.base.query.v1beta1.PageRequest.decode(reader, reader.uint32()); + message.fee = $root.ibc.applications.fee.v1.Fee.decode(reader, reader.uint32()); break; case 2: - message.query_height = reader.uint64(); + message.source_port_id = reader.string(); + break; + case 3: + message.source_channel_id = reader.string(); + break; + case 4: + message.signer = reader.string(); + break; + case 5: + if (!(message.relayers && message.relayers.length)) + message.relayers = []; + message.relayers.push(reader.string()); break; default: reader.skipType(tag & 7); @@ -21565,136 +27847,157 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a QueryIncentivizedPacketsRequest message from the specified reader or buffer, length delimited. + * Decodes a MsgPayPacketFee message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsRequest + * @memberof ibc.applications.fee.v1.MsgPayPacketFee * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.fee.v1.QueryIncentivizedPacketsRequest} QueryIncentivizedPacketsRequest + * @returns {ibc.applications.fee.v1.MsgPayPacketFee} MsgPayPacketFee * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryIncentivizedPacketsRequest.decodeDelimited = function decodeDelimited(reader) { + MsgPayPacketFee.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryIncentivizedPacketsRequest message. + * Verifies a MsgPayPacketFee message. * @function verify - * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsRequest + * @memberof ibc.applications.fee.v1.MsgPayPacketFee * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryIncentivizedPacketsRequest.verify = function verify(message) { + MsgPayPacketFee.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.pagination != null && message.hasOwnProperty("pagination")) { - let error = $root.cosmos.base.query.v1beta1.PageRequest.verify(message.pagination); + if (message.fee != null && message.hasOwnProperty("fee")) { + let error = $root.ibc.applications.fee.v1.Fee.verify(message.fee); if (error) - return "pagination." + error; + return "fee." + error; + } + if (message.source_port_id != null && message.hasOwnProperty("source_port_id")) + if (!$util.isString(message.source_port_id)) + return "source_port_id: string expected"; + if (message.source_channel_id != null && message.hasOwnProperty("source_channel_id")) + if (!$util.isString(message.source_channel_id)) + return "source_channel_id: string expected"; + if (message.signer != null && message.hasOwnProperty("signer")) + if (!$util.isString(message.signer)) + return "signer: string expected"; + if (message.relayers != null && message.hasOwnProperty("relayers")) { + if (!Array.isArray(message.relayers)) + return "relayers: array expected"; + for (let i = 0; i < message.relayers.length; ++i) + if (!$util.isString(message.relayers[i])) + return "relayers: string[] expected"; } - if (message.query_height != null && message.hasOwnProperty("query_height")) - if (!$util.isInteger(message.query_height) && !(message.query_height && $util.isInteger(message.query_height.low) && $util.isInteger(message.query_height.high))) - return "query_height: integer|Long expected"; return null; }; /** - * Creates a QueryIncentivizedPacketsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MsgPayPacketFee message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsRequest + * @memberof ibc.applications.fee.v1.MsgPayPacketFee * @static * @param {Object.} object Plain object - * @returns {ibc.applications.fee.v1.QueryIncentivizedPacketsRequest} QueryIncentivizedPacketsRequest + * @returns {ibc.applications.fee.v1.MsgPayPacketFee} MsgPayPacketFee */ - QueryIncentivizedPacketsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.fee.v1.QueryIncentivizedPacketsRequest) + MsgPayPacketFee.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.fee.v1.MsgPayPacketFee) return object; - let message = new $root.ibc.applications.fee.v1.QueryIncentivizedPacketsRequest(); - if (object.pagination != null) { - if (typeof object.pagination !== "object") - throw TypeError(".ibc.applications.fee.v1.QueryIncentivizedPacketsRequest.pagination: object expected"); - message.pagination = $root.cosmos.base.query.v1beta1.PageRequest.fromObject(object.pagination); + let message = new $root.ibc.applications.fee.v1.MsgPayPacketFee(); + if (object.fee != null) { + if (typeof object.fee !== "object") + throw TypeError(".ibc.applications.fee.v1.MsgPayPacketFee.fee: object expected"); + message.fee = $root.ibc.applications.fee.v1.Fee.fromObject(object.fee); + } + if (object.source_port_id != null) + message.source_port_id = String(object.source_port_id); + if (object.source_channel_id != null) + message.source_channel_id = String(object.source_channel_id); + if (object.signer != null) + message.signer = String(object.signer); + if (object.relayers) { + if (!Array.isArray(object.relayers)) + throw TypeError(".ibc.applications.fee.v1.MsgPayPacketFee.relayers: array expected"); + message.relayers = []; + for (let i = 0; i < object.relayers.length; ++i) + message.relayers[i] = String(object.relayers[i]); } - if (object.query_height != null) - if ($util.Long) - (message.query_height = $util.Long.fromValue(object.query_height)).unsigned = true; - else if (typeof object.query_height === "string") - message.query_height = parseInt(object.query_height, 10); - else if (typeof object.query_height === "number") - message.query_height = object.query_height; - else if (typeof object.query_height === "object") - message.query_height = new $util.LongBits(object.query_height.low >>> 0, object.query_height.high >>> 0).toNumber(true); return message; }; /** - * Creates a plain object from a QueryIncentivizedPacketsRequest message. Also converts values to other types if specified. + * Creates a plain object from a MsgPayPacketFee message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsRequest + * @memberof ibc.applications.fee.v1.MsgPayPacketFee * @static - * @param {ibc.applications.fee.v1.QueryIncentivizedPacketsRequest} message QueryIncentivizedPacketsRequest + * @param {ibc.applications.fee.v1.MsgPayPacketFee} message MsgPayPacketFee * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryIncentivizedPacketsRequest.toObject = function toObject(message, options) { + MsgPayPacketFee.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; + if (options.arrays || options.defaults) + object.relayers = []; if (options.defaults) { - object.pagination = null; - if ($util.Long) { - let long = new $util.Long(0, 0, true); - object.query_height = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.query_height = options.longs === String ? "0" : 0; + object.fee = null; + object.source_port_id = ""; + object.source_channel_id = ""; + object.signer = ""; + } + if (message.fee != null && message.hasOwnProperty("fee")) + object.fee = $root.ibc.applications.fee.v1.Fee.toObject(message.fee, options); + if (message.source_port_id != null && message.hasOwnProperty("source_port_id")) + object.source_port_id = message.source_port_id; + if (message.source_channel_id != null && message.hasOwnProperty("source_channel_id")) + object.source_channel_id = message.source_channel_id; + if (message.signer != null && message.hasOwnProperty("signer")) + object.signer = message.signer; + if (message.relayers && message.relayers.length) { + object.relayers = []; + for (let j = 0; j < message.relayers.length; ++j) + object.relayers[j] = message.relayers[j]; } - if (message.pagination != null && message.hasOwnProperty("pagination")) - object.pagination = $root.cosmos.base.query.v1beta1.PageRequest.toObject(message.pagination, options); - if (message.query_height != null && message.hasOwnProperty("query_height")) - if (typeof message.query_height === "number") - object.query_height = options.longs === String ? String(message.query_height) : message.query_height; - else - object.query_height = options.longs === String ? $util.Long.prototype.toString.call(message.query_height) : options.longs === Number ? new $util.LongBits(message.query_height.low >>> 0, message.query_height.high >>> 0).toNumber(true) : message.query_height; return object; }; /** - * Converts this QueryIncentivizedPacketsRequest to JSON. + * Converts this MsgPayPacketFee to JSON. * @function toJSON - * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsRequest + * @memberof ibc.applications.fee.v1.MsgPayPacketFee * @instance * @returns {Object.} JSON object */ - QueryIncentivizedPacketsRequest.prototype.toJSON = function toJSON() { + MsgPayPacketFee.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryIncentivizedPacketsRequest; + return MsgPayPacketFee; })(); - v1.QueryIncentivizedPacketsResponse = (function() { + v1.MsgPayPacketFeeResponse = (function() { /** - * Properties of a QueryIncentivizedPacketsResponse. + * Properties of a MsgPayPacketFeeResponse. * @memberof ibc.applications.fee.v1 - * @interface IQueryIncentivizedPacketsResponse - * @property {Array.|null} [incentivized_packets] QueryIncentivizedPacketsResponse incentivized_packets + * @interface IMsgPayPacketFeeResponse */ /** - * Constructs a new QueryIncentivizedPacketsResponse. + * Constructs a new MsgPayPacketFeeResponse. * @memberof ibc.applications.fee.v1 - * @classdesc Represents a QueryIncentivizedPacketsResponse. - * @implements IQueryIncentivizedPacketsResponse + * @classdesc Represents a MsgPayPacketFeeResponse. + * @implements IMsgPayPacketFeeResponse * @constructor - * @param {ibc.applications.fee.v1.IQueryIncentivizedPacketsResponse=} [properties] Properties to set + * @param {ibc.applications.fee.v1.IMsgPayPacketFeeResponse=} [properties] Properties to set */ - function QueryIncentivizedPacketsResponse(properties) { - this.incentivized_packets = []; + function MsgPayPacketFeeResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -21702,67 +28005,51 @@ export const ibc = $root.ibc = (() => { } /** - * QueryIncentivizedPacketsResponse incentivized_packets. - * @member {Array.} incentivized_packets - * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsResponse - * @instance - */ - QueryIncentivizedPacketsResponse.prototype.incentivized_packets = $util.emptyArray; - - /** - * Encodes the specified QueryIncentivizedPacketsResponse message. Does not implicitly {@link ibc.applications.fee.v1.QueryIncentivizedPacketsResponse.verify|verify} messages. + * Encodes the specified MsgPayPacketFeeResponse message. Does not implicitly {@link ibc.applications.fee.v1.MsgPayPacketFeeResponse.verify|verify} messages. * @function encode - * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsResponse + * @memberof ibc.applications.fee.v1.MsgPayPacketFeeResponse * @static - * @param {ibc.applications.fee.v1.IQueryIncentivizedPacketsResponse} message QueryIncentivizedPacketsResponse message or plain object to encode + * @param {ibc.applications.fee.v1.IMsgPayPacketFeeResponse} message MsgPayPacketFeeResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryIncentivizedPacketsResponse.encode = function encode(message, writer) { + MsgPayPacketFeeResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.incentivized_packets != null && message.incentivized_packets.length) - for (let i = 0; i < message.incentivized_packets.length; ++i) - $root.ibc.applications.fee.v1.IdentifiedPacketFees.encode(message.incentivized_packets[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified QueryIncentivizedPacketsResponse message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.QueryIncentivizedPacketsResponse.verify|verify} messages. + * Encodes the specified MsgPayPacketFeeResponse message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.MsgPayPacketFeeResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsResponse + * @memberof ibc.applications.fee.v1.MsgPayPacketFeeResponse * @static - * @param {ibc.applications.fee.v1.IQueryIncentivizedPacketsResponse} message QueryIncentivizedPacketsResponse message or plain object to encode + * @param {ibc.applications.fee.v1.IMsgPayPacketFeeResponse} message MsgPayPacketFeeResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryIncentivizedPacketsResponse.encodeDelimited = function encodeDelimited(message, writer) { + MsgPayPacketFeeResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryIncentivizedPacketsResponse message from the specified reader or buffer. + * Decodes a MsgPayPacketFeeResponse message from the specified reader or buffer. * @function decode - * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsResponse + * @memberof ibc.applications.fee.v1.MsgPayPacketFeeResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.fee.v1.QueryIncentivizedPacketsResponse} QueryIncentivizedPacketsResponse + * @returns {ibc.applications.fee.v1.MsgPayPacketFeeResponse} MsgPayPacketFeeResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryIncentivizedPacketsResponse.decode = function decode(reader, length) { + MsgPayPacketFeeResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.QueryIncentivizedPacketsResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.MsgPayPacketFeeResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: - if (!(message.incentivized_packets && message.incentivized_packets.length)) - message.incentivized_packets = []; - message.incentivized_packets.push($root.ibc.applications.fee.v1.IdentifiedPacketFees.decode(reader, reader.uint32())); - break; default: reader.skipType(tag & 7); break; @@ -21772,125 +28059,95 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a QueryIncentivizedPacketsResponse message from the specified reader or buffer, length delimited. + * Decodes a MsgPayPacketFeeResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsResponse + * @memberof ibc.applications.fee.v1.MsgPayPacketFeeResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.fee.v1.QueryIncentivizedPacketsResponse} QueryIncentivizedPacketsResponse + * @returns {ibc.applications.fee.v1.MsgPayPacketFeeResponse} MsgPayPacketFeeResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryIncentivizedPacketsResponse.decodeDelimited = function decodeDelimited(reader) { + MsgPayPacketFeeResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryIncentivizedPacketsResponse message. + * Verifies a MsgPayPacketFeeResponse message. * @function verify - * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsResponse + * @memberof ibc.applications.fee.v1.MsgPayPacketFeeResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryIncentivizedPacketsResponse.verify = function verify(message) { + MsgPayPacketFeeResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.incentivized_packets != null && message.hasOwnProperty("incentivized_packets")) { - if (!Array.isArray(message.incentivized_packets)) - return "incentivized_packets: array expected"; - for (let i = 0; i < message.incentivized_packets.length; ++i) { - let error = $root.ibc.applications.fee.v1.IdentifiedPacketFees.verify(message.incentivized_packets[i]); - if (error) - return "incentivized_packets." + error; - } - } return null; }; /** - * Creates a QueryIncentivizedPacketsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a MsgPayPacketFeeResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsResponse + * @memberof ibc.applications.fee.v1.MsgPayPacketFeeResponse * @static * @param {Object.} object Plain object - * @returns {ibc.applications.fee.v1.QueryIncentivizedPacketsResponse} QueryIncentivizedPacketsResponse + * @returns {ibc.applications.fee.v1.MsgPayPacketFeeResponse} MsgPayPacketFeeResponse */ - QueryIncentivizedPacketsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.fee.v1.QueryIncentivizedPacketsResponse) + MsgPayPacketFeeResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.fee.v1.MsgPayPacketFeeResponse) return object; - let message = new $root.ibc.applications.fee.v1.QueryIncentivizedPacketsResponse(); - if (object.incentivized_packets) { - if (!Array.isArray(object.incentivized_packets)) - throw TypeError(".ibc.applications.fee.v1.QueryIncentivizedPacketsResponse.incentivized_packets: array expected"); - message.incentivized_packets = []; - for (let i = 0; i < object.incentivized_packets.length; ++i) { - if (typeof object.incentivized_packets[i] !== "object") - throw TypeError(".ibc.applications.fee.v1.QueryIncentivizedPacketsResponse.incentivized_packets: object expected"); - message.incentivized_packets[i] = $root.ibc.applications.fee.v1.IdentifiedPacketFees.fromObject(object.incentivized_packets[i]); - } - } - return message; + return new $root.ibc.applications.fee.v1.MsgPayPacketFeeResponse(); }; /** - * Creates a plain object from a QueryIncentivizedPacketsResponse message. Also converts values to other types if specified. + * Creates a plain object from a MsgPayPacketFeeResponse message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsResponse + * @memberof ibc.applications.fee.v1.MsgPayPacketFeeResponse * @static - * @param {ibc.applications.fee.v1.QueryIncentivizedPacketsResponse} message QueryIncentivizedPacketsResponse + * @param {ibc.applications.fee.v1.MsgPayPacketFeeResponse} message MsgPayPacketFeeResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryIncentivizedPacketsResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.arrays || options.defaults) - object.incentivized_packets = []; - if (message.incentivized_packets && message.incentivized_packets.length) { - object.incentivized_packets = []; - for (let j = 0; j < message.incentivized_packets.length; ++j) - object.incentivized_packets[j] = $root.ibc.applications.fee.v1.IdentifiedPacketFees.toObject(message.incentivized_packets[j], options); - } - return object; + MsgPayPacketFeeResponse.toObject = function toObject() { + return {}; }; /** - * Converts this QueryIncentivizedPacketsResponse to JSON. + * Converts this MsgPayPacketFeeResponse to JSON. * @function toJSON - * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsResponse + * @memberof ibc.applications.fee.v1.MsgPayPacketFeeResponse * @instance * @returns {Object.} JSON object */ - QueryIncentivizedPacketsResponse.prototype.toJSON = function toJSON() { + MsgPayPacketFeeResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryIncentivizedPacketsResponse; + return MsgPayPacketFeeResponse; })(); - v1.QueryIncentivizedPacketRequest = (function() { + v1.MsgPayPacketFeeAsync = (function() { /** - * Properties of a QueryIncentivizedPacketRequest. + * Properties of a MsgPayPacketFeeAsync. * @memberof ibc.applications.fee.v1 - * @interface IQueryIncentivizedPacketRequest - * @property {ibc.core.channel.v1.IPacketId|null} [packet_id] QueryIncentivizedPacketRequest packet_id - * @property {Long|null} [query_height] QueryIncentivizedPacketRequest query_height + * @interface IMsgPayPacketFeeAsync + * @property {ibc.core.channel.v1.IPacketId|null} [packet_id] MsgPayPacketFeeAsync packet_id + * @property {ibc.applications.fee.v1.IPacketFee|null} [packet_fee] MsgPayPacketFeeAsync packet_fee */ /** - * Constructs a new QueryIncentivizedPacketRequest. + * Constructs a new MsgPayPacketFeeAsync. * @memberof ibc.applications.fee.v1 - * @classdesc Represents a QueryIncentivizedPacketRequest. - * @implements IQueryIncentivizedPacketRequest + * @classdesc Represents a MsgPayPacketFeeAsync. + * @implements IMsgPayPacketFeeAsync * @constructor - * @param {ibc.applications.fee.v1.IQueryIncentivizedPacketRequest=} [properties] Properties to set + * @param {ibc.applications.fee.v1.IMsgPayPacketFeeAsync=} [properties] Properties to set */ - function QueryIncentivizedPacketRequest(properties) { + function MsgPayPacketFeeAsync(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -21898,68 +28155,68 @@ export const ibc = $root.ibc = (() => { } /** - * QueryIncentivizedPacketRequest packet_id. + * MsgPayPacketFeeAsync packet_id. * @member {ibc.core.channel.v1.IPacketId|null|undefined} packet_id - * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketRequest + * @memberof ibc.applications.fee.v1.MsgPayPacketFeeAsync * @instance */ - QueryIncentivizedPacketRequest.prototype.packet_id = null; + MsgPayPacketFeeAsync.prototype.packet_id = null; /** - * QueryIncentivizedPacketRequest query_height. - * @member {Long} query_height - * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketRequest + * MsgPayPacketFeeAsync packet_fee. + * @member {ibc.applications.fee.v1.IPacketFee|null|undefined} packet_fee + * @memberof ibc.applications.fee.v1.MsgPayPacketFeeAsync * @instance */ - QueryIncentivizedPacketRequest.prototype.query_height = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + MsgPayPacketFeeAsync.prototype.packet_fee = null; /** - * Encodes the specified QueryIncentivizedPacketRequest message. Does not implicitly {@link ibc.applications.fee.v1.QueryIncentivizedPacketRequest.verify|verify} messages. + * Encodes the specified MsgPayPacketFeeAsync message. Does not implicitly {@link ibc.applications.fee.v1.MsgPayPacketFeeAsync.verify|verify} messages. * @function encode - * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketRequest + * @memberof ibc.applications.fee.v1.MsgPayPacketFeeAsync * @static - * @param {ibc.applications.fee.v1.IQueryIncentivizedPacketRequest} message QueryIncentivizedPacketRequest message or plain object to encode + * @param {ibc.applications.fee.v1.IMsgPayPacketFeeAsync} message MsgPayPacketFeeAsync message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryIncentivizedPacketRequest.encode = function encode(message, writer) { + MsgPayPacketFeeAsync.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.packet_id != null && Object.hasOwnProperty.call(message, "packet_id")) $root.ibc.core.channel.v1.PacketId.encode(message.packet_id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.query_height != null && Object.hasOwnProperty.call(message, "query_height")) - writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.query_height); + if (message.packet_fee != null && Object.hasOwnProperty.call(message, "packet_fee")) + $root.ibc.applications.fee.v1.PacketFee.encode(message.packet_fee, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified QueryIncentivizedPacketRequest message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.QueryIncentivizedPacketRequest.verify|verify} messages. + * Encodes the specified MsgPayPacketFeeAsync message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.MsgPayPacketFeeAsync.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketRequest + * @memberof ibc.applications.fee.v1.MsgPayPacketFeeAsync * @static - * @param {ibc.applications.fee.v1.IQueryIncentivizedPacketRequest} message QueryIncentivizedPacketRequest message or plain object to encode + * @param {ibc.applications.fee.v1.IMsgPayPacketFeeAsync} message MsgPayPacketFeeAsync message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryIncentivizedPacketRequest.encodeDelimited = function encodeDelimited(message, writer) { + MsgPayPacketFeeAsync.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryIncentivizedPacketRequest message from the specified reader or buffer. + * Decodes a MsgPayPacketFeeAsync message from the specified reader or buffer. * @function decode - * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketRequest + * @memberof ibc.applications.fee.v1.MsgPayPacketFeeAsync * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.fee.v1.QueryIncentivizedPacketRequest} QueryIncentivizedPacketRequest + * @returns {ibc.applications.fee.v1.MsgPayPacketFeeAsync} MsgPayPacketFeeAsync * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryIncentivizedPacketRequest.decode = function decode(reader, length) { + MsgPayPacketFeeAsync.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.QueryIncentivizedPacketRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.MsgPayPacketFeeAsync(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { @@ -21967,7 +28224,7 @@ export const ibc = $root.ibc = (() => { message.packet_id = $root.ibc.core.channel.v1.PacketId.decode(reader, reader.uint32()); break; case 2: - message.query_height = reader.uint64(); + message.packet_fee = $root.ibc.applications.fee.v1.PacketFee.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -21978,30 +28235,30 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a QueryIncentivizedPacketRequest message from the specified reader or buffer, length delimited. + * Decodes a MsgPayPacketFeeAsync message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketRequest + * @memberof ibc.applications.fee.v1.MsgPayPacketFeeAsync * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.fee.v1.QueryIncentivizedPacketRequest} QueryIncentivizedPacketRequest + * @returns {ibc.applications.fee.v1.MsgPayPacketFeeAsync} MsgPayPacketFeeAsync * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryIncentivizedPacketRequest.decodeDelimited = function decodeDelimited(reader) { + MsgPayPacketFeeAsync.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryIncentivizedPacketRequest message. + * Verifies a MsgPayPacketFeeAsync message. * @function verify - * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketRequest + * @memberof ibc.applications.fee.v1.MsgPayPacketFeeAsync * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryIncentivizedPacketRequest.verify = function verify(message) { + MsgPayPacketFeeAsync.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.packet_id != null && message.hasOwnProperty("packet_id")) { @@ -22009,104 +28266,94 @@ export const ibc = $root.ibc = (() => { if (error) return "packet_id." + error; } - if (message.query_height != null && message.hasOwnProperty("query_height")) - if (!$util.isInteger(message.query_height) && !(message.query_height && $util.isInteger(message.query_height.low) && $util.isInteger(message.query_height.high))) - return "query_height: integer|Long expected"; + if (message.packet_fee != null && message.hasOwnProperty("packet_fee")) { + let error = $root.ibc.applications.fee.v1.PacketFee.verify(message.packet_fee); + if (error) + return "packet_fee." + error; + } return null; }; /** - * Creates a QueryIncentivizedPacketRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MsgPayPacketFeeAsync message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketRequest + * @memberof ibc.applications.fee.v1.MsgPayPacketFeeAsync * @static * @param {Object.} object Plain object - * @returns {ibc.applications.fee.v1.QueryIncentivizedPacketRequest} QueryIncentivizedPacketRequest + * @returns {ibc.applications.fee.v1.MsgPayPacketFeeAsync} MsgPayPacketFeeAsync */ - QueryIncentivizedPacketRequest.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.fee.v1.QueryIncentivizedPacketRequest) + MsgPayPacketFeeAsync.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.fee.v1.MsgPayPacketFeeAsync) return object; - let message = new $root.ibc.applications.fee.v1.QueryIncentivizedPacketRequest(); + let message = new $root.ibc.applications.fee.v1.MsgPayPacketFeeAsync(); if (object.packet_id != null) { if (typeof object.packet_id !== "object") - throw TypeError(".ibc.applications.fee.v1.QueryIncentivizedPacketRequest.packet_id: object expected"); + throw TypeError(".ibc.applications.fee.v1.MsgPayPacketFeeAsync.packet_id: object expected"); message.packet_id = $root.ibc.core.channel.v1.PacketId.fromObject(object.packet_id); } - if (object.query_height != null) - if ($util.Long) - (message.query_height = $util.Long.fromValue(object.query_height)).unsigned = true; - else if (typeof object.query_height === "string") - message.query_height = parseInt(object.query_height, 10); - else if (typeof object.query_height === "number") - message.query_height = object.query_height; - else if (typeof object.query_height === "object") - message.query_height = new $util.LongBits(object.query_height.low >>> 0, object.query_height.high >>> 0).toNumber(true); + if (object.packet_fee != null) { + if (typeof object.packet_fee !== "object") + throw TypeError(".ibc.applications.fee.v1.MsgPayPacketFeeAsync.packet_fee: object expected"); + message.packet_fee = $root.ibc.applications.fee.v1.PacketFee.fromObject(object.packet_fee); + } return message; }; /** - * Creates a plain object from a QueryIncentivizedPacketRequest message. Also converts values to other types if specified. + * Creates a plain object from a MsgPayPacketFeeAsync message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketRequest + * @memberof ibc.applications.fee.v1.MsgPayPacketFeeAsync * @static - * @param {ibc.applications.fee.v1.QueryIncentivizedPacketRequest} message QueryIncentivizedPacketRequest + * @param {ibc.applications.fee.v1.MsgPayPacketFeeAsync} message MsgPayPacketFeeAsync * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryIncentivizedPacketRequest.toObject = function toObject(message, options) { + MsgPayPacketFeeAsync.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { object.packet_id = null; - if ($util.Long) { - let long = new $util.Long(0, 0, true); - object.query_height = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.query_height = options.longs === String ? "0" : 0; + object.packet_fee = null; } if (message.packet_id != null && message.hasOwnProperty("packet_id")) object.packet_id = $root.ibc.core.channel.v1.PacketId.toObject(message.packet_id, options); - if (message.query_height != null && message.hasOwnProperty("query_height")) - if (typeof message.query_height === "number") - object.query_height = options.longs === String ? String(message.query_height) : message.query_height; - else - object.query_height = options.longs === String ? $util.Long.prototype.toString.call(message.query_height) : options.longs === Number ? new $util.LongBits(message.query_height.low >>> 0, message.query_height.high >>> 0).toNumber(true) : message.query_height; + if (message.packet_fee != null && message.hasOwnProperty("packet_fee")) + object.packet_fee = $root.ibc.applications.fee.v1.PacketFee.toObject(message.packet_fee, options); return object; }; /** - * Converts this QueryIncentivizedPacketRequest to JSON. + * Converts this MsgPayPacketFeeAsync to JSON. * @function toJSON - * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketRequest + * @memberof ibc.applications.fee.v1.MsgPayPacketFeeAsync * @instance * @returns {Object.} JSON object */ - QueryIncentivizedPacketRequest.prototype.toJSON = function toJSON() { + MsgPayPacketFeeAsync.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryIncentivizedPacketRequest; + return MsgPayPacketFeeAsync; })(); - v1.QueryIncentivizedPacketResponse = (function() { + v1.MsgPayPacketFeeAsyncResponse = (function() { /** - * Properties of a QueryIncentivizedPacketResponse. + * Properties of a MsgPayPacketFeeAsyncResponse. * @memberof ibc.applications.fee.v1 - * @interface IQueryIncentivizedPacketResponse - * @property {ibc.applications.fee.v1.IIdentifiedPacketFees|null} [incentivized_packet] QueryIncentivizedPacketResponse incentivized_packet + * @interface IMsgPayPacketFeeAsyncResponse */ /** - * Constructs a new QueryIncentivizedPacketResponse. + * Constructs a new MsgPayPacketFeeAsyncResponse. * @memberof ibc.applications.fee.v1 - * @classdesc Represents a QueryIncentivizedPacketResponse. - * @implements IQueryIncentivizedPacketResponse + * @classdesc Represents a MsgPayPacketFeeAsyncResponse. + * @implements IMsgPayPacketFeeAsyncResponse * @constructor - * @param {ibc.applications.fee.v1.IQueryIncentivizedPacketResponse=} [properties] Properties to set + * @param {ibc.applications.fee.v1.IMsgPayPacketFeeAsyncResponse=} [properties] Properties to set */ - function QueryIncentivizedPacketResponse(properties) { + function MsgPayPacketFeeAsyncResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -22114,64 +28361,51 @@ export const ibc = $root.ibc = (() => { } /** - * QueryIncentivizedPacketResponse incentivized_packet. - * @member {ibc.applications.fee.v1.IIdentifiedPacketFees|null|undefined} incentivized_packet - * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketResponse - * @instance - */ - QueryIncentivizedPacketResponse.prototype.incentivized_packet = null; - - /** - * Encodes the specified QueryIncentivizedPacketResponse message. Does not implicitly {@link ibc.applications.fee.v1.QueryIncentivizedPacketResponse.verify|verify} messages. + * Encodes the specified MsgPayPacketFeeAsyncResponse message. Does not implicitly {@link ibc.applications.fee.v1.MsgPayPacketFeeAsyncResponse.verify|verify} messages. * @function encode - * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketResponse + * @memberof ibc.applications.fee.v1.MsgPayPacketFeeAsyncResponse * @static - * @param {ibc.applications.fee.v1.IQueryIncentivizedPacketResponse} message QueryIncentivizedPacketResponse message or plain object to encode + * @param {ibc.applications.fee.v1.IMsgPayPacketFeeAsyncResponse} message MsgPayPacketFeeAsyncResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryIncentivizedPacketResponse.encode = function encode(message, writer) { + MsgPayPacketFeeAsyncResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.incentivized_packet != null && Object.hasOwnProperty.call(message, "incentivized_packet")) - $root.ibc.applications.fee.v1.IdentifiedPacketFees.encode(message.incentivized_packet, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified QueryIncentivizedPacketResponse message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.QueryIncentivizedPacketResponse.verify|verify} messages. + * Encodes the specified MsgPayPacketFeeAsyncResponse message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.MsgPayPacketFeeAsyncResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketResponse + * @memberof ibc.applications.fee.v1.MsgPayPacketFeeAsyncResponse * @static - * @param {ibc.applications.fee.v1.IQueryIncentivizedPacketResponse} message QueryIncentivizedPacketResponse message or plain object to encode + * @param {ibc.applications.fee.v1.IMsgPayPacketFeeAsyncResponse} message MsgPayPacketFeeAsyncResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryIncentivizedPacketResponse.encodeDelimited = function encodeDelimited(message, writer) { + MsgPayPacketFeeAsyncResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryIncentivizedPacketResponse message from the specified reader or buffer. + * Decodes a MsgPayPacketFeeAsyncResponse message from the specified reader or buffer. * @function decode - * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketResponse + * @memberof ibc.applications.fee.v1.MsgPayPacketFeeAsyncResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.fee.v1.QueryIncentivizedPacketResponse} QueryIncentivizedPacketResponse + * @returns {ibc.applications.fee.v1.MsgPayPacketFeeAsyncResponse} MsgPayPacketFeeAsyncResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryIncentivizedPacketResponse.decode = function decode(reader, length) { + MsgPayPacketFeeAsyncResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.QueryIncentivizedPacketResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.MsgPayPacketFeeAsyncResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.incentivized_packet = $root.ibc.applications.fee.v1.IdentifiedPacketFees.decode(reader, reader.uint32()); - break; default: reader.skipType(tag & 7); break; @@ -22181,115 +28415,99 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a QueryIncentivizedPacketResponse message from the specified reader or buffer, length delimited. + * Decodes a MsgPayPacketFeeAsyncResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketResponse + * @memberof ibc.applications.fee.v1.MsgPayPacketFeeAsyncResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.fee.v1.QueryIncentivizedPacketResponse} QueryIncentivizedPacketResponse + * @returns {ibc.applications.fee.v1.MsgPayPacketFeeAsyncResponse} MsgPayPacketFeeAsyncResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryIncentivizedPacketResponse.decodeDelimited = function decodeDelimited(reader) { + MsgPayPacketFeeAsyncResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryIncentivizedPacketResponse message. + * Verifies a MsgPayPacketFeeAsyncResponse message. * @function verify - * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketResponse + * @memberof ibc.applications.fee.v1.MsgPayPacketFeeAsyncResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryIncentivizedPacketResponse.verify = function verify(message) { + MsgPayPacketFeeAsyncResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.incentivized_packet != null && message.hasOwnProperty("incentivized_packet")) { - let error = $root.ibc.applications.fee.v1.IdentifiedPacketFees.verify(message.incentivized_packet); - if (error) - return "incentivized_packet." + error; - } return null; }; /** - * Creates a QueryIncentivizedPacketResponse message from a plain object. Also converts values to their respective internal types. + * Creates a MsgPayPacketFeeAsyncResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketResponse + * @memberof ibc.applications.fee.v1.MsgPayPacketFeeAsyncResponse * @static * @param {Object.} object Plain object - * @returns {ibc.applications.fee.v1.QueryIncentivizedPacketResponse} QueryIncentivizedPacketResponse + * @returns {ibc.applications.fee.v1.MsgPayPacketFeeAsyncResponse} MsgPayPacketFeeAsyncResponse */ - QueryIncentivizedPacketResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.fee.v1.QueryIncentivizedPacketResponse) + MsgPayPacketFeeAsyncResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.fee.v1.MsgPayPacketFeeAsyncResponse) return object; - let message = new $root.ibc.applications.fee.v1.QueryIncentivizedPacketResponse(); - if (object.incentivized_packet != null) { - if (typeof object.incentivized_packet !== "object") - throw TypeError(".ibc.applications.fee.v1.QueryIncentivizedPacketResponse.incentivized_packet: object expected"); - message.incentivized_packet = $root.ibc.applications.fee.v1.IdentifiedPacketFees.fromObject(object.incentivized_packet); - } - return message; + return new $root.ibc.applications.fee.v1.MsgPayPacketFeeAsyncResponse(); }; /** - * Creates a plain object from a QueryIncentivizedPacketResponse message. Also converts values to other types if specified. + * Creates a plain object from a MsgPayPacketFeeAsyncResponse message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketResponse + * @memberof ibc.applications.fee.v1.MsgPayPacketFeeAsyncResponse * @static - * @param {ibc.applications.fee.v1.QueryIncentivizedPacketResponse} message QueryIncentivizedPacketResponse + * @param {ibc.applications.fee.v1.MsgPayPacketFeeAsyncResponse} message MsgPayPacketFeeAsyncResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryIncentivizedPacketResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) - object.incentivized_packet = null; - if (message.incentivized_packet != null && message.hasOwnProperty("incentivized_packet")) - object.incentivized_packet = $root.ibc.applications.fee.v1.IdentifiedPacketFees.toObject(message.incentivized_packet, options); - return object; + MsgPayPacketFeeAsyncResponse.toObject = function toObject() { + return {}; }; /** - * Converts this QueryIncentivizedPacketResponse to JSON. + * Converts this MsgPayPacketFeeAsyncResponse to JSON. * @function toJSON - * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketResponse + * @memberof ibc.applications.fee.v1.MsgPayPacketFeeAsyncResponse * @instance * @returns {Object.} JSON object */ - QueryIncentivizedPacketResponse.prototype.toJSON = function toJSON() { + MsgPayPacketFeeAsyncResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryIncentivizedPacketResponse; + return MsgPayPacketFeeAsyncResponse; })(); - v1.QueryIncentivizedPacketsForChannelRequest = (function() { + v1.Fee = (function() { /** - * Properties of a QueryIncentivizedPacketsForChannelRequest. + * Properties of a Fee. * @memberof ibc.applications.fee.v1 - * @interface IQueryIncentivizedPacketsForChannelRequest - * @property {cosmos.base.query.v1beta1.IPageRequest|null} [pagination] QueryIncentivizedPacketsForChannelRequest pagination - * @property {string|null} [port_id] QueryIncentivizedPacketsForChannelRequest port_id - * @property {string|null} [channel_id] QueryIncentivizedPacketsForChannelRequest channel_id - * @property {Long|null} [query_height] QueryIncentivizedPacketsForChannelRequest query_height + * @interface IFee + * @property {Array.|null} [recv_fee] Fee recv_fee + * @property {Array.|null} [ack_fee] Fee ack_fee + * @property {Array.|null} [timeout_fee] Fee timeout_fee */ /** - * Constructs a new QueryIncentivizedPacketsForChannelRequest. + * Constructs a new Fee. * @memberof ibc.applications.fee.v1 - * @classdesc Represents a QueryIncentivizedPacketsForChannelRequest. - * @implements IQueryIncentivizedPacketsForChannelRequest + * @classdesc Represents a Fee. + * @implements IFee * @constructor - * @param {ibc.applications.fee.v1.IQueryIncentivizedPacketsForChannelRequest=} [properties] Properties to set + * @param {ibc.applications.fee.v1.IFee=} [properties] Properties to set */ - function QueryIncentivizedPacketsForChannelRequest(properties) { + function Fee(properties) { + this.recv_fee = []; + this.ack_fee = []; + this.timeout_fee = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -22297,102 +28515,98 @@ export const ibc = $root.ibc = (() => { } /** - * QueryIncentivizedPacketsForChannelRequest pagination. - * @member {cosmos.base.query.v1beta1.IPageRequest|null|undefined} pagination - * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest - * @instance - */ - QueryIncentivizedPacketsForChannelRequest.prototype.pagination = null; - - /** - * QueryIncentivizedPacketsForChannelRequest port_id. - * @member {string} port_id - * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest + * Fee recv_fee. + * @member {Array.} recv_fee + * @memberof ibc.applications.fee.v1.Fee * @instance */ - QueryIncentivizedPacketsForChannelRequest.prototype.port_id = ""; + Fee.prototype.recv_fee = $util.emptyArray; /** - * QueryIncentivizedPacketsForChannelRequest channel_id. - * @member {string} channel_id - * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest + * Fee ack_fee. + * @member {Array.} ack_fee + * @memberof ibc.applications.fee.v1.Fee * @instance */ - QueryIncentivizedPacketsForChannelRequest.prototype.channel_id = ""; + Fee.prototype.ack_fee = $util.emptyArray; /** - * QueryIncentivizedPacketsForChannelRequest query_height. - * @member {Long} query_height - * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest + * Fee timeout_fee. + * @member {Array.} timeout_fee + * @memberof ibc.applications.fee.v1.Fee * @instance */ - QueryIncentivizedPacketsForChannelRequest.prototype.query_height = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + Fee.prototype.timeout_fee = $util.emptyArray; /** - * Encodes the specified QueryIncentivizedPacketsForChannelRequest message. Does not implicitly {@link ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest.verify|verify} messages. + * Encodes the specified Fee message. Does not implicitly {@link ibc.applications.fee.v1.Fee.verify|verify} messages. * @function encode - * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest + * @memberof ibc.applications.fee.v1.Fee * @static - * @param {ibc.applications.fee.v1.IQueryIncentivizedPacketsForChannelRequest} message QueryIncentivizedPacketsForChannelRequest message or plain object to encode + * @param {ibc.applications.fee.v1.IFee} message Fee message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryIncentivizedPacketsForChannelRequest.encode = function encode(message, writer) { + Fee.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.pagination != null && Object.hasOwnProperty.call(message, "pagination")) - $root.cosmos.base.query.v1beta1.PageRequest.encode(message.pagination, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.port_id != null && Object.hasOwnProperty.call(message, "port_id")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.port_id); - if (message.channel_id != null && Object.hasOwnProperty.call(message, "channel_id")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.channel_id); - if (message.query_height != null && Object.hasOwnProperty.call(message, "query_height")) - writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.query_height); + if (message.recv_fee != null && message.recv_fee.length) + for (let i = 0; i < message.recv_fee.length; ++i) + $root.cosmos.base.v1beta1.Coin.encode(message.recv_fee[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.ack_fee != null && message.ack_fee.length) + for (let i = 0; i < message.ack_fee.length; ++i) + $root.cosmos.base.v1beta1.Coin.encode(message.ack_fee[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.timeout_fee != null && message.timeout_fee.length) + for (let i = 0; i < message.timeout_fee.length; ++i) + $root.cosmos.base.v1beta1.Coin.encode(message.timeout_fee[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified QueryIncentivizedPacketsForChannelRequest message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest.verify|verify} messages. + * Encodes the specified Fee message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.Fee.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest + * @memberof ibc.applications.fee.v1.Fee * @static - * @param {ibc.applications.fee.v1.IQueryIncentivizedPacketsForChannelRequest} message QueryIncentivizedPacketsForChannelRequest message or plain object to encode + * @param {ibc.applications.fee.v1.IFee} message Fee message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryIncentivizedPacketsForChannelRequest.encodeDelimited = function encodeDelimited(message, writer) { + Fee.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryIncentivizedPacketsForChannelRequest message from the specified reader or buffer. + * Decodes a Fee message from the specified reader or buffer. * @function decode - * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest + * @memberof ibc.applications.fee.v1.Fee * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest} QueryIncentivizedPacketsForChannelRequest + * @returns {ibc.applications.fee.v1.Fee} Fee * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryIncentivizedPacketsForChannelRequest.decode = function decode(reader, length) { + Fee.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.Fee(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.pagination = $root.cosmos.base.query.v1beta1.PageRequest.decode(reader, reader.uint32()); + if (!(message.recv_fee && message.recv_fee.length)) + message.recv_fee = []; + message.recv_fee.push($root.cosmos.base.v1beta1.Coin.decode(reader, reader.uint32())); break; case 2: - message.port_id = reader.string(); + if (!(message.ack_fee && message.ack_fee.length)) + message.ack_fee = []; + message.ack_fee.push($root.cosmos.base.v1beta1.Coin.decode(reader, reader.uint32())); break; case 3: - message.channel_id = reader.string(); - break; - case 4: - message.query_height = reader.uint64(); + if (!(message.timeout_fee && message.timeout_fee.length)) + message.timeout_fee = []; + message.timeout_fee.push($root.cosmos.base.v1beta1.Coin.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -22403,152 +28617,178 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a QueryIncentivizedPacketsForChannelRequest message from the specified reader or buffer, length delimited. + * Decodes a Fee message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest + * @memberof ibc.applications.fee.v1.Fee * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest} QueryIncentivizedPacketsForChannelRequest + * @returns {ibc.applications.fee.v1.Fee} Fee * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryIncentivizedPacketsForChannelRequest.decodeDelimited = function decodeDelimited(reader) { + Fee.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryIncentivizedPacketsForChannelRequest message. + * Verifies a Fee message. * @function verify - * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest + * @memberof ibc.applications.fee.v1.Fee * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryIncentivizedPacketsForChannelRequest.verify = function verify(message) { + Fee.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.pagination != null && message.hasOwnProperty("pagination")) { - let error = $root.cosmos.base.query.v1beta1.PageRequest.verify(message.pagination); - if (error) - return "pagination." + error; + if (message.recv_fee != null && message.hasOwnProperty("recv_fee")) { + if (!Array.isArray(message.recv_fee)) + return "recv_fee: array expected"; + for (let i = 0; i < message.recv_fee.length; ++i) { + let error = $root.cosmos.base.v1beta1.Coin.verify(message.recv_fee[i]); + if (error) + return "recv_fee." + error; + } + } + if (message.ack_fee != null && message.hasOwnProperty("ack_fee")) { + if (!Array.isArray(message.ack_fee)) + return "ack_fee: array expected"; + for (let i = 0; i < message.ack_fee.length; ++i) { + let error = $root.cosmos.base.v1beta1.Coin.verify(message.ack_fee[i]); + if (error) + return "ack_fee." + error; + } + } + if (message.timeout_fee != null && message.hasOwnProperty("timeout_fee")) { + if (!Array.isArray(message.timeout_fee)) + return "timeout_fee: array expected"; + for (let i = 0; i < message.timeout_fee.length; ++i) { + let error = $root.cosmos.base.v1beta1.Coin.verify(message.timeout_fee[i]); + if (error) + return "timeout_fee." + error; + } } - if (message.port_id != null && message.hasOwnProperty("port_id")) - if (!$util.isString(message.port_id)) - return "port_id: string expected"; - if (message.channel_id != null && message.hasOwnProperty("channel_id")) - if (!$util.isString(message.channel_id)) - return "channel_id: string expected"; - if (message.query_height != null && message.hasOwnProperty("query_height")) - if (!$util.isInteger(message.query_height) && !(message.query_height && $util.isInteger(message.query_height.low) && $util.isInteger(message.query_height.high))) - return "query_height: integer|Long expected"; return null; }; /** - * Creates a QueryIncentivizedPacketsForChannelRequest message from a plain object. Also converts values to their respective internal types. + * Creates a Fee message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest + * @memberof ibc.applications.fee.v1.Fee * @static * @param {Object.} object Plain object - * @returns {ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest} QueryIncentivizedPacketsForChannelRequest + * @returns {ibc.applications.fee.v1.Fee} Fee */ - QueryIncentivizedPacketsForChannelRequest.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest) + Fee.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.fee.v1.Fee) return object; - let message = new $root.ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest(); - if (object.pagination != null) { - if (typeof object.pagination !== "object") - throw TypeError(".ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest.pagination: object expected"); - message.pagination = $root.cosmos.base.query.v1beta1.PageRequest.fromObject(object.pagination); + let message = new $root.ibc.applications.fee.v1.Fee(); + if (object.recv_fee) { + if (!Array.isArray(object.recv_fee)) + throw TypeError(".ibc.applications.fee.v1.Fee.recv_fee: array expected"); + message.recv_fee = []; + for (let i = 0; i < object.recv_fee.length; ++i) { + if (typeof object.recv_fee[i] !== "object") + throw TypeError(".ibc.applications.fee.v1.Fee.recv_fee: object expected"); + message.recv_fee[i] = $root.cosmos.base.v1beta1.Coin.fromObject(object.recv_fee[i]); + } + } + if (object.ack_fee) { + if (!Array.isArray(object.ack_fee)) + throw TypeError(".ibc.applications.fee.v1.Fee.ack_fee: array expected"); + message.ack_fee = []; + for (let i = 0; i < object.ack_fee.length; ++i) { + if (typeof object.ack_fee[i] !== "object") + throw TypeError(".ibc.applications.fee.v1.Fee.ack_fee: object expected"); + message.ack_fee[i] = $root.cosmos.base.v1beta1.Coin.fromObject(object.ack_fee[i]); + } + } + if (object.timeout_fee) { + if (!Array.isArray(object.timeout_fee)) + throw TypeError(".ibc.applications.fee.v1.Fee.timeout_fee: array expected"); + message.timeout_fee = []; + for (let i = 0; i < object.timeout_fee.length; ++i) { + if (typeof object.timeout_fee[i] !== "object") + throw TypeError(".ibc.applications.fee.v1.Fee.timeout_fee: object expected"); + message.timeout_fee[i] = $root.cosmos.base.v1beta1.Coin.fromObject(object.timeout_fee[i]); + } } - if (object.port_id != null) - message.port_id = String(object.port_id); - if (object.channel_id != null) - message.channel_id = String(object.channel_id); - if (object.query_height != null) - if ($util.Long) - (message.query_height = $util.Long.fromValue(object.query_height)).unsigned = true; - else if (typeof object.query_height === "string") - message.query_height = parseInt(object.query_height, 10); - else if (typeof object.query_height === "number") - message.query_height = object.query_height; - else if (typeof object.query_height === "object") - message.query_height = new $util.LongBits(object.query_height.low >>> 0, object.query_height.high >>> 0).toNumber(true); return message; }; /** - * Creates a plain object from a QueryIncentivizedPacketsForChannelRequest message. Also converts values to other types if specified. + * Creates a plain object from a Fee message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest + * @memberof ibc.applications.fee.v1.Fee * @static - * @param {ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest} message QueryIncentivizedPacketsForChannelRequest + * @param {ibc.applications.fee.v1.Fee} message Fee * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryIncentivizedPacketsForChannelRequest.toObject = function toObject(message, options) { + Fee.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) { - object.pagination = null; - object.port_id = ""; - object.channel_id = ""; - if ($util.Long) { - let long = new $util.Long(0, 0, true); - object.query_height = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.query_height = options.longs === String ? "0" : 0; + if (options.arrays || options.defaults) { + object.recv_fee = []; + object.ack_fee = []; + object.timeout_fee = []; + } + if (message.recv_fee && message.recv_fee.length) { + object.recv_fee = []; + for (let j = 0; j < message.recv_fee.length; ++j) + object.recv_fee[j] = $root.cosmos.base.v1beta1.Coin.toObject(message.recv_fee[j], options); + } + if (message.ack_fee && message.ack_fee.length) { + object.ack_fee = []; + for (let j = 0; j < message.ack_fee.length; ++j) + object.ack_fee[j] = $root.cosmos.base.v1beta1.Coin.toObject(message.ack_fee[j], options); + } + if (message.timeout_fee && message.timeout_fee.length) { + object.timeout_fee = []; + for (let j = 0; j < message.timeout_fee.length; ++j) + object.timeout_fee[j] = $root.cosmos.base.v1beta1.Coin.toObject(message.timeout_fee[j], options); } - if (message.pagination != null && message.hasOwnProperty("pagination")) - object.pagination = $root.cosmos.base.query.v1beta1.PageRequest.toObject(message.pagination, options); - if (message.port_id != null && message.hasOwnProperty("port_id")) - object.port_id = message.port_id; - if (message.channel_id != null && message.hasOwnProperty("channel_id")) - object.channel_id = message.channel_id; - if (message.query_height != null && message.hasOwnProperty("query_height")) - if (typeof message.query_height === "number") - object.query_height = options.longs === String ? String(message.query_height) : message.query_height; - else - object.query_height = options.longs === String ? $util.Long.prototype.toString.call(message.query_height) : options.longs === Number ? new $util.LongBits(message.query_height.low >>> 0, message.query_height.high >>> 0).toNumber(true) : message.query_height; return object; }; /** - * Converts this QueryIncentivizedPacketsForChannelRequest to JSON. + * Converts this Fee to JSON. * @function toJSON - * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest + * @memberof ibc.applications.fee.v1.Fee * @instance * @returns {Object.} JSON object */ - QueryIncentivizedPacketsForChannelRequest.prototype.toJSON = function toJSON() { + Fee.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryIncentivizedPacketsForChannelRequest; + return Fee; })(); - v1.QueryIncentivizedPacketsForChannelResponse = (function() { + v1.PacketFee = (function() { /** - * Properties of a QueryIncentivizedPacketsForChannelResponse. + * Properties of a PacketFee. * @memberof ibc.applications.fee.v1 - * @interface IQueryIncentivizedPacketsForChannelResponse - * @property {Array.|null} [incentivized_packets] QueryIncentivizedPacketsForChannelResponse incentivized_packets + * @interface IPacketFee + * @property {ibc.applications.fee.v1.IFee|null} [fee] PacketFee fee + * @property {string|null} [refund_address] PacketFee refund_address + * @property {Array.|null} [relayers] PacketFee relayers */ /** - * Constructs a new QueryIncentivizedPacketsForChannelResponse. + * Constructs a new PacketFee. * @memberof ibc.applications.fee.v1 - * @classdesc Represents a QueryIncentivizedPacketsForChannelResponse. - * @implements IQueryIncentivizedPacketsForChannelResponse + * @classdesc Represents a PacketFee. + * @implements IPacketFee * @constructor - * @param {ibc.applications.fee.v1.IQueryIncentivizedPacketsForChannelResponse=} [properties] Properties to set + * @param {ibc.applications.fee.v1.IPacketFee=} [properties] Properties to set */ - function QueryIncentivizedPacketsForChannelResponse(properties) { - this.incentivized_packets = []; + function PacketFee(properties) { + this.relayers = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -22556,66 +28796,92 @@ export const ibc = $root.ibc = (() => { } /** - * QueryIncentivizedPacketsForChannelResponse incentivized_packets. - * @member {Array.} incentivized_packets - * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelResponse + * PacketFee fee. + * @member {ibc.applications.fee.v1.IFee|null|undefined} fee + * @memberof ibc.applications.fee.v1.PacketFee * @instance */ - QueryIncentivizedPacketsForChannelResponse.prototype.incentivized_packets = $util.emptyArray; + PacketFee.prototype.fee = null; /** - * Encodes the specified QueryIncentivizedPacketsForChannelResponse message. Does not implicitly {@link ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelResponse.verify|verify} messages. + * PacketFee refund_address. + * @member {string} refund_address + * @memberof ibc.applications.fee.v1.PacketFee + * @instance + */ + PacketFee.prototype.refund_address = ""; + + /** + * PacketFee relayers. + * @member {Array.} relayers + * @memberof ibc.applications.fee.v1.PacketFee + * @instance + */ + PacketFee.prototype.relayers = $util.emptyArray; + + /** + * Encodes the specified PacketFee message. Does not implicitly {@link ibc.applications.fee.v1.PacketFee.verify|verify} messages. * @function encode - * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelResponse + * @memberof ibc.applications.fee.v1.PacketFee * @static - * @param {ibc.applications.fee.v1.IQueryIncentivizedPacketsForChannelResponse} message QueryIncentivizedPacketsForChannelResponse message or plain object to encode + * @param {ibc.applications.fee.v1.IPacketFee} message PacketFee message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryIncentivizedPacketsForChannelResponse.encode = function encode(message, writer) { + PacketFee.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.incentivized_packets != null && message.incentivized_packets.length) - for (let i = 0; i < message.incentivized_packets.length; ++i) - $root.ibc.applications.fee.v1.IdentifiedPacketFees.encode(message.incentivized_packets[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.fee != null && Object.hasOwnProperty.call(message, "fee")) + $root.ibc.applications.fee.v1.Fee.encode(message.fee, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.refund_address != null && Object.hasOwnProperty.call(message, "refund_address")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.refund_address); + if (message.relayers != null && message.relayers.length) + for (let i = 0; i < message.relayers.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.relayers[i]); return writer; }; /** - * Encodes the specified QueryIncentivizedPacketsForChannelResponse message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelResponse.verify|verify} messages. + * Encodes the specified PacketFee message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.PacketFee.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelResponse + * @memberof ibc.applications.fee.v1.PacketFee * @static - * @param {ibc.applications.fee.v1.IQueryIncentivizedPacketsForChannelResponse} message QueryIncentivizedPacketsForChannelResponse message or plain object to encode + * @param {ibc.applications.fee.v1.IPacketFee} message PacketFee message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryIncentivizedPacketsForChannelResponse.encodeDelimited = function encodeDelimited(message, writer) { + PacketFee.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryIncentivizedPacketsForChannelResponse message from the specified reader or buffer. + * Decodes a PacketFee message from the specified reader or buffer. * @function decode - * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelResponse + * @memberof ibc.applications.fee.v1.PacketFee * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelResponse} QueryIncentivizedPacketsForChannelResponse + * @returns {ibc.applications.fee.v1.PacketFee} PacketFee * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryIncentivizedPacketsForChannelResponse.decode = function decode(reader, length) { + PacketFee.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.PacketFee(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.incentivized_packets && message.incentivized_packets.length)) - message.incentivized_packets = []; - message.incentivized_packets.push($root.ibc.applications.fee.v1.IdentifiedPacketFees.decode(reader, reader.uint32())); + message.fee = $root.ibc.applications.fee.v1.Fee.decode(reader, reader.uint32()); + break; + case 2: + message.refund_address = reader.string(); + break; + case 3: + if (!(message.relayers && message.relayers.length)) + message.relayers = []; + message.relayers.push(reader.string()); break; default: reader.skipType(tag & 7); @@ -22626,124 +28892,143 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a QueryIncentivizedPacketsForChannelResponse message from the specified reader or buffer, length delimited. + * Decodes a PacketFee message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelResponse + * @memberof ibc.applications.fee.v1.PacketFee * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelResponse} QueryIncentivizedPacketsForChannelResponse + * @returns {ibc.applications.fee.v1.PacketFee} PacketFee * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryIncentivizedPacketsForChannelResponse.decodeDelimited = function decodeDelimited(reader) { + PacketFee.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryIncentivizedPacketsForChannelResponse message. + * Verifies a PacketFee message. * @function verify - * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelResponse + * @memberof ibc.applications.fee.v1.PacketFee * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryIncentivizedPacketsForChannelResponse.verify = function verify(message) { + PacketFee.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.incentivized_packets != null && message.hasOwnProperty("incentivized_packets")) { - if (!Array.isArray(message.incentivized_packets)) - return "incentivized_packets: array expected"; - for (let i = 0; i < message.incentivized_packets.length; ++i) { - let error = $root.ibc.applications.fee.v1.IdentifiedPacketFees.verify(message.incentivized_packets[i]); - if (error) - return "incentivized_packets." + error; - } + if (message.fee != null && message.hasOwnProperty("fee")) { + let error = $root.ibc.applications.fee.v1.Fee.verify(message.fee); + if (error) + return "fee." + error; + } + if (message.refund_address != null && message.hasOwnProperty("refund_address")) + if (!$util.isString(message.refund_address)) + return "refund_address: string expected"; + if (message.relayers != null && message.hasOwnProperty("relayers")) { + if (!Array.isArray(message.relayers)) + return "relayers: array expected"; + for (let i = 0; i < message.relayers.length; ++i) + if (!$util.isString(message.relayers[i])) + return "relayers: string[] expected"; } return null; }; /** - * Creates a QueryIncentivizedPacketsForChannelResponse message from a plain object. Also converts values to their respective internal types. + * Creates a PacketFee message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelResponse + * @memberof ibc.applications.fee.v1.PacketFee * @static * @param {Object.} object Plain object - * @returns {ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelResponse} QueryIncentivizedPacketsForChannelResponse + * @returns {ibc.applications.fee.v1.PacketFee} PacketFee */ - QueryIncentivizedPacketsForChannelResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelResponse) + PacketFee.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.fee.v1.PacketFee) return object; - let message = new $root.ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelResponse(); - if (object.incentivized_packets) { - if (!Array.isArray(object.incentivized_packets)) - throw TypeError(".ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelResponse.incentivized_packets: array expected"); - message.incentivized_packets = []; - for (let i = 0; i < object.incentivized_packets.length; ++i) { - if (typeof object.incentivized_packets[i] !== "object") - throw TypeError(".ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelResponse.incentivized_packets: object expected"); - message.incentivized_packets[i] = $root.ibc.applications.fee.v1.IdentifiedPacketFees.fromObject(object.incentivized_packets[i]); - } + let message = new $root.ibc.applications.fee.v1.PacketFee(); + if (object.fee != null) { + if (typeof object.fee !== "object") + throw TypeError(".ibc.applications.fee.v1.PacketFee.fee: object expected"); + message.fee = $root.ibc.applications.fee.v1.Fee.fromObject(object.fee); + } + if (object.refund_address != null) + message.refund_address = String(object.refund_address); + if (object.relayers) { + if (!Array.isArray(object.relayers)) + throw TypeError(".ibc.applications.fee.v1.PacketFee.relayers: array expected"); + message.relayers = []; + for (let i = 0; i < object.relayers.length; ++i) + message.relayers[i] = String(object.relayers[i]); } return message; }; /** - * Creates a plain object from a QueryIncentivizedPacketsForChannelResponse message. Also converts values to other types if specified. + * Creates a plain object from a PacketFee message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelResponse + * @memberof ibc.applications.fee.v1.PacketFee * @static - * @param {ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelResponse} message QueryIncentivizedPacketsForChannelResponse + * @param {ibc.applications.fee.v1.PacketFee} message PacketFee * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryIncentivizedPacketsForChannelResponse.toObject = function toObject(message, options) { + PacketFee.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) - object.incentivized_packets = []; - if (message.incentivized_packets && message.incentivized_packets.length) { - object.incentivized_packets = []; - for (let j = 0; j < message.incentivized_packets.length; ++j) - object.incentivized_packets[j] = $root.ibc.applications.fee.v1.IdentifiedPacketFees.toObject(message.incentivized_packets[j], options); + object.relayers = []; + if (options.defaults) { + object.fee = null; + object.refund_address = ""; + } + if (message.fee != null && message.hasOwnProperty("fee")) + object.fee = $root.ibc.applications.fee.v1.Fee.toObject(message.fee, options); + if (message.refund_address != null && message.hasOwnProperty("refund_address")) + object.refund_address = message.refund_address; + if (message.relayers && message.relayers.length) { + object.relayers = []; + for (let j = 0; j < message.relayers.length; ++j) + object.relayers[j] = message.relayers[j]; } return object; }; /** - * Converts this QueryIncentivizedPacketsForChannelResponse to JSON. + * Converts this PacketFee to JSON. * @function toJSON - * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelResponse + * @memberof ibc.applications.fee.v1.PacketFee * @instance * @returns {Object.} JSON object */ - QueryIncentivizedPacketsForChannelResponse.prototype.toJSON = function toJSON() { + PacketFee.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryIncentivizedPacketsForChannelResponse; + return PacketFee; })(); - v1.QueryTotalRecvFeesRequest = (function() { + v1.PacketFees = (function() { /** - * Properties of a QueryTotalRecvFeesRequest. + * Properties of a PacketFees. * @memberof ibc.applications.fee.v1 - * @interface IQueryTotalRecvFeesRequest - * @property {ibc.core.channel.v1.IPacketId|null} [packet_id] QueryTotalRecvFeesRequest packet_id + * @interface IPacketFees + * @property {Array.|null} [packet_fees] PacketFees packet_fees */ /** - * Constructs a new QueryTotalRecvFeesRequest. + * Constructs a new PacketFees. * @memberof ibc.applications.fee.v1 - * @classdesc Represents a QueryTotalRecvFeesRequest. - * @implements IQueryTotalRecvFeesRequest + * @classdesc Represents a PacketFees. + * @implements IPacketFees * @constructor - * @param {ibc.applications.fee.v1.IQueryTotalRecvFeesRequest=} [properties] Properties to set + * @param {ibc.applications.fee.v1.IPacketFees=} [properties] Properties to set */ - function QueryTotalRecvFeesRequest(properties) { + function PacketFees(properties) { + this.packet_fees = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -22751,63 +29036,66 @@ export const ibc = $root.ibc = (() => { } /** - * QueryTotalRecvFeesRequest packet_id. - * @member {ibc.core.channel.v1.IPacketId|null|undefined} packet_id - * @memberof ibc.applications.fee.v1.QueryTotalRecvFeesRequest + * PacketFees packet_fees. + * @member {Array.} packet_fees + * @memberof ibc.applications.fee.v1.PacketFees * @instance */ - QueryTotalRecvFeesRequest.prototype.packet_id = null; + PacketFees.prototype.packet_fees = $util.emptyArray; /** - * Encodes the specified QueryTotalRecvFeesRequest message. Does not implicitly {@link ibc.applications.fee.v1.QueryTotalRecvFeesRequest.verify|verify} messages. + * Encodes the specified PacketFees message. Does not implicitly {@link ibc.applications.fee.v1.PacketFees.verify|verify} messages. * @function encode - * @memberof ibc.applications.fee.v1.QueryTotalRecvFeesRequest + * @memberof ibc.applications.fee.v1.PacketFees * @static - * @param {ibc.applications.fee.v1.IQueryTotalRecvFeesRequest} message QueryTotalRecvFeesRequest message or plain object to encode + * @param {ibc.applications.fee.v1.IPacketFees} message PacketFees message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryTotalRecvFeesRequest.encode = function encode(message, writer) { + PacketFees.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.packet_id != null && Object.hasOwnProperty.call(message, "packet_id")) - $root.ibc.core.channel.v1.PacketId.encode(message.packet_id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.packet_fees != null && message.packet_fees.length) + for (let i = 0; i < message.packet_fees.length; ++i) + $root.ibc.applications.fee.v1.PacketFee.encode(message.packet_fees[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified QueryTotalRecvFeesRequest message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.QueryTotalRecvFeesRequest.verify|verify} messages. + * Encodes the specified PacketFees message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.PacketFees.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.applications.fee.v1.QueryTotalRecvFeesRequest + * @memberof ibc.applications.fee.v1.PacketFees * @static - * @param {ibc.applications.fee.v1.IQueryTotalRecvFeesRequest} message QueryTotalRecvFeesRequest message or plain object to encode + * @param {ibc.applications.fee.v1.IPacketFees} message PacketFees message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryTotalRecvFeesRequest.encodeDelimited = function encodeDelimited(message, writer) { + PacketFees.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryTotalRecvFeesRequest message from the specified reader or buffer. + * Decodes a PacketFees message from the specified reader or buffer. * @function decode - * @memberof ibc.applications.fee.v1.QueryTotalRecvFeesRequest + * @memberof ibc.applications.fee.v1.PacketFees * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.fee.v1.QueryTotalRecvFeesRequest} QueryTotalRecvFeesRequest + * @returns {ibc.applications.fee.v1.PacketFees} PacketFees * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryTotalRecvFeesRequest.decode = function decode(reader, length) { + PacketFees.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.QueryTotalRecvFeesRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.PacketFees(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.packet_id = $root.ibc.core.channel.v1.PacketId.decode(reader, reader.uint32()); + if (!(message.packet_fees && message.packet_fees.length)) + message.packet_fees = []; + message.packet_fees.push($root.ibc.applications.fee.v1.PacketFee.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -22818,113 +29106,126 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a QueryTotalRecvFeesRequest message from the specified reader or buffer, length delimited. + * Decodes a PacketFees message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.applications.fee.v1.QueryTotalRecvFeesRequest + * @memberof ibc.applications.fee.v1.PacketFees * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.fee.v1.QueryTotalRecvFeesRequest} QueryTotalRecvFeesRequest + * @returns {ibc.applications.fee.v1.PacketFees} PacketFees * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryTotalRecvFeesRequest.decodeDelimited = function decodeDelimited(reader) { + PacketFees.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryTotalRecvFeesRequest message. + * Verifies a PacketFees message. * @function verify - * @memberof ibc.applications.fee.v1.QueryTotalRecvFeesRequest + * @memberof ibc.applications.fee.v1.PacketFees * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryTotalRecvFeesRequest.verify = function verify(message) { + PacketFees.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.packet_id != null && message.hasOwnProperty("packet_id")) { - let error = $root.ibc.core.channel.v1.PacketId.verify(message.packet_id); - if (error) - return "packet_id." + error; + if (message.packet_fees != null && message.hasOwnProperty("packet_fees")) { + if (!Array.isArray(message.packet_fees)) + return "packet_fees: array expected"; + for (let i = 0; i < message.packet_fees.length; ++i) { + let error = $root.ibc.applications.fee.v1.PacketFee.verify(message.packet_fees[i]); + if (error) + return "packet_fees." + error; + } } return null; }; /** - * Creates a QueryTotalRecvFeesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PacketFees message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.applications.fee.v1.QueryTotalRecvFeesRequest + * @memberof ibc.applications.fee.v1.PacketFees * @static * @param {Object.} object Plain object - * @returns {ibc.applications.fee.v1.QueryTotalRecvFeesRequest} QueryTotalRecvFeesRequest + * @returns {ibc.applications.fee.v1.PacketFees} PacketFees */ - QueryTotalRecvFeesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.fee.v1.QueryTotalRecvFeesRequest) + PacketFees.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.fee.v1.PacketFees) return object; - let message = new $root.ibc.applications.fee.v1.QueryTotalRecvFeesRequest(); - if (object.packet_id != null) { - if (typeof object.packet_id !== "object") - throw TypeError(".ibc.applications.fee.v1.QueryTotalRecvFeesRequest.packet_id: object expected"); - message.packet_id = $root.ibc.core.channel.v1.PacketId.fromObject(object.packet_id); + let message = new $root.ibc.applications.fee.v1.PacketFees(); + if (object.packet_fees) { + if (!Array.isArray(object.packet_fees)) + throw TypeError(".ibc.applications.fee.v1.PacketFees.packet_fees: array expected"); + message.packet_fees = []; + for (let i = 0; i < object.packet_fees.length; ++i) { + if (typeof object.packet_fees[i] !== "object") + throw TypeError(".ibc.applications.fee.v1.PacketFees.packet_fees: object expected"); + message.packet_fees[i] = $root.ibc.applications.fee.v1.PacketFee.fromObject(object.packet_fees[i]); + } } return message; }; /** - * Creates a plain object from a QueryTotalRecvFeesRequest message. Also converts values to other types if specified. + * Creates a plain object from a PacketFees message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.applications.fee.v1.QueryTotalRecvFeesRequest + * @memberof ibc.applications.fee.v1.PacketFees * @static - * @param {ibc.applications.fee.v1.QueryTotalRecvFeesRequest} message QueryTotalRecvFeesRequest + * @param {ibc.applications.fee.v1.PacketFees} message PacketFees * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryTotalRecvFeesRequest.toObject = function toObject(message, options) { + PacketFees.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) - object.packet_id = null; - if (message.packet_id != null && message.hasOwnProperty("packet_id")) - object.packet_id = $root.ibc.core.channel.v1.PacketId.toObject(message.packet_id, options); + if (options.arrays || options.defaults) + object.packet_fees = []; + if (message.packet_fees && message.packet_fees.length) { + object.packet_fees = []; + for (let j = 0; j < message.packet_fees.length; ++j) + object.packet_fees[j] = $root.ibc.applications.fee.v1.PacketFee.toObject(message.packet_fees[j], options); + } return object; }; /** - * Converts this QueryTotalRecvFeesRequest to JSON. + * Converts this PacketFees to JSON. * @function toJSON - * @memberof ibc.applications.fee.v1.QueryTotalRecvFeesRequest + * @memberof ibc.applications.fee.v1.PacketFees * @instance * @returns {Object.} JSON object */ - QueryTotalRecvFeesRequest.prototype.toJSON = function toJSON() { + PacketFees.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryTotalRecvFeesRequest; + return PacketFees; })(); - v1.QueryTotalRecvFeesResponse = (function() { + v1.IdentifiedPacketFees = (function() { /** - * Properties of a QueryTotalRecvFeesResponse. + * Properties of an IdentifiedPacketFees. * @memberof ibc.applications.fee.v1 - * @interface IQueryTotalRecvFeesResponse - * @property {Array.|null} [recv_fees] QueryTotalRecvFeesResponse recv_fees + * @interface IIdentifiedPacketFees + * @property {ibc.core.channel.v1.IPacketId|null} [packet_id] IdentifiedPacketFees packet_id + * @property {Array.|null} [packet_fees] IdentifiedPacketFees packet_fees */ /** - * Constructs a new QueryTotalRecvFeesResponse. + * Constructs a new IdentifiedPacketFees. * @memberof ibc.applications.fee.v1 - * @classdesc Represents a QueryTotalRecvFeesResponse. - * @implements IQueryTotalRecvFeesResponse + * @classdesc Represents an IdentifiedPacketFees. + * @implements IIdentifiedPacketFees * @constructor - * @param {ibc.applications.fee.v1.IQueryTotalRecvFeesResponse=} [properties] Properties to set + * @param {ibc.applications.fee.v1.IIdentifiedPacketFees=} [properties] Properties to set */ - function QueryTotalRecvFeesResponse(properties) { - this.recv_fees = []; + function IdentifiedPacketFees(properties) { + this.packet_fees = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -22932,66 +29233,79 @@ export const ibc = $root.ibc = (() => { } /** - * QueryTotalRecvFeesResponse recv_fees. - * @member {Array.} recv_fees - * @memberof ibc.applications.fee.v1.QueryTotalRecvFeesResponse + * IdentifiedPacketFees packet_id. + * @member {ibc.core.channel.v1.IPacketId|null|undefined} packet_id + * @memberof ibc.applications.fee.v1.IdentifiedPacketFees * @instance */ - QueryTotalRecvFeesResponse.prototype.recv_fees = $util.emptyArray; + IdentifiedPacketFees.prototype.packet_id = null; /** - * Encodes the specified QueryTotalRecvFeesResponse message. Does not implicitly {@link ibc.applications.fee.v1.QueryTotalRecvFeesResponse.verify|verify} messages. + * IdentifiedPacketFees packet_fees. + * @member {Array.} packet_fees + * @memberof ibc.applications.fee.v1.IdentifiedPacketFees + * @instance + */ + IdentifiedPacketFees.prototype.packet_fees = $util.emptyArray; + + /** + * Encodes the specified IdentifiedPacketFees message. Does not implicitly {@link ibc.applications.fee.v1.IdentifiedPacketFees.verify|verify} messages. * @function encode - * @memberof ibc.applications.fee.v1.QueryTotalRecvFeesResponse + * @memberof ibc.applications.fee.v1.IdentifiedPacketFees * @static - * @param {ibc.applications.fee.v1.IQueryTotalRecvFeesResponse} message QueryTotalRecvFeesResponse message or plain object to encode + * @param {ibc.applications.fee.v1.IIdentifiedPacketFees} message IdentifiedPacketFees message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryTotalRecvFeesResponse.encode = function encode(message, writer) { + IdentifiedPacketFees.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.recv_fees != null && message.recv_fees.length) - for (let i = 0; i < message.recv_fees.length; ++i) - $root.cosmos.base.v1beta1.Coin.encode(message.recv_fees[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.packet_id != null && Object.hasOwnProperty.call(message, "packet_id")) + $root.ibc.core.channel.v1.PacketId.encode(message.packet_id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.packet_fees != null && message.packet_fees.length) + for (let i = 0; i < message.packet_fees.length; ++i) + $root.ibc.applications.fee.v1.PacketFee.encode(message.packet_fees[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified QueryTotalRecvFeesResponse message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.QueryTotalRecvFeesResponse.verify|verify} messages. + * Encodes the specified IdentifiedPacketFees message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.IdentifiedPacketFees.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.applications.fee.v1.QueryTotalRecvFeesResponse + * @memberof ibc.applications.fee.v1.IdentifiedPacketFees * @static - * @param {ibc.applications.fee.v1.IQueryTotalRecvFeesResponse} message QueryTotalRecvFeesResponse message or plain object to encode + * @param {ibc.applications.fee.v1.IIdentifiedPacketFees} message IdentifiedPacketFees message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryTotalRecvFeesResponse.encodeDelimited = function encodeDelimited(message, writer) { + IdentifiedPacketFees.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryTotalRecvFeesResponse message from the specified reader or buffer. + * Decodes an IdentifiedPacketFees message from the specified reader or buffer. * @function decode - * @memberof ibc.applications.fee.v1.QueryTotalRecvFeesResponse + * @memberof ibc.applications.fee.v1.IdentifiedPacketFees * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.fee.v1.QueryTotalRecvFeesResponse} QueryTotalRecvFeesResponse + * @returns {ibc.applications.fee.v1.IdentifiedPacketFees} IdentifiedPacketFees * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryTotalRecvFeesResponse.decode = function decode(reader, length) { + IdentifiedPacketFees.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.QueryTotalRecvFeesResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.IdentifiedPacketFees(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.recv_fees && message.recv_fees.length)) - message.recv_fees = []; - message.recv_fees.push($root.cosmos.base.v1beta1.Coin.decode(reader, reader.uint32())); + message.packet_id = $root.ibc.core.channel.v1.PacketId.decode(reader, reader.uint32()); + break; + case 2: + if (!(message.packet_fees && message.packet_fees.length)) + message.packet_fees = []; + message.packet_fees.push($root.ibc.applications.fee.v1.PacketFee.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -23002,124 +29316,140 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a QueryTotalRecvFeesResponse message from the specified reader or buffer, length delimited. + * Decodes an IdentifiedPacketFees message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.applications.fee.v1.QueryTotalRecvFeesResponse + * @memberof ibc.applications.fee.v1.IdentifiedPacketFees * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.fee.v1.QueryTotalRecvFeesResponse} QueryTotalRecvFeesResponse + * @returns {ibc.applications.fee.v1.IdentifiedPacketFees} IdentifiedPacketFees * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryTotalRecvFeesResponse.decodeDelimited = function decodeDelimited(reader) { + IdentifiedPacketFees.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryTotalRecvFeesResponse message. + * Verifies an IdentifiedPacketFees message. * @function verify - * @memberof ibc.applications.fee.v1.QueryTotalRecvFeesResponse + * @memberof ibc.applications.fee.v1.IdentifiedPacketFees * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryTotalRecvFeesResponse.verify = function verify(message) { + IdentifiedPacketFees.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.recv_fees != null && message.hasOwnProperty("recv_fees")) { - if (!Array.isArray(message.recv_fees)) - return "recv_fees: array expected"; - for (let i = 0; i < message.recv_fees.length; ++i) { - let error = $root.cosmos.base.v1beta1.Coin.verify(message.recv_fees[i]); + if (message.packet_id != null && message.hasOwnProperty("packet_id")) { + let error = $root.ibc.core.channel.v1.PacketId.verify(message.packet_id); + if (error) + return "packet_id." + error; + } + if (message.packet_fees != null && message.hasOwnProperty("packet_fees")) { + if (!Array.isArray(message.packet_fees)) + return "packet_fees: array expected"; + for (let i = 0; i < message.packet_fees.length; ++i) { + let error = $root.ibc.applications.fee.v1.PacketFee.verify(message.packet_fees[i]); if (error) - return "recv_fees." + error; + return "packet_fees." + error; } } return null; }; /** - * Creates a QueryTotalRecvFeesResponse message from a plain object. Also converts values to their respective internal types. + * Creates an IdentifiedPacketFees message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.applications.fee.v1.QueryTotalRecvFeesResponse + * @memberof ibc.applications.fee.v1.IdentifiedPacketFees * @static * @param {Object.} object Plain object - * @returns {ibc.applications.fee.v1.QueryTotalRecvFeesResponse} QueryTotalRecvFeesResponse + * @returns {ibc.applications.fee.v1.IdentifiedPacketFees} IdentifiedPacketFees */ - QueryTotalRecvFeesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.fee.v1.QueryTotalRecvFeesResponse) + IdentifiedPacketFees.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.fee.v1.IdentifiedPacketFees) return object; - let message = new $root.ibc.applications.fee.v1.QueryTotalRecvFeesResponse(); - if (object.recv_fees) { - if (!Array.isArray(object.recv_fees)) - throw TypeError(".ibc.applications.fee.v1.QueryTotalRecvFeesResponse.recv_fees: array expected"); - message.recv_fees = []; - for (let i = 0; i < object.recv_fees.length; ++i) { - if (typeof object.recv_fees[i] !== "object") - throw TypeError(".ibc.applications.fee.v1.QueryTotalRecvFeesResponse.recv_fees: object expected"); - message.recv_fees[i] = $root.cosmos.base.v1beta1.Coin.fromObject(object.recv_fees[i]); + let message = new $root.ibc.applications.fee.v1.IdentifiedPacketFees(); + if (object.packet_id != null) { + if (typeof object.packet_id !== "object") + throw TypeError(".ibc.applications.fee.v1.IdentifiedPacketFees.packet_id: object expected"); + message.packet_id = $root.ibc.core.channel.v1.PacketId.fromObject(object.packet_id); + } + if (object.packet_fees) { + if (!Array.isArray(object.packet_fees)) + throw TypeError(".ibc.applications.fee.v1.IdentifiedPacketFees.packet_fees: array expected"); + message.packet_fees = []; + for (let i = 0; i < object.packet_fees.length; ++i) { + if (typeof object.packet_fees[i] !== "object") + throw TypeError(".ibc.applications.fee.v1.IdentifiedPacketFees.packet_fees: object expected"); + message.packet_fees[i] = $root.ibc.applications.fee.v1.PacketFee.fromObject(object.packet_fees[i]); } } return message; }; /** - * Creates a plain object from a QueryTotalRecvFeesResponse message. Also converts values to other types if specified. + * Creates a plain object from an IdentifiedPacketFees message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.applications.fee.v1.QueryTotalRecvFeesResponse + * @memberof ibc.applications.fee.v1.IdentifiedPacketFees * @static - * @param {ibc.applications.fee.v1.QueryTotalRecvFeesResponse} message QueryTotalRecvFeesResponse + * @param {ibc.applications.fee.v1.IdentifiedPacketFees} message IdentifiedPacketFees * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryTotalRecvFeesResponse.toObject = function toObject(message, options) { + IdentifiedPacketFees.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) - object.recv_fees = []; - if (message.recv_fees && message.recv_fees.length) { - object.recv_fees = []; - for (let j = 0; j < message.recv_fees.length; ++j) - object.recv_fees[j] = $root.cosmos.base.v1beta1.Coin.toObject(message.recv_fees[j], options); + object.packet_fees = []; + if (options.defaults) + object.packet_id = null; + if (message.packet_id != null && message.hasOwnProperty("packet_id")) + object.packet_id = $root.ibc.core.channel.v1.PacketId.toObject(message.packet_id, options); + if (message.packet_fees && message.packet_fees.length) { + object.packet_fees = []; + for (let j = 0; j < message.packet_fees.length; ++j) + object.packet_fees[j] = $root.ibc.applications.fee.v1.PacketFee.toObject(message.packet_fees[j], options); } return object; }; /** - * Converts this QueryTotalRecvFeesResponse to JSON. + * Converts this IdentifiedPacketFees to JSON. * @function toJSON - * @memberof ibc.applications.fee.v1.QueryTotalRecvFeesResponse + * @memberof ibc.applications.fee.v1.IdentifiedPacketFees * @instance * @returns {Object.} JSON object */ - QueryTotalRecvFeesResponse.prototype.toJSON = function toJSON() { + IdentifiedPacketFees.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryTotalRecvFeesResponse; + return IdentifiedPacketFees; })(); - v1.QueryTotalAckFeesRequest = (function() { + v1.IncentivizedAcknowledgement = (function() { /** - * Properties of a QueryTotalAckFeesRequest. + * Properties of an IncentivizedAcknowledgement. * @memberof ibc.applications.fee.v1 - * @interface IQueryTotalAckFeesRequest - * @property {ibc.core.channel.v1.IPacketId|null} [packet_id] QueryTotalAckFeesRequest packet_id + * @interface IIncentivizedAcknowledgement + * @property {Uint8Array|null} [app_acknowledgement] IncentivizedAcknowledgement app_acknowledgement + * @property {string|null} [forward_relayer_address] IncentivizedAcknowledgement forward_relayer_address + * @property {boolean|null} [underlying_app_success] IncentivizedAcknowledgement underlying_app_success */ /** - * Constructs a new QueryTotalAckFeesRequest. + * Constructs a new IncentivizedAcknowledgement. * @memberof ibc.applications.fee.v1 - * @classdesc Represents a QueryTotalAckFeesRequest. - * @implements IQueryTotalAckFeesRequest + * @classdesc Represents an IncentivizedAcknowledgement. + * @implements IIncentivizedAcknowledgement * @constructor - * @param {ibc.applications.fee.v1.IQueryTotalAckFeesRequest=} [properties] Properties to set + * @param {ibc.applications.fee.v1.IIncentivizedAcknowledgement=} [properties] Properties to set */ - function QueryTotalAckFeesRequest(properties) { + function IncentivizedAcknowledgement(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -23127,63 +29457,89 @@ export const ibc = $root.ibc = (() => { } /** - * QueryTotalAckFeesRequest packet_id. - * @member {ibc.core.channel.v1.IPacketId|null|undefined} packet_id - * @memberof ibc.applications.fee.v1.QueryTotalAckFeesRequest + * IncentivizedAcknowledgement app_acknowledgement. + * @member {Uint8Array} app_acknowledgement + * @memberof ibc.applications.fee.v1.IncentivizedAcknowledgement * @instance */ - QueryTotalAckFeesRequest.prototype.packet_id = null; + IncentivizedAcknowledgement.prototype.app_acknowledgement = $util.newBuffer([]); /** - * Encodes the specified QueryTotalAckFeesRequest message. Does not implicitly {@link ibc.applications.fee.v1.QueryTotalAckFeesRequest.verify|verify} messages. + * IncentivizedAcknowledgement forward_relayer_address. + * @member {string} forward_relayer_address + * @memberof ibc.applications.fee.v1.IncentivizedAcknowledgement + * @instance + */ + IncentivizedAcknowledgement.prototype.forward_relayer_address = ""; + + /** + * IncentivizedAcknowledgement underlying_app_success. + * @member {boolean} underlying_app_success + * @memberof ibc.applications.fee.v1.IncentivizedAcknowledgement + * @instance + */ + IncentivizedAcknowledgement.prototype.underlying_app_success = false; + + /** + * Encodes the specified IncentivizedAcknowledgement message. Does not implicitly {@link ibc.applications.fee.v1.IncentivizedAcknowledgement.verify|verify} messages. * @function encode - * @memberof ibc.applications.fee.v1.QueryTotalAckFeesRequest + * @memberof ibc.applications.fee.v1.IncentivizedAcknowledgement * @static - * @param {ibc.applications.fee.v1.IQueryTotalAckFeesRequest} message QueryTotalAckFeesRequest message or plain object to encode + * @param {ibc.applications.fee.v1.IIncentivizedAcknowledgement} message IncentivizedAcknowledgement message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryTotalAckFeesRequest.encode = function encode(message, writer) { + IncentivizedAcknowledgement.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.packet_id != null && Object.hasOwnProperty.call(message, "packet_id")) - $root.ibc.core.channel.v1.PacketId.encode(message.packet_id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.app_acknowledgement != null && Object.hasOwnProperty.call(message, "app_acknowledgement")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.app_acknowledgement); + if (message.forward_relayer_address != null && Object.hasOwnProperty.call(message, "forward_relayer_address")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.forward_relayer_address); + if (message.underlying_app_success != null && Object.hasOwnProperty.call(message, "underlying_app_success")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.underlying_app_success); return writer; }; /** - * Encodes the specified QueryTotalAckFeesRequest message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.QueryTotalAckFeesRequest.verify|verify} messages. + * Encodes the specified IncentivizedAcknowledgement message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.IncentivizedAcknowledgement.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.applications.fee.v1.QueryTotalAckFeesRequest + * @memberof ibc.applications.fee.v1.IncentivizedAcknowledgement * @static - * @param {ibc.applications.fee.v1.IQueryTotalAckFeesRequest} message QueryTotalAckFeesRequest message or plain object to encode + * @param {ibc.applications.fee.v1.IIncentivizedAcknowledgement} message IncentivizedAcknowledgement message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryTotalAckFeesRequest.encodeDelimited = function encodeDelimited(message, writer) { + IncentivizedAcknowledgement.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryTotalAckFeesRequest message from the specified reader or buffer. + * Decodes an IncentivizedAcknowledgement message from the specified reader or buffer. * @function decode - * @memberof ibc.applications.fee.v1.QueryTotalAckFeesRequest + * @memberof ibc.applications.fee.v1.IncentivizedAcknowledgement * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.fee.v1.QueryTotalAckFeesRequest} QueryTotalAckFeesRequest + * @returns {ibc.applications.fee.v1.IncentivizedAcknowledgement} IncentivizedAcknowledgement * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryTotalAckFeesRequest.decode = function decode(reader, length) { + IncentivizedAcknowledgement.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.QueryTotalAckFeesRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.IncentivizedAcknowledgement(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.packet_id = $root.ibc.core.channel.v1.PacketId.decode(reader, reader.uint32()); + message.app_acknowledgement = reader.bytes(); + break; + case 2: + message.forward_relayer_address = reader.string(); + break; + case 3: + message.underlying_app_success = reader.bool(); break; default: reader.skipType(tag & 7); @@ -23194,308 +29550,485 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a QueryTotalAckFeesRequest message from the specified reader or buffer, length delimited. + * Decodes an IncentivizedAcknowledgement message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.applications.fee.v1.QueryTotalAckFeesRequest + * @memberof ibc.applications.fee.v1.IncentivizedAcknowledgement * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.fee.v1.QueryTotalAckFeesRequest} QueryTotalAckFeesRequest + * @returns {ibc.applications.fee.v1.IncentivizedAcknowledgement} IncentivizedAcknowledgement * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryTotalAckFeesRequest.decodeDelimited = function decodeDelimited(reader) { + IncentivizedAcknowledgement.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryTotalAckFeesRequest message. + * Verifies an IncentivizedAcknowledgement message. * @function verify - * @memberof ibc.applications.fee.v1.QueryTotalAckFeesRequest + * @memberof ibc.applications.fee.v1.IncentivizedAcknowledgement * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryTotalAckFeesRequest.verify = function verify(message) { + IncentivizedAcknowledgement.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.packet_id != null && message.hasOwnProperty("packet_id")) { - let error = $root.ibc.core.channel.v1.PacketId.verify(message.packet_id); - if (error) - return "packet_id." + error; - } + if (message.app_acknowledgement != null && message.hasOwnProperty("app_acknowledgement")) + if (!(message.app_acknowledgement && typeof message.app_acknowledgement.length === "number" || $util.isString(message.app_acknowledgement))) + return "app_acknowledgement: buffer expected"; + if (message.forward_relayer_address != null && message.hasOwnProperty("forward_relayer_address")) + if (!$util.isString(message.forward_relayer_address)) + return "forward_relayer_address: string expected"; + if (message.underlying_app_success != null && message.hasOwnProperty("underlying_app_success")) + if (typeof message.underlying_app_success !== "boolean") + return "underlying_app_success: boolean expected"; return null; }; /** - * Creates a QueryTotalAckFeesRequest message from a plain object. Also converts values to their respective internal types. + * Creates an IncentivizedAcknowledgement message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.applications.fee.v1.QueryTotalAckFeesRequest + * @memberof ibc.applications.fee.v1.IncentivizedAcknowledgement * @static * @param {Object.} object Plain object - * @returns {ibc.applications.fee.v1.QueryTotalAckFeesRequest} QueryTotalAckFeesRequest + * @returns {ibc.applications.fee.v1.IncentivizedAcknowledgement} IncentivizedAcknowledgement */ - QueryTotalAckFeesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.fee.v1.QueryTotalAckFeesRequest) + IncentivizedAcknowledgement.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.fee.v1.IncentivizedAcknowledgement) return object; - let message = new $root.ibc.applications.fee.v1.QueryTotalAckFeesRequest(); - if (object.packet_id != null) { - if (typeof object.packet_id !== "object") - throw TypeError(".ibc.applications.fee.v1.QueryTotalAckFeesRequest.packet_id: object expected"); - message.packet_id = $root.ibc.core.channel.v1.PacketId.fromObject(object.packet_id); - } + let message = new $root.ibc.applications.fee.v1.IncentivizedAcknowledgement(); + if (object.app_acknowledgement != null) + if (typeof object.app_acknowledgement === "string") + $util.base64.decode(object.app_acknowledgement, message.app_acknowledgement = $util.newBuffer($util.base64.length(object.app_acknowledgement)), 0); + else if (object.app_acknowledgement.length) + message.app_acknowledgement = object.app_acknowledgement; + if (object.forward_relayer_address != null) + message.forward_relayer_address = String(object.forward_relayer_address); + if (object.underlying_app_success != null) + message.underlying_app_success = Boolean(object.underlying_app_success); return message; }; /** - * Creates a plain object from a QueryTotalAckFeesRequest message. Also converts values to other types if specified. + * Creates a plain object from an IncentivizedAcknowledgement message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.applications.fee.v1.QueryTotalAckFeesRequest + * @memberof ibc.applications.fee.v1.IncentivizedAcknowledgement * @static - * @param {ibc.applications.fee.v1.QueryTotalAckFeesRequest} message QueryTotalAckFeesRequest + * @param {ibc.applications.fee.v1.IncentivizedAcknowledgement} message IncentivizedAcknowledgement * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryTotalAckFeesRequest.toObject = function toObject(message, options) { + IncentivizedAcknowledgement.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) - object.packet_id = null; - if (message.packet_id != null && message.hasOwnProperty("packet_id")) - object.packet_id = $root.ibc.core.channel.v1.PacketId.toObject(message.packet_id, options); + if (options.defaults) { + if (options.bytes === String) + object.app_acknowledgement = ""; + else { + object.app_acknowledgement = []; + if (options.bytes !== Array) + object.app_acknowledgement = $util.newBuffer(object.app_acknowledgement); + } + object.forward_relayer_address = ""; + object.underlying_app_success = false; + } + if (message.app_acknowledgement != null && message.hasOwnProperty("app_acknowledgement")) + object.app_acknowledgement = options.bytes === String ? $util.base64.encode(message.app_acknowledgement, 0, message.app_acknowledgement.length) : options.bytes === Array ? Array.prototype.slice.call(message.app_acknowledgement) : message.app_acknowledgement; + if (message.forward_relayer_address != null && message.hasOwnProperty("forward_relayer_address")) + object.forward_relayer_address = message.forward_relayer_address; + if (message.underlying_app_success != null && message.hasOwnProperty("underlying_app_success")) + object.underlying_app_success = message.underlying_app_success; return object; }; /** - * Converts this QueryTotalAckFeesRequest to JSON. + * Converts this IncentivizedAcknowledgement to JSON. * @function toJSON - * @memberof ibc.applications.fee.v1.QueryTotalAckFeesRequest + * @memberof ibc.applications.fee.v1.IncentivizedAcknowledgement * @instance * @returns {Object.} JSON object */ - QueryTotalAckFeesRequest.prototype.toJSON = function toJSON() { + IncentivizedAcknowledgement.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryTotalAckFeesRequest; + return IncentivizedAcknowledgement; })(); - v1.QueryTotalAckFeesResponse = (function() { + v1.Query = (function() { /** - * Properties of a QueryTotalAckFeesResponse. + * Constructs a new Query service. * @memberof ibc.applications.fee.v1 - * @interface IQueryTotalAckFeesResponse - * @property {Array.|null} [ack_fees] QueryTotalAckFeesResponse ack_fees + * @classdesc Represents a Query + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited */ + function Query(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (Query.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Query; /** - * Constructs a new QueryTotalAckFeesResponse. - * @memberof ibc.applications.fee.v1 - * @classdesc Represents a QueryTotalAckFeesResponse. - * @implements IQueryTotalAckFeesResponse - * @constructor - * @param {ibc.applications.fee.v1.IQueryTotalAckFeesResponse=} [properties] Properties to set + * Callback as used by {@link ibc.applications.fee.v1.Query#incentivizedPackets}. + * @memberof ibc.applications.fee.v1.Query + * @typedef IncentivizedPacketsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.applications.fee.v1.QueryIncentivizedPacketsResponse} [response] QueryIncentivizedPacketsResponse */ - function QueryTotalAckFeesResponse(properties) { - this.ack_fees = []; - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } /** - * QueryTotalAckFeesResponse ack_fees. - * @member {Array.} ack_fees - * @memberof ibc.applications.fee.v1.QueryTotalAckFeesResponse + * Calls IncentivizedPackets. + * @function incentivizedPackets + * @memberof ibc.applications.fee.v1.Query * @instance + * @param {ibc.applications.fee.v1.IQueryIncentivizedPacketsRequest} request QueryIncentivizedPacketsRequest message or plain object + * @param {ibc.applications.fee.v1.Query.IncentivizedPacketsCallback} callback Node-style callback called with the error, if any, and QueryIncentivizedPacketsResponse + * @returns {undefined} + * @variation 1 */ - QueryTotalAckFeesResponse.prototype.ack_fees = $util.emptyArray; + Object.defineProperty(Query.prototype.incentivizedPackets = function incentivizedPackets(request, callback) { + return this.rpcCall(incentivizedPackets, $root.ibc.applications.fee.v1.QueryIncentivizedPacketsRequest, $root.ibc.applications.fee.v1.QueryIncentivizedPacketsResponse, request, callback); + }, "name", { value: "IncentivizedPackets" }); /** - * Encodes the specified QueryTotalAckFeesResponse message. Does not implicitly {@link ibc.applications.fee.v1.QueryTotalAckFeesResponse.verify|verify} messages. - * @function encode - * @memberof ibc.applications.fee.v1.QueryTotalAckFeesResponse - * @static - * @param {ibc.applications.fee.v1.IQueryTotalAckFeesResponse} message QueryTotalAckFeesResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls IncentivizedPackets. + * @function incentivizedPackets + * @memberof ibc.applications.fee.v1.Query + * @instance + * @param {ibc.applications.fee.v1.IQueryIncentivizedPacketsRequest} request QueryIncentivizedPacketsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link ibc.applications.fee.v1.Query#incentivizedPacket}. + * @memberof ibc.applications.fee.v1.Query + * @typedef IncentivizedPacketCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.applications.fee.v1.QueryIncentivizedPacketResponse} [response] QueryIncentivizedPacketResponse + */ + + /** + * Calls IncentivizedPacket. + * @function incentivizedPacket + * @memberof ibc.applications.fee.v1.Query + * @instance + * @param {ibc.applications.fee.v1.IQueryIncentivizedPacketRequest} request QueryIncentivizedPacketRequest message or plain object + * @param {ibc.applications.fee.v1.Query.IncentivizedPacketCallback} callback Node-style callback called with the error, if any, and QueryIncentivizedPacketResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Query.prototype.incentivizedPacket = function incentivizedPacket(request, callback) { + return this.rpcCall(incentivizedPacket, $root.ibc.applications.fee.v1.QueryIncentivizedPacketRequest, $root.ibc.applications.fee.v1.QueryIncentivizedPacketResponse, request, callback); + }, "name", { value: "IncentivizedPacket" }); + + /** + * Calls IncentivizedPacket. + * @function incentivizedPacket + * @memberof ibc.applications.fee.v1.Query + * @instance + * @param {ibc.applications.fee.v1.IQueryIncentivizedPacketRequest} request QueryIncentivizedPacketRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link ibc.applications.fee.v1.Query#incentivizedPacketsForChannel}. + * @memberof ibc.applications.fee.v1.Query + * @typedef IncentivizedPacketsForChannelCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelResponse} [response] QueryIncentivizedPacketsForChannelResponse + */ + + /** + * Calls IncentivizedPacketsForChannel. + * @function incentivizedPacketsForChannel + * @memberof ibc.applications.fee.v1.Query + * @instance + * @param {ibc.applications.fee.v1.IQueryIncentivizedPacketsForChannelRequest} request QueryIncentivizedPacketsForChannelRequest message or plain object + * @param {ibc.applications.fee.v1.Query.IncentivizedPacketsForChannelCallback} callback Node-style callback called with the error, if any, and QueryIncentivizedPacketsForChannelResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Query.prototype.incentivizedPacketsForChannel = function incentivizedPacketsForChannel(request, callback) { + return this.rpcCall(incentivizedPacketsForChannel, $root.ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest, $root.ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelResponse, request, callback); + }, "name", { value: "IncentivizedPacketsForChannel" }); + + /** + * Calls IncentivizedPacketsForChannel. + * @function incentivizedPacketsForChannel + * @memberof ibc.applications.fee.v1.Query + * @instance + * @param {ibc.applications.fee.v1.IQueryIncentivizedPacketsForChannelRequest} request QueryIncentivizedPacketsForChannelRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link ibc.applications.fee.v1.Query#totalRecvFees}. + * @memberof ibc.applications.fee.v1.Query + * @typedef TotalRecvFeesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.applications.fee.v1.QueryTotalRecvFeesResponse} [response] QueryTotalRecvFeesResponse + */ + + /** + * Calls TotalRecvFees. + * @function totalRecvFees + * @memberof ibc.applications.fee.v1.Query + * @instance + * @param {ibc.applications.fee.v1.IQueryTotalRecvFeesRequest} request QueryTotalRecvFeesRequest message or plain object + * @param {ibc.applications.fee.v1.Query.TotalRecvFeesCallback} callback Node-style callback called with the error, if any, and QueryTotalRecvFeesResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Query.prototype.totalRecvFees = function totalRecvFees(request, callback) { + return this.rpcCall(totalRecvFees, $root.ibc.applications.fee.v1.QueryTotalRecvFeesRequest, $root.ibc.applications.fee.v1.QueryTotalRecvFeesResponse, request, callback); + }, "name", { value: "TotalRecvFees" }); + + /** + * Calls TotalRecvFees. + * @function totalRecvFees + * @memberof ibc.applications.fee.v1.Query + * @instance + * @param {ibc.applications.fee.v1.IQueryTotalRecvFeesRequest} request QueryTotalRecvFeesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link ibc.applications.fee.v1.Query#totalAckFees}. + * @memberof ibc.applications.fee.v1.Query + * @typedef TotalAckFeesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.applications.fee.v1.QueryTotalAckFeesResponse} [response] QueryTotalAckFeesResponse + */ + + /** + * Calls TotalAckFees. + * @function totalAckFees + * @memberof ibc.applications.fee.v1.Query + * @instance + * @param {ibc.applications.fee.v1.IQueryTotalAckFeesRequest} request QueryTotalAckFeesRequest message or plain object + * @param {ibc.applications.fee.v1.Query.TotalAckFeesCallback} callback Node-style callback called with the error, if any, and QueryTotalAckFeesResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Query.prototype.totalAckFees = function totalAckFees(request, callback) { + return this.rpcCall(totalAckFees, $root.ibc.applications.fee.v1.QueryTotalAckFeesRequest, $root.ibc.applications.fee.v1.QueryTotalAckFeesResponse, request, callback); + }, "name", { value: "TotalAckFees" }); + + /** + * Calls TotalAckFees. + * @function totalAckFees + * @memberof ibc.applications.fee.v1.Query + * @instance + * @param {ibc.applications.fee.v1.IQueryTotalAckFeesRequest} request QueryTotalAckFeesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link ibc.applications.fee.v1.Query#totalTimeoutFees}. + * @memberof ibc.applications.fee.v1.Query + * @typedef TotalTimeoutFeesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.applications.fee.v1.QueryTotalTimeoutFeesResponse} [response] QueryTotalTimeoutFeesResponse + */ + + /** + * Calls TotalTimeoutFees. + * @function totalTimeoutFees + * @memberof ibc.applications.fee.v1.Query + * @instance + * @param {ibc.applications.fee.v1.IQueryTotalTimeoutFeesRequest} request QueryTotalTimeoutFeesRequest message or plain object + * @param {ibc.applications.fee.v1.Query.TotalTimeoutFeesCallback} callback Node-style callback called with the error, if any, and QueryTotalTimeoutFeesResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Query.prototype.totalTimeoutFees = function totalTimeoutFees(request, callback) { + return this.rpcCall(totalTimeoutFees, $root.ibc.applications.fee.v1.QueryTotalTimeoutFeesRequest, $root.ibc.applications.fee.v1.QueryTotalTimeoutFeesResponse, request, callback); + }, "name", { value: "TotalTimeoutFees" }); + + /** + * Calls TotalTimeoutFees. + * @function totalTimeoutFees + * @memberof ibc.applications.fee.v1.Query + * @instance + * @param {ibc.applications.fee.v1.IQueryTotalTimeoutFeesRequest} request QueryTotalTimeoutFeesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link ibc.applications.fee.v1.Query#payee}. + * @memberof ibc.applications.fee.v1.Query + * @typedef PayeeCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.applications.fee.v1.QueryPayeeResponse} [response] QueryPayeeResponse + */ + + /** + * Calls Payee. + * @function payee + * @memberof ibc.applications.fee.v1.Query + * @instance + * @param {ibc.applications.fee.v1.IQueryPayeeRequest} request QueryPayeeRequest message or plain object + * @param {ibc.applications.fee.v1.Query.PayeeCallback} callback Node-style callback called with the error, if any, and QueryPayeeResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Query.prototype.payee = function payee(request, callback) { + return this.rpcCall(payee, $root.ibc.applications.fee.v1.QueryPayeeRequest, $root.ibc.applications.fee.v1.QueryPayeeResponse, request, callback); + }, "name", { value: "Payee" }); + + /** + * Calls Payee. + * @function payee + * @memberof ibc.applications.fee.v1.Query + * @instance + * @param {ibc.applications.fee.v1.IQueryPayeeRequest} request QueryPayeeRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link ibc.applications.fee.v1.Query#counterpartyPayee}. + * @memberof ibc.applications.fee.v1.Query + * @typedef CounterpartyPayeeCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.applications.fee.v1.QueryCounterpartyPayeeResponse} [response] QueryCounterpartyPayeeResponse + */ + + /** + * Calls CounterpartyPayee. + * @function counterpartyPayee + * @memberof ibc.applications.fee.v1.Query + * @instance + * @param {ibc.applications.fee.v1.IQueryCounterpartyPayeeRequest} request QueryCounterpartyPayeeRequest message or plain object + * @param {ibc.applications.fee.v1.Query.CounterpartyPayeeCallback} callback Node-style callback called with the error, if any, and QueryCounterpartyPayeeResponse + * @returns {undefined} + * @variation 1 */ - QueryTotalAckFeesResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.ack_fees != null && message.ack_fees.length) - for (let i = 0; i < message.ack_fees.length; ++i) - $root.cosmos.base.v1beta1.Coin.encode(message.ack_fees[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; + Object.defineProperty(Query.prototype.counterpartyPayee = function counterpartyPayee(request, callback) { + return this.rpcCall(counterpartyPayee, $root.ibc.applications.fee.v1.QueryCounterpartyPayeeRequest, $root.ibc.applications.fee.v1.QueryCounterpartyPayeeResponse, request, callback); + }, "name", { value: "CounterpartyPayee" }); /** - * Encodes the specified QueryTotalAckFeesResponse message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.QueryTotalAckFeesResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof ibc.applications.fee.v1.QueryTotalAckFeesResponse - * @static - * @param {ibc.applications.fee.v1.IQueryTotalAckFeesResponse} message QueryTotalAckFeesResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls CounterpartyPayee. + * @function counterpartyPayee + * @memberof ibc.applications.fee.v1.Query + * @instance + * @param {ibc.applications.fee.v1.IQueryCounterpartyPayeeRequest} request QueryCounterpartyPayeeRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - QueryTotalAckFeesResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; /** - * Decodes a QueryTotalAckFeesResponse message from the specified reader or buffer. - * @function decode - * @memberof ibc.applications.fee.v1.QueryTotalAckFeesResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.fee.v1.QueryTotalAckFeesResponse} QueryTotalAckFeesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link ibc.applications.fee.v1.Query#feeEnabledChannels}. + * @memberof ibc.applications.fee.v1.Query + * @typedef FeeEnabledChannelsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.applications.fee.v1.QueryFeeEnabledChannelsResponse} [response] QueryFeeEnabledChannelsResponse */ - QueryTotalAckFeesResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.QueryTotalAckFeesResponse(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.ack_fees && message.ack_fees.length)) - message.ack_fees = []; - message.ack_fees.push($root.cosmos.base.v1beta1.Coin.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; /** - * Decodes a QueryTotalAckFeesResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ibc.applications.fee.v1.QueryTotalAckFeesResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.fee.v1.QueryTotalAckFeesResponse} QueryTotalAckFeesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls FeeEnabledChannels. + * @function feeEnabledChannels + * @memberof ibc.applications.fee.v1.Query + * @instance + * @param {ibc.applications.fee.v1.IQueryFeeEnabledChannelsRequest} request QueryFeeEnabledChannelsRequest message or plain object + * @param {ibc.applications.fee.v1.Query.FeeEnabledChannelsCallback} callback Node-style callback called with the error, if any, and QueryFeeEnabledChannelsResponse + * @returns {undefined} + * @variation 1 */ - QueryTotalAckFeesResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + Object.defineProperty(Query.prototype.feeEnabledChannels = function feeEnabledChannels(request, callback) { + return this.rpcCall(feeEnabledChannels, $root.ibc.applications.fee.v1.QueryFeeEnabledChannelsRequest, $root.ibc.applications.fee.v1.QueryFeeEnabledChannelsResponse, request, callback); + }, "name", { value: "FeeEnabledChannels" }); /** - * Verifies a QueryTotalAckFeesResponse message. - * @function verify - * @memberof ibc.applications.fee.v1.QueryTotalAckFeesResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Calls FeeEnabledChannels. + * @function feeEnabledChannels + * @memberof ibc.applications.fee.v1.Query + * @instance + * @param {ibc.applications.fee.v1.IQueryFeeEnabledChannelsRequest} request QueryFeeEnabledChannelsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - QueryTotalAckFeesResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.ack_fees != null && message.hasOwnProperty("ack_fees")) { - if (!Array.isArray(message.ack_fees)) - return "ack_fees: array expected"; - for (let i = 0; i < message.ack_fees.length; ++i) { - let error = $root.cosmos.base.v1beta1.Coin.verify(message.ack_fees[i]); - if (error) - return "ack_fees." + error; - } - } - return null; - }; /** - * Creates a QueryTotalAckFeesResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof ibc.applications.fee.v1.QueryTotalAckFeesResponse - * @static - * @param {Object.} object Plain object - * @returns {ibc.applications.fee.v1.QueryTotalAckFeesResponse} QueryTotalAckFeesResponse + * Callback as used by {@link ibc.applications.fee.v1.Query#feeEnabledChannel}. + * @memberof ibc.applications.fee.v1.Query + * @typedef FeeEnabledChannelCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.applications.fee.v1.QueryFeeEnabledChannelResponse} [response] QueryFeeEnabledChannelResponse */ - QueryTotalAckFeesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.fee.v1.QueryTotalAckFeesResponse) - return object; - let message = new $root.ibc.applications.fee.v1.QueryTotalAckFeesResponse(); - if (object.ack_fees) { - if (!Array.isArray(object.ack_fees)) - throw TypeError(".ibc.applications.fee.v1.QueryTotalAckFeesResponse.ack_fees: array expected"); - message.ack_fees = []; - for (let i = 0; i < object.ack_fees.length; ++i) { - if (typeof object.ack_fees[i] !== "object") - throw TypeError(".ibc.applications.fee.v1.QueryTotalAckFeesResponse.ack_fees: object expected"); - message.ack_fees[i] = $root.cosmos.base.v1beta1.Coin.fromObject(object.ack_fees[i]); - } - } - return message; - }; /** - * Creates a plain object from a QueryTotalAckFeesResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof ibc.applications.fee.v1.QueryTotalAckFeesResponse - * @static - * @param {ibc.applications.fee.v1.QueryTotalAckFeesResponse} message QueryTotalAckFeesResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Calls FeeEnabledChannel. + * @function feeEnabledChannel + * @memberof ibc.applications.fee.v1.Query + * @instance + * @param {ibc.applications.fee.v1.IQueryFeeEnabledChannelRequest} request QueryFeeEnabledChannelRequest message or plain object + * @param {ibc.applications.fee.v1.Query.FeeEnabledChannelCallback} callback Node-style callback called with the error, if any, and QueryFeeEnabledChannelResponse + * @returns {undefined} + * @variation 1 */ - QueryTotalAckFeesResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.arrays || options.defaults) - object.ack_fees = []; - if (message.ack_fees && message.ack_fees.length) { - object.ack_fees = []; - for (let j = 0; j < message.ack_fees.length; ++j) - object.ack_fees[j] = $root.cosmos.base.v1beta1.Coin.toObject(message.ack_fees[j], options); - } - return object; - }; + Object.defineProperty(Query.prototype.feeEnabledChannel = function feeEnabledChannel(request, callback) { + return this.rpcCall(feeEnabledChannel, $root.ibc.applications.fee.v1.QueryFeeEnabledChannelRequest, $root.ibc.applications.fee.v1.QueryFeeEnabledChannelResponse, request, callback); + }, "name", { value: "FeeEnabledChannel" }); /** - * Converts this QueryTotalAckFeesResponse to JSON. - * @function toJSON - * @memberof ibc.applications.fee.v1.QueryTotalAckFeesResponse + * Calls FeeEnabledChannel. + * @function feeEnabledChannel + * @memberof ibc.applications.fee.v1.Query * @instance - * @returns {Object.} JSON object + * @param {ibc.applications.fee.v1.IQueryFeeEnabledChannelRequest} request QueryFeeEnabledChannelRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - QueryTotalAckFeesResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - return QueryTotalAckFeesResponse; + return Query; })(); - v1.QueryTotalTimeoutFeesRequest = (function() { + v1.QueryIncentivizedPacketsRequest = (function() { /** - * Properties of a QueryTotalTimeoutFeesRequest. + * Properties of a QueryIncentivizedPacketsRequest. * @memberof ibc.applications.fee.v1 - * @interface IQueryTotalTimeoutFeesRequest - * @property {ibc.core.channel.v1.IPacketId|null} [packet_id] QueryTotalTimeoutFeesRequest packet_id + * @interface IQueryIncentivizedPacketsRequest + * @property {cosmos.base.query.v1beta1.IPageRequest|null} [pagination] QueryIncentivizedPacketsRequest pagination + * @property {Long|null} [query_height] QueryIncentivizedPacketsRequest query_height */ /** - * Constructs a new QueryTotalTimeoutFeesRequest. + * Constructs a new QueryIncentivizedPacketsRequest. * @memberof ibc.applications.fee.v1 - * @classdesc Represents a QueryTotalTimeoutFeesRequest. - * @implements IQueryTotalTimeoutFeesRequest + * @classdesc Represents a QueryIncentivizedPacketsRequest. + * @implements IQueryIncentivizedPacketsRequest * @constructor - * @param {ibc.applications.fee.v1.IQueryTotalTimeoutFeesRequest=} [properties] Properties to set + * @param {ibc.applications.fee.v1.IQueryIncentivizedPacketsRequest=} [properties] Properties to set */ - function QueryTotalTimeoutFeesRequest(properties) { + function QueryIncentivizedPacketsRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -23503,63 +30036,76 @@ export const ibc = $root.ibc = (() => { } /** - * QueryTotalTimeoutFeesRequest packet_id. - * @member {ibc.core.channel.v1.IPacketId|null|undefined} packet_id - * @memberof ibc.applications.fee.v1.QueryTotalTimeoutFeesRequest + * QueryIncentivizedPacketsRequest pagination. + * @member {cosmos.base.query.v1beta1.IPageRequest|null|undefined} pagination + * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsRequest * @instance */ - QueryTotalTimeoutFeesRequest.prototype.packet_id = null; + QueryIncentivizedPacketsRequest.prototype.pagination = null; /** - * Encodes the specified QueryTotalTimeoutFeesRequest message. Does not implicitly {@link ibc.applications.fee.v1.QueryTotalTimeoutFeesRequest.verify|verify} messages. + * QueryIncentivizedPacketsRequest query_height. + * @member {Long} query_height + * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsRequest + * @instance + */ + QueryIncentivizedPacketsRequest.prototype.query_height = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + + /** + * Encodes the specified QueryIncentivizedPacketsRequest message. Does not implicitly {@link ibc.applications.fee.v1.QueryIncentivizedPacketsRequest.verify|verify} messages. * @function encode - * @memberof ibc.applications.fee.v1.QueryTotalTimeoutFeesRequest + * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsRequest * @static - * @param {ibc.applications.fee.v1.IQueryTotalTimeoutFeesRequest} message QueryTotalTimeoutFeesRequest message or plain object to encode + * @param {ibc.applications.fee.v1.IQueryIncentivizedPacketsRequest} message QueryIncentivizedPacketsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryTotalTimeoutFeesRequest.encode = function encode(message, writer) { + QueryIncentivizedPacketsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.packet_id != null && Object.hasOwnProperty.call(message, "packet_id")) - $root.ibc.core.channel.v1.PacketId.encode(message.packet_id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.pagination != null && Object.hasOwnProperty.call(message, "pagination")) + $root.cosmos.base.query.v1beta1.PageRequest.encode(message.pagination, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.query_height != null && Object.hasOwnProperty.call(message, "query_height")) + writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.query_height); return writer; }; /** - * Encodes the specified QueryTotalTimeoutFeesRequest message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.QueryTotalTimeoutFeesRequest.verify|verify} messages. + * Encodes the specified QueryIncentivizedPacketsRequest message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.QueryIncentivizedPacketsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.applications.fee.v1.QueryTotalTimeoutFeesRequest + * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsRequest * @static - * @param {ibc.applications.fee.v1.IQueryTotalTimeoutFeesRequest} message QueryTotalTimeoutFeesRequest message or plain object to encode + * @param {ibc.applications.fee.v1.IQueryIncentivizedPacketsRequest} message QueryIncentivizedPacketsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryTotalTimeoutFeesRequest.encodeDelimited = function encodeDelimited(message, writer) { + QueryIncentivizedPacketsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryTotalTimeoutFeesRequest message from the specified reader or buffer. + * Decodes a QueryIncentivizedPacketsRequest message from the specified reader or buffer. * @function decode - * @memberof ibc.applications.fee.v1.QueryTotalTimeoutFeesRequest + * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.fee.v1.QueryTotalTimeoutFeesRequest} QueryTotalTimeoutFeesRequest + * @returns {ibc.applications.fee.v1.QueryIncentivizedPacketsRequest} QueryIncentivizedPacketsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryTotalTimeoutFeesRequest.decode = function decode(reader, length) { + QueryIncentivizedPacketsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.QueryTotalTimeoutFeesRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.QueryIncentivizedPacketsRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.packet_id = $root.ibc.core.channel.v1.PacketId.decode(reader, reader.uint32()); + message.pagination = $root.cosmos.base.query.v1beta1.PageRequest.decode(reader, reader.uint32()); + break; + case 2: + message.query_height = reader.uint64(); break; default: reader.skipType(tag & 7); @@ -23570,113 +30116,136 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a QueryTotalTimeoutFeesRequest message from the specified reader or buffer, length delimited. + * Decodes a QueryIncentivizedPacketsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.applications.fee.v1.QueryTotalTimeoutFeesRequest + * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.fee.v1.QueryTotalTimeoutFeesRequest} QueryTotalTimeoutFeesRequest + * @returns {ibc.applications.fee.v1.QueryIncentivizedPacketsRequest} QueryIncentivizedPacketsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryTotalTimeoutFeesRequest.decodeDelimited = function decodeDelimited(reader) { + QueryIncentivizedPacketsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryTotalTimeoutFeesRequest message. + * Verifies a QueryIncentivizedPacketsRequest message. * @function verify - * @memberof ibc.applications.fee.v1.QueryTotalTimeoutFeesRequest + * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryTotalTimeoutFeesRequest.verify = function verify(message) { + QueryIncentivizedPacketsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.packet_id != null && message.hasOwnProperty("packet_id")) { - let error = $root.ibc.core.channel.v1.PacketId.verify(message.packet_id); + if (message.pagination != null && message.hasOwnProperty("pagination")) { + let error = $root.cosmos.base.query.v1beta1.PageRequest.verify(message.pagination); if (error) - return "packet_id." + error; + return "pagination." + error; } + if (message.query_height != null && message.hasOwnProperty("query_height")) + if (!$util.isInteger(message.query_height) && !(message.query_height && $util.isInteger(message.query_height.low) && $util.isInteger(message.query_height.high))) + return "query_height: integer|Long expected"; return null; }; /** - * Creates a QueryTotalTimeoutFeesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a QueryIncentivizedPacketsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.applications.fee.v1.QueryTotalTimeoutFeesRequest + * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsRequest * @static * @param {Object.} object Plain object - * @returns {ibc.applications.fee.v1.QueryTotalTimeoutFeesRequest} QueryTotalTimeoutFeesRequest + * @returns {ibc.applications.fee.v1.QueryIncentivizedPacketsRequest} QueryIncentivizedPacketsRequest */ - QueryTotalTimeoutFeesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.fee.v1.QueryTotalTimeoutFeesRequest) + QueryIncentivizedPacketsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.fee.v1.QueryIncentivizedPacketsRequest) return object; - let message = new $root.ibc.applications.fee.v1.QueryTotalTimeoutFeesRequest(); - if (object.packet_id != null) { - if (typeof object.packet_id !== "object") - throw TypeError(".ibc.applications.fee.v1.QueryTotalTimeoutFeesRequest.packet_id: object expected"); - message.packet_id = $root.ibc.core.channel.v1.PacketId.fromObject(object.packet_id); + let message = new $root.ibc.applications.fee.v1.QueryIncentivizedPacketsRequest(); + if (object.pagination != null) { + if (typeof object.pagination !== "object") + throw TypeError(".ibc.applications.fee.v1.QueryIncentivizedPacketsRequest.pagination: object expected"); + message.pagination = $root.cosmos.base.query.v1beta1.PageRequest.fromObject(object.pagination); } + if (object.query_height != null) + if ($util.Long) + (message.query_height = $util.Long.fromValue(object.query_height)).unsigned = true; + else if (typeof object.query_height === "string") + message.query_height = parseInt(object.query_height, 10); + else if (typeof object.query_height === "number") + message.query_height = object.query_height; + else if (typeof object.query_height === "object") + message.query_height = new $util.LongBits(object.query_height.low >>> 0, object.query_height.high >>> 0).toNumber(true); return message; }; /** - * Creates a plain object from a QueryTotalTimeoutFeesRequest message. Also converts values to other types if specified. + * Creates a plain object from a QueryIncentivizedPacketsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.applications.fee.v1.QueryTotalTimeoutFeesRequest + * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsRequest * @static - * @param {ibc.applications.fee.v1.QueryTotalTimeoutFeesRequest} message QueryTotalTimeoutFeesRequest + * @param {ibc.applications.fee.v1.QueryIncentivizedPacketsRequest} message QueryIncentivizedPacketsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryTotalTimeoutFeesRequest.toObject = function toObject(message, options) { + QueryIncentivizedPacketsRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) - object.packet_id = null; - if (message.packet_id != null && message.hasOwnProperty("packet_id")) - object.packet_id = $root.ibc.core.channel.v1.PacketId.toObject(message.packet_id, options); + if (options.defaults) { + object.pagination = null; + if ($util.Long) { + let long = new $util.Long(0, 0, true); + object.query_height = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.query_height = options.longs === String ? "0" : 0; + } + if (message.pagination != null && message.hasOwnProperty("pagination")) + object.pagination = $root.cosmos.base.query.v1beta1.PageRequest.toObject(message.pagination, options); + if (message.query_height != null && message.hasOwnProperty("query_height")) + if (typeof message.query_height === "number") + object.query_height = options.longs === String ? String(message.query_height) : message.query_height; + else + object.query_height = options.longs === String ? $util.Long.prototype.toString.call(message.query_height) : options.longs === Number ? new $util.LongBits(message.query_height.low >>> 0, message.query_height.high >>> 0).toNumber(true) : message.query_height; return object; }; /** - * Converts this QueryTotalTimeoutFeesRequest to JSON. + * Converts this QueryIncentivizedPacketsRequest to JSON. * @function toJSON - * @memberof ibc.applications.fee.v1.QueryTotalTimeoutFeesRequest + * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsRequest * @instance * @returns {Object.} JSON object */ - QueryTotalTimeoutFeesRequest.prototype.toJSON = function toJSON() { + QueryIncentivizedPacketsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryTotalTimeoutFeesRequest; + return QueryIncentivizedPacketsRequest; })(); - v1.QueryTotalTimeoutFeesResponse = (function() { + v1.QueryIncentivizedPacketsResponse = (function() { /** - * Properties of a QueryTotalTimeoutFeesResponse. + * Properties of a QueryIncentivizedPacketsResponse. * @memberof ibc.applications.fee.v1 - * @interface IQueryTotalTimeoutFeesResponse - * @property {Array.|null} [timeout_fees] QueryTotalTimeoutFeesResponse timeout_fees + * @interface IQueryIncentivizedPacketsResponse + * @property {Array.|null} [incentivized_packets] QueryIncentivizedPacketsResponse incentivized_packets */ /** - * Constructs a new QueryTotalTimeoutFeesResponse. + * Constructs a new QueryIncentivizedPacketsResponse. * @memberof ibc.applications.fee.v1 - * @classdesc Represents a QueryTotalTimeoutFeesResponse. - * @implements IQueryTotalTimeoutFeesResponse + * @classdesc Represents a QueryIncentivizedPacketsResponse. + * @implements IQueryIncentivizedPacketsResponse * @constructor - * @param {ibc.applications.fee.v1.IQueryTotalTimeoutFeesResponse=} [properties] Properties to set + * @param {ibc.applications.fee.v1.IQueryIncentivizedPacketsResponse=} [properties] Properties to set */ - function QueryTotalTimeoutFeesResponse(properties) { - this.timeout_fees = []; + function QueryIncentivizedPacketsResponse(properties) { + this.incentivized_packets = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -23684,66 +30253,66 @@ export const ibc = $root.ibc = (() => { } /** - * QueryTotalTimeoutFeesResponse timeout_fees. - * @member {Array.} timeout_fees - * @memberof ibc.applications.fee.v1.QueryTotalTimeoutFeesResponse + * QueryIncentivizedPacketsResponse incentivized_packets. + * @member {Array.} incentivized_packets + * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsResponse * @instance */ - QueryTotalTimeoutFeesResponse.prototype.timeout_fees = $util.emptyArray; + QueryIncentivizedPacketsResponse.prototype.incentivized_packets = $util.emptyArray; /** - * Encodes the specified QueryTotalTimeoutFeesResponse message. Does not implicitly {@link ibc.applications.fee.v1.QueryTotalTimeoutFeesResponse.verify|verify} messages. + * Encodes the specified QueryIncentivizedPacketsResponse message. Does not implicitly {@link ibc.applications.fee.v1.QueryIncentivizedPacketsResponse.verify|verify} messages. * @function encode - * @memberof ibc.applications.fee.v1.QueryTotalTimeoutFeesResponse + * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsResponse * @static - * @param {ibc.applications.fee.v1.IQueryTotalTimeoutFeesResponse} message QueryTotalTimeoutFeesResponse message or plain object to encode + * @param {ibc.applications.fee.v1.IQueryIncentivizedPacketsResponse} message QueryIncentivizedPacketsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryTotalTimeoutFeesResponse.encode = function encode(message, writer) { + QueryIncentivizedPacketsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.timeout_fees != null && message.timeout_fees.length) - for (let i = 0; i < message.timeout_fees.length; ++i) - $root.cosmos.base.v1beta1.Coin.encode(message.timeout_fees[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.incentivized_packets != null && message.incentivized_packets.length) + for (let i = 0; i < message.incentivized_packets.length; ++i) + $root.ibc.applications.fee.v1.IdentifiedPacketFees.encode(message.incentivized_packets[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified QueryTotalTimeoutFeesResponse message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.QueryTotalTimeoutFeesResponse.verify|verify} messages. + * Encodes the specified QueryIncentivizedPacketsResponse message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.QueryIncentivizedPacketsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.applications.fee.v1.QueryTotalTimeoutFeesResponse + * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsResponse * @static - * @param {ibc.applications.fee.v1.IQueryTotalTimeoutFeesResponse} message QueryTotalTimeoutFeesResponse message or plain object to encode + * @param {ibc.applications.fee.v1.IQueryIncentivizedPacketsResponse} message QueryIncentivizedPacketsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryTotalTimeoutFeesResponse.encodeDelimited = function encodeDelimited(message, writer) { + QueryIncentivizedPacketsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryTotalTimeoutFeesResponse message from the specified reader or buffer. + * Decodes a QueryIncentivizedPacketsResponse message from the specified reader or buffer. * @function decode - * @memberof ibc.applications.fee.v1.QueryTotalTimeoutFeesResponse + * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.fee.v1.QueryTotalTimeoutFeesResponse} QueryTotalTimeoutFeesResponse + * @returns {ibc.applications.fee.v1.QueryIncentivizedPacketsResponse} QueryIncentivizedPacketsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryTotalTimeoutFeesResponse.decode = function decode(reader, length) { + QueryIncentivizedPacketsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.QueryTotalTimeoutFeesResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.QueryIncentivizedPacketsResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.timeout_fees && message.timeout_fees.length)) - message.timeout_fees = []; - message.timeout_fees.push($root.cosmos.base.v1beta1.Coin.decode(reader, reader.uint32())); + if (!(message.incentivized_packets && message.incentivized_packets.length)) + message.incentivized_packets = []; + message.incentivized_packets.push($root.ibc.applications.fee.v1.IdentifiedPacketFees.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -23754,125 +30323,125 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a QueryTotalTimeoutFeesResponse message from the specified reader or buffer, length delimited. + * Decodes a QueryIncentivizedPacketsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.applications.fee.v1.QueryTotalTimeoutFeesResponse + * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.fee.v1.QueryTotalTimeoutFeesResponse} QueryTotalTimeoutFeesResponse + * @returns {ibc.applications.fee.v1.QueryIncentivizedPacketsResponse} QueryIncentivizedPacketsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryTotalTimeoutFeesResponse.decodeDelimited = function decodeDelimited(reader) { + QueryIncentivizedPacketsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryTotalTimeoutFeesResponse message. + * Verifies a QueryIncentivizedPacketsResponse message. * @function verify - * @memberof ibc.applications.fee.v1.QueryTotalTimeoutFeesResponse + * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryTotalTimeoutFeesResponse.verify = function verify(message) { + QueryIncentivizedPacketsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.timeout_fees != null && message.hasOwnProperty("timeout_fees")) { - if (!Array.isArray(message.timeout_fees)) - return "timeout_fees: array expected"; - for (let i = 0; i < message.timeout_fees.length; ++i) { - let error = $root.cosmos.base.v1beta1.Coin.verify(message.timeout_fees[i]); + if (message.incentivized_packets != null && message.hasOwnProperty("incentivized_packets")) { + if (!Array.isArray(message.incentivized_packets)) + return "incentivized_packets: array expected"; + for (let i = 0; i < message.incentivized_packets.length; ++i) { + let error = $root.ibc.applications.fee.v1.IdentifiedPacketFees.verify(message.incentivized_packets[i]); if (error) - return "timeout_fees." + error; + return "incentivized_packets." + error; } } return null; }; /** - * Creates a QueryTotalTimeoutFeesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a QueryIncentivizedPacketsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.applications.fee.v1.QueryTotalTimeoutFeesResponse + * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsResponse * @static * @param {Object.} object Plain object - * @returns {ibc.applications.fee.v1.QueryTotalTimeoutFeesResponse} QueryTotalTimeoutFeesResponse + * @returns {ibc.applications.fee.v1.QueryIncentivizedPacketsResponse} QueryIncentivizedPacketsResponse */ - QueryTotalTimeoutFeesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.fee.v1.QueryTotalTimeoutFeesResponse) + QueryIncentivizedPacketsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.fee.v1.QueryIncentivizedPacketsResponse) return object; - let message = new $root.ibc.applications.fee.v1.QueryTotalTimeoutFeesResponse(); - if (object.timeout_fees) { - if (!Array.isArray(object.timeout_fees)) - throw TypeError(".ibc.applications.fee.v1.QueryTotalTimeoutFeesResponse.timeout_fees: array expected"); - message.timeout_fees = []; - for (let i = 0; i < object.timeout_fees.length; ++i) { - if (typeof object.timeout_fees[i] !== "object") - throw TypeError(".ibc.applications.fee.v1.QueryTotalTimeoutFeesResponse.timeout_fees: object expected"); - message.timeout_fees[i] = $root.cosmos.base.v1beta1.Coin.fromObject(object.timeout_fees[i]); + let message = new $root.ibc.applications.fee.v1.QueryIncentivizedPacketsResponse(); + if (object.incentivized_packets) { + if (!Array.isArray(object.incentivized_packets)) + throw TypeError(".ibc.applications.fee.v1.QueryIncentivizedPacketsResponse.incentivized_packets: array expected"); + message.incentivized_packets = []; + for (let i = 0; i < object.incentivized_packets.length; ++i) { + if (typeof object.incentivized_packets[i] !== "object") + throw TypeError(".ibc.applications.fee.v1.QueryIncentivizedPacketsResponse.incentivized_packets: object expected"); + message.incentivized_packets[i] = $root.ibc.applications.fee.v1.IdentifiedPacketFees.fromObject(object.incentivized_packets[i]); } } return message; }; /** - * Creates a plain object from a QueryTotalTimeoutFeesResponse message. Also converts values to other types if specified. + * Creates a plain object from a QueryIncentivizedPacketsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.applications.fee.v1.QueryTotalTimeoutFeesResponse + * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsResponse * @static - * @param {ibc.applications.fee.v1.QueryTotalTimeoutFeesResponse} message QueryTotalTimeoutFeesResponse + * @param {ibc.applications.fee.v1.QueryIncentivizedPacketsResponse} message QueryIncentivizedPacketsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryTotalTimeoutFeesResponse.toObject = function toObject(message, options) { + QueryIncentivizedPacketsResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) - object.timeout_fees = []; - if (message.timeout_fees && message.timeout_fees.length) { - object.timeout_fees = []; - for (let j = 0; j < message.timeout_fees.length; ++j) - object.timeout_fees[j] = $root.cosmos.base.v1beta1.Coin.toObject(message.timeout_fees[j], options); + object.incentivized_packets = []; + if (message.incentivized_packets && message.incentivized_packets.length) { + object.incentivized_packets = []; + for (let j = 0; j < message.incentivized_packets.length; ++j) + object.incentivized_packets[j] = $root.ibc.applications.fee.v1.IdentifiedPacketFees.toObject(message.incentivized_packets[j], options); } return object; }; /** - * Converts this QueryTotalTimeoutFeesResponse to JSON. + * Converts this QueryIncentivizedPacketsResponse to JSON. * @function toJSON - * @memberof ibc.applications.fee.v1.QueryTotalTimeoutFeesResponse + * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsResponse * @instance * @returns {Object.} JSON object */ - QueryTotalTimeoutFeesResponse.prototype.toJSON = function toJSON() { + QueryIncentivizedPacketsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryTotalTimeoutFeesResponse; + return QueryIncentivizedPacketsResponse; })(); - v1.QueryPayeeRequest = (function() { + v1.QueryIncentivizedPacketRequest = (function() { /** - * Properties of a QueryPayeeRequest. + * Properties of a QueryIncentivizedPacketRequest. * @memberof ibc.applications.fee.v1 - * @interface IQueryPayeeRequest - * @property {string|null} [channel_id] QueryPayeeRequest channel_id - * @property {string|null} [relayer] QueryPayeeRequest relayer + * @interface IQueryIncentivizedPacketRequest + * @property {ibc.core.channel.v1.IPacketId|null} [packet_id] QueryIncentivizedPacketRequest packet_id + * @property {Long|null} [query_height] QueryIncentivizedPacketRequest query_height */ /** - * Constructs a new QueryPayeeRequest. + * Constructs a new QueryIncentivizedPacketRequest. * @memberof ibc.applications.fee.v1 - * @classdesc Represents a QueryPayeeRequest. - * @implements IQueryPayeeRequest + * @classdesc Represents a QueryIncentivizedPacketRequest. + * @implements IQueryIncentivizedPacketRequest * @constructor - * @param {ibc.applications.fee.v1.IQueryPayeeRequest=} [properties] Properties to set + * @param {ibc.applications.fee.v1.IQueryIncentivizedPacketRequest=} [properties] Properties to set */ - function QueryPayeeRequest(properties) { + function QueryIncentivizedPacketRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -23880,76 +30449,76 @@ export const ibc = $root.ibc = (() => { } /** - * QueryPayeeRequest channel_id. - * @member {string} channel_id - * @memberof ibc.applications.fee.v1.QueryPayeeRequest + * QueryIncentivizedPacketRequest packet_id. + * @member {ibc.core.channel.v1.IPacketId|null|undefined} packet_id + * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketRequest * @instance */ - QueryPayeeRequest.prototype.channel_id = ""; + QueryIncentivizedPacketRequest.prototype.packet_id = null; /** - * QueryPayeeRequest relayer. - * @member {string} relayer - * @memberof ibc.applications.fee.v1.QueryPayeeRequest + * QueryIncentivizedPacketRequest query_height. + * @member {Long} query_height + * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketRequest * @instance */ - QueryPayeeRequest.prototype.relayer = ""; + QueryIncentivizedPacketRequest.prototype.query_height = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** - * Encodes the specified QueryPayeeRequest message. Does not implicitly {@link ibc.applications.fee.v1.QueryPayeeRequest.verify|verify} messages. + * Encodes the specified QueryIncentivizedPacketRequest message. Does not implicitly {@link ibc.applications.fee.v1.QueryIncentivizedPacketRequest.verify|verify} messages. * @function encode - * @memberof ibc.applications.fee.v1.QueryPayeeRequest + * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketRequest * @static - * @param {ibc.applications.fee.v1.IQueryPayeeRequest} message QueryPayeeRequest message or plain object to encode + * @param {ibc.applications.fee.v1.IQueryIncentivizedPacketRequest} message QueryIncentivizedPacketRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryPayeeRequest.encode = function encode(message, writer) { + QueryIncentivizedPacketRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.channel_id != null && Object.hasOwnProperty.call(message, "channel_id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.channel_id); - if (message.relayer != null && Object.hasOwnProperty.call(message, "relayer")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.relayer); + if (message.packet_id != null && Object.hasOwnProperty.call(message, "packet_id")) + $root.ibc.core.channel.v1.PacketId.encode(message.packet_id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.query_height != null && Object.hasOwnProperty.call(message, "query_height")) + writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.query_height); return writer; }; /** - * Encodes the specified QueryPayeeRequest message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.QueryPayeeRequest.verify|verify} messages. + * Encodes the specified QueryIncentivizedPacketRequest message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.QueryIncentivizedPacketRequest.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.applications.fee.v1.QueryPayeeRequest + * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketRequest * @static - * @param {ibc.applications.fee.v1.IQueryPayeeRequest} message QueryPayeeRequest message or plain object to encode + * @param {ibc.applications.fee.v1.IQueryIncentivizedPacketRequest} message QueryIncentivizedPacketRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryPayeeRequest.encodeDelimited = function encodeDelimited(message, writer) { + QueryIncentivizedPacketRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryPayeeRequest message from the specified reader or buffer. + * Decodes a QueryIncentivizedPacketRequest message from the specified reader or buffer. * @function decode - * @memberof ibc.applications.fee.v1.QueryPayeeRequest + * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.fee.v1.QueryPayeeRequest} QueryPayeeRequest + * @returns {ibc.applications.fee.v1.QueryIncentivizedPacketRequest} QueryIncentivizedPacketRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryPayeeRequest.decode = function decode(reader, length) { + QueryIncentivizedPacketRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.QueryPayeeRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.QueryIncentivizedPacketRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.channel_id = reader.string(); + message.packet_id = $root.ibc.core.channel.v1.PacketId.decode(reader, reader.uint32()); break; case 2: - message.relayer = reader.string(); + message.query_height = reader.uint64(); break; default: reader.skipType(tag & 7); @@ -23960,116 +30529,135 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a QueryPayeeRequest message from the specified reader or buffer, length delimited. + * Decodes a QueryIncentivizedPacketRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.applications.fee.v1.QueryPayeeRequest + * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.fee.v1.QueryPayeeRequest} QueryPayeeRequest + * @returns {ibc.applications.fee.v1.QueryIncentivizedPacketRequest} QueryIncentivizedPacketRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryPayeeRequest.decodeDelimited = function decodeDelimited(reader) { + QueryIncentivizedPacketRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryPayeeRequest message. + * Verifies a QueryIncentivizedPacketRequest message. * @function verify - * @memberof ibc.applications.fee.v1.QueryPayeeRequest + * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryPayeeRequest.verify = function verify(message) { + QueryIncentivizedPacketRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.channel_id != null && message.hasOwnProperty("channel_id")) - if (!$util.isString(message.channel_id)) - return "channel_id: string expected"; - if (message.relayer != null && message.hasOwnProperty("relayer")) - if (!$util.isString(message.relayer)) - return "relayer: string expected"; + if (message.packet_id != null && message.hasOwnProperty("packet_id")) { + let error = $root.ibc.core.channel.v1.PacketId.verify(message.packet_id); + if (error) + return "packet_id." + error; + } + if (message.query_height != null && message.hasOwnProperty("query_height")) + if (!$util.isInteger(message.query_height) && !(message.query_height && $util.isInteger(message.query_height.low) && $util.isInteger(message.query_height.high))) + return "query_height: integer|Long expected"; return null; }; /** - * Creates a QueryPayeeRequest message from a plain object. Also converts values to their respective internal types. + * Creates a QueryIncentivizedPacketRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.applications.fee.v1.QueryPayeeRequest + * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketRequest * @static * @param {Object.} object Plain object - * @returns {ibc.applications.fee.v1.QueryPayeeRequest} QueryPayeeRequest + * @returns {ibc.applications.fee.v1.QueryIncentivizedPacketRequest} QueryIncentivizedPacketRequest */ - QueryPayeeRequest.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.fee.v1.QueryPayeeRequest) + QueryIncentivizedPacketRequest.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.fee.v1.QueryIncentivizedPacketRequest) return object; - let message = new $root.ibc.applications.fee.v1.QueryPayeeRequest(); - if (object.channel_id != null) - message.channel_id = String(object.channel_id); - if (object.relayer != null) - message.relayer = String(object.relayer); + let message = new $root.ibc.applications.fee.v1.QueryIncentivizedPacketRequest(); + if (object.packet_id != null) { + if (typeof object.packet_id !== "object") + throw TypeError(".ibc.applications.fee.v1.QueryIncentivizedPacketRequest.packet_id: object expected"); + message.packet_id = $root.ibc.core.channel.v1.PacketId.fromObject(object.packet_id); + } + if (object.query_height != null) + if ($util.Long) + (message.query_height = $util.Long.fromValue(object.query_height)).unsigned = true; + else if (typeof object.query_height === "string") + message.query_height = parseInt(object.query_height, 10); + else if (typeof object.query_height === "number") + message.query_height = object.query_height; + else if (typeof object.query_height === "object") + message.query_height = new $util.LongBits(object.query_height.low >>> 0, object.query_height.high >>> 0).toNumber(true); return message; }; /** - * Creates a plain object from a QueryPayeeRequest message. Also converts values to other types if specified. + * Creates a plain object from a QueryIncentivizedPacketRequest message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.applications.fee.v1.QueryPayeeRequest + * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketRequest * @static - * @param {ibc.applications.fee.v1.QueryPayeeRequest} message QueryPayeeRequest + * @param {ibc.applications.fee.v1.QueryIncentivizedPacketRequest} message QueryIncentivizedPacketRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryPayeeRequest.toObject = function toObject(message, options) { + QueryIncentivizedPacketRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - object.channel_id = ""; - object.relayer = ""; + object.packet_id = null; + if ($util.Long) { + let long = new $util.Long(0, 0, true); + object.query_height = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.query_height = options.longs === String ? "0" : 0; } - if (message.channel_id != null && message.hasOwnProperty("channel_id")) - object.channel_id = message.channel_id; - if (message.relayer != null && message.hasOwnProperty("relayer")) - object.relayer = message.relayer; + if (message.packet_id != null && message.hasOwnProperty("packet_id")) + object.packet_id = $root.ibc.core.channel.v1.PacketId.toObject(message.packet_id, options); + if (message.query_height != null && message.hasOwnProperty("query_height")) + if (typeof message.query_height === "number") + object.query_height = options.longs === String ? String(message.query_height) : message.query_height; + else + object.query_height = options.longs === String ? $util.Long.prototype.toString.call(message.query_height) : options.longs === Number ? new $util.LongBits(message.query_height.low >>> 0, message.query_height.high >>> 0).toNumber(true) : message.query_height; return object; }; /** - * Converts this QueryPayeeRequest to JSON. + * Converts this QueryIncentivizedPacketRequest to JSON. * @function toJSON - * @memberof ibc.applications.fee.v1.QueryPayeeRequest + * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketRequest * @instance * @returns {Object.} JSON object */ - QueryPayeeRequest.prototype.toJSON = function toJSON() { + QueryIncentivizedPacketRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryPayeeRequest; + return QueryIncentivizedPacketRequest; })(); - v1.QueryPayeeResponse = (function() { + v1.QueryIncentivizedPacketResponse = (function() { /** - * Properties of a QueryPayeeResponse. + * Properties of a QueryIncentivizedPacketResponse. * @memberof ibc.applications.fee.v1 - * @interface IQueryPayeeResponse - * @property {string|null} [payee_address] QueryPayeeResponse payee_address + * @interface IQueryIncentivizedPacketResponse + * @property {ibc.applications.fee.v1.IIdentifiedPacketFees|null} [incentivized_packet] QueryIncentivizedPacketResponse incentivized_packet */ /** - * Constructs a new QueryPayeeResponse. + * Constructs a new QueryIncentivizedPacketResponse. * @memberof ibc.applications.fee.v1 - * @classdesc Represents a QueryPayeeResponse. - * @implements IQueryPayeeResponse + * @classdesc Represents a QueryIncentivizedPacketResponse. + * @implements IQueryIncentivizedPacketResponse * @constructor - * @param {ibc.applications.fee.v1.IQueryPayeeResponse=} [properties] Properties to set + * @param {ibc.applications.fee.v1.IQueryIncentivizedPacketResponse=} [properties] Properties to set */ - function QueryPayeeResponse(properties) { + function QueryIncentivizedPacketResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -24077,63 +30665,63 @@ export const ibc = $root.ibc = (() => { } /** - * QueryPayeeResponse payee_address. - * @member {string} payee_address - * @memberof ibc.applications.fee.v1.QueryPayeeResponse + * QueryIncentivizedPacketResponse incentivized_packet. + * @member {ibc.applications.fee.v1.IIdentifiedPacketFees|null|undefined} incentivized_packet + * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketResponse * @instance */ - QueryPayeeResponse.prototype.payee_address = ""; + QueryIncentivizedPacketResponse.prototype.incentivized_packet = null; /** - * Encodes the specified QueryPayeeResponse message. Does not implicitly {@link ibc.applications.fee.v1.QueryPayeeResponse.verify|verify} messages. + * Encodes the specified QueryIncentivizedPacketResponse message. Does not implicitly {@link ibc.applications.fee.v1.QueryIncentivizedPacketResponse.verify|verify} messages. * @function encode - * @memberof ibc.applications.fee.v1.QueryPayeeResponse + * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketResponse * @static - * @param {ibc.applications.fee.v1.IQueryPayeeResponse} message QueryPayeeResponse message or plain object to encode + * @param {ibc.applications.fee.v1.IQueryIncentivizedPacketResponse} message QueryIncentivizedPacketResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryPayeeResponse.encode = function encode(message, writer) { + QueryIncentivizedPacketResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.payee_address != null && Object.hasOwnProperty.call(message, "payee_address")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.payee_address); + if (message.incentivized_packet != null && Object.hasOwnProperty.call(message, "incentivized_packet")) + $root.ibc.applications.fee.v1.IdentifiedPacketFees.encode(message.incentivized_packet, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified QueryPayeeResponse message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.QueryPayeeResponse.verify|verify} messages. + * Encodes the specified QueryIncentivizedPacketResponse message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.QueryIncentivizedPacketResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.applications.fee.v1.QueryPayeeResponse + * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketResponse * @static - * @param {ibc.applications.fee.v1.IQueryPayeeResponse} message QueryPayeeResponse message or plain object to encode + * @param {ibc.applications.fee.v1.IQueryIncentivizedPacketResponse} message QueryIncentivizedPacketResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryPayeeResponse.encodeDelimited = function encodeDelimited(message, writer) { + QueryIncentivizedPacketResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryPayeeResponse message from the specified reader or buffer. + * Decodes a QueryIncentivizedPacketResponse message from the specified reader or buffer. * @function decode - * @memberof ibc.applications.fee.v1.QueryPayeeResponse + * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.fee.v1.QueryPayeeResponse} QueryPayeeResponse + * @returns {ibc.applications.fee.v1.QueryIncentivizedPacketResponse} QueryIncentivizedPacketResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryPayeeResponse.decode = function decode(reader, length) { + QueryIncentivizedPacketResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.QueryPayeeResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.QueryIncentivizedPacketResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.payee_address = reader.string(); + message.incentivized_packet = $root.ibc.applications.fee.v1.IdentifiedPacketFees.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -24144,108 +30732,115 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a QueryPayeeResponse message from the specified reader or buffer, length delimited. + * Decodes a QueryIncentivizedPacketResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.applications.fee.v1.QueryPayeeResponse + * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.fee.v1.QueryPayeeResponse} QueryPayeeResponse + * @returns {ibc.applications.fee.v1.QueryIncentivizedPacketResponse} QueryIncentivizedPacketResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryPayeeResponse.decodeDelimited = function decodeDelimited(reader) { + QueryIncentivizedPacketResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryPayeeResponse message. + * Verifies a QueryIncentivizedPacketResponse message. * @function verify - * @memberof ibc.applications.fee.v1.QueryPayeeResponse + * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryPayeeResponse.verify = function verify(message) { + QueryIncentivizedPacketResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.payee_address != null && message.hasOwnProperty("payee_address")) - if (!$util.isString(message.payee_address)) - return "payee_address: string expected"; + if (message.incentivized_packet != null && message.hasOwnProperty("incentivized_packet")) { + let error = $root.ibc.applications.fee.v1.IdentifiedPacketFees.verify(message.incentivized_packet); + if (error) + return "incentivized_packet." + error; + } return null; }; /** - * Creates a QueryPayeeResponse message from a plain object. Also converts values to their respective internal types. + * Creates a QueryIncentivizedPacketResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.applications.fee.v1.QueryPayeeResponse + * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketResponse * @static * @param {Object.} object Plain object - * @returns {ibc.applications.fee.v1.QueryPayeeResponse} QueryPayeeResponse + * @returns {ibc.applications.fee.v1.QueryIncentivizedPacketResponse} QueryIncentivizedPacketResponse */ - QueryPayeeResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.fee.v1.QueryPayeeResponse) + QueryIncentivizedPacketResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.fee.v1.QueryIncentivizedPacketResponse) return object; - let message = new $root.ibc.applications.fee.v1.QueryPayeeResponse(); - if (object.payee_address != null) - message.payee_address = String(object.payee_address); + let message = new $root.ibc.applications.fee.v1.QueryIncentivizedPacketResponse(); + if (object.incentivized_packet != null) { + if (typeof object.incentivized_packet !== "object") + throw TypeError(".ibc.applications.fee.v1.QueryIncentivizedPacketResponse.incentivized_packet: object expected"); + message.incentivized_packet = $root.ibc.applications.fee.v1.IdentifiedPacketFees.fromObject(object.incentivized_packet); + } return message; }; /** - * Creates a plain object from a QueryPayeeResponse message. Also converts values to other types if specified. + * Creates a plain object from a QueryIncentivizedPacketResponse message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.applications.fee.v1.QueryPayeeResponse + * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketResponse * @static - * @param {ibc.applications.fee.v1.QueryPayeeResponse} message QueryPayeeResponse + * @param {ibc.applications.fee.v1.QueryIncentivizedPacketResponse} message QueryIncentivizedPacketResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryPayeeResponse.toObject = function toObject(message, options) { + QueryIncentivizedPacketResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) - object.payee_address = ""; - if (message.payee_address != null && message.hasOwnProperty("payee_address")) - object.payee_address = message.payee_address; + object.incentivized_packet = null; + if (message.incentivized_packet != null && message.hasOwnProperty("incentivized_packet")) + object.incentivized_packet = $root.ibc.applications.fee.v1.IdentifiedPacketFees.toObject(message.incentivized_packet, options); return object; }; /** - * Converts this QueryPayeeResponse to JSON. + * Converts this QueryIncentivizedPacketResponse to JSON. * @function toJSON - * @memberof ibc.applications.fee.v1.QueryPayeeResponse + * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketResponse * @instance * @returns {Object.} JSON object */ - QueryPayeeResponse.prototype.toJSON = function toJSON() { + QueryIncentivizedPacketResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryPayeeResponse; + return QueryIncentivizedPacketResponse; })(); - v1.QueryCounterpartyPayeeRequest = (function() { + v1.QueryIncentivizedPacketsForChannelRequest = (function() { /** - * Properties of a QueryCounterpartyPayeeRequest. + * Properties of a QueryIncentivizedPacketsForChannelRequest. * @memberof ibc.applications.fee.v1 - * @interface IQueryCounterpartyPayeeRequest - * @property {string|null} [channel_id] QueryCounterpartyPayeeRequest channel_id - * @property {string|null} [relayer] QueryCounterpartyPayeeRequest relayer + * @interface IQueryIncentivizedPacketsForChannelRequest + * @property {cosmos.base.query.v1beta1.IPageRequest|null} [pagination] QueryIncentivizedPacketsForChannelRequest pagination + * @property {string|null} [port_id] QueryIncentivizedPacketsForChannelRequest port_id + * @property {string|null} [channel_id] QueryIncentivizedPacketsForChannelRequest channel_id + * @property {Long|null} [query_height] QueryIncentivizedPacketsForChannelRequest query_height */ /** - * Constructs a new QueryCounterpartyPayeeRequest. + * Constructs a new QueryIncentivizedPacketsForChannelRequest. * @memberof ibc.applications.fee.v1 - * @classdesc Represents a QueryCounterpartyPayeeRequest. - * @implements IQueryCounterpartyPayeeRequest + * @classdesc Represents a QueryIncentivizedPacketsForChannelRequest. + * @implements IQueryIncentivizedPacketsForChannelRequest * @constructor - * @param {ibc.applications.fee.v1.IQueryCounterpartyPayeeRequest=} [properties] Properties to set + * @param {ibc.applications.fee.v1.IQueryIncentivizedPacketsForChannelRequest=} [properties] Properties to set */ - function QueryCounterpartyPayeeRequest(properties) { + function QueryIncentivizedPacketsForChannelRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -24253,76 +30848,102 @@ export const ibc = $root.ibc = (() => { } /** - * QueryCounterpartyPayeeRequest channel_id. + * QueryIncentivizedPacketsForChannelRequest pagination. + * @member {cosmos.base.query.v1beta1.IPageRequest|null|undefined} pagination + * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest + * @instance + */ + QueryIncentivizedPacketsForChannelRequest.prototype.pagination = null; + + /** + * QueryIncentivizedPacketsForChannelRequest port_id. + * @member {string} port_id + * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest + * @instance + */ + QueryIncentivizedPacketsForChannelRequest.prototype.port_id = ""; + + /** + * QueryIncentivizedPacketsForChannelRequest channel_id. * @member {string} channel_id - * @memberof ibc.applications.fee.v1.QueryCounterpartyPayeeRequest + * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest * @instance */ - QueryCounterpartyPayeeRequest.prototype.channel_id = ""; + QueryIncentivizedPacketsForChannelRequest.prototype.channel_id = ""; /** - * QueryCounterpartyPayeeRequest relayer. - * @member {string} relayer - * @memberof ibc.applications.fee.v1.QueryCounterpartyPayeeRequest + * QueryIncentivizedPacketsForChannelRequest query_height. + * @member {Long} query_height + * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest * @instance */ - QueryCounterpartyPayeeRequest.prototype.relayer = ""; + QueryIncentivizedPacketsForChannelRequest.prototype.query_height = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** - * Encodes the specified QueryCounterpartyPayeeRequest message. Does not implicitly {@link ibc.applications.fee.v1.QueryCounterpartyPayeeRequest.verify|verify} messages. + * Encodes the specified QueryIncentivizedPacketsForChannelRequest message. Does not implicitly {@link ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest.verify|verify} messages. * @function encode - * @memberof ibc.applications.fee.v1.QueryCounterpartyPayeeRequest + * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest * @static - * @param {ibc.applications.fee.v1.IQueryCounterpartyPayeeRequest} message QueryCounterpartyPayeeRequest message or plain object to encode + * @param {ibc.applications.fee.v1.IQueryIncentivizedPacketsForChannelRequest} message QueryIncentivizedPacketsForChannelRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryCounterpartyPayeeRequest.encode = function encode(message, writer) { + QueryIncentivizedPacketsForChannelRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.pagination != null && Object.hasOwnProperty.call(message, "pagination")) + $root.cosmos.base.query.v1beta1.PageRequest.encode(message.pagination, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.port_id != null && Object.hasOwnProperty.call(message, "port_id")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.port_id); if (message.channel_id != null && Object.hasOwnProperty.call(message, "channel_id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.channel_id); - if (message.relayer != null && Object.hasOwnProperty.call(message, "relayer")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.relayer); + writer.uint32(/* id 3, wireType 2 =*/26).string(message.channel_id); + if (message.query_height != null && Object.hasOwnProperty.call(message, "query_height")) + writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.query_height); return writer; }; /** - * Encodes the specified QueryCounterpartyPayeeRequest message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.QueryCounterpartyPayeeRequest.verify|verify} messages. + * Encodes the specified QueryIncentivizedPacketsForChannelRequest message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.applications.fee.v1.QueryCounterpartyPayeeRequest + * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest * @static - * @param {ibc.applications.fee.v1.IQueryCounterpartyPayeeRequest} message QueryCounterpartyPayeeRequest message or plain object to encode + * @param {ibc.applications.fee.v1.IQueryIncentivizedPacketsForChannelRequest} message QueryIncentivizedPacketsForChannelRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryCounterpartyPayeeRequest.encodeDelimited = function encodeDelimited(message, writer) { + QueryIncentivizedPacketsForChannelRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryCounterpartyPayeeRequest message from the specified reader or buffer. + * Decodes a QueryIncentivizedPacketsForChannelRequest message from the specified reader or buffer. * @function decode - * @memberof ibc.applications.fee.v1.QueryCounterpartyPayeeRequest + * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.fee.v1.QueryCounterpartyPayeeRequest} QueryCounterpartyPayeeRequest + * @returns {ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest} QueryIncentivizedPacketsForChannelRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryCounterpartyPayeeRequest.decode = function decode(reader, length) { + QueryIncentivizedPacketsForChannelRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.QueryCounterpartyPayeeRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.channel_id = reader.string(); + message.pagination = $root.cosmos.base.query.v1beta1.PageRequest.decode(reader, reader.uint32()); break; case 2: - message.relayer = reader.string(); + message.port_id = reader.string(); + break; + case 3: + message.channel_id = reader.string(); + break; + case 4: + message.query_height = reader.uint64(); break; default: reader.skipType(tag & 7); @@ -24333,116 +30954,152 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a QueryCounterpartyPayeeRequest message from the specified reader or buffer, length delimited. + * Decodes a QueryIncentivizedPacketsForChannelRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.applications.fee.v1.QueryCounterpartyPayeeRequest + * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.fee.v1.QueryCounterpartyPayeeRequest} QueryCounterpartyPayeeRequest + * @returns {ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest} QueryIncentivizedPacketsForChannelRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryCounterpartyPayeeRequest.decodeDelimited = function decodeDelimited(reader) { + QueryIncentivizedPacketsForChannelRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryCounterpartyPayeeRequest message. + * Verifies a QueryIncentivizedPacketsForChannelRequest message. * @function verify - * @memberof ibc.applications.fee.v1.QueryCounterpartyPayeeRequest + * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryCounterpartyPayeeRequest.verify = function verify(message) { + QueryIncentivizedPacketsForChannelRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.pagination != null && message.hasOwnProperty("pagination")) { + let error = $root.cosmos.base.query.v1beta1.PageRequest.verify(message.pagination); + if (error) + return "pagination." + error; + } + if (message.port_id != null && message.hasOwnProperty("port_id")) + if (!$util.isString(message.port_id)) + return "port_id: string expected"; if (message.channel_id != null && message.hasOwnProperty("channel_id")) if (!$util.isString(message.channel_id)) return "channel_id: string expected"; - if (message.relayer != null && message.hasOwnProperty("relayer")) - if (!$util.isString(message.relayer)) - return "relayer: string expected"; + if (message.query_height != null && message.hasOwnProperty("query_height")) + if (!$util.isInteger(message.query_height) && !(message.query_height && $util.isInteger(message.query_height.low) && $util.isInteger(message.query_height.high))) + return "query_height: integer|Long expected"; return null; }; /** - * Creates a QueryCounterpartyPayeeRequest message from a plain object. Also converts values to their respective internal types. + * Creates a QueryIncentivizedPacketsForChannelRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.applications.fee.v1.QueryCounterpartyPayeeRequest + * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest * @static * @param {Object.} object Plain object - * @returns {ibc.applications.fee.v1.QueryCounterpartyPayeeRequest} QueryCounterpartyPayeeRequest + * @returns {ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest} QueryIncentivizedPacketsForChannelRequest */ - QueryCounterpartyPayeeRequest.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.fee.v1.QueryCounterpartyPayeeRequest) + QueryIncentivizedPacketsForChannelRequest.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest) return object; - let message = new $root.ibc.applications.fee.v1.QueryCounterpartyPayeeRequest(); + let message = new $root.ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest(); + if (object.pagination != null) { + if (typeof object.pagination !== "object") + throw TypeError(".ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest.pagination: object expected"); + message.pagination = $root.cosmos.base.query.v1beta1.PageRequest.fromObject(object.pagination); + } + if (object.port_id != null) + message.port_id = String(object.port_id); if (object.channel_id != null) message.channel_id = String(object.channel_id); - if (object.relayer != null) - message.relayer = String(object.relayer); + if (object.query_height != null) + if ($util.Long) + (message.query_height = $util.Long.fromValue(object.query_height)).unsigned = true; + else if (typeof object.query_height === "string") + message.query_height = parseInt(object.query_height, 10); + else if (typeof object.query_height === "number") + message.query_height = object.query_height; + else if (typeof object.query_height === "object") + message.query_height = new $util.LongBits(object.query_height.low >>> 0, object.query_height.high >>> 0).toNumber(true); return message; }; /** - * Creates a plain object from a QueryCounterpartyPayeeRequest message. Also converts values to other types if specified. + * Creates a plain object from a QueryIncentivizedPacketsForChannelRequest message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.applications.fee.v1.QueryCounterpartyPayeeRequest + * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest * @static - * @param {ibc.applications.fee.v1.QueryCounterpartyPayeeRequest} message QueryCounterpartyPayeeRequest + * @param {ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest} message QueryIncentivizedPacketsForChannelRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryCounterpartyPayeeRequest.toObject = function toObject(message, options) { + QueryIncentivizedPacketsForChannelRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { + object.pagination = null; + object.port_id = ""; object.channel_id = ""; - object.relayer = ""; + if ($util.Long) { + let long = new $util.Long(0, 0, true); + object.query_height = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.query_height = options.longs === String ? "0" : 0; } + if (message.pagination != null && message.hasOwnProperty("pagination")) + object.pagination = $root.cosmos.base.query.v1beta1.PageRequest.toObject(message.pagination, options); + if (message.port_id != null && message.hasOwnProperty("port_id")) + object.port_id = message.port_id; if (message.channel_id != null && message.hasOwnProperty("channel_id")) object.channel_id = message.channel_id; - if (message.relayer != null && message.hasOwnProperty("relayer")) - object.relayer = message.relayer; + if (message.query_height != null && message.hasOwnProperty("query_height")) + if (typeof message.query_height === "number") + object.query_height = options.longs === String ? String(message.query_height) : message.query_height; + else + object.query_height = options.longs === String ? $util.Long.prototype.toString.call(message.query_height) : options.longs === Number ? new $util.LongBits(message.query_height.low >>> 0, message.query_height.high >>> 0).toNumber(true) : message.query_height; return object; }; /** - * Converts this QueryCounterpartyPayeeRequest to JSON. + * Converts this QueryIncentivizedPacketsForChannelRequest to JSON. * @function toJSON - * @memberof ibc.applications.fee.v1.QueryCounterpartyPayeeRequest + * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest * @instance * @returns {Object.} JSON object */ - QueryCounterpartyPayeeRequest.prototype.toJSON = function toJSON() { + QueryIncentivizedPacketsForChannelRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryCounterpartyPayeeRequest; + return QueryIncentivizedPacketsForChannelRequest; })(); - v1.QueryCounterpartyPayeeResponse = (function() { + v1.QueryIncentivizedPacketsForChannelResponse = (function() { /** - * Properties of a QueryCounterpartyPayeeResponse. + * Properties of a QueryIncentivizedPacketsForChannelResponse. * @memberof ibc.applications.fee.v1 - * @interface IQueryCounterpartyPayeeResponse - * @property {string|null} [counterparty_payee] QueryCounterpartyPayeeResponse counterparty_payee + * @interface IQueryIncentivizedPacketsForChannelResponse + * @property {Array.|null} [incentivized_packets] QueryIncentivizedPacketsForChannelResponse incentivized_packets */ /** - * Constructs a new QueryCounterpartyPayeeResponse. + * Constructs a new QueryIncentivizedPacketsForChannelResponse. * @memberof ibc.applications.fee.v1 - * @classdesc Represents a QueryCounterpartyPayeeResponse. - * @implements IQueryCounterpartyPayeeResponse + * @classdesc Represents a QueryIncentivizedPacketsForChannelResponse. + * @implements IQueryIncentivizedPacketsForChannelResponse * @constructor - * @param {ibc.applications.fee.v1.IQueryCounterpartyPayeeResponse=} [properties] Properties to set + * @param {ibc.applications.fee.v1.IQueryIncentivizedPacketsForChannelResponse=} [properties] Properties to set */ - function QueryCounterpartyPayeeResponse(properties) { + function QueryIncentivizedPacketsForChannelResponse(properties) { + this.incentivized_packets = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -24450,63 +31107,66 @@ export const ibc = $root.ibc = (() => { } /** - * QueryCounterpartyPayeeResponse counterparty_payee. - * @member {string} counterparty_payee - * @memberof ibc.applications.fee.v1.QueryCounterpartyPayeeResponse + * QueryIncentivizedPacketsForChannelResponse incentivized_packets. + * @member {Array.} incentivized_packets + * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelResponse * @instance */ - QueryCounterpartyPayeeResponse.prototype.counterparty_payee = ""; + QueryIncentivizedPacketsForChannelResponse.prototype.incentivized_packets = $util.emptyArray; /** - * Encodes the specified QueryCounterpartyPayeeResponse message. Does not implicitly {@link ibc.applications.fee.v1.QueryCounterpartyPayeeResponse.verify|verify} messages. + * Encodes the specified QueryIncentivizedPacketsForChannelResponse message. Does not implicitly {@link ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelResponse.verify|verify} messages. * @function encode - * @memberof ibc.applications.fee.v1.QueryCounterpartyPayeeResponse + * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelResponse * @static - * @param {ibc.applications.fee.v1.IQueryCounterpartyPayeeResponse} message QueryCounterpartyPayeeResponse message or plain object to encode + * @param {ibc.applications.fee.v1.IQueryIncentivizedPacketsForChannelResponse} message QueryIncentivizedPacketsForChannelResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryCounterpartyPayeeResponse.encode = function encode(message, writer) { + QueryIncentivizedPacketsForChannelResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.counterparty_payee != null && Object.hasOwnProperty.call(message, "counterparty_payee")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.counterparty_payee); + if (message.incentivized_packets != null && message.incentivized_packets.length) + for (let i = 0; i < message.incentivized_packets.length; ++i) + $root.ibc.applications.fee.v1.IdentifiedPacketFees.encode(message.incentivized_packets[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified QueryCounterpartyPayeeResponse message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.QueryCounterpartyPayeeResponse.verify|verify} messages. + * Encodes the specified QueryIncentivizedPacketsForChannelResponse message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.applications.fee.v1.QueryCounterpartyPayeeResponse + * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelResponse * @static - * @param {ibc.applications.fee.v1.IQueryCounterpartyPayeeResponse} message QueryCounterpartyPayeeResponse message or plain object to encode + * @param {ibc.applications.fee.v1.IQueryIncentivizedPacketsForChannelResponse} message QueryIncentivizedPacketsForChannelResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryCounterpartyPayeeResponse.encodeDelimited = function encodeDelimited(message, writer) { + QueryIncentivizedPacketsForChannelResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryCounterpartyPayeeResponse message from the specified reader or buffer. + * Decodes a QueryIncentivizedPacketsForChannelResponse message from the specified reader or buffer. * @function decode - * @memberof ibc.applications.fee.v1.QueryCounterpartyPayeeResponse + * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.fee.v1.QueryCounterpartyPayeeResponse} QueryCounterpartyPayeeResponse + * @returns {ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelResponse} QueryIncentivizedPacketsForChannelResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryCounterpartyPayeeResponse.decode = function decode(reader, length) { + QueryIncentivizedPacketsForChannelResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.QueryCounterpartyPayeeResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.counterparty_payee = reader.string(); + if (!(message.incentivized_packets && message.incentivized_packets.length)) + message.incentivized_packets = []; + message.incentivized_packets.push($root.ibc.applications.fee.v1.IdentifiedPacketFees.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -24517,108 +31177,124 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a QueryCounterpartyPayeeResponse message from the specified reader or buffer, length delimited. + * Decodes a QueryIncentivizedPacketsForChannelResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.applications.fee.v1.QueryCounterpartyPayeeResponse + * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.fee.v1.QueryCounterpartyPayeeResponse} QueryCounterpartyPayeeResponse + * @returns {ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelResponse} QueryIncentivizedPacketsForChannelResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryCounterpartyPayeeResponse.decodeDelimited = function decodeDelimited(reader) { + QueryIncentivizedPacketsForChannelResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryCounterpartyPayeeResponse message. + * Verifies a QueryIncentivizedPacketsForChannelResponse message. * @function verify - * @memberof ibc.applications.fee.v1.QueryCounterpartyPayeeResponse + * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryCounterpartyPayeeResponse.verify = function verify(message) { + QueryIncentivizedPacketsForChannelResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.counterparty_payee != null && message.hasOwnProperty("counterparty_payee")) - if (!$util.isString(message.counterparty_payee)) - return "counterparty_payee: string expected"; + if (message.incentivized_packets != null && message.hasOwnProperty("incentivized_packets")) { + if (!Array.isArray(message.incentivized_packets)) + return "incentivized_packets: array expected"; + for (let i = 0; i < message.incentivized_packets.length; ++i) { + let error = $root.ibc.applications.fee.v1.IdentifiedPacketFees.verify(message.incentivized_packets[i]); + if (error) + return "incentivized_packets." + error; + } + } return null; }; /** - * Creates a QueryCounterpartyPayeeResponse message from a plain object. Also converts values to their respective internal types. + * Creates a QueryIncentivizedPacketsForChannelResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.applications.fee.v1.QueryCounterpartyPayeeResponse + * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelResponse * @static * @param {Object.} object Plain object - * @returns {ibc.applications.fee.v1.QueryCounterpartyPayeeResponse} QueryCounterpartyPayeeResponse + * @returns {ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelResponse} QueryIncentivizedPacketsForChannelResponse */ - QueryCounterpartyPayeeResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.fee.v1.QueryCounterpartyPayeeResponse) + QueryIncentivizedPacketsForChannelResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelResponse) return object; - let message = new $root.ibc.applications.fee.v1.QueryCounterpartyPayeeResponse(); - if (object.counterparty_payee != null) - message.counterparty_payee = String(object.counterparty_payee); + let message = new $root.ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelResponse(); + if (object.incentivized_packets) { + if (!Array.isArray(object.incentivized_packets)) + throw TypeError(".ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelResponse.incentivized_packets: array expected"); + message.incentivized_packets = []; + for (let i = 0; i < object.incentivized_packets.length; ++i) { + if (typeof object.incentivized_packets[i] !== "object") + throw TypeError(".ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelResponse.incentivized_packets: object expected"); + message.incentivized_packets[i] = $root.ibc.applications.fee.v1.IdentifiedPacketFees.fromObject(object.incentivized_packets[i]); + } + } return message; }; /** - * Creates a plain object from a QueryCounterpartyPayeeResponse message. Also converts values to other types if specified. + * Creates a plain object from a QueryIncentivizedPacketsForChannelResponse message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.applications.fee.v1.QueryCounterpartyPayeeResponse + * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelResponse * @static - * @param {ibc.applications.fee.v1.QueryCounterpartyPayeeResponse} message QueryCounterpartyPayeeResponse + * @param {ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelResponse} message QueryIncentivizedPacketsForChannelResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryCounterpartyPayeeResponse.toObject = function toObject(message, options) { + QueryIncentivizedPacketsForChannelResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) - object.counterparty_payee = ""; - if (message.counterparty_payee != null && message.hasOwnProperty("counterparty_payee")) - object.counterparty_payee = message.counterparty_payee; + if (options.arrays || options.defaults) + object.incentivized_packets = []; + if (message.incentivized_packets && message.incentivized_packets.length) { + object.incentivized_packets = []; + for (let j = 0; j < message.incentivized_packets.length; ++j) + object.incentivized_packets[j] = $root.ibc.applications.fee.v1.IdentifiedPacketFees.toObject(message.incentivized_packets[j], options); + } return object; }; /** - * Converts this QueryCounterpartyPayeeResponse to JSON. + * Converts this QueryIncentivizedPacketsForChannelResponse to JSON. * @function toJSON - * @memberof ibc.applications.fee.v1.QueryCounterpartyPayeeResponse + * @memberof ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelResponse * @instance * @returns {Object.} JSON object */ - QueryCounterpartyPayeeResponse.prototype.toJSON = function toJSON() { + QueryIncentivizedPacketsForChannelResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryCounterpartyPayeeResponse; + return QueryIncentivizedPacketsForChannelResponse; })(); - v1.QueryFeeEnabledChannelsRequest = (function() { + v1.QueryTotalRecvFeesRequest = (function() { /** - * Properties of a QueryFeeEnabledChannelsRequest. + * Properties of a QueryTotalRecvFeesRequest. * @memberof ibc.applications.fee.v1 - * @interface IQueryFeeEnabledChannelsRequest - * @property {cosmos.base.query.v1beta1.IPageRequest|null} [pagination] QueryFeeEnabledChannelsRequest pagination - * @property {Long|null} [query_height] QueryFeeEnabledChannelsRequest query_height + * @interface IQueryTotalRecvFeesRequest + * @property {ibc.core.channel.v1.IPacketId|null} [packet_id] QueryTotalRecvFeesRequest packet_id */ /** - * Constructs a new QueryFeeEnabledChannelsRequest. + * Constructs a new QueryTotalRecvFeesRequest. * @memberof ibc.applications.fee.v1 - * @classdesc Represents a QueryFeeEnabledChannelsRequest. - * @implements IQueryFeeEnabledChannelsRequest + * @classdesc Represents a QueryTotalRecvFeesRequest. + * @implements IQueryTotalRecvFeesRequest * @constructor - * @param {ibc.applications.fee.v1.IQueryFeeEnabledChannelsRequest=} [properties] Properties to set + * @param {ibc.applications.fee.v1.IQueryTotalRecvFeesRequest=} [properties] Properties to set */ - function QueryFeeEnabledChannelsRequest(properties) { + function QueryTotalRecvFeesRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -24626,76 +31302,63 @@ export const ibc = $root.ibc = (() => { } /** - * QueryFeeEnabledChannelsRequest pagination. - * @member {cosmos.base.query.v1beta1.IPageRequest|null|undefined} pagination - * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelsRequest - * @instance - */ - QueryFeeEnabledChannelsRequest.prototype.pagination = null; - - /** - * QueryFeeEnabledChannelsRequest query_height. - * @member {Long} query_height - * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelsRequest + * QueryTotalRecvFeesRequest packet_id. + * @member {ibc.core.channel.v1.IPacketId|null|undefined} packet_id + * @memberof ibc.applications.fee.v1.QueryTotalRecvFeesRequest * @instance */ - QueryFeeEnabledChannelsRequest.prototype.query_height = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + QueryTotalRecvFeesRequest.prototype.packet_id = null; /** - * Encodes the specified QueryFeeEnabledChannelsRequest message. Does not implicitly {@link ibc.applications.fee.v1.QueryFeeEnabledChannelsRequest.verify|verify} messages. + * Encodes the specified QueryTotalRecvFeesRequest message. Does not implicitly {@link ibc.applications.fee.v1.QueryTotalRecvFeesRequest.verify|verify} messages. * @function encode - * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelsRequest + * @memberof ibc.applications.fee.v1.QueryTotalRecvFeesRequest * @static - * @param {ibc.applications.fee.v1.IQueryFeeEnabledChannelsRequest} message QueryFeeEnabledChannelsRequest message or plain object to encode + * @param {ibc.applications.fee.v1.IQueryTotalRecvFeesRequest} message QueryTotalRecvFeesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryFeeEnabledChannelsRequest.encode = function encode(message, writer) { + QueryTotalRecvFeesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.pagination != null && Object.hasOwnProperty.call(message, "pagination")) - $root.cosmos.base.query.v1beta1.PageRequest.encode(message.pagination, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.query_height != null && Object.hasOwnProperty.call(message, "query_height")) - writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.query_height); + if (message.packet_id != null && Object.hasOwnProperty.call(message, "packet_id")) + $root.ibc.core.channel.v1.PacketId.encode(message.packet_id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified QueryFeeEnabledChannelsRequest message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.QueryFeeEnabledChannelsRequest.verify|verify} messages. + * Encodes the specified QueryTotalRecvFeesRequest message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.QueryTotalRecvFeesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelsRequest + * @memberof ibc.applications.fee.v1.QueryTotalRecvFeesRequest * @static - * @param {ibc.applications.fee.v1.IQueryFeeEnabledChannelsRequest} message QueryFeeEnabledChannelsRequest message or plain object to encode + * @param {ibc.applications.fee.v1.IQueryTotalRecvFeesRequest} message QueryTotalRecvFeesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryFeeEnabledChannelsRequest.encodeDelimited = function encodeDelimited(message, writer) { + QueryTotalRecvFeesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryFeeEnabledChannelsRequest message from the specified reader or buffer. + * Decodes a QueryTotalRecvFeesRequest message from the specified reader or buffer. * @function decode - * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelsRequest + * @memberof ibc.applications.fee.v1.QueryTotalRecvFeesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.fee.v1.QueryFeeEnabledChannelsRequest} QueryFeeEnabledChannelsRequest + * @returns {ibc.applications.fee.v1.QueryTotalRecvFeesRequest} QueryTotalRecvFeesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryFeeEnabledChannelsRequest.decode = function decode(reader, length) { + QueryTotalRecvFeesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.QueryFeeEnabledChannelsRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.QueryTotalRecvFeesRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.pagination = $root.cosmos.base.query.v1beta1.PageRequest.decode(reader, reader.uint32()); - break; - case 2: - message.query_height = reader.uint64(); + message.packet_id = $root.ibc.core.channel.v1.PacketId.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -24706,136 +31369,113 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a QueryFeeEnabledChannelsRequest message from the specified reader or buffer, length delimited. + * Decodes a QueryTotalRecvFeesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelsRequest + * @memberof ibc.applications.fee.v1.QueryTotalRecvFeesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.fee.v1.QueryFeeEnabledChannelsRequest} QueryFeeEnabledChannelsRequest + * @returns {ibc.applications.fee.v1.QueryTotalRecvFeesRequest} QueryTotalRecvFeesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryFeeEnabledChannelsRequest.decodeDelimited = function decodeDelimited(reader) { + QueryTotalRecvFeesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryFeeEnabledChannelsRequest message. + * Verifies a QueryTotalRecvFeesRequest message. * @function verify - * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelsRequest + * @memberof ibc.applications.fee.v1.QueryTotalRecvFeesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryFeeEnabledChannelsRequest.verify = function verify(message) { + QueryTotalRecvFeesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.pagination != null && message.hasOwnProperty("pagination")) { - let error = $root.cosmos.base.query.v1beta1.PageRequest.verify(message.pagination); + if (message.packet_id != null && message.hasOwnProperty("packet_id")) { + let error = $root.ibc.core.channel.v1.PacketId.verify(message.packet_id); if (error) - return "pagination." + error; + return "packet_id." + error; } - if (message.query_height != null && message.hasOwnProperty("query_height")) - if (!$util.isInteger(message.query_height) && !(message.query_height && $util.isInteger(message.query_height.low) && $util.isInteger(message.query_height.high))) - return "query_height: integer|Long expected"; return null; }; /** - * Creates a QueryFeeEnabledChannelsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a QueryTotalRecvFeesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelsRequest + * @memberof ibc.applications.fee.v1.QueryTotalRecvFeesRequest * @static * @param {Object.} object Plain object - * @returns {ibc.applications.fee.v1.QueryFeeEnabledChannelsRequest} QueryFeeEnabledChannelsRequest + * @returns {ibc.applications.fee.v1.QueryTotalRecvFeesRequest} QueryTotalRecvFeesRequest */ - QueryFeeEnabledChannelsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.fee.v1.QueryFeeEnabledChannelsRequest) + QueryTotalRecvFeesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.fee.v1.QueryTotalRecvFeesRequest) return object; - let message = new $root.ibc.applications.fee.v1.QueryFeeEnabledChannelsRequest(); - if (object.pagination != null) { - if (typeof object.pagination !== "object") - throw TypeError(".ibc.applications.fee.v1.QueryFeeEnabledChannelsRequest.pagination: object expected"); - message.pagination = $root.cosmos.base.query.v1beta1.PageRequest.fromObject(object.pagination); + let message = new $root.ibc.applications.fee.v1.QueryTotalRecvFeesRequest(); + if (object.packet_id != null) { + if (typeof object.packet_id !== "object") + throw TypeError(".ibc.applications.fee.v1.QueryTotalRecvFeesRequest.packet_id: object expected"); + message.packet_id = $root.ibc.core.channel.v1.PacketId.fromObject(object.packet_id); } - if (object.query_height != null) - if ($util.Long) - (message.query_height = $util.Long.fromValue(object.query_height)).unsigned = true; - else if (typeof object.query_height === "string") - message.query_height = parseInt(object.query_height, 10); - else if (typeof object.query_height === "number") - message.query_height = object.query_height; - else if (typeof object.query_height === "object") - message.query_height = new $util.LongBits(object.query_height.low >>> 0, object.query_height.high >>> 0).toNumber(true); return message; }; /** - * Creates a plain object from a QueryFeeEnabledChannelsRequest message. Also converts values to other types if specified. + * Creates a plain object from a QueryTotalRecvFeesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelsRequest + * @memberof ibc.applications.fee.v1.QueryTotalRecvFeesRequest * @static - * @param {ibc.applications.fee.v1.QueryFeeEnabledChannelsRequest} message QueryFeeEnabledChannelsRequest + * @param {ibc.applications.fee.v1.QueryTotalRecvFeesRequest} message QueryTotalRecvFeesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryFeeEnabledChannelsRequest.toObject = function toObject(message, options) { + QueryTotalRecvFeesRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) { - object.pagination = null; - if ($util.Long) { - let long = new $util.Long(0, 0, true); - object.query_height = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.query_height = options.longs === String ? "0" : 0; - } - if (message.pagination != null && message.hasOwnProperty("pagination")) - object.pagination = $root.cosmos.base.query.v1beta1.PageRequest.toObject(message.pagination, options); - if (message.query_height != null && message.hasOwnProperty("query_height")) - if (typeof message.query_height === "number") - object.query_height = options.longs === String ? String(message.query_height) : message.query_height; - else - object.query_height = options.longs === String ? $util.Long.prototype.toString.call(message.query_height) : options.longs === Number ? new $util.LongBits(message.query_height.low >>> 0, message.query_height.high >>> 0).toNumber(true) : message.query_height; + if (options.defaults) + object.packet_id = null; + if (message.packet_id != null && message.hasOwnProperty("packet_id")) + object.packet_id = $root.ibc.core.channel.v1.PacketId.toObject(message.packet_id, options); return object; }; /** - * Converts this QueryFeeEnabledChannelsRequest to JSON. + * Converts this QueryTotalRecvFeesRequest to JSON. * @function toJSON - * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelsRequest + * @memberof ibc.applications.fee.v1.QueryTotalRecvFeesRequest * @instance * @returns {Object.} JSON object */ - QueryFeeEnabledChannelsRequest.prototype.toJSON = function toJSON() { + QueryTotalRecvFeesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryFeeEnabledChannelsRequest; + return QueryTotalRecvFeesRequest; })(); - v1.QueryFeeEnabledChannelsResponse = (function() { + v1.QueryTotalRecvFeesResponse = (function() { /** - * Properties of a QueryFeeEnabledChannelsResponse. + * Properties of a QueryTotalRecvFeesResponse. * @memberof ibc.applications.fee.v1 - * @interface IQueryFeeEnabledChannelsResponse - * @property {Array.|null} [fee_enabled_channels] QueryFeeEnabledChannelsResponse fee_enabled_channels + * @interface IQueryTotalRecvFeesResponse + * @property {Array.|null} [recv_fees] QueryTotalRecvFeesResponse recv_fees */ /** - * Constructs a new QueryFeeEnabledChannelsResponse. + * Constructs a new QueryTotalRecvFeesResponse. * @memberof ibc.applications.fee.v1 - * @classdesc Represents a QueryFeeEnabledChannelsResponse. - * @implements IQueryFeeEnabledChannelsResponse + * @classdesc Represents a QueryTotalRecvFeesResponse. + * @implements IQueryTotalRecvFeesResponse * @constructor - * @param {ibc.applications.fee.v1.IQueryFeeEnabledChannelsResponse=} [properties] Properties to set + * @param {ibc.applications.fee.v1.IQueryTotalRecvFeesResponse=} [properties] Properties to set */ - function QueryFeeEnabledChannelsResponse(properties) { - this.fee_enabled_channels = []; + function QueryTotalRecvFeesResponse(properties) { + this.recv_fees = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -24843,66 +31483,66 @@ export const ibc = $root.ibc = (() => { } /** - * QueryFeeEnabledChannelsResponse fee_enabled_channels. - * @member {Array.} fee_enabled_channels - * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelsResponse + * QueryTotalRecvFeesResponse recv_fees. + * @member {Array.} recv_fees + * @memberof ibc.applications.fee.v1.QueryTotalRecvFeesResponse * @instance */ - QueryFeeEnabledChannelsResponse.prototype.fee_enabled_channels = $util.emptyArray; + QueryTotalRecvFeesResponse.prototype.recv_fees = $util.emptyArray; /** - * Encodes the specified QueryFeeEnabledChannelsResponse message. Does not implicitly {@link ibc.applications.fee.v1.QueryFeeEnabledChannelsResponse.verify|verify} messages. + * Encodes the specified QueryTotalRecvFeesResponse message. Does not implicitly {@link ibc.applications.fee.v1.QueryTotalRecvFeesResponse.verify|verify} messages. * @function encode - * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelsResponse + * @memberof ibc.applications.fee.v1.QueryTotalRecvFeesResponse * @static - * @param {ibc.applications.fee.v1.IQueryFeeEnabledChannelsResponse} message QueryFeeEnabledChannelsResponse message or plain object to encode + * @param {ibc.applications.fee.v1.IQueryTotalRecvFeesResponse} message QueryTotalRecvFeesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryFeeEnabledChannelsResponse.encode = function encode(message, writer) { + QueryTotalRecvFeesResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.fee_enabled_channels != null && message.fee_enabled_channels.length) - for (let i = 0; i < message.fee_enabled_channels.length; ++i) - $root.ibc.applications.fee.v1.FeeEnabledChannel.encode(message.fee_enabled_channels[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.recv_fees != null && message.recv_fees.length) + for (let i = 0; i < message.recv_fees.length; ++i) + $root.cosmos.base.v1beta1.Coin.encode(message.recv_fees[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified QueryFeeEnabledChannelsResponse message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.QueryFeeEnabledChannelsResponse.verify|verify} messages. + * Encodes the specified QueryTotalRecvFeesResponse message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.QueryTotalRecvFeesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelsResponse + * @memberof ibc.applications.fee.v1.QueryTotalRecvFeesResponse * @static - * @param {ibc.applications.fee.v1.IQueryFeeEnabledChannelsResponse} message QueryFeeEnabledChannelsResponse message or plain object to encode + * @param {ibc.applications.fee.v1.IQueryTotalRecvFeesResponse} message QueryTotalRecvFeesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryFeeEnabledChannelsResponse.encodeDelimited = function encodeDelimited(message, writer) { + QueryTotalRecvFeesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryFeeEnabledChannelsResponse message from the specified reader or buffer. + * Decodes a QueryTotalRecvFeesResponse message from the specified reader or buffer. * @function decode - * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelsResponse + * @memberof ibc.applications.fee.v1.QueryTotalRecvFeesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.fee.v1.QueryFeeEnabledChannelsResponse} QueryFeeEnabledChannelsResponse + * @returns {ibc.applications.fee.v1.QueryTotalRecvFeesResponse} QueryTotalRecvFeesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryFeeEnabledChannelsResponse.decode = function decode(reader, length) { + QueryTotalRecvFeesResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.QueryFeeEnabledChannelsResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.QueryTotalRecvFeesResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.fee_enabled_channels && message.fee_enabled_channels.length)) - message.fee_enabled_channels = []; - message.fee_enabled_channels.push($root.ibc.applications.fee.v1.FeeEnabledChannel.decode(reader, reader.uint32())); + if (!(message.recv_fees && message.recv_fees.length)) + message.recv_fees = []; + message.recv_fees.push($root.cosmos.base.v1beta1.Coin.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -24913,125 +31553,124 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a QueryFeeEnabledChannelsResponse message from the specified reader or buffer, length delimited. + * Decodes a QueryTotalRecvFeesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelsResponse + * @memberof ibc.applications.fee.v1.QueryTotalRecvFeesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.fee.v1.QueryFeeEnabledChannelsResponse} QueryFeeEnabledChannelsResponse + * @returns {ibc.applications.fee.v1.QueryTotalRecvFeesResponse} QueryTotalRecvFeesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryFeeEnabledChannelsResponse.decodeDelimited = function decodeDelimited(reader) { + QueryTotalRecvFeesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryFeeEnabledChannelsResponse message. + * Verifies a QueryTotalRecvFeesResponse message. * @function verify - * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelsResponse + * @memberof ibc.applications.fee.v1.QueryTotalRecvFeesResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryFeeEnabledChannelsResponse.verify = function verify(message) { + QueryTotalRecvFeesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.fee_enabled_channels != null && message.hasOwnProperty("fee_enabled_channels")) { - if (!Array.isArray(message.fee_enabled_channels)) - return "fee_enabled_channels: array expected"; - for (let i = 0; i < message.fee_enabled_channels.length; ++i) { - let error = $root.ibc.applications.fee.v1.FeeEnabledChannel.verify(message.fee_enabled_channels[i]); + if (message.recv_fees != null && message.hasOwnProperty("recv_fees")) { + if (!Array.isArray(message.recv_fees)) + return "recv_fees: array expected"; + for (let i = 0; i < message.recv_fees.length; ++i) { + let error = $root.cosmos.base.v1beta1.Coin.verify(message.recv_fees[i]); if (error) - return "fee_enabled_channels." + error; + return "recv_fees." + error; } } return null; }; /** - * Creates a QueryFeeEnabledChannelsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a QueryTotalRecvFeesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelsResponse + * @memberof ibc.applications.fee.v1.QueryTotalRecvFeesResponse * @static * @param {Object.} object Plain object - * @returns {ibc.applications.fee.v1.QueryFeeEnabledChannelsResponse} QueryFeeEnabledChannelsResponse + * @returns {ibc.applications.fee.v1.QueryTotalRecvFeesResponse} QueryTotalRecvFeesResponse */ - QueryFeeEnabledChannelsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.fee.v1.QueryFeeEnabledChannelsResponse) + QueryTotalRecvFeesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.fee.v1.QueryTotalRecvFeesResponse) return object; - let message = new $root.ibc.applications.fee.v1.QueryFeeEnabledChannelsResponse(); - if (object.fee_enabled_channels) { - if (!Array.isArray(object.fee_enabled_channels)) - throw TypeError(".ibc.applications.fee.v1.QueryFeeEnabledChannelsResponse.fee_enabled_channels: array expected"); - message.fee_enabled_channels = []; - for (let i = 0; i < object.fee_enabled_channels.length; ++i) { - if (typeof object.fee_enabled_channels[i] !== "object") - throw TypeError(".ibc.applications.fee.v1.QueryFeeEnabledChannelsResponse.fee_enabled_channels: object expected"); - message.fee_enabled_channels[i] = $root.ibc.applications.fee.v1.FeeEnabledChannel.fromObject(object.fee_enabled_channels[i]); + let message = new $root.ibc.applications.fee.v1.QueryTotalRecvFeesResponse(); + if (object.recv_fees) { + if (!Array.isArray(object.recv_fees)) + throw TypeError(".ibc.applications.fee.v1.QueryTotalRecvFeesResponse.recv_fees: array expected"); + message.recv_fees = []; + for (let i = 0; i < object.recv_fees.length; ++i) { + if (typeof object.recv_fees[i] !== "object") + throw TypeError(".ibc.applications.fee.v1.QueryTotalRecvFeesResponse.recv_fees: object expected"); + message.recv_fees[i] = $root.cosmos.base.v1beta1.Coin.fromObject(object.recv_fees[i]); } } return message; }; /** - * Creates a plain object from a QueryFeeEnabledChannelsResponse message. Also converts values to other types if specified. + * Creates a plain object from a QueryTotalRecvFeesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelsResponse + * @memberof ibc.applications.fee.v1.QueryTotalRecvFeesResponse * @static - * @param {ibc.applications.fee.v1.QueryFeeEnabledChannelsResponse} message QueryFeeEnabledChannelsResponse + * @param {ibc.applications.fee.v1.QueryTotalRecvFeesResponse} message QueryTotalRecvFeesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryFeeEnabledChannelsResponse.toObject = function toObject(message, options) { + QueryTotalRecvFeesResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) - object.fee_enabled_channels = []; - if (message.fee_enabled_channels && message.fee_enabled_channels.length) { - object.fee_enabled_channels = []; - for (let j = 0; j < message.fee_enabled_channels.length; ++j) - object.fee_enabled_channels[j] = $root.ibc.applications.fee.v1.FeeEnabledChannel.toObject(message.fee_enabled_channels[j], options); + object.recv_fees = []; + if (message.recv_fees && message.recv_fees.length) { + object.recv_fees = []; + for (let j = 0; j < message.recv_fees.length; ++j) + object.recv_fees[j] = $root.cosmos.base.v1beta1.Coin.toObject(message.recv_fees[j], options); } return object; }; /** - * Converts this QueryFeeEnabledChannelsResponse to JSON. + * Converts this QueryTotalRecvFeesResponse to JSON. * @function toJSON - * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelsResponse + * @memberof ibc.applications.fee.v1.QueryTotalRecvFeesResponse * @instance * @returns {Object.} JSON object */ - QueryFeeEnabledChannelsResponse.prototype.toJSON = function toJSON() { + QueryTotalRecvFeesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryFeeEnabledChannelsResponse; + return QueryTotalRecvFeesResponse; })(); - v1.QueryFeeEnabledChannelRequest = (function() { + v1.QueryTotalAckFeesRequest = (function() { /** - * Properties of a QueryFeeEnabledChannelRequest. + * Properties of a QueryTotalAckFeesRequest. * @memberof ibc.applications.fee.v1 - * @interface IQueryFeeEnabledChannelRequest - * @property {string|null} [port_id] QueryFeeEnabledChannelRequest port_id - * @property {string|null} [channel_id] QueryFeeEnabledChannelRequest channel_id + * @interface IQueryTotalAckFeesRequest + * @property {ibc.core.channel.v1.IPacketId|null} [packet_id] QueryTotalAckFeesRequest packet_id */ /** - * Constructs a new QueryFeeEnabledChannelRequest. + * Constructs a new QueryTotalAckFeesRequest. * @memberof ibc.applications.fee.v1 - * @classdesc Represents a QueryFeeEnabledChannelRequest. - * @implements IQueryFeeEnabledChannelRequest + * @classdesc Represents a QueryTotalAckFeesRequest. + * @implements IQueryTotalAckFeesRequest * @constructor - * @param {ibc.applications.fee.v1.IQueryFeeEnabledChannelRequest=} [properties] Properties to set + * @param {ibc.applications.fee.v1.IQueryTotalAckFeesRequest=} [properties] Properties to set */ - function QueryFeeEnabledChannelRequest(properties) { + function QueryTotalAckFeesRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -25039,76 +31678,63 @@ export const ibc = $root.ibc = (() => { } /** - * QueryFeeEnabledChannelRequest port_id. - * @member {string} port_id - * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelRequest - * @instance - */ - QueryFeeEnabledChannelRequest.prototype.port_id = ""; - - /** - * QueryFeeEnabledChannelRequest channel_id. - * @member {string} channel_id - * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelRequest + * QueryTotalAckFeesRequest packet_id. + * @member {ibc.core.channel.v1.IPacketId|null|undefined} packet_id + * @memberof ibc.applications.fee.v1.QueryTotalAckFeesRequest * @instance */ - QueryFeeEnabledChannelRequest.prototype.channel_id = ""; + QueryTotalAckFeesRequest.prototype.packet_id = null; /** - * Encodes the specified QueryFeeEnabledChannelRequest message. Does not implicitly {@link ibc.applications.fee.v1.QueryFeeEnabledChannelRequest.verify|verify} messages. + * Encodes the specified QueryTotalAckFeesRequest message. Does not implicitly {@link ibc.applications.fee.v1.QueryTotalAckFeesRequest.verify|verify} messages. * @function encode - * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelRequest + * @memberof ibc.applications.fee.v1.QueryTotalAckFeesRequest * @static - * @param {ibc.applications.fee.v1.IQueryFeeEnabledChannelRequest} message QueryFeeEnabledChannelRequest message or plain object to encode + * @param {ibc.applications.fee.v1.IQueryTotalAckFeesRequest} message QueryTotalAckFeesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryFeeEnabledChannelRequest.encode = function encode(message, writer) { + QueryTotalAckFeesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.port_id != null && Object.hasOwnProperty.call(message, "port_id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.port_id); - if (message.channel_id != null && Object.hasOwnProperty.call(message, "channel_id")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.channel_id); + if (message.packet_id != null && Object.hasOwnProperty.call(message, "packet_id")) + $root.ibc.core.channel.v1.PacketId.encode(message.packet_id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified QueryFeeEnabledChannelRequest message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.QueryFeeEnabledChannelRequest.verify|verify} messages. + * Encodes the specified QueryTotalAckFeesRequest message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.QueryTotalAckFeesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelRequest + * @memberof ibc.applications.fee.v1.QueryTotalAckFeesRequest * @static - * @param {ibc.applications.fee.v1.IQueryFeeEnabledChannelRequest} message QueryFeeEnabledChannelRequest message or plain object to encode + * @param {ibc.applications.fee.v1.IQueryTotalAckFeesRequest} message QueryTotalAckFeesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryFeeEnabledChannelRequest.encodeDelimited = function encodeDelimited(message, writer) { + QueryTotalAckFeesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryFeeEnabledChannelRequest message from the specified reader or buffer. + * Decodes a QueryTotalAckFeesRequest message from the specified reader or buffer. * @function decode - * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelRequest + * @memberof ibc.applications.fee.v1.QueryTotalAckFeesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.fee.v1.QueryFeeEnabledChannelRequest} QueryFeeEnabledChannelRequest + * @returns {ibc.applications.fee.v1.QueryTotalAckFeesRequest} QueryTotalAckFeesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryFeeEnabledChannelRequest.decode = function decode(reader, length) { + QueryTotalAckFeesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.QueryFeeEnabledChannelRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.QueryTotalAckFeesRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.port_id = reader.string(); - break; - case 2: - message.channel_id = reader.string(); + message.packet_id = $root.ibc.core.channel.v1.PacketId.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -25119,116 +31745,113 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a QueryFeeEnabledChannelRequest message from the specified reader or buffer, length delimited. + * Decodes a QueryTotalAckFeesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelRequest + * @memberof ibc.applications.fee.v1.QueryTotalAckFeesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.fee.v1.QueryFeeEnabledChannelRequest} QueryFeeEnabledChannelRequest + * @returns {ibc.applications.fee.v1.QueryTotalAckFeesRequest} QueryTotalAckFeesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryFeeEnabledChannelRequest.decodeDelimited = function decodeDelimited(reader) { + QueryTotalAckFeesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryFeeEnabledChannelRequest message. + * Verifies a QueryTotalAckFeesRequest message. * @function verify - * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelRequest + * @memberof ibc.applications.fee.v1.QueryTotalAckFeesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryFeeEnabledChannelRequest.verify = function verify(message) { + QueryTotalAckFeesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.port_id != null && message.hasOwnProperty("port_id")) - if (!$util.isString(message.port_id)) - return "port_id: string expected"; - if (message.channel_id != null && message.hasOwnProperty("channel_id")) - if (!$util.isString(message.channel_id)) - return "channel_id: string expected"; + if (message.packet_id != null && message.hasOwnProperty("packet_id")) { + let error = $root.ibc.core.channel.v1.PacketId.verify(message.packet_id); + if (error) + return "packet_id." + error; + } return null; }; /** - * Creates a QueryFeeEnabledChannelRequest message from a plain object. Also converts values to their respective internal types. + * Creates a QueryTotalAckFeesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelRequest + * @memberof ibc.applications.fee.v1.QueryTotalAckFeesRequest * @static * @param {Object.} object Plain object - * @returns {ibc.applications.fee.v1.QueryFeeEnabledChannelRequest} QueryFeeEnabledChannelRequest + * @returns {ibc.applications.fee.v1.QueryTotalAckFeesRequest} QueryTotalAckFeesRequest */ - QueryFeeEnabledChannelRequest.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.fee.v1.QueryFeeEnabledChannelRequest) + QueryTotalAckFeesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.fee.v1.QueryTotalAckFeesRequest) return object; - let message = new $root.ibc.applications.fee.v1.QueryFeeEnabledChannelRequest(); - if (object.port_id != null) - message.port_id = String(object.port_id); - if (object.channel_id != null) - message.channel_id = String(object.channel_id); + let message = new $root.ibc.applications.fee.v1.QueryTotalAckFeesRequest(); + if (object.packet_id != null) { + if (typeof object.packet_id !== "object") + throw TypeError(".ibc.applications.fee.v1.QueryTotalAckFeesRequest.packet_id: object expected"); + message.packet_id = $root.ibc.core.channel.v1.PacketId.fromObject(object.packet_id); + } return message; }; /** - * Creates a plain object from a QueryFeeEnabledChannelRequest message. Also converts values to other types if specified. + * Creates a plain object from a QueryTotalAckFeesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelRequest + * @memberof ibc.applications.fee.v1.QueryTotalAckFeesRequest * @static - * @param {ibc.applications.fee.v1.QueryFeeEnabledChannelRequest} message QueryFeeEnabledChannelRequest + * @param {ibc.applications.fee.v1.QueryTotalAckFeesRequest} message QueryTotalAckFeesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryFeeEnabledChannelRequest.toObject = function toObject(message, options) { + QueryTotalAckFeesRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) { - object.port_id = ""; - object.channel_id = ""; - } - if (message.port_id != null && message.hasOwnProperty("port_id")) - object.port_id = message.port_id; - if (message.channel_id != null && message.hasOwnProperty("channel_id")) - object.channel_id = message.channel_id; + if (options.defaults) + object.packet_id = null; + if (message.packet_id != null && message.hasOwnProperty("packet_id")) + object.packet_id = $root.ibc.core.channel.v1.PacketId.toObject(message.packet_id, options); return object; }; /** - * Converts this QueryFeeEnabledChannelRequest to JSON. + * Converts this QueryTotalAckFeesRequest to JSON. * @function toJSON - * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelRequest + * @memberof ibc.applications.fee.v1.QueryTotalAckFeesRequest * @instance * @returns {Object.} JSON object */ - QueryFeeEnabledChannelRequest.prototype.toJSON = function toJSON() { + QueryTotalAckFeesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryFeeEnabledChannelRequest; + return QueryTotalAckFeesRequest; })(); - v1.QueryFeeEnabledChannelResponse = (function() { + v1.QueryTotalAckFeesResponse = (function() { /** - * Properties of a QueryFeeEnabledChannelResponse. + * Properties of a QueryTotalAckFeesResponse. * @memberof ibc.applications.fee.v1 - * @interface IQueryFeeEnabledChannelResponse - * @property {boolean|null} [fee_enabled] QueryFeeEnabledChannelResponse fee_enabled + * @interface IQueryTotalAckFeesResponse + * @property {Array.|null} [ack_fees] QueryTotalAckFeesResponse ack_fees */ /** - * Constructs a new QueryFeeEnabledChannelResponse. + * Constructs a new QueryTotalAckFeesResponse. * @memberof ibc.applications.fee.v1 - * @classdesc Represents a QueryFeeEnabledChannelResponse. - * @implements IQueryFeeEnabledChannelResponse + * @classdesc Represents a QueryTotalAckFeesResponse. + * @implements IQueryTotalAckFeesResponse * @constructor - * @param {ibc.applications.fee.v1.IQueryFeeEnabledChannelResponse=} [properties] Properties to set + * @param {ibc.applications.fee.v1.IQueryTotalAckFeesResponse=} [properties] Properties to set */ - function QueryFeeEnabledChannelResponse(properties) { + function QueryTotalAckFeesResponse(properties) { + this.ack_fees = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -25236,63 +31859,66 @@ export const ibc = $root.ibc = (() => { } /** - * QueryFeeEnabledChannelResponse fee_enabled. - * @member {boolean} fee_enabled - * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelResponse + * QueryTotalAckFeesResponse ack_fees. + * @member {Array.} ack_fees + * @memberof ibc.applications.fee.v1.QueryTotalAckFeesResponse * @instance */ - QueryFeeEnabledChannelResponse.prototype.fee_enabled = false; + QueryTotalAckFeesResponse.prototype.ack_fees = $util.emptyArray; /** - * Encodes the specified QueryFeeEnabledChannelResponse message. Does not implicitly {@link ibc.applications.fee.v1.QueryFeeEnabledChannelResponse.verify|verify} messages. + * Encodes the specified QueryTotalAckFeesResponse message. Does not implicitly {@link ibc.applications.fee.v1.QueryTotalAckFeesResponse.verify|verify} messages. * @function encode - * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelResponse + * @memberof ibc.applications.fee.v1.QueryTotalAckFeesResponse * @static - * @param {ibc.applications.fee.v1.IQueryFeeEnabledChannelResponse} message QueryFeeEnabledChannelResponse message or plain object to encode + * @param {ibc.applications.fee.v1.IQueryTotalAckFeesResponse} message QueryTotalAckFeesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryFeeEnabledChannelResponse.encode = function encode(message, writer) { + QueryTotalAckFeesResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.fee_enabled != null && Object.hasOwnProperty.call(message, "fee_enabled")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.fee_enabled); + if (message.ack_fees != null && message.ack_fees.length) + for (let i = 0; i < message.ack_fees.length; ++i) + $root.cosmos.base.v1beta1.Coin.encode(message.ack_fees[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified QueryFeeEnabledChannelResponse message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.QueryFeeEnabledChannelResponse.verify|verify} messages. + * Encodes the specified QueryTotalAckFeesResponse message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.QueryTotalAckFeesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelResponse + * @memberof ibc.applications.fee.v1.QueryTotalAckFeesResponse * @static - * @param {ibc.applications.fee.v1.IQueryFeeEnabledChannelResponse} message QueryFeeEnabledChannelResponse message or plain object to encode + * @param {ibc.applications.fee.v1.IQueryTotalAckFeesResponse} message QueryTotalAckFeesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryFeeEnabledChannelResponse.encodeDelimited = function encodeDelimited(message, writer) { + QueryTotalAckFeesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryFeeEnabledChannelResponse message from the specified reader or buffer. + * Decodes a QueryTotalAckFeesResponse message from the specified reader or buffer. * @function decode - * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelResponse + * @memberof ibc.applications.fee.v1.QueryTotalAckFeesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.fee.v1.QueryFeeEnabledChannelResponse} QueryFeeEnabledChannelResponse + * @returns {ibc.applications.fee.v1.QueryTotalAckFeesResponse} QueryTotalAckFeesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryFeeEnabledChannelResponse.decode = function decode(reader, length) { + QueryTotalAckFeesResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.QueryFeeEnabledChannelResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.QueryTotalAckFeesResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.fee_enabled = reader.bool(); + if (!(message.ack_fees && message.ack_fees.length)) + message.ack_fees = []; + message.ack_fees.push($root.cosmos.base.v1beta1.Coin.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -25303,116 +31929,124 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a QueryFeeEnabledChannelResponse message from the specified reader or buffer, length delimited. + * Decodes a QueryTotalAckFeesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelResponse + * @memberof ibc.applications.fee.v1.QueryTotalAckFeesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.fee.v1.QueryFeeEnabledChannelResponse} QueryFeeEnabledChannelResponse + * @returns {ibc.applications.fee.v1.QueryTotalAckFeesResponse} QueryTotalAckFeesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryFeeEnabledChannelResponse.decodeDelimited = function decodeDelimited(reader) { + QueryTotalAckFeesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryFeeEnabledChannelResponse message. + * Verifies a QueryTotalAckFeesResponse message. * @function verify - * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelResponse + * @memberof ibc.applications.fee.v1.QueryTotalAckFeesResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryFeeEnabledChannelResponse.verify = function verify(message) { + QueryTotalAckFeesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.fee_enabled != null && message.hasOwnProperty("fee_enabled")) - if (typeof message.fee_enabled !== "boolean") - return "fee_enabled: boolean expected"; + if (message.ack_fees != null && message.hasOwnProperty("ack_fees")) { + if (!Array.isArray(message.ack_fees)) + return "ack_fees: array expected"; + for (let i = 0; i < message.ack_fees.length; ++i) { + let error = $root.cosmos.base.v1beta1.Coin.verify(message.ack_fees[i]); + if (error) + return "ack_fees." + error; + } + } return null; }; /** - * Creates a QueryFeeEnabledChannelResponse message from a plain object. Also converts values to their respective internal types. + * Creates a QueryTotalAckFeesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelResponse + * @memberof ibc.applications.fee.v1.QueryTotalAckFeesResponse * @static * @param {Object.} object Plain object - * @returns {ibc.applications.fee.v1.QueryFeeEnabledChannelResponse} QueryFeeEnabledChannelResponse + * @returns {ibc.applications.fee.v1.QueryTotalAckFeesResponse} QueryTotalAckFeesResponse */ - QueryFeeEnabledChannelResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.fee.v1.QueryFeeEnabledChannelResponse) + QueryTotalAckFeesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.fee.v1.QueryTotalAckFeesResponse) return object; - let message = new $root.ibc.applications.fee.v1.QueryFeeEnabledChannelResponse(); - if (object.fee_enabled != null) - message.fee_enabled = Boolean(object.fee_enabled); + let message = new $root.ibc.applications.fee.v1.QueryTotalAckFeesResponse(); + if (object.ack_fees) { + if (!Array.isArray(object.ack_fees)) + throw TypeError(".ibc.applications.fee.v1.QueryTotalAckFeesResponse.ack_fees: array expected"); + message.ack_fees = []; + for (let i = 0; i < object.ack_fees.length; ++i) { + if (typeof object.ack_fees[i] !== "object") + throw TypeError(".ibc.applications.fee.v1.QueryTotalAckFeesResponse.ack_fees: object expected"); + message.ack_fees[i] = $root.cosmos.base.v1beta1.Coin.fromObject(object.ack_fees[i]); + } + } return message; }; /** - * Creates a plain object from a QueryFeeEnabledChannelResponse message. Also converts values to other types if specified. + * Creates a plain object from a QueryTotalAckFeesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelResponse + * @memberof ibc.applications.fee.v1.QueryTotalAckFeesResponse * @static - * @param {ibc.applications.fee.v1.QueryFeeEnabledChannelResponse} message QueryFeeEnabledChannelResponse + * @param {ibc.applications.fee.v1.QueryTotalAckFeesResponse} message QueryTotalAckFeesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryFeeEnabledChannelResponse.toObject = function toObject(message, options) { + QueryTotalAckFeesResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) - object.fee_enabled = false; - if (message.fee_enabled != null && message.hasOwnProperty("fee_enabled")) - object.fee_enabled = message.fee_enabled; + if (options.arrays || options.defaults) + object.ack_fees = []; + if (message.ack_fees && message.ack_fees.length) { + object.ack_fees = []; + for (let j = 0; j < message.ack_fees.length; ++j) + object.ack_fees[j] = $root.cosmos.base.v1beta1.Coin.toObject(message.ack_fees[j], options); + } return object; }; /** - * Converts this QueryFeeEnabledChannelResponse to JSON. + * Converts this QueryTotalAckFeesResponse to JSON. * @function toJSON - * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelResponse + * @memberof ibc.applications.fee.v1.QueryTotalAckFeesResponse * @instance * @returns {Object.} JSON object */ - QueryFeeEnabledChannelResponse.prototype.toJSON = function toJSON() { + QueryTotalAckFeesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryFeeEnabledChannelResponse; + return QueryTotalAckFeesResponse; })(); - v1.GenesisState = (function() { + v1.QueryTotalTimeoutFeesRequest = (function() { /** - * Properties of a GenesisState. + * Properties of a QueryTotalTimeoutFeesRequest. * @memberof ibc.applications.fee.v1 - * @interface IGenesisState - * @property {Array.|null} [identified_fees] GenesisState identified_fees - * @property {Array.|null} [fee_enabled_channels] GenesisState fee_enabled_channels - * @property {Array.|null} [registered_payees] GenesisState registered_payees - * @property {Array.|null} [registered_counterparty_payees] GenesisState registered_counterparty_payees - * @property {Array.|null} [forward_relayers] GenesisState forward_relayers + * @interface IQueryTotalTimeoutFeesRequest + * @property {ibc.core.channel.v1.IPacketId|null} [packet_id] QueryTotalTimeoutFeesRequest packet_id */ /** - * Constructs a new GenesisState. + * Constructs a new QueryTotalTimeoutFeesRequest. * @memberof ibc.applications.fee.v1 - * @classdesc Represents a GenesisState. - * @implements IGenesisState + * @classdesc Represents a QueryTotalTimeoutFeesRequest. + * @implements IQueryTotalTimeoutFeesRequest * @constructor - * @param {ibc.applications.fee.v1.IGenesisState=} [properties] Properties to set + * @param {ibc.applications.fee.v1.IQueryTotalTimeoutFeesRequest=} [properties] Properties to set */ - function GenesisState(properties) { - this.identified_fees = []; - this.fee_enabled_channels = []; - this.registered_payees = []; - this.registered_counterparty_payees = []; - this.forward_relayers = []; + function QueryTotalTimeoutFeesRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -25420,130 +32054,63 @@ export const ibc = $root.ibc = (() => { } /** - * GenesisState identified_fees. - * @member {Array.} identified_fees - * @memberof ibc.applications.fee.v1.GenesisState - * @instance - */ - GenesisState.prototype.identified_fees = $util.emptyArray; - - /** - * GenesisState fee_enabled_channels. - * @member {Array.} fee_enabled_channels - * @memberof ibc.applications.fee.v1.GenesisState - * @instance - */ - GenesisState.prototype.fee_enabled_channels = $util.emptyArray; - - /** - * GenesisState registered_payees. - * @member {Array.} registered_payees - * @memberof ibc.applications.fee.v1.GenesisState - * @instance - */ - GenesisState.prototype.registered_payees = $util.emptyArray; - - /** - * GenesisState registered_counterparty_payees. - * @member {Array.} registered_counterparty_payees - * @memberof ibc.applications.fee.v1.GenesisState - * @instance - */ - GenesisState.prototype.registered_counterparty_payees = $util.emptyArray; - - /** - * GenesisState forward_relayers. - * @member {Array.} forward_relayers - * @memberof ibc.applications.fee.v1.GenesisState + * QueryTotalTimeoutFeesRequest packet_id. + * @member {ibc.core.channel.v1.IPacketId|null|undefined} packet_id + * @memberof ibc.applications.fee.v1.QueryTotalTimeoutFeesRequest * @instance */ - GenesisState.prototype.forward_relayers = $util.emptyArray; + QueryTotalTimeoutFeesRequest.prototype.packet_id = null; /** - * Encodes the specified GenesisState message. Does not implicitly {@link ibc.applications.fee.v1.GenesisState.verify|verify} messages. + * Encodes the specified QueryTotalTimeoutFeesRequest message. Does not implicitly {@link ibc.applications.fee.v1.QueryTotalTimeoutFeesRequest.verify|verify} messages. * @function encode - * @memberof ibc.applications.fee.v1.GenesisState + * @memberof ibc.applications.fee.v1.QueryTotalTimeoutFeesRequest * @static - * @param {ibc.applications.fee.v1.IGenesisState} message GenesisState message or plain object to encode + * @param {ibc.applications.fee.v1.IQueryTotalTimeoutFeesRequest} message QueryTotalTimeoutFeesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GenesisState.encode = function encode(message, writer) { + QueryTotalTimeoutFeesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.identified_fees != null && message.identified_fees.length) - for (let i = 0; i < message.identified_fees.length; ++i) - $root.ibc.applications.fee.v1.IdentifiedPacketFees.encode(message.identified_fees[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.fee_enabled_channels != null && message.fee_enabled_channels.length) - for (let i = 0; i < message.fee_enabled_channels.length; ++i) - $root.ibc.applications.fee.v1.FeeEnabledChannel.encode(message.fee_enabled_channels[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.registered_payees != null && message.registered_payees.length) - for (let i = 0; i < message.registered_payees.length; ++i) - $root.ibc.applications.fee.v1.RegisteredPayee.encode(message.registered_payees[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.registered_counterparty_payees != null && message.registered_counterparty_payees.length) - for (let i = 0; i < message.registered_counterparty_payees.length; ++i) - $root.ibc.applications.fee.v1.RegisteredCounterpartyPayee.encode(message.registered_counterparty_payees[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.forward_relayers != null && message.forward_relayers.length) - for (let i = 0; i < message.forward_relayers.length; ++i) - $root.ibc.applications.fee.v1.ForwardRelayerAddress.encode(message.forward_relayers[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.packet_id != null && Object.hasOwnProperty.call(message, "packet_id")) + $root.ibc.core.channel.v1.PacketId.encode(message.packet_id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified GenesisState message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.GenesisState.verify|verify} messages. + * Encodes the specified QueryTotalTimeoutFeesRequest message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.QueryTotalTimeoutFeesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.applications.fee.v1.GenesisState + * @memberof ibc.applications.fee.v1.QueryTotalTimeoutFeesRequest * @static - * @param {ibc.applications.fee.v1.IGenesisState} message GenesisState message or plain object to encode + * @param {ibc.applications.fee.v1.IQueryTotalTimeoutFeesRequest} message QueryTotalTimeoutFeesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GenesisState.encodeDelimited = function encodeDelimited(message, writer) { + QueryTotalTimeoutFeesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GenesisState message from the specified reader or buffer. + * Decodes a QueryTotalTimeoutFeesRequest message from the specified reader or buffer. * @function decode - * @memberof ibc.applications.fee.v1.GenesisState + * @memberof ibc.applications.fee.v1.QueryTotalTimeoutFeesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.fee.v1.GenesisState} GenesisState + * @returns {ibc.applications.fee.v1.QueryTotalTimeoutFeesRequest} QueryTotalTimeoutFeesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GenesisState.decode = function decode(reader, length) { + QueryTotalTimeoutFeesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.GenesisState(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.QueryTotalTimeoutFeesRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.identified_fees && message.identified_fees.length)) - message.identified_fees = []; - message.identified_fees.push($root.ibc.applications.fee.v1.IdentifiedPacketFees.decode(reader, reader.uint32())); - break; - case 2: - if (!(message.fee_enabled_channels && message.fee_enabled_channels.length)) - message.fee_enabled_channels = []; - message.fee_enabled_channels.push($root.ibc.applications.fee.v1.FeeEnabledChannel.decode(reader, reader.uint32())); - break; - case 3: - if (!(message.registered_payees && message.registered_payees.length)) - message.registered_payees = []; - message.registered_payees.push($root.ibc.applications.fee.v1.RegisteredPayee.decode(reader, reader.uint32())); - break; - case 4: - if (!(message.registered_counterparty_payees && message.registered_counterparty_payees.length)) - message.registered_counterparty_payees = []; - message.registered_counterparty_payees.push($root.ibc.applications.fee.v1.RegisteredCounterpartyPayee.decode(reader, reader.uint32())); - break; - case 5: - if (!(message.forward_relayers && message.forward_relayers.length)) - message.forward_relayers = []; - message.forward_relayers.push($root.ibc.applications.fee.v1.ForwardRelayerAddress.decode(reader, reader.uint32())); + message.packet_id = $root.ibc.core.channel.v1.PacketId.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -25554,303 +32121,180 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a GenesisState message from the specified reader or buffer, length delimited. + * Decodes a QueryTotalTimeoutFeesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.applications.fee.v1.GenesisState + * @memberof ibc.applications.fee.v1.QueryTotalTimeoutFeesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.fee.v1.GenesisState} GenesisState + * @returns {ibc.applications.fee.v1.QueryTotalTimeoutFeesRequest} QueryTotalTimeoutFeesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GenesisState.decodeDelimited = function decodeDelimited(reader) { + QueryTotalTimeoutFeesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GenesisState message. + * Verifies a QueryTotalTimeoutFeesRequest message. * @function verify - * @memberof ibc.applications.fee.v1.GenesisState + * @memberof ibc.applications.fee.v1.QueryTotalTimeoutFeesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GenesisState.verify = function verify(message) { + QueryTotalTimeoutFeesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.identified_fees != null && message.hasOwnProperty("identified_fees")) { - if (!Array.isArray(message.identified_fees)) - return "identified_fees: array expected"; - for (let i = 0; i < message.identified_fees.length; ++i) { - let error = $root.ibc.applications.fee.v1.IdentifiedPacketFees.verify(message.identified_fees[i]); - if (error) - return "identified_fees." + error; - } - } - if (message.fee_enabled_channels != null && message.hasOwnProperty("fee_enabled_channels")) { - if (!Array.isArray(message.fee_enabled_channels)) - return "fee_enabled_channels: array expected"; - for (let i = 0; i < message.fee_enabled_channels.length; ++i) { - let error = $root.ibc.applications.fee.v1.FeeEnabledChannel.verify(message.fee_enabled_channels[i]); - if (error) - return "fee_enabled_channels." + error; - } - } - if (message.registered_payees != null && message.hasOwnProperty("registered_payees")) { - if (!Array.isArray(message.registered_payees)) - return "registered_payees: array expected"; - for (let i = 0; i < message.registered_payees.length; ++i) { - let error = $root.ibc.applications.fee.v1.RegisteredPayee.verify(message.registered_payees[i]); - if (error) - return "registered_payees." + error; - } - } - if (message.registered_counterparty_payees != null && message.hasOwnProperty("registered_counterparty_payees")) { - if (!Array.isArray(message.registered_counterparty_payees)) - return "registered_counterparty_payees: array expected"; - for (let i = 0; i < message.registered_counterparty_payees.length; ++i) { - let error = $root.ibc.applications.fee.v1.RegisteredCounterpartyPayee.verify(message.registered_counterparty_payees[i]); - if (error) - return "registered_counterparty_payees." + error; - } - } - if (message.forward_relayers != null && message.hasOwnProperty("forward_relayers")) { - if (!Array.isArray(message.forward_relayers)) - return "forward_relayers: array expected"; - for (let i = 0; i < message.forward_relayers.length; ++i) { - let error = $root.ibc.applications.fee.v1.ForwardRelayerAddress.verify(message.forward_relayers[i]); - if (error) - return "forward_relayers." + error; - } + if (message.packet_id != null && message.hasOwnProperty("packet_id")) { + let error = $root.ibc.core.channel.v1.PacketId.verify(message.packet_id); + if (error) + return "packet_id." + error; } return null; }; /** - * Creates a GenesisState message from a plain object. Also converts values to their respective internal types. + * Creates a QueryTotalTimeoutFeesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.applications.fee.v1.GenesisState + * @memberof ibc.applications.fee.v1.QueryTotalTimeoutFeesRequest * @static * @param {Object.} object Plain object - * @returns {ibc.applications.fee.v1.GenesisState} GenesisState + * @returns {ibc.applications.fee.v1.QueryTotalTimeoutFeesRequest} QueryTotalTimeoutFeesRequest */ - GenesisState.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.fee.v1.GenesisState) + QueryTotalTimeoutFeesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.fee.v1.QueryTotalTimeoutFeesRequest) return object; - let message = new $root.ibc.applications.fee.v1.GenesisState(); - if (object.identified_fees) { - if (!Array.isArray(object.identified_fees)) - throw TypeError(".ibc.applications.fee.v1.GenesisState.identified_fees: array expected"); - message.identified_fees = []; - for (let i = 0; i < object.identified_fees.length; ++i) { - if (typeof object.identified_fees[i] !== "object") - throw TypeError(".ibc.applications.fee.v1.GenesisState.identified_fees: object expected"); - message.identified_fees[i] = $root.ibc.applications.fee.v1.IdentifiedPacketFees.fromObject(object.identified_fees[i]); - } - } - if (object.fee_enabled_channels) { - if (!Array.isArray(object.fee_enabled_channels)) - throw TypeError(".ibc.applications.fee.v1.GenesisState.fee_enabled_channels: array expected"); - message.fee_enabled_channels = []; - for (let i = 0; i < object.fee_enabled_channels.length; ++i) { - if (typeof object.fee_enabled_channels[i] !== "object") - throw TypeError(".ibc.applications.fee.v1.GenesisState.fee_enabled_channels: object expected"); - message.fee_enabled_channels[i] = $root.ibc.applications.fee.v1.FeeEnabledChannel.fromObject(object.fee_enabled_channels[i]); - } - } - if (object.registered_payees) { - if (!Array.isArray(object.registered_payees)) - throw TypeError(".ibc.applications.fee.v1.GenesisState.registered_payees: array expected"); - message.registered_payees = []; - for (let i = 0; i < object.registered_payees.length; ++i) { - if (typeof object.registered_payees[i] !== "object") - throw TypeError(".ibc.applications.fee.v1.GenesisState.registered_payees: object expected"); - message.registered_payees[i] = $root.ibc.applications.fee.v1.RegisteredPayee.fromObject(object.registered_payees[i]); - } - } - if (object.registered_counterparty_payees) { - if (!Array.isArray(object.registered_counterparty_payees)) - throw TypeError(".ibc.applications.fee.v1.GenesisState.registered_counterparty_payees: array expected"); - message.registered_counterparty_payees = []; - for (let i = 0; i < object.registered_counterparty_payees.length; ++i) { - if (typeof object.registered_counterparty_payees[i] !== "object") - throw TypeError(".ibc.applications.fee.v1.GenesisState.registered_counterparty_payees: object expected"); - message.registered_counterparty_payees[i] = $root.ibc.applications.fee.v1.RegisteredCounterpartyPayee.fromObject(object.registered_counterparty_payees[i]); - } - } - if (object.forward_relayers) { - if (!Array.isArray(object.forward_relayers)) - throw TypeError(".ibc.applications.fee.v1.GenesisState.forward_relayers: array expected"); - message.forward_relayers = []; - for (let i = 0; i < object.forward_relayers.length; ++i) { - if (typeof object.forward_relayers[i] !== "object") - throw TypeError(".ibc.applications.fee.v1.GenesisState.forward_relayers: object expected"); - message.forward_relayers[i] = $root.ibc.applications.fee.v1.ForwardRelayerAddress.fromObject(object.forward_relayers[i]); - } + let message = new $root.ibc.applications.fee.v1.QueryTotalTimeoutFeesRequest(); + if (object.packet_id != null) { + if (typeof object.packet_id !== "object") + throw TypeError(".ibc.applications.fee.v1.QueryTotalTimeoutFeesRequest.packet_id: object expected"); + message.packet_id = $root.ibc.core.channel.v1.PacketId.fromObject(object.packet_id); } return message; }; /** - * Creates a plain object from a GenesisState message. Also converts values to other types if specified. + * Creates a plain object from a QueryTotalTimeoutFeesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.applications.fee.v1.GenesisState + * @memberof ibc.applications.fee.v1.QueryTotalTimeoutFeesRequest * @static - * @param {ibc.applications.fee.v1.GenesisState} message GenesisState + * @param {ibc.applications.fee.v1.QueryTotalTimeoutFeesRequest} message QueryTotalTimeoutFeesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GenesisState.toObject = function toObject(message, options) { + QueryTotalTimeoutFeesRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) { - object.identified_fees = []; - object.fee_enabled_channels = []; - object.registered_payees = []; - object.registered_counterparty_payees = []; - object.forward_relayers = []; - } - if (message.identified_fees && message.identified_fees.length) { - object.identified_fees = []; - for (let j = 0; j < message.identified_fees.length; ++j) - object.identified_fees[j] = $root.ibc.applications.fee.v1.IdentifiedPacketFees.toObject(message.identified_fees[j], options); - } - if (message.fee_enabled_channels && message.fee_enabled_channels.length) { - object.fee_enabled_channels = []; - for (let j = 0; j < message.fee_enabled_channels.length; ++j) - object.fee_enabled_channels[j] = $root.ibc.applications.fee.v1.FeeEnabledChannel.toObject(message.fee_enabled_channels[j], options); - } - if (message.registered_payees && message.registered_payees.length) { - object.registered_payees = []; - for (let j = 0; j < message.registered_payees.length; ++j) - object.registered_payees[j] = $root.ibc.applications.fee.v1.RegisteredPayee.toObject(message.registered_payees[j], options); - } - if (message.registered_counterparty_payees && message.registered_counterparty_payees.length) { - object.registered_counterparty_payees = []; - for (let j = 0; j < message.registered_counterparty_payees.length; ++j) - object.registered_counterparty_payees[j] = $root.ibc.applications.fee.v1.RegisteredCounterpartyPayee.toObject(message.registered_counterparty_payees[j], options); - } - if (message.forward_relayers && message.forward_relayers.length) { - object.forward_relayers = []; - for (let j = 0; j < message.forward_relayers.length; ++j) - object.forward_relayers[j] = $root.ibc.applications.fee.v1.ForwardRelayerAddress.toObject(message.forward_relayers[j], options); - } + if (options.defaults) + object.packet_id = null; + if (message.packet_id != null && message.hasOwnProperty("packet_id")) + object.packet_id = $root.ibc.core.channel.v1.PacketId.toObject(message.packet_id, options); return object; }; /** - * Converts this GenesisState to JSON. + * Converts this QueryTotalTimeoutFeesRequest to JSON. * @function toJSON - * @memberof ibc.applications.fee.v1.GenesisState + * @memberof ibc.applications.fee.v1.QueryTotalTimeoutFeesRequest * @instance * @returns {Object.} JSON object */ - GenesisState.prototype.toJSON = function toJSON() { + QueryTotalTimeoutFeesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GenesisState; + return QueryTotalTimeoutFeesRequest; })(); - v1.FeeEnabledChannel = (function() { + v1.QueryTotalTimeoutFeesResponse = (function() { /** - * Properties of a FeeEnabledChannel. + * Properties of a QueryTotalTimeoutFeesResponse. * @memberof ibc.applications.fee.v1 - * @interface IFeeEnabledChannel - * @property {string|null} [port_id] FeeEnabledChannel port_id - * @property {string|null} [channel_id] FeeEnabledChannel channel_id + * @interface IQueryTotalTimeoutFeesResponse + * @property {Array.|null} [timeout_fees] QueryTotalTimeoutFeesResponse timeout_fees */ /** - * Constructs a new FeeEnabledChannel. + * Constructs a new QueryTotalTimeoutFeesResponse. * @memberof ibc.applications.fee.v1 - * @classdesc Represents a FeeEnabledChannel. - * @implements IFeeEnabledChannel + * @classdesc Represents a QueryTotalTimeoutFeesResponse. + * @implements IQueryTotalTimeoutFeesResponse * @constructor - * @param {ibc.applications.fee.v1.IFeeEnabledChannel=} [properties] Properties to set - */ - function FeeEnabledChannel(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * FeeEnabledChannel port_id. - * @member {string} port_id - * @memberof ibc.applications.fee.v1.FeeEnabledChannel - * @instance + * @param {ibc.applications.fee.v1.IQueryTotalTimeoutFeesResponse=} [properties] Properties to set */ - FeeEnabledChannel.prototype.port_id = ""; + function QueryTotalTimeoutFeesResponse(properties) { + this.timeout_fees = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * FeeEnabledChannel channel_id. - * @member {string} channel_id - * @memberof ibc.applications.fee.v1.FeeEnabledChannel + * QueryTotalTimeoutFeesResponse timeout_fees. + * @member {Array.} timeout_fees + * @memberof ibc.applications.fee.v1.QueryTotalTimeoutFeesResponse * @instance */ - FeeEnabledChannel.prototype.channel_id = ""; + QueryTotalTimeoutFeesResponse.prototype.timeout_fees = $util.emptyArray; /** - * Encodes the specified FeeEnabledChannel message. Does not implicitly {@link ibc.applications.fee.v1.FeeEnabledChannel.verify|verify} messages. + * Encodes the specified QueryTotalTimeoutFeesResponse message. Does not implicitly {@link ibc.applications.fee.v1.QueryTotalTimeoutFeesResponse.verify|verify} messages. * @function encode - * @memberof ibc.applications.fee.v1.FeeEnabledChannel + * @memberof ibc.applications.fee.v1.QueryTotalTimeoutFeesResponse * @static - * @param {ibc.applications.fee.v1.IFeeEnabledChannel} message FeeEnabledChannel message or plain object to encode + * @param {ibc.applications.fee.v1.IQueryTotalTimeoutFeesResponse} message QueryTotalTimeoutFeesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FeeEnabledChannel.encode = function encode(message, writer) { + QueryTotalTimeoutFeesResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.port_id != null && Object.hasOwnProperty.call(message, "port_id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.port_id); - if (message.channel_id != null && Object.hasOwnProperty.call(message, "channel_id")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.channel_id); + if (message.timeout_fees != null && message.timeout_fees.length) + for (let i = 0; i < message.timeout_fees.length; ++i) + $root.cosmos.base.v1beta1.Coin.encode(message.timeout_fees[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified FeeEnabledChannel message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.FeeEnabledChannel.verify|verify} messages. + * Encodes the specified QueryTotalTimeoutFeesResponse message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.QueryTotalTimeoutFeesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.applications.fee.v1.FeeEnabledChannel + * @memberof ibc.applications.fee.v1.QueryTotalTimeoutFeesResponse * @static - * @param {ibc.applications.fee.v1.IFeeEnabledChannel} message FeeEnabledChannel message or plain object to encode + * @param {ibc.applications.fee.v1.IQueryTotalTimeoutFeesResponse} message QueryTotalTimeoutFeesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FeeEnabledChannel.encodeDelimited = function encodeDelimited(message, writer) { + QueryTotalTimeoutFeesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a FeeEnabledChannel message from the specified reader or buffer. + * Decodes a QueryTotalTimeoutFeesResponse message from the specified reader or buffer. * @function decode - * @memberof ibc.applications.fee.v1.FeeEnabledChannel + * @memberof ibc.applications.fee.v1.QueryTotalTimeoutFeesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.fee.v1.FeeEnabledChannel} FeeEnabledChannel + * @returns {ibc.applications.fee.v1.QueryTotalTimeoutFeesResponse} QueryTotalTimeoutFeesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FeeEnabledChannel.decode = function decode(reader, length) { + QueryTotalTimeoutFeesResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.FeeEnabledChannel(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.QueryTotalTimeoutFeesResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.port_id = reader.string(); - break; - case 2: - message.channel_id = reader.string(); + if (!(message.timeout_fees && message.timeout_fees.length)) + message.timeout_fees = []; + message.timeout_fees.push($root.cosmos.base.v1beta1.Coin.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -25861,118 +32305,125 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a FeeEnabledChannel message from the specified reader or buffer, length delimited. + * Decodes a QueryTotalTimeoutFeesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.applications.fee.v1.FeeEnabledChannel + * @memberof ibc.applications.fee.v1.QueryTotalTimeoutFeesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.fee.v1.FeeEnabledChannel} FeeEnabledChannel + * @returns {ibc.applications.fee.v1.QueryTotalTimeoutFeesResponse} QueryTotalTimeoutFeesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FeeEnabledChannel.decodeDelimited = function decodeDelimited(reader) { + QueryTotalTimeoutFeesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a FeeEnabledChannel message. + * Verifies a QueryTotalTimeoutFeesResponse message. * @function verify - * @memberof ibc.applications.fee.v1.FeeEnabledChannel + * @memberof ibc.applications.fee.v1.QueryTotalTimeoutFeesResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FeeEnabledChannel.verify = function verify(message) { + QueryTotalTimeoutFeesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.port_id != null && message.hasOwnProperty("port_id")) - if (!$util.isString(message.port_id)) - return "port_id: string expected"; - if (message.channel_id != null && message.hasOwnProperty("channel_id")) - if (!$util.isString(message.channel_id)) - return "channel_id: string expected"; + if (message.timeout_fees != null && message.hasOwnProperty("timeout_fees")) { + if (!Array.isArray(message.timeout_fees)) + return "timeout_fees: array expected"; + for (let i = 0; i < message.timeout_fees.length; ++i) { + let error = $root.cosmos.base.v1beta1.Coin.verify(message.timeout_fees[i]); + if (error) + return "timeout_fees." + error; + } + } return null; }; /** - * Creates a FeeEnabledChannel message from a plain object. Also converts values to their respective internal types. + * Creates a QueryTotalTimeoutFeesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.applications.fee.v1.FeeEnabledChannel + * @memberof ibc.applications.fee.v1.QueryTotalTimeoutFeesResponse * @static * @param {Object.} object Plain object - * @returns {ibc.applications.fee.v1.FeeEnabledChannel} FeeEnabledChannel + * @returns {ibc.applications.fee.v1.QueryTotalTimeoutFeesResponse} QueryTotalTimeoutFeesResponse */ - FeeEnabledChannel.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.fee.v1.FeeEnabledChannel) + QueryTotalTimeoutFeesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.fee.v1.QueryTotalTimeoutFeesResponse) return object; - let message = new $root.ibc.applications.fee.v1.FeeEnabledChannel(); - if (object.port_id != null) - message.port_id = String(object.port_id); - if (object.channel_id != null) - message.channel_id = String(object.channel_id); + let message = new $root.ibc.applications.fee.v1.QueryTotalTimeoutFeesResponse(); + if (object.timeout_fees) { + if (!Array.isArray(object.timeout_fees)) + throw TypeError(".ibc.applications.fee.v1.QueryTotalTimeoutFeesResponse.timeout_fees: array expected"); + message.timeout_fees = []; + for (let i = 0; i < object.timeout_fees.length; ++i) { + if (typeof object.timeout_fees[i] !== "object") + throw TypeError(".ibc.applications.fee.v1.QueryTotalTimeoutFeesResponse.timeout_fees: object expected"); + message.timeout_fees[i] = $root.cosmos.base.v1beta1.Coin.fromObject(object.timeout_fees[i]); + } + } return message; }; /** - * Creates a plain object from a FeeEnabledChannel message. Also converts values to other types if specified. + * Creates a plain object from a QueryTotalTimeoutFeesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.applications.fee.v1.FeeEnabledChannel + * @memberof ibc.applications.fee.v1.QueryTotalTimeoutFeesResponse * @static - * @param {ibc.applications.fee.v1.FeeEnabledChannel} message FeeEnabledChannel + * @param {ibc.applications.fee.v1.QueryTotalTimeoutFeesResponse} message QueryTotalTimeoutFeesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FeeEnabledChannel.toObject = function toObject(message, options) { + QueryTotalTimeoutFeesResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) { - object.port_id = ""; - object.channel_id = ""; + if (options.arrays || options.defaults) + object.timeout_fees = []; + if (message.timeout_fees && message.timeout_fees.length) { + object.timeout_fees = []; + for (let j = 0; j < message.timeout_fees.length; ++j) + object.timeout_fees[j] = $root.cosmos.base.v1beta1.Coin.toObject(message.timeout_fees[j], options); } - if (message.port_id != null && message.hasOwnProperty("port_id")) - object.port_id = message.port_id; - if (message.channel_id != null && message.hasOwnProperty("channel_id")) - object.channel_id = message.channel_id; return object; }; /** - * Converts this FeeEnabledChannel to JSON. + * Converts this QueryTotalTimeoutFeesResponse to JSON. * @function toJSON - * @memberof ibc.applications.fee.v1.FeeEnabledChannel + * @memberof ibc.applications.fee.v1.QueryTotalTimeoutFeesResponse * @instance * @returns {Object.} JSON object */ - FeeEnabledChannel.prototype.toJSON = function toJSON() { + QueryTotalTimeoutFeesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return FeeEnabledChannel; + return QueryTotalTimeoutFeesResponse; })(); - v1.RegisteredPayee = (function() { + v1.QueryPayeeRequest = (function() { /** - * Properties of a RegisteredPayee. + * Properties of a QueryPayeeRequest. * @memberof ibc.applications.fee.v1 - * @interface IRegisteredPayee - * @property {string|null} [channel_id] RegisteredPayee channel_id - * @property {string|null} [relayer] RegisteredPayee relayer - * @property {string|null} [payee] RegisteredPayee payee + * @interface IQueryPayeeRequest + * @property {string|null} [channel_id] QueryPayeeRequest channel_id + * @property {string|null} [relayer] QueryPayeeRequest relayer */ /** - * Constructs a new RegisteredPayee. + * Constructs a new QueryPayeeRequest. * @memberof ibc.applications.fee.v1 - * @classdesc Represents a RegisteredPayee. - * @implements IRegisteredPayee + * @classdesc Represents a QueryPayeeRequest. + * @implements IQueryPayeeRequest * @constructor - * @param {ibc.applications.fee.v1.IRegisteredPayee=} [properties] Properties to set + * @param {ibc.applications.fee.v1.IQueryPayeeRequest=} [properties] Properties to set */ - function RegisteredPayee(properties) { + function QueryPayeeRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -25980,78 +32431,68 @@ export const ibc = $root.ibc = (() => { } /** - * RegisteredPayee channel_id. + * QueryPayeeRequest channel_id. * @member {string} channel_id - * @memberof ibc.applications.fee.v1.RegisteredPayee + * @memberof ibc.applications.fee.v1.QueryPayeeRequest * @instance */ - RegisteredPayee.prototype.channel_id = ""; + QueryPayeeRequest.prototype.channel_id = ""; /** - * RegisteredPayee relayer. + * QueryPayeeRequest relayer. * @member {string} relayer - * @memberof ibc.applications.fee.v1.RegisteredPayee - * @instance - */ - RegisteredPayee.prototype.relayer = ""; - - /** - * RegisteredPayee payee. - * @member {string} payee - * @memberof ibc.applications.fee.v1.RegisteredPayee + * @memberof ibc.applications.fee.v1.QueryPayeeRequest * @instance */ - RegisteredPayee.prototype.payee = ""; + QueryPayeeRequest.prototype.relayer = ""; /** - * Encodes the specified RegisteredPayee message. Does not implicitly {@link ibc.applications.fee.v1.RegisteredPayee.verify|verify} messages. + * Encodes the specified QueryPayeeRequest message. Does not implicitly {@link ibc.applications.fee.v1.QueryPayeeRequest.verify|verify} messages. * @function encode - * @memberof ibc.applications.fee.v1.RegisteredPayee + * @memberof ibc.applications.fee.v1.QueryPayeeRequest * @static - * @param {ibc.applications.fee.v1.IRegisteredPayee} message RegisteredPayee message or plain object to encode + * @param {ibc.applications.fee.v1.IQueryPayeeRequest} message QueryPayeeRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RegisteredPayee.encode = function encode(message, writer) { + QueryPayeeRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.channel_id != null && Object.hasOwnProperty.call(message, "channel_id")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.channel_id); if (message.relayer != null && Object.hasOwnProperty.call(message, "relayer")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.relayer); - if (message.payee != null && Object.hasOwnProperty.call(message, "payee")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.payee); return writer; }; /** - * Encodes the specified RegisteredPayee message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.RegisteredPayee.verify|verify} messages. + * Encodes the specified QueryPayeeRequest message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.QueryPayeeRequest.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.applications.fee.v1.RegisteredPayee + * @memberof ibc.applications.fee.v1.QueryPayeeRequest * @static - * @param {ibc.applications.fee.v1.IRegisteredPayee} message RegisteredPayee message or plain object to encode + * @param {ibc.applications.fee.v1.IQueryPayeeRequest} message QueryPayeeRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RegisteredPayee.encodeDelimited = function encodeDelimited(message, writer) { + QueryPayeeRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RegisteredPayee message from the specified reader or buffer. + * Decodes a QueryPayeeRequest message from the specified reader or buffer. * @function decode - * @memberof ibc.applications.fee.v1.RegisteredPayee + * @memberof ibc.applications.fee.v1.QueryPayeeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.fee.v1.RegisteredPayee} RegisteredPayee + * @returns {ibc.applications.fee.v1.QueryPayeeRequest} QueryPayeeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RegisteredPayee.decode = function decode(reader, length) { + QueryPayeeRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.RegisteredPayee(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.QueryPayeeRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { @@ -26061,9 +32502,6 @@ export const ibc = $root.ibc = (() => { case 2: message.relayer = reader.string(); break; - case 3: - message.payee = reader.string(); - break; default: reader.skipType(tag & 7); break; @@ -26073,30 +32511,30 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a RegisteredPayee message from the specified reader or buffer, length delimited. + * Decodes a QueryPayeeRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.applications.fee.v1.RegisteredPayee + * @memberof ibc.applications.fee.v1.QueryPayeeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.fee.v1.RegisteredPayee} RegisteredPayee + * @returns {ibc.applications.fee.v1.QueryPayeeRequest} QueryPayeeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RegisteredPayee.decodeDelimited = function decodeDelimited(reader) { + QueryPayeeRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RegisteredPayee message. + * Verifies a QueryPayeeRequest message. * @function verify - * @memberof ibc.applications.fee.v1.RegisteredPayee + * @memberof ibc.applications.fee.v1.QueryPayeeRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RegisteredPayee.verify = function verify(message) { + QueryPayeeRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.channel_id != null && message.hasOwnProperty("channel_id")) @@ -26105,94 +32543,84 @@ export const ibc = $root.ibc = (() => { if (message.relayer != null && message.hasOwnProperty("relayer")) if (!$util.isString(message.relayer)) return "relayer: string expected"; - if (message.payee != null && message.hasOwnProperty("payee")) - if (!$util.isString(message.payee)) - return "payee: string expected"; return null; }; /** - * Creates a RegisteredPayee message from a plain object. Also converts values to their respective internal types. + * Creates a QueryPayeeRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.applications.fee.v1.RegisteredPayee + * @memberof ibc.applications.fee.v1.QueryPayeeRequest * @static * @param {Object.} object Plain object - * @returns {ibc.applications.fee.v1.RegisteredPayee} RegisteredPayee + * @returns {ibc.applications.fee.v1.QueryPayeeRequest} QueryPayeeRequest */ - RegisteredPayee.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.fee.v1.RegisteredPayee) + QueryPayeeRequest.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.fee.v1.QueryPayeeRequest) return object; - let message = new $root.ibc.applications.fee.v1.RegisteredPayee(); + let message = new $root.ibc.applications.fee.v1.QueryPayeeRequest(); if (object.channel_id != null) message.channel_id = String(object.channel_id); if (object.relayer != null) message.relayer = String(object.relayer); - if (object.payee != null) - message.payee = String(object.payee); return message; }; /** - * Creates a plain object from a RegisteredPayee message. Also converts values to other types if specified. + * Creates a plain object from a QueryPayeeRequest message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.applications.fee.v1.RegisteredPayee + * @memberof ibc.applications.fee.v1.QueryPayeeRequest * @static - * @param {ibc.applications.fee.v1.RegisteredPayee} message RegisteredPayee + * @param {ibc.applications.fee.v1.QueryPayeeRequest} message QueryPayeeRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RegisteredPayee.toObject = function toObject(message, options) { + QueryPayeeRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { object.channel_id = ""; object.relayer = ""; - object.payee = ""; } if (message.channel_id != null && message.hasOwnProperty("channel_id")) object.channel_id = message.channel_id; if (message.relayer != null && message.hasOwnProperty("relayer")) object.relayer = message.relayer; - if (message.payee != null && message.hasOwnProperty("payee")) - object.payee = message.payee; return object; }; /** - * Converts this RegisteredPayee to JSON. + * Converts this QueryPayeeRequest to JSON. * @function toJSON - * @memberof ibc.applications.fee.v1.RegisteredPayee + * @memberof ibc.applications.fee.v1.QueryPayeeRequest * @instance * @returns {Object.} JSON object */ - RegisteredPayee.prototype.toJSON = function toJSON() { + QueryPayeeRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return RegisteredPayee; + return QueryPayeeRequest; })(); - v1.RegisteredCounterpartyPayee = (function() { + v1.QueryPayeeResponse = (function() { /** - * Properties of a RegisteredCounterpartyPayee. + * Properties of a QueryPayeeResponse. * @memberof ibc.applications.fee.v1 - * @interface IRegisteredCounterpartyPayee - * @property {string|null} [channel_id] RegisteredCounterpartyPayee channel_id - * @property {string|null} [relayer] RegisteredCounterpartyPayee relayer - * @property {string|null} [counterparty_payee] RegisteredCounterpartyPayee counterparty_payee + * @interface IQueryPayeeResponse + * @property {string|null} [payee_address] QueryPayeeResponse payee_address */ /** - * Constructs a new RegisteredCounterpartyPayee. + * Constructs a new QueryPayeeResponse. * @memberof ibc.applications.fee.v1 - * @classdesc Represents a RegisteredCounterpartyPayee. - * @implements IRegisteredCounterpartyPayee + * @classdesc Represents a QueryPayeeResponse. + * @implements IQueryPayeeResponse * @constructor - * @param {ibc.applications.fee.v1.IRegisteredCounterpartyPayee=} [properties] Properties to set + * @param {ibc.applications.fee.v1.IQueryPayeeResponse=} [properties] Properties to set */ - function RegisteredCounterpartyPayee(properties) { + function QueryPayeeResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -26200,89 +32628,63 @@ export const ibc = $root.ibc = (() => { } /** - * RegisteredCounterpartyPayee channel_id. - * @member {string} channel_id - * @memberof ibc.applications.fee.v1.RegisteredCounterpartyPayee - * @instance - */ - RegisteredCounterpartyPayee.prototype.channel_id = ""; - - /** - * RegisteredCounterpartyPayee relayer. - * @member {string} relayer - * @memberof ibc.applications.fee.v1.RegisteredCounterpartyPayee - * @instance - */ - RegisteredCounterpartyPayee.prototype.relayer = ""; - - /** - * RegisteredCounterpartyPayee counterparty_payee. - * @member {string} counterparty_payee - * @memberof ibc.applications.fee.v1.RegisteredCounterpartyPayee + * QueryPayeeResponse payee_address. + * @member {string} payee_address + * @memberof ibc.applications.fee.v1.QueryPayeeResponse * @instance */ - RegisteredCounterpartyPayee.prototype.counterparty_payee = ""; + QueryPayeeResponse.prototype.payee_address = ""; /** - * Encodes the specified RegisteredCounterpartyPayee message. Does not implicitly {@link ibc.applications.fee.v1.RegisteredCounterpartyPayee.verify|verify} messages. + * Encodes the specified QueryPayeeResponse message. Does not implicitly {@link ibc.applications.fee.v1.QueryPayeeResponse.verify|verify} messages. * @function encode - * @memberof ibc.applications.fee.v1.RegisteredCounterpartyPayee + * @memberof ibc.applications.fee.v1.QueryPayeeResponse * @static - * @param {ibc.applications.fee.v1.IRegisteredCounterpartyPayee} message RegisteredCounterpartyPayee message or plain object to encode + * @param {ibc.applications.fee.v1.IQueryPayeeResponse} message QueryPayeeResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RegisteredCounterpartyPayee.encode = function encode(message, writer) { + QueryPayeeResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.channel_id != null && Object.hasOwnProperty.call(message, "channel_id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.channel_id); - if (message.relayer != null && Object.hasOwnProperty.call(message, "relayer")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.relayer); - if (message.counterparty_payee != null && Object.hasOwnProperty.call(message, "counterparty_payee")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.counterparty_payee); + if (message.payee_address != null && Object.hasOwnProperty.call(message, "payee_address")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.payee_address); return writer; }; /** - * Encodes the specified RegisteredCounterpartyPayee message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.RegisteredCounterpartyPayee.verify|verify} messages. + * Encodes the specified QueryPayeeResponse message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.QueryPayeeResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.applications.fee.v1.RegisteredCounterpartyPayee + * @memberof ibc.applications.fee.v1.QueryPayeeResponse * @static - * @param {ibc.applications.fee.v1.IRegisteredCounterpartyPayee} message RegisteredCounterpartyPayee message or plain object to encode + * @param {ibc.applications.fee.v1.IQueryPayeeResponse} message QueryPayeeResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RegisteredCounterpartyPayee.encodeDelimited = function encodeDelimited(message, writer) { + QueryPayeeResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RegisteredCounterpartyPayee message from the specified reader or buffer. + * Decodes a QueryPayeeResponse message from the specified reader or buffer. * @function decode - * @memberof ibc.applications.fee.v1.RegisteredCounterpartyPayee + * @memberof ibc.applications.fee.v1.QueryPayeeResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.fee.v1.RegisteredCounterpartyPayee} RegisteredCounterpartyPayee + * @returns {ibc.applications.fee.v1.QueryPayeeResponse} QueryPayeeResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RegisteredCounterpartyPayee.decode = function decode(reader, length) { + QueryPayeeResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.RegisteredCounterpartyPayee(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.QueryPayeeResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.channel_id = reader.string(); - break; - case 2: - message.relayer = reader.string(); - break; - case 3: - message.counterparty_payee = reader.string(); + message.payee_address = reader.string(); break; default: reader.skipType(tag & 7); @@ -26293,125 +32695,108 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a RegisteredCounterpartyPayee message from the specified reader or buffer, length delimited. + * Decodes a QueryPayeeResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.applications.fee.v1.RegisteredCounterpartyPayee + * @memberof ibc.applications.fee.v1.QueryPayeeResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.fee.v1.RegisteredCounterpartyPayee} RegisteredCounterpartyPayee + * @returns {ibc.applications.fee.v1.QueryPayeeResponse} QueryPayeeResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RegisteredCounterpartyPayee.decodeDelimited = function decodeDelimited(reader) { + QueryPayeeResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RegisteredCounterpartyPayee message. + * Verifies a QueryPayeeResponse message. * @function verify - * @memberof ibc.applications.fee.v1.RegisteredCounterpartyPayee + * @memberof ibc.applications.fee.v1.QueryPayeeResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RegisteredCounterpartyPayee.verify = function verify(message) { + QueryPayeeResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.channel_id != null && message.hasOwnProperty("channel_id")) - if (!$util.isString(message.channel_id)) - return "channel_id: string expected"; - if (message.relayer != null && message.hasOwnProperty("relayer")) - if (!$util.isString(message.relayer)) - return "relayer: string expected"; - if (message.counterparty_payee != null && message.hasOwnProperty("counterparty_payee")) - if (!$util.isString(message.counterparty_payee)) - return "counterparty_payee: string expected"; + if (message.payee_address != null && message.hasOwnProperty("payee_address")) + if (!$util.isString(message.payee_address)) + return "payee_address: string expected"; return null; }; /** - * Creates a RegisteredCounterpartyPayee message from a plain object. Also converts values to their respective internal types. + * Creates a QueryPayeeResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.applications.fee.v1.RegisteredCounterpartyPayee + * @memberof ibc.applications.fee.v1.QueryPayeeResponse * @static * @param {Object.} object Plain object - * @returns {ibc.applications.fee.v1.RegisteredCounterpartyPayee} RegisteredCounterpartyPayee + * @returns {ibc.applications.fee.v1.QueryPayeeResponse} QueryPayeeResponse */ - RegisteredCounterpartyPayee.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.fee.v1.RegisteredCounterpartyPayee) + QueryPayeeResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.fee.v1.QueryPayeeResponse) return object; - let message = new $root.ibc.applications.fee.v1.RegisteredCounterpartyPayee(); - if (object.channel_id != null) - message.channel_id = String(object.channel_id); - if (object.relayer != null) - message.relayer = String(object.relayer); - if (object.counterparty_payee != null) - message.counterparty_payee = String(object.counterparty_payee); + let message = new $root.ibc.applications.fee.v1.QueryPayeeResponse(); + if (object.payee_address != null) + message.payee_address = String(object.payee_address); return message; }; /** - * Creates a plain object from a RegisteredCounterpartyPayee message. Also converts values to other types if specified. + * Creates a plain object from a QueryPayeeResponse message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.applications.fee.v1.RegisteredCounterpartyPayee + * @memberof ibc.applications.fee.v1.QueryPayeeResponse * @static - * @param {ibc.applications.fee.v1.RegisteredCounterpartyPayee} message RegisteredCounterpartyPayee + * @param {ibc.applications.fee.v1.QueryPayeeResponse} message QueryPayeeResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RegisteredCounterpartyPayee.toObject = function toObject(message, options) { + QueryPayeeResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) { - object.channel_id = ""; - object.relayer = ""; - object.counterparty_payee = ""; - } - if (message.channel_id != null && message.hasOwnProperty("channel_id")) - object.channel_id = message.channel_id; - if (message.relayer != null && message.hasOwnProperty("relayer")) - object.relayer = message.relayer; - if (message.counterparty_payee != null && message.hasOwnProperty("counterparty_payee")) - object.counterparty_payee = message.counterparty_payee; + if (options.defaults) + object.payee_address = ""; + if (message.payee_address != null && message.hasOwnProperty("payee_address")) + object.payee_address = message.payee_address; return object; }; /** - * Converts this RegisteredCounterpartyPayee to JSON. + * Converts this QueryPayeeResponse to JSON. * @function toJSON - * @memberof ibc.applications.fee.v1.RegisteredCounterpartyPayee + * @memberof ibc.applications.fee.v1.QueryPayeeResponse * @instance * @returns {Object.} JSON object */ - RegisteredCounterpartyPayee.prototype.toJSON = function toJSON() { + QueryPayeeResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return RegisteredCounterpartyPayee; + return QueryPayeeResponse; })(); - v1.ForwardRelayerAddress = (function() { + v1.QueryCounterpartyPayeeRequest = (function() { /** - * Properties of a ForwardRelayerAddress. + * Properties of a QueryCounterpartyPayeeRequest. * @memberof ibc.applications.fee.v1 - * @interface IForwardRelayerAddress - * @property {string|null} [address] ForwardRelayerAddress address - * @property {ibc.core.channel.v1.IPacketId|null} [packet_id] ForwardRelayerAddress packet_id + * @interface IQueryCounterpartyPayeeRequest + * @property {string|null} [channel_id] QueryCounterpartyPayeeRequest channel_id + * @property {string|null} [relayer] QueryCounterpartyPayeeRequest relayer */ /** - * Constructs a new ForwardRelayerAddress. + * Constructs a new QueryCounterpartyPayeeRequest. * @memberof ibc.applications.fee.v1 - * @classdesc Represents a ForwardRelayerAddress. - * @implements IForwardRelayerAddress + * @classdesc Represents a QueryCounterpartyPayeeRequest. + * @implements IQueryCounterpartyPayeeRequest * @constructor - * @param {ibc.applications.fee.v1.IForwardRelayerAddress=} [properties] Properties to set + * @param {ibc.applications.fee.v1.IQueryCounterpartyPayeeRequest=} [properties] Properties to set */ - function ForwardRelayerAddress(properties) { + function QueryCounterpartyPayeeRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -26419,76 +32804,76 @@ export const ibc = $root.ibc = (() => { } /** - * ForwardRelayerAddress address. - * @member {string} address - * @memberof ibc.applications.fee.v1.ForwardRelayerAddress + * QueryCounterpartyPayeeRequest channel_id. + * @member {string} channel_id + * @memberof ibc.applications.fee.v1.QueryCounterpartyPayeeRequest * @instance */ - ForwardRelayerAddress.prototype.address = ""; + QueryCounterpartyPayeeRequest.prototype.channel_id = ""; /** - * ForwardRelayerAddress packet_id. - * @member {ibc.core.channel.v1.IPacketId|null|undefined} packet_id - * @memberof ibc.applications.fee.v1.ForwardRelayerAddress + * QueryCounterpartyPayeeRequest relayer. + * @member {string} relayer + * @memberof ibc.applications.fee.v1.QueryCounterpartyPayeeRequest * @instance */ - ForwardRelayerAddress.prototype.packet_id = null; + QueryCounterpartyPayeeRequest.prototype.relayer = ""; /** - * Encodes the specified ForwardRelayerAddress message. Does not implicitly {@link ibc.applications.fee.v1.ForwardRelayerAddress.verify|verify} messages. + * Encodes the specified QueryCounterpartyPayeeRequest message. Does not implicitly {@link ibc.applications.fee.v1.QueryCounterpartyPayeeRequest.verify|verify} messages. * @function encode - * @memberof ibc.applications.fee.v1.ForwardRelayerAddress + * @memberof ibc.applications.fee.v1.QueryCounterpartyPayeeRequest * @static - * @param {ibc.applications.fee.v1.IForwardRelayerAddress} message ForwardRelayerAddress message or plain object to encode + * @param {ibc.applications.fee.v1.IQueryCounterpartyPayeeRequest} message QueryCounterpartyPayeeRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ForwardRelayerAddress.encode = function encode(message, writer) { + QueryCounterpartyPayeeRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.address != null && Object.hasOwnProperty.call(message, "address")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.address); - if (message.packet_id != null && Object.hasOwnProperty.call(message, "packet_id")) - $root.ibc.core.channel.v1.PacketId.encode(message.packet_id, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.channel_id != null && Object.hasOwnProperty.call(message, "channel_id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.channel_id); + if (message.relayer != null && Object.hasOwnProperty.call(message, "relayer")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.relayer); return writer; }; /** - * Encodes the specified ForwardRelayerAddress message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.ForwardRelayerAddress.verify|verify} messages. + * Encodes the specified QueryCounterpartyPayeeRequest message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.QueryCounterpartyPayeeRequest.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.applications.fee.v1.ForwardRelayerAddress + * @memberof ibc.applications.fee.v1.QueryCounterpartyPayeeRequest * @static - * @param {ibc.applications.fee.v1.IForwardRelayerAddress} message ForwardRelayerAddress message or plain object to encode + * @param {ibc.applications.fee.v1.IQueryCounterpartyPayeeRequest} message QueryCounterpartyPayeeRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ForwardRelayerAddress.encodeDelimited = function encodeDelimited(message, writer) { + QueryCounterpartyPayeeRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ForwardRelayerAddress message from the specified reader or buffer. + * Decodes a QueryCounterpartyPayeeRequest message from the specified reader or buffer. * @function decode - * @memberof ibc.applications.fee.v1.ForwardRelayerAddress + * @memberof ibc.applications.fee.v1.QueryCounterpartyPayeeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.fee.v1.ForwardRelayerAddress} ForwardRelayerAddress + * @returns {ibc.applications.fee.v1.QueryCounterpartyPayeeRequest} QueryCounterpartyPayeeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ForwardRelayerAddress.decode = function decode(reader, length) { + QueryCounterpartyPayeeRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.ForwardRelayerAddress(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.QueryCounterpartyPayeeRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.address = reader.string(); + message.channel_id = reader.string(); break; case 2: - message.packet_id = $root.ibc.core.channel.v1.PacketId.decode(reader, reader.uint32()); + message.relayer = reader.string(); break; default: reader.skipType(tag & 7); @@ -26499,122 +32884,116 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a ForwardRelayerAddress message from the specified reader or buffer, length delimited. + * Decodes a QueryCounterpartyPayeeRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.applications.fee.v1.ForwardRelayerAddress + * @memberof ibc.applications.fee.v1.QueryCounterpartyPayeeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.fee.v1.ForwardRelayerAddress} ForwardRelayerAddress + * @returns {ibc.applications.fee.v1.QueryCounterpartyPayeeRequest} QueryCounterpartyPayeeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ForwardRelayerAddress.decodeDelimited = function decodeDelimited(reader) { + QueryCounterpartyPayeeRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ForwardRelayerAddress message. + * Verifies a QueryCounterpartyPayeeRequest message. * @function verify - * @memberof ibc.applications.fee.v1.ForwardRelayerAddress + * @memberof ibc.applications.fee.v1.QueryCounterpartyPayeeRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ForwardRelayerAddress.verify = function verify(message) { + QueryCounterpartyPayeeRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.address != null && message.hasOwnProperty("address")) - if (!$util.isString(message.address)) - return "address: string expected"; - if (message.packet_id != null && message.hasOwnProperty("packet_id")) { - let error = $root.ibc.core.channel.v1.PacketId.verify(message.packet_id); - if (error) - return "packet_id." + error; - } + if (message.channel_id != null && message.hasOwnProperty("channel_id")) + if (!$util.isString(message.channel_id)) + return "channel_id: string expected"; + if (message.relayer != null && message.hasOwnProperty("relayer")) + if (!$util.isString(message.relayer)) + return "relayer: string expected"; return null; }; /** - * Creates a ForwardRelayerAddress message from a plain object. Also converts values to their respective internal types. + * Creates a QueryCounterpartyPayeeRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.applications.fee.v1.ForwardRelayerAddress + * @memberof ibc.applications.fee.v1.QueryCounterpartyPayeeRequest * @static * @param {Object.} object Plain object - * @returns {ibc.applications.fee.v1.ForwardRelayerAddress} ForwardRelayerAddress + * @returns {ibc.applications.fee.v1.QueryCounterpartyPayeeRequest} QueryCounterpartyPayeeRequest */ - ForwardRelayerAddress.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.fee.v1.ForwardRelayerAddress) + QueryCounterpartyPayeeRequest.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.fee.v1.QueryCounterpartyPayeeRequest) return object; - let message = new $root.ibc.applications.fee.v1.ForwardRelayerAddress(); - if (object.address != null) - message.address = String(object.address); - if (object.packet_id != null) { - if (typeof object.packet_id !== "object") - throw TypeError(".ibc.applications.fee.v1.ForwardRelayerAddress.packet_id: object expected"); - message.packet_id = $root.ibc.core.channel.v1.PacketId.fromObject(object.packet_id); - } + let message = new $root.ibc.applications.fee.v1.QueryCounterpartyPayeeRequest(); + if (object.channel_id != null) + message.channel_id = String(object.channel_id); + if (object.relayer != null) + message.relayer = String(object.relayer); return message; }; /** - * Creates a plain object from a ForwardRelayerAddress message. Also converts values to other types if specified. + * Creates a plain object from a QueryCounterpartyPayeeRequest message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.applications.fee.v1.ForwardRelayerAddress + * @memberof ibc.applications.fee.v1.QueryCounterpartyPayeeRequest * @static - * @param {ibc.applications.fee.v1.ForwardRelayerAddress} message ForwardRelayerAddress + * @param {ibc.applications.fee.v1.QueryCounterpartyPayeeRequest} message QueryCounterpartyPayeeRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ForwardRelayerAddress.toObject = function toObject(message, options) { + QueryCounterpartyPayeeRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - object.address = ""; - object.packet_id = null; + object.channel_id = ""; + object.relayer = ""; } - if (message.address != null && message.hasOwnProperty("address")) - object.address = message.address; - if (message.packet_id != null && message.hasOwnProperty("packet_id")) - object.packet_id = $root.ibc.core.channel.v1.PacketId.toObject(message.packet_id, options); + if (message.channel_id != null && message.hasOwnProperty("channel_id")) + object.channel_id = message.channel_id; + if (message.relayer != null && message.hasOwnProperty("relayer")) + object.relayer = message.relayer; return object; }; /** - * Converts this ForwardRelayerAddress to JSON. + * Converts this QueryCounterpartyPayeeRequest to JSON. * @function toJSON - * @memberof ibc.applications.fee.v1.ForwardRelayerAddress + * @memberof ibc.applications.fee.v1.QueryCounterpartyPayeeRequest * @instance * @returns {Object.} JSON object */ - ForwardRelayerAddress.prototype.toJSON = function toJSON() { + QueryCounterpartyPayeeRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ForwardRelayerAddress; + return QueryCounterpartyPayeeRequest; })(); - v1.Metadata = (function() { + v1.QueryCounterpartyPayeeResponse = (function() { /** - * Properties of a Metadata. + * Properties of a QueryCounterpartyPayeeResponse. * @memberof ibc.applications.fee.v1 - * @interface IMetadata - * @property {string|null} [fee_version] Metadata fee_version - * @property {string|null} [app_version] Metadata app_version + * @interface IQueryCounterpartyPayeeResponse + * @property {string|null} [counterparty_payee] QueryCounterpartyPayeeResponse counterparty_payee */ /** - * Constructs a new Metadata. + * Constructs a new QueryCounterpartyPayeeResponse. * @memberof ibc.applications.fee.v1 - * @classdesc Represents a Metadata. - * @implements IMetadata + * @classdesc Represents a QueryCounterpartyPayeeResponse. + * @implements IQueryCounterpartyPayeeResponse * @constructor - * @param {ibc.applications.fee.v1.IMetadata=} [properties] Properties to set + * @param {ibc.applications.fee.v1.IQueryCounterpartyPayeeResponse=} [properties] Properties to set */ - function Metadata(properties) { + function QueryCounterpartyPayeeResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -26622,76 +33001,63 @@ export const ibc = $root.ibc = (() => { } /** - * Metadata fee_version. - * @member {string} fee_version - * @memberof ibc.applications.fee.v1.Metadata - * @instance - */ - Metadata.prototype.fee_version = ""; - - /** - * Metadata app_version. - * @member {string} app_version - * @memberof ibc.applications.fee.v1.Metadata + * QueryCounterpartyPayeeResponse counterparty_payee. + * @member {string} counterparty_payee + * @memberof ibc.applications.fee.v1.QueryCounterpartyPayeeResponse * @instance */ - Metadata.prototype.app_version = ""; + QueryCounterpartyPayeeResponse.prototype.counterparty_payee = ""; /** - * Encodes the specified Metadata message. Does not implicitly {@link ibc.applications.fee.v1.Metadata.verify|verify} messages. + * Encodes the specified QueryCounterpartyPayeeResponse message. Does not implicitly {@link ibc.applications.fee.v1.QueryCounterpartyPayeeResponse.verify|verify} messages. * @function encode - * @memberof ibc.applications.fee.v1.Metadata + * @memberof ibc.applications.fee.v1.QueryCounterpartyPayeeResponse * @static - * @param {ibc.applications.fee.v1.IMetadata} message Metadata message or plain object to encode + * @param {ibc.applications.fee.v1.IQueryCounterpartyPayeeResponse} message QueryCounterpartyPayeeResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Metadata.encode = function encode(message, writer) { + QueryCounterpartyPayeeResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.fee_version != null && Object.hasOwnProperty.call(message, "fee_version")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.fee_version); - if (message.app_version != null && Object.hasOwnProperty.call(message, "app_version")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.app_version); + if (message.counterparty_payee != null && Object.hasOwnProperty.call(message, "counterparty_payee")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.counterparty_payee); return writer; }; /** - * Encodes the specified Metadata message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.Metadata.verify|verify} messages. + * Encodes the specified QueryCounterpartyPayeeResponse message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.QueryCounterpartyPayeeResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.applications.fee.v1.Metadata + * @memberof ibc.applications.fee.v1.QueryCounterpartyPayeeResponse * @static - * @param {ibc.applications.fee.v1.IMetadata} message Metadata message or plain object to encode + * @param {ibc.applications.fee.v1.IQueryCounterpartyPayeeResponse} message QueryCounterpartyPayeeResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Metadata.encodeDelimited = function encodeDelimited(message, writer) { + QueryCounterpartyPayeeResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Metadata message from the specified reader or buffer. + * Decodes a QueryCounterpartyPayeeResponse message from the specified reader or buffer. * @function decode - * @memberof ibc.applications.fee.v1.Metadata + * @memberof ibc.applications.fee.v1.QueryCounterpartyPayeeResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.fee.v1.Metadata} Metadata + * @returns {ibc.applications.fee.v1.QueryCounterpartyPayeeResponse} QueryCounterpartyPayeeResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Metadata.decode = function decode(reader, length) { + QueryCounterpartyPayeeResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.Metadata(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.QueryCounterpartyPayeeResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.fee_version = reader.string(); - break; - case 2: - message.app_version = reader.string(); + message.counterparty_payee = reader.string(); break; default: reader.skipType(tag & 7); @@ -26702,1748 +33068,1682 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a Metadata message from the specified reader or buffer, length delimited. + * Decodes a QueryCounterpartyPayeeResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.applications.fee.v1.Metadata + * @memberof ibc.applications.fee.v1.QueryCounterpartyPayeeResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.fee.v1.Metadata} Metadata + * @returns {ibc.applications.fee.v1.QueryCounterpartyPayeeResponse} QueryCounterpartyPayeeResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Metadata.decodeDelimited = function decodeDelimited(reader) { + QueryCounterpartyPayeeResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Metadata message. + * Verifies a QueryCounterpartyPayeeResponse message. * @function verify - * @memberof ibc.applications.fee.v1.Metadata + * @memberof ibc.applications.fee.v1.QueryCounterpartyPayeeResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Metadata.verify = function verify(message) { + QueryCounterpartyPayeeResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.fee_version != null && message.hasOwnProperty("fee_version")) - if (!$util.isString(message.fee_version)) - return "fee_version: string expected"; - if (message.app_version != null && message.hasOwnProperty("app_version")) - if (!$util.isString(message.app_version)) - return "app_version: string expected"; + if (message.counterparty_payee != null && message.hasOwnProperty("counterparty_payee")) + if (!$util.isString(message.counterparty_payee)) + return "counterparty_payee: string expected"; return null; }; /** - * Creates a Metadata message from a plain object. Also converts values to their respective internal types. + * Creates a QueryCounterpartyPayeeResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.applications.fee.v1.Metadata + * @memberof ibc.applications.fee.v1.QueryCounterpartyPayeeResponse * @static * @param {Object.} object Plain object - * @returns {ibc.applications.fee.v1.Metadata} Metadata + * @returns {ibc.applications.fee.v1.QueryCounterpartyPayeeResponse} QueryCounterpartyPayeeResponse */ - Metadata.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.fee.v1.Metadata) + QueryCounterpartyPayeeResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.fee.v1.QueryCounterpartyPayeeResponse) return object; - let message = new $root.ibc.applications.fee.v1.Metadata(); - if (object.fee_version != null) - message.fee_version = String(object.fee_version); - if (object.app_version != null) - message.app_version = String(object.app_version); + let message = new $root.ibc.applications.fee.v1.QueryCounterpartyPayeeResponse(); + if (object.counterparty_payee != null) + message.counterparty_payee = String(object.counterparty_payee); return message; }; /** - * Creates a plain object from a Metadata message. Also converts values to other types if specified. + * Creates a plain object from a QueryCounterpartyPayeeResponse message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.applications.fee.v1.Metadata + * @memberof ibc.applications.fee.v1.QueryCounterpartyPayeeResponse * @static - * @param {ibc.applications.fee.v1.Metadata} message Metadata + * @param {ibc.applications.fee.v1.QueryCounterpartyPayeeResponse} message QueryCounterpartyPayeeResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Metadata.toObject = function toObject(message, options) { + QueryCounterpartyPayeeResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) { - object.fee_version = ""; - object.app_version = ""; - } - if (message.fee_version != null && message.hasOwnProperty("fee_version")) - object.fee_version = message.fee_version; - if (message.app_version != null && message.hasOwnProperty("app_version")) - object.app_version = message.app_version; + if (options.defaults) + object.counterparty_payee = ""; + if (message.counterparty_payee != null && message.hasOwnProperty("counterparty_payee")) + object.counterparty_payee = message.counterparty_payee; return object; }; /** - * Converts this Metadata to JSON. + * Converts this QueryCounterpartyPayeeResponse to JSON. * @function toJSON - * @memberof ibc.applications.fee.v1.Metadata + * @memberof ibc.applications.fee.v1.QueryCounterpartyPayeeResponse * @instance * @returns {Object.} JSON object */ - Metadata.prototype.toJSON = function toJSON() { + QueryCounterpartyPayeeResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return Metadata; - })(); - - return v1; - })(); - - return fee; - })(); - - applications.interchain_accounts = (function() { - - /** - * Namespace interchain_accounts. - * @memberof ibc.applications - * @namespace - */ - const interchain_accounts = {}; - - interchain_accounts.controller = (function() { - - /** - * Namespace controller. - * @memberof ibc.applications.interchain_accounts - * @namespace - */ - const controller = {}; - - controller.v1 = (function() { - - /** - * Namespace v1. - * @memberof ibc.applications.interchain_accounts.controller - * @namespace - */ - const v1 = {}; - - v1.Query = (function() { - - /** - * Constructs a new Query service. - * @memberof ibc.applications.interchain_accounts.controller.v1 - * @classdesc Represents a Query - * @extends $protobuf.rpc.Service - * @constructor - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - */ - function Query(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } - - (Query.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Query; - - /** - * Callback as used by {@link ibc.applications.interchain_accounts.controller.v1.Query#interchainAccount}. - * @memberof ibc.applications.interchain_accounts.controller.v1.Query - * @typedef InterchainAccountCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountResponse} [response] QueryInterchainAccountResponse - */ - - /** - * Calls InterchainAccount. - * @function interchainAccount - * @memberof ibc.applications.interchain_accounts.controller.v1.Query - * @instance - * @param {ibc.applications.interchain_accounts.controller.v1.IQueryInterchainAccountRequest} request QueryInterchainAccountRequest message or plain object - * @param {ibc.applications.interchain_accounts.controller.v1.Query.InterchainAccountCallback} callback Node-style callback called with the error, if any, and QueryInterchainAccountResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Query.prototype.interchainAccount = function interchainAccount(request, callback) { - return this.rpcCall(interchainAccount, $root.ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountRequest, $root.ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountResponse, request, callback); - }, "name", { value: "InterchainAccount" }); - - /** - * Calls InterchainAccount. - * @function interchainAccount - * @memberof ibc.applications.interchain_accounts.controller.v1.Query - * @instance - * @param {ibc.applications.interchain_accounts.controller.v1.IQueryInterchainAccountRequest} request QueryInterchainAccountRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link ibc.applications.interchain_accounts.controller.v1.Query#params}. - * @memberof ibc.applications.interchain_accounts.controller.v1.Query - * @typedef ParamsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.applications.interchain_accounts.controller.v1.QueryParamsResponse} [response] QueryParamsResponse - */ - - /** - * Calls Params. - * @function params - * @memberof ibc.applications.interchain_accounts.controller.v1.Query - * @instance - * @param {ibc.applications.interchain_accounts.controller.v1.IQueryParamsRequest} request QueryParamsRequest message or plain object - * @param {ibc.applications.interchain_accounts.controller.v1.Query.ParamsCallback} callback Node-style callback called with the error, if any, and QueryParamsResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Query.prototype.params = function params(request, callback) { - return this.rpcCall(params, $root.ibc.applications.interchain_accounts.controller.v1.QueryParamsRequest, $root.ibc.applications.interchain_accounts.controller.v1.QueryParamsResponse, request, callback); - }, "name", { value: "Params" }); - - /** - * Calls Params. - * @function params - * @memberof ibc.applications.interchain_accounts.controller.v1.Query - * @instance - * @param {ibc.applications.interchain_accounts.controller.v1.IQueryParamsRequest} request QueryParamsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - return Query; - })(); - - v1.QueryInterchainAccountRequest = (function() { - - /** - * Properties of a QueryInterchainAccountRequest. - * @memberof ibc.applications.interchain_accounts.controller.v1 - * @interface IQueryInterchainAccountRequest - * @property {string|null} [owner] QueryInterchainAccountRequest owner - * @property {string|null} [connection_id] QueryInterchainAccountRequest connection_id - */ - - /** - * Constructs a new QueryInterchainAccountRequest. - * @memberof ibc.applications.interchain_accounts.controller.v1 - * @classdesc Represents a QueryInterchainAccountRequest. - * @implements IQueryInterchainAccountRequest - * @constructor - * @param {ibc.applications.interchain_accounts.controller.v1.IQueryInterchainAccountRequest=} [properties] Properties to set - */ - function QueryInterchainAccountRequest(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * QueryInterchainAccountRequest owner. - * @member {string} owner - * @memberof ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountRequest - * @instance - */ - QueryInterchainAccountRequest.prototype.owner = ""; - - /** - * QueryInterchainAccountRequest connection_id. - * @member {string} connection_id - * @memberof ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountRequest - * @instance - */ - QueryInterchainAccountRequest.prototype.connection_id = ""; - - /** - * Encodes the specified QueryInterchainAccountRequest message. Does not implicitly {@link ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountRequest.verify|verify} messages. - * @function encode - * @memberof ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountRequest - * @static - * @param {ibc.applications.interchain_accounts.controller.v1.IQueryInterchainAccountRequest} message QueryInterchainAccountRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - QueryInterchainAccountRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.owner != null && Object.hasOwnProperty.call(message, "owner")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.owner); - if (message.connection_id != null && Object.hasOwnProperty.call(message, "connection_id")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.connection_id); - return writer; - }; - - /** - * Encodes the specified QueryInterchainAccountRequest message, length delimited. Does not implicitly {@link ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountRequest - * @static - * @param {ibc.applications.interchain_accounts.controller.v1.IQueryInterchainAccountRequest} message QueryInterchainAccountRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - QueryInterchainAccountRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a QueryInterchainAccountRequest message from the specified reader or buffer. - * @function decode - * @memberof ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountRequest} QueryInterchainAccountRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - QueryInterchainAccountRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountRequest(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.owner = reader.string(); - break; - case 2: - message.connection_id = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a QueryInterchainAccountRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountRequest} QueryInterchainAccountRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - QueryInterchainAccountRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a QueryInterchainAccountRequest message. - * @function verify - * @memberof ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - QueryInterchainAccountRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.owner != null && message.hasOwnProperty("owner")) - if (!$util.isString(message.owner)) - return "owner: string expected"; - if (message.connection_id != null && message.hasOwnProperty("connection_id")) - if (!$util.isString(message.connection_id)) - return "connection_id: string expected"; - return null; - }; - - /** - * Creates a QueryInterchainAccountRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountRequest - * @static - * @param {Object.} object Plain object - * @returns {ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountRequest} QueryInterchainAccountRequest - */ - QueryInterchainAccountRequest.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountRequest) - return object; - let message = new $root.ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountRequest(); - if (object.owner != null) - message.owner = String(object.owner); - if (object.connection_id != null) - message.connection_id = String(object.connection_id); - return message; - }; - - /** - * Creates a plain object from a QueryInterchainAccountRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountRequest - * @static - * @param {ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountRequest} message QueryInterchainAccountRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - QueryInterchainAccountRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - object.owner = ""; - object.connection_id = ""; - } - if (message.owner != null && message.hasOwnProperty("owner")) - object.owner = message.owner; - if (message.connection_id != null && message.hasOwnProperty("connection_id")) - object.connection_id = message.connection_id; - return object; - }; + }; - /** - * Converts this QueryInterchainAccountRequest to JSON. - * @function toJSON - * @memberof ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountRequest - * @instance - * @returns {Object.} JSON object - */ - QueryInterchainAccountRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + return QueryCounterpartyPayeeResponse; + })(); - return QueryInterchainAccountRequest; - })(); + v1.QueryFeeEnabledChannelsRequest = (function() { - v1.QueryInterchainAccountResponse = (function() { + /** + * Properties of a QueryFeeEnabledChannelsRequest. + * @memberof ibc.applications.fee.v1 + * @interface IQueryFeeEnabledChannelsRequest + * @property {cosmos.base.query.v1beta1.IPageRequest|null} [pagination] QueryFeeEnabledChannelsRequest pagination + * @property {Long|null} [query_height] QueryFeeEnabledChannelsRequest query_height + */ - /** - * Properties of a QueryInterchainAccountResponse. - * @memberof ibc.applications.interchain_accounts.controller.v1 - * @interface IQueryInterchainAccountResponse - * @property {string|null} [address] QueryInterchainAccountResponse address - */ + /** + * Constructs a new QueryFeeEnabledChannelsRequest. + * @memberof ibc.applications.fee.v1 + * @classdesc Represents a QueryFeeEnabledChannelsRequest. + * @implements IQueryFeeEnabledChannelsRequest + * @constructor + * @param {ibc.applications.fee.v1.IQueryFeeEnabledChannelsRequest=} [properties] Properties to set + */ + function QueryFeeEnabledChannelsRequest(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Constructs a new QueryInterchainAccountResponse. - * @memberof ibc.applications.interchain_accounts.controller.v1 - * @classdesc Represents a QueryInterchainAccountResponse. - * @implements IQueryInterchainAccountResponse - * @constructor - * @param {ibc.applications.interchain_accounts.controller.v1.IQueryInterchainAccountResponse=} [properties] Properties to set - */ - function QueryInterchainAccountResponse(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * QueryFeeEnabledChannelsRequest pagination. + * @member {cosmos.base.query.v1beta1.IPageRequest|null|undefined} pagination + * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelsRequest + * @instance + */ + QueryFeeEnabledChannelsRequest.prototype.pagination = null; - /** - * QueryInterchainAccountResponse address. - * @member {string} address - * @memberof ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountResponse - * @instance - */ - QueryInterchainAccountResponse.prototype.address = ""; + /** + * QueryFeeEnabledChannelsRequest query_height. + * @member {Long} query_height + * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelsRequest + * @instance + */ + QueryFeeEnabledChannelsRequest.prototype.query_height = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - /** - * Encodes the specified QueryInterchainAccountResponse message. Does not implicitly {@link ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountResponse.verify|verify} messages. - * @function encode - * @memberof ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountResponse - * @static - * @param {ibc.applications.interchain_accounts.controller.v1.IQueryInterchainAccountResponse} message QueryInterchainAccountResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - QueryInterchainAccountResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.address != null && Object.hasOwnProperty.call(message, "address")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.address); - return writer; - }; + /** + * Encodes the specified QueryFeeEnabledChannelsRequest message. Does not implicitly {@link ibc.applications.fee.v1.QueryFeeEnabledChannelsRequest.verify|verify} messages. + * @function encode + * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelsRequest + * @static + * @param {ibc.applications.fee.v1.IQueryFeeEnabledChannelsRequest} message QueryFeeEnabledChannelsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + QueryFeeEnabledChannelsRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.pagination != null && Object.hasOwnProperty.call(message, "pagination")) + $root.cosmos.base.query.v1beta1.PageRequest.encode(message.pagination, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.query_height != null && Object.hasOwnProperty.call(message, "query_height")) + writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.query_height); + return writer; + }; - /** - * Encodes the specified QueryInterchainAccountResponse message, length delimited. Does not implicitly {@link ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountResponse - * @static - * @param {ibc.applications.interchain_accounts.controller.v1.IQueryInterchainAccountResponse} message QueryInterchainAccountResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - QueryInterchainAccountResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified QueryFeeEnabledChannelsRequest message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.QueryFeeEnabledChannelsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelsRequest + * @static + * @param {ibc.applications.fee.v1.IQueryFeeEnabledChannelsRequest} message QueryFeeEnabledChannelsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + QueryFeeEnabledChannelsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a QueryInterchainAccountResponse message from the specified reader or buffer. - * @function decode - * @memberof ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountResponse} QueryInterchainAccountResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - QueryInterchainAccountResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountResponse(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.address = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } + /** + * Decodes a QueryFeeEnabledChannelsRequest message from the specified reader or buffer. + * @function decode + * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {ibc.applications.fee.v1.QueryFeeEnabledChannelsRequest} QueryFeeEnabledChannelsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + QueryFeeEnabledChannelsRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.QueryFeeEnabledChannelsRequest(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.pagination = $root.cosmos.base.query.v1beta1.PageRequest.decode(reader, reader.uint32()); + break; + case 2: + message.query_height = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; } - return message; - }; - - /** - * Decodes a QueryInterchainAccountResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountResponse} QueryInterchainAccountResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - QueryInterchainAccountResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + } + return message; + }; - /** - * Verifies a QueryInterchainAccountResponse message. - * @function verify - * @memberof ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - QueryInterchainAccountResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.address != null && message.hasOwnProperty("address")) - if (!$util.isString(message.address)) - return "address: string expected"; - return null; - }; + /** + * Decodes a QueryFeeEnabledChannelsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {ibc.applications.fee.v1.QueryFeeEnabledChannelsRequest} QueryFeeEnabledChannelsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + QueryFeeEnabledChannelsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a QueryInterchainAccountResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountResponse - * @static - * @param {Object.} object Plain object - * @returns {ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountResponse} QueryInterchainAccountResponse - */ - QueryInterchainAccountResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountResponse) - return object; - let message = new $root.ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountResponse(); - if (object.address != null) - message.address = String(object.address); - return message; - }; + /** + * Verifies a QueryFeeEnabledChannelsRequest message. + * @function verify + * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + QueryFeeEnabledChannelsRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.pagination != null && message.hasOwnProperty("pagination")) { + let error = $root.cosmos.base.query.v1beta1.PageRequest.verify(message.pagination); + if (error) + return "pagination." + error; + } + if (message.query_height != null && message.hasOwnProperty("query_height")) + if (!$util.isInteger(message.query_height) && !(message.query_height && $util.isInteger(message.query_height.low) && $util.isInteger(message.query_height.high))) + return "query_height: integer|Long expected"; + return null; + }; - /** - * Creates a plain object from a QueryInterchainAccountResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountResponse - * @static - * @param {ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountResponse} message QueryInterchainAccountResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - QueryInterchainAccountResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) - object.address = ""; - if (message.address != null && message.hasOwnProperty("address")) - object.address = message.address; + /** + * Creates a QueryFeeEnabledChannelsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelsRequest + * @static + * @param {Object.} object Plain object + * @returns {ibc.applications.fee.v1.QueryFeeEnabledChannelsRequest} QueryFeeEnabledChannelsRequest + */ + QueryFeeEnabledChannelsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.fee.v1.QueryFeeEnabledChannelsRequest) return object; - }; + let message = new $root.ibc.applications.fee.v1.QueryFeeEnabledChannelsRequest(); + if (object.pagination != null) { + if (typeof object.pagination !== "object") + throw TypeError(".ibc.applications.fee.v1.QueryFeeEnabledChannelsRequest.pagination: object expected"); + message.pagination = $root.cosmos.base.query.v1beta1.PageRequest.fromObject(object.pagination); + } + if (object.query_height != null) + if ($util.Long) + (message.query_height = $util.Long.fromValue(object.query_height)).unsigned = true; + else if (typeof object.query_height === "string") + message.query_height = parseInt(object.query_height, 10); + else if (typeof object.query_height === "number") + message.query_height = object.query_height; + else if (typeof object.query_height === "object") + message.query_height = new $util.LongBits(object.query_height.low >>> 0, object.query_height.high >>> 0).toNumber(true); + return message; + }; - /** - * Converts this QueryInterchainAccountResponse to JSON. - * @function toJSON - * @memberof ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountResponse - * @instance - * @returns {Object.} JSON object - */ - QueryInterchainAccountResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from a QueryFeeEnabledChannelsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelsRequest + * @static + * @param {ibc.applications.fee.v1.QueryFeeEnabledChannelsRequest} message QueryFeeEnabledChannelsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + QueryFeeEnabledChannelsRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + object.pagination = null; + if ($util.Long) { + let long = new $util.Long(0, 0, true); + object.query_height = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.query_height = options.longs === String ? "0" : 0; + } + if (message.pagination != null && message.hasOwnProperty("pagination")) + object.pagination = $root.cosmos.base.query.v1beta1.PageRequest.toObject(message.pagination, options); + if (message.query_height != null && message.hasOwnProperty("query_height")) + if (typeof message.query_height === "number") + object.query_height = options.longs === String ? String(message.query_height) : message.query_height; + else + object.query_height = options.longs === String ? $util.Long.prototype.toString.call(message.query_height) : options.longs === Number ? new $util.LongBits(message.query_height.low >>> 0, message.query_height.high >>> 0).toNumber(true) : message.query_height; + return object; + }; - return QueryInterchainAccountResponse; - })(); + /** + * Converts this QueryFeeEnabledChannelsRequest to JSON. + * @function toJSON + * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelsRequest + * @instance + * @returns {Object.} JSON object + */ + QueryFeeEnabledChannelsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - v1.QueryParamsRequest = (function() { + return QueryFeeEnabledChannelsRequest; + })(); - /** - * Properties of a QueryParamsRequest. - * @memberof ibc.applications.interchain_accounts.controller.v1 - * @interface IQueryParamsRequest - */ + v1.QueryFeeEnabledChannelsResponse = (function() { - /** - * Constructs a new QueryParamsRequest. - * @memberof ibc.applications.interchain_accounts.controller.v1 - * @classdesc Represents a QueryParamsRequest. - * @implements IQueryParamsRequest - * @constructor - * @param {ibc.applications.interchain_accounts.controller.v1.IQueryParamsRequest=} [properties] Properties to set - */ - function QueryParamsRequest(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Properties of a QueryFeeEnabledChannelsResponse. + * @memberof ibc.applications.fee.v1 + * @interface IQueryFeeEnabledChannelsResponse + * @property {Array.|null} [fee_enabled_channels] QueryFeeEnabledChannelsResponse fee_enabled_channels + */ - /** - * Encodes the specified QueryParamsRequest message. Does not implicitly {@link ibc.applications.interchain_accounts.controller.v1.QueryParamsRequest.verify|verify} messages. - * @function encode - * @memberof ibc.applications.interchain_accounts.controller.v1.QueryParamsRequest - * @static - * @param {ibc.applications.interchain_accounts.controller.v1.IQueryParamsRequest} message QueryParamsRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - QueryParamsRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; + /** + * Constructs a new QueryFeeEnabledChannelsResponse. + * @memberof ibc.applications.fee.v1 + * @classdesc Represents a QueryFeeEnabledChannelsResponse. + * @implements IQueryFeeEnabledChannelsResponse + * @constructor + * @param {ibc.applications.fee.v1.IQueryFeeEnabledChannelsResponse=} [properties] Properties to set + */ + function QueryFeeEnabledChannelsResponse(properties) { + this.fee_enabled_channels = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Encodes the specified QueryParamsRequest message, length delimited. Does not implicitly {@link ibc.applications.interchain_accounts.controller.v1.QueryParamsRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof ibc.applications.interchain_accounts.controller.v1.QueryParamsRequest - * @static - * @param {ibc.applications.interchain_accounts.controller.v1.IQueryParamsRequest} message QueryParamsRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - QueryParamsRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * QueryFeeEnabledChannelsResponse fee_enabled_channels. + * @member {Array.} fee_enabled_channels + * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelsResponse + * @instance + */ + QueryFeeEnabledChannelsResponse.prototype.fee_enabled_channels = $util.emptyArray; - /** - * Decodes a QueryParamsRequest message from the specified reader or buffer. - * @function decode - * @memberof ibc.applications.interchain_accounts.controller.v1.QueryParamsRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.interchain_accounts.controller.v1.QueryParamsRequest} QueryParamsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - QueryParamsRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.interchain_accounts.controller.v1.QueryParamsRequest(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } + /** + * Encodes the specified QueryFeeEnabledChannelsResponse message. Does not implicitly {@link ibc.applications.fee.v1.QueryFeeEnabledChannelsResponse.verify|verify} messages. + * @function encode + * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelsResponse + * @static + * @param {ibc.applications.fee.v1.IQueryFeeEnabledChannelsResponse} message QueryFeeEnabledChannelsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + QueryFeeEnabledChannelsResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.fee_enabled_channels != null && message.fee_enabled_channels.length) + for (let i = 0; i < message.fee_enabled_channels.length; ++i) + $root.ibc.applications.fee.v1.FeeEnabledChannel.encode(message.fee_enabled_channels[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified QueryFeeEnabledChannelsResponse message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.QueryFeeEnabledChannelsResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelsResponse + * @static + * @param {ibc.applications.fee.v1.IQueryFeeEnabledChannelsResponse} message QueryFeeEnabledChannelsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + QueryFeeEnabledChannelsResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a QueryFeeEnabledChannelsResponse message from the specified reader or buffer. + * @function decode + * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {ibc.applications.fee.v1.QueryFeeEnabledChannelsResponse} QueryFeeEnabledChannelsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + QueryFeeEnabledChannelsResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.QueryFeeEnabledChannelsResponse(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.fee_enabled_channels && message.fee_enabled_channels.length)) + message.fee_enabled_channels = []; + message.fee_enabled_channels.push($root.ibc.applications.fee.v1.FeeEnabledChannel.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; } - return message; - }; - - /** - * Decodes a QueryParamsRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ibc.applications.interchain_accounts.controller.v1.QueryParamsRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.interchain_accounts.controller.v1.QueryParamsRequest} QueryParamsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - QueryParamsRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + } + return message; + }; - /** - * Verifies a QueryParamsRequest message. - * @function verify - * @memberof ibc.applications.interchain_accounts.controller.v1.QueryParamsRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - QueryParamsRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; + /** + * Decodes a QueryFeeEnabledChannelsResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {ibc.applications.fee.v1.QueryFeeEnabledChannelsResponse} QueryFeeEnabledChannelsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + QueryFeeEnabledChannelsResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a QueryParamsRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof ibc.applications.interchain_accounts.controller.v1.QueryParamsRequest - * @static - * @param {Object.} object Plain object - * @returns {ibc.applications.interchain_accounts.controller.v1.QueryParamsRequest} QueryParamsRequest - */ - QueryParamsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.interchain_accounts.controller.v1.QueryParamsRequest) - return object; - return new $root.ibc.applications.interchain_accounts.controller.v1.QueryParamsRequest(); - }; + /** + * Verifies a QueryFeeEnabledChannelsResponse message. + * @function verify + * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelsResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + QueryFeeEnabledChannelsResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.fee_enabled_channels != null && message.hasOwnProperty("fee_enabled_channels")) { + if (!Array.isArray(message.fee_enabled_channels)) + return "fee_enabled_channels: array expected"; + for (let i = 0; i < message.fee_enabled_channels.length; ++i) { + let error = $root.ibc.applications.fee.v1.FeeEnabledChannel.verify(message.fee_enabled_channels[i]); + if (error) + return "fee_enabled_channels." + error; + } + } + return null; + }; - /** - * Creates a plain object from a QueryParamsRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof ibc.applications.interchain_accounts.controller.v1.QueryParamsRequest - * @static - * @param {ibc.applications.interchain_accounts.controller.v1.QueryParamsRequest} message QueryParamsRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - QueryParamsRequest.toObject = function toObject() { - return {}; - }; + /** + * Creates a QueryFeeEnabledChannelsResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelsResponse + * @static + * @param {Object.} object Plain object + * @returns {ibc.applications.fee.v1.QueryFeeEnabledChannelsResponse} QueryFeeEnabledChannelsResponse + */ + QueryFeeEnabledChannelsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.fee.v1.QueryFeeEnabledChannelsResponse) + return object; + let message = new $root.ibc.applications.fee.v1.QueryFeeEnabledChannelsResponse(); + if (object.fee_enabled_channels) { + if (!Array.isArray(object.fee_enabled_channels)) + throw TypeError(".ibc.applications.fee.v1.QueryFeeEnabledChannelsResponse.fee_enabled_channels: array expected"); + message.fee_enabled_channels = []; + for (let i = 0; i < object.fee_enabled_channels.length; ++i) { + if (typeof object.fee_enabled_channels[i] !== "object") + throw TypeError(".ibc.applications.fee.v1.QueryFeeEnabledChannelsResponse.fee_enabled_channels: object expected"); + message.fee_enabled_channels[i] = $root.ibc.applications.fee.v1.FeeEnabledChannel.fromObject(object.fee_enabled_channels[i]); + } + } + return message; + }; - /** - * Converts this QueryParamsRequest to JSON. - * @function toJSON - * @memberof ibc.applications.interchain_accounts.controller.v1.QueryParamsRequest - * @instance - * @returns {Object.} JSON object - */ - QueryParamsRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from a QueryFeeEnabledChannelsResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelsResponse + * @static + * @param {ibc.applications.fee.v1.QueryFeeEnabledChannelsResponse} message QueryFeeEnabledChannelsResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + QueryFeeEnabledChannelsResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) + object.fee_enabled_channels = []; + if (message.fee_enabled_channels && message.fee_enabled_channels.length) { + object.fee_enabled_channels = []; + for (let j = 0; j < message.fee_enabled_channels.length; ++j) + object.fee_enabled_channels[j] = $root.ibc.applications.fee.v1.FeeEnabledChannel.toObject(message.fee_enabled_channels[j], options); + } + return object; + }; - return QueryParamsRequest; - })(); + /** + * Converts this QueryFeeEnabledChannelsResponse to JSON. + * @function toJSON + * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelsResponse + * @instance + * @returns {Object.} JSON object + */ + QueryFeeEnabledChannelsResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - v1.QueryParamsResponse = (function() { + return QueryFeeEnabledChannelsResponse; + })(); - /** - * Properties of a QueryParamsResponse. - * @memberof ibc.applications.interchain_accounts.controller.v1 - * @interface IQueryParamsResponse - * @property {ibc.applications.interchain_accounts.controller.v1.IParams|null} [params] QueryParamsResponse params - */ + v1.QueryFeeEnabledChannelRequest = (function() { - /** - * Constructs a new QueryParamsResponse. - * @memberof ibc.applications.interchain_accounts.controller.v1 - * @classdesc Represents a QueryParamsResponse. - * @implements IQueryParamsResponse - * @constructor - * @param {ibc.applications.interchain_accounts.controller.v1.IQueryParamsResponse=} [properties] Properties to set - */ - function QueryParamsResponse(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Properties of a QueryFeeEnabledChannelRequest. + * @memberof ibc.applications.fee.v1 + * @interface IQueryFeeEnabledChannelRequest + * @property {string|null} [port_id] QueryFeeEnabledChannelRequest port_id + * @property {string|null} [channel_id] QueryFeeEnabledChannelRequest channel_id + */ - /** - * QueryParamsResponse params. - * @member {ibc.applications.interchain_accounts.controller.v1.IParams|null|undefined} params - * @memberof ibc.applications.interchain_accounts.controller.v1.QueryParamsResponse - * @instance - */ - QueryParamsResponse.prototype.params = null; + /** + * Constructs a new QueryFeeEnabledChannelRequest. + * @memberof ibc.applications.fee.v1 + * @classdesc Represents a QueryFeeEnabledChannelRequest. + * @implements IQueryFeeEnabledChannelRequest + * @constructor + * @param {ibc.applications.fee.v1.IQueryFeeEnabledChannelRequest=} [properties] Properties to set + */ + function QueryFeeEnabledChannelRequest(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Encodes the specified QueryParamsResponse message. Does not implicitly {@link ibc.applications.interchain_accounts.controller.v1.QueryParamsResponse.verify|verify} messages. - * @function encode - * @memberof ibc.applications.interchain_accounts.controller.v1.QueryParamsResponse - * @static - * @param {ibc.applications.interchain_accounts.controller.v1.IQueryParamsResponse} message QueryParamsResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - QueryParamsResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.params != null && Object.hasOwnProperty.call(message, "params")) - $root.ibc.applications.interchain_accounts.controller.v1.Params.encode(message.params, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; + /** + * QueryFeeEnabledChannelRequest port_id. + * @member {string} port_id + * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelRequest + * @instance + */ + QueryFeeEnabledChannelRequest.prototype.port_id = ""; - /** - * Encodes the specified QueryParamsResponse message, length delimited. Does not implicitly {@link ibc.applications.interchain_accounts.controller.v1.QueryParamsResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof ibc.applications.interchain_accounts.controller.v1.QueryParamsResponse - * @static - * @param {ibc.applications.interchain_accounts.controller.v1.IQueryParamsResponse} message QueryParamsResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - QueryParamsResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * QueryFeeEnabledChannelRequest channel_id. + * @member {string} channel_id + * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelRequest + * @instance + */ + QueryFeeEnabledChannelRequest.prototype.channel_id = ""; - /** - * Decodes a QueryParamsResponse message from the specified reader or buffer. - * @function decode - * @memberof ibc.applications.interchain_accounts.controller.v1.QueryParamsResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.interchain_accounts.controller.v1.QueryParamsResponse} QueryParamsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - QueryParamsResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.interchain_accounts.controller.v1.QueryParamsResponse(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.params = $root.ibc.applications.interchain_accounts.controller.v1.Params.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Encodes the specified QueryFeeEnabledChannelRequest message. Does not implicitly {@link ibc.applications.fee.v1.QueryFeeEnabledChannelRequest.verify|verify} messages. + * @function encode + * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelRequest + * @static + * @param {ibc.applications.fee.v1.IQueryFeeEnabledChannelRequest} message QueryFeeEnabledChannelRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + QueryFeeEnabledChannelRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.port_id != null && Object.hasOwnProperty.call(message, "port_id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.port_id); + if (message.channel_id != null && Object.hasOwnProperty.call(message, "channel_id")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.channel_id); + return writer; + }; - /** - * Decodes a QueryParamsResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ibc.applications.interchain_accounts.controller.v1.QueryParamsResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.interchain_accounts.controller.v1.QueryParamsResponse} QueryParamsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - QueryParamsResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Encodes the specified QueryFeeEnabledChannelRequest message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.QueryFeeEnabledChannelRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelRequest + * @static + * @param {ibc.applications.fee.v1.IQueryFeeEnabledChannelRequest} message QueryFeeEnabledChannelRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + QueryFeeEnabledChannelRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Verifies a QueryParamsResponse message. - * @function verify - * @memberof ibc.applications.interchain_accounts.controller.v1.QueryParamsResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - QueryParamsResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.params != null && message.hasOwnProperty("params")) { - let error = $root.ibc.applications.interchain_accounts.controller.v1.Params.verify(message.params); - if (error) - return "params." + error; + /** + * Decodes a QueryFeeEnabledChannelRequest message from the specified reader or buffer. + * @function decode + * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {ibc.applications.fee.v1.QueryFeeEnabledChannelRequest} QueryFeeEnabledChannelRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + QueryFeeEnabledChannelRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.QueryFeeEnabledChannelRequest(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.port_id = reader.string(); + break; + case 2: + message.channel_id = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; } - return null; - }; + } + return message; + }; - /** - * Creates a QueryParamsResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof ibc.applications.interchain_accounts.controller.v1.QueryParamsResponse - * @static - * @param {Object.} object Plain object - * @returns {ibc.applications.interchain_accounts.controller.v1.QueryParamsResponse} QueryParamsResponse - */ - QueryParamsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.interchain_accounts.controller.v1.QueryParamsResponse) - return object; - let message = new $root.ibc.applications.interchain_accounts.controller.v1.QueryParamsResponse(); - if (object.params != null) { - if (typeof object.params !== "object") - throw TypeError(".ibc.applications.interchain_accounts.controller.v1.QueryParamsResponse.params: object expected"); - message.params = $root.ibc.applications.interchain_accounts.controller.v1.Params.fromObject(object.params); - } - return message; - }; + /** + * Decodes a QueryFeeEnabledChannelRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {ibc.applications.fee.v1.QueryFeeEnabledChannelRequest} QueryFeeEnabledChannelRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + QueryFeeEnabledChannelRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a plain object from a QueryParamsResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof ibc.applications.interchain_accounts.controller.v1.QueryParamsResponse - * @static - * @param {ibc.applications.interchain_accounts.controller.v1.QueryParamsResponse} message QueryParamsResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - QueryParamsResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) - object.params = null; - if (message.params != null && message.hasOwnProperty("params")) - object.params = $root.ibc.applications.interchain_accounts.controller.v1.Params.toObject(message.params, options); + /** + * Verifies a QueryFeeEnabledChannelRequest message. + * @function verify + * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + QueryFeeEnabledChannelRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.port_id != null && message.hasOwnProperty("port_id")) + if (!$util.isString(message.port_id)) + return "port_id: string expected"; + if (message.channel_id != null && message.hasOwnProperty("channel_id")) + if (!$util.isString(message.channel_id)) + return "channel_id: string expected"; + return null; + }; + + /** + * Creates a QueryFeeEnabledChannelRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelRequest + * @static + * @param {Object.} object Plain object + * @returns {ibc.applications.fee.v1.QueryFeeEnabledChannelRequest} QueryFeeEnabledChannelRequest + */ + QueryFeeEnabledChannelRequest.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.fee.v1.QueryFeeEnabledChannelRequest) return object; - }; + let message = new $root.ibc.applications.fee.v1.QueryFeeEnabledChannelRequest(); + if (object.port_id != null) + message.port_id = String(object.port_id); + if (object.channel_id != null) + message.channel_id = String(object.channel_id); + return message; + }; - /** - * Converts this QueryParamsResponse to JSON. - * @function toJSON - * @memberof ibc.applications.interchain_accounts.controller.v1.QueryParamsResponse - * @instance - * @returns {Object.} JSON object - */ - QueryParamsResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from a QueryFeeEnabledChannelRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelRequest + * @static + * @param {ibc.applications.fee.v1.QueryFeeEnabledChannelRequest} message QueryFeeEnabledChannelRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + QueryFeeEnabledChannelRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + object.port_id = ""; + object.channel_id = ""; + } + if (message.port_id != null && message.hasOwnProperty("port_id")) + object.port_id = message.port_id; + if (message.channel_id != null && message.hasOwnProperty("channel_id")) + object.channel_id = message.channel_id; + return object; + }; - return QueryParamsResponse; - })(); + /** + * Converts this QueryFeeEnabledChannelRequest to JSON. + * @function toJSON + * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelRequest + * @instance + * @returns {Object.} JSON object + */ + QueryFeeEnabledChannelRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - v1.Params = (function() { + return QueryFeeEnabledChannelRequest; + })(); - /** - * Properties of a Params. - * @memberof ibc.applications.interchain_accounts.controller.v1 - * @interface IParams - * @property {boolean|null} [controller_enabled] Params controller_enabled - */ + v1.QueryFeeEnabledChannelResponse = (function() { - /** - * Constructs a new Params. - * @memberof ibc.applications.interchain_accounts.controller.v1 - * @classdesc Represents a Params. - * @implements IParams - * @constructor - * @param {ibc.applications.interchain_accounts.controller.v1.IParams=} [properties] Properties to set - */ - function Params(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Properties of a QueryFeeEnabledChannelResponse. + * @memberof ibc.applications.fee.v1 + * @interface IQueryFeeEnabledChannelResponse + * @property {boolean|null} [fee_enabled] QueryFeeEnabledChannelResponse fee_enabled + */ - /** - * Params controller_enabled. - * @member {boolean} controller_enabled - * @memberof ibc.applications.interchain_accounts.controller.v1.Params - * @instance - */ - Params.prototype.controller_enabled = false; + /** + * Constructs a new QueryFeeEnabledChannelResponse. + * @memberof ibc.applications.fee.v1 + * @classdesc Represents a QueryFeeEnabledChannelResponse. + * @implements IQueryFeeEnabledChannelResponse + * @constructor + * @param {ibc.applications.fee.v1.IQueryFeeEnabledChannelResponse=} [properties] Properties to set + */ + function QueryFeeEnabledChannelResponse(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Encodes the specified Params message. Does not implicitly {@link ibc.applications.interchain_accounts.controller.v1.Params.verify|verify} messages. - * @function encode - * @memberof ibc.applications.interchain_accounts.controller.v1.Params - * @static - * @param {ibc.applications.interchain_accounts.controller.v1.IParams} message Params message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Params.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.controller_enabled != null && Object.hasOwnProperty.call(message, "controller_enabled")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.controller_enabled); - return writer; - }; + /** + * QueryFeeEnabledChannelResponse fee_enabled. + * @member {boolean} fee_enabled + * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelResponse + * @instance + */ + QueryFeeEnabledChannelResponse.prototype.fee_enabled = false; - /** - * Encodes the specified Params message, length delimited. Does not implicitly {@link ibc.applications.interchain_accounts.controller.v1.Params.verify|verify} messages. - * @function encodeDelimited - * @memberof ibc.applications.interchain_accounts.controller.v1.Params - * @static - * @param {ibc.applications.interchain_accounts.controller.v1.IParams} message Params message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Params.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified QueryFeeEnabledChannelResponse message. Does not implicitly {@link ibc.applications.fee.v1.QueryFeeEnabledChannelResponse.verify|verify} messages. + * @function encode + * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelResponse + * @static + * @param {ibc.applications.fee.v1.IQueryFeeEnabledChannelResponse} message QueryFeeEnabledChannelResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + QueryFeeEnabledChannelResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.fee_enabled != null && Object.hasOwnProperty.call(message, "fee_enabled")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.fee_enabled); + return writer; + }; - /** - * Decodes a Params message from the specified reader or buffer. - * @function decode - * @memberof ibc.applications.interchain_accounts.controller.v1.Params - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.interchain_accounts.controller.v1.Params} Params - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Params.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.interchain_accounts.controller.v1.Params(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.controller_enabled = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Encodes the specified QueryFeeEnabledChannelResponse message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.QueryFeeEnabledChannelResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelResponse + * @static + * @param {ibc.applications.fee.v1.IQueryFeeEnabledChannelResponse} message QueryFeeEnabledChannelResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + QueryFeeEnabledChannelResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a Params message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ibc.applications.interchain_accounts.controller.v1.Params - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.interchain_accounts.controller.v1.Params} Params - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Params.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a QueryFeeEnabledChannelResponse message from the specified reader or buffer. + * @function decode + * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {ibc.applications.fee.v1.QueryFeeEnabledChannelResponse} QueryFeeEnabledChannelResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + QueryFeeEnabledChannelResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.QueryFeeEnabledChannelResponse(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.fee_enabled = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Verifies a Params message. - * @function verify - * @memberof ibc.applications.interchain_accounts.controller.v1.Params - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Params.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.controller_enabled != null && message.hasOwnProperty("controller_enabled")) - if (typeof message.controller_enabled !== "boolean") - return "controller_enabled: boolean expected"; - return null; - }; + /** + * Decodes a QueryFeeEnabledChannelResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {ibc.applications.fee.v1.QueryFeeEnabledChannelResponse} QueryFeeEnabledChannelResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + QueryFeeEnabledChannelResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a Params message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof ibc.applications.interchain_accounts.controller.v1.Params - * @static - * @param {Object.} object Plain object - * @returns {ibc.applications.interchain_accounts.controller.v1.Params} Params - */ - Params.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.interchain_accounts.controller.v1.Params) - return object; - let message = new $root.ibc.applications.interchain_accounts.controller.v1.Params(); - if (object.controller_enabled != null) - message.controller_enabled = Boolean(object.controller_enabled); - return message; - }; + /** + * Verifies a QueryFeeEnabledChannelResponse message. + * @function verify + * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + QueryFeeEnabledChannelResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.fee_enabled != null && message.hasOwnProperty("fee_enabled")) + if (typeof message.fee_enabled !== "boolean") + return "fee_enabled: boolean expected"; + return null; + }; - /** - * Creates a plain object from a Params message. Also converts values to other types if specified. - * @function toObject - * @memberof ibc.applications.interchain_accounts.controller.v1.Params - * @static - * @param {ibc.applications.interchain_accounts.controller.v1.Params} message Params - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Params.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) - object.controller_enabled = false; - if (message.controller_enabled != null && message.hasOwnProperty("controller_enabled")) - object.controller_enabled = message.controller_enabled; + /** + * Creates a QueryFeeEnabledChannelResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelResponse + * @static + * @param {Object.} object Plain object + * @returns {ibc.applications.fee.v1.QueryFeeEnabledChannelResponse} QueryFeeEnabledChannelResponse + */ + QueryFeeEnabledChannelResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.fee.v1.QueryFeeEnabledChannelResponse) return object; - }; + let message = new $root.ibc.applications.fee.v1.QueryFeeEnabledChannelResponse(); + if (object.fee_enabled != null) + message.fee_enabled = Boolean(object.fee_enabled); + return message; + }; - /** - * Converts this Params to JSON. - * @function toJSON - * @memberof ibc.applications.interchain_accounts.controller.v1.Params - * @instance - * @returns {Object.} JSON object - */ - Params.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from a QueryFeeEnabledChannelResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelResponse + * @static + * @param {ibc.applications.fee.v1.QueryFeeEnabledChannelResponse} message QueryFeeEnabledChannelResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + QueryFeeEnabledChannelResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) + object.fee_enabled = false; + if (message.fee_enabled != null && message.hasOwnProperty("fee_enabled")) + object.fee_enabled = message.fee_enabled; + return object; + }; - return Params; - })(); + /** + * Converts this QueryFeeEnabledChannelResponse to JSON. + * @function toJSON + * @memberof ibc.applications.fee.v1.QueryFeeEnabledChannelResponse + * @instance + * @returns {Object.} JSON object + */ + QueryFeeEnabledChannelResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return v1; + return QueryFeeEnabledChannelResponse; })(); - return controller; - })(); + v1.GenesisState = (function() { - interchain_accounts.host = (function() { + /** + * Properties of a GenesisState. + * @memberof ibc.applications.fee.v1 + * @interface IGenesisState + * @property {Array.|null} [identified_fees] GenesisState identified_fees + * @property {Array.|null} [fee_enabled_channels] GenesisState fee_enabled_channels + * @property {Array.|null} [registered_payees] GenesisState registered_payees + * @property {Array.|null} [registered_counterparty_payees] GenesisState registered_counterparty_payees + * @property {Array.|null} [forward_relayers] GenesisState forward_relayers + */ - /** - * Namespace host. - * @memberof ibc.applications.interchain_accounts - * @namespace - */ - const host = {}; + /** + * Constructs a new GenesisState. + * @memberof ibc.applications.fee.v1 + * @classdesc Represents a GenesisState. + * @implements IGenesisState + * @constructor + * @param {ibc.applications.fee.v1.IGenesisState=} [properties] Properties to set + */ + function GenesisState(properties) { + this.identified_fees = []; + this.fee_enabled_channels = []; + this.registered_payees = []; + this.registered_counterparty_payees = []; + this.forward_relayers = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - host.v1 = (function() { + /** + * GenesisState identified_fees. + * @member {Array.} identified_fees + * @memberof ibc.applications.fee.v1.GenesisState + * @instance + */ + GenesisState.prototype.identified_fees = $util.emptyArray; + + /** + * GenesisState fee_enabled_channels. + * @member {Array.} fee_enabled_channels + * @memberof ibc.applications.fee.v1.GenesisState + * @instance + */ + GenesisState.prototype.fee_enabled_channels = $util.emptyArray; + + /** + * GenesisState registered_payees. + * @member {Array.} registered_payees + * @memberof ibc.applications.fee.v1.GenesisState + * @instance + */ + GenesisState.prototype.registered_payees = $util.emptyArray; + + /** + * GenesisState registered_counterparty_payees. + * @member {Array.} registered_counterparty_payees + * @memberof ibc.applications.fee.v1.GenesisState + * @instance + */ + GenesisState.prototype.registered_counterparty_payees = $util.emptyArray; + + /** + * GenesisState forward_relayers. + * @member {Array.} forward_relayers + * @memberof ibc.applications.fee.v1.GenesisState + * @instance + */ + GenesisState.prototype.forward_relayers = $util.emptyArray; + + /** + * Encodes the specified GenesisState message. Does not implicitly {@link ibc.applications.fee.v1.GenesisState.verify|verify} messages. + * @function encode + * @memberof ibc.applications.fee.v1.GenesisState + * @static + * @param {ibc.applications.fee.v1.IGenesisState} message GenesisState message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GenesisState.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.identified_fees != null && message.identified_fees.length) + for (let i = 0; i < message.identified_fees.length; ++i) + $root.ibc.applications.fee.v1.IdentifiedPacketFees.encode(message.identified_fees[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.fee_enabled_channels != null && message.fee_enabled_channels.length) + for (let i = 0; i < message.fee_enabled_channels.length; ++i) + $root.ibc.applications.fee.v1.FeeEnabledChannel.encode(message.fee_enabled_channels[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.registered_payees != null && message.registered_payees.length) + for (let i = 0; i < message.registered_payees.length; ++i) + $root.ibc.applications.fee.v1.RegisteredPayee.encode(message.registered_payees[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.registered_counterparty_payees != null && message.registered_counterparty_payees.length) + for (let i = 0; i < message.registered_counterparty_payees.length; ++i) + $root.ibc.applications.fee.v1.RegisteredCounterpartyPayee.encode(message.registered_counterparty_payees[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.forward_relayers != null && message.forward_relayers.length) + for (let i = 0; i < message.forward_relayers.length; ++i) + $root.ibc.applications.fee.v1.ForwardRelayerAddress.encode(message.forward_relayers[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified GenesisState message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.GenesisState.verify|verify} messages. + * @function encodeDelimited + * @memberof ibc.applications.fee.v1.GenesisState + * @static + * @param {ibc.applications.fee.v1.IGenesisState} message GenesisState message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GenesisState.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GenesisState message from the specified reader or buffer. + * @function decode + * @memberof ibc.applications.fee.v1.GenesisState + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {ibc.applications.fee.v1.GenesisState} GenesisState + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GenesisState.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.GenesisState(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.identified_fees && message.identified_fees.length)) + message.identified_fees = []; + message.identified_fees.push($root.ibc.applications.fee.v1.IdentifiedPacketFees.decode(reader, reader.uint32())); + break; + case 2: + if (!(message.fee_enabled_channels && message.fee_enabled_channels.length)) + message.fee_enabled_channels = []; + message.fee_enabled_channels.push($root.ibc.applications.fee.v1.FeeEnabledChannel.decode(reader, reader.uint32())); + break; + case 3: + if (!(message.registered_payees && message.registered_payees.length)) + message.registered_payees = []; + message.registered_payees.push($root.ibc.applications.fee.v1.RegisteredPayee.decode(reader, reader.uint32())); + break; + case 4: + if (!(message.registered_counterparty_payees && message.registered_counterparty_payees.length)) + message.registered_counterparty_payees = []; + message.registered_counterparty_payees.push($root.ibc.applications.fee.v1.RegisteredCounterpartyPayee.decode(reader, reader.uint32())); + break; + case 5: + if (!(message.forward_relayers && message.forward_relayers.length)) + message.forward_relayers = []; + message.forward_relayers.push($root.ibc.applications.fee.v1.ForwardRelayerAddress.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Namespace v1. - * @memberof ibc.applications.interchain_accounts.host - * @namespace + * Decodes a GenesisState message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof ibc.applications.fee.v1.GenesisState + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {ibc.applications.fee.v1.GenesisState} GenesisState + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - const v1 = {}; - - v1.Params = (function() { - - /** - * Properties of a Params. - * @memberof ibc.applications.interchain_accounts.host.v1 - * @interface IParams - * @property {boolean|null} [host_enabled] Params host_enabled - * @property {Array.|null} [allow_messages] Params allow_messages - */ + GenesisState.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Constructs a new Params. - * @memberof ibc.applications.interchain_accounts.host.v1 - * @classdesc Represents a Params. - * @implements IParams - * @constructor - * @param {ibc.applications.interchain_accounts.host.v1.IParams=} [properties] Properties to set - */ - function Params(properties) { - this.allow_messages = []; - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + /** + * Verifies a GenesisState message. + * @function verify + * @memberof ibc.applications.fee.v1.GenesisState + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GenesisState.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.identified_fees != null && message.hasOwnProperty("identified_fees")) { + if (!Array.isArray(message.identified_fees)) + return "identified_fees: array expected"; + for (let i = 0; i < message.identified_fees.length; ++i) { + let error = $root.ibc.applications.fee.v1.IdentifiedPacketFees.verify(message.identified_fees[i]); + if (error) + return "identified_fees." + error; + } } - - /** - * Params host_enabled. - * @member {boolean} host_enabled - * @memberof ibc.applications.interchain_accounts.host.v1.Params - * @instance - */ - Params.prototype.host_enabled = false; - - /** - * Params allow_messages. - * @member {Array.} allow_messages - * @memberof ibc.applications.interchain_accounts.host.v1.Params - * @instance - */ - Params.prototype.allow_messages = $util.emptyArray; - - /** - * Encodes the specified Params message. Does not implicitly {@link ibc.applications.interchain_accounts.host.v1.Params.verify|verify} messages. - * @function encode - * @memberof ibc.applications.interchain_accounts.host.v1.Params - * @static - * @param {ibc.applications.interchain_accounts.host.v1.IParams} message Params message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Params.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.host_enabled != null && Object.hasOwnProperty.call(message, "host_enabled")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.host_enabled); - if (message.allow_messages != null && message.allow_messages.length) - for (let i = 0; i < message.allow_messages.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.allow_messages[i]); - return writer; - }; - - /** - * Encodes the specified Params message, length delimited. Does not implicitly {@link ibc.applications.interchain_accounts.host.v1.Params.verify|verify} messages. - * @function encodeDelimited - * @memberof ibc.applications.interchain_accounts.host.v1.Params - * @static - * @param {ibc.applications.interchain_accounts.host.v1.IParams} message Params message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Params.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a Params message from the specified reader or buffer. - * @function decode - * @memberof ibc.applications.interchain_accounts.host.v1.Params - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.interchain_accounts.host.v1.Params} Params - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Params.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.interchain_accounts.host.v1.Params(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.host_enabled = reader.bool(); - break; - case 2: - if (!(message.allow_messages && message.allow_messages.length)) - message.allow_messages = []; - message.allow_messages.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } + if (message.fee_enabled_channels != null && message.hasOwnProperty("fee_enabled_channels")) { + if (!Array.isArray(message.fee_enabled_channels)) + return "fee_enabled_channels: array expected"; + for (let i = 0; i < message.fee_enabled_channels.length; ++i) { + let error = $root.ibc.applications.fee.v1.FeeEnabledChannel.verify(message.fee_enabled_channels[i]); + if (error) + return "fee_enabled_channels." + error; } - return message; - }; - - /** - * Decodes a Params message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ibc.applications.interchain_accounts.host.v1.Params - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.interchain_accounts.host.v1.Params} Params - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Params.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a Params message. - * @function verify - * @memberof ibc.applications.interchain_accounts.host.v1.Params - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Params.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.host_enabled != null && message.hasOwnProperty("host_enabled")) - if (typeof message.host_enabled !== "boolean") - return "host_enabled: boolean expected"; - if (message.allow_messages != null && message.hasOwnProperty("allow_messages")) { - if (!Array.isArray(message.allow_messages)) - return "allow_messages: array expected"; - for (let i = 0; i < message.allow_messages.length; ++i) - if (!$util.isString(message.allow_messages[i])) - return "allow_messages: string[] expected"; + } + if (message.registered_payees != null && message.hasOwnProperty("registered_payees")) { + if (!Array.isArray(message.registered_payees)) + return "registered_payees: array expected"; + for (let i = 0; i < message.registered_payees.length; ++i) { + let error = $root.ibc.applications.fee.v1.RegisteredPayee.verify(message.registered_payees[i]); + if (error) + return "registered_payees." + error; } - return null; - }; - - /** - * Creates a Params message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof ibc.applications.interchain_accounts.host.v1.Params - * @static - * @param {Object.} object Plain object - * @returns {ibc.applications.interchain_accounts.host.v1.Params} Params - */ - Params.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.interchain_accounts.host.v1.Params) - return object; - let message = new $root.ibc.applications.interchain_accounts.host.v1.Params(); - if (object.host_enabled != null) - message.host_enabled = Boolean(object.host_enabled); - if (object.allow_messages) { - if (!Array.isArray(object.allow_messages)) - throw TypeError(".ibc.applications.interchain_accounts.host.v1.Params.allow_messages: array expected"); - message.allow_messages = []; - for (let i = 0; i < object.allow_messages.length; ++i) - message.allow_messages[i] = String(object.allow_messages[i]); + } + if (message.registered_counterparty_payees != null && message.hasOwnProperty("registered_counterparty_payees")) { + if (!Array.isArray(message.registered_counterparty_payees)) + return "registered_counterparty_payees: array expected"; + for (let i = 0; i < message.registered_counterparty_payees.length; ++i) { + let error = $root.ibc.applications.fee.v1.RegisteredCounterpartyPayee.verify(message.registered_counterparty_payees[i]); + if (error) + return "registered_counterparty_payees." + error; } - return message; - }; - - /** - * Creates a plain object from a Params message. Also converts values to other types if specified. - * @function toObject - * @memberof ibc.applications.interchain_accounts.host.v1.Params - * @static - * @param {ibc.applications.interchain_accounts.host.v1.Params} message Params - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Params.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.arrays || options.defaults) - object.allow_messages = []; - if (options.defaults) - object.host_enabled = false; - if (message.host_enabled != null && message.hasOwnProperty("host_enabled")) - object.host_enabled = message.host_enabled; - if (message.allow_messages && message.allow_messages.length) { - object.allow_messages = []; - for (let j = 0; j < message.allow_messages.length; ++j) - object.allow_messages[j] = message.allow_messages[j]; + } + if (message.forward_relayers != null && message.hasOwnProperty("forward_relayers")) { + if (!Array.isArray(message.forward_relayers)) + return "forward_relayers: array expected"; + for (let i = 0; i < message.forward_relayers.length; ++i) { + let error = $root.ibc.applications.fee.v1.ForwardRelayerAddress.verify(message.forward_relayers[i]); + if (error) + return "forward_relayers." + error; } - return object; - }; - - /** - * Converts this Params to JSON. - * @function toJSON - * @memberof ibc.applications.interchain_accounts.host.v1.Params - * @instance - * @returns {Object.} JSON object - */ - Params.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return Params; - })(); - - v1.Query = (function() { - - /** - * Constructs a new Query service. - * @memberof ibc.applications.interchain_accounts.host.v1 - * @classdesc Represents a Query - * @extends $protobuf.rpc.Service - * @constructor - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - */ - function Query(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); } + return null; + }; - (Query.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Query; - - /** - * Callback as used by {@link ibc.applications.interchain_accounts.host.v1.Query#params}. - * @memberof ibc.applications.interchain_accounts.host.v1.Query - * @typedef ParamsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.applications.interchain_accounts.host.v1.QueryParamsResponse} [response] QueryParamsResponse - */ + /** + * Creates a GenesisState message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof ibc.applications.fee.v1.GenesisState + * @static + * @param {Object.} object Plain object + * @returns {ibc.applications.fee.v1.GenesisState} GenesisState + */ + GenesisState.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.fee.v1.GenesisState) + return object; + let message = new $root.ibc.applications.fee.v1.GenesisState(); + if (object.identified_fees) { + if (!Array.isArray(object.identified_fees)) + throw TypeError(".ibc.applications.fee.v1.GenesisState.identified_fees: array expected"); + message.identified_fees = []; + for (let i = 0; i < object.identified_fees.length; ++i) { + if (typeof object.identified_fees[i] !== "object") + throw TypeError(".ibc.applications.fee.v1.GenesisState.identified_fees: object expected"); + message.identified_fees[i] = $root.ibc.applications.fee.v1.IdentifiedPacketFees.fromObject(object.identified_fees[i]); + } + } + if (object.fee_enabled_channels) { + if (!Array.isArray(object.fee_enabled_channels)) + throw TypeError(".ibc.applications.fee.v1.GenesisState.fee_enabled_channels: array expected"); + message.fee_enabled_channels = []; + for (let i = 0; i < object.fee_enabled_channels.length; ++i) { + if (typeof object.fee_enabled_channels[i] !== "object") + throw TypeError(".ibc.applications.fee.v1.GenesisState.fee_enabled_channels: object expected"); + message.fee_enabled_channels[i] = $root.ibc.applications.fee.v1.FeeEnabledChannel.fromObject(object.fee_enabled_channels[i]); + } + } + if (object.registered_payees) { + if (!Array.isArray(object.registered_payees)) + throw TypeError(".ibc.applications.fee.v1.GenesisState.registered_payees: array expected"); + message.registered_payees = []; + for (let i = 0; i < object.registered_payees.length; ++i) { + if (typeof object.registered_payees[i] !== "object") + throw TypeError(".ibc.applications.fee.v1.GenesisState.registered_payees: object expected"); + message.registered_payees[i] = $root.ibc.applications.fee.v1.RegisteredPayee.fromObject(object.registered_payees[i]); + } + } + if (object.registered_counterparty_payees) { + if (!Array.isArray(object.registered_counterparty_payees)) + throw TypeError(".ibc.applications.fee.v1.GenesisState.registered_counterparty_payees: array expected"); + message.registered_counterparty_payees = []; + for (let i = 0; i < object.registered_counterparty_payees.length; ++i) { + if (typeof object.registered_counterparty_payees[i] !== "object") + throw TypeError(".ibc.applications.fee.v1.GenesisState.registered_counterparty_payees: object expected"); + message.registered_counterparty_payees[i] = $root.ibc.applications.fee.v1.RegisteredCounterpartyPayee.fromObject(object.registered_counterparty_payees[i]); + } + } + if (object.forward_relayers) { + if (!Array.isArray(object.forward_relayers)) + throw TypeError(".ibc.applications.fee.v1.GenesisState.forward_relayers: array expected"); + message.forward_relayers = []; + for (let i = 0; i < object.forward_relayers.length; ++i) { + if (typeof object.forward_relayers[i] !== "object") + throw TypeError(".ibc.applications.fee.v1.GenesisState.forward_relayers: object expected"); + message.forward_relayers[i] = $root.ibc.applications.fee.v1.ForwardRelayerAddress.fromObject(object.forward_relayers[i]); + } + } + return message; + }; - /** - * Calls Params. - * @function params - * @memberof ibc.applications.interchain_accounts.host.v1.Query - * @instance - * @param {ibc.applications.interchain_accounts.host.v1.IQueryParamsRequest} request QueryParamsRequest message or plain object - * @param {ibc.applications.interchain_accounts.host.v1.Query.ParamsCallback} callback Node-style callback called with the error, if any, and QueryParamsResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Query.prototype.params = function params(request, callback) { - return this.rpcCall(params, $root.ibc.applications.interchain_accounts.host.v1.QueryParamsRequest, $root.ibc.applications.interchain_accounts.host.v1.QueryParamsResponse, request, callback); - }, "name", { value: "Params" }); + /** + * Creates a plain object from a GenesisState message. Also converts values to other types if specified. + * @function toObject + * @memberof ibc.applications.fee.v1.GenesisState + * @static + * @param {ibc.applications.fee.v1.GenesisState} message GenesisState + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GenesisState.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) { + object.identified_fees = []; + object.fee_enabled_channels = []; + object.registered_payees = []; + object.registered_counterparty_payees = []; + object.forward_relayers = []; + } + if (message.identified_fees && message.identified_fees.length) { + object.identified_fees = []; + for (let j = 0; j < message.identified_fees.length; ++j) + object.identified_fees[j] = $root.ibc.applications.fee.v1.IdentifiedPacketFees.toObject(message.identified_fees[j], options); + } + if (message.fee_enabled_channels && message.fee_enabled_channels.length) { + object.fee_enabled_channels = []; + for (let j = 0; j < message.fee_enabled_channels.length; ++j) + object.fee_enabled_channels[j] = $root.ibc.applications.fee.v1.FeeEnabledChannel.toObject(message.fee_enabled_channels[j], options); + } + if (message.registered_payees && message.registered_payees.length) { + object.registered_payees = []; + for (let j = 0; j < message.registered_payees.length; ++j) + object.registered_payees[j] = $root.ibc.applications.fee.v1.RegisteredPayee.toObject(message.registered_payees[j], options); + } + if (message.registered_counterparty_payees && message.registered_counterparty_payees.length) { + object.registered_counterparty_payees = []; + for (let j = 0; j < message.registered_counterparty_payees.length; ++j) + object.registered_counterparty_payees[j] = $root.ibc.applications.fee.v1.RegisteredCounterpartyPayee.toObject(message.registered_counterparty_payees[j], options); + } + if (message.forward_relayers && message.forward_relayers.length) { + object.forward_relayers = []; + for (let j = 0; j < message.forward_relayers.length; ++j) + object.forward_relayers[j] = $root.ibc.applications.fee.v1.ForwardRelayerAddress.toObject(message.forward_relayers[j], options); + } + return object; + }; - /** - * Calls Params. - * @function params - * @memberof ibc.applications.interchain_accounts.host.v1.Query - * @instance - * @param {ibc.applications.interchain_accounts.host.v1.IQueryParamsRequest} request QueryParamsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * Converts this GenesisState to JSON. + * @function toJSON + * @memberof ibc.applications.fee.v1.GenesisState + * @instance + * @returns {Object.} JSON object + */ + GenesisState.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return Query; - })(); + return GenesisState; + })(); - v1.QueryParamsRequest = (function() { + v1.FeeEnabledChannel = (function() { - /** - * Properties of a QueryParamsRequest. - * @memberof ibc.applications.interchain_accounts.host.v1 - * @interface IQueryParamsRequest - */ + /** + * Properties of a FeeEnabledChannel. + * @memberof ibc.applications.fee.v1 + * @interface IFeeEnabledChannel + * @property {string|null} [port_id] FeeEnabledChannel port_id + * @property {string|null} [channel_id] FeeEnabledChannel channel_id + */ - /** - * Constructs a new QueryParamsRequest. - * @memberof ibc.applications.interchain_accounts.host.v1 - * @classdesc Represents a QueryParamsRequest. - * @implements IQueryParamsRequest - * @constructor - * @param {ibc.applications.interchain_accounts.host.v1.IQueryParamsRequest=} [properties] Properties to set - */ - function QueryParamsRequest(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Constructs a new FeeEnabledChannel. + * @memberof ibc.applications.fee.v1 + * @classdesc Represents a FeeEnabledChannel. + * @implements IFeeEnabledChannel + * @constructor + * @param {ibc.applications.fee.v1.IFeeEnabledChannel=} [properties] Properties to set + */ + function FeeEnabledChannel(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Encodes the specified QueryParamsRequest message. Does not implicitly {@link ibc.applications.interchain_accounts.host.v1.QueryParamsRequest.verify|verify} messages. - * @function encode - * @memberof ibc.applications.interchain_accounts.host.v1.QueryParamsRequest - * @static - * @param {ibc.applications.interchain_accounts.host.v1.IQueryParamsRequest} message QueryParamsRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - QueryParamsRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; + /** + * FeeEnabledChannel port_id. + * @member {string} port_id + * @memberof ibc.applications.fee.v1.FeeEnabledChannel + * @instance + */ + FeeEnabledChannel.prototype.port_id = ""; - /** - * Encodes the specified QueryParamsRequest message, length delimited. Does not implicitly {@link ibc.applications.interchain_accounts.host.v1.QueryParamsRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof ibc.applications.interchain_accounts.host.v1.QueryParamsRequest - * @static - * @param {ibc.applications.interchain_accounts.host.v1.IQueryParamsRequest} message QueryParamsRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - QueryParamsRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * FeeEnabledChannel channel_id. + * @member {string} channel_id + * @memberof ibc.applications.fee.v1.FeeEnabledChannel + * @instance + */ + FeeEnabledChannel.prototype.channel_id = ""; - /** - * Decodes a QueryParamsRequest message from the specified reader or buffer. - * @function decode - * @memberof ibc.applications.interchain_accounts.host.v1.QueryParamsRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.interchain_accounts.host.v1.QueryParamsRequest} QueryParamsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - QueryParamsRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.interchain_accounts.host.v1.QueryParamsRequest(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Encodes the specified FeeEnabledChannel message. Does not implicitly {@link ibc.applications.fee.v1.FeeEnabledChannel.verify|verify} messages. + * @function encode + * @memberof ibc.applications.fee.v1.FeeEnabledChannel + * @static + * @param {ibc.applications.fee.v1.IFeeEnabledChannel} message FeeEnabledChannel message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FeeEnabledChannel.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.port_id != null && Object.hasOwnProperty.call(message, "port_id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.port_id); + if (message.channel_id != null && Object.hasOwnProperty.call(message, "channel_id")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.channel_id); + return writer; + }; - /** - * Decodes a QueryParamsRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ibc.applications.interchain_accounts.host.v1.QueryParamsRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.interchain_accounts.host.v1.QueryParamsRequest} QueryParamsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - QueryParamsRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Encodes the specified FeeEnabledChannel message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.FeeEnabledChannel.verify|verify} messages. + * @function encodeDelimited + * @memberof ibc.applications.fee.v1.FeeEnabledChannel + * @static + * @param {ibc.applications.fee.v1.IFeeEnabledChannel} message FeeEnabledChannel message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FeeEnabledChannel.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Verifies a QueryParamsRequest message. - * @function verify - * @memberof ibc.applications.interchain_accounts.host.v1.QueryParamsRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - QueryParamsRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; + /** + * Decodes a FeeEnabledChannel message from the specified reader or buffer. + * @function decode + * @memberof ibc.applications.fee.v1.FeeEnabledChannel + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {ibc.applications.fee.v1.FeeEnabledChannel} FeeEnabledChannel + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FeeEnabledChannel.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.FeeEnabledChannel(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.port_id = reader.string(); + break; + case 2: + message.channel_id = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Creates a QueryParamsRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof ibc.applications.interchain_accounts.host.v1.QueryParamsRequest - * @static - * @param {Object.} object Plain object - * @returns {ibc.applications.interchain_accounts.host.v1.QueryParamsRequest} QueryParamsRequest - */ - QueryParamsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.interchain_accounts.host.v1.QueryParamsRequest) - return object; - return new $root.ibc.applications.interchain_accounts.host.v1.QueryParamsRequest(); - }; + /** + * Decodes a FeeEnabledChannel message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof ibc.applications.fee.v1.FeeEnabledChannel + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {ibc.applications.fee.v1.FeeEnabledChannel} FeeEnabledChannel + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FeeEnabledChannel.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a plain object from a QueryParamsRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof ibc.applications.interchain_accounts.host.v1.QueryParamsRequest - * @static - * @param {ibc.applications.interchain_accounts.host.v1.QueryParamsRequest} message QueryParamsRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - QueryParamsRequest.toObject = function toObject() { - return {}; - }; + /** + * Verifies a FeeEnabledChannel message. + * @function verify + * @memberof ibc.applications.fee.v1.FeeEnabledChannel + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FeeEnabledChannel.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.port_id != null && message.hasOwnProperty("port_id")) + if (!$util.isString(message.port_id)) + return "port_id: string expected"; + if (message.channel_id != null && message.hasOwnProperty("channel_id")) + if (!$util.isString(message.channel_id)) + return "channel_id: string expected"; + return null; + }; - /** - * Converts this QueryParamsRequest to JSON. - * @function toJSON - * @memberof ibc.applications.interchain_accounts.host.v1.QueryParamsRequest - * @instance - * @returns {Object.} JSON object - */ - QueryParamsRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a FeeEnabledChannel message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof ibc.applications.fee.v1.FeeEnabledChannel + * @static + * @param {Object.} object Plain object + * @returns {ibc.applications.fee.v1.FeeEnabledChannel} FeeEnabledChannel + */ + FeeEnabledChannel.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.fee.v1.FeeEnabledChannel) + return object; + let message = new $root.ibc.applications.fee.v1.FeeEnabledChannel(); + if (object.port_id != null) + message.port_id = String(object.port_id); + if (object.channel_id != null) + message.channel_id = String(object.channel_id); + return message; + }; - return QueryParamsRequest; - })(); + /** + * Creates a plain object from a FeeEnabledChannel message. Also converts values to other types if specified. + * @function toObject + * @memberof ibc.applications.fee.v1.FeeEnabledChannel + * @static + * @param {ibc.applications.fee.v1.FeeEnabledChannel} message FeeEnabledChannel + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FeeEnabledChannel.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + object.port_id = ""; + object.channel_id = ""; + } + if (message.port_id != null && message.hasOwnProperty("port_id")) + object.port_id = message.port_id; + if (message.channel_id != null && message.hasOwnProperty("channel_id")) + object.channel_id = message.channel_id; + return object; + }; - v1.QueryParamsResponse = (function() { + /** + * Converts this FeeEnabledChannel to JSON. + * @function toJSON + * @memberof ibc.applications.fee.v1.FeeEnabledChannel + * @instance + * @returns {Object.} JSON object + */ + FeeEnabledChannel.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Properties of a QueryParamsResponse. - * @memberof ibc.applications.interchain_accounts.host.v1 - * @interface IQueryParamsResponse - * @property {ibc.applications.interchain_accounts.host.v1.IParams|null} [params] QueryParamsResponse params - */ + return FeeEnabledChannel; + })(); - /** - * Constructs a new QueryParamsResponse. - * @memberof ibc.applications.interchain_accounts.host.v1 - * @classdesc Represents a QueryParamsResponse. - * @implements IQueryParamsResponse - * @constructor - * @param {ibc.applications.interchain_accounts.host.v1.IQueryParamsResponse=} [properties] Properties to set - */ - function QueryParamsResponse(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + v1.RegisteredPayee = (function() { - /** - * QueryParamsResponse params. - * @member {ibc.applications.interchain_accounts.host.v1.IParams|null|undefined} params - * @memberof ibc.applications.interchain_accounts.host.v1.QueryParamsResponse - * @instance - */ - QueryParamsResponse.prototype.params = null; + /** + * Properties of a RegisteredPayee. + * @memberof ibc.applications.fee.v1 + * @interface IRegisteredPayee + * @property {string|null} [channel_id] RegisteredPayee channel_id + * @property {string|null} [relayer] RegisteredPayee relayer + * @property {string|null} [payee] RegisteredPayee payee + */ - /** - * Encodes the specified QueryParamsResponse message. Does not implicitly {@link ibc.applications.interchain_accounts.host.v1.QueryParamsResponse.verify|verify} messages. - * @function encode - * @memberof ibc.applications.interchain_accounts.host.v1.QueryParamsResponse - * @static - * @param {ibc.applications.interchain_accounts.host.v1.IQueryParamsResponse} message QueryParamsResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - QueryParamsResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.params != null && Object.hasOwnProperty.call(message, "params")) - $root.ibc.applications.interchain_accounts.host.v1.Params.encode(message.params, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; + /** + * Constructs a new RegisteredPayee. + * @memberof ibc.applications.fee.v1 + * @classdesc Represents a RegisteredPayee. + * @implements IRegisteredPayee + * @constructor + * @param {ibc.applications.fee.v1.IRegisteredPayee=} [properties] Properties to set + */ + function RegisteredPayee(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Encodes the specified QueryParamsResponse message, length delimited. Does not implicitly {@link ibc.applications.interchain_accounts.host.v1.QueryParamsResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof ibc.applications.interchain_accounts.host.v1.QueryParamsResponse - * @static - * @param {ibc.applications.interchain_accounts.host.v1.IQueryParamsResponse} message QueryParamsResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - QueryParamsResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * RegisteredPayee channel_id. + * @member {string} channel_id + * @memberof ibc.applications.fee.v1.RegisteredPayee + * @instance + */ + RegisteredPayee.prototype.channel_id = ""; - /** - * Decodes a QueryParamsResponse message from the specified reader or buffer. - * @function decode - * @memberof ibc.applications.interchain_accounts.host.v1.QueryParamsResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.interchain_accounts.host.v1.QueryParamsResponse} QueryParamsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - QueryParamsResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.interchain_accounts.host.v1.QueryParamsResponse(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.params = $root.ibc.applications.interchain_accounts.host.v1.Params.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * RegisteredPayee relayer. + * @member {string} relayer + * @memberof ibc.applications.fee.v1.RegisteredPayee + * @instance + */ + RegisteredPayee.prototype.relayer = ""; - /** - * Decodes a QueryParamsResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ibc.applications.interchain_accounts.host.v1.QueryParamsResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.interchain_accounts.host.v1.QueryParamsResponse} QueryParamsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - QueryParamsResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * RegisteredPayee payee. + * @member {string} payee + * @memberof ibc.applications.fee.v1.RegisteredPayee + * @instance + */ + RegisteredPayee.prototype.payee = ""; - /** - * Verifies a QueryParamsResponse message. - * @function verify - * @memberof ibc.applications.interchain_accounts.host.v1.QueryParamsResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - QueryParamsResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.params != null && message.hasOwnProperty("params")) { - let error = $root.ibc.applications.interchain_accounts.host.v1.Params.verify(message.params); - if (error) - return "params." + error; - } - return null; - }; + /** + * Encodes the specified RegisteredPayee message. Does not implicitly {@link ibc.applications.fee.v1.RegisteredPayee.verify|verify} messages. + * @function encode + * @memberof ibc.applications.fee.v1.RegisteredPayee + * @static + * @param {ibc.applications.fee.v1.IRegisteredPayee} message RegisteredPayee message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RegisteredPayee.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.channel_id != null && Object.hasOwnProperty.call(message, "channel_id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.channel_id); + if (message.relayer != null && Object.hasOwnProperty.call(message, "relayer")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.relayer); + if (message.payee != null && Object.hasOwnProperty.call(message, "payee")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.payee); + return writer; + }; - /** - * Creates a QueryParamsResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof ibc.applications.interchain_accounts.host.v1.QueryParamsResponse - * @static - * @param {Object.} object Plain object - * @returns {ibc.applications.interchain_accounts.host.v1.QueryParamsResponse} QueryParamsResponse - */ - QueryParamsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.interchain_accounts.host.v1.QueryParamsResponse) - return object; - let message = new $root.ibc.applications.interchain_accounts.host.v1.QueryParamsResponse(); - if (object.params != null) { - if (typeof object.params !== "object") - throw TypeError(".ibc.applications.interchain_accounts.host.v1.QueryParamsResponse.params: object expected"); - message.params = $root.ibc.applications.interchain_accounts.host.v1.Params.fromObject(object.params); - } - return message; - }; + /** + * Encodes the specified RegisteredPayee message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.RegisteredPayee.verify|verify} messages. + * @function encodeDelimited + * @memberof ibc.applications.fee.v1.RegisteredPayee + * @static + * @param {ibc.applications.fee.v1.IRegisteredPayee} message RegisteredPayee message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RegisteredPayee.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Creates a plain object from a QueryParamsResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof ibc.applications.interchain_accounts.host.v1.QueryParamsResponse - * @static - * @param {ibc.applications.interchain_accounts.host.v1.QueryParamsResponse} message QueryParamsResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - QueryParamsResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) - object.params = null; - if (message.params != null && message.hasOwnProperty("params")) - object.params = $root.ibc.applications.interchain_accounts.host.v1.Params.toObject(message.params, options); - return object; - }; + /** + * Decodes a RegisteredPayee message from the specified reader or buffer. + * @function decode + * @memberof ibc.applications.fee.v1.RegisteredPayee + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {ibc.applications.fee.v1.RegisteredPayee} RegisteredPayee + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RegisteredPayee.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.RegisteredPayee(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.channel_id = reader.string(); + break; + case 2: + message.relayer = reader.string(); + break; + case 3: + message.payee = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Converts this QueryParamsResponse to JSON. - * @function toJSON - * @memberof ibc.applications.interchain_accounts.host.v1.QueryParamsResponse - * @instance - * @returns {Object.} JSON object - */ - QueryParamsResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Decodes a RegisteredPayee message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof ibc.applications.fee.v1.RegisteredPayee + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {ibc.applications.fee.v1.RegisteredPayee} RegisteredPayee + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RegisteredPayee.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - return QueryParamsResponse; - })(); + /** + * Verifies a RegisteredPayee message. + * @function verify + * @memberof ibc.applications.fee.v1.RegisteredPayee + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + RegisteredPayee.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.channel_id != null && message.hasOwnProperty("channel_id")) + if (!$util.isString(message.channel_id)) + return "channel_id: string expected"; + if (message.relayer != null && message.hasOwnProperty("relayer")) + if (!$util.isString(message.relayer)) + return "relayer: string expected"; + if (message.payee != null && message.hasOwnProperty("payee")) + if (!$util.isString(message.payee)) + return "payee: string expected"; + return null; + }; - return v1; - })(); + /** + * Creates a RegisteredPayee message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof ibc.applications.fee.v1.RegisteredPayee + * @static + * @param {Object.} object Plain object + * @returns {ibc.applications.fee.v1.RegisteredPayee} RegisteredPayee + */ + RegisteredPayee.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.fee.v1.RegisteredPayee) + return object; + let message = new $root.ibc.applications.fee.v1.RegisteredPayee(); + if (object.channel_id != null) + message.channel_id = String(object.channel_id); + if (object.relayer != null) + message.relayer = String(object.relayer); + if (object.payee != null) + message.payee = String(object.payee); + return message; + }; - return host; - })(); + /** + * Creates a plain object from a RegisteredPayee message. Also converts values to other types if specified. + * @function toObject + * @memberof ibc.applications.fee.v1.RegisteredPayee + * @static + * @param {ibc.applications.fee.v1.RegisteredPayee} message RegisteredPayee + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + RegisteredPayee.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + object.channel_id = ""; + object.relayer = ""; + object.payee = ""; + } + if (message.channel_id != null && message.hasOwnProperty("channel_id")) + object.channel_id = message.channel_id; + if (message.relayer != null && message.hasOwnProperty("relayer")) + object.relayer = message.relayer; + if (message.payee != null && message.hasOwnProperty("payee")) + object.payee = message.payee; + return object; + }; - interchain_accounts.v1 = (function() { + /** + * Converts this RegisteredPayee to JSON. + * @function toJSON + * @memberof ibc.applications.fee.v1.RegisteredPayee + * @instance + * @returns {Object.} JSON object + */ + RegisteredPayee.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Namespace v1. - * @memberof ibc.applications.interchain_accounts - * @namespace - */ - const v1 = {}; + return RegisteredPayee; + })(); - v1.InterchainAccount = (function() { + v1.RegisteredCounterpartyPayee = (function() { /** - * Properties of an InterchainAccount. - * @memberof ibc.applications.interchain_accounts.v1 - * @interface IInterchainAccount - * @property {cosmos.auth.v1beta1.IBaseAccount|null} [base_account] InterchainAccount base_account - * @property {string|null} [account_owner] InterchainAccount account_owner + * Properties of a RegisteredCounterpartyPayee. + * @memberof ibc.applications.fee.v1 + * @interface IRegisteredCounterpartyPayee + * @property {string|null} [channel_id] RegisteredCounterpartyPayee channel_id + * @property {string|null} [relayer] RegisteredCounterpartyPayee relayer + * @property {string|null} [counterparty_payee] RegisteredCounterpartyPayee counterparty_payee */ /** - * Constructs a new InterchainAccount. - * @memberof ibc.applications.interchain_accounts.v1 - * @classdesc Represents an InterchainAccount. - * @implements IInterchainAccount + * Constructs a new RegisteredCounterpartyPayee. + * @memberof ibc.applications.fee.v1 + * @classdesc Represents a RegisteredCounterpartyPayee. + * @implements IRegisteredCounterpartyPayee * @constructor - * @param {ibc.applications.interchain_accounts.v1.IInterchainAccount=} [properties] Properties to set + * @param {ibc.applications.fee.v1.IRegisteredCounterpartyPayee=} [properties] Properties to set */ - function InterchainAccount(properties) { + function RegisteredCounterpartyPayee(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -28451,76 +34751,89 @@ export const ibc = $root.ibc = (() => { } /** - * InterchainAccount base_account. - * @member {cosmos.auth.v1beta1.IBaseAccount|null|undefined} base_account - * @memberof ibc.applications.interchain_accounts.v1.InterchainAccount + * RegisteredCounterpartyPayee channel_id. + * @member {string} channel_id + * @memberof ibc.applications.fee.v1.RegisteredCounterpartyPayee * @instance */ - InterchainAccount.prototype.base_account = null; + RegisteredCounterpartyPayee.prototype.channel_id = ""; /** - * InterchainAccount account_owner. - * @member {string} account_owner - * @memberof ibc.applications.interchain_accounts.v1.InterchainAccount + * RegisteredCounterpartyPayee relayer. + * @member {string} relayer + * @memberof ibc.applications.fee.v1.RegisteredCounterpartyPayee * @instance */ - InterchainAccount.prototype.account_owner = ""; + RegisteredCounterpartyPayee.prototype.relayer = ""; /** - * Encodes the specified InterchainAccount message. Does not implicitly {@link ibc.applications.interchain_accounts.v1.InterchainAccount.verify|verify} messages. + * RegisteredCounterpartyPayee counterparty_payee. + * @member {string} counterparty_payee + * @memberof ibc.applications.fee.v1.RegisteredCounterpartyPayee + * @instance + */ + RegisteredCounterpartyPayee.prototype.counterparty_payee = ""; + + /** + * Encodes the specified RegisteredCounterpartyPayee message. Does not implicitly {@link ibc.applications.fee.v1.RegisteredCounterpartyPayee.verify|verify} messages. * @function encode - * @memberof ibc.applications.interchain_accounts.v1.InterchainAccount + * @memberof ibc.applications.fee.v1.RegisteredCounterpartyPayee * @static - * @param {ibc.applications.interchain_accounts.v1.IInterchainAccount} message InterchainAccount message or plain object to encode + * @param {ibc.applications.fee.v1.IRegisteredCounterpartyPayee} message RegisteredCounterpartyPayee message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - InterchainAccount.encode = function encode(message, writer) { + RegisteredCounterpartyPayee.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.base_account != null && Object.hasOwnProperty.call(message, "base_account")) - $root.cosmos.auth.v1beta1.BaseAccount.encode(message.base_account, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.account_owner != null && Object.hasOwnProperty.call(message, "account_owner")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.account_owner); + if (message.channel_id != null && Object.hasOwnProperty.call(message, "channel_id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.channel_id); + if (message.relayer != null && Object.hasOwnProperty.call(message, "relayer")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.relayer); + if (message.counterparty_payee != null && Object.hasOwnProperty.call(message, "counterparty_payee")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.counterparty_payee); return writer; }; /** - * Encodes the specified InterchainAccount message, length delimited. Does not implicitly {@link ibc.applications.interchain_accounts.v1.InterchainAccount.verify|verify} messages. + * Encodes the specified RegisteredCounterpartyPayee message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.RegisteredCounterpartyPayee.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.applications.interchain_accounts.v1.InterchainAccount + * @memberof ibc.applications.fee.v1.RegisteredCounterpartyPayee * @static - * @param {ibc.applications.interchain_accounts.v1.IInterchainAccount} message InterchainAccount message or plain object to encode + * @param {ibc.applications.fee.v1.IRegisteredCounterpartyPayee} message RegisteredCounterpartyPayee message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - InterchainAccount.encodeDelimited = function encodeDelimited(message, writer) { + RegisteredCounterpartyPayee.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an InterchainAccount message from the specified reader or buffer. + * Decodes a RegisteredCounterpartyPayee message from the specified reader or buffer. * @function decode - * @memberof ibc.applications.interchain_accounts.v1.InterchainAccount + * @memberof ibc.applications.fee.v1.RegisteredCounterpartyPayee * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.interchain_accounts.v1.InterchainAccount} InterchainAccount + * @returns {ibc.applications.fee.v1.RegisteredCounterpartyPayee} RegisteredCounterpartyPayee * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - InterchainAccount.decode = function decode(reader, length) { + RegisteredCounterpartyPayee.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.interchain_accounts.v1.InterchainAccount(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.RegisteredCounterpartyPayee(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.base_account = $root.cosmos.auth.v1beta1.BaseAccount.decode(reader, reader.uint32()); + message.channel_id = reader.string(); break; case 2: - message.account_owner = reader.string(); + message.relayer = reader.string(); + break; + case 3: + message.counterparty_payee = reader.string(); break; default: reader.skipType(tag & 7); @@ -28531,137 +34844,125 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes an InterchainAccount message from the specified reader or buffer, length delimited. + * Decodes a RegisteredCounterpartyPayee message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.applications.interchain_accounts.v1.InterchainAccount + * @memberof ibc.applications.fee.v1.RegisteredCounterpartyPayee * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.interchain_accounts.v1.InterchainAccount} InterchainAccount + * @returns {ibc.applications.fee.v1.RegisteredCounterpartyPayee} RegisteredCounterpartyPayee * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - InterchainAccount.decodeDelimited = function decodeDelimited(reader) { + RegisteredCounterpartyPayee.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an InterchainAccount message. + * Verifies a RegisteredCounterpartyPayee message. * @function verify - * @memberof ibc.applications.interchain_accounts.v1.InterchainAccount + * @memberof ibc.applications.fee.v1.RegisteredCounterpartyPayee * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - InterchainAccount.verify = function verify(message) { + RegisteredCounterpartyPayee.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.base_account != null && message.hasOwnProperty("base_account")) { - let error = $root.cosmos.auth.v1beta1.BaseAccount.verify(message.base_account); - if (error) - return "base_account." + error; - } - if (message.account_owner != null && message.hasOwnProperty("account_owner")) - if (!$util.isString(message.account_owner)) - return "account_owner: string expected"; + if (message.channel_id != null && message.hasOwnProperty("channel_id")) + if (!$util.isString(message.channel_id)) + return "channel_id: string expected"; + if (message.relayer != null && message.hasOwnProperty("relayer")) + if (!$util.isString(message.relayer)) + return "relayer: string expected"; + if (message.counterparty_payee != null && message.hasOwnProperty("counterparty_payee")) + if (!$util.isString(message.counterparty_payee)) + return "counterparty_payee: string expected"; return null; }; /** - * Creates an InterchainAccount message from a plain object. Also converts values to their respective internal types. + * Creates a RegisteredCounterpartyPayee message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.applications.interchain_accounts.v1.InterchainAccount + * @memberof ibc.applications.fee.v1.RegisteredCounterpartyPayee * @static * @param {Object.} object Plain object - * @returns {ibc.applications.interchain_accounts.v1.InterchainAccount} InterchainAccount + * @returns {ibc.applications.fee.v1.RegisteredCounterpartyPayee} RegisteredCounterpartyPayee */ - InterchainAccount.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.interchain_accounts.v1.InterchainAccount) + RegisteredCounterpartyPayee.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.fee.v1.RegisteredCounterpartyPayee) return object; - let message = new $root.ibc.applications.interchain_accounts.v1.InterchainAccount(); - if (object.base_account != null) { - if (typeof object.base_account !== "object") - throw TypeError(".ibc.applications.interchain_accounts.v1.InterchainAccount.base_account: object expected"); - message.base_account = $root.cosmos.auth.v1beta1.BaseAccount.fromObject(object.base_account); - } - if (object.account_owner != null) - message.account_owner = String(object.account_owner); + let message = new $root.ibc.applications.fee.v1.RegisteredCounterpartyPayee(); + if (object.channel_id != null) + message.channel_id = String(object.channel_id); + if (object.relayer != null) + message.relayer = String(object.relayer); + if (object.counterparty_payee != null) + message.counterparty_payee = String(object.counterparty_payee); return message; }; /** - * Creates a plain object from an InterchainAccount message. Also converts values to other types if specified. + * Creates a plain object from a RegisteredCounterpartyPayee message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.applications.interchain_accounts.v1.InterchainAccount + * @memberof ibc.applications.fee.v1.RegisteredCounterpartyPayee * @static - * @param {ibc.applications.interchain_accounts.v1.InterchainAccount} message InterchainAccount + * @param {ibc.applications.fee.v1.RegisteredCounterpartyPayee} message RegisteredCounterpartyPayee * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - InterchainAccount.toObject = function toObject(message, options) { + RegisteredCounterpartyPayee.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - object.base_account = null; - object.account_owner = ""; + object.channel_id = ""; + object.relayer = ""; + object.counterparty_payee = ""; } - if (message.base_account != null && message.hasOwnProperty("base_account")) - object.base_account = $root.cosmos.auth.v1beta1.BaseAccount.toObject(message.base_account, options); - if (message.account_owner != null && message.hasOwnProperty("account_owner")) - object.account_owner = message.account_owner; + if (message.channel_id != null && message.hasOwnProperty("channel_id")) + object.channel_id = message.channel_id; + if (message.relayer != null && message.hasOwnProperty("relayer")) + object.relayer = message.relayer; + if (message.counterparty_payee != null && message.hasOwnProperty("counterparty_payee")) + object.counterparty_payee = message.counterparty_payee; return object; }; /** - * Converts this InterchainAccount to JSON. + * Converts this RegisteredCounterpartyPayee to JSON. * @function toJSON - * @memberof ibc.applications.interchain_accounts.v1.InterchainAccount + * @memberof ibc.applications.fee.v1.RegisteredCounterpartyPayee * @instance * @returns {Object.} JSON object */ - InterchainAccount.prototype.toJSON = function toJSON() { + RegisteredCounterpartyPayee.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return InterchainAccount; - })(); - - /** - * Type enum. - * @name ibc.applications.interchain_accounts.v1.Type - * @enum {number} - * @property {number} TYPE_UNSPECIFIED=0 TYPE_UNSPECIFIED value - * @property {number} TYPE_EXECUTE_TX=1 TYPE_EXECUTE_TX value - */ - v1.Type = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "TYPE_UNSPECIFIED"] = 0; - values[valuesById[1] = "TYPE_EXECUTE_TX"] = 1; - return values; + return RegisteredCounterpartyPayee; })(); - v1.InterchainAccountPacketData = (function() { + v1.ForwardRelayerAddress = (function() { /** - * Properties of an InterchainAccountPacketData. - * @memberof ibc.applications.interchain_accounts.v1 - * @interface IInterchainAccountPacketData - * @property {ibc.applications.interchain_accounts.v1.Type|null} [type] InterchainAccountPacketData type - * @property {Uint8Array|null} [data] InterchainAccountPacketData data - * @property {string|null} [memo] InterchainAccountPacketData memo + * Properties of a ForwardRelayerAddress. + * @memberof ibc.applications.fee.v1 + * @interface IForwardRelayerAddress + * @property {string|null} [address] ForwardRelayerAddress address + * @property {ibc.core.channel.v1.IPacketId|null} [packet_id] ForwardRelayerAddress packet_id */ /** - * Constructs a new InterchainAccountPacketData. - * @memberof ibc.applications.interchain_accounts.v1 - * @classdesc Represents an InterchainAccountPacketData. - * @implements IInterchainAccountPacketData + * Constructs a new ForwardRelayerAddress. + * @memberof ibc.applications.fee.v1 + * @classdesc Represents a ForwardRelayerAddress. + * @implements IForwardRelayerAddress * @constructor - * @param {ibc.applications.interchain_accounts.v1.IInterchainAccountPacketData=} [properties] Properties to set + * @param {ibc.applications.fee.v1.IForwardRelayerAddress=} [properties] Properties to set */ - function InterchainAccountPacketData(properties) { + function ForwardRelayerAddress(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -28669,89 +34970,76 @@ export const ibc = $root.ibc = (() => { } /** - * InterchainAccountPacketData type. - * @member {ibc.applications.interchain_accounts.v1.Type} type - * @memberof ibc.applications.interchain_accounts.v1.InterchainAccountPacketData - * @instance - */ - InterchainAccountPacketData.prototype.type = 0; - - /** - * InterchainAccountPacketData data. - * @member {Uint8Array} data - * @memberof ibc.applications.interchain_accounts.v1.InterchainAccountPacketData + * ForwardRelayerAddress address. + * @member {string} address + * @memberof ibc.applications.fee.v1.ForwardRelayerAddress * @instance */ - InterchainAccountPacketData.prototype.data = $util.newBuffer([]); + ForwardRelayerAddress.prototype.address = ""; /** - * InterchainAccountPacketData memo. - * @member {string} memo - * @memberof ibc.applications.interchain_accounts.v1.InterchainAccountPacketData + * ForwardRelayerAddress packet_id. + * @member {ibc.core.channel.v1.IPacketId|null|undefined} packet_id + * @memberof ibc.applications.fee.v1.ForwardRelayerAddress * @instance */ - InterchainAccountPacketData.prototype.memo = ""; + ForwardRelayerAddress.prototype.packet_id = null; /** - * Encodes the specified InterchainAccountPacketData message. Does not implicitly {@link ibc.applications.interchain_accounts.v1.InterchainAccountPacketData.verify|verify} messages. + * Encodes the specified ForwardRelayerAddress message. Does not implicitly {@link ibc.applications.fee.v1.ForwardRelayerAddress.verify|verify} messages. * @function encode - * @memberof ibc.applications.interchain_accounts.v1.InterchainAccountPacketData + * @memberof ibc.applications.fee.v1.ForwardRelayerAddress * @static - * @param {ibc.applications.interchain_accounts.v1.IInterchainAccountPacketData} message InterchainAccountPacketData message or plain object to encode + * @param {ibc.applications.fee.v1.IForwardRelayerAddress} message ForwardRelayerAddress message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - InterchainAccountPacketData.encode = function encode(message, writer) { + ForwardRelayerAddress.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.type != null && Object.hasOwnProperty.call(message, "type")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.type); - if (message.data != null && Object.hasOwnProperty.call(message, "data")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.data); - if (message.memo != null && Object.hasOwnProperty.call(message, "memo")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.memo); + if (message.address != null && Object.hasOwnProperty.call(message, "address")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.address); + if (message.packet_id != null && Object.hasOwnProperty.call(message, "packet_id")) + $root.ibc.core.channel.v1.PacketId.encode(message.packet_id, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified InterchainAccountPacketData message, length delimited. Does not implicitly {@link ibc.applications.interchain_accounts.v1.InterchainAccountPacketData.verify|verify} messages. + * Encodes the specified ForwardRelayerAddress message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.ForwardRelayerAddress.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.applications.interchain_accounts.v1.InterchainAccountPacketData + * @memberof ibc.applications.fee.v1.ForwardRelayerAddress * @static - * @param {ibc.applications.interchain_accounts.v1.IInterchainAccountPacketData} message InterchainAccountPacketData message or plain object to encode + * @param {ibc.applications.fee.v1.IForwardRelayerAddress} message ForwardRelayerAddress message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - InterchainAccountPacketData.encodeDelimited = function encodeDelimited(message, writer) { + ForwardRelayerAddress.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an InterchainAccountPacketData message from the specified reader or buffer. + * Decodes a ForwardRelayerAddress message from the specified reader or buffer. * @function decode - * @memberof ibc.applications.interchain_accounts.v1.InterchainAccountPacketData + * @memberof ibc.applications.fee.v1.ForwardRelayerAddress * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.interchain_accounts.v1.InterchainAccountPacketData} InterchainAccountPacketData + * @returns {ibc.applications.fee.v1.ForwardRelayerAddress} ForwardRelayerAddress * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - InterchainAccountPacketData.decode = function decode(reader, length) { + ForwardRelayerAddress.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.interchain_accounts.v1.InterchainAccountPacketData(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.ForwardRelayerAddress(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.type = reader.int32(); + message.address = reader.string(); break; case 2: - message.data = reader.bytes(); - break; - case 3: - message.memo = reader.string(); + message.packet_id = $root.ibc.core.channel.v1.PacketId.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -28762,147 +35050,122 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes an InterchainAccountPacketData message from the specified reader or buffer, length delimited. + * Decodes a ForwardRelayerAddress message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.applications.interchain_accounts.v1.InterchainAccountPacketData + * @memberof ibc.applications.fee.v1.ForwardRelayerAddress * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.interchain_accounts.v1.InterchainAccountPacketData} InterchainAccountPacketData + * @returns {ibc.applications.fee.v1.ForwardRelayerAddress} ForwardRelayerAddress * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - InterchainAccountPacketData.decodeDelimited = function decodeDelimited(reader) { + ForwardRelayerAddress.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an InterchainAccountPacketData message. + * Verifies a ForwardRelayerAddress message. * @function verify - * @memberof ibc.applications.interchain_accounts.v1.InterchainAccountPacketData + * @memberof ibc.applications.fee.v1.ForwardRelayerAddress * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - InterchainAccountPacketData.verify = function verify(message) { + ForwardRelayerAddress.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.type != null && message.hasOwnProperty("type")) - switch (message.type) { - default: - return "type: enum value expected"; - case 0: - case 1: - break; - } - if (message.data != null && message.hasOwnProperty("data")) - if (!(message.data && typeof message.data.length === "number" || $util.isString(message.data))) - return "data: buffer expected"; - if (message.memo != null && message.hasOwnProperty("memo")) - if (!$util.isString(message.memo)) - return "memo: string expected"; + if (message.address != null && message.hasOwnProperty("address")) + if (!$util.isString(message.address)) + return "address: string expected"; + if (message.packet_id != null && message.hasOwnProperty("packet_id")) { + let error = $root.ibc.core.channel.v1.PacketId.verify(message.packet_id); + if (error) + return "packet_id." + error; + } return null; }; /** - * Creates an InterchainAccountPacketData message from a plain object. Also converts values to their respective internal types. + * Creates a ForwardRelayerAddress message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.applications.interchain_accounts.v1.InterchainAccountPacketData + * @memberof ibc.applications.fee.v1.ForwardRelayerAddress * @static * @param {Object.} object Plain object - * @returns {ibc.applications.interchain_accounts.v1.InterchainAccountPacketData} InterchainAccountPacketData + * @returns {ibc.applications.fee.v1.ForwardRelayerAddress} ForwardRelayerAddress */ - InterchainAccountPacketData.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.interchain_accounts.v1.InterchainAccountPacketData) + ForwardRelayerAddress.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.fee.v1.ForwardRelayerAddress) return object; - let message = new $root.ibc.applications.interchain_accounts.v1.InterchainAccountPacketData(); - switch (object.type) { - case "TYPE_UNSPECIFIED": - case 0: - message.type = 0; - break; - case "TYPE_EXECUTE_TX": - case 1: - message.type = 1; - break; + let message = new $root.ibc.applications.fee.v1.ForwardRelayerAddress(); + if (object.address != null) + message.address = String(object.address); + if (object.packet_id != null) { + if (typeof object.packet_id !== "object") + throw TypeError(".ibc.applications.fee.v1.ForwardRelayerAddress.packet_id: object expected"); + message.packet_id = $root.ibc.core.channel.v1.PacketId.fromObject(object.packet_id); } - if (object.data != null) - if (typeof object.data === "string") - $util.base64.decode(object.data, message.data = $util.newBuffer($util.base64.length(object.data)), 0); - else if (object.data.length) - message.data = object.data; - if (object.memo != null) - message.memo = String(object.memo); return message; }; /** - * Creates a plain object from an InterchainAccountPacketData message. Also converts values to other types if specified. + * Creates a plain object from a ForwardRelayerAddress message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.applications.interchain_accounts.v1.InterchainAccountPacketData + * @memberof ibc.applications.fee.v1.ForwardRelayerAddress * @static - * @param {ibc.applications.interchain_accounts.v1.InterchainAccountPacketData} message InterchainAccountPacketData + * @param {ibc.applications.fee.v1.ForwardRelayerAddress} message ForwardRelayerAddress * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - InterchainAccountPacketData.toObject = function toObject(message, options) { + ForwardRelayerAddress.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - object.type = options.enums === String ? "TYPE_UNSPECIFIED" : 0; - if (options.bytes === String) - object.data = ""; - else { - object.data = []; - if (options.bytes !== Array) - object.data = $util.newBuffer(object.data); - } - object.memo = ""; - } - if (message.type != null && message.hasOwnProperty("type")) - object.type = options.enums === String ? $root.ibc.applications.interchain_accounts.v1.Type[message.type] : message.type; - if (message.data != null && message.hasOwnProperty("data")) - object.data = options.bytes === String ? $util.base64.encode(message.data, 0, message.data.length) : options.bytes === Array ? Array.prototype.slice.call(message.data) : message.data; - if (message.memo != null && message.hasOwnProperty("memo")) - object.memo = message.memo; + object.address = ""; + object.packet_id = null; + } + if (message.address != null && message.hasOwnProperty("address")) + object.address = message.address; + if (message.packet_id != null && message.hasOwnProperty("packet_id")) + object.packet_id = $root.ibc.core.channel.v1.PacketId.toObject(message.packet_id, options); return object; }; /** - * Converts this InterchainAccountPacketData to JSON. + * Converts this ForwardRelayerAddress to JSON. * @function toJSON - * @memberof ibc.applications.interchain_accounts.v1.InterchainAccountPacketData + * @memberof ibc.applications.fee.v1.ForwardRelayerAddress * @instance * @returns {Object.} JSON object */ - InterchainAccountPacketData.prototype.toJSON = function toJSON() { + ForwardRelayerAddress.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return InterchainAccountPacketData; + return ForwardRelayerAddress; })(); - v1.CosmosTx = (function() { + v1.Metadata = (function() { /** - * Properties of a CosmosTx. - * @memberof ibc.applications.interchain_accounts.v1 - * @interface ICosmosTx - * @property {Array.|null} [messages] CosmosTx messages + * Properties of a Metadata. + * @memberof ibc.applications.fee.v1 + * @interface IMetadata + * @property {string|null} [fee_version] Metadata fee_version + * @property {string|null} [app_version] Metadata app_version */ /** - * Constructs a new CosmosTx. - * @memberof ibc.applications.interchain_accounts.v1 - * @classdesc Represents a CosmosTx. - * @implements ICosmosTx + * Constructs a new Metadata. + * @memberof ibc.applications.fee.v1 + * @classdesc Represents a Metadata. + * @implements IMetadata * @constructor - * @param {ibc.applications.interchain_accounts.v1.ICosmosTx=} [properties] Properties to set + * @param {ibc.applications.fee.v1.IMetadata=} [properties] Properties to set */ - function CosmosTx(properties) { - this.messages = []; + function Metadata(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -28910,66 +35173,76 @@ export const ibc = $root.ibc = (() => { } /** - * CosmosTx messages. - * @member {Array.} messages - * @memberof ibc.applications.interchain_accounts.v1.CosmosTx + * Metadata fee_version. + * @member {string} fee_version + * @memberof ibc.applications.fee.v1.Metadata * @instance */ - CosmosTx.prototype.messages = $util.emptyArray; + Metadata.prototype.fee_version = ""; /** - * Encodes the specified CosmosTx message. Does not implicitly {@link ibc.applications.interchain_accounts.v1.CosmosTx.verify|verify} messages. + * Metadata app_version. + * @member {string} app_version + * @memberof ibc.applications.fee.v1.Metadata + * @instance + */ + Metadata.prototype.app_version = ""; + + /** + * Encodes the specified Metadata message. Does not implicitly {@link ibc.applications.fee.v1.Metadata.verify|verify} messages. * @function encode - * @memberof ibc.applications.interchain_accounts.v1.CosmosTx + * @memberof ibc.applications.fee.v1.Metadata * @static - * @param {ibc.applications.interchain_accounts.v1.ICosmosTx} message CosmosTx message or plain object to encode + * @param {ibc.applications.fee.v1.IMetadata} message Metadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CosmosTx.encode = function encode(message, writer) { + Metadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.messages != null && message.messages.length) - for (let i = 0; i < message.messages.length; ++i) - $root.google.protobuf.Any.encode(message.messages[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.fee_version != null && Object.hasOwnProperty.call(message, "fee_version")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.fee_version); + if (message.app_version != null && Object.hasOwnProperty.call(message, "app_version")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.app_version); return writer; }; /** - * Encodes the specified CosmosTx message, length delimited. Does not implicitly {@link ibc.applications.interchain_accounts.v1.CosmosTx.verify|verify} messages. + * Encodes the specified Metadata message, length delimited. Does not implicitly {@link ibc.applications.fee.v1.Metadata.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.applications.interchain_accounts.v1.CosmosTx + * @memberof ibc.applications.fee.v1.Metadata * @static - * @param {ibc.applications.interchain_accounts.v1.ICosmosTx} message CosmosTx message or plain object to encode + * @param {ibc.applications.fee.v1.IMetadata} message Metadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CosmosTx.encodeDelimited = function encodeDelimited(message, writer) { + Metadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CosmosTx message from the specified reader or buffer. + * Decodes a Metadata message from the specified reader or buffer. * @function decode - * @memberof ibc.applications.interchain_accounts.v1.CosmosTx + * @memberof ibc.applications.fee.v1.Metadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.interchain_accounts.v1.CosmosTx} CosmosTx + * @returns {ibc.applications.fee.v1.Metadata} Metadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CosmosTx.decode = function decode(reader, length) { + Metadata.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.interchain_accounts.v1.CosmosTx(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.fee.v1.Metadata(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.messages && message.messages.length)) - message.messages = []; - message.messages.push($root.google.protobuf.Any.decode(reader, reader.uint32())); + message.fee_version = reader.string(); + break; + case 2: + message.app_version = reader.string(); break; default: reader.skipType(tag & 7); @@ -28980,1740 +35253,2098 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a CosmosTx message from the specified reader or buffer, length delimited. + * Decodes a Metadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.applications.interchain_accounts.v1.CosmosTx + * @memberof ibc.applications.fee.v1.Metadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.interchain_accounts.v1.CosmosTx} CosmosTx + * @returns {ibc.applications.fee.v1.Metadata} Metadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CosmosTx.decodeDelimited = function decodeDelimited(reader) { + Metadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; - /** - * Verifies a CosmosTx message. - * @function verify - * @memberof ibc.applications.interchain_accounts.v1.CosmosTx - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CosmosTx.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.messages != null && message.hasOwnProperty("messages")) { - if (!Array.isArray(message.messages)) - return "messages: array expected"; - for (let i = 0; i < message.messages.length; ++i) { - let error = $root.google.protobuf.Any.verify(message.messages[i]); - if (error) - return "messages." + error; + /** + * Verifies a Metadata message. + * @function verify + * @memberof ibc.applications.fee.v1.Metadata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Metadata.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.fee_version != null && message.hasOwnProperty("fee_version")) + if (!$util.isString(message.fee_version)) + return "fee_version: string expected"; + if (message.app_version != null && message.hasOwnProperty("app_version")) + if (!$util.isString(message.app_version)) + return "app_version: string expected"; + return null; + }; + + /** + * Creates a Metadata message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof ibc.applications.fee.v1.Metadata + * @static + * @param {Object.} object Plain object + * @returns {ibc.applications.fee.v1.Metadata} Metadata + */ + Metadata.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.fee.v1.Metadata) + return object; + let message = new $root.ibc.applications.fee.v1.Metadata(); + if (object.fee_version != null) + message.fee_version = String(object.fee_version); + if (object.app_version != null) + message.app_version = String(object.app_version); + return message; + }; + + /** + * Creates a plain object from a Metadata message. Also converts values to other types if specified. + * @function toObject + * @memberof ibc.applications.fee.v1.Metadata + * @static + * @param {ibc.applications.fee.v1.Metadata} message Metadata + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Metadata.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + object.fee_version = ""; + object.app_version = ""; + } + if (message.fee_version != null && message.hasOwnProperty("fee_version")) + object.fee_version = message.fee_version; + if (message.app_version != null && message.hasOwnProperty("app_version")) + object.app_version = message.app_version; + return object; + }; + + /** + * Converts this Metadata to JSON. + * @function toJSON + * @memberof ibc.applications.fee.v1.Metadata + * @instance + * @returns {Object.} JSON object + */ + Metadata.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return Metadata; + })(); + + return v1; + })(); + + return fee; + })(); + + applications.interchain_accounts = (function() { + + /** + * Namespace interchain_accounts. + * @memberof ibc.applications + * @namespace + */ + const interchain_accounts = {}; + + interchain_accounts.controller = (function() { + + /** + * Namespace controller. + * @memberof ibc.applications.interchain_accounts + * @namespace + */ + const controller = {}; + + controller.v1 = (function() { + + /** + * Namespace v1. + * @memberof ibc.applications.interchain_accounts.controller + * @namespace + */ + const v1 = {}; + + v1.Msg = (function() { + + /** + * Constructs a new Msg service. + * @memberof ibc.applications.interchain_accounts.controller.v1 + * @classdesc Represents a Msg + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + */ + function Msg(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (Msg.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Msg; + + /** + * Callback as used by {@link ibc.applications.interchain_accounts.controller.v1.Msg#registerInterchainAccount}. + * @memberof ibc.applications.interchain_accounts.controller.v1.Msg + * @typedef RegisterInterchainAccountCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccountResponse} [response] MsgRegisterInterchainAccountResponse + */ + + /** + * Calls RegisterInterchainAccount. + * @function registerInterchainAccount + * @memberof ibc.applications.interchain_accounts.controller.v1.Msg + * @instance + * @param {ibc.applications.interchain_accounts.controller.v1.IMsgRegisterInterchainAccount} request MsgRegisterInterchainAccount message or plain object + * @param {ibc.applications.interchain_accounts.controller.v1.Msg.RegisterInterchainAccountCallback} callback Node-style callback called with the error, if any, and MsgRegisterInterchainAccountResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Msg.prototype.registerInterchainAccount = function registerInterchainAccount(request, callback) { + return this.rpcCall(registerInterchainAccount, $root.ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccount, $root.ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccountResponse, request, callback); + }, "name", { value: "RegisterInterchainAccount" }); + + /** + * Calls RegisterInterchainAccount. + * @function registerInterchainAccount + * @memberof ibc.applications.interchain_accounts.controller.v1.Msg + * @instance + * @param {ibc.applications.interchain_accounts.controller.v1.IMsgRegisterInterchainAccount} request MsgRegisterInterchainAccount message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link ibc.applications.interchain_accounts.controller.v1.Msg#sendTx}. + * @memberof ibc.applications.interchain_accounts.controller.v1.Msg + * @typedef SendTxCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.applications.interchain_accounts.controller.v1.MsgSendTxResponse} [response] MsgSendTxResponse + */ + + /** + * Calls SendTx. + * @function sendTx + * @memberof ibc.applications.interchain_accounts.controller.v1.Msg + * @instance + * @param {ibc.applications.interchain_accounts.controller.v1.IMsgSendTx} request MsgSendTx message or plain object + * @param {ibc.applications.interchain_accounts.controller.v1.Msg.SendTxCallback} callback Node-style callback called with the error, if any, and MsgSendTxResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Msg.prototype.sendTx = function sendTx(request, callback) { + return this.rpcCall(sendTx, $root.ibc.applications.interchain_accounts.controller.v1.MsgSendTx, $root.ibc.applications.interchain_accounts.controller.v1.MsgSendTxResponse, request, callback); + }, "name", { value: "SendTx" }); + + /** + * Calls SendTx. + * @function sendTx + * @memberof ibc.applications.interchain_accounts.controller.v1.Msg + * @instance + * @param {ibc.applications.interchain_accounts.controller.v1.IMsgSendTx} request MsgSendTx message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return Msg; + })(); + + v1.MsgRegisterInterchainAccount = (function() { + + /** + * Properties of a MsgRegisterInterchainAccount. + * @memberof ibc.applications.interchain_accounts.controller.v1 + * @interface IMsgRegisterInterchainAccount + * @property {string|null} [owner] MsgRegisterInterchainAccount owner + * @property {string|null} [connection_id] MsgRegisterInterchainAccount connection_id + * @property {string|null} [version] MsgRegisterInterchainAccount version + */ + + /** + * Constructs a new MsgRegisterInterchainAccount. + * @memberof ibc.applications.interchain_accounts.controller.v1 + * @classdesc Represents a MsgRegisterInterchainAccount. + * @implements IMsgRegisterInterchainAccount + * @constructor + * @param {ibc.applications.interchain_accounts.controller.v1.IMsgRegisterInterchainAccount=} [properties] Properties to set + */ + function MsgRegisterInterchainAccount(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * MsgRegisterInterchainAccount owner. + * @member {string} owner + * @memberof ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccount + * @instance + */ + MsgRegisterInterchainAccount.prototype.owner = ""; + + /** + * MsgRegisterInterchainAccount connection_id. + * @member {string} connection_id + * @memberof ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccount + * @instance + */ + MsgRegisterInterchainAccount.prototype.connection_id = ""; + + /** + * MsgRegisterInterchainAccount version. + * @member {string} version + * @memberof ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccount + * @instance + */ + MsgRegisterInterchainAccount.prototype.version = ""; + + /** + * Encodes the specified MsgRegisterInterchainAccount message. Does not implicitly {@link ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccount.verify|verify} messages. + * @function encode + * @memberof ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccount + * @static + * @param {ibc.applications.interchain_accounts.controller.v1.IMsgRegisterInterchainAccount} message MsgRegisterInterchainAccount message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MsgRegisterInterchainAccount.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.owner != null && Object.hasOwnProperty.call(message, "owner")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.owner); + if (message.connection_id != null && Object.hasOwnProperty.call(message, "connection_id")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.connection_id); + if (message.version != null && Object.hasOwnProperty.call(message, "version")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.version); + return writer; + }; + + /** + * Encodes the specified MsgRegisterInterchainAccount message, length delimited. Does not implicitly {@link ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccount.verify|verify} messages. + * @function encodeDelimited + * @memberof ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccount + * @static + * @param {ibc.applications.interchain_accounts.controller.v1.IMsgRegisterInterchainAccount} message MsgRegisterInterchainAccount message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MsgRegisterInterchainAccount.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a MsgRegisterInterchainAccount message from the specified reader or buffer. + * @function decode + * @memberof ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccount + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccount} MsgRegisterInterchainAccount + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MsgRegisterInterchainAccount.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccount(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.owner = reader.string(); + break; + case 2: + message.connection_id = reader.string(); + break; + case 3: + message.version = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a MsgRegisterInterchainAccount message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccount + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccount} MsgRegisterInterchainAccount + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MsgRegisterInterchainAccount.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a MsgRegisterInterchainAccount message. + * @function verify + * @memberof ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccount + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MsgRegisterInterchainAccount.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.owner != null && message.hasOwnProperty("owner")) + if (!$util.isString(message.owner)) + return "owner: string expected"; + if (message.connection_id != null && message.hasOwnProperty("connection_id")) + if (!$util.isString(message.connection_id)) + return "connection_id: string expected"; + if (message.version != null && message.hasOwnProperty("version")) + if (!$util.isString(message.version)) + return "version: string expected"; + return null; + }; + + /** + * Creates a MsgRegisterInterchainAccount message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccount + * @static + * @param {Object.} object Plain object + * @returns {ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccount} MsgRegisterInterchainAccount + */ + MsgRegisterInterchainAccount.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccount) + return object; + let message = new $root.ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccount(); + if (object.owner != null) + message.owner = String(object.owner); + if (object.connection_id != null) + message.connection_id = String(object.connection_id); + if (object.version != null) + message.version = String(object.version); + return message; + }; + + /** + * Creates a plain object from a MsgRegisterInterchainAccount message. Also converts values to other types if specified. + * @function toObject + * @memberof ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccount + * @static + * @param {ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccount} message MsgRegisterInterchainAccount + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MsgRegisterInterchainAccount.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + object.owner = ""; + object.connection_id = ""; + object.version = ""; + } + if (message.owner != null && message.hasOwnProperty("owner")) + object.owner = message.owner; + if (message.connection_id != null && message.hasOwnProperty("connection_id")) + object.connection_id = message.connection_id; + if (message.version != null && message.hasOwnProperty("version")) + object.version = message.version; + return object; + }; + + /** + * Converts this MsgRegisterInterchainAccount to JSON. + * @function toJSON + * @memberof ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccount + * @instance + * @returns {Object.} JSON object + */ + MsgRegisterInterchainAccount.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return MsgRegisterInterchainAccount; + })(); + + v1.MsgRegisterInterchainAccountResponse = (function() { + + /** + * Properties of a MsgRegisterInterchainAccountResponse. + * @memberof ibc.applications.interchain_accounts.controller.v1 + * @interface IMsgRegisterInterchainAccountResponse + * @property {string|null} [channel_id] MsgRegisterInterchainAccountResponse channel_id + * @property {string|null} [port_id] MsgRegisterInterchainAccountResponse port_id + */ + + /** + * Constructs a new MsgRegisterInterchainAccountResponse. + * @memberof ibc.applications.interchain_accounts.controller.v1 + * @classdesc Represents a MsgRegisterInterchainAccountResponse. + * @implements IMsgRegisterInterchainAccountResponse + * @constructor + * @param {ibc.applications.interchain_accounts.controller.v1.IMsgRegisterInterchainAccountResponse=} [properties] Properties to set + */ + function MsgRegisterInterchainAccountResponse(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * MsgRegisterInterchainAccountResponse channel_id. + * @member {string} channel_id + * @memberof ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccountResponse + * @instance + */ + MsgRegisterInterchainAccountResponse.prototype.channel_id = ""; + + /** + * MsgRegisterInterchainAccountResponse port_id. + * @member {string} port_id + * @memberof ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccountResponse + * @instance + */ + MsgRegisterInterchainAccountResponse.prototype.port_id = ""; + + /** + * Encodes the specified MsgRegisterInterchainAccountResponse message. Does not implicitly {@link ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccountResponse.verify|verify} messages. + * @function encode + * @memberof ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccountResponse + * @static + * @param {ibc.applications.interchain_accounts.controller.v1.IMsgRegisterInterchainAccountResponse} message MsgRegisterInterchainAccountResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MsgRegisterInterchainAccountResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.channel_id != null && Object.hasOwnProperty.call(message, "channel_id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.channel_id); + if (message.port_id != null && Object.hasOwnProperty.call(message, "port_id")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.port_id); + return writer; + }; + + /** + * Encodes the specified MsgRegisterInterchainAccountResponse message, length delimited. Does not implicitly {@link ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccountResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccountResponse + * @static + * @param {ibc.applications.interchain_accounts.controller.v1.IMsgRegisterInterchainAccountResponse} message MsgRegisterInterchainAccountResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MsgRegisterInterchainAccountResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a MsgRegisterInterchainAccountResponse message from the specified reader or buffer. + * @function decode + * @memberof ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccountResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccountResponse} MsgRegisterInterchainAccountResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MsgRegisterInterchainAccountResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccountResponse(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.channel_id = reader.string(); + break; + case 2: + message.port_id = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a MsgRegisterInterchainAccountResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccountResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccountResponse} MsgRegisterInterchainAccountResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MsgRegisterInterchainAccountResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a MsgRegisterInterchainAccountResponse message. + * @function verify + * @memberof ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccountResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MsgRegisterInterchainAccountResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.channel_id != null && message.hasOwnProperty("channel_id")) + if (!$util.isString(message.channel_id)) + return "channel_id: string expected"; + if (message.port_id != null && message.hasOwnProperty("port_id")) + if (!$util.isString(message.port_id)) + return "port_id: string expected"; + return null; + }; + + /** + * Creates a MsgRegisterInterchainAccountResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccountResponse + * @static + * @param {Object.} object Plain object + * @returns {ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccountResponse} MsgRegisterInterchainAccountResponse + */ + MsgRegisterInterchainAccountResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccountResponse) + return object; + let message = new $root.ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccountResponse(); + if (object.channel_id != null) + message.channel_id = String(object.channel_id); + if (object.port_id != null) + message.port_id = String(object.port_id); + return message; + }; + + /** + * Creates a plain object from a MsgRegisterInterchainAccountResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccountResponse + * @static + * @param {ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccountResponse} message MsgRegisterInterchainAccountResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MsgRegisterInterchainAccountResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + object.channel_id = ""; + object.port_id = ""; } - } - return null; - }; - - /** - * Creates a CosmosTx message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof ibc.applications.interchain_accounts.v1.CosmosTx - * @static - * @param {Object.} object Plain object - * @returns {ibc.applications.interchain_accounts.v1.CosmosTx} CosmosTx - */ - CosmosTx.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.interchain_accounts.v1.CosmosTx) + if (message.channel_id != null && message.hasOwnProperty("channel_id")) + object.channel_id = message.channel_id; + if (message.port_id != null && message.hasOwnProperty("port_id")) + object.port_id = message.port_id; return object; - let message = new $root.ibc.applications.interchain_accounts.v1.CosmosTx(); - if (object.messages) { - if (!Array.isArray(object.messages)) - throw TypeError(".ibc.applications.interchain_accounts.v1.CosmosTx.messages: array expected"); - message.messages = []; - for (let i = 0; i < object.messages.length; ++i) { - if (typeof object.messages[i] !== "object") - throw TypeError(".ibc.applications.interchain_accounts.v1.CosmosTx.messages: object expected"); - message.messages[i] = $root.google.protobuf.Any.fromObject(object.messages[i]); - } - } - return message; - }; + }; - /** - * Creates a plain object from a CosmosTx message. Also converts values to other types if specified. - * @function toObject - * @memberof ibc.applications.interchain_accounts.v1.CosmosTx - * @static - * @param {ibc.applications.interchain_accounts.v1.CosmosTx} message CosmosTx - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - CosmosTx.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.arrays || options.defaults) - object.messages = []; - if (message.messages && message.messages.length) { - object.messages = []; - for (let j = 0; j < message.messages.length; ++j) - object.messages[j] = $root.google.protobuf.Any.toObject(message.messages[j], options); - } - return object; - }; + /** + * Converts this MsgRegisterInterchainAccountResponse to JSON. + * @function toJSON + * @memberof ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccountResponse + * @instance + * @returns {Object.} JSON object + */ + MsgRegisterInterchainAccountResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Converts this CosmosTx to JSON. - * @function toJSON - * @memberof ibc.applications.interchain_accounts.v1.CosmosTx - * @instance - * @returns {Object.} JSON object - */ - CosmosTx.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + return MsgRegisterInterchainAccountResponse; + })(); - return CosmosTx; - })(); + v1.MsgSendTx = (function() { - v1.Metadata = (function() { + /** + * Properties of a MsgSendTx. + * @memberof ibc.applications.interchain_accounts.controller.v1 + * @interface IMsgSendTx + * @property {string|null} [owner] MsgSendTx owner + * @property {string|null} [connection_id] MsgSendTx connection_id + * @property {ibc.applications.interchain_accounts.v1.IInterchainAccountPacketData|null} [packet_data] MsgSendTx packet_data + * @property {Long|null} [relative_timeout] MsgSendTx relative_timeout + */ - /** - * Properties of a Metadata. - * @memberof ibc.applications.interchain_accounts.v1 - * @interface IMetadata - * @property {string|null} [version] Metadata version - * @property {string|null} [controller_connection_id] Metadata controller_connection_id - * @property {string|null} [host_connection_id] Metadata host_connection_id - * @property {string|null} [address] Metadata address - * @property {string|null} [encoding] Metadata encoding - * @property {string|null} [tx_type] Metadata tx_type - */ + /** + * Constructs a new MsgSendTx. + * @memberof ibc.applications.interchain_accounts.controller.v1 + * @classdesc Represents a MsgSendTx. + * @implements IMsgSendTx + * @constructor + * @param {ibc.applications.interchain_accounts.controller.v1.IMsgSendTx=} [properties] Properties to set + */ + function MsgSendTx(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Constructs a new Metadata. - * @memberof ibc.applications.interchain_accounts.v1 - * @classdesc Represents a Metadata. - * @implements IMetadata - * @constructor - * @param {ibc.applications.interchain_accounts.v1.IMetadata=} [properties] Properties to set - */ - function Metadata(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * MsgSendTx owner. + * @member {string} owner + * @memberof ibc.applications.interchain_accounts.controller.v1.MsgSendTx + * @instance + */ + MsgSendTx.prototype.owner = ""; - /** - * Metadata version. - * @member {string} version - * @memberof ibc.applications.interchain_accounts.v1.Metadata - * @instance - */ - Metadata.prototype.version = ""; + /** + * MsgSendTx connection_id. + * @member {string} connection_id + * @memberof ibc.applications.interchain_accounts.controller.v1.MsgSendTx + * @instance + */ + MsgSendTx.prototype.connection_id = ""; - /** - * Metadata controller_connection_id. - * @member {string} controller_connection_id - * @memberof ibc.applications.interchain_accounts.v1.Metadata - * @instance - */ - Metadata.prototype.controller_connection_id = ""; + /** + * MsgSendTx packet_data. + * @member {ibc.applications.interchain_accounts.v1.IInterchainAccountPacketData|null|undefined} packet_data + * @memberof ibc.applications.interchain_accounts.controller.v1.MsgSendTx + * @instance + */ + MsgSendTx.prototype.packet_data = null; - /** - * Metadata host_connection_id. - * @member {string} host_connection_id - * @memberof ibc.applications.interchain_accounts.v1.Metadata - * @instance - */ - Metadata.prototype.host_connection_id = ""; + /** + * MsgSendTx relative_timeout. + * @member {Long} relative_timeout + * @memberof ibc.applications.interchain_accounts.controller.v1.MsgSendTx + * @instance + */ + MsgSendTx.prototype.relative_timeout = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - /** - * Metadata address. - * @member {string} address - * @memberof ibc.applications.interchain_accounts.v1.Metadata - * @instance - */ - Metadata.prototype.address = ""; + /** + * Encodes the specified MsgSendTx message. Does not implicitly {@link ibc.applications.interchain_accounts.controller.v1.MsgSendTx.verify|verify} messages. + * @function encode + * @memberof ibc.applications.interchain_accounts.controller.v1.MsgSendTx + * @static + * @param {ibc.applications.interchain_accounts.controller.v1.IMsgSendTx} message MsgSendTx message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MsgSendTx.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.owner != null && Object.hasOwnProperty.call(message, "owner")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.owner); + if (message.connection_id != null && Object.hasOwnProperty.call(message, "connection_id")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.connection_id); + if (message.packet_data != null && Object.hasOwnProperty.call(message, "packet_data")) + $root.ibc.applications.interchain_accounts.v1.InterchainAccountPacketData.encode(message.packet_data, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.relative_timeout != null && Object.hasOwnProperty.call(message, "relative_timeout")) + writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.relative_timeout); + return writer; + }; - /** - * Metadata encoding. - * @member {string} encoding - * @memberof ibc.applications.interchain_accounts.v1.Metadata - * @instance - */ - Metadata.prototype.encoding = ""; + /** + * Encodes the specified MsgSendTx message, length delimited. Does not implicitly {@link ibc.applications.interchain_accounts.controller.v1.MsgSendTx.verify|verify} messages. + * @function encodeDelimited + * @memberof ibc.applications.interchain_accounts.controller.v1.MsgSendTx + * @static + * @param {ibc.applications.interchain_accounts.controller.v1.IMsgSendTx} message MsgSendTx message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MsgSendTx.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Metadata tx_type. - * @member {string} tx_type - * @memberof ibc.applications.interchain_accounts.v1.Metadata - * @instance - */ - Metadata.prototype.tx_type = ""; + /** + * Decodes a MsgSendTx message from the specified reader or buffer. + * @function decode + * @memberof ibc.applications.interchain_accounts.controller.v1.MsgSendTx + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {ibc.applications.interchain_accounts.controller.v1.MsgSendTx} MsgSendTx + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MsgSendTx.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.interchain_accounts.controller.v1.MsgSendTx(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.owner = reader.string(); + break; + case 2: + message.connection_id = reader.string(); + break; + case 3: + message.packet_data = $root.ibc.applications.interchain_accounts.v1.InterchainAccountPacketData.decode(reader, reader.uint32()); + break; + case 4: + message.relative_timeout = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Encodes the specified Metadata message. Does not implicitly {@link ibc.applications.interchain_accounts.v1.Metadata.verify|verify} messages. - * @function encode - * @memberof ibc.applications.interchain_accounts.v1.Metadata - * @static - * @param {ibc.applications.interchain_accounts.v1.IMetadata} message Metadata message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Metadata.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.version != null && Object.hasOwnProperty.call(message, "version")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.version); - if (message.controller_connection_id != null && Object.hasOwnProperty.call(message, "controller_connection_id")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.controller_connection_id); - if (message.host_connection_id != null && Object.hasOwnProperty.call(message, "host_connection_id")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.host_connection_id); - if (message.address != null && Object.hasOwnProperty.call(message, "address")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.address); - if (message.encoding != null && Object.hasOwnProperty.call(message, "encoding")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.encoding); - if (message.tx_type != null && Object.hasOwnProperty.call(message, "tx_type")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.tx_type); - return writer; - }; + /** + * Decodes a MsgSendTx message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof ibc.applications.interchain_accounts.controller.v1.MsgSendTx + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {ibc.applications.interchain_accounts.controller.v1.MsgSendTx} MsgSendTx + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MsgSendTx.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Encodes the specified Metadata message, length delimited. Does not implicitly {@link ibc.applications.interchain_accounts.v1.Metadata.verify|verify} messages. - * @function encodeDelimited - * @memberof ibc.applications.interchain_accounts.v1.Metadata - * @static - * @param {ibc.applications.interchain_accounts.v1.IMetadata} message Metadata message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Metadata.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Verifies a MsgSendTx message. + * @function verify + * @memberof ibc.applications.interchain_accounts.controller.v1.MsgSendTx + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MsgSendTx.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.owner != null && message.hasOwnProperty("owner")) + if (!$util.isString(message.owner)) + return "owner: string expected"; + if (message.connection_id != null && message.hasOwnProperty("connection_id")) + if (!$util.isString(message.connection_id)) + return "connection_id: string expected"; + if (message.packet_data != null && message.hasOwnProperty("packet_data")) { + let error = $root.ibc.applications.interchain_accounts.v1.InterchainAccountPacketData.verify(message.packet_data); + if (error) + return "packet_data." + error; + } + if (message.relative_timeout != null && message.hasOwnProperty("relative_timeout")) + if (!$util.isInteger(message.relative_timeout) && !(message.relative_timeout && $util.isInteger(message.relative_timeout.low) && $util.isInteger(message.relative_timeout.high))) + return "relative_timeout: integer|Long expected"; + return null; + }; - /** - * Decodes a Metadata message from the specified reader or buffer. - * @function decode - * @memberof ibc.applications.interchain_accounts.v1.Metadata - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.interchain_accounts.v1.Metadata} Metadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Metadata.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.interchain_accounts.v1.Metadata(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.version = reader.string(); - break; - case 2: - message.controller_connection_id = reader.string(); - break; - case 3: - message.host_connection_id = reader.string(); - break; - case 4: - message.address = reader.string(); - break; - case 5: - message.encoding = reader.string(); - break; - case 6: - message.tx_type = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; + /** + * Creates a MsgSendTx message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof ibc.applications.interchain_accounts.controller.v1.MsgSendTx + * @static + * @param {Object.} object Plain object + * @returns {ibc.applications.interchain_accounts.controller.v1.MsgSendTx} MsgSendTx + */ + MsgSendTx.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.interchain_accounts.controller.v1.MsgSendTx) + return object; + let message = new $root.ibc.applications.interchain_accounts.controller.v1.MsgSendTx(); + if (object.owner != null) + message.owner = String(object.owner); + if (object.connection_id != null) + message.connection_id = String(object.connection_id); + if (object.packet_data != null) { + if (typeof object.packet_data !== "object") + throw TypeError(".ibc.applications.interchain_accounts.controller.v1.MsgSendTx.packet_data: object expected"); + message.packet_data = $root.ibc.applications.interchain_accounts.v1.InterchainAccountPacketData.fromObject(object.packet_data); } - } - return message; - }; + if (object.relative_timeout != null) + if ($util.Long) + (message.relative_timeout = $util.Long.fromValue(object.relative_timeout)).unsigned = true; + else if (typeof object.relative_timeout === "string") + message.relative_timeout = parseInt(object.relative_timeout, 10); + else if (typeof object.relative_timeout === "number") + message.relative_timeout = object.relative_timeout; + else if (typeof object.relative_timeout === "object") + message.relative_timeout = new $util.LongBits(object.relative_timeout.low >>> 0, object.relative_timeout.high >>> 0).toNumber(true); + return message; + }; - /** - * Decodes a Metadata message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ibc.applications.interchain_accounts.v1.Metadata - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.interchain_accounts.v1.Metadata} Metadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Metadata.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Creates a plain object from a MsgSendTx message. Also converts values to other types if specified. + * @function toObject + * @memberof ibc.applications.interchain_accounts.controller.v1.MsgSendTx + * @static + * @param {ibc.applications.interchain_accounts.controller.v1.MsgSendTx} message MsgSendTx + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MsgSendTx.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + object.owner = ""; + object.connection_id = ""; + object.packet_data = null; + if ($util.Long) { + let long = new $util.Long(0, 0, true); + object.relative_timeout = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.relative_timeout = options.longs === String ? "0" : 0; + } + if (message.owner != null && message.hasOwnProperty("owner")) + object.owner = message.owner; + if (message.connection_id != null && message.hasOwnProperty("connection_id")) + object.connection_id = message.connection_id; + if (message.packet_data != null && message.hasOwnProperty("packet_data")) + object.packet_data = $root.ibc.applications.interchain_accounts.v1.InterchainAccountPacketData.toObject(message.packet_data, options); + if (message.relative_timeout != null && message.hasOwnProperty("relative_timeout")) + if (typeof message.relative_timeout === "number") + object.relative_timeout = options.longs === String ? String(message.relative_timeout) : message.relative_timeout; + else + object.relative_timeout = options.longs === String ? $util.Long.prototype.toString.call(message.relative_timeout) : options.longs === Number ? new $util.LongBits(message.relative_timeout.low >>> 0, message.relative_timeout.high >>> 0).toNumber(true) : message.relative_timeout; + return object; + }; - /** - * Verifies a Metadata message. - * @function verify - * @memberof ibc.applications.interchain_accounts.v1.Metadata - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Metadata.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.version != null && message.hasOwnProperty("version")) - if (!$util.isString(message.version)) - return "version: string expected"; - if (message.controller_connection_id != null && message.hasOwnProperty("controller_connection_id")) - if (!$util.isString(message.controller_connection_id)) - return "controller_connection_id: string expected"; - if (message.host_connection_id != null && message.hasOwnProperty("host_connection_id")) - if (!$util.isString(message.host_connection_id)) - return "host_connection_id: string expected"; - if (message.address != null && message.hasOwnProperty("address")) - if (!$util.isString(message.address)) - return "address: string expected"; - if (message.encoding != null && message.hasOwnProperty("encoding")) - if (!$util.isString(message.encoding)) - return "encoding: string expected"; - if (message.tx_type != null && message.hasOwnProperty("tx_type")) - if (!$util.isString(message.tx_type)) - return "tx_type: string expected"; - return null; - }; + /** + * Converts this MsgSendTx to JSON. + * @function toJSON + * @memberof ibc.applications.interchain_accounts.controller.v1.MsgSendTx + * @instance + * @returns {Object.} JSON object + */ + MsgSendTx.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Creates a Metadata message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof ibc.applications.interchain_accounts.v1.Metadata - * @static - * @param {Object.} object Plain object - * @returns {ibc.applications.interchain_accounts.v1.Metadata} Metadata - */ - Metadata.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.interchain_accounts.v1.Metadata) - return object; - let message = new $root.ibc.applications.interchain_accounts.v1.Metadata(); - if (object.version != null) - message.version = String(object.version); - if (object.controller_connection_id != null) - message.controller_connection_id = String(object.controller_connection_id); - if (object.host_connection_id != null) - message.host_connection_id = String(object.host_connection_id); - if (object.address != null) - message.address = String(object.address); - if (object.encoding != null) - message.encoding = String(object.encoding); - if (object.tx_type != null) - message.tx_type = String(object.tx_type); - return message; - }; + return MsgSendTx; + })(); - /** - * Creates a plain object from a Metadata message. Also converts values to other types if specified. - * @function toObject - * @memberof ibc.applications.interchain_accounts.v1.Metadata - * @static - * @param {ibc.applications.interchain_accounts.v1.Metadata} message Metadata - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Metadata.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - object.version = ""; - object.controller_connection_id = ""; - object.host_connection_id = ""; - object.address = ""; - object.encoding = ""; - object.tx_type = ""; + v1.MsgSendTxResponse = (function() { + + /** + * Properties of a MsgSendTxResponse. + * @memberof ibc.applications.interchain_accounts.controller.v1 + * @interface IMsgSendTxResponse + * @property {Long|null} [sequence] MsgSendTxResponse sequence + */ + + /** + * Constructs a new MsgSendTxResponse. + * @memberof ibc.applications.interchain_accounts.controller.v1 + * @classdesc Represents a MsgSendTxResponse. + * @implements IMsgSendTxResponse + * @constructor + * @param {ibc.applications.interchain_accounts.controller.v1.IMsgSendTxResponse=} [properties] Properties to set + */ + function MsgSendTxResponse(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; } - if (message.version != null && message.hasOwnProperty("version")) - object.version = message.version; - if (message.controller_connection_id != null && message.hasOwnProperty("controller_connection_id")) - object.controller_connection_id = message.controller_connection_id; - if (message.host_connection_id != null && message.hasOwnProperty("host_connection_id")) - object.host_connection_id = message.host_connection_id; - if (message.address != null && message.hasOwnProperty("address")) - object.address = message.address; - if (message.encoding != null && message.hasOwnProperty("encoding")) - object.encoding = message.encoding; - if (message.tx_type != null && message.hasOwnProperty("tx_type")) - object.tx_type = message.tx_type; - return object; - }; - /** - * Converts this Metadata to JSON. - * @function toJSON - * @memberof ibc.applications.interchain_accounts.v1.Metadata - * @instance - * @returns {Object.} JSON object - */ - Metadata.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * MsgSendTxResponse sequence. + * @member {Long} sequence + * @memberof ibc.applications.interchain_accounts.controller.v1.MsgSendTxResponse + * @instance + */ + MsgSendTxResponse.prototype.sequence = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - return Metadata; - })(); + /** + * Encodes the specified MsgSendTxResponse message. Does not implicitly {@link ibc.applications.interchain_accounts.controller.v1.MsgSendTxResponse.verify|verify} messages. + * @function encode + * @memberof ibc.applications.interchain_accounts.controller.v1.MsgSendTxResponse + * @static + * @param {ibc.applications.interchain_accounts.controller.v1.IMsgSendTxResponse} message MsgSendTxResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MsgSendTxResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.sequence != null && Object.hasOwnProperty.call(message, "sequence")) + writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.sequence); + return writer; + }; - v1.GenesisState = (function() { + /** + * Encodes the specified MsgSendTxResponse message, length delimited. Does not implicitly {@link ibc.applications.interchain_accounts.controller.v1.MsgSendTxResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof ibc.applications.interchain_accounts.controller.v1.MsgSendTxResponse + * @static + * @param {ibc.applications.interchain_accounts.controller.v1.IMsgSendTxResponse} message MsgSendTxResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MsgSendTxResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Properties of a GenesisState. - * @memberof ibc.applications.interchain_accounts.v1 - * @interface IGenesisState - * @property {ibc.applications.interchain_accounts.v1.IControllerGenesisState|null} [controller_genesis_state] GenesisState controller_genesis_state - * @property {ibc.applications.interchain_accounts.v1.IHostGenesisState|null} [host_genesis_state] GenesisState host_genesis_state - */ + /** + * Decodes a MsgSendTxResponse message from the specified reader or buffer. + * @function decode + * @memberof ibc.applications.interchain_accounts.controller.v1.MsgSendTxResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {ibc.applications.interchain_accounts.controller.v1.MsgSendTxResponse} MsgSendTxResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MsgSendTxResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.interchain_accounts.controller.v1.MsgSendTxResponse(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.sequence = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Constructs a new GenesisState. - * @memberof ibc.applications.interchain_accounts.v1 - * @classdesc Represents a GenesisState. - * @implements IGenesisState - * @constructor - * @param {ibc.applications.interchain_accounts.v1.IGenesisState=} [properties] Properties to set - */ - function GenesisState(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Decodes a MsgSendTxResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof ibc.applications.interchain_accounts.controller.v1.MsgSendTxResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {ibc.applications.interchain_accounts.controller.v1.MsgSendTxResponse} MsgSendTxResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MsgSendTxResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * GenesisState controller_genesis_state. - * @member {ibc.applications.interchain_accounts.v1.IControllerGenesisState|null|undefined} controller_genesis_state - * @memberof ibc.applications.interchain_accounts.v1.GenesisState - * @instance - */ - GenesisState.prototype.controller_genesis_state = null; + /** + * Verifies a MsgSendTxResponse message. + * @function verify + * @memberof ibc.applications.interchain_accounts.controller.v1.MsgSendTxResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MsgSendTxResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.sequence != null && message.hasOwnProperty("sequence")) + if (!$util.isInteger(message.sequence) && !(message.sequence && $util.isInteger(message.sequence.low) && $util.isInteger(message.sequence.high))) + return "sequence: integer|Long expected"; + return null; + }; - /** - * GenesisState host_genesis_state. - * @member {ibc.applications.interchain_accounts.v1.IHostGenesisState|null|undefined} host_genesis_state - * @memberof ibc.applications.interchain_accounts.v1.GenesisState - * @instance - */ - GenesisState.prototype.host_genesis_state = null; + /** + * Creates a MsgSendTxResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof ibc.applications.interchain_accounts.controller.v1.MsgSendTxResponse + * @static + * @param {Object.} object Plain object + * @returns {ibc.applications.interchain_accounts.controller.v1.MsgSendTxResponse} MsgSendTxResponse + */ + MsgSendTxResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.interchain_accounts.controller.v1.MsgSendTxResponse) + return object; + let message = new $root.ibc.applications.interchain_accounts.controller.v1.MsgSendTxResponse(); + if (object.sequence != null) + if ($util.Long) + (message.sequence = $util.Long.fromValue(object.sequence)).unsigned = true; + else if (typeof object.sequence === "string") + message.sequence = parseInt(object.sequence, 10); + else if (typeof object.sequence === "number") + message.sequence = object.sequence; + else if (typeof object.sequence === "object") + message.sequence = new $util.LongBits(object.sequence.low >>> 0, object.sequence.high >>> 0).toNumber(true); + return message; + }; - /** - * Encodes the specified GenesisState message. Does not implicitly {@link ibc.applications.interchain_accounts.v1.GenesisState.verify|verify} messages. - * @function encode - * @memberof ibc.applications.interchain_accounts.v1.GenesisState - * @static - * @param {ibc.applications.interchain_accounts.v1.IGenesisState} message GenesisState message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GenesisState.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.controller_genesis_state != null && Object.hasOwnProperty.call(message, "controller_genesis_state")) - $root.ibc.applications.interchain_accounts.v1.ControllerGenesisState.encode(message.controller_genesis_state, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.host_genesis_state != null && Object.hasOwnProperty.call(message, "host_genesis_state")) - $root.ibc.applications.interchain_accounts.v1.HostGenesisState.encode(message.host_genesis_state, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; + /** + * Creates a plain object from a MsgSendTxResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof ibc.applications.interchain_accounts.controller.v1.MsgSendTxResponse + * @static + * @param {ibc.applications.interchain_accounts.controller.v1.MsgSendTxResponse} message MsgSendTxResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MsgSendTxResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) + if ($util.Long) { + let long = new $util.Long(0, 0, true); + object.sequence = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.sequence = options.longs === String ? "0" : 0; + if (message.sequence != null && message.hasOwnProperty("sequence")) + if (typeof message.sequence === "number") + object.sequence = options.longs === String ? String(message.sequence) : message.sequence; + else + object.sequence = options.longs === String ? $util.Long.prototype.toString.call(message.sequence) : options.longs === Number ? new $util.LongBits(message.sequence.low >>> 0, message.sequence.high >>> 0).toNumber(true) : message.sequence; + return object; + }; - /** - * Encodes the specified GenesisState message, length delimited. Does not implicitly {@link ibc.applications.interchain_accounts.v1.GenesisState.verify|verify} messages. - * @function encodeDelimited - * @memberof ibc.applications.interchain_accounts.v1.GenesisState - * @static - * @param {ibc.applications.interchain_accounts.v1.IGenesisState} message GenesisState message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GenesisState.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Converts this MsgSendTxResponse to JSON. + * @function toJSON + * @memberof ibc.applications.interchain_accounts.controller.v1.MsgSendTxResponse + * @instance + * @returns {Object.} JSON object + */ + MsgSendTxResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Decodes a GenesisState message from the specified reader or buffer. - * @function decode - * @memberof ibc.applications.interchain_accounts.v1.GenesisState - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.interchain_accounts.v1.GenesisState} GenesisState - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GenesisState.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.interchain_accounts.v1.GenesisState(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.controller_genesis_state = $root.ibc.applications.interchain_accounts.v1.ControllerGenesisState.decode(reader, reader.uint32()); - break; - case 2: - message.host_genesis_state = $root.ibc.applications.interchain_accounts.v1.HostGenesisState.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + return MsgSendTxResponse; + })(); - /** - * Decodes a GenesisState message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ibc.applications.interchain_accounts.v1.GenesisState - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.interchain_accounts.v1.GenesisState} GenesisState - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GenesisState.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + v1.Query = (function() { - /** - * Verifies a GenesisState message. - * @function verify - * @memberof ibc.applications.interchain_accounts.v1.GenesisState - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GenesisState.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.controller_genesis_state != null && message.hasOwnProperty("controller_genesis_state")) { - let error = $root.ibc.applications.interchain_accounts.v1.ControllerGenesisState.verify(message.controller_genesis_state); - if (error) - return "controller_genesis_state." + error; - } - if (message.host_genesis_state != null && message.hasOwnProperty("host_genesis_state")) { - let error = $root.ibc.applications.interchain_accounts.v1.HostGenesisState.verify(message.host_genesis_state); - if (error) - return "host_genesis_state." + error; + /** + * Constructs a new Query service. + * @memberof ibc.applications.interchain_accounts.controller.v1 + * @classdesc Represents a Query + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + */ + function Query(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); } - return null; - }; - /** - * Creates a GenesisState message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof ibc.applications.interchain_accounts.v1.GenesisState - * @static - * @param {Object.} object Plain object - * @returns {ibc.applications.interchain_accounts.v1.GenesisState} GenesisState - */ - GenesisState.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.interchain_accounts.v1.GenesisState) - return object; - let message = new $root.ibc.applications.interchain_accounts.v1.GenesisState(); - if (object.controller_genesis_state != null) { - if (typeof object.controller_genesis_state !== "object") - throw TypeError(".ibc.applications.interchain_accounts.v1.GenesisState.controller_genesis_state: object expected"); - message.controller_genesis_state = $root.ibc.applications.interchain_accounts.v1.ControllerGenesisState.fromObject(object.controller_genesis_state); - } - if (object.host_genesis_state != null) { - if (typeof object.host_genesis_state !== "object") - throw TypeError(".ibc.applications.interchain_accounts.v1.GenesisState.host_genesis_state: object expected"); - message.host_genesis_state = $root.ibc.applications.interchain_accounts.v1.HostGenesisState.fromObject(object.host_genesis_state); - } - return message; - }; + (Query.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Query; - /** - * Creates a plain object from a GenesisState message. Also converts values to other types if specified. - * @function toObject - * @memberof ibc.applications.interchain_accounts.v1.GenesisState - * @static - * @param {ibc.applications.interchain_accounts.v1.GenesisState} message GenesisState - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GenesisState.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - object.controller_genesis_state = null; - object.host_genesis_state = null; - } - if (message.controller_genesis_state != null && message.hasOwnProperty("controller_genesis_state")) - object.controller_genesis_state = $root.ibc.applications.interchain_accounts.v1.ControllerGenesisState.toObject(message.controller_genesis_state, options); - if (message.host_genesis_state != null && message.hasOwnProperty("host_genesis_state")) - object.host_genesis_state = $root.ibc.applications.interchain_accounts.v1.HostGenesisState.toObject(message.host_genesis_state, options); - return object; - }; + /** + * Callback as used by {@link ibc.applications.interchain_accounts.controller.v1.Query#interchainAccount}. + * @memberof ibc.applications.interchain_accounts.controller.v1.Query + * @typedef InterchainAccountCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountResponse} [response] QueryInterchainAccountResponse + */ - /** - * Converts this GenesisState to JSON. - * @function toJSON - * @memberof ibc.applications.interchain_accounts.v1.GenesisState - * @instance - * @returns {Object.} JSON object - */ - GenesisState.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Calls InterchainAccount. + * @function interchainAccount + * @memberof ibc.applications.interchain_accounts.controller.v1.Query + * @instance + * @param {ibc.applications.interchain_accounts.controller.v1.IQueryInterchainAccountRequest} request QueryInterchainAccountRequest message or plain object + * @param {ibc.applications.interchain_accounts.controller.v1.Query.InterchainAccountCallback} callback Node-style callback called with the error, if any, and QueryInterchainAccountResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Query.prototype.interchainAccount = function interchainAccount(request, callback) { + return this.rpcCall(interchainAccount, $root.ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountRequest, $root.ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountResponse, request, callback); + }, "name", { value: "InterchainAccount" }); - return GenesisState; - })(); + /** + * Calls InterchainAccount. + * @function interchainAccount + * @memberof ibc.applications.interchain_accounts.controller.v1.Query + * @instance + * @param {ibc.applications.interchain_accounts.controller.v1.IQueryInterchainAccountRequest} request QueryInterchainAccountRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ - v1.ControllerGenesisState = (function() { + /** + * Callback as used by {@link ibc.applications.interchain_accounts.controller.v1.Query#params}. + * @memberof ibc.applications.interchain_accounts.controller.v1.Query + * @typedef ParamsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.applications.interchain_accounts.controller.v1.QueryParamsResponse} [response] QueryParamsResponse + */ - /** - * Properties of a ControllerGenesisState. - * @memberof ibc.applications.interchain_accounts.v1 - * @interface IControllerGenesisState - * @property {Array.|null} [active_channels] ControllerGenesisState active_channels - * @property {Array.|null} [interchain_accounts] ControllerGenesisState interchain_accounts - * @property {Array.|null} [ports] ControllerGenesisState ports - * @property {ibc.applications.interchain_accounts.controller.v1.IParams|null} [params] ControllerGenesisState params - */ + /** + * Calls Params. + * @function params + * @memberof ibc.applications.interchain_accounts.controller.v1.Query + * @instance + * @param {ibc.applications.interchain_accounts.controller.v1.IQueryParamsRequest} request QueryParamsRequest message or plain object + * @param {ibc.applications.interchain_accounts.controller.v1.Query.ParamsCallback} callback Node-style callback called with the error, if any, and QueryParamsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Query.prototype.params = function params(request, callback) { + return this.rpcCall(params, $root.ibc.applications.interchain_accounts.controller.v1.QueryParamsRequest, $root.ibc.applications.interchain_accounts.controller.v1.QueryParamsResponse, request, callback); + }, "name", { value: "Params" }); - /** - * Constructs a new ControllerGenesisState. - * @memberof ibc.applications.interchain_accounts.v1 - * @classdesc Represents a ControllerGenesisState. - * @implements IControllerGenesisState - * @constructor - * @param {ibc.applications.interchain_accounts.v1.IControllerGenesisState=} [properties] Properties to set - */ - function ControllerGenesisState(properties) { - this.active_channels = []; - this.interchain_accounts = []; - this.ports = []; - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Calls Params. + * @function params + * @memberof ibc.applications.interchain_accounts.controller.v1.Query + * @instance + * @param {ibc.applications.interchain_accounts.controller.v1.IQueryParamsRequest} request QueryParamsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ - /** - * ControllerGenesisState active_channels. - * @member {Array.} active_channels - * @memberof ibc.applications.interchain_accounts.v1.ControllerGenesisState - * @instance - */ - ControllerGenesisState.prototype.active_channels = $util.emptyArray; + return Query; + })(); - /** - * ControllerGenesisState interchain_accounts. - * @member {Array.} interchain_accounts - * @memberof ibc.applications.interchain_accounts.v1.ControllerGenesisState - * @instance - */ - ControllerGenesisState.prototype.interchain_accounts = $util.emptyArray; + v1.QueryInterchainAccountRequest = (function() { - /** - * ControllerGenesisState ports. - * @member {Array.} ports - * @memberof ibc.applications.interchain_accounts.v1.ControllerGenesisState - * @instance - */ - ControllerGenesisState.prototype.ports = $util.emptyArray; + /** + * Properties of a QueryInterchainAccountRequest. + * @memberof ibc.applications.interchain_accounts.controller.v1 + * @interface IQueryInterchainAccountRequest + * @property {string|null} [owner] QueryInterchainAccountRequest owner + * @property {string|null} [connection_id] QueryInterchainAccountRequest connection_id + */ - /** - * ControllerGenesisState params. - * @member {ibc.applications.interchain_accounts.controller.v1.IParams|null|undefined} params - * @memberof ibc.applications.interchain_accounts.v1.ControllerGenesisState - * @instance - */ - ControllerGenesisState.prototype.params = null; + /** + * Constructs a new QueryInterchainAccountRequest. + * @memberof ibc.applications.interchain_accounts.controller.v1 + * @classdesc Represents a QueryInterchainAccountRequest. + * @implements IQueryInterchainAccountRequest + * @constructor + * @param {ibc.applications.interchain_accounts.controller.v1.IQueryInterchainAccountRequest=} [properties] Properties to set + */ + function QueryInterchainAccountRequest(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Encodes the specified ControllerGenesisState message. Does not implicitly {@link ibc.applications.interchain_accounts.v1.ControllerGenesisState.verify|verify} messages. - * @function encode - * @memberof ibc.applications.interchain_accounts.v1.ControllerGenesisState - * @static - * @param {ibc.applications.interchain_accounts.v1.IControllerGenesisState} message ControllerGenesisState message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ControllerGenesisState.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.active_channels != null && message.active_channels.length) - for (let i = 0; i < message.active_channels.length; ++i) - $root.ibc.applications.interchain_accounts.v1.ActiveChannel.encode(message.active_channels[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.interchain_accounts != null && message.interchain_accounts.length) - for (let i = 0; i < message.interchain_accounts.length; ++i) - $root.ibc.applications.interchain_accounts.v1.RegisteredInterchainAccount.encode(message.interchain_accounts[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.ports != null && message.ports.length) - for (let i = 0; i < message.ports.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.ports[i]); - if (message.params != null && Object.hasOwnProperty.call(message, "params")) - $root.ibc.applications.interchain_accounts.controller.v1.Params.encode(message.params, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - return writer; - }; + /** + * QueryInterchainAccountRequest owner. + * @member {string} owner + * @memberof ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountRequest + * @instance + */ + QueryInterchainAccountRequest.prototype.owner = ""; - /** - * Encodes the specified ControllerGenesisState message, length delimited. Does not implicitly {@link ibc.applications.interchain_accounts.v1.ControllerGenesisState.verify|verify} messages. - * @function encodeDelimited - * @memberof ibc.applications.interchain_accounts.v1.ControllerGenesisState - * @static - * @param {ibc.applications.interchain_accounts.v1.IControllerGenesisState} message ControllerGenesisState message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ControllerGenesisState.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * QueryInterchainAccountRequest connection_id. + * @member {string} connection_id + * @memberof ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountRequest + * @instance + */ + QueryInterchainAccountRequest.prototype.connection_id = ""; - /** - * Decodes a ControllerGenesisState message from the specified reader or buffer. - * @function decode - * @memberof ibc.applications.interchain_accounts.v1.ControllerGenesisState - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.interchain_accounts.v1.ControllerGenesisState} ControllerGenesisState - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ControllerGenesisState.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.interchain_accounts.v1.ControllerGenesisState(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.active_channels && message.active_channels.length)) - message.active_channels = []; - message.active_channels.push($root.ibc.applications.interchain_accounts.v1.ActiveChannel.decode(reader, reader.uint32())); - break; - case 2: - if (!(message.interchain_accounts && message.interchain_accounts.length)) - message.interchain_accounts = []; - message.interchain_accounts.push($root.ibc.applications.interchain_accounts.v1.RegisteredInterchainAccount.decode(reader, reader.uint32())); - break; - case 3: - if (!(message.ports && message.ports.length)) - message.ports = []; - message.ports.push(reader.string()); - break; - case 4: - message.params = $root.ibc.applications.interchain_accounts.controller.v1.Params.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; + /** + * Encodes the specified QueryInterchainAccountRequest message. Does not implicitly {@link ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountRequest.verify|verify} messages. + * @function encode + * @memberof ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountRequest + * @static + * @param {ibc.applications.interchain_accounts.controller.v1.IQueryInterchainAccountRequest} message QueryInterchainAccountRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + QueryInterchainAccountRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.owner != null && Object.hasOwnProperty.call(message, "owner")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.owner); + if (message.connection_id != null && Object.hasOwnProperty.call(message, "connection_id")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.connection_id); + return writer; + }; + + /** + * Encodes the specified QueryInterchainAccountRequest message, length delimited. Does not implicitly {@link ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountRequest + * @static + * @param {ibc.applications.interchain_accounts.controller.v1.IQueryInterchainAccountRequest} message QueryInterchainAccountRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + QueryInterchainAccountRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a QueryInterchainAccountRequest message from the specified reader or buffer. + * @function decode + * @memberof ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountRequest} QueryInterchainAccountRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + QueryInterchainAccountRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountRequest(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.owner = reader.string(); + break; + case 2: + message.connection_id = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } } - } - return message; - }; + return message; + }; + + /** + * Decodes a QueryInterchainAccountRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountRequest} QueryInterchainAccountRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + QueryInterchainAccountRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a QueryInterchainAccountRequest message. + * @function verify + * @memberof ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + QueryInterchainAccountRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.owner != null && message.hasOwnProperty("owner")) + if (!$util.isString(message.owner)) + return "owner: string expected"; + if (message.connection_id != null && message.hasOwnProperty("connection_id")) + if (!$util.isString(message.connection_id)) + return "connection_id: string expected"; + return null; + }; - /** - * Decodes a ControllerGenesisState message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ibc.applications.interchain_accounts.v1.ControllerGenesisState - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.interchain_accounts.v1.ControllerGenesisState} ControllerGenesisState - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ControllerGenesisState.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Creates a QueryInterchainAccountRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountRequest + * @static + * @param {Object.} object Plain object + * @returns {ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountRequest} QueryInterchainAccountRequest + */ + QueryInterchainAccountRequest.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountRequest) + return object; + let message = new $root.ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountRequest(); + if (object.owner != null) + message.owner = String(object.owner); + if (object.connection_id != null) + message.connection_id = String(object.connection_id); + return message; + }; - /** - * Verifies a ControllerGenesisState message. - * @function verify - * @memberof ibc.applications.interchain_accounts.v1.ControllerGenesisState - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ControllerGenesisState.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.active_channels != null && message.hasOwnProperty("active_channels")) { - if (!Array.isArray(message.active_channels)) - return "active_channels: array expected"; - for (let i = 0; i < message.active_channels.length; ++i) { - let error = $root.ibc.applications.interchain_accounts.v1.ActiveChannel.verify(message.active_channels[i]); - if (error) - return "active_channels." + error; - } - } - if (message.interchain_accounts != null && message.hasOwnProperty("interchain_accounts")) { - if (!Array.isArray(message.interchain_accounts)) - return "interchain_accounts: array expected"; - for (let i = 0; i < message.interchain_accounts.length; ++i) { - let error = $root.ibc.applications.interchain_accounts.v1.RegisteredInterchainAccount.verify(message.interchain_accounts[i]); - if (error) - return "interchain_accounts." + error; + /** + * Creates a plain object from a QueryInterchainAccountRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountRequest + * @static + * @param {ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountRequest} message QueryInterchainAccountRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + QueryInterchainAccountRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + object.owner = ""; + object.connection_id = ""; } - } - if (message.ports != null && message.hasOwnProperty("ports")) { - if (!Array.isArray(message.ports)) - return "ports: array expected"; - for (let i = 0; i < message.ports.length; ++i) - if (!$util.isString(message.ports[i])) - return "ports: string[] expected"; - } - if (message.params != null && message.hasOwnProperty("params")) { - let error = $root.ibc.applications.interchain_accounts.controller.v1.Params.verify(message.params); - if (error) - return "params." + error; - } - return null; - }; - - /** - * Creates a ControllerGenesisState message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof ibc.applications.interchain_accounts.v1.ControllerGenesisState - * @static - * @param {Object.} object Plain object - * @returns {ibc.applications.interchain_accounts.v1.ControllerGenesisState} ControllerGenesisState - */ - ControllerGenesisState.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.interchain_accounts.v1.ControllerGenesisState) + if (message.owner != null && message.hasOwnProperty("owner")) + object.owner = message.owner; + if (message.connection_id != null && message.hasOwnProperty("connection_id")) + object.connection_id = message.connection_id; return object; - let message = new $root.ibc.applications.interchain_accounts.v1.ControllerGenesisState(); - if (object.active_channels) { - if (!Array.isArray(object.active_channels)) - throw TypeError(".ibc.applications.interchain_accounts.v1.ControllerGenesisState.active_channels: array expected"); - message.active_channels = []; - for (let i = 0; i < object.active_channels.length; ++i) { - if (typeof object.active_channels[i] !== "object") - throw TypeError(".ibc.applications.interchain_accounts.v1.ControllerGenesisState.active_channels: object expected"); - message.active_channels[i] = $root.ibc.applications.interchain_accounts.v1.ActiveChannel.fromObject(object.active_channels[i]); - } - } - if (object.interchain_accounts) { - if (!Array.isArray(object.interchain_accounts)) - throw TypeError(".ibc.applications.interchain_accounts.v1.ControllerGenesisState.interchain_accounts: array expected"); - message.interchain_accounts = []; - for (let i = 0; i < object.interchain_accounts.length; ++i) { - if (typeof object.interchain_accounts[i] !== "object") - throw TypeError(".ibc.applications.interchain_accounts.v1.ControllerGenesisState.interchain_accounts: object expected"); - message.interchain_accounts[i] = $root.ibc.applications.interchain_accounts.v1.RegisteredInterchainAccount.fromObject(object.interchain_accounts[i]); - } - } - if (object.ports) { - if (!Array.isArray(object.ports)) - throw TypeError(".ibc.applications.interchain_accounts.v1.ControllerGenesisState.ports: array expected"); - message.ports = []; - for (let i = 0; i < object.ports.length; ++i) - message.ports[i] = String(object.ports[i]); - } - if (object.params != null) { - if (typeof object.params !== "object") - throw TypeError(".ibc.applications.interchain_accounts.v1.ControllerGenesisState.params: object expected"); - message.params = $root.ibc.applications.interchain_accounts.controller.v1.Params.fromObject(object.params); - } - return message; - }; + }; - /** - * Creates a plain object from a ControllerGenesisState message. Also converts values to other types if specified. - * @function toObject - * @memberof ibc.applications.interchain_accounts.v1.ControllerGenesisState - * @static - * @param {ibc.applications.interchain_accounts.v1.ControllerGenesisState} message ControllerGenesisState - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ControllerGenesisState.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.arrays || options.defaults) { - object.active_channels = []; - object.interchain_accounts = []; - object.ports = []; - } - if (options.defaults) - object.params = null; - if (message.active_channels && message.active_channels.length) { - object.active_channels = []; - for (let j = 0; j < message.active_channels.length; ++j) - object.active_channels[j] = $root.ibc.applications.interchain_accounts.v1.ActiveChannel.toObject(message.active_channels[j], options); - } - if (message.interchain_accounts && message.interchain_accounts.length) { - object.interchain_accounts = []; - for (let j = 0; j < message.interchain_accounts.length; ++j) - object.interchain_accounts[j] = $root.ibc.applications.interchain_accounts.v1.RegisteredInterchainAccount.toObject(message.interchain_accounts[j], options); - } - if (message.ports && message.ports.length) { - object.ports = []; - for (let j = 0; j < message.ports.length; ++j) - object.ports[j] = message.ports[j]; - } - if (message.params != null && message.hasOwnProperty("params")) - object.params = $root.ibc.applications.interchain_accounts.controller.v1.Params.toObject(message.params, options); - return object; - }; + /** + * Converts this QueryInterchainAccountRequest to JSON. + * @function toJSON + * @memberof ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountRequest + * @instance + * @returns {Object.} JSON object + */ + QueryInterchainAccountRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Converts this ControllerGenesisState to JSON. - * @function toJSON - * @memberof ibc.applications.interchain_accounts.v1.ControllerGenesisState - * @instance - * @returns {Object.} JSON object - */ - ControllerGenesisState.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + return QueryInterchainAccountRequest; + })(); - return ControllerGenesisState; - })(); + v1.QueryInterchainAccountResponse = (function() { - v1.HostGenesisState = (function() { + /** + * Properties of a QueryInterchainAccountResponse. + * @memberof ibc.applications.interchain_accounts.controller.v1 + * @interface IQueryInterchainAccountResponse + * @property {string|null} [address] QueryInterchainAccountResponse address + */ - /** - * Properties of a HostGenesisState. - * @memberof ibc.applications.interchain_accounts.v1 - * @interface IHostGenesisState - * @property {Array.|null} [active_channels] HostGenesisState active_channels - * @property {Array.|null} [interchain_accounts] HostGenesisState interchain_accounts - * @property {string|null} [port] HostGenesisState port - * @property {ibc.applications.interchain_accounts.host.v1.IParams|null} [params] HostGenesisState params - */ + /** + * Constructs a new QueryInterchainAccountResponse. + * @memberof ibc.applications.interchain_accounts.controller.v1 + * @classdesc Represents a QueryInterchainAccountResponse. + * @implements IQueryInterchainAccountResponse + * @constructor + * @param {ibc.applications.interchain_accounts.controller.v1.IQueryInterchainAccountResponse=} [properties] Properties to set + */ + function QueryInterchainAccountResponse(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Constructs a new HostGenesisState. - * @memberof ibc.applications.interchain_accounts.v1 - * @classdesc Represents a HostGenesisState. - * @implements IHostGenesisState - * @constructor - * @param {ibc.applications.interchain_accounts.v1.IHostGenesisState=} [properties] Properties to set - */ - function HostGenesisState(properties) { - this.active_channels = []; - this.interchain_accounts = []; - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * QueryInterchainAccountResponse address. + * @member {string} address + * @memberof ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountResponse + * @instance + */ + QueryInterchainAccountResponse.prototype.address = ""; - /** - * HostGenesisState active_channels. - * @member {Array.} active_channels - * @memberof ibc.applications.interchain_accounts.v1.HostGenesisState - * @instance - */ - HostGenesisState.prototype.active_channels = $util.emptyArray; + /** + * Encodes the specified QueryInterchainAccountResponse message. Does not implicitly {@link ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountResponse.verify|verify} messages. + * @function encode + * @memberof ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountResponse + * @static + * @param {ibc.applications.interchain_accounts.controller.v1.IQueryInterchainAccountResponse} message QueryInterchainAccountResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + QueryInterchainAccountResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.address != null && Object.hasOwnProperty.call(message, "address")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.address); + return writer; + }; - /** - * HostGenesisState interchain_accounts. - * @member {Array.} interchain_accounts - * @memberof ibc.applications.interchain_accounts.v1.HostGenesisState - * @instance - */ - HostGenesisState.prototype.interchain_accounts = $util.emptyArray; + /** + * Encodes the specified QueryInterchainAccountResponse message, length delimited. Does not implicitly {@link ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountResponse + * @static + * @param {ibc.applications.interchain_accounts.controller.v1.IQueryInterchainAccountResponse} message QueryInterchainAccountResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + QueryInterchainAccountResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * HostGenesisState port. - * @member {string} port - * @memberof ibc.applications.interchain_accounts.v1.HostGenesisState - * @instance - */ - HostGenesisState.prototype.port = ""; + /** + * Decodes a QueryInterchainAccountResponse message from the specified reader or buffer. + * @function decode + * @memberof ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountResponse} QueryInterchainAccountResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + QueryInterchainAccountResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountResponse(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.address = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * HostGenesisState params. - * @member {ibc.applications.interchain_accounts.host.v1.IParams|null|undefined} params - * @memberof ibc.applications.interchain_accounts.v1.HostGenesisState - * @instance - */ - HostGenesisState.prototype.params = null; + /** + * Decodes a QueryInterchainAccountResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountResponse} QueryInterchainAccountResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + QueryInterchainAccountResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Encodes the specified HostGenesisState message. Does not implicitly {@link ibc.applications.interchain_accounts.v1.HostGenesisState.verify|verify} messages. - * @function encode - * @memberof ibc.applications.interchain_accounts.v1.HostGenesisState - * @static - * @param {ibc.applications.interchain_accounts.v1.IHostGenesisState} message HostGenesisState message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - HostGenesisState.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.active_channels != null && message.active_channels.length) - for (let i = 0; i < message.active_channels.length; ++i) - $root.ibc.applications.interchain_accounts.v1.ActiveChannel.encode(message.active_channels[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.interchain_accounts != null && message.interchain_accounts.length) - for (let i = 0; i < message.interchain_accounts.length; ++i) - $root.ibc.applications.interchain_accounts.v1.RegisteredInterchainAccount.encode(message.interchain_accounts[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.port != null && Object.hasOwnProperty.call(message, "port")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.port); - if (message.params != null && Object.hasOwnProperty.call(message, "params")) - $root.ibc.applications.interchain_accounts.host.v1.Params.encode(message.params, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - return writer; - }; + /** + * Verifies a QueryInterchainAccountResponse message. + * @function verify + * @memberof ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + QueryInterchainAccountResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.address != null && message.hasOwnProperty("address")) + if (!$util.isString(message.address)) + return "address: string expected"; + return null; + }; - /** - * Encodes the specified HostGenesisState message, length delimited. Does not implicitly {@link ibc.applications.interchain_accounts.v1.HostGenesisState.verify|verify} messages. - * @function encodeDelimited - * @memberof ibc.applications.interchain_accounts.v1.HostGenesisState - * @static - * @param {ibc.applications.interchain_accounts.v1.IHostGenesisState} message HostGenesisState message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - HostGenesisState.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Creates a QueryInterchainAccountResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountResponse + * @static + * @param {Object.} object Plain object + * @returns {ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountResponse} QueryInterchainAccountResponse + */ + QueryInterchainAccountResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountResponse) + return object; + let message = new $root.ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountResponse(); + if (object.address != null) + message.address = String(object.address); + return message; + }; - /** - * Decodes a HostGenesisState message from the specified reader or buffer. - * @function decode - * @memberof ibc.applications.interchain_accounts.v1.HostGenesisState - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.interchain_accounts.v1.HostGenesisState} HostGenesisState - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - HostGenesisState.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.interchain_accounts.v1.HostGenesisState(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.active_channels && message.active_channels.length)) - message.active_channels = []; - message.active_channels.push($root.ibc.applications.interchain_accounts.v1.ActiveChannel.decode(reader, reader.uint32())); - break; - case 2: - if (!(message.interchain_accounts && message.interchain_accounts.length)) - message.interchain_accounts = []; - message.interchain_accounts.push($root.ibc.applications.interchain_accounts.v1.RegisteredInterchainAccount.decode(reader, reader.uint32())); - break; - case 3: - message.port = reader.string(); - break; - case 4: - message.params = $root.ibc.applications.interchain_accounts.host.v1.Params.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Creates a plain object from a QueryInterchainAccountResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountResponse + * @static + * @param {ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountResponse} message QueryInterchainAccountResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + QueryInterchainAccountResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) + object.address = ""; + if (message.address != null && message.hasOwnProperty("address")) + object.address = message.address; + return object; + }; - /** - * Decodes a HostGenesisState message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ibc.applications.interchain_accounts.v1.HostGenesisState - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.interchain_accounts.v1.HostGenesisState} HostGenesisState - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - HostGenesisState.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Converts this QueryInterchainAccountResponse to JSON. + * @function toJSON + * @memberof ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountResponse + * @instance + * @returns {Object.} JSON object + */ + QueryInterchainAccountResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Verifies a HostGenesisState message. - * @function verify - * @memberof ibc.applications.interchain_accounts.v1.HostGenesisState - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - HostGenesisState.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.active_channels != null && message.hasOwnProperty("active_channels")) { - if (!Array.isArray(message.active_channels)) - return "active_channels: array expected"; - for (let i = 0; i < message.active_channels.length; ++i) { - let error = $root.ibc.applications.interchain_accounts.v1.ActiveChannel.verify(message.active_channels[i]); - if (error) - return "active_channels." + error; - } - } - if (message.interchain_accounts != null && message.hasOwnProperty("interchain_accounts")) { - if (!Array.isArray(message.interchain_accounts)) - return "interchain_accounts: array expected"; - for (let i = 0; i < message.interchain_accounts.length; ++i) { - let error = $root.ibc.applications.interchain_accounts.v1.RegisteredInterchainAccount.verify(message.interchain_accounts[i]); - if (error) - return "interchain_accounts." + error; - } - } - if (message.port != null && message.hasOwnProperty("port")) - if (!$util.isString(message.port)) - return "port: string expected"; - if (message.params != null && message.hasOwnProperty("params")) { - let error = $root.ibc.applications.interchain_accounts.host.v1.Params.verify(message.params); - if (error) - return "params." + error; - } - return null; - }; + return QueryInterchainAccountResponse; + })(); - /** - * Creates a HostGenesisState message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof ibc.applications.interchain_accounts.v1.HostGenesisState - * @static - * @param {Object.} object Plain object - * @returns {ibc.applications.interchain_accounts.v1.HostGenesisState} HostGenesisState - */ - HostGenesisState.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.interchain_accounts.v1.HostGenesisState) - return object; - let message = new $root.ibc.applications.interchain_accounts.v1.HostGenesisState(); - if (object.active_channels) { - if (!Array.isArray(object.active_channels)) - throw TypeError(".ibc.applications.interchain_accounts.v1.HostGenesisState.active_channels: array expected"); - message.active_channels = []; - for (let i = 0; i < object.active_channels.length; ++i) { - if (typeof object.active_channels[i] !== "object") - throw TypeError(".ibc.applications.interchain_accounts.v1.HostGenesisState.active_channels: object expected"); - message.active_channels[i] = $root.ibc.applications.interchain_accounts.v1.ActiveChannel.fromObject(object.active_channels[i]); - } - } - if (object.interchain_accounts) { - if (!Array.isArray(object.interchain_accounts)) - throw TypeError(".ibc.applications.interchain_accounts.v1.HostGenesisState.interchain_accounts: array expected"); - message.interchain_accounts = []; - for (let i = 0; i < object.interchain_accounts.length; ++i) { - if (typeof object.interchain_accounts[i] !== "object") - throw TypeError(".ibc.applications.interchain_accounts.v1.HostGenesisState.interchain_accounts: object expected"); - message.interchain_accounts[i] = $root.ibc.applications.interchain_accounts.v1.RegisteredInterchainAccount.fromObject(object.interchain_accounts[i]); - } - } - if (object.port != null) - message.port = String(object.port); - if (object.params != null) { - if (typeof object.params !== "object") - throw TypeError(".ibc.applications.interchain_accounts.v1.HostGenesisState.params: object expected"); - message.params = $root.ibc.applications.interchain_accounts.host.v1.Params.fromObject(object.params); - } - return message; - }; + v1.QueryParamsRequest = (function() { - /** - * Creates a plain object from a HostGenesisState message. Also converts values to other types if specified. - * @function toObject - * @memberof ibc.applications.interchain_accounts.v1.HostGenesisState - * @static - * @param {ibc.applications.interchain_accounts.v1.HostGenesisState} message HostGenesisState - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - HostGenesisState.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.arrays || options.defaults) { - object.active_channels = []; - object.interchain_accounts = []; - } - if (options.defaults) { - object.port = ""; - object.params = null; - } - if (message.active_channels && message.active_channels.length) { - object.active_channels = []; - for (let j = 0; j < message.active_channels.length; ++j) - object.active_channels[j] = $root.ibc.applications.interchain_accounts.v1.ActiveChannel.toObject(message.active_channels[j], options); - } - if (message.interchain_accounts && message.interchain_accounts.length) { - object.interchain_accounts = []; - for (let j = 0; j < message.interchain_accounts.length; ++j) - object.interchain_accounts[j] = $root.ibc.applications.interchain_accounts.v1.RegisteredInterchainAccount.toObject(message.interchain_accounts[j], options); + /** + * Properties of a QueryParamsRequest. + * @memberof ibc.applications.interchain_accounts.controller.v1 + * @interface IQueryParamsRequest + */ + + /** + * Constructs a new QueryParamsRequest. + * @memberof ibc.applications.interchain_accounts.controller.v1 + * @classdesc Represents a QueryParamsRequest. + * @implements IQueryParamsRequest + * @constructor + * @param {ibc.applications.interchain_accounts.controller.v1.IQueryParamsRequest=} [properties] Properties to set + */ + function QueryParamsRequest(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; } - if (message.port != null && message.hasOwnProperty("port")) - object.port = message.port; - if (message.params != null && message.hasOwnProperty("params")) - object.params = $root.ibc.applications.interchain_accounts.host.v1.Params.toObject(message.params, options); - return object; - }; - /** - * Converts this HostGenesisState to JSON. - * @function toJSON - * @memberof ibc.applications.interchain_accounts.v1.HostGenesisState - * @instance - * @returns {Object.} JSON object - */ - HostGenesisState.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Encodes the specified QueryParamsRequest message. Does not implicitly {@link ibc.applications.interchain_accounts.controller.v1.QueryParamsRequest.verify|verify} messages. + * @function encode + * @memberof ibc.applications.interchain_accounts.controller.v1.QueryParamsRequest + * @static + * @param {ibc.applications.interchain_accounts.controller.v1.IQueryParamsRequest} message QueryParamsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + QueryParamsRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; - return HostGenesisState; - })(); + /** + * Encodes the specified QueryParamsRequest message, length delimited. Does not implicitly {@link ibc.applications.interchain_accounts.controller.v1.QueryParamsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof ibc.applications.interchain_accounts.controller.v1.QueryParamsRequest + * @static + * @param {ibc.applications.interchain_accounts.controller.v1.IQueryParamsRequest} message QueryParamsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + QueryParamsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a QueryParamsRequest message from the specified reader or buffer. + * @function decode + * @memberof ibc.applications.interchain_accounts.controller.v1.QueryParamsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {ibc.applications.interchain_accounts.controller.v1.QueryParamsRequest} QueryParamsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + QueryParamsRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.interchain_accounts.controller.v1.QueryParamsRequest(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - v1.ActiveChannel = (function() { + /** + * Decodes a QueryParamsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof ibc.applications.interchain_accounts.controller.v1.QueryParamsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {ibc.applications.interchain_accounts.controller.v1.QueryParamsRequest} QueryParamsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + QueryParamsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Properties of an ActiveChannel. - * @memberof ibc.applications.interchain_accounts.v1 - * @interface IActiveChannel - * @property {string|null} [connection_id] ActiveChannel connection_id - * @property {string|null} [port_id] ActiveChannel port_id - * @property {string|null} [channel_id] ActiveChannel channel_id - */ + /** + * Verifies a QueryParamsRequest message. + * @function verify + * @memberof ibc.applications.interchain_accounts.controller.v1.QueryParamsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + QueryParamsRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; - /** - * Constructs a new ActiveChannel. - * @memberof ibc.applications.interchain_accounts.v1 - * @classdesc Represents an ActiveChannel. - * @implements IActiveChannel - * @constructor - * @param {ibc.applications.interchain_accounts.v1.IActiveChannel=} [properties] Properties to set - */ - function ActiveChannel(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Creates a QueryParamsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof ibc.applications.interchain_accounts.controller.v1.QueryParamsRequest + * @static + * @param {Object.} object Plain object + * @returns {ibc.applications.interchain_accounts.controller.v1.QueryParamsRequest} QueryParamsRequest + */ + QueryParamsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.interchain_accounts.controller.v1.QueryParamsRequest) + return object; + return new $root.ibc.applications.interchain_accounts.controller.v1.QueryParamsRequest(); + }; - /** - * ActiveChannel connection_id. - * @member {string} connection_id - * @memberof ibc.applications.interchain_accounts.v1.ActiveChannel - * @instance - */ - ActiveChannel.prototype.connection_id = ""; + /** + * Creates a plain object from a QueryParamsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof ibc.applications.interchain_accounts.controller.v1.QueryParamsRequest + * @static + * @param {ibc.applications.interchain_accounts.controller.v1.QueryParamsRequest} message QueryParamsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + QueryParamsRequest.toObject = function toObject() { + return {}; + }; - /** - * ActiveChannel port_id. - * @member {string} port_id - * @memberof ibc.applications.interchain_accounts.v1.ActiveChannel - * @instance - */ - ActiveChannel.prototype.port_id = ""; + /** + * Converts this QueryParamsRequest to JSON. + * @function toJSON + * @memberof ibc.applications.interchain_accounts.controller.v1.QueryParamsRequest + * @instance + * @returns {Object.} JSON object + */ + QueryParamsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * ActiveChannel channel_id. - * @member {string} channel_id - * @memberof ibc.applications.interchain_accounts.v1.ActiveChannel - * @instance - */ - ActiveChannel.prototype.channel_id = ""; + return QueryParamsRequest; + })(); - /** - * Encodes the specified ActiveChannel message. Does not implicitly {@link ibc.applications.interchain_accounts.v1.ActiveChannel.verify|verify} messages. - * @function encode - * @memberof ibc.applications.interchain_accounts.v1.ActiveChannel - * @static - * @param {ibc.applications.interchain_accounts.v1.IActiveChannel} message ActiveChannel message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ActiveChannel.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.connection_id != null && Object.hasOwnProperty.call(message, "connection_id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.connection_id); - if (message.port_id != null && Object.hasOwnProperty.call(message, "port_id")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.port_id); - if (message.channel_id != null && Object.hasOwnProperty.call(message, "channel_id")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.channel_id); - return writer; - }; + v1.QueryParamsResponse = (function() { - /** - * Encodes the specified ActiveChannel message, length delimited. Does not implicitly {@link ibc.applications.interchain_accounts.v1.ActiveChannel.verify|verify} messages. - * @function encodeDelimited - * @memberof ibc.applications.interchain_accounts.v1.ActiveChannel - * @static - * @param {ibc.applications.interchain_accounts.v1.IActiveChannel} message ActiveChannel message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ActiveChannel.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Properties of a QueryParamsResponse. + * @memberof ibc.applications.interchain_accounts.controller.v1 + * @interface IQueryParamsResponse + * @property {ibc.applications.interchain_accounts.controller.v1.IParams|null} [params] QueryParamsResponse params + */ - /** - * Decodes an ActiveChannel message from the specified reader or buffer. - * @function decode - * @memberof ibc.applications.interchain_accounts.v1.ActiveChannel - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.interchain_accounts.v1.ActiveChannel} ActiveChannel - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ActiveChannel.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.interchain_accounts.v1.ActiveChannel(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.connection_id = reader.string(); - break; - case 2: - message.port_id = reader.string(); - break; - case 3: - message.channel_id = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } + /** + * Constructs a new QueryParamsResponse. + * @memberof ibc.applications.interchain_accounts.controller.v1 + * @classdesc Represents a QueryParamsResponse. + * @implements IQueryParamsResponse + * @constructor + * @param {ibc.applications.interchain_accounts.controller.v1.IQueryParamsResponse=} [properties] Properties to set + */ + function QueryParamsResponse(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; } - return message; - }; - /** - * Decodes an ActiveChannel message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ibc.applications.interchain_accounts.v1.ActiveChannel - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.interchain_accounts.v1.ActiveChannel} ActiveChannel - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ActiveChannel.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * QueryParamsResponse params. + * @member {ibc.applications.interchain_accounts.controller.v1.IParams|null|undefined} params + * @memberof ibc.applications.interchain_accounts.controller.v1.QueryParamsResponse + * @instance + */ + QueryParamsResponse.prototype.params = null; - /** - * Verifies an ActiveChannel message. - * @function verify - * @memberof ibc.applications.interchain_accounts.v1.ActiveChannel - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ActiveChannel.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.connection_id != null && message.hasOwnProperty("connection_id")) - if (!$util.isString(message.connection_id)) - return "connection_id: string expected"; - if (message.port_id != null && message.hasOwnProperty("port_id")) - if (!$util.isString(message.port_id)) - return "port_id: string expected"; - if (message.channel_id != null && message.hasOwnProperty("channel_id")) - if (!$util.isString(message.channel_id)) - return "channel_id: string expected"; - return null; - }; + /** + * Encodes the specified QueryParamsResponse message. Does not implicitly {@link ibc.applications.interchain_accounts.controller.v1.QueryParamsResponse.verify|verify} messages. + * @function encode + * @memberof ibc.applications.interchain_accounts.controller.v1.QueryParamsResponse + * @static + * @param {ibc.applications.interchain_accounts.controller.v1.IQueryParamsResponse} message QueryParamsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + QueryParamsResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.params != null && Object.hasOwnProperty.call(message, "params")) + $root.ibc.applications.interchain_accounts.controller.v1.Params.encode(message.params, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; - /** - * Creates an ActiveChannel message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof ibc.applications.interchain_accounts.v1.ActiveChannel - * @static - * @param {Object.} object Plain object - * @returns {ibc.applications.interchain_accounts.v1.ActiveChannel} ActiveChannel - */ - ActiveChannel.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.interchain_accounts.v1.ActiveChannel) - return object; - let message = new $root.ibc.applications.interchain_accounts.v1.ActiveChannel(); - if (object.connection_id != null) - message.connection_id = String(object.connection_id); - if (object.port_id != null) - message.port_id = String(object.port_id); - if (object.channel_id != null) - message.channel_id = String(object.channel_id); - return message; - }; + /** + * Encodes the specified QueryParamsResponse message, length delimited. Does not implicitly {@link ibc.applications.interchain_accounts.controller.v1.QueryParamsResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof ibc.applications.interchain_accounts.controller.v1.QueryParamsResponse + * @static + * @param {ibc.applications.interchain_accounts.controller.v1.IQueryParamsResponse} message QueryParamsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + QueryParamsResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Creates a plain object from an ActiveChannel message. Also converts values to other types if specified. - * @function toObject - * @memberof ibc.applications.interchain_accounts.v1.ActiveChannel - * @static - * @param {ibc.applications.interchain_accounts.v1.ActiveChannel} message ActiveChannel - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ActiveChannel.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - object.connection_id = ""; - object.port_id = ""; - object.channel_id = ""; - } - if (message.connection_id != null && message.hasOwnProperty("connection_id")) - object.connection_id = message.connection_id; - if (message.port_id != null && message.hasOwnProperty("port_id")) - object.port_id = message.port_id; - if (message.channel_id != null && message.hasOwnProperty("channel_id")) - object.channel_id = message.channel_id; - return object; - }; + /** + * Decodes a QueryParamsResponse message from the specified reader or buffer. + * @function decode + * @memberof ibc.applications.interchain_accounts.controller.v1.QueryParamsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {ibc.applications.interchain_accounts.controller.v1.QueryParamsResponse} QueryParamsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + QueryParamsResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.interchain_accounts.controller.v1.QueryParamsResponse(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.params = $root.ibc.applications.interchain_accounts.controller.v1.Params.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Converts this ActiveChannel to JSON. - * @function toJSON - * @memberof ibc.applications.interchain_accounts.v1.ActiveChannel - * @instance - * @returns {Object.} JSON object - */ - ActiveChannel.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Decodes a QueryParamsResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof ibc.applications.interchain_accounts.controller.v1.QueryParamsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {ibc.applications.interchain_accounts.controller.v1.QueryParamsResponse} QueryParamsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + QueryParamsResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - return ActiveChannel; - })(); + /** + * Verifies a QueryParamsResponse message. + * @function verify + * @memberof ibc.applications.interchain_accounts.controller.v1.QueryParamsResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + QueryParamsResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.params != null && message.hasOwnProperty("params")) { + let error = $root.ibc.applications.interchain_accounts.controller.v1.Params.verify(message.params); + if (error) + return "params." + error; + } + return null; + }; - v1.RegisteredInterchainAccount = (function() { + /** + * Creates a QueryParamsResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof ibc.applications.interchain_accounts.controller.v1.QueryParamsResponse + * @static + * @param {Object.} object Plain object + * @returns {ibc.applications.interchain_accounts.controller.v1.QueryParamsResponse} QueryParamsResponse + */ + QueryParamsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.interchain_accounts.controller.v1.QueryParamsResponse) + return object; + let message = new $root.ibc.applications.interchain_accounts.controller.v1.QueryParamsResponse(); + if (object.params != null) { + if (typeof object.params !== "object") + throw TypeError(".ibc.applications.interchain_accounts.controller.v1.QueryParamsResponse.params: object expected"); + message.params = $root.ibc.applications.interchain_accounts.controller.v1.Params.fromObject(object.params); + } + return message; + }; - /** - * Properties of a RegisteredInterchainAccount. - * @memberof ibc.applications.interchain_accounts.v1 - * @interface IRegisteredInterchainAccount - * @property {string|null} [connection_id] RegisteredInterchainAccount connection_id - * @property {string|null} [port_id] RegisteredInterchainAccount port_id - * @property {string|null} [account_address] RegisteredInterchainAccount account_address - */ + /** + * Creates a plain object from a QueryParamsResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof ibc.applications.interchain_accounts.controller.v1.QueryParamsResponse + * @static + * @param {ibc.applications.interchain_accounts.controller.v1.QueryParamsResponse} message QueryParamsResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + QueryParamsResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) + object.params = null; + if (message.params != null && message.hasOwnProperty("params")) + object.params = $root.ibc.applications.interchain_accounts.controller.v1.Params.toObject(message.params, options); + return object; + }; - /** - * Constructs a new RegisteredInterchainAccount. - * @memberof ibc.applications.interchain_accounts.v1 - * @classdesc Represents a RegisteredInterchainAccount. - * @implements IRegisteredInterchainAccount - * @constructor - * @param {ibc.applications.interchain_accounts.v1.IRegisteredInterchainAccount=} [properties] Properties to set - */ - function RegisteredInterchainAccount(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Converts this QueryParamsResponse to JSON. + * @function toJSON + * @memberof ibc.applications.interchain_accounts.controller.v1.QueryParamsResponse + * @instance + * @returns {Object.} JSON object + */ + QueryParamsResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * RegisteredInterchainAccount connection_id. - * @member {string} connection_id - * @memberof ibc.applications.interchain_accounts.v1.RegisteredInterchainAccount - * @instance - */ - RegisteredInterchainAccount.prototype.connection_id = ""; + return QueryParamsResponse; + })(); - /** - * RegisteredInterchainAccount port_id. - * @member {string} port_id - * @memberof ibc.applications.interchain_accounts.v1.RegisteredInterchainAccount - * @instance - */ - RegisteredInterchainAccount.prototype.port_id = ""; + v1.Params = (function() { - /** - * RegisteredInterchainAccount account_address. - * @member {string} account_address - * @memberof ibc.applications.interchain_accounts.v1.RegisteredInterchainAccount - * @instance - */ - RegisteredInterchainAccount.prototype.account_address = ""; + /** + * Properties of a Params. + * @memberof ibc.applications.interchain_accounts.controller.v1 + * @interface IParams + * @property {boolean|null} [controller_enabled] Params controller_enabled + */ - /** - * Encodes the specified RegisteredInterchainAccount message. Does not implicitly {@link ibc.applications.interchain_accounts.v1.RegisteredInterchainAccount.verify|verify} messages. - * @function encode - * @memberof ibc.applications.interchain_accounts.v1.RegisteredInterchainAccount - * @static - * @param {ibc.applications.interchain_accounts.v1.IRegisteredInterchainAccount} message RegisteredInterchainAccount message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RegisteredInterchainAccount.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.connection_id != null && Object.hasOwnProperty.call(message, "connection_id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.connection_id); - if (message.port_id != null && Object.hasOwnProperty.call(message, "port_id")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.port_id); - if (message.account_address != null && Object.hasOwnProperty.call(message, "account_address")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.account_address); - return writer; - }; + /** + * Constructs a new Params. + * @memberof ibc.applications.interchain_accounts.controller.v1 + * @classdesc Represents a Params. + * @implements IParams + * @constructor + * @param {ibc.applications.interchain_accounts.controller.v1.IParams=} [properties] Properties to set + */ + function Params(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Encodes the specified RegisteredInterchainAccount message, length delimited. Does not implicitly {@link ibc.applications.interchain_accounts.v1.RegisteredInterchainAccount.verify|verify} messages. - * @function encodeDelimited - * @memberof ibc.applications.interchain_accounts.v1.RegisteredInterchainAccount - * @static - * @param {ibc.applications.interchain_accounts.v1.IRegisteredInterchainAccount} message RegisteredInterchainAccount message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RegisteredInterchainAccount.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Params controller_enabled. + * @member {boolean} controller_enabled + * @memberof ibc.applications.interchain_accounts.controller.v1.Params + * @instance + */ + Params.prototype.controller_enabled = false; - /** - * Decodes a RegisteredInterchainAccount message from the specified reader or buffer. - * @function decode - * @memberof ibc.applications.interchain_accounts.v1.RegisteredInterchainAccount - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.interchain_accounts.v1.RegisteredInterchainAccount} RegisteredInterchainAccount - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RegisteredInterchainAccount.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.interchain_accounts.v1.RegisteredInterchainAccount(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.connection_id = reader.string(); - break; - case 2: - message.port_id = reader.string(); - break; - case 3: - message.account_address = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; + /** + * Encodes the specified Params message. Does not implicitly {@link ibc.applications.interchain_accounts.controller.v1.Params.verify|verify} messages. + * @function encode + * @memberof ibc.applications.interchain_accounts.controller.v1.Params + * @static + * @param {ibc.applications.interchain_accounts.controller.v1.IParams} message Params message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Params.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.controller_enabled != null && Object.hasOwnProperty.call(message, "controller_enabled")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.controller_enabled); + return writer; + }; + + /** + * Encodes the specified Params message, length delimited. Does not implicitly {@link ibc.applications.interchain_accounts.controller.v1.Params.verify|verify} messages. + * @function encodeDelimited + * @memberof ibc.applications.interchain_accounts.controller.v1.Params + * @static + * @param {ibc.applications.interchain_accounts.controller.v1.IParams} message Params message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Params.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Params message from the specified reader or buffer. + * @function decode + * @memberof ibc.applications.interchain_accounts.controller.v1.Params + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {ibc.applications.interchain_accounts.controller.v1.Params} Params + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Params.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.interchain_accounts.controller.v1.Params(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.controller_enabled = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } } - } - return message; - }; + return message; + }; - /** - * Decodes a RegisteredInterchainAccount message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ibc.applications.interchain_accounts.v1.RegisteredInterchainAccount - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.interchain_accounts.v1.RegisteredInterchainAccount} RegisteredInterchainAccount - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RegisteredInterchainAccount.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a Params message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof ibc.applications.interchain_accounts.controller.v1.Params + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {ibc.applications.interchain_accounts.controller.v1.Params} Params + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Params.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies a RegisteredInterchainAccount message. - * @function verify - * @memberof ibc.applications.interchain_accounts.v1.RegisteredInterchainAccount - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - RegisteredInterchainAccount.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.connection_id != null && message.hasOwnProperty("connection_id")) - if (!$util.isString(message.connection_id)) - return "connection_id: string expected"; - if (message.port_id != null && message.hasOwnProperty("port_id")) - if (!$util.isString(message.port_id)) - return "port_id: string expected"; - if (message.account_address != null && message.hasOwnProperty("account_address")) - if (!$util.isString(message.account_address)) - return "account_address: string expected"; - return null; - }; + /** + * Verifies a Params message. + * @function verify + * @memberof ibc.applications.interchain_accounts.controller.v1.Params + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Params.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.controller_enabled != null && message.hasOwnProperty("controller_enabled")) + if (typeof message.controller_enabled !== "boolean") + return "controller_enabled: boolean expected"; + return null; + }; - /** - * Creates a RegisteredInterchainAccount message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof ibc.applications.interchain_accounts.v1.RegisteredInterchainAccount - * @static - * @param {Object.} object Plain object - * @returns {ibc.applications.interchain_accounts.v1.RegisteredInterchainAccount} RegisteredInterchainAccount - */ - RegisteredInterchainAccount.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.interchain_accounts.v1.RegisteredInterchainAccount) + /** + * Creates a Params message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof ibc.applications.interchain_accounts.controller.v1.Params + * @static + * @param {Object.} object Plain object + * @returns {ibc.applications.interchain_accounts.controller.v1.Params} Params + */ + Params.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.interchain_accounts.controller.v1.Params) + return object; + let message = new $root.ibc.applications.interchain_accounts.controller.v1.Params(); + if (object.controller_enabled != null) + message.controller_enabled = Boolean(object.controller_enabled); + return message; + }; + + /** + * Creates a plain object from a Params message. Also converts values to other types if specified. + * @function toObject + * @memberof ibc.applications.interchain_accounts.controller.v1.Params + * @static + * @param {ibc.applications.interchain_accounts.controller.v1.Params} message Params + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Params.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) + object.controller_enabled = false; + if (message.controller_enabled != null && message.hasOwnProperty("controller_enabled")) + object.controller_enabled = message.controller_enabled; return object; - let message = new $root.ibc.applications.interchain_accounts.v1.RegisteredInterchainAccount(); - if (object.connection_id != null) - message.connection_id = String(object.connection_id); - if (object.port_id != null) - message.port_id = String(object.port_id); - if (object.account_address != null) - message.account_address = String(object.account_address); - return message; - }; + }; - /** - * Creates a plain object from a RegisteredInterchainAccount message. Also converts values to other types if specified. - * @function toObject - * @memberof ibc.applications.interchain_accounts.v1.RegisteredInterchainAccount - * @static - * @param {ibc.applications.interchain_accounts.v1.RegisteredInterchainAccount} message RegisteredInterchainAccount - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - RegisteredInterchainAccount.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - object.connection_id = ""; - object.port_id = ""; - object.account_address = ""; - } - if (message.connection_id != null && message.hasOwnProperty("connection_id")) - object.connection_id = message.connection_id; - if (message.port_id != null && message.hasOwnProperty("port_id")) - object.port_id = message.port_id; - if (message.account_address != null && message.hasOwnProperty("account_address")) - object.account_address = message.account_address; - return object; - }; + /** + * Converts this Params to JSON. + * @function toJSON + * @memberof ibc.applications.interchain_accounts.controller.v1.Params + * @instance + * @returns {Object.} JSON object + */ + Params.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Converts this RegisteredInterchainAccount to JSON. - * @function toJSON - * @memberof ibc.applications.interchain_accounts.v1.RegisteredInterchainAccount - * @instance - * @returns {Object.} JSON object - */ - RegisteredInterchainAccount.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + return Params; + })(); - return RegisteredInterchainAccount; + return v1; })(); - return v1; + return controller; })(); - return interchain_accounts; - })(); - - applications.transfer = (function() { - - /** - * Namespace transfer. - * @memberof ibc.applications - * @namespace - */ - const transfer = {}; - - transfer.v1 = (function() { + interchain_accounts.v1 = (function() { /** * Namespace v1. - * @memberof ibc.applications.transfer + * @memberof ibc.applications.interchain_accounts * @namespace */ const v1 = {}; - v1.Msg = (function() { - - /** - * Constructs a new Msg service. - * @memberof ibc.applications.transfer.v1 - * @classdesc Represents a Msg - * @extends $protobuf.rpc.Service - * @constructor - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - */ - function Msg(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } - - (Msg.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Msg; - - /** - * Callback as used by {@link ibc.applications.transfer.v1.Msg#transfer}. - * @memberof ibc.applications.transfer.v1.Msg - * @typedef TransferCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.applications.transfer.v1.MsgTransferResponse} [response] MsgTransferResponse - */ - - /** - * Calls Transfer. - * @function transfer - * @memberof ibc.applications.transfer.v1.Msg - * @instance - * @param {ibc.applications.transfer.v1.IMsgTransfer} request MsgTransfer message or plain object - * @param {ibc.applications.transfer.v1.Msg.TransferCallback} callback Node-style callback called with the error, if any, and MsgTransferResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Msg.prototype.transfer = function transfer(request, callback) { - return this.rpcCall(transfer, $root.ibc.applications.transfer.v1.MsgTransfer, $root.ibc.applications.transfer.v1.MsgTransferResponse, request, callback); - }, "name", { value: "Transfer" }); - - /** - * Calls Transfer. - * @function transfer - * @memberof ibc.applications.transfer.v1.Msg - * @instance - * @param {ibc.applications.transfer.v1.IMsgTransfer} request MsgTransfer message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - return Msg; + /** + * Type enum. + * @name ibc.applications.interchain_accounts.v1.Type + * @enum {number} + * @property {number} TYPE_UNSPECIFIED=0 TYPE_UNSPECIFIED value + * @property {number} TYPE_EXECUTE_TX=1 TYPE_EXECUTE_TX value + */ + v1.Type = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "TYPE_EXECUTE_TX"] = 1; + return values; })(); - v1.MsgTransfer = (function() { + v1.InterchainAccountPacketData = (function() { /** - * Properties of a MsgTransfer. - * @memberof ibc.applications.transfer.v1 - * @interface IMsgTransfer - * @property {string|null} [source_port] MsgTransfer source_port - * @property {string|null} [source_channel] MsgTransfer source_channel - * @property {cosmos.base.v1beta1.ICoin|null} [token] MsgTransfer token - * @property {string|null} [sender] MsgTransfer sender - * @property {string|null} [receiver] MsgTransfer receiver - * @property {ibc.core.client.v1.IHeight|null} [timeout_height] MsgTransfer timeout_height - * @property {Long|null} [timeout_timestamp] MsgTransfer timeout_timestamp - * @property {string|null} [memo] MsgTransfer memo + * Properties of an InterchainAccountPacketData. + * @memberof ibc.applications.interchain_accounts.v1 + * @interface IInterchainAccountPacketData + * @property {ibc.applications.interchain_accounts.v1.Type|null} [type] InterchainAccountPacketData type + * @property {Uint8Array|null} [data] InterchainAccountPacketData data + * @property {string|null} [memo] InterchainAccountPacketData memo */ /** - * Constructs a new MsgTransfer. - * @memberof ibc.applications.transfer.v1 - * @classdesc Represents a MsgTransfer. - * @implements IMsgTransfer + * Constructs a new InterchainAccountPacketData. + * @memberof ibc.applications.interchain_accounts.v1 + * @classdesc Represents an InterchainAccountPacketData. + * @implements IInterchainAccountPacketData * @constructor - * @param {ibc.applications.transfer.v1.IMsgTransfer=} [properties] Properties to set + * @param {ibc.applications.interchain_accounts.v1.IInterchainAccountPacketData=} [properties] Properties to set */ - function MsgTransfer(properties) { + function InterchainAccountPacketData(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -30721,153 +37352,88 @@ export const ibc = $root.ibc = (() => { } /** - * MsgTransfer source_port. - * @member {string} source_port - * @memberof ibc.applications.transfer.v1.MsgTransfer - * @instance - */ - MsgTransfer.prototype.source_port = ""; - - /** - * MsgTransfer source_channel. - * @member {string} source_channel - * @memberof ibc.applications.transfer.v1.MsgTransfer - * @instance - */ - MsgTransfer.prototype.source_channel = ""; - - /** - * MsgTransfer token. - * @member {cosmos.base.v1beta1.ICoin|null|undefined} token - * @memberof ibc.applications.transfer.v1.MsgTransfer - * @instance - */ - MsgTransfer.prototype.token = null; - - /** - * MsgTransfer sender. - * @member {string} sender - * @memberof ibc.applications.transfer.v1.MsgTransfer - * @instance - */ - MsgTransfer.prototype.sender = ""; - - /** - * MsgTransfer receiver. - * @member {string} receiver - * @memberof ibc.applications.transfer.v1.MsgTransfer - * @instance - */ - MsgTransfer.prototype.receiver = ""; - - /** - * MsgTransfer timeout_height. - * @member {ibc.core.client.v1.IHeight|null|undefined} timeout_height - * @memberof ibc.applications.transfer.v1.MsgTransfer + * InterchainAccountPacketData type. + * @member {ibc.applications.interchain_accounts.v1.Type} type + * @memberof ibc.applications.interchain_accounts.v1.InterchainAccountPacketData * @instance */ - MsgTransfer.prototype.timeout_height = null; + InterchainAccountPacketData.prototype.type = 0; /** - * MsgTransfer timeout_timestamp. - * @member {Long} timeout_timestamp - * @memberof ibc.applications.transfer.v1.MsgTransfer + * InterchainAccountPacketData data. + * @member {Uint8Array} data + * @memberof ibc.applications.interchain_accounts.v1.InterchainAccountPacketData * @instance */ - MsgTransfer.prototype.timeout_timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + InterchainAccountPacketData.prototype.data = $util.newBuffer([]); /** - * MsgTransfer memo. + * InterchainAccountPacketData memo. * @member {string} memo - * @memberof ibc.applications.transfer.v1.MsgTransfer + * @memberof ibc.applications.interchain_accounts.v1.InterchainAccountPacketData * @instance */ - MsgTransfer.prototype.memo = ""; + InterchainAccountPacketData.prototype.memo = ""; /** - * Encodes the specified MsgTransfer message. Does not implicitly {@link ibc.applications.transfer.v1.MsgTransfer.verify|verify} messages. + * Encodes the specified InterchainAccountPacketData message. Does not implicitly {@link ibc.applications.interchain_accounts.v1.InterchainAccountPacketData.verify|verify} messages. * @function encode - * @memberof ibc.applications.transfer.v1.MsgTransfer + * @memberof ibc.applications.interchain_accounts.v1.InterchainAccountPacketData * @static - * @param {ibc.applications.transfer.v1.IMsgTransfer} message MsgTransfer message or plain object to encode + * @param {ibc.applications.interchain_accounts.v1.IInterchainAccountPacketData} message InterchainAccountPacketData message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgTransfer.encode = function encode(message, writer) { + InterchainAccountPacketData.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.source_port != null && Object.hasOwnProperty.call(message, "source_port")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.source_port); - if (message.source_channel != null && Object.hasOwnProperty.call(message, "source_channel")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.source_channel); - if (message.token != null && Object.hasOwnProperty.call(message, "token")) - $root.cosmos.base.v1beta1.Coin.encode(message.token, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.sender != null && Object.hasOwnProperty.call(message, "sender")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.sender); - if (message.receiver != null && Object.hasOwnProperty.call(message, "receiver")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.receiver); - if (message.timeout_height != null && Object.hasOwnProperty.call(message, "timeout_height")) - $root.ibc.core.client.v1.Height.encode(message.timeout_height, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.timeout_timestamp != null && Object.hasOwnProperty.call(message, "timeout_timestamp")) - writer.uint32(/* id 7, wireType 0 =*/56).uint64(message.timeout_timestamp); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.type); + if (message.data != null && Object.hasOwnProperty.call(message, "data")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.data); if (message.memo != null && Object.hasOwnProperty.call(message, "memo")) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.memo); + writer.uint32(/* id 3, wireType 2 =*/26).string(message.memo); return writer; }; /** - * Encodes the specified MsgTransfer message, length delimited. Does not implicitly {@link ibc.applications.transfer.v1.MsgTransfer.verify|verify} messages. + * Encodes the specified InterchainAccountPacketData message, length delimited. Does not implicitly {@link ibc.applications.interchain_accounts.v1.InterchainAccountPacketData.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.applications.transfer.v1.MsgTransfer + * @memberof ibc.applications.interchain_accounts.v1.InterchainAccountPacketData * @static - * @param {ibc.applications.transfer.v1.IMsgTransfer} message MsgTransfer message or plain object to encode + * @param {ibc.applications.interchain_accounts.v1.IInterchainAccountPacketData} message InterchainAccountPacketData message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgTransfer.encodeDelimited = function encodeDelimited(message, writer) { + InterchainAccountPacketData.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MsgTransfer message from the specified reader or buffer. + * Decodes an InterchainAccountPacketData message from the specified reader or buffer. * @function decode - * @memberof ibc.applications.transfer.v1.MsgTransfer + * @memberof ibc.applications.interchain_accounts.v1.InterchainAccountPacketData * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.transfer.v1.MsgTransfer} MsgTransfer + * @returns {ibc.applications.interchain_accounts.v1.InterchainAccountPacketData} InterchainAccountPacketData * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgTransfer.decode = function decode(reader, length) { + InterchainAccountPacketData.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.transfer.v1.MsgTransfer(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.interchain_accounts.v1.InterchainAccountPacketData(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.source_port = reader.string(); + message.type = reader.int32(); break; case 2: - message.source_channel = reader.string(); + message.data = reader.bytes(); break; case 3: - message.token = $root.cosmos.base.v1beta1.Coin.decode(reader, reader.uint32()); - break; - case 4: - message.sender = reader.string(); - break; - case 5: - message.receiver = reader.string(); - break; - case 6: - message.timeout_height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); - break; - case 7: - message.timeout_timestamp = reader.uint64(); - break; - case 8: message.memo = reader.string(); break; default: @@ -30879,57 +37445,43 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a MsgTransfer message from the specified reader or buffer, length delimited. + * Decodes an InterchainAccountPacketData message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.applications.transfer.v1.MsgTransfer + * @memberof ibc.applications.interchain_accounts.v1.InterchainAccountPacketData * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.transfer.v1.MsgTransfer} MsgTransfer + * @returns {ibc.applications.interchain_accounts.v1.InterchainAccountPacketData} InterchainAccountPacketData * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgTransfer.decodeDelimited = function decodeDelimited(reader) { + InterchainAccountPacketData.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MsgTransfer message. + * Verifies an InterchainAccountPacketData message. * @function verify - * @memberof ibc.applications.transfer.v1.MsgTransfer + * @memberof ibc.applications.interchain_accounts.v1.InterchainAccountPacketData * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MsgTransfer.verify = function verify(message) { + InterchainAccountPacketData.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.source_port != null && message.hasOwnProperty("source_port")) - if (!$util.isString(message.source_port)) - return "source_port: string expected"; - if (message.source_channel != null && message.hasOwnProperty("source_channel")) - if (!$util.isString(message.source_channel)) - return "source_channel: string expected"; - if (message.token != null && message.hasOwnProperty("token")) { - let error = $root.cosmos.base.v1beta1.Coin.verify(message.token); - if (error) - return "token." + error; - } - if (message.sender != null && message.hasOwnProperty("sender")) - if (!$util.isString(message.sender)) - return "sender: string expected"; - if (message.receiver != null && message.hasOwnProperty("receiver")) - if (!$util.isString(message.receiver)) - return "receiver: string expected"; - if (message.timeout_height != null && message.hasOwnProperty("timeout_height")) { - let error = $root.ibc.core.client.v1.Height.verify(message.timeout_height); - if (error) - return "timeout_height." + error; - } - if (message.timeout_timestamp != null && message.hasOwnProperty("timeout_timestamp")) - if (!$util.isInteger(message.timeout_timestamp) && !(message.timeout_timestamp && $util.isInteger(message.timeout_timestamp.low) && $util.isInteger(message.timeout_timestamp.high))) - return "timeout_timestamp: integer|Long expected"; + if (message.type != null && message.hasOwnProperty("type")) + switch (message.type) { + default: + return "type: enum value expected"; + case 0: + case 1: + break; + } + if (message.data != null && message.hasOwnProperty("data")) + if (!(message.data && typeof message.data.length === "number" || $util.isString(message.data))) + return "data: buffer expected"; if (message.memo != null && message.hasOwnProperty("memo")) if (!$util.isString(message.memo)) return "memo: string expected"; @@ -30937,130 +37489,103 @@ export const ibc = $root.ibc = (() => { }; /** - * Creates a MsgTransfer message from a plain object. Also converts values to their respective internal types. + * Creates an InterchainAccountPacketData message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.applications.transfer.v1.MsgTransfer + * @memberof ibc.applications.interchain_accounts.v1.InterchainAccountPacketData * @static * @param {Object.} object Plain object - * @returns {ibc.applications.transfer.v1.MsgTransfer} MsgTransfer + * @returns {ibc.applications.interchain_accounts.v1.InterchainAccountPacketData} InterchainAccountPacketData */ - MsgTransfer.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.transfer.v1.MsgTransfer) + InterchainAccountPacketData.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.interchain_accounts.v1.InterchainAccountPacketData) return object; - let message = new $root.ibc.applications.transfer.v1.MsgTransfer(); - if (object.source_port != null) - message.source_port = String(object.source_port); - if (object.source_channel != null) - message.source_channel = String(object.source_channel); - if (object.token != null) { - if (typeof object.token !== "object") - throw TypeError(".ibc.applications.transfer.v1.MsgTransfer.token: object expected"); - message.token = $root.cosmos.base.v1beta1.Coin.fromObject(object.token); - } - if (object.sender != null) - message.sender = String(object.sender); - if (object.receiver != null) - message.receiver = String(object.receiver); - if (object.timeout_height != null) { - if (typeof object.timeout_height !== "object") - throw TypeError(".ibc.applications.transfer.v1.MsgTransfer.timeout_height: object expected"); - message.timeout_height = $root.ibc.core.client.v1.Height.fromObject(object.timeout_height); + let message = new $root.ibc.applications.interchain_accounts.v1.InterchainAccountPacketData(); + switch (object.type) { + case "TYPE_UNSPECIFIED": + case 0: + message.type = 0; + break; + case "TYPE_EXECUTE_TX": + case 1: + message.type = 1; + break; } - if (object.timeout_timestamp != null) - if ($util.Long) - (message.timeout_timestamp = $util.Long.fromValue(object.timeout_timestamp)).unsigned = true; - else if (typeof object.timeout_timestamp === "string") - message.timeout_timestamp = parseInt(object.timeout_timestamp, 10); - else if (typeof object.timeout_timestamp === "number") - message.timeout_timestamp = object.timeout_timestamp; - else if (typeof object.timeout_timestamp === "object") - message.timeout_timestamp = new $util.LongBits(object.timeout_timestamp.low >>> 0, object.timeout_timestamp.high >>> 0).toNumber(true); + if (object.data != null) + if (typeof object.data === "string") + $util.base64.decode(object.data, message.data = $util.newBuffer($util.base64.length(object.data)), 0); + else if (object.data.length) + message.data = object.data; if (object.memo != null) message.memo = String(object.memo); return message; }; /** - * Creates a plain object from a MsgTransfer message. Also converts values to other types if specified. + * Creates a plain object from an InterchainAccountPacketData message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.applications.transfer.v1.MsgTransfer + * @memberof ibc.applications.interchain_accounts.v1.InterchainAccountPacketData * @static - * @param {ibc.applications.transfer.v1.MsgTransfer} message MsgTransfer + * @param {ibc.applications.interchain_accounts.v1.InterchainAccountPacketData} message InterchainAccountPacketData * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MsgTransfer.toObject = function toObject(message, options) { + InterchainAccountPacketData.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - object.source_port = ""; - object.source_channel = ""; - object.token = null; - object.sender = ""; - object.receiver = ""; - object.timeout_height = null; - if ($util.Long) { - let long = new $util.Long(0, 0, true); - object.timeout_timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.timeout_timestamp = options.longs === String ? "0" : 0; + object.type = options.enums === String ? "TYPE_UNSPECIFIED" : 0; + if (options.bytes === String) + object.data = ""; + else { + object.data = []; + if (options.bytes !== Array) + object.data = $util.newBuffer(object.data); + } object.memo = ""; } - if (message.source_port != null && message.hasOwnProperty("source_port")) - object.source_port = message.source_port; - if (message.source_channel != null && message.hasOwnProperty("source_channel")) - object.source_channel = message.source_channel; - if (message.token != null && message.hasOwnProperty("token")) - object.token = $root.cosmos.base.v1beta1.Coin.toObject(message.token, options); - if (message.sender != null && message.hasOwnProperty("sender")) - object.sender = message.sender; - if (message.receiver != null && message.hasOwnProperty("receiver")) - object.receiver = message.receiver; - if (message.timeout_height != null && message.hasOwnProperty("timeout_height")) - object.timeout_height = $root.ibc.core.client.v1.Height.toObject(message.timeout_height, options); - if (message.timeout_timestamp != null && message.hasOwnProperty("timeout_timestamp")) - if (typeof message.timeout_timestamp === "number") - object.timeout_timestamp = options.longs === String ? String(message.timeout_timestamp) : message.timeout_timestamp; - else - object.timeout_timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timeout_timestamp) : options.longs === Number ? new $util.LongBits(message.timeout_timestamp.low >>> 0, message.timeout_timestamp.high >>> 0).toNumber(true) : message.timeout_timestamp; + if (message.type != null && message.hasOwnProperty("type")) + object.type = options.enums === String ? $root.ibc.applications.interchain_accounts.v1.Type[message.type] : message.type; + if (message.data != null && message.hasOwnProperty("data")) + object.data = options.bytes === String ? $util.base64.encode(message.data, 0, message.data.length) : options.bytes === Array ? Array.prototype.slice.call(message.data) : message.data; if (message.memo != null && message.hasOwnProperty("memo")) object.memo = message.memo; return object; }; /** - * Converts this MsgTransfer to JSON. + * Converts this InterchainAccountPacketData to JSON. * @function toJSON - * @memberof ibc.applications.transfer.v1.MsgTransfer + * @memberof ibc.applications.interchain_accounts.v1.InterchainAccountPacketData * @instance * @returns {Object.} JSON object */ - MsgTransfer.prototype.toJSON = function toJSON() { + InterchainAccountPacketData.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MsgTransfer; + return InterchainAccountPacketData; })(); - v1.MsgTransferResponse = (function() { + v1.CosmosTx = (function() { /** - * Properties of a MsgTransferResponse. - * @memberof ibc.applications.transfer.v1 - * @interface IMsgTransferResponse - * @property {Long|null} [sequence] MsgTransferResponse sequence + * Properties of a CosmosTx. + * @memberof ibc.applications.interchain_accounts.v1 + * @interface ICosmosTx + * @property {Array.|null} [messages] CosmosTx messages */ /** - * Constructs a new MsgTransferResponse. - * @memberof ibc.applications.transfer.v1 - * @classdesc Represents a MsgTransferResponse. - * @implements IMsgTransferResponse + * Constructs a new CosmosTx. + * @memberof ibc.applications.interchain_accounts.v1 + * @classdesc Represents a CosmosTx. + * @implements ICosmosTx * @constructor - * @param {ibc.applications.transfer.v1.IMsgTransferResponse=} [properties] Properties to set + * @param {ibc.applications.interchain_accounts.v1.ICosmosTx=} [properties] Properties to set */ - function MsgTransferResponse(properties) { + function CosmosTx(properties) { + this.messages = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -31068,63 +37593,66 @@ export const ibc = $root.ibc = (() => { } /** - * MsgTransferResponse sequence. - * @member {Long} sequence - * @memberof ibc.applications.transfer.v1.MsgTransferResponse + * CosmosTx messages. + * @member {Array.} messages + * @memberof ibc.applications.interchain_accounts.v1.CosmosTx * @instance */ - MsgTransferResponse.prototype.sequence = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + CosmosTx.prototype.messages = $util.emptyArray; /** - * Encodes the specified MsgTransferResponse message. Does not implicitly {@link ibc.applications.transfer.v1.MsgTransferResponse.verify|verify} messages. + * Encodes the specified CosmosTx message. Does not implicitly {@link ibc.applications.interchain_accounts.v1.CosmosTx.verify|verify} messages. * @function encode - * @memberof ibc.applications.transfer.v1.MsgTransferResponse + * @memberof ibc.applications.interchain_accounts.v1.CosmosTx * @static - * @param {ibc.applications.transfer.v1.IMsgTransferResponse} message MsgTransferResponse message or plain object to encode + * @param {ibc.applications.interchain_accounts.v1.ICosmosTx} message CosmosTx message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgTransferResponse.encode = function encode(message, writer) { + CosmosTx.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.sequence != null && Object.hasOwnProperty.call(message, "sequence")) - writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.sequence); + if (message.messages != null && message.messages.length) + for (let i = 0; i < message.messages.length; ++i) + $root.google.protobuf.Any.encode(message.messages[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified MsgTransferResponse message, length delimited. Does not implicitly {@link ibc.applications.transfer.v1.MsgTransferResponse.verify|verify} messages. + * Encodes the specified CosmosTx message, length delimited. Does not implicitly {@link ibc.applications.interchain_accounts.v1.CosmosTx.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.applications.transfer.v1.MsgTransferResponse + * @memberof ibc.applications.interchain_accounts.v1.CosmosTx * @static - * @param {ibc.applications.transfer.v1.IMsgTransferResponse} message MsgTransferResponse message or plain object to encode + * @param {ibc.applications.interchain_accounts.v1.ICosmosTx} message CosmosTx message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgTransferResponse.encodeDelimited = function encodeDelimited(message, writer) { + CosmosTx.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MsgTransferResponse message from the specified reader or buffer. + * Decodes a CosmosTx message from the specified reader or buffer. * @function decode - * @memberof ibc.applications.transfer.v1.MsgTransferResponse + * @memberof ibc.applications.interchain_accounts.v1.CosmosTx * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.transfer.v1.MsgTransferResponse} MsgTransferResponse + * @returns {ibc.applications.interchain_accounts.v1.CosmosTx} CosmosTx * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgTransferResponse.decode = function decode(reader, length) { + CosmosTx.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.transfer.v1.MsgTransferResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.interchain_accounts.v1.CosmosTx(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.sequence = reader.uint64(); + if (!(message.messages && message.messages.length)) + message.messages = []; + message.messages.push($root.google.protobuf.Any.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -31135,122 +37663,125 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a MsgTransferResponse message from the specified reader or buffer, length delimited. + * Decodes a CosmosTx message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.applications.transfer.v1.MsgTransferResponse + * @memberof ibc.applications.interchain_accounts.v1.CosmosTx * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.transfer.v1.MsgTransferResponse} MsgTransferResponse + * @returns {ibc.applications.interchain_accounts.v1.CosmosTx} CosmosTx * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgTransferResponse.decodeDelimited = function decodeDelimited(reader) { + CosmosTx.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MsgTransferResponse message. + * Verifies a CosmosTx message. * @function verify - * @memberof ibc.applications.transfer.v1.MsgTransferResponse + * @memberof ibc.applications.interchain_accounts.v1.CosmosTx * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MsgTransferResponse.verify = function verify(message) { + CosmosTx.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.sequence != null && message.hasOwnProperty("sequence")) - if (!$util.isInteger(message.sequence) && !(message.sequence && $util.isInteger(message.sequence.low) && $util.isInteger(message.sequence.high))) - return "sequence: integer|Long expected"; + if (message.messages != null && message.hasOwnProperty("messages")) { + if (!Array.isArray(message.messages)) + return "messages: array expected"; + for (let i = 0; i < message.messages.length; ++i) { + let error = $root.google.protobuf.Any.verify(message.messages[i]); + if (error) + return "messages." + error; + } + } return null; }; /** - * Creates a MsgTransferResponse message from a plain object. Also converts values to their respective internal types. + * Creates a CosmosTx message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.applications.transfer.v1.MsgTransferResponse + * @memberof ibc.applications.interchain_accounts.v1.CosmosTx * @static * @param {Object.} object Plain object - * @returns {ibc.applications.transfer.v1.MsgTransferResponse} MsgTransferResponse + * @returns {ibc.applications.interchain_accounts.v1.CosmosTx} CosmosTx */ - MsgTransferResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.transfer.v1.MsgTransferResponse) + CosmosTx.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.interchain_accounts.v1.CosmosTx) return object; - let message = new $root.ibc.applications.transfer.v1.MsgTransferResponse(); - if (object.sequence != null) - if ($util.Long) - (message.sequence = $util.Long.fromValue(object.sequence)).unsigned = true; - else if (typeof object.sequence === "string") - message.sequence = parseInt(object.sequence, 10); - else if (typeof object.sequence === "number") - message.sequence = object.sequence; - else if (typeof object.sequence === "object") - message.sequence = new $util.LongBits(object.sequence.low >>> 0, object.sequence.high >>> 0).toNumber(true); + let message = new $root.ibc.applications.interchain_accounts.v1.CosmosTx(); + if (object.messages) { + if (!Array.isArray(object.messages)) + throw TypeError(".ibc.applications.interchain_accounts.v1.CosmosTx.messages: array expected"); + message.messages = []; + for (let i = 0; i < object.messages.length; ++i) { + if (typeof object.messages[i] !== "object") + throw TypeError(".ibc.applications.interchain_accounts.v1.CosmosTx.messages: object expected"); + message.messages[i] = $root.google.protobuf.Any.fromObject(object.messages[i]); + } + } return message; }; /** - * Creates a plain object from a MsgTransferResponse message. Also converts values to other types if specified. + * Creates a plain object from a CosmosTx message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.applications.transfer.v1.MsgTransferResponse + * @memberof ibc.applications.interchain_accounts.v1.CosmosTx * @static - * @param {ibc.applications.transfer.v1.MsgTransferResponse} message MsgTransferResponse + * @param {ibc.applications.interchain_accounts.v1.CosmosTx} message CosmosTx * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MsgTransferResponse.toObject = function toObject(message, options) { + CosmosTx.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) - if ($util.Long) { - let long = new $util.Long(0, 0, true); - object.sequence = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.sequence = options.longs === String ? "0" : 0; - if (message.sequence != null && message.hasOwnProperty("sequence")) - if (typeof message.sequence === "number") - object.sequence = options.longs === String ? String(message.sequence) : message.sequence; - else - object.sequence = options.longs === String ? $util.Long.prototype.toString.call(message.sequence) : options.longs === Number ? new $util.LongBits(message.sequence.low >>> 0, message.sequence.high >>> 0).toNumber(true) : message.sequence; + if (options.arrays || options.defaults) + object.messages = []; + if (message.messages && message.messages.length) { + object.messages = []; + for (let j = 0; j < message.messages.length; ++j) + object.messages[j] = $root.google.protobuf.Any.toObject(message.messages[j], options); + } return object; }; /** - * Converts this MsgTransferResponse to JSON. + * Converts this CosmosTx to JSON. * @function toJSON - * @memberof ibc.applications.transfer.v1.MsgTransferResponse + * @memberof ibc.applications.interchain_accounts.v1.CosmosTx * @instance * @returns {Object.} JSON object */ - MsgTransferResponse.prototype.toJSON = function toJSON() { + CosmosTx.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MsgTransferResponse; + return CosmosTx; })(); - v1.DenomTrace = (function() { + v1.InterchainAccount = (function() { /** - * Properties of a DenomTrace. - * @memberof ibc.applications.transfer.v1 - * @interface IDenomTrace - * @property {string|null} [path] DenomTrace path - * @property {string|null} [base_denom] DenomTrace base_denom + * Properties of an InterchainAccount. + * @memberof ibc.applications.interchain_accounts.v1 + * @interface IInterchainAccount + * @property {cosmos.auth.v1beta1.IBaseAccount|null} [base_account] InterchainAccount base_account + * @property {string|null} [account_owner] InterchainAccount account_owner */ /** - * Constructs a new DenomTrace. - * @memberof ibc.applications.transfer.v1 - * @classdesc Represents a DenomTrace. - * @implements IDenomTrace + * Constructs a new InterchainAccount. + * @memberof ibc.applications.interchain_accounts.v1 + * @classdesc Represents an InterchainAccount. + * @implements IInterchainAccount * @constructor - * @param {ibc.applications.transfer.v1.IDenomTrace=} [properties] Properties to set + * @param {ibc.applications.interchain_accounts.v1.IInterchainAccount=} [properties] Properties to set */ - function DenomTrace(properties) { + function InterchainAccount(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -31258,76 +37789,76 @@ export const ibc = $root.ibc = (() => { } /** - * DenomTrace path. - * @member {string} path - * @memberof ibc.applications.transfer.v1.DenomTrace + * InterchainAccount base_account. + * @member {cosmos.auth.v1beta1.IBaseAccount|null|undefined} base_account + * @memberof ibc.applications.interchain_accounts.v1.InterchainAccount * @instance */ - DenomTrace.prototype.path = ""; + InterchainAccount.prototype.base_account = null; /** - * DenomTrace base_denom. - * @member {string} base_denom - * @memberof ibc.applications.transfer.v1.DenomTrace + * InterchainAccount account_owner. + * @member {string} account_owner + * @memberof ibc.applications.interchain_accounts.v1.InterchainAccount * @instance */ - DenomTrace.prototype.base_denom = ""; + InterchainAccount.prototype.account_owner = ""; /** - * Encodes the specified DenomTrace message. Does not implicitly {@link ibc.applications.transfer.v1.DenomTrace.verify|verify} messages. + * Encodes the specified InterchainAccount message. Does not implicitly {@link ibc.applications.interchain_accounts.v1.InterchainAccount.verify|verify} messages. * @function encode - * @memberof ibc.applications.transfer.v1.DenomTrace + * @memberof ibc.applications.interchain_accounts.v1.InterchainAccount * @static - * @param {ibc.applications.transfer.v1.IDenomTrace} message DenomTrace message or plain object to encode + * @param {ibc.applications.interchain_accounts.v1.IInterchainAccount} message InterchainAccount message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DenomTrace.encode = function encode(message, writer) { + InterchainAccount.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.path != null && Object.hasOwnProperty.call(message, "path")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.path); - if (message.base_denom != null && Object.hasOwnProperty.call(message, "base_denom")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.base_denom); + if (message.base_account != null && Object.hasOwnProperty.call(message, "base_account")) + $root.cosmos.auth.v1beta1.BaseAccount.encode(message.base_account, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.account_owner != null && Object.hasOwnProperty.call(message, "account_owner")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.account_owner); return writer; }; /** - * Encodes the specified DenomTrace message, length delimited. Does not implicitly {@link ibc.applications.transfer.v1.DenomTrace.verify|verify} messages. + * Encodes the specified InterchainAccount message, length delimited. Does not implicitly {@link ibc.applications.interchain_accounts.v1.InterchainAccount.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.applications.transfer.v1.DenomTrace + * @memberof ibc.applications.interchain_accounts.v1.InterchainAccount * @static - * @param {ibc.applications.transfer.v1.IDenomTrace} message DenomTrace message or plain object to encode + * @param {ibc.applications.interchain_accounts.v1.IInterchainAccount} message InterchainAccount message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DenomTrace.encodeDelimited = function encodeDelimited(message, writer) { + InterchainAccount.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DenomTrace message from the specified reader or buffer. + * Decodes an InterchainAccount message from the specified reader or buffer. * @function decode - * @memberof ibc.applications.transfer.v1.DenomTrace + * @memberof ibc.applications.interchain_accounts.v1.InterchainAccount * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.transfer.v1.DenomTrace} DenomTrace + * @returns {ibc.applications.interchain_accounts.v1.InterchainAccount} InterchainAccount * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DenomTrace.decode = function decode(reader, length) { + InterchainAccount.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.transfer.v1.DenomTrace(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.interchain_accounts.v1.InterchainAccount(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.path = reader.string(); + message.base_account = $root.cosmos.auth.v1beta1.BaseAccount.decode(reader, reader.uint32()); break; case 2: - message.base_denom = reader.string(); + message.account_owner = reader.string(); break; default: reader.skipType(tag & 7); @@ -31338,117 +37869,126 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a DenomTrace message from the specified reader or buffer, length delimited. + * Decodes an InterchainAccount message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.applications.transfer.v1.DenomTrace + * @memberof ibc.applications.interchain_accounts.v1.InterchainAccount * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.transfer.v1.DenomTrace} DenomTrace + * @returns {ibc.applications.interchain_accounts.v1.InterchainAccount} InterchainAccount * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DenomTrace.decodeDelimited = function decodeDelimited(reader) { + InterchainAccount.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DenomTrace message. + * Verifies an InterchainAccount message. * @function verify - * @memberof ibc.applications.transfer.v1.DenomTrace + * @memberof ibc.applications.interchain_accounts.v1.InterchainAccount * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DenomTrace.verify = function verify(message) { + InterchainAccount.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.path != null && message.hasOwnProperty("path")) - if (!$util.isString(message.path)) - return "path: string expected"; - if (message.base_denom != null && message.hasOwnProperty("base_denom")) - if (!$util.isString(message.base_denom)) - return "base_denom: string expected"; + if (message.base_account != null && message.hasOwnProperty("base_account")) { + let error = $root.cosmos.auth.v1beta1.BaseAccount.verify(message.base_account); + if (error) + return "base_account." + error; + } + if (message.account_owner != null && message.hasOwnProperty("account_owner")) + if (!$util.isString(message.account_owner)) + return "account_owner: string expected"; return null; }; /** - * Creates a DenomTrace message from a plain object. Also converts values to their respective internal types. + * Creates an InterchainAccount message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.applications.transfer.v1.DenomTrace + * @memberof ibc.applications.interchain_accounts.v1.InterchainAccount * @static * @param {Object.} object Plain object - * @returns {ibc.applications.transfer.v1.DenomTrace} DenomTrace + * @returns {ibc.applications.interchain_accounts.v1.InterchainAccount} InterchainAccount */ - DenomTrace.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.transfer.v1.DenomTrace) + InterchainAccount.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.interchain_accounts.v1.InterchainAccount) return object; - let message = new $root.ibc.applications.transfer.v1.DenomTrace(); - if (object.path != null) - message.path = String(object.path); - if (object.base_denom != null) - message.base_denom = String(object.base_denom); + let message = new $root.ibc.applications.interchain_accounts.v1.InterchainAccount(); + if (object.base_account != null) { + if (typeof object.base_account !== "object") + throw TypeError(".ibc.applications.interchain_accounts.v1.InterchainAccount.base_account: object expected"); + message.base_account = $root.cosmos.auth.v1beta1.BaseAccount.fromObject(object.base_account); + } + if (object.account_owner != null) + message.account_owner = String(object.account_owner); return message; }; /** - * Creates a plain object from a DenomTrace message. Also converts values to other types if specified. + * Creates a plain object from an InterchainAccount message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.applications.transfer.v1.DenomTrace + * @memberof ibc.applications.interchain_accounts.v1.InterchainAccount * @static - * @param {ibc.applications.transfer.v1.DenomTrace} message DenomTrace + * @param {ibc.applications.interchain_accounts.v1.InterchainAccount} message InterchainAccount * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DenomTrace.toObject = function toObject(message, options) { + InterchainAccount.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - object.path = ""; - object.base_denom = ""; + object.base_account = null; + object.account_owner = ""; } - if (message.path != null && message.hasOwnProperty("path")) - object.path = message.path; - if (message.base_denom != null && message.hasOwnProperty("base_denom")) - object.base_denom = message.base_denom; + if (message.base_account != null && message.hasOwnProperty("base_account")) + object.base_account = $root.cosmos.auth.v1beta1.BaseAccount.toObject(message.base_account, options); + if (message.account_owner != null && message.hasOwnProperty("account_owner")) + object.account_owner = message.account_owner; return object; }; /** - * Converts this DenomTrace to JSON. + * Converts this InterchainAccount to JSON. * @function toJSON - * @memberof ibc.applications.transfer.v1.DenomTrace + * @memberof ibc.applications.interchain_accounts.v1.InterchainAccount * @instance * @returns {Object.} JSON object */ - DenomTrace.prototype.toJSON = function toJSON() { + InterchainAccount.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DenomTrace; + return InterchainAccount; })(); - v1.Params = (function() { + v1.Metadata = (function() { /** - * Properties of a Params. - * @memberof ibc.applications.transfer.v1 - * @interface IParams - * @property {boolean|null} [send_enabled] Params send_enabled - * @property {boolean|null} [receive_enabled] Params receive_enabled + * Properties of a Metadata. + * @memberof ibc.applications.interchain_accounts.v1 + * @interface IMetadata + * @property {string|null} [version] Metadata version + * @property {string|null} [controller_connection_id] Metadata controller_connection_id + * @property {string|null} [host_connection_id] Metadata host_connection_id + * @property {string|null} [address] Metadata address + * @property {string|null} [encoding] Metadata encoding + * @property {string|null} [tx_type] Metadata tx_type */ /** - * Constructs a new Params. - * @memberof ibc.applications.transfer.v1 - * @classdesc Represents a Params. - * @implements IParams + * Constructs a new Metadata. + * @memberof ibc.applications.interchain_accounts.v1 + * @classdesc Represents a Metadata. + * @implements IMetadata * @constructor - * @param {ibc.applications.transfer.v1.IParams=} [properties] Properties to set + * @param {ibc.applications.interchain_accounts.v1.IMetadata=} [properties] Properties to set */ - function Params(properties) { + function Metadata(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -31456,76 +37996,128 @@ export const ibc = $root.ibc = (() => { } /** - * Params send_enabled. - * @member {boolean} send_enabled - * @memberof ibc.applications.transfer.v1.Params + * Metadata version. + * @member {string} version + * @memberof ibc.applications.interchain_accounts.v1.Metadata * @instance */ - Params.prototype.send_enabled = false; + Metadata.prototype.version = ""; /** - * Params receive_enabled. - * @member {boolean} receive_enabled - * @memberof ibc.applications.transfer.v1.Params + * Metadata controller_connection_id. + * @member {string} controller_connection_id + * @memberof ibc.applications.interchain_accounts.v1.Metadata * @instance */ - Params.prototype.receive_enabled = false; + Metadata.prototype.controller_connection_id = ""; /** - * Encodes the specified Params message. Does not implicitly {@link ibc.applications.transfer.v1.Params.verify|verify} messages. + * Metadata host_connection_id. + * @member {string} host_connection_id + * @memberof ibc.applications.interchain_accounts.v1.Metadata + * @instance + */ + Metadata.prototype.host_connection_id = ""; + + /** + * Metadata address. + * @member {string} address + * @memberof ibc.applications.interchain_accounts.v1.Metadata + * @instance + */ + Metadata.prototype.address = ""; + + /** + * Metadata encoding. + * @member {string} encoding + * @memberof ibc.applications.interchain_accounts.v1.Metadata + * @instance + */ + Metadata.prototype.encoding = ""; + + /** + * Metadata tx_type. + * @member {string} tx_type + * @memberof ibc.applications.interchain_accounts.v1.Metadata + * @instance + */ + Metadata.prototype.tx_type = ""; + + /** + * Encodes the specified Metadata message. Does not implicitly {@link ibc.applications.interchain_accounts.v1.Metadata.verify|verify} messages. * @function encode - * @memberof ibc.applications.transfer.v1.Params + * @memberof ibc.applications.interchain_accounts.v1.Metadata * @static - * @param {ibc.applications.transfer.v1.IParams} message Params message or plain object to encode + * @param {ibc.applications.interchain_accounts.v1.IMetadata} message Metadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Params.encode = function encode(message, writer) { + Metadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.send_enabled != null && Object.hasOwnProperty.call(message, "send_enabled")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.send_enabled); - if (message.receive_enabled != null && Object.hasOwnProperty.call(message, "receive_enabled")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.receive_enabled); + if (message.version != null && Object.hasOwnProperty.call(message, "version")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.version); + if (message.controller_connection_id != null && Object.hasOwnProperty.call(message, "controller_connection_id")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.controller_connection_id); + if (message.host_connection_id != null && Object.hasOwnProperty.call(message, "host_connection_id")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.host_connection_id); + if (message.address != null && Object.hasOwnProperty.call(message, "address")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.address); + if (message.encoding != null && Object.hasOwnProperty.call(message, "encoding")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.encoding); + if (message.tx_type != null && Object.hasOwnProperty.call(message, "tx_type")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.tx_type); return writer; }; /** - * Encodes the specified Params message, length delimited. Does not implicitly {@link ibc.applications.transfer.v1.Params.verify|verify} messages. + * Encodes the specified Metadata message, length delimited. Does not implicitly {@link ibc.applications.interchain_accounts.v1.Metadata.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.applications.transfer.v1.Params + * @memberof ibc.applications.interchain_accounts.v1.Metadata * @static - * @param {ibc.applications.transfer.v1.IParams} message Params message or plain object to encode + * @param {ibc.applications.interchain_accounts.v1.IMetadata} message Metadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Params.encodeDelimited = function encodeDelimited(message, writer) { + Metadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Params message from the specified reader or buffer. + * Decodes a Metadata message from the specified reader or buffer. * @function decode - * @memberof ibc.applications.transfer.v1.Params + * @memberof ibc.applications.interchain_accounts.v1.Metadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.transfer.v1.Params} Params + * @returns {ibc.applications.interchain_accounts.v1.Metadata} Metadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Params.decode = function decode(reader, length) { + Metadata.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.transfer.v1.Params(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.interchain_accounts.v1.Metadata(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.send_enabled = reader.bool(); + message.version = reader.string(); break; case 2: - message.receive_enabled = reader.bool(); + message.controller_connection_id = reader.string(); + break; + case 3: + message.host_connection_id = reader.string(); + break; + case 4: + message.address = reader.string(); + break; + case 5: + message.encoding = reader.string(); + break; + case 6: + message.tx_type = reader.string(); break; default: reader.skipType(tag & 7); @@ -31536,1564 +38128,2144 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a Params message from the specified reader or buffer, length delimited. + * Decodes a Metadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.applications.transfer.v1.Params + * @memberof ibc.applications.interchain_accounts.v1.Metadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.transfer.v1.Params} Params + * @returns {ibc.applications.interchain_accounts.v1.Metadata} Metadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Params.decodeDelimited = function decodeDelimited(reader) { + Metadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Params message. + * Verifies a Metadata message. * @function verify - * @memberof ibc.applications.transfer.v1.Params + * @memberof ibc.applications.interchain_accounts.v1.Metadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Params.verify = function verify(message) { + Metadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.send_enabled != null && message.hasOwnProperty("send_enabled")) - if (typeof message.send_enabled !== "boolean") - return "send_enabled: boolean expected"; - if (message.receive_enabled != null && message.hasOwnProperty("receive_enabled")) - if (typeof message.receive_enabled !== "boolean") - return "receive_enabled: boolean expected"; + if (message.version != null && message.hasOwnProperty("version")) + if (!$util.isString(message.version)) + return "version: string expected"; + if (message.controller_connection_id != null && message.hasOwnProperty("controller_connection_id")) + if (!$util.isString(message.controller_connection_id)) + return "controller_connection_id: string expected"; + if (message.host_connection_id != null && message.hasOwnProperty("host_connection_id")) + if (!$util.isString(message.host_connection_id)) + return "host_connection_id: string expected"; + if (message.address != null && message.hasOwnProperty("address")) + if (!$util.isString(message.address)) + return "address: string expected"; + if (message.encoding != null && message.hasOwnProperty("encoding")) + if (!$util.isString(message.encoding)) + return "encoding: string expected"; + if (message.tx_type != null && message.hasOwnProperty("tx_type")) + if (!$util.isString(message.tx_type)) + return "tx_type: string expected"; return null; }; /** - * Creates a Params message from a plain object. Also converts values to their respective internal types. + * Creates a Metadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.applications.transfer.v1.Params + * @memberof ibc.applications.interchain_accounts.v1.Metadata * @static * @param {Object.} object Plain object - * @returns {ibc.applications.transfer.v1.Params} Params + * @returns {ibc.applications.interchain_accounts.v1.Metadata} Metadata */ - Params.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.transfer.v1.Params) + Metadata.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.interchain_accounts.v1.Metadata) return object; - let message = new $root.ibc.applications.transfer.v1.Params(); - if (object.send_enabled != null) - message.send_enabled = Boolean(object.send_enabled); - if (object.receive_enabled != null) - message.receive_enabled = Boolean(object.receive_enabled); + let message = new $root.ibc.applications.interchain_accounts.v1.Metadata(); + if (object.version != null) + message.version = String(object.version); + if (object.controller_connection_id != null) + message.controller_connection_id = String(object.controller_connection_id); + if (object.host_connection_id != null) + message.host_connection_id = String(object.host_connection_id); + if (object.address != null) + message.address = String(object.address); + if (object.encoding != null) + message.encoding = String(object.encoding); + if (object.tx_type != null) + message.tx_type = String(object.tx_type); return message; }; /** - * Creates a plain object from a Params message. Also converts values to other types if specified. + * Creates a plain object from a Metadata message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.applications.transfer.v1.Params + * @memberof ibc.applications.interchain_accounts.v1.Metadata * @static - * @param {ibc.applications.transfer.v1.Params} message Params + * @param {ibc.applications.interchain_accounts.v1.Metadata} message Metadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Params.toObject = function toObject(message, options) { + Metadata.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - object.send_enabled = false; - object.receive_enabled = false; + object.version = ""; + object.controller_connection_id = ""; + object.host_connection_id = ""; + object.address = ""; + object.encoding = ""; + object.tx_type = ""; } - if (message.send_enabled != null && message.hasOwnProperty("send_enabled")) - object.send_enabled = message.send_enabled; - if (message.receive_enabled != null && message.hasOwnProperty("receive_enabled")) - object.receive_enabled = message.receive_enabled; + if (message.version != null && message.hasOwnProperty("version")) + object.version = message.version; + if (message.controller_connection_id != null && message.hasOwnProperty("controller_connection_id")) + object.controller_connection_id = message.controller_connection_id; + if (message.host_connection_id != null && message.hasOwnProperty("host_connection_id")) + object.host_connection_id = message.host_connection_id; + if (message.address != null && message.hasOwnProperty("address")) + object.address = message.address; + if (message.encoding != null && message.hasOwnProperty("encoding")) + object.encoding = message.encoding; + if (message.tx_type != null && message.hasOwnProperty("tx_type")) + object.tx_type = message.tx_type; return object; }; /** - * Converts this Params to JSON. + * Converts this Metadata to JSON. * @function toJSON - * @memberof ibc.applications.transfer.v1.Params + * @memberof ibc.applications.interchain_accounts.v1.Metadata * @instance * @returns {Object.} JSON object */ - Params.prototype.toJSON = function toJSON() { + Metadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Params; + return Metadata; })(); - v1.Query = (function() { + return v1; + })(); - /** - * Constructs a new Query service. - * @memberof ibc.applications.transfer.v1 - * @classdesc Represents a Query - * @extends $protobuf.rpc.Service - * @constructor - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - */ - function Query(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } + interchain_accounts.genesis = (function() { - (Query.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Query; + /** + * Namespace genesis. + * @memberof ibc.applications.interchain_accounts + * @namespace + */ + const genesis = {}; - /** - * Callback as used by {@link ibc.applications.transfer.v1.Query#denomTrace}. - * @memberof ibc.applications.transfer.v1.Query - * @typedef DenomTraceCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.applications.transfer.v1.QueryDenomTraceResponse} [response] QueryDenomTraceResponse - */ + genesis.v1 = (function() { /** - * Calls DenomTrace. - * @function denomTrace - * @memberof ibc.applications.transfer.v1.Query - * @instance - * @param {ibc.applications.transfer.v1.IQueryDenomTraceRequest} request QueryDenomTraceRequest message or plain object - * @param {ibc.applications.transfer.v1.Query.DenomTraceCallback} callback Node-style callback called with the error, if any, and QueryDenomTraceResponse - * @returns {undefined} - * @variation 1 + * Namespace v1. + * @memberof ibc.applications.interchain_accounts.genesis + * @namespace */ - Object.defineProperty(Query.prototype.denomTrace = function denomTrace(request, callback) { - return this.rpcCall(denomTrace, $root.ibc.applications.transfer.v1.QueryDenomTraceRequest, $root.ibc.applications.transfer.v1.QueryDenomTraceResponse, request, callback); - }, "name", { value: "DenomTrace" }); + const v1 = {}; - /** - * Calls DenomTrace. - * @function denomTrace - * @memberof ibc.applications.transfer.v1.Query - * @instance - * @param {ibc.applications.transfer.v1.IQueryDenomTraceRequest} request QueryDenomTraceRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + v1.GenesisState = (function() { - /** - * Callback as used by {@link ibc.applications.transfer.v1.Query#denomTraces}. - * @memberof ibc.applications.transfer.v1.Query - * @typedef DenomTracesCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.applications.transfer.v1.QueryDenomTracesResponse} [response] QueryDenomTracesResponse - */ + /** + * Properties of a GenesisState. + * @memberof ibc.applications.interchain_accounts.genesis.v1 + * @interface IGenesisState + * @property {ibc.applications.interchain_accounts.genesis.v1.IControllerGenesisState|null} [controller_genesis_state] GenesisState controller_genesis_state + * @property {ibc.applications.interchain_accounts.genesis.v1.IHostGenesisState|null} [host_genesis_state] GenesisState host_genesis_state + */ - /** - * Calls DenomTraces. - * @function denomTraces - * @memberof ibc.applications.transfer.v1.Query - * @instance - * @param {ibc.applications.transfer.v1.IQueryDenomTracesRequest} request QueryDenomTracesRequest message or plain object - * @param {ibc.applications.transfer.v1.Query.DenomTracesCallback} callback Node-style callback called with the error, if any, and QueryDenomTracesResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Query.prototype.denomTraces = function denomTraces(request, callback) { - return this.rpcCall(denomTraces, $root.ibc.applications.transfer.v1.QueryDenomTracesRequest, $root.ibc.applications.transfer.v1.QueryDenomTracesResponse, request, callback); - }, "name", { value: "DenomTraces" }); + /** + * Constructs a new GenesisState. + * @memberof ibc.applications.interchain_accounts.genesis.v1 + * @classdesc Represents a GenesisState. + * @implements IGenesisState + * @constructor + * @param {ibc.applications.interchain_accounts.genesis.v1.IGenesisState=} [properties] Properties to set + */ + function GenesisState(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Calls DenomTraces. - * @function denomTraces - * @memberof ibc.applications.transfer.v1.Query - * @instance - * @param {ibc.applications.transfer.v1.IQueryDenomTracesRequest} request QueryDenomTracesRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * GenesisState controller_genesis_state. + * @member {ibc.applications.interchain_accounts.genesis.v1.IControllerGenesisState|null|undefined} controller_genesis_state + * @memberof ibc.applications.interchain_accounts.genesis.v1.GenesisState + * @instance + */ + GenesisState.prototype.controller_genesis_state = null; - /** - * Callback as used by {@link ibc.applications.transfer.v1.Query#params}. - * @memberof ibc.applications.transfer.v1.Query - * @typedef ParamsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.applications.transfer.v1.QueryParamsResponse} [response] QueryParamsResponse - */ + /** + * GenesisState host_genesis_state. + * @member {ibc.applications.interchain_accounts.genesis.v1.IHostGenesisState|null|undefined} host_genesis_state + * @memberof ibc.applications.interchain_accounts.genesis.v1.GenesisState + * @instance + */ + GenesisState.prototype.host_genesis_state = null; - /** - * Calls Params. - * @function params - * @memberof ibc.applications.transfer.v1.Query - * @instance - * @param {ibc.applications.transfer.v1.IQueryParamsRequest} request QueryParamsRequest message or plain object - * @param {ibc.applications.transfer.v1.Query.ParamsCallback} callback Node-style callback called with the error, if any, and QueryParamsResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Query.prototype.params = function params(request, callback) { - return this.rpcCall(params, $root.ibc.applications.transfer.v1.QueryParamsRequest, $root.ibc.applications.transfer.v1.QueryParamsResponse, request, callback); - }, "name", { value: "Params" }); + /** + * Encodes the specified GenesisState message. Does not implicitly {@link ibc.applications.interchain_accounts.genesis.v1.GenesisState.verify|verify} messages. + * @function encode + * @memberof ibc.applications.interchain_accounts.genesis.v1.GenesisState + * @static + * @param {ibc.applications.interchain_accounts.genesis.v1.IGenesisState} message GenesisState message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GenesisState.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.controller_genesis_state != null && Object.hasOwnProperty.call(message, "controller_genesis_state")) + $root.ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState.encode(message.controller_genesis_state, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.host_genesis_state != null && Object.hasOwnProperty.call(message, "host_genesis_state")) + $root.ibc.applications.interchain_accounts.genesis.v1.HostGenesisState.encode(message.host_genesis_state, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; - /** - * Calls Params. - * @function params - * @memberof ibc.applications.transfer.v1.Query - * @instance - * @param {ibc.applications.transfer.v1.IQueryParamsRequest} request QueryParamsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * Encodes the specified GenesisState message, length delimited. Does not implicitly {@link ibc.applications.interchain_accounts.genesis.v1.GenesisState.verify|verify} messages. + * @function encodeDelimited + * @memberof ibc.applications.interchain_accounts.genesis.v1.GenesisState + * @static + * @param {ibc.applications.interchain_accounts.genesis.v1.IGenesisState} message GenesisState message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GenesisState.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Callback as used by {@link ibc.applications.transfer.v1.Query#denomHash}. - * @memberof ibc.applications.transfer.v1.Query - * @typedef DenomHashCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.applications.transfer.v1.QueryDenomHashResponse} [response] QueryDenomHashResponse - */ + /** + * Decodes a GenesisState message from the specified reader or buffer. + * @function decode + * @memberof ibc.applications.interchain_accounts.genesis.v1.GenesisState + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {ibc.applications.interchain_accounts.genesis.v1.GenesisState} GenesisState + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GenesisState.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.interchain_accounts.genesis.v1.GenesisState(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.controller_genesis_state = $root.ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState.decode(reader, reader.uint32()); + break; + case 2: + message.host_genesis_state = $root.ibc.applications.interchain_accounts.genesis.v1.HostGenesisState.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Calls DenomHash. - * @function denomHash - * @memberof ibc.applications.transfer.v1.Query - * @instance - * @param {ibc.applications.transfer.v1.IQueryDenomHashRequest} request QueryDenomHashRequest message or plain object - * @param {ibc.applications.transfer.v1.Query.DenomHashCallback} callback Node-style callback called with the error, if any, and QueryDenomHashResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Query.prototype.denomHash = function denomHash(request, callback) { - return this.rpcCall(denomHash, $root.ibc.applications.transfer.v1.QueryDenomHashRequest, $root.ibc.applications.transfer.v1.QueryDenomHashResponse, request, callback); - }, "name", { value: "DenomHash" }); + /** + * Decodes a GenesisState message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof ibc.applications.interchain_accounts.genesis.v1.GenesisState + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {ibc.applications.interchain_accounts.genesis.v1.GenesisState} GenesisState + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GenesisState.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Calls DenomHash. - * @function denomHash - * @memberof ibc.applications.transfer.v1.Query - * @instance - * @param {ibc.applications.transfer.v1.IQueryDenomHashRequest} request QueryDenomHashRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * Verifies a GenesisState message. + * @function verify + * @memberof ibc.applications.interchain_accounts.genesis.v1.GenesisState + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GenesisState.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.controller_genesis_state != null && message.hasOwnProperty("controller_genesis_state")) { + let error = $root.ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState.verify(message.controller_genesis_state); + if (error) + return "controller_genesis_state." + error; + } + if (message.host_genesis_state != null && message.hasOwnProperty("host_genesis_state")) { + let error = $root.ibc.applications.interchain_accounts.genesis.v1.HostGenesisState.verify(message.host_genesis_state); + if (error) + return "host_genesis_state." + error; + } + return null; + }; + + /** + * Creates a GenesisState message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof ibc.applications.interchain_accounts.genesis.v1.GenesisState + * @static + * @param {Object.} object Plain object + * @returns {ibc.applications.interchain_accounts.genesis.v1.GenesisState} GenesisState + */ + GenesisState.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.interchain_accounts.genesis.v1.GenesisState) + return object; + let message = new $root.ibc.applications.interchain_accounts.genesis.v1.GenesisState(); + if (object.controller_genesis_state != null) { + if (typeof object.controller_genesis_state !== "object") + throw TypeError(".ibc.applications.interchain_accounts.genesis.v1.GenesisState.controller_genesis_state: object expected"); + message.controller_genesis_state = $root.ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState.fromObject(object.controller_genesis_state); + } + if (object.host_genesis_state != null) { + if (typeof object.host_genesis_state !== "object") + throw TypeError(".ibc.applications.interchain_accounts.genesis.v1.GenesisState.host_genesis_state: object expected"); + message.host_genesis_state = $root.ibc.applications.interchain_accounts.genesis.v1.HostGenesisState.fromObject(object.host_genesis_state); + } + return message; + }; + + /** + * Creates a plain object from a GenesisState message. Also converts values to other types if specified. + * @function toObject + * @memberof ibc.applications.interchain_accounts.genesis.v1.GenesisState + * @static + * @param {ibc.applications.interchain_accounts.genesis.v1.GenesisState} message GenesisState + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GenesisState.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + object.controller_genesis_state = null; + object.host_genesis_state = null; + } + if (message.controller_genesis_state != null && message.hasOwnProperty("controller_genesis_state")) + object.controller_genesis_state = $root.ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState.toObject(message.controller_genesis_state, options); + if (message.host_genesis_state != null && message.hasOwnProperty("host_genesis_state")) + object.host_genesis_state = $root.ibc.applications.interchain_accounts.genesis.v1.HostGenesisState.toObject(message.host_genesis_state, options); + return object; + }; + + /** + * Converts this GenesisState to JSON. + * @function toJSON + * @memberof ibc.applications.interchain_accounts.genesis.v1.GenesisState + * @instance + * @returns {Object.} JSON object + */ + GenesisState.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return GenesisState; + })(); + + v1.ControllerGenesisState = (function() { + + /** + * Properties of a ControllerGenesisState. + * @memberof ibc.applications.interchain_accounts.genesis.v1 + * @interface IControllerGenesisState + * @property {Array.|null} [active_channels] ControllerGenesisState active_channels + * @property {Array.|null} [interchain_accounts] ControllerGenesisState interchain_accounts + * @property {Array.|null} [ports] ControllerGenesisState ports + * @property {ibc.applications.interchain_accounts.controller.v1.IParams|null} [params] ControllerGenesisState params + */ + + /** + * Constructs a new ControllerGenesisState. + * @memberof ibc.applications.interchain_accounts.genesis.v1 + * @classdesc Represents a ControllerGenesisState. + * @implements IControllerGenesisState + * @constructor + * @param {ibc.applications.interchain_accounts.genesis.v1.IControllerGenesisState=} [properties] Properties to set + */ + function ControllerGenesisState(properties) { + this.active_channels = []; + this.interchain_accounts = []; + this.ports = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ControllerGenesisState active_channels. + * @member {Array.} active_channels + * @memberof ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState + * @instance + */ + ControllerGenesisState.prototype.active_channels = $util.emptyArray; + + /** + * ControllerGenesisState interchain_accounts. + * @member {Array.} interchain_accounts + * @memberof ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState + * @instance + */ + ControllerGenesisState.prototype.interchain_accounts = $util.emptyArray; + + /** + * ControllerGenesisState ports. + * @member {Array.} ports + * @memberof ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState + * @instance + */ + ControllerGenesisState.prototype.ports = $util.emptyArray; + + /** + * ControllerGenesisState params. + * @member {ibc.applications.interchain_accounts.controller.v1.IParams|null|undefined} params + * @memberof ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState + * @instance + */ + ControllerGenesisState.prototype.params = null; + + /** + * Encodes the specified ControllerGenesisState message. Does not implicitly {@link ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState.verify|verify} messages. + * @function encode + * @memberof ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState + * @static + * @param {ibc.applications.interchain_accounts.genesis.v1.IControllerGenesisState} message ControllerGenesisState message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ControllerGenesisState.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.active_channels != null && message.active_channels.length) + for (let i = 0; i < message.active_channels.length; ++i) + $root.ibc.applications.interchain_accounts.genesis.v1.ActiveChannel.encode(message.active_channels[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.interchain_accounts != null && message.interchain_accounts.length) + for (let i = 0; i < message.interchain_accounts.length; ++i) + $root.ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount.encode(message.interchain_accounts[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.ports != null && message.ports.length) + for (let i = 0; i < message.ports.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.ports[i]); + if (message.params != null && Object.hasOwnProperty.call(message, "params")) + $root.ibc.applications.interchain_accounts.controller.v1.Params.encode(message.params, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ControllerGenesisState message, length delimited. Does not implicitly {@link ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState.verify|verify} messages. + * @function encodeDelimited + * @memberof ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState + * @static + * @param {ibc.applications.interchain_accounts.genesis.v1.IControllerGenesisState} message ControllerGenesisState message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ControllerGenesisState.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ControllerGenesisState message from the specified reader or buffer. + * @function decode + * @memberof ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState} ControllerGenesisState + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ControllerGenesisState.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.active_channels && message.active_channels.length)) + message.active_channels = []; + message.active_channels.push($root.ibc.applications.interchain_accounts.genesis.v1.ActiveChannel.decode(reader, reader.uint32())); + break; + case 2: + if (!(message.interchain_accounts && message.interchain_accounts.length)) + message.interchain_accounts = []; + message.interchain_accounts.push($root.ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount.decode(reader, reader.uint32())); + break; + case 3: + if (!(message.ports && message.ports.length)) + message.ports = []; + message.ports.push(reader.string()); + break; + case 4: + message.params = $root.ibc.applications.interchain_accounts.controller.v1.Params.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ControllerGenesisState message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState} ControllerGenesisState + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ControllerGenesisState.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ControllerGenesisState message. + * @function verify + * @memberof ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ControllerGenesisState.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.active_channels != null && message.hasOwnProperty("active_channels")) { + if (!Array.isArray(message.active_channels)) + return "active_channels: array expected"; + for (let i = 0; i < message.active_channels.length; ++i) { + let error = $root.ibc.applications.interchain_accounts.genesis.v1.ActiveChannel.verify(message.active_channels[i]); + if (error) + return "active_channels." + error; + } + } + if (message.interchain_accounts != null && message.hasOwnProperty("interchain_accounts")) { + if (!Array.isArray(message.interchain_accounts)) + return "interchain_accounts: array expected"; + for (let i = 0; i < message.interchain_accounts.length; ++i) { + let error = $root.ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount.verify(message.interchain_accounts[i]); + if (error) + return "interchain_accounts." + error; + } + } + if (message.ports != null && message.hasOwnProperty("ports")) { + if (!Array.isArray(message.ports)) + return "ports: array expected"; + for (let i = 0; i < message.ports.length; ++i) + if (!$util.isString(message.ports[i])) + return "ports: string[] expected"; + } + if (message.params != null && message.hasOwnProperty("params")) { + let error = $root.ibc.applications.interchain_accounts.controller.v1.Params.verify(message.params); + if (error) + return "params." + error; + } + return null; + }; + + /** + * Creates a ControllerGenesisState message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState + * @static + * @param {Object.} object Plain object + * @returns {ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState} ControllerGenesisState + */ + ControllerGenesisState.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState) + return object; + let message = new $root.ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState(); + if (object.active_channels) { + if (!Array.isArray(object.active_channels)) + throw TypeError(".ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState.active_channels: array expected"); + message.active_channels = []; + for (let i = 0; i < object.active_channels.length; ++i) { + if (typeof object.active_channels[i] !== "object") + throw TypeError(".ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState.active_channels: object expected"); + message.active_channels[i] = $root.ibc.applications.interchain_accounts.genesis.v1.ActiveChannel.fromObject(object.active_channels[i]); + } + } + if (object.interchain_accounts) { + if (!Array.isArray(object.interchain_accounts)) + throw TypeError(".ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState.interchain_accounts: array expected"); + message.interchain_accounts = []; + for (let i = 0; i < object.interchain_accounts.length; ++i) { + if (typeof object.interchain_accounts[i] !== "object") + throw TypeError(".ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState.interchain_accounts: object expected"); + message.interchain_accounts[i] = $root.ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount.fromObject(object.interchain_accounts[i]); + } + } + if (object.ports) { + if (!Array.isArray(object.ports)) + throw TypeError(".ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState.ports: array expected"); + message.ports = []; + for (let i = 0; i < object.ports.length; ++i) + message.ports[i] = String(object.ports[i]); + } + if (object.params != null) { + if (typeof object.params !== "object") + throw TypeError(".ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState.params: object expected"); + message.params = $root.ibc.applications.interchain_accounts.controller.v1.Params.fromObject(object.params); + } + return message; + }; + + /** + * Creates a plain object from a ControllerGenesisState message. Also converts values to other types if specified. + * @function toObject + * @memberof ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState + * @static + * @param {ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState} message ControllerGenesisState + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ControllerGenesisState.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) { + object.active_channels = []; + object.interchain_accounts = []; + object.ports = []; + } + if (options.defaults) + object.params = null; + if (message.active_channels && message.active_channels.length) { + object.active_channels = []; + for (let j = 0; j < message.active_channels.length; ++j) + object.active_channels[j] = $root.ibc.applications.interchain_accounts.genesis.v1.ActiveChannel.toObject(message.active_channels[j], options); + } + if (message.interchain_accounts && message.interchain_accounts.length) { + object.interchain_accounts = []; + for (let j = 0; j < message.interchain_accounts.length; ++j) + object.interchain_accounts[j] = $root.ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount.toObject(message.interchain_accounts[j], options); + } + if (message.ports && message.ports.length) { + object.ports = []; + for (let j = 0; j < message.ports.length; ++j) + object.ports[j] = message.ports[j]; + } + if (message.params != null && message.hasOwnProperty("params")) + object.params = $root.ibc.applications.interchain_accounts.controller.v1.Params.toObject(message.params, options); + return object; + }; + + /** + * Converts this ControllerGenesisState to JSON. + * @function toJSON + * @memberof ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState + * @instance + * @returns {Object.} JSON object + */ + ControllerGenesisState.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Callback as used by {@link ibc.applications.transfer.v1.Query#escrowAddress}. - * @memberof ibc.applications.transfer.v1.Query - * @typedef EscrowAddressCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.applications.transfer.v1.QueryEscrowAddressResponse} [response] QueryEscrowAddressResponse - */ + return ControllerGenesisState; + })(); - /** - * Calls EscrowAddress. - * @function escrowAddress - * @memberof ibc.applications.transfer.v1.Query - * @instance - * @param {ibc.applications.transfer.v1.IQueryEscrowAddressRequest} request QueryEscrowAddressRequest message or plain object - * @param {ibc.applications.transfer.v1.Query.EscrowAddressCallback} callback Node-style callback called with the error, if any, and QueryEscrowAddressResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Query.prototype.escrowAddress = function escrowAddress(request, callback) { - return this.rpcCall(escrowAddress, $root.ibc.applications.transfer.v1.QueryEscrowAddressRequest, $root.ibc.applications.transfer.v1.QueryEscrowAddressResponse, request, callback); - }, "name", { value: "EscrowAddress" }); + v1.HostGenesisState = (function() { - /** - * Calls EscrowAddress. - * @function escrowAddress - * @memberof ibc.applications.transfer.v1.Query - * @instance - * @param {ibc.applications.transfer.v1.IQueryEscrowAddressRequest} request QueryEscrowAddressRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * Properties of a HostGenesisState. + * @memberof ibc.applications.interchain_accounts.genesis.v1 + * @interface IHostGenesisState + * @property {Array.|null} [active_channels] HostGenesisState active_channels + * @property {Array.|null} [interchain_accounts] HostGenesisState interchain_accounts + * @property {string|null} [port] HostGenesisState port + * @property {ibc.applications.interchain_accounts.host.v1.IParams|null} [params] HostGenesisState params + */ - return Query; - })(); + /** + * Constructs a new HostGenesisState. + * @memberof ibc.applications.interchain_accounts.genesis.v1 + * @classdesc Represents a HostGenesisState. + * @implements IHostGenesisState + * @constructor + * @param {ibc.applications.interchain_accounts.genesis.v1.IHostGenesisState=} [properties] Properties to set + */ + function HostGenesisState(properties) { + this.active_channels = []; + this.interchain_accounts = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - v1.QueryDenomTraceRequest = (function() { + /** + * HostGenesisState active_channels. + * @member {Array.} active_channels + * @memberof ibc.applications.interchain_accounts.genesis.v1.HostGenesisState + * @instance + */ + HostGenesisState.prototype.active_channels = $util.emptyArray; - /** - * Properties of a QueryDenomTraceRequest. - * @memberof ibc.applications.transfer.v1 - * @interface IQueryDenomTraceRequest - * @property {string|null} [hash] QueryDenomTraceRequest hash - */ + /** + * HostGenesisState interchain_accounts. + * @member {Array.} interchain_accounts + * @memberof ibc.applications.interchain_accounts.genesis.v1.HostGenesisState + * @instance + */ + HostGenesisState.prototype.interchain_accounts = $util.emptyArray; - /** - * Constructs a new QueryDenomTraceRequest. - * @memberof ibc.applications.transfer.v1 - * @classdesc Represents a QueryDenomTraceRequest. - * @implements IQueryDenomTraceRequest - * @constructor - * @param {ibc.applications.transfer.v1.IQueryDenomTraceRequest=} [properties] Properties to set - */ - function QueryDenomTraceRequest(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * HostGenesisState port. + * @member {string} port + * @memberof ibc.applications.interchain_accounts.genesis.v1.HostGenesisState + * @instance + */ + HostGenesisState.prototype.port = ""; - /** - * QueryDenomTraceRequest hash. - * @member {string} hash - * @memberof ibc.applications.transfer.v1.QueryDenomTraceRequest - * @instance - */ - QueryDenomTraceRequest.prototype.hash = ""; + /** + * HostGenesisState params. + * @member {ibc.applications.interchain_accounts.host.v1.IParams|null|undefined} params + * @memberof ibc.applications.interchain_accounts.genesis.v1.HostGenesisState + * @instance + */ + HostGenesisState.prototype.params = null; - /** - * Encodes the specified QueryDenomTraceRequest message. Does not implicitly {@link ibc.applications.transfer.v1.QueryDenomTraceRequest.verify|verify} messages. - * @function encode - * @memberof ibc.applications.transfer.v1.QueryDenomTraceRequest - * @static - * @param {ibc.applications.transfer.v1.IQueryDenomTraceRequest} message QueryDenomTraceRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - QueryDenomTraceRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.hash != null && Object.hasOwnProperty.call(message, "hash")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.hash); - return writer; - }; + /** + * Encodes the specified HostGenesisState message. Does not implicitly {@link ibc.applications.interchain_accounts.genesis.v1.HostGenesisState.verify|verify} messages. + * @function encode + * @memberof ibc.applications.interchain_accounts.genesis.v1.HostGenesisState + * @static + * @param {ibc.applications.interchain_accounts.genesis.v1.IHostGenesisState} message HostGenesisState message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + HostGenesisState.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.active_channels != null && message.active_channels.length) + for (let i = 0; i < message.active_channels.length; ++i) + $root.ibc.applications.interchain_accounts.genesis.v1.ActiveChannel.encode(message.active_channels[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.interchain_accounts != null && message.interchain_accounts.length) + for (let i = 0; i < message.interchain_accounts.length; ++i) + $root.ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount.encode(message.interchain_accounts[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.port != null && Object.hasOwnProperty.call(message, "port")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.port); + if (message.params != null && Object.hasOwnProperty.call(message, "params")) + $root.ibc.applications.interchain_accounts.host.v1.Params.encode(message.params, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + return writer; + }; - /** - * Encodes the specified QueryDenomTraceRequest message, length delimited. Does not implicitly {@link ibc.applications.transfer.v1.QueryDenomTraceRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof ibc.applications.transfer.v1.QueryDenomTraceRequest - * @static - * @param {ibc.applications.transfer.v1.IQueryDenomTraceRequest} message QueryDenomTraceRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - QueryDenomTraceRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified HostGenesisState message, length delimited. Does not implicitly {@link ibc.applications.interchain_accounts.genesis.v1.HostGenesisState.verify|verify} messages. + * @function encodeDelimited + * @memberof ibc.applications.interchain_accounts.genesis.v1.HostGenesisState + * @static + * @param {ibc.applications.interchain_accounts.genesis.v1.IHostGenesisState} message HostGenesisState message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + HostGenesisState.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a QueryDenomTraceRequest message from the specified reader or buffer. - * @function decode - * @memberof ibc.applications.transfer.v1.QueryDenomTraceRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.transfer.v1.QueryDenomTraceRequest} QueryDenomTraceRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - QueryDenomTraceRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.transfer.v1.QueryDenomTraceRequest(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.hash = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; + /** + * Decodes a HostGenesisState message from the specified reader or buffer. + * @function decode + * @memberof ibc.applications.interchain_accounts.genesis.v1.HostGenesisState + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {ibc.applications.interchain_accounts.genesis.v1.HostGenesisState} HostGenesisState + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + HostGenesisState.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.interchain_accounts.genesis.v1.HostGenesisState(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.active_channels && message.active_channels.length)) + message.active_channels = []; + message.active_channels.push($root.ibc.applications.interchain_accounts.genesis.v1.ActiveChannel.decode(reader, reader.uint32())); + break; + case 2: + if (!(message.interchain_accounts && message.interchain_accounts.length)) + message.interchain_accounts = []; + message.interchain_accounts.push($root.ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount.decode(reader, reader.uint32())); + break; + case 3: + message.port = reader.string(); + break; + case 4: + message.params = $root.ibc.applications.interchain_accounts.host.v1.Params.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } } - } - return message; - }; + return message; + }; - /** - * Decodes a QueryDenomTraceRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ibc.applications.transfer.v1.QueryDenomTraceRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.transfer.v1.QueryDenomTraceRequest} QueryDenomTraceRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - QueryDenomTraceRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a HostGenesisState message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof ibc.applications.interchain_accounts.genesis.v1.HostGenesisState + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {ibc.applications.interchain_accounts.genesis.v1.HostGenesisState} HostGenesisState + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + HostGenesisState.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies a QueryDenomTraceRequest message. - * @function verify - * @memberof ibc.applications.transfer.v1.QueryDenomTraceRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - QueryDenomTraceRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.hash != null && message.hasOwnProperty("hash")) - if (!$util.isString(message.hash)) - return "hash: string expected"; - return null; - }; + /** + * Verifies a HostGenesisState message. + * @function verify + * @memberof ibc.applications.interchain_accounts.genesis.v1.HostGenesisState + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + HostGenesisState.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.active_channels != null && message.hasOwnProperty("active_channels")) { + if (!Array.isArray(message.active_channels)) + return "active_channels: array expected"; + for (let i = 0; i < message.active_channels.length; ++i) { + let error = $root.ibc.applications.interchain_accounts.genesis.v1.ActiveChannel.verify(message.active_channels[i]); + if (error) + return "active_channels." + error; + } + } + if (message.interchain_accounts != null && message.hasOwnProperty("interchain_accounts")) { + if (!Array.isArray(message.interchain_accounts)) + return "interchain_accounts: array expected"; + for (let i = 0; i < message.interchain_accounts.length; ++i) { + let error = $root.ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount.verify(message.interchain_accounts[i]); + if (error) + return "interchain_accounts." + error; + } + } + if (message.port != null && message.hasOwnProperty("port")) + if (!$util.isString(message.port)) + return "port: string expected"; + if (message.params != null && message.hasOwnProperty("params")) { + let error = $root.ibc.applications.interchain_accounts.host.v1.Params.verify(message.params); + if (error) + return "params." + error; + } + return null; + }; - /** - * Creates a QueryDenomTraceRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof ibc.applications.transfer.v1.QueryDenomTraceRequest - * @static - * @param {Object.} object Plain object - * @returns {ibc.applications.transfer.v1.QueryDenomTraceRequest} QueryDenomTraceRequest - */ - QueryDenomTraceRequest.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.transfer.v1.QueryDenomTraceRequest) + /** + * Creates a HostGenesisState message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof ibc.applications.interchain_accounts.genesis.v1.HostGenesisState + * @static + * @param {Object.} object Plain object + * @returns {ibc.applications.interchain_accounts.genesis.v1.HostGenesisState} HostGenesisState + */ + HostGenesisState.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.interchain_accounts.genesis.v1.HostGenesisState) + return object; + let message = new $root.ibc.applications.interchain_accounts.genesis.v1.HostGenesisState(); + if (object.active_channels) { + if (!Array.isArray(object.active_channels)) + throw TypeError(".ibc.applications.interchain_accounts.genesis.v1.HostGenesisState.active_channels: array expected"); + message.active_channels = []; + for (let i = 0; i < object.active_channels.length; ++i) { + if (typeof object.active_channels[i] !== "object") + throw TypeError(".ibc.applications.interchain_accounts.genesis.v1.HostGenesisState.active_channels: object expected"); + message.active_channels[i] = $root.ibc.applications.interchain_accounts.genesis.v1.ActiveChannel.fromObject(object.active_channels[i]); + } + } + if (object.interchain_accounts) { + if (!Array.isArray(object.interchain_accounts)) + throw TypeError(".ibc.applications.interchain_accounts.genesis.v1.HostGenesisState.interchain_accounts: array expected"); + message.interchain_accounts = []; + for (let i = 0; i < object.interchain_accounts.length; ++i) { + if (typeof object.interchain_accounts[i] !== "object") + throw TypeError(".ibc.applications.interchain_accounts.genesis.v1.HostGenesisState.interchain_accounts: object expected"); + message.interchain_accounts[i] = $root.ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount.fromObject(object.interchain_accounts[i]); + } + } + if (object.port != null) + message.port = String(object.port); + if (object.params != null) { + if (typeof object.params !== "object") + throw TypeError(".ibc.applications.interchain_accounts.genesis.v1.HostGenesisState.params: object expected"); + message.params = $root.ibc.applications.interchain_accounts.host.v1.Params.fromObject(object.params); + } + return message; + }; + + /** + * Creates a plain object from a HostGenesisState message. Also converts values to other types if specified. + * @function toObject + * @memberof ibc.applications.interchain_accounts.genesis.v1.HostGenesisState + * @static + * @param {ibc.applications.interchain_accounts.genesis.v1.HostGenesisState} message HostGenesisState + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + HostGenesisState.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) { + object.active_channels = []; + object.interchain_accounts = []; + } + if (options.defaults) { + object.port = ""; + object.params = null; + } + if (message.active_channels && message.active_channels.length) { + object.active_channels = []; + for (let j = 0; j < message.active_channels.length; ++j) + object.active_channels[j] = $root.ibc.applications.interchain_accounts.genesis.v1.ActiveChannel.toObject(message.active_channels[j], options); + } + if (message.interchain_accounts && message.interchain_accounts.length) { + object.interchain_accounts = []; + for (let j = 0; j < message.interchain_accounts.length; ++j) + object.interchain_accounts[j] = $root.ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount.toObject(message.interchain_accounts[j], options); + } + if (message.port != null && message.hasOwnProperty("port")) + object.port = message.port; + if (message.params != null && message.hasOwnProperty("params")) + object.params = $root.ibc.applications.interchain_accounts.host.v1.Params.toObject(message.params, options); return object; - let message = new $root.ibc.applications.transfer.v1.QueryDenomTraceRequest(); - if (object.hash != null) - message.hash = String(object.hash); - return message; - }; + }; - /** - * Creates a plain object from a QueryDenomTraceRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof ibc.applications.transfer.v1.QueryDenomTraceRequest - * @static - * @param {ibc.applications.transfer.v1.QueryDenomTraceRequest} message QueryDenomTraceRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - QueryDenomTraceRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) - object.hash = ""; - if (message.hash != null && message.hasOwnProperty("hash")) - object.hash = message.hash; - return object; - }; + /** + * Converts this HostGenesisState to JSON. + * @function toJSON + * @memberof ibc.applications.interchain_accounts.genesis.v1.HostGenesisState + * @instance + * @returns {Object.} JSON object + */ + HostGenesisState.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Converts this QueryDenomTraceRequest to JSON. - * @function toJSON - * @memberof ibc.applications.transfer.v1.QueryDenomTraceRequest - * @instance - * @returns {Object.} JSON object - */ - QueryDenomTraceRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + return HostGenesisState; + })(); - return QueryDenomTraceRequest; - })(); + v1.ActiveChannel = (function() { - v1.QueryDenomTraceResponse = (function() { + /** + * Properties of an ActiveChannel. + * @memberof ibc.applications.interchain_accounts.genesis.v1 + * @interface IActiveChannel + * @property {string|null} [connection_id] ActiveChannel connection_id + * @property {string|null} [port_id] ActiveChannel port_id + * @property {string|null} [channel_id] ActiveChannel channel_id + * @property {boolean|null} [is_middleware_enabled] ActiveChannel is_middleware_enabled + */ - /** - * Properties of a QueryDenomTraceResponse. - * @memberof ibc.applications.transfer.v1 - * @interface IQueryDenomTraceResponse - * @property {ibc.applications.transfer.v1.IDenomTrace|null} [denom_trace] QueryDenomTraceResponse denom_trace - */ + /** + * Constructs a new ActiveChannel. + * @memberof ibc.applications.interchain_accounts.genesis.v1 + * @classdesc Represents an ActiveChannel. + * @implements IActiveChannel + * @constructor + * @param {ibc.applications.interchain_accounts.genesis.v1.IActiveChannel=} [properties] Properties to set + */ + function ActiveChannel(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Constructs a new QueryDenomTraceResponse. - * @memberof ibc.applications.transfer.v1 - * @classdesc Represents a QueryDenomTraceResponse. - * @implements IQueryDenomTraceResponse - * @constructor - * @param {ibc.applications.transfer.v1.IQueryDenomTraceResponse=} [properties] Properties to set - */ - function QueryDenomTraceResponse(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * ActiveChannel connection_id. + * @member {string} connection_id + * @memberof ibc.applications.interchain_accounts.genesis.v1.ActiveChannel + * @instance + */ + ActiveChannel.prototype.connection_id = ""; - /** - * QueryDenomTraceResponse denom_trace. - * @member {ibc.applications.transfer.v1.IDenomTrace|null|undefined} denom_trace - * @memberof ibc.applications.transfer.v1.QueryDenomTraceResponse - * @instance - */ - QueryDenomTraceResponse.prototype.denom_trace = null; + /** + * ActiveChannel port_id. + * @member {string} port_id + * @memberof ibc.applications.interchain_accounts.genesis.v1.ActiveChannel + * @instance + */ + ActiveChannel.prototype.port_id = ""; - /** - * Encodes the specified QueryDenomTraceResponse message. Does not implicitly {@link ibc.applications.transfer.v1.QueryDenomTraceResponse.verify|verify} messages. - * @function encode - * @memberof ibc.applications.transfer.v1.QueryDenomTraceResponse - * @static - * @param {ibc.applications.transfer.v1.IQueryDenomTraceResponse} message QueryDenomTraceResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - QueryDenomTraceResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.denom_trace != null && Object.hasOwnProperty.call(message, "denom_trace")) - $root.ibc.applications.transfer.v1.DenomTrace.encode(message.denom_trace, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; + /** + * ActiveChannel channel_id. + * @member {string} channel_id + * @memberof ibc.applications.interchain_accounts.genesis.v1.ActiveChannel + * @instance + */ + ActiveChannel.prototype.channel_id = ""; - /** - * Encodes the specified QueryDenomTraceResponse message, length delimited. Does not implicitly {@link ibc.applications.transfer.v1.QueryDenomTraceResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof ibc.applications.transfer.v1.QueryDenomTraceResponse - * @static - * @param {ibc.applications.transfer.v1.IQueryDenomTraceResponse} message QueryDenomTraceResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - QueryDenomTraceResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * ActiveChannel is_middleware_enabled. + * @member {boolean} is_middleware_enabled + * @memberof ibc.applications.interchain_accounts.genesis.v1.ActiveChannel + * @instance + */ + ActiveChannel.prototype.is_middleware_enabled = false; - /** - * Decodes a QueryDenomTraceResponse message from the specified reader or buffer. - * @function decode - * @memberof ibc.applications.transfer.v1.QueryDenomTraceResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.transfer.v1.QueryDenomTraceResponse} QueryDenomTraceResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - QueryDenomTraceResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.transfer.v1.QueryDenomTraceResponse(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.denom_trace = $root.ibc.applications.transfer.v1.DenomTrace.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; + /** + * Encodes the specified ActiveChannel message. Does not implicitly {@link ibc.applications.interchain_accounts.genesis.v1.ActiveChannel.verify|verify} messages. + * @function encode + * @memberof ibc.applications.interchain_accounts.genesis.v1.ActiveChannel + * @static + * @param {ibc.applications.interchain_accounts.genesis.v1.IActiveChannel} message ActiveChannel message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ActiveChannel.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.connection_id != null && Object.hasOwnProperty.call(message, "connection_id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.connection_id); + if (message.port_id != null && Object.hasOwnProperty.call(message, "port_id")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.port_id); + if (message.channel_id != null && Object.hasOwnProperty.call(message, "channel_id")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.channel_id); + if (message.is_middleware_enabled != null && Object.hasOwnProperty.call(message, "is_middleware_enabled")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.is_middleware_enabled); + return writer; + }; + + /** + * Encodes the specified ActiveChannel message, length delimited. Does not implicitly {@link ibc.applications.interchain_accounts.genesis.v1.ActiveChannel.verify|verify} messages. + * @function encodeDelimited + * @memberof ibc.applications.interchain_accounts.genesis.v1.ActiveChannel + * @static + * @param {ibc.applications.interchain_accounts.genesis.v1.IActiveChannel} message ActiveChannel message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ActiveChannel.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an ActiveChannel message from the specified reader or buffer. + * @function decode + * @memberof ibc.applications.interchain_accounts.genesis.v1.ActiveChannel + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {ibc.applications.interchain_accounts.genesis.v1.ActiveChannel} ActiveChannel + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ActiveChannel.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.interchain_accounts.genesis.v1.ActiveChannel(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.connection_id = reader.string(); + break; + case 2: + message.port_id = reader.string(); + break; + case 3: + message.channel_id = reader.string(); + break; + case 4: + message.is_middleware_enabled = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } } - } - return message; - }; + return message; + }; - /** - * Decodes a QueryDenomTraceResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ibc.applications.transfer.v1.QueryDenomTraceResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.transfer.v1.QueryDenomTraceResponse} QueryDenomTraceResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - QueryDenomTraceResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes an ActiveChannel message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof ibc.applications.interchain_accounts.genesis.v1.ActiveChannel + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {ibc.applications.interchain_accounts.genesis.v1.ActiveChannel} ActiveChannel + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ActiveChannel.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies a QueryDenomTraceResponse message. - * @function verify - * @memberof ibc.applications.transfer.v1.QueryDenomTraceResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - QueryDenomTraceResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.denom_trace != null && message.hasOwnProperty("denom_trace")) { - let error = $root.ibc.applications.transfer.v1.DenomTrace.verify(message.denom_trace); - if (error) - return "denom_trace." + error; - } - return null; - }; + /** + * Verifies an ActiveChannel message. + * @function verify + * @memberof ibc.applications.interchain_accounts.genesis.v1.ActiveChannel + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ActiveChannel.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.connection_id != null && message.hasOwnProperty("connection_id")) + if (!$util.isString(message.connection_id)) + return "connection_id: string expected"; + if (message.port_id != null && message.hasOwnProperty("port_id")) + if (!$util.isString(message.port_id)) + return "port_id: string expected"; + if (message.channel_id != null && message.hasOwnProperty("channel_id")) + if (!$util.isString(message.channel_id)) + return "channel_id: string expected"; + if (message.is_middleware_enabled != null && message.hasOwnProperty("is_middleware_enabled")) + if (typeof message.is_middleware_enabled !== "boolean") + return "is_middleware_enabled: boolean expected"; + return null; + }; - /** - * Creates a QueryDenomTraceResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof ibc.applications.transfer.v1.QueryDenomTraceResponse - * @static - * @param {Object.} object Plain object - * @returns {ibc.applications.transfer.v1.QueryDenomTraceResponse} QueryDenomTraceResponse - */ - QueryDenomTraceResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.transfer.v1.QueryDenomTraceResponse) + /** + * Creates an ActiveChannel message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof ibc.applications.interchain_accounts.genesis.v1.ActiveChannel + * @static + * @param {Object.} object Plain object + * @returns {ibc.applications.interchain_accounts.genesis.v1.ActiveChannel} ActiveChannel + */ + ActiveChannel.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.interchain_accounts.genesis.v1.ActiveChannel) + return object; + let message = new $root.ibc.applications.interchain_accounts.genesis.v1.ActiveChannel(); + if (object.connection_id != null) + message.connection_id = String(object.connection_id); + if (object.port_id != null) + message.port_id = String(object.port_id); + if (object.channel_id != null) + message.channel_id = String(object.channel_id); + if (object.is_middleware_enabled != null) + message.is_middleware_enabled = Boolean(object.is_middleware_enabled); + return message; + }; + + /** + * Creates a plain object from an ActiveChannel message. Also converts values to other types if specified. + * @function toObject + * @memberof ibc.applications.interchain_accounts.genesis.v1.ActiveChannel + * @static + * @param {ibc.applications.interchain_accounts.genesis.v1.ActiveChannel} message ActiveChannel + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ActiveChannel.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + object.connection_id = ""; + object.port_id = ""; + object.channel_id = ""; + object.is_middleware_enabled = false; + } + if (message.connection_id != null && message.hasOwnProperty("connection_id")) + object.connection_id = message.connection_id; + if (message.port_id != null && message.hasOwnProperty("port_id")) + object.port_id = message.port_id; + if (message.channel_id != null && message.hasOwnProperty("channel_id")) + object.channel_id = message.channel_id; + if (message.is_middleware_enabled != null && message.hasOwnProperty("is_middleware_enabled")) + object.is_middleware_enabled = message.is_middleware_enabled; return object; - let message = new $root.ibc.applications.transfer.v1.QueryDenomTraceResponse(); - if (object.denom_trace != null) { - if (typeof object.denom_trace !== "object") - throw TypeError(".ibc.applications.transfer.v1.QueryDenomTraceResponse.denom_trace: object expected"); - message.denom_trace = $root.ibc.applications.transfer.v1.DenomTrace.fromObject(object.denom_trace); - } - return message; - }; + }; - /** - * Creates a plain object from a QueryDenomTraceResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof ibc.applications.transfer.v1.QueryDenomTraceResponse - * @static - * @param {ibc.applications.transfer.v1.QueryDenomTraceResponse} message QueryDenomTraceResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - QueryDenomTraceResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) - object.denom_trace = null; - if (message.denom_trace != null && message.hasOwnProperty("denom_trace")) - object.denom_trace = $root.ibc.applications.transfer.v1.DenomTrace.toObject(message.denom_trace, options); - return object; - }; + /** + * Converts this ActiveChannel to JSON. + * @function toJSON + * @memberof ibc.applications.interchain_accounts.genesis.v1.ActiveChannel + * @instance + * @returns {Object.} JSON object + */ + ActiveChannel.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Converts this QueryDenomTraceResponse to JSON. - * @function toJSON - * @memberof ibc.applications.transfer.v1.QueryDenomTraceResponse - * @instance - * @returns {Object.} JSON object - */ - QueryDenomTraceResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + return ActiveChannel; + })(); - return QueryDenomTraceResponse; - })(); + v1.RegisteredInterchainAccount = (function() { - v1.QueryDenomTracesRequest = (function() { + /** + * Properties of a RegisteredInterchainAccount. + * @memberof ibc.applications.interchain_accounts.genesis.v1 + * @interface IRegisteredInterchainAccount + * @property {string|null} [connection_id] RegisteredInterchainAccount connection_id + * @property {string|null} [port_id] RegisteredInterchainAccount port_id + * @property {string|null} [account_address] RegisteredInterchainAccount account_address + */ - /** - * Properties of a QueryDenomTracesRequest. - * @memberof ibc.applications.transfer.v1 - * @interface IQueryDenomTracesRequest - * @property {cosmos.base.query.v1beta1.IPageRequest|null} [pagination] QueryDenomTracesRequest pagination - */ + /** + * Constructs a new RegisteredInterchainAccount. + * @memberof ibc.applications.interchain_accounts.genesis.v1 + * @classdesc Represents a RegisteredInterchainAccount. + * @implements IRegisteredInterchainAccount + * @constructor + * @param {ibc.applications.interchain_accounts.genesis.v1.IRegisteredInterchainAccount=} [properties] Properties to set + */ + function RegisteredInterchainAccount(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Constructs a new QueryDenomTracesRequest. - * @memberof ibc.applications.transfer.v1 - * @classdesc Represents a QueryDenomTracesRequest. - * @implements IQueryDenomTracesRequest - * @constructor - * @param {ibc.applications.transfer.v1.IQueryDenomTracesRequest=} [properties] Properties to set - */ - function QueryDenomTracesRequest(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * RegisteredInterchainAccount connection_id. + * @member {string} connection_id + * @memberof ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount + * @instance + */ + RegisteredInterchainAccount.prototype.connection_id = ""; - /** - * QueryDenomTracesRequest pagination. - * @member {cosmos.base.query.v1beta1.IPageRequest|null|undefined} pagination - * @memberof ibc.applications.transfer.v1.QueryDenomTracesRequest - * @instance - */ - QueryDenomTracesRequest.prototype.pagination = null; + /** + * RegisteredInterchainAccount port_id. + * @member {string} port_id + * @memberof ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount + * @instance + */ + RegisteredInterchainAccount.prototype.port_id = ""; - /** - * Encodes the specified QueryDenomTracesRequest message. Does not implicitly {@link ibc.applications.transfer.v1.QueryDenomTracesRequest.verify|verify} messages. - * @function encode - * @memberof ibc.applications.transfer.v1.QueryDenomTracesRequest - * @static - * @param {ibc.applications.transfer.v1.IQueryDenomTracesRequest} message QueryDenomTracesRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - QueryDenomTracesRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.pagination != null && Object.hasOwnProperty.call(message, "pagination")) - $root.cosmos.base.query.v1beta1.PageRequest.encode(message.pagination, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; + /** + * RegisteredInterchainAccount account_address. + * @member {string} account_address + * @memberof ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount + * @instance + */ + RegisteredInterchainAccount.prototype.account_address = ""; - /** - * Encodes the specified QueryDenomTracesRequest message, length delimited. Does not implicitly {@link ibc.applications.transfer.v1.QueryDenomTracesRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof ibc.applications.transfer.v1.QueryDenomTracesRequest - * @static - * @param {ibc.applications.transfer.v1.IQueryDenomTracesRequest} message QueryDenomTracesRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - QueryDenomTracesRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified RegisteredInterchainAccount message. Does not implicitly {@link ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount.verify|verify} messages. + * @function encode + * @memberof ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount + * @static + * @param {ibc.applications.interchain_accounts.genesis.v1.IRegisteredInterchainAccount} message RegisteredInterchainAccount message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RegisteredInterchainAccount.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.connection_id != null && Object.hasOwnProperty.call(message, "connection_id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.connection_id); + if (message.port_id != null && Object.hasOwnProperty.call(message, "port_id")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.port_id); + if (message.account_address != null && Object.hasOwnProperty.call(message, "account_address")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.account_address); + return writer; + }; - /** - * Decodes a QueryDenomTracesRequest message from the specified reader or buffer. - * @function decode - * @memberof ibc.applications.transfer.v1.QueryDenomTracesRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.transfer.v1.QueryDenomTracesRequest} QueryDenomTracesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - QueryDenomTracesRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.transfer.v1.QueryDenomTracesRequest(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.pagination = $root.cosmos.base.query.v1beta1.PageRequest.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; + /** + * Encodes the specified RegisteredInterchainAccount message, length delimited. Does not implicitly {@link ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount.verify|verify} messages. + * @function encodeDelimited + * @memberof ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount + * @static + * @param {ibc.applications.interchain_accounts.genesis.v1.IRegisteredInterchainAccount} message RegisteredInterchainAccount message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RegisteredInterchainAccount.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a RegisteredInterchainAccount message from the specified reader or buffer. + * @function decode + * @memberof ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount} RegisteredInterchainAccount + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RegisteredInterchainAccount.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.connection_id = reader.string(); + break; + case 2: + message.port_id = reader.string(); + break; + case 3: + message.account_address = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } } - } - return message; - }; + return message; + }; - /** - * Decodes a QueryDenomTracesRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ibc.applications.transfer.v1.QueryDenomTracesRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.transfer.v1.QueryDenomTracesRequest} QueryDenomTracesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - QueryDenomTracesRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a RegisteredInterchainAccount message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount} RegisteredInterchainAccount + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RegisteredInterchainAccount.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies a QueryDenomTracesRequest message. - * @function verify - * @memberof ibc.applications.transfer.v1.QueryDenomTracesRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - QueryDenomTracesRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.pagination != null && message.hasOwnProperty("pagination")) { - let error = $root.cosmos.base.query.v1beta1.PageRequest.verify(message.pagination); - if (error) - return "pagination." + error; - } - return null; - }; + /** + * Verifies a RegisteredInterchainAccount message. + * @function verify + * @memberof ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + RegisteredInterchainAccount.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.connection_id != null && message.hasOwnProperty("connection_id")) + if (!$util.isString(message.connection_id)) + return "connection_id: string expected"; + if (message.port_id != null && message.hasOwnProperty("port_id")) + if (!$util.isString(message.port_id)) + return "port_id: string expected"; + if (message.account_address != null && message.hasOwnProperty("account_address")) + if (!$util.isString(message.account_address)) + return "account_address: string expected"; + return null; + }; - /** - * Creates a QueryDenomTracesRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof ibc.applications.transfer.v1.QueryDenomTracesRequest - * @static - * @param {Object.} object Plain object - * @returns {ibc.applications.transfer.v1.QueryDenomTracesRequest} QueryDenomTracesRequest - */ - QueryDenomTracesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.transfer.v1.QueryDenomTracesRequest) + /** + * Creates a RegisteredInterchainAccount message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount + * @static + * @param {Object.} object Plain object + * @returns {ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount} RegisteredInterchainAccount + */ + RegisteredInterchainAccount.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount) + return object; + let message = new $root.ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount(); + if (object.connection_id != null) + message.connection_id = String(object.connection_id); + if (object.port_id != null) + message.port_id = String(object.port_id); + if (object.account_address != null) + message.account_address = String(object.account_address); + return message; + }; + + /** + * Creates a plain object from a RegisteredInterchainAccount message. Also converts values to other types if specified. + * @function toObject + * @memberof ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount + * @static + * @param {ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount} message RegisteredInterchainAccount + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + RegisteredInterchainAccount.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + object.connection_id = ""; + object.port_id = ""; + object.account_address = ""; + } + if (message.connection_id != null && message.hasOwnProperty("connection_id")) + object.connection_id = message.connection_id; + if (message.port_id != null && message.hasOwnProperty("port_id")) + object.port_id = message.port_id; + if (message.account_address != null && message.hasOwnProperty("account_address")) + object.account_address = message.account_address; return object; - let message = new $root.ibc.applications.transfer.v1.QueryDenomTracesRequest(); - if (object.pagination != null) { - if (typeof object.pagination !== "object") - throw TypeError(".ibc.applications.transfer.v1.QueryDenomTracesRequest.pagination: object expected"); - message.pagination = $root.cosmos.base.query.v1beta1.PageRequest.fromObject(object.pagination); - } - return message; - }; + }; - /** - * Creates a plain object from a QueryDenomTracesRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof ibc.applications.transfer.v1.QueryDenomTracesRequest - * @static - * @param {ibc.applications.transfer.v1.QueryDenomTracesRequest} message QueryDenomTracesRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - QueryDenomTracesRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) - object.pagination = null; - if (message.pagination != null && message.hasOwnProperty("pagination")) - object.pagination = $root.cosmos.base.query.v1beta1.PageRequest.toObject(message.pagination, options); - return object; - }; + /** + * Converts this RegisteredInterchainAccount to JSON. + * @function toJSON + * @memberof ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount + * @instance + * @returns {Object.} JSON object + */ + RegisteredInterchainAccount.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Converts this QueryDenomTracesRequest to JSON. - * @function toJSON - * @memberof ibc.applications.transfer.v1.QueryDenomTracesRequest - * @instance - * @returns {Object.} JSON object - */ - QueryDenomTracesRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + return RegisteredInterchainAccount; + })(); - return QueryDenomTracesRequest; + return v1; })(); - v1.QueryDenomTracesResponse = (function() { + return genesis; + })(); - /** - * Properties of a QueryDenomTracesResponse. - * @memberof ibc.applications.transfer.v1 - * @interface IQueryDenomTracesResponse - * @property {Array.|null} [denom_traces] QueryDenomTracesResponse denom_traces - * @property {cosmos.base.query.v1beta1.IPageResponse|null} [pagination] QueryDenomTracesResponse pagination - */ + interchain_accounts.host = (function() { - /** - * Constructs a new QueryDenomTracesResponse. - * @memberof ibc.applications.transfer.v1 - * @classdesc Represents a QueryDenomTracesResponse. - * @implements IQueryDenomTracesResponse - * @constructor - * @param {ibc.applications.transfer.v1.IQueryDenomTracesResponse=} [properties] Properties to set - */ - function QueryDenomTracesResponse(properties) { - this.denom_traces = []; - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Namespace host. + * @memberof ibc.applications.interchain_accounts + * @namespace + */ + const host = {}; + + host.v1 = (function() { /** - * QueryDenomTracesResponse denom_traces. - * @member {Array.} denom_traces - * @memberof ibc.applications.transfer.v1.QueryDenomTracesResponse - * @instance + * Namespace v1. + * @memberof ibc.applications.interchain_accounts.host + * @namespace */ - QueryDenomTracesResponse.prototype.denom_traces = $util.emptyArray; + const v1 = {}; + + v1.Params = (function() { + + /** + * Properties of a Params. + * @memberof ibc.applications.interchain_accounts.host.v1 + * @interface IParams + * @property {boolean|null} [host_enabled] Params host_enabled + * @property {Array.|null} [allow_messages] Params allow_messages + */ + + /** + * Constructs a new Params. + * @memberof ibc.applications.interchain_accounts.host.v1 + * @classdesc Represents a Params. + * @implements IParams + * @constructor + * @param {ibc.applications.interchain_accounts.host.v1.IParams=} [properties] Properties to set + */ + function Params(properties) { + this.allow_messages = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Params host_enabled. + * @member {boolean} host_enabled + * @memberof ibc.applications.interchain_accounts.host.v1.Params + * @instance + */ + Params.prototype.host_enabled = false; + + /** + * Params allow_messages. + * @member {Array.} allow_messages + * @memberof ibc.applications.interchain_accounts.host.v1.Params + * @instance + */ + Params.prototype.allow_messages = $util.emptyArray; + + /** + * Encodes the specified Params message. Does not implicitly {@link ibc.applications.interchain_accounts.host.v1.Params.verify|verify} messages. + * @function encode + * @memberof ibc.applications.interchain_accounts.host.v1.Params + * @static + * @param {ibc.applications.interchain_accounts.host.v1.IParams} message Params message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Params.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.host_enabled != null && Object.hasOwnProperty.call(message, "host_enabled")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.host_enabled); + if (message.allow_messages != null && message.allow_messages.length) + for (let i = 0; i < message.allow_messages.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.allow_messages[i]); + return writer; + }; - /** - * QueryDenomTracesResponse pagination. - * @member {cosmos.base.query.v1beta1.IPageResponse|null|undefined} pagination - * @memberof ibc.applications.transfer.v1.QueryDenomTracesResponse - * @instance - */ - QueryDenomTracesResponse.prototype.pagination = null; + /** + * Encodes the specified Params message, length delimited. Does not implicitly {@link ibc.applications.interchain_accounts.host.v1.Params.verify|verify} messages. + * @function encodeDelimited + * @memberof ibc.applications.interchain_accounts.host.v1.Params + * @static + * @param {ibc.applications.interchain_accounts.host.v1.IParams} message Params message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Params.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Encodes the specified QueryDenomTracesResponse message. Does not implicitly {@link ibc.applications.transfer.v1.QueryDenomTracesResponse.verify|verify} messages. - * @function encode - * @memberof ibc.applications.transfer.v1.QueryDenomTracesResponse - * @static - * @param {ibc.applications.transfer.v1.IQueryDenomTracesResponse} message QueryDenomTracesResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - QueryDenomTracesResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.denom_traces != null && message.denom_traces.length) - for (let i = 0; i < message.denom_traces.length; ++i) - $root.ibc.applications.transfer.v1.DenomTrace.encode(message.denom_traces[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.pagination != null && Object.hasOwnProperty.call(message, "pagination")) - $root.cosmos.base.query.v1beta1.PageResponse.encode(message.pagination, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; + /** + * Decodes a Params message from the specified reader or buffer. + * @function decode + * @memberof ibc.applications.interchain_accounts.host.v1.Params + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {ibc.applications.interchain_accounts.host.v1.Params} Params + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Params.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.interchain_accounts.host.v1.Params(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.host_enabled = reader.bool(); + break; + case 2: + if (!(message.allow_messages && message.allow_messages.length)) + message.allow_messages = []; + message.allow_messages.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Encodes the specified QueryDenomTracesResponse message, length delimited. Does not implicitly {@link ibc.applications.transfer.v1.QueryDenomTracesResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof ibc.applications.transfer.v1.QueryDenomTracesResponse - * @static - * @param {ibc.applications.transfer.v1.IQueryDenomTracesResponse} message QueryDenomTracesResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - QueryDenomTracesResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Decodes a Params message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof ibc.applications.interchain_accounts.host.v1.Params + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {ibc.applications.interchain_accounts.host.v1.Params} Params + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Params.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Decodes a QueryDenomTracesResponse message from the specified reader or buffer. - * @function decode - * @memberof ibc.applications.transfer.v1.QueryDenomTracesResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.transfer.v1.QueryDenomTracesResponse} QueryDenomTracesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - QueryDenomTracesResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.transfer.v1.QueryDenomTracesResponse(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.denom_traces && message.denom_traces.length)) - message.denom_traces = []; - message.denom_traces.push($root.ibc.applications.transfer.v1.DenomTrace.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = $root.cosmos.base.query.v1beta1.PageResponse.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; + /** + * Verifies a Params message. + * @function verify + * @memberof ibc.applications.interchain_accounts.host.v1.Params + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Params.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.host_enabled != null && message.hasOwnProperty("host_enabled")) + if (typeof message.host_enabled !== "boolean") + return "host_enabled: boolean expected"; + if (message.allow_messages != null && message.hasOwnProperty("allow_messages")) { + if (!Array.isArray(message.allow_messages)) + return "allow_messages: array expected"; + for (let i = 0; i < message.allow_messages.length; ++i) + if (!$util.isString(message.allow_messages[i])) + return "allow_messages: string[] expected"; } - } - return message; - }; - - /** - * Decodes a QueryDenomTracesResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ibc.applications.transfer.v1.QueryDenomTracesResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.transfer.v1.QueryDenomTracesResponse} QueryDenomTracesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - QueryDenomTracesResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + return null; + }; - /** - * Verifies a QueryDenomTracesResponse message. - * @function verify - * @memberof ibc.applications.transfer.v1.QueryDenomTracesResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - QueryDenomTracesResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.denom_traces != null && message.hasOwnProperty("denom_traces")) { - if (!Array.isArray(message.denom_traces)) - return "denom_traces: array expected"; - for (let i = 0; i < message.denom_traces.length; ++i) { - let error = $root.ibc.applications.transfer.v1.DenomTrace.verify(message.denom_traces[i]); - if (error) - return "denom_traces." + error; + /** + * Creates a Params message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof ibc.applications.interchain_accounts.host.v1.Params + * @static + * @param {Object.} object Plain object + * @returns {ibc.applications.interchain_accounts.host.v1.Params} Params + */ + Params.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.interchain_accounts.host.v1.Params) + return object; + let message = new $root.ibc.applications.interchain_accounts.host.v1.Params(); + if (object.host_enabled != null) + message.host_enabled = Boolean(object.host_enabled); + if (object.allow_messages) { + if (!Array.isArray(object.allow_messages)) + throw TypeError(".ibc.applications.interchain_accounts.host.v1.Params.allow_messages: array expected"); + message.allow_messages = []; + for (let i = 0; i < object.allow_messages.length; ++i) + message.allow_messages[i] = String(object.allow_messages[i]); } - } - if (message.pagination != null && message.hasOwnProperty("pagination")) { - let error = $root.cosmos.base.query.v1beta1.PageResponse.verify(message.pagination); - if (error) - return "pagination." + error; - } - return null; - }; + return message; + }; - /** - * Creates a QueryDenomTracesResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof ibc.applications.transfer.v1.QueryDenomTracesResponse - * @static - * @param {Object.} object Plain object - * @returns {ibc.applications.transfer.v1.QueryDenomTracesResponse} QueryDenomTracesResponse - */ - QueryDenomTracesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.transfer.v1.QueryDenomTracesResponse) - return object; - let message = new $root.ibc.applications.transfer.v1.QueryDenomTracesResponse(); - if (object.denom_traces) { - if (!Array.isArray(object.denom_traces)) - throw TypeError(".ibc.applications.transfer.v1.QueryDenomTracesResponse.denom_traces: array expected"); - message.denom_traces = []; - for (let i = 0; i < object.denom_traces.length; ++i) { - if (typeof object.denom_traces[i] !== "object") - throw TypeError(".ibc.applications.transfer.v1.QueryDenomTracesResponse.denom_traces: object expected"); - message.denom_traces[i] = $root.ibc.applications.transfer.v1.DenomTrace.fromObject(object.denom_traces[i]); + /** + * Creates a plain object from a Params message. Also converts values to other types if specified. + * @function toObject + * @memberof ibc.applications.interchain_accounts.host.v1.Params + * @static + * @param {ibc.applications.interchain_accounts.host.v1.Params} message Params + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Params.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) + object.allow_messages = []; + if (options.defaults) + object.host_enabled = false; + if (message.host_enabled != null && message.hasOwnProperty("host_enabled")) + object.host_enabled = message.host_enabled; + if (message.allow_messages && message.allow_messages.length) { + object.allow_messages = []; + for (let j = 0; j < message.allow_messages.length; ++j) + object.allow_messages[j] = message.allow_messages[j]; } - } - if (object.pagination != null) { - if (typeof object.pagination !== "object") - throw TypeError(".ibc.applications.transfer.v1.QueryDenomTracesResponse.pagination: object expected"); - message.pagination = $root.cosmos.base.query.v1beta1.PageResponse.fromObject(object.pagination); - } - return message; - }; + return object; + }; - /** - * Creates a plain object from a QueryDenomTracesResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof ibc.applications.transfer.v1.QueryDenomTracesResponse - * @static - * @param {ibc.applications.transfer.v1.QueryDenomTracesResponse} message QueryDenomTracesResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - QueryDenomTracesResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.arrays || options.defaults) - object.denom_traces = []; - if (options.defaults) - object.pagination = null; - if (message.denom_traces && message.denom_traces.length) { - object.denom_traces = []; - for (let j = 0; j < message.denom_traces.length; ++j) - object.denom_traces[j] = $root.ibc.applications.transfer.v1.DenomTrace.toObject(message.denom_traces[j], options); + /** + * Converts this Params to JSON. + * @function toJSON + * @memberof ibc.applications.interchain_accounts.host.v1.Params + * @instance + * @returns {Object.} JSON object + */ + Params.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return Params; + })(); + + v1.Query = (function() { + + /** + * Constructs a new Query service. + * @memberof ibc.applications.interchain_accounts.host.v1 + * @classdesc Represents a Query + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + */ + function Query(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); } - if (message.pagination != null && message.hasOwnProperty("pagination")) - object.pagination = $root.cosmos.base.query.v1beta1.PageResponse.toObject(message.pagination, options); - return object; - }; - /** - * Converts this QueryDenomTracesResponse to JSON. - * @function toJSON - * @memberof ibc.applications.transfer.v1.QueryDenomTracesResponse - * @instance - * @returns {Object.} JSON object - */ - QueryDenomTracesResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + (Query.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Query; - return QueryDenomTracesResponse; - })(); + /** + * Callback as used by {@link ibc.applications.interchain_accounts.host.v1.Query#params}. + * @memberof ibc.applications.interchain_accounts.host.v1.Query + * @typedef ParamsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.applications.interchain_accounts.host.v1.QueryParamsResponse} [response] QueryParamsResponse + */ - v1.QueryParamsRequest = (function() { + /** + * Calls Params. + * @function params + * @memberof ibc.applications.interchain_accounts.host.v1.Query + * @instance + * @param {ibc.applications.interchain_accounts.host.v1.IQueryParamsRequest} request QueryParamsRequest message or plain object + * @param {ibc.applications.interchain_accounts.host.v1.Query.ParamsCallback} callback Node-style callback called with the error, if any, and QueryParamsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Query.prototype.params = function params(request, callback) { + return this.rpcCall(params, $root.ibc.applications.interchain_accounts.host.v1.QueryParamsRequest, $root.ibc.applications.interchain_accounts.host.v1.QueryParamsResponse, request, callback); + }, "name", { value: "Params" }); - /** - * Properties of a QueryParamsRequest. - * @memberof ibc.applications.transfer.v1 - * @interface IQueryParamsRequest - */ + /** + * Calls Params. + * @function params + * @memberof ibc.applications.interchain_accounts.host.v1.Query + * @instance + * @param {ibc.applications.interchain_accounts.host.v1.IQueryParamsRequest} request QueryParamsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ - /** - * Constructs a new QueryParamsRequest. - * @memberof ibc.applications.transfer.v1 - * @classdesc Represents a QueryParamsRequest. - * @implements IQueryParamsRequest - * @constructor - * @param {ibc.applications.transfer.v1.IQueryParamsRequest=} [properties] Properties to set - */ - function QueryParamsRequest(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + return Query; + })(); - /** - * Encodes the specified QueryParamsRequest message. Does not implicitly {@link ibc.applications.transfer.v1.QueryParamsRequest.verify|verify} messages. - * @function encode - * @memberof ibc.applications.transfer.v1.QueryParamsRequest - * @static - * @param {ibc.applications.transfer.v1.IQueryParamsRequest} message QueryParamsRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - QueryParamsRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; + v1.QueryParamsRequest = (function() { - /** - * Encodes the specified QueryParamsRequest message, length delimited. Does not implicitly {@link ibc.applications.transfer.v1.QueryParamsRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof ibc.applications.transfer.v1.QueryParamsRequest - * @static - * @param {ibc.applications.transfer.v1.IQueryParamsRequest} message QueryParamsRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - QueryParamsRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Properties of a QueryParamsRequest. + * @memberof ibc.applications.interchain_accounts.host.v1 + * @interface IQueryParamsRequest + */ - /** - * Decodes a QueryParamsRequest message from the specified reader or buffer. - * @function decode - * @memberof ibc.applications.transfer.v1.QueryParamsRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.transfer.v1.QueryParamsRequest} QueryParamsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - QueryParamsRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.transfer.v1.QueryParamsRequest(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } + /** + * Constructs a new QueryParamsRequest. + * @memberof ibc.applications.interchain_accounts.host.v1 + * @classdesc Represents a QueryParamsRequest. + * @implements IQueryParamsRequest + * @constructor + * @param {ibc.applications.interchain_accounts.host.v1.IQueryParamsRequest=} [properties] Properties to set + */ + function QueryParamsRequest(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; } - return message; - }; - /** - * Decodes a QueryParamsRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ibc.applications.transfer.v1.QueryParamsRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.transfer.v1.QueryParamsRequest} QueryParamsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - QueryParamsRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Encodes the specified QueryParamsRequest message. Does not implicitly {@link ibc.applications.interchain_accounts.host.v1.QueryParamsRequest.verify|verify} messages. + * @function encode + * @memberof ibc.applications.interchain_accounts.host.v1.QueryParamsRequest + * @static + * @param {ibc.applications.interchain_accounts.host.v1.IQueryParamsRequest} message QueryParamsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + QueryParamsRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Encodes the specified QueryParamsRequest message, length delimited. Does not implicitly {@link ibc.applications.interchain_accounts.host.v1.QueryParamsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof ibc.applications.interchain_accounts.host.v1.QueryParamsRequest + * @static + * @param {ibc.applications.interchain_accounts.host.v1.IQueryParamsRequest} message QueryParamsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + QueryParamsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a QueryParamsRequest message from the specified reader or buffer. + * @function decode + * @memberof ibc.applications.interchain_accounts.host.v1.QueryParamsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {ibc.applications.interchain_accounts.host.v1.QueryParamsRequest} QueryParamsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + QueryParamsRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.interchain_accounts.host.v1.QueryParamsRequest(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Verifies a QueryParamsRequest message. - * @function verify - * @memberof ibc.applications.transfer.v1.QueryParamsRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - QueryParamsRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; + /** + * Decodes a QueryParamsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof ibc.applications.interchain_accounts.host.v1.QueryParamsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {ibc.applications.interchain_accounts.host.v1.QueryParamsRequest} QueryParamsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + QueryParamsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a QueryParamsRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof ibc.applications.transfer.v1.QueryParamsRequest - * @static - * @param {Object.} object Plain object - * @returns {ibc.applications.transfer.v1.QueryParamsRequest} QueryParamsRequest - */ - QueryParamsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.transfer.v1.QueryParamsRequest) - return object; - return new $root.ibc.applications.transfer.v1.QueryParamsRequest(); - }; + /** + * Verifies a QueryParamsRequest message. + * @function verify + * @memberof ibc.applications.interchain_accounts.host.v1.QueryParamsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + QueryParamsRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; - /** - * Creates a plain object from a QueryParamsRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof ibc.applications.transfer.v1.QueryParamsRequest - * @static - * @param {ibc.applications.transfer.v1.QueryParamsRequest} message QueryParamsRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - QueryParamsRequest.toObject = function toObject() { - return {}; - }; + /** + * Creates a QueryParamsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof ibc.applications.interchain_accounts.host.v1.QueryParamsRequest + * @static + * @param {Object.} object Plain object + * @returns {ibc.applications.interchain_accounts.host.v1.QueryParamsRequest} QueryParamsRequest + */ + QueryParamsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.interchain_accounts.host.v1.QueryParamsRequest) + return object; + return new $root.ibc.applications.interchain_accounts.host.v1.QueryParamsRequest(); + }; - /** - * Converts this QueryParamsRequest to JSON. - * @function toJSON - * @memberof ibc.applications.transfer.v1.QueryParamsRequest - * @instance - * @returns {Object.} JSON object - */ - QueryParamsRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from a QueryParamsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof ibc.applications.interchain_accounts.host.v1.QueryParamsRequest + * @static + * @param {ibc.applications.interchain_accounts.host.v1.QueryParamsRequest} message QueryParamsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + QueryParamsRequest.toObject = function toObject() { + return {}; + }; - return QueryParamsRequest; - })(); + /** + * Converts this QueryParamsRequest to JSON. + * @function toJSON + * @memberof ibc.applications.interchain_accounts.host.v1.QueryParamsRequest + * @instance + * @returns {Object.} JSON object + */ + QueryParamsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - v1.QueryParamsResponse = (function() { + return QueryParamsRequest; + })(); - /** - * Properties of a QueryParamsResponse. - * @memberof ibc.applications.transfer.v1 - * @interface IQueryParamsResponse - * @property {ibc.applications.transfer.v1.IParams|null} [params] QueryParamsResponse params - */ + v1.QueryParamsResponse = (function() { - /** - * Constructs a new QueryParamsResponse. - * @memberof ibc.applications.transfer.v1 - * @classdesc Represents a QueryParamsResponse. - * @implements IQueryParamsResponse - * @constructor - * @param {ibc.applications.transfer.v1.IQueryParamsResponse=} [properties] Properties to set - */ - function QueryParamsResponse(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Properties of a QueryParamsResponse. + * @memberof ibc.applications.interchain_accounts.host.v1 + * @interface IQueryParamsResponse + * @property {ibc.applications.interchain_accounts.host.v1.IParams|null} [params] QueryParamsResponse params + */ - /** - * QueryParamsResponse params. - * @member {ibc.applications.transfer.v1.IParams|null|undefined} params - * @memberof ibc.applications.transfer.v1.QueryParamsResponse - * @instance - */ - QueryParamsResponse.prototype.params = null; + /** + * Constructs a new QueryParamsResponse. + * @memberof ibc.applications.interchain_accounts.host.v1 + * @classdesc Represents a QueryParamsResponse. + * @implements IQueryParamsResponse + * @constructor + * @param {ibc.applications.interchain_accounts.host.v1.IQueryParamsResponse=} [properties] Properties to set + */ + function QueryParamsResponse(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Encodes the specified QueryParamsResponse message. Does not implicitly {@link ibc.applications.transfer.v1.QueryParamsResponse.verify|verify} messages. - * @function encode - * @memberof ibc.applications.transfer.v1.QueryParamsResponse - * @static - * @param {ibc.applications.transfer.v1.IQueryParamsResponse} message QueryParamsResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - QueryParamsResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.params != null && Object.hasOwnProperty.call(message, "params")) - $root.ibc.applications.transfer.v1.Params.encode(message.params, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; + /** + * QueryParamsResponse params. + * @member {ibc.applications.interchain_accounts.host.v1.IParams|null|undefined} params + * @memberof ibc.applications.interchain_accounts.host.v1.QueryParamsResponse + * @instance + */ + QueryParamsResponse.prototype.params = null; - /** - * Encodes the specified QueryParamsResponse message, length delimited. Does not implicitly {@link ibc.applications.transfer.v1.QueryParamsResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof ibc.applications.transfer.v1.QueryParamsResponse - * @static - * @param {ibc.applications.transfer.v1.IQueryParamsResponse} message QueryParamsResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - QueryParamsResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified QueryParamsResponse message. Does not implicitly {@link ibc.applications.interchain_accounts.host.v1.QueryParamsResponse.verify|verify} messages. + * @function encode + * @memberof ibc.applications.interchain_accounts.host.v1.QueryParamsResponse + * @static + * @param {ibc.applications.interchain_accounts.host.v1.IQueryParamsResponse} message QueryParamsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + QueryParamsResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.params != null && Object.hasOwnProperty.call(message, "params")) + $root.ibc.applications.interchain_accounts.host.v1.Params.encode(message.params, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; - /** - * Decodes a QueryParamsResponse message from the specified reader or buffer. - * @function decode - * @memberof ibc.applications.transfer.v1.QueryParamsResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.transfer.v1.QueryParamsResponse} QueryParamsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - QueryParamsResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.transfer.v1.QueryParamsResponse(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.params = $root.ibc.applications.transfer.v1.Params.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; + /** + * Encodes the specified QueryParamsResponse message, length delimited. Does not implicitly {@link ibc.applications.interchain_accounts.host.v1.QueryParamsResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof ibc.applications.interchain_accounts.host.v1.QueryParamsResponse + * @static + * @param {ibc.applications.interchain_accounts.host.v1.IQueryParamsResponse} message QueryParamsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + QueryParamsResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a QueryParamsResponse message from the specified reader or buffer. + * @function decode + * @memberof ibc.applications.interchain_accounts.host.v1.QueryParamsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {ibc.applications.interchain_accounts.host.v1.QueryParamsResponse} QueryParamsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + QueryParamsResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.interchain_accounts.host.v1.QueryParamsResponse(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.params = $root.ibc.applications.interchain_accounts.host.v1.Params.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } } - } - return message; - }; + return message; + }; - /** - * Decodes a QueryParamsResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ibc.applications.transfer.v1.QueryParamsResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.transfer.v1.QueryParamsResponse} QueryParamsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - QueryParamsResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a QueryParamsResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof ibc.applications.interchain_accounts.host.v1.QueryParamsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {ibc.applications.interchain_accounts.host.v1.QueryParamsResponse} QueryParamsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + QueryParamsResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies a QueryParamsResponse message. - * @function verify - * @memberof ibc.applications.transfer.v1.QueryParamsResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - QueryParamsResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.params != null && message.hasOwnProperty("params")) { - let error = $root.ibc.applications.transfer.v1.Params.verify(message.params); - if (error) - return "params." + error; - } - return null; - }; + /** + * Verifies a QueryParamsResponse message. + * @function verify + * @memberof ibc.applications.interchain_accounts.host.v1.QueryParamsResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + QueryParamsResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.params != null && message.hasOwnProperty("params")) { + let error = $root.ibc.applications.interchain_accounts.host.v1.Params.verify(message.params); + if (error) + return "params." + error; + } + return null; + }; - /** - * Creates a QueryParamsResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof ibc.applications.transfer.v1.QueryParamsResponse - * @static - * @param {Object.} object Plain object - * @returns {ibc.applications.transfer.v1.QueryParamsResponse} QueryParamsResponse - */ - QueryParamsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.transfer.v1.QueryParamsResponse) + /** + * Creates a QueryParamsResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof ibc.applications.interchain_accounts.host.v1.QueryParamsResponse + * @static + * @param {Object.} object Plain object + * @returns {ibc.applications.interchain_accounts.host.v1.QueryParamsResponse} QueryParamsResponse + */ + QueryParamsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.interchain_accounts.host.v1.QueryParamsResponse) + return object; + let message = new $root.ibc.applications.interchain_accounts.host.v1.QueryParamsResponse(); + if (object.params != null) { + if (typeof object.params !== "object") + throw TypeError(".ibc.applications.interchain_accounts.host.v1.QueryParamsResponse.params: object expected"); + message.params = $root.ibc.applications.interchain_accounts.host.v1.Params.fromObject(object.params); + } + return message; + }; + + /** + * Creates a plain object from a QueryParamsResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof ibc.applications.interchain_accounts.host.v1.QueryParamsResponse + * @static + * @param {ibc.applications.interchain_accounts.host.v1.QueryParamsResponse} message QueryParamsResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + QueryParamsResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) + object.params = null; + if (message.params != null && message.hasOwnProperty("params")) + object.params = $root.ibc.applications.interchain_accounts.host.v1.Params.toObject(message.params, options); return object; - let message = new $root.ibc.applications.transfer.v1.QueryParamsResponse(); - if (object.params != null) { - if (typeof object.params !== "object") - throw TypeError(".ibc.applications.transfer.v1.QueryParamsResponse.params: object expected"); - message.params = $root.ibc.applications.transfer.v1.Params.fromObject(object.params); - } - return message; - }; + }; - /** - * Creates a plain object from a QueryParamsResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof ibc.applications.transfer.v1.QueryParamsResponse - * @static - * @param {ibc.applications.transfer.v1.QueryParamsResponse} message QueryParamsResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - QueryParamsResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) - object.params = null; - if (message.params != null && message.hasOwnProperty("params")) - object.params = $root.ibc.applications.transfer.v1.Params.toObject(message.params, options); - return object; - }; + /** + * Converts this QueryParamsResponse to JSON. + * @function toJSON + * @memberof ibc.applications.interchain_accounts.host.v1.QueryParamsResponse + * @instance + * @returns {Object.} JSON object + */ + QueryParamsResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Converts this QueryParamsResponse to JSON. - * @function toJSON - * @memberof ibc.applications.transfer.v1.QueryParamsResponse - * @instance - * @returns {Object.} JSON object - */ - QueryParamsResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + return QueryParamsResponse; + })(); - return QueryParamsResponse; + return v1; })(); - v1.QueryDenomHashRequest = (function() { - - /** - * Properties of a QueryDenomHashRequest. - * @memberof ibc.applications.transfer.v1 - * @interface IQueryDenomHashRequest - * @property {string|null} [trace] QueryDenomHashRequest trace - */ + return host; + })(); - /** - * Constructs a new QueryDenomHashRequest. - * @memberof ibc.applications.transfer.v1 - * @classdesc Represents a QueryDenomHashRequest. - * @implements IQueryDenomHashRequest - * @constructor - * @param {ibc.applications.transfer.v1.IQueryDenomHashRequest=} [properties] Properties to set - */ - function QueryDenomHashRequest(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + return interchain_accounts; + })(); - /** - * QueryDenomHashRequest trace. - * @member {string} trace - * @memberof ibc.applications.transfer.v1.QueryDenomHashRequest - * @instance - */ - QueryDenomHashRequest.prototype.trace = ""; + applications.transfer = (function() { - /** - * Encodes the specified QueryDenomHashRequest message. Does not implicitly {@link ibc.applications.transfer.v1.QueryDenomHashRequest.verify|verify} messages. - * @function encode - * @memberof ibc.applications.transfer.v1.QueryDenomHashRequest - * @static - * @param {ibc.applications.transfer.v1.IQueryDenomHashRequest} message QueryDenomHashRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - QueryDenomHashRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.trace != null && Object.hasOwnProperty.call(message, "trace")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.trace); - return writer; - }; + /** + * Namespace transfer. + * @memberof ibc.applications + * @namespace + */ + const transfer = {}; - /** - * Encodes the specified QueryDenomHashRequest message, length delimited. Does not implicitly {@link ibc.applications.transfer.v1.QueryDenomHashRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof ibc.applications.transfer.v1.QueryDenomHashRequest - * @static - * @param {ibc.applications.transfer.v1.IQueryDenomHashRequest} message QueryDenomHashRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - QueryDenomHashRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + transfer.v1 = (function() { - /** - * Decodes a QueryDenomHashRequest message from the specified reader or buffer. - * @function decode - * @memberof ibc.applications.transfer.v1.QueryDenomHashRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.transfer.v1.QueryDenomHashRequest} QueryDenomHashRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - QueryDenomHashRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.transfer.v1.QueryDenomHashRequest(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.trace = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Namespace v1. + * @memberof ibc.applications.transfer + * @namespace + */ + const v1 = {}; - /** - * Decodes a QueryDenomHashRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ibc.applications.transfer.v1.QueryDenomHashRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.transfer.v1.QueryDenomHashRequest} QueryDenomHashRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - QueryDenomHashRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + v1.Msg = (function() { /** - * Verifies a QueryDenomHashRequest message. - * @function verify - * @memberof ibc.applications.transfer.v1.QueryDenomHashRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Constructs a new Msg service. + * @memberof ibc.applications.transfer.v1 + * @classdesc Represents a Msg + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited */ - QueryDenomHashRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.trace != null && message.hasOwnProperty("trace")) - if (!$util.isString(message.trace)) - return "trace: string expected"; - return null; - }; + function Msg(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (Msg.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Msg; /** - * Creates a QueryDenomHashRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof ibc.applications.transfer.v1.QueryDenomHashRequest - * @static - * @param {Object.} object Plain object - * @returns {ibc.applications.transfer.v1.QueryDenomHashRequest} QueryDenomHashRequest + * Callback as used by {@link ibc.applications.transfer.v1.Msg#transfer}. + * @memberof ibc.applications.transfer.v1.Msg + * @typedef TransferCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.applications.transfer.v1.MsgTransferResponse} [response] MsgTransferResponse */ - QueryDenomHashRequest.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.transfer.v1.QueryDenomHashRequest) - return object; - let message = new $root.ibc.applications.transfer.v1.QueryDenomHashRequest(); - if (object.trace != null) - message.trace = String(object.trace); - return message; - }; /** - * Creates a plain object from a QueryDenomHashRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof ibc.applications.transfer.v1.QueryDenomHashRequest - * @static - * @param {ibc.applications.transfer.v1.QueryDenomHashRequest} message QueryDenomHashRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Calls Transfer. + * @function transfer + * @memberof ibc.applications.transfer.v1.Msg + * @instance + * @param {ibc.applications.transfer.v1.IMsgTransfer} request MsgTransfer message or plain object + * @param {ibc.applications.transfer.v1.Msg.TransferCallback} callback Node-style callback called with the error, if any, and MsgTransferResponse + * @returns {undefined} + * @variation 1 */ - QueryDenomHashRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) - object.trace = ""; - if (message.trace != null && message.hasOwnProperty("trace")) - object.trace = message.trace; - return object; - }; + Object.defineProperty(Msg.prototype.transfer = function transfer(request, callback) { + return this.rpcCall(transfer, $root.ibc.applications.transfer.v1.MsgTransfer, $root.ibc.applications.transfer.v1.MsgTransferResponse, request, callback); + }, "name", { value: "Transfer" }); /** - * Converts this QueryDenomHashRequest to JSON. - * @function toJSON - * @memberof ibc.applications.transfer.v1.QueryDenomHashRequest + * Calls Transfer. + * @function transfer + * @memberof ibc.applications.transfer.v1.Msg * @instance - * @returns {Object.} JSON object + * @param {ibc.applications.transfer.v1.IMsgTransfer} request MsgTransfer message or plain object + * @returns {Promise} Promise + * @variation 2 */ - QueryDenomHashRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - return QueryDenomHashRequest; + return Msg; })(); - v1.QueryDenomHashResponse = (function() { + v1.MsgTransfer = (function() { /** - * Properties of a QueryDenomHashResponse. + * Properties of a MsgTransfer. * @memberof ibc.applications.transfer.v1 - * @interface IQueryDenomHashResponse - * @property {string|null} [hash] QueryDenomHashResponse hash + * @interface IMsgTransfer + * @property {string|null} [source_port] MsgTransfer source_port + * @property {string|null} [source_channel] MsgTransfer source_channel + * @property {cosmos.base.v1beta1.ICoin|null} [token] MsgTransfer token + * @property {string|null} [sender] MsgTransfer sender + * @property {string|null} [receiver] MsgTransfer receiver + * @property {ibc.core.client.v1.IHeight|null} [timeout_height] MsgTransfer timeout_height + * @property {Long|null} [timeout_timestamp] MsgTransfer timeout_timestamp + * @property {string|null} [memo] MsgTransfer memo */ /** - * Constructs a new QueryDenomHashResponse. + * Constructs a new MsgTransfer. * @memberof ibc.applications.transfer.v1 - * @classdesc Represents a QueryDenomHashResponse. - * @implements IQueryDenomHashResponse + * @classdesc Represents a MsgTransfer. + * @implements IMsgTransfer * @constructor - * @param {ibc.applications.transfer.v1.IQueryDenomHashResponse=} [properties] Properties to set + * @param {ibc.applications.transfer.v1.IMsgTransfer=} [properties] Properties to set */ - function QueryDenomHashResponse(properties) { + function MsgTransfer(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -33101,252 +40273,154 @@ export const ibc = $root.ibc = (() => { } /** - * QueryDenomHashResponse hash. - * @member {string} hash - * @memberof ibc.applications.transfer.v1.QueryDenomHashResponse + * MsgTransfer source_port. + * @member {string} source_port + * @memberof ibc.applications.transfer.v1.MsgTransfer * @instance */ - QueryDenomHashResponse.prototype.hash = ""; - - /** - * Encodes the specified QueryDenomHashResponse message. Does not implicitly {@link ibc.applications.transfer.v1.QueryDenomHashResponse.verify|verify} messages. - * @function encode - * @memberof ibc.applications.transfer.v1.QueryDenomHashResponse - * @static - * @param {ibc.applications.transfer.v1.IQueryDenomHashResponse} message QueryDenomHashResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - QueryDenomHashResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.hash != null && Object.hasOwnProperty.call(message, "hash")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.hash); - return writer; - }; - - /** - * Encodes the specified QueryDenomHashResponse message, length delimited. Does not implicitly {@link ibc.applications.transfer.v1.QueryDenomHashResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof ibc.applications.transfer.v1.QueryDenomHashResponse - * @static - * @param {ibc.applications.transfer.v1.IQueryDenomHashResponse} message QueryDenomHashResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - QueryDenomHashResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a QueryDenomHashResponse message from the specified reader or buffer. - * @function decode - * @memberof ibc.applications.transfer.v1.QueryDenomHashResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.transfer.v1.QueryDenomHashResponse} QueryDenomHashResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - QueryDenomHashResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.transfer.v1.QueryDenomHashResponse(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.hash = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a QueryDenomHashResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ibc.applications.transfer.v1.QueryDenomHashResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.transfer.v1.QueryDenomHashResponse} QueryDenomHashResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - QueryDenomHashResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a QueryDenomHashResponse message. - * @function verify - * @memberof ibc.applications.transfer.v1.QueryDenomHashResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - QueryDenomHashResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.hash != null && message.hasOwnProperty("hash")) - if (!$util.isString(message.hash)) - return "hash: string expected"; - return null; - }; + MsgTransfer.prototype.source_port = ""; /** - * Creates a QueryDenomHashResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof ibc.applications.transfer.v1.QueryDenomHashResponse - * @static - * @param {Object.} object Plain object - * @returns {ibc.applications.transfer.v1.QueryDenomHashResponse} QueryDenomHashResponse + * MsgTransfer source_channel. + * @member {string} source_channel + * @memberof ibc.applications.transfer.v1.MsgTransfer + * @instance */ - QueryDenomHashResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.transfer.v1.QueryDenomHashResponse) - return object; - let message = new $root.ibc.applications.transfer.v1.QueryDenomHashResponse(); - if (object.hash != null) - message.hash = String(object.hash); - return message; - }; + MsgTransfer.prototype.source_channel = ""; /** - * Creates a plain object from a QueryDenomHashResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof ibc.applications.transfer.v1.QueryDenomHashResponse - * @static - * @param {ibc.applications.transfer.v1.QueryDenomHashResponse} message QueryDenomHashResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * MsgTransfer token. + * @member {cosmos.base.v1beta1.ICoin|null|undefined} token + * @memberof ibc.applications.transfer.v1.MsgTransfer + * @instance */ - QueryDenomHashResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) - object.hash = ""; - if (message.hash != null && message.hasOwnProperty("hash")) - object.hash = message.hash; - return object; - }; + MsgTransfer.prototype.token = null; /** - * Converts this QueryDenomHashResponse to JSON. - * @function toJSON - * @memberof ibc.applications.transfer.v1.QueryDenomHashResponse + * MsgTransfer sender. + * @member {string} sender + * @memberof ibc.applications.transfer.v1.MsgTransfer * @instance - * @returns {Object.} JSON object */ - QueryDenomHashResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return QueryDenomHashResponse; - })(); - - v1.QueryEscrowAddressRequest = (function() { + MsgTransfer.prototype.sender = ""; /** - * Properties of a QueryEscrowAddressRequest. - * @memberof ibc.applications.transfer.v1 - * @interface IQueryEscrowAddressRequest - * @property {string|null} [port_id] QueryEscrowAddressRequest port_id - * @property {string|null} [channel_id] QueryEscrowAddressRequest channel_id + * MsgTransfer receiver. + * @member {string} receiver + * @memberof ibc.applications.transfer.v1.MsgTransfer + * @instance */ + MsgTransfer.prototype.receiver = ""; /** - * Constructs a new QueryEscrowAddressRequest. - * @memberof ibc.applications.transfer.v1 - * @classdesc Represents a QueryEscrowAddressRequest. - * @implements IQueryEscrowAddressRequest - * @constructor - * @param {ibc.applications.transfer.v1.IQueryEscrowAddressRequest=} [properties] Properties to set + * MsgTransfer timeout_height. + * @member {ibc.core.client.v1.IHeight|null|undefined} timeout_height + * @memberof ibc.applications.transfer.v1.MsgTransfer + * @instance */ - function QueryEscrowAddressRequest(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + MsgTransfer.prototype.timeout_height = null; /** - * QueryEscrowAddressRequest port_id. - * @member {string} port_id - * @memberof ibc.applications.transfer.v1.QueryEscrowAddressRequest + * MsgTransfer timeout_timestamp. + * @member {Long} timeout_timestamp + * @memberof ibc.applications.transfer.v1.MsgTransfer * @instance */ - QueryEscrowAddressRequest.prototype.port_id = ""; + MsgTransfer.prototype.timeout_timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** - * QueryEscrowAddressRequest channel_id. - * @member {string} channel_id - * @memberof ibc.applications.transfer.v1.QueryEscrowAddressRequest + * MsgTransfer memo. + * @member {string} memo + * @memberof ibc.applications.transfer.v1.MsgTransfer * @instance */ - QueryEscrowAddressRequest.prototype.channel_id = ""; + MsgTransfer.prototype.memo = ""; /** - * Encodes the specified QueryEscrowAddressRequest message. Does not implicitly {@link ibc.applications.transfer.v1.QueryEscrowAddressRequest.verify|verify} messages. + * Encodes the specified MsgTransfer message. Does not implicitly {@link ibc.applications.transfer.v1.MsgTransfer.verify|verify} messages. * @function encode - * @memberof ibc.applications.transfer.v1.QueryEscrowAddressRequest + * @memberof ibc.applications.transfer.v1.MsgTransfer * @static - * @param {ibc.applications.transfer.v1.IQueryEscrowAddressRequest} message QueryEscrowAddressRequest message or plain object to encode + * @param {ibc.applications.transfer.v1.IMsgTransfer} message MsgTransfer message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryEscrowAddressRequest.encode = function encode(message, writer) { + MsgTransfer.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.port_id != null && Object.hasOwnProperty.call(message, "port_id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.port_id); - if (message.channel_id != null && Object.hasOwnProperty.call(message, "channel_id")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.channel_id); + if (message.source_port != null && Object.hasOwnProperty.call(message, "source_port")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.source_port); + if (message.source_channel != null && Object.hasOwnProperty.call(message, "source_channel")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.source_channel); + if (message.token != null && Object.hasOwnProperty.call(message, "token")) + $root.cosmos.base.v1beta1.Coin.encode(message.token, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.sender != null && Object.hasOwnProperty.call(message, "sender")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.sender); + if (message.receiver != null && Object.hasOwnProperty.call(message, "receiver")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.receiver); + if (message.timeout_height != null && Object.hasOwnProperty.call(message, "timeout_height")) + $root.ibc.core.client.v1.Height.encode(message.timeout_height, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.timeout_timestamp != null && Object.hasOwnProperty.call(message, "timeout_timestamp")) + writer.uint32(/* id 7, wireType 0 =*/56).uint64(message.timeout_timestamp); + if (message.memo != null && Object.hasOwnProperty.call(message, "memo")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.memo); return writer; }; /** - * Encodes the specified QueryEscrowAddressRequest message, length delimited. Does not implicitly {@link ibc.applications.transfer.v1.QueryEscrowAddressRequest.verify|verify} messages. + * Encodes the specified MsgTransfer message, length delimited. Does not implicitly {@link ibc.applications.transfer.v1.MsgTransfer.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.applications.transfer.v1.QueryEscrowAddressRequest + * @memberof ibc.applications.transfer.v1.MsgTransfer * @static - * @param {ibc.applications.transfer.v1.IQueryEscrowAddressRequest} message QueryEscrowAddressRequest message or plain object to encode + * @param {ibc.applications.transfer.v1.IMsgTransfer} message MsgTransfer message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryEscrowAddressRequest.encodeDelimited = function encodeDelimited(message, writer) { + MsgTransfer.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryEscrowAddressRequest message from the specified reader or buffer. + * Decodes a MsgTransfer message from the specified reader or buffer. * @function decode - * @memberof ibc.applications.transfer.v1.QueryEscrowAddressRequest + * @memberof ibc.applications.transfer.v1.MsgTransfer * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.transfer.v1.QueryEscrowAddressRequest} QueryEscrowAddressRequest + * @returns {ibc.applications.transfer.v1.MsgTransfer} MsgTransfer * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryEscrowAddressRequest.decode = function decode(reader, length) { + MsgTransfer.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.transfer.v1.QueryEscrowAddressRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.transfer.v1.MsgTransfer(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.port_id = reader.string(); + message.source_port = reader.string(); break; case 2: - message.channel_id = reader.string(); + message.source_channel = reader.string(); + break; + case 3: + message.token = $root.cosmos.base.v1beta1.Coin.decode(reader, reader.uint32()); + break; + case 4: + message.sender = reader.string(); + break; + case 5: + message.receiver = reader.string(); + break; + case 6: + message.timeout_height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); + break; + case 7: + message.timeout_timestamp = reader.uint64(); + break; + case 8: + message.memo = reader.string(); break; default: reader.skipType(tag & 7); @@ -33357,116 +40431,188 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a QueryEscrowAddressRequest message from the specified reader or buffer, length delimited. + * Decodes a MsgTransfer message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.applications.transfer.v1.QueryEscrowAddressRequest + * @memberof ibc.applications.transfer.v1.MsgTransfer * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.transfer.v1.QueryEscrowAddressRequest} QueryEscrowAddressRequest + * @returns {ibc.applications.transfer.v1.MsgTransfer} MsgTransfer * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryEscrowAddressRequest.decodeDelimited = function decodeDelimited(reader) { + MsgTransfer.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryEscrowAddressRequest message. + * Verifies a MsgTransfer message. * @function verify - * @memberof ibc.applications.transfer.v1.QueryEscrowAddressRequest + * @memberof ibc.applications.transfer.v1.MsgTransfer * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryEscrowAddressRequest.verify = function verify(message) { + MsgTransfer.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.port_id != null && message.hasOwnProperty("port_id")) - if (!$util.isString(message.port_id)) - return "port_id: string expected"; - if (message.channel_id != null && message.hasOwnProperty("channel_id")) - if (!$util.isString(message.channel_id)) - return "channel_id: string expected"; + if (message.source_port != null && message.hasOwnProperty("source_port")) + if (!$util.isString(message.source_port)) + return "source_port: string expected"; + if (message.source_channel != null && message.hasOwnProperty("source_channel")) + if (!$util.isString(message.source_channel)) + return "source_channel: string expected"; + if (message.token != null && message.hasOwnProperty("token")) { + let error = $root.cosmos.base.v1beta1.Coin.verify(message.token); + if (error) + return "token." + error; + } + if (message.sender != null && message.hasOwnProperty("sender")) + if (!$util.isString(message.sender)) + return "sender: string expected"; + if (message.receiver != null && message.hasOwnProperty("receiver")) + if (!$util.isString(message.receiver)) + return "receiver: string expected"; + if (message.timeout_height != null && message.hasOwnProperty("timeout_height")) { + let error = $root.ibc.core.client.v1.Height.verify(message.timeout_height); + if (error) + return "timeout_height." + error; + } + if (message.timeout_timestamp != null && message.hasOwnProperty("timeout_timestamp")) + if (!$util.isInteger(message.timeout_timestamp) && !(message.timeout_timestamp && $util.isInteger(message.timeout_timestamp.low) && $util.isInteger(message.timeout_timestamp.high))) + return "timeout_timestamp: integer|Long expected"; + if (message.memo != null && message.hasOwnProperty("memo")) + if (!$util.isString(message.memo)) + return "memo: string expected"; return null; }; /** - * Creates a QueryEscrowAddressRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MsgTransfer message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.applications.transfer.v1.QueryEscrowAddressRequest + * @memberof ibc.applications.transfer.v1.MsgTransfer * @static * @param {Object.} object Plain object - * @returns {ibc.applications.transfer.v1.QueryEscrowAddressRequest} QueryEscrowAddressRequest - */ - QueryEscrowAddressRequest.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.transfer.v1.QueryEscrowAddressRequest) - return object; - let message = new $root.ibc.applications.transfer.v1.QueryEscrowAddressRequest(); - if (object.port_id != null) - message.port_id = String(object.port_id); - if (object.channel_id != null) - message.channel_id = String(object.channel_id); + * @returns {ibc.applications.transfer.v1.MsgTransfer} MsgTransfer + */ + MsgTransfer.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.transfer.v1.MsgTransfer) + return object; + let message = new $root.ibc.applications.transfer.v1.MsgTransfer(); + if (object.source_port != null) + message.source_port = String(object.source_port); + if (object.source_channel != null) + message.source_channel = String(object.source_channel); + if (object.token != null) { + if (typeof object.token !== "object") + throw TypeError(".ibc.applications.transfer.v1.MsgTransfer.token: object expected"); + message.token = $root.cosmos.base.v1beta1.Coin.fromObject(object.token); + } + if (object.sender != null) + message.sender = String(object.sender); + if (object.receiver != null) + message.receiver = String(object.receiver); + if (object.timeout_height != null) { + if (typeof object.timeout_height !== "object") + throw TypeError(".ibc.applications.transfer.v1.MsgTransfer.timeout_height: object expected"); + message.timeout_height = $root.ibc.core.client.v1.Height.fromObject(object.timeout_height); + } + if (object.timeout_timestamp != null) + if ($util.Long) + (message.timeout_timestamp = $util.Long.fromValue(object.timeout_timestamp)).unsigned = true; + else if (typeof object.timeout_timestamp === "string") + message.timeout_timestamp = parseInt(object.timeout_timestamp, 10); + else if (typeof object.timeout_timestamp === "number") + message.timeout_timestamp = object.timeout_timestamp; + else if (typeof object.timeout_timestamp === "object") + message.timeout_timestamp = new $util.LongBits(object.timeout_timestamp.low >>> 0, object.timeout_timestamp.high >>> 0).toNumber(true); + if (object.memo != null) + message.memo = String(object.memo); return message; }; /** - * Creates a plain object from a QueryEscrowAddressRequest message. Also converts values to other types if specified. + * Creates a plain object from a MsgTransfer message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.applications.transfer.v1.QueryEscrowAddressRequest + * @memberof ibc.applications.transfer.v1.MsgTransfer * @static - * @param {ibc.applications.transfer.v1.QueryEscrowAddressRequest} message QueryEscrowAddressRequest + * @param {ibc.applications.transfer.v1.MsgTransfer} message MsgTransfer * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryEscrowAddressRequest.toObject = function toObject(message, options) { + MsgTransfer.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - object.port_id = ""; - object.channel_id = ""; + object.source_port = ""; + object.source_channel = ""; + object.token = null; + object.sender = ""; + object.receiver = ""; + object.timeout_height = null; + if ($util.Long) { + let long = new $util.Long(0, 0, true); + object.timeout_timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.timeout_timestamp = options.longs === String ? "0" : 0; + object.memo = ""; } - if (message.port_id != null && message.hasOwnProperty("port_id")) - object.port_id = message.port_id; - if (message.channel_id != null && message.hasOwnProperty("channel_id")) - object.channel_id = message.channel_id; + if (message.source_port != null && message.hasOwnProperty("source_port")) + object.source_port = message.source_port; + if (message.source_channel != null && message.hasOwnProperty("source_channel")) + object.source_channel = message.source_channel; + if (message.token != null && message.hasOwnProperty("token")) + object.token = $root.cosmos.base.v1beta1.Coin.toObject(message.token, options); + if (message.sender != null && message.hasOwnProperty("sender")) + object.sender = message.sender; + if (message.receiver != null && message.hasOwnProperty("receiver")) + object.receiver = message.receiver; + if (message.timeout_height != null && message.hasOwnProperty("timeout_height")) + object.timeout_height = $root.ibc.core.client.v1.Height.toObject(message.timeout_height, options); + if (message.timeout_timestamp != null && message.hasOwnProperty("timeout_timestamp")) + if (typeof message.timeout_timestamp === "number") + object.timeout_timestamp = options.longs === String ? String(message.timeout_timestamp) : message.timeout_timestamp; + else + object.timeout_timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timeout_timestamp) : options.longs === Number ? new $util.LongBits(message.timeout_timestamp.low >>> 0, message.timeout_timestamp.high >>> 0).toNumber(true) : message.timeout_timestamp; + if (message.memo != null && message.hasOwnProperty("memo")) + object.memo = message.memo; return object; }; /** - * Converts this QueryEscrowAddressRequest to JSON. + * Converts this MsgTransfer to JSON. * @function toJSON - * @memberof ibc.applications.transfer.v1.QueryEscrowAddressRequest + * @memberof ibc.applications.transfer.v1.MsgTransfer * @instance * @returns {Object.} JSON object */ - QueryEscrowAddressRequest.prototype.toJSON = function toJSON() { + MsgTransfer.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryEscrowAddressRequest; + return MsgTransfer; })(); - v1.QueryEscrowAddressResponse = (function() { + v1.MsgTransferResponse = (function() { /** - * Properties of a QueryEscrowAddressResponse. + * Properties of a MsgTransferResponse. * @memberof ibc.applications.transfer.v1 - * @interface IQueryEscrowAddressResponse - * @property {string|null} [escrow_address] QueryEscrowAddressResponse escrow_address + * @interface IMsgTransferResponse + * @property {Long|null} [sequence] MsgTransferResponse sequence */ /** - * Constructs a new QueryEscrowAddressResponse. + * Constructs a new MsgTransferResponse. * @memberof ibc.applications.transfer.v1 - * @classdesc Represents a QueryEscrowAddressResponse. - * @implements IQueryEscrowAddressResponse + * @classdesc Represents a MsgTransferResponse. + * @implements IMsgTransferResponse * @constructor - * @param {ibc.applications.transfer.v1.IQueryEscrowAddressResponse=} [properties] Properties to set + * @param {ibc.applications.transfer.v1.IMsgTransferResponse=} [properties] Properties to set */ - function QueryEscrowAddressResponse(properties) { + function MsgTransferResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -33474,63 +40620,63 @@ export const ibc = $root.ibc = (() => { } /** - * QueryEscrowAddressResponse escrow_address. - * @member {string} escrow_address - * @memberof ibc.applications.transfer.v1.QueryEscrowAddressResponse + * MsgTransferResponse sequence. + * @member {Long} sequence + * @memberof ibc.applications.transfer.v1.MsgTransferResponse * @instance */ - QueryEscrowAddressResponse.prototype.escrow_address = ""; + MsgTransferResponse.prototype.sequence = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** - * Encodes the specified QueryEscrowAddressResponse message. Does not implicitly {@link ibc.applications.transfer.v1.QueryEscrowAddressResponse.verify|verify} messages. + * Encodes the specified MsgTransferResponse message. Does not implicitly {@link ibc.applications.transfer.v1.MsgTransferResponse.verify|verify} messages. * @function encode - * @memberof ibc.applications.transfer.v1.QueryEscrowAddressResponse + * @memberof ibc.applications.transfer.v1.MsgTransferResponse * @static - * @param {ibc.applications.transfer.v1.IQueryEscrowAddressResponse} message QueryEscrowAddressResponse message or plain object to encode + * @param {ibc.applications.transfer.v1.IMsgTransferResponse} message MsgTransferResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryEscrowAddressResponse.encode = function encode(message, writer) { + MsgTransferResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.escrow_address != null && Object.hasOwnProperty.call(message, "escrow_address")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.escrow_address); + if (message.sequence != null && Object.hasOwnProperty.call(message, "sequence")) + writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.sequence); return writer; }; /** - * Encodes the specified QueryEscrowAddressResponse message, length delimited. Does not implicitly {@link ibc.applications.transfer.v1.QueryEscrowAddressResponse.verify|verify} messages. + * Encodes the specified MsgTransferResponse message, length delimited. Does not implicitly {@link ibc.applications.transfer.v1.MsgTransferResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.applications.transfer.v1.QueryEscrowAddressResponse + * @memberof ibc.applications.transfer.v1.MsgTransferResponse * @static - * @param {ibc.applications.transfer.v1.IQueryEscrowAddressResponse} message QueryEscrowAddressResponse message or plain object to encode + * @param {ibc.applications.transfer.v1.IMsgTransferResponse} message MsgTransferResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryEscrowAddressResponse.encodeDelimited = function encodeDelimited(message, writer) { + MsgTransferResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryEscrowAddressResponse message from the specified reader or buffer. + * Decodes a MsgTransferResponse message from the specified reader or buffer. * @function decode - * @memberof ibc.applications.transfer.v1.QueryEscrowAddressResponse + * @memberof ibc.applications.transfer.v1.MsgTransferResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.transfer.v1.QueryEscrowAddressResponse} QueryEscrowAddressResponse + * @returns {ibc.applications.transfer.v1.MsgTransferResponse} MsgTransferResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryEscrowAddressResponse.decode = function decode(reader, length) { + MsgTransferResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.transfer.v1.QueryEscrowAddressResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.transfer.v1.MsgTransferResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.escrow_address = reader.string(); + message.sequence = reader.uint64(); break; default: reader.skipType(tag & 7); @@ -33541,110 +40687,122 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a QueryEscrowAddressResponse message from the specified reader or buffer, length delimited. + * Decodes a MsgTransferResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.applications.transfer.v1.QueryEscrowAddressResponse + * @memberof ibc.applications.transfer.v1.MsgTransferResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.transfer.v1.QueryEscrowAddressResponse} QueryEscrowAddressResponse + * @returns {ibc.applications.transfer.v1.MsgTransferResponse} MsgTransferResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryEscrowAddressResponse.decodeDelimited = function decodeDelimited(reader) { + MsgTransferResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryEscrowAddressResponse message. + * Verifies a MsgTransferResponse message. * @function verify - * @memberof ibc.applications.transfer.v1.QueryEscrowAddressResponse + * @memberof ibc.applications.transfer.v1.MsgTransferResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryEscrowAddressResponse.verify = function verify(message) { + MsgTransferResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.escrow_address != null && message.hasOwnProperty("escrow_address")) - if (!$util.isString(message.escrow_address)) - return "escrow_address: string expected"; + if (message.sequence != null && message.hasOwnProperty("sequence")) + if (!$util.isInteger(message.sequence) && !(message.sequence && $util.isInteger(message.sequence.low) && $util.isInteger(message.sequence.high))) + return "sequence: integer|Long expected"; return null; }; /** - * Creates a QueryEscrowAddressResponse message from a plain object. Also converts values to their respective internal types. + * Creates a MsgTransferResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.applications.transfer.v1.QueryEscrowAddressResponse + * @memberof ibc.applications.transfer.v1.MsgTransferResponse * @static * @param {Object.} object Plain object - * @returns {ibc.applications.transfer.v1.QueryEscrowAddressResponse} QueryEscrowAddressResponse + * @returns {ibc.applications.transfer.v1.MsgTransferResponse} MsgTransferResponse */ - QueryEscrowAddressResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.transfer.v1.QueryEscrowAddressResponse) + MsgTransferResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.transfer.v1.MsgTransferResponse) return object; - let message = new $root.ibc.applications.transfer.v1.QueryEscrowAddressResponse(); - if (object.escrow_address != null) - message.escrow_address = String(object.escrow_address); + let message = new $root.ibc.applications.transfer.v1.MsgTransferResponse(); + if (object.sequence != null) + if ($util.Long) + (message.sequence = $util.Long.fromValue(object.sequence)).unsigned = true; + else if (typeof object.sequence === "string") + message.sequence = parseInt(object.sequence, 10); + else if (typeof object.sequence === "number") + message.sequence = object.sequence; + else if (typeof object.sequence === "object") + message.sequence = new $util.LongBits(object.sequence.low >>> 0, object.sequence.high >>> 0).toNumber(true); return message; }; /** - * Creates a plain object from a QueryEscrowAddressResponse message. Also converts values to other types if specified. + * Creates a plain object from a MsgTransferResponse message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.applications.transfer.v1.QueryEscrowAddressResponse + * @memberof ibc.applications.transfer.v1.MsgTransferResponse * @static - * @param {ibc.applications.transfer.v1.QueryEscrowAddressResponse} message QueryEscrowAddressResponse + * @param {ibc.applications.transfer.v1.MsgTransferResponse} message MsgTransferResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryEscrowAddressResponse.toObject = function toObject(message, options) { + MsgTransferResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) - object.escrow_address = ""; - if (message.escrow_address != null && message.hasOwnProperty("escrow_address")) - object.escrow_address = message.escrow_address; + if ($util.Long) { + let long = new $util.Long(0, 0, true); + object.sequence = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.sequence = options.longs === String ? "0" : 0; + if (message.sequence != null && message.hasOwnProperty("sequence")) + if (typeof message.sequence === "number") + object.sequence = options.longs === String ? String(message.sequence) : message.sequence; + else + object.sequence = options.longs === String ? $util.Long.prototype.toString.call(message.sequence) : options.longs === Number ? new $util.LongBits(message.sequence.low >>> 0, message.sequence.high >>> 0).toNumber(true) : message.sequence; return object; }; /** - * Converts this QueryEscrowAddressResponse to JSON. + * Converts this MsgTransferResponse to JSON. * @function toJSON - * @memberof ibc.applications.transfer.v1.QueryEscrowAddressResponse + * @memberof ibc.applications.transfer.v1.MsgTransferResponse * @instance * @returns {Object.} JSON object */ - QueryEscrowAddressResponse.prototype.toJSON = function toJSON() { + MsgTransferResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryEscrowAddressResponse; + return MsgTransferResponse; })(); - v1.GenesisState = (function() { + v1.DenomTrace = (function() { /** - * Properties of a GenesisState. + * Properties of a DenomTrace. * @memberof ibc.applications.transfer.v1 - * @interface IGenesisState - * @property {string|null} [port_id] GenesisState port_id - * @property {Array.|null} [denom_traces] GenesisState denom_traces - * @property {ibc.applications.transfer.v1.IParams|null} [params] GenesisState params + * @interface IDenomTrace + * @property {string|null} [path] DenomTrace path + * @property {string|null} [base_denom] DenomTrace base_denom */ /** - * Constructs a new GenesisState. + * Constructs a new DenomTrace. * @memberof ibc.applications.transfer.v1 - * @classdesc Represents a GenesisState. - * @implements IGenesisState + * @classdesc Represents a DenomTrace. + * @implements IDenomTrace * @constructor - * @param {ibc.applications.transfer.v1.IGenesisState=} [properties] Properties to set + * @param {ibc.applications.transfer.v1.IDenomTrace=} [properties] Properties to set */ - function GenesisState(properties) { - this.denom_traces = []; + function DenomTrace(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -33652,92 +40810,76 @@ export const ibc = $root.ibc = (() => { } /** - * GenesisState port_id. - * @member {string} port_id - * @memberof ibc.applications.transfer.v1.GenesisState - * @instance - */ - GenesisState.prototype.port_id = ""; - - /** - * GenesisState denom_traces. - * @member {Array.} denom_traces - * @memberof ibc.applications.transfer.v1.GenesisState + * DenomTrace path. + * @member {string} path + * @memberof ibc.applications.transfer.v1.DenomTrace * @instance */ - GenesisState.prototype.denom_traces = $util.emptyArray; + DenomTrace.prototype.path = ""; /** - * GenesisState params. - * @member {ibc.applications.transfer.v1.IParams|null|undefined} params - * @memberof ibc.applications.transfer.v1.GenesisState + * DenomTrace base_denom. + * @member {string} base_denom + * @memberof ibc.applications.transfer.v1.DenomTrace * @instance */ - GenesisState.prototype.params = null; + DenomTrace.prototype.base_denom = ""; /** - * Encodes the specified GenesisState message. Does not implicitly {@link ibc.applications.transfer.v1.GenesisState.verify|verify} messages. + * Encodes the specified DenomTrace message. Does not implicitly {@link ibc.applications.transfer.v1.DenomTrace.verify|verify} messages. * @function encode - * @memberof ibc.applications.transfer.v1.GenesisState + * @memberof ibc.applications.transfer.v1.DenomTrace * @static - * @param {ibc.applications.transfer.v1.IGenesisState} message GenesisState message or plain object to encode + * @param {ibc.applications.transfer.v1.IDenomTrace} message DenomTrace message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GenesisState.encode = function encode(message, writer) { + DenomTrace.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.port_id != null && Object.hasOwnProperty.call(message, "port_id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.port_id); - if (message.denom_traces != null && message.denom_traces.length) - for (let i = 0; i < message.denom_traces.length; ++i) - $root.ibc.applications.transfer.v1.DenomTrace.encode(message.denom_traces[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.params != null && Object.hasOwnProperty.call(message, "params")) - $root.ibc.applications.transfer.v1.Params.encode(message.params, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.path != null && Object.hasOwnProperty.call(message, "path")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.path); + if (message.base_denom != null && Object.hasOwnProperty.call(message, "base_denom")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.base_denom); return writer; }; /** - * Encodes the specified GenesisState message, length delimited. Does not implicitly {@link ibc.applications.transfer.v1.GenesisState.verify|verify} messages. + * Encodes the specified DenomTrace message, length delimited. Does not implicitly {@link ibc.applications.transfer.v1.DenomTrace.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.applications.transfer.v1.GenesisState + * @memberof ibc.applications.transfer.v1.DenomTrace * @static - * @param {ibc.applications.transfer.v1.IGenesisState} message GenesisState message or plain object to encode + * @param {ibc.applications.transfer.v1.IDenomTrace} message DenomTrace message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GenesisState.encodeDelimited = function encodeDelimited(message, writer) { + DenomTrace.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GenesisState message from the specified reader or buffer. + * Decodes a DenomTrace message from the specified reader or buffer. * @function decode - * @memberof ibc.applications.transfer.v1.GenesisState + * @memberof ibc.applications.transfer.v1.DenomTrace * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.transfer.v1.GenesisState} GenesisState + * @returns {ibc.applications.transfer.v1.DenomTrace} DenomTrace * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GenesisState.decode = function decode(reader, length) { + DenomTrace.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.transfer.v1.GenesisState(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.transfer.v1.DenomTrace(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.port_id = reader.string(); + message.path = reader.string(); break; case 2: - if (!(message.denom_traces && message.denom_traces.length)) - message.denom_traces = []; - message.denom_traces.push($root.ibc.applications.transfer.v1.DenomTrace.decode(reader, reader.uint32())); - break; - case 3: - message.params = $root.ibc.applications.transfer.v1.Params.decode(reader, reader.uint32()); + message.base_denom = reader.string(); break; default: reader.skipType(tag & 7); @@ -33748,163 +40890,117 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a GenesisState message from the specified reader or buffer, length delimited. + * Decodes a DenomTrace message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.applications.transfer.v1.GenesisState + * @memberof ibc.applications.transfer.v1.DenomTrace * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.transfer.v1.GenesisState} GenesisState + * @returns {ibc.applications.transfer.v1.DenomTrace} DenomTrace * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GenesisState.decodeDelimited = function decodeDelimited(reader) { + DenomTrace.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GenesisState message. + * Verifies a DenomTrace message. * @function verify - * @memberof ibc.applications.transfer.v1.GenesisState + * @memberof ibc.applications.transfer.v1.DenomTrace * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GenesisState.verify = function verify(message) { + DenomTrace.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.port_id != null && message.hasOwnProperty("port_id")) - if (!$util.isString(message.port_id)) - return "port_id: string expected"; - if (message.denom_traces != null && message.hasOwnProperty("denom_traces")) { - if (!Array.isArray(message.denom_traces)) - return "denom_traces: array expected"; - for (let i = 0; i < message.denom_traces.length; ++i) { - let error = $root.ibc.applications.transfer.v1.DenomTrace.verify(message.denom_traces[i]); - if (error) - return "denom_traces." + error; - } - } - if (message.params != null && message.hasOwnProperty("params")) { - let error = $root.ibc.applications.transfer.v1.Params.verify(message.params); - if (error) - return "params." + error; - } + if (message.path != null && message.hasOwnProperty("path")) + if (!$util.isString(message.path)) + return "path: string expected"; + if (message.base_denom != null && message.hasOwnProperty("base_denom")) + if (!$util.isString(message.base_denom)) + return "base_denom: string expected"; return null; }; /** - * Creates a GenesisState message from a plain object. Also converts values to their respective internal types. + * Creates a DenomTrace message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.applications.transfer.v1.GenesisState + * @memberof ibc.applications.transfer.v1.DenomTrace * @static * @param {Object.} object Plain object - * @returns {ibc.applications.transfer.v1.GenesisState} GenesisState + * @returns {ibc.applications.transfer.v1.DenomTrace} DenomTrace */ - GenesisState.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.transfer.v1.GenesisState) + DenomTrace.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.transfer.v1.DenomTrace) return object; - let message = new $root.ibc.applications.transfer.v1.GenesisState(); - if (object.port_id != null) - message.port_id = String(object.port_id); - if (object.denom_traces) { - if (!Array.isArray(object.denom_traces)) - throw TypeError(".ibc.applications.transfer.v1.GenesisState.denom_traces: array expected"); - message.denom_traces = []; - for (let i = 0; i < object.denom_traces.length; ++i) { - if (typeof object.denom_traces[i] !== "object") - throw TypeError(".ibc.applications.transfer.v1.GenesisState.denom_traces: object expected"); - message.denom_traces[i] = $root.ibc.applications.transfer.v1.DenomTrace.fromObject(object.denom_traces[i]); - } - } - if (object.params != null) { - if (typeof object.params !== "object") - throw TypeError(".ibc.applications.transfer.v1.GenesisState.params: object expected"); - message.params = $root.ibc.applications.transfer.v1.Params.fromObject(object.params); - } + let message = new $root.ibc.applications.transfer.v1.DenomTrace(); + if (object.path != null) + message.path = String(object.path); + if (object.base_denom != null) + message.base_denom = String(object.base_denom); return message; }; /** - * Creates a plain object from a GenesisState message. Also converts values to other types if specified. + * Creates a plain object from a DenomTrace message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.applications.transfer.v1.GenesisState + * @memberof ibc.applications.transfer.v1.DenomTrace * @static - * @param {ibc.applications.transfer.v1.GenesisState} message GenesisState + * @param {ibc.applications.transfer.v1.DenomTrace} message DenomTrace * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GenesisState.toObject = function toObject(message, options) { + DenomTrace.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.denom_traces = []; if (options.defaults) { - object.port_id = ""; - object.params = null; - } - if (message.port_id != null && message.hasOwnProperty("port_id")) - object.port_id = message.port_id; - if (message.denom_traces && message.denom_traces.length) { - object.denom_traces = []; - for (let j = 0; j < message.denom_traces.length; ++j) - object.denom_traces[j] = $root.ibc.applications.transfer.v1.DenomTrace.toObject(message.denom_traces[j], options); + object.path = ""; + object.base_denom = ""; } - if (message.params != null && message.hasOwnProperty("params")) - object.params = $root.ibc.applications.transfer.v1.Params.toObject(message.params, options); + if (message.path != null && message.hasOwnProperty("path")) + object.path = message.path; + if (message.base_denom != null && message.hasOwnProperty("base_denom")) + object.base_denom = message.base_denom; return object; }; /** - * Converts this GenesisState to JSON. + * Converts this DenomTrace to JSON. * @function toJSON - * @memberof ibc.applications.transfer.v1.GenesisState + * @memberof ibc.applications.transfer.v1.DenomTrace * @instance * @returns {Object.} JSON object */ - GenesisState.prototype.toJSON = function toJSON() { + DenomTrace.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GenesisState; + return DenomTrace; })(); - return v1; - })(); - - transfer.v2 = (function() { - - /** - * Namespace v2. - * @memberof ibc.applications.transfer - * @namespace - */ - const v2 = {}; - - v2.FungibleTokenPacketData = (function() { + v1.Params = (function() { /** - * Properties of a FungibleTokenPacketData. - * @memberof ibc.applications.transfer.v2 - * @interface IFungibleTokenPacketData - * @property {string|null} [denom] FungibleTokenPacketData denom - * @property {string|null} [amount] FungibleTokenPacketData amount - * @property {string|null} [sender] FungibleTokenPacketData sender - * @property {string|null} [receiver] FungibleTokenPacketData receiver - * @property {string|null} [memo] FungibleTokenPacketData memo + * Properties of a Params. + * @memberof ibc.applications.transfer.v1 + * @interface IParams + * @property {boolean|null} [send_enabled] Params send_enabled + * @property {boolean|null} [receive_enabled] Params receive_enabled */ /** - * Constructs a new FungibleTokenPacketData. - * @memberof ibc.applications.transfer.v2 - * @classdesc Represents a FungibleTokenPacketData. - * @implements IFungibleTokenPacketData + * Constructs a new Params. + * @memberof ibc.applications.transfer.v1 + * @classdesc Represents a Params. + * @implements IParams * @constructor - * @param {ibc.applications.transfer.v2.IFungibleTokenPacketData=} [properties] Properties to set + * @param {ibc.applications.transfer.v1.IParams=} [properties] Properties to set */ - function FungibleTokenPacketData(properties) { + function Params(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -33912,115 +41008,76 @@ export const ibc = $root.ibc = (() => { } /** - * FungibleTokenPacketData denom. - * @member {string} denom - * @memberof ibc.applications.transfer.v2.FungibleTokenPacketData - * @instance - */ - FungibleTokenPacketData.prototype.denom = ""; - - /** - * FungibleTokenPacketData amount. - * @member {string} amount - * @memberof ibc.applications.transfer.v2.FungibleTokenPacketData - * @instance - */ - FungibleTokenPacketData.prototype.amount = ""; - - /** - * FungibleTokenPacketData sender. - * @member {string} sender - * @memberof ibc.applications.transfer.v2.FungibleTokenPacketData - * @instance - */ - FungibleTokenPacketData.prototype.sender = ""; - - /** - * FungibleTokenPacketData receiver. - * @member {string} receiver - * @memberof ibc.applications.transfer.v2.FungibleTokenPacketData + * Params send_enabled. + * @member {boolean} send_enabled + * @memberof ibc.applications.transfer.v1.Params * @instance */ - FungibleTokenPacketData.prototype.receiver = ""; + Params.prototype.send_enabled = false; /** - * FungibleTokenPacketData memo. - * @member {string} memo - * @memberof ibc.applications.transfer.v2.FungibleTokenPacketData + * Params receive_enabled. + * @member {boolean} receive_enabled + * @memberof ibc.applications.transfer.v1.Params * @instance */ - FungibleTokenPacketData.prototype.memo = ""; + Params.prototype.receive_enabled = false; /** - * Encodes the specified FungibleTokenPacketData message. Does not implicitly {@link ibc.applications.transfer.v2.FungibleTokenPacketData.verify|verify} messages. + * Encodes the specified Params message. Does not implicitly {@link ibc.applications.transfer.v1.Params.verify|verify} messages. * @function encode - * @memberof ibc.applications.transfer.v2.FungibleTokenPacketData + * @memberof ibc.applications.transfer.v1.Params * @static - * @param {ibc.applications.transfer.v2.IFungibleTokenPacketData} message FungibleTokenPacketData message or plain object to encode + * @param {ibc.applications.transfer.v1.IParams} message Params message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FungibleTokenPacketData.encode = function encode(message, writer) { + Params.encode = function encode(message, writer) { if (!writer) - writer = $Writer.create(); - if (message.denom != null && Object.hasOwnProperty.call(message, "denom")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.denom); - if (message.amount != null && Object.hasOwnProperty.call(message, "amount")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.amount); - if (message.sender != null && Object.hasOwnProperty.call(message, "sender")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.sender); - if (message.receiver != null && Object.hasOwnProperty.call(message, "receiver")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.receiver); - if (message.memo != null && Object.hasOwnProperty.call(message, "memo")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.memo); + writer = $Writer.create(); + if (message.send_enabled != null && Object.hasOwnProperty.call(message, "send_enabled")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.send_enabled); + if (message.receive_enabled != null && Object.hasOwnProperty.call(message, "receive_enabled")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.receive_enabled); return writer; }; /** - * Encodes the specified FungibleTokenPacketData message, length delimited. Does not implicitly {@link ibc.applications.transfer.v2.FungibleTokenPacketData.verify|verify} messages. + * Encodes the specified Params message, length delimited. Does not implicitly {@link ibc.applications.transfer.v1.Params.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.applications.transfer.v2.FungibleTokenPacketData + * @memberof ibc.applications.transfer.v1.Params * @static - * @param {ibc.applications.transfer.v2.IFungibleTokenPacketData} message FungibleTokenPacketData message or plain object to encode + * @param {ibc.applications.transfer.v1.IParams} message Params message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FungibleTokenPacketData.encodeDelimited = function encodeDelimited(message, writer) { + Params.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a FungibleTokenPacketData message from the specified reader or buffer. + * Decodes a Params message from the specified reader or buffer. * @function decode - * @memberof ibc.applications.transfer.v2.FungibleTokenPacketData + * @memberof ibc.applications.transfer.v1.Params * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.applications.transfer.v2.FungibleTokenPacketData} FungibleTokenPacketData + * @returns {ibc.applications.transfer.v1.Params} Params * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FungibleTokenPacketData.decode = function decode(reader, length) { + Params.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.transfer.v2.FungibleTokenPacketData(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.transfer.v1.Params(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.denom = reader.string(); + message.send_enabled = reader.bool(); break; case 2: - message.amount = reader.string(); - break; - case 3: - message.sender = reader.string(); - break; - case 4: - message.receiver = reader.string(); - break; - case 5: - message.memo = reader.string(); + message.receive_enabled = reader.bool(); break; default: reader.skipType(tag & 7); @@ -34031,300 +41088,399 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a FungibleTokenPacketData message from the specified reader or buffer, length delimited. + * Decodes a Params message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.applications.transfer.v2.FungibleTokenPacketData + * @memberof ibc.applications.transfer.v1.Params * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.applications.transfer.v2.FungibleTokenPacketData} FungibleTokenPacketData + * @returns {ibc.applications.transfer.v1.Params} Params * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FungibleTokenPacketData.decodeDelimited = function decodeDelimited(reader) { + Params.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a FungibleTokenPacketData message. + * Verifies a Params message. * @function verify - * @memberof ibc.applications.transfer.v2.FungibleTokenPacketData + * @memberof ibc.applications.transfer.v1.Params * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FungibleTokenPacketData.verify = function verify(message) { + Params.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.denom != null && message.hasOwnProperty("denom")) - if (!$util.isString(message.denom)) - return "denom: string expected"; - if (message.amount != null && message.hasOwnProperty("amount")) - if (!$util.isString(message.amount)) - return "amount: string expected"; - if (message.sender != null && message.hasOwnProperty("sender")) - if (!$util.isString(message.sender)) - return "sender: string expected"; - if (message.receiver != null && message.hasOwnProperty("receiver")) - if (!$util.isString(message.receiver)) - return "receiver: string expected"; - if (message.memo != null && message.hasOwnProperty("memo")) - if (!$util.isString(message.memo)) - return "memo: string expected"; + if (message.send_enabled != null && message.hasOwnProperty("send_enabled")) + if (typeof message.send_enabled !== "boolean") + return "send_enabled: boolean expected"; + if (message.receive_enabled != null && message.hasOwnProperty("receive_enabled")) + if (typeof message.receive_enabled !== "boolean") + return "receive_enabled: boolean expected"; return null; }; /** - * Creates a FungibleTokenPacketData message from a plain object. Also converts values to their respective internal types. + * Creates a Params message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.applications.transfer.v2.FungibleTokenPacketData + * @memberof ibc.applications.transfer.v1.Params * @static * @param {Object.} object Plain object - * @returns {ibc.applications.transfer.v2.FungibleTokenPacketData} FungibleTokenPacketData + * @returns {ibc.applications.transfer.v1.Params} Params */ - FungibleTokenPacketData.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.applications.transfer.v2.FungibleTokenPacketData) + Params.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.transfer.v1.Params) return object; - let message = new $root.ibc.applications.transfer.v2.FungibleTokenPacketData(); - if (object.denom != null) - message.denom = String(object.denom); - if (object.amount != null) - message.amount = String(object.amount); - if (object.sender != null) - message.sender = String(object.sender); - if (object.receiver != null) - message.receiver = String(object.receiver); - if (object.memo != null) - message.memo = String(object.memo); + let message = new $root.ibc.applications.transfer.v1.Params(); + if (object.send_enabled != null) + message.send_enabled = Boolean(object.send_enabled); + if (object.receive_enabled != null) + message.receive_enabled = Boolean(object.receive_enabled); return message; }; /** - * Creates a plain object from a FungibleTokenPacketData message. Also converts values to other types if specified. + * Creates a plain object from a Params message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.applications.transfer.v2.FungibleTokenPacketData + * @memberof ibc.applications.transfer.v1.Params * @static - * @param {ibc.applications.transfer.v2.FungibleTokenPacketData} message FungibleTokenPacketData + * @param {ibc.applications.transfer.v1.Params} message Params * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FungibleTokenPacketData.toObject = function toObject(message, options) { + Params.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - object.denom = ""; - object.amount = ""; - object.sender = ""; - object.receiver = ""; - object.memo = ""; + object.send_enabled = false; + object.receive_enabled = false; } - if (message.denom != null && message.hasOwnProperty("denom")) - object.denom = message.denom; - if (message.amount != null && message.hasOwnProperty("amount")) - object.amount = message.amount; - if (message.sender != null && message.hasOwnProperty("sender")) - object.sender = message.sender; - if (message.receiver != null && message.hasOwnProperty("receiver")) - object.receiver = message.receiver; - if (message.memo != null && message.hasOwnProperty("memo")) - object.memo = message.memo; + if (message.send_enabled != null && message.hasOwnProperty("send_enabled")) + object.send_enabled = message.send_enabled; + if (message.receive_enabled != null && message.hasOwnProperty("receive_enabled")) + object.receive_enabled = message.receive_enabled; return object; }; /** - * Converts this FungibleTokenPacketData to JSON. + * Converts this Params to JSON. * @function toJSON - * @memberof ibc.applications.transfer.v2.FungibleTokenPacketData + * @memberof ibc.applications.transfer.v1.Params * @instance * @returns {Object.} JSON object */ - FungibleTokenPacketData.prototype.toJSON = function toJSON() { + Params.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return FungibleTokenPacketData; + return Params; })(); - return v2; - })(); + v1.Query = (function() { - return transfer; - })(); + /** + * Constructs a new Query service. + * @memberof ibc.applications.transfer.v1 + * @classdesc Represents a Query + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + */ + function Query(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } - return applications; - })(); + (Query.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Query; - ibc.core = (function() { + /** + * Callback as used by {@link ibc.applications.transfer.v1.Query#denomTrace}. + * @memberof ibc.applications.transfer.v1.Query + * @typedef DenomTraceCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.applications.transfer.v1.QueryDenomTraceResponse} [response] QueryDenomTraceResponse + */ - /** - * Namespace core. - * @memberof ibc - * @namespace - */ - const core = {}; + /** + * Calls DenomTrace. + * @function denomTrace + * @memberof ibc.applications.transfer.v1.Query + * @instance + * @param {ibc.applications.transfer.v1.IQueryDenomTraceRequest} request QueryDenomTraceRequest message or plain object + * @param {ibc.applications.transfer.v1.Query.DenomTraceCallback} callback Node-style callback called with the error, if any, and QueryDenomTraceResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Query.prototype.denomTrace = function denomTrace(request, callback) { + return this.rpcCall(denomTrace, $root.ibc.applications.transfer.v1.QueryDenomTraceRequest, $root.ibc.applications.transfer.v1.QueryDenomTraceResponse, request, callback); + }, "name", { value: "DenomTrace" }); - core.channel = (function() { + /** + * Calls DenomTrace. + * @function denomTrace + * @memberof ibc.applications.transfer.v1.Query + * @instance + * @param {ibc.applications.transfer.v1.IQueryDenomTraceRequest} request QueryDenomTraceRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ - /** - * Namespace channel. - * @memberof ibc.core - * @namespace - */ - const channel = {}; + /** + * Callback as used by {@link ibc.applications.transfer.v1.Query#denomTraces}. + * @memberof ibc.applications.transfer.v1.Query + * @typedef DenomTracesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.applications.transfer.v1.QueryDenomTracesResponse} [response] QueryDenomTracesResponse + */ - channel.v1 = (function() { + /** + * Calls DenomTraces. + * @function denomTraces + * @memberof ibc.applications.transfer.v1.Query + * @instance + * @param {ibc.applications.transfer.v1.IQueryDenomTracesRequest} request QueryDenomTracesRequest message or plain object + * @param {ibc.applications.transfer.v1.Query.DenomTracesCallback} callback Node-style callback called with the error, if any, and QueryDenomTracesResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Query.prototype.denomTraces = function denomTraces(request, callback) { + return this.rpcCall(denomTraces, $root.ibc.applications.transfer.v1.QueryDenomTracesRequest, $root.ibc.applications.transfer.v1.QueryDenomTracesResponse, request, callback); + }, "name", { value: "DenomTraces" }); - /** - * Namespace v1. - * @memberof ibc.core.channel - * @namespace - */ - const v1 = {}; + /** + * Calls DenomTraces. + * @function denomTraces + * @memberof ibc.applications.transfer.v1.Query + * @instance + * @param {ibc.applications.transfer.v1.IQueryDenomTracesRequest} request QueryDenomTracesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ - v1.Channel = (function() { + /** + * Callback as used by {@link ibc.applications.transfer.v1.Query#params}. + * @memberof ibc.applications.transfer.v1.Query + * @typedef ParamsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.applications.transfer.v1.QueryParamsResponse} [response] QueryParamsResponse + */ /** - * Properties of a Channel. - * @memberof ibc.core.channel.v1 - * @interface IChannel - * @property {ibc.core.channel.v1.State|null} [state] Channel state - * @property {ibc.core.channel.v1.Order|null} [ordering] Channel ordering - * @property {ibc.core.channel.v1.ICounterparty|null} [counterparty] Channel counterparty - * @property {Array.|null} [connection_hops] Channel connection_hops - * @property {string|null} [version] Channel version + * Calls Params. + * @function params + * @memberof ibc.applications.transfer.v1.Query + * @instance + * @param {ibc.applications.transfer.v1.IQueryParamsRequest} request QueryParamsRequest message or plain object + * @param {ibc.applications.transfer.v1.Query.ParamsCallback} callback Node-style callback called with the error, if any, and QueryParamsResponse + * @returns {undefined} + * @variation 1 */ + Object.defineProperty(Query.prototype.params = function params(request, callback) { + return this.rpcCall(params, $root.ibc.applications.transfer.v1.QueryParamsRequest, $root.ibc.applications.transfer.v1.QueryParamsResponse, request, callback); + }, "name", { value: "Params" }); /** - * Constructs a new Channel. - * @memberof ibc.core.channel.v1 - * @classdesc Represents a Channel. - * @implements IChannel - * @constructor - * @param {ibc.core.channel.v1.IChannel=} [properties] Properties to set + * Calls Params. + * @function params + * @memberof ibc.applications.transfer.v1.Query + * @instance + * @param {ibc.applications.transfer.v1.IQueryParamsRequest} request QueryParamsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - function Channel(properties) { - this.connection_hops = []; - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } /** - * Channel state. - * @member {ibc.core.channel.v1.State} state - * @memberof ibc.core.channel.v1.Channel + * Callback as used by {@link ibc.applications.transfer.v1.Query#denomHash}. + * @memberof ibc.applications.transfer.v1.Query + * @typedef DenomHashCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.applications.transfer.v1.QueryDenomHashResponse} [response] QueryDenomHashResponse + */ + + /** + * Calls DenomHash. + * @function denomHash + * @memberof ibc.applications.transfer.v1.Query * @instance + * @param {ibc.applications.transfer.v1.IQueryDenomHashRequest} request QueryDenomHashRequest message or plain object + * @param {ibc.applications.transfer.v1.Query.DenomHashCallback} callback Node-style callback called with the error, if any, and QueryDenomHashResponse + * @returns {undefined} + * @variation 1 */ - Channel.prototype.state = 0; + Object.defineProperty(Query.prototype.denomHash = function denomHash(request, callback) { + return this.rpcCall(denomHash, $root.ibc.applications.transfer.v1.QueryDenomHashRequest, $root.ibc.applications.transfer.v1.QueryDenomHashResponse, request, callback); + }, "name", { value: "DenomHash" }); /** - * Channel ordering. - * @member {ibc.core.channel.v1.Order} ordering - * @memberof ibc.core.channel.v1.Channel + * Calls DenomHash. + * @function denomHash + * @memberof ibc.applications.transfer.v1.Query * @instance + * @param {ibc.applications.transfer.v1.IQueryDenomHashRequest} request QueryDenomHashRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - Channel.prototype.ordering = 0; /** - * Channel counterparty. - * @member {ibc.core.channel.v1.ICounterparty|null|undefined} counterparty - * @memberof ibc.core.channel.v1.Channel + * Callback as used by {@link ibc.applications.transfer.v1.Query#escrowAddress}. + * @memberof ibc.applications.transfer.v1.Query + * @typedef EscrowAddressCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.applications.transfer.v1.QueryEscrowAddressResponse} [response] QueryEscrowAddressResponse + */ + + /** + * Calls EscrowAddress. + * @function escrowAddress + * @memberof ibc.applications.transfer.v1.Query * @instance + * @param {ibc.applications.transfer.v1.IQueryEscrowAddressRequest} request QueryEscrowAddressRequest message or plain object + * @param {ibc.applications.transfer.v1.Query.EscrowAddressCallback} callback Node-style callback called with the error, if any, and QueryEscrowAddressResponse + * @returns {undefined} + * @variation 1 */ - Channel.prototype.counterparty = null; + Object.defineProperty(Query.prototype.escrowAddress = function escrowAddress(request, callback) { + return this.rpcCall(escrowAddress, $root.ibc.applications.transfer.v1.QueryEscrowAddressRequest, $root.ibc.applications.transfer.v1.QueryEscrowAddressResponse, request, callback); + }, "name", { value: "EscrowAddress" }); /** - * Channel connection_hops. - * @member {Array.} connection_hops - * @memberof ibc.core.channel.v1.Channel + * Calls EscrowAddress. + * @function escrowAddress + * @memberof ibc.applications.transfer.v1.Query * @instance + * @param {ibc.applications.transfer.v1.IQueryEscrowAddressRequest} request QueryEscrowAddressRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - Channel.prototype.connection_hops = $util.emptyArray; /** - * Channel version. - * @member {string} version - * @memberof ibc.core.channel.v1.Channel + * Callback as used by {@link ibc.applications.transfer.v1.Query#totalEscrowForDenom}. + * @memberof ibc.applications.transfer.v1.Query + * @typedef TotalEscrowForDenomCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.applications.transfer.v1.QueryTotalEscrowForDenomResponse} [response] QueryTotalEscrowForDenomResponse + */ + + /** + * Calls TotalEscrowForDenom. + * @function totalEscrowForDenom + * @memberof ibc.applications.transfer.v1.Query * @instance + * @param {ibc.applications.transfer.v1.IQueryTotalEscrowForDenomRequest} request QueryTotalEscrowForDenomRequest message or plain object + * @param {ibc.applications.transfer.v1.Query.TotalEscrowForDenomCallback} callback Node-style callback called with the error, if any, and QueryTotalEscrowForDenomResponse + * @returns {undefined} + * @variation 1 */ - Channel.prototype.version = ""; + Object.defineProperty(Query.prototype.totalEscrowForDenom = function totalEscrowForDenom(request, callback) { + return this.rpcCall(totalEscrowForDenom, $root.ibc.applications.transfer.v1.QueryTotalEscrowForDenomRequest, $root.ibc.applications.transfer.v1.QueryTotalEscrowForDenomResponse, request, callback); + }, "name", { value: "TotalEscrowForDenom" }); /** - * Encodes the specified Channel message. Does not implicitly {@link ibc.core.channel.v1.Channel.verify|verify} messages. + * Calls TotalEscrowForDenom. + * @function totalEscrowForDenom + * @memberof ibc.applications.transfer.v1.Query + * @instance + * @param {ibc.applications.transfer.v1.IQueryTotalEscrowForDenomRequest} request QueryTotalEscrowForDenomRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return Query; + })(); + + v1.QueryDenomTraceRequest = (function() { + + /** + * Properties of a QueryDenomTraceRequest. + * @memberof ibc.applications.transfer.v1 + * @interface IQueryDenomTraceRequest + * @property {string|null} [hash] QueryDenomTraceRequest hash + */ + + /** + * Constructs a new QueryDenomTraceRequest. + * @memberof ibc.applications.transfer.v1 + * @classdesc Represents a QueryDenomTraceRequest. + * @implements IQueryDenomTraceRequest + * @constructor + * @param {ibc.applications.transfer.v1.IQueryDenomTraceRequest=} [properties] Properties to set + */ + function QueryDenomTraceRequest(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * QueryDenomTraceRequest hash. + * @member {string} hash + * @memberof ibc.applications.transfer.v1.QueryDenomTraceRequest + * @instance + */ + QueryDenomTraceRequest.prototype.hash = ""; + + /** + * Encodes the specified QueryDenomTraceRequest message. Does not implicitly {@link ibc.applications.transfer.v1.QueryDenomTraceRequest.verify|verify} messages. * @function encode - * @memberof ibc.core.channel.v1.Channel + * @memberof ibc.applications.transfer.v1.QueryDenomTraceRequest * @static - * @param {ibc.core.channel.v1.IChannel} message Channel message or plain object to encode + * @param {ibc.applications.transfer.v1.IQueryDenomTraceRequest} message QueryDenomTraceRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Channel.encode = function encode(message, writer) { + QueryDenomTraceRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.state != null && Object.hasOwnProperty.call(message, "state")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.state); - if (message.ordering != null && Object.hasOwnProperty.call(message, "ordering")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.ordering); - if (message.counterparty != null && Object.hasOwnProperty.call(message, "counterparty")) - $root.ibc.core.channel.v1.Counterparty.encode(message.counterparty, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.connection_hops != null && message.connection_hops.length) - for (let i = 0; i < message.connection_hops.length; ++i) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.connection_hops[i]); - if (message.version != null && Object.hasOwnProperty.call(message, "version")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.version); + if (message.hash != null && Object.hasOwnProperty.call(message, "hash")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.hash); return writer; }; /** - * Encodes the specified Channel message, length delimited. Does not implicitly {@link ibc.core.channel.v1.Channel.verify|verify} messages. + * Encodes the specified QueryDenomTraceRequest message, length delimited. Does not implicitly {@link ibc.applications.transfer.v1.QueryDenomTraceRequest.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.channel.v1.Channel + * @memberof ibc.applications.transfer.v1.QueryDenomTraceRequest * @static - * @param {ibc.core.channel.v1.IChannel} message Channel message or plain object to encode + * @param {ibc.applications.transfer.v1.IQueryDenomTraceRequest} message QueryDenomTraceRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Channel.encodeDelimited = function encodeDelimited(message, writer) { + QueryDenomTraceRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Channel message from the specified reader or buffer. + * Decodes a QueryDenomTraceRequest message from the specified reader or buffer. * @function decode - * @memberof ibc.core.channel.v1.Channel + * @memberof ibc.applications.transfer.v1.QueryDenomTraceRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.channel.v1.Channel} Channel + * @returns {ibc.applications.transfer.v1.QueryDenomTraceRequest} QueryDenomTraceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Channel.decode = function decode(reader, length) { + QueryDenomTraceRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.Channel(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.transfer.v1.QueryDenomTraceRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.state = reader.int32(); - break; - case 2: - message.ordering = reader.int32(); - break; - case 3: - message.counterparty = $root.ibc.core.channel.v1.Counterparty.decode(reader, reader.uint32()); - break; - case 4: - if (!(message.connection_hops && message.connection_hops.length)) - message.connection_hops = []; - message.connection_hops.push(reader.string()); - break; - case 5: - message.version = reader.string(); + message.hash = reader.string(); break; default: reader.skipType(tag & 7); @@ -34335,211 +41491,107 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a Channel message from the specified reader or buffer, length delimited. + * Decodes a QueryDenomTraceRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.channel.v1.Channel + * @memberof ibc.applications.transfer.v1.QueryDenomTraceRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.channel.v1.Channel} Channel + * @returns {ibc.applications.transfer.v1.QueryDenomTraceRequest} QueryDenomTraceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Channel.decodeDelimited = function decodeDelimited(reader) { + QueryDenomTraceRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Channel message. + * Verifies a QueryDenomTraceRequest message. * @function verify - * @memberof ibc.core.channel.v1.Channel + * @memberof ibc.applications.transfer.v1.QueryDenomTraceRequest * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Channel.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.state != null && message.hasOwnProperty("state")) - switch (message.state) { - default: - return "state: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; - } - if (message.ordering != null && message.hasOwnProperty("ordering")) - switch (message.ordering) { - default: - return "ordering: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.counterparty != null && message.hasOwnProperty("counterparty")) { - let error = $root.ibc.core.channel.v1.Counterparty.verify(message.counterparty); - if (error) - return "counterparty." + error; - } - if (message.connection_hops != null && message.hasOwnProperty("connection_hops")) { - if (!Array.isArray(message.connection_hops)) - return "connection_hops: array expected"; - for (let i = 0; i < message.connection_hops.length; ++i) - if (!$util.isString(message.connection_hops[i])) - return "connection_hops: string[] expected"; - } - if (message.version != null && message.hasOwnProperty("version")) - if (!$util.isString(message.version)) - return "version: string expected"; + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + QueryDenomTraceRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.hash != null && message.hasOwnProperty("hash")) + if (!$util.isString(message.hash)) + return "hash: string expected"; return null; }; /** - * Creates a Channel message from a plain object. Also converts values to their respective internal types. + * Creates a QueryDenomTraceRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.channel.v1.Channel + * @memberof ibc.applications.transfer.v1.QueryDenomTraceRequest * @static * @param {Object.} object Plain object - * @returns {ibc.core.channel.v1.Channel} Channel + * @returns {ibc.applications.transfer.v1.QueryDenomTraceRequest} QueryDenomTraceRequest */ - Channel.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.channel.v1.Channel) + QueryDenomTraceRequest.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.transfer.v1.QueryDenomTraceRequest) return object; - let message = new $root.ibc.core.channel.v1.Channel(); - switch (object.state) { - case "STATE_UNINITIALIZED_UNSPECIFIED": - case 0: - message.state = 0; - break; - case "STATE_INIT": - case 1: - message.state = 1; - break; - case "STATE_TRYOPEN": - case 2: - message.state = 2; - break; - case "STATE_OPEN": - case 3: - message.state = 3; - break; - case "STATE_CLOSED": - case 4: - message.state = 4; - break; - } - switch (object.ordering) { - case "ORDER_NONE_UNSPECIFIED": - case 0: - message.ordering = 0; - break; - case "ORDER_UNORDERED": - case 1: - message.ordering = 1; - break; - case "ORDER_ORDERED": - case 2: - message.ordering = 2; - break; - } - if (object.counterparty != null) { - if (typeof object.counterparty !== "object") - throw TypeError(".ibc.core.channel.v1.Channel.counterparty: object expected"); - message.counterparty = $root.ibc.core.channel.v1.Counterparty.fromObject(object.counterparty); - } - if (object.connection_hops) { - if (!Array.isArray(object.connection_hops)) - throw TypeError(".ibc.core.channel.v1.Channel.connection_hops: array expected"); - message.connection_hops = []; - for (let i = 0; i < object.connection_hops.length; ++i) - message.connection_hops[i] = String(object.connection_hops[i]); - } - if (object.version != null) - message.version = String(object.version); + let message = new $root.ibc.applications.transfer.v1.QueryDenomTraceRequest(); + if (object.hash != null) + message.hash = String(object.hash); return message; }; /** - * Creates a plain object from a Channel message. Also converts values to other types if specified. + * Creates a plain object from a QueryDenomTraceRequest message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.channel.v1.Channel + * @memberof ibc.applications.transfer.v1.QueryDenomTraceRequest * @static - * @param {ibc.core.channel.v1.Channel} message Channel + * @param {ibc.applications.transfer.v1.QueryDenomTraceRequest} message QueryDenomTraceRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Channel.toObject = function toObject(message, options) { + QueryDenomTraceRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.connection_hops = []; - if (options.defaults) { - object.state = options.enums === String ? "STATE_UNINITIALIZED_UNSPECIFIED" : 0; - object.ordering = options.enums === String ? "ORDER_NONE_UNSPECIFIED" : 0; - object.counterparty = null; - object.version = ""; - } - if (message.state != null && message.hasOwnProperty("state")) - object.state = options.enums === String ? $root.ibc.core.channel.v1.State[message.state] : message.state; - if (message.ordering != null && message.hasOwnProperty("ordering")) - object.ordering = options.enums === String ? $root.ibc.core.channel.v1.Order[message.ordering] : message.ordering; - if (message.counterparty != null && message.hasOwnProperty("counterparty")) - object.counterparty = $root.ibc.core.channel.v1.Counterparty.toObject(message.counterparty, options); - if (message.connection_hops && message.connection_hops.length) { - object.connection_hops = []; - for (let j = 0; j < message.connection_hops.length; ++j) - object.connection_hops[j] = message.connection_hops[j]; - } - if (message.version != null && message.hasOwnProperty("version")) - object.version = message.version; + if (options.defaults) + object.hash = ""; + if (message.hash != null && message.hasOwnProperty("hash")) + object.hash = message.hash; return object; }; /** - * Converts this Channel to JSON. + * Converts this QueryDenomTraceRequest to JSON. * @function toJSON - * @memberof ibc.core.channel.v1.Channel + * @memberof ibc.applications.transfer.v1.QueryDenomTraceRequest * @instance * @returns {Object.} JSON object */ - Channel.prototype.toJSON = function toJSON() { + QueryDenomTraceRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Channel; + return QueryDenomTraceRequest; })(); - v1.IdentifiedChannel = (function() { + v1.QueryDenomTraceResponse = (function() { /** - * Properties of an IdentifiedChannel. - * @memberof ibc.core.channel.v1 - * @interface IIdentifiedChannel - * @property {ibc.core.channel.v1.State|null} [state] IdentifiedChannel state - * @property {ibc.core.channel.v1.Order|null} [ordering] IdentifiedChannel ordering - * @property {ibc.core.channel.v1.ICounterparty|null} [counterparty] IdentifiedChannel counterparty - * @property {Array.|null} [connection_hops] IdentifiedChannel connection_hops - * @property {string|null} [version] IdentifiedChannel version - * @property {string|null} [port_id] IdentifiedChannel port_id - * @property {string|null} [channel_id] IdentifiedChannel channel_id + * Properties of a QueryDenomTraceResponse. + * @memberof ibc.applications.transfer.v1 + * @interface IQueryDenomTraceResponse + * @property {ibc.applications.transfer.v1.IDenomTrace|null} [denom_trace] QueryDenomTraceResponse denom_trace */ /** - * Constructs a new IdentifiedChannel. - * @memberof ibc.core.channel.v1 - * @classdesc Represents an IdentifiedChannel. - * @implements IIdentifiedChannel + * Constructs a new QueryDenomTraceResponse. + * @memberof ibc.applications.transfer.v1 + * @classdesc Represents a QueryDenomTraceResponse. + * @implements IQueryDenomTraceResponse * @constructor - * @param {ibc.core.channel.v1.IIdentifiedChannel=} [properties] Properties to set + * @param {ibc.applications.transfer.v1.IQueryDenomTraceResponse=} [properties] Properties to set */ - function IdentifiedChannel(properties) { - this.connection_hops = []; + function QueryDenomTraceResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -34547,144 +41599,63 @@ export const ibc = $root.ibc = (() => { } /** - * IdentifiedChannel state. - * @member {ibc.core.channel.v1.State} state - * @memberof ibc.core.channel.v1.IdentifiedChannel - * @instance - */ - IdentifiedChannel.prototype.state = 0; - - /** - * IdentifiedChannel ordering. - * @member {ibc.core.channel.v1.Order} ordering - * @memberof ibc.core.channel.v1.IdentifiedChannel - * @instance - */ - IdentifiedChannel.prototype.ordering = 0; - - /** - * IdentifiedChannel counterparty. - * @member {ibc.core.channel.v1.ICounterparty|null|undefined} counterparty - * @memberof ibc.core.channel.v1.IdentifiedChannel - * @instance - */ - IdentifiedChannel.prototype.counterparty = null; - - /** - * IdentifiedChannel connection_hops. - * @member {Array.} connection_hops - * @memberof ibc.core.channel.v1.IdentifiedChannel - * @instance - */ - IdentifiedChannel.prototype.connection_hops = $util.emptyArray; - - /** - * IdentifiedChannel version. - * @member {string} version - * @memberof ibc.core.channel.v1.IdentifiedChannel - * @instance - */ - IdentifiedChannel.prototype.version = ""; - - /** - * IdentifiedChannel port_id. - * @member {string} port_id - * @memberof ibc.core.channel.v1.IdentifiedChannel - * @instance - */ - IdentifiedChannel.prototype.port_id = ""; - - /** - * IdentifiedChannel channel_id. - * @member {string} channel_id - * @memberof ibc.core.channel.v1.IdentifiedChannel + * QueryDenomTraceResponse denom_trace. + * @member {ibc.applications.transfer.v1.IDenomTrace|null|undefined} denom_trace + * @memberof ibc.applications.transfer.v1.QueryDenomTraceResponse * @instance */ - IdentifiedChannel.prototype.channel_id = ""; + QueryDenomTraceResponse.prototype.denom_trace = null; /** - * Encodes the specified IdentifiedChannel message. Does not implicitly {@link ibc.core.channel.v1.IdentifiedChannel.verify|verify} messages. + * Encodes the specified QueryDenomTraceResponse message. Does not implicitly {@link ibc.applications.transfer.v1.QueryDenomTraceResponse.verify|verify} messages. * @function encode - * @memberof ibc.core.channel.v1.IdentifiedChannel + * @memberof ibc.applications.transfer.v1.QueryDenomTraceResponse * @static - * @param {ibc.core.channel.v1.IIdentifiedChannel} message IdentifiedChannel message or plain object to encode + * @param {ibc.applications.transfer.v1.IQueryDenomTraceResponse} message QueryDenomTraceResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - IdentifiedChannel.encode = function encode(message, writer) { + QueryDenomTraceResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.state != null && Object.hasOwnProperty.call(message, "state")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.state); - if (message.ordering != null && Object.hasOwnProperty.call(message, "ordering")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.ordering); - if (message.counterparty != null && Object.hasOwnProperty.call(message, "counterparty")) - $root.ibc.core.channel.v1.Counterparty.encode(message.counterparty, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.connection_hops != null && message.connection_hops.length) - for (let i = 0; i < message.connection_hops.length; ++i) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.connection_hops[i]); - if (message.version != null && Object.hasOwnProperty.call(message, "version")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.version); - if (message.port_id != null && Object.hasOwnProperty.call(message, "port_id")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.port_id); - if (message.channel_id != null && Object.hasOwnProperty.call(message, "channel_id")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.channel_id); + if (message.denom_trace != null && Object.hasOwnProperty.call(message, "denom_trace")) + $root.ibc.applications.transfer.v1.DenomTrace.encode(message.denom_trace, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified IdentifiedChannel message, length delimited. Does not implicitly {@link ibc.core.channel.v1.IdentifiedChannel.verify|verify} messages. + * Encodes the specified QueryDenomTraceResponse message, length delimited. Does not implicitly {@link ibc.applications.transfer.v1.QueryDenomTraceResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.channel.v1.IdentifiedChannel + * @memberof ibc.applications.transfer.v1.QueryDenomTraceResponse * @static - * @param {ibc.core.channel.v1.IIdentifiedChannel} message IdentifiedChannel message or plain object to encode + * @param {ibc.applications.transfer.v1.IQueryDenomTraceResponse} message QueryDenomTraceResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - IdentifiedChannel.encodeDelimited = function encodeDelimited(message, writer) { + QueryDenomTraceResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an IdentifiedChannel message from the specified reader or buffer. + * Decodes a QueryDenomTraceResponse message from the specified reader or buffer. * @function decode - * @memberof ibc.core.channel.v1.IdentifiedChannel + * @memberof ibc.applications.transfer.v1.QueryDenomTraceResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.channel.v1.IdentifiedChannel} IdentifiedChannel + * @returns {ibc.applications.transfer.v1.QueryDenomTraceResponse} QueryDenomTraceResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - IdentifiedChannel.decode = function decode(reader, length) { + QueryDenomTraceResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.IdentifiedChannel(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.transfer.v1.QueryDenomTraceResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.state = reader.int32(); - break; - case 2: - message.ordering = reader.int32(); - break; - case 3: - message.counterparty = $root.ibc.core.channel.v1.Counterparty.decode(reader, reader.uint32()); - break; - case 4: - if (!(message.connection_hops && message.connection_hops.length)) - message.connection_hops = []; - message.connection_hops.push(reader.string()); - break; - case 5: - message.version = reader.string(); - break; - case 6: - message.port_id = reader.string(); - break; - case 7: - message.channel_id = reader.string(); + message.denom_trace = $root.ibc.applications.transfer.v1.DenomTrace.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -34695,257 +41666,112 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes an IdentifiedChannel message from the specified reader or buffer, length delimited. + * Decodes a QueryDenomTraceResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.channel.v1.IdentifiedChannel + * @memberof ibc.applications.transfer.v1.QueryDenomTraceResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.channel.v1.IdentifiedChannel} IdentifiedChannel + * @returns {ibc.applications.transfer.v1.QueryDenomTraceResponse} QueryDenomTraceResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - IdentifiedChannel.decodeDelimited = function decodeDelimited(reader) { + QueryDenomTraceResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an IdentifiedChannel message. + * Verifies a QueryDenomTraceResponse message. * @function verify - * @memberof ibc.core.channel.v1.IdentifiedChannel + * @memberof ibc.applications.transfer.v1.QueryDenomTraceResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - IdentifiedChannel.verify = function verify(message) { + QueryDenomTraceResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.state != null && message.hasOwnProperty("state")) - switch (message.state) { - default: - return "state: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; - } - if (message.ordering != null && message.hasOwnProperty("ordering")) - switch (message.ordering) { - default: - return "ordering: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.counterparty != null && message.hasOwnProperty("counterparty")) { - let error = $root.ibc.core.channel.v1.Counterparty.verify(message.counterparty); + if (message.denom_trace != null && message.hasOwnProperty("denom_trace")) { + let error = $root.ibc.applications.transfer.v1.DenomTrace.verify(message.denom_trace); if (error) - return "counterparty." + error; - } - if (message.connection_hops != null && message.hasOwnProperty("connection_hops")) { - if (!Array.isArray(message.connection_hops)) - return "connection_hops: array expected"; - for (let i = 0; i < message.connection_hops.length; ++i) - if (!$util.isString(message.connection_hops[i])) - return "connection_hops: string[] expected"; + return "denom_trace." + error; } - if (message.version != null && message.hasOwnProperty("version")) - if (!$util.isString(message.version)) - return "version: string expected"; - if (message.port_id != null && message.hasOwnProperty("port_id")) - if (!$util.isString(message.port_id)) - return "port_id: string expected"; - if (message.channel_id != null && message.hasOwnProperty("channel_id")) - if (!$util.isString(message.channel_id)) - return "channel_id: string expected"; return null; }; /** - * Creates an IdentifiedChannel message from a plain object. Also converts values to their respective internal types. + * Creates a QueryDenomTraceResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.channel.v1.IdentifiedChannel + * @memberof ibc.applications.transfer.v1.QueryDenomTraceResponse * @static * @param {Object.} object Plain object - * @returns {ibc.core.channel.v1.IdentifiedChannel} IdentifiedChannel + * @returns {ibc.applications.transfer.v1.QueryDenomTraceResponse} QueryDenomTraceResponse */ - IdentifiedChannel.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.channel.v1.IdentifiedChannel) + QueryDenomTraceResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.transfer.v1.QueryDenomTraceResponse) return object; - let message = new $root.ibc.core.channel.v1.IdentifiedChannel(); - switch (object.state) { - case "STATE_UNINITIALIZED_UNSPECIFIED": - case 0: - message.state = 0; - break; - case "STATE_INIT": - case 1: - message.state = 1; - break; - case "STATE_TRYOPEN": - case 2: - message.state = 2; - break; - case "STATE_OPEN": - case 3: - message.state = 3; - break; - case "STATE_CLOSED": - case 4: - message.state = 4; - break; - } - switch (object.ordering) { - case "ORDER_NONE_UNSPECIFIED": - case 0: - message.ordering = 0; - break; - case "ORDER_UNORDERED": - case 1: - message.ordering = 1; - break; - case "ORDER_ORDERED": - case 2: - message.ordering = 2; - break; - } - if (object.counterparty != null) { - if (typeof object.counterparty !== "object") - throw TypeError(".ibc.core.channel.v1.IdentifiedChannel.counterparty: object expected"); - message.counterparty = $root.ibc.core.channel.v1.Counterparty.fromObject(object.counterparty); - } - if (object.connection_hops) { - if (!Array.isArray(object.connection_hops)) - throw TypeError(".ibc.core.channel.v1.IdentifiedChannel.connection_hops: array expected"); - message.connection_hops = []; - for (let i = 0; i < object.connection_hops.length; ++i) - message.connection_hops[i] = String(object.connection_hops[i]); + let message = new $root.ibc.applications.transfer.v1.QueryDenomTraceResponse(); + if (object.denom_trace != null) { + if (typeof object.denom_trace !== "object") + throw TypeError(".ibc.applications.transfer.v1.QueryDenomTraceResponse.denom_trace: object expected"); + message.denom_trace = $root.ibc.applications.transfer.v1.DenomTrace.fromObject(object.denom_trace); } - if (object.version != null) - message.version = String(object.version); - if (object.port_id != null) - message.port_id = String(object.port_id); - if (object.channel_id != null) - message.channel_id = String(object.channel_id); return message; }; /** - * Creates a plain object from an IdentifiedChannel message. Also converts values to other types if specified. + * Creates a plain object from a QueryDenomTraceResponse message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.channel.v1.IdentifiedChannel + * @memberof ibc.applications.transfer.v1.QueryDenomTraceResponse * @static - * @param {ibc.core.channel.v1.IdentifiedChannel} message IdentifiedChannel + * @param {ibc.applications.transfer.v1.QueryDenomTraceResponse} message QueryDenomTraceResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - IdentifiedChannel.toObject = function toObject(message, options) { + QueryDenomTraceResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.connection_hops = []; - if (options.defaults) { - object.state = options.enums === String ? "STATE_UNINITIALIZED_UNSPECIFIED" : 0; - object.ordering = options.enums === String ? "ORDER_NONE_UNSPECIFIED" : 0; - object.counterparty = null; - object.version = ""; - object.port_id = ""; - object.channel_id = ""; - } - if (message.state != null && message.hasOwnProperty("state")) - object.state = options.enums === String ? $root.ibc.core.channel.v1.State[message.state] : message.state; - if (message.ordering != null && message.hasOwnProperty("ordering")) - object.ordering = options.enums === String ? $root.ibc.core.channel.v1.Order[message.ordering] : message.ordering; - if (message.counterparty != null && message.hasOwnProperty("counterparty")) - object.counterparty = $root.ibc.core.channel.v1.Counterparty.toObject(message.counterparty, options); - if (message.connection_hops && message.connection_hops.length) { - object.connection_hops = []; - for (let j = 0; j < message.connection_hops.length; ++j) - object.connection_hops[j] = message.connection_hops[j]; - } - if (message.version != null && message.hasOwnProperty("version")) - object.version = message.version; - if (message.port_id != null && message.hasOwnProperty("port_id")) - object.port_id = message.port_id; - if (message.channel_id != null && message.hasOwnProperty("channel_id")) - object.channel_id = message.channel_id; + if (options.defaults) + object.denom_trace = null; + if (message.denom_trace != null && message.hasOwnProperty("denom_trace")) + object.denom_trace = $root.ibc.applications.transfer.v1.DenomTrace.toObject(message.denom_trace, options); return object; }; /** - * Converts this IdentifiedChannel to JSON. + * Converts this QueryDenomTraceResponse to JSON. * @function toJSON - * @memberof ibc.core.channel.v1.IdentifiedChannel + * @memberof ibc.applications.transfer.v1.QueryDenomTraceResponse * @instance * @returns {Object.} JSON object */ - IdentifiedChannel.prototype.toJSON = function toJSON() { + QueryDenomTraceResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return IdentifiedChannel; - })(); - - /** - * State enum. - * @name ibc.core.channel.v1.State - * @enum {number} - * @property {number} STATE_UNINITIALIZED_UNSPECIFIED=0 STATE_UNINITIALIZED_UNSPECIFIED value - * @property {number} STATE_INIT=1 STATE_INIT value - * @property {number} STATE_TRYOPEN=2 STATE_TRYOPEN value - * @property {number} STATE_OPEN=3 STATE_OPEN value - * @property {number} STATE_CLOSED=4 STATE_CLOSED value - */ - v1.State = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "STATE_UNINITIALIZED_UNSPECIFIED"] = 0; - values[valuesById[1] = "STATE_INIT"] = 1; - values[valuesById[2] = "STATE_TRYOPEN"] = 2; - values[valuesById[3] = "STATE_OPEN"] = 3; - values[valuesById[4] = "STATE_CLOSED"] = 4; - return values; - })(); - - /** - * Order enum. - * @name ibc.core.channel.v1.Order - * @enum {number} - * @property {number} ORDER_NONE_UNSPECIFIED=0 ORDER_NONE_UNSPECIFIED value - * @property {number} ORDER_UNORDERED=1 ORDER_UNORDERED value - * @property {number} ORDER_ORDERED=2 ORDER_ORDERED value - */ - v1.Order = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "ORDER_NONE_UNSPECIFIED"] = 0; - values[valuesById[1] = "ORDER_UNORDERED"] = 1; - values[valuesById[2] = "ORDER_ORDERED"] = 2; - return values; + return QueryDenomTraceResponse; })(); - v1.Counterparty = (function() { + v1.QueryDenomTracesRequest = (function() { /** - * Properties of a Counterparty. - * @memberof ibc.core.channel.v1 - * @interface ICounterparty - * @property {string|null} [port_id] Counterparty port_id - * @property {string|null} [channel_id] Counterparty channel_id + * Properties of a QueryDenomTracesRequest. + * @memberof ibc.applications.transfer.v1 + * @interface IQueryDenomTracesRequest + * @property {cosmos.base.query.v1beta1.IPageRequest|null} [pagination] QueryDenomTracesRequest pagination */ /** - * Constructs a new Counterparty. - * @memberof ibc.core.channel.v1 - * @classdesc Represents a Counterparty. - * @implements ICounterparty + * Constructs a new QueryDenomTracesRequest. + * @memberof ibc.applications.transfer.v1 + * @classdesc Represents a QueryDenomTracesRequest. + * @implements IQueryDenomTracesRequest * @constructor - * @param {ibc.core.channel.v1.ICounterparty=} [properties] Properties to set + * @param {ibc.applications.transfer.v1.IQueryDenomTracesRequest=} [properties] Properties to set */ - function Counterparty(properties) { + function QueryDenomTracesRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -34953,76 +41779,63 @@ export const ibc = $root.ibc = (() => { } /** - * Counterparty port_id. - * @member {string} port_id - * @memberof ibc.core.channel.v1.Counterparty - * @instance - */ - Counterparty.prototype.port_id = ""; - - /** - * Counterparty channel_id. - * @member {string} channel_id - * @memberof ibc.core.channel.v1.Counterparty + * QueryDenomTracesRequest pagination. + * @member {cosmos.base.query.v1beta1.IPageRequest|null|undefined} pagination + * @memberof ibc.applications.transfer.v1.QueryDenomTracesRequest * @instance */ - Counterparty.prototype.channel_id = ""; + QueryDenomTracesRequest.prototype.pagination = null; /** - * Encodes the specified Counterparty message. Does not implicitly {@link ibc.core.channel.v1.Counterparty.verify|verify} messages. + * Encodes the specified QueryDenomTracesRequest message. Does not implicitly {@link ibc.applications.transfer.v1.QueryDenomTracesRequest.verify|verify} messages. * @function encode - * @memberof ibc.core.channel.v1.Counterparty + * @memberof ibc.applications.transfer.v1.QueryDenomTracesRequest * @static - * @param {ibc.core.channel.v1.ICounterparty} message Counterparty message or plain object to encode + * @param {ibc.applications.transfer.v1.IQueryDenomTracesRequest} message QueryDenomTracesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Counterparty.encode = function encode(message, writer) { + QueryDenomTracesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.port_id != null && Object.hasOwnProperty.call(message, "port_id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.port_id); - if (message.channel_id != null && Object.hasOwnProperty.call(message, "channel_id")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.channel_id); + if (message.pagination != null && Object.hasOwnProperty.call(message, "pagination")) + $root.cosmos.base.query.v1beta1.PageRequest.encode(message.pagination, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified Counterparty message, length delimited. Does not implicitly {@link ibc.core.channel.v1.Counterparty.verify|verify} messages. + * Encodes the specified QueryDenomTracesRequest message, length delimited. Does not implicitly {@link ibc.applications.transfer.v1.QueryDenomTracesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.channel.v1.Counterparty + * @memberof ibc.applications.transfer.v1.QueryDenomTracesRequest * @static - * @param {ibc.core.channel.v1.ICounterparty} message Counterparty message or plain object to encode + * @param {ibc.applications.transfer.v1.IQueryDenomTracesRequest} message QueryDenomTracesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Counterparty.encodeDelimited = function encodeDelimited(message, writer) { + QueryDenomTracesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Counterparty message from the specified reader or buffer. + * Decodes a QueryDenomTracesRequest message from the specified reader or buffer. * @function decode - * @memberof ibc.core.channel.v1.Counterparty + * @memberof ibc.applications.transfer.v1.QueryDenomTracesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.channel.v1.Counterparty} Counterparty + * @returns {ibc.applications.transfer.v1.QueryDenomTracesRequest} QueryDenomTracesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Counterparty.decode = function decode(reader, length) { + QueryDenomTracesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.Counterparty(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.transfer.v1.QueryDenomTracesRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.port_id = reader.string(); - break; - case 2: - message.channel_id = reader.string(); + message.pagination = $root.cosmos.base.query.v1beta1.PageRequest.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -35033,123 +41846,114 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a Counterparty message from the specified reader or buffer, length delimited. + * Decodes a QueryDenomTracesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.channel.v1.Counterparty + * @memberof ibc.applications.transfer.v1.QueryDenomTracesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.channel.v1.Counterparty} Counterparty + * @returns {ibc.applications.transfer.v1.QueryDenomTracesRequest} QueryDenomTracesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Counterparty.decodeDelimited = function decodeDelimited(reader) { + QueryDenomTracesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Counterparty message. + * Verifies a QueryDenomTracesRequest message. * @function verify - * @memberof ibc.core.channel.v1.Counterparty + * @memberof ibc.applications.transfer.v1.QueryDenomTracesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Counterparty.verify = function verify(message) { + QueryDenomTracesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.port_id != null && message.hasOwnProperty("port_id")) - if (!$util.isString(message.port_id)) - return "port_id: string expected"; - if (message.channel_id != null && message.hasOwnProperty("channel_id")) - if (!$util.isString(message.channel_id)) - return "channel_id: string expected"; + if (message.pagination != null && message.hasOwnProperty("pagination")) { + let error = $root.cosmos.base.query.v1beta1.PageRequest.verify(message.pagination); + if (error) + return "pagination." + error; + } return null; }; /** - * Creates a Counterparty message from a plain object. Also converts values to their respective internal types. + * Creates a QueryDenomTracesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.channel.v1.Counterparty + * @memberof ibc.applications.transfer.v1.QueryDenomTracesRequest * @static * @param {Object.} object Plain object - * @returns {ibc.core.channel.v1.Counterparty} Counterparty + * @returns {ibc.applications.transfer.v1.QueryDenomTracesRequest} QueryDenomTracesRequest */ - Counterparty.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.channel.v1.Counterparty) + QueryDenomTracesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.transfer.v1.QueryDenomTracesRequest) return object; - let message = new $root.ibc.core.channel.v1.Counterparty(); - if (object.port_id != null) - message.port_id = String(object.port_id); - if (object.channel_id != null) - message.channel_id = String(object.channel_id); + let message = new $root.ibc.applications.transfer.v1.QueryDenomTracesRequest(); + if (object.pagination != null) { + if (typeof object.pagination !== "object") + throw TypeError(".ibc.applications.transfer.v1.QueryDenomTracesRequest.pagination: object expected"); + message.pagination = $root.cosmos.base.query.v1beta1.PageRequest.fromObject(object.pagination); + } return message; }; /** - * Creates a plain object from a Counterparty message. Also converts values to other types if specified. + * Creates a plain object from a QueryDenomTracesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.channel.v1.Counterparty + * @memberof ibc.applications.transfer.v1.QueryDenomTracesRequest * @static - * @param {ibc.core.channel.v1.Counterparty} message Counterparty + * @param {ibc.applications.transfer.v1.QueryDenomTracesRequest} message QueryDenomTracesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Counterparty.toObject = function toObject(message, options) { + QueryDenomTracesRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) { - object.port_id = ""; - object.channel_id = ""; - } - if (message.port_id != null && message.hasOwnProperty("port_id")) - object.port_id = message.port_id; - if (message.channel_id != null && message.hasOwnProperty("channel_id")) - object.channel_id = message.channel_id; + if (options.defaults) + object.pagination = null; + if (message.pagination != null && message.hasOwnProperty("pagination")) + object.pagination = $root.cosmos.base.query.v1beta1.PageRequest.toObject(message.pagination, options); return object; }; /** - * Converts this Counterparty to JSON. + * Converts this QueryDenomTracesRequest to JSON. * @function toJSON - * @memberof ibc.core.channel.v1.Counterparty + * @memberof ibc.applications.transfer.v1.QueryDenomTracesRequest * @instance * @returns {Object.} JSON object */ - Counterparty.prototype.toJSON = function toJSON() { + QueryDenomTracesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Counterparty; + return QueryDenomTracesRequest; })(); - v1.Packet = (function() { + v1.QueryDenomTracesResponse = (function() { /** - * Properties of a Packet. - * @memberof ibc.core.channel.v1 - * @interface IPacket - * @property {Long|null} [sequence] Packet sequence - * @property {string|null} [source_port] Packet source_port - * @property {string|null} [source_channel] Packet source_channel - * @property {string|null} [destination_port] Packet destination_port - * @property {string|null} [destination_channel] Packet destination_channel - * @property {Uint8Array|null} [data] Packet data - * @property {ibc.core.client.v1.IHeight|null} [timeout_height] Packet timeout_height - * @property {Long|null} [timeout_timestamp] Packet timeout_timestamp + * Properties of a QueryDenomTracesResponse. + * @memberof ibc.applications.transfer.v1 + * @interface IQueryDenomTracesResponse + * @property {Array.|null} [denom_traces] QueryDenomTracesResponse denom_traces + * @property {cosmos.base.query.v1beta1.IPageResponse|null} [pagination] QueryDenomTracesResponse pagination */ /** - * Constructs a new Packet. - * @memberof ibc.core.channel.v1 - * @classdesc Represents a Packet. - * @implements IPacket + * Constructs a new QueryDenomTracesResponse. + * @memberof ibc.applications.transfer.v1 + * @classdesc Represents a QueryDenomTracesResponse. + * @implements IQueryDenomTracesResponse * @constructor - * @param {ibc.core.channel.v1.IPacket=} [properties] Properties to set + * @param {ibc.applications.transfer.v1.IQueryDenomTracesResponse=} [properties] Properties to set */ - function Packet(properties) { + function QueryDenomTracesResponse(properties) { + this.denom_traces = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -35157,154 +41961,79 @@ export const ibc = $root.ibc = (() => { } /** - * Packet sequence. - * @member {Long} sequence - * @memberof ibc.core.channel.v1.Packet - * @instance - */ - Packet.prototype.sequence = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * Packet source_port. - * @member {string} source_port - * @memberof ibc.core.channel.v1.Packet - * @instance - */ - Packet.prototype.source_port = ""; - - /** - * Packet source_channel. - * @member {string} source_channel - * @memberof ibc.core.channel.v1.Packet - * @instance - */ - Packet.prototype.source_channel = ""; - - /** - * Packet destination_port. - * @member {string} destination_port - * @memberof ibc.core.channel.v1.Packet - * @instance - */ - Packet.prototype.destination_port = ""; - - /** - * Packet destination_channel. - * @member {string} destination_channel - * @memberof ibc.core.channel.v1.Packet - * @instance - */ - Packet.prototype.destination_channel = ""; - - /** - * Packet data. - * @member {Uint8Array} data - * @memberof ibc.core.channel.v1.Packet - * @instance - */ - Packet.prototype.data = $util.newBuffer([]); - - /** - * Packet timeout_height. - * @member {ibc.core.client.v1.IHeight|null|undefined} timeout_height - * @memberof ibc.core.channel.v1.Packet + * QueryDenomTracesResponse denom_traces. + * @member {Array.} denom_traces + * @memberof ibc.applications.transfer.v1.QueryDenomTracesResponse * @instance */ - Packet.prototype.timeout_height = null; + QueryDenomTracesResponse.prototype.denom_traces = $util.emptyArray; /** - * Packet timeout_timestamp. - * @member {Long} timeout_timestamp - * @memberof ibc.core.channel.v1.Packet + * QueryDenomTracesResponse pagination. + * @member {cosmos.base.query.v1beta1.IPageResponse|null|undefined} pagination + * @memberof ibc.applications.transfer.v1.QueryDenomTracesResponse * @instance */ - Packet.prototype.timeout_timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + QueryDenomTracesResponse.prototype.pagination = null; /** - * Encodes the specified Packet message. Does not implicitly {@link ibc.core.channel.v1.Packet.verify|verify} messages. + * Encodes the specified QueryDenomTracesResponse message. Does not implicitly {@link ibc.applications.transfer.v1.QueryDenomTracesResponse.verify|verify} messages. * @function encode - * @memberof ibc.core.channel.v1.Packet + * @memberof ibc.applications.transfer.v1.QueryDenomTracesResponse * @static - * @param {ibc.core.channel.v1.IPacket} message Packet message or plain object to encode + * @param {ibc.applications.transfer.v1.IQueryDenomTracesResponse} message QueryDenomTracesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Packet.encode = function encode(message, writer) { + QueryDenomTracesResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.sequence != null && Object.hasOwnProperty.call(message, "sequence")) - writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.sequence); - if (message.source_port != null && Object.hasOwnProperty.call(message, "source_port")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.source_port); - if (message.source_channel != null && Object.hasOwnProperty.call(message, "source_channel")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.source_channel); - if (message.destination_port != null && Object.hasOwnProperty.call(message, "destination_port")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.destination_port); - if (message.destination_channel != null && Object.hasOwnProperty.call(message, "destination_channel")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.destination_channel); - if (message.data != null && Object.hasOwnProperty.call(message, "data")) - writer.uint32(/* id 6, wireType 2 =*/50).bytes(message.data); - if (message.timeout_height != null && Object.hasOwnProperty.call(message, "timeout_height")) - $root.ibc.core.client.v1.Height.encode(message.timeout_height, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.timeout_timestamp != null && Object.hasOwnProperty.call(message, "timeout_timestamp")) - writer.uint32(/* id 8, wireType 0 =*/64).uint64(message.timeout_timestamp); + if (message.denom_traces != null && message.denom_traces.length) + for (let i = 0; i < message.denom_traces.length; ++i) + $root.ibc.applications.transfer.v1.DenomTrace.encode(message.denom_traces[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.pagination != null && Object.hasOwnProperty.call(message, "pagination")) + $root.cosmos.base.query.v1beta1.PageResponse.encode(message.pagination, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified Packet message, length delimited. Does not implicitly {@link ibc.core.channel.v1.Packet.verify|verify} messages. + * Encodes the specified QueryDenomTracesResponse message, length delimited. Does not implicitly {@link ibc.applications.transfer.v1.QueryDenomTracesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.channel.v1.Packet + * @memberof ibc.applications.transfer.v1.QueryDenomTracesResponse * @static - * @param {ibc.core.channel.v1.IPacket} message Packet message or plain object to encode + * @param {ibc.applications.transfer.v1.IQueryDenomTracesResponse} message QueryDenomTracesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Packet.encodeDelimited = function encodeDelimited(message, writer) { + QueryDenomTracesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Packet message from the specified reader or buffer. + * Decodes a QueryDenomTracesResponse message from the specified reader or buffer. * @function decode - * @memberof ibc.core.channel.v1.Packet + * @memberof ibc.applications.transfer.v1.QueryDenomTracesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.channel.v1.Packet} Packet + * @returns {ibc.applications.transfer.v1.QueryDenomTracesResponse} QueryDenomTracesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Packet.decode = function decode(reader, length) { + QueryDenomTracesResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.Packet(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.transfer.v1.QueryDenomTracesResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.sequence = reader.uint64(); + if (!(message.denom_traces && message.denom_traces.length)) + message.denom_traces = []; + message.denom_traces.push($root.ibc.applications.transfer.v1.DenomTrace.decode(reader, reader.uint32())); break; case 2: - message.source_port = reader.string(); - break; - case 3: - message.source_channel = reader.string(); - break; - case 4: - message.destination_port = reader.string(); - break; - case 5: - message.destination_channel = reader.string(); - break; - case 6: - message.data = reader.bytes(); - break; - case 7: - message.timeout_height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); - break; - case 8: - message.timeout_timestamp = reader.uint64(); + message.pagination = $root.cosmos.base.query.v1beta1.PageResponse.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -35315,209 +42044,286 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a Packet message from the specified reader or buffer, length delimited. + * Decodes a QueryDenomTracesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.channel.v1.Packet + * @memberof ibc.applications.transfer.v1.QueryDenomTracesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.channel.v1.Packet} Packet + * @returns {ibc.applications.transfer.v1.QueryDenomTracesResponse} QueryDenomTracesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Packet.decodeDelimited = function decodeDelimited(reader) { + QueryDenomTracesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Packet message. + * Verifies a QueryDenomTracesResponse message. * @function verify - * @memberof ibc.core.channel.v1.Packet + * @memberof ibc.applications.transfer.v1.QueryDenomTracesResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Packet.verify = function verify(message) { + QueryDenomTracesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.sequence != null && message.hasOwnProperty("sequence")) - if (!$util.isInteger(message.sequence) && !(message.sequence && $util.isInteger(message.sequence.low) && $util.isInteger(message.sequence.high))) - return "sequence: integer|Long expected"; - if (message.source_port != null && message.hasOwnProperty("source_port")) - if (!$util.isString(message.source_port)) - return "source_port: string expected"; - if (message.source_channel != null && message.hasOwnProperty("source_channel")) - if (!$util.isString(message.source_channel)) - return "source_channel: string expected"; - if (message.destination_port != null && message.hasOwnProperty("destination_port")) - if (!$util.isString(message.destination_port)) - return "destination_port: string expected"; - if (message.destination_channel != null && message.hasOwnProperty("destination_channel")) - if (!$util.isString(message.destination_channel)) - return "destination_channel: string expected"; - if (message.data != null && message.hasOwnProperty("data")) - if (!(message.data && typeof message.data.length === "number" || $util.isString(message.data))) - return "data: buffer expected"; - if (message.timeout_height != null && message.hasOwnProperty("timeout_height")) { - let error = $root.ibc.core.client.v1.Height.verify(message.timeout_height); + if (message.denom_traces != null && message.hasOwnProperty("denom_traces")) { + if (!Array.isArray(message.denom_traces)) + return "denom_traces: array expected"; + for (let i = 0; i < message.denom_traces.length; ++i) { + let error = $root.ibc.applications.transfer.v1.DenomTrace.verify(message.denom_traces[i]); + if (error) + return "denom_traces." + error; + } + } + if (message.pagination != null && message.hasOwnProperty("pagination")) { + let error = $root.cosmos.base.query.v1beta1.PageResponse.verify(message.pagination); if (error) - return "timeout_height." + error; + return "pagination." + error; } - if (message.timeout_timestamp != null && message.hasOwnProperty("timeout_timestamp")) - if (!$util.isInteger(message.timeout_timestamp) && !(message.timeout_timestamp && $util.isInteger(message.timeout_timestamp.low) && $util.isInteger(message.timeout_timestamp.high))) - return "timeout_timestamp: integer|Long expected"; return null; }; /** - * Creates a Packet message from a plain object. Also converts values to their respective internal types. + * Creates a QueryDenomTracesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.channel.v1.Packet + * @memberof ibc.applications.transfer.v1.QueryDenomTracesResponse * @static * @param {Object.} object Plain object - * @returns {ibc.core.channel.v1.Packet} Packet + * @returns {ibc.applications.transfer.v1.QueryDenomTracesResponse} QueryDenomTracesResponse */ - Packet.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.channel.v1.Packet) + QueryDenomTracesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.transfer.v1.QueryDenomTracesResponse) return object; - let message = new $root.ibc.core.channel.v1.Packet(); - if (object.sequence != null) - if ($util.Long) - (message.sequence = $util.Long.fromValue(object.sequence)).unsigned = true; - else if (typeof object.sequence === "string") - message.sequence = parseInt(object.sequence, 10); - else if (typeof object.sequence === "number") - message.sequence = object.sequence; - else if (typeof object.sequence === "object") - message.sequence = new $util.LongBits(object.sequence.low >>> 0, object.sequence.high >>> 0).toNumber(true); - if (object.source_port != null) - message.source_port = String(object.source_port); - if (object.source_channel != null) - message.source_channel = String(object.source_channel); - if (object.destination_port != null) - message.destination_port = String(object.destination_port); - if (object.destination_channel != null) - message.destination_channel = String(object.destination_channel); - if (object.data != null) - if (typeof object.data === "string") - $util.base64.decode(object.data, message.data = $util.newBuffer($util.base64.length(object.data)), 0); - else if (object.data.length) - message.data = object.data; - if (object.timeout_height != null) { - if (typeof object.timeout_height !== "object") - throw TypeError(".ibc.core.channel.v1.Packet.timeout_height: object expected"); - message.timeout_height = $root.ibc.core.client.v1.Height.fromObject(object.timeout_height); + let message = new $root.ibc.applications.transfer.v1.QueryDenomTracesResponse(); + if (object.denom_traces) { + if (!Array.isArray(object.denom_traces)) + throw TypeError(".ibc.applications.transfer.v1.QueryDenomTracesResponse.denom_traces: array expected"); + message.denom_traces = []; + for (let i = 0; i < object.denom_traces.length; ++i) { + if (typeof object.denom_traces[i] !== "object") + throw TypeError(".ibc.applications.transfer.v1.QueryDenomTracesResponse.denom_traces: object expected"); + message.denom_traces[i] = $root.ibc.applications.transfer.v1.DenomTrace.fromObject(object.denom_traces[i]); + } + } + if (object.pagination != null) { + if (typeof object.pagination !== "object") + throw TypeError(".ibc.applications.transfer.v1.QueryDenomTracesResponse.pagination: object expected"); + message.pagination = $root.cosmos.base.query.v1beta1.PageResponse.fromObject(object.pagination); + } + return message; + }; + + /** + * Creates a plain object from a QueryDenomTracesResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof ibc.applications.transfer.v1.QueryDenomTracesResponse + * @static + * @param {ibc.applications.transfer.v1.QueryDenomTracesResponse} message QueryDenomTracesResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + QueryDenomTracesResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) + object.denom_traces = []; + if (options.defaults) + object.pagination = null; + if (message.denom_traces && message.denom_traces.length) { + object.denom_traces = []; + for (let j = 0; j < message.denom_traces.length; ++j) + object.denom_traces[j] = $root.ibc.applications.transfer.v1.DenomTrace.toObject(message.denom_traces[j], options); + } + if (message.pagination != null && message.hasOwnProperty("pagination")) + object.pagination = $root.cosmos.base.query.v1beta1.PageResponse.toObject(message.pagination, options); + return object; + }; + + /** + * Converts this QueryDenomTracesResponse to JSON. + * @function toJSON + * @memberof ibc.applications.transfer.v1.QueryDenomTracesResponse + * @instance + * @returns {Object.} JSON object + */ + QueryDenomTracesResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return QueryDenomTracesResponse; + })(); + + v1.QueryParamsRequest = (function() { + + /** + * Properties of a QueryParamsRequest. + * @memberof ibc.applications.transfer.v1 + * @interface IQueryParamsRequest + */ + + /** + * Constructs a new QueryParamsRequest. + * @memberof ibc.applications.transfer.v1 + * @classdesc Represents a QueryParamsRequest. + * @implements IQueryParamsRequest + * @constructor + * @param {ibc.applications.transfer.v1.IQueryParamsRequest=} [properties] Properties to set + */ + function QueryParamsRequest(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Encodes the specified QueryParamsRequest message. Does not implicitly {@link ibc.applications.transfer.v1.QueryParamsRequest.verify|verify} messages. + * @function encode + * @memberof ibc.applications.transfer.v1.QueryParamsRequest + * @static + * @param {ibc.applications.transfer.v1.IQueryParamsRequest} message QueryParamsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + QueryParamsRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Encodes the specified QueryParamsRequest message, length delimited. Does not implicitly {@link ibc.applications.transfer.v1.QueryParamsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof ibc.applications.transfer.v1.QueryParamsRequest + * @static + * @param {ibc.applications.transfer.v1.IQueryParamsRequest} message QueryParamsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + QueryParamsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a QueryParamsRequest message from the specified reader or buffer. + * @function decode + * @memberof ibc.applications.transfer.v1.QueryParamsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {ibc.applications.transfer.v1.QueryParamsRequest} QueryParamsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + QueryParamsRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.transfer.v1.QueryParamsRequest(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } } - if (object.timeout_timestamp != null) - if ($util.Long) - (message.timeout_timestamp = $util.Long.fromValue(object.timeout_timestamp)).unsigned = true; - else if (typeof object.timeout_timestamp === "string") - message.timeout_timestamp = parseInt(object.timeout_timestamp, 10); - else if (typeof object.timeout_timestamp === "number") - message.timeout_timestamp = object.timeout_timestamp; - else if (typeof object.timeout_timestamp === "object") - message.timeout_timestamp = new $util.LongBits(object.timeout_timestamp.low >>> 0, object.timeout_timestamp.high >>> 0).toNumber(true); return message; }; /** - * Creates a plain object from a Packet message. Also converts values to other types if specified. + * Decodes a QueryParamsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof ibc.applications.transfer.v1.QueryParamsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {ibc.applications.transfer.v1.QueryParamsRequest} QueryParamsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + QueryParamsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a QueryParamsRequest message. + * @function verify + * @memberof ibc.applications.transfer.v1.QueryParamsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + QueryParamsRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + /** + * Creates a QueryParamsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof ibc.applications.transfer.v1.QueryParamsRequest + * @static + * @param {Object.} object Plain object + * @returns {ibc.applications.transfer.v1.QueryParamsRequest} QueryParamsRequest + */ + QueryParamsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.transfer.v1.QueryParamsRequest) + return object; + return new $root.ibc.applications.transfer.v1.QueryParamsRequest(); + }; + + /** + * Creates a plain object from a QueryParamsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.channel.v1.Packet + * @memberof ibc.applications.transfer.v1.QueryParamsRequest * @static - * @param {ibc.core.channel.v1.Packet} message Packet + * @param {ibc.applications.transfer.v1.QueryParamsRequest} message QueryParamsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Packet.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - if ($util.Long) { - let long = new $util.Long(0, 0, true); - object.sequence = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.sequence = options.longs === String ? "0" : 0; - object.source_port = ""; - object.source_channel = ""; - object.destination_port = ""; - object.destination_channel = ""; - if (options.bytes === String) - object.data = ""; - else { - object.data = []; - if (options.bytes !== Array) - object.data = $util.newBuffer(object.data); - } - object.timeout_height = null; - if ($util.Long) { - let long = new $util.Long(0, 0, true); - object.timeout_timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.timeout_timestamp = options.longs === String ? "0" : 0; - } - if (message.sequence != null && message.hasOwnProperty("sequence")) - if (typeof message.sequence === "number") - object.sequence = options.longs === String ? String(message.sequence) : message.sequence; - else - object.sequence = options.longs === String ? $util.Long.prototype.toString.call(message.sequence) : options.longs === Number ? new $util.LongBits(message.sequence.low >>> 0, message.sequence.high >>> 0).toNumber(true) : message.sequence; - if (message.source_port != null && message.hasOwnProperty("source_port")) - object.source_port = message.source_port; - if (message.source_channel != null && message.hasOwnProperty("source_channel")) - object.source_channel = message.source_channel; - if (message.destination_port != null && message.hasOwnProperty("destination_port")) - object.destination_port = message.destination_port; - if (message.destination_channel != null && message.hasOwnProperty("destination_channel")) - object.destination_channel = message.destination_channel; - if (message.data != null && message.hasOwnProperty("data")) - object.data = options.bytes === String ? $util.base64.encode(message.data, 0, message.data.length) : options.bytes === Array ? Array.prototype.slice.call(message.data) : message.data; - if (message.timeout_height != null && message.hasOwnProperty("timeout_height")) - object.timeout_height = $root.ibc.core.client.v1.Height.toObject(message.timeout_height, options); - if (message.timeout_timestamp != null && message.hasOwnProperty("timeout_timestamp")) - if (typeof message.timeout_timestamp === "number") - object.timeout_timestamp = options.longs === String ? String(message.timeout_timestamp) : message.timeout_timestamp; - else - object.timeout_timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timeout_timestamp) : options.longs === Number ? new $util.LongBits(message.timeout_timestamp.low >>> 0, message.timeout_timestamp.high >>> 0).toNumber(true) : message.timeout_timestamp; - return object; + QueryParamsRequest.toObject = function toObject() { + return {}; }; /** - * Converts this Packet to JSON. + * Converts this QueryParamsRequest to JSON. * @function toJSON - * @memberof ibc.core.channel.v1.Packet + * @memberof ibc.applications.transfer.v1.QueryParamsRequest * @instance * @returns {Object.} JSON object */ - Packet.prototype.toJSON = function toJSON() { + QueryParamsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Packet; + return QueryParamsRequest; })(); - v1.PacketState = (function() { + v1.QueryParamsResponse = (function() { /** - * Properties of a PacketState. - * @memberof ibc.core.channel.v1 - * @interface IPacketState - * @property {string|null} [port_id] PacketState port_id - * @property {string|null} [channel_id] PacketState channel_id - * @property {Long|null} [sequence] PacketState sequence - * @property {Uint8Array|null} [data] PacketState data + * Properties of a QueryParamsResponse. + * @memberof ibc.applications.transfer.v1 + * @interface IQueryParamsResponse + * @property {ibc.applications.transfer.v1.IParams|null} [params] QueryParamsResponse params */ /** - * Constructs a new PacketState. - * @memberof ibc.core.channel.v1 - * @classdesc Represents a PacketState. - * @implements IPacketState + * Constructs a new QueryParamsResponse. + * @memberof ibc.applications.transfer.v1 + * @classdesc Represents a QueryParamsResponse. + * @implements IQueryParamsResponse * @constructor - * @param {ibc.core.channel.v1.IPacketState=} [properties] Properties to set + * @param {ibc.applications.transfer.v1.IQueryParamsResponse=} [properties] Properties to set */ - function PacketState(properties) { + function QueryParamsResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -35525,102 +42331,63 @@ export const ibc = $root.ibc = (() => { } /** - * PacketState port_id. - * @member {string} port_id - * @memberof ibc.core.channel.v1.PacketState - * @instance - */ - PacketState.prototype.port_id = ""; - - /** - * PacketState channel_id. - * @member {string} channel_id - * @memberof ibc.core.channel.v1.PacketState - * @instance - */ - PacketState.prototype.channel_id = ""; - - /** - * PacketState sequence. - * @member {Long} sequence - * @memberof ibc.core.channel.v1.PacketState - * @instance - */ - PacketState.prototype.sequence = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * PacketState data. - * @member {Uint8Array} data - * @memberof ibc.core.channel.v1.PacketState + * QueryParamsResponse params. + * @member {ibc.applications.transfer.v1.IParams|null|undefined} params + * @memberof ibc.applications.transfer.v1.QueryParamsResponse * @instance */ - PacketState.prototype.data = $util.newBuffer([]); + QueryParamsResponse.prototype.params = null; /** - * Encodes the specified PacketState message. Does not implicitly {@link ibc.core.channel.v1.PacketState.verify|verify} messages. + * Encodes the specified QueryParamsResponse message. Does not implicitly {@link ibc.applications.transfer.v1.QueryParamsResponse.verify|verify} messages. * @function encode - * @memberof ibc.core.channel.v1.PacketState + * @memberof ibc.applications.transfer.v1.QueryParamsResponse * @static - * @param {ibc.core.channel.v1.IPacketState} message PacketState message or plain object to encode + * @param {ibc.applications.transfer.v1.IQueryParamsResponse} message QueryParamsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PacketState.encode = function encode(message, writer) { + QueryParamsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.port_id != null && Object.hasOwnProperty.call(message, "port_id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.port_id); - if (message.channel_id != null && Object.hasOwnProperty.call(message, "channel_id")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.channel_id); - if (message.sequence != null && Object.hasOwnProperty.call(message, "sequence")) - writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.sequence); - if (message.data != null && Object.hasOwnProperty.call(message, "data")) - writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.data); + if (message.params != null && Object.hasOwnProperty.call(message, "params")) + $root.ibc.applications.transfer.v1.Params.encode(message.params, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified PacketState message, length delimited. Does not implicitly {@link ibc.core.channel.v1.PacketState.verify|verify} messages. + * Encodes the specified QueryParamsResponse message, length delimited. Does not implicitly {@link ibc.applications.transfer.v1.QueryParamsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.channel.v1.PacketState + * @memberof ibc.applications.transfer.v1.QueryParamsResponse * @static - * @param {ibc.core.channel.v1.IPacketState} message PacketState message or plain object to encode + * @param {ibc.applications.transfer.v1.IQueryParamsResponse} message QueryParamsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PacketState.encodeDelimited = function encodeDelimited(message, writer) { + QueryParamsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PacketState message from the specified reader or buffer. + * Decodes a QueryParamsResponse message from the specified reader or buffer. * @function decode - * @memberof ibc.core.channel.v1.PacketState + * @memberof ibc.applications.transfer.v1.QueryParamsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.channel.v1.PacketState} PacketState + * @returns {ibc.applications.transfer.v1.QueryParamsResponse} QueryParamsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PacketState.decode = function decode(reader, length) { + QueryParamsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.PacketState(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.transfer.v1.QueryParamsResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.port_id = reader.string(); - break; - case 2: - message.channel_id = reader.string(); - break; - case 3: - message.sequence = reader.uint64(); - break; - case 4: - message.data = reader.bytes(); + message.params = $root.ibc.applications.transfer.v1.Params.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -35631,157 +42398,112 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a PacketState message from the specified reader or buffer, length delimited. + * Decodes a QueryParamsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.channel.v1.PacketState + * @memberof ibc.applications.transfer.v1.QueryParamsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.channel.v1.PacketState} PacketState + * @returns {ibc.applications.transfer.v1.QueryParamsResponse} QueryParamsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PacketState.decodeDelimited = function decodeDelimited(reader) { + QueryParamsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PacketState message. + * Verifies a QueryParamsResponse message. * @function verify - * @memberof ibc.core.channel.v1.PacketState + * @memberof ibc.applications.transfer.v1.QueryParamsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PacketState.verify = function verify(message) { + QueryParamsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.port_id != null && message.hasOwnProperty("port_id")) - if (!$util.isString(message.port_id)) - return "port_id: string expected"; - if (message.channel_id != null && message.hasOwnProperty("channel_id")) - if (!$util.isString(message.channel_id)) - return "channel_id: string expected"; - if (message.sequence != null && message.hasOwnProperty("sequence")) - if (!$util.isInteger(message.sequence) && !(message.sequence && $util.isInteger(message.sequence.low) && $util.isInteger(message.sequence.high))) - return "sequence: integer|Long expected"; - if (message.data != null && message.hasOwnProperty("data")) - if (!(message.data && typeof message.data.length === "number" || $util.isString(message.data))) - return "data: buffer expected"; + if (message.params != null && message.hasOwnProperty("params")) { + let error = $root.ibc.applications.transfer.v1.Params.verify(message.params); + if (error) + return "params." + error; + } return null; }; /** - * Creates a PacketState message from a plain object. Also converts values to their respective internal types. + * Creates a QueryParamsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.channel.v1.PacketState + * @memberof ibc.applications.transfer.v1.QueryParamsResponse * @static * @param {Object.} object Plain object - * @returns {ibc.core.channel.v1.PacketState} PacketState + * @returns {ibc.applications.transfer.v1.QueryParamsResponse} QueryParamsResponse */ - PacketState.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.channel.v1.PacketState) + QueryParamsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.transfer.v1.QueryParamsResponse) return object; - let message = new $root.ibc.core.channel.v1.PacketState(); - if (object.port_id != null) - message.port_id = String(object.port_id); - if (object.channel_id != null) - message.channel_id = String(object.channel_id); - if (object.sequence != null) - if ($util.Long) - (message.sequence = $util.Long.fromValue(object.sequence)).unsigned = true; - else if (typeof object.sequence === "string") - message.sequence = parseInt(object.sequence, 10); - else if (typeof object.sequence === "number") - message.sequence = object.sequence; - else if (typeof object.sequence === "object") - message.sequence = new $util.LongBits(object.sequence.low >>> 0, object.sequence.high >>> 0).toNumber(true); - if (object.data != null) - if (typeof object.data === "string") - $util.base64.decode(object.data, message.data = $util.newBuffer($util.base64.length(object.data)), 0); - else if (object.data.length) - message.data = object.data; + let message = new $root.ibc.applications.transfer.v1.QueryParamsResponse(); + if (object.params != null) { + if (typeof object.params !== "object") + throw TypeError(".ibc.applications.transfer.v1.QueryParamsResponse.params: object expected"); + message.params = $root.ibc.applications.transfer.v1.Params.fromObject(object.params); + } return message; }; /** - * Creates a plain object from a PacketState message. Also converts values to other types if specified. + * Creates a plain object from a QueryParamsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.channel.v1.PacketState + * @memberof ibc.applications.transfer.v1.QueryParamsResponse * @static - * @param {ibc.core.channel.v1.PacketState} message PacketState + * @param {ibc.applications.transfer.v1.QueryParamsResponse} message QueryParamsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PacketState.toObject = function toObject(message, options) { + QueryParamsResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) { - object.port_id = ""; - object.channel_id = ""; - if ($util.Long) { - let long = new $util.Long(0, 0, true); - object.sequence = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.sequence = options.longs === String ? "0" : 0; - if (options.bytes === String) - object.data = ""; - else { - object.data = []; - if (options.bytes !== Array) - object.data = $util.newBuffer(object.data); - } - } - if (message.port_id != null && message.hasOwnProperty("port_id")) - object.port_id = message.port_id; - if (message.channel_id != null && message.hasOwnProperty("channel_id")) - object.channel_id = message.channel_id; - if (message.sequence != null && message.hasOwnProperty("sequence")) - if (typeof message.sequence === "number") - object.sequence = options.longs === String ? String(message.sequence) : message.sequence; - else - object.sequence = options.longs === String ? $util.Long.prototype.toString.call(message.sequence) : options.longs === Number ? new $util.LongBits(message.sequence.low >>> 0, message.sequence.high >>> 0).toNumber(true) : message.sequence; - if (message.data != null && message.hasOwnProperty("data")) - object.data = options.bytes === String ? $util.base64.encode(message.data, 0, message.data.length) : options.bytes === Array ? Array.prototype.slice.call(message.data) : message.data; + if (options.defaults) + object.params = null; + if (message.params != null && message.hasOwnProperty("params")) + object.params = $root.ibc.applications.transfer.v1.Params.toObject(message.params, options); return object; }; /** - * Converts this PacketState to JSON. + * Converts this QueryParamsResponse to JSON. * @function toJSON - * @memberof ibc.core.channel.v1.PacketState + * @memberof ibc.applications.transfer.v1.QueryParamsResponse * @instance * @returns {Object.} JSON object */ - PacketState.prototype.toJSON = function toJSON() { + QueryParamsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return PacketState; + return QueryParamsResponse; })(); - v1.PacketId = (function() { + v1.QueryDenomHashRequest = (function() { /** - * Properties of a PacketId. - * @memberof ibc.core.channel.v1 - * @interface IPacketId - * @property {string|null} [port_id] PacketId port_id - * @property {string|null} [channel_id] PacketId channel_id - * @property {Long|null} [sequence] PacketId sequence + * Properties of a QueryDenomHashRequest. + * @memberof ibc.applications.transfer.v1 + * @interface IQueryDenomHashRequest + * @property {string|null} [trace] QueryDenomHashRequest trace */ /** - * Constructs a new PacketId. - * @memberof ibc.core.channel.v1 - * @classdesc Represents a PacketId. - * @implements IPacketId + * Constructs a new QueryDenomHashRequest. + * @memberof ibc.applications.transfer.v1 + * @classdesc Represents a QueryDenomHashRequest. + * @implements IQueryDenomHashRequest * @constructor - * @param {ibc.core.channel.v1.IPacketId=} [properties] Properties to set + * @param {ibc.applications.transfer.v1.IQueryDenomHashRequest=} [properties] Properties to set */ - function PacketId(properties) { + function QueryDenomHashRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -35789,89 +42511,63 @@ export const ibc = $root.ibc = (() => { } /** - * PacketId port_id. - * @member {string} port_id - * @memberof ibc.core.channel.v1.PacketId - * @instance - */ - PacketId.prototype.port_id = ""; - - /** - * PacketId channel_id. - * @member {string} channel_id - * @memberof ibc.core.channel.v1.PacketId - * @instance - */ - PacketId.prototype.channel_id = ""; - - /** - * PacketId sequence. - * @member {Long} sequence - * @memberof ibc.core.channel.v1.PacketId + * QueryDenomHashRequest trace. + * @member {string} trace + * @memberof ibc.applications.transfer.v1.QueryDenomHashRequest * @instance */ - PacketId.prototype.sequence = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + QueryDenomHashRequest.prototype.trace = ""; /** - * Encodes the specified PacketId message. Does not implicitly {@link ibc.core.channel.v1.PacketId.verify|verify} messages. + * Encodes the specified QueryDenomHashRequest message. Does not implicitly {@link ibc.applications.transfer.v1.QueryDenomHashRequest.verify|verify} messages. * @function encode - * @memberof ibc.core.channel.v1.PacketId + * @memberof ibc.applications.transfer.v1.QueryDenomHashRequest * @static - * @param {ibc.core.channel.v1.IPacketId} message PacketId message or plain object to encode + * @param {ibc.applications.transfer.v1.IQueryDenomHashRequest} message QueryDenomHashRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PacketId.encode = function encode(message, writer) { + QueryDenomHashRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.port_id != null && Object.hasOwnProperty.call(message, "port_id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.port_id); - if (message.channel_id != null && Object.hasOwnProperty.call(message, "channel_id")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.channel_id); - if (message.sequence != null && Object.hasOwnProperty.call(message, "sequence")) - writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.sequence); + if (message.trace != null && Object.hasOwnProperty.call(message, "trace")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.trace); return writer; }; /** - * Encodes the specified PacketId message, length delimited. Does not implicitly {@link ibc.core.channel.v1.PacketId.verify|verify} messages. + * Encodes the specified QueryDenomHashRequest message, length delimited. Does not implicitly {@link ibc.applications.transfer.v1.QueryDenomHashRequest.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.channel.v1.PacketId + * @memberof ibc.applications.transfer.v1.QueryDenomHashRequest * @static - * @param {ibc.core.channel.v1.IPacketId} message PacketId message or plain object to encode + * @param {ibc.applications.transfer.v1.IQueryDenomHashRequest} message QueryDenomHashRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PacketId.encodeDelimited = function encodeDelimited(message, writer) { + QueryDenomHashRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PacketId message from the specified reader or buffer. + * Decodes a QueryDenomHashRequest message from the specified reader or buffer. * @function decode - * @memberof ibc.core.channel.v1.PacketId + * @memberof ibc.applications.transfer.v1.QueryDenomHashRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.channel.v1.PacketId} PacketId + * @returns {ibc.applications.transfer.v1.QueryDenomHashRequest} QueryDenomHashRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PacketId.decode = function decode(reader, length) { + QueryDenomHashRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.PacketId(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.transfer.v1.QueryDenomHashRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.port_id = reader.string(); - break; - case 2: - message.channel_id = reader.string(); - break; - case 3: - message.sequence = reader.uint64(); + message.trace = reader.string(); break; default: reader.skipType(tag & 7); @@ -35882,139 +42578,107 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a PacketId message from the specified reader or buffer, length delimited. + * Decodes a QueryDenomHashRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.channel.v1.PacketId + * @memberof ibc.applications.transfer.v1.QueryDenomHashRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.channel.v1.PacketId} PacketId + * @returns {ibc.applications.transfer.v1.QueryDenomHashRequest} QueryDenomHashRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PacketId.decodeDelimited = function decodeDelimited(reader) { + QueryDenomHashRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PacketId message. + * Verifies a QueryDenomHashRequest message. * @function verify - * @memberof ibc.core.channel.v1.PacketId + * @memberof ibc.applications.transfer.v1.QueryDenomHashRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PacketId.verify = function verify(message) { + QueryDenomHashRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.port_id != null && message.hasOwnProperty("port_id")) - if (!$util.isString(message.port_id)) - return "port_id: string expected"; - if (message.channel_id != null && message.hasOwnProperty("channel_id")) - if (!$util.isString(message.channel_id)) - return "channel_id: string expected"; - if (message.sequence != null && message.hasOwnProperty("sequence")) - if (!$util.isInteger(message.sequence) && !(message.sequence && $util.isInteger(message.sequence.low) && $util.isInteger(message.sequence.high))) - return "sequence: integer|Long expected"; + if (message.trace != null && message.hasOwnProperty("trace")) + if (!$util.isString(message.trace)) + return "trace: string expected"; return null; }; /** - * Creates a PacketId message from a plain object. Also converts values to their respective internal types. + * Creates a QueryDenomHashRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.channel.v1.PacketId + * @memberof ibc.applications.transfer.v1.QueryDenomHashRequest * @static * @param {Object.} object Plain object - * @returns {ibc.core.channel.v1.PacketId} PacketId + * @returns {ibc.applications.transfer.v1.QueryDenomHashRequest} QueryDenomHashRequest */ - PacketId.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.channel.v1.PacketId) + QueryDenomHashRequest.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.transfer.v1.QueryDenomHashRequest) return object; - let message = new $root.ibc.core.channel.v1.PacketId(); - if (object.port_id != null) - message.port_id = String(object.port_id); - if (object.channel_id != null) - message.channel_id = String(object.channel_id); - if (object.sequence != null) - if ($util.Long) - (message.sequence = $util.Long.fromValue(object.sequence)).unsigned = true; - else if (typeof object.sequence === "string") - message.sequence = parseInt(object.sequence, 10); - else if (typeof object.sequence === "number") - message.sequence = object.sequence; - else if (typeof object.sequence === "object") - message.sequence = new $util.LongBits(object.sequence.low >>> 0, object.sequence.high >>> 0).toNumber(true); + let message = new $root.ibc.applications.transfer.v1.QueryDenomHashRequest(); + if (object.trace != null) + message.trace = String(object.trace); return message; }; /** - * Creates a plain object from a PacketId message. Also converts values to other types if specified. + * Creates a plain object from a QueryDenomHashRequest message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.channel.v1.PacketId + * @memberof ibc.applications.transfer.v1.QueryDenomHashRequest * @static - * @param {ibc.core.channel.v1.PacketId} message PacketId + * @param {ibc.applications.transfer.v1.QueryDenomHashRequest} message QueryDenomHashRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PacketId.toObject = function toObject(message, options) { + QueryDenomHashRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) { - object.port_id = ""; - object.channel_id = ""; - if ($util.Long) { - let long = new $util.Long(0, 0, true); - object.sequence = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.sequence = options.longs === String ? "0" : 0; - } - if (message.port_id != null && message.hasOwnProperty("port_id")) - object.port_id = message.port_id; - if (message.channel_id != null && message.hasOwnProperty("channel_id")) - object.channel_id = message.channel_id; - if (message.sequence != null && message.hasOwnProperty("sequence")) - if (typeof message.sequence === "number") - object.sequence = options.longs === String ? String(message.sequence) : message.sequence; - else - object.sequence = options.longs === String ? $util.Long.prototype.toString.call(message.sequence) : options.longs === Number ? new $util.LongBits(message.sequence.low >>> 0, message.sequence.high >>> 0).toNumber(true) : message.sequence; + if (options.defaults) + object.trace = ""; + if (message.trace != null && message.hasOwnProperty("trace")) + object.trace = message.trace; return object; }; /** - * Converts this PacketId to JSON. + * Converts this QueryDenomHashRequest to JSON. * @function toJSON - * @memberof ibc.core.channel.v1.PacketId + * @memberof ibc.applications.transfer.v1.QueryDenomHashRequest * @instance * @returns {Object.} JSON object */ - PacketId.prototype.toJSON = function toJSON() { + QueryDenomHashRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return PacketId; + return QueryDenomHashRequest; })(); - v1.Acknowledgement = (function() { + v1.QueryDenomHashResponse = (function() { /** - * Properties of an Acknowledgement. - * @memberof ibc.core.channel.v1 - * @interface IAcknowledgement - * @property {Uint8Array|null} [result] Acknowledgement result - * @property {string|null} [error] Acknowledgement error + * Properties of a QueryDenomHashResponse. + * @memberof ibc.applications.transfer.v1 + * @interface IQueryDenomHashResponse + * @property {string|null} [hash] QueryDenomHashResponse hash */ /** - * Constructs a new Acknowledgement. - * @memberof ibc.core.channel.v1 - * @classdesc Represents an Acknowledgement. - * @implements IAcknowledgement + * Constructs a new QueryDenomHashResponse. + * @memberof ibc.applications.transfer.v1 + * @classdesc Represents a QueryDenomHashResponse. + * @implements IQueryDenomHashResponse * @constructor - * @param {ibc.core.channel.v1.IAcknowledgement=} [properties] Properties to set + * @param {ibc.applications.transfer.v1.IQueryDenomHashResponse=} [properties] Properties to set */ - function Acknowledgement(properties) { + function QueryDenomHashResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -36022,90 +42686,63 @@ export const ibc = $root.ibc = (() => { } /** - * Acknowledgement result. - * @member {Uint8Array|null|undefined} result - * @memberof ibc.core.channel.v1.Acknowledgement - * @instance - */ - Acknowledgement.prototype.result = null; - - /** - * Acknowledgement error. - * @member {string|null|undefined} error - * @memberof ibc.core.channel.v1.Acknowledgement - * @instance - */ - Acknowledgement.prototype.error = null; - - // OneOf field names bound to virtual getters and setters - let $oneOfFields; - - /** - * Acknowledgement response. - * @member {"result"|"error"|undefined} response - * @memberof ibc.core.channel.v1.Acknowledgement + * QueryDenomHashResponse hash. + * @member {string} hash + * @memberof ibc.applications.transfer.v1.QueryDenomHashResponse * @instance */ - Object.defineProperty(Acknowledgement.prototype, "response", { - get: $util.oneOfGetter($oneOfFields = ["result", "error"]), - set: $util.oneOfSetter($oneOfFields) - }); + QueryDenomHashResponse.prototype.hash = ""; /** - * Encodes the specified Acknowledgement message. Does not implicitly {@link ibc.core.channel.v1.Acknowledgement.verify|verify} messages. + * Encodes the specified QueryDenomHashResponse message. Does not implicitly {@link ibc.applications.transfer.v1.QueryDenomHashResponse.verify|verify} messages. * @function encode - * @memberof ibc.core.channel.v1.Acknowledgement + * @memberof ibc.applications.transfer.v1.QueryDenomHashResponse * @static - * @param {ibc.core.channel.v1.IAcknowledgement} message Acknowledgement message or plain object to encode + * @param {ibc.applications.transfer.v1.IQueryDenomHashResponse} message QueryDenomHashResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Acknowledgement.encode = function encode(message, writer) { + QueryDenomHashResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.result != null && Object.hasOwnProperty.call(message, "result")) - writer.uint32(/* id 21, wireType 2 =*/170).bytes(message.result); - if (message.error != null && Object.hasOwnProperty.call(message, "error")) - writer.uint32(/* id 22, wireType 2 =*/178).string(message.error); + if (message.hash != null && Object.hasOwnProperty.call(message, "hash")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.hash); return writer; }; /** - * Encodes the specified Acknowledgement message, length delimited. Does not implicitly {@link ibc.core.channel.v1.Acknowledgement.verify|verify} messages. + * Encodes the specified QueryDenomHashResponse message, length delimited. Does not implicitly {@link ibc.applications.transfer.v1.QueryDenomHashResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.channel.v1.Acknowledgement + * @memberof ibc.applications.transfer.v1.QueryDenomHashResponse * @static - * @param {ibc.core.channel.v1.IAcknowledgement} message Acknowledgement message or plain object to encode + * @param {ibc.applications.transfer.v1.IQueryDenomHashResponse} message QueryDenomHashResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Acknowledgement.encodeDelimited = function encodeDelimited(message, writer) { + QueryDenomHashResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an Acknowledgement message from the specified reader or buffer. + * Decodes a QueryDenomHashResponse message from the specified reader or buffer. * @function decode - * @memberof ibc.core.channel.v1.Acknowledgement + * @memberof ibc.applications.transfer.v1.QueryDenomHashResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.channel.v1.Acknowledgement} Acknowledgement + * @returns {ibc.applications.transfer.v1.QueryDenomHashResponse} QueryDenomHashResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Acknowledgement.decode = function decode(reader, length) { + QueryDenomHashResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.Acknowledgement(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.transfer.v1.QueryDenomHashResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 21: - message.result = reader.bytes(); - break; - case 22: - message.error = reader.string(); + case 1: + message.hash = reader.string(); break; default: reader.skipType(tag & 7); @@ -36116,497 +42753,108 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes an Acknowledgement message from the specified reader or buffer, length delimited. + * Decodes a QueryDenomHashResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.channel.v1.Acknowledgement + * @memberof ibc.applications.transfer.v1.QueryDenomHashResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.channel.v1.Acknowledgement} Acknowledgement + * @returns {ibc.applications.transfer.v1.QueryDenomHashResponse} QueryDenomHashResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Acknowledgement.decodeDelimited = function decodeDelimited(reader) { + QueryDenomHashResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an Acknowledgement message. + * Verifies a QueryDenomHashResponse message. * @function verify - * @memberof ibc.core.channel.v1.Acknowledgement + * @memberof ibc.applications.transfer.v1.QueryDenomHashResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Acknowledgement.verify = function verify(message) { + QueryDenomHashResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - let properties = {}; - if (message.result != null && message.hasOwnProperty("result")) { - properties.response = 1; - if (!(message.result && typeof message.result.length === "number" || $util.isString(message.result))) - return "result: buffer expected"; - } - if (message.error != null && message.hasOwnProperty("error")) { - if (properties.response === 1) - return "response: multiple values"; - properties.response = 1; - if (!$util.isString(message.error)) - return "error: string expected"; - } + if (message.hash != null && message.hasOwnProperty("hash")) + if (!$util.isString(message.hash)) + return "hash: string expected"; return null; }; /** - * Creates an Acknowledgement message from a plain object. Also converts values to their respective internal types. + * Creates a QueryDenomHashResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.channel.v1.Acknowledgement + * @memberof ibc.applications.transfer.v1.QueryDenomHashResponse * @static * @param {Object.} object Plain object - * @returns {ibc.core.channel.v1.Acknowledgement} Acknowledgement + * @returns {ibc.applications.transfer.v1.QueryDenomHashResponse} QueryDenomHashResponse */ - Acknowledgement.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.channel.v1.Acknowledgement) + QueryDenomHashResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.transfer.v1.QueryDenomHashResponse) return object; - let message = new $root.ibc.core.channel.v1.Acknowledgement(); - if (object.result != null) - if (typeof object.result === "string") - $util.base64.decode(object.result, message.result = $util.newBuffer($util.base64.length(object.result)), 0); - else if (object.result.length) - message.result = object.result; - if (object.error != null) - message.error = String(object.error); + let message = new $root.ibc.applications.transfer.v1.QueryDenomHashResponse(); + if (object.hash != null) + message.hash = String(object.hash); return message; }; /** - * Creates a plain object from an Acknowledgement message. Also converts values to other types if specified. + * Creates a plain object from a QueryDenomHashResponse message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.channel.v1.Acknowledgement + * @memberof ibc.applications.transfer.v1.QueryDenomHashResponse * @static - * @param {ibc.core.channel.v1.Acknowledgement} message Acknowledgement + * @param {ibc.applications.transfer.v1.QueryDenomHashResponse} message QueryDenomHashResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Acknowledgement.toObject = function toObject(message, options) { + QueryDenomHashResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (message.result != null && message.hasOwnProperty("result")) { - object.result = options.bytes === String ? $util.base64.encode(message.result, 0, message.result.length) : options.bytes === Array ? Array.prototype.slice.call(message.result) : message.result; - if (options.oneofs) - object.response = "result"; - } - if (message.error != null && message.hasOwnProperty("error")) { - object.error = message.error; - if (options.oneofs) - object.response = "error"; - } + if (options.defaults) + object.hash = ""; + if (message.hash != null && message.hasOwnProperty("hash")) + object.hash = message.hash; return object; }; - - /** - * Converts this Acknowledgement to JSON. - * @function toJSON - * @memberof ibc.core.channel.v1.Acknowledgement - * @instance - * @returns {Object.} JSON object - */ - Acknowledgement.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return Acknowledgement; - })(); - - v1.Msg = (function() { - - /** - * Constructs a new Msg service. - * @memberof ibc.core.channel.v1 - * @classdesc Represents a Msg - * @extends $protobuf.rpc.Service - * @constructor - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - */ - function Msg(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } - - (Msg.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Msg; - - /** - * Callback as used by {@link ibc.core.channel.v1.Msg#channelOpenInit}. - * @memberof ibc.core.channel.v1.Msg - * @typedef ChannelOpenInitCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.core.channel.v1.MsgChannelOpenInitResponse} [response] MsgChannelOpenInitResponse - */ - - /** - * Calls ChannelOpenInit. - * @function channelOpenInit - * @memberof ibc.core.channel.v1.Msg - * @instance - * @param {ibc.core.channel.v1.IMsgChannelOpenInit} request MsgChannelOpenInit message or plain object - * @param {ibc.core.channel.v1.Msg.ChannelOpenInitCallback} callback Node-style callback called with the error, if any, and MsgChannelOpenInitResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Msg.prototype.channelOpenInit = function channelOpenInit(request, callback) { - return this.rpcCall(channelOpenInit, $root.ibc.core.channel.v1.MsgChannelOpenInit, $root.ibc.core.channel.v1.MsgChannelOpenInitResponse, request, callback); - }, "name", { value: "ChannelOpenInit" }); - - /** - * Calls ChannelOpenInit. - * @function channelOpenInit - * @memberof ibc.core.channel.v1.Msg - * @instance - * @param {ibc.core.channel.v1.IMsgChannelOpenInit} request MsgChannelOpenInit message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link ibc.core.channel.v1.Msg#channelOpenTry}. - * @memberof ibc.core.channel.v1.Msg - * @typedef ChannelOpenTryCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.core.channel.v1.MsgChannelOpenTryResponse} [response] MsgChannelOpenTryResponse - */ - - /** - * Calls ChannelOpenTry. - * @function channelOpenTry - * @memberof ibc.core.channel.v1.Msg - * @instance - * @param {ibc.core.channel.v1.IMsgChannelOpenTry} request MsgChannelOpenTry message or plain object - * @param {ibc.core.channel.v1.Msg.ChannelOpenTryCallback} callback Node-style callback called with the error, if any, and MsgChannelOpenTryResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Msg.prototype.channelOpenTry = function channelOpenTry(request, callback) { - return this.rpcCall(channelOpenTry, $root.ibc.core.channel.v1.MsgChannelOpenTry, $root.ibc.core.channel.v1.MsgChannelOpenTryResponse, request, callback); - }, "name", { value: "ChannelOpenTry" }); - - /** - * Calls ChannelOpenTry. - * @function channelOpenTry - * @memberof ibc.core.channel.v1.Msg - * @instance - * @param {ibc.core.channel.v1.IMsgChannelOpenTry} request MsgChannelOpenTry message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link ibc.core.channel.v1.Msg#channelOpenAck}. - * @memberof ibc.core.channel.v1.Msg - * @typedef ChannelOpenAckCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.core.channel.v1.MsgChannelOpenAckResponse} [response] MsgChannelOpenAckResponse - */ - - /** - * Calls ChannelOpenAck. - * @function channelOpenAck - * @memberof ibc.core.channel.v1.Msg - * @instance - * @param {ibc.core.channel.v1.IMsgChannelOpenAck} request MsgChannelOpenAck message or plain object - * @param {ibc.core.channel.v1.Msg.ChannelOpenAckCallback} callback Node-style callback called with the error, if any, and MsgChannelOpenAckResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Msg.prototype.channelOpenAck = function channelOpenAck(request, callback) { - return this.rpcCall(channelOpenAck, $root.ibc.core.channel.v1.MsgChannelOpenAck, $root.ibc.core.channel.v1.MsgChannelOpenAckResponse, request, callback); - }, "name", { value: "ChannelOpenAck" }); - - /** - * Calls ChannelOpenAck. - * @function channelOpenAck - * @memberof ibc.core.channel.v1.Msg - * @instance - * @param {ibc.core.channel.v1.IMsgChannelOpenAck} request MsgChannelOpenAck message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link ibc.core.channel.v1.Msg#channelOpenConfirm}. - * @memberof ibc.core.channel.v1.Msg - * @typedef ChannelOpenConfirmCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.core.channel.v1.MsgChannelOpenConfirmResponse} [response] MsgChannelOpenConfirmResponse - */ - - /** - * Calls ChannelOpenConfirm. - * @function channelOpenConfirm - * @memberof ibc.core.channel.v1.Msg - * @instance - * @param {ibc.core.channel.v1.IMsgChannelOpenConfirm} request MsgChannelOpenConfirm message or plain object - * @param {ibc.core.channel.v1.Msg.ChannelOpenConfirmCallback} callback Node-style callback called with the error, if any, and MsgChannelOpenConfirmResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Msg.prototype.channelOpenConfirm = function channelOpenConfirm(request, callback) { - return this.rpcCall(channelOpenConfirm, $root.ibc.core.channel.v1.MsgChannelOpenConfirm, $root.ibc.core.channel.v1.MsgChannelOpenConfirmResponse, request, callback); - }, "name", { value: "ChannelOpenConfirm" }); - - /** - * Calls ChannelOpenConfirm. - * @function channelOpenConfirm - * @memberof ibc.core.channel.v1.Msg - * @instance - * @param {ibc.core.channel.v1.IMsgChannelOpenConfirm} request MsgChannelOpenConfirm message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link ibc.core.channel.v1.Msg#channelCloseInit}. - * @memberof ibc.core.channel.v1.Msg - * @typedef ChannelCloseInitCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.core.channel.v1.MsgChannelCloseInitResponse} [response] MsgChannelCloseInitResponse - */ - - /** - * Calls ChannelCloseInit. - * @function channelCloseInit - * @memberof ibc.core.channel.v1.Msg - * @instance - * @param {ibc.core.channel.v1.IMsgChannelCloseInit} request MsgChannelCloseInit message or plain object - * @param {ibc.core.channel.v1.Msg.ChannelCloseInitCallback} callback Node-style callback called with the error, if any, and MsgChannelCloseInitResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Msg.prototype.channelCloseInit = function channelCloseInit(request, callback) { - return this.rpcCall(channelCloseInit, $root.ibc.core.channel.v1.MsgChannelCloseInit, $root.ibc.core.channel.v1.MsgChannelCloseInitResponse, request, callback); - }, "name", { value: "ChannelCloseInit" }); - - /** - * Calls ChannelCloseInit. - * @function channelCloseInit - * @memberof ibc.core.channel.v1.Msg - * @instance - * @param {ibc.core.channel.v1.IMsgChannelCloseInit} request MsgChannelCloseInit message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link ibc.core.channel.v1.Msg#channelCloseConfirm}. - * @memberof ibc.core.channel.v1.Msg - * @typedef ChannelCloseConfirmCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.core.channel.v1.MsgChannelCloseConfirmResponse} [response] MsgChannelCloseConfirmResponse - */ - - /** - * Calls ChannelCloseConfirm. - * @function channelCloseConfirm - * @memberof ibc.core.channel.v1.Msg - * @instance - * @param {ibc.core.channel.v1.IMsgChannelCloseConfirm} request MsgChannelCloseConfirm message or plain object - * @param {ibc.core.channel.v1.Msg.ChannelCloseConfirmCallback} callback Node-style callback called with the error, if any, and MsgChannelCloseConfirmResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Msg.prototype.channelCloseConfirm = function channelCloseConfirm(request, callback) { - return this.rpcCall(channelCloseConfirm, $root.ibc.core.channel.v1.MsgChannelCloseConfirm, $root.ibc.core.channel.v1.MsgChannelCloseConfirmResponse, request, callback); - }, "name", { value: "ChannelCloseConfirm" }); - - /** - * Calls ChannelCloseConfirm. - * @function channelCloseConfirm - * @memberof ibc.core.channel.v1.Msg - * @instance - * @param {ibc.core.channel.v1.IMsgChannelCloseConfirm} request MsgChannelCloseConfirm message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link ibc.core.channel.v1.Msg#recvPacket}. - * @memberof ibc.core.channel.v1.Msg - * @typedef RecvPacketCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.core.channel.v1.MsgRecvPacketResponse} [response] MsgRecvPacketResponse - */ - - /** - * Calls RecvPacket. - * @function recvPacket - * @memberof ibc.core.channel.v1.Msg - * @instance - * @param {ibc.core.channel.v1.IMsgRecvPacket} request MsgRecvPacket message or plain object - * @param {ibc.core.channel.v1.Msg.RecvPacketCallback} callback Node-style callback called with the error, if any, and MsgRecvPacketResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Msg.prototype.recvPacket = function recvPacket(request, callback) { - return this.rpcCall(recvPacket, $root.ibc.core.channel.v1.MsgRecvPacket, $root.ibc.core.channel.v1.MsgRecvPacketResponse, request, callback); - }, "name", { value: "RecvPacket" }); - - /** - * Calls RecvPacket. - * @function recvPacket - * @memberof ibc.core.channel.v1.Msg - * @instance - * @param {ibc.core.channel.v1.IMsgRecvPacket} request MsgRecvPacket message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link ibc.core.channel.v1.Msg#timeout}. - * @memberof ibc.core.channel.v1.Msg - * @typedef TimeoutCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.core.channel.v1.MsgTimeoutResponse} [response] MsgTimeoutResponse - */ - - /** - * Calls Timeout. - * @function timeout - * @memberof ibc.core.channel.v1.Msg - * @instance - * @param {ibc.core.channel.v1.IMsgTimeout} request MsgTimeout message or plain object - * @param {ibc.core.channel.v1.Msg.TimeoutCallback} callback Node-style callback called with the error, if any, and MsgTimeoutResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Msg.prototype.timeout = function timeout(request, callback) { - return this.rpcCall(timeout, $root.ibc.core.channel.v1.MsgTimeout, $root.ibc.core.channel.v1.MsgTimeoutResponse, request, callback); - }, "name", { value: "Timeout" }); - - /** - * Calls Timeout. - * @function timeout - * @memberof ibc.core.channel.v1.Msg - * @instance - * @param {ibc.core.channel.v1.IMsgTimeout} request MsgTimeout message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link ibc.core.channel.v1.Msg#timeoutOnClose}. - * @memberof ibc.core.channel.v1.Msg - * @typedef TimeoutOnCloseCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.core.channel.v1.MsgTimeoutOnCloseResponse} [response] MsgTimeoutOnCloseResponse - */ - - /** - * Calls TimeoutOnClose. - * @function timeoutOnClose - * @memberof ibc.core.channel.v1.Msg - * @instance - * @param {ibc.core.channel.v1.IMsgTimeoutOnClose} request MsgTimeoutOnClose message or plain object - * @param {ibc.core.channel.v1.Msg.TimeoutOnCloseCallback} callback Node-style callback called with the error, if any, and MsgTimeoutOnCloseResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Msg.prototype.timeoutOnClose = function timeoutOnClose(request, callback) { - return this.rpcCall(timeoutOnClose, $root.ibc.core.channel.v1.MsgTimeoutOnClose, $root.ibc.core.channel.v1.MsgTimeoutOnCloseResponse, request, callback); - }, "name", { value: "TimeoutOnClose" }); - - /** - * Calls TimeoutOnClose. - * @function timeoutOnClose - * @memberof ibc.core.channel.v1.Msg - * @instance - * @param {ibc.core.channel.v1.IMsgTimeoutOnClose} request MsgTimeoutOnClose message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link ibc.core.channel.v1.Msg#acknowledgement}. - * @memberof ibc.core.channel.v1.Msg - * @typedef AcknowledgementCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.core.channel.v1.MsgAcknowledgementResponse} [response] MsgAcknowledgementResponse - */ - - /** - * Calls Acknowledgement. - * @function acknowledgement - * @memberof ibc.core.channel.v1.Msg - * @instance - * @param {ibc.core.channel.v1.IMsgAcknowledgement} request MsgAcknowledgement message or plain object - * @param {ibc.core.channel.v1.Msg.AcknowledgementCallback} callback Node-style callback called with the error, if any, and MsgAcknowledgementResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Msg.prototype.acknowledgement = function acknowledgement(request, callback) { - return this.rpcCall(acknowledgement, $root.ibc.core.channel.v1.MsgAcknowledgement, $root.ibc.core.channel.v1.MsgAcknowledgementResponse, request, callback); - }, "name", { value: "Acknowledgement" }); - - /** - * Calls Acknowledgement. - * @function acknowledgement - * @memberof ibc.core.channel.v1.Msg + + /** + * Converts this QueryDenomHashResponse to JSON. + * @function toJSON + * @memberof ibc.applications.transfer.v1.QueryDenomHashResponse * @instance - * @param {ibc.core.channel.v1.IMsgAcknowledgement} request MsgAcknowledgement message or plain object - * @returns {Promise} Promise - * @variation 2 + * @returns {Object.} JSON object */ + QueryDenomHashResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return Msg; - })(); - - /** - * ResponseResultType enum. - * @name ibc.core.channel.v1.ResponseResultType - * @enum {number} - * @property {number} RESPONSE_RESULT_TYPE_UNSPECIFIED=0 RESPONSE_RESULT_TYPE_UNSPECIFIED value - * @property {number} RESPONSE_RESULT_TYPE_NOOP=1 RESPONSE_RESULT_TYPE_NOOP value - * @property {number} RESPONSE_RESULT_TYPE_SUCCESS=2 RESPONSE_RESULT_TYPE_SUCCESS value - */ - v1.ResponseResultType = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "RESPONSE_RESULT_TYPE_UNSPECIFIED"] = 0; - values[valuesById[1] = "RESPONSE_RESULT_TYPE_NOOP"] = 1; - values[valuesById[2] = "RESPONSE_RESULT_TYPE_SUCCESS"] = 2; - return values; + return QueryDenomHashResponse; })(); - v1.MsgChannelOpenInit = (function() { + v1.QueryEscrowAddressRequest = (function() { /** - * Properties of a MsgChannelOpenInit. - * @memberof ibc.core.channel.v1 - * @interface IMsgChannelOpenInit - * @property {string|null} [port_id] MsgChannelOpenInit port_id - * @property {ibc.core.channel.v1.IChannel|null} [channel] MsgChannelOpenInit channel - * @property {string|null} [signer] MsgChannelOpenInit signer + * Properties of a QueryEscrowAddressRequest. + * @memberof ibc.applications.transfer.v1 + * @interface IQueryEscrowAddressRequest + * @property {string|null} [port_id] QueryEscrowAddressRequest port_id + * @property {string|null} [channel_id] QueryEscrowAddressRequest channel_id */ /** - * Constructs a new MsgChannelOpenInit. - * @memberof ibc.core.channel.v1 - * @classdesc Represents a MsgChannelOpenInit. - * @implements IMsgChannelOpenInit + * Constructs a new QueryEscrowAddressRequest. + * @memberof ibc.applications.transfer.v1 + * @classdesc Represents a QueryEscrowAddressRequest. + * @implements IQueryEscrowAddressRequest * @constructor - * @param {ibc.core.channel.v1.IMsgChannelOpenInit=} [properties] Properties to set + * @param {ibc.applications.transfer.v1.IQueryEscrowAddressRequest=} [properties] Properties to set */ - function MsgChannelOpenInit(properties) { + function QueryEscrowAddressRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -36614,78 +42862,68 @@ export const ibc = $root.ibc = (() => { } /** - * MsgChannelOpenInit port_id. + * QueryEscrowAddressRequest port_id. * @member {string} port_id - * @memberof ibc.core.channel.v1.MsgChannelOpenInit - * @instance - */ - MsgChannelOpenInit.prototype.port_id = ""; - - /** - * MsgChannelOpenInit channel. - * @member {ibc.core.channel.v1.IChannel|null|undefined} channel - * @memberof ibc.core.channel.v1.MsgChannelOpenInit + * @memberof ibc.applications.transfer.v1.QueryEscrowAddressRequest * @instance */ - MsgChannelOpenInit.prototype.channel = null; + QueryEscrowAddressRequest.prototype.port_id = ""; /** - * MsgChannelOpenInit signer. - * @member {string} signer - * @memberof ibc.core.channel.v1.MsgChannelOpenInit + * QueryEscrowAddressRequest channel_id. + * @member {string} channel_id + * @memberof ibc.applications.transfer.v1.QueryEscrowAddressRequest * @instance */ - MsgChannelOpenInit.prototype.signer = ""; + QueryEscrowAddressRequest.prototype.channel_id = ""; /** - * Encodes the specified MsgChannelOpenInit message. Does not implicitly {@link ibc.core.channel.v1.MsgChannelOpenInit.verify|verify} messages. + * Encodes the specified QueryEscrowAddressRequest message. Does not implicitly {@link ibc.applications.transfer.v1.QueryEscrowAddressRequest.verify|verify} messages. * @function encode - * @memberof ibc.core.channel.v1.MsgChannelOpenInit + * @memberof ibc.applications.transfer.v1.QueryEscrowAddressRequest * @static - * @param {ibc.core.channel.v1.IMsgChannelOpenInit} message MsgChannelOpenInit message or plain object to encode + * @param {ibc.applications.transfer.v1.IQueryEscrowAddressRequest} message QueryEscrowAddressRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgChannelOpenInit.encode = function encode(message, writer) { + QueryEscrowAddressRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.port_id != null && Object.hasOwnProperty.call(message, "port_id")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.port_id); - if (message.channel != null && Object.hasOwnProperty.call(message, "channel")) - $root.ibc.core.channel.v1.Channel.encode(message.channel, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.signer != null && Object.hasOwnProperty.call(message, "signer")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.signer); + if (message.channel_id != null && Object.hasOwnProperty.call(message, "channel_id")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.channel_id); return writer; }; /** - * Encodes the specified MsgChannelOpenInit message, length delimited. Does not implicitly {@link ibc.core.channel.v1.MsgChannelOpenInit.verify|verify} messages. + * Encodes the specified QueryEscrowAddressRequest message, length delimited. Does not implicitly {@link ibc.applications.transfer.v1.QueryEscrowAddressRequest.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.channel.v1.MsgChannelOpenInit + * @memberof ibc.applications.transfer.v1.QueryEscrowAddressRequest * @static - * @param {ibc.core.channel.v1.IMsgChannelOpenInit} message MsgChannelOpenInit message or plain object to encode + * @param {ibc.applications.transfer.v1.IQueryEscrowAddressRequest} message QueryEscrowAddressRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgChannelOpenInit.encodeDelimited = function encodeDelimited(message, writer) { + QueryEscrowAddressRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MsgChannelOpenInit message from the specified reader or buffer. + * Decodes a QueryEscrowAddressRequest message from the specified reader or buffer. * @function decode - * @memberof ibc.core.channel.v1.MsgChannelOpenInit + * @memberof ibc.applications.transfer.v1.QueryEscrowAddressRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.channel.v1.MsgChannelOpenInit} MsgChannelOpenInit + * @returns {ibc.applications.transfer.v1.QueryEscrowAddressRequest} QueryEscrowAddressRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgChannelOpenInit.decode = function decode(reader, length) { + QueryEscrowAddressRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.MsgChannelOpenInit(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.transfer.v1.QueryEscrowAddressRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { @@ -36693,10 +42931,7 @@ export const ibc = $root.ibc = (() => { message.port_id = reader.string(); break; case 2: - message.channel = $root.ibc.core.channel.v1.Channel.decode(reader, reader.uint32()); - break; - case 3: - message.signer = reader.string(); + message.channel_id = reader.string(); break; default: reader.skipType(tag & 7); @@ -36707,130 +42942,116 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a MsgChannelOpenInit message from the specified reader or buffer, length delimited. + * Decodes a QueryEscrowAddressRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.channel.v1.MsgChannelOpenInit + * @memberof ibc.applications.transfer.v1.QueryEscrowAddressRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.channel.v1.MsgChannelOpenInit} MsgChannelOpenInit + * @returns {ibc.applications.transfer.v1.QueryEscrowAddressRequest} QueryEscrowAddressRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgChannelOpenInit.decodeDelimited = function decodeDelimited(reader) { + QueryEscrowAddressRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MsgChannelOpenInit message. + * Verifies a QueryEscrowAddressRequest message. * @function verify - * @memberof ibc.core.channel.v1.MsgChannelOpenInit + * @memberof ibc.applications.transfer.v1.QueryEscrowAddressRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MsgChannelOpenInit.verify = function verify(message) { + QueryEscrowAddressRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.port_id != null && message.hasOwnProperty("port_id")) if (!$util.isString(message.port_id)) return "port_id: string expected"; - if (message.channel != null && message.hasOwnProperty("channel")) { - let error = $root.ibc.core.channel.v1.Channel.verify(message.channel); - if (error) - return "channel." + error; - } - if (message.signer != null && message.hasOwnProperty("signer")) - if (!$util.isString(message.signer)) - return "signer: string expected"; + if (message.channel_id != null && message.hasOwnProperty("channel_id")) + if (!$util.isString(message.channel_id)) + return "channel_id: string expected"; return null; }; /** - * Creates a MsgChannelOpenInit message from a plain object. Also converts values to their respective internal types. + * Creates a QueryEscrowAddressRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.channel.v1.MsgChannelOpenInit + * @memberof ibc.applications.transfer.v1.QueryEscrowAddressRequest * @static * @param {Object.} object Plain object - * @returns {ibc.core.channel.v1.MsgChannelOpenInit} MsgChannelOpenInit + * @returns {ibc.applications.transfer.v1.QueryEscrowAddressRequest} QueryEscrowAddressRequest */ - MsgChannelOpenInit.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.channel.v1.MsgChannelOpenInit) + QueryEscrowAddressRequest.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.transfer.v1.QueryEscrowAddressRequest) return object; - let message = new $root.ibc.core.channel.v1.MsgChannelOpenInit(); + let message = new $root.ibc.applications.transfer.v1.QueryEscrowAddressRequest(); if (object.port_id != null) message.port_id = String(object.port_id); - if (object.channel != null) { - if (typeof object.channel !== "object") - throw TypeError(".ibc.core.channel.v1.MsgChannelOpenInit.channel: object expected"); - message.channel = $root.ibc.core.channel.v1.Channel.fromObject(object.channel); - } - if (object.signer != null) - message.signer = String(object.signer); + if (object.channel_id != null) + message.channel_id = String(object.channel_id); return message; }; /** - * Creates a plain object from a MsgChannelOpenInit message. Also converts values to other types if specified. + * Creates a plain object from a QueryEscrowAddressRequest message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.channel.v1.MsgChannelOpenInit + * @memberof ibc.applications.transfer.v1.QueryEscrowAddressRequest * @static - * @param {ibc.core.channel.v1.MsgChannelOpenInit} message MsgChannelOpenInit + * @param {ibc.applications.transfer.v1.QueryEscrowAddressRequest} message QueryEscrowAddressRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MsgChannelOpenInit.toObject = function toObject(message, options) { + QueryEscrowAddressRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { object.port_id = ""; - object.channel = null; - object.signer = ""; + object.channel_id = ""; } if (message.port_id != null && message.hasOwnProperty("port_id")) object.port_id = message.port_id; - if (message.channel != null && message.hasOwnProperty("channel")) - object.channel = $root.ibc.core.channel.v1.Channel.toObject(message.channel, options); - if (message.signer != null && message.hasOwnProperty("signer")) - object.signer = message.signer; + if (message.channel_id != null && message.hasOwnProperty("channel_id")) + object.channel_id = message.channel_id; return object; }; /** - * Converts this MsgChannelOpenInit to JSON. + * Converts this QueryEscrowAddressRequest to JSON. * @function toJSON - * @memberof ibc.core.channel.v1.MsgChannelOpenInit + * @memberof ibc.applications.transfer.v1.QueryEscrowAddressRequest * @instance * @returns {Object.} JSON object */ - MsgChannelOpenInit.prototype.toJSON = function toJSON() { + QueryEscrowAddressRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MsgChannelOpenInit; + return QueryEscrowAddressRequest; })(); - v1.MsgChannelOpenInitResponse = (function() { + v1.QueryEscrowAddressResponse = (function() { /** - * Properties of a MsgChannelOpenInitResponse. - * @memberof ibc.core.channel.v1 - * @interface IMsgChannelOpenInitResponse - * @property {string|null} [channel_id] MsgChannelOpenInitResponse channel_id - * @property {string|null} [version] MsgChannelOpenInitResponse version + * Properties of a QueryEscrowAddressResponse. + * @memberof ibc.applications.transfer.v1 + * @interface IQueryEscrowAddressResponse + * @property {string|null} [escrow_address] QueryEscrowAddressResponse escrow_address */ /** - * Constructs a new MsgChannelOpenInitResponse. - * @memberof ibc.core.channel.v1 - * @classdesc Represents a MsgChannelOpenInitResponse. - * @implements IMsgChannelOpenInitResponse + * Constructs a new QueryEscrowAddressResponse. + * @memberof ibc.applications.transfer.v1 + * @classdesc Represents a QueryEscrowAddressResponse. + * @implements IQueryEscrowAddressResponse * @constructor - * @param {ibc.core.channel.v1.IMsgChannelOpenInitResponse=} [properties] Properties to set + * @param {ibc.applications.transfer.v1.IQueryEscrowAddressResponse=} [properties] Properties to set */ - function MsgChannelOpenInitResponse(properties) { + function QueryEscrowAddressResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -36838,76 +43059,63 @@ export const ibc = $root.ibc = (() => { } /** - * MsgChannelOpenInitResponse channel_id. - * @member {string} channel_id - * @memberof ibc.core.channel.v1.MsgChannelOpenInitResponse - * @instance - */ - MsgChannelOpenInitResponse.prototype.channel_id = ""; - - /** - * MsgChannelOpenInitResponse version. - * @member {string} version - * @memberof ibc.core.channel.v1.MsgChannelOpenInitResponse + * QueryEscrowAddressResponse escrow_address. + * @member {string} escrow_address + * @memberof ibc.applications.transfer.v1.QueryEscrowAddressResponse * @instance */ - MsgChannelOpenInitResponse.prototype.version = ""; + QueryEscrowAddressResponse.prototype.escrow_address = ""; /** - * Encodes the specified MsgChannelOpenInitResponse message. Does not implicitly {@link ibc.core.channel.v1.MsgChannelOpenInitResponse.verify|verify} messages. + * Encodes the specified QueryEscrowAddressResponse message. Does not implicitly {@link ibc.applications.transfer.v1.QueryEscrowAddressResponse.verify|verify} messages. * @function encode - * @memberof ibc.core.channel.v1.MsgChannelOpenInitResponse + * @memberof ibc.applications.transfer.v1.QueryEscrowAddressResponse * @static - * @param {ibc.core.channel.v1.IMsgChannelOpenInitResponse} message MsgChannelOpenInitResponse message or plain object to encode + * @param {ibc.applications.transfer.v1.IQueryEscrowAddressResponse} message QueryEscrowAddressResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgChannelOpenInitResponse.encode = function encode(message, writer) { + QueryEscrowAddressResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.channel_id != null && Object.hasOwnProperty.call(message, "channel_id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.channel_id); - if (message.version != null && Object.hasOwnProperty.call(message, "version")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.version); + if (message.escrow_address != null && Object.hasOwnProperty.call(message, "escrow_address")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.escrow_address); return writer; }; /** - * Encodes the specified MsgChannelOpenInitResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.MsgChannelOpenInitResponse.verify|verify} messages. + * Encodes the specified QueryEscrowAddressResponse message, length delimited. Does not implicitly {@link ibc.applications.transfer.v1.QueryEscrowAddressResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.channel.v1.MsgChannelOpenInitResponse + * @memberof ibc.applications.transfer.v1.QueryEscrowAddressResponse * @static - * @param {ibc.core.channel.v1.IMsgChannelOpenInitResponse} message MsgChannelOpenInitResponse message or plain object to encode + * @param {ibc.applications.transfer.v1.IQueryEscrowAddressResponse} message QueryEscrowAddressResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgChannelOpenInitResponse.encodeDelimited = function encodeDelimited(message, writer) { + QueryEscrowAddressResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MsgChannelOpenInitResponse message from the specified reader or buffer. + * Decodes a QueryEscrowAddressResponse message from the specified reader or buffer. * @function decode - * @memberof ibc.core.channel.v1.MsgChannelOpenInitResponse + * @memberof ibc.applications.transfer.v1.QueryEscrowAddressResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.channel.v1.MsgChannelOpenInitResponse} MsgChannelOpenInitResponse + * @returns {ibc.applications.transfer.v1.QueryEscrowAddressResponse} QueryEscrowAddressResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgChannelOpenInitResponse.decode = function decode(reader, length) { + QueryEscrowAddressResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.MsgChannelOpenInitResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.transfer.v1.QueryEscrowAddressResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.channel_id = reader.string(); - break; - case 2: - message.version = reader.string(); + message.escrow_address = reader.string(); break; default: reader.skipType(tag & 7); @@ -36918,122 +43126,107 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a MsgChannelOpenInitResponse message from the specified reader or buffer, length delimited. + * Decodes a QueryEscrowAddressResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.channel.v1.MsgChannelOpenInitResponse + * @memberof ibc.applications.transfer.v1.QueryEscrowAddressResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.channel.v1.MsgChannelOpenInitResponse} MsgChannelOpenInitResponse + * @returns {ibc.applications.transfer.v1.QueryEscrowAddressResponse} QueryEscrowAddressResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgChannelOpenInitResponse.decodeDelimited = function decodeDelimited(reader) { + QueryEscrowAddressResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MsgChannelOpenInitResponse message. + * Verifies a QueryEscrowAddressResponse message. * @function verify - * @memberof ibc.core.channel.v1.MsgChannelOpenInitResponse + * @memberof ibc.applications.transfer.v1.QueryEscrowAddressResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MsgChannelOpenInitResponse.verify = function verify(message) { + QueryEscrowAddressResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.channel_id != null && message.hasOwnProperty("channel_id")) - if (!$util.isString(message.channel_id)) - return "channel_id: string expected"; - if (message.version != null && message.hasOwnProperty("version")) - if (!$util.isString(message.version)) - return "version: string expected"; + if (message.escrow_address != null && message.hasOwnProperty("escrow_address")) + if (!$util.isString(message.escrow_address)) + return "escrow_address: string expected"; return null; }; /** - * Creates a MsgChannelOpenInitResponse message from a plain object. Also converts values to their respective internal types. + * Creates a QueryEscrowAddressResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.channel.v1.MsgChannelOpenInitResponse + * @memberof ibc.applications.transfer.v1.QueryEscrowAddressResponse * @static * @param {Object.} object Plain object - * @returns {ibc.core.channel.v1.MsgChannelOpenInitResponse} MsgChannelOpenInitResponse + * @returns {ibc.applications.transfer.v1.QueryEscrowAddressResponse} QueryEscrowAddressResponse */ - MsgChannelOpenInitResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.channel.v1.MsgChannelOpenInitResponse) + QueryEscrowAddressResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.transfer.v1.QueryEscrowAddressResponse) return object; - let message = new $root.ibc.core.channel.v1.MsgChannelOpenInitResponse(); - if (object.channel_id != null) - message.channel_id = String(object.channel_id); - if (object.version != null) - message.version = String(object.version); + let message = new $root.ibc.applications.transfer.v1.QueryEscrowAddressResponse(); + if (object.escrow_address != null) + message.escrow_address = String(object.escrow_address); return message; }; /** - * Creates a plain object from a MsgChannelOpenInitResponse message. Also converts values to other types if specified. + * Creates a plain object from a QueryEscrowAddressResponse message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.channel.v1.MsgChannelOpenInitResponse + * @memberof ibc.applications.transfer.v1.QueryEscrowAddressResponse * @static - * @param {ibc.core.channel.v1.MsgChannelOpenInitResponse} message MsgChannelOpenInitResponse + * @param {ibc.applications.transfer.v1.QueryEscrowAddressResponse} message QueryEscrowAddressResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MsgChannelOpenInitResponse.toObject = function toObject(message, options) { + QueryEscrowAddressResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) { - object.channel_id = ""; - object.version = ""; - } - if (message.channel_id != null && message.hasOwnProperty("channel_id")) - object.channel_id = message.channel_id; - if (message.version != null && message.hasOwnProperty("version")) - object.version = message.version; + if (options.defaults) + object.escrow_address = ""; + if (message.escrow_address != null && message.hasOwnProperty("escrow_address")) + object.escrow_address = message.escrow_address; return object; }; /** - * Converts this MsgChannelOpenInitResponse to JSON. + * Converts this QueryEscrowAddressResponse to JSON. * @function toJSON - * @memberof ibc.core.channel.v1.MsgChannelOpenInitResponse + * @memberof ibc.applications.transfer.v1.QueryEscrowAddressResponse * @instance * @returns {Object.} JSON object */ - MsgChannelOpenInitResponse.prototype.toJSON = function toJSON() { + QueryEscrowAddressResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MsgChannelOpenInitResponse; + return QueryEscrowAddressResponse; })(); - v1.MsgChannelOpenTry = (function() { + v1.QueryTotalEscrowForDenomRequest = (function() { /** - * Properties of a MsgChannelOpenTry. - * @memberof ibc.core.channel.v1 - * @interface IMsgChannelOpenTry - * @property {string|null} [port_id] MsgChannelOpenTry port_id - * @property {string|null} [previous_channel_id] MsgChannelOpenTry previous_channel_id - * @property {ibc.core.channel.v1.IChannel|null} [channel] MsgChannelOpenTry channel - * @property {string|null} [counterparty_version] MsgChannelOpenTry counterparty_version - * @property {Uint8Array|null} [proof_init] MsgChannelOpenTry proof_init - * @property {ibc.core.client.v1.IHeight|null} [proof_height] MsgChannelOpenTry proof_height - * @property {string|null} [signer] MsgChannelOpenTry signer + * Properties of a QueryTotalEscrowForDenomRequest. + * @memberof ibc.applications.transfer.v1 + * @interface IQueryTotalEscrowForDenomRequest + * @property {string|null} [denom] QueryTotalEscrowForDenomRequest denom */ /** - * Constructs a new MsgChannelOpenTry. - * @memberof ibc.core.channel.v1 - * @classdesc Represents a MsgChannelOpenTry. - * @implements IMsgChannelOpenTry + * Constructs a new QueryTotalEscrowForDenomRequest. + * @memberof ibc.applications.transfer.v1 + * @classdesc Represents a QueryTotalEscrowForDenomRequest. + * @implements IQueryTotalEscrowForDenomRequest * @constructor - * @param {ibc.core.channel.v1.IMsgChannelOpenTry=} [properties] Properties to set + * @param {ibc.applications.transfer.v1.IQueryTotalEscrowForDenomRequest=} [properties] Properties to set */ - function MsgChannelOpenTry(properties) { + function QueryTotalEscrowForDenomRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -37041,141 +43234,238 @@ export const ibc = $root.ibc = (() => { } /** - * MsgChannelOpenTry port_id. - * @member {string} port_id - * @memberof ibc.core.channel.v1.MsgChannelOpenTry + * QueryTotalEscrowForDenomRequest denom. + * @member {string} denom + * @memberof ibc.applications.transfer.v1.QueryTotalEscrowForDenomRequest * @instance */ - MsgChannelOpenTry.prototype.port_id = ""; + QueryTotalEscrowForDenomRequest.prototype.denom = ""; /** - * MsgChannelOpenTry previous_channel_id. - * @member {string} previous_channel_id - * @memberof ibc.core.channel.v1.MsgChannelOpenTry - * @instance + * Encodes the specified QueryTotalEscrowForDenomRequest message. Does not implicitly {@link ibc.applications.transfer.v1.QueryTotalEscrowForDenomRequest.verify|verify} messages. + * @function encode + * @memberof ibc.applications.transfer.v1.QueryTotalEscrowForDenomRequest + * @static + * @param {ibc.applications.transfer.v1.IQueryTotalEscrowForDenomRequest} message QueryTotalEscrowForDenomRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - MsgChannelOpenTry.prototype.previous_channel_id = ""; + QueryTotalEscrowForDenomRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.denom != null && Object.hasOwnProperty.call(message, "denom")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.denom); + return writer; + }; /** - * MsgChannelOpenTry channel. - * @member {ibc.core.channel.v1.IChannel|null|undefined} channel - * @memberof ibc.core.channel.v1.MsgChannelOpenTry - * @instance + * Encodes the specified QueryTotalEscrowForDenomRequest message, length delimited. Does not implicitly {@link ibc.applications.transfer.v1.QueryTotalEscrowForDenomRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof ibc.applications.transfer.v1.QueryTotalEscrowForDenomRequest + * @static + * @param {ibc.applications.transfer.v1.IQueryTotalEscrowForDenomRequest} message QueryTotalEscrowForDenomRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - MsgChannelOpenTry.prototype.channel = null; + QueryTotalEscrowForDenomRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * MsgChannelOpenTry counterparty_version. - * @member {string} counterparty_version - * @memberof ibc.core.channel.v1.MsgChannelOpenTry - * @instance + * Decodes a QueryTotalEscrowForDenomRequest message from the specified reader or buffer. + * @function decode + * @memberof ibc.applications.transfer.v1.QueryTotalEscrowForDenomRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {ibc.applications.transfer.v1.QueryTotalEscrowForDenomRequest} QueryTotalEscrowForDenomRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgChannelOpenTry.prototype.counterparty_version = ""; + QueryTotalEscrowForDenomRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.transfer.v1.QueryTotalEscrowForDenomRequest(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.denom = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * MsgChannelOpenTry proof_init. - * @member {Uint8Array} proof_init - * @memberof ibc.core.channel.v1.MsgChannelOpenTry - * @instance + * Decodes a QueryTotalEscrowForDenomRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof ibc.applications.transfer.v1.QueryTotalEscrowForDenomRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {ibc.applications.transfer.v1.QueryTotalEscrowForDenomRequest} QueryTotalEscrowForDenomRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgChannelOpenTry.prototype.proof_init = $util.newBuffer([]); + QueryTotalEscrowForDenomRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * MsgChannelOpenTry proof_height. - * @member {ibc.core.client.v1.IHeight|null|undefined} proof_height - * @memberof ibc.core.channel.v1.MsgChannelOpenTry + * Verifies a QueryTotalEscrowForDenomRequest message. + * @function verify + * @memberof ibc.applications.transfer.v1.QueryTotalEscrowForDenomRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + QueryTotalEscrowForDenomRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.denom != null && message.hasOwnProperty("denom")) + if (!$util.isString(message.denom)) + return "denom: string expected"; + return null; + }; + + /** + * Creates a QueryTotalEscrowForDenomRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof ibc.applications.transfer.v1.QueryTotalEscrowForDenomRequest + * @static + * @param {Object.} object Plain object + * @returns {ibc.applications.transfer.v1.QueryTotalEscrowForDenomRequest} QueryTotalEscrowForDenomRequest + */ + QueryTotalEscrowForDenomRequest.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.transfer.v1.QueryTotalEscrowForDenomRequest) + return object; + let message = new $root.ibc.applications.transfer.v1.QueryTotalEscrowForDenomRequest(); + if (object.denom != null) + message.denom = String(object.denom); + return message; + }; + + /** + * Creates a plain object from a QueryTotalEscrowForDenomRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof ibc.applications.transfer.v1.QueryTotalEscrowForDenomRequest + * @static + * @param {ibc.applications.transfer.v1.QueryTotalEscrowForDenomRequest} message QueryTotalEscrowForDenomRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + QueryTotalEscrowForDenomRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) + object.denom = ""; + if (message.denom != null && message.hasOwnProperty("denom")) + object.denom = message.denom; + return object; + }; + + /** + * Converts this QueryTotalEscrowForDenomRequest to JSON. + * @function toJSON + * @memberof ibc.applications.transfer.v1.QueryTotalEscrowForDenomRequest * @instance + * @returns {Object.} JSON object */ - MsgChannelOpenTry.prototype.proof_height = null; + QueryTotalEscrowForDenomRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return QueryTotalEscrowForDenomRequest; + })(); + + v1.QueryTotalEscrowForDenomResponse = (function() { /** - * MsgChannelOpenTry signer. - * @member {string} signer - * @memberof ibc.core.channel.v1.MsgChannelOpenTry + * Properties of a QueryTotalEscrowForDenomResponse. + * @memberof ibc.applications.transfer.v1 + * @interface IQueryTotalEscrowForDenomResponse + * @property {cosmos.base.v1beta1.ICoin|null} [amount] QueryTotalEscrowForDenomResponse amount + */ + + /** + * Constructs a new QueryTotalEscrowForDenomResponse. + * @memberof ibc.applications.transfer.v1 + * @classdesc Represents a QueryTotalEscrowForDenomResponse. + * @implements IQueryTotalEscrowForDenomResponse + * @constructor + * @param {ibc.applications.transfer.v1.IQueryTotalEscrowForDenomResponse=} [properties] Properties to set + */ + function QueryTotalEscrowForDenomResponse(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * QueryTotalEscrowForDenomResponse amount. + * @member {cosmos.base.v1beta1.ICoin|null|undefined} amount + * @memberof ibc.applications.transfer.v1.QueryTotalEscrowForDenomResponse * @instance */ - MsgChannelOpenTry.prototype.signer = ""; + QueryTotalEscrowForDenomResponse.prototype.amount = null; /** - * Encodes the specified MsgChannelOpenTry message. Does not implicitly {@link ibc.core.channel.v1.MsgChannelOpenTry.verify|verify} messages. + * Encodes the specified QueryTotalEscrowForDenomResponse message. Does not implicitly {@link ibc.applications.transfer.v1.QueryTotalEscrowForDenomResponse.verify|verify} messages. * @function encode - * @memberof ibc.core.channel.v1.MsgChannelOpenTry + * @memberof ibc.applications.transfer.v1.QueryTotalEscrowForDenomResponse * @static - * @param {ibc.core.channel.v1.IMsgChannelOpenTry} message MsgChannelOpenTry message or plain object to encode + * @param {ibc.applications.transfer.v1.IQueryTotalEscrowForDenomResponse} message QueryTotalEscrowForDenomResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgChannelOpenTry.encode = function encode(message, writer) { + QueryTotalEscrowForDenomResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.port_id != null && Object.hasOwnProperty.call(message, "port_id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.port_id); - if (message.previous_channel_id != null && Object.hasOwnProperty.call(message, "previous_channel_id")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.previous_channel_id); - if (message.channel != null && Object.hasOwnProperty.call(message, "channel")) - $root.ibc.core.channel.v1.Channel.encode(message.channel, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.counterparty_version != null && Object.hasOwnProperty.call(message, "counterparty_version")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.counterparty_version); - if (message.proof_init != null && Object.hasOwnProperty.call(message, "proof_init")) - writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.proof_init); - if (message.proof_height != null && Object.hasOwnProperty.call(message, "proof_height")) - $root.ibc.core.client.v1.Height.encode(message.proof_height, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.signer != null && Object.hasOwnProperty.call(message, "signer")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.signer); + if (message.amount != null && Object.hasOwnProperty.call(message, "amount")) + $root.cosmos.base.v1beta1.Coin.encode(message.amount, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified MsgChannelOpenTry message, length delimited. Does not implicitly {@link ibc.core.channel.v1.MsgChannelOpenTry.verify|verify} messages. + * Encodes the specified QueryTotalEscrowForDenomResponse message, length delimited. Does not implicitly {@link ibc.applications.transfer.v1.QueryTotalEscrowForDenomResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.channel.v1.MsgChannelOpenTry + * @memberof ibc.applications.transfer.v1.QueryTotalEscrowForDenomResponse * @static - * @param {ibc.core.channel.v1.IMsgChannelOpenTry} message MsgChannelOpenTry message or plain object to encode + * @param {ibc.applications.transfer.v1.IQueryTotalEscrowForDenomResponse} message QueryTotalEscrowForDenomResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgChannelOpenTry.encodeDelimited = function encodeDelimited(message, writer) { + QueryTotalEscrowForDenomResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MsgChannelOpenTry message from the specified reader or buffer. + * Decodes a QueryTotalEscrowForDenomResponse message from the specified reader or buffer. * @function decode - * @memberof ibc.core.channel.v1.MsgChannelOpenTry + * @memberof ibc.applications.transfer.v1.QueryTotalEscrowForDenomResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.channel.v1.MsgChannelOpenTry} MsgChannelOpenTry + * @returns {ibc.applications.transfer.v1.QueryTotalEscrowForDenomResponse} QueryTotalEscrowForDenomResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgChannelOpenTry.decode = function decode(reader, length) { + QueryTotalEscrowForDenomResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.MsgChannelOpenTry(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.transfer.v1.QueryTotalEscrowForDenomResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.port_id = reader.string(); - break; - case 2: - message.previous_channel_id = reader.string(); - break; - case 3: - message.channel = $root.ibc.core.channel.v1.Channel.decode(reader, reader.uint32()); - break; - case 4: - message.counterparty_version = reader.string(); - break; - case 5: - message.proof_init = reader.bytes(); - break; - case 6: - message.proof_height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); - break; - case 7: - message.signer = reader.string(); + message.amount = $root.cosmos.base.v1beta1.Coin.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -37186,175 +43476,117 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a MsgChannelOpenTry message from the specified reader or buffer, length delimited. + * Decodes a QueryTotalEscrowForDenomResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.channel.v1.MsgChannelOpenTry + * @memberof ibc.applications.transfer.v1.QueryTotalEscrowForDenomResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.channel.v1.MsgChannelOpenTry} MsgChannelOpenTry + * @returns {ibc.applications.transfer.v1.QueryTotalEscrowForDenomResponse} QueryTotalEscrowForDenomResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgChannelOpenTry.decodeDelimited = function decodeDelimited(reader) { + QueryTotalEscrowForDenomResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MsgChannelOpenTry message. + * Verifies a QueryTotalEscrowForDenomResponse message. * @function verify - * @memberof ibc.core.channel.v1.MsgChannelOpenTry + * @memberof ibc.applications.transfer.v1.QueryTotalEscrowForDenomResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MsgChannelOpenTry.verify = function verify(message) { + QueryTotalEscrowForDenomResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.port_id != null && message.hasOwnProperty("port_id")) - if (!$util.isString(message.port_id)) - return "port_id: string expected"; - if (message.previous_channel_id != null && message.hasOwnProperty("previous_channel_id")) - if (!$util.isString(message.previous_channel_id)) - return "previous_channel_id: string expected"; - if (message.channel != null && message.hasOwnProperty("channel")) { - let error = $root.ibc.core.channel.v1.Channel.verify(message.channel); - if (error) - return "channel." + error; - } - if (message.counterparty_version != null && message.hasOwnProperty("counterparty_version")) - if (!$util.isString(message.counterparty_version)) - return "counterparty_version: string expected"; - if (message.proof_init != null && message.hasOwnProperty("proof_init")) - if (!(message.proof_init && typeof message.proof_init.length === "number" || $util.isString(message.proof_init))) - return "proof_init: buffer expected"; - if (message.proof_height != null && message.hasOwnProperty("proof_height")) { - let error = $root.ibc.core.client.v1.Height.verify(message.proof_height); + if (message.amount != null && message.hasOwnProperty("amount")) { + let error = $root.cosmos.base.v1beta1.Coin.verify(message.amount); if (error) - return "proof_height." + error; + return "amount." + error; } - if (message.signer != null && message.hasOwnProperty("signer")) - if (!$util.isString(message.signer)) - return "signer: string expected"; return null; }; /** - * Creates a MsgChannelOpenTry message from a plain object. Also converts values to their respective internal types. + * Creates a QueryTotalEscrowForDenomResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.channel.v1.MsgChannelOpenTry + * @memberof ibc.applications.transfer.v1.QueryTotalEscrowForDenomResponse * @static * @param {Object.} object Plain object - * @returns {ibc.core.channel.v1.MsgChannelOpenTry} MsgChannelOpenTry + * @returns {ibc.applications.transfer.v1.QueryTotalEscrowForDenomResponse} QueryTotalEscrowForDenomResponse */ - MsgChannelOpenTry.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.channel.v1.MsgChannelOpenTry) + QueryTotalEscrowForDenomResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.transfer.v1.QueryTotalEscrowForDenomResponse) return object; - let message = new $root.ibc.core.channel.v1.MsgChannelOpenTry(); - if (object.port_id != null) - message.port_id = String(object.port_id); - if (object.previous_channel_id != null) - message.previous_channel_id = String(object.previous_channel_id); - if (object.channel != null) { - if (typeof object.channel !== "object") - throw TypeError(".ibc.core.channel.v1.MsgChannelOpenTry.channel: object expected"); - message.channel = $root.ibc.core.channel.v1.Channel.fromObject(object.channel); - } - if (object.counterparty_version != null) - message.counterparty_version = String(object.counterparty_version); - if (object.proof_init != null) - if (typeof object.proof_init === "string") - $util.base64.decode(object.proof_init, message.proof_init = $util.newBuffer($util.base64.length(object.proof_init)), 0); - else if (object.proof_init.length) - message.proof_init = object.proof_init; - if (object.proof_height != null) { - if (typeof object.proof_height !== "object") - throw TypeError(".ibc.core.channel.v1.MsgChannelOpenTry.proof_height: object expected"); - message.proof_height = $root.ibc.core.client.v1.Height.fromObject(object.proof_height); + let message = new $root.ibc.applications.transfer.v1.QueryTotalEscrowForDenomResponse(); + if (object.amount != null) { + if (typeof object.amount !== "object") + throw TypeError(".ibc.applications.transfer.v1.QueryTotalEscrowForDenomResponse.amount: object expected"); + message.amount = $root.cosmos.base.v1beta1.Coin.fromObject(object.amount); } - if (object.signer != null) - message.signer = String(object.signer); return message; }; /** - * Creates a plain object from a MsgChannelOpenTry message. Also converts values to other types if specified. + * Creates a plain object from a QueryTotalEscrowForDenomResponse message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.channel.v1.MsgChannelOpenTry + * @memberof ibc.applications.transfer.v1.QueryTotalEscrowForDenomResponse * @static - * @param {ibc.core.channel.v1.MsgChannelOpenTry} message MsgChannelOpenTry + * @param {ibc.applications.transfer.v1.QueryTotalEscrowForDenomResponse} message QueryTotalEscrowForDenomResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MsgChannelOpenTry.toObject = function toObject(message, options) { + QueryTotalEscrowForDenomResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) { - object.port_id = ""; - object.previous_channel_id = ""; - object.channel = null; - object.counterparty_version = ""; - if (options.bytes === String) - object.proof_init = ""; - else { - object.proof_init = []; - if (options.bytes !== Array) - object.proof_init = $util.newBuffer(object.proof_init); - } - object.proof_height = null; - object.signer = ""; - } - if (message.port_id != null && message.hasOwnProperty("port_id")) - object.port_id = message.port_id; - if (message.previous_channel_id != null && message.hasOwnProperty("previous_channel_id")) - object.previous_channel_id = message.previous_channel_id; - if (message.channel != null && message.hasOwnProperty("channel")) - object.channel = $root.ibc.core.channel.v1.Channel.toObject(message.channel, options); - if (message.counterparty_version != null && message.hasOwnProperty("counterparty_version")) - object.counterparty_version = message.counterparty_version; - if (message.proof_init != null && message.hasOwnProperty("proof_init")) - object.proof_init = options.bytes === String ? $util.base64.encode(message.proof_init, 0, message.proof_init.length) : options.bytes === Array ? Array.prototype.slice.call(message.proof_init) : message.proof_init; - if (message.proof_height != null && message.hasOwnProperty("proof_height")) - object.proof_height = $root.ibc.core.client.v1.Height.toObject(message.proof_height, options); - if (message.signer != null && message.hasOwnProperty("signer")) - object.signer = message.signer; + if (options.defaults) + object.amount = null; + if (message.amount != null && message.hasOwnProperty("amount")) + object.amount = $root.cosmos.base.v1beta1.Coin.toObject(message.amount, options); return object; }; /** - * Converts this MsgChannelOpenTry to JSON. + * Converts this QueryTotalEscrowForDenomResponse to JSON. * @function toJSON - * @memberof ibc.core.channel.v1.MsgChannelOpenTry + * @memberof ibc.applications.transfer.v1.QueryTotalEscrowForDenomResponse * @instance * @returns {Object.} JSON object */ - MsgChannelOpenTry.prototype.toJSON = function toJSON() { + QueryTotalEscrowForDenomResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MsgChannelOpenTry; + return QueryTotalEscrowForDenomResponse; })(); - v1.MsgChannelOpenTryResponse = (function() { + v1.Allocation = (function() { /** - * Properties of a MsgChannelOpenTryResponse. - * @memberof ibc.core.channel.v1 - * @interface IMsgChannelOpenTryResponse - * @property {string|null} [version] MsgChannelOpenTryResponse version + * Properties of an Allocation. + * @memberof ibc.applications.transfer.v1 + * @interface IAllocation + * @property {string|null} [source_port] Allocation source_port + * @property {string|null} [source_channel] Allocation source_channel + * @property {Array.|null} [spend_limit] Allocation spend_limit + * @property {Array.|null} [allow_list] Allocation allow_list */ /** - * Constructs a new MsgChannelOpenTryResponse. - * @memberof ibc.core.channel.v1 - * @classdesc Represents a MsgChannelOpenTryResponse. - * @implements IMsgChannelOpenTryResponse + * Constructs a new Allocation. + * @memberof ibc.applications.transfer.v1 + * @classdesc Represents an Allocation. + * @implements IAllocation * @constructor - * @param {ibc.core.channel.v1.IMsgChannelOpenTryResponse=} [properties] Properties to set + * @param {ibc.applications.transfer.v1.IAllocation=} [properties] Properties to set */ - function MsgChannelOpenTryResponse(properties) { + function Allocation(properties) { + this.spend_limit = []; + this.allow_list = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -37362,63 +43594,108 @@ export const ibc = $root.ibc = (() => { } /** - * MsgChannelOpenTryResponse version. - * @member {string} version - * @memberof ibc.core.channel.v1.MsgChannelOpenTryResponse + * Allocation source_port. + * @member {string} source_port + * @memberof ibc.applications.transfer.v1.Allocation * @instance */ - MsgChannelOpenTryResponse.prototype.version = ""; + Allocation.prototype.source_port = ""; /** - * Encodes the specified MsgChannelOpenTryResponse message. Does not implicitly {@link ibc.core.channel.v1.MsgChannelOpenTryResponse.verify|verify} messages. + * Allocation source_channel. + * @member {string} source_channel + * @memberof ibc.applications.transfer.v1.Allocation + * @instance + */ + Allocation.prototype.source_channel = ""; + + /** + * Allocation spend_limit. + * @member {Array.} spend_limit + * @memberof ibc.applications.transfer.v1.Allocation + * @instance + */ + Allocation.prototype.spend_limit = $util.emptyArray; + + /** + * Allocation allow_list. + * @member {Array.} allow_list + * @memberof ibc.applications.transfer.v1.Allocation + * @instance + */ + Allocation.prototype.allow_list = $util.emptyArray; + + /** + * Encodes the specified Allocation message. Does not implicitly {@link ibc.applications.transfer.v1.Allocation.verify|verify} messages. * @function encode - * @memberof ibc.core.channel.v1.MsgChannelOpenTryResponse + * @memberof ibc.applications.transfer.v1.Allocation * @static - * @param {ibc.core.channel.v1.IMsgChannelOpenTryResponse} message MsgChannelOpenTryResponse message or plain object to encode + * @param {ibc.applications.transfer.v1.IAllocation} message Allocation message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgChannelOpenTryResponse.encode = function encode(message, writer) { + Allocation.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.version != null && Object.hasOwnProperty.call(message, "version")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.version); + if (message.source_port != null && Object.hasOwnProperty.call(message, "source_port")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.source_port); + if (message.source_channel != null && Object.hasOwnProperty.call(message, "source_channel")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.source_channel); + if (message.spend_limit != null && message.spend_limit.length) + for (let i = 0; i < message.spend_limit.length; ++i) + $root.cosmos.base.v1beta1.Coin.encode(message.spend_limit[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.allow_list != null && message.allow_list.length) + for (let i = 0; i < message.allow_list.length; ++i) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.allow_list[i]); return writer; }; /** - * Encodes the specified MsgChannelOpenTryResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.MsgChannelOpenTryResponse.verify|verify} messages. + * Encodes the specified Allocation message, length delimited. Does not implicitly {@link ibc.applications.transfer.v1.Allocation.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.channel.v1.MsgChannelOpenTryResponse + * @memberof ibc.applications.transfer.v1.Allocation * @static - * @param {ibc.core.channel.v1.IMsgChannelOpenTryResponse} message MsgChannelOpenTryResponse message or plain object to encode + * @param {ibc.applications.transfer.v1.IAllocation} message Allocation message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgChannelOpenTryResponse.encodeDelimited = function encodeDelimited(message, writer) { + Allocation.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MsgChannelOpenTryResponse message from the specified reader or buffer. + * Decodes an Allocation message from the specified reader or buffer. * @function decode - * @memberof ibc.core.channel.v1.MsgChannelOpenTryResponse + * @memberof ibc.applications.transfer.v1.Allocation * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.channel.v1.MsgChannelOpenTryResponse} MsgChannelOpenTryResponse + * @returns {ibc.applications.transfer.v1.Allocation} Allocation * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgChannelOpenTryResponse.decode = function decode(reader, length) { + Allocation.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.MsgChannelOpenTryResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.transfer.v1.Allocation(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.version = reader.string(); + message.source_port = reader.string(); + break; + case 2: + message.source_channel = reader.string(); + break; + case 3: + if (!(message.spend_limit && message.spend_limit.length)) + message.spend_limit = []; + message.spend_limit.push($root.cosmos.base.v1beta1.Coin.decode(reader, reader.uint32())); + break; + case 4: + if (!(message.allow_list && message.allow_list.length)) + message.allow_list = []; + message.allow_list.push(reader.string()); break; default: reader.skipType(tag & 7); @@ -37429,113 +43706,164 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a MsgChannelOpenTryResponse message from the specified reader or buffer, length delimited. + * Decodes an Allocation message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.channel.v1.MsgChannelOpenTryResponse + * @memberof ibc.applications.transfer.v1.Allocation * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.channel.v1.MsgChannelOpenTryResponse} MsgChannelOpenTryResponse + * @returns {ibc.applications.transfer.v1.Allocation} Allocation * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgChannelOpenTryResponse.decodeDelimited = function decodeDelimited(reader) { + Allocation.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MsgChannelOpenTryResponse message. + * Verifies an Allocation message. * @function verify - * @memberof ibc.core.channel.v1.MsgChannelOpenTryResponse + * @memberof ibc.applications.transfer.v1.Allocation * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MsgChannelOpenTryResponse.verify = function verify(message) { + Allocation.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.version != null && message.hasOwnProperty("version")) - if (!$util.isString(message.version)) - return "version: string expected"; + if (message.source_port != null && message.hasOwnProperty("source_port")) + if (!$util.isString(message.source_port)) + return "source_port: string expected"; + if (message.source_channel != null && message.hasOwnProperty("source_channel")) + if (!$util.isString(message.source_channel)) + return "source_channel: string expected"; + if (message.spend_limit != null && message.hasOwnProperty("spend_limit")) { + if (!Array.isArray(message.spend_limit)) + return "spend_limit: array expected"; + for (let i = 0; i < message.spend_limit.length; ++i) { + let error = $root.cosmos.base.v1beta1.Coin.verify(message.spend_limit[i]); + if (error) + return "spend_limit." + error; + } + } + if (message.allow_list != null && message.hasOwnProperty("allow_list")) { + if (!Array.isArray(message.allow_list)) + return "allow_list: array expected"; + for (let i = 0; i < message.allow_list.length; ++i) + if (!$util.isString(message.allow_list[i])) + return "allow_list: string[] expected"; + } return null; }; /** - * Creates a MsgChannelOpenTryResponse message from a plain object. Also converts values to their respective internal types. + * Creates an Allocation message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.channel.v1.MsgChannelOpenTryResponse + * @memberof ibc.applications.transfer.v1.Allocation * @static * @param {Object.} object Plain object - * @returns {ibc.core.channel.v1.MsgChannelOpenTryResponse} MsgChannelOpenTryResponse + * @returns {ibc.applications.transfer.v1.Allocation} Allocation */ - MsgChannelOpenTryResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.channel.v1.MsgChannelOpenTryResponse) + Allocation.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.transfer.v1.Allocation) return object; - let message = new $root.ibc.core.channel.v1.MsgChannelOpenTryResponse(); - if (object.version != null) - message.version = String(object.version); + let message = new $root.ibc.applications.transfer.v1.Allocation(); + if (object.source_port != null) + message.source_port = String(object.source_port); + if (object.source_channel != null) + message.source_channel = String(object.source_channel); + if (object.spend_limit) { + if (!Array.isArray(object.spend_limit)) + throw TypeError(".ibc.applications.transfer.v1.Allocation.spend_limit: array expected"); + message.spend_limit = []; + for (let i = 0; i < object.spend_limit.length; ++i) { + if (typeof object.spend_limit[i] !== "object") + throw TypeError(".ibc.applications.transfer.v1.Allocation.spend_limit: object expected"); + message.spend_limit[i] = $root.cosmos.base.v1beta1.Coin.fromObject(object.spend_limit[i]); + } + } + if (object.allow_list) { + if (!Array.isArray(object.allow_list)) + throw TypeError(".ibc.applications.transfer.v1.Allocation.allow_list: array expected"); + message.allow_list = []; + for (let i = 0; i < object.allow_list.length; ++i) + message.allow_list[i] = String(object.allow_list[i]); + } return message; }; /** - * Creates a plain object from a MsgChannelOpenTryResponse message. Also converts values to other types if specified. + * Creates a plain object from an Allocation message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.channel.v1.MsgChannelOpenTryResponse + * @memberof ibc.applications.transfer.v1.Allocation * @static - * @param {ibc.core.channel.v1.MsgChannelOpenTryResponse} message MsgChannelOpenTryResponse + * @param {ibc.applications.transfer.v1.Allocation} message Allocation * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MsgChannelOpenTryResponse.toObject = function toObject(message, options) { + Allocation.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) - object.version = ""; - if (message.version != null && message.hasOwnProperty("version")) - object.version = message.version; + if (options.arrays || options.defaults) { + object.spend_limit = []; + object.allow_list = []; + } + if (options.defaults) { + object.source_port = ""; + object.source_channel = ""; + } + if (message.source_port != null && message.hasOwnProperty("source_port")) + object.source_port = message.source_port; + if (message.source_channel != null && message.hasOwnProperty("source_channel")) + object.source_channel = message.source_channel; + if (message.spend_limit && message.spend_limit.length) { + object.spend_limit = []; + for (let j = 0; j < message.spend_limit.length; ++j) + object.spend_limit[j] = $root.cosmos.base.v1beta1.Coin.toObject(message.spend_limit[j], options); + } + if (message.allow_list && message.allow_list.length) { + object.allow_list = []; + for (let j = 0; j < message.allow_list.length; ++j) + object.allow_list[j] = message.allow_list[j]; + } return object; }; /** - * Converts this MsgChannelOpenTryResponse to JSON. + * Converts this Allocation to JSON. * @function toJSON - * @memberof ibc.core.channel.v1.MsgChannelOpenTryResponse + * @memberof ibc.applications.transfer.v1.Allocation * @instance * @returns {Object.} JSON object */ - MsgChannelOpenTryResponse.prototype.toJSON = function toJSON() { + Allocation.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MsgChannelOpenTryResponse; + return Allocation; })(); - v1.MsgChannelOpenAck = (function() { + v1.TransferAuthorization = (function() { /** - * Properties of a MsgChannelOpenAck. - * @memberof ibc.core.channel.v1 - * @interface IMsgChannelOpenAck - * @property {string|null} [port_id] MsgChannelOpenAck port_id - * @property {string|null} [channel_id] MsgChannelOpenAck channel_id - * @property {string|null} [counterparty_channel_id] MsgChannelOpenAck counterparty_channel_id - * @property {string|null} [counterparty_version] MsgChannelOpenAck counterparty_version - * @property {Uint8Array|null} [proof_try] MsgChannelOpenAck proof_try - * @property {ibc.core.client.v1.IHeight|null} [proof_height] MsgChannelOpenAck proof_height - * @property {string|null} [signer] MsgChannelOpenAck signer + * Properties of a TransferAuthorization. + * @memberof ibc.applications.transfer.v1 + * @interface ITransferAuthorization + * @property {Array.|null} [allocations] TransferAuthorization allocations */ /** - * Constructs a new MsgChannelOpenAck. - * @memberof ibc.core.channel.v1 - * @classdesc Represents a MsgChannelOpenAck. - * @implements IMsgChannelOpenAck + * Constructs a new TransferAuthorization. + * @memberof ibc.applications.transfer.v1 + * @classdesc Represents a TransferAuthorization. + * @implements ITransferAuthorization * @constructor - * @param {ibc.core.channel.v1.IMsgChannelOpenAck=} [properties] Properties to set + * @param {ibc.applications.transfer.v1.ITransferAuthorization=} [properties] Properties to set */ - function MsgChannelOpenAck(properties) { + function TransferAuthorization(properties) { + this.allocations = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -37543,141 +43871,66 @@ export const ibc = $root.ibc = (() => { } /** - * MsgChannelOpenAck port_id. - * @member {string} port_id - * @memberof ibc.core.channel.v1.MsgChannelOpenAck - * @instance - */ - MsgChannelOpenAck.prototype.port_id = ""; - - /** - * MsgChannelOpenAck channel_id. - * @member {string} channel_id - * @memberof ibc.core.channel.v1.MsgChannelOpenAck - * @instance - */ - MsgChannelOpenAck.prototype.channel_id = ""; - - /** - * MsgChannelOpenAck counterparty_channel_id. - * @member {string} counterparty_channel_id - * @memberof ibc.core.channel.v1.MsgChannelOpenAck - * @instance - */ - MsgChannelOpenAck.prototype.counterparty_channel_id = ""; - - /** - * MsgChannelOpenAck counterparty_version. - * @member {string} counterparty_version - * @memberof ibc.core.channel.v1.MsgChannelOpenAck - * @instance - */ - MsgChannelOpenAck.prototype.counterparty_version = ""; - - /** - * MsgChannelOpenAck proof_try. - * @member {Uint8Array} proof_try - * @memberof ibc.core.channel.v1.MsgChannelOpenAck - * @instance - */ - MsgChannelOpenAck.prototype.proof_try = $util.newBuffer([]); - - /** - * MsgChannelOpenAck proof_height. - * @member {ibc.core.client.v1.IHeight|null|undefined} proof_height - * @memberof ibc.core.channel.v1.MsgChannelOpenAck - * @instance - */ - MsgChannelOpenAck.prototype.proof_height = null; - - /** - * MsgChannelOpenAck signer. - * @member {string} signer - * @memberof ibc.core.channel.v1.MsgChannelOpenAck + * TransferAuthorization allocations. + * @member {Array.} allocations + * @memberof ibc.applications.transfer.v1.TransferAuthorization * @instance */ - MsgChannelOpenAck.prototype.signer = ""; + TransferAuthorization.prototype.allocations = $util.emptyArray; /** - * Encodes the specified MsgChannelOpenAck message. Does not implicitly {@link ibc.core.channel.v1.MsgChannelOpenAck.verify|verify} messages. + * Encodes the specified TransferAuthorization message. Does not implicitly {@link ibc.applications.transfer.v1.TransferAuthorization.verify|verify} messages. * @function encode - * @memberof ibc.core.channel.v1.MsgChannelOpenAck + * @memberof ibc.applications.transfer.v1.TransferAuthorization * @static - * @param {ibc.core.channel.v1.IMsgChannelOpenAck} message MsgChannelOpenAck message or plain object to encode + * @param {ibc.applications.transfer.v1.ITransferAuthorization} message TransferAuthorization message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgChannelOpenAck.encode = function encode(message, writer) { + TransferAuthorization.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.port_id != null && Object.hasOwnProperty.call(message, "port_id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.port_id); - if (message.channel_id != null && Object.hasOwnProperty.call(message, "channel_id")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.channel_id); - if (message.counterparty_channel_id != null && Object.hasOwnProperty.call(message, "counterparty_channel_id")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.counterparty_channel_id); - if (message.counterparty_version != null && Object.hasOwnProperty.call(message, "counterparty_version")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.counterparty_version); - if (message.proof_try != null && Object.hasOwnProperty.call(message, "proof_try")) - writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.proof_try); - if (message.proof_height != null && Object.hasOwnProperty.call(message, "proof_height")) - $root.ibc.core.client.v1.Height.encode(message.proof_height, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.signer != null && Object.hasOwnProperty.call(message, "signer")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.signer); + if (message.allocations != null && message.allocations.length) + for (let i = 0; i < message.allocations.length; ++i) + $root.ibc.applications.transfer.v1.Allocation.encode(message.allocations[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified MsgChannelOpenAck message, length delimited. Does not implicitly {@link ibc.core.channel.v1.MsgChannelOpenAck.verify|verify} messages. + * Encodes the specified TransferAuthorization message, length delimited. Does not implicitly {@link ibc.applications.transfer.v1.TransferAuthorization.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.channel.v1.MsgChannelOpenAck + * @memberof ibc.applications.transfer.v1.TransferAuthorization * @static - * @param {ibc.core.channel.v1.IMsgChannelOpenAck} message MsgChannelOpenAck message or plain object to encode + * @param {ibc.applications.transfer.v1.ITransferAuthorization} message TransferAuthorization message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgChannelOpenAck.encodeDelimited = function encodeDelimited(message, writer) { + TransferAuthorization.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MsgChannelOpenAck message from the specified reader or buffer. + * Decodes a TransferAuthorization message from the specified reader or buffer. * @function decode - * @memberof ibc.core.channel.v1.MsgChannelOpenAck + * @memberof ibc.applications.transfer.v1.TransferAuthorization * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.channel.v1.MsgChannelOpenAck} MsgChannelOpenAck + * @returns {ibc.applications.transfer.v1.TransferAuthorization} TransferAuthorization * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgChannelOpenAck.decode = function decode(reader, length) { + TransferAuthorization.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.MsgChannelOpenAck(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.transfer.v1.TransferAuthorization(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.port_id = reader.string(); - break; - case 2: - message.channel_id = reader.string(); - break; - case 3: - message.counterparty_channel_id = reader.string(); - break; - case 4: - message.counterparty_version = reader.string(); - break; - case 5: - message.proof_try = reader.bytes(); - break; - case 6: - message.proof_height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); - break; - case 7: - message.signer = reader.string(); + if (!(message.allocations && message.allocations.length)) + message.allocations = []; + message.allocations.push($root.ibc.applications.transfer.v1.Allocation.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -37688,169 +43941,129 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a MsgChannelOpenAck message from the specified reader or buffer, length delimited. + * Decodes a TransferAuthorization message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.channel.v1.MsgChannelOpenAck + * @memberof ibc.applications.transfer.v1.TransferAuthorization * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.channel.v1.MsgChannelOpenAck} MsgChannelOpenAck + * @returns {ibc.applications.transfer.v1.TransferAuthorization} TransferAuthorization * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgChannelOpenAck.decodeDelimited = function decodeDelimited(reader) { + TransferAuthorization.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MsgChannelOpenAck message. + * Verifies a TransferAuthorization message. * @function verify - * @memberof ibc.core.channel.v1.MsgChannelOpenAck + * @memberof ibc.applications.transfer.v1.TransferAuthorization * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MsgChannelOpenAck.verify = function verify(message) { + TransferAuthorization.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.port_id != null && message.hasOwnProperty("port_id")) - if (!$util.isString(message.port_id)) - return "port_id: string expected"; - if (message.channel_id != null && message.hasOwnProperty("channel_id")) - if (!$util.isString(message.channel_id)) - return "channel_id: string expected"; - if (message.counterparty_channel_id != null && message.hasOwnProperty("counterparty_channel_id")) - if (!$util.isString(message.counterparty_channel_id)) - return "counterparty_channel_id: string expected"; - if (message.counterparty_version != null && message.hasOwnProperty("counterparty_version")) - if (!$util.isString(message.counterparty_version)) - return "counterparty_version: string expected"; - if (message.proof_try != null && message.hasOwnProperty("proof_try")) - if (!(message.proof_try && typeof message.proof_try.length === "number" || $util.isString(message.proof_try))) - return "proof_try: buffer expected"; - if (message.proof_height != null && message.hasOwnProperty("proof_height")) { - let error = $root.ibc.core.client.v1.Height.verify(message.proof_height); - if (error) - return "proof_height." + error; + if (message.allocations != null && message.hasOwnProperty("allocations")) { + if (!Array.isArray(message.allocations)) + return "allocations: array expected"; + for (let i = 0; i < message.allocations.length; ++i) { + let error = $root.ibc.applications.transfer.v1.Allocation.verify(message.allocations[i]); + if (error) + return "allocations." + error; + } } - if (message.signer != null && message.hasOwnProperty("signer")) - if (!$util.isString(message.signer)) - return "signer: string expected"; return null; }; /** - * Creates a MsgChannelOpenAck message from a plain object. Also converts values to their respective internal types. + * Creates a TransferAuthorization message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.channel.v1.MsgChannelOpenAck + * @memberof ibc.applications.transfer.v1.TransferAuthorization * @static * @param {Object.} object Plain object - * @returns {ibc.core.channel.v1.MsgChannelOpenAck} MsgChannelOpenAck + * @returns {ibc.applications.transfer.v1.TransferAuthorization} TransferAuthorization */ - MsgChannelOpenAck.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.channel.v1.MsgChannelOpenAck) + TransferAuthorization.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.transfer.v1.TransferAuthorization) return object; - let message = new $root.ibc.core.channel.v1.MsgChannelOpenAck(); - if (object.port_id != null) - message.port_id = String(object.port_id); - if (object.channel_id != null) - message.channel_id = String(object.channel_id); - if (object.counterparty_channel_id != null) - message.counterparty_channel_id = String(object.counterparty_channel_id); - if (object.counterparty_version != null) - message.counterparty_version = String(object.counterparty_version); - if (object.proof_try != null) - if (typeof object.proof_try === "string") - $util.base64.decode(object.proof_try, message.proof_try = $util.newBuffer($util.base64.length(object.proof_try)), 0); - else if (object.proof_try.length) - message.proof_try = object.proof_try; - if (object.proof_height != null) { - if (typeof object.proof_height !== "object") - throw TypeError(".ibc.core.channel.v1.MsgChannelOpenAck.proof_height: object expected"); - message.proof_height = $root.ibc.core.client.v1.Height.fromObject(object.proof_height); + let message = new $root.ibc.applications.transfer.v1.TransferAuthorization(); + if (object.allocations) { + if (!Array.isArray(object.allocations)) + throw TypeError(".ibc.applications.transfer.v1.TransferAuthorization.allocations: array expected"); + message.allocations = []; + for (let i = 0; i < object.allocations.length; ++i) { + if (typeof object.allocations[i] !== "object") + throw TypeError(".ibc.applications.transfer.v1.TransferAuthorization.allocations: object expected"); + message.allocations[i] = $root.ibc.applications.transfer.v1.Allocation.fromObject(object.allocations[i]); + } } - if (object.signer != null) - message.signer = String(object.signer); return message; }; /** - * Creates a plain object from a MsgChannelOpenAck message. Also converts values to other types if specified. + * Creates a plain object from a TransferAuthorization message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.channel.v1.MsgChannelOpenAck + * @memberof ibc.applications.transfer.v1.TransferAuthorization * @static - * @param {ibc.core.channel.v1.MsgChannelOpenAck} message MsgChannelOpenAck + * @param {ibc.applications.transfer.v1.TransferAuthorization} message TransferAuthorization * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MsgChannelOpenAck.toObject = function toObject(message, options) { + TransferAuthorization.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) { - object.port_id = ""; - object.channel_id = ""; - object.counterparty_channel_id = ""; - object.counterparty_version = ""; - if (options.bytes === String) - object.proof_try = ""; - else { - object.proof_try = []; - if (options.bytes !== Array) - object.proof_try = $util.newBuffer(object.proof_try); - } - object.proof_height = null; - object.signer = ""; + if (options.arrays || options.defaults) + object.allocations = []; + if (message.allocations && message.allocations.length) { + object.allocations = []; + for (let j = 0; j < message.allocations.length; ++j) + object.allocations[j] = $root.ibc.applications.transfer.v1.Allocation.toObject(message.allocations[j], options); } - if (message.port_id != null && message.hasOwnProperty("port_id")) - object.port_id = message.port_id; - if (message.channel_id != null && message.hasOwnProperty("channel_id")) - object.channel_id = message.channel_id; - if (message.counterparty_channel_id != null && message.hasOwnProperty("counterparty_channel_id")) - object.counterparty_channel_id = message.counterparty_channel_id; - if (message.counterparty_version != null && message.hasOwnProperty("counterparty_version")) - object.counterparty_version = message.counterparty_version; - if (message.proof_try != null && message.hasOwnProperty("proof_try")) - object.proof_try = options.bytes === String ? $util.base64.encode(message.proof_try, 0, message.proof_try.length) : options.bytes === Array ? Array.prototype.slice.call(message.proof_try) : message.proof_try; - if (message.proof_height != null && message.hasOwnProperty("proof_height")) - object.proof_height = $root.ibc.core.client.v1.Height.toObject(message.proof_height, options); - if (message.signer != null && message.hasOwnProperty("signer")) - object.signer = message.signer; return object; }; /** - * Converts this MsgChannelOpenAck to JSON. + * Converts this TransferAuthorization to JSON. * @function toJSON - * @memberof ibc.core.channel.v1.MsgChannelOpenAck + * @memberof ibc.applications.transfer.v1.TransferAuthorization * @instance * @returns {Object.} JSON object */ - MsgChannelOpenAck.prototype.toJSON = function toJSON() { + TransferAuthorization.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MsgChannelOpenAck; + return TransferAuthorization; })(); - v1.MsgChannelOpenAckResponse = (function() { + v1.GenesisState = (function() { /** - * Properties of a MsgChannelOpenAckResponse. - * @memberof ibc.core.channel.v1 - * @interface IMsgChannelOpenAckResponse + * Properties of a GenesisState. + * @memberof ibc.applications.transfer.v1 + * @interface IGenesisState + * @property {string|null} [port_id] GenesisState port_id + * @property {Array.|null} [denom_traces] GenesisState denom_traces + * @property {ibc.applications.transfer.v1.IParams|null} [params] GenesisState params + * @property {Array.|null} [total_escrowed] GenesisState total_escrowed */ /** - * Constructs a new MsgChannelOpenAckResponse. - * @memberof ibc.core.channel.v1 - * @classdesc Represents a MsgChannelOpenAckResponse. - * @implements IMsgChannelOpenAckResponse + * Constructs a new GenesisState. + * @memberof ibc.applications.transfer.v1 + * @classdesc Represents a GenesisState. + * @implements IGenesisState * @constructor - * @param {ibc.core.channel.v1.IMsgChannelOpenAckResponse=} [properties] Properties to set + * @param {ibc.applications.transfer.v1.IGenesisState=} [properties] Properties to set */ - function MsgChannelOpenAckResponse(properties) { + function GenesisState(properties) { + this.denom_traces = []; + this.total_escrowed = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -37858,51 +44071,109 @@ export const ibc = $root.ibc = (() => { } /** - * Encodes the specified MsgChannelOpenAckResponse message. Does not implicitly {@link ibc.core.channel.v1.MsgChannelOpenAckResponse.verify|verify} messages. + * GenesisState port_id. + * @member {string} port_id + * @memberof ibc.applications.transfer.v1.GenesisState + * @instance + */ + GenesisState.prototype.port_id = ""; + + /** + * GenesisState denom_traces. + * @member {Array.} denom_traces + * @memberof ibc.applications.transfer.v1.GenesisState + * @instance + */ + GenesisState.prototype.denom_traces = $util.emptyArray; + + /** + * GenesisState params. + * @member {ibc.applications.transfer.v1.IParams|null|undefined} params + * @memberof ibc.applications.transfer.v1.GenesisState + * @instance + */ + GenesisState.prototype.params = null; + + /** + * GenesisState total_escrowed. + * @member {Array.} total_escrowed + * @memberof ibc.applications.transfer.v1.GenesisState + * @instance + */ + GenesisState.prototype.total_escrowed = $util.emptyArray; + + /** + * Encodes the specified GenesisState message. Does not implicitly {@link ibc.applications.transfer.v1.GenesisState.verify|verify} messages. * @function encode - * @memberof ibc.core.channel.v1.MsgChannelOpenAckResponse + * @memberof ibc.applications.transfer.v1.GenesisState * @static - * @param {ibc.core.channel.v1.IMsgChannelOpenAckResponse} message MsgChannelOpenAckResponse message or plain object to encode + * @param {ibc.applications.transfer.v1.IGenesisState} message GenesisState message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgChannelOpenAckResponse.encode = function encode(message, writer) { + GenesisState.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.port_id != null && Object.hasOwnProperty.call(message, "port_id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.port_id); + if (message.denom_traces != null && message.denom_traces.length) + for (let i = 0; i < message.denom_traces.length; ++i) + $root.ibc.applications.transfer.v1.DenomTrace.encode(message.denom_traces[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.params != null && Object.hasOwnProperty.call(message, "params")) + $root.ibc.applications.transfer.v1.Params.encode(message.params, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.total_escrowed != null && message.total_escrowed.length) + for (let i = 0; i < message.total_escrowed.length; ++i) + $root.cosmos.base.v1beta1.Coin.encode(message.total_escrowed[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; /** - * Encodes the specified MsgChannelOpenAckResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.MsgChannelOpenAckResponse.verify|verify} messages. + * Encodes the specified GenesisState message, length delimited. Does not implicitly {@link ibc.applications.transfer.v1.GenesisState.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.channel.v1.MsgChannelOpenAckResponse + * @memberof ibc.applications.transfer.v1.GenesisState * @static - * @param {ibc.core.channel.v1.IMsgChannelOpenAckResponse} message MsgChannelOpenAckResponse message or plain object to encode + * @param {ibc.applications.transfer.v1.IGenesisState} message GenesisState message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgChannelOpenAckResponse.encodeDelimited = function encodeDelimited(message, writer) { + GenesisState.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MsgChannelOpenAckResponse message from the specified reader or buffer. + * Decodes a GenesisState message from the specified reader or buffer. * @function decode - * @memberof ibc.core.channel.v1.MsgChannelOpenAckResponse + * @memberof ibc.applications.transfer.v1.GenesisState * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.channel.v1.MsgChannelOpenAckResponse} MsgChannelOpenAckResponse + * @returns {ibc.applications.transfer.v1.GenesisState} GenesisState * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgChannelOpenAckResponse.decode = function decode(reader, length) { + GenesisState.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.MsgChannelOpenAckResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.transfer.v1.GenesisState(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { + case 1: + message.port_id = reader.string(); + break; + case 2: + if (!(message.denom_traces && message.denom_traces.length)) + message.denom_traces = []; + message.denom_traces.push($root.ibc.applications.transfer.v1.DenomTrace.decode(reader, reader.uint32())); + break; + case 3: + message.params = $root.ibc.applications.transfer.v1.Params.decode(reader, reader.uint32()); + break; + case 4: + if (!(message.total_escrowed && message.total_escrowed.length)) + message.total_escrowed = []; + message.total_escrowed.push($root.cosmos.base.v1beta1.Coin.decode(reader, reader.uint32())); + break; default: reader.skipType(tag & 7); break; @@ -37912,98 +44183,189 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a MsgChannelOpenAckResponse message from the specified reader or buffer, length delimited. + * Decodes a GenesisState message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.channel.v1.MsgChannelOpenAckResponse + * @memberof ibc.applications.transfer.v1.GenesisState * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.channel.v1.MsgChannelOpenAckResponse} MsgChannelOpenAckResponse + * @returns {ibc.applications.transfer.v1.GenesisState} GenesisState * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgChannelOpenAckResponse.decodeDelimited = function decodeDelimited(reader) { + GenesisState.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MsgChannelOpenAckResponse message. + * Verifies a GenesisState message. * @function verify - * @memberof ibc.core.channel.v1.MsgChannelOpenAckResponse + * @memberof ibc.applications.transfer.v1.GenesisState * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MsgChannelOpenAckResponse.verify = function verify(message) { + GenesisState.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.port_id != null && message.hasOwnProperty("port_id")) + if (!$util.isString(message.port_id)) + return "port_id: string expected"; + if (message.denom_traces != null && message.hasOwnProperty("denom_traces")) { + if (!Array.isArray(message.denom_traces)) + return "denom_traces: array expected"; + for (let i = 0; i < message.denom_traces.length; ++i) { + let error = $root.ibc.applications.transfer.v1.DenomTrace.verify(message.denom_traces[i]); + if (error) + return "denom_traces." + error; + } + } + if (message.params != null && message.hasOwnProperty("params")) { + let error = $root.ibc.applications.transfer.v1.Params.verify(message.params); + if (error) + return "params." + error; + } + if (message.total_escrowed != null && message.hasOwnProperty("total_escrowed")) { + if (!Array.isArray(message.total_escrowed)) + return "total_escrowed: array expected"; + for (let i = 0; i < message.total_escrowed.length; ++i) { + let error = $root.cosmos.base.v1beta1.Coin.verify(message.total_escrowed[i]); + if (error) + return "total_escrowed." + error; + } + } return null; }; /** - * Creates a MsgChannelOpenAckResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GenesisState message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.channel.v1.MsgChannelOpenAckResponse + * @memberof ibc.applications.transfer.v1.GenesisState * @static * @param {Object.} object Plain object - * @returns {ibc.core.channel.v1.MsgChannelOpenAckResponse} MsgChannelOpenAckResponse + * @returns {ibc.applications.transfer.v1.GenesisState} GenesisState */ - MsgChannelOpenAckResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.channel.v1.MsgChannelOpenAckResponse) + GenesisState.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.transfer.v1.GenesisState) return object; - return new $root.ibc.core.channel.v1.MsgChannelOpenAckResponse(); + let message = new $root.ibc.applications.transfer.v1.GenesisState(); + if (object.port_id != null) + message.port_id = String(object.port_id); + if (object.denom_traces) { + if (!Array.isArray(object.denom_traces)) + throw TypeError(".ibc.applications.transfer.v1.GenesisState.denom_traces: array expected"); + message.denom_traces = []; + for (let i = 0; i < object.denom_traces.length; ++i) { + if (typeof object.denom_traces[i] !== "object") + throw TypeError(".ibc.applications.transfer.v1.GenesisState.denom_traces: object expected"); + message.denom_traces[i] = $root.ibc.applications.transfer.v1.DenomTrace.fromObject(object.denom_traces[i]); + } + } + if (object.params != null) { + if (typeof object.params !== "object") + throw TypeError(".ibc.applications.transfer.v1.GenesisState.params: object expected"); + message.params = $root.ibc.applications.transfer.v1.Params.fromObject(object.params); + } + if (object.total_escrowed) { + if (!Array.isArray(object.total_escrowed)) + throw TypeError(".ibc.applications.transfer.v1.GenesisState.total_escrowed: array expected"); + message.total_escrowed = []; + for (let i = 0; i < object.total_escrowed.length; ++i) { + if (typeof object.total_escrowed[i] !== "object") + throw TypeError(".ibc.applications.transfer.v1.GenesisState.total_escrowed: object expected"); + message.total_escrowed[i] = $root.cosmos.base.v1beta1.Coin.fromObject(object.total_escrowed[i]); + } + } + return message; }; /** - * Creates a plain object from a MsgChannelOpenAckResponse message. Also converts values to other types if specified. + * Creates a plain object from a GenesisState message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.channel.v1.MsgChannelOpenAckResponse + * @memberof ibc.applications.transfer.v1.GenesisState * @static - * @param {ibc.core.channel.v1.MsgChannelOpenAckResponse} message MsgChannelOpenAckResponse + * @param {ibc.applications.transfer.v1.GenesisState} message GenesisState * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MsgChannelOpenAckResponse.toObject = function toObject() { - return {}; + GenesisState.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) { + object.denom_traces = []; + object.total_escrowed = []; + } + if (options.defaults) { + object.port_id = ""; + object.params = null; + } + if (message.port_id != null && message.hasOwnProperty("port_id")) + object.port_id = message.port_id; + if (message.denom_traces && message.denom_traces.length) { + object.denom_traces = []; + for (let j = 0; j < message.denom_traces.length; ++j) + object.denom_traces[j] = $root.ibc.applications.transfer.v1.DenomTrace.toObject(message.denom_traces[j], options); + } + if (message.params != null && message.hasOwnProperty("params")) + object.params = $root.ibc.applications.transfer.v1.Params.toObject(message.params, options); + if (message.total_escrowed && message.total_escrowed.length) { + object.total_escrowed = []; + for (let j = 0; j < message.total_escrowed.length; ++j) + object.total_escrowed[j] = $root.cosmos.base.v1beta1.Coin.toObject(message.total_escrowed[j], options); + } + return object; }; /** - * Converts this MsgChannelOpenAckResponse to JSON. + * Converts this GenesisState to JSON. * @function toJSON - * @memberof ibc.core.channel.v1.MsgChannelOpenAckResponse + * @memberof ibc.applications.transfer.v1.GenesisState * @instance * @returns {Object.} JSON object */ - MsgChannelOpenAckResponse.prototype.toJSON = function toJSON() { + GenesisState.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MsgChannelOpenAckResponse; + return GenesisState; })(); - v1.MsgChannelOpenConfirm = (function() { + return v1; + })(); + + transfer.v2 = (function() { + + /** + * Namespace v2. + * @memberof ibc.applications.transfer + * @namespace + */ + const v2 = {}; + + v2.FungibleTokenPacketData = (function() { /** - * Properties of a MsgChannelOpenConfirm. - * @memberof ibc.core.channel.v1 - * @interface IMsgChannelOpenConfirm - * @property {string|null} [port_id] MsgChannelOpenConfirm port_id - * @property {string|null} [channel_id] MsgChannelOpenConfirm channel_id - * @property {Uint8Array|null} [proof_ack] MsgChannelOpenConfirm proof_ack - * @property {ibc.core.client.v1.IHeight|null} [proof_height] MsgChannelOpenConfirm proof_height - * @property {string|null} [signer] MsgChannelOpenConfirm signer + * Properties of a FungibleTokenPacketData. + * @memberof ibc.applications.transfer.v2 + * @interface IFungibleTokenPacketData + * @property {string|null} [denom] FungibleTokenPacketData denom + * @property {string|null} [amount] FungibleTokenPacketData amount + * @property {string|null} [sender] FungibleTokenPacketData sender + * @property {string|null} [receiver] FungibleTokenPacketData receiver + * @property {string|null} [memo] FungibleTokenPacketData memo */ /** - * Constructs a new MsgChannelOpenConfirm. - * @memberof ibc.core.channel.v1 - * @classdesc Represents a MsgChannelOpenConfirm. - * @implements IMsgChannelOpenConfirm + * Constructs a new FungibleTokenPacketData. + * @memberof ibc.applications.transfer.v2 + * @classdesc Represents a FungibleTokenPacketData. + * @implements IFungibleTokenPacketData * @constructor - * @param {ibc.core.channel.v1.IMsgChannelOpenConfirm=} [properties] Properties to set + * @param {ibc.applications.transfer.v2.IFungibleTokenPacketData=} [properties] Properties to set */ - function MsgChannelOpenConfirm(properties) { + function FungibleTokenPacketData(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -38011,115 +44373,115 @@ export const ibc = $root.ibc = (() => { } /** - * MsgChannelOpenConfirm port_id. - * @member {string} port_id - * @memberof ibc.core.channel.v1.MsgChannelOpenConfirm + * FungibleTokenPacketData denom. + * @member {string} denom + * @memberof ibc.applications.transfer.v2.FungibleTokenPacketData * @instance */ - MsgChannelOpenConfirm.prototype.port_id = ""; + FungibleTokenPacketData.prototype.denom = ""; /** - * MsgChannelOpenConfirm channel_id. - * @member {string} channel_id - * @memberof ibc.core.channel.v1.MsgChannelOpenConfirm + * FungibleTokenPacketData amount. + * @member {string} amount + * @memberof ibc.applications.transfer.v2.FungibleTokenPacketData * @instance */ - MsgChannelOpenConfirm.prototype.channel_id = ""; + FungibleTokenPacketData.prototype.amount = ""; /** - * MsgChannelOpenConfirm proof_ack. - * @member {Uint8Array} proof_ack - * @memberof ibc.core.channel.v1.MsgChannelOpenConfirm + * FungibleTokenPacketData sender. + * @member {string} sender + * @memberof ibc.applications.transfer.v2.FungibleTokenPacketData * @instance */ - MsgChannelOpenConfirm.prototype.proof_ack = $util.newBuffer([]); + FungibleTokenPacketData.prototype.sender = ""; /** - * MsgChannelOpenConfirm proof_height. - * @member {ibc.core.client.v1.IHeight|null|undefined} proof_height - * @memberof ibc.core.channel.v1.MsgChannelOpenConfirm + * FungibleTokenPacketData receiver. + * @member {string} receiver + * @memberof ibc.applications.transfer.v2.FungibleTokenPacketData * @instance */ - MsgChannelOpenConfirm.prototype.proof_height = null; + FungibleTokenPacketData.prototype.receiver = ""; /** - * MsgChannelOpenConfirm signer. - * @member {string} signer - * @memberof ibc.core.channel.v1.MsgChannelOpenConfirm + * FungibleTokenPacketData memo. + * @member {string} memo + * @memberof ibc.applications.transfer.v2.FungibleTokenPacketData * @instance */ - MsgChannelOpenConfirm.prototype.signer = ""; + FungibleTokenPacketData.prototype.memo = ""; /** - * Encodes the specified MsgChannelOpenConfirm message. Does not implicitly {@link ibc.core.channel.v1.MsgChannelOpenConfirm.verify|verify} messages. + * Encodes the specified FungibleTokenPacketData message. Does not implicitly {@link ibc.applications.transfer.v2.FungibleTokenPacketData.verify|verify} messages. * @function encode - * @memberof ibc.core.channel.v1.MsgChannelOpenConfirm + * @memberof ibc.applications.transfer.v2.FungibleTokenPacketData * @static - * @param {ibc.core.channel.v1.IMsgChannelOpenConfirm} message MsgChannelOpenConfirm message or plain object to encode + * @param {ibc.applications.transfer.v2.IFungibleTokenPacketData} message FungibleTokenPacketData message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgChannelOpenConfirm.encode = function encode(message, writer) { + FungibleTokenPacketData.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.port_id != null && Object.hasOwnProperty.call(message, "port_id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.port_id); - if (message.channel_id != null && Object.hasOwnProperty.call(message, "channel_id")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.channel_id); - if (message.proof_ack != null && Object.hasOwnProperty.call(message, "proof_ack")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.proof_ack); - if (message.proof_height != null && Object.hasOwnProperty.call(message, "proof_height")) - $root.ibc.core.client.v1.Height.encode(message.proof_height, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.signer != null && Object.hasOwnProperty.call(message, "signer")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.signer); + if (message.denom != null && Object.hasOwnProperty.call(message, "denom")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.denom); + if (message.amount != null && Object.hasOwnProperty.call(message, "amount")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.amount); + if (message.sender != null && Object.hasOwnProperty.call(message, "sender")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.sender); + if (message.receiver != null && Object.hasOwnProperty.call(message, "receiver")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.receiver); + if (message.memo != null && Object.hasOwnProperty.call(message, "memo")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.memo); return writer; }; /** - * Encodes the specified MsgChannelOpenConfirm message, length delimited. Does not implicitly {@link ibc.core.channel.v1.MsgChannelOpenConfirm.verify|verify} messages. + * Encodes the specified FungibleTokenPacketData message, length delimited. Does not implicitly {@link ibc.applications.transfer.v2.FungibleTokenPacketData.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.channel.v1.MsgChannelOpenConfirm + * @memberof ibc.applications.transfer.v2.FungibleTokenPacketData * @static - * @param {ibc.core.channel.v1.IMsgChannelOpenConfirm} message MsgChannelOpenConfirm message or plain object to encode + * @param {ibc.applications.transfer.v2.IFungibleTokenPacketData} message FungibleTokenPacketData message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgChannelOpenConfirm.encodeDelimited = function encodeDelimited(message, writer) { + FungibleTokenPacketData.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MsgChannelOpenConfirm message from the specified reader or buffer. + * Decodes a FungibleTokenPacketData message from the specified reader or buffer. * @function decode - * @memberof ibc.core.channel.v1.MsgChannelOpenConfirm + * @memberof ibc.applications.transfer.v2.FungibleTokenPacketData * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.channel.v1.MsgChannelOpenConfirm} MsgChannelOpenConfirm + * @returns {ibc.applications.transfer.v2.FungibleTokenPacketData} FungibleTokenPacketData * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgChannelOpenConfirm.decode = function decode(reader, length) { + FungibleTokenPacketData.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.MsgChannelOpenConfirm(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.applications.transfer.v2.FungibleTokenPacketData(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.port_id = reader.string(); + message.denom = reader.string(); break; case 2: - message.channel_id = reader.string(); + message.amount = reader.string(); break; case 3: - message.proof_ack = reader.bytes(); + message.sender = reader.string(); break; case 4: - message.proof_height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); + message.receiver = reader.string(); break; case 5: - message.signer = reader.string(); + message.memo = reader.string(); break; default: reader.skipType(tag & 7); @@ -38130,205 +44492,301 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a MsgChannelOpenConfirm message from the specified reader or buffer, length delimited. + * Decodes a FungibleTokenPacketData message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.channel.v1.MsgChannelOpenConfirm + * @memberof ibc.applications.transfer.v2.FungibleTokenPacketData * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.channel.v1.MsgChannelOpenConfirm} MsgChannelOpenConfirm + * @returns {ibc.applications.transfer.v2.FungibleTokenPacketData} FungibleTokenPacketData * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgChannelOpenConfirm.decodeDelimited = function decodeDelimited(reader) { + FungibleTokenPacketData.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MsgChannelOpenConfirm message. + * Verifies a FungibleTokenPacketData message. * @function verify - * @memberof ibc.core.channel.v1.MsgChannelOpenConfirm + * @memberof ibc.applications.transfer.v2.FungibleTokenPacketData * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MsgChannelOpenConfirm.verify = function verify(message) { + FungibleTokenPacketData.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.port_id != null && message.hasOwnProperty("port_id")) - if (!$util.isString(message.port_id)) - return "port_id: string expected"; - if (message.channel_id != null && message.hasOwnProperty("channel_id")) - if (!$util.isString(message.channel_id)) - return "channel_id: string expected"; - if (message.proof_ack != null && message.hasOwnProperty("proof_ack")) - if (!(message.proof_ack && typeof message.proof_ack.length === "number" || $util.isString(message.proof_ack))) - return "proof_ack: buffer expected"; - if (message.proof_height != null && message.hasOwnProperty("proof_height")) { - let error = $root.ibc.core.client.v1.Height.verify(message.proof_height); - if (error) - return "proof_height." + error; - } - if (message.signer != null && message.hasOwnProperty("signer")) - if (!$util.isString(message.signer)) - return "signer: string expected"; + if (message.denom != null && message.hasOwnProperty("denom")) + if (!$util.isString(message.denom)) + return "denom: string expected"; + if (message.amount != null && message.hasOwnProperty("amount")) + if (!$util.isString(message.amount)) + return "amount: string expected"; + if (message.sender != null && message.hasOwnProperty("sender")) + if (!$util.isString(message.sender)) + return "sender: string expected"; + if (message.receiver != null && message.hasOwnProperty("receiver")) + if (!$util.isString(message.receiver)) + return "receiver: string expected"; + if (message.memo != null && message.hasOwnProperty("memo")) + if (!$util.isString(message.memo)) + return "memo: string expected"; return null; }; /** - * Creates a MsgChannelOpenConfirm message from a plain object. Also converts values to their respective internal types. + * Creates a FungibleTokenPacketData message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.channel.v1.MsgChannelOpenConfirm + * @memberof ibc.applications.transfer.v2.FungibleTokenPacketData * @static * @param {Object.} object Plain object - * @returns {ibc.core.channel.v1.MsgChannelOpenConfirm} MsgChannelOpenConfirm + * @returns {ibc.applications.transfer.v2.FungibleTokenPacketData} FungibleTokenPacketData */ - MsgChannelOpenConfirm.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.channel.v1.MsgChannelOpenConfirm) + FungibleTokenPacketData.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.applications.transfer.v2.FungibleTokenPacketData) return object; - let message = new $root.ibc.core.channel.v1.MsgChannelOpenConfirm(); - if (object.port_id != null) - message.port_id = String(object.port_id); - if (object.channel_id != null) - message.channel_id = String(object.channel_id); - if (object.proof_ack != null) - if (typeof object.proof_ack === "string") - $util.base64.decode(object.proof_ack, message.proof_ack = $util.newBuffer($util.base64.length(object.proof_ack)), 0); - else if (object.proof_ack.length) - message.proof_ack = object.proof_ack; - if (object.proof_height != null) { - if (typeof object.proof_height !== "object") - throw TypeError(".ibc.core.channel.v1.MsgChannelOpenConfirm.proof_height: object expected"); - message.proof_height = $root.ibc.core.client.v1.Height.fromObject(object.proof_height); - } - if (object.signer != null) - message.signer = String(object.signer); + let message = new $root.ibc.applications.transfer.v2.FungibleTokenPacketData(); + if (object.denom != null) + message.denom = String(object.denom); + if (object.amount != null) + message.amount = String(object.amount); + if (object.sender != null) + message.sender = String(object.sender); + if (object.receiver != null) + message.receiver = String(object.receiver); + if (object.memo != null) + message.memo = String(object.memo); return message; }; /** - * Creates a plain object from a MsgChannelOpenConfirm message. Also converts values to other types if specified. + * Creates a plain object from a FungibleTokenPacketData message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.channel.v1.MsgChannelOpenConfirm + * @memberof ibc.applications.transfer.v2.FungibleTokenPacketData * @static - * @param {ibc.core.channel.v1.MsgChannelOpenConfirm} message MsgChannelOpenConfirm + * @param {ibc.applications.transfer.v2.FungibleTokenPacketData} message FungibleTokenPacketData * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MsgChannelOpenConfirm.toObject = function toObject(message, options) { + FungibleTokenPacketData.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - object.port_id = ""; - object.channel_id = ""; - if (options.bytes === String) - object.proof_ack = ""; - else { - object.proof_ack = []; - if (options.bytes !== Array) - object.proof_ack = $util.newBuffer(object.proof_ack); - } - object.proof_height = null; - object.signer = ""; + object.denom = ""; + object.amount = ""; + object.sender = ""; + object.receiver = ""; + object.memo = ""; } - if (message.port_id != null && message.hasOwnProperty("port_id")) - object.port_id = message.port_id; - if (message.channel_id != null && message.hasOwnProperty("channel_id")) - object.channel_id = message.channel_id; - if (message.proof_ack != null && message.hasOwnProperty("proof_ack")) - object.proof_ack = options.bytes === String ? $util.base64.encode(message.proof_ack, 0, message.proof_ack.length) : options.bytes === Array ? Array.prototype.slice.call(message.proof_ack) : message.proof_ack; - if (message.proof_height != null && message.hasOwnProperty("proof_height")) - object.proof_height = $root.ibc.core.client.v1.Height.toObject(message.proof_height, options); - if (message.signer != null && message.hasOwnProperty("signer")) - object.signer = message.signer; + if (message.denom != null && message.hasOwnProperty("denom")) + object.denom = message.denom; + if (message.amount != null && message.hasOwnProperty("amount")) + object.amount = message.amount; + if (message.sender != null && message.hasOwnProperty("sender")) + object.sender = message.sender; + if (message.receiver != null && message.hasOwnProperty("receiver")) + object.receiver = message.receiver; + if (message.memo != null && message.hasOwnProperty("memo")) + object.memo = message.memo; return object; }; /** - * Converts this MsgChannelOpenConfirm to JSON. + * Converts this FungibleTokenPacketData to JSON. * @function toJSON - * @memberof ibc.core.channel.v1.MsgChannelOpenConfirm + * @memberof ibc.applications.transfer.v2.FungibleTokenPacketData * @instance * @returns {Object.} JSON object */ - MsgChannelOpenConfirm.prototype.toJSON = function toJSON() { + FungibleTokenPacketData.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MsgChannelOpenConfirm; + return FungibleTokenPacketData; })(); - v1.MsgChannelOpenConfirmResponse = (function() { + return v2; + })(); + + return transfer; + })(); + + return applications; + })(); + + ibc.core = (function() { + + /** + * Namespace core. + * @memberof ibc + * @namespace + */ + const core = {}; + + core.channel = (function() { + + /** + * Namespace channel. + * @memberof ibc.core + * @namespace + */ + const channel = {}; + + channel.v1 = (function() { + + /** + * Namespace v1. + * @memberof ibc.core.channel + * @namespace + */ + const v1 = {}; + + v1.Channel = (function() { /** - * Properties of a MsgChannelOpenConfirmResponse. + * Properties of a Channel. * @memberof ibc.core.channel.v1 - * @interface IMsgChannelOpenConfirmResponse + * @interface IChannel + * @property {ibc.core.channel.v1.State|null} [state] Channel state + * @property {ibc.core.channel.v1.Order|null} [ordering] Channel ordering + * @property {ibc.core.channel.v1.ICounterparty|null} [counterparty] Channel counterparty + * @property {Array.|null} [connection_hops] Channel connection_hops + * @property {string|null} [version] Channel version + */ + + /** + * Constructs a new Channel. + * @memberof ibc.core.channel.v1 + * @classdesc Represents a Channel. + * @implements IChannel + * @constructor + * @param {ibc.core.channel.v1.IChannel=} [properties] Properties to set + */ + function Channel(properties) { + this.connection_hops = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Channel state. + * @member {ibc.core.channel.v1.State} state + * @memberof ibc.core.channel.v1.Channel + * @instance + */ + Channel.prototype.state = 0; + + /** + * Channel ordering. + * @member {ibc.core.channel.v1.Order} ordering + * @memberof ibc.core.channel.v1.Channel + * @instance + */ + Channel.prototype.ordering = 0; + + /** + * Channel counterparty. + * @member {ibc.core.channel.v1.ICounterparty|null|undefined} counterparty + * @memberof ibc.core.channel.v1.Channel + * @instance + */ + Channel.prototype.counterparty = null; + + /** + * Channel connection_hops. + * @member {Array.} connection_hops + * @memberof ibc.core.channel.v1.Channel + * @instance */ + Channel.prototype.connection_hops = $util.emptyArray; /** - * Constructs a new MsgChannelOpenConfirmResponse. - * @memberof ibc.core.channel.v1 - * @classdesc Represents a MsgChannelOpenConfirmResponse. - * @implements IMsgChannelOpenConfirmResponse - * @constructor - * @param {ibc.core.channel.v1.IMsgChannelOpenConfirmResponse=} [properties] Properties to set + * Channel version. + * @member {string} version + * @memberof ibc.core.channel.v1.Channel + * @instance */ - function MsgChannelOpenConfirmResponse(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + Channel.prototype.version = ""; /** - * Encodes the specified MsgChannelOpenConfirmResponse message. Does not implicitly {@link ibc.core.channel.v1.MsgChannelOpenConfirmResponse.verify|verify} messages. + * Encodes the specified Channel message. Does not implicitly {@link ibc.core.channel.v1.Channel.verify|verify} messages. * @function encode - * @memberof ibc.core.channel.v1.MsgChannelOpenConfirmResponse + * @memberof ibc.core.channel.v1.Channel * @static - * @param {ibc.core.channel.v1.IMsgChannelOpenConfirmResponse} message MsgChannelOpenConfirmResponse message or plain object to encode + * @param {ibc.core.channel.v1.IChannel} message Channel message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgChannelOpenConfirmResponse.encode = function encode(message, writer) { + Channel.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.state); + if (message.ordering != null && Object.hasOwnProperty.call(message, "ordering")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.ordering); + if (message.counterparty != null && Object.hasOwnProperty.call(message, "counterparty")) + $root.ibc.core.channel.v1.Counterparty.encode(message.counterparty, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.connection_hops != null && message.connection_hops.length) + for (let i = 0; i < message.connection_hops.length; ++i) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.connection_hops[i]); + if (message.version != null && Object.hasOwnProperty.call(message, "version")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.version); return writer; }; /** - * Encodes the specified MsgChannelOpenConfirmResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.MsgChannelOpenConfirmResponse.verify|verify} messages. + * Encodes the specified Channel message, length delimited. Does not implicitly {@link ibc.core.channel.v1.Channel.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.channel.v1.MsgChannelOpenConfirmResponse + * @memberof ibc.core.channel.v1.Channel * @static - * @param {ibc.core.channel.v1.IMsgChannelOpenConfirmResponse} message MsgChannelOpenConfirmResponse message or plain object to encode + * @param {ibc.core.channel.v1.IChannel} message Channel message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgChannelOpenConfirmResponse.encodeDelimited = function encodeDelimited(message, writer) { + Channel.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MsgChannelOpenConfirmResponse message from the specified reader or buffer. + * Decodes a Channel message from the specified reader or buffer. * @function decode - * @memberof ibc.core.channel.v1.MsgChannelOpenConfirmResponse + * @memberof ibc.core.channel.v1.Channel * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.channel.v1.MsgChannelOpenConfirmResponse} MsgChannelOpenConfirmResponse + * @returns {ibc.core.channel.v1.Channel} Channel * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgChannelOpenConfirmResponse.decode = function decode(reader, length) { + Channel.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.MsgChannelOpenConfirmResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.Channel(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { + case 1: + message.state = reader.int32(); + break; + case 2: + message.ordering = reader.int32(); + break; + case 3: + message.counterparty = $root.ibc.core.channel.v1.Counterparty.decode(reader, reader.uint32()); + break; + case 4: + if (!(message.connection_hops && message.connection_hops.length)) + message.connection_hops = []; + message.connection_hops.push(reader.string()); + break; + case 5: + message.version = reader.string(); + break; default: reader.skipType(tag & 7); break; @@ -38338,96 +44796,211 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a MsgChannelOpenConfirmResponse message from the specified reader or buffer, length delimited. + * Decodes a Channel message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.channel.v1.MsgChannelOpenConfirmResponse + * @memberof ibc.core.channel.v1.Channel * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.channel.v1.MsgChannelOpenConfirmResponse} MsgChannelOpenConfirmResponse + * @returns {ibc.core.channel.v1.Channel} Channel * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgChannelOpenConfirmResponse.decodeDelimited = function decodeDelimited(reader) { + Channel.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MsgChannelOpenConfirmResponse message. + * Verifies a Channel message. * @function verify - * @memberof ibc.core.channel.v1.MsgChannelOpenConfirmResponse + * @memberof ibc.core.channel.v1.Channel * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MsgChannelOpenConfirmResponse.verify = function verify(message) { + Channel.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + break; + } + if (message.ordering != null && message.hasOwnProperty("ordering")) + switch (message.ordering) { + default: + return "ordering: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.counterparty != null && message.hasOwnProperty("counterparty")) { + let error = $root.ibc.core.channel.v1.Counterparty.verify(message.counterparty); + if (error) + return "counterparty." + error; + } + if (message.connection_hops != null && message.hasOwnProperty("connection_hops")) { + if (!Array.isArray(message.connection_hops)) + return "connection_hops: array expected"; + for (let i = 0; i < message.connection_hops.length; ++i) + if (!$util.isString(message.connection_hops[i])) + return "connection_hops: string[] expected"; + } + if (message.version != null && message.hasOwnProperty("version")) + if (!$util.isString(message.version)) + return "version: string expected"; return null; }; /** - * Creates a MsgChannelOpenConfirmResponse message from a plain object. Also converts values to their respective internal types. + * Creates a Channel message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.channel.v1.MsgChannelOpenConfirmResponse + * @memberof ibc.core.channel.v1.Channel * @static * @param {Object.} object Plain object - * @returns {ibc.core.channel.v1.MsgChannelOpenConfirmResponse} MsgChannelOpenConfirmResponse + * @returns {ibc.core.channel.v1.Channel} Channel */ - MsgChannelOpenConfirmResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.channel.v1.MsgChannelOpenConfirmResponse) + Channel.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.channel.v1.Channel) return object; - return new $root.ibc.core.channel.v1.MsgChannelOpenConfirmResponse(); + let message = new $root.ibc.core.channel.v1.Channel(); + switch (object.state) { + case "STATE_UNINITIALIZED_UNSPECIFIED": + case 0: + message.state = 0; + break; + case "STATE_INIT": + case 1: + message.state = 1; + break; + case "STATE_TRYOPEN": + case 2: + message.state = 2; + break; + case "STATE_OPEN": + case 3: + message.state = 3; + break; + case "STATE_CLOSED": + case 4: + message.state = 4; + break; + } + switch (object.ordering) { + case "ORDER_NONE_UNSPECIFIED": + case 0: + message.ordering = 0; + break; + case "ORDER_UNORDERED": + case 1: + message.ordering = 1; + break; + case "ORDER_ORDERED": + case 2: + message.ordering = 2; + break; + } + if (object.counterparty != null) { + if (typeof object.counterparty !== "object") + throw TypeError(".ibc.core.channel.v1.Channel.counterparty: object expected"); + message.counterparty = $root.ibc.core.channel.v1.Counterparty.fromObject(object.counterparty); + } + if (object.connection_hops) { + if (!Array.isArray(object.connection_hops)) + throw TypeError(".ibc.core.channel.v1.Channel.connection_hops: array expected"); + message.connection_hops = []; + for (let i = 0; i < object.connection_hops.length; ++i) + message.connection_hops[i] = String(object.connection_hops[i]); + } + if (object.version != null) + message.version = String(object.version); + return message; }; /** - * Creates a plain object from a MsgChannelOpenConfirmResponse message. Also converts values to other types if specified. + * Creates a plain object from a Channel message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.channel.v1.MsgChannelOpenConfirmResponse + * @memberof ibc.core.channel.v1.Channel * @static - * @param {ibc.core.channel.v1.MsgChannelOpenConfirmResponse} message MsgChannelOpenConfirmResponse + * @param {ibc.core.channel.v1.Channel} message Channel * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MsgChannelOpenConfirmResponse.toObject = function toObject() { - return {}; + Channel.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) + object.connection_hops = []; + if (options.defaults) { + object.state = options.enums === String ? "STATE_UNINITIALIZED_UNSPECIFIED" : 0; + object.ordering = options.enums === String ? "ORDER_NONE_UNSPECIFIED" : 0; + object.counterparty = null; + object.version = ""; + } + if (message.state != null && message.hasOwnProperty("state")) + object.state = options.enums === String ? $root.ibc.core.channel.v1.State[message.state] : message.state; + if (message.ordering != null && message.hasOwnProperty("ordering")) + object.ordering = options.enums === String ? $root.ibc.core.channel.v1.Order[message.ordering] : message.ordering; + if (message.counterparty != null && message.hasOwnProperty("counterparty")) + object.counterparty = $root.ibc.core.channel.v1.Counterparty.toObject(message.counterparty, options); + if (message.connection_hops && message.connection_hops.length) { + object.connection_hops = []; + for (let j = 0; j < message.connection_hops.length; ++j) + object.connection_hops[j] = message.connection_hops[j]; + } + if (message.version != null && message.hasOwnProperty("version")) + object.version = message.version; + return object; }; /** - * Converts this MsgChannelOpenConfirmResponse to JSON. + * Converts this Channel to JSON. * @function toJSON - * @memberof ibc.core.channel.v1.MsgChannelOpenConfirmResponse + * @memberof ibc.core.channel.v1.Channel * @instance * @returns {Object.} JSON object */ - MsgChannelOpenConfirmResponse.prototype.toJSON = function toJSON() { + Channel.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MsgChannelOpenConfirmResponse; + return Channel; })(); - v1.MsgChannelCloseInit = (function() { + v1.IdentifiedChannel = (function() { /** - * Properties of a MsgChannelCloseInit. + * Properties of an IdentifiedChannel. * @memberof ibc.core.channel.v1 - * @interface IMsgChannelCloseInit - * @property {string|null} [port_id] MsgChannelCloseInit port_id - * @property {string|null} [channel_id] MsgChannelCloseInit channel_id - * @property {string|null} [signer] MsgChannelCloseInit signer + * @interface IIdentifiedChannel + * @property {ibc.core.channel.v1.State|null} [state] IdentifiedChannel state + * @property {ibc.core.channel.v1.Order|null} [ordering] IdentifiedChannel ordering + * @property {ibc.core.channel.v1.ICounterparty|null} [counterparty] IdentifiedChannel counterparty + * @property {Array.|null} [connection_hops] IdentifiedChannel connection_hops + * @property {string|null} [version] IdentifiedChannel version + * @property {string|null} [port_id] IdentifiedChannel port_id + * @property {string|null} [channel_id] IdentifiedChannel channel_id */ /** - * Constructs a new MsgChannelCloseInit. + * Constructs a new IdentifiedChannel. * @memberof ibc.core.channel.v1 - * @classdesc Represents a MsgChannelCloseInit. - * @implements IMsgChannelCloseInit + * @classdesc Represents an IdentifiedChannel. + * @implements IIdentifiedChannel * @constructor - * @param {ibc.core.channel.v1.IMsgChannelCloseInit=} [properties] Properties to set + * @param {ibc.core.channel.v1.IIdentifiedChannel=} [properties] Properties to set */ - function MsgChannelCloseInit(properties) { + function IdentifiedChannel(properties) { + this.connection_hops = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -38435,89 +45008,144 @@ export const ibc = $root.ibc = (() => { } /** - * MsgChannelCloseInit port_id. - * @member {string} port_id - * @memberof ibc.core.channel.v1.MsgChannelCloseInit + * IdentifiedChannel state. + * @member {ibc.core.channel.v1.State} state + * @memberof ibc.core.channel.v1.IdentifiedChannel * @instance */ - MsgChannelCloseInit.prototype.port_id = ""; + IdentifiedChannel.prototype.state = 0; /** - * MsgChannelCloseInit channel_id. - * @member {string} channel_id - * @memberof ibc.core.channel.v1.MsgChannelCloseInit + * IdentifiedChannel ordering. + * @member {ibc.core.channel.v1.Order} ordering + * @memberof ibc.core.channel.v1.IdentifiedChannel * @instance */ - MsgChannelCloseInit.prototype.channel_id = ""; + IdentifiedChannel.prototype.ordering = 0; /** - * MsgChannelCloseInit signer. - * @member {string} signer - * @memberof ibc.core.channel.v1.MsgChannelCloseInit + * IdentifiedChannel counterparty. + * @member {ibc.core.channel.v1.ICounterparty|null|undefined} counterparty + * @memberof ibc.core.channel.v1.IdentifiedChannel * @instance */ - MsgChannelCloseInit.prototype.signer = ""; + IdentifiedChannel.prototype.counterparty = null; /** - * Encodes the specified MsgChannelCloseInit message. Does not implicitly {@link ibc.core.channel.v1.MsgChannelCloseInit.verify|verify} messages. + * IdentifiedChannel connection_hops. + * @member {Array.} connection_hops + * @memberof ibc.core.channel.v1.IdentifiedChannel + * @instance + */ + IdentifiedChannel.prototype.connection_hops = $util.emptyArray; + + /** + * IdentifiedChannel version. + * @member {string} version + * @memberof ibc.core.channel.v1.IdentifiedChannel + * @instance + */ + IdentifiedChannel.prototype.version = ""; + + /** + * IdentifiedChannel port_id. + * @member {string} port_id + * @memberof ibc.core.channel.v1.IdentifiedChannel + * @instance + */ + IdentifiedChannel.prototype.port_id = ""; + + /** + * IdentifiedChannel channel_id. + * @member {string} channel_id + * @memberof ibc.core.channel.v1.IdentifiedChannel + * @instance + */ + IdentifiedChannel.prototype.channel_id = ""; + + /** + * Encodes the specified IdentifiedChannel message. Does not implicitly {@link ibc.core.channel.v1.IdentifiedChannel.verify|verify} messages. * @function encode - * @memberof ibc.core.channel.v1.MsgChannelCloseInit + * @memberof ibc.core.channel.v1.IdentifiedChannel * @static - * @param {ibc.core.channel.v1.IMsgChannelCloseInit} message MsgChannelCloseInit message or plain object to encode + * @param {ibc.core.channel.v1.IIdentifiedChannel} message IdentifiedChannel message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgChannelCloseInit.encode = function encode(message, writer) { + IdentifiedChannel.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.state); + if (message.ordering != null && Object.hasOwnProperty.call(message, "ordering")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.ordering); + if (message.counterparty != null && Object.hasOwnProperty.call(message, "counterparty")) + $root.ibc.core.channel.v1.Counterparty.encode(message.counterparty, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.connection_hops != null && message.connection_hops.length) + for (let i = 0; i < message.connection_hops.length; ++i) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.connection_hops[i]); + if (message.version != null && Object.hasOwnProperty.call(message, "version")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.version); if (message.port_id != null && Object.hasOwnProperty.call(message, "port_id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.port_id); + writer.uint32(/* id 6, wireType 2 =*/50).string(message.port_id); if (message.channel_id != null && Object.hasOwnProperty.call(message, "channel_id")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.channel_id); - if (message.signer != null && Object.hasOwnProperty.call(message, "signer")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.signer); + writer.uint32(/* id 7, wireType 2 =*/58).string(message.channel_id); return writer; }; /** - * Encodes the specified MsgChannelCloseInit message, length delimited. Does not implicitly {@link ibc.core.channel.v1.MsgChannelCloseInit.verify|verify} messages. + * Encodes the specified IdentifiedChannel message, length delimited. Does not implicitly {@link ibc.core.channel.v1.IdentifiedChannel.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.channel.v1.MsgChannelCloseInit + * @memberof ibc.core.channel.v1.IdentifiedChannel * @static - * @param {ibc.core.channel.v1.IMsgChannelCloseInit} message MsgChannelCloseInit message or plain object to encode + * @param {ibc.core.channel.v1.IIdentifiedChannel} message IdentifiedChannel message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgChannelCloseInit.encodeDelimited = function encodeDelimited(message, writer) { + IdentifiedChannel.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MsgChannelCloseInit message from the specified reader or buffer. + * Decodes an IdentifiedChannel message from the specified reader or buffer. * @function decode - * @memberof ibc.core.channel.v1.MsgChannelCloseInit + * @memberof ibc.core.channel.v1.IdentifiedChannel * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.channel.v1.MsgChannelCloseInit} MsgChannelCloseInit + * @returns {ibc.core.channel.v1.IdentifiedChannel} IdentifiedChannel * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgChannelCloseInit.decode = function decode(reader, length) { + IdentifiedChannel.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.MsgChannelCloseInit(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.IdentifiedChannel(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.port_id = reader.string(); + message.state = reader.int32(); break; case 2: - message.channel_id = reader.string(); + message.ordering = reader.int32(); break; case 3: - message.signer = reader.string(); + message.counterparty = $root.ibc.core.channel.v1.Counterparty.decode(reader, reader.uint32()); + break; + case 4: + if (!(message.connection_hops && message.connection_hops.length)) + message.connection_hops = []; + message.connection_hops.push(reader.string()); + break; + case 5: + message.version = reader.string(); + break; + case 6: + message.port_id = reader.string(); + break; + case 7: + message.channel_id = reader.string(); break; default: reader.skipType(tag & 7); @@ -38528,123 +45156,257 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a MsgChannelCloseInit message from the specified reader or buffer, length delimited. + * Decodes an IdentifiedChannel message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.channel.v1.MsgChannelCloseInit + * @memberof ibc.core.channel.v1.IdentifiedChannel * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.channel.v1.MsgChannelCloseInit} MsgChannelCloseInit + * @returns {ibc.core.channel.v1.IdentifiedChannel} IdentifiedChannel * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgChannelCloseInit.decodeDelimited = function decodeDelimited(reader) { + IdentifiedChannel.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MsgChannelCloseInit message. + * Verifies an IdentifiedChannel message. * @function verify - * @memberof ibc.core.channel.v1.MsgChannelCloseInit + * @memberof ibc.core.channel.v1.IdentifiedChannel * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MsgChannelCloseInit.verify = function verify(message) { + IdentifiedChannel.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + break; + } + if (message.ordering != null && message.hasOwnProperty("ordering")) + switch (message.ordering) { + default: + return "ordering: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.counterparty != null && message.hasOwnProperty("counterparty")) { + let error = $root.ibc.core.channel.v1.Counterparty.verify(message.counterparty); + if (error) + return "counterparty." + error; + } + if (message.connection_hops != null && message.hasOwnProperty("connection_hops")) { + if (!Array.isArray(message.connection_hops)) + return "connection_hops: array expected"; + for (let i = 0; i < message.connection_hops.length; ++i) + if (!$util.isString(message.connection_hops[i])) + return "connection_hops: string[] expected"; + } + if (message.version != null && message.hasOwnProperty("version")) + if (!$util.isString(message.version)) + return "version: string expected"; if (message.port_id != null && message.hasOwnProperty("port_id")) if (!$util.isString(message.port_id)) return "port_id: string expected"; if (message.channel_id != null && message.hasOwnProperty("channel_id")) if (!$util.isString(message.channel_id)) return "channel_id: string expected"; - if (message.signer != null && message.hasOwnProperty("signer")) - if (!$util.isString(message.signer)) - return "signer: string expected"; return null; }; /** - * Creates a MsgChannelCloseInit message from a plain object. Also converts values to their respective internal types. + * Creates an IdentifiedChannel message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.channel.v1.MsgChannelCloseInit + * @memberof ibc.core.channel.v1.IdentifiedChannel * @static * @param {Object.} object Plain object - * @returns {ibc.core.channel.v1.MsgChannelCloseInit} MsgChannelCloseInit + * @returns {ibc.core.channel.v1.IdentifiedChannel} IdentifiedChannel */ - MsgChannelCloseInit.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.channel.v1.MsgChannelCloseInit) + IdentifiedChannel.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.channel.v1.IdentifiedChannel) return object; - let message = new $root.ibc.core.channel.v1.MsgChannelCloseInit(); + let message = new $root.ibc.core.channel.v1.IdentifiedChannel(); + switch (object.state) { + case "STATE_UNINITIALIZED_UNSPECIFIED": + case 0: + message.state = 0; + break; + case "STATE_INIT": + case 1: + message.state = 1; + break; + case "STATE_TRYOPEN": + case 2: + message.state = 2; + break; + case "STATE_OPEN": + case 3: + message.state = 3; + break; + case "STATE_CLOSED": + case 4: + message.state = 4; + break; + } + switch (object.ordering) { + case "ORDER_NONE_UNSPECIFIED": + case 0: + message.ordering = 0; + break; + case "ORDER_UNORDERED": + case 1: + message.ordering = 1; + break; + case "ORDER_ORDERED": + case 2: + message.ordering = 2; + break; + } + if (object.counterparty != null) { + if (typeof object.counterparty !== "object") + throw TypeError(".ibc.core.channel.v1.IdentifiedChannel.counterparty: object expected"); + message.counterparty = $root.ibc.core.channel.v1.Counterparty.fromObject(object.counterparty); + } + if (object.connection_hops) { + if (!Array.isArray(object.connection_hops)) + throw TypeError(".ibc.core.channel.v1.IdentifiedChannel.connection_hops: array expected"); + message.connection_hops = []; + for (let i = 0; i < object.connection_hops.length; ++i) + message.connection_hops[i] = String(object.connection_hops[i]); + } + if (object.version != null) + message.version = String(object.version); if (object.port_id != null) message.port_id = String(object.port_id); if (object.channel_id != null) message.channel_id = String(object.channel_id); - if (object.signer != null) - message.signer = String(object.signer); return message; }; /** - * Creates a plain object from a MsgChannelCloseInit message. Also converts values to other types if specified. + * Creates a plain object from an IdentifiedChannel message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.channel.v1.MsgChannelCloseInit + * @memberof ibc.core.channel.v1.IdentifiedChannel * @static - * @param {ibc.core.channel.v1.MsgChannelCloseInit} message MsgChannelCloseInit + * @param {ibc.core.channel.v1.IdentifiedChannel} message IdentifiedChannel * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MsgChannelCloseInit.toObject = function toObject(message, options) { + IdentifiedChannel.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; + if (options.arrays || options.defaults) + object.connection_hops = []; if (options.defaults) { + object.state = options.enums === String ? "STATE_UNINITIALIZED_UNSPECIFIED" : 0; + object.ordering = options.enums === String ? "ORDER_NONE_UNSPECIFIED" : 0; + object.counterparty = null; + object.version = ""; object.port_id = ""; object.channel_id = ""; - object.signer = ""; } + if (message.state != null && message.hasOwnProperty("state")) + object.state = options.enums === String ? $root.ibc.core.channel.v1.State[message.state] : message.state; + if (message.ordering != null && message.hasOwnProperty("ordering")) + object.ordering = options.enums === String ? $root.ibc.core.channel.v1.Order[message.ordering] : message.ordering; + if (message.counterparty != null && message.hasOwnProperty("counterparty")) + object.counterparty = $root.ibc.core.channel.v1.Counterparty.toObject(message.counterparty, options); + if (message.connection_hops && message.connection_hops.length) { + object.connection_hops = []; + for (let j = 0; j < message.connection_hops.length; ++j) + object.connection_hops[j] = message.connection_hops[j]; + } + if (message.version != null && message.hasOwnProperty("version")) + object.version = message.version; if (message.port_id != null && message.hasOwnProperty("port_id")) object.port_id = message.port_id; if (message.channel_id != null && message.hasOwnProperty("channel_id")) object.channel_id = message.channel_id; - if (message.signer != null && message.hasOwnProperty("signer")) - object.signer = message.signer; return object; }; /** - * Converts this MsgChannelCloseInit to JSON. + * Converts this IdentifiedChannel to JSON. * @function toJSON - * @memberof ibc.core.channel.v1.MsgChannelCloseInit + * @memberof ibc.core.channel.v1.IdentifiedChannel * @instance * @returns {Object.} JSON object */ - MsgChannelCloseInit.prototype.toJSON = function toJSON() { + IdentifiedChannel.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MsgChannelCloseInit; + return IdentifiedChannel; })(); - v1.MsgChannelCloseInitResponse = (function() { + /** + * State enum. + * @name ibc.core.channel.v1.State + * @enum {number} + * @property {number} STATE_UNINITIALIZED_UNSPECIFIED=0 STATE_UNINITIALIZED_UNSPECIFIED value + * @property {number} STATE_INIT=1 STATE_INIT value + * @property {number} STATE_TRYOPEN=2 STATE_TRYOPEN value + * @property {number} STATE_OPEN=3 STATE_OPEN value + * @property {number} STATE_CLOSED=4 STATE_CLOSED value + */ + v1.State = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "STATE_UNINITIALIZED_UNSPECIFIED"] = 0; + values[valuesById[1] = "STATE_INIT"] = 1; + values[valuesById[2] = "STATE_TRYOPEN"] = 2; + values[valuesById[3] = "STATE_OPEN"] = 3; + values[valuesById[4] = "STATE_CLOSED"] = 4; + return values; + })(); + + /** + * Order enum. + * @name ibc.core.channel.v1.Order + * @enum {number} + * @property {number} ORDER_NONE_UNSPECIFIED=0 ORDER_NONE_UNSPECIFIED value + * @property {number} ORDER_UNORDERED=1 ORDER_UNORDERED value + * @property {number} ORDER_ORDERED=2 ORDER_ORDERED value + */ + v1.Order = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "ORDER_NONE_UNSPECIFIED"] = 0; + values[valuesById[1] = "ORDER_UNORDERED"] = 1; + values[valuesById[2] = "ORDER_ORDERED"] = 2; + return values; + })(); + + v1.Counterparty = (function() { /** - * Properties of a MsgChannelCloseInitResponse. + * Properties of a Counterparty. * @memberof ibc.core.channel.v1 - * @interface IMsgChannelCloseInitResponse + * @interface ICounterparty + * @property {string|null} [port_id] Counterparty port_id + * @property {string|null} [channel_id] Counterparty channel_id */ /** - * Constructs a new MsgChannelCloseInitResponse. + * Constructs a new Counterparty. * @memberof ibc.core.channel.v1 - * @classdesc Represents a MsgChannelCloseInitResponse. - * @implements IMsgChannelCloseInitResponse + * @classdesc Represents a Counterparty. + * @implements ICounterparty * @constructor - * @param {ibc.core.channel.v1.IMsgChannelCloseInitResponse=} [properties] Properties to set + * @param {ibc.core.channel.v1.ICounterparty=} [properties] Properties to set */ - function MsgChannelCloseInitResponse(properties) { + function Counterparty(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -38652,51 +45414,77 @@ export const ibc = $root.ibc = (() => { } /** - * Encodes the specified MsgChannelCloseInitResponse message. Does not implicitly {@link ibc.core.channel.v1.MsgChannelCloseInitResponse.verify|verify} messages. + * Counterparty port_id. + * @member {string} port_id + * @memberof ibc.core.channel.v1.Counterparty + * @instance + */ + Counterparty.prototype.port_id = ""; + + /** + * Counterparty channel_id. + * @member {string} channel_id + * @memberof ibc.core.channel.v1.Counterparty + * @instance + */ + Counterparty.prototype.channel_id = ""; + + /** + * Encodes the specified Counterparty message. Does not implicitly {@link ibc.core.channel.v1.Counterparty.verify|verify} messages. * @function encode - * @memberof ibc.core.channel.v1.MsgChannelCloseInitResponse + * @memberof ibc.core.channel.v1.Counterparty * @static - * @param {ibc.core.channel.v1.IMsgChannelCloseInitResponse} message MsgChannelCloseInitResponse message or plain object to encode + * @param {ibc.core.channel.v1.ICounterparty} message Counterparty message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgChannelCloseInitResponse.encode = function encode(message, writer) { + Counterparty.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.port_id != null && Object.hasOwnProperty.call(message, "port_id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.port_id); + if (message.channel_id != null && Object.hasOwnProperty.call(message, "channel_id")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.channel_id); return writer; }; /** - * Encodes the specified MsgChannelCloseInitResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.MsgChannelCloseInitResponse.verify|verify} messages. + * Encodes the specified Counterparty message, length delimited. Does not implicitly {@link ibc.core.channel.v1.Counterparty.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.channel.v1.MsgChannelCloseInitResponse + * @memberof ibc.core.channel.v1.Counterparty * @static - * @param {ibc.core.channel.v1.IMsgChannelCloseInitResponse} message MsgChannelCloseInitResponse message or plain object to encode + * @param {ibc.core.channel.v1.ICounterparty} message Counterparty message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgChannelCloseInitResponse.encodeDelimited = function encodeDelimited(message, writer) { + Counterparty.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MsgChannelCloseInitResponse message from the specified reader or buffer. + * Decodes a Counterparty message from the specified reader or buffer. * @function decode - * @memberof ibc.core.channel.v1.MsgChannelCloseInitResponse + * @memberof ibc.core.channel.v1.Counterparty * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.channel.v1.MsgChannelCloseInitResponse} MsgChannelCloseInitResponse + * @returns {ibc.core.channel.v1.Counterparty} Counterparty * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgChannelCloseInitResponse.decode = function decode(reader, length) { + Counterparty.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.MsgChannelCloseInitResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.Counterparty(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { + case 1: + message.port_id = reader.string(); + break; + case 2: + message.channel_id = reader.string(); + break; default: reader.skipType(tag & 7); break; @@ -38706,98 +45494,123 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a MsgChannelCloseInitResponse message from the specified reader or buffer, length delimited. + * Decodes a Counterparty message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.channel.v1.MsgChannelCloseInitResponse + * @memberof ibc.core.channel.v1.Counterparty * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.channel.v1.MsgChannelCloseInitResponse} MsgChannelCloseInitResponse + * @returns {ibc.core.channel.v1.Counterparty} Counterparty * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgChannelCloseInitResponse.decodeDelimited = function decodeDelimited(reader) { + Counterparty.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MsgChannelCloseInitResponse message. + * Verifies a Counterparty message. * @function verify - * @memberof ibc.core.channel.v1.MsgChannelCloseInitResponse + * @memberof ibc.core.channel.v1.Counterparty * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MsgChannelCloseInitResponse.verify = function verify(message) { + Counterparty.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.port_id != null && message.hasOwnProperty("port_id")) + if (!$util.isString(message.port_id)) + return "port_id: string expected"; + if (message.channel_id != null && message.hasOwnProperty("channel_id")) + if (!$util.isString(message.channel_id)) + return "channel_id: string expected"; return null; }; /** - * Creates a MsgChannelCloseInitResponse message from a plain object. Also converts values to their respective internal types. + * Creates a Counterparty message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.channel.v1.MsgChannelCloseInitResponse + * @memberof ibc.core.channel.v1.Counterparty * @static * @param {Object.} object Plain object - * @returns {ibc.core.channel.v1.MsgChannelCloseInitResponse} MsgChannelCloseInitResponse + * @returns {ibc.core.channel.v1.Counterparty} Counterparty */ - MsgChannelCloseInitResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.channel.v1.MsgChannelCloseInitResponse) + Counterparty.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.channel.v1.Counterparty) return object; - return new $root.ibc.core.channel.v1.MsgChannelCloseInitResponse(); + let message = new $root.ibc.core.channel.v1.Counterparty(); + if (object.port_id != null) + message.port_id = String(object.port_id); + if (object.channel_id != null) + message.channel_id = String(object.channel_id); + return message; }; /** - * Creates a plain object from a MsgChannelCloseInitResponse message. Also converts values to other types if specified. + * Creates a plain object from a Counterparty message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.channel.v1.MsgChannelCloseInitResponse + * @memberof ibc.core.channel.v1.Counterparty * @static - * @param {ibc.core.channel.v1.MsgChannelCloseInitResponse} message MsgChannelCloseInitResponse + * @param {ibc.core.channel.v1.Counterparty} message Counterparty * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MsgChannelCloseInitResponse.toObject = function toObject() { - return {}; + Counterparty.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + object.port_id = ""; + object.channel_id = ""; + } + if (message.port_id != null && message.hasOwnProperty("port_id")) + object.port_id = message.port_id; + if (message.channel_id != null && message.hasOwnProperty("channel_id")) + object.channel_id = message.channel_id; + return object; }; /** - * Converts this MsgChannelCloseInitResponse to JSON. + * Converts this Counterparty to JSON. * @function toJSON - * @memberof ibc.core.channel.v1.MsgChannelCloseInitResponse + * @memberof ibc.core.channel.v1.Counterparty * @instance * @returns {Object.} JSON object */ - MsgChannelCloseInitResponse.prototype.toJSON = function toJSON() { + Counterparty.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MsgChannelCloseInitResponse; + return Counterparty; })(); - v1.MsgChannelCloseConfirm = (function() { + v1.Packet = (function() { /** - * Properties of a MsgChannelCloseConfirm. + * Properties of a Packet. * @memberof ibc.core.channel.v1 - * @interface IMsgChannelCloseConfirm - * @property {string|null} [port_id] MsgChannelCloseConfirm port_id - * @property {string|null} [channel_id] MsgChannelCloseConfirm channel_id - * @property {Uint8Array|null} [proof_init] MsgChannelCloseConfirm proof_init - * @property {ibc.core.client.v1.IHeight|null} [proof_height] MsgChannelCloseConfirm proof_height - * @property {string|null} [signer] MsgChannelCloseConfirm signer + * @interface IPacket + * @property {Long|null} [sequence] Packet sequence + * @property {string|null} [source_port] Packet source_port + * @property {string|null} [source_channel] Packet source_channel + * @property {string|null} [destination_port] Packet destination_port + * @property {string|null} [destination_channel] Packet destination_channel + * @property {Uint8Array|null} [data] Packet data + * @property {ibc.core.client.v1.IHeight|null} [timeout_height] Packet timeout_height + * @property {Long|null} [timeout_timestamp] Packet timeout_timestamp */ /** - * Constructs a new MsgChannelCloseConfirm. + * Constructs a new Packet. * @memberof ibc.core.channel.v1 - * @classdesc Represents a MsgChannelCloseConfirm. - * @implements IMsgChannelCloseConfirm + * @classdesc Represents a Packet. + * @implements IPacket * @constructor - * @param {ibc.core.channel.v1.IMsgChannelCloseConfirm=} [properties] Properties to set + * @param {ibc.core.channel.v1.IPacket=} [properties] Properties to set */ - function MsgChannelCloseConfirm(properties) { + function Packet(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -38805,115 +45618,154 @@ export const ibc = $root.ibc = (() => { } /** - * MsgChannelCloseConfirm port_id. - * @member {string} port_id - * @memberof ibc.core.channel.v1.MsgChannelCloseConfirm + * Packet sequence. + * @member {Long} sequence + * @memberof ibc.core.channel.v1.Packet * @instance */ - MsgChannelCloseConfirm.prototype.port_id = ""; + Packet.prototype.sequence = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** - * MsgChannelCloseConfirm channel_id. - * @member {string} channel_id - * @memberof ibc.core.channel.v1.MsgChannelCloseConfirm + * Packet source_port. + * @member {string} source_port + * @memberof ibc.core.channel.v1.Packet * @instance */ - MsgChannelCloseConfirm.prototype.channel_id = ""; + Packet.prototype.source_port = ""; /** - * MsgChannelCloseConfirm proof_init. - * @member {Uint8Array} proof_init - * @memberof ibc.core.channel.v1.MsgChannelCloseConfirm + * Packet source_channel. + * @member {string} source_channel + * @memberof ibc.core.channel.v1.Packet * @instance */ - MsgChannelCloseConfirm.prototype.proof_init = $util.newBuffer([]); + Packet.prototype.source_channel = ""; /** - * MsgChannelCloseConfirm proof_height. - * @member {ibc.core.client.v1.IHeight|null|undefined} proof_height - * @memberof ibc.core.channel.v1.MsgChannelCloseConfirm + * Packet destination_port. + * @member {string} destination_port + * @memberof ibc.core.channel.v1.Packet * @instance */ - MsgChannelCloseConfirm.prototype.proof_height = null; + Packet.prototype.destination_port = ""; /** - * MsgChannelCloseConfirm signer. - * @member {string} signer - * @memberof ibc.core.channel.v1.MsgChannelCloseConfirm + * Packet destination_channel. + * @member {string} destination_channel + * @memberof ibc.core.channel.v1.Packet * @instance */ - MsgChannelCloseConfirm.prototype.signer = ""; + Packet.prototype.destination_channel = ""; /** - * Encodes the specified MsgChannelCloseConfirm message. Does not implicitly {@link ibc.core.channel.v1.MsgChannelCloseConfirm.verify|verify} messages. + * Packet data. + * @member {Uint8Array} data + * @memberof ibc.core.channel.v1.Packet + * @instance + */ + Packet.prototype.data = $util.newBuffer([]); + + /** + * Packet timeout_height. + * @member {ibc.core.client.v1.IHeight|null|undefined} timeout_height + * @memberof ibc.core.channel.v1.Packet + * @instance + */ + Packet.prototype.timeout_height = null; + + /** + * Packet timeout_timestamp. + * @member {Long} timeout_timestamp + * @memberof ibc.core.channel.v1.Packet + * @instance + */ + Packet.prototype.timeout_timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + + /** + * Encodes the specified Packet message. Does not implicitly {@link ibc.core.channel.v1.Packet.verify|verify} messages. * @function encode - * @memberof ibc.core.channel.v1.MsgChannelCloseConfirm + * @memberof ibc.core.channel.v1.Packet * @static - * @param {ibc.core.channel.v1.IMsgChannelCloseConfirm} message MsgChannelCloseConfirm message or plain object to encode + * @param {ibc.core.channel.v1.IPacket} message Packet message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgChannelCloseConfirm.encode = function encode(message, writer) { + Packet.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.port_id != null && Object.hasOwnProperty.call(message, "port_id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.port_id); - if (message.channel_id != null && Object.hasOwnProperty.call(message, "channel_id")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.channel_id); - if (message.proof_init != null && Object.hasOwnProperty.call(message, "proof_init")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.proof_init); - if (message.proof_height != null && Object.hasOwnProperty.call(message, "proof_height")) - $root.ibc.core.client.v1.Height.encode(message.proof_height, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.signer != null && Object.hasOwnProperty.call(message, "signer")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.signer); + if (message.sequence != null && Object.hasOwnProperty.call(message, "sequence")) + writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.sequence); + if (message.source_port != null && Object.hasOwnProperty.call(message, "source_port")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.source_port); + if (message.source_channel != null && Object.hasOwnProperty.call(message, "source_channel")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.source_channel); + if (message.destination_port != null && Object.hasOwnProperty.call(message, "destination_port")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.destination_port); + if (message.destination_channel != null && Object.hasOwnProperty.call(message, "destination_channel")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.destination_channel); + if (message.data != null && Object.hasOwnProperty.call(message, "data")) + writer.uint32(/* id 6, wireType 2 =*/50).bytes(message.data); + if (message.timeout_height != null && Object.hasOwnProperty.call(message, "timeout_height")) + $root.ibc.core.client.v1.Height.encode(message.timeout_height, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.timeout_timestamp != null && Object.hasOwnProperty.call(message, "timeout_timestamp")) + writer.uint32(/* id 8, wireType 0 =*/64).uint64(message.timeout_timestamp); return writer; }; /** - * Encodes the specified MsgChannelCloseConfirm message, length delimited. Does not implicitly {@link ibc.core.channel.v1.MsgChannelCloseConfirm.verify|verify} messages. + * Encodes the specified Packet message, length delimited. Does not implicitly {@link ibc.core.channel.v1.Packet.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.channel.v1.MsgChannelCloseConfirm + * @memberof ibc.core.channel.v1.Packet * @static - * @param {ibc.core.channel.v1.IMsgChannelCloseConfirm} message MsgChannelCloseConfirm message or plain object to encode + * @param {ibc.core.channel.v1.IPacket} message Packet message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgChannelCloseConfirm.encodeDelimited = function encodeDelimited(message, writer) { + Packet.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MsgChannelCloseConfirm message from the specified reader or buffer. + * Decodes a Packet message from the specified reader or buffer. * @function decode - * @memberof ibc.core.channel.v1.MsgChannelCloseConfirm + * @memberof ibc.core.channel.v1.Packet * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.channel.v1.MsgChannelCloseConfirm} MsgChannelCloseConfirm + * @returns {ibc.core.channel.v1.Packet} Packet * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgChannelCloseConfirm.decode = function decode(reader, length) { + Packet.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.MsgChannelCloseConfirm(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.Packet(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.port_id = reader.string(); + message.sequence = reader.uint64(); break; case 2: - message.channel_id = reader.string(); + message.source_port = reader.string(); break; case 3: - message.proof_init = reader.bytes(); + message.source_channel = reader.string(); break; case 4: - message.proof_height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); + message.destination_port = reader.string(); break; case 5: - message.signer = reader.string(); + message.destination_channel = reader.string(); + break; + case 6: + message.data = reader.bytes(); + break; + case 7: + message.timeout_height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); + break; + case 8: + message.timeout_timestamp = reader.uint64(); break; default: reader.skipType(tag & 7); @@ -38924,153 +45776,209 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a MsgChannelCloseConfirm message from the specified reader or buffer, length delimited. + * Decodes a Packet message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.channel.v1.MsgChannelCloseConfirm + * @memberof ibc.core.channel.v1.Packet * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.channel.v1.MsgChannelCloseConfirm} MsgChannelCloseConfirm + * @returns {ibc.core.channel.v1.Packet} Packet * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgChannelCloseConfirm.decodeDelimited = function decodeDelimited(reader) { + Packet.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MsgChannelCloseConfirm message. + * Verifies a Packet message. * @function verify - * @memberof ibc.core.channel.v1.MsgChannelCloseConfirm + * @memberof ibc.core.channel.v1.Packet * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MsgChannelCloseConfirm.verify = function verify(message) { + Packet.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.port_id != null && message.hasOwnProperty("port_id")) - if (!$util.isString(message.port_id)) - return "port_id: string expected"; - if (message.channel_id != null && message.hasOwnProperty("channel_id")) - if (!$util.isString(message.channel_id)) - return "channel_id: string expected"; - if (message.proof_init != null && message.hasOwnProperty("proof_init")) - if (!(message.proof_init && typeof message.proof_init.length === "number" || $util.isString(message.proof_init))) - return "proof_init: buffer expected"; - if (message.proof_height != null && message.hasOwnProperty("proof_height")) { - let error = $root.ibc.core.client.v1.Height.verify(message.proof_height); + if (message.sequence != null && message.hasOwnProperty("sequence")) + if (!$util.isInteger(message.sequence) && !(message.sequence && $util.isInteger(message.sequence.low) && $util.isInteger(message.sequence.high))) + return "sequence: integer|Long expected"; + if (message.source_port != null && message.hasOwnProperty("source_port")) + if (!$util.isString(message.source_port)) + return "source_port: string expected"; + if (message.source_channel != null && message.hasOwnProperty("source_channel")) + if (!$util.isString(message.source_channel)) + return "source_channel: string expected"; + if (message.destination_port != null && message.hasOwnProperty("destination_port")) + if (!$util.isString(message.destination_port)) + return "destination_port: string expected"; + if (message.destination_channel != null && message.hasOwnProperty("destination_channel")) + if (!$util.isString(message.destination_channel)) + return "destination_channel: string expected"; + if (message.data != null && message.hasOwnProperty("data")) + if (!(message.data && typeof message.data.length === "number" || $util.isString(message.data))) + return "data: buffer expected"; + if (message.timeout_height != null && message.hasOwnProperty("timeout_height")) { + let error = $root.ibc.core.client.v1.Height.verify(message.timeout_height); if (error) - return "proof_height." + error; + return "timeout_height." + error; } - if (message.signer != null && message.hasOwnProperty("signer")) - if (!$util.isString(message.signer)) - return "signer: string expected"; + if (message.timeout_timestamp != null && message.hasOwnProperty("timeout_timestamp")) + if (!$util.isInteger(message.timeout_timestamp) && !(message.timeout_timestamp && $util.isInteger(message.timeout_timestamp.low) && $util.isInteger(message.timeout_timestamp.high))) + return "timeout_timestamp: integer|Long expected"; return null; }; /** - * Creates a MsgChannelCloseConfirm message from a plain object. Also converts values to their respective internal types. + * Creates a Packet message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.channel.v1.MsgChannelCloseConfirm + * @memberof ibc.core.channel.v1.Packet * @static * @param {Object.} object Plain object - * @returns {ibc.core.channel.v1.MsgChannelCloseConfirm} MsgChannelCloseConfirm + * @returns {ibc.core.channel.v1.Packet} Packet */ - MsgChannelCloseConfirm.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.channel.v1.MsgChannelCloseConfirm) + Packet.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.channel.v1.Packet) return object; - let message = new $root.ibc.core.channel.v1.MsgChannelCloseConfirm(); - if (object.port_id != null) - message.port_id = String(object.port_id); - if (object.channel_id != null) - message.channel_id = String(object.channel_id); - if (object.proof_init != null) - if (typeof object.proof_init === "string") - $util.base64.decode(object.proof_init, message.proof_init = $util.newBuffer($util.base64.length(object.proof_init)), 0); - else if (object.proof_init.length) - message.proof_init = object.proof_init; - if (object.proof_height != null) { - if (typeof object.proof_height !== "object") - throw TypeError(".ibc.core.channel.v1.MsgChannelCloseConfirm.proof_height: object expected"); - message.proof_height = $root.ibc.core.client.v1.Height.fromObject(object.proof_height); + let message = new $root.ibc.core.channel.v1.Packet(); + if (object.sequence != null) + if ($util.Long) + (message.sequence = $util.Long.fromValue(object.sequence)).unsigned = true; + else if (typeof object.sequence === "string") + message.sequence = parseInt(object.sequence, 10); + else if (typeof object.sequence === "number") + message.sequence = object.sequence; + else if (typeof object.sequence === "object") + message.sequence = new $util.LongBits(object.sequence.low >>> 0, object.sequence.high >>> 0).toNumber(true); + if (object.source_port != null) + message.source_port = String(object.source_port); + if (object.source_channel != null) + message.source_channel = String(object.source_channel); + if (object.destination_port != null) + message.destination_port = String(object.destination_port); + if (object.destination_channel != null) + message.destination_channel = String(object.destination_channel); + if (object.data != null) + if (typeof object.data === "string") + $util.base64.decode(object.data, message.data = $util.newBuffer($util.base64.length(object.data)), 0); + else if (object.data.length) + message.data = object.data; + if (object.timeout_height != null) { + if (typeof object.timeout_height !== "object") + throw TypeError(".ibc.core.channel.v1.Packet.timeout_height: object expected"); + message.timeout_height = $root.ibc.core.client.v1.Height.fromObject(object.timeout_height); } - if (object.signer != null) - message.signer = String(object.signer); + if (object.timeout_timestamp != null) + if ($util.Long) + (message.timeout_timestamp = $util.Long.fromValue(object.timeout_timestamp)).unsigned = true; + else if (typeof object.timeout_timestamp === "string") + message.timeout_timestamp = parseInt(object.timeout_timestamp, 10); + else if (typeof object.timeout_timestamp === "number") + message.timeout_timestamp = object.timeout_timestamp; + else if (typeof object.timeout_timestamp === "object") + message.timeout_timestamp = new $util.LongBits(object.timeout_timestamp.low >>> 0, object.timeout_timestamp.high >>> 0).toNumber(true); return message; }; /** - * Creates a plain object from a MsgChannelCloseConfirm message. Also converts values to other types if specified. + * Creates a plain object from a Packet message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.channel.v1.MsgChannelCloseConfirm + * @memberof ibc.core.channel.v1.Packet * @static - * @param {ibc.core.channel.v1.MsgChannelCloseConfirm} message MsgChannelCloseConfirm + * @param {ibc.core.channel.v1.Packet} message Packet * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MsgChannelCloseConfirm.toObject = function toObject(message, options) { + Packet.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - object.port_id = ""; - object.channel_id = ""; + if ($util.Long) { + let long = new $util.Long(0, 0, true); + object.sequence = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.sequence = options.longs === String ? "0" : 0; + object.source_port = ""; + object.source_channel = ""; + object.destination_port = ""; + object.destination_channel = ""; if (options.bytes === String) - object.proof_init = ""; + object.data = ""; else { - object.proof_init = []; + object.data = []; if (options.bytes !== Array) - object.proof_init = $util.newBuffer(object.proof_init); + object.data = $util.newBuffer(object.data); } - object.proof_height = null; - object.signer = ""; + object.timeout_height = null; + if ($util.Long) { + let long = new $util.Long(0, 0, true); + object.timeout_timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.timeout_timestamp = options.longs === String ? "0" : 0; } - if (message.port_id != null && message.hasOwnProperty("port_id")) - object.port_id = message.port_id; - if (message.channel_id != null && message.hasOwnProperty("channel_id")) - object.channel_id = message.channel_id; - if (message.proof_init != null && message.hasOwnProperty("proof_init")) - object.proof_init = options.bytes === String ? $util.base64.encode(message.proof_init, 0, message.proof_init.length) : options.bytes === Array ? Array.prototype.slice.call(message.proof_init) : message.proof_init; - if (message.proof_height != null && message.hasOwnProperty("proof_height")) - object.proof_height = $root.ibc.core.client.v1.Height.toObject(message.proof_height, options); - if (message.signer != null && message.hasOwnProperty("signer")) - object.signer = message.signer; + if (message.sequence != null && message.hasOwnProperty("sequence")) + if (typeof message.sequence === "number") + object.sequence = options.longs === String ? String(message.sequence) : message.sequence; + else + object.sequence = options.longs === String ? $util.Long.prototype.toString.call(message.sequence) : options.longs === Number ? new $util.LongBits(message.sequence.low >>> 0, message.sequence.high >>> 0).toNumber(true) : message.sequence; + if (message.source_port != null && message.hasOwnProperty("source_port")) + object.source_port = message.source_port; + if (message.source_channel != null && message.hasOwnProperty("source_channel")) + object.source_channel = message.source_channel; + if (message.destination_port != null && message.hasOwnProperty("destination_port")) + object.destination_port = message.destination_port; + if (message.destination_channel != null && message.hasOwnProperty("destination_channel")) + object.destination_channel = message.destination_channel; + if (message.data != null && message.hasOwnProperty("data")) + object.data = options.bytes === String ? $util.base64.encode(message.data, 0, message.data.length) : options.bytes === Array ? Array.prototype.slice.call(message.data) : message.data; + if (message.timeout_height != null && message.hasOwnProperty("timeout_height")) + object.timeout_height = $root.ibc.core.client.v1.Height.toObject(message.timeout_height, options); + if (message.timeout_timestamp != null && message.hasOwnProperty("timeout_timestamp")) + if (typeof message.timeout_timestamp === "number") + object.timeout_timestamp = options.longs === String ? String(message.timeout_timestamp) : message.timeout_timestamp; + else + object.timeout_timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timeout_timestamp) : options.longs === Number ? new $util.LongBits(message.timeout_timestamp.low >>> 0, message.timeout_timestamp.high >>> 0).toNumber(true) : message.timeout_timestamp; return object; }; /** - * Converts this MsgChannelCloseConfirm to JSON. + * Converts this Packet to JSON. * @function toJSON - * @memberof ibc.core.channel.v1.MsgChannelCloseConfirm + * @memberof ibc.core.channel.v1.Packet * @instance * @returns {Object.} JSON object */ - MsgChannelCloseConfirm.prototype.toJSON = function toJSON() { + Packet.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MsgChannelCloseConfirm; + return Packet; })(); - v1.MsgChannelCloseConfirmResponse = (function() { + v1.PacketState = (function() { /** - * Properties of a MsgChannelCloseConfirmResponse. + * Properties of a PacketState. * @memberof ibc.core.channel.v1 - * @interface IMsgChannelCloseConfirmResponse + * @interface IPacketState + * @property {string|null} [port_id] PacketState port_id + * @property {string|null} [channel_id] PacketState channel_id + * @property {Long|null} [sequence] PacketState sequence + * @property {Uint8Array|null} [data] PacketState data */ /** - * Constructs a new MsgChannelCloseConfirmResponse. + * Constructs a new PacketState. * @memberof ibc.core.channel.v1 - * @classdesc Represents a MsgChannelCloseConfirmResponse. - * @implements IMsgChannelCloseConfirmResponse + * @classdesc Represents a PacketState. + * @implements IPacketState * @constructor - * @param {ibc.core.channel.v1.IMsgChannelCloseConfirmResponse=} [properties] Properties to set + * @param {ibc.core.channel.v1.IPacketState=} [properties] Properties to set */ - function MsgChannelCloseConfirmResponse(properties) { + function PacketState(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -39078,51 +45986,103 @@ export const ibc = $root.ibc = (() => { } /** - * Encodes the specified MsgChannelCloseConfirmResponse message. Does not implicitly {@link ibc.core.channel.v1.MsgChannelCloseConfirmResponse.verify|verify} messages. + * PacketState port_id. + * @member {string} port_id + * @memberof ibc.core.channel.v1.PacketState + * @instance + */ + PacketState.prototype.port_id = ""; + + /** + * PacketState channel_id. + * @member {string} channel_id + * @memberof ibc.core.channel.v1.PacketState + * @instance + */ + PacketState.prototype.channel_id = ""; + + /** + * PacketState sequence. + * @member {Long} sequence + * @memberof ibc.core.channel.v1.PacketState + * @instance + */ + PacketState.prototype.sequence = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + + /** + * PacketState data. + * @member {Uint8Array} data + * @memberof ibc.core.channel.v1.PacketState + * @instance + */ + PacketState.prototype.data = $util.newBuffer([]); + + /** + * Encodes the specified PacketState message. Does not implicitly {@link ibc.core.channel.v1.PacketState.verify|verify} messages. * @function encode - * @memberof ibc.core.channel.v1.MsgChannelCloseConfirmResponse + * @memberof ibc.core.channel.v1.PacketState * @static - * @param {ibc.core.channel.v1.IMsgChannelCloseConfirmResponse} message MsgChannelCloseConfirmResponse message or plain object to encode + * @param {ibc.core.channel.v1.IPacketState} message PacketState message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgChannelCloseConfirmResponse.encode = function encode(message, writer) { + PacketState.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.port_id != null && Object.hasOwnProperty.call(message, "port_id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.port_id); + if (message.channel_id != null && Object.hasOwnProperty.call(message, "channel_id")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.channel_id); + if (message.sequence != null && Object.hasOwnProperty.call(message, "sequence")) + writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.sequence); + if (message.data != null && Object.hasOwnProperty.call(message, "data")) + writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.data); return writer; }; /** - * Encodes the specified MsgChannelCloseConfirmResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.MsgChannelCloseConfirmResponse.verify|verify} messages. + * Encodes the specified PacketState message, length delimited. Does not implicitly {@link ibc.core.channel.v1.PacketState.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.channel.v1.MsgChannelCloseConfirmResponse + * @memberof ibc.core.channel.v1.PacketState * @static - * @param {ibc.core.channel.v1.IMsgChannelCloseConfirmResponse} message MsgChannelCloseConfirmResponse message or plain object to encode + * @param {ibc.core.channel.v1.IPacketState} message PacketState message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgChannelCloseConfirmResponse.encodeDelimited = function encodeDelimited(message, writer) { + PacketState.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MsgChannelCloseConfirmResponse message from the specified reader or buffer. + * Decodes a PacketState message from the specified reader or buffer. * @function decode - * @memberof ibc.core.channel.v1.MsgChannelCloseConfirmResponse + * @memberof ibc.core.channel.v1.PacketState * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.channel.v1.MsgChannelCloseConfirmResponse} MsgChannelCloseConfirmResponse + * @returns {ibc.core.channel.v1.PacketState} PacketState * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgChannelCloseConfirmResponse.decode = function decode(reader, length) { + PacketState.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.MsgChannelCloseConfirmResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.PacketState(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { + case 1: + message.port_id = reader.string(); + break; + case 2: + message.channel_id = reader.string(); + break; + case 3: + message.sequence = reader.uint64(); + break; + case 4: + message.data = reader.bytes(); + break; default: reader.skipType(tag & 7); break; @@ -39132,97 +46092,157 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a MsgChannelCloseConfirmResponse message from the specified reader or buffer, length delimited. + * Decodes a PacketState message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.channel.v1.MsgChannelCloseConfirmResponse + * @memberof ibc.core.channel.v1.PacketState * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.channel.v1.MsgChannelCloseConfirmResponse} MsgChannelCloseConfirmResponse + * @returns {ibc.core.channel.v1.PacketState} PacketState * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgChannelCloseConfirmResponse.decodeDelimited = function decodeDelimited(reader) { + PacketState.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MsgChannelCloseConfirmResponse message. + * Verifies a PacketState message. * @function verify - * @memberof ibc.core.channel.v1.MsgChannelCloseConfirmResponse + * @memberof ibc.core.channel.v1.PacketState * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MsgChannelCloseConfirmResponse.verify = function verify(message) { + PacketState.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.port_id != null && message.hasOwnProperty("port_id")) + if (!$util.isString(message.port_id)) + return "port_id: string expected"; + if (message.channel_id != null && message.hasOwnProperty("channel_id")) + if (!$util.isString(message.channel_id)) + return "channel_id: string expected"; + if (message.sequence != null && message.hasOwnProperty("sequence")) + if (!$util.isInteger(message.sequence) && !(message.sequence && $util.isInteger(message.sequence.low) && $util.isInteger(message.sequence.high))) + return "sequence: integer|Long expected"; + if (message.data != null && message.hasOwnProperty("data")) + if (!(message.data && typeof message.data.length === "number" || $util.isString(message.data))) + return "data: buffer expected"; return null; }; /** - * Creates a MsgChannelCloseConfirmResponse message from a plain object. Also converts values to their respective internal types. + * Creates a PacketState message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.channel.v1.MsgChannelCloseConfirmResponse + * @memberof ibc.core.channel.v1.PacketState * @static * @param {Object.} object Plain object - * @returns {ibc.core.channel.v1.MsgChannelCloseConfirmResponse} MsgChannelCloseConfirmResponse + * @returns {ibc.core.channel.v1.PacketState} PacketState */ - MsgChannelCloseConfirmResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.channel.v1.MsgChannelCloseConfirmResponse) + PacketState.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.channel.v1.PacketState) return object; - return new $root.ibc.core.channel.v1.MsgChannelCloseConfirmResponse(); + let message = new $root.ibc.core.channel.v1.PacketState(); + if (object.port_id != null) + message.port_id = String(object.port_id); + if (object.channel_id != null) + message.channel_id = String(object.channel_id); + if (object.sequence != null) + if ($util.Long) + (message.sequence = $util.Long.fromValue(object.sequence)).unsigned = true; + else if (typeof object.sequence === "string") + message.sequence = parseInt(object.sequence, 10); + else if (typeof object.sequence === "number") + message.sequence = object.sequence; + else if (typeof object.sequence === "object") + message.sequence = new $util.LongBits(object.sequence.low >>> 0, object.sequence.high >>> 0).toNumber(true); + if (object.data != null) + if (typeof object.data === "string") + $util.base64.decode(object.data, message.data = $util.newBuffer($util.base64.length(object.data)), 0); + else if (object.data.length) + message.data = object.data; + return message; }; /** - * Creates a plain object from a MsgChannelCloseConfirmResponse message. Also converts values to other types if specified. + * Creates a plain object from a PacketState message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.channel.v1.MsgChannelCloseConfirmResponse + * @memberof ibc.core.channel.v1.PacketState * @static - * @param {ibc.core.channel.v1.MsgChannelCloseConfirmResponse} message MsgChannelCloseConfirmResponse + * @param {ibc.core.channel.v1.PacketState} message PacketState * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MsgChannelCloseConfirmResponse.toObject = function toObject() { - return {}; + PacketState.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + object.port_id = ""; + object.channel_id = ""; + if ($util.Long) { + let long = new $util.Long(0, 0, true); + object.sequence = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.sequence = options.longs === String ? "0" : 0; + if (options.bytes === String) + object.data = ""; + else { + object.data = []; + if (options.bytes !== Array) + object.data = $util.newBuffer(object.data); + } + } + if (message.port_id != null && message.hasOwnProperty("port_id")) + object.port_id = message.port_id; + if (message.channel_id != null && message.hasOwnProperty("channel_id")) + object.channel_id = message.channel_id; + if (message.sequence != null && message.hasOwnProperty("sequence")) + if (typeof message.sequence === "number") + object.sequence = options.longs === String ? String(message.sequence) : message.sequence; + else + object.sequence = options.longs === String ? $util.Long.prototype.toString.call(message.sequence) : options.longs === Number ? new $util.LongBits(message.sequence.low >>> 0, message.sequence.high >>> 0).toNumber(true) : message.sequence; + if (message.data != null && message.hasOwnProperty("data")) + object.data = options.bytes === String ? $util.base64.encode(message.data, 0, message.data.length) : options.bytes === Array ? Array.prototype.slice.call(message.data) : message.data; + return object; }; /** - * Converts this MsgChannelCloseConfirmResponse to JSON. + * Converts this PacketState to JSON. * @function toJSON - * @memberof ibc.core.channel.v1.MsgChannelCloseConfirmResponse + * @memberof ibc.core.channel.v1.PacketState * @instance * @returns {Object.} JSON object */ - MsgChannelCloseConfirmResponse.prototype.toJSON = function toJSON() { + PacketState.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MsgChannelCloseConfirmResponse; + return PacketState; })(); - v1.MsgRecvPacket = (function() { + v1.PacketId = (function() { /** - * Properties of a MsgRecvPacket. + * Properties of a PacketId. * @memberof ibc.core.channel.v1 - * @interface IMsgRecvPacket - * @property {ibc.core.channel.v1.IPacket|null} [packet] MsgRecvPacket packet - * @property {Uint8Array|null} [proof_commitment] MsgRecvPacket proof_commitment - * @property {ibc.core.client.v1.IHeight|null} [proof_height] MsgRecvPacket proof_height - * @property {string|null} [signer] MsgRecvPacket signer + * @interface IPacketId + * @property {string|null} [port_id] PacketId port_id + * @property {string|null} [channel_id] PacketId channel_id + * @property {Long|null} [sequence] PacketId sequence */ /** - * Constructs a new MsgRecvPacket. + * Constructs a new PacketId. * @memberof ibc.core.channel.v1 - * @classdesc Represents a MsgRecvPacket. - * @implements IMsgRecvPacket + * @classdesc Represents a PacketId. + * @implements IPacketId * @constructor - * @param {ibc.core.channel.v1.IMsgRecvPacket=} [properties] Properties to set + * @param {ibc.core.channel.v1.IPacketId=} [properties] Properties to set */ - function MsgRecvPacket(properties) { + function PacketId(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -39230,102 +46250,89 @@ export const ibc = $root.ibc = (() => { } /** - * MsgRecvPacket packet. - * @member {ibc.core.channel.v1.IPacket|null|undefined} packet - * @memberof ibc.core.channel.v1.MsgRecvPacket - * @instance - */ - MsgRecvPacket.prototype.packet = null; - - /** - * MsgRecvPacket proof_commitment. - * @member {Uint8Array} proof_commitment - * @memberof ibc.core.channel.v1.MsgRecvPacket + * PacketId port_id. + * @member {string} port_id + * @memberof ibc.core.channel.v1.PacketId * @instance */ - MsgRecvPacket.prototype.proof_commitment = $util.newBuffer([]); + PacketId.prototype.port_id = ""; /** - * MsgRecvPacket proof_height. - * @member {ibc.core.client.v1.IHeight|null|undefined} proof_height - * @memberof ibc.core.channel.v1.MsgRecvPacket + * PacketId channel_id. + * @member {string} channel_id + * @memberof ibc.core.channel.v1.PacketId * @instance */ - MsgRecvPacket.prototype.proof_height = null; + PacketId.prototype.channel_id = ""; /** - * MsgRecvPacket signer. - * @member {string} signer - * @memberof ibc.core.channel.v1.MsgRecvPacket + * PacketId sequence. + * @member {Long} sequence + * @memberof ibc.core.channel.v1.PacketId * @instance */ - MsgRecvPacket.prototype.signer = ""; + PacketId.prototype.sequence = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** - * Encodes the specified MsgRecvPacket message. Does not implicitly {@link ibc.core.channel.v1.MsgRecvPacket.verify|verify} messages. + * Encodes the specified PacketId message. Does not implicitly {@link ibc.core.channel.v1.PacketId.verify|verify} messages. * @function encode - * @memberof ibc.core.channel.v1.MsgRecvPacket + * @memberof ibc.core.channel.v1.PacketId * @static - * @param {ibc.core.channel.v1.IMsgRecvPacket} message MsgRecvPacket message or plain object to encode + * @param {ibc.core.channel.v1.IPacketId} message PacketId message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgRecvPacket.encode = function encode(message, writer) { + PacketId.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.packet != null && Object.hasOwnProperty.call(message, "packet")) - $root.ibc.core.channel.v1.Packet.encode(message.packet, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.proof_commitment != null && Object.hasOwnProperty.call(message, "proof_commitment")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.proof_commitment); - if (message.proof_height != null && Object.hasOwnProperty.call(message, "proof_height")) - $root.ibc.core.client.v1.Height.encode(message.proof_height, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.signer != null && Object.hasOwnProperty.call(message, "signer")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.signer); + if (message.port_id != null && Object.hasOwnProperty.call(message, "port_id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.port_id); + if (message.channel_id != null && Object.hasOwnProperty.call(message, "channel_id")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.channel_id); + if (message.sequence != null && Object.hasOwnProperty.call(message, "sequence")) + writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.sequence); return writer; }; /** - * Encodes the specified MsgRecvPacket message, length delimited. Does not implicitly {@link ibc.core.channel.v1.MsgRecvPacket.verify|verify} messages. + * Encodes the specified PacketId message, length delimited. Does not implicitly {@link ibc.core.channel.v1.PacketId.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.channel.v1.MsgRecvPacket + * @memberof ibc.core.channel.v1.PacketId * @static - * @param {ibc.core.channel.v1.IMsgRecvPacket} message MsgRecvPacket message or plain object to encode + * @param {ibc.core.channel.v1.IPacketId} message PacketId message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgRecvPacket.encodeDelimited = function encodeDelimited(message, writer) { + PacketId.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MsgRecvPacket message from the specified reader or buffer. + * Decodes a PacketId message from the specified reader or buffer. * @function decode - * @memberof ibc.core.channel.v1.MsgRecvPacket + * @memberof ibc.core.channel.v1.PacketId * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.channel.v1.MsgRecvPacket} MsgRecvPacket + * @returns {ibc.core.channel.v1.PacketId} PacketId * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgRecvPacket.decode = function decode(reader, length) { + PacketId.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.MsgRecvPacket(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.PacketId(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.packet = $root.ibc.core.channel.v1.Packet.decode(reader, reader.uint32()); + message.port_id = reader.string(); break; case 2: - message.proof_commitment = reader.bytes(); + message.channel_id = reader.string(); break; case 3: - message.proof_height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); - break; - case 4: - message.signer = reader.string(); + message.sequence = reader.uint64(); break; default: reader.skipType(tag & 7); @@ -39336,151 +46343,139 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a MsgRecvPacket message from the specified reader or buffer, length delimited. + * Decodes a PacketId message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.channel.v1.MsgRecvPacket + * @memberof ibc.core.channel.v1.PacketId * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.channel.v1.MsgRecvPacket} MsgRecvPacket + * @returns {ibc.core.channel.v1.PacketId} PacketId * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgRecvPacket.decodeDelimited = function decodeDelimited(reader) { + PacketId.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MsgRecvPacket message. + * Verifies a PacketId message. * @function verify - * @memberof ibc.core.channel.v1.MsgRecvPacket + * @memberof ibc.core.channel.v1.PacketId * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MsgRecvPacket.verify = function verify(message) { + PacketId.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.packet != null && message.hasOwnProperty("packet")) { - let error = $root.ibc.core.channel.v1.Packet.verify(message.packet); - if (error) - return "packet." + error; - } - if (message.proof_commitment != null && message.hasOwnProperty("proof_commitment")) - if (!(message.proof_commitment && typeof message.proof_commitment.length === "number" || $util.isString(message.proof_commitment))) - return "proof_commitment: buffer expected"; - if (message.proof_height != null && message.hasOwnProperty("proof_height")) { - let error = $root.ibc.core.client.v1.Height.verify(message.proof_height); - if (error) - return "proof_height." + error; - } - if (message.signer != null && message.hasOwnProperty("signer")) - if (!$util.isString(message.signer)) - return "signer: string expected"; + if (message.port_id != null && message.hasOwnProperty("port_id")) + if (!$util.isString(message.port_id)) + return "port_id: string expected"; + if (message.channel_id != null && message.hasOwnProperty("channel_id")) + if (!$util.isString(message.channel_id)) + return "channel_id: string expected"; + if (message.sequence != null && message.hasOwnProperty("sequence")) + if (!$util.isInteger(message.sequence) && !(message.sequence && $util.isInteger(message.sequence.low) && $util.isInteger(message.sequence.high))) + return "sequence: integer|Long expected"; return null; }; /** - * Creates a MsgRecvPacket message from a plain object. Also converts values to their respective internal types. + * Creates a PacketId message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.channel.v1.MsgRecvPacket + * @memberof ibc.core.channel.v1.PacketId * @static * @param {Object.} object Plain object - * @returns {ibc.core.channel.v1.MsgRecvPacket} MsgRecvPacket + * @returns {ibc.core.channel.v1.PacketId} PacketId */ - MsgRecvPacket.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.channel.v1.MsgRecvPacket) + PacketId.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.channel.v1.PacketId) return object; - let message = new $root.ibc.core.channel.v1.MsgRecvPacket(); - if (object.packet != null) { - if (typeof object.packet !== "object") - throw TypeError(".ibc.core.channel.v1.MsgRecvPacket.packet: object expected"); - message.packet = $root.ibc.core.channel.v1.Packet.fromObject(object.packet); - } - if (object.proof_commitment != null) - if (typeof object.proof_commitment === "string") - $util.base64.decode(object.proof_commitment, message.proof_commitment = $util.newBuffer($util.base64.length(object.proof_commitment)), 0); - else if (object.proof_commitment.length) - message.proof_commitment = object.proof_commitment; - if (object.proof_height != null) { - if (typeof object.proof_height !== "object") - throw TypeError(".ibc.core.channel.v1.MsgRecvPacket.proof_height: object expected"); - message.proof_height = $root.ibc.core.client.v1.Height.fromObject(object.proof_height); - } - if (object.signer != null) - message.signer = String(object.signer); + let message = new $root.ibc.core.channel.v1.PacketId(); + if (object.port_id != null) + message.port_id = String(object.port_id); + if (object.channel_id != null) + message.channel_id = String(object.channel_id); + if (object.sequence != null) + if ($util.Long) + (message.sequence = $util.Long.fromValue(object.sequence)).unsigned = true; + else if (typeof object.sequence === "string") + message.sequence = parseInt(object.sequence, 10); + else if (typeof object.sequence === "number") + message.sequence = object.sequence; + else if (typeof object.sequence === "object") + message.sequence = new $util.LongBits(object.sequence.low >>> 0, object.sequence.high >>> 0).toNumber(true); return message; }; /** - * Creates a plain object from a MsgRecvPacket message. Also converts values to other types if specified. + * Creates a plain object from a PacketId message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.channel.v1.MsgRecvPacket + * @memberof ibc.core.channel.v1.PacketId * @static - * @param {ibc.core.channel.v1.MsgRecvPacket} message MsgRecvPacket + * @param {ibc.core.channel.v1.PacketId} message PacketId * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MsgRecvPacket.toObject = function toObject(message, options) { + PacketId.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - object.packet = null; - if (options.bytes === String) - object.proof_commitment = ""; - else { - object.proof_commitment = []; - if (options.bytes !== Array) - object.proof_commitment = $util.newBuffer(object.proof_commitment); - } - object.proof_height = null; - object.signer = ""; + object.port_id = ""; + object.channel_id = ""; + if ($util.Long) { + let long = new $util.Long(0, 0, true); + object.sequence = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.sequence = options.longs === String ? "0" : 0; } - if (message.packet != null && message.hasOwnProperty("packet")) - object.packet = $root.ibc.core.channel.v1.Packet.toObject(message.packet, options); - if (message.proof_commitment != null && message.hasOwnProperty("proof_commitment")) - object.proof_commitment = options.bytes === String ? $util.base64.encode(message.proof_commitment, 0, message.proof_commitment.length) : options.bytes === Array ? Array.prototype.slice.call(message.proof_commitment) : message.proof_commitment; - if (message.proof_height != null && message.hasOwnProperty("proof_height")) - object.proof_height = $root.ibc.core.client.v1.Height.toObject(message.proof_height, options); - if (message.signer != null && message.hasOwnProperty("signer")) - object.signer = message.signer; + if (message.port_id != null && message.hasOwnProperty("port_id")) + object.port_id = message.port_id; + if (message.channel_id != null && message.hasOwnProperty("channel_id")) + object.channel_id = message.channel_id; + if (message.sequence != null && message.hasOwnProperty("sequence")) + if (typeof message.sequence === "number") + object.sequence = options.longs === String ? String(message.sequence) : message.sequence; + else + object.sequence = options.longs === String ? $util.Long.prototype.toString.call(message.sequence) : options.longs === Number ? new $util.LongBits(message.sequence.low >>> 0, message.sequence.high >>> 0).toNumber(true) : message.sequence; return object; }; /** - * Converts this MsgRecvPacket to JSON. + * Converts this PacketId to JSON. * @function toJSON - * @memberof ibc.core.channel.v1.MsgRecvPacket + * @memberof ibc.core.channel.v1.PacketId * @instance * @returns {Object.} JSON object */ - MsgRecvPacket.prototype.toJSON = function toJSON() { + PacketId.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MsgRecvPacket; + return PacketId; })(); - v1.MsgRecvPacketResponse = (function() { + v1.Acknowledgement = (function() { /** - * Properties of a MsgRecvPacketResponse. + * Properties of an Acknowledgement. * @memberof ibc.core.channel.v1 - * @interface IMsgRecvPacketResponse - * @property {ibc.core.channel.v1.ResponseResultType|null} [result] MsgRecvPacketResponse result + * @interface IAcknowledgement + * @property {Uint8Array|null} [result] Acknowledgement result + * @property {string|null} [error] Acknowledgement error */ /** - * Constructs a new MsgRecvPacketResponse. + * Constructs a new Acknowledgement. * @memberof ibc.core.channel.v1 - * @classdesc Represents a MsgRecvPacketResponse. - * @implements IMsgRecvPacketResponse + * @classdesc Represents an Acknowledgement. + * @implements IAcknowledgement * @constructor - * @param {ibc.core.channel.v1.IMsgRecvPacketResponse=} [properties] Properties to set + * @param {ibc.core.channel.v1.IAcknowledgement=} [properties] Properties to set */ - function MsgRecvPacketResponse(properties) { + function Acknowledgement(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -39488,63 +46483,90 @@ export const ibc = $root.ibc = (() => { } /** - * MsgRecvPacketResponse result. - * @member {ibc.core.channel.v1.ResponseResultType} result - * @memberof ibc.core.channel.v1.MsgRecvPacketResponse + * Acknowledgement result. + * @member {Uint8Array|null|undefined} result + * @memberof ibc.core.channel.v1.Acknowledgement * @instance */ - MsgRecvPacketResponse.prototype.result = 0; + Acknowledgement.prototype.result = null; + + /** + * Acknowledgement error. + * @member {string|null|undefined} error + * @memberof ibc.core.channel.v1.Acknowledgement + * @instance + */ + Acknowledgement.prototype.error = null; + + // OneOf field names bound to virtual getters and setters + let $oneOfFields; + + /** + * Acknowledgement response. + * @member {"result"|"error"|undefined} response + * @memberof ibc.core.channel.v1.Acknowledgement + * @instance + */ + Object.defineProperty(Acknowledgement.prototype, "response", { + get: $util.oneOfGetter($oneOfFields = ["result", "error"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * Encodes the specified MsgRecvPacketResponse message. Does not implicitly {@link ibc.core.channel.v1.MsgRecvPacketResponse.verify|verify} messages. + * Encodes the specified Acknowledgement message. Does not implicitly {@link ibc.core.channel.v1.Acknowledgement.verify|verify} messages. * @function encode - * @memberof ibc.core.channel.v1.MsgRecvPacketResponse + * @memberof ibc.core.channel.v1.Acknowledgement * @static - * @param {ibc.core.channel.v1.IMsgRecvPacketResponse} message MsgRecvPacketResponse message or plain object to encode + * @param {ibc.core.channel.v1.IAcknowledgement} message Acknowledgement message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgRecvPacketResponse.encode = function encode(message, writer) { + Acknowledgement.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.result != null && Object.hasOwnProperty.call(message, "result")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.result); + writer.uint32(/* id 21, wireType 2 =*/170).bytes(message.result); + if (message.error != null && Object.hasOwnProperty.call(message, "error")) + writer.uint32(/* id 22, wireType 2 =*/178).string(message.error); return writer; }; /** - * Encodes the specified MsgRecvPacketResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.MsgRecvPacketResponse.verify|verify} messages. + * Encodes the specified Acknowledgement message, length delimited. Does not implicitly {@link ibc.core.channel.v1.Acknowledgement.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.channel.v1.MsgRecvPacketResponse + * @memberof ibc.core.channel.v1.Acknowledgement * @static - * @param {ibc.core.channel.v1.IMsgRecvPacketResponse} message MsgRecvPacketResponse message or plain object to encode + * @param {ibc.core.channel.v1.IAcknowledgement} message Acknowledgement message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgRecvPacketResponse.encodeDelimited = function encodeDelimited(message, writer) { + Acknowledgement.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MsgRecvPacketResponse message from the specified reader or buffer. + * Decodes an Acknowledgement message from the specified reader or buffer. * @function decode - * @memberof ibc.core.channel.v1.MsgRecvPacketResponse + * @memberof ibc.core.channel.v1.Acknowledgement * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.channel.v1.MsgRecvPacketResponse} MsgRecvPacketResponse + * @returns {ibc.core.channel.v1.Acknowledgement} Acknowledgement * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgRecvPacketResponse.decode = function decode(reader, length) { + Acknowledgement.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.MsgRecvPacketResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.Acknowledgement(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.result = reader.int32(); + case 21: + message.result = reader.bytes(); + break; + case 22: + message.error = reader.string(); break; default: reader.skipType(tag & 7); @@ -39555,620 +46577,497 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a MsgRecvPacketResponse message from the specified reader or buffer, length delimited. + * Decodes an Acknowledgement message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.channel.v1.MsgRecvPacketResponse + * @memberof ibc.core.channel.v1.Acknowledgement * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.channel.v1.MsgRecvPacketResponse} MsgRecvPacketResponse + * @returns {ibc.core.channel.v1.Acknowledgement} Acknowledgement * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgRecvPacketResponse.decodeDelimited = function decodeDelimited(reader) { + Acknowledgement.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MsgRecvPacketResponse message. + * Verifies an Acknowledgement message. * @function verify - * @memberof ibc.core.channel.v1.MsgRecvPacketResponse + * @memberof ibc.core.channel.v1.Acknowledgement * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MsgRecvPacketResponse.verify = function verify(message) { + Acknowledgement.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.result != null && message.hasOwnProperty("result")) - switch (message.result) { - default: - return "result: enum value expected"; - case 0: - case 1: - case 2: - break; - } + let properties = {}; + if (message.result != null && message.hasOwnProperty("result")) { + properties.response = 1; + if (!(message.result && typeof message.result.length === "number" || $util.isString(message.result))) + return "result: buffer expected"; + } + if (message.error != null && message.hasOwnProperty("error")) { + if (properties.response === 1) + return "response: multiple values"; + properties.response = 1; + if (!$util.isString(message.error)) + return "error: string expected"; + } return null; }; /** - * Creates a MsgRecvPacketResponse message from a plain object. Also converts values to their respective internal types. + * Creates an Acknowledgement message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.channel.v1.MsgRecvPacketResponse + * @memberof ibc.core.channel.v1.Acknowledgement * @static * @param {Object.} object Plain object - * @returns {ibc.core.channel.v1.MsgRecvPacketResponse} MsgRecvPacketResponse + * @returns {ibc.core.channel.v1.Acknowledgement} Acknowledgement */ - MsgRecvPacketResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.channel.v1.MsgRecvPacketResponse) + Acknowledgement.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.channel.v1.Acknowledgement) return object; - let message = new $root.ibc.core.channel.v1.MsgRecvPacketResponse(); - switch (object.result) { - case "RESPONSE_RESULT_TYPE_UNSPECIFIED": - case 0: - message.result = 0; - break; - case "RESPONSE_RESULT_TYPE_NOOP": - case 1: - message.result = 1; - break; - case "RESPONSE_RESULT_TYPE_SUCCESS": - case 2: - message.result = 2; - break; - } + let message = new $root.ibc.core.channel.v1.Acknowledgement(); + if (object.result != null) + if (typeof object.result === "string") + $util.base64.decode(object.result, message.result = $util.newBuffer($util.base64.length(object.result)), 0); + else if (object.result.length) + message.result = object.result; + if (object.error != null) + message.error = String(object.error); return message; }; /** - * Creates a plain object from a MsgRecvPacketResponse message. Also converts values to other types if specified. + * Creates a plain object from an Acknowledgement message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.channel.v1.MsgRecvPacketResponse + * @memberof ibc.core.channel.v1.Acknowledgement * @static - * @param {ibc.core.channel.v1.MsgRecvPacketResponse} message MsgRecvPacketResponse + * @param {ibc.core.channel.v1.Acknowledgement} message Acknowledgement * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MsgRecvPacketResponse.toObject = function toObject(message, options) { + Acknowledgement.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) - object.result = options.enums === String ? "RESPONSE_RESULT_TYPE_UNSPECIFIED" : 0; - if (message.result != null && message.hasOwnProperty("result")) - object.result = options.enums === String ? $root.ibc.core.channel.v1.ResponseResultType[message.result] : message.result; + if (message.result != null && message.hasOwnProperty("result")) { + object.result = options.bytes === String ? $util.base64.encode(message.result, 0, message.result.length) : options.bytes === Array ? Array.prototype.slice.call(message.result) : message.result; + if (options.oneofs) + object.response = "result"; + } + if (message.error != null && message.hasOwnProperty("error")) { + object.error = message.error; + if (options.oneofs) + object.response = "error"; + } return object; }; /** - * Converts this MsgRecvPacketResponse to JSON. + * Converts this Acknowledgement to JSON. * @function toJSON - * @memberof ibc.core.channel.v1.MsgRecvPacketResponse + * @memberof ibc.core.channel.v1.Acknowledgement * @instance * @returns {Object.} JSON object */ - MsgRecvPacketResponse.prototype.toJSON = function toJSON() { + Acknowledgement.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MsgRecvPacketResponse; + return Acknowledgement; })(); - v1.MsgTimeout = (function() { + v1.Msg = (function() { /** - * Properties of a MsgTimeout. + * Constructs a new Msg service. * @memberof ibc.core.channel.v1 - * @interface IMsgTimeout - * @property {ibc.core.channel.v1.IPacket|null} [packet] MsgTimeout packet - * @property {Uint8Array|null} [proof_unreceived] MsgTimeout proof_unreceived - * @property {ibc.core.client.v1.IHeight|null} [proof_height] MsgTimeout proof_height - * @property {Long|null} [next_sequence_recv] MsgTimeout next_sequence_recv - * @property {string|null} [signer] MsgTimeout signer + * @classdesc Represents a Msg + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited */ + function Msg(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (Msg.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Msg; /** - * Constructs a new MsgTimeout. - * @memberof ibc.core.channel.v1 - * @classdesc Represents a MsgTimeout. - * @implements IMsgTimeout - * @constructor - * @param {ibc.core.channel.v1.IMsgTimeout=} [properties] Properties to set + * Callback as used by {@link ibc.core.channel.v1.Msg#channelOpenInit}. + * @memberof ibc.core.channel.v1.Msg + * @typedef ChannelOpenInitCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.core.channel.v1.MsgChannelOpenInitResponse} [response] MsgChannelOpenInitResponse */ - function MsgTimeout(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } /** - * MsgTimeout packet. - * @member {ibc.core.channel.v1.IPacket|null|undefined} packet - * @memberof ibc.core.channel.v1.MsgTimeout + * Calls ChannelOpenInit. + * @function channelOpenInit + * @memberof ibc.core.channel.v1.Msg * @instance + * @param {ibc.core.channel.v1.IMsgChannelOpenInit} request MsgChannelOpenInit message or plain object + * @param {ibc.core.channel.v1.Msg.ChannelOpenInitCallback} callback Node-style callback called with the error, if any, and MsgChannelOpenInitResponse + * @returns {undefined} + * @variation 1 */ - MsgTimeout.prototype.packet = null; + Object.defineProperty(Msg.prototype.channelOpenInit = function channelOpenInit(request, callback) { + return this.rpcCall(channelOpenInit, $root.ibc.core.channel.v1.MsgChannelOpenInit, $root.ibc.core.channel.v1.MsgChannelOpenInitResponse, request, callback); + }, "name", { value: "ChannelOpenInit" }); /** - * MsgTimeout proof_unreceived. - * @member {Uint8Array} proof_unreceived - * @memberof ibc.core.channel.v1.MsgTimeout + * Calls ChannelOpenInit. + * @function channelOpenInit + * @memberof ibc.core.channel.v1.Msg * @instance + * @param {ibc.core.channel.v1.IMsgChannelOpenInit} request MsgChannelOpenInit message or plain object + * @returns {Promise} Promise + * @variation 2 */ - MsgTimeout.prototype.proof_unreceived = $util.newBuffer([]); /** - * MsgTimeout proof_height. - * @member {ibc.core.client.v1.IHeight|null|undefined} proof_height - * @memberof ibc.core.channel.v1.MsgTimeout + * Callback as used by {@link ibc.core.channel.v1.Msg#channelOpenTry}. + * @memberof ibc.core.channel.v1.Msg + * @typedef ChannelOpenTryCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.core.channel.v1.MsgChannelOpenTryResponse} [response] MsgChannelOpenTryResponse + */ + + /** + * Calls ChannelOpenTry. + * @function channelOpenTry + * @memberof ibc.core.channel.v1.Msg * @instance + * @param {ibc.core.channel.v1.IMsgChannelOpenTry} request MsgChannelOpenTry message or plain object + * @param {ibc.core.channel.v1.Msg.ChannelOpenTryCallback} callback Node-style callback called with the error, if any, and MsgChannelOpenTryResponse + * @returns {undefined} + * @variation 1 */ - MsgTimeout.prototype.proof_height = null; + Object.defineProperty(Msg.prototype.channelOpenTry = function channelOpenTry(request, callback) { + return this.rpcCall(channelOpenTry, $root.ibc.core.channel.v1.MsgChannelOpenTry, $root.ibc.core.channel.v1.MsgChannelOpenTryResponse, request, callback); + }, "name", { value: "ChannelOpenTry" }); /** - * MsgTimeout next_sequence_recv. - * @member {Long} next_sequence_recv - * @memberof ibc.core.channel.v1.MsgTimeout + * Calls ChannelOpenTry. + * @function channelOpenTry + * @memberof ibc.core.channel.v1.Msg * @instance + * @param {ibc.core.channel.v1.IMsgChannelOpenTry} request MsgChannelOpenTry message or plain object + * @returns {Promise} Promise + * @variation 2 */ - MsgTimeout.prototype.next_sequence_recv = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** - * MsgTimeout signer. - * @member {string} signer - * @memberof ibc.core.channel.v1.MsgTimeout + * Callback as used by {@link ibc.core.channel.v1.Msg#channelOpenAck}. + * @memberof ibc.core.channel.v1.Msg + * @typedef ChannelOpenAckCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.core.channel.v1.MsgChannelOpenAckResponse} [response] MsgChannelOpenAckResponse + */ + + /** + * Calls ChannelOpenAck. + * @function channelOpenAck + * @memberof ibc.core.channel.v1.Msg * @instance + * @param {ibc.core.channel.v1.IMsgChannelOpenAck} request MsgChannelOpenAck message or plain object + * @param {ibc.core.channel.v1.Msg.ChannelOpenAckCallback} callback Node-style callback called with the error, if any, and MsgChannelOpenAckResponse + * @returns {undefined} + * @variation 1 */ - MsgTimeout.prototype.signer = ""; + Object.defineProperty(Msg.prototype.channelOpenAck = function channelOpenAck(request, callback) { + return this.rpcCall(channelOpenAck, $root.ibc.core.channel.v1.MsgChannelOpenAck, $root.ibc.core.channel.v1.MsgChannelOpenAckResponse, request, callback); + }, "name", { value: "ChannelOpenAck" }); /** - * Encodes the specified MsgTimeout message. Does not implicitly {@link ibc.core.channel.v1.MsgTimeout.verify|verify} messages. - * @function encode - * @memberof ibc.core.channel.v1.MsgTimeout - * @static - * @param {ibc.core.channel.v1.IMsgTimeout} message MsgTimeout message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls ChannelOpenAck. + * @function channelOpenAck + * @memberof ibc.core.channel.v1.Msg + * @instance + * @param {ibc.core.channel.v1.IMsgChannelOpenAck} request MsgChannelOpenAck message or plain object + * @returns {Promise} Promise + * @variation 2 */ - MsgTimeout.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.packet != null && Object.hasOwnProperty.call(message, "packet")) - $root.ibc.core.channel.v1.Packet.encode(message.packet, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.proof_unreceived != null && Object.hasOwnProperty.call(message, "proof_unreceived")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.proof_unreceived); - if (message.proof_height != null && Object.hasOwnProperty.call(message, "proof_height")) - $root.ibc.core.client.v1.Height.encode(message.proof_height, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.next_sequence_recv != null && Object.hasOwnProperty.call(message, "next_sequence_recv")) - writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.next_sequence_recv); - if (message.signer != null && Object.hasOwnProperty.call(message, "signer")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.signer); - return writer; - }; /** - * Encodes the specified MsgTimeout message, length delimited. Does not implicitly {@link ibc.core.channel.v1.MsgTimeout.verify|verify} messages. - * @function encodeDelimited - * @memberof ibc.core.channel.v1.MsgTimeout - * @static - * @param {ibc.core.channel.v1.IMsgTimeout} message MsgTimeout message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Callback as used by {@link ibc.core.channel.v1.Msg#channelOpenConfirm}. + * @memberof ibc.core.channel.v1.Msg + * @typedef ChannelOpenConfirmCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.core.channel.v1.MsgChannelOpenConfirmResponse} [response] MsgChannelOpenConfirmResponse */ - MsgTimeout.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; /** - * Decodes a MsgTimeout message from the specified reader or buffer. - * @function decode - * @memberof ibc.core.channel.v1.MsgTimeout - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.channel.v1.MsgTimeout} MsgTimeout - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls ChannelOpenConfirm. + * @function channelOpenConfirm + * @memberof ibc.core.channel.v1.Msg + * @instance + * @param {ibc.core.channel.v1.IMsgChannelOpenConfirm} request MsgChannelOpenConfirm message or plain object + * @param {ibc.core.channel.v1.Msg.ChannelOpenConfirmCallback} callback Node-style callback called with the error, if any, and MsgChannelOpenConfirmResponse + * @returns {undefined} + * @variation 1 */ - MsgTimeout.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.MsgTimeout(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.packet = $root.ibc.core.channel.v1.Packet.decode(reader, reader.uint32()); - break; - case 2: - message.proof_unreceived = reader.bytes(); - break; - case 3: - message.proof_height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); - break; - case 4: - message.next_sequence_recv = reader.uint64(); - break; - case 5: - message.signer = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + Object.defineProperty(Msg.prototype.channelOpenConfirm = function channelOpenConfirm(request, callback) { + return this.rpcCall(channelOpenConfirm, $root.ibc.core.channel.v1.MsgChannelOpenConfirm, $root.ibc.core.channel.v1.MsgChannelOpenConfirmResponse, request, callback); + }, "name", { value: "ChannelOpenConfirm" }); /** - * Decodes a MsgTimeout message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ibc.core.channel.v1.MsgTimeout - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.channel.v1.MsgTimeout} MsgTimeout - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls ChannelOpenConfirm. + * @function channelOpenConfirm + * @memberof ibc.core.channel.v1.Msg + * @instance + * @param {ibc.core.channel.v1.IMsgChannelOpenConfirm} request MsgChannelOpenConfirm message or plain object + * @returns {Promise} Promise + * @variation 2 */ - MsgTimeout.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; /** - * Verifies a MsgTimeout message. - * @function verify - * @memberof ibc.core.channel.v1.MsgTimeout - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Callback as used by {@link ibc.core.channel.v1.Msg#channelCloseInit}. + * @memberof ibc.core.channel.v1.Msg + * @typedef ChannelCloseInitCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.core.channel.v1.MsgChannelCloseInitResponse} [response] MsgChannelCloseInitResponse */ - MsgTimeout.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.packet != null && message.hasOwnProperty("packet")) { - let error = $root.ibc.core.channel.v1.Packet.verify(message.packet); - if (error) - return "packet." + error; - } - if (message.proof_unreceived != null && message.hasOwnProperty("proof_unreceived")) - if (!(message.proof_unreceived && typeof message.proof_unreceived.length === "number" || $util.isString(message.proof_unreceived))) - return "proof_unreceived: buffer expected"; - if (message.proof_height != null && message.hasOwnProperty("proof_height")) { - let error = $root.ibc.core.client.v1.Height.verify(message.proof_height); - if (error) - return "proof_height." + error; - } - if (message.next_sequence_recv != null && message.hasOwnProperty("next_sequence_recv")) - if (!$util.isInteger(message.next_sequence_recv) && !(message.next_sequence_recv && $util.isInteger(message.next_sequence_recv.low) && $util.isInteger(message.next_sequence_recv.high))) - return "next_sequence_recv: integer|Long expected"; - if (message.signer != null && message.hasOwnProperty("signer")) - if (!$util.isString(message.signer)) - return "signer: string expected"; - return null; - }; /** - * Creates a MsgTimeout message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof ibc.core.channel.v1.MsgTimeout - * @static - * @param {Object.} object Plain object - * @returns {ibc.core.channel.v1.MsgTimeout} MsgTimeout + * Calls ChannelCloseInit. + * @function channelCloseInit + * @memberof ibc.core.channel.v1.Msg + * @instance + * @param {ibc.core.channel.v1.IMsgChannelCloseInit} request MsgChannelCloseInit message or plain object + * @param {ibc.core.channel.v1.Msg.ChannelCloseInitCallback} callback Node-style callback called with the error, if any, and MsgChannelCloseInitResponse + * @returns {undefined} + * @variation 1 */ - MsgTimeout.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.channel.v1.MsgTimeout) - return object; - let message = new $root.ibc.core.channel.v1.MsgTimeout(); - if (object.packet != null) { - if (typeof object.packet !== "object") - throw TypeError(".ibc.core.channel.v1.MsgTimeout.packet: object expected"); - message.packet = $root.ibc.core.channel.v1.Packet.fromObject(object.packet); - } - if (object.proof_unreceived != null) - if (typeof object.proof_unreceived === "string") - $util.base64.decode(object.proof_unreceived, message.proof_unreceived = $util.newBuffer($util.base64.length(object.proof_unreceived)), 0); - else if (object.proof_unreceived.length) - message.proof_unreceived = object.proof_unreceived; - if (object.proof_height != null) { - if (typeof object.proof_height !== "object") - throw TypeError(".ibc.core.channel.v1.MsgTimeout.proof_height: object expected"); - message.proof_height = $root.ibc.core.client.v1.Height.fromObject(object.proof_height); - } - if (object.next_sequence_recv != null) - if ($util.Long) - (message.next_sequence_recv = $util.Long.fromValue(object.next_sequence_recv)).unsigned = true; - else if (typeof object.next_sequence_recv === "string") - message.next_sequence_recv = parseInt(object.next_sequence_recv, 10); - else if (typeof object.next_sequence_recv === "number") - message.next_sequence_recv = object.next_sequence_recv; - else if (typeof object.next_sequence_recv === "object") - message.next_sequence_recv = new $util.LongBits(object.next_sequence_recv.low >>> 0, object.next_sequence_recv.high >>> 0).toNumber(true); - if (object.signer != null) - message.signer = String(object.signer); - return message; - }; + Object.defineProperty(Msg.prototype.channelCloseInit = function channelCloseInit(request, callback) { + return this.rpcCall(channelCloseInit, $root.ibc.core.channel.v1.MsgChannelCloseInit, $root.ibc.core.channel.v1.MsgChannelCloseInitResponse, request, callback); + }, "name", { value: "ChannelCloseInit" }); /** - * Creates a plain object from a MsgTimeout message. Also converts values to other types if specified. - * @function toObject - * @memberof ibc.core.channel.v1.MsgTimeout - * @static - * @param {ibc.core.channel.v1.MsgTimeout} message MsgTimeout - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Calls ChannelCloseInit. + * @function channelCloseInit + * @memberof ibc.core.channel.v1.Msg + * @instance + * @param {ibc.core.channel.v1.IMsgChannelCloseInit} request MsgChannelCloseInit message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link ibc.core.channel.v1.Msg#channelCloseConfirm}. + * @memberof ibc.core.channel.v1.Msg + * @typedef ChannelCloseConfirmCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.core.channel.v1.MsgChannelCloseConfirmResponse} [response] MsgChannelCloseConfirmResponse */ - MsgTimeout.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - object.packet = null; - if (options.bytes === String) - object.proof_unreceived = ""; - else { - object.proof_unreceived = []; - if (options.bytes !== Array) - object.proof_unreceived = $util.newBuffer(object.proof_unreceived); - } - object.proof_height = null; - if ($util.Long) { - let long = new $util.Long(0, 0, true); - object.next_sequence_recv = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.next_sequence_recv = options.longs === String ? "0" : 0; - object.signer = ""; - } - if (message.packet != null && message.hasOwnProperty("packet")) - object.packet = $root.ibc.core.channel.v1.Packet.toObject(message.packet, options); - if (message.proof_unreceived != null && message.hasOwnProperty("proof_unreceived")) - object.proof_unreceived = options.bytes === String ? $util.base64.encode(message.proof_unreceived, 0, message.proof_unreceived.length) : options.bytes === Array ? Array.prototype.slice.call(message.proof_unreceived) : message.proof_unreceived; - if (message.proof_height != null && message.hasOwnProperty("proof_height")) - object.proof_height = $root.ibc.core.client.v1.Height.toObject(message.proof_height, options); - if (message.next_sequence_recv != null && message.hasOwnProperty("next_sequence_recv")) - if (typeof message.next_sequence_recv === "number") - object.next_sequence_recv = options.longs === String ? String(message.next_sequence_recv) : message.next_sequence_recv; - else - object.next_sequence_recv = options.longs === String ? $util.Long.prototype.toString.call(message.next_sequence_recv) : options.longs === Number ? new $util.LongBits(message.next_sequence_recv.low >>> 0, message.next_sequence_recv.high >>> 0).toNumber(true) : message.next_sequence_recv; - if (message.signer != null && message.hasOwnProperty("signer")) - object.signer = message.signer; - return object; - }; /** - * Converts this MsgTimeout to JSON. - * @function toJSON - * @memberof ibc.core.channel.v1.MsgTimeout + * Calls ChannelCloseConfirm. + * @function channelCloseConfirm + * @memberof ibc.core.channel.v1.Msg * @instance - * @returns {Object.} JSON object + * @param {ibc.core.channel.v1.IMsgChannelCloseConfirm} request MsgChannelCloseConfirm message or plain object + * @param {ibc.core.channel.v1.Msg.ChannelCloseConfirmCallback} callback Node-style callback called with the error, if any, and MsgChannelCloseConfirmResponse + * @returns {undefined} + * @variation 1 */ - MsgTimeout.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return MsgTimeout; - })(); + Object.defineProperty(Msg.prototype.channelCloseConfirm = function channelCloseConfirm(request, callback) { + return this.rpcCall(channelCloseConfirm, $root.ibc.core.channel.v1.MsgChannelCloseConfirm, $root.ibc.core.channel.v1.MsgChannelCloseConfirmResponse, request, callback); + }, "name", { value: "ChannelCloseConfirm" }); - v1.MsgTimeoutResponse = (function() { + /** + * Calls ChannelCloseConfirm. + * @function channelCloseConfirm + * @memberof ibc.core.channel.v1.Msg + * @instance + * @param {ibc.core.channel.v1.IMsgChannelCloseConfirm} request MsgChannelCloseConfirm message or plain object + * @returns {Promise} Promise + * @variation 2 + */ /** - * Properties of a MsgTimeoutResponse. - * @memberof ibc.core.channel.v1 - * @interface IMsgTimeoutResponse - * @property {ibc.core.channel.v1.ResponseResultType|null} [result] MsgTimeoutResponse result + * Callback as used by {@link ibc.core.channel.v1.Msg#recvPacket}. + * @memberof ibc.core.channel.v1.Msg + * @typedef RecvPacketCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.core.channel.v1.MsgRecvPacketResponse} [response] MsgRecvPacketResponse */ /** - * Constructs a new MsgTimeoutResponse. - * @memberof ibc.core.channel.v1 - * @classdesc Represents a MsgTimeoutResponse. - * @implements IMsgTimeoutResponse - * @constructor - * @param {ibc.core.channel.v1.IMsgTimeoutResponse=} [properties] Properties to set + * Calls RecvPacket. + * @function recvPacket + * @memberof ibc.core.channel.v1.Msg + * @instance + * @param {ibc.core.channel.v1.IMsgRecvPacket} request MsgRecvPacket message or plain object + * @param {ibc.core.channel.v1.Msg.RecvPacketCallback} callback Node-style callback called with the error, if any, and MsgRecvPacketResponse + * @returns {undefined} + * @variation 1 */ - function MsgTimeoutResponse(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + Object.defineProperty(Msg.prototype.recvPacket = function recvPacket(request, callback) { + return this.rpcCall(recvPacket, $root.ibc.core.channel.v1.MsgRecvPacket, $root.ibc.core.channel.v1.MsgRecvPacketResponse, request, callback); + }, "name", { value: "RecvPacket" }); /** - * MsgTimeoutResponse result. - * @member {ibc.core.channel.v1.ResponseResultType} result - * @memberof ibc.core.channel.v1.MsgTimeoutResponse + * Calls RecvPacket. + * @function recvPacket + * @memberof ibc.core.channel.v1.Msg * @instance + * @param {ibc.core.channel.v1.IMsgRecvPacket} request MsgRecvPacket message or plain object + * @returns {Promise} Promise + * @variation 2 */ - MsgTimeoutResponse.prototype.result = 0; /** - * Encodes the specified MsgTimeoutResponse message. Does not implicitly {@link ibc.core.channel.v1.MsgTimeoutResponse.verify|verify} messages. - * @function encode - * @memberof ibc.core.channel.v1.MsgTimeoutResponse - * @static - * @param {ibc.core.channel.v1.IMsgTimeoutResponse} message MsgTimeoutResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Callback as used by {@link ibc.core.channel.v1.Msg#timeout}. + * @memberof ibc.core.channel.v1.Msg + * @typedef TimeoutCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.core.channel.v1.MsgTimeoutResponse} [response] MsgTimeoutResponse */ - MsgTimeoutResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.result != null && Object.hasOwnProperty.call(message, "result")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.result); - return writer; - }; /** - * Encodes the specified MsgTimeoutResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.MsgTimeoutResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof ibc.core.channel.v1.MsgTimeoutResponse - * @static - * @param {ibc.core.channel.v1.IMsgTimeoutResponse} message MsgTimeoutResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls Timeout. + * @function timeout + * @memberof ibc.core.channel.v1.Msg + * @instance + * @param {ibc.core.channel.v1.IMsgTimeout} request MsgTimeout message or plain object + * @param {ibc.core.channel.v1.Msg.TimeoutCallback} callback Node-style callback called with the error, if any, and MsgTimeoutResponse + * @returns {undefined} + * @variation 1 */ - MsgTimeoutResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + Object.defineProperty(Msg.prototype.timeout = function timeout(request, callback) { + return this.rpcCall(timeout, $root.ibc.core.channel.v1.MsgTimeout, $root.ibc.core.channel.v1.MsgTimeoutResponse, request, callback); + }, "name", { value: "Timeout" }); /** - * Decodes a MsgTimeoutResponse message from the specified reader or buffer. - * @function decode - * @memberof ibc.core.channel.v1.MsgTimeoutResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.channel.v1.MsgTimeoutResponse} MsgTimeoutResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls Timeout. + * @function timeout + * @memberof ibc.core.channel.v1.Msg + * @instance + * @param {ibc.core.channel.v1.IMsgTimeout} request MsgTimeout message or plain object + * @returns {Promise} Promise + * @variation 2 */ - MsgTimeoutResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.MsgTimeoutResponse(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.result = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; /** - * Decodes a MsgTimeoutResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ibc.core.channel.v1.MsgTimeoutResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.channel.v1.MsgTimeoutResponse} MsgTimeoutResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link ibc.core.channel.v1.Msg#timeoutOnClose}. + * @memberof ibc.core.channel.v1.Msg + * @typedef TimeoutOnCloseCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.core.channel.v1.MsgTimeoutOnCloseResponse} [response] MsgTimeoutOnCloseResponse */ - MsgTimeoutResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; /** - * Verifies a MsgTimeoutResponse message. - * @function verify - * @memberof ibc.core.channel.v1.MsgTimeoutResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Calls TimeoutOnClose. + * @function timeoutOnClose + * @memberof ibc.core.channel.v1.Msg + * @instance + * @param {ibc.core.channel.v1.IMsgTimeoutOnClose} request MsgTimeoutOnClose message or plain object + * @param {ibc.core.channel.v1.Msg.TimeoutOnCloseCallback} callback Node-style callback called with the error, if any, and MsgTimeoutOnCloseResponse + * @returns {undefined} + * @variation 1 */ - MsgTimeoutResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.result != null && message.hasOwnProperty("result")) - switch (message.result) { - default: - return "result: enum value expected"; - case 0: - case 1: - case 2: - break; - } - return null; - }; + Object.defineProperty(Msg.prototype.timeoutOnClose = function timeoutOnClose(request, callback) { + return this.rpcCall(timeoutOnClose, $root.ibc.core.channel.v1.MsgTimeoutOnClose, $root.ibc.core.channel.v1.MsgTimeoutOnCloseResponse, request, callback); + }, "name", { value: "TimeoutOnClose" }); /** - * Creates a MsgTimeoutResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof ibc.core.channel.v1.MsgTimeoutResponse - * @static - * @param {Object.} object Plain object - * @returns {ibc.core.channel.v1.MsgTimeoutResponse} MsgTimeoutResponse + * Calls TimeoutOnClose. + * @function timeoutOnClose + * @memberof ibc.core.channel.v1.Msg + * @instance + * @param {ibc.core.channel.v1.IMsgTimeoutOnClose} request MsgTimeoutOnClose message or plain object + * @returns {Promise} Promise + * @variation 2 */ - MsgTimeoutResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.channel.v1.MsgTimeoutResponse) - return object; - let message = new $root.ibc.core.channel.v1.MsgTimeoutResponse(); - switch (object.result) { - case "RESPONSE_RESULT_TYPE_UNSPECIFIED": - case 0: - message.result = 0; - break; - case "RESPONSE_RESULT_TYPE_NOOP": - case 1: - message.result = 1; - break; - case "RESPONSE_RESULT_TYPE_SUCCESS": - case 2: - message.result = 2; - break; - } - return message; - }; /** - * Creates a plain object from a MsgTimeoutResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof ibc.core.channel.v1.MsgTimeoutResponse - * @static - * @param {ibc.core.channel.v1.MsgTimeoutResponse} message MsgTimeoutResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Callback as used by {@link ibc.core.channel.v1.Msg#acknowledgement}. + * @memberof ibc.core.channel.v1.Msg + * @typedef AcknowledgementCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.core.channel.v1.MsgAcknowledgementResponse} [response] MsgAcknowledgementResponse */ - MsgTimeoutResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) - object.result = options.enums === String ? "RESPONSE_RESULT_TYPE_UNSPECIFIED" : 0; - if (message.result != null && message.hasOwnProperty("result")) - object.result = options.enums === String ? $root.ibc.core.channel.v1.ResponseResultType[message.result] : message.result; - return object; - }; /** - * Converts this MsgTimeoutResponse to JSON. - * @function toJSON - * @memberof ibc.core.channel.v1.MsgTimeoutResponse + * Calls Acknowledgement. + * @function acknowledgement + * @memberof ibc.core.channel.v1.Msg * @instance - * @returns {Object.} JSON object + * @param {ibc.core.channel.v1.IMsgAcknowledgement} request MsgAcknowledgement message or plain object + * @param {ibc.core.channel.v1.Msg.AcknowledgementCallback} callback Node-style callback called with the error, if any, and MsgAcknowledgementResponse + * @returns {undefined} + * @variation 1 */ - MsgTimeoutResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + Object.defineProperty(Msg.prototype.acknowledgement = function acknowledgement(request, callback) { + return this.rpcCall(acknowledgement, $root.ibc.core.channel.v1.MsgAcknowledgement, $root.ibc.core.channel.v1.MsgAcknowledgementResponse, request, callback); + }, "name", { value: "Acknowledgement" }); - return MsgTimeoutResponse; + /** + * Calls Acknowledgement. + * @function acknowledgement + * @memberof ibc.core.channel.v1.Msg + * @instance + * @param {ibc.core.channel.v1.IMsgAcknowledgement} request MsgAcknowledgement message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return Msg; })(); - v1.MsgTimeoutOnClose = (function() { + /** + * ResponseResultType enum. + * @name ibc.core.channel.v1.ResponseResultType + * @enum {number} + * @property {number} RESPONSE_RESULT_TYPE_UNSPECIFIED=0 RESPONSE_RESULT_TYPE_UNSPECIFIED value + * @property {number} RESPONSE_RESULT_TYPE_NOOP=1 RESPONSE_RESULT_TYPE_NOOP value + * @property {number} RESPONSE_RESULT_TYPE_SUCCESS=2 RESPONSE_RESULT_TYPE_SUCCESS value + */ + v1.ResponseResultType = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "RESPONSE_RESULT_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "RESPONSE_RESULT_TYPE_NOOP"] = 1; + values[valuesById[2] = "RESPONSE_RESULT_TYPE_SUCCESS"] = 2; + return values; + })(); + + v1.MsgChannelOpenInit = (function() { /** - * Properties of a MsgTimeoutOnClose. + * Properties of a MsgChannelOpenInit. * @memberof ibc.core.channel.v1 - * @interface IMsgTimeoutOnClose - * @property {ibc.core.channel.v1.IPacket|null} [packet] MsgTimeoutOnClose packet - * @property {Uint8Array|null} [proof_unreceived] MsgTimeoutOnClose proof_unreceived - * @property {Uint8Array|null} [proof_close] MsgTimeoutOnClose proof_close - * @property {ibc.core.client.v1.IHeight|null} [proof_height] MsgTimeoutOnClose proof_height - * @property {Long|null} [next_sequence_recv] MsgTimeoutOnClose next_sequence_recv - * @property {string|null} [signer] MsgTimeoutOnClose signer + * @interface IMsgChannelOpenInit + * @property {string|null} [port_id] MsgChannelOpenInit port_id + * @property {ibc.core.channel.v1.IChannel|null} [channel] MsgChannelOpenInit channel + * @property {string|null} [signer] MsgChannelOpenInit signer */ /** - * Constructs a new MsgTimeoutOnClose. + * Constructs a new MsgChannelOpenInit. * @memberof ibc.core.channel.v1 - * @classdesc Represents a MsgTimeoutOnClose. - * @implements IMsgTimeoutOnClose + * @classdesc Represents a MsgChannelOpenInit. + * @implements IMsgChannelOpenInit * @constructor - * @param {ibc.core.channel.v1.IMsgTimeoutOnClose=} [properties] Properties to set + * @param {ibc.core.channel.v1.IMsgChannelOpenInit=} [properties] Properties to set */ - function MsgTimeoutOnClose(properties) { + function MsgChannelOpenInit(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -40176,127 +47075,88 @@ export const ibc = $root.ibc = (() => { } /** - * MsgTimeoutOnClose packet. - * @member {ibc.core.channel.v1.IPacket|null|undefined} packet - * @memberof ibc.core.channel.v1.MsgTimeoutOnClose - * @instance - */ - MsgTimeoutOnClose.prototype.packet = null; - - /** - * MsgTimeoutOnClose proof_unreceived. - * @member {Uint8Array} proof_unreceived - * @memberof ibc.core.channel.v1.MsgTimeoutOnClose - * @instance - */ - MsgTimeoutOnClose.prototype.proof_unreceived = $util.newBuffer([]); - - /** - * MsgTimeoutOnClose proof_close. - * @member {Uint8Array} proof_close - * @memberof ibc.core.channel.v1.MsgTimeoutOnClose - * @instance - */ - MsgTimeoutOnClose.prototype.proof_close = $util.newBuffer([]); - - /** - * MsgTimeoutOnClose proof_height. - * @member {ibc.core.client.v1.IHeight|null|undefined} proof_height - * @memberof ibc.core.channel.v1.MsgTimeoutOnClose + * MsgChannelOpenInit port_id. + * @member {string} port_id + * @memberof ibc.core.channel.v1.MsgChannelOpenInit * @instance */ - MsgTimeoutOnClose.prototype.proof_height = null; + MsgChannelOpenInit.prototype.port_id = ""; /** - * MsgTimeoutOnClose next_sequence_recv. - * @member {Long} next_sequence_recv - * @memberof ibc.core.channel.v1.MsgTimeoutOnClose + * MsgChannelOpenInit channel. + * @member {ibc.core.channel.v1.IChannel|null|undefined} channel + * @memberof ibc.core.channel.v1.MsgChannelOpenInit * @instance */ - MsgTimeoutOnClose.prototype.next_sequence_recv = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + MsgChannelOpenInit.prototype.channel = null; /** - * MsgTimeoutOnClose signer. + * MsgChannelOpenInit signer. * @member {string} signer - * @memberof ibc.core.channel.v1.MsgTimeoutOnClose + * @memberof ibc.core.channel.v1.MsgChannelOpenInit * @instance */ - MsgTimeoutOnClose.prototype.signer = ""; + MsgChannelOpenInit.prototype.signer = ""; /** - * Encodes the specified MsgTimeoutOnClose message. Does not implicitly {@link ibc.core.channel.v1.MsgTimeoutOnClose.verify|verify} messages. + * Encodes the specified MsgChannelOpenInit message. Does not implicitly {@link ibc.core.channel.v1.MsgChannelOpenInit.verify|verify} messages. * @function encode - * @memberof ibc.core.channel.v1.MsgTimeoutOnClose + * @memberof ibc.core.channel.v1.MsgChannelOpenInit * @static - * @param {ibc.core.channel.v1.IMsgTimeoutOnClose} message MsgTimeoutOnClose message or plain object to encode + * @param {ibc.core.channel.v1.IMsgChannelOpenInit} message MsgChannelOpenInit message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgTimeoutOnClose.encode = function encode(message, writer) { + MsgChannelOpenInit.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.packet != null && Object.hasOwnProperty.call(message, "packet")) - $root.ibc.core.channel.v1.Packet.encode(message.packet, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.proof_unreceived != null && Object.hasOwnProperty.call(message, "proof_unreceived")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.proof_unreceived); - if (message.proof_close != null && Object.hasOwnProperty.call(message, "proof_close")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.proof_close); - if (message.proof_height != null && Object.hasOwnProperty.call(message, "proof_height")) - $root.ibc.core.client.v1.Height.encode(message.proof_height, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.next_sequence_recv != null && Object.hasOwnProperty.call(message, "next_sequence_recv")) - writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.next_sequence_recv); + if (message.port_id != null && Object.hasOwnProperty.call(message, "port_id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.port_id); + if (message.channel != null && Object.hasOwnProperty.call(message, "channel")) + $root.ibc.core.channel.v1.Channel.encode(message.channel, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.signer != null && Object.hasOwnProperty.call(message, "signer")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.signer); + writer.uint32(/* id 3, wireType 2 =*/26).string(message.signer); return writer; }; /** - * Encodes the specified MsgTimeoutOnClose message, length delimited. Does not implicitly {@link ibc.core.channel.v1.MsgTimeoutOnClose.verify|verify} messages. + * Encodes the specified MsgChannelOpenInit message, length delimited. Does not implicitly {@link ibc.core.channel.v1.MsgChannelOpenInit.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.channel.v1.MsgTimeoutOnClose + * @memberof ibc.core.channel.v1.MsgChannelOpenInit * @static - * @param {ibc.core.channel.v1.IMsgTimeoutOnClose} message MsgTimeoutOnClose message or plain object to encode + * @param {ibc.core.channel.v1.IMsgChannelOpenInit} message MsgChannelOpenInit message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgTimeoutOnClose.encodeDelimited = function encodeDelimited(message, writer) { + MsgChannelOpenInit.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MsgTimeoutOnClose message from the specified reader or buffer. + * Decodes a MsgChannelOpenInit message from the specified reader or buffer. * @function decode - * @memberof ibc.core.channel.v1.MsgTimeoutOnClose + * @memberof ibc.core.channel.v1.MsgChannelOpenInit * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.channel.v1.MsgTimeoutOnClose} MsgTimeoutOnClose + * @returns {ibc.core.channel.v1.MsgChannelOpenInit} MsgChannelOpenInit * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgTimeoutOnClose.decode = function decode(reader, length) { + MsgChannelOpenInit.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.MsgTimeoutOnClose(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.MsgChannelOpenInit(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.packet = $root.ibc.core.channel.v1.Packet.decode(reader, reader.uint32()); + message.port_id = reader.string(); break; case 2: - message.proof_unreceived = reader.bytes(); + message.channel = $root.ibc.core.channel.v1.Channel.decode(reader, reader.uint32()); break; case 3: - message.proof_close = reader.bytes(); - break; - case 4: - message.proof_height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); - break; - case 5: - message.next_sequence_recv = reader.uint64(); - break; - case 6: message.signer = reader.string(); break; default: @@ -40308,51 +47168,40 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a MsgTimeoutOnClose message from the specified reader or buffer, length delimited. + * Decodes a MsgChannelOpenInit message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.channel.v1.MsgTimeoutOnClose + * @memberof ibc.core.channel.v1.MsgChannelOpenInit * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.channel.v1.MsgTimeoutOnClose} MsgTimeoutOnClose + * @returns {ibc.core.channel.v1.MsgChannelOpenInit} MsgChannelOpenInit * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgTimeoutOnClose.decodeDelimited = function decodeDelimited(reader) { + MsgChannelOpenInit.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MsgTimeoutOnClose message. + * Verifies a MsgChannelOpenInit message. * @function verify - * @memberof ibc.core.channel.v1.MsgTimeoutOnClose + * @memberof ibc.core.channel.v1.MsgChannelOpenInit * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MsgTimeoutOnClose.verify = function verify(message) { + MsgChannelOpenInit.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.packet != null && message.hasOwnProperty("packet")) { - let error = $root.ibc.core.channel.v1.Packet.verify(message.packet); - if (error) - return "packet." + error; - } - if (message.proof_unreceived != null && message.hasOwnProperty("proof_unreceived")) - if (!(message.proof_unreceived && typeof message.proof_unreceived.length === "number" || $util.isString(message.proof_unreceived))) - return "proof_unreceived: buffer expected"; - if (message.proof_close != null && message.hasOwnProperty("proof_close")) - if (!(message.proof_close && typeof message.proof_close.length === "number" || $util.isString(message.proof_close))) - return "proof_close: buffer expected"; - if (message.proof_height != null && message.hasOwnProperty("proof_height")) { - let error = $root.ibc.core.client.v1.Height.verify(message.proof_height); + if (message.port_id != null && message.hasOwnProperty("port_id")) + if (!$util.isString(message.port_id)) + return "port_id: string expected"; + if (message.channel != null && message.hasOwnProperty("channel")) { + let error = $root.ibc.core.channel.v1.Channel.verify(message.channel); if (error) - return "proof_height." + error; + return "channel." + error; } - if (message.next_sequence_recv != null && message.hasOwnProperty("next_sequence_recv")) - if (!$util.isInteger(message.next_sequence_recv) && !(message.next_sequence_recv && $util.isInteger(message.next_sequence_recv.low) && $util.isInteger(message.next_sequence_recv.high))) - return "next_sequence_recv: integer|Long expected"; if (message.signer != null && message.hasOwnProperty("signer")) if (!$util.isString(message.signer)) return "signer: string expected"; @@ -40360,138 +47209,89 @@ export const ibc = $root.ibc = (() => { }; /** - * Creates a MsgTimeoutOnClose message from a plain object. Also converts values to their respective internal types. + * Creates a MsgChannelOpenInit message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.channel.v1.MsgTimeoutOnClose + * @memberof ibc.core.channel.v1.MsgChannelOpenInit * @static * @param {Object.} object Plain object - * @returns {ibc.core.channel.v1.MsgTimeoutOnClose} MsgTimeoutOnClose + * @returns {ibc.core.channel.v1.MsgChannelOpenInit} MsgChannelOpenInit */ - MsgTimeoutOnClose.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.channel.v1.MsgTimeoutOnClose) + MsgChannelOpenInit.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.channel.v1.MsgChannelOpenInit) return object; - let message = new $root.ibc.core.channel.v1.MsgTimeoutOnClose(); - if (object.packet != null) { - if (typeof object.packet !== "object") - throw TypeError(".ibc.core.channel.v1.MsgTimeoutOnClose.packet: object expected"); - message.packet = $root.ibc.core.channel.v1.Packet.fromObject(object.packet); - } - if (object.proof_unreceived != null) - if (typeof object.proof_unreceived === "string") - $util.base64.decode(object.proof_unreceived, message.proof_unreceived = $util.newBuffer($util.base64.length(object.proof_unreceived)), 0); - else if (object.proof_unreceived.length) - message.proof_unreceived = object.proof_unreceived; - if (object.proof_close != null) - if (typeof object.proof_close === "string") - $util.base64.decode(object.proof_close, message.proof_close = $util.newBuffer($util.base64.length(object.proof_close)), 0); - else if (object.proof_close.length) - message.proof_close = object.proof_close; - if (object.proof_height != null) { - if (typeof object.proof_height !== "object") - throw TypeError(".ibc.core.channel.v1.MsgTimeoutOnClose.proof_height: object expected"); - message.proof_height = $root.ibc.core.client.v1.Height.fromObject(object.proof_height); + let message = new $root.ibc.core.channel.v1.MsgChannelOpenInit(); + if (object.port_id != null) + message.port_id = String(object.port_id); + if (object.channel != null) { + if (typeof object.channel !== "object") + throw TypeError(".ibc.core.channel.v1.MsgChannelOpenInit.channel: object expected"); + message.channel = $root.ibc.core.channel.v1.Channel.fromObject(object.channel); } - if (object.next_sequence_recv != null) - if ($util.Long) - (message.next_sequence_recv = $util.Long.fromValue(object.next_sequence_recv)).unsigned = true; - else if (typeof object.next_sequence_recv === "string") - message.next_sequence_recv = parseInt(object.next_sequence_recv, 10); - else if (typeof object.next_sequence_recv === "number") - message.next_sequence_recv = object.next_sequence_recv; - else if (typeof object.next_sequence_recv === "object") - message.next_sequence_recv = new $util.LongBits(object.next_sequence_recv.low >>> 0, object.next_sequence_recv.high >>> 0).toNumber(true); if (object.signer != null) message.signer = String(object.signer); return message; }; /** - * Creates a plain object from a MsgTimeoutOnClose message. Also converts values to other types if specified. + * Creates a plain object from a MsgChannelOpenInit message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.channel.v1.MsgTimeoutOnClose + * @memberof ibc.core.channel.v1.MsgChannelOpenInit * @static - * @param {ibc.core.channel.v1.MsgTimeoutOnClose} message MsgTimeoutOnClose + * @param {ibc.core.channel.v1.MsgChannelOpenInit} message MsgChannelOpenInit * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MsgTimeoutOnClose.toObject = function toObject(message, options) { + MsgChannelOpenInit.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - object.packet = null; - if (options.bytes === String) - object.proof_unreceived = ""; - else { - object.proof_unreceived = []; - if (options.bytes !== Array) - object.proof_unreceived = $util.newBuffer(object.proof_unreceived); - } - if (options.bytes === String) - object.proof_close = ""; - else { - object.proof_close = []; - if (options.bytes !== Array) - object.proof_close = $util.newBuffer(object.proof_close); - } - object.proof_height = null; - if ($util.Long) { - let long = new $util.Long(0, 0, true); - object.next_sequence_recv = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.next_sequence_recv = options.longs === String ? "0" : 0; + object.port_id = ""; + object.channel = null; object.signer = ""; } - if (message.packet != null && message.hasOwnProperty("packet")) - object.packet = $root.ibc.core.channel.v1.Packet.toObject(message.packet, options); - if (message.proof_unreceived != null && message.hasOwnProperty("proof_unreceived")) - object.proof_unreceived = options.bytes === String ? $util.base64.encode(message.proof_unreceived, 0, message.proof_unreceived.length) : options.bytes === Array ? Array.prototype.slice.call(message.proof_unreceived) : message.proof_unreceived; - if (message.proof_close != null && message.hasOwnProperty("proof_close")) - object.proof_close = options.bytes === String ? $util.base64.encode(message.proof_close, 0, message.proof_close.length) : options.bytes === Array ? Array.prototype.slice.call(message.proof_close) : message.proof_close; - if (message.proof_height != null && message.hasOwnProperty("proof_height")) - object.proof_height = $root.ibc.core.client.v1.Height.toObject(message.proof_height, options); - if (message.next_sequence_recv != null && message.hasOwnProperty("next_sequence_recv")) - if (typeof message.next_sequence_recv === "number") - object.next_sequence_recv = options.longs === String ? String(message.next_sequence_recv) : message.next_sequence_recv; - else - object.next_sequence_recv = options.longs === String ? $util.Long.prototype.toString.call(message.next_sequence_recv) : options.longs === Number ? new $util.LongBits(message.next_sequence_recv.low >>> 0, message.next_sequence_recv.high >>> 0).toNumber(true) : message.next_sequence_recv; + if (message.port_id != null && message.hasOwnProperty("port_id")) + object.port_id = message.port_id; + if (message.channel != null && message.hasOwnProperty("channel")) + object.channel = $root.ibc.core.channel.v1.Channel.toObject(message.channel, options); if (message.signer != null && message.hasOwnProperty("signer")) object.signer = message.signer; return object; }; /** - * Converts this MsgTimeoutOnClose to JSON. + * Converts this MsgChannelOpenInit to JSON. * @function toJSON - * @memberof ibc.core.channel.v1.MsgTimeoutOnClose + * @memberof ibc.core.channel.v1.MsgChannelOpenInit * @instance * @returns {Object.} JSON object */ - MsgTimeoutOnClose.prototype.toJSON = function toJSON() { + MsgChannelOpenInit.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MsgTimeoutOnClose; + return MsgChannelOpenInit; })(); - v1.MsgTimeoutOnCloseResponse = (function() { + v1.MsgChannelOpenInitResponse = (function() { /** - * Properties of a MsgTimeoutOnCloseResponse. + * Properties of a MsgChannelOpenInitResponse. * @memberof ibc.core.channel.v1 - * @interface IMsgTimeoutOnCloseResponse - * @property {ibc.core.channel.v1.ResponseResultType|null} [result] MsgTimeoutOnCloseResponse result + * @interface IMsgChannelOpenInitResponse + * @property {string|null} [channel_id] MsgChannelOpenInitResponse channel_id + * @property {string|null} [version] MsgChannelOpenInitResponse version */ /** - * Constructs a new MsgTimeoutOnCloseResponse. + * Constructs a new MsgChannelOpenInitResponse. * @memberof ibc.core.channel.v1 - * @classdesc Represents a MsgTimeoutOnCloseResponse. - * @implements IMsgTimeoutOnCloseResponse + * @classdesc Represents a MsgChannelOpenInitResponse. + * @implements IMsgChannelOpenInitResponse * @constructor - * @param {ibc.core.channel.v1.IMsgTimeoutOnCloseResponse=} [properties] Properties to set + * @param {ibc.core.channel.v1.IMsgChannelOpenInitResponse=} [properties] Properties to set */ - function MsgTimeoutOnCloseResponse(properties) { + function MsgChannelOpenInitResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -40499,63 +47299,76 @@ export const ibc = $root.ibc = (() => { } /** - * MsgTimeoutOnCloseResponse result. - * @member {ibc.core.channel.v1.ResponseResultType} result - * @memberof ibc.core.channel.v1.MsgTimeoutOnCloseResponse + * MsgChannelOpenInitResponse channel_id. + * @member {string} channel_id + * @memberof ibc.core.channel.v1.MsgChannelOpenInitResponse * @instance */ - MsgTimeoutOnCloseResponse.prototype.result = 0; + MsgChannelOpenInitResponse.prototype.channel_id = ""; /** - * Encodes the specified MsgTimeoutOnCloseResponse message. Does not implicitly {@link ibc.core.channel.v1.MsgTimeoutOnCloseResponse.verify|verify} messages. + * MsgChannelOpenInitResponse version. + * @member {string} version + * @memberof ibc.core.channel.v1.MsgChannelOpenInitResponse + * @instance + */ + MsgChannelOpenInitResponse.prototype.version = ""; + + /** + * Encodes the specified MsgChannelOpenInitResponse message. Does not implicitly {@link ibc.core.channel.v1.MsgChannelOpenInitResponse.verify|verify} messages. * @function encode - * @memberof ibc.core.channel.v1.MsgTimeoutOnCloseResponse + * @memberof ibc.core.channel.v1.MsgChannelOpenInitResponse * @static - * @param {ibc.core.channel.v1.IMsgTimeoutOnCloseResponse} message MsgTimeoutOnCloseResponse message or plain object to encode + * @param {ibc.core.channel.v1.IMsgChannelOpenInitResponse} message MsgChannelOpenInitResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgTimeoutOnCloseResponse.encode = function encode(message, writer) { + MsgChannelOpenInitResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.result != null && Object.hasOwnProperty.call(message, "result")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.result); + if (message.channel_id != null && Object.hasOwnProperty.call(message, "channel_id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.channel_id); + if (message.version != null && Object.hasOwnProperty.call(message, "version")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.version); return writer; }; /** - * Encodes the specified MsgTimeoutOnCloseResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.MsgTimeoutOnCloseResponse.verify|verify} messages. + * Encodes the specified MsgChannelOpenInitResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.MsgChannelOpenInitResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.channel.v1.MsgTimeoutOnCloseResponse + * @memberof ibc.core.channel.v1.MsgChannelOpenInitResponse * @static - * @param {ibc.core.channel.v1.IMsgTimeoutOnCloseResponse} message MsgTimeoutOnCloseResponse message or plain object to encode + * @param {ibc.core.channel.v1.IMsgChannelOpenInitResponse} message MsgChannelOpenInitResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgTimeoutOnCloseResponse.encodeDelimited = function encodeDelimited(message, writer) { + MsgChannelOpenInitResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MsgTimeoutOnCloseResponse message from the specified reader or buffer. + * Decodes a MsgChannelOpenInitResponse message from the specified reader or buffer. * @function decode - * @memberof ibc.core.channel.v1.MsgTimeoutOnCloseResponse + * @memberof ibc.core.channel.v1.MsgChannelOpenInitResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.channel.v1.MsgTimeoutOnCloseResponse} MsgTimeoutOnCloseResponse + * @returns {ibc.core.channel.v1.MsgChannelOpenInitResponse} MsgChannelOpenInitResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgTimeoutOnCloseResponse.decode = function decode(reader, length) { + MsgChannelOpenInitResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.MsgTimeoutOnCloseResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.MsgChannelOpenInitResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.result = reader.int32(); + message.channel_id = reader.string(); + break; + case 2: + message.version = reader.string(); break; default: reader.skipType(tag & 7); @@ -40566,129 +47379,122 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a MsgTimeoutOnCloseResponse message from the specified reader or buffer, length delimited. + * Decodes a MsgChannelOpenInitResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.channel.v1.MsgTimeoutOnCloseResponse + * @memberof ibc.core.channel.v1.MsgChannelOpenInitResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.channel.v1.MsgTimeoutOnCloseResponse} MsgTimeoutOnCloseResponse + * @returns {ibc.core.channel.v1.MsgChannelOpenInitResponse} MsgChannelOpenInitResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgTimeoutOnCloseResponse.decodeDelimited = function decodeDelimited(reader) { + MsgChannelOpenInitResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MsgTimeoutOnCloseResponse message. + * Verifies a MsgChannelOpenInitResponse message. * @function verify - * @memberof ibc.core.channel.v1.MsgTimeoutOnCloseResponse + * @memberof ibc.core.channel.v1.MsgChannelOpenInitResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MsgTimeoutOnCloseResponse.verify = function verify(message) { + MsgChannelOpenInitResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.result != null && message.hasOwnProperty("result")) - switch (message.result) { - default: - return "result: enum value expected"; - case 0: - case 1: - case 2: - break; - } + if (message.channel_id != null && message.hasOwnProperty("channel_id")) + if (!$util.isString(message.channel_id)) + return "channel_id: string expected"; + if (message.version != null && message.hasOwnProperty("version")) + if (!$util.isString(message.version)) + return "version: string expected"; return null; }; /** - * Creates a MsgTimeoutOnCloseResponse message from a plain object. Also converts values to their respective internal types. + * Creates a MsgChannelOpenInitResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.channel.v1.MsgTimeoutOnCloseResponse + * @memberof ibc.core.channel.v1.MsgChannelOpenInitResponse * @static * @param {Object.} object Plain object - * @returns {ibc.core.channel.v1.MsgTimeoutOnCloseResponse} MsgTimeoutOnCloseResponse + * @returns {ibc.core.channel.v1.MsgChannelOpenInitResponse} MsgChannelOpenInitResponse */ - MsgTimeoutOnCloseResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.channel.v1.MsgTimeoutOnCloseResponse) + MsgChannelOpenInitResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.channel.v1.MsgChannelOpenInitResponse) return object; - let message = new $root.ibc.core.channel.v1.MsgTimeoutOnCloseResponse(); - switch (object.result) { - case "RESPONSE_RESULT_TYPE_UNSPECIFIED": - case 0: - message.result = 0; - break; - case "RESPONSE_RESULT_TYPE_NOOP": - case 1: - message.result = 1; - break; - case "RESPONSE_RESULT_TYPE_SUCCESS": - case 2: - message.result = 2; - break; - } + let message = new $root.ibc.core.channel.v1.MsgChannelOpenInitResponse(); + if (object.channel_id != null) + message.channel_id = String(object.channel_id); + if (object.version != null) + message.version = String(object.version); return message; }; /** - * Creates a plain object from a MsgTimeoutOnCloseResponse message. Also converts values to other types if specified. + * Creates a plain object from a MsgChannelOpenInitResponse message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.channel.v1.MsgTimeoutOnCloseResponse + * @memberof ibc.core.channel.v1.MsgChannelOpenInitResponse * @static - * @param {ibc.core.channel.v1.MsgTimeoutOnCloseResponse} message MsgTimeoutOnCloseResponse + * @param {ibc.core.channel.v1.MsgChannelOpenInitResponse} message MsgChannelOpenInitResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MsgTimeoutOnCloseResponse.toObject = function toObject(message, options) { + MsgChannelOpenInitResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) - object.result = options.enums === String ? "RESPONSE_RESULT_TYPE_UNSPECIFIED" : 0; - if (message.result != null && message.hasOwnProperty("result")) - object.result = options.enums === String ? $root.ibc.core.channel.v1.ResponseResultType[message.result] : message.result; + if (options.defaults) { + object.channel_id = ""; + object.version = ""; + } + if (message.channel_id != null && message.hasOwnProperty("channel_id")) + object.channel_id = message.channel_id; + if (message.version != null && message.hasOwnProperty("version")) + object.version = message.version; return object; }; /** - * Converts this MsgTimeoutOnCloseResponse to JSON. + * Converts this MsgChannelOpenInitResponse to JSON. * @function toJSON - * @memberof ibc.core.channel.v1.MsgTimeoutOnCloseResponse + * @memberof ibc.core.channel.v1.MsgChannelOpenInitResponse * @instance * @returns {Object.} JSON object */ - MsgTimeoutOnCloseResponse.prototype.toJSON = function toJSON() { + MsgChannelOpenInitResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MsgTimeoutOnCloseResponse; + return MsgChannelOpenInitResponse; })(); - v1.MsgAcknowledgement = (function() { + v1.MsgChannelOpenTry = (function() { /** - * Properties of a MsgAcknowledgement. + * Properties of a MsgChannelOpenTry. * @memberof ibc.core.channel.v1 - * @interface IMsgAcknowledgement - * @property {ibc.core.channel.v1.IPacket|null} [packet] MsgAcknowledgement packet - * @property {Uint8Array|null} [acknowledgement] MsgAcknowledgement acknowledgement - * @property {Uint8Array|null} [proof_acked] MsgAcknowledgement proof_acked - * @property {ibc.core.client.v1.IHeight|null} [proof_height] MsgAcknowledgement proof_height - * @property {string|null} [signer] MsgAcknowledgement signer + * @interface IMsgChannelOpenTry + * @property {string|null} [port_id] MsgChannelOpenTry port_id + * @property {string|null} [previous_channel_id] MsgChannelOpenTry previous_channel_id + * @property {ibc.core.channel.v1.IChannel|null} [channel] MsgChannelOpenTry channel + * @property {string|null} [counterparty_version] MsgChannelOpenTry counterparty_version + * @property {Uint8Array|null} [proof_init] MsgChannelOpenTry proof_init + * @property {ibc.core.client.v1.IHeight|null} [proof_height] MsgChannelOpenTry proof_height + * @property {string|null} [signer] MsgChannelOpenTry signer */ /** - * Constructs a new MsgAcknowledgement. + * Constructs a new MsgChannelOpenTry. * @memberof ibc.core.channel.v1 - * @classdesc Represents a MsgAcknowledgement. - * @implements IMsgAcknowledgement + * @classdesc Represents a MsgChannelOpenTry. + * @implements IMsgChannelOpenTry * @constructor - * @param {ibc.core.channel.v1.IMsgAcknowledgement=} [properties] Properties to set + * @param {ibc.core.channel.v1.IMsgChannelOpenTry=} [properties] Properties to set */ - function MsgAcknowledgement(properties) { + function MsgChannelOpenTry(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -40696,114 +47502,140 @@ export const ibc = $root.ibc = (() => { } /** - * MsgAcknowledgement packet. - * @member {ibc.core.channel.v1.IPacket|null|undefined} packet - * @memberof ibc.core.channel.v1.MsgAcknowledgement + * MsgChannelOpenTry port_id. + * @member {string} port_id + * @memberof ibc.core.channel.v1.MsgChannelOpenTry * @instance */ - MsgAcknowledgement.prototype.packet = null; + MsgChannelOpenTry.prototype.port_id = ""; /** - * MsgAcknowledgement acknowledgement. - * @member {Uint8Array} acknowledgement - * @memberof ibc.core.channel.v1.MsgAcknowledgement + * MsgChannelOpenTry previous_channel_id. + * @member {string} previous_channel_id + * @memberof ibc.core.channel.v1.MsgChannelOpenTry * @instance */ - MsgAcknowledgement.prototype.acknowledgement = $util.newBuffer([]); + MsgChannelOpenTry.prototype.previous_channel_id = ""; /** - * MsgAcknowledgement proof_acked. - * @member {Uint8Array} proof_acked - * @memberof ibc.core.channel.v1.MsgAcknowledgement + * MsgChannelOpenTry channel. + * @member {ibc.core.channel.v1.IChannel|null|undefined} channel + * @memberof ibc.core.channel.v1.MsgChannelOpenTry * @instance */ - MsgAcknowledgement.prototype.proof_acked = $util.newBuffer([]); + MsgChannelOpenTry.prototype.channel = null; /** - * MsgAcknowledgement proof_height. + * MsgChannelOpenTry counterparty_version. + * @member {string} counterparty_version + * @memberof ibc.core.channel.v1.MsgChannelOpenTry + * @instance + */ + MsgChannelOpenTry.prototype.counterparty_version = ""; + + /** + * MsgChannelOpenTry proof_init. + * @member {Uint8Array} proof_init + * @memberof ibc.core.channel.v1.MsgChannelOpenTry + * @instance + */ + MsgChannelOpenTry.prototype.proof_init = $util.newBuffer([]); + + /** + * MsgChannelOpenTry proof_height. * @member {ibc.core.client.v1.IHeight|null|undefined} proof_height - * @memberof ibc.core.channel.v1.MsgAcknowledgement + * @memberof ibc.core.channel.v1.MsgChannelOpenTry * @instance */ - MsgAcknowledgement.prototype.proof_height = null; + MsgChannelOpenTry.prototype.proof_height = null; /** - * MsgAcknowledgement signer. + * MsgChannelOpenTry signer. * @member {string} signer - * @memberof ibc.core.channel.v1.MsgAcknowledgement + * @memberof ibc.core.channel.v1.MsgChannelOpenTry * @instance */ - MsgAcknowledgement.prototype.signer = ""; + MsgChannelOpenTry.prototype.signer = ""; /** - * Encodes the specified MsgAcknowledgement message. Does not implicitly {@link ibc.core.channel.v1.MsgAcknowledgement.verify|verify} messages. + * Encodes the specified MsgChannelOpenTry message. Does not implicitly {@link ibc.core.channel.v1.MsgChannelOpenTry.verify|verify} messages. * @function encode - * @memberof ibc.core.channel.v1.MsgAcknowledgement + * @memberof ibc.core.channel.v1.MsgChannelOpenTry * @static - * @param {ibc.core.channel.v1.IMsgAcknowledgement} message MsgAcknowledgement message or plain object to encode + * @param {ibc.core.channel.v1.IMsgChannelOpenTry} message MsgChannelOpenTry message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgAcknowledgement.encode = function encode(message, writer) { + MsgChannelOpenTry.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.packet != null && Object.hasOwnProperty.call(message, "packet")) - $root.ibc.core.channel.v1.Packet.encode(message.packet, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.acknowledgement != null && Object.hasOwnProperty.call(message, "acknowledgement")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.acknowledgement); - if (message.proof_acked != null && Object.hasOwnProperty.call(message, "proof_acked")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.proof_acked); + if (message.port_id != null && Object.hasOwnProperty.call(message, "port_id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.port_id); + if (message.previous_channel_id != null && Object.hasOwnProperty.call(message, "previous_channel_id")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.previous_channel_id); + if (message.channel != null && Object.hasOwnProperty.call(message, "channel")) + $root.ibc.core.channel.v1.Channel.encode(message.channel, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.counterparty_version != null && Object.hasOwnProperty.call(message, "counterparty_version")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.counterparty_version); + if (message.proof_init != null && Object.hasOwnProperty.call(message, "proof_init")) + writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.proof_init); if (message.proof_height != null && Object.hasOwnProperty.call(message, "proof_height")) - $root.ibc.core.client.v1.Height.encode(message.proof_height, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + $root.ibc.core.client.v1.Height.encode(message.proof_height, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); if (message.signer != null && Object.hasOwnProperty.call(message, "signer")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.signer); + writer.uint32(/* id 7, wireType 2 =*/58).string(message.signer); return writer; }; /** - * Encodes the specified MsgAcknowledgement message, length delimited. Does not implicitly {@link ibc.core.channel.v1.MsgAcknowledgement.verify|verify} messages. + * Encodes the specified MsgChannelOpenTry message, length delimited. Does not implicitly {@link ibc.core.channel.v1.MsgChannelOpenTry.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.channel.v1.MsgAcknowledgement + * @memberof ibc.core.channel.v1.MsgChannelOpenTry * @static - * @param {ibc.core.channel.v1.IMsgAcknowledgement} message MsgAcknowledgement message or plain object to encode + * @param {ibc.core.channel.v1.IMsgChannelOpenTry} message MsgChannelOpenTry message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgAcknowledgement.encodeDelimited = function encodeDelimited(message, writer) { + MsgChannelOpenTry.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MsgAcknowledgement message from the specified reader or buffer. + * Decodes a MsgChannelOpenTry message from the specified reader or buffer. * @function decode - * @memberof ibc.core.channel.v1.MsgAcknowledgement + * @memberof ibc.core.channel.v1.MsgChannelOpenTry * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.channel.v1.MsgAcknowledgement} MsgAcknowledgement + * @returns {ibc.core.channel.v1.MsgChannelOpenTry} MsgChannelOpenTry * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgAcknowledgement.decode = function decode(reader, length) { + MsgChannelOpenTry.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.MsgAcknowledgement(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.MsgChannelOpenTry(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.packet = $root.ibc.core.channel.v1.Packet.decode(reader, reader.uint32()); + message.port_id = reader.string(); break; case 2: - message.acknowledgement = reader.bytes(); + message.previous_channel_id = reader.string(); break; case 3: - message.proof_acked = reader.bytes(); + message.channel = $root.ibc.core.channel.v1.Channel.decode(reader, reader.uint32()); break; case 4: - message.proof_height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); + message.counterparty_version = reader.string(); break; case 5: + message.proof_init = reader.bytes(); + break; + case 6: + message.proof_height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); + break; + case 7: message.signer = reader.string(); break; default: @@ -40815,43 +47647,49 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a MsgAcknowledgement message from the specified reader or buffer, length delimited. + * Decodes a MsgChannelOpenTry message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.channel.v1.MsgAcknowledgement + * @memberof ibc.core.channel.v1.MsgChannelOpenTry * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.channel.v1.MsgAcknowledgement} MsgAcknowledgement + * @returns {ibc.core.channel.v1.MsgChannelOpenTry} MsgChannelOpenTry * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgAcknowledgement.decodeDelimited = function decodeDelimited(reader) { + MsgChannelOpenTry.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MsgAcknowledgement message. + * Verifies a MsgChannelOpenTry message. * @function verify - * @memberof ibc.core.channel.v1.MsgAcknowledgement + * @memberof ibc.core.channel.v1.MsgChannelOpenTry * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MsgAcknowledgement.verify = function verify(message) { + MsgChannelOpenTry.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.packet != null && message.hasOwnProperty("packet")) { - let error = $root.ibc.core.channel.v1.Packet.verify(message.packet); + if (message.port_id != null && message.hasOwnProperty("port_id")) + if (!$util.isString(message.port_id)) + return "port_id: string expected"; + if (message.previous_channel_id != null && message.hasOwnProperty("previous_channel_id")) + if (!$util.isString(message.previous_channel_id)) + return "previous_channel_id: string expected"; + if (message.channel != null && message.hasOwnProperty("channel")) { + let error = $root.ibc.core.channel.v1.Channel.verify(message.channel); if (error) - return "packet." + error; + return "channel." + error; } - if (message.acknowledgement != null && message.hasOwnProperty("acknowledgement")) - if (!(message.acknowledgement && typeof message.acknowledgement.length === "number" || $util.isString(message.acknowledgement))) - return "acknowledgement: buffer expected"; - if (message.proof_acked != null && message.hasOwnProperty("proof_acked")) - if (!(message.proof_acked && typeof message.proof_acked.length === "number" || $util.isString(message.proof_acked))) - return "proof_acked: buffer expected"; + if (message.counterparty_version != null && message.hasOwnProperty("counterparty_version")) + if (!$util.isString(message.counterparty_version)) + return "counterparty_version: string expected"; + if (message.proof_init != null && message.hasOwnProperty("proof_init")) + if (!(message.proof_init && typeof message.proof_init.length === "number" || $util.isString(message.proof_init))) + return "proof_init: buffer expected"; if (message.proof_height != null && message.hasOwnProperty("proof_height")) { let error = $root.ibc.core.client.v1.Height.verify(message.proof_height); if (error) @@ -40864,35 +47702,36 @@ export const ibc = $root.ibc = (() => { }; /** - * Creates a MsgAcknowledgement message from a plain object. Also converts values to their respective internal types. + * Creates a MsgChannelOpenTry message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.channel.v1.MsgAcknowledgement + * @memberof ibc.core.channel.v1.MsgChannelOpenTry * @static * @param {Object.} object Plain object - * @returns {ibc.core.channel.v1.MsgAcknowledgement} MsgAcknowledgement + * @returns {ibc.core.channel.v1.MsgChannelOpenTry} MsgChannelOpenTry */ - MsgAcknowledgement.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.channel.v1.MsgAcknowledgement) + MsgChannelOpenTry.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.channel.v1.MsgChannelOpenTry) return object; - let message = new $root.ibc.core.channel.v1.MsgAcknowledgement(); - if (object.packet != null) { - if (typeof object.packet !== "object") - throw TypeError(".ibc.core.channel.v1.MsgAcknowledgement.packet: object expected"); - message.packet = $root.ibc.core.channel.v1.Packet.fromObject(object.packet); + let message = new $root.ibc.core.channel.v1.MsgChannelOpenTry(); + if (object.port_id != null) + message.port_id = String(object.port_id); + if (object.previous_channel_id != null) + message.previous_channel_id = String(object.previous_channel_id); + if (object.channel != null) { + if (typeof object.channel !== "object") + throw TypeError(".ibc.core.channel.v1.MsgChannelOpenTry.channel: object expected"); + message.channel = $root.ibc.core.channel.v1.Channel.fromObject(object.channel); } - if (object.acknowledgement != null) - if (typeof object.acknowledgement === "string") - $util.base64.decode(object.acknowledgement, message.acknowledgement = $util.newBuffer($util.base64.length(object.acknowledgement)), 0); - else if (object.acknowledgement.length) - message.acknowledgement = object.acknowledgement; - if (object.proof_acked != null) - if (typeof object.proof_acked === "string") - $util.base64.decode(object.proof_acked, message.proof_acked = $util.newBuffer($util.base64.length(object.proof_acked)), 0); - else if (object.proof_acked.length) - message.proof_acked = object.proof_acked; + if (object.counterparty_version != null) + message.counterparty_version = String(object.counterparty_version); + if (object.proof_init != null) + if (typeof object.proof_init === "string") + $util.base64.decode(object.proof_init, message.proof_init = $util.newBuffer($util.base64.length(object.proof_init)), 0); + else if (object.proof_init.length) + message.proof_init = object.proof_init; if (object.proof_height != null) { if (typeof object.proof_height !== "object") - throw TypeError(".ibc.core.channel.v1.MsgAcknowledgement.proof_height: object expected"); + throw TypeError(".ibc.core.channel.v1.MsgChannelOpenTry.proof_height: object expected"); message.proof_height = $root.ibc.core.client.v1.Height.fromObject(object.proof_height); } if (object.signer != null) @@ -40901,43 +47740,43 @@ export const ibc = $root.ibc = (() => { }; /** - * Creates a plain object from a MsgAcknowledgement message. Also converts values to other types if specified. + * Creates a plain object from a MsgChannelOpenTry message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.channel.v1.MsgAcknowledgement + * @memberof ibc.core.channel.v1.MsgChannelOpenTry * @static - * @param {ibc.core.channel.v1.MsgAcknowledgement} message MsgAcknowledgement + * @param {ibc.core.channel.v1.MsgChannelOpenTry} message MsgChannelOpenTry * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MsgAcknowledgement.toObject = function toObject(message, options) { + MsgChannelOpenTry.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - object.packet = null; - if (options.bytes === String) - object.acknowledgement = ""; - else { - object.acknowledgement = []; - if (options.bytes !== Array) - object.acknowledgement = $util.newBuffer(object.acknowledgement); - } + object.port_id = ""; + object.previous_channel_id = ""; + object.channel = null; + object.counterparty_version = ""; if (options.bytes === String) - object.proof_acked = ""; + object.proof_init = ""; else { - object.proof_acked = []; + object.proof_init = []; if (options.bytes !== Array) - object.proof_acked = $util.newBuffer(object.proof_acked); + object.proof_init = $util.newBuffer(object.proof_init); } object.proof_height = null; object.signer = ""; } - if (message.packet != null && message.hasOwnProperty("packet")) - object.packet = $root.ibc.core.channel.v1.Packet.toObject(message.packet, options); - if (message.acknowledgement != null && message.hasOwnProperty("acknowledgement")) - object.acknowledgement = options.bytes === String ? $util.base64.encode(message.acknowledgement, 0, message.acknowledgement.length) : options.bytes === Array ? Array.prototype.slice.call(message.acknowledgement) : message.acknowledgement; - if (message.proof_acked != null && message.hasOwnProperty("proof_acked")) - object.proof_acked = options.bytes === String ? $util.base64.encode(message.proof_acked, 0, message.proof_acked.length) : options.bytes === Array ? Array.prototype.slice.call(message.proof_acked) : message.proof_acked; + if (message.port_id != null && message.hasOwnProperty("port_id")) + object.port_id = message.port_id; + if (message.previous_channel_id != null && message.hasOwnProperty("previous_channel_id")) + object.previous_channel_id = message.previous_channel_id; + if (message.channel != null && message.hasOwnProperty("channel")) + object.channel = $root.ibc.core.channel.v1.Channel.toObject(message.channel, options); + if (message.counterparty_version != null && message.hasOwnProperty("counterparty_version")) + object.counterparty_version = message.counterparty_version; + if (message.proof_init != null && message.hasOwnProperty("proof_init")) + object.proof_init = options.bytes === String ? $util.base64.encode(message.proof_init, 0, message.proof_init.length) : options.bytes === Array ? Array.prototype.slice.call(message.proof_init) : message.proof_init; if (message.proof_height != null && message.hasOwnProperty("proof_height")) object.proof_height = $root.ibc.core.client.v1.Height.toObject(message.proof_height, options); if (message.signer != null && message.hasOwnProperty("signer")) @@ -40946,37 +47785,38 @@ export const ibc = $root.ibc = (() => { }; /** - * Converts this MsgAcknowledgement to JSON. + * Converts this MsgChannelOpenTry to JSON. * @function toJSON - * @memberof ibc.core.channel.v1.MsgAcknowledgement + * @memberof ibc.core.channel.v1.MsgChannelOpenTry * @instance * @returns {Object.} JSON object */ - MsgAcknowledgement.prototype.toJSON = function toJSON() { + MsgChannelOpenTry.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MsgAcknowledgement; + return MsgChannelOpenTry; })(); - v1.MsgAcknowledgementResponse = (function() { + v1.MsgChannelOpenTryResponse = (function() { /** - * Properties of a MsgAcknowledgementResponse. + * Properties of a MsgChannelOpenTryResponse. * @memberof ibc.core.channel.v1 - * @interface IMsgAcknowledgementResponse - * @property {ibc.core.channel.v1.ResponseResultType|null} [result] MsgAcknowledgementResponse result + * @interface IMsgChannelOpenTryResponse + * @property {string|null} [version] MsgChannelOpenTryResponse version + * @property {string|null} [channel_id] MsgChannelOpenTryResponse channel_id */ /** - * Constructs a new MsgAcknowledgementResponse. + * Constructs a new MsgChannelOpenTryResponse. * @memberof ibc.core.channel.v1 - * @classdesc Represents a MsgAcknowledgementResponse. - * @implements IMsgAcknowledgementResponse + * @classdesc Represents a MsgChannelOpenTryResponse. + * @implements IMsgChannelOpenTryResponse * @constructor - * @param {ibc.core.channel.v1.IMsgAcknowledgementResponse=} [properties] Properties to set + * @param {ibc.core.channel.v1.IMsgChannelOpenTryResponse=} [properties] Properties to set */ - function MsgAcknowledgementResponse(properties) { + function MsgChannelOpenTryResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -40984,63 +47824,76 @@ export const ibc = $root.ibc = (() => { } /** - * MsgAcknowledgementResponse result. - * @member {ibc.core.channel.v1.ResponseResultType} result - * @memberof ibc.core.channel.v1.MsgAcknowledgementResponse + * MsgChannelOpenTryResponse version. + * @member {string} version + * @memberof ibc.core.channel.v1.MsgChannelOpenTryResponse + * @instance + */ + MsgChannelOpenTryResponse.prototype.version = ""; + + /** + * MsgChannelOpenTryResponse channel_id. + * @member {string} channel_id + * @memberof ibc.core.channel.v1.MsgChannelOpenTryResponse * @instance */ - MsgAcknowledgementResponse.prototype.result = 0; + MsgChannelOpenTryResponse.prototype.channel_id = ""; /** - * Encodes the specified MsgAcknowledgementResponse message. Does not implicitly {@link ibc.core.channel.v1.MsgAcknowledgementResponse.verify|verify} messages. + * Encodes the specified MsgChannelOpenTryResponse message. Does not implicitly {@link ibc.core.channel.v1.MsgChannelOpenTryResponse.verify|verify} messages. * @function encode - * @memberof ibc.core.channel.v1.MsgAcknowledgementResponse + * @memberof ibc.core.channel.v1.MsgChannelOpenTryResponse * @static - * @param {ibc.core.channel.v1.IMsgAcknowledgementResponse} message MsgAcknowledgementResponse message or plain object to encode + * @param {ibc.core.channel.v1.IMsgChannelOpenTryResponse} message MsgChannelOpenTryResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgAcknowledgementResponse.encode = function encode(message, writer) { + MsgChannelOpenTryResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.result != null && Object.hasOwnProperty.call(message, "result")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.result); + if (message.version != null && Object.hasOwnProperty.call(message, "version")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.version); + if (message.channel_id != null && Object.hasOwnProperty.call(message, "channel_id")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.channel_id); return writer; }; /** - * Encodes the specified MsgAcknowledgementResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.MsgAcknowledgementResponse.verify|verify} messages. + * Encodes the specified MsgChannelOpenTryResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.MsgChannelOpenTryResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.channel.v1.MsgAcknowledgementResponse + * @memberof ibc.core.channel.v1.MsgChannelOpenTryResponse * @static - * @param {ibc.core.channel.v1.IMsgAcknowledgementResponse} message MsgAcknowledgementResponse message or plain object to encode + * @param {ibc.core.channel.v1.IMsgChannelOpenTryResponse} message MsgChannelOpenTryResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgAcknowledgementResponse.encodeDelimited = function encodeDelimited(message, writer) { + MsgChannelOpenTryResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MsgAcknowledgementResponse message from the specified reader or buffer. + * Decodes a MsgChannelOpenTryResponse message from the specified reader or buffer. * @function decode - * @memberof ibc.core.channel.v1.MsgAcknowledgementResponse + * @memberof ibc.core.channel.v1.MsgChannelOpenTryResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.channel.v1.MsgAcknowledgementResponse} MsgAcknowledgementResponse + * @returns {ibc.core.channel.v1.MsgChannelOpenTryResponse} MsgChannelOpenTryResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgAcknowledgementResponse.decode = function decode(reader, length) { + MsgChannelOpenTryResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.MsgAcknowledgementResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.MsgChannelOpenTryResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.result = reader.int32(); + message.version = reader.string(); + break; + case 2: + message.channel_id = reader.string(); break; default: reader.skipType(tag & 7); @@ -41051,576 +47904,590 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a MsgAcknowledgementResponse message from the specified reader or buffer, length delimited. + * Decodes a MsgChannelOpenTryResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.channel.v1.MsgAcknowledgementResponse + * @memberof ibc.core.channel.v1.MsgChannelOpenTryResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.channel.v1.MsgAcknowledgementResponse} MsgAcknowledgementResponse + * @returns {ibc.core.channel.v1.MsgChannelOpenTryResponse} MsgChannelOpenTryResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgAcknowledgementResponse.decodeDelimited = function decodeDelimited(reader) { + MsgChannelOpenTryResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MsgAcknowledgementResponse message. + * Verifies a MsgChannelOpenTryResponse message. * @function verify - * @memberof ibc.core.channel.v1.MsgAcknowledgementResponse + * @memberof ibc.core.channel.v1.MsgChannelOpenTryResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MsgAcknowledgementResponse.verify = function verify(message) { + MsgChannelOpenTryResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.result != null && message.hasOwnProperty("result")) - switch (message.result) { - default: - return "result: enum value expected"; - case 0: - case 1: - case 2: - break; - } + if (message.version != null && message.hasOwnProperty("version")) + if (!$util.isString(message.version)) + return "version: string expected"; + if (message.channel_id != null && message.hasOwnProperty("channel_id")) + if (!$util.isString(message.channel_id)) + return "channel_id: string expected"; return null; }; /** - * Creates a MsgAcknowledgementResponse message from a plain object. Also converts values to their respective internal types. + * Creates a MsgChannelOpenTryResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.channel.v1.MsgAcknowledgementResponse + * @memberof ibc.core.channel.v1.MsgChannelOpenTryResponse * @static * @param {Object.} object Plain object - * @returns {ibc.core.channel.v1.MsgAcknowledgementResponse} MsgAcknowledgementResponse + * @returns {ibc.core.channel.v1.MsgChannelOpenTryResponse} MsgChannelOpenTryResponse */ - MsgAcknowledgementResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.channel.v1.MsgAcknowledgementResponse) + MsgChannelOpenTryResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.channel.v1.MsgChannelOpenTryResponse) return object; - let message = new $root.ibc.core.channel.v1.MsgAcknowledgementResponse(); - switch (object.result) { - case "RESPONSE_RESULT_TYPE_UNSPECIFIED": - case 0: - message.result = 0; - break; - case "RESPONSE_RESULT_TYPE_NOOP": - case 1: - message.result = 1; - break; - case "RESPONSE_RESULT_TYPE_SUCCESS": - case 2: - message.result = 2; - break; - } + let message = new $root.ibc.core.channel.v1.MsgChannelOpenTryResponse(); + if (object.version != null) + message.version = String(object.version); + if (object.channel_id != null) + message.channel_id = String(object.channel_id); return message; }; /** - * Creates a plain object from a MsgAcknowledgementResponse message. Also converts values to other types if specified. + * Creates a plain object from a MsgChannelOpenTryResponse message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.channel.v1.MsgAcknowledgementResponse + * @memberof ibc.core.channel.v1.MsgChannelOpenTryResponse * @static - * @param {ibc.core.channel.v1.MsgAcknowledgementResponse} message MsgAcknowledgementResponse + * @param {ibc.core.channel.v1.MsgChannelOpenTryResponse} message MsgChannelOpenTryResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MsgAcknowledgementResponse.toObject = function toObject(message, options) { + MsgChannelOpenTryResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) - object.result = options.enums === String ? "RESPONSE_RESULT_TYPE_UNSPECIFIED" : 0; - if (message.result != null && message.hasOwnProperty("result")) - object.result = options.enums === String ? $root.ibc.core.channel.v1.ResponseResultType[message.result] : message.result; + if (options.defaults) { + object.version = ""; + object.channel_id = ""; + } + if (message.version != null && message.hasOwnProperty("version")) + object.version = message.version; + if (message.channel_id != null && message.hasOwnProperty("channel_id")) + object.channel_id = message.channel_id; return object; }; /** - * Converts this MsgAcknowledgementResponse to JSON. + * Converts this MsgChannelOpenTryResponse to JSON. * @function toJSON - * @memberof ibc.core.channel.v1.MsgAcknowledgementResponse + * @memberof ibc.core.channel.v1.MsgChannelOpenTryResponse * @instance * @returns {Object.} JSON object */ - MsgAcknowledgementResponse.prototype.toJSON = function toJSON() { + MsgChannelOpenTryResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MsgAcknowledgementResponse; + return MsgChannelOpenTryResponse; })(); - v1.Query = (function() { + v1.MsgChannelOpenAck = (function() { /** - * Constructs a new Query service. + * Properties of a MsgChannelOpenAck. * @memberof ibc.core.channel.v1 - * @classdesc Represents a Query - * @extends $protobuf.rpc.Service - * @constructor - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - */ - function Query(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } - - (Query.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Query; - - /** - * Callback as used by {@link ibc.core.channel.v1.Query#channel}. - * @memberof ibc.core.channel.v1.Query - * @typedef ChannelCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.core.channel.v1.QueryChannelResponse} [response] QueryChannelResponse - */ - - /** - * Calls Channel. - * @function channel - * @memberof ibc.core.channel.v1.Query - * @instance - * @param {ibc.core.channel.v1.IQueryChannelRequest} request QueryChannelRequest message or plain object - * @param {ibc.core.channel.v1.Query.ChannelCallback} callback Node-style callback called with the error, if any, and QueryChannelResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Query.prototype.channel = function channel(request, callback) { - return this.rpcCall(channel, $root.ibc.core.channel.v1.QueryChannelRequest, $root.ibc.core.channel.v1.QueryChannelResponse, request, callback); - }, "name", { value: "Channel" }); - - /** - * Calls Channel. - * @function channel - * @memberof ibc.core.channel.v1.Query - * @instance - * @param {ibc.core.channel.v1.IQueryChannelRequest} request QueryChannelRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link ibc.core.channel.v1.Query#channels}. - * @memberof ibc.core.channel.v1.Query - * @typedef ChannelsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.core.channel.v1.QueryChannelsResponse} [response] QueryChannelsResponse - */ - - /** - * Calls Channels. - * @function channels - * @memberof ibc.core.channel.v1.Query - * @instance - * @param {ibc.core.channel.v1.IQueryChannelsRequest} request QueryChannelsRequest message or plain object - * @param {ibc.core.channel.v1.Query.ChannelsCallback} callback Node-style callback called with the error, if any, and QueryChannelsResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Query.prototype.channels = function channels(request, callback) { - return this.rpcCall(channels, $root.ibc.core.channel.v1.QueryChannelsRequest, $root.ibc.core.channel.v1.QueryChannelsResponse, request, callback); - }, "name", { value: "Channels" }); - - /** - * Calls Channels. - * @function channels - * @memberof ibc.core.channel.v1.Query - * @instance - * @param {ibc.core.channel.v1.IQueryChannelsRequest} request QueryChannelsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link ibc.core.channel.v1.Query#connectionChannels}. - * @memberof ibc.core.channel.v1.Query - * @typedef ConnectionChannelsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.core.channel.v1.QueryConnectionChannelsResponse} [response] QueryConnectionChannelsResponse - */ - - /** - * Calls ConnectionChannels. - * @function connectionChannels - * @memberof ibc.core.channel.v1.Query - * @instance - * @param {ibc.core.channel.v1.IQueryConnectionChannelsRequest} request QueryConnectionChannelsRequest message or plain object - * @param {ibc.core.channel.v1.Query.ConnectionChannelsCallback} callback Node-style callback called with the error, if any, and QueryConnectionChannelsResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Query.prototype.connectionChannels = function connectionChannels(request, callback) { - return this.rpcCall(connectionChannels, $root.ibc.core.channel.v1.QueryConnectionChannelsRequest, $root.ibc.core.channel.v1.QueryConnectionChannelsResponse, request, callback); - }, "name", { value: "ConnectionChannels" }); - - /** - * Calls ConnectionChannels. - * @function connectionChannels - * @memberof ibc.core.channel.v1.Query - * @instance - * @param {ibc.core.channel.v1.IQueryConnectionChannelsRequest} request QueryConnectionChannelsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link ibc.core.channel.v1.Query#channelClientState}. - * @memberof ibc.core.channel.v1.Query - * @typedef ChannelClientStateCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.core.channel.v1.QueryChannelClientStateResponse} [response] QueryChannelClientStateResponse + * @interface IMsgChannelOpenAck + * @property {string|null} [port_id] MsgChannelOpenAck port_id + * @property {string|null} [channel_id] MsgChannelOpenAck channel_id + * @property {string|null} [counterparty_channel_id] MsgChannelOpenAck counterparty_channel_id + * @property {string|null} [counterparty_version] MsgChannelOpenAck counterparty_version + * @property {Uint8Array|null} [proof_try] MsgChannelOpenAck proof_try + * @property {ibc.core.client.v1.IHeight|null} [proof_height] MsgChannelOpenAck proof_height + * @property {string|null} [signer] MsgChannelOpenAck signer */ /** - * Calls ChannelClientState. - * @function channelClientState - * @memberof ibc.core.channel.v1.Query - * @instance - * @param {ibc.core.channel.v1.IQueryChannelClientStateRequest} request QueryChannelClientStateRequest message or plain object - * @param {ibc.core.channel.v1.Query.ChannelClientStateCallback} callback Node-style callback called with the error, if any, and QueryChannelClientStateResponse - * @returns {undefined} - * @variation 1 + * Constructs a new MsgChannelOpenAck. + * @memberof ibc.core.channel.v1 + * @classdesc Represents a MsgChannelOpenAck. + * @implements IMsgChannelOpenAck + * @constructor + * @param {ibc.core.channel.v1.IMsgChannelOpenAck=} [properties] Properties to set */ - Object.defineProperty(Query.prototype.channelClientState = function channelClientState(request, callback) { - return this.rpcCall(channelClientState, $root.ibc.core.channel.v1.QueryChannelClientStateRequest, $root.ibc.core.channel.v1.QueryChannelClientStateResponse, request, callback); - }, "name", { value: "ChannelClientState" }); + function MsgChannelOpenAck(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * Calls ChannelClientState. - * @function channelClientState - * @memberof ibc.core.channel.v1.Query + * MsgChannelOpenAck port_id. + * @member {string} port_id + * @memberof ibc.core.channel.v1.MsgChannelOpenAck * @instance - * @param {ibc.core.channel.v1.IQueryChannelClientStateRequest} request QueryChannelClientStateRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link ibc.core.channel.v1.Query#channelConsensusState}. - * @memberof ibc.core.channel.v1.Query - * @typedef ChannelConsensusStateCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.core.channel.v1.QueryChannelConsensusStateResponse} [response] QueryChannelConsensusStateResponse */ + MsgChannelOpenAck.prototype.port_id = ""; /** - * Calls ChannelConsensusState. - * @function channelConsensusState - * @memberof ibc.core.channel.v1.Query + * MsgChannelOpenAck channel_id. + * @member {string} channel_id + * @memberof ibc.core.channel.v1.MsgChannelOpenAck * @instance - * @param {ibc.core.channel.v1.IQueryChannelConsensusStateRequest} request QueryChannelConsensusStateRequest message or plain object - * @param {ibc.core.channel.v1.Query.ChannelConsensusStateCallback} callback Node-style callback called with the error, if any, and QueryChannelConsensusStateResponse - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(Query.prototype.channelConsensusState = function channelConsensusState(request, callback) { - return this.rpcCall(channelConsensusState, $root.ibc.core.channel.v1.QueryChannelConsensusStateRequest, $root.ibc.core.channel.v1.QueryChannelConsensusStateResponse, request, callback); - }, "name", { value: "ChannelConsensusState" }); + MsgChannelOpenAck.prototype.channel_id = ""; /** - * Calls ChannelConsensusState. - * @function channelConsensusState - * @memberof ibc.core.channel.v1.Query + * MsgChannelOpenAck counterparty_channel_id. + * @member {string} counterparty_channel_id + * @memberof ibc.core.channel.v1.MsgChannelOpenAck * @instance - * @param {ibc.core.channel.v1.IQueryChannelConsensusStateRequest} request QueryChannelConsensusStateRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link ibc.core.channel.v1.Query#packetCommitment}. - * @memberof ibc.core.channel.v1.Query - * @typedef PacketCommitmentCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.core.channel.v1.QueryPacketCommitmentResponse} [response] QueryPacketCommitmentResponse */ + MsgChannelOpenAck.prototype.counterparty_channel_id = ""; /** - * Calls PacketCommitment. - * @function packetCommitment - * @memberof ibc.core.channel.v1.Query + * MsgChannelOpenAck counterparty_version. + * @member {string} counterparty_version + * @memberof ibc.core.channel.v1.MsgChannelOpenAck * @instance - * @param {ibc.core.channel.v1.IQueryPacketCommitmentRequest} request QueryPacketCommitmentRequest message or plain object - * @param {ibc.core.channel.v1.Query.PacketCommitmentCallback} callback Node-style callback called with the error, if any, and QueryPacketCommitmentResponse - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(Query.prototype.packetCommitment = function packetCommitment(request, callback) { - return this.rpcCall(packetCommitment, $root.ibc.core.channel.v1.QueryPacketCommitmentRequest, $root.ibc.core.channel.v1.QueryPacketCommitmentResponse, request, callback); - }, "name", { value: "PacketCommitment" }); + MsgChannelOpenAck.prototype.counterparty_version = ""; /** - * Calls PacketCommitment. - * @function packetCommitment - * @memberof ibc.core.channel.v1.Query + * MsgChannelOpenAck proof_try. + * @member {Uint8Array} proof_try + * @memberof ibc.core.channel.v1.MsgChannelOpenAck * @instance - * @param {ibc.core.channel.v1.IQueryPacketCommitmentRequest} request QueryPacketCommitmentRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link ibc.core.channel.v1.Query#packetCommitments}. - * @memberof ibc.core.channel.v1.Query - * @typedef PacketCommitmentsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.core.channel.v1.QueryPacketCommitmentsResponse} [response] QueryPacketCommitmentsResponse */ + MsgChannelOpenAck.prototype.proof_try = $util.newBuffer([]); /** - * Calls PacketCommitments. - * @function packetCommitments - * @memberof ibc.core.channel.v1.Query + * MsgChannelOpenAck proof_height. + * @member {ibc.core.client.v1.IHeight|null|undefined} proof_height + * @memberof ibc.core.channel.v1.MsgChannelOpenAck * @instance - * @param {ibc.core.channel.v1.IQueryPacketCommitmentsRequest} request QueryPacketCommitmentsRequest message or plain object - * @param {ibc.core.channel.v1.Query.PacketCommitmentsCallback} callback Node-style callback called with the error, if any, and QueryPacketCommitmentsResponse - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(Query.prototype.packetCommitments = function packetCommitments(request, callback) { - return this.rpcCall(packetCommitments, $root.ibc.core.channel.v1.QueryPacketCommitmentsRequest, $root.ibc.core.channel.v1.QueryPacketCommitmentsResponse, request, callback); - }, "name", { value: "PacketCommitments" }); + MsgChannelOpenAck.prototype.proof_height = null; /** - * Calls PacketCommitments. - * @function packetCommitments - * @memberof ibc.core.channel.v1.Query + * MsgChannelOpenAck signer. + * @member {string} signer + * @memberof ibc.core.channel.v1.MsgChannelOpenAck * @instance - * @param {ibc.core.channel.v1.IQueryPacketCommitmentsRequest} request QueryPacketCommitmentsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 */ + MsgChannelOpenAck.prototype.signer = ""; /** - * Callback as used by {@link ibc.core.channel.v1.Query#packetReceipt}. - * @memberof ibc.core.channel.v1.Query - * @typedef PacketReceiptCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.core.channel.v1.QueryPacketReceiptResponse} [response] QueryPacketReceiptResponse + * Encodes the specified MsgChannelOpenAck message. Does not implicitly {@link ibc.core.channel.v1.MsgChannelOpenAck.verify|verify} messages. + * @function encode + * @memberof ibc.core.channel.v1.MsgChannelOpenAck + * @static + * @param {ibc.core.channel.v1.IMsgChannelOpenAck} message MsgChannelOpenAck message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ + MsgChannelOpenAck.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.port_id != null && Object.hasOwnProperty.call(message, "port_id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.port_id); + if (message.channel_id != null && Object.hasOwnProperty.call(message, "channel_id")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.channel_id); + if (message.counterparty_channel_id != null && Object.hasOwnProperty.call(message, "counterparty_channel_id")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.counterparty_channel_id); + if (message.counterparty_version != null && Object.hasOwnProperty.call(message, "counterparty_version")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.counterparty_version); + if (message.proof_try != null && Object.hasOwnProperty.call(message, "proof_try")) + writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.proof_try); + if (message.proof_height != null && Object.hasOwnProperty.call(message, "proof_height")) + $root.ibc.core.client.v1.Height.encode(message.proof_height, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.signer != null && Object.hasOwnProperty.call(message, "signer")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.signer); + return writer; + }; /** - * Calls PacketReceipt. - * @function packetReceipt - * @memberof ibc.core.channel.v1.Query - * @instance - * @param {ibc.core.channel.v1.IQueryPacketReceiptRequest} request QueryPacketReceiptRequest message or plain object - * @param {ibc.core.channel.v1.Query.PacketReceiptCallback} callback Node-style callback called with the error, if any, and QueryPacketReceiptResponse - * @returns {undefined} - * @variation 1 + * Encodes the specified MsgChannelOpenAck message, length delimited. Does not implicitly {@link ibc.core.channel.v1.MsgChannelOpenAck.verify|verify} messages. + * @function encodeDelimited + * @memberof ibc.core.channel.v1.MsgChannelOpenAck + * @static + * @param {ibc.core.channel.v1.IMsgChannelOpenAck} message MsgChannelOpenAck message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Object.defineProperty(Query.prototype.packetReceipt = function packetReceipt(request, callback) { - return this.rpcCall(packetReceipt, $root.ibc.core.channel.v1.QueryPacketReceiptRequest, $root.ibc.core.channel.v1.QueryPacketReceiptResponse, request, callback); - }, "name", { value: "PacketReceipt" }); + MsgChannelOpenAck.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Calls PacketReceipt. - * @function packetReceipt - * @memberof ibc.core.channel.v1.Query - * @instance - * @param {ibc.core.channel.v1.IQueryPacketReceiptRequest} request QueryPacketReceiptRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Decodes a MsgChannelOpenAck message from the specified reader or buffer. + * @function decode + * @memberof ibc.core.channel.v1.MsgChannelOpenAck + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {ibc.core.channel.v1.MsgChannelOpenAck} MsgChannelOpenAck + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + MsgChannelOpenAck.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.MsgChannelOpenAck(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.port_id = reader.string(); + break; + case 2: + message.channel_id = reader.string(); + break; + case 3: + message.counterparty_channel_id = reader.string(); + break; + case 4: + message.counterparty_version = reader.string(); + break; + case 5: + message.proof_try = reader.bytes(); + break; + case 6: + message.proof_height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); + break; + case 7: + message.signer = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Callback as used by {@link ibc.core.channel.v1.Query#packetAcknowledgement}. - * @memberof ibc.core.channel.v1.Query - * @typedef PacketAcknowledgementCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.core.channel.v1.QueryPacketAcknowledgementResponse} [response] QueryPacketAcknowledgementResponse + * Decodes a MsgChannelOpenAck message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof ibc.core.channel.v1.MsgChannelOpenAck + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {ibc.core.channel.v1.MsgChannelOpenAck} MsgChannelOpenAck + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + MsgChannelOpenAck.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Calls PacketAcknowledgement. - * @function packetAcknowledgement - * @memberof ibc.core.channel.v1.Query - * @instance - * @param {ibc.core.channel.v1.IQueryPacketAcknowledgementRequest} request QueryPacketAcknowledgementRequest message or plain object - * @param {ibc.core.channel.v1.Query.PacketAcknowledgementCallback} callback Node-style callback called with the error, if any, and QueryPacketAcknowledgementResponse - * @returns {undefined} - * @variation 1 + * Verifies a MsgChannelOpenAck message. + * @function verify + * @memberof ibc.core.channel.v1.MsgChannelOpenAck + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Object.defineProperty(Query.prototype.packetAcknowledgement = function packetAcknowledgement(request, callback) { - return this.rpcCall(packetAcknowledgement, $root.ibc.core.channel.v1.QueryPacketAcknowledgementRequest, $root.ibc.core.channel.v1.QueryPacketAcknowledgementResponse, request, callback); - }, "name", { value: "PacketAcknowledgement" }); + MsgChannelOpenAck.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.port_id != null && message.hasOwnProperty("port_id")) + if (!$util.isString(message.port_id)) + return "port_id: string expected"; + if (message.channel_id != null && message.hasOwnProperty("channel_id")) + if (!$util.isString(message.channel_id)) + return "channel_id: string expected"; + if (message.counterparty_channel_id != null && message.hasOwnProperty("counterparty_channel_id")) + if (!$util.isString(message.counterparty_channel_id)) + return "counterparty_channel_id: string expected"; + if (message.counterparty_version != null && message.hasOwnProperty("counterparty_version")) + if (!$util.isString(message.counterparty_version)) + return "counterparty_version: string expected"; + if (message.proof_try != null && message.hasOwnProperty("proof_try")) + if (!(message.proof_try && typeof message.proof_try.length === "number" || $util.isString(message.proof_try))) + return "proof_try: buffer expected"; + if (message.proof_height != null && message.hasOwnProperty("proof_height")) { + let error = $root.ibc.core.client.v1.Height.verify(message.proof_height); + if (error) + return "proof_height." + error; + } + if (message.signer != null && message.hasOwnProperty("signer")) + if (!$util.isString(message.signer)) + return "signer: string expected"; + return null; + }; /** - * Calls PacketAcknowledgement. - * @function packetAcknowledgement - * @memberof ibc.core.channel.v1.Query - * @instance - * @param {ibc.core.channel.v1.IQueryPacketAcknowledgementRequest} request QueryPacketAcknowledgementRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Creates a MsgChannelOpenAck message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof ibc.core.channel.v1.MsgChannelOpenAck + * @static + * @param {Object.} object Plain object + * @returns {ibc.core.channel.v1.MsgChannelOpenAck} MsgChannelOpenAck */ + MsgChannelOpenAck.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.channel.v1.MsgChannelOpenAck) + return object; + let message = new $root.ibc.core.channel.v1.MsgChannelOpenAck(); + if (object.port_id != null) + message.port_id = String(object.port_id); + if (object.channel_id != null) + message.channel_id = String(object.channel_id); + if (object.counterparty_channel_id != null) + message.counterparty_channel_id = String(object.counterparty_channel_id); + if (object.counterparty_version != null) + message.counterparty_version = String(object.counterparty_version); + if (object.proof_try != null) + if (typeof object.proof_try === "string") + $util.base64.decode(object.proof_try, message.proof_try = $util.newBuffer($util.base64.length(object.proof_try)), 0); + else if (object.proof_try.length) + message.proof_try = object.proof_try; + if (object.proof_height != null) { + if (typeof object.proof_height !== "object") + throw TypeError(".ibc.core.channel.v1.MsgChannelOpenAck.proof_height: object expected"); + message.proof_height = $root.ibc.core.client.v1.Height.fromObject(object.proof_height); + } + if (object.signer != null) + message.signer = String(object.signer); + return message; + }; /** - * Callback as used by {@link ibc.core.channel.v1.Query#packetAcknowledgements}. - * @memberof ibc.core.channel.v1.Query - * @typedef PacketAcknowledgementsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.core.channel.v1.QueryPacketAcknowledgementsResponse} [response] QueryPacketAcknowledgementsResponse + * Creates a plain object from a MsgChannelOpenAck message. Also converts values to other types if specified. + * @function toObject + * @memberof ibc.core.channel.v1.MsgChannelOpenAck + * @static + * @param {ibc.core.channel.v1.MsgChannelOpenAck} message MsgChannelOpenAck + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ + MsgChannelOpenAck.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + object.port_id = ""; + object.channel_id = ""; + object.counterparty_channel_id = ""; + object.counterparty_version = ""; + if (options.bytes === String) + object.proof_try = ""; + else { + object.proof_try = []; + if (options.bytes !== Array) + object.proof_try = $util.newBuffer(object.proof_try); + } + object.proof_height = null; + object.signer = ""; + } + if (message.port_id != null && message.hasOwnProperty("port_id")) + object.port_id = message.port_id; + if (message.channel_id != null && message.hasOwnProperty("channel_id")) + object.channel_id = message.channel_id; + if (message.counterparty_channel_id != null && message.hasOwnProperty("counterparty_channel_id")) + object.counterparty_channel_id = message.counterparty_channel_id; + if (message.counterparty_version != null && message.hasOwnProperty("counterparty_version")) + object.counterparty_version = message.counterparty_version; + if (message.proof_try != null && message.hasOwnProperty("proof_try")) + object.proof_try = options.bytes === String ? $util.base64.encode(message.proof_try, 0, message.proof_try.length) : options.bytes === Array ? Array.prototype.slice.call(message.proof_try) : message.proof_try; + if (message.proof_height != null && message.hasOwnProperty("proof_height")) + object.proof_height = $root.ibc.core.client.v1.Height.toObject(message.proof_height, options); + if (message.signer != null && message.hasOwnProperty("signer")) + object.signer = message.signer; + return object; + }; /** - * Calls PacketAcknowledgements. - * @function packetAcknowledgements - * @memberof ibc.core.channel.v1.Query + * Converts this MsgChannelOpenAck to JSON. + * @function toJSON + * @memberof ibc.core.channel.v1.MsgChannelOpenAck * @instance - * @param {ibc.core.channel.v1.IQueryPacketAcknowledgementsRequest} request QueryPacketAcknowledgementsRequest message or plain object - * @param {ibc.core.channel.v1.Query.PacketAcknowledgementsCallback} callback Node-style callback called with the error, if any, and QueryPacketAcknowledgementsResponse - * @returns {undefined} - * @variation 1 + * @returns {Object.} JSON object */ - Object.defineProperty(Query.prototype.packetAcknowledgements = function packetAcknowledgements(request, callback) { - return this.rpcCall(packetAcknowledgements, $root.ibc.core.channel.v1.QueryPacketAcknowledgementsRequest, $root.ibc.core.channel.v1.QueryPacketAcknowledgementsResponse, request, callback); - }, "name", { value: "PacketAcknowledgements" }); + MsgChannelOpenAck.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return MsgChannelOpenAck; + })(); + + v1.MsgChannelOpenAckResponse = (function() { /** - * Calls PacketAcknowledgements. - * @function packetAcknowledgements - * @memberof ibc.core.channel.v1.Query - * @instance - * @param {ibc.core.channel.v1.IQueryPacketAcknowledgementsRequest} request QueryPacketAcknowledgementsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Properties of a MsgChannelOpenAckResponse. + * @memberof ibc.core.channel.v1 + * @interface IMsgChannelOpenAckResponse */ /** - * Callback as used by {@link ibc.core.channel.v1.Query#unreceivedPackets}. - * @memberof ibc.core.channel.v1.Query - * @typedef UnreceivedPacketsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.core.channel.v1.QueryUnreceivedPacketsResponse} [response] QueryUnreceivedPacketsResponse + * Constructs a new MsgChannelOpenAckResponse. + * @memberof ibc.core.channel.v1 + * @classdesc Represents a MsgChannelOpenAckResponse. + * @implements IMsgChannelOpenAckResponse + * @constructor + * @param {ibc.core.channel.v1.IMsgChannelOpenAckResponse=} [properties] Properties to set */ + function MsgChannelOpenAckResponse(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * Calls UnreceivedPackets. - * @function unreceivedPackets - * @memberof ibc.core.channel.v1.Query - * @instance - * @param {ibc.core.channel.v1.IQueryUnreceivedPacketsRequest} request QueryUnreceivedPacketsRequest message or plain object - * @param {ibc.core.channel.v1.Query.UnreceivedPacketsCallback} callback Node-style callback called with the error, if any, and QueryUnreceivedPacketsResponse - * @returns {undefined} - * @variation 1 + * Encodes the specified MsgChannelOpenAckResponse message. Does not implicitly {@link ibc.core.channel.v1.MsgChannelOpenAckResponse.verify|verify} messages. + * @function encode + * @memberof ibc.core.channel.v1.MsgChannelOpenAckResponse + * @static + * @param {ibc.core.channel.v1.IMsgChannelOpenAckResponse} message MsgChannelOpenAckResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Object.defineProperty(Query.prototype.unreceivedPackets = function unreceivedPackets(request, callback) { - return this.rpcCall(unreceivedPackets, $root.ibc.core.channel.v1.QueryUnreceivedPacketsRequest, $root.ibc.core.channel.v1.QueryUnreceivedPacketsResponse, request, callback); - }, "name", { value: "UnreceivedPackets" }); + MsgChannelOpenAckResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; /** - * Calls UnreceivedPackets. - * @function unreceivedPackets - * @memberof ibc.core.channel.v1.Query - * @instance - * @param {ibc.core.channel.v1.IQueryUnreceivedPacketsRequest} request QueryUnreceivedPacketsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Encodes the specified MsgChannelOpenAckResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.MsgChannelOpenAckResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof ibc.core.channel.v1.MsgChannelOpenAckResponse + * @static + * @param {ibc.core.channel.v1.IMsgChannelOpenAckResponse} message MsgChannelOpenAckResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ + MsgChannelOpenAckResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Callback as used by {@link ibc.core.channel.v1.Query#unreceivedAcks}. - * @memberof ibc.core.channel.v1.Query - * @typedef UnreceivedAcksCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.core.channel.v1.QueryUnreceivedAcksResponse} [response] QueryUnreceivedAcksResponse + * Decodes a MsgChannelOpenAckResponse message from the specified reader or buffer. + * @function decode + * @memberof ibc.core.channel.v1.MsgChannelOpenAckResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {ibc.core.channel.v1.MsgChannelOpenAckResponse} MsgChannelOpenAckResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + MsgChannelOpenAckResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.MsgChannelOpenAckResponse(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Calls UnreceivedAcks. - * @function unreceivedAcks - * @memberof ibc.core.channel.v1.Query - * @instance - * @param {ibc.core.channel.v1.IQueryUnreceivedAcksRequest} request QueryUnreceivedAcksRequest message or plain object - * @param {ibc.core.channel.v1.Query.UnreceivedAcksCallback} callback Node-style callback called with the error, if any, and QueryUnreceivedAcksResponse - * @returns {undefined} - * @variation 1 + * Decodes a MsgChannelOpenAckResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof ibc.core.channel.v1.MsgChannelOpenAckResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {ibc.core.channel.v1.MsgChannelOpenAckResponse} MsgChannelOpenAckResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Object.defineProperty(Query.prototype.unreceivedAcks = function unreceivedAcks(request, callback) { - return this.rpcCall(unreceivedAcks, $root.ibc.core.channel.v1.QueryUnreceivedAcksRequest, $root.ibc.core.channel.v1.QueryUnreceivedAcksResponse, request, callback); - }, "name", { value: "UnreceivedAcks" }); + MsgChannelOpenAckResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Calls UnreceivedAcks. - * @function unreceivedAcks - * @memberof ibc.core.channel.v1.Query - * @instance - * @param {ibc.core.channel.v1.IQueryUnreceivedAcksRequest} request QueryUnreceivedAcksRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Verifies a MsgChannelOpenAckResponse message. + * @function verify + * @memberof ibc.core.channel.v1.MsgChannelOpenAckResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ + MsgChannelOpenAckResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; /** - * Callback as used by {@link ibc.core.channel.v1.Query#nextSequenceReceive}. - * @memberof ibc.core.channel.v1.Query - * @typedef NextSequenceReceiveCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.core.channel.v1.QueryNextSequenceReceiveResponse} [response] QueryNextSequenceReceiveResponse + * Creates a MsgChannelOpenAckResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof ibc.core.channel.v1.MsgChannelOpenAckResponse + * @static + * @param {Object.} object Plain object + * @returns {ibc.core.channel.v1.MsgChannelOpenAckResponse} MsgChannelOpenAckResponse */ + MsgChannelOpenAckResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.channel.v1.MsgChannelOpenAckResponse) + return object; + return new $root.ibc.core.channel.v1.MsgChannelOpenAckResponse(); + }; /** - * Calls NextSequenceReceive. - * @function nextSequenceReceive - * @memberof ibc.core.channel.v1.Query - * @instance - * @param {ibc.core.channel.v1.IQueryNextSequenceReceiveRequest} request QueryNextSequenceReceiveRequest message or plain object - * @param {ibc.core.channel.v1.Query.NextSequenceReceiveCallback} callback Node-style callback called with the error, if any, and QueryNextSequenceReceiveResponse - * @returns {undefined} - * @variation 1 + * Creates a plain object from a MsgChannelOpenAckResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof ibc.core.channel.v1.MsgChannelOpenAckResponse + * @static + * @param {ibc.core.channel.v1.MsgChannelOpenAckResponse} message MsgChannelOpenAckResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - Object.defineProperty(Query.prototype.nextSequenceReceive = function nextSequenceReceive(request, callback) { - return this.rpcCall(nextSequenceReceive, $root.ibc.core.channel.v1.QueryNextSequenceReceiveRequest, $root.ibc.core.channel.v1.QueryNextSequenceReceiveResponse, request, callback); - }, "name", { value: "NextSequenceReceive" }); + MsgChannelOpenAckResponse.toObject = function toObject() { + return {}; + }; /** - * Calls NextSequenceReceive. - * @function nextSequenceReceive - * @memberof ibc.core.channel.v1.Query + * Converts this MsgChannelOpenAckResponse to JSON. + * @function toJSON + * @memberof ibc.core.channel.v1.MsgChannelOpenAckResponse * @instance - * @param {ibc.core.channel.v1.IQueryNextSequenceReceiveRequest} request QueryNextSequenceReceiveRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * @returns {Object.} JSON object */ + MsgChannelOpenAckResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return Query; + return MsgChannelOpenAckResponse; })(); - v1.QueryChannelRequest = (function() { + v1.MsgChannelOpenConfirm = (function() { /** - * Properties of a QueryChannelRequest. + * Properties of a MsgChannelOpenConfirm. * @memberof ibc.core.channel.v1 - * @interface IQueryChannelRequest - * @property {string|null} [port_id] QueryChannelRequest port_id - * @property {string|null} [channel_id] QueryChannelRequest channel_id + * @interface IMsgChannelOpenConfirm + * @property {string|null} [port_id] MsgChannelOpenConfirm port_id + * @property {string|null} [channel_id] MsgChannelOpenConfirm channel_id + * @property {Uint8Array|null} [proof_ack] MsgChannelOpenConfirm proof_ack + * @property {ibc.core.client.v1.IHeight|null} [proof_height] MsgChannelOpenConfirm proof_height + * @property {string|null} [signer] MsgChannelOpenConfirm signer */ /** - * Constructs a new QueryChannelRequest. + * Constructs a new MsgChannelOpenConfirm. * @memberof ibc.core.channel.v1 - * @classdesc Represents a QueryChannelRequest. - * @implements IQueryChannelRequest + * @classdesc Represents a MsgChannelOpenConfirm. + * @implements IMsgChannelOpenConfirm * @constructor - * @param {ibc.core.channel.v1.IQueryChannelRequest=} [properties] Properties to set + * @param {ibc.core.channel.v1.IMsgChannelOpenConfirm=} [properties] Properties to set */ - function QueryChannelRequest(properties) { + function MsgChannelOpenConfirm(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -41628,68 +48495,98 @@ export const ibc = $root.ibc = (() => { } /** - * QueryChannelRequest port_id. + * MsgChannelOpenConfirm port_id. * @member {string} port_id - * @memberof ibc.core.channel.v1.QueryChannelRequest + * @memberof ibc.core.channel.v1.MsgChannelOpenConfirm * @instance */ - QueryChannelRequest.prototype.port_id = ""; + MsgChannelOpenConfirm.prototype.port_id = ""; /** - * QueryChannelRequest channel_id. + * MsgChannelOpenConfirm channel_id. * @member {string} channel_id - * @memberof ibc.core.channel.v1.QueryChannelRequest + * @memberof ibc.core.channel.v1.MsgChannelOpenConfirm * @instance */ - QueryChannelRequest.prototype.channel_id = ""; + MsgChannelOpenConfirm.prototype.channel_id = ""; /** - * Encodes the specified QueryChannelRequest message. Does not implicitly {@link ibc.core.channel.v1.QueryChannelRequest.verify|verify} messages. + * MsgChannelOpenConfirm proof_ack. + * @member {Uint8Array} proof_ack + * @memberof ibc.core.channel.v1.MsgChannelOpenConfirm + * @instance + */ + MsgChannelOpenConfirm.prototype.proof_ack = $util.newBuffer([]); + + /** + * MsgChannelOpenConfirm proof_height. + * @member {ibc.core.client.v1.IHeight|null|undefined} proof_height + * @memberof ibc.core.channel.v1.MsgChannelOpenConfirm + * @instance + */ + MsgChannelOpenConfirm.prototype.proof_height = null; + + /** + * MsgChannelOpenConfirm signer. + * @member {string} signer + * @memberof ibc.core.channel.v1.MsgChannelOpenConfirm + * @instance + */ + MsgChannelOpenConfirm.prototype.signer = ""; + + /** + * Encodes the specified MsgChannelOpenConfirm message. Does not implicitly {@link ibc.core.channel.v1.MsgChannelOpenConfirm.verify|verify} messages. * @function encode - * @memberof ibc.core.channel.v1.QueryChannelRequest + * @memberof ibc.core.channel.v1.MsgChannelOpenConfirm * @static - * @param {ibc.core.channel.v1.IQueryChannelRequest} message QueryChannelRequest message or plain object to encode + * @param {ibc.core.channel.v1.IMsgChannelOpenConfirm} message MsgChannelOpenConfirm message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryChannelRequest.encode = function encode(message, writer) { + MsgChannelOpenConfirm.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.port_id != null && Object.hasOwnProperty.call(message, "port_id")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.port_id); if (message.channel_id != null && Object.hasOwnProperty.call(message, "channel_id")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.channel_id); + if (message.proof_ack != null && Object.hasOwnProperty.call(message, "proof_ack")) + writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.proof_ack); + if (message.proof_height != null && Object.hasOwnProperty.call(message, "proof_height")) + $root.ibc.core.client.v1.Height.encode(message.proof_height, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.signer != null && Object.hasOwnProperty.call(message, "signer")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.signer); return writer; }; /** - * Encodes the specified QueryChannelRequest message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryChannelRequest.verify|verify} messages. + * Encodes the specified MsgChannelOpenConfirm message, length delimited. Does not implicitly {@link ibc.core.channel.v1.MsgChannelOpenConfirm.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.channel.v1.QueryChannelRequest + * @memberof ibc.core.channel.v1.MsgChannelOpenConfirm * @static - * @param {ibc.core.channel.v1.IQueryChannelRequest} message QueryChannelRequest message or plain object to encode + * @param {ibc.core.channel.v1.IMsgChannelOpenConfirm} message MsgChannelOpenConfirm message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryChannelRequest.encodeDelimited = function encodeDelimited(message, writer) { + MsgChannelOpenConfirm.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryChannelRequest message from the specified reader or buffer. + * Decodes a MsgChannelOpenConfirm message from the specified reader or buffer. * @function decode - * @memberof ibc.core.channel.v1.QueryChannelRequest + * @memberof ibc.core.channel.v1.MsgChannelOpenConfirm * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.channel.v1.QueryChannelRequest} QueryChannelRequest + * @returns {ibc.core.channel.v1.MsgChannelOpenConfirm} MsgChannelOpenConfirm * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryChannelRequest.decode = function decode(reader, length) { + MsgChannelOpenConfirm.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.QueryChannelRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.MsgChannelOpenConfirm(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { @@ -41699,6 +48596,15 @@ export const ibc = $root.ibc = (() => { case 2: message.channel_id = reader.string(); break; + case 3: + message.proof_ack = reader.bytes(); + break; + case 4: + message.proof_height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); + break; + case 5: + message.signer = reader.string(); + break; default: reader.skipType(tag & 7); break; @@ -41708,30 +48614,30 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a QueryChannelRequest message from the specified reader or buffer, length delimited. + * Decodes a MsgChannelOpenConfirm message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.channel.v1.QueryChannelRequest + * @memberof ibc.core.channel.v1.MsgChannelOpenConfirm * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.channel.v1.QueryChannelRequest} QueryChannelRequest + * @returns {ibc.core.channel.v1.MsgChannelOpenConfirm} MsgChannelOpenConfirm * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryChannelRequest.decodeDelimited = function decodeDelimited(reader) { + MsgChannelOpenConfirm.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryChannelRequest message. + * Verifies a MsgChannelOpenConfirm message. * @function verify - * @memberof ibc.core.channel.v1.QueryChannelRequest + * @memberof ibc.core.channel.v1.MsgChannelOpenConfirm * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryChannelRequest.verify = function verify(message) { + MsgChannelOpenConfirm.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.port_id != null && message.hasOwnProperty("port_id")) @@ -41740,86 +48646,121 @@ export const ibc = $root.ibc = (() => { if (message.channel_id != null && message.hasOwnProperty("channel_id")) if (!$util.isString(message.channel_id)) return "channel_id: string expected"; + if (message.proof_ack != null && message.hasOwnProperty("proof_ack")) + if (!(message.proof_ack && typeof message.proof_ack.length === "number" || $util.isString(message.proof_ack))) + return "proof_ack: buffer expected"; + if (message.proof_height != null && message.hasOwnProperty("proof_height")) { + let error = $root.ibc.core.client.v1.Height.verify(message.proof_height); + if (error) + return "proof_height." + error; + } + if (message.signer != null && message.hasOwnProperty("signer")) + if (!$util.isString(message.signer)) + return "signer: string expected"; return null; }; /** - * Creates a QueryChannelRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MsgChannelOpenConfirm message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.channel.v1.QueryChannelRequest + * @memberof ibc.core.channel.v1.MsgChannelOpenConfirm * @static * @param {Object.} object Plain object - * @returns {ibc.core.channel.v1.QueryChannelRequest} QueryChannelRequest + * @returns {ibc.core.channel.v1.MsgChannelOpenConfirm} MsgChannelOpenConfirm */ - QueryChannelRequest.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.channel.v1.QueryChannelRequest) + MsgChannelOpenConfirm.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.channel.v1.MsgChannelOpenConfirm) return object; - let message = new $root.ibc.core.channel.v1.QueryChannelRequest(); + let message = new $root.ibc.core.channel.v1.MsgChannelOpenConfirm(); if (object.port_id != null) message.port_id = String(object.port_id); if (object.channel_id != null) message.channel_id = String(object.channel_id); + if (object.proof_ack != null) + if (typeof object.proof_ack === "string") + $util.base64.decode(object.proof_ack, message.proof_ack = $util.newBuffer($util.base64.length(object.proof_ack)), 0); + else if (object.proof_ack.length) + message.proof_ack = object.proof_ack; + if (object.proof_height != null) { + if (typeof object.proof_height !== "object") + throw TypeError(".ibc.core.channel.v1.MsgChannelOpenConfirm.proof_height: object expected"); + message.proof_height = $root.ibc.core.client.v1.Height.fromObject(object.proof_height); + } + if (object.signer != null) + message.signer = String(object.signer); return message; }; /** - * Creates a plain object from a QueryChannelRequest message. Also converts values to other types if specified. + * Creates a plain object from a MsgChannelOpenConfirm message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.channel.v1.QueryChannelRequest + * @memberof ibc.core.channel.v1.MsgChannelOpenConfirm * @static - * @param {ibc.core.channel.v1.QueryChannelRequest} message QueryChannelRequest + * @param {ibc.core.channel.v1.MsgChannelOpenConfirm} message MsgChannelOpenConfirm * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryChannelRequest.toObject = function toObject(message, options) { + MsgChannelOpenConfirm.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { object.port_id = ""; object.channel_id = ""; + if (options.bytes === String) + object.proof_ack = ""; + else { + object.proof_ack = []; + if (options.bytes !== Array) + object.proof_ack = $util.newBuffer(object.proof_ack); + } + object.proof_height = null; + object.signer = ""; } if (message.port_id != null && message.hasOwnProperty("port_id")) object.port_id = message.port_id; if (message.channel_id != null && message.hasOwnProperty("channel_id")) object.channel_id = message.channel_id; + if (message.proof_ack != null && message.hasOwnProperty("proof_ack")) + object.proof_ack = options.bytes === String ? $util.base64.encode(message.proof_ack, 0, message.proof_ack.length) : options.bytes === Array ? Array.prototype.slice.call(message.proof_ack) : message.proof_ack; + if (message.proof_height != null && message.hasOwnProperty("proof_height")) + object.proof_height = $root.ibc.core.client.v1.Height.toObject(message.proof_height, options); + if (message.signer != null && message.hasOwnProperty("signer")) + object.signer = message.signer; return object; }; /** - * Converts this QueryChannelRequest to JSON. + * Converts this MsgChannelOpenConfirm to JSON. * @function toJSON - * @memberof ibc.core.channel.v1.QueryChannelRequest + * @memberof ibc.core.channel.v1.MsgChannelOpenConfirm * @instance * @returns {Object.} JSON object */ - QueryChannelRequest.prototype.toJSON = function toJSON() { + MsgChannelOpenConfirm.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryChannelRequest; + return MsgChannelOpenConfirm; })(); - v1.QueryChannelResponse = (function() { + v1.MsgChannelOpenConfirmResponse = (function() { /** - * Properties of a QueryChannelResponse. + * Properties of a MsgChannelOpenConfirmResponse. * @memberof ibc.core.channel.v1 - * @interface IQueryChannelResponse - * @property {ibc.core.channel.v1.IChannel|null} [channel] QueryChannelResponse channel - * @property {Uint8Array|null} [proof] QueryChannelResponse proof - * @property {ibc.core.client.v1.IHeight|null} [proof_height] QueryChannelResponse proof_height + * @interface IMsgChannelOpenConfirmResponse */ /** - * Constructs a new QueryChannelResponse. + * Constructs a new MsgChannelOpenConfirmResponse. * @memberof ibc.core.channel.v1 - * @classdesc Represents a QueryChannelResponse. - * @implements IQueryChannelResponse + * @classdesc Represents a MsgChannelOpenConfirmResponse. + * @implements IMsgChannelOpenConfirmResponse * @constructor - * @param {ibc.core.channel.v1.IQueryChannelResponse=} [properties] Properties to set + * @param {ibc.core.channel.v1.IMsgChannelOpenConfirmResponse=} [properties] Properties to set */ - function QueryChannelResponse(properties) { + function MsgChannelOpenConfirmResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -41827,90 +48768,51 @@ export const ibc = $root.ibc = (() => { } /** - * QueryChannelResponse channel. - * @member {ibc.core.channel.v1.IChannel|null|undefined} channel - * @memberof ibc.core.channel.v1.QueryChannelResponse - * @instance - */ - QueryChannelResponse.prototype.channel = null; - - /** - * QueryChannelResponse proof. - * @member {Uint8Array} proof - * @memberof ibc.core.channel.v1.QueryChannelResponse - * @instance - */ - QueryChannelResponse.prototype.proof = $util.newBuffer([]); - - /** - * QueryChannelResponse proof_height. - * @member {ibc.core.client.v1.IHeight|null|undefined} proof_height - * @memberof ibc.core.channel.v1.QueryChannelResponse - * @instance - */ - QueryChannelResponse.prototype.proof_height = null; - - /** - * Encodes the specified QueryChannelResponse message. Does not implicitly {@link ibc.core.channel.v1.QueryChannelResponse.verify|verify} messages. + * Encodes the specified MsgChannelOpenConfirmResponse message. Does not implicitly {@link ibc.core.channel.v1.MsgChannelOpenConfirmResponse.verify|verify} messages. * @function encode - * @memberof ibc.core.channel.v1.QueryChannelResponse + * @memberof ibc.core.channel.v1.MsgChannelOpenConfirmResponse * @static - * @param {ibc.core.channel.v1.IQueryChannelResponse} message QueryChannelResponse message or plain object to encode + * @param {ibc.core.channel.v1.IMsgChannelOpenConfirmResponse} message MsgChannelOpenConfirmResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryChannelResponse.encode = function encode(message, writer) { + MsgChannelOpenConfirmResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.channel != null && Object.hasOwnProperty.call(message, "channel")) - $root.ibc.core.channel.v1.Channel.encode(message.channel, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.proof != null && Object.hasOwnProperty.call(message, "proof")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.proof); - if (message.proof_height != null && Object.hasOwnProperty.call(message, "proof_height")) - $root.ibc.core.client.v1.Height.encode(message.proof_height, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified QueryChannelResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryChannelResponse.verify|verify} messages. + * Encodes the specified MsgChannelOpenConfirmResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.MsgChannelOpenConfirmResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.channel.v1.QueryChannelResponse + * @memberof ibc.core.channel.v1.MsgChannelOpenConfirmResponse * @static - * @param {ibc.core.channel.v1.IQueryChannelResponse} message QueryChannelResponse message or plain object to encode + * @param {ibc.core.channel.v1.IMsgChannelOpenConfirmResponse} message MsgChannelOpenConfirmResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryChannelResponse.encodeDelimited = function encodeDelimited(message, writer) { + MsgChannelOpenConfirmResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryChannelResponse message from the specified reader or buffer. + * Decodes a MsgChannelOpenConfirmResponse message from the specified reader or buffer. * @function decode - * @memberof ibc.core.channel.v1.QueryChannelResponse + * @memberof ibc.core.channel.v1.MsgChannelOpenConfirmResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.channel.v1.QueryChannelResponse} QueryChannelResponse + * @returns {ibc.core.channel.v1.MsgChannelOpenConfirmResponse} MsgChannelOpenConfirmResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryChannelResponse.decode = function decode(reader, length) { + MsgChannelOpenConfirmResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.QueryChannelResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.MsgChannelOpenConfirmResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.channel = $root.ibc.core.channel.v1.Channel.decode(reader, reader.uint32()); - break; - case 2: - message.proof = reader.bytes(); - break; - case 3: - message.proof_height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); - break; default: reader.skipType(tag & 7); break; @@ -41920,143 +48822,96 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a QueryChannelResponse message from the specified reader or buffer, length delimited. + * Decodes a MsgChannelOpenConfirmResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.channel.v1.QueryChannelResponse + * @memberof ibc.core.channel.v1.MsgChannelOpenConfirmResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.channel.v1.QueryChannelResponse} QueryChannelResponse + * @returns {ibc.core.channel.v1.MsgChannelOpenConfirmResponse} MsgChannelOpenConfirmResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryChannelResponse.decodeDelimited = function decodeDelimited(reader) { + MsgChannelOpenConfirmResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryChannelResponse message. + * Verifies a MsgChannelOpenConfirmResponse message. * @function verify - * @memberof ibc.core.channel.v1.QueryChannelResponse + * @memberof ibc.core.channel.v1.MsgChannelOpenConfirmResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryChannelResponse.verify = function verify(message) { + MsgChannelOpenConfirmResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.channel != null && message.hasOwnProperty("channel")) { - let error = $root.ibc.core.channel.v1.Channel.verify(message.channel); - if (error) - return "channel." + error; - } - if (message.proof != null && message.hasOwnProperty("proof")) - if (!(message.proof && typeof message.proof.length === "number" || $util.isString(message.proof))) - return "proof: buffer expected"; - if (message.proof_height != null && message.hasOwnProperty("proof_height")) { - let error = $root.ibc.core.client.v1.Height.verify(message.proof_height); - if (error) - return "proof_height." + error; - } return null; }; /** - * Creates a QueryChannelResponse message from a plain object. Also converts values to their respective internal types. + * Creates a MsgChannelOpenConfirmResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.channel.v1.QueryChannelResponse + * @memberof ibc.core.channel.v1.MsgChannelOpenConfirmResponse * @static * @param {Object.} object Plain object - * @returns {ibc.core.channel.v1.QueryChannelResponse} QueryChannelResponse + * @returns {ibc.core.channel.v1.MsgChannelOpenConfirmResponse} MsgChannelOpenConfirmResponse */ - QueryChannelResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.channel.v1.QueryChannelResponse) + MsgChannelOpenConfirmResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.channel.v1.MsgChannelOpenConfirmResponse) return object; - let message = new $root.ibc.core.channel.v1.QueryChannelResponse(); - if (object.channel != null) { - if (typeof object.channel !== "object") - throw TypeError(".ibc.core.channel.v1.QueryChannelResponse.channel: object expected"); - message.channel = $root.ibc.core.channel.v1.Channel.fromObject(object.channel); - } - if (object.proof != null) - if (typeof object.proof === "string") - $util.base64.decode(object.proof, message.proof = $util.newBuffer($util.base64.length(object.proof)), 0); - else if (object.proof.length) - message.proof = object.proof; - if (object.proof_height != null) { - if (typeof object.proof_height !== "object") - throw TypeError(".ibc.core.channel.v1.QueryChannelResponse.proof_height: object expected"); - message.proof_height = $root.ibc.core.client.v1.Height.fromObject(object.proof_height); - } - return message; + return new $root.ibc.core.channel.v1.MsgChannelOpenConfirmResponse(); }; /** - * Creates a plain object from a QueryChannelResponse message. Also converts values to other types if specified. + * Creates a plain object from a MsgChannelOpenConfirmResponse message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.channel.v1.QueryChannelResponse + * @memberof ibc.core.channel.v1.MsgChannelOpenConfirmResponse * @static - * @param {ibc.core.channel.v1.QueryChannelResponse} message QueryChannelResponse + * @param {ibc.core.channel.v1.MsgChannelOpenConfirmResponse} message MsgChannelOpenConfirmResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryChannelResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - object.channel = null; - if (options.bytes === String) - object.proof = ""; - else { - object.proof = []; - if (options.bytes !== Array) - object.proof = $util.newBuffer(object.proof); - } - object.proof_height = null; - } - if (message.channel != null && message.hasOwnProperty("channel")) - object.channel = $root.ibc.core.channel.v1.Channel.toObject(message.channel, options); - if (message.proof != null && message.hasOwnProperty("proof")) - object.proof = options.bytes === String ? $util.base64.encode(message.proof, 0, message.proof.length) : options.bytes === Array ? Array.prototype.slice.call(message.proof) : message.proof; - if (message.proof_height != null && message.hasOwnProperty("proof_height")) - object.proof_height = $root.ibc.core.client.v1.Height.toObject(message.proof_height, options); - return object; + MsgChannelOpenConfirmResponse.toObject = function toObject() { + return {}; }; /** - * Converts this QueryChannelResponse to JSON. + * Converts this MsgChannelOpenConfirmResponse to JSON. * @function toJSON - * @memberof ibc.core.channel.v1.QueryChannelResponse + * @memberof ibc.core.channel.v1.MsgChannelOpenConfirmResponse * @instance * @returns {Object.} JSON object */ - QueryChannelResponse.prototype.toJSON = function toJSON() { + MsgChannelOpenConfirmResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryChannelResponse; + return MsgChannelOpenConfirmResponse; })(); - v1.QueryChannelsRequest = (function() { + v1.MsgChannelCloseInit = (function() { /** - * Properties of a QueryChannelsRequest. + * Properties of a MsgChannelCloseInit. * @memberof ibc.core.channel.v1 - * @interface IQueryChannelsRequest - * @property {cosmos.base.query.v1beta1.IPageRequest|null} [pagination] QueryChannelsRequest pagination + * @interface IMsgChannelCloseInit + * @property {string|null} [port_id] MsgChannelCloseInit port_id + * @property {string|null} [channel_id] MsgChannelCloseInit channel_id + * @property {string|null} [signer] MsgChannelCloseInit signer */ /** - * Constructs a new QueryChannelsRequest. + * Constructs a new MsgChannelCloseInit. * @memberof ibc.core.channel.v1 - * @classdesc Represents a QueryChannelsRequest. - * @implements IQueryChannelsRequest + * @classdesc Represents a MsgChannelCloseInit. + * @implements IMsgChannelCloseInit * @constructor - * @param {ibc.core.channel.v1.IQueryChannelsRequest=} [properties] Properties to set + * @param {ibc.core.channel.v1.IMsgChannelCloseInit=} [properties] Properties to set */ - function QueryChannelsRequest(properties) { + function MsgChannelCloseInit(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -42064,63 +48919,89 @@ export const ibc = $root.ibc = (() => { } /** - * QueryChannelsRequest pagination. - * @member {cosmos.base.query.v1beta1.IPageRequest|null|undefined} pagination - * @memberof ibc.core.channel.v1.QueryChannelsRequest + * MsgChannelCloseInit port_id. + * @member {string} port_id + * @memberof ibc.core.channel.v1.MsgChannelCloseInit * @instance */ - QueryChannelsRequest.prototype.pagination = null; + MsgChannelCloseInit.prototype.port_id = ""; /** - * Encodes the specified QueryChannelsRequest message. Does not implicitly {@link ibc.core.channel.v1.QueryChannelsRequest.verify|verify} messages. + * MsgChannelCloseInit channel_id. + * @member {string} channel_id + * @memberof ibc.core.channel.v1.MsgChannelCloseInit + * @instance + */ + MsgChannelCloseInit.prototype.channel_id = ""; + + /** + * MsgChannelCloseInit signer. + * @member {string} signer + * @memberof ibc.core.channel.v1.MsgChannelCloseInit + * @instance + */ + MsgChannelCloseInit.prototype.signer = ""; + + /** + * Encodes the specified MsgChannelCloseInit message. Does not implicitly {@link ibc.core.channel.v1.MsgChannelCloseInit.verify|verify} messages. * @function encode - * @memberof ibc.core.channel.v1.QueryChannelsRequest + * @memberof ibc.core.channel.v1.MsgChannelCloseInit * @static - * @param {ibc.core.channel.v1.IQueryChannelsRequest} message QueryChannelsRequest message or plain object to encode + * @param {ibc.core.channel.v1.IMsgChannelCloseInit} message MsgChannelCloseInit message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryChannelsRequest.encode = function encode(message, writer) { + MsgChannelCloseInit.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.pagination != null && Object.hasOwnProperty.call(message, "pagination")) - $root.cosmos.base.query.v1beta1.PageRequest.encode(message.pagination, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.port_id != null && Object.hasOwnProperty.call(message, "port_id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.port_id); + if (message.channel_id != null && Object.hasOwnProperty.call(message, "channel_id")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.channel_id); + if (message.signer != null && Object.hasOwnProperty.call(message, "signer")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.signer); return writer; }; /** - * Encodes the specified QueryChannelsRequest message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryChannelsRequest.verify|verify} messages. + * Encodes the specified MsgChannelCloseInit message, length delimited. Does not implicitly {@link ibc.core.channel.v1.MsgChannelCloseInit.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.channel.v1.QueryChannelsRequest + * @memberof ibc.core.channel.v1.MsgChannelCloseInit * @static - * @param {ibc.core.channel.v1.IQueryChannelsRequest} message QueryChannelsRequest message or plain object to encode + * @param {ibc.core.channel.v1.IMsgChannelCloseInit} message MsgChannelCloseInit message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryChannelsRequest.encodeDelimited = function encodeDelimited(message, writer) { + MsgChannelCloseInit.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryChannelsRequest message from the specified reader or buffer. + * Decodes a MsgChannelCloseInit message from the specified reader or buffer. * @function decode - * @memberof ibc.core.channel.v1.QueryChannelsRequest + * @memberof ibc.core.channel.v1.MsgChannelCloseInit * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.channel.v1.QueryChannelsRequest} QueryChannelsRequest + * @returns {ibc.core.channel.v1.MsgChannelCloseInit} MsgChannelCloseInit * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryChannelsRequest.decode = function decode(reader, length) { + MsgChannelCloseInit.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.QueryChannelsRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.MsgChannelCloseInit(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.pagination = $root.cosmos.base.query.v1beta1.PageRequest.decode(reader, reader.uint32()); + message.port_id = reader.string(); + break; + case 2: + message.channel_id = reader.string(); + break; + case 3: + message.signer = reader.string(); break; default: reader.skipType(tag & 7); @@ -42131,115 +49012,123 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a QueryChannelsRequest message from the specified reader or buffer, length delimited. + * Decodes a MsgChannelCloseInit message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.channel.v1.QueryChannelsRequest + * @memberof ibc.core.channel.v1.MsgChannelCloseInit * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.channel.v1.QueryChannelsRequest} QueryChannelsRequest + * @returns {ibc.core.channel.v1.MsgChannelCloseInit} MsgChannelCloseInit * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryChannelsRequest.decodeDelimited = function decodeDelimited(reader) { + MsgChannelCloseInit.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryChannelsRequest message. + * Verifies a MsgChannelCloseInit message. * @function verify - * @memberof ibc.core.channel.v1.QueryChannelsRequest + * @memberof ibc.core.channel.v1.MsgChannelCloseInit * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryChannelsRequest.verify = function verify(message) { + MsgChannelCloseInit.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.pagination != null && message.hasOwnProperty("pagination")) { - let error = $root.cosmos.base.query.v1beta1.PageRequest.verify(message.pagination); - if (error) - return "pagination." + error; - } + if (message.port_id != null && message.hasOwnProperty("port_id")) + if (!$util.isString(message.port_id)) + return "port_id: string expected"; + if (message.channel_id != null && message.hasOwnProperty("channel_id")) + if (!$util.isString(message.channel_id)) + return "channel_id: string expected"; + if (message.signer != null && message.hasOwnProperty("signer")) + if (!$util.isString(message.signer)) + return "signer: string expected"; return null; }; /** - * Creates a QueryChannelsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MsgChannelCloseInit message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.channel.v1.QueryChannelsRequest + * @memberof ibc.core.channel.v1.MsgChannelCloseInit * @static * @param {Object.} object Plain object - * @returns {ibc.core.channel.v1.QueryChannelsRequest} QueryChannelsRequest + * @returns {ibc.core.channel.v1.MsgChannelCloseInit} MsgChannelCloseInit */ - QueryChannelsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.channel.v1.QueryChannelsRequest) + MsgChannelCloseInit.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.channel.v1.MsgChannelCloseInit) return object; - let message = new $root.ibc.core.channel.v1.QueryChannelsRequest(); - if (object.pagination != null) { - if (typeof object.pagination !== "object") - throw TypeError(".ibc.core.channel.v1.QueryChannelsRequest.pagination: object expected"); - message.pagination = $root.cosmos.base.query.v1beta1.PageRequest.fromObject(object.pagination); - } + let message = new $root.ibc.core.channel.v1.MsgChannelCloseInit(); + if (object.port_id != null) + message.port_id = String(object.port_id); + if (object.channel_id != null) + message.channel_id = String(object.channel_id); + if (object.signer != null) + message.signer = String(object.signer); return message; }; /** - * Creates a plain object from a QueryChannelsRequest message. Also converts values to other types if specified. + * Creates a plain object from a MsgChannelCloseInit message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.channel.v1.QueryChannelsRequest + * @memberof ibc.core.channel.v1.MsgChannelCloseInit * @static - * @param {ibc.core.channel.v1.QueryChannelsRequest} message QueryChannelsRequest + * @param {ibc.core.channel.v1.MsgChannelCloseInit} message MsgChannelCloseInit * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryChannelsRequest.toObject = function toObject(message, options) { + MsgChannelCloseInit.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) - object.pagination = null; - if (message.pagination != null && message.hasOwnProperty("pagination")) - object.pagination = $root.cosmos.base.query.v1beta1.PageRequest.toObject(message.pagination, options); + if (options.defaults) { + object.port_id = ""; + object.channel_id = ""; + object.signer = ""; + } + if (message.port_id != null && message.hasOwnProperty("port_id")) + object.port_id = message.port_id; + if (message.channel_id != null && message.hasOwnProperty("channel_id")) + object.channel_id = message.channel_id; + if (message.signer != null && message.hasOwnProperty("signer")) + object.signer = message.signer; return object; }; /** - * Converts this QueryChannelsRequest to JSON. + * Converts this MsgChannelCloseInit to JSON. * @function toJSON - * @memberof ibc.core.channel.v1.QueryChannelsRequest + * @memberof ibc.core.channel.v1.MsgChannelCloseInit * @instance * @returns {Object.} JSON object */ - QueryChannelsRequest.prototype.toJSON = function toJSON() { + MsgChannelCloseInit.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryChannelsRequest; + return MsgChannelCloseInit; })(); - v1.QueryChannelsResponse = (function() { + v1.MsgChannelCloseInitResponse = (function() { /** - * Properties of a QueryChannelsResponse. + * Properties of a MsgChannelCloseInitResponse. * @memberof ibc.core.channel.v1 - * @interface IQueryChannelsResponse - * @property {Array.|null} [channels] QueryChannelsResponse channels - * @property {cosmos.base.query.v1beta1.IPageResponse|null} [pagination] QueryChannelsResponse pagination - * @property {ibc.core.client.v1.IHeight|null} [height] QueryChannelsResponse height + * @interface IMsgChannelCloseInitResponse */ /** - * Constructs a new QueryChannelsResponse. + * Constructs a new MsgChannelCloseInitResponse. * @memberof ibc.core.channel.v1 - * @classdesc Represents a QueryChannelsResponse. - * @implements IQueryChannelsResponse + * @classdesc Represents a MsgChannelCloseInitResponse. + * @implements IMsgChannelCloseInitResponse * @constructor - * @param {ibc.core.channel.v1.IQueryChannelsResponse=} [properties] Properties to set + * @param {ibc.core.channel.v1.IMsgChannelCloseInitResponse=} [properties] Properties to set */ - function QueryChannelsResponse(properties) { - this.channels = []; + function MsgChannelCloseInitResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -42247,93 +49136,51 @@ export const ibc = $root.ibc = (() => { } /** - * QueryChannelsResponse channels. - * @member {Array.} channels - * @memberof ibc.core.channel.v1.QueryChannelsResponse - * @instance - */ - QueryChannelsResponse.prototype.channels = $util.emptyArray; - - /** - * QueryChannelsResponse pagination. - * @member {cosmos.base.query.v1beta1.IPageResponse|null|undefined} pagination - * @memberof ibc.core.channel.v1.QueryChannelsResponse - * @instance - */ - QueryChannelsResponse.prototype.pagination = null; - - /** - * QueryChannelsResponse height. - * @member {ibc.core.client.v1.IHeight|null|undefined} height - * @memberof ibc.core.channel.v1.QueryChannelsResponse - * @instance - */ - QueryChannelsResponse.prototype.height = null; - - /** - * Encodes the specified QueryChannelsResponse message. Does not implicitly {@link ibc.core.channel.v1.QueryChannelsResponse.verify|verify} messages. + * Encodes the specified MsgChannelCloseInitResponse message. Does not implicitly {@link ibc.core.channel.v1.MsgChannelCloseInitResponse.verify|verify} messages. * @function encode - * @memberof ibc.core.channel.v1.QueryChannelsResponse + * @memberof ibc.core.channel.v1.MsgChannelCloseInitResponse * @static - * @param {ibc.core.channel.v1.IQueryChannelsResponse} message QueryChannelsResponse message or plain object to encode + * @param {ibc.core.channel.v1.IMsgChannelCloseInitResponse} message MsgChannelCloseInitResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryChannelsResponse.encode = function encode(message, writer) { + MsgChannelCloseInitResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.channels != null && message.channels.length) - for (let i = 0; i < message.channels.length; ++i) - $root.ibc.core.channel.v1.IdentifiedChannel.encode(message.channels[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.pagination != null && Object.hasOwnProperty.call(message, "pagination")) - $root.cosmos.base.query.v1beta1.PageResponse.encode(message.pagination, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.height != null && Object.hasOwnProperty.call(message, "height")) - $root.ibc.core.client.v1.Height.encode(message.height, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified QueryChannelsResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryChannelsResponse.verify|verify} messages. + * Encodes the specified MsgChannelCloseInitResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.MsgChannelCloseInitResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.channel.v1.QueryChannelsResponse + * @memberof ibc.core.channel.v1.MsgChannelCloseInitResponse * @static - * @param {ibc.core.channel.v1.IQueryChannelsResponse} message QueryChannelsResponse message or plain object to encode + * @param {ibc.core.channel.v1.IMsgChannelCloseInitResponse} message MsgChannelCloseInitResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryChannelsResponse.encodeDelimited = function encodeDelimited(message, writer) { + MsgChannelCloseInitResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryChannelsResponse message from the specified reader or buffer. + * Decodes a MsgChannelCloseInitResponse message from the specified reader or buffer. * @function decode - * @memberof ibc.core.channel.v1.QueryChannelsResponse + * @memberof ibc.core.channel.v1.MsgChannelCloseInitResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.channel.v1.QueryChannelsResponse} QueryChannelsResponse + * @returns {ibc.core.channel.v1.MsgChannelCloseInitResponse} MsgChannelCloseInitResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryChannelsResponse.decode = function decode(reader, length) { + MsgChannelCloseInitResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.QueryChannelsResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.MsgChannelCloseInitResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: - if (!(message.channels && message.channels.length)) - message.channels = []; - message.channels.push($root.ibc.core.channel.v1.IdentifiedChannel.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = $root.cosmos.base.query.v1beta1.PageResponse.decode(reader, reader.uint32()); - break; - case 3: - message.height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); - break; default: reader.skipType(tag & 7); break; @@ -42343,153 +49190,98 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a QueryChannelsResponse message from the specified reader or buffer, length delimited. + * Decodes a MsgChannelCloseInitResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.channel.v1.QueryChannelsResponse + * @memberof ibc.core.channel.v1.MsgChannelCloseInitResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.channel.v1.QueryChannelsResponse} QueryChannelsResponse + * @returns {ibc.core.channel.v1.MsgChannelCloseInitResponse} MsgChannelCloseInitResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryChannelsResponse.decodeDelimited = function decodeDelimited(reader) { + MsgChannelCloseInitResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryChannelsResponse message. + * Verifies a MsgChannelCloseInitResponse message. * @function verify - * @memberof ibc.core.channel.v1.QueryChannelsResponse + * @memberof ibc.core.channel.v1.MsgChannelCloseInitResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryChannelsResponse.verify = function verify(message) { + MsgChannelCloseInitResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.channels != null && message.hasOwnProperty("channels")) { - if (!Array.isArray(message.channels)) - return "channels: array expected"; - for (let i = 0; i < message.channels.length; ++i) { - let error = $root.ibc.core.channel.v1.IdentifiedChannel.verify(message.channels[i]); - if (error) - return "channels." + error; - } - } - if (message.pagination != null && message.hasOwnProperty("pagination")) { - let error = $root.cosmos.base.query.v1beta1.PageResponse.verify(message.pagination); - if (error) - return "pagination." + error; - } - if (message.height != null && message.hasOwnProperty("height")) { - let error = $root.ibc.core.client.v1.Height.verify(message.height); - if (error) - return "height." + error; - } return null; }; /** - * Creates a QueryChannelsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a MsgChannelCloseInitResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.channel.v1.QueryChannelsResponse - * @static - * @param {Object.} object Plain object - * @returns {ibc.core.channel.v1.QueryChannelsResponse} QueryChannelsResponse - */ - QueryChannelsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.channel.v1.QueryChannelsResponse) - return object; - let message = new $root.ibc.core.channel.v1.QueryChannelsResponse(); - if (object.channels) { - if (!Array.isArray(object.channels)) - throw TypeError(".ibc.core.channel.v1.QueryChannelsResponse.channels: array expected"); - message.channels = []; - for (let i = 0; i < object.channels.length; ++i) { - if (typeof object.channels[i] !== "object") - throw TypeError(".ibc.core.channel.v1.QueryChannelsResponse.channels: object expected"); - message.channels[i] = $root.ibc.core.channel.v1.IdentifiedChannel.fromObject(object.channels[i]); - } - } - if (object.pagination != null) { - if (typeof object.pagination !== "object") - throw TypeError(".ibc.core.channel.v1.QueryChannelsResponse.pagination: object expected"); - message.pagination = $root.cosmos.base.query.v1beta1.PageResponse.fromObject(object.pagination); - } - if (object.height != null) { - if (typeof object.height !== "object") - throw TypeError(".ibc.core.channel.v1.QueryChannelsResponse.height: object expected"); - message.height = $root.ibc.core.client.v1.Height.fromObject(object.height); - } - return message; + * @memberof ibc.core.channel.v1.MsgChannelCloseInitResponse + * @static + * @param {Object.} object Plain object + * @returns {ibc.core.channel.v1.MsgChannelCloseInitResponse} MsgChannelCloseInitResponse + */ + MsgChannelCloseInitResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.channel.v1.MsgChannelCloseInitResponse) + return object; + return new $root.ibc.core.channel.v1.MsgChannelCloseInitResponse(); }; /** - * Creates a plain object from a QueryChannelsResponse message. Also converts values to other types if specified. + * Creates a plain object from a MsgChannelCloseInitResponse message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.channel.v1.QueryChannelsResponse + * @memberof ibc.core.channel.v1.MsgChannelCloseInitResponse * @static - * @param {ibc.core.channel.v1.QueryChannelsResponse} message QueryChannelsResponse + * @param {ibc.core.channel.v1.MsgChannelCloseInitResponse} message MsgChannelCloseInitResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryChannelsResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.arrays || options.defaults) - object.channels = []; - if (options.defaults) { - object.pagination = null; - object.height = null; - } - if (message.channels && message.channels.length) { - object.channels = []; - for (let j = 0; j < message.channels.length; ++j) - object.channels[j] = $root.ibc.core.channel.v1.IdentifiedChannel.toObject(message.channels[j], options); - } - if (message.pagination != null && message.hasOwnProperty("pagination")) - object.pagination = $root.cosmos.base.query.v1beta1.PageResponse.toObject(message.pagination, options); - if (message.height != null && message.hasOwnProperty("height")) - object.height = $root.ibc.core.client.v1.Height.toObject(message.height, options); - return object; + MsgChannelCloseInitResponse.toObject = function toObject() { + return {}; }; /** - * Converts this QueryChannelsResponse to JSON. + * Converts this MsgChannelCloseInitResponse to JSON. * @function toJSON - * @memberof ibc.core.channel.v1.QueryChannelsResponse + * @memberof ibc.core.channel.v1.MsgChannelCloseInitResponse * @instance * @returns {Object.} JSON object */ - QueryChannelsResponse.prototype.toJSON = function toJSON() { + MsgChannelCloseInitResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryChannelsResponse; + return MsgChannelCloseInitResponse; })(); - v1.QueryConnectionChannelsRequest = (function() { + v1.MsgChannelCloseConfirm = (function() { /** - * Properties of a QueryConnectionChannelsRequest. + * Properties of a MsgChannelCloseConfirm. * @memberof ibc.core.channel.v1 - * @interface IQueryConnectionChannelsRequest - * @property {string|null} [connection] QueryConnectionChannelsRequest connection - * @property {cosmos.base.query.v1beta1.IPageRequest|null} [pagination] QueryConnectionChannelsRequest pagination + * @interface IMsgChannelCloseConfirm + * @property {string|null} [port_id] MsgChannelCloseConfirm port_id + * @property {string|null} [channel_id] MsgChannelCloseConfirm channel_id + * @property {Uint8Array|null} [proof_init] MsgChannelCloseConfirm proof_init + * @property {ibc.core.client.v1.IHeight|null} [proof_height] MsgChannelCloseConfirm proof_height + * @property {string|null} [signer] MsgChannelCloseConfirm signer */ /** - * Constructs a new QueryConnectionChannelsRequest. + * Constructs a new MsgChannelCloseConfirm. * @memberof ibc.core.channel.v1 - * @classdesc Represents a QueryConnectionChannelsRequest. - * @implements IQueryConnectionChannelsRequest + * @classdesc Represents a MsgChannelCloseConfirm. + * @implements IMsgChannelCloseConfirm * @constructor - * @param {ibc.core.channel.v1.IQueryConnectionChannelsRequest=} [properties] Properties to set + * @param {ibc.core.channel.v1.IMsgChannelCloseConfirm=} [properties] Properties to set */ - function QueryConnectionChannelsRequest(properties) { + function MsgChannelCloseConfirm(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -42497,76 +49289,115 @@ export const ibc = $root.ibc = (() => { } /** - * QueryConnectionChannelsRequest connection. - * @member {string} connection - * @memberof ibc.core.channel.v1.QueryConnectionChannelsRequest + * MsgChannelCloseConfirm port_id. + * @member {string} port_id + * @memberof ibc.core.channel.v1.MsgChannelCloseConfirm * @instance */ - QueryConnectionChannelsRequest.prototype.connection = ""; + MsgChannelCloseConfirm.prototype.port_id = ""; /** - * QueryConnectionChannelsRequest pagination. - * @member {cosmos.base.query.v1beta1.IPageRequest|null|undefined} pagination - * @memberof ibc.core.channel.v1.QueryConnectionChannelsRequest + * MsgChannelCloseConfirm channel_id. + * @member {string} channel_id + * @memberof ibc.core.channel.v1.MsgChannelCloseConfirm * @instance */ - QueryConnectionChannelsRequest.prototype.pagination = null; + MsgChannelCloseConfirm.prototype.channel_id = ""; /** - * Encodes the specified QueryConnectionChannelsRequest message. Does not implicitly {@link ibc.core.channel.v1.QueryConnectionChannelsRequest.verify|verify} messages. + * MsgChannelCloseConfirm proof_init. + * @member {Uint8Array} proof_init + * @memberof ibc.core.channel.v1.MsgChannelCloseConfirm + * @instance + */ + MsgChannelCloseConfirm.prototype.proof_init = $util.newBuffer([]); + + /** + * MsgChannelCloseConfirm proof_height. + * @member {ibc.core.client.v1.IHeight|null|undefined} proof_height + * @memberof ibc.core.channel.v1.MsgChannelCloseConfirm + * @instance + */ + MsgChannelCloseConfirm.prototype.proof_height = null; + + /** + * MsgChannelCloseConfirm signer. + * @member {string} signer + * @memberof ibc.core.channel.v1.MsgChannelCloseConfirm + * @instance + */ + MsgChannelCloseConfirm.prototype.signer = ""; + + /** + * Encodes the specified MsgChannelCloseConfirm message. Does not implicitly {@link ibc.core.channel.v1.MsgChannelCloseConfirm.verify|verify} messages. * @function encode - * @memberof ibc.core.channel.v1.QueryConnectionChannelsRequest + * @memberof ibc.core.channel.v1.MsgChannelCloseConfirm * @static - * @param {ibc.core.channel.v1.IQueryConnectionChannelsRequest} message QueryConnectionChannelsRequest message or plain object to encode + * @param {ibc.core.channel.v1.IMsgChannelCloseConfirm} message MsgChannelCloseConfirm message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryConnectionChannelsRequest.encode = function encode(message, writer) { + MsgChannelCloseConfirm.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.connection != null && Object.hasOwnProperty.call(message, "connection")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.connection); - if (message.pagination != null && Object.hasOwnProperty.call(message, "pagination")) - $root.cosmos.base.query.v1beta1.PageRequest.encode(message.pagination, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.port_id != null && Object.hasOwnProperty.call(message, "port_id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.port_id); + if (message.channel_id != null && Object.hasOwnProperty.call(message, "channel_id")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.channel_id); + if (message.proof_init != null && Object.hasOwnProperty.call(message, "proof_init")) + writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.proof_init); + if (message.proof_height != null && Object.hasOwnProperty.call(message, "proof_height")) + $root.ibc.core.client.v1.Height.encode(message.proof_height, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.signer != null && Object.hasOwnProperty.call(message, "signer")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.signer); return writer; }; /** - * Encodes the specified QueryConnectionChannelsRequest message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryConnectionChannelsRequest.verify|verify} messages. + * Encodes the specified MsgChannelCloseConfirm message, length delimited. Does not implicitly {@link ibc.core.channel.v1.MsgChannelCloseConfirm.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.channel.v1.QueryConnectionChannelsRequest + * @memberof ibc.core.channel.v1.MsgChannelCloseConfirm * @static - * @param {ibc.core.channel.v1.IQueryConnectionChannelsRequest} message QueryConnectionChannelsRequest message or plain object to encode + * @param {ibc.core.channel.v1.IMsgChannelCloseConfirm} message MsgChannelCloseConfirm message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryConnectionChannelsRequest.encodeDelimited = function encodeDelimited(message, writer) { + MsgChannelCloseConfirm.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryConnectionChannelsRequest message from the specified reader or buffer. + * Decodes a MsgChannelCloseConfirm message from the specified reader or buffer. * @function decode - * @memberof ibc.core.channel.v1.QueryConnectionChannelsRequest + * @memberof ibc.core.channel.v1.MsgChannelCloseConfirm * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.channel.v1.QueryConnectionChannelsRequest} QueryConnectionChannelsRequest + * @returns {ibc.core.channel.v1.MsgChannelCloseConfirm} MsgChannelCloseConfirm * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryConnectionChannelsRequest.decode = function decode(reader, length) { + MsgChannelCloseConfirm.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.QueryConnectionChannelsRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.MsgChannelCloseConfirm(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.connection = reader.string(); + message.port_id = reader.string(); break; case 2: - message.pagination = $root.cosmos.base.query.v1beta1.PageRequest.decode(reader, reader.uint32()); + message.channel_id = reader.string(); + break; + case 3: + message.proof_init = reader.bytes(); + break; + case 4: + message.proof_height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); + break; + case 5: + message.signer = reader.string(); break; default: reader.skipType(tag & 7); @@ -42577,124 +49408,153 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a QueryConnectionChannelsRequest message from the specified reader or buffer, length delimited. + * Decodes a MsgChannelCloseConfirm message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.channel.v1.QueryConnectionChannelsRequest + * @memberof ibc.core.channel.v1.MsgChannelCloseConfirm * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.channel.v1.QueryConnectionChannelsRequest} QueryConnectionChannelsRequest + * @returns {ibc.core.channel.v1.MsgChannelCloseConfirm} MsgChannelCloseConfirm * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryConnectionChannelsRequest.decodeDelimited = function decodeDelimited(reader) { + MsgChannelCloseConfirm.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryConnectionChannelsRequest message. + * Verifies a MsgChannelCloseConfirm message. * @function verify - * @memberof ibc.core.channel.v1.QueryConnectionChannelsRequest + * @memberof ibc.core.channel.v1.MsgChannelCloseConfirm * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryConnectionChannelsRequest.verify = function verify(message) { + MsgChannelCloseConfirm.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.connection != null && message.hasOwnProperty("connection")) - if (!$util.isString(message.connection)) - return "connection: string expected"; - if (message.pagination != null && message.hasOwnProperty("pagination")) { - let error = $root.cosmos.base.query.v1beta1.PageRequest.verify(message.pagination); + if (message.port_id != null && message.hasOwnProperty("port_id")) + if (!$util.isString(message.port_id)) + return "port_id: string expected"; + if (message.channel_id != null && message.hasOwnProperty("channel_id")) + if (!$util.isString(message.channel_id)) + return "channel_id: string expected"; + if (message.proof_init != null && message.hasOwnProperty("proof_init")) + if (!(message.proof_init && typeof message.proof_init.length === "number" || $util.isString(message.proof_init))) + return "proof_init: buffer expected"; + if (message.proof_height != null && message.hasOwnProperty("proof_height")) { + let error = $root.ibc.core.client.v1.Height.verify(message.proof_height); if (error) - return "pagination." + error; + return "proof_height." + error; } + if (message.signer != null && message.hasOwnProperty("signer")) + if (!$util.isString(message.signer)) + return "signer: string expected"; return null; }; /** - * Creates a QueryConnectionChannelsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MsgChannelCloseConfirm message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.channel.v1.QueryConnectionChannelsRequest + * @memberof ibc.core.channel.v1.MsgChannelCloseConfirm * @static * @param {Object.} object Plain object - * @returns {ibc.core.channel.v1.QueryConnectionChannelsRequest} QueryConnectionChannelsRequest + * @returns {ibc.core.channel.v1.MsgChannelCloseConfirm} MsgChannelCloseConfirm */ - QueryConnectionChannelsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.channel.v1.QueryConnectionChannelsRequest) + MsgChannelCloseConfirm.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.channel.v1.MsgChannelCloseConfirm) return object; - let message = new $root.ibc.core.channel.v1.QueryConnectionChannelsRequest(); - if (object.connection != null) - message.connection = String(object.connection); - if (object.pagination != null) { - if (typeof object.pagination !== "object") - throw TypeError(".ibc.core.channel.v1.QueryConnectionChannelsRequest.pagination: object expected"); - message.pagination = $root.cosmos.base.query.v1beta1.PageRequest.fromObject(object.pagination); + let message = new $root.ibc.core.channel.v1.MsgChannelCloseConfirm(); + if (object.port_id != null) + message.port_id = String(object.port_id); + if (object.channel_id != null) + message.channel_id = String(object.channel_id); + if (object.proof_init != null) + if (typeof object.proof_init === "string") + $util.base64.decode(object.proof_init, message.proof_init = $util.newBuffer($util.base64.length(object.proof_init)), 0); + else if (object.proof_init.length) + message.proof_init = object.proof_init; + if (object.proof_height != null) { + if (typeof object.proof_height !== "object") + throw TypeError(".ibc.core.channel.v1.MsgChannelCloseConfirm.proof_height: object expected"); + message.proof_height = $root.ibc.core.client.v1.Height.fromObject(object.proof_height); } + if (object.signer != null) + message.signer = String(object.signer); return message; }; /** - * Creates a plain object from a QueryConnectionChannelsRequest message. Also converts values to other types if specified. + * Creates a plain object from a MsgChannelCloseConfirm message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.channel.v1.QueryConnectionChannelsRequest + * @memberof ibc.core.channel.v1.MsgChannelCloseConfirm * @static - * @param {ibc.core.channel.v1.QueryConnectionChannelsRequest} message QueryConnectionChannelsRequest + * @param {ibc.core.channel.v1.MsgChannelCloseConfirm} message MsgChannelCloseConfirm * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryConnectionChannelsRequest.toObject = function toObject(message, options) { + MsgChannelCloseConfirm.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - object.connection = ""; - object.pagination = null; + object.port_id = ""; + object.channel_id = ""; + if (options.bytes === String) + object.proof_init = ""; + else { + object.proof_init = []; + if (options.bytes !== Array) + object.proof_init = $util.newBuffer(object.proof_init); + } + object.proof_height = null; + object.signer = ""; } - if (message.connection != null && message.hasOwnProperty("connection")) - object.connection = message.connection; - if (message.pagination != null && message.hasOwnProperty("pagination")) - object.pagination = $root.cosmos.base.query.v1beta1.PageRequest.toObject(message.pagination, options); + if (message.port_id != null && message.hasOwnProperty("port_id")) + object.port_id = message.port_id; + if (message.channel_id != null && message.hasOwnProperty("channel_id")) + object.channel_id = message.channel_id; + if (message.proof_init != null && message.hasOwnProperty("proof_init")) + object.proof_init = options.bytes === String ? $util.base64.encode(message.proof_init, 0, message.proof_init.length) : options.bytes === Array ? Array.prototype.slice.call(message.proof_init) : message.proof_init; + if (message.proof_height != null && message.hasOwnProperty("proof_height")) + object.proof_height = $root.ibc.core.client.v1.Height.toObject(message.proof_height, options); + if (message.signer != null && message.hasOwnProperty("signer")) + object.signer = message.signer; return object; }; /** - * Converts this QueryConnectionChannelsRequest to JSON. + * Converts this MsgChannelCloseConfirm to JSON. * @function toJSON - * @memberof ibc.core.channel.v1.QueryConnectionChannelsRequest + * @memberof ibc.core.channel.v1.MsgChannelCloseConfirm * @instance * @returns {Object.} JSON object */ - QueryConnectionChannelsRequest.prototype.toJSON = function toJSON() { + MsgChannelCloseConfirm.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryConnectionChannelsRequest; + return MsgChannelCloseConfirm; })(); - v1.QueryConnectionChannelsResponse = (function() { + v1.MsgChannelCloseConfirmResponse = (function() { /** - * Properties of a QueryConnectionChannelsResponse. + * Properties of a MsgChannelCloseConfirmResponse. * @memberof ibc.core.channel.v1 - * @interface IQueryConnectionChannelsResponse - * @property {Array.|null} [channels] QueryConnectionChannelsResponse channels - * @property {cosmos.base.query.v1beta1.IPageResponse|null} [pagination] QueryConnectionChannelsResponse pagination - * @property {ibc.core.client.v1.IHeight|null} [height] QueryConnectionChannelsResponse height + * @interface IMsgChannelCloseConfirmResponse */ /** - * Constructs a new QueryConnectionChannelsResponse. + * Constructs a new MsgChannelCloseConfirmResponse. * @memberof ibc.core.channel.v1 - * @classdesc Represents a QueryConnectionChannelsResponse. - * @implements IQueryConnectionChannelsResponse + * @classdesc Represents a MsgChannelCloseConfirmResponse. + * @implements IMsgChannelCloseConfirmResponse * @constructor - * @param {ibc.core.channel.v1.IQueryConnectionChannelsResponse=} [properties] Properties to set + * @param {ibc.core.channel.v1.IMsgChannelCloseConfirmResponse=} [properties] Properties to set */ - function QueryConnectionChannelsResponse(properties) { - this.channels = []; + function MsgChannelCloseConfirmResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -42702,93 +49562,51 @@ export const ibc = $root.ibc = (() => { } /** - * QueryConnectionChannelsResponse channels. - * @member {Array.} channels - * @memberof ibc.core.channel.v1.QueryConnectionChannelsResponse - * @instance - */ - QueryConnectionChannelsResponse.prototype.channels = $util.emptyArray; - - /** - * QueryConnectionChannelsResponse pagination. - * @member {cosmos.base.query.v1beta1.IPageResponse|null|undefined} pagination - * @memberof ibc.core.channel.v1.QueryConnectionChannelsResponse - * @instance - */ - QueryConnectionChannelsResponse.prototype.pagination = null; - - /** - * QueryConnectionChannelsResponse height. - * @member {ibc.core.client.v1.IHeight|null|undefined} height - * @memberof ibc.core.channel.v1.QueryConnectionChannelsResponse - * @instance - */ - QueryConnectionChannelsResponse.prototype.height = null; - - /** - * Encodes the specified QueryConnectionChannelsResponse message. Does not implicitly {@link ibc.core.channel.v1.QueryConnectionChannelsResponse.verify|verify} messages. + * Encodes the specified MsgChannelCloseConfirmResponse message. Does not implicitly {@link ibc.core.channel.v1.MsgChannelCloseConfirmResponse.verify|verify} messages. * @function encode - * @memberof ibc.core.channel.v1.QueryConnectionChannelsResponse + * @memberof ibc.core.channel.v1.MsgChannelCloseConfirmResponse * @static - * @param {ibc.core.channel.v1.IQueryConnectionChannelsResponse} message QueryConnectionChannelsResponse message or plain object to encode + * @param {ibc.core.channel.v1.IMsgChannelCloseConfirmResponse} message MsgChannelCloseConfirmResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryConnectionChannelsResponse.encode = function encode(message, writer) { + MsgChannelCloseConfirmResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.channels != null && message.channels.length) - for (let i = 0; i < message.channels.length; ++i) - $root.ibc.core.channel.v1.IdentifiedChannel.encode(message.channels[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.pagination != null && Object.hasOwnProperty.call(message, "pagination")) - $root.cosmos.base.query.v1beta1.PageResponse.encode(message.pagination, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.height != null && Object.hasOwnProperty.call(message, "height")) - $root.ibc.core.client.v1.Height.encode(message.height, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified QueryConnectionChannelsResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryConnectionChannelsResponse.verify|verify} messages. + * Encodes the specified MsgChannelCloseConfirmResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.MsgChannelCloseConfirmResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.channel.v1.QueryConnectionChannelsResponse + * @memberof ibc.core.channel.v1.MsgChannelCloseConfirmResponse * @static - * @param {ibc.core.channel.v1.IQueryConnectionChannelsResponse} message QueryConnectionChannelsResponse message or plain object to encode + * @param {ibc.core.channel.v1.IMsgChannelCloseConfirmResponse} message MsgChannelCloseConfirmResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryConnectionChannelsResponse.encodeDelimited = function encodeDelimited(message, writer) { + MsgChannelCloseConfirmResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryConnectionChannelsResponse message from the specified reader or buffer. + * Decodes a MsgChannelCloseConfirmResponse message from the specified reader or buffer. * @function decode - * @memberof ibc.core.channel.v1.QueryConnectionChannelsResponse + * @memberof ibc.core.channel.v1.MsgChannelCloseConfirmResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.channel.v1.QueryConnectionChannelsResponse} QueryConnectionChannelsResponse + * @returns {ibc.core.channel.v1.MsgChannelCloseConfirmResponse} MsgChannelCloseConfirmResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryConnectionChannelsResponse.decode = function decode(reader, length) { + MsgChannelCloseConfirmResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.QueryConnectionChannelsResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.MsgChannelCloseConfirmResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: - if (!(message.channels && message.channels.length)) - message.channels = []; - message.channels.push($root.ibc.core.channel.v1.IdentifiedChannel.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = $root.cosmos.base.query.v1beta1.PageResponse.decode(reader, reader.uint32()); - break; - case 3: - message.height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); - break; default: reader.skipType(tag & 7); break; @@ -42798,153 +49616,97 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a QueryConnectionChannelsResponse message from the specified reader or buffer, length delimited. + * Decodes a MsgChannelCloseConfirmResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.channel.v1.QueryConnectionChannelsResponse + * @memberof ibc.core.channel.v1.MsgChannelCloseConfirmResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.channel.v1.QueryConnectionChannelsResponse} QueryConnectionChannelsResponse + * @returns {ibc.core.channel.v1.MsgChannelCloseConfirmResponse} MsgChannelCloseConfirmResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryConnectionChannelsResponse.decodeDelimited = function decodeDelimited(reader) { + MsgChannelCloseConfirmResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryConnectionChannelsResponse message. + * Verifies a MsgChannelCloseConfirmResponse message. * @function verify - * @memberof ibc.core.channel.v1.QueryConnectionChannelsResponse + * @memberof ibc.core.channel.v1.MsgChannelCloseConfirmResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryConnectionChannelsResponse.verify = function verify(message) { + MsgChannelCloseConfirmResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.channels != null && message.hasOwnProperty("channels")) { - if (!Array.isArray(message.channels)) - return "channels: array expected"; - for (let i = 0; i < message.channels.length; ++i) { - let error = $root.ibc.core.channel.v1.IdentifiedChannel.verify(message.channels[i]); - if (error) - return "channels." + error; - } - } - if (message.pagination != null && message.hasOwnProperty("pagination")) { - let error = $root.cosmos.base.query.v1beta1.PageResponse.verify(message.pagination); - if (error) - return "pagination." + error; - } - if (message.height != null && message.hasOwnProperty("height")) { - let error = $root.ibc.core.client.v1.Height.verify(message.height); - if (error) - return "height." + error; - } return null; }; /** - * Creates a QueryConnectionChannelsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a MsgChannelCloseConfirmResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.channel.v1.QueryConnectionChannelsResponse + * @memberof ibc.core.channel.v1.MsgChannelCloseConfirmResponse * @static * @param {Object.} object Plain object - * @returns {ibc.core.channel.v1.QueryConnectionChannelsResponse} QueryConnectionChannelsResponse + * @returns {ibc.core.channel.v1.MsgChannelCloseConfirmResponse} MsgChannelCloseConfirmResponse */ - QueryConnectionChannelsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.channel.v1.QueryConnectionChannelsResponse) + MsgChannelCloseConfirmResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.channel.v1.MsgChannelCloseConfirmResponse) return object; - let message = new $root.ibc.core.channel.v1.QueryConnectionChannelsResponse(); - if (object.channels) { - if (!Array.isArray(object.channels)) - throw TypeError(".ibc.core.channel.v1.QueryConnectionChannelsResponse.channels: array expected"); - message.channels = []; - for (let i = 0; i < object.channels.length; ++i) { - if (typeof object.channels[i] !== "object") - throw TypeError(".ibc.core.channel.v1.QueryConnectionChannelsResponse.channels: object expected"); - message.channels[i] = $root.ibc.core.channel.v1.IdentifiedChannel.fromObject(object.channels[i]); - } - } - if (object.pagination != null) { - if (typeof object.pagination !== "object") - throw TypeError(".ibc.core.channel.v1.QueryConnectionChannelsResponse.pagination: object expected"); - message.pagination = $root.cosmos.base.query.v1beta1.PageResponse.fromObject(object.pagination); - } - if (object.height != null) { - if (typeof object.height !== "object") - throw TypeError(".ibc.core.channel.v1.QueryConnectionChannelsResponse.height: object expected"); - message.height = $root.ibc.core.client.v1.Height.fromObject(object.height); - } - return message; + return new $root.ibc.core.channel.v1.MsgChannelCloseConfirmResponse(); }; /** - * Creates a plain object from a QueryConnectionChannelsResponse message. Also converts values to other types if specified. + * Creates a plain object from a MsgChannelCloseConfirmResponse message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.channel.v1.QueryConnectionChannelsResponse + * @memberof ibc.core.channel.v1.MsgChannelCloseConfirmResponse * @static - * @param {ibc.core.channel.v1.QueryConnectionChannelsResponse} message QueryConnectionChannelsResponse + * @param {ibc.core.channel.v1.MsgChannelCloseConfirmResponse} message MsgChannelCloseConfirmResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryConnectionChannelsResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.arrays || options.defaults) - object.channels = []; - if (options.defaults) { - object.pagination = null; - object.height = null; - } - if (message.channels && message.channels.length) { - object.channels = []; - for (let j = 0; j < message.channels.length; ++j) - object.channels[j] = $root.ibc.core.channel.v1.IdentifiedChannel.toObject(message.channels[j], options); - } - if (message.pagination != null && message.hasOwnProperty("pagination")) - object.pagination = $root.cosmos.base.query.v1beta1.PageResponse.toObject(message.pagination, options); - if (message.height != null && message.hasOwnProperty("height")) - object.height = $root.ibc.core.client.v1.Height.toObject(message.height, options); - return object; + MsgChannelCloseConfirmResponse.toObject = function toObject() { + return {}; }; /** - * Converts this QueryConnectionChannelsResponse to JSON. + * Converts this MsgChannelCloseConfirmResponse to JSON. * @function toJSON - * @memberof ibc.core.channel.v1.QueryConnectionChannelsResponse + * @memberof ibc.core.channel.v1.MsgChannelCloseConfirmResponse * @instance * @returns {Object.} JSON object */ - QueryConnectionChannelsResponse.prototype.toJSON = function toJSON() { + MsgChannelCloseConfirmResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryConnectionChannelsResponse; + return MsgChannelCloseConfirmResponse; })(); - v1.QueryChannelClientStateRequest = (function() { + v1.MsgRecvPacket = (function() { /** - * Properties of a QueryChannelClientStateRequest. + * Properties of a MsgRecvPacket. * @memberof ibc.core.channel.v1 - * @interface IQueryChannelClientStateRequest - * @property {string|null} [port_id] QueryChannelClientStateRequest port_id - * @property {string|null} [channel_id] QueryChannelClientStateRequest channel_id + * @interface IMsgRecvPacket + * @property {ibc.core.channel.v1.IPacket|null} [packet] MsgRecvPacket packet + * @property {Uint8Array|null} [proof_commitment] MsgRecvPacket proof_commitment + * @property {ibc.core.client.v1.IHeight|null} [proof_height] MsgRecvPacket proof_height + * @property {string|null} [signer] MsgRecvPacket signer */ /** - * Constructs a new QueryChannelClientStateRequest. + * Constructs a new MsgRecvPacket. * @memberof ibc.core.channel.v1 - * @classdesc Represents a QueryChannelClientStateRequest. - * @implements IQueryChannelClientStateRequest + * @classdesc Represents a MsgRecvPacket. + * @implements IMsgRecvPacket * @constructor - * @param {ibc.core.channel.v1.IQueryChannelClientStateRequest=} [properties] Properties to set + * @param {ibc.core.channel.v1.IMsgRecvPacket=} [properties] Properties to set */ - function QueryChannelClientStateRequest(properties) { + function MsgRecvPacket(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -42952,76 +49714,102 @@ export const ibc = $root.ibc = (() => { } /** - * QueryChannelClientStateRequest port_id. - * @member {string} port_id - * @memberof ibc.core.channel.v1.QueryChannelClientStateRequest + * MsgRecvPacket packet. + * @member {ibc.core.channel.v1.IPacket|null|undefined} packet + * @memberof ibc.core.channel.v1.MsgRecvPacket * @instance */ - QueryChannelClientStateRequest.prototype.port_id = ""; + MsgRecvPacket.prototype.packet = null; /** - * QueryChannelClientStateRequest channel_id. - * @member {string} channel_id - * @memberof ibc.core.channel.v1.QueryChannelClientStateRequest + * MsgRecvPacket proof_commitment. + * @member {Uint8Array} proof_commitment + * @memberof ibc.core.channel.v1.MsgRecvPacket + * @instance + */ + MsgRecvPacket.prototype.proof_commitment = $util.newBuffer([]); + + /** + * MsgRecvPacket proof_height. + * @member {ibc.core.client.v1.IHeight|null|undefined} proof_height + * @memberof ibc.core.channel.v1.MsgRecvPacket + * @instance + */ + MsgRecvPacket.prototype.proof_height = null; + + /** + * MsgRecvPacket signer. + * @member {string} signer + * @memberof ibc.core.channel.v1.MsgRecvPacket * @instance */ - QueryChannelClientStateRequest.prototype.channel_id = ""; + MsgRecvPacket.prototype.signer = ""; /** - * Encodes the specified QueryChannelClientStateRequest message. Does not implicitly {@link ibc.core.channel.v1.QueryChannelClientStateRequest.verify|verify} messages. + * Encodes the specified MsgRecvPacket message. Does not implicitly {@link ibc.core.channel.v1.MsgRecvPacket.verify|verify} messages. * @function encode - * @memberof ibc.core.channel.v1.QueryChannelClientStateRequest + * @memberof ibc.core.channel.v1.MsgRecvPacket * @static - * @param {ibc.core.channel.v1.IQueryChannelClientStateRequest} message QueryChannelClientStateRequest message or plain object to encode + * @param {ibc.core.channel.v1.IMsgRecvPacket} message MsgRecvPacket message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryChannelClientStateRequest.encode = function encode(message, writer) { + MsgRecvPacket.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.port_id != null && Object.hasOwnProperty.call(message, "port_id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.port_id); - if (message.channel_id != null && Object.hasOwnProperty.call(message, "channel_id")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.channel_id); + if (message.packet != null && Object.hasOwnProperty.call(message, "packet")) + $root.ibc.core.channel.v1.Packet.encode(message.packet, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.proof_commitment != null && Object.hasOwnProperty.call(message, "proof_commitment")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.proof_commitment); + if (message.proof_height != null && Object.hasOwnProperty.call(message, "proof_height")) + $root.ibc.core.client.v1.Height.encode(message.proof_height, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.signer != null && Object.hasOwnProperty.call(message, "signer")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.signer); return writer; }; /** - * Encodes the specified QueryChannelClientStateRequest message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryChannelClientStateRequest.verify|verify} messages. + * Encodes the specified MsgRecvPacket message, length delimited. Does not implicitly {@link ibc.core.channel.v1.MsgRecvPacket.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.channel.v1.QueryChannelClientStateRequest + * @memberof ibc.core.channel.v1.MsgRecvPacket * @static - * @param {ibc.core.channel.v1.IQueryChannelClientStateRequest} message QueryChannelClientStateRequest message or plain object to encode + * @param {ibc.core.channel.v1.IMsgRecvPacket} message MsgRecvPacket message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryChannelClientStateRequest.encodeDelimited = function encodeDelimited(message, writer) { + MsgRecvPacket.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryChannelClientStateRequest message from the specified reader or buffer. + * Decodes a MsgRecvPacket message from the specified reader or buffer. * @function decode - * @memberof ibc.core.channel.v1.QueryChannelClientStateRequest + * @memberof ibc.core.channel.v1.MsgRecvPacket * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.channel.v1.QueryChannelClientStateRequest} QueryChannelClientStateRequest + * @returns {ibc.core.channel.v1.MsgRecvPacket} MsgRecvPacket * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryChannelClientStateRequest.decode = function decode(reader, length) { + MsgRecvPacket.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.QueryChannelClientStateRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.MsgRecvPacket(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.port_id = reader.string(); + message.packet = $root.ibc.core.channel.v1.Packet.decode(reader, reader.uint32()); break; case 2: - message.channel_id = reader.string(); + message.proof_commitment = reader.bytes(); + break; + case 3: + message.proof_height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); + break; + case 4: + message.signer = reader.string(); break; default: reader.skipType(tag & 7); @@ -43032,118 +49820,151 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a QueryChannelClientStateRequest message from the specified reader or buffer, length delimited. + * Decodes a MsgRecvPacket message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.channel.v1.QueryChannelClientStateRequest + * @memberof ibc.core.channel.v1.MsgRecvPacket * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.channel.v1.QueryChannelClientStateRequest} QueryChannelClientStateRequest + * @returns {ibc.core.channel.v1.MsgRecvPacket} MsgRecvPacket * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryChannelClientStateRequest.decodeDelimited = function decodeDelimited(reader) { + MsgRecvPacket.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryChannelClientStateRequest message. + * Verifies a MsgRecvPacket message. * @function verify - * @memberof ibc.core.channel.v1.QueryChannelClientStateRequest + * @memberof ibc.core.channel.v1.MsgRecvPacket * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryChannelClientStateRequest.verify = function verify(message) { + MsgRecvPacket.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.port_id != null && message.hasOwnProperty("port_id")) - if (!$util.isString(message.port_id)) - return "port_id: string expected"; - if (message.channel_id != null && message.hasOwnProperty("channel_id")) - if (!$util.isString(message.channel_id)) - return "channel_id: string expected"; + if (message.packet != null && message.hasOwnProperty("packet")) { + let error = $root.ibc.core.channel.v1.Packet.verify(message.packet); + if (error) + return "packet." + error; + } + if (message.proof_commitment != null && message.hasOwnProperty("proof_commitment")) + if (!(message.proof_commitment && typeof message.proof_commitment.length === "number" || $util.isString(message.proof_commitment))) + return "proof_commitment: buffer expected"; + if (message.proof_height != null && message.hasOwnProperty("proof_height")) { + let error = $root.ibc.core.client.v1.Height.verify(message.proof_height); + if (error) + return "proof_height." + error; + } + if (message.signer != null && message.hasOwnProperty("signer")) + if (!$util.isString(message.signer)) + return "signer: string expected"; return null; }; /** - * Creates a QueryChannelClientStateRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MsgRecvPacket message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.channel.v1.QueryChannelClientStateRequest + * @memberof ibc.core.channel.v1.MsgRecvPacket * @static * @param {Object.} object Plain object - * @returns {ibc.core.channel.v1.QueryChannelClientStateRequest} QueryChannelClientStateRequest + * @returns {ibc.core.channel.v1.MsgRecvPacket} MsgRecvPacket */ - QueryChannelClientStateRequest.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.channel.v1.QueryChannelClientStateRequest) + MsgRecvPacket.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.channel.v1.MsgRecvPacket) return object; - let message = new $root.ibc.core.channel.v1.QueryChannelClientStateRequest(); - if (object.port_id != null) - message.port_id = String(object.port_id); - if (object.channel_id != null) - message.channel_id = String(object.channel_id); + let message = new $root.ibc.core.channel.v1.MsgRecvPacket(); + if (object.packet != null) { + if (typeof object.packet !== "object") + throw TypeError(".ibc.core.channel.v1.MsgRecvPacket.packet: object expected"); + message.packet = $root.ibc.core.channel.v1.Packet.fromObject(object.packet); + } + if (object.proof_commitment != null) + if (typeof object.proof_commitment === "string") + $util.base64.decode(object.proof_commitment, message.proof_commitment = $util.newBuffer($util.base64.length(object.proof_commitment)), 0); + else if (object.proof_commitment.length) + message.proof_commitment = object.proof_commitment; + if (object.proof_height != null) { + if (typeof object.proof_height !== "object") + throw TypeError(".ibc.core.channel.v1.MsgRecvPacket.proof_height: object expected"); + message.proof_height = $root.ibc.core.client.v1.Height.fromObject(object.proof_height); + } + if (object.signer != null) + message.signer = String(object.signer); return message; }; /** - * Creates a plain object from a QueryChannelClientStateRequest message. Also converts values to other types if specified. + * Creates a plain object from a MsgRecvPacket message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.channel.v1.QueryChannelClientStateRequest + * @memberof ibc.core.channel.v1.MsgRecvPacket * @static - * @param {ibc.core.channel.v1.QueryChannelClientStateRequest} message QueryChannelClientStateRequest + * @param {ibc.core.channel.v1.MsgRecvPacket} message MsgRecvPacket * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryChannelClientStateRequest.toObject = function toObject(message, options) { + MsgRecvPacket.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - object.port_id = ""; - object.channel_id = ""; + object.packet = null; + if (options.bytes === String) + object.proof_commitment = ""; + else { + object.proof_commitment = []; + if (options.bytes !== Array) + object.proof_commitment = $util.newBuffer(object.proof_commitment); + } + object.proof_height = null; + object.signer = ""; } - if (message.port_id != null && message.hasOwnProperty("port_id")) - object.port_id = message.port_id; - if (message.channel_id != null && message.hasOwnProperty("channel_id")) - object.channel_id = message.channel_id; + if (message.packet != null && message.hasOwnProperty("packet")) + object.packet = $root.ibc.core.channel.v1.Packet.toObject(message.packet, options); + if (message.proof_commitment != null && message.hasOwnProperty("proof_commitment")) + object.proof_commitment = options.bytes === String ? $util.base64.encode(message.proof_commitment, 0, message.proof_commitment.length) : options.bytes === Array ? Array.prototype.slice.call(message.proof_commitment) : message.proof_commitment; + if (message.proof_height != null && message.hasOwnProperty("proof_height")) + object.proof_height = $root.ibc.core.client.v1.Height.toObject(message.proof_height, options); + if (message.signer != null && message.hasOwnProperty("signer")) + object.signer = message.signer; return object; }; /** - * Converts this QueryChannelClientStateRequest to JSON. + * Converts this MsgRecvPacket to JSON. * @function toJSON - * @memberof ibc.core.channel.v1.QueryChannelClientStateRequest + * @memberof ibc.core.channel.v1.MsgRecvPacket * @instance * @returns {Object.} JSON object */ - QueryChannelClientStateRequest.prototype.toJSON = function toJSON() { + MsgRecvPacket.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryChannelClientStateRequest; + return MsgRecvPacket; })(); - v1.QueryChannelClientStateResponse = (function() { + v1.MsgRecvPacketResponse = (function() { /** - * Properties of a QueryChannelClientStateResponse. + * Properties of a MsgRecvPacketResponse. * @memberof ibc.core.channel.v1 - * @interface IQueryChannelClientStateResponse - * @property {ibc.core.client.v1.IIdentifiedClientState|null} [identified_client_state] QueryChannelClientStateResponse identified_client_state - * @property {Uint8Array|null} [proof] QueryChannelClientStateResponse proof - * @property {ibc.core.client.v1.IHeight|null} [proof_height] QueryChannelClientStateResponse proof_height + * @interface IMsgRecvPacketResponse + * @property {ibc.core.channel.v1.ResponseResultType|null} [result] MsgRecvPacketResponse result */ /** - * Constructs a new QueryChannelClientStateResponse. + * Constructs a new MsgRecvPacketResponse. * @memberof ibc.core.channel.v1 - * @classdesc Represents a QueryChannelClientStateResponse. - * @implements IQueryChannelClientStateResponse + * @classdesc Represents a MsgRecvPacketResponse. + * @implements IMsgRecvPacketResponse * @constructor - * @param {ibc.core.channel.v1.IQueryChannelClientStateResponse=} [properties] Properties to set + * @param {ibc.core.channel.v1.IMsgRecvPacketResponse=} [properties] Properties to set */ - function QueryChannelClientStateResponse(properties) { + function MsgRecvPacketResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -43151,89 +49972,63 @@ export const ibc = $root.ibc = (() => { } /** - * QueryChannelClientStateResponse identified_client_state. - * @member {ibc.core.client.v1.IIdentifiedClientState|null|undefined} identified_client_state - * @memberof ibc.core.channel.v1.QueryChannelClientStateResponse - * @instance - */ - QueryChannelClientStateResponse.prototype.identified_client_state = null; - - /** - * QueryChannelClientStateResponse proof. - * @member {Uint8Array} proof - * @memberof ibc.core.channel.v1.QueryChannelClientStateResponse - * @instance - */ - QueryChannelClientStateResponse.prototype.proof = $util.newBuffer([]); - - /** - * QueryChannelClientStateResponse proof_height. - * @member {ibc.core.client.v1.IHeight|null|undefined} proof_height - * @memberof ibc.core.channel.v1.QueryChannelClientStateResponse + * MsgRecvPacketResponse result. + * @member {ibc.core.channel.v1.ResponseResultType} result + * @memberof ibc.core.channel.v1.MsgRecvPacketResponse * @instance */ - QueryChannelClientStateResponse.prototype.proof_height = null; + MsgRecvPacketResponse.prototype.result = 0; /** - * Encodes the specified QueryChannelClientStateResponse message. Does not implicitly {@link ibc.core.channel.v1.QueryChannelClientStateResponse.verify|verify} messages. + * Encodes the specified MsgRecvPacketResponse message. Does not implicitly {@link ibc.core.channel.v1.MsgRecvPacketResponse.verify|verify} messages. * @function encode - * @memberof ibc.core.channel.v1.QueryChannelClientStateResponse + * @memberof ibc.core.channel.v1.MsgRecvPacketResponse * @static - * @param {ibc.core.channel.v1.IQueryChannelClientStateResponse} message QueryChannelClientStateResponse message or plain object to encode + * @param {ibc.core.channel.v1.IMsgRecvPacketResponse} message MsgRecvPacketResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryChannelClientStateResponse.encode = function encode(message, writer) { + MsgRecvPacketResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.identified_client_state != null && Object.hasOwnProperty.call(message, "identified_client_state")) - $root.ibc.core.client.v1.IdentifiedClientState.encode(message.identified_client_state, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.proof != null && Object.hasOwnProperty.call(message, "proof")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.proof); - if (message.proof_height != null && Object.hasOwnProperty.call(message, "proof_height")) - $root.ibc.core.client.v1.Height.encode(message.proof_height, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.result != null && Object.hasOwnProperty.call(message, "result")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.result); return writer; }; /** - * Encodes the specified QueryChannelClientStateResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryChannelClientStateResponse.verify|verify} messages. + * Encodes the specified MsgRecvPacketResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.MsgRecvPacketResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.channel.v1.QueryChannelClientStateResponse + * @memberof ibc.core.channel.v1.MsgRecvPacketResponse * @static - * @param {ibc.core.channel.v1.IQueryChannelClientStateResponse} message QueryChannelClientStateResponse message or plain object to encode + * @param {ibc.core.channel.v1.IMsgRecvPacketResponse} message MsgRecvPacketResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryChannelClientStateResponse.encodeDelimited = function encodeDelimited(message, writer) { + MsgRecvPacketResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryChannelClientStateResponse message from the specified reader or buffer. + * Decodes a MsgRecvPacketResponse message from the specified reader or buffer. * @function decode - * @memberof ibc.core.channel.v1.QueryChannelClientStateResponse + * @memberof ibc.core.channel.v1.MsgRecvPacketResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.channel.v1.QueryChannelClientStateResponse} QueryChannelClientStateResponse + * @returns {ibc.core.channel.v1.MsgRecvPacketResponse} MsgRecvPacketResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryChannelClientStateResponse.decode = function decode(reader, length) { + MsgRecvPacketResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.QueryChannelClientStateResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.MsgRecvPacketResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.identified_client_state = $root.ibc.core.client.v1.IdentifiedClientState.decode(reader, reader.uint32()); - break; - case 2: - message.proof = reader.bytes(); - break; - case 3: - message.proof_height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); + message.result = reader.int32(); break; default: reader.skipType(tag & 7); @@ -43244,146 +50039,129 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a QueryChannelClientStateResponse message from the specified reader or buffer, length delimited. + * Decodes a MsgRecvPacketResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.channel.v1.QueryChannelClientStateResponse + * @memberof ibc.core.channel.v1.MsgRecvPacketResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.channel.v1.QueryChannelClientStateResponse} QueryChannelClientStateResponse + * @returns {ibc.core.channel.v1.MsgRecvPacketResponse} MsgRecvPacketResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryChannelClientStateResponse.decodeDelimited = function decodeDelimited(reader) { + MsgRecvPacketResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryChannelClientStateResponse message. + * Verifies a MsgRecvPacketResponse message. * @function verify - * @memberof ibc.core.channel.v1.QueryChannelClientStateResponse + * @memberof ibc.core.channel.v1.MsgRecvPacketResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryChannelClientStateResponse.verify = function verify(message) { + MsgRecvPacketResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.identified_client_state != null && message.hasOwnProperty("identified_client_state")) { - let error = $root.ibc.core.client.v1.IdentifiedClientState.verify(message.identified_client_state); - if (error) - return "identified_client_state." + error; - } - if (message.proof != null && message.hasOwnProperty("proof")) - if (!(message.proof && typeof message.proof.length === "number" || $util.isString(message.proof))) - return "proof: buffer expected"; - if (message.proof_height != null && message.hasOwnProperty("proof_height")) { - let error = $root.ibc.core.client.v1.Height.verify(message.proof_height); - if (error) - return "proof_height." + error; - } + if (message.result != null && message.hasOwnProperty("result")) + switch (message.result) { + default: + return "result: enum value expected"; + case 0: + case 1: + case 2: + break; + } return null; }; /** - * Creates a QueryChannelClientStateResponse message from a plain object. Also converts values to their respective internal types. + * Creates a MsgRecvPacketResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.channel.v1.QueryChannelClientStateResponse + * @memberof ibc.core.channel.v1.MsgRecvPacketResponse * @static * @param {Object.} object Plain object - * @returns {ibc.core.channel.v1.QueryChannelClientStateResponse} QueryChannelClientStateResponse + * @returns {ibc.core.channel.v1.MsgRecvPacketResponse} MsgRecvPacketResponse */ - QueryChannelClientStateResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.channel.v1.QueryChannelClientStateResponse) + MsgRecvPacketResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.channel.v1.MsgRecvPacketResponse) return object; - let message = new $root.ibc.core.channel.v1.QueryChannelClientStateResponse(); - if (object.identified_client_state != null) { - if (typeof object.identified_client_state !== "object") - throw TypeError(".ibc.core.channel.v1.QueryChannelClientStateResponse.identified_client_state: object expected"); - message.identified_client_state = $root.ibc.core.client.v1.IdentifiedClientState.fromObject(object.identified_client_state); - } - if (object.proof != null) - if (typeof object.proof === "string") - $util.base64.decode(object.proof, message.proof = $util.newBuffer($util.base64.length(object.proof)), 0); - else if (object.proof.length) - message.proof = object.proof; - if (object.proof_height != null) { - if (typeof object.proof_height !== "object") - throw TypeError(".ibc.core.channel.v1.QueryChannelClientStateResponse.proof_height: object expected"); - message.proof_height = $root.ibc.core.client.v1.Height.fromObject(object.proof_height); + let message = new $root.ibc.core.channel.v1.MsgRecvPacketResponse(); + switch (object.result) { + case "RESPONSE_RESULT_TYPE_UNSPECIFIED": + case 0: + message.result = 0; + break; + case "RESPONSE_RESULT_TYPE_NOOP": + case 1: + message.result = 1; + break; + case "RESPONSE_RESULT_TYPE_SUCCESS": + case 2: + message.result = 2; + break; } return message; }; /** - * Creates a plain object from a QueryChannelClientStateResponse message. Also converts values to other types if specified. + * Creates a plain object from a MsgRecvPacketResponse message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.channel.v1.QueryChannelClientStateResponse + * @memberof ibc.core.channel.v1.MsgRecvPacketResponse * @static - * @param {ibc.core.channel.v1.QueryChannelClientStateResponse} message QueryChannelClientStateResponse + * @param {ibc.core.channel.v1.MsgRecvPacketResponse} message MsgRecvPacketResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryChannelClientStateResponse.toObject = function toObject(message, options) { + MsgRecvPacketResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) { - object.identified_client_state = null; - if (options.bytes === String) - object.proof = ""; - else { - object.proof = []; - if (options.bytes !== Array) - object.proof = $util.newBuffer(object.proof); - } - object.proof_height = null; - } - if (message.identified_client_state != null && message.hasOwnProperty("identified_client_state")) - object.identified_client_state = $root.ibc.core.client.v1.IdentifiedClientState.toObject(message.identified_client_state, options); - if (message.proof != null && message.hasOwnProperty("proof")) - object.proof = options.bytes === String ? $util.base64.encode(message.proof, 0, message.proof.length) : options.bytes === Array ? Array.prototype.slice.call(message.proof) : message.proof; - if (message.proof_height != null && message.hasOwnProperty("proof_height")) - object.proof_height = $root.ibc.core.client.v1.Height.toObject(message.proof_height, options); + if (options.defaults) + object.result = options.enums === String ? "RESPONSE_RESULT_TYPE_UNSPECIFIED" : 0; + if (message.result != null && message.hasOwnProperty("result")) + object.result = options.enums === String ? $root.ibc.core.channel.v1.ResponseResultType[message.result] : message.result; return object; }; /** - * Converts this QueryChannelClientStateResponse to JSON. + * Converts this MsgRecvPacketResponse to JSON. * @function toJSON - * @memberof ibc.core.channel.v1.QueryChannelClientStateResponse + * @memberof ibc.core.channel.v1.MsgRecvPacketResponse * @instance * @returns {Object.} JSON object */ - QueryChannelClientStateResponse.prototype.toJSON = function toJSON() { + MsgRecvPacketResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryChannelClientStateResponse; + return MsgRecvPacketResponse; })(); - v1.QueryChannelConsensusStateRequest = (function() { + v1.MsgTimeout = (function() { /** - * Properties of a QueryChannelConsensusStateRequest. + * Properties of a MsgTimeout. * @memberof ibc.core.channel.v1 - * @interface IQueryChannelConsensusStateRequest - * @property {string|null} [port_id] QueryChannelConsensusStateRequest port_id - * @property {string|null} [channel_id] QueryChannelConsensusStateRequest channel_id - * @property {Long|null} [revision_number] QueryChannelConsensusStateRequest revision_number - * @property {Long|null} [revision_height] QueryChannelConsensusStateRequest revision_height + * @interface IMsgTimeout + * @property {ibc.core.channel.v1.IPacket|null} [packet] MsgTimeout packet + * @property {Uint8Array|null} [proof_unreceived] MsgTimeout proof_unreceived + * @property {ibc.core.client.v1.IHeight|null} [proof_height] MsgTimeout proof_height + * @property {Long|null} [next_sequence_recv] MsgTimeout next_sequence_recv + * @property {string|null} [signer] MsgTimeout signer */ /** - * Constructs a new QueryChannelConsensusStateRequest. + * Constructs a new MsgTimeout. * @memberof ibc.core.channel.v1 - * @classdesc Represents a QueryChannelConsensusStateRequest. - * @implements IQueryChannelConsensusStateRequest + * @classdesc Represents a MsgTimeout. + * @implements IMsgTimeout * @constructor - * @param {ibc.core.channel.v1.IQueryChannelConsensusStateRequest=} [properties] Properties to set + * @param {ibc.core.channel.v1.IMsgTimeout=} [properties] Properties to set */ - function QueryChannelConsensusStateRequest(properties) { + function MsgTimeout(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -43391,102 +50169,115 @@ export const ibc = $root.ibc = (() => { } /** - * QueryChannelConsensusStateRequest port_id. - * @member {string} port_id - * @memberof ibc.core.channel.v1.QueryChannelConsensusStateRequest + * MsgTimeout packet. + * @member {ibc.core.channel.v1.IPacket|null|undefined} packet + * @memberof ibc.core.channel.v1.MsgTimeout * @instance */ - QueryChannelConsensusStateRequest.prototype.port_id = ""; + MsgTimeout.prototype.packet = null; /** - * QueryChannelConsensusStateRequest channel_id. - * @member {string} channel_id - * @memberof ibc.core.channel.v1.QueryChannelConsensusStateRequest + * MsgTimeout proof_unreceived. + * @member {Uint8Array} proof_unreceived + * @memberof ibc.core.channel.v1.MsgTimeout * @instance */ - QueryChannelConsensusStateRequest.prototype.channel_id = ""; + MsgTimeout.prototype.proof_unreceived = $util.newBuffer([]); /** - * QueryChannelConsensusStateRequest revision_number. - * @member {Long} revision_number - * @memberof ibc.core.channel.v1.QueryChannelConsensusStateRequest + * MsgTimeout proof_height. + * @member {ibc.core.client.v1.IHeight|null|undefined} proof_height + * @memberof ibc.core.channel.v1.MsgTimeout * @instance */ - QueryChannelConsensusStateRequest.prototype.revision_number = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + MsgTimeout.prototype.proof_height = null; /** - * QueryChannelConsensusStateRequest revision_height. - * @member {Long} revision_height - * @memberof ibc.core.channel.v1.QueryChannelConsensusStateRequest + * MsgTimeout next_sequence_recv. + * @member {Long} next_sequence_recv + * @memberof ibc.core.channel.v1.MsgTimeout * @instance */ - QueryChannelConsensusStateRequest.prototype.revision_height = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + MsgTimeout.prototype.next_sequence_recv = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** - * Encodes the specified QueryChannelConsensusStateRequest message. Does not implicitly {@link ibc.core.channel.v1.QueryChannelConsensusStateRequest.verify|verify} messages. + * MsgTimeout signer. + * @member {string} signer + * @memberof ibc.core.channel.v1.MsgTimeout + * @instance + */ + MsgTimeout.prototype.signer = ""; + + /** + * Encodes the specified MsgTimeout message. Does not implicitly {@link ibc.core.channel.v1.MsgTimeout.verify|verify} messages. * @function encode - * @memberof ibc.core.channel.v1.QueryChannelConsensusStateRequest + * @memberof ibc.core.channel.v1.MsgTimeout * @static - * @param {ibc.core.channel.v1.IQueryChannelConsensusStateRequest} message QueryChannelConsensusStateRequest message or plain object to encode + * @param {ibc.core.channel.v1.IMsgTimeout} message MsgTimeout message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryChannelConsensusStateRequest.encode = function encode(message, writer) { + MsgTimeout.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.port_id != null && Object.hasOwnProperty.call(message, "port_id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.port_id); - if (message.channel_id != null && Object.hasOwnProperty.call(message, "channel_id")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.channel_id); - if (message.revision_number != null && Object.hasOwnProperty.call(message, "revision_number")) - writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.revision_number); - if (message.revision_height != null && Object.hasOwnProperty.call(message, "revision_height")) - writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.revision_height); + if (message.packet != null && Object.hasOwnProperty.call(message, "packet")) + $root.ibc.core.channel.v1.Packet.encode(message.packet, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.proof_unreceived != null && Object.hasOwnProperty.call(message, "proof_unreceived")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.proof_unreceived); + if (message.proof_height != null && Object.hasOwnProperty.call(message, "proof_height")) + $root.ibc.core.client.v1.Height.encode(message.proof_height, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.next_sequence_recv != null && Object.hasOwnProperty.call(message, "next_sequence_recv")) + writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.next_sequence_recv); + if (message.signer != null && Object.hasOwnProperty.call(message, "signer")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.signer); return writer; }; /** - * Encodes the specified QueryChannelConsensusStateRequest message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryChannelConsensusStateRequest.verify|verify} messages. + * Encodes the specified MsgTimeout message, length delimited. Does not implicitly {@link ibc.core.channel.v1.MsgTimeout.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.channel.v1.QueryChannelConsensusStateRequest + * @memberof ibc.core.channel.v1.MsgTimeout * @static - * @param {ibc.core.channel.v1.IQueryChannelConsensusStateRequest} message QueryChannelConsensusStateRequest message or plain object to encode + * @param {ibc.core.channel.v1.IMsgTimeout} message MsgTimeout message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryChannelConsensusStateRequest.encodeDelimited = function encodeDelimited(message, writer) { + MsgTimeout.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryChannelConsensusStateRequest message from the specified reader or buffer. + * Decodes a MsgTimeout message from the specified reader or buffer. * @function decode - * @memberof ibc.core.channel.v1.QueryChannelConsensusStateRequest + * @memberof ibc.core.channel.v1.MsgTimeout * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.channel.v1.QueryChannelConsensusStateRequest} QueryChannelConsensusStateRequest + * @returns {ibc.core.channel.v1.MsgTimeout} MsgTimeout * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryChannelConsensusStateRequest.decode = function decode(reader, length) { + MsgTimeout.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.QueryChannelConsensusStateRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.MsgTimeout(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.port_id = reader.string(); + message.packet = $root.ibc.core.channel.v1.Packet.decode(reader, reader.uint32()); break; case 2: - message.channel_id = reader.string(); + message.proof_unreceived = reader.bytes(); break; case 3: - message.revision_number = reader.uint64(); + message.proof_height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); break; case 4: - message.revision_height = reader.uint64(); + message.next_sequence_recv = reader.uint64(); + break; + case 5: + message.signer = reader.string(); break; default: reader.skipType(tag & 7); @@ -43497,163 +50288,173 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a QueryChannelConsensusStateRequest message from the specified reader or buffer, length delimited. + * Decodes a MsgTimeout message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.channel.v1.QueryChannelConsensusStateRequest + * @memberof ibc.core.channel.v1.MsgTimeout * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.channel.v1.QueryChannelConsensusStateRequest} QueryChannelConsensusStateRequest + * @returns {ibc.core.channel.v1.MsgTimeout} MsgTimeout * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryChannelConsensusStateRequest.decodeDelimited = function decodeDelimited(reader) { + MsgTimeout.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryChannelConsensusStateRequest message. + * Verifies a MsgTimeout message. * @function verify - * @memberof ibc.core.channel.v1.QueryChannelConsensusStateRequest + * @memberof ibc.core.channel.v1.MsgTimeout * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryChannelConsensusStateRequest.verify = function verify(message) { + MsgTimeout.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.port_id != null && message.hasOwnProperty("port_id")) - if (!$util.isString(message.port_id)) - return "port_id: string expected"; - if (message.channel_id != null && message.hasOwnProperty("channel_id")) - if (!$util.isString(message.channel_id)) - return "channel_id: string expected"; - if (message.revision_number != null && message.hasOwnProperty("revision_number")) - if (!$util.isInteger(message.revision_number) && !(message.revision_number && $util.isInteger(message.revision_number.low) && $util.isInteger(message.revision_number.high))) - return "revision_number: integer|Long expected"; - if (message.revision_height != null && message.hasOwnProperty("revision_height")) - if (!$util.isInteger(message.revision_height) && !(message.revision_height && $util.isInteger(message.revision_height.low) && $util.isInteger(message.revision_height.high))) - return "revision_height: integer|Long expected"; + if (message.packet != null && message.hasOwnProperty("packet")) { + let error = $root.ibc.core.channel.v1.Packet.verify(message.packet); + if (error) + return "packet." + error; + } + if (message.proof_unreceived != null && message.hasOwnProperty("proof_unreceived")) + if (!(message.proof_unreceived && typeof message.proof_unreceived.length === "number" || $util.isString(message.proof_unreceived))) + return "proof_unreceived: buffer expected"; + if (message.proof_height != null && message.hasOwnProperty("proof_height")) { + let error = $root.ibc.core.client.v1.Height.verify(message.proof_height); + if (error) + return "proof_height." + error; + } + if (message.next_sequence_recv != null && message.hasOwnProperty("next_sequence_recv")) + if (!$util.isInteger(message.next_sequence_recv) && !(message.next_sequence_recv && $util.isInteger(message.next_sequence_recv.low) && $util.isInteger(message.next_sequence_recv.high))) + return "next_sequence_recv: integer|Long expected"; + if (message.signer != null && message.hasOwnProperty("signer")) + if (!$util.isString(message.signer)) + return "signer: string expected"; return null; }; /** - * Creates a QueryChannelConsensusStateRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MsgTimeout message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.channel.v1.QueryChannelConsensusStateRequest + * @memberof ibc.core.channel.v1.MsgTimeout * @static * @param {Object.} object Plain object - * @returns {ibc.core.channel.v1.QueryChannelConsensusStateRequest} QueryChannelConsensusStateRequest + * @returns {ibc.core.channel.v1.MsgTimeout} MsgTimeout */ - QueryChannelConsensusStateRequest.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.channel.v1.QueryChannelConsensusStateRequest) + MsgTimeout.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.channel.v1.MsgTimeout) return object; - let message = new $root.ibc.core.channel.v1.QueryChannelConsensusStateRequest(); - if (object.port_id != null) - message.port_id = String(object.port_id); - if (object.channel_id != null) - message.channel_id = String(object.channel_id); - if (object.revision_number != null) - if ($util.Long) - (message.revision_number = $util.Long.fromValue(object.revision_number)).unsigned = true; - else if (typeof object.revision_number === "string") - message.revision_number = parseInt(object.revision_number, 10); - else if (typeof object.revision_number === "number") - message.revision_number = object.revision_number; - else if (typeof object.revision_number === "object") - message.revision_number = new $util.LongBits(object.revision_number.low >>> 0, object.revision_number.high >>> 0).toNumber(true); - if (object.revision_height != null) + let message = new $root.ibc.core.channel.v1.MsgTimeout(); + if (object.packet != null) { + if (typeof object.packet !== "object") + throw TypeError(".ibc.core.channel.v1.MsgTimeout.packet: object expected"); + message.packet = $root.ibc.core.channel.v1.Packet.fromObject(object.packet); + } + if (object.proof_unreceived != null) + if (typeof object.proof_unreceived === "string") + $util.base64.decode(object.proof_unreceived, message.proof_unreceived = $util.newBuffer($util.base64.length(object.proof_unreceived)), 0); + else if (object.proof_unreceived.length) + message.proof_unreceived = object.proof_unreceived; + if (object.proof_height != null) { + if (typeof object.proof_height !== "object") + throw TypeError(".ibc.core.channel.v1.MsgTimeout.proof_height: object expected"); + message.proof_height = $root.ibc.core.client.v1.Height.fromObject(object.proof_height); + } + if (object.next_sequence_recv != null) if ($util.Long) - (message.revision_height = $util.Long.fromValue(object.revision_height)).unsigned = true; - else if (typeof object.revision_height === "string") - message.revision_height = parseInt(object.revision_height, 10); - else if (typeof object.revision_height === "number") - message.revision_height = object.revision_height; - else if (typeof object.revision_height === "object") - message.revision_height = new $util.LongBits(object.revision_height.low >>> 0, object.revision_height.high >>> 0).toNumber(true); + (message.next_sequence_recv = $util.Long.fromValue(object.next_sequence_recv)).unsigned = true; + else if (typeof object.next_sequence_recv === "string") + message.next_sequence_recv = parseInt(object.next_sequence_recv, 10); + else if (typeof object.next_sequence_recv === "number") + message.next_sequence_recv = object.next_sequence_recv; + else if (typeof object.next_sequence_recv === "object") + message.next_sequence_recv = new $util.LongBits(object.next_sequence_recv.low >>> 0, object.next_sequence_recv.high >>> 0).toNumber(true); + if (object.signer != null) + message.signer = String(object.signer); return message; }; /** - * Creates a plain object from a QueryChannelConsensusStateRequest message. Also converts values to other types if specified. + * Creates a plain object from a MsgTimeout message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.channel.v1.QueryChannelConsensusStateRequest + * @memberof ibc.core.channel.v1.MsgTimeout * @static - * @param {ibc.core.channel.v1.QueryChannelConsensusStateRequest} message QueryChannelConsensusStateRequest + * @param {ibc.core.channel.v1.MsgTimeout} message MsgTimeout * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryChannelConsensusStateRequest.toObject = function toObject(message, options) { + MsgTimeout.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - object.port_id = ""; - object.channel_id = ""; - if ($util.Long) { - let long = new $util.Long(0, 0, true); - object.revision_number = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.revision_number = options.longs === String ? "0" : 0; + object.packet = null; + if (options.bytes === String) + object.proof_unreceived = ""; + else { + object.proof_unreceived = []; + if (options.bytes !== Array) + object.proof_unreceived = $util.newBuffer(object.proof_unreceived); + } + object.proof_height = null; if ($util.Long) { let long = new $util.Long(0, 0, true); - object.revision_height = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + object.next_sequence_recv = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.revision_height = options.longs === String ? "0" : 0; + object.next_sequence_recv = options.longs === String ? "0" : 0; + object.signer = ""; } - if (message.port_id != null && message.hasOwnProperty("port_id")) - object.port_id = message.port_id; - if (message.channel_id != null && message.hasOwnProperty("channel_id")) - object.channel_id = message.channel_id; - if (message.revision_number != null && message.hasOwnProperty("revision_number")) - if (typeof message.revision_number === "number") - object.revision_number = options.longs === String ? String(message.revision_number) : message.revision_number; - else - object.revision_number = options.longs === String ? $util.Long.prototype.toString.call(message.revision_number) : options.longs === Number ? new $util.LongBits(message.revision_number.low >>> 0, message.revision_number.high >>> 0).toNumber(true) : message.revision_number; - if (message.revision_height != null && message.hasOwnProperty("revision_height")) - if (typeof message.revision_height === "number") - object.revision_height = options.longs === String ? String(message.revision_height) : message.revision_height; + if (message.packet != null && message.hasOwnProperty("packet")) + object.packet = $root.ibc.core.channel.v1.Packet.toObject(message.packet, options); + if (message.proof_unreceived != null && message.hasOwnProperty("proof_unreceived")) + object.proof_unreceived = options.bytes === String ? $util.base64.encode(message.proof_unreceived, 0, message.proof_unreceived.length) : options.bytes === Array ? Array.prototype.slice.call(message.proof_unreceived) : message.proof_unreceived; + if (message.proof_height != null && message.hasOwnProperty("proof_height")) + object.proof_height = $root.ibc.core.client.v1.Height.toObject(message.proof_height, options); + if (message.next_sequence_recv != null && message.hasOwnProperty("next_sequence_recv")) + if (typeof message.next_sequence_recv === "number") + object.next_sequence_recv = options.longs === String ? String(message.next_sequence_recv) : message.next_sequence_recv; else - object.revision_height = options.longs === String ? $util.Long.prototype.toString.call(message.revision_height) : options.longs === Number ? new $util.LongBits(message.revision_height.low >>> 0, message.revision_height.high >>> 0).toNumber(true) : message.revision_height; + object.next_sequence_recv = options.longs === String ? $util.Long.prototype.toString.call(message.next_sequence_recv) : options.longs === Number ? new $util.LongBits(message.next_sequence_recv.low >>> 0, message.next_sequence_recv.high >>> 0).toNumber(true) : message.next_sequence_recv; + if (message.signer != null && message.hasOwnProperty("signer")) + object.signer = message.signer; return object; }; /** - * Converts this QueryChannelConsensusStateRequest to JSON. + * Converts this MsgTimeout to JSON. * @function toJSON - * @memberof ibc.core.channel.v1.QueryChannelConsensusStateRequest + * @memberof ibc.core.channel.v1.MsgTimeout * @instance * @returns {Object.} JSON object */ - QueryChannelConsensusStateRequest.prototype.toJSON = function toJSON() { + MsgTimeout.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryChannelConsensusStateRequest; + return MsgTimeout; })(); - v1.QueryChannelConsensusStateResponse = (function() { + v1.MsgTimeoutResponse = (function() { /** - * Properties of a QueryChannelConsensusStateResponse. + * Properties of a MsgTimeoutResponse. * @memberof ibc.core.channel.v1 - * @interface IQueryChannelConsensusStateResponse - * @property {google.protobuf.IAny|null} [consensus_state] QueryChannelConsensusStateResponse consensus_state - * @property {string|null} [client_id] QueryChannelConsensusStateResponse client_id - * @property {Uint8Array|null} [proof] QueryChannelConsensusStateResponse proof - * @property {ibc.core.client.v1.IHeight|null} [proof_height] QueryChannelConsensusStateResponse proof_height + * @interface IMsgTimeoutResponse + * @property {ibc.core.channel.v1.ResponseResultType|null} [result] MsgTimeoutResponse result */ /** - * Constructs a new QueryChannelConsensusStateResponse. + * Constructs a new MsgTimeoutResponse. * @memberof ibc.core.channel.v1 - * @classdesc Represents a QueryChannelConsensusStateResponse. - * @implements IQueryChannelConsensusStateResponse + * @classdesc Represents a MsgTimeoutResponse. + * @implements IMsgTimeoutResponse * @constructor - * @param {ibc.core.channel.v1.IQueryChannelConsensusStateResponse=} [properties] Properties to set + * @param {ibc.core.channel.v1.IMsgTimeoutResponse=} [properties] Properties to set */ - function QueryChannelConsensusStateResponse(properties) { + function MsgTimeoutResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -43661,102 +50462,63 @@ export const ibc = $root.ibc = (() => { } /** - * QueryChannelConsensusStateResponse consensus_state. - * @member {google.protobuf.IAny|null|undefined} consensus_state - * @memberof ibc.core.channel.v1.QueryChannelConsensusStateResponse - * @instance - */ - QueryChannelConsensusStateResponse.prototype.consensus_state = null; - - /** - * QueryChannelConsensusStateResponse client_id. - * @member {string} client_id - * @memberof ibc.core.channel.v1.QueryChannelConsensusStateResponse - * @instance - */ - QueryChannelConsensusStateResponse.prototype.client_id = ""; - - /** - * QueryChannelConsensusStateResponse proof. - * @member {Uint8Array} proof - * @memberof ibc.core.channel.v1.QueryChannelConsensusStateResponse - * @instance - */ - QueryChannelConsensusStateResponse.prototype.proof = $util.newBuffer([]); - - /** - * QueryChannelConsensusStateResponse proof_height. - * @member {ibc.core.client.v1.IHeight|null|undefined} proof_height - * @memberof ibc.core.channel.v1.QueryChannelConsensusStateResponse + * MsgTimeoutResponse result. + * @member {ibc.core.channel.v1.ResponseResultType} result + * @memberof ibc.core.channel.v1.MsgTimeoutResponse * @instance */ - QueryChannelConsensusStateResponse.prototype.proof_height = null; + MsgTimeoutResponse.prototype.result = 0; /** - * Encodes the specified QueryChannelConsensusStateResponse message. Does not implicitly {@link ibc.core.channel.v1.QueryChannelConsensusStateResponse.verify|verify} messages. + * Encodes the specified MsgTimeoutResponse message. Does not implicitly {@link ibc.core.channel.v1.MsgTimeoutResponse.verify|verify} messages. * @function encode - * @memberof ibc.core.channel.v1.QueryChannelConsensusStateResponse + * @memberof ibc.core.channel.v1.MsgTimeoutResponse * @static - * @param {ibc.core.channel.v1.IQueryChannelConsensusStateResponse} message QueryChannelConsensusStateResponse message or plain object to encode + * @param {ibc.core.channel.v1.IMsgTimeoutResponse} message MsgTimeoutResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryChannelConsensusStateResponse.encode = function encode(message, writer) { + MsgTimeoutResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.consensus_state != null && Object.hasOwnProperty.call(message, "consensus_state")) - $root.google.protobuf.Any.encode(message.consensus_state, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.client_id != null && Object.hasOwnProperty.call(message, "client_id")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.client_id); - if (message.proof != null && Object.hasOwnProperty.call(message, "proof")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.proof); - if (message.proof_height != null && Object.hasOwnProperty.call(message, "proof_height")) - $root.ibc.core.client.v1.Height.encode(message.proof_height, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.result != null && Object.hasOwnProperty.call(message, "result")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.result); return writer; }; /** - * Encodes the specified QueryChannelConsensusStateResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryChannelConsensusStateResponse.verify|verify} messages. + * Encodes the specified MsgTimeoutResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.MsgTimeoutResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.channel.v1.QueryChannelConsensusStateResponse + * @memberof ibc.core.channel.v1.MsgTimeoutResponse * @static - * @param {ibc.core.channel.v1.IQueryChannelConsensusStateResponse} message QueryChannelConsensusStateResponse message or plain object to encode + * @param {ibc.core.channel.v1.IMsgTimeoutResponse} message MsgTimeoutResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryChannelConsensusStateResponse.encodeDelimited = function encodeDelimited(message, writer) { + MsgTimeoutResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryChannelConsensusStateResponse message from the specified reader or buffer. + * Decodes a MsgTimeoutResponse message from the specified reader or buffer. * @function decode - * @memberof ibc.core.channel.v1.QueryChannelConsensusStateResponse + * @memberof ibc.core.channel.v1.MsgTimeoutResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.channel.v1.QueryChannelConsensusStateResponse} QueryChannelConsensusStateResponse + * @returns {ibc.core.channel.v1.MsgTimeoutResponse} MsgTimeoutResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryChannelConsensusStateResponse.decode = function decode(reader, length) { + MsgTimeoutResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.QueryChannelConsensusStateResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.MsgTimeoutResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.consensus_state = $root.google.protobuf.Any.decode(reader, reader.uint32()); - break; - case 2: - message.client_id = reader.string(); - break; - case 3: - message.proof = reader.bytes(); - break; - case 4: - message.proof_height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); + message.result = reader.int32(); break; default: reader.skipType(tag & 7); @@ -43767,153 +50529,130 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a QueryChannelConsensusStateResponse message from the specified reader or buffer, length delimited. + * Decodes a MsgTimeoutResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.channel.v1.QueryChannelConsensusStateResponse + * @memberof ibc.core.channel.v1.MsgTimeoutResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.channel.v1.QueryChannelConsensusStateResponse} QueryChannelConsensusStateResponse + * @returns {ibc.core.channel.v1.MsgTimeoutResponse} MsgTimeoutResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryChannelConsensusStateResponse.decodeDelimited = function decodeDelimited(reader) { + MsgTimeoutResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryChannelConsensusStateResponse message. + * Verifies a MsgTimeoutResponse message. * @function verify - * @memberof ibc.core.channel.v1.QueryChannelConsensusStateResponse + * @memberof ibc.core.channel.v1.MsgTimeoutResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryChannelConsensusStateResponse.verify = function verify(message) { + MsgTimeoutResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.consensus_state != null && message.hasOwnProperty("consensus_state")) { - let error = $root.google.protobuf.Any.verify(message.consensus_state); - if (error) - return "consensus_state." + error; - } - if (message.client_id != null && message.hasOwnProperty("client_id")) - if (!$util.isString(message.client_id)) - return "client_id: string expected"; - if (message.proof != null && message.hasOwnProperty("proof")) - if (!(message.proof && typeof message.proof.length === "number" || $util.isString(message.proof))) - return "proof: buffer expected"; - if (message.proof_height != null && message.hasOwnProperty("proof_height")) { - let error = $root.ibc.core.client.v1.Height.verify(message.proof_height); - if (error) - return "proof_height." + error; - } + if (message.result != null && message.hasOwnProperty("result")) + switch (message.result) { + default: + return "result: enum value expected"; + case 0: + case 1: + case 2: + break; + } return null; }; /** - * Creates a QueryChannelConsensusStateResponse message from a plain object. Also converts values to their respective internal types. + * Creates a MsgTimeoutResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.channel.v1.QueryChannelConsensusStateResponse + * @memberof ibc.core.channel.v1.MsgTimeoutResponse * @static * @param {Object.} object Plain object - * @returns {ibc.core.channel.v1.QueryChannelConsensusStateResponse} QueryChannelConsensusStateResponse + * @returns {ibc.core.channel.v1.MsgTimeoutResponse} MsgTimeoutResponse */ - QueryChannelConsensusStateResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.channel.v1.QueryChannelConsensusStateResponse) + MsgTimeoutResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.channel.v1.MsgTimeoutResponse) return object; - let message = new $root.ibc.core.channel.v1.QueryChannelConsensusStateResponse(); - if (object.consensus_state != null) { - if (typeof object.consensus_state !== "object") - throw TypeError(".ibc.core.channel.v1.QueryChannelConsensusStateResponse.consensus_state: object expected"); - message.consensus_state = $root.google.protobuf.Any.fromObject(object.consensus_state); - } - if (object.client_id != null) - message.client_id = String(object.client_id); - if (object.proof != null) - if (typeof object.proof === "string") - $util.base64.decode(object.proof, message.proof = $util.newBuffer($util.base64.length(object.proof)), 0); - else if (object.proof.length) - message.proof = object.proof; - if (object.proof_height != null) { - if (typeof object.proof_height !== "object") - throw TypeError(".ibc.core.channel.v1.QueryChannelConsensusStateResponse.proof_height: object expected"); - message.proof_height = $root.ibc.core.client.v1.Height.fromObject(object.proof_height); + let message = new $root.ibc.core.channel.v1.MsgTimeoutResponse(); + switch (object.result) { + case "RESPONSE_RESULT_TYPE_UNSPECIFIED": + case 0: + message.result = 0; + break; + case "RESPONSE_RESULT_TYPE_NOOP": + case 1: + message.result = 1; + break; + case "RESPONSE_RESULT_TYPE_SUCCESS": + case 2: + message.result = 2; + break; } return message; }; /** - * Creates a plain object from a QueryChannelConsensusStateResponse message. Also converts values to other types if specified. + * Creates a plain object from a MsgTimeoutResponse message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.channel.v1.QueryChannelConsensusStateResponse + * @memberof ibc.core.channel.v1.MsgTimeoutResponse * @static - * @param {ibc.core.channel.v1.QueryChannelConsensusStateResponse} message QueryChannelConsensusStateResponse + * @param {ibc.core.channel.v1.MsgTimeoutResponse} message MsgTimeoutResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryChannelConsensusStateResponse.toObject = function toObject(message, options) { + MsgTimeoutResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) { - object.consensus_state = null; - object.client_id = ""; - if (options.bytes === String) - object.proof = ""; - else { - object.proof = []; - if (options.bytes !== Array) - object.proof = $util.newBuffer(object.proof); - } - object.proof_height = null; - } - if (message.consensus_state != null && message.hasOwnProperty("consensus_state")) - object.consensus_state = $root.google.protobuf.Any.toObject(message.consensus_state, options); - if (message.client_id != null && message.hasOwnProperty("client_id")) - object.client_id = message.client_id; - if (message.proof != null && message.hasOwnProperty("proof")) - object.proof = options.bytes === String ? $util.base64.encode(message.proof, 0, message.proof.length) : options.bytes === Array ? Array.prototype.slice.call(message.proof) : message.proof; - if (message.proof_height != null && message.hasOwnProperty("proof_height")) - object.proof_height = $root.ibc.core.client.v1.Height.toObject(message.proof_height, options); + if (options.defaults) + object.result = options.enums === String ? "RESPONSE_RESULT_TYPE_UNSPECIFIED" : 0; + if (message.result != null && message.hasOwnProperty("result")) + object.result = options.enums === String ? $root.ibc.core.channel.v1.ResponseResultType[message.result] : message.result; return object; }; /** - * Converts this QueryChannelConsensusStateResponse to JSON. + * Converts this MsgTimeoutResponse to JSON. * @function toJSON - * @memberof ibc.core.channel.v1.QueryChannelConsensusStateResponse + * @memberof ibc.core.channel.v1.MsgTimeoutResponse * @instance * @returns {Object.} JSON object */ - QueryChannelConsensusStateResponse.prototype.toJSON = function toJSON() { + MsgTimeoutResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryChannelConsensusStateResponse; + return MsgTimeoutResponse; })(); - v1.QueryPacketCommitmentRequest = (function() { + v1.MsgTimeoutOnClose = (function() { /** - * Properties of a QueryPacketCommitmentRequest. + * Properties of a MsgTimeoutOnClose. * @memberof ibc.core.channel.v1 - * @interface IQueryPacketCommitmentRequest - * @property {string|null} [port_id] QueryPacketCommitmentRequest port_id - * @property {string|null} [channel_id] QueryPacketCommitmentRequest channel_id - * @property {Long|null} [sequence] QueryPacketCommitmentRequest sequence + * @interface IMsgTimeoutOnClose + * @property {ibc.core.channel.v1.IPacket|null} [packet] MsgTimeoutOnClose packet + * @property {Uint8Array|null} [proof_unreceived] MsgTimeoutOnClose proof_unreceived + * @property {Uint8Array|null} [proof_close] MsgTimeoutOnClose proof_close + * @property {ibc.core.client.v1.IHeight|null} [proof_height] MsgTimeoutOnClose proof_height + * @property {Long|null} [next_sequence_recv] MsgTimeoutOnClose next_sequence_recv + * @property {string|null} [signer] MsgTimeoutOnClose signer */ /** - * Constructs a new QueryPacketCommitmentRequest. + * Constructs a new MsgTimeoutOnClose. * @memberof ibc.core.channel.v1 - * @classdesc Represents a QueryPacketCommitmentRequest. - * @implements IQueryPacketCommitmentRequest + * @classdesc Represents a MsgTimeoutOnClose. + * @implements IMsgTimeoutOnClose * @constructor - * @param {ibc.core.channel.v1.IQueryPacketCommitmentRequest=} [properties] Properties to set + * @param {ibc.core.channel.v1.IMsgTimeoutOnClose=} [properties] Properties to set */ - function QueryPacketCommitmentRequest(properties) { + function MsgTimeoutOnClose(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -43921,89 +50660,128 @@ export const ibc = $root.ibc = (() => { } /** - * QueryPacketCommitmentRequest port_id. - * @member {string} port_id - * @memberof ibc.core.channel.v1.QueryPacketCommitmentRequest + * MsgTimeoutOnClose packet. + * @member {ibc.core.channel.v1.IPacket|null|undefined} packet + * @memberof ibc.core.channel.v1.MsgTimeoutOnClose * @instance */ - QueryPacketCommitmentRequest.prototype.port_id = ""; + MsgTimeoutOnClose.prototype.packet = null; /** - * QueryPacketCommitmentRequest channel_id. - * @member {string} channel_id - * @memberof ibc.core.channel.v1.QueryPacketCommitmentRequest + * MsgTimeoutOnClose proof_unreceived. + * @member {Uint8Array} proof_unreceived + * @memberof ibc.core.channel.v1.MsgTimeoutOnClose * @instance */ - QueryPacketCommitmentRequest.prototype.channel_id = ""; + MsgTimeoutOnClose.prototype.proof_unreceived = $util.newBuffer([]); /** - * QueryPacketCommitmentRequest sequence. - * @member {Long} sequence - * @memberof ibc.core.channel.v1.QueryPacketCommitmentRequest + * MsgTimeoutOnClose proof_close. + * @member {Uint8Array} proof_close + * @memberof ibc.core.channel.v1.MsgTimeoutOnClose * @instance */ - QueryPacketCommitmentRequest.prototype.sequence = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + MsgTimeoutOnClose.prototype.proof_close = $util.newBuffer([]); /** - * Encodes the specified QueryPacketCommitmentRequest message. Does not implicitly {@link ibc.core.channel.v1.QueryPacketCommitmentRequest.verify|verify} messages. + * MsgTimeoutOnClose proof_height. + * @member {ibc.core.client.v1.IHeight|null|undefined} proof_height + * @memberof ibc.core.channel.v1.MsgTimeoutOnClose + * @instance + */ + MsgTimeoutOnClose.prototype.proof_height = null; + + /** + * MsgTimeoutOnClose next_sequence_recv. + * @member {Long} next_sequence_recv + * @memberof ibc.core.channel.v1.MsgTimeoutOnClose + * @instance + */ + MsgTimeoutOnClose.prototype.next_sequence_recv = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + + /** + * MsgTimeoutOnClose signer. + * @member {string} signer + * @memberof ibc.core.channel.v1.MsgTimeoutOnClose + * @instance + */ + MsgTimeoutOnClose.prototype.signer = ""; + + /** + * Encodes the specified MsgTimeoutOnClose message. Does not implicitly {@link ibc.core.channel.v1.MsgTimeoutOnClose.verify|verify} messages. * @function encode - * @memberof ibc.core.channel.v1.QueryPacketCommitmentRequest + * @memberof ibc.core.channel.v1.MsgTimeoutOnClose * @static - * @param {ibc.core.channel.v1.IQueryPacketCommitmentRequest} message QueryPacketCommitmentRequest message or plain object to encode + * @param {ibc.core.channel.v1.IMsgTimeoutOnClose} message MsgTimeoutOnClose message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryPacketCommitmentRequest.encode = function encode(message, writer) { + MsgTimeoutOnClose.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.port_id != null && Object.hasOwnProperty.call(message, "port_id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.port_id); - if (message.channel_id != null && Object.hasOwnProperty.call(message, "channel_id")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.channel_id); - if (message.sequence != null && Object.hasOwnProperty.call(message, "sequence")) - writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.sequence); + if (message.packet != null && Object.hasOwnProperty.call(message, "packet")) + $root.ibc.core.channel.v1.Packet.encode(message.packet, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.proof_unreceived != null && Object.hasOwnProperty.call(message, "proof_unreceived")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.proof_unreceived); + if (message.proof_close != null && Object.hasOwnProperty.call(message, "proof_close")) + writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.proof_close); + if (message.proof_height != null && Object.hasOwnProperty.call(message, "proof_height")) + $root.ibc.core.client.v1.Height.encode(message.proof_height, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.next_sequence_recv != null && Object.hasOwnProperty.call(message, "next_sequence_recv")) + writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.next_sequence_recv); + if (message.signer != null && Object.hasOwnProperty.call(message, "signer")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.signer); return writer; }; /** - * Encodes the specified QueryPacketCommitmentRequest message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryPacketCommitmentRequest.verify|verify} messages. + * Encodes the specified MsgTimeoutOnClose message, length delimited. Does not implicitly {@link ibc.core.channel.v1.MsgTimeoutOnClose.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.channel.v1.QueryPacketCommitmentRequest + * @memberof ibc.core.channel.v1.MsgTimeoutOnClose * @static - * @param {ibc.core.channel.v1.IQueryPacketCommitmentRequest} message QueryPacketCommitmentRequest message or plain object to encode + * @param {ibc.core.channel.v1.IMsgTimeoutOnClose} message MsgTimeoutOnClose message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryPacketCommitmentRequest.encodeDelimited = function encodeDelimited(message, writer) { + MsgTimeoutOnClose.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryPacketCommitmentRequest message from the specified reader or buffer. + * Decodes a MsgTimeoutOnClose message from the specified reader or buffer. * @function decode - * @memberof ibc.core.channel.v1.QueryPacketCommitmentRequest + * @memberof ibc.core.channel.v1.MsgTimeoutOnClose * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.channel.v1.QueryPacketCommitmentRequest} QueryPacketCommitmentRequest + * @returns {ibc.core.channel.v1.MsgTimeoutOnClose} MsgTimeoutOnClose * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryPacketCommitmentRequest.decode = function decode(reader, length) { + MsgTimeoutOnClose.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.QueryPacketCommitmentRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.MsgTimeoutOnClose(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.port_id = reader.string(); + message.packet = $root.ibc.core.channel.v1.Packet.decode(reader, reader.uint32()); break; case 2: - message.channel_id = reader.string(); + message.proof_unreceived = reader.bytes(); break; case 3: - message.sequence = reader.uint64(); + message.proof_close = reader.bytes(); + break; + case 4: + message.proof_height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); + break; + case 5: + message.next_sequence_recv = reader.uint64(); + break; + case 6: + message.signer = reader.string(); break; default: reader.skipType(tag & 7); @@ -44014,140 +50792,190 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a QueryPacketCommitmentRequest message from the specified reader or buffer, length delimited. + * Decodes a MsgTimeoutOnClose message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.channel.v1.QueryPacketCommitmentRequest + * @memberof ibc.core.channel.v1.MsgTimeoutOnClose * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.channel.v1.QueryPacketCommitmentRequest} QueryPacketCommitmentRequest + * @returns {ibc.core.channel.v1.MsgTimeoutOnClose} MsgTimeoutOnClose * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryPacketCommitmentRequest.decodeDelimited = function decodeDelimited(reader) { + MsgTimeoutOnClose.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryPacketCommitmentRequest message. + * Verifies a MsgTimeoutOnClose message. * @function verify - * @memberof ibc.core.channel.v1.QueryPacketCommitmentRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - QueryPacketCommitmentRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.port_id != null && message.hasOwnProperty("port_id")) - if (!$util.isString(message.port_id)) - return "port_id: string expected"; - if (message.channel_id != null && message.hasOwnProperty("channel_id")) - if (!$util.isString(message.channel_id)) - return "channel_id: string expected"; - if (message.sequence != null && message.hasOwnProperty("sequence")) - if (!$util.isInteger(message.sequence) && !(message.sequence && $util.isInteger(message.sequence.low) && $util.isInteger(message.sequence.high))) - return "sequence: integer|Long expected"; + * @memberof ibc.core.channel.v1.MsgTimeoutOnClose + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MsgTimeoutOnClose.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.packet != null && message.hasOwnProperty("packet")) { + let error = $root.ibc.core.channel.v1.Packet.verify(message.packet); + if (error) + return "packet." + error; + } + if (message.proof_unreceived != null && message.hasOwnProperty("proof_unreceived")) + if (!(message.proof_unreceived && typeof message.proof_unreceived.length === "number" || $util.isString(message.proof_unreceived))) + return "proof_unreceived: buffer expected"; + if (message.proof_close != null && message.hasOwnProperty("proof_close")) + if (!(message.proof_close && typeof message.proof_close.length === "number" || $util.isString(message.proof_close))) + return "proof_close: buffer expected"; + if (message.proof_height != null && message.hasOwnProperty("proof_height")) { + let error = $root.ibc.core.client.v1.Height.verify(message.proof_height); + if (error) + return "proof_height." + error; + } + if (message.next_sequence_recv != null && message.hasOwnProperty("next_sequence_recv")) + if (!$util.isInteger(message.next_sequence_recv) && !(message.next_sequence_recv && $util.isInteger(message.next_sequence_recv.low) && $util.isInteger(message.next_sequence_recv.high))) + return "next_sequence_recv: integer|Long expected"; + if (message.signer != null && message.hasOwnProperty("signer")) + if (!$util.isString(message.signer)) + return "signer: string expected"; return null; }; /** - * Creates a QueryPacketCommitmentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MsgTimeoutOnClose message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.channel.v1.QueryPacketCommitmentRequest + * @memberof ibc.core.channel.v1.MsgTimeoutOnClose * @static * @param {Object.} object Plain object - * @returns {ibc.core.channel.v1.QueryPacketCommitmentRequest} QueryPacketCommitmentRequest + * @returns {ibc.core.channel.v1.MsgTimeoutOnClose} MsgTimeoutOnClose */ - QueryPacketCommitmentRequest.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.channel.v1.QueryPacketCommitmentRequest) + MsgTimeoutOnClose.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.channel.v1.MsgTimeoutOnClose) return object; - let message = new $root.ibc.core.channel.v1.QueryPacketCommitmentRequest(); - if (object.port_id != null) - message.port_id = String(object.port_id); - if (object.channel_id != null) - message.channel_id = String(object.channel_id); - if (object.sequence != null) + let message = new $root.ibc.core.channel.v1.MsgTimeoutOnClose(); + if (object.packet != null) { + if (typeof object.packet !== "object") + throw TypeError(".ibc.core.channel.v1.MsgTimeoutOnClose.packet: object expected"); + message.packet = $root.ibc.core.channel.v1.Packet.fromObject(object.packet); + } + if (object.proof_unreceived != null) + if (typeof object.proof_unreceived === "string") + $util.base64.decode(object.proof_unreceived, message.proof_unreceived = $util.newBuffer($util.base64.length(object.proof_unreceived)), 0); + else if (object.proof_unreceived.length) + message.proof_unreceived = object.proof_unreceived; + if (object.proof_close != null) + if (typeof object.proof_close === "string") + $util.base64.decode(object.proof_close, message.proof_close = $util.newBuffer($util.base64.length(object.proof_close)), 0); + else if (object.proof_close.length) + message.proof_close = object.proof_close; + if (object.proof_height != null) { + if (typeof object.proof_height !== "object") + throw TypeError(".ibc.core.channel.v1.MsgTimeoutOnClose.proof_height: object expected"); + message.proof_height = $root.ibc.core.client.v1.Height.fromObject(object.proof_height); + } + if (object.next_sequence_recv != null) if ($util.Long) - (message.sequence = $util.Long.fromValue(object.sequence)).unsigned = true; - else if (typeof object.sequence === "string") - message.sequence = parseInt(object.sequence, 10); - else if (typeof object.sequence === "number") - message.sequence = object.sequence; - else if (typeof object.sequence === "object") - message.sequence = new $util.LongBits(object.sequence.low >>> 0, object.sequence.high >>> 0).toNumber(true); + (message.next_sequence_recv = $util.Long.fromValue(object.next_sequence_recv)).unsigned = true; + else if (typeof object.next_sequence_recv === "string") + message.next_sequence_recv = parseInt(object.next_sequence_recv, 10); + else if (typeof object.next_sequence_recv === "number") + message.next_sequence_recv = object.next_sequence_recv; + else if (typeof object.next_sequence_recv === "object") + message.next_sequence_recv = new $util.LongBits(object.next_sequence_recv.low >>> 0, object.next_sequence_recv.high >>> 0).toNumber(true); + if (object.signer != null) + message.signer = String(object.signer); return message; }; /** - * Creates a plain object from a QueryPacketCommitmentRequest message. Also converts values to other types if specified. + * Creates a plain object from a MsgTimeoutOnClose message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.channel.v1.QueryPacketCommitmentRequest + * @memberof ibc.core.channel.v1.MsgTimeoutOnClose * @static - * @param {ibc.core.channel.v1.QueryPacketCommitmentRequest} message QueryPacketCommitmentRequest + * @param {ibc.core.channel.v1.MsgTimeoutOnClose} message MsgTimeoutOnClose * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryPacketCommitmentRequest.toObject = function toObject(message, options) { + MsgTimeoutOnClose.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - object.port_id = ""; - object.channel_id = ""; + object.packet = null; + if (options.bytes === String) + object.proof_unreceived = ""; + else { + object.proof_unreceived = []; + if (options.bytes !== Array) + object.proof_unreceived = $util.newBuffer(object.proof_unreceived); + } + if (options.bytes === String) + object.proof_close = ""; + else { + object.proof_close = []; + if (options.bytes !== Array) + object.proof_close = $util.newBuffer(object.proof_close); + } + object.proof_height = null; if ($util.Long) { let long = new $util.Long(0, 0, true); - object.sequence = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + object.next_sequence_recv = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.sequence = options.longs === String ? "0" : 0; + object.next_sequence_recv = options.longs === String ? "0" : 0; + object.signer = ""; } - if (message.port_id != null && message.hasOwnProperty("port_id")) - object.port_id = message.port_id; - if (message.channel_id != null && message.hasOwnProperty("channel_id")) - object.channel_id = message.channel_id; - if (message.sequence != null && message.hasOwnProperty("sequence")) - if (typeof message.sequence === "number") - object.sequence = options.longs === String ? String(message.sequence) : message.sequence; + if (message.packet != null && message.hasOwnProperty("packet")) + object.packet = $root.ibc.core.channel.v1.Packet.toObject(message.packet, options); + if (message.proof_unreceived != null && message.hasOwnProperty("proof_unreceived")) + object.proof_unreceived = options.bytes === String ? $util.base64.encode(message.proof_unreceived, 0, message.proof_unreceived.length) : options.bytes === Array ? Array.prototype.slice.call(message.proof_unreceived) : message.proof_unreceived; + if (message.proof_close != null && message.hasOwnProperty("proof_close")) + object.proof_close = options.bytes === String ? $util.base64.encode(message.proof_close, 0, message.proof_close.length) : options.bytes === Array ? Array.prototype.slice.call(message.proof_close) : message.proof_close; + if (message.proof_height != null && message.hasOwnProperty("proof_height")) + object.proof_height = $root.ibc.core.client.v1.Height.toObject(message.proof_height, options); + if (message.next_sequence_recv != null && message.hasOwnProperty("next_sequence_recv")) + if (typeof message.next_sequence_recv === "number") + object.next_sequence_recv = options.longs === String ? String(message.next_sequence_recv) : message.next_sequence_recv; else - object.sequence = options.longs === String ? $util.Long.prototype.toString.call(message.sequence) : options.longs === Number ? new $util.LongBits(message.sequence.low >>> 0, message.sequence.high >>> 0).toNumber(true) : message.sequence; + object.next_sequence_recv = options.longs === String ? $util.Long.prototype.toString.call(message.next_sequence_recv) : options.longs === Number ? new $util.LongBits(message.next_sequence_recv.low >>> 0, message.next_sequence_recv.high >>> 0).toNumber(true) : message.next_sequence_recv; + if (message.signer != null && message.hasOwnProperty("signer")) + object.signer = message.signer; return object; }; /** - * Converts this QueryPacketCommitmentRequest to JSON. + * Converts this MsgTimeoutOnClose to JSON. * @function toJSON - * @memberof ibc.core.channel.v1.QueryPacketCommitmentRequest + * @memberof ibc.core.channel.v1.MsgTimeoutOnClose * @instance * @returns {Object.} JSON object */ - QueryPacketCommitmentRequest.prototype.toJSON = function toJSON() { + MsgTimeoutOnClose.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryPacketCommitmentRequest; + return MsgTimeoutOnClose; })(); - v1.QueryPacketCommitmentResponse = (function() { + v1.MsgTimeoutOnCloseResponse = (function() { /** - * Properties of a QueryPacketCommitmentResponse. + * Properties of a MsgTimeoutOnCloseResponse. * @memberof ibc.core.channel.v1 - * @interface IQueryPacketCommitmentResponse - * @property {Uint8Array|null} [commitment] QueryPacketCommitmentResponse commitment - * @property {Uint8Array|null} [proof] QueryPacketCommitmentResponse proof - * @property {ibc.core.client.v1.IHeight|null} [proof_height] QueryPacketCommitmentResponse proof_height + * @interface IMsgTimeoutOnCloseResponse + * @property {ibc.core.channel.v1.ResponseResultType|null} [result] MsgTimeoutOnCloseResponse result */ /** - * Constructs a new QueryPacketCommitmentResponse. + * Constructs a new MsgTimeoutOnCloseResponse. * @memberof ibc.core.channel.v1 - * @classdesc Represents a QueryPacketCommitmentResponse. - * @implements IQueryPacketCommitmentResponse + * @classdesc Represents a MsgTimeoutOnCloseResponse. + * @implements IMsgTimeoutOnCloseResponse * @constructor - * @param {ibc.core.channel.v1.IQueryPacketCommitmentResponse=} [properties] Properties to set + * @param {ibc.core.channel.v1.IMsgTimeoutOnCloseResponse=} [properties] Properties to set */ - function QueryPacketCommitmentResponse(properties) { + function MsgTimeoutOnCloseResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -44155,89 +50983,63 @@ export const ibc = $root.ibc = (() => { } /** - * QueryPacketCommitmentResponse commitment. - * @member {Uint8Array} commitment - * @memberof ibc.core.channel.v1.QueryPacketCommitmentResponse - * @instance - */ - QueryPacketCommitmentResponse.prototype.commitment = $util.newBuffer([]); - - /** - * QueryPacketCommitmentResponse proof. - * @member {Uint8Array} proof - * @memberof ibc.core.channel.v1.QueryPacketCommitmentResponse - * @instance - */ - QueryPacketCommitmentResponse.prototype.proof = $util.newBuffer([]); - - /** - * QueryPacketCommitmentResponse proof_height. - * @member {ibc.core.client.v1.IHeight|null|undefined} proof_height - * @memberof ibc.core.channel.v1.QueryPacketCommitmentResponse + * MsgTimeoutOnCloseResponse result. + * @member {ibc.core.channel.v1.ResponseResultType} result + * @memberof ibc.core.channel.v1.MsgTimeoutOnCloseResponse * @instance */ - QueryPacketCommitmentResponse.prototype.proof_height = null; + MsgTimeoutOnCloseResponse.prototype.result = 0; /** - * Encodes the specified QueryPacketCommitmentResponse message. Does not implicitly {@link ibc.core.channel.v1.QueryPacketCommitmentResponse.verify|verify} messages. + * Encodes the specified MsgTimeoutOnCloseResponse message. Does not implicitly {@link ibc.core.channel.v1.MsgTimeoutOnCloseResponse.verify|verify} messages. * @function encode - * @memberof ibc.core.channel.v1.QueryPacketCommitmentResponse + * @memberof ibc.core.channel.v1.MsgTimeoutOnCloseResponse * @static - * @param {ibc.core.channel.v1.IQueryPacketCommitmentResponse} message QueryPacketCommitmentResponse message or plain object to encode + * @param {ibc.core.channel.v1.IMsgTimeoutOnCloseResponse} message MsgTimeoutOnCloseResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryPacketCommitmentResponse.encode = function encode(message, writer) { + MsgTimeoutOnCloseResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.commitment != null && Object.hasOwnProperty.call(message, "commitment")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.commitment); - if (message.proof != null && Object.hasOwnProperty.call(message, "proof")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.proof); - if (message.proof_height != null && Object.hasOwnProperty.call(message, "proof_height")) - $root.ibc.core.client.v1.Height.encode(message.proof_height, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.result != null && Object.hasOwnProperty.call(message, "result")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.result); return writer; }; /** - * Encodes the specified QueryPacketCommitmentResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryPacketCommitmentResponse.verify|verify} messages. + * Encodes the specified MsgTimeoutOnCloseResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.MsgTimeoutOnCloseResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.channel.v1.QueryPacketCommitmentResponse + * @memberof ibc.core.channel.v1.MsgTimeoutOnCloseResponse * @static - * @param {ibc.core.channel.v1.IQueryPacketCommitmentResponse} message QueryPacketCommitmentResponse message or plain object to encode + * @param {ibc.core.channel.v1.IMsgTimeoutOnCloseResponse} message MsgTimeoutOnCloseResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryPacketCommitmentResponse.encodeDelimited = function encodeDelimited(message, writer) { + MsgTimeoutOnCloseResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryPacketCommitmentResponse message from the specified reader or buffer. + * Decodes a MsgTimeoutOnCloseResponse message from the specified reader or buffer. * @function decode - * @memberof ibc.core.channel.v1.QueryPacketCommitmentResponse + * @memberof ibc.core.channel.v1.MsgTimeoutOnCloseResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.channel.v1.QueryPacketCommitmentResponse} QueryPacketCommitmentResponse + * @returns {ibc.core.channel.v1.MsgTimeoutOnCloseResponse} MsgTimeoutOnCloseResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryPacketCommitmentResponse.decode = function decode(reader, length) { + MsgTimeoutOnCloseResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.QueryPacketCommitmentResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.MsgTimeoutOnCloseResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.commitment = reader.bytes(); - break; - case 2: - message.proof = reader.bytes(); - break; - case 3: - message.proof_height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); + message.result = reader.int32(); break; default: reader.skipType(tag & 7); @@ -44248,149 +51050,129 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a QueryPacketCommitmentResponse message from the specified reader or buffer, length delimited. + * Decodes a MsgTimeoutOnCloseResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.channel.v1.QueryPacketCommitmentResponse + * @memberof ibc.core.channel.v1.MsgTimeoutOnCloseResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.channel.v1.QueryPacketCommitmentResponse} QueryPacketCommitmentResponse + * @returns {ibc.core.channel.v1.MsgTimeoutOnCloseResponse} MsgTimeoutOnCloseResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryPacketCommitmentResponse.decodeDelimited = function decodeDelimited(reader) { + MsgTimeoutOnCloseResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryPacketCommitmentResponse message. + * Verifies a MsgTimeoutOnCloseResponse message. * @function verify - * @memberof ibc.core.channel.v1.QueryPacketCommitmentResponse + * @memberof ibc.core.channel.v1.MsgTimeoutOnCloseResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryPacketCommitmentResponse.verify = function verify(message) { + MsgTimeoutOnCloseResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.commitment != null && message.hasOwnProperty("commitment")) - if (!(message.commitment && typeof message.commitment.length === "number" || $util.isString(message.commitment))) - return "commitment: buffer expected"; - if (message.proof != null && message.hasOwnProperty("proof")) - if (!(message.proof && typeof message.proof.length === "number" || $util.isString(message.proof))) - return "proof: buffer expected"; - if (message.proof_height != null && message.hasOwnProperty("proof_height")) { - let error = $root.ibc.core.client.v1.Height.verify(message.proof_height); - if (error) - return "proof_height." + error; - } + if (message.result != null && message.hasOwnProperty("result")) + switch (message.result) { + default: + return "result: enum value expected"; + case 0: + case 1: + case 2: + break; + } return null; }; /** - * Creates a QueryPacketCommitmentResponse message from a plain object. Also converts values to their respective internal types. + * Creates a MsgTimeoutOnCloseResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.channel.v1.QueryPacketCommitmentResponse + * @memberof ibc.core.channel.v1.MsgTimeoutOnCloseResponse * @static * @param {Object.} object Plain object - * @returns {ibc.core.channel.v1.QueryPacketCommitmentResponse} QueryPacketCommitmentResponse + * @returns {ibc.core.channel.v1.MsgTimeoutOnCloseResponse} MsgTimeoutOnCloseResponse */ - QueryPacketCommitmentResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.channel.v1.QueryPacketCommitmentResponse) + MsgTimeoutOnCloseResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.channel.v1.MsgTimeoutOnCloseResponse) return object; - let message = new $root.ibc.core.channel.v1.QueryPacketCommitmentResponse(); - if (object.commitment != null) - if (typeof object.commitment === "string") - $util.base64.decode(object.commitment, message.commitment = $util.newBuffer($util.base64.length(object.commitment)), 0); - else if (object.commitment.length) - message.commitment = object.commitment; - if (object.proof != null) - if (typeof object.proof === "string") - $util.base64.decode(object.proof, message.proof = $util.newBuffer($util.base64.length(object.proof)), 0); - else if (object.proof.length) - message.proof = object.proof; - if (object.proof_height != null) { - if (typeof object.proof_height !== "object") - throw TypeError(".ibc.core.channel.v1.QueryPacketCommitmentResponse.proof_height: object expected"); - message.proof_height = $root.ibc.core.client.v1.Height.fromObject(object.proof_height); + let message = new $root.ibc.core.channel.v1.MsgTimeoutOnCloseResponse(); + switch (object.result) { + case "RESPONSE_RESULT_TYPE_UNSPECIFIED": + case 0: + message.result = 0; + break; + case "RESPONSE_RESULT_TYPE_NOOP": + case 1: + message.result = 1; + break; + case "RESPONSE_RESULT_TYPE_SUCCESS": + case 2: + message.result = 2; + break; } return message; }; /** - * Creates a plain object from a QueryPacketCommitmentResponse message. Also converts values to other types if specified. + * Creates a plain object from a MsgTimeoutOnCloseResponse message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.channel.v1.QueryPacketCommitmentResponse + * @memberof ibc.core.channel.v1.MsgTimeoutOnCloseResponse * @static - * @param {ibc.core.channel.v1.QueryPacketCommitmentResponse} message QueryPacketCommitmentResponse + * @param {ibc.core.channel.v1.MsgTimeoutOnCloseResponse} message MsgTimeoutOnCloseResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryPacketCommitmentResponse.toObject = function toObject(message, options) { + MsgTimeoutOnCloseResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) { - if (options.bytes === String) - object.commitment = ""; - else { - object.commitment = []; - if (options.bytes !== Array) - object.commitment = $util.newBuffer(object.commitment); - } - if (options.bytes === String) - object.proof = ""; - else { - object.proof = []; - if (options.bytes !== Array) - object.proof = $util.newBuffer(object.proof); - } - object.proof_height = null; - } - if (message.commitment != null && message.hasOwnProperty("commitment")) - object.commitment = options.bytes === String ? $util.base64.encode(message.commitment, 0, message.commitment.length) : options.bytes === Array ? Array.prototype.slice.call(message.commitment) : message.commitment; - if (message.proof != null && message.hasOwnProperty("proof")) - object.proof = options.bytes === String ? $util.base64.encode(message.proof, 0, message.proof.length) : options.bytes === Array ? Array.prototype.slice.call(message.proof) : message.proof; - if (message.proof_height != null && message.hasOwnProperty("proof_height")) - object.proof_height = $root.ibc.core.client.v1.Height.toObject(message.proof_height, options); + if (options.defaults) + object.result = options.enums === String ? "RESPONSE_RESULT_TYPE_UNSPECIFIED" : 0; + if (message.result != null && message.hasOwnProperty("result")) + object.result = options.enums === String ? $root.ibc.core.channel.v1.ResponseResultType[message.result] : message.result; return object; }; /** - * Converts this QueryPacketCommitmentResponse to JSON. + * Converts this MsgTimeoutOnCloseResponse to JSON. * @function toJSON - * @memberof ibc.core.channel.v1.QueryPacketCommitmentResponse + * @memberof ibc.core.channel.v1.MsgTimeoutOnCloseResponse * @instance * @returns {Object.} JSON object */ - QueryPacketCommitmentResponse.prototype.toJSON = function toJSON() { + MsgTimeoutOnCloseResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryPacketCommitmentResponse; + return MsgTimeoutOnCloseResponse; })(); - v1.QueryPacketCommitmentsRequest = (function() { + v1.MsgAcknowledgement = (function() { /** - * Properties of a QueryPacketCommitmentsRequest. + * Properties of a MsgAcknowledgement. * @memberof ibc.core.channel.v1 - * @interface IQueryPacketCommitmentsRequest - * @property {string|null} [port_id] QueryPacketCommitmentsRequest port_id - * @property {string|null} [channel_id] QueryPacketCommitmentsRequest channel_id - * @property {cosmos.base.query.v1beta1.IPageRequest|null} [pagination] QueryPacketCommitmentsRequest pagination + * @interface IMsgAcknowledgement + * @property {ibc.core.channel.v1.IPacket|null} [packet] MsgAcknowledgement packet + * @property {Uint8Array|null} [acknowledgement] MsgAcknowledgement acknowledgement + * @property {Uint8Array|null} [proof_acked] MsgAcknowledgement proof_acked + * @property {ibc.core.client.v1.IHeight|null} [proof_height] MsgAcknowledgement proof_height + * @property {string|null} [signer] MsgAcknowledgement signer */ /** - * Constructs a new QueryPacketCommitmentsRequest. + * Constructs a new MsgAcknowledgement. * @memberof ibc.core.channel.v1 - * @classdesc Represents a QueryPacketCommitmentsRequest. - * @implements IQueryPacketCommitmentsRequest + * @classdesc Represents a MsgAcknowledgement. + * @implements IMsgAcknowledgement * @constructor - * @param {ibc.core.channel.v1.IQueryPacketCommitmentsRequest=} [properties] Properties to set + * @param {ibc.core.channel.v1.IMsgAcknowledgement=} [properties] Properties to set */ - function QueryPacketCommitmentsRequest(properties) { + function MsgAcknowledgement(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -44398,89 +51180,115 @@ export const ibc = $root.ibc = (() => { } /** - * QueryPacketCommitmentsRequest port_id. - * @member {string} port_id - * @memberof ibc.core.channel.v1.QueryPacketCommitmentsRequest + * MsgAcknowledgement packet. + * @member {ibc.core.channel.v1.IPacket|null|undefined} packet + * @memberof ibc.core.channel.v1.MsgAcknowledgement * @instance */ - QueryPacketCommitmentsRequest.prototype.port_id = ""; + MsgAcknowledgement.prototype.packet = null; /** - * QueryPacketCommitmentsRequest channel_id. - * @member {string} channel_id - * @memberof ibc.core.channel.v1.QueryPacketCommitmentsRequest + * MsgAcknowledgement acknowledgement. + * @member {Uint8Array} acknowledgement + * @memberof ibc.core.channel.v1.MsgAcknowledgement * @instance */ - QueryPacketCommitmentsRequest.prototype.channel_id = ""; + MsgAcknowledgement.prototype.acknowledgement = $util.newBuffer([]); /** - * QueryPacketCommitmentsRequest pagination. - * @member {cosmos.base.query.v1beta1.IPageRequest|null|undefined} pagination - * @memberof ibc.core.channel.v1.QueryPacketCommitmentsRequest + * MsgAcknowledgement proof_acked. + * @member {Uint8Array} proof_acked + * @memberof ibc.core.channel.v1.MsgAcknowledgement * @instance */ - QueryPacketCommitmentsRequest.prototype.pagination = null; + MsgAcknowledgement.prototype.proof_acked = $util.newBuffer([]); /** - * Encodes the specified QueryPacketCommitmentsRequest message. Does not implicitly {@link ibc.core.channel.v1.QueryPacketCommitmentsRequest.verify|verify} messages. + * MsgAcknowledgement proof_height. + * @member {ibc.core.client.v1.IHeight|null|undefined} proof_height + * @memberof ibc.core.channel.v1.MsgAcknowledgement + * @instance + */ + MsgAcknowledgement.prototype.proof_height = null; + + /** + * MsgAcknowledgement signer. + * @member {string} signer + * @memberof ibc.core.channel.v1.MsgAcknowledgement + * @instance + */ + MsgAcknowledgement.prototype.signer = ""; + + /** + * Encodes the specified MsgAcknowledgement message. Does not implicitly {@link ibc.core.channel.v1.MsgAcknowledgement.verify|verify} messages. * @function encode - * @memberof ibc.core.channel.v1.QueryPacketCommitmentsRequest + * @memberof ibc.core.channel.v1.MsgAcknowledgement * @static - * @param {ibc.core.channel.v1.IQueryPacketCommitmentsRequest} message QueryPacketCommitmentsRequest message or plain object to encode + * @param {ibc.core.channel.v1.IMsgAcknowledgement} message MsgAcknowledgement message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryPacketCommitmentsRequest.encode = function encode(message, writer) { + MsgAcknowledgement.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.port_id != null && Object.hasOwnProperty.call(message, "port_id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.port_id); - if (message.channel_id != null && Object.hasOwnProperty.call(message, "channel_id")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.channel_id); - if (message.pagination != null && Object.hasOwnProperty.call(message, "pagination")) - $root.cosmos.base.query.v1beta1.PageRequest.encode(message.pagination, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.packet != null && Object.hasOwnProperty.call(message, "packet")) + $root.ibc.core.channel.v1.Packet.encode(message.packet, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.acknowledgement != null && Object.hasOwnProperty.call(message, "acknowledgement")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.acknowledgement); + if (message.proof_acked != null && Object.hasOwnProperty.call(message, "proof_acked")) + writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.proof_acked); + if (message.proof_height != null && Object.hasOwnProperty.call(message, "proof_height")) + $root.ibc.core.client.v1.Height.encode(message.proof_height, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.signer != null && Object.hasOwnProperty.call(message, "signer")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.signer); return writer; }; /** - * Encodes the specified QueryPacketCommitmentsRequest message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryPacketCommitmentsRequest.verify|verify} messages. + * Encodes the specified MsgAcknowledgement message, length delimited. Does not implicitly {@link ibc.core.channel.v1.MsgAcknowledgement.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.channel.v1.QueryPacketCommitmentsRequest + * @memberof ibc.core.channel.v1.MsgAcknowledgement * @static - * @param {ibc.core.channel.v1.IQueryPacketCommitmentsRequest} message QueryPacketCommitmentsRequest message or plain object to encode + * @param {ibc.core.channel.v1.IMsgAcknowledgement} message MsgAcknowledgement message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryPacketCommitmentsRequest.encodeDelimited = function encodeDelimited(message, writer) { + MsgAcknowledgement.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryPacketCommitmentsRequest message from the specified reader or buffer. + * Decodes a MsgAcknowledgement message from the specified reader or buffer. * @function decode - * @memberof ibc.core.channel.v1.QueryPacketCommitmentsRequest + * @memberof ibc.core.channel.v1.MsgAcknowledgement * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.channel.v1.QueryPacketCommitmentsRequest} QueryPacketCommitmentsRequest + * @returns {ibc.core.channel.v1.MsgAcknowledgement} MsgAcknowledgement * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryPacketCommitmentsRequest.decode = function decode(reader, length) { + MsgAcknowledgement.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.QueryPacketCommitmentsRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.MsgAcknowledgement(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.port_id = reader.string(); + message.packet = $root.ibc.core.channel.v1.Packet.decode(reader, reader.uint32()); break; case 2: - message.channel_id = reader.string(); + message.acknowledgement = reader.bytes(); break; case 3: - message.pagination = $root.cosmos.base.query.v1beta1.PageRequest.decode(reader, reader.uint32()); + message.proof_acked = reader.bytes(); + break; + case 4: + message.proof_height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); + break; + case 5: + message.signer = reader.string(); break; default: reader.skipType(tag & 7); @@ -44491,132 +51299,168 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a QueryPacketCommitmentsRequest message from the specified reader or buffer, length delimited. + * Decodes a MsgAcknowledgement message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.channel.v1.QueryPacketCommitmentsRequest + * @memberof ibc.core.channel.v1.MsgAcknowledgement * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.channel.v1.QueryPacketCommitmentsRequest} QueryPacketCommitmentsRequest + * @returns {ibc.core.channel.v1.MsgAcknowledgement} MsgAcknowledgement * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryPacketCommitmentsRequest.decodeDelimited = function decodeDelimited(reader) { + MsgAcknowledgement.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryPacketCommitmentsRequest message. + * Verifies a MsgAcknowledgement message. * @function verify - * @memberof ibc.core.channel.v1.QueryPacketCommitmentsRequest + * @memberof ibc.core.channel.v1.MsgAcknowledgement * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryPacketCommitmentsRequest.verify = function verify(message) { + MsgAcknowledgement.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.port_id != null && message.hasOwnProperty("port_id")) - if (!$util.isString(message.port_id)) - return "port_id: string expected"; - if (message.channel_id != null && message.hasOwnProperty("channel_id")) - if (!$util.isString(message.channel_id)) - return "channel_id: string expected"; - if (message.pagination != null && message.hasOwnProperty("pagination")) { - let error = $root.cosmos.base.query.v1beta1.PageRequest.verify(message.pagination); + if (message.packet != null && message.hasOwnProperty("packet")) { + let error = $root.ibc.core.channel.v1.Packet.verify(message.packet); if (error) - return "pagination." + error; + return "packet." + error; + } + if (message.acknowledgement != null && message.hasOwnProperty("acknowledgement")) + if (!(message.acknowledgement && typeof message.acknowledgement.length === "number" || $util.isString(message.acknowledgement))) + return "acknowledgement: buffer expected"; + if (message.proof_acked != null && message.hasOwnProperty("proof_acked")) + if (!(message.proof_acked && typeof message.proof_acked.length === "number" || $util.isString(message.proof_acked))) + return "proof_acked: buffer expected"; + if (message.proof_height != null && message.hasOwnProperty("proof_height")) { + let error = $root.ibc.core.client.v1.Height.verify(message.proof_height); + if (error) + return "proof_height." + error; } + if (message.signer != null && message.hasOwnProperty("signer")) + if (!$util.isString(message.signer)) + return "signer: string expected"; return null; }; /** - * Creates a QueryPacketCommitmentsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MsgAcknowledgement message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.channel.v1.QueryPacketCommitmentsRequest + * @memberof ibc.core.channel.v1.MsgAcknowledgement * @static * @param {Object.} object Plain object - * @returns {ibc.core.channel.v1.QueryPacketCommitmentsRequest} QueryPacketCommitmentsRequest + * @returns {ibc.core.channel.v1.MsgAcknowledgement} MsgAcknowledgement */ - QueryPacketCommitmentsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.channel.v1.QueryPacketCommitmentsRequest) + MsgAcknowledgement.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.channel.v1.MsgAcknowledgement) return object; - let message = new $root.ibc.core.channel.v1.QueryPacketCommitmentsRequest(); - if (object.port_id != null) - message.port_id = String(object.port_id); - if (object.channel_id != null) - message.channel_id = String(object.channel_id); - if (object.pagination != null) { - if (typeof object.pagination !== "object") - throw TypeError(".ibc.core.channel.v1.QueryPacketCommitmentsRequest.pagination: object expected"); - message.pagination = $root.cosmos.base.query.v1beta1.PageRequest.fromObject(object.pagination); + let message = new $root.ibc.core.channel.v1.MsgAcknowledgement(); + if (object.packet != null) { + if (typeof object.packet !== "object") + throw TypeError(".ibc.core.channel.v1.MsgAcknowledgement.packet: object expected"); + message.packet = $root.ibc.core.channel.v1.Packet.fromObject(object.packet); } + if (object.acknowledgement != null) + if (typeof object.acknowledgement === "string") + $util.base64.decode(object.acknowledgement, message.acknowledgement = $util.newBuffer($util.base64.length(object.acknowledgement)), 0); + else if (object.acknowledgement.length) + message.acknowledgement = object.acknowledgement; + if (object.proof_acked != null) + if (typeof object.proof_acked === "string") + $util.base64.decode(object.proof_acked, message.proof_acked = $util.newBuffer($util.base64.length(object.proof_acked)), 0); + else if (object.proof_acked.length) + message.proof_acked = object.proof_acked; + if (object.proof_height != null) { + if (typeof object.proof_height !== "object") + throw TypeError(".ibc.core.channel.v1.MsgAcknowledgement.proof_height: object expected"); + message.proof_height = $root.ibc.core.client.v1.Height.fromObject(object.proof_height); + } + if (object.signer != null) + message.signer = String(object.signer); return message; }; /** - * Creates a plain object from a QueryPacketCommitmentsRequest message. Also converts values to other types if specified. + * Creates a plain object from a MsgAcknowledgement message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.channel.v1.QueryPacketCommitmentsRequest + * @memberof ibc.core.channel.v1.MsgAcknowledgement * @static - * @param {ibc.core.channel.v1.QueryPacketCommitmentsRequest} message QueryPacketCommitmentsRequest + * @param {ibc.core.channel.v1.MsgAcknowledgement} message MsgAcknowledgement * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryPacketCommitmentsRequest.toObject = function toObject(message, options) { + MsgAcknowledgement.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - object.port_id = ""; - object.channel_id = ""; - object.pagination = null; + object.packet = null; + if (options.bytes === String) + object.acknowledgement = ""; + else { + object.acknowledgement = []; + if (options.bytes !== Array) + object.acknowledgement = $util.newBuffer(object.acknowledgement); + } + if (options.bytes === String) + object.proof_acked = ""; + else { + object.proof_acked = []; + if (options.bytes !== Array) + object.proof_acked = $util.newBuffer(object.proof_acked); + } + object.proof_height = null; + object.signer = ""; } - if (message.port_id != null && message.hasOwnProperty("port_id")) - object.port_id = message.port_id; - if (message.channel_id != null && message.hasOwnProperty("channel_id")) - object.channel_id = message.channel_id; - if (message.pagination != null && message.hasOwnProperty("pagination")) - object.pagination = $root.cosmos.base.query.v1beta1.PageRequest.toObject(message.pagination, options); + if (message.packet != null && message.hasOwnProperty("packet")) + object.packet = $root.ibc.core.channel.v1.Packet.toObject(message.packet, options); + if (message.acknowledgement != null && message.hasOwnProperty("acknowledgement")) + object.acknowledgement = options.bytes === String ? $util.base64.encode(message.acknowledgement, 0, message.acknowledgement.length) : options.bytes === Array ? Array.prototype.slice.call(message.acknowledgement) : message.acknowledgement; + if (message.proof_acked != null && message.hasOwnProperty("proof_acked")) + object.proof_acked = options.bytes === String ? $util.base64.encode(message.proof_acked, 0, message.proof_acked.length) : options.bytes === Array ? Array.prototype.slice.call(message.proof_acked) : message.proof_acked; + if (message.proof_height != null && message.hasOwnProperty("proof_height")) + object.proof_height = $root.ibc.core.client.v1.Height.toObject(message.proof_height, options); + if (message.signer != null && message.hasOwnProperty("signer")) + object.signer = message.signer; return object; }; /** - * Converts this QueryPacketCommitmentsRequest to JSON. + * Converts this MsgAcknowledgement to JSON. * @function toJSON - * @memberof ibc.core.channel.v1.QueryPacketCommitmentsRequest + * @memberof ibc.core.channel.v1.MsgAcknowledgement * @instance * @returns {Object.} JSON object */ - QueryPacketCommitmentsRequest.prototype.toJSON = function toJSON() { + MsgAcknowledgement.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryPacketCommitmentsRequest; + return MsgAcknowledgement; })(); - v1.QueryPacketCommitmentsResponse = (function() { + v1.MsgAcknowledgementResponse = (function() { /** - * Properties of a QueryPacketCommitmentsResponse. + * Properties of a MsgAcknowledgementResponse. * @memberof ibc.core.channel.v1 - * @interface IQueryPacketCommitmentsResponse - * @property {Array.|null} [commitments] QueryPacketCommitmentsResponse commitments - * @property {cosmos.base.query.v1beta1.IPageResponse|null} [pagination] QueryPacketCommitmentsResponse pagination - * @property {ibc.core.client.v1.IHeight|null} [height] QueryPacketCommitmentsResponse height + * @interface IMsgAcknowledgementResponse + * @property {ibc.core.channel.v1.ResponseResultType|null} [result] MsgAcknowledgementResponse result */ /** - * Constructs a new QueryPacketCommitmentsResponse. + * Constructs a new MsgAcknowledgementResponse. * @memberof ibc.core.channel.v1 - * @classdesc Represents a QueryPacketCommitmentsResponse. - * @implements IQueryPacketCommitmentsResponse + * @classdesc Represents a MsgAcknowledgementResponse. + * @implements IMsgAcknowledgementResponse * @constructor - * @param {ibc.core.channel.v1.IQueryPacketCommitmentsResponse=} [properties] Properties to set + * @param {ibc.core.channel.v1.IMsgAcknowledgementResponse=} [properties] Properties to set */ - function QueryPacketCommitmentsResponse(properties) { - this.commitments = []; + function MsgAcknowledgementResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -44624,92 +51468,63 @@ export const ibc = $root.ibc = (() => { } /** - * QueryPacketCommitmentsResponse commitments. - * @member {Array.} commitments - * @memberof ibc.core.channel.v1.QueryPacketCommitmentsResponse - * @instance - */ - QueryPacketCommitmentsResponse.prototype.commitments = $util.emptyArray; - - /** - * QueryPacketCommitmentsResponse pagination. - * @member {cosmos.base.query.v1beta1.IPageResponse|null|undefined} pagination - * @memberof ibc.core.channel.v1.QueryPacketCommitmentsResponse - * @instance - */ - QueryPacketCommitmentsResponse.prototype.pagination = null; - - /** - * QueryPacketCommitmentsResponse height. - * @member {ibc.core.client.v1.IHeight|null|undefined} height - * @memberof ibc.core.channel.v1.QueryPacketCommitmentsResponse + * MsgAcknowledgementResponse result. + * @member {ibc.core.channel.v1.ResponseResultType} result + * @memberof ibc.core.channel.v1.MsgAcknowledgementResponse * @instance */ - QueryPacketCommitmentsResponse.prototype.height = null; + MsgAcknowledgementResponse.prototype.result = 0; /** - * Encodes the specified QueryPacketCommitmentsResponse message. Does not implicitly {@link ibc.core.channel.v1.QueryPacketCommitmentsResponse.verify|verify} messages. + * Encodes the specified MsgAcknowledgementResponse message. Does not implicitly {@link ibc.core.channel.v1.MsgAcknowledgementResponse.verify|verify} messages. * @function encode - * @memberof ibc.core.channel.v1.QueryPacketCommitmentsResponse + * @memberof ibc.core.channel.v1.MsgAcknowledgementResponse * @static - * @param {ibc.core.channel.v1.IQueryPacketCommitmentsResponse} message QueryPacketCommitmentsResponse message or plain object to encode + * @param {ibc.core.channel.v1.IMsgAcknowledgementResponse} message MsgAcknowledgementResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryPacketCommitmentsResponse.encode = function encode(message, writer) { + MsgAcknowledgementResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.commitments != null && message.commitments.length) - for (let i = 0; i < message.commitments.length; ++i) - $root.ibc.core.channel.v1.PacketState.encode(message.commitments[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.pagination != null && Object.hasOwnProperty.call(message, "pagination")) - $root.cosmos.base.query.v1beta1.PageResponse.encode(message.pagination, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.height != null && Object.hasOwnProperty.call(message, "height")) - $root.ibc.core.client.v1.Height.encode(message.height, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.result != null && Object.hasOwnProperty.call(message, "result")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.result); return writer; }; /** - * Encodes the specified QueryPacketCommitmentsResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryPacketCommitmentsResponse.verify|verify} messages. + * Encodes the specified MsgAcknowledgementResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.MsgAcknowledgementResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.channel.v1.QueryPacketCommitmentsResponse + * @memberof ibc.core.channel.v1.MsgAcknowledgementResponse * @static - * @param {ibc.core.channel.v1.IQueryPacketCommitmentsResponse} message QueryPacketCommitmentsResponse message or plain object to encode + * @param {ibc.core.channel.v1.IMsgAcknowledgementResponse} message MsgAcknowledgementResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryPacketCommitmentsResponse.encodeDelimited = function encodeDelimited(message, writer) { + MsgAcknowledgementResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryPacketCommitmentsResponse message from the specified reader or buffer. + * Decodes a MsgAcknowledgementResponse message from the specified reader or buffer. * @function decode - * @memberof ibc.core.channel.v1.QueryPacketCommitmentsResponse + * @memberof ibc.core.channel.v1.MsgAcknowledgementResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.channel.v1.QueryPacketCommitmentsResponse} QueryPacketCommitmentsResponse + * @returns {ibc.core.channel.v1.MsgAcknowledgementResponse} MsgAcknowledgementResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryPacketCommitmentsResponse.decode = function decode(reader, length) { + MsgAcknowledgementResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.QueryPacketCommitmentsResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.MsgAcknowledgementResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.commitments && message.commitments.length)) - message.commitments = []; - message.commitments.push($root.ibc.core.channel.v1.PacketState.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = $root.cosmos.base.query.v1beta1.PageResponse.decode(reader, reader.uint32()); - break; - case 3: - message.height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); + message.result = reader.int32(); break; default: reader.skipType(tag & 7); @@ -44720,622 +51535,576 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a QueryPacketCommitmentsResponse message from the specified reader or buffer, length delimited. + * Decodes a MsgAcknowledgementResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.channel.v1.QueryPacketCommitmentsResponse + * @memberof ibc.core.channel.v1.MsgAcknowledgementResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.channel.v1.QueryPacketCommitmentsResponse} QueryPacketCommitmentsResponse + * @returns {ibc.core.channel.v1.MsgAcknowledgementResponse} MsgAcknowledgementResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryPacketCommitmentsResponse.decodeDelimited = function decodeDelimited(reader) { + MsgAcknowledgementResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryPacketCommitmentsResponse message. + * Verifies a MsgAcknowledgementResponse message. * @function verify - * @memberof ibc.core.channel.v1.QueryPacketCommitmentsResponse + * @memberof ibc.core.channel.v1.MsgAcknowledgementResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryPacketCommitmentsResponse.verify = function verify(message) { + MsgAcknowledgementResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.commitments != null && message.hasOwnProperty("commitments")) { - if (!Array.isArray(message.commitments)) - return "commitments: array expected"; - for (let i = 0; i < message.commitments.length; ++i) { - let error = $root.ibc.core.channel.v1.PacketState.verify(message.commitments[i]); - if (error) - return "commitments." + error; + if (message.result != null && message.hasOwnProperty("result")) + switch (message.result) { + default: + return "result: enum value expected"; + case 0: + case 1: + case 2: + break; } - } - if (message.pagination != null && message.hasOwnProperty("pagination")) { - let error = $root.cosmos.base.query.v1beta1.PageResponse.verify(message.pagination); - if (error) - return "pagination." + error; - } - if (message.height != null && message.hasOwnProperty("height")) { - let error = $root.ibc.core.client.v1.Height.verify(message.height); - if (error) - return "height." + error; - } return null; }; /** - * Creates a QueryPacketCommitmentsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a MsgAcknowledgementResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.channel.v1.QueryPacketCommitmentsResponse + * @memberof ibc.core.channel.v1.MsgAcknowledgementResponse * @static * @param {Object.} object Plain object - * @returns {ibc.core.channel.v1.QueryPacketCommitmentsResponse} QueryPacketCommitmentsResponse + * @returns {ibc.core.channel.v1.MsgAcknowledgementResponse} MsgAcknowledgementResponse */ - QueryPacketCommitmentsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.channel.v1.QueryPacketCommitmentsResponse) + MsgAcknowledgementResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.channel.v1.MsgAcknowledgementResponse) return object; - let message = new $root.ibc.core.channel.v1.QueryPacketCommitmentsResponse(); - if (object.commitments) { - if (!Array.isArray(object.commitments)) - throw TypeError(".ibc.core.channel.v1.QueryPacketCommitmentsResponse.commitments: array expected"); - message.commitments = []; - for (let i = 0; i < object.commitments.length; ++i) { - if (typeof object.commitments[i] !== "object") - throw TypeError(".ibc.core.channel.v1.QueryPacketCommitmentsResponse.commitments: object expected"); - message.commitments[i] = $root.ibc.core.channel.v1.PacketState.fromObject(object.commitments[i]); - } - } - if (object.pagination != null) { - if (typeof object.pagination !== "object") - throw TypeError(".ibc.core.channel.v1.QueryPacketCommitmentsResponse.pagination: object expected"); - message.pagination = $root.cosmos.base.query.v1beta1.PageResponse.fromObject(object.pagination); - } - if (object.height != null) { - if (typeof object.height !== "object") - throw TypeError(".ibc.core.channel.v1.QueryPacketCommitmentsResponse.height: object expected"); - message.height = $root.ibc.core.client.v1.Height.fromObject(object.height); + let message = new $root.ibc.core.channel.v1.MsgAcknowledgementResponse(); + switch (object.result) { + case "RESPONSE_RESULT_TYPE_UNSPECIFIED": + case 0: + message.result = 0; + break; + case "RESPONSE_RESULT_TYPE_NOOP": + case 1: + message.result = 1; + break; + case "RESPONSE_RESULT_TYPE_SUCCESS": + case 2: + message.result = 2; + break; } return message; }; /** - * Creates a plain object from a QueryPacketCommitmentsResponse message. Also converts values to other types if specified. + * Creates a plain object from a MsgAcknowledgementResponse message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.channel.v1.QueryPacketCommitmentsResponse + * @memberof ibc.core.channel.v1.MsgAcknowledgementResponse * @static - * @param {ibc.core.channel.v1.QueryPacketCommitmentsResponse} message QueryPacketCommitmentsResponse + * @param {ibc.core.channel.v1.MsgAcknowledgementResponse} message MsgAcknowledgementResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryPacketCommitmentsResponse.toObject = function toObject(message, options) { + MsgAcknowledgementResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.commitments = []; - if (options.defaults) { - object.pagination = null; - object.height = null; - } - if (message.commitments && message.commitments.length) { - object.commitments = []; - for (let j = 0; j < message.commitments.length; ++j) - object.commitments[j] = $root.ibc.core.channel.v1.PacketState.toObject(message.commitments[j], options); - } - if (message.pagination != null && message.hasOwnProperty("pagination")) - object.pagination = $root.cosmos.base.query.v1beta1.PageResponse.toObject(message.pagination, options); - if (message.height != null && message.hasOwnProperty("height")) - object.height = $root.ibc.core.client.v1.Height.toObject(message.height, options); + if (options.defaults) + object.result = options.enums === String ? "RESPONSE_RESULT_TYPE_UNSPECIFIED" : 0; + if (message.result != null && message.hasOwnProperty("result")) + object.result = options.enums === String ? $root.ibc.core.channel.v1.ResponseResultType[message.result] : message.result; return object; }; /** - * Converts this QueryPacketCommitmentsResponse to JSON. + * Converts this MsgAcknowledgementResponse to JSON. * @function toJSON - * @memberof ibc.core.channel.v1.QueryPacketCommitmentsResponse + * @memberof ibc.core.channel.v1.MsgAcknowledgementResponse * @instance * @returns {Object.} JSON object */ - QueryPacketCommitmentsResponse.prototype.toJSON = function toJSON() { + MsgAcknowledgementResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryPacketCommitmentsResponse; + return MsgAcknowledgementResponse; })(); - v1.QueryPacketReceiptRequest = (function() { + v1.Query = (function() { /** - * Properties of a QueryPacketReceiptRequest. + * Constructs a new Query service. * @memberof ibc.core.channel.v1 - * @interface IQueryPacketReceiptRequest - * @property {string|null} [port_id] QueryPacketReceiptRequest port_id - * @property {string|null} [channel_id] QueryPacketReceiptRequest channel_id - * @property {Long|null} [sequence] QueryPacketReceiptRequest sequence + * @classdesc Represents a Query + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited */ + function Query(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (Query.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Query; /** - * Constructs a new QueryPacketReceiptRequest. - * @memberof ibc.core.channel.v1 - * @classdesc Represents a QueryPacketReceiptRequest. - * @implements IQueryPacketReceiptRequest - * @constructor - * @param {ibc.core.channel.v1.IQueryPacketReceiptRequest=} [properties] Properties to set + * Callback as used by {@link ibc.core.channel.v1.Query#channel}. + * @memberof ibc.core.channel.v1.Query + * @typedef ChannelCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.core.channel.v1.QueryChannelResponse} [response] QueryChannelResponse */ - function QueryPacketReceiptRequest(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } /** - * QueryPacketReceiptRequest port_id. - * @member {string} port_id - * @memberof ibc.core.channel.v1.QueryPacketReceiptRequest + * Calls Channel. + * @function channel + * @memberof ibc.core.channel.v1.Query * @instance + * @param {ibc.core.channel.v1.IQueryChannelRequest} request QueryChannelRequest message or plain object + * @param {ibc.core.channel.v1.Query.ChannelCallback} callback Node-style callback called with the error, if any, and QueryChannelResponse + * @returns {undefined} + * @variation 1 */ - QueryPacketReceiptRequest.prototype.port_id = ""; + Object.defineProperty(Query.prototype.channel = function channel(request, callback) { + return this.rpcCall(channel, $root.ibc.core.channel.v1.QueryChannelRequest, $root.ibc.core.channel.v1.QueryChannelResponse, request, callback); + }, "name", { value: "Channel" }); /** - * QueryPacketReceiptRequest channel_id. - * @member {string} channel_id - * @memberof ibc.core.channel.v1.QueryPacketReceiptRequest + * Calls Channel. + * @function channel + * @memberof ibc.core.channel.v1.Query + * @instance + * @param {ibc.core.channel.v1.IQueryChannelRequest} request QueryChannelRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link ibc.core.channel.v1.Query#channels}. + * @memberof ibc.core.channel.v1.Query + * @typedef ChannelsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.core.channel.v1.QueryChannelsResponse} [response] QueryChannelsResponse + */ + + /** + * Calls Channels. + * @function channels + * @memberof ibc.core.channel.v1.Query * @instance + * @param {ibc.core.channel.v1.IQueryChannelsRequest} request QueryChannelsRequest message or plain object + * @param {ibc.core.channel.v1.Query.ChannelsCallback} callback Node-style callback called with the error, if any, and QueryChannelsResponse + * @returns {undefined} + * @variation 1 */ - QueryPacketReceiptRequest.prototype.channel_id = ""; + Object.defineProperty(Query.prototype.channels = function channels(request, callback) { + return this.rpcCall(channels, $root.ibc.core.channel.v1.QueryChannelsRequest, $root.ibc.core.channel.v1.QueryChannelsResponse, request, callback); + }, "name", { value: "Channels" }); /** - * QueryPacketReceiptRequest sequence. - * @member {Long} sequence - * @memberof ibc.core.channel.v1.QueryPacketReceiptRequest + * Calls Channels. + * @function channels + * @memberof ibc.core.channel.v1.Query + * @instance + * @param {ibc.core.channel.v1.IQueryChannelsRequest} request QueryChannelsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link ibc.core.channel.v1.Query#connectionChannels}. + * @memberof ibc.core.channel.v1.Query + * @typedef ConnectionChannelsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.core.channel.v1.QueryConnectionChannelsResponse} [response] QueryConnectionChannelsResponse + */ + + /** + * Calls ConnectionChannels. + * @function connectionChannels + * @memberof ibc.core.channel.v1.Query + * @instance + * @param {ibc.core.channel.v1.IQueryConnectionChannelsRequest} request QueryConnectionChannelsRequest message or plain object + * @param {ibc.core.channel.v1.Query.ConnectionChannelsCallback} callback Node-style callback called with the error, if any, and QueryConnectionChannelsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Query.prototype.connectionChannels = function connectionChannels(request, callback) { + return this.rpcCall(connectionChannels, $root.ibc.core.channel.v1.QueryConnectionChannelsRequest, $root.ibc.core.channel.v1.QueryConnectionChannelsResponse, request, callback); + }, "name", { value: "ConnectionChannels" }); + + /** + * Calls ConnectionChannels. + * @function connectionChannels + * @memberof ibc.core.channel.v1.Query + * @instance + * @param {ibc.core.channel.v1.IQueryConnectionChannelsRequest} request QueryConnectionChannelsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link ibc.core.channel.v1.Query#channelClientState}. + * @memberof ibc.core.channel.v1.Query + * @typedef ChannelClientStateCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.core.channel.v1.QueryChannelClientStateResponse} [response] QueryChannelClientStateResponse + */ + + /** + * Calls ChannelClientState. + * @function channelClientState + * @memberof ibc.core.channel.v1.Query + * @instance + * @param {ibc.core.channel.v1.IQueryChannelClientStateRequest} request QueryChannelClientStateRequest message or plain object + * @param {ibc.core.channel.v1.Query.ChannelClientStateCallback} callback Node-style callback called with the error, if any, and QueryChannelClientStateResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Query.prototype.channelClientState = function channelClientState(request, callback) { + return this.rpcCall(channelClientState, $root.ibc.core.channel.v1.QueryChannelClientStateRequest, $root.ibc.core.channel.v1.QueryChannelClientStateResponse, request, callback); + }, "name", { value: "ChannelClientState" }); + + /** + * Calls ChannelClientState. + * @function channelClientState + * @memberof ibc.core.channel.v1.Query + * @instance + * @param {ibc.core.channel.v1.IQueryChannelClientStateRequest} request QueryChannelClientStateRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link ibc.core.channel.v1.Query#channelConsensusState}. + * @memberof ibc.core.channel.v1.Query + * @typedef ChannelConsensusStateCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.core.channel.v1.QueryChannelConsensusStateResponse} [response] QueryChannelConsensusStateResponse + */ + + /** + * Calls ChannelConsensusState. + * @function channelConsensusState + * @memberof ibc.core.channel.v1.Query + * @instance + * @param {ibc.core.channel.v1.IQueryChannelConsensusStateRequest} request QueryChannelConsensusStateRequest message or plain object + * @param {ibc.core.channel.v1.Query.ChannelConsensusStateCallback} callback Node-style callback called with the error, if any, and QueryChannelConsensusStateResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Query.prototype.channelConsensusState = function channelConsensusState(request, callback) { + return this.rpcCall(channelConsensusState, $root.ibc.core.channel.v1.QueryChannelConsensusStateRequest, $root.ibc.core.channel.v1.QueryChannelConsensusStateResponse, request, callback); + }, "name", { value: "ChannelConsensusState" }); + + /** + * Calls ChannelConsensusState. + * @function channelConsensusState + * @memberof ibc.core.channel.v1.Query + * @instance + * @param {ibc.core.channel.v1.IQueryChannelConsensusStateRequest} request QueryChannelConsensusStateRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link ibc.core.channel.v1.Query#packetCommitment}. + * @memberof ibc.core.channel.v1.Query + * @typedef PacketCommitmentCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.core.channel.v1.QueryPacketCommitmentResponse} [response] QueryPacketCommitmentResponse + */ + + /** + * Calls PacketCommitment. + * @function packetCommitment + * @memberof ibc.core.channel.v1.Query + * @instance + * @param {ibc.core.channel.v1.IQueryPacketCommitmentRequest} request QueryPacketCommitmentRequest message or plain object + * @param {ibc.core.channel.v1.Query.PacketCommitmentCallback} callback Node-style callback called with the error, if any, and QueryPacketCommitmentResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Query.prototype.packetCommitment = function packetCommitment(request, callback) { + return this.rpcCall(packetCommitment, $root.ibc.core.channel.v1.QueryPacketCommitmentRequest, $root.ibc.core.channel.v1.QueryPacketCommitmentResponse, request, callback); + }, "name", { value: "PacketCommitment" }); + + /** + * Calls PacketCommitment. + * @function packetCommitment + * @memberof ibc.core.channel.v1.Query * @instance + * @param {ibc.core.channel.v1.IQueryPacketCommitmentRequest} request QueryPacketCommitmentRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - QueryPacketReceiptRequest.prototype.sequence = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** - * Encodes the specified QueryPacketReceiptRequest message. Does not implicitly {@link ibc.core.channel.v1.QueryPacketReceiptRequest.verify|verify} messages. - * @function encode - * @memberof ibc.core.channel.v1.QueryPacketReceiptRequest - * @static - * @param {ibc.core.channel.v1.IQueryPacketReceiptRequest} message QueryPacketReceiptRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Callback as used by {@link ibc.core.channel.v1.Query#packetCommitments}. + * @memberof ibc.core.channel.v1.Query + * @typedef PacketCommitmentsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.core.channel.v1.QueryPacketCommitmentsResponse} [response] QueryPacketCommitmentsResponse */ - QueryPacketReceiptRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.port_id != null && Object.hasOwnProperty.call(message, "port_id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.port_id); - if (message.channel_id != null && Object.hasOwnProperty.call(message, "channel_id")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.channel_id); - if (message.sequence != null && Object.hasOwnProperty.call(message, "sequence")) - writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.sequence); - return writer; - }; /** - * Encodes the specified QueryPacketReceiptRequest message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryPacketReceiptRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof ibc.core.channel.v1.QueryPacketReceiptRequest - * @static - * @param {ibc.core.channel.v1.IQueryPacketReceiptRequest} message QueryPacketReceiptRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls PacketCommitments. + * @function packetCommitments + * @memberof ibc.core.channel.v1.Query + * @instance + * @param {ibc.core.channel.v1.IQueryPacketCommitmentsRequest} request QueryPacketCommitmentsRequest message or plain object + * @param {ibc.core.channel.v1.Query.PacketCommitmentsCallback} callback Node-style callback called with the error, if any, and QueryPacketCommitmentsResponse + * @returns {undefined} + * @variation 1 */ - QueryPacketReceiptRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + Object.defineProperty(Query.prototype.packetCommitments = function packetCommitments(request, callback) { + return this.rpcCall(packetCommitments, $root.ibc.core.channel.v1.QueryPacketCommitmentsRequest, $root.ibc.core.channel.v1.QueryPacketCommitmentsResponse, request, callback); + }, "name", { value: "PacketCommitments" }); /** - * Decodes a QueryPacketReceiptRequest message from the specified reader or buffer. - * @function decode - * @memberof ibc.core.channel.v1.QueryPacketReceiptRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.channel.v1.QueryPacketReceiptRequest} QueryPacketReceiptRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls PacketCommitments. + * @function packetCommitments + * @memberof ibc.core.channel.v1.Query + * @instance + * @param {ibc.core.channel.v1.IQueryPacketCommitmentsRequest} request QueryPacketCommitmentsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - QueryPacketReceiptRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.QueryPacketReceiptRequest(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.port_id = reader.string(); - break; - case 2: - message.channel_id = reader.string(); - break; - case 3: - message.sequence = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; /** - * Decodes a QueryPacketReceiptRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ibc.core.channel.v1.QueryPacketReceiptRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.channel.v1.QueryPacketReceiptRequest} QueryPacketReceiptRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link ibc.core.channel.v1.Query#packetReceipt}. + * @memberof ibc.core.channel.v1.Query + * @typedef PacketReceiptCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.core.channel.v1.QueryPacketReceiptResponse} [response] QueryPacketReceiptResponse */ - QueryPacketReceiptRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; /** - * Verifies a QueryPacketReceiptRequest message. - * @function verify - * @memberof ibc.core.channel.v1.QueryPacketReceiptRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Calls PacketReceipt. + * @function packetReceipt + * @memberof ibc.core.channel.v1.Query + * @instance + * @param {ibc.core.channel.v1.IQueryPacketReceiptRequest} request QueryPacketReceiptRequest message or plain object + * @param {ibc.core.channel.v1.Query.PacketReceiptCallback} callback Node-style callback called with the error, if any, and QueryPacketReceiptResponse + * @returns {undefined} + * @variation 1 */ - QueryPacketReceiptRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.port_id != null && message.hasOwnProperty("port_id")) - if (!$util.isString(message.port_id)) - return "port_id: string expected"; - if (message.channel_id != null && message.hasOwnProperty("channel_id")) - if (!$util.isString(message.channel_id)) - return "channel_id: string expected"; - if (message.sequence != null && message.hasOwnProperty("sequence")) - if (!$util.isInteger(message.sequence) && !(message.sequence && $util.isInteger(message.sequence.low) && $util.isInteger(message.sequence.high))) - return "sequence: integer|Long expected"; - return null; - }; + Object.defineProperty(Query.prototype.packetReceipt = function packetReceipt(request, callback) { + return this.rpcCall(packetReceipt, $root.ibc.core.channel.v1.QueryPacketReceiptRequest, $root.ibc.core.channel.v1.QueryPacketReceiptResponse, request, callback); + }, "name", { value: "PacketReceipt" }); /** - * Creates a QueryPacketReceiptRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof ibc.core.channel.v1.QueryPacketReceiptRequest - * @static - * @param {Object.} object Plain object - * @returns {ibc.core.channel.v1.QueryPacketReceiptRequest} QueryPacketReceiptRequest + * Calls PacketReceipt. + * @function packetReceipt + * @memberof ibc.core.channel.v1.Query + * @instance + * @param {ibc.core.channel.v1.IQueryPacketReceiptRequest} request QueryPacketReceiptRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - QueryPacketReceiptRequest.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.channel.v1.QueryPacketReceiptRequest) - return object; - let message = new $root.ibc.core.channel.v1.QueryPacketReceiptRequest(); - if (object.port_id != null) - message.port_id = String(object.port_id); - if (object.channel_id != null) - message.channel_id = String(object.channel_id); - if (object.sequence != null) - if ($util.Long) - (message.sequence = $util.Long.fromValue(object.sequence)).unsigned = true; - else if (typeof object.sequence === "string") - message.sequence = parseInt(object.sequence, 10); - else if (typeof object.sequence === "number") - message.sequence = object.sequence; - else if (typeof object.sequence === "object") - message.sequence = new $util.LongBits(object.sequence.low >>> 0, object.sequence.high >>> 0).toNumber(true); - return message; - }; /** - * Creates a plain object from a QueryPacketReceiptRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof ibc.core.channel.v1.QueryPacketReceiptRequest - * @static - * @param {ibc.core.channel.v1.QueryPacketReceiptRequest} message QueryPacketReceiptRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Callback as used by {@link ibc.core.channel.v1.Query#packetAcknowledgement}. + * @memberof ibc.core.channel.v1.Query + * @typedef PacketAcknowledgementCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.core.channel.v1.QueryPacketAcknowledgementResponse} [response] QueryPacketAcknowledgementResponse */ - QueryPacketReceiptRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - object.port_id = ""; - object.channel_id = ""; - if ($util.Long) { - let long = new $util.Long(0, 0, true); - object.sequence = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.sequence = options.longs === String ? "0" : 0; - } - if (message.port_id != null && message.hasOwnProperty("port_id")) - object.port_id = message.port_id; - if (message.channel_id != null && message.hasOwnProperty("channel_id")) - object.channel_id = message.channel_id; - if (message.sequence != null && message.hasOwnProperty("sequence")) - if (typeof message.sequence === "number") - object.sequence = options.longs === String ? String(message.sequence) : message.sequence; - else - object.sequence = options.longs === String ? $util.Long.prototype.toString.call(message.sequence) : options.longs === Number ? new $util.LongBits(message.sequence.low >>> 0, message.sequence.high >>> 0).toNumber(true) : message.sequence; - return object; - }; /** - * Converts this QueryPacketReceiptRequest to JSON. - * @function toJSON - * @memberof ibc.core.channel.v1.QueryPacketReceiptRequest + * Calls PacketAcknowledgement. + * @function packetAcknowledgement + * @memberof ibc.core.channel.v1.Query * @instance - * @returns {Object.} JSON object + * @param {ibc.core.channel.v1.IQueryPacketAcknowledgementRequest} request QueryPacketAcknowledgementRequest message or plain object + * @param {ibc.core.channel.v1.Query.PacketAcknowledgementCallback} callback Node-style callback called with the error, if any, and QueryPacketAcknowledgementResponse + * @returns {undefined} + * @variation 1 */ - QueryPacketReceiptRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return QueryPacketReceiptRequest; - })(); - - v1.QueryPacketReceiptResponse = (function() { + Object.defineProperty(Query.prototype.packetAcknowledgement = function packetAcknowledgement(request, callback) { + return this.rpcCall(packetAcknowledgement, $root.ibc.core.channel.v1.QueryPacketAcknowledgementRequest, $root.ibc.core.channel.v1.QueryPacketAcknowledgementResponse, request, callback); + }, "name", { value: "PacketAcknowledgement" }); /** - * Properties of a QueryPacketReceiptResponse. - * @memberof ibc.core.channel.v1 - * @interface IQueryPacketReceiptResponse - * @property {boolean|null} [received] QueryPacketReceiptResponse received - * @property {Uint8Array|null} [proof] QueryPacketReceiptResponse proof - * @property {ibc.core.client.v1.IHeight|null} [proof_height] QueryPacketReceiptResponse proof_height + * Calls PacketAcknowledgement. + * @function packetAcknowledgement + * @memberof ibc.core.channel.v1.Query + * @instance + * @param {ibc.core.channel.v1.IQueryPacketAcknowledgementRequest} request QueryPacketAcknowledgementRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ /** - * Constructs a new QueryPacketReceiptResponse. - * @memberof ibc.core.channel.v1 - * @classdesc Represents a QueryPacketReceiptResponse. - * @implements IQueryPacketReceiptResponse - * @constructor - * @param {ibc.core.channel.v1.IQueryPacketReceiptResponse=} [properties] Properties to set + * Callback as used by {@link ibc.core.channel.v1.Query#packetAcknowledgements}. + * @memberof ibc.core.channel.v1.Query + * @typedef PacketAcknowledgementsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.core.channel.v1.QueryPacketAcknowledgementsResponse} [response] QueryPacketAcknowledgementsResponse */ - function QueryPacketReceiptResponse(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } /** - * QueryPacketReceiptResponse received. - * @member {boolean} received - * @memberof ibc.core.channel.v1.QueryPacketReceiptResponse + * Calls PacketAcknowledgements. + * @function packetAcknowledgements + * @memberof ibc.core.channel.v1.Query * @instance + * @param {ibc.core.channel.v1.IQueryPacketAcknowledgementsRequest} request QueryPacketAcknowledgementsRequest message or plain object + * @param {ibc.core.channel.v1.Query.PacketAcknowledgementsCallback} callback Node-style callback called with the error, if any, and QueryPacketAcknowledgementsResponse + * @returns {undefined} + * @variation 1 */ - QueryPacketReceiptResponse.prototype.received = false; + Object.defineProperty(Query.prototype.packetAcknowledgements = function packetAcknowledgements(request, callback) { + return this.rpcCall(packetAcknowledgements, $root.ibc.core.channel.v1.QueryPacketAcknowledgementsRequest, $root.ibc.core.channel.v1.QueryPacketAcknowledgementsResponse, request, callback); + }, "name", { value: "PacketAcknowledgements" }); /** - * QueryPacketReceiptResponse proof. - * @member {Uint8Array} proof - * @memberof ibc.core.channel.v1.QueryPacketReceiptResponse + * Calls PacketAcknowledgements. + * @function packetAcknowledgements + * @memberof ibc.core.channel.v1.Query * @instance + * @param {ibc.core.channel.v1.IQueryPacketAcknowledgementsRequest} request QueryPacketAcknowledgementsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - QueryPacketReceiptResponse.prototype.proof = $util.newBuffer([]); /** - * QueryPacketReceiptResponse proof_height. - * @member {ibc.core.client.v1.IHeight|null|undefined} proof_height - * @memberof ibc.core.channel.v1.QueryPacketReceiptResponse - * @instance + * Callback as used by {@link ibc.core.channel.v1.Query#unreceivedPackets}. + * @memberof ibc.core.channel.v1.Query + * @typedef UnreceivedPacketsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.core.channel.v1.QueryUnreceivedPacketsResponse} [response] QueryUnreceivedPacketsResponse */ - QueryPacketReceiptResponse.prototype.proof_height = null; /** - * Encodes the specified QueryPacketReceiptResponse message. Does not implicitly {@link ibc.core.channel.v1.QueryPacketReceiptResponse.verify|verify} messages. - * @function encode - * @memberof ibc.core.channel.v1.QueryPacketReceiptResponse - * @static - * @param {ibc.core.channel.v1.IQueryPacketReceiptResponse} message QueryPacketReceiptResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls UnreceivedPackets. + * @function unreceivedPackets + * @memberof ibc.core.channel.v1.Query + * @instance + * @param {ibc.core.channel.v1.IQueryUnreceivedPacketsRequest} request QueryUnreceivedPacketsRequest message or plain object + * @param {ibc.core.channel.v1.Query.UnreceivedPacketsCallback} callback Node-style callback called with the error, if any, and QueryUnreceivedPacketsResponse + * @returns {undefined} + * @variation 1 */ - QueryPacketReceiptResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.received != null && Object.hasOwnProperty.call(message, "received")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.received); - if (message.proof != null && Object.hasOwnProperty.call(message, "proof")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.proof); - if (message.proof_height != null && Object.hasOwnProperty.call(message, "proof_height")) - $root.ibc.core.client.v1.Height.encode(message.proof_height, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - return writer; - }; + Object.defineProperty(Query.prototype.unreceivedPackets = function unreceivedPackets(request, callback) { + return this.rpcCall(unreceivedPackets, $root.ibc.core.channel.v1.QueryUnreceivedPacketsRequest, $root.ibc.core.channel.v1.QueryUnreceivedPacketsResponse, request, callback); + }, "name", { value: "UnreceivedPackets" }); /** - * Encodes the specified QueryPacketReceiptResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryPacketReceiptResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof ibc.core.channel.v1.QueryPacketReceiptResponse - * @static - * @param {ibc.core.channel.v1.IQueryPacketReceiptResponse} message QueryPacketReceiptResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls UnreceivedPackets. + * @function unreceivedPackets + * @memberof ibc.core.channel.v1.Query + * @instance + * @param {ibc.core.channel.v1.IQueryUnreceivedPacketsRequest} request QueryUnreceivedPacketsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - QueryPacketReceiptResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; /** - * Decodes a QueryPacketReceiptResponse message from the specified reader or buffer. - * @function decode - * @memberof ibc.core.channel.v1.QueryPacketReceiptResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.channel.v1.QueryPacketReceiptResponse} QueryPacketReceiptResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link ibc.core.channel.v1.Query#unreceivedAcks}. + * @memberof ibc.core.channel.v1.Query + * @typedef UnreceivedAcksCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.core.channel.v1.QueryUnreceivedAcksResponse} [response] QueryUnreceivedAcksResponse */ - QueryPacketReceiptResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.QueryPacketReceiptResponse(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 2: - message.received = reader.bool(); - break; - case 3: - message.proof = reader.bytes(); - break; - case 4: - message.proof_height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; /** - * Decodes a QueryPacketReceiptResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ibc.core.channel.v1.QueryPacketReceiptResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.channel.v1.QueryPacketReceiptResponse} QueryPacketReceiptResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls UnreceivedAcks. + * @function unreceivedAcks + * @memberof ibc.core.channel.v1.Query + * @instance + * @param {ibc.core.channel.v1.IQueryUnreceivedAcksRequest} request QueryUnreceivedAcksRequest message or plain object + * @param {ibc.core.channel.v1.Query.UnreceivedAcksCallback} callback Node-style callback called with the error, if any, and QueryUnreceivedAcksResponse + * @returns {undefined} + * @variation 1 */ - QueryPacketReceiptResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + Object.defineProperty(Query.prototype.unreceivedAcks = function unreceivedAcks(request, callback) { + return this.rpcCall(unreceivedAcks, $root.ibc.core.channel.v1.QueryUnreceivedAcksRequest, $root.ibc.core.channel.v1.QueryUnreceivedAcksResponse, request, callback); + }, "name", { value: "UnreceivedAcks" }); /** - * Verifies a QueryPacketReceiptResponse message. - * @function verify - * @memberof ibc.core.channel.v1.QueryPacketReceiptResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Calls UnreceivedAcks. + * @function unreceivedAcks + * @memberof ibc.core.channel.v1.Query + * @instance + * @param {ibc.core.channel.v1.IQueryUnreceivedAcksRequest} request QueryUnreceivedAcksRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - QueryPacketReceiptResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.received != null && message.hasOwnProperty("received")) - if (typeof message.received !== "boolean") - return "received: boolean expected"; - if (message.proof != null && message.hasOwnProperty("proof")) - if (!(message.proof && typeof message.proof.length === "number" || $util.isString(message.proof))) - return "proof: buffer expected"; - if (message.proof_height != null && message.hasOwnProperty("proof_height")) { - let error = $root.ibc.core.client.v1.Height.verify(message.proof_height); - if (error) - return "proof_height." + error; - } - return null; - }; /** - * Creates a QueryPacketReceiptResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof ibc.core.channel.v1.QueryPacketReceiptResponse - * @static - * @param {Object.} object Plain object - * @returns {ibc.core.channel.v1.QueryPacketReceiptResponse} QueryPacketReceiptResponse + * Callback as used by {@link ibc.core.channel.v1.Query#nextSequenceReceive}. + * @memberof ibc.core.channel.v1.Query + * @typedef NextSequenceReceiveCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.core.channel.v1.QueryNextSequenceReceiveResponse} [response] QueryNextSequenceReceiveResponse */ - QueryPacketReceiptResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.channel.v1.QueryPacketReceiptResponse) - return object; - let message = new $root.ibc.core.channel.v1.QueryPacketReceiptResponse(); - if (object.received != null) - message.received = Boolean(object.received); - if (object.proof != null) - if (typeof object.proof === "string") - $util.base64.decode(object.proof, message.proof = $util.newBuffer($util.base64.length(object.proof)), 0); - else if (object.proof.length) - message.proof = object.proof; - if (object.proof_height != null) { - if (typeof object.proof_height !== "object") - throw TypeError(".ibc.core.channel.v1.QueryPacketReceiptResponse.proof_height: object expected"); - message.proof_height = $root.ibc.core.client.v1.Height.fromObject(object.proof_height); - } - return message; - }; /** - * Creates a plain object from a QueryPacketReceiptResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof ibc.core.channel.v1.QueryPacketReceiptResponse - * @static - * @param {ibc.core.channel.v1.QueryPacketReceiptResponse} message QueryPacketReceiptResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Calls NextSequenceReceive. + * @function nextSequenceReceive + * @memberof ibc.core.channel.v1.Query + * @instance + * @param {ibc.core.channel.v1.IQueryNextSequenceReceiveRequest} request QueryNextSequenceReceiveRequest message or plain object + * @param {ibc.core.channel.v1.Query.NextSequenceReceiveCallback} callback Node-style callback called with the error, if any, and QueryNextSequenceReceiveResponse + * @returns {undefined} + * @variation 1 */ - QueryPacketReceiptResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - object.received = false; - if (options.bytes === String) - object.proof = ""; - else { - object.proof = []; - if (options.bytes !== Array) - object.proof = $util.newBuffer(object.proof); - } - object.proof_height = null; - } - if (message.received != null && message.hasOwnProperty("received")) - object.received = message.received; - if (message.proof != null && message.hasOwnProperty("proof")) - object.proof = options.bytes === String ? $util.base64.encode(message.proof, 0, message.proof.length) : options.bytes === Array ? Array.prototype.slice.call(message.proof) : message.proof; - if (message.proof_height != null && message.hasOwnProperty("proof_height")) - object.proof_height = $root.ibc.core.client.v1.Height.toObject(message.proof_height, options); - return object; - }; + Object.defineProperty(Query.prototype.nextSequenceReceive = function nextSequenceReceive(request, callback) { + return this.rpcCall(nextSequenceReceive, $root.ibc.core.channel.v1.QueryNextSequenceReceiveRequest, $root.ibc.core.channel.v1.QueryNextSequenceReceiveResponse, request, callback); + }, "name", { value: "NextSequenceReceive" }); /** - * Converts this QueryPacketReceiptResponse to JSON. - * @function toJSON - * @memberof ibc.core.channel.v1.QueryPacketReceiptResponse + * Calls NextSequenceReceive. + * @function nextSequenceReceive + * @memberof ibc.core.channel.v1.Query * @instance - * @returns {Object.} JSON object + * @param {ibc.core.channel.v1.IQueryNextSequenceReceiveRequest} request QueryNextSequenceReceiveRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - QueryPacketReceiptResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - return QueryPacketReceiptResponse; + return Query; })(); - v1.QueryPacketAcknowledgementRequest = (function() { + v1.QueryChannelRequest = (function() { /** - * Properties of a QueryPacketAcknowledgementRequest. + * Properties of a QueryChannelRequest. * @memberof ibc.core.channel.v1 - * @interface IQueryPacketAcknowledgementRequest - * @property {string|null} [port_id] QueryPacketAcknowledgementRequest port_id - * @property {string|null} [channel_id] QueryPacketAcknowledgementRequest channel_id - * @property {Long|null} [sequence] QueryPacketAcknowledgementRequest sequence + * @interface IQueryChannelRequest + * @property {string|null} [port_id] QueryChannelRequest port_id + * @property {string|null} [channel_id] QueryChannelRequest channel_id */ /** - * Constructs a new QueryPacketAcknowledgementRequest. + * Constructs a new QueryChannelRequest. * @memberof ibc.core.channel.v1 - * @classdesc Represents a QueryPacketAcknowledgementRequest. - * @implements IQueryPacketAcknowledgementRequest + * @classdesc Represents a QueryChannelRequest. + * @implements IQueryChannelRequest * @constructor - * @param {ibc.core.channel.v1.IQueryPacketAcknowledgementRequest=} [properties] Properties to set + * @param {ibc.core.channel.v1.IQueryChannelRequest=} [properties] Properties to set */ - function QueryPacketAcknowledgementRequest(properties) { + function QueryChannelRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -45343,78 +52112,68 @@ export const ibc = $root.ibc = (() => { } /** - * QueryPacketAcknowledgementRequest port_id. + * QueryChannelRequest port_id. * @member {string} port_id - * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementRequest + * @memberof ibc.core.channel.v1.QueryChannelRequest * @instance */ - QueryPacketAcknowledgementRequest.prototype.port_id = ""; + QueryChannelRequest.prototype.port_id = ""; /** - * QueryPacketAcknowledgementRequest channel_id. + * QueryChannelRequest channel_id. * @member {string} channel_id - * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementRequest - * @instance - */ - QueryPacketAcknowledgementRequest.prototype.channel_id = ""; - - /** - * QueryPacketAcknowledgementRequest sequence. - * @member {Long} sequence - * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementRequest + * @memberof ibc.core.channel.v1.QueryChannelRequest * @instance */ - QueryPacketAcknowledgementRequest.prototype.sequence = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + QueryChannelRequest.prototype.channel_id = ""; /** - * Encodes the specified QueryPacketAcknowledgementRequest message. Does not implicitly {@link ibc.core.channel.v1.QueryPacketAcknowledgementRequest.verify|verify} messages. + * Encodes the specified QueryChannelRequest message. Does not implicitly {@link ibc.core.channel.v1.QueryChannelRequest.verify|verify} messages. * @function encode - * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementRequest + * @memberof ibc.core.channel.v1.QueryChannelRequest * @static - * @param {ibc.core.channel.v1.IQueryPacketAcknowledgementRequest} message QueryPacketAcknowledgementRequest message or plain object to encode + * @param {ibc.core.channel.v1.IQueryChannelRequest} message QueryChannelRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryPacketAcknowledgementRequest.encode = function encode(message, writer) { + QueryChannelRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.port_id != null && Object.hasOwnProperty.call(message, "port_id")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.port_id); if (message.channel_id != null && Object.hasOwnProperty.call(message, "channel_id")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.channel_id); - if (message.sequence != null && Object.hasOwnProperty.call(message, "sequence")) - writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.sequence); return writer; }; /** - * Encodes the specified QueryPacketAcknowledgementRequest message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryPacketAcknowledgementRequest.verify|verify} messages. + * Encodes the specified QueryChannelRequest message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryChannelRequest.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementRequest + * @memberof ibc.core.channel.v1.QueryChannelRequest * @static - * @param {ibc.core.channel.v1.IQueryPacketAcknowledgementRequest} message QueryPacketAcknowledgementRequest message or plain object to encode + * @param {ibc.core.channel.v1.IQueryChannelRequest} message QueryChannelRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryPacketAcknowledgementRequest.encodeDelimited = function encodeDelimited(message, writer) { + QueryChannelRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryPacketAcknowledgementRequest message from the specified reader or buffer. + * Decodes a QueryChannelRequest message from the specified reader or buffer. * @function decode - * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementRequest + * @memberof ibc.core.channel.v1.QueryChannelRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.channel.v1.QueryPacketAcknowledgementRequest} QueryPacketAcknowledgementRequest + * @returns {ibc.core.channel.v1.QueryChannelRequest} QueryChannelRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryPacketAcknowledgementRequest.decode = function decode(reader, length) { + QueryChannelRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.QueryPacketAcknowledgementRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.QueryChannelRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { @@ -45424,9 +52183,6 @@ export const ibc = $root.ibc = (() => { case 2: message.channel_id = reader.string(); break; - case 3: - message.sequence = reader.uint64(); - break; default: reader.skipType(tag & 7); break; @@ -45436,30 +52192,30 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a QueryPacketAcknowledgementRequest message from the specified reader or buffer, length delimited. + * Decodes a QueryChannelRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementRequest + * @memberof ibc.core.channel.v1.QueryChannelRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.channel.v1.QueryPacketAcknowledgementRequest} QueryPacketAcknowledgementRequest + * @returns {ibc.core.channel.v1.QueryChannelRequest} QueryChannelRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryPacketAcknowledgementRequest.decodeDelimited = function decodeDelimited(reader) { + QueryChannelRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryPacketAcknowledgementRequest message. + * Verifies a QueryChannelRequest message. * @function verify - * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementRequest + * @memberof ibc.core.channel.v1.QueryChannelRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryPacketAcknowledgementRequest.verify = function verify(message) { + QueryChannelRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.port_id != null && message.hasOwnProperty("port_id")) @@ -45468,108 +52224,86 @@ export const ibc = $root.ibc = (() => { if (message.channel_id != null && message.hasOwnProperty("channel_id")) if (!$util.isString(message.channel_id)) return "channel_id: string expected"; - if (message.sequence != null && message.hasOwnProperty("sequence")) - if (!$util.isInteger(message.sequence) && !(message.sequence && $util.isInteger(message.sequence.low) && $util.isInteger(message.sequence.high))) - return "sequence: integer|Long expected"; return null; }; /** - * Creates a QueryPacketAcknowledgementRequest message from a plain object. Also converts values to their respective internal types. + * Creates a QueryChannelRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementRequest + * @memberof ibc.core.channel.v1.QueryChannelRequest * @static * @param {Object.} object Plain object - * @returns {ibc.core.channel.v1.QueryPacketAcknowledgementRequest} QueryPacketAcknowledgementRequest + * @returns {ibc.core.channel.v1.QueryChannelRequest} QueryChannelRequest */ - QueryPacketAcknowledgementRequest.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.channel.v1.QueryPacketAcknowledgementRequest) + QueryChannelRequest.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.channel.v1.QueryChannelRequest) return object; - let message = new $root.ibc.core.channel.v1.QueryPacketAcknowledgementRequest(); + let message = new $root.ibc.core.channel.v1.QueryChannelRequest(); if (object.port_id != null) message.port_id = String(object.port_id); if (object.channel_id != null) message.channel_id = String(object.channel_id); - if (object.sequence != null) - if ($util.Long) - (message.sequence = $util.Long.fromValue(object.sequence)).unsigned = true; - else if (typeof object.sequence === "string") - message.sequence = parseInt(object.sequence, 10); - else if (typeof object.sequence === "number") - message.sequence = object.sequence; - else if (typeof object.sequence === "object") - message.sequence = new $util.LongBits(object.sequence.low >>> 0, object.sequence.high >>> 0).toNumber(true); return message; }; /** - * Creates a plain object from a QueryPacketAcknowledgementRequest message. Also converts values to other types if specified. + * Creates a plain object from a QueryChannelRequest message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementRequest + * @memberof ibc.core.channel.v1.QueryChannelRequest * @static - * @param {ibc.core.channel.v1.QueryPacketAcknowledgementRequest} message QueryPacketAcknowledgementRequest + * @param {ibc.core.channel.v1.QueryChannelRequest} message QueryChannelRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryPacketAcknowledgementRequest.toObject = function toObject(message, options) { + QueryChannelRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { object.port_id = ""; object.channel_id = ""; - if ($util.Long) { - let long = new $util.Long(0, 0, true); - object.sequence = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.sequence = options.longs === String ? "0" : 0; } if (message.port_id != null && message.hasOwnProperty("port_id")) object.port_id = message.port_id; if (message.channel_id != null && message.hasOwnProperty("channel_id")) object.channel_id = message.channel_id; - if (message.sequence != null && message.hasOwnProperty("sequence")) - if (typeof message.sequence === "number") - object.sequence = options.longs === String ? String(message.sequence) : message.sequence; - else - object.sequence = options.longs === String ? $util.Long.prototype.toString.call(message.sequence) : options.longs === Number ? new $util.LongBits(message.sequence.low >>> 0, message.sequence.high >>> 0).toNumber(true) : message.sequence; return object; }; /** - * Converts this QueryPacketAcknowledgementRequest to JSON. + * Converts this QueryChannelRequest to JSON. * @function toJSON - * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementRequest + * @memberof ibc.core.channel.v1.QueryChannelRequest * @instance * @returns {Object.} JSON object */ - QueryPacketAcknowledgementRequest.prototype.toJSON = function toJSON() { + QueryChannelRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryPacketAcknowledgementRequest; + return QueryChannelRequest; })(); - v1.QueryPacketAcknowledgementResponse = (function() { + v1.QueryChannelResponse = (function() { /** - * Properties of a QueryPacketAcknowledgementResponse. + * Properties of a QueryChannelResponse. * @memberof ibc.core.channel.v1 - * @interface IQueryPacketAcknowledgementResponse - * @property {Uint8Array|null} [acknowledgement] QueryPacketAcknowledgementResponse acknowledgement - * @property {Uint8Array|null} [proof] QueryPacketAcknowledgementResponse proof - * @property {ibc.core.client.v1.IHeight|null} [proof_height] QueryPacketAcknowledgementResponse proof_height + * @interface IQueryChannelResponse + * @property {ibc.core.channel.v1.IChannel|null} [channel] QueryChannelResponse channel + * @property {Uint8Array|null} [proof] QueryChannelResponse proof + * @property {ibc.core.client.v1.IHeight|null} [proof_height] QueryChannelResponse proof_height */ /** - * Constructs a new QueryPacketAcknowledgementResponse. + * Constructs a new QueryChannelResponse. * @memberof ibc.core.channel.v1 - * @classdesc Represents a QueryPacketAcknowledgementResponse. - * @implements IQueryPacketAcknowledgementResponse + * @classdesc Represents a QueryChannelResponse. + * @implements IQueryChannelResponse * @constructor - * @param {ibc.core.channel.v1.IQueryPacketAcknowledgementResponse=} [properties] Properties to set + * @param {ibc.core.channel.v1.IQueryChannelResponse=} [properties] Properties to set */ - function QueryPacketAcknowledgementResponse(properties) { + function QueryChannelResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -45577,43 +52311,43 @@ export const ibc = $root.ibc = (() => { } /** - * QueryPacketAcknowledgementResponse acknowledgement. - * @member {Uint8Array} acknowledgement - * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementResponse + * QueryChannelResponse channel. + * @member {ibc.core.channel.v1.IChannel|null|undefined} channel + * @memberof ibc.core.channel.v1.QueryChannelResponse * @instance */ - QueryPacketAcknowledgementResponse.prototype.acknowledgement = $util.newBuffer([]); + QueryChannelResponse.prototype.channel = null; /** - * QueryPacketAcknowledgementResponse proof. + * QueryChannelResponse proof. * @member {Uint8Array} proof - * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementResponse + * @memberof ibc.core.channel.v1.QueryChannelResponse * @instance */ - QueryPacketAcknowledgementResponse.prototype.proof = $util.newBuffer([]); + QueryChannelResponse.prototype.proof = $util.newBuffer([]); /** - * QueryPacketAcknowledgementResponse proof_height. + * QueryChannelResponse proof_height. * @member {ibc.core.client.v1.IHeight|null|undefined} proof_height - * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementResponse + * @memberof ibc.core.channel.v1.QueryChannelResponse * @instance */ - QueryPacketAcknowledgementResponse.prototype.proof_height = null; + QueryChannelResponse.prototype.proof_height = null; /** - * Encodes the specified QueryPacketAcknowledgementResponse message. Does not implicitly {@link ibc.core.channel.v1.QueryPacketAcknowledgementResponse.verify|verify} messages. + * Encodes the specified QueryChannelResponse message. Does not implicitly {@link ibc.core.channel.v1.QueryChannelResponse.verify|verify} messages. * @function encode - * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementResponse + * @memberof ibc.core.channel.v1.QueryChannelResponse * @static - * @param {ibc.core.channel.v1.IQueryPacketAcknowledgementResponse} message QueryPacketAcknowledgementResponse message or plain object to encode + * @param {ibc.core.channel.v1.IQueryChannelResponse} message QueryChannelResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryPacketAcknowledgementResponse.encode = function encode(message, writer) { + QueryChannelResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.acknowledgement != null && Object.hasOwnProperty.call(message, "acknowledgement")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.acknowledgement); + if (message.channel != null && Object.hasOwnProperty.call(message, "channel")) + $root.ibc.core.channel.v1.Channel.encode(message.channel, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.proof != null && Object.hasOwnProperty.call(message, "proof")) writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.proof); if (message.proof_height != null && Object.hasOwnProperty.call(message, "proof_height")) @@ -45622,38 +52356,38 @@ export const ibc = $root.ibc = (() => { }; /** - * Encodes the specified QueryPacketAcknowledgementResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryPacketAcknowledgementResponse.verify|verify} messages. + * Encodes the specified QueryChannelResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryChannelResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementResponse + * @memberof ibc.core.channel.v1.QueryChannelResponse * @static - * @param {ibc.core.channel.v1.IQueryPacketAcknowledgementResponse} message QueryPacketAcknowledgementResponse message or plain object to encode + * @param {ibc.core.channel.v1.IQueryChannelResponse} message QueryChannelResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryPacketAcknowledgementResponse.encodeDelimited = function encodeDelimited(message, writer) { + QueryChannelResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryPacketAcknowledgementResponse message from the specified reader or buffer. + * Decodes a QueryChannelResponse message from the specified reader or buffer. * @function decode - * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementResponse + * @memberof ibc.core.channel.v1.QueryChannelResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.channel.v1.QueryPacketAcknowledgementResponse} QueryPacketAcknowledgementResponse + * @returns {ibc.core.channel.v1.QueryChannelResponse} QueryChannelResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryPacketAcknowledgementResponse.decode = function decode(reader, length) { + QueryChannelResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.QueryPacketAcknowledgementResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.QueryChannelResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.acknowledgement = reader.bytes(); + message.channel = $root.ibc.core.channel.v1.Channel.decode(reader, reader.uint32()); break; case 2: message.proof = reader.bytes(); @@ -45670,432 +52404,143 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a QueryPacketAcknowledgementResponse message from the specified reader or buffer, length delimited. + * Decodes a QueryChannelResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementResponse + * @memberof ibc.core.channel.v1.QueryChannelResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.channel.v1.QueryPacketAcknowledgementResponse} QueryPacketAcknowledgementResponse + * @returns {ibc.core.channel.v1.QueryChannelResponse} QueryChannelResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryPacketAcknowledgementResponse.decodeDelimited = function decodeDelimited(reader) { + QueryChannelResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryPacketAcknowledgementResponse message. + * Verifies a QueryChannelResponse message. * @function verify - * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementResponse + * @memberof ibc.core.channel.v1.QueryChannelResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryPacketAcknowledgementResponse.verify = function verify(message) { + QueryChannelResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.acknowledgement != null && message.hasOwnProperty("acknowledgement")) - if (!(message.acknowledgement && typeof message.acknowledgement.length === "number" || $util.isString(message.acknowledgement))) - return "acknowledgement: buffer expected"; - if (message.proof != null && message.hasOwnProperty("proof")) - if (!(message.proof && typeof message.proof.length === "number" || $util.isString(message.proof))) - return "proof: buffer expected"; - if (message.proof_height != null && message.hasOwnProperty("proof_height")) { - let error = $root.ibc.core.client.v1.Height.verify(message.proof_height); + if (message.channel != null && message.hasOwnProperty("channel")) { + let error = $root.ibc.core.channel.v1.Channel.verify(message.channel); if (error) - return "proof_height." + error; - } - return null; - }; - - /** - * Creates a QueryPacketAcknowledgementResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementResponse - * @static - * @param {Object.} object Plain object - * @returns {ibc.core.channel.v1.QueryPacketAcknowledgementResponse} QueryPacketAcknowledgementResponse - */ - QueryPacketAcknowledgementResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.channel.v1.QueryPacketAcknowledgementResponse) - return object; - let message = new $root.ibc.core.channel.v1.QueryPacketAcknowledgementResponse(); - if (object.acknowledgement != null) - if (typeof object.acknowledgement === "string") - $util.base64.decode(object.acknowledgement, message.acknowledgement = $util.newBuffer($util.base64.length(object.acknowledgement)), 0); - else if (object.acknowledgement.length) - message.acknowledgement = object.acknowledgement; - if (object.proof != null) - if (typeof object.proof === "string") - $util.base64.decode(object.proof, message.proof = $util.newBuffer($util.base64.length(object.proof)), 0); - else if (object.proof.length) - message.proof = object.proof; - if (object.proof_height != null) { - if (typeof object.proof_height !== "object") - throw TypeError(".ibc.core.channel.v1.QueryPacketAcknowledgementResponse.proof_height: object expected"); - message.proof_height = $root.ibc.core.client.v1.Height.fromObject(object.proof_height); - } - return message; - }; - - /** - * Creates a plain object from a QueryPacketAcknowledgementResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementResponse - * @static - * @param {ibc.core.channel.v1.QueryPacketAcknowledgementResponse} message QueryPacketAcknowledgementResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - QueryPacketAcknowledgementResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - if (options.bytes === String) - object.acknowledgement = ""; - else { - object.acknowledgement = []; - if (options.bytes !== Array) - object.acknowledgement = $util.newBuffer(object.acknowledgement); - } - if (options.bytes === String) - object.proof = ""; - else { - object.proof = []; - if (options.bytes !== Array) - object.proof = $util.newBuffer(object.proof); - } - object.proof_height = null; + return "channel." + error; } - if (message.acknowledgement != null && message.hasOwnProperty("acknowledgement")) - object.acknowledgement = options.bytes === String ? $util.base64.encode(message.acknowledgement, 0, message.acknowledgement.length) : options.bytes === Array ? Array.prototype.slice.call(message.acknowledgement) : message.acknowledgement; if (message.proof != null && message.hasOwnProperty("proof")) - object.proof = options.bytes === String ? $util.base64.encode(message.proof, 0, message.proof.length) : options.bytes === Array ? Array.prototype.slice.call(message.proof) : message.proof; - if (message.proof_height != null && message.hasOwnProperty("proof_height")) - object.proof_height = $root.ibc.core.client.v1.Height.toObject(message.proof_height, options); - return object; - }; - - /** - * Converts this QueryPacketAcknowledgementResponse to JSON. - * @function toJSON - * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementResponse - * @instance - * @returns {Object.} JSON object - */ - QueryPacketAcknowledgementResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return QueryPacketAcknowledgementResponse; - })(); - - v1.QueryPacketAcknowledgementsRequest = (function() { - - /** - * Properties of a QueryPacketAcknowledgementsRequest. - * @memberof ibc.core.channel.v1 - * @interface IQueryPacketAcknowledgementsRequest - * @property {string|null} [port_id] QueryPacketAcknowledgementsRequest port_id - * @property {string|null} [channel_id] QueryPacketAcknowledgementsRequest channel_id - * @property {cosmos.base.query.v1beta1.IPageRequest|null} [pagination] QueryPacketAcknowledgementsRequest pagination - * @property {Array.|null} [packet_commitment_sequences] QueryPacketAcknowledgementsRequest packet_commitment_sequences - */ - - /** - * Constructs a new QueryPacketAcknowledgementsRequest. - * @memberof ibc.core.channel.v1 - * @classdesc Represents a QueryPacketAcknowledgementsRequest. - * @implements IQueryPacketAcknowledgementsRequest - * @constructor - * @param {ibc.core.channel.v1.IQueryPacketAcknowledgementsRequest=} [properties] Properties to set - */ - function QueryPacketAcknowledgementsRequest(properties) { - this.packet_commitment_sequences = []; - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * QueryPacketAcknowledgementsRequest port_id. - * @member {string} port_id - * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementsRequest - * @instance - */ - QueryPacketAcknowledgementsRequest.prototype.port_id = ""; - - /** - * QueryPacketAcknowledgementsRequest channel_id. - * @member {string} channel_id - * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementsRequest - * @instance - */ - QueryPacketAcknowledgementsRequest.prototype.channel_id = ""; - - /** - * QueryPacketAcknowledgementsRequest pagination. - * @member {cosmos.base.query.v1beta1.IPageRequest|null|undefined} pagination - * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementsRequest - * @instance - */ - QueryPacketAcknowledgementsRequest.prototype.pagination = null; - - /** - * QueryPacketAcknowledgementsRequest packet_commitment_sequences. - * @member {Array.} packet_commitment_sequences - * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementsRequest - * @instance - */ - QueryPacketAcknowledgementsRequest.prototype.packet_commitment_sequences = $util.emptyArray; - - /** - * Encodes the specified QueryPacketAcknowledgementsRequest message. Does not implicitly {@link ibc.core.channel.v1.QueryPacketAcknowledgementsRequest.verify|verify} messages. - * @function encode - * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementsRequest - * @static - * @param {ibc.core.channel.v1.IQueryPacketAcknowledgementsRequest} message QueryPacketAcknowledgementsRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - QueryPacketAcknowledgementsRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.port_id != null && Object.hasOwnProperty.call(message, "port_id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.port_id); - if (message.channel_id != null && Object.hasOwnProperty.call(message, "channel_id")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.channel_id); - if (message.pagination != null && Object.hasOwnProperty.call(message, "pagination")) - $root.cosmos.base.query.v1beta1.PageRequest.encode(message.pagination, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.packet_commitment_sequences != null && message.packet_commitment_sequences.length) { - writer.uint32(/* id 4, wireType 2 =*/34).fork(); - for (let i = 0; i < message.packet_commitment_sequences.length; ++i) - writer.uint64(message.packet_commitment_sequences[i]); - writer.ldelim(); - } - return writer; - }; - - /** - * Encodes the specified QueryPacketAcknowledgementsRequest message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryPacketAcknowledgementsRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementsRequest - * @static - * @param {ibc.core.channel.v1.IQueryPacketAcknowledgementsRequest} message QueryPacketAcknowledgementsRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - QueryPacketAcknowledgementsRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a QueryPacketAcknowledgementsRequest message from the specified reader or buffer. - * @function decode - * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementsRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.channel.v1.QueryPacketAcknowledgementsRequest} QueryPacketAcknowledgementsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - QueryPacketAcknowledgementsRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.QueryPacketAcknowledgementsRequest(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.port_id = reader.string(); - break; - case 2: - message.channel_id = reader.string(); - break; - case 3: - message.pagination = $root.cosmos.base.query.v1beta1.PageRequest.decode(reader, reader.uint32()); - break; - case 4: - if (!(message.packet_commitment_sequences && message.packet_commitment_sequences.length)) - message.packet_commitment_sequences = []; - if ((tag & 7) === 2) { - let end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.packet_commitment_sequences.push(reader.uint64()); - } else - message.packet_commitment_sequences.push(reader.uint64()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a QueryPacketAcknowledgementsRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementsRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.channel.v1.QueryPacketAcknowledgementsRequest} QueryPacketAcknowledgementsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - QueryPacketAcknowledgementsRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a QueryPacketAcknowledgementsRequest message. - * @function verify - * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementsRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - QueryPacketAcknowledgementsRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.port_id != null && message.hasOwnProperty("port_id")) - if (!$util.isString(message.port_id)) - return "port_id: string expected"; - if (message.channel_id != null && message.hasOwnProperty("channel_id")) - if (!$util.isString(message.channel_id)) - return "channel_id: string expected"; - if (message.pagination != null && message.hasOwnProperty("pagination")) { - let error = $root.cosmos.base.query.v1beta1.PageRequest.verify(message.pagination); + if (!(message.proof && typeof message.proof.length === "number" || $util.isString(message.proof))) + return "proof: buffer expected"; + if (message.proof_height != null && message.hasOwnProperty("proof_height")) { + let error = $root.ibc.core.client.v1.Height.verify(message.proof_height); if (error) - return "pagination." + error; - } - if (message.packet_commitment_sequences != null && message.hasOwnProperty("packet_commitment_sequences")) { - if (!Array.isArray(message.packet_commitment_sequences)) - return "packet_commitment_sequences: array expected"; - for (let i = 0; i < message.packet_commitment_sequences.length; ++i) - if (!$util.isInteger(message.packet_commitment_sequences[i]) && !(message.packet_commitment_sequences[i] && $util.isInteger(message.packet_commitment_sequences[i].low) && $util.isInteger(message.packet_commitment_sequences[i].high))) - return "packet_commitment_sequences: integer|Long[] expected"; + return "proof_height." + error; } return null; }; /** - * Creates a QueryPacketAcknowledgementsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a QueryChannelResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementsRequest + * @memberof ibc.core.channel.v1.QueryChannelResponse * @static * @param {Object.} object Plain object - * @returns {ibc.core.channel.v1.QueryPacketAcknowledgementsRequest} QueryPacketAcknowledgementsRequest + * @returns {ibc.core.channel.v1.QueryChannelResponse} QueryChannelResponse */ - QueryPacketAcknowledgementsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.channel.v1.QueryPacketAcknowledgementsRequest) + QueryChannelResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.channel.v1.QueryChannelResponse) return object; - let message = new $root.ibc.core.channel.v1.QueryPacketAcknowledgementsRequest(); - if (object.port_id != null) - message.port_id = String(object.port_id); - if (object.channel_id != null) - message.channel_id = String(object.channel_id); - if (object.pagination != null) { - if (typeof object.pagination !== "object") - throw TypeError(".ibc.core.channel.v1.QueryPacketAcknowledgementsRequest.pagination: object expected"); - message.pagination = $root.cosmos.base.query.v1beta1.PageRequest.fromObject(object.pagination); + let message = new $root.ibc.core.channel.v1.QueryChannelResponse(); + if (object.channel != null) { + if (typeof object.channel !== "object") + throw TypeError(".ibc.core.channel.v1.QueryChannelResponse.channel: object expected"); + message.channel = $root.ibc.core.channel.v1.Channel.fromObject(object.channel); } - if (object.packet_commitment_sequences) { - if (!Array.isArray(object.packet_commitment_sequences)) - throw TypeError(".ibc.core.channel.v1.QueryPacketAcknowledgementsRequest.packet_commitment_sequences: array expected"); - message.packet_commitment_sequences = []; - for (let i = 0; i < object.packet_commitment_sequences.length; ++i) - if ($util.Long) - (message.packet_commitment_sequences[i] = $util.Long.fromValue(object.packet_commitment_sequences[i])).unsigned = true; - else if (typeof object.packet_commitment_sequences[i] === "string") - message.packet_commitment_sequences[i] = parseInt(object.packet_commitment_sequences[i], 10); - else if (typeof object.packet_commitment_sequences[i] === "number") - message.packet_commitment_sequences[i] = object.packet_commitment_sequences[i]; - else if (typeof object.packet_commitment_sequences[i] === "object") - message.packet_commitment_sequences[i] = new $util.LongBits(object.packet_commitment_sequences[i].low >>> 0, object.packet_commitment_sequences[i].high >>> 0).toNumber(true); + if (object.proof != null) + if (typeof object.proof === "string") + $util.base64.decode(object.proof, message.proof = $util.newBuffer($util.base64.length(object.proof)), 0); + else if (object.proof.length) + message.proof = object.proof; + if (object.proof_height != null) { + if (typeof object.proof_height !== "object") + throw TypeError(".ibc.core.channel.v1.QueryChannelResponse.proof_height: object expected"); + message.proof_height = $root.ibc.core.client.v1.Height.fromObject(object.proof_height); } return message; }; /** - * Creates a plain object from a QueryPacketAcknowledgementsRequest message. Also converts values to other types if specified. + * Creates a plain object from a QueryChannelResponse message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementsRequest + * @memberof ibc.core.channel.v1.QueryChannelResponse * @static - * @param {ibc.core.channel.v1.QueryPacketAcknowledgementsRequest} message QueryPacketAcknowledgementsRequest + * @param {ibc.core.channel.v1.QueryChannelResponse} message QueryChannelResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryPacketAcknowledgementsRequest.toObject = function toObject(message, options) { + QueryChannelResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.packet_commitment_sequences = []; if (options.defaults) { - object.port_id = ""; - object.channel_id = ""; - object.pagination = null; - } - if (message.port_id != null && message.hasOwnProperty("port_id")) - object.port_id = message.port_id; - if (message.channel_id != null && message.hasOwnProperty("channel_id")) - object.channel_id = message.channel_id; - if (message.pagination != null && message.hasOwnProperty("pagination")) - object.pagination = $root.cosmos.base.query.v1beta1.PageRequest.toObject(message.pagination, options); - if (message.packet_commitment_sequences && message.packet_commitment_sequences.length) { - object.packet_commitment_sequences = []; - for (let j = 0; j < message.packet_commitment_sequences.length; ++j) - if (typeof message.packet_commitment_sequences[j] === "number") - object.packet_commitment_sequences[j] = options.longs === String ? String(message.packet_commitment_sequences[j]) : message.packet_commitment_sequences[j]; - else - object.packet_commitment_sequences[j] = options.longs === String ? $util.Long.prototype.toString.call(message.packet_commitment_sequences[j]) : options.longs === Number ? new $util.LongBits(message.packet_commitment_sequences[j].low >>> 0, message.packet_commitment_sequences[j].high >>> 0).toNumber(true) : message.packet_commitment_sequences[j]; + object.channel = null; + if (options.bytes === String) + object.proof = ""; + else { + object.proof = []; + if (options.bytes !== Array) + object.proof = $util.newBuffer(object.proof); + } + object.proof_height = null; } + if (message.channel != null && message.hasOwnProperty("channel")) + object.channel = $root.ibc.core.channel.v1.Channel.toObject(message.channel, options); + if (message.proof != null && message.hasOwnProperty("proof")) + object.proof = options.bytes === String ? $util.base64.encode(message.proof, 0, message.proof.length) : options.bytes === Array ? Array.prototype.slice.call(message.proof) : message.proof; + if (message.proof_height != null && message.hasOwnProperty("proof_height")) + object.proof_height = $root.ibc.core.client.v1.Height.toObject(message.proof_height, options); return object; }; /** - * Converts this QueryPacketAcknowledgementsRequest to JSON. + * Converts this QueryChannelResponse to JSON. * @function toJSON - * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementsRequest + * @memberof ibc.core.channel.v1.QueryChannelResponse * @instance * @returns {Object.} JSON object */ - QueryPacketAcknowledgementsRequest.prototype.toJSON = function toJSON() { + QueryChannelResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryPacketAcknowledgementsRequest; + return QueryChannelResponse; })(); - v1.QueryPacketAcknowledgementsResponse = (function() { + v1.QueryChannelsRequest = (function() { /** - * Properties of a QueryPacketAcknowledgementsResponse. + * Properties of a QueryChannelsRequest. * @memberof ibc.core.channel.v1 - * @interface IQueryPacketAcknowledgementsResponse - * @property {Array.|null} [acknowledgements] QueryPacketAcknowledgementsResponse acknowledgements - * @property {cosmos.base.query.v1beta1.IPageResponse|null} [pagination] QueryPacketAcknowledgementsResponse pagination - * @property {ibc.core.client.v1.IHeight|null} [height] QueryPacketAcknowledgementsResponse height + * @interface IQueryChannelsRequest + * @property {cosmos.base.query.v1beta1.IPageRequest|null} [pagination] QueryChannelsRequest pagination */ /** - * Constructs a new QueryPacketAcknowledgementsResponse. + * Constructs a new QueryChannelsRequest. * @memberof ibc.core.channel.v1 - * @classdesc Represents a QueryPacketAcknowledgementsResponse. - * @implements IQueryPacketAcknowledgementsResponse + * @classdesc Represents a QueryChannelsRequest. + * @implements IQueryChannelsRequest * @constructor - * @param {ibc.core.channel.v1.IQueryPacketAcknowledgementsResponse=} [properties] Properties to set + * @param {ibc.core.channel.v1.IQueryChannelsRequest=} [properties] Properties to set */ - function QueryPacketAcknowledgementsResponse(properties) { - this.acknowledgements = []; + function QueryChannelsRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -46103,92 +52548,63 @@ export const ibc = $root.ibc = (() => { } /** - * QueryPacketAcknowledgementsResponse acknowledgements. - * @member {Array.} acknowledgements - * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementsResponse - * @instance - */ - QueryPacketAcknowledgementsResponse.prototype.acknowledgements = $util.emptyArray; - - /** - * QueryPacketAcknowledgementsResponse pagination. - * @member {cosmos.base.query.v1beta1.IPageResponse|null|undefined} pagination - * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementsResponse - * @instance - */ - QueryPacketAcknowledgementsResponse.prototype.pagination = null; - - /** - * QueryPacketAcknowledgementsResponse height. - * @member {ibc.core.client.v1.IHeight|null|undefined} height - * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementsResponse + * QueryChannelsRequest pagination. + * @member {cosmos.base.query.v1beta1.IPageRequest|null|undefined} pagination + * @memberof ibc.core.channel.v1.QueryChannelsRequest * @instance */ - QueryPacketAcknowledgementsResponse.prototype.height = null; + QueryChannelsRequest.prototype.pagination = null; /** - * Encodes the specified QueryPacketAcknowledgementsResponse message. Does not implicitly {@link ibc.core.channel.v1.QueryPacketAcknowledgementsResponse.verify|verify} messages. + * Encodes the specified QueryChannelsRequest message. Does not implicitly {@link ibc.core.channel.v1.QueryChannelsRequest.verify|verify} messages. * @function encode - * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementsResponse + * @memberof ibc.core.channel.v1.QueryChannelsRequest * @static - * @param {ibc.core.channel.v1.IQueryPacketAcknowledgementsResponse} message QueryPacketAcknowledgementsResponse message or plain object to encode + * @param {ibc.core.channel.v1.IQueryChannelsRequest} message QueryChannelsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryPacketAcknowledgementsResponse.encode = function encode(message, writer) { + QueryChannelsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.acknowledgements != null && message.acknowledgements.length) - for (let i = 0; i < message.acknowledgements.length; ++i) - $root.ibc.core.channel.v1.PacketState.encode(message.acknowledgements[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.pagination != null && Object.hasOwnProperty.call(message, "pagination")) - $root.cosmos.base.query.v1beta1.PageResponse.encode(message.pagination, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.height != null && Object.hasOwnProperty.call(message, "height")) - $root.ibc.core.client.v1.Height.encode(message.height, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + $root.cosmos.base.query.v1beta1.PageRequest.encode(message.pagination, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified QueryPacketAcknowledgementsResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryPacketAcknowledgementsResponse.verify|verify} messages. + * Encodes the specified QueryChannelsRequest message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryChannelsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementsResponse + * @memberof ibc.core.channel.v1.QueryChannelsRequest * @static - * @param {ibc.core.channel.v1.IQueryPacketAcknowledgementsResponse} message QueryPacketAcknowledgementsResponse message or plain object to encode + * @param {ibc.core.channel.v1.IQueryChannelsRequest} message QueryChannelsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryPacketAcknowledgementsResponse.encodeDelimited = function encodeDelimited(message, writer) { + QueryChannelsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryPacketAcknowledgementsResponse message from the specified reader or buffer. + * Decodes a QueryChannelsRequest message from the specified reader or buffer. * @function decode - * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementsResponse + * @memberof ibc.core.channel.v1.QueryChannelsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.channel.v1.QueryPacketAcknowledgementsResponse} QueryPacketAcknowledgementsResponse + * @returns {ibc.core.channel.v1.QueryChannelsRequest} QueryChannelsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryPacketAcknowledgementsResponse.decode = function decode(reader, length) { + QueryChannelsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.QueryPacketAcknowledgementsResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.QueryChannelsRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.acknowledgements && message.acknowledgements.length)) - message.acknowledgements = []; - message.acknowledgements.push($root.ibc.core.channel.v1.PacketState.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = $root.cosmos.base.query.v1beta1.PageResponse.decode(reader, reader.uint32()); - break; - case 3: - message.height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); + message.pagination = $root.cosmos.base.query.v1beta1.PageRequest.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -46199,155 +52615,115 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a QueryPacketAcknowledgementsResponse message from the specified reader or buffer, length delimited. + * Decodes a QueryChannelsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementsResponse + * @memberof ibc.core.channel.v1.QueryChannelsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.channel.v1.QueryPacketAcknowledgementsResponse} QueryPacketAcknowledgementsResponse + * @returns {ibc.core.channel.v1.QueryChannelsRequest} QueryChannelsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryPacketAcknowledgementsResponse.decodeDelimited = function decodeDelimited(reader) { + QueryChannelsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryPacketAcknowledgementsResponse message. + * Verifies a QueryChannelsRequest message. * @function verify - * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementsResponse + * @memberof ibc.core.channel.v1.QueryChannelsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryPacketAcknowledgementsResponse.verify = function verify(message) { + QueryChannelsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.acknowledgements != null && message.hasOwnProperty("acknowledgements")) { - if (!Array.isArray(message.acknowledgements)) - return "acknowledgements: array expected"; - for (let i = 0; i < message.acknowledgements.length; ++i) { - let error = $root.ibc.core.channel.v1.PacketState.verify(message.acknowledgements[i]); - if (error) - return "acknowledgements." + error; - } - } if (message.pagination != null && message.hasOwnProperty("pagination")) { - let error = $root.cosmos.base.query.v1beta1.PageResponse.verify(message.pagination); + let error = $root.cosmos.base.query.v1beta1.PageRequest.verify(message.pagination); if (error) return "pagination." + error; } - if (message.height != null && message.hasOwnProperty("height")) { - let error = $root.ibc.core.client.v1.Height.verify(message.height); - if (error) - return "height." + error; - } return null; }; /** - * Creates a QueryPacketAcknowledgementsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a QueryChannelsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementsResponse + * @memberof ibc.core.channel.v1.QueryChannelsRequest * @static * @param {Object.} object Plain object - * @returns {ibc.core.channel.v1.QueryPacketAcknowledgementsResponse} QueryPacketAcknowledgementsResponse + * @returns {ibc.core.channel.v1.QueryChannelsRequest} QueryChannelsRequest */ - QueryPacketAcknowledgementsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.channel.v1.QueryPacketAcknowledgementsResponse) + QueryChannelsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.channel.v1.QueryChannelsRequest) return object; - let message = new $root.ibc.core.channel.v1.QueryPacketAcknowledgementsResponse(); - if (object.acknowledgements) { - if (!Array.isArray(object.acknowledgements)) - throw TypeError(".ibc.core.channel.v1.QueryPacketAcknowledgementsResponse.acknowledgements: array expected"); - message.acknowledgements = []; - for (let i = 0; i < object.acknowledgements.length; ++i) { - if (typeof object.acknowledgements[i] !== "object") - throw TypeError(".ibc.core.channel.v1.QueryPacketAcknowledgementsResponse.acknowledgements: object expected"); - message.acknowledgements[i] = $root.ibc.core.channel.v1.PacketState.fromObject(object.acknowledgements[i]); - } - } + let message = new $root.ibc.core.channel.v1.QueryChannelsRequest(); if (object.pagination != null) { if (typeof object.pagination !== "object") - throw TypeError(".ibc.core.channel.v1.QueryPacketAcknowledgementsResponse.pagination: object expected"); - message.pagination = $root.cosmos.base.query.v1beta1.PageResponse.fromObject(object.pagination); - } - if (object.height != null) { - if (typeof object.height !== "object") - throw TypeError(".ibc.core.channel.v1.QueryPacketAcknowledgementsResponse.height: object expected"); - message.height = $root.ibc.core.client.v1.Height.fromObject(object.height); + throw TypeError(".ibc.core.channel.v1.QueryChannelsRequest.pagination: object expected"); + message.pagination = $root.cosmos.base.query.v1beta1.PageRequest.fromObject(object.pagination); } return message; }; /** - * Creates a plain object from a QueryPacketAcknowledgementsResponse message. Also converts values to other types if specified. + * Creates a plain object from a QueryChannelsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementsResponse + * @memberof ibc.core.channel.v1.QueryChannelsRequest * @static - * @param {ibc.core.channel.v1.QueryPacketAcknowledgementsResponse} message QueryPacketAcknowledgementsResponse + * @param {ibc.core.channel.v1.QueryChannelsRequest} message QueryChannelsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryPacketAcknowledgementsResponse.toObject = function toObject(message, options) { + QueryChannelsRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.acknowledgements = []; - if (options.defaults) { + if (options.defaults) object.pagination = null; - object.height = null; - } - if (message.acknowledgements && message.acknowledgements.length) { - object.acknowledgements = []; - for (let j = 0; j < message.acknowledgements.length; ++j) - object.acknowledgements[j] = $root.ibc.core.channel.v1.PacketState.toObject(message.acknowledgements[j], options); - } if (message.pagination != null && message.hasOwnProperty("pagination")) - object.pagination = $root.cosmos.base.query.v1beta1.PageResponse.toObject(message.pagination, options); - if (message.height != null && message.hasOwnProperty("height")) - object.height = $root.ibc.core.client.v1.Height.toObject(message.height, options); + object.pagination = $root.cosmos.base.query.v1beta1.PageRequest.toObject(message.pagination, options); return object; }; /** - * Converts this QueryPacketAcknowledgementsResponse to JSON. + * Converts this QueryChannelsRequest to JSON. * @function toJSON - * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementsResponse + * @memberof ibc.core.channel.v1.QueryChannelsRequest * @instance * @returns {Object.} JSON object */ - QueryPacketAcknowledgementsResponse.prototype.toJSON = function toJSON() { + QueryChannelsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryPacketAcknowledgementsResponse; + return QueryChannelsRequest; })(); - v1.QueryUnreceivedPacketsRequest = (function() { + v1.QueryChannelsResponse = (function() { /** - * Properties of a QueryUnreceivedPacketsRequest. + * Properties of a QueryChannelsResponse. * @memberof ibc.core.channel.v1 - * @interface IQueryUnreceivedPacketsRequest - * @property {string|null} [port_id] QueryUnreceivedPacketsRequest port_id - * @property {string|null} [channel_id] QueryUnreceivedPacketsRequest channel_id - * @property {Array.|null} [packet_commitment_sequences] QueryUnreceivedPacketsRequest packet_commitment_sequences + * @interface IQueryChannelsResponse + * @property {Array.|null} [channels] QueryChannelsResponse channels + * @property {cosmos.base.query.v1beta1.IPageResponse|null} [pagination] QueryChannelsResponse pagination + * @property {ibc.core.client.v1.IHeight|null} [height] QueryChannelsResponse height */ /** - * Constructs a new QueryUnreceivedPacketsRequest. + * Constructs a new QueryChannelsResponse. * @memberof ibc.core.channel.v1 - * @classdesc Represents a QueryUnreceivedPacketsRequest. - * @implements IQueryUnreceivedPacketsRequest + * @classdesc Represents a QueryChannelsResponse. + * @implements IQueryChannelsResponse * @constructor - * @param {ibc.core.channel.v1.IQueryUnreceivedPacketsRequest=} [properties] Properties to set + * @param {ibc.core.channel.v1.IQueryChannelsResponse=} [properties] Properties to set */ - function QueryUnreceivedPacketsRequest(properties) { - this.packet_commitment_sequences = []; + function QueryChannelsResponse(properties) { + this.channels = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -46355,100 +52731,92 @@ export const ibc = $root.ibc = (() => { } /** - * QueryUnreceivedPacketsRequest port_id. - * @member {string} port_id - * @memberof ibc.core.channel.v1.QueryUnreceivedPacketsRequest + * QueryChannelsResponse channels. + * @member {Array.} channels + * @memberof ibc.core.channel.v1.QueryChannelsResponse * @instance */ - QueryUnreceivedPacketsRequest.prototype.port_id = ""; + QueryChannelsResponse.prototype.channels = $util.emptyArray; /** - * QueryUnreceivedPacketsRequest channel_id. - * @member {string} channel_id - * @memberof ibc.core.channel.v1.QueryUnreceivedPacketsRequest + * QueryChannelsResponse pagination. + * @member {cosmos.base.query.v1beta1.IPageResponse|null|undefined} pagination + * @memberof ibc.core.channel.v1.QueryChannelsResponse * @instance */ - QueryUnreceivedPacketsRequest.prototype.channel_id = ""; + QueryChannelsResponse.prototype.pagination = null; /** - * QueryUnreceivedPacketsRequest packet_commitment_sequences. - * @member {Array.} packet_commitment_sequences - * @memberof ibc.core.channel.v1.QueryUnreceivedPacketsRequest + * QueryChannelsResponse height. + * @member {ibc.core.client.v1.IHeight|null|undefined} height + * @memberof ibc.core.channel.v1.QueryChannelsResponse * @instance */ - QueryUnreceivedPacketsRequest.prototype.packet_commitment_sequences = $util.emptyArray; + QueryChannelsResponse.prototype.height = null; /** - * Encodes the specified QueryUnreceivedPacketsRequest message. Does not implicitly {@link ibc.core.channel.v1.QueryUnreceivedPacketsRequest.verify|verify} messages. + * Encodes the specified QueryChannelsResponse message. Does not implicitly {@link ibc.core.channel.v1.QueryChannelsResponse.verify|verify} messages. * @function encode - * @memberof ibc.core.channel.v1.QueryUnreceivedPacketsRequest + * @memberof ibc.core.channel.v1.QueryChannelsResponse * @static - * @param {ibc.core.channel.v1.IQueryUnreceivedPacketsRequest} message QueryUnreceivedPacketsRequest message or plain object to encode + * @param {ibc.core.channel.v1.IQueryChannelsResponse} message QueryChannelsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryUnreceivedPacketsRequest.encode = function encode(message, writer) { + QueryChannelsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.port_id != null && Object.hasOwnProperty.call(message, "port_id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.port_id); - if (message.channel_id != null && Object.hasOwnProperty.call(message, "channel_id")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.channel_id); - if (message.packet_commitment_sequences != null && message.packet_commitment_sequences.length) { - writer.uint32(/* id 3, wireType 2 =*/26).fork(); - for (let i = 0; i < message.packet_commitment_sequences.length; ++i) - writer.uint64(message.packet_commitment_sequences[i]); - writer.ldelim(); - } + if (message.channels != null && message.channels.length) + for (let i = 0; i < message.channels.length; ++i) + $root.ibc.core.channel.v1.IdentifiedChannel.encode(message.channels[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.pagination != null && Object.hasOwnProperty.call(message, "pagination")) + $root.cosmos.base.query.v1beta1.PageResponse.encode(message.pagination, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.height != null && Object.hasOwnProperty.call(message, "height")) + $root.ibc.core.client.v1.Height.encode(message.height, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified QueryUnreceivedPacketsRequest message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryUnreceivedPacketsRequest.verify|verify} messages. + * Encodes the specified QueryChannelsResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryChannelsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.channel.v1.QueryUnreceivedPacketsRequest + * @memberof ibc.core.channel.v1.QueryChannelsResponse * @static - * @param {ibc.core.channel.v1.IQueryUnreceivedPacketsRequest} message QueryUnreceivedPacketsRequest message or plain object to encode + * @param {ibc.core.channel.v1.IQueryChannelsResponse} message QueryChannelsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryUnreceivedPacketsRequest.encodeDelimited = function encodeDelimited(message, writer) { + QueryChannelsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryUnreceivedPacketsRequest message from the specified reader or buffer. + * Decodes a QueryChannelsResponse message from the specified reader or buffer. * @function decode - * @memberof ibc.core.channel.v1.QueryUnreceivedPacketsRequest + * @memberof ibc.core.channel.v1.QueryChannelsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.channel.v1.QueryUnreceivedPacketsRequest} QueryUnreceivedPacketsRequest + * @returns {ibc.core.channel.v1.QueryChannelsResponse} QueryChannelsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryUnreceivedPacketsRequest.decode = function decode(reader, length) { + QueryChannelsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.QueryUnreceivedPacketsRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.QueryChannelsResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.port_id = reader.string(); + if (!(message.channels && message.channels.length)) + message.channels = []; + message.channels.push($root.ibc.core.channel.v1.IdentifiedChannel.decode(reader, reader.uint32())); break; case 2: - message.channel_id = reader.string(); + message.pagination = $root.cosmos.base.query.v1beta1.PageResponse.decode(reader, reader.uint32()); break; case 3: - if (!(message.packet_commitment_sequences && message.packet_commitment_sequences.length)) - message.packet_commitment_sequences = []; - if ((tag & 7) === 2) { - let end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.packet_commitment_sequences.push(reader.uint64()); - } else - message.packet_commitment_sequences.push(reader.uint64()); + message.height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -46459,149 +52827,153 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a QueryUnreceivedPacketsRequest message from the specified reader or buffer, length delimited. + * Decodes a QueryChannelsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.channel.v1.QueryUnreceivedPacketsRequest + * @memberof ibc.core.channel.v1.QueryChannelsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.channel.v1.QueryUnreceivedPacketsRequest} QueryUnreceivedPacketsRequest + * @returns {ibc.core.channel.v1.QueryChannelsResponse} QueryChannelsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryUnreceivedPacketsRequest.decodeDelimited = function decodeDelimited(reader) { + QueryChannelsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryUnreceivedPacketsRequest message. + * Verifies a QueryChannelsResponse message. * @function verify - * @memberof ibc.core.channel.v1.QueryUnreceivedPacketsRequest + * @memberof ibc.core.channel.v1.QueryChannelsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryUnreceivedPacketsRequest.verify = function verify(message) { + QueryChannelsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.port_id != null && message.hasOwnProperty("port_id")) - if (!$util.isString(message.port_id)) - return "port_id: string expected"; - if (message.channel_id != null && message.hasOwnProperty("channel_id")) - if (!$util.isString(message.channel_id)) - return "channel_id: string expected"; - if (message.packet_commitment_sequences != null && message.hasOwnProperty("packet_commitment_sequences")) { - if (!Array.isArray(message.packet_commitment_sequences)) - return "packet_commitment_sequences: array expected"; - for (let i = 0; i < message.packet_commitment_sequences.length; ++i) - if (!$util.isInteger(message.packet_commitment_sequences[i]) && !(message.packet_commitment_sequences[i] && $util.isInteger(message.packet_commitment_sequences[i].low) && $util.isInteger(message.packet_commitment_sequences[i].high))) - return "packet_commitment_sequences: integer|Long[] expected"; + if (message.channels != null && message.hasOwnProperty("channels")) { + if (!Array.isArray(message.channels)) + return "channels: array expected"; + for (let i = 0; i < message.channels.length; ++i) { + let error = $root.ibc.core.channel.v1.IdentifiedChannel.verify(message.channels[i]); + if (error) + return "channels." + error; + } + } + if (message.pagination != null && message.hasOwnProperty("pagination")) { + let error = $root.cosmos.base.query.v1beta1.PageResponse.verify(message.pagination); + if (error) + return "pagination." + error; + } + if (message.height != null && message.hasOwnProperty("height")) { + let error = $root.ibc.core.client.v1.Height.verify(message.height); + if (error) + return "height." + error; } return null; }; /** - * Creates a QueryUnreceivedPacketsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a QueryChannelsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.channel.v1.QueryUnreceivedPacketsRequest + * @memberof ibc.core.channel.v1.QueryChannelsResponse * @static * @param {Object.} object Plain object - * @returns {ibc.core.channel.v1.QueryUnreceivedPacketsRequest} QueryUnreceivedPacketsRequest + * @returns {ibc.core.channel.v1.QueryChannelsResponse} QueryChannelsResponse */ - QueryUnreceivedPacketsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.channel.v1.QueryUnreceivedPacketsRequest) + QueryChannelsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.channel.v1.QueryChannelsResponse) return object; - let message = new $root.ibc.core.channel.v1.QueryUnreceivedPacketsRequest(); - if (object.port_id != null) - message.port_id = String(object.port_id); - if (object.channel_id != null) - message.channel_id = String(object.channel_id); - if (object.packet_commitment_sequences) { - if (!Array.isArray(object.packet_commitment_sequences)) - throw TypeError(".ibc.core.channel.v1.QueryUnreceivedPacketsRequest.packet_commitment_sequences: array expected"); - message.packet_commitment_sequences = []; - for (let i = 0; i < object.packet_commitment_sequences.length; ++i) - if ($util.Long) - (message.packet_commitment_sequences[i] = $util.Long.fromValue(object.packet_commitment_sequences[i])).unsigned = true; - else if (typeof object.packet_commitment_sequences[i] === "string") - message.packet_commitment_sequences[i] = parseInt(object.packet_commitment_sequences[i], 10); - else if (typeof object.packet_commitment_sequences[i] === "number") - message.packet_commitment_sequences[i] = object.packet_commitment_sequences[i]; - else if (typeof object.packet_commitment_sequences[i] === "object") - message.packet_commitment_sequences[i] = new $util.LongBits(object.packet_commitment_sequences[i].low >>> 0, object.packet_commitment_sequences[i].high >>> 0).toNumber(true); + let message = new $root.ibc.core.channel.v1.QueryChannelsResponse(); + if (object.channels) { + if (!Array.isArray(object.channels)) + throw TypeError(".ibc.core.channel.v1.QueryChannelsResponse.channels: array expected"); + message.channels = []; + for (let i = 0; i < object.channels.length; ++i) { + if (typeof object.channels[i] !== "object") + throw TypeError(".ibc.core.channel.v1.QueryChannelsResponse.channels: object expected"); + message.channels[i] = $root.ibc.core.channel.v1.IdentifiedChannel.fromObject(object.channels[i]); + } + } + if (object.pagination != null) { + if (typeof object.pagination !== "object") + throw TypeError(".ibc.core.channel.v1.QueryChannelsResponse.pagination: object expected"); + message.pagination = $root.cosmos.base.query.v1beta1.PageResponse.fromObject(object.pagination); + } + if (object.height != null) { + if (typeof object.height !== "object") + throw TypeError(".ibc.core.channel.v1.QueryChannelsResponse.height: object expected"); + message.height = $root.ibc.core.client.v1.Height.fromObject(object.height); } return message; }; /** - * Creates a plain object from a QueryUnreceivedPacketsRequest message. Also converts values to other types if specified. + * Creates a plain object from a QueryChannelsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.channel.v1.QueryUnreceivedPacketsRequest + * @memberof ibc.core.channel.v1.QueryChannelsResponse * @static - * @param {ibc.core.channel.v1.QueryUnreceivedPacketsRequest} message QueryUnreceivedPacketsRequest + * @param {ibc.core.channel.v1.QueryChannelsResponse} message QueryChannelsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryUnreceivedPacketsRequest.toObject = function toObject(message, options) { + QueryChannelsResponse.toObject = function toObject(message, options) { if (!options) options = {}; - let object = {}; - if (options.arrays || options.defaults) - object.packet_commitment_sequences = []; - if (options.defaults) { - object.port_id = ""; - object.channel_id = ""; - } - if (message.port_id != null && message.hasOwnProperty("port_id")) - object.port_id = message.port_id; - if (message.channel_id != null && message.hasOwnProperty("channel_id")) - object.channel_id = message.channel_id; - if (message.packet_commitment_sequences && message.packet_commitment_sequences.length) { - object.packet_commitment_sequences = []; - for (let j = 0; j < message.packet_commitment_sequences.length; ++j) - if (typeof message.packet_commitment_sequences[j] === "number") - object.packet_commitment_sequences[j] = options.longs === String ? String(message.packet_commitment_sequences[j]) : message.packet_commitment_sequences[j]; - else - object.packet_commitment_sequences[j] = options.longs === String ? $util.Long.prototype.toString.call(message.packet_commitment_sequences[j]) : options.longs === Number ? new $util.LongBits(message.packet_commitment_sequences[j].low >>> 0, message.packet_commitment_sequences[j].high >>> 0).toNumber(true) : message.packet_commitment_sequences[j]; + let object = {}; + if (options.arrays || options.defaults) + object.channels = []; + if (options.defaults) { + object.pagination = null; + object.height = null; + } + if (message.channels && message.channels.length) { + object.channels = []; + for (let j = 0; j < message.channels.length; ++j) + object.channels[j] = $root.ibc.core.channel.v1.IdentifiedChannel.toObject(message.channels[j], options); } + if (message.pagination != null && message.hasOwnProperty("pagination")) + object.pagination = $root.cosmos.base.query.v1beta1.PageResponse.toObject(message.pagination, options); + if (message.height != null && message.hasOwnProperty("height")) + object.height = $root.ibc.core.client.v1.Height.toObject(message.height, options); return object; }; /** - * Converts this QueryUnreceivedPacketsRequest to JSON. + * Converts this QueryChannelsResponse to JSON. * @function toJSON - * @memberof ibc.core.channel.v1.QueryUnreceivedPacketsRequest + * @memberof ibc.core.channel.v1.QueryChannelsResponse * @instance * @returns {Object.} JSON object */ - QueryUnreceivedPacketsRequest.prototype.toJSON = function toJSON() { + QueryChannelsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryUnreceivedPacketsRequest; + return QueryChannelsResponse; })(); - v1.QueryUnreceivedPacketsResponse = (function() { + v1.QueryConnectionChannelsRequest = (function() { /** - * Properties of a QueryUnreceivedPacketsResponse. + * Properties of a QueryConnectionChannelsRequest. * @memberof ibc.core.channel.v1 - * @interface IQueryUnreceivedPacketsResponse - * @property {Array.|null} [sequences] QueryUnreceivedPacketsResponse sequences - * @property {ibc.core.client.v1.IHeight|null} [height] QueryUnreceivedPacketsResponse height + * @interface IQueryConnectionChannelsRequest + * @property {string|null} [connection] QueryConnectionChannelsRequest connection + * @property {cosmos.base.query.v1beta1.IPageRequest|null} [pagination] QueryConnectionChannelsRequest pagination */ /** - * Constructs a new QueryUnreceivedPacketsResponse. + * Constructs a new QueryConnectionChannelsRequest. * @memberof ibc.core.channel.v1 - * @classdesc Represents a QueryUnreceivedPacketsResponse. - * @implements IQueryUnreceivedPacketsResponse + * @classdesc Represents a QueryConnectionChannelsRequest. + * @implements IQueryConnectionChannelsRequest * @constructor - * @param {ibc.core.channel.v1.IQueryUnreceivedPacketsResponse=} [properties] Properties to set + * @param {ibc.core.channel.v1.IQueryConnectionChannelsRequest=} [properties] Properties to set */ - function QueryUnreceivedPacketsResponse(properties) { - this.sequences = []; + function QueryConnectionChannelsRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -46609,87 +52981,76 @@ export const ibc = $root.ibc = (() => { } /** - * QueryUnreceivedPacketsResponse sequences. - * @member {Array.} sequences - * @memberof ibc.core.channel.v1.QueryUnreceivedPacketsResponse + * QueryConnectionChannelsRequest connection. + * @member {string} connection + * @memberof ibc.core.channel.v1.QueryConnectionChannelsRequest * @instance */ - QueryUnreceivedPacketsResponse.prototype.sequences = $util.emptyArray; + QueryConnectionChannelsRequest.prototype.connection = ""; /** - * QueryUnreceivedPacketsResponse height. - * @member {ibc.core.client.v1.IHeight|null|undefined} height - * @memberof ibc.core.channel.v1.QueryUnreceivedPacketsResponse + * QueryConnectionChannelsRequest pagination. + * @member {cosmos.base.query.v1beta1.IPageRequest|null|undefined} pagination + * @memberof ibc.core.channel.v1.QueryConnectionChannelsRequest * @instance */ - QueryUnreceivedPacketsResponse.prototype.height = null; + QueryConnectionChannelsRequest.prototype.pagination = null; /** - * Encodes the specified QueryUnreceivedPacketsResponse message. Does not implicitly {@link ibc.core.channel.v1.QueryUnreceivedPacketsResponse.verify|verify} messages. + * Encodes the specified QueryConnectionChannelsRequest message. Does not implicitly {@link ibc.core.channel.v1.QueryConnectionChannelsRequest.verify|verify} messages. * @function encode - * @memberof ibc.core.channel.v1.QueryUnreceivedPacketsResponse + * @memberof ibc.core.channel.v1.QueryConnectionChannelsRequest * @static - * @param {ibc.core.channel.v1.IQueryUnreceivedPacketsResponse} message QueryUnreceivedPacketsResponse message or plain object to encode + * @param {ibc.core.channel.v1.IQueryConnectionChannelsRequest} message QueryConnectionChannelsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryUnreceivedPacketsResponse.encode = function encode(message, writer) { + QueryConnectionChannelsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.sequences != null && message.sequences.length) { - writer.uint32(/* id 1, wireType 2 =*/10).fork(); - for (let i = 0; i < message.sequences.length; ++i) - writer.uint64(message.sequences[i]); - writer.ldelim(); - } - if (message.height != null && Object.hasOwnProperty.call(message, "height")) - $root.ibc.core.client.v1.Height.encode(message.height, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.connection != null && Object.hasOwnProperty.call(message, "connection")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.connection); + if (message.pagination != null && Object.hasOwnProperty.call(message, "pagination")) + $root.cosmos.base.query.v1beta1.PageRequest.encode(message.pagination, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified QueryUnreceivedPacketsResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryUnreceivedPacketsResponse.verify|verify} messages. + * Encodes the specified QueryConnectionChannelsRequest message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryConnectionChannelsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.channel.v1.QueryUnreceivedPacketsResponse + * @memberof ibc.core.channel.v1.QueryConnectionChannelsRequest * @static - * @param {ibc.core.channel.v1.IQueryUnreceivedPacketsResponse} message QueryUnreceivedPacketsResponse message or plain object to encode + * @param {ibc.core.channel.v1.IQueryConnectionChannelsRequest} message QueryConnectionChannelsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryUnreceivedPacketsResponse.encodeDelimited = function encodeDelimited(message, writer) { + QueryConnectionChannelsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryUnreceivedPacketsResponse message from the specified reader or buffer. + * Decodes a QueryConnectionChannelsRequest message from the specified reader or buffer. * @function decode - * @memberof ibc.core.channel.v1.QueryUnreceivedPacketsResponse + * @memberof ibc.core.channel.v1.QueryConnectionChannelsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.channel.v1.QueryUnreceivedPacketsResponse} QueryUnreceivedPacketsResponse + * @returns {ibc.core.channel.v1.QueryConnectionChannelsRequest} QueryConnectionChannelsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryUnreceivedPacketsResponse.decode = function decode(reader, length) { + QueryConnectionChannelsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.QueryUnreceivedPacketsResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.QueryConnectionChannelsRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.sequences && message.sequences.length)) - message.sequences = []; - if ((tag & 7) === 2) { - let end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.sequences.push(reader.uint64()); - } else - message.sequences.push(reader.uint64()); + message.connection = reader.string(); break; case 2: - message.height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); + message.pagination = $root.cosmos.base.query.v1beta1.PageRequest.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -46700,146 +53061,124 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a QueryUnreceivedPacketsResponse message from the specified reader or buffer, length delimited. + * Decodes a QueryConnectionChannelsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.channel.v1.QueryUnreceivedPacketsResponse + * @memberof ibc.core.channel.v1.QueryConnectionChannelsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.channel.v1.QueryUnreceivedPacketsResponse} QueryUnreceivedPacketsResponse + * @returns {ibc.core.channel.v1.QueryConnectionChannelsRequest} QueryConnectionChannelsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryUnreceivedPacketsResponse.decodeDelimited = function decodeDelimited(reader) { + QueryConnectionChannelsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryUnreceivedPacketsResponse message. + * Verifies a QueryConnectionChannelsRequest message. * @function verify - * @memberof ibc.core.channel.v1.QueryUnreceivedPacketsResponse + * @memberof ibc.core.channel.v1.QueryConnectionChannelsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryUnreceivedPacketsResponse.verify = function verify(message) { + QueryConnectionChannelsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.sequences != null && message.hasOwnProperty("sequences")) { - if (!Array.isArray(message.sequences)) - return "sequences: array expected"; - for (let i = 0; i < message.sequences.length; ++i) - if (!$util.isInteger(message.sequences[i]) && !(message.sequences[i] && $util.isInteger(message.sequences[i].low) && $util.isInteger(message.sequences[i].high))) - return "sequences: integer|Long[] expected"; - } - if (message.height != null && message.hasOwnProperty("height")) { - let error = $root.ibc.core.client.v1.Height.verify(message.height); + if (message.connection != null && message.hasOwnProperty("connection")) + if (!$util.isString(message.connection)) + return "connection: string expected"; + if (message.pagination != null && message.hasOwnProperty("pagination")) { + let error = $root.cosmos.base.query.v1beta1.PageRequest.verify(message.pagination); if (error) - return "height." + error; + return "pagination." + error; } return null; }; /** - * Creates a QueryUnreceivedPacketsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a QueryConnectionChannelsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.channel.v1.QueryUnreceivedPacketsResponse + * @memberof ibc.core.channel.v1.QueryConnectionChannelsRequest * @static * @param {Object.} object Plain object - * @returns {ibc.core.channel.v1.QueryUnreceivedPacketsResponse} QueryUnreceivedPacketsResponse + * @returns {ibc.core.channel.v1.QueryConnectionChannelsRequest} QueryConnectionChannelsRequest */ - QueryUnreceivedPacketsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.channel.v1.QueryUnreceivedPacketsResponse) + QueryConnectionChannelsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.channel.v1.QueryConnectionChannelsRequest) return object; - let message = new $root.ibc.core.channel.v1.QueryUnreceivedPacketsResponse(); - if (object.sequences) { - if (!Array.isArray(object.sequences)) - throw TypeError(".ibc.core.channel.v1.QueryUnreceivedPacketsResponse.sequences: array expected"); - message.sequences = []; - for (let i = 0; i < object.sequences.length; ++i) - if ($util.Long) - (message.sequences[i] = $util.Long.fromValue(object.sequences[i])).unsigned = true; - else if (typeof object.sequences[i] === "string") - message.sequences[i] = parseInt(object.sequences[i], 10); - else if (typeof object.sequences[i] === "number") - message.sequences[i] = object.sequences[i]; - else if (typeof object.sequences[i] === "object") - message.sequences[i] = new $util.LongBits(object.sequences[i].low >>> 0, object.sequences[i].high >>> 0).toNumber(true); - } - if (object.height != null) { - if (typeof object.height !== "object") - throw TypeError(".ibc.core.channel.v1.QueryUnreceivedPacketsResponse.height: object expected"); - message.height = $root.ibc.core.client.v1.Height.fromObject(object.height); + let message = new $root.ibc.core.channel.v1.QueryConnectionChannelsRequest(); + if (object.connection != null) + message.connection = String(object.connection); + if (object.pagination != null) { + if (typeof object.pagination !== "object") + throw TypeError(".ibc.core.channel.v1.QueryConnectionChannelsRequest.pagination: object expected"); + message.pagination = $root.cosmos.base.query.v1beta1.PageRequest.fromObject(object.pagination); } return message; }; /** - * Creates a plain object from a QueryUnreceivedPacketsResponse message. Also converts values to other types if specified. + * Creates a plain object from a QueryConnectionChannelsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.channel.v1.QueryUnreceivedPacketsResponse + * @memberof ibc.core.channel.v1.QueryConnectionChannelsRequest * @static - * @param {ibc.core.channel.v1.QueryUnreceivedPacketsResponse} message QueryUnreceivedPacketsResponse + * @param {ibc.core.channel.v1.QueryConnectionChannelsRequest} message QueryConnectionChannelsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryUnreceivedPacketsResponse.toObject = function toObject(message, options) { + QueryConnectionChannelsRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.sequences = []; - if (options.defaults) - object.height = null; - if (message.sequences && message.sequences.length) { - object.sequences = []; - for (let j = 0; j < message.sequences.length; ++j) - if (typeof message.sequences[j] === "number") - object.sequences[j] = options.longs === String ? String(message.sequences[j]) : message.sequences[j]; - else - object.sequences[j] = options.longs === String ? $util.Long.prototype.toString.call(message.sequences[j]) : options.longs === Number ? new $util.LongBits(message.sequences[j].low >>> 0, message.sequences[j].high >>> 0).toNumber(true) : message.sequences[j]; + if (options.defaults) { + object.connection = ""; + object.pagination = null; } - if (message.height != null && message.hasOwnProperty("height")) - object.height = $root.ibc.core.client.v1.Height.toObject(message.height, options); + if (message.connection != null && message.hasOwnProperty("connection")) + object.connection = message.connection; + if (message.pagination != null && message.hasOwnProperty("pagination")) + object.pagination = $root.cosmos.base.query.v1beta1.PageRequest.toObject(message.pagination, options); return object; }; /** - * Converts this QueryUnreceivedPacketsResponse to JSON. + * Converts this QueryConnectionChannelsRequest to JSON. * @function toJSON - * @memberof ibc.core.channel.v1.QueryUnreceivedPacketsResponse + * @memberof ibc.core.channel.v1.QueryConnectionChannelsRequest * @instance * @returns {Object.} JSON object */ - QueryUnreceivedPacketsResponse.prototype.toJSON = function toJSON() { + QueryConnectionChannelsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryUnreceivedPacketsResponse; + return QueryConnectionChannelsRequest; })(); - v1.QueryUnreceivedAcksRequest = (function() { + v1.QueryConnectionChannelsResponse = (function() { /** - * Properties of a QueryUnreceivedAcksRequest. + * Properties of a QueryConnectionChannelsResponse. * @memberof ibc.core.channel.v1 - * @interface IQueryUnreceivedAcksRequest - * @property {string|null} [port_id] QueryUnreceivedAcksRequest port_id - * @property {string|null} [channel_id] QueryUnreceivedAcksRequest channel_id - * @property {Array.|null} [packet_ack_sequences] QueryUnreceivedAcksRequest packet_ack_sequences + * @interface IQueryConnectionChannelsResponse + * @property {Array.|null} [channels] QueryConnectionChannelsResponse channels + * @property {cosmos.base.query.v1beta1.IPageResponse|null} [pagination] QueryConnectionChannelsResponse pagination + * @property {ibc.core.client.v1.IHeight|null} [height] QueryConnectionChannelsResponse height */ /** - * Constructs a new QueryUnreceivedAcksRequest. + * Constructs a new QueryConnectionChannelsResponse. * @memberof ibc.core.channel.v1 - * @classdesc Represents a QueryUnreceivedAcksRequest. - * @implements IQueryUnreceivedAcksRequest + * @classdesc Represents a QueryConnectionChannelsResponse. + * @implements IQueryConnectionChannelsResponse * @constructor - * @param {ibc.core.channel.v1.IQueryUnreceivedAcksRequest=} [properties] Properties to set + * @param {ibc.core.channel.v1.IQueryConnectionChannelsResponse=} [properties] Properties to set */ - function QueryUnreceivedAcksRequest(properties) { - this.packet_ack_sequences = []; + function QueryConnectionChannelsResponse(properties) { + this.channels = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -46847,100 +53186,92 @@ export const ibc = $root.ibc = (() => { } /** - * QueryUnreceivedAcksRequest port_id. - * @member {string} port_id - * @memberof ibc.core.channel.v1.QueryUnreceivedAcksRequest + * QueryConnectionChannelsResponse channels. + * @member {Array.} channels + * @memberof ibc.core.channel.v1.QueryConnectionChannelsResponse * @instance */ - QueryUnreceivedAcksRequest.prototype.port_id = ""; + QueryConnectionChannelsResponse.prototype.channels = $util.emptyArray; /** - * QueryUnreceivedAcksRequest channel_id. - * @member {string} channel_id - * @memberof ibc.core.channel.v1.QueryUnreceivedAcksRequest + * QueryConnectionChannelsResponse pagination. + * @member {cosmos.base.query.v1beta1.IPageResponse|null|undefined} pagination + * @memberof ibc.core.channel.v1.QueryConnectionChannelsResponse * @instance */ - QueryUnreceivedAcksRequest.prototype.channel_id = ""; + QueryConnectionChannelsResponse.prototype.pagination = null; /** - * QueryUnreceivedAcksRequest packet_ack_sequences. - * @member {Array.} packet_ack_sequences - * @memberof ibc.core.channel.v1.QueryUnreceivedAcksRequest + * QueryConnectionChannelsResponse height. + * @member {ibc.core.client.v1.IHeight|null|undefined} height + * @memberof ibc.core.channel.v1.QueryConnectionChannelsResponse * @instance */ - QueryUnreceivedAcksRequest.prototype.packet_ack_sequences = $util.emptyArray; + QueryConnectionChannelsResponse.prototype.height = null; /** - * Encodes the specified QueryUnreceivedAcksRequest message. Does not implicitly {@link ibc.core.channel.v1.QueryUnreceivedAcksRequest.verify|verify} messages. + * Encodes the specified QueryConnectionChannelsResponse message. Does not implicitly {@link ibc.core.channel.v1.QueryConnectionChannelsResponse.verify|verify} messages. * @function encode - * @memberof ibc.core.channel.v1.QueryUnreceivedAcksRequest + * @memberof ibc.core.channel.v1.QueryConnectionChannelsResponse * @static - * @param {ibc.core.channel.v1.IQueryUnreceivedAcksRequest} message QueryUnreceivedAcksRequest message or plain object to encode + * @param {ibc.core.channel.v1.IQueryConnectionChannelsResponse} message QueryConnectionChannelsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryUnreceivedAcksRequest.encode = function encode(message, writer) { + QueryConnectionChannelsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.port_id != null && Object.hasOwnProperty.call(message, "port_id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.port_id); - if (message.channel_id != null && Object.hasOwnProperty.call(message, "channel_id")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.channel_id); - if (message.packet_ack_sequences != null && message.packet_ack_sequences.length) { - writer.uint32(/* id 3, wireType 2 =*/26).fork(); - for (let i = 0; i < message.packet_ack_sequences.length; ++i) - writer.uint64(message.packet_ack_sequences[i]); - writer.ldelim(); - } + if (message.channels != null && message.channels.length) + for (let i = 0; i < message.channels.length; ++i) + $root.ibc.core.channel.v1.IdentifiedChannel.encode(message.channels[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.pagination != null && Object.hasOwnProperty.call(message, "pagination")) + $root.cosmos.base.query.v1beta1.PageResponse.encode(message.pagination, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.height != null && Object.hasOwnProperty.call(message, "height")) + $root.ibc.core.client.v1.Height.encode(message.height, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified QueryUnreceivedAcksRequest message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryUnreceivedAcksRequest.verify|verify} messages. + * Encodes the specified QueryConnectionChannelsResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryConnectionChannelsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.channel.v1.QueryUnreceivedAcksRequest + * @memberof ibc.core.channel.v1.QueryConnectionChannelsResponse * @static - * @param {ibc.core.channel.v1.IQueryUnreceivedAcksRequest} message QueryUnreceivedAcksRequest message or plain object to encode + * @param {ibc.core.channel.v1.IQueryConnectionChannelsResponse} message QueryConnectionChannelsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryUnreceivedAcksRequest.encodeDelimited = function encodeDelimited(message, writer) { + QueryConnectionChannelsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryUnreceivedAcksRequest message from the specified reader or buffer. + * Decodes a QueryConnectionChannelsResponse message from the specified reader or buffer. * @function decode - * @memberof ibc.core.channel.v1.QueryUnreceivedAcksRequest + * @memberof ibc.core.channel.v1.QueryConnectionChannelsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.channel.v1.QueryUnreceivedAcksRequest} QueryUnreceivedAcksRequest + * @returns {ibc.core.channel.v1.QueryConnectionChannelsResponse} QueryConnectionChannelsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryUnreceivedAcksRequest.decode = function decode(reader, length) { + QueryConnectionChannelsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.QueryUnreceivedAcksRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.QueryConnectionChannelsResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.port_id = reader.string(); + if (!(message.channels && message.channels.length)) + message.channels = []; + message.channels.push($root.ibc.core.channel.v1.IdentifiedChannel.decode(reader, reader.uint32())); break; case 2: - message.channel_id = reader.string(); + message.pagination = $root.cosmos.base.query.v1beta1.PageResponse.decode(reader, reader.uint32()); break; case 3: - if (!(message.packet_ack_sequences && message.packet_ack_sequences.length)) - message.packet_ack_sequences = []; - if ((tag & 7) === 2) { - let end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.packet_ack_sequences.push(reader.uint64()); - } else - message.packet_ack_sequences.push(reader.uint64()); + message.height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -46951,149 +53282,153 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a QueryUnreceivedAcksRequest message from the specified reader or buffer, length delimited. + * Decodes a QueryConnectionChannelsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.channel.v1.QueryUnreceivedAcksRequest + * @memberof ibc.core.channel.v1.QueryConnectionChannelsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.channel.v1.QueryUnreceivedAcksRequest} QueryUnreceivedAcksRequest + * @returns {ibc.core.channel.v1.QueryConnectionChannelsResponse} QueryConnectionChannelsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryUnreceivedAcksRequest.decodeDelimited = function decodeDelimited(reader) { + QueryConnectionChannelsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryUnreceivedAcksRequest message. + * Verifies a QueryConnectionChannelsResponse message. * @function verify - * @memberof ibc.core.channel.v1.QueryUnreceivedAcksRequest + * @memberof ibc.core.channel.v1.QueryConnectionChannelsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryUnreceivedAcksRequest.verify = function verify(message) { + QueryConnectionChannelsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.port_id != null && message.hasOwnProperty("port_id")) - if (!$util.isString(message.port_id)) - return "port_id: string expected"; - if (message.channel_id != null && message.hasOwnProperty("channel_id")) - if (!$util.isString(message.channel_id)) - return "channel_id: string expected"; - if (message.packet_ack_sequences != null && message.hasOwnProperty("packet_ack_sequences")) { - if (!Array.isArray(message.packet_ack_sequences)) - return "packet_ack_sequences: array expected"; - for (let i = 0; i < message.packet_ack_sequences.length; ++i) - if (!$util.isInteger(message.packet_ack_sequences[i]) && !(message.packet_ack_sequences[i] && $util.isInteger(message.packet_ack_sequences[i].low) && $util.isInteger(message.packet_ack_sequences[i].high))) - return "packet_ack_sequences: integer|Long[] expected"; + if (message.channels != null && message.hasOwnProperty("channels")) { + if (!Array.isArray(message.channels)) + return "channels: array expected"; + for (let i = 0; i < message.channels.length; ++i) { + let error = $root.ibc.core.channel.v1.IdentifiedChannel.verify(message.channels[i]); + if (error) + return "channels." + error; + } + } + if (message.pagination != null && message.hasOwnProperty("pagination")) { + let error = $root.cosmos.base.query.v1beta1.PageResponse.verify(message.pagination); + if (error) + return "pagination." + error; + } + if (message.height != null && message.hasOwnProperty("height")) { + let error = $root.ibc.core.client.v1.Height.verify(message.height); + if (error) + return "height." + error; } return null; }; /** - * Creates a QueryUnreceivedAcksRequest message from a plain object. Also converts values to their respective internal types. + * Creates a QueryConnectionChannelsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.channel.v1.QueryUnreceivedAcksRequest + * @memberof ibc.core.channel.v1.QueryConnectionChannelsResponse * @static * @param {Object.} object Plain object - * @returns {ibc.core.channel.v1.QueryUnreceivedAcksRequest} QueryUnreceivedAcksRequest + * @returns {ibc.core.channel.v1.QueryConnectionChannelsResponse} QueryConnectionChannelsResponse */ - QueryUnreceivedAcksRequest.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.channel.v1.QueryUnreceivedAcksRequest) + QueryConnectionChannelsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.channel.v1.QueryConnectionChannelsResponse) return object; - let message = new $root.ibc.core.channel.v1.QueryUnreceivedAcksRequest(); - if (object.port_id != null) - message.port_id = String(object.port_id); - if (object.channel_id != null) - message.channel_id = String(object.channel_id); - if (object.packet_ack_sequences) { - if (!Array.isArray(object.packet_ack_sequences)) - throw TypeError(".ibc.core.channel.v1.QueryUnreceivedAcksRequest.packet_ack_sequences: array expected"); - message.packet_ack_sequences = []; - for (let i = 0; i < object.packet_ack_sequences.length; ++i) - if ($util.Long) - (message.packet_ack_sequences[i] = $util.Long.fromValue(object.packet_ack_sequences[i])).unsigned = true; - else if (typeof object.packet_ack_sequences[i] === "string") - message.packet_ack_sequences[i] = parseInt(object.packet_ack_sequences[i], 10); - else if (typeof object.packet_ack_sequences[i] === "number") - message.packet_ack_sequences[i] = object.packet_ack_sequences[i]; - else if (typeof object.packet_ack_sequences[i] === "object") - message.packet_ack_sequences[i] = new $util.LongBits(object.packet_ack_sequences[i].low >>> 0, object.packet_ack_sequences[i].high >>> 0).toNumber(true); + let message = new $root.ibc.core.channel.v1.QueryConnectionChannelsResponse(); + if (object.channels) { + if (!Array.isArray(object.channels)) + throw TypeError(".ibc.core.channel.v1.QueryConnectionChannelsResponse.channels: array expected"); + message.channels = []; + for (let i = 0; i < object.channels.length; ++i) { + if (typeof object.channels[i] !== "object") + throw TypeError(".ibc.core.channel.v1.QueryConnectionChannelsResponse.channels: object expected"); + message.channels[i] = $root.ibc.core.channel.v1.IdentifiedChannel.fromObject(object.channels[i]); + } + } + if (object.pagination != null) { + if (typeof object.pagination !== "object") + throw TypeError(".ibc.core.channel.v1.QueryConnectionChannelsResponse.pagination: object expected"); + message.pagination = $root.cosmos.base.query.v1beta1.PageResponse.fromObject(object.pagination); + } + if (object.height != null) { + if (typeof object.height !== "object") + throw TypeError(".ibc.core.channel.v1.QueryConnectionChannelsResponse.height: object expected"); + message.height = $root.ibc.core.client.v1.Height.fromObject(object.height); } return message; }; /** - * Creates a plain object from a QueryUnreceivedAcksRequest message. Also converts values to other types if specified. + * Creates a plain object from a QueryConnectionChannelsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.channel.v1.QueryUnreceivedAcksRequest + * @memberof ibc.core.channel.v1.QueryConnectionChannelsResponse * @static - * @param {ibc.core.channel.v1.QueryUnreceivedAcksRequest} message QueryUnreceivedAcksRequest + * @param {ibc.core.channel.v1.QueryConnectionChannelsResponse} message QueryConnectionChannelsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryUnreceivedAcksRequest.toObject = function toObject(message, options) { + QueryConnectionChannelsResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) - object.packet_ack_sequences = []; + object.channels = []; if (options.defaults) { - object.port_id = ""; - object.channel_id = ""; + object.pagination = null; + object.height = null; } - if (message.port_id != null && message.hasOwnProperty("port_id")) - object.port_id = message.port_id; - if (message.channel_id != null && message.hasOwnProperty("channel_id")) - object.channel_id = message.channel_id; - if (message.packet_ack_sequences && message.packet_ack_sequences.length) { - object.packet_ack_sequences = []; - for (let j = 0; j < message.packet_ack_sequences.length; ++j) - if (typeof message.packet_ack_sequences[j] === "number") - object.packet_ack_sequences[j] = options.longs === String ? String(message.packet_ack_sequences[j]) : message.packet_ack_sequences[j]; - else - object.packet_ack_sequences[j] = options.longs === String ? $util.Long.prototype.toString.call(message.packet_ack_sequences[j]) : options.longs === Number ? new $util.LongBits(message.packet_ack_sequences[j].low >>> 0, message.packet_ack_sequences[j].high >>> 0).toNumber(true) : message.packet_ack_sequences[j]; + if (message.channels && message.channels.length) { + object.channels = []; + for (let j = 0; j < message.channels.length; ++j) + object.channels[j] = $root.ibc.core.channel.v1.IdentifiedChannel.toObject(message.channels[j], options); } + if (message.pagination != null && message.hasOwnProperty("pagination")) + object.pagination = $root.cosmos.base.query.v1beta1.PageResponse.toObject(message.pagination, options); + if (message.height != null && message.hasOwnProperty("height")) + object.height = $root.ibc.core.client.v1.Height.toObject(message.height, options); return object; }; /** - * Converts this QueryUnreceivedAcksRequest to JSON. + * Converts this QueryConnectionChannelsResponse to JSON. * @function toJSON - * @memberof ibc.core.channel.v1.QueryUnreceivedAcksRequest + * @memberof ibc.core.channel.v1.QueryConnectionChannelsResponse * @instance * @returns {Object.} JSON object */ - QueryUnreceivedAcksRequest.prototype.toJSON = function toJSON() { + QueryConnectionChannelsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryUnreceivedAcksRequest; + return QueryConnectionChannelsResponse; })(); - v1.QueryUnreceivedAcksResponse = (function() { + v1.QueryChannelClientStateRequest = (function() { /** - * Properties of a QueryUnreceivedAcksResponse. + * Properties of a QueryChannelClientStateRequest. * @memberof ibc.core.channel.v1 - * @interface IQueryUnreceivedAcksResponse - * @property {Array.|null} [sequences] QueryUnreceivedAcksResponse sequences - * @property {ibc.core.client.v1.IHeight|null} [height] QueryUnreceivedAcksResponse height + * @interface IQueryChannelClientStateRequest + * @property {string|null} [port_id] QueryChannelClientStateRequest port_id + * @property {string|null} [channel_id] QueryChannelClientStateRequest channel_id */ /** - * Constructs a new QueryUnreceivedAcksResponse. + * Constructs a new QueryChannelClientStateRequest. * @memberof ibc.core.channel.v1 - * @classdesc Represents a QueryUnreceivedAcksResponse. - * @implements IQueryUnreceivedAcksResponse + * @classdesc Represents a QueryChannelClientStateRequest. + * @implements IQueryChannelClientStateRequest * @constructor - * @param {ibc.core.channel.v1.IQueryUnreceivedAcksResponse=} [properties] Properties to set + * @param {ibc.core.channel.v1.IQueryChannelClientStateRequest=} [properties] Properties to set */ - function QueryUnreceivedAcksResponse(properties) { - this.sequences = []; + function QueryChannelClientStateRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -47101,87 +53436,76 @@ export const ibc = $root.ibc = (() => { } /** - * QueryUnreceivedAcksResponse sequences. - * @member {Array.} sequences - * @memberof ibc.core.channel.v1.QueryUnreceivedAcksResponse + * QueryChannelClientStateRequest port_id. + * @member {string} port_id + * @memberof ibc.core.channel.v1.QueryChannelClientStateRequest * @instance */ - QueryUnreceivedAcksResponse.prototype.sequences = $util.emptyArray; + QueryChannelClientStateRequest.prototype.port_id = ""; /** - * QueryUnreceivedAcksResponse height. - * @member {ibc.core.client.v1.IHeight|null|undefined} height - * @memberof ibc.core.channel.v1.QueryUnreceivedAcksResponse + * QueryChannelClientStateRequest channel_id. + * @member {string} channel_id + * @memberof ibc.core.channel.v1.QueryChannelClientStateRequest * @instance */ - QueryUnreceivedAcksResponse.prototype.height = null; + QueryChannelClientStateRequest.prototype.channel_id = ""; /** - * Encodes the specified QueryUnreceivedAcksResponse message. Does not implicitly {@link ibc.core.channel.v1.QueryUnreceivedAcksResponse.verify|verify} messages. + * Encodes the specified QueryChannelClientStateRequest message. Does not implicitly {@link ibc.core.channel.v1.QueryChannelClientStateRequest.verify|verify} messages. * @function encode - * @memberof ibc.core.channel.v1.QueryUnreceivedAcksResponse + * @memberof ibc.core.channel.v1.QueryChannelClientStateRequest * @static - * @param {ibc.core.channel.v1.IQueryUnreceivedAcksResponse} message QueryUnreceivedAcksResponse message or plain object to encode + * @param {ibc.core.channel.v1.IQueryChannelClientStateRequest} message QueryChannelClientStateRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryUnreceivedAcksResponse.encode = function encode(message, writer) { + QueryChannelClientStateRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.sequences != null && message.sequences.length) { - writer.uint32(/* id 1, wireType 2 =*/10).fork(); - for (let i = 0; i < message.sequences.length; ++i) - writer.uint64(message.sequences[i]); - writer.ldelim(); - } - if (message.height != null && Object.hasOwnProperty.call(message, "height")) - $root.ibc.core.client.v1.Height.encode(message.height, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.port_id != null && Object.hasOwnProperty.call(message, "port_id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.port_id); + if (message.channel_id != null && Object.hasOwnProperty.call(message, "channel_id")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.channel_id); return writer; }; /** - * Encodes the specified QueryUnreceivedAcksResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryUnreceivedAcksResponse.verify|verify} messages. + * Encodes the specified QueryChannelClientStateRequest message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryChannelClientStateRequest.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.channel.v1.QueryUnreceivedAcksResponse + * @memberof ibc.core.channel.v1.QueryChannelClientStateRequest * @static - * @param {ibc.core.channel.v1.IQueryUnreceivedAcksResponse} message QueryUnreceivedAcksResponse message or plain object to encode + * @param {ibc.core.channel.v1.IQueryChannelClientStateRequest} message QueryChannelClientStateRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryUnreceivedAcksResponse.encodeDelimited = function encodeDelimited(message, writer) { + QueryChannelClientStateRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryUnreceivedAcksResponse message from the specified reader or buffer. + * Decodes a QueryChannelClientStateRequest message from the specified reader or buffer. * @function decode - * @memberof ibc.core.channel.v1.QueryUnreceivedAcksResponse + * @memberof ibc.core.channel.v1.QueryChannelClientStateRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.channel.v1.QueryUnreceivedAcksResponse} QueryUnreceivedAcksResponse + * @returns {ibc.core.channel.v1.QueryChannelClientStateRequest} QueryChannelClientStateRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryUnreceivedAcksResponse.decode = function decode(reader, length) { + QueryChannelClientStateRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.QueryUnreceivedAcksResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.QueryChannelClientStateRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.sequences && message.sequences.length)) - message.sequences = []; - if ((tag & 7) === 2) { - let end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.sequences.push(reader.uint64()); - } else - message.sequences.push(reader.uint64()); + message.port_id = reader.string(); break; case 2: - message.height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); + message.channel_id = reader.string(); break; default: reader.skipType(tag & 7); @@ -47192,144 +53516,118 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a QueryUnreceivedAcksResponse message from the specified reader or buffer, length delimited. + * Decodes a QueryChannelClientStateRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.channel.v1.QueryUnreceivedAcksResponse + * @memberof ibc.core.channel.v1.QueryChannelClientStateRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.channel.v1.QueryUnreceivedAcksResponse} QueryUnreceivedAcksResponse + * @returns {ibc.core.channel.v1.QueryChannelClientStateRequest} QueryChannelClientStateRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryUnreceivedAcksResponse.decodeDelimited = function decodeDelimited(reader) { + QueryChannelClientStateRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryUnreceivedAcksResponse message. + * Verifies a QueryChannelClientStateRequest message. * @function verify - * @memberof ibc.core.channel.v1.QueryUnreceivedAcksResponse + * @memberof ibc.core.channel.v1.QueryChannelClientStateRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryUnreceivedAcksResponse.verify = function verify(message) { + QueryChannelClientStateRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.sequences != null && message.hasOwnProperty("sequences")) { - if (!Array.isArray(message.sequences)) - return "sequences: array expected"; - for (let i = 0; i < message.sequences.length; ++i) - if (!$util.isInteger(message.sequences[i]) && !(message.sequences[i] && $util.isInteger(message.sequences[i].low) && $util.isInteger(message.sequences[i].high))) - return "sequences: integer|Long[] expected"; - } - if (message.height != null && message.hasOwnProperty("height")) { - let error = $root.ibc.core.client.v1.Height.verify(message.height); - if (error) - return "height." + error; - } + if (message.port_id != null && message.hasOwnProperty("port_id")) + if (!$util.isString(message.port_id)) + return "port_id: string expected"; + if (message.channel_id != null && message.hasOwnProperty("channel_id")) + if (!$util.isString(message.channel_id)) + return "channel_id: string expected"; return null; }; /** - * Creates a QueryUnreceivedAcksResponse message from a plain object. Also converts values to their respective internal types. + * Creates a QueryChannelClientStateRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.channel.v1.QueryUnreceivedAcksResponse + * @memberof ibc.core.channel.v1.QueryChannelClientStateRequest * @static * @param {Object.} object Plain object - * @returns {ibc.core.channel.v1.QueryUnreceivedAcksResponse} QueryUnreceivedAcksResponse + * @returns {ibc.core.channel.v1.QueryChannelClientStateRequest} QueryChannelClientStateRequest */ - QueryUnreceivedAcksResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.channel.v1.QueryUnreceivedAcksResponse) + QueryChannelClientStateRequest.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.channel.v1.QueryChannelClientStateRequest) return object; - let message = new $root.ibc.core.channel.v1.QueryUnreceivedAcksResponse(); - if (object.sequences) { - if (!Array.isArray(object.sequences)) - throw TypeError(".ibc.core.channel.v1.QueryUnreceivedAcksResponse.sequences: array expected"); - message.sequences = []; - for (let i = 0; i < object.sequences.length; ++i) - if ($util.Long) - (message.sequences[i] = $util.Long.fromValue(object.sequences[i])).unsigned = true; - else if (typeof object.sequences[i] === "string") - message.sequences[i] = parseInt(object.sequences[i], 10); - else if (typeof object.sequences[i] === "number") - message.sequences[i] = object.sequences[i]; - else if (typeof object.sequences[i] === "object") - message.sequences[i] = new $util.LongBits(object.sequences[i].low >>> 0, object.sequences[i].high >>> 0).toNumber(true); - } - if (object.height != null) { - if (typeof object.height !== "object") - throw TypeError(".ibc.core.channel.v1.QueryUnreceivedAcksResponse.height: object expected"); - message.height = $root.ibc.core.client.v1.Height.fromObject(object.height); - } + let message = new $root.ibc.core.channel.v1.QueryChannelClientStateRequest(); + if (object.port_id != null) + message.port_id = String(object.port_id); + if (object.channel_id != null) + message.channel_id = String(object.channel_id); return message; }; /** - * Creates a plain object from a QueryUnreceivedAcksResponse message. Also converts values to other types if specified. + * Creates a plain object from a QueryChannelClientStateRequest message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.channel.v1.QueryUnreceivedAcksResponse + * @memberof ibc.core.channel.v1.QueryChannelClientStateRequest * @static - * @param {ibc.core.channel.v1.QueryUnreceivedAcksResponse} message QueryUnreceivedAcksResponse + * @param {ibc.core.channel.v1.QueryChannelClientStateRequest} message QueryChannelClientStateRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryUnreceivedAcksResponse.toObject = function toObject(message, options) { + QueryChannelClientStateRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.sequences = []; - if (options.defaults) - object.height = null; - if (message.sequences && message.sequences.length) { - object.sequences = []; - for (let j = 0; j < message.sequences.length; ++j) - if (typeof message.sequences[j] === "number") - object.sequences[j] = options.longs === String ? String(message.sequences[j]) : message.sequences[j]; - else - object.sequences[j] = options.longs === String ? $util.Long.prototype.toString.call(message.sequences[j]) : options.longs === Number ? new $util.LongBits(message.sequences[j].low >>> 0, message.sequences[j].high >>> 0).toNumber(true) : message.sequences[j]; + if (options.defaults) { + object.port_id = ""; + object.channel_id = ""; } - if (message.height != null && message.hasOwnProperty("height")) - object.height = $root.ibc.core.client.v1.Height.toObject(message.height, options); + if (message.port_id != null && message.hasOwnProperty("port_id")) + object.port_id = message.port_id; + if (message.channel_id != null && message.hasOwnProperty("channel_id")) + object.channel_id = message.channel_id; return object; }; /** - * Converts this QueryUnreceivedAcksResponse to JSON. + * Converts this QueryChannelClientStateRequest to JSON. * @function toJSON - * @memberof ibc.core.channel.v1.QueryUnreceivedAcksResponse + * @memberof ibc.core.channel.v1.QueryChannelClientStateRequest * @instance * @returns {Object.} JSON object */ - QueryUnreceivedAcksResponse.prototype.toJSON = function toJSON() { + QueryChannelClientStateRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryUnreceivedAcksResponse; + return QueryChannelClientStateRequest; })(); - v1.QueryNextSequenceReceiveRequest = (function() { + v1.QueryChannelClientStateResponse = (function() { /** - * Properties of a QueryNextSequenceReceiveRequest. + * Properties of a QueryChannelClientStateResponse. * @memberof ibc.core.channel.v1 - * @interface IQueryNextSequenceReceiveRequest - * @property {string|null} [port_id] QueryNextSequenceReceiveRequest port_id - * @property {string|null} [channel_id] QueryNextSequenceReceiveRequest channel_id + * @interface IQueryChannelClientStateResponse + * @property {ibc.core.client.v1.IIdentifiedClientState|null} [identified_client_state] QueryChannelClientStateResponse identified_client_state + * @property {Uint8Array|null} [proof] QueryChannelClientStateResponse proof + * @property {ibc.core.client.v1.IHeight|null} [proof_height] QueryChannelClientStateResponse proof_height */ /** - * Constructs a new QueryNextSequenceReceiveRequest. + * Constructs a new QueryChannelClientStateResponse. * @memberof ibc.core.channel.v1 - * @classdesc Represents a QueryNextSequenceReceiveRequest. - * @implements IQueryNextSequenceReceiveRequest + * @classdesc Represents a QueryChannelClientStateResponse. + * @implements IQueryChannelClientStateResponse * @constructor - * @param {ibc.core.channel.v1.IQueryNextSequenceReceiveRequest=} [properties] Properties to set + * @param {ibc.core.channel.v1.IQueryChannelClientStateResponse=} [properties] Properties to set */ - function QueryNextSequenceReceiveRequest(properties) { + function QueryChannelClientStateResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -47337,76 +53635,89 @@ export const ibc = $root.ibc = (() => { } /** - * QueryNextSequenceReceiveRequest port_id. - * @member {string} port_id - * @memberof ibc.core.channel.v1.QueryNextSequenceReceiveRequest + * QueryChannelClientStateResponse identified_client_state. + * @member {ibc.core.client.v1.IIdentifiedClientState|null|undefined} identified_client_state + * @memberof ibc.core.channel.v1.QueryChannelClientStateResponse * @instance */ - QueryNextSequenceReceiveRequest.prototype.port_id = ""; + QueryChannelClientStateResponse.prototype.identified_client_state = null; /** - * QueryNextSequenceReceiveRequest channel_id. - * @member {string} channel_id - * @memberof ibc.core.channel.v1.QueryNextSequenceReceiveRequest + * QueryChannelClientStateResponse proof. + * @member {Uint8Array} proof + * @memberof ibc.core.channel.v1.QueryChannelClientStateResponse * @instance */ - QueryNextSequenceReceiveRequest.prototype.channel_id = ""; + QueryChannelClientStateResponse.prototype.proof = $util.newBuffer([]); /** - * Encodes the specified QueryNextSequenceReceiveRequest message. Does not implicitly {@link ibc.core.channel.v1.QueryNextSequenceReceiveRequest.verify|verify} messages. + * QueryChannelClientStateResponse proof_height. + * @member {ibc.core.client.v1.IHeight|null|undefined} proof_height + * @memberof ibc.core.channel.v1.QueryChannelClientStateResponse + * @instance + */ + QueryChannelClientStateResponse.prototype.proof_height = null; + + /** + * Encodes the specified QueryChannelClientStateResponse message. Does not implicitly {@link ibc.core.channel.v1.QueryChannelClientStateResponse.verify|verify} messages. * @function encode - * @memberof ibc.core.channel.v1.QueryNextSequenceReceiveRequest + * @memberof ibc.core.channel.v1.QueryChannelClientStateResponse * @static - * @param {ibc.core.channel.v1.IQueryNextSequenceReceiveRequest} message QueryNextSequenceReceiveRequest message or plain object to encode + * @param {ibc.core.channel.v1.IQueryChannelClientStateResponse} message QueryChannelClientStateResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryNextSequenceReceiveRequest.encode = function encode(message, writer) { + QueryChannelClientStateResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.port_id != null && Object.hasOwnProperty.call(message, "port_id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.port_id); - if (message.channel_id != null && Object.hasOwnProperty.call(message, "channel_id")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.channel_id); + if (message.identified_client_state != null && Object.hasOwnProperty.call(message, "identified_client_state")) + $root.ibc.core.client.v1.IdentifiedClientState.encode(message.identified_client_state, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.proof != null && Object.hasOwnProperty.call(message, "proof")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.proof); + if (message.proof_height != null && Object.hasOwnProperty.call(message, "proof_height")) + $root.ibc.core.client.v1.Height.encode(message.proof_height, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified QueryNextSequenceReceiveRequest message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryNextSequenceReceiveRequest.verify|verify} messages. + * Encodes the specified QueryChannelClientStateResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryChannelClientStateResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.channel.v1.QueryNextSequenceReceiveRequest + * @memberof ibc.core.channel.v1.QueryChannelClientStateResponse * @static - * @param {ibc.core.channel.v1.IQueryNextSequenceReceiveRequest} message QueryNextSequenceReceiveRequest message or plain object to encode + * @param {ibc.core.channel.v1.IQueryChannelClientStateResponse} message QueryChannelClientStateResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryNextSequenceReceiveRequest.encodeDelimited = function encodeDelimited(message, writer) { + QueryChannelClientStateResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryNextSequenceReceiveRequest message from the specified reader or buffer. + * Decodes a QueryChannelClientStateResponse message from the specified reader or buffer. * @function decode - * @memberof ibc.core.channel.v1.QueryNextSequenceReceiveRequest + * @memberof ibc.core.channel.v1.QueryChannelClientStateResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.channel.v1.QueryNextSequenceReceiveRequest} QueryNextSequenceReceiveRequest + * @returns {ibc.core.channel.v1.QueryChannelClientStateResponse} QueryChannelClientStateResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryNextSequenceReceiveRequest.decode = function decode(reader, length) { + QueryChannelClientStateResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.QueryNextSequenceReceiveRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.QueryChannelClientStateResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.port_id = reader.string(); + message.identified_client_state = $root.ibc.core.client.v1.IdentifiedClientState.decode(reader, reader.uint32()); break; case 2: - message.channel_id = reader.string(); + message.proof = reader.bytes(); + break; + case 3: + message.proof_height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -47417,118 +53728,146 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a QueryNextSequenceReceiveRequest message from the specified reader or buffer, length delimited. + * Decodes a QueryChannelClientStateResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.channel.v1.QueryNextSequenceReceiveRequest + * @memberof ibc.core.channel.v1.QueryChannelClientStateResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.channel.v1.QueryNextSequenceReceiveRequest} QueryNextSequenceReceiveRequest + * @returns {ibc.core.channel.v1.QueryChannelClientStateResponse} QueryChannelClientStateResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryNextSequenceReceiveRequest.decodeDelimited = function decodeDelimited(reader) { + QueryChannelClientStateResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryNextSequenceReceiveRequest message. + * Verifies a QueryChannelClientStateResponse message. * @function verify - * @memberof ibc.core.channel.v1.QueryNextSequenceReceiveRequest + * @memberof ibc.core.channel.v1.QueryChannelClientStateResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryNextSequenceReceiveRequest.verify = function verify(message) { + QueryChannelClientStateResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.port_id != null && message.hasOwnProperty("port_id")) - if (!$util.isString(message.port_id)) - return "port_id: string expected"; - if (message.channel_id != null && message.hasOwnProperty("channel_id")) - if (!$util.isString(message.channel_id)) - return "channel_id: string expected"; + if (message.identified_client_state != null && message.hasOwnProperty("identified_client_state")) { + let error = $root.ibc.core.client.v1.IdentifiedClientState.verify(message.identified_client_state); + if (error) + return "identified_client_state." + error; + } + if (message.proof != null && message.hasOwnProperty("proof")) + if (!(message.proof && typeof message.proof.length === "number" || $util.isString(message.proof))) + return "proof: buffer expected"; + if (message.proof_height != null && message.hasOwnProperty("proof_height")) { + let error = $root.ibc.core.client.v1.Height.verify(message.proof_height); + if (error) + return "proof_height." + error; + } return null; }; /** - * Creates a QueryNextSequenceReceiveRequest message from a plain object. Also converts values to their respective internal types. + * Creates a QueryChannelClientStateResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.channel.v1.QueryNextSequenceReceiveRequest + * @memberof ibc.core.channel.v1.QueryChannelClientStateResponse * @static * @param {Object.} object Plain object - * @returns {ibc.core.channel.v1.QueryNextSequenceReceiveRequest} QueryNextSequenceReceiveRequest + * @returns {ibc.core.channel.v1.QueryChannelClientStateResponse} QueryChannelClientStateResponse */ - QueryNextSequenceReceiveRequest.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.channel.v1.QueryNextSequenceReceiveRequest) + QueryChannelClientStateResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.channel.v1.QueryChannelClientStateResponse) return object; - let message = new $root.ibc.core.channel.v1.QueryNextSequenceReceiveRequest(); - if (object.port_id != null) - message.port_id = String(object.port_id); - if (object.channel_id != null) - message.channel_id = String(object.channel_id); + let message = new $root.ibc.core.channel.v1.QueryChannelClientStateResponse(); + if (object.identified_client_state != null) { + if (typeof object.identified_client_state !== "object") + throw TypeError(".ibc.core.channel.v1.QueryChannelClientStateResponse.identified_client_state: object expected"); + message.identified_client_state = $root.ibc.core.client.v1.IdentifiedClientState.fromObject(object.identified_client_state); + } + if (object.proof != null) + if (typeof object.proof === "string") + $util.base64.decode(object.proof, message.proof = $util.newBuffer($util.base64.length(object.proof)), 0); + else if (object.proof.length) + message.proof = object.proof; + if (object.proof_height != null) { + if (typeof object.proof_height !== "object") + throw TypeError(".ibc.core.channel.v1.QueryChannelClientStateResponse.proof_height: object expected"); + message.proof_height = $root.ibc.core.client.v1.Height.fromObject(object.proof_height); + } return message; }; /** - * Creates a plain object from a QueryNextSequenceReceiveRequest message. Also converts values to other types if specified. + * Creates a plain object from a QueryChannelClientStateResponse message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.channel.v1.QueryNextSequenceReceiveRequest + * @memberof ibc.core.channel.v1.QueryChannelClientStateResponse * @static - * @param {ibc.core.channel.v1.QueryNextSequenceReceiveRequest} message QueryNextSequenceReceiveRequest + * @param {ibc.core.channel.v1.QueryChannelClientStateResponse} message QueryChannelClientStateResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryNextSequenceReceiveRequest.toObject = function toObject(message, options) { + QueryChannelClientStateResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - object.port_id = ""; - object.channel_id = ""; + object.identified_client_state = null; + if (options.bytes === String) + object.proof = ""; + else { + object.proof = []; + if (options.bytes !== Array) + object.proof = $util.newBuffer(object.proof); + } + object.proof_height = null; } - if (message.port_id != null && message.hasOwnProperty("port_id")) - object.port_id = message.port_id; - if (message.channel_id != null && message.hasOwnProperty("channel_id")) - object.channel_id = message.channel_id; + if (message.identified_client_state != null && message.hasOwnProperty("identified_client_state")) + object.identified_client_state = $root.ibc.core.client.v1.IdentifiedClientState.toObject(message.identified_client_state, options); + if (message.proof != null && message.hasOwnProperty("proof")) + object.proof = options.bytes === String ? $util.base64.encode(message.proof, 0, message.proof.length) : options.bytes === Array ? Array.prototype.slice.call(message.proof) : message.proof; + if (message.proof_height != null && message.hasOwnProperty("proof_height")) + object.proof_height = $root.ibc.core.client.v1.Height.toObject(message.proof_height, options); return object; }; /** - * Converts this QueryNextSequenceReceiveRequest to JSON. + * Converts this QueryChannelClientStateResponse to JSON. * @function toJSON - * @memberof ibc.core.channel.v1.QueryNextSequenceReceiveRequest + * @memberof ibc.core.channel.v1.QueryChannelClientStateResponse * @instance * @returns {Object.} JSON object */ - QueryNextSequenceReceiveRequest.prototype.toJSON = function toJSON() { + QueryChannelClientStateResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryNextSequenceReceiveRequest; + return QueryChannelClientStateResponse; })(); - v1.QueryNextSequenceReceiveResponse = (function() { + v1.QueryChannelConsensusStateRequest = (function() { /** - * Properties of a QueryNextSequenceReceiveResponse. + * Properties of a QueryChannelConsensusStateRequest. * @memberof ibc.core.channel.v1 - * @interface IQueryNextSequenceReceiveResponse - * @property {Long|null} [next_sequence_receive] QueryNextSequenceReceiveResponse next_sequence_receive - * @property {Uint8Array|null} [proof] QueryNextSequenceReceiveResponse proof - * @property {ibc.core.client.v1.IHeight|null} [proof_height] QueryNextSequenceReceiveResponse proof_height + * @interface IQueryChannelConsensusStateRequest + * @property {string|null} [port_id] QueryChannelConsensusStateRequest port_id + * @property {string|null} [channel_id] QueryChannelConsensusStateRequest channel_id + * @property {Long|null} [revision_number] QueryChannelConsensusStateRequest revision_number + * @property {Long|null} [revision_height] QueryChannelConsensusStateRequest revision_height */ /** - * Constructs a new QueryNextSequenceReceiveResponse. + * Constructs a new QueryChannelConsensusStateRequest. * @memberof ibc.core.channel.v1 - * @classdesc Represents a QueryNextSequenceReceiveResponse. - * @implements IQueryNextSequenceReceiveResponse + * @classdesc Represents a QueryChannelConsensusStateRequest. + * @implements IQueryChannelConsensusStateRequest * @constructor - * @param {ibc.core.channel.v1.IQueryNextSequenceReceiveResponse=} [properties] Properties to set + * @param {ibc.core.channel.v1.IQueryChannelConsensusStateRequest=} [properties] Properties to set */ - function QueryNextSequenceReceiveResponse(properties) { + function QueryChannelConsensusStateRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -47536,89 +53875,102 @@ export const ibc = $root.ibc = (() => { } /** - * QueryNextSequenceReceiveResponse next_sequence_receive. - * @member {Long} next_sequence_receive - * @memberof ibc.core.channel.v1.QueryNextSequenceReceiveResponse + * QueryChannelConsensusStateRequest port_id. + * @member {string} port_id + * @memberof ibc.core.channel.v1.QueryChannelConsensusStateRequest * @instance */ - QueryNextSequenceReceiveResponse.prototype.next_sequence_receive = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + QueryChannelConsensusStateRequest.prototype.port_id = ""; /** - * QueryNextSequenceReceiveResponse proof. - * @member {Uint8Array} proof - * @memberof ibc.core.channel.v1.QueryNextSequenceReceiveResponse + * QueryChannelConsensusStateRequest channel_id. + * @member {string} channel_id + * @memberof ibc.core.channel.v1.QueryChannelConsensusStateRequest * @instance */ - QueryNextSequenceReceiveResponse.prototype.proof = $util.newBuffer([]); + QueryChannelConsensusStateRequest.prototype.channel_id = ""; /** - * QueryNextSequenceReceiveResponse proof_height. - * @member {ibc.core.client.v1.IHeight|null|undefined} proof_height - * @memberof ibc.core.channel.v1.QueryNextSequenceReceiveResponse + * QueryChannelConsensusStateRequest revision_number. + * @member {Long} revision_number + * @memberof ibc.core.channel.v1.QueryChannelConsensusStateRequest * @instance */ - QueryNextSequenceReceiveResponse.prototype.proof_height = null; + QueryChannelConsensusStateRequest.prototype.revision_number = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** - * Encodes the specified QueryNextSequenceReceiveResponse message. Does not implicitly {@link ibc.core.channel.v1.QueryNextSequenceReceiveResponse.verify|verify} messages. + * QueryChannelConsensusStateRequest revision_height. + * @member {Long} revision_height + * @memberof ibc.core.channel.v1.QueryChannelConsensusStateRequest + * @instance + */ + QueryChannelConsensusStateRequest.prototype.revision_height = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + + /** + * Encodes the specified QueryChannelConsensusStateRequest message. Does not implicitly {@link ibc.core.channel.v1.QueryChannelConsensusStateRequest.verify|verify} messages. * @function encode - * @memberof ibc.core.channel.v1.QueryNextSequenceReceiveResponse + * @memberof ibc.core.channel.v1.QueryChannelConsensusStateRequest * @static - * @param {ibc.core.channel.v1.IQueryNextSequenceReceiveResponse} message QueryNextSequenceReceiveResponse message or plain object to encode + * @param {ibc.core.channel.v1.IQueryChannelConsensusStateRequest} message QueryChannelConsensusStateRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryNextSequenceReceiveResponse.encode = function encode(message, writer) { + QueryChannelConsensusStateRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.next_sequence_receive != null && Object.hasOwnProperty.call(message, "next_sequence_receive")) - writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.next_sequence_receive); - if (message.proof != null && Object.hasOwnProperty.call(message, "proof")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.proof); - if (message.proof_height != null && Object.hasOwnProperty.call(message, "proof_height")) - $root.ibc.core.client.v1.Height.encode(message.proof_height, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.port_id != null && Object.hasOwnProperty.call(message, "port_id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.port_id); + if (message.channel_id != null && Object.hasOwnProperty.call(message, "channel_id")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.channel_id); + if (message.revision_number != null && Object.hasOwnProperty.call(message, "revision_number")) + writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.revision_number); + if (message.revision_height != null && Object.hasOwnProperty.call(message, "revision_height")) + writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.revision_height); return writer; }; /** - * Encodes the specified QueryNextSequenceReceiveResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryNextSequenceReceiveResponse.verify|verify} messages. + * Encodes the specified QueryChannelConsensusStateRequest message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryChannelConsensusStateRequest.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.channel.v1.QueryNextSequenceReceiveResponse + * @memberof ibc.core.channel.v1.QueryChannelConsensusStateRequest * @static - * @param {ibc.core.channel.v1.IQueryNextSequenceReceiveResponse} message QueryNextSequenceReceiveResponse message or plain object to encode + * @param {ibc.core.channel.v1.IQueryChannelConsensusStateRequest} message QueryChannelConsensusStateRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryNextSequenceReceiveResponse.encodeDelimited = function encodeDelimited(message, writer) { + QueryChannelConsensusStateRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryNextSequenceReceiveResponse message from the specified reader or buffer. + * Decodes a QueryChannelConsensusStateRequest message from the specified reader or buffer. * @function decode - * @memberof ibc.core.channel.v1.QueryNextSequenceReceiveResponse + * @memberof ibc.core.channel.v1.QueryChannelConsensusStateRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.channel.v1.QueryNextSequenceReceiveResponse} QueryNextSequenceReceiveResponse + * @returns {ibc.core.channel.v1.QueryChannelConsensusStateRequest} QueryChannelConsensusStateRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryNextSequenceReceiveResponse.decode = function decode(reader, length) { + QueryChannelConsensusStateRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.QueryNextSequenceReceiveResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.QueryChannelConsensusStateRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.next_sequence_receive = reader.uint64(); + message.port_id = reader.string(); break; case 2: - message.proof = reader.bytes(); + message.channel_id = reader.string(); break; case 3: - message.proof_height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); + message.revision_number = reader.uint64(); + break; + case 4: + message.revision_height = reader.uint64(); break; default: reader.skipType(tag & 7); @@ -47629,166 +53981,163 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a QueryNextSequenceReceiveResponse message from the specified reader or buffer, length delimited. + * Decodes a QueryChannelConsensusStateRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.channel.v1.QueryNextSequenceReceiveResponse + * @memberof ibc.core.channel.v1.QueryChannelConsensusStateRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.channel.v1.QueryNextSequenceReceiveResponse} QueryNextSequenceReceiveResponse + * @returns {ibc.core.channel.v1.QueryChannelConsensusStateRequest} QueryChannelConsensusStateRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryNextSequenceReceiveResponse.decodeDelimited = function decodeDelimited(reader) { + QueryChannelConsensusStateRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryNextSequenceReceiveResponse message. + * Verifies a QueryChannelConsensusStateRequest message. * @function verify - * @memberof ibc.core.channel.v1.QueryNextSequenceReceiveResponse + * @memberof ibc.core.channel.v1.QueryChannelConsensusStateRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryNextSequenceReceiveResponse.verify = function verify(message) { + QueryChannelConsensusStateRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.next_sequence_receive != null && message.hasOwnProperty("next_sequence_receive")) - if (!$util.isInteger(message.next_sequence_receive) && !(message.next_sequence_receive && $util.isInteger(message.next_sequence_receive.low) && $util.isInteger(message.next_sequence_receive.high))) - return "next_sequence_receive: integer|Long expected"; - if (message.proof != null && message.hasOwnProperty("proof")) - if (!(message.proof && typeof message.proof.length === "number" || $util.isString(message.proof))) - return "proof: buffer expected"; - if (message.proof_height != null && message.hasOwnProperty("proof_height")) { - let error = $root.ibc.core.client.v1.Height.verify(message.proof_height); - if (error) - return "proof_height." + error; - } + if (message.port_id != null && message.hasOwnProperty("port_id")) + if (!$util.isString(message.port_id)) + return "port_id: string expected"; + if (message.channel_id != null && message.hasOwnProperty("channel_id")) + if (!$util.isString(message.channel_id)) + return "channel_id: string expected"; + if (message.revision_number != null && message.hasOwnProperty("revision_number")) + if (!$util.isInteger(message.revision_number) && !(message.revision_number && $util.isInteger(message.revision_number.low) && $util.isInteger(message.revision_number.high))) + return "revision_number: integer|Long expected"; + if (message.revision_height != null && message.hasOwnProperty("revision_height")) + if (!$util.isInteger(message.revision_height) && !(message.revision_height && $util.isInteger(message.revision_height.low) && $util.isInteger(message.revision_height.high))) + return "revision_height: integer|Long expected"; return null; }; /** - * Creates a QueryNextSequenceReceiveResponse message from a plain object. Also converts values to their respective internal types. + * Creates a QueryChannelConsensusStateRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.channel.v1.QueryNextSequenceReceiveResponse + * @memberof ibc.core.channel.v1.QueryChannelConsensusStateRequest * @static * @param {Object.} object Plain object - * @returns {ibc.core.channel.v1.QueryNextSequenceReceiveResponse} QueryNextSequenceReceiveResponse + * @returns {ibc.core.channel.v1.QueryChannelConsensusStateRequest} QueryChannelConsensusStateRequest */ - QueryNextSequenceReceiveResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.channel.v1.QueryNextSequenceReceiveResponse) + QueryChannelConsensusStateRequest.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.channel.v1.QueryChannelConsensusStateRequest) return object; - let message = new $root.ibc.core.channel.v1.QueryNextSequenceReceiveResponse(); - if (object.next_sequence_receive != null) + let message = new $root.ibc.core.channel.v1.QueryChannelConsensusStateRequest(); + if (object.port_id != null) + message.port_id = String(object.port_id); + if (object.channel_id != null) + message.channel_id = String(object.channel_id); + if (object.revision_number != null) if ($util.Long) - (message.next_sequence_receive = $util.Long.fromValue(object.next_sequence_receive)).unsigned = true; - else if (typeof object.next_sequence_receive === "string") - message.next_sequence_receive = parseInt(object.next_sequence_receive, 10); - else if (typeof object.next_sequence_receive === "number") - message.next_sequence_receive = object.next_sequence_receive; - else if (typeof object.next_sequence_receive === "object") - message.next_sequence_receive = new $util.LongBits(object.next_sequence_receive.low >>> 0, object.next_sequence_receive.high >>> 0).toNumber(true); - if (object.proof != null) - if (typeof object.proof === "string") - $util.base64.decode(object.proof, message.proof = $util.newBuffer($util.base64.length(object.proof)), 0); - else if (object.proof.length) - message.proof = object.proof; - if (object.proof_height != null) { - if (typeof object.proof_height !== "object") - throw TypeError(".ibc.core.channel.v1.QueryNextSequenceReceiveResponse.proof_height: object expected"); - message.proof_height = $root.ibc.core.client.v1.Height.fromObject(object.proof_height); - } + (message.revision_number = $util.Long.fromValue(object.revision_number)).unsigned = true; + else if (typeof object.revision_number === "string") + message.revision_number = parseInt(object.revision_number, 10); + else if (typeof object.revision_number === "number") + message.revision_number = object.revision_number; + else if (typeof object.revision_number === "object") + message.revision_number = new $util.LongBits(object.revision_number.low >>> 0, object.revision_number.high >>> 0).toNumber(true); + if (object.revision_height != null) + if ($util.Long) + (message.revision_height = $util.Long.fromValue(object.revision_height)).unsigned = true; + else if (typeof object.revision_height === "string") + message.revision_height = parseInt(object.revision_height, 10); + else if (typeof object.revision_height === "number") + message.revision_height = object.revision_height; + else if (typeof object.revision_height === "object") + message.revision_height = new $util.LongBits(object.revision_height.low >>> 0, object.revision_height.high >>> 0).toNumber(true); return message; }; /** - * Creates a plain object from a QueryNextSequenceReceiveResponse message. Also converts values to other types if specified. + * Creates a plain object from a QueryChannelConsensusStateRequest message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.channel.v1.QueryNextSequenceReceiveResponse + * @memberof ibc.core.channel.v1.QueryChannelConsensusStateRequest * @static - * @param {ibc.core.channel.v1.QueryNextSequenceReceiveResponse} message QueryNextSequenceReceiveResponse + * @param {ibc.core.channel.v1.QueryChannelConsensusStateRequest} message QueryChannelConsensusStateRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryNextSequenceReceiveResponse.toObject = function toObject(message, options) { + QueryChannelConsensusStateRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { + object.port_id = ""; + object.channel_id = ""; if ($util.Long) { let long = new $util.Long(0, 0, true); - object.next_sequence_receive = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + object.revision_number = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.next_sequence_receive = options.longs === String ? "0" : 0; - if (options.bytes === String) - object.proof = ""; - else { - object.proof = []; - if (options.bytes !== Array) - object.proof = $util.newBuffer(object.proof); - } - object.proof_height = null; + object.revision_number = options.longs === String ? "0" : 0; + if ($util.Long) { + let long = new $util.Long(0, 0, true); + object.revision_height = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.revision_height = options.longs === String ? "0" : 0; } - if (message.next_sequence_receive != null && message.hasOwnProperty("next_sequence_receive")) - if (typeof message.next_sequence_receive === "number") - object.next_sequence_receive = options.longs === String ? String(message.next_sequence_receive) : message.next_sequence_receive; + if (message.port_id != null && message.hasOwnProperty("port_id")) + object.port_id = message.port_id; + if (message.channel_id != null && message.hasOwnProperty("channel_id")) + object.channel_id = message.channel_id; + if (message.revision_number != null && message.hasOwnProperty("revision_number")) + if (typeof message.revision_number === "number") + object.revision_number = options.longs === String ? String(message.revision_number) : message.revision_number; else - object.next_sequence_receive = options.longs === String ? $util.Long.prototype.toString.call(message.next_sequence_receive) : options.longs === Number ? new $util.LongBits(message.next_sequence_receive.low >>> 0, message.next_sequence_receive.high >>> 0).toNumber(true) : message.next_sequence_receive; - if (message.proof != null && message.hasOwnProperty("proof")) - object.proof = options.bytes === String ? $util.base64.encode(message.proof, 0, message.proof.length) : options.bytes === Array ? Array.prototype.slice.call(message.proof) : message.proof; - if (message.proof_height != null && message.hasOwnProperty("proof_height")) - object.proof_height = $root.ibc.core.client.v1.Height.toObject(message.proof_height, options); + object.revision_number = options.longs === String ? $util.Long.prototype.toString.call(message.revision_number) : options.longs === Number ? new $util.LongBits(message.revision_number.low >>> 0, message.revision_number.high >>> 0).toNumber(true) : message.revision_number; + if (message.revision_height != null && message.hasOwnProperty("revision_height")) + if (typeof message.revision_height === "number") + object.revision_height = options.longs === String ? String(message.revision_height) : message.revision_height; + else + object.revision_height = options.longs === String ? $util.Long.prototype.toString.call(message.revision_height) : options.longs === Number ? new $util.LongBits(message.revision_height.low >>> 0, message.revision_height.high >>> 0).toNumber(true) : message.revision_height; return object; }; /** - * Converts this QueryNextSequenceReceiveResponse to JSON. + * Converts this QueryChannelConsensusStateRequest to JSON. * @function toJSON - * @memberof ibc.core.channel.v1.QueryNextSequenceReceiveResponse + * @memberof ibc.core.channel.v1.QueryChannelConsensusStateRequest * @instance * @returns {Object.} JSON object */ - QueryNextSequenceReceiveResponse.prototype.toJSON = function toJSON() { + QueryChannelConsensusStateRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryNextSequenceReceiveResponse; + return QueryChannelConsensusStateRequest; })(); - v1.GenesisState = (function() { + v1.QueryChannelConsensusStateResponse = (function() { /** - * Properties of a GenesisState. + * Properties of a QueryChannelConsensusStateResponse. * @memberof ibc.core.channel.v1 - * @interface IGenesisState - * @property {Array.|null} [channels] GenesisState channels - * @property {Array.|null} [acknowledgements] GenesisState acknowledgements - * @property {Array.|null} [commitments] GenesisState commitments - * @property {Array.|null} [receipts] GenesisState receipts - * @property {Array.|null} [send_sequences] GenesisState send_sequences - * @property {Array.|null} [recv_sequences] GenesisState recv_sequences - * @property {Array.|null} [ack_sequences] GenesisState ack_sequences - * @property {Long|null} [next_channel_sequence] GenesisState next_channel_sequence + * @interface IQueryChannelConsensusStateResponse + * @property {google.protobuf.IAny|null} [consensus_state] QueryChannelConsensusStateResponse consensus_state + * @property {string|null} [client_id] QueryChannelConsensusStateResponse client_id + * @property {Uint8Array|null} [proof] QueryChannelConsensusStateResponse proof + * @property {ibc.core.client.v1.IHeight|null} [proof_height] QueryChannelConsensusStateResponse proof_height */ /** - * Constructs a new GenesisState. + * Constructs a new QueryChannelConsensusStateResponse. * @memberof ibc.core.channel.v1 - * @classdesc Represents a GenesisState. - * @implements IGenesisState + * @classdesc Represents a QueryChannelConsensusStateResponse. + * @implements IQueryChannelConsensusStateResponse * @constructor - * @param {ibc.core.channel.v1.IGenesisState=} [properties] Properties to set + * @param {ibc.core.channel.v1.IQueryChannelConsensusStateResponse=} [properties] Properties to set */ - function GenesisState(properties) { - this.channels = []; - this.acknowledgements = []; - this.commitments = []; - this.receipts = []; - this.send_sequences = []; - this.recv_sequences = []; - this.ack_sequences = []; + function QueryChannelConsensusStateResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -47796,175 +54145,102 @@ export const ibc = $root.ibc = (() => { } /** - * GenesisState channels. - * @member {Array.} channels - * @memberof ibc.core.channel.v1.GenesisState - * @instance - */ - GenesisState.prototype.channels = $util.emptyArray; - - /** - * GenesisState acknowledgements. - * @member {Array.} acknowledgements - * @memberof ibc.core.channel.v1.GenesisState - * @instance - */ - GenesisState.prototype.acknowledgements = $util.emptyArray; - - /** - * GenesisState commitments. - * @member {Array.} commitments - * @memberof ibc.core.channel.v1.GenesisState - * @instance - */ - GenesisState.prototype.commitments = $util.emptyArray; - - /** - * GenesisState receipts. - * @member {Array.} receipts - * @memberof ibc.core.channel.v1.GenesisState - * @instance - */ - GenesisState.prototype.receipts = $util.emptyArray; - - /** - * GenesisState send_sequences. - * @member {Array.} send_sequences - * @memberof ibc.core.channel.v1.GenesisState + * QueryChannelConsensusStateResponse consensus_state. + * @member {google.protobuf.IAny|null|undefined} consensus_state + * @memberof ibc.core.channel.v1.QueryChannelConsensusStateResponse * @instance */ - GenesisState.prototype.send_sequences = $util.emptyArray; + QueryChannelConsensusStateResponse.prototype.consensus_state = null; /** - * GenesisState recv_sequences. - * @member {Array.} recv_sequences - * @memberof ibc.core.channel.v1.GenesisState + * QueryChannelConsensusStateResponse client_id. + * @member {string} client_id + * @memberof ibc.core.channel.v1.QueryChannelConsensusStateResponse * @instance */ - GenesisState.prototype.recv_sequences = $util.emptyArray; + QueryChannelConsensusStateResponse.prototype.client_id = ""; /** - * GenesisState ack_sequences. - * @member {Array.} ack_sequences - * @memberof ibc.core.channel.v1.GenesisState + * QueryChannelConsensusStateResponse proof. + * @member {Uint8Array} proof + * @memberof ibc.core.channel.v1.QueryChannelConsensusStateResponse * @instance */ - GenesisState.prototype.ack_sequences = $util.emptyArray; + QueryChannelConsensusStateResponse.prototype.proof = $util.newBuffer([]); /** - * GenesisState next_channel_sequence. - * @member {Long} next_channel_sequence - * @memberof ibc.core.channel.v1.GenesisState + * QueryChannelConsensusStateResponse proof_height. + * @member {ibc.core.client.v1.IHeight|null|undefined} proof_height + * @memberof ibc.core.channel.v1.QueryChannelConsensusStateResponse * @instance */ - GenesisState.prototype.next_channel_sequence = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + QueryChannelConsensusStateResponse.prototype.proof_height = null; /** - * Encodes the specified GenesisState message. Does not implicitly {@link ibc.core.channel.v1.GenesisState.verify|verify} messages. + * Encodes the specified QueryChannelConsensusStateResponse message. Does not implicitly {@link ibc.core.channel.v1.QueryChannelConsensusStateResponse.verify|verify} messages. * @function encode - * @memberof ibc.core.channel.v1.GenesisState + * @memberof ibc.core.channel.v1.QueryChannelConsensusStateResponse * @static - * @param {ibc.core.channel.v1.IGenesisState} message GenesisState message or plain object to encode + * @param {ibc.core.channel.v1.IQueryChannelConsensusStateResponse} message QueryChannelConsensusStateResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GenesisState.encode = function encode(message, writer) { + QueryChannelConsensusStateResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.channels != null && message.channels.length) - for (let i = 0; i < message.channels.length; ++i) - $root.ibc.core.channel.v1.IdentifiedChannel.encode(message.channels[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.acknowledgements != null && message.acknowledgements.length) - for (let i = 0; i < message.acknowledgements.length; ++i) - $root.ibc.core.channel.v1.PacketState.encode(message.acknowledgements[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.commitments != null && message.commitments.length) - for (let i = 0; i < message.commitments.length; ++i) - $root.ibc.core.channel.v1.PacketState.encode(message.commitments[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.receipts != null && message.receipts.length) - for (let i = 0; i < message.receipts.length; ++i) - $root.ibc.core.channel.v1.PacketState.encode(message.receipts[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.send_sequences != null && message.send_sequences.length) - for (let i = 0; i < message.send_sequences.length; ++i) - $root.ibc.core.channel.v1.PacketSequence.encode(message.send_sequences[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.recv_sequences != null && message.recv_sequences.length) - for (let i = 0; i < message.recv_sequences.length; ++i) - $root.ibc.core.channel.v1.PacketSequence.encode(message.recv_sequences[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.ack_sequences != null && message.ack_sequences.length) - for (let i = 0; i < message.ack_sequences.length; ++i) - $root.ibc.core.channel.v1.PacketSequence.encode(message.ack_sequences[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.next_channel_sequence != null && Object.hasOwnProperty.call(message, "next_channel_sequence")) - writer.uint32(/* id 8, wireType 0 =*/64).uint64(message.next_channel_sequence); + if (message.consensus_state != null && Object.hasOwnProperty.call(message, "consensus_state")) + $root.google.protobuf.Any.encode(message.consensus_state, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.client_id != null && Object.hasOwnProperty.call(message, "client_id")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.client_id); + if (message.proof != null && Object.hasOwnProperty.call(message, "proof")) + writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.proof); + if (message.proof_height != null && Object.hasOwnProperty.call(message, "proof_height")) + $root.ibc.core.client.v1.Height.encode(message.proof_height, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; /** - * Encodes the specified GenesisState message, length delimited. Does not implicitly {@link ibc.core.channel.v1.GenesisState.verify|verify} messages. + * Encodes the specified QueryChannelConsensusStateResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryChannelConsensusStateResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.channel.v1.GenesisState + * @memberof ibc.core.channel.v1.QueryChannelConsensusStateResponse * @static - * @param {ibc.core.channel.v1.IGenesisState} message GenesisState message or plain object to encode + * @param {ibc.core.channel.v1.IQueryChannelConsensusStateResponse} message QueryChannelConsensusStateResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GenesisState.encodeDelimited = function encodeDelimited(message, writer) { + QueryChannelConsensusStateResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GenesisState message from the specified reader or buffer. + * Decodes a QueryChannelConsensusStateResponse message from the specified reader or buffer. * @function decode - * @memberof ibc.core.channel.v1.GenesisState + * @memberof ibc.core.channel.v1.QueryChannelConsensusStateResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.channel.v1.GenesisState} GenesisState + * @returns {ibc.core.channel.v1.QueryChannelConsensusStateResponse} QueryChannelConsensusStateResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GenesisState.decode = function decode(reader, length) { + QueryChannelConsensusStateResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.GenesisState(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.QueryChannelConsensusStateResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.channels && message.channels.length)) - message.channels = []; - message.channels.push($root.ibc.core.channel.v1.IdentifiedChannel.decode(reader, reader.uint32())); + message.consensus_state = $root.google.protobuf.Any.decode(reader, reader.uint32()); break; case 2: - if (!(message.acknowledgements && message.acknowledgements.length)) - message.acknowledgements = []; - message.acknowledgements.push($root.ibc.core.channel.v1.PacketState.decode(reader, reader.uint32())); + message.client_id = reader.string(); break; case 3: - if (!(message.commitments && message.commitments.length)) - message.commitments = []; - message.commitments.push($root.ibc.core.channel.v1.PacketState.decode(reader, reader.uint32())); + message.proof = reader.bytes(); break; case 4: - if (!(message.receipts && message.receipts.length)) - message.receipts = []; - message.receipts.push($root.ibc.core.channel.v1.PacketState.decode(reader, reader.uint32())); - break; - case 5: - if (!(message.send_sequences && message.send_sequences.length)) - message.send_sequences = []; - message.send_sequences.push($root.ibc.core.channel.v1.PacketSequence.decode(reader, reader.uint32())); - break; - case 6: - if (!(message.recv_sequences && message.recv_sequences.length)) - message.recv_sequences = []; - message.recv_sequences.push($root.ibc.core.channel.v1.PacketSequence.decode(reader, reader.uint32())); - break; - case 7: - if (!(message.ack_sequences && message.ack_sequences.length)) - message.ack_sequences = []; - message.ack_sequences.push($root.ibc.core.channel.v1.PacketSequence.decode(reader, reader.uint32())); - break; - case 8: - message.next_channel_sequence = reader.uint64(); + message.proof_height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -47975,300 +54251,153 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a GenesisState message from the specified reader or buffer, length delimited. + * Decodes a QueryChannelConsensusStateResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.channel.v1.GenesisState + * @memberof ibc.core.channel.v1.QueryChannelConsensusStateResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.channel.v1.GenesisState} GenesisState + * @returns {ibc.core.channel.v1.QueryChannelConsensusStateResponse} QueryChannelConsensusStateResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GenesisState.decodeDelimited = function decodeDelimited(reader) { + QueryChannelConsensusStateResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GenesisState message. + * Verifies a QueryChannelConsensusStateResponse message. * @function verify - * @memberof ibc.core.channel.v1.GenesisState + * @memberof ibc.core.channel.v1.QueryChannelConsensusStateResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GenesisState.verify = function verify(message) { + QueryChannelConsensusStateResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.channels != null && message.hasOwnProperty("channels")) { - if (!Array.isArray(message.channels)) - return "channels: array expected"; - for (let i = 0; i < message.channels.length; ++i) { - let error = $root.ibc.core.channel.v1.IdentifiedChannel.verify(message.channels[i]); - if (error) - return "channels." + error; - } - } - if (message.acknowledgements != null && message.hasOwnProperty("acknowledgements")) { - if (!Array.isArray(message.acknowledgements)) - return "acknowledgements: array expected"; - for (let i = 0; i < message.acknowledgements.length; ++i) { - let error = $root.ibc.core.channel.v1.PacketState.verify(message.acknowledgements[i]); - if (error) - return "acknowledgements." + error; - } - } - if (message.commitments != null && message.hasOwnProperty("commitments")) { - if (!Array.isArray(message.commitments)) - return "commitments: array expected"; - for (let i = 0; i < message.commitments.length; ++i) { - let error = $root.ibc.core.channel.v1.PacketState.verify(message.commitments[i]); - if (error) - return "commitments." + error; - } - } - if (message.receipts != null && message.hasOwnProperty("receipts")) { - if (!Array.isArray(message.receipts)) - return "receipts: array expected"; - for (let i = 0; i < message.receipts.length; ++i) { - let error = $root.ibc.core.channel.v1.PacketState.verify(message.receipts[i]); - if (error) - return "receipts." + error; - } - } - if (message.send_sequences != null && message.hasOwnProperty("send_sequences")) { - if (!Array.isArray(message.send_sequences)) - return "send_sequences: array expected"; - for (let i = 0; i < message.send_sequences.length; ++i) { - let error = $root.ibc.core.channel.v1.PacketSequence.verify(message.send_sequences[i]); - if (error) - return "send_sequences." + error; - } - } - if (message.recv_sequences != null && message.hasOwnProperty("recv_sequences")) { - if (!Array.isArray(message.recv_sequences)) - return "recv_sequences: array expected"; - for (let i = 0; i < message.recv_sequences.length; ++i) { - let error = $root.ibc.core.channel.v1.PacketSequence.verify(message.recv_sequences[i]); - if (error) - return "recv_sequences." + error; - } + if (message.consensus_state != null && message.hasOwnProperty("consensus_state")) { + let error = $root.google.protobuf.Any.verify(message.consensus_state); + if (error) + return "consensus_state." + error; } - if (message.ack_sequences != null && message.hasOwnProperty("ack_sequences")) { - if (!Array.isArray(message.ack_sequences)) - return "ack_sequences: array expected"; - for (let i = 0; i < message.ack_sequences.length; ++i) { - let error = $root.ibc.core.channel.v1.PacketSequence.verify(message.ack_sequences[i]); - if (error) - return "ack_sequences." + error; - } + if (message.client_id != null && message.hasOwnProperty("client_id")) + if (!$util.isString(message.client_id)) + return "client_id: string expected"; + if (message.proof != null && message.hasOwnProperty("proof")) + if (!(message.proof && typeof message.proof.length === "number" || $util.isString(message.proof))) + return "proof: buffer expected"; + if (message.proof_height != null && message.hasOwnProperty("proof_height")) { + let error = $root.ibc.core.client.v1.Height.verify(message.proof_height); + if (error) + return "proof_height." + error; } - if (message.next_channel_sequence != null && message.hasOwnProperty("next_channel_sequence")) - if (!$util.isInteger(message.next_channel_sequence) && !(message.next_channel_sequence && $util.isInteger(message.next_channel_sequence.low) && $util.isInteger(message.next_channel_sequence.high))) - return "next_channel_sequence: integer|Long expected"; return null; }; /** - * Creates a GenesisState message from a plain object. Also converts values to their respective internal types. + * Creates a QueryChannelConsensusStateResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.channel.v1.GenesisState + * @memberof ibc.core.channel.v1.QueryChannelConsensusStateResponse * @static * @param {Object.} object Plain object - * @returns {ibc.core.channel.v1.GenesisState} GenesisState + * @returns {ibc.core.channel.v1.QueryChannelConsensusStateResponse} QueryChannelConsensusStateResponse */ - GenesisState.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.channel.v1.GenesisState) + QueryChannelConsensusStateResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.channel.v1.QueryChannelConsensusStateResponse) return object; - let message = new $root.ibc.core.channel.v1.GenesisState(); - if (object.channels) { - if (!Array.isArray(object.channels)) - throw TypeError(".ibc.core.channel.v1.GenesisState.channels: array expected"); - message.channels = []; - for (let i = 0; i < object.channels.length; ++i) { - if (typeof object.channels[i] !== "object") - throw TypeError(".ibc.core.channel.v1.GenesisState.channels: object expected"); - message.channels[i] = $root.ibc.core.channel.v1.IdentifiedChannel.fromObject(object.channels[i]); - } - } - if (object.acknowledgements) { - if (!Array.isArray(object.acknowledgements)) - throw TypeError(".ibc.core.channel.v1.GenesisState.acknowledgements: array expected"); - message.acknowledgements = []; - for (let i = 0; i < object.acknowledgements.length; ++i) { - if (typeof object.acknowledgements[i] !== "object") - throw TypeError(".ibc.core.channel.v1.GenesisState.acknowledgements: object expected"); - message.acknowledgements[i] = $root.ibc.core.channel.v1.PacketState.fromObject(object.acknowledgements[i]); - } - } - if (object.commitments) { - if (!Array.isArray(object.commitments)) - throw TypeError(".ibc.core.channel.v1.GenesisState.commitments: array expected"); - message.commitments = []; - for (let i = 0; i < object.commitments.length; ++i) { - if (typeof object.commitments[i] !== "object") - throw TypeError(".ibc.core.channel.v1.GenesisState.commitments: object expected"); - message.commitments[i] = $root.ibc.core.channel.v1.PacketState.fromObject(object.commitments[i]); - } - } - if (object.receipts) { - if (!Array.isArray(object.receipts)) - throw TypeError(".ibc.core.channel.v1.GenesisState.receipts: array expected"); - message.receipts = []; - for (let i = 0; i < object.receipts.length; ++i) { - if (typeof object.receipts[i] !== "object") - throw TypeError(".ibc.core.channel.v1.GenesisState.receipts: object expected"); - message.receipts[i] = $root.ibc.core.channel.v1.PacketState.fromObject(object.receipts[i]); - } - } - if (object.send_sequences) { - if (!Array.isArray(object.send_sequences)) - throw TypeError(".ibc.core.channel.v1.GenesisState.send_sequences: array expected"); - message.send_sequences = []; - for (let i = 0; i < object.send_sequences.length; ++i) { - if (typeof object.send_sequences[i] !== "object") - throw TypeError(".ibc.core.channel.v1.GenesisState.send_sequences: object expected"); - message.send_sequences[i] = $root.ibc.core.channel.v1.PacketSequence.fromObject(object.send_sequences[i]); - } - } - if (object.recv_sequences) { - if (!Array.isArray(object.recv_sequences)) - throw TypeError(".ibc.core.channel.v1.GenesisState.recv_sequences: array expected"); - message.recv_sequences = []; - for (let i = 0; i < object.recv_sequences.length; ++i) { - if (typeof object.recv_sequences[i] !== "object") - throw TypeError(".ibc.core.channel.v1.GenesisState.recv_sequences: object expected"); - message.recv_sequences[i] = $root.ibc.core.channel.v1.PacketSequence.fromObject(object.recv_sequences[i]); - } + let message = new $root.ibc.core.channel.v1.QueryChannelConsensusStateResponse(); + if (object.consensus_state != null) { + if (typeof object.consensus_state !== "object") + throw TypeError(".ibc.core.channel.v1.QueryChannelConsensusStateResponse.consensus_state: object expected"); + message.consensus_state = $root.google.protobuf.Any.fromObject(object.consensus_state); } - if (object.ack_sequences) { - if (!Array.isArray(object.ack_sequences)) - throw TypeError(".ibc.core.channel.v1.GenesisState.ack_sequences: array expected"); - message.ack_sequences = []; - for (let i = 0; i < object.ack_sequences.length; ++i) { - if (typeof object.ack_sequences[i] !== "object") - throw TypeError(".ibc.core.channel.v1.GenesisState.ack_sequences: object expected"); - message.ack_sequences[i] = $root.ibc.core.channel.v1.PacketSequence.fromObject(object.ack_sequences[i]); - } + if (object.client_id != null) + message.client_id = String(object.client_id); + if (object.proof != null) + if (typeof object.proof === "string") + $util.base64.decode(object.proof, message.proof = $util.newBuffer($util.base64.length(object.proof)), 0); + else if (object.proof.length) + message.proof = object.proof; + if (object.proof_height != null) { + if (typeof object.proof_height !== "object") + throw TypeError(".ibc.core.channel.v1.QueryChannelConsensusStateResponse.proof_height: object expected"); + message.proof_height = $root.ibc.core.client.v1.Height.fromObject(object.proof_height); } - if (object.next_channel_sequence != null) - if ($util.Long) - (message.next_channel_sequence = $util.Long.fromValue(object.next_channel_sequence)).unsigned = true; - else if (typeof object.next_channel_sequence === "string") - message.next_channel_sequence = parseInt(object.next_channel_sequence, 10); - else if (typeof object.next_channel_sequence === "number") - message.next_channel_sequence = object.next_channel_sequence; - else if (typeof object.next_channel_sequence === "object") - message.next_channel_sequence = new $util.LongBits(object.next_channel_sequence.low >>> 0, object.next_channel_sequence.high >>> 0).toNumber(true); return message; }; /** - * Creates a plain object from a GenesisState message. Also converts values to other types if specified. + * Creates a plain object from a QueryChannelConsensusStateResponse message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.channel.v1.GenesisState + * @memberof ibc.core.channel.v1.QueryChannelConsensusStateResponse * @static - * @param {ibc.core.channel.v1.GenesisState} message GenesisState + * @param {ibc.core.channel.v1.QueryChannelConsensusStateResponse} message QueryChannelConsensusStateResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GenesisState.toObject = function toObject(message, options) { + QueryChannelConsensusStateResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) { - object.channels = []; - object.acknowledgements = []; - object.commitments = []; - object.receipts = []; - object.send_sequences = []; - object.recv_sequences = []; - object.ack_sequences = []; - } - if (options.defaults) - if ($util.Long) { - let long = new $util.Long(0, 0, true); - object.next_channel_sequence = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.next_channel_sequence = options.longs === String ? "0" : 0; - if (message.channels && message.channels.length) { - object.channels = []; - for (let j = 0; j < message.channels.length; ++j) - object.channels[j] = $root.ibc.core.channel.v1.IdentifiedChannel.toObject(message.channels[j], options); - } - if (message.acknowledgements && message.acknowledgements.length) { - object.acknowledgements = []; - for (let j = 0; j < message.acknowledgements.length; ++j) - object.acknowledgements[j] = $root.ibc.core.channel.v1.PacketState.toObject(message.acknowledgements[j], options); - } - if (message.commitments && message.commitments.length) { - object.commitments = []; - for (let j = 0; j < message.commitments.length; ++j) - object.commitments[j] = $root.ibc.core.channel.v1.PacketState.toObject(message.commitments[j], options); - } - if (message.receipts && message.receipts.length) { - object.receipts = []; - for (let j = 0; j < message.receipts.length; ++j) - object.receipts[j] = $root.ibc.core.channel.v1.PacketState.toObject(message.receipts[j], options); - } - if (message.send_sequences && message.send_sequences.length) { - object.send_sequences = []; - for (let j = 0; j < message.send_sequences.length; ++j) - object.send_sequences[j] = $root.ibc.core.channel.v1.PacketSequence.toObject(message.send_sequences[j], options); - } - if (message.recv_sequences && message.recv_sequences.length) { - object.recv_sequences = []; - for (let j = 0; j < message.recv_sequences.length; ++j) - object.recv_sequences[j] = $root.ibc.core.channel.v1.PacketSequence.toObject(message.recv_sequences[j], options); - } - if (message.ack_sequences && message.ack_sequences.length) { - object.ack_sequences = []; - for (let j = 0; j < message.ack_sequences.length; ++j) - object.ack_sequences[j] = $root.ibc.core.channel.v1.PacketSequence.toObject(message.ack_sequences[j], options); + if (options.defaults) { + object.consensus_state = null; + object.client_id = ""; + if (options.bytes === String) + object.proof = ""; + else { + object.proof = []; + if (options.bytes !== Array) + object.proof = $util.newBuffer(object.proof); + } + object.proof_height = null; } - if (message.next_channel_sequence != null && message.hasOwnProperty("next_channel_sequence")) - if (typeof message.next_channel_sequence === "number") - object.next_channel_sequence = options.longs === String ? String(message.next_channel_sequence) : message.next_channel_sequence; - else - object.next_channel_sequence = options.longs === String ? $util.Long.prototype.toString.call(message.next_channel_sequence) : options.longs === Number ? new $util.LongBits(message.next_channel_sequence.low >>> 0, message.next_channel_sequence.high >>> 0).toNumber(true) : message.next_channel_sequence; + if (message.consensus_state != null && message.hasOwnProperty("consensus_state")) + object.consensus_state = $root.google.protobuf.Any.toObject(message.consensus_state, options); + if (message.client_id != null && message.hasOwnProperty("client_id")) + object.client_id = message.client_id; + if (message.proof != null && message.hasOwnProperty("proof")) + object.proof = options.bytes === String ? $util.base64.encode(message.proof, 0, message.proof.length) : options.bytes === Array ? Array.prototype.slice.call(message.proof) : message.proof; + if (message.proof_height != null && message.hasOwnProperty("proof_height")) + object.proof_height = $root.ibc.core.client.v1.Height.toObject(message.proof_height, options); return object; }; /** - * Converts this GenesisState to JSON. + * Converts this QueryChannelConsensusStateResponse to JSON. * @function toJSON - * @memberof ibc.core.channel.v1.GenesisState + * @memberof ibc.core.channel.v1.QueryChannelConsensusStateResponse * @instance * @returns {Object.} JSON object */ - GenesisState.prototype.toJSON = function toJSON() { + QueryChannelConsensusStateResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GenesisState; + return QueryChannelConsensusStateResponse; })(); - v1.PacketSequence = (function() { + v1.QueryPacketCommitmentRequest = (function() { /** - * Properties of a PacketSequence. + * Properties of a QueryPacketCommitmentRequest. * @memberof ibc.core.channel.v1 - * @interface IPacketSequence - * @property {string|null} [port_id] PacketSequence port_id - * @property {string|null} [channel_id] PacketSequence channel_id - * @property {Long|null} [sequence] PacketSequence sequence + * @interface IQueryPacketCommitmentRequest + * @property {string|null} [port_id] QueryPacketCommitmentRequest port_id + * @property {string|null} [channel_id] QueryPacketCommitmentRequest channel_id + * @property {Long|null} [sequence] QueryPacketCommitmentRequest sequence */ /** - * Constructs a new PacketSequence. + * Constructs a new QueryPacketCommitmentRequest. * @memberof ibc.core.channel.v1 - * @classdesc Represents a PacketSequence. - * @implements IPacketSequence + * @classdesc Represents a QueryPacketCommitmentRequest. + * @implements IQueryPacketCommitmentRequest * @constructor - * @param {ibc.core.channel.v1.IPacketSequence=} [properties] Properties to set + * @param {ibc.core.channel.v1.IQueryPacketCommitmentRequest=} [properties] Properties to set */ - function PacketSequence(properties) { + function QueryPacketCommitmentRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -48276,39 +54405,39 @@ export const ibc = $root.ibc = (() => { } /** - * PacketSequence port_id. + * QueryPacketCommitmentRequest port_id. * @member {string} port_id - * @memberof ibc.core.channel.v1.PacketSequence + * @memberof ibc.core.channel.v1.QueryPacketCommitmentRequest * @instance */ - PacketSequence.prototype.port_id = ""; + QueryPacketCommitmentRequest.prototype.port_id = ""; /** - * PacketSequence channel_id. + * QueryPacketCommitmentRequest channel_id. * @member {string} channel_id - * @memberof ibc.core.channel.v1.PacketSequence + * @memberof ibc.core.channel.v1.QueryPacketCommitmentRequest * @instance */ - PacketSequence.prototype.channel_id = ""; + QueryPacketCommitmentRequest.prototype.channel_id = ""; /** - * PacketSequence sequence. + * QueryPacketCommitmentRequest sequence. * @member {Long} sequence - * @memberof ibc.core.channel.v1.PacketSequence + * @memberof ibc.core.channel.v1.QueryPacketCommitmentRequest * @instance */ - PacketSequence.prototype.sequence = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + QueryPacketCommitmentRequest.prototype.sequence = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** - * Encodes the specified PacketSequence message. Does not implicitly {@link ibc.core.channel.v1.PacketSequence.verify|verify} messages. + * Encodes the specified QueryPacketCommitmentRequest message. Does not implicitly {@link ibc.core.channel.v1.QueryPacketCommitmentRequest.verify|verify} messages. * @function encode - * @memberof ibc.core.channel.v1.PacketSequence + * @memberof ibc.core.channel.v1.QueryPacketCommitmentRequest * @static - * @param {ibc.core.channel.v1.IPacketSequence} message PacketSequence message or plain object to encode + * @param {ibc.core.channel.v1.IQueryPacketCommitmentRequest} message QueryPacketCommitmentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PacketSequence.encode = function encode(message, writer) { + QueryPacketCommitmentRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.port_id != null && Object.hasOwnProperty.call(message, "port_id")) @@ -48321,33 +54450,33 @@ export const ibc = $root.ibc = (() => { }; /** - * Encodes the specified PacketSequence message, length delimited. Does not implicitly {@link ibc.core.channel.v1.PacketSequence.verify|verify} messages. + * Encodes the specified QueryPacketCommitmentRequest message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryPacketCommitmentRequest.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.channel.v1.PacketSequence + * @memberof ibc.core.channel.v1.QueryPacketCommitmentRequest * @static - * @param {ibc.core.channel.v1.IPacketSequence} message PacketSequence message or plain object to encode + * @param {ibc.core.channel.v1.IQueryPacketCommitmentRequest} message QueryPacketCommitmentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PacketSequence.encodeDelimited = function encodeDelimited(message, writer) { + QueryPacketCommitmentRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PacketSequence message from the specified reader or buffer. + * Decodes a QueryPacketCommitmentRequest message from the specified reader or buffer. * @function decode - * @memberof ibc.core.channel.v1.PacketSequence + * @memberof ibc.core.channel.v1.QueryPacketCommitmentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.channel.v1.PacketSequence} PacketSequence + * @returns {ibc.core.channel.v1.QueryPacketCommitmentRequest} QueryPacketCommitmentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PacketSequence.decode = function decode(reader, length) { + QueryPacketCommitmentRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.PacketSequence(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.QueryPacketCommitmentRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { @@ -48369,30 +54498,30 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a PacketSequence message from the specified reader or buffer, length delimited. + * Decodes a QueryPacketCommitmentRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.channel.v1.PacketSequence + * @memberof ibc.core.channel.v1.QueryPacketCommitmentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.channel.v1.PacketSequence} PacketSequence + * @returns {ibc.core.channel.v1.QueryPacketCommitmentRequest} QueryPacketCommitmentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PacketSequence.decodeDelimited = function decodeDelimited(reader) { + QueryPacketCommitmentRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PacketSequence message. + * Verifies a QueryPacketCommitmentRequest message. * @function verify - * @memberof ibc.core.channel.v1.PacketSequence + * @memberof ibc.core.channel.v1.QueryPacketCommitmentRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PacketSequence.verify = function verify(message) { + QueryPacketCommitmentRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.port_id != null && message.hasOwnProperty("port_id")) @@ -48408,17 +54537,17 @@ export const ibc = $root.ibc = (() => { }; /** - * Creates a PacketSequence message from a plain object. Also converts values to their respective internal types. + * Creates a QueryPacketCommitmentRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.channel.v1.PacketSequence + * @memberof ibc.core.channel.v1.QueryPacketCommitmentRequest * @static * @param {Object.} object Plain object - * @returns {ibc.core.channel.v1.PacketSequence} PacketSequence + * @returns {ibc.core.channel.v1.QueryPacketCommitmentRequest} QueryPacketCommitmentRequest */ - PacketSequence.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.channel.v1.PacketSequence) + QueryPacketCommitmentRequest.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.channel.v1.QueryPacketCommitmentRequest) return object; - let message = new $root.ibc.core.channel.v1.PacketSequence(); + let message = new $root.ibc.core.channel.v1.QueryPacketCommitmentRequest(); if (object.port_id != null) message.port_id = String(object.port_id); if (object.channel_id != null) @@ -48436,15 +54565,15 @@ export const ibc = $root.ibc = (() => { }; /** - * Creates a plain object from a PacketSequence message. Also converts values to other types if specified. + * Creates a plain object from a QueryPacketCommitmentRequest message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.channel.v1.PacketSequence + * @memberof ibc.core.channel.v1.QueryPacketCommitmentRequest * @static - * @param {ibc.core.channel.v1.PacketSequence} message PacketSequence + * @param {ibc.core.channel.v1.QueryPacketCommitmentRequest} message QueryPacketCommitmentRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PacketSequence.toObject = function toObject(message, options) { + QueryPacketCommitmentRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; @@ -48470,62 +54599,39 @@ export const ibc = $root.ibc = (() => { }; /** - * Converts this PacketSequence to JSON. + * Converts this QueryPacketCommitmentRequest to JSON. * @function toJSON - * @memberof ibc.core.channel.v1.PacketSequence + * @memberof ibc.core.channel.v1.QueryPacketCommitmentRequest * @instance * @returns {Object.} JSON object */ - PacketSequence.prototype.toJSON = function toJSON() { + QueryPacketCommitmentRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return PacketSequence; + return QueryPacketCommitmentRequest; })(); - return v1; - })(); - - return channel; - })(); - - core.client = (function() { - - /** - * Namespace client. - * @memberof ibc.core - * @namespace - */ - const client = {}; - - client.v1 = (function() { - - /** - * Namespace v1. - * @memberof ibc.core.client - * @namespace - */ - const v1 = {}; - - v1.IdentifiedClientState = (function() { + v1.QueryPacketCommitmentResponse = (function() { /** - * Properties of an IdentifiedClientState. - * @memberof ibc.core.client.v1 - * @interface IIdentifiedClientState - * @property {string|null} [client_id] IdentifiedClientState client_id - * @property {google.protobuf.IAny|null} [client_state] IdentifiedClientState client_state + * Properties of a QueryPacketCommitmentResponse. + * @memberof ibc.core.channel.v1 + * @interface IQueryPacketCommitmentResponse + * @property {Uint8Array|null} [commitment] QueryPacketCommitmentResponse commitment + * @property {Uint8Array|null} [proof] QueryPacketCommitmentResponse proof + * @property {ibc.core.client.v1.IHeight|null} [proof_height] QueryPacketCommitmentResponse proof_height */ /** - * Constructs a new IdentifiedClientState. - * @memberof ibc.core.client.v1 - * @classdesc Represents an IdentifiedClientState. - * @implements IIdentifiedClientState + * Constructs a new QueryPacketCommitmentResponse. + * @memberof ibc.core.channel.v1 + * @classdesc Represents a QueryPacketCommitmentResponse. + * @implements IQueryPacketCommitmentResponse * @constructor - * @param {ibc.core.client.v1.IIdentifiedClientState=} [properties] Properties to set + * @param {ibc.core.channel.v1.IQueryPacketCommitmentResponse=} [properties] Properties to set */ - function IdentifiedClientState(properties) { + function QueryPacketCommitmentResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -48533,76 +54639,89 @@ export const ibc = $root.ibc = (() => { } /** - * IdentifiedClientState client_id. - * @member {string} client_id - * @memberof ibc.core.client.v1.IdentifiedClientState + * QueryPacketCommitmentResponse commitment. + * @member {Uint8Array} commitment + * @memberof ibc.core.channel.v1.QueryPacketCommitmentResponse * @instance */ - IdentifiedClientState.prototype.client_id = ""; + QueryPacketCommitmentResponse.prototype.commitment = $util.newBuffer([]); /** - * IdentifiedClientState client_state. - * @member {google.protobuf.IAny|null|undefined} client_state - * @memberof ibc.core.client.v1.IdentifiedClientState + * QueryPacketCommitmentResponse proof. + * @member {Uint8Array} proof + * @memberof ibc.core.channel.v1.QueryPacketCommitmentResponse * @instance */ - IdentifiedClientState.prototype.client_state = null; + QueryPacketCommitmentResponse.prototype.proof = $util.newBuffer([]); /** - * Encodes the specified IdentifiedClientState message. Does not implicitly {@link ibc.core.client.v1.IdentifiedClientState.verify|verify} messages. + * QueryPacketCommitmentResponse proof_height. + * @member {ibc.core.client.v1.IHeight|null|undefined} proof_height + * @memberof ibc.core.channel.v1.QueryPacketCommitmentResponse + * @instance + */ + QueryPacketCommitmentResponse.prototype.proof_height = null; + + /** + * Encodes the specified QueryPacketCommitmentResponse message. Does not implicitly {@link ibc.core.channel.v1.QueryPacketCommitmentResponse.verify|verify} messages. * @function encode - * @memberof ibc.core.client.v1.IdentifiedClientState + * @memberof ibc.core.channel.v1.QueryPacketCommitmentResponse * @static - * @param {ibc.core.client.v1.IIdentifiedClientState} message IdentifiedClientState message or plain object to encode + * @param {ibc.core.channel.v1.IQueryPacketCommitmentResponse} message QueryPacketCommitmentResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - IdentifiedClientState.encode = function encode(message, writer) { + QueryPacketCommitmentResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.client_id != null && Object.hasOwnProperty.call(message, "client_id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.client_id); - if (message.client_state != null && Object.hasOwnProperty.call(message, "client_state")) - $root.google.protobuf.Any.encode(message.client_state, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.commitment != null && Object.hasOwnProperty.call(message, "commitment")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.commitment); + if (message.proof != null && Object.hasOwnProperty.call(message, "proof")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.proof); + if (message.proof_height != null && Object.hasOwnProperty.call(message, "proof_height")) + $root.ibc.core.client.v1.Height.encode(message.proof_height, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified IdentifiedClientState message, length delimited. Does not implicitly {@link ibc.core.client.v1.IdentifiedClientState.verify|verify} messages. + * Encodes the specified QueryPacketCommitmentResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryPacketCommitmentResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.client.v1.IdentifiedClientState + * @memberof ibc.core.channel.v1.QueryPacketCommitmentResponse * @static - * @param {ibc.core.client.v1.IIdentifiedClientState} message IdentifiedClientState message or plain object to encode + * @param {ibc.core.channel.v1.IQueryPacketCommitmentResponse} message QueryPacketCommitmentResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - IdentifiedClientState.encodeDelimited = function encodeDelimited(message, writer) { + QueryPacketCommitmentResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an IdentifiedClientState message from the specified reader or buffer. + * Decodes a QueryPacketCommitmentResponse message from the specified reader or buffer. * @function decode - * @memberof ibc.core.client.v1.IdentifiedClientState + * @memberof ibc.core.channel.v1.QueryPacketCommitmentResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.client.v1.IdentifiedClientState} IdentifiedClientState + * @returns {ibc.core.channel.v1.QueryPacketCommitmentResponse} QueryPacketCommitmentResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - IdentifiedClientState.decode = function decode(reader, length) { + QueryPacketCommitmentResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.IdentifiedClientState(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.QueryPacketCommitmentResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.client_id = reader.string(); + message.commitment = reader.bytes(); break; case 2: - message.client_state = $root.google.protobuf.Any.decode(reader, reader.uint32()); + message.proof = reader.bytes(); + break; + case 3: + message.proof_height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -48613,122 +54732,149 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes an IdentifiedClientState message from the specified reader or buffer, length delimited. + * Decodes a QueryPacketCommitmentResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.client.v1.IdentifiedClientState + * @memberof ibc.core.channel.v1.QueryPacketCommitmentResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.client.v1.IdentifiedClientState} IdentifiedClientState + * @returns {ibc.core.channel.v1.QueryPacketCommitmentResponse} QueryPacketCommitmentResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - IdentifiedClientState.decodeDelimited = function decodeDelimited(reader) { + QueryPacketCommitmentResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an IdentifiedClientState message. + * Verifies a QueryPacketCommitmentResponse message. * @function verify - * @memberof ibc.core.client.v1.IdentifiedClientState + * @memberof ibc.core.channel.v1.QueryPacketCommitmentResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - IdentifiedClientState.verify = function verify(message) { + QueryPacketCommitmentResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.client_id != null && message.hasOwnProperty("client_id")) - if (!$util.isString(message.client_id)) - return "client_id: string expected"; - if (message.client_state != null && message.hasOwnProperty("client_state")) { - let error = $root.google.protobuf.Any.verify(message.client_state); + if (message.commitment != null && message.hasOwnProperty("commitment")) + if (!(message.commitment && typeof message.commitment.length === "number" || $util.isString(message.commitment))) + return "commitment: buffer expected"; + if (message.proof != null && message.hasOwnProperty("proof")) + if (!(message.proof && typeof message.proof.length === "number" || $util.isString(message.proof))) + return "proof: buffer expected"; + if (message.proof_height != null && message.hasOwnProperty("proof_height")) { + let error = $root.ibc.core.client.v1.Height.verify(message.proof_height); if (error) - return "client_state." + error; + return "proof_height." + error; } return null; }; /** - * Creates an IdentifiedClientState message from a plain object. Also converts values to their respective internal types. + * Creates a QueryPacketCommitmentResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.client.v1.IdentifiedClientState + * @memberof ibc.core.channel.v1.QueryPacketCommitmentResponse * @static * @param {Object.} object Plain object - * @returns {ibc.core.client.v1.IdentifiedClientState} IdentifiedClientState + * @returns {ibc.core.channel.v1.QueryPacketCommitmentResponse} QueryPacketCommitmentResponse */ - IdentifiedClientState.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.client.v1.IdentifiedClientState) + QueryPacketCommitmentResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.channel.v1.QueryPacketCommitmentResponse) return object; - let message = new $root.ibc.core.client.v1.IdentifiedClientState(); - if (object.client_id != null) - message.client_id = String(object.client_id); - if (object.client_state != null) { - if (typeof object.client_state !== "object") - throw TypeError(".ibc.core.client.v1.IdentifiedClientState.client_state: object expected"); - message.client_state = $root.google.protobuf.Any.fromObject(object.client_state); + let message = new $root.ibc.core.channel.v1.QueryPacketCommitmentResponse(); + if (object.commitment != null) + if (typeof object.commitment === "string") + $util.base64.decode(object.commitment, message.commitment = $util.newBuffer($util.base64.length(object.commitment)), 0); + else if (object.commitment.length) + message.commitment = object.commitment; + if (object.proof != null) + if (typeof object.proof === "string") + $util.base64.decode(object.proof, message.proof = $util.newBuffer($util.base64.length(object.proof)), 0); + else if (object.proof.length) + message.proof = object.proof; + if (object.proof_height != null) { + if (typeof object.proof_height !== "object") + throw TypeError(".ibc.core.channel.v1.QueryPacketCommitmentResponse.proof_height: object expected"); + message.proof_height = $root.ibc.core.client.v1.Height.fromObject(object.proof_height); } return message; }; /** - * Creates a plain object from an IdentifiedClientState message. Also converts values to other types if specified. + * Creates a plain object from a QueryPacketCommitmentResponse message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.client.v1.IdentifiedClientState + * @memberof ibc.core.channel.v1.QueryPacketCommitmentResponse * @static - * @param {ibc.core.client.v1.IdentifiedClientState} message IdentifiedClientState + * @param {ibc.core.channel.v1.QueryPacketCommitmentResponse} message QueryPacketCommitmentResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - IdentifiedClientState.toObject = function toObject(message, options) { + QueryPacketCommitmentResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - object.client_id = ""; - object.client_state = null; + if (options.bytes === String) + object.commitment = ""; + else { + object.commitment = []; + if (options.bytes !== Array) + object.commitment = $util.newBuffer(object.commitment); + } + if (options.bytes === String) + object.proof = ""; + else { + object.proof = []; + if (options.bytes !== Array) + object.proof = $util.newBuffer(object.proof); + } + object.proof_height = null; } - if (message.client_id != null && message.hasOwnProperty("client_id")) - object.client_id = message.client_id; - if (message.client_state != null && message.hasOwnProperty("client_state")) - object.client_state = $root.google.protobuf.Any.toObject(message.client_state, options); + if (message.commitment != null && message.hasOwnProperty("commitment")) + object.commitment = options.bytes === String ? $util.base64.encode(message.commitment, 0, message.commitment.length) : options.bytes === Array ? Array.prototype.slice.call(message.commitment) : message.commitment; + if (message.proof != null && message.hasOwnProperty("proof")) + object.proof = options.bytes === String ? $util.base64.encode(message.proof, 0, message.proof.length) : options.bytes === Array ? Array.prototype.slice.call(message.proof) : message.proof; + if (message.proof_height != null && message.hasOwnProperty("proof_height")) + object.proof_height = $root.ibc.core.client.v1.Height.toObject(message.proof_height, options); return object; }; /** - * Converts this IdentifiedClientState to JSON. + * Converts this QueryPacketCommitmentResponse to JSON. * @function toJSON - * @memberof ibc.core.client.v1.IdentifiedClientState + * @memberof ibc.core.channel.v1.QueryPacketCommitmentResponse * @instance * @returns {Object.} JSON object */ - IdentifiedClientState.prototype.toJSON = function toJSON() { + QueryPacketCommitmentResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return IdentifiedClientState; + return QueryPacketCommitmentResponse; })(); - v1.ConsensusStateWithHeight = (function() { + v1.QueryPacketCommitmentsRequest = (function() { /** - * Properties of a ConsensusStateWithHeight. - * @memberof ibc.core.client.v1 - * @interface IConsensusStateWithHeight - * @property {ibc.core.client.v1.IHeight|null} [height] ConsensusStateWithHeight height - * @property {google.protobuf.IAny|null} [consensus_state] ConsensusStateWithHeight consensus_state + * Properties of a QueryPacketCommitmentsRequest. + * @memberof ibc.core.channel.v1 + * @interface IQueryPacketCommitmentsRequest + * @property {string|null} [port_id] QueryPacketCommitmentsRequest port_id + * @property {string|null} [channel_id] QueryPacketCommitmentsRequest channel_id + * @property {cosmos.base.query.v1beta1.IPageRequest|null} [pagination] QueryPacketCommitmentsRequest pagination */ /** - * Constructs a new ConsensusStateWithHeight. - * @memberof ibc.core.client.v1 - * @classdesc Represents a ConsensusStateWithHeight. - * @implements IConsensusStateWithHeight + * Constructs a new QueryPacketCommitmentsRequest. + * @memberof ibc.core.channel.v1 + * @classdesc Represents a QueryPacketCommitmentsRequest. + * @implements IQueryPacketCommitmentsRequest * @constructor - * @param {ibc.core.client.v1.IConsensusStateWithHeight=} [properties] Properties to set + * @param {ibc.core.channel.v1.IQueryPacketCommitmentsRequest=} [properties] Properties to set */ - function ConsensusStateWithHeight(properties) { + function QueryPacketCommitmentsRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -48736,76 +54882,89 @@ export const ibc = $root.ibc = (() => { } /** - * ConsensusStateWithHeight height. - * @member {ibc.core.client.v1.IHeight|null|undefined} height - * @memberof ibc.core.client.v1.ConsensusStateWithHeight + * QueryPacketCommitmentsRequest port_id. + * @member {string} port_id + * @memberof ibc.core.channel.v1.QueryPacketCommitmentsRequest * @instance */ - ConsensusStateWithHeight.prototype.height = null; + QueryPacketCommitmentsRequest.prototype.port_id = ""; /** - * ConsensusStateWithHeight consensus_state. - * @member {google.protobuf.IAny|null|undefined} consensus_state - * @memberof ibc.core.client.v1.ConsensusStateWithHeight + * QueryPacketCommitmentsRequest channel_id. + * @member {string} channel_id + * @memberof ibc.core.channel.v1.QueryPacketCommitmentsRequest * @instance */ - ConsensusStateWithHeight.prototype.consensus_state = null; + QueryPacketCommitmentsRequest.prototype.channel_id = ""; /** - * Encodes the specified ConsensusStateWithHeight message. Does not implicitly {@link ibc.core.client.v1.ConsensusStateWithHeight.verify|verify} messages. + * QueryPacketCommitmentsRequest pagination. + * @member {cosmos.base.query.v1beta1.IPageRequest|null|undefined} pagination + * @memberof ibc.core.channel.v1.QueryPacketCommitmentsRequest + * @instance + */ + QueryPacketCommitmentsRequest.prototype.pagination = null; + + /** + * Encodes the specified QueryPacketCommitmentsRequest message. Does not implicitly {@link ibc.core.channel.v1.QueryPacketCommitmentsRequest.verify|verify} messages. * @function encode - * @memberof ibc.core.client.v1.ConsensusStateWithHeight + * @memberof ibc.core.channel.v1.QueryPacketCommitmentsRequest * @static - * @param {ibc.core.client.v1.IConsensusStateWithHeight} message ConsensusStateWithHeight message or plain object to encode + * @param {ibc.core.channel.v1.IQueryPacketCommitmentsRequest} message QueryPacketCommitmentsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ConsensusStateWithHeight.encode = function encode(message, writer) { + QueryPacketCommitmentsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.height != null && Object.hasOwnProperty.call(message, "height")) - $root.ibc.core.client.v1.Height.encode(message.height, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.consensus_state != null && Object.hasOwnProperty.call(message, "consensus_state")) - $root.google.protobuf.Any.encode(message.consensus_state, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.port_id != null && Object.hasOwnProperty.call(message, "port_id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.port_id); + if (message.channel_id != null && Object.hasOwnProperty.call(message, "channel_id")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.channel_id); + if (message.pagination != null && Object.hasOwnProperty.call(message, "pagination")) + $root.cosmos.base.query.v1beta1.PageRequest.encode(message.pagination, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified ConsensusStateWithHeight message, length delimited. Does not implicitly {@link ibc.core.client.v1.ConsensusStateWithHeight.verify|verify} messages. + * Encodes the specified QueryPacketCommitmentsRequest message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryPacketCommitmentsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.client.v1.ConsensusStateWithHeight + * @memberof ibc.core.channel.v1.QueryPacketCommitmentsRequest * @static - * @param {ibc.core.client.v1.IConsensusStateWithHeight} message ConsensusStateWithHeight message or plain object to encode + * @param {ibc.core.channel.v1.IQueryPacketCommitmentsRequest} message QueryPacketCommitmentsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ConsensusStateWithHeight.encodeDelimited = function encodeDelimited(message, writer) { + QueryPacketCommitmentsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ConsensusStateWithHeight message from the specified reader or buffer. + * Decodes a QueryPacketCommitmentsRequest message from the specified reader or buffer. * @function decode - * @memberof ibc.core.client.v1.ConsensusStateWithHeight + * @memberof ibc.core.channel.v1.QueryPacketCommitmentsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.client.v1.ConsensusStateWithHeight} ConsensusStateWithHeight + * @returns {ibc.core.channel.v1.QueryPacketCommitmentsRequest} QueryPacketCommitmentsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ConsensusStateWithHeight.decode = function decode(reader, length) { + QueryPacketCommitmentsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.ConsensusStateWithHeight(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.QueryPacketCommitmentsRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); + message.port_id = reader.string(); break; case 2: - message.consensus_state = $root.google.protobuf.Any.decode(reader, reader.uint32()); + message.channel_id = reader.string(); + break; + case 3: + message.pagination = $root.cosmos.base.query.v1beta1.PageRequest.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -48816,128 +54975,132 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a ConsensusStateWithHeight message from the specified reader or buffer, length delimited. + * Decodes a QueryPacketCommitmentsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.client.v1.ConsensusStateWithHeight + * @memberof ibc.core.channel.v1.QueryPacketCommitmentsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.client.v1.ConsensusStateWithHeight} ConsensusStateWithHeight + * @returns {ibc.core.channel.v1.QueryPacketCommitmentsRequest} QueryPacketCommitmentsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ConsensusStateWithHeight.decodeDelimited = function decodeDelimited(reader) { + QueryPacketCommitmentsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ConsensusStateWithHeight message. + * Verifies a QueryPacketCommitmentsRequest message. * @function verify - * @memberof ibc.core.client.v1.ConsensusStateWithHeight + * @memberof ibc.core.channel.v1.QueryPacketCommitmentsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ConsensusStateWithHeight.verify = function verify(message) { + QueryPacketCommitmentsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.height != null && message.hasOwnProperty("height")) { - let error = $root.ibc.core.client.v1.Height.verify(message.height); - if (error) - return "height." + error; - } - if (message.consensus_state != null && message.hasOwnProperty("consensus_state")) { - let error = $root.google.protobuf.Any.verify(message.consensus_state); + if (message.port_id != null && message.hasOwnProperty("port_id")) + if (!$util.isString(message.port_id)) + return "port_id: string expected"; + if (message.channel_id != null && message.hasOwnProperty("channel_id")) + if (!$util.isString(message.channel_id)) + return "channel_id: string expected"; + if (message.pagination != null && message.hasOwnProperty("pagination")) { + let error = $root.cosmos.base.query.v1beta1.PageRequest.verify(message.pagination); if (error) - return "consensus_state." + error; + return "pagination." + error; } return null; }; /** - * Creates a ConsensusStateWithHeight message from a plain object. Also converts values to their respective internal types. + * Creates a QueryPacketCommitmentsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.client.v1.ConsensusStateWithHeight + * @memberof ibc.core.channel.v1.QueryPacketCommitmentsRequest * @static * @param {Object.} object Plain object - * @returns {ibc.core.client.v1.ConsensusStateWithHeight} ConsensusStateWithHeight + * @returns {ibc.core.channel.v1.QueryPacketCommitmentsRequest} QueryPacketCommitmentsRequest */ - ConsensusStateWithHeight.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.client.v1.ConsensusStateWithHeight) + QueryPacketCommitmentsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.channel.v1.QueryPacketCommitmentsRequest) return object; - let message = new $root.ibc.core.client.v1.ConsensusStateWithHeight(); - if (object.height != null) { - if (typeof object.height !== "object") - throw TypeError(".ibc.core.client.v1.ConsensusStateWithHeight.height: object expected"); - message.height = $root.ibc.core.client.v1.Height.fromObject(object.height); - } - if (object.consensus_state != null) { - if (typeof object.consensus_state !== "object") - throw TypeError(".ibc.core.client.v1.ConsensusStateWithHeight.consensus_state: object expected"); - message.consensus_state = $root.google.protobuf.Any.fromObject(object.consensus_state); + let message = new $root.ibc.core.channel.v1.QueryPacketCommitmentsRequest(); + if (object.port_id != null) + message.port_id = String(object.port_id); + if (object.channel_id != null) + message.channel_id = String(object.channel_id); + if (object.pagination != null) { + if (typeof object.pagination !== "object") + throw TypeError(".ibc.core.channel.v1.QueryPacketCommitmentsRequest.pagination: object expected"); + message.pagination = $root.cosmos.base.query.v1beta1.PageRequest.fromObject(object.pagination); } return message; }; /** - * Creates a plain object from a ConsensusStateWithHeight message. Also converts values to other types if specified. + * Creates a plain object from a QueryPacketCommitmentsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.client.v1.ConsensusStateWithHeight + * @memberof ibc.core.channel.v1.QueryPacketCommitmentsRequest * @static - * @param {ibc.core.client.v1.ConsensusStateWithHeight} message ConsensusStateWithHeight + * @param {ibc.core.channel.v1.QueryPacketCommitmentsRequest} message QueryPacketCommitmentsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ConsensusStateWithHeight.toObject = function toObject(message, options) { + QueryPacketCommitmentsRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - object.height = null; - object.consensus_state = null; - } - if (message.height != null && message.hasOwnProperty("height")) - object.height = $root.ibc.core.client.v1.Height.toObject(message.height, options); - if (message.consensus_state != null && message.hasOwnProperty("consensus_state")) - object.consensus_state = $root.google.protobuf.Any.toObject(message.consensus_state, options); + object.port_id = ""; + object.channel_id = ""; + object.pagination = null; + } + if (message.port_id != null && message.hasOwnProperty("port_id")) + object.port_id = message.port_id; + if (message.channel_id != null && message.hasOwnProperty("channel_id")) + object.channel_id = message.channel_id; + if (message.pagination != null && message.hasOwnProperty("pagination")) + object.pagination = $root.cosmos.base.query.v1beta1.PageRequest.toObject(message.pagination, options); return object; }; /** - * Converts this ConsensusStateWithHeight to JSON. + * Converts this QueryPacketCommitmentsRequest to JSON. * @function toJSON - * @memberof ibc.core.client.v1.ConsensusStateWithHeight + * @memberof ibc.core.channel.v1.QueryPacketCommitmentsRequest * @instance * @returns {Object.} JSON object */ - ConsensusStateWithHeight.prototype.toJSON = function toJSON() { + QueryPacketCommitmentsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ConsensusStateWithHeight; + return QueryPacketCommitmentsRequest; })(); - v1.ClientConsensusStates = (function() { + v1.QueryPacketCommitmentsResponse = (function() { /** - * Properties of a ClientConsensusStates. - * @memberof ibc.core.client.v1 - * @interface IClientConsensusStates - * @property {string|null} [client_id] ClientConsensusStates client_id - * @property {Array.|null} [consensus_states] ClientConsensusStates consensus_states + * Properties of a QueryPacketCommitmentsResponse. + * @memberof ibc.core.channel.v1 + * @interface IQueryPacketCommitmentsResponse + * @property {Array.|null} [commitments] QueryPacketCommitmentsResponse commitments + * @property {cosmos.base.query.v1beta1.IPageResponse|null} [pagination] QueryPacketCommitmentsResponse pagination + * @property {ibc.core.client.v1.IHeight|null} [height] QueryPacketCommitmentsResponse height */ /** - * Constructs a new ClientConsensusStates. - * @memberof ibc.core.client.v1 - * @classdesc Represents a ClientConsensusStates. - * @implements IClientConsensusStates + * Constructs a new QueryPacketCommitmentsResponse. + * @memberof ibc.core.channel.v1 + * @classdesc Represents a QueryPacketCommitmentsResponse. + * @implements IQueryPacketCommitmentsResponse * @constructor - * @param {ibc.core.client.v1.IClientConsensusStates=} [properties] Properties to set + * @param {ibc.core.channel.v1.IQueryPacketCommitmentsResponse=} [properties] Properties to set */ - function ClientConsensusStates(properties) { - this.consensus_states = []; + function QueryPacketCommitmentsResponse(properties) { + this.commitments = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -48945,79 +55108,92 @@ export const ibc = $root.ibc = (() => { } /** - * ClientConsensusStates client_id. - * @member {string} client_id - * @memberof ibc.core.client.v1.ClientConsensusStates + * QueryPacketCommitmentsResponse commitments. + * @member {Array.} commitments + * @memberof ibc.core.channel.v1.QueryPacketCommitmentsResponse * @instance */ - ClientConsensusStates.prototype.client_id = ""; + QueryPacketCommitmentsResponse.prototype.commitments = $util.emptyArray; /** - * ClientConsensusStates consensus_states. - * @member {Array.} consensus_states - * @memberof ibc.core.client.v1.ClientConsensusStates + * QueryPacketCommitmentsResponse pagination. + * @member {cosmos.base.query.v1beta1.IPageResponse|null|undefined} pagination + * @memberof ibc.core.channel.v1.QueryPacketCommitmentsResponse * @instance */ - ClientConsensusStates.prototype.consensus_states = $util.emptyArray; + QueryPacketCommitmentsResponse.prototype.pagination = null; /** - * Encodes the specified ClientConsensusStates message. Does not implicitly {@link ibc.core.client.v1.ClientConsensusStates.verify|verify} messages. + * QueryPacketCommitmentsResponse height. + * @member {ibc.core.client.v1.IHeight|null|undefined} height + * @memberof ibc.core.channel.v1.QueryPacketCommitmentsResponse + * @instance + */ + QueryPacketCommitmentsResponse.prototype.height = null; + + /** + * Encodes the specified QueryPacketCommitmentsResponse message. Does not implicitly {@link ibc.core.channel.v1.QueryPacketCommitmentsResponse.verify|verify} messages. * @function encode - * @memberof ibc.core.client.v1.ClientConsensusStates + * @memberof ibc.core.channel.v1.QueryPacketCommitmentsResponse * @static - * @param {ibc.core.client.v1.IClientConsensusStates} message ClientConsensusStates message or plain object to encode + * @param {ibc.core.channel.v1.IQueryPacketCommitmentsResponse} message QueryPacketCommitmentsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ClientConsensusStates.encode = function encode(message, writer) { + QueryPacketCommitmentsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.client_id != null && Object.hasOwnProperty.call(message, "client_id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.client_id); - if (message.consensus_states != null && message.consensus_states.length) - for (let i = 0; i < message.consensus_states.length; ++i) - $root.ibc.core.client.v1.ConsensusStateWithHeight.encode(message.consensus_states[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.commitments != null && message.commitments.length) + for (let i = 0; i < message.commitments.length; ++i) + $root.ibc.core.channel.v1.PacketState.encode(message.commitments[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.pagination != null && Object.hasOwnProperty.call(message, "pagination")) + $root.cosmos.base.query.v1beta1.PageResponse.encode(message.pagination, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.height != null && Object.hasOwnProperty.call(message, "height")) + $root.ibc.core.client.v1.Height.encode(message.height, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified ClientConsensusStates message, length delimited. Does not implicitly {@link ibc.core.client.v1.ClientConsensusStates.verify|verify} messages. + * Encodes the specified QueryPacketCommitmentsResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryPacketCommitmentsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.client.v1.ClientConsensusStates + * @memberof ibc.core.channel.v1.QueryPacketCommitmentsResponse * @static - * @param {ibc.core.client.v1.IClientConsensusStates} message ClientConsensusStates message or plain object to encode + * @param {ibc.core.channel.v1.IQueryPacketCommitmentsResponse} message QueryPacketCommitmentsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ClientConsensusStates.encodeDelimited = function encodeDelimited(message, writer) { + QueryPacketCommitmentsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ClientConsensusStates message from the specified reader or buffer. + * Decodes a QueryPacketCommitmentsResponse message from the specified reader or buffer. * @function decode - * @memberof ibc.core.client.v1.ClientConsensusStates + * @memberof ibc.core.channel.v1.QueryPacketCommitmentsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.client.v1.ClientConsensusStates} ClientConsensusStates + * @returns {ibc.core.channel.v1.QueryPacketCommitmentsResponse} QueryPacketCommitmentsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ClientConsensusStates.decode = function decode(reader, length) { + QueryPacketCommitmentsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.ClientConsensusStates(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.QueryPacketCommitmentsResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.client_id = reader.string(); + if (!(message.commitments && message.commitments.length)) + message.commitments = []; + message.commitments.push($root.ibc.core.channel.v1.PacketState.decode(reader, reader.uint32())); break; case 2: - if (!(message.consensus_states && message.consensus_states.length)) - message.consensus_states = []; - message.consensus_states.push($root.ibc.core.client.v1.ConsensusStateWithHeight.decode(reader, reader.uint32())); + message.pagination = $root.cosmos.base.query.v1beta1.PageResponse.decode(reader, reader.uint32()); + break; + case 3: + message.height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -49028,136 +55204,154 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a ClientConsensusStates message from the specified reader or buffer, length delimited. + * Decodes a QueryPacketCommitmentsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.client.v1.ClientConsensusStates + * @memberof ibc.core.channel.v1.QueryPacketCommitmentsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.client.v1.ClientConsensusStates} ClientConsensusStates + * @returns {ibc.core.channel.v1.QueryPacketCommitmentsResponse} QueryPacketCommitmentsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ClientConsensusStates.decodeDelimited = function decodeDelimited(reader) { + QueryPacketCommitmentsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ClientConsensusStates message. + * Verifies a QueryPacketCommitmentsResponse message. * @function verify - * @memberof ibc.core.client.v1.ClientConsensusStates + * @memberof ibc.core.channel.v1.QueryPacketCommitmentsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ClientConsensusStates.verify = function verify(message) { + QueryPacketCommitmentsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.client_id != null && message.hasOwnProperty("client_id")) - if (!$util.isString(message.client_id)) - return "client_id: string expected"; - if (message.consensus_states != null && message.hasOwnProperty("consensus_states")) { - if (!Array.isArray(message.consensus_states)) - return "consensus_states: array expected"; - for (let i = 0; i < message.consensus_states.length; ++i) { - let error = $root.ibc.core.client.v1.ConsensusStateWithHeight.verify(message.consensus_states[i]); + if (message.commitments != null && message.hasOwnProperty("commitments")) { + if (!Array.isArray(message.commitments)) + return "commitments: array expected"; + for (let i = 0; i < message.commitments.length; ++i) { + let error = $root.ibc.core.channel.v1.PacketState.verify(message.commitments[i]); if (error) - return "consensus_states." + error; + return "commitments." + error; } } + if (message.pagination != null && message.hasOwnProperty("pagination")) { + let error = $root.cosmos.base.query.v1beta1.PageResponse.verify(message.pagination); + if (error) + return "pagination." + error; + } + if (message.height != null && message.hasOwnProperty("height")) { + let error = $root.ibc.core.client.v1.Height.verify(message.height); + if (error) + return "height." + error; + } return null; }; /** - * Creates a ClientConsensusStates message from a plain object. Also converts values to their respective internal types. + * Creates a QueryPacketCommitmentsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.client.v1.ClientConsensusStates + * @memberof ibc.core.channel.v1.QueryPacketCommitmentsResponse * @static * @param {Object.} object Plain object - * @returns {ibc.core.client.v1.ClientConsensusStates} ClientConsensusStates + * @returns {ibc.core.channel.v1.QueryPacketCommitmentsResponse} QueryPacketCommitmentsResponse */ - ClientConsensusStates.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.client.v1.ClientConsensusStates) + QueryPacketCommitmentsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.channel.v1.QueryPacketCommitmentsResponse) return object; - let message = new $root.ibc.core.client.v1.ClientConsensusStates(); - if (object.client_id != null) - message.client_id = String(object.client_id); - if (object.consensus_states) { - if (!Array.isArray(object.consensus_states)) - throw TypeError(".ibc.core.client.v1.ClientConsensusStates.consensus_states: array expected"); - message.consensus_states = []; - for (let i = 0; i < object.consensus_states.length; ++i) { - if (typeof object.consensus_states[i] !== "object") - throw TypeError(".ibc.core.client.v1.ClientConsensusStates.consensus_states: object expected"); - message.consensus_states[i] = $root.ibc.core.client.v1.ConsensusStateWithHeight.fromObject(object.consensus_states[i]); + let message = new $root.ibc.core.channel.v1.QueryPacketCommitmentsResponse(); + if (object.commitments) { + if (!Array.isArray(object.commitments)) + throw TypeError(".ibc.core.channel.v1.QueryPacketCommitmentsResponse.commitments: array expected"); + message.commitments = []; + for (let i = 0; i < object.commitments.length; ++i) { + if (typeof object.commitments[i] !== "object") + throw TypeError(".ibc.core.channel.v1.QueryPacketCommitmentsResponse.commitments: object expected"); + message.commitments[i] = $root.ibc.core.channel.v1.PacketState.fromObject(object.commitments[i]); } } + if (object.pagination != null) { + if (typeof object.pagination !== "object") + throw TypeError(".ibc.core.channel.v1.QueryPacketCommitmentsResponse.pagination: object expected"); + message.pagination = $root.cosmos.base.query.v1beta1.PageResponse.fromObject(object.pagination); + } + if (object.height != null) { + if (typeof object.height !== "object") + throw TypeError(".ibc.core.channel.v1.QueryPacketCommitmentsResponse.height: object expected"); + message.height = $root.ibc.core.client.v1.Height.fromObject(object.height); + } return message; }; /** - * Creates a plain object from a ClientConsensusStates message. Also converts values to other types if specified. + * Creates a plain object from a QueryPacketCommitmentsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.client.v1.ClientConsensusStates + * @memberof ibc.core.channel.v1.QueryPacketCommitmentsResponse * @static - * @param {ibc.core.client.v1.ClientConsensusStates} message ClientConsensusStates + * @param {ibc.core.channel.v1.QueryPacketCommitmentsResponse} message QueryPacketCommitmentsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ClientConsensusStates.toObject = function toObject(message, options) { + QueryPacketCommitmentsResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) - object.consensus_states = []; - if (options.defaults) - object.client_id = ""; - if (message.client_id != null && message.hasOwnProperty("client_id")) - object.client_id = message.client_id; - if (message.consensus_states && message.consensus_states.length) { - object.consensus_states = []; - for (let j = 0; j < message.consensus_states.length; ++j) - object.consensus_states[j] = $root.ibc.core.client.v1.ConsensusStateWithHeight.toObject(message.consensus_states[j], options); + object.commitments = []; + if (options.defaults) { + object.pagination = null; + object.height = null; } + if (message.commitments && message.commitments.length) { + object.commitments = []; + for (let j = 0; j < message.commitments.length; ++j) + object.commitments[j] = $root.ibc.core.channel.v1.PacketState.toObject(message.commitments[j], options); + } + if (message.pagination != null && message.hasOwnProperty("pagination")) + object.pagination = $root.cosmos.base.query.v1beta1.PageResponse.toObject(message.pagination, options); + if (message.height != null && message.hasOwnProperty("height")) + object.height = $root.ibc.core.client.v1.Height.toObject(message.height, options); return object; }; /** - * Converts this ClientConsensusStates to JSON. + * Converts this QueryPacketCommitmentsResponse to JSON. * @function toJSON - * @memberof ibc.core.client.v1.ClientConsensusStates + * @memberof ibc.core.channel.v1.QueryPacketCommitmentsResponse * @instance * @returns {Object.} JSON object */ - ClientConsensusStates.prototype.toJSON = function toJSON() { + QueryPacketCommitmentsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ClientConsensusStates; + return QueryPacketCommitmentsResponse; })(); - v1.ClientUpdateProposal = (function() { + v1.QueryPacketReceiptRequest = (function() { /** - * Properties of a ClientUpdateProposal. - * @memberof ibc.core.client.v1 - * @interface IClientUpdateProposal - * @property {string|null} [title] ClientUpdateProposal title - * @property {string|null} [description] ClientUpdateProposal description - * @property {string|null} [subject_client_id] ClientUpdateProposal subject_client_id - * @property {string|null} [substitute_client_id] ClientUpdateProposal substitute_client_id + * Properties of a QueryPacketReceiptRequest. + * @memberof ibc.core.channel.v1 + * @interface IQueryPacketReceiptRequest + * @property {string|null} [port_id] QueryPacketReceiptRequest port_id + * @property {string|null} [channel_id] QueryPacketReceiptRequest channel_id + * @property {Long|null} [sequence] QueryPacketReceiptRequest sequence */ /** - * Constructs a new ClientUpdateProposal. - * @memberof ibc.core.client.v1 - * @classdesc Represents a ClientUpdateProposal. - * @implements IClientUpdateProposal + * Constructs a new QueryPacketReceiptRequest. + * @memberof ibc.core.channel.v1 + * @classdesc Represents a QueryPacketReceiptRequest. + * @implements IQueryPacketReceiptRequest * @constructor - * @param {ibc.core.client.v1.IClientUpdateProposal=} [properties] Properties to set + * @param {ibc.core.channel.v1.IQueryPacketReceiptRequest=} [properties] Properties to set */ - function ClientUpdateProposal(properties) { + function QueryPacketReceiptRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -49165,102 +55359,89 @@ export const ibc = $root.ibc = (() => { } /** - * ClientUpdateProposal title. - * @member {string} title - * @memberof ibc.core.client.v1.ClientUpdateProposal - * @instance - */ - ClientUpdateProposal.prototype.title = ""; - - /** - * ClientUpdateProposal description. - * @member {string} description - * @memberof ibc.core.client.v1.ClientUpdateProposal + * QueryPacketReceiptRequest port_id. + * @member {string} port_id + * @memberof ibc.core.channel.v1.QueryPacketReceiptRequest * @instance */ - ClientUpdateProposal.prototype.description = ""; + QueryPacketReceiptRequest.prototype.port_id = ""; /** - * ClientUpdateProposal subject_client_id. - * @member {string} subject_client_id - * @memberof ibc.core.client.v1.ClientUpdateProposal + * QueryPacketReceiptRequest channel_id. + * @member {string} channel_id + * @memberof ibc.core.channel.v1.QueryPacketReceiptRequest * @instance */ - ClientUpdateProposal.prototype.subject_client_id = ""; + QueryPacketReceiptRequest.prototype.channel_id = ""; /** - * ClientUpdateProposal substitute_client_id. - * @member {string} substitute_client_id - * @memberof ibc.core.client.v1.ClientUpdateProposal + * QueryPacketReceiptRequest sequence. + * @member {Long} sequence + * @memberof ibc.core.channel.v1.QueryPacketReceiptRequest * @instance */ - ClientUpdateProposal.prototype.substitute_client_id = ""; + QueryPacketReceiptRequest.prototype.sequence = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** - * Encodes the specified ClientUpdateProposal message. Does not implicitly {@link ibc.core.client.v1.ClientUpdateProposal.verify|verify} messages. + * Encodes the specified QueryPacketReceiptRequest message. Does not implicitly {@link ibc.core.channel.v1.QueryPacketReceiptRequest.verify|verify} messages. * @function encode - * @memberof ibc.core.client.v1.ClientUpdateProposal + * @memberof ibc.core.channel.v1.QueryPacketReceiptRequest * @static - * @param {ibc.core.client.v1.IClientUpdateProposal} message ClientUpdateProposal message or plain object to encode + * @param {ibc.core.channel.v1.IQueryPacketReceiptRequest} message QueryPacketReceiptRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ClientUpdateProposal.encode = function encode(message, writer) { + QueryPacketReceiptRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.title != null && Object.hasOwnProperty.call(message, "title")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.title); - if (message.description != null && Object.hasOwnProperty.call(message, "description")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.description); - if (message.subject_client_id != null && Object.hasOwnProperty.call(message, "subject_client_id")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.subject_client_id); - if (message.substitute_client_id != null && Object.hasOwnProperty.call(message, "substitute_client_id")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.substitute_client_id); + if (message.port_id != null && Object.hasOwnProperty.call(message, "port_id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.port_id); + if (message.channel_id != null && Object.hasOwnProperty.call(message, "channel_id")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.channel_id); + if (message.sequence != null && Object.hasOwnProperty.call(message, "sequence")) + writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.sequence); return writer; }; /** - * Encodes the specified ClientUpdateProposal message, length delimited. Does not implicitly {@link ibc.core.client.v1.ClientUpdateProposal.verify|verify} messages. + * Encodes the specified QueryPacketReceiptRequest message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryPacketReceiptRequest.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.client.v1.ClientUpdateProposal + * @memberof ibc.core.channel.v1.QueryPacketReceiptRequest * @static - * @param {ibc.core.client.v1.IClientUpdateProposal} message ClientUpdateProposal message or plain object to encode + * @param {ibc.core.channel.v1.IQueryPacketReceiptRequest} message QueryPacketReceiptRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ClientUpdateProposal.encodeDelimited = function encodeDelimited(message, writer) { + QueryPacketReceiptRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ClientUpdateProposal message from the specified reader or buffer. + * Decodes a QueryPacketReceiptRequest message from the specified reader or buffer. * @function decode - * @memberof ibc.core.client.v1.ClientUpdateProposal + * @memberof ibc.core.channel.v1.QueryPacketReceiptRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.client.v1.ClientUpdateProposal} ClientUpdateProposal + * @returns {ibc.core.channel.v1.QueryPacketReceiptRequest} QueryPacketReceiptRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ClientUpdateProposal.decode = function decode(reader, length) { + QueryPacketReceiptRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.ClientUpdateProposal(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.QueryPacketReceiptRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.title = reader.string(); + message.port_id = reader.string(); break; case 2: - message.description = reader.string(); + message.channel_id = reader.string(); break; case 3: - message.subject_client_id = reader.string(); - break; - case 4: - message.substitute_client_id = reader.string(); + message.sequence = reader.uint64(); break; default: reader.skipType(tag & 7); @@ -49271,135 +55452,140 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a ClientUpdateProposal message from the specified reader or buffer, length delimited. + * Decodes a QueryPacketReceiptRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.client.v1.ClientUpdateProposal + * @memberof ibc.core.channel.v1.QueryPacketReceiptRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.client.v1.ClientUpdateProposal} ClientUpdateProposal + * @returns {ibc.core.channel.v1.QueryPacketReceiptRequest} QueryPacketReceiptRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ClientUpdateProposal.decodeDelimited = function decodeDelimited(reader) { + QueryPacketReceiptRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ClientUpdateProposal message. + * Verifies a QueryPacketReceiptRequest message. * @function verify - * @memberof ibc.core.client.v1.ClientUpdateProposal + * @memberof ibc.core.channel.v1.QueryPacketReceiptRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ClientUpdateProposal.verify = function verify(message) { + QueryPacketReceiptRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.title != null && message.hasOwnProperty("title")) - if (!$util.isString(message.title)) - return "title: string expected"; - if (message.description != null && message.hasOwnProperty("description")) - if (!$util.isString(message.description)) - return "description: string expected"; - if (message.subject_client_id != null && message.hasOwnProperty("subject_client_id")) - if (!$util.isString(message.subject_client_id)) - return "subject_client_id: string expected"; - if (message.substitute_client_id != null && message.hasOwnProperty("substitute_client_id")) - if (!$util.isString(message.substitute_client_id)) - return "substitute_client_id: string expected"; + if (message.port_id != null && message.hasOwnProperty("port_id")) + if (!$util.isString(message.port_id)) + return "port_id: string expected"; + if (message.channel_id != null && message.hasOwnProperty("channel_id")) + if (!$util.isString(message.channel_id)) + return "channel_id: string expected"; + if (message.sequence != null && message.hasOwnProperty("sequence")) + if (!$util.isInteger(message.sequence) && !(message.sequence && $util.isInteger(message.sequence.low) && $util.isInteger(message.sequence.high))) + return "sequence: integer|Long expected"; return null; }; /** - * Creates a ClientUpdateProposal message from a plain object. Also converts values to their respective internal types. + * Creates a QueryPacketReceiptRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.client.v1.ClientUpdateProposal + * @memberof ibc.core.channel.v1.QueryPacketReceiptRequest * @static * @param {Object.} object Plain object - * @returns {ibc.core.client.v1.ClientUpdateProposal} ClientUpdateProposal + * @returns {ibc.core.channel.v1.QueryPacketReceiptRequest} QueryPacketReceiptRequest */ - ClientUpdateProposal.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.client.v1.ClientUpdateProposal) + QueryPacketReceiptRequest.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.channel.v1.QueryPacketReceiptRequest) return object; - let message = new $root.ibc.core.client.v1.ClientUpdateProposal(); - if (object.title != null) - message.title = String(object.title); - if (object.description != null) - message.description = String(object.description); - if (object.subject_client_id != null) - message.subject_client_id = String(object.subject_client_id); - if (object.substitute_client_id != null) - message.substitute_client_id = String(object.substitute_client_id); + let message = new $root.ibc.core.channel.v1.QueryPacketReceiptRequest(); + if (object.port_id != null) + message.port_id = String(object.port_id); + if (object.channel_id != null) + message.channel_id = String(object.channel_id); + if (object.sequence != null) + if ($util.Long) + (message.sequence = $util.Long.fromValue(object.sequence)).unsigned = true; + else if (typeof object.sequence === "string") + message.sequence = parseInt(object.sequence, 10); + else if (typeof object.sequence === "number") + message.sequence = object.sequence; + else if (typeof object.sequence === "object") + message.sequence = new $util.LongBits(object.sequence.low >>> 0, object.sequence.high >>> 0).toNumber(true); return message; }; /** - * Creates a plain object from a ClientUpdateProposal message. Also converts values to other types if specified. + * Creates a plain object from a QueryPacketReceiptRequest message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.client.v1.ClientUpdateProposal + * @memberof ibc.core.channel.v1.QueryPacketReceiptRequest * @static - * @param {ibc.core.client.v1.ClientUpdateProposal} message ClientUpdateProposal + * @param {ibc.core.channel.v1.QueryPacketReceiptRequest} message QueryPacketReceiptRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ClientUpdateProposal.toObject = function toObject(message, options) { + QueryPacketReceiptRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - object.title = ""; - object.description = ""; - object.subject_client_id = ""; - object.substitute_client_id = ""; + object.port_id = ""; + object.channel_id = ""; + if ($util.Long) { + let long = new $util.Long(0, 0, true); + object.sequence = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.sequence = options.longs === String ? "0" : 0; } - if (message.title != null && message.hasOwnProperty("title")) - object.title = message.title; - if (message.description != null && message.hasOwnProperty("description")) - object.description = message.description; - if (message.subject_client_id != null && message.hasOwnProperty("subject_client_id")) - object.subject_client_id = message.subject_client_id; - if (message.substitute_client_id != null && message.hasOwnProperty("substitute_client_id")) - object.substitute_client_id = message.substitute_client_id; + if (message.port_id != null && message.hasOwnProperty("port_id")) + object.port_id = message.port_id; + if (message.channel_id != null && message.hasOwnProperty("channel_id")) + object.channel_id = message.channel_id; + if (message.sequence != null && message.hasOwnProperty("sequence")) + if (typeof message.sequence === "number") + object.sequence = options.longs === String ? String(message.sequence) : message.sequence; + else + object.sequence = options.longs === String ? $util.Long.prototype.toString.call(message.sequence) : options.longs === Number ? new $util.LongBits(message.sequence.low >>> 0, message.sequence.high >>> 0).toNumber(true) : message.sequence; return object; }; /** - * Converts this ClientUpdateProposal to JSON. + * Converts this QueryPacketReceiptRequest to JSON. * @function toJSON - * @memberof ibc.core.client.v1.ClientUpdateProposal + * @memberof ibc.core.channel.v1.QueryPacketReceiptRequest * @instance * @returns {Object.} JSON object */ - ClientUpdateProposal.prototype.toJSON = function toJSON() { + QueryPacketReceiptRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ClientUpdateProposal; + return QueryPacketReceiptRequest; })(); - v1.UpgradeProposal = (function() { + v1.QueryPacketReceiptResponse = (function() { /** - * Properties of an UpgradeProposal. - * @memberof ibc.core.client.v1 - * @interface IUpgradeProposal - * @property {string|null} [title] UpgradeProposal title - * @property {string|null} [description] UpgradeProposal description - * @property {cosmos.upgrade.v1beta1.IPlan|null} [plan] UpgradeProposal plan - * @property {google.protobuf.IAny|null} [upgraded_client_state] UpgradeProposal upgraded_client_state + * Properties of a QueryPacketReceiptResponse. + * @memberof ibc.core.channel.v1 + * @interface IQueryPacketReceiptResponse + * @property {boolean|null} [received] QueryPacketReceiptResponse received + * @property {Uint8Array|null} [proof] QueryPacketReceiptResponse proof + * @property {ibc.core.client.v1.IHeight|null} [proof_height] QueryPacketReceiptResponse proof_height */ /** - * Constructs a new UpgradeProposal. - * @memberof ibc.core.client.v1 - * @classdesc Represents an UpgradeProposal. - * @implements IUpgradeProposal + * Constructs a new QueryPacketReceiptResponse. + * @memberof ibc.core.channel.v1 + * @classdesc Represents a QueryPacketReceiptResponse. + * @implements IQueryPacketReceiptResponse * @constructor - * @param {ibc.core.client.v1.IUpgradeProposal=} [properties] Properties to set + * @param {ibc.core.channel.v1.IQueryPacketReceiptResponse=} [properties] Properties to set */ - function UpgradeProposal(properties) { + function QueryPacketReceiptResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -49407,102 +55593,89 @@ export const ibc = $root.ibc = (() => { } /** - * UpgradeProposal title. - * @member {string} title - * @memberof ibc.core.client.v1.UpgradeProposal - * @instance - */ - UpgradeProposal.prototype.title = ""; - - /** - * UpgradeProposal description. - * @member {string} description - * @memberof ibc.core.client.v1.UpgradeProposal + * QueryPacketReceiptResponse received. + * @member {boolean} received + * @memberof ibc.core.channel.v1.QueryPacketReceiptResponse * @instance */ - UpgradeProposal.prototype.description = ""; + QueryPacketReceiptResponse.prototype.received = false; /** - * UpgradeProposal plan. - * @member {cosmos.upgrade.v1beta1.IPlan|null|undefined} plan - * @memberof ibc.core.client.v1.UpgradeProposal + * QueryPacketReceiptResponse proof. + * @member {Uint8Array} proof + * @memberof ibc.core.channel.v1.QueryPacketReceiptResponse * @instance */ - UpgradeProposal.prototype.plan = null; + QueryPacketReceiptResponse.prototype.proof = $util.newBuffer([]); /** - * UpgradeProposal upgraded_client_state. - * @member {google.protobuf.IAny|null|undefined} upgraded_client_state - * @memberof ibc.core.client.v1.UpgradeProposal + * QueryPacketReceiptResponse proof_height. + * @member {ibc.core.client.v1.IHeight|null|undefined} proof_height + * @memberof ibc.core.channel.v1.QueryPacketReceiptResponse * @instance */ - UpgradeProposal.prototype.upgraded_client_state = null; + QueryPacketReceiptResponse.prototype.proof_height = null; /** - * Encodes the specified UpgradeProposal message. Does not implicitly {@link ibc.core.client.v1.UpgradeProposal.verify|verify} messages. + * Encodes the specified QueryPacketReceiptResponse message. Does not implicitly {@link ibc.core.channel.v1.QueryPacketReceiptResponse.verify|verify} messages. * @function encode - * @memberof ibc.core.client.v1.UpgradeProposal + * @memberof ibc.core.channel.v1.QueryPacketReceiptResponse * @static - * @param {ibc.core.client.v1.IUpgradeProposal} message UpgradeProposal message or plain object to encode + * @param {ibc.core.channel.v1.IQueryPacketReceiptResponse} message QueryPacketReceiptResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpgradeProposal.encode = function encode(message, writer) { + QueryPacketReceiptResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.title != null && Object.hasOwnProperty.call(message, "title")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.title); - if (message.description != null && Object.hasOwnProperty.call(message, "description")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.description); - if (message.plan != null && Object.hasOwnProperty.call(message, "plan")) - $root.cosmos.upgrade.v1beta1.Plan.encode(message.plan, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.upgraded_client_state != null && Object.hasOwnProperty.call(message, "upgraded_client_state")) - $root.google.protobuf.Any.encode(message.upgraded_client_state, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.received != null && Object.hasOwnProperty.call(message, "received")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.received); + if (message.proof != null && Object.hasOwnProperty.call(message, "proof")) + writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.proof); + if (message.proof_height != null && Object.hasOwnProperty.call(message, "proof_height")) + $root.ibc.core.client.v1.Height.encode(message.proof_height, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; /** - * Encodes the specified UpgradeProposal message, length delimited. Does not implicitly {@link ibc.core.client.v1.UpgradeProposal.verify|verify} messages. + * Encodes the specified QueryPacketReceiptResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryPacketReceiptResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.client.v1.UpgradeProposal + * @memberof ibc.core.channel.v1.QueryPacketReceiptResponse * @static - * @param {ibc.core.client.v1.IUpgradeProposal} message UpgradeProposal message or plain object to encode + * @param {ibc.core.channel.v1.IQueryPacketReceiptResponse} message QueryPacketReceiptResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpgradeProposal.encodeDelimited = function encodeDelimited(message, writer) { + QueryPacketReceiptResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpgradeProposal message from the specified reader or buffer. + * Decodes a QueryPacketReceiptResponse message from the specified reader or buffer. * @function decode - * @memberof ibc.core.client.v1.UpgradeProposal + * @memberof ibc.core.channel.v1.QueryPacketReceiptResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.client.v1.UpgradeProposal} UpgradeProposal + * @returns {ibc.core.channel.v1.QueryPacketReceiptResponse} QueryPacketReceiptResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpgradeProposal.decode = function decode(reader, length) { + QueryPacketReceiptResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.UpgradeProposal(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.QueryPacketReceiptResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.title = reader.string(); - break; case 2: - message.description = reader.string(); + message.received = reader.bool(); break; case 3: - message.plan = $root.cosmos.upgrade.v1beta1.Plan.decode(reader, reader.uint32()); + message.proof = reader.bytes(); break; case 4: - message.upgraded_client_state = $root.google.protobuf.Any.decode(reader, reader.uint32()); + message.proof_height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -49513,143 +55686,140 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes an UpgradeProposal message from the specified reader or buffer, length delimited. + * Decodes a QueryPacketReceiptResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.client.v1.UpgradeProposal + * @memberof ibc.core.channel.v1.QueryPacketReceiptResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.client.v1.UpgradeProposal} UpgradeProposal + * @returns {ibc.core.channel.v1.QueryPacketReceiptResponse} QueryPacketReceiptResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpgradeProposal.decodeDelimited = function decodeDelimited(reader) { + QueryPacketReceiptResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpgradeProposal message. + * Verifies a QueryPacketReceiptResponse message. * @function verify - * @memberof ibc.core.client.v1.UpgradeProposal + * @memberof ibc.core.channel.v1.QueryPacketReceiptResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpgradeProposal.verify = function verify(message) { + QueryPacketReceiptResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.title != null && message.hasOwnProperty("title")) - if (!$util.isString(message.title)) - return "title: string expected"; - if (message.description != null && message.hasOwnProperty("description")) - if (!$util.isString(message.description)) - return "description: string expected"; - if (message.plan != null && message.hasOwnProperty("plan")) { - let error = $root.cosmos.upgrade.v1beta1.Plan.verify(message.plan); - if (error) - return "plan." + error; - } - if (message.upgraded_client_state != null && message.hasOwnProperty("upgraded_client_state")) { - let error = $root.google.protobuf.Any.verify(message.upgraded_client_state); + if (message.received != null && message.hasOwnProperty("received")) + if (typeof message.received !== "boolean") + return "received: boolean expected"; + if (message.proof != null && message.hasOwnProperty("proof")) + if (!(message.proof && typeof message.proof.length === "number" || $util.isString(message.proof))) + return "proof: buffer expected"; + if (message.proof_height != null && message.hasOwnProperty("proof_height")) { + let error = $root.ibc.core.client.v1.Height.verify(message.proof_height); if (error) - return "upgraded_client_state." + error; + return "proof_height." + error; } return null; }; /** - * Creates an UpgradeProposal message from a plain object. Also converts values to their respective internal types. + * Creates a QueryPacketReceiptResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.client.v1.UpgradeProposal + * @memberof ibc.core.channel.v1.QueryPacketReceiptResponse * @static * @param {Object.} object Plain object - * @returns {ibc.core.client.v1.UpgradeProposal} UpgradeProposal + * @returns {ibc.core.channel.v1.QueryPacketReceiptResponse} QueryPacketReceiptResponse */ - UpgradeProposal.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.client.v1.UpgradeProposal) + QueryPacketReceiptResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.channel.v1.QueryPacketReceiptResponse) return object; - let message = new $root.ibc.core.client.v1.UpgradeProposal(); - if (object.title != null) - message.title = String(object.title); - if (object.description != null) - message.description = String(object.description); - if (object.plan != null) { - if (typeof object.plan !== "object") - throw TypeError(".ibc.core.client.v1.UpgradeProposal.plan: object expected"); - message.plan = $root.cosmos.upgrade.v1beta1.Plan.fromObject(object.plan); - } - if (object.upgraded_client_state != null) { - if (typeof object.upgraded_client_state !== "object") - throw TypeError(".ibc.core.client.v1.UpgradeProposal.upgraded_client_state: object expected"); - message.upgraded_client_state = $root.google.protobuf.Any.fromObject(object.upgraded_client_state); + let message = new $root.ibc.core.channel.v1.QueryPacketReceiptResponse(); + if (object.received != null) + message.received = Boolean(object.received); + if (object.proof != null) + if (typeof object.proof === "string") + $util.base64.decode(object.proof, message.proof = $util.newBuffer($util.base64.length(object.proof)), 0); + else if (object.proof.length) + message.proof = object.proof; + if (object.proof_height != null) { + if (typeof object.proof_height !== "object") + throw TypeError(".ibc.core.channel.v1.QueryPacketReceiptResponse.proof_height: object expected"); + message.proof_height = $root.ibc.core.client.v1.Height.fromObject(object.proof_height); } return message; }; /** - * Creates a plain object from an UpgradeProposal message. Also converts values to other types if specified. + * Creates a plain object from a QueryPacketReceiptResponse message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.client.v1.UpgradeProposal + * @memberof ibc.core.channel.v1.QueryPacketReceiptResponse * @static - * @param {ibc.core.client.v1.UpgradeProposal} message UpgradeProposal + * @param {ibc.core.channel.v1.QueryPacketReceiptResponse} message QueryPacketReceiptResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpgradeProposal.toObject = function toObject(message, options) { + QueryPacketReceiptResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - object.title = ""; - object.description = ""; - object.plan = null; - object.upgraded_client_state = null; + object.received = false; + if (options.bytes === String) + object.proof = ""; + else { + object.proof = []; + if (options.bytes !== Array) + object.proof = $util.newBuffer(object.proof); + } + object.proof_height = null; } - if (message.title != null && message.hasOwnProperty("title")) - object.title = message.title; - if (message.description != null && message.hasOwnProperty("description")) - object.description = message.description; - if (message.plan != null && message.hasOwnProperty("plan")) - object.plan = $root.cosmos.upgrade.v1beta1.Plan.toObject(message.plan, options); - if (message.upgraded_client_state != null && message.hasOwnProperty("upgraded_client_state")) - object.upgraded_client_state = $root.google.protobuf.Any.toObject(message.upgraded_client_state, options); + if (message.received != null && message.hasOwnProperty("received")) + object.received = message.received; + if (message.proof != null && message.hasOwnProperty("proof")) + object.proof = options.bytes === String ? $util.base64.encode(message.proof, 0, message.proof.length) : options.bytes === Array ? Array.prototype.slice.call(message.proof) : message.proof; + if (message.proof_height != null && message.hasOwnProperty("proof_height")) + object.proof_height = $root.ibc.core.client.v1.Height.toObject(message.proof_height, options); return object; }; /** - * Converts this UpgradeProposal to JSON. + * Converts this QueryPacketReceiptResponse to JSON. * @function toJSON - * @memberof ibc.core.client.v1.UpgradeProposal + * @memberof ibc.core.channel.v1.QueryPacketReceiptResponse * @instance * @returns {Object.} JSON object */ - UpgradeProposal.prototype.toJSON = function toJSON() { + QueryPacketReceiptResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return UpgradeProposal; + return QueryPacketReceiptResponse; })(); - v1.Height = (function() { + v1.QueryPacketAcknowledgementRequest = (function() { /** - * Properties of an Height. - * @memberof ibc.core.client.v1 - * @interface IHeight - * @property {Long|null} [revision_number] Height revision_number - * @property {Long|null} [revision_height] Height revision_height + * Properties of a QueryPacketAcknowledgementRequest. + * @memberof ibc.core.channel.v1 + * @interface IQueryPacketAcknowledgementRequest + * @property {string|null} [port_id] QueryPacketAcknowledgementRequest port_id + * @property {string|null} [channel_id] QueryPacketAcknowledgementRequest channel_id + * @property {Long|null} [sequence] QueryPacketAcknowledgementRequest sequence */ /** - * Constructs a new Height. - * @memberof ibc.core.client.v1 - * @classdesc Represents an Height. - * @implements IHeight + * Constructs a new QueryPacketAcknowledgementRequest. + * @memberof ibc.core.channel.v1 + * @classdesc Represents a QueryPacketAcknowledgementRequest. + * @implements IQueryPacketAcknowledgementRequest * @constructor - * @param {ibc.core.client.v1.IHeight=} [properties] Properties to set + * @param {ibc.core.channel.v1.IQueryPacketAcknowledgementRequest=} [properties] Properties to set */ - function Height(properties) { + function QueryPacketAcknowledgementRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -49657,76 +55827,89 @@ export const ibc = $root.ibc = (() => { } /** - * Height revision_number. - * @member {Long} revision_number - * @memberof ibc.core.client.v1.Height + * QueryPacketAcknowledgementRequest port_id. + * @member {string} port_id + * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementRequest * @instance */ - Height.prototype.revision_number = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + QueryPacketAcknowledgementRequest.prototype.port_id = ""; /** - * Height revision_height. - * @member {Long} revision_height - * @memberof ibc.core.client.v1.Height + * QueryPacketAcknowledgementRequest channel_id. + * @member {string} channel_id + * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementRequest * @instance */ - Height.prototype.revision_height = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + QueryPacketAcknowledgementRequest.prototype.channel_id = ""; /** - * Encodes the specified Height message. Does not implicitly {@link ibc.core.client.v1.Height.verify|verify} messages. + * QueryPacketAcknowledgementRequest sequence. + * @member {Long} sequence + * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementRequest + * @instance + */ + QueryPacketAcknowledgementRequest.prototype.sequence = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + + /** + * Encodes the specified QueryPacketAcknowledgementRequest message. Does not implicitly {@link ibc.core.channel.v1.QueryPacketAcknowledgementRequest.verify|verify} messages. * @function encode - * @memberof ibc.core.client.v1.Height + * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementRequest * @static - * @param {ibc.core.client.v1.IHeight} message Height message or plain object to encode + * @param {ibc.core.channel.v1.IQueryPacketAcknowledgementRequest} message QueryPacketAcknowledgementRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Height.encode = function encode(message, writer) { + QueryPacketAcknowledgementRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.revision_number != null && Object.hasOwnProperty.call(message, "revision_number")) - writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.revision_number); - if (message.revision_height != null && Object.hasOwnProperty.call(message, "revision_height")) - writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.revision_height); + if (message.port_id != null && Object.hasOwnProperty.call(message, "port_id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.port_id); + if (message.channel_id != null && Object.hasOwnProperty.call(message, "channel_id")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.channel_id); + if (message.sequence != null && Object.hasOwnProperty.call(message, "sequence")) + writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.sequence); return writer; }; /** - * Encodes the specified Height message, length delimited. Does not implicitly {@link ibc.core.client.v1.Height.verify|verify} messages. + * Encodes the specified QueryPacketAcknowledgementRequest message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryPacketAcknowledgementRequest.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.client.v1.Height + * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementRequest * @static - * @param {ibc.core.client.v1.IHeight} message Height message or plain object to encode + * @param {ibc.core.channel.v1.IQueryPacketAcknowledgementRequest} message QueryPacketAcknowledgementRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Height.encodeDelimited = function encodeDelimited(message, writer) { + QueryPacketAcknowledgementRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an Height message from the specified reader or buffer. + * Decodes a QueryPacketAcknowledgementRequest message from the specified reader or buffer. * @function decode - * @memberof ibc.core.client.v1.Height + * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.client.v1.Height} Height + * @returns {ibc.core.channel.v1.QueryPacketAcknowledgementRequest} QueryPacketAcknowledgementRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Height.decode = function decode(reader, length) { + QueryPacketAcknowledgementRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.Height(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.QueryPacketAcknowledgementRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.revision_number = reader.uint64(); + message.port_id = reader.string(); break; case 2: - message.revision_height = reader.uint64(); + message.channel_id = reader.string(); + break; + case 3: + message.sequence = reader.uint64(); break; default: reader.skipType(tag & 7); @@ -49737,145 +55920,140 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes an Height message from the specified reader or buffer, length delimited. + * Decodes a QueryPacketAcknowledgementRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.client.v1.Height + * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.client.v1.Height} Height + * @returns {ibc.core.channel.v1.QueryPacketAcknowledgementRequest} QueryPacketAcknowledgementRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Height.decodeDelimited = function decodeDelimited(reader) { + QueryPacketAcknowledgementRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an Height message. + * Verifies a QueryPacketAcknowledgementRequest message. * @function verify - * @memberof ibc.core.client.v1.Height + * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Height.verify = function verify(message) { + QueryPacketAcknowledgementRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.revision_number != null && message.hasOwnProperty("revision_number")) - if (!$util.isInteger(message.revision_number) && !(message.revision_number && $util.isInteger(message.revision_number.low) && $util.isInteger(message.revision_number.high))) - return "revision_number: integer|Long expected"; - if (message.revision_height != null && message.hasOwnProperty("revision_height")) - if (!$util.isInteger(message.revision_height) && !(message.revision_height && $util.isInteger(message.revision_height.low) && $util.isInteger(message.revision_height.high))) - return "revision_height: integer|Long expected"; + if (message.port_id != null && message.hasOwnProperty("port_id")) + if (!$util.isString(message.port_id)) + return "port_id: string expected"; + if (message.channel_id != null && message.hasOwnProperty("channel_id")) + if (!$util.isString(message.channel_id)) + return "channel_id: string expected"; + if (message.sequence != null && message.hasOwnProperty("sequence")) + if (!$util.isInteger(message.sequence) && !(message.sequence && $util.isInteger(message.sequence.low) && $util.isInteger(message.sequence.high))) + return "sequence: integer|Long expected"; return null; }; /** - * Creates an Height message from a plain object. Also converts values to their respective internal types. + * Creates a QueryPacketAcknowledgementRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.client.v1.Height + * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementRequest * @static * @param {Object.} object Plain object - * @returns {ibc.core.client.v1.Height} Height + * @returns {ibc.core.channel.v1.QueryPacketAcknowledgementRequest} QueryPacketAcknowledgementRequest */ - Height.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.client.v1.Height) + QueryPacketAcknowledgementRequest.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.channel.v1.QueryPacketAcknowledgementRequest) return object; - let message = new $root.ibc.core.client.v1.Height(); - if (object.revision_number != null) - if ($util.Long) - (message.revision_number = $util.Long.fromValue(object.revision_number)).unsigned = true; - else if (typeof object.revision_number === "string") - message.revision_number = parseInt(object.revision_number, 10); - else if (typeof object.revision_number === "number") - message.revision_number = object.revision_number; - else if (typeof object.revision_number === "object") - message.revision_number = new $util.LongBits(object.revision_number.low >>> 0, object.revision_number.high >>> 0).toNumber(true); - if (object.revision_height != null) + let message = new $root.ibc.core.channel.v1.QueryPacketAcknowledgementRequest(); + if (object.port_id != null) + message.port_id = String(object.port_id); + if (object.channel_id != null) + message.channel_id = String(object.channel_id); + if (object.sequence != null) if ($util.Long) - (message.revision_height = $util.Long.fromValue(object.revision_height)).unsigned = true; - else if (typeof object.revision_height === "string") - message.revision_height = parseInt(object.revision_height, 10); - else if (typeof object.revision_height === "number") - message.revision_height = object.revision_height; - else if (typeof object.revision_height === "object") - message.revision_height = new $util.LongBits(object.revision_height.low >>> 0, object.revision_height.high >>> 0).toNumber(true); + (message.sequence = $util.Long.fromValue(object.sequence)).unsigned = true; + else if (typeof object.sequence === "string") + message.sequence = parseInt(object.sequence, 10); + else if (typeof object.sequence === "number") + message.sequence = object.sequence; + else if (typeof object.sequence === "object") + message.sequence = new $util.LongBits(object.sequence.low >>> 0, object.sequence.high >>> 0).toNumber(true); return message; }; /** - * Creates a plain object from an Height message. Also converts values to other types if specified. + * Creates a plain object from a QueryPacketAcknowledgementRequest message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.client.v1.Height + * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementRequest * @static - * @param {ibc.core.client.v1.Height} message Height + * @param {ibc.core.channel.v1.QueryPacketAcknowledgementRequest} message QueryPacketAcknowledgementRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Height.toObject = function toObject(message, options) { + QueryPacketAcknowledgementRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { + object.port_id = ""; + object.channel_id = ""; if ($util.Long) { let long = new $util.Long(0, 0, true); - object.revision_number = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.revision_number = options.longs === String ? "0" : 0; - if ($util.Long) { - let long = new $util.Long(0, 0, true); - object.revision_height = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + object.sequence = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.revision_height = options.longs === String ? "0" : 0; + object.sequence = options.longs === String ? "0" : 0; } - if (message.revision_number != null && message.hasOwnProperty("revision_number")) - if (typeof message.revision_number === "number") - object.revision_number = options.longs === String ? String(message.revision_number) : message.revision_number; - else - object.revision_number = options.longs === String ? $util.Long.prototype.toString.call(message.revision_number) : options.longs === Number ? new $util.LongBits(message.revision_number.low >>> 0, message.revision_number.high >>> 0).toNumber(true) : message.revision_number; - if (message.revision_height != null && message.hasOwnProperty("revision_height")) - if (typeof message.revision_height === "number") - object.revision_height = options.longs === String ? String(message.revision_height) : message.revision_height; + if (message.port_id != null && message.hasOwnProperty("port_id")) + object.port_id = message.port_id; + if (message.channel_id != null && message.hasOwnProperty("channel_id")) + object.channel_id = message.channel_id; + if (message.sequence != null && message.hasOwnProperty("sequence")) + if (typeof message.sequence === "number") + object.sequence = options.longs === String ? String(message.sequence) : message.sequence; else - object.revision_height = options.longs === String ? $util.Long.prototype.toString.call(message.revision_height) : options.longs === Number ? new $util.LongBits(message.revision_height.low >>> 0, message.revision_height.high >>> 0).toNumber(true) : message.revision_height; + object.sequence = options.longs === String ? $util.Long.prototype.toString.call(message.sequence) : options.longs === Number ? new $util.LongBits(message.sequence.low >>> 0, message.sequence.high >>> 0).toNumber(true) : message.sequence; return object; }; /** - * Converts this Height to JSON. + * Converts this QueryPacketAcknowledgementRequest to JSON. * @function toJSON - * @memberof ibc.core.client.v1.Height + * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementRequest * @instance * @returns {Object.} JSON object */ - Height.prototype.toJSON = function toJSON() { + QueryPacketAcknowledgementRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Height; + return QueryPacketAcknowledgementRequest; })(); - v1.Params = (function() { + v1.QueryPacketAcknowledgementResponse = (function() { /** - * Properties of a Params. - * @memberof ibc.core.client.v1 - * @interface IParams - * @property {Array.|null} [allowed_clients] Params allowed_clients + * Properties of a QueryPacketAcknowledgementResponse. + * @memberof ibc.core.channel.v1 + * @interface IQueryPacketAcknowledgementResponse + * @property {Uint8Array|null} [acknowledgement] QueryPacketAcknowledgementResponse acknowledgement + * @property {Uint8Array|null} [proof] QueryPacketAcknowledgementResponse proof + * @property {ibc.core.client.v1.IHeight|null} [proof_height] QueryPacketAcknowledgementResponse proof_height */ /** - * Constructs a new Params. - * @memberof ibc.core.client.v1 - * @classdesc Represents a Params. - * @implements IParams + * Constructs a new QueryPacketAcknowledgementResponse. + * @memberof ibc.core.channel.v1 + * @classdesc Represents a QueryPacketAcknowledgementResponse. + * @implements IQueryPacketAcknowledgementResponse * @constructor - * @param {ibc.core.client.v1.IParams=} [properties] Properties to set + * @param {ibc.core.channel.v1.IQueryPacketAcknowledgementResponse=} [properties] Properties to set */ - function Params(properties) { - this.allowed_clients = []; + function QueryPacketAcknowledgementResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -49883,66 +56061,89 @@ export const ibc = $root.ibc = (() => { } /** - * Params allowed_clients. - * @member {Array.} allowed_clients - * @memberof ibc.core.client.v1.Params + * QueryPacketAcknowledgementResponse acknowledgement. + * @member {Uint8Array} acknowledgement + * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementResponse * @instance */ - Params.prototype.allowed_clients = $util.emptyArray; + QueryPacketAcknowledgementResponse.prototype.acknowledgement = $util.newBuffer([]); /** - * Encodes the specified Params message. Does not implicitly {@link ibc.core.client.v1.Params.verify|verify} messages. + * QueryPacketAcknowledgementResponse proof. + * @member {Uint8Array} proof + * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementResponse + * @instance + */ + QueryPacketAcknowledgementResponse.prototype.proof = $util.newBuffer([]); + + /** + * QueryPacketAcknowledgementResponse proof_height. + * @member {ibc.core.client.v1.IHeight|null|undefined} proof_height + * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementResponse + * @instance + */ + QueryPacketAcknowledgementResponse.prototype.proof_height = null; + + /** + * Encodes the specified QueryPacketAcknowledgementResponse message. Does not implicitly {@link ibc.core.channel.v1.QueryPacketAcknowledgementResponse.verify|verify} messages. * @function encode - * @memberof ibc.core.client.v1.Params + * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementResponse * @static - * @param {ibc.core.client.v1.IParams} message Params message or plain object to encode + * @param {ibc.core.channel.v1.IQueryPacketAcknowledgementResponse} message QueryPacketAcknowledgementResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Params.encode = function encode(message, writer) { + QueryPacketAcknowledgementResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.allowed_clients != null && message.allowed_clients.length) - for (let i = 0; i < message.allowed_clients.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.allowed_clients[i]); + if (message.acknowledgement != null && Object.hasOwnProperty.call(message, "acknowledgement")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.acknowledgement); + if (message.proof != null && Object.hasOwnProperty.call(message, "proof")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.proof); + if (message.proof_height != null && Object.hasOwnProperty.call(message, "proof_height")) + $root.ibc.core.client.v1.Height.encode(message.proof_height, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified Params message, length delimited. Does not implicitly {@link ibc.core.client.v1.Params.verify|verify} messages. + * Encodes the specified QueryPacketAcknowledgementResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryPacketAcknowledgementResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.client.v1.Params + * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementResponse * @static - * @param {ibc.core.client.v1.IParams} message Params message or plain object to encode + * @param {ibc.core.channel.v1.IQueryPacketAcknowledgementResponse} message QueryPacketAcknowledgementResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Params.encodeDelimited = function encodeDelimited(message, writer) { + QueryPacketAcknowledgementResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Params message from the specified reader or buffer. + * Decodes a QueryPacketAcknowledgementResponse message from the specified reader or buffer. * @function decode - * @memberof ibc.core.client.v1.Params + * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.client.v1.Params} Params + * @returns {ibc.core.channel.v1.QueryPacketAcknowledgementResponse} QueryPacketAcknowledgementResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Params.decode = function decode(reader, length) { + QueryPacketAcknowledgementResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.Params(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.QueryPacketAcknowledgementResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.allowed_clients && message.allowed_clients.length)) - message.allowed_clients = []; - message.allowed_clients.push(reader.string()); + message.acknowledgement = reader.bytes(); + break; + case 2: + message.proof = reader.bytes(); + break; + case 3: + message.proof_height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -49953,274 +56154,151 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a Params message from the specified reader or buffer, length delimited. + * Decodes a QueryPacketAcknowledgementResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.client.v1.Params + * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.client.v1.Params} Params + * @returns {ibc.core.channel.v1.QueryPacketAcknowledgementResponse} QueryPacketAcknowledgementResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Params.decodeDelimited = function decodeDelimited(reader) { + QueryPacketAcknowledgementResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Params message. + * Verifies a QueryPacketAcknowledgementResponse message. * @function verify - * @memberof ibc.core.client.v1.Params + * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Params.verify = function verify(message) { + QueryPacketAcknowledgementResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.allowed_clients != null && message.hasOwnProperty("allowed_clients")) { - if (!Array.isArray(message.allowed_clients)) - return "allowed_clients: array expected"; - for (let i = 0; i < message.allowed_clients.length; ++i) - if (!$util.isString(message.allowed_clients[i])) - return "allowed_clients: string[] expected"; + if (message.acknowledgement != null && message.hasOwnProperty("acknowledgement")) + if (!(message.acknowledgement && typeof message.acknowledgement.length === "number" || $util.isString(message.acknowledgement))) + return "acknowledgement: buffer expected"; + if (message.proof != null && message.hasOwnProperty("proof")) + if (!(message.proof && typeof message.proof.length === "number" || $util.isString(message.proof))) + return "proof: buffer expected"; + if (message.proof_height != null && message.hasOwnProperty("proof_height")) { + let error = $root.ibc.core.client.v1.Height.verify(message.proof_height); + if (error) + return "proof_height." + error; } return null; }; /** - * Creates a Params message from a plain object. Also converts values to their respective internal types. + * Creates a QueryPacketAcknowledgementResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.client.v1.Params + * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementResponse * @static * @param {Object.} object Plain object - * @returns {ibc.core.client.v1.Params} Params - */ - Params.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.client.v1.Params) - return object; - let message = new $root.ibc.core.client.v1.Params(); - if (object.allowed_clients) { - if (!Array.isArray(object.allowed_clients)) - throw TypeError(".ibc.core.client.v1.Params.allowed_clients: array expected"); - message.allowed_clients = []; - for (let i = 0; i < object.allowed_clients.length; ++i) - message.allowed_clients[i] = String(object.allowed_clients[i]); + * @returns {ibc.core.channel.v1.QueryPacketAcknowledgementResponse} QueryPacketAcknowledgementResponse + */ + QueryPacketAcknowledgementResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.channel.v1.QueryPacketAcknowledgementResponse) + return object; + let message = new $root.ibc.core.channel.v1.QueryPacketAcknowledgementResponse(); + if (object.acknowledgement != null) + if (typeof object.acknowledgement === "string") + $util.base64.decode(object.acknowledgement, message.acknowledgement = $util.newBuffer($util.base64.length(object.acknowledgement)), 0); + else if (object.acknowledgement.length) + message.acknowledgement = object.acknowledgement; + if (object.proof != null) + if (typeof object.proof === "string") + $util.base64.decode(object.proof, message.proof = $util.newBuffer($util.base64.length(object.proof)), 0); + else if (object.proof.length) + message.proof = object.proof; + if (object.proof_height != null) { + if (typeof object.proof_height !== "object") + throw TypeError(".ibc.core.channel.v1.QueryPacketAcknowledgementResponse.proof_height: object expected"); + message.proof_height = $root.ibc.core.client.v1.Height.fromObject(object.proof_height); } return message; }; /** - * Creates a plain object from a Params message. Also converts values to other types if specified. + * Creates a plain object from a QueryPacketAcknowledgementResponse message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.client.v1.Params + * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementResponse * @static - * @param {ibc.core.client.v1.Params} message Params + * @param {ibc.core.channel.v1.QueryPacketAcknowledgementResponse} message QueryPacketAcknowledgementResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Params.toObject = function toObject(message, options) { + QueryPacketAcknowledgementResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.allowed_clients = []; - if (message.allowed_clients && message.allowed_clients.length) { - object.allowed_clients = []; - for (let j = 0; j < message.allowed_clients.length; ++j) - object.allowed_clients[j] = message.allowed_clients[j]; + if (options.defaults) { + if (options.bytes === String) + object.acknowledgement = ""; + else { + object.acknowledgement = []; + if (options.bytes !== Array) + object.acknowledgement = $util.newBuffer(object.acknowledgement); + } + if (options.bytes === String) + object.proof = ""; + else { + object.proof = []; + if (options.bytes !== Array) + object.proof = $util.newBuffer(object.proof); + } + object.proof_height = null; } + if (message.acknowledgement != null && message.hasOwnProperty("acknowledgement")) + object.acknowledgement = options.bytes === String ? $util.base64.encode(message.acknowledgement, 0, message.acknowledgement.length) : options.bytes === Array ? Array.prototype.slice.call(message.acknowledgement) : message.acknowledgement; + if (message.proof != null && message.hasOwnProperty("proof")) + object.proof = options.bytes === String ? $util.base64.encode(message.proof, 0, message.proof.length) : options.bytes === Array ? Array.prototype.slice.call(message.proof) : message.proof; + if (message.proof_height != null && message.hasOwnProperty("proof_height")) + object.proof_height = $root.ibc.core.client.v1.Height.toObject(message.proof_height, options); return object; }; /** - * Converts this Params to JSON. + * Converts this QueryPacketAcknowledgementResponse to JSON. * @function toJSON - * @memberof ibc.core.client.v1.Params + * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementResponse * @instance * @returns {Object.} JSON object */ - Params.prototype.toJSON = function toJSON() { + QueryPacketAcknowledgementResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Params; - })(); - - v1.Msg = (function() { - - /** - * Constructs a new Msg service. - * @memberof ibc.core.client.v1 - * @classdesc Represents a Msg - * @extends $protobuf.rpc.Service - * @constructor - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - */ - function Msg(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } - - (Msg.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Msg; - - /** - * Callback as used by {@link ibc.core.client.v1.Msg#createClient}. - * @memberof ibc.core.client.v1.Msg - * @typedef CreateClientCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.core.client.v1.MsgCreateClientResponse} [response] MsgCreateClientResponse - */ - - /** - * Calls CreateClient. - * @function createClient - * @memberof ibc.core.client.v1.Msg - * @instance - * @param {ibc.core.client.v1.IMsgCreateClient} request MsgCreateClient message or plain object - * @param {ibc.core.client.v1.Msg.CreateClientCallback} callback Node-style callback called with the error, if any, and MsgCreateClientResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Msg.prototype.createClient = function createClient(request, callback) { - return this.rpcCall(createClient, $root.ibc.core.client.v1.MsgCreateClient, $root.ibc.core.client.v1.MsgCreateClientResponse, request, callback); - }, "name", { value: "CreateClient" }); - - /** - * Calls CreateClient. - * @function createClient - * @memberof ibc.core.client.v1.Msg - * @instance - * @param {ibc.core.client.v1.IMsgCreateClient} request MsgCreateClient message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link ibc.core.client.v1.Msg#updateClient}. - * @memberof ibc.core.client.v1.Msg - * @typedef UpdateClientCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.core.client.v1.MsgUpdateClientResponse} [response] MsgUpdateClientResponse - */ - - /** - * Calls UpdateClient. - * @function updateClient - * @memberof ibc.core.client.v1.Msg - * @instance - * @param {ibc.core.client.v1.IMsgUpdateClient} request MsgUpdateClient message or plain object - * @param {ibc.core.client.v1.Msg.UpdateClientCallback} callback Node-style callback called with the error, if any, and MsgUpdateClientResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Msg.prototype.updateClient = function updateClient(request, callback) { - return this.rpcCall(updateClient, $root.ibc.core.client.v1.MsgUpdateClient, $root.ibc.core.client.v1.MsgUpdateClientResponse, request, callback); - }, "name", { value: "UpdateClient" }); - - /** - * Calls UpdateClient. - * @function updateClient - * @memberof ibc.core.client.v1.Msg - * @instance - * @param {ibc.core.client.v1.IMsgUpdateClient} request MsgUpdateClient message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link ibc.core.client.v1.Msg#upgradeClient}. - * @memberof ibc.core.client.v1.Msg - * @typedef UpgradeClientCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.core.client.v1.MsgUpgradeClientResponse} [response] MsgUpgradeClientResponse - */ - - /** - * Calls UpgradeClient. - * @function upgradeClient - * @memberof ibc.core.client.v1.Msg - * @instance - * @param {ibc.core.client.v1.IMsgUpgradeClient} request MsgUpgradeClient message or plain object - * @param {ibc.core.client.v1.Msg.UpgradeClientCallback} callback Node-style callback called with the error, if any, and MsgUpgradeClientResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Msg.prototype.upgradeClient = function upgradeClient(request, callback) { - return this.rpcCall(upgradeClient, $root.ibc.core.client.v1.MsgUpgradeClient, $root.ibc.core.client.v1.MsgUpgradeClientResponse, request, callback); - }, "name", { value: "UpgradeClient" }); - - /** - * Calls UpgradeClient. - * @function upgradeClient - * @memberof ibc.core.client.v1.Msg - * @instance - * @param {ibc.core.client.v1.IMsgUpgradeClient} request MsgUpgradeClient message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link ibc.core.client.v1.Msg#submitMisbehaviour}. - * @memberof ibc.core.client.v1.Msg - * @typedef SubmitMisbehaviourCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.core.client.v1.MsgSubmitMisbehaviourResponse} [response] MsgSubmitMisbehaviourResponse - */ - - /** - * Calls SubmitMisbehaviour. - * @function submitMisbehaviour - * @memberof ibc.core.client.v1.Msg - * @instance - * @param {ibc.core.client.v1.IMsgSubmitMisbehaviour} request MsgSubmitMisbehaviour message or plain object - * @param {ibc.core.client.v1.Msg.SubmitMisbehaviourCallback} callback Node-style callback called with the error, if any, and MsgSubmitMisbehaviourResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Msg.prototype.submitMisbehaviour = function submitMisbehaviour(request, callback) { - return this.rpcCall(submitMisbehaviour, $root.ibc.core.client.v1.MsgSubmitMisbehaviour, $root.ibc.core.client.v1.MsgSubmitMisbehaviourResponse, request, callback); - }, "name", { value: "SubmitMisbehaviour" }); - - /** - * Calls SubmitMisbehaviour. - * @function submitMisbehaviour - * @memberof ibc.core.client.v1.Msg - * @instance - * @param {ibc.core.client.v1.IMsgSubmitMisbehaviour} request MsgSubmitMisbehaviour message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - return Msg; + return QueryPacketAcknowledgementResponse; })(); - v1.MsgCreateClient = (function() { + v1.QueryPacketAcknowledgementsRequest = (function() { /** - * Properties of a MsgCreateClient. - * @memberof ibc.core.client.v1 - * @interface IMsgCreateClient - * @property {google.protobuf.IAny|null} [client_state] MsgCreateClient client_state - * @property {google.protobuf.IAny|null} [consensus_state] MsgCreateClient consensus_state - * @property {string|null} [signer] MsgCreateClient signer + * Properties of a QueryPacketAcknowledgementsRequest. + * @memberof ibc.core.channel.v1 + * @interface IQueryPacketAcknowledgementsRequest + * @property {string|null} [port_id] QueryPacketAcknowledgementsRequest port_id + * @property {string|null} [channel_id] QueryPacketAcknowledgementsRequest channel_id + * @property {cosmos.base.query.v1beta1.IPageRequest|null} [pagination] QueryPacketAcknowledgementsRequest pagination + * @property {Array.|null} [packet_commitment_sequences] QueryPacketAcknowledgementsRequest packet_commitment_sequences */ /** - * Constructs a new MsgCreateClient. - * @memberof ibc.core.client.v1 - * @classdesc Represents a MsgCreateClient. - * @implements IMsgCreateClient + * Constructs a new QueryPacketAcknowledgementsRequest. + * @memberof ibc.core.channel.v1 + * @classdesc Represents a QueryPacketAcknowledgementsRequest. + * @implements IQueryPacketAcknowledgementsRequest * @constructor - * @param {ibc.core.client.v1.IMsgCreateClient=} [properties] Properties to set + * @param {ibc.core.channel.v1.IQueryPacketAcknowledgementsRequest=} [properties] Properties to set */ - function MsgCreateClient(properties) { + function QueryPacketAcknowledgementsRequest(properties) { + this.packet_commitment_sequences = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -50228,89 +56306,113 @@ export const ibc = $root.ibc = (() => { } /** - * MsgCreateClient client_state. - * @member {google.protobuf.IAny|null|undefined} client_state - * @memberof ibc.core.client.v1.MsgCreateClient + * QueryPacketAcknowledgementsRequest port_id. + * @member {string} port_id + * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementsRequest * @instance */ - MsgCreateClient.prototype.client_state = null; + QueryPacketAcknowledgementsRequest.prototype.port_id = ""; /** - * MsgCreateClient consensus_state. - * @member {google.protobuf.IAny|null|undefined} consensus_state - * @memberof ibc.core.client.v1.MsgCreateClient + * QueryPacketAcknowledgementsRequest channel_id. + * @member {string} channel_id + * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementsRequest * @instance */ - MsgCreateClient.prototype.consensus_state = null; + QueryPacketAcknowledgementsRequest.prototype.channel_id = ""; /** - * MsgCreateClient signer. - * @member {string} signer - * @memberof ibc.core.client.v1.MsgCreateClient + * QueryPacketAcknowledgementsRequest pagination. + * @member {cosmos.base.query.v1beta1.IPageRequest|null|undefined} pagination + * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementsRequest * @instance */ - MsgCreateClient.prototype.signer = ""; + QueryPacketAcknowledgementsRequest.prototype.pagination = null; /** - * Encodes the specified MsgCreateClient message. Does not implicitly {@link ibc.core.client.v1.MsgCreateClient.verify|verify} messages. + * QueryPacketAcknowledgementsRequest packet_commitment_sequences. + * @member {Array.} packet_commitment_sequences + * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementsRequest + * @instance + */ + QueryPacketAcknowledgementsRequest.prototype.packet_commitment_sequences = $util.emptyArray; + + /** + * Encodes the specified QueryPacketAcknowledgementsRequest message. Does not implicitly {@link ibc.core.channel.v1.QueryPacketAcknowledgementsRequest.verify|verify} messages. * @function encode - * @memberof ibc.core.client.v1.MsgCreateClient + * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementsRequest * @static - * @param {ibc.core.client.v1.IMsgCreateClient} message MsgCreateClient message or plain object to encode + * @param {ibc.core.channel.v1.IQueryPacketAcknowledgementsRequest} message QueryPacketAcknowledgementsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgCreateClient.encode = function encode(message, writer) { + QueryPacketAcknowledgementsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.client_state != null && Object.hasOwnProperty.call(message, "client_state")) - $root.google.protobuf.Any.encode(message.client_state, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.consensus_state != null && Object.hasOwnProperty.call(message, "consensus_state")) - $root.google.protobuf.Any.encode(message.consensus_state, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.signer != null && Object.hasOwnProperty.call(message, "signer")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.signer); + if (message.port_id != null && Object.hasOwnProperty.call(message, "port_id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.port_id); + if (message.channel_id != null && Object.hasOwnProperty.call(message, "channel_id")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.channel_id); + if (message.pagination != null && Object.hasOwnProperty.call(message, "pagination")) + $root.cosmos.base.query.v1beta1.PageRequest.encode(message.pagination, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.packet_commitment_sequences != null && message.packet_commitment_sequences.length) { + writer.uint32(/* id 4, wireType 2 =*/34).fork(); + for (let i = 0; i < message.packet_commitment_sequences.length; ++i) + writer.uint64(message.packet_commitment_sequences[i]); + writer.ldelim(); + } return writer; }; /** - * Encodes the specified MsgCreateClient message, length delimited. Does not implicitly {@link ibc.core.client.v1.MsgCreateClient.verify|verify} messages. + * Encodes the specified QueryPacketAcknowledgementsRequest message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryPacketAcknowledgementsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.client.v1.MsgCreateClient + * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementsRequest * @static - * @param {ibc.core.client.v1.IMsgCreateClient} message MsgCreateClient message or plain object to encode + * @param {ibc.core.channel.v1.IQueryPacketAcknowledgementsRequest} message QueryPacketAcknowledgementsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgCreateClient.encodeDelimited = function encodeDelimited(message, writer) { + QueryPacketAcknowledgementsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MsgCreateClient message from the specified reader or buffer. + * Decodes a QueryPacketAcknowledgementsRequest message from the specified reader or buffer. * @function decode - * @memberof ibc.core.client.v1.MsgCreateClient + * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.client.v1.MsgCreateClient} MsgCreateClient + * @returns {ibc.core.channel.v1.QueryPacketAcknowledgementsRequest} QueryPacketAcknowledgementsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgCreateClient.decode = function decode(reader, length) { + QueryPacketAcknowledgementsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.MsgCreateClient(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.QueryPacketAcknowledgementsRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.client_state = $root.google.protobuf.Any.decode(reader, reader.uint32()); + message.port_id = reader.string(); break; case 2: - message.consensus_state = $root.google.protobuf.Any.decode(reader, reader.uint32()); + message.channel_id = reader.string(); break; case 3: - message.signer = reader.string(); + message.pagination = $root.cosmos.base.query.v1beta1.PageRequest.decode(reader, reader.uint32()); + break; + case 4: + if (!(message.packet_commitment_sequences && message.packet_commitment_sequences.length)) + message.packet_commitment_sequences = []; + if ((tag & 7) === 2) { + let end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.packet_commitment_sequences.push(reader.uint64()); + } else + message.packet_commitment_sequences.push(reader.uint64()); break; default: reader.skipType(tag & 7); @@ -50321,133 +56423,163 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a MsgCreateClient message from the specified reader or buffer, length delimited. + * Decodes a QueryPacketAcknowledgementsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.client.v1.MsgCreateClient + * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.client.v1.MsgCreateClient} MsgCreateClient + * @returns {ibc.core.channel.v1.QueryPacketAcknowledgementsRequest} QueryPacketAcknowledgementsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgCreateClient.decodeDelimited = function decodeDelimited(reader) { + QueryPacketAcknowledgementsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MsgCreateClient message. + * Verifies a QueryPacketAcknowledgementsRequest message. * @function verify - * @memberof ibc.core.client.v1.MsgCreateClient + * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MsgCreateClient.verify = function verify(message) { + QueryPacketAcknowledgementsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.client_state != null && message.hasOwnProperty("client_state")) { - let error = $root.google.protobuf.Any.verify(message.client_state); + if (message.port_id != null && message.hasOwnProperty("port_id")) + if (!$util.isString(message.port_id)) + return "port_id: string expected"; + if (message.channel_id != null && message.hasOwnProperty("channel_id")) + if (!$util.isString(message.channel_id)) + return "channel_id: string expected"; + if (message.pagination != null && message.hasOwnProperty("pagination")) { + let error = $root.cosmos.base.query.v1beta1.PageRequest.verify(message.pagination); if (error) - return "client_state." + error; + return "pagination." + error; } - if (message.consensus_state != null && message.hasOwnProperty("consensus_state")) { - let error = $root.google.protobuf.Any.verify(message.consensus_state); - if (error) - return "consensus_state." + error; + if (message.packet_commitment_sequences != null && message.hasOwnProperty("packet_commitment_sequences")) { + if (!Array.isArray(message.packet_commitment_sequences)) + return "packet_commitment_sequences: array expected"; + for (let i = 0; i < message.packet_commitment_sequences.length; ++i) + if (!$util.isInteger(message.packet_commitment_sequences[i]) && !(message.packet_commitment_sequences[i] && $util.isInteger(message.packet_commitment_sequences[i].low) && $util.isInteger(message.packet_commitment_sequences[i].high))) + return "packet_commitment_sequences: integer|Long[] expected"; } - if (message.signer != null && message.hasOwnProperty("signer")) - if (!$util.isString(message.signer)) - return "signer: string expected"; return null; }; /** - * Creates a MsgCreateClient message from a plain object. Also converts values to their respective internal types. + * Creates a QueryPacketAcknowledgementsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.client.v1.MsgCreateClient + * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementsRequest * @static * @param {Object.} object Plain object - * @returns {ibc.core.client.v1.MsgCreateClient} MsgCreateClient + * @returns {ibc.core.channel.v1.QueryPacketAcknowledgementsRequest} QueryPacketAcknowledgementsRequest */ - MsgCreateClient.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.client.v1.MsgCreateClient) + QueryPacketAcknowledgementsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.channel.v1.QueryPacketAcknowledgementsRequest) return object; - let message = new $root.ibc.core.client.v1.MsgCreateClient(); - if (object.client_state != null) { - if (typeof object.client_state !== "object") - throw TypeError(".ibc.core.client.v1.MsgCreateClient.client_state: object expected"); - message.client_state = $root.google.protobuf.Any.fromObject(object.client_state); + let message = new $root.ibc.core.channel.v1.QueryPacketAcknowledgementsRequest(); + if (object.port_id != null) + message.port_id = String(object.port_id); + if (object.channel_id != null) + message.channel_id = String(object.channel_id); + if (object.pagination != null) { + if (typeof object.pagination !== "object") + throw TypeError(".ibc.core.channel.v1.QueryPacketAcknowledgementsRequest.pagination: object expected"); + message.pagination = $root.cosmos.base.query.v1beta1.PageRequest.fromObject(object.pagination); } - if (object.consensus_state != null) { - if (typeof object.consensus_state !== "object") - throw TypeError(".ibc.core.client.v1.MsgCreateClient.consensus_state: object expected"); - message.consensus_state = $root.google.protobuf.Any.fromObject(object.consensus_state); + if (object.packet_commitment_sequences) { + if (!Array.isArray(object.packet_commitment_sequences)) + throw TypeError(".ibc.core.channel.v1.QueryPacketAcknowledgementsRequest.packet_commitment_sequences: array expected"); + message.packet_commitment_sequences = []; + for (let i = 0; i < object.packet_commitment_sequences.length; ++i) + if ($util.Long) + (message.packet_commitment_sequences[i] = $util.Long.fromValue(object.packet_commitment_sequences[i])).unsigned = true; + else if (typeof object.packet_commitment_sequences[i] === "string") + message.packet_commitment_sequences[i] = parseInt(object.packet_commitment_sequences[i], 10); + else if (typeof object.packet_commitment_sequences[i] === "number") + message.packet_commitment_sequences[i] = object.packet_commitment_sequences[i]; + else if (typeof object.packet_commitment_sequences[i] === "object") + message.packet_commitment_sequences[i] = new $util.LongBits(object.packet_commitment_sequences[i].low >>> 0, object.packet_commitment_sequences[i].high >>> 0).toNumber(true); } - if (object.signer != null) - message.signer = String(object.signer); return message; }; /** - * Creates a plain object from a MsgCreateClient message. Also converts values to other types if specified. + * Creates a plain object from a QueryPacketAcknowledgementsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.client.v1.MsgCreateClient + * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementsRequest * @static - * @param {ibc.core.client.v1.MsgCreateClient} message MsgCreateClient + * @param {ibc.core.channel.v1.QueryPacketAcknowledgementsRequest} message QueryPacketAcknowledgementsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MsgCreateClient.toObject = function toObject(message, options) { + QueryPacketAcknowledgementsRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; + if (options.arrays || options.defaults) + object.packet_commitment_sequences = []; if (options.defaults) { - object.client_state = null; - object.consensus_state = null; - object.signer = ""; + object.port_id = ""; + object.channel_id = ""; + object.pagination = null; + } + if (message.port_id != null && message.hasOwnProperty("port_id")) + object.port_id = message.port_id; + if (message.channel_id != null && message.hasOwnProperty("channel_id")) + object.channel_id = message.channel_id; + if (message.pagination != null && message.hasOwnProperty("pagination")) + object.pagination = $root.cosmos.base.query.v1beta1.PageRequest.toObject(message.pagination, options); + if (message.packet_commitment_sequences && message.packet_commitment_sequences.length) { + object.packet_commitment_sequences = []; + for (let j = 0; j < message.packet_commitment_sequences.length; ++j) + if (typeof message.packet_commitment_sequences[j] === "number") + object.packet_commitment_sequences[j] = options.longs === String ? String(message.packet_commitment_sequences[j]) : message.packet_commitment_sequences[j]; + else + object.packet_commitment_sequences[j] = options.longs === String ? $util.Long.prototype.toString.call(message.packet_commitment_sequences[j]) : options.longs === Number ? new $util.LongBits(message.packet_commitment_sequences[j].low >>> 0, message.packet_commitment_sequences[j].high >>> 0).toNumber(true) : message.packet_commitment_sequences[j]; } - if (message.client_state != null && message.hasOwnProperty("client_state")) - object.client_state = $root.google.protobuf.Any.toObject(message.client_state, options); - if (message.consensus_state != null && message.hasOwnProperty("consensus_state")) - object.consensus_state = $root.google.protobuf.Any.toObject(message.consensus_state, options); - if (message.signer != null && message.hasOwnProperty("signer")) - object.signer = message.signer; return object; }; /** - * Converts this MsgCreateClient to JSON. + * Converts this QueryPacketAcknowledgementsRequest to JSON. * @function toJSON - * @memberof ibc.core.client.v1.MsgCreateClient + * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementsRequest * @instance * @returns {Object.} JSON object */ - MsgCreateClient.prototype.toJSON = function toJSON() { + QueryPacketAcknowledgementsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MsgCreateClient; + return QueryPacketAcknowledgementsRequest; })(); - v1.MsgCreateClientResponse = (function() { + v1.QueryPacketAcknowledgementsResponse = (function() { /** - * Properties of a MsgCreateClientResponse. - * @memberof ibc.core.client.v1 - * @interface IMsgCreateClientResponse + * Properties of a QueryPacketAcknowledgementsResponse. + * @memberof ibc.core.channel.v1 + * @interface IQueryPacketAcknowledgementsResponse + * @property {Array.|null} [acknowledgements] QueryPacketAcknowledgementsResponse acknowledgements + * @property {cosmos.base.query.v1beta1.IPageResponse|null} [pagination] QueryPacketAcknowledgementsResponse pagination + * @property {ibc.core.client.v1.IHeight|null} [height] QueryPacketAcknowledgementsResponse height */ /** - * Constructs a new MsgCreateClientResponse. - * @memberof ibc.core.client.v1 - * @classdesc Represents a MsgCreateClientResponse. - * @implements IMsgCreateClientResponse + * Constructs a new QueryPacketAcknowledgementsResponse. + * @memberof ibc.core.channel.v1 + * @classdesc Represents a QueryPacketAcknowledgementsResponse. + * @implements IQueryPacketAcknowledgementsResponse * @constructor - * @param {ibc.core.client.v1.IMsgCreateClientResponse=} [properties] Properties to set + * @param {ibc.core.channel.v1.IQueryPacketAcknowledgementsResponse=} [properties] Properties to set */ - function MsgCreateClientResponse(properties) { + function QueryPacketAcknowledgementsResponse(properties) { + this.acknowledgements = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -50455,51 +56587,93 @@ export const ibc = $root.ibc = (() => { } /** - * Encodes the specified MsgCreateClientResponse message. Does not implicitly {@link ibc.core.client.v1.MsgCreateClientResponse.verify|verify} messages. + * QueryPacketAcknowledgementsResponse acknowledgements. + * @member {Array.} acknowledgements + * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementsResponse + * @instance + */ + QueryPacketAcknowledgementsResponse.prototype.acknowledgements = $util.emptyArray; + + /** + * QueryPacketAcknowledgementsResponse pagination. + * @member {cosmos.base.query.v1beta1.IPageResponse|null|undefined} pagination + * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementsResponse + * @instance + */ + QueryPacketAcknowledgementsResponse.prototype.pagination = null; + + /** + * QueryPacketAcknowledgementsResponse height. + * @member {ibc.core.client.v1.IHeight|null|undefined} height + * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementsResponse + * @instance + */ + QueryPacketAcknowledgementsResponse.prototype.height = null; + + /** + * Encodes the specified QueryPacketAcknowledgementsResponse message. Does not implicitly {@link ibc.core.channel.v1.QueryPacketAcknowledgementsResponse.verify|verify} messages. * @function encode - * @memberof ibc.core.client.v1.MsgCreateClientResponse + * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementsResponse * @static - * @param {ibc.core.client.v1.IMsgCreateClientResponse} message MsgCreateClientResponse message or plain object to encode + * @param {ibc.core.channel.v1.IQueryPacketAcknowledgementsResponse} message QueryPacketAcknowledgementsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgCreateClientResponse.encode = function encode(message, writer) { + QueryPacketAcknowledgementsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.acknowledgements != null && message.acknowledgements.length) + for (let i = 0; i < message.acknowledgements.length; ++i) + $root.ibc.core.channel.v1.PacketState.encode(message.acknowledgements[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.pagination != null && Object.hasOwnProperty.call(message, "pagination")) + $root.cosmos.base.query.v1beta1.PageResponse.encode(message.pagination, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.height != null && Object.hasOwnProperty.call(message, "height")) + $root.ibc.core.client.v1.Height.encode(message.height, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified MsgCreateClientResponse message, length delimited. Does not implicitly {@link ibc.core.client.v1.MsgCreateClientResponse.verify|verify} messages. + * Encodes the specified QueryPacketAcknowledgementsResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryPacketAcknowledgementsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.client.v1.MsgCreateClientResponse + * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementsResponse * @static - * @param {ibc.core.client.v1.IMsgCreateClientResponse} message MsgCreateClientResponse message or plain object to encode + * @param {ibc.core.channel.v1.IQueryPacketAcknowledgementsResponse} message QueryPacketAcknowledgementsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgCreateClientResponse.encodeDelimited = function encodeDelimited(message, writer) { + QueryPacketAcknowledgementsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MsgCreateClientResponse message from the specified reader or buffer. + * Decodes a QueryPacketAcknowledgementsResponse message from the specified reader or buffer. * @function decode - * @memberof ibc.core.client.v1.MsgCreateClientResponse + * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.client.v1.MsgCreateClientResponse} MsgCreateClientResponse + * @returns {ibc.core.channel.v1.QueryPacketAcknowledgementsResponse} QueryPacketAcknowledgementsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgCreateClientResponse.decode = function decode(reader, length) { + QueryPacketAcknowledgementsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.MsgCreateClientResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.QueryPacketAcknowledgementsResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { + case 1: + if (!(message.acknowledgements && message.acknowledgements.length)) + message.acknowledgements = []; + message.acknowledgements.push($root.ibc.core.channel.v1.PacketState.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = $root.cosmos.base.query.v1beta1.PageResponse.decode(reader, reader.uint32()); + break; + case 3: + message.height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); + break; default: reader.skipType(tag & 7); break; @@ -50509,96 +56683,155 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a MsgCreateClientResponse message from the specified reader or buffer, length delimited. + * Decodes a QueryPacketAcknowledgementsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.client.v1.MsgCreateClientResponse + * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.client.v1.MsgCreateClientResponse} MsgCreateClientResponse + * @returns {ibc.core.channel.v1.QueryPacketAcknowledgementsResponse} QueryPacketAcknowledgementsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgCreateClientResponse.decodeDelimited = function decodeDelimited(reader) { + QueryPacketAcknowledgementsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MsgCreateClientResponse message. + * Verifies a QueryPacketAcknowledgementsResponse message. * @function verify - * @memberof ibc.core.client.v1.MsgCreateClientResponse + * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MsgCreateClientResponse.verify = function verify(message) { + QueryPacketAcknowledgementsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.acknowledgements != null && message.hasOwnProperty("acknowledgements")) { + if (!Array.isArray(message.acknowledgements)) + return "acknowledgements: array expected"; + for (let i = 0; i < message.acknowledgements.length; ++i) { + let error = $root.ibc.core.channel.v1.PacketState.verify(message.acknowledgements[i]); + if (error) + return "acknowledgements." + error; + } + } + if (message.pagination != null && message.hasOwnProperty("pagination")) { + let error = $root.cosmos.base.query.v1beta1.PageResponse.verify(message.pagination); + if (error) + return "pagination." + error; + } + if (message.height != null && message.hasOwnProperty("height")) { + let error = $root.ibc.core.client.v1.Height.verify(message.height); + if (error) + return "height." + error; + } return null; }; /** - * Creates a MsgCreateClientResponse message from a plain object. Also converts values to their respective internal types. + * Creates a QueryPacketAcknowledgementsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.client.v1.MsgCreateClientResponse + * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementsResponse * @static * @param {Object.} object Plain object - * @returns {ibc.core.client.v1.MsgCreateClientResponse} MsgCreateClientResponse + * @returns {ibc.core.channel.v1.QueryPacketAcknowledgementsResponse} QueryPacketAcknowledgementsResponse */ - MsgCreateClientResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.client.v1.MsgCreateClientResponse) + QueryPacketAcknowledgementsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.channel.v1.QueryPacketAcknowledgementsResponse) return object; - return new $root.ibc.core.client.v1.MsgCreateClientResponse(); + let message = new $root.ibc.core.channel.v1.QueryPacketAcknowledgementsResponse(); + if (object.acknowledgements) { + if (!Array.isArray(object.acknowledgements)) + throw TypeError(".ibc.core.channel.v1.QueryPacketAcknowledgementsResponse.acknowledgements: array expected"); + message.acknowledgements = []; + for (let i = 0; i < object.acknowledgements.length; ++i) { + if (typeof object.acknowledgements[i] !== "object") + throw TypeError(".ibc.core.channel.v1.QueryPacketAcknowledgementsResponse.acknowledgements: object expected"); + message.acknowledgements[i] = $root.ibc.core.channel.v1.PacketState.fromObject(object.acknowledgements[i]); + } + } + if (object.pagination != null) { + if (typeof object.pagination !== "object") + throw TypeError(".ibc.core.channel.v1.QueryPacketAcknowledgementsResponse.pagination: object expected"); + message.pagination = $root.cosmos.base.query.v1beta1.PageResponse.fromObject(object.pagination); + } + if (object.height != null) { + if (typeof object.height !== "object") + throw TypeError(".ibc.core.channel.v1.QueryPacketAcknowledgementsResponse.height: object expected"); + message.height = $root.ibc.core.client.v1.Height.fromObject(object.height); + } + return message; }; /** - * Creates a plain object from a MsgCreateClientResponse message. Also converts values to other types if specified. + * Creates a plain object from a QueryPacketAcknowledgementsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.client.v1.MsgCreateClientResponse + * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementsResponse * @static - * @param {ibc.core.client.v1.MsgCreateClientResponse} message MsgCreateClientResponse + * @param {ibc.core.channel.v1.QueryPacketAcknowledgementsResponse} message QueryPacketAcknowledgementsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MsgCreateClientResponse.toObject = function toObject() { - return {}; + QueryPacketAcknowledgementsResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) + object.acknowledgements = []; + if (options.defaults) { + object.pagination = null; + object.height = null; + } + if (message.acknowledgements && message.acknowledgements.length) { + object.acknowledgements = []; + for (let j = 0; j < message.acknowledgements.length; ++j) + object.acknowledgements[j] = $root.ibc.core.channel.v1.PacketState.toObject(message.acknowledgements[j], options); + } + if (message.pagination != null && message.hasOwnProperty("pagination")) + object.pagination = $root.cosmos.base.query.v1beta1.PageResponse.toObject(message.pagination, options); + if (message.height != null && message.hasOwnProperty("height")) + object.height = $root.ibc.core.client.v1.Height.toObject(message.height, options); + return object; }; /** - * Converts this MsgCreateClientResponse to JSON. + * Converts this QueryPacketAcknowledgementsResponse to JSON. * @function toJSON - * @memberof ibc.core.client.v1.MsgCreateClientResponse + * @memberof ibc.core.channel.v1.QueryPacketAcknowledgementsResponse * @instance * @returns {Object.} JSON object */ - MsgCreateClientResponse.prototype.toJSON = function toJSON() { + QueryPacketAcknowledgementsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MsgCreateClientResponse; + return QueryPacketAcknowledgementsResponse; })(); - v1.MsgUpdateClient = (function() { + v1.QueryUnreceivedPacketsRequest = (function() { /** - * Properties of a MsgUpdateClient. - * @memberof ibc.core.client.v1 - * @interface IMsgUpdateClient - * @property {string|null} [client_id] MsgUpdateClient client_id - * @property {google.protobuf.IAny|null} [header] MsgUpdateClient header - * @property {string|null} [signer] MsgUpdateClient signer + * Properties of a QueryUnreceivedPacketsRequest. + * @memberof ibc.core.channel.v1 + * @interface IQueryUnreceivedPacketsRequest + * @property {string|null} [port_id] QueryUnreceivedPacketsRequest port_id + * @property {string|null} [channel_id] QueryUnreceivedPacketsRequest channel_id + * @property {Array.|null} [packet_commitment_sequences] QueryUnreceivedPacketsRequest packet_commitment_sequences */ /** - * Constructs a new MsgUpdateClient. - * @memberof ibc.core.client.v1 - * @classdesc Represents a MsgUpdateClient. - * @implements IMsgUpdateClient + * Constructs a new QueryUnreceivedPacketsRequest. + * @memberof ibc.core.channel.v1 + * @classdesc Represents a QueryUnreceivedPacketsRequest. + * @implements IQueryUnreceivedPacketsRequest * @constructor - * @param {ibc.core.client.v1.IMsgUpdateClient=} [properties] Properties to set + * @param {ibc.core.channel.v1.IQueryUnreceivedPacketsRequest=} [properties] Properties to set */ - function MsgUpdateClient(properties) { + function QueryUnreceivedPacketsRequest(properties) { + this.packet_commitment_sequences = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -50606,89 +56839,100 @@ export const ibc = $root.ibc = (() => { } /** - * MsgUpdateClient client_id. - * @member {string} client_id - * @memberof ibc.core.client.v1.MsgUpdateClient + * QueryUnreceivedPacketsRequest port_id. + * @member {string} port_id + * @memberof ibc.core.channel.v1.QueryUnreceivedPacketsRequest * @instance */ - MsgUpdateClient.prototype.client_id = ""; + QueryUnreceivedPacketsRequest.prototype.port_id = ""; /** - * MsgUpdateClient header. - * @member {google.protobuf.IAny|null|undefined} header - * @memberof ibc.core.client.v1.MsgUpdateClient + * QueryUnreceivedPacketsRequest channel_id. + * @member {string} channel_id + * @memberof ibc.core.channel.v1.QueryUnreceivedPacketsRequest * @instance */ - MsgUpdateClient.prototype.header = null; + QueryUnreceivedPacketsRequest.prototype.channel_id = ""; /** - * MsgUpdateClient signer. - * @member {string} signer - * @memberof ibc.core.client.v1.MsgUpdateClient + * QueryUnreceivedPacketsRequest packet_commitment_sequences. + * @member {Array.} packet_commitment_sequences + * @memberof ibc.core.channel.v1.QueryUnreceivedPacketsRequest * @instance */ - MsgUpdateClient.prototype.signer = ""; + QueryUnreceivedPacketsRequest.prototype.packet_commitment_sequences = $util.emptyArray; /** - * Encodes the specified MsgUpdateClient message. Does not implicitly {@link ibc.core.client.v1.MsgUpdateClient.verify|verify} messages. + * Encodes the specified QueryUnreceivedPacketsRequest message. Does not implicitly {@link ibc.core.channel.v1.QueryUnreceivedPacketsRequest.verify|verify} messages. * @function encode - * @memberof ibc.core.client.v1.MsgUpdateClient + * @memberof ibc.core.channel.v1.QueryUnreceivedPacketsRequest * @static - * @param {ibc.core.client.v1.IMsgUpdateClient} message MsgUpdateClient message or plain object to encode + * @param {ibc.core.channel.v1.IQueryUnreceivedPacketsRequest} message QueryUnreceivedPacketsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgUpdateClient.encode = function encode(message, writer) { + QueryUnreceivedPacketsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.client_id != null && Object.hasOwnProperty.call(message, "client_id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.client_id); - if (message.header != null && Object.hasOwnProperty.call(message, "header")) - $root.google.protobuf.Any.encode(message.header, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.signer != null && Object.hasOwnProperty.call(message, "signer")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.signer); + if (message.port_id != null && Object.hasOwnProperty.call(message, "port_id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.port_id); + if (message.channel_id != null && Object.hasOwnProperty.call(message, "channel_id")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.channel_id); + if (message.packet_commitment_sequences != null && message.packet_commitment_sequences.length) { + writer.uint32(/* id 3, wireType 2 =*/26).fork(); + for (let i = 0; i < message.packet_commitment_sequences.length; ++i) + writer.uint64(message.packet_commitment_sequences[i]); + writer.ldelim(); + } return writer; }; /** - * Encodes the specified MsgUpdateClient message, length delimited. Does not implicitly {@link ibc.core.client.v1.MsgUpdateClient.verify|verify} messages. + * Encodes the specified QueryUnreceivedPacketsRequest message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryUnreceivedPacketsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.client.v1.MsgUpdateClient + * @memberof ibc.core.channel.v1.QueryUnreceivedPacketsRequest * @static - * @param {ibc.core.client.v1.IMsgUpdateClient} message MsgUpdateClient message or plain object to encode + * @param {ibc.core.channel.v1.IQueryUnreceivedPacketsRequest} message QueryUnreceivedPacketsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgUpdateClient.encodeDelimited = function encodeDelimited(message, writer) { + QueryUnreceivedPacketsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MsgUpdateClient message from the specified reader or buffer. + * Decodes a QueryUnreceivedPacketsRequest message from the specified reader or buffer. * @function decode - * @memberof ibc.core.client.v1.MsgUpdateClient + * @memberof ibc.core.channel.v1.QueryUnreceivedPacketsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.client.v1.MsgUpdateClient} MsgUpdateClient + * @returns {ibc.core.channel.v1.QueryUnreceivedPacketsRequest} QueryUnreceivedPacketsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgUpdateClient.decode = function decode(reader, length) { + QueryUnreceivedPacketsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.MsgUpdateClient(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.QueryUnreceivedPacketsRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.client_id = reader.string(); + message.port_id = reader.string(); break; case 2: - message.header = $root.google.protobuf.Any.decode(reader, reader.uint32()); + message.channel_id = reader.string(); break; case 3: - message.signer = reader.string(); + if (!(message.packet_commitment_sequences && message.packet_commitment_sequences.length)) + message.packet_commitment_sequences = []; + if ((tag & 7) === 2) { + let end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.packet_commitment_sequences.push(reader.uint64()); + } else + message.packet_commitment_sequences.push(reader.uint64()); break; default: reader.skipType(tag & 7); @@ -50699,128 +56943,149 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a MsgUpdateClient message from the specified reader or buffer, length delimited. + * Decodes a QueryUnreceivedPacketsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.client.v1.MsgUpdateClient + * @memberof ibc.core.channel.v1.QueryUnreceivedPacketsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.client.v1.MsgUpdateClient} MsgUpdateClient + * @returns {ibc.core.channel.v1.QueryUnreceivedPacketsRequest} QueryUnreceivedPacketsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgUpdateClient.decodeDelimited = function decodeDelimited(reader) { + QueryUnreceivedPacketsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MsgUpdateClient message. + * Verifies a QueryUnreceivedPacketsRequest message. * @function verify - * @memberof ibc.core.client.v1.MsgUpdateClient + * @memberof ibc.core.channel.v1.QueryUnreceivedPacketsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MsgUpdateClient.verify = function verify(message) { + QueryUnreceivedPacketsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.client_id != null && message.hasOwnProperty("client_id")) - if (!$util.isString(message.client_id)) - return "client_id: string expected"; - if (message.header != null && message.hasOwnProperty("header")) { - let error = $root.google.protobuf.Any.verify(message.header); - if (error) - return "header." + error; + if (message.port_id != null && message.hasOwnProperty("port_id")) + if (!$util.isString(message.port_id)) + return "port_id: string expected"; + if (message.channel_id != null && message.hasOwnProperty("channel_id")) + if (!$util.isString(message.channel_id)) + return "channel_id: string expected"; + if (message.packet_commitment_sequences != null && message.hasOwnProperty("packet_commitment_sequences")) { + if (!Array.isArray(message.packet_commitment_sequences)) + return "packet_commitment_sequences: array expected"; + for (let i = 0; i < message.packet_commitment_sequences.length; ++i) + if (!$util.isInteger(message.packet_commitment_sequences[i]) && !(message.packet_commitment_sequences[i] && $util.isInteger(message.packet_commitment_sequences[i].low) && $util.isInteger(message.packet_commitment_sequences[i].high))) + return "packet_commitment_sequences: integer|Long[] expected"; } - if (message.signer != null && message.hasOwnProperty("signer")) - if (!$util.isString(message.signer)) - return "signer: string expected"; return null; }; /** - * Creates a MsgUpdateClient message from a plain object. Also converts values to their respective internal types. + * Creates a QueryUnreceivedPacketsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.client.v1.MsgUpdateClient + * @memberof ibc.core.channel.v1.QueryUnreceivedPacketsRequest * @static * @param {Object.} object Plain object - * @returns {ibc.core.client.v1.MsgUpdateClient} MsgUpdateClient + * @returns {ibc.core.channel.v1.QueryUnreceivedPacketsRequest} QueryUnreceivedPacketsRequest */ - MsgUpdateClient.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.client.v1.MsgUpdateClient) + QueryUnreceivedPacketsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.channel.v1.QueryUnreceivedPacketsRequest) return object; - let message = new $root.ibc.core.client.v1.MsgUpdateClient(); - if (object.client_id != null) - message.client_id = String(object.client_id); - if (object.header != null) { - if (typeof object.header !== "object") - throw TypeError(".ibc.core.client.v1.MsgUpdateClient.header: object expected"); - message.header = $root.google.protobuf.Any.fromObject(object.header); + let message = new $root.ibc.core.channel.v1.QueryUnreceivedPacketsRequest(); + if (object.port_id != null) + message.port_id = String(object.port_id); + if (object.channel_id != null) + message.channel_id = String(object.channel_id); + if (object.packet_commitment_sequences) { + if (!Array.isArray(object.packet_commitment_sequences)) + throw TypeError(".ibc.core.channel.v1.QueryUnreceivedPacketsRequest.packet_commitment_sequences: array expected"); + message.packet_commitment_sequences = []; + for (let i = 0; i < object.packet_commitment_sequences.length; ++i) + if ($util.Long) + (message.packet_commitment_sequences[i] = $util.Long.fromValue(object.packet_commitment_sequences[i])).unsigned = true; + else if (typeof object.packet_commitment_sequences[i] === "string") + message.packet_commitment_sequences[i] = parseInt(object.packet_commitment_sequences[i], 10); + else if (typeof object.packet_commitment_sequences[i] === "number") + message.packet_commitment_sequences[i] = object.packet_commitment_sequences[i]; + else if (typeof object.packet_commitment_sequences[i] === "object") + message.packet_commitment_sequences[i] = new $util.LongBits(object.packet_commitment_sequences[i].low >>> 0, object.packet_commitment_sequences[i].high >>> 0).toNumber(true); } - if (object.signer != null) - message.signer = String(object.signer); return message; }; /** - * Creates a plain object from a MsgUpdateClient message. Also converts values to other types if specified. + * Creates a plain object from a QueryUnreceivedPacketsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.client.v1.MsgUpdateClient + * @memberof ibc.core.channel.v1.QueryUnreceivedPacketsRequest * @static - * @param {ibc.core.client.v1.MsgUpdateClient} message MsgUpdateClient + * @param {ibc.core.channel.v1.QueryUnreceivedPacketsRequest} message QueryUnreceivedPacketsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MsgUpdateClient.toObject = function toObject(message, options) { + QueryUnreceivedPacketsRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; + if (options.arrays || options.defaults) + object.packet_commitment_sequences = []; if (options.defaults) { - object.client_id = ""; - object.header = null; - object.signer = ""; + object.port_id = ""; + object.channel_id = ""; + } + if (message.port_id != null && message.hasOwnProperty("port_id")) + object.port_id = message.port_id; + if (message.channel_id != null && message.hasOwnProperty("channel_id")) + object.channel_id = message.channel_id; + if (message.packet_commitment_sequences && message.packet_commitment_sequences.length) { + object.packet_commitment_sequences = []; + for (let j = 0; j < message.packet_commitment_sequences.length; ++j) + if (typeof message.packet_commitment_sequences[j] === "number") + object.packet_commitment_sequences[j] = options.longs === String ? String(message.packet_commitment_sequences[j]) : message.packet_commitment_sequences[j]; + else + object.packet_commitment_sequences[j] = options.longs === String ? $util.Long.prototype.toString.call(message.packet_commitment_sequences[j]) : options.longs === Number ? new $util.LongBits(message.packet_commitment_sequences[j].low >>> 0, message.packet_commitment_sequences[j].high >>> 0).toNumber(true) : message.packet_commitment_sequences[j]; } - if (message.client_id != null && message.hasOwnProperty("client_id")) - object.client_id = message.client_id; - if (message.header != null && message.hasOwnProperty("header")) - object.header = $root.google.protobuf.Any.toObject(message.header, options); - if (message.signer != null && message.hasOwnProperty("signer")) - object.signer = message.signer; return object; }; /** - * Converts this MsgUpdateClient to JSON. + * Converts this QueryUnreceivedPacketsRequest to JSON. * @function toJSON - * @memberof ibc.core.client.v1.MsgUpdateClient + * @memberof ibc.core.channel.v1.QueryUnreceivedPacketsRequest * @instance * @returns {Object.} JSON object */ - MsgUpdateClient.prototype.toJSON = function toJSON() { + QueryUnreceivedPacketsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MsgUpdateClient; + return QueryUnreceivedPacketsRequest; })(); - v1.MsgUpdateClientResponse = (function() { + v1.QueryUnreceivedPacketsResponse = (function() { /** - * Properties of a MsgUpdateClientResponse. - * @memberof ibc.core.client.v1 - * @interface IMsgUpdateClientResponse + * Properties of a QueryUnreceivedPacketsResponse. + * @memberof ibc.core.channel.v1 + * @interface IQueryUnreceivedPacketsResponse + * @property {Array.|null} [sequences] QueryUnreceivedPacketsResponse sequences + * @property {ibc.core.client.v1.IHeight|null} [height] QueryUnreceivedPacketsResponse height */ /** - * Constructs a new MsgUpdateClientResponse. - * @memberof ibc.core.client.v1 - * @classdesc Represents a MsgUpdateClientResponse. - * @implements IMsgUpdateClientResponse + * Constructs a new QueryUnreceivedPacketsResponse. + * @memberof ibc.core.channel.v1 + * @classdesc Represents a QueryUnreceivedPacketsResponse. + * @implements IQueryUnreceivedPacketsResponse * @constructor - * @param {ibc.core.client.v1.IMsgUpdateClientResponse=} [properties] Properties to set + * @param {ibc.core.channel.v1.IQueryUnreceivedPacketsResponse=} [properties] Properties to set */ - function MsgUpdateClientResponse(properties) { + function QueryUnreceivedPacketsResponse(properties) { + this.sequences = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -50828,51 +57093,88 @@ export const ibc = $root.ibc = (() => { } /** - * Encodes the specified MsgUpdateClientResponse message. Does not implicitly {@link ibc.core.client.v1.MsgUpdateClientResponse.verify|verify} messages. + * QueryUnreceivedPacketsResponse sequences. + * @member {Array.} sequences + * @memberof ibc.core.channel.v1.QueryUnreceivedPacketsResponse + * @instance + */ + QueryUnreceivedPacketsResponse.prototype.sequences = $util.emptyArray; + + /** + * QueryUnreceivedPacketsResponse height. + * @member {ibc.core.client.v1.IHeight|null|undefined} height + * @memberof ibc.core.channel.v1.QueryUnreceivedPacketsResponse + * @instance + */ + QueryUnreceivedPacketsResponse.prototype.height = null; + + /** + * Encodes the specified QueryUnreceivedPacketsResponse message. Does not implicitly {@link ibc.core.channel.v1.QueryUnreceivedPacketsResponse.verify|verify} messages. * @function encode - * @memberof ibc.core.client.v1.MsgUpdateClientResponse + * @memberof ibc.core.channel.v1.QueryUnreceivedPacketsResponse * @static - * @param {ibc.core.client.v1.IMsgUpdateClientResponse} message MsgUpdateClientResponse message or plain object to encode + * @param {ibc.core.channel.v1.IQueryUnreceivedPacketsResponse} message QueryUnreceivedPacketsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgUpdateClientResponse.encode = function encode(message, writer) { + QueryUnreceivedPacketsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.sequences != null && message.sequences.length) { + writer.uint32(/* id 1, wireType 2 =*/10).fork(); + for (let i = 0; i < message.sequences.length; ++i) + writer.uint64(message.sequences[i]); + writer.ldelim(); + } + if (message.height != null && Object.hasOwnProperty.call(message, "height")) + $root.ibc.core.client.v1.Height.encode(message.height, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified MsgUpdateClientResponse message, length delimited. Does not implicitly {@link ibc.core.client.v1.MsgUpdateClientResponse.verify|verify} messages. + * Encodes the specified QueryUnreceivedPacketsResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryUnreceivedPacketsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.client.v1.MsgUpdateClientResponse + * @memberof ibc.core.channel.v1.QueryUnreceivedPacketsResponse * @static - * @param {ibc.core.client.v1.IMsgUpdateClientResponse} message MsgUpdateClientResponse message or plain object to encode + * @param {ibc.core.channel.v1.IQueryUnreceivedPacketsResponse} message QueryUnreceivedPacketsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgUpdateClientResponse.encodeDelimited = function encodeDelimited(message, writer) { + QueryUnreceivedPacketsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MsgUpdateClientResponse message from the specified reader or buffer. + * Decodes a QueryUnreceivedPacketsResponse message from the specified reader or buffer. * @function decode - * @memberof ibc.core.client.v1.MsgUpdateClientResponse + * @memberof ibc.core.channel.v1.QueryUnreceivedPacketsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.client.v1.MsgUpdateClientResponse} MsgUpdateClientResponse + * @returns {ibc.core.channel.v1.QueryUnreceivedPacketsResponse} QueryUnreceivedPacketsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgUpdateClientResponse.decode = function decode(reader, length) { + QueryUnreceivedPacketsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.MsgUpdateClientResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.QueryUnreceivedPacketsResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { + case 1: + if (!(message.sequences && message.sequences.length)) + message.sequences = []; + if ((tag & 7) === 2) { + let end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.sequences.push(reader.uint64()); + } else + message.sequences.push(reader.uint64()); + break; + case 2: + message.height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); + break; default: reader.skipType(tag & 7); break; @@ -50882,99 +57184,146 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a MsgUpdateClientResponse message from the specified reader or buffer, length delimited. + * Decodes a QueryUnreceivedPacketsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.client.v1.MsgUpdateClientResponse + * @memberof ibc.core.channel.v1.QueryUnreceivedPacketsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.client.v1.MsgUpdateClientResponse} MsgUpdateClientResponse + * @returns {ibc.core.channel.v1.QueryUnreceivedPacketsResponse} QueryUnreceivedPacketsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgUpdateClientResponse.decodeDelimited = function decodeDelimited(reader) { + QueryUnreceivedPacketsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MsgUpdateClientResponse message. + * Verifies a QueryUnreceivedPacketsResponse message. * @function verify - * @memberof ibc.core.client.v1.MsgUpdateClientResponse + * @memberof ibc.core.channel.v1.QueryUnreceivedPacketsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MsgUpdateClientResponse.verify = function verify(message) { + QueryUnreceivedPacketsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.sequences != null && message.hasOwnProperty("sequences")) { + if (!Array.isArray(message.sequences)) + return "sequences: array expected"; + for (let i = 0; i < message.sequences.length; ++i) + if (!$util.isInteger(message.sequences[i]) && !(message.sequences[i] && $util.isInteger(message.sequences[i].low) && $util.isInteger(message.sequences[i].high))) + return "sequences: integer|Long[] expected"; + } + if (message.height != null && message.hasOwnProperty("height")) { + let error = $root.ibc.core.client.v1.Height.verify(message.height); + if (error) + return "height." + error; + } return null; }; /** - * Creates a MsgUpdateClientResponse message from a plain object. Also converts values to their respective internal types. + * Creates a QueryUnreceivedPacketsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.client.v1.MsgUpdateClientResponse + * @memberof ibc.core.channel.v1.QueryUnreceivedPacketsResponse * @static * @param {Object.} object Plain object - * @returns {ibc.core.client.v1.MsgUpdateClientResponse} MsgUpdateClientResponse + * @returns {ibc.core.channel.v1.QueryUnreceivedPacketsResponse} QueryUnreceivedPacketsResponse */ - MsgUpdateClientResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.client.v1.MsgUpdateClientResponse) + QueryUnreceivedPacketsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.channel.v1.QueryUnreceivedPacketsResponse) return object; - return new $root.ibc.core.client.v1.MsgUpdateClientResponse(); + let message = new $root.ibc.core.channel.v1.QueryUnreceivedPacketsResponse(); + if (object.sequences) { + if (!Array.isArray(object.sequences)) + throw TypeError(".ibc.core.channel.v1.QueryUnreceivedPacketsResponse.sequences: array expected"); + message.sequences = []; + for (let i = 0; i < object.sequences.length; ++i) + if ($util.Long) + (message.sequences[i] = $util.Long.fromValue(object.sequences[i])).unsigned = true; + else if (typeof object.sequences[i] === "string") + message.sequences[i] = parseInt(object.sequences[i], 10); + else if (typeof object.sequences[i] === "number") + message.sequences[i] = object.sequences[i]; + else if (typeof object.sequences[i] === "object") + message.sequences[i] = new $util.LongBits(object.sequences[i].low >>> 0, object.sequences[i].high >>> 0).toNumber(true); + } + if (object.height != null) { + if (typeof object.height !== "object") + throw TypeError(".ibc.core.channel.v1.QueryUnreceivedPacketsResponse.height: object expected"); + message.height = $root.ibc.core.client.v1.Height.fromObject(object.height); + } + return message; }; /** - * Creates a plain object from a MsgUpdateClientResponse message. Also converts values to other types if specified. + * Creates a plain object from a QueryUnreceivedPacketsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.client.v1.MsgUpdateClientResponse + * @memberof ibc.core.channel.v1.QueryUnreceivedPacketsResponse * @static - * @param {ibc.core.client.v1.MsgUpdateClientResponse} message MsgUpdateClientResponse + * @param {ibc.core.channel.v1.QueryUnreceivedPacketsResponse} message QueryUnreceivedPacketsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MsgUpdateClientResponse.toObject = function toObject() { - return {}; + QueryUnreceivedPacketsResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) + object.sequences = []; + if (options.defaults) + object.height = null; + if (message.sequences && message.sequences.length) { + object.sequences = []; + for (let j = 0; j < message.sequences.length; ++j) + if (typeof message.sequences[j] === "number") + object.sequences[j] = options.longs === String ? String(message.sequences[j]) : message.sequences[j]; + else + object.sequences[j] = options.longs === String ? $util.Long.prototype.toString.call(message.sequences[j]) : options.longs === Number ? new $util.LongBits(message.sequences[j].low >>> 0, message.sequences[j].high >>> 0).toNumber(true) : message.sequences[j]; + } + if (message.height != null && message.hasOwnProperty("height")) + object.height = $root.ibc.core.client.v1.Height.toObject(message.height, options); + return object; }; /** - * Converts this MsgUpdateClientResponse to JSON. + * Converts this QueryUnreceivedPacketsResponse to JSON. * @function toJSON - * @memberof ibc.core.client.v1.MsgUpdateClientResponse + * @memberof ibc.core.channel.v1.QueryUnreceivedPacketsResponse * @instance * @returns {Object.} JSON object */ - MsgUpdateClientResponse.prototype.toJSON = function toJSON() { + QueryUnreceivedPacketsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MsgUpdateClientResponse; + return QueryUnreceivedPacketsResponse; })(); - v1.MsgUpgradeClient = (function() { + v1.QueryUnreceivedAcksRequest = (function() { /** - * Properties of a MsgUpgradeClient. - * @memberof ibc.core.client.v1 - * @interface IMsgUpgradeClient - * @property {string|null} [client_id] MsgUpgradeClient client_id - * @property {google.protobuf.IAny|null} [client_state] MsgUpgradeClient client_state - * @property {google.protobuf.IAny|null} [consensus_state] MsgUpgradeClient consensus_state - * @property {Uint8Array|null} [proof_upgrade_client] MsgUpgradeClient proof_upgrade_client - * @property {Uint8Array|null} [proof_upgrade_consensus_state] MsgUpgradeClient proof_upgrade_consensus_state - * @property {string|null} [signer] MsgUpgradeClient signer + * Properties of a QueryUnreceivedAcksRequest. + * @memberof ibc.core.channel.v1 + * @interface IQueryUnreceivedAcksRequest + * @property {string|null} [port_id] QueryUnreceivedAcksRequest port_id + * @property {string|null} [channel_id] QueryUnreceivedAcksRequest channel_id + * @property {Array.|null} [packet_ack_sequences] QueryUnreceivedAcksRequest packet_ack_sequences */ /** - * Constructs a new MsgUpgradeClient. - * @memberof ibc.core.client.v1 - * @classdesc Represents a MsgUpgradeClient. - * @implements IMsgUpgradeClient + * Constructs a new QueryUnreceivedAcksRequest. + * @memberof ibc.core.channel.v1 + * @classdesc Represents a QueryUnreceivedAcksRequest. + * @implements IQueryUnreceivedAcksRequest * @constructor - * @param {ibc.core.client.v1.IMsgUpgradeClient=} [properties] Properties to set + * @param {ibc.core.channel.v1.IQueryUnreceivedAcksRequest=} [properties] Properties to set */ - function MsgUpgradeClient(properties) { + function QueryUnreceivedAcksRequest(properties) { + this.packet_ack_sequences = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -50982,128 +57331,100 @@ export const ibc = $root.ibc = (() => { } /** - * MsgUpgradeClient client_id. - * @member {string} client_id - * @memberof ibc.core.client.v1.MsgUpgradeClient - * @instance - */ - MsgUpgradeClient.prototype.client_id = ""; - - /** - * MsgUpgradeClient client_state. - * @member {google.protobuf.IAny|null|undefined} client_state - * @memberof ibc.core.client.v1.MsgUpgradeClient - * @instance - */ - MsgUpgradeClient.prototype.client_state = null; - - /** - * MsgUpgradeClient consensus_state. - * @member {google.protobuf.IAny|null|undefined} consensus_state - * @memberof ibc.core.client.v1.MsgUpgradeClient - * @instance - */ - MsgUpgradeClient.prototype.consensus_state = null; - - /** - * MsgUpgradeClient proof_upgrade_client. - * @member {Uint8Array} proof_upgrade_client - * @memberof ibc.core.client.v1.MsgUpgradeClient + * QueryUnreceivedAcksRequest port_id. + * @member {string} port_id + * @memberof ibc.core.channel.v1.QueryUnreceivedAcksRequest * @instance */ - MsgUpgradeClient.prototype.proof_upgrade_client = $util.newBuffer([]); + QueryUnreceivedAcksRequest.prototype.port_id = ""; /** - * MsgUpgradeClient proof_upgrade_consensus_state. - * @member {Uint8Array} proof_upgrade_consensus_state - * @memberof ibc.core.client.v1.MsgUpgradeClient + * QueryUnreceivedAcksRequest channel_id. + * @member {string} channel_id + * @memberof ibc.core.channel.v1.QueryUnreceivedAcksRequest * @instance */ - MsgUpgradeClient.prototype.proof_upgrade_consensus_state = $util.newBuffer([]); + QueryUnreceivedAcksRequest.prototype.channel_id = ""; /** - * MsgUpgradeClient signer. - * @member {string} signer - * @memberof ibc.core.client.v1.MsgUpgradeClient + * QueryUnreceivedAcksRequest packet_ack_sequences. + * @member {Array.} packet_ack_sequences + * @memberof ibc.core.channel.v1.QueryUnreceivedAcksRequest * @instance */ - MsgUpgradeClient.prototype.signer = ""; + QueryUnreceivedAcksRequest.prototype.packet_ack_sequences = $util.emptyArray; /** - * Encodes the specified MsgUpgradeClient message. Does not implicitly {@link ibc.core.client.v1.MsgUpgradeClient.verify|verify} messages. + * Encodes the specified QueryUnreceivedAcksRequest message. Does not implicitly {@link ibc.core.channel.v1.QueryUnreceivedAcksRequest.verify|verify} messages. * @function encode - * @memberof ibc.core.client.v1.MsgUpgradeClient + * @memberof ibc.core.channel.v1.QueryUnreceivedAcksRequest * @static - * @param {ibc.core.client.v1.IMsgUpgradeClient} message MsgUpgradeClient message or plain object to encode + * @param {ibc.core.channel.v1.IQueryUnreceivedAcksRequest} message QueryUnreceivedAcksRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgUpgradeClient.encode = function encode(message, writer) { + QueryUnreceivedAcksRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.client_id != null && Object.hasOwnProperty.call(message, "client_id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.client_id); - if (message.client_state != null && Object.hasOwnProperty.call(message, "client_state")) - $root.google.protobuf.Any.encode(message.client_state, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.consensus_state != null && Object.hasOwnProperty.call(message, "consensus_state")) - $root.google.protobuf.Any.encode(message.consensus_state, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.proof_upgrade_client != null && Object.hasOwnProperty.call(message, "proof_upgrade_client")) - writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.proof_upgrade_client); - if (message.proof_upgrade_consensus_state != null && Object.hasOwnProperty.call(message, "proof_upgrade_consensus_state")) - writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.proof_upgrade_consensus_state); - if (message.signer != null && Object.hasOwnProperty.call(message, "signer")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.signer); + if (message.port_id != null && Object.hasOwnProperty.call(message, "port_id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.port_id); + if (message.channel_id != null && Object.hasOwnProperty.call(message, "channel_id")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.channel_id); + if (message.packet_ack_sequences != null && message.packet_ack_sequences.length) { + writer.uint32(/* id 3, wireType 2 =*/26).fork(); + for (let i = 0; i < message.packet_ack_sequences.length; ++i) + writer.uint64(message.packet_ack_sequences[i]); + writer.ldelim(); + } return writer; }; /** - * Encodes the specified MsgUpgradeClient message, length delimited. Does not implicitly {@link ibc.core.client.v1.MsgUpgradeClient.verify|verify} messages. + * Encodes the specified QueryUnreceivedAcksRequest message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryUnreceivedAcksRequest.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.client.v1.MsgUpgradeClient + * @memberof ibc.core.channel.v1.QueryUnreceivedAcksRequest * @static - * @param {ibc.core.client.v1.IMsgUpgradeClient} message MsgUpgradeClient message or plain object to encode + * @param {ibc.core.channel.v1.IQueryUnreceivedAcksRequest} message QueryUnreceivedAcksRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgUpgradeClient.encodeDelimited = function encodeDelimited(message, writer) { + QueryUnreceivedAcksRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MsgUpgradeClient message from the specified reader or buffer. + * Decodes a QueryUnreceivedAcksRequest message from the specified reader or buffer. * @function decode - * @memberof ibc.core.client.v1.MsgUpgradeClient + * @memberof ibc.core.channel.v1.QueryUnreceivedAcksRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.client.v1.MsgUpgradeClient} MsgUpgradeClient + * @returns {ibc.core.channel.v1.QueryUnreceivedAcksRequest} QueryUnreceivedAcksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgUpgradeClient.decode = function decode(reader, length) { + QueryUnreceivedAcksRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.MsgUpgradeClient(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.QueryUnreceivedAcksRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.client_id = reader.string(); + message.port_id = reader.string(); break; case 2: - message.client_state = $root.google.protobuf.Any.decode(reader, reader.uint32()); + message.channel_id = reader.string(); break; case 3: - message.consensus_state = $root.google.protobuf.Any.decode(reader, reader.uint32()); - break; - case 4: - message.proof_upgrade_client = reader.bytes(); - break; - case 5: - message.proof_upgrade_consensus_state = reader.bytes(); - break; - case 6: - message.signer = reader.string(); + if (!(message.packet_ack_sequences && message.packet_ack_sequences.length)) + message.packet_ack_sequences = []; + if ((tag & 7) === 2) { + let end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.packet_ack_sequences.push(reader.uint64()); + } else + message.packet_ack_sequences.push(reader.uint64()); break; default: reader.skipType(tag & 7); @@ -51114,175 +57435,149 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a MsgUpgradeClient message from the specified reader or buffer, length delimited. + * Decodes a QueryUnreceivedAcksRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.client.v1.MsgUpgradeClient + * @memberof ibc.core.channel.v1.QueryUnreceivedAcksRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.client.v1.MsgUpgradeClient} MsgUpgradeClient + * @returns {ibc.core.channel.v1.QueryUnreceivedAcksRequest} QueryUnreceivedAcksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgUpgradeClient.decodeDelimited = function decodeDelimited(reader) { + QueryUnreceivedAcksRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MsgUpgradeClient message. + * Verifies a QueryUnreceivedAcksRequest message. * @function verify - * @memberof ibc.core.client.v1.MsgUpgradeClient + * @memberof ibc.core.channel.v1.QueryUnreceivedAcksRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MsgUpgradeClient.verify = function verify(message) { + QueryUnreceivedAcksRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.client_id != null && message.hasOwnProperty("client_id")) - if (!$util.isString(message.client_id)) - return "client_id: string expected"; - if (message.client_state != null && message.hasOwnProperty("client_state")) { - let error = $root.google.protobuf.Any.verify(message.client_state); - if (error) - return "client_state." + error; - } - if (message.consensus_state != null && message.hasOwnProperty("consensus_state")) { - let error = $root.google.protobuf.Any.verify(message.consensus_state); - if (error) - return "consensus_state." + error; + if (message.port_id != null && message.hasOwnProperty("port_id")) + if (!$util.isString(message.port_id)) + return "port_id: string expected"; + if (message.channel_id != null && message.hasOwnProperty("channel_id")) + if (!$util.isString(message.channel_id)) + return "channel_id: string expected"; + if (message.packet_ack_sequences != null && message.hasOwnProperty("packet_ack_sequences")) { + if (!Array.isArray(message.packet_ack_sequences)) + return "packet_ack_sequences: array expected"; + for (let i = 0; i < message.packet_ack_sequences.length; ++i) + if (!$util.isInteger(message.packet_ack_sequences[i]) && !(message.packet_ack_sequences[i] && $util.isInteger(message.packet_ack_sequences[i].low) && $util.isInteger(message.packet_ack_sequences[i].high))) + return "packet_ack_sequences: integer|Long[] expected"; } - if (message.proof_upgrade_client != null && message.hasOwnProperty("proof_upgrade_client")) - if (!(message.proof_upgrade_client && typeof message.proof_upgrade_client.length === "number" || $util.isString(message.proof_upgrade_client))) - return "proof_upgrade_client: buffer expected"; - if (message.proof_upgrade_consensus_state != null && message.hasOwnProperty("proof_upgrade_consensus_state")) - if (!(message.proof_upgrade_consensus_state && typeof message.proof_upgrade_consensus_state.length === "number" || $util.isString(message.proof_upgrade_consensus_state))) - return "proof_upgrade_consensus_state: buffer expected"; - if (message.signer != null && message.hasOwnProperty("signer")) - if (!$util.isString(message.signer)) - return "signer: string expected"; return null; }; /** - * Creates a MsgUpgradeClient message from a plain object. Also converts values to their respective internal types. + * Creates a QueryUnreceivedAcksRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.client.v1.MsgUpgradeClient + * @memberof ibc.core.channel.v1.QueryUnreceivedAcksRequest * @static * @param {Object.} object Plain object - * @returns {ibc.core.client.v1.MsgUpgradeClient} MsgUpgradeClient + * @returns {ibc.core.channel.v1.QueryUnreceivedAcksRequest} QueryUnreceivedAcksRequest */ - MsgUpgradeClient.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.client.v1.MsgUpgradeClient) + QueryUnreceivedAcksRequest.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.channel.v1.QueryUnreceivedAcksRequest) return object; - let message = new $root.ibc.core.client.v1.MsgUpgradeClient(); - if (object.client_id != null) - message.client_id = String(object.client_id); - if (object.client_state != null) { - if (typeof object.client_state !== "object") - throw TypeError(".ibc.core.client.v1.MsgUpgradeClient.client_state: object expected"); - message.client_state = $root.google.protobuf.Any.fromObject(object.client_state); - } - if (object.consensus_state != null) { - if (typeof object.consensus_state !== "object") - throw TypeError(".ibc.core.client.v1.MsgUpgradeClient.consensus_state: object expected"); - message.consensus_state = $root.google.protobuf.Any.fromObject(object.consensus_state); + let message = new $root.ibc.core.channel.v1.QueryUnreceivedAcksRequest(); + if (object.port_id != null) + message.port_id = String(object.port_id); + if (object.channel_id != null) + message.channel_id = String(object.channel_id); + if (object.packet_ack_sequences) { + if (!Array.isArray(object.packet_ack_sequences)) + throw TypeError(".ibc.core.channel.v1.QueryUnreceivedAcksRequest.packet_ack_sequences: array expected"); + message.packet_ack_sequences = []; + for (let i = 0; i < object.packet_ack_sequences.length; ++i) + if ($util.Long) + (message.packet_ack_sequences[i] = $util.Long.fromValue(object.packet_ack_sequences[i])).unsigned = true; + else if (typeof object.packet_ack_sequences[i] === "string") + message.packet_ack_sequences[i] = parseInt(object.packet_ack_sequences[i], 10); + else if (typeof object.packet_ack_sequences[i] === "number") + message.packet_ack_sequences[i] = object.packet_ack_sequences[i]; + else if (typeof object.packet_ack_sequences[i] === "object") + message.packet_ack_sequences[i] = new $util.LongBits(object.packet_ack_sequences[i].low >>> 0, object.packet_ack_sequences[i].high >>> 0).toNumber(true); } - if (object.proof_upgrade_client != null) - if (typeof object.proof_upgrade_client === "string") - $util.base64.decode(object.proof_upgrade_client, message.proof_upgrade_client = $util.newBuffer($util.base64.length(object.proof_upgrade_client)), 0); - else if (object.proof_upgrade_client.length) - message.proof_upgrade_client = object.proof_upgrade_client; - if (object.proof_upgrade_consensus_state != null) - if (typeof object.proof_upgrade_consensus_state === "string") - $util.base64.decode(object.proof_upgrade_consensus_state, message.proof_upgrade_consensus_state = $util.newBuffer($util.base64.length(object.proof_upgrade_consensus_state)), 0); - else if (object.proof_upgrade_consensus_state.length) - message.proof_upgrade_consensus_state = object.proof_upgrade_consensus_state; - if (object.signer != null) - message.signer = String(object.signer); return message; }; /** - * Creates a plain object from a MsgUpgradeClient message. Also converts values to other types if specified. + * Creates a plain object from a QueryUnreceivedAcksRequest message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.client.v1.MsgUpgradeClient + * @memberof ibc.core.channel.v1.QueryUnreceivedAcksRequest * @static - * @param {ibc.core.client.v1.MsgUpgradeClient} message MsgUpgradeClient + * @param {ibc.core.channel.v1.QueryUnreceivedAcksRequest} message QueryUnreceivedAcksRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MsgUpgradeClient.toObject = function toObject(message, options) { + QueryUnreceivedAcksRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; + if (options.arrays || options.defaults) + object.packet_ack_sequences = []; if (options.defaults) { - object.client_id = ""; - object.client_state = null; - object.consensus_state = null; - if (options.bytes === String) - object.proof_upgrade_client = ""; - else { - object.proof_upgrade_client = []; - if (options.bytes !== Array) - object.proof_upgrade_client = $util.newBuffer(object.proof_upgrade_client); - } - if (options.bytes === String) - object.proof_upgrade_consensus_state = ""; - else { - object.proof_upgrade_consensus_state = []; - if (options.bytes !== Array) - object.proof_upgrade_consensus_state = $util.newBuffer(object.proof_upgrade_consensus_state); - } - object.signer = ""; + object.port_id = ""; + object.channel_id = ""; + } + if (message.port_id != null && message.hasOwnProperty("port_id")) + object.port_id = message.port_id; + if (message.channel_id != null && message.hasOwnProperty("channel_id")) + object.channel_id = message.channel_id; + if (message.packet_ack_sequences && message.packet_ack_sequences.length) { + object.packet_ack_sequences = []; + for (let j = 0; j < message.packet_ack_sequences.length; ++j) + if (typeof message.packet_ack_sequences[j] === "number") + object.packet_ack_sequences[j] = options.longs === String ? String(message.packet_ack_sequences[j]) : message.packet_ack_sequences[j]; + else + object.packet_ack_sequences[j] = options.longs === String ? $util.Long.prototype.toString.call(message.packet_ack_sequences[j]) : options.longs === Number ? new $util.LongBits(message.packet_ack_sequences[j].low >>> 0, message.packet_ack_sequences[j].high >>> 0).toNumber(true) : message.packet_ack_sequences[j]; } - if (message.client_id != null && message.hasOwnProperty("client_id")) - object.client_id = message.client_id; - if (message.client_state != null && message.hasOwnProperty("client_state")) - object.client_state = $root.google.protobuf.Any.toObject(message.client_state, options); - if (message.consensus_state != null && message.hasOwnProperty("consensus_state")) - object.consensus_state = $root.google.protobuf.Any.toObject(message.consensus_state, options); - if (message.proof_upgrade_client != null && message.hasOwnProperty("proof_upgrade_client")) - object.proof_upgrade_client = options.bytes === String ? $util.base64.encode(message.proof_upgrade_client, 0, message.proof_upgrade_client.length) : options.bytes === Array ? Array.prototype.slice.call(message.proof_upgrade_client) : message.proof_upgrade_client; - if (message.proof_upgrade_consensus_state != null && message.hasOwnProperty("proof_upgrade_consensus_state")) - object.proof_upgrade_consensus_state = options.bytes === String ? $util.base64.encode(message.proof_upgrade_consensus_state, 0, message.proof_upgrade_consensus_state.length) : options.bytes === Array ? Array.prototype.slice.call(message.proof_upgrade_consensus_state) : message.proof_upgrade_consensus_state; - if (message.signer != null && message.hasOwnProperty("signer")) - object.signer = message.signer; return object; }; /** - * Converts this MsgUpgradeClient to JSON. + * Converts this QueryUnreceivedAcksRequest to JSON. * @function toJSON - * @memberof ibc.core.client.v1.MsgUpgradeClient + * @memberof ibc.core.channel.v1.QueryUnreceivedAcksRequest * @instance * @returns {Object.} JSON object */ - MsgUpgradeClient.prototype.toJSON = function toJSON() { + QueryUnreceivedAcksRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MsgUpgradeClient; + return QueryUnreceivedAcksRequest; })(); - v1.MsgUpgradeClientResponse = (function() { + v1.QueryUnreceivedAcksResponse = (function() { /** - * Properties of a MsgUpgradeClientResponse. - * @memberof ibc.core.client.v1 - * @interface IMsgUpgradeClientResponse + * Properties of a QueryUnreceivedAcksResponse. + * @memberof ibc.core.channel.v1 + * @interface IQueryUnreceivedAcksResponse + * @property {Array.|null} [sequences] QueryUnreceivedAcksResponse sequences + * @property {ibc.core.client.v1.IHeight|null} [height] QueryUnreceivedAcksResponse height */ /** - * Constructs a new MsgUpgradeClientResponse. - * @memberof ibc.core.client.v1 - * @classdesc Represents a MsgUpgradeClientResponse. - * @implements IMsgUpgradeClientResponse + * Constructs a new QueryUnreceivedAcksResponse. + * @memberof ibc.core.channel.v1 + * @classdesc Represents a QueryUnreceivedAcksResponse. + * @implements IQueryUnreceivedAcksResponse * @constructor - * @param {ibc.core.client.v1.IMsgUpgradeClientResponse=} [properties] Properties to set + * @param {ibc.core.channel.v1.IQueryUnreceivedAcksResponse=} [properties] Properties to set */ - function MsgUpgradeClientResponse(properties) { + function QueryUnreceivedAcksResponse(properties) { + this.sequences = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -51290,51 +57585,88 @@ export const ibc = $root.ibc = (() => { } /** - * Encodes the specified MsgUpgradeClientResponse message. Does not implicitly {@link ibc.core.client.v1.MsgUpgradeClientResponse.verify|verify} messages. + * QueryUnreceivedAcksResponse sequences. + * @member {Array.} sequences + * @memberof ibc.core.channel.v1.QueryUnreceivedAcksResponse + * @instance + */ + QueryUnreceivedAcksResponse.prototype.sequences = $util.emptyArray; + + /** + * QueryUnreceivedAcksResponse height. + * @member {ibc.core.client.v1.IHeight|null|undefined} height + * @memberof ibc.core.channel.v1.QueryUnreceivedAcksResponse + * @instance + */ + QueryUnreceivedAcksResponse.prototype.height = null; + + /** + * Encodes the specified QueryUnreceivedAcksResponse message. Does not implicitly {@link ibc.core.channel.v1.QueryUnreceivedAcksResponse.verify|verify} messages. * @function encode - * @memberof ibc.core.client.v1.MsgUpgradeClientResponse + * @memberof ibc.core.channel.v1.QueryUnreceivedAcksResponse * @static - * @param {ibc.core.client.v1.IMsgUpgradeClientResponse} message MsgUpgradeClientResponse message or plain object to encode + * @param {ibc.core.channel.v1.IQueryUnreceivedAcksResponse} message QueryUnreceivedAcksResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgUpgradeClientResponse.encode = function encode(message, writer) { + QueryUnreceivedAcksResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.sequences != null && message.sequences.length) { + writer.uint32(/* id 1, wireType 2 =*/10).fork(); + for (let i = 0; i < message.sequences.length; ++i) + writer.uint64(message.sequences[i]); + writer.ldelim(); + } + if (message.height != null && Object.hasOwnProperty.call(message, "height")) + $root.ibc.core.client.v1.Height.encode(message.height, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified MsgUpgradeClientResponse message, length delimited. Does not implicitly {@link ibc.core.client.v1.MsgUpgradeClientResponse.verify|verify} messages. + * Encodes the specified QueryUnreceivedAcksResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryUnreceivedAcksResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.client.v1.MsgUpgradeClientResponse + * @memberof ibc.core.channel.v1.QueryUnreceivedAcksResponse * @static - * @param {ibc.core.client.v1.IMsgUpgradeClientResponse} message MsgUpgradeClientResponse message or plain object to encode + * @param {ibc.core.channel.v1.IQueryUnreceivedAcksResponse} message QueryUnreceivedAcksResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgUpgradeClientResponse.encodeDelimited = function encodeDelimited(message, writer) { + QueryUnreceivedAcksResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MsgUpgradeClientResponse message from the specified reader or buffer. + * Decodes a QueryUnreceivedAcksResponse message from the specified reader or buffer. * @function decode - * @memberof ibc.core.client.v1.MsgUpgradeClientResponse + * @memberof ibc.core.channel.v1.QueryUnreceivedAcksResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.client.v1.MsgUpgradeClientResponse} MsgUpgradeClientResponse + * @returns {ibc.core.channel.v1.QueryUnreceivedAcksResponse} QueryUnreceivedAcksResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgUpgradeClientResponse.decode = function decode(reader, length) { + QueryUnreceivedAcksResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.MsgUpgradeClientResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.QueryUnreceivedAcksResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { + case 1: + if (!(message.sequences && message.sequences.length)) + message.sequences = []; + if ((tag & 7) === 2) { + let end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.sequences.push(reader.uint64()); + } else + message.sequences.push(reader.uint64()); + break; + case 2: + message.height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); + break; default: reader.skipType(tag & 7); break; @@ -51344,96 +57676,144 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a MsgUpgradeClientResponse message from the specified reader or buffer, length delimited. + * Decodes a QueryUnreceivedAcksResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.client.v1.MsgUpgradeClientResponse + * @memberof ibc.core.channel.v1.QueryUnreceivedAcksResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.client.v1.MsgUpgradeClientResponse} MsgUpgradeClientResponse + * @returns {ibc.core.channel.v1.QueryUnreceivedAcksResponse} QueryUnreceivedAcksResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgUpgradeClientResponse.decodeDelimited = function decodeDelimited(reader) { + QueryUnreceivedAcksResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MsgUpgradeClientResponse message. + * Verifies a QueryUnreceivedAcksResponse message. * @function verify - * @memberof ibc.core.client.v1.MsgUpgradeClientResponse + * @memberof ibc.core.channel.v1.QueryUnreceivedAcksResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MsgUpgradeClientResponse.verify = function verify(message) { + QueryUnreceivedAcksResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.sequences != null && message.hasOwnProperty("sequences")) { + if (!Array.isArray(message.sequences)) + return "sequences: array expected"; + for (let i = 0; i < message.sequences.length; ++i) + if (!$util.isInteger(message.sequences[i]) && !(message.sequences[i] && $util.isInteger(message.sequences[i].low) && $util.isInteger(message.sequences[i].high))) + return "sequences: integer|Long[] expected"; + } + if (message.height != null && message.hasOwnProperty("height")) { + let error = $root.ibc.core.client.v1.Height.verify(message.height); + if (error) + return "height." + error; + } return null; }; /** - * Creates a MsgUpgradeClientResponse message from a plain object. Also converts values to their respective internal types. + * Creates a QueryUnreceivedAcksResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.client.v1.MsgUpgradeClientResponse + * @memberof ibc.core.channel.v1.QueryUnreceivedAcksResponse * @static * @param {Object.} object Plain object - * @returns {ibc.core.client.v1.MsgUpgradeClientResponse} MsgUpgradeClientResponse + * @returns {ibc.core.channel.v1.QueryUnreceivedAcksResponse} QueryUnreceivedAcksResponse */ - MsgUpgradeClientResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.client.v1.MsgUpgradeClientResponse) + QueryUnreceivedAcksResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.channel.v1.QueryUnreceivedAcksResponse) return object; - return new $root.ibc.core.client.v1.MsgUpgradeClientResponse(); + let message = new $root.ibc.core.channel.v1.QueryUnreceivedAcksResponse(); + if (object.sequences) { + if (!Array.isArray(object.sequences)) + throw TypeError(".ibc.core.channel.v1.QueryUnreceivedAcksResponse.sequences: array expected"); + message.sequences = []; + for (let i = 0; i < object.sequences.length; ++i) + if ($util.Long) + (message.sequences[i] = $util.Long.fromValue(object.sequences[i])).unsigned = true; + else if (typeof object.sequences[i] === "string") + message.sequences[i] = parseInt(object.sequences[i], 10); + else if (typeof object.sequences[i] === "number") + message.sequences[i] = object.sequences[i]; + else if (typeof object.sequences[i] === "object") + message.sequences[i] = new $util.LongBits(object.sequences[i].low >>> 0, object.sequences[i].high >>> 0).toNumber(true); + } + if (object.height != null) { + if (typeof object.height !== "object") + throw TypeError(".ibc.core.channel.v1.QueryUnreceivedAcksResponse.height: object expected"); + message.height = $root.ibc.core.client.v1.Height.fromObject(object.height); + } + return message; }; /** - * Creates a plain object from a MsgUpgradeClientResponse message. Also converts values to other types if specified. + * Creates a plain object from a QueryUnreceivedAcksResponse message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.client.v1.MsgUpgradeClientResponse + * @memberof ibc.core.channel.v1.QueryUnreceivedAcksResponse * @static - * @param {ibc.core.client.v1.MsgUpgradeClientResponse} message MsgUpgradeClientResponse + * @param {ibc.core.channel.v1.QueryUnreceivedAcksResponse} message QueryUnreceivedAcksResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MsgUpgradeClientResponse.toObject = function toObject() { - return {}; + QueryUnreceivedAcksResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) + object.sequences = []; + if (options.defaults) + object.height = null; + if (message.sequences && message.sequences.length) { + object.sequences = []; + for (let j = 0; j < message.sequences.length; ++j) + if (typeof message.sequences[j] === "number") + object.sequences[j] = options.longs === String ? String(message.sequences[j]) : message.sequences[j]; + else + object.sequences[j] = options.longs === String ? $util.Long.prototype.toString.call(message.sequences[j]) : options.longs === Number ? new $util.LongBits(message.sequences[j].low >>> 0, message.sequences[j].high >>> 0).toNumber(true) : message.sequences[j]; + } + if (message.height != null && message.hasOwnProperty("height")) + object.height = $root.ibc.core.client.v1.Height.toObject(message.height, options); + return object; }; /** - * Converts this MsgUpgradeClientResponse to JSON. + * Converts this QueryUnreceivedAcksResponse to JSON. * @function toJSON - * @memberof ibc.core.client.v1.MsgUpgradeClientResponse + * @memberof ibc.core.channel.v1.QueryUnreceivedAcksResponse * @instance * @returns {Object.} JSON object */ - MsgUpgradeClientResponse.prototype.toJSON = function toJSON() { + QueryUnreceivedAcksResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MsgUpgradeClientResponse; + return QueryUnreceivedAcksResponse; })(); - - v1.MsgSubmitMisbehaviour = (function() { - - /** - * Properties of a MsgSubmitMisbehaviour. - * @memberof ibc.core.client.v1 - * @interface IMsgSubmitMisbehaviour - * @property {string|null} [client_id] MsgSubmitMisbehaviour client_id - * @property {google.protobuf.IAny|null} [misbehaviour] MsgSubmitMisbehaviour misbehaviour - * @property {string|null} [signer] MsgSubmitMisbehaviour signer + + v1.QueryNextSequenceReceiveRequest = (function() { + + /** + * Properties of a QueryNextSequenceReceiveRequest. + * @memberof ibc.core.channel.v1 + * @interface IQueryNextSequenceReceiveRequest + * @property {string|null} [port_id] QueryNextSequenceReceiveRequest port_id + * @property {string|null} [channel_id] QueryNextSequenceReceiveRequest channel_id */ /** - * Constructs a new MsgSubmitMisbehaviour. - * @memberof ibc.core.client.v1 - * @classdesc Represents a MsgSubmitMisbehaviour. - * @implements IMsgSubmitMisbehaviour + * Constructs a new QueryNextSequenceReceiveRequest. + * @memberof ibc.core.channel.v1 + * @classdesc Represents a QueryNextSequenceReceiveRequest. + * @implements IQueryNextSequenceReceiveRequest * @constructor - * @param {ibc.core.client.v1.IMsgSubmitMisbehaviour=} [properties] Properties to set + * @param {ibc.core.channel.v1.IQueryNextSequenceReceiveRequest=} [properties] Properties to set */ - function MsgSubmitMisbehaviour(properties) { + function QueryNextSequenceReceiveRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -51441,89 +57821,76 @@ export const ibc = $root.ibc = (() => { } /** - * MsgSubmitMisbehaviour client_id. - * @member {string} client_id - * @memberof ibc.core.client.v1.MsgSubmitMisbehaviour - * @instance - */ - MsgSubmitMisbehaviour.prototype.client_id = ""; - - /** - * MsgSubmitMisbehaviour misbehaviour. - * @member {google.protobuf.IAny|null|undefined} misbehaviour - * @memberof ibc.core.client.v1.MsgSubmitMisbehaviour + * QueryNextSequenceReceiveRequest port_id. + * @member {string} port_id + * @memberof ibc.core.channel.v1.QueryNextSequenceReceiveRequest * @instance */ - MsgSubmitMisbehaviour.prototype.misbehaviour = null; + QueryNextSequenceReceiveRequest.prototype.port_id = ""; /** - * MsgSubmitMisbehaviour signer. - * @member {string} signer - * @memberof ibc.core.client.v1.MsgSubmitMisbehaviour + * QueryNextSequenceReceiveRequest channel_id. + * @member {string} channel_id + * @memberof ibc.core.channel.v1.QueryNextSequenceReceiveRequest * @instance */ - MsgSubmitMisbehaviour.prototype.signer = ""; + QueryNextSequenceReceiveRequest.prototype.channel_id = ""; /** - * Encodes the specified MsgSubmitMisbehaviour message. Does not implicitly {@link ibc.core.client.v1.MsgSubmitMisbehaviour.verify|verify} messages. + * Encodes the specified QueryNextSequenceReceiveRequest message. Does not implicitly {@link ibc.core.channel.v1.QueryNextSequenceReceiveRequest.verify|verify} messages. * @function encode - * @memberof ibc.core.client.v1.MsgSubmitMisbehaviour + * @memberof ibc.core.channel.v1.QueryNextSequenceReceiveRequest * @static - * @param {ibc.core.client.v1.IMsgSubmitMisbehaviour} message MsgSubmitMisbehaviour message or plain object to encode + * @param {ibc.core.channel.v1.IQueryNextSequenceReceiveRequest} message QueryNextSequenceReceiveRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgSubmitMisbehaviour.encode = function encode(message, writer) { + QueryNextSequenceReceiveRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.client_id != null && Object.hasOwnProperty.call(message, "client_id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.client_id); - if (message.misbehaviour != null && Object.hasOwnProperty.call(message, "misbehaviour")) - $root.google.protobuf.Any.encode(message.misbehaviour, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.signer != null && Object.hasOwnProperty.call(message, "signer")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.signer); + if (message.port_id != null && Object.hasOwnProperty.call(message, "port_id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.port_id); + if (message.channel_id != null && Object.hasOwnProperty.call(message, "channel_id")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.channel_id); return writer; }; /** - * Encodes the specified MsgSubmitMisbehaviour message, length delimited. Does not implicitly {@link ibc.core.client.v1.MsgSubmitMisbehaviour.verify|verify} messages. + * Encodes the specified QueryNextSequenceReceiveRequest message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryNextSequenceReceiveRequest.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.client.v1.MsgSubmitMisbehaviour + * @memberof ibc.core.channel.v1.QueryNextSequenceReceiveRequest * @static - * @param {ibc.core.client.v1.IMsgSubmitMisbehaviour} message MsgSubmitMisbehaviour message or plain object to encode + * @param {ibc.core.channel.v1.IQueryNextSequenceReceiveRequest} message QueryNextSequenceReceiveRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgSubmitMisbehaviour.encodeDelimited = function encodeDelimited(message, writer) { + QueryNextSequenceReceiveRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MsgSubmitMisbehaviour message from the specified reader or buffer. + * Decodes a QueryNextSequenceReceiveRequest message from the specified reader or buffer. * @function decode - * @memberof ibc.core.client.v1.MsgSubmitMisbehaviour + * @memberof ibc.core.channel.v1.QueryNextSequenceReceiveRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.client.v1.MsgSubmitMisbehaviour} MsgSubmitMisbehaviour + * @returns {ibc.core.channel.v1.QueryNextSequenceReceiveRequest} QueryNextSequenceReceiveRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgSubmitMisbehaviour.decode = function decode(reader, length) { + QueryNextSequenceReceiveRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.MsgSubmitMisbehaviour(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.QueryNextSequenceReceiveRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.client_id = reader.string(); + message.port_id = reader.string(); break; case 2: - message.misbehaviour = $root.google.protobuf.Any.decode(reader, reader.uint32()); - break; - case 3: - message.signer = reader.string(); + message.channel_id = reader.string(); break; default: reader.skipType(tag & 7); @@ -51534,128 +57901,118 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a MsgSubmitMisbehaviour message from the specified reader or buffer, length delimited. + * Decodes a QueryNextSequenceReceiveRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.client.v1.MsgSubmitMisbehaviour + * @memberof ibc.core.channel.v1.QueryNextSequenceReceiveRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.client.v1.MsgSubmitMisbehaviour} MsgSubmitMisbehaviour + * @returns {ibc.core.channel.v1.QueryNextSequenceReceiveRequest} QueryNextSequenceReceiveRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgSubmitMisbehaviour.decodeDelimited = function decodeDelimited(reader) { + QueryNextSequenceReceiveRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MsgSubmitMisbehaviour message. + * Verifies a QueryNextSequenceReceiveRequest message. * @function verify - * @memberof ibc.core.client.v1.MsgSubmitMisbehaviour + * @memberof ibc.core.channel.v1.QueryNextSequenceReceiveRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MsgSubmitMisbehaviour.verify = function verify(message) { + QueryNextSequenceReceiveRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.client_id != null && message.hasOwnProperty("client_id")) - if (!$util.isString(message.client_id)) - return "client_id: string expected"; - if (message.misbehaviour != null && message.hasOwnProperty("misbehaviour")) { - let error = $root.google.protobuf.Any.verify(message.misbehaviour); - if (error) - return "misbehaviour." + error; - } - if (message.signer != null && message.hasOwnProperty("signer")) - if (!$util.isString(message.signer)) - return "signer: string expected"; + if (message.port_id != null && message.hasOwnProperty("port_id")) + if (!$util.isString(message.port_id)) + return "port_id: string expected"; + if (message.channel_id != null && message.hasOwnProperty("channel_id")) + if (!$util.isString(message.channel_id)) + return "channel_id: string expected"; return null; }; /** - * Creates a MsgSubmitMisbehaviour message from a plain object. Also converts values to their respective internal types. + * Creates a QueryNextSequenceReceiveRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.client.v1.MsgSubmitMisbehaviour + * @memberof ibc.core.channel.v1.QueryNextSequenceReceiveRequest * @static * @param {Object.} object Plain object - * @returns {ibc.core.client.v1.MsgSubmitMisbehaviour} MsgSubmitMisbehaviour + * @returns {ibc.core.channel.v1.QueryNextSequenceReceiveRequest} QueryNextSequenceReceiveRequest */ - MsgSubmitMisbehaviour.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.client.v1.MsgSubmitMisbehaviour) + QueryNextSequenceReceiveRequest.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.channel.v1.QueryNextSequenceReceiveRequest) return object; - let message = new $root.ibc.core.client.v1.MsgSubmitMisbehaviour(); - if (object.client_id != null) - message.client_id = String(object.client_id); - if (object.misbehaviour != null) { - if (typeof object.misbehaviour !== "object") - throw TypeError(".ibc.core.client.v1.MsgSubmitMisbehaviour.misbehaviour: object expected"); - message.misbehaviour = $root.google.protobuf.Any.fromObject(object.misbehaviour); - } - if (object.signer != null) - message.signer = String(object.signer); + let message = new $root.ibc.core.channel.v1.QueryNextSequenceReceiveRequest(); + if (object.port_id != null) + message.port_id = String(object.port_id); + if (object.channel_id != null) + message.channel_id = String(object.channel_id); return message; }; /** - * Creates a plain object from a MsgSubmitMisbehaviour message. Also converts values to other types if specified. + * Creates a plain object from a QueryNextSequenceReceiveRequest message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.client.v1.MsgSubmitMisbehaviour + * @memberof ibc.core.channel.v1.QueryNextSequenceReceiveRequest * @static - * @param {ibc.core.client.v1.MsgSubmitMisbehaviour} message MsgSubmitMisbehaviour + * @param {ibc.core.channel.v1.QueryNextSequenceReceiveRequest} message QueryNextSequenceReceiveRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MsgSubmitMisbehaviour.toObject = function toObject(message, options) { + QueryNextSequenceReceiveRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - object.client_id = ""; - object.misbehaviour = null; - object.signer = ""; + object.port_id = ""; + object.channel_id = ""; } - if (message.client_id != null && message.hasOwnProperty("client_id")) - object.client_id = message.client_id; - if (message.misbehaviour != null && message.hasOwnProperty("misbehaviour")) - object.misbehaviour = $root.google.protobuf.Any.toObject(message.misbehaviour, options); - if (message.signer != null && message.hasOwnProperty("signer")) - object.signer = message.signer; + if (message.port_id != null && message.hasOwnProperty("port_id")) + object.port_id = message.port_id; + if (message.channel_id != null && message.hasOwnProperty("channel_id")) + object.channel_id = message.channel_id; return object; }; /** - * Converts this MsgSubmitMisbehaviour to JSON. + * Converts this QueryNextSequenceReceiveRequest to JSON. * @function toJSON - * @memberof ibc.core.client.v1.MsgSubmitMisbehaviour + * @memberof ibc.core.channel.v1.QueryNextSequenceReceiveRequest * @instance * @returns {Object.} JSON object */ - MsgSubmitMisbehaviour.prototype.toJSON = function toJSON() { + QueryNextSequenceReceiveRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MsgSubmitMisbehaviour; + return QueryNextSequenceReceiveRequest; })(); - v1.MsgSubmitMisbehaviourResponse = (function() { + v1.QueryNextSequenceReceiveResponse = (function() { /** - * Properties of a MsgSubmitMisbehaviourResponse. - * @memberof ibc.core.client.v1 - * @interface IMsgSubmitMisbehaviourResponse + * Properties of a QueryNextSequenceReceiveResponse. + * @memberof ibc.core.channel.v1 + * @interface IQueryNextSequenceReceiveResponse + * @property {Long|null} [next_sequence_receive] QueryNextSequenceReceiveResponse next_sequence_receive + * @property {Uint8Array|null} [proof] QueryNextSequenceReceiveResponse proof + * @property {ibc.core.client.v1.IHeight|null} [proof_height] QueryNextSequenceReceiveResponse proof_height */ /** - * Constructs a new MsgSubmitMisbehaviourResponse. - * @memberof ibc.core.client.v1 - * @classdesc Represents a MsgSubmitMisbehaviourResponse. - * @implements IMsgSubmitMisbehaviourResponse + * Constructs a new QueryNextSequenceReceiveResponse. + * @memberof ibc.core.channel.v1 + * @classdesc Represents a QueryNextSequenceReceiveResponse. + * @implements IQueryNextSequenceReceiveResponse * @constructor - * @param {ibc.core.client.v1.IMsgSubmitMisbehaviourResponse=} [properties] Properties to set + * @param {ibc.core.channel.v1.IQueryNextSequenceReceiveResponse=} [properties] Properties to set */ - function MsgSubmitMisbehaviourResponse(properties) { + function QueryNextSequenceReceiveResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -51663,51 +58020,90 @@ export const ibc = $root.ibc = (() => { } /** - * Encodes the specified MsgSubmitMisbehaviourResponse message. Does not implicitly {@link ibc.core.client.v1.MsgSubmitMisbehaviourResponse.verify|verify} messages. + * QueryNextSequenceReceiveResponse next_sequence_receive. + * @member {Long} next_sequence_receive + * @memberof ibc.core.channel.v1.QueryNextSequenceReceiveResponse + * @instance + */ + QueryNextSequenceReceiveResponse.prototype.next_sequence_receive = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + + /** + * QueryNextSequenceReceiveResponse proof. + * @member {Uint8Array} proof + * @memberof ibc.core.channel.v1.QueryNextSequenceReceiveResponse + * @instance + */ + QueryNextSequenceReceiveResponse.prototype.proof = $util.newBuffer([]); + + /** + * QueryNextSequenceReceiveResponse proof_height. + * @member {ibc.core.client.v1.IHeight|null|undefined} proof_height + * @memberof ibc.core.channel.v1.QueryNextSequenceReceiveResponse + * @instance + */ + QueryNextSequenceReceiveResponse.prototype.proof_height = null; + + /** + * Encodes the specified QueryNextSequenceReceiveResponse message. Does not implicitly {@link ibc.core.channel.v1.QueryNextSequenceReceiveResponse.verify|verify} messages. * @function encode - * @memberof ibc.core.client.v1.MsgSubmitMisbehaviourResponse + * @memberof ibc.core.channel.v1.QueryNextSequenceReceiveResponse * @static - * @param {ibc.core.client.v1.IMsgSubmitMisbehaviourResponse} message MsgSubmitMisbehaviourResponse message or plain object to encode + * @param {ibc.core.channel.v1.IQueryNextSequenceReceiveResponse} message QueryNextSequenceReceiveResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgSubmitMisbehaviourResponse.encode = function encode(message, writer) { + QueryNextSequenceReceiveResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.next_sequence_receive != null && Object.hasOwnProperty.call(message, "next_sequence_receive")) + writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.next_sequence_receive); + if (message.proof != null && Object.hasOwnProperty.call(message, "proof")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.proof); + if (message.proof_height != null && Object.hasOwnProperty.call(message, "proof_height")) + $root.ibc.core.client.v1.Height.encode(message.proof_height, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified MsgSubmitMisbehaviourResponse message, length delimited. Does not implicitly {@link ibc.core.client.v1.MsgSubmitMisbehaviourResponse.verify|verify} messages. + * Encodes the specified QueryNextSequenceReceiveResponse message, length delimited. Does not implicitly {@link ibc.core.channel.v1.QueryNextSequenceReceiveResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.client.v1.MsgSubmitMisbehaviourResponse + * @memberof ibc.core.channel.v1.QueryNextSequenceReceiveResponse * @static - * @param {ibc.core.client.v1.IMsgSubmitMisbehaviourResponse} message MsgSubmitMisbehaviourResponse message or plain object to encode + * @param {ibc.core.channel.v1.IQueryNextSequenceReceiveResponse} message QueryNextSequenceReceiveResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgSubmitMisbehaviourResponse.encodeDelimited = function encodeDelimited(message, writer) { + QueryNextSequenceReceiveResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MsgSubmitMisbehaviourResponse message from the specified reader or buffer. + * Decodes a QueryNextSequenceReceiveResponse message from the specified reader or buffer. * @function decode - * @memberof ibc.core.client.v1.MsgSubmitMisbehaviourResponse + * @memberof ibc.core.channel.v1.QueryNextSequenceReceiveResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.client.v1.MsgSubmitMisbehaviourResponse} MsgSubmitMisbehaviourResponse + * @returns {ibc.core.channel.v1.QueryNextSequenceReceiveResponse} QueryNextSequenceReceiveResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgSubmitMisbehaviourResponse.decode = function decode(reader, length) { + QueryNextSequenceReceiveResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.MsgSubmitMisbehaviourResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.QueryNextSequenceReceiveResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { + case 1: + message.next_sequence_receive = reader.uint64(); + break; + case 2: + message.proof = reader.bytes(); + break; + case 3: + message.proof_height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); + break; default: reader.skipType(tag & 7); break; @@ -51717,476 +58113,342 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a MsgSubmitMisbehaviourResponse message from the specified reader or buffer, length delimited. + * Decodes a QueryNextSequenceReceiveResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.client.v1.MsgSubmitMisbehaviourResponse + * @memberof ibc.core.channel.v1.QueryNextSequenceReceiveResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.client.v1.MsgSubmitMisbehaviourResponse} MsgSubmitMisbehaviourResponse + * @returns {ibc.core.channel.v1.QueryNextSequenceReceiveResponse} QueryNextSequenceReceiveResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgSubmitMisbehaviourResponse.decodeDelimited = function decodeDelimited(reader) { + QueryNextSequenceReceiveResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MsgSubmitMisbehaviourResponse message. + * Verifies a QueryNextSequenceReceiveResponse message. * @function verify - * @memberof ibc.core.client.v1.MsgSubmitMisbehaviourResponse + * @memberof ibc.core.channel.v1.QueryNextSequenceReceiveResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MsgSubmitMisbehaviourResponse.verify = function verify(message) { + QueryNextSequenceReceiveResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - return null; - }; - - /** - * Creates a MsgSubmitMisbehaviourResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof ibc.core.client.v1.MsgSubmitMisbehaviourResponse - * @static - * @param {Object.} object Plain object - * @returns {ibc.core.client.v1.MsgSubmitMisbehaviourResponse} MsgSubmitMisbehaviourResponse - */ - MsgSubmitMisbehaviourResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.client.v1.MsgSubmitMisbehaviourResponse) - return object; - return new $root.ibc.core.client.v1.MsgSubmitMisbehaviourResponse(); - }; - - /** - * Creates a plain object from a MsgSubmitMisbehaviourResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof ibc.core.client.v1.MsgSubmitMisbehaviourResponse - * @static - * @param {ibc.core.client.v1.MsgSubmitMisbehaviourResponse} message MsgSubmitMisbehaviourResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - MsgSubmitMisbehaviourResponse.toObject = function toObject() { - return {}; - }; - - /** - * Converts this MsgSubmitMisbehaviourResponse to JSON. - * @function toJSON - * @memberof ibc.core.client.v1.MsgSubmitMisbehaviourResponse - * @instance - * @returns {Object.} JSON object - */ - MsgSubmitMisbehaviourResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return MsgSubmitMisbehaviourResponse; - })(); - - v1.Query = (function() { - - /** - * Constructs a new Query service. - * @memberof ibc.core.client.v1 - * @classdesc Represents a Query - * @extends $protobuf.rpc.Service - * @constructor - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - */ - function Query(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } - - (Query.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Query; - - /** - * Callback as used by {@link ibc.core.client.v1.Query#clientState}. - * @memberof ibc.core.client.v1.Query - * @typedef ClientStateCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.core.client.v1.QueryClientStateResponse} [response] QueryClientStateResponse - */ - - /** - * Calls ClientState. - * @function clientState - * @memberof ibc.core.client.v1.Query - * @instance - * @param {ibc.core.client.v1.IQueryClientStateRequest} request QueryClientStateRequest message or plain object - * @param {ibc.core.client.v1.Query.ClientStateCallback} callback Node-style callback called with the error, if any, and QueryClientStateResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Query.prototype.clientState = function clientState(request, callback) { - return this.rpcCall(clientState, $root.ibc.core.client.v1.QueryClientStateRequest, $root.ibc.core.client.v1.QueryClientStateResponse, request, callback); - }, "name", { value: "ClientState" }); - - /** - * Calls ClientState. - * @function clientState - * @memberof ibc.core.client.v1.Query - * @instance - * @param {ibc.core.client.v1.IQueryClientStateRequest} request QueryClientStateRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link ibc.core.client.v1.Query#clientStates}. - * @memberof ibc.core.client.v1.Query - * @typedef ClientStatesCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.core.client.v1.QueryClientStatesResponse} [response] QueryClientStatesResponse - */ - - /** - * Calls ClientStates. - * @function clientStates - * @memberof ibc.core.client.v1.Query - * @instance - * @param {ibc.core.client.v1.IQueryClientStatesRequest} request QueryClientStatesRequest message or plain object - * @param {ibc.core.client.v1.Query.ClientStatesCallback} callback Node-style callback called with the error, if any, and QueryClientStatesResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Query.prototype.clientStates = function clientStates(request, callback) { - return this.rpcCall(clientStates, $root.ibc.core.client.v1.QueryClientStatesRequest, $root.ibc.core.client.v1.QueryClientStatesResponse, request, callback); - }, "name", { value: "ClientStates" }); - - /** - * Calls ClientStates. - * @function clientStates - * @memberof ibc.core.client.v1.Query - * @instance - * @param {ibc.core.client.v1.IQueryClientStatesRequest} request QueryClientStatesRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link ibc.core.client.v1.Query#consensusState}. - * @memberof ibc.core.client.v1.Query - * @typedef ConsensusStateCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.core.client.v1.QueryConsensusStateResponse} [response] QueryConsensusStateResponse - */ - - /** - * Calls ConsensusState. - * @function consensusState - * @memberof ibc.core.client.v1.Query - * @instance - * @param {ibc.core.client.v1.IQueryConsensusStateRequest} request QueryConsensusStateRequest message or plain object - * @param {ibc.core.client.v1.Query.ConsensusStateCallback} callback Node-style callback called with the error, if any, and QueryConsensusStateResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Query.prototype.consensusState = function consensusState(request, callback) { - return this.rpcCall(consensusState, $root.ibc.core.client.v1.QueryConsensusStateRequest, $root.ibc.core.client.v1.QueryConsensusStateResponse, request, callback); - }, "name", { value: "ConsensusState" }); - - /** - * Calls ConsensusState. - * @function consensusState - * @memberof ibc.core.client.v1.Query - * @instance - * @param {ibc.core.client.v1.IQueryConsensusStateRequest} request QueryConsensusStateRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link ibc.core.client.v1.Query#consensusStates}. - * @memberof ibc.core.client.v1.Query - * @typedef ConsensusStatesCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.core.client.v1.QueryConsensusStatesResponse} [response] QueryConsensusStatesResponse - */ - - /** - * Calls ConsensusStates. - * @function consensusStates - * @memberof ibc.core.client.v1.Query - * @instance - * @param {ibc.core.client.v1.IQueryConsensusStatesRequest} request QueryConsensusStatesRequest message or plain object - * @param {ibc.core.client.v1.Query.ConsensusStatesCallback} callback Node-style callback called with the error, if any, and QueryConsensusStatesResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Query.prototype.consensusStates = function consensusStates(request, callback) { - return this.rpcCall(consensusStates, $root.ibc.core.client.v1.QueryConsensusStatesRequest, $root.ibc.core.client.v1.QueryConsensusStatesResponse, request, callback); - }, "name", { value: "ConsensusStates" }); - - /** - * Calls ConsensusStates. - * @function consensusStates - * @memberof ibc.core.client.v1.Query - * @instance - * @param {ibc.core.client.v1.IQueryConsensusStatesRequest} request QueryConsensusStatesRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link ibc.core.client.v1.Query#consensusStateHeights}. - * @memberof ibc.core.client.v1.Query - * @typedef ConsensusStateHeightsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.core.client.v1.QueryConsensusStateHeightsResponse} [response] QueryConsensusStateHeightsResponse - */ - - /** - * Calls ConsensusStateHeights. - * @function consensusStateHeights - * @memberof ibc.core.client.v1.Query - * @instance - * @param {ibc.core.client.v1.IQueryConsensusStateHeightsRequest} request QueryConsensusStateHeightsRequest message or plain object - * @param {ibc.core.client.v1.Query.ConsensusStateHeightsCallback} callback Node-style callback called with the error, if any, and QueryConsensusStateHeightsResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Query.prototype.consensusStateHeights = function consensusStateHeights(request, callback) { - return this.rpcCall(consensusStateHeights, $root.ibc.core.client.v1.QueryConsensusStateHeightsRequest, $root.ibc.core.client.v1.QueryConsensusStateHeightsResponse, request, callback); - }, "name", { value: "ConsensusStateHeights" }); - - /** - * Calls ConsensusStateHeights. - * @function consensusStateHeights - * @memberof ibc.core.client.v1.Query - * @instance - * @param {ibc.core.client.v1.IQueryConsensusStateHeightsRequest} request QueryConsensusStateHeightsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + if (message.next_sequence_receive != null && message.hasOwnProperty("next_sequence_receive")) + if (!$util.isInteger(message.next_sequence_receive) && !(message.next_sequence_receive && $util.isInteger(message.next_sequence_receive.low) && $util.isInteger(message.next_sequence_receive.high))) + return "next_sequence_receive: integer|Long expected"; + if (message.proof != null && message.hasOwnProperty("proof")) + if (!(message.proof && typeof message.proof.length === "number" || $util.isString(message.proof))) + return "proof: buffer expected"; + if (message.proof_height != null && message.hasOwnProperty("proof_height")) { + let error = $root.ibc.core.client.v1.Height.verify(message.proof_height); + if (error) + return "proof_height." + error; + } + return null; + }; /** - * Callback as used by {@link ibc.core.client.v1.Query#clientStatus}. - * @memberof ibc.core.client.v1.Query - * @typedef ClientStatusCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.core.client.v1.QueryClientStatusResponse} [response] QueryClientStatusResponse + * Creates a QueryNextSequenceReceiveResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof ibc.core.channel.v1.QueryNextSequenceReceiveResponse + * @static + * @param {Object.} object Plain object + * @returns {ibc.core.channel.v1.QueryNextSequenceReceiveResponse} QueryNextSequenceReceiveResponse */ + QueryNextSequenceReceiveResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.channel.v1.QueryNextSequenceReceiveResponse) + return object; + let message = new $root.ibc.core.channel.v1.QueryNextSequenceReceiveResponse(); + if (object.next_sequence_receive != null) + if ($util.Long) + (message.next_sequence_receive = $util.Long.fromValue(object.next_sequence_receive)).unsigned = true; + else if (typeof object.next_sequence_receive === "string") + message.next_sequence_receive = parseInt(object.next_sequence_receive, 10); + else if (typeof object.next_sequence_receive === "number") + message.next_sequence_receive = object.next_sequence_receive; + else if (typeof object.next_sequence_receive === "object") + message.next_sequence_receive = new $util.LongBits(object.next_sequence_receive.low >>> 0, object.next_sequence_receive.high >>> 0).toNumber(true); + if (object.proof != null) + if (typeof object.proof === "string") + $util.base64.decode(object.proof, message.proof = $util.newBuffer($util.base64.length(object.proof)), 0); + else if (object.proof.length) + message.proof = object.proof; + if (object.proof_height != null) { + if (typeof object.proof_height !== "object") + throw TypeError(".ibc.core.channel.v1.QueryNextSequenceReceiveResponse.proof_height: object expected"); + message.proof_height = $root.ibc.core.client.v1.Height.fromObject(object.proof_height); + } + return message; + }; /** - * Calls ClientStatus. - * @function clientStatus - * @memberof ibc.core.client.v1.Query - * @instance - * @param {ibc.core.client.v1.IQueryClientStatusRequest} request QueryClientStatusRequest message or plain object - * @param {ibc.core.client.v1.Query.ClientStatusCallback} callback Node-style callback called with the error, if any, and QueryClientStatusResponse - * @returns {undefined} - * @variation 1 + * Creates a plain object from a QueryNextSequenceReceiveResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof ibc.core.channel.v1.QueryNextSequenceReceiveResponse + * @static + * @param {ibc.core.channel.v1.QueryNextSequenceReceiveResponse} message QueryNextSequenceReceiveResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - Object.defineProperty(Query.prototype.clientStatus = function clientStatus(request, callback) { - return this.rpcCall(clientStatus, $root.ibc.core.client.v1.QueryClientStatusRequest, $root.ibc.core.client.v1.QueryClientStatusResponse, request, callback); - }, "name", { value: "ClientStatus" }); + QueryNextSequenceReceiveResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + if ($util.Long) { + let long = new $util.Long(0, 0, true); + object.next_sequence_receive = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.next_sequence_receive = options.longs === String ? "0" : 0; + if (options.bytes === String) + object.proof = ""; + else { + object.proof = []; + if (options.bytes !== Array) + object.proof = $util.newBuffer(object.proof); + } + object.proof_height = null; + } + if (message.next_sequence_receive != null && message.hasOwnProperty("next_sequence_receive")) + if (typeof message.next_sequence_receive === "number") + object.next_sequence_receive = options.longs === String ? String(message.next_sequence_receive) : message.next_sequence_receive; + else + object.next_sequence_receive = options.longs === String ? $util.Long.prototype.toString.call(message.next_sequence_receive) : options.longs === Number ? new $util.LongBits(message.next_sequence_receive.low >>> 0, message.next_sequence_receive.high >>> 0).toNumber(true) : message.next_sequence_receive; + if (message.proof != null && message.hasOwnProperty("proof")) + object.proof = options.bytes === String ? $util.base64.encode(message.proof, 0, message.proof.length) : options.bytes === Array ? Array.prototype.slice.call(message.proof) : message.proof; + if (message.proof_height != null && message.hasOwnProperty("proof_height")) + object.proof_height = $root.ibc.core.client.v1.Height.toObject(message.proof_height, options); + return object; + }; /** - * Calls ClientStatus. - * @function clientStatus - * @memberof ibc.core.client.v1.Query + * Converts this QueryNextSequenceReceiveResponse to JSON. + * @function toJSON + * @memberof ibc.core.channel.v1.QueryNextSequenceReceiveResponse * @instance - * @param {ibc.core.client.v1.IQueryClientStatusRequest} request QueryClientStatusRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * @returns {Object.} JSON object */ + QueryNextSequenceReceiveResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Callback as used by {@link ibc.core.client.v1.Query#clientParams}. - * @memberof ibc.core.client.v1.Query - * @typedef ClientParamsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.core.client.v1.QueryClientParamsResponse} [response] QueryClientParamsResponse - */ + return QueryNextSequenceReceiveResponse; + })(); - /** - * Calls ClientParams. - * @function clientParams - * @memberof ibc.core.client.v1.Query - * @instance - * @param {ibc.core.client.v1.IQueryClientParamsRequest} request QueryClientParamsRequest message or plain object - * @param {ibc.core.client.v1.Query.ClientParamsCallback} callback Node-style callback called with the error, if any, and QueryClientParamsResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Query.prototype.clientParams = function clientParams(request, callback) { - return this.rpcCall(clientParams, $root.ibc.core.client.v1.QueryClientParamsRequest, $root.ibc.core.client.v1.QueryClientParamsResponse, request, callback); - }, "name", { value: "ClientParams" }); + v1.GenesisState = (function() { /** - * Calls ClientParams. - * @function clientParams - * @memberof ibc.core.client.v1.Query - * @instance - * @param {ibc.core.client.v1.IQueryClientParamsRequest} request QueryClientParamsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Properties of a GenesisState. + * @memberof ibc.core.channel.v1 + * @interface IGenesisState + * @property {Array.|null} [channels] GenesisState channels + * @property {Array.|null} [acknowledgements] GenesisState acknowledgements + * @property {Array.|null} [commitments] GenesisState commitments + * @property {Array.|null} [receipts] GenesisState receipts + * @property {Array.|null} [send_sequences] GenesisState send_sequences + * @property {Array.|null} [recv_sequences] GenesisState recv_sequences + * @property {Array.|null} [ack_sequences] GenesisState ack_sequences + * @property {Long|null} [next_channel_sequence] GenesisState next_channel_sequence */ /** - * Callback as used by {@link ibc.core.client.v1.Query#upgradedClientState}. - * @memberof ibc.core.client.v1.Query - * @typedef UpgradedClientStateCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.core.client.v1.QueryUpgradedClientStateResponse} [response] QueryUpgradedClientStateResponse + * Constructs a new GenesisState. + * @memberof ibc.core.channel.v1 + * @classdesc Represents a GenesisState. + * @implements IGenesisState + * @constructor + * @param {ibc.core.channel.v1.IGenesisState=} [properties] Properties to set */ + function GenesisState(properties) { + this.channels = []; + this.acknowledgements = []; + this.commitments = []; + this.receipts = []; + this.send_sequences = []; + this.recv_sequences = []; + this.ack_sequences = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * Calls UpgradedClientState. - * @function upgradedClientState - * @memberof ibc.core.client.v1.Query + * GenesisState channels. + * @member {Array.} channels + * @memberof ibc.core.channel.v1.GenesisState * @instance - * @param {ibc.core.client.v1.IQueryUpgradedClientStateRequest} request QueryUpgradedClientStateRequest message or plain object - * @param {ibc.core.client.v1.Query.UpgradedClientStateCallback} callback Node-style callback called with the error, if any, and QueryUpgradedClientStateResponse - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(Query.prototype.upgradedClientState = function upgradedClientState(request, callback) { - return this.rpcCall(upgradedClientState, $root.ibc.core.client.v1.QueryUpgradedClientStateRequest, $root.ibc.core.client.v1.QueryUpgradedClientStateResponse, request, callback); - }, "name", { value: "UpgradedClientState" }); + GenesisState.prototype.channels = $util.emptyArray; /** - * Calls UpgradedClientState. - * @function upgradedClientState - * @memberof ibc.core.client.v1.Query + * GenesisState acknowledgements. + * @member {Array.} acknowledgements + * @memberof ibc.core.channel.v1.GenesisState * @instance - * @param {ibc.core.client.v1.IQueryUpgradedClientStateRequest} request QueryUpgradedClientStateRequest message or plain object - * @returns {Promise} Promise - * @variation 2 */ + GenesisState.prototype.acknowledgements = $util.emptyArray; /** - * Callback as used by {@link ibc.core.client.v1.Query#upgradedConsensusState}. - * @memberof ibc.core.client.v1.Query - * @typedef UpgradedConsensusStateCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.core.client.v1.QueryUpgradedConsensusStateResponse} [response] QueryUpgradedConsensusStateResponse + * GenesisState commitments. + * @member {Array.} commitments + * @memberof ibc.core.channel.v1.GenesisState + * @instance */ + GenesisState.prototype.commitments = $util.emptyArray; /** - * Calls UpgradedConsensusState. - * @function upgradedConsensusState - * @memberof ibc.core.client.v1.Query + * GenesisState receipts. + * @member {Array.} receipts + * @memberof ibc.core.channel.v1.GenesisState * @instance - * @param {ibc.core.client.v1.IQueryUpgradedConsensusStateRequest} request QueryUpgradedConsensusStateRequest message or plain object - * @param {ibc.core.client.v1.Query.UpgradedConsensusStateCallback} callback Node-style callback called with the error, if any, and QueryUpgradedConsensusStateResponse - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(Query.prototype.upgradedConsensusState = function upgradedConsensusState(request, callback) { - return this.rpcCall(upgradedConsensusState, $root.ibc.core.client.v1.QueryUpgradedConsensusStateRequest, $root.ibc.core.client.v1.QueryUpgradedConsensusStateResponse, request, callback); - }, "name", { value: "UpgradedConsensusState" }); + GenesisState.prototype.receipts = $util.emptyArray; /** - * Calls UpgradedConsensusState. - * @function upgradedConsensusState - * @memberof ibc.core.client.v1.Query + * GenesisState send_sequences. + * @member {Array.} send_sequences + * @memberof ibc.core.channel.v1.GenesisState * @instance - * @param {ibc.core.client.v1.IQueryUpgradedConsensusStateRequest} request QueryUpgradedConsensusStateRequest message or plain object - * @returns {Promise} Promise - * @variation 2 */ - - return Query; - })(); - - v1.QueryClientStateRequest = (function() { + GenesisState.prototype.send_sequences = $util.emptyArray; /** - * Properties of a QueryClientStateRequest. - * @memberof ibc.core.client.v1 - * @interface IQueryClientStateRequest - * @property {string|null} [client_id] QueryClientStateRequest client_id + * GenesisState recv_sequences. + * @member {Array.} recv_sequences + * @memberof ibc.core.channel.v1.GenesisState + * @instance */ + GenesisState.prototype.recv_sequences = $util.emptyArray; /** - * Constructs a new QueryClientStateRequest. - * @memberof ibc.core.client.v1 - * @classdesc Represents a QueryClientStateRequest. - * @implements IQueryClientStateRequest - * @constructor - * @param {ibc.core.client.v1.IQueryClientStateRequest=} [properties] Properties to set + * GenesisState ack_sequences. + * @member {Array.} ack_sequences + * @memberof ibc.core.channel.v1.GenesisState + * @instance */ - function QueryClientStateRequest(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + GenesisState.prototype.ack_sequences = $util.emptyArray; /** - * QueryClientStateRequest client_id. - * @member {string} client_id - * @memberof ibc.core.client.v1.QueryClientStateRequest + * GenesisState next_channel_sequence. + * @member {Long} next_channel_sequence + * @memberof ibc.core.channel.v1.GenesisState * @instance */ - QueryClientStateRequest.prototype.client_id = ""; + GenesisState.prototype.next_channel_sequence = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** - * Encodes the specified QueryClientStateRequest message. Does not implicitly {@link ibc.core.client.v1.QueryClientStateRequest.verify|verify} messages. + * Encodes the specified GenesisState message. Does not implicitly {@link ibc.core.channel.v1.GenesisState.verify|verify} messages. * @function encode - * @memberof ibc.core.client.v1.QueryClientStateRequest + * @memberof ibc.core.channel.v1.GenesisState * @static - * @param {ibc.core.client.v1.IQueryClientStateRequest} message QueryClientStateRequest message or plain object to encode + * @param {ibc.core.channel.v1.IGenesisState} message GenesisState message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryClientStateRequest.encode = function encode(message, writer) { + GenesisState.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.client_id != null && Object.hasOwnProperty.call(message, "client_id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.client_id); + if (message.channels != null && message.channels.length) + for (let i = 0; i < message.channels.length; ++i) + $root.ibc.core.channel.v1.IdentifiedChannel.encode(message.channels[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.acknowledgements != null && message.acknowledgements.length) + for (let i = 0; i < message.acknowledgements.length; ++i) + $root.ibc.core.channel.v1.PacketState.encode(message.acknowledgements[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.commitments != null && message.commitments.length) + for (let i = 0; i < message.commitments.length; ++i) + $root.ibc.core.channel.v1.PacketState.encode(message.commitments[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.receipts != null && message.receipts.length) + for (let i = 0; i < message.receipts.length; ++i) + $root.ibc.core.channel.v1.PacketState.encode(message.receipts[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.send_sequences != null && message.send_sequences.length) + for (let i = 0; i < message.send_sequences.length; ++i) + $root.ibc.core.channel.v1.PacketSequence.encode(message.send_sequences[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.recv_sequences != null && message.recv_sequences.length) + for (let i = 0; i < message.recv_sequences.length; ++i) + $root.ibc.core.channel.v1.PacketSequence.encode(message.recv_sequences[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.ack_sequences != null && message.ack_sequences.length) + for (let i = 0; i < message.ack_sequences.length; ++i) + $root.ibc.core.channel.v1.PacketSequence.encode(message.ack_sequences[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.next_channel_sequence != null && Object.hasOwnProperty.call(message, "next_channel_sequence")) + writer.uint32(/* id 8, wireType 0 =*/64).uint64(message.next_channel_sequence); return writer; }; /** - * Encodes the specified QueryClientStateRequest message, length delimited. Does not implicitly {@link ibc.core.client.v1.QueryClientStateRequest.verify|verify} messages. + * Encodes the specified GenesisState message, length delimited. Does not implicitly {@link ibc.core.channel.v1.GenesisState.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.client.v1.QueryClientStateRequest + * @memberof ibc.core.channel.v1.GenesisState * @static - * @param {ibc.core.client.v1.IQueryClientStateRequest} message QueryClientStateRequest message or plain object to encode + * @param {ibc.core.channel.v1.IGenesisState} message GenesisState message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryClientStateRequest.encodeDelimited = function encodeDelimited(message, writer) { + GenesisState.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryClientStateRequest message from the specified reader or buffer. + * Decodes a GenesisState message from the specified reader or buffer. * @function decode - * @memberof ibc.core.client.v1.QueryClientStateRequest + * @memberof ibc.core.channel.v1.GenesisState * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.client.v1.QueryClientStateRequest} QueryClientStateRequest + * @returns {ibc.core.channel.v1.GenesisState} GenesisState * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryClientStateRequest.decode = function decode(reader, length) { + GenesisState.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.QueryClientStateRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.GenesisState(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.client_id = reader.string(); + if (!(message.channels && message.channels.length)) + message.channels = []; + message.channels.push($root.ibc.core.channel.v1.IdentifiedChannel.decode(reader, reader.uint32())); + break; + case 2: + if (!(message.acknowledgements && message.acknowledgements.length)) + message.acknowledgements = []; + message.acknowledgements.push($root.ibc.core.channel.v1.PacketState.decode(reader, reader.uint32())); + break; + case 3: + if (!(message.commitments && message.commitments.length)) + message.commitments = []; + message.commitments.push($root.ibc.core.channel.v1.PacketState.decode(reader, reader.uint32())); + break; + case 4: + if (!(message.receipts && message.receipts.length)) + message.receipts = []; + message.receipts.push($root.ibc.core.channel.v1.PacketState.decode(reader, reader.uint32())); + break; + case 5: + if (!(message.send_sequences && message.send_sequences.length)) + message.send_sequences = []; + message.send_sequences.push($root.ibc.core.channel.v1.PacketSequence.decode(reader, reader.uint32())); + break; + case 6: + if (!(message.recv_sequences && message.recv_sequences.length)) + message.recv_sequences = []; + message.recv_sequences.push($root.ibc.core.channel.v1.PacketSequence.decode(reader, reader.uint32())); + break; + case 7: + if (!(message.ack_sequences && message.ack_sequences.length)) + message.ack_sequences = []; + message.ack_sequences.push($root.ibc.core.channel.v1.PacketSequence.decode(reader, reader.uint32())); + break; + case 8: + message.next_channel_sequence = reader.uint64(); break; default: reader.skipType(tag & 7); @@ -52197,109 +58459,300 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a QueryClientStateRequest message from the specified reader or buffer, length delimited. + * Decodes a GenesisState message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.client.v1.QueryClientStateRequest + * @memberof ibc.core.channel.v1.GenesisState * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.client.v1.QueryClientStateRequest} QueryClientStateRequest + * @returns {ibc.core.channel.v1.GenesisState} GenesisState * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryClientStateRequest.decodeDelimited = function decodeDelimited(reader) { + GenesisState.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryClientStateRequest message. + * Verifies a GenesisState message. * @function verify - * @memberof ibc.core.client.v1.QueryClientStateRequest + * @memberof ibc.core.channel.v1.GenesisState * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryClientStateRequest.verify = function verify(message) { + GenesisState.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.client_id != null && message.hasOwnProperty("client_id")) - if (!$util.isString(message.client_id)) - return "client_id: string expected"; + if (message.channels != null && message.hasOwnProperty("channels")) { + if (!Array.isArray(message.channels)) + return "channels: array expected"; + for (let i = 0; i < message.channels.length; ++i) { + let error = $root.ibc.core.channel.v1.IdentifiedChannel.verify(message.channels[i]); + if (error) + return "channels." + error; + } + } + if (message.acknowledgements != null && message.hasOwnProperty("acknowledgements")) { + if (!Array.isArray(message.acknowledgements)) + return "acknowledgements: array expected"; + for (let i = 0; i < message.acknowledgements.length; ++i) { + let error = $root.ibc.core.channel.v1.PacketState.verify(message.acknowledgements[i]); + if (error) + return "acknowledgements." + error; + } + } + if (message.commitments != null && message.hasOwnProperty("commitments")) { + if (!Array.isArray(message.commitments)) + return "commitments: array expected"; + for (let i = 0; i < message.commitments.length; ++i) { + let error = $root.ibc.core.channel.v1.PacketState.verify(message.commitments[i]); + if (error) + return "commitments." + error; + } + } + if (message.receipts != null && message.hasOwnProperty("receipts")) { + if (!Array.isArray(message.receipts)) + return "receipts: array expected"; + for (let i = 0; i < message.receipts.length; ++i) { + let error = $root.ibc.core.channel.v1.PacketState.verify(message.receipts[i]); + if (error) + return "receipts." + error; + } + } + if (message.send_sequences != null && message.hasOwnProperty("send_sequences")) { + if (!Array.isArray(message.send_sequences)) + return "send_sequences: array expected"; + for (let i = 0; i < message.send_sequences.length; ++i) { + let error = $root.ibc.core.channel.v1.PacketSequence.verify(message.send_sequences[i]); + if (error) + return "send_sequences." + error; + } + } + if (message.recv_sequences != null && message.hasOwnProperty("recv_sequences")) { + if (!Array.isArray(message.recv_sequences)) + return "recv_sequences: array expected"; + for (let i = 0; i < message.recv_sequences.length; ++i) { + let error = $root.ibc.core.channel.v1.PacketSequence.verify(message.recv_sequences[i]); + if (error) + return "recv_sequences." + error; + } + } + if (message.ack_sequences != null && message.hasOwnProperty("ack_sequences")) { + if (!Array.isArray(message.ack_sequences)) + return "ack_sequences: array expected"; + for (let i = 0; i < message.ack_sequences.length; ++i) { + let error = $root.ibc.core.channel.v1.PacketSequence.verify(message.ack_sequences[i]); + if (error) + return "ack_sequences." + error; + } + } + if (message.next_channel_sequence != null && message.hasOwnProperty("next_channel_sequence")) + if (!$util.isInteger(message.next_channel_sequence) && !(message.next_channel_sequence && $util.isInteger(message.next_channel_sequence.low) && $util.isInteger(message.next_channel_sequence.high))) + return "next_channel_sequence: integer|Long expected"; return null; }; /** - * Creates a QueryClientStateRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GenesisState message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.client.v1.QueryClientStateRequest + * @memberof ibc.core.channel.v1.GenesisState * @static * @param {Object.} object Plain object - * @returns {ibc.core.client.v1.QueryClientStateRequest} QueryClientStateRequest + * @returns {ibc.core.channel.v1.GenesisState} GenesisState */ - QueryClientStateRequest.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.client.v1.QueryClientStateRequest) + GenesisState.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.channel.v1.GenesisState) return object; - let message = new $root.ibc.core.client.v1.QueryClientStateRequest(); - if (object.client_id != null) - message.client_id = String(object.client_id); + let message = new $root.ibc.core.channel.v1.GenesisState(); + if (object.channels) { + if (!Array.isArray(object.channels)) + throw TypeError(".ibc.core.channel.v1.GenesisState.channels: array expected"); + message.channels = []; + for (let i = 0; i < object.channels.length; ++i) { + if (typeof object.channels[i] !== "object") + throw TypeError(".ibc.core.channel.v1.GenesisState.channels: object expected"); + message.channels[i] = $root.ibc.core.channel.v1.IdentifiedChannel.fromObject(object.channels[i]); + } + } + if (object.acknowledgements) { + if (!Array.isArray(object.acknowledgements)) + throw TypeError(".ibc.core.channel.v1.GenesisState.acknowledgements: array expected"); + message.acknowledgements = []; + for (let i = 0; i < object.acknowledgements.length; ++i) { + if (typeof object.acknowledgements[i] !== "object") + throw TypeError(".ibc.core.channel.v1.GenesisState.acknowledgements: object expected"); + message.acknowledgements[i] = $root.ibc.core.channel.v1.PacketState.fromObject(object.acknowledgements[i]); + } + } + if (object.commitments) { + if (!Array.isArray(object.commitments)) + throw TypeError(".ibc.core.channel.v1.GenesisState.commitments: array expected"); + message.commitments = []; + for (let i = 0; i < object.commitments.length; ++i) { + if (typeof object.commitments[i] !== "object") + throw TypeError(".ibc.core.channel.v1.GenesisState.commitments: object expected"); + message.commitments[i] = $root.ibc.core.channel.v1.PacketState.fromObject(object.commitments[i]); + } + } + if (object.receipts) { + if (!Array.isArray(object.receipts)) + throw TypeError(".ibc.core.channel.v1.GenesisState.receipts: array expected"); + message.receipts = []; + for (let i = 0; i < object.receipts.length; ++i) { + if (typeof object.receipts[i] !== "object") + throw TypeError(".ibc.core.channel.v1.GenesisState.receipts: object expected"); + message.receipts[i] = $root.ibc.core.channel.v1.PacketState.fromObject(object.receipts[i]); + } + } + if (object.send_sequences) { + if (!Array.isArray(object.send_sequences)) + throw TypeError(".ibc.core.channel.v1.GenesisState.send_sequences: array expected"); + message.send_sequences = []; + for (let i = 0; i < object.send_sequences.length; ++i) { + if (typeof object.send_sequences[i] !== "object") + throw TypeError(".ibc.core.channel.v1.GenesisState.send_sequences: object expected"); + message.send_sequences[i] = $root.ibc.core.channel.v1.PacketSequence.fromObject(object.send_sequences[i]); + } + } + if (object.recv_sequences) { + if (!Array.isArray(object.recv_sequences)) + throw TypeError(".ibc.core.channel.v1.GenesisState.recv_sequences: array expected"); + message.recv_sequences = []; + for (let i = 0; i < object.recv_sequences.length; ++i) { + if (typeof object.recv_sequences[i] !== "object") + throw TypeError(".ibc.core.channel.v1.GenesisState.recv_sequences: object expected"); + message.recv_sequences[i] = $root.ibc.core.channel.v1.PacketSequence.fromObject(object.recv_sequences[i]); + } + } + if (object.ack_sequences) { + if (!Array.isArray(object.ack_sequences)) + throw TypeError(".ibc.core.channel.v1.GenesisState.ack_sequences: array expected"); + message.ack_sequences = []; + for (let i = 0; i < object.ack_sequences.length; ++i) { + if (typeof object.ack_sequences[i] !== "object") + throw TypeError(".ibc.core.channel.v1.GenesisState.ack_sequences: object expected"); + message.ack_sequences[i] = $root.ibc.core.channel.v1.PacketSequence.fromObject(object.ack_sequences[i]); + } + } + if (object.next_channel_sequence != null) + if ($util.Long) + (message.next_channel_sequence = $util.Long.fromValue(object.next_channel_sequence)).unsigned = true; + else if (typeof object.next_channel_sequence === "string") + message.next_channel_sequence = parseInt(object.next_channel_sequence, 10); + else if (typeof object.next_channel_sequence === "number") + message.next_channel_sequence = object.next_channel_sequence; + else if (typeof object.next_channel_sequence === "object") + message.next_channel_sequence = new $util.LongBits(object.next_channel_sequence.low >>> 0, object.next_channel_sequence.high >>> 0).toNumber(true); return message; }; /** - * Creates a plain object from a QueryClientStateRequest message. Also converts values to other types if specified. + * Creates a plain object from a GenesisState message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.client.v1.QueryClientStateRequest + * @memberof ibc.core.channel.v1.GenesisState * @static - * @param {ibc.core.client.v1.QueryClientStateRequest} message QueryClientStateRequest + * @param {ibc.core.channel.v1.GenesisState} message GenesisState * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryClientStateRequest.toObject = function toObject(message, options) { + GenesisState.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; + if (options.arrays || options.defaults) { + object.channels = []; + object.acknowledgements = []; + object.commitments = []; + object.receipts = []; + object.send_sequences = []; + object.recv_sequences = []; + object.ack_sequences = []; + } if (options.defaults) - object.client_id = ""; - if (message.client_id != null && message.hasOwnProperty("client_id")) - object.client_id = message.client_id; + if ($util.Long) { + let long = new $util.Long(0, 0, true); + object.next_channel_sequence = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.next_channel_sequence = options.longs === String ? "0" : 0; + if (message.channels && message.channels.length) { + object.channels = []; + for (let j = 0; j < message.channels.length; ++j) + object.channels[j] = $root.ibc.core.channel.v1.IdentifiedChannel.toObject(message.channels[j], options); + } + if (message.acknowledgements && message.acknowledgements.length) { + object.acknowledgements = []; + for (let j = 0; j < message.acknowledgements.length; ++j) + object.acknowledgements[j] = $root.ibc.core.channel.v1.PacketState.toObject(message.acknowledgements[j], options); + } + if (message.commitments && message.commitments.length) { + object.commitments = []; + for (let j = 0; j < message.commitments.length; ++j) + object.commitments[j] = $root.ibc.core.channel.v1.PacketState.toObject(message.commitments[j], options); + } + if (message.receipts && message.receipts.length) { + object.receipts = []; + for (let j = 0; j < message.receipts.length; ++j) + object.receipts[j] = $root.ibc.core.channel.v1.PacketState.toObject(message.receipts[j], options); + } + if (message.send_sequences && message.send_sequences.length) { + object.send_sequences = []; + for (let j = 0; j < message.send_sequences.length; ++j) + object.send_sequences[j] = $root.ibc.core.channel.v1.PacketSequence.toObject(message.send_sequences[j], options); + } + if (message.recv_sequences && message.recv_sequences.length) { + object.recv_sequences = []; + for (let j = 0; j < message.recv_sequences.length; ++j) + object.recv_sequences[j] = $root.ibc.core.channel.v1.PacketSequence.toObject(message.recv_sequences[j], options); + } + if (message.ack_sequences && message.ack_sequences.length) { + object.ack_sequences = []; + for (let j = 0; j < message.ack_sequences.length; ++j) + object.ack_sequences[j] = $root.ibc.core.channel.v1.PacketSequence.toObject(message.ack_sequences[j], options); + } + if (message.next_channel_sequence != null && message.hasOwnProperty("next_channel_sequence")) + if (typeof message.next_channel_sequence === "number") + object.next_channel_sequence = options.longs === String ? String(message.next_channel_sequence) : message.next_channel_sequence; + else + object.next_channel_sequence = options.longs === String ? $util.Long.prototype.toString.call(message.next_channel_sequence) : options.longs === Number ? new $util.LongBits(message.next_channel_sequence.low >>> 0, message.next_channel_sequence.high >>> 0).toNumber(true) : message.next_channel_sequence; return object; }; /** - * Converts this QueryClientStateRequest to JSON. + * Converts this GenesisState to JSON. * @function toJSON - * @memberof ibc.core.client.v1.QueryClientStateRequest + * @memberof ibc.core.channel.v1.GenesisState * @instance * @returns {Object.} JSON object */ - QueryClientStateRequest.prototype.toJSON = function toJSON() { + GenesisState.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryClientStateRequest; + return GenesisState; })(); - v1.QueryClientStateResponse = (function() { + v1.PacketSequence = (function() { /** - * Properties of a QueryClientStateResponse. - * @memberof ibc.core.client.v1 - * @interface IQueryClientStateResponse - * @property {google.protobuf.IAny|null} [client_state] QueryClientStateResponse client_state - * @property {Uint8Array|null} [proof] QueryClientStateResponse proof - * @property {ibc.core.client.v1.IHeight|null} [proof_height] QueryClientStateResponse proof_height + * Properties of a PacketSequence. + * @memberof ibc.core.channel.v1 + * @interface IPacketSequence + * @property {string|null} [port_id] PacketSequence port_id + * @property {string|null} [channel_id] PacketSequence channel_id + * @property {Long|null} [sequence] PacketSequence sequence */ /** - * Constructs a new QueryClientStateResponse. - * @memberof ibc.core.client.v1 - * @classdesc Represents a QueryClientStateResponse. - * @implements IQueryClientStateResponse + * Constructs a new PacketSequence. + * @memberof ibc.core.channel.v1 + * @classdesc Represents a PacketSequence. + * @implements IPacketSequence * @constructor - * @param {ibc.core.client.v1.IQueryClientStateResponse=} [properties] Properties to set + * @param {ibc.core.channel.v1.IPacketSequence=} [properties] Properties to set */ - function QueryClientStateResponse(properties) { + function PacketSequence(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -52307,89 +58760,89 @@ export const ibc = $root.ibc = (() => { } /** - * QueryClientStateResponse client_state. - * @member {google.protobuf.IAny|null|undefined} client_state - * @memberof ibc.core.client.v1.QueryClientStateResponse + * PacketSequence port_id. + * @member {string} port_id + * @memberof ibc.core.channel.v1.PacketSequence * @instance */ - QueryClientStateResponse.prototype.client_state = null; + PacketSequence.prototype.port_id = ""; /** - * QueryClientStateResponse proof. - * @member {Uint8Array} proof - * @memberof ibc.core.client.v1.QueryClientStateResponse + * PacketSequence channel_id. + * @member {string} channel_id + * @memberof ibc.core.channel.v1.PacketSequence * @instance */ - QueryClientStateResponse.prototype.proof = $util.newBuffer([]); + PacketSequence.prototype.channel_id = ""; /** - * QueryClientStateResponse proof_height. - * @member {ibc.core.client.v1.IHeight|null|undefined} proof_height - * @memberof ibc.core.client.v1.QueryClientStateResponse + * PacketSequence sequence. + * @member {Long} sequence + * @memberof ibc.core.channel.v1.PacketSequence * @instance */ - QueryClientStateResponse.prototype.proof_height = null; + PacketSequence.prototype.sequence = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** - * Encodes the specified QueryClientStateResponse message. Does not implicitly {@link ibc.core.client.v1.QueryClientStateResponse.verify|verify} messages. + * Encodes the specified PacketSequence message. Does not implicitly {@link ibc.core.channel.v1.PacketSequence.verify|verify} messages. * @function encode - * @memberof ibc.core.client.v1.QueryClientStateResponse + * @memberof ibc.core.channel.v1.PacketSequence * @static - * @param {ibc.core.client.v1.IQueryClientStateResponse} message QueryClientStateResponse message or plain object to encode + * @param {ibc.core.channel.v1.IPacketSequence} message PacketSequence message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryClientStateResponse.encode = function encode(message, writer) { + PacketSequence.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.client_state != null && Object.hasOwnProperty.call(message, "client_state")) - $root.google.protobuf.Any.encode(message.client_state, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.proof != null && Object.hasOwnProperty.call(message, "proof")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.proof); - if (message.proof_height != null && Object.hasOwnProperty.call(message, "proof_height")) - $root.ibc.core.client.v1.Height.encode(message.proof_height, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.port_id != null && Object.hasOwnProperty.call(message, "port_id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.port_id); + if (message.channel_id != null && Object.hasOwnProperty.call(message, "channel_id")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.channel_id); + if (message.sequence != null && Object.hasOwnProperty.call(message, "sequence")) + writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.sequence); return writer; }; /** - * Encodes the specified QueryClientStateResponse message, length delimited. Does not implicitly {@link ibc.core.client.v1.QueryClientStateResponse.verify|verify} messages. + * Encodes the specified PacketSequence message, length delimited. Does not implicitly {@link ibc.core.channel.v1.PacketSequence.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.client.v1.QueryClientStateResponse + * @memberof ibc.core.channel.v1.PacketSequence * @static - * @param {ibc.core.client.v1.IQueryClientStateResponse} message QueryClientStateResponse message or plain object to encode + * @param {ibc.core.channel.v1.IPacketSequence} message PacketSequence message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryClientStateResponse.encodeDelimited = function encodeDelimited(message, writer) { + PacketSequence.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryClientStateResponse message from the specified reader or buffer. + * Decodes a PacketSequence message from the specified reader or buffer. * @function decode - * @memberof ibc.core.client.v1.QueryClientStateResponse + * @memberof ibc.core.channel.v1.PacketSequence * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.client.v1.QueryClientStateResponse} QueryClientStateResponse + * @returns {ibc.core.channel.v1.PacketSequence} PacketSequence * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryClientStateResponse.decode = function decode(reader, length) { + PacketSequence.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.QueryClientStateResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.channel.v1.PacketSequence(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.client_state = $root.google.protobuf.Any.decode(reader, reader.uint32()); + message.port_id = reader.string(); break; case 2: - message.proof = reader.bytes(); + message.channel_id = reader.string(); break; case 3: - message.proof_height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); + message.sequence = reader.uint64(); break; default: reader.skipType(tag & 7); @@ -52400,143 +58853,163 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a QueryClientStateResponse message from the specified reader or buffer, length delimited. + * Decodes a PacketSequence message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.client.v1.QueryClientStateResponse + * @memberof ibc.core.channel.v1.PacketSequence * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.client.v1.QueryClientStateResponse} QueryClientStateResponse + * @returns {ibc.core.channel.v1.PacketSequence} PacketSequence * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryClientStateResponse.decodeDelimited = function decodeDelimited(reader) { + PacketSequence.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryClientStateResponse message. + * Verifies a PacketSequence message. * @function verify - * @memberof ibc.core.client.v1.QueryClientStateResponse + * @memberof ibc.core.channel.v1.PacketSequence * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryClientStateResponse.verify = function verify(message) { + PacketSequence.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.client_state != null && message.hasOwnProperty("client_state")) { - let error = $root.google.protobuf.Any.verify(message.client_state); - if (error) - return "client_state." + error; - } - if (message.proof != null && message.hasOwnProperty("proof")) - if (!(message.proof && typeof message.proof.length === "number" || $util.isString(message.proof))) - return "proof: buffer expected"; - if (message.proof_height != null && message.hasOwnProperty("proof_height")) { - let error = $root.ibc.core.client.v1.Height.verify(message.proof_height); - if (error) - return "proof_height." + error; - } + if (message.port_id != null && message.hasOwnProperty("port_id")) + if (!$util.isString(message.port_id)) + return "port_id: string expected"; + if (message.channel_id != null && message.hasOwnProperty("channel_id")) + if (!$util.isString(message.channel_id)) + return "channel_id: string expected"; + if (message.sequence != null && message.hasOwnProperty("sequence")) + if (!$util.isInteger(message.sequence) && !(message.sequence && $util.isInteger(message.sequence.low) && $util.isInteger(message.sequence.high))) + return "sequence: integer|Long expected"; return null; }; /** - * Creates a QueryClientStateResponse message from a plain object. Also converts values to their respective internal types. + * Creates a PacketSequence message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.client.v1.QueryClientStateResponse + * @memberof ibc.core.channel.v1.PacketSequence * @static * @param {Object.} object Plain object - * @returns {ibc.core.client.v1.QueryClientStateResponse} QueryClientStateResponse + * @returns {ibc.core.channel.v1.PacketSequence} PacketSequence */ - QueryClientStateResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.client.v1.QueryClientStateResponse) + PacketSequence.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.channel.v1.PacketSequence) return object; - let message = new $root.ibc.core.client.v1.QueryClientStateResponse(); - if (object.client_state != null) { - if (typeof object.client_state !== "object") - throw TypeError(".ibc.core.client.v1.QueryClientStateResponse.client_state: object expected"); - message.client_state = $root.google.protobuf.Any.fromObject(object.client_state); - } - if (object.proof != null) - if (typeof object.proof === "string") - $util.base64.decode(object.proof, message.proof = $util.newBuffer($util.base64.length(object.proof)), 0); - else if (object.proof.length) - message.proof = object.proof; - if (object.proof_height != null) { - if (typeof object.proof_height !== "object") - throw TypeError(".ibc.core.client.v1.QueryClientStateResponse.proof_height: object expected"); - message.proof_height = $root.ibc.core.client.v1.Height.fromObject(object.proof_height); - } + let message = new $root.ibc.core.channel.v1.PacketSequence(); + if (object.port_id != null) + message.port_id = String(object.port_id); + if (object.channel_id != null) + message.channel_id = String(object.channel_id); + if (object.sequence != null) + if ($util.Long) + (message.sequence = $util.Long.fromValue(object.sequence)).unsigned = true; + else if (typeof object.sequence === "string") + message.sequence = parseInt(object.sequence, 10); + else if (typeof object.sequence === "number") + message.sequence = object.sequence; + else if (typeof object.sequence === "object") + message.sequence = new $util.LongBits(object.sequence.low >>> 0, object.sequence.high >>> 0).toNumber(true); return message; }; /** - * Creates a plain object from a QueryClientStateResponse message. Also converts values to other types if specified. + * Creates a plain object from a PacketSequence message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.client.v1.QueryClientStateResponse + * @memberof ibc.core.channel.v1.PacketSequence * @static - * @param {ibc.core.client.v1.QueryClientStateResponse} message QueryClientStateResponse + * @param {ibc.core.channel.v1.PacketSequence} message PacketSequence * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryClientStateResponse.toObject = function toObject(message, options) { + PacketSequence.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - object.client_state = null; - if (options.bytes === String) - object.proof = ""; - else { - object.proof = []; - if (options.bytes !== Array) - object.proof = $util.newBuffer(object.proof); - } - object.proof_height = null; + object.port_id = ""; + object.channel_id = ""; + if ($util.Long) { + let long = new $util.Long(0, 0, true); + object.sequence = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.sequence = options.longs === String ? "0" : 0; } - if (message.client_state != null && message.hasOwnProperty("client_state")) - object.client_state = $root.google.protobuf.Any.toObject(message.client_state, options); - if (message.proof != null && message.hasOwnProperty("proof")) - object.proof = options.bytes === String ? $util.base64.encode(message.proof, 0, message.proof.length) : options.bytes === Array ? Array.prototype.slice.call(message.proof) : message.proof; - if (message.proof_height != null && message.hasOwnProperty("proof_height")) - object.proof_height = $root.ibc.core.client.v1.Height.toObject(message.proof_height, options); + if (message.port_id != null && message.hasOwnProperty("port_id")) + object.port_id = message.port_id; + if (message.channel_id != null && message.hasOwnProperty("channel_id")) + object.channel_id = message.channel_id; + if (message.sequence != null && message.hasOwnProperty("sequence")) + if (typeof message.sequence === "number") + object.sequence = options.longs === String ? String(message.sequence) : message.sequence; + else + object.sequence = options.longs === String ? $util.Long.prototype.toString.call(message.sequence) : options.longs === Number ? new $util.LongBits(message.sequence.low >>> 0, message.sequence.high >>> 0).toNumber(true) : message.sequence; return object; }; /** - * Converts this QueryClientStateResponse to JSON. + * Converts this PacketSequence to JSON. * @function toJSON - * @memberof ibc.core.client.v1.QueryClientStateResponse + * @memberof ibc.core.channel.v1.PacketSequence * @instance * @returns {Object.} JSON object */ - QueryClientStateResponse.prototype.toJSON = function toJSON() { + PacketSequence.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryClientStateResponse; + return PacketSequence; })(); - v1.QueryClientStatesRequest = (function() { + return v1; + })(); + + return channel; + })(); + + core.client = (function() { + + /** + * Namespace client. + * @memberof ibc.core + * @namespace + */ + const client = {}; + + client.v1 = (function() { + + /** + * Namespace v1. + * @memberof ibc.core.client + * @namespace + */ + const v1 = {}; + + v1.IdentifiedClientState = (function() { /** - * Properties of a QueryClientStatesRequest. + * Properties of an IdentifiedClientState. * @memberof ibc.core.client.v1 - * @interface IQueryClientStatesRequest - * @property {cosmos.base.query.v1beta1.IPageRequest|null} [pagination] QueryClientStatesRequest pagination + * @interface IIdentifiedClientState + * @property {string|null} [client_id] IdentifiedClientState client_id + * @property {google.protobuf.IAny|null} [client_state] IdentifiedClientState client_state */ /** - * Constructs a new QueryClientStatesRequest. + * Constructs a new IdentifiedClientState. * @memberof ibc.core.client.v1 - * @classdesc Represents a QueryClientStatesRequest. - * @implements IQueryClientStatesRequest + * @classdesc Represents an IdentifiedClientState. + * @implements IIdentifiedClientState * @constructor - * @param {ibc.core.client.v1.IQueryClientStatesRequest=} [properties] Properties to set + * @param {ibc.core.client.v1.IIdentifiedClientState=} [properties] Properties to set */ - function QueryClientStatesRequest(properties) { + function IdentifiedClientState(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -52544,63 +59017,76 @@ export const ibc = $root.ibc = (() => { } /** - * QueryClientStatesRequest pagination. - * @member {cosmos.base.query.v1beta1.IPageRequest|null|undefined} pagination - * @memberof ibc.core.client.v1.QueryClientStatesRequest + * IdentifiedClientState client_id. + * @member {string} client_id + * @memberof ibc.core.client.v1.IdentifiedClientState * @instance */ - QueryClientStatesRequest.prototype.pagination = null; + IdentifiedClientState.prototype.client_id = ""; /** - * Encodes the specified QueryClientStatesRequest message. Does not implicitly {@link ibc.core.client.v1.QueryClientStatesRequest.verify|verify} messages. + * IdentifiedClientState client_state. + * @member {google.protobuf.IAny|null|undefined} client_state + * @memberof ibc.core.client.v1.IdentifiedClientState + * @instance + */ + IdentifiedClientState.prototype.client_state = null; + + /** + * Encodes the specified IdentifiedClientState message. Does not implicitly {@link ibc.core.client.v1.IdentifiedClientState.verify|verify} messages. * @function encode - * @memberof ibc.core.client.v1.QueryClientStatesRequest + * @memberof ibc.core.client.v1.IdentifiedClientState * @static - * @param {ibc.core.client.v1.IQueryClientStatesRequest} message QueryClientStatesRequest message or plain object to encode + * @param {ibc.core.client.v1.IIdentifiedClientState} message IdentifiedClientState message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryClientStatesRequest.encode = function encode(message, writer) { + IdentifiedClientState.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.pagination != null && Object.hasOwnProperty.call(message, "pagination")) - $root.cosmos.base.query.v1beta1.PageRequest.encode(message.pagination, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.client_id != null && Object.hasOwnProperty.call(message, "client_id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.client_id); + if (message.client_state != null && Object.hasOwnProperty.call(message, "client_state")) + $root.google.protobuf.Any.encode(message.client_state, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified QueryClientStatesRequest message, length delimited. Does not implicitly {@link ibc.core.client.v1.QueryClientStatesRequest.verify|verify} messages. + * Encodes the specified IdentifiedClientState message, length delimited. Does not implicitly {@link ibc.core.client.v1.IdentifiedClientState.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.client.v1.QueryClientStatesRequest + * @memberof ibc.core.client.v1.IdentifiedClientState * @static - * @param {ibc.core.client.v1.IQueryClientStatesRequest} message QueryClientStatesRequest message or plain object to encode + * @param {ibc.core.client.v1.IIdentifiedClientState} message IdentifiedClientState message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryClientStatesRequest.encodeDelimited = function encodeDelimited(message, writer) { + IdentifiedClientState.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryClientStatesRequest message from the specified reader or buffer. + * Decodes an IdentifiedClientState message from the specified reader or buffer. * @function decode - * @memberof ibc.core.client.v1.QueryClientStatesRequest + * @memberof ibc.core.client.v1.IdentifiedClientState * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.client.v1.QueryClientStatesRequest} QueryClientStatesRequest + * @returns {ibc.core.client.v1.IdentifiedClientState} IdentifiedClientState * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryClientStatesRequest.decode = function decode(reader, length) { + IdentifiedClientState.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.QueryClientStatesRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.IdentifiedClientState(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.pagination = $root.cosmos.base.query.v1beta1.PageRequest.decode(reader, reader.uint32()); + message.client_id = reader.string(); + break; + case 2: + message.client_state = $root.google.protobuf.Any.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -52611,114 +59097,122 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a QueryClientStatesRequest message from the specified reader or buffer, length delimited. + * Decodes an IdentifiedClientState message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.client.v1.QueryClientStatesRequest + * @memberof ibc.core.client.v1.IdentifiedClientState * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.client.v1.QueryClientStatesRequest} QueryClientStatesRequest + * @returns {ibc.core.client.v1.IdentifiedClientState} IdentifiedClientState * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryClientStatesRequest.decodeDelimited = function decodeDelimited(reader) { + IdentifiedClientState.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryClientStatesRequest message. + * Verifies an IdentifiedClientState message. * @function verify - * @memberof ibc.core.client.v1.QueryClientStatesRequest + * @memberof ibc.core.client.v1.IdentifiedClientState * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryClientStatesRequest.verify = function verify(message) { + IdentifiedClientState.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.pagination != null && message.hasOwnProperty("pagination")) { - let error = $root.cosmos.base.query.v1beta1.PageRequest.verify(message.pagination); + if (message.client_id != null && message.hasOwnProperty("client_id")) + if (!$util.isString(message.client_id)) + return "client_id: string expected"; + if (message.client_state != null && message.hasOwnProperty("client_state")) { + let error = $root.google.protobuf.Any.verify(message.client_state); if (error) - return "pagination." + error; + return "client_state." + error; } return null; }; /** - * Creates a QueryClientStatesRequest message from a plain object. Also converts values to their respective internal types. + * Creates an IdentifiedClientState message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.client.v1.QueryClientStatesRequest + * @memberof ibc.core.client.v1.IdentifiedClientState * @static * @param {Object.} object Plain object - * @returns {ibc.core.client.v1.QueryClientStatesRequest} QueryClientStatesRequest + * @returns {ibc.core.client.v1.IdentifiedClientState} IdentifiedClientState */ - QueryClientStatesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.client.v1.QueryClientStatesRequest) + IdentifiedClientState.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.client.v1.IdentifiedClientState) return object; - let message = new $root.ibc.core.client.v1.QueryClientStatesRequest(); - if (object.pagination != null) { - if (typeof object.pagination !== "object") - throw TypeError(".ibc.core.client.v1.QueryClientStatesRequest.pagination: object expected"); - message.pagination = $root.cosmos.base.query.v1beta1.PageRequest.fromObject(object.pagination); + let message = new $root.ibc.core.client.v1.IdentifiedClientState(); + if (object.client_id != null) + message.client_id = String(object.client_id); + if (object.client_state != null) { + if (typeof object.client_state !== "object") + throw TypeError(".ibc.core.client.v1.IdentifiedClientState.client_state: object expected"); + message.client_state = $root.google.protobuf.Any.fromObject(object.client_state); } return message; }; /** - * Creates a plain object from a QueryClientStatesRequest message. Also converts values to other types if specified. + * Creates a plain object from an IdentifiedClientState message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.client.v1.QueryClientStatesRequest + * @memberof ibc.core.client.v1.IdentifiedClientState * @static - * @param {ibc.core.client.v1.QueryClientStatesRequest} message QueryClientStatesRequest + * @param {ibc.core.client.v1.IdentifiedClientState} message IdentifiedClientState * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryClientStatesRequest.toObject = function toObject(message, options) { + IdentifiedClientState.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) - object.pagination = null; - if (message.pagination != null && message.hasOwnProperty("pagination")) - object.pagination = $root.cosmos.base.query.v1beta1.PageRequest.toObject(message.pagination, options); + if (options.defaults) { + object.client_id = ""; + object.client_state = null; + } + if (message.client_id != null && message.hasOwnProperty("client_id")) + object.client_id = message.client_id; + if (message.client_state != null && message.hasOwnProperty("client_state")) + object.client_state = $root.google.protobuf.Any.toObject(message.client_state, options); return object; }; /** - * Converts this QueryClientStatesRequest to JSON. + * Converts this IdentifiedClientState to JSON. * @function toJSON - * @memberof ibc.core.client.v1.QueryClientStatesRequest + * @memberof ibc.core.client.v1.IdentifiedClientState * @instance * @returns {Object.} JSON object */ - QueryClientStatesRequest.prototype.toJSON = function toJSON() { + IdentifiedClientState.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryClientStatesRequest; + return IdentifiedClientState; })(); - v1.QueryClientStatesResponse = (function() { + v1.ConsensusStateWithHeight = (function() { /** - * Properties of a QueryClientStatesResponse. + * Properties of a ConsensusStateWithHeight. * @memberof ibc.core.client.v1 - * @interface IQueryClientStatesResponse - * @property {Array.|null} [client_states] QueryClientStatesResponse client_states - * @property {cosmos.base.query.v1beta1.IPageResponse|null} [pagination] QueryClientStatesResponse pagination + * @interface IConsensusStateWithHeight + * @property {ibc.core.client.v1.IHeight|null} [height] ConsensusStateWithHeight height + * @property {google.protobuf.IAny|null} [consensus_state] ConsensusStateWithHeight consensus_state */ /** - * Constructs a new QueryClientStatesResponse. + * Constructs a new ConsensusStateWithHeight. * @memberof ibc.core.client.v1 - * @classdesc Represents a QueryClientStatesResponse. - * @implements IQueryClientStatesResponse + * @classdesc Represents a ConsensusStateWithHeight. + * @implements IConsensusStateWithHeight * @constructor - * @param {ibc.core.client.v1.IQueryClientStatesResponse=} [properties] Properties to set + * @param {ibc.core.client.v1.IConsensusStateWithHeight=} [properties] Properties to set */ - function QueryClientStatesResponse(properties) { - this.client_states = []; + function ConsensusStateWithHeight(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -52726,79 +59220,76 @@ export const ibc = $root.ibc = (() => { } /** - * QueryClientStatesResponse client_states. - * @member {Array.} client_states - * @memberof ibc.core.client.v1.QueryClientStatesResponse + * ConsensusStateWithHeight height. + * @member {ibc.core.client.v1.IHeight|null|undefined} height + * @memberof ibc.core.client.v1.ConsensusStateWithHeight * @instance */ - QueryClientStatesResponse.prototype.client_states = $util.emptyArray; - - /** - * QueryClientStatesResponse pagination. - * @member {cosmos.base.query.v1beta1.IPageResponse|null|undefined} pagination - * @memberof ibc.core.client.v1.QueryClientStatesResponse + ConsensusStateWithHeight.prototype.height = null; + + /** + * ConsensusStateWithHeight consensus_state. + * @member {google.protobuf.IAny|null|undefined} consensus_state + * @memberof ibc.core.client.v1.ConsensusStateWithHeight * @instance */ - QueryClientStatesResponse.prototype.pagination = null; + ConsensusStateWithHeight.prototype.consensus_state = null; /** - * Encodes the specified QueryClientStatesResponse message. Does not implicitly {@link ibc.core.client.v1.QueryClientStatesResponse.verify|verify} messages. + * Encodes the specified ConsensusStateWithHeight message. Does not implicitly {@link ibc.core.client.v1.ConsensusStateWithHeight.verify|verify} messages. * @function encode - * @memberof ibc.core.client.v1.QueryClientStatesResponse + * @memberof ibc.core.client.v1.ConsensusStateWithHeight * @static - * @param {ibc.core.client.v1.IQueryClientStatesResponse} message QueryClientStatesResponse message or plain object to encode + * @param {ibc.core.client.v1.IConsensusStateWithHeight} message ConsensusStateWithHeight message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryClientStatesResponse.encode = function encode(message, writer) { + ConsensusStateWithHeight.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.client_states != null && message.client_states.length) - for (let i = 0; i < message.client_states.length; ++i) - $root.ibc.core.client.v1.IdentifiedClientState.encode(message.client_states[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.pagination != null && Object.hasOwnProperty.call(message, "pagination")) - $root.cosmos.base.query.v1beta1.PageResponse.encode(message.pagination, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.height != null && Object.hasOwnProperty.call(message, "height")) + $root.ibc.core.client.v1.Height.encode(message.height, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.consensus_state != null && Object.hasOwnProperty.call(message, "consensus_state")) + $root.google.protobuf.Any.encode(message.consensus_state, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified QueryClientStatesResponse message, length delimited. Does not implicitly {@link ibc.core.client.v1.QueryClientStatesResponse.verify|verify} messages. + * Encodes the specified ConsensusStateWithHeight message, length delimited. Does not implicitly {@link ibc.core.client.v1.ConsensusStateWithHeight.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.client.v1.QueryClientStatesResponse + * @memberof ibc.core.client.v1.ConsensusStateWithHeight * @static - * @param {ibc.core.client.v1.IQueryClientStatesResponse} message QueryClientStatesResponse message or plain object to encode + * @param {ibc.core.client.v1.IConsensusStateWithHeight} message ConsensusStateWithHeight message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryClientStatesResponse.encodeDelimited = function encodeDelimited(message, writer) { + ConsensusStateWithHeight.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryClientStatesResponse message from the specified reader or buffer. + * Decodes a ConsensusStateWithHeight message from the specified reader or buffer. * @function decode - * @memberof ibc.core.client.v1.QueryClientStatesResponse + * @memberof ibc.core.client.v1.ConsensusStateWithHeight * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.client.v1.QueryClientStatesResponse} QueryClientStatesResponse + * @returns {ibc.core.client.v1.ConsensusStateWithHeight} ConsensusStateWithHeight * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryClientStatesResponse.decode = function decode(reader, length) { + ConsensusStateWithHeight.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.QueryClientStatesResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.ConsensusStateWithHeight(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.client_states && message.client_states.length)) - message.client_states = []; - message.client_states.push($root.ibc.core.client.v1.IdentifiedClientState.decode(reader, reader.uint32())); + message.height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); break; case 2: - message.pagination = $root.cosmos.base.query.v1beta1.PageResponse.decode(reader, reader.uint32()); + message.consensus_state = $root.google.protobuf.Any.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -52809,141 +59300,128 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a QueryClientStatesResponse message from the specified reader or buffer, length delimited. + * Decodes a ConsensusStateWithHeight message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.client.v1.QueryClientStatesResponse + * @memberof ibc.core.client.v1.ConsensusStateWithHeight * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.client.v1.QueryClientStatesResponse} QueryClientStatesResponse + * @returns {ibc.core.client.v1.ConsensusStateWithHeight} ConsensusStateWithHeight * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryClientStatesResponse.decodeDelimited = function decodeDelimited(reader) { + ConsensusStateWithHeight.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryClientStatesResponse message. + * Verifies a ConsensusStateWithHeight message. * @function verify - * @memberof ibc.core.client.v1.QueryClientStatesResponse + * @memberof ibc.core.client.v1.ConsensusStateWithHeight * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryClientStatesResponse.verify = function verify(message) { + ConsensusStateWithHeight.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.client_states != null && message.hasOwnProperty("client_states")) { - if (!Array.isArray(message.client_states)) - return "client_states: array expected"; - for (let i = 0; i < message.client_states.length; ++i) { - let error = $root.ibc.core.client.v1.IdentifiedClientState.verify(message.client_states[i]); - if (error) - return "client_states." + error; - } + if (message.height != null && message.hasOwnProperty("height")) { + let error = $root.ibc.core.client.v1.Height.verify(message.height); + if (error) + return "height." + error; } - if (message.pagination != null && message.hasOwnProperty("pagination")) { - let error = $root.cosmos.base.query.v1beta1.PageResponse.verify(message.pagination); + if (message.consensus_state != null && message.hasOwnProperty("consensus_state")) { + let error = $root.google.protobuf.Any.verify(message.consensus_state); if (error) - return "pagination." + error; + return "consensus_state." + error; } return null; }; /** - * Creates a QueryClientStatesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ConsensusStateWithHeight message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.client.v1.QueryClientStatesResponse + * @memberof ibc.core.client.v1.ConsensusStateWithHeight * @static * @param {Object.} object Plain object - * @returns {ibc.core.client.v1.QueryClientStatesResponse} QueryClientStatesResponse + * @returns {ibc.core.client.v1.ConsensusStateWithHeight} ConsensusStateWithHeight */ - QueryClientStatesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.client.v1.QueryClientStatesResponse) + ConsensusStateWithHeight.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.client.v1.ConsensusStateWithHeight) return object; - let message = new $root.ibc.core.client.v1.QueryClientStatesResponse(); - if (object.client_states) { - if (!Array.isArray(object.client_states)) - throw TypeError(".ibc.core.client.v1.QueryClientStatesResponse.client_states: array expected"); - message.client_states = []; - for (let i = 0; i < object.client_states.length; ++i) { - if (typeof object.client_states[i] !== "object") - throw TypeError(".ibc.core.client.v1.QueryClientStatesResponse.client_states: object expected"); - message.client_states[i] = $root.ibc.core.client.v1.IdentifiedClientState.fromObject(object.client_states[i]); - } + let message = new $root.ibc.core.client.v1.ConsensusStateWithHeight(); + if (object.height != null) { + if (typeof object.height !== "object") + throw TypeError(".ibc.core.client.v1.ConsensusStateWithHeight.height: object expected"); + message.height = $root.ibc.core.client.v1.Height.fromObject(object.height); } - if (object.pagination != null) { - if (typeof object.pagination !== "object") - throw TypeError(".ibc.core.client.v1.QueryClientStatesResponse.pagination: object expected"); - message.pagination = $root.cosmos.base.query.v1beta1.PageResponse.fromObject(object.pagination); + if (object.consensus_state != null) { + if (typeof object.consensus_state !== "object") + throw TypeError(".ibc.core.client.v1.ConsensusStateWithHeight.consensus_state: object expected"); + message.consensus_state = $root.google.protobuf.Any.fromObject(object.consensus_state); } return message; }; /** - * Creates a plain object from a QueryClientStatesResponse message. Also converts values to other types if specified. + * Creates a plain object from a ConsensusStateWithHeight message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.client.v1.QueryClientStatesResponse + * @memberof ibc.core.client.v1.ConsensusStateWithHeight * @static - * @param {ibc.core.client.v1.QueryClientStatesResponse} message QueryClientStatesResponse + * @param {ibc.core.client.v1.ConsensusStateWithHeight} message ConsensusStateWithHeight * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryClientStatesResponse.toObject = function toObject(message, options) { + ConsensusStateWithHeight.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.client_states = []; - if (options.defaults) - object.pagination = null; - if (message.client_states && message.client_states.length) { - object.client_states = []; - for (let j = 0; j < message.client_states.length; ++j) - object.client_states[j] = $root.ibc.core.client.v1.IdentifiedClientState.toObject(message.client_states[j], options); + if (options.defaults) { + object.height = null; + object.consensus_state = null; } - if (message.pagination != null && message.hasOwnProperty("pagination")) - object.pagination = $root.cosmos.base.query.v1beta1.PageResponse.toObject(message.pagination, options); + if (message.height != null && message.hasOwnProperty("height")) + object.height = $root.ibc.core.client.v1.Height.toObject(message.height, options); + if (message.consensus_state != null && message.hasOwnProperty("consensus_state")) + object.consensus_state = $root.google.protobuf.Any.toObject(message.consensus_state, options); return object; }; /** - * Converts this QueryClientStatesResponse to JSON. + * Converts this ConsensusStateWithHeight to JSON. * @function toJSON - * @memberof ibc.core.client.v1.QueryClientStatesResponse + * @memberof ibc.core.client.v1.ConsensusStateWithHeight * @instance * @returns {Object.} JSON object */ - QueryClientStatesResponse.prototype.toJSON = function toJSON() { + ConsensusStateWithHeight.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryClientStatesResponse; + return ConsensusStateWithHeight; })(); - v1.QueryConsensusStateRequest = (function() { + v1.ClientConsensusStates = (function() { /** - * Properties of a QueryConsensusStateRequest. + * Properties of a ClientConsensusStates. * @memberof ibc.core.client.v1 - * @interface IQueryConsensusStateRequest - * @property {string|null} [client_id] QueryConsensusStateRequest client_id - * @property {Long|null} [revision_number] QueryConsensusStateRequest revision_number - * @property {Long|null} [revision_height] QueryConsensusStateRequest revision_height - * @property {boolean|null} [latest_height] QueryConsensusStateRequest latest_height + * @interface IClientConsensusStates + * @property {string|null} [client_id] ClientConsensusStates client_id + * @property {Array.|null} [consensus_states] ClientConsensusStates consensus_states */ /** - * Constructs a new QueryConsensusStateRequest. + * Constructs a new ClientConsensusStates. * @memberof ibc.core.client.v1 - * @classdesc Represents a QueryConsensusStateRequest. - * @implements IQueryConsensusStateRequest + * @classdesc Represents a ClientConsensusStates. + * @implements IClientConsensusStates * @constructor - * @param {ibc.core.client.v1.IQueryConsensusStateRequest=} [properties] Properties to set + * @param {ibc.core.client.v1.IClientConsensusStates=} [properties] Properties to set */ - function QueryConsensusStateRequest(properties) { + function ClientConsensusStates(properties) { + this.consensus_states = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -52951,88 +59429,69 @@ export const ibc = $root.ibc = (() => { } /** - * QueryConsensusStateRequest client_id. + * ClientConsensusStates client_id. * @member {string} client_id - * @memberof ibc.core.client.v1.QueryConsensusStateRequest - * @instance - */ - QueryConsensusStateRequest.prototype.client_id = ""; - - /** - * QueryConsensusStateRequest revision_number. - * @member {Long} revision_number - * @memberof ibc.core.client.v1.QueryConsensusStateRequest - * @instance - */ - QueryConsensusStateRequest.prototype.revision_number = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * QueryConsensusStateRequest revision_height. - * @member {Long} revision_height - * @memberof ibc.core.client.v1.QueryConsensusStateRequest + * @memberof ibc.core.client.v1.ClientConsensusStates * @instance */ - QueryConsensusStateRequest.prototype.revision_height = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + ClientConsensusStates.prototype.client_id = ""; /** - * QueryConsensusStateRequest latest_height. - * @member {boolean} latest_height - * @memberof ibc.core.client.v1.QueryConsensusStateRequest + * ClientConsensusStates consensus_states. + * @member {Array.} consensus_states + * @memberof ibc.core.client.v1.ClientConsensusStates * @instance */ - QueryConsensusStateRequest.prototype.latest_height = false; + ClientConsensusStates.prototype.consensus_states = $util.emptyArray; /** - * Encodes the specified QueryConsensusStateRequest message. Does not implicitly {@link ibc.core.client.v1.QueryConsensusStateRequest.verify|verify} messages. + * Encodes the specified ClientConsensusStates message. Does not implicitly {@link ibc.core.client.v1.ClientConsensusStates.verify|verify} messages. * @function encode - * @memberof ibc.core.client.v1.QueryConsensusStateRequest + * @memberof ibc.core.client.v1.ClientConsensusStates * @static - * @param {ibc.core.client.v1.IQueryConsensusStateRequest} message QueryConsensusStateRequest message or plain object to encode + * @param {ibc.core.client.v1.IClientConsensusStates} message ClientConsensusStates message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryConsensusStateRequest.encode = function encode(message, writer) { + ClientConsensusStates.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.client_id != null && Object.hasOwnProperty.call(message, "client_id")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.client_id); - if (message.revision_number != null && Object.hasOwnProperty.call(message, "revision_number")) - writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.revision_number); - if (message.revision_height != null && Object.hasOwnProperty.call(message, "revision_height")) - writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.revision_height); - if (message.latest_height != null && Object.hasOwnProperty.call(message, "latest_height")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.latest_height); + if (message.consensus_states != null && message.consensus_states.length) + for (let i = 0; i < message.consensus_states.length; ++i) + $root.ibc.core.client.v1.ConsensusStateWithHeight.encode(message.consensus_states[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified QueryConsensusStateRequest message, length delimited. Does not implicitly {@link ibc.core.client.v1.QueryConsensusStateRequest.verify|verify} messages. + * Encodes the specified ClientConsensusStates message, length delimited. Does not implicitly {@link ibc.core.client.v1.ClientConsensusStates.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.client.v1.QueryConsensusStateRequest + * @memberof ibc.core.client.v1.ClientConsensusStates * @static - * @param {ibc.core.client.v1.IQueryConsensusStateRequest} message QueryConsensusStateRequest message or plain object to encode + * @param {ibc.core.client.v1.IClientConsensusStates} message ClientConsensusStates message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryConsensusStateRequest.encodeDelimited = function encodeDelimited(message, writer) { + ClientConsensusStates.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryConsensusStateRequest message from the specified reader or buffer. + * Decodes a ClientConsensusStates message from the specified reader or buffer. * @function decode - * @memberof ibc.core.client.v1.QueryConsensusStateRequest + * @memberof ibc.core.client.v1.ClientConsensusStates * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.client.v1.QueryConsensusStateRequest} QueryConsensusStateRequest + * @returns {ibc.core.client.v1.ClientConsensusStates} ClientConsensusStates * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryConsensusStateRequest.decode = function decode(reader, length) { + ClientConsensusStates.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.QueryConsensusStateRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.ClientConsensusStates(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { @@ -53040,13 +59499,9 @@ export const ibc = $root.ibc = (() => { message.client_id = reader.string(); break; case 2: - message.revision_number = reader.uint64(); - break; - case 3: - message.revision_height = reader.uint64(); - break; - case 4: - message.latest_height = reader.bool(); + if (!(message.consensus_states && message.consensus_states.length)) + message.consensus_states = []; + message.consensus_states.push($root.ibc.core.client.v1.ConsensusStateWithHeight.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -53057,162 +59512,136 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a QueryConsensusStateRequest message from the specified reader or buffer, length delimited. + * Decodes a ClientConsensusStates message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.client.v1.QueryConsensusStateRequest + * @memberof ibc.core.client.v1.ClientConsensusStates * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.client.v1.QueryConsensusStateRequest} QueryConsensusStateRequest + * @returns {ibc.core.client.v1.ClientConsensusStates} ClientConsensusStates * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryConsensusStateRequest.decodeDelimited = function decodeDelimited(reader) { + ClientConsensusStates.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryConsensusStateRequest message. + * Verifies a ClientConsensusStates message. * @function verify - * @memberof ibc.core.client.v1.QueryConsensusStateRequest + * @memberof ibc.core.client.v1.ClientConsensusStates * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryConsensusStateRequest.verify = function verify(message) { + ClientConsensusStates.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.client_id != null && message.hasOwnProperty("client_id")) if (!$util.isString(message.client_id)) return "client_id: string expected"; - if (message.revision_number != null && message.hasOwnProperty("revision_number")) - if (!$util.isInteger(message.revision_number) && !(message.revision_number && $util.isInteger(message.revision_number.low) && $util.isInteger(message.revision_number.high))) - return "revision_number: integer|Long expected"; - if (message.revision_height != null && message.hasOwnProperty("revision_height")) - if (!$util.isInteger(message.revision_height) && !(message.revision_height && $util.isInteger(message.revision_height.low) && $util.isInteger(message.revision_height.high))) - return "revision_height: integer|Long expected"; - if (message.latest_height != null && message.hasOwnProperty("latest_height")) - if (typeof message.latest_height !== "boolean") - return "latest_height: boolean expected"; + if (message.consensus_states != null && message.hasOwnProperty("consensus_states")) { + if (!Array.isArray(message.consensus_states)) + return "consensus_states: array expected"; + for (let i = 0; i < message.consensus_states.length; ++i) { + let error = $root.ibc.core.client.v1.ConsensusStateWithHeight.verify(message.consensus_states[i]); + if (error) + return "consensus_states." + error; + } + } return null; }; /** - * Creates a QueryConsensusStateRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ClientConsensusStates message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.client.v1.QueryConsensusStateRequest + * @memberof ibc.core.client.v1.ClientConsensusStates * @static * @param {Object.} object Plain object - * @returns {ibc.core.client.v1.QueryConsensusStateRequest} QueryConsensusStateRequest + * @returns {ibc.core.client.v1.ClientConsensusStates} ClientConsensusStates */ - QueryConsensusStateRequest.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.client.v1.QueryConsensusStateRequest) + ClientConsensusStates.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.client.v1.ClientConsensusStates) return object; - let message = new $root.ibc.core.client.v1.QueryConsensusStateRequest(); + let message = new $root.ibc.core.client.v1.ClientConsensusStates(); if (object.client_id != null) message.client_id = String(object.client_id); - if (object.revision_number != null) - if ($util.Long) - (message.revision_number = $util.Long.fromValue(object.revision_number)).unsigned = true; - else if (typeof object.revision_number === "string") - message.revision_number = parseInt(object.revision_number, 10); - else if (typeof object.revision_number === "number") - message.revision_number = object.revision_number; - else if (typeof object.revision_number === "object") - message.revision_number = new $util.LongBits(object.revision_number.low >>> 0, object.revision_number.high >>> 0).toNumber(true); - if (object.revision_height != null) - if ($util.Long) - (message.revision_height = $util.Long.fromValue(object.revision_height)).unsigned = true; - else if (typeof object.revision_height === "string") - message.revision_height = parseInt(object.revision_height, 10); - else if (typeof object.revision_height === "number") - message.revision_height = object.revision_height; - else if (typeof object.revision_height === "object") - message.revision_height = new $util.LongBits(object.revision_height.low >>> 0, object.revision_height.high >>> 0).toNumber(true); - if (object.latest_height != null) - message.latest_height = Boolean(object.latest_height); + if (object.consensus_states) { + if (!Array.isArray(object.consensus_states)) + throw TypeError(".ibc.core.client.v1.ClientConsensusStates.consensus_states: array expected"); + message.consensus_states = []; + for (let i = 0; i < object.consensus_states.length; ++i) { + if (typeof object.consensus_states[i] !== "object") + throw TypeError(".ibc.core.client.v1.ClientConsensusStates.consensus_states: object expected"); + message.consensus_states[i] = $root.ibc.core.client.v1.ConsensusStateWithHeight.fromObject(object.consensus_states[i]); + } + } return message; }; /** - * Creates a plain object from a QueryConsensusStateRequest message. Also converts values to other types if specified. + * Creates a plain object from a ClientConsensusStates message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.client.v1.QueryConsensusStateRequest + * @memberof ibc.core.client.v1.ClientConsensusStates * @static - * @param {ibc.core.client.v1.QueryConsensusStateRequest} message QueryConsensusStateRequest + * @param {ibc.core.client.v1.ClientConsensusStates} message ClientConsensusStates * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryConsensusStateRequest.toObject = function toObject(message, options) { + ClientConsensusStates.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) { + if (options.arrays || options.defaults) + object.consensus_states = []; + if (options.defaults) object.client_id = ""; - if ($util.Long) { - let long = new $util.Long(0, 0, true); - object.revision_number = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.revision_number = options.longs === String ? "0" : 0; - if ($util.Long) { - let long = new $util.Long(0, 0, true); - object.revision_height = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.revision_height = options.longs === String ? "0" : 0; - object.latest_height = false; - } if (message.client_id != null && message.hasOwnProperty("client_id")) object.client_id = message.client_id; - if (message.revision_number != null && message.hasOwnProperty("revision_number")) - if (typeof message.revision_number === "number") - object.revision_number = options.longs === String ? String(message.revision_number) : message.revision_number; - else - object.revision_number = options.longs === String ? $util.Long.prototype.toString.call(message.revision_number) : options.longs === Number ? new $util.LongBits(message.revision_number.low >>> 0, message.revision_number.high >>> 0).toNumber(true) : message.revision_number; - if (message.revision_height != null && message.hasOwnProperty("revision_height")) - if (typeof message.revision_height === "number") - object.revision_height = options.longs === String ? String(message.revision_height) : message.revision_height; - else - object.revision_height = options.longs === String ? $util.Long.prototype.toString.call(message.revision_height) : options.longs === Number ? new $util.LongBits(message.revision_height.low >>> 0, message.revision_height.high >>> 0).toNumber(true) : message.revision_height; - if (message.latest_height != null && message.hasOwnProperty("latest_height")) - object.latest_height = message.latest_height; + if (message.consensus_states && message.consensus_states.length) { + object.consensus_states = []; + for (let j = 0; j < message.consensus_states.length; ++j) + object.consensus_states[j] = $root.ibc.core.client.v1.ConsensusStateWithHeight.toObject(message.consensus_states[j], options); + } return object; }; /** - * Converts this QueryConsensusStateRequest to JSON. + * Converts this ClientConsensusStates to JSON. * @function toJSON - * @memberof ibc.core.client.v1.QueryConsensusStateRequest + * @memberof ibc.core.client.v1.ClientConsensusStates * @instance * @returns {Object.} JSON object */ - QueryConsensusStateRequest.prototype.toJSON = function toJSON() { + ClientConsensusStates.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryConsensusStateRequest; + return ClientConsensusStates; })(); - v1.QueryConsensusStateResponse = (function() { + v1.ClientUpdateProposal = (function() { /** - * Properties of a QueryConsensusStateResponse. + * Properties of a ClientUpdateProposal. * @memberof ibc.core.client.v1 - * @interface IQueryConsensusStateResponse - * @property {google.protobuf.IAny|null} [consensus_state] QueryConsensusStateResponse consensus_state - * @property {Uint8Array|null} [proof] QueryConsensusStateResponse proof - * @property {ibc.core.client.v1.IHeight|null} [proof_height] QueryConsensusStateResponse proof_height + * @interface IClientUpdateProposal + * @property {string|null} [title] ClientUpdateProposal title + * @property {string|null} [description] ClientUpdateProposal description + * @property {string|null} [subject_client_id] ClientUpdateProposal subject_client_id + * @property {string|null} [substitute_client_id] ClientUpdateProposal substitute_client_id */ /** - * Constructs a new QueryConsensusStateResponse. + * Constructs a new ClientUpdateProposal. * @memberof ibc.core.client.v1 - * @classdesc Represents a QueryConsensusStateResponse. - * @implements IQueryConsensusStateResponse + * @classdesc Represents a ClientUpdateProposal. + * @implements IClientUpdateProposal * @constructor - * @param {ibc.core.client.v1.IQueryConsensusStateResponse=} [properties] Properties to set + * @param {ibc.core.client.v1.IClientUpdateProposal=} [properties] Properties to set */ - function QueryConsensusStateResponse(properties) { + function ClientUpdateProposal(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -53220,89 +59649,102 @@ export const ibc = $root.ibc = (() => { } /** - * QueryConsensusStateResponse consensus_state. - * @member {google.protobuf.IAny|null|undefined} consensus_state - * @memberof ibc.core.client.v1.QueryConsensusStateResponse + * ClientUpdateProposal title. + * @member {string} title + * @memberof ibc.core.client.v1.ClientUpdateProposal * @instance */ - QueryConsensusStateResponse.prototype.consensus_state = null; + ClientUpdateProposal.prototype.title = ""; /** - * QueryConsensusStateResponse proof. - * @member {Uint8Array} proof - * @memberof ibc.core.client.v1.QueryConsensusStateResponse + * ClientUpdateProposal description. + * @member {string} description + * @memberof ibc.core.client.v1.ClientUpdateProposal * @instance */ - QueryConsensusStateResponse.prototype.proof = $util.newBuffer([]); + ClientUpdateProposal.prototype.description = ""; /** - * QueryConsensusStateResponse proof_height. - * @member {ibc.core.client.v1.IHeight|null|undefined} proof_height - * @memberof ibc.core.client.v1.QueryConsensusStateResponse + * ClientUpdateProposal subject_client_id. + * @member {string} subject_client_id + * @memberof ibc.core.client.v1.ClientUpdateProposal * @instance */ - QueryConsensusStateResponse.prototype.proof_height = null; + ClientUpdateProposal.prototype.subject_client_id = ""; /** - * Encodes the specified QueryConsensusStateResponse message. Does not implicitly {@link ibc.core.client.v1.QueryConsensusStateResponse.verify|verify} messages. + * ClientUpdateProposal substitute_client_id. + * @member {string} substitute_client_id + * @memberof ibc.core.client.v1.ClientUpdateProposal + * @instance + */ + ClientUpdateProposal.prototype.substitute_client_id = ""; + + /** + * Encodes the specified ClientUpdateProposal message. Does not implicitly {@link ibc.core.client.v1.ClientUpdateProposal.verify|verify} messages. * @function encode - * @memberof ibc.core.client.v1.QueryConsensusStateResponse + * @memberof ibc.core.client.v1.ClientUpdateProposal * @static - * @param {ibc.core.client.v1.IQueryConsensusStateResponse} message QueryConsensusStateResponse message or plain object to encode + * @param {ibc.core.client.v1.IClientUpdateProposal} message ClientUpdateProposal message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryConsensusStateResponse.encode = function encode(message, writer) { + ClientUpdateProposal.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.consensus_state != null && Object.hasOwnProperty.call(message, "consensus_state")) - $root.google.protobuf.Any.encode(message.consensus_state, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.proof != null && Object.hasOwnProperty.call(message, "proof")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.proof); - if (message.proof_height != null && Object.hasOwnProperty.call(message, "proof_height")) - $root.ibc.core.client.v1.Height.encode(message.proof_height, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.title != null && Object.hasOwnProperty.call(message, "title")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.title); + if (message.description != null && Object.hasOwnProperty.call(message, "description")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.description); + if (message.subject_client_id != null && Object.hasOwnProperty.call(message, "subject_client_id")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.subject_client_id); + if (message.substitute_client_id != null && Object.hasOwnProperty.call(message, "substitute_client_id")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.substitute_client_id); return writer; }; /** - * Encodes the specified QueryConsensusStateResponse message, length delimited. Does not implicitly {@link ibc.core.client.v1.QueryConsensusStateResponse.verify|verify} messages. + * Encodes the specified ClientUpdateProposal message, length delimited. Does not implicitly {@link ibc.core.client.v1.ClientUpdateProposal.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.client.v1.QueryConsensusStateResponse + * @memberof ibc.core.client.v1.ClientUpdateProposal * @static - * @param {ibc.core.client.v1.IQueryConsensusStateResponse} message QueryConsensusStateResponse message or plain object to encode + * @param {ibc.core.client.v1.IClientUpdateProposal} message ClientUpdateProposal message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryConsensusStateResponse.encodeDelimited = function encodeDelimited(message, writer) { + ClientUpdateProposal.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryConsensusStateResponse message from the specified reader or buffer. + * Decodes a ClientUpdateProposal message from the specified reader or buffer. * @function decode - * @memberof ibc.core.client.v1.QueryConsensusStateResponse + * @memberof ibc.core.client.v1.ClientUpdateProposal * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.client.v1.QueryConsensusStateResponse} QueryConsensusStateResponse + * @returns {ibc.core.client.v1.ClientUpdateProposal} ClientUpdateProposal * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryConsensusStateResponse.decode = function decode(reader, length) { + ClientUpdateProposal.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.QueryConsensusStateResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.ClientUpdateProposal(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.consensus_state = $root.google.protobuf.Any.decode(reader, reader.uint32()); + message.title = reader.string(); break; case 2: - message.proof = reader.bytes(); + message.description = reader.string(); break; case 3: - message.proof_height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); + message.subject_client_id = reader.string(); + break; + case 4: + message.substitute_client_id = reader.string(); break; default: reader.skipType(tag & 7); @@ -53313,144 +59755,135 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a QueryConsensusStateResponse message from the specified reader or buffer, length delimited. + * Decodes a ClientUpdateProposal message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.client.v1.QueryConsensusStateResponse + * @memberof ibc.core.client.v1.ClientUpdateProposal * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.client.v1.QueryConsensusStateResponse} QueryConsensusStateResponse + * @returns {ibc.core.client.v1.ClientUpdateProposal} ClientUpdateProposal * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryConsensusStateResponse.decodeDelimited = function decodeDelimited(reader) { + ClientUpdateProposal.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryConsensusStateResponse message. + * Verifies a ClientUpdateProposal message. * @function verify - * @memberof ibc.core.client.v1.QueryConsensusStateResponse + * @memberof ibc.core.client.v1.ClientUpdateProposal * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryConsensusStateResponse.verify = function verify(message) { + ClientUpdateProposal.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.consensus_state != null && message.hasOwnProperty("consensus_state")) { - let error = $root.google.protobuf.Any.verify(message.consensus_state); - if (error) - return "consensus_state." + error; - } - if (message.proof != null && message.hasOwnProperty("proof")) - if (!(message.proof && typeof message.proof.length === "number" || $util.isString(message.proof))) - return "proof: buffer expected"; - if (message.proof_height != null && message.hasOwnProperty("proof_height")) { - let error = $root.ibc.core.client.v1.Height.verify(message.proof_height); - if (error) - return "proof_height." + error; - } + if (message.title != null && message.hasOwnProperty("title")) + if (!$util.isString(message.title)) + return "title: string expected"; + if (message.description != null && message.hasOwnProperty("description")) + if (!$util.isString(message.description)) + return "description: string expected"; + if (message.subject_client_id != null && message.hasOwnProperty("subject_client_id")) + if (!$util.isString(message.subject_client_id)) + return "subject_client_id: string expected"; + if (message.substitute_client_id != null && message.hasOwnProperty("substitute_client_id")) + if (!$util.isString(message.substitute_client_id)) + return "substitute_client_id: string expected"; return null; }; /** - * Creates a QueryConsensusStateResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ClientUpdateProposal message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.client.v1.QueryConsensusStateResponse + * @memberof ibc.core.client.v1.ClientUpdateProposal * @static * @param {Object.} object Plain object - * @returns {ibc.core.client.v1.QueryConsensusStateResponse} QueryConsensusStateResponse + * @returns {ibc.core.client.v1.ClientUpdateProposal} ClientUpdateProposal */ - QueryConsensusStateResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.client.v1.QueryConsensusStateResponse) + ClientUpdateProposal.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.client.v1.ClientUpdateProposal) return object; - let message = new $root.ibc.core.client.v1.QueryConsensusStateResponse(); - if (object.consensus_state != null) { - if (typeof object.consensus_state !== "object") - throw TypeError(".ibc.core.client.v1.QueryConsensusStateResponse.consensus_state: object expected"); - message.consensus_state = $root.google.protobuf.Any.fromObject(object.consensus_state); - } - if (object.proof != null) - if (typeof object.proof === "string") - $util.base64.decode(object.proof, message.proof = $util.newBuffer($util.base64.length(object.proof)), 0); - else if (object.proof.length) - message.proof = object.proof; - if (object.proof_height != null) { - if (typeof object.proof_height !== "object") - throw TypeError(".ibc.core.client.v1.QueryConsensusStateResponse.proof_height: object expected"); - message.proof_height = $root.ibc.core.client.v1.Height.fromObject(object.proof_height); - } + let message = new $root.ibc.core.client.v1.ClientUpdateProposal(); + if (object.title != null) + message.title = String(object.title); + if (object.description != null) + message.description = String(object.description); + if (object.subject_client_id != null) + message.subject_client_id = String(object.subject_client_id); + if (object.substitute_client_id != null) + message.substitute_client_id = String(object.substitute_client_id); return message; }; /** - * Creates a plain object from a QueryConsensusStateResponse message. Also converts values to other types if specified. + * Creates a plain object from a ClientUpdateProposal message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.client.v1.QueryConsensusStateResponse + * @memberof ibc.core.client.v1.ClientUpdateProposal * @static - * @param {ibc.core.client.v1.QueryConsensusStateResponse} message QueryConsensusStateResponse + * @param {ibc.core.client.v1.ClientUpdateProposal} message ClientUpdateProposal * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryConsensusStateResponse.toObject = function toObject(message, options) { + ClientUpdateProposal.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - object.consensus_state = null; - if (options.bytes === String) - object.proof = ""; - else { - object.proof = []; - if (options.bytes !== Array) - object.proof = $util.newBuffer(object.proof); - } - object.proof_height = null; + object.title = ""; + object.description = ""; + object.subject_client_id = ""; + object.substitute_client_id = ""; } - if (message.consensus_state != null && message.hasOwnProperty("consensus_state")) - object.consensus_state = $root.google.protobuf.Any.toObject(message.consensus_state, options); - if (message.proof != null && message.hasOwnProperty("proof")) - object.proof = options.bytes === String ? $util.base64.encode(message.proof, 0, message.proof.length) : options.bytes === Array ? Array.prototype.slice.call(message.proof) : message.proof; - if (message.proof_height != null && message.hasOwnProperty("proof_height")) - object.proof_height = $root.ibc.core.client.v1.Height.toObject(message.proof_height, options); + if (message.title != null && message.hasOwnProperty("title")) + object.title = message.title; + if (message.description != null && message.hasOwnProperty("description")) + object.description = message.description; + if (message.subject_client_id != null && message.hasOwnProperty("subject_client_id")) + object.subject_client_id = message.subject_client_id; + if (message.substitute_client_id != null && message.hasOwnProperty("substitute_client_id")) + object.substitute_client_id = message.substitute_client_id; return object; }; /** - * Converts this QueryConsensusStateResponse to JSON. + * Converts this ClientUpdateProposal to JSON. * @function toJSON - * @memberof ibc.core.client.v1.QueryConsensusStateResponse + * @memberof ibc.core.client.v1.ClientUpdateProposal * @instance * @returns {Object.} JSON object */ - QueryConsensusStateResponse.prototype.toJSON = function toJSON() { + ClientUpdateProposal.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryConsensusStateResponse; + return ClientUpdateProposal; })(); - v1.QueryConsensusStatesRequest = (function() { + v1.UpgradeProposal = (function() { /** - * Properties of a QueryConsensusStatesRequest. + * Properties of an UpgradeProposal. * @memberof ibc.core.client.v1 - * @interface IQueryConsensusStatesRequest - * @property {string|null} [client_id] QueryConsensusStatesRequest client_id - * @property {cosmos.base.query.v1beta1.IPageRequest|null} [pagination] QueryConsensusStatesRequest pagination + * @interface IUpgradeProposal + * @property {string|null} [title] UpgradeProposal title + * @property {string|null} [description] UpgradeProposal description + * @property {cosmos.upgrade.v1beta1.IPlan|null} [plan] UpgradeProposal plan + * @property {google.protobuf.IAny|null} [upgraded_client_state] UpgradeProposal upgraded_client_state */ /** - * Constructs a new QueryConsensusStatesRequest. + * Constructs a new UpgradeProposal. * @memberof ibc.core.client.v1 - * @classdesc Represents a QueryConsensusStatesRequest. - * @implements IQueryConsensusStatesRequest + * @classdesc Represents an UpgradeProposal. + * @implements IUpgradeProposal * @constructor - * @param {ibc.core.client.v1.IQueryConsensusStatesRequest=} [properties] Properties to set + * @param {ibc.core.client.v1.IUpgradeProposal=} [properties] Properties to set */ - function QueryConsensusStatesRequest(properties) { + function UpgradeProposal(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -53458,76 +59891,102 @@ export const ibc = $root.ibc = (() => { } /** - * QueryConsensusStatesRequest client_id. - * @member {string} client_id - * @memberof ibc.core.client.v1.QueryConsensusStatesRequest + * UpgradeProposal title. + * @member {string} title + * @memberof ibc.core.client.v1.UpgradeProposal * @instance */ - QueryConsensusStatesRequest.prototype.client_id = ""; + UpgradeProposal.prototype.title = ""; /** - * QueryConsensusStatesRequest pagination. - * @member {cosmos.base.query.v1beta1.IPageRequest|null|undefined} pagination - * @memberof ibc.core.client.v1.QueryConsensusStatesRequest + * UpgradeProposal description. + * @member {string} description + * @memberof ibc.core.client.v1.UpgradeProposal * @instance */ - QueryConsensusStatesRequest.prototype.pagination = null; + UpgradeProposal.prototype.description = ""; /** - * Encodes the specified QueryConsensusStatesRequest message. Does not implicitly {@link ibc.core.client.v1.QueryConsensusStatesRequest.verify|verify} messages. + * UpgradeProposal plan. + * @member {cosmos.upgrade.v1beta1.IPlan|null|undefined} plan + * @memberof ibc.core.client.v1.UpgradeProposal + * @instance + */ + UpgradeProposal.prototype.plan = null; + + /** + * UpgradeProposal upgraded_client_state. + * @member {google.protobuf.IAny|null|undefined} upgraded_client_state + * @memberof ibc.core.client.v1.UpgradeProposal + * @instance + */ + UpgradeProposal.prototype.upgraded_client_state = null; + + /** + * Encodes the specified UpgradeProposal message. Does not implicitly {@link ibc.core.client.v1.UpgradeProposal.verify|verify} messages. * @function encode - * @memberof ibc.core.client.v1.QueryConsensusStatesRequest + * @memberof ibc.core.client.v1.UpgradeProposal * @static - * @param {ibc.core.client.v1.IQueryConsensusStatesRequest} message QueryConsensusStatesRequest message or plain object to encode + * @param {ibc.core.client.v1.IUpgradeProposal} message UpgradeProposal message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryConsensusStatesRequest.encode = function encode(message, writer) { + UpgradeProposal.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.client_id != null && Object.hasOwnProperty.call(message, "client_id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.client_id); - if (message.pagination != null && Object.hasOwnProperty.call(message, "pagination")) - $root.cosmos.base.query.v1beta1.PageRequest.encode(message.pagination, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.title != null && Object.hasOwnProperty.call(message, "title")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.title); + if (message.description != null && Object.hasOwnProperty.call(message, "description")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.description); + if (message.plan != null && Object.hasOwnProperty.call(message, "plan")) + $root.cosmos.upgrade.v1beta1.Plan.encode(message.plan, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.upgraded_client_state != null && Object.hasOwnProperty.call(message, "upgraded_client_state")) + $root.google.protobuf.Any.encode(message.upgraded_client_state, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; /** - * Encodes the specified QueryConsensusStatesRequest message, length delimited. Does not implicitly {@link ibc.core.client.v1.QueryConsensusStatesRequest.verify|verify} messages. + * Encodes the specified UpgradeProposal message, length delimited. Does not implicitly {@link ibc.core.client.v1.UpgradeProposal.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.client.v1.QueryConsensusStatesRequest + * @memberof ibc.core.client.v1.UpgradeProposal * @static - * @param {ibc.core.client.v1.IQueryConsensusStatesRequest} message QueryConsensusStatesRequest message or plain object to encode + * @param {ibc.core.client.v1.IUpgradeProposal} message UpgradeProposal message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryConsensusStatesRequest.encodeDelimited = function encodeDelimited(message, writer) { + UpgradeProposal.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryConsensusStatesRequest message from the specified reader or buffer. + * Decodes an UpgradeProposal message from the specified reader or buffer. * @function decode - * @memberof ibc.core.client.v1.QueryConsensusStatesRequest + * @memberof ibc.core.client.v1.UpgradeProposal * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.client.v1.QueryConsensusStatesRequest} QueryConsensusStatesRequest + * @returns {ibc.core.client.v1.UpgradeProposal} UpgradeProposal * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryConsensusStatesRequest.decode = function decode(reader, length) { + UpgradeProposal.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.QueryConsensusStatesRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.UpgradeProposal(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.client_id = reader.string(); + message.title = reader.string(); break; case 2: - message.pagination = $root.cosmos.base.query.v1beta1.PageRequest.decode(reader, reader.uint32()); + message.description = reader.string(); + break; + case 3: + message.plan = $root.cosmos.upgrade.v1beta1.Plan.decode(reader, reader.uint32()); + break; + case 4: + message.upgraded_client_state = $root.google.protobuf.Any.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -53538,123 +59997,143 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a QueryConsensusStatesRequest message from the specified reader or buffer, length delimited. + * Decodes an UpgradeProposal message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.client.v1.QueryConsensusStatesRequest + * @memberof ibc.core.client.v1.UpgradeProposal * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.client.v1.QueryConsensusStatesRequest} QueryConsensusStatesRequest + * @returns {ibc.core.client.v1.UpgradeProposal} UpgradeProposal * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryConsensusStatesRequest.decodeDelimited = function decodeDelimited(reader) { + UpgradeProposal.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryConsensusStatesRequest message. + * Verifies an UpgradeProposal message. * @function verify - * @memberof ibc.core.client.v1.QueryConsensusStatesRequest + * @memberof ibc.core.client.v1.UpgradeProposal * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryConsensusStatesRequest.verify = function verify(message) { + UpgradeProposal.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.client_id != null && message.hasOwnProperty("client_id")) - if (!$util.isString(message.client_id)) - return "client_id: string expected"; - if (message.pagination != null && message.hasOwnProperty("pagination")) { - let error = $root.cosmos.base.query.v1beta1.PageRequest.verify(message.pagination); + if (message.title != null && message.hasOwnProperty("title")) + if (!$util.isString(message.title)) + return "title: string expected"; + if (message.description != null && message.hasOwnProperty("description")) + if (!$util.isString(message.description)) + return "description: string expected"; + if (message.plan != null && message.hasOwnProperty("plan")) { + let error = $root.cosmos.upgrade.v1beta1.Plan.verify(message.plan); if (error) - return "pagination." + error; + return "plan." + error; + } + if (message.upgraded_client_state != null && message.hasOwnProperty("upgraded_client_state")) { + let error = $root.google.protobuf.Any.verify(message.upgraded_client_state); + if (error) + return "upgraded_client_state." + error; } return null; }; /** - * Creates a QueryConsensusStatesRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpgradeProposal message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.client.v1.QueryConsensusStatesRequest + * @memberof ibc.core.client.v1.UpgradeProposal * @static * @param {Object.} object Plain object - * @returns {ibc.core.client.v1.QueryConsensusStatesRequest} QueryConsensusStatesRequest + * @returns {ibc.core.client.v1.UpgradeProposal} UpgradeProposal */ - QueryConsensusStatesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.client.v1.QueryConsensusStatesRequest) + UpgradeProposal.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.client.v1.UpgradeProposal) return object; - let message = new $root.ibc.core.client.v1.QueryConsensusStatesRequest(); - if (object.client_id != null) - message.client_id = String(object.client_id); - if (object.pagination != null) { - if (typeof object.pagination !== "object") - throw TypeError(".ibc.core.client.v1.QueryConsensusStatesRequest.pagination: object expected"); - message.pagination = $root.cosmos.base.query.v1beta1.PageRequest.fromObject(object.pagination); + let message = new $root.ibc.core.client.v1.UpgradeProposal(); + if (object.title != null) + message.title = String(object.title); + if (object.description != null) + message.description = String(object.description); + if (object.plan != null) { + if (typeof object.plan !== "object") + throw TypeError(".ibc.core.client.v1.UpgradeProposal.plan: object expected"); + message.plan = $root.cosmos.upgrade.v1beta1.Plan.fromObject(object.plan); + } + if (object.upgraded_client_state != null) { + if (typeof object.upgraded_client_state !== "object") + throw TypeError(".ibc.core.client.v1.UpgradeProposal.upgraded_client_state: object expected"); + message.upgraded_client_state = $root.google.protobuf.Any.fromObject(object.upgraded_client_state); } return message; }; /** - * Creates a plain object from a QueryConsensusStatesRequest message. Also converts values to other types if specified. + * Creates a plain object from an UpgradeProposal message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.client.v1.QueryConsensusStatesRequest + * @memberof ibc.core.client.v1.UpgradeProposal * @static - * @param {ibc.core.client.v1.QueryConsensusStatesRequest} message QueryConsensusStatesRequest + * @param {ibc.core.client.v1.UpgradeProposal} message UpgradeProposal * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryConsensusStatesRequest.toObject = function toObject(message, options) { + UpgradeProposal.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - object.client_id = ""; - object.pagination = null; + object.title = ""; + object.description = ""; + object.plan = null; + object.upgraded_client_state = null; } - if (message.client_id != null && message.hasOwnProperty("client_id")) - object.client_id = message.client_id; - if (message.pagination != null && message.hasOwnProperty("pagination")) - object.pagination = $root.cosmos.base.query.v1beta1.PageRequest.toObject(message.pagination, options); + if (message.title != null && message.hasOwnProperty("title")) + object.title = message.title; + if (message.description != null && message.hasOwnProperty("description")) + object.description = message.description; + if (message.plan != null && message.hasOwnProperty("plan")) + object.plan = $root.cosmos.upgrade.v1beta1.Plan.toObject(message.plan, options); + if (message.upgraded_client_state != null && message.hasOwnProperty("upgraded_client_state")) + object.upgraded_client_state = $root.google.protobuf.Any.toObject(message.upgraded_client_state, options); return object; }; /** - * Converts this QueryConsensusStatesRequest to JSON. + * Converts this UpgradeProposal to JSON. * @function toJSON - * @memberof ibc.core.client.v1.QueryConsensusStatesRequest + * @memberof ibc.core.client.v1.UpgradeProposal * @instance * @returns {Object.} JSON object */ - QueryConsensusStatesRequest.prototype.toJSON = function toJSON() { + UpgradeProposal.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryConsensusStatesRequest; + return UpgradeProposal; })(); - v1.QueryConsensusStatesResponse = (function() { + v1.Height = (function() { /** - * Properties of a QueryConsensusStatesResponse. + * Properties of an Height. * @memberof ibc.core.client.v1 - * @interface IQueryConsensusStatesResponse - * @property {Array.|null} [consensus_states] QueryConsensusStatesResponse consensus_states - * @property {cosmos.base.query.v1beta1.IPageResponse|null} [pagination] QueryConsensusStatesResponse pagination + * @interface IHeight + * @property {Long|null} [revision_number] Height revision_number + * @property {Long|null} [revision_height] Height revision_height */ /** - * Constructs a new QueryConsensusStatesResponse. + * Constructs a new Height. * @memberof ibc.core.client.v1 - * @classdesc Represents a QueryConsensusStatesResponse. - * @implements IQueryConsensusStatesResponse + * @classdesc Represents an Height. + * @implements IHeight * @constructor - * @param {ibc.core.client.v1.IQueryConsensusStatesResponse=} [properties] Properties to set + * @param {ibc.core.client.v1.IHeight=} [properties] Properties to set */ - function QueryConsensusStatesResponse(properties) { - this.consensus_states = []; + function Height(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -53662,79 +60141,76 @@ export const ibc = $root.ibc = (() => { } /** - * QueryConsensusStatesResponse consensus_states. - * @member {Array.} consensus_states - * @memberof ibc.core.client.v1.QueryConsensusStatesResponse + * Height revision_number. + * @member {Long} revision_number + * @memberof ibc.core.client.v1.Height * @instance */ - QueryConsensusStatesResponse.prototype.consensus_states = $util.emptyArray; + Height.prototype.revision_number = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** - * QueryConsensusStatesResponse pagination. - * @member {cosmos.base.query.v1beta1.IPageResponse|null|undefined} pagination - * @memberof ibc.core.client.v1.QueryConsensusStatesResponse + * Height revision_height. + * @member {Long} revision_height + * @memberof ibc.core.client.v1.Height * @instance */ - QueryConsensusStatesResponse.prototype.pagination = null; + Height.prototype.revision_height = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** - * Encodes the specified QueryConsensusStatesResponse message. Does not implicitly {@link ibc.core.client.v1.QueryConsensusStatesResponse.verify|verify} messages. + * Encodes the specified Height message. Does not implicitly {@link ibc.core.client.v1.Height.verify|verify} messages. * @function encode - * @memberof ibc.core.client.v1.QueryConsensusStatesResponse + * @memberof ibc.core.client.v1.Height * @static - * @param {ibc.core.client.v1.IQueryConsensusStatesResponse} message QueryConsensusStatesResponse message or plain object to encode + * @param {ibc.core.client.v1.IHeight} message Height message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryConsensusStatesResponse.encode = function encode(message, writer) { + Height.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.consensus_states != null && message.consensus_states.length) - for (let i = 0; i < message.consensus_states.length; ++i) - $root.ibc.core.client.v1.ConsensusStateWithHeight.encode(message.consensus_states[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.pagination != null && Object.hasOwnProperty.call(message, "pagination")) - $root.cosmos.base.query.v1beta1.PageResponse.encode(message.pagination, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.revision_number != null && Object.hasOwnProperty.call(message, "revision_number")) + writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.revision_number); + if (message.revision_height != null && Object.hasOwnProperty.call(message, "revision_height")) + writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.revision_height); return writer; }; /** - * Encodes the specified QueryConsensusStatesResponse message, length delimited. Does not implicitly {@link ibc.core.client.v1.QueryConsensusStatesResponse.verify|verify} messages. + * Encodes the specified Height message, length delimited. Does not implicitly {@link ibc.core.client.v1.Height.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.client.v1.QueryConsensusStatesResponse + * @memberof ibc.core.client.v1.Height * @static - * @param {ibc.core.client.v1.IQueryConsensusStatesResponse} message QueryConsensusStatesResponse message or plain object to encode + * @param {ibc.core.client.v1.IHeight} message Height message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryConsensusStatesResponse.encodeDelimited = function encodeDelimited(message, writer) { + Height.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryConsensusStatesResponse message from the specified reader or buffer. + * Decodes an Height message from the specified reader or buffer. * @function decode - * @memberof ibc.core.client.v1.QueryConsensusStatesResponse + * @memberof ibc.core.client.v1.Height * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.client.v1.QueryConsensusStatesResponse} QueryConsensusStatesResponse + * @returns {ibc.core.client.v1.Height} Height * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryConsensusStatesResponse.decode = function decode(reader, length) { + Height.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.QueryConsensusStatesResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.Height(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.consensus_states && message.consensus_states.length)) - message.consensus_states = []; - message.consensus_states.push($root.ibc.core.client.v1.ConsensusStateWithHeight.decode(reader, reader.uint32())); + message.revision_number = reader.uint64(); break; case 2: - message.pagination = $root.cosmos.base.query.v1beta1.PageResponse.decode(reader, reader.uint32()); + message.revision_height = reader.uint64(); break; default: reader.skipType(tag & 7); @@ -53745,216 +60221,212 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a QueryConsensusStatesResponse message from the specified reader or buffer, length delimited. + * Decodes an Height message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.client.v1.QueryConsensusStatesResponse + * @memberof ibc.core.client.v1.Height * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.client.v1.QueryConsensusStatesResponse} QueryConsensusStatesResponse + * @returns {ibc.core.client.v1.Height} Height * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryConsensusStatesResponse.decodeDelimited = function decodeDelimited(reader) { + Height.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryConsensusStatesResponse message. + * Verifies an Height message. * @function verify - * @memberof ibc.core.client.v1.QueryConsensusStatesResponse + * @memberof ibc.core.client.v1.Height * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryConsensusStatesResponse.verify = function verify(message) { + Height.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.consensus_states != null && message.hasOwnProperty("consensus_states")) { - if (!Array.isArray(message.consensus_states)) - return "consensus_states: array expected"; - for (let i = 0; i < message.consensus_states.length; ++i) { - let error = $root.ibc.core.client.v1.ConsensusStateWithHeight.verify(message.consensus_states[i]); - if (error) - return "consensus_states." + error; - } - } - if (message.pagination != null && message.hasOwnProperty("pagination")) { - let error = $root.cosmos.base.query.v1beta1.PageResponse.verify(message.pagination); - if (error) - return "pagination." + error; - } + if (message.revision_number != null && message.hasOwnProperty("revision_number")) + if (!$util.isInteger(message.revision_number) && !(message.revision_number && $util.isInteger(message.revision_number.low) && $util.isInteger(message.revision_number.high))) + return "revision_number: integer|Long expected"; + if (message.revision_height != null && message.hasOwnProperty("revision_height")) + if (!$util.isInteger(message.revision_height) && !(message.revision_height && $util.isInteger(message.revision_height.low) && $util.isInteger(message.revision_height.high))) + return "revision_height: integer|Long expected"; return null; }; /** - * Creates a QueryConsensusStatesResponse message from a plain object. Also converts values to their respective internal types. + * Creates an Height message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.client.v1.QueryConsensusStatesResponse + * @memberof ibc.core.client.v1.Height * @static * @param {Object.} object Plain object - * @returns {ibc.core.client.v1.QueryConsensusStatesResponse} QueryConsensusStatesResponse + * @returns {ibc.core.client.v1.Height} Height */ - QueryConsensusStatesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.client.v1.QueryConsensusStatesResponse) + Height.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.client.v1.Height) return object; - let message = new $root.ibc.core.client.v1.QueryConsensusStatesResponse(); - if (object.consensus_states) { - if (!Array.isArray(object.consensus_states)) - throw TypeError(".ibc.core.client.v1.QueryConsensusStatesResponse.consensus_states: array expected"); - message.consensus_states = []; - for (let i = 0; i < object.consensus_states.length; ++i) { - if (typeof object.consensus_states[i] !== "object") - throw TypeError(".ibc.core.client.v1.QueryConsensusStatesResponse.consensus_states: object expected"); - message.consensus_states[i] = $root.ibc.core.client.v1.ConsensusStateWithHeight.fromObject(object.consensus_states[i]); - } - } - if (object.pagination != null) { - if (typeof object.pagination !== "object") - throw TypeError(".ibc.core.client.v1.QueryConsensusStatesResponse.pagination: object expected"); - message.pagination = $root.cosmos.base.query.v1beta1.PageResponse.fromObject(object.pagination); - } + let message = new $root.ibc.core.client.v1.Height(); + if (object.revision_number != null) + if ($util.Long) + (message.revision_number = $util.Long.fromValue(object.revision_number)).unsigned = true; + else if (typeof object.revision_number === "string") + message.revision_number = parseInt(object.revision_number, 10); + else if (typeof object.revision_number === "number") + message.revision_number = object.revision_number; + else if (typeof object.revision_number === "object") + message.revision_number = new $util.LongBits(object.revision_number.low >>> 0, object.revision_number.high >>> 0).toNumber(true); + if (object.revision_height != null) + if ($util.Long) + (message.revision_height = $util.Long.fromValue(object.revision_height)).unsigned = true; + else if (typeof object.revision_height === "string") + message.revision_height = parseInt(object.revision_height, 10); + else if (typeof object.revision_height === "number") + message.revision_height = object.revision_height; + else if (typeof object.revision_height === "object") + message.revision_height = new $util.LongBits(object.revision_height.low >>> 0, object.revision_height.high >>> 0).toNumber(true); return message; }; /** - * Creates a plain object from a QueryConsensusStatesResponse message. Also converts values to other types if specified. + * Creates a plain object from an Height message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.client.v1.QueryConsensusStatesResponse + * @memberof ibc.core.client.v1.Height * @static - * @param {ibc.core.client.v1.QueryConsensusStatesResponse} message QueryConsensusStatesResponse + * @param {ibc.core.client.v1.Height} message Height * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryConsensusStatesResponse.toObject = function toObject(message, options) { + Height.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.consensus_states = []; - if (options.defaults) - object.pagination = null; - if (message.consensus_states && message.consensus_states.length) { - object.consensus_states = []; - for (let j = 0; j < message.consensus_states.length; ++j) - object.consensus_states[j] = $root.ibc.core.client.v1.ConsensusStateWithHeight.toObject(message.consensus_states[j], options); + if (options.defaults) { + if ($util.Long) { + let long = new $util.Long(0, 0, true); + object.revision_number = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.revision_number = options.longs === String ? "0" : 0; + if ($util.Long) { + let long = new $util.Long(0, 0, true); + object.revision_height = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.revision_height = options.longs === String ? "0" : 0; } - if (message.pagination != null && message.hasOwnProperty("pagination")) - object.pagination = $root.cosmos.base.query.v1beta1.PageResponse.toObject(message.pagination, options); + if (message.revision_number != null && message.hasOwnProperty("revision_number")) + if (typeof message.revision_number === "number") + object.revision_number = options.longs === String ? String(message.revision_number) : message.revision_number; + else + object.revision_number = options.longs === String ? $util.Long.prototype.toString.call(message.revision_number) : options.longs === Number ? new $util.LongBits(message.revision_number.low >>> 0, message.revision_number.high >>> 0).toNumber(true) : message.revision_number; + if (message.revision_height != null && message.hasOwnProperty("revision_height")) + if (typeof message.revision_height === "number") + object.revision_height = options.longs === String ? String(message.revision_height) : message.revision_height; + else + object.revision_height = options.longs === String ? $util.Long.prototype.toString.call(message.revision_height) : options.longs === Number ? new $util.LongBits(message.revision_height.low >>> 0, message.revision_height.high >>> 0).toNumber(true) : message.revision_height; return object; }; /** - * Converts this QueryConsensusStatesResponse to JSON. + * Converts this Height to JSON. * @function toJSON - * @memberof ibc.core.client.v1.QueryConsensusStatesResponse + * @memberof ibc.core.client.v1.Height * @instance * @returns {Object.} JSON object */ - QueryConsensusStatesResponse.prototype.toJSON = function toJSON() { + Height.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryConsensusStatesResponse; + return Height; })(); - v1.QueryConsensusStateHeightsRequest = (function() { + v1.Params = (function() { /** - * Properties of a QueryConsensusStateHeightsRequest. + * Properties of a Params. * @memberof ibc.core.client.v1 - * @interface IQueryConsensusStateHeightsRequest - * @property {string|null} [client_id] QueryConsensusStateHeightsRequest client_id - * @property {cosmos.base.query.v1beta1.IPageRequest|null} [pagination] QueryConsensusStateHeightsRequest pagination + * @interface IParams + * @property {Array.|null} [allowed_clients] Params allowed_clients */ /** - * Constructs a new QueryConsensusStateHeightsRequest. + * Constructs a new Params. * @memberof ibc.core.client.v1 - * @classdesc Represents a QueryConsensusStateHeightsRequest. - * @implements IQueryConsensusStateHeightsRequest + * @classdesc Represents a Params. + * @implements IParams * @constructor - * @param {ibc.core.client.v1.IQueryConsensusStateHeightsRequest=} [properties] Properties to set - */ - function QueryConsensusStateHeightsRequest(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * QueryConsensusStateHeightsRequest client_id. - * @member {string} client_id - * @memberof ibc.core.client.v1.QueryConsensusStateHeightsRequest - * @instance + * @param {ibc.core.client.v1.IParams=} [properties] Properties to set */ - QueryConsensusStateHeightsRequest.prototype.client_id = ""; + function Params(properties) { + this.allowed_clients = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * QueryConsensusStateHeightsRequest pagination. - * @member {cosmos.base.query.v1beta1.IPageRequest|null|undefined} pagination - * @memberof ibc.core.client.v1.QueryConsensusStateHeightsRequest + * Params allowed_clients. + * @member {Array.} allowed_clients + * @memberof ibc.core.client.v1.Params * @instance */ - QueryConsensusStateHeightsRequest.prototype.pagination = null; + Params.prototype.allowed_clients = $util.emptyArray; /** - * Encodes the specified QueryConsensusStateHeightsRequest message. Does not implicitly {@link ibc.core.client.v1.QueryConsensusStateHeightsRequest.verify|verify} messages. + * Encodes the specified Params message. Does not implicitly {@link ibc.core.client.v1.Params.verify|verify} messages. * @function encode - * @memberof ibc.core.client.v1.QueryConsensusStateHeightsRequest + * @memberof ibc.core.client.v1.Params * @static - * @param {ibc.core.client.v1.IQueryConsensusStateHeightsRequest} message QueryConsensusStateHeightsRequest message or plain object to encode + * @param {ibc.core.client.v1.IParams} message Params message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryConsensusStateHeightsRequest.encode = function encode(message, writer) { + Params.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.client_id != null && Object.hasOwnProperty.call(message, "client_id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.client_id); - if (message.pagination != null && Object.hasOwnProperty.call(message, "pagination")) - $root.cosmos.base.query.v1beta1.PageRequest.encode(message.pagination, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.allowed_clients != null && message.allowed_clients.length) + for (let i = 0; i < message.allowed_clients.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.allowed_clients[i]); return writer; }; /** - * Encodes the specified QueryConsensusStateHeightsRequest message, length delimited. Does not implicitly {@link ibc.core.client.v1.QueryConsensusStateHeightsRequest.verify|verify} messages. + * Encodes the specified Params message, length delimited. Does not implicitly {@link ibc.core.client.v1.Params.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.client.v1.QueryConsensusStateHeightsRequest + * @memberof ibc.core.client.v1.Params * @static - * @param {ibc.core.client.v1.IQueryConsensusStateHeightsRequest} message QueryConsensusStateHeightsRequest message or plain object to encode + * @param {ibc.core.client.v1.IParams} message Params message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryConsensusStateHeightsRequest.encodeDelimited = function encodeDelimited(message, writer) { + Params.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryConsensusStateHeightsRequest message from the specified reader or buffer. + * Decodes a Params message from the specified reader or buffer. * @function decode - * @memberof ibc.core.client.v1.QueryConsensusStateHeightsRequest + * @memberof ibc.core.client.v1.Params * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.client.v1.QueryConsensusStateHeightsRequest} QueryConsensusStateHeightsRequest + * @returns {ibc.core.client.v1.Params} Params * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryConsensusStateHeightsRequest.decode = function decode(reader, length) { + Params.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.QueryConsensusStateHeightsRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.Params(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.client_id = reader.string(); - break; - case 2: - message.pagination = $root.cosmos.base.query.v1beta1.PageRequest.decode(reader, reader.uint32()); + if (!(message.allowed_clients && message.allowed_clients.length)) + message.allowed_clients = []; + message.allowed_clients.push(reader.string()); break; default: reader.skipType(tag & 7); @@ -53965,123 +60437,274 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a QueryConsensusStateHeightsRequest message from the specified reader or buffer, length delimited. + * Decodes a Params message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.client.v1.QueryConsensusStateHeightsRequest + * @memberof ibc.core.client.v1.Params * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.client.v1.QueryConsensusStateHeightsRequest} QueryConsensusStateHeightsRequest + * @returns {ibc.core.client.v1.Params} Params * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryConsensusStateHeightsRequest.decodeDelimited = function decodeDelimited(reader) { + Params.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryConsensusStateHeightsRequest message. + * Verifies a Params message. * @function verify - * @memberof ibc.core.client.v1.QueryConsensusStateHeightsRequest + * @memberof ibc.core.client.v1.Params * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryConsensusStateHeightsRequest.verify = function verify(message) { + Params.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.client_id != null && message.hasOwnProperty("client_id")) - if (!$util.isString(message.client_id)) - return "client_id: string expected"; - if (message.pagination != null && message.hasOwnProperty("pagination")) { - let error = $root.cosmos.base.query.v1beta1.PageRequest.verify(message.pagination); - if (error) - return "pagination." + error; + if (message.allowed_clients != null && message.hasOwnProperty("allowed_clients")) { + if (!Array.isArray(message.allowed_clients)) + return "allowed_clients: array expected"; + for (let i = 0; i < message.allowed_clients.length; ++i) + if (!$util.isString(message.allowed_clients[i])) + return "allowed_clients: string[] expected"; } return null; }; /** - * Creates a QueryConsensusStateHeightsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a Params message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.client.v1.QueryConsensusStateHeightsRequest + * @memberof ibc.core.client.v1.Params * @static * @param {Object.} object Plain object - * @returns {ibc.core.client.v1.QueryConsensusStateHeightsRequest} QueryConsensusStateHeightsRequest + * @returns {ibc.core.client.v1.Params} Params */ - QueryConsensusStateHeightsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.client.v1.QueryConsensusStateHeightsRequest) + Params.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.client.v1.Params) return object; - let message = new $root.ibc.core.client.v1.QueryConsensusStateHeightsRequest(); - if (object.client_id != null) - message.client_id = String(object.client_id); - if (object.pagination != null) { - if (typeof object.pagination !== "object") - throw TypeError(".ibc.core.client.v1.QueryConsensusStateHeightsRequest.pagination: object expected"); - message.pagination = $root.cosmos.base.query.v1beta1.PageRequest.fromObject(object.pagination); + let message = new $root.ibc.core.client.v1.Params(); + if (object.allowed_clients) { + if (!Array.isArray(object.allowed_clients)) + throw TypeError(".ibc.core.client.v1.Params.allowed_clients: array expected"); + message.allowed_clients = []; + for (let i = 0; i < object.allowed_clients.length; ++i) + message.allowed_clients[i] = String(object.allowed_clients[i]); } return message; }; /** - * Creates a plain object from a QueryConsensusStateHeightsRequest message. Also converts values to other types if specified. + * Creates a plain object from a Params message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.client.v1.QueryConsensusStateHeightsRequest + * @memberof ibc.core.client.v1.Params * @static - * @param {ibc.core.client.v1.QueryConsensusStateHeightsRequest} message QueryConsensusStateHeightsRequest + * @param {ibc.core.client.v1.Params} message Params * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryConsensusStateHeightsRequest.toObject = function toObject(message, options) { + Params.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) { - object.client_id = ""; - object.pagination = null; + if (options.arrays || options.defaults) + object.allowed_clients = []; + if (message.allowed_clients && message.allowed_clients.length) { + object.allowed_clients = []; + for (let j = 0; j < message.allowed_clients.length; ++j) + object.allowed_clients[j] = message.allowed_clients[j]; } - if (message.client_id != null && message.hasOwnProperty("client_id")) - object.client_id = message.client_id; - if (message.pagination != null && message.hasOwnProperty("pagination")) - object.pagination = $root.cosmos.base.query.v1beta1.PageRequest.toObject(message.pagination, options); return object; }; /** - * Converts this QueryConsensusStateHeightsRequest to JSON. + * Converts this Params to JSON. * @function toJSON - * @memberof ibc.core.client.v1.QueryConsensusStateHeightsRequest + * @memberof ibc.core.client.v1.Params * @instance * @returns {Object.} JSON object */ - QueryConsensusStateHeightsRequest.prototype.toJSON = function toJSON() { + Params.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryConsensusStateHeightsRequest; + return Params; })(); - v1.QueryConsensusStateHeightsResponse = (function() { + v1.Msg = (function() { /** - * Properties of a QueryConsensusStateHeightsResponse. + * Constructs a new Msg service. * @memberof ibc.core.client.v1 - * @interface IQueryConsensusStateHeightsResponse - * @property {Array.|null} [consensus_state_heights] QueryConsensusStateHeightsResponse consensus_state_heights - * @property {cosmos.base.query.v1beta1.IPageResponse|null} [pagination] QueryConsensusStateHeightsResponse pagination + * @classdesc Represents a Msg + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited */ + function Msg(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (Msg.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Msg; /** - * Constructs a new QueryConsensusStateHeightsResponse. + * Callback as used by {@link ibc.core.client.v1.Msg#createClient}. + * @memberof ibc.core.client.v1.Msg + * @typedef CreateClientCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.core.client.v1.MsgCreateClientResponse} [response] MsgCreateClientResponse + */ + + /** + * Calls CreateClient. + * @function createClient + * @memberof ibc.core.client.v1.Msg + * @instance + * @param {ibc.core.client.v1.IMsgCreateClient} request MsgCreateClient message or plain object + * @param {ibc.core.client.v1.Msg.CreateClientCallback} callback Node-style callback called with the error, if any, and MsgCreateClientResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Msg.prototype.createClient = function createClient(request, callback) { + return this.rpcCall(createClient, $root.ibc.core.client.v1.MsgCreateClient, $root.ibc.core.client.v1.MsgCreateClientResponse, request, callback); + }, "name", { value: "CreateClient" }); + + /** + * Calls CreateClient. + * @function createClient + * @memberof ibc.core.client.v1.Msg + * @instance + * @param {ibc.core.client.v1.IMsgCreateClient} request MsgCreateClient message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link ibc.core.client.v1.Msg#updateClient}. + * @memberof ibc.core.client.v1.Msg + * @typedef UpdateClientCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.core.client.v1.MsgUpdateClientResponse} [response] MsgUpdateClientResponse + */ + + /** + * Calls UpdateClient. + * @function updateClient + * @memberof ibc.core.client.v1.Msg + * @instance + * @param {ibc.core.client.v1.IMsgUpdateClient} request MsgUpdateClient message or plain object + * @param {ibc.core.client.v1.Msg.UpdateClientCallback} callback Node-style callback called with the error, if any, and MsgUpdateClientResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Msg.prototype.updateClient = function updateClient(request, callback) { + return this.rpcCall(updateClient, $root.ibc.core.client.v1.MsgUpdateClient, $root.ibc.core.client.v1.MsgUpdateClientResponse, request, callback); + }, "name", { value: "UpdateClient" }); + + /** + * Calls UpdateClient. + * @function updateClient + * @memberof ibc.core.client.v1.Msg + * @instance + * @param {ibc.core.client.v1.IMsgUpdateClient} request MsgUpdateClient message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link ibc.core.client.v1.Msg#upgradeClient}. + * @memberof ibc.core.client.v1.Msg + * @typedef UpgradeClientCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.core.client.v1.MsgUpgradeClientResponse} [response] MsgUpgradeClientResponse + */ + + /** + * Calls UpgradeClient. + * @function upgradeClient + * @memberof ibc.core.client.v1.Msg + * @instance + * @param {ibc.core.client.v1.IMsgUpgradeClient} request MsgUpgradeClient message or plain object + * @param {ibc.core.client.v1.Msg.UpgradeClientCallback} callback Node-style callback called with the error, if any, and MsgUpgradeClientResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Msg.prototype.upgradeClient = function upgradeClient(request, callback) { + return this.rpcCall(upgradeClient, $root.ibc.core.client.v1.MsgUpgradeClient, $root.ibc.core.client.v1.MsgUpgradeClientResponse, request, callback); + }, "name", { value: "UpgradeClient" }); + + /** + * Calls UpgradeClient. + * @function upgradeClient + * @memberof ibc.core.client.v1.Msg + * @instance + * @param {ibc.core.client.v1.IMsgUpgradeClient} request MsgUpgradeClient message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link ibc.core.client.v1.Msg#submitMisbehaviour}. + * @memberof ibc.core.client.v1.Msg + * @typedef SubmitMisbehaviourCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.core.client.v1.MsgSubmitMisbehaviourResponse} [response] MsgSubmitMisbehaviourResponse + */ + + /** + * Calls SubmitMisbehaviour. + * @function submitMisbehaviour + * @memberof ibc.core.client.v1.Msg + * @instance + * @param {ibc.core.client.v1.IMsgSubmitMisbehaviour} request MsgSubmitMisbehaviour message or plain object + * @param {ibc.core.client.v1.Msg.SubmitMisbehaviourCallback} callback Node-style callback called with the error, if any, and MsgSubmitMisbehaviourResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Msg.prototype.submitMisbehaviour = function submitMisbehaviour(request, callback) { + return this.rpcCall(submitMisbehaviour, $root.ibc.core.client.v1.MsgSubmitMisbehaviour, $root.ibc.core.client.v1.MsgSubmitMisbehaviourResponse, request, callback); + }, "name", { value: "SubmitMisbehaviour" }); + + /** + * Calls SubmitMisbehaviour. + * @function submitMisbehaviour + * @memberof ibc.core.client.v1.Msg + * @instance + * @param {ibc.core.client.v1.IMsgSubmitMisbehaviour} request MsgSubmitMisbehaviour message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return Msg; + })(); + + v1.MsgCreateClient = (function() { + + /** + * Properties of a MsgCreateClient. * @memberof ibc.core.client.v1 - * @classdesc Represents a QueryConsensusStateHeightsResponse. - * @implements IQueryConsensusStateHeightsResponse + * @interface IMsgCreateClient + * @property {google.protobuf.IAny|null} [client_state] MsgCreateClient client_state + * @property {google.protobuf.IAny|null} [consensus_state] MsgCreateClient consensus_state + * @property {string|null} [signer] MsgCreateClient signer + */ + + /** + * Constructs a new MsgCreateClient. + * @memberof ibc.core.client.v1 + * @classdesc Represents a MsgCreateClient. + * @implements IMsgCreateClient * @constructor - * @param {ibc.core.client.v1.IQueryConsensusStateHeightsResponse=} [properties] Properties to set + * @param {ibc.core.client.v1.IMsgCreateClient=} [properties] Properties to set */ - function QueryConsensusStateHeightsResponse(properties) { - this.consensus_state_heights = []; + function MsgCreateClient(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -54089,79 +60712,89 @@ export const ibc = $root.ibc = (() => { } /** - * QueryConsensusStateHeightsResponse consensus_state_heights. - * @member {Array.} consensus_state_heights - * @memberof ibc.core.client.v1.QueryConsensusStateHeightsResponse + * MsgCreateClient client_state. + * @member {google.protobuf.IAny|null|undefined} client_state + * @memberof ibc.core.client.v1.MsgCreateClient * @instance */ - QueryConsensusStateHeightsResponse.prototype.consensus_state_heights = $util.emptyArray; + MsgCreateClient.prototype.client_state = null; /** - * QueryConsensusStateHeightsResponse pagination. - * @member {cosmos.base.query.v1beta1.IPageResponse|null|undefined} pagination - * @memberof ibc.core.client.v1.QueryConsensusStateHeightsResponse + * MsgCreateClient consensus_state. + * @member {google.protobuf.IAny|null|undefined} consensus_state + * @memberof ibc.core.client.v1.MsgCreateClient * @instance */ - QueryConsensusStateHeightsResponse.prototype.pagination = null; + MsgCreateClient.prototype.consensus_state = null; /** - * Encodes the specified QueryConsensusStateHeightsResponse message. Does not implicitly {@link ibc.core.client.v1.QueryConsensusStateHeightsResponse.verify|verify} messages. + * MsgCreateClient signer. + * @member {string} signer + * @memberof ibc.core.client.v1.MsgCreateClient + * @instance + */ + MsgCreateClient.prototype.signer = ""; + + /** + * Encodes the specified MsgCreateClient message. Does not implicitly {@link ibc.core.client.v1.MsgCreateClient.verify|verify} messages. * @function encode - * @memberof ibc.core.client.v1.QueryConsensusStateHeightsResponse + * @memberof ibc.core.client.v1.MsgCreateClient * @static - * @param {ibc.core.client.v1.IQueryConsensusStateHeightsResponse} message QueryConsensusStateHeightsResponse message or plain object to encode + * @param {ibc.core.client.v1.IMsgCreateClient} message MsgCreateClient message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryConsensusStateHeightsResponse.encode = function encode(message, writer) { + MsgCreateClient.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.consensus_state_heights != null && message.consensus_state_heights.length) - for (let i = 0; i < message.consensus_state_heights.length; ++i) - $root.ibc.core.client.v1.Height.encode(message.consensus_state_heights[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.pagination != null && Object.hasOwnProperty.call(message, "pagination")) - $root.cosmos.base.query.v1beta1.PageResponse.encode(message.pagination, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.client_state != null && Object.hasOwnProperty.call(message, "client_state")) + $root.google.protobuf.Any.encode(message.client_state, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.consensus_state != null && Object.hasOwnProperty.call(message, "consensus_state")) + $root.google.protobuf.Any.encode(message.consensus_state, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.signer != null && Object.hasOwnProperty.call(message, "signer")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.signer); return writer; }; /** - * Encodes the specified QueryConsensusStateHeightsResponse message, length delimited. Does not implicitly {@link ibc.core.client.v1.QueryConsensusStateHeightsResponse.verify|verify} messages. + * Encodes the specified MsgCreateClient message, length delimited. Does not implicitly {@link ibc.core.client.v1.MsgCreateClient.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.client.v1.QueryConsensusStateHeightsResponse + * @memberof ibc.core.client.v1.MsgCreateClient * @static - * @param {ibc.core.client.v1.IQueryConsensusStateHeightsResponse} message QueryConsensusStateHeightsResponse message or plain object to encode + * @param {ibc.core.client.v1.IMsgCreateClient} message MsgCreateClient message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryConsensusStateHeightsResponse.encodeDelimited = function encodeDelimited(message, writer) { + MsgCreateClient.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryConsensusStateHeightsResponse message from the specified reader or buffer. + * Decodes a MsgCreateClient message from the specified reader or buffer. * @function decode - * @memberof ibc.core.client.v1.QueryConsensusStateHeightsResponse + * @memberof ibc.core.client.v1.MsgCreateClient * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.client.v1.QueryConsensusStateHeightsResponse} QueryConsensusStateHeightsResponse + * @returns {ibc.core.client.v1.MsgCreateClient} MsgCreateClient * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryConsensusStateHeightsResponse.decode = function decode(reader, length) { + MsgCreateClient.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.QueryConsensusStateHeightsResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.MsgCreateClient(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.consensus_state_heights && message.consensus_state_heights.length)) - message.consensus_state_heights = []; - message.consensus_state_heights.push($root.ibc.core.client.v1.Height.decode(reader, reader.uint32())); + message.client_state = $root.google.protobuf.Any.decode(reader, reader.uint32()); break; case 2: - message.pagination = $root.cosmos.base.query.v1beta1.PageResponse.decode(reader, reader.uint32()); + message.consensus_state = $root.google.protobuf.Any.decode(reader, reader.uint32()); + break; + case 3: + message.signer = reader.string(); break; default: reader.skipType(tag & 7); @@ -54172,203 +60805,185 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a QueryConsensusStateHeightsResponse message from the specified reader or buffer, length delimited. + * Decodes a MsgCreateClient message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.client.v1.QueryConsensusStateHeightsResponse + * @memberof ibc.core.client.v1.MsgCreateClient * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.client.v1.QueryConsensusStateHeightsResponse} QueryConsensusStateHeightsResponse + * @returns {ibc.core.client.v1.MsgCreateClient} MsgCreateClient * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryConsensusStateHeightsResponse.decodeDelimited = function decodeDelimited(reader) { + MsgCreateClient.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryConsensusStateHeightsResponse message. + * Verifies a MsgCreateClient message. * @function verify - * @memberof ibc.core.client.v1.QueryConsensusStateHeightsResponse + * @memberof ibc.core.client.v1.MsgCreateClient * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryConsensusStateHeightsResponse.verify = function verify(message) { + MsgCreateClient.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.consensus_state_heights != null && message.hasOwnProperty("consensus_state_heights")) { - if (!Array.isArray(message.consensus_state_heights)) - return "consensus_state_heights: array expected"; - for (let i = 0; i < message.consensus_state_heights.length; ++i) { - let error = $root.ibc.core.client.v1.Height.verify(message.consensus_state_heights[i]); - if (error) - return "consensus_state_heights." + error; - } + if (message.client_state != null && message.hasOwnProperty("client_state")) { + let error = $root.google.protobuf.Any.verify(message.client_state); + if (error) + return "client_state." + error; } - if (message.pagination != null && message.hasOwnProperty("pagination")) { - let error = $root.cosmos.base.query.v1beta1.PageResponse.verify(message.pagination); + if (message.consensus_state != null && message.hasOwnProperty("consensus_state")) { + let error = $root.google.protobuf.Any.verify(message.consensus_state); if (error) - return "pagination." + error; + return "consensus_state." + error; } + if (message.signer != null && message.hasOwnProperty("signer")) + if (!$util.isString(message.signer)) + return "signer: string expected"; return null; }; /** - * Creates a QueryConsensusStateHeightsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a MsgCreateClient message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.client.v1.QueryConsensusStateHeightsResponse + * @memberof ibc.core.client.v1.MsgCreateClient * @static * @param {Object.} object Plain object - * @returns {ibc.core.client.v1.QueryConsensusStateHeightsResponse} QueryConsensusStateHeightsResponse + * @returns {ibc.core.client.v1.MsgCreateClient} MsgCreateClient */ - QueryConsensusStateHeightsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.client.v1.QueryConsensusStateHeightsResponse) + MsgCreateClient.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.client.v1.MsgCreateClient) return object; - let message = new $root.ibc.core.client.v1.QueryConsensusStateHeightsResponse(); - if (object.consensus_state_heights) { - if (!Array.isArray(object.consensus_state_heights)) - throw TypeError(".ibc.core.client.v1.QueryConsensusStateHeightsResponse.consensus_state_heights: array expected"); - message.consensus_state_heights = []; - for (let i = 0; i < object.consensus_state_heights.length; ++i) { - if (typeof object.consensus_state_heights[i] !== "object") - throw TypeError(".ibc.core.client.v1.QueryConsensusStateHeightsResponse.consensus_state_heights: object expected"); - message.consensus_state_heights[i] = $root.ibc.core.client.v1.Height.fromObject(object.consensus_state_heights[i]); - } + let message = new $root.ibc.core.client.v1.MsgCreateClient(); + if (object.client_state != null) { + if (typeof object.client_state !== "object") + throw TypeError(".ibc.core.client.v1.MsgCreateClient.client_state: object expected"); + message.client_state = $root.google.protobuf.Any.fromObject(object.client_state); } - if (object.pagination != null) { - if (typeof object.pagination !== "object") - throw TypeError(".ibc.core.client.v1.QueryConsensusStateHeightsResponse.pagination: object expected"); - message.pagination = $root.cosmos.base.query.v1beta1.PageResponse.fromObject(object.pagination); + if (object.consensus_state != null) { + if (typeof object.consensus_state !== "object") + throw TypeError(".ibc.core.client.v1.MsgCreateClient.consensus_state: object expected"); + message.consensus_state = $root.google.protobuf.Any.fromObject(object.consensus_state); } + if (object.signer != null) + message.signer = String(object.signer); return message; }; /** - * Creates a plain object from a QueryConsensusStateHeightsResponse message. Also converts values to other types if specified. + * Creates a plain object from a MsgCreateClient message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.client.v1.QueryConsensusStateHeightsResponse + * @memberof ibc.core.client.v1.MsgCreateClient * @static - * @param {ibc.core.client.v1.QueryConsensusStateHeightsResponse} message QueryConsensusStateHeightsResponse + * @param {ibc.core.client.v1.MsgCreateClient} message MsgCreateClient * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryConsensusStateHeightsResponse.toObject = function toObject(message, options) { + MsgCreateClient.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.consensus_state_heights = []; - if (options.defaults) - object.pagination = null; - if (message.consensus_state_heights && message.consensus_state_heights.length) { - object.consensus_state_heights = []; - for (let j = 0; j < message.consensus_state_heights.length; ++j) - object.consensus_state_heights[j] = $root.ibc.core.client.v1.Height.toObject(message.consensus_state_heights[j], options); + if (options.defaults) { + object.client_state = null; + object.consensus_state = null; + object.signer = ""; } - if (message.pagination != null && message.hasOwnProperty("pagination")) - object.pagination = $root.cosmos.base.query.v1beta1.PageResponse.toObject(message.pagination, options); + if (message.client_state != null && message.hasOwnProperty("client_state")) + object.client_state = $root.google.protobuf.Any.toObject(message.client_state, options); + if (message.consensus_state != null && message.hasOwnProperty("consensus_state")) + object.consensus_state = $root.google.protobuf.Any.toObject(message.consensus_state, options); + if (message.signer != null && message.hasOwnProperty("signer")) + object.signer = message.signer; return object; }; /** - * Converts this QueryConsensusStateHeightsResponse to JSON. + * Converts this MsgCreateClient to JSON. * @function toJSON - * @memberof ibc.core.client.v1.QueryConsensusStateHeightsResponse + * @memberof ibc.core.client.v1.MsgCreateClient * @instance * @returns {Object.} JSON object */ - QueryConsensusStateHeightsResponse.prototype.toJSON = function toJSON() { + MsgCreateClient.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryConsensusStateHeightsResponse; + return MsgCreateClient; })(); - v1.QueryClientStatusRequest = (function() { + v1.MsgCreateClientResponse = (function() { /** - * Properties of a QueryClientStatusRequest. + * Properties of a MsgCreateClientResponse. * @memberof ibc.core.client.v1 - * @interface IQueryClientStatusRequest - * @property {string|null} [client_id] QueryClientStatusRequest client_id + * @interface IMsgCreateClientResponse */ /** - * Constructs a new QueryClientStatusRequest. + * Constructs a new MsgCreateClientResponse. * @memberof ibc.core.client.v1 - * @classdesc Represents a QueryClientStatusRequest. - * @implements IQueryClientStatusRequest + * @classdesc Represents a MsgCreateClientResponse. + * @implements IMsgCreateClientResponse * @constructor - * @param {ibc.core.client.v1.IQueryClientStatusRequest=} [properties] Properties to set + * @param {ibc.core.client.v1.IMsgCreateClientResponse=} [properties] Properties to set */ - function QueryClientStatusRequest(properties) { + function MsgCreateClientResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; - } - - /** - * QueryClientStatusRequest client_id. - * @member {string} client_id - * @memberof ibc.core.client.v1.QueryClientStatusRequest - * @instance - */ - QueryClientStatusRequest.prototype.client_id = ""; + } /** - * Encodes the specified QueryClientStatusRequest message. Does not implicitly {@link ibc.core.client.v1.QueryClientStatusRequest.verify|verify} messages. + * Encodes the specified MsgCreateClientResponse message. Does not implicitly {@link ibc.core.client.v1.MsgCreateClientResponse.verify|verify} messages. * @function encode - * @memberof ibc.core.client.v1.QueryClientStatusRequest + * @memberof ibc.core.client.v1.MsgCreateClientResponse * @static - * @param {ibc.core.client.v1.IQueryClientStatusRequest} message QueryClientStatusRequest message or plain object to encode + * @param {ibc.core.client.v1.IMsgCreateClientResponse} message MsgCreateClientResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryClientStatusRequest.encode = function encode(message, writer) { + MsgCreateClientResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.client_id != null && Object.hasOwnProperty.call(message, "client_id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.client_id); return writer; }; /** - * Encodes the specified QueryClientStatusRequest message, length delimited. Does not implicitly {@link ibc.core.client.v1.QueryClientStatusRequest.verify|verify} messages. + * Encodes the specified MsgCreateClientResponse message, length delimited. Does not implicitly {@link ibc.core.client.v1.MsgCreateClientResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.client.v1.QueryClientStatusRequest + * @memberof ibc.core.client.v1.MsgCreateClientResponse * @static - * @param {ibc.core.client.v1.IQueryClientStatusRequest} message QueryClientStatusRequest message or plain object to encode + * @param {ibc.core.client.v1.IMsgCreateClientResponse} message MsgCreateClientResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryClientStatusRequest.encodeDelimited = function encodeDelimited(message, writer) { + MsgCreateClientResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryClientStatusRequest message from the specified reader or buffer. + * Decodes a MsgCreateClientResponse message from the specified reader or buffer. * @function decode - * @memberof ibc.core.client.v1.QueryClientStatusRequest + * @memberof ibc.core.client.v1.MsgCreateClientResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.client.v1.QueryClientStatusRequest} QueryClientStatusRequest + * @returns {ibc.core.client.v1.MsgCreateClientResponse} MsgCreateClientResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryClientStatusRequest.decode = function decode(reader, length) { + MsgCreateClientResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.QueryClientStatusRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.MsgCreateClientResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.client_id = reader.string(); - break; default: reader.skipType(tag & 7); break; @@ -54378,107 +60993,96 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a QueryClientStatusRequest message from the specified reader or buffer, length delimited. + * Decodes a MsgCreateClientResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.client.v1.QueryClientStatusRequest + * @memberof ibc.core.client.v1.MsgCreateClientResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.client.v1.QueryClientStatusRequest} QueryClientStatusRequest + * @returns {ibc.core.client.v1.MsgCreateClientResponse} MsgCreateClientResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryClientStatusRequest.decodeDelimited = function decodeDelimited(reader) { + MsgCreateClientResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryClientStatusRequest message. + * Verifies a MsgCreateClientResponse message. * @function verify - * @memberof ibc.core.client.v1.QueryClientStatusRequest + * @memberof ibc.core.client.v1.MsgCreateClientResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryClientStatusRequest.verify = function verify(message) { + MsgCreateClientResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.client_id != null && message.hasOwnProperty("client_id")) - if (!$util.isString(message.client_id)) - return "client_id: string expected"; return null; }; /** - * Creates a QueryClientStatusRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MsgCreateClientResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.client.v1.QueryClientStatusRequest + * @memberof ibc.core.client.v1.MsgCreateClientResponse * @static * @param {Object.} object Plain object - * @returns {ibc.core.client.v1.QueryClientStatusRequest} QueryClientStatusRequest + * @returns {ibc.core.client.v1.MsgCreateClientResponse} MsgCreateClientResponse */ - QueryClientStatusRequest.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.client.v1.QueryClientStatusRequest) + MsgCreateClientResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.client.v1.MsgCreateClientResponse) return object; - let message = new $root.ibc.core.client.v1.QueryClientStatusRequest(); - if (object.client_id != null) - message.client_id = String(object.client_id); - return message; + return new $root.ibc.core.client.v1.MsgCreateClientResponse(); }; /** - * Creates a plain object from a QueryClientStatusRequest message. Also converts values to other types if specified. + * Creates a plain object from a MsgCreateClientResponse message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.client.v1.QueryClientStatusRequest + * @memberof ibc.core.client.v1.MsgCreateClientResponse * @static - * @param {ibc.core.client.v1.QueryClientStatusRequest} message QueryClientStatusRequest + * @param {ibc.core.client.v1.MsgCreateClientResponse} message MsgCreateClientResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryClientStatusRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) - object.client_id = ""; - if (message.client_id != null && message.hasOwnProperty("client_id")) - object.client_id = message.client_id; - return object; + MsgCreateClientResponse.toObject = function toObject() { + return {}; }; /** - * Converts this QueryClientStatusRequest to JSON. + * Converts this MsgCreateClientResponse to JSON. * @function toJSON - * @memberof ibc.core.client.v1.QueryClientStatusRequest + * @memberof ibc.core.client.v1.MsgCreateClientResponse * @instance * @returns {Object.} JSON object */ - QueryClientStatusRequest.prototype.toJSON = function toJSON() { + MsgCreateClientResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryClientStatusRequest; + return MsgCreateClientResponse; })(); - v1.QueryClientStatusResponse = (function() { + v1.MsgUpdateClient = (function() { /** - * Properties of a QueryClientStatusResponse. + * Properties of a MsgUpdateClient. * @memberof ibc.core.client.v1 - * @interface IQueryClientStatusResponse - * @property {string|null} [status] QueryClientStatusResponse status + * @interface IMsgUpdateClient + * @property {string|null} [client_id] MsgUpdateClient client_id + * @property {google.protobuf.IAny|null} [client_message] MsgUpdateClient client_message + * @property {string|null} [signer] MsgUpdateClient signer */ /** - * Constructs a new QueryClientStatusResponse. + * Constructs a new MsgUpdateClient. * @memberof ibc.core.client.v1 - * @classdesc Represents a QueryClientStatusResponse. - * @implements IQueryClientStatusResponse + * @classdesc Represents a MsgUpdateClient. + * @implements IMsgUpdateClient * @constructor - * @param {ibc.core.client.v1.IQueryClientStatusResponse=} [properties] Properties to set + * @param {ibc.core.client.v1.IMsgUpdateClient=} [properties] Properties to set */ - function QueryClientStatusResponse(properties) { + function MsgUpdateClient(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -54486,63 +61090,89 @@ export const ibc = $root.ibc = (() => { } /** - * QueryClientStatusResponse status. - * @member {string} status - * @memberof ibc.core.client.v1.QueryClientStatusResponse + * MsgUpdateClient client_id. + * @member {string} client_id + * @memberof ibc.core.client.v1.MsgUpdateClient * @instance */ - QueryClientStatusResponse.prototype.status = ""; + MsgUpdateClient.prototype.client_id = ""; /** - * Encodes the specified QueryClientStatusResponse message. Does not implicitly {@link ibc.core.client.v1.QueryClientStatusResponse.verify|verify} messages. + * MsgUpdateClient client_message. + * @member {google.protobuf.IAny|null|undefined} client_message + * @memberof ibc.core.client.v1.MsgUpdateClient + * @instance + */ + MsgUpdateClient.prototype.client_message = null; + + /** + * MsgUpdateClient signer. + * @member {string} signer + * @memberof ibc.core.client.v1.MsgUpdateClient + * @instance + */ + MsgUpdateClient.prototype.signer = ""; + + /** + * Encodes the specified MsgUpdateClient message. Does not implicitly {@link ibc.core.client.v1.MsgUpdateClient.verify|verify} messages. * @function encode - * @memberof ibc.core.client.v1.QueryClientStatusResponse + * @memberof ibc.core.client.v1.MsgUpdateClient * @static - * @param {ibc.core.client.v1.IQueryClientStatusResponse} message QueryClientStatusResponse message or plain object to encode + * @param {ibc.core.client.v1.IMsgUpdateClient} message MsgUpdateClient message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryClientStatusResponse.encode = function encode(message, writer) { + MsgUpdateClient.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.status != null && Object.hasOwnProperty.call(message, "status")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.status); + if (message.client_id != null && Object.hasOwnProperty.call(message, "client_id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.client_id); + if (message.client_message != null && Object.hasOwnProperty.call(message, "client_message")) + $root.google.protobuf.Any.encode(message.client_message, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.signer != null && Object.hasOwnProperty.call(message, "signer")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.signer); return writer; }; /** - * Encodes the specified QueryClientStatusResponse message, length delimited. Does not implicitly {@link ibc.core.client.v1.QueryClientStatusResponse.verify|verify} messages. + * Encodes the specified MsgUpdateClient message, length delimited. Does not implicitly {@link ibc.core.client.v1.MsgUpdateClient.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.client.v1.QueryClientStatusResponse + * @memberof ibc.core.client.v1.MsgUpdateClient * @static - * @param {ibc.core.client.v1.IQueryClientStatusResponse} message QueryClientStatusResponse message or plain object to encode + * @param {ibc.core.client.v1.IMsgUpdateClient} message MsgUpdateClient message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryClientStatusResponse.encodeDelimited = function encodeDelimited(message, writer) { + MsgUpdateClient.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryClientStatusResponse message from the specified reader or buffer. + * Decodes a MsgUpdateClient message from the specified reader or buffer. * @function decode - * @memberof ibc.core.client.v1.QueryClientStatusResponse + * @memberof ibc.core.client.v1.MsgUpdateClient * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.client.v1.QueryClientStatusResponse} QueryClientStatusResponse + * @returns {ibc.core.client.v1.MsgUpdateClient} MsgUpdateClient * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryClientStatusResponse.decode = function decode(reader, length) { + MsgUpdateClient.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.QueryClientStatusResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.MsgUpdateClient(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.status = reader.string(); + message.client_id = reader.string(); + break; + case 2: + message.client_message = $root.google.protobuf.Any.decode(reader, reader.uint32()); + break; + case 3: + message.signer = reader.string(); break; default: reader.skipType(tag & 7); @@ -54553,106 +61183,128 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a QueryClientStatusResponse message from the specified reader or buffer, length delimited. + * Decodes a MsgUpdateClient message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.client.v1.QueryClientStatusResponse + * @memberof ibc.core.client.v1.MsgUpdateClient * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.client.v1.QueryClientStatusResponse} QueryClientStatusResponse + * @returns {ibc.core.client.v1.MsgUpdateClient} MsgUpdateClient * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryClientStatusResponse.decodeDelimited = function decodeDelimited(reader) { + MsgUpdateClient.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryClientStatusResponse message. + * Verifies a MsgUpdateClient message. * @function verify - * @memberof ibc.core.client.v1.QueryClientStatusResponse + * @memberof ibc.core.client.v1.MsgUpdateClient * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryClientStatusResponse.verify = function verify(message) { + MsgUpdateClient.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.status != null && message.hasOwnProperty("status")) - if (!$util.isString(message.status)) - return "status: string expected"; + if (message.client_id != null && message.hasOwnProperty("client_id")) + if (!$util.isString(message.client_id)) + return "client_id: string expected"; + if (message.client_message != null && message.hasOwnProperty("client_message")) { + let error = $root.google.protobuf.Any.verify(message.client_message); + if (error) + return "client_message." + error; + } + if (message.signer != null && message.hasOwnProperty("signer")) + if (!$util.isString(message.signer)) + return "signer: string expected"; return null; }; /** - * Creates a QueryClientStatusResponse message from a plain object. Also converts values to their respective internal types. + * Creates a MsgUpdateClient message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.client.v1.QueryClientStatusResponse + * @memberof ibc.core.client.v1.MsgUpdateClient * @static * @param {Object.} object Plain object - * @returns {ibc.core.client.v1.QueryClientStatusResponse} QueryClientStatusResponse + * @returns {ibc.core.client.v1.MsgUpdateClient} MsgUpdateClient */ - QueryClientStatusResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.client.v1.QueryClientStatusResponse) + MsgUpdateClient.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.client.v1.MsgUpdateClient) return object; - let message = new $root.ibc.core.client.v1.QueryClientStatusResponse(); - if (object.status != null) - message.status = String(object.status); + let message = new $root.ibc.core.client.v1.MsgUpdateClient(); + if (object.client_id != null) + message.client_id = String(object.client_id); + if (object.client_message != null) { + if (typeof object.client_message !== "object") + throw TypeError(".ibc.core.client.v1.MsgUpdateClient.client_message: object expected"); + message.client_message = $root.google.protobuf.Any.fromObject(object.client_message); + } + if (object.signer != null) + message.signer = String(object.signer); return message; }; /** - * Creates a plain object from a QueryClientStatusResponse message. Also converts values to other types if specified. + * Creates a plain object from a MsgUpdateClient message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.client.v1.QueryClientStatusResponse + * @memberof ibc.core.client.v1.MsgUpdateClient * @static - * @param {ibc.core.client.v1.QueryClientStatusResponse} message QueryClientStatusResponse + * @param {ibc.core.client.v1.MsgUpdateClient} message MsgUpdateClient * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryClientStatusResponse.toObject = function toObject(message, options) { + MsgUpdateClient.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) - object.status = ""; - if (message.status != null && message.hasOwnProperty("status")) - object.status = message.status; + if (options.defaults) { + object.client_id = ""; + object.client_message = null; + object.signer = ""; + } + if (message.client_id != null && message.hasOwnProperty("client_id")) + object.client_id = message.client_id; + if (message.client_message != null && message.hasOwnProperty("client_message")) + object.client_message = $root.google.protobuf.Any.toObject(message.client_message, options); + if (message.signer != null && message.hasOwnProperty("signer")) + object.signer = message.signer; return object; }; /** - * Converts this QueryClientStatusResponse to JSON. + * Converts this MsgUpdateClient to JSON. * @function toJSON - * @memberof ibc.core.client.v1.QueryClientStatusResponse + * @memberof ibc.core.client.v1.MsgUpdateClient * @instance * @returns {Object.} JSON object */ - QueryClientStatusResponse.prototype.toJSON = function toJSON() { + MsgUpdateClient.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryClientStatusResponse; + return MsgUpdateClient; })(); - v1.QueryClientParamsRequest = (function() { + v1.MsgUpdateClientResponse = (function() { /** - * Properties of a QueryClientParamsRequest. + * Properties of a MsgUpdateClientResponse. * @memberof ibc.core.client.v1 - * @interface IQueryClientParamsRequest + * @interface IMsgUpdateClientResponse */ /** - * Constructs a new QueryClientParamsRequest. + * Constructs a new MsgUpdateClientResponse. * @memberof ibc.core.client.v1 - * @classdesc Represents a QueryClientParamsRequest. - * @implements IQueryClientParamsRequest + * @classdesc Represents a MsgUpdateClientResponse. + * @implements IMsgUpdateClientResponse * @constructor - * @param {ibc.core.client.v1.IQueryClientParamsRequest=} [properties] Properties to set + * @param {ibc.core.client.v1.IMsgUpdateClientResponse=} [properties] Properties to set */ - function QueryClientParamsRequest(properties) { + function MsgUpdateClientResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -54660,48 +61312,48 @@ export const ibc = $root.ibc = (() => { } /** - * Encodes the specified QueryClientParamsRequest message. Does not implicitly {@link ibc.core.client.v1.QueryClientParamsRequest.verify|verify} messages. + * Encodes the specified MsgUpdateClientResponse message. Does not implicitly {@link ibc.core.client.v1.MsgUpdateClientResponse.verify|verify} messages. * @function encode - * @memberof ibc.core.client.v1.QueryClientParamsRequest + * @memberof ibc.core.client.v1.MsgUpdateClientResponse * @static - * @param {ibc.core.client.v1.IQueryClientParamsRequest} message QueryClientParamsRequest message or plain object to encode + * @param {ibc.core.client.v1.IMsgUpdateClientResponse} message MsgUpdateClientResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryClientParamsRequest.encode = function encode(message, writer) { + MsgUpdateClientResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); return writer; }; /** - * Encodes the specified QueryClientParamsRequest message, length delimited. Does not implicitly {@link ibc.core.client.v1.QueryClientParamsRequest.verify|verify} messages. + * Encodes the specified MsgUpdateClientResponse message, length delimited. Does not implicitly {@link ibc.core.client.v1.MsgUpdateClientResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.client.v1.QueryClientParamsRequest + * @memberof ibc.core.client.v1.MsgUpdateClientResponse * @static - * @param {ibc.core.client.v1.IQueryClientParamsRequest} message QueryClientParamsRequest message or plain object to encode + * @param {ibc.core.client.v1.IMsgUpdateClientResponse} message MsgUpdateClientResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryClientParamsRequest.encodeDelimited = function encodeDelimited(message, writer) { + MsgUpdateClientResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryClientParamsRequest message from the specified reader or buffer. + * Decodes a MsgUpdateClientResponse message from the specified reader or buffer. * @function decode - * @memberof ibc.core.client.v1.QueryClientParamsRequest + * @memberof ibc.core.client.v1.MsgUpdateClientResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.client.v1.QueryClientParamsRequest} QueryClientParamsRequest + * @returns {ibc.core.client.v1.MsgUpdateClientResponse} MsgUpdateClientResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryClientParamsRequest.decode = function decode(reader, length) { + MsgUpdateClientResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.QueryClientParamsRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.MsgUpdateClientResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { @@ -54714,94 +61366,99 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a QueryClientParamsRequest message from the specified reader or buffer, length delimited. + * Decodes a MsgUpdateClientResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.client.v1.QueryClientParamsRequest + * @memberof ibc.core.client.v1.MsgUpdateClientResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.client.v1.QueryClientParamsRequest} QueryClientParamsRequest + * @returns {ibc.core.client.v1.MsgUpdateClientResponse} MsgUpdateClientResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryClientParamsRequest.decodeDelimited = function decodeDelimited(reader) { + MsgUpdateClientResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryClientParamsRequest message. + * Verifies a MsgUpdateClientResponse message. * @function verify - * @memberof ibc.core.client.v1.QueryClientParamsRequest + * @memberof ibc.core.client.v1.MsgUpdateClientResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryClientParamsRequest.verify = function verify(message) { + MsgUpdateClientResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; return null; }; /** - * Creates a QueryClientParamsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MsgUpdateClientResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.client.v1.QueryClientParamsRequest + * @memberof ibc.core.client.v1.MsgUpdateClientResponse * @static * @param {Object.} object Plain object - * @returns {ibc.core.client.v1.QueryClientParamsRequest} QueryClientParamsRequest + * @returns {ibc.core.client.v1.MsgUpdateClientResponse} MsgUpdateClientResponse */ - QueryClientParamsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.client.v1.QueryClientParamsRequest) + MsgUpdateClientResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.client.v1.MsgUpdateClientResponse) return object; - return new $root.ibc.core.client.v1.QueryClientParamsRequest(); + return new $root.ibc.core.client.v1.MsgUpdateClientResponse(); }; /** - * Creates a plain object from a QueryClientParamsRequest message. Also converts values to other types if specified. + * Creates a plain object from a MsgUpdateClientResponse message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.client.v1.QueryClientParamsRequest + * @memberof ibc.core.client.v1.MsgUpdateClientResponse * @static - * @param {ibc.core.client.v1.QueryClientParamsRequest} message QueryClientParamsRequest + * @param {ibc.core.client.v1.MsgUpdateClientResponse} message MsgUpdateClientResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryClientParamsRequest.toObject = function toObject() { + MsgUpdateClientResponse.toObject = function toObject() { return {}; }; /** - * Converts this QueryClientParamsRequest to JSON. + * Converts this MsgUpdateClientResponse to JSON. * @function toJSON - * @memberof ibc.core.client.v1.QueryClientParamsRequest + * @memberof ibc.core.client.v1.MsgUpdateClientResponse * @instance * @returns {Object.} JSON object */ - QueryClientParamsRequest.prototype.toJSON = function toJSON() { + MsgUpdateClientResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryClientParamsRequest; + return MsgUpdateClientResponse; })(); - v1.QueryClientParamsResponse = (function() { + v1.MsgUpgradeClient = (function() { /** - * Properties of a QueryClientParamsResponse. + * Properties of a MsgUpgradeClient. * @memberof ibc.core.client.v1 - * @interface IQueryClientParamsResponse - * @property {ibc.core.client.v1.IParams|null} [params] QueryClientParamsResponse params + * @interface IMsgUpgradeClient + * @property {string|null} [client_id] MsgUpgradeClient client_id + * @property {google.protobuf.IAny|null} [client_state] MsgUpgradeClient client_state + * @property {google.protobuf.IAny|null} [consensus_state] MsgUpgradeClient consensus_state + * @property {Uint8Array|null} [proof_upgrade_client] MsgUpgradeClient proof_upgrade_client + * @property {Uint8Array|null} [proof_upgrade_consensus_state] MsgUpgradeClient proof_upgrade_consensus_state + * @property {string|null} [signer] MsgUpgradeClient signer */ /** - * Constructs a new QueryClientParamsResponse. + * Constructs a new MsgUpgradeClient. * @memberof ibc.core.client.v1 - * @classdesc Represents a QueryClientParamsResponse. - * @implements IQueryClientParamsResponse + * @classdesc Represents a MsgUpgradeClient. + * @implements IMsgUpgradeClient * @constructor - * @param {ibc.core.client.v1.IQueryClientParamsResponse=} [properties] Properties to set + * @param {ibc.core.client.v1.IMsgUpgradeClient=} [properties] Properties to set */ - function QueryClientParamsResponse(properties) { + function MsgUpgradeClient(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -54809,63 +61466,128 @@ export const ibc = $root.ibc = (() => { } /** - * QueryClientParamsResponse params. - * @member {ibc.core.client.v1.IParams|null|undefined} params - * @memberof ibc.core.client.v1.QueryClientParamsResponse + * MsgUpgradeClient client_id. + * @member {string} client_id + * @memberof ibc.core.client.v1.MsgUpgradeClient * @instance */ - QueryClientParamsResponse.prototype.params = null; + MsgUpgradeClient.prototype.client_id = ""; /** - * Encodes the specified QueryClientParamsResponse message. Does not implicitly {@link ibc.core.client.v1.QueryClientParamsResponse.verify|verify} messages. + * MsgUpgradeClient client_state. + * @member {google.protobuf.IAny|null|undefined} client_state + * @memberof ibc.core.client.v1.MsgUpgradeClient + * @instance + */ + MsgUpgradeClient.prototype.client_state = null; + + /** + * MsgUpgradeClient consensus_state. + * @member {google.protobuf.IAny|null|undefined} consensus_state + * @memberof ibc.core.client.v1.MsgUpgradeClient + * @instance + */ + MsgUpgradeClient.prototype.consensus_state = null; + + /** + * MsgUpgradeClient proof_upgrade_client. + * @member {Uint8Array} proof_upgrade_client + * @memberof ibc.core.client.v1.MsgUpgradeClient + * @instance + */ + MsgUpgradeClient.prototype.proof_upgrade_client = $util.newBuffer([]); + + /** + * MsgUpgradeClient proof_upgrade_consensus_state. + * @member {Uint8Array} proof_upgrade_consensus_state + * @memberof ibc.core.client.v1.MsgUpgradeClient + * @instance + */ + MsgUpgradeClient.prototype.proof_upgrade_consensus_state = $util.newBuffer([]); + + /** + * MsgUpgradeClient signer. + * @member {string} signer + * @memberof ibc.core.client.v1.MsgUpgradeClient + * @instance + */ + MsgUpgradeClient.prototype.signer = ""; + + /** + * Encodes the specified MsgUpgradeClient message. Does not implicitly {@link ibc.core.client.v1.MsgUpgradeClient.verify|verify} messages. * @function encode - * @memberof ibc.core.client.v1.QueryClientParamsResponse + * @memberof ibc.core.client.v1.MsgUpgradeClient * @static - * @param {ibc.core.client.v1.IQueryClientParamsResponse} message QueryClientParamsResponse message or plain object to encode + * @param {ibc.core.client.v1.IMsgUpgradeClient} message MsgUpgradeClient message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryClientParamsResponse.encode = function encode(message, writer) { + MsgUpgradeClient.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.params != null && Object.hasOwnProperty.call(message, "params")) - $root.ibc.core.client.v1.Params.encode(message.params, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.client_id != null && Object.hasOwnProperty.call(message, "client_id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.client_id); + if (message.client_state != null && Object.hasOwnProperty.call(message, "client_state")) + $root.google.protobuf.Any.encode(message.client_state, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.consensus_state != null && Object.hasOwnProperty.call(message, "consensus_state")) + $root.google.protobuf.Any.encode(message.consensus_state, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.proof_upgrade_client != null && Object.hasOwnProperty.call(message, "proof_upgrade_client")) + writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.proof_upgrade_client); + if (message.proof_upgrade_consensus_state != null && Object.hasOwnProperty.call(message, "proof_upgrade_consensus_state")) + writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.proof_upgrade_consensus_state); + if (message.signer != null && Object.hasOwnProperty.call(message, "signer")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.signer); return writer; }; /** - * Encodes the specified QueryClientParamsResponse message, length delimited. Does not implicitly {@link ibc.core.client.v1.QueryClientParamsResponse.verify|verify} messages. + * Encodes the specified MsgUpgradeClient message, length delimited. Does not implicitly {@link ibc.core.client.v1.MsgUpgradeClient.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.client.v1.QueryClientParamsResponse + * @memberof ibc.core.client.v1.MsgUpgradeClient * @static - * @param {ibc.core.client.v1.IQueryClientParamsResponse} message QueryClientParamsResponse message or plain object to encode + * @param {ibc.core.client.v1.IMsgUpgradeClient} message MsgUpgradeClient message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryClientParamsResponse.encodeDelimited = function encodeDelimited(message, writer) { + MsgUpgradeClient.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryClientParamsResponse message from the specified reader or buffer. + * Decodes a MsgUpgradeClient message from the specified reader or buffer. * @function decode - * @memberof ibc.core.client.v1.QueryClientParamsResponse + * @memberof ibc.core.client.v1.MsgUpgradeClient * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.client.v1.QueryClientParamsResponse} QueryClientParamsResponse + * @returns {ibc.core.client.v1.MsgUpgradeClient} MsgUpgradeClient * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryClientParamsResponse.decode = function decode(reader, length) { + MsgUpgradeClient.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.QueryClientParamsResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.MsgUpgradeClient(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.params = $root.ibc.core.client.v1.Params.decode(reader, reader.uint32()); + message.client_id = reader.string(); + break; + case 2: + message.client_state = $root.google.protobuf.Any.decode(reader, reader.uint32()); + break; + case 3: + message.consensus_state = $root.google.protobuf.Any.decode(reader, reader.uint32()); + break; + case 4: + message.proof_upgrade_client = reader.bytes(); + break; + case 5: + message.proof_upgrade_consensus_state = reader.bytes(); + break; + case 6: + message.signer = reader.string(); break; default: reader.skipType(tag & 7); @@ -54876,111 +61598,175 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a QueryClientParamsResponse message from the specified reader or buffer, length delimited. + * Decodes a MsgUpgradeClient message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.client.v1.QueryClientParamsResponse + * @memberof ibc.core.client.v1.MsgUpgradeClient * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.client.v1.QueryClientParamsResponse} QueryClientParamsResponse + * @returns {ibc.core.client.v1.MsgUpgradeClient} MsgUpgradeClient * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryClientParamsResponse.decodeDelimited = function decodeDelimited(reader) { + MsgUpgradeClient.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryClientParamsResponse message. + * Verifies a MsgUpgradeClient message. * @function verify - * @memberof ibc.core.client.v1.QueryClientParamsResponse + * @memberof ibc.core.client.v1.MsgUpgradeClient * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryClientParamsResponse.verify = function verify(message) { + MsgUpgradeClient.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.params != null && message.hasOwnProperty("params")) { - let error = $root.ibc.core.client.v1.Params.verify(message.params); + if (message.client_id != null && message.hasOwnProperty("client_id")) + if (!$util.isString(message.client_id)) + return "client_id: string expected"; + if (message.client_state != null && message.hasOwnProperty("client_state")) { + let error = $root.google.protobuf.Any.verify(message.client_state); if (error) - return "params." + error; + return "client_state." + error; + } + if (message.consensus_state != null && message.hasOwnProperty("consensus_state")) { + let error = $root.google.protobuf.Any.verify(message.consensus_state); + if (error) + return "consensus_state." + error; } + if (message.proof_upgrade_client != null && message.hasOwnProperty("proof_upgrade_client")) + if (!(message.proof_upgrade_client && typeof message.proof_upgrade_client.length === "number" || $util.isString(message.proof_upgrade_client))) + return "proof_upgrade_client: buffer expected"; + if (message.proof_upgrade_consensus_state != null && message.hasOwnProperty("proof_upgrade_consensus_state")) + if (!(message.proof_upgrade_consensus_state && typeof message.proof_upgrade_consensus_state.length === "number" || $util.isString(message.proof_upgrade_consensus_state))) + return "proof_upgrade_consensus_state: buffer expected"; + if (message.signer != null && message.hasOwnProperty("signer")) + if (!$util.isString(message.signer)) + return "signer: string expected"; return null; }; /** - * Creates a QueryClientParamsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a MsgUpgradeClient message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.client.v1.QueryClientParamsResponse + * @memberof ibc.core.client.v1.MsgUpgradeClient * @static * @param {Object.} object Plain object - * @returns {ibc.core.client.v1.QueryClientParamsResponse} QueryClientParamsResponse + * @returns {ibc.core.client.v1.MsgUpgradeClient} MsgUpgradeClient */ - QueryClientParamsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.client.v1.QueryClientParamsResponse) + MsgUpgradeClient.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.client.v1.MsgUpgradeClient) return object; - let message = new $root.ibc.core.client.v1.QueryClientParamsResponse(); - if (object.params != null) { - if (typeof object.params !== "object") - throw TypeError(".ibc.core.client.v1.QueryClientParamsResponse.params: object expected"); - message.params = $root.ibc.core.client.v1.Params.fromObject(object.params); + let message = new $root.ibc.core.client.v1.MsgUpgradeClient(); + if (object.client_id != null) + message.client_id = String(object.client_id); + if (object.client_state != null) { + if (typeof object.client_state !== "object") + throw TypeError(".ibc.core.client.v1.MsgUpgradeClient.client_state: object expected"); + message.client_state = $root.google.protobuf.Any.fromObject(object.client_state); + } + if (object.consensus_state != null) { + if (typeof object.consensus_state !== "object") + throw TypeError(".ibc.core.client.v1.MsgUpgradeClient.consensus_state: object expected"); + message.consensus_state = $root.google.protobuf.Any.fromObject(object.consensus_state); } + if (object.proof_upgrade_client != null) + if (typeof object.proof_upgrade_client === "string") + $util.base64.decode(object.proof_upgrade_client, message.proof_upgrade_client = $util.newBuffer($util.base64.length(object.proof_upgrade_client)), 0); + else if (object.proof_upgrade_client.length) + message.proof_upgrade_client = object.proof_upgrade_client; + if (object.proof_upgrade_consensus_state != null) + if (typeof object.proof_upgrade_consensus_state === "string") + $util.base64.decode(object.proof_upgrade_consensus_state, message.proof_upgrade_consensus_state = $util.newBuffer($util.base64.length(object.proof_upgrade_consensus_state)), 0); + else if (object.proof_upgrade_consensus_state.length) + message.proof_upgrade_consensus_state = object.proof_upgrade_consensus_state; + if (object.signer != null) + message.signer = String(object.signer); return message; }; /** - * Creates a plain object from a QueryClientParamsResponse message. Also converts values to other types if specified. + * Creates a plain object from a MsgUpgradeClient message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.client.v1.QueryClientParamsResponse + * @memberof ibc.core.client.v1.MsgUpgradeClient * @static - * @param {ibc.core.client.v1.QueryClientParamsResponse} message QueryClientParamsResponse + * @param {ibc.core.client.v1.MsgUpgradeClient} message MsgUpgradeClient * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryClientParamsResponse.toObject = function toObject(message, options) { + MsgUpgradeClient.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) - object.params = null; - if (message.params != null && message.hasOwnProperty("params")) - object.params = $root.ibc.core.client.v1.Params.toObject(message.params, options); + if (options.defaults) { + object.client_id = ""; + object.client_state = null; + object.consensus_state = null; + if (options.bytes === String) + object.proof_upgrade_client = ""; + else { + object.proof_upgrade_client = []; + if (options.bytes !== Array) + object.proof_upgrade_client = $util.newBuffer(object.proof_upgrade_client); + } + if (options.bytes === String) + object.proof_upgrade_consensus_state = ""; + else { + object.proof_upgrade_consensus_state = []; + if (options.bytes !== Array) + object.proof_upgrade_consensus_state = $util.newBuffer(object.proof_upgrade_consensus_state); + } + object.signer = ""; + } + if (message.client_id != null && message.hasOwnProperty("client_id")) + object.client_id = message.client_id; + if (message.client_state != null && message.hasOwnProperty("client_state")) + object.client_state = $root.google.protobuf.Any.toObject(message.client_state, options); + if (message.consensus_state != null && message.hasOwnProperty("consensus_state")) + object.consensus_state = $root.google.protobuf.Any.toObject(message.consensus_state, options); + if (message.proof_upgrade_client != null && message.hasOwnProperty("proof_upgrade_client")) + object.proof_upgrade_client = options.bytes === String ? $util.base64.encode(message.proof_upgrade_client, 0, message.proof_upgrade_client.length) : options.bytes === Array ? Array.prototype.slice.call(message.proof_upgrade_client) : message.proof_upgrade_client; + if (message.proof_upgrade_consensus_state != null && message.hasOwnProperty("proof_upgrade_consensus_state")) + object.proof_upgrade_consensus_state = options.bytes === String ? $util.base64.encode(message.proof_upgrade_consensus_state, 0, message.proof_upgrade_consensus_state.length) : options.bytes === Array ? Array.prototype.slice.call(message.proof_upgrade_consensus_state) : message.proof_upgrade_consensus_state; + if (message.signer != null && message.hasOwnProperty("signer")) + object.signer = message.signer; return object; }; /** - * Converts this QueryClientParamsResponse to JSON. + * Converts this MsgUpgradeClient to JSON. * @function toJSON - * @memberof ibc.core.client.v1.QueryClientParamsResponse + * @memberof ibc.core.client.v1.MsgUpgradeClient * @instance * @returns {Object.} JSON object */ - QueryClientParamsResponse.prototype.toJSON = function toJSON() { + MsgUpgradeClient.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryClientParamsResponse; + return MsgUpgradeClient; })(); - v1.QueryUpgradedClientStateRequest = (function() { + v1.MsgUpgradeClientResponse = (function() { /** - * Properties of a QueryUpgradedClientStateRequest. + * Properties of a MsgUpgradeClientResponse. * @memberof ibc.core.client.v1 - * @interface IQueryUpgradedClientStateRequest + * @interface IMsgUpgradeClientResponse */ /** - * Constructs a new QueryUpgradedClientStateRequest. + * Constructs a new MsgUpgradeClientResponse. * @memberof ibc.core.client.v1 - * @classdesc Represents a QueryUpgradedClientStateRequest. - * @implements IQueryUpgradedClientStateRequest + * @classdesc Represents a MsgUpgradeClientResponse. + * @implements IMsgUpgradeClientResponse * @constructor - * @param {ibc.core.client.v1.IQueryUpgradedClientStateRequest=} [properties] Properties to set + * @param {ibc.core.client.v1.IMsgUpgradeClientResponse=} [properties] Properties to set */ - function QueryUpgradedClientStateRequest(properties) { + function MsgUpgradeClientResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -54988,48 +61774,48 @@ export const ibc = $root.ibc = (() => { } /** - * Encodes the specified QueryUpgradedClientStateRequest message. Does not implicitly {@link ibc.core.client.v1.QueryUpgradedClientStateRequest.verify|verify} messages. + * Encodes the specified MsgUpgradeClientResponse message. Does not implicitly {@link ibc.core.client.v1.MsgUpgradeClientResponse.verify|verify} messages. * @function encode - * @memberof ibc.core.client.v1.QueryUpgradedClientStateRequest + * @memberof ibc.core.client.v1.MsgUpgradeClientResponse * @static - * @param {ibc.core.client.v1.IQueryUpgradedClientStateRequest} message QueryUpgradedClientStateRequest message or plain object to encode + * @param {ibc.core.client.v1.IMsgUpgradeClientResponse} message MsgUpgradeClientResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryUpgradedClientStateRequest.encode = function encode(message, writer) { + MsgUpgradeClientResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); return writer; }; /** - * Encodes the specified QueryUpgradedClientStateRequest message, length delimited. Does not implicitly {@link ibc.core.client.v1.QueryUpgradedClientStateRequest.verify|verify} messages. + * Encodes the specified MsgUpgradeClientResponse message, length delimited. Does not implicitly {@link ibc.core.client.v1.MsgUpgradeClientResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.client.v1.QueryUpgradedClientStateRequest + * @memberof ibc.core.client.v1.MsgUpgradeClientResponse * @static - * @param {ibc.core.client.v1.IQueryUpgradedClientStateRequest} message QueryUpgradedClientStateRequest message or plain object to encode + * @param {ibc.core.client.v1.IMsgUpgradeClientResponse} message MsgUpgradeClientResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryUpgradedClientStateRequest.encodeDelimited = function encodeDelimited(message, writer) { + MsgUpgradeClientResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryUpgradedClientStateRequest message from the specified reader or buffer. + * Decodes a MsgUpgradeClientResponse message from the specified reader or buffer. * @function decode - * @memberof ibc.core.client.v1.QueryUpgradedClientStateRequest + * @memberof ibc.core.client.v1.MsgUpgradeClientResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.client.v1.QueryUpgradedClientStateRequest} QueryUpgradedClientStateRequest + * @returns {ibc.core.client.v1.MsgUpgradeClientResponse} MsgUpgradeClientResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryUpgradedClientStateRequest.decode = function decode(reader, length) { + MsgUpgradeClientResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.QueryUpgradedClientStateRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.MsgUpgradeClientResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { @@ -55042,94 +61828,96 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a QueryUpgradedClientStateRequest message from the specified reader or buffer, length delimited. + * Decodes a MsgUpgradeClientResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.client.v1.QueryUpgradedClientStateRequest + * @memberof ibc.core.client.v1.MsgUpgradeClientResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.client.v1.QueryUpgradedClientStateRequest} QueryUpgradedClientStateRequest + * @returns {ibc.core.client.v1.MsgUpgradeClientResponse} MsgUpgradeClientResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryUpgradedClientStateRequest.decodeDelimited = function decodeDelimited(reader) { + MsgUpgradeClientResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryUpgradedClientStateRequest message. + * Verifies a MsgUpgradeClientResponse message. * @function verify - * @memberof ibc.core.client.v1.QueryUpgradedClientStateRequest + * @memberof ibc.core.client.v1.MsgUpgradeClientResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryUpgradedClientStateRequest.verify = function verify(message) { + MsgUpgradeClientResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; return null; }; /** - * Creates a QueryUpgradedClientStateRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MsgUpgradeClientResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.client.v1.QueryUpgradedClientStateRequest + * @memberof ibc.core.client.v1.MsgUpgradeClientResponse * @static * @param {Object.} object Plain object - * @returns {ibc.core.client.v1.QueryUpgradedClientStateRequest} QueryUpgradedClientStateRequest + * @returns {ibc.core.client.v1.MsgUpgradeClientResponse} MsgUpgradeClientResponse */ - QueryUpgradedClientStateRequest.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.client.v1.QueryUpgradedClientStateRequest) + MsgUpgradeClientResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.client.v1.MsgUpgradeClientResponse) return object; - return new $root.ibc.core.client.v1.QueryUpgradedClientStateRequest(); + return new $root.ibc.core.client.v1.MsgUpgradeClientResponse(); }; /** - * Creates a plain object from a QueryUpgradedClientStateRequest message. Also converts values to other types if specified. + * Creates a plain object from a MsgUpgradeClientResponse message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.client.v1.QueryUpgradedClientStateRequest + * @memberof ibc.core.client.v1.MsgUpgradeClientResponse * @static - * @param {ibc.core.client.v1.QueryUpgradedClientStateRequest} message QueryUpgradedClientStateRequest + * @param {ibc.core.client.v1.MsgUpgradeClientResponse} message MsgUpgradeClientResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryUpgradedClientStateRequest.toObject = function toObject() { + MsgUpgradeClientResponse.toObject = function toObject() { return {}; }; /** - * Converts this QueryUpgradedClientStateRequest to JSON. + * Converts this MsgUpgradeClientResponse to JSON. * @function toJSON - * @memberof ibc.core.client.v1.QueryUpgradedClientStateRequest + * @memberof ibc.core.client.v1.MsgUpgradeClientResponse * @instance * @returns {Object.} JSON object */ - QueryUpgradedClientStateRequest.prototype.toJSON = function toJSON() { + MsgUpgradeClientResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryUpgradedClientStateRequest; + return MsgUpgradeClientResponse; })(); - v1.QueryUpgradedClientStateResponse = (function() { + v1.MsgSubmitMisbehaviour = (function() { /** - * Properties of a QueryUpgradedClientStateResponse. + * Properties of a MsgSubmitMisbehaviour. * @memberof ibc.core.client.v1 - * @interface IQueryUpgradedClientStateResponse - * @property {google.protobuf.IAny|null} [upgraded_client_state] QueryUpgradedClientStateResponse upgraded_client_state + * @interface IMsgSubmitMisbehaviour + * @property {string|null} [client_id] MsgSubmitMisbehaviour client_id + * @property {google.protobuf.IAny|null} [misbehaviour] MsgSubmitMisbehaviour misbehaviour + * @property {string|null} [signer] MsgSubmitMisbehaviour signer */ /** - * Constructs a new QueryUpgradedClientStateResponse. + * Constructs a new MsgSubmitMisbehaviour. * @memberof ibc.core.client.v1 - * @classdesc Represents a QueryUpgradedClientStateResponse. - * @implements IQueryUpgradedClientStateResponse + * @classdesc Represents a MsgSubmitMisbehaviour. + * @implements IMsgSubmitMisbehaviour * @constructor - * @param {ibc.core.client.v1.IQueryUpgradedClientStateResponse=} [properties] Properties to set + * @param {ibc.core.client.v1.IMsgSubmitMisbehaviour=} [properties] Properties to set */ - function QueryUpgradedClientStateResponse(properties) { + function MsgSubmitMisbehaviour(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -55137,63 +61925,89 @@ export const ibc = $root.ibc = (() => { } /** - * QueryUpgradedClientStateResponse upgraded_client_state. - * @member {google.protobuf.IAny|null|undefined} upgraded_client_state - * @memberof ibc.core.client.v1.QueryUpgradedClientStateResponse + * MsgSubmitMisbehaviour client_id. + * @member {string} client_id + * @memberof ibc.core.client.v1.MsgSubmitMisbehaviour * @instance */ - QueryUpgradedClientStateResponse.prototype.upgraded_client_state = null; + MsgSubmitMisbehaviour.prototype.client_id = ""; /** - * Encodes the specified QueryUpgradedClientStateResponse message. Does not implicitly {@link ibc.core.client.v1.QueryUpgradedClientStateResponse.verify|verify} messages. + * MsgSubmitMisbehaviour misbehaviour. + * @member {google.protobuf.IAny|null|undefined} misbehaviour + * @memberof ibc.core.client.v1.MsgSubmitMisbehaviour + * @instance + */ + MsgSubmitMisbehaviour.prototype.misbehaviour = null; + + /** + * MsgSubmitMisbehaviour signer. + * @member {string} signer + * @memberof ibc.core.client.v1.MsgSubmitMisbehaviour + * @instance + */ + MsgSubmitMisbehaviour.prototype.signer = ""; + + /** + * Encodes the specified MsgSubmitMisbehaviour message. Does not implicitly {@link ibc.core.client.v1.MsgSubmitMisbehaviour.verify|verify} messages. * @function encode - * @memberof ibc.core.client.v1.QueryUpgradedClientStateResponse + * @memberof ibc.core.client.v1.MsgSubmitMisbehaviour * @static - * @param {ibc.core.client.v1.IQueryUpgradedClientStateResponse} message QueryUpgradedClientStateResponse message or plain object to encode + * @param {ibc.core.client.v1.IMsgSubmitMisbehaviour} message MsgSubmitMisbehaviour message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryUpgradedClientStateResponse.encode = function encode(message, writer) { + MsgSubmitMisbehaviour.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.upgraded_client_state != null && Object.hasOwnProperty.call(message, "upgraded_client_state")) - $root.google.protobuf.Any.encode(message.upgraded_client_state, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.client_id != null && Object.hasOwnProperty.call(message, "client_id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.client_id); + if (message.misbehaviour != null && Object.hasOwnProperty.call(message, "misbehaviour")) + $root.google.protobuf.Any.encode(message.misbehaviour, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.signer != null && Object.hasOwnProperty.call(message, "signer")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.signer); return writer; }; /** - * Encodes the specified QueryUpgradedClientStateResponse message, length delimited. Does not implicitly {@link ibc.core.client.v1.QueryUpgradedClientStateResponse.verify|verify} messages. + * Encodes the specified MsgSubmitMisbehaviour message, length delimited. Does not implicitly {@link ibc.core.client.v1.MsgSubmitMisbehaviour.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.client.v1.QueryUpgradedClientStateResponse + * @memberof ibc.core.client.v1.MsgSubmitMisbehaviour * @static - * @param {ibc.core.client.v1.IQueryUpgradedClientStateResponse} message QueryUpgradedClientStateResponse message or plain object to encode + * @param {ibc.core.client.v1.IMsgSubmitMisbehaviour} message MsgSubmitMisbehaviour message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryUpgradedClientStateResponse.encodeDelimited = function encodeDelimited(message, writer) { + MsgSubmitMisbehaviour.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryUpgradedClientStateResponse message from the specified reader or buffer. + * Decodes a MsgSubmitMisbehaviour message from the specified reader or buffer. * @function decode - * @memberof ibc.core.client.v1.QueryUpgradedClientStateResponse + * @memberof ibc.core.client.v1.MsgSubmitMisbehaviour * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.client.v1.QueryUpgradedClientStateResponse} QueryUpgradedClientStateResponse + * @returns {ibc.core.client.v1.MsgSubmitMisbehaviour} MsgSubmitMisbehaviour * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryUpgradedClientStateResponse.decode = function decode(reader, length) { + MsgSubmitMisbehaviour.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.QueryUpgradedClientStateResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.MsgSubmitMisbehaviour(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.upgraded_client_state = $root.google.protobuf.Any.decode(reader, reader.uint32()); + message.client_id = reader.string(); + break; + case 2: + message.misbehaviour = $root.google.protobuf.Any.decode(reader, reader.uint32()); + break; + case 3: + message.signer = reader.string(); break; default: reader.skipType(tag & 7); @@ -55204,111 +62018,128 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a QueryUpgradedClientStateResponse message from the specified reader or buffer, length delimited. + * Decodes a MsgSubmitMisbehaviour message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.client.v1.QueryUpgradedClientStateResponse + * @memberof ibc.core.client.v1.MsgSubmitMisbehaviour * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.client.v1.QueryUpgradedClientStateResponse} QueryUpgradedClientStateResponse + * @returns {ibc.core.client.v1.MsgSubmitMisbehaviour} MsgSubmitMisbehaviour * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryUpgradedClientStateResponse.decodeDelimited = function decodeDelimited(reader) { + MsgSubmitMisbehaviour.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryUpgradedClientStateResponse message. + * Verifies a MsgSubmitMisbehaviour message. * @function verify - * @memberof ibc.core.client.v1.QueryUpgradedClientStateResponse + * @memberof ibc.core.client.v1.MsgSubmitMisbehaviour * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryUpgradedClientStateResponse.verify = function verify(message) { + MsgSubmitMisbehaviour.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.upgraded_client_state != null && message.hasOwnProperty("upgraded_client_state")) { - let error = $root.google.protobuf.Any.verify(message.upgraded_client_state); + if (message.client_id != null && message.hasOwnProperty("client_id")) + if (!$util.isString(message.client_id)) + return "client_id: string expected"; + if (message.misbehaviour != null && message.hasOwnProperty("misbehaviour")) { + let error = $root.google.protobuf.Any.verify(message.misbehaviour); if (error) - return "upgraded_client_state." + error; + return "misbehaviour." + error; } + if (message.signer != null && message.hasOwnProperty("signer")) + if (!$util.isString(message.signer)) + return "signer: string expected"; return null; }; /** - * Creates a QueryUpgradedClientStateResponse message from a plain object. Also converts values to their respective internal types. + * Creates a MsgSubmitMisbehaviour message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.client.v1.QueryUpgradedClientStateResponse + * @memberof ibc.core.client.v1.MsgSubmitMisbehaviour * @static * @param {Object.} object Plain object - * @returns {ibc.core.client.v1.QueryUpgradedClientStateResponse} QueryUpgradedClientStateResponse + * @returns {ibc.core.client.v1.MsgSubmitMisbehaviour} MsgSubmitMisbehaviour */ - QueryUpgradedClientStateResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.client.v1.QueryUpgradedClientStateResponse) + MsgSubmitMisbehaviour.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.client.v1.MsgSubmitMisbehaviour) return object; - let message = new $root.ibc.core.client.v1.QueryUpgradedClientStateResponse(); - if (object.upgraded_client_state != null) { - if (typeof object.upgraded_client_state !== "object") - throw TypeError(".ibc.core.client.v1.QueryUpgradedClientStateResponse.upgraded_client_state: object expected"); - message.upgraded_client_state = $root.google.protobuf.Any.fromObject(object.upgraded_client_state); + let message = new $root.ibc.core.client.v1.MsgSubmitMisbehaviour(); + if (object.client_id != null) + message.client_id = String(object.client_id); + if (object.misbehaviour != null) { + if (typeof object.misbehaviour !== "object") + throw TypeError(".ibc.core.client.v1.MsgSubmitMisbehaviour.misbehaviour: object expected"); + message.misbehaviour = $root.google.protobuf.Any.fromObject(object.misbehaviour); } + if (object.signer != null) + message.signer = String(object.signer); return message; }; /** - * Creates a plain object from a QueryUpgradedClientStateResponse message. Also converts values to other types if specified. + * Creates a plain object from a MsgSubmitMisbehaviour message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.client.v1.QueryUpgradedClientStateResponse + * @memberof ibc.core.client.v1.MsgSubmitMisbehaviour * @static - * @param {ibc.core.client.v1.QueryUpgradedClientStateResponse} message QueryUpgradedClientStateResponse + * @param {ibc.core.client.v1.MsgSubmitMisbehaviour} message MsgSubmitMisbehaviour * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryUpgradedClientStateResponse.toObject = function toObject(message, options) { + MsgSubmitMisbehaviour.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) - object.upgraded_client_state = null; - if (message.upgraded_client_state != null && message.hasOwnProperty("upgraded_client_state")) - object.upgraded_client_state = $root.google.protobuf.Any.toObject(message.upgraded_client_state, options); + if (options.defaults) { + object.client_id = ""; + object.misbehaviour = null; + object.signer = ""; + } + if (message.client_id != null && message.hasOwnProperty("client_id")) + object.client_id = message.client_id; + if (message.misbehaviour != null && message.hasOwnProperty("misbehaviour")) + object.misbehaviour = $root.google.protobuf.Any.toObject(message.misbehaviour, options); + if (message.signer != null && message.hasOwnProperty("signer")) + object.signer = message.signer; return object; }; /** - * Converts this QueryUpgradedClientStateResponse to JSON. + * Converts this MsgSubmitMisbehaviour to JSON. * @function toJSON - * @memberof ibc.core.client.v1.QueryUpgradedClientStateResponse + * @memberof ibc.core.client.v1.MsgSubmitMisbehaviour * @instance * @returns {Object.} JSON object */ - QueryUpgradedClientStateResponse.prototype.toJSON = function toJSON() { + MsgSubmitMisbehaviour.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryUpgradedClientStateResponse; + return MsgSubmitMisbehaviour; })(); - v1.QueryUpgradedConsensusStateRequest = (function() { + v1.MsgSubmitMisbehaviourResponse = (function() { /** - * Properties of a QueryUpgradedConsensusStateRequest. + * Properties of a MsgSubmitMisbehaviourResponse. * @memberof ibc.core.client.v1 - * @interface IQueryUpgradedConsensusStateRequest + * @interface IMsgSubmitMisbehaviourResponse */ /** - * Constructs a new QueryUpgradedConsensusStateRequest. + * Constructs a new MsgSubmitMisbehaviourResponse. * @memberof ibc.core.client.v1 - * @classdesc Represents a QueryUpgradedConsensusStateRequest. - * @implements IQueryUpgradedConsensusStateRequest + * @classdesc Represents a MsgSubmitMisbehaviourResponse. + * @implements IMsgSubmitMisbehaviourResponse * @constructor - * @param {ibc.core.client.v1.IQueryUpgradedConsensusStateRequest=} [properties] Properties to set + * @param {ibc.core.client.v1.IMsgSubmitMisbehaviourResponse=} [properties] Properties to set */ - function QueryUpgradedConsensusStateRequest(properties) { + function MsgSubmitMisbehaviourResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -55316,48 +62147,48 @@ export const ibc = $root.ibc = (() => { } /** - * Encodes the specified QueryUpgradedConsensusStateRequest message. Does not implicitly {@link ibc.core.client.v1.QueryUpgradedConsensusStateRequest.verify|verify} messages. + * Encodes the specified MsgSubmitMisbehaviourResponse message. Does not implicitly {@link ibc.core.client.v1.MsgSubmitMisbehaviourResponse.verify|verify} messages. * @function encode - * @memberof ibc.core.client.v1.QueryUpgradedConsensusStateRequest + * @memberof ibc.core.client.v1.MsgSubmitMisbehaviourResponse * @static - * @param {ibc.core.client.v1.IQueryUpgradedConsensusStateRequest} message QueryUpgradedConsensusStateRequest message or plain object to encode + * @param {ibc.core.client.v1.IMsgSubmitMisbehaviourResponse} message MsgSubmitMisbehaviourResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryUpgradedConsensusStateRequest.encode = function encode(message, writer) { + MsgSubmitMisbehaviourResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); return writer; }; /** - * Encodes the specified QueryUpgradedConsensusStateRequest message, length delimited. Does not implicitly {@link ibc.core.client.v1.QueryUpgradedConsensusStateRequest.verify|verify} messages. + * Encodes the specified MsgSubmitMisbehaviourResponse message, length delimited. Does not implicitly {@link ibc.core.client.v1.MsgSubmitMisbehaviourResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.client.v1.QueryUpgradedConsensusStateRequest + * @memberof ibc.core.client.v1.MsgSubmitMisbehaviourResponse * @static - * @param {ibc.core.client.v1.IQueryUpgradedConsensusStateRequest} message QueryUpgradedConsensusStateRequest message or plain object to encode + * @param {ibc.core.client.v1.IMsgSubmitMisbehaviourResponse} message MsgSubmitMisbehaviourResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryUpgradedConsensusStateRequest.encodeDelimited = function encodeDelimited(message, writer) { + MsgSubmitMisbehaviourResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryUpgradedConsensusStateRequest message from the specified reader or buffer. + * Decodes a MsgSubmitMisbehaviourResponse message from the specified reader or buffer. * @function decode - * @memberof ibc.core.client.v1.QueryUpgradedConsensusStateRequest + * @memberof ibc.core.client.v1.MsgSubmitMisbehaviourResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.client.v1.QueryUpgradedConsensusStateRequest} QueryUpgradedConsensusStateRequest + * @returns {ibc.core.client.v1.MsgSubmitMisbehaviourResponse} MsgSubmitMisbehaviourResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryUpgradedConsensusStateRequest.decode = function decode(reader, length) { + MsgSubmitMisbehaviourResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.QueryUpgradedConsensusStateRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.MsgSubmitMisbehaviourResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { @@ -55370,420 +62201,476 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a QueryUpgradedConsensusStateRequest message from the specified reader or buffer, length delimited. + * Decodes a MsgSubmitMisbehaviourResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.client.v1.QueryUpgradedConsensusStateRequest + * @memberof ibc.core.client.v1.MsgSubmitMisbehaviourResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.client.v1.QueryUpgradedConsensusStateRequest} QueryUpgradedConsensusStateRequest + * @returns {ibc.core.client.v1.MsgSubmitMisbehaviourResponse} MsgSubmitMisbehaviourResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryUpgradedConsensusStateRequest.decodeDelimited = function decodeDelimited(reader) { + MsgSubmitMisbehaviourResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryUpgradedConsensusStateRequest message. + * Verifies a MsgSubmitMisbehaviourResponse message. * @function verify - * @memberof ibc.core.client.v1.QueryUpgradedConsensusStateRequest + * @memberof ibc.core.client.v1.MsgSubmitMisbehaviourResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryUpgradedConsensusStateRequest.verify = function verify(message) { + MsgSubmitMisbehaviourResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; return null; }; /** - * Creates a QueryUpgradedConsensusStateRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MsgSubmitMisbehaviourResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.client.v1.QueryUpgradedConsensusStateRequest + * @memberof ibc.core.client.v1.MsgSubmitMisbehaviourResponse * @static * @param {Object.} object Plain object - * @returns {ibc.core.client.v1.QueryUpgradedConsensusStateRequest} QueryUpgradedConsensusStateRequest + * @returns {ibc.core.client.v1.MsgSubmitMisbehaviourResponse} MsgSubmitMisbehaviourResponse */ - QueryUpgradedConsensusStateRequest.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.client.v1.QueryUpgradedConsensusStateRequest) + MsgSubmitMisbehaviourResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.client.v1.MsgSubmitMisbehaviourResponse) return object; - return new $root.ibc.core.client.v1.QueryUpgradedConsensusStateRequest(); + return new $root.ibc.core.client.v1.MsgSubmitMisbehaviourResponse(); }; /** - * Creates a plain object from a QueryUpgradedConsensusStateRequest message. Also converts values to other types if specified. + * Creates a plain object from a MsgSubmitMisbehaviourResponse message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.client.v1.QueryUpgradedConsensusStateRequest + * @memberof ibc.core.client.v1.MsgSubmitMisbehaviourResponse * @static - * @param {ibc.core.client.v1.QueryUpgradedConsensusStateRequest} message QueryUpgradedConsensusStateRequest + * @param {ibc.core.client.v1.MsgSubmitMisbehaviourResponse} message MsgSubmitMisbehaviourResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryUpgradedConsensusStateRequest.toObject = function toObject() { - return {}; - }; + MsgSubmitMisbehaviourResponse.toObject = function toObject() { + return {}; + }; + + /** + * Converts this MsgSubmitMisbehaviourResponse to JSON. + * @function toJSON + * @memberof ibc.core.client.v1.MsgSubmitMisbehaviourResponse + * @instance + * @returns {Object.} JSON object + */ + MsgSubmitMisbehaviourResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return MsgSubmitMisbehaviourResponse; + })(); + + v1.Query = (function() { + + /** + * Constructs a new Query service. + * @memberof ibc.core.client.v1 + * @classdesc Represents a Query + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + */ + function Query(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (Query.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Query; + + /** + * Callback as used by {@link ibc.core.client.v1.Query#clientState}. + * @memberof ibc.core.client.v1.Query + * @typedef ClientStateCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.core.client.v1.QueryClientStateResponse} [response] QueryClientStateResponse + */ + + /** + * Calls ClientState. + * @function clientState + * @memberof ibc.core.client.v1.Query + * @instance + * @param {ibc.core.client.v1.IQueryClientStateRequest} request QueryClientStateRequest message or plain object + * @param {ibc.core.client.v1.Query.ClientStateCallback} callback Node-style callback called with the error, if any, and QueryClientStateResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Query.prototype.clientState = function clientState(request, callback) { + return this.rpcCall(clientState, $root.ibc.core.client.v1.QueryClientStateRequest, $root.ibc.core.client.v1.QueryClientStateResponse, request, callback); + }, "name", { value: "ClientState" }); + + /** + * Calls ClientState. + * @function clientState + * @memberof ibc.core.client.v1.Query + * @instance + * @param {ibc.core.client.v1.IQueryClientStateRequest} request QueryClientStateRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link ibc.core.client.v1.Query#clientStates}. + * @memberof ibc.core.client.v1.Query + * @typedef ClientStatesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.core.client.v1.QueryClientStatesResponse} [response] QueryClientStatesResponse + */ + + /** + * Calls ClientStates. + * @function clientStates + * @memberof ibc.core.client.v1.Query + * @instance + * @param {ibc.core.client.v1.IQueryClientStatesRequest} request QueryClientStatesRequest message or plain object + * @param {ibc.core.client.v1.Query.ClientStatesCallback} callback Node-style callback called with the error, if any, and QueryClientStatesResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Query.prototype.clientStates = function clientStates(request, callback) { + return this.rpcCall(clientStates, $root.ibc.core.client.v1.QueryClientStatesRequest, $root.ibc.core.client.v1.QueryClientStatesResponse, request, callback); + }, "name", { value: "ClientStates" }); + + /** + * Calls ClientStates. + * @function clientStates + * @memberof ibc.core.client.v1.Query + * @instance + * @param {ibc.core.client.v1.IQueryClientStatesRequest} request QueryClientStatesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link ibc.core.client.v1.Query#consensusState}. + * @memberof ibc.core.client.v1.Query + * @typedef ConsensusStateCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.core.client.v1.QueryConsensusStateResponse} [response] QueryConsensusStateResponse + */ + + /** + * Calls ConsensusState. + * @function consensusState + * @memberof ibc.core.client.v1.Query + * @instance + * @param {ibc.core.client.v1.IQueryConsensusStateRequest} request QueryConsensusStateRequest message or plain object + * @param {ibc.core.client.v1.Query.ConsensusStateCallback} callback Node-style callback called with the error, if any, and QueryConsensusStateResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Query.prototype.consensusState = function consensusState(request, callback) { + return this.rpcCall(consensusState, $root.ibc.core.client.v1.QueryConsensusStateRequest, $root.ibc.core.client.v1.QueryConsensusStateResponse, request, callback); + }, "name", { value: "ConsensusState" }); /** - * Converts this QueryUpgradedConsensusStateRequest to JSON. - * @function toJSON - * @memberof ibc.core.client.v1.QueryUpgradedConsensusStateRequest + * Calls ConsensusState. + * @function consensusState + * @memberof ibc.core.client.v1.Query * @instance - * @returns {Object.} JSON object + * @param {ibc.core.client.v1.IQueryConsensusStateRequest} request QueryConsensusStateRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - QueryUpgradedConsensusStateRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return QueryUpgradedConsensusStateRequest; - })(); - - v1.QueryUpgradedConsensusStateResponse = (function() { /** - * Properties of a QueryUpgradedConsensusStateResponse. - * @memberof ibc.core.client.v1 - * @interface IQueryUpgradedConsensusStateResponse - * @property {google.protobuf.IAny|null} [upgraded_consensus_state] QueryUpgradedConsensusStateResponse upgraded_consensus_state + * Callback as used by {@link ibc.core.client.v1.Query#consensusStates}. + * @memberof ibc.core.client.v1.Query + * @typedef ConsensusStatesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.core.client.v1.QueryConsensusStatesResponse} [response] QueryConsensusStatesResponse */ /** - * Constructs a new QueryUpgradedConsensusStateResponse. - * @memberof ibc.core.client.v1 - * @classdesc Represents a QueryUpgradedConsensusStateResponse. - * @implements IQueryUpgradedConsensusStateResponse - * @constructor - * @param {ibc.core.client.v1.IQueryUpgradedConsensusStateResponse=} [properties] Properties to set + * Calls ConsensusStates. + * @function consensusStates + * @memberof ibc.core.client.v1.Query + * @instance + * @param {ibc.core.client.v1.IQueryConsensusStatesRequest} request QueryConsensusStatesRequest message or plain object + * @param {ibc.core.client.v1.Query.ConsensusStatesCallback} callback Node-style callback called with the error, if any, and QueryConsensusStatesResponse + * @returns {undefined} + * @variation 1 */ - function QueryUpgradedConsensusStateResponse(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + Object.defineProperty(Query.prototype.consensusStates = function consensusStates(request, callback) { + return this.rpcCall(consensusStates, $root.ibc.core.client.v1.QueryConsensusStatesRequest, $root.ibc.core.client.v1.QueryConsensusStatesResponse, request, callback); + }, "name", { value: "ConsensusStates" }); /** - * QueryUpgradedConsensusStateResponse upgraded_consensus_state. - * @member {google.protobuf.IAny|null|undefined} upgraded_consensus_state - * @memberof ibc.core.client.v1.QueryUpgradedConsensusStateResponse + * Calls ConsensusStates. + * @function consensusStates + * @memberof ibc.core.client.v1.Query * @instance + * @param {ibc.core.client.v1.IQueryConsensusStatesRequest} request QueryConsensusStatesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - QueryUpgradedConsensusStateResponse.prototype.upgraded_consensus_state = null; /** - * Encodes the specified QueryUpgradedConsensusStateResponse message. Does not implicitly {@link ibc.core.client.v1.QueryUpgradedConsensusStateResponse.verify|verify} messages. - * @function encode - * @memberof ibc.core.client.v1.QueryUpgradedConsensusStateResponse - * @static - * @param {ibc.core.client.v1.IQueryUpgradedConsensusStateResponse} message QueryUpgradedConsensusStateResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Callback as used by {@link ibc.core.client.v1.Query#consensusStateHeights}. + * @memberof ibc.core.client.v1.Query + * @typedef ConsensusStateHeightsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.core.client.v1.QueryConsensusStateHeightsResponse} [response] QueryConsensusStateHeightsResponse */ - QueryUpgradedConsensusStateResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.upgraded_consensus_state != null && Object.hasOwnProperty.call(message, "upgraded_consensus_state")) - $root.google.protobuf.Any.encode(message.upgraded_consensus_state, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; /** - * Encodes the specified QueryUpgradedConsensusStateResponse message, length delimited. Does not implicitly {@link ibc.core.client.v1.QueryUpgradedConsensusStateResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof ibc.core.client.v1.QueryUpgradedConsensusStateResponse - * @static - * @param {ibc.core.client.v1.IQueryUpgradedConsensusStateResponse} message QueryUpgradedConsensusStateResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls ConsensusStateHeights. + * @function consensusStateHeights + * @memberof ibc.core.client.v1.Query + * @instance + * @param {ibc.core.client.v1.IQueryConsensusStateHeightsRequest} request QueryConsensusStateHeightsRequest message or plain object + * @param {ibc.core.client.v1.Query.ConsensusStateHeightsCallback} callback Node-style callback called with the error, if any, and QueryConsensusStateHeightsResponse + * @returns {undefined} + * @variation 1 */ - QueryUpgradedConsensusStateResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + Object.defineProperty(Query.prototype.consensusStateHeights = function consensusStateHeights(request, callback) { + return this.rpcCall(consensusStateHeights, $root.ibc.core.client.v1.QueryConsensusStateHeightsRequest, $root.ibc.core.client.v1.QueryConsensusStateHeightsResponse, request, callback); + }, "name", { value: "ConsensusStateHeights" }); /** - * Decodes a QueryUpgradedConsensusStateResponse message from the specified reader or buffer. - * @function decode - * @memberof ibc.core.client.v1.QueryUpgradedConsensusStateResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.client.v1.QueryUpgradedConsensusStateResponse} QueryUpgradedConsensusStateResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls ConsensusStateHeights. + * @function consensusStateHeights + * @memberof ibc.core.client.v1.Query + * @instance + * @param {ibc.core.client.v1.IQueryConsensusStateHeightsRequest} request QueryConsensusStateHeightsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - QueryUpgradedConsensusStateResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.QueryUpgradedConsensusStateResponse(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.upgraded_consensus_state = $root.google.protobuf.Any.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; /** - * Decodes a QueryUpgradedConsensusStateResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ibc.core.client.v1.QueryUpgradedConsensusStateResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.client.v1.QueryUpgradedConsensusStateResponse} QueryUpgradedConsensusStateResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link ibc.core.client.v1.Query#clientStatus}. + * @memberof ibc.core.client.v1.Query + * @typedef ClientStatusCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.core.client.v1.QueryClientStatusResponse} [response] QueryClientStatusResponse */ - QueryUpgradedConsensusStateResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; /** - * Verifies a QueryUpgradedConsensusStateResponse message. - * @function verify - * @memberof ibc.core.client.v1.QueryUpgradedConsensusStateResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Calls ClientStatus. + * @function clientStatus + * @memberof ibc.core.client.v1.Query + * @instance + * @param {ibc.core.client.v1.IQueryClientStatusRequest} request QueryClientStatusRequest message or plain object + * @param {ibc.core.client.v1.Query.ClientStatusCallback} callback Node-style callback called with the error, if any, and QueryClientStatusResponse + * @returns {undefined} + * @variation 1 */ - QueryUpgradedConsensusStateResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.upgraded_consensus_state != null && message.hasOwnProperty("upgraded_consensus_state")) { - let error = $root.google.protobuf.Any.verify(message.upgraded_consensus_state); - if (error) - return "upgraded_consensus_state." + error; - } - return null; - }; + Object.defineProperty(Query.prototype.clientStatus = function clientStatus(request, callback) { + return this.rpcCall(clientStatus, $root.ibc.core.client.v1.QueryClientStatusRequest, $root.ibc.core.client.v1.QueryClientStatusResponse, request, callback); + }, "name", { value: "ClientStatus" }); /** - * Creates a QueryUpgradedConsensusStateResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof ibc.core.client.v1.QueryUpgradedConsensusStateResponse - * @static - * @param {Object.} object Plain object - * @returns {ibc.core.client.v1.QueryUpgradedConsensusStateResponse} QueryUpgradedConsensusStateResponse + * Calls ClientStatus. + * @function clientStatus + * @memberof ibc.core.client.v1.Query + * @instance + * @param {ibc.core.client.v1.IQueryClientStatusRequest} request QueryClientStatusRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - QueryUpgradedConsensusStateResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.client.v1.QueryUpgradedConsensusStateResponse) - return object; - let message = new $root.ibc.core.client.v1.QueryUpgradedConsensusStateResponse(); - if (object.upgraded_consensus_state != null) { - if (typeof object.upgraded_consensus_state !== "object") - throw TypeError(".ibc.core.client.v1.QueryUpgradedConsensusStateResponse.upgraded_consensus_state: object expected"); - message.upgraded_consensus_state = $root.google.protobuf.Any.fromObject(object.upgraded_consensus_state); - } - return message; - }; /** - * Creates a plain object from a QueryUpgradedConsensusStateResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof ibc.core.client.v1.QueryUpgradedConsensusStateResponse - * @static - * @param {ibc.core.client.v1.QueryUpgradedConsensusStateResponse} message QueryUpgradedConsensusStateResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Callback as used by {@link ibc.core.client.v1.Query#clientParams}. + * @memberof ibc.core.client.v1.Query + * @typedef ClientParamsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.core.client.v1.QueryClientParamsResponse} [response] QueryClientParamsResponse */ - QueryUpgradedConsensusStateResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) - object.upgraded_consensus_state = null; - if (message.upgraded_consensus_state != null && message.hasOwnProperty("upgraded_consensus_state")) - object.upgraded_consensus_state = $root.google.protobuf.Any.toObject(message.upgraded_consensus_state, options); - return object; - }; /** - * Converts this QueryUpgradedConsensusStateResponse to JSON. - * @function toJSON - * @memberof ibc.core.client.v1.QueryUpgradedConsensusStateResponse + * Calls ClientParams. + * @function clientParams + * @memberof ibc.core.client.v1.Query * @instance - * @returns {Object.} JSON object + * @param {ibc.core.client.v1.IQueryClientParamsRequest} request QueryClientParamsRequest message or plain object + * @param {ibc.core.client.v1.Query.ClientParamsCallback} callback Node-style callback called with the error, if any, and QueryClientParamsResponse + * @returns {undefined} + * @variation 1 */ - QueryUpgradedConsensusStateResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return QueryUpgradedConsensusStateResponse; - })(); - - v1.GenesisState = (function() { + Object.defineProperty(Query.prototype.clientParams = function clientParams(request, callback) { + return this.rpcCall(clientParams, $root.ibc.core.client.v1.QueryClientParamsRequest, $root.ibc.core.client.v1.QueryClientParamsResponse, request, callback); + }, "name", { value: "ClientParams" }); /** - * Properties of a GenesisState. - * @memberof ibc.core.client.v1 - * @interface IGenesisState - * @property {Array.|null} [clients] GenesisState clients - * @property {Array.|null} [clients_consensus] GenesisState clients_consensus - * @property {Array.|null} [clients_metadata] GenesisState clients_metadata - * @property {ibc.core.client.v1.IParams|null} [params] GenesisState params - * @property {boolean|null} [create_localhost] GenesisState create_localhost - * @property {Long|null} [next_client_sequence] GenesisState next_client_sequence + * Calls ClientParams. + * @function clientParams + * @memberof ibc.core.client.v1.Query + * @instance + * @param {ibc.core.client.v1.IQueryClientParamsRequest} request QueryClientParamsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ /** - * Constructs a new GenesisState. - * @memberof ibc.core.client.v1 - * @classdesc Represents a GenesisState. - * @implements IGenesisState - * @constructor - * @param {ibc.core.client.v1.IGenesisState=} [properties] Properties to set + * Callback as used by {@link ibc.core.client.v1.Query#upgradedClientState}. + * @memberof ibc.core.client.v1.Query + * @typedef UpgradedClientStateCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.core.client.v1.QueryUpgradedClientStateResponse} [response] QueryUpgradedClientStateResponse */ - function GenesisState(properties) { - this.clients = []; - this.clients_consensus = []; - this.clients_metadata = []; - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } /** - * GenesisState clients. - * @member {Array.} clients - * @memberof ibc.core.client.v1.GenesisState + * Calls UpgradedClientState. + * @function upgradedClientState + * @memberof ibc.core.client.v1.Query * @instance + * @param {ibc.core.client.v1.IQueryUpgradedClientStateRequest} request QueryUpgradedClientStateRequest message or plain object + * @param {ibc.core.client.v1.Query.UpgradedClientStateCallback} callback Node-style callback called with the error, if any, and QueryUpgradedClientStateResponse + * @returns {undefined} + * @variation 1 */ - GenesisState.prototype.clients = $util.emptyArray; + Object.defineProperty(Query.prototype.upgradedClientState = function upgradedClientState(request, callback) { + return this.rpcCall(upgradedClientState, $root.ibc.core.client.v1.QueryUpgradedClientStateRequest, $root.ibc.core.client.v1.QueryUpgradedClientStateResponse, request, callback); + }, "name", { value: "UpgradedClientState" }); /** - * GenesisState clients_consensus. - * @member {Array.} clients_consensus - * @memberof ibc.core.client.v1.GenesisState + * Calls UpgradedClientState. + * @function upgradedClientState + * @memberof ibc.core.client.v1.Query * @instance + * @param {ibc.core.client.v1.IQueryUpgradedClientStateRequest} request QueryUpgradedClientStateRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - GenesisState.prototype.clients_consensus = $util.emptyArray; /** - * GenesisState clients_metadata. - * @member {Array.} clients_metadata - * @memberof ibc.core.client.v1.GenesisState - * @instance + * Callback as used by {@link ibc.core.client.v1.Query#upgradedConsensusState}. + * @memberof ibc.core.client.v1.Query + * @typedef UpgradedConsensusStateCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.core.client.v1.QueryUpgradedConsensusStateResponse} [response] QueryUpgradedConsensusStateResponse */ - GenesisState.prototype.clients_metadata = $util.emptyArray; /** - * GenesisState params. - * @member {ibc.core.client.v1.IParams|null|undefined} params - * @memberof ibc.core.client.v1.GenesisState + * Calls UpgradedConsensusState. + * @function upgradedConsensusState + * @memberof ibc.core.client.v1.Query * @instance + * @param {ibc.core.client.v1.IQueryUpgradedConsensusStateRequest} request QueryUpgradedConsensusStateRequest message or plain object + * @param {ibc.core.client.v1.Query.UpgradedConsensusStateCallback} callback Node-style callback called with the error, if any, and QueryUpgradedConsensusStateResponse + * @returns {undefined} + * @variation 1 */ - GenesisState.prototype.params = null; + Object.defineProperty(Query.prototype.upgradedConsensusState = function upgradedConsensusState(request, callback) { + return this.rpcCall(upgradedConsensusState, $root.ibc.core.client.v1.QueryUpgradedConsensusStateRequest, $root.ibc.core.client.v1.QueryUpgradedConsensusStateResponse, request, callback); + }, "name", { value: "UpgradedConsensusState" }); /** - * GenesisState create_localhost. - * @member {boolean} create_localhost - * @memberof ibc.core.client.v1.GenesisState + * Calls UpgradedConsensusState. + * @function upgradedConsensusState + * @memberof ibc.core.client.v1.Query * @instance + * @param {ibc.core.client.v1.IQueryUpgradedConsensusStateRequest} request QueryUpgradedConsensusStateRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - GenesisState.prototype.create_localhost = false; + + return Query; + })(); + + v1.QueryClientStateRequest = (function() { /** - * GenesisState next_client_sequence. - * @member {Long} next_client_sequence - * @memberof ibc.core.client.v1.GenesisState + * Properties of a QueryClientStateRequest. + * @memberof ibc.core.client.v1 + * @interface IQueryClientStateRequest + * @property {string|null} [client_id] QueryClientStateRequest client_id + */ + + /** + * Constructs a new QueryClientStateRequest. + * @memberof ibc.core.client.v1 + * @classdesc Represents a QueryClientStateRequest. + * @implements IQueryClientStateRequest + * @constructor + * @param {ibc.core.client.v1.IQueryClientStateRequest=} [properties] Properties to set + */ + function QueryClientStateRequest(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * QueryClientStateRequest client_id. + * @member {string} client_id + * @memberof ibc.core.client.v1.QueryClientStateRequest * @instance */ - GenesisState.prototype.next_client_sequence = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + QueryClientStateRequest.prototype.client_id = ""; /** - * Encodes the specified GenesisState message. Does not implicitly {@link ibc.core.client.v1.GenesisState.verify|verify} messages. + * Encodes the specified QueryClientStateRequest message. Does not implicitly {@link ibc.core.client.v1.QueryClientStateRequest.verify|verify} messages. * @function encode - * @memberof ibc.core.client.v1.GenesisState + * @memberof ibc.core.client.v1.QueryClientStateRequest * @static - * @param {ibc.core.client.v1.IGenesisState} message GenesisState message or plain object to encode + * @param {ibc.core.client.v1.IQueryClientStateRequest} message QueryClientStateRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GenesisState.encode = function encode(message, writer) { + QueryClientStateRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.clients != null && message.clients.length) - for (let i = 0; i < message.clients.length; ++i) - $root.ibc.core.client.v1.IdentifiedClientState.encode(message.clients[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.clients_consensus != null && message.clients_consensus.length) - for (let i = 0; i < message.clients_consensus.length; ++i) - $root.ibc.core.client.v1.ClientConsensusStates.encode(message.clients_consensus[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.clients_metadata != null && message.clients_metadata.length) - for (let i = 0; i < message.clients_metadata.length; ++i) - $root.ibc.core.client.v1.IdentifiedGenesisMetadata.encode(message.clients_metadata[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.params != null && Object.hasOwnProperty.call(message, "params")) - $root.ibc.core.client.v1.Params.encode(message.params, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.create_localhost != null && Object.hasOwnProperty.call(message, "create_localhost")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.create_localhost); - if (message.next_client_sequence != null && Object.hasOwnProperty.call(message, "next_client_sequence")) - writer.uint32(/* id 6, wireType 0 =*/48).uint64(message.next_client_sequence); + if (message.client_id != null && Object.hasOwnProperty.call(message, "client_id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.client_id); return writer; }; /** - * Encodes the specified GenesisState message, length delimited. Does not implicitly {@link ibc.core.client.v1.GenesisState.verify|verify} messages. + * Encodes the specified QueryClientStateRequest message, length delimited. Does not implicitly {@link ibc.core.client.v1.QueryClientStateRequest.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.client.v1.GenesisState + * @memberof ibc.core.client.v1.QueryClientStateRequest * @static - * @param {ibc.core.client.v1.IGenesisState} message GenesisState message or plain object to encode + * @param {ibc.core.client.v1.IQueryClientStateRequest} message QueryClientStateRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GenesisState.encodeDelimited = function encodeDelimited(message, writer) { + QueryClientStateRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GenesisState message from the specified reader or buffer. + * Decodes a QueryClientStateRequest message from the specified reader or buffer. * @function decode - * @memberof ibc.core.client.v1.GenesisState + * @memberof ibc.core.client.v1.QueryClientStateRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.client.v1.GenesisState} GenesisState + * @returns {ibc.core.client.v1.QueryClientStateRequest} QueryClientStateRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GenesisState.decode = function decode(reader, length) { + QueryClientStateRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.GenesisState(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.QueryClientStateRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.clients && message.clients.length)) - message.clients = []; - message.clients.push($root.ibc.core.client.v1.IdentifiedClientState.decode(reader, reader.uint32())); - break; - case 2: - if (!(message.clients_consensus && message.clients_consensus.length)) - message.clients_consensus = []; - message.clients_consensus.push($root.ibc.core.client.v1.ClientConsensusStates.decode(reader, reader.uint32())); - break; - case 3: - if (!(message.clients_metadata && message.clients_metadata.length)) - message.clients_metadata = []; - message.clients_metadata.push($root.ibc.core.client.v1.IdentifiedGenesisMetadata.decode(reader, reader.uint32())); - break; - case 4: - message.params = $root.ibc.core.client.v1.Params.decode(reader, reader.uint32()); - break; - case 5: - message.create_localhost = reader.bool(); - break; - case 6: - message.next_client_sequence = reader.uint64(); + message.client_id = reader.string(); break; default: reader.skipType(tag & 7); @@ -55794,221 +62681,109 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a GenesisState message from the specified reader or buffer, length delimited. + * Decodes a QueryClientStateRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.client.v1.GenesisState + * @memberof ibc.core.client.v1.QueryClientStateRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.client.v1.GenesisState} GenesisState + * @returns {ibc.core.client.v1.QueryClientStateRequest} QueryClientStateRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GenesisState.decodeDelimited = function decodeDelimited(reader) { + QueryClientStateRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; - /** - * Verifies a GenesisState message. - * @function verify - * @memberof ibc.core.client.v1.GenesisState - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GenesisState.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.clients != null && message.hasOwnProperty("clients")) { - if (!Array.isArray(message.clients)) - return "clients: array expected"; - for (let i = 0; i < message.clients.length; ++i) { - let error = $root.ibc.core.client.v1.IdentifiedClientState.verify(message.clients[i]); - if (error) - return "clients." + error; - } - } - if (message.clients_consensus != null && message.hasOwnProperty("clients_consensus")) { - if (!Array.isArray(message.clients_consensus)) - return "clients_consensus: array expected"; - for (let i = 0; i < message.clients_consensus.length; ++i) { - let error = $root.ibc.core.client.v1.ClientConsensusStates.verify(message.clients_consensus[i]); - if (error) - return "clients_consensus." + error; - } - } - if (message.clients_metadata != null && message.hasOwnProperty("clients_metadata")) { - if (!Array.isArray(message.clients_metadata)) - return "clients_metadata: array expected"; - for (let i = 0; i < message.clients_metadata.length; ++i) { - let error = $root.ibc.core.client.v1.IdentifiedGenesisMetadata.verify(message.clients_metadata[i]); - if (error) - return "clients_metadata." + error; - } - } - if (message.params != null && message.hasOwnProperty("params")) { - let error = $root.ibc.core.client.v1.Params.verify(message.params); - if (error) - return "params." + error; - } - if (message.create_localhost != null && message.hasOwnProperty("create_localhost")) - if (typeof message.create_localhost !== "boolean") - return "create_localhost: boolean expected"; - if (message.next_client_sequence != null && message.hasOwnProperty("next_client_sequence")) - if (!$util.isInteger(message.next_client_sequence) && !(message.next_client_sequence && $util.isInteger(message.next_client_sequence.low) && $util.isInteger(message.next_client_sequence.high))) - return "next_client_sequence: integer|Long expected"; + /** + * Verifies a QueryClientStateRequest message. + * @function verify + * @memberof ibc.core.client.v1.QueryClientStateRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + QueryClientStateRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.client_id != null && message.hasOwnProperty("client_id")) + if (!$util.isString(message.client_id)) + return "client_id: string expected"; return null; }; /** - * Creates a GenesisState message from a plain object. Also converts values to their respective internal types. + * Creates a QueryClientStateRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.client.v1.GenesisState + * @memberof ibc.core.client.v1.QueryClientStateRequest * @static * @param {Object.} object Plain object - * @returns {ibc.core.client.v1.GenesisState} GenesisState + * @returns {ibc.core.client.v1.QueryClientStateRequest} QueryClientStateRequest */ - GenesisState.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.client.v1.GenesisState) + QueryClientStateRequest.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.client.v1.QueryClientStateRequest) return object; - let message = new $root.ibc.core.client.v1.GenesisState(); - if (object.clients) { - if (!Array.isArray(object.clients)) - throw TypeError(".ibc.core.client.v1.GenesisState.clients: array expected"); - message.clients = []; - for (let i = 0; i < object.clients.length; ++i) { - if (typeof object.clients[i] !== "object") - throw TypeError(".ibc.core.client.v1.GenesisState.clients: object expected"); - message.clients[i] = $root.ibc.core.client.v1.IdentifiedClientState.fromObject(object.clients[i]); - } - } - if (object.clients_consensus) { - if (!Array.isArray(object.clients_consensus)) - throw TypeError(".ibc.core.client.v1.GenesisState.clients_consensus: array expected"); - message.clients_consensus = []; - for (let i = 0; i < object.clients_consensus.length; ++i) { - if (typeof object.clients_consensus[i] !== "object") - throw TypeError(".ibc.core.client.v1.GenesisState.clients_consensus: object expected"); - message.clients_consensus[i] = $root.ibc.core.client.v1.ClientConsensusStates.fromObject(object.clients_consensus[i]); - } - } - if (object.clients_metadata) { - if (!Array.isArray(object.clients_metadata)) - throw TypeError(".ibc.core.client.v1.GenesisState.clients_metadata: array expected"); - message.clients_metadata = []; - for (let i = 0; i < object.clients_metadata.length; ++i) { - if (typeof object.clients_metadata[i] !== "object") - throw TypeError(".ibc.core.client.v1.GenesisState.clients_metadata: object expected"); - message.clients_metadata[i] = $root.ibc.core.client.v1.IdentifiedGenesisMetadata.fromObject(object.clients_metadata[i]); - } - } - if (object.params != null) { - if (typeof object.params !== "object") - throw TypeError(".ibc.core.client.v1.GenesisState.params: object expected"); - message.params = $root.ibc.core.client.v1.Params.fromObject(object.params); - } - if (object.create_localhost != null) - message.create_localhost = Boolean(object.create_localhost); - if (object.next_client_sequence != null) - if ($util.Long) - (message.next_client_sequence = $util.Long.fromValue(object.next_client_sequence)).unsigned = true; - else if (typeof object.next_client_sequence === "string") - message.next_client_sequence = parseInt(object.next_client_sequence, 10); - else if (typeof object.next_client_sequence === "number") - message.next_client_sequence = object.next_client_sequence; - else if (typeof object.next_client_sequence === "object") - message.next_client_sequence = new $util.LongBits(object.next_client_sequence.low >>> 0, object.next_client_sequence.high >>> 0).toNumber(true); + let message = new $root.ibc.core.client.v1.QueryClientStateRequest(); + if (object.client_id != null) + message.client_id = String(object.client_id); return message; }; /** - * Creates a plain object from a GenesisState message. Also converts values to other types if specified. + * Creates a plain object from a QueryClientStateRequest message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.client.v1.GenesisState + * @memberof ibc.core.client.v1.QueryClientStateRequest * @static - * @param {ibc.core.client.v1.GenesisState} message GenesisState + * @param {ibc.core.client.v1.QueryClientStateRequest} message QueryClientStateRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GenesisState.toObject = function toObject(message, options) { + QueryClientStateRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) { - object.clients = []; - object.clients_consensus = []; - object.clients_metadata = []; - } - if (options.defaults) { - object.params = null; - object.create_localhost = false; - if ($util.Long) { - let long = new $util.Long(0, 0, true); - object.next_client_sequence = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.next_client_sequence = options.longs === String ? "0" : 0; - } - if (message.clients && message.clients.length) { - object.clients = []; - for (let j = 0; j < message.clients.length; ++j) - object.clients[j] = $root.ibc.core.client.v1.IdentifiedClientState.toObject(message.clients[j], options); - } - if (message.clients_consensus && message.clients_consensus.length) { - object.clients_consensus = []; - for (let j = 0; j < message.clients_consensus.length; ++j) - object.clients_consensus[j] = $root.ibc.core.client.v1.ClientConsensusStates.toObject(message.clients_consensus[j], options); - } - if (message.clients_metadata && message.clients_metadata.length) { - object.clients_metadata = []; - for (let j = 0; j < message.clients_metadata.length; ++j) - object.clients_metadata[j] = $root.ibc.core.client.v1.IdentifiedGenesisMetadata.toObject(message.clients_metadata[j], options); - } - if (message.params != null && message.hasOwnProperty("params")) - object.params = $root.ibc.core.client.v1.Params.toObject(message.params, options); - if (message.create_localhost != null && message.hasOwnProperty("create_localhost")) - object.create_localhost = message.create_localhost; - if (message.next_client_sequence != null && message.hasOwnProperty("next_client_sequence")) - if (typeof message.next_client_sequence === "number") - object.next_client_sequence = options.longs === String ? String(message.next_client_sequence) : message.next_client_sequence; - else - object.next_client_sequence = options.longs === String ? $util.Long.prototype.toString.call(message.next_client_sequence) : options.longs === Number ? new $util.LongBits(message.next_client_sequence.low >>> 0, message.next_client_sequence.high >>> 0).toNumber(true) : message.next_client_sequence; + if (options.defaults) + object.client_id = ""; + if (message.client_id != null && message.hasOwnProperty("client_id")) + object.client_id = message.client_id; return object; }; /** - * Converts this GenesisState to JSON. + * Converts this QueryClientStateRequest to JSON. * @function toJSON - * @memberof ibc.core.client.v1.GenesisState + * @memberof ibc.core.client.v1.QueryClientStateRequest * @instance * @returns {Object.} JSON object */ - GenesisState.prototype.toJSON = function toJSON() { + QueryClientStateRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GenesisState; + return QueryClientStateRequest; })(); - v1.GenesisMetadata = (function() { + v1.QueryClientStateResponse = (function() { /** - * Properties of a GenesisMetadata. + * Properties of a QueryClientStateResponse. * @memberof ibc.core.client.v1 - * @interface IGenesisMetadata - * @property {Uint8Array|null} [key] GenesisMetadata key - * @property {Uint8Array|null} [value] GenesisMetadata value + * @interface IQueryClientStateResponse + * @property {google.protobuf.IAny|null} [client_state] QueryClientStateResponse client_state + * @property {Uint8Array|null} [proof] QueryClientStateResponse proof + * @property {ibc.core.client.v1.IHeight|null} [proof_height] QueryClientStateResponse proof_height */ /** - * Constructs a new GenesisMetadata. + * Constructs a new QueryClientStateResponse. * @memberof ibc.core.client.v1 - * @classdesc Represents a GenesisMetadata. - * @implements IGenesisMetadata + * @classdesc Represents a QueryClientStateResponse. + * @implements IQueryClientStateResponse * @constructor - * @param {ibc.core.client.v1.IGenesisMetadata=} [properties] Properties to set + * @param {ibc.core.client.v1.IQueryClientStateResponse=} [properties] Properties to set */ - function GenesisMetadata(properties) { + function QueryClientStateResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -56016,76 +62791,89 @@ export const ibc = $root.ibc = (() => { } /** - * GenesisMetadata key. - * @member {Uint8Array} key - * @memberof ibc.core.client.v1.GenesisMetadata + * QueryClientStateResponse client_state. + * @member {google.protobuf.IAny|null|undefined} client_state + * @memberof ibc.core.client.v1.QueryClientStateResponse * @instance */ - GenesisMetadata.prototype.key = $util.newBuffer([]); + QueryClientStateResponse.prototype.client_state = null; /** - * GenesisMetadata value. - * @member {Uint8Array} value - * @memberof ibc.core.client.v1.GenesisMetadata + * QueryClientStateResponse proof. + * @member {Uint8Array} proof + * @memberof ibc.core.client.v1.QueryClientStateResponse * @instance */ - GenesisMetadata.prototype.value = $util.newBuffer([]); + QueryClientStateResponse.prototype.proof = $util.newBuffer([]); /** - * Encodes the specified GenesisMetadata message. Does not implicitly {@link ibc.core.client.v1.GenesisMetadata.verify|verify} messages. + * QueryClientStateResponse proof_height. + * @member {ibc.core.client.v1.IHeight|null|undefined} proof_height + * @memberof ibc.core.client.v1.QueryClientStateResponse + * @instance + */ + QueryClientStateResponse.prototype.proof_height = null; + + /** + * Encodes the specified QueryClientStateResponse message. Does not implicitly {@link ibc.core.client.v1.QueryClientStateResponse.verify|verify} messages. * @function encode - * @memberof ibc.core.client.v1.GenesisMetadata + * @memberof ibc.core.client.v1.QueryClientStateResponse * @static - * @param {ibc.core.client.v1.IGenesisMetadata} message GenesisMetadata message or plain object to encode + * @param {ibc.core.client.v1.IQueryClientStateResponse} message QueryClientStateResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GenesisMetadata.encode = function encode(message, writer) { + QueryClientStateResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.key != null && Object.hasOwnProperty.call(message, "key")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.key); - if (message.value != null && Object.hasOwnProperty.call(message, "value")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.value); + if (message.client_state != null && Object.hasOwnProperty.call(message, "client_state")) + $root.google.protobuf.Any.encode(message.client_state, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.proof != null && Object.hasOwnProperty.call(message, "proof")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.proof); + if (message.proof_height != null && Object.hasOwnProperty.call(message, "proof_height")) + $root.ibc.core.client.v1.Height.encode(message.proof_height, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified GenesisMetadata message, length delimited. Does not implicitly {@link ibc.core.client.v1.GenesisMetadata.verify|verify} messages. + * Encodes the specified QueryClientStateResponse message, length delimited. Does not implicitly {@link ibc.core.client.v1.QueryClientStateResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.client.v1.GenesisMetadata + * @memberof ibc.core.client.v1.QueryClientStateResponse * @static - * @param {ibc.core.client.v1.IGenesisMetadata} message GenesisMetadata message or plain object to encode + * @param {ibc.core.client.v1.IQueryClientStateResponse} message QueryClientStateResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GenesisMetadata.encodeDelimited = function encodeDelimited(message, writer) { + QueryClientStateResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GenesisMetadata message from the specified reader or buffer. + * Decodes a QueryClientStateResponse message from the specified reader or buffer. * @function decode - * @memberof ibc.core.client.v1.GenesisMetadata + * @memberof ibc.core.client.v1.QueryClientStateResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.client.v1.GenesisMetadata} GenesisMetadata + * @returns {ibc.core.client.v1.QueryClientStateResponse} QueryClientStateResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GenesisMetadata.decode = function decode(reader, length) { + QueryClientStateResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.GenesisMetadata(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.QueryClientStateResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.key = reader.bytes(); + message.client_state = $root.google.protobuf.Any.decode(reader, reader.uint32()); break; case 2: - message.value = reader.bytes(); + message.proof = reader.bytes(); + break; + case 3: + message.proof_height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -56096,136 +62884,143 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a GenesisMetadata message from the specified reader or buffer, length delimited. + * Decodes a QueryClientStateResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.client.v1.GenesisMetadata + * @memberof ibc.core.client.v1.QueryClientStateResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.client.v1.GenesisMetadata} GenesisMetadata + * @returns {ibc.core.client.v1.QueryClientStateResponse} QueryClientStateResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GenesisMetadata.decodeDelimited = function decodeDelimited(reader) { + QueryClientStateResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GenesisMetadata message. + * Verifies a QueryClientStateResponse message. * @function verify - * @memberof ibc.core.client.v1.GenesisMetadata + * @memberof ibc.core.client.v1.QueryClientStateResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GenesisMetadata.verify = function verify(message) { + QueryClientStateResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.key != null && message.hasOwnProperty("key")) - if (!(message.key && typeof message.key.length === "number" || $util.isString(message.key))) - return "key: buffer expected"; - if (message.value != null && message.hasOwnProperty("value")) - if (!(message.value && typeof message.value.length === "number" || $util.isString(message.value))) - return "value: buffer expected"; + if (message.client_state != null && message.hasOwnProperty("client_state")) { + let error = $root.google.protobuf.Any.verify(message.client_state); + if (error) + return "client_state." + error; + } + if (message.proof != null && message.hasOwnProperty("proof")) + if (!(message.proof && typeof message.proof.length === "number" || $util.isString(message.proof))) + return "proof: buffer expected"; + if (message.proof_height != null && message.hasOwnProperty("proof_height")) { + let error = $root.ibc.core.client.v1.Height.verify(message.proof_height); + if (error) + return "proof_height." + error; + } return null; }; /** - * Creates a GenesisMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a QueryClientStateResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.client.v1.GenesisMetadata + * @memberof ibc.core.client.v1.QueryClientStateResponse * @static * @param {Object.} object Plain object - * @returns {ibc.core.client.v1.GenesisMetadata} GenesisMetadata + * @returns {ibc.core.client.v1.QueryClientStateResponse} QueryClientStateResponse */ - GenesisMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.client.v1.GenesisMetadata) + QueryClientStateResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.client.v1.QueryClientStateResponse) return object; - let message = new $root.ibc.core.client.v1.GenesisMetadata(); - if (object.key != null) - if (typeof object.key === "string") - $util.base64.decode(object.key, message.key = $util.newBuffer($util.base64.length(object.key)), 0); - else if (object.key.length) - message.key = object.key; - if (object.value != null) - if (typeof object.value === "string") - $util.base64.decode(object.value, message.value = $util.newBuffer($util.base64.length(object.value)), 0); - else if (object.value.length) - message.value = object.value; + let message = new $root.ibc.core.client.v1.QueryClientStateResponse(); + if (object.client_state != null) { + if (typeof object.client_state !== "object") + throw TypeError(".ibc.core.client.v1.QueryClientStateResponse.client_state: object expected"); + message.client_state = $root.google.protobuf.Any.fromObject(object.client_state); + } + if (object.proof != null) + if (typeof object.proof === "string") + $util.base64.decode(object.proof, message.proof = $util.newBuffer($util.base64.length(object.proof)), 0); + else if (object.proof.length) + message.proof = object.proof; + if (object.proof_height != null) { + if (typeof object.proof_height !== "object") + throw TypeError(".ibc.core.client.v1.QueryClientStateResponse.proof_height: object expected"); + message.proof_height = $root.ibc.core.client.v1.Height.fromObject(object.proof_height); + } return message; }; /** - * Creates a plain object from a GenesisMetadata message. Also converts values to other types if specified. + * Creates a plain object from a QueryClientStateResponse message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.client.v1.GenesisMetadata + * @memberof ibc.core.client.v1.QueryClientStateResponse * @static - * @param {ibc.core.client.v1.GenesisMetadata} message GenesisMetadata + * @param {ibc.core.client.v1.QueryClientStateResponse} message QueryClientStateResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GenesisMetadata.toObject = function toObject(message, options) { + QueryClientStateResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { + object.client_state = null; if (options.bytes === String) - object.key = ""; - else { - object.key = []; - if (options.bytes !== Array) - object.key = $util.newBuffer(object.key); - } - if (options.bytes === String) - object.value = ""; + object.proof = ""; else { - object.value = []; + object.proof = []; if (options.bytes !== Array) - object.value = $util.newBuffer(object.value); + object.proof = $util.newBuffer(object.proof); } + object.proof_height = null; } - if (message.key != null && message.hasOwnProperty("key")) - object.key = options.bytes === String ? $util.base64.encode(message.key, 0, message.key.length) : options.bytes === Array ? Array.prototype.slice.call(message.key) : message.key; - if (message.value != null && message.hasOwnProperty("value")) - object.value = options.bytes === String ? $util.base64.encode(message.value, 0, message.value.length) : options.bytes === Array ? Array.prototype.slice.call(message.value) : message.value; + if (message.client_state != null && message.hasOwnProperty("client_state")) + object.client_state = $root.google.protobuf.Any.toObject(message.client_state, options); + if (message.proof != null && message.hasOwnProperty("proof")) + object.proof = options.bytes === String ? $util.base64.encode(message.proof, 0, message.proof.length) : options.bytes === Array ? Array.prototype.slice.call(message.proof) : message.proof; + if (message.proof_height != null && message.hasOwnProperty("proof_height")) + object.proof_height = $root.ibc.core.client.v1.Height.toObject(message.proof_height, options); return object; }; /** - * Converts this GenesisMetadata to JSON. + * Converts this QueryClientStateResponse to JSON. * @function toJSON - * @memberof ibc.core.client.v1.GenesisMetadata + * @memberof ibc.core.client.v1.QueryClientStateResponse * @instance * @returns {Object.} JSON object */ - GenesisMetadata.prototype.toJSON = function toJSON() { + QueryClientStateResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GenesisMetadata; + return QueryClientStateResponse; })(); - v1.IdentifiedGenesisMetadata = (function() { + v1.QueryClientStatesRequest = (function() { /** - * Properties of an IdentifiedGenesisMetadata. + * Properties of a QueryClientStatesRequest. * @memberof ibc.core.client.v1 - * @interface IIdentifiedGenesisMetadata - * @property {string|null} [client_id] IdentifiedGenesisMetadata client_id - * @property {Array.|null} [client_metadata] IdentifiedGenesisMetadata client_metadata + * @interface IQueryClientStatesRequest + * @property {cosmos.base.query.v1beta1.IPageRequest|null} [pagination] QueryClientStatesRequest pagination */ /** - * Constructs a new IdentifiedGenesisMetadata. + * Constructs a new QueryClientStatesRequest. * @memberof ibc.core.client.v1 - * @classdesc Represents an IdentifiedGenesisMetadata. - * @implements IIdentifiedGenesisMetadata + * @classdesc Represents a QueryClientStatesRequest. + * @implements IQueryClientStatesRequest * @constructor - * @param {ibc.core.client.v1.IIdentifiedGenesisMetadata=} [properties] Properties to set + * @param {ibc.core.client.v1.IQueryClientStatesRequest=} [properties] Properties to set */ - function IdentifiedGenesisMetadata(properties) { - this.client_metadata = []; + function QueryClientStatesRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -56233,79 +63028,63 @@ export const ibc = $root.ibc = (() => { } /** - * IdentifiedGenesisMetadata client_id. - * @member {string} client_id - * @memberof ibc.core.client.v1.IdentifiedGenesisMetadata - * @instance - */ - IdentifiedGenesisMetadata.prototype.client_id = ""; - - /** - * IdentifiedGenesisMetadata client_metadata. - * @member {Array.} client_metadata - * @memberof ibc.core.client.v1.IdentifiedGenesisMetadata + * QueryClientStatesRequest pagination. + * @member {cosmos.base.query.v1beta1.IPageRequest|null|undefined} pagination + * @memberof ibc.core.client.v1.QueryClientStatesRequest * @instance */ - IdentifiedGenesisMetadata.prototype.client_metadata = $util.emptyArray; + QueryClientStatesRequest.prototype.pagination = null; /** - * Encodes the specified IdentifiedGenesisMetadata message. Does not implicitly {@link ibc.core.client.v1.IdentifiedGenesisMetadata.verify|verify} messages. + * Encodes the specified QueryClientStatesRequest message. Does not implicitly {@link ibc.core.client.v1.QueryClientStatesRequest.verify|verify} messages. * @function encode - * @memberof ibc.core.client.v1.IdentifiedGenesisMetadata + * @memberof ibc.core.client.v1.QueryClientStatesRequest * @static - * @param {ibc.core.client.v1.IIdentifiedGenesisMetadata} message IdentifiedGenesisMetadata message or plain object to encode + * @param {ibc.core.client.v1.IQueryClientStatesRequest} message QueryClientStatesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - IdentifiedGenesisMetadata.encode = function encode(message, writer) { + QueryClientStatesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.client_id != null && Object.hasOwnProperty.call(message, "client_id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.client_id); - if (message.client_metadata != null && message.client_metadata.length) - for (let i = 0; i < message.client_metadata.length; ++i) - $root.ibc.core.client.v1.GenesisMetadata.encode(message.client_metadata[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.pagination != null && Object.hasOwnProperty.call(message, "pagination")) + $root.cosmos.base.query.v1beta1.PageRequest.encode(message.pagination, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified IdentifiedGenesisMetadata message, length delimited. Does not implicitly {@link ibc.core.client.v1.IdentifiedGenesisMetadata.verify|verify} messages. + * Encodes the specified QueryClientStatesRequest message, length delimited. Does not implicitly {@link ibc.core.client.v1.QueryClientStatesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.client.v1.IdentifiedGenesisMetadata + * @memberof ibc.core.client.v1.QueryClientStatesRequest * @static - * @param {ibc.core.client.v1.IIdentifiedGenesisMetadata} message IdentifiedGenesisMetadata message or plain object to encode + * @param {ibc.core.client.v1.IQueryClientStatesRequest} message QueryClientStatesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - IdentifiedGenesisMetadata.encodeDelimited = function encodeDelimited(message, writer) { + QueryClientStatesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an IdentifiedGenesisMetadata message from the specified reader or buffer. + * Decodes a QueryClientStatesRequest message from the specified reader or buffer. * @function decode - * @memberof ibc.core.client.v1.IdentifiedGenesisMetadata + * @memberof ibc.core.client.v1.QueryClientStatesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.client.v1.IdentifiedGenesisMetadata} IdentifiedGenesisMetadata + * @returns {ibc.core.client.v1.QueryClientStatesRequest} QueryClientStatesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - IdentifiedGenesisMetadata.decode = function decode(reader, length) { + QueryClientStatesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.IdentifiedGenesisMetadata(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.QueryClientStatesRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.client_id = reader.string(); - break; - case 2: - if (!(message.client_metadata && message.client_metadata.length)) - message.client_metadata = []; - message.client_metadata.push($root.ibc.core.client.v1.GenesisMetadata.decode(reader, reader.uint32())); + message.pagination = $root.cosmos.base.query.v1beta1.PageRequest.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -56316,157 +63095,114 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes an IdentifiedGenesisMetadata message from the specified reader or buffer, length delimited. + * Decodes a QueryClientStatesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.client.v1.IdentifiedGenesisMetadata + * @memberof ibc.core.client.v1.QueryClientStatesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.client.v1.IdentifiedGenesisMetadata} IdentifiedGenesisMetadata + * @returns {ibc.core.client.v1.QueryClientStatesRequest} QueryClientStatesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - IdentifiedGenesisMetadata.decodeDelimited = function decodeDelimited(reader) { + QueryClientStatesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an IdentifiedGenesisMetadata message. + * Verifies a QueryClientStatesRequest message. * @function verify - * @memberof ibc.core.client.v1.IdentifiedGenesisMetadata + * @memberof ibc.core.client.v1.QueryClientStatesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - IdentifiedGenesisMetadata.verify = function verify(message) { + QueryClientStatesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.client_id != null && message.hasOwnProperty("client_id")) - if (!$util.isString(message.client_id)) - return "client_id: string expected"; - if (message.client_metadata != null && message.hasOwnProperty("client_metadata")) { - if (!Array.isArray(message.client_metadata)) - return "client_metadata: array expected"; - for (let i = 0; i < message.client_metadata.length; ++i) { - let error = $root.ibc.core.client.v1.GenesisMetadata.verify(message.client_metadata[i]); - if (error) - return "client_metadata." + error; - } + if (message.pagination != null && message.hasOwnProperty("pagination")) { + let error = $root.cosmos.base.query.v1beta1.PageRequest.verify(message.pagination); + if (error) + return "pagination." + error; } return null; }; /** - * Creates an IdentifiedGenesisMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a QueryClientStatesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.client.v1.IdentifiedGenesisMetadata + * @memberof ibc.core.client.v1.QueryClientStatesRequest * @static * @param {Object.} object Plain object - * @returns {ibc.core.client.v1.IdentifiedGenesisMetadata} IdentifiedGenesisMetadata + * @returns {ibc.core.client.v1.QueryClientStatesRequest} QueryClientStatesRequest */ - IdentifiedGenesisMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.client.v1.IdentifiedGenesisMetadata) + QueryClientStatesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.client.v1.QueryClientStatesRequest) return object; - let message = new $root.ibc.core.client.v1.IdentifiedGenesisMetadata(); - if (object.client_id != null) - message.client_id = String(object.client_id); - if (object.client_metadata) { - if (!Array.isArray(object.client_metadata)) - throw TypeError(".ibc.core.client.v1.IdentifiedGenesisMetadata.client_metadata: array expected"); - message.client_metadata = []; - for (let i = 0; i < object.client_metadata.length; ++i) { - if (typeof object.client_metadata[i] !== "object") - throw TypeError(".ibc.core.client.v1.IdentifiedGenesisMetadata.client_metadata: object expected"); - message.client_metadata[i] = $root.ibc.core.client.v1.GenesisMetadata.fromObject(object.client_metadata[i]); - } + let message = new $root.ibc.core.client.v1.QueryClientStatesRequest(); + if (object.pagination != null) { + if (typeof object.pagination !== "object") + throw TypeError(".ibc.core.client.v1.QueryClientStatesRequest.pagination: object expected"); + message.pagination = $root.cosmos.base.query.v1beta1.PageRequest.fromObject(object.pagination); } return message; }; /** - * Creates a plain object from an IdentifiedGenesisMetadata message. Also converts values to other types if specified. + * Creates a plain object from a QueryClientStatesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.client.v1.IdentifiedGenesisMetadata + * @memberof ibc.core.client.v1.QueryClientStatesRequest * @static - * @param {ibc.core.client.v1.IdentifiedGenesisMetadata} message IdentifiedGenesisMetadata + * @param {ibc.core.client.v1.QueryClientStatesRequest} message QueryClientStatesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - IdentifiedGenesisMetadata.toObject = function toObject(message, options) { + QueryClientStatesRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.client_metadata = []; if (options.defaults) - object.client_id = ""; - if (message.client_id != null && message.hasOwnProperty("client_id")) - object.client_id = message.client_id; - if (message.client_metadata && message.client_metadata.length) { - object.client_metadata = []; - for (let j = 0; j < message.client_metadata.length; ++j) - object.client_metadata[j] = $root.ibc.core.client.v1.GenesisMetadata.toObject(message.client_metadata[j], options); - } - return object; - }; - - /** - * Converts this IdentifiedGenesisMetadata to JSON. - * @function toJSON - * @memberof ibc.core.client.v1.IdentifiedGenesisMetadata - * @instance - * @returns {Object.} JSON object - */ - IdentifiedGenesisMetadata.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return IdentifiedGenesisMetadata; - })(); - - return v1; - })(); - - return client; - })(); - - core.commitment = (function() { - - /** - * Namespace commitment. - * @memberof ibc.core - * @namespace - */ - const commitment = {}; + object.pagination = null; + if (message.pagination != null && message.hasOwnProperty("pagination")) + object.pagination = $root.cosmos.base.query.v1beta1.PageRequest.toObject(message.pagination, options); + return object; + }; - commitment.v1 = (function() { + /** + * Converts this QueryClientStatesRequest to JSON. + * @function toJSON + * @memberof ibc.core.client.v1.QueryClientStatesRequest + * @instance + * @returns {Object.} JSON object + */ + QueryClientStatesRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Namespace v1. - * @memberof ibc.core.commitment - * @namespace - */ - const v1 = {}; + return QueryClientStatesRequest; + })(); - v1.MerkleRoot = (function() { + v1.QueryClientStatesResponse = (function() { /** - * Properties of a MerkleRoot. - * @memberof ibc.core.commitment.v1 - * @interface IMerkleRoot - * @property {Uint8Array|null} [hash] MerkleRoot hash + * Properties of a QueryClientStatesResponse. + * @memberof ibc.core.client.v1 + * @interface IQueryClientStatesResponse + * @property {Array.|null} [client_states] QueryClientStatesResponse client_states + * @property {cosmos.base.query.v1beta1.IPageResponse|null} [pagination] QueryClientStatesResponse pagination */ /** - * Constructs a new MerkleRoot. - * @memberof ibc.core.commitment.v1 - * @classdesc Represents a MerkleRoot. - * @implements IMerkleRoot + * Constructs a new QueryClientStatesResponse. + * @memberof ibc.core.client.v1 + * @classdesc Represents a QueryClientStatesResponse. + * @implements IQueryClientStatesResponse * @constructor - * @param {ibc.core.commitment.v1.IMerkleRoot=} [properties] Properties to set + * @param {ibc.core.client.v1.IQueryClientStatesResponse=} [properties] Properties to set */ - function MerkleRoot(properties) { + function QueryClientStatesResponse(properties) { + this.client_states = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -56474,63 +63210,79 @@ export const ibc = $root.ibc = (() => { } /** - * MerkleRoot hash. - * @member {Uint8Array} hash - * @memberof ibc.core.commitment.v1.MerkleRoot + * QueryClientStatesResponse client_states. + * @member {Array.} client_states + * @memberof ibc.core.client.v1.QueryClientStatesResponse * @instance */ - MerkleRoot.prototype.hash = $util.newBuffer([]); + QueryClientStatesResponse.prototype.client_states = $util.emptyArray; /** - * Encodes the specified MerkleRoot message. Does not implicitly {@link ibc.core.commitment.v1.MerkleRoot.verify|verify} messages. + * QueryClientStatesResponse pagination. + * @member {cosmos.base.query.v1beta1.IPageResponse|null|undefined} pagination + * @memberof ibc.core.client.v1.QueryClientStatesResponse + * @instance + */ + QueryClientStatesResponse.prototype.pagination = null; + + /** + * Encodes the specified QueryClientStatesResponse message. Does not implicitly {@link ibc.core.client.v1.QueryClientStatesResponse.verify|verify} messages. * @function encode - * @memberof ibc.core.commitment.v1.MerkleRoot + * @memberof ibc.core.client.v1.QueryClientStatesResponse * @static - * @param {ibc.core.commitment.v1.IMerkleRoot} message MerkleRoot message or plain object to encode + * @param {ibc.core.client.v1.IQueryClientStatesResponse} message QueryClientStatesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MerkleRoot.encode = function encode(message, writer) { + QueryClientStatesResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.hash != null && Object.hasOwnProperty.call(message, "hash")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.hash); + if (message.client_states != null && message.client_states.length) + for (let i = 0; i < message.client_states.length; ++i) + $root.ibc.core.client.v1.IdentifiedClientState.encode(message.client_states[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.pagination != null && Object.hasOwnProperty.call(message, "pagination")) + $root.cosmos.base.query.v1beta1.PageResponse.encode(message.pagination, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified MerkleRoot message, length delimited. Does not implicitly {@link ibc.core.commitment.v1.MerkleRoot.verify|verify} messages. + * Encodes the specified QueryClientStatesResponse message, length delimited. Does not implicitly {@link ibc.core.client.v1.QueryClientStatesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.commitment.v1.MerkleRoot + * @memberof ibc.core.client.v1.QueryClientStatesResponse * @static - * @param {ibc.core.commitment.v1.IMerkleRoot} message MerkleRoot message or plain object to encode + * @param {ibc.core.client.v1.IQueryClientStatesResponse} message QueryClientStatesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MerkleRoot.encodeDelimited = function encodeDelimited(message, writer) { + QueryClientStatesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MerkleRoot message from the specified reader or buffer. + * Decodes a QueryClientStatesResponse message from the specified reader or buffer. * @function decode - * @memberof ibc.core.commitment.v1.MerkleRoot + * @memberof ibc.core.client.v1.QueryClientStatesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.commitment.v1.MerkleRoot} MerkleRoot + * @returns {ibc.core.client.v1.QueryClientStatesResponse} QueryClientStatesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MerkleRoot.decode = function decode(reader, length) { + QueryClientStatesResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.commitment.v1.MerkleRoot(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.QueryClientStatesResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.hash = reader.bytes(); + if (!(message.client_states && message.client_states.length)) + message.client_states = []; + message.client_states.push($root.ibc.core.client.v1.IdentifiedClientState.decode(reader, reader.uint32())); + break; + case 2: + message.pagination = $root.cosmos.base.query.v1beta1.PageResponse.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -56541,116 +63293,141 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a MerkleRoot message from the specified reader or buffer, length delimited. + * Decodes a QueryClientStatesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.commitment.v1.MerkleRoot + * @memberof ibc.core.client.v1.QueryClientStatesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.commitment.v1.MerkleRoot} MerkleRoot + * @returns {ibc.core.client.v1.QueryClientStatesResponse} QueryClientStatesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MerkleRoot.decodeDelimited = function decodeDelimited(reader) { + QueryClientStatesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MerkleRoot message. + * Verifies a QueryClientStatesResponse message. * @function verify - * @memberof ibc.core.commitment.v1.MerkleRoot + * @memberof ibc.core.client.v1.QueryClientStatesResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MerkleRoot.verify = function verify(message) { + QueryClientStatesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.hash != null && message.hasOwnProperty("hash")) - if (!(message.hash && typeof message.hash.length === "number" || $util.isString(message.hash))) - return "hash: buffer expected"; + if (message.client_states != null && message.hasOwnProperty("client_states")) { + if (!Array.isArray(message.client_states)) + return "client_states: array expected"; + for (let i = 0; i < message.client_states.length; ++i) { + let error = $root.ibc.core.client.v1.IdentifiedClientState.verify(message.client_states[i]); + if (error) + return "client_states." + error; + } + } + if (message.pagination != null && message.hasOwnProperty("pagination")) { + let error = $root.cosmos.base.query.v1beta1.PageResponse.verify(message.pagination); + if (error) + return "pagination." + error; + } return null; }; /** - * Creates a MerkleRoot message from a plain object. Also converts values to their respective internal types. + * Creates a QueryClientStatesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.commitment.v1.MerkleRoot + * @memberof ibc.core.client.v1.QueryClientStatesResponse * @static * @param {Object.} object Plain object - * @returns {ibc.core.commitment.v1.MerkleRoot} MerkleRoot + * @returns {ibc.core.client.v1.QueryClientStatesResponse} QueryClientStatesResponse */ - MerkleRoot.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.commitment.v1.MerkleRoot) + QueryClientStatesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.client.v1.QueryClientStatesResponse) return object; - let message = new $root.ibc.core.commitment.v1.MerkleRoot(); - if (object.hash != null) - if (typeof object.hash === "string") - $util.base64.decode(object.hash, message.hash = $util.newBuffer($util.base64.length(object.hash)), 0); - else if (object.hash.length) - message.hash = object.hash; + let message = new $root.ibc.core.client.v1.QueryClientStatesResponse(); + if (object.client_states) { + if (!Array.isArray(object.client_states)) + throw TypeError(".ibc.core.client.v1.QueryClientStatesResponse.client_states: array expected"); + message.client_states = []; + for (let i = 0; i < object.client_states.length; ++i) { + if (typeof object.client_states[i] !== "object") + throw TypeError(".ibc.core.client.v1.QueryClientStatesResponse.client_states: object expected"); + message.client_states[i] = $root.ibc.core.client.v1.IdentifiedClientState.fromObject(object.client_states[i]); + } + } + if (object.pagination != null) { + if (typeof object.pagination !== "object") + throw TypeError(".ibc.core.client.v1.QueryClientStatesResponse.pagination: object expected"); + message.pagination = $root.cosmos.base.query.v1beta1.PageResponse.fromObject(object.pagination); + } return message; }; /** - * Creates a plain object from a MerkleRoot message. Also converts values to other types if specified. + * Creates a plain object from a QueryClientStatesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.commitment.v1.MerkleRoot + * @memberof ibc.core.client.v1.QueryClientStatesResponse * @static - * @param {ibc.core.commitment.v1.MerkleRoot} message MerkleRoot + * @param {ibc.core.client.v1.QueryClientStatesResponse} message QueryClientStatesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MerkleRoot.toObject = function toObject(message, options) { + QueryClientStatesResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; + if (options.arrays || options.defaults) + object.client_states = []; if (options.defaults) - if (options.bytes === String) - object.hash = ""; - else { - object.hash = []; - if (options.bytes !== Array) - object.hash = $util.newBuffer(object.hash); - } - if (message.hash != null && message.hasOwnProperty("hash")) - object.hash = options.bytes === String ? $util.base64.encode(message.hash, 0, message.hash.length) : options.bytes === Array ? Array.prototype.slice.call(message.hash) : message.hash; + object.pagination = null; + if (message.client_states && message.client_states.length) { + object.client_states = []; + for (let j = 0; j < message.client_states.length; ++j) + object.client_states[j] = $root.ibc.core.client.v1.IdentifiedClientState.toObject(message.client_states[j], options); + } + if (message.pagination != null && message.hasOwnProperty("pagination")) + object.pagination = $root.cosmos.base.query.v1beta1.PageResponse.toObject(message.pagination, options); return object; }; /** - * Converts this MerkleRoot to JSON. + * Converts this QueryClientStatesResponse to JSON. * @function toJSON - * @memberof ibc.core.commitment.v1.MerkleRoot + * @memberof ibc.core.client.v1.QueryClientStatesResponse * @instance * @returns {Object.} JSON object */ - MerkleRoot.prototype.toJSON = function toJSON() { + QueryClientStatesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MerkleRoot; + return QueryClientStatesResponse; })(); - v1.MerklePrefix = (function() { + v1.QueryConsensusStateRequest = (function() { /** - * Properties of a MerklePrefix. - * @memberof ibc.core.commitment.v1 - * @interface IMerklePrefix - * @property {Uint8Array|null} [key_prefix] MerklePrefix key_prefix + * Properties of a QueryConsensusStateRequest. + * @memberof ibc.core.client.v1 + * @interface IQueryConsensusStateRequest + * @property {string|null} [client_id] QueryConsensusStateRequest client_id + * @property {Long|null} [revision_number] QueryConsensusStateRequest revision_number + * @property {Long|null} [revision_height] QueryConsensusStateRequest revision_height + * @property {boolean|null} [latest_height] QueryConsensusStateRequest latest_height */ /** - * Constructs a new MerklePrefix. - * @memberof ibc.core.commitment.v1 - * @classdesc Represents a MerklePrefix. - * @implements IMerklePrefix + * Constructs a new QueryConsensusStateRequest. + * @memberof ibc.core.client.v1 + * @classdesc Represents a QueryConsensusStateRequest. + * @implements IQueryConsensusStateRequest * @constructor - * @param {ibc.core.commitment.v1.IMerklePrefix=} [properties] Properties to set + * @param {ibc.core.client.v1.IQueryConsensusStateRequest=} [properties] Properties to set */ - function MerklePrefix(properties) { + function QueryConsensusStateRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -56658,63 +63435,102 @@ export const ibc = $root.ibc = (() => { } /** - * MerklePrefix key_prefix. - * @member {Uint8Array} key_prefix - * @memberof ibc.core.commitment.v1.MerklePrefix + * QueryConsensusStateRequest client_id. + * @member {string} client_id + * @memberof ibc.core.client.v1.QueryConsensusStateRequest * @instance */ - MerklePrefix.prototype.key_prefix = $util.newBuffer([]); + QueryConsensusStateRequest.prototype.client_id = ""; /** - * Encodes the specified MerklePrefix message. Does not implicitly {@link ibc.core.commitment.v1.MerklePrefix.verify|verify} messages. + * QueryConsensusStateRequest revision_number. + * @member {Long} revision_number + * @memberof ibc.core.client.v1.QueryConsensusStateRequest + * @instance + */ + QueryConsensusStateRequest.prototype.revision_number = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + + /** + * QueryConsensusStateRequest revision_height. + * @member {Long} revision_height + * @memberof ibc.core.client.v1.QueryConsensusStateRequest + * @instance + */ + QueryConsensusStateRequest.prototype.revision_height = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + + /** + * QueryConsensusStateRequest latest_height. + * @member {boolean} latest_height + * @memberof ibc.core.client.v1.QueryConsensusStateRequest + * @instance + */ + QueryConsensusStateRequest.prototype.latest_height = false; + + /** + * Encodes the specified QueryConsensusStateRequest message. Does not implicitly {@link ibc.core.client.v1.QueryConsensusStateRequest.verify|verify} messages. * @function encode - * @memberof ibc.core.commitment.v1.MerklePrefix + * @memberof ibc.core.client.v1.QueryConsensusStateRequest * @static - * @param {ibc.core.commitment.v1.IMerklePrefix} message MerklePrefix message or plain object to encode + * @param {ibc.core.client.v1.IQueryConsensusStateRequest} message QueryConsensusStateRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MerklePrefix.encode = function encode(message, writer) { + QueryConsensusStateRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.key_prefix != null && Object.hasOwnProperty.call(message, "key_prefix")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.key_prefix); + if (message.client_id != null && Object.hasOwnProperty.call(message, "client_id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.client_id); + if (message.revision_number != null && Object.hasOwnProperty.call(message, "revision_number")) + writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.revision_number); + if (message.revision_height != null && Object.hasOwnProperty.call(message, "revision_height")) + writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.revision_height); + if (message.latest_height != null && Object.hasOwnProperty.call(message, "latest_height")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.latest_height); return writer; }; /** - * Encodes the specified MerklePrefix message, length delimited. Does not implicitly {@link ibc.core.commitment.v1.MerklePrefix.verify|verify} messages. + * Encodes the specified QueryConsensusStateRequest message, length delimited. Does not implicitly {@link ibc.core.client.v1.QueryConsensusStateRequest.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.commitment.v1.MerklePrefix + * @memberof ibc.core.client.v1.QueryConsensusStateRequest * @static - * @param {ibc.core.commitment.v1.IMerklePrefix} message MerklePrefix message or plain object to encode + * @param {ibc.core.client.v1.IQueryConsensusStateRequest} message QueryConsensusStateRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MerklePrefix.encodeDelimited = function encodeDelimited(message, writer) { + QueryConsensusStateRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MerklePrefix message from the specified reader or buffer. + * Decodes a QueryConsensusStateRequest message from the specified reader or buffer. * @function decode - * @memberof ibc.core.commitment.v1.MerklePrefix + * @memberof ibc.core.client.v1.QueryConsensusStateRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.commitment.v1.MerklePrefix} MerklePrefix + * @returns {ibc.core.client.v1.QueryConsensusStateRequest} QueryConsensusStateRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MerklePrefix.decode = function decode(reader, length) { + QueryConsensusStateRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.commitment.v1.MerklePrefix(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.QueryConsensusStateRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.key_prefix = reader.bytes(); + message.client_id = reader.string(); + break; + case 2: + message.revision_number = reader.uint64(); + break; + case 3: + message.revision_height = reader.uint64(); + break; + case 4: + message.latest_height = reader.bool(); break; default: reader.skipType(tag & 7); @@ -56725,117 +63541,162 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a MerklePrefix message from the specified reader or buffer, length delimited. + * Decodes a QueryConsensusStateRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.commitment.v1.MerklePrefix + * @memberof ibc.core.client.v1.QueryConsensusStateRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.commitment.v1.MerklePrefix} MerklePrefix + * @returns {ibc.core.client.v1.QueryConsensusStateRequest} QueryConsensusStateRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MerklePrefix.decodeDelimited = function decodeDelimited(reader) { + QueryConsensusStateRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MerklePrefix message. + * Verifies a QueryConsensusStateRequest message. * @function verify - * @memberof ibc.core.commitment.v1.MerklePrefix + * @memberof ibc.core.client.v1.QueryConsensusStateRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MerklePrefix.verify = function verify(message) { + QueryConsensusStateRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.key_prefix != null && message.hasOwnProperty("key_prefix")) - if (!(message.key_prefix && typeof message.key_prefix.length === "number" || $util.isString(message.key_prefix))) - return "key_prefix: buffer expected"; + if (message.client_id != null && message.hasOwnProperty("client_id")) + if (!$util.isString(message.client_id)) + return "client_id: string expected"; + if (message.revision_number != null && message.hasOwnProperty("revision_number")) + if (!$util.isInteger(message.revision_number) && !(message.revision_number && $util.isInteger(message.revision_number.low) && $util.isInteger(message.revision_number.high))) + return "revision_number: integer|Long expected"; + if (message.revision_height != null && message.hasOwnProperty("revision_height")) + if (!$util.isInteger(message.revision_height) && !(message.revision_height && $util.isInteger(message.revision_height.low) && $util.isInteger(message.revision_height.high))) + return "revision_height: integer|Long expected"; + if (message.latest_height != null && message.hasOwnProperty("latest_height")) + if (typeof message.latest_height !== "boolean") + return "latest_height: boolean expected"; return null; }; /** - * Creates a MerklePrefix message from a plain object. Also converts values to their respective internal types. + * Creates a QueryConsensusStateRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.commitment.v1.MerklePrefix + * @memberof ibc.core.client.v1.QueryConsensusStateRequest * @static * @param {Object.} object Plain object - * @returns {ibc.core.commitment.v1.MerklePrefix} MerklePrefix + * @returns {ibc.core.client.v1.QueryConsensusStateRequest} QueryConsensusStateRequest */ - MerklePrefix.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.commitment.v1.MerklePrefix) + QueryConsensusStateRequest.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.client.v1.QueryConsensusStateRequest) return object; - let message = new $root.ibc.core.commitment.v1.MerklePrefix(); - if (object.key_prefix != null) - if (typeof object.key_prefix === "string") - $util.base64.decode(object.key_prefix, message.key_prefix = $util.newBuffer($util.base64.length(object.key_prefix)), 0); - else if (object.key_prefix.length) - message.key_prefix = object.key_prefix; + let message = new $root.ibc.core.client.v1.QueryConsensusStateRequest(); + if (object.client_id != null) + message.client_id = String(object.client_id); + if (object.revision_number != null) + if ($util.Long) + (message.revision_number = $util.Long.fromValue(object.revision_number)).unsigned = true; + else if (typeof object.revision_number === "string") + message.revision_number = parseInt(object.revision_number, 10); + else if (typeof object.revision_number === "number") + message.revision_number = object.revision_number; + else if (typeof object.revision_number === "object") + message.revision_number = new $util.LongBits(object.revision_number.low >>> 0, object.revision_number.high >>> 0).toNumber(true); + if (object.revision_height != null) + if ($util.Long) + (message.revision_height = $util.Long.fromValue(object.revision_height)).unsigned = true; + else if (typeof object.revision_height === "string") + message.revision_height = parseInt(object.revision_height, 10); + else if (typeof object.revision_height === "number") + message.revision_height = object.revision_height; + else if (typeof object.revision_height === "object") + message.revision_height = new $util.LongBits(object.revision_height.low >>> 0, object.revision_height.high >>> 0).toNumber(true); + if (object.latest_height != null) + message.latest_height = Boolean(object.latest_height); return message; }; /** - * Creates a plain object from a MerklePrefix message. Also converts values to other types if specified. + * Creates a plain object from a QueryConsensusStateRequest message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.commitment.v1.MerklePrefix + * @memberof ibc.core.client.v1.QueryConsensusStateRequest * @static - * @param {ibc.core.commitment.v1.MerklePrefix} message MerklePrefix + * @param {ibc.core.client.v1.QueryConsensusStateRequest} message QueryConsensusStateRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MerklePrefix.toObject = function toObject(message, options) { + QueryConsensusStateRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) - if (options.bytes === String) - object.key_prefix = ""; - else { - object.key_prefix = []; - if (options.bytes !== Array) - object.key_prefix = $util.newBuffer(object.key_prefix); - } - if (message.key_prefix != null && message.hasOwnProperty("key_prefix")) - object.key_prefix = options.bytes === String ? $util.base64.encode(message.key_prefix, 0, message.key_prefix.length) : options.bytes === Array ? Array.prototype.slice.call(message.key_prefix) : message.key_prefix; + if (options.defaults) { + object.client_id = ""; + if ($util.Long) { + let long = new $util.Long(0, 0, true); + object.revision_number = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.revision_number = options.longs === String ? "0" : 0; + if ($util.Long) { + let long = new $util.Long(0, 0, true); + object.revision_height = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.revision_height = options.longs === String ? "0" : 0; + object.latest_height = false; + } + if (message.client_id != null && message.hasOwnProperty("client_id")) + object.client_id = message.client_id; + if (message.revision_number != null && message.hasOwnProperty("revision_number")) + if (typeof message.revision_number === "number") + object.revision_number = options.longs === String ? String(message.revision_number) : message.revision_number; + else + object.revision_number = options.longs === String ? $util.Long.prototype.toString.call(message.revision_number) : options.longs === Number ? new $util.LongBits(message.revision_number.low >>> 0, message.revision_number.high >>> 0).toNumber(true) : message.revision_number; + if (message.revision_height != null && message.hasOwnProperty("revision_height")) + if (typeof message.revision_height === "number") + object.revision_height = options.longs === String ? String(message.revision_height) : message.revision_height; + else + object.revision_height = options.longs === String ? $util.Long.prototype.toString.call(message.revision_height) : options.longs === Number ? new $util.LongBits(message.revision_height.low >>> 0, message.revision_height.high >>> 0).toNumber(true) : message.revision_height; + if (message.latest_height != null && message.hasOwnProperty("latest_height")) + object.latest_height = message.latest_height; return object; }; /** - * Converts this MerklePrefix to JSON. + * Converts this QueryConsensusStateRequest to JSON. * @function toJSON - * @memberof ibc.core.commitment.v1.MerklePrefix + * @memberof ibc.core.client.v1.QueryConsensusStateRequest * @instance * @returns {Object.} JSON object */ - MerklePrefix.prototype.toJSON = function toJSON() { + QueryConsensusStateRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MerklePrefix; + return QueryConsensusStateRequest; })(); - v1.MerklePath = (function() { + v1.QueryConsensusStateResponse = (function() { /** - * Properties of a MerklePath. - * @memberof ibc.core.commitment.v1 - * @interface IMerklePath - * @property {Array.|null} [key_path] MerklePath key_path + * Properties of a QueryConsensusStateResponse. + * @memberof ibc.core.client.v1 + * @interface IQueryConsensusStateResponse + * @property {google.protobuf.IAny|null} [consensus_state] QueryConsensusStateResponse consensus_state + * @property {Uint8Array|null} [proof] QueryConsensusStateResponse proof + * @property {ibc.core.client.v1.IHeight|null} [proof_height] QueryConsensusStateResponse proof_height */ /** - * Constructs a new MerklePath. - * @memberof ibc.core.commitment.v1 - * @classdesc Represents a MerklePath. - * @implements IMerklePath + * Constructs a new QueryConsensusStateResponse. + * @memberof ibc.core.client.v1 + * @classdesc Represents a QueryConsensusStateResponse. + * @implements IQueryConsensusStateResponse * @constructor - * @param {ibc.core.commitment.v1.IMerklePath=} [properties] Properties to set + * @param {ibc.core.client.v1.IQueryConsensusStateResponse=} [properties] Properties to set */ - function MerklePath(properties) { - this.key_path = []; + function QueryConsensusStateResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -56843,66 +63704,89 @@ export const ibc = $root.ibc = (() => { } /** - * MerklePath key_path. - * @member {Array.} key_path - * @memberof ibc.core.commitment.v1.MerklePath + * QueryConsensusStateResponse consensus_state. + * @member {google.protobuf.IAny|null|undefined} consensus_state + * @memberof ibc.core.client.v1.QueryConsensusStateResponse * @instance */ - MerklePath.prototype.key_path = $util.emptyArray; + QueryConsensusStateResponse.prototype.consensus_state = null; /** - * Encodes the specified MerklePath message. Does not implicitly {@link ibc.core.commitment.v1.MerklePath.verify|verify} messages. + * QueryConsensusStateResponse proof. + * @member {Uint8Array} proof + * @memberof ibc.core.client.v1.QueryConsensusStateResponse + * @instance + */ + QueryConsensusStateResponse.prototype.proof = $util.newBuffer([]); + + /** + * QueryConsensusStateResponse proof_height. + * @member {ibc.core.client.v1.IHeight|null|undefined} proof_height + * @memberof ibc.core.client.v1.QueryConsensusStateResponse + * @instance + */ + QueryConsensusStateResponse.prototype.proof_height = null; + + /** + * Encodes the specified QueryConsensusStateResponse message. Does not implicitly {@link ibc.core.client.v1.QueryConsensusStateResponse.verify|verify} messages. * @function encode - * @memberof ibc.core.commitment.v1.MerklePath + * @memberof ibc.core.client.v1.QueryConsensusStateResponse * @static - * @param {ibc.core.commitment.v1.IMerklePath} message MerklePath message or plain object to encode + * @param {ibc.core.client.v1.IQueryConsensusStateResponse} message QueryConsensusStateResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MerklePath.encode = function encode(message, writer) { + QueryConsensusStateResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.key_path != null && message.key_path.length) - for (let i = 0; i < message.key_path.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.key_path[i]); + if (message.consensus_state != null && Object.hasOwnProperty.call(message, "consensus_state")) + $root.google.protobuf.Any.encode(message.consensus_state, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.proof != null && Object.hasOwnProperty.call(message, "proof")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.proof); + if (message.proof_height != null && Object.hasOwnProperty.call(message, "proof_height")) + $root.ibc.core.client.v1.Height.encode(message.proof_height, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified MerklePath message, length delimited. Does not implicitly {@link ibc.core.commitment.v1.MerklePath.verify|verify} messages. + * Encodes the specified QueryConsensusStateResponse message, length delimited. Does not implicitly {@link ibc.core.client.v1.QueryConsensusStateResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.commitment.v1.MerklePath + * @memberof ibc.core.client.v1.QueryConsensusStateResponse * @static - * @param {ibc.core.commitment.v1.IMerklePath} message MerklePath message or plain object to encode + * @param {ibc.core.client.v1.IQueryConsensusStateResponse} message QueryConsensusStateResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MerklePath.encodeDelimited = function encodeDelimited(message, writer) { + QueryConsensusStateResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MerklePath message from the specified reader or buffer. + * Decodes a QueryConsensusStateResponse message from the specified reader or buffer. * @function decode - * @memberof ibc.core.commitment.v1.MerklePath + * @memberof ibc.core.client.v1.QueryConsensusStateResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.commitment.v1.MerklePath} MerklePath + * @returns {ibc.core.client.v1.QueryConsensusStateResponse} QueryConsensusStateResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MerklePath.decode = function decode(reader, length) { + QueryConsensusStateResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.commitment.v1.MerklePath(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.QueryConsensusStateResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.key_path && message.key_path.length)) - message.key_path = []; - message.key_path.push(reader.string()); + message.consensus_state = $root.google.protobuf.Any.decode(reader, reader.uint32()); + break; + case 2: + message.proof = reader.bytes(); + break; + case 3: + message.proof_height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -56913,120 +63797,144 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a MerklePath message from the specified reader or buffer, length delimited. + * Decodes a QueryConsensusStateResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.commitment.v1.MerklePath + * @memberof ibc.core.client.v1.QueryConsensusStateResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.commitment.v1.MerklePath} MerklePath + * @returns {ibc.core.client.v1.QueryConsensusStateResponse} QueryConsensusStateResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MerklePath.decodeDelimited = function decodeDelimited(reader) { + QueryConsensusStateResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MerklePath message. + * Verifies a QueryConsensusStateResponse message. * @function verify - * @memberof ibc.core.commitment.v1.MerklePath + * @memberof ibc.core.client.v1.QueryConsensusStateResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MerklePath.verify = function verify(message) { + QueryConsensusStateResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.key_path != null && message.hasOwnProperty("key_path")) { - if (!Array.isArray(message.key_path)) - return "key_path: array expected"; - for (let i = 0; i < message.key_path.length; ++i) - if (!$util.isString(message.key_path[i])) - return "key_path: string[] expected"; + if (message.consensus_state != null && message.hasOwnProperty("consensus_state")) { + let error = $root.google.protobuf.Any.verify(message.consensus_state); + if (error) + return "consensus_state." + error; + } + if (message.proof != null && message.hasOwnProperty("proof")) + if (!(message.proof && typeof message.proof.length === "number" || $util.isString(message.proof))) + return "proof: buffer expected"; + if (message.proof_height != null && message.hasOwnProperty("proof_height")) { + let error = $root.ibc.core.client.v1.Height.verify(message.proof_height); + if (error) + return "proof_height." + error; } return null; }; /** - * Creates a MerklePath message from a plain object. Also converts values to their respective internal types. + * Creates a QueryConsensusStateResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.commitment.v1.MerklePath + * @memberof ibc.core.client.v1.QueryConsensusStateResponse * @static * @param {Object.} object Plain object - * @returns {ibc.core.commitment.v1.MerklePath} MerklePath + * @returns {ibc.core.client.v1.QueryConsensusStateResponse} QueryConsensusStateResponse */ - MerklePath.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.commitment.v1.MerklePath) + QueryConsensusStateResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.client.v1.QueryConsensusStateResponse) return object; - let message = new $root.ibc.core.commitment.v1.MerklePath(); - if (object.key_path) { - if (!Array.isArray(object.key_path)) - throw TypeError(".ibc.core.commitment.v1.MerklePath.key_path: array expected"); - message.key_path = []; - for (let i = 0; i < object.key_path.length; ++i) - message.key_path[i] = String(object.key_path[i]); + let message = new $root.ibc.core.client.v1.QueryConsensusStateResponse(); + if (object.consensus_state != null) { + if (typeof object.consensus_state !== "object") + throw TypeError(".ibc.core.client.v1.QueryConsensusStateResponse.consensus_state: object expected"); + message.consensus_state = $root.google.protobuf.Any.fromObject(object.consensus_state); + } + if (object.proof != null) + if (typeof object.proof === "string") + $util.base64.decode(object.proof, message.proof = $util.newBuffer($util.base64.length(object.proof)), 0); + else if (object.proof.length) + message.proof = object.proof; + if (object.proof_height != null) { + if (typeof object.proof_height !== "object") + throw TypeError(".ibc.core.client.v1.QueryConsensusStateResponse.proof_height: object expected"); + message.proof_height = $root.ibc.core.client.v1.Height.fromObject(object.proof_height); } return message; }; /** - * Creates a plain object from a MerklePath message. Also converts values to other types if specified. + * Creates a plain object from a QueryConsensusStateResponse message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.commitment.v1.MerklePath + * @memberof ibc.core.client.v1.QueryConsensusStateResponse * @static - * @param {ibc.core.commitment.v1.MerklePath} message MerklePath + * @param {ibc.core.client.v1.QueryConsensusStateResponse} message QueryConsensusStateResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MerklePath.toObject = function toObject(message, options) { + QueryConsensusStateResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.key_path = []; - if (message.key_path && message.key_path.length) { - object.key_path = []; - for (let j = 0; j < message.key_path.length; ++j) - object.key_path[j] = message.key_path[j]; + if (options.defaults) { + object.consensus_state = null; + if (options.bytes === String) + object.proof = ""; + else { + object.proof = []; + if (options.bytes !== Array) + object.proof = $util.newBuffer(object.proof); + } + object.proof_height = null; } + if (message.consensus_state != null && message.hasOwnProperty("consensus_state")) + object.consensus_state = $root.google.protobuf.Any.toObject(message.consensus_state, options); + if (message.proof != null && message.hasOwnProperty("proof")) + object.proof = options.bytes === String ? $util.base64.encode(message.proof, 0, message.proof.length) : options.bytes === Array ? Array.prototype.slice.call(message.proof) : message.proof; + if (message.proof_height != null && message.hasOwnProperty("proof_height")) + object.proof_height = $root.ibc.core.client.v1.Height.toObject(message.proof_height, options); return object; }; /** - * Converts this MerklePath to JSON. + * Converts this QueryConsensusStateResponse to JSON. * @function toJSON - * @memberof ibc.core.commitment.v1.MerklePath + * @memberof ibc.core.client.v1.QueryConsensusStateResponse * @instance * @returns {Object.} JSON object */ - MerklePath.prototype.toJSON = function toJSON() { + QueryConsensusStateResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MerklePath; + return QueryConsensusStateResponse; })(); - v1.MerkleProof = (function() { + v1.QueryConsensusStatesRequest = (function() { /** - * Properties of a MerkleProof. - * @memberof ibc.core.commitment.v1 - * @interface IMerkleProof - * @property {Array.|null} [proofs] MerkleProof proofs + * Properties of a QueryConsensusStatesRequest. + * @memberof ibc.core.client.v1 + * @interface IQueryConsensusStatesRequest + * @property {string|null} [client_id] QueryConsensusStatesRequest client_id + * @property {cosmos.base.query.v1beta1.IPageRequest|null} [pagination] QueryConsensusStatesRequest pagination */ /** - * Constructs a new MerkleProof. - * @memberof ibc.core.commitment.v1 - * @classdesc Represents a MerkleProof. - * @implements IMerkleProof + * Constructs a new QueryConsensusStatesRequest. + * @memberof ibc.core.client.v1 + * @classdesc Represents a QueryConsensusStatesRequest. + * @implements IQueryConsensusStatesRequest * @constructor - * @param {ibc.core.commitment.v1.IMerkleProof=} [properties] Properties to set + * @param {ibc.core.client.v1.IQueryConsensusStatesRequest=} [properties] Properties to set */ - function MerkleProof(properties) { - this.proofs = []; + function QueryConsensusStatesRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -57034,66 +63942,76 @@ export const ibc = $root.ibc = (() => { } /** - * MerkleProof proofs. - * @member {Array.} proofs - * @memberof ibc.core.commitment.v1.MerkleProof + * QueryConsensusStatesRequest client_id. + * @member {string} client_id + * @memberof ibc.core.client.v1.QueryConsensusStatesRequest * @instance */ - MerkleProof.prototype.proofs = $util.emptyArray; + QueryConsensusStatesRequest.prototype.client_id = ""; /** - * Encodes the specified MerkleProof message. Does not implicitly {@link ibc.core.commitment.v1.MerkleProof.verify|verify} messages. + * QueryConsensusStatesRequest pagination. + * @member {cosmos.base.query.v1beta1.IPageRequest|null|undefined} pagination + * @memberof ibc.core.client.v1.QueryConsensusStatesRequest + * @instance + */ + QueryConsensusStatesRequest.prototype.pagination = null; + + /** + * Encodes the specified QueryConsensusStatesRequest message. Does not implicitly {@link ibc.core.client.v1.QueryConsensusStatesRequest.verify|verify} messages. * @function encode - * @memberof ibc.core.commitment.v1.MerkleProof + * @memberof ibc.core.client.v1.QueryConsensusStatesRequest * @static - * @param {ibc.core.commitment.v1.IMerkleProof} message MerkleProof message or plain object to encode + * @param {ibc.core.client.v1.IQueryConsensusStatesRequest} message QueryConsensusStatesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MerkleProof.encode = function encode(message, writer) { + QueryConsensusStatesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.proofs != null && message.proofs.length) - for (let i = 0; i < message.proofs.length; ++i) - $root.ics23.CommitmentProof.encode(message.proofs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.client_id != null && Object.hasOwnProperty.call(message, "client_id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.client_id); + if (message.pagination != null && Object.hasOwnProperty.call(message, "pagination")) + $root.cosmos.base.query.v1beta1.PageRequest.encode(message.pagination, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified MerkleProof message, length delimited. Does not implicitly {@link ibc.core.commitment.v1.MerkleProof.verify|verify} messages. + * Encodes the specified QueryConsensusStatesRequest message, length delimited. Does not implicitly {@link ibc.core.client.v1.QueryConsensusStatesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.commitment.v1.MerkleProof + * @memberof ibc.core.client.v1.QueryConsensusStatesRequest * @static - * @param {ibc.core.commitment.v1.IMerkleProof} message MerkleProof message or plain object to encode + * @param {ibc.core.client.v1.IQueryConsensusStatesRequest} message QueryConsensusStatesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MerkleProof.encodeDelimited = function encodeDelimited(message, writer) { + QueryConsensusStatesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MerkleProof message from the specified reader or buffer. + * Decodes a QueryConsensusStatesRequest message from the specified reader or buffer. * @function decode - * @memberof ibc.core.commitment.v1.MerkleProof + * @memberof ibc.core.client.v1.QueryConsensusStatesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.commitment.v1.MerkleProof} MerkleProof + * @returns {ibc.core.client.v1.QueryConsensusStatesRequest} QueryConsensusStatesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MerkleProof.decode = function decode(reader, length) { + QueryConsensusStatesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.commitment.v1.MerkleProof(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.QueryConsensusStatesRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.proofs && message.proofs.length)) - message.proofs = []; - message.proofs.push($root.ics23.CommitmentProof.decode(reader, reader.uint32())); + message.client_id = reader.string(); + break; + case 2: + message.pagination = $root.cosmos.base.query.v1beta1.PageRequest.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -57104,305 +64022,123 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a MerkleProof message from the specified reader or buffer, length delimited. + * Decodes a QueryConsensusStatesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.commitment.v1.MerkleProof + * @memberof ibc.core.client.v1.QueryConsensusStatesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.commitment.v1.MerkleProof} MerkleProof + * @returns {ibc.core.client.v1.QueryConsensusStatesRequest} QueryConsensusStatesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MerkleProof.decodeDelimited = function decodeDelimited(reader) { + QueryConsensusStatesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MerkleProof message. + * Verifies a QueryConsensusStatesRequest message. * @function verify - * @memberof ibc.core.commitment.v1.MerkleProof + * @memberof ibc.core.client.v1.QueryConsensusStatesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MerkleProof.verify = function verify(message) { + QueryConsensusStatesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.proofs != null && message.hasOwnProperty("proofs")) { - if (!Array.isArray(message.proofs)) - return "proofs: array expected"; - for (let i = 0; i < message.proofs.length; ++i) { - let error = $root.ics23.CommitmentProof.verify(message.proofs[i]); - if (error) - return "proofs." + error; - } + if (message.client_id != null && message.hasOwnProperty("client_id")) + if (!$util.isString(message.client_id)) + return "client_id: string expected"; + if (message.pagination != null && message.hasOwnProperty("pagination")) { + let error = $root.cosmos.base.query.v1beta1.PageRequest.verify(message.pagination); + if (error) + return "pagination." + error; } return null; }; /** - * Creates a MerkleProof message from a plain object. Also converts values to their respective internal types. + * Creates a QueryConsensusStatesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.commitment.v1.MerkleProof + * @memberof ibc.core.client.v1.QueryConsensusStatesRequest * @static * @param {Object.} object Plain object - * @returns {ibc.core.commitment.v1.MerkleProof} MerkleProof + * @returns {ibc.core.client.v1.QueryConsensusStatesRequest} QueryConsensusStatesRequest */ - MerkleProof.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.commitment.v1.MerkleProof) + QueryConsensusStatesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.client.v1.QueryConsensusStatesRequest) return object; - let message = new $root.ibc.core.commitment.v1.MerkleProof(); - if (object.proofs) { - if (!Array.isArray(object.proofs)) - throw TypeError(".ibc.core.commitment.v1.MerkleProof.proofs: array expected"); - message.proofs = []; - for (let i = 0; i < object.proofs.length; ++i) { - if (typeof object.proofs[i] !== "object") - throw TypeError(".ibc.core.commitment.v1.MerkleProof.proofs: object expected"); - message.proofs[i] = $root.ics23.CommitmentProof.fromObject(object.proofs[i]); - } + let message = new $root.ibc.core.client.v1.QueryConsensusStatesRequest(); + if (object.client_id != null) + message.client_id = String(object.client_id); + if (object.pagination != null) { + if (typeof object.pagination !== "object") + throw TypeError(".ibc.core.client.v1.QueryConsensusStatesRequest.pagination: object expected"); + message.pagination = $root.cosmos.base.query.v1beta1.PageRequest.fromObject(object.pagination); } return message; }; /** - * Creates a plain object from a MerkleProof message. Also converts values to other types if specified. + * Creates a plain object from a QueryConsensusStatesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.commitment.v1.MerkleProof + * @memberof ibc.core.client.v1.QueryConsensusStatesRequest * @static - * @param {ibc.core.commitment.v1.MerkleProof} message MerkleProof + * @param {ibc.core.client.v1.QueryConsensusStatesRequest} message QueryConsensusStatesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MerkleProof.toObject = function toObject(message, options) { + QueryConsensusStatesRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.proofs = []; - if (message.proofs && message.proofs.length) { - object.proofs = []; - for (let j = 0; j < message.proofs.length; ++j) - object.proofs[j] = $root.ics23.CommitmentProof.toObject(message.proofs[j], options); + if (options.defaults) { + object.client_id = ""; + object.pagination = null; } + if (message.client_id != null && message.hasOwnProperty("client_id")) + object.client_id = message.client_id; + if (message.pagination != null && message.hasOwnProperty("pagination")) + object.pagination = $root.cosmos.base.query.v1beta1.PageRequest.toObject(message.pagination, options); return object; }; /** - * Converts this MerkleProof to JSON. + * Converts this QueryConsensusStatesRequest to JSON. * @function toJSON - * @memberof ibc.core.commitment.v1.MerkleProof + * @memberof ibc.core.client.v1.QueryConsensusStatesRequest * @instance * @returns {Object.} JSON object */ - MerkleProof.prototype.toJSON = function toJSON() { + QueryConsensusStatesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MerkleProof; - })(); - - return v1; - })(); - - return commitment; - })(); - - core.connection = (function() { - - /** - * Namespace connection. - * @memberof ibc.core - * @namespace - */ - const connection = {}; - - connection.v1 = (function() { - - /** - * Namespace v1. - * @memberof ibc.core.connection - * @namespace - */ - const v1 = {}; - - v1.Msg = (function() { - - /** - * Constructs a new Msg service. - * @memberof ibc.core.connection.v1 - * @classdesc Represents a Msg - * @extends $protobuf.rpc.Service - * @constructor - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - */ - function Msg(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } - - (Msg.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Msg; - - /** - * Callback as used by {@link ibc.core.connection.v1.Msg#connectionOpenInit}. - * @memberof ibc.core.connection.v1.Msg - * @typedef ConnectionOpenInitCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.core.connection.v1.MsgConnectionOpenInitResponse} [response] MsgConnectionOpenInitResponse - */ - - /** - * Calls ConnectionOpenInit. - * @function connectionOpenInit - * @memberof ibc.core.connection.v1.Msg - * @instance - * @param {ibc.core.connection.v1.IMsgConnectionOpenInit} request MsgConnectionOpenInit message or plain object - * @param {ibc.core.connection.v1.Msg.ConnectionOpenInitCallback} callback Node-style callback called with the error, if any, and MsgConnectionOpenInitResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Msg.prototype.connectionOpenInit = function connectionOpenInit(request, callback) { - return this.rpcCall(connectionOpenInit, $root.ibc.core.connection.v1.MsgConnectionOpenInit, $root.ibc.core.connection.v1.MsgConnectionOpenInitResponse, request, callback); - }, "name", { value: "ConnectionOpenInit" }); - - /** - * Calls ConnectionOpenInit. - * @function connectionOpenInit - * @memberof ibc.core.connection.v1.Msg - * @instance - * @param {ibc.core.connection.v1.IMsgConnectionOpenInit} request MsgConnectionOpenInit message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link ibc.core.connection.v1.Msg#connectionOpenTry}. - * @memberof ibc.core.connection.v1.Msg - * @typedef ConnectionOpenTryCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.core.connection.v1.MsgConnectionOpenTryResponse} [response] MsgConnectionOpenTryResponse - */ - - /** - * Calls ConnectionOpenTry. - * @function connectionOpenTry - * @memberof ibc.core.connection.v1.Msg - * @instance - * @param {ibc.core.connection.v1.IMsgConnectionOpenTry} request MsgConnectionOpenTry message or plain object - * @param {ibc.core.connection.v1.Msg.ConnectionOpenTryCallback} callback Node-style callback called with the error, if any, and MsgConnectionOpenTryResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Msg.prototype.connectionOpenTry = function connectionOpenTry(request, callback) { - return this.rpcCall(connectionOpenTry, $root.ibc.core.connection.v1.MsgConnectionOpenTry, $root.ibc.core.connection.v1.MsgConnectionOpenTryResponse, request, callback); - }, "name", { value: "ConnectionOpenTry" }); - - /** - * Calls ConnectionOpenTry. - * @function connectionOpenTry - * @memberof ibc.core.connection.v1.Msg - * @instance - * @param {ibc.core.connection.v1.IMsgConnectionOpenTry} request MsgConnectionOpenTry message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link ibc.core.connection.v1.Msg#connectionOpenAck}. - * @memberof ibc.core.connection.v1.Msg - * @typedef ConnectionOpenAckCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.core.connection.v1.MsgConnectionOpenAckResponse} [response] MsgConnectionOpenAckResponse - */ - - /** - * Calls ConnectionOpenAck. - * @function connectionOpenAck - * @memberof ibc.core.connection.v1.Msg - * @instance - * @param {ibc.core.connection.v1.IMsgConnectionOpenAck} request MsgConnectionOpenAck message or plain object - * @param {ibc.core.connection.v1.Msg.ConnectionOpenAckCallback} callback Node-style callback called with the error, if any, and MsgConnectionOpenAckResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Msg.prototype.connectionOpenAck = function connectionOpenAck(request, callback) { - return this.rpcCall(connectionOpenAck, $root.ibc.core.connection.v1.MsgConnectionOpenAck, $root.ibc.core.connection.v1.MsgConnectionOpenAckResponse, request, callback); - }, "name", { value: "ConnectionOpenAck" }); - - /** - * Calls ConnectionOpenAck. - * @function connectionOpenAck - * @memberof ibc.core.connection.v1.Msg - * @instance - * @param {ibc.core.connection.v1.IMsgConnectionOpenAck} request MsgConnectionOpenAck message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link ibc.core.connection.v1.Msg#connectionOpenConfirm}. - * @memberof ibc.core.connection.v1.Msg - * @typedef ConnectionOpenConfirmCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.core.connection.v1.MsgConnectionOpenConfirmResponse} [response] MsgConnectionOpenConfirmResponse - */ - - /** - * Calls ConnectionOpenConfirm. - * @function connectionOpenConfirm - * @memberof ibc.core.connection.v1.Msg - * @instance - * @param {ibc.core.connection.v1.IMsgConnectionOpenConfirm} request MsgConnectionOpenConfirm message or plain object - * @param {ibc.core.connection.v1.Msg.ConnectionOpenConfirmCallback} callback Node-style callback called with the error, if any, and MsgConnectionOpenConfirmResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Msg.prototype.connectionOpenConfirm = function connectionOpenConfirm(request, callback) { - return this.rpcCall(connectionOpenConfirm, $root.ibc.core.connection.v1.MsgConnectionOpenConfirm, $root.ibc.core.connection.v1.MsgConnectionOpenConfirmResponse, request, callback); - }, "name", { value: "ConnectionOpenConfirm" }); - - /** - * Calls ConnectionOpenConfirm. - * @function connectionOpenConfirm - * @memberof ibc.core.connection.v1.Msg - * @instance - * @param {ibc.core.connection.v1.IMsgConnectionOpenConfirm} request MsgConnectionOpenConfirm message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - return Msg; + return QueryConsensusStatesRequest; })(); - v1.MsgConnectionOpenInit = (function() { + v1.QueryConsensusStatesResponse = (function() { /** - * Properties of a MsgConnectionOpenInit. - * @memberof ibc.core.connection.v1 - * @interface IMsgConnectionOpenInit - * @property {string|null} [client_id] MsgConnectionOpenInit client_id - * @property {ibc.core.connection.v1.ICounterparty|null} [counterparty] MsgConnectionOpenInit counterparty - * @property {ibc.core.connection.v1.IVersion|null} [version] MsgConnectionOpenInit version - * @property {Long|null} [delay_period] MsgConnectionOpenInit delay_period - * @property {string|null} [signer] MsgConnectionOpenInit signer + * Properties of a QueryConsensusStatesResponse. + * @memberof ibc.core.client.v1 + * @interface IQueryConsensusStatesResponse + * @property {Array.|null} [consensus_states] QueryConsensusStatesResponse consensus_states + * @property {cosmos.base.query.v1beta1.IPageResponse|null} [pagination] QueryConsensusStatesResponse pagination */ /** - * Constructs a new MsgConnectionOpenInit. - * @memberof ibc.core.connection.v1 - * @classdesc Represents a MsgConnectionOpenInit. - * @implements IMsgConnectionOpenInit + * Constructs a new QueryConsensusStatesResponse. + * @memberof ibc.core.client.v1 + * @classdesc Represents a QueryConsensusStatesResponse. + * @implements IQueryConsensusStatesResponse * @constructor - * @param {ibc.core.connection.v1.IMsgConnectionOpenInit=} [properties] Properties to set + * @param {ibc.core.client.v1.IQueryConsensusStatesResponse=} [properties] Properties to set */ - function MsgConnectionOpenInit(properties) { + function QueryConsensusStatesResponse(properties) { + this.consensus_states = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -57410,115 +64146,79 @@ export const ibc = $root.ibc = (() => { } /** - * MsgConnectionOpenInit client_id. - * @member {string} client_id - * @memberof ibc.core.connection.v1.MsgConnectionOpenInit - * @instance - */ - MsgConnectionOpenInit.prototype.client_id = ""; - - /** - * MsgConnectionOpenInit counterparty. - * @member {ibc.core.connection.v1.ICounterparty|null|undefined} counterparty - * @memberof ibc.core.connection.v1.MsgConnectionOpenInit - * @instance - */ - MsgConnectionOpenInit.prototype.counterparty = null; - - /** - * MsgConnectionOpenInit version. - * @member {ibc.core.connection.v1.IVersion|null|undefined} version - * @memberof ibc.core.connection.v1.MsgConnectionOpenInit - * @instance - */ - MsgConnectionOpenInit.prototype.version = null; - - /** - * MsgConnectionOpenInit delay_period. - * @member {Long} delay_period - * @memberof ibc.core.connection.v1.MsgConnectionOpenInit + * QueryConsensusStatesResponse consensus_states. + * @member {Array.} consensus_states + * @memberof ibc.core.client.v1.QueryConsensusStatesResponse * @instance */ - MsgConnectionOpenInit.prototype.delay_period = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * MsgConnectionOpenInit signer. - * @member {string} signer - * @memberof ibc.core.connection.v1.MsgConnectionOpenInit + QueryConsensusStatesResponse.prototype.consensus_states = $util.emptyArray; + + /** + * QueryConsensusStatesResponse pagination. + * @member {cosmos.base.query.v1beta1.IPageResponse|null|undefined} pagination + * @memberof ibc.core.client.v1.QueryConsensusStatesResponse * @instance */ - MsgConnectionOpenInit.prototype.signer = ""; + QueryConsensusStatesResponse.prototype.pagination = null; /** - * Encodes the specified MsgConnectionOpenInit message. Does not implicitly {@link ibc.core.connection.v1.MsgConnectionOpenInit.verify|verify} messages. + * Encodes the specified QueryConsensusStatesResponse message. Does not implicitly {@link ibc.core.client.v1.QueryConsensusStatesResponse.verify|verify} messages. * @function encode - * @memberof ibc.core.connection.v1.MsgConnectionOpenInit + * @memberof ibc.core.client.v1.QueryConsensusStatesResponse * @static - * @param {ibc.core.connection.v1.IMsgConnectionOpenInit} message MsgConnectionOpenInit message or plain object to encode + * @param {ibc.core.client.v1.IQueryConsensusStatesResponse} message QueryConsensusStatesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgConnectionOpenInit.encode = function encode(message, writer) { + QueryConsensusStatesResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.client_id != null && Object.hasOwnProperty.call(message, "client_id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.client_id); - if (message.counterparty != null && Object.hasOwnProperty.call(message, "counterparty")) - $root.ibc.core.connection.v1.Counterparty.encode(message.counterparty, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.version != null && Object.hasOwnProperty.call(message, "version")) - $root.ibc.core.connection.v1.Version.encode(message.version, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.delay_period != null && Object.hasOwnProperty.call(message, "delay_period")) - writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.delay_period); - if (message.signer != null && Object.hasOwnProperty.call(message, "signer")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.signer); + if (message.consensus_states != null && message.consensus_states.length) + for (let i = 0; i < message.consensus_states.length; ++i) + $root.ibc.core.client.v1.ConsensusStateWithHeight.encode(message.consensus_states[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.pagination != null && Object.hasOwnProperty.call(message, "pagination")) + $root.cosmos.base.query.v1beta1.PageResponse.encode(message.pagination, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified MsgConnectionOpenInit message, length delimited. Does not implicitly {@link ibc.core.connection.v1.MsgConnectionOpenInit.verify|verify} messages. + * Encodes the specified QueryConsensusStatesResponse message, length delimited. Does not implicitly {@link ibc.core.client.v1.QueryConsensusStatesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.connection.v1.MsgConnectionOpenInit + * @memberof ibc.core.client.v1.QueryConsensusStatesResponse * @static - * @param {ibc.core.connection.v1.IMsgConnectionOpenInit} message MsgConnectionOpenInit message or plain object to encode + * @param {ibc.core.client.v1.IQueryConsensusStatesResponse} message QueryConsensusStatesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgConnectionOpenInit.encodeDelimited = function encodeDelimited(message, writer) { + QueryConsensusStatesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MsgConnectionOpenInit message from the specified reader or buffer. + * Decodes a QueryConsensusStatesResponse message from the specified reader or buffer. * @function decode - * @memberof ibc.core.connection.v1.MsgConnectionOpenInit + * @memberof ibc.core.client.v1.QueryConsensusStatesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.connection.v1.MsgConnectionOpenInit} MsgConnectionOpenInit + * @returns {ibc.core.client.v1.QueryConsensusStatesResponse} QueryConsensusStatesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgConnectionOpenInit.decode = function decode(reader, length) { + QueryConsensusStatesResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.connection.v1.MsgConnectionOpenInit(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.QueryConsensusStatesResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.client_id = reader.string(); + if (!(message.consensus_states && message.consensus_states.length)) + message.consensus_states = []; + message.consensus_states.push($root.ibc.core.client.v1.ConsensusStateWithHeight.decode(reader, reader.uint32())); break; case 2: - message.counterparty = $root.ibc.core.connection.v1.Counterparty.decode(reader, reader.uint32()); - break; - case 3: - message.version = $root.ibc.core.connection.v1.Version.decode(reader, reader.uint32()); - break; - case 4: - message.delay_period = reader.uint64(); - break; - case 5: - message.signer = reader.string(); + message.pagination = $root.cosmos.base.query.v1beta1.PageResponse.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -57529,163 +64229,139 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a MsgConnectionOpenInit message from the specified reader or buffer, length delimited. + * Decodes a QueryConsensusStatesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.connection.v1.MsgConnectionOpenInit + * @memberof ibc.core.client.v1.QueryConsensusStatesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.connection.v1.MsgConnectionOpenInit} MsgConnectionOpenInit + * @returns {ibc.core.client.v1.QueryConsensusStatesResponse} QueryConsensusStatesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgConnectionOpenInit.decodeDelimited = function decodeDelimited(reader) { + QueryConsensusStatesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MsgConnectionOpenInit message. + * Verifies a QueryConsensusStatesResponse message. * @function verify - * @memberof ibc.core.connection.v1.MsgConnectionOpenInit + * @memberof ibc.core.client.v1.QueryConsensusStatesResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MsgConnectionOpenInit.verify = function verify(message) { + QueryConsensusStatesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.client_id != null && message.hasOwnProperty("client_id")) - if (!$util.isString(message.client_id)) - return "client_id: string expected"; - if (message.counterparty != null && message.hasOwnProperty("counterparty")) { - let error = $root.ibc.core.connection.v1.Counterparty.verify(message.counterparty); - if (error) - return "counterparty." + error; + if (message.consensus_states != null && message.hasOwnProperty("consensus_states")) { + if (!Array.isArray(message.consensus_states)) + return "consensus_states: array expected"; + for (let i = 0; i < message.consensus_states.length; ++i) { + let error = $root.ibc.core.client.v1.ConsensusStateWithHeight.verify(message.consensus_states[i]); + if (error) + return "consensus_states." + error; + } } - if (message.version != null && message.hasOwnProperty("version")) { - let error = $root.ibc.core.connection.v1.Version.verify(message.version); + if (message.pagination != null && message.hasOwnProperty("pagination")) { + let error = $root.cosmos.base.query.v1beta1.PageResponse.verify(message.pagination); if (error) - return "version." + error; + return "pagination." + error; } - if (message.delay_period != null && message.hasOwnProperty("delay_period")) - if (!$util.isInteger(message.delay_period) && !(message.delay_period && $util.isInteger(message.delay_period.low) && $util.isInteger(message.delay_period.high))) - return "delay_period: integer|Long expected"; - if (message.signer != null && message.hasOwnProperty("signer")) - if (!$util.isString(message.signer)) - return "signer: string expected"; return null; }; /** - * Creates a MsgConnectionOpenInit message from a plain object. Also converts values to their respective internal types. + * Creates a QueryConsensusStatesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.connection.v1.MsgConnectionOpenInit + * @memberof ibc.core.client.v1.QueryConsensusStatesResponse * @static * @param {Object.} object Plain object - * @returns {ibc.core.connection.v1.MsgConnectionOpenInit} MsgConnectionOpenInit + * @returns {ibc.core.client.v1.QueryConsensusStatesResponse} QueryConsensusStatesResponse */ - MsgConnectionOpenInit.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.connection.v1.MsgConnectionOpenInit) + QueryConsensusStatesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.client.v1.QueryConsensusStatesResponse) return object; - let message = new $root.ibc.core.connection.v1.MsgConnectionOpenInit(); - if (object.client_id != null) - message.client_id = String(object.client_id); - if (object.counterparty != null) { - if (typeof object.counterparty !== "object") - throw TypeError(".ibc.core.connection.v1.MsgConnectionOpenInit.counterparty: object expected"); - message.counterparty = $root.ibc.core.connection.v1.Counterparty.fromObject(object.counterparty); + let message = new $root.ibc.core.client.v1.QueryConsensusStatesResponse(); + if (object.consensus_states) { + if (!Array.isArray(object.consensus_states)) + throw TypeError(".ibc.core.client.v1.QueryConsensusStatesResponse.consensus_states: array expected"); + message.consensus_states = []; + for (let i = 0; i < object.consensus_states.length; ++i) { + if (typeof object.consensus_states[i] !== "object") + throw TypeError(".ibc.core.client.v1.QueryConsensusStatesResponse.consensus_states: object expected"); + message.consensus_states[i] = $root.ibc.core.client.v1.ConsensusStateWithHeight.fromObject(object.consensus_states[i]); + } } - if (object.version != null) { - if (typeof object.version !== "object") - throw TypeError(".ibc.core.connection.v1.MsgConnectionOpenInit.version: object expected"); - message.version = $root.ibc.core.connection.v1.Version.fromObject(object.version); + if (object.pagination != null) { + if (typeof object.pagination !== "object") + throw TypeError(".ibc.core.client.v1.QueryConsensusStatesResponse.pagination: object expected"); + message.pagination = $root.cosmos.base.query.v1beta1.PageResponse.fromObject(object.pagination); } - if (object.delay_period != null) - if ($util.Long) - (message.delay_period = $util.Long.fromValue(object.delay_period)).unsigned = true; - else if (typeof object.delay_period === "string") - message.delay_period = parseInt(object.delay_period, 10); - else if (typeof object.delay_period === "number") - message.delay_period = object.delay_period; - else if (typeof object.delay_period === "object") - message.delay_period = new $util.LongBits(object.delay_period.low >>> 0, object.delay_period.high >>> 0).toNumber(true); - if (object.signer != null) - message.signer = String(object.signer); return message; }; /** - * Creates a plain object from a MsgConnectionOpenInit message. Also converts values to other types if specified. + * Creates a plain object from a QueryConsensusStatesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.connection.v1.MsgConnectionOpenInit + * @memberof ibc.core.client.v1.QueryConsensusStatesResponse * @static - * @param {ibc.core.connection.v1.MsgConnectionOpenInit} message MsgConnectionOpenInit + * @param {ibc.core.client.v1.QueryConsensusStatesResponse} message QueryConsensusStatesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MsgConnectionOpenInit.toObject = function toObject(message, options) { + QueryConsensusStatesResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) { - object.client_id = ""; - object.counterparty = null; - object.version = null; - if ($util.Long) { - let long = new $util.Long(0, 0, true); - object.delay_period = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.delay_period = options.longs === String ? "0" : 0; - object.signer = ""; + if (options.arrays || options.defaults) + object.consensus_states = []; + if (options.defaults) + object.pagination = null; + if (message.consensus_states && message.consensus_states.length) { + object.consensus_states = []; + for (let j = 0; j < message.consensus_states.length; ++j) + object.consensus_states[j] = $root.ibc.core.client.v1.ConsensusStateWithHeight.toObject(message.consensus_states[j], options); } - if (message.client_id != null && message.hasOwnProperty("client_id")) - object.client_id = message.client_id; - if (message.counterparty != null && message.hasOwnProperty("counterparty")) - object.counterparty = $root.ibc.core.connection.v1.Counterparty.toObject(message.counterparty, options); - if (message.version != null && message.hasOwnProperty("version")) - object.version = $root.ibc.core.connection.v1.Version.toObject(message.version, options); - if (message.delay_period != null && message.hasOwnProperty("delay_period")) - if (typeof message.delay_period === "number") - object.delay_period = options.longs === String ? String(message.delay_period) : message.delay_period; - else - object.delay_period = options.longs === String ? $util.Long.prototype.toString.call(message.delay_period) : options.longs === Number ? new $util.LongBits(message.delay_period.low >>> 0, message.delay_period.high >>> 0).toNumber(true) : message.delay_period; - if (message.signer != null && message.hasOwnProperty("signer")) - object.signer = message.signer; + if (message.pagination != null && message.hasOwnProperty("pagination")) + object.pagination = $root.cosmos.base.query.v1beta1.PageResponse.toObject(message.pagination, options); return object; }; /** - * Converts this MsgConnectionOpenInit to JSON. + * Converts this QueryConsensusStatesResponse to JSON. * @function toJSON - * @memberof ibc.core.connection.v1.MsgConnectionOpenInit + * @memberof ibc.core.client.v1.QueryConsensusStatesResponse * @instance * @returns {Object.} JSON object */ - MsgConnectionOpenInit.prototype.toJSON = function toJSON() { + QueryConsensusStatesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MsgConnectionOpenInit; + return QueryConsensusStatesResponse; })(); - v1.MsgConnectionOpenInitResponse = (function() { + v1.QueryConsensusStateHeightsRequest = (function() { /** - * Properties of a MsgConnectionOpenInitResponse. - * @memberof ibc.core.connection.v1 - * @interface IMsgConnectionOpenInitResponse + * Properties of a QueryConsensusStateHeightsRequest. + * @memberof ibc.core.client.v1 + * @interface IQueryConsensusStateHeightsRequest + * @property {string|null} [client_id] QueryConsensusStateHeightsRequest client_id + * @property {cosmos.base.query.v1beta1.IPageRequest|null} [pagination] QueryConsensusStateHeightsRequest pagination */ /** - * Constructs a new MsgConnectionOpenInitResponse. - * @memberof ibc.core.connection.v1 - * @classdesc Represents a MsgConnectionOpenInitResponse. - * @implements IMsgConnectionOpenInitResponse + * Constructs a new QueryConsensusStateHeightsRequest. + * @memberof ibc.core.client.v1 + * @classdesc Represents a QueryConsensusStateHeightsRequest. + * @implements IQueryConsensusStateHeightsRequest * @constructor - * @param {ibc.core.connection.v1.IMsgConnectionOpenInitResponse=} [properties] Properties to set + * @param {ibc.core.client.v1.IQueryConsensusStateHeightsRequest=} [properties] Properties to set */ - function MsgConnectionOpenInitResponse(properties) { + function QueryConsensusStateHeightsRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -57693,51 +64369,77 @@ export const ibc = $root.ibc = (() => { } /** - * Encodes the specified MsgConnectionOpenInitResponse message. Does not implicitly {@link ibc.core.connection.v1.MsgConnectionOpenInitResponse.verify|verify} messages. + * QueryConsensusStateHeightsRequest client_id. + * @member {string} client_id + * @memberof ibc.core.client.v1.QueryConsensusStateHeightsRequest + * @instance + */ + QueryConsensusStateHeightsRequest.prototype.client_id = ""; + + /** + * QueryConsensusStateHeightsRequest pagination. + * @member {cosmos.base.query.v1beta1.IPageRequest|null|undefined} pagination + * @memberof ibc.core.client.v1.QueryConsensusStateHeightsRequest + * @instance + */ + QueryConsensusStateHeightsRequest.prototype.pagination = null; + + /** + * Encodes the specified QueryConsensusStateHeightsRequest message. Does not implicitly {@link ibc.core.client.v1.QueryConsensusStateHeightsRequest.verify|verify} messages. * @function encode - * @memberof ibc.core.connection.v1.MsgConnectionOpenInitResponse + * @memberof ibc.core.client.v1.QueryConsensusStateHeightsRequest * @static - * @param {ibc.core.connection.v1.IMsgConnectionOpenInitResponse} message MsgConnectionOpenInitResponse message or plain object to encode + * @param {ibc.core.client.v1.IQueryConsensusStateHeightsRequest} message QueryConsensusStateHeightsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgConnectionOpenInitResponse.encode = function encode(message, writer) { + QueryConsensusStateHeightsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.client_id != null && Object.hasOwnProperty.call(message, "client_id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.client_id); + if (message.pagination != null && Object.hasOwnProperty.call(message, "pagination")) + $root.cosmos.base.query.v1beta1.PageRequest.encode(message.pagination, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified MsgConnectionOpenInitResponse message, length delimited. Does not implicitly {@link ibc.core.connection.v1.MsgConnectionOpenInitResponse.verify|verify} messages. + * Encodes the specified QueryConsensusStateHeightsRequest message, length delimited. Does not implicitly {@link ibc.core.client.v1.QueryConsensusStateHeightsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.connection.v1.MsgConnectionOpenInitResponse + * @memberof ibc.core.client.v1.QueryConsensusStateHeightsRequest * @static - * @param {ibc.core.connection.v1.IMsgConnectionOpenInitResponse} message MsgConnectionOpenInitResponse message or plain object to encode + * @param {ibc.core.client.v1.IQueryConsensusStateHeightsRequest} message QueryConsensusStateHeightsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgConnectionOpenInitResponse.encodeDelimited = function encodeDelimited(message, writer) { + QueryConsensusStateHeightsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MsgConnectionOpenInitResponse message from the specified reader or buffer. + * Decodes a QueryConsensusStateHeightsRequest message from the specified reader or buffer. * @function decode - * @memberof ibc.core.connection.v1.MsgConnectionOpenInitResponse + * @memberof ibc.core.client.v1.QueryConsensusStateHeightsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.connection.v1.MsgConnectionOpenInitResponse} MsgConnectionOpenInitResponse + * @returns {ibc.core.client.v1.QueryConsensusStateHeightsRequest} QueryConsensusStateHeightsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgConnectionOpenInitResponse.decode = function decode(reader, length) { + QueryConsensusStateHeightsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.connection.v1.MsgConnectionOpenInitResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.QueryConsensusStateHeightsRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { + case 1: + message.client_id = reader.string(); + break; + case 2: + message.pagination = $root.cosmos.base.query.v1beta1.PageRequest.decode(reader, reader.uint32()); + break; default: reader.skipType(tag & 7); break; @@ -57747,106 +64449,123 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a MsgConnectionOpenInitResponse message from the specified reader or buffer, length delimited. + * Decodes a QueryConsensusStateHeightsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.connection.v1.MsgConnectionOpenInitResponse + * @memberof ibc.core.client.v1.QueryConsensusStateHeightsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.connection.v1.MsgConnectionOpenInitResponse} MsgConnectionOpenInitResponse + * @returns {ibc.core.client.v1.QueryConsensusStateHeightsRequest} QueryConsensusStateHeightsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgConnectionOpenInitResponse.decodeDelimited = function decodeDelimited(reader) { + QueryConsensusStateHeightsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MsgConnectionOpenInitResponse message. + * Verifies a QueryConsensusStateHeightsRequest message. * @function verify - * @memberof ibc.core.connection.v1.MsgConnectionOpenInitResponse + * @memberof ibc.core.client.v1.QueryConsensusStateHeightsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MsgConnectionOpenInitResponse.verify = function verify(message) { + QueryConsensusStateHeightsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.client_id != null && message.hasOwnProperty("client_id")) + if (!$util.isString(message.client_id)) + return "client_id: string expected"; + if (message.pagination != null && message.hasOwnProperty("pagination")) { + let error = $root.cosmos.base.query.v1beta1.PageRequest.verify(message.pagination); + if (error) + return "pagination." + error; + } return null; }; /** - * Creates a MsgConnectionOpenInitResponse message from a plain object. Also converts values to their respective internal types. + * Creates a QueryConsensusStateHeightsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.connection.v1.MsgConnectionOpenInitResponse + * @memberof ibc.core.client.v1.QueryConsensusStateHeightsRequest * @static * @param {Object.} object Plain object - * @returns {ibc.core.connection.v1.MsgConnectionOpenInitResponse} MsgConnectionOpenInitResponse + * @returns {ibc.core.client.v1.QueryConsensusStateHeightsRequest} QueryConsensusStateHeightsRequest */ - MsgConnectionOpenInitResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.connection.v1.MsgConnectionOpenInitResponse) + QueryConsensusStateHeightsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.client.v1.QueryConsensusStateHeightsRequest) return object; - return new $root.ibc.core.connection.v1.MsgConnectionOpenInitResponse(); + let message = new $root.ibc.core.client.v1.QueryConsensusStateHeightsRequest(); + if (object.client_id != null) + message.client_id = String(object.client_id); + if (object.pagination != null) { + if (typeof object.pagination !== "object") + throw TypeError(".ibc.core.client.v1.QueryConsensusStateHeightsRequest.pagination: object expected"); + message.pagination = $root.cosmos.base.query.v1beta1.PageRequest.fromObject(object.pagination); + } + return message; }; /** - * Creates a plain object from a MsgConnectionOpenInitResponse message. Also converts values to other types if specified. + * Creates a plain object from a QueryConsensusStateHeightsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.connection.v1.MsgConnectionOpenInitResponse + * @memberof ibc.core.client.v1.QueryConsensusStateHeightsRequest * @static - * @param {ibc.core.connection.v1.MsgConnectionOpenInitResponse} message MsgConnectionOpenInitResponse + * @param {ibc.core.client.v1.QueryConsensusStateHeightsRequest} message QueryConsensusStateHeightsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MsgConnectionOpenInitResponse.toObject = function toObject() { - return {}; + QueryConsensusStateHeightsRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + object.client_id = ""; + object.pagination = null; + } + if (message.client_id != null && message.hasOwnProperty("client_id")) + object.client_id = message.client_id; + if (message.pagination != null && message.hasOwnProperty("pagination")) + object.pagination = $root.cosmos.base.query.v1beta1.PageRequest.toObject(message.pagination, options); + return object; }; /** - * Converts this MsgConnectionOpenInitResponse to JSON. + * Converts this QueryConsensusStateHeightsRequest to JSON. * @function toJSON - * @memberof ibc.core.connection.v1.MsgConnectionOpenInitResponse + * @memberof ibc.core.client.v1.QueryConsensusStateHeightsRequest * @instance * @returns {Object.} JSON object */ - MsgConnectionOpenInitResponse.prototype.toJSON = function toJSON() { + QueryConsensusStateHeightsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MsgConnectionOpenInitResponse; + return QueryConsensusStateHeightsRequest; })(); - v1.MsgConnectionOpenTry = (function() { + v1.QueryConsensusStateHeightsResponse = (function() { /** - * Properties of a MsgConnectionOpenTry. - * @memberof ibc.core.connection.v1 - * @interface IMsgConnectionOpenTry - * @property {string|null} [client_id] MsgConnectionOpenTry client_id - * @property {string|null} [previous_connection_id] MsgConnectionOpenTry previous_connection_id - * @property {google.protobuf.IAny|null} [client_state] MsgConnectionOpenTry client_state - * @property {ibc.core.connection.v1.ICounterparty|null} [counterparty] MsgConnectionOpenTry counterparty - * @property {Long|null} [delay_period] MsgConnectionOpenTry delay_period - * @property {Array.|null} [counterparty_versions] MsgConnectionOpenTry counterparty_versions - * @property {ibc.core.client.v1.IHeight|null} [proof_height] MsgConnectionOpenTry proof_height - * @property {Uint8Array|null} [proof_init] MsgConnectionOpenTry proof_init - * @property {Uint8Array|null} [proof_client] MsgConnectionOpenTry proof_client - * @property {Uint8Array|null} [proof_consensus] MsgConnectionOpenTry proof_consensus - * @property {ibc.core.client.v1.IHeight|null} [consensus_height] MsgConnectionOpenTry consensus_height - * @property {string|null} [signer] MsgConnectionOpenTry signer + * Properties of a QueryConsensusStateHeightsResponse. + * @memberof ibc.core.client.v1 + * @interface IQueryConsensusStateHeightsResponse + * @property {Array.|null} [consensus_state_heights] QueryConsensusStateHeightsResponse consensus_state_heights + * @property {cosmos.base.query.v1beta1.IPageResponse|null} [pagination] QueryConsensusStateHeightsResponse pagination */ /** - * Constructs a new MsgConnectionOpenTry. - * @memberof ibc.core.connection.v1 - * @classdesc Represents a MsgConnectionOpenTry. - * @implements IMsgConnectionOpenTry + * Constructs a new QueryConsensusStateHeightsResponse. + * @memberof ibc.core.client.v1 + * @classdesc Represents a QueryConsensusStateHeightsResponse. + * @implements IQueryConsensusStateHeightsResponse * @constructor - * @param {ibc.core.connection.v1.IMsgConnectionOpenTry=} [properties] Properties to set + * @param {ibc.core.client.v1.IQueryConsensusStateHeightsResponse=} [properties] Properties to set */ - function MsgConnectionOpenTry(properties) { - this.counterparty_versions = []; + function QueryConsensusStateHeightsResponse(properties) { + this.consensus_state_heights = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -57854,209 +64573,79 @@ export const ibc = $root.ibc = (() => { } /** - * MsgConnectionOpenTry client_id. - * @member {string} client_id - * @memberof ibc.core.connection.v1.MsgConnectionOpenTry - * @instance - */ - MsgConnectionOpenTry.prototype.client_id = ""; - - /** - * MsgConnectionOpenTry previous_connection_id. - * @member {string} previous_connection_id - * @memberof ibc.core.connection.v1.MsgConnectionOpenTry - * @instance - */ - MsgConnectionOpenTry.prototype.previous_connection_id = ""; - - /** - * MsgConnectionOpenTry client_state. - * @member {google.protobuf.IAny|null|undefined} client_state - * @memberof ibc.core.connection.v1.MsgConnectionOpenTry - * @instance - */ - MsgConnectionOpenTry.prototype.client_state = null; - - /** - * MsgConnectionOpenTry counterparty. - * @member {ibc.core.connection.v1.ICounterparty|null|undefined} counterparty - * @memberof ibc.core.connection.v1.MsgConnectionOpenTry - * @instance - */ - MsgConnectionOpenTry.prototype.counterparty = null; - - /** - * MsgConnectionOpenTry delay_period. - * @member {Long} delay_period - * @memberof ibc.core.connection.v1.MsgConnectionOpenTry - * @instance - */ - MsgConnectionOpenTry.prototype.delay_period = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * MsgConnectionOpenTry counterparty_versions. - * @member {Array.} counterparty_versions - * @memberof ibc.core.connection.v1.MsgConnectionOpenTry - * @instance - */ - MsgConnectionOpenTry.prototype.counterparty_versions = $util.emptyArray; - - /** - * MsgConnectionOpenTry proof_height. - * @member {ibc.core.client.v1.IHeight|null|undefined} proof_height - * @memberof ibc.core.connection.v1.MsgConnectionOpenTry - * @instance - */ - MsgConnectionOpenTry.prototype.proof_height = null; - - /** - * MsgConnectionOpenTry proof_init. - * @member {Uint8Array} proof_init - * @memberof ibc.core.connection.v1.MsgConnectionOpenTry - * @instance - */ - MsgConnectionOpenTry.prototype.proof_init = $util.newBuffer([]); - - /** - * MsgConnectionOpenTry proof_client. - * @member {Uint8Array} proof_client - * @memberof ibc.core.connection.v1.MsgConnectionOpenTry - * @instance - */ - MsgConnectionOpenTry.prototype.proof_client = $util.newBuffer([]); - - /** - * MsgConnectionOpenTry proof_consensus. - * @member {Uint8Array} proof_consensus - * @memberof ibc.core.connection.v1.MsgConnectionOpenTry - * @instance - */ - MsgConnectionOpenTry.prototype.proof_consensus = $util.newBuffer([]); - - /** - * MsgConnectionOpenTry consensus_height. - * @member {ibc.core.client.v1.IHeight|null|undefined} consensus_height - * @memberof ibc.core.connection.v1.MsgConnectionOpenTry + * QueryConsensusStateHeightsResponse consensus_state_heights. + * @member {Array.} consensus_state_heights + * @memberof ibc.core.client.v1.QueryConsensusStateHeightsResponse * @instance */ - MsgConnectionOpenTry.prototype.consensus_height = null; + QueryConsensusStateHeightsResponse.prototype.consensus_state_heights = $util.emptyArray; /** - * MsgConnectionOpenTry signer. - * @member {string} signer - * @memberof ibc.core.connection.v1.MsgConnectionOpenTry + * QueryConsensusStateHeightsResponse pagination. + * @member {cosmos.base.query.v1beta1.IPageResponse|null|undefined} pagination + * @memberof ibc.core.client.v1.QueryConsensusStateHeightsResponse * @instance */ - MsgConnectionOpenTry.prototype.signer = ""; + QueryConsensusStateHeightsResponse.prototype.pagination = null; /** - * Encodes the specified MsgConnectionOpenTry message. Does not implicitly {@link ibc.core.connection.v1.MsgConnectionOpenTry.verify|verify} messages. - * @function encode - * @memberof ibc.core.connection.v1.MsgConnectionOpenTry - * @static - * @param {ibc.core.connection.v1.IMsgConnectionOpenTry} message MsgConnectionOpenTry message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MsgConnectionOpenTry.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.client_id != null && Object.hasOwnProperty.call(message, "client_id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.client_id); - if (message.previous_connection_id != null && Object.hasOwnProperty.call(message, "previous_connection_id")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.previous_connection_id); - if (message.client_state != null && Object.hasOwnProperty.call(message, "client_state")) - $root.google.protobuf.Any.encode(message.client_state, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.counterparty != null && Object.hasOwnProperty.call(message, "counterparty")) - $root.ibc.core.connection.v1.Counterparty.encode(message.counterparty, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.delay_period != null && Object.hasOwnProperty.call(message, "delay_period")) - writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.delay_period); - if (message.counterparty_versions != null && message.counterparty_versions.length) - for (let i = 0; i < message.counterparty_versions.length; ++i) - $root.ibc.core.connection.v1.Version.encode(message.counterparty_versions[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.proof_height != null && Object.hasOwnProperty.call(message, "proof_height")) - $root.ibc.core.client.v1.Height.encode(message.proof_height, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.proof_init != null && Object.hasOwnProperty.call(message, "proof_init")) - writer.uint32(/* id 8, wireType 2 =*/66).bytes(message.proof_init); - if (message.proof_client != null && Object.hasOwnProperty.call(message, "proof_client")) - writer.uint32(/* id 9, wireType 2 =*/74).bytes(message.proof_client); - if (message.proof_consensus != null && Object.hasOwnProperty.call(message, "proof_consensus")) - writer.uint32(/* id 10, wireType 2 =*/82).bytes(message.proof_consensus); - if (message.consensus_height != null && Object.hasOwnProperty.call(message, "consensus_height")) - $root.ibc.core.client.v1.Height.encode(message.consensus_height, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); - if (message.signer != null && Object.hasOwnProperty.call(message, "signer")) - writer.uint32(/* id 12, wireType 2 =*/98).string(message.signer); + * Encodes the specified QueryConsensusStateHeightsResponse message. Does not implicitly {@link ibc.core.client.v1.QueryConsensusStateHeightsResponse.verify|verify} messages. + * @function encode + * @memberof ibc.core.client.v1.QueryConsensusStateHeightsResponse + * @static + * @param {ibc.core.client.v1.IQueryConsensusStateHeightsResponse} message QueryConsensusStateHeightsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + QueryConsensusStateHeightsResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.consensus_state_heights != null && message.consensus_state_heights.length) + for (let i = 0; i < message.consensus_state_heights.length; ++i) + $root.ibc.core.client.v1.Height.encode(message.consensus_state_heights[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.pagination != null && Object.hasOwnProperty.call(message, "pagination")) + $root.cosmos.base.query.v1beta1.PageResponse.encode(message.pagination, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified MsgConnectionOpenTry message, length delimited. Does not implicitly {@link ibc.core.connection.v1.MsgConnectionOpenTry.verify|verify} messages. + * Encodes the specified QueryConsensusStateHeightsResponse message, length delimited. Does not implicitly {@link ibc.core.client.v1.QueryConsensusStateHeightsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.connection.v1.MsgConnectionOpenTry + * @memberof ibc.core.client.v1.QueryConsensusStateHeightsResponse * @static - * @param {ibc.core.connection.v1.IMsgConnectionOpenTry} message MsgConnectionOpenTry message or plain object to encode + * @param {ibc.core.client.v1.IQueryConsensusStateHeightsResponse} message QueryConsensusStateHeightsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgConnectionOpenTry.encodeDelimited = function encodeDelimited(message, writer) { + QueryConsensusStateHeightsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MsgConnectionOpenTry message from the specified reader or buffer. + * Decodes a QueryConsensusStateHeightsResponse message from the specified reader or buffer. * @function decode - * @memberof ibc.core.connection.v1.MsgConnectionOpenTry + * @memberof ibc.core.client.v1.QueryConsensusStateHeightsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.connection.v1.MsgConnectionOpenTry} MsgConnectionOpenTry + * @returns {ibc.core.client.v1.QueryConsensusStateHeightsResponse} QueryConsensusStateHeightsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgConnectionOpenTry.decode = function decode(reader, length) { + QueryConsensusStateHeightsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.connection.v1.MsgConnectionOpenTry(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.QueryConsensusStateHeightsResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.client_id = reader.string(); + if (!(message.consensus_state_heights && message.consensus_state_heights.length)) + message.consensus_state_heights = []; + message.consensus_state_heights.push($root.ibc.core.client.v1.Height.decode(reader, reader.uint32())); break; case 2: - message.previous_connection_id = reader.string(); - break; - case 3: - message.client_state = $root.google.protobuf.Any.decode(reader, reader.uint32()); - break; - case 4: - message.counterparty = $root.ibc.core.connection.v1.Counterparty.decode(reader, reader.uint32()); - break; - case 5: - message.delay_period = reader.uint64(); - break; - case 6: - if (!(message.counterparty_versions && message.counterparty_versions.length)) - message.counterparty_versions = []; - message.counterparty_versions.push($root.ibc.core.connection.v1.Version.decode(reader, reader.uint32())); - break; - case 7: - message.proof_height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); - break; - case 8: - message.proof_init = reader.bytes(); - break; - case 9: - message.proof_client = reader.bytes(); - break; - case 10: - message.proof_consensus = reader.bytes(); - break; - case 11: - message.consensus_height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); - break; - case 12: - message.signer = reader.string(); + message.pagination = $root.cosmos.base.query.v1beta1.PageResponse.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -58067,274 +64656,138 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a MsgConnectionOpenTry message from the specified reader or buffer, length delimited. + * Decodes a QueryConsensusStateHeightsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.connection.v1.MsgConnectionOpenTry + * @memberof ibc.core.client.v1.QueryConsensusStateHeightsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.connection.v1.MsgConnectionOpenTry} MsgConnectionOpenTry + * @returns {ibc.core.client.v1.QueryConsensusStateHeightsResponse} QueryConsensusStateHeightsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgConnectionOpenTry.decodeDelimited = function decodeDelimited(reader) { + QueryConsensusStateHeightsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MsgConnectionOpenTry message. + * Verifies a QueryConsensusStateHeightsResponse message. * @function verify - * @memberof ibc.core.connection.v1.MsgConnectionOpenTry + * @memberof ibc.core.client.v1.QueryConsensusStateHeightsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MsgConnectionOpenTry.verify = function verify(message) { + QueryConsensusStateHeightsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.client_id != null && message.hasOwnProperty("client_id")) - if (!$util.isString(message.client_id)) - return "client_id: string expected"; - if (message.previous_connection_id != null && message.hasOwnProperty("previous_connection_id")) - if (!$util.isString(message.previous_connection_id)) - return "previous_connection_id: string expected"; - if (message.client_state != null && message.hasOwnProperty("client_state")) { - let error = $root.google.protobuf.Any.verify(message.client_state); - if (error) - return "client_state." + error; - } - if (message.counterparty != null && message.hasOwnProperty("counterparty")) { - let error = $root.ibc.core.connection.v1.Counterparty.verify(message.counterparty); - if (error) - return "counterparty." + error; - } - if (message.delay_period != null && message.hasOwnProperty("delay_period")) - if (!$util.isInteger(message.delay_period) && !(message.delay_period && $util.isInteger(message.delay_period.low) && $util.isInteger(message.delay_period.high))) - return "delay_period: integer|Long expected"; - if (message.counterparty_versions != null && message.hasOwnProperty("counterparty_versions")) { - if (!Array.isArray(message.counterparty_versions)) - return "counterparty_versions: array expected"; - for (let i = 0; i < message.counterparty_versions.length; ++i) { - let error = $root.ibc.core.connection.v1.Version.verify(message.counterparty_versions[i]); + if (message.consensus_state_heights != null && message.hasOwnProperty("consensus_state_heights")) { + if (!Array.isArray(message.consensus_state_heights)) + return "consensus_state_heights: array expected"; + for (let i = 0; i < message.consensus_state_heights.length; ++i) { + let error = $root.ibc.core.client.v1.Height.verify(message.consensus_state_heights[i]); if (error) - return "counterparty_versions." + error; + return "consensus_state_heights." + error; } } - if (message.proof_height != null && message.hasOwnProperty("proof_height")) { - let error = $root.ibc.core.client.v1.Height.verify(message.proof_height); - if (error) - return "proof_height." + error; - } - if (message.proof_init != null && message.hasOwnProperty("proof_init")) - if (!(message.proof_init && typeof message.proof_init.length === "number" || $util.isString(message.proof_init))) - return "proof_init: buffer expected"; - if (message.proof_client != null && message.hasOwnProperty("proof_client")) - if (!(message.proof_client && typeof message.proof_client.length === "number" || $util.isString(message.proof_client))) - return "proof_client: buffer expected"; - if (message.proof_consensus != null && message.hasOwnProperty("proof_consensus")) - if (!(message.proof_consensus && typeof message.proof_consensus.length === "number" || $util.isString(message.proof_consensus))) - return "proof_consensus: buffer expected"; - if (message.consensus_height != null && message.hasOwnProperty("consensus_height")) { - let error = $root.ibc.core.client.v1.Height.verify(message.consensus_height); + if (message.pagination != null && message.hasOwnProperty("pagination")) { + let error = $root.cosmos.base.query.v1beta1.PageResponse.verify(message.pagination); if (error) - return "consensus_height." + error; + return "pagination." + error; } - if (message.signer != null && message.hasOwnProperty("signer")) - if (!$util.isString(message.signer)) - return "signer: string expected"; return null; }; /** - * Creates a MsgConnectionOpenTry message from a plain object. Also converts values to their respective internal types. + * Creates a QueryConsensusStateHeightsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.connection.v1.MsgConnectionOpenTry + * @memberof ibc.core.client.v1.QueryConsensusStateHeightsResponse * @static * @param {Object.} object Plain object - * @returns {ibc.core.connection.v1.MsgConnectionOpenTry} MsgConnectionOpenTry + * @returns {ibc.core.client.v1.QueryConsensusStateHeightsResponse} QueryConsensusStateHeightsResponse */ - MsgConnectionOpenTry.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.connection.v1.MsgConnectionOpenTry) + QueryConsensusStateHeightsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.client.v1.QueryConsensusStateHeightsResponse) return object; - let message = new $root.ibc.core.connection.v1.MsgConnectionOpenTry(); - if (object.client_id != null) - message.client_id = String(object.client_id); - if (object.previous_connection_id != null) - message.previous_connection_id = String(object.previous_connection_id); - if (object.client_state != null) { - if (typeof object.client_state !== "object") - throw TypeError(".ibc.core.connection.v1.MsgConnectionOpenTry.client_state: object expected"); - message.client_state = $root.google.protobuf.Any.fromObject(object.client_state); - } - if (object.counterparty != null) { - if (typeof object.counterparty !== "object") - throw TypeError(".ibc.core.connection.v1.MsgConnectionOpenTry.counterparty: object expected"); - message.counterparty = $root.ibc.core.connection.v1.Counterparty.fromObject(object.counterparty); - } - if (object.delay_period != null) - if ($util.Long) - (message.delay_period = $util.Long.fromValue(object.delay_period)).unsigned = true; - else if (typeof object.delay_period === "string") - message.delay_period = parseInt(object.delay_period, 10); - else if (typeof object.delay_period === "number") - message.delay_period = object.delay_period; - else if (typeof object.delay_period === "object") - message.delay_period = new $util.LongBits(object.delay_period.low >>> 0, object.delay_period.high >>> 0).toNumber(true); - if (object.counterparty_versions) { - if (!Array.isArray(object.counterparty_versions)) - throw TypeError(".ibc.core.connection.v1.MsgConnectionOpenTry.counterparty_versions: array expected"); - message.counterparty_versions = []; - for (let i = 0; i < object.counterparty_versions.length; ++i) { - if (typeof object.counterparty_versions[i] !== "object") - throw TypeError(".ibc.core.connection.v1.MsgConnectionOpenTry.counterparty_versions: object expected"); - message.counterparty_versions[i] = $root.ibc.core.connection.v1.Version.fromObject(object.counterparty_versions[i]); + let message = new $root.ibc.core.client.v1.QueryConsensusStateHeightsResponse(); + if (object.consensus_state_heights) { + if (!Array.isArray(object.consensus_state_heights)) + throw TypeError(".ibc.core.client.v1.QueryConsensusStateHeightsResponse.consensus_state_heights: array expected"); + message.consensus_state_heights = []; + for (let i = 0; i < object.consensus_state_heights.length; ++i) { + if (typeof object.consensus_state_heights[i] !== "object") + throw TypeError(".ibc.core.client.v1.QueryConsensusStateHeightsResponse.consensus_state_heights: object expected"); + message.consensus_state_heights[i] = $root.ibc.core.client.v1.Height.fromObject(object.consensus_state_heights[i]); } } - if (object.proof_height != null) { - if (typeof object.proof_height !== "object") - throw TypeError(".ibc.core.connection.v1.MsgConnectionOpenTry.proof_height: object expected"); - message.proof_height = $root.ibc.core.client.v1.Height.fromObject(object.proof_height); - } - if (object.proof_init != null) - if (typeof object.proof_init === "string") - $util.base64.decode(object.proof_init, message.proof_init = $util.newBuffer($util.base64.length(object.proof_init)), 0); - else if (object.proof_init.length) - message.proof_init = object.proof_init; - if (object.proof_client != null) - if (typeof object.proof_client === "string") - $util.base64.decode(object.proof_client, message.proof_client = $util.newBuffer($util.base64.length(object.proof_client)), 0); - else if (object.proof_client.length) - message.proof_client = object.proof_client; - if (object.proof_consensus != null) - if (typeof object.proof_consensus === "string") - $util.base64.decode(object.proof_consensus, message.proof_consensus = $util.newBuffer($util.base64.length(object.proof_consensus)), 0); - else if (object.proof_consensus.length) - message.proof_consensus = object.proof_consensus; - if (object.consensus_height != null) { - if (typeof object.consensus_height !== "object") - throw TypeError(".ibc.core.connection.v1.MsgConnectionOpenTry.consensus_height: object expected"); - message.consensus_height = $root.ibc.core.client.v1.Height.fromObject(object.consensus_height); + if (object.pagination != null) { + if (typeof object.pagination !== "object") + throw TypeError(".ibc.core.client.v1.QueryConsensusStateHeightsResponse.pagination: object expected"); + message.pagination = $root.cosmos.base.query.v1beta1.PageResponse.fromObject(object.pagination); } - if (object.signer != null) - message.signer = String(object.signer); return message; }; /** - * Creates a plain object from a MsgConnectionOpenTry message. Also converts values to other types if specified. + * Creates a plain object from a QueryConsensusStateHeightsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.connection.v1.MsgConnectionOpenTry + * @memberof ibc.core.client.v1.QueryConsensusStateHeightsResponse * @static - * @param {ibc.core.connection.v1.MsgConnectionOpenTry} message MsgConnectionOpenTry + * @param {ibc.core.client.v1.QueryConsensusStateHeightsResponse} message QueryConsensusStateHeightsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MsgConnectionOpenTry.toObject = function toObject(message, options) { + QueryConsensusStateHeightsResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) - object.counterparty_versions = []; - if (options.defaults) { - object.client_id = ""; - object.previous_connection_id = ""; - object.client_state = null; - object.counterparty = null; - if ($util.Long) { - let long = new $util.Long(0, 0, true); - object.delay_period = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.delay_period = options.longs === String ? "0" : 0; - object.proof_height = null; - if (options.bytes === String) - object.proof_init = ""; - else { - object.proof_init = []; - if (options.bytes !== Array) - object.proof_init = $util.newBuffer(object.proof_init); - } - if (options.bytes === String) - object.proof_client = ""; - else { - object.proof_client = []; - if (options.bytes !== Array) - object.proof_client = $util.newBuffer(object.proof_client); - } - if (options.bytes === String) - object.proof_consensus = ""; - else { - object.proof_consensus = []; - if (options.bytes !== Array) - object.proof_consensus = $util.newBuffer(object.proof_consensus); - } - object.consensus_height = null; - object.signer = ""; - } - if (message.client_id != null && message.hasOwnProperty("client_id")) - object.client_id = message.client_id; - if (message.previous_connection_id != null && message.hasOwnProperty("previous_connection_id")) - object.previous_connection_id = message.previous_connection_id; - if (message.client_state != null && message.hasOwnProperty("client_state")) - object.client_state = $root.google.protobuf.Any.toObject(message.client_state, options); - if (message.counterparty != null && message.hasOwnProperty("counterparty")) - object.counterparty = $root.ibc.core.connection.v1.Counterparty.toObject(message.counterparty, options); - if (message.delay_period != null && message.hasOwnProperty("delay_period")) - if (typeof message.delay_period === "number") - object.delay_period = options.longs === String ? String(message.delay_period) : message.delay_period; - else - object.delay_period = options.longs === String ? $util.Long.prototype.toString.call(message.delay_period) : options.longs === Number ? new $util.LongBits(message.delay_period.low >>> 0, message.delay_period.high >>> 0).toNumber(true) : message.delay_period; - if (message.counterparty_versions && message.counterparty_versions.length) { - object.counterparty_versions = []; - for (let j = 0; j < message.counterparty_versions.length; ++j) - object.counterparty_versions[j] = $root.ibc.core.connection.v1.Version.toObject(message.counterparty_versions[j], options); + object.consensus_state_heights = []; + if (options.defaults) + object.pagination = null; + if (message.consensus_state_heights && message.consensus_state_heights.length) { + object.consensus_state_heights = []; + for (let j = 0; j < message.consensus_state_heights.length; ++j) + object.consensus_state_heights[j] = $root.ibc.core.client.v1.Height.toObject(message.consensus_state_heights[j], options); } - if (message.proof_height != null && message.hasOwnProperty("proof_height")) - object.proof_height = $root.ibc.core.client.v1.Height.toObject(message.proof_height, options); - if (message.proof_init != null && message.hasOwnProperty("proof_init")) - object.proof_init = options.bytes === String ? $util.base64.encode(message.proof_init, 0, message.proof_init.length) : options.bytes === Array ? Array.prototype.slice.call(message.proof_init) : message.proof_init; - if (message.proof_client != null && message.hasOwnProperty("proof_client")) - object.proof_client = options.bytes === String ? $util.base64.encode(message.proof_client, 0, message.proof_client.length) : options.bytes === Array ? Array.prototype.slice.call(message.proof_client) : message.proof_client; - if (message.proof_consensus != null && message.hasOwnProperty("proof_consensus")) - object.proof_consensus = options.bytes === String ? $util.base64.encode(message.proof_consensus, 0, message.proof_consensus.length) : options.bytes === Array ? Array.prototype.slice.call(message.proof_consensus) : message.proof_consensus; - if (message.consensus_height != null && message.hasOwnProperty("consensus_height")) - object.consensus_height = $root.ibc.core.client.v1.Height.toObject(message.consensus_height, options); - if (message.signer != null && message.hasOwnProperty("signer")) - object.signer = message.signer; + if (message.pagination != null && message.hasOwnProperty("pagination")) + object.pagination = $root.cosmos.base.query.v1beta1.PageResponse.toObject(message.pagination, options); return object; }; /** - * Converts this MsgConnectionOpenTry to JSON. + * Converts this QueryConsensusStateHeightsResponse to JSON. * @function toJSON - * @memberof ibc.core.connection.v1.MsgConnectionOpenTry + * @memberof ibc.core.client.v1.QueryConsensusStateHeightsResponse * @instance * @returns {Object.} JSON object */ - MsgConnectionOpenTry.prototype.toJSON = function toJSON() { + QueryConsensusStateHeightsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MsgConnectionOpenTry; + return QueryConsensusStateHeightsResponse; })(); - v1.MsgConnectionOpenTryResponse = (function() { + v1.QueryClientStatusRequest = (function() { /** - * Properties of a MsgConnectionOpenTryResponse. - * @memberof ibc.core.connection.v1 - * @interface IMsgConnectionOpenTryResponse + * Properties of a QueryClientStatusRequest. + * @memberof ibc.core.client.v1 + * @interface IQueryClientStatusRequest + * @property {string|null} [client_id] QueryClientStatusRequest client_id */ /** - * Constructs a new MsgConnectionOpenTryResponse. - * @memberof ibc.core.connection.v1 - * @classdesc Represents a MsgConnectionOpenTryResponse. - * @implements IMsgConnectionOpenTryResponse + * Constructs a new QueryClientStatusRequest. + * @memberof ibc.core.client.v1 + * @classdesc Represents a QueryClientStatusRequest. + * @implements IQueryClientStatusRequest * @constructor - * @param {ibc.core.connection.v1.IMsgConnectionOpenTryResponse=} [properties] Properties to set + * @param {ibc.core.client.v1.IQueryClientStatusRequest=} [properties] Properties to set */ - function MsgConnectionOpenTryResponse(properties) { + function QueryClientStatusRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -58342,51 +64795,64 @@ export const ibc = $root.ibc = (() => { } /** - * Encodes the specified MsgConnectionOpenTryResponse message. Does not implicitly {@link ibc.core.connection.v1.MsgConnectionOpenTryResponse.verify|verify} messages. + * QueryClientStatusRequest client_id. + * @member {string} client_id + * @memberof ibc.core.client.v1.QueryClientStatusRequest + * @instance + */ + QueryClientStatusRequest.prototype.client_id = ""; + + /** + * Encodes the specified QueryClientStatusRequest message. Does not implicitly {@link ibc.core.client.v1.QueryClientStatusRequest.verify|verify} messages. * @function encode - * @memberof ibc.core.connection.v1.MsgConnectionOpenTryResponse + * @memberof ibc.core.client.v1.QueryClientStatusRequest * @static - * @param {ibc.core.connection.v1.IMsgConnectionOpenTryResponse} message MsgConnectionOpenTryResponse message or plain object to encode + * @param {ibc.core.client.v1.IQueryClientStatusRequest} message QueryClientStatusRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgConnectionOpenTryResponse.encode = function encode(message, writer) { + QueryClientStatusRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.client_id != null && Object.hasOwnProperty.call(message, "client_id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.client_id); return writer; }; /** - * Encodes the specified MsgConnectionOpenTryResponse message, length delimited. Does not implicitly {@link ibc.core.connection.v1.MsgConnectionOpenTryResponse.verify|verify} messages. + * Encodes the specified QueryClientStatusRequest message, length delimited. Does not implicitly {@link ibc.core.client.v1.QueryClientStatusRequest.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.connection.v1.MsgConnectionOpenTryResponse + * @memberof ibc.core.client.v1.QueryClientStatusRequest * @static - * @param {ibc.core.connection.v1.IMsgConnectionOpenTryResponse} message MsgConnectionOpenTryResponse message or plain object to encode + * @param {ibc.core.client.v1.IQueryClientStatusRequest} message QueryClientStatusRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgConnectionOpenTryResponse.encodeDelimited = function encodeDelimited(message, writer) { + QueryClientStatusRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MsgConnectionOpenTryResponse message from the specified reader or buffer. + * Decodes a QueryClientStatusRequest message from the specified reader or buffer. * @function decode - * @memberof ibc.core.connection.v1.MsgConnectionOpenTryResponse + * @memberof ibc.core.client.v1.QueryClientStatusRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.connection.v1.MsgConnectionOpenTryResponse} MsgConnectionOpenTryResponse + * @returns {ibc.core.client.v1.QueryClientStatusRequest} QueryClientStatusRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgConnectionOpenTryResponse.decode = function decode(reader, length) { + QueryClientStatusRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.connection.v1.MsgConnectionOpenTryResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.QueryClientStatusRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { + case 1: + message.client_id = reader.string(); + break; default: reader.skipType(tag & 7); break; @@ -58396,284 +64862,171 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a MsgConnectionOpenTryResponse message from the specified reader or buffer, length delimited. + * Decodes a QueryClientStatusRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.connection.v1.MsgConnectionOpenTryResponse + * @memberof ibc.core.client.v1.QueryClientStatusRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.connection.v1.MsgConnectionOpenTryResponse} MsgConnectionOpenTryResponse + * @returns {ibc.core.client.v1.QueryClientStatusRequest} QueryClientStatusRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgConnectionOpenTryResponse.decodeDelimited = function decodeDelimited(reader) { + QueryClientStatusRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MsgConnectionOpenTryResponse message. + * Verifies a QueryClientStatusRequest message. * @function verify - * @memberof ibc.core.connection.v1.MsgConnectionOpenTryResponse + * @memberof ibc.core.client.v1.QueryClientStatusRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MsgConnectionOpenTryResponse.verify = function verify(message) { + QueryClientStatusRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.client_id != null && message.hasOwnProperty("client_id")) + if (!$util.isString(message.client_id)) + return "client_id: string expected"; return null; }; /** - * Creates a MsgConnectionOpenTryResponse message from a plain object. Also converts values to their respective internal types. + * Creates a QueryClientStatusRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.connection.v1.MsgConnectionOpenTryResponse + * @memberof ibc.core.client.v1.QueryClientStatusRequest * @static * @param {Object.} object Plain object - * @returns {ibc.core.connection.v1.MsgConnectionOpenTryResponse} MsgConnectionOpenTryResponse + * @returns {ibc.core.client.v1.QueryClientStatusRequest} QueryClientStatusRequest */ - MsgConnectionOpenTryResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.connection.v1.MsgConnectionOpenTryResponse) + QueryClientStatusRequest.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.client.v1.QueryClientStatusRequest) return object; - return new $root.ibc.core.connection.v1.MsgConnectionOpenTryResponse(); + let message = new $root.ibc.core.client.v1.QueryClientStatusRequest(); + if (object.client_id != null) + message.client_id = String(object.client_id); + return message; }; /** - * Creates a plain object from a MsgConnectionOpenTryResponse message. Also converts values to other types if specified. + * Creates a plain object from a QueryClientStatusRequest message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.connection.v1.MsgConnectionOpenTryResponse + * @memberof ibc.core.client.v1.QueryClientStatusRequest * @static - * @param {ibc.core.connection.v1.MsgConnectionOpenTryResponse} message MsgConnectionOpenTryResponse + * @param {ibc.core.client.v1.QueryClientStatusRequest} message QueryClientStatusRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MsgConnectionOpenTryResponse.toObject = function toObject() { - return {}; - }; - - /** - * Converts this MsgConnectionOpenTryResponse to JSON. - * @function toJSON - * @memberof ibc.core.connection.v1.MsgConnectionOpenTryResponse - * @instance - * @returns {Object.} JSON object - */ - MsgConnectionOpenTryResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return MsgConnectionOpenTryResponse; - })(); - - v1.MsgConnectionOpenAck = (function() { - - /** - * Properties of a MsgConnectionOpenAck. - * @memberof ibc.core.connection.v1 - * @interface IMsgConnectionOpenAck - * @property {string|null} [connection_id] MsgConnectionOpenAck connection_id - * @property {string|null} [counterparty_connection_id] MsgConnectionOpenAck counterparty_connection_id - * @property {ibc.core.connection.v1.IVersion|null} [version] MsgConnectionOpenAck version - * @property {google.protobuf.IAny|null} [client_state] MsgConnectionOpenAck client_state - * @property {ibc.core.client.v1.IHeight|null} [proof_height] MsgConnectionOpenAck proof_height - * @property {Uint8Array|null} [proof_try] MsgConnectionOpenAck proof_try - * @property {Uint8Array|null} [proof_client] MsgConnectionOpenAck proof_client - * @property {Uint8Array|null} [proof_consensus] MsgConnectionOpenAck proof_consensus - * @property {ibc.core.client.v1.IHeight|null} [consensus_height] MsgConnectionOpenAck consensus_height - * @property {string|null} [signer] MsgConnectionOpenAck signer - */ - - /** - * Constructs a new MsgConnectionOpenAck. - * @memberof ibc.core.connection.v1 - * @classdesc Represents a MsgConnectionOpenAck. - * @implements IMsgConnectionOpenAck - * @constructor - * @param {ibc.core.connection.v1.IMsgConnectionOpenAck=} [properties] Properties to set - */ - function MsgConnectionOpenAck(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * MsgConnectionOpenAck connection_id. - * @member {string} connection_id - * @memberof ibc.core.connection.v1.MsgConnectionOpenAck - * @instance - */ - MsgConnectionOpenAck.prototype.connection_id = ""; - - /** - * MsgConnectionOpenAck counterparty_connection_id. - * @member {string} counterparty_connection_id - * @memberof ibc.core.connection.v1.MsgConnectionOpenAck - * @instance - */ - MsgConnectionOpenAck.prototype.counterparty_connection_id = ""; - - /** - * MsgConnectionOpenAck version. - * @member {ibc.core.connection.v1.IVersion|null|undefined} version - * @memberof ibc.core.connection.v1.MsgConnectionOpenAck - * @instance - */ - MsgConnectionOpenAck.prototype.version = null; - - /** - * MsgConnectionOpenAck client_state. - * @member {google.protobuf.IAny|null|undefined} client_state - * @memberof ibc.core.connection.v1.MsgConnectionOpenAck - * @instance - */ - MsgConnectionOpenAck.prototype.client_state = null; - - /** - * MsgConnectionOpenAck proof_height. - * @member {ibc.core.client.v1.IHeight|null|undefined} proof_height - * @memberof ibc.core.connection.v1.MsgConnectionOpenAck - * @instance - */ - MsgConnectionOpenAck.prototype.proof_height = null; - - /** - * MsgConnectionOpenAck proof_try. - * @member {Uint8Array} proof_try - * @memberof ibc.core.connection.v1.MsgConnectionOpenAck - * @instance - */ - MsgConnectionOpenAck.prototype.proof_try = $util.newBuffer([]); + QueryClientStatusRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) + object.client_id = ""; + if (message.client_id != null && message.hasOwnProperty("client_id")) + object.client_id = message.client_id; + return object; + }; /** - * MsgConnectionOpenAck proof_client. - * @member {Uint8Array} proof_client - * @memberof ibc.core.connection.v1.MsgConnectionOpenAck + * Converts this QueryClientStatusRequest to JSON. + * @function toJSON + * @memberof ibc.core.client.v1.QueryClientStatusRequest * @instance + * @returns {Object.} JSON object */ - MsgConnectionOpenAck.prototype.proof_client = $util.newBuffer([]); + QueryClientStatusRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return QueryClientStatusRequest; + })(); + + v1.QueryClientStatusResponse = (function() { /** - * MsgConnectionOpenAck proof_consensus. - * @member {Uint8Array} proof_consensus - * @memberof ibc.core.connection.v1.MsgConnectionOpenAck - * @instance + * Properties of a QueryClientStatusResponse. + * @memberof ibc.core.client.v1 + * @interface IQueryClientStatusResponse + * @property {string|null} [status] QueryClientStatusResponse status */ - MsgConnectionOpenAck.prototype.proof_consensus = $util.newBuffer([]); /** - * MsgConnectionOpenAck consensus_height. - * @member {ibc.core.client.v1.IHeight|null|undefined} consensus_height - * @memberof ibc.core.connection.v1.MsgConnectionOpenAck - * @instance + * Constructs a new QueryClientStatusResponse. + * @memberof ibc.core.client.v1 + * @classdesc Represents a QueryClientStatusResponse. + * @implements IQueryClientStatusResponse + * @constructor + * @param {ibc.core.client.v1.IQueryClientStatusResponse=} [properties] Properties to set */ - MsgConnectionOpenAck.prototype.consensus_height = null; + function QueryClientStatusResponse(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * MsgConnectionOpenAck signer. - * @member {string} signer - * @memberof ibc.core.connection.v1.MsgConnectionOpenAck + * QueryClientStatusResponse status. + * @member {string} status + * @memberof ibc.core.client.v1.QueryClientStatusResponse * @instance */ - MsgConnectionOpenAck.prototype.signer = ""; + QueryClientStatusResponse.prototype.status = ""; /** - * Encodes the specified MsgConnectionOpenAck message. Does not implicitly {@link ibc.core.connection.v1.MsgConnectionOpenAck.verify|verify} messages. + * Encodes the specified QueryClientStatusResponse message. Does not implicitly {@link ibc.core.client.v1.QueryClientStatusResponse.verify|verify} messages. * @function encode - * @memberof ibc.core.connection.v1.MsgConnectionOpenAck + * @memberof ibc.core.client.v1.QueryClientStatusResponse * @static - * @param {ibc.core.connection.v1.IMsgConnectionOpenAck} message MsgConnectionOpenAck message or plain object to encode + * @param {ibc.core.client.v1.IQueryClientStatusResponse} message QueryClientStatusResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgConnectionOpenAck.encode = function encode(message, writer) { + QueryClientStatusResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.connection_id != null && Object.hasOwnProperty.call(message, "connection_id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.connection_id); - if (message.counterparty_connection_id != null && Object.hasOwnProperty.call(message, "counterparty_connection_id")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.counterparty_connection_id); - if (message.version != null && Object.hasOwnProperty.call(message, "version")) - $root.ibc.core.connection.v1.Version.encode(message.version, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.client_state != null && Object.hasOwnProperty.call(message, "client_state")) - $root.google.protobuf.Any.encode(message.client_state, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.proof_height != null && Object.hasOwnProperty.call(message, "proof_height")) - $root.ibc.core.client.v1.Height.encode(message.proof_height, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.proof_try != null && Object.hasOwnProperty.call(message, "proof_try")) - writer.uint32(/* id 6, wireType 2 =*/50).bytes(message.proof_try); - if (message.proof_client != null && Object.hasOwnProperty.call(message, "proof_client")) - writer.uint32(/* id 7, wireType 2 =*/58).bytes(message.proof_client); - if (message.proof_consensus != null && Object.hasOwnProperty.call(message, "proof_consensus")) - writer.uint32(/* id 8, wireType 2 =*/66).bytes(message.proof_consensus); - if (message.consensus_height != null && Object.hasOwnProperty.call(message, "consensus_height")) - $root.ibc.core.client.v1.Height.encode(message.consensus_height, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - if (message.signer != null && Object.hasOwnProperty.call(message, "signer")) - writer.uint32(/* id 10, wireType 2 =*/82).string(message.signer); + if (message.status != null && Object.hasOwnProperty.call(message, "status")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.status); return writer; }; /** - * Encodes the specified MsgConnectionOpenAck message, length delimited. Does not implicitly {@link ibc.core.connection.v1.MsgConnectionOpenAck.verify|verify} messages. + * Encodes the specified QueryClientStatusResponse message, length delimited. Does not implicitly {@link ibc.core.client.v1.QueryClientStatusResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.connection.v1.MsgConnectionOpenAck + * @memberof ibc.core.client.v1.QueryClientStatusResponse * @static - * @param {ibc.core.connection.v1.IMsgConnectionOpenAck} message MsgConnectionOpenAck message or plain object to encode + * @param {ibc.core.client.v1.IQueryClientStatusResponse} message QueryClientStatusResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgConnectionOpenAck.encodeDelimited = function encodeDelimited(message, writer) { + QueryClientStatusResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MsgConnectionOpenAck message from the specified reader or buffer. + * Decodes a QueryClientStatusResponse message from the specified reader or buffer. * @function decode - * @memberof ibc.core.connection.v1.MsgConnectionOpenAck + * @memberof ibc.core.client.v1.QueryClientStatusResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.connection.v1.MsgConnectionOpenAck} MsgConnectionOpenAck + * @returns {ibc.core.client.v1.QueryClientStatusResponse} QueryClientStatusResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgConnectionOpenAck.decode = function decode(reader, length) { + QueryClientStatusResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.connection.v1.MsgConnectionOpenAck(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.QueryClientStatusResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.connection_id = reader.string(); - break; - case 2: - message.counterparty_connection_id = reader.string(); - break; - case 3: - message.version = $root.ibc.core.connection.v1.Version.decode(reader, reader.uint32()); - break; - case 4: - message.client_state = $root.google.protobuf.Any.decode(reader, reader.uint32()); - break; - case 5: - message.proof_height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); - break; - case 6: - message.proof_try = reader.bytes(); - break; - case 7: - message.proof_client = reader.bytes(); - break; - case 8: - message.proof_consensus = reader.bytes(); - break; - case 9: - message.consensus_height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); - break; - case 10: - message.signer = reader.string(); + message.status = reader.string(); break; default: reader.skipType(tag & 7); @@ -58684,226 +65037,106 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a MsgConnectionOpenAck message from the specified reader or buffer, length delimited. + * Decodes a QueryClientStatusResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.connection.v1.MsgConnectionOpenAck + * @memberof ibc.core.client.v1.QueryClientStatusResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.connection.v1.MsgConnectionOpenAck} MsgConnectionOpenAck + * @returns {ibc.core.client.v1.QueryClientStatusResponse} QueryClientStatusResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgConnectionOpenAck.decodeDelimited = function decodeDelimited(reader) { + QueryClientStatusResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MsgConnectionOpenAck message. + * Verifies a QueryClientStatusResponse message. * @function verify - * @memberof ibc.core.connection.v1.MsgConnectionOpenAck + * @memberof ibc.core.client.v1.QueryClientStatusResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MsgConnectionOpenAck.verify = function verify(message) { + QueryClientStatusResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.connection_id != null && message.hasOwnProperty("connection_id")) - if (!$util.isString(message.connection_id)) - return "connection_id: string expected"; - if (message.counterparty_connection_id != null && message.hasOwnProperty("counterparty_connection_id")) - if (!$util.isString(message.counterparty_connection_id)) - return "counterparty_connection_id: string expected"; - if (message.version != null && message.hasOwnProperty("version")) { - let error = $root.ibc.core.connection.v1.Version.verify(message.version); - if (error) - return "version." + error; - } - if (message.client_state != null && message.hasOwnProperty("client_state")) { - let error = $root.google.protobuf.Any.verify(message.client_state); - if (error) - return "client_state." + error; - } - if (message.proof_height != null && message.hasOwnProperty("proof_height")) { - let error = $root.ibc.core.client.v1.Height.verify(message.proof_height); - if (error) - return "proof_height." + error; - } - if (message.proof_try != null && message.hasOwnProperty("proof_try")) - if (!(message.proof_try && typeof message.proof_try.length === "number" || $util.isString(message.proof_try))) - return "proof_try: buffer expected"; - if (message.proof_client != null && message.hasOwnProperty("proof_client")) - if (!(message.proof_client && typeof message.proof_client.length === "number" || $util.isString(message.proof_client))) - return "proof_client: buffer expected"; - if (message.proof_consensus != null && message.hasOwnProperty("proof_consensus")) - if (!(message.proof_consensus && typeof message.proof_consensus.length === "number" || $util.isString(message.proof_consensus))) - return "proof_consensus: buffer expected"; - if (message.consensus_height != null && message.hasOwnProperty("consensus_height")) { - let error = $root.ibc.core.client.v1.Height.verify(message.consensus_height); - if (error) - return "consensus_height." + error; - } - if (message.signer != null && message.hasOwnProperty("signer")) - if (!$util.isString(message.signer)) - return "signer: string expected"; + if (message.status != null && message.hasOwnProperty("status")) + if (!$util.isString(message.status)) + return "status: string expected"; return null; }; /** - * Creates a MsgConnectionOpenAck message from a plain object. Also converts values to their respective internal types. + * Creates a QueryClientStatusResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.connection.v1.MsgConnectionOpenAck + * @memberof ibc.core.client.v1.QueryClientStatusResponse * @static * @param {Object.} object Plain object - * @returns {ibc.core.connection.v1.MsgConnectionOpenAck} MsgConnectionOpenAck + * @returns {ibc.core.client.v1.QueryClientStatusResponse} QueryClientStatusResponse */ - MsgConnectionOpenAck.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.connection.v1.MsgConnectionOpenAck) + QueryClientStatusResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.client.v1.QueryClientStatusResponse) return object; - let message = new $root.ibc.core.connection.v1.MsgConnectionOpenAck(); - if (object.connection_id != null) - message.connection_id = String(object.connection_id); - if (object.counterparty_connection_id != null) - message.counterparty_connection_id = String(object.counterparty_connection_id); - if (object.version != null) { - if (typeof object.version !== "object") - throw TypeError(".ibc.core.connection.v1.MsgConnectionOpenAck.version: object expected"); - message.version = $root.ibc.core.connection.v1.Version.fromObject(object.version); - } - if (object.client_state != null) { - if (typeof object.client_state !== "object") - throw TypeError(".ibc.core.connection.v1.MsgConnectionOpenAck.client_state: object expected"); - message.client_state = $root.google.protobuf.Any.fromObject(object.client_state); - } - if (object.proof_height != null) { - if (typeof object.proof_height !== "object") - throw TypeError(".ibc.core.connection.v1.MsgConnectionOpenAck.proof_height: object expected"); - message.proof_height = $root.ibc.core.client.v1.Height.fromObject(object.proof_height); - } - if (object.proof_try != null) - if (typeof object.proof_try === "string") - $util.base64.decode(object.proof_try, message.proof_try = $util.newBuffer($util.base64.length(object.proof_try)), 0); - else if (object.proof_try.length) - message.proof_try = object.proof_try; - if (object.proof_client != null) - if (typeof object.proof_client === "string") - $util.base64.decode(object.proof_client, message.proof_client = $util.newBuffer($util.base64.length(object.proof_client)), 0); - else if (object.proof_client.length) - message.proof_client = object.proof_client; - if (object.proof_consensus != null) - if (typeof object.proof_consensus === "string") - $util.base64.decode(object.proof_consensus, message.proof_consensus = $util.newBuffer($util.base64.length(object.proof_consensus)), 0); - else if (object.proof_consensus.length) - message.proof_consensus = object.proof_consensus; - if (object.consensus_height != null) { - if (typeof object.consensus_height !== "object") - throw TypeError(".ibc.core.connection.v1.MsgConnectionOpenAck.consensus_height: object expected"); - message.consensus_height = $root.ibc.core.client.v1.Height.fromObject(object.consensus_height); - } - if (object.signer != null) - message.signer = String(object.signer); + let message = new $root.ibc.core.client.v1.QueryClientStatusResponse(); + if (object.status != null) + message.status = String(object.status); return message; }; /** - * Creates a plain object from a MsgConnectionOpenAck message. Also converts values to other types if specified. + * Creates a plain object from a QueryClientStatusResponse message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.connection.v1.MsgConnectionOpenAck + * @memberof ibc.core.client.v1.QueryClientStatusResponse * @static - * @param {ibc.core.connection.v1.MsgConnectionOpenAck} message MsgConnectionOpenAck + * @param {ibc.core.client.v1.QueryClientStatusResponse} message QueryClientStatusResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MsgConnectionOpenAck.toObject = function toObject(message, options) { + QueryClientStatusResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) { - object.connection_id = ""; - object.counterparty_connection_id = ""; - object.version = null; - object.client_state = null; - object.proof_height = null; - if (options.bytes === String) - object.proof_try = ""; - else { - object.proof_try = []; - if (options.bytes !== Array) - object.proof_try = $util.newBuffer(object.proof_try); - } - if (options.bytes === String) - object.proof_client = ""; - else { - object.proof_client = []; - if (options.bytes !== Array) - object.proof_client = $util.newBuffer(object.proof_client); - } - if (options.bytes === String) - object.proof_consensus = ""; - else { - object.proof_consensus = []; - if (options.bytes !== Array) - object.proof_consensus = $util.newBuffer(object.proof_consensus); - } - object.consensus_height = null; - object.signer = ""; - } - if (message.connection_id != null && message.hasOwnProperty("connection_id")) - object.connection_id = message.connection_id; - if (message.counterparty_connection_id != null && message.hasOwnProperty("counterparty_connection_id")) - object.counterparty_connection_id = message.counterparty_connection_id; - if (message.version != null && message.hasOwnProperty("version")) - object.version = $root.ibc.core.connection.v1.Version.toObject(message.version, options); - if (message.client_state != null && message.hasOwnProperty("client_state")) - object.client_state = $root.google.protobuf.Any.toObject(message.client_state, options); - if (message.proof_height != null && message.hasOwnProperty("proof_height")) - object.proof_height = $root.ibc.core.client.v1.Height.toObject(message.proof_height, options); - if (message.proof_try != null && message.hasOwnProperty("proof_try")) - object.proof_try = options.bytes === String ? $util.base64.encode(message.proof_try, 0, message.proof_try.length) : options.bytes === Array ? Array.prototype.slice.call(message.proof_try) : message.proof_try; - if (message.proof_client != null && message.hasOwnProperty("proof_client")) - object.proof_client = options.bytes === String ? $util.base64.encode(message.proof_client, 0, message.proof_client.length) : options.bytes === Array ? Array.prototype.slice.call(message.proof_client) : message.proof_client; - if (message.proof_consensus != null && message.hasOwnProperty("proof_consensus")) - object.proof_consensus = options.bytes === String ? $util.base64.encode(message.proof_consensus, 0, message.proof_consensus.length) : options.bytes === Array ? Array.prototype.slice.call(message.proof_consensus) : message.proof_consensus; - if (message.consensus_height != null && message.hasOwnProperty("consensus_height")) - object.consensus_height = $root.ibc.core.client.v1.Height.toObject(message.consensus_height, options); - if (message.signer != null && message.hasOwnProperty("signer")) - object.signer = message.signer; + if (options.defaults) + object.status = ""; + if (message.status != null && message.hasOwnProperty("status")) + object.status = message.status; return object; }; /** - * Converts this MsgConnectionOpenAck to JSON. + * Converts this QueryClientStatusResponse to JSON. * @function toJSON - * @memberof ibc.core.connection.v1.MsgConnectionOpenAck + * @memberof ibc.core.client.v1.QueryClientStatusResponse * @instance * @returns {Object.} JSON object */ - MsgConnectionOpenAck.prototype.toJSON = function toJSON() { + QueryClientStatusResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MsgConnectionOpenAck; + return QueryClientStatusResponse; })(); - v1.MsgConnectionOpenAckResponse = (function() { + v1.QueryClientParamsRequest = (function() { /** - * Properties of a MsgConnectionOpenAckResponse. - * @memberof ibc.core.connection.v1 - * @interface IMsgConnectionOpenAckResponse + * Properties of a QueryClientParamsRequest. + * @memberof ibc.core.client.v1 + * @interface IQueryClientParamsRequest */ /** - * Constructs a new MsgConnectionOpenAckResponse. - * @memberof ibc.core.connection.v1 - * @classdesc Represents a MsgConnectionOpenAckResponse. - * @implements IMsgConnectionOpenAckResponse + * Constructs a new QueryClientParamsRequest. + * @memberof ibc.core.client.v1 + * @classdesc Represents a QueryClientParamsRequest. + * @implements IQueryClientParamsRequest * @constructor - * @param {ibc.core.connection.v1.IMsgConnectionOpenAckResponse=} [properties] Properties to set + * @param {ibc.core.client.v1.IQueryClientParamsRequest=} [properties] Properties to set */ - function MsgConnectionOpenAckResponse(properties) { + function QueryClientParamsRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -58911,48 +65144,48 @@ export const ibc = $root.ibc = (() => { } /** - * Encodes the specified MsgConnectionOpenAckResponse message. Does not implicitly {@link ibc.core.connection.v1.MsgConnectionOpenAckResponse.verify|verify} messages. + * Encodes the specified QueryClientParamsRequest message. Does not implicitly {@link ibc.core.client.v1.QueryClientParamsRequest.verify|verify} messages. * @function encode - * @memberof ibc.core.connection.v1.MsgConnectionOpenAckResponse + * @memberof ibc.core.client.v1.QueryClientParamsRequest * @static - * @param {ibc.core.connection.v1.IMsgConnectionOpenAckResponse} message MsgConnectionOpenAckResponse message or plain object to encode + * @param {ibc.core.client.v1.IQueryClientParamsRequest} message QueryClientParamsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgConnectionOpenAckResponse.encode = function encode(message, writer) { + QueryClientParamsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); return writer; }; /** - * Encodes the specified MsgConnectionOpenAckResponse message, length delimited. Does not implicitly {@link ibc.core.connection.v1.MsgConnectionOpenAckResponse.verify|verify} messages. + * Encodes the specified QueryClientParamsRequest message, length delimited. Does not implicitly {@link ibc.core.client.v1.QueryClientParamsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.connection.v1.MsgConnectionOpenAckResponse + * @memberof ibc.core.client.v1.QueryClientParamsRequest * @static - * @param {ibc.core.connection.v1.IMsgConnectionOpenAckResponse} message MsgConnectionOpenAckResponse message or plain object to encode + * @param {ibc.core.client.v1.IQueryClientParamsRequest} message QueryClientParamsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgConnectionOpenAckResponse.encodeDelimited = function encodeDelimited(message, writer) { + QueryClientParamsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MsgConnectionOpenAckResponse message from the specified reader or buffer. + * Decodes a QueryClientParamsRequest message from the specified reader or buffer. * @function decode - * @memberof ibc.core.connection.v1.MsgConnectionOpenAckResponse + * @memberof ibc.core.client.v1.QueryClientParamsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.connection.v1.MsgConnectionOpenAckResponse} MsgConnectionOpenAckResponse + * @returns {ibc.core.client.v1.QueryClientParamsRequest} QueryClientParamsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgConnectionOpenAckResponse.decode = function decode(reader, length) { + QueryClientParamsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.connection.v1.MsgConnectionOpenAckResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.QueryClientParamsRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { @@ -58965,97 +65198,94 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a MsgConnectionOpenAckResponse message from the specified reader or buffer, length delimited. + * Decodes a QueryClientParamsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.connection.v1.MsgConnectionOpenAckResponse + * @memberof ibc.core.client.v1.QueryClientParamsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.connection.v1.MsgConnectionOpenAckResponse} MsgConnectionOpenAckResponse + * @returns {ibc.core.client.v1.QueryClientParamsRequest} QueryClientParamsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgConnectionOpenAckResponse.decodeDelimited = function decodeDelimited(reader) { + QueryClientParamsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MsgConnectionOpenAckResponse message. + * Verifies a QueryClientParamsRequest message. * @function verify - * @memberof ibc.core.connection.v1.MsgConnectionOpenAckResponse + * @memberof ibc.core.client.v1.QueryClientParamsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MsgConnectionOpenAckResponse.verify = function verify(message) { + QueryClientParamsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; return null; }; /** - * Creates a MsgConnectionOpenAckResponse message from a plain object. Also converts values to their respective internal types. + * Creates a QueryClientParamsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.connection.v1.MsgConnectionOpenAckResponse + * @memberof ibc.core.client.v1.QueryClientParamsRequest * @static * @param {Object.} object Plain object - * @returns {ibc.core.connection.v1.MsgConnectionOpenAckResponse} MsgConnectionOpenAckResponse + * @returns {ibc.core.client.v1.QueryClientParamsRequest} QueryClientParamsRequest */ - MsgConnectionOpenAckResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.connection.v1.MsgConnectionOpenAckResponse) + QueryClientParamsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.client.v1.QueryClientParamsRequest) return object; - return new $root.ibc.core.connection.v1.MsgConnectionOpenAckResponse(); + return new $root.ibc.core.client.v1.QueryClientParamsRequest(); }; /** - * Creates a plain object from a MsgConnectionOpenAckResponse message. Also converts values to other types if specified. + * Creates a plain object from a QueryClientParamsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.connection.v1.MsgConnectionOpenAckResponse + * @memberof ibc.core.client.v1.QueryClientParamsRequest * @static - * @param {ibc.core.connection.v1.MsgConnectionOpenAckResponse} message MsgConnectionOpenAckResponse + * @param {ibc.core.client.v1.QueryClientParamsRequest} message QueryClientParamsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MsgConnectionOpenAckResponse.toObject = function toObject() { + QueryClientParamsRequest.toObject = function toObject() { return {}; }; /** - * Converts this MsgConnectionOpenAckResponse to JSON. + * Converts this QueryClientParamsRequest to JSON. * @function toJSON - * @memberof ibc.core.connection.v1.MsgConnectionOpenAckResponse + * @memberof ibc.core.client.v1.QueryClientParamsRequest * @instance * @returns {Object.} JSON object */ - MsgConnectionOpenAckResponse.prototype.toJSON = function toJSON() { + QueryClientParamsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MsgConnectionOpenAckResponse; + return QueryClientParamsRequest; })(); - v1.MsgConnectionOpenConfirm = (function() { + v1.QueryClientParamsResponse = (function() { /** - * Properties of a MsgConnectionOpenConfirm. - * @memberof ibc.core.connection.v1 - * @interface IMsgConnectionOpenConfirm - * @property {string|null} [connection_id] MsgConnectionOpenConfirm connection_id - * @property {Uint8Array|null} [proof_ack] MsgConnectionOpenConfirm proof_ack - * @property {ibc.core.client.v1.IHeight|null} [proof_height] MsgConnectionOpenConfirm proof_height - * @property {string|null} [signer] MsgConnectionOpenConfirm signer + * Properties of a QueryClientParamsResponse. + * @memberof ibc.core.client.v1 + * @interface IQueryClientParamsResponse + * @property {ibc.core.client.v1.IParams|null} [params] QueryClientParamsResponse params */ /** - * Constructs a new MsgConnectionOpenConfirm. - * @memberof ibc.core.connection.v1 - * @classdesc Represents a MsgConnectionOpenConfirm. - * @implements IMsgConnectionOpenConfirm + * Constructs a new QueryClientParamsResponse. + * @memberof ibc.core.client.v1 + * @classdesc Represents a QueryClientParamsResponse. + * @implements IQueryClientParamsResponse * @constructor - * @param {ibc.core.connection.v1.IMsgConnectionOpenConfirm=} [properties] Properties to set + * @param {ibc.core.client.v1.IQueryClientParamsResponse=} [properties] Properties to set */ - function MsgConnectionOpenConfirm(properties) { + function QueryClientParamsResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -59063,102 +65293,63 @@ export const ibc = $root.ibc = (() => { } /** - * MsgConnectionOpenConfirm connection_id. - * @member {string} connection_id - * @memberof ibc.core.connection.v1.MsgConnectionOpenConfirm - * @instance - */ - MsgConnectionOpenConfirm.prototype.connection_id = ""; - - /** - * MsgConnectionOpenConfirm proof_ack. - * @member {Uint8Array} proof_ack - * @memberof ibc.core.connection.v1.MsgConnectionOpenConfirm - * @instance - */ - MsgConnectionOpenConfirm.prototype.proof_ack = $util.newBuffer([]); - - /** - * MsgConnectionOpenConfirm proof_height. - * @member {ibc.core.client.v1.IHeight|null|undefined} proof_height - * @memberof ibc.core.connection.v1.MsgConnectionOpenConfirm - * @instance - */ - MsgConnectionOpenConfirm.prototype.proof_height = null; - - /** - * MsgConnectionOpenConfirm signer. - * @member {string} signer - * @memberof ibc.core.connection.v1.MsgConnectionOpenConfirm + * QueryClientParamsResponse params. + * @member {ibc.core.client.v1.IParams|null|undefined} params + * @memberof ibc.core.client.v1.QueryClientParamsResponse * @instance */ - MsgConnectionOpenConfirm.prototype.signer = ""; + QueryClientParamsResponse.prototype.params = null; /** - * Encodes the specified MsgConnectionOpenConfirm message. Does not implicitly {@link ibc.core.connection.v1.MsgConnectionOpenConfirm.verify|verify} messages. + * Encodes the specified QueryClientParamsResponse message. Does not implicitly {@link ibc.core.client.v1.QueryClientParamsResponse.verify|verify} messages. * @function encode - * @memberof ibc.core.connection.v1.MsgConnectionOpenConfirm + * @memberof ibc.core.client.v1.QueryClientParamsResponse * @static - * @param {ibc.core.connection.v1.IMsgConnectionOpenConfirm} message MsgConnectionOpenConfirm message or plain object to encode + * @param {ibc.core.client.v1.IQueryClientParamsResponse} message QueryClientParamsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgConnectionOpenConfirm.encode = function encode(message, writer) { + QueryClientParamsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.connection_id != null && Object.hasOwnProperty.call(message, "connection_id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.connection_id); - if (message.proof_ack != null && Object.hasOwnProperty.call(message, "proof_ack")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.proof_ack); - if (message.proof_height != null && Object.hasOwnProperty.call(message, "proof_height")) - $root.ibc.core.client.v1.Height.encode(message.proof_height, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.signer != null && Object.hasOwnProperty.call(message, "signer")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.signer); + if (message.params != null && Object.hasOwnProperty.call(message, "params")) + $root.ibc.core.client.v1.Params.encode(message.params, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified MsgConnectionOpenConfirm message, length delimited. Does not implicitly {@link ibc.core.connection.v1.MsgConnectionOpenConfirm.verify|verify} messages. + * Encodes the specified QueryClientParamsResponse message, length delimited. Does not implicitly {@link ibc.core.client.v1.QueryClientParamsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.connection.v1.MsgConnectionOpenConfirm + * @memberof ibc.core.client.v1.QueryClientParamsResponse * @static - * @param {ibc.core.connection.v1.IMsgConnectionOpenConfirm} message MsgConnectionOpenConfirm message or plain object to encode + * @param {ibc.core.client.v1.IQueryClientParamsResponse} message QueryClientParamsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgConnectionOpenConfirm.encodeDelimited = function encodeDelimited(message, writer) { + QueryClientParamsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MsgConnectionOpenConfirm message from the specified reader or buffer. + * Decodes a QueryClientParamsResponse message from the specified reader or buffer. * @function decode - * @memberof ibc.core.connection.v1.MsgConnectionOpenConfirm + * @memberof ibc.core.client.v1.QueryClientParamsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.connection.v1.MsgConnectionOpenConfirm} MsgConnectionOpenConfirm + * @returns {ibc.core.client.v1.QueryClientParamsResponse} QueryClientParamsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgConnectionOpenConfirm.decode = function decode(reader, length) { + QueryClientParamsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.connection.v1.MsgConnectionOpenConfirm(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.QueryClientParamsResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.connection_id = reader.string(); - break; - case 2: - message.proof_ack = reader.bytes(); - break; - case 3: - message.proof_height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); - break; - case 4: - message.signer = reader.string(); + message.params = $root.ibc.core.client.v1.Params.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -59169,145 +65360,111 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a MsgConnectionOpenConfirm message from the specified reader or buffer, length delimited. + * Decodes a QueryClientParamsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.connection.v1.MsgConnectionOpenConfirm + * @memberof ibc.core.client.v1.QueryClientParamsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.connection.v1.MsgConnectionOpenConfirm} MsgConnectionOpenConfirm + * @returns {ibc.core.client.v1.QueryClientParamsResponse} QueryClientParamsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgConnectionOpenConfirm.decodeDelimited = function decodeDelimited(reader) { + QueryClientParamsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MsgConnectionOpenConfirm message. + * Verifies a QueryClientParamsResponse message. * @function verify - * @memberof ibc.core.connection.v1.MsgConnectionOpenConfirm + * @memberof ibc.core.client.v1.QueryClientParamsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MsgConnectionOpenConfirm.verify = function verify(message) { + QueryClientParamsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.connection_id != null && message.hasOwnProperty("connection_id")) - if (!$util.isString(message.connection_id)) - return "connection_id: string expected"; - if (message.proof_ack != null && message.hasOwnProperty("proof_ack")) - if (!(message.proof_ack && typeof message.proof_ack.length === "number" || $util.isString(message.proof_ack))) - return "proof_ack: buffer expected"; - if (message.proof_height != null && message.hasOwnProperty("proof_height")) { - let error = $root.ibc.core.client.v1.Height.verify(message.proof_height); + if (message.params != null && message.hasOwnProperty("params")) { + let error = $root.ibc.core.client.v1.Params.verify(message.params); if (error) - return "proof_height." + error; + return "params." + error; } - if (message.signer != null && message.hasOwnProperty("signer")) - if (!$util.isString(message.signer)) - return "signer: string expected"; return null; }; /** - * Creates a MsgConnectionOpenConfirm message from a plain object. Also converts values to their respective internal types. + * Creates a QueryClientParamsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.connection.v1.MsgConnectionOpenConfirm + * @memberof ibc.core.client.v1.QueryClientParamsResponse * @static * @param {Object.} object Plain object - * @returns {ibc.core.connection.v1.MsgConnectionOpenConfirm} MsgConnectionOpenConfirm + * @returns {ibc.core.client.v1.QueryClientParamsResponse} QueryClientParamsResponse */ - MsgConnectionOpenConfirm.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.connection.v1.MsgConnectionOpenConfirm) + QueryClientParamsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.client.v1.QueryClientParamsResponse) return object; - let message = new $root.ibc.core.connection.v1.MsgConnectionOpenConfirm(); - if (object.connection_id != null) - message.connection_id = String(object.connection_id); - if (object.proof_ack != null) - if (typeof object.proof_ack === "string") - $util.base64.decode(object.proof_ack, message.proof_ack = $util.newBuffer($util.base64.length(object.proof_ack)), 0); - else if (object.proof_ack.length) - message.proof_ack = object.proof_ack; - if (object.proof_height != null) { - if (typeof object.proof_height !== "object") - throw TypeError(".ibc.core.connection.v1.MsgConnectionOpenConfirm.proof_height: object expected"); - message.proof_height = $root.ibc.core.client.v1.Height.fromObject(object.proof_height); + let message = new $root.ibc.core.client.v1.QueryClientParamsResponse(); + if (object.params != null) { + if (typeof object.params !== "object") + throw TypeError(".ibc.core.client.v1.QueryClientParamsResponse.params: object expected"); + message.params = $root.ibc.core.client.v1.Params.fromObject(object.params); } - if (object.signer != null) - message.signer = String(object.signer); return message; }; /** - * Creates a plain object from a MsgConnectionOpenConfirm message. Also converts values to other types if specified. + * Creates a plain object from a QueryClientParamsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.connection.v1.MsgConnectionOpenConfirm + * @memberof ibc.core.client.v1.QueryClientParamsResponse * @static - * @param {ibc.core.connection.v1.MsgConnectionOpenConfirm} message MsgConnectionOpenConfirm + * @param {ibc.core.client.v1.QueryClientParamsResponse} message QueryClientParamsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MsgConnectionOpenConfirm.toObject = function toObject(message, options) { + QueryClientParamsResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) { - object.connection_id = ""; - if (options.bytes === String) - object.proof_ack = ""; - else { - object.proof_ack = []; - if (options.bytes !== Array) - object.proof_ack = $util.newBuffer(object.proof_ack); - } - object.proof_height = null; - object.signer = ""; - } - if (message.connection_id != null && message.hasOwnProperty("connection_id")) - object.connection_id = message.connection_id; - if (message.proof_ack != null && message.hasOwnProperty("proof_ack")) - object.proof_ack = options.bytes === String ? $util.base64.encode(message.proof_ack, 0, message.proof_ack.length) : options.bytes === Array ? Array.prototype.slice.call(message.proof_ack) : message.proof_ack; - if (message.proof_height != null && message.hasOwnProperty("proof_height")) - object.proof_height = $root.ibc.core.client.v1.Height.toObject(message.proof_height, options); - if (message.signer != null && message.hasOwnProperty("signer")) - object.signer = message.signer; + if (options.defaults) + object.params = null; + if (message.params != null && message.hasOwnProperty("params")) + object.params = $root.ibc.core.client.v1.Params.toObject(message.params, options); return object; }; /** - * Converts this MsgConnectionOpenConfirm to JSON. + * Converts this QueryClientParamsResponse to JSON. * @function toJSON - * @memberof ibc.core.connection.v1.MsgConnectionOpenConfirm + * @memberof ibc.core.client.v1.QueryClientParamsResponse * @instance * @returns {Object.} JSON object */ - MsgConnectionOpenConfirm.prototype.toJSON = function toJSON() { + QueryClientParamsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MsgConnectionOpenConfirm; + return QueryClientParamsResponse; })(); - v1.MsgConnectionOpenConfirmResponse = (function() { + v1.QueryUpgradedClientStateRequest = (function() { /** - * Properties of a MsgConnectionOpenConfirmResponse. - * @memberof ibc.core.connection.v1 - * @interface IMsgConnectionOpenConfirmResponse + * Properties of a QueryUpgradedClientStateRequest. + * @memberof ibc.core.client.v1 + * @interface IQueryUpgradedClientStateRequest */ /** - * Constructs a new MsgConnectionOpenConfirmResponse. - * @memberof ibc.core.connection.v1 - * @classdesc Represents a MsgConnectionOpenConfirmResponse. - * @implements IMsgConnectionOpenConfirmResponse + * Constructs a new QueryUpgradedClientStateRequest. + * @memberof ibc.core.client.v1 + * @classdesc Represents a QueryUpgradedClientStateRequest. + * @implements IQueryUpgradedClientStateRequest * @constructor - * @param {ibc.core.connection.v1.IMsgConnectionOpenConfirmResponse=} [properties] Properties to set + * @param {ibc.core.client.v1.IQueryUpgradedClientStateRequest=} [properties] Properties to set */ - function MsgConnectionOpenConfirmResponse(properties) { + function QueryUpgradedClientStateRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -59315,48 +65472,48 @@ export const ibc = $root.ibc = (() => { } /** - * Encodes the specified MsgConnectionOpenConfirmResponse message. Does not implicitly {@link ibc.core.connection.v1.MsgConnectionOpenConfirmResponse.verify|verify} messages. + * Encodes the specified QueryUpgradedClientStateRequest message. Does not implicitly {@link ibc.core.client.v1.QueryUpgradedClientStateRequest.verify|verify} messages. * @function encode - * @memberof ibc.core.connection.v1.MsgConnectionOpenConfirmResponse + * @memberof ibc.core.client.v1.QueryUpgradedClientStateRequest * @static - * @param {ibc.core.connection.v1.IMsgConnectionOpenConfirmResponse} message MsgConnectionOpenConfirmResponse message or plain object to encode + * @param {ibc.core.client.v1.IQueryUpgradedClientStateRequest} message QueryUpgradedClientStateRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgConnectionOpenConfirmResponse.encode = function encode(message, writer) { + QueryUpgradedClientStateRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); return writer; }; /** - * Encodes the specified MsgConnectionOpenConfirmResponse message, length delimited. Does not implicitly {@link ibc.core.connection.v1.MsgConnectionOpenConfirmResponse.verify|verify} messages. + * Encodes the specified QueryUpgradedClientStateRequest message, length delimited. Does not implicitly {@link ibc.core.client.v1.QueryUpgradedClientStateRequest.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.connection.v1.MsgConnectionOpenConfirmResponse + * @memberof ibc.core.client.v1.QueryUpgradedClientStateRequest * @static - * @param {ibc.core.connection.v1.IMsgConnectionOpenConfirmResponse} message MsgConnectionOpenConfirmResponse message or plain object to encode + * @param {ibc.core.client.v1.IQueryUpgradedClientStateRequest} message QueryUpgradedClientStateRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MsgConnectionOpenConfirmResponse.encodeDelimited = function encodeDelimited(message, writer) { + QueryUpgradedClientStateRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MsgConnectionOpenConfirmResponse message from the specified reader or buffer. + * Decodes a QueryUpgradedClientStateRequest message from the specified reader or buffer. * @function decode - * @memberof ibc.core.connection.v1.MsgConnectionOpenConfirmResponse + * @memberof ibc.core.client.v1.QueryUpgradedClientStateRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.connection.v1.MsgConnectionOpenConfirmResponse} MsgConnectionOpenConfirmResponse + * @returns {ibc.core.client.v1.QueryUpgradedClientStateRequest} QueryUpgradedClientStateRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgConnectionOpenConfirmResponse.decode = function decode(reader, length) { + QueryUpgradedClientStateRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.connection.v1.MsgConnectionOpenConfirmResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.QueryUpgradedClientStateRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { @@ -59369,99 +65526,94 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a MsgConnectionOpenConfirmResponse message from the specified reader or buffer, length delimited. + * Decodes a QueryUpgradedClientStateRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.connection.v1.MsgConnectionOpenConfirmResponse + * @memberof ibc.core.client.v1.QueryUpgradedClientStateRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.connection.v1.MsgConnectionOpenConfirmResponse} MsgConnectionOpenConfirmResponse + * @returns {ibc.core.client.v1.QueryUpgradedClientStateRequest} QueryUpgradedClientStateRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MsgConnectionOpenConfirmResponse.decodeDelimited = function decodeDelimited(reader) { + QueryUpgradedClientStateRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MsgConnectionOpenConfirmResponse message. + * Verifies a QueryUpgradedClientStateRequest message. * @function verify - * @memberof ibc.core.connection.v1.MsgConnectionOpenConfirmResponse + * @memberof ibc.core.client.v1.QueryUpgradedClientStateRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MsgConnectionOpenConfirmResponse.verify = function verify(message) { + QueryUpgradedClientStateRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; return null; }; /** - * Creates a MsgConnectionOpenConfirmResponse message from a plain object. Also converts values to their respective internal types. + * Creates a QueryUpgradedClientStateRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.connection.v1.MsgConnectionOpenConfirmResponse + * @memberof ibc.core.client.v1.QueryUpgradedClientStateRequest * @static * @param {Object.} object Plain object - * @returns {ibc.core.connection.v1.MsgConnectionOpenConfirmResponse} MsgConnectionOpenConfirmResponse + * @returns {ibc.core.client.v1.QueryUpgradedClientStateRequest} QueryUpgradedClientStateRequest */ - MsgConnectionOpenConfirmResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.connection.v1.MsgConnectionOpenConfirmResponse) + QueryUpgradedClientStateRequest.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.client.v1.QueryUpgradedClientStateRequest) return object; - return new $root.ibc.core.connection.v1.MsgConnectionOpenConfirmResponse(); + return new $root.ibc.core.client.v1.QueryUpgradedClientStateRequest(); }; /** - * Creates a plain object from a MsgConnectionOpenConfirmResponse message. Also converts values to other types if specified. + * Creates a plain object from a QueryUpgradedClientStateRequest message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.connection.v1.MsgConnectionOpenConfirmResponse + * @memberof ibc.core.client.v1.QueryUpgradedClientStateRequest * @static - * @param {ibc.core.connection.v1.MsgConnectionOpenConfirmResponse} message MsgConnectionOpenConfirmResponse + * @param {ibc.core.client.v1.QueryUpgradedClientStateRequest} message QueryUpgradedClientStateRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MsgConnectionOpenConfirmResponse.toObject = function toObject() { + QueryUpgradedClientStateRequest.toObject = function toObject() { return {}; }; /** - * Converts this MsgConnectionOpenConfirmResponse to JSON. + * Converts this QueryUpgradedClientStateRequest to JSON. * @function toJSON - * @memberof ibc.core.connection.v1.MsgConnectionOpenConfirmResponse + * @memberof ibc.core.client.v1.QueryUpgradedClientStateRequest * @instance * @returns {Object.} JSON object */ - MsgConnectionOpenConfirmResponse.prototype.toJSON = function toJSON() { + QueryUpgradedClientStateRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MsgConnectionOpenConfirmResponse; + return QueryUpgradedClientStateRequest; })(); - v1.ConnectionEnd = (function() { + v1.QueryUpgradedClientStateResponse = (function() { /** - * Properties of a ConnectionEnd. - * @memberof ibc.core.connection.v1 - * @interface IConnectionEnd - * @property {string|null} [client_id] ConnectionEnd client_id - * @property {Array.|null} [versions] ConnectionEnd versions - * @property {ibc.core.connection.v1.State|null} [state] ConnectionEnd state - * @property {ibc.core.connection.v1.ICounterparty|null} [counterparty] ConnectionEnd counterparty - * @property {Long|null} [delay_period] ConnectionEnd delay_period + * Properties of a QueryUpgradedClientStateResponse. + * @memberof ibc.core.client.v1 + * @interface IQueryUpgradedClientStateResponse + * @property {google.protobuf.IAny|null} [upgraded_client_state] QueryUpgradedClientStateResponse upgraded_client_state */ /** - * Constructs a new ConnectionEnd. - * @memberof ibc.core.connection.v1 - * @classdesc Represents a ConnectionEnd. - * @implements IConnectionEnd + * Constructs a new QueryUpgradedClientStateResponse. + * @memberof ibc.core.client.v1 + * @classdesc Represents a QueryUpgradedClientStateResponse. + * @implements IQueryUpgradedClientStateResponse * @constructor - * @param {ibc.core.connection.v1.IConnectionEnd=} [properties] Properties to set + * @param {ibc.core.client.v1.IQueryUpgradedClientStateResponse=} [properties] Properties to set */ - function ConnectionEnd(properties) { - this.versions = []; + function QueryUpgradedClientStateResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -59469,118 +65621,63 @@ export const ibc = $root.ibc = (() => { } /** - * ConnectionEnd client_id. - * @member {string} client_id - * @memberof ibc.core.connection.v1.ConnectionEnd - * @instance - */ - ConnectionEnd.prototype.client_id = ""; - - /** - * ConnectionEnd versions. - * @member {Array.} versions - * @memberof ibc.core.connection.v1.ConnectionEnd - * @instance - */ - ConnectionEnd.prototype.versions = $util.emptyArray; - - /** - * ConnectionEnd state. - * @member {ibc.core.connection.v1.State} state - * @memberof ibc.core.connection.v1.ConnectionEnd - * @instance - */ - ConnectionEnd.prototype.state = 0; - - /** - * ConnectionEnd counterparty. - * @member {ibc.core.connection.v1.ICounterparty|null|undefined} counterparty - * @memberof ibc.core.connection.v1.ConnectionEnd - * @instance - */ - ConnectionEnd.prototype.counterparty = null; - - /** - * ConnectionEnd delay_period. - * @member {Long} delay_period - * @memberof ibc.core.connection.v1.ConnectionEnd + * QueryUpgradedClientStateResponse upgraded_client_state. + * @member {google.protobuf.IAny|null|undefined} upgraded_client_state + * @memberof ibc.core.client.v1.QueryUpgradedClientStateResponse * @instance */ - ConnectionEnd.prototype.delay_period = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + QueryUpgradedClientStateResponse.prototype.upgraded_client_state = null; /** - * Encodes the specified ConnectionEnd message. Does not implicitly {@link ibc.core.connection.v1.ConnectionEnd.verify|verify} messages. + * Encodes the specified QueryUpgradedClientStateResponse message. Does not implicitly {@link ibc.core.client.v1.QueryUpgradedClientStateResponse.verify|verify} messages. * @function encode - * @memberof ibc.core.connection.v1.ConnectionEnd + * @memberof ibc.core.client.v1.QueryUpgradedClientStateResponse * @static - * @param {ibc.core.connection.v1.IConnectionEnd} message ConnectionEnd message or plain object to encode + * @param {ibc.core.client.v1.IQueryUpgradedClientStateResponse} message QueryUpgradedClientStateResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ConnectionEnd.encode = function encode(message, writer) { + QueryUpgradedClientStateResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.client_id != null && Object.hasOwnProperty.call(message, "client_id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.client_id); - if (message.versions != null && message.versions.length) - for (let i = 0; i < message.versions.length; ++i) - $root.ibc.core.connection.v1.Version.encode(message.versions[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.state != null && Object.hasOwnProperty.call(message, "state")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.state); - if (message.counterparty != null && Object.hasOwnProperty.call(message, "counterparty")) - $root.ibc.core.connection.v1.Counterparty.encode(message.counterparty, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.delay_period != null && Object.hasOwnProperty.call(message, "delay_period")) - writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.delay_period); + if (message.upgraded_client_state != null && Object.hasOwnProperty.call(message, "upgraded_client_state")) + $root.google.protobuf.Any.encode(message.upgraded_client_state, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified ConnectionEnd message, length delimited. Does not implicitly {@link ibc.core.connection.v1.ConnectionEnd.verify|verify} messages. + * Encodes the specified QueryUpgradedClientStateResponse message, length delimited. Does not implicitly {@link ibc.core.client.v1.QueryUpgradedClientStateResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.connection.v1.ConnectionEnd + * @memberof ibc.core.client.v1.QueryUpgradedClientStateResponse * @static - * @param {ibc.core.connection.v1.IConnectionEnd} message ConnectionEnd message or plain object to encode + * @param {ibc.core.client.v1.IQueryUpgradedClientStateResponse} message QueryUpgradedClientStateResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ConnectionEnd.encodeDelimited = function encodeDelimited(message, writer) { + QueryUpgradedClientStateResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ConnectionEnd message from the specified reader or buffer. + * Decodes a QueryUpgradedClientStateResponse message from the specified reader or buffer. * @function decode - * @memberof ibc.core.connection.v1.ConnectionEnd + * @memberof ibc.core.client.v1.QueryUpgradedClientStateResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.connection.v1.ConnectionEnd} ConnectionEnd + * @returns {ibc.core.client.v1.QueryUpgradedClientStateResponse} QueryUpgradedClientStateResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ConnectionEnd.decode = function decode(reader, length) { + QueryUpgradedClientStateResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.connection.v1.ConnectionEnd(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.QueryUpgradedClientStateResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.client_id = reader.string(); - break; - case 2: - if (!(message.versions && message.versions.length)) - message.versions = []; - message.versions.push($root.ibc.core.connection.v1.Version.decode(reader, reader.uint32())); - break; - case 3: - message.state = reader.int32(); - break; - case 4: - message.counterparty = $root.ibc.core.connection.v1.Counterparty.decode(reader, reader.uint32()); - break; - case 5: - message.delay_period = reader.uint64(); + message.upgraded_client_state = $root.google.protobuf.Any.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -59591,339 +65688,163 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a ConnectionEnd message from the specified reader or buffer, length delimited. + * Decodes a QueryUpgradedClientStateResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.connection.v1.ConnectionEnd + * @memberof ibc.core.client.v1.QueryUpgradedClientStateResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.connection.v1.ConnectionEnd} ConnectionEnd + * @returns {ibc.core.client.v1.QueryUpgradedClientStateResponse} QueryUpgradedClientStateResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ConnectionEnd.decodeDelimited = function decodeDelimited(reader) { + QueryUpgradedClientStateResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ConnectionEnd message. + * Verifies a QueryUpgradedClientStateResponse message. * @function verify - * @memberof ibc.core.connection.v1.ConnectionEnd + * @memberof ibc.core.client.v1.QueryUpgradedClientStateResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ConnectionEnd.verify = function verify(message) { + QueryUpgradedClientStateResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.client_id != null && message.hasOwnProperty("client_id")) - if (!$util.isString(message.client_id)) - return "client_id: string expected"; - if (message.versions != null && message.hasOwnProperty("versions")) { - if (!Array.isArray(message.versions)) - return "versions: array expected"; - for (let i = 0; i < message.versions.length; ++i) { - let error = $root.ibc.core.connection.v1.Version.verify(message.versions[i]); - if (error) - return "versions." + error; - } - } - if (message.state != null && message.hasOwnProperty("state")) - switch (message.state) { - default: - return "state: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - if (message.counterparty != null && message.hasOwnProperty("counterparty")) { - let error = $root.ibc.core.connection.v1.Counterparty.verify(message.counterparty); + if (message.upgraded_client_state != null && message.hasOwnProperty("upgraded_client_state")) { + let error = $root.google.protobuf.Any.verify(message.upgraded_client_state); if (error) - return "counterparty." + error; + return "upgraded_client_state." + error; } - if (message.delay_period != null && message.hasOwnProperty("delay_period")) - if (!$util.isInteger(message.delay_period) && !(message.delay_period && $util.isInteger(message.delay_period.low) && $util.isInteger(message.delay_period.high))) - return "delay_period: integer|Long expected"; return null; }; /** - * Creates a ConnectionEnd message from a plain object. Also converts values to their respective internal types. + * Creates a QueryUpgradedClientStateResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.connection.v1.ConnectionEnd + * @memberof ibc.core.client.v1.QueryUpgradedClientStateResponse * @static * @param {Object.} object Plain object - * @returns {ibc.core.connection.v1.ConnectionEnd} ConnectionEnd + * @returns {ibc.core.client.v1.QueryUpgradedClientStateResponse} QueryUpgradedClientStateResponse */ - ConnectionEnd.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.connection.v1.ConnectionEnd) + QueryUpgradedClientStateResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.client.v1.QueryUpgradedClientStateResponse) return object; - let message = new $root.ibc.core.connection.v1.ConnectionEnd(); - if (object.client_id != null) - message.client_id = String(object.client_id); - if (object.versions) { - if (!Array.isArray(object.versions)) - throw TypeError(".ibc.core.connection.v1.ConnectionEnd.versions: array expected"); - message.versions = []; - for (let i = 0; i < object.versions.length; ++i) { - if (typeof object.versions[i] !== "object") - throw TypeError(".ibc.core.connection.v1.ConnectionEnd.versions: object expected"); - message.versions[i] = $root.ibc.core.connection.v1.Version.fromObject(object.versions[i]); - } - } - switch (object.state) { - case "STATE_UNINITIALIZED_UNSPECIFIED": - case 0: - message.state = 0; - break; - case "STATE_INIT": - case 1: - message.state = 1; - break; - case "STATE_TRYOPEN": - case 2: - message.state = 2; - break; - case "STATE_OPEN": - case 3: - message.state = 3; - break; - } - if (object.counterparty != null) { - if (typeof object.counterparty !== "object") - throw TypeError(".ibc.core.connection.v1.ConnectionEnd.counterparty: object expected"); - message.counterparty = $root.ibc.core.connection.v1.Counterparty.fromObject(object.counterparty); + let message = new $root.ibc.core.client.v1.QueryUpgradedClientStateResponse(); + if (object.upgraded_client_state != null) { + if (typeof object.upgraded_client_state !== "object") + throw TypeError(".ibc.core.client.v1.QueryUpgradedClientStateResponse.upgraded_client_state: object expected"); + message.upgraded_client_state = $root.google.protobuf.Any.fromObject(object.upgraded_client_state); } - if (object.delay_period != null) - if ($util.Long) - (message.delay_period = $util.Long.fromValue(object.delay_period)).unsigned = true; - else if (typeof object.delay_period === "string") - message.delay_period = parseInt(object.delay_period, 10); - else if (typeof object.delay_period === "number") - message.delay_period = object.delay_period; - else if (typeof object.delay_period === "object") - message.delay_period = new $util.LongBits(object.delay_period.low >>> 0, object.delay_period.high >>> 0).toNumber(true); return message; }; /** - * Creates a plain object from a ConnectionEnd message. Also converts values to other types if specified. + * Creates a plain object from a QueryUpgradedClientStateResponse message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.connection.v1.ConnectionEnd + * @memberof ibc.core.client.v1.QueryUpgradedClientStateResponse * @static - * @param {ibc.core.connection.v1.ConnectionEnd} message ConnectionEnd + * @param {ibc.core.client.v1.QueryUpgradedClientStateResponse} message QueryUpgradedClientStateResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ConnectionEnd.toObject = function toObject(message, options) { + QueryUpgradedClientStateResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.versions = []; - if (options.defaults) { - object.client_id = ""; - object.state = options.enums === String ? "STATE_UNINITIALIZED_UNSPECIFIED" : 0; - object.counterparty = null; - if ($util.Long) { - let long = new $util.Long(0, 0, true); - object.delay_period = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.delay_period = options.longs === String ? "0" : 0; - } - if (message.client_id != null && message.hasOwnProperty("client_id")) - object.client_id = message.client_id; - if (message.versions && message.versions.length) { - object.versions = []; - for (let j = 0; j < message.versions.length; ++j) - object.versions[j] = $root.ibc.core.connection.v1.Version.toObject(message.versions[j], options); - } - if (message.state != null && message.hasOwnProperty("state")) - object.state = options.enums === String ? $root.ibc.core.connection.v1.State[message.state] : message.state; - if (message.counterparty != null && message.hasOwnProperty("counterparty")) - object.counterparty = $root.ibc.core.connection.v1.Counterparty.toObject(message.counterparty, options); - if (message.delay_period != null && message.hasOwnProperty("delay_period")) - if (typeof message.delay_period === "number") - object.delay_period = options.longs === String ? String(message.delay_period) : message.delay_period; - else - object.delay_period = options.longs === String ? $util.Long.prototype.toString.call(message.delay_period) : options.longs === Number ? new $util.LongBits(message.delay_period.low >>> 0, message.delay_period.high >>> 0).toNumber(true) : message.delay_period; - return object; - }; - - /** - * Converts this ConnectionEnd to JSON. - * @function toJSON - * @memberof ibc.core.connection.v1.ConnectionEnd - * @instance - * @returns {Object.} JSON object - */ - ConnectionEnd.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ConnectionEnd; - })(); - - v1.IdentifiedConnection = (function() { - - /** - * Properties of an IdentifiedConnection. - * @memberof ibc.core.connection.v1 - * @interface IIdentifiedConnection - * @property {string|null} [id] IdentifiedConnection id - * @property {string|null} [client_id] IdentifiedConnection client_id - * @property {Array.|null} [versions] IdentifiedConnection versions - * @property {ibc.core.connection.v1.State|null} [state] IdentifiedConnection state - * @property {ibc.core.connection.v1.ICounterparty|null} [counterparty] IdentifiedConnection counterparty - * @property {Long|null} [delay_period] IdentifiedConnection delay_period - */ - - /** - * Constructs a new IdentifiedConnection. - * @memberof ibc.core.connection.v1 - * @classdesc Represents an IdentifiedConnection. - * @implements IIdentifiedConnection - * @constructor - * @param {ibc.core.connection.v1.IIdentifiedConnection=} [properties] Properties to set - */ - function IdentifiedConnection(properties) { - this.versions = []; - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * IdentifiedConnection id. - * @member {string} id - * @memberof ibc.core.connection.v1.IdentifiedConnection - * @instance - */ - IdentifiedConnection.prototype.id = ""; - - /** - * IdentifiedConnection client_id. - * @member {string} client_id - * @memberof ibc.core.connection.v1.IdentifiedConnection - * @instance - */ - IdentifiedConnection.prototype.client_id = ""; - - /** - * IdentifiedConnection versions. - * @member {Array.} versions - * @memberof ibc.core.connection.v1.IdentifiedConnection - * @instance - */ - IdentifiedConnection.prototype.versions = $util.emptyArray; + if (options.defaults) + object.upgraded_client_state = null; + if (message.upgraded_client_state != null && message.hasOwnProperty("upgraded_client_state")) + object.upgraded_client_state = $root.google.protobuf.Any.toObject(message.upgraded_client_state, options); + return object; + }; /** - * IdentifiedConnection state. - * @member {ibc.core.connection.v1.State} state - * @memberof ibc.core.connection.v1.IdentifiedConnection + * Converts this QueryUpgradedClientStateResponse to JSON. + * @function toJSON + * @memberof ibc.core.client.v1.QueryUpgradedClientStateResponse * @instance + * @returns {Object.} JSON object */ - IdentifiedConnection.prototype.state = 0; + QueryUpgradedClientStateResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return QueryUpgradedClientStateResponse; + })(); + + v1.QueryUpgradedConsensusStateRequest = (function() { /** - * IdentifiedConnection counterparty. - * @member {ibc.core.connection.v1.ICounterparty|null|undefined} counterparty - * @memberof ibc.core.connection.v1.IdentifiedConnection - * @instance + * Properties of a QueryUpgradedConsensusStateRequest. + * @memberof ibc.core.client.v1 + * @interface IQueryUpgradedConsensusStateRequest */ - IdentifiedConnection.prototype.counterparty = null; /** - * IdentifiedConnection delay_period. - * @member {Long} delay_period - * @memberof ibc.core.connection.v1.IdentifiedConnection - * @instance + * Constructs a new QueryUpgradedConsensusStateRequest. + * @memberof ibc.core.client.v1 + * @classdesc Represents a QueryUpgradedConsensusStateRequest. + * @implements IQueryUpgradedConsensusStateRequest + * @constructor + * @param {ibc.core.client.v1.IQueryUpgradedConsensusStateRequest=} [properties] Properties to set */ - IdentifiedConnection.prototype.delay_period = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + function QueryUpgradedConsensusStateRequest(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * Encodes the specified IdentifiedConnection message. Does not implicitly {@link ibc.core.connection.v1.IdentifiedConnection.verify|verify} messages. + * Encodes the specified QueryUpgradedConsensusStateRequest message. Does not implicitly {@link ibc.core.client.v1.QueryUpgradedConsensusStateRequest.verify|verify} messages. * @function encode - * @memberof ibc.core.connection.v1.IdentifiedConnection + * @memberof ibc.core.client.v1.QueryUpgradedConsensusStateRequest * @static - * @param {ibc.core.connection.v1.IIdentifiedConnection} message IdentifiedConnection message or plain object to encode + * @param {ibc.core.client.v1.IQueryUpgradedConsensusStateRequest} message QueryUpgradedConsensusStateRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - IdentifiedConnection.encode = function encode(message, writer) { + QueryUpgradedConsensusStateRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.id != null && Object.hasOwnProperty.call(message, "id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.id); - if (message.client_id != null && Object.hasOwnProperty.call(message, "client_id")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.client_id); - if (message.versions != null && message.versions.length) - for (let i = 0; i < message.versions.length; ++i) - $root.ibc.core.connection.v1.Version.encode(message.versions[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.state != null && Object.hasOwnProperty.call(message, "state")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.state); - if (message.counterparty != null && Object.hasOwnProperty.call(message, "counterparty")) - $root.ibc.core.connection.v1.Counterparty.encode(message.counterparty, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.delay_period != null && Object.hasOwnProperty.call(message, "delay_period")) - writer.uint32(/* id 6, wireType 0 =*/48).uint64(message.delay_period); return writer; }; /** - * Encodes the specified IdentifiedConnection message, length delimited. Does not implicitly {@link ibc.core.connection.v1.IdentifiedConnection.verify|verify} messages. + * Encodes the specified QueryUpgradedConsensusStateRequest message, length delimited. Does not implicitly {@link ibc.core.client.v1.QueryUpgradedConsensusStateRequest.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.connection.v1.IdentifiedConnection + * @memberof ibc.core.client.v1.QueryUpgradedConsensusStateRequest * @static - * @param {ibc.core.connection.v1.IIdentifiedConnection} message IdentifiedConnection message or plain object to encode + * @param {ibc.core.client.v1.IQueryUpgradedConsensusStateRequest} message QueryUpgradedConsensusStateRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - IdentifiedConnection.encodeDelimited = function encodeDelimited(message, writer) { + QueryUpgradedConsensusStateRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an IdentifiedConnection message from the specified reader or buffer. + * Decodes a QueryUpgradedConsensusStateRequest message from the specified reader or buffer. * @function decode - * @memberof ibc.core.connection.v1.IdentifiedConnection + * @memberof ibc.core.client.v1.QueryUpgradedConsensusStateRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.connection.v1.IdentifiedConnection} IdentifiedConnection + * @returns {ibc.core.client.v1.QueryUpgradedConsensusStateRequest} QueryUpgradedConsensusStateRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - IdentifiedConnection.decode = function decode(reader, length) { + QueryUpgradedConsensusStateRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.connection.v1.IdentifiedConnection(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.QueryUpgradedConsensusStateRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.id = reader.string(); - break; - case 2: - message.client_id = reader.string(); - break; - case 3: - if (!(message.versions && message.versions.length)) - message.versions = []; - message.versions.push($root.ibc.core.connection.v1.Version.decode(reader, reader.uint32())); - break; - case 4: - message.state = reader.int32(); - break; - case 5: - message.counterparty = $root.ibc.core.connection.v1.Counterparty.decode(reader, reader.uint32()); - break; - case 6: - message.delay_period = reader.uint64(); - break; default: reader.skipType(tag & 7); break; @@ -59933,228 +65854,94 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes an IdentifiedConnection message from the specified reader or buffer, length delimited. + * Decodes a QueryUpgradedConsensusStateRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.connection.v1.IdentifiedConnection + * @memberof ibc.core.client.v1.QueryUpgradedConsensusStateRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.connection.v1.IdentifiedConnection} IdentifiedConnection + * @returns {ibc.core.client.v1.QueryUpgradedConsensusStateRequest} QueryUpgradedConsensusStateRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - IdentifiedConnection.decodeDelimited = function decodeDelimited(reader) { + QueryUpgradedConsensusStateRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an IdentifiedConnection message. + * Verifies a QueryUpgradedConsensusStateRequest message. * @function verify - * @memberof ibc.core.connection.v1.IdentifiedConnection + * @memberof ibc.core.client.v1.QueryUpgradedConsensusStateRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - IdentifiedConnection.verify = function verify(message) { + QueryUpgradedConsensusStateRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) - if (!$util.isString(message.id)) - return "id: string expected"; - if (message.client_id != null && message.hasOwnProperty("client_id")) - if (!$util.isString(message.client_id)) - return "client_id: string expected"; - if (message.versions != null && message.hasOwnProperty("versions")) { - if (!Array.isArray(message.versions)) - return "versions: array expected"; - for (let i = 0; i < message.versions.length; ++i) { - let error = $root.ibc.core.connection.v1.Version.verify(message.versions[i]); - if (error) - return "versions." + error; - } - } - if (message.state != null && message.hasOwnProperty("state")) - switch (message.state) { - default: - return "state: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - if (message.counterparty != null && message.hasOwnProperty("counterparty")) { - let error = $root.ibc.core.connection.v1.Counterparty.verify(message.counterparty); - if (error) - return "counterparty." + error; - } - if (message.delay_period != null && message.hasOwnProperty("delay_period")) - if (!$util.isInteger(message.delay_period) && !(message.delay_period && $util.isInteger(message.delay_period.low) && $util.isInteger(message.delay_period.high))) - return "delay_period: integer|Long expected"; return null; }; /** - * Creates an IdentifiedConnection message from a plain object. Also converts values to their respective internal types. + * Creates a QueryUpgradedConsensusStateRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.connection.v1.IdentifiedConnection + * @memberof ibc.core.client.v1.QueryUpgradedConsensusStateRequest * @static * @param {Object.} object Plain object - * @returns {ibc.core.connection.v1.IdentifiedConnection} IdentifiedConnection + * @returns {ibc.core.client.v1.QueryUpgradedConsensusStateRequest} QueryUpgradedConsensusStateRequest */ - IdentifiedConnection.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.connection.v1.IdentifiedConnection) + QueryUpgradedConsensusStateRequest.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.client.v1.QueryUpgradedConsensusStateRequest) return object; - let message = new $root.ibc.core.connection.v1.IdentifiedConnection(); - if (object.id != null) - message.id = String(object.id); - if (object.client_id != null) - message.client_id = String(object.client_id); - if (object.versions) { - if (!Array.isArray(object.versions)) - throw TypeError(".ibc.core.connection.v1.IdentifiedConnection.versions: array expected"); - message.versions = []; - for (let i = 0; i < object.versions.length; ++i) { - if (typeof object.versions[i] !== "object") - throw TypeError(".ibc.core.connection.v1.IdentifiedConnection.versions: object expected"); - message.versions[i] = $root.ibc.core.connection.v1.Version.fromObject(object.versions[i]); - } - } - switch (object.state) { - case "STATE_UNINITIALIZED_UNSPECIFIED": - case 0: - message.state = 0; - break; - case "STATE_INIT": - case 1: - message.state = 1; - break; - case "STATE_TRYOPEN": - case 2: - message.state = 2; - break; - case "STATE_OPEN": - case 3: - message.state = 3; - break; - } - if (object.counterparty != null) { - if (typeof object.counterparty !== "object") - throw TypeError(".ibc.core.connection.v1.IdentifiedConnection.counterparty: object expected"); - message.counterparty = $root.ibc.core.connection.v1.Counterparty.fromObject(object.counterparty); - } - if (object.delay_period != null) - if ($util.Long) - (message.delay_period = $util.Long.fromValue(object.delay_period)).unsigned = true; - else if (typeof object.delay_period === "string") - message.delay_period = parseInt(object.delay_period, 10); - else if (typeof object.delay_period === "number") - message.delay_period = object.delay_period; - else if (typeof object.delay_period === "object") - message.delay_period = new $util.LongBits(object.delay_period.low >>> 0, object.delay_period.high >>> 0).toNumber(true); - return message; + return new $root.ibc.core.client.v1.QueryUpgradedConsensusStateRequest(); }; /** - * Creates a plain object from an IdentifiedConnection message. Also converts values to other types if specified. + * Creates a plain object from a QueryUpgradedConsensusStateRequest message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.connection.v1.IdentifiedConnection + * @memberof ibc.core.client.v1.QueryUpgradedConsensusStateRequest * @static - * @param {ibc.core.connection.v1.IdentifiedConnection} message IdentifiedConnection + * @param {ibc.core.client.v1.QueryUpgradedConsensusStateRequest} message QueryUpgradedConsensusStateRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - IdentifiedConnection.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.arrays || options.defaults) - object.versions = []; - if (options.defaults) { - object.id = ""; - object.client_id = ""; - object.state = options.enums === String ? "STATE_UNINITIALIZED_UNSPECIFIED" : 0; - object.counterparty = null; - if ($util.Long) { - let long = new $util.Long(0, 0, true); - object.delay_period = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.delay_period = options.longs === String ? "0" : 0; - } - if (message.id != null && message.hasOwnProperty("id")) - object.id = message.id; - if (message.client_id != null && message.hasOwnProperty("client_id")) - object.client_id = message.client_id; - if (message.versions && message.versions.length) { - object.versions = []; - for (let j = 0; j < message.versions.length; ++j) - object.versions[j] = $root.ibc.core.connection.v1.Version.toObject(message.versions[j], options); - } - if (message.state != null && message.hasOwnProperty("state")) - object.state = options.enums === String ? $root.ibc.core.connection.v1.State[message.state] : message.state; - if (message.counterparty != null && message.hasOwnProperty("counterparty")) - object.counterparty = $root.ibc.core.connection.v1.Counterparty.toObject(message.counterparty, options); - if (message.delay_period != null && message.hasOwnProperty("delay_period")) - if (typeof message.delay_period === "number") - object.delay_period = options.longs === String ? String(message.delay_period) : message.delay_period; - else - object.delay_period = options.longs === String ? $util.Long.prototype.toString.call(message.delay_period) : options.longs === Number ? new $util.LongBits(message.delay_period.low >>> 0, message.delay_period.high >>> 0).toNumber(true) : message.delay_period; - return object; + QueryUpgradedConsensusStateRequest.toObject = function toObject() { + return {}; }; /** - * Converts this IdentifiedConnection to JSON. + * Converts this QueryUpgradedConsensusStateRequest to JSON. * @function toJSON - * @memberof ibc.core.connection.v1.IdentifiedConnection + * @memberof ibc.core.client.v1.QueryUpgradedConsensusStateRequest * @instance * @returns {Object.} JSON object */ - IdentifiedConnection.prototype.toJSON = function toJSON() { + QueryUpgradedConsensusStateRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return IdentifiedConnection; - })(); - - /** - * State enum. - * @name ibc.core.connection.v1.State - * @enum {number} - * @property {number} STATE_UNINITIALIZED_UNSPECIFIED=0 STATE_UNINITIALIZED_UNSPECIFIED value - * @property {number} STATE_INIT=1 STATE_INIT value - * @property {number} STATE_TRYOPEN=2 STATE_TRYOPEN value - * @property {number} STATE_OPEN=3 STATE_OPEN value - */ - v1.State = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "STATE_UNINITIALIZED_UNSPECIFIED"] = 0; - values[valuesById[1] = "STATE_INIT"] = 1; - values[valuesById[2] = "STATE_TRYOPEN"] = 2; - values[valuesById[3] = "STATE_OPEN"] = 3; - return values; + return QueryUpgradedConsensusStateRequest; })(); - v1.Counterparty = (function() { + v1.QueryUpgradedConsensusStateResponse = (function() { /** - * Properties of a Counterparty. - * @memberof ibc.core.connection.v1 - * @interface ICounterparty - * @property {string|null} [client_id] Counterparty client_id - * @property {string|null} [connection_id] Counterparty connection_id - * @property {ibc.core.commitment.v1.IMerklePrefix|null} [prefix] Counterparty prefix + * Properties of a QueryUpgradedConsensusStateResponse. + * @memberof ibc.core.client.v1 + * @interface IQueryUpgradedConsensusStateResponse + * @property {google.protobuf.IAny|null} [upgraded_consensus_state] QueryUpgradedConsensusStateResponse upgraded_consensus_state */ /** - * Constructs a new Counterparty. - * @memberof ibc.core.connection.v1 - * @classdesc Represents a Counterparty. - * @implements ICounterparty + * Constructs a new QueryUpgradedConsensusStateResponse. + * @memberof ibc.core.client.v1 + * @classdesc Represents a QueryUpgradedConsensusStateResponse. + * @implements IQueryUpgradedConsensusStateResponse * @constructor - * @param {ibc.core.connection.v1.ICounterparty=} [properties] Properties to set + * @param {ibc.core.client.v1.IQueryUpgradedConsensusStateResponse=} [properties] Properties to set */ - function Counterparty(properties) { + function QueryUpgradedConsensusStateResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -60162,89 +65949,63 @@ export const ibc = $root.ibc = (() => { } /** - * Counterparty client_id. - * @member {string} client_id - * @memberof ibc.core.connection.v1.Counterparty - * @instance - */ - Counterparty.prototype.client_id = ""; - - /** - * Counterparty connection_id. - * @member {string} connection_id - * @memberof ibc.core.connection.v1.Counterparty - * @instance - */ - Counterparty.prototype.connection_id = ""; - - /** - * Counterparty prefix. - * @member {ibc.core.commitment.v1.IMerklePrefix|null|undefined} prefix - * @memberof ibc.core.connection.v1.Counterparty + * QueryUpgradedConsensusStateResponse upgraded_consensus_state. + * @member {google.protobuf.IAny|null|undefined} upgraded_consensus_state + * @memberof ibc.core.client.v1.QueryUpgradedConsensusStateResponse * @instance */ - Counterparty.prototype.prefix = null; + QueryUpgradedConsensusStateResponse.prototype.upgraded_consensus_state = null; /** - * Encodes the specified Counterparty message. Does not implicitly {@link ibc.core.connection.v1.Counterparty.verify|verify} messages. + * Encodes the specified QueryUpgradedConsensusStateResponse message. Does not implicitly {@link ibc.core.client.v1.QueryUpgradedConsensusStateResponse.verify|verify} messages. * @function encode - * @memberof ibc.core.connection.v1.Counterparty + * @memberof ibc.core.client.v1.QueryUpgradedConsensusStateResponse * @static - * @param {ibc.core.connection.v1.ICounterparty} message Counterparty message or plain object to encode + * @param {ibc.core.client.v1.IQueryUpgradedConsensusStateResponse} message QueryUpgradedConsensusStateResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Counterparty.encode = function encode(message, writer) { + QueryUpgradedConsensusStateResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.client_id != null && Object.hasOwnProperty.call(message, "client_id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.client_id); - if (message.connection_id != null && Object.hasOwnProperty.call(message, "connection_id")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.connection_id); - if (message.prefix != null && Object.hasOwnProperty.call(message, "prefix")) - $root.ibc.core.commitment.v1.MerklePrefix.encode(message.prefix, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.upgraded_consensus_state != null && Object.hasOwnProperty.call(message, "upgraded_consensus_state")) + $root.google.protobuf.Any.encode(message.upgraded_consensus_state, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified Counterparty message, length delimited. Does not implicitly {@link ibc.core.connection.v1.Counterparty.verify|verify} messages. + * Encodes the specified QueryUpgradedConsensusStateResponse message, length delimited. Does not implicitly {@link ibc.core.client.v1.QueryUpgradedConsensusStateResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.connection.v1.Counterparty + * @memberof ibc.core.client.v1.QueryUpgradedConsensusStateResponse * @static - * @param {ibc.core.connection.v1.ICounterparty} message Counterparty message or plain object to encode + * @param {ibc.core.client.v1.IQueryUpgradedConsensusStateResponse} message QueryUpgradedConsensusStateResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Counterparty.encodeDelimited = function encodeDelimited(message, writer) { + QueryUpgradedConsensusStateResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Counterparty message from the specified reader or buffer. + * Decodes a QueryUpgradedConsensusStateResponse message from the specified reader or buffer. * @function decode - * @memberof ibc.core.connection.v1.Counterparty + * @memberof ibc.core.client.v1.QueryUpgradedConsensusStateResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.connection.v1.Counterparty} Counterparty + * @returns {ibc.core.client.v1.QueryUpgradedConsensusStateResponse} QueryUpgradedConsensusStateResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Counterparty.decode = function decode(reader, length) { + QueryUpgradedConsensusStateResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.connection.v1.Counterparty(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.QueryUpgradedConsensusStateResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.client_id = reader.string(); - break; - case 2: - message.connection_id = reader.string(); - break; - case 3: - message.prefix = $root.ibc.core.commitment.v1.MerklePrefix.decode(reader, reader.uint32()); + message.upgraded_consensus_state = $root.google.protobuf.Any.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -60255,197 +66016,258 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a Counterparty message from the specified reader or buffer, length delimited. + * Decodes a QueryUpgradedConsensusStateResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.connection.v1.Counterparty + * @memberof ibc.core.client.v1.QueryUpgradedConsensusStateResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.connection.v1.Counterparty} Counterparty + * @returns {ibc.core.client.v1.QueryUpgradedConsensusStateResponse} QueryUpgradedConsensusStateResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Counterparty.decodeDelimited = function decodeDelimited(reader) { + QueryUpgradedConsensusStateResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Counterparty message. + * Verifies a QueryUpgradedConsensusStateResponse message. * @function verify - * @memberof ibc.core.connection.v1.Counterparty + * @memberof ibc.core.client.v1.QueryUpgradedConsensusStateResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Counterparty.verify = function verify(message) { + QueryUpgradedConsensusStateResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.client_id != null && message.hasOwnProperty("client_id")) - if (!$util.isString(message.client_id)) - return "client_id: string expected"; - if (message.connection_id != null && message.hasOwnProperty("connection_id")) - if (!$util.isString(message.connection_id)) - return "connection_id: string expected"; - if (message.prefix != null && message.hasOwnProperty("prefix")) { - let error = $root.ibc.core.commitment.v1.MerklePrefix.verify(message.prefix); + if (message.upgraded_consensus_state != null && message.hasOwnProperty("upgraded_consensus_state")) { + let error = $root.google.protobuf.Any.verify(message.upgraded_consensus_state); if (error) - return "prefix." + error; + return "upgraded_consensus_state." + error; } return null; }; /** - * Creates a Counterparty message from a plain object. Also converts values to their respective internal types. + * Creates a QueryUpgradedConsensusStateResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.connection.v1.Counterparty + * @memberof ibc.core.client.v1.QueryUpgradedConsensusStateResponse * @static * @param {Object.} object Plain object - * @returns {ibc.core.connection.v1.Counterparty} Counterparty + * @returns {ibc.core.client.v1.QueryUpgradedConsensusStateResponse} QueryUpgradedConsensusStateResponse */ - Counterparty.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.connection.v1.Counterparty) + QueryUpgradedConsensusStateResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.client.v1.QueryUpgradedConsensusStateResponse) return object; - let message = new $root.ibc.core.connection.v1.Counterparty(); - if (object.client_id != null) - message.client_id = String(object.client_id); - if (object.connection_id != null) - message.connection_id = String(object.connection_id); - if (object.prefix != null) { - if (typeof object.prefix !== "object") - throw TypeError(".ibc.core.connection.v1.Counterparty.prefix: object expected"); - message.prefix = $root.ibc.core.commitment.v1.MerklePrefix.fromObject(object.prefix); + let message = new $root.ibc.core.client.v1.QueryUpgradedConsensusStateResponse(); + if (object.upgraded_consensus_state != null) { + if (typeof object.upgraded_consensus_state !== "object") + throw TypeError(".ibc.core.client.v1.QueryUpgradedConsensusStateResponse.upgraded_consensus_state: object expected"); + message.upgraded_consensus_state = $root.google.protobuf.Any.fromObject(object.upgraded_consensus_state); } return message; }; /** - * Creates a plain object from a Counterparty message. Also converts values to other types if specified. + * Creates a plain object from a QueryUpgradedConsensusStateResponse message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.connection.v1.Counterparty + * @memberof ibc.core.client.v1.QueryUpgradedConsensusStateResponse * @static - * @param {ibc.core.connection.v1.Counterparty} message Counterparty + * @param {ibc.core.client.v1.QueryUpgradedConsensusStateResponse} message QueryUpgradedConsensusStateResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Counterparty.toObject = function toObject(message, options) { + QueryUpgradedConsensusStateResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) { - object.client_id = ""; - object.connection_id = ""; - object.prefix = null; - } - if (message.client_id != null && message.hasOwnProperty("client_id")) - object.client_id = message.client_id; - if (message.connection_id != null && message.hasOwnProperty("connection_id")) - object.connection_id = message.connection_id; - if (message.prefix != null && message.hasOwnProperty("prefix")) - object.prefix = $root.ibc.core.commitment.v1.MerklePrefix.toObject(message.prefix, options); + if (options.defaults) + object.upgraded_consensus_state = null; + if (message.upgraded_consensus_state != null && message.hasOwnProperty("upgraded_consensus_state")) + object.upgraded_consensus_state = $root.google.protobuf.Any.toObject(message.upgraded_consensus_state, options); return object; }; /** - * Converts this Counterparty to JSON. + * Converts this QueryUpgradedConsensusStateResponse to JSON. * @function toJSON - * @memberof ibc.core.connection.v1.Counterparty + * @memberof ibc.core.client.v1.QueryUpgradedConsensusStateResponse * @instance * @returns {Object.} JSON object */ - Counterparty.prototype.toJSON = function toJSON() { + QueryUpgradedConsensusStateResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Counterparty; + return QueryUpgradedConsensusStateResponse; })(); - v1.ClientPaths = (function() { + v1.GenesisState = (function() { /** - * Properties of a ClientPaths. - * @memberof ibc.core.connection.v1 - * @interface IClientPaths - * @property {Array.|null} [paths] ClientPaths paths + * Properties of a GenesisState. + * @memberof ibc.core.client.v1 + * @interface IGenesisState + * @property {Array.|null} [clients] GenesisState clients + * @property {Array.|null} [clients_consensus] GenesisState clients_consensus + * @property {Array.|null} [clients_metadata] GenesisState clients_metadata + * @property {ibc.core.client.v1.IParams|null} [params] GenesisState params + * @property {boolean|null} [create_localhost] GenesisState create_localhost + * @property {Long|null} [next_client_sequence] GenesisState next_client_sequence + */ + + /** + * Constructs a new GenesisState. + * @memberof ibc.core.client.v1 + * @classdesc Represents a GenesisState. + * @implements IGenesisState + * @constructor + * @param {ibc.core.client.v1.IGenesisState=} [properties] Properties to set + */ + function GenesisState(properties) { + this.clients = []; + this.clients_consensus = []; + this.clients_metadata = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * GenesisState clients. + * @member {Array.} clients + * @memberof ibc.core.client.v1.GenesisState + * @instance + */ + GenesisState.prototype.clients = $util.emptyArray; + + /** + * GenesisState clients_consensus. + * @member {Array.} clients_consensus + * @memberof ibc.core.client.v1.GenesisState + * @instance + */ + GenesisState.prototype.clients_consensus = $util.emptyArray; + + /** + * GenesisState clients_metadata. + * @member {Array.} clients_metadata + * @memberof ibc.core.client.v1.GenesisState + * @instance + */ + GenesisState.prototype.clients_metadata = $util.emptyArray; + + /** + * GenesisState params. + * @member {ibc.core.client.v1.IParams|null|undefined} params + * @memberof ibc.core.client.v1.GenesisState + * @instance */ + GenesisState.prototype.params = null; /** - * Constructs a new ClientPaths. - * @memberof ibc.core.connection.v1 - * @classdesc Represents a ClientPaths. - * @implements IClientPaths - * @constructor - * @param {ibc.core.connection.v1.IClientPaths=} [properties] Properties to set + * GenesisState create_localhost. + * @member {boolean} create_localhost + * @memberof ibc.core.client.v1.GenesisState + * @instance */ - function ClientPaths(properties) { - this.paths = []; - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + GenesisState.prototype.create_localhost = false; /** - * ClientPaths paths. - * @member {Array.} paths - * @memberof ibc.core.connection.v1.ClientPaths + * GenesisState next_client_sequence. + * @member {Long} next_client_sequence + * @memberof ibc.core.client.v1.GenesisState * @instance */ - ClientPaths.prototype.paths = $util.emptyArray; + GenesisState.prototype.next_client_sequence = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** - * Encodes the specified ClientPaths message. Does not implicitly {@link ibc.core.connection.v1.ClientPaths.verify|verify} messages. + * Encodes the specified GenesisState message. Does not implicitly {@link ibc.core.client.v1.GenesisState.verify|verify} messages. * @function encode - * @memberof ibc.core.connection.v1.ClientPaths + * @memberof ibc.core.client.v1.GenesisState * @static - * @param {ibc.core.connection.v1.IClientPaths} message ClientPaths message or plain object to encode + * @param {ibc.core.client.v1.IGenesisState} message GenesisState message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ClientPaths.encode = function encode(message, writer) { + GenesisState.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.paths != null && message.paths.length) - for (let i = 0; i < message.paths.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.paths[i]); + if (message.clients != null && message.clients.length) + for (let i = 0; i < message.clients.length; ++i) + $root.ibc.core.client.v1.IdentifiedClientState.encode(message.clients[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.clients_consensus != null && message.clients_consensus.length) + for (let i = 0; i < message.clients_consensus.length; ++i) + $root.ibc.core.client.v1.ClientConsensusStates.encode(message.clients_consensus[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.clients_metadata != null && message.clients_metadata.length) + for (let i = 0; i < message.clients_metadata.length; ++i) + $root.ibc.core.client.v1.IdentifiedGenesisMetadata.encode(message.clients_metadata[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.params != null && Object.hasOwnProperty.call(message, "params")) + $root.ibc.core.client.v1.Params.encode(message.params, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.create_localhost != null && Object.hasOwnProperty.call(message, "create_localhost")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.create_localhost); + if (message.next_client_sequence != null && Object.hasOwnProperty.call(message, "next_client_sequence")) + writer.uint32(/* id 6, wireType 0 =*/48).uint64(message.next_client_sequence); return writer; }; /** - * Encodes the specified ClientPaths message, length delimited. Does not implicitly {@link ibc.core.connection.v1.ClientPaths.verify|verify} messages. + * Encodes the specified GenesisState message, length delimited. Does not implicitly {@link ibc.core.client.v1.GenesisState.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.connection.v1.ClientPaths + * @memberof ibc.core.client.v1.GenesisState * @static - * @param {ibc.core.connection.v1.IClientPaths} message ClientPaths message or plain object to encode + * @param {ibc.core.client.v1.IGenesisState} message GenesisState message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ClientPaths.encodeDelimited = function encodeDelimited(message, writer) { + GenesisState.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ClientPaths message from the specified reader or buffer. + * Decodes a GenesisState message from the specified reader or buffer. * @function decode - * @memberof ibc.core.connection.v1.ClientPaths + * @memberof ibc.core.client.v1.GenesisState * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.connection.v1.ClientPaths} ClientPaths + * @returns {ibc.core.client.v1.GenesisState} GenesisState * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ClientPaths.decode = function decode(reader, length) { + GenesisState.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.connection.v1.ClientPaths(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.GenesisState(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.paths && message.paths.length)) - message.paths = []; - message.paths.push(reader.string()); + if (!(message.clients && message.clients.length)) + message.clients = []; + message.clients.push($root.ibc.core.client.v1.IdentifiedClientState.decode(reader, reader.uint32())); + break; + case 2: + if (!(message.clients_consensus && message.clients_consensus.length)) + message.clients_consensus = []; + message.clients_consensus.push($root.ibc.core.client.v1.ClientConsensusStates.decode(reader, reader.uint32())); + break; + case 3: + if (!(message.clients_metadata && message.clients_metadata.length)) + message.clients_metadata = []; + message.clients_metadata.push($root.ibc.core.client.v1.IdentifiedGenesisMetadata.decode(reader, reader.uint32())); + break; + case 4: + message.params = $root.ibc.core.client.v1.Params.decode(reader, reader.uint32()); + break; + case 5: + message.create_localhost = reader.bool(); + break; + case 6: + message.next_client_sequence = reader.uint64(); break; default: reader.skipType(tag & 7); @@ -60456,121 +66278,221 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a ClientPaths message from the specified reader or buffer, length delimited. + * Decodes a GenesisState message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.connection.v1.ClientPaths + * @memberof ibc.core.client.v1.GenesisState * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.connection.v1.ClientPaths} ClientPaths + * @returns {ibc.core.client.v1.GenesisState} GenesisState * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ClientPaths.decodeDelimited = function decodeDelimited(reader) { + GenesisState.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ClientPaths message. + * Verifies a GenesisState message. * @function verify - * @memberof ibc.core.connection.v1.ClientPaths + * @memberof ibc.core.client.v1.GenesisState * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ClientPaths.verify = function verify(message) { + GenesisState.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.paths != null && message.hasOwnProperty("paths")) { - if (!Array.isArray(message.paths)) - return "paths: array expected"; - for (let i = 0; i < message.paths.length; ++i) - if (!$util.isString(message.paths[i])) - return "paths: string[] expected"; + if (message.clients != null && message.hasOwnProperty("clients")) { + if (!Array.isArray(message.clients)) + return "clients: array expected"; + for (let i = 0; i < message.clients.length; ++i) { + let error = $root.ibc.core.client.v1.IdentifiedClientState.verify(message.clients[i]); + if (error) + return "clients." + error; + } + } + if (message.clients_consensus != null && message.hasOwnProperty("clients_consensus")) { + if (!Array.isArray(message.clients_consensus)) + return "clients_consensus: array expected"; + for (let i = 0; i < message.clients_consensus.length; ++i) { + let error = $root.ibc.core.client.v1.ClientConsensusStates.verify(message.clients_consensus[i]); + if (error) + return "clients_consensus." + error; + } + } + if (message.clients_metadata != null && message.hasOwnProperty("clients_metadata")) { + if (!Array.isArray(message.clients_metadata)) + return "clients_metadata: array expected"; + for (let i = 0; i < message.clients_metadata.length; ++i) { + let error = $root.ibc.core.client.v1.IdentifiedGenesisMetadata.verify(message.clients_metadata[i]); + if (error) + return "clients_metadata." + error; + } + } + if (message.params != null && message.hasOwnProperty("params")) { + let error = $root.ibc.core.client.v1.Params.verify(message.params); + if (error) + return "params." + error; } + if (message.create_localhost != null && message.hasOwnProperty("create_localhost")) + if (typeof message.create_localhost !== "boolean") + return "create_localhost: boolean expected"; + if (message.next_client_sequence != null && message.hasOwnProperty("next_client_sequence")) + if (!$util.isInteger(message.next_client_sequence) && !(message.next_client_sequence && $util.isInteger(message.next_client_sequence.low) && $util.isInteger(message.next_client_sequence.high))) + return "next_client_sequence: integer|Long expected"; return null; }; /** - * Creates a ClientPaths message from a plain object. Also converts values to their respective internal types. + * Creates a GenesisState message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.connection.v1.ClientPaths + * @memberof ibc.core.client.v1.GenesisState * @static * @param {Object.} object Plain object - * @returns {ibc.core.connection.v1.ClientPaths} ClientPaths + * @returns {ibc.core.client.v1.GenesisState} GenesisState */ - ClientPaths.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.connection.v1.ClientPaths) + GenesisState.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.client.v1.GenesisState) return object; - let message = new $root.ibc.core.connection.v1.ClientPaths(); - if (object.paths) { - if (!Array.isArray(object.paths)) - throw TypeError(".ibc.core.connection.v1.ClientPaths.paths: array expected"); - message.paths = []; - for (let i = 0; i < object.paths.length; ++i) - message.paths[i] = String(object.paths[i]); + let message = new $root.ibc.core.client.v1.GenesisState(); + if (object.clients) { + if (!Array.isArray(object.clients)) + throw TypeError(".ibc.core.client.v1.GenesisState.clients: array expected"); + message.clients = []; + for (let i = 0; i < object.clients.length; ++i) { + if (typeof object.clients[i] !== "object") + throw TypeError(".ibc.core.client.v1.GenesisState.clients: object expected"); + message.clients[i] = $root.ibc.core.client.v1.IdentifiedClientState.fromObject(object.clients[i]); + } + } + if (object.clients_consensus) { + if (!Array.isArray(object.clients_consensus)) + throw TypeError(".ibc.core.client.v1.GenesisState.clients_consensus: array expected"); + message.clients_consensus = []; + for (let i = 0; i < object.clients_consensus.length; ++i) { + if (typeof object.clients_consensus[i] !== "object") + throw TypeError(".ibc.core.client.v1.GenesisState.clients_consensus: object expected"); + message.clients_consensus[i] = $root.ibc.core.client.v1.ClientConsensusStates.fromObject(object.clients_consensus[i]); + } + } + if (object.clients_metadata) { + if (!Array.isArray(object.clients_metadata)) + throw TypeError(".ibc.core.client.v1.GenesisState.clients_metadata: array expected"); + message.clients_metadata = []; + for (let i = 0; i < object.clients_metadata.length; ++i) { + if (typeof object.clients_metadata[i] !== "object") + throw TypeError(".ibc.core.client.v1.GenesisState.clients_metadata: object expected"); + message.clients_metadata[i] = $root.ibc.core.client.v1.IdentifiedGenesisMetadata.fromObject(object.clients_metadata[i]); + } + } + if (object.params != null) { + if (typeof object.params !== "object") + throw TypeError(".ibc.core.client.v1.GenesisState.params: object expected"); + message.params = $root.ibc.core.client.v1.Params.fromObject(object.params); } + if (object.create_localhost != null) + message.create_localhost = Boolean(object.create_localhost); + if (object.next_client_sequence != null) + if ($util.Long) + (message.next_client_sequence = $util.Long.fromValue(object.next_client_sequence)).unsigned = true; + else if (typeof object.next_client_sequence === "string") + message.next_client_sequence = parseInt(object.next_client_sequence, 10); + else if (typeof object.next_client_sequence === "number") + message.next_client_sequence = object.next_client_sequence; + else if (typeof object.next_client_sequence === "object") + message.next_client_sequence = new $util.LongBits(object.next_client_sequence.low >>> 0, object.next_client_sequence.high >>> 0).toNumber(true); return message; }; /** - * Creates a plain object from a ClientPaths message. Also converts values to other types if specified. + * Creates a plain object from a GenesisState message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.connection.v1.ClientPaths + * @memberof ibc.core.client.v1.GenesisState * @static - * @param {ibc.core.connection.v1.ClientPaths} message ClientPaths + * @param {ibc.core.client.v1.GenesisState} message GenesisState * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ClientPaths.toObject = function toObject(message, options) { + GenesisState.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.paths = []; - if (message.paths && message.paths.length) { - object.paths = []; - for (let j = 0; j < message.paths.length; ++j) - object.paths[j] = message.paths[j]; + if (options.arrays || options.defaults) { + object.clients = []; + object.clients_consensus = []; + object.clients_metadata = []; + } + if (options.defaults) { + object.params = null; + object.create_localhost = false; + if ($util.Long) { + let long = new $util.Long(0, 0, true); + object.next_client_sequence = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.next_client_sequence = options.longs === String ? "0" : 0; + } + if (message.clients && message.clients.length) { + object.clients = []; + for (let j = 0; j < message.clients.length; ++j) + object.clients[j] = $root.ibc.core.client.v1.IdentifiedClientState.toObject(message.clients[j], options); + } + if (message.clients_consensus && message.clients_consensus.length) { + object.clients_consensus = []; + for (let j = 0; j < message.clients_consensus.length; ++j) + object.clients_consensus[j] = $root.ibc.core.client.v1.ClientConsensusStates.toObject(message.clients_consensus[j], options); } + if (message.clients_metadata && message.clients_metadata.length) { + object.clients_metadata = []; + for (let j = 0; j < message.clients_metadata.length; ++j) + object.clients_metadata[j] = $root.ibc.core.client.v1.IdentifiedGenesisMetadata.toObject(message.clients_metadata[j], options); + } + if (message.params != null && message.hasOwnProperty("params")) + object.params = $root.ibc.core.client.v1.Params.toObject(message.params, options); + if (message.create_localhost != null && message.hasOwnProperty("create_localhost")) + object.create_localhost = message.create_localhost; + if (message.next_client_sequence != null && message.hasOwnProperty("next_client_sequence")) + if (typeof message.next_client_sequence === "number") + object.next_client_sequence = options.longs === String ? String(message.next_client_sequence) : message.next_client_sequence; + else + object.next_client_sequence = options.longs === String ? $util.Long.prototype.toString.call(message.next_client_sequence) : options.longs === Number ? new $util.LongBits(message.next_client_sequence.low >>> 0, message.next_client_sequence.high >>> 0).toNumber(true) : message.next_client_sequence; return object; }; /** - * Converts this ClientPaths to JSON. + * Converts this GenesisState to JSON. * @function toJSON - * @memberof ibc.core.connection.v1.ClientPaths + * @memberof ibc.core.client.v1.GenesisState * @instance * @returns {Object.} JSON object */ - ClientPaths.prototype.toJSON = function toJSON() { + GenesisState.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ClientPaths; + return GenesisState; })(); - v1.ConnectionPaths = (function() { + v1.GenesisMetadata = (function() { /** - * Properties of a ConnectionPaths. - * @memberof ibc.core.connection.v1 - * @interface IConnectionPaths - * @property {string|null} [client_id] ConnectionPaths client_id - * @property {Array.|null} [paths] ConnectionPaths paths + * Properties of a GenesisMetadata. + * @memberof ibc.core.client.v1 + * @interface IGenesisMetadata + * @property {Uint8Array|null} [key] GenesisMetadata key + * @property {Uint8Array|null} [value] GenesisMetadata value */ /** - * Constructs a new ConnectionPaths. - * @memberof ibc.core.connection.v1 - * @classdesc Represents a ConnectionPaths. - * @implements IConnectionPaths + * Constructs a new GenesisMetadata. + * @memberof ibc.core.client.v1 + * @classdesc Represents a GenesisMetadata. + * @implements IGenesisMetadata * @constructor - * @param {ibc.core.connection.v1.IConnectionPaths=} [properties] Properties to set + * @param {ibc.core.client.v1.IGenesisMetadata=} [properties] Properties to set */ - function ConnectionPaths(properties) { - this.paths = []; + function GenesisMetadata(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -60578,79 +66500,76 @@ export const ibc = $root.ibc = (() => { } /** - * ConnectionPaths client_id. - * @member {string} client_id - * @memberof ibc.core.connection.v1.ConnectionPaths + * GenesisMetadata key. + * @member {Uint8Array} key + * @memberof ibc.core.client.v1.GenesisMetadata * @instance */ - ConnectionPaths.prototype.client_id = ""; + GenesisMetadata.prototype.key = $util.newBuffer([]); /** - * ConnectionPaths paths. - * @member {Array.} paths - * @memberof ibc.core.connection.v1.ConnectionPaths + * GenesisMetadata value. + * @member {Uint8Array} value + * @memberof ibc.core.client.v1.GenesisMetadata * @instance */ - ConnectionPaths.prototype.paths = $util.emptyArray; + GenesisMetadata.prototype.value = $util.newBuffer([]); /** - * Encodes the specified ConnectionPaths message. Does not implicitly {@link ibc.core.connection.v1.ConnectionPaths.verify|verify} messages. + * Encodes the specified GenesisMetadata message. Does not implicitly {@link ibc.core.client.v1.GenesisMetadata.verify|verify} messages. * @function encode - * @memberof ibc.core.connection.v1.ConnectionPaths + * @memberof ibc.core.client.v1.GenesisMetadata * @static - * @param {ibc.core.connection.v1.IConnectionPaths} message ConnectionPaths message or plain object to encode + * @param {ibc.core.client.v1.IGenesisMetadata} message GenesisMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ConnectionPaths.encode = function encode(message, writer) { + GenesisMetadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.client_id != null && Object.hasOwnProperty.call(message, "client_id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.client_id); - if (message.paths != null && message.paths.length) - for (let i = 0; i < message.paths.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.paths[i]); + if (message.key != null && Object.hasOwnProperty.call(message, "key")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.key); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.value); return writer; }; /** - * Encodes the specified ConnectionPaths message, length delimited. Does not implicitly {@link ibc.core.connection.v1.ConnectionPaths.verify|verify} messages. + * Encodes the specified GenesisMetadata message, length delimited. Does not implicitly {@link ibc.core.client.v1.GenesisMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.connection.v1.ConnectionPaths + * @memberof ibc.core.client.v1.GenesisMetadata * @static - * @param {ibc.core.connection.v1.IConnectionPaths} message ConnectionPaths message or plain object to encode + * @param {ibc.core.client.v1.IGenesisMetadata} message GenesisMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ConnectionPaths.encodeDelimited = function encodeDelimited(message, writer) { + GenesisMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ConnectionPaths message from the specified reader or buffer. + * Decodes a GenesisMetadata message from the specified reader or buffer. * @function decode - * @memberof ibc.core.connection.v1.ConnectionPaths + * @memberof ibc.core.client.v1.GenesisMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.connection.v1.ConnectionPaths} ConnectionPaths + * @returns {ibc.core.client.v1.GenesisMetadata} GenesisMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ConnectionPaths.decode = function decode(reader, length) { + GenesisMetadata.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.connection.v1.ConnectionPaths(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.GenesisMetadata(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.client_id = reader.string(); + message.key = reader.bytes(); break; case 2: - if (!(message.paths && message.paths.length)) - message.paths = []; - message.paths.push(reader.string()); + message.value = reader.bytes(); break; default: reader.skipType(tag & 7); @@ -60661,130 +66580,136 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a ConnectionPaths message from the specified reader or buffer, length delimited. + * Decodes a GenesisMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.connection.v1.ConnectionPaths + * @memberof ibc.core.client.v1.GenesisMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.connection.v1.ConnectionPaths} ConnectionPaths + * @returns {ibc.core.client.v1.GenesisMetadata} GenesisMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ConnectionPaths.decodeDelimited = function decodeDelimited(reader) { + GenesisMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ConnectionPaths message. + * Verifies a GenesisMetadata message. * @function verify - * @memberof ibc.core.connection.v1.ConnectionPaths + * @memberof ibc.core.client.v1.GenesisMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ConnectionPaths.verify = function verify(message) { + GenesisMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.client_id != null && message.hasOwnProperty("client_id")) - if (!$util.isString(message.client_id)) - return "client_id: string expected"; - if (message.paths != null && message.hasOwnProperty("paths")) { - if (!Array.isArray(message.paths)) - return "paths: array expected"; - for (let i = 0; i < message.paths.length; ++i) - if (!$util.isString(message.paths[i])) - return "paths: string[] expected"; - } + if (message.key != null && message.hasOwnProperty("key")) + if (!(message.key && typeof message.key.length === "number" || $util.isString(message.key))) + return "key: buffer expected"; + if (message.value != null && message.hasOwnProperty("value")) + if (!(message.value && typeof message.value.length === "number" || $util.isString(message.value))) + return "value: buffer expected"; return null; }; /** - * Creates a ConnectionPaths message from a plain object. Also converts values to their respective internal types. + * Creates a GenesisMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.connection.v1.ConnectionPaths + * @memberof ibc.core.client.v1.GenesisMetadata * @static * @param {Object.} object Plain object - * @returns {ibc.core.connection.v1.ConnectionPaths} ConnectionPaths + * @returns {ibc.core.client.v1.GenesisMetadata} GenesisMetadata */ - ConnectionPaths.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.connection.v1.ConnectionPaths) + GenesisMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.client.v1.GenesisMetadata) return object; - let message = new $root.ibc.core.connection.v1.ConnectionPaths(); - if (object.client_id != null) - message.client_id = String(object.client_id); - if (object.paths) { - if (!Array.isArray(object.paths)) - throw TypeError(".ibc.core.connection.v1.ConnectionPaths.paths: array expected"); - message.paths = []; - for (let i = 0; i < object.paths.length; ++i) - message.paths[i] = String(object.paths[i]); - } + let message = new $root.ibc.core.client.v1.GenesisMetadata(); + if (object.key != null) + if (typeof object.key === "string") + $util.base64.decode(object.key, message.key = $util.newBuffer($util.base64.length(object.key)), 0); + else if (object.key.length) + message.key = object.key; + if (object.value != null) + if (typeof object.value === "string") + $util.base64.decode(object.value, message.value = $util.newBuffer($util.base64.length(object.value)), 0); + else if (object.value.length) + message.value = object.value; return message; }; /** - * Creates a plain object from a ConnectionPaths message. Also converts values to other types if specified. + * Creates a plain object from a GenesisMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.connection.v1.ConnectionPaths + * @memberof ibc.core.client.v1.GenesisMetadata * @static - * @param {ibc.core.connection.v1.ConnectionPaths} message ConnectionPaths + * @param {ibc.core.client.v1.GenesisMetadata} message GenesisMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ConnectionPaths.toObject = function toObject(message, options) { + GenesisMetadata.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.paths = []; - if (options.defaults) - object.client_id = ""; - if (message.client_id != null && message.hasOwnProperty("client_id")) - object.client_id = message.client_id; - if (message.paths && message.paths.length) { - object.paths = []; - for (let j = 0; j < message.paths.length; ++j) - object.paths[j] = message.paths[j]; + if (options.defaults) { + if (options.bytes === String) + object.key = ""; + else { + object.key = []; + if (options.bytes !== Array) + object.key = $util.newBuffer(object.key); + } + if (options.bytes === String) + object.value = ""; + else { + object.value = []; + if (options.bytes !== Array) + object.value = $util.newBuffer(object.value); + } } + if (message.key != null && message.hasOwnProperty("key")) + object.key = options.bytes === String ? $util.base64.encode(message.key, 0, message.key.length) : options.bytes === Array ? Array.prototype.slice.call(message.key) : message.key; + if (message.value != null && message.hasOwnProperty("value")) + object.value = options.bytes === String ? $util.base64.encode(message.value, 0, message.value.length) : options.bytes === Array ? Array.prototype.slice.call(message.value) : message.value; return object; }; /** - * Converts this ConnectionPaths to JSON. + * Converts this GenesisMetadata to JSON. * @function toJSON - * @memberof ibc.core.connection.v1.ConnectionPaths + * @memberof ibc.core.client.v1.GenesisMetadata * @instance * @returns {Object.} JSON object */ - ConnectionPaths.prototype.toJSON = function toJSON() { + GenesisMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ConnectionPaths; + return GenesisMetadata; })(); - v1.Version = (function() { + v1.IdentifiedGenesisMetadata = (function() { /** - * Properties of a Version. - * @memberof ibc.core.connection.v1 - * @interface IVersion - * @property {string|null} [identifier] Version identifier - * @property {Array.|null} [features] Version features + * Properties of an IdentifiedGenesisMetadata. + * @memberof ibc.core.client.v1 + * @interface IIdentifiedGenesisMetadata + * @property {string|null} [client_id] IdentifiedGenesisMetadata client_id + * @property {Array.|null} [client_metadata] IdentifiedGenesisMetadata client_metadata */ /** - * Constructs a new Version. - * @memberof ibc.core.connection.v1 - * @classdesc Represents a Version. - * @implements IVersion + * Constructs a new IdentifiedGenesisMetadata. + * @memberof ibc.core.client.v1 + * @classdesc Represents an IdentifiedGenesisMetadata. + * @implements IIdentifiedGenesisMetadata * @constructor - * @param {ibc.core.connection.v1.IVersion=} [properties] Properties to set + * @param {ibc.core.client.v1.IIdentifiedGenesisMetadata=} [properties] Properties to set */ - function Version(properties) { - this.features = []; + function IdentifiedGenesisMetadata(properties) { + this.client_metadata = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -60792,79 +66717,79 @@ export const ibc = $root.ibc = (() => { } /** - * Version identifier. - * @member {string} identifier - * @memberof ibc.core.connection.v1.Version + * IdentifiedGenesisMetadata client_id. + * @member {string} client_id + * @memberof ibc.core.client.v1.IdentifiedGenesisMetadata * @instance */ - Version.prototype.identifier = ""; + IdentifiedGenesisMetadata.prototype.client_id = ""; /** - * Version features. - * @member {Array.} features - * @memberof ibc.core.connection.v1.Version + * IdentifiedGenesisMetadata client_metadata. + * @member {Array.} client_metadata + * @memberof ibc.core.client.v1.IdentifiedGenesisMetadata * @instance */ - Version.prototype.features = $util.emptyArray; + IdentifiedGenesisMetadata.prototype.client_metadata = $util.emptyArray; /** - * Encodes the specified Version message. Does not implicitly {@link ibc.core.connection.v1.Version.verify|verify} messages. + * Encodes the specified IdentifiedGenesisMetadata message. Does not implicitly {@link ibc.core.client.v1.IdentifiedGenesisMetadata.verify|verify} messages. * @function encode - * @memberof ibc.core.connection.v1.Version + * @memberof ibc.core.client.v1.IdentifiedGenesisMetadata * @static - * @param {ibc.core.connection.v1.IVersion} message Version message or plain object to encode + * @param {ibc.core.client.v1.IIdentifiedGenesisMetadata} message IdentifiedGenesisMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Version.encode = function encode(message, writer) { + IdentifiedGenesisMetadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.identifier != null && Object.hasOwnProperty.call(message, "identifier")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.identifier); - if (message.features != null && message.features.length) - for (let i = 0; i < message.features.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.features[i]); + if (message.client_id != null && Object.hasOwnProperty.call(message, "client_id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.client_id); + if (message.client_metadata != null && message.client_metadata.length) + for (let i = 0; i < message.client_metadata.length; ++i) + $root.ibc.core.client.v1.GenesisMetadata.encode(message.client_metadata[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified Version message, length delimited. Does not implicitly {@link ibc.core.connection.v1.Version.verify|verify} messages. + * Encodes the specified IdentifiedGenesisMetadata message, length delimited. Does not implicitly {@link ibc.core.client.v1.IdentifiedGenesisMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.connection.v1.Version + * @memberof ibc.core.client.v1.IdentifiedGenesisMetadata * @static - * @param {ibc.core.connection.v1.IVersion} message Version message or plain object to encode + * @param {ibc.core.client.v1.IIdentifiedGenesisMetadata} message IdentifiedGenesisMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Version.encodeDelimited = function encodeDelimited(message, writer) { + IdentifiedGenesisMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Version message from the specified reader or buffer. + * Decodes an IdentifiedGenesisMetadata message from the specified reader or buffer. * @function decode - * @memberof ibc.core.connection.v1.Version + * @memberof ibc.core.client.v1.IdentifiedGenesisMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.connection.v1.Version} Version + * @returns {ibc.core.client.v1.IdentifiedGenesisMetadata} IdentifiedGenesisMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Version.decode = function decode(reader, length) { + IdentifiedGenesisMetadata.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.connection.v1.Version(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.client.v1.IdentifiedGenesisMetadata(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.identifier = reader.string(); + message.client_id = reader.string(); break; case 2: - if (!(message.features && message.features.length)) - message.features = []; - message.features.push(reader.string()); + if (!(message.client_metadata && message.client_metadata.length)) + message.client_metadata = []; + message.client_metadata.push($root.ibc.core.client.v1.GenesisMetadata.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -60875,128 +66800,157 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a Version message from the specified reader or buffer, length delimited. + * Decodes an IdentifiedGenesisMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.connection.v1.Version + * @memberof ibc.core.client.v1.IdentifiedGenesisMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.connection.v1.Version} Version + * @returns {ibc.core.client.v1.IdentifiedGenesisMetadata} IdentifiedGenesisMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Version.decodeDelimited = function decodeDelimited(reader) { + IdentifiedGenesisMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Version message. + * Verifies an IdentifiedGenesisMetadata message. * @function verify - * @memberof ibc.core.connection.v1.Version + * @memberof ibc.core.client.v1.IdentifiedGenesisMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Version.verify = function verify(message) { + IdentifiedGenesisMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.identifier != null && message.hasOwnProperty("identifier")) - if (!$util.isString(message.identifier)) - return "identifier: string expected"; - if (message.features != null && message.hasOwnProperty("features")) { - if (!Array.isArray(message.features)) - return "features: array expected"; - for (let i = 0; i < message.features.length; ++i) - if (!$util.isString(message.features[i])) - return "features: string[] expected"; + if (message.client_id != null && message.hasOwnProperty("client_id")) + if (!$util.isString(message.client_id)) + return "client_id: string expected"; + if (message.client_metadata != null && message.hasOwnProperty("client_metadata")) { + if (!Array.isArray(message.client_metadata)) + return "client_metadata: array expected"; + for (let i = 0; i < message.client_metadata.length; ++i) { + let error = $root.ibc.core.client.v1.GenesisMetadata.verify(message.client_metadata[i]); + if (error) + return "client_metadata." + error; + } } return null; }; /** - * Creates a Version message from a plain object. Also converts values to their respective internal types. + * Creates an IdentifiedGenesisMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.connection.v1.Version + * @memberof ibc.core.client.v1.IdentifiedGenesisMetadata * @static * @param {Object.} object Plain object - * @returns {ibc.core.connection.v1.Version} Version + * @returns {ibc.core.client.v1.IdentifiedGenesisMetadata} IdentifiedGenesisMetadata */ - Version.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.connection.v1.Version) + IdentifiedGenesisMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.client.v1.IdentifiedGenesisMetadata) return object; - let message = new $root.ibc.core.connection.v1.Version(); - if (object.identifier != null) - message.identifier = String(object.identifier); - if (object.features) { - if (!Array.isArray(object.features)) - throw TypeError(".ibc.core.connection.v1.Version.features: array expected"); - message.features = []; - for (let i = 0; i < object.features.length; ++i) - message.features[i] = String(object.features[i]); + let message = new $root.ibc.core.client.v1.IdentifiedGenesisMetadata(); + if (object.client_id != null) + message.client_id = String(object.client_id); + if (object.client_metadata) { + if (!Array.isArray(object.client_metadata)) + throw TypeError(".ibc.core.client.v1.IdentifiedGenesisMetadata.client_metadata: array expected"); + message.client_metadata = []; + for (let i = 0; i < object.client_metadata.length; ++i) { + if (typeof object.client_metadata[i] !== "object") + throw TypeError(".ibc.core.client.v1.IdentifiedGenesisMetadata.client_metadata: object expected"); + message.client_metadata[i] = $root.ibc.core.client.v1.GenesisMetadata.fromObject(object.client_metadata[i]); + } } return message; }; /** - * Creates a plain object from a Version message. Also converts values to other types if specified. + * Creates a plain object from an IdentifiedGenesisMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.connection.v1.Version + * @memberof ibc.core.client.v1.IdentifiedGenesisMetadata * @static - * @param {ibc.core.connection.v1.Version} message Version + * @param {ibc.core.client.v1.IdentifiedGenesisMetadata} message IdentifiedGenesisMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Version.toObject = function toObject(message, options) { + IdentifiedGenesisMetadata.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) - object.features = []; + object.client_metadata = []; if (options.defaults) - object.identifier = ""; - if (message.identifier != null && message.hasOwnProperty("identifier")) - object.identifier = message.identifier; - if (message.features && message.features.length) { - object.features = []; - for (let j = 0; j < message.features.length; ++j) - object.features[j] = message.features[j]; + object.client_id = ""; + if (message.client_id != null && message.hasOwnProperty("client_id")) + object.client_id = message.client_id; + if (message.client_metadata && message.client_metadata.length) { + object.client_metadata = []; + for (let j = 0; j < message.client_metadata.length; ++j) + object.client_metadata[j] = $root.ibc.core.client.v1.GenesisMetadata.toObject(message.client_metadata[j], options); } return object; }; /** - * Converts this Version to JSON. + * Converts this IdentifiedGenesisMetadata to JSON. * @function toJSON - * @memberof ibc.core.connection.v1.Version + * @memberof ibc.core.client.v1.IdentifiedGenesisMetadata * @instance * @returns {Object.} JSON object */ - Version.prototype.toJSON = function toJSON() { + IdentifiedGenesisMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Version; + return IdentifiedGenesisMetadata; })(); - v1.Params = (function() { + return v1; + })(); + + return client; + })(); + + core.commitment = (function() { + + /** + * Namespace commitment. + * @memberof ibc.core + * @namespace + */ + const commitment = {}; + + commitment.v1 = (function() { + + /** + * Namespace v1. + * @memberof ibc.core.commitment + * @namespace + */ + const v1 = {}; + + v1.MerkleRoot = (function() { /** - * Properties of a Params. - * @memberof ibc.core.connection.v1 - * @interface IParams - * @property {Long|null} [max_expected_time_per_block] Params max_expected_time_per_block + * Properties of a MerkleRoot. + * @memberof ibc.core.commitment.v1 + * @interface IMerkleRoot + * @property {Uint8Array|null} [hash] MerkleRoot hash */ /** - * Constructs a new Params. - * @memberof ibc.core.connection.v1 - * @classdesc Represents a Params. - * @implements IParams + * Constructs a new MerkleRoot. + * @memberof ibc.core.commitment.v1 + * @classdesc Represents a MerkleRoot. + * @implements IMerkleRoot * @constructor - * @param {ibc.core.connection.v1.IParams=} [properties] Properties to set + * @param {ibc.core.commitment.v1.IMerkleRoot=} [properties] Properties to set */ - function Params(properties) { + function MerkleRoot(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -61004,63 +66958,63 @@ export const ibc = $root.ibc = (() => { } /** - * Params max_expected_time_per_block. - * @member {Long} max_expected_time_per_block - * @memberof ibc.core.connection.v1.Params + * MerkleRoot hash. + * @member {Uint8Array} hash + * @memberof ibc.core.commitment.v1.MerkleRoot * @instance */ - Params.prototype.max_expected_time_per_block = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + MerkleRoot.prototype.hash = $util.newBuffer([]); /** - * Encodes the specified Params message. Does not implicitly {@link ibc.core.connection.v1.Params.verify|verify} messages. + * Encodes the specified MerkleRoot message. Does not implicitly {@link ibc.core.commitment.v1.MerkleRoot.verify|verify} messages. * @function encode - * @memberof ibc.core.connection.v1.Params + * @memberof ibc.core.commitment.v1.MerkleRoot * @static - * @param {ibc.core.connection.v1.IParams} message Params message or plain object to encode + * @param {ibc.core.commitment.v1.IMerkleRoot} message MerkleRoot message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Params.encode = function encode(message, writer) { + MerkleRoot.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.max_expected_time_per_block != null && Object.hasOwnProperty.call(message, "max_expected_time_per_block")) - writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.max_expected_time_per_block); + if (message.hash != null && Object.hasOwnProperty.call(message, "hash")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.hash); return writer; }; /** - * Encodes the specified Params message, length delimited. Does not implicitly {@link ibc.core.connection.v1.Params.verify|verify} messages. + * Encodes the specified MerkleRoot message, length delimited. Does not implicitly {@link ibc.core.commitment.v1.MerkleRoot.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.connection.v1.Params + * @memberof ibc.core.commitment.v1.MerkleRoot * @static - * @param {ibc.core.connection.v1.IParams} message Params message or plain object to encode + * @param {ibc.core.commitment.v1.IMerkleRoot} message MerkleRoot message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Params.encodeDelimited = function encodeDelimited(message, writer) { + MerkleRoot.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Params message from the specified reader or buffer. + * Decodes a MerkleRoot message from the specified reader or buffer. * @function decode - * @memberof ibc.core.connection.v1.Params + * @memberof ibc.core.commitment.v1.MerkleRoot * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.connection.v1.Params} Params + * @returns {ibc.core.commitment.v1.MerkleRoot} MerkleRoot * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Params.decode = function decode(reader, length) { + MerkleRoot.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.connection.v1.Params(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.commitment.v1.MerkleRoot(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.max_expected_time_per_block = reader.uint64(); + message.hash = reader.bytes(); break; default: reader.skipType(tag & 7); @@ -61071,307 +67025,301 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a Params message from the specified reader or buffer, length delimited. + * Decodes a MerkleRoot message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.connection.v1.Params + * @memberof ibc.core.commitment.v1.MerkleRoot * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.connection.v1.Params} Params + * @returns {ibc.core.commitment.v1.MerkleRoot} MerkleRoot * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Params.decodeDelimited = function decodeDelimited(reader) { + MerkleRoot.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Params message. + * Verifies a MerkleRoot message. * @function verify - * @memberof ibc.core.connection.v1.Params + * @memberof ibc.core.commitment.v1.MerkleRoot * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Params.verify = function verify(message) { + MerkleRoot.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.max_expected_time_per_block != null && message.hasOwnProperty("max_expected_time_per_block")) - if (!$util.isInteger(message.max_expected_time_per_block) && !(message.max_expected_time_per_block && $util.isInteger(message.max_expected_time_per_block.low) && $util.isInteger(message.max_expected_time_per_block.high))) - return "max_expected_time_per_block: integer|Long expected"; + if (message.hash != null && message.hasOwnProperty("hash")) + if (!(message.hash && typeof message.hash.length === "number" || $util.isString(message.hash))) + return "hash: buffer expected"; return null; }; /** - * Creates a Params message from a plain object. Also converts values to their respective internal types. + * Creates a MerkleRoot message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.connection.v1.Params + * @memberof ibc.core.commitment.v1.MerkleRoot * @static * @param {Object.} object Plain object - * @returns {ibc.core.connection.v1.Params} Params + * @returns {ibc.core.commitment.v1.MerkleRoot} MerkleRoot */ - Params.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.connection.v1.Params) + MerkleRoot.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.commitment.v1.MerkleRoot) return object; - let message = new $root.ibc.core.connection.v1.Params(); - if (object.max_expected_time_per_block != null) - if ($util.Long) - (message.max_expected_time_per_block = $util.Long.fromValue(object.max_expected_time_per_block)).unsigned = true; - else if (typeof object.max_expected_time_per_block === "string") - message.max_expected_time_per_block = parseInt(object.max_expected_time_per_block, 10); - else if (typeof object.max_expected_time_per_block === "number") - message.max_expected_time_per_block = object.max_expected_time_per_block; - else if (typeof object.max_expected_time_per_block === "object") - message.max_expected_time_per_block = new $util.LongBits(object.max_expected_time_per_block.low >>> 0, object.max_expected_time_per_block.high >>> 0).toNumber(true); + let message = new $root.ibc.core.commitment.v1.MerkleRoot(); + if (object.hash != null) + if (typeof object.hash === "string") + $util.base64.decode(object.hash, message.hash = $util.newBuffer($util.base64.length(object.hash)), 0); + else if (object.hash.length) + message.hash = object.hash; return message; }; /** - * Creates a plain object from a Params message. Also converts values to other types if specified. + * Creates a plain object from a MerkleRoot message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.connection.v1.Params + * @memberof ibc.core.commitment.v1.MerkleRoot * @static - * @param {ibc.core.connection.v1.Params} message Params + * @param {ibc.core.commitment.v1.MerkleRoot} message MerkleRoot * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Params.toObject = function toObject(message, options) { + MerkleRoot.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) - if ($util.Long) { - let long = new $util.Long(0, 0, true); - object.max_expected_time_per_block = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.max_expected_time_per_block = options.longs === String ? "0" : 0; - if (message.max_expected_time_per_block != null && message.hasOwnProperty("max_expected_time_per_block")) - if (typeof message.max_expected_time_per_block === "number") - object.max_expected_time_per_block = options.longs === String ? String(message.max_expected_time_per_block) : message.max_expected_time_per_block; - else - object.max_expected_time_per_block = options.longs === String ? $util.Long.prototype.toString.call(message.max_expected_time_per_block) : options.longs === Number ? new $util.LongBits(message.max_expected_time_per_block.low >>> 0, message.max_expected_time_per_block.high >>> 0).toNumber(true) : message.max_expected_time_per_block; + if (options.bytes === String) + object.hash = ""; + else { + object.hash = []; + if (options.bytes !== Array) + object.hash = $util.newBuffer(object.hash); + } + if (message.hash != null && message.hasOwnProperty("hash")) + object.hash = options.bytes === String ? $util.base64.encode(message.hash, 0, message.hash.length) : options.bytes === Array ? Array.prototype.slice.call(message.hash) : message.hash; return object; }; /** - * Converts this Params to JSON. + * Converts this MerkleRoot to JSON. * @function toJSON - * @memberof ibc.core.connection.v1.Params + * @memberof ibc.core.commitment.v1.MerkleRoot * @instance * @returns {Object.} JSON object */ - Params.prototype.toJSON = function toJSON() { + MerkleRoot.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Params; + return MerkleRoot; })(); - v1.Query = (function() { - - /** - * Constructs a new Query service. - * @memberof ibc.core.connection.v1 - * @classdesc Represents a Query - * @extends $protobuf.rpc.Service - * @constructor - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - */ - function Query(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } - - (Query.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Query; - - /** - * Callback as used by {@link ibc.core.connection.v1.Query#connection}. - * @memberof ibc.core.connection.v1.Query - * @typedef ConnectionCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.core.connection.v1.QueryConnectionResponse} [response] QueryConnectionResponse - */ - - /** - * Calls Connection. - * @function connection - * @memberof ibc.core.connection.v1.Query - * @instance - * @param {ibc.core.connection.v1.IQueryConnectionRequest} request QueryConnectionRequest message or plain object - * @param {ibc.core.connection.v1.Query.ConnectionCallback} callback Node-style callback called with the error, if any, and QueryConnectionResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Query.prototype.connection = function connection(request, callback) { - return this.rpcCall(connection, $root.ibc.core.connection.v1.QueryConnectionRequest, $root.ibc.core.connection.v1.QueryConnectionResponse, request, callback); - }, "name", { value: "Connection" }); - - /** - * Calls Connection. - * @function connection - * @memberof ibc.core.connection.v1.Query - * @instance - * @param {ibc.core.connection.v1.IQueryConnectionRequest} request QueryConnectionRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + v1.MerklePrefix = (function() { /** - * Callback as used by {@link ibc.core.connection.v1.Query#connections}. - * @memberof ibc.core.connection.v1.Query - * @typedef ConnectionsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.core.connection.v1.QueryConnectionsResponse} [response] QueryConnectionsResponse + * Properties of a MerklePrefix. + * @memberof ibc.core.commitment.v1 + * @interface IMerklePrefix + * @property {Uint8Array|null} [key_prefix] MerklePrefix key_prefix */ /** - * Calls Connections. - * @function connections - * @memberof ibc.core.connection.v1.Query - * @instance - * @param {ibc.core.connection.v1.IQueryConnectionsRequest} request QueryConnectionsRequest message or plain object - * @param {ibc.core.connection.v1.Query.ConnectionsCallback} callback Node-style callback called with the error, if any, and QueryConnectionsResponse - * @returns {undefined} - * @variation 1 + * Constructs a new MerklePrefix. + * @memberof ibc.core.commitment.v1 + * @classdesc Represents a MerklePrefix. + * @implements IMerklePrefix + * @constructor + * @param {ibc.core.commitment.v1.IMerklePrefix=} [properties] Properties to set */ - Object.defineProperty(Query.prototype.connections = function connections(request, callback) { - return this.rpcCall(connections, $root.ibc.core.connection.v1.QueryConnectionsRequest, $root.ibc.core.connection.v1.QueryConnectionsResponse, request, callback); - }, "name", { value: "Connections" }); + function MerklePrefix(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * Calls Connections. - * @function connections - * @memberof ibc.core.connection.v1.Query + * MerklePrefix key_prefix. + * @member {Uint8Array} key_prefix + * @memberof ibc.core.commitment.v1.MerklePrefix * @instance - * @param {ibc.core.connection.v1.IQueryConnectionsRequest} request QueryConnectionsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link ibc.core.connection.v1.Query#clientConnections}. - * @memberof ibc.core.connection.v1.Query - * @typedef ClientConnectionsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.core.connection.v1.QueryClientConnectionsResponse} [response] QueryClientConnectionsResponse */ + MerklePrefix.prototype.key_prefix = $util.newBuffer([]); /** - * Calls ClientConnections. - * @function clientConnections - * @memberof ibc.core.connection.v1.Query - * @instance - * @param {ibc.core.connection.v1.IQueryClientConnectionsRequest} request QueryClientConnectionsRequest message or plain object - * @param {ibc.core.connection.v1.Query.ClientConnectionsCallback} callback Node-style callback called with the error, if any, and QueryClientConnectionsResponse - * @returns {undefined} - * @variation 1 + * Encodes the specified MerklePrefix message. Does not implicitly {@link ibc.core.commitment.v1.MerklePrefix.verify|verify} messages. + * @function encode + * @memberof ibc.core.commitment.v1.MerklePrefix + * @static + * @param {ibc.core.commitment.v1.IMerklePrefix} message MerklePrefix message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Object.defineProperty(Query.prototype.clientConnections = function clientConnections(request, callback) { - return this.rpcCall(clientConnections, $root.ibc.core.connection.v1.QueryClientConnectionsRequest, $root.ibc.core.connection.v1.QueryClientConnectionsResponse, request, callback); - }, "name", { value: "ClientConnections" }); + MerklePrefix.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.key_prefix != null && Object.hasOwnProperty.call(message, "key_prefix")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.key_prefix); + return writer; + }; /** - * Calls ClientConnections. - * @function clientConnections - * @memberof ibc.core.connection.v1.Query - * @instance - * @param {ibc.core.connection.v1.IQueryClientConnectionsRequest} request QueryClientConnectionsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Encodes the specified MerklePrefix message, length delimited. Does not implicitly {@link ibc.core.commitment.v1.MerklePrefix.verify|verify} messages. + * @function encodeDelimited + * @memberof ibc.core.commitment.v1.MerklePrefix + * @static + * @param {ibc.core.commitment.v1.IMerklePrefix} message MerklePrefix message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ + MerklePrefix.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Callback as used by {@link ibc.core.connection.v1.Query#connectionClientState}. - * @memberof ibc.core.connection.v1.Query - * @typedef ConnectionClientStateCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.core.connection.v1.QueryConnectionClientStateResponse} [response] QueryConnectionClientStateResponse + * Decodes a MerklePrefix message from the specified reader or buffer. + * @function decode + * @memberof ibc.core.commitment.v1.MerklePrefix + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {ibc.core.commitment.v1.MerklePrefix} MerklePrefix + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + MerklePrefix.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.commitment.v1.MerklePrefix(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.key_prefix = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Calls ConnectionClientState. - * @function connectionClientState - * @memberof ibc.core.connection.v1.Query - * @instance - * @param {ibc.core.connection.v1.IQueryConnectionClientStateRequest} request QueryConnectionClientStateRequest message or plain object - * @param {ibc.core.connection.v1.Query.ConnectionClientStateCallback} callback Node-style callback called with the error, if any, and QueryConnectionClientStateResponse - * @returns {undefined} - * @variation 1 + * Decodes a MerklePrefix message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof ibc.core.commitment.v1.MerklePrefix + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {ibc.core.commitment.v1.MerklePrefix} MerklePrefix + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Object.defineProperty(Query.prototype.connectionClientState = function connectionClientState(request, callback) { - return this.rpcCall(connectionClientState, $root.ibc.core.connection.v1.QueryConnectionClientStateRequest, $root.ibc.core.connection.v1.QueryConnectionClientStateResponse, request, callback); - }, "name", { value: "ConnectionClientState" }); + MerklePrefix.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Calls ConnectionClientState. - * @function connectionClientState - * @memberof ibc.core.connection.v1.Query - * @instance - * @param {ibc.core.connection.v1.IQueryConnectionClientStateRequest} request QueryConnectionClientStateRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Verifies a MerklePrefix message. + * @function verify + * @memberof ibc.core.commitment.v1.MerklePrefix + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ + MerklePrefix.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.key_prefix != null && message.hasOwnProperty("key_prefix")) + if (!(message.key_prefix && typeof message.key_prefix.length === "number" || $util.isString(message.key_prefix))) + return "key_prefix: buffer expected"; + return null; + }; /** - * Callback as used by {@link ibc.core.connection.v1.Query#connectionConsensusState}. - * @memberof ibc.core.connection.v1.Query - * @typedef ConnectionConsensusStateCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {ibc.core.connection.v1.QueryConnectionConsensusStateResponse} [response] QueryConnectionConsensusStateResponse + * Creates a MerklePrefix message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof ibc.core.commitment.v1.MerklePrefix + * @static + * @param {Object.} object Plain object + * @returns {ibc.core.commitment.v1.MerklePrefix} MerklePrefix */ + MerklePrefix.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.commitment.v1.MerklePrefix) + return object; + let message = new $root.ibc.core.commitment.v1.MerklePrefix(); + if (object.key_prefix != null) + if (typeof object.key_prefix === "string") + $util.base64.decode(object.key_prefix, message.key_prefix = $util.newBuffer($util.base64.length(object.key_prefix)), 0); + else if (object.key_prefix.length) + message.key_prefix = object.key_prefix; + return message; + }; /** - * Calls ConnectionConsensusState. - * @function connectionConsensusState - * @memberof ibc.core.connection.v1.Query - * @instance - * @param {ibc.core.connection.v1.IQueryConnectionConsensusStateRequest} request QueryConnectionConsensusStateRequest message or plain object - * @param {ibc.core.connection.v1.Query.ConnectionConsensusStateCallback} callback Node-style callback called with the error, if any, and QueryConnectionConsensusStateResponse - * @returns {undefined} - * @variation 1 + * Creates a plain object from a MerklePrefix message. Also converts values to other types if specified. + * @function toObject + * @memberof ibc.core.commitment.v1.MerklePrefix + * @static + * @param {ibc.core.commitment.v1.MerklePrefix} message MerklePrefix + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - Object.defineProperty(Query.prototype.connectionConsensusState = function connectionConsensusState(request, callback) { - return this.rpcCall(connectionConsensusState, $root.ibc.core.connection.v1.QueryConnectionConsensusStateRequest, $root.ibc.core.connection.v1.QueryConnectionConsensusStateResponse, request, callback); - }, "name", { value: "ConnectionConsensusState" }); + MerklePrefix.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) + if (options.bytes === String) + object.key_prefix = ""; + else { + object.key_prefix = []; + if (options.bytes !== Array) + object.key_prefix = $util.newBuffer(object.key_prefix); + } + if (message.key_prefix != null && message.hasOwnProperty("key_prefix")) + object.key_prefix = options.bytes === String ? $util.base64.encode(message.key_prefix, 0, message.key_prefix.length) : options.bytes === Array ? Array.prototype.slice.call(message.key_prefix) : message.key_prefix; + return object; + }; /** - * Calls ConnectionConsensusState. - * @function connectionConsensusState - * @memberof ibc.core.connection.v1.Query + * Converts this MerklePrefix to JSON. + * @function toJSON + * @memberof ibc.core.commitment.v1.MerklePrefix * @instance - * @param {ibc.core.connection.v1.IQueryConnectionConsensusStateRequest} request QueryConnectionConsensusStateRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * @returns {Object.} JSON object */ + MerklePrefix.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return Query; + return MerklePrefix; })(); - v1.QueryConnectionRequest = (function() { + v1.MerklePath = (function() { /** - * Properties of a QueryConnectionRequest. - * @memberof ibc.core.connection.v1 - * @interface IQueryConnectionRequest - * @property {string|null} [connection_id] QueryConnectionRequest connection_id + * Properties of a MerklePath. + * @memberof ibc.core.commitment.v1 + * @interface IMerklePath + * @property {Array.|null} [key_path] MerklePath key_path */ /** - * Constructs a new QueryConnectionRequest. - * @memberof ibc.core.connection.v1 - * @classdesc Represents a QueryConnectionRequest. - * @implements IQueryConnectionRequest + * Constructs a new MerklePath. + * @memberof ibc.core.commitment.v1 + * @classdesc Represents a MerklePath. + * @implements IMerklePath * @constructor - * @param {ibc.core.connection.v1.IQueryConnectionRequest=} [properties] Properties to set + * @param {ibc.core.commitment.v1.IMerklePath=} [properties] Properties to set */ - function QueryConnectionRequest(properties) { + function MerklePath(properties) { + this.key_path = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -61379,63 +67327,66 @@ export const ibc = $root.ibc = (() => { } /** - * QueryConnectionRequest connection_id. - * @member {string} connection_id - * @memberof ibc.core.connection.v1.QueryConnectionRequest + * MerklePath key_path. + * @member {Array.} key_path + * @memberof ibc.core.commitment.v1.MerklePath * @instance */ - QueryConnectionRequest.prototype.connection_id = ""; + MerklePath.prototype.key_path = $util.emptyArray; /** - * Encodes the specified QueryConnectionRequest message. Does not implicitly {@link ibc.core.connection.v1.QueryConnectionRequest.verify|verify} messages. + * Encodes the specified MerklePath message. Does not implicitly {@link ibc.core.commitment.v1.MerklePath.verify|verify} messages. * @function encode - * @memberof ibc.core.connection.v1.QueryConnectionRequest + * @memberof ibc.core.commitment.v1.MerklePath * @static - * @param {ibc.core.connection.v1.IQueryConnectionRequest} message QueryConnectionRequest message or plain object to encode + * @param {ibc.core.commitment.v1.IMerklePath} message MerklePath message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryConnectionRequest.encode = function encode(message, writer) { + MerklePath.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.connection_id != null && Object.hasOwnProperty.call(message, "connection_id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.connection_id); + if (message.key_path != null && message.key_path.length) + for (let i = 0; i < message.key_path.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.key_path[i]); return writer; }; /** - * Encodes the specified QueryConnectionRequest message, length delimited. Does not implicitly {@link ibc.core.connection.v1.QueryConnectionRequest.verify|verify} messages. + * Encodes the specified MerklePath message, length delimited. Does not implicitly {@link ibc.core.commitment.v1.MerklePath.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.connection.v1.QueryConnectionRequest + * @memberof ibc.core.commitment.v1.MerklePath * @static - * @param {ibc.core.connection.v1.IQueryConnectionRequest} message QueryConnectionRequest message or plain object to encode + * @param {ibc.core.commitment.v1.IMerklePath} message MerklePath message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryConnectionRequest.encodeDelimited = function encodeDelimited(message, writer) { + MerklePath.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryConnectionRequest message from the specified reader or buffer. + * Decodes a MerklePath message from the specified reader or buffer. * @function decode - * @memberof ibc.core.connection.v1.QueryConnectionRequest + * @memberof ibc.core.commitment.v1.MerklePath * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.connection.v1.QueryConnectionRequest} QueryConnectionRequest + * @returns {ibc.core.commitment.v1.MerklePath} MerklePath * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryConnectionRequest.decode = function decode(reader, length) { + MerklePath.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.connection.v1.QueryConnectionRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.commitment.v1.MerklePath(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.connection_id = reader.string(); + if (!(message.key_path && message.key_path.length)) + message.key_path = []; + message.key_path.push(reader.string()); break; default: reader.skipType(tag & 7); @@ -61446,109 +67397,120 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a QueryConnectionRequest message from the specified reader or buffer, length delimited. + * Decodes a MerklePath message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.connection.v1.QueryConnectionRequest + * @memberof ibc.core.commitment.v1.MerklePath * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.connection.v1.QueryConnectionRequest} QueryConnectionRequest + * @returns {ibc.core.commitment.v1.MerklePath} MerklePath * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryConnectionRequest.decodeDelimited = function decodeDelimited(reader) { + MerklePath.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryConnectionRequest message. + * Verifies a MerklePath message. * @function verify - * @memberof ibc.core.connection.v1.QueryConnectionRequest + * @memberof ibc.core.commitment.v1.MerklePath * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryConnectionRequest.verify = function verify(message) { + MerklePath.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.connection_id != null && message.hasOwnProperty("connection_id")) - if (!$util.isString(message.connection_id)) - return "connection_id: string expected"; + if (message.key_path != null && message.hasOwnProperty("key_path")) { + if (!Array.isArray(message.key_path)) + return "key_path: array expected"; + for (let i = 0; i < message.key_path.length; ++i) + if (!$util.isString(message.key_path[i])) + return "key_path: string[] expected"; + } return null; }; /** - * Creates a QueryConnectionRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MerklePath message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.connection.v1.QueryConnectionRequest + * @memberof ibc.core.commitment.v1.MerklePath * @static * @param {Object.} object Plain object - * @returns {ibc.core.connection.v1.QueryConnectionRequest} QueryConnectionRequest + * @returns {ibc.core.commitment.v1.MerklePath} MerklePath */ - QueryConnectionRequest.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.connection.v1.QueryConnectionRequest) + MerklePath.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.commitment.v1.MerklePath) return object; - let message = new $root.ibc.core.connection.v1.QueryConnectionRequest(); - if (object.connection_id != null) - message.connection_id = String(object.connection_id); + let message = new $root.ibc.core.commitment.v1.MerklePath(); + if (object.key_path) { + if (!Array.isArray(object.key_path)) + throw TypeError(".ibc.core.commitment.v1.MerklePath.key_path: array expected"); + message.key_path = []; + for (let i = 0; i < object.key_path.length; ++i) + message.key_path[i] = String(object.key_path[i]); + } return message; }; /** - * Creates a plain object from a QueryConnectionRequest message. Also converts values to other types if specified. + * Creates a plain object from a MerklePath message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.connection.v1.QueryConnectionRequest + * @memberof ibc.core.commitment.v1.MerklePath * @static - * @param {ibc.core.connection.v1.QueryConnectionRequest} message QueryConnectionRequest + * @param {ibc.core.commitment.v1.MerklePath} message MerklePath * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryConnectionRequest.toObject = function toObject(message, options) { + MerklePath.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) - object.connection_id = ""; - if (message.connection_id != null && message.hasOwnProperty("connection_id")) - object.connection_id = message.connection_id; + if (options.arrays || options.defaults) + object.key_path = []; + if (message.key_path && message.key_path.length) { + object.key_path = []; + for (let j = 0; j < message.key_path.length; ++j) + object.key_path[j] = message.key_path[j]; + } return object; }; /** - * Converts this QueryConnectionRequest to JSON. + * Converts this MerklePath to JSON. * @function toJSON - * @memberof ibc.core.connection.v1.QueryConnectionRequest + * @memberof ibc.core.commitment.v1.MerklePath * @instance * @returns {Object.} JSON object */ - QueryConnectionRequest.prototype.toJSON = function toJSON() { + MerklePath.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryConnectionRequest; + return MerklePath; })(); - v1.QueryConnectionResponse = (function() { + v1.MerkleProof = (function() { /** - * Properties of a QueryConnectionResponse. - * @memberof ibc.core.connection.v1 - * @interface IQueryConnectionResponse - * @property {ibc.core.connection.v1.IConnectionEnd|null} [connection] QueryConnectionResponse connection - * @property {Uint8Array|null} [proof] QueryConnectionResponse proof - * @property {ibc.core.client.v1.IHeight|null} [proof_height] QueryConnectionResponse proof_height + * Properties of a MerkleProof. + * @memberof ibc.core.commitment.v1 + * @interface IMerkleProof + * @property {Array.|null} [proofs] MerkleProof proofs */ /** - * Constructs a new QueryConnectionResponse. - * @memberof ibc.core.connection.v1 - * @classdesc Represents a QueryConnectionResponse. - * @implements IQueryConnectionResponse + * Constructs a new MerkleProof. + * @memberof ibc.core.commitment.v1 + * @classdesc Represents a MerkleProof. + * @implements IMerkleProof * @constructor - * @param {ibc.core.connection.v1.IQueryConnectionResponse=} [properties] Properties to set + * @param {ibc.core.commitment.v1.IMerkleProof=} [properties] Properties to set */ - function QueryConnectionResponse(properties) { + function MerkleProof(properties) { + this.proofs = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -61556,89 +67518,66 @@ export const ibc = $root.ibc = (() => { } /** - * QueryConnectionResponse connection. - * @member {ibc.core.connection.v1.IConnectionEnd|null|undefined} connection - * @memberof ibc.core.connection.v1.QueryConnectionResponse - * @instance - */ - QueryConnectionResponse.prototype.connection = null; - - /** - * QueryConnectionResponse proof. - * @member {Uint8Array} proof - * @memberof ibc.core.connection.v1.QueryConnectionResponse - * @instance - */ - QueryConnectionResponse.prototype.proof = $util.newBuffer([]); - - /** - * QueryConnectionResponse proof_height. - * @member {ibc.core.client.v1.IHeight|null|undefined} proof_height - * @memberof ibc.core.connection.v1.QueryConnectionResponse + * MerkleProof proofs. + * @member {Array.} proofs + * @memberof ibc.core.commitment.v1.MerkleProof * @instance */ - QueryConnectionResponse.prototype.proof_height = null; + MerkleProof.prototype.proofs = $util.emptyArray; /** - * Encodes the specified QueryConnectionResponse message. Does not implicitly {@link ibc.core.connection.v1.QueryConnectionResponse.verify|verify} messages. + * Encodes the specified MerkleProof message. Does not implicitly {@link ibc.core.commitment.v1.MerkleProof.verify|verify} messages. * @function encode - * @memberof ibc.core.connection.v1.QueryConnectionResponse + * @memberof ibc.core.commitment.v1.MerkleProof * @static - * @param {ibc.core.connection.v1.IQueryConnectionResponse} message QueryConnectionResponse message or plain object to encode + * @param {ibc.core.commitment.v1.IMerkleProof} message MerkleProof message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryConnectionResponse.encode = function encode(message, writer) { + MerkleProof.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.connection != null && Object.hasOwnProperty.call(message, "connection")) - $root.ibc.core.connection.v1.ConnectionEnd.encode(message.connection, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.proof != null && Object.hasOwnProperty.call(message, "proof")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.proof); - if (message.proof_height != null && Object.hasOwnProperty.call(message, "proof_height")) - $root.ibc.core.client.v1.Height.encode(message.proof_height, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.proofs != null && message.proofs.length) + for (let i = 0; i < message.proofs.length; ++i) + $root.cosmos.ics23.v1.CommitmentProof.encode(message.proofs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified QueryConnectionResponse message, length delimited. Does not implicitly {@link ibc.core.connection.v1.QueryConnectionResponse.verify|verify} messages. + * Encodes the specified MerkleProof message, length delimited. Does not implicitly {@link ibc.core.commitment.v1.MerkleProof.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.connection.v1.QueryConnectionResponse + * @memberof ibc.core.commitment.v1.MerkleProof * @static - * @param {ibc.core.connection.v1.IQueryConnectionResponse} message QueryConnectionResponse message or plain object to encode + * @param {ibc.core.commitment.v1.IMerkleProof} message MerkleProof message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryConnectionResponse.encodeDelimited = function encodeDelimited(message, writer) { + MerkleProof.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryConnectionResponse message from the specified reader or buffer. + * Decodes a MerkleProof message from the specified reader or buffer. * @function decode - * @memberof ibc.core.connection.v1.QueryConnectionResponse + * @memberof ibc.core.commitment.v1.MerkleProof * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.connection.v1.QueryConnectionResponse} QueryConnectionResponse + * @returns {ibc.core.commitment.v1.MerkleProof} MerkleProof * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryConnectionResponse.decode = function decode(reader, length) { + MerkleProof.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.connection.v1.QueryConnectionResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.commitment.v1.MerkleProof(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.connection = $root.ibc.core.connection.v1.ConnectionEnd.decode(reader, reader.uint32()); - break; - case 2: - message.proof = reader.bytes(); - break; - case 3: - message.proof_height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); + if (!(message.proofs && message.proofs.length)) + message.proofs = []; + message.proofs.push($root.cosmos.ics23.v1.CommitmentProof.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -61649,143 +67588,305 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a QueryConnectionResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ibc.core.connection.v1.QueryConnectionResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.connection.v1.QueryConnectionResponse} QueryConnectionResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Decodes a MerkleProof message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof ibc.core.commitment.v1.MerkleProof + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {ibc.core.commitment.v1.MerkleProof} MerkleProof + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MerkleProof.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a MerkleProof message. + * @function verify + * @memberof ibc.core.commitment.v1.MerkleProof + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MerkleProof.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.proofs != null && message.hasOwnProperty("proofs")) { + if (!Array.isArray(message.proofs)) + return "proofs: array expected"; + for (let i = 0; i < message.proofs.length; ++i) { + let error = $root.cosmos.ics23.v1.CommitmentProof.verify(message.proofs[i]); + if (error) + return "proofs." + error; + } + } + return null; + }; + + /** + * Creates a MerkleProof message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof ibc.core.commitment.v1.MerkleProof + * @static + * @param {Object.} object Plain object + * @returns {ibc.core.commitment.v1.MerkleProof} MerkleProof + */ + MerkleProof.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.commitment.v1.MerkleProof) + return object; + let message = new $root.ibc.core.commitment.v1.MerkleProof(); + if (object.proofs) { + if (!Array.isArray(object.proofs)) + throw TypeError(".ibc.core.commitment.v1.MerkleProof.proofs: array expected"); + message.proofs = []; + for (let i = 0; i < object.proofs.length; ++i) { + if (typeof object.proofs[i] !== "object") + throw TypeError(".ibc.core.commitment.v1.MerkleProof.proofs: object expected"); + message.proofs[i] = $root.cosmos.ics23.v1.CommitmentProof.fromObject(object.proofs[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a MerkleProof message. Also converts values to other types if specified. + * @function toObject + * @memberof ibc.core.commitment.v1.MerkleProof + * @static + * @param {ibc.core.commitment.v1.MerkleProof} message MerkleProof + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MerkleProof.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) + object.proofs = []; + if (message.proofs && message.proofs.length) { + object.proofs = []; + for (let j = 0; j < message.proofs.length; ++j) + object.proofs[j] = $root.cosmos.ics23.v1.CommitmentProof.toObject(message.proofs[j], options); + } + return object; + }; + + /** + * Converts this MerkleProof to JSON. + * @function toJSON + * @memberof ibc.core.commitment.v1.MerkleProof + * @instance + * @returns {Object.} JSON object + */ + MerkleProof.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return MerkleProof; + })(); + + return v1; + })(); + + return commitment; + })(); + + core.connection = (function() { + + /** + * Namespace connection. + * @memberof ibc.core + * @namespace + */ + const connection = {}; + + connection.v1 = (function() { + + /** + * Namespace v1. + * @memberof ibc.core.connection + * @namespace + */ + const v1 = {}; + + v1.Msg = (function() { + + /** + * Constructs a new Msg service. + * @memberof ibc.core.connection.v1 + * @classdesc Represents a Msg + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + */ + function Msg(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (Msg.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Msg; + + /** + * Callback as used by {@link ibc.core.connection.v1.Msg#connectionOpenInit}. + * @memberof ibc.core.connection.v1.Msg + * @typedef ConnectionOpenInitCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.core.connection.v1.MsgConnectionOpenInitResponse} [response] MsgConnectionOpenInitResponse + */ + + /** + * Calls ConnectionOpenInit. + * @function connectionOpenInit + * @memberof ibc.core.connection.v1.Msg + * @instance + * @param {ibc.core.connection.v1.IMsgConnectionOpenInit} request MsgConnectionOpenInit message or plain object + * @param {ibc.core.connection.v1.Msg.ConnectionOpenInitCallback} callback Node-style callback called with the error, if any, and MsgConnectionOpenInitResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Msg.prototype.connectionOpenInit = function connectionOpenInit(request, callback) { + return this.rpcCall(connectionOpenInit, $root.ibc.core.connection.v1.MsgConnectionOpenInit, $root.ibc.core.connection.v1.MsgConnectionOpenInitResponse, request, callback); + }, "name", { value: "ConnectionOpenInit" }); + + /** + * Calls ConnectionOpenInit. + * @function connectionOpenInit + * @memberof ibc.core.connection.v1.Msg + * @instance + * @param {ibc.core.connection.v1.IMsgConnectionOpenInit} request MsgConnectionOpenInit message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link ibc.core.connection.v1.Msg#connectionOpenTry}. + * @memberof ibc.core.connection.v1.Msg + * @typedef ConnectionOpenTryCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.core.connection.v1.MsgConnectionOpenTryResponse} [response] MsgConnectionOpenTryResponse + */ + + /** + * Calls ConnectionOpenTry. + * @function connectionOpenTry + * @memberof ibc.core.connection.v1.Msg + * @instance + * @param {ibc.core.connection.v1.IMsgConnectionOpenTry} request MsgConnectionOpenTry message or plain object + * @param {ibc.core.connection.v1.Msg.ConnectionOpenTryCallback} callback Node-style callback called with the error, if any, and MsgConnectionOpenTryResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Msg.prototype.connectionOpenTry = function connectionOpenTry(request, callback) { + return this.rpcCall(connectionOpenTry, $root.ibc.core.connection.v1.MsgConnectionOpenTry, $root.ibc.core.connection.v1.MsgConnectionOpenTryResponse, request, callback); + }, "name", { value: "ConnectionOpenTry" }); + + /** + * Calls ConnectionOpenTry. + * @function connectionOpenTry + * @memberof ibc.core.connection.v1.Msg + * @instance + * @param {ibc.core.connection.v1.IMsgConnectionOpenTry} request MsgConnectionOpenTry message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link ibc.core.connection.v1.Msg#connectionOpenAck}. + * @memberof ibc.core.connection.v1.Msg + * @typedef ConnectionOpenAckCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.core.connection.v1.MsgConnectionOpenAckResponse} [response] MsgConnectionOpenAckResponse */ - QueryConnectionResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; /** - * Verifies a QueryConnectionResponse message. - * @function verify - * @memberof ibc.core.connection.v1.QueryConnectionResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Calls ConnectionOpenAck. + * @function connectionOpenAck + * @memberof ibc.core.connection.v1.Msg + * @instance + * @param {ibc.core.connection.v1.IMsgConnectionOpenAck} request MsgConnectionOpenAck message or plain object + * @param {ibc.core.connection.v1.Msg.ConnectionOpenAckCallback} callback Node-style callback called with the error, if any, and MsgConnectionOpenAckResponse + * @returns {undefined} + * @variation 1 */ - QueryConnectionResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.connection != null && message.hasOwnProperty("connection")) { - let error = $root.ibc.core.connection.v1.ConnectionEnd.verify(message.connection); - if (error) - return "connection." + error; - } - if (message.proof != null && message.hasOwnProperty("proof")) - if (!(message.proof && typeof message.proof.length === "number" || $util.isString(message.proof))) - return "proof: buffer expected"; - if (message.proof_height != null && message.hasOwnProperty("proof_height")) { - let error = $root.ibc.core.client.v1.Height.verify(message.proof_height); - if (error) - return "proof_height." + error; - } - return null; - }; + Object.defineProperty(Msg.prototype.connectionOpenAck = function connectionOpenAck(request, callback) { + return this.rpcCall(connectionOpenAck, $root.ibc.core.connection.v1.MsgConnectionOpenAck, $root.ibc.core.connection.v1.MsgConnectionOpenAckResponse, request, callback); + }, "name", { value: "ConnectionOpenAck" }); /** - * Creates a QueryConnectionResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof ibc.core.connection.v1.QueryConnectionResponse - * @static - * @param {Object.} object Plain object - * @returns {ibc.core.connection.v1.QueryConnectionResponse} QueryConnectionResponse + * Calls ConnectionOpenAck. + * @function connectionOpenAck + * @memberof ibc.core.connection.v1.Msg + * @instance + * @param {ibc.core.connection.v1.IMsgConnectionOpenAck} request MsgConnectionOpenAck message or plain object + * @returns {Promise} Promise + * @variation 2 */ - QueryConnectionResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.connection.v1.QueryConnectionResponse) - return object; - let message = new $root.ibc.core.connection.v1.QueryConnectionResponse(); - if (object.connection != null) { - if (typeof object.connection !== "object") - throw TypeError(".ibc.core.connection.v1.QueryConnectionResponse.connection: object expected"); - message.connection = $root.ibc.core.connection.v1.ConnectionEnd.fromObject(object.connection); - } - if (object.proof != null) - if (typeof object.proof === "string") - $util.base64.decode(object.proof, message.proof = $util.newBuffer($util.base64.length(object.proof)), 0); - else if (object.proof.length) - message.proof = object.proof; - if (object.proof_height != null) { - if (typeof object.proof_height !== "object") - throw TypeError(".ibc.core.connection.v1.QueryConnectionResponse.proof_height: object expected"); - message.proof_height = $root.ibc.core.client.v1.Height.fromObject(object.proof_height); - } - return message; - }; /** - * Creates a plain object from a QueryConnectionResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof ibc.core.connection.v1.QueryConnectionResponse - * @static - * @param {ibc.core.connection.v1.QueryConnectionResponse} message QueryConnectionResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Callback as used by {@link ibc.core.connection.v1.Msg#connectionOpenConfirm}. + * @memberof ibc.core.connection.v1.Msg + * @typedef ConnectionOpenConfirmCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.core.connection.v1.MsgConnectionOpenConfirmResponse} [response] MsgConnectionOpenConfirmResponse */ - QueryConnectionResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - object.connection = null; - if (options.bytes === String) - object.proof = ""; - else { - object.proof = []; - if (options.bytes !== Array) - object.proof = $util.newBuffer(object.proof); - } - object.proof_height = null; - } - if (message.connection != null && message.hasOwnProperty("connection")) - object.connection = $root.ibc.core.connection.v1.ConnectionEnd.toObject(message.connection, options); - if (message.proof != null && message.hasOwnProperty("proof")) - object.proof = options.bytes === String ? $util.base64.encode(message.proof, 0, message.proof.length) : options.bytes === Array ? Array.prototype.slice.call(message.proof) : message.proof; - if (message.proof_height != null && message.hasOwnProperty("proof_height")) - object.proof_height = $root.ibc.core.client.v1.Height.toObject(message.proof_height, options); - return object; - }; /** - * Converts this QueryConnectionResponse to JSON. - * @function toJSON - * @memberof ibc.core.connection.v1.QueryConnectionResponse + * Calls ConnectionOpenConfirm. + * @function connectionOpenConfirm + * @memberof ibc.core.connection.v1.Msg * @instance - * @returns {Object.} JSON object + * @param {ibc.core.connection.v1.IMsgConnectionOpenConfirm} request MsgConnectionOpenConfirm message or plain object + * @param {ibc.core.connection.v1.Msg.ConnectionOpenConfirmCallback} callback Node-style callback called with the error, if any, and MsgConnectionOpenConfirmResponse + * @returns {undefined} + * @variation 1 */ - QueryConnectionResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + Object.defineProperty(Msg.prototype.connectionOpenConfirm = function connectionOpenConfirm(request, callback) { + return this.rpcCall(connectionOpenConfirm, $root.ibc.core.connection.v1.MsgConnectionOpenConfirm, $root.ibc.core.connection.v1.MsgConnectionOpenConfirmResponse, request, callback); + }, "name", { value: "ConnectionOpenConfirm" }); - return QueryConnectionResponse; + /** + * Calls ConnectionOpenConfirm. + * @function connectionOpenConfirm + * @memberof ibc.core.connection.v1.Msg + * @instance + * @param {ibc.core.connection.v1.IMsgConnectionOpenConfirm} request MsgConnectionOpenConfirm message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return Msg; })(); - v1.QueryConnectionsRequest = (function() { + v1.MsgConnectionOpenInit = (function() { /** - * Properties of a QueryConnectionsRequest. + * Properties of a MsgConnectionOpenInit. * @memberof ibc.core.connection.v1 - * @interface IQueryConnectionsRequest - * @property {cosmos.base.query.v1beta1.IPageRequest|null} [pagination] QueryConnectionsRequest pagination + * @interface IMsgConnectionOpenInit + * @property {string|null} [client_id] MsgConnectionOpenInit client_id + * @property {ibc.core.connection.v1.ICounterparty|null} [counterparty] MsgConnectionOpenInit counterparty + * @property {ibc.core.connection.v1.IVersion|null} [version] MsgConnectionOpenInit version + * @property {Long|null} [delay_period] MsgConnectionOpenInit delay_period + * @property {string|null} [signer] MsgConnectionOpenInit signer */ /** - * Constructs a new QueryConnectionsRequest. + * Constructs a new MsgConnectionOpenInit. * @memberof ibc.core.connection.v1 - * @classdesc Represents a QueryConnectionsRequest. - * @implements IQueryConnectionsRequest + * @classdesc Represents a MsgConnectionOpenInit. + * @implements IMsgConnectionOpenInit * @constructor - * @param {ibc.core.connection.v1.IQueryConnectionsRequest=} [properties] Properties to set + * @param {ibc.core.connection.v1.IMsgConnectionOpenInit=} [properties] Properties to set */ - function QueryConnectionsRequest(properties) { + function MsgConnectionOpenInit(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -61793,63 +67894,115 @@ export const ibc = $root.ibc = (() => { } /** - * QueryConnectionsRequest pagination. - * @member {cosmos.base.query.v1beta1.IPageRequest|null|undefined} pagination - * @memberof ibc.core.connection.v1.QueryConnectionsRequest + * MsgConnectionOpenInit client_id. + * @member {string} client_id + * @memberof ibc.core.connection.v1.MsgConnectionOpenInit * @instance */ - QueryConnectionsRequest.prototype.pagination = null; + MsgConnectionOpenInit.prototype.client_id = ""; /** - * Encodes the specified QueryConnectionsRequest message. Does not implicitly {@link ibc.core.connection.v1.QueryConnectionsRequest.verify|verify} messages. + * MsgConnectionOpenInit counterparty. + * @member {ibc.core.connection.v1.ICounterparty|null|undefined} counterparty + * @memberof ibc.core.connection.v1.MsgConnectionOpenInit + * @instance + */ + MsgConnectionOpenInit.prototype.counterparty = null; + + /** + * MsgConnectionOpenInit version. + * @member {ibc.core.connection.v1.IVersion|null|undefined} version + * @memberof ibc.core.connection.v1.MsgConnectionOpenInit + * @instance + */ + MsgConnectionOpenInit.prototype.version = null; + + /** + * MsgConnectionOpenInit delay_period. + * @member {Long} delay_period + * @memberof ibc.core.connection.v1.MsgConnectionOpenInit + * @instance + */ + MsgConnectionOpenInit.prototype.delay_period = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + + /** + * MsgConnectionOpenInit signer. + * @member {string} signer + * @memberof ibc.core.connection.v1.MsgConnectionOpenInit + * @instance + */ + MsgConnectionOpenInit.prototype.signer = ""; + + /** + * Encodes the specified MsgConnectionOpenInit message. Does not implicitly {@link ibc.core.connection.v1.MsgConnectionOpenInit.verify|verify} messages. * @function encode - * @memberof ibc.core.connection.v1.QueryConnectionsRequest + * @memberof ibc.core.connection.v1.MsgConnectionOpenInit * @static - * @param {ibc.core.connection.v1.IQueryConnectionsRequest} message QueryConnectionsRequest message or plain object to encode + * @param {ibc.core.connection.v1.IMsgConnectionOpenInit} message MsgConnectionOpenInit message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryConnectionsRequest.encode = function encode(message, writer) { + MsgConnectionOpenInit.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.pagination != null && Object.hasOwnProperty.call(message, "pagination")) - $root.cosmos.base.query.v1beta1.PageRequest.encode(message.pagination, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.client_id != null && Object.hasOwnProperty.call(message, "client_id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.client_id); + if (message.counterparty != null && Object.hasOwnProperty.call(message, "counterparty")) + $root.ibc.core.connection.v1.Counterparty.encode(message.counterparty, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.version != null && Object.hasOwnProperty.call(message, "version")) + $root.ibc.core.connection.v1.Version.encode(message.version, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.delay_period != null && Object.hasOwnProperty.call(message, "delay_period")) + writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.delay_period); + if (message.signer != null && Object.hasOwnProperty.call(message, "signer")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.signer); return writer; }; /** - * Encodes the specified QueryConnectionsRequest message, length delimited. Does not implicitly {@link ibc.core.connection.v1.QueryConnectionsRequest.verify|verify} messages. + * Encodes the specified MsgConnectionOpenInit message, length delimited. Does not implicitly {@link ibc.core.connection.v1.MsgConnectionOpenInit.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.connection.v1.QueryConnectionsRequest + * @memberof ibc.core.connection.v1.MsgConnectionOpenInit * @static - * @param {ibc.core.connection.v1.IQueryConnectionsRequest} message QueryConnectionsRequest message or plain object to encode + * @param {ibc.core.connection.v1.IMsgConnectionOpenInit} message MsgConnectionOpenInit message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryConnectionsRequest.encodeDelimited = function encodeDelimited(message, writer) { + MsgConnectionOpenInit.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryConnectionsRequest message from the specified reader or buffer. + * Decodes a MsgConnectionOpenInit message from the specified reader or buffer. * @function decode - * @memberof ibc.core.connection.v1.QueryConnectionsRequest + * @memberof ibc.core.connection.v1.MsgConnectionOpenInit * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.connection.v1.QueryConnectionsRequest} QueryConnectionsRequest + * @returns {ibc.core.connection.v1.MsgConnectionOpenInit} MsgConnectionOpenInit * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryConnectionsRequest.decode = function decode(reader, length) { + MsgConnectionOpenInit.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.connection.v1.QueryConnectionsRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.connection.v1.MsgConnectionOpenInit(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.pagination = $root.cosmos.base.query.v1beta1.PageRequest.decode(reader, reader.uint32()); + message.client_id = reader.string(); + break; + case 2: + message.counterparty = $root.ibc.core.connection.v1.Counterparty.decode(reader, reader.uint32()); + break; + case 3: + message.version = $root.ibc.core.connection.v1.Version.decode(reader, reader.uint32()); + break; + case 4: + message.delay_period = reader.uint64(); + break; + case 5: + message.signer = reader.string(); break; default: reader.skipType(tag & 7); @@ -61860,115 +68013,163 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a QueryConnectionsRequest message from the specified reader or buffer, length delimited. + * Decodes a MsgConnectionOpenInit message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.connection.v1.QueryConnectionsRequest + * @memberof ibc.core.connection.v1.MsgConnectionOpenInit * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.connection.v1.QueryConnectionsRequest} QueryConnectionsRequest + * @returns {ibc.core.connection.v1.MsgConnectionOpenInit} MsgConnectionOpenInit * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryConnectionsRequest.decodeDelimited = function decodeDelimited(reader) { + MsgConnectionOpenInit.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryConnectionsRequest message. + * Verifies a MsgConnectionOpenInit message. * @function verify - * @memberof ibc.core.connection.v1.QueryConnectionsRequest + * @memberof ibc.core.connection.v1.MsgConnectionOpenInit * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryConnectionsRequest.verify = function verify(message) { + MsgConnectionOpenInit.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.pagination != null && message.hasOwnProperty("pagination")) { - let error = $root.cosmos.base.query.v1beta1.PageRequest.verify(message.pagination); + if (message.client_id != null && message.hasOwnProperty("client_id")) + if (!$util.isString(message.client_id)) + return "client_id: string expected"; + if (message.counterparty != null && message.hasOwnProperty("counterparty")) { + let error = $root.ibc.core.connection.v1.Counterparty.verify(message.counterparty); if (error) - return "pagination." + error; + return "counterparty." + error; + } + if (message.version != null && message.hasOwnProperty("version")) { + let error = $root.ibc.core.connection.v1.Version.verify(message.version); + if (error) + return "version." + error; } + if (message.delay_period != null && message.hasOwnProperty("delay_period")) + if (!$util.isInteger(message.delay_period) && !(message.delay_period && $util.isInteger(message.delay_period.low) && $util.isInteger(message.delay_period.high))) + return "delay_period: integer|Long expected"; + if (message.signer != null && message.hasOwnProperty("signer")) + if (!$util.isString(message.signer)) + return "signer: string expected"; return null; }; /** - * Creates a QueryConnectionsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MsgConnectionOpenInit message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.connection.v1.QueryConnectionsRequest + * @memberof ibc.core.connection.v1.MsgConnectionOpenInit * @static * @param {Object.} object Plain object - * @returns {ibc.core.connection.v1.QueryConnectionsRequest} QueryConnectionsRequest + * @returns {ibc.core.connection.v1.MsgConnectionOpenInit} MsgConnectionOpenInit */ - QueryConnectionsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.connection.v1.QueryConnectionsRequest) + MsgConnectionOpenInit.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.connection.v1.MsgConnectionOpenInit) return object; - let message = new $root.ibc.core.connection.v1.QueryConnectionsRequest(); - if (object.pagination != null) { - if (typeof object.pagination !== "object") - throw TypeError(".ibc.core.connection.v1.QueryConnectionsRequest.pagination: object expected"); - message.pagination = $root.cosmos.base.query.v1beta1.PageRequest.fromObject(object.pagination); + let message = new $root.ibc.core.connection.v1.MsgConnectionOpenInit(); + if (object.client_id != null) + message.client_id = String(object.client_id); + if (object.counterparty != null) { + if (typeof object.counterparty !== "object") + throw TypeError(".ibc.core.connection.v1.MsgConnectionOpenInit.counterparty: object expected"); + message.counterparty = $root.ibc.core.connection.v1.Counterparty.fromObject(object.counterparty); + } + if (object.version != null) { + if (typeof object.version !== "object") + throw TypeError(".ibc.core.connection.v1.MsgConnectionOpenInit.version: object expected"); + message.version = $root.ibc.core.connection.v1.Version.fromObject(object.version); } + if (object.delay_period != null) + if ($util.Long) + (message.delay_period = $util.Long.fromValue(object.delay_period)).unsigned = true; + else if (typeof object.delay_period === "string") + message.delay_period = parseInt(object.delay_period, 10); + else if (typeof object.delay_period === "number") + message.delay_period = object.delay_period; + else if (typeof object.delay_period === "object") + message.delay_period = new $util.LongBits(object.delay_period.low >>> 0, object.delay_period.high >>> 0).toNumber(true); + if (object.signer != null) + message.signer = String(object.signer); return message; }; /** - * Creates a plain object from a QueryConnectionsRequest message. Also converts values to other types if specified. + * Creates a plain object from a MsgConnectionOpenInit message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.connection.v1.QueryConnectionsRequest + * @memberof ibc.core.connection.v1.MsgConnectionOpenInit * @static - * @param {ibc.core.connection.v1.QueryConnectionsRequest} message QueryConnectionsRequest + * @param {ibc.core.connection.v1.MsgConnectionOpenInit} message MsgConnectionOpenInit * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryConnectionsRequest.toObject = function toObject(message, options) { + MsgConnectionOpenInit.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) - object.pagination = null; - if (message.pagination != null && message.hasOwnProperty("pagination")) - object.pagination = $root.cosmos.base.query.v1beta1.PageRequest.toObject(message.pagination, options); + if (options.defaults) { + object.client_id = ""; + object.counterparty = null; + object.version = null; + if ($util.Long) { + let long = new $util.Long(0, 0, true); + object.delay_period = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.delay_period = options.longs === String ? "0" : 0; + object.signer = ""; + } + if (message.client_id != null && message.hasOwnProperty("client_id")) + object.client_id = message.client_id; + if (message.counterparty != null && message.hasOwnProperty("counterparty")) + object.counterparty = $root.ibc.core.connection.v1.Counterparty.toObject(message.counterparty, options); + if (message.version != null && message.hasOwnProperty("version")) + object.version = $root.ibc.core.connection.v1.Version.toObject(message.version, options); + if (message.delay_period != null && message.hasOwnProperty("delay_period")) + if (typeof message.delay_period === "number") + object.delay_period = options.longs === String ? String(message.delay_period) : message.delay_period; + else + object.delay_period = options.longs === String ? $util.Long.prototype.toString.call(message.delay_period) : options.longs === Number ? new $util.LongBits(message.delay_period.low >>> 0, message.delay_period.high >>> 0).toNumber(true) : message.delay_period; + if (message.signer != null && message.hasOwnProperty("signer")) + object.signer = message.signer; return object; }; /** - * Converts this QueryConnectionsRequest to JSON. + * Converts this MsgConnectionOpenInit to JSON. * @function toJSON - * @memberof ibc.core.connection.v1.QueryConnectionsRequest + * @memberof ibc.core.connection.v1.MsgConnectionOpenInit * @instance * @returns {Object.} JSON object */ - QueryConnectionsRequest.prototype.toJSON = function toJSON() { + MsgConnectionOpenInit.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryConnectionsRequest; + return MsgConnectionOpenInit; })(); - v1.QueryConnectionsResponse = (function() { + v1.MsgConnectionOpenInitResponse = (function() { /** - * Properties of a QueryConnectionsResponse. + * Properties of a MsgConnectionOpenInitResponse. * @memberof ibc.core.connection.v1 - * @interface IQueryConnectionsResponse - * @property {Array.|null} [connections] QueryConnectionsResponse connections - * @property {cosmos.base.query.v1beta1.IPageResponse|null} [pagination] QueryConnectionsResponse pagination - * @property {ibc.core.client.v1.IHeight|null} [height] QueryConnectionsResponse height + * @interface IMsgConnectionOpenInitResponse */ /** - * Constructs a new QueryConnectionsResponse. + * Constructs a new MsgConnectionOpenInitResponse. * @memberof ibc.core.connection.v1 - * @classdesc Represents a QueryConnectionsResponse. - * @implements IQueryConnectionsResponse + * @classdesc Represents a MsgConnectionOpenInitResponse. + * @implements IMsgConnectionOpenInitResponse * @constructor - * @param {ibc.core.connection.v1.IQueryConnectionsResponse=} [properties] Properties to set + * @param {ibc.core.connection.v1.IMsgConnectionOpenInitResponse=} [properties] Properties to set */ - function QueryConnectionsResponse(properties) { - this.connections = []; + function MsgConnectionOpenInitResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -61976,93 +68177,51 @@ export const ibc = $root.ibc = (() => { } /** - * QueryConnectionsResponse connections. - * @member {Array.} connections - * @memberof ibc.core.connection.v1.QueryConnectionsResponse - * @instance - */ - QueryConnectionsResponse.prototype.connections = $util.emptyArray; - - /** - * QueryConnectionsResponse pagination. - * @member {cosmos.base.query.v1beta1.IPageResponse|null|undefined} pagination - * @memberof ibc.core.connection.v1.QueryConnectionsResponse - * @instance - */ - QueryConnectionsResponse.prototype.pagination = null; - - /** - * QueryConnectionsResponse height. - * @member {ibc.core.client.v1.IHeight|null|undefined} height - * @memberof ibc.core.connection.v1.QueryConnectionsResponse - * @instance - */ - QueryConnectionsResponse.prototype.height = null; - - /** - * Encodes the specified QueryConnectionsResponse message. Does not implicitly {@link ibc.core.connection.v1.QueryConnectionsResponse.verify|verify} messages. + * Encodes the specified MsgConnectionOpenInitResponse message. Does not implicitly {@link ibc.core.connection.v1.MsgConnectionOpenInitResponse.verify|verify} messages. * @function encode - * @memberof ibc.core.connection.v1.QueryConnectionsResponse + * @memberof ibc.core.connection.v1.MsgConnectionOpenInitResponse * @static - * @param {ibc.core.connection.v1.IQueryConnectionsResponse} message QueryConnectionsResponse message or plain object to encode + * @param {ibc.core.connection.v1.IMsgConnectionOpenInitResponse} message MsgConnectionOpenInitResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryConnectionsResponse.encode = function encode(message, writer) { + MsgConnectionOpenInitResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.connections != null && message.connections.length) - for (let i = 0; i < message.connections.length; ++i) - $root.ibc.core.connection.v1.IdentifiedConnection.encode(message.connections[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.pagination != null && Object.hasOwnProperty.call(message, "pagination")) - $root.cosmos.base.query.v1beta1.PageResponse.encode(message.pagination, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.height != null && Object.hasOwnProperty.call(message, "height")) - $root.ibc.core.client.v1.Height.encode(message.height, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified QueryConnectionsResponse message, length delimited. Does not implicitly {@link ibc.core.connection.v1.QueryConnectionsResponse.verify|verify} messages. + * Encodes the specified MsgConnectionOpenInitResponse message, length delimited. Does not implicitly {@link ibc.core.connection.v1.MsgConnectionOpenInitResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.connection.v1.QueryConnectionsResponse + * @memberof ibc.core.connection.v1.MsgConnectionOpenInitResponse * @static - * @param {ibc.core.connection.v1.IQueryConnectionsResponse} message QueryConnectionsResponse message or plain object to encode + * @param {ibc.core.connection.v1.IMsgConnectionOpenInitResponse} message MsgConnectionOpenInitResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryConnectionsResponse.encodeDelimited = function encodeDelimited(message, writer) { + MsgConnectionOpenInitResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryConnectionsResponse message from the specified reader or buffer. + * Decodes a MsgConnectionOpenInitResponse message from the specified reader or buffer. * @function decode - * @memberof ibc.core.connection.v1.QueryConnectionsResponse + * @memberof ibc.core.connection.v1.MsgConnectionOpenInitResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.connection.v1.QueryConnectionsResponse} QueryConnectionsResponse + * @returns {ibc.core.connection.v1.MsgConnectionOpenInitResponse} MsgConnectionOpenInitResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryConnectionsResponse.decode = function decode(reader, length) { + MsgConnectionOpenInitResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.connection.v1.QueryConnectionsResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.connection.v1.MsgConnectionOpenInitResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: - if (!(message.connections && message.connections.length)) - message.connections = []; - message.connections.push($root.ibc.core.connection.v1.IdentifiedConnection.decode(reader, reader.uint32())); - break; - case 2: - message.pagination = $root.cosmos.base.query.v1beta1.PageResponse.decode(reader, reader.uint32()); - break; - case 3: - message.height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); - break; default: reader.skipType(tag & 7); break; @@ -62072,152 +68231,107 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a QueryConnectionsResponse message from the specified reader or buffer, length delimited. + * Decodes a MsgConnectionOpenInitResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.connection.v1.QueryConnectionsResponse + * @memberof ibc.core.connection.v1.MsgConnectionOpenInitResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.connection.v1.QueryConnectionsResponse} QueryConnectionsResponse + * @returns {ibc.core.connection.v1.MsgConnectionOpenInitResponse} MsgConnectionOpenInitResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryConnectionsResponse.decodeDelimited = function decodeDelimited(reader) { + MsgConnectionOpenInitResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryConnectionsResponse message. + * Verifies a MsgConnectionOpenInitResponse message. * @function verify - * @memberof ibc.core.connection.v1.QueryConnectionsResponse + * @memberof ibc.core.connection.v1.MsgConnectionOpenInitResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryConnectionsResponse.verify = function verify(message) { + MsgConnectionOpenInitResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.connections != null && message.hasOwnProperty("connections")) { - if (!Array.isArray(message.connections)) - return "connections: array expected"; - for (let i = 0; i < message.connections.length; ++i) { - let error = $root.ibc.core.connection.v1.IdentifiedConnection.verify(message.connections[i]); - if (error) - return "connections." + error; - } - } - if (message.pagination != null && message.hasOwnProperty("pagination")) { - let error = $root.cosmos.base.query.v1beta1.PageResponse.verify(message.pagination); - if (error) - return "pagination." + error; - } - if (message.height != null && message.hasOwnProperty("height")) { - let error = $root.ibc.core.client.v1.Height.verify(message.height); - if (error) - return "height." + error; - } return null; }; /** - * Creates a QueryConnectionsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a MsgConnectionOpenInitResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.connection.v1.QueryConnectionsResponse + * @memberof ibc.core.connection.v1.MsgConnectionOpenInitResponse * @static * @param {Object.} object Plain object - * @returns {ibc.core.connection.v1.QueryConnectionsResponse} QueryConnectionsResponse + * @returns {ibc.core.connection.v1.MsgConnectionOpenInitResponse} MsgConnectionOpenInitResponse */ - QueryConnectionsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.connection.v1.QueryConnectionsResponse) + MsgConnectionOpenInitResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.connection.v1.MsgConnectionOpenInitResponse) return object; - let message = new $root.ibc.core.connection.v1.QueryConnectionsResponse(); - if (object.connections) { - if (!Array.isArray(object.connections)) - throw TypeError(".ibc.core.connection.v1.QueryConnectionsResponse.connections: array expected"); - message.connections = []; - for (let i = 0; i < object.connections.length; ++i) { - if (typeof object.connections[i] !== "object") - throw TypeError(".ibc.core.connection.v1.QueryConnectionsResponse.connections: object expected"); - message.connections[i] = $root.ibc.core.connection.v1.IdentifiedConnection.fromObject(object.connections[i]); - } - } - if (object.pagination != null) { - if (typeof object.pagination !== "object") - throw TypeError(".ibc.core.connection.v1.QueryConnectionsResponse.pagination: object expected"); - message.pagination = $root.cosmos.base.query.v1beta1.PageResponse.fromObject(object.pagination); - } - if (object.height != null) { - if (typeof object.height !== "object") - throw TypeError(".ibc.core.connection.v1.QueryConnectionsResponse.height: object expected"); - message.height = $root.ibc.core.client.v1.Height.fromObject(object.height); - } - return message; + return new $root.ibc.core.connection.v1.MsgConnectionOpenInitResponse(); }; /** - * Creates a plain object from a QueryConnectionsResponse message. Also converts values to other types if specified. + * Creates a plain object from a MsgConnectionOpenInitResponse message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.connection.v1.QueryConnectionsResponse + * @memberof ibc.core.connection.v1.MsgConnectionOpenInitResponse * @static - * @param {ibc.core.connection.v1.QueryConnectionsResponse} message QueryConnectionsResponse + * @param {ibc.core.connection.v1.MsgConnectionOpenInitResponse} message MsgConnectionOpenInitResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryConnectionsResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.arrays || options.defaults) - object.connections = []; - if (options.defaults) { - object.pagination = null; - object.height = null; - } - if (message.connections && message.connections.length) { - object.connections = []; - for (let j = 0; j < message.connections.length; ++j) - object.connections[j] = $root.ibc.core.connection.v1.IdentifiedConnection.toObject(message.connections[j], options); - } - if (message.pagination != null && message.hasOwnProperty("pagination")) - object.pagination = $root.cosmos.base.query.v1beta1.PageResponse.toObject(message.pagination, options); - if (message.height != null && message.hasOwnProperty("height")) - object.height = $root.ibc.core.client.v1.Height.toObject(message.height, options); - return object; + MsgConnectionOpenInitResponse.toObject = function toObject() { + return {}; }; /** - * Converts this QueryConnectionsResponse to JSON. + * Converts this MsgConnectionOpenInitResponse to JSON. * @function toJSON - * @memberof ibc.core.connection.v1.QueryConnectionsResponse + * @memberof ibc.core.connection.v1.MsgConnectionOpenInitResponse * @instance * @returns {Object.} JSON object */ - QueryConnectionsResponse.prototype.toJSON = function toJSON() { + MsgConnectionOpenInitResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryConnectionsResponse; + return MsgConnectionOpenInitResponse; })(); - v1.QueryClientConnectionsRequest = (function() { + v1.MsgConnectionOpenTry = (function() { /** - * Properties of a QueryClientConnectionsRequest. + * Properties of a MsgConnectionOpenTry. * @memberof ibc.core.connection.v1 - * @interface IQueryClientConnectionsRequest - * @property {string|null} [client_id] QueryClientConnectionsRequest client_id + * @interface IMsgConnectionOpenTry + * @property {string|null} [client_id] MsgConnectionOpenTry client_id + * @property {string|null} [previous_connection_id] MsgConnectionOpenTry previous_connection_id + * @property {google.protobuf.IAny|null} [client_state] MsgConnectionOpenTry client_state + * @property {ibc.core.connection.v1.ICounterparty|null} [counterparty] MsgConnectionOpenTry counterparty + * @property {Long|null} [delay_period] MsgConnectionOpenTry delay_period + * @property {Array.|null} [counterparty_versions] MsgConnectionOpenTry counterparty_versions + * @property {ibc.core.client.v1.IHeight|null} [proof_height] MsgConnectionOpenTry proof_height + * @property {Uint8Array|null} [proof_init] MsgConnectionOpenTry proof_init + * @property {Uint8Array|null} [proof_client] MsgConnectionOpenTry proof_client + * @property {Uint8Array|null} [proof_consensus] MsgConnectionOpenTry proof_consensus + * @property {ibc.core.client.v1.IHeight|null} [consensus_height] MsgConnectionOpenTry consensus_height + * @property {string|null} [signer] MsgConnectionOpenTry signer + * @property {Uint8Array|null} [host_consensus_state_proof] MsgConnectionOpenTry host_consensus_state_proof */ /** - * Constructs a new QueryClientConnectionsRequest. + * Constructs a new MsgConnectionOpenTry. * @memberof ibc.core.connection.v1 - * @classdesc Represents a QueryClientConnectionsRequest. - * @implements IQueryClientConnectionsRequest + * @classdesc Represents a MsgConnectionOpenTry. + * @implements IMsgConnectionOpenTry * @constructor - * @param {ibc.core.connection.v1.IQueryClientConnectionsRequest=} [properties] Properties to set + * @param {ibc.core.connection.v1.IMsgConnectionOpenTry=} [properties] Properties to set */ - function QueryClientConnectionsRequest(properties) { + function MsgConnectionOpenTry(properties) { + this.counterparty_versions = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -62225,64 +68339,223 @@ export const ibc = $root.ibc = (() => { } /** - * QueryClientConnectionsRequest client_id. + * MsgConnectionOpenTry client_id. * @member {string} client_id - * @memberof ibc.core.connection.v1.QueryClientConnectionsRequest + * @memberof ibc.core.connection.v1.MsgConnectionOpenTry * @instance */ - QueryClientConnectionsRequest.prototype.client_id = ""; + MsgConnectionOpenTry.prototype.client_id = ""; /** - * Encodes the specified QueryClientConnectionsRequest message. Does not implicitly {@link ibc.core.connection.v1.QueryClientConnectionsRequest.verify|verify} messages. + * MsgConnectionOpenTry previous_connection_id. + * @member {string} previous_connection_id + * @memberof ibc.core.connection.v1.MsgConnectionOpenTry + * @instance + */ + MsgConnectionOpenTry.prototype.previous_connection_id = ""; + + /** + * MsgConnectionOpenTry client_state. + * @member {google.protobuf.IAny|null|undefined} client_state + * @memberof ibc.core.connection.v1.MsgConnectionOpenTry + * @instance + */ + MsgConnectionOpenTry.prototype.client_state = null; + + /** + * MsgConnectionOpenTry counterparty. + * @member {ibc.core.connection.v1.ICounterparty|null|undefined} counterparty + * @memberof ibc.core.connection.v1.MsgConnectionOpenTry + * @instance + */ + MsgConnectionOpenTry.prototype.counterparty = null; + + /** + * MsgConnectionOpenTry delay_period. + * @member {Long} delay_period + * @memberof ibc.core.connection.v1.MsgConnectionOpenTry + * @instance + */ + MsgConnectionOpenTry.prototype.delay_period = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + + /** + * MsgConnectionOpenTry counterparty_versions. + * @member {Array.} counterparty_versions + * @memberof ibc.core.connection.v1.MsgConnectionOpenTry + * @instance + */ + MsgConnectionOpenTry.prototype.counterparty_versions = $util.emptyArray; + + /** + * MsgConnectionOpenTry proof_height. + * @member {ibc.core.client.v1.IHeight|null|undefined} proof_height + * @memberof ibc.core.connection.v1.MsgConnectionOpenTry + * @instance + */ + MsgConnectionOpenTry.prototype.proof_height = null; + + /** + * MsgConnectionOpenTry proof_init. + * @member {Uint8Array} proof_init + * @memberof ibc.core.connection.v1.MsgConnectionOpenTry + * @instance + */ + MsgConnectionOpenTry.prototype.proof_init = $util.newBuffer([]); + + /** + * MsgConnectionOpenTry proof_client. + * @member {Uint8Array} proof_client + * @memberof ibc.core.connection.v1.MsgConnectionOpenTry + * @instance + */ + MsgConnectionOpenTry.prototype.proof_client = $util.newBuffer([]); + + /** + * MsgConnectionOpenTry proof_consensus. + * @member {Uint8Array} proof_consensus + * @memberof ibc.core.connection.v1.MsgConnectionOpenTry + * @instance + */ + MsgConnectionOpenTry.prototype.proof_consensus = $util.newBuffer([]); + + /** + * MsgConnectionOpenTry consensus_height. + * @member {ibc.core.client.v1.IHeight|null|undefined} consensus_height + * @memberof ibc.core.connection.v1.MsgConnectionOpenTry + * @instance + */ + MsgConnectionOpenTry.prototype.consensus_height = null; + + /** + * MsgConnectionOpenTry signer. + * @member {string} signer + * @memberof ibc.core.connection.v1.MsgConnectionOpenTry + * @instance + */ + MsgConnectionOpenTry.prototype.signer = ""; + + /** + * MsgConnectionOpenTry host_consensus_state_proof. + * @member {Uint8Array} host_consensus_state_proof + * @memberof ibc.core.connection.v1.MsgConnectionOpenTry + * @instance + */ + MsgConnectionOpenTry.prototype.host_consensus_state_proof = $util.newBuffer([]); + + /** + * Encodes the specified MsgConnectionOpenTry message. Does not implicitly {@link ibc.core.connection.v1.MsgConnectionOpenTry.verify|verify} messages. * @function encode - * @memberof ibc.core.connection.v1.QueryClientConnectionsRequest + * @memberof ibc.core.connection.v1.MsgConnectionOpenTry * @static - * @param {ibc.core.connection.v1.IQueryClientConnectionsRequest} message QueryClientConnectionsRequest message or plain object to encode + * @param {ibc.core.connection.v1.IMsgConnectionOpenTry} message MsgConnectionOpenTry message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryClientConnectionsRequest.encode = function encode(message, writer) { + MsgConnectionOpenTry.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.client_id != null && Object.hasOwnProperty.call(message, "client_id")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.client_id); + if (message.previous_connection_id != null && Object.hasOwnProperty.call(message, "previous_connection_id")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.previous_connection_id); + if (message.client_state != null && Object.hasOwnProperty.call(message, "client_state")) + $root.google.protobuf.Any.encode(message.client_state, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.counterparty != null && Object.hasOwnProperty.call(message, "counterparty")) + $root.ibc.core.connection.v1.Counterparty.encode(message.counterparty, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.delay_period != null && Object.hasOwnProperty.call(message, "delay_period")) + writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.delay_period); + if (message.counterparty_versions != null && message.counterparty_versions.length) + for (let i = 0; i < message.counterparty_versions.length; ++i) + $root.ibc.core.connection.v1.Version.encode(message.counterparty_versions[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.proof_height != null && Object.hasOwnProperty.call(message, "proof_height")) + $root.ibc.core.client.v1.Height.encode(message.proof_height, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.proof_init != null && Object.hasOwnProperty.call(message, "proof_init")) + writer.uint32(/* id 8, wireType 2 =*/66).bytes(message.proof_init); + if (message.proof_client != null && Object.hasOwnProperty.call(message, "proof_client")) + writer.uint32(/* id 9, wireType 2 =*/74).bytes(message.proof_client); + if (message.proof_consensus != null && Object.hasOwnProperty.call(message, "proof_consensus")) + writer.uint32(/* id 10, wireType 2 =*/82).bytes(message.proof_consensus); + if (message.consensus_height != null && Object.hasOwnProperty.call(message, "consensus_height")) + $root.ibc.core.client.v1.Height.encode(message.consensus_height, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); + if (message.signer != null && Object.hasOwnProperty.call(message, "signer")) + writer.uint32(/* id 12, wireType 2 =*/98).string(message.signer); + if (message.host_consensus_state_proof != null && Object.hasOwnProperty.call(message, "host_consensus_state_proof")) + writer.uint32(/* id 13, wireType 2 =*/106).bytes(message.host_consensus_state_proof); return writer; }; /** - * Encodes the specified QueryClientConnectionsRequest message, length delimited. Does not implicitly {@link ibc.core.connection.v1.QueryClientConnectionsRequest.verify|verify} messages. + * Encodes the specified MsgConnectionOpenTry message, length delimited. Does not implicitly {@link ibc.core.connection.v1.MsgConnectionOpenTry.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.connection.v1.QueryClientConnectionsRequest + * @memberof ibc.core.connection.v1.MsgConnectionOpenTry * @static - * @param {ibc.core.connection.v1.IQueryClientConnectionsRequest} message QueryClientConnectionsRequest message or plain object to encode + * @param {ibc.core.connection.v1.IMsgConnectionOpenTry} message MsgConnectionOpenTry message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryClientConnectionsRequest.encodeDelimited = function encodeDelimited(message, writer) { + MsgConnectionOpenTry.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryClientConnectionsRequest message from the specified reader or buffer. + * Decodes a MsgConnectionOpenTry message from the specified reader or buffer. * @function decode - * @memberof ibc.core.connection.v1.QueryClientConnectionsRequest + * @memberof ibc.core.connection.v1.MsgConnectionOpenTry * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.connection.v1.QueryClientConnectionsRequest} QueryClientConnectionsRequest + * @returns {ibc.core.connection.v1.MsgConnectionOpenTry} MsgConnectionOpenTry * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryClientConnectionsRequest.decode = function decode(reader, length) { + MsgConnectionOpenTry.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.connection.v1.QueryClientConnectionsRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.connection.v1.MsgConnectionOpenTry(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: message.client_id = reader.string(); break; + case 2: + message.previous_connection_id = reader.string(); + break; + case 3: + message.client_state = $root.google.protobuf.Any.decode(reader, reader.uint32()); + break; + case 4: + message.counterparty = $root.ibc.core.connection.v1.Counterparty.decode(reader, reader.uint32()); + break; + case 5: + message.delay_period = reader.uint64(); + break; + case 6: + if (!(message.counterparty_versions && message.counterparty_versions.length)) + message.counterparty_versions = []; + message.counterparty_versions.push($root.ibc.core.connection.v1.Version.decode(reader, reader.uint32())); + break; + case 7: + message.proof_height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); + break; + case 8: + message.proof_init = reader.bytes(); + break; + case 9: + message.proof_client = reader.bytes(); + break; + case 10: + message.proof_consensus = reader.bytes(); + break; + case 11: + message.consensus_height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); + break; + case 12: + message.signer = reader.string(); + break; + case 13: + message.host_consensus_state_proof = reader.bytes(); + break; default: reader.skipType(tag & 7); break; @@ -62292,110 +68565,291 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a QueryClientConnectionsRequest message from the specified reader or buffer, length delimited. + * Decodes a MsgConnectionOpenTry message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.connection.v1.QueryClientConnectionsRequest + * @memberof ibc.core.connection.v1.MsgConnectionOpenTry * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.connection.v1.QueryClientConnectionsRequest} QueryClientConnectionsRequest + * @returns {ibc.core.connection.v1.MsgConnectionOpenTry} MsgConnectionOpenTry * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryClientConnectionsRequest.decodeDelimited = function decodeDelimited(reader) { + MsgConnectionOpenTry.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryClientConnectionsRequest message. + * Verifies a MsgConnectionOpenTry message. * @function verify - * @memberof ibc.core.connection.v1.QueryClientConnectionsRequest + * @memberof ibc.core.connection.v1.MsgConnectionOpenTry * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryClientConnectionsRequest.verify = function verify(message) { + MsgConnectionOpenTry.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.client_id != null && message.hasOwnProperty("client_id")) if (!$util.isString(message.client_id)) return "client_id: string expected"; + if (message.previous_connection_id != null && message.hasOwnProperty("previous_connection_id")) + if (!$util.isString(message.previous_connection_id)) + return "previous_connection_id: string expected"; + if (message.client_state != null && message.hasOwnProperty("client_state")) { + let error = $root.google.protobuf.Any.verify(message.client_state); + if (error) + return "client_state." + error; + } + if (message.counterparty != null && message.hasOwnProperty("counterparty")) { + let error = $root.ibc.core.connection.v1.Counterparty.verify(message.counterparty); + if (error) + return "counterparty." + error; + } + if (message.delay_period != null && message.hasOwnProperty("delay_period")) + if (!$util.isInteger(message.delay_period) && !(message.delay_period && $util.isInteger(message.delay_period.low) && $util.isInteger(message.delay_period.high))) + return "delay_period: integer|Long expected"; + if (message.counterparty_versions != null && message.hasOwnProperty("counterparty_versions")) { + if (!Array.isArray(message.counterparty_versions)) + return "counterparty_versions: array expected"; + for (let i = 0; i < message.counterparty_versions.length; ++i) { + let error = $root.ibc.core.connection.v1.Version.verify(message.counterparty_versions[i]); + if (error) + return "counterparty_versions." + error; + } + } + if (message.proof_height != null && message.hasOwnProperty("proof_height")) { + let error = $root.ibc.core.client.v1.Height.verify(message.proof_height); + if (error) + return "proof_height." + error; + } + if (message.proof_init != null && message.hasOwnProperty("proof_init")) + if (!(message.proof_init && typeof message.proof_init.length === "number" || $util.isString(message.proof_init))) + return "proof_init: buffer expected"; + if (message.proof_client != null && message.hasOwnProperty("proof_client")) + if (!(message.proof_client && typeof message.proof_client.length === "number" || $util.isString(message.proof_client))) + return "proof_client: buffer expected"; + if (message.proof_consensus != null && message.hasOwnProperty("proof_consensus")) + if (!(message.proof_consensus && typeof message.proof_consensus.length === "number" || $util.isString(message.proof_consensus))) + return "proof_consensus: buffer expected"; + if (message.consensus_height != null && message.hasOwnProperty("consensus_height")) { + let error = $root.ibc.core.client.v1.Height.verify(message.consensus_height); + if (error) + return "consensus_height." + error; + } + if (message.signer != null && message.hasOwnProperty("signer")) + if (!$util.isString(message.signer)) + return "signer: string expected"; + if (message.host_consensus_state_proof != null && message.hasOwnProperty("host_consensus_state_proof")) + if (!(message.host_consensus_state_proof && typeof message.host_consensus_state_proof.length === "number" || $util.isString(message.host_consensus_state_proof))) + return "host_consensus_state_proof: buffer expected"; return null; }; /** - * Creates a QueryClientConnectionsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MsgConnectionOpenTry message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.connection.v1.QueryClientConnectionsRequest + * @memberof ibc.core.connection.v1.MsgConnectionOpenTry * @static * @param {Object.} object Plain object - * @returns {ibc.core.connection.v1.QueryClientConnectionsRequest} QueryClientConnectionsRequest + * @returns {ibc.core.connection.v1.MsgConnectionOpenTry} MsgConnectionOpenTry */ - QueryClientConnectionsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.connection.v1.QueryClientConnectionsRequest) + MsgConnectionOpenTry.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.connection.v1.MsgConnectionOpenTry) return object; - let message = new $root.ibc.core.connection.v1.QueryClientConnectionsRequest(); + let message = new $root.ibc.core.connection.v1.MsgConnectionOpenTry(); if (object.client_id != null) message.client_id = String(object.client_id); + if (object.previous_connection_id != null) + message.previous_connection_id = String(object.previous_connection_id); + if (object.client_state != null) { + if (typeof object.client_state !== "object") + throw TypeError(".ibc.core.connection.v1.MsgConnectionOpenTry.client_state: object expected"); + message.client_state = $root.google.protobuf.Any.fromObject(object.client_state); + } + if (object.counterparty != null) { + if (typeof object.counterparty !== "object") + throw TypeError(".ibc.core.connection.v1.MsgConnectionOpenTry.counterparty: object expected"); + message.counterparty = $root.ibc.core.connection.v1.Counterparty.fromObject(object.counterparty); + } + if (object.delay_period != null) + if ($util.Long) + (message.delay_period = $util.Long.fromValue(object.delay_period)).unsigned = true; + else if (typeof object.delay_period === "string") + message.delay_period = parseInt(object.delay_period, 10); + else if (typeof object.delay_period === "number") + message.delay_period = object.delay_period; + else if (typeof object.delay_period === "object") + message.delay_period = new $util.LongBits(object.delay_period.low >>> 0, object.delay_period.high >>> 0).toNumber(true); + if (object.counterparty_versions) { + if (!Array.isArray(object.counterparty_versions)) + throw TypeError(".ibc.core.connection.v1.MsgConnectionOpenTry.counterparty_versions: array expected"); + message.counterparty_versions = []; + for (let i = 0; i < object.counterparty_versions.length; ++i) { + if (typeof object.counterparty_versions[i] !== "object") + throw TypeError(".ibc.core.connection.v1.MsgConnectionOpenTry.counterparty_versions: object expected"); + message.counterparty_versions[i] = $root.ibc.core.connection.v1.Version.fromObject(object.counterparty_versions[i]); + } + } + if (object.proof_height != null) { + if (typeof object.proof_height !== "object") + throw TypeError(".ibc.core.connection.v1.MsgConnectionOpenTry.proof_height: object expected"); + message.proof_height = $root.ibc.core.client.v1.Height.fromObject(object.proof_height); + } + if (object.proof_init != null) + if (typeof object.proof_init === "string") + $util.base64.decode(object.proof_init, message.proof_init = $util.newBuffer($util.base64.length(object.proof_init)), 0); + else if (object.proof_init.length) + message.proof_init = object.proof_init; + if (object.proof_client != null) + if (typeof object.proof_client === "string") + $util.base64.decode(object.proof_client, message.proof_client = $util.newBuffer($util.base64.length(object.proof_client)), 0); + else if (object.proof_client.length) + message.proof_client = object.proof_client; + if (object.proof_consensus != null) + if (typeof object.proof_consensus === "string") + $util.base64.decode(object.proof_consensus, message.proof_consensus = $util.newBuffer($util.base64.length(object.proof_consensus)), 0); + else if (object.proof_consensus.length) + message.proof_consensus = object.proof_consensus; + if (object.consensus_height != null) { + if (typeof object.consensus_height !== "object") + throw TypeError(".ibc.core.connection.v1.MsgConnectionOpenTry.consensus_height: object expected"); + message.consensus_height = $root.ibc.core.client.v1.Height.fromObject(object.consensus_height); + } + if (object.signer != null) + message.signer = String(object.signer); + if (object.host_consensus_state_proof != null) + if (typeof object.host_consensus_state_proof === "string") + $util.base64.decode(object.host_consensus_state_proof, message.host_consensus_state_proof = $util.newBuffer($util.base64.length(object.host_consensus_state_proof)), 0); + else if (object.host_consensus_state_proof.length) + message.host_consensus_state_proof = object.host_consensus_state_proof; return message; }; /** - * Creates a plain object from a QueryClientConnectionsRequest message. Also converts values to other types if specified. + * Creates a plain object from a MsgConnectionOpenTry message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.connection.v1.QueryClientConnectionsRequest + * @memberof ibc.core.connection.v1.MsgConnectionOpenTry * @static - * @param {ibc.core.connection.v1.QueryClientConnectionsRequest} message QueryClientConnectionsRequest + * @param {ibc.core.connection.v1.MsgConnectionOpenTry} message MsgConnectionOpenTry * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryClientConnectionsRequest.toObject = function toObject(message, options) { + MsgConnectionOpenTry.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) + if (options.arrays || options.defaults) + object.counterparty_versions = []; + if (options.defaults) { object.client_id = ""; + object.previous_connection_id = ""; + object.client_state = null; + object.counterparty = null; + if ($util.Long) { + let long = new $util.Long(0, 0, true); + object.delay_period = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.delay_period = options.longs === String ? "0" : 0; + object.proof_height = null; + if (options.bytes === String) + object.proof_init = ""; + else { + object.proof_init = []; + if (options.bytes !== Array) + object.proof_init = $util.newBuffer(object.proof_init); + } + if (options.bytes === String) + object.proof_client = ""; + else { + object.proof_client = []; + if (options.bytes !== Array) + object.proof_client = $util.newBuffer(object.proof_client); + } + if (options.bytes === String) + object.proof_consensus = ""; + else { + object.proof_consensus = []; + if (options.bytes !== Array) + object.proof_consensus = $util.newBuffer(object.proof_consensus); + } + object.consensus_height = null; + object.signer = ""; + if (options.bytes === String) + object.host_consensus_state_proof = ""; + else { + object.host_consensus_state_proof = []; + if (options.bytes !== Array) + object.host_consensus_state_proof = $util.newBuffer(object.host_consensus_state_proof); + } + } if (message.client_id != null && message.hasOwnProperty("client_id")) object.client_id = message.client_id; + if (message.previous_connection_id != null && message.hasOwnProperty("previous_connection_id")) + object.previous_connection_id = message.previous_connection_id; + if (message.client_state != null && message.hasOwnProperty("client_state")) + object.client_state = $root.google.protobuf.Any.toObject(message.client_state, options); + if (message.counterparty != null && message.hasOwnProperty("counterparty")) + object.counterparty = $root.ibc.core.connection.v1.Counterparty.toObject(message.counterparty, options); + if (message.delay_period != null && message.hasOwnProperty("delay_period")) + if (typeof message.delay_period === "number") + object.delay_period = options.longs === String ? String(message.delay_period) : message.delay_period; + else + object.delay_period = options.longs === String ? $util.Long.prototype.toString.call(message.delay_period) : options.longs === Number ? new $util.LongBits(message.delay_period.low >>> 0, message.delay_period.high >>> 0).toNumber(true) : message.delay_period; + if (message.counterparty_versions && message.counterparty_versions.length) { + object.counterparty_versions = []; + for (let j = 0; j < message.counterparty_versions.length; ++j) + object.counterparty_versions[j] = $root.ibc.core.connection.v1.Version.toObject(message.counterparty_versions[j], options); + } + if (message.proof_height != null && message.hasOwnProperty("proof_height")) + object.proof_height = $root.ibc.core.client.v1.Height.toObject(message.proof_height, options); + if (message.proof_init != null && message.hasOwnProperty("proof_init")) + object.proof_init = options.bytes === String ? $util.base64.encode(message.proof_init, 0, message.proof_init.length) : options.bytes === Array ? Array.prototype.slice.call(message.proof_init) : message.proof_init; + if (message.proof_client != null && message.hasOwnProperty("proof_client")) + object.proof_client = options.bytes === String ? $util.base64.encode(message.proof_client, 0, message.proof_client.length) : options.bytes === Array ? Array.prototype.slice.call(message.proof_client) : message.proof_client; + if (message.proof_consensus != null && message.hasOwnProperty("proof_consensus")) + object.proof_consensus = options.bytes === String ? $util.base64.encode(message.proof_consensus, 0, message.proof_consensus.length) : options.bytes === Array ? Array.prototype.slice.call(message.proof_consensus) : message.proof_consensus; + if (message.consensus_height != null && message.hasOwnProperty("consensus_height")) + object.consensus_height = $root.ibc.core.client.v1.Height.toObject(message.consensus_height, options); + if (message.signer != null && message.hasOwnProperty("signer")) + object.signer = message.signer; + if (message.host_consensus_state_proof != null && message.hasOwnProperty("host_consensus_state_proof")) + object.host_consensus_state_proof = options.bytes === String ? $util.base64.encode(message.host_consensus_state_proof, 0, message.host_consensus_state_proof.length) : options.bytes === Array ? Array.prototype.slice.call(message.host_consensus_state_proof) : message.host_consensus_state_proof; return object; }; /** - * Converts this QueryClientConnectionsRequest to JSON. + * Converts this MsgConnectionOpenTry to JSON. * @function toJSON - * @memberof ibc.core.connection.v1.QueryClientConnectionsRequest + * @memberof ibc.core.connection.v1.MsgConnectionOpenTry * @instance * @returns {Object.} JSON object */ - QueryClientConnectionsRequest.prototype.toJSON = function toJSON() { + MsgConnectionOpenTry.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryClientConnectionsRequest; + return MsgConnectionOpenTry; })(); - v1.QueryClientConnectionsResponse = (function() { + v1.MsgConnectionOpenTryResponse = (function() { /** - * Properties of a QueryClientConnectionsResponse. + * Properties of a MsgConnectionOpenTryResponse. * @memberof ibc.core.connection.v1 - * @interface IQueryClientConnectionsResponse - * @property {Array.|null} [connection_paths] QueryClientConnectionsResponse connection_paths - * @property {Uint8Array|null} [proof] QueryClientConnectionsResponse proof - * @property {ibc.core.client.v1.IHeight|null} [proof_height] QueryClientConnectionsResponse proof_height + * @interface IMsgConnectionOpenTryResponse */ /** - * Constructs a new QueryClientConnectionsResponse. + * Constructs a new MsgConnectionOpenTryResponse. * @memberof ibc.core.connection.v1 - * @classdesc Represents a QueryClientConnectionsResponse. - * @implements IQueryClientConnectionsResponse + * @classdesc Represents a MsgConnectionOpenTryResponse. + * @implements IMsgConnectionOpenTryResponse * @constructor - * @param {ibc.core.connection.v1.IQueryClientConnectionsResponse=} [properties] Properties to set + * @param {ibc.core.connection.v1.IMsgConnectionOpenTryResponse=} [properties] Properties to set */ - function QueryClientConnectionsResponse(properties) { - this.connection_paths = []; + function MsgConnectionOpenTryResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -62403,93 +68857,51 @@ export const ibc = $root.ibc = (() => { } /** - * QueryClientConnectionsResponse connection_paths. - * @member {Array.} connection_paths - * @memberof ibc.core.connection.v1.QueryClientConnectionsResponse - * @instance - */ - QueryClientConnectionsResponse.prototype.connection_paths = $util.emptyArray; - - /** - * QueryClientConnectionsResponse proof. - * @member {Uint8Array} proof - * @memberof ibc.core.connection.v1.QueryClientConnectionsResponse - * @instance - */ - QueryClientConnectionsResponse.prototype.proof = $util.newBuffer([]); - - /** - * QueryClientConnectionsResponse proof_height. - * @member {ibc.core.client.v1.IHeight|null|undefined} proof_height - * @memberof ibc.core.connection.v1.QueryClientConnectionsResponse - * @instance - */ - QueryClientConnectionsResponse.prototype.proof_height = null; - - /** - * Encodes the specified QueryClientConnectionsResponse message. Does not implicitly {@link ibc.core.connection.v1.QueryClientConnectionsResponse.verify|verify} messages. + * Encodes the specified MsgConnectionOpenTryResponse message. Does not implicitly {@link ibc.core.connection.v1.MsgConnectionOpenTryResponse.verify|verify} messages. * @function encode - * @memberof ibc.core.connection.v1.QueryClientConnectionsResponse + * @memberof ibc.core.connection.v1.MsgConnectionOpenTryResponse * @static - * @param {ibc.core.connection.v1.IQueryClientConnectionsResponse} message QueryClientConnectionsResponse message or plain object to encode + * @param {ibc.core.connection.v1.IMsgConnectionOpenTryResponse} message MsgConnectionOpenTryResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryClientConnectionsResponse.encode = function encode(message, writer) { + MsgConnectionOpenTryResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.connection_paths != null && message.connection_paths.length) - for (let i = 0; i < message.connection_paths.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.connection_paths[i]); - if (message.proof != null && Object.hasOwnProperty.call(message, "proof")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.proof); - if (message.proof_height != null && Object.hasOwnProperty.call(message, "proof_height")) - $root.ibc.core.client.v1.Height.encode(message.proof_height, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified QueryClientConnectionsResponse message, length delimited. Does not implicitly {@link ibc.core.connection.v1.QueryClientConnectionsResponse.verify|verify} messages. + * Encodes the specified MsgConnectionOpenTryResponse message, length delimited. Does not implicitly {@link ibc.core.connection.v1.MsgConnectionOpenTryResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.connection.v1.QueryClientConnectionsResponse + * @memberof ibc.core.connection.v1.MsgConnectionOpenTryResponse * @static - * @param {ibc.core.connection.v1.IQueryClientConnectionsResponse} message QueryClientConnectionsResponse message or plain object to encode + * @param {ibc.core.connection.v1.IMsgConnectionOpenTryResponse} message MsgConnectionOpenTryResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryClientConnectionsResponse.encodeDelimited = function encodeDelimited(message, writer) { + MsgConnectionOpenTryResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryClientConnectionsResponse message from the specified reader or buffer. + * Decodes a MsgConnectionOpenTryResponse message from the specified reader or buffer. * @function decode - * @memberof ibc.core.connection.v1.QueryClientConnectionsResponse + * @memberof ibc.core.connection.v1.MsgConnectionOpenTryResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.connection.v1.QueryClientConnectionsResponse} QueryClientConnectionsResponse + * @returns {ibc.core.connection.v1.MsgConnectionOpenTryResponse} MsgConnectionOpenTryResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryClientConnectionsResponse.decode = function decode(reader, length) { + MsgConnectionOpenTryResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.connection.v1.QueryClientConnectionsResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.connection.v1.MsgConnectionOpenTryResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: - if (!(message.connection_paths && message.connection_paths.length)) - message.connection_paths = []; - message.connection_paths.push(reader.string()); - break; - case 2: - message.proof = reader.bytes(); - break; - case 3: - message.proof_height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); - break; default: reader.skipType(tag & 7); break; @@ -62499,151 +68911,104 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a QueryClientConnectionsResponse message from the specified reader or buffer, length delimited. + * Decodes a MsgConnectionOpenTryResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.connection.v1.QueryClientConnectionsResponse + * @memberof ibc.core.connection.v1.MsgConnectionOpenTryResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.connection.v1.QueryClientConnectionsResponse} QueryClientConnectionsResponse + * @returns {ibc.core.connection.v1.MsgConnectionOpenTryResponse} MsgConnectionOpenTryResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryClientConnectionsResponse.decodeDelimited = function decodeDelimited(reader) { + MsgConnectionOpenTryResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryClientConnectionsResponse message. + * Verifies a MsgConnectionOpenTryResponse message. * @function verify - * @memberof ibc.core.connection.v1.QueryClientConnectionsResponse + * @memberof ibc.core.connection.v1.MsgConnectionOpenTryResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryClientConnectionsResponse.verify = function verify(message) { + MsgConnectionOpenTryResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.connection_paths != null && message.hasOwnProperty("connection_paths")) { - if (!Array.isArray(message.connection_paths)) - return "connection_paths: array expected"; - for (let i = 0; i < message.connection_paths.length; ++i) - if (!$util.isString(message.connection_paths[i])) - return "connection_paths: string[] expected"; - } - if (message.proof != null && message.hasOwnProperty("proof")) - if (!(message.proof && typeof message.proof.length === "number" || $util.isString(message.proof))) - return "proof: buffer expected"; - if (message.proof_height != null && message.hasOwnProperty("proof_height")) { - let error = $root.ibc.core.client.v1.Height.verify(message.proof_height); - if (error) - return "proof_height." + error; - } return null; }; /** - * Creates a QueryClientConnectionsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a MsgConnectionOpenTryResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.connection.v1.QueryClientConnectionsResponse + * @memberof ibc.core.connection.v1.MsgConnectionOpenTryResponse * @static * @param {Object.} object Plain object - * @returns {ibc.core.connection.v1.QueryClientConnectionsResponse} QueryClientConnectionsResponse + * @returns {ibc.core.connection.v1.MsgConnectionOpenTryResponse} MsgConnectionOpenTryResponse */ - QueryClientConnectionsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.connection.v1.QueryClientConnectionsResponse) + MsgConnectionOpenTryResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.connection.v1.MsgConnectionOpenTryResponse) return object; - let message = new $root.ibc.core.connection.v1.QueryClientConnectionsResponse(); - if (object.connection_paths) { - if (!Array.isArray(object.connection_paths)) - throw TypeError(".ibc.core.connection.v1.QueryClientConnectionsResponse.connection_paths: array expected"); - message.connection_paths = []; - for (let i = 0; i < object.connection_paths.length; ++i) - message.connection_paths[i] = String(object.connection_paths[i]); - } - if (object.proof != null) - if (typeof object.proof === "string") - $util.base64.decode(object.proof, message.proof = $util.newBuffer($util.base64.length(object.proof)), 0); - else if (object.proof.length) - message.proof = object.proof; - if (object.proof_height != null) { - if (typeof object.proof_height !== "object") - throw TypeError(".ibc.core.connection.v1.QueryClientConnectionsResponse.proof_height: object expected"); - message.proof_height = $root.ibc.core.client.v1.Height.fromObject(object.proof_height); - } - return message; + return new $root.ibc.core.connection.v1.MsgConnectionOpenTryResponse(); }; /** - * Creates a plain object from a QueryClientConnectionsResponse message. Also converts values to other types if specified. + * Creates a plain object from a MsgConnectionOpenTryResponse message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.connection.v1.QueryClientConnectionsResponse + * @memberof ibc.core.connection.v1.MsgConnectionOpenTryResponse * @static - * @param {ibc.core.connection.v1.QueryClientConnectionsResponse} message QueryClientConnectionsResponse + * @param {ibc.core.connection.v1.MsgConnectionOpenTryResponse} message MsgConnectionOpenTryResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryClientConnectionsResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.arrays || options.defaults) - object.connection_paths = []; - if (options.defaults) { - if (options.bytes === String) - object.proof = ""; - else { - object.proof = []; - if (options.bytes !== Array) - object.proof = $util.newBuffer(object.proof); - } - object.proof_height = null; - } - if (message.connection_paths && message.connection_paths.length) { - object.connection_paths = []; - for (let j = 0; j < message.connection_paths.length; ++j) - object.connection_paths[j] = message.connection_paths[j]; - } - if (message.proof != null && message.hasOwnProperty("proof")) - object.proof = options.bytes === String ? $util.base64.encode(message.proof, 0, message.proof.length) : options.bytes === Array ? Array.prototype.slice.call(message.proof) : message.proof; - if (message.proof_height != null && message.hasOwnProperty("proof_height")) - object.proof_height = $root.ibc.core.client.v1.Height.toObject(message.proof_height, options); - return object; + MsgConnectionOpenTryResponse.toObject = function toObject() { + return {}; }; /** - * Converts this QueryClientConnectionsResponse to JSON. + * Converts this MsgConnectionOpenTryResponse to JSON. * @function toJSON - * @memberof ibc.core.connection.v1.QueryClientConnectionsResponse + * @memberof ibc.core.connection.v1.MsgConnectionOpenTryResponse * @instance * @returns {Object.} JSON object */ - QueryClientConnectionsResponse.prototype.toJSON = function toJSON() { + MsgConnectionOpenTryResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryClientConnectionsResponse; + return MsgConnectionOpenTryResponse; })(); - v1.QueryConnectionClientStateRequest = (function() { + v1.MsgConnectionOpenAck = (function() { /** - * Properties of a QueryConnectionClientStateRequest. + * Properties of a MsgConnectionOpenAck. * @memberof ibc.core.connection.v1 - * @interface IQueryConnectionClientStateRequest - * @property {string|null} [connection_id] QueryConnectionClientStateRequest connection_id + * @interface IMsgConnectionOpenAck + * @property {string|null} [connection_id] MsgConnectionOpenAck connection_id + * @property {string|null} [counterparty_connection_id] MsgConnectionOpenAck counterparty_connection_id + * @property {ibc.core.connection.v1.IVersion|null} [version] MsgConnectionOpenAck version + * @property {google.protobuf.IAny|null} [client_state] MsgConnectionOpenAck client_state + * @property {ibc.core.client.v1.IHeight|null} [proof_height] MsgConnectionOpenAck proof_height + * @property {Uint8Array|null} [proof_try] MsgConnectionOpenAck proof_try + * @property {Uint8Array|null} [proof_client] MsgConnectionOpenAck proof_client + * @property {Uint8Array|null} [proof_consensus] MsgConnectionOpenAck proof_consensus + * @property {ibc.core.client.v1.IHeight|null} [consensus_height] MsgConnectionOpenAck consensus_height + * @property {string|null} [signer] MsgConnectionOpenAck signer + * @property {Uint8Array|null} [host_consensus_state_proof] MsgConnectionOpenAck host_consensus_state_proof */ /** - * Constructs a new QueryConnectionClientStateRequest. + * Constructs a new MsgConnectionOpenAck. * @memberof ibc.core.connection.v1 - * @classdesc Represents a QueryConnectionClientStateRequest. - * @implements IQueryConnectionClientStateRequest + * @classdesc Represents a MsgConnectionOpenAck. + * @implements IMsgConnectionOpenAck * @constructor - * @param {ibc.core.connection.v1.IQueryConnectionClientStateRequest=} [properties] Properties to set + * @param {ibc.core.connection.v1.IMsgConnectionOpenAck=} [properties] Properties to set */ - function QueryConnectionClientStateRequest(properties) { + function MsgConnectionOpenAck(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -62651,64 +69016,194 @@ export const ibc = $root.ibc = (() => { } /** - * QueryConnectionClientStateRequest connection_id. + * MsgConnectionOpenAck connection_id. * @member {string} connection_id - * @memberof ibc.core.connection.v1.QueryConnectionClientStateRequest + * @memberof ibc.core.connection.v1.MsgConnectionOpenAck * @instance */ - QueryConnectionClientStateRequest.prototype.connection_id = ""; + MsgConnectionOpenAck.prototype.connection_id = ""; /** - * Encodes the specified QueryConnectionClientStateRequest message. Does not implicitly {@link ibc.core.connection.v1.QueryConnectionClientStateRequest.verify|verify} messages. + * MsgConnectionOpenAck counterparty_connection_id. + * @member {string} counterparty_connection_id + * @memberof ibc.core.connection.v1.MsgConnectionOpenAck + * @instance + */ + MsgConnectionOpenAck.prototype.counterparty_connection_id = ""; + + /** + * MsgConnectionOpenAck version. + * @member {ibc.core.connection.v1.IVersion|null|undefined} version + * @memberof ibc.core.connection.v1.MsgConnectionOpenAck + * @instance + */ + MsgConnectionOpenAck.prototype.version = null; + + /** + * MsgConnectionOpenAck client_state. + * @member {google.protobuf.IAny|null|undefined} client_state + * @memberof ibc.core.connection.v1.MsgConnectionOpenAck + * @instance + */ + MsgConnectionOpenAck.prototype.client_state = null; + + /** + * MsgConnectionOpenAck proof_height. + * @member {ibc.core.client.v1.IHeight|null|undefined} proof_height + * @memberof ibc.core.connection.v1.MsgConnectionOpenAck + * @instance + */ + MsgConnectionOpenAck.prototype.proof_height = null; + + /** + * MsgConnectionOpenAck proof_try. + * @member {Uint8Array} proof_try + * @memberof ibc.core.connection.v1.MsgConnectionOpenAck + * @instance + */ + MsgConnectionOpenAck.prototype.proof_try = $util.newBuffer([]); + + /** + * MsgConnectionOpenAck proof_client. + * @member {Uint8Array} proof_client + * @memberof ibc.core.connection.v1.MsgConnectionOpenAck + * @instance + */ + MsgConnectionOpenAck.prototype.proof_client = $util.newBuffer([]); + + /** + * MsgConnectionOpenAck proof_consensus. + * @member {Uint8Array} proof_consensus + * @memberof ibc.core.connection.v1.MsgConnectionOpenAck + * @instance + */ + MsgConnectionOpenAck.prototype.proof_consensus = $util.newBuffer([]); + + /** + * MsgConnectionOpenAck consensus_height. + * @member {ibc.core.client.v1.IHeight|null|undefined} consensus_height + * @memberof ibc.core.connection.v1.MsgConnectionOpenAck + * @instance + */ + MsgConnectionOpenAck.prototype.consensus_height = null; + + /** + * MsgConnectionOpenAck signer. + * @member {string} signer + * @memberof ibc.core.connection.v1.MsgConnectionOpenAck + * @instance + */ + MsgConnectionOpenAck.prototype.signer = ""; + + /** + * MsgConnectionOpenAck host_consensus_state_proof. + * @member {Uint8Array} host_consensus_state_proof + * @memberof ibc.core.connection.v1.MsgConnectionOpenAck + * @instance + */ + MsgConnectionOpenAck.prototype.host_consensus_state_proof = $util.newBuffer([]); + + /** + * Encodes the specified MsgConnectionOpenAck message. Does not implicitly {@link ibc.core.connection.v1.MsgConnectionOpenAck.verify|verify} messages. * @function encode - * @memberof ibc.core.connection.v1.QueryConnectionClientStateRequest + * @memberof ibc.core.connection.v1.MsgConnectionOpenAck * @static - * @param {ibc.core.connection.v1.IQueryConnectionClientStateRequest} message QueryConnectionClientStateRequest message or plain object to encode + * @param {ibc.core.connection.v1.IMsgConnectionOpenAck} message MsgConnectionOpenAck message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryConnectionClientStateRequest.encode = function encode(message, writer) { + MsgConnectionOpenAck.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.connection_id != null && Object.hasOwnProperty.call(message, "connection_id")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.connection_id); + if (message.counterparty_connection_id != null && Object.hasOwnProperty.call(message, "counterparty_connection_id")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.counterparty_connection_id); + if (message.version != null && Object.hasOwnProperty.call(message, "version")) + $root.ibc.core.connection.v1.Version.encode(message.version, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.client_state != null && Object.hasOwnProperty.call(message, "client_state")) + $root.google.protobuf.Any.encode(message.client_state, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.proof_height != null && Object.hasOwnProperty.call(message, "proof_height")) + $root.ibc.core.client.v1.Height.encode(message.proof_height, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.proof_try != null && Object.hasOwnProperty.call(message, "proof_try")) + writer.uint32(/* id 6, wireType 2 =*/50).bytes(message.proof_try); + if (message.proof_client != null && Object.hasOwnProperty.call(message, "proof_client")) + writer.uint32(/* id 7, wireType 2 =*/58).bytes(message.proof_client); + if (message.proof_consensus != null && Object.hasOwnProperty.call(message, "proof_consensus")) + writer.uint32(/* id 8, wireType 2 =*/66).bytes(message.proof_consensus); + if (message.consensus_height != null && Object.hasOwnProperty.call(message, "consensus_height")) + $root.ibc.core.client.v1.Height.encode(message.consensus_height, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.signer != null && Object.hasOwnProperty.call(message, "signer")) + writer.uint32(/* id 10, wireType 2 =*/82).string(message.signer); + if (message.host_consensus_state_proof != null && Object.hasOwnProperty.call(message, "host_consensus_state_proof")) + writer.uint32(/* id 11, wireType 2 =*/90).bytes(message.host_consensus_state_proof); return writer; }; /** - * Encodes the specified QueryConnectionClientStateRequest message, length delimited. Does not implicitly {@link ibc.core.connection.v1.QueryConnectionClientStateRequest.verify|verify} messages. + * Encodes the specified MsgConnectionOpenAck message, length delimited. Does not implicitly {@link ibc.core.connection.v1.MsgConnectionOpenAck.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.connection.v1.QueryConnectionClientStateRequest + * @memberof ibc.core.connection.v1.MsgConnectionOpenAck * @static - * @param {ibc.core.connection.v1.IQueryConnectionClientStateRequest} message QueryConnectionClientStateRequest message or plain object to encode + * @param {ibc.core.connection.v1.IMsgConnectionOpenAck} message MsgConnectionOpenAck message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryConnectionClientStateRequest.encodeDelimited = function encodeDelimited(message, writer) { + MsgConnectionOpenAck.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryConnectionClientStateRequest message from the specified reader or buffer. + * Decodes a MsgConnectionOpenAck message from the specified reader or buffer. * @function decode - * @memberof ibc.core.connection.v1.QueryConnectionClientStateRequest + * @memberof ibc.core.connection.v1.MsgConnectionOpenAck * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.connection.v1.QueryConnectionClientStateRequest} QueryConnectionClientStateRequest + * @returns {ibc.core.connection.v1.MsgConnectionOpenAck} MsgConnectionOpenAck * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryConnectionClientStateRequest.decode = function decode(reader, length) { + MsgConnectionOpenAck.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.connection.v1.QueryConnectionClientStateRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.connection.v1.MsgConnectionOpenAck(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: message.connection_id = reader.string(); break; + case 2: + message.counterparty_connection_id = reader.string(); + break; + case 3: + message.version = $root.ibc.core.connection.v1.Version.decode(reader, reader.uint32()); + break; + case 4: + message.client_state = $root.google.protobuf.Any.decode(reader, reader.uint32()); + break; + case 5: + message.proof_height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); + break; + case 6: + message.proof_try = reader.bytes(); + break; + case 7: + message.proof_client = reader.bytes(); + break; + case 8: + message.proof_consensus = reader.bytes(); + break; + case 9: + message.consensus_height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); + break; + case 10: + message.signer = reader.string(); + break; + case 11: + message.host_consensus_state_proof = reader.bytes(); + break; default: reader.skipType(tag & 7); break; @@ -62718,109 +69213,243 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a QueryConnectionClientStateRequest message from the specified reader or buffer, length delimited. + * Decodes a MsgConnectionOpenAck message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.connection.v1.QueryConnectionClientStateRequest + * @memberof ibc.core.connection.v1.MsgConnectionOpenAck * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.connection.v1.QueryConnectionClientStateRequest} QueryConnectionClientStateRequest + * @returns {ibc.core.connection.v1.MsgConnectionOpenAck} MsgConnectionOpenAck * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryConnectionClientStateRequest.decodeDelimited = function decodeDelimited(reader) { + MsgConnectionOpenAck.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryConnectionClientStateRequest message. + * Verifies a MsgConnectionOpenAck message. * @function verify - * @memberof ibc.core.connection.v1.QueryConnectionClientStateRequest + * @memberof ibc.core.connection.v1.MsgConnectionOpenAck * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryConnectionClientStateRequest.verify = function verify(message) { + MsgConnectionOpenAck.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.connection_id != null && message.hasOwnProperty("connection_id")) if (!$util.isString(message.connection_id)) return "connection_id: string expected"; + if (message.counterparty_connection_id != null && message.hasOwnProperty("counterparty_connection_id")) + if (!$util.isString(message.counterparty_connection_id)) + return "counterparty_connection_id: string expected"; + if (message.version != null && message.hasOwnProperty("version")) { + let error = $root.ibc.core.connection.v1.Version.verify(message.version); + if (error) + return "version." + error; + } + if (message.client_state != null && message.hasOwnProperty("client_state")) { + let error = $root.google.protobuf.Any.verify(message.client_state); + if (error) + return "client_state." + error; + } + if (message.proof_height != null && message.hasOwnProperty("proof_height")) { + let error = $root.ibc.core.client.v1.Height.verify(message.proof_height); + if (error) + return "proof_height." + error; + } + if (message.proof_try != null && message.hasOwnProperty("proof_try")) + if (!(message.proof_try && typeof message.proof_try.length === "number" || $util.isString(message.proof_try))) + return "proof_try: buffer expected"; + if (message.proof_client != null && message.hasOwnProperty("proof_client")) + if (!(message.proof_client && typeof message.proof_client.length === "number" || $util.isString(message.proof_client))) + return "proof_client: buffer expected"; + if (message.proof_consensus != null && message.hasOwnProperty("proof_consensus")) + if (!(message.proof_consensus && typeof message.proof_consensus.length === "number" || $util.isString(message.proof_consensus))) + return "proof_consensus: buffer expected"; + if (message.consensus_height != null && message.hasOwnProperty("consensus_height")) { + let error = $root.ibc.core.client.v1.Height.verify(message.consensus_height); + if (error) + return "consensus_height." + error; + } + if (message.signer != null && message.hasOwnProperty("signer")) + if (!$util.isString(message.signer)) + return "signer: string expected"; + if (message.host_consensus_state_proof != null && message.hasOwnProperty("host_consensus_state_proof")) + if (!(message.host_consensus_state_proof && typeof message.host_consensus_state_proof.length === "number" || $util.isString(message.host_consensus_state_proof))) + return "host_consensus_state_proof: buffer expected"; return null; }; /** - * Creates a QueryConnectionClientStateRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MsgConnectionOpenAck message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.connection.v1.QueryConnectionClientStateRequest + * @memberof ibc.core.connection.v1.MsgConnectionOpenAck * @static * @param {Object.} object Plain object - * @returns {ibc.core.connection.v1.QueryConnectionClientStateRequest} QueryConnectionClientStateRequest + * @returns {ibc.core.connection.v1.MsgConnectionOpenAck} MsgConnectionOpenAck */ - QueryConnectionClientStateRequest.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.connection.v1.QueryConnectionClientStateRequest) + MsgConnectionOpenAck.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.connection.v1.MsgConnectionOpenAck) return object; - let message = new $root.ibc.core.connection.v1.QueryConnectionClientStateRequest(); + let message = new $root.ibc.core.connection.v1.MsgConnectionOpenAck(); if (object.connection_id != null) message.connection_id = String(object.connection_id); + if (object.counterparty_connection_id != null) + message.counterparty_connection_id = String(object.counterparty_connection_id); + if (object.version != null) { + if (typeof object.version !== "object") + throw TypeError(".ibc.core.connection.v1.MsgConnectionOpenAck.version: object expected"); + message.version = $root.ibc.core.connection.v1.Version.fromObject(object.version); + } + if (object.client_state != null) { + if (typeof object.client_state !== "object") + throw TypeError(".ibc.core.connection.v1.MsgConnectionOpenAck.client_state: object expected"); + message.client_state = $root.google.protobuf.Any.fromObject(object.client_state); + } + if (object.proof_height != null) { + if (typeof object.proof_height !== "object") + throw TypeError(".ibc.core.connection.v1.MsgConnectionOpenAck.proof_height: object expected"); + message.proof_height = $root.ibc.core.client.v1.Height.fromObject(object.proof_height); + } + if (object.proof_try != null) + if (typeof object.proof_try === "string") + $util.base64.decode(object.proof_try, message.proof_try = $util.newBuffer($util.base64.length(object.proof_try)), 0); + else if (object.proof_try.length) + message.proof_try = object.proof_try; + if (object.proof_client != null) + if (typeof object.proof_client === "string") + $util.base64.decode(object.proof_client, message.proof_client = $util.newBuffer($util.base64.length(object.proof_client)), 0); + else if (object.proof_client.length) + message.proof_client = object.proof_client; + if (object.proof_consensus != null) + if (typeof object.proof_consensus === "string") + $util.base64.decode(object.proof_consensus, message.proof_consensus = $util.newBuffer($util.base64.length(object.proof_consensus)), 0); + else if (object.proof_consensus.length) + message.proof_consensus = object.proof_consensus; + if (object.consensus_height != null) { + if (typeof object.consensus_height !== "object") + throw TypeError(".ibc.core.connection.v1.MsgConnectionOpenAck.consensus_height: object expected"); + message.consensus_height = $root.ibc.core.client.v1.Height.fromObject(object.consensus_height); + } + if (object.signer != null) + message.signer = String(object.signer); + if (object.host_consensus_state_proof != null) + if (typeof object.host_consensus_state_proof === "string") + $util.base64.decode(object.host_consensus_state_proof, message.host_consensus_state_proof = $util.newBuffer($util.base64.length(object.host_consensus_state_proof)), 0); + else if (object.host_consensus_state_proof.length) + message.host_consensus_state_proof = object.host_consensus_state_proof; return message; }; /** - * Creates a plain object from a QueryConnectionClientStateRequest message. Also converts values to other types if specified. + * Creates a plain object from a MsgConnectionOpenAck message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.connection.v1.QueryConnectionClientStateRequest + * @memberof ibc.core.connection.v1.MsgConnectionOpenAck * @static - * @param {ibc.core.connection.v1.QueryConnectionClientStateRequest} message QueryConnectionClientStateRequest + * @param {ibc.core.connection.v1.MsgConnectionOpenAck} message MsgConnectionOpenAck * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryConnectionClientStateRequest.toObject = function toObject(message, options) { + MsgConnectionOpenAck.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) + if (options.defaults) { object.connection_id = ""; + object.counterparty_connection_id = ""; + object.version = null; + object.client_state = null; + object.proof_height = null; + if (options.bytes === String) + object.proof_try = ""; + else { + object.proof_try = []; + if (options.bytes !== Array) + object.proof_try = $util.newBuffer(object.proof_try); + } + if (options.bytes === String) + object.proof_client = ""; + else { + object.proof_client = []; + if (options.bytes !== Array) + object.proof_client = $util.newBuffer(object.proof_client); + } + if (options.bytes === String) + object.proof_consensus = ""; + else { + object.proof_consensus = []; + if (options.bytes !== Array) + object.proof_consensus = $util.newBuffer(object.proof_consensus); + } + object.consensus_height = null; + object.signer = ""; + if (options.bytes === String) + object.host_consensus_state_proof = ""; + else { + object.host_consensus_state_proof = []; + if (options.bytes !== Array) + object.host_consensus_state_proof = $util.newBuffer(object.host_consensus_state_proof); + } + } if (message.connection_id != null && message.hasOwnProperty("connection_id")) object.connection_id = message.connection_id; + if (message.counterparty_connection_id != null && message.hasOwnProperty("counterparty_connection_id")) + object.counterparty_connection_id = message.counterparty_connection_id; + if (message.version != null && message.hasOwnProperty("version")) + object.version = $root.ibc.core.connection.v1.Version.toObject(message.version, options); + if (message.client_state != null && message.hasOwnProperty("client_state")) + object.client_state = $root.google.protobuf.Any.toObject(message.client_state, options); + if (message.proof_height != null && message.hasOwnProperty("proof_height")) + object.proof_height = $root.ibc.core.client.v1.Height.toObject(message.proof_height, options); + if (message.proof_try != null && message.hasOwnProperty("proof_try")) + object.proof_try = options.bytes === String ? $util.base64.encode(message.proof_try, 0, message.proof_try.length) : options.bytes === Array ? Array.prototype.slice.call(message.proof_try) : message.proof_try; + if (message.proof_client != null && message.hasOwnProperty("proof_client")) + object.proof_client = options.bytes === String ? $util.base64.encode(message.proof_client, 0, message.proof_client.length) : options.bytes === Array ? Array.prototype.slice.call(message.proof_client) : message.proof_client; + if (message.proof_consensus != null && message.hasOwnProperty("proof_consensus")) + object.proof_consensus = options.bytes === String ? $util.base64.encode(message.proof_consensus, 0, message.proof_consensus.length) : options.bytes === Array ? Array.prototype.slice.call(message.proof_consensus) : message.proof_consensus; + if (message.consensus_height != null && message.hasOwnProperty("consensus_height")) + object.consensus_height = $root.ibc.core.client.v1.Height.toObject(message.consensus_height, options); + if (message.signer != null && message.hasOwnProperty("signer")) + object.signer = message.signer; + if (message.host_consensus_state_proof != null && message.hasOwnProperty("host_consensus_state_proof")) + object.host_consensus_state_proof = options.bytes === String ? $util.base64.encode(message.host_consensus_state_proof, 0, message.host_consensus_state_proof.length) : options.bytes === Array ? Array.prototype.slice.call(message.host_consensus_state_proof) : message.host_consensus_state_proof; return object; }; /** - * Converts this QueryConnectionClientStateRequest to JSON. + * Converts this MsgConnectionOpenAck to JSON. * @function toJSON - * @memberof ibc.core.connection.v1.QueryConnectionClientStateRequest + * @memberof ibc.core.connection.v1.MsgConnectionOpenAck * @instance * @returns {Object.} JSON object */ - QueryConnectionClientStateRequest.prototype.toJSON = function toJSON() { + MsgConnectionOpenAck.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryConnectionClientStateRequest; + return MsgConnectionOpenAck; })(); - v1.QueryConnectionClientStateResponse = (function() { + v1.MsgConnectionOpenAckResponse = (function() { /** - * Properties of a QueryConnectionClientStateResponse. + * Properties of a MsgConnectionOpenAckResponse. * @memberof ibc.core.connection.v1 - * @interface IQueryConnectionClientStateResponse - * @property {ibc.core.client.v1.IIdentifiedClientState|null} [identified_client_state] QueryConnectionClientStateResponse identified_client_state - * @property {Uint8Array|null} [proof] QueryConnectionClientStateResponse proof - * @property {ibc.core.client.v1.IHeight|null} [proof_height] QueryConnectionClientStateResponse proof_height + * @interface IMsgConnectionOpenAckResponse */ /** - * Constructs a new QueryConnectionClientStateResponse. + * Constructs a new MsgConnectionOpenAckResponse. * @memberof ibc.core.connection.v1 - * @classdesc Represents a QueryConnectionClientStateResponse. - * @implements IQueryConnectionClientStateResponse + * @classdesc Represents a MsgConnectionOpenAckResponse. + * @implements IMsgConnectionOpenAckResponse * @constructor - * @param {ibc.core.connection.v1.IQueryConnectionClientStateResponse=} [properties] Properties to set + * @param {ibc.core.connection.v1.IMsgConnectionOpenAckResponse=} [properties] Properties to set */ - function QueryConnectionClientStateResponse(properties) { + function MsgConnectionOpenAckResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -62828,90 +69457,51 @@ export const ibc = $root.ibc = (() => { } /** - * QueryConnectionClientStateResponse identified_client_state. - * @member {ibc.core.client.v1.IIdentifiedClientState|null|undefined} identified_client_state - * @memberof ibc.core.connection.v1.QueryConnectionClientStateResponse - * @instance - */ - QueryConnectionClientStateResponse.prototype.identified_client_state = null; - - /** - * QueryConnectionClientStateResponse proof. - * @member {Uint8Array} proof - * @memberof ibc.core.connection.v1.QueryConnectionClientStateResponse - * @instance - */ - QueryConnectionClientStateResponse.prototype.proof = $util.newBuffer([]); - - /** - * QueryConnectionClientStateResponse proof_height. - * @member {ibc.core.client.v1.IHeight|null|undefined} proof_height - * @memberof ibc.core.connection.v1.QueryConnectionClientStateResponse - * @instance - */ - QueryConnectionClientStateResponse.prototype.proof_height = null; - - /** - * Encodes the specified QueryConnectionClientStateResponse message. Does not implicitly {@link ibc.core.connection.v1.QueryConnectionClientStateResponse.verify|verify} messages. + * Encodes the specified MsgConnectionOpenAckResponse message. Does not implicitly {@link ibc.core.connection.v1.MsgConnectionOpenAckResponse.verify|verify} messages. * @function encode - * @memberof ibc.core.connection.v1.QueryConnectionClientStateResponse + * @memberof ibc.core.connection.v1.MsgConnectionOpenAckResponse * @static - * @param {ibc.core.connection.v1.IQueryConnectionClientStateResponse} message QueryConnectionClientStateResponse message or plain object to encode + * @param {ibc.core.connection.v1.IMsgConnectionOpenAckResponse} message MsgConnectionOpenAckResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryConnectionClientStateResponse.encode = function encode(message, writer) { + MsgConnectionOpenAckResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.identified_client_state != null && Object.hasOwnProperty.call(message, "identified_client_state")) - $root.ibc.core.client.v1.IdentifiedClientState.encode(message.identified_client_state, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.proof != null && Object.hasOwnProperty.call(message, "proof")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.proof); - if (message.proof_height != null && Object.hasOwnProperty.call(message, "proof_height")) - $root.ibc.core.client.v1.Height.encode(message.proof_height, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified QueryConnectionClientStateResponse message, length delimited. Does not implicitly {@link ibc.core.connection.v1.QueryConnectionClientStateResponse.verify|verify} messages. + * Encodes the specified MsgConnectionOpenAckResponse message, length delimited. Does not implicitly {@link ibc.core.connection.v1.MsgConnectionOpenAckResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.connection.v1.QueryConnectionClientStateResponse + * @memberof ibc.core.connection.v1.MsgConnectionOpenAckResponse * @static - * @param {ibc.core.connection.v1.IQueryConnectionClientStateResponse} message QueryConnectionClientStateResponse message or plain object to encode + * @param {ibc.core.connection.v1.IMsgConnectionOpenAckResponse} message MsgConnectionOpenAckResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryConnectionClientStateResponse.encodeDelimited = function encodeDelimited(message, writer) { + MsgConnectionOpenAckResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryConnectionClientStateResponse message from the specified reader or buffer. + * Decodes a MsgConnectionOpenAckResponse message from the specified reader or buffer. * @function decode - * @memberof ibc.core.connection.v1.QueryConnectionClientStateResponse + * @memberof ibc.core.connection.v1.MsgConnectionOpenAckResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.connection.v1.QueryConnectionClientStateResponse} QueryConnectionClientStateResponse + * @returns {ibc.core.connection.v1.MsgConnectionOpenAckResponse} MsgConnectionOpenAckResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryConnectionClientStateResponse.decode = function decode(reader, length) { + MsgConnectionOpenAckResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.connection.v1.QueryConnectionClientStateResponse(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.connection.v1.MsgConnectionOpenAckResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.identified_client_state = $root.ibc.core.client.v1.IdentifiedClientState.decode(reader, reader.uint32()); - break; - case 2: - message.proof = reader.bytes(); - break; - case 3: - message.proof_height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); - break; default: reader.skipType(tag & 7); break; @@ -62921,145 +69511,97 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a QueryConnectionClientStateResponse message from the specified reader or buffer, length delimited. + * Decodes a MsgConnectionOpenAckResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.connection.v1.QueryConnectionClientStateResponse + * @memberof ibc.core.connection.v1.MsgConnectionOpenAckResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.connection.v1.QueryConnectionClientStateResponse} QueryConnectionClientStateResponse + * @returns {ibc.core.connection.v1.MsgConnectionOpenAckResponse} MsgConnectionOpenAckResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryConnectionClientStateResponse.decodeDelimited = function decodeDelimited(reader) { + MsgConnectionOpenAckResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryConnectionClientStateResponse message. + * Verifies a MsgConnectionOpenAckResponse message. * @function verify - * @memberof ibc.core.connection.v1.QueryConnectionClientStateResponse + * @memberof ibc.core.connection.v1.MsgConnectionOpenAckResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryConnectionClientStateResponse.verify = function verify(message) { + MsgConnectionOpenAckResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.identified_client_state != null && message.hasOwnProperty("identified_client_state")) { - let error = $root.ibc.core.client.v1.IdentifiedClientState.verify(message.identified_client_state); - if (error) - return "identified_client_state." + error; - } - if (message.proof != null && message.hasOwnProperty("proof")) - if (!(message.proof && typeof message.proof.length === "number" || $util.isString(message.proof))) - return "proof: buffer expected"; - if (message.proof_height != null && message.hasOwnProperty("proof_height")) { - let error = $root.ibc.core.client.v1.Height.verify(message.proof_height); - if (error) - return "proof_height." + error; - } return null; }; /** - * Creates a QueryConnectionClientStateResponse message from a plain object. Also converts values to their respective internal types. + * Creates a MsgConnectionOpenAckResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.connection.v1.QueryConnectionClientStateResponse + * @memberof ibc.core.connection.v1.MsgConnectionOpenAckResponse * @static * @param {Object.} object Plain object - * @returns {ibc.core.connection.v1.QueryConnectionClientStateResponse} QueryConnectionClientStateResponse + * @returns {ibc.core.connection.v1.MsgConnectionOpenAckResponse} MsgConnectionOpenAckResponse */ - QueryConnectionClientStateResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.connection.v1.QueryConnectionClientStateResponse) + MsgConnectionOpenAckResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.connection.v1.MsgConnectionOpenAckResponse) return object; - let message = new $root.ibc.core.connection.v1.QueryConnectionClientStateResponse(); - if (object.identified_client_state != null) { - if (typeof object.identified_client_state !== "object") - throw TypeError(".ibc.core.connection.v1.QueryConnectionClientStateResponse.identified_client_state: object expected"); - message.identified_client_state = $root.ibc.core.client.v1.IdentifiedClientState.fromObject(object.identified_client_state); - } - if (object.proof != null) - if (typeof object.proof === "string") - $util.base64.decode(object.proof, message.proof = $util.newBuffer($util.base64.length(object.proof)), 0); - else if (object.proof.length) - message.proof = object.proof; - if (object.proof_height != null) { - if (typeof object.proof_height !== "object") - throw TypeError(".ibc.core.connection.v1.QueryConnectionClientStateResponse.proof_height: object expected"); - message.proof_height = $root.ibc.core.client.v1.Height.fromObject(object.proof_height); - } - return message; + return new $root.ibc.core.connection.v1.MsgConnectionOpenAckResponse(); }; /** - * Creates a plain object from a QueryConnectionClientStateResponse message. Also converts values to other types if specified. + * Creates a plain object from a MsgConnectionOpenAckResponse message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.connection.v1.QueryConnectionClientStateResponse + * @memberof ibc.core.connection.v1.MsgConnectionOpenAckResponse * @static - * @param {ibc.core.connection.v1.QueryConnectionClientStateResponse} message QueryConnectionClientStateResponse + * @param {ibc.core.connection.v1.MsgConnectionOpenAckResponse} message MsgConnectionOpenAckResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryConnectionClientStateResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - object.identified_client_state = null; - if (options.bytes === String) - object.proof = ""; - else { - object.proof = []; - if (options.bytes !== Array) - object.proof = $util.newBuffer(object.proof); - } - object.proof_height = null; - } - if (message.identified_client_state != null && message.hasOwnProperty("identified_client_state")) - object.identified_client_state = $root.ibc.core.client.v1.IdentifiedClientState.toObject(message.identified_client_state, options); - if (message.proof != null && message.hasOwnProperty("proof")) - object.proof = options.bytes === String ? $util.base64.encode(message.proof, 0, message.proof.length) : options.bytes === Array ? Array.prototype.slice.call(message.proof) : message.proof; - if (message.proof_height != null && message.hasOwnProperty("proof_height")) - object.proof_height = $root.ibc.core.client.v1.Height.toObject(message.proof_height, options); - return object; + MsgConnectionOpenAckResponse.toObject = function toObject() { + return {}; }; /** - * Converts this QueryConnectionClientStateResponse to JSON. + * Converts this MsgConnectionOpenAckResponse to JSON. * @function toJSON - * @memberof ibc.core.connection.v1.QueryConnectionClientStateResponse + * @memberof ibc.core.connection.v1.MsgConnectionOpenAckResponse * @instance * @returns {Object.} JSON object */ - QueryConnectionClientStateResponse.prototype.toJSON = function toJSON() { + MsgConnectionOpenAckResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryConnectionClientStateResponse; + return MsgConnectionOpenAckResponse; })(); - v1.QueryConnectionConsensusStateRequest = (function() { + v1.MsgConnectionOpenConfirm = (function() { /** - * Properties of a QueryConnectionConsensusStateRequest. + * Properties of a MsgConnectionOpenConfirm. * @memberof ibc.core.connection.v1 - * @interface IQueryConnectionConsensusStateRequest - * @property {string|null} [connection_id] QueryConnectionConsensusStateRequest connection_id - * @property {Long|null} [revision_number] QueryConnectionConsensusStateRequest revision_number - * @property {Long|null} [revision_height] QueryConnectionConsensusStateRequest revision_height + * @interface IMsgConnectionOpenConfirm + * @property {string|null} [connection_id] MsgConnectionOpenConfirm connection_id + * @property {Uint8Array|null} [proof_ack] MsgConnectionOpenConfirm proof_ack + * @property {ibc.core.client.v1.IHeight|null} [proof_height] MsgConnectionOpenConfirm proof_height + * @property {string|null} [signer] MsgConnectionOpenConfirm signer */ /** - * Constructs a new QueryConnectionConsensusStateRequest. + * Constructs a new MsgConnectionOpenConfirm. * @memberof ibc.core.connection.v1 - * @classdesc Represents a QueryConnectionConsensusStateRequest. - * @implements IQueryConnectionConsensusStateRequest + * @classdesc Represents a MsgConnectionOpenConfirm. + * @implements IMsgConnectionOpenConfirm * @constructor - * @param {ibc.core.connection.v1.IQueryConnectionConsensusStateRequest=} [properties] Properties to set + * @param {ibc.core.connection.v1.IMsgConnectionOpenConfirm=} [properties] Properties to set */ - function QueryConnectionConsensusStateRequest(properties) { + function MsgConnectionOpenConfirm(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -63067,78 +69609,88 @@ export const ibc = $root.ibc = (() => { } /** - * QueryConnectionConsensusStateRequest connection_id. + * MsgConnectionOpenConfirm connection_id. * @member {string} connection_id - * @memberof ibc.core.connection.v1.QueryConnectionConsensusStateRequest + * @memberof ibc.core.connection.v1.MsgConnectionOpenConfirm * @instance */ - QueryConnectionConsensusStateRequest.prototype.connection_id = ""; + MsgConnectionOpenConfirm.prototype.connection_id = ""; /** - * QueryConnectionConsensusStateRequest revision_number. - * @member {Long} revision_number - * @memberof ibc.core.connection.v1.QueryConnectionConsensusStateRequest + * MsgConnectionOpenConfirm proof_ack. + * @member {Uint8Array} proof_ack + * @memberof ibc.core.connection.v1.MsgConnectionOpenConfirm * @instance */ - QueryConnectionConsensusStateRequest.prototype.revision_number = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + MsgConnectionOpenConfirm.prototype.proof_ack = $util.newBuffer([]); /** - * QueryConnectionConsensusStateRequest revision_height. - * @member {Long} revision_height - * @memberof ibc.core.connection.v1.QueryConnectionConsensusStateRequest + * MsgConnectionOpenConfirm proof_height. + * @member {ibc.core.client.v1.IHeight|null|undefined} proof_height + * @memberof ibc.core.connection.v1.MsgConnectionOpenConfirm * @instance */ - QueryConnectionConsensusStateRequest.prototype.revision_height = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + MsgConnectionOpenConfirm.prototype.proof_height = null; /** - * Encodes the specified QueryConnectionConsensusStateRequest message. Does not implicitly {@link ibc.core.connection.v1.QueryConnectionConsensusStateRequest.verify|verify} messages. + * MsgConnectionOpenConfirm signer. + * @member {string} signer + * @memberof ibc.core.connection.v1.MsgConnectionOpenConfirm + * @instance + */ + MsgConnectionOpenConfirm.prototype.signer = ""; + + /** + * Encodes the specified MsgConnectionOpenConfirm message. Does not implicitly {@link ibc.core.connection.v1.MsgConnectionOpenConfirm.verify|verify} messages. * @function encode - * @memberof ibc.core.connection.v1.QueryConnectionConsensusStateRequest + * @memberof ibc.core.connection.v1.MsgConnectionOpenConfirm * @static - * @param {ibc.core.connection.v1.IQueryConnectionConsensusStateRequest} message QueryConnectionConsensusStateRequest message or plain object to encode + * @param {ibc.core.connection.v1.IMsgConnectionOpenConfirm} message MsgConnectionOpenConfirm message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryConnectionConsensusStateRequest.encode = function encode(message, writer) { + MsgConnectionOpenConfirm.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.connection_id != null && Object.hasOwnProperty.call(message, "connection_id")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.connection_id); - if (message.revision_number != null && Object.hasOwnProperty.call(message, "revision_number")) - writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.revision_number); - if (message.revision_height != null && Object.hasOwnProperty.call(message, "revision_height")) - writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.revision_height); + if (message.proof_ack != null && Object.hasOwnProperty.call(message, "proof_ack")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.proof_ack); + if (message.proof_height != null && Object.hasOwnProperty.call(message, "proof_height")) + $root.ibc.core.client.v1.Height.encode(message.proof_height, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.signer != null && Object.hasOwnProperty.call(message, "signer")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.signer); return writer; }; /** - * Encodes the specified QueryConnectionConsensusStateRequest message, length delimited. Does not implicitly {@link ibc.core.connection.v1.QueryConnectionConsensusStateRequest.verify|verify} messages. + * Encodes the specified MsgConnectionOpenConfirm message, length delimited. Does not implicitly {@link ibc.core.connection.v1.MsgConnectionOpenConfirm.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.connection.v1.QueryConnectionConsensusStateRequest + * @memberof ibc.core.connection.v1.MsgConnectionOpenConfirm * @static - * @param {ibc.core.connection.v1.IQueryConnectionConsensusStateRequest} message QueryConnectionConsensusStateRequest message or plain object to encode + * @param {ibc.core.connection.v1.IMsgConnectionOpenConfirm} message MsgConnectionOpenConfirm message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryConnectionConsensusStateRequest.encodeDelimited = function encodeDelimited(message, writer) { + MsgConnectionOpenConfirm.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryConnectionConsensusStateRequest message from the specified reader or buffer. + * Decodes a MsgConnectionOpenConfirm message from the specified reader or buffer. * @function decode - * @memberof ibc.core.connection.v1.QueryConnectionConsensusStateRequest + * @memberof ibc.core.connection.v1.MsgConnectionOpenConfirm * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.connection.v1.QueryConnectionConsensusStateRequest} QueryConnectionConsensusStateRequest + * @returns {ibc.core.connection.v1.MsgConnectionOpenConfirm} MsgConnectionOpenConfirm * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryConnectionConsensusStateRequest.decode = function decode(reader, length) { + MsgConnectionOpenConfirm.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.connection.v1.QueryConnectionConsensusStateRequest(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.connection.v1.MsgConnectionOpenConfirm(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { @@ -63146,10 +69698,13 @@ export const ibc = $root.ibc = (() => { message.connection_id = reader.string(); break; case 2: - message.revision_number = reader.uint64(); + message.proof_ack = reader.bytes(); break; case 3: - message.revision_height = reader.uint64(); + message.proof_height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); + break; + case 4: + message.signer = reader.string(); break; default: reader.skipType(tag & 7); @@ -63160,155 +69715,145 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a QueryConnectionConsensusStateRequest message from the specified reader or buffer, length delimited. + * Decodes a MsgConnectionOpenConfirm message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.connection.v1.QueryConnectionConsensusStateRequest + * @memberof ibc.core.connection.v1.MsgConnectionOpenConfirm * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.connection.v1.QueryConnectionConsensusStateRequest} QueryConnectionConsensusStateRequest + * @returns {ibc.core.connection.v1.MsgConnectionOpenConfirm} MsgConnectionOpenConfirm * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryConnectionConsensusStateRequest.decodeDelimited = function decodeDelimited(reader) { + MsgConnectionOpenConfirm.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryConnectionConsensusStateRequest message. + * Verifies a MsgConnectionOpenConfirm message. * @function verify - * @memberof ibc.core.connection.v1.QueryConnectionConsensusStateRequest + * @memberof ibc.core.connection.v1.MsgConnectionOpenConfirm * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryConnectionConsensusStateRequest.verify = function verify(message) { + MsgConnectionOpenConfirm.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.connection_id != null && message.hasOwnProperty("connection_id")) if (!$util.isString(message.connection_id)) return "connection_id: string expected"; - if (message.revision_number != null && message.hasOwnProperty("revision_number")) - if (!$util.isInteger(message.revision_number) && !(message.revision_number && $util.isInteger(message.revision_number.low) && $util.isInteger(message.revision_number.high))) - return "revision_number: integer|Long expected"; - if (message.revision_height != null && message.hasOwnProperty("revision_height")) - if (!$util.isInteger(message.revision_height) && !(message.revision_height && $util.isInteger(message.revision_height.low) && $util.isInteger(message.revision_height.high))) - return "revision_height: integer|Long expected"; + if (message.proof_ack != null && message.hasOwnProperty("proof_ack")) + if (!(message.proof_ack && typeof message.proof_ack.length === "number" || $util.isString(message.proof_ack))) + return "proof_ack: buffer expected"; + if (message.proof_height != null && message.hasOwnProperty("proof_height")) { + let error = $root.ibc.core.client.v1.Height.verify(message.proof_height); + if (error) + return "proof_height." + error; + } + if (message.signer != null && message.hasOwnProperty("signer")) + if (!$util.isString(message.signer)) + return "signer: string expected"; return null; }; /** - * Creates a QueryConnectionConsensusStateRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MsgConnectionOpenConfirm message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.connection.v1.QueryConnectionConsensusStateRequest + * @memberof ibc.core.connection.v1.MsgConnectionOpenConfirm * @static * @param {Object.} object Plain object - * @returns {ibc.core.connection.v1.QueryConnectionConsensusStateRequest} QueryConnectionConsensusStateRequest + * @returns {ibc.core.connection.v1.MsgConnectionOpenConfirm} MsgConnectionOpenConfirm */ - QueryConnectionConsensusStateRequest.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.connection.v1.QueryConnectionConsensusStateRequest) + MsgConnectionOpenConfirm.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.connection.v1.MsgConnectionOpenConfirm) return object; - let message = new $root.ibc.core.connection.v1.QueryConnectionConsensusStateRequest(); + let message = new $root.ibc.core.connection.v1.MsgConnectionOpenConfirm(); if (object.connection_id != null) message.connection_id = String(object.connection_id); - if (object.revision_number != null) - if ($util.Long) - (message.revision_number = $util.Long.fromValue(object.revision_number)).unsigned = true; - else if (typeof object.revision_number === "string") - message.revision_number = parseInt(object.revision_number, 10); - else if (typeof object.revision_number === "number") - message.revision_number = object.revision_number; - else if (typeof object.revision_number === "object") - message.revision_number = new $util.LongBits(object.revision_number.low >>> 0, object.revision_number.high >>> 0).toNumber(true); - if (object.revision_height != null) - if ($util.Long) - (message.revision_height = $util.Long.fromValue(object.revision_height)).unsigned = true; - else if (typeof object.revision_height === "string") - message.revision_height = parseInt(object.revision_height, 10); - else if (typeof object.revision_height === "number") - message.revision_height = object.revision_height; - else if (typeof object.revision_height === "object") - message.revision_height = new $util.LongBits(object.revision_height.low >>> 0, object.revision_height.high >>> 0).toNumber(true); + if (object.proof_ack != null) + if (typeof object.proof_ack === "string") + $util.base64.decode(object.proof_ack, message.proof_ack = $util.newBuffer($util.base64.length(object.proof_ack)), 0); + else if (object.proof_ack.length) + message.proof_ack = object.proof_ack; + if (object.proof_height != null) { + if (typeof object.proof_height !== "object") + throw TypeError(".ibc.core.connection.v1.MsgConnectionOpenConfirm.proof_height: object expected"); + message.proof_height = $root.ibc.core.client.v1.Height.fromObject(object.proof_height); + } + if (object.signer != null) + message.signer = String(object.signer); return message; }; /** - * Creates a plain object from a QueryConnectionConsensusStateRequest message. Also converts values to other types if specified. + * Creates a plain object from a MsgConnectionOpenConfirm message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.connection.v1.QueryConnectionConsensusStateRequest + * @memberof ibc.core.connection.v1.MsgConnectionOpenConfirm * @static - * @param {ibc.core.connection.v1.QueryConnectionConsensusStateRequest} message QueryConnectionConsensusStateRequest + * @param {ibc.core.connection.v1.MsgConnectionOpenConfirm} message MsgConnectionOpenConfirm * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryConnectionConsensusStateRequest.toObject = function toObject(message, options) { + MsgConnectionOpenConfirm.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { object.connection_id = ""; - if ($util.Long) { - let long = new $util.Long(0, 0, true); - object.revision_number = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.revision_number = options.longs === String ? "0" : 0; - if ($util.Long) { - let long = new $util.Long(0, 0, true); - object.revision_height = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.revision_height = options.longs === String ? "0" : 0; + if (options.bytes === String) + object.proof_ack = ""; + else { + object.proof_ack = []; + if (options.bytes !== Array) + object.proof_ack = $util.newBuffer(object.proof_ack); + } + object.proof_height = null; + object.signer = ""; } if (message.connection_id != null && message.hasOwnProperty("connection_id")) object.connection_id = message.connection_id; - if (message.revision_number != null && message.hasOwnProperty("revision_number")) - if (typeof message.revision_number === "number") - object.revision_number = options.longs === String ? String(message.revision_number) : message.revision_number; - else - object.revision_number = options.longs === String ? $util.Long.prototype.toString.call(message.revision_number) : options.longs === Number ? new $util.LongBits(message.revision_number.low >>> 0, message.revision_number.high >>> 0).toNumber(true) : message.revision_number; - if (message.revision_height != null && message.hasOwnProperty("revision_height")) - if (typeof message.revision_height === "number") - object.revision_height = options.longs === String ? String(message.revision_height) : message.revision_height; - else - object.revision_height = options.longs === String ? $util.Long.prototype.toString.call(message.revision_height) : options.longs === Number ? new $util.LongBits(message.revision_height.low >>> 0, message.revision_height.high >>> 0).toNumber(true) : message.revision_height; + if (message.proof_ack != null && message.hasOwnProperty("proof_ack")) + object.proof_ack = options.bytes === String ? $util.base64.encode(message.proof_ack, 0, message.proof_ack.length) : options.bytes === Array ? Array.prototype.slice.call(message.proof_ack) : message.proof_ack; + if (message.proof_height != null && message.hasOwnProperty("proof_height")) + object.proof_height = $root.ibc.core.client.v1.Height.toObject(message.proof_height, options); + if (message.signer != null && message.hasOwnProperty("signer")) + object.signer = message.signer; return object; }; /** - * Converts this QueryConnectionConsensusStateRequest to JSON. + * Converts this MsgConnectionOpenConfirm to JSON. * @function toJSON - * @memberof ibc.core.connection.v1.QueryConnectionConsensusStateRequest + * @memberof ibc.core.connection.v1.MsgConnectionOpenConfirm * @instance * @returns {Object.} JSON object */ - QueryConnectionConsensusStateRequest.prototype.toJSON = function toJSON() { + MsgConnectionOpenConfirm.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryConnectionConsensusStateRequest; + return MsgConnectionOpenConfirm; })(); - v1.QueryConnectionConsensusStateResponse = (function() { + v1.MsgConnectionOpenConfirmResponse = (function() { /** - * Properties of a QueryConnectionConsensusStateResponse. + * Properties of a MsgConnectionOpenConfirmResponse. * @memberof ibc.core.connection.v1 - * @interface IQueryConnectionConsensusStateResponse - * @property {google.protobuf.IAny|null} [consensus_state] QueryConnectionConsensusStateResponse consensus_state - * @property {string|null} [client_id] QueryConnectionConsensusStateResponse client_id - * @property {Uint8Array|null} [proof] QueryConnectionConsensusStateResponse proof - * @property {ibc.core.client.v1.IHeight|null} [proof_height] QueryConnectionConsensusStateResponse proof_height + * @interface IMsgConnectionOpenConfirmResponse */ /** - * Constructs a new QueryConnectionConsensusStateResponse. + * Constructs a new MsgConnectionOpenConfirmResponse. * @memberof ibc.core.connection.v1 - * @classdesc Represents a QueryConnectionConsensusStateResponse. - * @implements IQueryConnectionConsensusStateResponse + * @classdesc Represents a MsgConnectionOpenConfirmResponse. + * @implements IMsgConnectionOpenConfirmResponse * @constructor - * @param {ibc.core.connection.v1.IQueryConnectionConsensusStateResponse=} [properties] Properties to set + * @param {ibc.core.connection.v1.IMsgConnectionOpenConfirmResponse=} [properties] Properties to set */ - function QueryConnectionConsensusStateResponse(properties) { + function MsgConnectionOpenConfirmResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -63316,103 +69861,51 @@ export const ibc = $root.ibc = (() => { } /** - * QueryConnectionConsensusStateResponse consensus_state. - * @member {google.protobuf.IAny|null|undefined} consensus_state - * @memberof ibc.core.connection.v1.QueryConnectionConsensusStateResponse - * @instance - */ - QueryConnectionConsensusStateResponse.prototype.consensus_state = null; - - /** - * QueryConnectionConsensusStateResponse client_id. - * @member {string} client_id - * @memberof ibc.core.connection.v1.QueryConnectionConsensusStateResponse - * @instance - */ - QueryConnectionConsensusStateResponse.prototype.client_id = ""; - - /** - * QueryConnectionConsensusStateResponse proof. - * @member {Uint8Array} proof - * @memberof ibc.core.connection.v1.QueryConnectionConsensusStateResponse - * @instance - */ - QueryConnectionConsensusStateResponse.prototype.proof = $util.newBuffer([]); - - /** - * QueryConnectionConsensusStateResponse proof_height. - * @member {ibc.core.client.v1.IHeight|null|undefined} proof_height - * @memberof ibc.core.connection.v1.QueryConnectionConsensusStateResponse - * @instance - */ - QueryConnectionConsensusStateResponse.prototype.proof_height = null; - - /** - * Encodes the specified QueryConnectionConsensusStateResponse message. Does not implicitly {@link ibc.core.connection.v1.QueryConnectionConsensusStateResponse.verify|verify} messages. + * Encodes the specified MsgConnectionOpenConfirmResponse message. Does not implicitly {@link ibc.core.connection.v1.MsgConnectionOpenConfirmResponse.verify|verify} messages. * @function encode - * @memberof ibc.core.connection.v1.QueryConnectionConsensusStateResponse + * @memberof ibc.core.connection.v1.MsgConnectionOpenConfirmResponse * @static - * @param {ibc.core.connection.v1.IQueryConnectionConsensusStateResponse} message QueryConnectionConsensusStateResponse message or plain object to encode + * @param {ibc.core.connection.v1.IMsgConnectionOpenConfirmResponse} message MsgConnectionOpenConfirmResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryConnectionConsensusStateResponse.encode = function encode(message, writer) { + MsgConnectionOpenConfirmResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.consensus_state != null && Object.hasOwnProperty.call(message, "consensus_state")) - $root.google.protobuf.Any.encode(message.consensus_state, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.client_id != null && Object.hasOwnProperty.call(message, "client_id")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.client_id); - if (message.proof != null && Object.hasOwnProperty.call(message, "proof")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.proof); - if (message.proof_height != null && Object.hasOwnProperty.call(message, "proof_height")) - $root.ibc.core.client.v1.Height.encode(message.proof_height, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; /** - * Encodes the specified QueryConnectionConsensusStateResponse message, length delimited. Does not implicitly {@link ibc.core.connection.v1.QueryConnectionConsensusStateResponse.verify|verify} messages. + * Encodes the specified MsgConnectionOpenConfirmResponse message, length delimited. Does not implicitly {@link ibc.core.connection.v1.MsgConnectionOpenConfirmResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.connection.v1.QueryConnectionConsensusStateResponse + * @memberof ibc.core.connection.v1.MsgConnectionOpenConfirmResponse * @static - * @param {ibc.core.connection.v1.IQueryConnectionConsensusStateResponse} message QueryConnectionConsensusStateResponse message or plain object to encode + * @param {ibc.core.connection.v1.IMsgConnectionOpenConfirmResponse} message MsgConnectionOpenConfirmResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryConnectionConsensusStateResponse.encodeDelimited = function encodeDelimited(message, writer) { + MsgConnectionOpenConfirmResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryConnectionConsensusStateResponse message from the specified reader or buffer. + * Decodes a MsgConnectionOpenConfirmResponse message from the specified reader or buffer. * @function decode - * @memberof ibc.core.connection.v1.QueryConnectionConsensusStateResponse + * @memberof ibc.core.connection.v1.MsgConnectionOpenConfirmResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.connection.v1.QueryConnectionConsensusStateResponse} QueryConnectionConsensusStateResponse + * @returns {ibc.core.connection.v1.MsgConnectionOpenConfirmResponse} MsgConnectionOpenConfirmResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryConnectionConsensusStateResponse.decode = function decode(reader, length) { + MsgConnectionOpenConfirmResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.connection.v1.QueryConnectionConsensusStateResponse(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.consensus_state = $root.google.protobuf.Any.decode(reader, reader.uint32()); - break; - case 2: - message.client_id = reader.string(); - break; - case 3: - message.proof = reader.bytes(); - break; - case 4: - message.proof_height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); - break; + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.connection.v1.MsgConnectionOpenConfirmResponse(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { default: reader.skipType(tag & 7); break; @@ -63422,156 +69915,99 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a QueryConnectionConsensusStateResponse message from the specified reader or buffer, length delimited. + * Decodes a MsgConnectionOpenConfirmResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.connection.v1.QueryConnectionConsensusStateResponse + * @memberof ibc.core.connection.v1.MsgConnectionOpenConfirmResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.connection.v1.QueryConnectionConsensusStateResponse} QueryConnectionConsensusStateResponse + * @returns {ibc.core.connection.v1.MsgConnectionOpenConfirmResponse} MsgConnectionOpenConfirmResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryConnectionConsensusStateResponse.decodeDelimited = function decodeDelimited(reader) { + MsgConnectionOpenConfirmResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryConnectionConsensusStateResponse message. + * Verifies a MsgConnectionOpenConfirmResponse message. * @function verify - * @memberof ibc.core.connection.v1.QueryConnectionConsensusStateResponse + * @memberof ibc.core.connection.v1.MsgConnectionOpenConfirmResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryConnectionConsensusStateResponse.verify = function verify(message) { + MsgConnectionOpenConfirmResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.consensus_state != null && message.hasOwnProperty("consensus_state")) { - let error = $root.google.protobuf.Any.verify(message.consensus_state); - if (error) - return "consensus_state." + error; - } - if (message.client_id != null && message.hasOwnProperty("client_id")) - if (!$util.isString(message.client_id)) - return "client_id: string expected"; - if (message.proof != null && message.hasOwnProperty("proof")) - if (!(message.proof && typeof message.proof.length === "number" || $util.isString(message.proof))) - return "proof: buffer expected"; - if (message.proof_height != null && message.hasOwnProperty("proof_height")) { - let error = $root.ibc.core.client.v1.Height.verify(message.proof_height); - if (error) - return "proof_height." + error; - } return null; }; /** - * Creates a QueryConnectionConsensusStateResponse message from a plain object. Also converts values to their respective internal types. + * Creates a MsgConnectionOpenConfirmResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.connection.v1.QueryConnectionConsensusStateResponse + * @memberof ibc.core.connection.v1.MsgConnectionOpenConfirmResponse * @static * @param {Object.} object Plain object - * @returns {ibc.core.connection.v1.QueryConnectionConsensusStateResponse} QueryConnectionConsensusStateResponse + * @returns {ibc.core.connection.v1.MsgConnectionOpenConfirmResponse} MsgConnectionOpenConfirmResponse */ - QueryConnectionConsensusStateResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.connection.v1.QueryConnectionConsensusStateResponse) + MsgConnectionOpenConfirmResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.connection.v1.MsgConnectionOpenConfirmResponse) return object; - let message = new $root.ibc.core.connection.v1.QueryConnectionConsensusStateResponse(); - if (object.consensus_state != null) { - if (typeof object.consensus_state !== "object") - throw TypeError(".ibc.core.connection.v1.QueryConnectionConsensusStateResponse.consensus_state: object expected"); - message.consensus_state = $root.google.protobuf.Any.fromObject(object.consensus_state); - } - if (object.client_id != null) - message.client_id = String(object.client_id); - if (object.proof != null) - if (typeof object.proof === "string") - $util.base64.decode(object.proof, message.proof = $util.newBuffer($util.base64.length(object.proof)), 0); - else if (object.proof.length) - message.proof = object.proof; - if (object.proof_height != null) { - if (typeof object.proof_height !== "object") - throw TypeError(".ibc.core.connection.v1.QueryConnectionConsensusStateResponse.proof_height: object expected"); - message.proof_height = $root.ibc.core.client.v1.Height.fromObject(object.proof_height); - } - return message; + return new $root.ibc.core.connection.v1.MsgConnectionOpenConfirmResponse(); }; /** - * Creates a plain object from a QueryConnectionConsensusStateResponse message. Also converts values to other types if specified. + * Creates a plain object from a MsgConnectionOpenConfirmResponse message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.connection.v1.QueryConnectionConsensusStateResponse + * @memberof ibc.core.connection.v1.MsgConnectionOpenConfirmResponse * @static - * @param {ibc.core.connection.v1.QueryConnectionConsensusStateResponse} message QueryConnectionConsensusStateResponse + * @param {ibc.core.connection.v1.MsgConnectionOpenConfirmResponse} message MsgConnectionOpenConfirmResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryConnectionConsensusStateResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - object.consensus_state = null; - object.client_id = ""; - if (options.bytes === String) - object.proof = ""; - else { - object.proof = []; - if (options.bytes !== Array) - object.proof = $util.newBuffer(object.proof); - } - object.proof_height = null; - } - if (message.consensus_state != null && message.hasOwnProperty("consensus_state")) - object.consensus_state = $root.google.protobuf.Any.toObject(message.consensus_state, options); - if (message.client_id != null && message.hasOwnProperty("client_id")) - object.client_id = message.client_id; - if (message.proof != null && message.hasOwnProperty("proof")) - object.proof = options.bytes === String ? $util.base64.encode(message.proof, 0, message.proof.length) : options.bytes === Array ? Array.prototype.slice.call(message.proof) : message.proof; - if (message.proof_height != null && message.hasOwnProperty("proof_height")) - object.proof_height = $root.ibc.core.client.v1.Height.toObject(message.proof_height, options); - return object; + MsgConnectionOpenConfirmResponse.toObject = function toObject() { + return {}; }; /** - * Converts this QueryConnectionConsensusStateResponse to JSON. + * Converts this MsgConnectionOpenConfirmResponse to JSON. * @function toJSON - * @memberof ibc.core.connection.v1.QueryConnectionConsensusStateResponse + * @memberof ibc.core.connection.v1.MsgConnectionOpenConfirmResponse * @instance * @returns {Object.} JSON object */ - QueryConnectionConsensusStateResponse.prototype.toJSON = function toJSON() { + MsgConnectionOpenConfirmResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return QueryConnectionConsensusStateResponse; + return MsgConnectionOpenConfirmResponse; })(); - v1.GenesisState = (function() { + v1.ConnectionEnd = (function() { /** - * Properties of a GenesisState. + * Properties of a ConnectionEnd. * @memberof ibc.core.connection.v1 - * @interface IGenesisState - * @property {Array.|null} [connections] GenesisState connections - * @property {Array.|null} [client_connection_paths] GenesisState client_connection_paths - * @property {Long|null} [next_connection_sequence] GenesisState next_connection_sequence - * @property {ibc.core.connection.v1.IParams|null} [params] GenesisState params + * @interface IConnectionEnd + * @property {string|null} [client_id] ConnectionEnd client_id + * @property {Array.|null} [versions] ConnectionEnd versions + * @property {ibc.core.connection.v1.State|null} [state] ConnectionEnd state + * @property {ibc.core.connection.v1.ICounterparty|null} [counterparty] ConnectionEnd counterparty + * @property {Long|null} [delay_period] ConnectionEnd delay_period */ /** - * Constructs a new GenesisState. + * Constructs a new ConnectionEnd. * @memberof ibc.core.connection.v1 - * @classdesc Represents a GenesisState. - * @implements IGenesisState + * @classdesc Represents a ConnectionEnd. + * @implements IConnectionEnd * @constructor - * @param {ibc.core.connection.v1.IGenesisState=} [properties] Properties to set + * @param {ibc.core.connection.v1.IConnectionEnd=} [properties] Properties to set */ - function GenesisState(properties) { - this.connections = []; - this.client_connection_paths = []; + function ConnectionEnd(properties) { + this.versions = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -63579,108 +70015,118 @@ export const ibc = $root.ibc = (() => { } /** - * GenesisState connections. - * @member {Array.} connections - * @memberof ibc.core.connection.v1.GenesisState + * ConnectionEnd client_id. + * @member {string} client_id + * @memberof ibc.core.connection.v1.ConnectionEnd * @instance */ - GenesisState.prototype.connections = $util.emptyArray; + ConnectionEnd.prototype.client_id = ""; /** - * GenesisState client_connection_paths. - * @member {Array.} client_connection_paths - * @memberof ibc.core.connection.v1.GenesisState + * ConnectionEnd versions. + * @member {Array.} versions + * @memberof ibc.core.connection.v1.ConnectionEnd * @instance */ - GenesisState.prototype.client_connection_paths = $util.emptyArray; + ConnectionEnd.prototype.versions = $util.emptyArray; /** - * GenesisState next_connection_sequence. - * @member {Long} next_connection_sequence - * @memberof ibc.core.connection.v1.GenesisState + * ConnectionEnd state. + * @member {ibc.core.connection.v1.State} state + * @memberof ibc.core.connection.v1.ConnectionEnd * @instance */ - GenesisState.prototype.next_connection_sequence = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + ConnectionEnd.prototype.state = 0; /** - * GenesisState params. - * @member {ibc.core.connection.v1.IParams|null|undefined} params - * @memberof ibc.core.connection.v1.GenesisState + * ConnectionEnd counterparty. + * @member {ibc.core.connection.v1.ICounterparty|null|undefined} counterparty + * @memberof ibc.core.connection.v1.ConnectionEnd * @instance */ - GenesisState.prototype.params = null; + ConnectionEnd.prototype.counterparty = null; /** - * Encodes the specified GenesisState message. Does not implicitly {@link ibc.core.connection.v1.GenesisState.verify|verify} messages. + * ConnectionEnd delay_period. + * @member {Long} delay_period + * @memberof ibc.core.connection.v1.ConnectionEnd + * @instance + */ + ConnectionEnd.prototype.delay_period = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + + /** + * Encodes the specified ConnectionEnd message. Does not implicitly {@link ibc.core.connection.v1.ConnectionEnd.verify|verify} messages. * @function encode - * @memberof ibc.core.connection.v1.GenesisState + * @memberof ibc.core.connection.v1.ConnectionEnd * @static - * @param {ibc.core.connection.v1.IGenesisState} message GenesisState message or plain object to encode + * @param {ibc.core.connection.v1.IConnectionEnd} message ConnectionEnd message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GenesisState.encode = function encode(message, writer) { + ConnectionEnd.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.connections != null && message.connections.length) - for (let i = 0; i < message.connections.length; ++i) - $root.ibc.core.connection.v1.IdentifiedConnection.encode(message.connections[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.client_connection_paths != null && message.client_connection_paths.length) - for (let i = 0; i < message.client_connection_paths.length; ++i) - $root.ibc.core.connection.v1.ConnectionPaths.encode(message.client_connection_paths[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.next_connection_sequence != null && Object.hasOwnProperty.call(message, "next_connection_sequence")) - writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.next_connection_sequence); - if (message.params != null && Object.hasOwnProperty.call(message, "params")) - $root.ibc.core.connection.v1.Params.encode(message.params, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.client_id != null && Object.hasOwnProperty.call(message, "client_id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.client_id); + if (message.versions != null && message.versions.length) + for (let i = 0; i < message.versions.length; ++i) + $root.ibc.core.connection.v1.Version.encode(message.versions[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.state); + if (message.counterparty != null && Object.hasOwnProperty.call(message, "counterparty")) + $root.ibc.core.connection.v1.Counterparty.encode(message.counterparty, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.delay_period != null && Object.hasOwnProperty.call(message, "delay_period")) + writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.delay_period); return writer; }; /** - * Encodes the specified GenesisState message, length delimited. Does not implicitly {@link ibc.core.connection.v1.GenesisState.verify|verify} messages. + * Encodes the specified ConnectionEnd message, length delimited. Does not implicitly {@link ibc.core.connection.v1.ConnectionEnd.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.connection.v1.GenesisState + * @memberof ibc.core.connection.v1.ConnectionEnd * @static - * @param {ibc.core.connection.v1.IGenesisState} message GenesisState message or plain object to encode + * @param {ibc.core.connection.v1.IConnectionEnd} message ConnectionEnd message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GenesisState.encodeDelimited = function encodeDelimited(message, writer) { + ConnectionEnd.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GenesisState message from the specified reader or buffer. + * Decodes a ConnectionEnd message from the specified reader or buffer. * @function decode - * @memberof ibc.core.connection.v1.GenesisState + * @memberof ibc.core.connection.v1.ConnectionEnd * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.connection.v1.GenesisState} GenesisState + * @returns {ibc.core.connection.v1.ConnectionEnd} ConnectionEnd * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GenesisState.decode = function decode(reader, length) { + ConnectionEnd.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.connection.v1.GenesisState(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.connection.v1.ConnectionEnd(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.connections && message.connections.length)) - message.connections = []; - message.connections.push($root.ibc.core.connection.v1.IdentifiedConnection.decode(reader, reader.uint32())); + message.client_id = reader.string(); break; case 2: - if (!(message.client_connection_paths && message.client_connection_paths.length)) - message.client_connection_paths = []; - message.client_connection_paths.push($root.ibc.core.connection.v1.ConnectionPaths.decode(reader, reader.uint32())); + if (!(message.versions && message.versions.length)) + message.versions = []; + message.versions.push($root.ibc.core.connection.v1.Version.decode(reader, reader.uint32())); break; case 3: - message.next_connection_sequence = reader.uint64(); + message.state = reader.int32(); break; case 4: - message.params = $root.ibc.core.connection.v1.Params.decode(reader, reader.uint32()); + message.counterparty = $root.ibc.core.connection.v1.Counterparty.decode(reader, reader.uint32()); + break; + case 5: + message.delay_period = reader.uint64(); break; default: reader.skipType(tag & 7); @@ -63691,303 +70137,338 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a GenesisState message from the specified reader or buffer, length delimited. + * Decodes a ConnectionEnd message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.connection.v1.GenesisState + * @memberof ibc.core.connection.v1.ConnectionEnd * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.connection.v1.GenesisState} GenesisState + * @returns {ibc.core.connection.v1.ConnectionEnd} ConnectionEnd * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GenesisState.decodeDelimited = function decodeDelimited(reader) { + ConnectionEnd.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GenesisState message. + * Verifies a ConnectionEnd message. * @function verify - * @memberof ibc.core.connection.v1.GenesisState + * @memberof ibc.core.connection.v1.ConnectionEnd * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GenesisState.verify = function verify(message) { + ConnectionEnd.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.connections != null && message.hasOwnProperty("connections")) { - if (!Array.isArray(message.connections)) - return "connections: array expected"; - for (let i = 0; i < message.connections.length; ++i) { - let error = $root.ibc.core.connection.v1.IdentifiedConnection.verify(message.connections[i]); + if (message.client_id != null && message.hasOwnProperty("client_id")) + if (!$util.isString(message.client_id)) + return "client_id: string expected"; + if (message.versions != null && message.hasOwnProperty("versions")) { + if (!Array.isArray(message.versions)) + return "versions: array expected"; + for (let i = 0; i < message.versions.length; ++i) { + let error = $root.ibc.core.connection.v1.Version.verify(message.versions[i]); if (error) - return "connections." + error; + return "versions." + error; } } - if (message.client_connection_paths != null && message.hasOwnProperty("client_connection_paths")) { - if (!Array.isArray(message.client_connection_paths)) - return "client_connection_paths: array expected"; - for (let i = 0; i < message.client_connection_paths.length; ++i) { - let error = $root.ibc.core.connection.v1.ConnectionPaths.verify(message.client_connection_paths[i]); - if (error) - return "client_connection_paths." + error; + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; } - } - if (message.next_connection_sequence != null && message.hasOwnProperty("next_connection_sequence")) - if (!$util.isInteger(message.next_connection_sequence) && !(message.next_connection_sequence && $util.isInteger(message.next_connection_sequence.low) && $util.isInteger(message.next_connection_sequence.high))) - return "next_connection_sequence: integer|Long expected"; - if (message.params != null && message.hasOwnProperty("params")) { - let error = $root.ibc.core.connection.v1.Params.verify(message.params); + if (message.counterparty != null && message.hasOwnProperty("counterparty")) { + let error = $root.ibc.core.connection.v1.Counterparty.verify(message.counterparty); if (error) - return "params." + error; + return "counterparty." + error; } + if (message.delay_period != null && message.hasOwnProperty("delay_period")) + if (!$util.isInteger(message.delay_period) && !(message.delay_period && $util.isInteger(message.delay_period.low) && $util.isInteger(message.delay_period.high))) + return "delay_period: integer|Long expected"; return null; }; /** - * Creates a GenesisState message from a plain object. Also converts values to their respective internal types. + * Creates a ConnectionEnd message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.connection.v1.GenesisState + * @memberof ibc.core.connection.v1.ConnectionEnd * @static * @param {Object.} object Plain object - * @returns {ibc.core.connection.v1.GenesisState} GenesisState + * @returns {ibc.core.connection.v1.ConnectionEnd} ConnectionEnd */ - GenesisState.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.connection.v1.GenesisState) + ConnectionEnd.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.connection.v1.ConnectionEnd) return object; - let message = new $root.ibc.core.connection.v1.GenesisState(); - if (object.connections) { - if (!Array.isArray(object.connections)) - throw TypeError(".ibc.core.connection.v1.GenesisState.connections: array expected"); - message.connections = []; - for (let i = 0; i < object.connections.length; ++i) { - if (typeof object.connections[i] !== "object") - throw TypeError(".ibc.core.connection.v1.GenesisState.connections: object expected"); - message.connections[i] = $root.ibc.core.connection.v1.IdentifiedConnection.fromObject(object.connections[i]); + let message = new $root.ibc.core.connection.v1.ConnectionEnd(); + if (object.client_id != null) + message.client_id = String(object.client_id); + if (object.versions) { + if (!Array.isArray(object.versions)) + throw TypeError(".ibc.core.connection.v1.ConnectionEnd.versions: array expected"); + message.versions = []; + for (let i = 0; i < object.versions.length; ++i) { + if (typeof object.versions[i] !== "object") + throw TypeError(".ibc.core.connection.v1.ConnectionEnd.versions: object expected"); + message.versions[i] = $root.ibc.core.connection.v1.Version.fromObject(object.versions[i]); } } - if (object.client_connection_paths) { - if (!Array.isArray(object.client_connection_paths)) - throw TypeError(".ibc.core.connection.v1.GenesisState.client_connection_paths: array expected"); - message.client_connection_paths = []; - for (let i = 0; i < object.client_connection_paths.length; ++i) { - if (typeof object.client_connection_paths[i] !== "object") - throw TypeError(".ibc.core.connection.v1.GenesisState.client_connection_paths: object expected"); - message.client_connection_paths[i] = $root.ibc.core.connection.v1.ConnectionPaths.fromObject(object.client_connection_paths[i]); - } + switch (object.state) { + case "STATE_UNINITIALIZED_UNSPECIFIED": + case 0: + message.state = 0; + break; + case "STATE_INIT": + case 1: + message.state = 1; + break; + case "STATE_TRYOPEN": + case 2: + message.state = 2; + break; + case "STATE_OPEN": + case 3: + message.state = 3; + break; } - if (object.next_connection_sequence != null) - if ($util.Long) - (message.next_connection_sequence = $util.Long.fromValue(object.next_connection_sequence)).unsigned = true; - else if (typeof object.next_connection_sequence === "string") - message.next_connection_sequence = parseInt(object.next_connection_sequence, 10); - else if (typeof object.next_connection_sequence === "number") - message.next_connection_sequence = object.next_connection_sequence; - else if (typeof object.next_connection_sequence === "object") - message.next_connection_sequence = new $util.LongBits(object.next_connection_sequence.low >>> 0, object.next_connection_sequence.high >>> 0).toNumber(true); - if (object.params != null) { - if (typeof object.params !== "object") - throw TypeError(".ibc.core.connection.v1.GenesisState.params: object expected"); - message.params = $root.ibc.core.connection.v1.Params.fromObject(object.params); + if (object.counterparty != null) { + if (typeof object.counterparty !== "object") + throw TypeError(".ibc.core.connection.v1.ConnectionEnd.counterparty: object expected"); + message.counterparty = $root.ibc.core.connection.v1.Counterparty.fromObject(object.counterparty); } + if (object.delay_period != null) + if ($util.Long) + (message.delay_period = $util.Long.fromValue(object.delay_period)).unsigned = true; + else if (typeof object.delay_period === "string") + message.delay_period = parseInt(object.delay_period, 10); + else if (typeof object.delay_period === "number") + message.delay_period = object.delay_period; + else if (typeof object.delay_period === "object") + message.delay_period = new $util.LongBits(object.delay_period.low >>> 0, object.delay_period.high >>> 0).toNumber(true); return message; }; /** - * Creates a plain object from a GenesisState message. Also converts values to other types if specified. + * Creates a plain object from a ConnectionEnd message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.connection.v1.GenesisState + * @memberof ibc.core.connection.v1.ConnectionEnd * @static - * @param {ibc.core.connection.v1.GenesisState} message GenesisState + * @param {ibc.core.connection.v1.ConnectionEnd} message ConnectionEnd * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GenesisState.toObject = function toObject(message, options) { + ConnectionEnd.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) { - object.connections = []; - object.client_connection_paths = []; - } + if (options.arrays || options.defaults) + object.versions = []; if (options.defaults) { + object.client_id = ""; + object.state = options.enums === String ? "STATE_UNINITIALIZED_UNSPECIFIED" : 0; + object.counterparty = null; if ($util.Long) { let long = new $util.Long(0, 0, true); - object.next_connection_sequence = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + object.delay_period = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.next_connection_sequence = options.longs === String ? "0" : 0; - object.params = null; - } - if (message.connections && message.connections.length) { - object.connections = []; - for (let j = 0; j < message.connections.length; ++j) - object.connections[j] = $root.ibc.core.connection.v1.IdentifiedConnection.toObject(message.connections[j], options); + object.delay_period = options.longs === String ? "0" : 0; } - if (message.client_connection_paths && message.client_connection_paths.length) { - object.client_connection_paths = []; - for (let j = 0; j < message.client_connection_paths.length; ++j) - object.client_connection_paths[j] = $root.ibc.core.connection.v1.ConnectionPaths.toObject(message.client_connection_paths[j], options); + if (message.client_id != null && message.hasOwnProperty("client_id")) + object.client_id = message.client_id; + if (message.versions && message.versions.length) { + object.versions = []; + for (let j = 0; j < message.versions.length; ++j) + object.versions[j] = $root.ibc.core.connection.v1.Version.toObject(message.versions[j], options); } - if (message.next_connection_sequence != null && message.hasOwnProperty("next_connection_sequence")) - if (typeof message.next_connection_sequence === "number") - object.next_connection_sequence = options.longs === String ? String(message.next_connection_sequence) : message.next_connection_sequence; + if (message.state != null && message.hasOwnProperty("state")) + object.state = options.enums === String ? $root.ibc.core.connection.v1.State[message.state] : message.state; + if (message.counterparty != null && message.hasOwnProperty("counterparty")) + object.counterparty = $root.ibc.core.connection.v1.Counterparty.toObject(message.counterparty, options); + if (message.delay_period != null && message.hasOwnProperty("delay_period")) + if (typeof message.delay_period === "number") + object.delay_period = options.longs === String ? String(message.delay_period) : message.delay_period; else - object.next_connection_sequence = options.longs === String ? $util.Long.prototype.toString.call(message.next_connection_sequence) : options.longs === Number ? new $util.LongBits(message.next_connection_sequence.low >>> 0, message.next_connection_sequence.high >>> 0).toNumber(true) : message.next_connection_sequence; - if (message.params != null && message.hasOwnProperty("params")) - object.params = $root.ibc.core.connection.v1.Params.toObject(message.params, options); + object.delay_period = options.longs === String ? $util.Long.prototype.toString.call(message.delay_period) : options.longs === Number ? new $util.LongBits(message.delay_period.low >>> 0, message.delay_period.high >>> 0).toNumber(true) : message.delay_period; return object; }; /** - * Converts this GenesisState to JSON. + * Converts this ConnectionEnd to JSON. * @function toJSON - * @memberof ibc.core.connection.v1.GenesisState + * @memberof ibc.core.connection.v1.ConnectionEnd * @instance * @returns {Object.} JSON object */ - GenesisState.prototype.toJSON = function toJSON() { + ConnectionEnd.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GenesisState; + return ConnectionEnd; })(); - return v1; - })(); - - return connection; - })(); - - core.types = (function() { - - /** - * Namespace types. - * @memberof ibc.core - * @namespace - */ - const types = {}; + v1.IdentifiedConnection = (function() { - types.v1 = (function() { + /** + * Properties of an IdentifiedConnection. + * @memberof ibc.core.connection.v1 + * @interface IIdentifiedConnection + * @property {string|null} [id] IdentifiedConnection id + * @property {string|null} [client_id] IdentifiedConnection client_id + * @property {Array.|null} [versions] IdentifiedConnection versions + * @property {ibc.core.connection.v1.State|null} [state] IdentifiedConnection state + * @property {ibc.core.connection.v1.ICounterparty|null} [counterparty] IdentifiedConnection counterparty + * @property {Long|null} [delay_period] IdentifiedConnection delay_period + */ - /** - * Namespace v1. - * @memberof ibc.core.types - * @namespace - */ - const v1 = {}; + /** + * Constructs a new IdentifiedConnection. + * @memberof ibc.core.connection.v1 + * @classdesc Represents an IdentifiedConnection. + * @implements IIdentifiedConnection + * @constructor + * @param {ibc.core.connection.v1.IIdentifiedConnection=} [properties] Properties to set + */ + function IdentifiedConnection(properties) { + this.versions = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - v1.GenesisState = (function() { + /** + * IdentifiedConnection id. + * @member {string} id + * @memberof ibc.core.connection.v1.IdentifiedConnection + * @instance + */ + IdentifiedConnection.prototype.id = ""; /** - * Properties of a GenesisState. - * @memberof ibc.core.types.v1 - * @interface IGenesisState - * @property {ibc.core.client.v1.IGenesisState|null} [client_genesis] GenesisState client_genesis - * @property {ibc.core.connection.v1.IGenesisState|null} [connection_genesis] GenesisState connection_genesis - * @property {ibc.core.channel.v1.IGenesisState|null} [channel_genesis] GenesisState channel_genesis + * IdentifiedConnection client_id. + * @member {string} client_id + * @memberof ibc.core.connection.v1.IdentifiedConnection + * @instance */ + IdentifiedConnection.prototype.client_id = ""; /** - * Constructs a new GenesisState. - * @memberof ibc.core.types.v1 - * @classdesc Represents a GenesisState. - * @implements IGenesisState - * @constructor - * @param {ibc.core.types.v1.IGenesisState=} [properties] Properties to set + * IdentifiedConnection versions. + * @member {Array.} versions + * @memberof ibc.core.connection.v1.IdentifiedConnection + * @instance */ - function GenesisState(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + IdentifiedConnection.prototype.versions = $util.emptyArray; /** - * GenesisState client_genesis. - * @member {ibc.core.client.v1.IGenesisState|null|undefined} client_genesis - * @memberof ibc.core.types.v1.GenesisState + * IdentifiedConnection state. + * @member {ibc.core.connection.v1.State} state + * @memberof ibc.core.connection.v1.IdentifiedConnection * @instance */ - GenesisState.prototype.client_genesis = null; + IdentifiedConnection.prototype.state = 0; /** - * GenesisState connection_genesis. - * @member {ibc.core.connection.v1.IGenesisState|null|undefined} connection_genesis - * @memberof ibc.core.types.v1.GenesisState + * IdentifiedConnection counterparty. + * @member {ibc.core.connection.v1.ICounterparty|null|undefined} counterparty + * @memberof ibc.core.connection.v1.IdentifiedConnection * @instance */ - GenesisState.prototype.connection_genesis = null; + IdentifiedConnection.prototype.counterparty = null; /** - * GenesisState channel_genesis. - * @member {ibc.core.channel.v1.IGenesisState|null|undefined} channel_genesis - * @memberof ibc.core.types.v1.GenesisState + * IdentifiedConnection delay_period. + * @member {Long} delay_period + * @memberof ibc.core.connection.v1.IdentifiedConnection * @instance */ - GenesisState.prototype.channel_genesis = null; + IdentifiedConnection.prototype.delay_period = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** - * Encodes the specified GenesisState message. Does not implicitly {@link ibc.core.types.v1.GenesisState.verify|verify} messages. + * Encodes the specified IdentifiedConnection message. Does not implicitly {@link ibc.core.connection.v1.IdentifiedConnection.verify|verify} messages. * @function encode - * @memberof ibc.core.types.v1.GenesisState + * @memberof ibc.core.connection.v1.IdentifiedConnection * @static - * @param {ibc.core.types.v1.IGenesisState} message GenesisState message or plain object to encode + * @param {ibc.core.connection.v1.IIdentifiedConnection} message IdentifiedConnection message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GenesisState.encode = function encode(message, writer) { + IdentifiedConnection.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.client_genesis != null && Object.hasOwnProperty.call(message, "client_genesis")) - $root.ibc.core.client.v1.GenesisState.encode(message.client_genesis, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.connection_genesis != null && Object.hasOwnProperty.call(message, "connection_genesis")) - $root.ibc.core.connection.v1.GenesisState.encode(message.connection_genesis, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.channel_genesis != null && Object.hasOwnProperty.call(message, "channel_genesis")) - $root.ibc.core.channel.v1.GenesisState.encode(message.channel_genesis, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.id != null && Object.hasOwnProperty.call(message, "id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.id); + if (message.client_id != null && Object.hasOwnProperty.call(message, "client_id")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.client_id); + if (message.versions != null && message.versions.length) + for (let i = 0; i < message.versions.length; ++i) + $root.ibc.core.connection.v1.Version.encode(message.versions[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.state); + if (message.counterparty != null && Object.hasOwnProperty.call(message, "counterparty")) + $root.ibc.core.connection.v1.Counterparty.encode(message.counterparty, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.delay_period != null && Object.hasOwnProperty.call(message, "delay_period")) + writer.uint32(/* id 6, wireType 0 =*/48).uint64(message.delay_period); return writer; }; /** - * Encodes the specified GenesisState message, length delimited. Does not implicitly {@link ibc.core.types.v1.GenesisState.verify|verify} messages. + * Encodes the specified IdentifiedConnection message, length delimited. Does not implicitly {@link ibc.core.connection.v1.IdentifiedConnection.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.core.types.v1.GenesisState + * @memberof ibc.core.connection.v1.IdentifiedConnection * @static - * @param {ibc.core.types.v1.IGenesisState} message GenesisState message or plain object to encode + * @param {ibc.core.connection.v1.IIdentifiedConnection} message IdentifiedConnection message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GenesisState.encodeDelimited = function encodeDelimited(message, writer) { + IdentifiedConnection.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GenesisState message from the specified reader or buffer. + * Decodes an IdentifiedConnection message from the specified reader or buffer. * @function decode - * @memberof ibc.core.types.v1.GenesisState + * @memberof ibc.core.connection.v1.IdentifiedConnection * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.core.types.v1.GenesisState} GenesisState + * @returns {ibc.core.connection.v1.IdentifiedConnection} IdentifiedConnection * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GenesisState.decode = function decode(reader, length) { + IdentifiedConnection.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.types.v1.GenesisState(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.connection.v1.IdentifiedConnection(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.client_genesis = $root.ibc.core.client.v1.GenesisState.decode(reader, reader.uint32()); + message.id = reader.string(); break; case 2: - message.connection_genesis = $root.ibc.core.connection.v1.GenesisState.decode(reader, reader.uint32()); + message.client_id = reader.string(); break; case 3: - message.channel_genesis = $root.ibc.core.channel.v1.GenesisState.decode(reader, reader.uint32()); + if (!(message.versions && message.versions.length)) + message.versions = []; + message.versions.push($root.ibc.core.connection.v1.Version.decode(reader, reader.uint32())); + break; + case 4: + message.state = reader.int32(); + break; + case 5: + message.counterparty = $root.ibc.core.connection.v1.Counterparty.decode(reader, reader.uint32()); + break; + case 6: + message.delay_period = reader.uint64(); break; default: reader.skipType(tag & 7); @@ -63998,176 +70479,228 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a GenesisState message from the specified reader or buffer, length delimited. + * Decodes an IdentifiedConnection message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.core.types.v1.GenesisState + * @memberof ibc.core.connection.v1.IdentifiedConnection * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.core.types.v1.GenesisState} GenesisState + * @returns {ibc.core.connection.v1.IdentifiedConnection} IdentifiedConnection * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GenesisState.decodeDelimited = function decodeDelimited(reader) { + IdentifiedConnection.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GenesisState message. + * Verifies an IdentifiedConnection message. * @function verify - * @memberof ibc.core.types.v1.GenesisState + * @memberof ibc.core.connection.v1.IdentifiedConnection * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GenesisState.verify = function verify(message) { + IdentifiedConnection.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.client_genesis != null && message.hasOwnProperty("client_genesis")) { - let error = $root.ibc.core.client.v1.GenesisState.verify(message.client_genesis); - if (error) - return "client_genesis." + error; - } - if (message.connection_genesis != null && message.hasOwnProperty("connection_genesis")) { - let error = $root.ibc.core.connection.v1.GenesisState.verify(message.connection_genesis); - if (error) - return "connection_genesis." + error; + if (message.id != null && message.hasOwnProperty("id")) + if (!$util.isString(message.id)) + return "id: string expected"; + if (message.client_id != null && message.hasOwnProperty("client_id")) + if (!$util.isString(message.client_id)) + return "client_id: string expected"; + if (message.versions != null && message.hasOwnProperty("versions")) { + if (!Array.isArray(message.versions)) + return "versions: array expected"; + for (let i = 0; i < message.versions.length; ++i) { + let error = $root.ibc.core.connection.v1.Version.verify(message.versions[i]); + if (error) + return "versions." + error; + } } - if (message.channel_genesis != null && message.hasOwnProperty("channel_genesis")) { - let error = $root.ibc.core.channel.v1.GenesisState.verify(message.channel_genesis); + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + if (message.counterparty != null && message.hasOwnProperty("counterparty")) { + let error = $root.ibc.core.connection.v1.Counterparty.verify(message.counterparty); if (error) - return "channel_genesis." + error; + return "counterparty." + error; } + if (message.delay_period != null && message.hasOwnProperty("delay_period")) + if (!$util.isInteger(message.delay_period) && !(message.delay_period && $util.isInteger(message.delay_period.low) && $util.isInteger(message.delay_period.high))) + return "delay_period: integer|Long expected"; return null; }; /** - * Creates a GenesisState message from a plain object. Also converts values to their respective internal types. + * Creates an IdentifiedConnection message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.core.types.v1.GenesisState + * @memberof ibc.core.connection.v1.IdentifiedConnection * @static * @param {Object.} object Plain object - * @returns {ibc.core.types.v1.GenesisState} GenesisState + * @returns {ibc.core.connection.v1.IdentifiedConnection} IdentifiedConnection */ - GenesisState.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.core.types.v1.GenesisState) + IdentifiedConnection.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.connection.v1.IdentifiedConnection) return object; - let message = new $root.ibc.core.types.v1.GenesisState(); - if (object.client_genesis != null) { - if (typeof object.client_genesis !== "object") - throw TypeError(".ibc.core.types.v1.GenesisState.client_genesis: object expected"); - message.client_genesis = $root.ibc.core.client.v1.GenesisState.fromObject(object.client_genesis); + let message = new $root.ibc.core.connection.v1.IdentifiedConnection(); + if (object.id != null) + message.id = String(object.id); + if (object.client_id != null) + message.client_id = String(object.client_id); + if (object.versions) { + if (!Array.isArray(object.versions)) + throw TypeError(".ibc.core.connection.v1.IdentifiedConnection.versions: array expected"); + message.versions = []; + for (let i = 0; i < object.versions.length; ++i) { + if (typeof object.versions[i] !== "object") + throw TypeError(".ibc.core.connection.v1.IdentifiedConnection.versions: object expected"); + message.versions[i] = $root.ibc.core.connection.v1.Version.fromObject(object.versions[i]); + } } - if (object.connection_genesis != null) { - if (typeof object.connection_genesis !== "object") - throw TypeError(".ibc.core.types.v1.GenesisState.connection_genesis: object expected"); - message.connection_genesis = $root.ibc.core.connection.v1.GenesisState.fromObject(object.connection_genesis); + switch (object.state) { + case "STATE_UNINITIALIZED_UNSPECIFIED": + case 0: + message.state = 0; + break; + case "STATE_INIT": + case 1: + message.state = 1; + break; + case "STATE_TRYOPEN": + case 2: + message.state = 2; + break; + case "STATE_OPEN": + case 3: + message.state = 3; + break; } - if (object.channel_genesis != null) { - if (typeof object.channel_genesis !== "object") - throw TypeError(".ibc.core.types.v1.GenesisState.channel_genesis: object expected"); - message.channel_genesis = $root.ibc.core.channel.v1.GenesisState.fromObject(object.channel_genesis); + if (object.counterparty != null) { + if (typeof object.counterparty !== "object") + throw TypeError(".ibc.core.connection.v1.IdentifiedConnection.counterparty: object expected"); + message.counterparty = $root.ibc.core.connection.v1.Counterparty.fromObject(object.counterparty); } + if (object.delay_period != null) + if ($util.Long) + (message.delay_period = $util.Long.fromValue(object.delay_period)).unsigned = true; + else if (typeof object.delay_period === "string") + message.delay_period = parseInt(object.delay_period, 10); + else if (typeof object.delay_period === "number") + message.delay_period = object.delay_period; + else if (typeof object.delay_period === "object") + message.delay_period = new $util.LongBits(object.delay_period.low >>> 0, object.delay_period.high >>> 0).toNumber(true); return message; }; /** - * Creates a plain object from a GenesisState message. Also converts values to other types if specified. + * Creates a plain object from an IdentifiedConnection message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.core.types.v1.GenesisState + * @memberof ibc.core.connection.v1.IdentifiedConnection * @static - * @param {ibc.core.types.v1.GenesisState} message GenesisState + * @param {ibc.core.connection.v1.IdentifiedConnection} message IdentifiedConnection * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GenesisState.toObject = function toObject(message, options) { + IdentifiedConnection.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; + if (options.arrays || options.defaults) + object.versions = []; if (options.defaults) { - object.client_genesis = null; - object.connection_genesis = null; - object.channel_genesis = null; + object.id = ""; + object.client_id = ""; + object.state = options.enums === String ? "STATE_UNINITIALIZED_UNSPECIFIED" : 0; + object.counterparty = null; + if ($util.Long) { + let long = new $util.Long(0, 0, true); + object.delay_period = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.delay_period = options.longs === String ? "0" : 0; } - if (message.client_genesis != null && message.hasOwnProperty("client_genesis")) - object.client_genesis = $root.ibc.core.client.v1.GenesisState.toObject(message.client_genesis, options); - if (message.connection_genesis != null && message.hasOwnProperty("connection_genesis")) - object.connection_genesis = $root.ibc.core.connection.v1.GenesisState.toObject(message.connection_genesis, options); - if (message.channel_genesis != null && message.hasOwnProperty("channel_genesis")) - object.channel_genesis = $root.ibc.core.channel.v1.GenesisState.toObject(message.channel_genesis, options); + if (message.id != null && message.hasOwnProperty("id")) + object.id = message.id; + if (message.client_id != null && message.hasOwnProperty("client_id")) + object.client_id = message.client_id; + if (message.versions && message.versions.length) { + object.versions = []; + for (let j = 0; j < message.versions.length; ++j) + object.versions[j] = $root.ibc.core.connection.v1.Version.toObject(message.versions[j], options); + } + if (message.state != null && message.hasOwnProperty("state")) + object.state = options.enums === String ? $root.ibc.core.connection.v1.State[message.state] : message.state; + if (message.counterparty != null && message.hasOwnProperty("counterparty")) + object.counterparty = $root.ibc.core.connection.v1.Counterparty.toObject(message.counterparty, options); + if (message.delay_period != null && message.hasOwnProperty("delay_period")) + if (typeof message.delay_period === "number") + object.delay_period = options.longs === String ? String(message.delay_period) : message.delay_period; + else + object.delay_period = options.longs === String ? $util.Long.prototype.toString.call(message.delay_period) : options.longs === Number ? new $util.LongBits(message.delay_period.low >>> 0, message.delay_period.high >>> 0).toNumber(true) : message.delay_period; return object; }; /** - * Converts this GenesisState to JSON. + * Converts this IdentifiedConnection to JSON. * @function toJSON - * @memberof ibc.core.types.v1.GenesisState + * @memberof ibc.core.connection.v1.IdentifiedConnection * @instance * @returns {Object.} JSON object */ - GenesisState.prototype.toJSON = function toJSON() { + IdentifiedConnection.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GenesisState; + return IdentifiedConnection; })(); - return v1; - })(); - - return types; - })(); - - return core; - })(); - - ibc.lightclients = (function() { - - /** - * Namespace lightclients. - * @memberof ibc - * @namespace - */ - const lightclients = {}; - - lightclients.localhost = (function() { - - /** - * Namespace localhost. - * @memberof ibc.lightclients - * @namespace - */ - const localhost = {}; - - localhost.v1 = (function() { - /** - * Namespace v1. - * @memberof ibc.lightclients.localhost - * @namespace + * State enum. + * @name ibc.core.connection.v1.State + * @enum {number} + * @property {number} STATE_UNINITIALIZED_UNSPECIFIED=0 STATE_UNINITIALIZED_UNSPECIFIED value + * @property {number} STATE_INIT=1 STATE_INIT value + * @property {number} STATE_TRYOPEN=2 STATE_TRYOPEN value + * @property {number} STATE_OPEN=3 STATE_OPEN value */ - const v1 = {}; + v1.State = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "STATE_UNINITIALIZED_UNSPECIFIED"] = 0; + values[valuesById[1] = "STATE_INIT"] = 1; + values[valuesById[2] = "STATE_TRYOPEN"] = 2; + values[valuesById[3] = "STATE_OPEN"] = 3; + return values; + })(); - v1.ClientState = (function() { + v1.Counterparty = (function() { /** - * Properties of a ClientState. - * @memberof ibc.lightclients.localhost.v1 - * @interface IClientState - * @property {string|null} [chain_id] ClientState chain_id - * @property {ibc.core.client.v1.IHeight|null} [height] ClientState height + * Properties of a Counterparty. + * @memberof ibc.core.connection.v1 + * @interface ICounterparty + * @property {string|null} [client_id] Counterparty client_id + * @property {string|null} [connection_id] Counterparty connection_id + * @property {ibc.core.commitment.v1.IMerklePrefix|null} [prefix] Counterparty prefix */ /** - * Constructs a new ClientState. - * @memberof ibc.lightclients.localhost.v1 - * @classdesc Represents a ClientState. - * @implements IClientState + * Constructs a new Counterparty. + * @memberof ibc.core.connection.v1 + * @classdesc Represents a Counterparty. + * @implements ICounterparty * @constructor - * @param {ibc.lightclients.localhost.v1.IClientState=} [properties] Properties to set + * @param {ibc.core.connection.v1.ICounterparty=} [properties] Properties to set */ - function ClientState(properties) { + function Counterparty(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -64175,76 +70708,89 @@ export const ibc = $root.ibc = (() => { } /** - * ClientState chain_id. - * @member {string} chain_id - * @memberof ibc.lightclients.localhost.v1.ClientState + * Counterparty client_id. + * @member {string} client_id + * @memberof ibc.core.connection.v1.Counterparty * @instance */ - ClientState.prototype.chain_id = ""; + Counterparty.prototype.client_id = ""; /** - * ClientState height. - * @member {ibc.core.client.v1.IHeight|null|undefined} height - * @memberof ibc.lightclients.localhost.v1.ClientState + * Counterparty connection_id. + * @member {string} connection_id + * @memberof ibc.core.connection.v1.Counterparty + * @instance + */ + Counterparty.prototype.connection_id = ""; + + /** + * Counterparty prefix. + * @member {ibc.core.commitment.v1.IMerklePrefix|null|undefined} prefix + * @memberof ibc.core.connection.v1.Counterparty * @instance */ - ClientState.prototype.height = null; + Counterparty.prototype.prefix = null; /** - * Encodes the specified ClientState message. Does not implicitly {@link ibc.lightclients.localhost.v1.ClientState.verify|verify} messages. + * Encodes the specified Counterparty message. Does not implicitly {@link ibc.core.connection.v1.Counterparty.verify|verify} messages. * @function encode - * @memberof ibc.lightclients.localhost.v1.ClientState + * @memberof ibc.core.connection.v1.Counterparty * @static - * @param {ibc.lightclients.localhost.v1.IClientState} message ClientState message or plain object to encode + * @param {ibc.core.connection.v1.ICounterparty} message Counterparty message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ClientState.encode = function encode(message, writer) { + Counterparty.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.chain_id != null && Object.hasOwnProperty.call(message, "chain_id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.chain_id); - if (message.height != null && Object.hasOwnProperty.call(message, "height")) - $root.ibc.core.client.v1.Height.encode(message.height, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.client_id != null && Object.hasOwnProperty.call(message, "client_id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.client_id); + if (message.connection_id != null && Object.hasOwnProperty.call(message, "connection_id")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.connection_id); + if (message.prefix != null && Object.hasOwnProperty.call(message, "prefix")) + $root.ibc.core.commitment.v1.MerklePrefix.encode(message.prefix, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified ClientState message, length delimited. Does not implicitly {@link ibc.lightclients.localhost.v1.ClientState.verify|verify} messages. + * Encodes the specified Counterparty message, length delimited. Does not implicitly {@link ibc.core.connection.v1.Counterparty.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.lightclients.localhost.v1.ClientState + * @memberof ibc.core.connection.v1.Counterparty * @static - * @param {ibc.lightclients.localhost.v1.IClientState} message ClientState message or plain object to encode + * @param {ibc.core.connection.v1.ICounterparty} message Counterparty message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ClientState.encodeDelimited = function encodeDelimited(message, writer) { + Counterparty.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ClientState message from the specified reader or buffer. + * Decodes a Counterparty message from the specified reader or buffer. * @function decode - * @memberof ibc.lightclients.localhost.v1.ClientState + * @memberof ibc.core.connection.v1.Counterparty * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.lightclients.localhost.v1.ClientState} ClientState + * @returns {ibc.core.connection.v1.Counterparty} Counterparty * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ClientState.decode = function decode(reader, length) { + Counterparty.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.localhost.v1.ClientState(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.connection.v1.Counterparty(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.chain_id = reader.string(); + message.client_id = reader.string(); break; case 2: - message.height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); + message.connection_id = reader.string(); + break; + case 3: + message.prefix = $root.ibc.core.commitment.v1.MerklePrefix.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -64255,148 +70801,130 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a ClientState message from the specified reader or buffer, length delimited. + * Decodes a Counterparty message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.lightclients.localhost.v1.ClientState + * @memberof ibc.core.connection.v1.Counterparty * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.lightclients.localhost.v1.ClientState} ClientState + * @returns {ibc.core.connection.v1.Counterparty} Counterparty * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ClientState.decodeDelimited = function decodeDelimited(reader) { + Counterparty.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ClientState message. + * Verifies a Counterparty message. * @function verify - * @memberof ibc.lightclients.localhost.v1.ClientState + * @memberof ibc.core.connection.v1.Counterparty * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ClientState.verify = function verify(message) { + Counterparty.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.chain_id != null && message.hasOwnProperty("chain_id")) - if (!$util.isString(message.chain_id)) - return "chain_id: string expected"; - if (message.height != null && message.hasOwnProperty("height")) { - let error = $root.ibc.core.client.v1.Height.verify(message.height); + if (message.client_id != null && message.hasOwnProperty("client_id")) + if (!$util.isString(message.client_id)) + return "client_id: string expected"; + if (message.connection_id != null && message.hasOwnProperty("connection_id")) + if (!$util.isString(message.connection_id)) + return "connection_id: string expected"; + if (message.prefix != null && message.hasOwnProperty("prefix")) { + let error = $root.ibc.core.commitment.v1.MerklePrefix.verify(message.prefix); if (error) - return "height." + error; + return "prefix." + error; } return null; }; /** - * Creates a ClientState message from a plain object. Also converts values to their respective internal types. + * Creates a Counterparty message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.lightclients.localhost.v1.ClientState + * @memberof ibc.core.connection.v1.Counterparty * @static * @param {Object.} object Plain object - * @returns {ibc.lightclients.localhost.v1.ClientState} ClientState + * @returns {ibc.core.connection.v1.Counterparty} Counterparty */ - ClientState.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.lightclients.localhost.v1.ClientState) + Counterparty.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.connection.v1.Counterparty) return object; - let message = new $root.ibc.lightclients.localhost.v1.ClientState(); - if (object.chain_id != null) - message.chain_id = String(object.chain_id); - if (object.height != null) { - if (typeof object.height !== "object") - throw TypeError(".ibc.lightclients.localhost.v1.ClientState.height: object expected"); - message.height = $root.ibc.core.client.v1.Height.fromObject(object.height); + let message = new $root.ibc.core.connection.v1.Counterparty(); + if (object.client_id != null) + message.client_id = String(object.client_id); + if (object.connection_id != null) + message.connection_id = String(object.connection_id); + if (object.prefix != null) { + if (typeof object.prefix !== "object") + throw TypeError(".ibc.core.connection.v1.Counterparty.prefix: object expected"); + message.prefix = $root.ibc.core.commitment.v1.MerklePrefix.fromObject(object.prefix); } return message; }; /** - * Creates a plain object from a ClientState message. Also converts values to other types if specified. + * Creates a plain object from a Counterparty message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.lightclients.localhost.v1.ClientState + * @memberof ibc.core.connection.v1.Counterparty * @static - * @param {ibc.lightclients.localhost.v1.ClientState} message ClientState + * @param {ibc.core.connection.v1.Counterparty} message Counterparty * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ClientState.toObject = function toObject(message, options) { + Counterparty.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - object.chain_id = ""; - object.height = null; + object.client_id = ""; + object.connection_id = ""; + object.prefix = null; } - if (message.chain_id != null && message.hasOwnProperty("chain_id")) - object.chain_id = message.chain_id; - if (message.height != null && message.hasOwnProperty("height")) - object.height = $root.ibc.core.client.v1.Height.toObject(message.height, options); + if (message.client_id != null && message.hasOwnProperty("client_id")) + object.client_id = message.client_id; + if (message.connection_id != null && message.hasOwnProperty("connection_id")) + object.connection_id = message.connection_id; + if (message.prefix != null && message.hasOwnProperty("prefix")) + object.prefix = $root.ibc.core.commitment.v1.MerklePrefix.toObject(message.prefix, options); return object; }; /** - * Converts this ClientState to JSON. + * Converts this Counterparty to JSON. * @function toJSON - * @memberof ibc.lightclients.localhost.v1.ClientState + * @memberof ibc.core.connection.v1.Counterparty * @instance * @returns {Object.} JSON object */ - ClientState.prototype.toJSON = function toJSON() { + Counterparty.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ClientState; + return Counterparty; })(); - return v1; - })(); - - return localhost; - })(); - - lightclients.solomachine = (function() { - - /** - * Namespace solomachine. - * @memberof ibc.lightclients - * @namespace - */ - const solomachine = {}; - - solomachine.v1 = (function() { - - /** - * Namespace v1. - * @memberof ibc.lightclients.solomachine - * @namespace - */ - const v1 = {}; - - v1.ClientState = (function() { + v1.ClientPaths = (function() { /** - * Properties of a ClientState. - * @memberof ibc.lightclients.solomachine.v1 - * @interface IClientState - * @property {Long|null} [sequence] ClientState sequence - * @property {Long|null} [frozen_sequence] ClientState frozen_sequence - * @property {ibc.lightclients.solomachine.v1.IConsensusState|null} [consensus_state] ClientState consensus_state - * @property {boolean|null} [allow_update_after_proposal] ClientState allow_update_after_proposal + * Properties of a ClientPaths. + * @memberof ibc.core.connection.v1 + * @interface IClientPaths + * @property {Array.|null} [paths] ClientPaths paths */ /** - * Constructs a new ClientState. - * @memberof ibc.lightclients.solomachine.v1 - * @classdesc Represents a ClientState. - * @implements IClientState + * Constructs a new ClientPaths. + * @memberof ibc.core.connection.v1 + * @classdesc Represents a ClientPaths. + * @implements IClientPaths * @constructor - * @param {ibc.lightclients.solomachine.v1.IClientState=} [properties] Properties to set + * @param {ibc.core.connection.v1.IClientPaths=} [properties] Properties to set */ - function ClientState(properties) { + function ClientPaths(properties) { + this.paths = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -64404,102 +70932,66 @@ export const ibc = $root.ibc = (() => { } /** - * ClientState sequence. - * @member {Long} sequence - * @memberof ibc.lightclients.solomachine.v1.ClientState - * @instance - */ - ClientState.prototype.sequence = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * ClientState frozen_sequence. - * @member {Long} frozen_sequence - * @memberof ibc.lightclients.solomachine.v1.ClientState - * @instance - */ - ClientState.prototype.frozen_sequence = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * ClientState consensus_state. - * @member {ibc.lightclients.solomachine.v1.IConsensusState|null|undefined} consensus_state - * @memberof ibc.lightclients.solomachine.v1.ClientState - * @instance - */ - ClientState.prototype.consensus_state = null; - - /** - * ClientState allow_update_after_proposal. - * @member {boolean} allow_update_after_proposal - * @memberof ibc.lightclients.solomachine.v1.ClientState + * ClientPaths paths. + * @member {Array.} paths + * @memberof ibc.core.connection.v1.ClientPaths * @instance */ - ClientState.prototype.allow_update_after_proposal = false; + ClientPaths.prototype.paths = $util.emptyArray; /** - * Encodes the specified ClientState message. Does not implicitly {@link ibc.lightclients.solomachine.v1.ClientState.verify|verify} messages. + * Encodes the specified ClientPaths message. Does not implicitly {@link ibc.core.connection.v1.ClientPaths.verify|verify} messages. * @function encode - * @memberof ibc.lightclients.solomachine.v1.ClientState + * @memberof ibc.core.connection.v1.ClientPaths * @static - * @param {ibc.lightclients.solomachine.v1.IClientState} message ClientState message or plain object to encode + * @param {ibc.core.connection.v1.IClientPaths} message ClientPaths message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ClientState.encode = function encode(message, writer) { + ClientPaths.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.sequence != null && Object.hasOwnProperty.call(message, "sequence")) - writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.sequence); - if (message.frozen_sequence != null && Object.hasOwnProperty.call(message, "frozen_sequence")) - writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.frozen_sequence); - if (message.consensus_state != null && Object.hasOwnProperty.call(message, "consensus_state")) - $root.ibc.lightclients.solomachine.v1.ConsensusState.encode(message.consensus_state, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.allow_update_after_proposal != null && Object.hasOwnProperty.call(message, "allow_update_after_proposal")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.allow_update_after_proposal); + if (message.paths != null && message.paths.length) + for (let i = 0; i < message.paths.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.paths[i]); return writer; }; /** - * Encodes the specified ClientState message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v1.ClientState.verify|verify} messages. + * Encodes the specified ClientPaths message, length delimited. Does not implicitly {@link ibc.core.connection.v1.ClientPaths.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.lightclients.solomachine.v1.ClientState + * @memberof ibc.core.connection.v1.ClientPaths * @static - * @param {ibc.lightclients.solomachine.v1.IClientState} message ClientState message or plain object to encode + * @param {ibc.core.connection.v1.IClientPaths} message ClientPaths message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ClientState.encodeDelimited = function encodeDelimited(message, writer) { + ClientPaths.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ClientState message from the specified reader or buffer. + * Decodes a ClientPaths message from the specified reader or buffer. * @function decode - * @memberof ibc.lightclients.solomachine.v1.ClientState + * @memberof ibc.core.connection.v1.ClientPaths * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.lightclients.solomachine.v1.ClientState} ClientState + * @returns {ibc.core.connection.v1.ClientPaths} ClientPaths * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ClientState.decode = function decode(reader, length) { + ClientPaths.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.solomachine.v1.ClientState(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.connection.v1.ClientPaths(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.sequence = reader.uint64(); - break; - case 2: - message.frozen_sequence = reader.uint64(); - break; - case 3: - message.consensus_state = $root.ibc.lightclients.solomachine.v1.ConsensusState.decode(reader, reader.uint32()); - break; - case 4: - message.allow_update_after_proposal = reader.bool(); + if (!(message.paths && message.paths.length)) + message.paths = []; + message.paths.push(reader.string()); break; default: reader.skipType(tag & 7); @@ -64510,167 +71002,121 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a ClientState message from the specified reader or buffer, length delimited. + * Decodes a ClientPaths message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.lightclients.solomachine.v1.ClientState + * @memberof ibc.core.connection.v1.ClientPaths * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.lightclients.solomachine.v1.ClientState} ClientState + * @returns {ibc.core.connection.v1.ClientPaths} ClientPaths * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ClientState.decodeDelimited = function decodeDelimited(reader) { + ClientPaths.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ClientState message. + * Verifies a ClientPaths message. * @function verify - * @memberof ibc.lightclients.solomachine.v1.ClientState + * @memberof ibc.core.connection.v1.ClientPaths * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ClientState.verify = function verify(message) { + ClientPaths.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.sequence != null && message.hasOwnProperty("sequence")) - if (!$util.isInteger(message.sequence) && !(message.sequence && $util.isInteger(message.sequence.low) && $util.isInteger(message.sequence.high))) - return "sequence: integer|Long expected"; - if (message.frozen_sequence != null && message.hasOwnProperty("frozen_sequence")) - if (!$util.isInteger(message.frozen_sequence) && !(message.frozen_sequence && $util.isInteger(message.frozen_sequence.low) && $util.isInteger(message.frozen_sequence.high))) - return "frozen_sequence: integer|Long expected"; - if (message.consensus_state != null && message.hasOwnProperty("consensus_state")) { - let error = $root.ibc.lightclients.solomachine.v1.ConsensusState.verify(message.consensus_state); - if (error) - return "consensus_state." + error; + if (message.paths != null && message.hasOwnProperty("paths")) { + if (!Array.isArray(message.paths)) + return "paths: array expected"; + for (let i = 0; i < message.paths.length; ++i) + if (!$util.isString(message.paths[i])) + return "paths: string[] expected"; } - if (message.allow_update_after_proposal != null && message.hasOwnProperty("allow_update_after_proposal")) - if (typeof message.allow_update_after_proposal !== "boolean") - return "allow_update_after_proposal: boolean expected"; return null; }; /** - * Creates a ClientState message from a plain object. Also converts values to their respective internal types. + * Creates a ClientPaths message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.lightclients.solomachine.v1.ClientState + * @memberof ibc.core.connection.v1.ClientPaths * @static * @param {Object.} object Plain object - * @returns {ibc.lightclients.solomachine.v1.ClientState} ClientState + * @returns {ibc.core.connection.v1.ClientPaths} ClientPaths */ - ClientState.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.lightclients.solomachine.v1.ClientState) + ClientPaths.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.connection.v1.ClientPaths) return object; - let message = new $root.ibc.lightclients.solomachine.v1.ClientState(); - if (object.sequence != null) - if ($util.Long) - (message.sequence = $util.Long.fromValue(object.sequence)).unsigned = true; - else if (typeof object.sequence === "string") - message.sequence = parseInt(object.sequence, 10); - else if (typeof object.sequence === "number") - message.sequence = object.sequence; - else if (typeof object.sequence === "object") - message.sequence = new $util.LongBits(object.sequence.low >>> 0, object.sequence.high >>> 0).toNumber(true); - if (object.frozen_sequence != null) - if ($util.Long) - (message.frozen_sequence = $util.Long.fromValue(object.frozen_sequence)).unsigned = true; - else if (typeof object.frozen_sequence === "string") - message.frozen_sequence = parseInt(object.frozen_sequence, 10); - else if (typeof object.frozen_sequence === "number") - message.frozen_sequence = object.frozen_sequence; - else if (typeof object.frozen_sequence === "object") - message.frozen_sequence = new $util.LongBits(object.frozen_sequence.low >>> 0, object.frozen_sequence.high >>> 0).toNumber(true); - if (object.consensus_state != null) { - if (typeof object.consensus_state !== "object") - throw TypeError(".ibc.lightclients.solomachine.v1.ClientState.consensus_state: object expected"); - message.consensus_state = $root.ibc.lightclients.solomachine.v1.ConsensusState.fromObject(object.consensus_state); + let message = new $root.ibc.core.connection.v1.ClientPaths(); + if (object.paths) { + if (!Array.isArray(object.paths)) + throw TypeError(".ibc.core.connection.v1.ClientPaths.paths: array expected"); + message.paths = []; + for (let i = 0; i < object.paths.length; ++i) + message.paths[i] = String(object.paths[i]); } - if (object.allow_update_after_proposal != null) - message.allow_update_after_proposal = Boolean(object.allow_update_after_proposal); return message; }; /** - * Creates a plain object from a ClientState message. Also converts values to other types if specified. + * Creates a plain object from a ClientPaths message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.lightclients.solomachine.v1.ClientState + * @memberof ibc.core.connection.v1.ClientPaths * @static - * @param {ibc.lightclients.solomachine.v1.ClientState} message ClientState + * @param {ibc.core.connection.v1.ClientPaths} message ClientPaths * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ClientState.toObject = function toObject(message, options) { + ClientPaths.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) { - if ($util.Long) { - let long = new $util.Long(0, 0, true); - object.sequence = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.sequence = options.longs === String ? "0" : 0; - if ($util.Long) { - let long = new $util.Long(0, 0, true); - object.frozen_sequence = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.frozen_sequence = options.longs === String ? "0" : 0; - object.consensus_state = null; - object.allow_update_after_proposal = false; + if (options.arrays || options.defaults) + object.paths = []; + if (message.paths && message.paths.length) { + object.paths = []; + for (let j = 0; j < message.paths.length; ++j) + object.paths[j] = message.paths[j]; } - if (message.sequence != null && message.hasOwnProperty("sequence")) - if (typeof message.sequence === "number") - object.sequence = options.longs === String ? String(message.sequence) : message.sequence; - else - object.sequence = options.longs === String ? $util.Long.prototype.toString.call(message.sequence) : options.longs === Number ? new $util.LongBits(message.sequence.low >>> 0, message.sequence.high >>> 0).toNumber(true) : message.sequence; - if (message.frozen_sequence != null && message.hasOwnProperty("frozen_sequence")) - if (typeof message.frozen_sequence === "number") - object.frozen_sequence = options.longs === String ? String(message.frozen_sequence) : message.frozen_sequence; - else - object.frozen_sequence = options.longs === String ? $util.Long.prototype.toString.call(message.frozen_sequence) : options.longs === Number ? new $util.LongBits(message.frozen_sequence.low >>> 0, message.frozen_sequence.high >>> 0).toNumber(true) : message.frozen_sequence; - if (message.consensus_state != null && message.hasOwnProperty("consensus_state")) - object.consensus_state = $root.ibc.lightclients.solomachine.v1.ConsensusState.toObject(message.consensus_state, options); - if (message.allow_update_after_proposal != null && message.hasOwnProperty("allow_update_after_proposal")) - object.allow_update_after_proposal = message.allow_update_after_proposal; return object; }; /** - * Converts this ClientState to JSON. + * Converts this ClientPaths to JSON. * @function toJSON - * @memberof ibc.lightclients.solomachine.v1.ClientState + * @memberof ibc.core.connection.v1.ClientPaths * @instance * @returns {Object.} JSON object */ - ClientState.prototype.toJSON = function toJSON() { + ClientPaths.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ClientState; + return ClientPaths; })(); - v1.ConsensusState = (function() { + v1.ConnectionPaths = (function() { /** - * Properties of a ConsensusState. - * @memberof ibc.lightclients.solomachine.v1 - * @interface IConsensusState - * @property {google.protobuf.IAny|null} [public_key] ConsensusState public_key - * @property {string|null} [diversifier] ConsensusState diversifier - * @property {Long|null} [timestamp] ConsensusState timestamp + * Properties of a ConnectionPaths. + * @memberof ibc.core.connection.v1 + * @interface IConnectionPaths + * @property {string|null} [client_id] ConnectionPaths client_id + * @property {Array.|null} [paths] ConnectionPaths paths */ /** - * Constructs a new ConsensusState. - * @memberof ibc.lightclients.solomachine.v1 - * @classdesc Represents a ConsensusState. - * @implements IConsensusState + * Constructs a new ConnectionPaths. + * @memberof ibc.core.connection.v1 + * @classdesc Represents a ConnectionPaths. + * @implements IConnectionPaths * @constructor - * @param {ibc.lightclients.solomachine.v1.IConsensusState=} [properties] Properties to set + * @param {ibc.core.connection.v1.IConnectionPaths=} [properties] Properties to set */ - function ConsensusState(properties) { + function ConnectionPaths(properties) { + this.paths = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -64678,89 +71124,79 @@ export const ibc = $root.ibc = (() => { } /** - * ConsensusState public_key. - * @member {google.protobuf.IAny|null|undefined} public_key - * @memberof ibc.lightclients.solomachine.v1.ConsensusState - * @instance - */ - ConsensusState.prototype.public_key = null; - - /** - * ConsensusState diversifier. - * @member {string} diversifier - * @memberof ibc.lightclients.solomachine.v1.ConsensusState + * ConnectionPaths client_id. + * @member {string} client_id + * @memberof ibc.core.connection.v1.ConnectionPaths * @instance */ - ConsensusState.prototype.diversifier = ""; + ConnectionPaths.prototype.client_id = ""; /** - * ConsensusState timestamp. - * @member {Long} timestamp - * @memberof ibc.lightclients.solomachine.v1.ConsensusState + * ConnectionPaths paths. + * @member {Array.} paths + * @memberof ibc.core.connection.v1.ConnectionPaths * @instance */ - ConsensusState.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + ConnectionPaths.prototype.paths = $util.emptyArray; /** - * Encodes the specified ConsensusState message. Does not implicitly {@link ibc.lightclients.solomachine.v1.ConsensusState.verify|verify} messages. + * Encodes the specified ConnectionPaths message. Does not implicitly {@link ibc.core.connection.v1.ConnectionPaths.verify|verify} messages. * @function encode - * @memberof ibc.lightclients.solomachine.v1.ConsensusState + * @memberof ibc.core.connection.v1.ConnectionPaths * @static - * @param {ibc.lightclients.solomachine.v1.IConsensusState} message ConsensusState message or plain object to encode + * @param {ibc.core.connection.v1.IConnectionPaths} message ConnectionPaths message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ConsensusState.encode = function encode(message, writer) { + ConnectionPaths.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.public_key != null && Object.hasOwnProperty.call(message, "public_key")) - $root.google.protobuf.Any.encode(message.public_key, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.diversifier != null && Object.hasOwnProperty.call(message, "diversifier")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.diversifier); - if (message.timestamp != null && Object.hasOwnProperty.call(message, "timestamp")) - writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.timestamp); + if (message.client_id != null && Object.hasOwnProperty.call(message, "client_id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.client_id); + if (message.paths != null && message.paths.length) + for (let i = 0; i < message.paths.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.paths[i]); return writer; }; /** - * Encodes the specified ConsensusState message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v1.ConsensusState.verify|verify} messages. + * Encodes the specified ConnectionPaths message, length delimited. Does not implicitly {@link ibc.core.connection.v1.ConnectionPaths.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.lightclients.solomachine.v1.ConsensusState + * @memberof ibc.core.connection.v1.ConnectionPaths * @static - * @param {ibc.lightclients.solomachine.v1.IConsensusState} message ConsensusState message or plain object to encode + * @param {ibc.core.connection.v1.IConnectionPaths} message ConnectionPaths message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ConsensusState.encodeDelimited = function encodeDelimited(message, writer) { + ConnectionPaths.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ConsensusState message from the specified reader or buffer. + * Decodes a ConnectionPaths message from the specified reader or buffer. * @function decode - * @memberof ibc.lightclients.solomachine.v1.ConsensusState + * @memberof ibc.core.connection.v1.ConnectionPaths * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.lightclients.solomachine.v1.ConsensusState} ConsensusState + * @returns {ibc.core.connection.v1.ConnectionPaths} ConnectionPaths * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ConsensusState.decode = function decode(reader, length) { + ConnectionPaths.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.solomachine.v1.ConsensusState(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.connection.v1.ConnectionPaths(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.public_key = $root.google.protobuf.Any.decode(reader, reader.uint32()); + message.client_id = reader.string(); break; case 2: - message.diversifier = reader.string(); - break; - case 3: - message.timestamp = reader.uint64(); + if (!(message.paths && message.paths.length)) + message.paths = []; + message.paths.push(reader.string()); break; default: reader.skipType(tag & 7); @@ -64771,147 +71207,130 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a ConsensusState message from the specified reader or buffer, length delimited. + * Decodes a ConnectionPaths message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.lightclients.solomachine.v1.ConsensusState + * @memberof ibc.core.connection.v1.ConnectionPaths * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.lightclients.solomachine.v1.ConsensusState} ConsensusState + * @returns {ibc.core.connection.v1.ConnectionPaths} ConnectionPaths * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ConsensusState.decodeDelimited = function decodeDelimited(reader) { + ConnectionPaths.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ConsensusState message. + * Verifies a ConnectionPaths message. * @function verify - * @memberof ibc.lightclients.solomachine.v1.ConsensusState + * @memberof ibc.core.connection.v1.ConnectionPaths * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ConsensusState.verify = function verify(message) { + ConnectionPaths.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.public_key != null && message.hasOwnProperty("public_key")) { - let error = $root.google.protobuf.Any.verify(message.public_key); - if (error) - return "public_key." + error; + if (message.client_id != null && message.hasOwnProperty("client_id")) + if (!$util.isString(message.client_id)) + return "client_id: string expected"; + if (message.paths != null && message.hasOwnProperty("paths")) { + if (!Array.isArray(message.paths)) + return "paths: array expected"; + for (let i = 0; i < message.paths.length; ++i) + if (!$util.isString(message.paths[i])) + return "paths: string[] expected"; } - if (message.diversifier != null && message.hasOwnProperty("diversifier")) - if (!$util.isString(message.diversifier)) - return "diversifier: string expected"; - if (message.timestamp != null && message.hasOwnProperty("timestamp")) - if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high))) - return "timestamp: integer|Long expected"; return null; }; /** - * Creates a ConsensusState message from a plain object. Also converts values to their respective internal types. + * Creates a ConnectionPaths message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.lightclients.solomachine.v1.ConsensusState + * @memberof ibc.core.connection.v1.ConnectionPaths * @static * @param {Object.} object Plain object - * @returns {ibc.lightclients.solomachine.v1.ConsensusState} ConsensusState + * @returns {ibc.core.connection.v1.ConnectionPaths} ConnectionPaths */ - ConsensusState.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.lightclients.solomachine.v1.ConsensusState) + ConnectionPaths.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.connection.v1.ConnectionPaths) return object; - let message = new $root.ibc.lightclients.solomachine.v1.ConsensusState(); - if (object.public_key != null) { - if (typeof object.public_key !== "object") - throw TypeError(".ibc.lightclients.solomachine.v1.ConsensusState.public_key: object expected"); - message.public_key = $root.google.protobuf.Any.fromObject(object.public_key); + let message = new $root.ibc.core.connection.v1.ConnectionPaths(); + if (object.client_id != null) + message.client_id = String(object.client_id); + if (object.paths) { + if (!Array.isArray(object.paths)) + throw TypeError(".ibc.core.connection.v1.ConnectionPaths.paths: array expected"); + message.paths = []; + for (let i = 0; i < object.paths.length; ++i) + message.paths[i] = String(object.paths[i]); } - if (object.diversifier != null) - message.diversifier = String(object.diversifier); - if (object.timestamp != null) - if ($util.Long) - (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true; - else if (typeof object.timestamp === "string") - message.timestamp = parseInt(object.timestamp, 10); - else if (typeof object.timestamp === "number") - message.timestamp = object.timestamp; - else if (typeof object.timestamp === "object") - message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true); return message; }; /** - * Creates a plain object from a ConsensusState message. Also converts values to other types if specified. + * Creates a plain object from a ConnectionPaths message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.lightclients.solomachine.v1.ConsensusState + * @memberof ibc.core.connection.v1.ConnectionPaths * @static - * @param {ibc.lightclients.solomachine.v1.ConsensusState} message ConsensusState + * @param {ibc.core.connection.v1.ConnectionPaths} message ConnectionPaths * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ConsensusState.toObject = function toObject(message, options) { + ConnectionPaths.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) { - object.public_key = null; - object.diversifier = ""; - if ($util.Long) { - let long = new $util.Long(0, 0, true); - object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.timestamp = options.longs === String ? "0" : 0; + if (options.arrays || options.defaults) + object.paths = []; + if (options.defaults) + object.client_id = ""; + if (message.client_id != null && message.hasOwnProperty("client_id")) + object.client_id = message.client_id; + if (message.paths && message.paths.length) { + object.paths = []; + for (let j = 0; j < message.paths.length; ++j) + object.paths[j] = message.paths[j]; } - if (message.public_key != null && message.hasOwnProperty("public_key")) - object.public_key = $root.google.protobuf.Any.toObject(message.public_key, options); - if (message.diversifier != null && message.hasOwnProperty("diversifier")) - object.diversifier = message.diversifier; - if (message.timestamp != null && message.hasOwnProperty("timestamp")) - if (typeof message.timestamp === "number") - object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp; - else - object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber(true) : message.timestamp; return object; }; /** - * Converts this ConsensusState to JSON. + * Converts this ConnectionPaths to JSON. * @function toJSON - * @memberof ibc.lightclients.solomachine.v1.ConsensusState + * @memberof ibc.core.connection.v1.ConnectionPaths * @instance * @returns {Object.} JSON object */ - ConsensusState.prototype.toJSON = function toJSON() { + ConnectionPaths.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ConsensusState; + return ConnectionPaths; })(); - v1.Header = (function() { + v1.Version = (function() { /** - * Properties of a Header. - * @memberof ibc.lightclients.solomachine.v1 - * @interface IHeader - * @property {Long|null} [sequence] Header sequence - * @property {Long|null} [timestamp] Header timestamp - * @property {Uint8Array|null} [signature] Header signature - * @property {google.protobuf.IAny|null} [new_public_key] Header new_public_key - * @property {string|null} [new_diversifier] Header new_diversifier + * Properties of a Version. + * @memberof ibc.core.connection.v1 + * @interface IVersion + * @property {string|null} [identifier] Version identifier + * @property {Array.|null} [features] Version features */ /** - * Constructs a new Header. - * @memberof ibc.lightclients.solomachine.v1 - * @classdesc Represents a Header. - * @implements IHeader + * Constructs a new Version. + * @memberof ibc.core.connection.v1 + * @classdesc Represents a Version. + * @implements IVersion * @constructor - * @param {ibc.lightclients.solomachine.v1.IHeader=} [properties] Properties to set + * @param {ibc.core.connection.v1.IVersion=} [properties] Properties to set */ - function Header(properties) { + function Version(properties) { + this.features = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -64919,115 +71338,79 @@ export const ibc = $root.ibc = (() => { } /** - * Header sequence. - * @member {Long} sequence - * @memberof ibc.lightclients.solomachine.v1.Header - * @instance - */ - Header.prototype.sequence = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * Header timestamp. - * @member {Long} timestamp - * @memberof ibc.lightclients.solomachine.v1.Header - * @instance - */ - Header.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * Header signature. - * @member {Uint8Array} signature - * @memberof ibc.lightclients.solomachine.v1.Header - * @instance - */ - Header.prototype.signature = $util.newBuffer([]); - - /** - * Header new_public_key. - * @member {google.protobuf.IAny|null|undefined} new_public_key - * @memberof ibc.lightclients.solomachine.v1.Header + * Version identifier. + * @member {string} identifier + * @memberof ibc.core.connection.v1.Version * @instance */ - Header.prototype.new_public_key = null; + Version.prototype.identifier = ""; /** - * Header new_diversifier. - * @member {string} new_diversifier - * @memberof ibc.lightclients.solomachine.v1.Header + * Version features. + * @member {Array.} features + * @memberof ibc.core.connection.v1.Version * @instance */ - Header.prototype.new_diversifier = ""; + Version.prototype.features = $util.emptyArray; /** - * Encodes the specified Header message. Does not implicitly {@link ibc.lightclients.solomachine.v1.Header.verify|verify} messages. + * Encodes the specified Version message. Does not implicitly {@link ibc.core.connection.v1.Version.verify|verify} messages. * @function encode - * @memberof ibc.lightclients.solomachine.v1.Header + * @memberof ibc.core.connection.v1.Version * @static - * @param {ibc.lightclients.solomachine.v1.IHeader} message Header message or plain object to encode + * @param {ibc.core.connection.v1.IVersion} message Version message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Header.encode = function encode(message, writer) { + Version.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.sequence != null && Object.hasOwnProperty.call(message, "sequence")) - writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.sequence); - if (message.timestamp != null && Object.hasOwnProperty.call(message, "timestamp")) - writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.timestamp); - if (message.signature != null && Object.hasOwnProperty.call(message, "signature")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.signature); - if (message.new_public_key != null && Object.hasOwnProperty.call(message, "new_public_key")) - $root.google.protobuf.Any.encode(message.new_public_key, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.new_diversifier != null && Object.hasOwnProperty.call(message, "new_diversifier")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.new_diversifier); + if (message.identifier != null && Object.hasOwnProperty.call(message, "identifier")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.identifier); + if (message.features != null && message.features.length) + for (let i = 0; i < message.features.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.features[i]); return writer; }; /** - * Encodes the specified Header message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v1.Header.verify|verify} messages. + * Encodes the specified Version message, length delimited. Does not implicitly {@link ibc.core.connection.v1.Version.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.lightclients.solomachine.v1.Header + * @memberof ibc.core.connection.v1.Version * @static - * @param {ibc.lightclients.solomachine.v1.IHeader} message Header message or plain object to encode + * @param {ibc.core.connection.v1.IVersion} message Version message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Header.encodeDelimited = function encodeDelimited(message, writer) { + Version.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Header message from the specified reader or buffer. + * Decodes a Version message from the specified reader or buffer. * @function decode - * @memberof ibc.lightclients.solomachine.v1.Header + * @memberof ibc.core.connection.v1.Version * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.lightclients.solomachine.v1.Header} Header + * @returns {ibc.core.connection.v1.Version} Version * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Header.decode = function decode(reader, length) { + Version.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.solomachine.v1.Header(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.connection.v1.Version(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.sequence = reader.uint64(); + message.identifier = reader.string(); break; case 2: - message.timestamp = reader.uint64(); - break; - case 3: - message.signature = reader.bytes(); - break; - case 4: - message.new_public_key = $root.google.protobuf.Any.decode(reader, reader.uint32()); - break; - case 5: - message.new_diversifier = reader.string(); + if (!(message.features && message.features.length)) + message.features = []; + message.features.push(reader.string()); break; default: reader.skipType(tag & 7); @@ -65038,185 +71421,128 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a Header message from the specified reader or buffer, length delimited. + * Decodes a Version message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.lightclients.solomachine.v1.Header + * @memberof ibc.core.connection.v1.Version * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.lightclients.solomachine.v1.Header} Header + * @returns {ibc.core.connection.v1.Version} Version * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Header.decodeDelimited = function decodeDelimited(reader) { + Version.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Header message. + * Verifies a Version message. * @function verify - * @memberof ibc.lightclients.solomachine.v1.Header + * @memberof ibc.core.connection.v1.Version * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Header.verify = function verify(message) { + Version.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.sequence != null && message.hasOwnProperty("sequence")) - if (!$util.isInteger(message.sequence) && !(message.sequence && $util.isInteger(message.sequence.low) && $util.isInteger(message.sequence.high))) - return "sequence: integer|Long expected"; - if (message.timestamp != null && message.hasOwnProperty("timestamp")) - if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high))) - return "timestamp: integer|Long expected"; - if (message.signature != null && message.hasOwnProperty("signature")) - if (!(message.signature && typeof message.signature.length === "number" || $util.isString(message.signature))) - return "signature: buffer expected"; - if (message.new_public_key != null && message.hasOwnProperty("new_public_key")) { - let error = $root.google.protobuf.Any.verify(message.new_public_key); - if (error) - return "new_public_key." + error; + if (message.identifier != null && message.hasOwnProperty("identifier")) + if (!$util.isString(message.identifier)) + return "identifier: string expected"; + if (message.features != null && message.hasOwnProperty("features")) { + if (!Array.isArray(message.features)) + return "features: array expected"; + for (let i = 0; i < message.features.length; ++i) + if (!$util.isString(message.features[i])) + return "features: string[] expected"; } - if (message.new_diversifier != null && message.hasOwnProperty("new_diversifier")) - if (!$util.isString(message.new_diversifier)) - return "new_diversifier: string expected"; return null; }; - - /** - * Creates a Header message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof ibc.lightclients.solomachine.v1.Header - * @static - * @param {Object.} object Plain object - * @returns {ibc.lightclients.solomachine.v1.Header} Header - */ - Header.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.lightclients.solomachine.v1.Header) - return object; - let message = new $root.ibc.lightclients.solomachine.v1.Header(); - if (object.sequence != null) - if ($util.Long) - (message.sequence = $util.Long.fromValue(object.sequence)).unsigned = true; - else if (typeof object.sequence === "string") - message.sequence = parseInt(object.sequence, 10); - else if (typeof object.sequence === "number") - message.sequence = object.sequence; - else if (typeof object.sequence === "object") - message.sequence = new $util.LongBits(object.sequence.low >>> 0, object.sequence.high >>> 0).toNumber(true); - if (object.timestamp != null) - if ($util.Long) - (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true; - else if (typeof object.timestamp === "string") - message.timestamp = parseInt(object.timestamp, 10); - else if (typeof object.timestamp === "number") - message.timestamp = object.timestamp; - else if (typeof object.timestamp === "object") - message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true); - if (object.signature != null) - if (typeof object.signature === "string") - $util.base64.decode(object.signature, message.signature = $util.newBuffer($util.base64.length(object.signature)), 0); - else if (object.signature.length) - message.signature = object.signature; - if (object.new_public_key != null) { - if (typeof object.new_public_key !== "object") - throw TypeError(".ibc.lightclients.solomachine.v1.Header.new_public_key: object expected"); - message.new_public_key = $root.google.protobuf.Any.fromObject(object.new_public_key); + + /** + * Creates a Version message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof ibc.core.connection.v1.Version + * @static + * @param {Object.} object Plain object + * @returns {ibc.core.connection.v1.Version} Version + */ + Version.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.connection.v1.Version) + return object; + let message = new $root.ibc.core.connection.v1.Version(); + if (object.identifier != null) + message.identifier = String(object.identifier); + if (object.features) { + if (!Array.isArray(object.features)) + throw TypeError(".ibc.core.connection.v1.Version.features: array expected"); + message.features = []; + for (let i = 0; i < object.features.length; ++i) + message.features[i] = String(object.features[i]); } - if (object.new_diversifier != null) - message.new_diversifier = String(object.new_diversifier); return message; }; /** - * Creates a plain object from a Header message. Also converts values to other types if specified. + * Creates a plain object from a Version message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.lightclients.solomachine.v1.Header + * @memberof ibc.core.connection.v1.Version * @static - * @param {ibc.lightclients.solomachine.v1.Header} message Header + * @param {ibc.core.connection.v1.Version} message Version * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Header.toObject = function toObject(message, options) { + Version.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) { - if ($util.Long) { - let long = new $util.Long(0, 0, true); - object.sequence = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.sequence = options.longs === String ? "0" : 0; - if ($util.Long) { - let long = new $util.Long(0, 0, true); - object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.timestamp = options.longs === String ? "0" : 0; - if (options.bytes === String) - object.signature = ""; - else { - object.signature = []; - if (options.bytes !== Array) - object.signature = $util.newBuffer(object.signature); - } - object.new_public_key = null; - object.new_diversifier = ""; + if (options.arrays || options.defaults) + object.features = []; + if (options.defaults) + object.identifier = ""; + if (message.identifier != null && message.hasOwnProperty("identifier")) + object.identifier = message.identifier; + if (message.features && message.features.length) { + object.features = []; + for (let j = 0; j < message.features.length; ++j) + object.features[j] = message.features[j]; } - if (message.sequence != null && message.hasOwnProperty("sequence")) - if (typeof message.sequence === "number") - object.sequence = options.longs === String ? String(message.sequence) : message.sequence; - else - object.sequence = options.longs === String ? $util.Long.prototype.toString.call(message.sequence) : options.longs === Number ? new $util.LongBits(message.sequence.low >>> 0, message.sequence.high >>> 0).toNumber(true) : message.sequence; - if (message.timestamp != null && message.hasOwnProperty("timestamp")) - if (typeof message.timestamp === "number") - object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp; - else - object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber(true) : message.timestamp; - if (message.signature != null && message.hasOwnProperty("signature")) - object.signature = options.bytes === String ? $util.base64.encode(message.signature, 0, message.signature.length) : options.bytes === Array ? Array.prototype.slice.call(message.signature) : message.signature; - if (message.new_public_key != null && message.hasOwnProperty("new_public_key")) - object.new_public_key = $root.google.protobuf.Any.toObject(message.new_public_key, options); - if (message.new_diversifier != null && message.hasOwnProperty("new_diversifier")) - object.new_diversifier = message.new_diversifier; return object; }; /** - * Converts this Header to JSON. + * Converts this Version to JSON. * @function toJSON - * @memberof ibc.lightclients.solomachine.v1.Header + * @memberof ibc.core.connection.v1.Version * @instance * @returns {Object.} JSON object */ - Header.prototype.toJSON = function toJSON() { + Version.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Header; + return Version; })(); - v1.Misbehaviour = (function() { + v1.Params = (function() { /** - * Properties of a Misbehaviour. - * @memberof ibc.lightclients.solomachine.v1 - * @interface IMisbehaviour - * @property {string|null} [client_id] Misbehaviour client_id - * @property {Long|null} [sequence] Misbehaviour sequence - * @property {ibc.lightclients.solomachine.v1.ISignatureAndData|null} [signature_one] Misbehaviour signature_one - * @property {ibc.lightclients.solomachine.v1.ISignatureAndData|null} [signature_two] Misbehaviour signature_two + * Properties of a Params. + * @memberof ibc.core.connection.v1 + * @interface IParams + * @property {Long|null} [max_expected_time_per_block] Params max_expected_time_per_block */ /** - * Constructs a new Misbehaviour. - * @memberof ibc.lightclients.solomachine.v1 - * @classdesc Represents a Misbehaviour. - * @implements IMisbehaviour + * Constructs a new Params. + * @memberof ibc.core.connection.v1 + * @classdesc Represents a Params. + * @implements IParams * @constructor - * @param {ibc.lightclients.solomachine.v1.IMisbehaviour=} [properties] Properties to set + * @param {ibc.core.connection.v1.IParams=} [properties] Properties to set */ - function Misbehaviour(properties) { + function Params(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -65224,102 +71550,63 @@ export const ibc = $root.ibc = (() => { } /** - * Misbehaviour client_id. - * @member {string} client_id - * @memberof ibc.lightclients.solomachine.v1.Misbehaviour - * @instance - */ - Misbehaviour.prototype.client_id = ""; - - /** - * Misbehaviour sequence. - * @member {Long} sequence - * @memberof ibc.lightclients.solomachine.v1.Misbehaviour - * @instance - */ - Misbehaviour.prototype.sequence = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * Misbehaviour signature_one. - * @member {ibc.lightclients.solomachine.v1.ISignatureAndData|null|undefined} signature_one - * @memberof ibc.lightclients.solomachine.v1.Misbehaviour - * @instance - */ - Misbehaviour.prototype.signature_one = null; - - /** - * Misbehaviour signature_two. - * @member {ibc.lightclients.solomachine.v1.ISignatureAndData|null|undefined} signature_two - * @memberof ibc.lightclients.solomachine.v1.Misbehaviour + * Params max_expected_time_per_block. + * @member {Long} max_expected_time_per_block + * @memberof ibc.core.connection.v1.Params * @instance */ - Misbehaviour.prototype.signature_two = null; + Params.prototype.max_expected_time_per_block = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** - * Encodes the specified Misbehaviour message. Does not implicitly {@link ibc.lightclients.solomachine.v1.Misbehaviour.verify|verify} messages. + * Encodes the specified Params message. Does not implicitly {@link ibc.core.connection.v1.Params.verify|verify} messages. * @function encode - * @memberof ibc.lightclients.solomachine.v1.Misbehaviour + * @memberof ibc.core.connection.v1.Params * @static - * @param {ibc.lightclients.solomachine.v1.IMisbehaviour} message Misbehaviour message or plain object to encode + * @param {ibc.core.connection.v1.IParams} message Params message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Misbehaviour.encode = function encode(message, writer) { + Params.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.client_id != null && Object.hasOwnProperty.call(message, "client_id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.client_id); - if (message.sequence != null && Object.hasOwnProperty.call(message, "sequence")) - writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.sequence); - if (message.signature_one != null && Object.hasOwnProperty.call(message, "signature_one")) - $root.ibc.lightclients.solomachine.v1.SignatureAndData.encode(message.signature_one, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.signature_two != null && Object.hasOwnProperty.call(message, "signature_two")) - $root.ibc.lightclients.solomachine.v1.SignatureAndData.encode(message.signature_two, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.max_expected_time_per_block != null && Object.hasOwnProperty.call(message, "max_expected_time_per_block")) + writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.max_expected_time_per_block); return writer; }; /** - * Encodes the specified Misbehaviour message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v1.Misbehaviour.verify|verify} messages. + * Encodes the specified Params message, length delimited. Does not implicitly {@link ibc.core.connection.v1.Params.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.lightclients.solomachine.v1.Misbehaviour + * @memberof ibc.core.connection.v1.Params * @static - * @param {ibc.lightclients.solomachine.v1.IMisbehaviour} message Misbehaviour message or plain object to encode + * @param {ibc.core.connection.v1.IParams} message Params message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Misbehaviour.encodeDelimited = function encodeDelimited(message, writer) { + Params.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Misbehaviour message from the specified reader or buffer. + * Decodes a Params message from the specified reader or buffer. * @function decode - * @memberof ibc.lightclients.solomachine.v1.Misbehaviour + * @memberof ibc.core.connection.v1.Params * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.lightclients.solomachine.v1.Misbehaviour} Misbehaviour + * @returns {ibc.core.connection.v1.Params} Params * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Misbehaviour.decode = function decode(reader, length) { + Params.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.solomachine.v1.Misbehaviour(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.connection.v1.Params(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.client_id = reader.string(); - break; - case 2: - message.sequence = reader.uint64(); - break; - case 3: - message.signature_one = $root.ibc.lightclients.solomachine.v1.SignatureAndData.decode(reader, reader.uint32()); - break; - case 4: - message.signature_two = $root.ibc.lightclients.solomachine.v1.SignatureAndData.decode(reader, reader.uint32()); + message.max_expected_time_per_block = reader.uint64(); break; default: reader.skipType(tag & 7); @@ -65330,262 +71617,404 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a Misbehaviour message from the specified reader or buffer, length delimited. + * Decodes a Params message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.lightclients.solomachine.v1.Misbehaviour + * @memberof ibc.core.connection.v1.Params * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.lightclients.solomachine.v1.Misbehaviour} Misbehaviour + * @returns {ibc.core.connection.v1.Params} Params * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Misbehaviour.decodeDelimited = function decodeDelimited(reader) { + Params.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Misbehaviour message. + * Verifies a Params message. * @function verify - * @memberof ibc.lightclients.solomachine.v1.Misbehaviour + * @memberof ibc.core.connection.v1.Params * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Misbehaviour.verify = function verify(message) { + Params.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.client_id != null && message.hasOwnProperty("client_id")) - if (!$util.isString(message.client_id)) - return "client_id: string expected"; - if (message.sequence != null && message.hasOwnProperty("sequence")) - if (!$util.isInteger(message.sequence) && !(message.sequence && $util.isInteger(message.sequence.low) && $util.isInteger(message.sequence.high))) - return "sequence: integer|Long expected"; - if (message.signature_one != null && message.hasOwnProperty("signature_one")) { - let error = $root.ibc.lightclients.solomachine.v1.SignatureAndData.verify(message.signature_one); - if (error) - return "signature_one." + error; - } - if (message.signature_two != null && message.hasOwnProperty("signature_two")) { - let error = $root.ibc.lightclients.solomachine.v1.SignatureAndData.verify(message.signature_two); - if (error) - return "signature_two." + error; - } + if (message.max_expected_time_per_block != null && message.hasOwnProperty("max_expected_time_per_block")) + if (!$util.isInteger(message.max_expected_time_per_block) && !(message.max_expected_time_per_block && $util.isInteger(message.max_expected_time_per_block.low) && $util.isInteger(message.max_expected_time_per_block.high))) + return "max_expected_time_per_block: integer|Long expected"; return null; }; /** - * Creates a Misbehaviour message from a plain object. Also converts values to their respective internal types. + * Creates a Params message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.lightclients.solomachine.v1.Misbehaviour + * @memberof ibc.core.connection.v1.Params * @static * @param {Object.} object Plain object - * @returns {ibc.lightclients.solomachine.v1.Misbehaviour} Misbehaviour + * @returns {ibc.core.connection.v1.Params} Params */ - Misbehaviour.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.lightclients.solomachine.v1.Misbehaviour) + Params.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.connection.v1.Params) return object; - let message = new $root.ibc.lightclients.solomachine.v1.Misbehaviour(); - if (object.client_id != null) - message.client_id = String(object.client_id); - if (object.sequence != null) + let message = new $root.ibc.core.connection.v1.Params(); + if (object.max_expected_time_per_block != null) if ($util.Long) - (message.sequence = $util.Long.fromValue(object.sequence)).unsigned = true; - else if (typeof object.sequence === "string") - message.sequence = parseInt(object.sequence, 10); - else if (typeof object.sequence === "number") - message.sequence = object.sequence; - else if (typeof object.sequence === "object") - message.sequence = new $util.LongBits(object.sequence.low >>> 0, object.sequence.high >>> 0).toNumber(true); - if (object.signature_one != null) { - if (typeof object.signature_one !== "object") - throw TypeError(".ibc.lightclients.solomachine.v1.Misbehaviour.signature_one: object expected"); - message.signature_one = $root.ibc.lightclients.solomachine.v1.SignatureAndData.fromObject(object.signature_one); - } - if (object.signature_two != null) { - if (typeof object.signature_two !== "object") - throw TypeError(".ibc.lightclients.solomachine.v1.Misbehaviour.signature_two: object expected"); - message.signature_two = $root.ibc.lightclients.solomachine.v1.SignatureAndData.fromObject(object.signature_two); - } + (message.max_expected_time_per_block = $util.Long.fromValue(object.max_expected_time_per_block)).unsigned = true; + else if (typeof object.max_expected_time_per_block === "string") + message.max_expected_time_per_block = parseInt(object.max_expected_time_per_block, 10); + else if (typeof object.max_expected_time_per_block === "number") + message.max_expected_time_per_block = object.max_expected_time_per_block; + else if (typeof object.max_expected_time_per_block === "object") + message.max_expected_time_per_block = new $util.LongBits(object.max_expected_time_per_block.low >>> 0, object.max_expected_time_per_block.high >>> 0).toNumber(true); return message; }; /** - * Creates a plain object from a Misbehaviour message. Also converts values to other types if specified. + * Creates a plain object from a Params message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.lightclients.solomachine.v1.Misbehaviour + * @memberof ibc.core.connection.v1.Params * @static - * @param {ibc.lightclients.solomachine.v1.Misbehaviour} message Misbehaviour + * @param {ibc.core.connection.v1.Params} message Params * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Misbehaviour.toObject = function toObject(message, options) { + Params.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) { - object.client_id = ""; + if (options.defaults) if ($util.Long) { let long = new $util.Long(0, 0, true); - object.sequence = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + object.max_expected_time_per_block = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.sequence = options.longs === String ? "0" : 0; - object.signature_one = null; - object.signature_two = null; - } - if (message.client_id != null && message.hasOwnProperty("client_id")) - object.client_id = message.client_id; - if (message.sequence != null && message.hasOwnProperty("sequence")) - if (typeof message.sequence === "number") - object.sequence = options.longs === String ? String(message.sequence) : message.sequence; + object.max_expected_time_per_block = options.longs === String ? "0" : 0; + if (message.max_expected_time_per_block != null && message.hasOwnProperty("max_expected_time_per_block")) + if (typeof message.max_expected_time_per_block === "number") + object.max_expected_time_per_block = options.longs === String ? String(message.max_expected_time_per_block) : message.max_expected_time_per_block; else - object.sequence = options.longs === String ? $util.Long.prototype.toString.call(message.sequence) : options.longs === Number ? new $util.LongBits(message.sequence.low >>> 0, message.sequence.high >>> 0).toNumber(true) : message.sequence; - if (message.signature_one != null && message.hasOwnProperty("signature_one")) - object.signature_one = $root.ibc.lightclients.solomachine.v1.SignatureAndData.toObject(message.signature_one, options); - if (message.signature_two != null && message.hasOwnProperty("signature_two")) - object.signature_two = $root.ibc.lightclients.solomachine.v1.SignatureAndData.toObject(message.signature_two, options); + object.max_expected_time_per_block = options.longs === String ? $util.Long.prototype.toString.call(message.max_expected_time_per_block) : options.longs === Number ? new $util.LongBits(message.max_expected_time_per_block.low >>> 0, message.max_expected_time_per_block.high >>> 0).toNumber(true) : message.max_expected_time_per_block; return object; }; /** - * Converts this Misbehaviour to JSON. + * Converts this Params to JSON. * @function toJSON - * @memberof ibc.lightclients.solomachine.v1.Misbehaviour + * @memberof ibc.core.connection.v1.Params * @instance * @returns {Object.} JSON object */ - Misbehaviour.prototype.toJSON = function toJSON() { + Params.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Misbehaviour; + return Params; })(); - v1.SignatureAndData = (function() { + v1.Query = (function() { /** - * Properties of a SignatureAndData. - * @memberof ibc.lightclients.solomachine.v1 - * @interface ISignatureAndData - * @property {Uint8Array|null} [signature] SignatureAndData signature - * @property {ibc.lightclients.solomachine.v1.DataType|null} [data_type] SignatureAndData data_type - * @property {Uint8Array|null} [data] SignatureAndData data - * @property {Long|null} [timestamp] SignatureAndData timestamp + * Constructs a new Query service. + * @memberof ibc.core.connection.v1 + * @classdesc Represents a Query + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited */ + function Query(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (Query.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Query; /** - * Constructs a new SignatureAndData. - * @memberof ibc.lightclients.solomachine.v1 - * @classdesc Represents a SignatureAndData. - * @implements ISignatureAndData - * @constructor - * @param {ibc.lightclients.solomachine.v1.ISignatureAndData=} [properties] Properties to set + * Callback as used by {@link ibc.core.connection.v1.Query#connection}. + * @memberof ibc.core.connection.v1.Query + * @typedef ConnectionCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.core.connection.v1.QueryConnectionResponse} [response] QueryConnectionResponse */ - function SignatureAndData(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } /** - * SignatureAndData signature. - * @member {Uint8Array} signature - * @memberof ibc.lightclients.solomachine.v1.SignatureAndData + * Calls Connection. + * @function connection + * @memberof ibc.core.connection.v1.Query * @instance + * @param {ibc.core.connection.v1.IQueryConnectionRequest} request QueryConnectionRequest message or plain object + * @param {ibc.core.connection.v1.Query.ConnectionCallback} callback Node-style callback called with the error, if any, and QueryConnectionResponse + * @returns {undefined} + * @variation 1 */ - SignatureAndData.prototype.signature = $util.newBuffer([]); + Object.defineProperty(Query.prototype.connection = function connection(request, callback) { + return this.rpcCall(connection, $root.ibc.core.connection.v1.QueryConnectionRequest, $root.ibc.core.connection.v1.QueryConnectionResponse, request, callback); + }, "name", { value: "Connection" }); /** - * SignatureAndData data_type. - * @member {ibc.lightclients.solomachine.v1.DataType} data_type - * @memberof ibc.lightclients.solomachine.v1.SignatureAndData + * Calls Connection. + * @function connection + * @memberof ibc.core.connection.v1.Query * @instance + * @param {ibc.core.connection.v1.IQueryConnectionRequest} request QueryConnectionRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - SignatureAndData.prototype.data_type = 0; /** - * SignatureAndData data. - * @member {Uint8Array} data - * @memberof ibc.lightclients.solomachine.v1.SignatureAndData + * Callback as used by {@link ibc.core.connection.v1.Query#connections}. + * @memberof ibc.core.connection.v1.Query + * @typedef ConnectionsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.core.connection.v1.QueryConnectionsResponse} [response] QueryConnectionsResponse + */ + + /** + * Calls Connections. + * @function connections + * @memberof ibc.core.connection.v1.Query * @instance + * @param {ibc.core.connection.v1.IQueryConnectionsRequest} request QueryConnectionsRequest message or plain object + * @param {ibc.core.connection.v1.Query.ConnectionsCallback} callback Node-style callback called with the error, if any, and QueryConnectionsResponse + * @returns {undefined} + * @variation 1 */ - SignatureAndData.prototype.data = $util.newBuffer([]); + Object.defineProperty(Query.prototype.connections = function connections(request, callback) { + return this.rpcCall(connections, $root.ibc.core.connection.v1.QueryConnectionsRequest, $root.ibc.core.connection.v1.QueryConnectionsResponse, request, callback); + }, "name", { value: "Connections" }); /** - * SignatureAndData timestamp. - * @member {Long} timestamp - * @memberof ibc.lightclients.solomachine.v1.SignatureAndData + * Calls Connections. + * @function connections + * @memberof ibc.core.connection.v1.Query * @instance + * @param {ibc.core.connection.v1.IQueryConnectionsRequest} request QueryConnectionsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - SignatureAndData.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** - * Encodes the specified SignatureAndData message. Does not implicitly {@link ibc.lightclients.solomachine.v1.SignatureAndData.verify|verify} messages. + * Callback as used by {@link ibc.core.connection.v1.Query#clientConnections}. + * @memberof ibc.core.connection.v1.Query + * @typedef ClientConnectionsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.core.connection.v1.QueryClientConnectionsResponse} [response] QueryClientConnectionsResponse + */ + + /** + * Calls ClientConnections. + * @function clientConnections + * @memberof ibc.core.connection.v1.Query + * @instance + * @param {ibc.core.connection.v1.IQueryClientConnectionsRequest} request QueryClientConnectionsRequest message or plain object + * @param {ibc.core.connection.v1.Query.ClientConnectionsCallback} callback Node-style callback called with the error, if any, and QueryClientConnectionsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Query.prototype.clientConnections = function clientConnections(request, callback) { + return this.rpcCall(clientConnections, $root.ibc.core.connection.v1.QueryClientConnectionsRequest, $root.ibc.core.connection.v1.QueryClientConnectionsResponse, request, callback); + }, "name", { value: "ClientConnections" }); + + /** + * Calls ClientConnections. + * @function clientConnections + * @memberof ibc.core.connection.v1.Query + * @instance + * @param {ibc.core.connection.v1.IQueryClientConnectionsRequest} request QueryClientConnectionsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link ibc.core.connection.v1.Query#connectionClientState}. + * @memberof ibc.core.connection.v1.Query + * @typedef ConnectionClientStateCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.core.connection.v1.QueryConnectionClientStateResponse} [response] QueryConnectionClientStateResponse + */ + + /** + * Calls ConnectionClientState. + * @function connectionClientState + * @memberof ibc.core.connection.v1.Query + * @instance + * @param {ibc.core.connection.v1.IQueryConnectionClientStateRequest} request QueryConnectionClientStateRequest message or plain object + * @param {ibc.core.connection.v1.Query.ConnectionClientStateCallback} callback Node-style callback called with the error, if any, and QueryConnectionClientStateResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Query.prototype.connectionClientState = function connectionClientState(request, callback) { + return this.rpcCall(connectionClientState, $root.ibc.core.connection.v1.QueryConnectionClientStateRequest, $root.ibc.core.connection.v1.QueryConnectionClientStateResponse, request, callback); + }, "name", { value: "ConnectionClientState" }); + + /** + * Calls ConnectionClientState. + * @function connectionClientState + * @memberof ibc.core.connection.v1.Query + * @instance + * @param {ibc.core.connection.v1.IQueryConnectionClientStateRequest} request QueryConnectionClientStateRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link ibc.core.connection.v1.Query#connectionConsensusState}. + * @memberof ibc.core.connection.v1.Query + * @typedef ConnectionConsensusStateCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.core.connection.v1.QueryConnectionConsensusStateResponse} [response] QueryConnectionConsensusStateResponse + */ + + /** + * Calls ConnectionConsensusState. + * @function connectionConsensusState + * @memberof ibc.core.connection.v1.Query + * @instance + * @param {ibc.core.connection.v1.IQueryConnectionConsensusStateRequest} request QueryConnectionConsensusStateRequest message or plain object + * @param {ibc.core.connection.v1.Query.ConnectionConsensusStateCallback} callback Node-style callback called with the error, if any, and QueryConnectionConsensusStateResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Query.prototype.connectionConsensusState = function connectionConsensusState(request, callback) { + return this.rpcCall(connectionConsensusState, $root.ibc.core.connection.v1.QueryConnectionConsensusStateRequest, $root.ibc.core.connection.v1.QueryConnectionConsensusStateResponse, request, callback); + }, "name", { value: "ConnectionConsensusState" }); + + /** + * Calls ConnectionConsensusState. + * @function connectionConsensusState + * @memberof ibc.core.connection.v1.Query + * @instance + * @param {ibc.core.connection.v1.IQueryConnectionConsensusStateRequest} request QueryConnectionConsensusStateRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link ibc.core.connection.v1.Query#connectionParams}. + * @memberof ibc.core.connection.v1.Query + * @typedef ConnectionParamsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {ibc.core.connection.v1.QueryConnectionParamsResponse} [response] QueryConnectionParamsResponse + */ + + /** + * Calls ConnectionParams. + * @function connectionParams + * @memberof ibc.core.connection.v1.Query + * @instance + * @param {ibc.core.connection.v1.IQueryConnectionParamsRequest} request QueryConnectionParamsRequest message or plain object + * @param {ibc.core.connection.v1.Query.ConnectionParamsCallback} callback Node-style callback called with the error, if any, and QueryConnectionParamsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Query.prototype.connectionParams = function connectionParams(request, callback) { + return this.rpcCall(connectionParams, $root.ibc.core.connection.v1.QueryConnectionParamsRequest, $root.ibc.core.connection.v1.QueryConnectionParamsResponse, request, callback); + }, "name", { value: "ConnectionParams" }); + + /** + * Calls ConnectionParams. + * @function connectionParams + * @memberof ibc.core.connection.v1.Query + * @instance + * @param {ibc.core.connection.v1.IQueryConnectionParamsRequest} request QueryConnectionParamsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return Query; + })(); + + v1.QueryConnectionRequest = (function() { + + /** + * Properties of a QueryConnectionRequest. + * @memberof ibc.core.connection.v1 + * @interface IQueryConnectionRequest + * @property {string|null} [connection_id] QueryConnectionRequest connection_id + */ + + /** + * Constructs a new QueryConnectionRequest. + * @memberof ibc.core.connection.v1 + * @classdesc Represents a QueryConnectionRequest. + * @implements IQueryConnectionRequest + * @constructor + * @param {ibc.core.connection.v1.IQueryConnectionRequest=} [properties] Properties to set + */ + function QueryConnectionRequest(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * QueryConnectionRequest connection_id. + * @member {string} connection_id + * @memberof ibc.core.connection.v1.QueryConnectionRequest + * @instance + */ + QueryConnectionRequest.prototype.connection_id = ""; + + /** + * Encodes the specified QueryConnectionRequest message. Does not implicitly {@link ibc.core.connection.v1.QueryConnectionRequest.verify|verify} messages. * @function encode - * @memberof ibc.lightclients.solomachine.v1.SignatureAndData + * @memberof ibc.core.connection.v1.QueryConnectionRequest * @static - * @param {ibc.lightclients.solomachine.v1.ISignatureAndData} message SignatureAndData message or plain object to encode + * @param {ibc.core.connection.v1.IQueryConnectionRequest} message QueryConnectionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SignatureAndData.encode = function encode(message, writer) { + QueryConnectionRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.signature != null && Object.hasOwnProperty.call(message, "signature")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.signature); - if (message.data_type != null && Object.hasOwnProperty.call(message, "data_type")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.data_type); - if (message.data != null && Object.hasOwnProperty.call(message, "data")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.data); - if (message.timestamp != null && Object.hasOwnProperty.call(message, "timestamp")) - writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.timestamp); + if (message.connection_id != null && Object.hasOwnProperty.call(message, "connection_id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.connection_id); return writer; }; /** - * Encodes the specified SignatureAndData message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v1.SignatureAndData.verify|verify} messages. + * Encodes the specified QueryConnectionRequest message, length delimited. Does not implicitly {@link ibc.core.connection.v1.QueryConnectionRequest.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.lightclients.solomachine.v1.SignatureAndData + * @memberof ibc.core.connection.v1.QueryConnectionRequest * @static - * @param {ibc.lightclients.solomachine.v1.ISignatureAndData} message SignatureAndData message or plain object to encode + * @param {ibc.core.connection.v1.IQueryConnectionRequest} message QueryConnectionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SignatureAndData.encodeDelimited = function encodeDelimited(message, writer) { + QueryConnectionRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SignatureAndData message from the specified reader or buffer. + * Decodes a QueryConnectionRequest message from the specified reader or buffer. * @function decode - * @memberof ibc.lightclients.solomachine.v1.SignatureAndData + * @memberof ibc.core.connection.v1.QueryConnectionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.lightclients.solomachine.v1.SignatureAndData} SignatureAndData + * @returns {ibc.core.connection.v1.QueryConnectionRequest} QueryConnectionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SignatureAndData.decode = function decode(reader, length) { + QueryConnectionRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.solomachine.v1.SignatureAndData(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.connection.v1.QueryConnectionRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.signature = reader.bytes(); - break; - case 2: - message.data_type = reader.int32(); - break; - case 3: - message.data = reader.bytes(); - break; - case 4: - message.timestamp = reader.uint64(); + message.connection_id = reader.string(); break; default: reader.skipType(tag & 7); @@ -65596,218 +72025,109 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a SignatureAndData message from the specified reader or buffer, length delimited. + * Decodes a QueryConnectionRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.lightclients.solomachine.v1.SignatureAndData + * @memberof ibc.core.connection.v1.QueryConnectionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.lightclients.solomachine.v1.SignatureAndData} SignatureAndData + * @returns {ibc.core.connection.v1.QueryConnectionRequest} QueryConnectionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SignatureAndData.decodeDelimited = function decodeDelimited(reader) { + QueryConnectionRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SignatureAndData message. + * Verifies a QueryConnectionRequest message. * @function verify - * @memberof ibc.lightclients.solomachine.v1.SignatureAndData + * @memberof ibc.core.connection.v1.QueryConnectionRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SignatureAndData.verify = function verify(message) { + QueryConnectionRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.signature != null && message.hasOwnProperty("signature")) - if (!(message.signature && typeof message.signature.length === "number" || $util.isString(message.signature))) - return "signature: buffer expected"; - if (message.data_type != null && message.hasOwnProperty("data_type")) - switch (message.data_type) { - default: - return "data_type: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - break; - } - if (message.data != null && message.hasOwnProperty("data")) - if (!(message.data && typeof message.data.length === "number" || $util.isString(message.data))) - return "data: buffer expected"; - if (message.timestamp != null && message.hasOwnProperty("timestamp")) - if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high))) - return "timestamp: integer|Long expected"; + if (message.connection_id != null && message.hasOwnProperty("connection_id")) + if (!$util.isString(message.connection_id)) + return "connection_id: string expected"; return null; }; /** - * Creates a SignatureAndData message from a plain object. Also converts values to their respective internal types. + * Creates a QueryConnectionRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.lightclients.solomachine.v1.SignatureAndData + * @memberof ibc.core.connection.v1.QueryConnectionRequest * @static * @param {Object.} object Plain object - * @returns {ibc.lightclients.solomachine.v1.SignatureAndData} SignatureAndData + * @returns {ibc.core.connection.v1.QueryConnectionRequest} QueryConnectionRequest */ - SignatureAndData.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.lightclients.solomachine.v1.SignatureAndData) + QueryConnectionRequest.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.connection.v1.QueryConnectionRequest) return object; - let message = new $root.ibc.lightclients.solomachine.v1.SignatureAndData(); - if (object.signature != null) - if (typeof object.signature === "string") - $util.base64.decode(object.signature, message.signature = $util.newBuffer($util.base64.length(object.signature)), 0); - else if (object.signature.length) - message.signature = object.signature; - switch (object.data_type) { - case "DATA_TYPE_UNINITIALIZED_UNSPECIFIED": - case 0: - message.data_type = 0; - break; - case "DATA_TYPE_CLIENT_STATE": - case 1: - message.data_type = 1; - break; - case "DATA_TYPE_CONSENSUS_STATE": - case 2: - message.data_type = 2; - break; - case "DATA_TYPE_CONNECTION_STATE": - case 3: - message.data_type = 3; - break; - case "DATA_TYPE_CHANNEL_STATE": - case 4: - message.data_type = 4; - break; - case "DATA_TYPE_PACKET_COMMITMENT": - case 5: - message.data_type = 5; - break; - case "DATA_TYPE_PACKET_ACKNOWLEDGEMENT": - case 6: - message.data_type = 6; - break; - case "DATA_TYPE_PACKET_RECEIPT_ABSENCE": - case 7: - message.data_type = 7; - break; - case "DATA_TYPE_NEXT_SEQUENCE_RECV": - case 8: - message.data_type = 8; - break; - case "DATA_TYPE_HEADER": - case 9: - message.data_type = 9; - break; - } - if (object.data != null) - if (typeof object.data === "string") - $util.base64.decode(object.data, message.data = $util.newBuffer($util.base64.length(object.data)), 0); - else if (object.data.length) - message.data = object.data; - if (object.timestamp != null) - if ($util.Long) - (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true; - else if (typeof object.timestamp === "string") - message.timestamp = parseInt(object.timestamp, 10); - else if (typeof object.timestamp === "number") - message.timestamp = object.timestamp; - else if (typeof object.timestamp === "object") - message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true); + let message = new $root.ibc.core.connection.v1.QueryConnectionRequest(); + if (object.connection_id != null) + message.connection_id = String(object.connection_id); return message; }; /** - * Creates a plain object from a SignatureAndData message. Also converts values to other types if specified. + * Creates a plain object from a QueryConnectionRequest message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.lightclients.solomachine.v1.SignatureAndData + * @memberof ibc.core.connection.v1.QueryConnectionRequest * @static - * @param {ibc.lightclients.solomachine.v1.SignatureAndData} message SignatureAndData + * @param {ibc.core.connection.v1.QueryConnectionRequest} message QueryConnectionRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SignatureAndData.toObject = function toObject(message, options) { + QueryConnectionRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) { - if (options.bytes === String) - object.signature = ""; - else { - object.signature = []; - if (options.bytes !== Array) - object.signature = $util.newBuffer(object.signature); - } - object.data_type = options.enums === String ? "DATA_TYPE_UNINITIALIZED_UNSPECIFIED" : 0; - if (options.bytes === String) - object.data = ""; - else { - object.data = []; - if (options.bytes !== Array) - object.data = $util.newBuffer(object.data); - } - if ($util.Long) { - let long = new $util.Long(0, 0, true); - object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.timestamp = options.longs === String ? "0" : 0; - } - if (message.signature != null && message.hasOwnProperty("signature")) - object.signature = options.bytes === String ? $util.base64.encode(message.signature, 0, message.signature.length) : options.bytes === Array ? Array.prototype.slice.call(message.signature) : message.signature; - if (message.data_type != null && message.hasOwnProperty("data_type")) - object.data_type = options.enums === String ? $root.ibc.lightclients.solomachine.v1.DataType[message.data_type] : message.data_type; - if (message.data != null && message.hasOwnProperty("data")) - object.data = options.bytes === String ? $util.base64.encode(message.data, 0, message.data.length) : options.bytes === Array ? Array.prototype.slice.call(message.data) : message.data; - if (message.timestamp != null && message.hasOwnProperty("timestamp")) - if (typeof message.timestamp === "number") - object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp; - else - object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber(true) : message.timestamp; + if (options.defaults) + object.connection_id = ""; + if (message.connection_id != null && message.hasOwnProperty("connection_id")) + object.connection_id = message.connection_id; return object; }; /** - * Converts this SignatureAndData to JSON. + * Converts this QueryConnectionRequest to JSON. * @function toJSON - * @memberof ibc.lightclients.solomachine.v1.SignatureAndData + * @memberof ibc.core.connection.v1.QueryConnectionRequest * @instance * @returns {Object.} JSON object */ - SignatureAndData.prototype.toJSON = function toJSON() { + QueryConnectionRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return SignatureAndData; + return QueryConnectionRequest; })(); - v1.TimestampedSignatureData = (function() { + v1.QueryConnectionResponse = (function() { /** - * Properties of a TimestampedSignatureData. - * @memberof ibc.lightclients.solomachine.v1 - * @interface ITimestampedSignatureData - * @property {Uint8Array|null} [signature_data] TimestampedSignatureData signature_data - * @property {Long|null} [timestamp] TimestampedSignatureData timestamp + * Properties of a QueryConnectionResponse. + * @memberof ibc.core.connection.v1 + * @interface IQueryConnectionResponse + * @property {ibc.core.connection.v1.IConnectionEnd|null} [connection] QueryConnectionResponse connection + * @property {Uint8Array|null} [proof] QueryConnectionResponse proof + * @property {ibc.core.client.v1.IHeight|null} [proof_height] QueryConnectionResponse proof_height */ /** - * Constructs a new TimestampedSignatureData. - * @memberof ibc.lightclients.solomachine.v1 - * @classdesc Represents a TimestampedSignatureData. - * @implements ITimestampedSignatureData + * Constructs a new QueryConnectionResponse. + * @memberof ibc.core.connection.v1 + * @classdesc Represents a QueryConnectionResponse. + * @implements IQueryConnectionResponse * @constructor - * @param {ibc.lightclients.solomachine.v1.ITimestampedSignatureData=} [properties] Properties to set + * @param {ibc.core.connection.v1.IQueryConnectionResponse=} [properties] Properties to set */ - function TimestampedSignatureData(properties) { + function QueryConnectionResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -65815,76 +72135,89 @@ export const ibc = $root.ibc = (() => { } /** - * TimestampedSignatureData signature_data. - * @member {Uint8Array} signature_data - * @memberof ibc.lightclients.solomachine.v1.TimestampedSignatureData + * QueryConnectionResponse connection. + * @member {ibc.core.connection.v1.IConnectionEnd|null|undefined} connection + * @memberof ibc.core.connection.v1.QueryConnectionResponse * @instance */ - TimestampedSignatureData.prototype.signature_data = $util.newBuffer([]); + QueryConnectionResponse.prototype.connection = null; /** - * TimestampedSignatureData timestamp. - * @member {Long} timestamp - * @memberof ibc.lightclients.solomachine.v1.TimestampedSignatureData + * QueryConnectionResponse proof. + * @member {Uint8Array} proof + * @memberof ibc.core.connection.v1.QueryConnectionResponse * @instance */ - TimestampedSignatureData.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + QueryConnectionResponse.prototype.proof = $util.newBuffer([]); + + /** + * QueryConnectionResponse proof_height. + * @member {ibc.core.client.v1.IHeight|null|undefined} proof_height + * @memberof ibc.core.connection.v1.QueryConnectionResponse + * @instance + */ + QueryConnectionResponse.prototype.proof_height = null; /** - * Encodes the specified TimestampedSignatureData message. Does not implicitly {@link ibc.lightclients.solomachine.v1.TimestampedSignatureData.verify|verify} messages. + * Encodes the specified QueryConnectionResponse message. Does not implicitly {@link ibc.core.connection.v1.QueryConnectionResponse.verify|verify} messages. * @function encode - * @memberof ibc.lightclients.solomachine.v1.TimestampedSignatureData + * @memberof ibc.core.connection.v1.QueryConnectionResponse * @static - * @param {ibc.lightclients.solomachine.v1.ITimestampedSignatureData} message TimestampedSignatureData message or plain object to encode + * @param {ibc.core.connection.v1.IQueryConnectionResponse} message QueryConnectionResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TimestampedSignatureData.encode = function encode(message, writer) { + QueryConnectionResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.signature_data != null && Object.hasOwnProperty.call(message, "signature_data")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.signature_data); - if (message.timestamp != null && Object.hasOwnProperty.call(message, "timestamp")) - writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.timestamp); + if (message.connection != null && Object.hasOwnProperty.call(message, "connection")) + $root.ibc.core.connection.v1.ConnectionEnd.encode(message.connection, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.proof != null && Object.hasOwnProperty.call(message, "proof")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.proof); + if (message.proof_height != null && Object.hasOwnProperty.call(message, "proof_height")) + $root.ibc.core.client.v1.Height.encode(message.proof_height, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified TimestampedSignatureData message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v1.TimestampedSignatureData.verify|verify} messages. + * Encodes the specified QueryConnectionResponse message, length delimited. Does not implicitly {@link ibc.core.connection.v1.QueryConnectionResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.lightclients.solomachine.v1.TimestampedSignatureData + * @memberof ibc.core.connection.v1.QueryConnectionResponse * @static - * @param {ibc.lightclients.solomachine.v1.ITimestampedSignatureData} message TimestampedSignatureData message or plain object to encode + * @param {ibc.core.connection.v1.IQueryConnectionResponse} message QueryConnectionResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TimestampedSignatureData.encodeDelimited = function encodeDelimited(message, writer) { + QueryConnectionResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TimestampedSignatureData message from the specified reader or buffer. + * Decodes a QueryConnectionResponse message from the specified reader or buffer. * @function decode - * @memberof ibc.lightclients.solomachine.v1.TimestampedSignatureData + * @memberof ibc.core.connection.v1.QueryConnectionResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.lightclients.solomachine.v1.TimestampedSignatureData} TimestampedSignatureData + * @returns {ibc.core.connection.v1.QueryConnectionResponse} QueryConnectionResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TimestampedSignatureData.decode = function decode(reader, length) { + QueryConnectionResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.solomachine.v1.TimestampedSignatureData(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.connection.v1.QueryConnectionResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.signature_data = reader.bytes(); + message.connection = $root.ibc.core.connection.v1.ConnectionEnd.decode(reader, reader.uint32()); break; case 2: - message.timestamp = reader.uint64(); + message.proof = reader.bytes(); + break; + case 3: + message.proof_height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -65895,143 +72228,143 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a TimestampedSignatureData message from the specified reader or buffer, length delimited. + * Decodes a QueryConnectionResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.lightclients.solomachine.v1.TimestampedSignatureData + * @memberof ibc.core.connection.v1.QueryConnectionResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.lightclients.solomachine.v1.TimestampedSignatureData} TimestampedSignatureData + * @returns {ibc.core.connection.v1.QueryConnectionResponse} QueryConnectionResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TimestampedSignatureData.decodeDelimited = function decodeDelimited(reader) { + QueryConnectionResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TimestampedSignatureData message. + * Verifies a QueryConnectionResponse message. * @function verify - * @memberof ibc.lightclients.solomachine.v1.TimestampedSignatureData + * @memberof ibc.core.connection.v1.QueryConnectionResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TimestampedSignatureData.verify = function verify(message) { + QueryConnectionResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.signature_data != null && message.hasOwnProperty("signature_data")) - if (!(message.signature_data && typeof message.signature_data.length === "number" || $util.isString(message.signature_data))) - return "signature_data: buffer expected"; - if (message.timestamp != null && message.hasOwnProperty("timestamp")) - if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high))) - return "timestamp: integer|Long expected"; + if (message.connection != null && message.hasOwnProperty("connection")) { + let error = $root.ibc.core.connection.v1.ConnectionEnd.verify(message.connection); + if (error) + return "connection." + error; + } + if (message.proof != null && message.hasOwnProperty("proof")) + if (!(message.proof && typeof message.proof.length === "number" || $util.isString(message.proof))) + return "proof: buffer expected"; + if (message.proof_height != null && message.hasOwnProperty("proof_height")) { + let error = $root.ibc.core.client.v1.Height.verify(message.proof_height); + if (error) + return "proof_height." + error; + } return null; }; /** - * Creates a TimestampedSignatureData message from a plain object. Also converts values to their respective internal types. + * Creates a QueryConnectionResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.lightclients.solomachine.v1.TimestampedSignatureData + * @memberof ibc.core.connection.v1.QueryConnectionResponse * @static * @param {Object.} object Plain object - * @returns {ibc.lightclients.solomachine.v1.TimestampedSignatureData} TimestampedSignatureData + * @returns {ibc.core.connection.v1.QueryConnectionResponse} QueryConnectionResponse */ - TimestampedSignatureData.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.lightclients.solomachine.v1.TimestampedSignatureData) + QueryConnectionResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.connection.v1.QueryConnectionResponse) return object; - let message = new $root.ibc.lightclients.solomachine.v1.TimestampedSignatureData(); - if (object.signature_data != null) - if (typeof object.signature_data === "string") - $util.base64.decode(object.signature_data, message.signature_data = $util.newBuffer($util.base64.length(object.signature_data)), 0); - else if (object.signature_data.length) - message.signature_data = object.signature_data; - if (object.timestamp != null) - if ($util.Long) - (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true; - else if (typeof object.timestamp === "string") - message.timestamp = parseInt(object.timestamp, 10); - else if (typeof object.timestamp === "number") - message.timestamp = object.timestamp; - else if (typeof object.timestamp === "object") - message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true); + let message = new $root.ibc.core.connection.v1.QueryConnectionResponse(); + if (object.connection != null) { + if (typeof object.connection !== "object") + throw TypeError(".ibc.core.connection.v1.QueryConnectionResponse.connection: object expected"); + message.connection = $root.ibc.core.connection.v1.ConnectionEnd.fromObject(object.connection); + } + if (object.proof != null) + if (typeof object.proof === "string") + $util.base64.decode(object.proof, message.proof = $util.newBuffer($util.base64.length(object.proof)), 0); + else if (object.proof.length) + message.proof = object.proof; + if (object.proof_height != null) { + if (typeof object.proof_height !== "object") + throw TypeError(".ibc.core.connection.v1.QueryConnectionResponse.proof_height: object expected"); + message.proof_height = $root.ibc.core.client.v1.Height.fromObject(object.proof_height); + } return message; }; /** - * Creates a plain object from a TimestampedSignatureData message. Also converts values to other types if specified. + * Creates a plain object from a QueryConnectionResponse message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.lightclients.solomachine.v1.TimestampedSignatureData + * @memberof ibc.core.connection.v1.QueryConnectionResponse * @static - * @param {ibc.lightclients.solomachine.v1.TimestampedSignatureData} message TimestampedSignatureData + * @param {ibc.core.connection.v1.QueryConnectionResponse} message QueryConnectionResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TimestampedSignatureData.toObject = function toObject(message, options) { + QueryConnectionResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { + object.connection = null; if (options.bytes === String) - object.signature_data = ""; + object.proof = ""; else { - object.signature_data = []; + object.proof = []; if (options.bytes !== Array) - object.signature_data = $util.newBuffer(object.signature_data); + object.proof = $util.newBuffer(object.proof); } - if ($util.Long) { - let long = new $util.Long(0, 0, true); - object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.timestamp = options.longs === String ? "0" : 0; + object.proof_height = null; } - if (message.signature_data != null && message.hasOwnProperty("signature_data")) - object.signature_data = options.bytes === String ? $util.base64.encode(message.signature_data, 0, message.signature_data.length) : options.bytes === Array ? Array.prototype.slice.call(message.signature_data) : message.signature_data; - if (message.timestamp != null && message.hasOwnProperty("timestamp")) - if (typeof message.timestamp === "number") - object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp; - else - object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber(true) : message.timestamp; + if (message.connection != null && message.hasOwnProperty("connection")) + object.connection = $root.ibc.core.connection.v1.ConnectionEnd.toObject(message.connection, options); + if (message.proof != null && message.hasOwnProperty("proof")) + object.proof = options.bytes === String ? $util.base64.encode(message.proof, 0, message.proof.length) : options.bytes === Array ? Array.prototype.slice.call(message.proof) : message.proof; + if (message.proof_height != null && message.hasOwnProperty("proof_height")) + object.proof_height = $root.ibc.core.client.v1.Height.toObject(message.proof_height, options); return object; }; /** - * Converts this TimestampedSignatureData to JSON. + * Converts this QueryConnectionResponse to JSON. * @function toJSON - * @memberof ibc.lightclients.solomachine.v1.TimestampedSignatureData + * @memberof ibc.core.connection.v1.QueryConnectionResponse * @instance * @returns {Object.} JSON object */ - TimestampedSignatureData.prototype.toJSON = function toJSON() { + QueryConnectionResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return TimestampedSignatureData; + return QueryConnectionResponse; })(); - v1.SignBytes = (function() { + v1.QueryConnectionsRequest = (function() { /** - * Properties of a SignBytes. - * @memberof ibc.lightclients.solomachine.v1 - * @interface ISignBytes - * @property {Long|null} [sequence] SignBytes sequence - * @property {Long|null} [timestamp] SignBytes timestamp - * @property {string|null} [diversifier] SignBytes diversifier - * @property {ibc.lightclients.solomachine.v1.DataType|null} [data_type] SignBytes data_type - * @property {Uint8Array|null} [data] SignBytes data + * Properties of a QueryConnectionsRequest. + * @memberof ibc.core.connection.v1 + * @interface IQueryConnectionsRequest + * @property {cosmos.base.query.v1beta1.IPageRequest|null} [pagination] QueryConnectionsRequest pagination */ /** - * Constructs a new SignBytes. - * @memberof ibc.lightclients.solomachine.v1 - * @classdesc Represents a SignBytes. - * @implements ISignBytes + * Constructs a new QueryConnectionsRequest. + * @memberof ibc.core.connection.v1 + * @classdesc Represents a QueryConnectionsRequest. + * @implements IQueryConnectionsRequest * @constructor - * @param {ibc.lightclients.solomachine.v1.ISignBytes=} [properties] Properties to set + * @param {ibc.core.connection.v1.IQueryConnectionsRequest=} [properties] Properties to set */ - function SignBytes(properties) { + function QueryConnectionsRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -66039,115 +72372,63 @@ export const ibc = $root.ibc = (() => { } /** - * SignBytes sequence. - * @member {Long} sequence - * @memberof ibc.lightclients.solomachine.v1.SignBytes - * @instance - */ - SignBytes.prototype.sequence = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * SignBytes timestamp. - * @member {Long} timestamp - * @memberof ibc.lightclients.solomachine.v1.SignBytes - * @instance - */ - SignBytes.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * SignBytes diversifier. - * @member {string} diversifier - * @memberof ibc.lightclients.solomachine.v1.SignBytes - * @instance - */ - SignBytes.prototype.diversifier = ""; - - /** - * SignBytes data_type. - * @member {ibc.lightclients.solomachine.v1.DataType} data_type - * @memberof ibc.lightclients.solomachine.v1.SignBytes - * @instance - */ - SignBytes.prototype.data_type = 0; - - /** - * SignBytes data. - * @member {Uint8Array} data - * @memberof ibc.lightclients.solomachine.v1.SignBytes + * QueryConnectionsRequest pagination. + * @member {cosmos.base.query.v1beta1.IPageRequest|null|undefined} pagination + * @memberof ibc.core.connection.v1.QueryConnectionsRequest * @instance */ - SignBytes.prototype.data = $util.newBuffer([]); + QueryConnectionsRequest.prototype.pagination = null; /** - * Encodes the specified SignBytes message. Does not implicitly {@link ibc.lightclients.solomachine.v1.SignBytes.verify|verify} messages. + * Encodes the specified QueryConnectionsRequest message. Does not implicitly {@link ibc.core.connection.v1.QueryConnectionsRequest.verify|verify} messages. * @function encode - * @memberof ibc.lightclients.solomachine.v1.SignBytes + * @memberof ibc.core.connection.v1.QueryConnectionsRequest * @static - * @param {ibc.lightclients.solomachine.v1.ISignBytes} message SignBytes message or plain object to encode + * @param {ibc.core.connection.v1.IQueryConnectionsRequest} message QueryConnectionsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SignBytes.encode = function encode(message, writer) { + QueryConnectionsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.sequence != null && Object.hasOwnProperty.call(message, "sequence")) - writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.sequence); - if (message.timestamp != null && Object.hasOwnProperty.call(message, "timestamp")) - writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.timestamp); - if (message.diversifier != null && Object.hasOwnProperty.call(message, "diversifier")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.diversifier); - if (message.data_type != null && Object.hasOwnProperty.call(message, "data_type")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.data_type); - if (message.data != null && Object.hasOwnProperty.call(message, "data")) - writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.data); + if (message.pagination != null && Object.hasOwnProperty.call(message, "pagination")) + $root.cosmos.base.query.v1beta1.PageRequest.encode(message.pagination, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified SignBytes message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v1.SignBytes.verify|verify} messages. + * Encodes the specified QueryConnectionsRequest message, length delimited. Does not implicitly {@link ibc.core.connection.v1.QueryConnectionsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.lightclients.solomachine.v1.SignBytes + * @memberof ibc.core.connection.v1.QueryConnectionsRequest * @static - * @param {ibc.lightclients.solomachine.v1.ISignBytes} message SignBytes message or plain object to encode + * @param {ibc.core.connection.v1.IQueryConnectionsRequest} message QueryConnectionsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SignBytes.encodeDelimited = function encodeDelimited(message, writer) { + QueryConnectionsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SignBytes message from the specified reader or buffer. + * Decodes a QueryConnectionsRequest message from the specified reader or buffer. * @function decode - * @memberof ibc.lightclients.solomachine.v1.SignBytes + * @memberof ibc.core.connection.v1.QueryConnectionsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.lightclients.solomachine.v1.SignBytes} SignBytes + * @returns {ibc.core.connection.v1.QueryConnectionsRequest} QueryConnectionsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SignBytes.decode = function decode(reader, length) { + QueryConnectionsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.solomachine.v1.SignBytes(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.connection.v1.QueryConnectionsRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.sequence = reader.uint64(); - break; - case 2: - message.timestamp = reader.uint64(); - break; - case 3: - message.diversifier = reader.string(); - break; - case 4: - message.data_type = reader.int32(); - break; - case 5: - message.data = reader.bytes(); + message.pagination = $root.cosmos.base.query.v1beta1.PageRequest.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -66158,261 +72439,115 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a SignBytes message from the specified reader or buffer, length delimited. + * Decodes a QueryConnectionsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.lightclients.solomachine.v1.SignBytes + * @memberof ibc.core.connection.v1.QueryConnectionsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.lightclients.solomachine.v1.SignBytes} SignBytes + * @returns {ibc.core.connection.v1.QueryConnectionsRequest} QueryConnectionsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SignBytes.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SignBytes message. - * @function verify - * @memberof ibc.lightclients.solomachine.v1.SignBytes - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - SignBytes.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.sequence != null && message.hasOwnProperty("sequence")) - if (!$util.isInteger(message.sequence) && !(message.sequence && $util.isInteger(message.sequence.low) && $util.isInteger(message.sequence.high))) - return "sequence: integer|Long expected"; - if (message.timestamp != null && message.hasOwnProperty("timestamp")) - if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high))) - return "timestamp: integer|Long expected"; - if (message.diversifier != null && message.hasOwnProperty("diversifier")) - if (!$util.isString(message.diversifier)) - return "diversifier: string expected"; - if (message.data_type != null && message.hasOwnProperty("data_type")) - switch (message.data_type) { - default: - return "data_type: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - break; - } - if (message.data != null && message.hasOwnProperty("data")) - if (!(message.data && typeof message.data.length === "number" || $util.isString(message.data))) - return "data: buffer expected"; + QueryConnectionsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a QueryConnectionsRequest message. + * @function verify + * @memberof ibc.core.connection.v1.QueryConnectionsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + QueryConnectionsRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.pagination != null && message.hasOwnProperty("pagination")) { + let error = $root.cosmos.base.query.v1beta1.PageRequest.verify(message.pagination); + if (error) + return "pagination." + error; + } return null; }; /** - * Creates a SignBytes message from a plain object. Also converts values to their respective internal types. + * Creates a QueryConnectionsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.lightclients.solomachine.v1.SignBytes + * @memberof ibc.core.connection.v1.QueryConnectionsRequest * @static * @param {Object.} object Plain object - * @returns {ibc.lightclients.solomachine.v1.SignBytes} SignBytes + * @returns {ibc.core.connection.v1.QueryConnectionsRequest} QueryConnectionsRequest */ - SignBytes.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.lightclients.solomachine.v1.SignBytes) + QueryConnectionsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.connection.v1.QueryConnectionsRequest) return object; - let message = new $root.ibc.lightclients.solomachine.v1.SignBytes(); - if (object.sequence != null) - if ($util.Long) - (message.sequence = $util.Long.fromValue(object.sequence)).unsigned = true; - else if (typeof object.sequence === "string") - message.sequence = parseInt(object.sequence, 10); - else if (typeof object.sequence === "number") - message.sequence = object.sequence; - else if (typeof object.sequence === "object") - message.sequence = new $util.LongBits(object.sequence.low >>> 0, object.sequence.high >>> 0).toNumber(true); - if (object.timestamp != null) - if ($util.Long) - (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true; - else if (typeof object.timestamp === "string") - message.timestamp = parseInt(object.timestamp, 10); - else if (typeof object.timestamp === "number") - message.timestamp = object.timestamp; - else if (typeof object.timestamp === "object") - message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true); - if (object.diversifier != null) - message.diversifier = String(object.diversifier); - switch (object.data_type) { - case "DATA_TYPE_UNINITIALIZED_UNSPECIFIED": - case 0: - message.data_type = 0; - break; - case "DATA_TYPE_CLIENT_STATE": - case 1: - message.data_type = 1; - break; - case "DATA_TYPE_CONSENSUS_STATE": - case 2: - message.data_type = 2; - break; - case "DATA_TYPE_CONNECTION_STATE": - case 3: - message.data_type = 3; - break; - case "DATA_TYPE_CHANNEL_STATE": - case 4: - message.data_type = 4; - break; - case "DATA_TYPE_PACKET_COMMITMENT": - case 5: - message.data_type = 5; - break; - case "DATA_TYPE_PACKET_ACKNOWLEDGEMENT": - case 6: - message.data_type = 6; - break; - case "DATA_TYPE_PACKET_RECEIPT_ABSENCE": - case 7: - message.data_type = 7; - break; - case "DATA_TYPE_NEXT_SEQUENCE_RECV": - case 8: - message.data_type = 8; - break; - case "DATA_TYPE_HEADER": - case 9: - message.data_type = 9; - break; + let message = new $root.ibc.core.connection.v1.QueryConnectionsRequest(); + if (object.pagination != null) { + if (typeof object.pagination !== "object") + throw TypeError(".ibc.core.connection.v1.QueryConnectionsRequest.pagination: object expected"); + message.pagination = $root.cosmos.base.query.v1beta1.PageRequest.fromObject(object.pagination); } - if (object.data != null) - if (typeof object.data === "string") - $util.base64.decode(object.data, message.data = $util.newBuffer($util.base64.length(object.data)), 0); - else if (object.data.length) - message.data = object.data; return message; }; /** - * Creates a plain object from a SignBytes message. Also converts values to other types if specified. + * Creates a plain object from a QueryConnectionsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.lightclients.solomachine.v1.SignBytes + * @memberof ibc.core.connection.v1.QueryConnectionsRequest * @static - * @param {ibc.lightclients.solomachine.v1.SignBytes} message SignBytes + * @param {ibc.core.connection.v1.QueryConnectionsRequest} message QueryConnectionsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SignBytes.toObject = function toObject(message, options) { + QueryConnectionsRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) { - if ($util.Long) { - let long = new $util.Long(0, 0, true); - object.sequence = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.sequence = options.longs === String ? "0" : 0; - if ($util.Long) { - let long = new $util.Long(0, 0, true); - object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.timestamp = options.longs === String ? "0" : 0; - object.diversifier = ""; - object.data_type = options.enums === String ? "DATA_TYPE_UNINITIALIZED_UNSPECIFIED" : 0; - if (options.bytes === String) - object.data = ""; - else { - object.data = []; - if (options.bytes !== Array) - object.data = $util.newBuffer(object.data); - } - } - if (message.sequence != null && message.hasOwnProperty("sequence")) - if (typeof message.sequence === "number") - object.sequence = options.longs === String ? String(message.sequence) : message.sequence; - else - object.sequence = options.longs === String ? $util.Long.prototype.toString.call(message.sequence) : options.longs === Number ? new $util.LongBits(message.sequence.low >>> 0, message.sequence.high >>> 0).toNumber(true) : message.sequence; - if (message.timestamp != null && message.hasOwnProperty("timestamp")) - if (typeof message.timestamp === "number") - object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp; - else - object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber(true) : message.timestamp; - if (message.diversifier != null && message.hasOwnProperty("diversifier")) - object.diversifier = message.diversifier; - if (message.data_type != null && message.hasOwnProperty("data_type")) - object.data_type = options.enums === String ? $root.ibc.lightclients.solomachine.v1.DataType[message.data_type] : message.data_type; - if (message.data != null && message.hasOwnProperty("data")) - object.data = options.bytes === String ? $util.base64.encode(message.data, 0, message.data.length) : options.bytes === Array ? Array.prototype.slice.call(message.data) : message.data; + if (options.defaults) + object.pagination = null; + if (message.pagination != null && message.hasOwnProperty("pagination")) + object.pagination = $root.cosmos.base.query.v1beta1.PageRequest.toObject(message.pagination, options); return object; }; /** - * Converts this SignBytes to JSON. + * Converts this QueryConnectionsRequest to JSON. * @function toJSON - * @memberof ibc.lightclients.solomachine.v1.SignBytes + * @memberof ibc.core.connection.v1.QueryConnectionsRequest * @instance * @returns {Object.} JSON object */ - SignBytes.prototype.toJSON = function toJSON() { + QueryConnectionsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return SignBytes; - })(); - - /** - * DataType enum. - * @name ibc.lightclients.solomachine.v1.DataType - * @enum {number} - * @property {number} DATA_TYPE_UNINITIALIZED_UNSPECIFIED=0 DATA_TYPE_UNINITIALIZED_UNSPECIFIED value - * @property {number} DATA_TYPE_CLIENT_STATE=1 DATA_TYPE_CLIENT_STATE value - * @property {number} DATA_TYPE_CONSENSUS_STATE=2 DATA_TYPE_CONSENSUS_STATE value - * @property {number} DATA_TYPE_CONNECTION_STATE=3 DATA_TYPE_CONNECTION_STATE value - * @property {number} DATA_TYPE_CHANNEL_STATE=4 DATA_TYPE_CHANNEL_STATE value - * @property {number} DATA_TYPE_PACKET_COMMITMENT=5 DATA_TYPE_PACKET_COMMITMENT value - * @property {number} DATA_TYPE_PACKET_ACKNOWLEDGEMENT=6 DATA_TYPE_PACKET_ACKNOWLEDGEMENT value - * @property {number} DATA_TYPE_PACKET_RECEIPT_ABSENCE=7 DATA_TYPE_PACKET_RECEIPT_ABSENCE value - * @property {number} DATA_TYPE_NEXT_SEQUENCE_RECV=8 DATA_TYPE_NEXT_SEQUENCE_RECV value - * @property {number} DATA_TYPE_HEADER=9 DATA_TYPE_HEADER value - */ - v1.DataType = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "DATA_TYPE_UNINITIALIZED_UNSPECIFIED"] = 0; - values[valuesById[1] = "DATA_TYPE_CLIENT_STATE"] = 1; - values[valuesById[2] = "DATA_TYPE_CONSENSUS_STATE"] = 2; - values[valuesById[3] = "DATA_TYPE_CONNECTION_STATE"] = 3; - values[valuesById[4] = "DATA_TYPE_CHANNEL_STATE"] = 4; - values[valuesById[5] = "DATA_TYPE_PACKET_COMMITMENT"] = 5; - values[valuesById[6] = "DATA_TYPE_PACKET_ACKNOWLEDGEMENT"] = 6; - values[valuesById[7] = "DATA_TYPE_PACKET_RECEIPT_ABSENCE"] = 7; - values[valuesById[8] = "DATA_TYPE_NEXT_SEQUENCE_RECV"] = 8; - values[valuesById[9] = "DATA_TYPE_HEADER"] = 9; - return values; + return QueryConnectionsRequest; })(); - v1.HeaderData = (function() { + v1.QueryConnectionsResponse = (function() { /** - * Properties of a HeaderData. - * @memberof ibc.lightclients.solomachine.v1 - * @interface IHeaderData - * @property {google.protobuf.IAny|null} [new_pub_key] HeaderData new_pub_key - * @property {string|null} [new_diversifier] HeaderData new_diversifier + * Properties of a QueryConnectionsResponse. + * @memberof ibc.core.connection.v1 + * @interface IQueryConnectionsResponse + * @property {Array.|null} [connections] QueryConnectionsResponse connections + * @property {cosmos.base.query.v1beta1.IPageResponse|null} [pagination] QueryConnectionsResponse pagination + * @property {ibc.core.client.v1.IHeight|null} [height] QueryConnectionsResponse height */ /** - * Constructs a new HeaderData. - * @memberof ibc.lightclients.solomachine.v1 - * @classdesc Represents a HeaderData. - * @implements IHeaderData + * Constructs a new QueryConnectionsResponse. + * @memberof ibc.core.connection.v1 + * @classdesc Represents a QueryConnectionsResponse. + * @implements IQueryConnectionsResponse * @constructor - * @param {ibc.lightclients.solomachine.v1.IHeaderData=} [properties] Properties to set + * @param {ibc.core.connection.v1.IQueryConnectionsResponse=} [properties] Properties to set */ - function HeaderData(properties) { + function QueryConnectionsResponse(properties) { + this.connections = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -66420,76 +72555,92 @@ export const ibc = $root.ibc = (() => { } /** - * HeaderData new_pub_key. - * @member {google.protobuf.IAny|null|undefined} new_pub_key - * @memberof ibc.lightclients.solomachine.v1.HeaderData + * QueryConnectionsResponse connections. + * @member {Array.} connections + * @memberof ibc.core.connection.v1.QueryConnectionsResponse * @instance */ - HeaderData.prototype.new_pub_key = null; + QueryConnectionsResponse.prototype.connections = $util.emptyArray; /** - * HeaderData new_diversifier. - * @member {string} new_diversifier - * @memberof ibc.lightclients.solomachine.v1.HeaderData + * QueryConnectionsResponse pagination. + * @member {cosmos.base.query.v1beta1.IPageResponse|null|undefined} pagination + * @memberof ibc.core.connection.v1.QueryConnectionsResponse * @instance */ - HeaderData.prototype.new_diversifier = ""; + QueryConnectionsResponse.prototype.pagination = null; + + /** + * QueryConnectionsResponse height. + * @member {ibc.core.client.v1.IHeight|null|undefined} height + * @memberof ibc.core.connection.v1.QueryConnectionsResponse + * @instance + */ + QueryConnectionsResponse.prototype.height = null; /** - * Encodes the specified HeaderData message. Does not implicitly {@link ibc.lightclients.solomachine.v1.HeaderData.verify|verify} messages. + * Encodes the specified QueryConnectionsResponse message. Does not implicitly {@link ibc.core.connection.v1.QueryConnectionsResponse.verify|verify} messages. * @function encode - * @memberof ibc.lightclients.solomachine.v1.HeaderData + * @memberof ibc.core.connection.v1.QueryConnectionsResponse * @static - * @param {ibc.lightclients.solomachine.v1.IHeaderData} message HeaderData message or plain object to encode + * @param {ibc.core.connection.v1.IQueryConnectionsResponse} message QueryConnectionsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - HeaderData.encode = function encode(message, writer) { + QueryConnectionsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.new_pub_key != null && Object.hasOwnProperty.call(message, "new_pub_key")) - $root.google.protobuf.Any.encode(message.new_pub_key, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.new_diversifier != null && Object.hasOwnProperty.call(message, "new_diversifier")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.new_diversifier); + if (message.connections != null && message.connections.length) + for (let i = 0; i < message.connections.length; ++i) + $root.ibc.core.connection.v1.IdentifiedConnection.encode(message.connections[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.pagination != null && Object.hasOwnProperty.call(message, "pagination")) + $root.cosmos.base.query.v1beta1.PageResponse.encode(message.pagination, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.height != null && Object.hasOwnProperty.call(message, "height")) + $root.ibc.core.client.v1.Height.encode(message.height, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified HeaderData message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v1.HeaderData.verify|verify} messages. + * Encodes the specified QueryConnectionsResponse message, length delimited. Does not implicitly {@link ibc.core.connection.v1.QueryConnectionsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.lightclients.solomachine.v1.HeaderData + * @memberof ibc.core.connection.v1.QueryConnectionsResponse * @static - * @param {ibc.lightclients.solomachine.v1.IHeaderData} message HeaderData message or plain object to encode + * @param {ibc.core.connection.v1.IQueryConnectionsResponse} message QueryConnectionsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - HeaderData.encodeDelimited = function encodeDelimited(message, writer) { + QueryConnectionsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a HeaderData message from the specified reader or buffer. + * Decodes a QueryConnectionsResponse message from the specified reader or buffer. * @function decode - * @memberof ibc.lightclients.solomachine.v1.HeaderData + * @memberof ibc.core.connection.v1.QueryConnectionsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.lightclients.solomachine.v1.HeaderData} HeaderData + * @returns {ibc.core.connection.v1.QueryConnectionsResponse} QueryConnectionsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - HeaderData.decode = function decode(reader, length) { + QueryConnectionsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.solomachine.v1.HeaderData(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.connection.v1.QueryConnectionsResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.new_pub_key = $root.google.protobuf.Any.decode(reader, reader.uint32()); + if (!(message.connections && message.connections.length)) + message.connections = []; + message.connections.push($root.ibc.core.connection.v1.IdentifiedConnection.decode(reader, reader.uint32())); break; case 2: - message.new_diversifier = reader.string(); + message.pagination = $root.cosmos.base.query.v1beta1.PageResponse.decode(reader, reader.uint32()); + break; + case 3: + message.height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -66500,122 +72651,152 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a HeaderData message from the specified reader or buffer, length delimited. + * Decodes a QueryConnectionsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.lightclients.solomachine.v1.HeaderData + * @memberof ibc.core.connection.v1.QueryConnectionsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.lightclients.solomachine.v1.HeaderData} HeaderData + * @returns {ibc.core.connection.v1.QueryConnectionsResponse} QueryConnectionsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - HeaderData.decodeDelimited = function decodeDelimited(reader) { + QueryConnectionsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a HeaderData message. + * Verifies a QueryConnectionsResponse message. * @function verify - * @memberof ibc.lightclients.solomachine.v1.HeaderData + * @memberof ibc.core.connection.v1.QueryConnectionsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - HeaderData.verify = function verify(message) { + QueryConnectionsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.new_pub_key != null && message.hasOwnProperty("new_pub_key")) { - let error = $root.google.protobuf.Any.verify(message.new_pub_key); + if (message.connections != null && message.hasOwnProperty("connections")) { + if (!Array.isArray(message.connections)) + return "connections: array expected"; + for (let i = 0; i < message.connections.length; ++i) { + let error = $root.ibc.core.connection.v1.IdentifiedConnection.verify(message.connections[i]); + if (error) + return "connections." + error; + } + } + if (message.pagination != null && message.hasOwnProperty("pagination")) { + let error = $root.cosmos.base.query.v1beta1.PageResponse.verify(message.pagination); if (error) - return "new_pub_key." + error; + return "pagination." + error; + } + if (message.height != null && message.hasOwnProperty("height")) { + let error = $root.ibc.core.client.v1.Height.verify(message.height); + if (error) + return "height." + error; } - if (message.new_diversifier != null && message.hasOwnProperty("new_diversifier")) - if (!$util.isString(message.new_diversifier)) - return "new_diversifier: string expected"; return null; }; /** - * Creates a HeaderData message from a plain object. Also converts values to their respective internal types. + * Creates a QueryConnectionsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.lightclients.solomachine.v1.HeaderData + * @memberof ibc.core.connection.v1.QueryConnectionsResponse * @static * @param {Object.} object Plain object - * @returns {ibc.lightclients.solomachine.v1.HeaderData} HeaderData + * @returns {ibc.core.connection.v1.QueryConnectionsResponse} QueryConnectionsResponse */ - HeaderData.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.lightclients.solomachine.v1.HeaderData) + QueryConnectionsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.connection.v1.QueryConnectionsResponse) return object; - let message = new $root.ibc.lightclients.solomachine.v1.HeaderData(); - if (object.new_pub_key != null) { - if (typeof object.new_pub_key !== "object") - throw TypeError(".ibc.lightclients.solomachine.v1.HeaderData.new_pub_key: object expected"); - message.new_pub_key = $root.google.protobuf.Any.fromObject(object.new_pub_key); + let message = new $root.ibc.core.connection.v1.QueryConnectionsResponse(); + if (object.connections) { + if (!Array.isArray(object.connections)) + throw TypeError(".ibc.core.connection.v1.QueryConnectionsResponse.connections: array expected"); + message.connections = []; + for (let i = 0; i < object.connections.length; ++i) { + if (typeof object.connections[i] !== "object") + throw TypeError(".ibc.core.connection.v1.QueryConnectionsResponse.connections: object expected"); + message.connections[i] = $root.ibc.core.connection.v1.IdentifiedConnection.fromObject(object.connections[i]); + } + } + if (object.pagination != null) { + if (typeof object.pagination !== "object") + throw TypeError(".ibc.core.connection.v1.QueryConnectionsResponse.pagination: object expected"); + message.pagination = $root.cosmos.base.query.v1beta1.PageResponse.fromObject(object.pagination); + } + if (object.height != null) { + if (typeof object.height !== "object") + throw TypeError(".ibc.core.connection.v1.QueryConnectionsResponse.height: object expected"); + message.height = $root.ibc.core.client.v1.Height.fromObject(object.height); } - if (object.new_diversifier != null) - message.new_diversifier = String(object.new_diversifier); return message; }; /** - * Creates a plain object from a HeaderData message. Also converts values to other types if specified. + * Creates a plain object from a QueryConnectionsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.lightclients.solomachine.v1.HeaderData + * @memberof ibc.core.connection.v1.QueryConnectionsResponse * @static - * @param {ibc.lightclients.solomachine.v1.HeaderData} message HeaderData + * @param {ibc.core.connection.v1.QueryConnectionsResponse} message QueryConnectionsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - HeaderData.toObject = function toObject(message, options) { + QueryConnectionsResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; + if (options.arrays || options.defaults) + object.connections = []; if (options.defaults) { - object.new_pub_key = null; - object.new_diversifier = ""; + object.pagination = null; + object.height = null; } - if (message.new_pub_key != null && message.hasOwnProperty("new_pub_key")) - object.new_pub_key = $root.google.protobuf.Any.toObject(message.new_pub_key, options); - if (message.new_diversifier != null && message.hasOwnProperty("new_diversifier")) - object.new_diversifier = message.new_diversifier; + if (message.connections && message.connections.length) { + object.connections = []; + for (let j = 0; j < message.connections.length; ++j) + object.connections[j] = $root.ibc.core.connection.v1.IdentifiedConnection.toObject(message.connections[j], options); + } + if (message.pagination != null && message.hasOwnProperty("pagination")) + object.pagination = $root.cosmos.base.query.v1beta1.PageResponse.toObject(message.pagination, options); + if (message.height != null && message.hasOwnProperty("height")) + object.height = $root.ibc.core.client.v1.Height.toObject(message.height, options); return object; }; /** - * Converts this HeaderData to JSON. + * Converts this QueryConnectionsResponse to JSON. * @function toJSON - * @memberof ibc.lightclients.solomachine.v1.HeaderData + * @memberof ibc.core.connection.v1.QueryConnectionsResponse * @instance * @returns {Object.} JSON object */ - HeaderData.prototype.toJSON = function toJSON() { + QueryConnectionsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return HeaderData; + return QueryConnectionsResponse; })(); - v1.ClientStateData = (function() { + v1.QueryClientConnectionsRequest = (function() { /** - * Properties of a ClientStateData. - * @memberof ibc.lightclients.solomachine.v1 - * @interface IClientStateData - * @property {Uint8Array|null} [path] ClientStateData path - * @property {google.protobuf.IAny|null} [client_state] ClientStateData client_state + * Properties of a QueryClientConnectionsRequest. + * @memberof ibc.core.connection.v1 + * @interface IQueryClientConnectionsRequest + * @property {string|null} [client_id] QueryClientConnectionsRequest client_id */ /** - * Constructs a new ClientStateData. - * @memberof ibc.lightclients.solomachine.v1 - * @classdesc Represents a ClientStateData. - * @implements IClientStateData + * Constructs a new QueryClientConnectionsRequest. + * @memberof ibc.core.connection.v1 + * @classdesc Represents a QueryClientConnectionsRequest. + * @implements IQueryClientConnectionsRequest * @constructor - * @param {ibc.lightclients.solomachine.v1.IClientStateData=} [properties] Properties to set + * @param {ibc.core.connection.v1.IQueryClientConnectionsRequest=} [properties] Properties to set */ - function ClientStateData(properties) { + function QueryClientConnectionsRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -66623,76 +72804,63 @@ export const ibc = $root.ibc = (() => { } /** - * ClientStateData path. - * @member {Uint8Array} path - * @memberof ibc.lightclients.solomachine.v1.ClientStateData - * @instance - */ - ClientStateData.prototype.path = $util.newBuffer([]); - - /** - * ClientStateData client_state. - * @member {google.protobuf.IAny|null|undefined} client_state - * @memberof ibc.lightclients.solomachine.v1.ClientStateData + * QueryClientConnectionsRequest client_id. + * @member {string} client_id + * @memberof ibc.core.connection.v1.QueryClientConnectionsRequest * @instance */ - ClientStateData.prototype.client_state = null; + QueryClientConnectionsRequest.prototype.client_id = ""; /** - * Encodes the specified ClientStateData message. Does not implicitly {@link ibc.lightclients.solomachine.v1.ClientStateData.verify|verify} messages. + * Encodes the specified QueryClientConnectionsRequest message. Does not implicitly {@link ibc.core.connection.v1.QueryClientConnectionsRequest.verify|verify} messages. * @function encode - * @memberof ibc.lightclients.solomachine.v1.ClientStateData + * @memberof ibc.core.connection.v1.QueryClientConnectionsRequest * @static - * @param {ibc.lightclients.solomachine.v1.IClientStateData} message ClientStateData message or plain object to encode + * @param {ibc.core.connection.v1.IQueryClientConnectionsRequest} message QueryClientConnectionsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ClientStateData.encode = function encode(message, writer) { + QueryClientConnectionsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.path != null && Object.hasOwnProperty.call(message, "path")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.path); - if (message.client_state != null && Object.hasOwnProperty.call(message, "client_state")) - $root.google.protobuf.Any.encode(message.client_state, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.client_id != null && Object.hasOwnProperty.call(message, "client_id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.client_id); return writer; }; /** - * Encodes the specified ClientStateData message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v1.ClientStateData.verify|verify} messages. + * Encodes the specified QueryClientConnectionsRequest message, length delimited. Does not implicitly {@link ibc.core.connection.v1.QueryClientConnectionsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.lightclients.solomachine.v1.ClientStateData + * @memberof ibc.core.connection.v1.QueryClientConnectionsRequest * @static - * @param {ibc.lightclients.solomachine.v1.IClientStateData} message ClientStateData message or plain object to encode + * @param {ibc.core.connection.v1.IQueryClientConnectionsRequest} message QueryClientConnectionsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ClientStateData.encodeDelimited = function encodeDelimited(message, writer) { + QueryClientConnectionsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ClientStateData message from the specified reader or buffer. + * Decodes a QueryClientConnectionsRequest message from the specified reader or buffer. * @function decode - * @memberof ibc.lightclients.solomachine.v1.ClientStateData + * @memberof ibc.core.connection.v1.QueryClientConnectionsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.lightclients.solomachine.v1.ClientStateData} ClientStateData + * @returns {ibc.core.connection.v1.QueryClientConnectionsRequest} QueryClientConnectionsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ClientStateData.decode = function decode(reader, length) { + QueryClientConnectionsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.solomachine.v1.ClientStateData(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.connection.v1.QueryClientConnectionsRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.path = reader.bytes(); - break; - case 2: - message.client_state = $root.google.protobuf.Any.decode(reader, reader.uint32()); + message.client_id = reader.string(); break; default: reader.skipType(tag & 7); @@ -66703,131 +72871,110 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a ClientStateData message from the specified reader or buffer, length delimited. + * Decodes a QueryClientConnectionsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.lightclients.solomachine.v1.ClientStateData + * @memberof ibc.core.connection.v1.QueryClientConnectionsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.lightclients.solomachine.v1.ClientStateData} ClientStateData + * @returns {ibc.core.connection.v1.QueryClientConnectionsRequest} QueryClientConnectionsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ClientStateData.decodeDelimited = function decodeDelimited(reader) { + QueryClientConnectionsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ClientStateData message. + * Verifies a QueryClientConnectionsRequest message. * @function verify - * @memberof ibc.lightclients.solomachine.v1.ClientStateData + * @memberof ibc.core.connection.v1.QueryClientConnectionsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ClientStateData.verify = function verify(message) { + QueryClientConnectionsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.path != null && message.hasOwnProperty("path")) - if (!(message.path && typeof message.path.length === "number" || $util.isString(message.path))) - return "path: buffer expected"; - if (message.client_state != null && message.hasOwnProperty("client_state")) { - let error = $root.google.protobuf.Any.verify(message.client_state); - if (error) - return "client_state." + error; - } + if (message.client_id != null && message.hasOwnProperty("client_id")) + if (!$util.isString(message.client_id)) + return "client_id: string expected"; return null; }; /** - * Creates a ClientStateData message from a plain object. Also converts values to their respective internal types. + * Creates a QueryClientConnectionsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.lightclients.solomachine.v1.ClientStateData + * @memberof ibc.core.connection.v1.QueryClientConnectionsRequest * @static * @param {Object.} object Plain object - * @returns {ibc.lightclients.solomachine.v1.ClientStateData} ClientStateData + * @returns {ibc.core.connection.v1.QueryClientConnectionsRequest} QueryClientConnectionsRequest */ - ClientStateData.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.lightclients.solomachine.v1.ClientStateData) + QueryClientConnectionsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.connection.v1.QueryClientConnectionsRequest) return object; - let message = new $root.ibc.lightclients.solomachine.v1.ClientStateData(); - if (object.path != null) - if (typeof object.path === "string") - $util.base64.decode(object.path, message.path = $util.newBuffer($util.base64.length(object.path)), 0); - else if (object.path.length) - message.path = object.path; - if (object.client_state != null) { - if (typeof object.client_state !== "object") - throw TypeError(".ibc.lightclients.solomachine.v1.ClientStateData.client_state: object expected"); - message.client_state = $root.google.protobuf.Any.fromObject(object.client_state); - } + let message = new $root.ibc.core.connection.v1.QueryClientConnectionsRequest(); + if (object.client_id != null) + message.client_id = String(object.client_id); return message; }; /** - * Creates a plain object from a ClientStateData message. Also converts values to other types if specified. + * Creates a plain object from a QueryClientConnectionsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.lightclients.solomachine.v1.ClientStateData + * @memberof ibc.core.connection.v1.QueryClientConnectionsRequest * @static - * @param {ibc.lightclients.solomachine.v1.ClientStateData} message ClientStateData + * @param {ibc.core.connection.v1.QueryClientConnectionsRequest} message QueryClientConnectionsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ClientStateData.toObject = function toObject(message, options) { + QueryClientConnectionsRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) { - if (options.bytes === String) - object.path = ""; - else { - object.path = []; - if (options.bytes !== Array) - object.path = $util.newBuffer(object.path); - } - object.client_state = null; - } - if (message.path != null && message.hasOwnProperty("path")) - object.path = options.bytes === String ? $util.base64.encode(message.path, 0, message.path.length) : options.bytes === Array ? Array.prototype.slice.call(message.path) : message.path; - if (message.client_state != null && message.hasOwnProperty("client_state")) - object.client_state = $root.google.protobuf.Any.toObject(message.client_state, options); + if (options.defaults) + object.client_id = ""; + if (message.client_id != null && message.hasOwnProperty("client_id")) + object.client_id = message.client_id; return object; }; /** - * Converts this ClientStateData to JSON. + * Converts this QueryClientConnectionsRequest to JSON. * @function toJSON - * @memberof ibc.lightclients.solomachine.v1.ClientStateData + * @memberof ibc.core.connection.v1.QueryClientConnectionsRequest * @instance * @returns {Object.} JSON object */ - ClientStateData.prototype.toJSON = function toJSON() { + QueryClientConnectionsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ClientStateData; + return QueryClientConnectionsRequest; })(); - v1.ConsensusStateData = (function() { + v1.QueryClientConnectionsResponse = (function() { /** - * Properties of a ConsensusStateData. - * @memberof ibc.lightclients.solomachine.v1 - * @interface IConsensusStateData - * @property {Uint8Array|null} [path] ConsensusStateData path - * @property {google.protobuf.IAny|null} [consensus_state] ConsensusStateData consensus_state + * Properties of a QueryClientConnectionsResponse. + * @memberof ibc.core.connection.v1 + * @interface IQueryClientConnectionsResponse + * @property {Array.|null} [connection_paths] QueryClientConnectionsResponse connection_paths + * @property {Uint8Array|null} [proof] QueryClientConnectionsResponse proof + * @property {ibc.core.client.v1.IHeight|null} [proof_height] QueryClientConnectionsResponse proof_height */ /** - * Constructs a new ConsensusStateData. - * @memberof ibc.lightclients.solomachine.v1 - * @classdesc Represents a ConsensusStateData. - * @implements IConsensusStateData + * Constructs a new QueryClientConnectionsResponse. + * @memberof ibc.core.connection.v1 + * @classdesc Represents a QueryClientConnectionsResponse. + * @implements IQueryClientConnectionsResponse * @constructor - * @param {ibc.lightclients.solomachine.v1.IConsensusStateData=} [properties] Properties to set + * @param {ibc.core.connection.v1.IQueryClientConnectionsResponse=} [properties] Properties to set */ - function ConsensusStateData(properties) { + function QueryClientConnectionsResponse(properties) { + this.connection_paths = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -66835,76 +72982,92 @@ export const ibc = $root.ibc = (() => { } /** - * ConsensusStateData path. - * @member {Uint8Array} path - * @memberof ibc.lightclients.solomachine.v1.ConsensusStateData + * QueryClientConnectionsResponse connection_paths. + * @member {Array.} connection_paths + * @memberof ibc.core.connection.v1.QueryClientConnectionsResponse * @instance */ - ConsensusStateData.prototype.path = $util.newBuffer([]); + QueryClientConnectionsResponse.prototype.connection_paths = $util.emptyArray; /** - * ConsensusStateData consensus_state. - * @member {google.protobuf.IAny|null|undefined} consensus_state - * @memberof ibc.lightclients.solomachine.v1.ConsensusStateData + * QueryClientConnectionsResponse proof. + * @member {Uint8Array} proof + * @memberof ibc.core.connection.v1.QueryClientConnectionsResponse * @instance */ - ConsensusStateData.prototype.consensus_state = null; + QueryClientConnectionsResponse.prototype.proof = $util.newBuffer([]); /** - * Encodes the specified ConsensusStateData message. Does not implicitly {@link ibc.lightclients.solomachine.v1.ConsensusStateData.verify|verify} messages. + * QueryClientConnectionsResponse proof_height. + * @member {ibc.core.client.v1.IHeight|null|undefined} proof_height + * @memberof ibc.core.connection.v1.QueryClientConnectionsResponse + * @instance + */ + QueryClientConnectionsResponse.prototype.proof_height = null; + + /** + * Encodes the specified QueryClientConnectionsResponse message. Does not implicitly {@link ibc.core.connection.v1.QueryClientConnectionsResponse.verify|verify} messages. * @function encode - * @memberof ibc.lightclients.solomachine.v1.ConsensusStateData + * @memberof ibc.core.connection.v1.QueryClientConnectionsResponse * @static - * @param {ibc.lightclients.solomachine.v1.IConsensusStateData} message ConsensusStateData message or plain object to encode + * @param {ibc.core.connection.v1.IQueryClientConnectionsResponse} message QueryClientConnectionsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ConsensusStateData.encode = function encode(message, writer) { + QueryClientConnectionsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.path != null && Object.hasOwnProperty.call(message, "path")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.path); - if (message.consensus_state != null && Object.hasOwnProperty.call(message, "consensus_state")) - $root.google.protobuf.Any.encode(message.consensus_state, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.connection_paths != null && message.connection_paths.length) + for (let i = 0; i < message.connection_paths.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.connection_paths[i]); + if (message.proof != null && Object.hasOwnProperty.call(message, "proof")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.proof); + if (message.proof_height != null && Object.hasOwnProperty.call(message, "proof_height")) + $root.ibc.core.client.v1.Height.encode(message.proof_height, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified ConsensusStateData message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v1.ConsensusStateData.verify|verify} messages. + * Encodes the specified QueryClientConnectionsResponse message, length delimited. Does not implicitly {@link ibc.core.connection.v1.QueryClientConnectionsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.lightclients.solomachine.v1.ConsensusStateData + * @memberof ibc.core.connection.v1.QueryClientConnectionsResponse * @static - * @param {ibc.lightclients.solomachine.v1.IConsensusStateData} message ConsensusStateData message or plain object to encode + * @param {ibc.core.connection.v1.IQueryClientConnectionsResponse} message QueryClientConnectionsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ConsensusStateData.encodeDelimited = function encodeDelimited(message, writer) { + QueryClientConnectionsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ConsensusStateData message from the specified reader or buffer. + * Decodes a QueryClientConnectionsResponse message from the specified reader or buffer. * @function decode - * @memberof ibc.lightclients.solomachine.v1.ConsensusStateData + * @memberof ibc.core.connection.v1.QueryClientConnectionsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.lightclients.solomachine.v1.ConsensusStateData} ConsensusStateData + * @returns {ibc.core.connection.v1.QueryClientConnectionsResponse} QueryClientConnectionsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ConsensusStateData.decode = function decode(reader, length) { + QueryClientConnectionsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.solomachine.v1.ConsensusStateData(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.connection.v1.QueryClientConnectionsResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.path = reader.bytes(); + if (!(message.connection_paths && message.connection_paths.length)) + message.connection_paths = []; + message.connection_paths.push(reader.string()); break; case 2: - message.consensus_state = $root.google.protobuf.Any.decode(reader, reader.uint32()); + message.proof = reader.bytes(); + break; + case 3: + message.proof_height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -66915,131 +73078,151 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a ConsensusStateData message from the specified reader or buffer, length delimited. + * Decodes a QueryClientConnectionsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.lightclients.solomachine.v1.ConsensusStateData + * @memberof ibc.core.connection.v1.QueryClientConnectionsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.lightclients.solomachine.v1.ConsensusStateData} ConsensusStateData + * @returns {ibc.core.connection.v1.QueryClientConnectionsResponse} QueryClientConnectionsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ConsensusStateData.decodeDelimited = function decodeDelimited(reader) { + QueryClientConnectionsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ConsensusStateData message. + * Verifies a QueryClientConnectionsResponse message. * @function verify - * @memberof ibc.lightclients.solomachine.v1.ConsensusStateData + * @memberof ibc.core.connection.v1.QueryClientConnectionsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ConsensusStateData.verify = function verify(message) { + QueryClientConnectionsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.path != null && message.hasOwnProperty("path")) - if (!(message.path && typeof message.path.length === "number" || $util.isString(message.path))) - return "path: buffer expected"; - if (message.consensus_state != null && message.hasOwnProperty("consensus_state")) { - let error = $root.google.protobuf.Any.verify(message.consensus_state); + if (message.connection_paths != null && message.hasOwnProperty("connection_paths")) { + if (!Array.isArray(message.connection_paths)) + return "connection_paths: array expected"; + for (let i = 0; i < message.connection_paths.length; ++i) + if (!$util.isString(message.connection_paths[i])) + return "connection_paths: string[] expected"; + } + if (message.proof != null && message.hasOwnProperty("proof")) + if (!(message.proof && typeof message.proof.length === "number" || $util.isString(message.proof))) + return "proof: buffer expected"; + if (message.proof_height != null && message.hasOwnProperty("proof_height")) { + let error = $root.ibc.core.client.v1.Height.verify(message.proof_height); if (error) - return "consensus_state." + error; + return "proof_height." + error; } return null; }; /** - * Creates a ConsensusStateData message from a plain object. Also converts values to their respective internal types. + * Creates a QueryClientConnectionsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.lightclients.solomachine.v1.ConsensusStateData + * @memberof ibc.core.connection.v1.QueryClientConnectionsResponse * @static * @param {Object.} object Plain object - * @returns {ibc.lightclients.solomachine.v1.ConsensusStateData} ConsensusStateData + * @returns {ibc.core.connection.v1.QueryClientConnectionsResponse} QueryClientConnectionsResponse */ - ConsensusStateData.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.lightclients.solomachine.v1.ConsensusStateData) + QueryClientConnectionsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.connection.v1.QueryClientConnectionsResponse) return object; - let message = new $root.ibc.lightclients.solomachine.v1.ConsensusStateData(); - if (object.path != null) - if (typeof object.path === "string") - $util.base64.decode(object.path, message.path = $util.newBuffer($util.base64.length(object.path)), 0); - else if (object.path.length) - message.path = object.path; - if (object.consensus_state != null) { - if (typeof object.consensus_state !== "object") - throw TypeError(".ibc.lightclients.solomachine.v1.ConsensusStateData.consensus_state: object expected"); - message.consensus_state = $root.google.protobuf.Any.fromObject(object.consensus_state); + let message = new $root.ibc.core.connection.v1.QueryClientConnectionsResponse(); + if (object.connection_paths) { + if (!Array.isArray(object.connection_paths)) + throw TypeError(".ibc.core.connection.v1.QueryClientConnectionsResponse.connection_paths: array expected"); + message.connection_paths = []; + for (let i = 0; i < object.connection_paths.length; ++i) + message.connection_paths[i] = String(object.connection_paths[i]); + } + if (object.proof != null) + if (typeof object.proof === "string") + $util.base64.decode(object.proof, message.proof = $util.newBuffer($util.base64.length(object.proof)), 0); + else if (object.proof.length) + message.proof = object.proof; + if (object.proof_height != null) { + if (typeof object.proof_height !== "object") + throw TypeError(".ibc.core.connection.v1.QueryClientConnectionsResponse.proof_height: object expected"); + message.proof_height = $root.ibc.core.client.v1.Height.fromObject(object.proof_height); } return message; }; /** - * Creates a plain object from a ConsensusStateData message. Also converts values to other types if specified. + * Creates a plain object from a QueryClientConnectionsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.lightclients.solomachine.v1.ConsensusStateData + * @memberof ibc.core.connection.v1.QueryClientConnectionsResponse * @static - * @param {ibc.lightclients.solomachine.v1.ConsensusStateData} message ConsensusStateData + * @param {ibc.core.connection.v1.QueryClientConnectionsResponse} message QueryClientConnectionsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ConsensusStateData.toObject = function toObject(message, options) { + QueryClientConnectionsResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; + if (options.arrays || options.defaults) + object.connection_paths = []; if (options.defaults) { if (options.bytes === String) - object.path = ""; + object.proof = ""; else { - object.path = []; + object.proof = []; if (options.bytes !== Array) - object.path = $util.newBuffer(object.path); + object.proof = $util.newBuffer(object.proof); } - object.consensus_state = null; + object.proof_height = null; } - if (message.path != null && message.hasOwnProperty("path")) - object.path = options.bytes === String ? $util.base64.encode(message.path, 0, message.path.length) : options.bytes === Array ? Array.prototype.slice.call(message.path) : message.path; - if (message.consensus_state != null && message.hasOwnProperty("consensus_state")) - object.consensus_state = $root.google.protobuf.Any.toObject(message.consensus_state, options); + if (message.connection_paths && message.connection_paths.length) { + object.connection_paths = []; + for (let j = 0; j < message.connection_paths.length; ++j) + object.connection_paths[j] = message.connection_paths[j]; + } + if (message.proof != null && message.hasOwnProperty("proof")) + object.proof = options.bytes === String ? $util.base64.encode(message.proof, 0, message.proof.length) : options.bytes === Array ? Array.prototype.slice.call(message.proof) : message.proof; + if (message.proof_height != null && message.hasOwnProperty("proof_height")) + object.proof_height = $root.ibc.core.client.v1.Height.toObject(message.proof_height, options); return object; }; /** - * Converts this ConsensusStateData to JSON. + * Converts this QueryClientConnectionsResponse to JSON. * @function toJSON - * @memberof ibc.lightclients.solomachine.v1.ConsensusStateData + * @memberof ibc.core.connection.v1.QueryClientConnectionsResponse * @instance * @returns {Object.} JSON object */ - ConsensusStateData.prototype.toJSON = function toJSON() { + QueryClientConnectionsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ConsensusStateData; + return QueryClientConnectionsResponse; })(); - v1.ConnectionStateData = (function() { + v1.QueryConnectionClientStateRequest = (function() { /** - * Properties of a ConnectionStateData. - * @memberof ibc.lightclients.solomachine.v1 - * @interface IConnectionStateData - * @property {Uint8Array|null} [path] ConnectionStateData path - * @property {ibc.core.connection.v1.IConnectionEnd|null} [connection] ConnectionStateData connection + * Properties of a QueryConnectionClientStateRequest. + * @memberof ibc.core.connection.v1 + * @interface IQueryConnectionClientStateRequest + * @property {string|null} [connection_id] QueryConnectionClientStateRequest connection_id */ /** - * Constructs a new ConnectionStateData. - * @memberof ibc.lightclients.solomachine.v1 - * @classdesc Represents a ConnectionStateData. - * @implements IConnectionStateData + * Constructs a new QueryConnectionClientStateRequest. + * @memberof ibc.core.connection.v1 + * @classdesc Represents a QueryConnectionClientStateRequest. + * @implements IQueryConnectionClientStateRequest * @constructor - * @param {ibc.lightclients.solomachine.v1.IConnectionStateData=} [properties] Properties to set + * @param {ibc.core.connection.v1.IQueryConnectionClientStateRequest=} [properties] Properties to set */ - function ConnectionStateData(properties) { + function QueryConnectionClientStateRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -67047,76 +73230,63 @@ export const ibc = $root.ibc = (() => { } /** - * ConnectionStateData path. - * @member {Uint8Array} path - * @memberof ibc.lightclients.solomachine.v1.ConnectionStateData - * @instance - */ - ConnectionStateData.prototype.path = $util.newBuffer([]); - - /** - * ConnectionStateData connection. - * @member {ibc.core.connection.v1.IConnectionEnd|null|undefined} connection - * @memberof ibc.lightclients.solomachine.v1.ConnectionStateData + * QueryConnectionClientStateRequest connection_id. + * @member {string} connection_id + * @memberof ibc.core.connection.v1.QueryConnectionClientStateRequest * @instance */ - ConnectionStateData.prototype.connection = null; + QueryConnectionClientStateRequest.prototype.connection_id = ""; /** - * Encodes the specified ConnectionStateData message. Does not implicitly {@link ibc.lightclients.solomachine.v1.ConnectionStateData.verify|verify} messages. + * Encodes the specified QueryConnectionClientStateRequest message. Does not implicitly {@link ibc.core.connection.v1.QueryConnectionClientStateRequest.verify|verify} messages. * @function encode - * @memberof ibc.lightclients.solomachine.v1.ConnectionStateData + * @memberof ibc.core.connection.v1.QueryConnectionClientStateRequest * @static - * @param {ibc.lightclients.solomachine.v1.IConnectionStateData} message ConnectionStateData message or plain object to encode + * @param {ibc.core.connection.v1.IQueryConnectionClientStateRequest} message QueryConnectionClientStateRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ConnectionStateData.encode = function encode(message, writer) { + QueryConnectionClientStateRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.path != null && Object.hasOwnProperty.call(message, "path")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.path); - if (message.connection != null && Object.hasOwnProperty.call(message, "connection")) - $root.ibc.core.connection.v1.ConnectionEnd.encode(message.connection, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.connection_id != null && Object.hasOwnProperty.call(message, "connection_id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.connection_id); return writer; }; /** - * Encodes the specified ConnectionStateData message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v1.ConnectionStateData.verify|verify} messages. + * Encodes the specified QueryConnectionClientStateRequest message, length delimited. Does not implicitly {@link ibc.core.connection.v1.QueryConnectionClientStateRequest.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.lightclients.solomachine.v1.ConnectionStateData + * @memberof ibc.core.connection.v1.QueryConnectionClientStateRequest * @static - * @param {ibc.lightclients.solomachine.v1.IConnectionStateData} message ConnectionStateData message or plain object to encode + * @param {ibc.core.connection.v1.IQueryConnectionClientStateRequest} message QueryConnectionClientStateRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ConnectionStateData.encodeDelimited = function encodeDelimited(message, writer) { + QueryConnectionClientStateRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ConnectionStateData message from the specified reader or buffer. + * Decodes a QueryConnectionClientStateRequest message from the specified reader or buffer. * @function decode - * @memberof ibc.lightclients.solomachine.v1.ConnectionStateData + * @memberof ibc.core.connection.v1.QueryConnectionClientStateRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.lightclients.solomachine.v1.ConnectionStateData} ConnectionStateData + * @returns {ibc.core.connection.v1.QueryConnectionClientStateRequest} QueryConnectionClientStateRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ConnectionStateData.decode = function decode(reader, length) { + QueryConnectionClientStateRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.solomachine.v1.ConnectionStateData(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.connection.v1.QueryConnectionClientStateRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.path = reader.bytes(); - break; - case 2: - message.connection = $root.ibc.core.connection.v1.ConnectionEnd.decode(reader, reader.uint32()); + message.connection_id = reader.string(); break; default: reader.skipType(tag & 7); @@ -67127,131 +73297,109 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a ConnectionStateData message from the specified reader or buffer, length delimited. + * Decodes a QueryConnectionClientStateRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.lightclients.solomachine.v1.ConnectionStateData + * @memberof ibc.core.connection.v1.QueryConnectionClientStateRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.lightclients.solomachine.v1.ConnectionStateData} ConnectionStateData + * @returns {ibc.core.connection.v1.QueryConnectionClientStateRequest} QueryConnectionClientStateRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ConnectionStateData.decodeDelimited = function decodeDelimited(reader) { + QueryConnectionClientStateRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ConnectionStateData message. + * Verifies a QueryConnectionClientStateRequest message. * @function verify - * @memberof ibc.lightclients.solomachine.v1.ConnectionStateData + * @memberof ibc.core.connection.v1.QueryConnectionClientStateRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ConnectionStateData.verify = function verify(message) { + QueryConnectionClientStateRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.path != null && message.hasOwnProperty("path")) - if (!(message.path && typeof message.path.length === "number" || $util.isString(message.path))) - return "path: buffer expected"; - if (message.connection != null && message.hasOwnProperty("connection")) { - let error = $root.ibc.core.connection.v1.ConnectionEnd.verify(message.connection); - if (error) - return "connection." + error; - } + if (message.connection_id != null && message.hasOwnProperty("connection_id")) + if (!$util.isString(message.connection_id)) + return "connection_id: string expected"; return null; }; /** - * Creates a ConnectionStateData message from a plain object. Also converts values to their respective internal types. + * Creates a QueryConnectionClientStateRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.lightclients.solomachine.v1.ConnectionStateData + * @memberof ibc.core.connection.v1.QueryConnectionClientStateRequest * @static * @param {Object.} object Plain object - * @returns {ibc.lightclients.solomachine.v1.ConnectionStateData} ConnectionStateData + * @returns {ibc.core.connection.v1.QueryConnectionClientStateRequest} QueryConnectionClientStateRequest */ - ConnectionStateData.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.lightclients.solomachine.v1.ConnectionStateData) + QueryConnectionClientStateRequest.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.connection.v1.QueryConnectionClientStateRequest) return object; - let message = new $root.ibc.lightclients.solomachine.v1.ConnectionStateData(); - if (object.path != null) - if (typeof object.path === "string") - $util.base64.decode(object.path, message.path = $util.newBuffer($util.base64.length(object.path)), 0); - else if (object.path.length) - message.path = object.path; - if (object.connection != null) { - if (typeof object.connection !== "object") - throw TypeError(".ibc.lightclients.solomachine.v1.ConnectionStateData.connection: object expected"); - message.connection = $root.ibc.core.connection.v1.ConnectionEnd.fromObject(object.connection); - } + let message = new $root.ibc.core.connection.v1.QueryConnectionClientStateRequest(); + if (object.connection_id != null) + message.connection_id = String(object.connection_id); return message; }; /** - * Creates a plain object from a ConnectionStateData message. Also converts values to other types if specified. + * Creates a plain object from a QueryConnectionClientStateRequest message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.lightclients.solomachine.v1.ConnectionStateData + * @memberof ibc.core.connection.v1.QueryConnectionClientStateRequest * @static - * @param {ibc.lightclients.solomachine.v1.ConnectionStateData} message ConnectionStateData + * @param {ibc.core.connection.v1.QueryConnectionClientStateRequest} message QueryConnectionClientStateRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ConnectionStateData.toObject = function toObject(message, options) { + QueryConnectionClientStateRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) { - if (options.bytes === String) - object.path = ""; - else { - object.path = []; - if (options.bytes !== Array) - object.path = $util.newBuffer(object.path); - } - object.connection = null; - } - if (message.path != null && message.hasOwnProperty("path")) - object.path = options.bytes === String ? $util.base64.encode(message.path, 0, message.path.length) : options.bytes === Array ? Array.prototype.slice.call(message.path) : message.path; - if (message.connection != null && message.hasOwnProperty("connection")) - object.connection = $root.ibc.core.connection.v1.ConnectionEnd.toObject(message.connection, options); + if (options.defaults) + object.connection_id = ""; + if (message.connection_id != null && message.hasOwnProperty("connection_id")) + object.connection_id = message.connection_id; return object; }; /** - * Converts this ConnectionStateData to JSON. + * Converts this QueryConnectionClientStateRequest to JSON. * @function toJSON - * @memberof ibc.lightclients.solomachine.v1.ConnectionStateData + * @memberof ibc.core.connection.v1.QueryConnectionClientStateRequest * @instance * @returns {Object.} JSON object */ - ConnectionStateData.prototype.toJSON = function toJSON() { + QueryConnectionClientStateRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ConnectionStateData; + return QueryConnectionClientStateRequest; })(); - v1.ChannelStateData = (function() { + v1.QueryConnectionClientStateResponse = (function() { /** - * Properties of a ChannelStateData. - * @memberof ibc.lightclients.solomachine.v1 - * @interface IChannelStateData - * @property {Uint8Array|null} [path] ChannelStateData path - * @property {ibc.core.channel.v1.IChannel|null} [channel] ChannelStateData channel + * Properties of a QueryConnectionClientStateResponse. + * @memberof ibc.core.connection.v1 + * @interface IQueryConnectionClientStateResponse + * @property {ibc.core.client.v1.IIdentifiedClientState|null} [identified_client_state] QueryConnectionClientStateResponse identified_client_state + * @property {Uint8Array|null} [proof] QueryConnectionClientStateResponse proof + * @property {ibc.core.client.v1.IHeight|null} [proof_height] QueryConnectionClientStateResponse proof_height */ /** - * Constructs a new ChannelStateData. - * @memberof ibc.lightclients.solomachine.v1 - * @classdesc Represents a ChannelStateData. - * @implements IChannelStateData + * Constructs a new QueryConnectionClientStateResponse. + * @memberof ibc.core.connection.v1 + * @classdesc Represents a QueryConnectionClientStateResponse. + * @implements IQueryConnectionClientStateResponse * @constructor - * @param {ibc.lightclients.solomachine.v1.IChannelStateData=} [properties] Properties to set + * @param {ibc.core.connection.v1.IQueryConnectionClientStateResponse=} [properties] Properties to set */ - function ChannelStateData(properties) { + function QueryConnectionClientStateResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -67259,76 +73407,89 @@ export const ibc = $root.ibc = (() => { } /** - * ChannelStateData path. - * @member {Uint8Array} path - * @memberof ibc.lightclients.solomachine.v1.ChannelStateData + * QueryConnectionClientStateResponse identified_client_state. + * @member {ibc.core.client.v1.IIdentifiedClientState|null|undefined} identified_client_state + * @memberof ibc.core.connection.v1.QueryConnectionClientStateResponse * @instance */ - ChannelStateData.prototype.path = $util.newBuffer([]); + QueryConnectionClientStateResponse.prototype.identified_client_state = null; /** - * ChannelStateData channel. - * @member {ibc.core.channel.v1.IChannel|null|undefined} channel - * @memberof ibc.lightclients.solomachine.v1.ChannelStateData + * QueryConnectionClientStateResponse proof. + * @member {Uint8Array} proof + * @memberof ibc.core.connection.v1.QueryConnectionClientStateResponse * @instance */ - ChannelStateData.prototype.channel = null; + QueryConnectionClientStateResponse.prototype.proof = $util.newBuffer([]); + + /** + * QueryConnectionClientStateResponse proof_height. + * @member {ibc.core.client.v1.IHeight|null|undefined} proof_height + * @memberof ibc.core.connection.v1.QueryConnectionClientStateResponse + * @instance + */ + QueryConnectionClientStateResponse.prototype.proof_height = null; /** - * Encodes the specified ChannelStateData message. Does not implicitly {@link ibc.lightclients.solomachine.v1.ChannelStateData.verify|verify} messages. + * Encodes the specified QueryConnectionClientStateResponse message. Does not implicitly {@link ibc.core.connection.v1.QueryConnectionClientStateResponse.verify|verify} messages. * @function encode - * @memberof ibc.lightclients.solomachine.v1.ChannelStateData + * @memberof ibc.core.connection.v1.QueryConnectionClientStateResponse * @static - * @param {ibc.lightclients.solomachine.v1.IChannelStateData} message ChannelStateData message or plain object to encode + * @param {ibc.core.connection.v1.IQueryConnectionClientStateResponse} message QueryConnectionClientStateResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ChannelStateData.encode = function encode(message, writer) { + QueryConnectionClientStateResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.path != null && Object.hasOwnProperty.call(message, "path")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.path); - if (message.channel != null && Object.hasOwnProperty.call(message, "channel")) - $root.ibc.core.channel.v1.Channel.encode(message.channel, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.identified_client_state != null && Object.hasOwnProperty.call(message, "identified_client_state")) + $root.ibc.core.client.v1.IdentifiedClientState.encode(message.identified_client_state, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.proof != null && Object.hasOwnProperty.call(message, "proof")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.proof); + if (message.proof_height != null && Object.hasOwnProperty.call(message, "proof_height")) + $root.ibc.core.client.v1.Height.encode(message.proof_height, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified ChannelStateData message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v1.ChannelStateData.verify|verify} messages. + * Encodes the specified QueryConnectionClientStateResponse message, length delimited. Does not implicitly {@link ibc.core.connection.v1.QueryConnectionClientStateResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.lightclients.solomachine.v1.ChannelStateData + * @memberof ibc.core.connection.v1.QueryConnectionClientStateResponse * @static - * @param {ibc.lightclients.solomachine.v1.IChannelStateData} message ChannelStateData message or plain object to encode + * @param {ibc.core.connection.v1.IQueryConnectionClientStateResponse} message QueryConnectionClientStateResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ChannelStateData.encodeDelimited = function encodeDelimited(message, writer) { + QueryConnectionClientStateResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ChannelStateData message from the specified reader or buffer. + * Decodes a QueryConnectionClientStateResponse message from the specified reader or buffer. * @function decode - * @memberof ibc.lightclients.solomachine.v1.ChannelStateData + * @memberof ibc.core.connection.v1.QueryConnectionClientStateResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.lightclients.solomachine.v1.ChannelStateData} ChannelStateData + * @returns {ibc.core.connection.v1.QueryConnectionClientStateResponse} QueryConnectionClientStateResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ChannelStateData.decode = function decode(reader, length) { + QueryConnectionClientStateResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.solomachine.v1.ChannelStateData(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.connection.v1.QueryConnectionClientStateResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.path = reader.bytes(); + message.identified_client_state = $root.ibc.core.client.v1.IdentifiedClientState.decode(reader, reader.uint32()); break; case 2: - message.channel = $root.ibc.core.channel.v1.Channel.decode(reader, reader.uint32()); + message.proof = reader.bytes(); + break; + case 3: + message.proof_height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -67339,131 +73500,145 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a ChannelStateData message from the specified reader or buffer, length delimited. + * Decodes a QueryConnectionClientStateResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.lightclients.solomachine.v1.ChannelStateData + * @memberof ibc.core.connection.v1.QueryConnectionClientStateResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.lightclients.solomachine.v1.ChannelStateData} ChannelStateData + * @returns {ibc.core.connection.v1.QueryConnectionClientStateResponse} QueryConnectionClientStateResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ChannelStateData.decodeDelimited = function decodeDelimited(reader) { + QueryConnectionClientStateResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ChannelStateData message. + * Verifies a QueryConnectionClientStateResponse message. * @function verify - * @memberof ibc.lightclients.solomachine.v1.ChannelStateData + * @memberof ibc.core.connection.v1.QueryConnectionClientStateResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ChannelStateData.verify = function verify(message) { + QueryConnectionClientStateResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.path != null && message.hasOwnProperty("path")) - if (!(message.path && typeof message.path.length === "number" || $util.isString(message.path))) - return "path: buffer expected"; - if (message.channel != null && message.hasOwnProperty("channel")) { - let error = $root.ibc.core.channel.v1.Channel.verify(message.channel); + if (message.identified_client_state != null && message.hasOwnProperty("identified_client_state")) { + let error = $root.ibc.core.client.v1.IdentifiedClientState.verify(message.identified_client_state); if (error) - return "channel." + error; + return "identified_client_state." + error; + } + if (message.proof != null && message.hasOwnProperty("proof")) + if (!(message.proof && typeof message.proof.length === "number" || $util.isString(message.proof))) + return "proof: buffer expected"; + if (message.proof_height != null && message.hasOwnProperty("proof_height")) { + let error = $root.ibc.core.client.v1.Height.verify(message.proof_height); + if (error) + return "proof_height." + error; } return null; }; /** - * Creates a ChannelStateData message from a plain object. Also converts values to their respective internal types. + * Creates a QueryConnectionClientStateResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.lightclients.solomachine.v1.ChannelStateData + * @memberof ibc.core.connection.v1.QueryConnectionClientStateResponse * @static * @param {Object.} object Plain object - * @returns {ibc.lightclients.solomachine.v1.ChannelStateData} ChannelStateData + * @returns {ibc.core.connection.v1.QueryConnectionClientStateResponse} QueryConnectionClientStateResponse */ - ChannelStateData.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.lightclients.solomachine.v1.ChannelStateData) + QueryConnectionClientStateResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.connection.v1.QueryConnectionClientStateResponse) return object; - let message = new $root.ibc.lightclients.solomachine.v1.ChannelStateData(); - if (object.path != null) - if (typeof object.path === "string") - $util.base64.decode(object.path, message.path = $util.newBuffer($util.base64.length(object.path)), 0); - else if (object.path.length) - message.path = object.path; - if (object.channel != null) { - if (typeof object.channel !== "object") - throw TypeError(".ibc.lightclients.solomachine.v1.ChannelStateData.channel: object expected"); - message.channel = $root.ibc.core.channel.v1.Channel.fromObject(object.channel); + let message = new $root.ibc.core.connection.v1.QueryConnectionClientStateResponse(); + if (object.identified_client_state != null) { + if (typeof object.identified_client_state !== "object") + throw TypeError(".ibc.core.connection.v1.QueryConnectionClientStateResponse.identified_client_state: object expected"); + message.identified_client_state = $root.ibc.core.client.v1.IdentifiedClientState.fromObject(object.identified_client_state); + } + if (object.proof != null) + if (typeof object.proof === "string") + $util.base64.decode(object.proof, message.proof = $util.newBuffer($util.base64.length(object.proof)), 0); + else if (object.proof.length) + message.proof = object.proof; + if (object.proof_height != null) { + if (typeof object.proof_height !== "object") + throw TypeError(".ibc.core.connection.v1.QueryConnectionClientStateResponse.proof_height: object expected"); + message.proof_height = $root.ibc.core.client.v1.Height.fromObject(object.proof_height); } return message; }; /** - * Creates a plain object from a ChannelStateData message. Also converts values to other types if specified. + * Creates a plain object from a QueryConnectionClientStateResponse message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.lightclients.solomachine.v1.ChannelStateData + * @memberof ibc.core.connection.v1.QueryConnectionClientStateResponse * @static - * @param {ibc.lightclients.solomachine.v1.ChannelStateData} message ChannelStateData + * @param {ibc.core.connection.v1.QueryConnectionClientStateResponse} message QueryConnectionClientStateResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ChannelStateData.toObject = function toObject(message, options) { + QueryConnectionClientStateResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { + object.identified_client_state = null; if (options.bytes === String) - object.path = ""; + object.proof = ""; else { - object.path = []; + object.proof = []; if (options.bytes !== Array) - object.path = $util.newBuffer(object.path); + object.proof = $util.newBuffer(object.proof); } - object.channel = null; + object.proof_height = null; } - if (message.path != null && message.hasOwnProperty("path")) - object.path = options.bytes === String ? $util.base64.encode(message.path, 0, message.path.length) : options.bytes === Array ? Array.prototype.slice.call(message.path) : message.path; - if (message.channel != null && message.hasOwnProperty("channel")) - object.channel = $root.ibc.core.channel.v1.Channel.toObject(message.channel, options); + if (message.identified_client_state != null && message.hasOwnProperty("identified_client_state")) + object.identified_client_state = $root.ibc.core.client.v1.IdentifiedClientState.toObject(message.identified_client_state, options); + if (message.proof != null && message.hasOwnProperty("proof")) + object.proof = options.bytes === String ? $util.base64.encode(message.proof, 0, message.proof.length) : options.bytes === Array ? Array.prototype.slice.call(message.proof) : message.proof; + if (message.proof_height != null && message.hasOwnProperty("proof_height")) + object.proof_height = $root.ibc.core.client.v1.Height.toObject(message.proof_height, options); return object; }; /** - * Converts this ChannelStateData to JSON. + * Converts this QueryConnectionClientStateResponse to JSON. * @function toJSON - * @memberof ibc.lightclients.solomachine.v1.ChannelStateData + * @memberof ibc.core.connection.v1.QueryConnectionClientStateResponse * @instance * @returns {Object.} JSON object */ - ChannelStateData.prototype.toJSON = function toJSON() { + QueryConnectionClientStateResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ChannelStateData; + return QueryConnectionClientStateResponse; })(); - v1.PacketCommitmentData = (function() { + v1.QueryConnectionConsensusStateRequest = (function() { /** - * Properties of a PacketCommitmentData. - * @memberof ibc.lightclients.solomachine.v1 - * @interface IPacketCommitmentData - * @property {Uint8Array|null} [path] PacketCommitmentData path - * @property {Uint8Array|null} [commitment] PacketCommitmentData commitment + * Properties of a QueryConnectionConsensusStateRequest. + * @memberof ibc.core.connection.v1 + * @interface IQueryConnectionConsensusStateRequest + * @property {string|null} [connection_id] QueryConnectionConsensusStateRequest connection_id + * @property {Long|null} [revision_number] QueryConnectionConsensusStateRequest revision_number + * @property {Long|null} [revision_height] QueryConnectionConsensusStateRequest revision_height */ /** - * Constructs a new PacketCommitmentData. - * @memberof ibc.lightclients.solomachine.v1 - * @classdesc Represents a PacketCommitmentData. - * @implements IPacketCommitmentData + * Constructs a new QueryConnectionConsensusStateRequest. + * @memberof ibc.core.connection.v1 + * @classdesc Represents a QueryConnectionConsensusStateRequest. + * @implements IQueryConnectionConsensusStateRequest * @constructor - * @param {ibc.lightclients.solomachine.v1.IPacketCommitmentData=} [properties] Properties to set + * @param {ibc.core.connection.v1.IQueryConnectionConsensusStateRequest=} [properties] Properties to set */ - function PacketCommitmentData(properties) { + function QueryConnectionConsensusStateRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -67471,76 +73646,89 @@ export const ibc = $root.ibc = (() => { } /** - * PacketCommitmentData path. - * @member {Uint8Array} path - * @memberof ibc.lightclients.solomachine.v1.PacketCommitmentData + * QueryConnectionConsensusStateRequest connection_id. + * @member {string} connection_id + * @memberof ibc.core.connection.v1.QueryConnectionConsensusStateRequest * @instance */ - PacketCommitmentData.prototype.path = $util.newBuffer([]); + QueryConnectionConsensusStateRequest.prototype.connection_id = ""; /** - * PacketCommitmentData commitment. - * @member {Uint8Array} commitment - * @memberof ibc.lightclients.solomachine.v1.PacketCommitmentData + * QueryConnectionConsensusStateRequest revision_number. + * @member {Long} revision_number + * @memberof ibc.core.connection.v1.QueryConnectionConsensusStateRequest * @instance */ - PacketCommitmentData.prototype.commitment = $util.newBuffer([]); + QueryConnectionConsensusStateRequest.prototype.revision_number = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + + /** + * QueryConnectionConsensusStateRequest revision_height. + * @member {Long} revision_height + * @memberof ibc.core.connection.v1.QueryConnectionConsensusStateRequest + * @instance + */ + QueryConnectionConsensusStateRequest.prototype.revision_height = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** - * Encodes the specified PacketCommitmentData message. Does not implicitly {@link ibc.lightclients.solomachine.v1.PacketCommitmentData.verify|verify} messages. + * Encodes the specified QueryConnectionConsensusStateRequest message. Does not implicitly {@link ibc.core.connection.v1.QueryConnectionConsensusStateRequest.verify|verify} messages. * @function encode - * @memberof ibc.lightclients.solomachine.v1.PacketCommitmentData + * @memberof ibc.core.connection.v1.QueryConnectionConsensusStateRequest * @static - * @param {ibc.lightclients.solomachine.v1.IPacketCommitmentData} message PacketCommitmentData message or plain object to encode + * @param {ibc.core.connection.v1.IQueryConnectionConsensusStateRequest} message QueryConnectionConsensusStateRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PacketCommitmentData.encode = function encode(message, writer) { + QueryConnectionConsensusStateRequest.encode = function encode(message, writer) { if (!writer) - writer = $Writer.create(); - if (message.path != null && Object.hasOwnProperty.call(message, "path")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.path); - if (message.commitment != null && Object.hasOwnProperty.call(message, "commitment")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.commitment); + writer = $Writer.create(); + if (message.connection_id != null && Object.hasOwnProperty.call(message, "connection_id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.connection_id); + if (message.revision_number != null && Object.hasOwnProperty.call(message, "revision_number")) + writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.revision_number); + if (message.revision_height != null && Object.hasOwnProperty.call(message, "revision_height")) + writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.revision_height); return writer; }; /** - * Encodes the specified PacketCommitmentData message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v1.PacketCommitmentData.verify|verify} messages. + * Encodes the specified QueryConnectionConsensusStateRequest message, length delimited. Does not implicitly {@link ibc.core.connection.v1.QueryConnectionConsensusStateRequest.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.lightclients.solomachine.v1.PacketCommitmentData + * @memberof ibc.core.connection.v1.QueryConnectionConsensusStateRequest * @static - * @param {ibc.lightclients.solomachine.v1.IPacketCommitmentData} message PacketCommitmentData message or plain object to encode + * @param {ibc.core.connection.v1.IQueryConnectionConsensusStateRequest} message QueryConnectionConsensusStateRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PacketCommitmentData.encodeDelimited = function encodeDelimited(message, writer) { + QueryConnectionConsensusStateRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PacketCommitmentData message from the specified reader or buffer. + * Decodes a QueryConnectionConsensusStateRequest message from the specified reader or buffer. * @function decode - * @memberof ibc.lightclients.solomachine.v1.PacketCommitmentData + * @memberof ibc.core.connection.v1.QueryConnectionConsensusStateRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.lightclients.solomachine.v1.PacketCommitmentData} PacketCommitmentData + * @returns {ibc.core.connection.v1.QueryConnectionConsensusStateRequest} QueryConnectionConsensusStateRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PacketCommitmentData.decode = function decode(reader, length) { + QueryConnectionConsensusStateRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.solomachine.v1.PacketCommitmentData(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.connection.v1.QueryConnectionConsensusStateRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.path = reader.bytes(); + message.connection_id = reader.string(); break; case 2: - message.commitment = reader.bytes(); + message.revision_number = reader.uint64(); + break; + case 3: + message.revision_height = reader.uint64(); break; default: reader.skipType(tag & 7); @@ -67551,135 +73739,155 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a PacketCommitmentData message from the specified reader or buffer, length delimited. + * Decodes a QueryConnectionConsensusStateRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.lightclients.solomachine.v1.PacketCommitmentData + * @memberof ibc.core.connection.v1.QueryConnectionConsensusStateRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.lightclients.solomachine.v1.PacketCommitmentData} PacketCommitmentData + * @returns {ibc.core.connection.v1.QueryConnectionConsensusStateRequest} QueryConnectionConsensusStateRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PacketCommitmentData.decodeDelimited = function decodeDelimited(reader) { + QueryConnectionConsensusStateRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PacketCommitmentData message. + * Verifies a QueryConnectionConsensusStateRequest message. * @function verify - * @memberof ibc.lightclients.solomachine.v1.PacketCommitmentData + * @memberof ibc.core.connection.v1.QueryConnectionConsensusStateRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PacketCommitmentData.verify = function verify(message) { + QueryConnectionConsensusStateRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.path != null && message.hasOwnProperty("path")) - if (!(message.path && typeof message.path.length === "number" || $util.isString(message.path))) - return "path: buffer expected"; - if (message.commitment != null && message.hasOwnProperty("commitment")) - if (!(message.commitment && typeof message.commitment.length === "number" || $util.isString(message.commitment))) - return "commitment: buffer expected"; + if (message.connection_id != null && message.hasOwnProperty("connection_id")) + if (!$util.isString(message.connection_id)) + return "connection_id: string expected"; + if (message.revision_number != null && message.hasOwnProperty("revision_number")) + if (!$util.isInteger(message.revision_number) && !(message.revision_number && $util.isInteger(message.revision_number.low) && $util.isInteger(message.revision_number.high))) + return "revision_number: integer|Long expected"; + if (message.revision_height != null && message.hasOwnProperty("revision_height")) + if (!$util.isInteger(message.revision_height) && !(message.revision_height && $util.isInteger(message.revision_height.low) && $util.isInteger(message.revision_height.high))) + return "revision_height: integer|Long expected"; return null; }; /** - * Creates a PacketCommitmentData message from a plain object. Also converts values to their respective internal types. + * Creates a QueryConnectionConsensusStateRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.lightclients.solomachine.v1.PacketCommitmentData + * @memberof ibc.core.connection.v1.QueryConnectionConsensusStateRequest * @static * @param {Object.} object Plain object - * @returns {ibc.lightclients.solomachine.v1.PacketCommitmentData} PacketCommitmentData + * @returns {ibc.core.connection.v1.QueryConnectionConsensusStateRequest} QueryConnectionConsensusStateRequest */ - PacketCommitmentData.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.lightclients.solomachine.v1.PacketCommitmentData) + QueryConnectionConsensusStateRequest.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.connection.v1.QueryConnectionConsensusStateRequest) return object; - let message = new $root.ibc.lightclients.solomachine.v1.PacketCommitmentData(); - if (object.path != null) - if (typeof object.path === "string") - $util.base64.decode(object.path, message.path = $util.newBuffer($util.base64.length(object.path)), 0); - else if (object.path.length) - message.path = object.path; - if (object.commitment != null) - if (typeof object.commitment === "string") - $util.base64.decode(object.commitment, message.commitment = $util.newBuffer($util.base64.length(object.commitment)), 0); - else if (object.commitment.length) - message.commitment = object.commitment; + let message = new $root.ibc.core.connection.v1.QueryConnectionConsensusStateRequest(); + if (object.connection_id != null) + message.connection_id = String(object.connection_id); + if (object.revision_number != null) + if ($util.Long) + (message.revision_number = $util.Long.fromValue(object.revision_number)).unsigned = true; + else if (typeof object.revision_number === "string") + message.revision_number = parseInt(object.revision_number, 10); + else if (typeof object.revision_number === "number") + message.revision_number = object.revision_number; + else if (typeof object.revision_number === "object") + message.revision_number = new $util.LongBits(object.revision_number.low >>> 0, object.revision_number.high >>> 0).toNumber(true); + if (object.revision_height != null) + if ($util.Long) + (message.revision_height = $util.Long.fromValue(object.revision_height)).unsigned = true; + else if (typeof object.revision_height === "string") + message.revision_height = parseInt(object.revision_height, 10); + else if (typeof object.revision_height === "number") + message.revision_height = object.revision_height; + else if (typeof object.revision_height === "object") + message.revision_height = new $util.LongBits(object.revision_height.low >>> 0, object.revision_height.high >>> 0).toNumber(true); return message; }; /** - * Creates a plain object from a PacketCommitmentData message. Also converts values to other types if specified. + * Creates a plain object from a QueryConnectionConsensusStateRequest message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.lightclients.solomachine.v1.PacketCommitmentData + * @memberof ibc.core.connection.v1.QueryConnectionConsensusStateRequest * @static - * @param {ibc.lightclients.solomachine.v1.PacketCommitmentData} message PacketCommitmentData + * @param {ibc.core.connection.v1.QueryConnectionConsensusStateRequest} message QueryConnectionConsensusStateRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PacketCommitmentData.toObject = function toObject(message, options) { + QueryConnectionConsensusStateRequest.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.path = ""; - else { - object.path = []; - if (options.bytes !== Array) - object.path = $util.newBuffer(object.path); - } - if (options.bytes === String) - object.commitment = ""; - else { - object.commitment = []; - if (options.bytes !== Array) - object.commitment = $util.newBuffer(object.commitment); - } + object.connection_id = ""; + if ($util.Long) { + let long = new $util.Long(0, 0, true); + object.revision_number = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.revision_number = options.longs === String ? "0" : 0; + if ($util.Long) { + let long = new $util.Long(0, 0, true); + object.revision_height = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.revision_height = options.longs === String ? "0" : 0; } - if (message.path != null && message.hasOwnProperty("path")) - object.path = options.bytes === String ? $util.base64.encode(message.path, 0, message.path.length) : options.bytes === Array ? Array.prototype.slice.call(message.path) : message.path; - if (message.commitment != null && message.hasOwnProperty("commitment")) - object.commitment = options.bytes === String ? $util.base64.encode(message.commitment, 0, message.commitment.length) : options.bytes === Array ? Array.prototype.slice.call(message.commitment) : message.commitment; + if (message.connection_id != null && message.hasOwnProperty("connection_id")) + object.connection_id = message.connection_id; + if (message.revision_number != null && message.hasOwnProperty("revision_number")) + if (typeof message.revision_number === "number") + object.revision_number = options.longs === String ? String(message.revision_number) : message.revision_number; + else + object.revision_number = options.longs === String ? $util.Long.prototype.toString.call(message.revision_number) : options.longs === Number ? new $util.LongBits(message.revision_number.low >>> 0, message.revision_number.high >>> 0).toNumber(true) : message.revision_number; + if (message.revision_height != null && message.hasOwnProperty("revision_height")) + if (typeof message.revision_height === "number") + object.revision_height = options.longs === String ? String(message.revision_height) : message.revision_height; + else + object.revision_height = options.longs === String ? $util.Long.prototype.toString.call(message.revision_height) : options.longs === Number ? new $util.LongBits(message.revision_height.low >>> 0, message.revision_height.high >>> 0).toNumber(true) : message.revision_height; return object; }; /** - * Converts this PacketCommitmentData to JSON. + * Converts this QueryConnectionConsensusStateRequest to JSON. * @function toJSON - * @memberof ibc.lightclients.solomachine.v1.PacketCommitmentData + * @memberof ibc.core.connection.v1.QueryConnectionConsensusStateRequest * @instance * @returns {Object.} JSON object */ - PacketCommitmentData.prototype.toJSON = function toJSON() { + QueryConnectionConsensusStateRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return PacketCommitmentData; + return QueryConnectionConsensusStateRequest; })(); - v1.PacketAcknowledgementData = (function() { + v1.QueryConnectionConsensusStateResponse = (function() { /** - * Properties of a PacketAcknowledgementData. - * @memberof ibc.lightclients.solomachine.v1 - * @interface IPacketAcknowledgementData - * @property {Uint8Array|null} [path] PacketAcknowledgementData path - * @property {Uint8Array|null} [acknowledgement] PacketAcknowledgementData acknowledgement + * Properties of a QueryConnectionConsensusStateResponse. + * @memberof ibc.core.connection.v1 + * @interface IQueryConnectionConsensusStateResponse + * @property {google.protobuf.IAny|null} [consensus_state] QueryConnectionConsensusStateResponse consensus_state + * @property {string|null} [client_id] QueryConnectionConsensusStateResponse client_id + * @property {Uint8Array|null} [proof] QueryConnectionConsensusStateResponse proof + * @property {ibc.core.client.v1.IHeight|null} [proof_height] QueryConnectionConsensusStateResponse proof_height */ /** - * Constructs a new PacketAcknowledgementData. - * @memberof ibc.lightclients.solomachine.v1 - * @classdesc Represents a PacketAcknowledgementData. - * @implements IPacketAcknowledgementData + * Constructs a new QueryConnectionConsensusStateResponse. + * @memberof ibc.core.connection.v1 + * @classdesc Represents a QueryConnectionConsensusStateResponse. + * @implements IQueryConnectionConsensusStateResponse * @constructor - * @param {ibc.lightclients.solomachine.v1.IPacketAcknowledgementData=} [properties] Properties to set + * @param {ibc.core.connection.v1.IQueryConnectionConsensusStateResponse=} [properties] Properties to set */ - function PacketAcknowledgementData(properties) { + function QueryConnectionConsensusStateResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -67687,76 +73895,102 @@ export const ibc = $root.ibc = (() => { } /** - * PacketAcknowledgementData path. - * @member {Uint8Array} path - * @memberof ibc.lightclients.solomachine.v1.PacketAcknowledgementData + * QueryConnectionConsensusStateResponse consensus_state. + * @member {google.protobuf.IAny|null|undefined} consensus_state + * @memberof ibc.core.connection.v1.QueryConnectionConsensusStateResponse * @instance */ - PacketAcknowledgementData.prototype.path = $util.newBuffer([]); + QueryConnectionConsensusStateResponse.prototype.consensus_state = null; /** - * PacketAcknowledgementData acknowledgement. - * @member {Uint8Array} acknowledgement - * @memberof ibc.lightclients.solomachine.v1.PacketAcknowledgementData + * QueryConnectionConsensusStateResponse client_id. + * @member {string} client_id + * @memberof ibc.core.connection.v1.QueryConnectionConsensusStateResponse * @instance */ - PacketAcknowledgementData.prototype.acknowledgement = $util.newBuffer([]); + QueryConnectionConsensusStateResponse.prototype.client_id = ""; + + /** + * QueryConnectionConsensusStateResponse proof. + * @member {Uint8Array} proof + * @memberof ibc.core.connection.v1.QueryConnectionConsensusStateResponse + * @instance + */ + QueryConnectionConsensusStateResponse.prototype.proof = $util.newBuffer([]); + + /** + * QueryConnectionConsensusStateResponse proof_height. + * @member {ibc.core.client.v1.IHeight|null|undefined} proof_height + * @memberof ibc.core.connection.v1.QueryConnectionConsensusStateResponse + * @instance + */ + QueryConnectionConsensusStateResponse.prototype.proof_height = null; /** - * Encodes the specified PacketAcknowledgementData message. Does not implicitly {@link ibc.lightclients.solomachine.v1.PacketAcknowledgementData.verify|verify} messages. + * Encodes the specified QueryConnectionConsensusStateResponse message. Does not implicitly {@link ibc.core.connection.v1.QueryConnectionConsensusStateResponse.verify|verify} messages. * @function encode - * @memberof ibc.lightclients.solomachine.v1.PacketAcknowledgementData + * @memberof ibc.core.connection.v1.QueryConnectionConsensusStateResponse * @static - * @param {ibc.lightclients.solomachine.v1.IPacketAcknowledgementData} message PacketAcknowledgementData message or plain object to encode + * @param {ibc.core.connection.v1.IQueryConnectionConsensusStateResponse} message QueryConnectionConsensusStateResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PacketAcknowledgementData.encode = function encode(message, writer) { + QueryConnectionConsensusStateResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.path != null && Object.hasOwnProperty.call(message, "path")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.path); - if (message.acknowledgement != null && Object.hasOwnProperty.call(message, "acknowledgement")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.acknowledgement); + if (message.consensus_state != null && Object.hasOwnProperty.call(message, "consensus_state")) + $root.google.protobuf.Any.encode(message.consensus_state, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.client_id != null && Object.hasOwnProperty.call(message, "client_id")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.client_id); + if (message.proof != null && Object.hasOwnProperty.call(message, "proof")) + writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.proof); + if (message.proof_height != null && Object.hasOwnProperty.call(message, "proof_height")) + $root.ibc.core.client.v1.Height.encode(message.proof_height, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; /** - * Encodes the specified PacketAcknowledgementData message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v1.PacketAcknowledgementData.verify|verify} messages. + * Encodes the specified QueryConnectionConsensusStateResponse message, length delimited. Does not implicitly {@link ibc.core.connection.v1.QueryConnectionConsensusStateResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.lightclients.solomachine.v1.PacketAcknowledgementData + * @memberof ibc.core.connection.v1.QueryConnectionConsensusStateResponse * @static - * @param {ibc.lightclients.solomachine.v1.IPacketAcknowledgementData} message PacketAcknowledgementData message or plain object to encode + * @param {ibc.core.connection.v1.IQueryConnectionConsensusStateResponse} message QueryConnectionConsensusStateResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PacketAcknowledgementData.encodeDelimited = function encodeDelimited(message, writer) { + QueryConnectionConsensusStateResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PacketAcknowledgementData message from the specified reader or buffer. + * Decodes a QueryConnectionConsensusStateResponse message from the specified reader or buffer. * @function decode - * @memberof ibc.lightclients.solomachine.v1.PacketAcknowledgementData + * @memberof ibc.core.connection.v1.QueryConnectionConsensusStateResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.lightclients.solomachine.v1.PacketAcknowledgementData} PacketAcknowledgementData + * @returns {ibc.core.connection.v1.QueryConnectionConsensusStateResponse} QueryConnectionConsensusStateResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PacketAcknowledgementData.decode = function decode(reader, length) { + QueryConnectionConsensusStateResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.solomachine.v1.PacketAcknowledgementData(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.connection.v1.QueryConnectionConsensusStateResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.path = reader.bytes(); + message.consensus_state = $root.google.protobuf.Any.decode(reader, reader.uint32()); break; case 2: - message.acknowledgement = reader.bytes(); + message.client_id = reader.string(); + break; + case 3: + message.proof = reader.bytes(); + break; + case 4: + message.proof_height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -67767,134 +74001,150 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a PacketAcknowledgementData message from the specified reader or buffer, length delimited. + * Decodes a QueryConnectionConsensusStateResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.lightclients.solomachine.v1.PacketAcknowledgementData + * @memberof ibc.core.connection.v1.QueryConnectionConsensusStateResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.lightclients.solomachine.v1.PacketAcknowledgementData} PacketAcknowledgementData + * @returns {ibc.core.connection.v1.QueryConnectionConsensusStateResponse} QueryConnectionConsensusStateResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PacketAcknowledgementData.decodeDelimited = function decodeDelimited(reader) { + QueryConnectionConsensusStateResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PacketAcknowledgementData message. + * Verifies a QueryConnectionConsensusStateResponse message. * @function verify - * @memberof ibc.lightclients.solomachine.v1.PacketAcknowledgementData + * @memberof ibc.core.connection.v1.QueryConnectionConsensusStateResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PacketAcknowledgementData.verify = function verify(message) { + QueryConnectionConsensusStateResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.path != null && message.hasOwnProperty("path")) - if (!(message.path && typeof message.path.length === "number" || $util.isString(message.path))) - return "path: buffer expected"; - if (message.acknowledgement != null && message.hasOwnProperty("acknowledgement")) - if (!(message.acknowledgement && typeof message.acknowledgement.length === "number" || $util.isString(message.acknowledgement))) - return "acknowledgement: buffer expected"; + if (message.consensus_state != null && message.hasOwnProperty("consensus_state")) { + let error = $root.google.protobuf.Any.verify(message.consensus_state); + if (error) + return "consensus_state." + error; + } + if (message.client_id != null && message.hasOwnProperty("client_id")) + if (!$util.isString(message.client_id)) + return "client_id: string expected"; + if (message.proof != null && message.hasOwnProperty("proof")) + if (!(message.proof && typeof message.proof.length === "number" || $util.isString(message.proof))) + return "proof: buffer expected"; + if (message.proof_height != null && message.hasOwnProperty("proof_height")) { + let error = $root.ibc.core.client.v1.Height.verify(message.proof_height); + if (error) + return "proof_height." + error; + } return null; }; /** - * Creates a PacketAcknowledgementData message from a plain object. Also converts values to their respective internal types. + * Creates a QueryConnectionConsensusStateResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.lightclients.solomachine.v1.PacketAcknowledgementData + * @memberof ibc.core.connection.v1.QueryConnectionConsensusStateResponse * @static * @param {Object.} object Plain object - * @returns {ibc.lightclients.solomachine.v1.PacketAcknowledgementData} PacketAcknowledgementData + * @returns {ibc.core.connection.v1.QueryConnectionConsensusStateResponse} QueryConnectionConsensusStateResponse */ - PacketAcknowledgementData.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.lightclients.solomachine.v1.PacketAcknowledgementData) + QueryConnectionConsensusStateResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.connection.v1.QueryConnectionConsensusStateResponse) return object; - let message = new $root.ibc.lightclients.solomachine.v1.PacketAcknowledgementData(); - if (object.path != null) - if (typeof object.path === "string") - $util.base64.decode(object.path, message.path = $util.newBuffer($util.base64.length(object.path)), 0); - else if (object.path.length) - message.path = object.path; - if (object.acknowledgement != null) - if (typeof object.acknowledgement === "string") - $util.base64.decode(object.acknowledgement, message.acknowledgement = $util.newBuffer($util.base64.length(object.acknowledgement)), 0); - else if (object.acknowledgement.length) - message.acknowledgement = object.acknowledgement; + let message = new $root.ibc.core.connection.v1.QueryConnectionConsensusStateResponse(); + if (object.consensus_state != null) { + if (typeof object.consensus_state !== "object") + throw TypeError(".ibc.core.connection.v1.QueryConnectionConsensusStateResponse.consensus_state: object expected"); + message.consensus_state = $root.google.protobuf.Any.fromObject(object.consensus_state); + } + if (object.client_id != null) + message.client_id = String(object.client_id); + if (object.proof != null) + if (typeof object.proof === "string") + $util.base64.decode(object.proof, message.proof = $util.newBuffer($util.base64.length(object.proof)), 0); + else if (object.proof.length) + message.proof = object.proof; + if (object.proof_height != null) { + if (typeof object.proof_height !== "object") + throw TypeError(".ibc.core.connection.v1.QueryConnectionConsensusStateResponse.proof_height: object expected"); + message.proof_height = $root.ibc.core.client.v1.Height.fromObject(object.proof_height); + } return message; }; /** - * Creates a plain object from a PacketAcknowledgementData message. Also converts values to other types if specified. + * Creates a plain object from a QueryConnectionConsensusStateResponse message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.lightclients.solomachine.v1.PacketAcknowledgementData + * @memberof ibc.core.connection.v1.QueryConnectionConsensusStateResponse * @static - * @param {ibc.lightclients.solomachine.v1.PacketAcknowledgementData} message PacketAcknowledgementData + * @param {ibc.core.connection.v1.QueryConnectionConsensusStateResponse} message QueryConnectionConsensusStateResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PacketAcknowledgementData.toObject = function toObject(message, options) { + QueryConnectionConsensusStateResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { + object.consensus_state = null; + object.client_id = ""; if (options.bytes === String) - object.path = ""; - else { - object.path = []; - if (options.bytes !== Array) - object.path = $util.newBuffer(object.path); - } - if (options.bytes === String) - object.acknowledgement = ""; + object.proof = ""; else { - object.acknowledgement = []; + object.proof = []; if (options.bytes !== Array) - object.acknowledgement = $util.newBuffer(object.acknowledgement); + object.proof = $util.newBuffer(object.proof); } + object.proof_height = null; } - if (message.path != null && message.hasOwnProperty("path")) - object.path = options.bytes === String ? $util.base64.encode(message.path, 0, message.path.length) : options.bytes === Array ? Array.prototype.slice.call(message.path) : message.path; - if (message.acknowledgement != null && message.hasOwnProperty("acknowledgement")) - object.acknowledgement = options.bytes === String ? $util.base64.encode(message.acknowledgement, 0, message.acknowledgement.length) : options.bytes === Array ? Array.prototype.slice.call(message.acknowledgement) : message.acknowledgement; + if (message.consensus_state != null && message.hasOwnProperty("consensus_state")) + object.consensus_state = $root.google.protobuf.Any.toObject(message.consensus_state, options); + if (message.client_id != null && message.hasOwnProperty("client_id")) + object.client_id = message.client_id; + if (message.proof != null && message.hasOwnProperty("proof")) + object.proof = options.bytes === String ? $util.base64.encode(message.proof, 0, message.proof.length) : options.bytes === Array ? Array.prototype.slice.call(message.proof) : message.proof; + if (message.proof_height != null && message.hasOwnProperty("proof_height")) + object.proof_height = $root.ibc.core.client.v1.Height.toObject(message.proof_height, options); return object; }; /** - * Converts this PacketAcknowledgementData to JSON. + * Converts this QueryConnectionConsensusStateResponse to JSON. * @function toJSON - * @memberof ibc.lightclients.solomachine.v1.PacketAcknowledgementData + * @memberof ibc.core.connection.v1.QueryConnectionConsensusStateResponse * @instance * @returns {Object.} JSON object */ - PacketAcknowledgementData.prototype.toJSON = function toJSON() { + QueryConnectionConsensusStateResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return PacketAcknowledgementData; + return QueryConnectionConsensusStateResponse; })(); - v1.PacketReceiptAbsenceData = (function() { + v1.QueryConnectionParamsRequest = (function() { /** - * Properties of a PacketReceiptAbsenceData. - * @memberof ibc.lightclients.solomachine.v1 - * @interface IPacketReceiptAbsenceData - * @property {Uint8Array|null} [path] PacketReceiptAbsenceData path + * Properties of a QueryConnectionParamsRequest. + * @memberof ibc.core.connection.v1 + * @interface IQueryConnectionParamsRequest */ /** - * Constructs a new PacketReceiptAbsenceData. - * @memberof ibc.lightclients.solomachine.v1 - * @classdesc Represents a PacketReceiptAbsenceData. - * @implements IPacketReceiptAbsenceData + * Constructs a new QueryConnectionParamsRequest. + * @memberof ibc.core.connection.v1 + * @classdesc Represents a QueryConnectionParamsRequest. + * @implements IQueryConnectionParamsRequest * @constructor - * @param {ibc.lightclients.solomachine.v1.IPacketReceiptAbsenceData=} [properties] Properties to set + * @param {ibc.core.connection.v1.IQueryConnectionParamsRequest=} [properties] Properties to set */ - function PacketReceiptAbsenceData(properties) { + function QueryConnectionParamsRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -67902,64 +74152,51 @@ export const ibc = $root.ibc = (() => { } /** - * PacketReceiptAbsenceData path. - * @member {Uint8Array} path - * @memberof ibc.lightclients.solomachine.v1.PacketReceiptAbsenceData - * @instance - */ - PacketReceiptAbsenceData.prototype.path = $util.newBuffer([]); - - /** - * Encodes the specified PacketReceiptAbsenceData message. Does not implicitly {@link ibc.lightclients.solomachine.v1.PacketReceiptAbsenceData.verify|verify} messages. + * Encodes the specified QueryConnectionParamsRequest message. Does not implicitly {@link ibc.core.connection.v1.QueryConnectionParamsRequest.verify|verify} messages. * @function encode - * @memberof ibc.lightclients.solomachine.v1.PacketReceiptAbsenceData + * @memberof ibc.core.connection.v1.QueryConnectionParamsRequest * @static - * @param {ibc.lightclients.solomachine.v1.IPacketReceiptAbsenceData} message PacketReceiptAbsenceData message or plain object to encode + * @param {ibc.core.connection.v1.IQueryConnectionParamsRequest} message QueryConnectionParamsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PacketReceiptAbsenceData.encode = function encode(message, writer) { + QueryConnectionParamsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.path != null && Object.hasOwnProperty.call(message, "path")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.path); return writer; }; /** - * Encodes the specified PacketReceiptAbsenceData message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v1.PacketReceiptAbsenceData.verify|verify} messages. + * Encodes the specified QueryConnectionParamsRequest message, length delimited. Does not implicitly {@link ibc.core.connection.v1.QueryConnectionParamsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.lightclients.solomachine.v1.PacketReceiptAbsenceData + * @memberof ibc.core.connection.v1.QueryConnectionParamsRequest * @static - * @param {ibc.lightclients.solomachine.v1.IPacketReceiptAbsenceData} message PacketReceiptAbsenceData message or plain object to encode + * @param {ibc.core.connection.v1.IQueryConnectionParamsRequest} message QueryConnectionParamsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PacketReceiptAbsenceData.encodeDelimited = function encodeDelimited(message, writer) { + QueryConnectionParamsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PacketReceiptAbsenceData message from the specified reader or buffer. + * Decodes a QueryConnectionParamsRequest message from the specified reader or buffer. * @function decode - * @memberof ibc.lightclients.solomachine.v1.PacketReceiptAbsenceData + * @memberof ibc.core.connection.v1.QueryConnectionParamsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.lightclients.solomachine.v1.PacketReceiptAbsenceData} PacketReceiptAbsenceData + * @returns {ibc.core.connection.v1.QueryConnectionParamsRequest} QueryConnectionParamsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PacketReceiptAbsenceData.decode = function decode(reader, length) { + QueryConnectionParamsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.solomachine.v1.PacketReceiptAbsenceData(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.connection.v1.QueryConnectionParamsRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.path = reader.bytes(); - break; default: reader.skipType(tag & 7); break; @@ -67969,117 +74206,94 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a PacketReceiptAbsenceData message from the specified reader or buffer, length delimited. + * Decodes a QueryConnectionParamsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.lightclients.solomachine.v1.PacketReceiptAbsenceData + * @memberof ibc.core.connection.v1.QueryConnectionParamsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.lightclients.solomachine.v1.PacketReceiptAbsenceData} PacketReceiptAbsenceData + * @returns {ibc.core.connection.v1.QueryConnectionParamsRequest} QueryConnectionParamsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PacketReceiptAbsenceData.decodeDelimited = function decodeDelimited(reader) { + QueryConnectionParamsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PacketReceiptAbsenceData message. + * Verifies a QueryConnectionParamsRequest message. * @function verify - * @memberof ibc.lightclients.solomachine.v1.PacketReceiptAbsenceData + * @memberof ibc.core.connection.v1.QueryConnectionParamsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PacketReceiptAbsenceData.verify = function verify(message) { + QueryConnectionParamsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.path != null && message.hasOwnProperty("path")) - if (!(message.path && typeof message.path.length === "number" || $util.isString(message.path))) - return "path: buffer expected"; return null; }; /** - * Creates a PacketReceiptAbsenceData message from a plain object. Also converts values to their respective internal types. + * Creates a QueryConnectionParamsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.lightclients.solomachine.v1.PacketReceiptAbsenceData + * @memberof ibc.core.connection.v1.QueryConnectionParamsRequest * @static * @param {Object.} object Plain object - * @returns {ibc.lightclients.solomachine.v1.PacketReceiptAbsenceData} PacketReceiptAbsenceData + * @returns {ibc.core.connection.v1.QueryConnectionParamsRequest} QueryConnectionParamsRequest */ - PacketReceiptAbsenceData.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.lightclients.solomachine.v1.PacketReceiptAbsenceData) + QueryConnectionParamsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.connection.v1.QueryConnectionParamsRequest) return object; - let message = new $root.ibc.lightclients.solomachine.v1.PacketReceiptAbsenceData(); - if (object.path != null) - if (typeof object.path === "string") - $util.base64.decode(object.path, message.path = $util.newBuffer($util.base64.length(object.path)), 0); - else if (object.path.length) - message.path = object.path; - return message; + return new $root.ibc.core.connection.v1.QueryConnectionParamsRequest(); }; /** - * Creates a plain object from a PacketReceiptAbsenceData message. Also converts values to other types if specified. + * Creates a plain object from a QueryConnectionParamsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.lightclients.solomachine.v1.PacketReceiptAbsenceData + * @memberof ibc.core.connection.v1.QueryConnectionParamsRequest * @static - * @param {ibc.lightclients.solomachine.v1.PacketReceiptAbsenceData} message PacketReceiptAbsenceData + * @param {ibc.core.connection.v1.QueryConnectionParamsRequest} message QueryConnectionParamsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PacketReceiptAbsenceData.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) - if (options.bytes === String) - object.path = ""; - else { - object.path = []; - if (options.bytes !== Array) - object.path = $util.newBuffer(object.path); - } - if (message.path != null && message.hasOwnProperty("path")) - object.path = options.bytes === String ? $util.base64.encode(message.path, 0, message.path.length) : options.bytes === Array ? Array.prototype.slice.call(message.path) : message.path; - return object; + QueryConnectionParamsRequest.toObject = function toObject() { + return {}; }; /** - * Converts this PacketReceiptAbsenceData to JSON. + * Converts this QueryConnectionParamsRequest to JSON. * @function toJSON - * @memberof ibc.lightclients.solomachine.v1.PacketReceiptAbsenceData + * @memberof ibc.core.connection.v1.QueryConnectionParamsRequest * @instance * @returns {Object.} JSON object */ - PacketReceiptAbsenceData.prototype.toJSON = function toJSON() { + QueryConnectionParamsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return PacketReceiptAbsenceData; + return QueryConnectionParamsRequest; })(); - v1.NextSequenceRecvData = (function() { + v1.QueryConnectionParamsResponse = (function() { /** - * Properties of a NextSequenceRecvData. - * @memberof ibc.lightclients.solomachine.v1 - * @interface INextSequenceRecvData - * @property {Uint8Array|null} [path] NextSequenceRecvData path - * @property {Long|null} [next_seq_recv] NextSequenceRecvData next_seq_recv + * Properties of a QueryConnectionParamsResponse. + * @memberof ibc.core.connection.v1 + * @interface IQueryConnectionParamsResponse + * @property {ibc.core.connection.v1.IParams|null} [params] QueryConnectionParamsResponse params */ /** - * Constructs a new NextSequenceRecvData. - * @memberof ibc.lightclients.solomachine.v1 - * @classdesc Represents a NextSequenceRecvData. - * @implements INextSequenceRecvData + * Constructs a new QueryConnectionParamsResponse. + * @memberof ibc.core.connection.v1 + * @classdesc Represents a QueryConnectionParamsResponse. + * @implements IQueryConnectionParamsResponse * @constructor - * @param {ibc.lightclients.solomachine.v1.INextSequenceRecvData=} [properties] Properties to set + * @param {ibc.core.connection.v1.IQueryConnectionParamsResponse=} [properties] Properties to set */ - function NextSequenceRecvData(properties) { + function QueryConnectionParamsResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -68087,76 +74301,63 @@ export const ibc = $root.ibc = (() => { } /** - * NextSequenceRecvData path. - * @member {Uint8Array} path - * @memberof ibc.lightclients.solomachine.v1.NextSequenceRecvData - * @instance - */ - NextSequenceRecvData.prototype.path = $util.newBuffer([]); - - /** - * NextSequenceRecvData next_seq_recv. - * @member {Long} next_seq_recv - * @memberof ibc.lightclients.solomachine.v1.NextSequenceRecvData + * QueryConnectionParamsResponse params. + * @member {ibc.core.connection.v1.IParams|null|undefined} params + * @memberof ibc.core.connection.v1.QueryConnectionParamsResponse * @instance */ - NextSequenceRecvData.prototype.next_seq_recv = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + QueryConnectionParamsResponse.prototype.params = null; /** - * Encodes the specified NextSequenceRecvData message. Does not implicitly {@link ibc.lightclients.solomachine.v1.NextSequenceRecvData.verify|verify} messages. + * Encodes the specified QueryConnectionParamsResponse message. Does not implicitly {@link ibc.core.connection.v1.QueryConnectionParamsResponse.verify|verify} messages. * @function encode - * @memberof ibc.lightclients.solomachine.v1.NextSequenceRecvData + * @memberof ibc.core.connection.v1.QueryConnectionParamsResponse * @static - * @param {ibc.lightclients.solomachine.v1.INextSequenceRecvData} message NextSequenceRecvData message or plain object to encode + * @param {ibc.core.connection.v1.IQueryConnectionParamsResponse} message QueryConnectionParamsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NextSequenceRecvData.encode = function encode(message, writer) { + QueryConnectionParamsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.path != null && Object.hasOwnProperty.call(message, "path")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.path); - if (message.next_seq_recv != null && Object.hasOwnProperty.call(message, "next_seq_recv")) - writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.next_seq_recv); + if (message.params != null && Object.hasOwnProperty.call(message, "params")) + $root.ibc.core.connection.v1.Params.encode(message.params, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified NextSequenceRecvData message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v1.NextSequenceRecvData.verify|verify} messages. + * Encodes the specified QueryConnectionParamsResponse message, length delimited. Does not implicitly {@link ibc.core.connection.v1.QueryConnectionParamsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.lightclients.solomachine.v1.NextSequenceRecvData + * @memberof ibc.core.connection.v1.QueryConnectionParamsResponse * @static - * @param {ibc.lightclients.solomachine.v1.INextSequenceRecvData} message NextSequenceRecvData message or plain object to encode + * @param {ibc.core.connection.v1.IQueryConnectionParamsResponse} message QueryConnectionParamsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NextSequenceRecvData.encodeDelimited = function encodeDelimited(message, writer) { + QueryConnectionParamsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a NextSequenceRecvData message from the specified reader or buffer. + * Decodes a QueryConnectionParamsResponse message from the specified reader or buffer. * @function decode - * @memberof ibc.lightclients.solomachine.v1.NextSequenceRecvData + * @memberof ibc.core.connection.v1.QueryConnectionParamsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.lightclients.solomachine.v1.NextSequenceRecvData} NextSequenceRecvData + * @returns {ibc.core.connection.v1.QueryConnectionParamsResponse} QueryConnectionParamsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - NextSequenceRecvData.decode = function decode(reader, length) { + QueryConnectionParamsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.solomachine.v1.NextSequenceRecvData(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.connection.v1.QueryConnectionParamsResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.path = reader.bytes(); - break; - case 2: - message.next_seq_recv = reader.uint64(); + message.params = $root.ibc.core.connection.v1.Params.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -68167,154 +74368,117 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a NextSequenceRecvData message from the specified reader or buffer, length delimited. + * Decodes a QueryConnectionParamsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.lightclients.solomachine.v1.NextSequenceRecvData + * @memberof ibc.core.connection.v1.QueryConnectionParamsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.lightclients.solomachine.v1.NextSequenceRecvData} NextSequenceRecvData + * @returns {ibc.core.connection.v1.QueryConnectionParamsResponse} QueryConnectionParamsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - NextSequenceRecvData.decodeDelimited = function decodeDelimited(reader) { + QueryConnectionParamsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a NextSequenceRecvData message. + * Verifies a QueryConnectionParamsResponse message. * @function verify - * @memberof ibc.lightclients.solomachine.v1.NextSequenceRecvData + * @memberof ibc.core.connection.v1.QueryConnectionParamsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - NextSequenceRecvData.verify = function verify(message) { + QueryConnectionParamsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.path != null && message.hasOwnProperty("path")) - if (!(message.path && typeof message.path.length === "number" || $util.isString(message.path))) - return "path: buffer expected"; - if (message.next_seq_recv != null && message.hasOwnProperty("next_seq_recv")) - if (!$util.isInteger(message.next_seq_recv) && !(message.next_seq_recv && $util.isInteger(message.next_seq_recv.low) && $util.isInteger(message.next_seq_recv.high))) - return "next_seq_recv: integer|Long expected"; + if (message.params != null && message.hasOwnProperty("params")) { + let error = $root.ibc.core.connection.v1.Params.verify(message.params); + if (error) + return "params." + error; + } return null; }; /** - * Creates a NextSequenceRecvData message from a plain object. Also converts values to their respective internal types. + * Creates a QueryConnectionParamsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.lightclients.solomachine.v1.NextSequenceRecvData + * @memberof ibc.core.connection.v1.QueryConnectionParamsResponse * @static * @param {Object.} object Plain object - * @returns {ibc.lightclients.solomachine.v1.NextSequenceRecvData} NextSequenceRecvData + * @returns {ibc.core.connection.v1.QueryConnectionParamsResponse} QueryConnectionParamsResponse */ - NextSequenceRecvData.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.lightclients.solomachine.v1.NextSequenceRecvData) + QueryConnectionParamsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.connection.v1.QueryConnectionParamsResponse) return object; - let message = new $root.ibc.lightclients.solomachine.v1.NextSequenceRecvData(); - if (object.path != null) - if (typeof object.path === "string") - $util.base64.decode(object.path, message.path = $util.newBuffer($util.base64.length(object.path)), 0); - else if (object.path.length) - message.path = object.path; - if (object.next_seq_recv != null) - if ($util.Long) - (message.next_seq_recv = $util.Long.fromValue(object.next_seq_recv)).unsigned = true; - else if (typeof object.next_seq_recv === "string") - message.next_seq_recv = parseInt(object.next_seq_recv, 10); - else if (typeof object.next_seq_recv === "number") - message.next_seq_recv = object.next_seq_recv; - else if (typeof object.next_seq_recv === "object") - message.next_seq_recv = new $util.LongBits(object.next_seq_recv.low >>> 0, object.next_seq_recv.high >>> 0).toNumber(true); + let message = new $root.ibc.core.connection.v1.QueryConnectionParamsResponse(); + if (object.params != null) { + if (typeof object.params !== "object") + throw TypeError(".ibc.core.connection.v1.QueryConnectionParamsResponse.params: object expected"); + message.params = $root.ibc.core.connection.v1.Params.fromObject(object.params); + } return message; }; /** - * Creates a plain object from a NextSequenceRecvData message. Also converts values to other types if specified. + * Creates a plain object from a QueryConnectionParamsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.lightclients.solomachine.v1.NextSequenceRecvData + * @memberof ibc.core.connection.v1.QueryConnectionParamsResponse * @static - * @param {ibc.lightclients.solomachine.v1.NextSequenceRecvData} message NextSequenceRecvData + * @param {ibc.core.connection.v1.QueryConnectionParamsResponse} message QueryConnectionParamsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - NextSequenceRecvData.toObject = function toObject(message, options) { + QueryConnectionParamsResponse.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) { - if (options.bytes === String) - object.path = ""; - else { - object.path = []; - if (options.bytes !== Array) - object.path = $util.newBuffer(object.path); - } - if ($util.Long) { - let long = new $util.Long(0, 0, true); - object.next_seq_recv = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.next_seq_recv = options.longs === String ? "0" : 0; - } - if (message.path != null && message.hasOwnProperty("path")) - object.path = options.bytes === String ? $util.base64.encode(message.path, 0, message.path.length) : options.bytes === Array ? Array.prototype.slice.call(message.path) : message.path; - if (message.next_seq_recv != null && message.hasOwnProperty("next_seq_recv")) - if (typeof message.next_seq_recv === "number") - object.next_seq_recv = options.longs === String ? String(message.next_seq_recv) : message.next_seq_recv; - else - object.next_seq_recv = options.longs === String ? $util.Long.prototype.toString.call(message.next_seq_recv) : options.longs === Number ? new $util.LongBits(message.next_seq_recv.low >>> 0, message.next_seq_recv.high >>> 0).toNumber(true) : message.next_seq_recv; + if (options.defaults) + object.params = null; + if (message.params != null && message.hasOwnProperty("params")) + object.params = $root.ibc.core.connection.v1.Params.toObject(message.params, options); return object; }; /** - * Converts this NextSequenceRecvData to JSON. + * Converts this QueryConnectionParamsResponse to JSON. * @function toJSON - * @memberof ibc.lightclients.solomachine.v1.NextSequenceRecvData + * @memberof ibc.core.connection.v1.QueryConnectionParamsResponse * @instance * @returns {Object.} JSON object */ - NextSequenceRecvData.prototype.toJSON = function toJSON() { + QueryConnectionParamsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return NextSequenceRecvData; - })(); - - return v1; - })(); - - solomachine.v2 = (function() { + }; - /** - * Namespace v2. - * @memberof ibc.lightclients.solomachine - * @namespace - */ - const v2 = {}; + return QueryConnectionParamsResponse; + })(); - v2.ClientState = (function() { + v1.GenesisState = (function() { /** - * Properties of a ClientState. - * @memberof ibc.lightclients.solomachine.v2 - * @interface IClientState - * @property {Long|null} [sequence] ClientState sequence - * @property {boolean|null} [is_frozen] ClientState is_frozen - * @property {ibc.lightclients.solomachine.v2.IConsensusState|null} [consensus_state] ClientState consensus_state - * @property {boolean|null} [allow_update_after_proposal] ClientState allow_update_after_proposal + * Properties of a GenesisState. + * @memberof ibc.core.connection.v1 + * @interface IGenesisState + * @property {Array.|null} [connections] GenesisState connections + * @property {Array.|null} [client_connection_paths] GenesisState client_connection_paths + * @property {Long|null} [next_connection_sequence] GenesisState next_connection_sequence + * @property {ibc.core.connection.v1.IParams|null} [params] GenesisState params */ /** - * Constructs a new ClientState. - * @memberof ibc.lightclients.solomachine.v2 - * @classdesc Represents a ClientState. - * @implements IClientState + * Constructs a new GenesisState. + * @memberof ibc.core.connection.v1 + * @classdesc Represents a GenesisState. + * @implements IGenesisState * @constructor - * @param {ibc.lightclients.solomachine.v2.IClientState=} [properties] Properties to set + * @param {ibc.core.connection.v1.IGenesisState=} [properties] Properties to set */ - function ClientState(properties) { + function GenesisState(properties) { + this.connections = []; + this.client_connection_paths = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -68322,102 +74486,108 @@ export const ibc = $root.ibc = (() => { } /** - * ClientState sequence. - * @member {Long} sequence - * @memberof ibc.lightclients.solomachine.v2.ClientState + * GenesisState connections. + * @member {Array.} connections + * @memberof ibc.core.connection.v1.GenesisState * @instance */ - ClientState.prototype.sequence = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + GenesisState.prototype.connections = $util.emptyArray; /** - * ClientState is_frozen. - * @member {boolean} is_frozen - * @memberof ibc.lightclients.solomachine.v2.ClientState + * GenesisState client_connection_paths. + * @member {Array.} client_connection_paths + * @memberof ibc.core.connection.v1.GenesisState * @instance */ - ClientState.prototype.is_frozen = false; + GenesisState.prototype.client_connection_paths = $util.emptyArray; /** - * ClientState consensus_state. - * @member {ibc.lightclients.solomachine.v2.IConsensusState|null|undefined} consensus_state - * @memberof ibc.lightclients.solomachine.v2.ClientState + * GenesisState next_connection_sequence. + * @member {Long} next_connection_sequence + * @memberof ibc.core.connection.v1.GenesisState * @instance */ - ClientState.prototype.consensus_state = null; + GenesisState.prototype.next_connection_sequence = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** - * ClientState allow_update_after_proposal. - * @member {boolean} allow_update_after_proposal - * @memberof ibc.lightclients.solomachine.v2.ClientState + * GenesisState params. + * @member {ibc.core.connection.v1.IParams|null|undefined} params + * @memberof ibc.core.connection.v1.GenesisState * @instance */ - ClientState.prototype.allow_update_after_proposal = false; + GenesisState.prototype.params = null; /** - * Encodes the specified ClientState message. Does not implicitly {@link ibc.lightclients.solomachine.v2.ClientState.verify|verify} messages. + * Encodes the specified GenesisState message. Does not implicitly {@link ibc.core.connection.v1.GenesisState.verify|verify} messages. * @function encode - * @memberof ibc.lightclients.solomachine.v2.ClientState + * @memberof ibc.core.connection.v1.GenesisState * @static - * @param {ibc.lightclients.solomachine.v2.IClientState} message ClientState message or plain object to encode + * @param {ibc.core.connection.v1.IGenesisState} message GenesisState message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ClientState.encode = function encode(message, writer) { + GenesisState.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.sequence != null && Object.hasOwnProperty.call(message, "sequence")) - writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.sequence); - if (message.is_frozen != null && Object.hasOwnProperty.call(message, "is_frozen")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.is_frozen); - if (message.consensus_state != null && Object.hasOwnProperty.call(message, "consensus_state")) - $root.ibc.lightclients.solomachine.v2.ConsensusState.encode(message.consensus_state, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.allow_update_after_proposal != null && Object.hasOwnProperty.call(message, "allow_update_after_proposal")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.allow_update_after_proposal); + if (message.connections != null && message.connections.length) + for (let i = 0; i < message.connections.length; ++i) + $root.ibc.core.connection.v1.IdentifiedConnection.encode(message.connections[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.client_connection_paths != null && message.client_connection_paths.length) + for (let i = 0; i < message.client_connection_paths.length; ++i) + $root.ibc.core.connection.v1.ConnectionPaths.encode(message.client_connection_paths[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.next_connection_sequence != null && Object.hasOwnProperty.call(message, "next_connection_sequence")) + writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.next_connection_sequence); + if (message.params != null && Object.hasOwnProperty.call(message, "params")) + $root.ibc.core.connection.v1.Params.encode(message.params, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; /** - * Encodes the specified ClientState message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v2.ClientState.verify|verify} messages. + * Encodes the specified GenesisState message, length delimited. Does not implicitly {@link ibc.core.connection.v1.GenesisState.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.lightclients.solomachine.v2.ClientState + * @memberof ibc.core.connection.v1.GenesisState * @static - * @param {ibc.lightclients.solomachine.v2.IClientState} message ClientState message or plain object to encode + * @param {ibc.core.connection.v1.IGenesisState} message GenesisState message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ClientState.encodeDelimited = function encodeDelimited(message, writer) { + GenesisState.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ClientState message from the specified reader or buffer. + * Decodes a GenesisState message from the specified reader or buffer. * @function decode - * @memberof ibc.lightclients.solomachine.v2.ClientState + * @memberof ibc.core.connection.v1.GenesisState * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.lightclients.solomachine.v2.ClientState} ClientState + * @returns {ibc.core.connection.v1.GenesisState} GenesisState * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ClientState.decode = function decode(reader, length) { + GenesisState.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.solomachine.v2.ClientState(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.connection.v1.GenesisState(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.sequence = reader.uint64(); + if (!(message.connections && message.connections.length)) + message.connections = []; + message.connections.push($root.ibc.core.connection.v1.IdentifiedConnection.decode(reader, reader.uint32())); break; case 2: - message.is_frozen = reader.bool(); + if (!(message.client_connection_paths && message.client_connection_paths.length)) + message.client_connection_paths = []; + message.client_connection_paths.push($root.ibc.core.connection.v1.ConnectionPaths.decode(reader, reader.uint32())); break; case 3: - message.consensus_state = $root.ibc.lightclients.solomachine.v2.ConsensusState.decode(reader, reader.uint32()); + message.next_connection_sequence = reader.uint64(); break; case 4: - message.allow_update_after_proposal = reader.bool(); + message.params = $root.ibc.core.connection.v1.Params.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -68428,153 +74598,213 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a ClientState message from the specified reader or buffer, length delimited. + * Decodes a GenesisState message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.lightclients.solomachine.v2.ClientState + * @memberof ibc.core.connection.v1.GenesisState * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.lightclients.solomachine.v2.ClientState} ClientState + * @returns {ibc.core.connection.v1.GenesisState} GenesisState * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ClientState.decodeDelimited = function decodeDelimited(reader) { + GenesisState.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ClientState message. + * Verifies a GenesisState message. * @function verify - * @memberof ibc.lightclients.solomachine.v2.ClientState + * @memberof ibc.core.connection.v1.GenesisState * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ClientState.verify = function verify(message) { + GenesisState.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.sequence != null && message.hasOwnProperty("sequence")) - if (!$util.isInteger(message.sequence) && !(message.sequence && $util.isInteger(message.sequence.low) && $util.isInteger(message.sequence.high))) - return "sequence: integer|Long expected"; - if (message.is_frozen != null && message.hasOwnProperty("is_frozen")) - if (typeof message.is_frozen !== "boolean") - return "is_frozen: boolean expected"; - if (message.consensus_state != null && message.hasOwnProperty("consensus_state")) { - let error = $root.ibc.lightclients.solomachine.v2.ConsensusState.verify(message.consensus_state); + if (message.connections != null && message.hasOwnProperty("connections")) { + if (!Array.isArray(message.connections)) + return "connections: array expected"; + for (let i = 0; i < message.connections.length; ++i) { + let error = $root.ibc.core.connection.v1.IdentifiedConnection.verify(message.connections[i]); + if (error) + return "connections." + error; + } + } + if (message.client_connection_paths != null && message.hasOwnProperty("client_connection_paths")) { + if (!Array.isArray(message.client_connection_paths)) + return "client_connection_paths: array expected"; + for (let i = 0; i < message.client_connection_paths.length; ++i) { + let error = $root.ibc.core.connection.v1.ConnectionPaths.verify(message.client_connection_paths[i]); + if (error) + return "client_connection_paths." + error; + } + } + if (message.next_connection_sequence != null && message.hasOwnProperty("next_connection_sequence")) + if (!$util.isInteger(message.next_connection_sequence) && !(message.next_connection_sequence && $util.isInteger(message.next_connection_sequence.low) && $util.isInteger(message.next_connection_sequence.high))) + return "next_connection_sequence: integer|Long expected"; + if (message.params != null && message.hasOwnProperty("params")) { + let error = $root.ibc.core.connection.v1.Params.verify(message.params); if (error) - return "consensus_state." + error; + return "params." + error; } - if (message.allow_update_after_proposal != null && message.hasOwnProperty("allow_update_after_proposal")) - if (typeof message.allow_update_after_proposal !== "boolean") - return "allow_update_after_proposal: boolean expected"; return null; }; /** - * Creates a ClientState message from a plain object. Also converts values to their respective internal types. + * Creates a GenesisState message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.lightclients.solomachine.v2.ClientState + * @memberof ibc.core.connection.v1.GenesisState * @static * @param {Object.} object Plain object - * @returns {ibc.lightclients.solomachine.v2.ClientState} ClientState + * @returns {ibc.core.connection.v1.GenesisState} GenesisState */ - ClientState.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.lightclients.solomachine.v2.ClientState) + GenesisState.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.connection.v1.GenesisState) return object; - let message = new $root.ibc.lightclients.solomachine.v2.ClientState(); - if (object.sequence != null) + let message = new $root.ibc.core.connection.v1.GenesisState(); + if (object.connections) { + if (!Array.isArray(object.connections)) + throw TypeError(".ibc.core.connection.v1.GenesisState.connections: array expected"); + message.connections = []; + for (let i = 0; i < object.connections.length; ++i) { + if (typeof object.connections[i] !== "object") + throw TypeError(".ibc.core.connection.v1.GenesisState.connections: object expected"); + message.connections[i] = $root.ibc.core.connection.v1.IdentifiedConnection.fromObject(object.connections[i]); + } + } + if (object.client_connection_paths) { + if (!Array.isArray(object.client_connection_paths)) + throw TypeError(".ibc.core.connection.v1.GenesisState.client_connection_paths: array expected"); + message.client_connection_paths = []; + for (let i = 0; i < object.client_connection_paths.length; ++i) { + if (typeof object.client_connection_paths[i] !== "object") + throw TypeError(".ibc.core.connection.v1.GenesisState.client_connection_paths: object expected"); + message.client_connection_paths[i] = $root.ibc.core.connection.v1.ConnectionPaths.fromObject(object.client_connection_paths[i]); + } + } + if (object.next_connection_sequence != null) if ($util.Long) - (message.sequence = $util.Long.fromValue(object.sequence)).unsigned = true; - else if (typeof object.sequence === "string") - message.sequence = parseInt(object.sequence, 10); - else if (typeof object.sequence === "number") - message.sequence = object.sequence; - else if (typeof object.sequence === "object") - message.sequence = new $util.LongBits(object.sequence.low >>> 0, object.sequence.high >>> 0).toNumber(true); - if (object.is_frozen != null) - message.is_frozen = Boolean(object.is_frozen); - if (object.consensus_state != null) { - if (typeof object.consensus_state !== "object") - throw TypeError(".ibc.lightclients.solomachine.v2.ClientState.consensus_state: object expected"); - message.consensus_state = $root.ibc.lightclients.solomachine.v2.ConsensusState.fromObject(object.consensus_state); + (message.next_connection_sequence = $util.Long.fromValue(object.next_connection_sequence)).unsigned = true; + else if (typeof object.next_connection_sequence === "string") + message.next_connection_sequence = parseInt(object.next_connection_sequence, 10); + else if (typeof object.next_connection_sequence === "number") + message.next_connection_sequence = object.next_connection_sequence; + else if (typeof object.next_connection_sequence === "object") + message.next_connection_sequence = new $util.LongBits(object.next_connection_sequence.low >>> 0, object.next_connection_sequence.high >>> 0).toNumber(true); + if (object.params != null) { + if (typeof object.params !== "object") + throw TypeError(".ibc.core.connection.v1.GenesisState.params: object expected"); + message.params = $root.ibc.core.connection.v1.Params.fromObject(object.params); } - if (object.allow_update_after_proposal != null) - message.allow_update_after_proposal = Boolean(object.allow_update_after_proposal); return message; }; /** - * Creates a plain object from a ClientState message. Also converts values to other types if specified. + * Creates a plain object from a GenesisState message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.lightclients.solomachine.v2.ClientState + * @memberof ibc.core.connection.v1.GenesisState * @static - * @param {ibc.lightclients.solomachine.v2.ClientState} message ClientState + * @param {ibc.core.connection.v1.GenesisState} message GenesisState * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ClientState.toObject = function toObject(message, options) { + GenesisState.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; + if (options.arrays || options.defaults) { + object.connections = []; + object.client_connection_paths = []; + } if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, true); - object.sequence = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + object.next_connection_sequence = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.sequence = options.longs === String ? "0" : 0; - object.is_frozen = false; - object.consensus_state = null; - object.allow_update_after_proposal = false; + object.next_connection_sequence = options.longs === String ? "0" : 0; + object.params = null; } - if (message.sequence != null && message.hasOwnProperty("sequence")) - if (typeof message.sequence === "number") - object.sequence = options.longs === String ? String(message.sequence) : message.sequence; + if (message.connections && message.connections.length) { + object.connections = []; + for (let j = 0; j < message.connections.length; ++j) + object.connections[j] = $root.ibc.core.connection.v1.IdentifiedConnection.toObject(message.connections[j], options); + } + if (message.client_connection_paths && message.client_connection_paths.length) { + object.client_connection_paths = []; + for (let j = 0; j < message.client_connection_paths.length; ++j) + object.client_connection_paths[j] = $root.ibc.core.connection.v1.ConnectionPaths.toObject(message.client_connection_paths[j], options); + } + if (message.next_connection_sequence != null && message.hasOwnProperty("next_connection_sequence")) + if (typeof message.next_connection_sequence === "number") + object.next_connection_sequence = options.longs === String ? String(message.next_connection_sequence) : message.next_connection_sequence; else - object.sequence = options.longs === String ? $util.Long.prototype.toString.call(message.sequence) : options.longs === Number ? new $util.LongBits(message.sequence.low >>> 0, message.sequence.high >>> 0).toNumber(true) : message.sequence; - if (message.is_frozen != null && message.hasOwnProperty("is_frozen")) - object.is_frozen = message.is_frozen; - if (message.consensus_state != null && message.hasOwnProperty("consensus_state")) - object.consensus_state = $root.ibc.lightclients.solomachine.v2.ConsensusState.toObject(message.consensus_state, options); - if (message.allow_update_after_proposal != null && message.hasOwnProperty("allow_update_after_proposal")) - object.allow_update_after_proposal = message.allow_update_after_proposal; + object.next_connection_sequence = options.longs === String ? $util.Long.prototype.toString.call(message.next_connection_sequence) : options.longs === Number ? new $util.LongBits(message.next_connection_sequence.low >>> 0, message.next_connection_sequence.high >>> 0).toNumber(true) : message.next_connection_sequence; + if (message.params != null && message.hasOwnProperty("params")) + object.params = $root.ibc.core.connection.v1.Params.toObject(message.params, options); return object; }; /** - * Converts this ClientState to JSON. + * Converts this GenesisState to JSON. * @function toJSON - * @memberof ibc.lightclients.solomachine.v2.ClientState + * @memberof ibc.core.connection.v1.GenesisState * @instance * @returns {Object.} JSON object */ - ClientState.prototype.toJSON = function toJSON() { + GenesisState.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ClientState; + return GenesisState; })(); - v2.ConsensusState = (function() { + return v1; + })(); + + return connection; + })(); + + core.types = (function() { + + /** + * Namespace types. + * @memberof ibc.core + * @namespace + */ + const types = {}; + + types.v1 = (function() { + + /** + * Namespace v1. + * @memberof ibc.core.types + * @namespace + */ + const v1 = {}; + + v1.GenesisState = (function() { /** - * Properties of a ConsensusState. - * @memberof ibc.lightclients.solomachine.v2 - * @interface IConsensusState - * @property {google.protobuf.IAny|null} [public_key] ConsensusState public_key - * @property {string|null} [diversifier] ConsensusState diversifier - * @property {Long|null} [timestamp] ConsensusState timestamp + * Properties of a GenesisState. + * @memberof ibc.core.types.v1 + * @interface IGenesisState + * @property {ibc.core.client.v1.IGenesisState|null} [client_genesis] GenesisState client_genesis + * @property {ibc.core.connection.v1.IGenesisState|null} [connection_genesis] GenesisState connection_genesis + * @property {ibc.core.channel.v1.IGenesisState|null} [channel_genesis] GenesisState channel_genesis */ /** - * Constructs a new ConsensusState. - * @memberof ibc.lightclients.solomachine.v2 - * @classdesc Represents a ConsensusState. - * @implements IConsensusState + * Constructs a new GenesisState. + * @memberof ibc.core.types.v1 + * @classdesc Represents a GenesisState. + * @implements IGenesisState * @constructor - * @param {ibc.lightclients.solomachine.v2.IConsensusState=} [properties] Properties to set + * @param {ibc.core.types.v1.IGenesisState=} [properties] Properties to set */ - function ConsensusState(properties) { + function GenesisState(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -68582,89 +74812,89 @@ export const ibc = $root.ibc = (() => { } /** - * ConsensusState public_key. - * @member {google.protobuf.IAny|null|undefined} public_key - * @memberof ibc.lightclients.solomachine.v2.ConsensusState + * GenesisState client_genesis. + * @member {ibc.core.client.v1.IGenesisState|null|undefined} client_genesis + * @memberof ibc.core.types.v1.GenesisState * @instance */ - ConsensusState.prototype.public_key = null; + GenesisState.prototype.client_genesis = null; /** - * ConsensusState diversifier. - * @member {string} diversifier - * @memberof ibc.lightclients.solomachine.v2.ConsensusState + * GenesisState connection_genesis. + * @member {ibc.core.connection.v1.IGenesisState|null|undefined} connection_genesis + * @memberof ibc.core.types.v1.GenesisState * @instance */ - ConsensusState.prototype.diversifier = ""; + GenesisState.prototype.connection_genesis = null; /** - * ConsensusState timestamp. - * @member {Long} timestamp - * @memberof ibc.lightclients.solomachine.v2.ConsensusState + * GenesisState channel_genesis. + * @member {ibc.core.channel.v1.IGenesisState|null|undefined} channel_genesis + * @memberof ibc.core.types.v1.GenesisState * @instance */ - ConsensusState.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + GenesisState.prototype.channel_genesis = null; /** - * Encodes the specified ConsensusState message. Does not implicitly {@link ibc.lightclients.solomachine.v2.ConsensusState.verify|verify} messages. + * Encodes the specified GenesisState message. Does not implicitly {@link ibc.core.types.v1.GenesisState.verify|verify} messages. * @function encode - * @memberof ibc.lightclients.solomachine.v2.ConsensusState + * @memberof ibc.core.types.v1.GenesisState * @static - * @param {ibc.lightclients.solomachine.v2.IConsensusState} message ConsensusState message or plain object to encode + * @param {ibc.core.types.v1.IGenesisState} message GenesisState message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ConsensusState.encode = function encode(message, writer) { + GenesisState.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.public_key != null && Object.hasOwnProperty.call(message, "public_key")) - $root.google.protobuf.Any.encode(message.public_key, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.diversifier != null && Object.hasOwnProperty.call(message, "diversifier")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.diversifier); - if (message.timestamp != null && Object.hasOwnProperty.call(message, "timestamp")) - writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.timestamp); + if (message.client_genesis != null && Object.hasOwnProperty.call(message, "client_genesis")) + $root.ibc.core.client.v1.GenesisState.encode(message.client_genesis, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.connection_genesis != null && Object.hasOwnProperty.call(message, "connection_genesis")) + $root.ibc.core.connection.v1.GenesisState.encode(message.connection_genesis, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.channel_genesis != null && Object.hasOwnProperty.call(message, "channel_genesis")) + $root.ibc.core.channel.v1.GenesisState.encode(message.channel_genesis, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified ConsensusState message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v2.ConsensusState.verify|verify} messages. + * Encodes the specified GenesisState message, length delimited. Does not implicitly {@link ibc.core.types.v1.GenesisState.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.lightclients.solomachine.v2.ConsensusState + * @memberof ibc.core.types.v1.GenesisState * @static - * @param {ibc.lightclients.solomachine.v2.IConsensusState} message ConsensusState message or plain object to encode + * @param {ibc.core.types.v1.IGenesisState} message GenesisState message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ConsensusState.encodeDelimited = function encodeDelimited(message, writer) { + GenesisState.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ConsensusState message from the specified reader or buffer. + * Decodes a GenesisState message from the specified reader or buffer. * @function decode - * @memberof ibc.lightclients.solomachine.v2.ConsensusState + * @memberof ibc.core.types.v1.GenesisState * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.lightclients.solomachine.v2.ConsensusState} ConsensusState + * @returns {ibc.core.types.v1.GenesisState} GenesisState * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ConsensusState.decode = function decode(reader, length) { + GenesisState.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.solomachine.v2.ConsensusState(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.core.types.v1.GenesisState(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.public_key = $root.google.protobuf.Any.decode(reader, reader.uint32()); + message.client_genesis = $root.ibc.core.client.v1.GenesisState.decode(reader, reader.uint32()); break; case 2: - message.diversifier = reader.string(); + message.connection_genesis = $root.ibc.core.connection.v1.GenesisState.decode(reader, reader.uint32()); break; case 3: - message.timestamp = reader.uint64(); + message.channel_genesis = $root.ibc.core.channel.v1.GenesisState.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -68675,147 +74905,175 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a ConsensusState message from the specified reader or buffer, length delimited. + * Decodes a GenesisState message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.lightclients.solomachine.v2.ConsensusState + * @memberof ibc.core.types.v1.GenesisState * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.lightclients.solomachine.v2.ConsensusState} ConsensusState + * @returns {ibc.core.types.v1.GenesisState} GenesisState * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ConsensusState.decodeDelimited = function decodeDelimited(reader) { + GenesisState.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ConsensusState message. + * Verifies a GenesisState message. * @function verify - * @memberof ibc.lightclients.solomachine.v2.ConsensusState + * @memberof ibc.core.types.v1.GenesisState * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ConsensusState.verify = function verify(message) { + GenesisState.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.public_key != null && message.hasOwnProperty("public_key")) { - let error = $root.google.protobuf.Any.verify(message.public_key); + if (message.client_genesis != null && message.hasOwnProperty("client_genesis")) { + let error = $root.ibc.core.client.v1.GenesisState.verify(message.client_genesis); if (error) - return "public_key." + error; + return "client_genesis." + error; + } + if (message.connection_genesis != null && message.hasOwnProperty("connection_genesis")) { + let error = $root.ibc.core.connection.v1.GenesisState.verify(message.connection_genesis); + if (error) + return "connection_genesis." + error; + } + if (message.channel_genesis != null && message.hasOwnProperty("channel_genesis")) { + let error = $root.ibc.core.channel.v1.GenesisState.verify(message.channel_genesis); + if (error) + return "channel_genesis." + error; } - if (message.diversifier != null && message.hasOwnProperty("diversifier")) - if (!$util.isString(message.diversifier)) - return "diversifier: string expected"; - if (message.timestamp != null && message.hasOwnProperty("timestamp")) - if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high))) - return "timestamp: integer|Long expected"; return null; }; /** - * Creates a ConsensusState message from a plain object. Also converts values to their respective internal types. + * Creates a GenesisState message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.lightclients.solomachine.v2.ConsensusState + * @memberof ibc.core.types.v1.GenesisState * @static * @param {Object.} object Plain object - * @returns {ibc.lightclients.solomachine.v2.ConsensusState} ConsensusState + * @returns {ibc.core.types.v1.GenesisState} GenesisState */ - ConsensusState.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.lightclients.solomachine.v2.ConsensusState) + GenesisState.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.core.types.v1.GenesisState) return object; - let message = new $root.ibc.lightclients.solomachine.v2.ConsensusState(); - if (object.public_key != null) { - if (typeof object.public_key !== "object") - throw TypeError(".ibc.lightclients.solomachine.v2.ConsensusState.public_key: object expected"); - message.public_key = $root.google.protobuf.Any.fromObject(object.public_key); + let message = new $root.ibc.core.types.v1.GenesisState(); + if (object.client_genesis != null) { + if (typeof object.client_genesis !== "object") + throw TypeError(".ibc.core.types.v1.GenesisState.client_genesis: object expected"); + message.client_genesis = $root.ibc.core.client.v1.GenesisState.fromObject(object.client_genesis); + } + if (object.connection_genesis != null) { + if (typeof object.connection_genesis !== "object") + throw TypeError(".ibc.core.types.v1.GenesisState.connection_genesis: object expected"); + message.connection_genesis = $root.ibc.core.connection.v1.GenesisState.fromObject(object.connection_genesis); + } + if (object.channel_genesis != null) { + if (typeof object.channel_genesis !== "object") + throw TypeError(".ibc.core.types.v1.GenesisState.channel_genesis: object expected"); + message.channel_genesis = $root.ibc.core.channel.v1.GenesisState.fromObject(object.channel_genesis); } - if (object.diversifier != null) - message.diversifier = String(object.diversifier); - if (object.timestamp != null) - if ($util.Long) - (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true; - else if (typeof object.timestamp === "string") - message.timestamp = parseInt(object.timestamp, 10); - else if (typeof object.timestamp === "number") - message.timestamp = object.timestamp; - else if (typeof object.timestamp === "object") - message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true); return message; }; /** - * Creates a plain object from a ConsensusState message. Also converts values to other types if specified. + * Creates a plain object from a GenesisState message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.lightclients.solomachine.v2.ConsensusState + * @memberof ibc.core.types.v1.GenesisState * @static - * @param {ibc.lightclients.solomachine.v2.ConsensusState} message ConsensusState + * @param {ibc.core.types.v1.GenesisState} message GenesisState * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ConsensusState.toObject = function toObject(message, options) { + GenesisState.toObject = function toObject(message, options) { if (!options) options = {}; - let object = {}; - if (options.defaults) { - object.public_key = null; - object.diversifier = ""; - if ($util.Long) { - let long = new $util.Long(0, 0, true); - object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.timestamp = options.longs === String ? "0" : 0; - } - if (message.public_key != null && message.hasOwnProperty("public_key")) - object.public_key = $root.google.protobuf.Any.toObject(message.public_key, options); - if (message.diversifier != null && message.hasOwnProperty("diversifier")) - object.diversifier = message.diversifier; - if (message.timestamp != null && message.hasOwnProperty("timestamp")) - if (typeof message.timestamp === "number") - object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp; - else - object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber(true) : message.timestamp; + let object = {}; + if (options.defaults) { + object.client_genesis = null; + object.connection_genesis = null; + object.channel_genesis = null; + } + if (message.client_genesis != null && message.hasOwnProperty("client_genesis")) + object.client_genesis = $root.ibc.core.client.v1.GenesisState.toObject(message.client_genesis, options); + if (message.connection_genesis != null && message.hasOwnProperty("connection_genesis")) + object.connection_genesis = $root.ibc.core.connection.v1.GenesisState.toObject(message.connection_genesis, options); + if (message.channel_genesis != null && message.hasOwnProperty("channel_genesis")) + object.channel_genesis = $root.ibc.core.channel.v1.GenesisState.toObject(message.channel_genesis, options); return object; }; /** - * Converts this ConsensusState to JSON. + * Converts this GenesisState to JSON. * @function toJSON - * @memberof ibc.lightclients.solomachine.v2.ConsensusState + * @memberof ibc.core.types.v1.GenesisState * @instance * @returns {Object.} JSON object */ - ConsensusState.prototype.toJSON = function toJSON() { + GenesisState.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ConsensusState; + return GenesisState; })(); - v2.Header = (function() { + return v1; + })(); + + return types; + })(); + + return core; + })(); + + ibc.lightclients = (function() { + + /** + * Namespace lightclients. + * @memberof ibc + * @namespace + */ + const lightclients = {}; + + lightclients.localhost = (function() { + + /** + * Namespace localhost. + * @memberof ibc.lightclients + * @namespace + */ + const localhost = {}; + + localhost.v2 = (function() { + + /** + * Namespace v2. + * @memberof ibc.lightclients.localhost + * @namespace + */ + const v2 = {}; + + v2.ClientState = (function() { /** - * Properties of a Header. - * @memberof ibc.lightclients.solomachine.v2 - * @interface IHeader - * @property {Long|null} [sequence] Header sequence - * @property {Long|null} [timestamp] Header timestamp - * @property {Uint8Array|null} [signature] Header signature - * @property {google.protobuf.IAny|null} [new_public_key] Header new_public_key - * @property {string|null} [new_diversifier] Header new_diversifier + * Properties of a ClientState. + * @memberof ibc.lightclients.localhost.v2 + * @interface IClientState + * @property {ibc.core.client.v1.IHeight|null} [latest_height] ClientState latest_height */ /** - * Constructs a new Header. - * @memberof ibc.lightclients.solomachine.v2 - * @classdesc Represents a Header. - * @implements IHeader + * Constructs a new ClientState. + * @memberof ibc.lightclients.localhost.v2 + * @classdesc Represents a ClientState. + * @implements IClientState * @constructor - * @param {ibc.lightclients.solomachine.v2.IHeader=} [properties] Properties to set + * @param {ibc.lightclients.localhost.v2.IClientState=} [properties] Properties to set */ - function Header(properties) { + function ClientState(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -68823,115 +75081,63 @@ export const ibc = $root.ibc = (() => { } /** - * Header sequence. - * @member {Long} sequence - * @memberof ibc.lightclients.solomachine.v2.Header - * @instance - */ - Header.prototype.sequence = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * Header timestamp. - * @member {Long} timestamp - * @memberof ibc.lightclients.solomachine.v2.Header - * @instance - */ - Header.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * Header signature. - * @member {Uint8Array} signature - * @memberof ibc.lightclients.solomachine.v2.Header - * @instance - */ - Header.prototype.signature = $util.newBuffer([]); - - /** - * Header new_public_key. - * @member {google.protobuf.IAny|null|undefined} new_public_key - * @memberof ibc.lightclients.solomachine.v2.Header - * @instance - */ - Header.prototype.new_public_key = null; - - /** - * Header new_diversifier. - * @member {string} new_diversifier - * @memberof ibc.lightclients.solomachine.v2.Header + * ClientState latest_height. + * @member {ibc.core.client.v1.IHeight|null|undefined} latest_height + * @memberof ibc.lightclients.localhost.v2.ClientState * @instance */ - Header.prototype.new_diversifier = ""; + ClientState.prototype.latest_height = null; /** - * Encodes the specified Header message. Does not implicitly {@link ibc.lightclients.solomachine.v2.Header.verify|verify} messages. + * Encodes the specified ClientState message. Does not implicitly {@link ibc.lightclients.localhost.v2.ClientState.verify|verify} messages. * @function encode - * @memberof ibc.lightclients.solomachine.v2.Header + * @memberof ibc.lightclients.localhost.v2.ClientState * @static - * @param {ibc.lightclients.solomachine.v2.IHeader} message Header message or plain object to encode + * @param {ibc.lightclients.localhost.v2.IClientState} message ClientState message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Header.encode = function encode(message, writer) { + ClientState.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.sequence != null && Object.hasOwnProperty.call(message, "sequence")) - writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.sequence); - if (message.timestamp != null && Object.hasOwnProperty.call(message, "timestamp")) - writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.timestamp); - if (message.signature != null && Object.hasOwnProperty.call(message, "signature")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.signature); - if (message.new_public_key != null && Object.hasOwnProperty.call(message, "new_public_key")) - $root.google.protobuf.Any.encode(message.new_public_key, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.new_diversifier != null && Object.hasOwnProperty.call(message, "new_diversifier")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.new_diversifier); + if (message.latest_height != null && Object.hasOwnProperty.call(message, "latest_height")) + $root.ibc.core.client.v1.Height.encode(message.latest_height, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified Header message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v2.Header.verify|verify} messages. + * Encodes the specified ClientState message, length delimited. Does not implicitly {@link ibc.lightclients.localhost.v2.ClientState.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.lightclients.solomachine.v2.Header + * @memberof ibc.lightclients.localhost.v2.ClientState * @static - * @param {ibc.lightclients.solomachine.v2.IHeader} message Header message or plain object to encode + * @param {ibc.lightclients.localhost.v2.IClientState} message ClientState message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Header.encodeDelimited = function encodeDelimited(message, writer) { + ClientState.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Header message from the specified reader or buffer. + * Decodes a ClientState message from the specified reader or buffer. * @function decode - * @memberof ibc.lightclients.solomachine.v2.Header + * @memberof ibc.lightclients.localhost.v2.ClientState * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.lightclients.solomachine.v2.Header} Header + * @returns {ibc.lightclients.localhost.v2.ClientState} ClientState * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Header.decode = function decode(reader, length) { + ClientState.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.solomachine.v2.Header(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.localhost.v2.ClientState(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.sequence = reader.uint64(); - break; - case 2: - message.timestamp = reader.uint64(); - break; - case 3: - message.signature = reader.bytes(); - break; - case 4: - message.new_public_key = $root.google.protobuf.Any.decode(reader, reader.uint32()); - break; - case 5: - message.new_diversifier = reader.string(); + message.latest_height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -68942,185 +75148,139 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a Header message from the specified reader or buffer, length delimited. + * Decodes a ClientState message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.lightclients.solomachine.v2.Header + * @memberof ibc.lightclients.localhost.v2.ClientState * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.lightclients.solomachine.v2.Header} Header + * @returns {ibc.lightclients.localhost.v2.ClientState} ClientState * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Header.decodeDelimited = function decodeDelimited(reader) { + ClientState.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Header message. + * Verifies a ClientState message. * @function verify - * @memberof ibc.lightclients.solomachine.v2.Header + * @memberof ibc.lightclients.localhost.v2.ClientState * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Header.verify = function verify(message) { + ClientState.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.sequence != null && message.hasOwnProperty("sequence")) - if (!$util.isInteger(message.sequence) && !(message.sequence && $util.isInteger(message.sequence.low) && $util.isInteger(message.sequence.high))) - return "sequence: integer|Long expected"; - if (message.timestamp != null && message.hasOwnProperty("timestamp")) - if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high))) - return "timestamp: integer|Long expected"; - if (message.signature != null && message.hasOwnProperty("signature")) - if (!(message.signature && typeof message.signature.length === "number" || $util.isString(message.signature))) - return "signature: buffer expected"; - if (message.new_public_key != null && message.hasOwnProperty("new_public_key")) { - let error = $root.google.protobuf.Any.verify(message.new_public_key); + if (message.latest_height != null && message.hasOwnProperty("latest_height")) { + let error = $root.ibc.core.client.v1.Height.verify(message.latest_height); if (error) - return "new_public_key." + error; + return "latest_height." + error; } - if (message.new_diversifier != null && message.hasOwnProperty("new_diversifier")) - if (!$util.isString(message.new_diversifier)) - return "new_diversifier: string expected"; return null; }; /** - * Creates a Header message from a plain object. Also converts values to their respective internal types. + * Creates a ClientState message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.lightclients.solomachine.v2.Header + * @memberof ibc.lightclients.localhost.v2.ClientState * @static * @param {Object.} object Plain object - * @returns {ibc.lightclients.solomachine.v2.Header} Header + * @returns {ibc.lightclients.localhost.v2.ClientState} ClientState */ - Header.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.lightclients.solomachine.v2.Header) + ClientState.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.lightclients.localhost.v2.ClientState) return object; - let message = new $root.ibc.lightclients.solomachine.v2.Header(); - if (object.sequence != null) - if ($util.Long) - (message.sequence = $util.Long.fromValue(object.sequence)).unsigned = true; - else if (typeof object.sequence === "string") - message.sequence = parseInt(object.sequence, 10); - else if (typeof object.sequence === "number") - message.sequence = object.sequence; - else if (typeof object.sequence === "object") - message.sequence = new $util.LongBits(object.sequence.low >>> 0, object.sequence.high >>> 0).toNumber(true); - if (object.timestamp != null) - if ($util.Long) - (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true; - else if (typeof object.timestamp === "string") - message.timestamp = parseInt(object.timestamp, 10); - else if (typeof object.timestamp === "number") - message.timestamp = object.timestamp; - else if (typeof object.timestamp === "object") - message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true); - if (object.signature != null) - if (typeof object.signature === "string") - $util.base64.decode(object.signature, message.signature = $util.newBuffer($util.base64.length(object.signature)), 0); - else if (object.signature.length) - message.signature = object.signature; - if (object.new_public_key != null) { - if (typeof object.new_public_key !== "object") - throw TypeError(".ibc.lightclients.solomachine.v2.Header.new_public_key: object expected"); - message.new_public_key = $root.google.protobuf.Any.fromObject(object.new_public_key); + let message = new $root.ibc.lightclients.localhost.v2.ClientState(); + if (object.latest_height != null) { + if (typeof object.latest_height !== "object") + throw TypeError(".ibc.lightclients.localhost.v2.ClientState.latest_height: object expected"); + message.latest_height = $root.ibc.core.client.v1.Height.fromObject(object.latest_height); } - if (object.new_diversifier != null) - message.new_diversifier = String(object.new_diversifier); return message; }; /** - * Creates a plain object from a Header message. Also converts values to other types if specified. + * Creates a plain object from a ClientState message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.lightclients.solomachine.v2.Header + * @memberof ibc.lightclients.localhost.v2.ClientState * @static - * @param {ibc.lightclients.solomachine.v2.Header} message Header + * @param {ibc.lightclients.localhost.v2.ClientState} message ClientState * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Header.toObject = function toObject(message, options) { + ClientState.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) { - if ($util.Long) { - let long = new $util.Long(0, 0, true); - object.sequence = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.sequence = options.longs === String ? "0" : 0; - if ($util.Long) { - let long = new $util.Long(0, 0, true); - object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.timestamp = options.longs === String ? "0" : 0; - if (options.bytes === String) - object.signature = ""; - else { - object.signature = []; - if (options.bytes !== Array) - object.signature = $util.newBuffer(object.signature); - } - object.new_public_key = null; - object.new_diversifier = ""; - } - if (message.sequence != null && message.hasOwnProperty("sequence")) - if (typeof message.sequence === "number") - object.sequence = options.longs === String ? String(message.sequence) : message.sequence; - else - object.sequence = options.longs === String ? $util.Long.prototype.toString.call(message.sequence) : options.longs === Number ? new $util.LongBits(message.sequence.low >>> 0, message.sequence.high >>> 0).toNumber(true) : message.sequence; - if (message.timestamp != null && message.hasOwnProperty("timestamp")) - if (typeof message.timestamp === "number") - object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp; - else - object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber(true) : message.timestamp; - if (message.signature != null && message.hasOwnProperty("signature")) - object.signature = options.bytes === String ? $util.base64.encode(message.signature, 0, message.signature.length) : options.bytes === Array ? Array.prototype.slice.call(message.signature) : message.signature; - if (message.new_public_key != null && message.hasOwnProperty("new_public_key")) - object.new_public_key = $root.google.protobuf.Any.toObject(message.new_public_key, options); - if (message.new_diversifier != null && message.hasOwnProperty("new_diversifier")) - object.new_diversifier = message.new_diversifier; + if (options.defaults) + object.latest_height = null; + if (message.latest_height != null && message.hasOwnProperty("latest_height")) + object.latest_height = $root.ibc.core.client.v1.Height.toObject(message.latest_height, options); return object; }; /** - * Converts this Header to JSON. + * Converts this ClientState to JSON. * @function toJSON - * @memberof ibc.lightclients.solomachine.v2.Header + * @memberof ibc.lightclients.localhost.v2.ClientState * @instance * @returns {Object.} JSON object */ - Header.prototype.toJSON = function toJSON() { + ClientState.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Header; + return ClientState; })(); - v2.Misbehaviour = (function() { + return v2; + })(); + + return localhost; + })(); + + lightclients.solomachine = (function() { + + /** + * Namespace solomachine. + * @memberof ibc.lightclients + * @namespace + */ + const solomachine = {}; + + solomachine.v2 = (function() { + + /** + * Namespace v2. + * @memberof ibc.lightclients.solomachine + * @namespace + */ + const v2 = {}; + + v2.ClientState = (function() { /** - * Properties of a Misbehaviour. + * Properties of a ClientState. * @memberof ibc.lightclients.solomachine.v2 - * @interface IMisbehaviour - * @property {string|null} [client_id] Misbehaviour client_id - * @property {Long|null} [sequence] Misbehaviour sequence - * @property {ibc.lightclients.solomachine.v2.ISignatureAndData|null} [signature_one] Misbehaviour signature_one - * @property {ibc.lightclients.solomachine.v2.ISignatureAndData|null} [signature_two] Misbehaviour signature_two + * @interface IClientState + * @property {Long|null} [sequence] ClientState sequence + * @property {boolean|null} [is_frozen] ClientState is_frozen + * @property {ibc.lightclients.solomachine.v2.IConsensusState|null} [consensus_state] ClientState consensus_state + * @property {boolean|null} [allow_update_after_proposal] ClientState allow_update_after_proposal */ /** - * Constructs a new Misbehaviour. + * Constructs a new ClientState. * @memberof ibc.lightclients.solomachine.v2 - * @classdesc Represents a Misbehaviour. - * @implements IMisbehaviour + * @classdesc Represents a ClientState. + * @implements IClientState * @constructor - * @param {ibc.lightclients.solomachine.v2.IMisbehaviour=} [properties] Properties to set + * @param {ibc.lightclients.solomachine.v2.IClientState=} [properties] Properties to set */ - function Misbehaviour(properties) { + function ClientState(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -69128,102 +75288,102 @@ export const ibc = $root.ibc = (() => { } /** - * Misbehaviour client_id. - * @member {string} client_id - * @memberof ibc.lightclients.solomachine.v2.Misbehaviour + * ClientState sequence. + * @member {Long} sequence + * @memberof ibc.lightclients.solomachine.v2.ClientState * @instance */ - Misbehaviour.prototype.client_id = ""; + ClientState.prototype.sequence = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** - * Misbehaviour sequence. - * @member {Long} sequence - * @memberof ibc.lightclients.solomachine.v2.Misbehaviour + * ClientState is_frozen. + * @member {boolean} is_frozen + * @memberof ibc.lightclients.solomachine.v2.ClientState * @instance */ - Misbehaviour.prototype.sequence = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + ClientState.prototype.is_frozen = false; /** - * Misbehaviour signature_one. - * @member {ibc.lightclients.solomachine.v2.ISignatureAndData|null|undefined} signature_one - * @memberof ibc.lightclients.solomachine.v2.Misbehaviour + * ClientState consensus_state. + * @member {ibc.lightclients.solomachine.v2.IConsensusState|null|undefined} consensus_state + * @memberof ibc.lightclients.solomachine.v2.ClientState * @instance */ - Misbehaviour.prototype.signature_one = null; + ClientState.prototype.consensus_state = null; /** - * Misbehaviour signature_two. - * @member {ibc.lightclients.solomachine.v2.ISignatureAndData|null|undefined} signature_two - * @memberof ibc.lightclients.solomachine.v2.Misbehaviour + * ClientState allow_update_after_proposal. + * @member {boolean} allow_update_after_proposal + * @memberof ibc.lightclients.solomachine.v2.ClientState * @instance */ - Misbehaviour.prototype.signature_two = null; + ClientState.prototype.allow_update_after_proposal = false; /** - * Encodes the specified Misbehaviour message. Does not implicitly {@link ibc.lightclients.solomachine.v2.Misbehaviour.verify|verify} messages. + * Encodes the specified ClientState message. Does not implicitly {@link ibc.lightclients.solomachine.v2.ClientState.verify|verify} messages. * @function encode - * @memberof ibc.lightclients.solomachine.v2.Misbehaviour + * @memberof ibc.lightclients.solomachine.v2.ClientState * @static - * @param {ibc.lightclients.solomachine.v2.IMisbehaviour} message Misbehaviour message or plain object to encode + * @param {ibc.lightclients.solomachine.v2.IClientState} message ClientState message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Misbehaviour.encode = function encode(message, writer) { + ClientState.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.client_id != null && Object.hasOwnProperty.call(message, "client_id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.client_id); if (message.sequence != null && Object.hasOwnProperty.call(message, "sequence")) - writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.sequence); - if (message.signature_one != null && Object.hasOwnProperty.call(message, "signature_one")) - $root.ibc.lightclients.solomachine.v2.SignatureAndData.encode(message.signature_one, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.signature_two != null && Object.hasOwnProperty.call(message, "signature_two")) - $root.ibc.lightclients.solomachine.v2.SignatureAndData.encode(message.signature_two, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.sequence); + if (message.is_frozen != null && Object.hasOwnProperty.call(message, "is_frozen")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.is_frozen); + if (message.consensus_state != null && Object.hasOwnProperty.call(message, "consensus_state")) + $root.ibc.lightclients.solomachine.v2.ConsensusState.encode(message.consensus_state, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.allow_update_after_proposal != null && Object.hasOwnProperty.call(message, "allow_update_after_proposal")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.allow_update_after_proposal); return writer; }; /** - * Encodes the specified Misbehaviour message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v2.Misbehaviour.verify|verify} messages. + * Encodes the specified ClientState message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v2.ClientState.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.lightclients.solomachine.v2.Misbehaviour + * @memberof ibc.lightclients.solomachine.v2.ClientState * @static - * @param {ibc.lightclients.solomachine.v2.IMisbehaviour} message Misbehaviour message or plain object to encode + * @param {ibc.lightclients.solomachine.v2.IClientState} message ClientState message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Misbehaviour.encodeDelimited = function encodeDelimited(message, writer) { + ClientState.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Misbehaviour message from the specified reader or buffer. + * Decodes a ClientState message from the specified reader or buffer. * @function decode - * @memberof ibc.lightclients.solomachine.v2.Misbehaviour + * @memberof ibc.lightclients.solomachine.v2.ClientState * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.lightclients.solomachine.v2.Misbehaviour} Misbehaviour + * @returns {ibc.lightclients.solomachine.v2.ClientState} ClientState * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Misbehaviour.decode = function decode(reader, length) { + ClientState.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.solomachine.v2.Misbehaviour(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.solomachine.v2.ClientState(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.client_id = reader.string(); + message.sequence = reader.uint64(); break; case 2: - message.sequence = reader.uint64(); + message.is_frozen = reader.bool(); break; case 3: - message.signature_one = $root.ibc.lightclients.solomachine.v2.SignatureAndData.decode(reader, reader.uint32()); + message.consensus_state = $root.ibc.lightclients.solomachine.v2.ConsensusState.decode(reader, reader.uint32()); break; case 4: - message.signature_two = $root.ibc.lightclients.solomachine.v2.SignatureAndData.decode(reader, reader.uint32()); + message.allow_update_after_proposal = reader.bool(); break; default: reader.skipType(tag & 7); @@ -69234,65 +75394,61 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a Misbehaviour message from the specified reader or buffer, length delimited. + * Decodes a ClientState message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.lightclients.solomachine.v2.Misbehaviour + * @memberof ibc.lightclients.solomachine.v2.ClientState * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.lightclients.solomachine.v2.Misbehaviour} Misbehaviour + * @returns {ibc.lightclients.solomachine.v2.ClientState} ClientState * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Misbehaviour.decodeDelimited = function decodeDelimited(reader) { + ClientState.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Misbehaviour message. + * Verifies a ClientState message. * @function verify - * @memberof ibc.lightclients.solomachine.v2.Misbehaviour + * @memberof ibc.lightclients.solomachine.v2.ClientState * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Misbehaviour.verify = function verify(message) { + ClientState.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.client_id != null && message.hasOwnProperty("client_id")) - if (!$util.isString(message.client_id)) - return "client_id: string expected"; if (message.sequence != null && message.hasOwnProperty("sequence")) if (!$util.isInteger(message.sequence) && !(message.sequence && $util.isInteger(message.sequence.low) && $util.isInteger(message.sequence.high))) return "sequence: integer|Long expected"; - if (message.signature_one != null && message.hasOwnProperty("signature_one")) { - let error = $root.ibc.lightclients.solomachine.v2.SignatureAndData.verify(message.signature_one); - if (error) - return "signature_one." + error; - } - if (message.signature_two != null && message.hasOwnProperty("signature_two")) { - let error = $root.ibc.lightclients.solomachine.v2.SignatureAndData.verify(message.signature_two); + if (message.is_frozen != null && message.hasOwnProperty("is_frozen")) + if (typeof message.is_frozen !== "boolean") + return "is_frozen: boolean expected"; + if (message.consensus_state != null && message.hasOwnProperty("consensus_state")) { + let error = $root.ibc.lightclients.solomachine.v2.ConsensusState.verify(message.consensus_state); if (error) - return "signature_two." + error; + return "consensus_state." + error; } + if (message.allow_update_after_proposal != null && message.hasOwnProperty("allow_update_after_proposal")) + if (typeof message.allow_update_after_proposal !== "boolean") + return "allow_update_after_proposal: boolean expected"; return null; }; /** - * Creates a Misbehaviour message from a plain object. Also converts values to their respective internal types. + * Creates a ClientState message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.lightclients.solomachine.v2.Misbehaviour + * @memberof ibc.lightclients.solomachine.v2.ClientState * @static * @param {Object.} object Plain object - * @returns {ibc.lightclients.solomachine.v2.Misbehaviour} Misbehaviour + * @returns {ibc.lightclients.solomachine.v2.ClientState} ClientState */ - Misbehaviour.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.lightclients.solomachine.v2.Misbehaviour) + ClientState.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.lightclients.solomachine.v2.ClientState) return object; - let message = new $root.ibc.lightclients.solomachine.v2.Misbehaviour(); - if (object.client_id != null) - message.client_id = String(object.client_id); + let message = new $root.ibc.lightclients.solomachine.v2.ClientState(); if (object.sequence != null) if ($util.Long) (message.sequence = $util.Long.fromValue(object.sequence)).unsigned = true; @@ -69302,91 +75458,89 @@ export const ibc = $root.ibc = (() => { message.sequence = object.sequence; else if (typeof object.sequence === "object") message.sequence = new $util.LongBits(object.sequence.low >>> 0, object.sequence.high >>> 0).toNumber(true); - if (object.signature_one != null) { - if (typeof object.signature_one !== "object") - throw TypeError(".ibc.lightclients.solomachine.v2.Misbehaviour.signature_one: object expected"); - message.signature_one = $root.ibc.lightclients.solomachine.v2.SignatureAndData.fromObject(object.signature_one); - } - if (object.signature_two != null) { - if (typeof object.signature_two !== "object") - throw TypeError(".ibc.lightclients.solomachine.v2.Misbehaviour.signature_two: object expected"); - message.signature_two = $root.ibc.lightclients.solomachine.v2.SignatureAndData.fromObject(object.signature_two); + if (object.is_frozen != null) + message.is_frozen = Boolean(object.is_frozen); + if (object.consensus_state != null) { + if (typeof object.consensus_state !== "object") + throw TypeError(".ibc.lightclients.solomachine.v2.ClientState.consensus_state: object expected"); + message.consensus_state = $root.ibc.lightclients.solomachine.v2.ConsensusState.fromObject(object.consensus_state); } + if (object.allow_update_after_proposal != null) + message.allow_update_after_proposal = Boolean(object.allow_update_after_proposal); return message; }; /** - * Creates a plain object from a Misbehaviour message. Also converts values to other types if specified. + * Creates a plain object from a ClientState message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.lightclients.solomachine.v2.Misbehaviour + * @memberof ibc.lightclients.solomachine.v2.ClientState * @static - * @param {ibc.lightclients.solomachine.v2.Misbehaviour} message Misbehaviour + * @param {ibc.lightclients.solomachine.v2.ClientState} message ClientState * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Misbehaviour.toObject = function toObject(message, options) { + ClientState.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - object.client_id = ""; if ($util.Long) { let long = new $util.Long(0, 0, true); object.sequence = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else object.sequence = options.longs === String ? "0" : 0; - object.signature_one = null; - object.signature_two = null; + object.is_frozen = false; + object.consensus_state = null; + object.allow_update_after_proposal = false; } - if (message.client_id != null && message.hasOwnProperty("client_id")) - object.client_id = message.client_id; if (message.sequence != null && message.hasOwnProperty("sequence")) if (typeof message.sequence === "number") object.sequence = options.longs === String ? String(message.sequence) : message.sequence; else object.sequence = options.longs === String ? $util.Long.prototype.toString.call(message.sequence) : options.longs === Number ? new $util.LongBits(message.sequence.low >>> 0, message.sequence.high >>> 0).toNumber(true) : message.sequence; - if (message.signature_one != null && message.hasOwnProperty("signature_one")) - object.signature_one = $root.ibc.lightclients.solomachine.v2.SignatureAndData.toObject(message.signature_one, options); - if (message.signature_two != null && message.hasOwnProperty("signature_two")) - object.signature_two = $root.ibc.lightclients.solomachine.v2.SignatureAndData.toObject(message.signature_two, options); + if (message.is_frozen != null && message.hasOwnProperty("is_frozen")) + object.is_frozen = message.is_frozen; + if (message.consensus_state != null && message.hasOwnProperty("consensus_state")) + object.consensus_state = $root.ibc.lightclients.solomachine.v2.ConsensusState.toObject(message.consensus_state, options); + if (message.allow_update_after_proposal != null && message.hasOwnProperty("allow_update_after_proposal")) + object.allow_update_after_proposal = message.allow_update_after_proposal; return object; }; /** - * Converts this Misbehaviour to JSON. + * Converts this ClientState to JSON. * @function toJSON - * @memberof ibc.lightclients.solomachine.v2.Misbehaviour + * @memberof ibc.lightclients.solomachine.v2.ClientState * @instance * @returns {Object.} JSON object */ - Misbehaviour.prototype.toJSON = function toJSON() { + ClientState.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Misbehaviour; + return ClientState; })(); - v2.SignatureAndData = (function() { + v2.ConsensusState = (function() { /** - * Properties of a SignatureAndData. + * Properties of a ConsensusState. * @memberof ibc.lightclients.solomachine.v2 - * @interface ISignatureAndData - * @property {Uint8Array|null} [signature] SignatureAndData signature - * @property {ibc.lightclients.solomachine.v2.DataType|null} [data_type] SignatureAndData data_type - * @property {Uint8Array|null} [data] SignatureAndData data - * @property {Long|null} [timestamp] SignatureAndData timestamp + * @interface IConsensusState + * @property {google.protobuf.IAny|null} [public_key] ConsensusState public_key + * @property {string|null} [diversifier] ConsensusState diversifier + * @property {Long|null} [timestamp] ConsensusState timestamp */ /** - * Constructs a new SignatureAndData. + * Constructs a new ConsensusState. * @memberof ibc.lightclients.solomachine.v2 - * @classdesc Represents a SignatureAndData. - * @implements ISignatureAndData + * @classdesc Represents a ConsensusState. + * @implements IConsensusState * @constructor - * @param {ibc.lightclients.solomachine.v2.ISignatureAndData=} [properties] Properties to set + * @param {ibc.lightclients.solomachine.v2.IConsensusState=} [properties] Properties to set */ - function SignatureAndData(properties) { + function ConsensusState(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -69394,101 +75548,88 @@ export const ibc = $root.ibc = (() => { } /** - * SignatureAndData signature. - * @member {Uint8Array} signature - * @memberof ibc.lightclients.solomachine.v2.SignatureAndData - * @instance - */ - SignatureAndData.prototype.signature = $util.newBuffer([]); - - /** - * SignatureAndData data_type. - * @member {ibc.lightclients.solomachine.v2.DataType} data_type - * @memberof ibc.lightclients.solomachine.v2.SignatureAndData + * ConsensusState public_key. + * @member {google.protobuf.IAny|null|undefined} public_key + * @memberof ibc.lightclients.solomachine.v2.ConsensusState * @instance */ - SignatureAndData.prototype.data_type = 0; + ConsensusState.prototype.public_key = null; /** - * SignatureAndData data. - * @member {Uint8Array} data - * @memberof ibc.lightclients.solomachine.v2.SignatureAndData + * ConsensusState diversifier. + * @member {string} diversifier + * @memberof ibc.lightclients.solomachine.v2.ConsensusState * @instance */ - SignatureAndData.prototype.data = $util.newBuffer([]); + ConsensusState.prototype.diversifier = ""; /** - * SignatureAndData timestamp. + * ConsensusState timestamp. * @member {Long} timestamp - * @memberof ibc.lightclients.solomachine.v2.SignatureAndData + * @memberof ibc.lightclients.solomachine.v2.ConsensusState * @instance */ - SignatureAndData.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + ConsensusState.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** - * Encodes the specified SignatureAndData message. Does not implicitly {@link ibc.lightclients.solomachine.v2.SignatureAndData.verify|verify} messages. + * Encodes the specified ConsensusState message. Does not implicitly {@link ibc.lightclients.solomachine.v2.ConsensusState.verify|verify} messages. * @function encode - * @memberof ibc.lightclients.solomachine.v2.SignatureAndData + * @memberof ibc.lightclients.solomachine.v2.ConsensusState * @static - * @param {ibc.lightclients.solomachine.v2.ISignatureAndData} message SignatureAndData message or plain object to encode + * @param {ibc.lightclients.solomachine.v2.IConsensusState} message ConsensusState message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SignatureAndData.encode = function encode(message, writer) { + ConsensusState.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.signature != null && Object.hasOwnProperty.call(message, "signature")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.signature); - if (message.data_type != null && Object.hasOwnProperty.call(message, "data_type")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.data_type); - if (message.data != null && Object.hasOwnProperty.call(message, "data")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.data); + if (message.public_key != null && Object.hasOwnProperty.call(message, "public_key")) + $root.google.protobuf.Any.encode(message.public_key, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.diversifier != null && Object.hasOwnProperty.call(message, "diversifier")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.diversifier); if (message.timestamp != null && Object.hasOwnProperty.call(message, "timestamp")) - writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.timestamp); + writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.timestamp); return writer; }; /** - * Encodes the specified SignatureAndData message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v2.SignatureAndData.verify|verify} messages. + * Encodes the specified ConsensusState message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v2.ConsensusState.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.lightclients.solomachine.v2.SignatureAndData + * @memberof ibc.lightclients.solomachine.v2.ConsensusState * @static - * @param {ibc.lightclients.solomachine.v2.ISignatureAndData} message SignatureAndData message or plain object to encode + * @param {ibc.lightclients.solomachine.v2.IConsensusState} message ConsensusState message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SignatureAndData.encodeDelimited = function encodeDelimited(message, writer) { + ConsensusState.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SignatureAndData message from the specified reader or buffer. + * Decodes a ConsensusState message from the specified reader or buffer. * @function decode - * @memberof ibc.lightclients.solomachine.v2.SignatureAndData + * @memberof ibc.lightclients.solomachine.v2.ConsensusState * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.lightclients.solomachine.v2.SignatureAndData} SignatureAndData + * @returns {ibc.lightclients.solomachine.v2.ConsensusState} ConsensusState * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SignatureAndData.decode = function decode(reader, length) { + ConsensusState.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.solomachine.v2.SignatureAndData(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.solomachine.v2.ConsensusState(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.signature = reader.bytes(); + message.public_key = $root.google.protobuf.Any.decode(reader, reader.uint32()); break; case 2: - message.data_type = reader.int32(); + message.diversifier = reader.string(); break; case 3: - message.data = reader.bytes(); - break; - case 4: message.timestamp = reader.uint64(); break; default: @@ -69500,54 +75641,40 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a SignatureAndData message from the specified reader or buffer, length delimited. + * Decodes a ConsensusState message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.lightclients.solomachine.v2.SignatureAndData + * @memberof ibc.lightclients.solomachine.v2.ConsensusState * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.lightclients.solomachine.v2.SignatureAndData} SignatureAndData + * @returns {ibc.lightclients.solomachine.v2.ConsensusState} ConsensusState * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SignatureAndData.decodeDelimited = function decodeDelimited(reader) { + ConsensusState.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SignatureAndData message. + * Verifies a ConsensusState message. * @function verify - * @memberof ibc.lightclients.solomachine.v2.SignatureAndData + * @memberof ibc.lightclients.solomachine.v2.ConsensusState * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SignatureAndData.verify = function verify(message) { + ConsensusState.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.signature != null && message.hasOwnProperty("signature")) - if (!(message.signature && typeof message.signature.length === "number" || $util.isString(message.signature))) - return "signature: buffer expected"; - if (message.data_type != null && message.hasOwnProperty("data_type")) - switch (message.data_type) { - default: - return "data_type: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - break; - } - if (message.data != null && message.hasOwnProperty("data")) - if (!(message.data && typeof message.data.length === "number" || $util.isString(message.data))) - return "data: buffer expected"; + if (message.public_key != null && message.hasOwnProperty("public_key")) { + let error = $root.google.protobuf.Any.verify(message.public_key); + if (error) + return "public_key." + error; + } + if (message.diversifier != null && message.hasOwnProperty("diversifier")) + if (!$util.isString(message.diversifier)) + return "diversifier: string expected"; if (message.timestamp != null && message.hasOwnProperty("timestamp")) if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high))) return "timestamp: integer|Long expected"; @@ -69555,69 +75682,24 @@ export const ibc = $root.ibc = (() => { }; /** - * Creates a SignatureAndData message from a plain object. Also converts values to their respective internal types. + * Creates a ConsensusState message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.lightclients.solomachine.v2.SignatureAndData + * @memberof ibc.lightclients.solomachine.v2.ConsensusState * @static * @param {Object.} object Plain object - * @returns {ibc.lightclients.solomachine.v2.SignatureAndData} SignatureAndData + * @returns {ibc.lightclients.solomachine.v2.ConsensusState} ConsensusState */ - SignatureAndData.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.lightclients.solomachine.v2.SignatureAndData) + ConsensusState.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.lightclients.solomachine.v2.ConsensusState) return object; - let message = new $root.ibc.lightclients.solomachine.v2.SignatureAndData(); - if (object.signature != null) - if (typeof object.signature === "string") - $util.base64.decode(object.signature, message.signature = $util.newBuffer($util.base64.length(object.signature)), 0); - else if (object.signature.length) - message.signature = object.signature; - switch (object.data_type) { - case "DATA_TYPE_UNINITIALIZED_UNSPECIFIED": - case 0: - message.data_type = 0; - break; - case "DATA_TYPE_CLIENT_STATE": - case 1: - message.data_type = 1; - break; - case "DATA_TYPE_CONSENSUS_STATE": - case 2: - message.data_type = 2; - break; - case "DATA_TYPE_CONNECTION_STATE": - case 3: - message.data_type = 3; - break; - case "DATA_TYPE_CHANNEL_STATE": - case 4: - message.data_type = 4; - break; - case "DATA_TYPE_PACKET_COMMITMENT": - case 5: - message.data_type = 5; - break; - case "DATA_TYPE_PACKET_ACKNOWLEDGEMENT": - case 6: - message.data_type = 6; - break; - case "DATA_TYPE_PACKET_RECEIPT_ABSENCE": - case 7: - message.data_type = 7; - break; - case "DATA_TYPE_NEXT_SEQUENCE_RECV": - case 8: - message.data_type = 8; - break; - case "DATA_TYPE_HEADER": - case 9: - message.data_type = 9; - break; + let message = new $root.ibc.lightclients.solomachine.v2.ConsensusState(); + if (object.public_key != null) { + if (typeof object.public_key !== "object") + throw TypeError(".ibc.lightclients.solomachine.v2.ConsensusState.public_key: object expected"); + message.public_key = $root.google.protobuf.Any.fromObject(object.public_key); } - if (object.data != null) - if (typeof object.data === "string") - $util.base64.decode(object.data, message.data = $util.newBuffer($util.base64.length(object.data)), 0); - else if (object.data.length) - message.data = object.data; + if (object.diversifier != null) + message.diversifier = String(object.diversifier); if (object.timestamp != null) if ($util.Long) (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true; @@ -69631,46 +75713,31 @@ export const ibc = $root.ibc = (() => { }; /** - * Creates a plain object from a SignatureAndData message. Also converts values to other types if specified. + * Creates a plain object from a ConsensusState message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.lightclients.solomachine.v2.SignatureAndData + * @memberof ibc.lightclients.solomachine.v2.ConsensusState * @static - * @param {ibc.lightclients.solomachine.v2.SignatureAndData} message SignatureAndData + * @param {ibc.lightclients.solomachine.v2.ConsensusState} message ConsensusState * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SignatureAndData.toObject = function toObject(message, options) { + ConsensusState.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.signature = ""; - else { - object.signature = []; - if (options.bytes !== Array) - object.signature = $util.newBuffer(object.signature); - } - object.data_type = options.enums === String ? "DATA_TYPE_UNINITIALIZED_UNSPECIFIED" : 0; - if (options.bytes === String) - object.data = ""; - else { - object.data = []; - if (options.bytes !== Array) - object.data = $util.newBuffer(object.data); - } + object.public_key = null; + object.diversifier = ""; if ($util.Long) { let long = new $util.Long(0, 0, true); object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else object.timestamp = options.longs === String ? "0" : 0; } - if (message.signature != null && message.hasOwnProperty("signature")) - object.signature = options.bytes === String ? $util.base64.encode(message.signature, 0, message.signature.length) : options.bytes === Array ? Array.prototype.slice.call(message.signature) : message.signature; - if (message.data_type != null && message.hasOwnProperty("data_type")) - object.data_type = options.enums === String ? $root.ibc.lightclients.solomachine.v2.DataType[message.data_type] : message.data_type; - if (message.data != null && message.hasOwnProperty("data")) - object.data = options.bytes === String ? $util.base64.encode(message.data, 0, message.data.length) : options.bytes === Array ? Array.prototype.slice.call(message.data) : message.data; + if (message.public_key != null && message.hasOwnProperty("public_key")) + object.public_key = $root.google.protobuf.Any.toObject(message.public_key, options); + if (message.diversifier != null && message.hasOwnProperty("diversifier")) + object.diversifier = message.diversifier; if (message.timestamp != null && message.hasOwnProperty("timestamp")) if (typeof message.timestamp === "number") object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp; @@ -69680,38 +75747,41 @@ export const ibc = $root.ibc = (() => { }; /** - * Converts this SignatureAndData to JSON. + * Converts this ConsensusState to JSON. * @function toJSON - * @memberof ibc.lightclients.solomachine.v2.SignatureAndData + * @memberof ibc.lightclients.solomachine.v2.ConsensusState * @instance * @returns {Object.} JSON object */ - SignatureAndData.prototype.toJSON = function toJSON() { + ConsensusState.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return SignatureAndData; + return ConsensusState; })(); - v2.TimestampedSignatureData = (function() { + v2.Header = (function() { /** - * Properties of a TimestampedSignatureData. + * Properties of a Header. * @memberof ibc.lightclients.solomachine.v2 - * @interface ITimestampedSignatureData - * @property {Uint8Array|null} [signature_data] TimestampedSignatureData signature_data - * @property {Long|null} [timestamp] TimestampedSignatureData timestamp + * @interface IHeader + * @property {Long|null} [sequence] Header sequence + * @property {Long|null} [timestamp] Header timestamp + * @property {Uint8Array|null} [signature] Header signature + * @property {google.protobuf.IAny|null} [new_public_key] Header new_public_key + * @property {string|null} [new_diversifier] Header new_diversifier */ /** - * Constructs a new TimestampedSignatureData. + * Constructs a new Header. * @memberof ibc.lightclients.solomachine.v2 - * @classdesc Represents a TimestampedSignatureData. - * @implements ITimestampedSignatureData + * @classdesc Represents a Header. + * @implements IHeader * @constructor - * @param {ibc.lightclients.solomachine.v2.ITimestampedSignatureData=} [properties] Properties to set + * @param {ibc.lightclients.solomachine.v2.IHeader=} [properties] Properties to set */ - function TimestampedSignatureData(properties) { + function Header(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -69719,77 +75789,116 @@ export const ibc = $root.ibc = (() => { } /** - * TimestampedSignatureData signature_data. - * @member {Uint8Array} signature_data - * @memberof ibc.lightclients.solomachine.v2.TimestampedSignatureData + * Header sequence. + * @member {Long} sequence + * @memberof ibc.lightclients.solomachine.v2.Header * @instance */ - TimestampedSignatureData.prototype.signature_data = $util.newBuffer([]); + Header.prototype.sequence = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** - * TimestampedSignatureData timestamp. + * Header timestamp. * @member {Long} timestamp - * @memberof ibc.lightclients.solomachine.v2.TimestampedSignatureData + * @memberof ibc.lightclients.solomachine.v2.Header * @instance */ - TimestampedSignatureData.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + Header.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** - * Encodes the specified TimestampedSignatureData message. Does not implicitly {@link ibc.lightclients.solomachine.v2.TimestampedSignatureData.verify|verify} messages. + * Header signature. + * @member {Uint8Array} signature + * @memberof ibc.lightclients.solomachine.v2.Header + * @instance + */ + Header.prototype.signature = $util.newBuffer([]); + + /** + * Header new_public_key. + * @member {google.protobuf.IAny|null|undefined} new_public_key + * @memberof ibc.lightclients.solomachine.v2.Header + * @instance + */ + Header.prototype.new_public_key = null; + + /** + * Header new_diversifier. + * @member {string} new_diversifier + * @memberof ibc.lightclients.solomachine.v2.Header + * @instance + */ + Header.prototype.new_diversifier = ""; + + /** + * Encodes the specified Header message. Does not implicitly {@link ibc.lightclients.solomachine.v2.Header.verify|verify} messages. * @function encode - * @memberof ibc.lightclients.solomachine.v2.TimestampedSignatureData + * @memberof ibc.lightclients.solomachine.v2.Header * @static - * @param {ibc.lightclients.solomachine.v2.ITimestampedSignatureData} message TimestampedSignatureData message or plain object to encode + * @param {ibc.lightclients.solomachine.v2.IHeader} message Header message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TimestampedSignatureData.encode = function encode(message, writer) { + Header.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.signature_data != null && Object.hasOwnProperty.call(message, "signature_data")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.signature_data); + if (message.sequence != null && Object.hasOwnProperty.call(message, "sequence")) + writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.sequence); if (message.timestamp != null && Object.hasOwnProperty.call(message, "timestamp")) writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.timestamp); + if (message.signature != null && Object.hasOwnProperty.call(message, "signature")) + writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.signature); + if (message.new_public_key != null && Object.hasOwnProperty.call(message, "new_public_key")) + $root.google.protobuf.Any.encode(message.new_public_key, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.new_diversifier != null && Object.hasOwnProperty.call(message, "new_diversifier")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.new_diversifier); return writer; }; /** - * Encodes the specified TimestampedSignatureData message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v2.TimestampedSignatureData.verify|verify} messages. + * Encodes the specified Header message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v2.Header.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.lightclients.solomachine.v2.TimestampedSignatureData + * @memberof ibc.lightclients.solomachine.v2.Header * @static - * @param {ibc.lightclients.solomachine.v2.ITimestampedSignatureData} message TimestampedSignatureData message or plain object to encode + * @param {ibc.lightclients.solomachine.v2.IHeader} message Header message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TimestampedSignatureData.encodeDelimited = function encodeDelimited(message, writer) { + Header.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TimestampedSignatureData message from the specified reader or buffer. + * Decodes a Header message from the specified reader or buffer. * @function decode - * @memberof ibc.lightclients.solomachine.v2.TimestampedSignatureData + * @memberof ibc.lightclients.solomachine.v2.Header * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.lightclients.solomachine.v2.TimestampedSignatureData} TimestampedSignatureData + * @returns {ibc.lightclients.solomachine.v2.Header} Header * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TimestampedSignatureData.decode = function decode(reader, length) { + Header.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.solomachine.v2.TimestampedSignatureData(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.solomachine.v2.Header(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.signature_data = reader.bytes(); + message.sequence = reader.uint64(); break; case 2: message.timestamp = reader.uint64(); break; + case 3: + message.signature = reader.bytes(); + break; + case 4: + message.new_public_key = $root.google.protobuf.Any.decode(reader, reader.uint32()); + break; + case 5: + message.new_diversifier = reader.string(); + break; default: reader.skipType(tag & 7); break; @@ -69799,58 +75908,73 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a TimestampedSignatureData message from the specified reader or buffer, length delimited. + * Decodes a Header message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.lightclients.solomachine.v2.TimestampedSignatureData + * @memberof ibc.lightclients.solomachine.v2.Header * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.lightclients.solomachine.v2.TimestampedSignatureData} TimestampedSignatureData + * @returns {ibc.lightclients.solomachine.v2.Header} Header * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TimestampedSignatureData.decodeDelimited = function decodeDelimited(reader) { + Header.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TimestampedSignatureData message. + * Verifies a Header message. * @function verify - * @memberof ibc.lightclients.solomachine.v2.TimestampedSignatureData + * @memberof ibc.lightclients.solomachine.v2.Header * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TimestampedSignatureData.verify = function verify(message) { + Header.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.signature_data != null && message.hasOwnProperty("signature_data")) - if (!(message.signature_data && typeof message.signature_data.length === "number" || $util.isString(message.signature_data))) - return "signature_data: buffer expected"; + if (message.sequence != null && message.hasOwnProperty("sequence")) + if (!$util.isInteger(message.sequence) && !(message.sequence && $util.isInteger(message.sequence.low) && $util.isInteger(message.sequence.high))) + return "sequence: integer|Long expected"; if (message.timestamp != null && message.hasOwnProperty("timestamp")) if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high))) return "timestamp: integer|Long expected"; + if (message.signature != null && message.hasOwnProperty("signature")) + if (!(message.signature && typeof message.signature.length === "number" || $util.isString(message.signature))) + return "signature: buffer expected"; + if (message.new_public_key != null && message.hasOwnProperty("new_public_key")) { + let error = $root.google.protobuf.Any.verify(message.new_public_key); + if (error) + return "new_public_key." + error; + } + if (message.new_diversifier != null && message.hasOwnProperty("new_diversifier")) + if (!$util.isString(message.new_diversifier)) + return "new_diversifier: string expected"; return null; }; /** - * Creates a TimestampedSignatureData message from a plain object. Also converts values to their respective internal types. + * Creates a Header message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.lightclients.solomachine.v2.TimestampedSignatureData + * @memberof ibc.lightclients.solomachine.v2.Header * @static * @param {Object.} object Plain object - * @returns {ibc.lightclients.solomachine.v2.TimestampedSignatureData} TimestampedSignatureData + * @returns {ibc.lightclients.solomachine.v2.Header} Header */ - TimestampedSignatureData.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.lightclients.solomachine.v2.TimestampedSignatureData) + Header.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.lightclients.solomachine.v2.Header) return object; - let message = new $root.ibc.lightclients.solomachine.v2.TimestampedSignatureData(); - if (object.signature_data != null) - if (typeof object.signature_data === "string") - $util.base64.decode(object.signature_data, message.signature_data = $util.newBuffer($util.base64.length(object.signature_data)), 0); - else if (object.signature_data.length) - message.signature_data = object.signature_data; + let message = new $root.ibc.lightclients.solomachine.v2.Header(); + if (object.sequence != null) + if ($util.Long) + (message.sequence = $util.Long.fromValue(object.sequence)).unsigned = true; + else if (typeof object.sequence === "string") + message.sequence = parseInt(object.sequence, 10); + else if (typeof object.sequence === "number") + message.sequence = object.sequence; + else if (typeof object.sequence === "object") + message.sequence = new $util.LongBits(object.sequence.low >>> 0, object.sequence.high >>> 0).toNumber(true); if (object.timestamp != null) if ($util.Long) (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true; @@ -69860,198 +75984,212 @@ export const ibc = $root.ibc = (() => { message.timestamp = object.timestamp; else if (typeof object.timestamp === "object") message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true); + if (object.signature != null) + if (typeof object.signature === "string") + $util.base64.decode(object.signature, message.signature = $util.newBuffer($util.base64.length(object.signature)), 0); + else if (object.signature.length) + message.signature = object.signature; + if (object.new_public_key != null) { + if (typeof object.new_public_key !== "object") + throw TypeError(".ibc.lightclients.solomachine.v2.Header.new_public_key: object expected"); + message.new_public_key = $root.google.protobuf.Any.fromObject(object.new_public_key); + } + if (object.new_diversifier != null) + message.new_diversifier = String(object.new_diversifier); return message; }; /** - * Creates a plain object from a TimestampedSignatureData message. Also converts values to other types if specified. + * Creates a plain object from a Header message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.lightclients.solomachine.v2.TimestampedSignatureData + * @memberof ibc.lightclients.solomachine.v2.Header * @static - * @param {ibc.lightclients.solomachine.v2.TimestampedSignatureData} message TimestampedSignatureData + * @param {ibc.lightclients.solomachine.v2.Header} message Header * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TimestampedSignatureData.toObject = function toObject(message, options) { + Header.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.signature_data = ""; - else { - object.signature_data = []; - if (options.bytes !== Array) - object.signature_data = $util.newBuffer(object.signature_data); - } + if ($util.Long) { + let long = new $util.Long(0, 0, true); + object.sequence = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.sequence = options.longs === String ? "0" : 0; if ($util.Long) { let long = new $util.Long(0, 0, true); object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else object.timestamp = options.longs === String ? "0" : 0; + if (options.bytes === String) + object.signature = ""; + else { + object.signature = []; + if (options.bytes !== Array) + object.signature = $util.newBuffer(object.signature); + } + object.new_public_key = null; + object.new_diversifier = ""; } - if (message.signature_data != null && message.hasOwnProperty("signature_data")) - object.signature_data = options.bytes === String ? $util.base64.encode(message.signature_data, 0, message.signature_data.length) : options.bytes === Array ? Array.prototype.slice.call(message.signature_data) : message.signature_data; + if (message.sequence != null && message.hasOwnProperty("sequence")) + if (typeof message.sequence === "number") + object.sequence = options.longs === String ? String(message.sequence) : message.sequence; + else + object.sequence = options.longs === String ? $util.Long.prototype.toString.call(message.sequence) : options.longs === Number ? new $util.LongBits(message.sequence.low >>> 0, message.sequence.high >>> 0).toNumber(true) : message.sequence; if (message.timestamp != null && message.hasOwnProperty("timestamp")) if (typeof message.timestamp === "number") object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp; else object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber(true) : message.timestamp; + if (message.signature != null && message.hasOwnProperty("signature")) + object.signature = options.bytes === String ? $util.base64.encode(message.signature, 0, message.signature.length) : options.bytes === Array ? Array.prototype.slice.call(message.signature) : message.signature; + if (message.new_public_key != null && message.hasOwnProperty("new_public_key")) + object.new_public_key = $root.google.protobuf.Any.toObject(message.new_public_key, options); + if (message.new_diversifier != null && message.hasOwnProperty("new_diversifier")) + object.new_diversifier = message.new_diversifier; return object; }; /** - * Converts this TimestampedSignatureData to JSON. + * Converts this Header to JSON. * @function toJSON - * @memberof ibc.lightclients.solomachine.v2.TimestampedSignatureData + * @memberof ibc.lightclients.solomachine.v2.Header * @instance * @returns {Object.} JSON object */ - TimestampedSignatureData.prototype.toJSON = function toJSON() { + Header.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return TimestampedSignatureData; + return Header; })(); - v2.SignBytes = (function() { + v2.Misbehaviour = (function() { /** - * Properties of a SignBytes. + * Properties of a Misbehaviour. * @memberof ibc.lightclients.solomachine.v2 - * @interface ISignBytes - * @property {Long|null} [sequence] SignBytes sequence - * @property {Long|null} [timestamp] SignBytes timestamp - * @property {string|null} [diversifier] SignBytes diversifier - * @property {ibc.lightclients.solomachine.v2.DataType|null} [data_type] SignBytes data_type - * @property {Uint8Array|null} [data] SignBytes data + * @interface IMisbehaviour + * @property {string|null} [client_id] Misbehaviour client_id + * @property {Long|null} [sequence] Misbehaviour sequence + * @property {ibc.lightclients.solomachine.v2.ISignatureAndData|null} [signature_one] Misbehaviour signature_one + * @property {ibc.lightclients.solomachine.v2.ISignatureAndData|null} [signature_two] Misbehaviour signature_two */ /** - * Constructs a new SignBytes. + * Constructs a new Misbehaviour. * @memberof ibc.lightclients.solomachine.v2 - * @classdesc Represents a SignBytes. - * @implements ISignBytes + * @classdesc Represents a Misbehaviour. + * @implements IMisbehaviour * @constructor - * @param {ibc.lightclients.solomachine.v2.ISignBytes=} [properties] Properties to set + * @param {ibc.lightclients.solomachine.v2.IMisbehaviour=} [properties] Properties to set */ - function SignBytes(properties) { + function Misbehaviour(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; - } - - /** - * SignBytes sequence. - * @member {Long} sequence - * @memberof ibc.lightclients.solomachine.v2.SignBytes - * @instance - */ - SignBytes.prototype.sequence = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + } /** - * SignBytes timestamp. - * @member {Long} timestamp - * @memberof ibc.lightclients.solomachine.v2.SignBytes + * Misbehaviour client_id. + * @member {string} client_id + * @memberof ibc.lightclients.solomachine.v2.Misbehaviour * @instance */ - SignBytes.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + Misbehaviour.prototype.client_id = ""; /** - * SignBytes diversifier. - * @member {string} diversifier - * @memberof ibc.lightclients.solomachine.v2.SignBytes + * Misbehaviour sequence. + * @member {Long} sequence + * @memberof ibc.lightclients.solomachine.v2.Misbehaviour * @instance */ - SignBytes.prototype.diversifier = ""; + Misbehaviour.prototype.sequence = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** - * SignBytes data_type. - * @member {ibc.lightclients.solomachine.v2.DataType} data_type - * @memberof ibc.lightclients.solomachine.v2.SignBytes + * Misbehaviour signature_one. + * @member {ibc.lightclients.solomachine.v2.ISignatureAndData|null|undefined} signature_one + * @memberof ibc.lightclients.solomachine.v2.Misbehaviour * @instance */ - SignBytes.prototype.data_type = 0; + Misbehaviour.prototype.signature_one = null; /** - * SignBytes data. - * @member {Uint8Array} data - * @memberof ibc.lightclients.solomachine.v2.SignBytes + * Misbehaviour signature_two. + * @member {ibc.lightclients.solomachine.v2.ISignatureAndData|null|undefined} signature_two + * @memberof ibc.lightclients.solomachine.v2.Misbehaviour * @instance */ - SignBytes.prototype.data = $util.newBuffer([]); + Misbehaviour.prototype.signature_two = null; /** - * Encodes the specified SignBytes message. Does not implicitly {@link ibc.lightclients.solomachine.v2.SignBytes.verify|verify} messages. + * Encodes the specified Misbehaviour message. Does not implicitly {@link ibc.lightclients.solomachine.v2.Misbehaviour.verify|verify} messages. * @function encode - * @memberof ibc.lightclients.solomachine.v2.SignBytes + * @memberof ibc.lightclients.solomachine.v2.Misbehaviour * @static - * @param {ibc.lightclients.solomachine.v2.ISignBytes} message SignBytes message or plain object to encode + * @param {ibc.lightclients.solomachine.v2.IMisbehaviour} message Misbehaviour message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SignBytes.encode = function encode(message, writer) { + Misbehaviour.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.client_id != null && Object.hasOwnProperty.call(message, "client_id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.client_id); if (message.sequence != null && Object.hasOwnProperty.call(message, "sequence")) - writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.sequence); - if (message.timestamp != null && Object.hasOwnProperty.call(message, "timestamp")) - writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.timestamp); - if (message.diversifier != null && Object.hasOwnProperty.call(message, "diversifier")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.diversifier); - if (message.data_type != null && Object.hasOwnProperty.call(message, "data_type")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.data_type); - if (message.data != null && Object.hasOwnProperty.call(message, "data")) - writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.data); + writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.sequence); + if (message.signature_one != null && Object.hasOwnProperty.call(message, "signature_one")) + $root.ibc.lightclients.solomachine.v2.SignatureAndData.encode(message.signature_one, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.signature_two != null && Object.hasOwnProperty.call(message, "signature_two")) + $root.ibc.lightclients.solomachine.v2.SignatureAndData.encode(message.signature_two, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; /** - * Encodes the specified SignBytes message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v2.SignBytes.verify|verify} messages. + * Encodes the specified Misbehaviour message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v2.Misbehaviour.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.lightclients.solomachine.v2.SignBytes + * @memberof ibc.lightclients.solomachine.v2.Misbehaviour * @static - * @param {ibc.lightclients.solomachine.v2.ISignBytes} message SignBytes message or plain object to encode + * @param {ibc.lightclients.solomachine.v2.IMisbehaviour} message Misbehaviour message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SignBytes.encodeDelimited = function encodeDelimited(message, writer) { + Misbehaviour.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SignBytes message from the specified reader or buffer. + * Decodes a Misbehaviour message from the specified reader or buffer. * @function decode - * @memberof ibc.lightclients.solomachine.v2.SignBytes + * @memberof ibc.lightclients.solomachine.v2.Misbehaviour * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.lightclients.solomachine.v2.SignBytes} SignBytes + * @returns {ibc.lightclients.solomachine.v2.Misbehaviour} Misbehaviour * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SignBytes.decode = function decode(reader, length) { + Misbehaviour.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.solomachine.v2.SignBytes(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.solomachine.v2.Misbehaviour(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.sequence = reader.uint64(); + message.client_id = reader.string(); break; case 2: - message.timestamp = reader.uint64(); + message.sequence = reader.uint64(); break; case 3: - message.diversifier = reader.string(); + message.signature_one = $root.ibc.lightclients.solomachine.v2.SignatureAndData.decode(reader, reader.uint32()); break; case 4: - message.data_type = reader.int32(); - break; - case 5: - message.data = reader.bytes(); + message.signature_two = $root.ibc.lightclients.solomachine.v2.SignatureAndData.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -70062,75 +76200,65 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a SignBytes message from the specified reader or buffer, length delimited. + * Decodes a Misbehaviour message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.lightclients.solomachine.v2.SignBytes + * @memberof ibc.lightclients.solomachine.v2.Misbehaviour * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.lightclients.solomachine.v2.SignBytes} SignBytes + * @returns {ibc.lightclients.solomachine.v2.Misbehaviour} Misbehaviour * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SignBytes.decodeDelimited = function decodeDelimited(reader) { + Misbehaviour.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SignBytes message. + * Verifies a Misbehaviour message. * @function verify - * @memberof ibc.lightclients.solomachine.v2.SignBytes + * @memberof ibc.lightclients.solomachine.v2.Misbehaviour * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SignBytes.verify = function verify(message) { + Misbehaviour.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.client_id != null && message.hasOwnProperty("client_id")) + if (!$util.isString(message.client_id)) + return "client_id: string expected"; if (message.sequence != null && message.hasOwnProperty("sequence")) if (!$util.isInteger(message.sequence) && !(message.sequence && $util.isInteger(message.sequence.low) && $util.isInteger(message.sequence.high))) return "sequence: integer|Long expected"; - if (message.timestamp != null && message.hasOwnProperty("timestamp")) - if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high))) - return "timestamp: integer|Long expected"; - if (message.diversifier != null && message.hasOwnProperty("diversifier")) - if (!$util.isString(message.diversifier)) - return "diversifier: string expected"; - if (message.data_type != null && message.hasOwnProperty("data_type")) - switch (message.data_type) { - default: - return "data_type: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - break; - } - if (message.data != null && message.hasOwnProperty("data")) - if (!(message.data && typeof message.data.length === "number" || $util.isString(message.data))) - return "data: buffer expected"; + if (message.signature_one != null && message.hasOwnProperty("signature_one")) { + let error = $root.ibc.lightclients.solomachine.v2.SignatureAndData.verify(message.signature_one); + if (error) + return "signature_one." + error; + } + if (message.signature_two != null && message.hasOwnProperty("signature_two")) { + let error = $root.ibc.lightclients.solomachine.v2.SignatureAndData.verify(message.signature_two); + if (error) + return "signature_two." + error; + } return null; }; /** - * Creates a SignBytes message from a plain object. Also converts values to their respective internal types. + * Creates a Misbehaviour message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.lightclients.solomachine.v2.SignBytes + * @memberof ibc.lightclients.solomachine.v2.Misbehaviour * @static * @param {Object.} object Plain object - * @returns {ibc.lightclients.solomachine.v2.SignBytes} SignBytes + * @returns {ibc.lightclients.solomachine.v2.Misbehaviour} Misbehaviour */ - SignBytes.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.lightclients.solomachine.v2.SignBytes) + Misbehaviour.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.lightclients.solomachine.v2.Misbehaviour) return object; - let message = new $root.ibc.lightclients.solomachine.v2.SignBytes(); + let message = new $root.ibc.lightclients.solomachine.v2.Misbehaviour(); + if (object.client_id != null) + message.client_id = String(object.client_id); if (object.sequence != null) if ($util.Long) (message.sequence = $util.Long.fromValue(object.sequence)).unsigned = true; @@ -70140,183 +76268,91 @@ export const ibc = $root.ibc = (() => { message.sequence = object.sequence; else if (typeof object.sequence === "object") message.sequence = new $util.LongBits(object.sequence.low >>> 0, object.sequence.high >>> 0).toNumber(true); - if (object.timestamp != null) - if ($util.Long) - (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true; - else if (typeof object.timestamp === "string") - message.timestamp = parseInt(object.timestamp, 10); - else if (typeof object.timestamp === "number") - message.timestamp = object.timestamp; - else if (typeof object.timestamp === "object") - message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true); - if (object.diversifier != null) - message.diversifier = String(object.diversifier); - switch (object.data_type) { - case "DATA_TYPE_UNINITIALIZED_UNSPECIFIED": - case 0: - message.data_type = 0; - break; - case "DATA_TYPE_CLIENT_STATE": - case 1: - message.data_type = 1; - break; - case "DATA_TYPE_CONSENSUS_STATE": - case 2: - message.data_type = 2; - break; - case "DATA_TYPE_CONNECTION_STATE": - case 3: - message.data_type = 3; - break; - case "DATA_TYPE_CHANNEL_STATE": - case 4: - message.data_type = 4; - break; - case "DATA_TYPE_PACKET_COMMITMENT": - case 5: - message.data_type = 5; - break; - case "DATA_TYPE_PACKET_ACKNOWLEDGEMENT": - case 6: - message.data_type = 6; - break; - case "DATA_TYPE_PACKET_RECEIPT_ABSENCE": - case 7: - message.data_type = 7; - break; - case "DATA_TYPE_NEXT_SEQUENCE_RECV": - case 8: - message.data_type = 8; - break; - case "DATA_TYPE_HEADER": - case 9: - message.data_type = 9; - break; + if (object.signature_one != null) { + if (typeof object.signature_one !== "object") + throw TypeError(".ibc.lightclients.solomachine.v2.Misbehaviour.signature_one: object expected"); + message.signature_one = $root.ibc.lightclients.solomachine.v2.SignatureAndData.fromObject(object.signature_one); + } + if (object.signature_two != null) { + if (typeof object.signature_two !== "object") + throw TypeError(".ibc.lightclients.solomachine.v2.Misbehaviour.signature_two: object expected"); + message.signature_two = $root.ibc.lightclients.solomachine.v2.SignatureAndData.fromObject(object.signature_two); } - if (object.data != null) - if (typeof object.data === "string") - $util.base64.decode(object.data, message.data = $util.newBuffer($util.base64.length(object.data)), 0); - else if (object.data.length) - message.data = object.data; return message; }; /** - * Creates a plain object from a SignBytes message. Also converts values to other types if specified. + * Creates a plain object from a Misbehaviour message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.lightclients.solomachine.v2.SignBytes + * @memberof ibc.lightclients.solomachine.v2.Misbehaviour * @static - * @param {ibc.lightclients.solomachine.v2.SignBytes} message SignBytes + * @param {ibc.lightclients.solomachine.v2.Misbehaviour} message Misbehaviour * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SignBytes.toObject = function toObject(message, options) { + Misbehaviour.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { + object.client_id = ""; if ($util.Long) { let long = new $util.Long(0, 0, true); object.sequence = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else object.sequence = options.longs === String ? "0" : 0; - if ($util.Long) { - let long = new $util.Long(0, 0, true); - object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.timestamp = options.longs === String ? "0" : 0; - object.diversifier = ""; - object.data_type = options.enums === String ? "DATA_TYPE_UNINITIALIZED_UNSPECIFIED" : 0; - if (options.bytes === String) - object.data = ""; - else { - object.data = []; - if (options.bytes !== Array) - object.data = $util.newBuffer(object.data); - } + object.signature_one = null; + object.signature_two = null; } + if (message.client_id != null && message.hasOwnProperty("client_id")) + object.client_id = message.client_id; if (message.sequence != null && message.hasOwnProperty("sequence")) if (typeof message.sequence === "number") object.sequence = options.longs === String ? String(message.sequence) : message.sequence; else object.sequence = options.longs === String ? $util.Long.prototype.toString.call(message.sequence) : options.longs === Number ? new $util.LongBits(message.sequence.low >>> 0, message.sequence.high >>> 0).toNumber(true) : message.sequence; - if (message.timestamp != null && message.hasOwnProperty("timestamp")) - if (typeof message.timestamp === "number") - object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp; - else - object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber(true) : message.timestamp; - if (message.diversifier != null && message.hasOwnProperty("diversifier")) - object.diversifier = message.diversifier; - if (message.data_type != null && message.hasOwnProperty("data_type")) - object.data_type = options.enums === String ? $root.ibc.lightclients.solomachine.v2.DataType[message.data_type] : message.data_type; - if (message.data != null && message.hasOwnProperty("data")) - object.data = options.bytes === String ? $util.base64.encode(message.data, 0, message.data.length) : options.bytes === Array ? Array.prototype.slice.call(message.data) : message.data; + if (message.signature_one != null && message.hasOwnProperty("signature_one")) + object.signature_one = $root.ibc.lightclients.solomachine.v2.SignatureAndData.toObject(message.signature_one, options); + if (message.signature_two != null && message.hasOwnProperty("signature_two")) + object.signature_two = $root.ibc.lightclients.solomachine.v2.SignatureAndData.toObject(message.signature_two, options); return object; }; /** - * Converts this SignBytes to JSON. + * Converts this Misbehaviour to JSON. * @function toJSON - * @memberof ibc.lightclients.solomachine.v2.SignBytes + * @memberof ibc.lightclients.solomachine.v2.Misbehaviour * @instance * @returns {Object.} JSON object */ - SignBytes.prototype.toJSON = function toJSON() { + Misbehaviour.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return SignBytes; - })(); - - /** - * DataType enum. - * @name ibc.lightclients.solomachine.v2.DataType - * @enum {number} - * @property {number} DATA_TYPE_UNINITIALIZED_UNSPECIFIED=0 DATA_TYPE_UNINITIALIZED_UNSPECIFIED value - * @property {number} DATA_TYPE_CLIENT_STATE=1 DATA_TYPE_CLIENT_STATE value - * @property {number} DATA_TYPE_CONSENSUS_STATE=2 DATA_TYPE_CONSENSUS_STATE value - * @property {number} DATA_TYPE_CONNECTION_STATE=3 DATA_TYPE_CONNECTION_STATE value - * @property {number} DATA_TYPE_CHANNEL_STATE=4 DATA_TYPE_CHANNEL_STATE value - * @property {number} DATA_TYPE_PACKET_COMMITMENT=5 DATA_TYPE_PACKET_COMMITMENT value - * @property {number} DATA_TYPE_PACKET_ACKNOWLEDGEMENT=6 DATA_TYPE_PACKET_ACKNOWLEDGEMENT value - * @property {number} DATA_TYPE_PACKET_RECEIPT_ABSENCE=7 DATA_TYPE_PACKET_RECEIPT_ABSENCE value - * @property {number} DATA_TYPE_NEXT_SEQUENCE_RECV=8 DATA_TYPE_NEXT_SEQUENCE_RECV value - * @property {number} DATA_TYPE_HEADER=9 DATA_TYPE_HEADER value - */ - v2.DataType = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "DATA_TYPE_UNINITIALIZED_UNSPECIFIED"] = 0; - values[valuesById[1] = "DATA_TYPE_CLIENT_STATE"] = 1; - values[valuesById[2] = "DATA_TYPE_CONSENSUS_STATE"] = 2; - values[valuesById[3] = "DATA_TYPE_CONNECTION_STATE"] = 3; - values[valuesById[4] = "DATA_TYPE_CHANNEL_STATE"] = 4; - values[valuesById[5] = "DATA_TYPE_PACKET_COMMITMENT"] = 5; - values[valuesById[6] = "DATA_TYPE_PACKET_ACKNOWLEDGEMENT"] = 6; - values[valuesById[7] = "DATA_TYPE_PACKET_RECEIPT_ABSENCE"] = 7; - values[valuesById[8] = "DATA_TYPE_NEXT_SEQUENCE_RECV"] = 8; - values[valuesById[9] = "DATA_TYPE_HEADER"] = 9; - return values; + return Misbehaviour; })(); - v2.HeaderData = (function() { + v2.SignatureAndData = (function() { /** - * Properties of a HeaderData. + * Properties of a SignatureAndData. * @memberof ibc.lightclients.solomachine.v2 - * @interface IHeaderData - * @property {google.protobuf.IAny|null} [new_pub_key] HeaderData new_pub_key - * @property {string|null} [new_diversifier] HeaderData new_diversifier + * @interface ISignatureAndData + * @property {Uint8Array|null} [signature] SignatureAndData signature + * @property {ibc.lightclients.solomachine.v2.DataType|null} [data_type] SignatureAndData data_type + * @property {Uint8Array|null} [data] SignatureAndData data + * @property {Long|null} [timestamp] SignatureAndData timestamp */ /** - * Constructs a new HeaderData. + * Constructs a new SignatureAndData. * @memberof ibc.lightclients.solomachine.v2 - * @classdesc Represents a HeaderData. - * @implements IHeaderData + * @classdesc Represents a SignatureAndData. + * @implements ISignatureAndData * @constructor - * @param {ibc.lightclients.solomachine.v2.IHeaderData=} [properties] Properties to set + * @param {ibc.lightclients.solomachine.v2.ISignatureAndData=} [properties] Properties to set */ - function HeaderData(properties) { + function SignatureAndData(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -70324,76 +76360,102 @@ export const ibc = $root.ibc = (() => { } /** - * HeaderData new_pub_key. - * @member {google.protobuf.IAny|null|undefined} new_pub_key - * @memberof ibc.lightclients.solomachine.v2.HeaderData + * SignatureAndData signature. + * @member {Uint8Array} signature + * @memberof ibc.lightclients.solomachine.v2.SignatureAndData * @instance */ - HeaderData.prototype.new_pub_key = null; + SignatureAndData.prototype.signature = $util.newBuffer([]); /** - * HeaderData new_diversifier. - * @member {string} new_diversifier - * @memberof ibc.lightclients.solomachine.v2.HeaderData + * SignatureAndData data_type. + * @member {ibc.lightclients.solomachine.v2.DataType} data_type + * @memberof ibc.lightclients.solomachine.v2.SignatureAndData * @instance */ - HeaderData.prototype.new_diversifier = ""; + SignatureAndData.prototype.data_type = 0; /** - * Encodes the specified HeaderData message. Does not implicitly {@link ibc.lightclients.solomachine.v2.HeaderData.verify|verify} messages. + * SignatureAndData data. + * @member {Uint8Array} data + * @memberof ibc.lightclients.solomachine.v2.SignatureAndData + * @instance + */ + SignatureAndData.prototype.data = $util.newBuffer([]); + + /** + * SignatureAndData timestamp. + * @member {Long} timestamp + * @memberof ibc.lightclients.solomachine.v2.SignatureAndData + * @instance + */ + SignatureAndData.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + + /** + * Encodes the specified SignatureAndData message. Does not implicitly {@link ibc.lightclients.solomachine.v2.SignatureAndData.verify|verify} messages. * @function encode - * @memberof ibc.lightclients.solomachine.v2.HeaderData + * @memberof ibc.lightclients.solomachine.v2.SignatureAndData * @static - * @param {ibc.lightclients.solomachine.v2.IHeaderData} message HeaderData message or plain object to encode + * @param {ibc.lightclients.solomachine.v2.ISignatureAndData} message SignatureAndData message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - HeaderData.encode = function encode(message, writer) { + SignatureAndData.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.new_pub_key != null && Object.hasOwnProperty.call(message, "new_pub_key")) - $root.google.protobuf.Any.encode(message.new_pub_key, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.new_diversifier != null && Object.hasOwnProperty.call(message, "new_diversifier")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.new_diversifier); + if (message.signature != null && Object.hasOwnProperty.call(message, "signature")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.signature); + if (message.data_type != null && Object.hasOwnProperty.call(message, "data_type")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.data_type); + if (message.data != null && Object.hasOwnProperty.call(message, "data")) + writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.data); + if (message.timestamp != null && Object.hasOwnProperty.call(message, "timestamp")) + writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.timestamp); return writer; }; /** - * Encodes the specified HeaderData message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v2.HeaderData.verify|verify} messages. + * Encodes the specified SignatureAndData message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v2.SignatureAndData.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.lightclients.solomachine.v2.HeaderData + * @memberof ibc.lightclients.solomachine.v2.SignatureAndData * @static - * @param {ibc.lightclients.solomachine.v2.IHeaderData} message HeaderData message or plain object to encode + * @param {ibc.lightclients.solomachine.v2.ISignatureAndData} message SignatureAndData message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - HeaderData.encodeDelimited = function encodeDelimited(message, writer) { + SignatureAndData.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a HeaderData message from the specified reader or buffer. + * Decodes a SignatureAndData message from the specified reader or buffer. * @function decode - * @memberof ibc.lightclients.solomachine.v2.HeaderData + * @memberof ibc.lightclients.solomachine.v2.SignatureAndData * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.lightclients.solomachine.v2.HeaderData} HeaderData + * @returns {ibc.lightclients.solomachine.v2.SignatureAndData} SignatureAndData * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - HeaderData.decode = function decode(reader, length) { + SignatureAndData.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.solomachine.v2.HeaderData(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.solomachine.v2.SignatureAndData(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.new_pub_key = $root.google.protobuf.Any.decode(reader, reader.uint32()); + message.signature = reader.bytes(); break; case 2: - message.new_diversifier = reader.string(); + message.data_type = reader.int32(); + break; + case 3: + message.data = reader.bytes(); + break; + case 4: + message.timestamp = reader.uint64(); break; default: reader.skipType(tag & 7); @@ -70404,122 +76466,218 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a HeaderData message from the specified reader or buffer, length delimited. + * Decodes a SignatureAndData message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.lightclients.solomachine.v2.HeaderData + * @memberof ibc.lightclients.solomachine.v2.SignatureAndData * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.lightclients.solomachine.v2.HeaderData} HeaderData + * @returns {ibc.lightclients.solomachine.v2.SignatureAndData} SignatureAndData * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - HeaderData.decodeDelimited = function decodeDelimited(reader) { + SignatureAndData.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a HeaderData message. + * Verifies a SignatureAndData message. * @function verify - * @memberof ibc.lightclients.solomachine.v2.HeaderData + * @memberof ibc.lightclients.solomachine.v2.SignatureAndData * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - HeaderData.verify = function verify(message) { + SignatureAndData.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.new_pub_key != null && message.hasOwnProperty("new_pub_key")) { - let error = $root.google.protobuf.Any.verify(message.new_pub_key); - if (error) - return "new_pub_key." + error; - } - if (message.new_diversifier != null && message.hasOwnProperty("new_diversifier")) - if (!$util.isString(message.new_diversifier)) - return "new_diversifier: string expected"; + if (message.signature != null && message.hasOwnProperty("signature")) + if (!(message.signature && typeof message.signature.length === "number" || $util.isString(message.signature))) + return "signature: buffer expected"; + if (message.data_type != null && message.hasOwnProperty("data_type")) + switch (message.data_type) { + default: + return "data_type: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + break; + } + if (message.data != null && message.hasOwnProperty("data")) + if (!(message.data && typeof message.data.length === "number" || $util.isString(message.data))) + return "data: buffer expected"; + if (message.timestamp != null && message.hasOwnProperty("timestamp")) + if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high))) + return "timestamp: integer|Long expected"; return null; }; /** - * Creates a HeaderData message from a plain object. Also converts values to their respective internal types. + * Creates a SignatureAndData message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.lightclients.solomachine.v2.HeaderData + * @memberof ibc.lightclients.solomachine.v2.SignatureAndData * @static * @param {Object.} object Plain object - * @returns {ibc.lightclients.solomachine.v2.HeaderData} HeaderData + * @returns {ibc.lightclients.solomachine.v2.SignatureAndData} SignatureAndData */ - HeaderData.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.lightclients.solomachine.v2.HeaderData) + SignatureAndData.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.lightclients.solomachine.v2.SignatureAndData) return object; - let message = new $root.ibc.lightclients.solomachine.v2.HeaderData(); - if (object.new_pub_key != null) { - if (typeof object.new_pub_key !== "object") - throw TypeError(".ibc.lightclients.solomachine.v2.HeaderData.new_pub_key: object expected"); - message.new_pub_key = $root.google.protobuf.Any.fromObject(object.new_pub_key); + let message = new $root.ibc.lightclients.solomachine.v2.SignatureAndData(); + if (object.signature != null) + if (typeof object.signature === "string") + $util.base64.decode(object.signature, message.signature = $util.newBuffer($util.base64.length(object.signature)), 0); + else if (object.signature.length) + message.signature = object.signature; + switch (object.data_type) { + case "DATA_TYPE_UNINITIALIZED_UNSPECIFIED": + case 0: + message.data_type = 0; + break; + case "DATA_TYPE_CLIENT_STATE": + case 1: + message.data_type = 1; + break; + case "DATA_TYPE_CONSENSUS_STATE": + case 2: + message.data_type = 2; + break; + case "DATA_TYPE_CONNECTION_STATE": + case 3: + message.data_type = 3; + break; + case "DATA_TYPE_CHANNEL_STATE": + case 4: + message.data_type = 4; + break; + case "DATA_TYPE_PACKET_COMMITMENT": + case 5: + message.data_type = 5; + break; + case "DATA_TYPE_PACKET_ACKNOWLEDGEMENT": + case 6: + message.data_type = 6; + break; + case "DATA_TYPE_PACKET_RECEIPT_ABSENCE": + case 7: + message.data_type = 7; + break; + case "DATA_TYPE_NEXT_SEQUENCE_RECV": + case 8: + message.data_type = 8; + break; + case "DATA_TYPE_HEADER": + case 9: + message.data_type = 9; + break; } - if (object.new_diversifier != null) - message.new_diversifier = String(object.new_diversifier); + if (object.data != null) + if (typeof object.data === "string") + $util.base64.decode(object.data, message.data = $util.newBuffer($util.base64.length(object.data)), 0); + else if (object.data.length) + message.data = object.data; + if (object.timestamp != null) + if ($util.Long) + (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true; + else if (typeof object.timestamp === "string") + message.timestamp = parseInt(object.timestamp, 10); + else if (typeof object.timestamp === "number") + message.timestamp = object.timestamp; + else if (typeof object.timestamp === "object") + message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true); return message; }; /** - * Creates a plain object from a HeaderData message. Also converts values to other types if specified. + * Creates a plain object from a SignatureAndData message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.lightclients.solomachine.v2.HeaderData + * @memberof ibc.lightclients.solomachine.v2.SignatureAndData * @static - * @param {ibc.lightclients.solomachine.v2.HeaderData} message HeaderData + * @param {ibc.lightclients.solomachine.v2.SignatureAndData} message SignatureAndData * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - HeaderData.toObject = function toObject(message, options) { + SignatureAndData.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - object.new_pub_key = null; - object.new_diversifier = ""; + if (options.bytes === String) + object.signature = ""; + else { + object.signature = []; + if (options.bytes !== Array) + object.signature = $util.newBuffer(object.signature); + } + object.data_type = options.enums === String ? "DATA_TYPE_UNINITIALIZED_UNSPECIFIED" : 0; + if (options.bytes === String) + object.data = ""; + else { + object.data = []; + if (options.bytes !== Array) + object.data = $util.newBuffer(object.data); + } + if ($util.Long) { + let long = new $util.Long(0, 0, true); + object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.timestamp = options.longs === String ? "0" : 0; } - if (message.new_pub_key != null && message.hasOwnProperty("new_pub_key")) - object.new_pub_key = $root.google.protobuf.Any.toObject(message.new_pub_key, options); - if (message.new_diversifier != null && message.hasOwnProperty("new_diversifier")) - object.new_diversifier = message.new_diversifier; + if (message.signature != null && message.hasOwnProperty("signature")) + object.signature = options.bytes === String ? $util.base64.encode(message.signature, 0, message.signature.length) : options.bytes === Array ? Array.prototype.slice.call(message.signature) : message.signature; + if (message.data_type != null && message.hasOwnProperty("data_type")) + object.data_type = options.enums === String ? $root.ibc.lightclients.solomachine.v2.DataType[message.data_type] : message.data_type; + if (message.data != null && message.hasOwnProperty("data")) + object.data = options.bytes === String ? $util.base64.encode(message.data, 0, message.data.length) : options.bytes === Array ? Array.prototype.slice.call(message.data) : message.data; + if (message.timestamp != null && message.hasOwnProperty("timestamp")) + if (typeof message.timestamp === "number") + object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp; + else + object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber(true) : message.timestamp; return object; }; /** - * Converts this HeaderData to JSON. + * Converts this SignatureAndData to JSON. * @function toJSON - * @memberof ibc.lightclients.solomachine.v2.HeaderData + * @memberof ibc.lightclients.solomachine.v2.SignatureAndData * @instance * @returns {Object.} JSON object */ - HeaderData.prototype.toJSON = function toJSON() { + SignatureAndData.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return HeaderData; + return SignatureAndData; })(); - v2.ClientStateData = (function() { + v2.TimestampedSignatureData = (function() { /** - * Properties of a ClientStateData. + * Properties of a TimestampedSignatureData. * @memberof ibc.lightclients.solomachine.v2 - * @interface IClientStateData - * @property {Uint8Array|null} [path] ClientStateData path - * @property {google.protobuf.IAny|null} [client_state] ClientStateData client_state + * @interface ITimestampedSignatureData + * @property {Uint8Array|null} [signature_data] TimestampedSignatureData signature_data + * @property {Long|null} [timestamp] TimestampedSignatureData timestamp */ /** - * Constructs a new ClientStateData. + * Constructs a new TimestampedSignatureData. * @memberof ibc.lightclients.solomachine.v2 - * @classdesc Represents a ClientStateData. - * @implements IClientStateData + * @classdesc Represents a TimestampedSignatureData. + * @implements ITimestampedSignatureData * @constructor - * @param {ibc.lightclients.solomachine.v2.IClientStateData=} [properties] Properties to set + * @param {ibc.lightclients.solomachine.v2.ITimestampedSignatureData=} [properties] Properties to set */ - function ClientStateData(properties) { + function TimestampedSignatureData(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -70527,76 +76685,76 @@ export const ibc = $root.ibc = (() => { } /** - * ClientStateData path. - * @member {Uint8Array} path - * @memberof ibc.lightclients.solomachine.v2.ClientStateData + * TimestampedSignatureData signature_data. + * @member {Uint8Array} signature_data + * @memberof ibc.lightclients.solomachine.v2.TimestampedSignatureData * @instance */ - ClientStateData.prototype.path = $util.newBuffer([]); + TimestampedSignatureData.prototype.signature_data = $util.newBuffer([]); /** - * ClientStateData client_state. - * @member {google.protobuf.IAny|null|undefined} client_state - * @memberof ibc.lightclients.solomachine.v2.ClientStateData + * TimestampedSignatureData timestamp. + * @member {Long} timestamp + * @memberof ibc.lightclients.solomachine.v2.TimestampedSignatureData * @instance */ - ClientStateData.prototype.client_state = null; + TimestampedSignatureData.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** - * Encodes the specified ClientStateData message. Does not implicitly {@link ibc.lightclients.solomachine.v2.ClientStateData.verify|verify} messages. + * Encodes the specified TimestampedSignatureData message. Does not implicitly {@link ibc.lightclients.solomachine.v2.TimestampedSignatureData.verify|verify} messages. * @function encode - * @memberof ibc.lightclients.solomachine.v2.ClientStateData + * @memberof ibc.lightclients.solomachine.v2.TimestampedSignatureData * @static - * @param {ibc.lightclients.solomachine.v2.IClientStateData} message ClientStateData message or plain object to encode + * @param {ibc.lightclients.solomachine.v2.ITimestampedSignatureData} message TimestampedSignatureData message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ClientStateData.encode = function encode(message, writer) { + TimestampedSignatureData.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.path != null && Object.hasOwnProperty.call(message, "path")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.path); - if (message.client_state != null && Object.hasOwnProperty.call(message, "client_state")) - $root.google.protobuf.Any.encode(message.client_state, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.signature_data != null && Object.hasOwnProperty.call(message, "signature_data")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.signature_data); + if (message.timestamp != null && Object.hasOwnProperty.call(message, "timestamp")) + writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.timestamp); return writer; }; /** - * Encodes the specified ClientStateData message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v2.ClientStateData.verify|verify} messages. + * Encodes the specified TimestampedSignatureData message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v2.TimestampedSignatureData.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.lightclients.solomachine.v2.ClientStateData + * @memberof ibc.lightclients.solomachine.v2.TimestampedSignatureData * @static - * @param {ibc.lightclients.solomachine.v2.IClientStateData} message ClientStateData message or plain object to encode + * @param {ibc.lightclients.solomachine.v2.ITimestampedSignatureData} message TimestampedSignatureData message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ClientStateData.encodeDelimited = function encodeDelimited(message, writer) { + TimestampedSignatureData.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ClientStateData message from the specified reader or buffer. + * Decodes a TimestampedSignatureData message from the specified reader or buffer. * @function decode - * @memberof ibc.lightclients.solomachine.v2.ClientStateData + * @memberof ibc.lightclients.solomachine.v2.TimestampedSignatureData * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.lightclients.solomachine.v2.ClientStateData} ClientStateData + * @returns {ibc.lightclients.solomachine.v2.TimestampedSignatureData} TimestampedSignatureData * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ClientStateData.decode = function decode(reader, length) { + TimestampedSignatureData.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.solomachine.v2.ClientStateData(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.solomachine.v2.TimestampedSignatureData(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.path = reader.bytes(); + message.signature_data = reader.bytes(); break; case 2: - message.client_state = $root.google.protobuf.Any.decode(reader, reader.uint32()); + message.timestamp = reader.uint64(); break; default: reader.skipType(tag & 7); @@ -70607,131 +76765,143 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a ClientStateData message from the specified reader or buffer, length delimited. + * Decodes a TimestampedSignatureData message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.lightclients.solomachine.v2.ClientStateData + * @memberof ibc.lightclients.solomachine.v2.TimestampedSignatureData * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.lightclients.solomachine.v2.ClientStateData} ClientStateData + * @returns {ibc.lightclients.solomachine.v2.TimestampedSignatureData} TimestampedSignatureData * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ClientStateData.decodeDelimited = function decodeDelimited(reader) { + TimestampedSignatureData.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ClientStateData message. + * Verifies a TimestampedSignatureData message. * @function verify - * @memberof ibc.lightclients.solomachine.v2.ClientStateData + * @memberof ibc.lightclients.solomachine.v2.TimestampedSignatureData * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ClientStateData.verify = function verify(message) { + TimestampedSignatureData.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.path != null && message.hasOwnProperty("path")) - if (!(message.path && typeof message.path.length === "number" || $util.isString(message.path))) - return "path: buffer expected"; - if (message.client_state != null && message.hasOwnProperty("client_state")) { - let error = $root.google.protobuf.Any.verify(message.client_state); - if (error) - return "client_state." + error; - } + if (message.signature_data != null && message.hasOwnProperty("signature_data")) + if (!(message.signature_data && typeof message.signature_data.length === "number" || $util.isString(message.signature_data))) + return "signature_data: buffer expected"; + if (message.timestamp != null && message.hasOwnProperty("timestamp")) + if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high))) + return "timestamp: integer|Long expected"; return null; }; /** - * Creates a ClientStateData message from a plain object. Also converts values to their respective internal types. + * Creates a TimestampedSignatureData message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.lightclients.solomachine.v2.ClientStateData + * @memberof ibc.lightclients.solomachine.v2.TimestampedSignatureData * @static * @param {Object.} object Plain object - * @returns {ibc.lightclients.solomachine.v2.ClientStateData} ClientStateData + * @returns {ibc.lightclients.solomachine.v2.TimestampedSignatureData} TimestampedSignatureData */ - ClientStateData.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.lightclients.solomachine.v2.ClientStateData) + TimestampedSignatureData.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.lightclients.solomachine.v2.TimestampedSignatureData) return object; - let message = new $root.ibc.lightclients.solomachine.v2.ClientStateData(); - if (object.path != null) - if (typeof object.path === "string") - $util.base64.decode(object.path, message.path = $util.newBuffer($util.base64.length(object.path)), 0); - else if (object.path.length) - message.path = object.path; - if (object.client_state != null) { - if (typeof object.client_state !== "object") - throw TypeError(".ibc.lightclients.solomachine.v2.ClientStateData.client_state: object expected"); - message.client_state = $root.google.protobuf.Any.fromObject(object.client_state); - } + let message = new $root.ibc.lightclients.solomachine.v2.TimestampedSignatureData(); + if (object.signature_data != null) + if (typeof object.signature_data === "string") + $util.base64.decode(object.signature_data, message.signature_data = $util.newBuffer($util.base64.length(object.signature_data)), 0); + else if (object.signature_data.length) + message.signature_data = object.signature_data; + if (object.timestamp != null) + if ($util.Long) + (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true; + else if (typeof object.timestamp === "string") + message.timestamp = parseInt(object.timestamp, 10); + else if (typeof object.timestamp === "number") + message.timestamp = object.timestamp; + else if (typeof object.timestamp === "object") + message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true); return message; }; /** - * Creates a plain object from a ClientStateData message. Also converts values to other types if specified. + * Creates a plain object from a TimestampedSignatureData message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.lightclients.solomachine.v2.ClientStateData + * @memberof ibc.lightclients.solomachine.v2.TimestampedSignatureData * @static - * @param {ibc.lightclients.solomachine.v2.ClientStateData} message ClientStateData + * @param {ibc.lightclients.solomachine.v2.TimestampedSignatureData} message TimestampedSignatureData * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ClientStateData.toObject = function toObject(message, options) { + TimestampedSignatureData.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { if (options.bytes === String) - object.path = ""; + object.signature_data = ""; else { - object.path = []; + object.signature_data = []; if (options.bytes !== Array) - object.path = $util.newBuffer(object.path); + object.signature_data = $util.newBuffer(object.signature_data); } - object.client_state = null; + if ($util.Long) { + let long = new $util.Long(0, 0, true); + object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.timestamp = options.longs === String ? "0" : 0; } - if (message.path != null && message.hasOwnProperty("path")) - object.path = options.bytes === String ? $util.base64.encode(message.path, 0, message.path.length) : options.bytes === Array ? Array.prototype.slice.call(message.path) : message.path; - if (message.client_state != null && message.hasOwnProperty("client_state")) - object.client_state = $root.google.protobuf.Any.toObject(message.client_state, options); + if (message.signature_data != null && message.hasOwnProperty("signature_data")) + object.signature_data = options.bytes === String ? $util.base64.encode(message.signature_data, 0, message.signature_data.length) : options.bytes === Array ? Array.prototype.slice.call(message.signature_data) : message.signature_data; + if (message.timestamp != null && message.hasOwnProperty("timestamp")) + if (typeof message.timestamp === "number") + object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp; + else + object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber(true) : message.timestamp; return object; }; /** - * Converts this ClientStateData to JSON. + * Converts this TimestampedSignatureData to JSON. * @function toJSON - * @memberof ibc.lightclients.solomachine.v2.ClientStateData + * @memberof ibc.lightclients.solomachine.v2.TimestampedSignatureData * @instance * @returns {Object.} JSON object */ - ClientStateData.prototype.toJSON = function toJSON() { + TimestampedSignatureData.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ClientStateData; + return TimestampedSignatureData; })(); - v2.ConsensusStateData = (function() { + v2.SignBytes = (function() { /** - * Properties of a ConsensusStateData. + * Properties of a SignBytes. * @memberof ibc.lightclients.solomachine.v2 - * @interface IConsensusStateData - * @property {Uint8Array|null} [path] ConsensusStateData path - * @property {google.protobuf.IAny|null} [consensus_state] ConsensusStateData consensus_state + * @interface ISignBytes + * @property {Long|null} [sequence] SignBytes sequence + * @property {Long|null} [timestamp] SignBytes timestamp + * @property {string|null} [diversifier] SignBytes diversifier + * @property {ibc.lightclients.solomachine.v2.DataType|null} [data_type] SignBytes data_type + * @property {Uint8Array|null} [data] SignBytes data */ /** - * Constructs a new ConsensusStateData. + * Constructs a new SignBytes. * @memberof ibc.lightclients.solomachine.v2 - * @classdesc Represents a ConsensusStateData. - * @implements IConsensusStateData + * @classdesc Represents a SignBytes. + * @implements ISignBytes * @constructor - * @param {ibc.lightclients.solomachine.v2.IConsensusStateData=} [properties] Properties to set + * @param {ibc.lightclients.solomachine.v2.ISignBytes=} [properties] Properties to set */ - function ConsensusStateData(properties) { + function SignBytes(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -70739,76 +76909,115 @@ export const ibc = $root.ibc = (() => { } /** - * ConsensusStateData path. - * @member {Uint8Array} path - * @memberof ibc.lightclients.solomachine.v2.ConsensusStateData + * SignBytes sequence. + * @member {Long} sequence + * @memberof ibc.lightclients.solomachine.v2.SignBytes * @instance */ - ConsensusStateData.prototype.path = $util.newBuffer([]); + SignBytes.prototype.sequence = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** - * ConsensusStateData consensus_state. - * @member {google.protobuf.IAny|null|undefined} consensus_state - * @memberof ibc.lightclients.solomachine.v2.ConsensusStateData + * SignBytes timestamp. + * @member {Long} timestamp + * @memberof ibc.lightclients.solomachine.v2.SignBytes * @instance */ - ConsensusStateData.prototype.consensus_state = null; + SignBytes.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** - * Encodes the specified ConsensusStateData message. Does not implicitly {@link ibc.lightclients.solomachine.v2.ConsensusStateData.verify|verify} messages. + * SignBytes diversifier. + * @member {string} diversifier + * @memberof ibc.lightclients.solomachine.v2.SignBytes + * @instance + */ + SignBytes.prototype.diversifier = ""; + + /** + * SignBytes data_type. + * @member {ibc.lightclients.solomachine.v2.DataType} data_type + * @memberof ibc.lightclients.solomachine.v2.SignBytes + * @instance + */ + SignBytes.prototype.data_type = 0; + + /** + * SignBytes data. + * @member {Uint8Array} data + * @memberof ibc.lightclients.solomachine.v2.SignBytes + * @instance + */ + SignBytes.prototype.data = $util.newBuffer([]); + + /** + * Encodes the specified SignBytes message. Does not implicitly {@link ibc.lightclients.solomachine.v2.SignBytes.verify|verify} messages. * @function encode - * @memberof ibc.lightclients.solomachine.v2.ConsensusStateData + * @memberof ibc.lightclients.solomachine.v2.SignBytes * @static - * @param {ibc.lightclients.solomachine.v2.IConsensusStateData} message ConsensusStateData message or plain object to encode + * @param {ibc.lightclients.solomachine.v2.ISignBytes} message SignBytes message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ConsensusStateData.encode = function encode(message, writer) { + SignBytes.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.path != null && Object.hasOwnProperty.call(message, "path")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.path); - if (message.consensus_state != null && Object.hasOwnProperty.call(message, "consensus_state")) - $root.google.protobuf.Any.encode(message.consensus_state, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.sequence != null && Object.hasOwnProperty.call(message, "sequence")) + writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.sequence); + if (message.timestamp != null && Object.hasOwnProperty.call(message, "timestamp")) + writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.timestamp); + if (message.diversifier != null && Object.hasOwnProperty.call(message, "diversifier")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.diversifier); + if (message.data_type != null && Object.hasOwnProperty.call(message, "data_type")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.data_type); + if (message.data != null && Object.hasOwnProperty.call(message, "data")) + writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.data); return writer; }; /** - * Encodes the specified ConsensusStateData message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v2.ConsensusStateData.verify|verify} messages. + * Encodes the specified SignBytes message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v2.SignBytes.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.lightclients.solomachine.v2.ConsensusStateData + * @memberof ibc.lightclients.solomachine.v2.SignBytes * @static - * @param {ibc.lightclients.solomachine.v2.IConsensusStateData} message ConsensusStateData message or plain object to encode + * @param {ibc.lightclients.solomachine.v2.ISignBytes} message SignBytes message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ConsensusStateData.encodeDelimited = function encodeDelimited(message, writer) { + SignBytes.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ConsensusStateData message from the specified reader or buffer. + * Decodes a SignBytes message from the specified reader or buffer. * @function decode - * @memberof ibc.lightclients.solomachine.v2.ConsensusStateData + * @memberof ibc.lightclients.solomachine.v2.SignBytes * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.lightclients.solomachine.v2.ConsensusStateData} ConsensusStateData + * @returns {ibc.lightclients.solomachine.v2.SignBytes} SignBytes * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ConsensusStateData.decode = function decode(reader, length) { + SignBytes.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.solomachine.v2.ConsensusStateData(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.solomachine.v2.SignBytes(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.path = reader.bytes(); + message.sequence = reader.uint64(); break; case 2: - message.consensus_state = $root.google.protobuf.Any.decode(reader, reader.uint32()); + message.timestamp = reader.uint64(); + break; + case 3: + message.diversifier = reader.string(); + break; + case 4: + message.data_type = reader.int32(); + break; + case 5: + message.data = reader.bytes(); break; default: reader.skipType(tag & 7); @@ -70819,131 +77028,261 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a ConsensusStateData message from the specified reader or buffer, length delimited. + * Decodes a SignBytes message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.lightclients.solomachine.v2.ConsensusStateData + * @memberof ibc.lightclients.solomachine.v2.SignBytes * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.lightclients.solomachine.v2.ConsensusStateData} ConsensusStateData + * @returns {ibc.lightclients.solomachine.v2.SignBytes} SignBytes * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ConsensusStateData.decodeDelimited = function decodeDelimited(reader) { + SignBytes.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ConsensusStateData message. + * Verifies a SignBytes message. * @function verify - * @memberof ibc.lightclients.solomachine.v2.ConsensusStateData + * @memberof ibc.lightclients.solomachine.v2.SignBytes * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ConsensusStateData.verify = function verify(message) { + SignBytes.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.path != null && message.hasOwnProperty("path")) - if (!(message.path && typeof message.path.length === "number" || $util.isString(message.path))) - return "path: buffer expected"; - if (message.consensus_state != null && message.hasOwnProperty("consensus_state")) { - let error = $root.google.protobuf.Any.verify(message.consensus_state); - if (error) - return "consensus_state." + error; - } + if (message.sequence != null && message.hasOwnProperty("sequence")) + if (!$util.isInteger(message.sequence) && !(message.sequence && $util.isInteger(message.sequence.low) && $util.isInteger(message.sequence.high))) + return "sequence: integer|Long expected"; + if (message.timestamp != null && message.hasOwnProperty("timestamp")) + if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high))) + return "timestamp: integer|Long expected"; + if (message.diversifier != null && message.hasOwnProperty("diversifier")) + if (!$util.isString(message.diversifier)) + return "diversifier: string expected"; + if (message.data_type != null && message.hasOwnProperty("data_type")) + switch (message.data_type) { + default: + return "data_type: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + break; + } + if (message.data != null && message.hasOwnProperty("data")) + if (!(message.data && typeof message.data.length === "number" || $util.isString(message.data))) + return "data: buffer expected"; return null; }; /** - * Creates a ConsensusStateData message from a plain object. Also converts values to their respective internal types. + * Creates a SignBytes message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.lightclients.solomachine.v2.ConsensusStateData + * @memberof ibc.lightclients.solomachine.v2.SignBytes * @static * @param {Object.} object Plain object - * @returns {ibc.lightclients.solomachine.v2.ConsensusStateData} ConsensusStateData + * @returns {ibc.lightclients.solomachine.v2.SignBytes} SignBytes */ - ConsensusStateData.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.lightclients.solomachine.v2.ConsensusStateData) + SignBytes.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.lightclients.solomachine.v2.SignBytes) return object; - let message = new $root.ibc.lightclients.solomachine.v2.ConsensusStateData(); - if (object.path != null) - if (typeof object.path === "string") - $util.base64.decode(object.path, message.path = $util.newBuffer($util.base64.length(object.path)), 0); - else if (object.path.length) - message.path = object.path; - if (object.consensus_state != null) { - if (typeof object.consensus_state !== "object") - throw TypeError(".ibc.lightclients.solomachine.v2.ConsensusStateData.consensus_state: object expected"); - message.consensus_state = $root.google.protobuf.Any.fromObject(object.consensus_state); + let message = new $root.ibc.lightclients.solomachine.v2.SignBytes(); + if (object.sequence != null) + if ($util.Long) + (message.sequence = $util.Long.fromValue(object.sequence)).unsigned = true; + else if (typeof object.sequence === "string") + message.sequence = parseInt(object.sequence, 10); + else if (typeof object.sequence === "number") + message.sequence = object.sequence; + else if (typeof object.sequence === "object") + message.sequence = new $util.LongBits(object.sequence.low >>> 0, object.sequence.high >>> 0).toNumber(true); + if (object.timestamp != null) + if ($util.Long) + (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true; + else if (typeof object.timestamp === "string") + message.timestamp = parseInt(object.timestamp, 10); + else if (typeof object.timestamp === "number") + message.timestamp = object.timestamp; + else if (typeof object.timestamp === "object") + message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true); + if (object.diversifier != null) + message.diversifier = String(object.diversifier); + switch (object.data_type) { + case "DATA_TYPE_UNINITIALIZED_UNSPECIFIED": + case 0: + message.data_type = 0; + break; + case "DATA_TYPE_CLIENT_STATE": + case 1: + message.data_type = 1; + break; + case "DATA_TYPE_CONSENSUS_STATE": + case 2: + message.data_type = 2; + break; + case "DATA_TYPE_CONNECTION_STATE": + case 3: + message.data_type = 3; + break; + case "DATA_TYPE_CHANNEL_STATE": + case 4: + message.data_type = 4; + break; + case "DATA_TYPE_PACKET_COMMITMENT": + case 5: + message.data_type = 5; + break; + case "DATA_TYPE_PACKET_ACKNOWLEDGEMENT": + case 6: + message.data_type = 6; + break; + case "DATA_TYPE_PACKET_RECEIPT_ABSENCE": + case 7: + message.data_type = 7; + break; + case "DATA_TYPE_NEXT_SEQUENCE_RECV": + case 8: + message.data_type = 8; + break; + case "DATA_TYPE_HEADER": + case 9: + message.data_type = 9; + break; } + if (object.data != null) + if (typeof object.data === "string") + $util.base64.decode(object.data, message.data = $util.newBuffer($util.base64.length(object.data)), 0); + else if (object.data.length) + message.data = object.data; return message; }; /** - * Creates a plain object from a ConsensusStateData message. Also converts values to other types if specified. + * Creates a plain object from a SignBytes message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.lightclients.solomachine.v2.ConsensusStateData + * @memberof ibc.lightclients.solomachine.v2.SignBytes * @static - * @param {ibc.lightclients.solomachine.v2.ConsensusStateData} message ConsensusStateData + * @param {ibc.lightclients.solomachine.v2.SignBytes} message SignBytes * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ConsensusStateData.toObject = function toObject(message, options) { + SignBytes.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { + if ($util.Long) { + let long = new $util.Long(0, 0, true); + object.sequence = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.sequence = options.longs === String ? "0" : 0; + if ($util.Long) { + let long = new $util.Long(0, 0, true); + object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.timestamp = options.longs === String ? "0" : 0; + object.diversifier = ""; + object.data_type = options.enums === String ? "DATA_TYPE_UNINITIALIZED_UNSPECIFIED" : 0; if (options.bytes === String) - object.path = ""; + object.data = ""; else { - object.path = []; + object.data = []; if (options.bytes !== Array) - object.path = $util.newBuffer(object.path); + object.data = $util.newBuffer(object.data); } - object.consensus_state = null; } - if (message.path != null && message.hasOwnProperty("path")) - object.path = options.bytes === String ? $util.base64.encode(message.path, 0, message.path.length) : options.bytes === Array ? Array.prototype.slice.call(message.path) : message.path; - if (message.consensus_state != null && message.hasOwnProperty("consensus_state")) - object.consensus_state = $root.google.protobuf.Any.toObject(message.consensus_state, options); + if (message.sequence != null && message.hasOwnProperty("sequence")) + if (typeof message.sequence === "number") + object.sequence = options.longs === String ? String(message.sequence) : message.sequence; + else + object.sequence = options.longs === String ? $util.Long.prototype.toString.call(message.sequence) : options.longs === Number ? new $util.LongBits(message.sequence.low >>> 0, message.sequence.high >>> 0).toNumber(true) : message.sequence; + if (message.timestamp != null && message.hasOwnProperty("timestamp")) + if (typeof message.timestamp === "number") + object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp; + else + object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber(true) : message.timestamp; + if (message.diversifier != null && message.hasOwnProperty("diversifier")) + object.diversifier = message.diversifier; + if (message.data_type != null && message.hasOwnProperty("data_type")) + object.data_type = options.enums === String ? $root.ibc.lightclients.solomachine.v2.DataType[message.data_type] : message.data_type; + if (message.data != null && message.hasOwnProperty("data")) + object.data = options.bytes === String ? $util.base64.encode(message.data, 0, message.data.length) : options.bytes === Array ? Array.prototype.slice.call(message.data) : message.data; return object; }; /** - * Converts this ConsensusStateData to JSON. + * Converts this SignBytes to JSON. * @function toJSON - * @memberof ibc.lightclients.solomachine.v2.ConsensusStateData + * @memberof ibc.lightclients.solomachine.v2.SignBytes * @instance * @returns {Object.} JSON object */ - ConsensusStateData.prototype.toJSON = function toJSON() { + SignBytes.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ConsensusStateData; + return SignBytes; })(); - v2.ConnectionStateData = (function() { + /** + * DataType enum. + * @name ibc.lightclients.solomachine.v2.DataType + * @enum {number} + * @property {number} DATA_TYPE_UNINITIALIZED_UNSPECIFIED=0 DATA_TYPE_UNINITIALIZED_UNSPECIFIED value + * @property {number} DATA_TYPE_CLIENT_STATE=1 DATA_TYPE_CLIENT_STATE value + * @property {number} DATA_TYPE_CONSENSUS_STATE=2 DATA_TYPE_CONSENSUS_STATE value + * @property {number} DATA_TYPE_CONNECTION_STATE=3 DATA_TYPE_CONNECTION_STATE value + * @property {number} DATA_TYPE_CHANNEL_STATE=4 DATA_TYPE_CHANNEL_STATE value + * @property {number} DATA_TYPE_PACKET_COMMITMENT=5 DATA_TYPE_PACKET_COMMITMENT value + * @property {number} DATA_TYPE_PACKET_ACKNOWLEDGEMENT=6 DATA_TYPE_PACKET_ACKNOWLEDGEMENT value + * @property {number} DATA_TYPE_PACKET_RECEIPT_ABSENCE=7 DATA_TYPE_PACKET_RECEIPT_ABSENCE value + * @property {number} DATA_TYPE_NEXT_SEQUENCE_RECV=8 DATA_TYPE_NEXT_SEQUENCE_RECV value + * @property {number} DATA_TYPE_HEADER=9 DATA_TYPE_HEADER value + */ + v2.DataType = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "DATA_TYPE_UNINITIALIZED_UNSPECIFIED"] = 0; + values[valuesById[1] = "DATA_TYPE_CLIENT_STATE"] = 1; + values[valuesById[2] = "DATA_TYPE_CONSENSUS_STATE"] = 2; + values[valuesById[3] = "DATA_TYPE_CONNECTION_STATE"] = 3; + values[valuesById[4] = "DATA_TYPE_CHANNEL_STATE"] = 4; + values[valuesById[5] = "DATA_TYPE_PACKET_COMMITMENT"] = 5; + values[valuesById[6] = "DATA_TYPE_PACKET_ACKNOWLEDGEMENT"] = 6; + values[valuesById[7] = "DATA_TYPE_PACKET_RECEIPT_ABSENCE"] = 7; + values[valuesById[8] = "DATA_TYPE_NEXT_SEQUENCE_RECV"] = 8; + values[valuesById[9] = "DATA_TYPE_HEADER"] = 9; + return values; + })(); + + v2.HeaderData = (function() { /** - * Properties of a ConnectionStateData. + * Properties of a HeaderData. * @memberof ibc.lightclients.solomachine.v2 - * @interface IConnectionStateData - * @property {Uint8Array|null} [path] ConnectionStateData path - * @property {ibc.core.connection.v1.IConnectionEnd|null} [connection] ConnectionStateData connection + * @interface IHeaderData + * @property {google.protobuf.IAny|null} [new_pub_key] HeaderData new_pub_key + * @property {string|null} [new_diversifier] HeaderData new_diversifier */ /** - * Constructs a new ConnectionStateData. + * Constructs a new HeaderData. * @memberof ibc.lightclients.solomachine.v2 - * @classdesc Represents a ConnectionStateData. - * @implements IConnectionStateData + * @classdesc Represents a HeaderData. + * @implements IHeaderData * @constructor - * @param {ibc.lightclients.solomachine.v2.IConnectionStateData=} [properties] Properties to set + * @param {ibc.lightclients.solomachine.v2.IHeaderData=} [properties] Properties to set */ - function ConnectionStateData(properties) { + function HeaderData(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -70951,76 +77290,76 @@ export const ibc = $root.ibc = (() => { } /** - * ConnectionStateData path. - * @member {Uint8Array} path - * @memberof ibc.lightclients.solomachine.v2.ConnectionStateData + * HeaderData new_pub_key. + * @member {google.protobuf.IAny|null|undefined} new_pub_key + * @memberof ibc.lightclients.solomachine.v2.HeaderData * @instance */ - ConnectionStateData.prototype.path = $util.newBuffer([]); + HeaderData.prototype.new_pub_key = null; /** - * ConnectionStateData connection. - * @member {ibc.core.connection.v1.IConnectionEnd|null|undefined} connection - * @memberof ibc.lightclients.solomachine.v2.ConnectionStateData + * HeaderData new_diversifier. + * @member {string} new_diversifier + * @memberof ibc.lightclients.solomachine.v2.HeaderData * @instance */ - ConnectionStateData.prototype.connection = null; + HeaderData.prototype.new_diversifier = ""; /** - * Encodes the specified ConnectionStateData message. Does not implicitly {@link ibc.lightclients.solomachine.v2.ConnectionStateData.verify|verify} messages. + * Encodes the specified HeaderData message. Does not implicitly {@link ibc.lightclients.solomachine.v2.HeaderData.verify|verify} messages. * @function encode - * @memberof ibc.lightclients.solomachine.v2.ConnectionStateData + * @memberof ibc.lightclients.solomachine.v2.HeaderData * @static - * @param {ibc.lightclients.solomachine.v2.IConnectionStateData} message ConnectionStateData message or plain object to encode + * @param {ibc.lightclients.solomachine.v2.IHeaderData} message HeaderData message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ConnectionStateData.encode = function encode(message, writer) { + HeaderData.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.path != null && Object.hasOwnProperty.call(message, "path")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.path); - if (message.connection != null && Object.hasOwnProperty.call(message, "connection")) - $root.ibc.core.connection.v1.ConnectionEnd.encode(message.connection, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.new_pub_key != null && Object.hasOwnProperty.call(message, "new_pub_key")) + $root.google.protobuf.Any.encode(message.new_pub_key, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.new_diversifier != null && Object.hasOwnProperty.call(message, "new_diversifier")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.new_diversifier); return writer; }; /** - * Encodes the specified ConnectionStateData message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v2.ConnectionStateData.verify|verify} messages. + * Encodes the specified HeaderData message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v2.HeaderData.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.lightclients.solomachine.v2.ConnectionStateData + * @memberof ibc.lightclients.solomachine.v2.HeaderData * @static - * @param {ibc.lightclients.solomachine.v2.IConnectionStateData} message ConnectionStateData message or plain object to encode + * @param {ibc.lightclients.solomachine.v2.IHeaderData} message HeaderData message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ConnectionStateData.encodeDelimited = function encodeDelimited(message, writer) { + HeaderData.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ConnectionStateData message from the specified reader or buffer. + * Decodes a HeaderData message from the specified reader or buffer. * @function decode - * @memberof ibc.lightclients.solomachine.v2.ConnectionStateData + * @memberof ibc.lightclients.solomachine.v2.HeaderData * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.lightclients.solomachine.v2.ConnectionStateData} ConnectionStateData + * @returns {ibc.lightclients.solomachine.v2.HeaderData} HeaderData * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ConnectionStateData.decode = function decode(reader, length) { + HeaderData.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.solomachine.v2.ConnectionStateData(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.solomachine.v2.HeaderData(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.path = reader.bytes(); + message.new_pub_key = $root.google.protobuf.Any.decode(reader, reader.uint32()); break; case 2: - message.connection = $root.ibc.core.connection.v1.ConnectionEnd.decode(reader, reader.uint32()); + message.new_diversifier = reader.string(); break; default: reader.skipType(tag & 7); @@ -71031,131 +77370,122 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a ConnectionStateData message from the specified reader or buffer, length delimited. + * Decodes a HeaderData message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.lightclients.solomachine.v2.ConnectionStateData + * @memberof ibc.lightclients.solomachine.v2.HeaderData * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.lightclients.solomachine.v2.ConnectionStateData} ConnectionStateData + * @returns {ibc.lightclients.solomachine.v2.HeaderData} HeaderData * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ConnectionStateData.decodeDelimited = function decodeDelimited(reader) { + HeaderData.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ConnectionStateData message. + * Verifies a HeaderData message. * @function verify - * @memberof ibc.lightclients.solomachine.v2.ConnectionStateData + * @memberof ibc.lightclients.solomachine.v2.HeaderData * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ConnectionStateData.verify = function verify(message) { + HeaderData.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.path != null && message.hasOwnProperty("path")) - if (!(message.path && typeof message.path.length === "number" || $util.isString(message.path))) - return "path: buffer expected"; - if (message.connection != null && message.hasOwnProperty("connection")) { - let error = $root.ibc.core.connection.v1.ConnectionEnd.verify(message.connection); + if (message.new_pub_key != null && message.hasOwnProperty("new_pub_key")) { + let error = $root.google.protobuf.Any.verify(message.new_pub_key); if (error) - return "connection." + error; + return "new_pub_key." + error; } + if (message.new_diversifier != null && message.hasOwnProperty("new_diversifier")) + if (!$util.isString(message.new_diversifier)) + return "new_diversifier: string expected"; return null; }; /** - * Creates a ConnectionStateData message from a plain object. Also converts values to their respective internal types. + * Creates a HeaderData message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.lightclients.solomachine.v2.ConnectionStateData + * @memberof ibc.lightclients.solomachine.v2.HeaderData * @static * @param {Object.} object Plain object - * @returns {ibc.lightclients.solomachine.v2.ConnectionStateData} ConnectionStateData + * @returns {ibc.lightclients.solomachine.v2.HeaderData} HeaderData */ - ConnectionStateData.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.lightclients.solomachine.v2.ConnectionStateData) + HeaderData.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.lightclients.solomachine.v2.HeaderData) return object; - let message = new $root.ibc.lightclients.solomachine.v2.ConnectionStateData(); - if (object.path != null) - if (typeof object.path === "string") - $util.base64.decode(object.path, message.path = $util.newBuffer($util.base64.length(object.path)), 0); - else if (object.path.length) - message.path = object.path; - if (object.connection != null) { - if (typeof object.connection !== "object") - throw TypeError(".ibc.lightclients.solomachine.v2.ConnectionStateData.connection: object expected"); - message.connection = $root.ibc.core.connection.v1.ConnectionEnd.fromObject(object.connection); + let message = new $root.ibc.lightclients.solomachine.v2.HeaderData(); + if (object.new_pub_key != null) { + if (typeof object.new_pub_key !== "object") + throw TypeError(".ibc.lightclients.solomachine.v2.HeaderData.new_pub_key: object expected"); + message.new_pub_key = $root.google.protobuf.Any.fromObject(object.new_pub_key); } + if (object.new_diversifier != null) + message.new_diversifier = String(object.new_diversifier); return message; }; /** - * Creates a plain object from a ConnectionStateData message. Also converts values to other types if specified. + * Creates a plain object from a HeaderData message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.lightclients.solomachine.v2.ConnectionStateData + * @memberof ibc.lightclients.solomachine.v2.HeaderData * @static - * @param {ibc.lightclients.solomachine.v2.ConnectionStateData} message ConnectionStateData + * @param {ibc.lightclients.solomachine.v2.HeaderData} message HeaderData * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ConnectionStateData.toObject = function toObject(message, options) { + HeaderData.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.path = ""; - else { - object.path = []; - if (options.bytes !== Array) - object.path = $util.newBuffer(object.path); - } - object.connection = null; + object.new_pub_key = null; + object.new_diversifier = ""; } - if (message.path != null && message.hasOwnProperty("path")) - object.path = options.bytes === String ? $util.base64.encode(message.path, 0, message.path.length) : options.bytes === Array ? Array.prototype.slice.call(message.path) : message.path; - if (message.connection != null && message.hasOwnProperty("connection")) - object.connection = $root.ibc.core.connection.v1.ConnectionEnd.toObject(message.connection, options); + if (message.new_pub_key != null && message.hasOwnProperty("new_pub_key")) + object.new_pub_key = $root.google.protobuf.Any.toObject(message.new_pub_key, options); + if (message.new_diversifier != null && message.hasOwnProperty("new_diversifier")) + object.new_diversifier = message.new_diversifier; return object; }; /** - * Converts this ConnectionStateData to JSON. + * Converts this HeaderData to JSON. * @function toJSON - * @memberof ibc.lightclients.solomachine.v2.ConnectionStateData + * @memberof ibc.lightclients.solomachine.v2.HeaderData * @instance * @returns {Object.} JSON object */ - ConnectionStateData.prototype.toJSON = function toJSON() { + HeaderData.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ConnectionStateData; + return HeaderData; })(); - v2.ChannelStateData = (function() { + v2.ClientStateData = (function() { /** - * Properties of a ChannelStateData. + * Properties of a ClientStateData. * @memberof ibc.lightclients.solomachine.v2 - * @interface IChannelStateData - * @property {Uint8Array|null} [path] ChannelStateData path - * @property {ibc.core.channel.v1.IChannel|null} [channel] ChannelStateData channel + * @interface IClientStateData + * @property {Uint8Array|null} [path] ClientStateData path + * @property {google.protobuf.IAny|null} [client_state] ClientStateData client_state */ /** - * Constructs a new ChannelStateData. + * Constructs a new ClientStateData. * @memberof ibc.lightclients.solomachine.v2 - * @classdesc Represents a ChannelStateData. - * @implements IChannelStateData + * @classdesc Represents a ClientStateData. + * @implements IClientStateData * @constructor - * @param {ibc.lightclients.solomachine.v2.IChannelStateData=} [properties] Properties to set + * @param {ibc.lightclients.solomachine.v2.IClientStateData=} [properties] Properties to set */ - function ChannelStateData(properties) { + function ClientStateData(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -71163,68 +77493,68 @@ export const ibc = $root.ibc = (() => { } /** - * ChannelStateData path. + * ClientStateData path. * @member {Uint8Array} path - * @memberof ibc.lightclients.solomachine.v2.ChannelStateData + * @memberof ibc.lightclients.solomachine.v2.ClientStateData * @instance */ - ChannelStateData.prototype.path = $util.newBuffer([]); + ClientStateData.prototype.path = $util.newBuffer([]); /** - * ChannelStateData channel. - * @member {ibc.core.channel.v1.IChannel|null|undefined} channel - * @memberof ibc.lightclients.solomachine.v2.ChannelStateData + * ClientStateData client_state. + * @member {google.protobuf.IAny|null|undefined} client_state + * @memberof ibc.lightclients.solomachine.v2.ClientStateData * @instance */ - ChannelStateData.prototype.channel = null; + ClientStateData.prototype.client_state = null; /** - * Encodes the specified ChannelStateData message. Does not implicitly {@link ibc.lightclients.solomachine.v2.ChannelStateData.verify|verify} messages. + * Encodes the specified ClientStateData message. Does not implicitly {@link ibc.lightclients.solomachine.v2.ClientStateData.verify|verify} messages. * @function encode - * @memberof ibc.lightclients.solomachine.v2.ChannelStateData + * @memberof ibc.lightclients.solomachine.v2.ClientStateData * @static - * @param {ibc.lightclients.solomachine.v2.IChannelStateData} message ChannelStateData message or plain object to encode + * @param {ibc.lightclients.solomachine.v2.IClientStateData} message ClientStateData message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ChannelStateData.encode = function encode(message, writer) { + ClientStateData.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.path != null && Object.hasOwnProperty.call(message, "path")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.path); - if (message.channel != null && Object.hasOwnProperty.call(message, "channel")) - $root.ibc.core.channel.v1.Channel.encode(message.channel, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.client_state != null && Object.hasOwnProperty.call(message, "client_state")) + $root.google.protobuf.Any.encode(message.client_state, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified ChannelStateData message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v2.ChannelStateData.verify|verify} messages. + * Encodes the specified ClientStateData message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v2.ClientStateData.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.lightclients.solomachine.v2.ChannelStateData + * @memberof ibc.lightclients.solomachine.v2.ClientStateData * @static - * @param {ibc.lightclients.solomachine.v2.IChannelStateData} message ChannelStateData message or plain object to encode + * @param {ibc.lightclients.solomachine.v2.IClientStateData} message ClientStateData message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ChannelStateData.encodeDelimited = function encodeDelimited(message, writer) { + ClientStateData.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ChannelStateData message from the specified reader or buffer. + * Decodes a ClientStateData message from the specified reader or buffer. * @function decode - * @memberof ibc.lightclients.solomachine.v2.ChannelStateData + * @memberof ibc.lightclients.solomachine.v2.ClientStateData * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.lightclients.solomachine.v2.ChannelStateData} ChannelStateData + * @returns {ibc.lightclients.solomachine.v2.ClientStateData} ClientStateData * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ChannelStateData.decode = function decode(reader, length) { + ClientStateData.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.solomachine.v2.ChannelStateData(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.solomachine.v2.ClientStateData(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { @@ -71232,7 +77562,7 @@ export const ibc = $root.ibc = (() => { message.path = reader.bytes(); break; case 2: - message.channel = $root.ibc.core.channel.v1.Channel.decode(reader, reader.uint32()); + message.client_state = $root.google.protobuf.Any.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -71243,78 +77573,78 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a ChannelStateData message from the specified reader or buffer, length delimited. + * Decodes a ClientStateData message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.lightclients.solomachine.v2.ChannelStateData + * @memberof ibc.lightclients.solomachine.v2.ClientStateData * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.lightclients.solomachine.v2.ChannelStateData} ChannelStateData + * @returns {ibc.lightclients.solomachine.v2.ClientStateData} ClientStateData * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ChannelStateData.decodeDelimited = function decodeDelimited(reader) { + ClientStateData.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ChannelStateData message. + * Verifies a ClientStateData message. * @function verify - * @memberof ibc.lightclients.solomachine.v2.ChannelStateData + * @memberof ibc.lightclients.solomachine.v2.ClientStateData * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ChannelStateData.verify = function verify(message) { + ClientStateData.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.path != null && message.hasOwnProperty("path")) if (!(message.path && typeof message.path.length === "number" || $util.isString(message.path))) return "path: buffer expected"; - if (message.channel != null && message.hasOwnProperty("channel")) { - let error = $root.ibc.core.channel.v1.Channel.verify(message.channel); + if (message.client_state != null && message.hasOwnProperty("client_state")) { + let error = $root.google.protobuf.Any.verify(message.client_state); if (error) - return "channel." + error; + return "client_state." + error; } return null; }; /** - * Creates a ChannelStateData message from a plain object. Also converts values to their respective internal types. + * Creates a ClientStateData message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.lightclients.solomachine.v2.ChannelStateData + * @memberof ibc.lightclients.solomachine.v2.ClientStateData * @static * @param {Object.} object Plain object - * @returns {ibc.lightclients.solomachine.v2.ChannelStateData} ChannelStateData + * @returns {ibc.lightclients.solomachine.v2.ClientStateData} ClientStateData */ - ChannelStateData.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.lightclients.solomachine.v2.ChannelStateData) + ClientStateData.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.lightclients.solomachine.v2.ClientStateData) return object; - let message = new $root.ibc.lightclients.solomachine.v2.ChannelStateData(); + let message = new $root.ibc.lightclients.solomachine.v2.ClientStateData(); if (object.path != null) if (typeof object.path === "string") $util.base64.decode(object.path, message.path = $util.newBuffer($util.base64.length(object.path)), 0); else if (object.path.length) message.path = object.path; - if (object.channel != null) { - if (typeof object.channel !== "object") - throw TypeError(".ibc.lightclients.solomachine.v2.ChannelStateData.channel: object expected"); - message.channel = $root.ibc.core.channel.v1.Channel.fromObject(object.channel); + if (object.client_state != null) { + if (typeof object.client_state !== "object") + throw TypeError(".ibc.lightclients.solomachine.v2.ClientStateData.client_state: object expected"); + message.client_state = $root.google.protobuf.Any.fromObject(object.client_state); } return message; }; /** - * Creates a plain object from a ChannelStateData message. Also converts values to other types if specified. + * Creates a plain object from a ClientStateData message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.lightclients.solomachine.v2.ChannelStateData + * @memberof ibc.lightclients.solomachine.v2.ClientStateData * @static - * @param {ibc.lightclients.solomachine.v2.ChannelStateData} message ChannelStateData + * @param {ibc.lightclients.solomachine.v2.ClientStateData} message ClientStateData * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ChannelStateData.toObject = function toObject(message, options) { + ClientStateData.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; @@ -71326,48 +77656,48 @@ export const ibc = $root.ibc = (() => { if (options.bytes !== Array) object.path = $util.newBuffer(object.path); } - object.channel = null; + object.client_state = null; } if (message.path != null && message.hasOwnProperty("path")) object.path = options.bytes === String ? $util.base64.encode(message.path, 0, message.path.length) : options.bytes === Array ? Array.prototype.slice.call(message.path) : message.path; - if (message.channel != null && message.hasOwnProperty("channel")) - object.channel = $root.ibc.core.channel.v1.Channel.toObject(message.channel, options); + if (message.client_state != null && message.hasOwnProperty("client_state")) + object.client_state = $root.google.protobuf.Any.toObject(message.client_state, options); return object; }; /** - * Converts this ChannelStateData to JSON. + * Converts this ClientStateData to JSON. * @function toJSON - * @memberof ibc.lightclients.solomachine.v2.ChannelStateData + * @memberof ibc.lightclients.solomachine.v2.ClientStateData * @instance * @returns {Object.} JSON object */ - ChannelStateData.prototype.toJSON = function toJSON() { + ClientStateData.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ChannelStateData; + return ClientStateData; })(); - v2.PacketCommitmentData = (function() { + v2.ConsensusStateData = (function() { /** - * Properties of a PacketCommitmentData. + * Properties of a ConsensusStateData. * @memberof ibc.lightclients.solomachine.v2 - * @interface IPacketCommitmentData - * @property {Uint8Array|null} [path] PacketCommitmentData path - * @property {Uint8Array|null} [commitment] PacketCommitmentData commitment + * @interface IConsensusStateData + * @property {Uint8Array|null} [path] ConsensusStateData path + * @property {google.protobuf.IAny|null} [consensus_state] ConsensusStateData consensus_state */ /** - * Constructs a new PacketCommitmentData. + * Constructs a new ConsensusStateData. * @memberof ibc.lightclients.solomachine.v2 - * @classdesc Represents a PacketCommitmentData. - * @implements IPacketCommitmentData + * @classdesc Represents a ConsensusStateData. + * @implements IConsensusStateData * @constructor - * @param {ibc.lightclients.solomachine.v2.IPacketCommitmentData=} [properties] Properties to set + * @param {ibc.lightclients.solomachine.v2.IConsensusStateData=} [properties] Properties to set */ - function PacketCommitmentData(properties) { + function ConsensusStateData(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -71375,68 +77705,68 @@ export const ibc = $root.ibc = (() => { } /** - * PacketCommitmentData path. + * ConsensusStateData path. * @member {Uint8Array} path - * @memberof ibc.lightclients.solomachine.v2.PacketCommitmentData + * @memberof ibc.lightclients.solomachine.v2.ConsensusStateData * @instance */ - PacketCommitmentData.prototype.path = $util.newBuffer([]); + ConsensusStateData.prototype.path = $util.newBuffer([]); /** - * PacketCommitmentData commitment. - * @member {Uint8Array} commitment - * @memberof ibc.lightclients.solomachine.v2.PacketCommitmentData + * ConsensusStateData consensus_state. + * @member {google.protobuf.IAny|null|undefined} consensus_state + * @memberof ibc.lightclients.solomachine.v2.ConsensusStateData * @instance */ - PacketCommitmentData.prototype.commitment = $util.newBuffer([]); + ConsensusStateData.prototype.consensus_state = null; /** - * Encodes the specified PacketCommitmentData message. Does not implicitly {@link ibc.lightclients.solomachine.v2.PacketCommitmentData.verify|verify} messages. + * Encodes the specified ConsensusStateData message. Does not implicitly {@link ibc.lightclients.solomachine.v2.ConsensusStateData.verify|verify} messages. * @function encode - * @memberof ibc.lightclients.solomachine.v2.PacketCommitmentData + * @memberof ibc.lightclients.solomachine.v2.ConsensusStateData * @static - * @param {ibc.lightclients.solomachine.v2.IPacketCommitmentData} message PacketCommitmentData message or plain object to encode + * @param {ibc.lightclients.solomachine.v2.IConsensusStateData} message ConsensusStateData message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PacketCommitmentData.encode = function encode(message, writer) { + ConsensusStateData.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.path != null && Object.hasOwnProperty.call(message, "path")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.path); - if (message.commitment != null && Object.hasOwnProperty.call(message, "commitment")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.commitment); + if (message.consensus_state != null && Object.hasOwnProperty.call(message, "consensus_state")) + $root.google.protobuf.Any.encode(message.consensus_state, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified PacketCommitmentData message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v2.PacketCommitmentData.verify|verify} messages. + * Encodes the specified ConsensusStateData message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v2.ConsensusStateData.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.lightclients.solomachine.v2.PacketCommitmentData + * @memberof ibc.lightclients.solomachine.v2.ConsensusStateData * @static - * @param {ibc.lightclients.solomachine.v2.IPacketCommitmentData} message PacketCommitmentData message or plain object to encode + * @param {ibc.lightclients.solomachine.v2.IConsensusStateData} message ConsensusStateData message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PacketCommitmentData.encodeDelimited = function encodeDelimited(message, writer) { + ConsensusStateData.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PacketCommitmentData message from the specified reader or buffer. + * Decodes a ConsensusStateData message from the specified reader or buffer. * @function decode - * @memberof ibc.lightclients.solomachine.v2.PacketCommitmentData + * @memberof ibc.lightclients.solomachine.v2.ConsensusStateData * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.lightclients.solomachine.v2.PacketCommitmentData} PacketCommitmentData + * @returns {ibc.lightclients.solomachine.v2.ConsensusStateData} ConsensusStateData * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PacketCommitmentData.decode = function decode(reader, length) { + ConsensusStateData.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.solomachine.v2.PacketCommitmentData(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.solomachine.v2.ConsensusStateData(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { @@ -71444,7 +77774,7 @@ export const ibc = $root.ibc = (() => { message.path = reader.bytes(); break; case 2: - message.commitment = reader.bytes(); + message.consensus_state = $root.google.protobuf.Any.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -71455,76 +77785,78 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a PacketCommitmentData message from the specified reader or buffer, length delimited. + * Decodes a ConsensusStateData message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.lightclients.solomachine.v2.PacketCommitmentData + * @memberof ibc.lightclients.solomachine.v2.ConsensusStateData * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.lightclients.solomachine.v2.PacketCommitmentData} PacketCommitmentData + * @returns {ibc.lightclients.solomachine.v2.ConsensusStateData} ConsensusStateData * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PacketCommitmentData.decodeDelimited = function decodeDelimited(reader) { + ConsensusStateData.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PacketCommitmentData message. + * Verifies a ConsensusStateData message. * @function verify - * @memberof ibc.lightclients.solomachine.v2.PacketCommitmentData + * @memberof ibc.lightclients.solomachine.v2.ConsensusStateData * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PacketCommitmentData.verify = function verify(message) { + ConsensusStateData.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.path != null && message.hasOwnProperty("path")) if (!(message.path && typeof message.path.length === "number" || $util.isString(message.path))) return "path: buffer expected"; - if (message.commitment != null && message.hasOwnProperty("commitment")) - if (!(message.commitment && typeof message.commitment.length === "number" || $util.isString(message.commitment))) - return "commitment: buffer expected"; + if (message.consensus_state != null && message.hasOwnProperty("consensus_state")) { + let error = $root.google.protobuf.Any.verify(message.consensus_state); + if (error) + return "consensus_state." + error; + } return null; }; /** - * Creates a PacketCommitmentData message from a plain object. Also converts values to their respective internal types. + * Creates a ConsensusStateData message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.lightclients.solomachine.v2.PacketCommitmentData + * @memberof ibc.lightclients.solomachine.v2.ConsensusStateData * @static * @param {Object.} object Plain object - * @returns {ibc.lightclients.solomachine.v2.PacketCommitmentData} PacketCommitmentData + * @returns {ibc.lightclients.solomachine.v2.ConsensusStateData} ConsensusStateData */ - PacketCommitmentData.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.lightclients.solomachine.v2.PacketCommitmentData) + ConsensusStateData.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.lightclients.solomachine.v2.ConsensusStateData) return object; - let message = new $root.ibc.lightclients.solomachine.v2.PacketCommitmentData(); + let message = new $root.ibc.lightclients.solomachine.v2.ConsensusStateData(); if (object.path != null) if (typeof object.path === "string") $util.base64.decode(object.path, message.path = $util.newBuffer($util.base64.length(object.path)), 0); else if (object.path.length) message.path = object.path; - if (object.commitment != null) - if (typeof object.commitment === "string") - $util.base64.decode(object.commitment, message.commitment = $util.newBuffer($util.base64.length(object.commitment)), 0); - else if (object.commitment.length) - message.commitment = object.commitment; + if (object.consensus_state != null) { + if (typeof object.consensus_state !== "object") + throw TypeError(".ibc.lightclients.solomachine.v2.ConsensusStateData.consensus_state: object expected"); + message.consensus_state = $root.google.protobuf.Any.fromObject(object.consensus_state); + } return message; }; /** - * Creates a plain object from a PacketCommitmentData message. Also converts values to other types if specified. + * Creates a plain object from a ConsensusStateData message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.lightclients.solomachine.v2.PacketCommitmentData + * @memberof ibc.lightclients.solomachine.v2.ConsensusStateData * @static - * @param {ibc.lightclients.solomachine.v2.PacketCommitmentData} message PacketCommitmentData + * @param {ibc.lightclients.solomachine.v2.ConsensusStateData} message ConsensusStateData * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PacketCommitmentData.toObject = function toObject(message, options) { + ConsensusStateData.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; @@ -71536,54 +77868,48 @@ export const ibc = $root.ibc = (() => { if (options.bytes !== Array) object.path = $util.newBuffer(object.path); } - if (options.bytes === String) - object.commitment = ""; - else { - object.commitment = []; - if (options.bytes !== Array) - object.commitment = $util.newBuffer(object.commitment); - } + object.consensus_state = null; } if (message.path != null && message.hasOwnProperty("path")) object.path = options.bytes === String ? $util.base64.encode(message.path, 0, message.path.length) : options.bytes === Array ? Array.prototype.slice.call(message.path) : message.path; - if (message.commitment != null && message.hasOwnProperty("commitment")) - object.commitment = options.bytes === String ? $util.base64.encode(message.commitment, 0, message.commitment.length) : options.bytes === Array ? Array.prototype.slice.call(message.commitment) : message.commitment; + if (message.consensus_state != null && message.hasOwnProperty("consensus_state")) + object.consensus_state = $root.google.protobuf.Any.toObject(message.consensus_state, options); return object; }; /** - * Converts this PacketCommitmentData to JSON. + * Converts this ConsensusStateData to JSON. * @function toJSON - * @memberof ibc.lightclients.solomachine.v2.PacketCommitmentData + * @memberof ibc.lightclients.solomachine.v2.ConsensusStateData * @instance * @returns {Object.} JSON object */ - PacketCommitmentData.prototype.toJSON = function toJSON() { + ConsensusStateData.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return PacketCommitmentData; + return ConsensusStateData; })(); - v2.PacketAcknowledgementData = (function() { + v2.ConnectionStateData = (function() { /** - * Properties of a PacketAcknowledgementData. + * Properties of a ConnectionStateData. * @memberof ibc.lightclients.solomachine.v2 - * @interface IPacketAcknowledgementData - * @property {Uint8Array|null} [path] PacketAcknowledgementData path - * @property {Uint8Array|null} [acknowledgement] PacketAcknowledgementData acknowledgement + * @interface IConnectionStateData + * @property {Uint8Array|null} [path] ConnectionStateData path + * @property {ibc.core.connection.v1.IConnectionEnd|null} [connection] ConnectionStateData connection */ /** - * Constructs a new PacketAcknowledgementData. + * Constructs a new ConnectionStateData. * @memberof ibc.lightclients.solomachine.v2 - * @classdesc Represents a PacketAcknowledgementData. - * @implements IPacketAcknowledgementData + * @classdesc Represents a ConnectionStateData. + * @implements IConnectionStateData * @constructor - * @param {ibc.lightclients.solomachine.v2.IPacketAcknowledgementData=} [properties] Properties to set + * @param {ibc.lightclients.solomachine.v2.IConnectionStateData=} [properties] Properties to set */ - function PacketAcknowledgementData(properties) { + function ConnectionStateData(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -71591,68 +77917,68 @@ export const ibc = $root.ibc = (() => { } /** - * PacketAcknowledgementData path. + * ConnectionStateData path. * @member {Uint8Array} path - * @memberof ibc.lightclients.solomachine.v2.PacketAcknowledgementData + * @memberof ibc.lightclients.solomachine.v2.ConnectionStateData * @instance */ - PacketAcknowledgementData.prototype.path = $util.newBuffer([]); + ConnectionStateData.prototype.path = $util.newBuffer([]); /** - * PacketAcknowledgementData acknowledgement. - * @member {Uint8Array} acknowledgement - * @memberof ibc.lightclients.solomachine.v2.PacketAcknowledgementData + * ConnectionStateData connection. + * @member {ibc.core.connection.v1.IConnectionEnd|null|undefined} connection + * @memberof ibc.lightclients.solomachine.v2.ConnectionStateData * @instance */ - PacketAcknowledgementData.prototype.acknowledgement = $util.newBuffer([]); + ConnectionStateData.prototype.connection = null; /** - * Encodes the specified PacketAcknowledgementData message. Does not implicitly {@link ibc.lightclients.solomachine.v2.PacketAcknowledgementData.verify|verify} messages. + * Encodes the specified ConnectionStateData message. Does not implicitly {@link ibc.lightclients.solomachine.v2.ConnectionStateData.verify|verify} messages. * @function encode - * @memberof ibc.lightclients.solomachine.v2.PacketAcknowledgementData + * @memberof ibc.lightclients.solomachine.v2.ConnectionStateData * @static - * @param {ibc.lightclients.solomachine.v2.IPacketAcknowledgementData} message PacketAcknowledgementData message or plain object to encode + * @param {ibc.lightclients.solomachine.v2.IConnectionStateData} message ConnectionStateData message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PacketAcknowledgementData.encode = function encode(message, writer) { + ConnectionStateData.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.path != null && Object.hasOwnProperty.call(message, "path")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.path); - if (message.acknowledgement != null && Object.hasOwnProperty.call(message, "acknowledgement")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.acknowledgement); + if (message.connection != null && Object.hasOwnProperty.call(message, "connection")) + $root.ibc.core.connection.v1.ConnectionEnd.encode(message.connection, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified PacketAcknowledgementData message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v2.PacketAcknowledgementData.verify|verify} messages. + * Encodes the specified ConnectionStateData message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v2.ConnectionStateData.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.lightclients.solomachine.v2.PacketAcknowledgementData + * @memberof ibc.lightclients.solomachine.v2.ConnectionStateData * @static - * @param {ibc.lightclients.solomachine.v2.IPacketAcknowledgementData} message PacketAcknowledgementData message or plain object to encode + * @param {ibc.lightclients.solomachine.v2.IConnectionStateData} message ConnectionStateData message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PacketAcknowledgementData.encodeDelimited = function encodeDelimited(message, writer) { + ConnectionStateData.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PacketAcknowledgementData message from the specified reader or buffer. + * Decodes a ConnectionStateData message from the specified reader or buffer. * @function decode - * @memberof ibc.lightclients.solomachine.v2.PacketAcknowledgementData + * @memberof ibc.lightclients.solomachine.v2.ConnectionStateData * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.lightclients.solomachine.v2.PacketAcknowledgementData} PacketAcknowledgementData + * @returns {ibc.lightclients.solomachine.v2.ConnectionStateData} ConnectionStateData * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PacketAcknowledgementData.decode = function decode(reader, length) { + ConnectionStateData.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.solomachine.v2.PacketAcknowledgementData(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.solomachine.v2.ConnectionStateData(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { @@ -71660,7 +77986,7 @@ export const ibc = $root.ibc = (() => { message.path = reader.bytes(); break; case 2: - message.acknowledgement = reader.bytes(); + message.connection = $root.ibc.core.connection.v1.ConnectionEnd.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -71671,76 +77997,78 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a PacketAcknowledgementData message from the specified reader or buffer, length delimited. + * Decodes a ConnectionStateData message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.lightclients.solomachine.v2.PacketAcknowledgementData + * @memberof ibc.lightclients.solomachine.v2.ConnectionStateData * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.lightclients.solomachine.v2.PacketAcknowledgementData} PacketAcknowledgementData + * @returns {ibc.lightclients.solomachine.v2.ConnectionStateData} ConnectionStateData * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PacketAcknowledgementData.decodeDelimited = function decodeDelimited(reader) { + ConnectionStateData.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PacketAcknowledgementData message. + * Verifies a ConnectionStateData message. * @function verify - * @memberof ibc.lightclients.solomachine.v2.PacketAcknowledgementData + * @memberof ibc.lightclients.solomachine.v2.ConnectionStateData * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PacketAcknowledgementData.verify = function verify(message) { + ConnectionStateData.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.path != null && message.hasOwnProperty("path")) if (!(message.path && typeof message.path.length === "number" || $util.isString(message.path))) return "path: buffer expected"; - if (message.acknowledgement != null && message.hasOwnProperty("acknowledgement")) - if (!(message.acknowledgement && typeof message.acknowledgement.length === "number" || $util.isString(message.acknowledgement))) - return "acknowledgement: buffer expected"; + if (message.connection != null && message.hasOwnProperty("connection")) { + let error = $root.ibc.core.connection.v1.ConnectionEnd.verify(message.connection); + if (error) + return "connection." + error; + } return null; }; /** - * Creates a PacketAcknowledgementData message from a plain object. Also converts values to their respective internal types. + * Creates a ConnectionStateData message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.lightclients.solomachine.v2.PacketAcknowledgementData + * @memberof ibc.lightclients.solomachine.v2.ConnectionStateData * @static * @param {Object.} object Plain object - * @returns {ibc.lightclients.solomachine.v2.PacketAcknowledgementData} PacketAcknowledgementData + * @returns {ibc.lightclients.solomachine.v2.ConnectionStateData} ConnectionStateData */ - PacketAcknowledgementData.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.lightclients.solomachine.v2.PacketAcknowledgementData) + ConnectionStateData.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.lightclients.solomachine.v2.ConnectionStateData) return object; - let message = new $root.ibc.lightclients.solomachine.v2.PacketAcknowledgementData(); + let message = new $root.ibc.lightclients.solomachine.v2.ConnectionStateData(); if (object.path != null) if (typeof object.path === "string") $util.base64.decode(object.path, message.path = $util.newBuffer($util.base64.length(object.path)), 0); else if (object.path.length) message.path = object.path; - if (object.acknowledgement != null) - if (typeof object.acknowledgement === "string") - $util.base64.decode(object.acknowledgement, message.acknowledgement = $util.newBuffer($util.base64.length(object.acknowledgement)), 0); - else if (object.acknowledgement.length) - message.acknowledgement = object.acknowledgement; + if (object.connection != null) { + if (typeof object.connection !== "object") + throw TypeError(".ibc.lightclients.solomachine.v2.ConnectionStateData.connection: object expected"); + message.connection = $root.ibc.core.connection.v1.ConnectionEnd.fromObject(object.connection); + } return message; }; /** - * Creates a plain object from a PacketAcknowledgementData message. Also converts values to other types if specified. + * Creates a plain object from a ConnectionStateData message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.lightclients.solomachine.v2.PacketAcknowledgementData + * @memberof ibc.lightclients.solomachine.v2.ConnectionStateData * @static - * @param {ibc.lightclients.solomachine.v2.PacketAcknowledgementData} message PacketAcknowledgementData + * @param {ibc.lightclients.solomachine.v2.ConnectionStateData} message ConnectionStateData * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PacketAcknowledgementData.toObject = function toObject(message, options) { + ConnectionStateData.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; @@ -71752,53 +78080,48 @@ export const ibc = $root.ibc = (() => { if (options.bytes !== Array) object.path = $util.newBuffer(object.path); } - if (options.bytes === String) - object.acknowledgement = ""; - else { - object.acknowledgement = []; - if (options.bytes !== Array) - object.acknowledgement = $util.newBuffer(object.acknowledgement); - } + object.connection = null; } if (message.path != null && message.hasOwnProperty("path")) object.path = options.bytes === String ? $util.base64.encode(message.path, 0, message.path.length) : options.bytes === Array ? Array.prototype.slice.call(message.path) : message.path; - if (message.acknowledgement != null && message.hasOwnProperty("acknowledgement")) - object.acknowledgement = options.bytes === String ? $util.base64.encode(message.acknowledgement, 0, message.acknowledgement.length) : options.bytes === Array ? Array.prototype.slice.call(message.acknowledgement) : message.acknowledgement; + if (message.connection != null && message.hasOwnProperty("connection")) + object.connection = $root.ibc.core.connection.v1.ConnectionEnd.toObject(message.connection, options); return object; }; /** - * Converts this PacketAcknowledgementData to JSON. + * Converts this ConnectionStateData to JSON. * @function toJSON - * @memberof ibc.lightclients.solomachine.v2.PacketAcknowledgementData + * @memberof ibc.lightclients.solomachine.v2.ConnectionStateData * @instance * @returns {Object.} JSON object */ - PacketAcknowledgementData.prototype.toJSON = function toJSON() { + ConnectionStateData.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return PacketAcknowledgementData; + return ConnectionStateData; })(); - v2.PacketReceiptAbsenceData = (function() { + v2.ChannelStateData = (function() { /** - * Properties of a PacketReceiptAbsenceData. + * Properties of a ChannelStateData. * @memberof ibc.lightclients.solomachine.v2 - * @interface IPacketReceiptAbsenceData - * @property {Uint8Array|null} [path] PacketReceiptAbsenceData path + * @interface IChannelStateData + * @property {Uint8Array|null} [path] ChannelStateData path + * @property {ibc.core.channel.v1.IChannel|null} [channel] ChannelStateData channel */ /** - * Constructs a new PacketReceiptAbsenceData. + * Constructs a new ChannelStateData. * @memberof ibc.lightclients.solomachine.v2 - * @classdesc Represents a PacketReceiptAbsenceData. - * @implements IPacketReceiptAbsenceData + * @classdesc Represents a ChannelStateData. + * @implements IChannelStateData * @constructor - * @param {ibc.lightclients.solomachine.v2.IPacketReceiptAbsenceData=} [properties] Properties to set + * @param {ibc.lightclients.solomachine.v2.IChannelStateData=} [properties] Properties to set */ - function PacketReceiptAbsenceData(properties) { + function ChannelStateData(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -71806,64 +78129,77 @@ export const ibc = $root.ibc = (() => { } /** - * PacketReceiptAbsenceData path. + * ChannelStateData path. * @member {Uint8Array} path - * @memberof ibc.lightclients.solomachine.v2.PacketReceiptAbsenceData + * @memberof ibc.lightclients.solomachine.v2.ChannelStateData * @instance */ - PacketReceiptAbsenceData.prototype.path = $util.newBuffer([]); + ChannelStateData.prototype.path = $util.newBuffer([]); /** - * Encodes the specified PacketReceiptAbsenceData message. Does not implicitly {@link ibc.lightclients.solomachine.v2.PacketReceiptAbsenceData.verify|verify} messages. + * ChannelStateData channel. + * @member {ibc.core.channel.v1.IChannel|null|undefined} channel + * @memberof ibc.lightclients.solomachine.v2.ChannelStateData + * @instance + */ + ChannelStateData.prototype.channel = null; + + /** + * Encodes the specified ChannelStateData message. Does not implicitly {@link ibc.lightclients.solomachine.v2.ChannelStateData.verify|verify} messages. * @function encode - * @memberof ibc.lightclients.solomachine.v2.PacketReceiptAbsenceData + * @memberof ibc.lightclients.solomachine.v2.ChannelStateData * @static - * @param {ibc.lightclients.solomachine.v2.IPacketReceiptAbsenceData} message PacketReceiptAbsenceData message or plain object to encode + * @param {ibc.lightclients.solomachine.v2.IChannelStateData} message ChannelStateData message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PacketReceiptAbsenceData.encode = function encode(message, writer) { + ChannelStateData.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.path != null && Object.hasOwnProperty.call(message, "path")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.path); + if (message.channel != null && Object.hasOwnProperty.call(message, "channel")) + $root.ibc.core.channel.v1.Channel.encode(message.channel, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified PacketReceiptAbsenceData message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v2.PacketReceiptAbsenceData.verify|verify} messages. + * Encodes the specified ChannelStateData message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v2.ChannelStateData.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.lightclients.solomachine.v2.PacketReceiptAbsenceData + * @memberof ibc.lightclients.solomachine.v2.ChannelStateData * @static - * @param {ibc.lightclients.solomachine.v2.IPacketReceiptAbsenceData} message PacketReceiptAbsenceData message or plain object to encode + * @param {ibc.lightclients.solomachine.v2.IChannelStateData} message ChannelStateData message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PacketReceiptAbsenceData.encodeDelimited = function encodeDelimited(message, writer) { + ChannelStateData.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PacketReceiptAbsenceData message from the specified reader or buffer. + * Decodes a ChannelStateData message from the specified reader or buffer. * @function decode - * @memberof ibc.lightclients.solomachine.v2.PacketReceiptAbsenceData + * @memberof ibc.lightclients.solomachine.v2.ChannelStateData * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.lightclients.solomachine.v2.PacketReceiptAbsenceData} PacketReceiptAbsenceData + * @returns {ibc.lightclients.solomachine.v2.ChannelStateData} ChannelStateData * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PacketReceiptAbsenceData.decode = function decode(reader, length) { + ChannelStateData.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.solomachine.v2.PacketReceiptAbsenceData(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.solomachine.v2.ChannelStateData(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: message.path = reader.bytes(); break; + case 2: + message.channel = $root.ibc.core.channel.v1.Channel.decode(reader, reader.uint32()); + break; default: reader.skipType(tag & 7); break; @@ -71873,72 +78209,82 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a PacketReceiptAbsenceData message from the specified reader or buffer, length delimited. + * Decodes a ChannelStateData message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.lightclients.solomachine.v2.PacketReceiptAbsenceData + * @memberof ibc.lightclients.solomachine.v2.ChannelStateData * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.lightclients.solomachine.v2.PacketReceiptAbsenceData} PacketReceiptAbsenceData + * @returns {ibc.lightclients.solomachine.v2.ChannelStateData} ChannelStateData * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PacketReceiptAbsenceData.decodeDelimited = function decodeDelimited(reader) { + ChannelStateData.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PacketReceiptAbsenceData message. + * Verifies a ChannelStateData message. * @function verify - * @memberof ibc.lightclients.solomachine.v2.PacketReceiptAbsenceData + * @memberof ibc.lightclients.solomachine.v2.ChannelStateData * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PacketReceiptAbsenceData.verify = function verify(message) { + ChannelStateData.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.path != null && message.hasOwnProperty("path")) if (!(message.path && typeof message.path.length === "number" || $util.isString(message.path))) return "path: buffer expected"; + if (message.channel != null && message.hasOwnProperty("channel")) { + let error = $root.ibc.core.channel.v1.Channel.verify(message.channel); + if (error) + return "channel." + error; + } return null; }; /** - * Creates a PacketReceiptAbsenceData message from a plain object. Also converts values to their respective internal types. + * Creates a ChannelStateData message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.lightclients.solomachine.v2.PacketReceiptAbsenceData + * @memberof ibc.lightclients.solomachine.v2.ChannelStateData * @static * @param {Object.} object Plain object - * @returns {ibc.lightclients.solomachine.v2.PacketReceiptAbsenceData} PacketReceiptAbsenceData + * @returns {ibc.lightclients.solomachine.v2.ChannelStateData} ChannelStateData */ - PacketReceiptAbsenceData.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.lightclients.solomachine.v2.PacketReceiptAbsenceData) + ChannelStateData.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.lightclients.solomachine.v2.ChannelStateData) return object; - let message = new $root.ibc.lightclients.solomachine.v2.PacketReceiptAbsenceData(); + let message = new $root.ibc.lightclients.solomachine.v2.ChannelStateData(); if (object.path != null) if (typeof object.path === "string") $util.base64.decode(object.path, message.path = $util.newBuffer($util.base64.length(object.path)), 0); else if (object.path.length) message.path = object.path; + if (object.channel != null) { + if (typeof object.channel !== "object") + throw TypeError(".ibc.lightclients.solomachine.v2.ChannelStateData.channel: object expected"); + message.channel = $root.ibc.core.channel.v1.Channel.fromObject(object.channel); + } return message; }; /** - * Creates a plain object from a PacketReceiptAbsenceData message. Also converts values to other types if specified. + * Creates a plain object from a ChannelStateData message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.lightclients.solomachine.v2.PacketReceiptAbsenceData + * @memberof ibc.lightclients.solomachine.v2.ChannelStateData * @static - * @param {ibc.lightclients.solomachine.v2.PacketReceiptAbsenceData} message PacketReceiptAbsenceData + * @param {ibc.lightclients.solomachine.v2.ChannelStateData} message ChannelStateData * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PacketReceiptAbsenceData.toObject = function toObject(message, options) { + ChannelStateData.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) + if (options.defaults) { if (options.bytes === String) object.path = ""; else { @@ -71946,44 +78292,48 @@ export const ibc = $root.ibc = (() => { if (options.bytes !== Array) object.path = $util.newBuffer(object.path); } + object.channel = null; + } if (message.path != null && message.hasOwnProperty("path")) object.path = options.bytes === String ? $util.base64.encode(message.path, 0, message.path.length) : options.bytes === Array ? Array.prototype.slice.call(message.path) : message.path; + if (message.channel != null && message.hasOwnProperty("channel")) + object.channel = $root.ibc.core.channel.v1.Channel.toObject(message.channel, options); return object; }; /** - * Converts this PacketReceiptAbsenceData to JSON. + * Converts this ChannelStateData to JSON. * @function toJSON - * @memberof ibc.lightclients.solomachine.v2.PacketReceiptAbsenceData + * @memberof ibc.lightclients.solomachine.v2.ChannelStateData * @instance * @returns {Object.} JSON object */ - PacketReceiptAbsenceData.prototype.toJSON = function toJSON() { + ChannelStateData.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return PacketReceiptAbsenceData; + return ChannelStateData; })(); - v2.NextSequenceRecvData = (function() { + v2.PacketCommitmentData = (function() { /** - * Properties of a NextSequenceRecvData. + * Properties of a PacketCommitmentData. * @memberof ibc.lightclients.solomachine.v2 - * @interface INextSequenceRecvData - * @property {Uint8Array|null} [path] NextSequenceRecvData path - * @property {Long|null} [next_seq_recv] NextSequenceRecvData next_seq_recv + * @interface IPacketCommitmentData + * @property {Uint8Array|null} [path] PacketCommitmentData path + * @property {Uint8Array|null} [commitment] PacketCommitmentData commitment */ /** - * Constructs a new NextSequenceRecvData. + * Constructs a new PacketCommitmentData. * @memberof ibc.lightclients.solomachine.v2 - * @classdesc Represents a NextSequenceRecvData. - * @implements INextSequenceRecvData + * @classdesc Represents a PacketCommitmentData. + * @implements IPacketCommitmentData * @constructor - * @param {ibc.lightclients.solomachine.v2.INextSequenceRecvData=} [properties] Properties to set + * @param {ibc.lightclients.solomachine.v2.IPacketCommitmentData=} [properties] Properties to set */ - function NextSequenceRecvData(properties) { + function PacketCommitmentData(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -71991,68 +78341,68 @@ export const ibc = $root.ibc = (() => { } /** - * NextSequenceRecvData path. + * PacketCommitmentData path. * @member {Uint8Array} path - * @memberof ibc.lightclients.solomachine.v2.NextSequenceRecvData + * @memberof ibc.lightclients.solomachine.v2.PacketCommitmentData * @instance */ - NextSequenceRecvData.prototype.path = $util.newBuffer([]); + PacketCommitmentData.prototype.path = $util.newBuffer([]); /** - * NextSequenceRecvData next_seq_recv. - * @member {Long} next_seq_recv - * @memberof ibc.lightclients.solomachine.v2.NextSequenceRecvData + * PacketCommitmentData commitment. + * @member {Uint8Array} commitment + * @memberof ibc.lightclients.solomachine.v2.PacketCommitmentData * @instance */ - NextSequenceRecvData.prototype.next_seq_recv = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + PacketCommitmentData.prototype.commitment = $util.newBuffer([]); /** - * Encodes the specified NextSequenceRecvData message. Does not implicitly {@link ibc.lightclients.solomachine.v2.NextSequenceRecvData.verify|verify} messages. + * Encodes the specified PacketCommitmentData message. Does not implicitly {@link ibc.lightclients.solomachine.v2.PacketCommitmentData.verify|verify} messages. * @function encode - * @memberof ibc.lightclients.solomachine.v2.NextSequenceRecvData + * @memberof ibc.lightclients.solomachine.v2.PacketCommitmentData * @static - * @param {ibc.lightclients.solomachine.v2.INextSequenceRecvData} message NextSequenceRecvData message or plain object to encode + * @param {ibc.lightclients.solomachine.v2.IPacketCommitmentData} message PacketCommitmentData message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NextSequenceRecvData.encode = function encode(message, writer) { + PacketCommitmentData.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.path != null && Object.hasOwnProperty.call(message, "path")) writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.path); - if (message.next_seq_recv != null && Object.hasOwnProperty.call(message, "next_seq_recv")) - writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.next_seq_recv); + if (message.commitment != null && Object.hasOwnProperty.call(message, "commitment")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.commitment); return writer; }; /** - * Encodes the specified NextSequenceRecvData message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v2.NextSequenceRecvData.verify|verify} messages. + * Encodes the specified PacketCommitmentData message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v2.PacketCommitmentData.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.lightclients.solomachine.v2.NextSequenceRecvData + * @memberof ibc.lightclients.solomachine.v2.PacketCommitmentData * @static - * @param {ibc.lightclients.solomachine.v2.INextSequenceRecvData} message NextSequenceRecvData message or plain object to encode + * @param {ibc.lightclients.solomachine.v2.IPacketCommitmentData} message PacketCommitmentData message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NextSequenceRecvData.encodeDelimited = function encodeDelimited(message, writer) { + PacketCommitmentData.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a NextSequenceRecvData message from the specified reader or buffer. + * Decodes a PacketCommitmentData message from the specified reader or buffer. * @function decode - * @memberof ibc.lightclients.solomachine.v2.NextSequenceRecvData + * @memberof ibc.lightclients.solomachine.v2.PacketCommitmentData * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.lightclients.solomachine.v2.NextSequenceRecvData} NextSequenceRecvData + * @returns {ibc.lightclients.solomachine.v2.PacketCommitmentData} PacketCommitmentData * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - NextSequenceRecvData.decode = function decode(reader, length) { + PacketCommitmentData.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.solomachine.v2.NextSequenceRecvData(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.solomachine.v2.PacketCommitmentData(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { @@ -72060,7 +78410,7 @@ export const ibc = $root.ibc = (() => { message.path = reader.bytes(); break; case 2: - message.next_seq_recv = reader.uint64(); + message.commitment = reader.bytes(); break; default: reader.skipType(tag & 7); @@ -72071,80 +78421,76 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a NextSequenceRecvData message from the specified reader or buffer, length delimited. + * Decodes a PacketCommitmentData message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.lightclients.solomachine.v2.NextSequenceRecvData + * @memberof ibc.lightclients.solomachine.v2.PacketCommitmentData * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.lightclients.solomachine.v2.NextSequenceRecvData} NextSequenceRecvData + * @returns {ibc.lightclients.solomachine.v2.PacketCommitmentData} PacketCommitmentData * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - NextSequenceRecvData.decodeDelimited = function decodeDelimited(reader) { + PacketCommitmentData.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a NextSequenceRecvData message. + * Verifies a PacketCommitmentData message. * @function verify - * @memberof ibc.lightclients.solomachine.v2.NextSequenceRecvData + * @memberof ibc.lightclients.solomachine.v2.PacketCommitmentData * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - NextSequenceRecvData.verify = function verify(message) { + PacketCommitmentData.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.path != null && message.hasOwnProperty("path")) if (!(message.path && typeof message.path.length === "number" || $util.isString(message.path))) return "path: buffer expected"; - if (message.next_seq_recv != null && message.hasOwnProperty("next_seq_recv")) - if (!$util.isInteger(message.next_seq_recv) && !(message.next_seq_recv && $util.isInteger(message.next_seq_recv.low) && $util.isInteger(message.next_seq_recv.high))) - return "next_seq_recv: integer|Long expected"; + if (message.commitment != null && message.hasOwnProperty("commitment")) + if (!(message.commitment && typeof message.commitment.length === "number" || $util.isString(message.commitment))) + return "commitment: buffer expected"; return null; }; /** - * Creates a NextSequenceRecvData message from a plain object. Also converts values to their respective internal types. + * Creates a PacketCommitmentData message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.lightclients.solomachine.v2.NextSequenceRecvData + * @memberof ibc.lightclients.solomachine.v2.PacketCommitmentData * @static * @param {Object.} object Plain object - * @returns {ibc.lightclients.solomachine.v2.NextSequenceRecvData} NextSequenceRecvData + * @returns {ibc.lightclients.solomachine.v2.PacketCommitmentData} PacketCommitmentData */ - NextSequenceRecvData.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.lightclients.solomachine.v2.NextSequenceRecvData) + PacketCommitmentData.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.lightclients.solomachine.v2.PacketCommitmentData) return object; - let message = new $root.ibc.lightclients.solomachine.v2.NextSequenceRecvData(); + let message = new $root.ibc.lightclients.solomachine.v2.PacketCommitmentData(); if (object.path != null) if (typeof object.path === "string") $util.base64.decode(object.path, message.path = $util.newBuffer($util.base64.length(object.path)), 0); else if (object.path.length) message.path = object.path; - if (object.next_seq_recv != null) - if ($util.Long) - (message.next_seq_recv = $util.Long.fromValue(object.next_seq_recv)).unsigned = true; - else if (typeof object.next_seq_recv === "string") - message.next_seq_recv = parseInt(object.next_seq_recv, 10); - else if (typeof object.next_seq_recv === "number") - message.next_seq_recv = object.next_seq_recv; - else if (typeof object.next_seq_recv === "object") - message.next_seq_recv = new $util.LongBits(object.next_seq_recv.low >>> 0, object.next_seq_recv.high >>> 0).toNumber(true); + if (object.commitment != null) + if (typeof object.commitment === "string") + $util.base64.decode(object.commitment, message.commitment = $util.newBuffer($util.base64.length(object.commitment)), 0); + else if (object.commitment.length) + message.commitment = object.commitment; return message; }; /** - * Creates a plain object from a NextSequenceRecvData message. Also converts values to other types if specified. + * Creates a plain object from a PacketCommitmentData message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.lightclients.solomachine.v2.NextSequenceRecvData + * @memberof ibc.lightclients.solomachine.v2.PacketCommitmentData * @static - * @param {ibc.lightclients.solomachine.v2.NextSequenceRecvData} message NextSequenceRecvData + * @param {ibc.lightclients.solomachine.v2.PacketCommitmentData} message PacketCommitmentData * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - NextSequenceRecvData.toObject = function toObject(message, options) { + PacketCommitmentData.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; @@ -72156,290 +78502,131 @@ export const ibc = $root.ibc = (() => { if (options.bytes !== Array) object.path = $util.newBuffer(object.path); } - if ($util.Long) { - let long = new $util.Long(0, 0, true); - object.next_seq_recv = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.next_seq_recv = options.longs === String ? "0" : 0; + if (options.bytes === String) + object.commitment = ""; + else { + object.commitment = []; + if (options.bytes !== Array) + object.commitment = $util.newBuffer(object.commitment); + } } if (message.path != null && message.hasOwnProperty("path")) object.path = options.bytes === String ? $util.base64.encode(message.path, 0, message.path.length) : options.bytes === Array ? Array.prototype.slice.call(message.path) : message.path; - if (message.next_seq_recv != null && message.hasOwnProperty("next_seq_recv")) - if (typeof message.next_seq_recv === "number") - object.next_seq_recv = options.longs === String ? String(message.next_seq_recv) : message.next_seq_recv; - else - object.next_seq_recv = options.longs === String ? $util.Long.prototype.toString.call(message.next_seq_recv) : options.longs === Number ? new $util.LongBits(message.next_seq_recv.low >>> 0, message.next_seq_recv.high >>> 0).toNumber(true) : message.next_seq_recv; + if (message.commitment != null && message.hasOwnProperty("commitment")) + object.commitment = options.bytes === String ? $util.base64.encode(message.commitment, 0, message.commitment.length) : options.bytes === Array ? Array.prototype.slice.call(message.commitment) : message.commitment; return object; }; /** - * Converts this NextSequenceRecvData to JSON. + * Converts this PacketCommitmentData to JSON. * @function toJSON - * @memberof ibc.lightclients.solomachine.v2.NextSequenceRecvData + * @memberof ibc.lightclients.solomachine.v2.PacketCommitmentData * @instance * @returns {Object.} JSON object */ - NextSequenceRecvData.prototype.toJSON = function toJSON() { + PacketCommitmentData.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return NextSequenceRecvData; + return PacketCommitmentData; })(); - return v2; - })(); - - return solomachine; - })(); - - lightclients.tendermint = (function() { - - /** - * Namespace tendermint. - * @memberof ibc.lightclients - * @namespace - */ - const tendermint = {}; - - tendermint.v1 = (function() { - - /** - * Namespace v1. - * @memberof ibc.lightclients.tendermint - * @namespace - */ - const v1 = {}; - - v1.ClientState = (function() { - - /** - * Properties of a ClientState. - * @memberof ibc.lightclients.tendermint.v1 - * @interface IClientState - * @property {string|null} [chain_id] ClientState chain_id - * @property {ibc.lightclients.tendermint.v1.IFraction|null} [trust_level] ClientState trust_level - * @property {google.protobuf.IDuration|null} [trusting_period] ClientState trusting_period - * @property {google.protobuf.IDuration|null} [unbonding_period] ClientState unbonding_period - * @property {google.protobuf.IDuration|null} [max_clock_drift] ClientState max_clock_drift - * @property {ibc.core.client.v1.IHeight|null} [frozen_height] ClientState frozen_height - * @property {ibc.core.client.v1.IHeight|null} [latest_height] ClientState latest_height - * @property {Array.|null} [proof_specs] ClientState proof_specs - * @property {Array.|null} [upgrade_path] ClientState upgrade_path - * @property {boolean|null} [allow_update_after_expiry] ClientState allow_update_after_expiry - * @property {boolean|null} [allow_update_after_misbehaviour] ClientState allow_update_after_misbehaviour - */ - - /** - * Constructs a new ClientState. - * @memberof ibc.lightclients.tendermint.v1 - * @classdesc Represents a ClientState. - * @implements IClientState - * @constructor - * @param {ibc.lightclients.tendermint.v1.IClientState=} [properties] Properties to set - */ - function ClientState(properties) { - this.proof_specs = []; - this.upgrade_path = []; - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ClientState chain_id. - * @member {string} chain_id - * @memberof ibc.lightclients.tendermint.v1.ClientState - * @instance - */ - ClientState.prototype.chain_id = ""; - - /** - * ClientState trust_level. - * @member {ibc.lightclients.tendermint.v1.IFraction|null|undefined} trust_level - * @memberof ibc.lightclients.tendermint.v1.ClientState - * @instance - */ - ClientState.prototype.trust_level = null; - - /** - * ClientState trusting_period. - * @member {google.protobuf.IDuration|null|undefined} trusting_period - * @memberof ibc.lightclients.tendermint.v1.ClientState - * @instance - */ - ClientState.prototype.trusting_period = null; - - /** - * ClientState unbonding_period. - * @member {google.protobuf.IDuration|null|undefined} unbonding_period - * @memberof ibc.lightclients.tendermint.v1.ClientState - * @instance - */ - ClientState.prototype.unbonding_period = null; - - /** - * ClientState max_clock_drift. - * @member {google.protobuf.IDuration|null|undefined} max_clock_drift - * @memberof ibc.lightclients.tendermint.v1.ClientState - * @instance - */ - ClientState.prototype.max_clock_drift = null; - - /** - * ClientState frozen_height. - * @member {ibc.core.client.v1.IHeight|null|undefined} frozen_height - * @memberof ibc.lightclients.tendermint.v1.ClientState - * @instance - */ - ClientState.prototype.frozen_height = null; - - /** - * ClientState latest_height. - * @member {ibc.core.client.v1.IHeight|null|undefined} latest_height - * @memberof ibc.lightclients.tendermint.v1.ClientState - * @instance - */ - ClientState.prototype.latest_height = null; + v2.PacketAcknowledgementData = (function() { /** - * ClientState proof_specs. - * @member {Array.} proof_specs - * @memberof ibc.lightclients.tendermint.v1.ClientState - * @instance + * Properties of a PacketAcknowledgementData. + * @memberof ibc.lightclients.solomachine.v2 + * @interface IPacketAcknowledgementData + * @property {Uint8Array|null} [path] PacketAcknowledgementData path + * @property {Uint8Array|null} [acknowledgement] PacketAcknowledgementData acknowledgement */ - ClientState.prototype.proof_specs = $util.emptyArray; /** - * ClientState upgrade_path. - * @member {Array.} upgrade_path - * @memberof ibc.lightclients.tendermint.v1.ClientState - * @instance + * Constructs a new PacketAcknowledgementData. + * @memberof ibc.lightclients.solomachine.v2 + * @classdesc Represents a PacketAcknowledgementData. + * @implements IPacketAcknowledgementData + * @constructor + * @param {ibc.lightclients.solomachine.v2.IPacketAcknowledgementData=} [properties] Properties to set */ - ClientState.prototype.upgrade_path = $util.emptyArray; + function PacketAcknowledgementData(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * ClientState allow_update_after_expiry. - * @member {boolean} allow_update_after_expiry - * @memberof ibc.lightclients.tendermint.v1.ClientState + * PacketAcknowledgementData path. + * @member {Uint8Array} path + * @memberof ibc.lightclients.solomachine.v2.PacketAcknowledgementData * @instance */ - ClientState.prototype.allow_update_after_expiry = false; + PacketAcknowledgementData.prototype.path = $util.newBuffer([]); /** - * ClientState allow_update_after_misbehaviour. - * @member {boolean} allow_update_after_misbehaviour - * @memberof ibc.lightclients.tendermint.v1.ClientState + * PacketAcknowledgementData acknowledgement. + * @member {Uint8Array} acknowledgement + * @memberof ibc.lightclients.solomachine.v2.PacketAcknowledgementData * @instance */ - ClientState.prototype.allow_update_after_misbehaviour = false; + PacketAcknowledgementData.prototype.acknowledgement = $util.newBuffer([]); /** - * Encodes the specified ClientState message. Does not implicitly {@link ibc.lightclients.tendermint.v1.ClientState.verify|verify} messages. + * Encodes the specified PacketAcknowledgementData message. Does not implicitly {@link ibc.lightclients.solomachine.v2.PacketAcknowledgementData.verify|verify} messages. * @function encode - * @memberof ibc.lightclients.tendermint.v1.ClientState + * @memberof ibc.lightclients.solomachine.v2.PacketAcknowledgementData * @static - * @param {ibc.lightclients.tendermint.v1.IClientState} message ClientState message or plain object to encode + * @param {ibc.lightclients.solomachine.v2.IPacketAcknowledgementData} message PacketAcknowledgementData message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ClientState.encode = function encode(message, writer) { + PacketAcknowledgementData.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.chain_id != null && Object.hasOwnProperty.call(message, "chain_id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.chain_id); - if (message.trust_level != null && Object.hasOwnProperty.call(message, "trust_level")) - $root.ibc.lightclients.tendermint.v1.Fraction.encode(message.trust_level, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.trusting_period != null && Object.hasOwnProperty.call(message, "trusting_period")) - $root.google.protobuf.Duration.encode(message.trusting_period, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.unbonding_period != null && Object.hasOwnProperty.call(message, "unbonding_period")) - $root.google.protobuf.Duration.encode(message.unbonding_period, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.max_clock_drift != null && Object.hasOwnProperty.call(message, "max_clock_drift")) - $root.google.protobuf.Duration.encode(message.max_clock_drift, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.frozen_height != null && Object.hasOwnProperty.call(message, "frozen_height")) - $root.ibc.core.client.v1.Height.encode(message.frozen_height, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.latest_height != null && Object.hasOwnProperty.call(message, "latest_height")) - $root.ibc.core.client.v1.Height.encode(message.latest_height, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.proof_specs != null && message.proof_specs.length) - for (let i = 0; i < message.proof_specs.length; ++i) - $root.ics23.ProofSpec.encode(message.proof_specs[i], writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.upgrade_path != null && message.upgrade_path.length) - for (let i = 0; i < message.upgrade_path.length; ++i) - writer.uint32(/* id 9, wireType 2 =*/74).string(message.upgrade_path[i]); - if (message.allow_update_after_expiry != null && Object.hasOwnProperty.call(message, "allow_update_after_expiry")) - writer.uint32(/* id 10, wireType 0 =*/80).bool(message.allow_update_after_expiry); - if (message.allow_update_after_misbehaviour != null && Object.hasOwnProperty.call(message, "allow_update_after_misbehaviour")) - writer.uint32(/* id 11, wireType 0 =*/88).bool(message.allow_update_after_misbehaviour); + if (message.path != null && Object.hasOwnProperty.call(message, "path")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.path); + if (message.acknowledgement != null && Object.hasOwnProperty.call(message, "acknowledgement")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.acknowledgement); return writer; }; /** - * Encodes the specified ClientState message, length delimited. Does not implicitly {@link ibc.lightclients.tendermint.v1.ClientState.verify|verify} messages. + * Encodes the specified PacketAcknowledgementData message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v2.PacketAcknowledgementData.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.lightclients.tendermint.v1.ClientState + * @memberof ibc.lightclients.solomachine.v2.PacketAcknowledgementData * @static - * @param {ibc.lightclients.tendermint.v1.IClientState} message ClientState message or plain object to encode + * @param {ibc.lightclients.solomachine.v2.IPacketAcknowledgementData} message PacketAcknowledgementData message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ClientState.encodeDelimited = function encodeDelimited(message, writer) { + PacketAcknowledgementData.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ClientState message from the specified reader or buffer. + * Decodes a PacketAcknowledgementData message from the specified reader or buffer. * @function decode - * @memberof ibc.lightclients.tendermint.v1.ClientState + * @memberof ibc.lightclients.solomachine.v2.PacketAcknowledgementData * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.lightclients.tendermint.v1.ClientState} ClientState + * @returns {ibc.lightclients.solomachine.v2.PacketAcknowledgementData} PacketAcknowledgementData * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ClientState.decode = function decode(reader, length) { + PacketAcknowledgementData.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.tendermint.v1.ClientState(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.solomachine.v2.PacketAcknowledgementData(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.chain_id = reader.string(); + message.path = reader.bytes(); break; case 2: - message.trust_level = $root.ibc.lightclients.tendermint.v1.Fraction.decode(reader, reader.uint32()); - break; - case 3: - message.trusting_period = $root.google.protobuf.Duration.decode(reader, reader.uint32()); - break; - case 4: - message.unbonding_period = $root.google.protobuf.Duration.decode(reader, reader.uint32()); - break; - case 5: - message.max_clock_drift = $root.google.protobuf.Duration.decode(reader, reader.uint32()); - break; - case 6: - message.frozen_height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); - break; - case 7: - message.latest_height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); - break; - case 8: - if (!(message.proof_specs && message.proof_specs.length)) - message.proof_specs = []; - message.proof_specs.push($root.ics23.ProofSpec.decode(reader, reader.uint32())); - break; - case 9: - if (!(message.upgrade_path && message.upgrade_path.length)) - message.upgrade_path = []; - message.upgrade_path.push(reader.string()); - break; - case 10: - message.allow_update_after_expiry = reader.bool(); - break; - case 11: - message.allow_update_after_misbehaviour = reader.bool(); + message.acknowledgement = reader.bytes(); break; default: reader.skipType(tag & 7); @@ -72450,251 +78637,134 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a ClientState message from the specified reader or buffer, length delimited. + * Decodes a PacketAcknowledgementData message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.lightclients.tendermint.v1.ClientState + * @memberof ibc.lightclients.solomachine.v2.PacketAcknowledgementData * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.lightclients.tendermint.v1.ClientState} ClientState + * @returns {ibc.lightclients.solomachine.v2.PacketAcknowledgementData} PacketAcknowledgementData * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ClientState.decodeDelimited = function decodeDelimited(reader) { + PacketAcknowledgementData.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ClientState message. + * Verifies a PacketAcknowledgementData message. * @function verify - * @memberof ibc.lightclients.tendermint.v1.ClientState + * @memberof ibc.lightclients.solomachine.v2.PacketAcknowledgementData * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ClientState.verify = function verify(message) { + PacketAcknowledgementData.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.chain_id != null && message.hasOwnProperty("chain_id")) - if (!$util.isString(message.chain_id)) - return "chain_id: string expected"; - if (message.trust_level != null && message.hasOwnProperty("trust_level")) { - let error = $root.ibc.lightclients.tendermint.v1.Fraction.verify(message.trust_level); - if (error) - return "trust_level." + error; - } - if (message.trusting_period != null && message.hasOwnProperty("trusting_period")) { - let error = $root.google.protobuf.Duration.verify(message.trusting_period); - if (error) - return "trusting_period." + error; - } - if (message.unbonding_period != null && message.hasOwnProperty("unbonding_period")) { - let error = $root.google.protobuf.Duration.verify(message.unbonding_period); - if (error) - return "unbonding_period." + error; - } - if (message.max_clock_drift != null && message.hasOwnProperty("max_clock_drift")) { - let error = $root.google.protobuf.Duration.verify(message.max_clock_drift); - if (error) - return "max_clock_drift." + error; - } - if (message.frozen_height != null && message.hasOwnProperty("frozen_height")) { - let error = $root.ibc.core.client.v1.Height.verify(message.frozen_height); - if (error) - return "frozen_height." + error; - } - if (message.latest_height != null && message.hasOwnProperty("latest_height")) { - let error = $root.ibc.core.client.v1.Height.verify(message.latest_height); - if (error) - return "latest_height." + error; - } - if (message.proof_specs != null && message.hasOwnProperty("proof_specs")) { - if (!Array.isArray(message.proof_specs)) - return "proof_specs: array expected"; - for (let i = 0; i < message.proof_specs.length; ++i) { - let error = $root.ics23.ProofSpec.verify(message.proof_specs[i]); - if (error) - return "proof_specs." + error; - } - } - if (message.upgrade_path != null && message.hasOwnProperty("upgrade_path")) { - if (!Array.isArray(message.upgrade_path)) - return "upgrade_path: array expected"; - for (let i = 0; i < message.upgrade_path.length; ++i) - if (!$util.isString(message.upgrade_path[i])) - return "upgrade_path: string[] expected"; - } - if (message.allow_update_after_expiry != null && message.hasOwnProperty("allow_update_after_expiry")) - if (typeof message.allow_update_after_expiry !== "boolean") - return "allow_update_after_expiry: boolean expected"; - if (message.allow_update_after_misbehaviour != null && message.hasOwnProperty("allow_update_after_misbehaviour")) - if (typeof message.allow_update_after_misbehaviour !== "boolean") - return "allow_update_after_misbehaviour: boolean expected"; + if (message.path != null && message.hasOwnProperty("path")) + if (!(message.path && typeof message.path.length === "number" || $util.isString(message.path))) + return "path: buffer expected"; + if (message.acknowledgement != null && message.hasOwnProperty("acknowledgement")) + if (!(message.acknowledgement && typeof message.acknowledgement.length === "number" || $util.isString(message.acknowledgement))) + return "acknowledgement: buffer expected"; return null; }; /** - * Creates a ClientState message from a plain object. Also converts values to their respective internal types. + * Creates a PacketAcknowledgementData message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.lightclients.tendermint.v1.ClientState + * @memberof ibc.lightclients.solomachine.v2.PacketAcknowledgementData * @static * @param {Object.} object Plain object - * @returns {ibc.lightclients.tendermint.v1.ClientState} ClientState + * @returns {ibc.lightclients.solomachine.v2.PacketAcknowledgementData} PacketAcknowledgementData */ - ClientState.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.lightclients.tendermint.v1.ClientState) + PacketAcknowledgementData.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.lightclients.solomachine.v2.PacketAcknowledgementData) return object; - let message = new $root.ibc.lightclients.tendermint.v1.ClientState(); - if (object.chain_id != null) - message.chain_id = String(object.chain_id); - if (object.trust_level != null) { - if (typeof object.trust_level !== "object") - throw TypeError(".ibc.lightclients.tendermint.v1.ClientState.trust_level: object expected"); - message.trust_level = $root.ibc.lightclients.tendermint.v1.Fraction.fromObject(object.trust_level); - } - if (object.trusting_period != null) { - if (typeof object.trusting_period !== "object") - throw TypeError(".ibc.lightclients.tendermint.v1.ClientState.trusting_period: object expected"); - message.trusting_period = $root.google.protobuf.Duration.fromObject(object.trusting_period); - } - if (object.unbonding_period != null) { - if (typeof object.unbonding_period !== "object") - throw TypeError(".ibc.lightclients.tendermint.v1.ClientState.unbonding_period: object expected"); - message.unbonding_period = $root.google.protobuf.Duration.fromObject(object.unbonding_period); - } - if (object.max_clock_drift != null) { - if (typeof object.max_clock_drift !== "object") - throw TypeError(".ibc.lightclients.tendermint.v1.ClientState.max_clock_drift: object expected"); - message.max_clock_drift = $root.google.protobuf.Duration.fromObject(object.max_clock_drift); - } - if (object.frozen_height != null) { - if (typeof object.frozen_height !== "object") - throw TypeError(".ibc.lightclients.tendermint.v1.ClientState.frozen_height: object expected"); - message.frozen_height = $root.ibc.core.client.v1.Height.fromObject(object.frozen_height); - } - if (object.latest_height != null) { - if (typeof object.latest_height !== "object") - throw TypeError(".ibc.lightclients.tendermint.v1.ClientState.latest_height: object expected"); - message.latest_height = $root.ibc.core.client.v1.Height.fromObject(object.latest_height); - } - if (object.proof_specs) { - if (!Array.isArray(object.proof_specs)) - throw TypeError(".ibc.lightclients.tendermint.v1.ClientState.proof_specs: array expected"); - message.proof_specs = []; - for (let i = 0; i < object.proof_specs.length; ++i) { - if (typeof object.proof_specs[i] !== "object") - throw TypeError(".ibc.lightclients.tendermint.v1.ClientState.proof_specs: object expected"); - message.proof_specs[i] = $root.ics23.ProofSpec.fromObject(object.proof_specs[i]); - } - } - if (object.upgrade_path) { - if (!Array.isArray(object.upgrade_path)) - throw TypeError(".ibc.lightclients.tendermint.v1.ClientState.upgrade_path: array expected"); - message.upgrade_path = []; - for (let i = 0; i < object.upgrade_path.length; ++i) - message.upgrade_path[i] = String(object.upgrade_path[i]); - } - if (object.allow_update_after_expiry != null) - message.allow_update_after_expiry = Boolean(object.allow_update_after_expiry); - if (object.allow_update_after_misbehaviour != null) - message.allow_update_after_misbehaviour = Boolean(object.allow_update_after_misbehaviour); + let message = new $root.ibc.lightclients.solomachine.v2.PacketAcknowledgementData(); + if (object.path != null) + if (typeof object.path === "string") + $util.base64.decode(object.path, message.path = $util.newBuffer($util.base64.length(object.path)), 0); + else if (object.path.length) + message.path = object.path; + if (object.acknowledgement != null) + if (typeof object.acknowledgement === "string") + $util.base64.decode(object.acknowledgement, message.acknowledgement = $util.newBuffer($util.base64.length(object.acknowledgement)), 0); + else if (object.acknowledgement.length) + message.acknowledgement = object.acknowledgement; return message; }; /** - * Creates a plain object from a ClientState message. Also converts values to other types if specified. + * Creates a plain object from a PacketAcknowledgementData message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.lightclients.tendermint.v1.ClientState + * @memberof ibc.lightclients.solomachine.v2.PacketAcknowledgementData * @static - * @param {ibc.lightclients.tendermint.v1.ClientState} message ClientState + * @param {ibc.lightclients.solomachine.v2.PacketAcknowledgementData} message PacketAcknowledgementData * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ClientState.toObject = function toObject(message, options) { + PacketAcknowledgementData.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) { - object.proof_specs = []; - object.upgrade_path = []; - } if (options.defaults) { - object.chain_id = ""; - object.trust_level = null; - object.trusting_period = null; - object.unbonding_period = null; - object.max_clock_drift = null; - object.frozen_height = null; - object.latest_height = null; - object.allow_update_after_expiry = false; - object.allow_update_after_misbehaviour = false; - } - if (message.chain_id != null && message.hasOwnProperty("chain_id")) - object.chain_id = message.chain_id; - if (message.trust_level != null && message.hasOwnProperty("trust_level")) - object.trust_level = $root.ibc.lightclients.tendermint.v1.Fraction.toObject(message.trust_level, options); - if (message.trusting_period != null && message.hasOwnProperty("trusting_period")) - object.trusting_period = $root.google.protobuf.Duration.toObject(message.trusting_period, options); - if (message.unbonding_period != null && message.hasOwnProperty("unbonding_period")) - object.unbonding_period = $root.google.protobuf.Duration.toObject(message.unbonding_period, options); - if (message.max_clock_drift != null && message.hasOwnProperty("max_clock_drift")) - object.max_clock_drift = $root.google.protobuf.Duration.toObject(message.max_clock_drift, options); - if (message.frozen_height != null && message.hasOwnProperty("frozen_height")) - object.frozen_height = $root.ibc.core.client.v1.Height.toObject(message.frozen_height, options); - if (message.latest_height != null && message.hasOwnProperty("latest_height")) - object.latest_height = $root.ibc.core.client.v1.Height.toObject(message.latest_height, options); - if (message.proof_specs && message.proof_specs.length) { - object.proof_specs = []; - for (let j = 0; j < message.proof_specs.length; ++j) - object.proof_specs[j] = $root.ics23.ProofSpec.toObject(message.proof_specs[j], options); - } - if (message.upgrade_path && message.upgrade_path.length) { - object.upgrade_path = []; - for (let j = 0; j < message.upgrade_path.length; ++j) - object.upgrade_path[j] = message.upgrade_path[j]; + if (options.bytes === String) + object.path = ""; + else { + object.path = []; + if (options.bytes !== Array) + object.path = $util.newBuffer(object.path); + } + if (options.bytes === String) + object.acknowledgement = ""; + else { + object.acknowledgement = []; + if (options.bytes !== Array) + object.acknowledgement = $util.newBuffer(object.acknowledgement); + } } - if (message.allow_update_after_expiry != null && message.hasOwnProperty("allow_update_after_expiry")) - object.allow_update_after_expiry = message.allow_update_after_expiry; - if (message.allow_update_after_misbehaviour != null && message.hasOwnProperty("allow_update_after_misbehaviour")) - object.allow_update_after_misbehaviour = message.allow_update_after_misbehaviour; + if (message.path != null && message.hasOwnProperty("path")) + object.path = options.bytes === String ? $util.base64.encode(message.path, 0, message.path.length) : options.bytes === Array ? Array.prototype.slice.call(message.path) : message.path; + if (message.acknowledgement != null && message.hasOwnProperty("acknowledgement")) + object.acknowledgement = options.bytes === String ? $util.base64.encode(message.acknowledgement, 0, message.acknowledgement.length) : options.bytes === Array ? Array.prototype.slice.call(message.acknowledgement) : message.acknowledgement; return object; }; /** - * Converts this ClientState to JSON. + * Converts this PacketAcknowledgementData to JSON. * @function toJSON - * @memberof ibc.lightclients.tendermint.v1.ClientState + * @memberof ibc.lightclients.solomachine.v2.PacketAcknowledgementData * @instance * @returns {Object.} JSON object */ - ClientState.prototype.toJSON = function toJSON() { + PacketAcknowledgementData.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ClientState; + return PacketAcknowledgementData; })(); - v1.ConsensusState = (function() { + v2.PacketReceiptAbsenceData = (function() { /** - * Properties of a ConsensusState. - * @memberof ibc.lightclients.tendermint.v1 - * @interface IConsensusState - * @property {google.protobuf.ITimestamp|null} [timestamp] ConsensusState timestamp - * @property {ibc.core.commitment.v1.IMerkleRoot|null} [root] ConsensusState root - * @property {Uint8Array|null} [next_validators_hash] ConsensusState next_validators_hash + * Properties of a PacketReceiptAbsenceData. + * @memberof ibc.lightclients.solomachine.v2 + * @interface IPacketReceiptAbsenceData + * @property {Uint8Array|null} [path] PacketReceiptAbsenceData path */ /** - * Constructs a new ConsensusState. - * @memberof ibc.lightclients.tendermint.v1 - * @classdesc Represents a ConsensusState. - * @implements IConsensusState + * Constructs a new PacketReceiptAbsenceData. + * @memberof ibc.lightclients.solomachine.v2 + * @classdesc Represents a PacketReceiptAbsenceData. + * @implements IPacketReceiptAbsenceData * @constructor - * @param {ibc.lightclients.tendermint.v1.IConsensusState=} [properties] Properties to set + * @param {ibc.lightclients.solomachine.v2.IPacketReceiptAbsenceData=} [properties] Properties to set */ - function ConsensusState(properties) { + function PacketReceiptAbsenceData(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -72702,89 +78772,63 @@ export const ibc = $root.ibc = (() => { } /** - * ConsensusState timestamp. - * @member {google.protobuf.ITimestamp|null|undefined} timestamp - * @memberof ibc.lightclients.tendermint.v1.ConsensusState - * @instance - */ - ConsensusState.prototype.timestamp = null; - - /** - * ConsensusState root. - * @member {ibc.core.commitment.v1.IMerkleRoot|null|undefined} root - * @memberof ibc.lightclients.tendermint.v1.ConsensusState - * @instance - */ - ConsensusState.prototype.root = null; - - /** - * ConsensusState next_validators_hash. - * @member {Uint8Array} next_validators_hash - * @memberof ibc.lightclients.tendermint.v1.ConsensusState + * PacketReceiptAbsenceData path. + * @member {Uint8Array} path + * @memberof ibc.lightclients.solomachine.v2.PacketReceiptAbsenceData * @instance */ - ConsensusState.prototype.next_validators_hash = $util.newBuffer([]); + PacketReceiptAbsenceData.prototype.path = $util.newBuffer([]); /** - * Encodes the specified ConsensusState message. Does not implicitly {@link ibc.lightclients.tendermint.v1.ConsensusState.verify|verify} messages. + * Encodes the specified PacketReceiptAbsenceData message. Does not implicitly {@link ibc.lightclients.solomachine.v2.PacketReceiptAbsenceData.verify|verify} messages. * @function encode - * @memberof ibc.lightclients.tendermint.v1.ConsensusState + * @memberof ibc.lightclients.solomachine.v2.PacketReceiptAbsenceData * @static - * @param {ibc.lightclients.tendermint.v1.IConsensusState} message ConsensusState message or plain object to encode + * @param {ibc.lightclients.solomachine.v2.IPacketReceiptAbsenceData} message PacketReceiptAbsenceData message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ConsensusState.encode = function encode(message, writer) { + PacketReceiptAbsenceData.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.timestamp != null && Object.hasOwnProperty.call(message, "timestamp")) - $root.google.protobuf.Timestamp.encode(message.timestamp, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.root != null && Object.hasOwnProperty.call(message, "root")) - $root.ibc.core.commitment.v1.MerkleRoot.encode(message.root, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.next_validators_hash != null && Object.hasOwnProperty.call(message, "next_validators_hash")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.next_validators_hash); + if (message.path != null && Object.hasOwnProperty.call(message, "path")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.path); return writer; }; /** - * Encodes the specified ConsensusState message, length delimited. Does not implicitly {@link ibc.lightclients.tendermint.v1.ConsensusState.verify|verify} messages. + * Encodes the specified PacketReceiptAbsenceData message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v2.PacketReceiptAbsenceData.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.lightclients.tendermint.v1.ConsensusState + * @memberof ibc.lightclients.solomachine.v2.PacketReceiptAbsenceData * @static - * @param {ibc.lightclients.tendermint.v1.IConsensusState} message ConsensusState message or plain object to encode + * @param {ibc.lightclients.solomachine.v2.IPacketReceiptAbsenceData} message PacketReceiptAbsenceData message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ConsensusState.encodeDelimited = function encodeDelimited(message, writer) { + PacketReceiptAbsenceData.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ConsensusState message from the specified reader or buffer. + * Decodes a PacketReceiptAbsenceData message from the specified reader or buffer. * @function decode - * @memberof ibc.lightclients.tendermint.v1.ConsensusState + * @memberof ibc.lightclients.solomachine.v2.PacketReceiptAbsenceData * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.lightclients.tendermint.v1.ConsensusState} ConsensusState + * @returns {ibc.lightclients.solomachine.v2.PacketReceiptAbsenceData} PacketReceiptAbsenceData * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ConsensusState.decode = function decode(reader, length) { + PacketReceiptAbsenceData.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.tendermint.v1.ConsensusState(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.solomachine.v2.PacketReceiptAbsenceData(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.timestamp = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 2: - message.root = $root.ibc.core.commitment.v1.MerkleRoot.decode(reader, reader.uint32()); - break; - case 3: - message.next_validators_hash = reader.bytes(); + message.path = reader.bytes(); break; default: reader.skipType(tag & 7); @@ -72795,145 +78839,117 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a ConsensusState message from the specified reader or buffer, length delimited. + * Decodes a PacketReceiptAbsenceData message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.lightclients.tendermint.v1.ConsensusState + * @memberof ibc.lightclients.solomachine.v2.PacketReceiptAbsenceData * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.lightclients.tendermint.v1.ConsensusState} ConsensusState + * @returns {ibc.lightclients.solomachine.v2.PacketReceiptAbsenceData} PacketReceiptAbsenceData * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ConsensusState.decodeDelimited = function decodeDelimited(reader) { + PacketReceiptAbsenceData.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ConsensusState message. + * Verifies a PacketReceiptAbsenceData message. * @function verify - * @memberof ibc.lightclients.tendermint.v1.ConsensusState + * @memberof ibc.lightclients.solomachine.v2.PacketReceiptAbsenceData * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ConsensusState.verify = function verify(message) { + PacketReceiptAbsenceData.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.timestamp != null && message.hasOwnProperty("timestamp")) { - let error = $root.google.protobuf.Timestamp.verify(message.timestamp); - if (error) - return "timestamp." + error; - } - if (message.root != null && message.hasOwnProperty("root")) { - let error = $root.ibc.core.commitment.v1.MerkleRoot.verify(message.root); - if (error) - return "root." + error; - } - if (message.next_validators_hash != null && message.hasOwnProperty("next_validators_hash")) - if (!(message.next_validators_hash && typeof message.next_validators_hash.length === "number" || $util.isString(message.next_validators_hash))) - return "next_validators_hash: buffer expected"; + if (message.path != null && message.hasOwnProperty("path")) + if (!(message.path && typeof message.path.length === "number" || $util.isString(message.path))) + return "path: buffer expected"; return null; }; /** - * Creates a ConsensusState message from a plain object. Also converts values to their respective internal types. + * Creates a PacketReceiptAbsenceData message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.lightclients.tendermint.v1.ConsensusState + * @memberof ibc.lightclients.solomachine.v2.PacketReceiptAbsenceData * @static * @param {Object.} object Plain object - * @returns {ibc.lightclients.tendermint.v1.ConsensusState} ConsensusState + * @returns {ibc.lightclients.solomachine.v2.PacketReceiptAbsenceData} PacketReceiptAbsenceData */ - ConsensusState.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.lightclients.tendermint.v1.ConsensusState) + PacketReceiptAbsenceData.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.lightclients.solomachine.v2.PacketReceiptAbsenceData) return object; - let message = new $root.ibc.lightclients.tendermint.v1.ConsensusState(); - if (object.timestamp != null) { - if (typeof object.timestamp !== "object") - throw TypeError(".ibc.lightclients.tendermint.v1.ConsensusState.timestamp: object expected"); - message.timestamp = $root.google.protobuf.Timestamp.fromObject(object.timestamp); - } - if (object.root != null) { - if (typeof object.root !== "object") - throw TypeError(".ibc.lightclients.tendermint.v1.ConsensusState.root: object expected"); - message.root = $root.ibc.core.commitment.v1.MerkleRoot.fromObject(object.root); - } - if (object.next_validators_hash != null) - if (typeof object.next_validators_hash === "string") - $util.base64.decode(object.next_validators_hash, message.next_validators_hash = $util.newBuffer($util.base64.length(object.next_validators_hash)), 0); - else if (object.next_validators_hash.length) - message.next_validators_hash = object.next_validators_hash; + let message = new $root.ibc.lightclients.solomachine.v2.PacketReceiptAbsenceData(); + if (object.path != null) + if (typeof object.path === "string") + $util.base64.decode(object.path, message.path = $util.newBuffer($util.base64.length(object.path)), 0); + else if (object.path.length) + message.path = object.path; return message; }; /** - * Creates a plain object from a ConsensusState message. Also converts values to other types if specified. + * Creates a plain object from a PacketReceiptAbsenceData message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.lightclients.tendermint.v1.ConsensusState + * @memberof ibc.lightclients.solomachine.v2.PacketReceiptAbsenceData * @static - * @param {ibc.lightclients.tendermint.v1.ConsensusState} message ConsensusState + * @param {ibc.lightclients.solomachine.v2.PacketReceiptAbsenceData} message PacketReceiptAbsenceData * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ConsensusState.toObject = function toObject(message, options) { + PacketReceiptAbsenceData.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; - if (options.defaults) { - object.timestamp = null; - object.root = null; + if (options.defaults) if (options.bytes === String) - object.next_validators_hash = ""; + object.path = ""; else { - object.next_validators_hash = []; + object.path = []; if (options.bytes !== Array) - object.next_validators_hash = $util.newBuffer(object.next_validators_hash); + object.path = $util.newBuffer(object.path); } - } - if (message.timestamp != null && message.hasOwnProperty("timestamp")) - object.timestamp = $root.google.protobuf.Timestamp.toObject(message.timestamp, options); - if (message.root != null && message.hasOwnProperty("root")) - object.root = $root.ibc.core.commitment.v1.MerkleRoot.toObject(message.root, options); - if (message.next_validators_hash != null && message.hasOwnProperty("next_validators_hash")) - object.next_validators_hash = options.bytes === String ? $util.base64.encode(message.next_validators_hash, 0, message.next_validators_hash.length) : options.bytes === Array ? Array.prototype.slice.call(message.next_validators_hash) : message.next_validators_hash; + if (message.path != null && message.hasOwnProperty("path")) + object.path = options.bytes === String ? $util.base64.encode(message.path, 0, message.path.length) : options.bytes === Array ? Array.prototype.slice.call(message.path) : message.path; return object; }; /** - * Converts this ConsensusState to JSON. + * Converts this PacketReceiptAbsenceData to JSON. * @function toJSON - * @memberof ibc.lightclients.tendermint.v1.ConsensusState + * @memberof ibc.lightclients.solomachine.v2.PacketReceiptAbsenceData * @instance * @returns {Object.} JSON object */ - ConsensusState.prototype.toJSON = function toJSON() { + PacketReceiptAbsenceData.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ConsensusState; + return PacketReceiptAbsenceData; })(); - v1.Misbehaviour = (function() { + v2.NextSequenceRecvData = (function() { /** - * Properties of a Misbehaviour. - * @memberof ibc.lightclients.tendermint.v1 - * @interface IMisbehaviour - * @property {string|null} [client_id] Misbehaviour client_id - * @property {ibc.lightclients.tendermint.v1.IHeader|null} [header_1] Misbehaviour header_1 - * @property {ibc.lightclients.tendermint.v1.IHeader|null} [header_2] Misbehaviour header_2 + * Properties of a NextSequenceRecvData. + * @memberof ibc.lightclients.solomachine.v2 + * @interface INextSequenceRecvData + * @property {Uint8Array|null} [path] NextSequenceRecvData path + * @property {Long|null} [next_seq_recv] NextSequenceRecvData next_seq_recv */ /** - * Constructs a new Misbehaviour. - * @memberof ibc.lightclients.tendermint.v1 - * @classdesc Represents a Misbehaviour. - * @implements IMisbehaviour + * Constructs a new NextSequenceRecvData. + * @memberof ibc.lightclients.solomachine.v2 + * @classdesc Represents a NextSequenceRecvData. + * @implements INextSequenceRecvData * @constructor - * @param {ibc.lightclients.tendermint.v1.IMisbehaviour=} [properties] Properties to set + * @param {ibc.lightclients.solomachine.v2.INextSequenceRecvData=} [properties] Properties to set */ - function Misbehaviour(properties) { + function NextSequenceRecvData(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -72941,89 +78957,76 @@ export const ibc = $root.ibc = (() => { } /** - * Misbehaviour client_id. - * @member {string} client_id - * @memberof ibc.lightclients.tendermint.v1.Misbehaviour - * @instance - */ - Misbehaviour.prototype.client_id = ""; - - /** - * Misbehaviour header_1. - * @member {ibc.lightclients.tendermint.v1.IHeader|null|undefined} header_1 - * @memberof ibc.lightclients.tendermint.v1.Misbehaviour + * NextSequenceRecvData path. + * @member {Uint8Array} path + * @memberof ibc.lightclients.solomachine.v2.NextSequenceRecvData * @instance */ - Misbehaviour.prototype.header_1 = null; + NextSequenceRecvData.prototype.path = $util.newBuffer([]); /** - * Misbehaviour header_2. - * @member {ibc.lightclients.tendermint.v1.IHeader|null|undefined} header_2 - * @memberof ibc.lightclients.tendermint.v1.Misbehaviour + * NextSequenceRecvData next_seq_recv. + * @member {Long} next_seq_recv + * @memberof ibc.lightclients.solomachine.v2.NextSequenceRecvData * @instance */ - Misbehaviour.prototype.header_2 = null; + NextSequenceRecvData.prototype.next_seq_recv = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** - * Encodes the specified Misbehaviour message. Does not implicitly {@link ibc.lightclients.tendermint.v1.Misbehaviour.verify|verify} messages. + * Encodes the specified NextSequenceRecvData message. Does not implicitly {@link ibc.lightclients.solomachine.v2.NextSequenceRecvData.verify|verify} messages. * @function encode - * @memberof ibc.lightclients.tendermint.v1.Misbehaviour + * @memberof ibc.lightclients.solomachine.v2.NextSequenceRecvData * @static - * @param {ibc.lightclients.tendermint.v1.IMisbehaviour} message Misbehaviour message or plain object to encode + * @param {ibc.lightclients.solomachine.v2.INextSequenceRecvData} message NextSequenceRecvData message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Misbehaviour.encode = function encode(message, writer) { + NextSequenceRecvData.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.client_id != null && Object.hasOwnProperty.call(message, "client_id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.client_id); - if (message.header_1 != null && Object.hasOwnProperty.call(message, "header_1")) - $root.ibc.lightclients.tendermint.v1.Header.encode(message.header_1, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.header_2 != null && Object.hasOwnProperty.call(message, "header_2")) - $root.ibc.lightclients.tendermint.v1.Header.encode(message.header_2, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.path != null && Object.hasOwnProperty.call(message, "path")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.path); + if (message.next_seq_recv != null && Object.hasOwnProperty.call(message, "next_seq_recv")) + writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.next_seq_recv); return writer; }; /** - * Encodes the specified Misbehaviour message, length delimited. Does not implicitly {@link ibc.lightclients.tendermint.v1.Misbehaviour.verify|verify} messages. + * Encodes the specified NextSequenceRecvData message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v2.NextSequenceRecvData.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.lightclients.tendermint.v1.Misbehaviour + * @memberof ibc.lightclients.solomachine.v2.NextSequenceRecvData * @static - * @param {ibc.lightclients.tendermint.v1.IMisbehaviour} message Misbehaviour message or plain object to encode + * @param {ibc.lightclients.solomachine.v2.INextSequenceRecvData} message NextSequenceRecvData message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Misbehaviour.encodeDelimited = function encodeDelimited(message, writer) { + NextSequenceRecvData.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Misbehaviour message from the specified reader or buffer. + * Decodes a NextSequenceRecvData message from the specified reader or buffer. * @function decode - * @memberof ibc.lightclients.tendermint.v1.Misbehaviour + * @memberof ibc.lightclients.solomachine.v2.NextSequenceRecvData * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.lightclients.tendermint.v1.Misbehaviour} Misbehaviour + * @returns {ibc.lightclients.solomachine.v2.NextSequenceRecvData} NextSequenceRecvData * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Misbehaviour.decode = function decode(reader, length) { + NextSequenceRecvData.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.tendermint.v1.Misbehaviour(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.solomachine.v2.NextSequenceRecvData(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.client_id = reader.string(); + message.path = reader.bytes(); break; case 2: - message.header_1 = $root.ibc.lightclients.tendermint.v1.Header.decode(reader, reader.uint32()); - break; - case 3: - message.header_2 = $root.ibc.lightclients.tendermint.v1.Header.decode(reader, reader.uint32()); + message.next_seq_recv = reader.uint64(); break; default: reader.skipType(tag & 7); @@ -73034,137 +79037,153 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a Misbehaviour message from the specified reader or buffer, length delimited. + * Decodes a NextSequenceRecvData message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.lightclients.tendermint.v1.Misbehaviour + * @memberof ibc.lightclients.solomachine.v2.NextSequenceRecvData * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.lightclients.tendermint.v1.Misbehaviour} Misbehaviour + * @returns {ibc.lightclients.solomachine.v2.NextSequenceRecvData} NextSequenceRecvData * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Misbehaviour.decodeDelimited = function decodeDelimited(reader) { + NextSequenceRecvData.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Misbehaviour message. + * Verifies a NextSequenceRecvData message. * @function verify - * @memberof ibc.lightclients.tendermint.v1.Misbehaviour + * @memberof ibc.lightclients.solomachine.v2.NextSequenceRecvData * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Misbehaviour.verify = function verify(message) { + NextSequenceRecvData.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.client_id != null && message.hasOwnProperty("client_id")) - if (!$util.isString(message.client_id)) - return "client_id: string expected"; - if (message.header_1 != null && message.hasOwnProperty("header_1")) { - let error = $root.ibc.lightclients.tendermint.v1.Header.verify(message.header_1); - if (error) - return "header_1." + error; - } - if (message.header_2 != null && message.hasOwnProperty("header_2")) { - let error = $root.ibc.lightclients.tendermint.v1.Header.verify(message.header_2); - if (error) - return "header_2." + error; - } + if (message.path != null && message.hasOwnProperty("path")) + if (!(message.path && typeof message.path.length === "number" || $util.isString(message.path))) + return "path: buffer expected"; + if (message.next_seq_recv != null && message.hasOwnProperty("next_seq_recv")) + if (!$util.isInteger(message.next_seq_recv) && !(message.next_seq_recv && $util.isInteger(message.next_seq_recv.low) && $util.isInteger(message.next_seq_recv.high))) + return "next_seq_recv: integer|Long expected"; return null; }; /** - * Creates a Misbehaviour message from a plain object. Also converts values to their respective internal types. + * Creates a NextSequenceRecvData message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.lightclients.tendermint.v1.Misbehaviour + * @memberof ibc.lightclients.solomachine.v2.NextSequenceRecvData * @static * @param {Object.} object Plain object - * @returns {ibc.lightclients.tendermint.v1.Misbehaviour} Misbehaviour + * @returns {ibc.lightclients.solomachine.v2.NextSequenceRecvData} NextSequenceRecvData */ - Misbehaviour.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.lightclients.tendermint.v1.Misbehaviour) + NextSequenceRecvData.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.lightclients.solomachine.v2.NextSequenceRecvData) return object; - let message = new $root.ibc.lightclients.tendermint.v1.Misbehaviour(); - if (object.client_id != null) - message.client_id = String(object.client_id); - if (object.header_1 != null) { - if (typeof object.header_1 !== "object") - throw TypeError(".ibc.lightclients.tendermint.v1.Misbehaviour.header_1: object expected"); - message.header_1 = $root.ibc.lightclients.tendermint.v1.Header.fromObject(object.header_1); - } - if (object.header_2 != null) { - if (typeof object.header_2 !== "object") - throw TypeError(".ibc.lightclients.tendermint.v1.Misbehaviour.header_2: object expected"); - message.header_2 = $root.ibc.lightclients.tendermint.v1.Header.fromObject(object.header_2); - } + let message = new $root.ibc.lightclients.solomachine.v2.NextSequenceRecvData(); + if (object.path != null) + if (typeof object.path === "string") + $util.base64.decode(object.path, message.path = $util.newBuffer($util.base64.length(object.path)), 0); + else if (object.path.length) + message.path = object.path; + if (object.next_seq_recv != null) + if ($util.Long) + (message.next_seq_recv = $util.Long.fromValue(object.next_seq_recv)).unsigned = true; + else if (typeof object.next_seq_recv === "string") + message.next_seq_recv = parseInt(object.next_seq_recv, 10); + else if (typeof object.next_seq_recv === "number") + message.next_seq_recv = object.next_seq_recv; + else if (typeof object.next_seq_recv === "object") + message.next_seq_recv = new $util.LongBits(object.next_seq_recv.low >>> 0, object.next_seq_recv.high >>> 0).toNumber(true); return message; }; /** - * Creates a plain object from a Misbehaviour message. Also converts values to other types if specified. + * Creates a plain object from a NextSequenceRecvData message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.lightclients.tendermint.v1.Misbehaviour + * @memberof ibc.lightclients.solomachine.v2.NextSequenceRecvData * @static - * @param {ibc.lightclients.tendermint.v1.Misbehaviour} message Misbehaviour + * @param {ibc.lightclients.solomachine.v2.NextSequenceRecvData} message NextSequenceRecvData * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Misbehaviour.toObject = function toObject(message, options) { + NextSequenceRecvData.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - object.client_id = ""; - object.header_1 = null; - object.header_2 = null; + if (options.bytes === String) + object.path = ""; + else { + object.path = []; + if (options.bytes !== Array) + object.path = $util.newBuffer(object.path); + } + if ($util.Long) { + let long = new $util.Long(0, 0, true); + object.next_seq_recv = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.next_seq_recv = options.longs === String ? "0" : 0; } - if (message.client_id != null && message.hasOwnProperty("client_id")) - object.client_id = message.client_id; - if (message.header_1 != null && message.hasOwnProperty("header_1")) - object.header_1 = $root.ibc.lightclients.tendermint.v1.Header.toObject(message.header_1, options); - if (message.header_2 != null && message.hasOwnProperty("header_2")) - object.header_2 = $root.ibc.lightclients.tendermint.v1.Header.toObject(message.header_2, options); + if (message.path != null && message.hasOwnProperty("path")) + object.path = options.bytes === String ? $util.base64.encode(message.path, 0, message.path.length) : options.bytes === Array ? Array.prototype.slice.call(message.path) : message.path; + if (message.next_seq_recv != null && message.hasOwnProperty("next_seq_recv")) + if (typeof message.next_seq_recv === "number") + object.next_seq_recv = options.longs === String ? String(message.next_seq_recv) : message.next_seq_recv; + else + object.next_seq_recv = options.longs === String ? $util.Long.prototype.toString.call(message.next_seq_recv) : options.longs === Number ? new $util.LongBits(message.next_seq_recv.low >>> 0, message.next_seq_recv.high >>> 0).toNumber(true) : message.next_seq_recv; return object; }; /** - * Converts this Misbehaviour to JSON. + * Converts this NextSequenceRecvData to JSON. * @function toJSON - * @memberof ibc.lightclients.tendermint.v1.Misbehaviour + * @memberof ibc.lightclients.solomachine.v2.NextSequenceRecvData * @instance * @returns {Object.} JSON object */ - Misbehaviour.prototype.toJSON = function toJSON() { + NextSequenceRecvData.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Misbehaviour; + return NextSequenceRecvData; })(); - v1.Header = (function() { + return v2; + })(); + + solomachine.v3 = (function() { + + /** + * Namespace v3. + * @memberof ibc.lightclients.solomachine + * @namespace + */ + const v3 = {}; + + v3.ClientState = (function() { /** - * Properties of a Header. - * @memberof ibc.lightclients.tendermint.v1 - * @interface IHeader - * @property {tendermint.types.ISignedHeader|null} [signed_header] Header signed_header - * @property {tendermint.types.IValidatorSet|null} [validator_set] Header validator_set - * @property {ibc.core.client.v1.IHeight|null} [trusted_height] Header trusted_height - * @property {tendermint.types.IValidatorSet|null} [trusted_validators] Header trusted_validators + * Properties of a ClientState. + * @memberof ibc.lightclients.solomachine.v3 + * @interface IClientState + * @property {Long|null} [sequence] ClientState sequence + * @property {boolean|null} [is_frozen] ClientState is_frozen + * @property {ibc.lightclients.solomachine.v3.IConsensusState|null} [consensus_state] ClientState consensus_state */ /** - * Constructs a new Header. - * @memberof ibc.lightclients.tendermint.v1 - * @classdesc Represents a Header. - * @implements IHeader + * Constructs a new ClientState. + * @memberof ibc.lightclients.solomachine.v3 + * @classdesc Represents a ClientState. + * @implements IClientState * @constructor - * @param {ibc.lightclients.tendermint.v1.IHeader=} [properties] Properties to set + * @param {ibc.lightclients.solomachine.v3.IClientState=} [properties] Properties to set */ - function Header(properties) { + function ClientState(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -73172,102 +79191,89 @@ export const ibc = $root.ibc = (() => { } /** - * Header signed_header. - * @member {tendermint.types.ISignedHeader|null|undefined} signed_header - * @memberof ibc.lightclients.tendermint.v1.Header - * @instance - */ - Header.prototype.signed_header = null; - - /** - * Header validator_set. - * @member {tendermint.types.IValidatorSet|null|undefined} validator_set - * @memberof ibc.lightclients.tendermint.v1.Header + * ClientState sequence. + * @member {Long} sequence + * @memberof ibc.lightclients.solomachine.v3.ClientState * @instance */ - Header.prototype.validator_set = null; + ClientState.prototype.sequence = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** - * Header trusted_height. - * @member {ibc.core.client.v1.IHeight|null|undefined} trusted_height - * @memberof ibc.lightclients.tendermint.v1.Header + * ClientState is_frozen. + * @member {boolean} is_frozen + * @memberof ibc.lightclients.solomachine.v3.ClientState * @instance */ - Header.prototype.trusted_height = null; + ClientState.prototype.is_frozen = false; /** - * Header trusted_validators. - * @member {tendermint.types.IValidatorSet|null|undefined} trusted_validators - * @memberof ibc.lightclients.tendermint.v1.Header + * ClientState consensus_state. + * @member {ibc.lightclients.solomachine.v3.IConsensusState|null|undefined} consensus_state + * @memberof ibc.lightclients.solomachine.v3.ClientState * @instance */ - Header.prototype.trusted_validators = null; + ClientState.prototype.consensus_state = null; /** - * Encodes the specified Header message. Does not implicitly {@link ibc.lightclients.tendermint.v1.Header.verify|verify} messages. + * Encodes the specified ClientState message. Does not implicitly {@link ibc.lightclients.solomachine.v3.ClientState.verify|verify} messages. * @function encode - * @memberof ibc.lightclients.tendermint.v1.Header + * @memberof ibc.lightclients.solomachine.v3.ClientState * @static - * @param {ibc.lightclients.tendermint.v1.IHeader} message Header message or plain object to encode + * @param {ibc.lightclients.solomachine.v3.IClientState} message ClientState message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Header.encode = function encode(message, writer) { + ClientState.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.signed_header != null && Object.hasOwnProperty.call(message, "signed_header")) - $root.tendermint.types.SignedHeader.encode(message.signed_header, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.validator_set != null && Object.hasOwnProperty.call(message, "validator_set")) - $root.tendermint.types.ValidatorSet.encode(message.validator_set, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.trusted_height != null && Object.hasOwnProperty.call(message, "trusted_height")) - $root.ibc.core.client.v1.Height.encode(message.trusted_height, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.trusted_validators != null && Object.hasOwnProperty.call(message, "trusted_validators")) - $root.tendermint.types.ValidatorSet.encode(message.trusted_validators, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.sequence != null && Object.hasOwnProperty.call(message, "sequence")) + writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.sequence); + if (message.is_frozen != null && Object.hasOwnProperty.call(message, "is_frozen")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.is_frozen); + if (message.consensus_state != null && Object.hasOwnProperty.call(message, "consensus_state")) + $root.ibc.lightclients.solomachine.v3.ConsensusState.encode(message.consensus_state, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified Header message, length delimited. Does not implicitly {@link ibc.lightclients.tendermint.v1.Header.verify|verify} messages. + * Encodes the specified ClientState message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v3.ClientState.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.lightclients.tendermint.v1.Header + * @memberof ibc.lightclients.solomachine.v3.ClientState * @static - * @param {ibc.lightclients.tendermint.v1.IHeader} message Header message or plain object to encode + * @param {ibc.lightclients.solomachine.v3.IClientState} message ClientState message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Header.encodeDelimited = function encodeDelimited(message, writer) { + ClientState.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Header message from the specified reader or buffer. + * Decodes a ClientState message from the specified reader or buffer. * @function decode - * @memberof ibc.lightclients.tendermint.v1.Header + * @memberof ibc.lightclients.solomachine.v3.ClientState * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.lightclients.tendermint.v1.Header} Header + * @returns {ibc.lightclients.solomachine.v3.ClientState} ClientState * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Header.decode = function decode(reader, length) { + ClientState.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.tendermint.v1.Header(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.solomachine.v3.ClientState(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.signed_header = $root.tendermint.types.SignedHeader.decode(reader, reader.uint32()); + message.sequence = reader.uint64(); break; case 2: - message.validator_set = $root.tendermint.types.ValidatorSet.decode(reader, reader.uint32()); + message.is_frozen = reader.bool(); break; case 3: - message.trusted_height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); - break; - case 4: - message.trusted_validators = $root.tendermint.types.ValidatorSet.decode(reader, reader.uint32()); + message.consensus_state = $root.ibc.lightclients.solomachine.v3.ConsensusState.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -73278,153 +79284,145 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a Header message from the specified reader or buffer, length delimited. + * Decodes a ClientState message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.lightclients.tendermint.v1.Header + * @memberof ibc.lightclients.solomachine.v3.ClientState * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.lightclients.tendermint.v1.Header} Header + * @returns {ibc.lightclients.solomachine.v3.ClientState} ClientState * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Header.decodeDelimited = function decodeDelimited(reader) { + ClientState.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Header message. + * Verifies a ClientState message. * @function verify - * @memberof ibc.lightclients.tendermint.v1.Header + * @memberof ibc.lightclients.solomachine.v3.ClientState * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Header.verify = function verify(message) { + ClientState.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.signed_header != null && message.hasOwnProperty("signed_header")) { - let error = $root.tendermint.types.SignedHeader.verify(message.signed_header); - if (error) - return "signed_header." + error; - } - if (message.validator_set != null && message.hasOwnProperty("validator_set")) { - let error = $root.tendermint.types.ValidatorSet.verify(message.validator_set); - if (error) - return "validator_set." + error; - } - if (message.trusted_height != null && message.hasOwnProperty("trusted_height")) { - let error = $root.ibc.core.client.v1.Height.verify(message.trusted_height); - if (error) - return "trusted_height." + error; - } - if (message.trusted_validators != null && message.hasOwnProperty("trusted_validators")) { - let error = $root.tendermint.types.ValidatorSet.verify(message.trusted_validators); + if (message.sequence != null && message.hasOwnProperty("sequence")) + if (!$util.isInteger(message.sequence) && !(message.sequence && $util.isInteger(message.sequence.low) && $util.isInteger(message.sequence.high))) + return "sequence: integer|Long expected"; + if (message.is_frozen != null && message.hasOwnProperty("is_frozen")) + if (typeof message.is_frozen !== "boolean") + return "is_frozen: boolean expected"; + if (message.consensus_state != null && message.hasOwnProperty("consensus_state")) { + let error = $root.ibc.lightclients.solomachine.v3.ConsensusState.verify(message.consensus_state); if (error) - return "trusted_validators." + error; + return "consensus_state." + error; } return null; }; /** - * Creates a Header message from a plain object. Also converts values to their respective internal types. + * Creates a ClientState message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.lightclients.tendermint.v1.Header + * @memberof ibc.lightclients.solomachine.v3.ClientState * @static * @param {Object.} object Plain object - * @returns {ibc.lightclients.tendermint.v1.Header} Header + * @returns {ibc.lightclients.solomachine.v3.ClientState} ClientState */ - Header.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.lightclients.tendermint.v1.Header) + ClientState.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.lightclients.solomachine.v3.ClientState) return object; - let message = new $root.ibc.lightclients.tendermint.v1.Header(); - if (object.signed_header != null) { - if (typeof object.signed_header !== "object") - throw TypeError(".ibc.lightclients.tendermint.v1.Header.signed_header: object expected"); - message.signed_header = $root.tendermint.types.SignedHeader.fromObject(object.signed_header); - } - if (object.validator_set != null) { - if (typeof object.validator_set !== "object") - throw TypeError(".ibc.lightclients.tendermint.v1.Header.validator_set: object expected"); - message.validator_set = $root.tendermint.types.ValidatorSet.fromObject(object.validator_set); - } - if (object.trusted_height != null) { - if (typeof object.trusted_height !== "object") - throw TypeError(".ibc.lightclients.tendermint.v1.Header.trusted_height: object expected"); - message.trusted_height = $root.ibc.core.client.v1.Height.fromObject(object.trusted_height); - } - if (object.trusted_validators != null) { - if (typeof object.trusted_validators !== "object") - throw TypeError(".ibc.lightclients.tendermint.v1.Header.trusted_validators: object expected"); - message.trusted_validators = $root.tendermint.types.ValidatorSet.fromObject(object.trusted_validators); + let message = new $root.ibc.lightclients.solomachine.v3.ClientState(); + if (object.sequence != null) + if ($util.Long) + (message.sequence = $util.Long.fromValue(object.sequence)).unsigned = true; + else if (typeof object.sequence === "string") + message.sequence = parseInt(object.sequence, 10); + else if (typeof object.sequence === "number") + message.sequence = object.sequence; + else if (typeof object.sequence === "object") + message.sequence = new $util.LongBits(object.sequence.low >>> 0, object.sequence.high >>> 0).toNumber(true); + if (object.is_frozen != null) + message.is_frozen = Boolean(object.is_frozen); + if (object.consensus_state != null) { + if (typeof object.consensus_state !== "object") + throw TypeError(".ibc.lightclients.solomachine.v3.ClientState.consensus_state: object expected"); + message.consensus_state = $root.ibc.lightclients.solomachine.v3.ConsensusState.fromObject(object.consensus_state); } return message; }; /** - * Creates a plain object from a Header message. Also converts values to other types if specified. + * Creates a plain object from a ClientState message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.lightclients.tendermint.v1.Header + * @memberof ibc.lightclients.solomachine.v3.ClientState * @static - * @param {ibc.lightclients.tendermint.v1.Header} message Header + * @param {ibc.lightclients.solomachine.v3.ClientState} message ClientState * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Header.toObject = function toObject(message, options) { + ClientState.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { - object.signed_header = null; - object.validator_set = null; - object.trusted_height = null; - object.trusted_validators = null; + if ($util.Long) { + let long = new $util.Long(0, 0, true); + object.sequence = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.sequence = options.longs === String ? "0" : 0; + object.is_frozen = false; + object.consensus_state = null; } - if (message.signed_header != null && message.hasOwnProperty("signed_header")) - object.signed_header = $root.tendermint.types.SignedHeader.toObject(message.signed_header, options); - if (message.validator_set != null && message.hasOwnProperty("validator_set")) - object.validator_set = $root.tendermint.types.ValidatorSet.toObject(message.validator_set, options); - if (message.trusted_height != null && message.hasOwnProperty("trusted_height")) - object.trusted_height = $root.ibc.core.client.v1.Height.toObject(message.trusted_height, options); - if (message.trusted_validators != null && message.hasOwnProperty("trusted_validators")) - object.trusted_validators = $root.tendermint.types.ValidatorSet.toObject(message.trusted_validators, options); + if (message.sequence != null && message.hasOwnProperty("sequence")) + if (typeof message.sequence === "number") + object.sequence = options.longs === String ? String(message.sequence) : message.sequence; + else + object.sequence = options.longs === String ? $util.Long.prototype.toString.call(message.sequence) : options.longs === Number ? new $util.LongBits(message.sequence.low >>> 0, message.sequence.high >>> 0).toNumber(true) : message.sequence; + if (message.is_frozen != null && message.hasOwnProperty("is_frozen")) + object.is_frozen = message.is_frozen; + if (message.consensus_state != null && message.hasOwnProperty("consensus_state")) + object.consensus_state = $root.ibc.lightclients.solomachine.v3.ConsensusState.toObject(message.consensus_state, options); return object; }; /** - * Converts this Header to JSON. + * Converts this ClientState to JSON. * @function toJSON - * @memberof ibc.lightclients.tendermint.v1.Header + * @memberof ibc.lightclients.solomachine.v3.ClientState * @instance * @returns {Object.} JSON object */ - Header.prototype.toJSON = function toJSON() { + ClientState.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Header; + return ClientState; })(); - v1.Fraction = (function() { + v3.ConsensusState = (function() { /** - * Properties of a Fraction. - * @memberof ibc.lightclients.tendermint.v1 - * @interface IFraction - * @property {Long|null} [numerator] Fraction numerator - * @property {Long|null} [denominator] Fraction denominator + * Properties of a ConsensusState. + * @memberof ibc.lightclients.solomachine.v3 + * @interface IConsensusState + * @property {google.protobuf.IAny|null} [public_key] ConsensusState public_key + * @property {string|null} [diversifier] ConsensusState diversifier + * @property {Long|null} [timestamp] ConsensusState timestamp */ /** - * Constructs a new Fraction. - * @memberof ibc.lightclients.tendermint.v1 - * @classdesc Represents a Fraction. - * @implements IFraction + * Constructs a new ConsensusState. + * @memberof ibc.lightclients.solomachine.v3 + * @classdesc Represents a ConsensusState. + * @implements IConsensusState * @constructor - * @param {ibc.lightclients.tendermint.v1.IFraction=} [properties] Properties to set + * @param {ibc.lightclients.solomachine.v3.IConsensusState=} [properties] Properties to set */ - function Fraction(properties) { + function ConsensusState(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -73432,76 +79430,89 @@ export const ibc = $root.ibc = (() => { } /** - * Fraction numerator. - * @member {Long} numerator - * @memberof ibc.lightclients.tendermint.v1.Fraction + * ConsensusState public_key. + * @member {google.protobuf.IAny|null|undefined} public_key + * @memberof ibc.lightclients.solomachine.v3.ConsensusState * @instance */ - Fraction.prototype.numerator = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + ConsensusState.prototype.public_key = null; /** - * Fraction denominator. - * @member {Long} denominator - * @memberof ibc.lightclients.tendermint.v1.Fraction + * ConsensusState diversifier. + * @member {string} diversifier + * @memberof ibc.lightclients.solomachine.v3.ConsensusState * @instance */ - Fraction.prototype.denominator = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + ConsensusState.prototype.diversifier = ""; /** - * Encodes the specified Fraction message. Does not implicitly {@link ibc.lightclients.tendermint.v1.Fraction.verify|verify} messages. + * ConsensusState timestamp. + * @member {Long} timestamp + * @memberof ibc.lightclients.solomachine.v3.ConsensusState + * @instance + */ + ConsensusState.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + + /** + * Encodes the specified ConsensusState message. Does not implicitly {@link ibc.lightclients.solomachine.v3.ConsensusState.verify|verify} messages. * @function encode - * @memberof ibc.lightclients.tendermint.v1.Fraction + * @memberof ibc.lightclients.solomachine.v3.ConsensusState * @static - * @param {ibc.lightclients.tendermint.v1.IFraction} message Fraction message or plain object to encode + * @param {ibc.lightclients.solomachine.v3.IConsensusState} message ConsensusState message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Fraction.encode = function encode(message, writer) { + ConsensusState.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.numerator != null && Object.hasOwnProperty.call(message, "numerator")) - writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.numerator); - if (message.denominator != null && Object.hasOwnProperty.call(message, "denominator")) - writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.denominator); + if (message.public_key != null && Object.hasOwnProperty.call(message, "public_key")) + $root.google.protobuf.Any.encode(message.public_key, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.diversifier != null && Object.hasOwnProperty.call(message, "diversifier")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.diversifier); + if (message.timestamp != null && Object.hasOwnProperty.call(message, "timestamp")) + writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.timestamp); return writer; }; /** - * Encodes the specified Fraction message, length delimited. Does not implicitly {@link ibc.lightclients.tendermint.v1.Fraction.verify|verify} messages. + * Encodes the specified ConsensusState message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v3.ConsensusState.verify|verify} messages. * @function encodeDelimited - * @memberof ibc.lightclients.tendermint.v1.Fraction + * @memberof ibc.lightclients.solomachine.v3.ConsensusState * @static - * @param {ibc.lightclients.tendermint.v1.IFraction} message Fraction message or plain object to encode + * @param {ibc.lightclients.solomachine.v3.IConsensusState} message ConsensusState message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Fraction.encodeDelimited = function encodeDelimited(message, writer) { + ConsensusState.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Fraction message from the specified reader or buffer. + * Decodes a ConsensusState message from the specified reader or buffer. * @function decode - * @memberof ibc.lightclients.tendermint.v1.Fraction + * @memberof ibc.lightclients.solomachine.v3.ConsensusState * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {ibc.lightclients.tendermint.v1.Fraction} Fraction + * @returns {ibc.lightclients.solomachine.v3.ConsensusState} ConsensusState * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Fraction.decode = function decode(reader, length) { + ConsensusState.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.tendermint.v1.Fraction(); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.solomachine.v3.ConsensusState(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.numerator = reader.uint64(); + message.public_key = $root.google.protobuf.Any.decode(reader, reader.uint32()); break; case 2: - message.denominator = reader.uint64(); + message.diversifier = reader.string(); + break; + case 3: + message.timestamp = reader.uint64(); break; default: reader.skipType(tag & 7); @@ -73512,3809 +79523,3112 @@ export const ibc = $root.ibc = (() => { }; /** - * Decodes a Fraction message from the specified reader or buffer, length delimited. + * Decodes a ConsensusState message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof ibc.lightclients.tendermint.v1.Fraction + * @memberof ibc.lightclients.solomachine.v3.ConsensusState * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ibc.lightclients.tendermint.v1.Fraction} Fraction + * @returns {ibc.lightclients.solomachine.v3.ConsensusState} ConsensusState * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Fraction.decodeDelimited = function decodeDelimited(reader) { + ConsensusState.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Fraction message. + * Verifies a ConsensusState message. * @function verify - * @memberof ibc.lightclients.tendermint.v1.Fraction + * @memberof ibc.lightclients.solomachine.v3.ConsensusState * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Fraction.verify = function verify(message) { + ConsensusState.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.numerator != null && message.hasOwnProperty("numerator")) - if (!$util.isInteger(message.numerator) && !(message.numerator && $util.isInteger(message.numerator.low) && $util.isInteger(message.numerator.high))) - return "numerator: integer|Long expected"; - if (message.denominator != null && message.hasOwnProperty("denominator")) - if (!$util.isInteger(message.denominator) && !(message.denominator && $util.isInteger(message.denominator.low) && $util.isInteger(message.denominator.high))) - return "denominator: integer|Long expected"; + if (message.public_key != null && message.hasOwnProperty("public_key")) { + let error = $root.google.protobuf.Any.verify(message.public_key); + if (error) + return "public_key." + error; + } + if (message.diversifier != null && message.hasOwnProperty("diversifier")) + if (!$util.isString(message.diversifier)) + return "diversifier: string expected"; + if (message.timestamp != null && message.hasOwnProperty("timestamp")) + if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high))) + return "timestamp: integer|Long expected"; return null; }; /** - * Creates a Fraction message from a plain object. Also converts values to their respective internal types. + * Creates a ConsensusState message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof ibc.lightclients.tendermint.v1.Fraction + * @memberof ibc.lightclients.solomachine.v3.ConsensusState * @static * @param {Object.} object Plain object - * @returns {ibc.lightclients.tendermint.v1.Fraction} Fraction + * @returns {ibc.lightclients.solomachine.v3.ConsensusState} ConsensusState */ - Fraction.fromObject = function fromObject(object) { - if (object instanceof $root.ibc.lightclients.tendermint.v1.Fraction) + ConsensusState.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.lightclients.solomachine.v3.ConsensusState) return object; - let message = new $root.ibc.lightclients.tendermint.v1.Fraction(); - if (object.numerator != null) - if ($util.Long) - (message.numerator = $util.Long.fromValue(object.numerator)).unsigned = true; - else if (typeof object.numerator === "string") - message.numerator = parseInt(object.numerator, 10); - else if (typeof object.numerator === "number") - message.numerator = object.numerator; - else if (typeof object.numerator === "object") - message.numerator = new $util.LongBits(object.numerator.low >>> 0, object.numerator.high >>> 0).toNumber(true); - if (object.denominator != null) + let message = new $root.ibc.lightclients.solomachine.v3.ConsensusState(); + if (object.public_key != null) { + if (typeof object.public_key !== "object") + throw TypeError(".ibc.lightclients.solomachine.v3.ConsensusState.public_key: object expected"); + message.public_key = $root.google.protobuf.Any.fromObject(object.public_key); + } + if (object.diversifier != null) + message.diversifier = String(object.diversifier); + if (object.timestamp != null) if ($util.Long) - (message.denominator = $util.Long.fromValue(object.denominator)).unsigned = true; - else if (typeof object.denominator === "string") - message.denominator = parseInt(object.denominator, 10); - else if (typeof object.denominator === "number") - message.denominator = object.denominator; - else if (typeof object.denominator === "object") - message.denominator = new $util.LongBits(object.denominator.low >>> 0, object.denominator.high >>> 0).toNumber(true); + (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true; + else if (typeof object.timestamp === "string") + message.timestamp = parseInt(object.timestamp, 10); + else if (typeof object.timestamp === "number") + message.timestamp = object.timestamp; + else if (typeof object.timestamp === "object") + message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true); return message; }; /** - * Creates a plain object from a Fraction message. Also converts values to other types if specified. + * Creates a plain object from a ConsensusState message. Also converts values to other types if specified. * @function toObject - * @memberof ibc.lightclients.tendermint.v1.Fraction + * @memberof ibc.lightclients.solomachine.v3.ConsensusState * @static - * @param {ibc.lightclients.tendermint.v1.Fraction} message Fraction + * @param {ibc.lightclients.solomachine.v3.ConsensusState} message ConsensusState * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Fraction.toObject = function toObject(message, options) { + ConsensusState.toObject = function toObject(message, options) { if (!options) options = {}; let object = {}; if (options.defaults) { + object.public_key = null; + object.diversifier = ""; if ($util.Long) { let long = new $util.Long(0, 0, true); - object.numerator = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.numerator = options.longs === String ? "0" : 0; - if ($util.Long) { - let long = new $util.Long(0, 0, true); - object.denominator = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else - object.denominator = options.longs === String ? "0" : 0; + object.timestamp = options.longs === String ? "0" : 0; } - if (message.numerator != null && message.hasOwnProperty("numerator")) - if (typeof message.numerator === "number") - object.numerator = options.longs === String ? String(message.numerator) : message.numerator; - else - object.numerator = options.longs === String ? $util.Long.prototype.toString.call(message.numerator) : options.longs === Number ? new $util.LongBits(message.numerator.low >>> 0, message.numerator.high >>> 0).toNumber(true) : message.numerator; - if (message.denominator != null && message.hasOwnProperty("denominator")) - if (typeof message.denominator === "number") - object.denominator = options.longs === String ? String(message.denominator) : message.denominator; + if (message.public_key != null && message.hasOwnProperty("public_key")) + object.public_key = $root.google.protobuf.Any.toObject(message.public_key, options); + if (message.diversifier != null && message.hasOwnProperty("diversifier")) + object.diversifier = message.diversifier; + if (message.timestamp != null && message.hasOwnProperty("timestamp")) + if (typeof message.timestamp === "number") + object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp; else - object.denominator = options.longs === String ? $util.Long.prototype.toString.call(message.denominator) : options.longs === Number ? new $util.LongBits(message.denominator.low >>> 0, message.denominator.high >>> 0).toNumber(true) : message.denominator; + object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber(true) : message.timestamp; return object; }; /** - * Converts this Fraction to JSON. + * Converts this ConsensusState to JSON. * @function toJSON - * @memberof ibc.lightclients.tendermint.v1.Fraction + * @memberof ibc.lightclients.solomachine.v3.ConsensusState * @instance * @returns {Object.} JSON object */ - Fraction.prototype.toJSON = function toJSON() { + ConsensusState.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Fraction; + return ConsensusState; })(); - return v1; - })(); - - return tendermint; - })(); - - return lightclients; - })(); - - return ibc; -})(); - -export const ics23 = $root.ics23 = (() => { - - /** - * Namespace ics23. - * @exports ics23 - * @namespace - */ - const ics23 = {}; - - /** - * HashOp enum. - * @name ics23.HashOp - * @enum {number} - * @property {number} NO_HASH=0 NO_HASH value - * @property {number} SHA256=1 SHA256 value - * @property {number} SHA512=2 SHA512 value - * @property {number} KECCAK=3 KECCAK value - * @property {number} RIPEMD160=4 RIPEMD160 value - * @property {number} BITCOIN=5 BITCOIN value - */ - ics23.HashOp = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "NO_HASH"] = 0; - values[valuesById[1] = "SHA256"] = 1; - values[valuesById[2] = "SHA512"] = 2; - values[valuesById[3] = "KECCAK"] = 3; - values[valuesById[4] = "RIPEMD160"] = 4; - values[valuesById[5] = "BITCOIN"] = 5; - return values; - })(); - - /** - * LengthOp defines how to process the key and value of the LeafOp - * to include length information. After encoding the length with the given - * algorithm, the length will be prepended to the key and value bytes. - * (Each one with it's own encoded length) - * @name ics23.LengthOp - * @enum {number} - * @property {number} NO_PREFIX=0 NO_PREFIX value - * @property {number} VAR_PROTO=1 VAR_PROTO value - * @property {number} VAR_RLP=2 VAR_RLP value - * @property {number} FIXED32_BIG=3 FIXED32_BIG value - * @property {number} FIXED32_LITTLE=4 FIXED32_LITTLE value - * @property {number} FIXED64_BIG=5 FIXED64_BIG value - * @property {number} FIXED64_LITTLE=6 FIXED64_LITTLE value - * @property {number} REQUIRE_32_BYTES=7 REQUIRE_32_BYTES value - * @property {number} REQUIRE_64_BYTES=8 REQUIRE_64_BYTES value - */ - ics23.LengthOp = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "NO_PREFIX"] = 0; - values[valuesById[1] = "VAR_PROTO"] = 1; - values[valuesById[2] = "VAR_RLP"] = 2; - values[valuesById[3] = "FIXED32_BIG"] = 3; - values[valuesById[4] = "FIXED32_LITTLE"] = 4; - values[valuesById[5] = "FIXED64_BIG"] = 5; - values[valuesById[6] = "FIXED64_LITTLE"] = 6; - values[valuesById[7] = "REQUIRE_32_BYTES"] = 7; - values[valuesById[8] = "REQUIRE_64_BYTES"] = 8; - return values; - })(); - - ics23.ExistenceProof = (function() { - - /** - * Properties of an ExistenceProof. - * @memberof ics23 - * @interface IExistenceProof - * @property {Uint8Array|null} [key] ExistenceProof key - * @property {Uint8Array|null} [value] ExistenceProof value - * @property {ics23.ILeafOp|null} [leaf] ExistenceProof leaf - * @property {Array.|null} [path] ExistenceProof path - */ - - /** - * Constructs a new ExistenceProof. - * @memberof ics23 - * @classdesc ExistenceProof takes a key and a value and a set of steps to perform on it. - * The result of peforming all these steps will provide a "root hash", which can - * be compared to the value in a header. - * - * Since it is computationally infeasible to produce a hash collission for any of the used - * cryptographic hash functions, if someone can provide a series of operations to transform - * a given key and value into a root hash that matches some trusted root, these key and values - * must be in the referenced merkle tree. - * - * The only possible issue is maliablity in LeafOp, such as providing extra prefix data, - * which should be controlled by a spec. Eg. with lengthOp as NONE, - * prefix = FOO, key = BAR, value = CHOICE - * and - * prefix = F, key = OOBAR, value = CHOICE - * would produce the same value. - * - * With LengthOp this is tricker but not impossible. Which is why the "leafPrefixEqual" field - * in the ProofSpec is valuable to prevent this mutability. And why all trees should - * length-prefix the data before hashing it. - * @implements IExistenceProof - * @constructor - * @param {ics23.IExistenceProof=} [properties] Properties to set - */ - function ExistenceProof(properties) { - this.path = []; - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ExistenceProof key. - * @member {Uint8Array} key - * @memberof ics23.ExistenceProof - * @instance - */ - ExistenceProof.prototype.key = $util.newBuffer([]); - - /** - * ExistenceProof value. - * @member {Uint8Array} value - * @memberof ics23.ExistenceProof - * @instance - */ - ExistenceProof.prototype.value = $util.newBuffer([]); - - /** - * ExistenceProof leaf. - * @member {ics23.ILeafOp|null|undefined} leaf - * @memberof ics23.ExistenceProof - * @instance - */ - ExistenceProof.prototype.leaf = null; - - /** - * ExistenceProof path. - * @member {Array.} path - * @memberof ics23.ExistenceProof - * @instance - */ - ExistenceProof.prototype.path = $util.emptyArray; - - /** - * Encodes the specified ExistenceProof message. Does not implicitly {@link ics23.ExistenceProof.verify|verify} messages. - * @function encode - * @memberof ics23.ExistenceProof - * @static - * @param {ics23.IExistenceProof} message ExistenceProof message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ExistenceProof.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.key != null && Object.hasOwnProperty.call(message, "key")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.key); - if (message.value != null && Object.hasOwnProperty.call(message, "value")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.value); - if (message.leaf != null && Object.hasOwnProperty.call(message, "leaf")) - $root.ics23.LeafOp.encode(message.leaf, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.path != null && message.path.length) - for (let i = 0; i < message.path.length; ++i) - $root.ics23.InnerOp.encode(message.path[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified ExistenceProof message, length delimited. Does not implicitly {@link ics23.ExistenceProof.verify|verify} messages. - * @function encodeDelimited - * @memberof ics23.ExistenceProof - * @static - * @param {ics23.IExistenceProof} message ExistenceProof message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ExistenceProof.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an ExistenceProof message from the specified reader or buffer. - * @function decode - * @memberof ics23.ExistenceProof - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {ics23.ExistenceProof} ExistenceProof - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ExistenceProof.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ics23.ExistenceProof(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.key = reader.bytes(); - break; - case 2: - message.value = reader.bytes(); - break; - case 3: - message.leaf = $root.ics23.LeafOp.decode(reader, reader.uint32()); - break; - case 4: - if (!(message.path && message.path.length)) - message.path = []; - message.path.push($root.ics23.InnerOp.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an ExistenceProof message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ics23.ExistenceProof - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ics23.ExistenceProof} ExistenceProof - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ExistenceProof.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an ExistenceProof message. - * @function verify - * @memberof ics23.ExistenceProof - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ExistenceProof.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.key != null && message.hasOwnProperty("key")) - if (!(message.key && typeof message.key.length === "number" || $util.isString(message.key))) - return "key: buffer expected"; - if (message.value != null && message.hasOwnProperty("value")) - if (!(message.value && typeof message.value.length === "number" || $util.isString(message.value))) - return "value: buffer expected"; - if (message.leaf != null && message.hasOwnProperty("leaf")) { - let error = $root.ics23.LeafOp.verify(message.leaf); - if (error) - return "leaf." + error; - } - if (message.path != null && message.hasOwnProperty("path")) { - if (!Array.isArray(message.path)) - return "path: array expected"; - for (let i = 0; i < message.path.length; ++i) { - let error = $root.ics23.InnerOp.verify(message.path[i]); - if (error) - return "path." + error; - } - } - return null; - }; - - /** - * Creates an ExistenceProof message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof ics23.ExistenceProof - * @static - * @param {Object.} object Plain object - * @returns {ics23.ExistenceProof} ExistenceProof - */ - ExistenceProof.fromObject = function fromObject(object) { - if (object instanceof $root.ics23.ExistenceProof) - return object; - let message = new $root.ics23.ExistenceProof(); - if (object.key != null) - if (typeof object.key === "string") - $util.base64.decode(object.key, message.key = $util.newBuffer($util.base64.length(object.key)), 0); - else if (object.key.length) - message.key = object.key; - if (object.value != null) - if (typeof object.value === "string") - $util.base64.decode(object.value, message.value = $util.newBuffer($util.base64.length(object.value)), 0); - else if (object.value.length) - message.value = object.value; - if (object.leaf != null) { - if (typeof object.leaf !== "object") - throw TypeError(".ics23.ExistenceProof.leaf: object expected"); - message.leaf = $root.ics23.LeafOp.fromObject(object.leaf); - } - if (object.path) { - if (!Array.isArray(object.path)) - throw TypeError(".ics23.ExistenceProof.path: array expected"); - message.path = []; - for (let i = 0; i < object.path.length; ++i) { - if (typeof object.path[i] !== "object") - throw TypeError(".ics23.ExistenceProof.path: object expected"); - message.path[i] = $root.ics23.InnerOp.fromObject(object.path[i]); - } - } - return message; - }; - - /** - * Creates a plain object from an ExistenceProof message. Also converts values to other types if specified. - * @function toObject - * @memberof ics23.ExistenceProof - * @static - * @param {ics23.ExistenceProof} message ExistenceProof - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ExistenceProof.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.arrays || options.defaults) - object.path = []; - if (options.defaults) { - if (options.bytes === String) - object.key = ""; - else { - object.key = []; - if (options.bytes !== Array) - object.key = $util.newBuffer(object.key); - } - if (options.bytes === String) - object.value = ""; - else { - object.value = []; - if (options.bytes !== Array) - object.value = $util.newBuffer(object.value); - } - object.leaf = null; - } - if (message.key != null && message.hasOwnProperty("key")) - object.key = options.bytes === String ? $util.base64.encode(message.key, 0, message.key.length) : options.bytes === Array ? Array.prototype.slice.call(message.key) : message.key; - if (message.value != null && message.hasOwnProperty("value")) - object.value = options.bytes === String ? $util.base64.encode(message.value, 0, message.value.length) : options.bytes === Array ? Array.prototype.slice.call(message.value) : message.value; - if (message.leaf != null && message.hasOwnProperty("leaf")) - object.leaf = $root.ics23.LeafOp.toObject(message.leaf, options); - if (message.path && message.path.length) { - object.path = []; - for (let j = 0; j < message.path.length; ++j) - object.path[j] = $root.ics23.InnerOp.toObject(message.path[j], options); - } - return object; - }; - - /** - * Converts this ExistenceProof to JSON. - * @function toJSON - * @memberof ics23.ExistenceProof - * @instance - * @returns {Object.} JSON object - */ - ExistenceProof.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ExistenceProof; - })(); - - ics23.NonExistenceProof = (function() { - - /** - * Properties of a NonExistenceProof. - * @memberof ics23 - * @interface INonExistenceProof - * @property {Uint8Array|null} [key] NonExistenceProof key - * @property {ics23.IExistenceProof|null} [left] NonExistenceProof left - * @property {ics23.IExistenceProof|null} [right] NonExistenceProof right - */ - - /** - * Constructs a new NonExistenceProof. - * @memberof ics23 - * @classdesc Represents a NonExistenceProof. - * @implements INonExistenceProof - * @constructor - * @param {ics23.INonExistenceProof=} [properties] Properties to set - */ - function NonExistenceProof(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * NonExistenceProof key. - * @member {Uint8Array} key - * @memberof ics23.NonExistenceProof - * @instance - */ - NonExistenceProof.prototype.key = $util.newBuffer([]); - - /** - * NonExistenceProof left. - * @member {ics23.IExistenceProof|null|undefined} left - * @memberof ics23.NonExistenceProof - * @instance - */ - NonExistenceProof.prototype.left = null; - - /** - * NonExistenceProof right. - * @member {ics23.IExistenceProof|null|undefined} right - * @memberof ics23.NonExistenceProof - * @instance - */ - NonExistenceProof.prototype.right = null; - - /** - * Encodes the specified NonExistenceProof message. Does not implicitly {@link ics23.NonExistenceProof.verify|verify} messages. - * @function encode - * @memberof ics23.NonExistenceProof - * @static - * @param {ics23.INonExistenceProof} message NonExistenceProof message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NonExistenceProof.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.key != null && Object.hasOwnProperty.call(message, "key")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.key); - if (message.left != null && Object.hasOwnProperty.call(message, "left")) - $root.ics23.ExistenceProof.encode(message.left, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.right != null && Object.hasOwnProperty.call(message, "right")) - $root.ics23.ExistenceProof.encode(message.right, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified NonExistenceProof message, length delimited. Does not implicitly {@link ics23.NonExistenceProof.verify|verify} messages. - * @function encodeDelimited - * @memberof ics23.NonExistenceProof - * @static - * @param {ics23.INonExistenceProof} message NonExistenceProof message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NonExistenceProof.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a NonExistenceProof message from the specified reader or buffer. - * @function decode - * @memberof ics23.NonExistenceProof - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {ics23.NonExistenceProof} NonExistenceProof - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NonExistenceProof.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ics23.NonExistenceProof(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.key = reader.bytes(); - break; - case 2: - message.left = $root.ics23.ExistenceProof.decode(reader, reader.uint32()); - break; - case 3: - message.right = $root.ics23.ExistenceProof.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a NonExistenceProof message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ics23.NonExistenceProof - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ics23.NonExistenceProof} NonExistenceProof - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NonExistenceProof.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + v3.Header = (function() { - /** - * Verifies a NonExistenceProof message. - * @function verify - * @memberof ics23.NonExistenceProof - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - NonExistenceProof.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.key != null && message.hasOwnProperty("key")) - if (!(message.key && typeof message.key.length === "number" || $util.isString(message.key))) - return "key: buffer expected"; - if (message.left != null && message.hasOwnProperty("left")) { - let error = $root.ics23.ExistenceProof.verify(message.left); - if (error) - return "left." + error; - } - if (message.right != null && message.hasOwnProperty("right")) { - let error = $root.ics23.ExistenceProof.verify(message.right); - if (error) - return "right." + error; - } - return null; - }; + /** + * Properties of a Header. + * @memberof ibc.lightclients.solomachine.v3 + * @interface IHeader + * @property {Long|null} [timestamp] Header timestamp + * @property {Uint8Array|null} [signature] Header signature + * @property {google.protobuf.IAny|null} [new_public_key] Header new_public_key + * @property {string|null} [new_diversifier] Header new_diversifier + */ - /** - * Creates a NonExistenceProof message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof ics23.NonExistenceProof - * @static - * @param {Object.} object Plain object - * @returns {ics23.NonExistenceProof} NonExistenceProof - */ - NonExistenceProof.fromObject = function fromObject(object) { - if (object instanceof $root.ics23.NonExistenceProof) - return object; - let message = new $root.ics23.NonExistenceProof(); - if (object.key != null) - if (typeof object.key === "string") - $util.base64.decode(object.key, message.key = $util.newBuffer($util.base64.length(object.key)), 0); - else if (object.key.length) - message.key = object.key; - if (object.left != null) { - if (typeof object.left !== "object") - throw TypeError(".ics23.NonExistenceProof.left: object expected"); - message.left = $root.ics23.ExistenceProof.fromObject(object.left); - } - if (object.right != null) { - if (typeof object.right !== "object") - throw TypeError(".ics23.NonExistenceProof.right: object expected"); - message.right = $root.ics23.ExistenceProof.fromObject(object.right); - } - return message; - }; + /** + * Constructs a new Header. + * @memberof ibc.lightclients.solomachine.v3 + * @classdesc Represents a Header. + * @implements IHeader + * @constructor + * @param {ibc.lightclients.solomachine.v3.IHeader=} [properties] Properties to set + */ + function Header(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Creates a plain object from a NonExistenceProof message. Also converts values to other types if specified. - * @function toObject - * @memberof ics23.NonExistenceProof - * @static - * @param {ics23.NonExistenceProof} message NonExistenceProof - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - NonExistenceProof.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - if (options.bytes === String) - object.key = ""; - else { - object.key = []; - if (options.bytes !== Array) - object.key = $util.newBuffer(object.key); - } - object.left = null; - object.right = null; - } - if (message.key != null && message.hasOwnProperty("key")) - object.key = options.bytes === String ? $util.base64.encode(message.key, 0, message.key.length) : options.bytes === Array ? Array.prototype.slice.call(message.key) : message.key; - if (message.left != null && message.hasOwnProperty("left")) - object.left = $root.ics23.ExistenceProof.toObject(message.left, options); - if (message.right != null && message.hasOwnProperty("right")) - object.right = $root.ics23.ExistenceProof.toObject(message.right, options); - return object; - }; + /** + * Header timestamp. + * @member {Long} timestamp + * @memberof ibc.lightclients.solomachine.v3.Header + * @instance + */ + Header.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - /** - * Converts this NonExistenceProof to JSON. - * @function toJSON - * @memberof ics23.NonExistenceProof - * @instance - * @returns {Object.} JSON object - */ - NonExistenceProof.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Header signature. + * @member {Uint8Array} signature + * @memberof ibc.lightclients.solomachine.v3.Header + * @instance + */ + Header.prototype.signature = $util.newBuffer([]); - return NonExistenceProof; - })(); + /** + * Header new_public_key. + * @member {google.protobuf.IAny|null|undefined} new_public_key + * @memberof ibc.lightclients.solomachine.v3.Header + * @instance + */ + Header.prototype.new_public_key = null; - ics23.CommitmentProof = (function() { + /** + * Header new_diversifier. + * @member {string} new_diversifier + * @memberof ibc.lightclients.solomachine.v3.Header + * @instance + */ + Header.prototype.new_diversifier = ""; - /** - * Properties of a CommitmentProof. - * @memberof ics23 - * @interface ICommitmentProof - * @property {ics23.IExistenceProof|null} [exist] CommitmentProof exist - * @property {ics23.INonExistenceProof|null} [nonexist] CommitmentProof nonexist - * @property {ics23.IBatchProof|null} [batch] CommitmentProof batch - * @property {ics23.ICompressedBatchProof|null} [compressed] CommitmentProof compressed - */ + /** + * Encodes the specified Header message. Does not implicitly {@link ibc.lightclients.solomachine.v3.Header.verify|verify} messages. + * @function encode + * @memberof ibc.lightclients.solomachine.v3.Header + * @static + * @param {ibc.lightclients.solomachine.v3.IHeader} message Header message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Header.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.timestamp != null && Object.hasOwnProperty.call(message, "timestamp")) + writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.timestamp); + if (message.signature != null && Object.hasOwnProperty.call(message, "signature")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.signature); + if (message.new_public_key != null && Object.hasOwnProperty.call(message, "new_public_key")) + $root.google.protobuf.Any.encode(message.new_public_key, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.new_diversifier != null && Object.hasOwnProperty.call(message, "new_diversifier")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.new_diversifier); + return writer; + }; - /** - * Constructs a new CommitmentProof. - * @memberof ics23 - * @classdesc Represents a CommitmentProof. - * @implements ICommitmentProof - * @constructor - * @param {ics23.ICommitmentProof=} [properties] Properties to set - */ - function CommitmentProof(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Encodes the specified Header message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v3.Header.verify|verify} messages. + * @function encodeDelimited + * @memberof ibc.lightclients.solomachine.v3.Header + * @static + * @param {ibc.lightclients.solomachine.v3.IHeader} message Header message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Header.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * CommitmentProof exist. - * @member {ics23.IExistenceProof|null|undefined} exist - * @memberof ics23.CommitmentProof - * @instance - */ - CommitmentProof.prototype.exist = null; + /** + * Decodes a Header message from the specified reader or buffer. + * @function decode + * @memberof ibc.lightclients.solomachine.v3.Header + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {ibc.lightclients.solomachine.v3.Header} Header + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Header.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.solomachine.v3.Header(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.timestamp = reader.uint64(); + break; + case 2: + message.signature = reader.bytes(); + break; + case 3: + message.new_public_key = $root.google.protobuf.Any.decode(reader, reader.uint32()); + break; + case 4: + message.new_diversifier = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * CommitmentProof nonexist. - * @member {ics23.INonExistenceProof|null|undefined} nonexist - * @memberof ics23.CommitmentProof - * @instance - */ - CommitmentProof.prototype.nonexist = null; + /** + * Decodes a Header message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof ibc.lightclients.solomachine.v3.Header + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {ibc.lightclients.solomachine.v3.Header} Header + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Header.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * CommitmentProof batch. - * @member {ics23.IBatchProof|null|undefined} batch - * @memberof ics23.CommitmentProof - * @instance - */ - CommitmentProof.prototype.batch = null; + /** + * Verifies a Header message. + * @function verify + * @memberof ibc.lightclients.solomachine.v3.Header + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Header.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.timestamp != null && message.hasOwnProperty("timestamp")) + if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high))) + return "timestamp: integer|Long expected"; + if (message.signature != null && message.hasOwnProperty("signature")) + if (!(message.signature && typeof message.signature.length === "number" || $util.isString(message.signature))) + return "signature: buffer expected"; + if (message.new_public_key != null && message.hasOwnProperty("new_public_key")) { + let error = $root.google.protobuf.Any.verify(message.new_public_key); + if (error) + return "new_public_key." + error; + } + if (message.new_diversifier != null && message.hasOwnProperty("new_diversifier")) + if (!$util.isString(message.new_diversifier)) + return "new_diversifier: string expected"; + return null; + }; - /** - * CommitmentProof compressed. - * @member {ics23.ICompressedBatchProof|null|undefined} compressed - * @memberof ics23.CommitmentProof - * @instance - */ - CommitmentProof.prototype.compressed = null; + /** + * Creates a Header message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof ibc.lightclients.solomachine.v3.Header + * @static + * @param {Object.} object Plain object + * @returns {ibc.lightclients.solomachine.v3.Header} Header + */ + Header.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.lightclients.solomachine.v3.Header) + return object; + let message = new $root.ibc.lightclients.solomachine.v3.Header(); + if (object.timestamp != null) + if ($util.Long) + (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true; + else if (typeof object.timestamp === "string") + message.timestamp = parseInt(object.timestamp, 10); + else if (typeof object.timestamp === "number") + message.timestamp = object.timestamp; + else if (typeof object.timestamp === "object") + message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true); + if (object.signature != null) + if (typeof object.signature === "string") + $util.base64.decode(object.signature, message.signature = $util.newBuffer($util.base64.length(object.signature)), 0); + else if (object.signature.length) + message.signature = object.signature; + if (object.new_public_key != null) { + if (typeof object.new_public_key !== "object") + throw TypeError(".ibc.lightclients.solomachine.v3.Header.new_public_key: object expected"); + message.new_public_key = $root.google.protobuf.Any.fromObject(object.new_public_key); + } + if (object.new_diversifier != null) + message.new_diversifier = String(object.new_diversifier); + return message; + }; - // OneOf field names bound to virtual getters and setters - let $oneOfFields; + /** + * Creates a plain object from a Header message. Also converts values to other types if specified. + * @function toObject + * @memberof ibc.lightclients.solomachine.v3.Header + * @static + * @param {ibc.lightclients.solomachine.v3.Header} message Header + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Header.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + if ($util.Long) { + let long = new $util.Long(0, 0, true); + object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.timestamp = options.longs === String ? "0" : 0; + if (options.bytes === String) + object.signature = ""; + else { + object.signature = []; + if (options.bytes !== Array) + object.signature = $util.newBuffer(object.signature); + } + object.new_public_key = null; + object.new_diversifier = ""; + } + if (message.timestamp != null && message.hasOwnProperty("timestamp")) + if (typeof message.timestamp === "number") + object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp; + else + object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber(true) : message.timestamp; + if (message.signature != null && message.hasOwnProperty("signature")) + object.signature = options.bytes === String ? $util.base64.encode(message.signature, 0, message.signature.length) : options.bytes === Array ? Array.prototype.slice.call(message.signature) : message.signature; + if (message.new_public_key != null && message.hasOwnProperty("new_public_key")) + object.new_public_key = $root.google.protobuf.Any.toObject(message.new_public_key, options); + if (message.new_diversifier != null && message.hasOwnProperty("new_diversifier")) + object.new_diversifier = message.new_diversifier; + return object; + }; - /** - * CommitmentProof proof. - * @member {"exist"|"nonexist"|"batch"|"compressed"|undefined} proof - * @memberof ics23.CommitmentProof - * @instance - */ - Object.defineProperty(CommitmentProof.prototype, "proof", { - get: $util.oneOfGetter($oneOfFields = ["exist", "nonexist", "batch", "compressed"]), - set: $util.oneOfSetter($oneOfFields) - }); + /** + * Converts this Header to JSON. + * @function toJSON + * @memberof ibc.lightclients.solomachine.v3.Header + * @instance + * @returns {Object.} JSON object + */ + Header.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Encodes the specified CommitmentProof message. Does not implicitly {@link ics23.CommitmentProof.verify|verify} messages. - * @function encode - * @memberof ics23.CommitmentProof - * @static - * @param {ics23.ICommitmentProof} message CommitmentProof message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CommitmentProof.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.exist != null && Object.hasOwnProperty.call(message, "exist")) - $root.ics23.ExistenceProof.encode(message.exist, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nonexist != null && Object.hasOwnProperty.call(message, "nonexist")) - $root.ics23.NonExistenceProof.encode(message.nonexist, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.batch != null && Object.hasOwnProperty.call(message, "batch")) - $root.ics23.BatchProof.encode(message.batch, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.compressed != null && Object.hasOwnProperty.call(message, "compressed")) - $root.ics23.CompressedBatchProof.encode(message.compressed, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - return writer; - }; + return Header; + })(); - /** - * Encodes the specified CommitmentProof message, length delimited. Does not implicitly {@link ics23.CommitmentProof.verify|verify} messages. - * @function encodeDelimited - * @memberof ics23.CommitmentProof - * @static - * @param {ics23.ICommitmentProof} message CommitmentProof message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CommitmentProof.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + v3.Misbehaviour = (function() { - /** - * Decodes a CommitmentProof message from the specified reader or buffer. - * @function decode - * @memberof ics23.CommitmentProof - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {ics23.CommitmentProof} CommitmentProof - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CommitmentProof.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ics23.CommitmentProof(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.exist = $root.ics23.ExistenceProof.decode(reader, reader.uint32()); - break; - case 2: - message.nonexist = $root.ics23.NonExistenceProof.decode(reader, reader.uint32()); - break; - case 3: - message.batch = $root.ics23.BatchProof.decode(reader, reader.uint32()); - break; - case 4: - message.compressed = $root.ics23.CompressedBatchProof.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Properties of a Misbehaviour. + * @memberof ibc.lightclients.solomachine.v3 + * @interface IMisbehaviour + * @property {Long|null} [sequence] Misbehaviour sequence + * @property {ibc.lightclients.solomachine.v3.ISignatureAndData|null} [signature_one] Misbehaviour signature_one + * @property {ibc.lightclients.solomachine.v3.ISignatureAndData|null} [signature_two] Misbehaviour signature_two + */ - /** - * Decodes a CommitmentProof message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ics23.CommitmentProof - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ics23.CommitmentProof} CommitmentProof - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CommitmentProof.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Constructs a new Misbehaviour. + * @memberof ibc.lightclients.solomachine.v3 + * @classdesc Represents a Misbehaviour. + * @implements IMisbehaviour + * @constructor + * @param {ibc.lightclients.solomachine.v3.IMisbehaviour=} [properties] Properties to set + */ + function Misbehaviour(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Verifies a CommitmentProof message. - * @function verify - * @memberof ics23.CommitmentProof - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CommitmentProof.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - let properties = {}; - if (message.exist != null && message.hasOwnProperty("exist")) { - properties.proof = 1; - { - let error = $root.ics23.ExistenceProof.verify(message.exist); - if (error) - return "exist." + error; - } - } - if (message.nonexist != null && message.hasOwnProperty("nonexist")) { - if (properties.proof === 1) - return "proof: multiple values"; - properties.proof = 1; - { - let error = $root.ics23.NonExistenceProof.verify(message.nonexist); - if (error) - return "nonexist." + error; - } - } - if (message.batch != null && message.hasOwnProperty("batch")) { - if (properties.proof === 1) - return "proof: multiple values"; - properties.proof = 1; - { - let error = $root.ics23.BatchProof.verify(message.batch); - if (error) - return "batch." + error; - } - } - if (message.compressed != null && message.hasOwnProperty("compressed")) { - if (properties.proof === 1) - return "proof: multiple values"; - properties.proof = 1; - { - let error = $root.ics23.CompressedBatchProof.verify(message.compressed); - if (error) - return "compressed." + error; - } - } - return null; - }; + /** + * Misbehaviour sequence. + * @member {Long} sequence + * @memberof ibc.lightclients.solomachine.v3.Misbehaviour + * @instance + */ + Misbehaviour.prototype.sequence = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - /** - * Creates a CommitmentProof message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof ics23.CommitmentProof - * @static - * @param {Object.} object Plain object - * @returns {ics23.CommitmentProof} CommitmentProof - */ - CommitmentProof.fromObject = function fromObject(object) { - if (object instanceof $root.ics23.CommitmentProof) - return object; - let message = new $root.ics23.CommitmentProof(); - if (object.exist != null) { - if (typeof object.exist !== "object") - throw TypeError(".ics23.CommitmentProof.exist: object expected"); - message.exist = $root.ics23.ExistenceProof.fromObject(object.exist); - } - if (object.nonexist != null) { - if (typeof object.nonexist !== "object") - throw TypeError(".ics23.CommitmentProof.nonexist: object expected"); - message.nonexist = $root.ics23.NonExistenceProof.fromObject(object.nonexist); - } - if (object.batch != null) { - if (typeof object.batch !== "object") - throw TypeError(".ics23.CommitmentProof.batch: object expected"); - message.batch = $root.ics23.BatchProof.fromObject(object.batch); - } - if (object.compressed != null) { - if (typeof object.compressed !== "object") - throw TypeError(".ics23.CommitmentProof.compressed: object expected"); - message.compressed = $root.ics23.CompressedBatchProof.fromObject(object.compressed); - } - return message; - }; + /** + * Misbehaviour signature_one. + * @member {ibc.lightclients.solomachine.v3.ISignatureAndData|null|undefined} signature_one + * @memberof ibc.lightclients.solomachine.v3.Misbehaviour + * @instance + */ + Misbehaviour.prototype.signature_one = null; - /** - * Creates a plain object from a CommitmentProof message. Also converts values to other types if specified. - * @function toObject - * @memberof ics23.CommitmentProof - * @static - * @param {ics23.CommitmentProof} message CommitmentProof - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - CommitmentProof.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (message.exist != null && message.hasOwnProperty("exist")) { - object.exist = $root.ics23.ExistenceProof.toObject(message.exist, options); - if (options.oneofs) - object.proof = "exist"; - } - if (message.nonexist != null && message.hasOwnProperty("nonexist")) { - object.nonexist = $root.ics23.NonExistenceProof.toObject(message.nonexist, options); - if (options.oneofs) - object.proof = "nonexist"; - } - if (message.batch != null && message.hasOwnProperty("batch")) { - object.batch = $root.ics23.BatchProof.toObject(message.batch, options); - if (options.oneofs) - object.proof = "batch"; - } - if (message.compressed != null && message.hasOwnProperty("compressed")) { - object.compressed = $root.ics23.CompressedBatchProof.toObject(message.compressed, options); - if (options.oneofs) - object.proof = "compressed"; - } - return object; - }; + /** + * Misbehaviour signature_two. + * @member {ibc.lightclients.solomachine.v3.ISignatureAndData|null|undefined} signature_two + * @memberof ibc.lightclients.solomachine.v3.Misbehaviour + * @instance + */ + Misbehaviour.prototype.signature_two = null; - /** - * Converts this CommitmentProof to JSON. - * @function toJSON - * @memberof ics23.CommitmentProof - * @instance - * @returns {Object.} JSON object - */ - CommitmentProof.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Encodes the specified Misbehaviour message. Does not implicitly {@link ibc.lightclients.solomachine.v3.Misbehaviour.verify|verify} messages. + * @function encode + * @memberof ibc.lightclients.solomachine.v3.Misbehaviour + * @static + * @param {ibc.lightclients.solomachine.v3.IMisbehaviour} message Misbehaviour message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Misbehaviour.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.sequence != null && Object.hasOwnProperty.call(message, "sequence")) + writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.sequence); + if (message.signature_one != null && Object.hasOwnProperty.call(message, "signature_one")) + $root.ibc.lightclients.solomachine.v3.SignatureAndData.encode(message.signature_one, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.signature_two != null && Object.hasOwnProperty.call(message, "signature_two")) + $root.ibc.lightclients.solomachine.v3.SignatureAndData.encode(message.signature_two, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; - return CommitmentProof; - })(); + /** + * Encodes the specified Misbehaviour message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v3.Misbehaviour.verify|verify} messages. + * @function encodeDelimited + * @memberof ibc.lightclients.solomachine.v3.Misbehaviour + * @static + * @param {ibc.lightclients.solomachine.v3.IMisbehaviour} message Misbehaviour message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Misbehaviour.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - ics23.LeafOp = (function() { + /** + * Decodes a Misbehaviour message from the specified reader or buffer. + * @function decode + * @memberof ibc.lightclients.solomachine.v3.Misbehaviour + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {ibc.lightclients.solomachine.v3.Misbehaviour} Misbehaviour + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Misbehaviour.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.solomachine.v3.Misbehaviour(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.sequence = reader.uint64(); + break; + case 2: + message.signature_one = $root.ibc.lightclients.solomachine.v3.SignatureAndData.decode(reader, reader.uint32()); + break; + case 3: + message.signature_two = $root.ibc.lightclients.solomachine.v3.SignatureAndData.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Properties of a LeafOp. - * @memberof ics23 - * @interface ILeafOp - * @property {ics23.HashOp|null} [hash] LeafOp hash - * @property {ics23.HashOp|null} [prehash_key] LeafOp prehash_key - * @property {ics23.HashOp|null} [prehash_value] LeafOp prehash_value - * @property {ics23.LengthOp|null} [length] LeafOp length - * @property {Uint8Array|null} [prefix] LeafOp prefix - */ + /** + * Decodes a Misbehaviour message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof ibc.lightclients.solomachine.v3.Misbehaviour + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {ibc.lightclients.solomachine.v3.Misbehaviour} Misbehaviour + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Misbehaviour.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Constructs a new LeafOp. - * @memberof ics23 - * @classdesc LeafOp represents the raw key-value data we wish to prove, and - * must be flexible to represent the internal transformation from - * the original key-value pairs into the basis hash, for many existing - * merkle trees. - * - * key and value are passed in. So that the signature of this operation is: - * leafOp(key, value) -> output - * - * To process this, first prehash the keys and values if needed (ANY means no hash in this case): - * hkey = prehashKey(key) - * hvalue = prehashValue(value) - * - * Then combine the bytes, and hash it - * output = hash(prefix || length(hkey) || hkey || length(hvalue) || hvalue) - * @implements ILeafOp - * @constructor - * @param {ics23.ILeafOp=} [properties] Properties to set - */ - function LeafOp(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Verifies a Misbehaviour message. + * @function verify + * @memberof ibc.lightclients.solomachine.v3.Misbehaviour + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Misbehaviour.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.sequence != null && message.hasOwnProperty("sequence")) + if (!$util.isInteger(message.sequence) && !(message.sequence && $util.isInteger(message.sequence.low) && $util.isInteger(message.sequence.high))) + return "sequence: integer|Long expected"; + if (message.signature_one != null && message.hasOwnProperty("signature_one")) { + let error = $root.ibc.lightclients.solomachine.v3.SignatureAndData.verify(message.signature_one); + if (error) + return "signature_one." + error; + } + if (message.signature_two != null && message.hasOwnProperty("signature_two")) { + let error = $root.ibc.lightclients.solomachine.v3.SignatureAndData.verify(message.signature_two); + if (error) + return "signature_two." + error; + } + return null; + }; - /** - * LeafOp hash. - * @member {ics23.HashOp} hash - * @memberof ics23.LeafOp - * @instance - */ - LeafOp.prototype.hash = 0; + /** + * Creates a Misbehaviour message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof ibc.lightclients.solomachine.v3.Misbehaviour + * @static + * @param {Object.} object Plain object + * @returns {ibc.lightclients.solomachine.v3.Misbehaviour} Misbehaviour + */ + Misbehaviour.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.lightclients.solomachine.v3.Misbehaviour) + return object; + let message = new $root.ibc.lightclients.solomachine.v3.Misbehaviour(); + if (object.sequence != null) + if ($util.Long) + (message.sequence = $util.Long.fromValue(object.sequence)).unsigned = true; + else if (typeof object.sequence === "string") + message.sequence = parseInt(object.sequence, 10); + else if (typeof object.sequence === "number") + message.sequence = object.sequence; + else if (typeof object.sequence === "object") + message.sequence = new $util.LongBits(object.sequence.low >>> 0, object.sequence.high >>> 0).toNumber(true); + if (object.signature_one != null) { + if (typeof object.signature_one !== "object") + throw TypeError(".ibc.lightclients.solomachine.v3.Misbehaviour.signature_one: object expected"); + message.signature_one = $root.ibc.lightclients.solomachine.v3.SignatureAndData.fromObject(object.signature_one); + } + if (object.signature_two != null) { + if (typeof object.signature_two !== "object") + throw TypeError(".ibc.lightclients.solomachine.v3.Misbehaviour.signature_two: object expected"); + message.signature_two = $root.ibc.lightclients.solomachine.v3.SignatureAndData.fromObject(object.signature_two); + } + return message; + }; - /** - * LeafOp prehash_key. - * @member {ics23.HashOp} prehash_key - * @memberof ics23.LeafOp - * @instance - */ - LeafOp.prototype.prehash_key = 0; + /** + * Creates a plain object from a Misbehaviour message. Also converts values to other types if specified. + * @function toObject + * @memberof ibc.lightclients.solomachine.v3.Misbehaviour + * @static + * @param {ibc.lightclients.solomachine.v3.Misbehaviour} message Misbehaviour + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Misbehaviour.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + if ($util.Long) { + let long = new $util.Long(0, 0, true); + object.sequence = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.sequence = options.longs === String ? "0" : 0; + object.signature_one = null; + object.signature_two = null; + } + if (message.sequence != null && message.hasOwnProperty("sequence")) + if (typeof message.sequence === "number") + object.sequence = options.longs === String ? String(message.sequence) : message.sequence; + else + object.sequence = options.longs === String ? $util.Long.prototype.toString.call(message.sequence) : options.longs === Number ? new $util.LongBits(message.sequence.low >>> 0, message.sequence.high >>> 0).toNumber(true) : message.sequence; + if (message.signature_one != null && message.hasOwnProperty("signature_one")) + object.signature_one = $root.ibc.lightclients.solomachine.v3.SignatureAndData.toObject(message.signature_one, options); + if (message.signature_two != null && message.hasOwnProperty("signature_two")) + object.signature_two = $root.ibc.lightclients.solomachine.v3.SignatureAndData.toObject(message.signature_two, options); + return object; + }; - /** - * LeafOp prehash_value. - * @member {ics23.HashOp} prehash_value - * @memberof ics23.LeafOp - * @instance - */ - LeafOp.prototype.prehash_value = 0; + /** + * Converts this Misbehaviour to JSON. + * @function toJSON + * @memberof ibc.lightclients.solomachine.v3.Misbehaviour + * @instance + * @returns {Object.} JSON object + */ + Misbehaviour.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * LeafOp length. - * @member {ics23.LengthOp} length - * @memberof ics23.LeafOp - * @instance - */ - LeafOp.prototype.length = 0; + return Misbehaviour; + })(); - /** - * LeafOp prefix. - * @member {Uint8Array} prefix - * @memberof ics23.LeafOp - * @instance - */ - LeafOp.prototype.prefix = $util.newBuffer([]); + v3.SignatureAndData = (function() { - /** - * Encodes the specified LeafOp message. Does not implicitly {@link ics23.LeafOp.verify|verify} messages. - * @function encode - * @memberof ics23.LeafOp - * @static - * @param {ics23.ILeafOp} message LeafOp message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - LeafOp.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.hash != null && Object.hasOwnProperty.call(message, "hash")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.hash); - if (message.prehash_key != null && Object.hasOwnProperty.call(message, "prehash_key")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.prehash_key); - if (message.prehash_value != null && Object.hasOwnProperty.call(message, "prehash_value")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.prehash_value); - if (message.length != null && Object.hasOwnProperty.call(message, "length")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.length); - if (message.prefix != null && Object.hasOwnProperty.call(message, "prefix")) - writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.prefix); - return writer; - }; + /** + * Properties of a SignatureAndData. + * @memberof ibc.lightclients.solomachine.v3 + * @interface ISignatureAndData + * @property {Uint8Array|null} [signature] SignatureAndData signature + * @property {Uint8Array|null} [path] SignatureAndData path + * @property {Uint8Array|null} [data] SignatureAndData data + * @property {Long|null} [timestamp] SignatureAndData timestamp + */ - /** - * Encodes the specified LeafOp message, length delimited. Does not implicitly {@link ics23.LeafOp.verify|verify} messages. - * @function encodeDelimited - * @memberof ics23.LeafOp - * @static - * @param {ics23.ILeafOp} message LeafOp message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - LeafOp.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Constructs a new SignatureAndData. + * @memberof ibc.lightclients.solomachine.v3 + * @classdesc Represents a SignatureAndData. + * @implements ISignatureAndData + * @constructor + * @param {ibc.lightclients.solomachine.v3.ISignatureAndData=} [properties] Properties to set + */ + function SignatureAndData(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Decodes a LeafOp message from the specified reader or buffer. - * @function decode - * @memberof ics23.LeafOp - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {ics23.LeafOp} LeafOp - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - LeafOp.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ics23.LeafOp(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.hash = reader.int32(); - break; - case 2: - message.prehash_key = reader.int32(); - break; - case 3: - message.prehash_value = reader.int32(); - break; - case 4: - message.length = reader.int32(); - break; - case 5: - message.prefix = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * SignatureAndData signature. + * @member {Uint8Array} signature + * @memberof ibc.lightclients.solomachine.v3.SignatureAndData + * @instance + */ + SignatureAndData.prototype.signature = $util.newBuffer([]); - /** - * Decodes a LeafOp message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ics23.LeafOp - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ics23.LeafOp} LeafOp - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - LeafOp.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * SignatureAndData path. + * @member {Uint8Array} path + * @memberof ibc.lightclients.solomachine.v3.SignatureAndData + * @instance + */ + SignatureAndData.prototype.path = $util.newBuffer([]); - /** - * Verifies a LeafOp message. - * @function verify - * @memberof ics23.LeafOp - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - LeafOp.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.hash != null && message.hasOwnProperty("hash")) - switch (message.hash) { - default: - return "hash: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - break; - } - if (message.prehash_key != null && message.hasOwnProperty("prehash_key")) - switch (message.prehash_key) { - default: - return "prehash_key: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - break; - } - if (message.prehash_value != null && message.hasOwnProperty("prehash_value")) - switch (message.prehash_value) { - default: - return "prehash_value: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - break; - } - if (message.length != null && message.hasOwnProperty("length")) - switch (message.length) { - default: - return "length: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - break; - } - if (message.prefix != null && message.hasOwnProperty("prefix")) - if (!(message.prefix && typeof message.prefix.length === "number" || $util.isString(message.prefix))) - return "prefix: buffer expected"; - return null; - }; + /** + * SignatureAndData data. + * @member {Uint8Array} data + * @memberof ibc.lightclients.solomachine.v3.SignatureAndData + * @instance + */ + SignatureAndData.prototype.data = $util.newBuffer([]); - /** - * Creates a LeafOp message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof ics23.LeafOp - * @static - * @param {Object.} object Plain object - * @returns {ics23.LeafOp} LeafOp - */ - LeafOp.fromObject = function fromObject(object) { - if (object instanceof $root.ics23.LeafOp) - return object; - let message = new $root.ics23.LeafOp(); - switch (object.hash) { - case "NO_HASH": - case 0: - message.hash = 0; - break; - case "SHA256": - case 1: - message.hash = 1; - break; - case "SHA512": - case 2: - message.hash = 2; - break; - case "KECCAK": - case 3: - message.hash = 3; - break; - case "RIPEMD160": - case 4: - message.hash = 4; - break; - case "BITCOIN": - case 5: - message.hash = 5; - break; - } - switch (object.prehash_key) { - case "NO_HASH": - case 0: - message.prehash_key = 0; - break; - case "SHA256": - case 1: - message.prehash_key = 1; - break; - case "SHA512": - case 2: - message.prehash_key = 2; - break; - case "KECCAK": - case 3: - message.prehash_key = 3; - break; - case "RIPEMD160": - case 4: - message.prehash_key = 4; - break; - case "BITCOIN": - case 5: - message.prehash_key = 5; - break; - } - switch (object.prehash_value) { - case "NO_HASH": - case 0: - message.prehash_value = 0; - break; - case "SHA256": - case 1: - message.prehash_value = 1; - break; - case "SHA512": - case 2: - message.prehash_value = 2; - break; - case "KECCAK": - case 3: - message.prehash_value = 3; - break; - case "RIPEMD160": - case 4: - message.prehash_value = 4; - break; - case "BITCOIN": - case 5: - message.prehash_value = 5; - break; - } - switch (object.length) { - case "NO_PREFIX": - case 0: - message.length = 0; - break; - case "VAR_PROTO": - case 1: - message.length = 1; - break; - case "VAR_RLP": - case 2: - message.length = 2; - break; - case "FIXED32_BIG": - case 3: - message.length = 3; - break; - case "FIXED32_LITTLE": - case 4: - message.length = 4; - break; - case "FIXED64_BIG": - case 5: - message.length = 5; - break; - case "FIXED64_LITTLE": - case 6: - message.length = 6; - break; - case "REQUIRE_32_BYTES": - case 7: - message.length = 7; - break; - case "REQUIRE_64_BYTES": - case 8: - message.length = 8; - break; - } - if (object.prefix != null) - if (typeof object.prefix === "string") - $util.base64.decode(object.prefix, message.prefix = $util.newBuffer($util.base64.length(object.prefix)), 0); - else if (object.prefix.length) - message.prefix = object.prefix; - return message; - }; + /** + * SignatureAndData timestamp. + * @member {Long} timestamp + * @memberof ibc.lightclients.solomachine.v3.SignatureAndData + * @instance + */ + SignatureAndData.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - /** - * Creates a plain object from a LeafOp message. Also converts values to other types if specified. - * @function toObject - * @memberof ics23.LeafOp - * @static - * @param {ics23.LeafOp} message LeafOp - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - LeafOp.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - object.hash = options.enums === String ? "NO_HASH" : 0; - object.prehash_key = options.enums === String ? "NO_HASH" : 0; - object.prehash_value = options.enums === String ? "NO_HASH" : 0; - object.length = options.enums === String ? "NO_PREFIX" : 0; - if (options.bytes === String) - object.prefix = ""; - else { - object.prefix = []; - if (options.bytes !== Array) - object.prefix = $util.newBuffer(object.prefix); - } - } - if (message.hash != null && message.hasOwnProperty("hash")) - object.hash = options.enums === String ? $root.ics23.HashOp[message.hash] : message.hash; - if (message.prehash_key != null && message.hasOwnProperty("prehash_key")) - object.prehash_key = options.enums === String ? $root.ics23.HashOp[message.prehash_key] : message.prehash_key; - if (message.prehash_value != null && message.hasOwnProperty("prehash_value")) - object.prehash_value = options.enums === String ? $root.ics23.HashOp[message.prehash_value] : message.prehash_value; - if (message.length != null && message.hasOwnProperty("length")) - object.length = options.enums === String ? $root.ics23.LengthOp[message.length] : message.length; - if (message.prefix != null && message.hasOwnProperty("prefix")) - object.prefix = options.bytes === String ? $util.base64.encode(message.prefix, 0, message.prefix.length) : options.bytes === Array ? Array.prototype.slice.call(message.prefix) : message.prefix; - return object; - }; + /** + * Encodes the specified SignatureAndData message. Does not implicitly {@link ibc.lightclients.solomachine.v3.SignatureAndData.verify|verify} messages. + * @function encode + * @memberof ibc.lightclients.solomachine.v3.SignatureAndData + * @static + * @param {ibc.lightclients.solomachine.v3.ISignatureAndData} message SignatureAndData message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SignatureAndData.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.signature != null && Object.hasOwnProperty.call(message, "signature")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.signature); + if (message.path != null && Object.hasOwnProperty.call(message, "path")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.path); + if (message.data != null && Object.hasOwnProperty.call(message, "data")) + writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.data); + if (message.timestamp != null && Object.hasOwnProperty.call(message, "timestamp")) + writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.timestamp); + return writer; + }; - /** - * Converts this LeafOp to JSON. - * @function toJSON - * @memberof ics23.LeafOp - * @instance - * @returns {Object.} JSON object - */ - LeafOp.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Encodes the specified SignatureAndData message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v3.SignatureAndData.verify|verify} messages. + * @function encodeDelimited + * @memberof ibc.lightclients.solomachine.v3.SignatureAndData + * @static + * @param {ibc.lightclients.solomachine.v3.ISignatureAndData} message SignatureAndData message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SignatureAndData.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - return LeafOp; - })(); + /** + * Decodes a SignatureAndData message from the specified reader or buffer. + * @function decode + * @memberof ibc.lightclients.solomachine.v3.SignatureAndData + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {ibc.lightclients.solomachine.v3.SignatureAndData} SignatureAndData + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SignatureAndData.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.solomachine.v3.SignatureAndData(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.signature = reader.bytes(); + break; + case 2: + message.path = reader.bytes(); + break; + case 3: + message.data = reader.bytes(); + break; + case 4: + message.timestamp = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - ics23.InnerOp = (function() { + /** + * Decodes a SignatureAndData message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof ibc.lightclients.solomachine.v3.SignatureAndData + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {ibc.lightclients.solomachine.v3.SignatureAndData} SignatureAndData + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SignatureAndData.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Properties of an InnerOp. - * @memberof ics23 - * @interface IInnerOp - * @property {ics23.HashOp|null} [hash] InnerOp hash - * @property {Uint8Array|null} [prefix] InnerOp prefix - * @property {Uint8Array|null} [suffix] InnerOp suffix - */ + /** + * Verifies a SignatureAndData message. + * @function verify + * @memberof ibc.lightclients.solomachine.v3.SignatureAndData + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SignatureAndData.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.signature != null && message.hasOwnProperty("signature")) + if (!(message.signature && typeof message.signature.length === "number" || $util.isString(message.signature))) + return "signature: buffer expected"; + if (message.path != null && message.hasOwnProperty("path")) + if (!(message.path && typeof message.path.length === "number" || $util.isString(message.path))) + return "path: buffer expected"; + if (message.data != null && message.hasOwnProperty("data")) + if (!(message.data && typeof message.data.length === "number" || $util.isString(message.data))) + return "data: buffer expected"; + if (message.timestamp != null && message.hasOwnProperty("timestamp")) + if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high))) + return "timestamp: integer|Long expected"; + return null; + }; - /** - * Constructs a new InnerOp. - * @memberof ics23 - * @classdesc InnerOp represents a merkle-proof step that is not a leaf. - * It represents concatenating two children and hashing them to provide the next result. - * - * The result of the previous step is passed in, so the signature of this op is: - * innerOp(child) -> output - * - * The result of applying InnerOp should be: - * output = op.hash(op.prefix || child || op.suffix) - * - * where the || operator is concatenation of binary data, - * and child is the result of hashing all the tree below this step. - * - * Any special data, like prepending child with the length, or prepending the entire operation with - * some value to differentiate from leaf nodes, should be included in prefix and suffix. - * If either of prefix or suffix is empty, we just treat it as an empty string - * @implements IInnerOp - * @constructor - * @param {ics23.IInnerOp=} [properties] Properties to set - */ - function InnerOp(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Creates a SignatureAndData message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof ibc.lightclients.solomachine.v3.SignatureAndData + * @static + * @param {Object.} object Plain object + * @returns {ibc.lightclients.solomachine.v3.SignatureAndData} SignatureAndData + */ + SignatureAndData.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.lightclients.solomachine.v3.SignatureAndData) + return object; + let message = new $root.ibc.lightclients.solomachine.v3.SignatureAndData(); + if (object.signature != null) + if (typeof object.signature === "string") + $util.base64.decode(object.signature, message.signature = $util.newBuffer($util.base64.length(object.signature)), 0); + else if (object.signature.length) + message.signature = object.signature; + if (object.path != null) + if (typeof object.path === "string") + $util.base64.decode(object.path, message.path = $util.newBuffer($util.base64.length(object.path)), 0); + else if (object.path.length) + message.path = object.path; + if (object.data != null) + if (typeof object.data === "string") + $util.base64.decode(object.data, message.data = $util.newBuffer($util.base64.length(object.data)), 0); + else if (object.data.length) + message.data = object.data; + if (object.timestamp != null) + if ($util.Long) + (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true; + else if (typeof object.timestamp === "string") + message.timestamp = parseInt(object.timestamp, 10); + else if (typeof object.timestamp === "number") + message.timestamp = object.timestamp; + else if (typeof object.timestamp === "object") + message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true); + return message; + }; - /** - * InnerOp hash. - * @member {ics23.HashOp} hash - * @memberof ics23.InnerOp - * @instance - */ - InnerOp.prototype.hash = 0; + /** + * Creates a plain object from a SignatureAndData message. Also converts values to other types if specified. + * @function toObject + * @memberof ibc.lightclients.solomachine.v3.SignatureAndData + * @static + * @param {ibc.lightclients.solomachine.v3.SignatureAndData} message SignatureAndData + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SignatureAndData.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + if (options.bytes === String) + object.signature = ""; + else { + object.signature = []; + if (options.bytes !== Array) + object.signature = $util.newBuffer(object.signature); + } + if (options.bytes === String) + object.path = ""; + else { + object.path = []; + if (options.bytes !== Array) + object.path = $util.newBuffer(object.path); + } + if (options.bytes === String) + object.data = ""; + else { + object.data = []; + if (options.bytes !== Array) + object.data = $util.newBuffer(object.data); + } + if ($util.Long) { + let long = new $util.Long(0, 0, true); + object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.timestamp = options.longs === String ? "0" : 0; + } + if (message.signature != null && message.hasOwnProperty("signature")) + object.signature = options.bytes === String ? $util.base64.encode(message.signature, 0, message.signature.length) : options.bytes === Array ? Array.prototype.slice.call(message.signature) : message.signature; + if (message.path != null && message.hasOwnProperty("path")) + object.path = options.bytes === String ? $util.base64.encode(message.path, 0, message.path.length) : options.bytes === Array ? Array.prototype.slice.call(message.path) : message.path; + if (message.data != null && message.hasOwnProperty("data")) + object.data = options.bytes === String ? $util.base64.encode(message.data, 0, message.data.length) : options.bytes === Array ? Array.prototype.slice.call(message.data) : message.data; + if (message.timestamp != null && message.hasOwnProperty("timestamp")) + if (typeof message.timestamp === "number") + object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp; + else + object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber(true) : message.timestamp; + return object; + }; - /** - * InnerOp prefix. - * @member {Uint8Array} prefix - * @memberof ics23.InnerOp - * @instance - */ - InnerOp.prototype.prefix = $util.newBuffer([]); + /** + * Converts this SignatureAndData to JSON. + * @function toJSON + * @memberof ibc.lightclients.solomachine.v3.SignatureAndData + * @instance + * @returns {Object.} JSON object + */ + SignatureAndData.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * InnerOp suffix. - * @member {Uint8Array} suffix - * @memberof ics23.InnerOp - * @instance - */ - InnerOp.prototype.suffix = $util.newBuffer([]); + return SignatureAndData; + })(); - /** - * Encodes the specified InnerOp message. Does not implicitly {@link ics23.InnerOp.verify|verify} messages. - * @function encode - * @memberof ics23.InnerOp - * @static - * @param {ics23.IInnerOp} message InnerOp message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - InnerOp.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.hash != null && Object.hasOwnProperty.call(message, "hash")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.hash); - if (message.prefix != null && Object.hasOwnProperty.call(message, "prefix")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.prefix); - if (message.suffix != null && Object.hasOwnProperty.call(message, "suffix")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.suffix); - return writer; - }; + v3.TimestampedSignatureData = (function() { - /** - * Encodes the specified InnerOp message, length delimited. Does not implicitly {@link ics23.InnerOp.verify|verify} messages. - * @function encodeDelimited - * @memberof ics23.InnerOp - * @static - * @param {ics23.IInnerOp} message InnerOp message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - InnerOp.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Properties of a TimestampedSignatureData. + * @memberof ibc.lightclients.solomachine.v3 + * @interface ITimestampedSignatureData + * @property {Uint8Array|null} [signature_data] TimestampedSignatureData signature_data + * @property {Long|null} [timestamp] TimestampedSignatureData timestamp + */ - /** - * Decodes an InnerOp message from the specified reader or buffer. - * @function decode - * @memberof ics23.InnerOp - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {ics23.InnerOp} InnerOp - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - InnerOp.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ics23.InnerOp(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.hash = reader.int32(); - break; - case 2: - message.prefix = reader.bytes(); - break; - case 3: - message.suffix = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Constructs a new TimestampedSignatureData. + * @memberof ibc.lightclients.solomachine.v3 + * @classdesc Represents a TimestampedSignatureData. + * @implements ITimestampedSignatureData + * @constructor + * @param {ibc.lightclients.solomachine.v3.ITimestampedSignatureData=} [properties] Properties to set + */ + function TimestampedSignatureData(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Decodes an InnerOp message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ics23.InnerOp - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ics23.InnerOp} InnerOp - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - InnerOp.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * TimestampedSignatureData signature_data. + * @member {Uint8Array} signature_data + * @memberof ibc.lightclients.solomachine.v3.TimestampedSignatureData + * @instance + */ + TimestampedSignatureData.prototype.signature_data = $util.newBuffer([]); - /** - * Verifies an InnerOp message. - * @function verify - * @memberof ics23.InnerOp - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - InnerOp.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.hash != null && message.hasOwnProperty("hash")) - switch (message.hash) { - default: - return "hash: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - break; - } - if (message.prefix != null && message.hasOwnProperty("prefix")) - if (!(message.prefix && typeof message.prefix.length === "number" || $util.isString(message.prefix))) - return "prefix: buffer expected"; - if (message.suffix != null && message.hasOwnProperty("suffix")) - if (!(message.suffix && typeof message.suffix.length === "number" || $util.isString(message.suffix))) - return "suffix: buffer expected"; - return null; - }; + /** + * TimestampedSignatureData timestamp. + * @member {Long} timestamp + * @memberof ibc.lightclients.solomachine.v3.TimestampedSignatureData + * @instance + */ + TimestampedSignatureData.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - /** - * Creates an InnerOp message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof ics23.InnerOp - * @static - * @param {Object.} object Plain object - * @returns {ics23.InnerOp} InnerOp - */ - InnerOp.fromObject = function fromObject(object) { - if (object instanceof $root.ics23.InnerOp) - return object; - let message = new $root.ics23.InnerOp(); - switch (object.hash) { - case "NO_HASH": - case 0: - message.hash = 0; - break; - case "SHA256": - case 1: - message.hash = 1; - break; - case "SHA512": - case 2: - message.hash = 2; - break; - case "KECCAK": - case 3: - message.hash = 3; - break; - case "RIPEMD160": - case 4: - message.hash = 4; - break; - case "BITCOIN": - case 5: - message.hash = 5; - break; - } - if (object.prefix != null) - if (typeof object.prefix === "string") - $util.base64.decode(object.prefix, message.prefix = $util.newBuffer($util.base64.length(object.prefix)), 0); - else if (object.prefix.length) - message.prefix = object.prefix; - if (object.suffix != null) - if (typeof object.suffix === "string") - $util.base64.decode(object.suffix, message.suffix = $util.newBuffer($util.base64.length(object.suffix)), 0); - else if (object.suffix.length) - message.suffix = object.suffix; - return message; - }; + /** + * Encodes the specified TimestampedSignatureData message. Does not implicitly {@link ibc.lightclients.solomachine.v3.TimestampedSignatureData.verify|verify} messages. + * @function encode + * @memberof ibc.lightclients.solomachine.v3.TimestampedSignatureData + * @static + * @param {ibc.lightclients.solomachine.v3.ITimestampedSignatureData} message TimestampedSignatureData message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TimestampedSignatureData.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.signature_data != null && Object.hasOwnProperty.call(message, "signature_data")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.signature_data); + if (message.timestamp != null && Object.hasOwnProperty.call(message, "timestamp")) + writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.timestamp); + return writer; + }; - /** - * Creates a plain object from an InnerOp message. Also converts values to other types if specified. - * @function toObject - * @memberof ics23.InnerOp - * @static - * @param {ics23.InnerOp} message InnerOp - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - InnerOp.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - object.hash = options.enums === String ? "NO_HASH" : 0; - if (options.bytes === String) - object.prefix = ""; - else { - object.prefix = []; - if (options.bytes !== Array) - object.prefix = $util.newBuffer(object.prefix); - } - if (options.bytes === String) - object.suffix = ""; - else { - object.suffix = []; - if (options.bytes !== Array) - object.suffix = $util.newBuffer(object.suffix); - } - } - if (message.hash != null && message.hasOwnProperty("hash")) - object.hash = options.enums === String ? $root.ics23.HashOp[message.hash] : message.hash; - if (message.prefix != null && message.hasOwnProperty("prefix")) - object.prefix = options.bytes === String ? $util.base64.encode(message.prefix, 0, message.prefix.length) : options.bytes === Array ? Array.prototype.slice.call(message.prefix) : message.prefix; - if (message.suffix != null && message.hasOwnProperty("suffix")) - object.suffix = options.bytes === String ? $util.base64.encode(message.suffix, 0, message.suffix.length) : options.bytes === Array ? Array.prototype.slice.call(message.suffix) : message.suffix; - return object; - }; + /** + * Encodes the specified TimestampedSignatureData message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v3.TimestampedSignatureData.verify|verify} messages. + * @function encodeDelimited + * @memberof ibc.lightclients.solomachine.v3.TimestampedSignatureData + * @static + * @param {ibc.lightclients.solomachine.v3.ITimestampedSignatureData} message TimestampedSignatureData message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TimestampedSignatureData.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Converts this InnerOp to JSON. - * @function toJSON - * @memberof ics23.InnerOp - * @instance - * @returns {Object.} JSON object - */ - InnerOp.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Decodes a TimestampedSignatureData message from the specified reader or buffer. + * @function decode + * @memberof ibc.lightclients.solomachine.v3.TimestampedSignatureData + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {ibc.lightclients.solomachine.v3.TimestampedSignatureData} TimestampedSignatureData + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TimestampedSignatureData.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.solomachine.v3.TimestampedSignatureData(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.signature_data = reader.bytes(); + break; + case 2: + message.timestamp = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - return InnerOp; - })(); + /** + * Decodes a TimestampedSignatureData message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof ibc.lightclients.solomachine.v3.TimestampedSignatureData + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {ibc.lightclients.solomachine.v3.TimestampedSignatureData} TimestampedSignatureData + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TimestampedSignatureData.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - ics23.ProofSpec = (function() { + /** + * Verifies a TimestampedSignatureData message. + * @function verify + * @memberof ibc.lightclients.solomachine.v3.TimestampedSignatureData + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TimestampedSignatureData.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.signature_data != null && message.hasOwnProperty("signature_data")) + if (!(message.signature_data && typeof message.signature_data.length === "number" || $util.isString(message.signature_data))) + return "signature_data: buffer expected"; + if (message.timestamp != null && message.hasOwnProperty("timestamp")) + if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high))) + return "timestamp: integer|Long expected"; + return null; + }; - /** - * Properties of a ProofSpec. - * @memberof ics23 - * @interface IProofSpec - * @property {ics23.ILeafOp|null} [leaf_spec] ProofSpec leaf_spec - * @property {ics23.IInnerSpec|null} [inner_spec] ProofSpec inner_spec - * @property {number|null} [max_depth] ProofSpec max_depth - * @property {number|null} [min_depth] ProofSpec min_depth - */ + /** + * Creates a TimestampedSignatureData message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof ibc.lightclients.solomachine.v3.TimestampedSignatureData + * @static + * @param {Object.} object Plain object + * @returns {ibc.lightclients.solomachine.v3.TimestampedSignatureData} TimestampedSignatureData + */ + TimestampedSignatureData.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.lightclients.solomachine.v3.TimestampedSignatureData) + return object; + let message = new $root.ibc.lightclients.solomachine.v3.TimestampedSignatureData(); + if (object.signature_data != null) + if (typeof object.signature_data === "string") + $util.base64.decode(object.signature_data, message.signature_data = $util.newBuffer($util.base64.length(object.signature_data)), 0); + else if (object.signature_data.length) + message.signature_data = object.signature_data; + if (object.timestamp != null) + if ($util.Long) + (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true; + else if (typeof object.timestamp === "string") + message.timestamp = parseInt(object.timestamp, 10); + else if (typeof object.timestamp === "number") + message.timestamp = object.timestamp; + else if (typeof object.timestamp === "object") + message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true); + return message; + }; - /** - * Constructs a new ProofSpec. - * @memberof ics23 - * @classdesc ProofSpec defines what the expected parameters are for a given proof type. - * This can be stored in the client and used to validate any incoming proofs. - * - * verify(ProofSpec, Proof) -> Proof | Error - * - * As demonstrated in tests, if we don't fix the algorithm used to calculate the - * LeafHash for a given tree, there are many possible key-value pairs that can - * generate a given hash (by interpretting the preimage differently). - * We need this for proper security, requires client knows a priori what - * tree format server uses. But not in code, rather a configuration object. - * @implements IProofSpec - * @constructor - * @param {ics23.IProofSpec=} [properties] Properties to set - */ - function ProofSpec(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Creates a plain object from a TimestampedSignatureData message. Also converts values to other types if specified. + * @function toObject + * @memberof ibc.lightclients.solomachine.v3.TimestampedSignatureData + * @static + * @param {ibc.lightclients.solomachine.v3.TimestampedSignatureData} message TimestampedSignatureData + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + TimestampedSignatureData.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + if (options.bytes === String) + object.signature_data = ""; + else { + object.signature_data = []; + if (options.bytes !== Array) + object.signature_data = $util.newBuffer(object.signature_data); + } + if ($util.Long) { + let long = new $util.Long(0, 0, true); + object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.timestamp = options.longs === String ? "0" : 0; + } + if (message.signature_data != null && message.hasOwnProperty("signature_data")) + object.signature_data = options.bytes === String ? $util.base64.encode(message.signature_data, 0, message.signature_data.length) : options.bytes === Array ? Array.prototype.slice.call(message.signature_data) : message.signature_data; + if (message.timestamp != null && message.hasOwnProperty("timestamp")) + if (typeof message.timestamp === "number") + object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp; + else + object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber(true) : message.timestamp; + return object; + }; - /** - * ProofSpec leaf_spec. - * @member {ics23.ILeafOp|null|undefined} leaf_spec - * @memberof ics23.ProofSpec - * @instance - */ - ProofSpec.prototype.leaf_spec = null; + /** + * Converts this TimestampedSignatureData to JSON. + * @function toJSON + * @memberof ibc.lightclients.solomachine.v3.TimestampedSignatureData + * @instance + * @returns {Object.} JSON object + */ + TimestampedSignatureData.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * ProofSpec inner_spec. - * @member {ics23.IInnerSpec|null|undefined} inner_spec - * @memberof ics23.ProofSpec - * @instance - */ - ProofSpec.prototype.inner_spec = null; + return TimestampedSignatureData; + })(); - /** - * ProofSpec max_depth. - * @member {number} max_depth - * @memberof ics23.ProofSpec - * @instance - */ - ProofSpec.prototype.max_depth = 0; + v3.SignBytes = (function() { - /** - * ProofSpec min_depth. - * @member {number} min_depth - * @memberof ics23.ProofSpec - * @instance - */ - ProofSpec.prototype.min_depth = 0; + /** + * Properties of a SignBytes. + * @memberof ibc.lightclients.solomachine.v3 + * @interface ISignBytes + * @property {Long|null} [sequence] SignBytes sequence + * @property {Long|null} [timestamp] SignBytes timestamp + * @property {string|null} [diversifier] SignBytes diversifier + * @property {Uint8Array|null} [path] SignBytes path + * @property {Uint8Array|null} [data] SignBytes data + */ - /** - * Encodes the specified ProofSpec message. Does not implicitly {@link ics23.ProofSpec.verify|verify} messages. - * @function encode - * @memberof ics23.ProofSpec - * @static - * @param {ics23.IProofSpec} message ProofSpec message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ProofSpec.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.leaf_spec != null && Object.hasOwnProperty.call(message, "leaf_spec")) - $root.ics23.LeafOp.encode(message.leaf_spec, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.inner_spec != null && Object.hasOwnProperty.call(message, "inner_spec")) - $root.ics23.InnerSpec.encode(message.inner_spec, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.max_depth != null && Object.hasOwnProperty.call(message, "max_depth")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.max_depth); - if (message.min_depth != null && Object.hasOwnProperty.call(message, "min_depth")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.min_depth); - return writer; - }; + /** + * Constructs a new SignBytes. + * @memberof ibc.lightclients.solomachine.v3 + * @classdesc Represents a SignBytes. + * @implements ISignBytes + * @constructor + * @param {ibc.lightclients.solomachine.v3.ISignBytes=} [properties] Properties to set + */ + function SignBytes(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Encodes the specified ProofSpec message, length delimited. Does not implicitly {@link ics23.ProofSpec.verify|verify} messages. - * @function encodeDelimited - * @memberof ics23.ProofSpec - * @static - * @param {ics23.IProofSpec} message ProofSpec message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ProofSpec.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * SignBytes sequence. + * @member {Long} sequence + * @memberof ibc.lightclients.solomachine.v3.SignBytes + * @instance + */ + SignBytes.prototype.sequence = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - /** - * Decodes a ProofSpec message from the specified reader or buffer. - * @function decode - * @memberof ics23.ProofSpec - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {ics23.ProofSpec} ProofSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ProofSpec.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ics23.ProofSpec(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.leaf_spec = $root.ics23.LeafOp.decode(reader, reader.uint32()); - break; - case 2: - message.inner_spec = $root.ics23.InnerSpec.decode(reader, reader.uint32()); - break; - case 3: - message.max_depth = reader.int32(); - break; - case 4: - message.min_depth = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * SignBytes timestamp. + * @member {Long} timestamp + * @memberof ibc.lightclients.solomachine.v3.SignBytes + * @instance + */ + SignBytes.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - /** - * Decodes a ProofSpec message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ics23.ProofSpec - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ics23.ProofSpec} ProofSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ProofSpec.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * SignBytes diversifier. + * @member {string} diversifier + * @memberof ibc.lightclients.solomachine.v3.SignBytes + * @instance + */ + SignBytes.prototype.diversifier = ""; - /** - * Verifies a ProofSpec message. - * @function verify - * @memberof ics23.ProofSpec - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ProofSpec.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.leaf_spec != null && message.hasOwnProperty("leaf_spec")) { - let error = $root.ics23.LeafOp.verify(message.leaf_spec); - if (error) - return "leaf_spec." + error; - } - if (message.inner_spec != null && message.hasOwnProperty("inner_spec")) { - let error = $root.ics23.InnerSpec.verify(message.inner_spec); - if (error) - return "inner_spec." + error; - } - if (message.max_depth != null && message.hasOwnProperty("max_depth")) - if (!$util.isInteger(message.max_depth)) - return "max_depth: integer expected"; - if (message.min_depth != null && message.hasOwnProperty("min_depth")) - if (!$util.isInteger(message.min_depth)) - return "min_depth: integer expected"; - return null; - }; + /** + * SignBytes path. + * @member {Uint8Array} path + * @memberof ibc.lightclients.solomachine.v3.SignBytes + * @instance + */ + SignBytes.prototype.path = $util.newBuffer([]); - /** - * Creates a ProofSpec message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof ics23.ProofSpec - * @static - * @param {Object.} object Plain object - * @returns {ics23.ProofSpec} ProofSpec - */ - ProofSpec.fromObject = function fromObject(object) { - if (object instanceof $root.ics23.ProofSpec) - return object; - let message = new $root.ics23.ProofSpec(); - if (object.leaf_spec != null) { - if (typeof object.leaf_spec !== "object") - throw TypeError(".ics23.ProofSpec.leaf_spec: object expected"); - message.leaf_spec = $root.ics23.LeafOp.fromObject(object.leaf_spec); - } - if (object.inner_spec != null) { - if (typeof object.inner_spec !== "object") - throw TypeError(".ics23.ProofSpec.inner_spec: object expected"); - message.inner_spec = $root.ics23.InnerSpec.fromObject(object.inner_spec); - } - if (object.max_depth != null) - message.max_depth = object.max_depth | 0; - if (object.min_depth != null) - message.min_depth = object.min_depth | 0; - return message; - }; + /** + * SignBytes data. + * @member {Uint8Array} data + * @memberof ibc.lightclients.solomachine.v3.SignBytes + * @instance + */ + SignBytes.prototype.data = $util.newBuffer([]); - /** - * Creates a plain object from a ProofSpec message. Also converts values to other types if specified. - * @function toObject - * @memberof ics23.ProofSpec - * @static - * @param {ics23.ProofSpec} message ProofSpec - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ProofSpec.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - object.leaf_spec = null; - object.inner_spec = null; - object.max_depth = 0; - object.min_depth = 0; - } - if (message.leaf_spec != null && message.hasOwnProperty("leaf_spec")) - object.leaf_spec = $root.ics23.LeafOp.toObject(message.leaf_spec, options); - if (message.inner_spec != null && message.hasOwnProperty("inner_spec")) - object.inner_spec = $root.ics23.InnerSpec.toObject(message.inner_spec, options); - if (message.max_depth != null && message.hasOwnProperty("max_depth")) - object.max_depth = message.max_depth; - if (message.min_depth != null && message.hasOwnProperty("min_depth")) - object.min_depth = message.min_depth; - return object; - }; + /** + * Encodes the specified SignBytes message. Does not implicitly {@link ibc.lightclients.solomachine.v3.SignBytes.verify|verify} messages. + * @function encode + * @memberof ibc.lightclients.solomachine.v3.SignBytes + * @static + * @param {ibc.lightclients.solomachine.v3.ISignBytes} message SignBytes message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SignBytes.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.sequence != null && Object.hasOwnProperty.call(message, "sequence")) + writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.sequence); + if (message.timestamp != null && Object.hasOwnProperty.call(message, "timestamp")) + writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.timestamp); + if (message.diversifier != null && Object.hasOwnProperty.call(message, "diversifier")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.diversifier); + if (message.path != null && Object.hasOwnProperty.call(message, "path")) + writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.path); + if (message.data != null && Object.hasOwnProperty.call(message, "data")) + writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.data); + return writer; + }; - /** - * Converts this ProofSpec to JSON. - * @function toJSON - * @memberof ics23.ProofSpec - * @instance - * @returns {Object.} JSON object - */ - ProofSpec.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Encodes the specified SignBytes message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v3.SignBytes.verify|verify} messages. + * @function encodeDelimited + * @memberof ibc.lightclients.solomachine.v3.SignBytes + * @static + * @param {ibc.lightclients.solomachine.v3.ISignBytes} message SignBytes message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SignBytes.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - return ProofSpec; - })(); + /** + * Decodes a SignBytes message from the specified reader or buffer. + * @function decode + * @memberof ibc.lightclients.solomachine.v3.SignBytes + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {ibc.lightclients.solomachine.v3.SignBytes} SignBytes + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SignBytes.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.solomachine.v3.SignBytes(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.sequence = reader.uint64(); + break; + case 2: + message.timestamp = reader.uint64(); + break; + case 3: + message.diversifier = reader.string(); + break; + case 4: + message.path = reader.bytes(); + break; + case 5: + message.data = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SignBytes message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof ibc.lightclients.solomachine.v3.SignBytes + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {ibc.lightclients.solomachine.v3.SignBytes} SignBytes + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SignBytes.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - ics23.InnerSpec = (function() { + /** + * Verifies a SignBytes message. + * @function verify + * @memberof ibc.lightclients.solomachine.v3.SignBytes + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SignBytes.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.sequence != null && message.hasOwnProperty("sequence")) + if (!$util.isInteger(message.sequence) && !(message.sequence && $util.isInteger(message.sequence.low) && $util.isInteger(message.sequence.high))) + return "sequence: integer|Long expected"; + if (message.timestamp != null && message.hasOwnProperty("timestamp")) + if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high))) + return "timestamp: integer|Long expected"; + if (message.diversifier != null && message.hasOwnProperty("diversifier")) + if (!$util.isString(message.diversifier)) + return "diversifier: string expected"; + if (message.path != null && message.hasOwnProperty("path")) + if (!(message.path && typeof message.path.length === "number" || $util.isString(message.path))) + return "path: buffer expected"; + if (message.data != null && message.hasOwnProperty("data")) + if (!(message.data && typeof message.data.length === "number" || $util.isString(message.data))) + return "data: buffer expected"; + return null; + }; - /** - * Properties of an InnerSpec. - * @memberof ics23 - * @interface IInnerSpec - * @property {Array.|null} [child_order] InnerSpec child_order - * @property {number|null} [child_size] InnerSpec child_size - * @property {number|null} [min_prefix_length] InnerSpec min_prefix_length - * @property {number|null} [max_prefix_length] InnerSpec max_prefix_length - * @property {Uint8Array|null} [empty_child] InnerSpec empty_child - * @property {ics23.HashOp|null} [hash] InnerSpec hash - */ + /** + * Creates a SignBytes message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof ibc.lightclients.solomachine.v3.SignBytes + * @static + * @param {Object.} object Plain object + * @returns {ibc.lightclients.solomachine.v3.SignBytes} SignBytes + */ + SignBytes.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.lightclients.solomachine.v3.SignBytes) + return object; + let message = new $root.ibc.lightclients.solomachine.v3.SignBytes(); + if (object.sequence != null) + if ($util.Long) + (message.sequence = $util.Long.fromValue(object.sequence)).unsigned = true; + else if (typeof object.sequence === "string") + message.sequence = parseInt(object.sequence, 10); + else if (typeof object.sequence === "number") + message.sequence = object.sequence; + else if (typeof object.sequence === "object") + message.sequence = new $util.LongBits(object.sequence.low >>> 0, object.sequence.high >>> 0).toNumber(true); + if (object.timestamp != null) + if ($util.Long) + (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true; + else if (typeof object.timestamp === "string") + message.timestamp = parseInt(object.timestamp, 10); + else if (typeof object.timestamp === "number") + message.timestamp = object.timestamp; + else if (typeof object.timestamp === "object") + message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true); + if (object.diversifier != null) + message.diversifier = String(object.diversifier); + if (object.path != null) + if (typeof object.path === "string") + $util.base64.decode(object.path, message.path = $util.newBuffer($util.base64.length(object.path)), 0); + else if (object.path.length) + message.path = object.path; + if (object.data != null) + if (typeof object.data === "string") + $util.base64.decode(object.data, message.data = $util.newBuffer($util.base64.length(object.data)), 0); + else if (object.data.length) + message.data = object.data; + return message; + }; - /** - * Constructs a new InnerSpec. - * @memberof ics23 - * @classdesc Represents an InnerSpec. - * @implements IInnerSpec - * @constructor - * @param {ics23.IInnerSpec=} [properties] Properties to set - */ - function InnerSpec(properties) { - this.child_order = []; - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Creates a plain object from a SignBytes message. Also converts values to other types if specified. + * @function toObject + * @memberof ibc.lightclients.solomachine.v3.SignBytes + * @static + * @param {ibc.lightclients.solomachine.v3.SignBytes} message SignBytes + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SignBytes.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + if ($util.Long) { + let long = new $util.Long(0, 0, true); + object.sequence = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.sequence = options.longs === String ? "0" : 0; + if ($util.Long) { + let long = new $util.Long(0, 0, true); + object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.timestamp = options.longs === String ? "0" : 0; + object.diversifier = ""; + if (options.bytes === String) + object.path = ""; + else { + object.path = []; + if (options.bytes !== Array) + object.path = $util.newBuffer(object.path); + } + if (options.bytes === String) + object.data = ""; + else { + object.data = []; + if (options.bytes !== Array) + object.data = $util.newBuffer(object.data); + } + } + if (message.sequence != null && message.hasOwnProperty("sequence")) + if (typeof message.sequence === "number") + object.sequence = options.longs === String ? String(message.sequence) : message.sequence; + else + object.sequence = options.longs === String ? $util.Long.prototype.toString.call(message.sequence) : options.longs === Number ? new $util.LongBits(message.sequence.low >>> 0, message.sequence.high >>> 0).toNumber(true) : message.sequence; + if (message.timestamp != null && message.hasOwnProperty("timestamp")) + if (typeof message.timestamp === "number") + object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp; + else + object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber(true) : message.timestamp; + if (message.diversifier != null && message.hasOwnProperty("diversifier")) + object.diversifier = message.diversifier; + if (message.path != null && message.hasOwnProperty("path")) + object.path = options.bytes === String ? $util.base64.encode(message.path, 0, message.path.length) : options.bytes === Array ? Array.prototype.slice.call(message.path) : message.path; + if (message.data != null && message.hasOwnProperty("data")) + object.data = options.bytes === String ? $util.base64.encode(message.data, 0, message.data.length) : options.bytes === Array ? Array.prototype.slice.call(message.data) : message.data; + return object; + }; - /** - * InnerSpec child_order. - * @member {Array.} child_order - * @memberof ics23.InnerSpec - * @instance - */ - InnerSpec.prototype.child_order = $util.emptyArray; + /** + * Converts this SignBytes to JSON. + * @function toJSON + * @memberof ibc.lightclients.solomachine.v3.SignBytes + * @instance + * @returns {Object.} JSON object + */ + SignBytes.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * InnerSpec child_size. - * @member {number} child_size - * @memberof ics23.InnerSpec - * @instance - */ - InnerSpec.prototype.child_size = 0; + return SignBytes; + })(); - /** - * InnerSpec min_prefix_length. - * @member {number} min_prefix_length - * @memberof ics23.InnerSpec - * @instance - */ - InnerSpec.prototype.min_prefix_length = 0; + v3.HeaderData = (function() { - /** - * InnerSpec max_prefix_length. - * @member {number} max_prefix_length - * @memberof ics23.InnerSpec - * @instance - */ - InnerSpec.prototype.max_prefix_length = 0; + /** + * Properties of a HeaderData. + * @memberof ibc.lightclients.solomachine.v3 + * @interface IHeaderData + * @property {google.protobuf.IAny|null} [new_pub_key] HeaderData new_pub_key + * @property {string|null} [new_diversifier] HeaderData new_diversifier + */ - /** - * InnerSpec empty_child. - * @member {Uint8Array} empty_child - * @memberof ics23.InnerSpec - * @instance - */ - InnerSpec.prototype.empty_child = $util.newBuffer([]); + /** + * Constructs a new HeaderData. + * @memberof ibc.lightclients.solomachine.v3 + * @classdesc Represents a HeaderData. + * @implements IHeaderData + * @constructor + * @param {ibc.lightclients.solomachine.v3.IHeaderData=} [properties] Properties to set + */ + function HeaderData(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * InnerSpec hash. - * @member {ics23.HashOp} hash - * @memberof ics23.InnerSpec - * @instance - */ - InnerSpec.prototype.hash = 0; + /** + * HeaderData new_pub_key. + * @member {google.protobuf.IAny|null|undefined} new_pub_key + * @memberof ibc.lightclients.solomachine.v3.HeaderData + * @instance + */ + HeaderData.prototype.new_pub_key = null; - /** - * Encodes the specified InnerSpec message. Does not implicitly {@link ics23.InnerSpec.verify|verify} messages. - * @function encode - * @memberof ics23.InnerSpec - * @static - * @param {ics23.IInnerSpec} message InnerSpec message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - InnerSpec.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.child_order != null && message.child_order.length) { - writer.uint32(/* id 1, wireType 2 =*/10).fork(); - for (let i = 0; i < message.child_order.length; ++i) - writer.int32(message.child_order[i]); - writer.ldelim(); - } - if (message.child_size != null && Object.hasOwnProperty.call(message, "child_size")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.child_size); - if (message.min_prefix_length != null && Object.hasOwnProperty.call(message, "min_prefix_length")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.min_prefix_length); - if (message.max_prefix_length != null && Object.hasOwnProperty.call(message, "max_prefix_length")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.max_prefix_length); - if (message.empty_child != null && Object.hasOwnProperty.call(message, "empty_child")) - writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.empty_child); - if (message.hash != null && Object.hasOwnProperty.call(message, "hash")) - writer.uint32(/* id 6, wireType 0 =*/48).int32(message.hash); - return writer; - }; + /** + * HeaderData new_diversifier. + * @member {string} new_diversifier + * @memberof ibc.lightclients.solomachine.v3.HeaderData + * @instance + */ + HeaderData.prototype.new_diversifier = ""; - /** - * Encodes the specified InnerSpec message, length delimited. Does not implicitly {@link ics23.InnerSpec.verify|verify} messages. - * @function encodeDelimited - * @memberof ics23.InnerSpec - * @static - * @param {ics23.IInnerSpec} message InnerSpec message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - InnerSpec.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified HeaderData message. Does not implicitly {@link ibc.lightclients.solomachine.v3.HeaderData.verify|verify} messages. + * @function encode + * @memberof ibc.lightclients.solomachine.v3.HeaderData + * @static + * @param {ibc.lightclients.solomachine.v3.IHeaderData} message HeaderData message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + HeaderData.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.new_pub_key != null && Object.hasOwnProperty.call(message, "new_pub_key")) + $root.google.protobuf.Any.encode(message.new_pub_key, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.new_diversifier != null && Object.hasOwnProperty.call(message, "new_diversifier")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.new_diversifier); + return writer; + }; - /** - * Decodes an InnerSpec message from the specified reader or buffer. - * @function decode - * @memberof ics23.InnerSpec - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {ics23.InnerSpec} InnerSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - InnerSpec.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ics23.InnerSpec(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.child_order && message.child_order.length)) - message.child_order = []; - if ((tag & 7) === 2) { - let end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.child_order.push(reader.int32()); - } else - message.child_order.push(reader.int32()); - break; - case 2: - message.child_size = reader.int32(); - break; - case 3: - message.min_prefix_length = reader.int32(); - break; - case 4: - message.max_prefix_length = reader.int32(); - break; - case 5: - message.empty_child = reader.bytes(); - break; - case 6: - message.hash = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Encodes the specified HeaderData message, length delimited. Does not implicitly {@link ibc.lightclients.solomachine.v3.HeaderData.verify|verify} messages. + * @function encodeDelimited + * @memberof ibc.lightclients.solomachine.v3.HeaderData + * @static + * @param {ibc.lightclients.solomachine.v3.IHeaderData} message HeaderData message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + HeaderData.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes an InnerSpec message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ics23.InnerSpec - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ics23.InnerSpec} InnerSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - InnerSpec.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a HeaderData message from the specified reader or buffer. + * @function decode + * @memberof ibc.lightclients.solomachine.v3.HeaderData + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {ibc.lightclients.solomachine.v3.HeaderData} HeaderData + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + HeaderData.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.solomachine.v3.HeaderData(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.new_pub_key = $root.google.protobuf.Any.decode(reader, reader.uint32()); + break; + case 2: + message.new_diversifier = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Verifies an InnerSpec message. - * @function verify - * @memberof ics23.InnerSpec - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - InnerSpec.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.child_order != null && message.hasOwnProperty("child_order")) { - if (!Array.isArray(message.child_order)) - return "child_order: array expected"; - for (let i = 0; i < message.child_order.length; ++i) - if (!$util.isInteger(message.child_order[i])) - return "child_order: integer[] expected"; - } - if (message.child_size != null && message.hasOwnProperty("child_size")) - if (!$util.isInteger(message.child_size)) - return "child_size: integer expected"; - if (message.min_prefix_length != null && message.hasOwnProperty("min_prefix_length")) - if (!$util.isInteger(message.min_prefix_length)) - return "min_prefix_length: integer expected"; - if (message.max_prefix_length != null && message.hasOwnProperty("max_prefix_length")) - if (!$util.isInteger(message.max_prefix_length)) - return "max_prefix_length: integer expected"; - if (message.empty_child != null && message.hasOwnProperty("empty_child")) - if (!(message.empty_child && typeof message.empty_child.length === "number" || $util.isString(message.empty_child))) - return "empty_child: buffer expected"; - if (message.hash != null && message.hasOwnProperty("hash")) - switch (message.hash) { - default: - return "hash: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - break; - } - return null; - }; + /** + * Decodes a HeaderData message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof ibc.lightclients.solomachine.v3.HeaderData + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {ibc.lightclients.solomachine.v3.HeaderData} HeaderData + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + HeaderData.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates an InnerSpec message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof ics23.InnerSpec - * @static - * @param {Object.} object Plain object - * @returns {ics23.InnerSpec} InnerSpec - */ - InnerSpec.fromObject = function fromObject(object) { - if (object instanceof $root.ics23.InnerSpec) - return object; - let message = new $root.ics23.InnerSpec(); - if (object.child_order) { - if (!Array.isArray(object.child_order)) - throw TypeError(".ics23.InnerSpec.child_order: array expected"); - message.child_order = []; - for (let i = 0; i < object.child_order.length; ++i) - message.child_order[i] = object.child_order[i] | 0; - } - if (object.child_size != null) - message.child_size = object.child_size | 0; - if (object.min_prefix_length != null) - message.min_prefix_length = object.min_prefix_length | 0; - if (object.max_prefix_length != null) - message.max_prefix_length = object.max_prefix_length | 0; - if (object.empty_child != null) - if (typeof object.empty_child === "string") - $util.base64.decode(object.empty_child, message.empty_child = $util.newBuffer($util.base64.length(object.empty_child)), 0); - else if (object.empty_child.length) - message.empty_child = object.empty_child; - switch (object.hash) { - case "NO_HASH": - case 0: - message.hash = 0; - break; - case "SHA256": - case 1: - message.hash = 1; - break; - case "SHA512": - case 2: - message.hash = 2; - break; - case "KECCAK": - case 3: - message.hash = 3; - break; - case "RIPEMD160": - case 4: - message.hash = 4; - break; - case "BITCOIN": - case 5: - message.hash = 5; - break; - } - return message; - }; + /** + * Verifies a HeaderData message. + * @function verify + * @memberof ibc.lightclients.solomachine.v3.HeaderData + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + HeaderData.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.new_pub_key != null && message.hasOwnProperty("new_pub_key")) { + let error = $root.google.protobuf.Any.verify(message.new_pub_key); + if (error) + return "new_pub_key." + error; + } + if (message.new_diversifier != null && message.hasOwnProperty("new_diversifier")) + if (!$util.isString(message.new_diversifier)) + return "new_diversifier: string expected"; + return null; + }; - /** - * Creates a plain object from an InnerSpec message. Also converts values to other types if specified. - * @function toObject - * @memberof ics23.InnerSpec - * @static - * @param {ics23.InnerSpec} message InnerSpec - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - InnerSpec.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.arrays || options.defaults) - object.child_order = []; - if (options.defaults) { - object.child_size = 0; - object.min_prefix_length = 0; - object.max_prefix_length = 0; - if (options.bytes === String) - object.empty_child = ""; - else { - object.empty_child = []; - if (options.bytes !== Array) - object.empty_child = $util.newBuffer(object.empty_child); - } - object.hash = options.enums === String ? "NO_HASH" : 0; - } - if (message.child_order && message.child_order.length) { - object.child_order = []; - for (let j = 0; j < message.child_order.length; ++j) - object.child_order[j] = message.child_order[j]; - } - if (message.child_size != null && message.hasOwnProperty("child_size")) - object.child_size = message.child_size; - if (message.min_prefix_length != null && message.hasOwnProperty("min_prefix_length")) - object.min_prefix_length = message.min_prefix_length; - if (message.max_prefix_length != null && message.hasOwnProperty("max_prefix_length")) - object.max_prefix_length = message.max_prefix_length; - if (message.empty_child != null && message.hasOwnProperty("empty_child")) - object.empty_child = options.bytes === String ? $util.base64.encode(message.empty_child, 0, message.empty_child.length) : options.bytes === Array ? Array.prototype.slice.call(message.empty_child) : message.empty_child; - if (message.hash != null && message.hasOwnProperty("hash")) - object.hash = options.enums === String ? $root.ics23.HashOp[message.hash] : message.hash; - return object; - }; + /** + * Creates a HeaderData message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof ibc.lightclients.solomachine.v3.HeaderData + * @static + * @param {Object.} object Plain object + * @returns {ibc.lightclients.solomachine.v3.HeaderData} HeaderData + */ + HeaderData.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.lightclients.solomachine.v3.HeaderData) + return object; + let message = new $root.ibc.lightclients.solomachine.v3.HeaderData(); + if (object.new_pub_key != null) { + if (typeof object.new_pub_key !== "object") + throw TypeError(".ibc.lightclients.solomachine.v3.HeaderData.new_pub_key: object expected"); + message.new_pub_key = $root.google.protobuf.Any.fromObject(object.new_pub_key); + } + if (object.new_diversifier != null) + message.new_diversifier = String(object.new_diversifier); + return message; + }; - /** - * Converts this InnerSpec to JSON. - * @function toJSON - * @memberof ics23.InnerSpec - * @instance - * @returns {Object.} JSON object - */ - InnerSpec.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from a HeaderData message. Also converts values to other types if specified. + * @function toObject + * @memberof ibc.lightclients.solomachine.v3.HeaderData + * @static + * @param {ibc.lightclients.solomachine.v3.HeaderData} message HeaderData + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + HeaderData.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + object.new_pub_key = null; + object.new_diversifier = ""; + } + if (message.new_pub_key != null && message.hasOwnProperty("new_pub_key")) + object.new_pub_key = $root.google.protobuf.Any.toObject(message.new_pub_key, options); + if (message.new_diversifier != null && message.hasOwnProperty("new_diversifier")) + object.new_diversifier = message.new_diversifier; + return object; + }; - return InnerSpec; - })(); + /** + * Converts this HeaderData to JSON. + * @function toJSON + * @memberof ibc.lightclients.solomachine.v3.HeaderData + * @instance + * @returns {Object.} JSON object + */ + HeaderData.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - ics23.BatchProof = (function() { + return HeaderData; + })(); - /** - * Properties of a BatchProof. - * @memberof ics23 - * @interface IBatchProof - * @property {Array.|null} [entries] BatchProof entries - */ + return v3; + })(); - /** - * Constructs a new BatchProof. - * @memberof ics23 - * @classdesc Represents a BatchProof. - * @implements IBatchProof - * @constructor - * @param {ics23.IBatchProof=} [properties] Properties to set - */ - function BatchProof(properties) { - this.entries = []; - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + return solomachine; + })(); - /** - * BatchProof entries. - * @member {Array.} entries - * @memberof ics23.BatchProof - * @instance - */ - BatchProof.prototype.entries = $util.emptyArray; + lightclients.tendermint = (function() { - /** - * Encodes the specified BatchProof message. Does not implicitly {@link ics23.BatchProof.verify|verify} messages. - * @function encode - * @memberof ics23.BatchProof - * @static - * @param {ics23.IBatchProof} message BatchProof message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - BatchProof.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.entries != null && message.entries.length) - for (let i = 0; i < message.entries.length; ++i) - $root.ics23.BatchEntry.encode(message.entries[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; + /** + * Namespace tendermint. + * @memberof ibc.lightclients + * @namespace + */ + const tendermint = {}; - /** - * Encodes the specified BatchProof message, length delimited. Does not implicitly {@link ics23.BatchProof.verify|verify} messages. - * @function encodeDelimited - * @memberof ics23.BatchProof - * @static - * @param {ics23.IBatchProof} message BatchProof message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - BatchProof.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + tendermint.v1 = (function() { - /** - * Decodes a BatchProof message from the specified reader or buffer. - * @function decode - * @memberof ics23.BatchProof - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {ics23.BatchProof} BatchProof - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - BatchProof.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ics23.BatchProof(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.entries && message.entries.length)) - message.entries = []; - message.entries.push($root.ics23.BatchEntry.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Namespace v1. + * @memberof ibc.lightclients.tendermint + * @namespace + */ + const v1 = {}; - /** - * Decodes a BatchProof message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ics23.BatchProof - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ics23.BatchProof} BatchProof - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - BatchProof.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + v1.ClientState = (function() { - /** - * Verifies a BatchProof message. - * @function verify - * @memberof ics23.BatchProof - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - BatchProof.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.entries != null && message.hasOwnProperty("entries")) { - if (!Array.isArray(message.entries)) - return "entries: array expected"; - for (let i = 0; i < message.entries.length; ++i) { - let error = $root.ics23.BatchEntry.verify(message.entries[i]); - if (error) - return "entries." + error; - } - } - return null; - }; + /** + * Properties of a ClientState. + * @memberof ibc.lightclients.tendermint.v1 + * @interface IClientState + * @property {string|null} [chain_id] ClientState chain_id + * @property {ibc.lightclients.tendermint.v1.IFraction|null} [trust_level] ClientState trust_level + * @property {google.protobuf.IDuration|null} [trusting_period] ClientState trusting_period + * @property {google.protobuf.IDuration|null} [unbonding_period] ClientState unbonding_period + * @property {google.protobuf.IDuration|null} [max_clock_drift] ClientState max_clock_drift + * @property {ibc.core.client.v1.IHeight|null} [frozen_height] ClientState frozen_height + * @property {ibc.core.client.v1.IHeight|null} [latest_height] ClientState latest_height + * @property {Array.|null} [proof_specs] ClientState proof_specs + * @property {Array.|null} [upgrade_path] ClientState upgrade_path + * @property {boolean|null} [allow_update_after_expiry] ClientState allow_update_after_expiry + * @property {boolean|null} [allow_update_after_misbehaviour] ClientState allow_update_after_misbehaviour + */ - /** - * Creates a BatchProof message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof ics23.BatchProof - * @static - * @param {Object.} object Plain object - * @returns {ics23.BatchProof} BatchProof - */ - BatchProof.fromObject = function fromObject(object) { - if (object instanceof $root.ics23.BatchProof) - return object; - let message = new $root.ics23.BatchProof(); - if (object.entries) { - if (!Array.isArray(object.entries)) - throw TypeError(".ics23.BatchProof.entries: array expected"); - message.entries = []; - for (let i = 0; i < object.entries.length; ++i) { - if (typeof object.entries[i] !== "object") - throw TypeError(".ics23.BatchProof.entries: object expected"); - message.entries[i] = $root.ics23.BatchEntry.fromObject(object.entries[i]); - } - } - return message; - }; + /** + * Constructs a new ClientState. + * @memberof ibc.lightclients.tendermint.v1 + * @classdesc Represents a ClientState. + * @implements IClientState + * @constructor + * @param {ibc.lightclients.tendermint.v1.IClientState=} [properties] Properties to set + */ + function ClientState(properties) { + this.proof_specs = []; + this.upgrade_path = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Creates a plain object from a BatchProof message. Also converts values to other types if specified. - * @function toObject - * @memberof ics23.BatchProof - * @static - * @param {ics23.BatchProof} message BatchProof - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - BatchProof.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.arrays || options.defaults) - object.entries = []; - if (message.entries && message.entries.length) { - object.entries = []; - for (let j = 0; j < message.entries.length; ++j) - object.entries[j] = $root.ics23.BatchEntry.toObject(message.entries[j], options); - } - return object; - }; + /** + * ClientState chain_id. + * @member {string} chain_id + * @memberof ibc.lightclients.tendermint.v1.ClientState + * @instance + */ + ClientState.prototype.chain_id = ""; - /** - * Converts this BatchProof to JSON. - * @function toJSON - * @memberof ics23.BatchProof - * @instance - * @returns {Object.} JSON object - */ - BatchProof.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * ClientState trust_level. + * @member {ibc.lightclients.tendermint.v1.IFraction|null|undefined} trust_level + * @memberof ibc.lightclients.tendermint.v1.ClientState + * @instance + */ + ClientState.prototype.trust_level = null; - return BatchProof; - })(); + /** + * ClientState trusting_period. + * @member {google.protobuf.IDuration|null|undefined} trusting_period + * @memberof ibc.lightclients.tendermint.v1.ClientState + * @instance + */ + ClientState.prototype.trusting_period = null; - ics23.BatchEntry = (function() { + /** + * ClientState unbonding_period. + * @member {google.protobuf.IDuration|null|undefined} unbonding_period + * @memberof ibc.lightclients.tendermint.v1.ClientState + * @instance + */ + ClientState.prototype.unbonding_period = null; - /** - * Properties of a BatchEntry. - * @memberof ics23 - * @interface IBatchEntry - * @property {ics23.IExistenceProof|null} [exist] BatchEntry exist - * @property {ics23.INonExistenceProof|null} [nonexist] BatchEntry nonexist - */ + /** + * ClientState max_clock_drift. + * @member {google.protobuf.IDuration|null|undefined} max_clock_drift + * @memberof ibc.lightclients.tendermint.v1.ClientState + * @instance + */ + ClientState.prototype.max_clock_drift = null; - /** - * Constructs a new BatchEntry. - * @memberof ics23 - * @classdesc Represents a BatchEntry. - * @implements IBatchEntry - * @constructor - * @param {ics23.IBatchEntry=} [properties] Properties to set - */ - function BatchEntry(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * ClientState frozen_height. + * @member {ibc.core.client.v1.IHeight|null|undefined} frozen_height + * @memberof ibc.lightclients.tendermint.v1.ClientState + * @instance + */ + ClientState.prototype.frozen_height = null; - /** - * BatchEntry exist. - * @member {ics23.IExistenceProof|null|undefined} exist - * @memberof ics23.BatchEntry - * @instance - */ - BatchEntry.prototype.exist = null; + /** + * ClientState latest_height. + * @member {ibc.core.client.v1.IHeight|null|undefined} latest_height + * @memberof ibc.lightclients.tendermint.v1.ClientState + * @instance + */ + ClientState.prototype.latest_height = null; - /** - * BatchEntry nonexist. - * @member {ics23.INonExistenceProof|null|undefined} nonexist - * @memberof ics23.BatchEntry - * @instance - */ - BatchEntry.prototype.nonexist = null; + /** + * ClientState proof_specs. + * @member {Array.} proof_specs + * @memberof ibc.lightclients.tendermint.v1.ClientState + * @instance + */ + ClientState.prototype.proof_specs = $util.emptyArray; - // OneOf field names bound to virtual getters and setters - let $oneOfFields; + /** + * ClientState upgrade_path. + * @member {Array.} upgrade_path + * @memberof ibc.lightclients.tendermint.v1.ClientState + * @instance + */ + ClientState.prototype.upgrade_path = $util.emptyArray; - /** - * BatchEntry proof. - * @member {"exist"|"nonexist"|undefined} proof - * @memberof ics23.BatchEntry - * @instance - */ - Object.defineProperty(BatchEntry.prototype, "proof", { - get: $util.oneOfGetter($oneOfFields = ["exist", "nonexist"]), - set: $util.oneOfSetter($oneOfFields) - }); + /** + * ClientState allow_update_after_expiry. + * @member {boolean} allow_update_after_expiry + * @memberof ibc.lightclients.tendermint.v1.ClientState + * @instance + */ + ClientState.prototype.allow_update_after_expiry = false; - /** - * Encodes the specified BatchEntry message. Does not implicitly {@link ics23.BatchEntry.verify|verify} messages. - * @function encode - * @memberof ics23.BatchEntry - * @static - * @param {ics23.IBatchEntry} message BatchEntry message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - BatchEntry.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.exist != null && Object.hasOwnProperty.call(message, "exist")) - $root.ics23.ExistenceProof.encode(message.exist, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nonexist != null && Object.hasOwnProperty.call(message, "nonexist")) - $root.ics23.NonExistenceProof.encode(message.nonexist, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; + /** + * ClientState allow_update_after_misbehaviour. + * @member {boolean} allow_update_after_misbehaviour + * @memberof ibc.lightclients.tendermint.v1.ClientState + * @instance + */ + ClientState.prototype.allow_update_after_misbehaviour = false; - /** - * Encodes the specified BatchEntry message, length delimited. Does not implicitly {@link ics23.BatchEntry.verify|verify} messages. - * @function encodeDelimited - * @memberof ics23.BatchEntry - * @static - * @param {ics23.IBatchEntry} message BatchEntry message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - BatchEntry.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified ClientState message. Does not implicitly {@link ibc.lightclients.tendermint.v1.ClientState.verify|verify} messages. + * @function encode + * @memberof ibc.lightclients.tendermint.v1.ClientState + * @static + * @param {ibc.lightclients.tendermint.v1.IClientState} message ClientState message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ClientState.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.chain_id != null && Object.hasOwnProperty.call(message, "chain_id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.chain_id); + if (message.trust_level != null && Object.hasOwnProperty.call(message, "trust_level")) + $root.ibc.lightclients.tendermint.v1.Fraction.encode(message.trust_level, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.trusting_period != null && Object.hasOwnProperty.call(message, "trusting_period")) + $root.google.protobuf.Duration.encode(message.trusting_period, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.unbonding_period != null && Object.hasOwnProperty.call(message, "unbonding_period")) + $root.google.protobuf.Duration.encode(message.unbonding_period, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.max_clock_drift != null && Object.hasOwnProperty.call(message, "max_clock_drift")) + $root.google.protobuf.Duration.encode(message.max_clock_drift, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.frozen_height != null && Object.hasOwnProperty.call(message, "frozen_height")) + $root.ibc.core.client.v1.Height.encode(message.frozen_height, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.latest_height != null && Object.hasOwnProperty.call(message, "latest_height")) + $root.ibc.core.client.v1.Height.encode(message.latest_height, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.proof_specs != null && message.proof_specs.length) + for (let i = 0; i < message.proof_specs.length; ++i) + $root.cosmos.ics23.v1.ProofSpec.encode(message.proof_specs[i], writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.upgrade_path != null && message.upgrade_path.length) + for (let i = 0; i < message.upgrade_path.length; ++i) + writer.uint32(/* id 9, wireType 2 =*/74).string(message.upgrade_path[i]); + if (message.allow_update_after_expiry != null && Object.hasOwnProperty.call(message, "allow_update_after_expiry")) + writer.uint32(/* id 10, wireType 0 =*/80).bool(message.allow_update_after_expiry); + if (message.allow_update_after_misbehaviour != null && Object.hasOwnProperty.call(message, "allow_update_after_misbehaviour")) + writer.uint32(/* id 11, wireType 0 =*/88).bool(message.allow_update_after_misbehaviour); + return writer; + }; - /** - * Decodes a BatchEntry message from the specified reader or buffer. - * @function decode - * @memberof ics23.BatchEntry - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {ics23.BatchEntry} BatchEntry - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - BatchEntry.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ics23.BatchEntry(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.exist = $root.ics23.ExistenceProof.decode(reader, reader.uint32()); - break; - case 2: - message.nonexist = $root.ics23.NonExistenceProof.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Encodes the specified ClientState message, length delimited. Does not implicitly {@link ibc.lightclients.tendermint.v1.ClientState.verify|verify} messages. + * @function encodeDelimited + * @memberof ibc.lightclients.tendermint.v1.ClientState + * @static + * @param {ibc.lightclients.tendermint.v1.IClientState} message ClientState message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ClientState.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a BatchEntry message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ics23.BatchEntry - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ics23.BatchEntry} BatchEntry - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - BatchEntry.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a ClientState message from the specified reader or buffer. + * @function decode + * @memberof ibc.lightclients.tendermint.v1.ClientState + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {ibc.lightclients.tendermint.v1.ClientState} ClientState + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ClientState.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.tendermint.v1.ClientState(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.chain_id = reader.string(); + break; + case 2: + message.trust_level = $root.ibc.lightclients.tendermint.v1.Fraction.decode(reader, reader.uint32()); + break; + case 3: + message.trusting_period = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + case 4: + message.unbonding_period = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + case 5: + message.max_clock_drift = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + case 6: + message.frozen_height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); + break; + case 7: + message.latest_height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); + break; + case 8: + if (!(message.proof_specs && message.proof_specs.length)) + message.proof_specs = []; + message.proof_specs.push($root.cosmos.ics23.v1.ProofSpec.decode(reader, reader.uint32())); + break; + case 9: + if (!(message.upgrade_path && message.upgrade_path.length)) + message.upgrade_path = []; + message.upgrade_path.push(reader.string()); + break; + case 10: + message.allow_update_after_expiry = reader.bool(); + break; + case 11: + message.allow_update_after_misbehaviour = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Verifies a BatchEntry message. - * @function verify - * @memberof ics23.BatchEntry - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - BatchEntry.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - let properties = {}; - if (message.exist != null && message.hasOwnProperty("exist")) { - properties.proof = 1; - { - let error = $root.ics23.ExistenceProof.verify(message.exist); - if (error) - return "exist." + error; - } - } - if (message.nonexist != null && message.hasOwnProperty("nonexist")) { - if (properties.proof === 1) - return "proof: multiple values"; - properties.proof = 1; - { - let error = $root.ics23.NonExistenceProof.verify(message.nonexist); - if (error) - return "nonexist." + error; - } - } - return null; - }; + /** + * Decodes a ClientState message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof ibc.lightclients.tendermint.v1.ClientState + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {ibc.lightclients.tendermint.v1.ClientState} ClientState + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ClientState.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a BatchEntry message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof ics23.BatchEntry - * @static - * @param {Object.} object Plain object - * @returns {ics23.BatchEntry} BatchEntry - */ - BatchEntry.fromObject = function fromObject(object) { - if (object instanceof $root.ics23.BatchEntry) - return object; - let message = new $root.ics23.BatchEntry(); - if (object.exist != null) { - if (typeof object.exist !== "object") - throw TypeError(".ics23.BatchEntry.exist: object expected"); - message.exist = $root.ics23.ExistenceProof.fromObject(object.exist); - } - if (object.nonexist != null) { - if (typeof object.nonexist !== "object") - throw TypeError(".ics23.BatchEntry.nonexist: object expected"); - message.nonexist = $root.ics23.NonExistenceProof.fromObject(object.nonexist); - } - return message; - }; + /** + * Verifies a ClientState message. + * @function verify + * @memberof ibc.lightclients.tendermint.v1.ClientState + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ClientState.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.chain_id != null && message.hasOwnProperty("chain_id")) + if (!$util.isString(message.chain_id)) + return "chain_id: string expected"; + if (message.trust_level != null && message.hasOwnProperty("trust_level")) { + let error = $root.ibc.lightclients.tendermint.v1.Fraction.verify(message.trust_level); + if (error) + return "trust_level." + error; + } + if (message.trusting_period != null && message.hasOwnProperty("trusting_period")) { + let error = $root.google.protobuf.Duration.verify(message.trusting_period); + if (error) + return "trusting_period." + error; + } + if (message.unbonding_period != null && message.hasOwnProperty("unbonding_period")) { + let error = $root.google.protobuf.Duration.verify(message.unbonding_period); + if (error) + return "unbonding_period." + error; + } + if (message.max_clock_drift != null && message.hasOwnProperty("max_clock_drift")) { + let error = $root.google.protobuf.Duration.verify(message.max_clock_drift); + if (error) + return "max_clock_drift." + error; + } + if (message.frozen_height != null && message.hasOwnProperty("frozen_height")) { + let error = $root.ibc.core.client.v1.Height.verify(message.frozen_height); + if (error) + return "frozen_height." + error; + } + if (message.latest_height != null && message.hasOwnProperty("latest_height")) { + let error = $root.ibc.core.client.v1.Height.verify(message.latest_height); + if (error) + return "latest_height." + error; + } + if (message.proof_specs != null && message.hasOwnProperty("proof_specs")) { + if (!Array.isArray(message.proof_specs)) + return "proof_specs: array expected"; + for (let i = 0; i < message.proof_specs.length; ++i) { + let error = $root.cosmos.ics23.v1.ProofSpec.verify(message.proof_specs[i]); + if (error) + return "proof_specs." + error; + } + } + if (message.upgrade_path != null && message.hasOwnProperty("upgrade_path")) { + if (!Array.isArray(message.upgrade_path)) + return "upgrade_path: array expected"; + for (let i = 0; i < message.upgrade_path.length; ++i) + if (!$util.isString(message.upgrade_path[i])) + return "upgrade_path: string[] expected"; + } + if (message.allow_update_after_expiry != null && message.hasOwnProperty("allow_update_after_expiry")) + if (typeof message.allow_update_after_expiry !== "boolean") + return "allow_update_after_expiry: boolean expected"; + if (message.allow_update_after_misbehaviour != null && message.hasOwnProperty("allow_update_after_misbehaviour")) + if (typeof message.allow_update_after_misbehaviour !== "boolean") + return "allow_update_after_misbehaviour: boolean expected"; + return null; + }; - /** - * Creates a plain object from a BatchEntry message. Also converts values to other types if specified. - * @function toObject - * @memberof ics23.BatchEntry - * @static - * @param {ics23.BatchEntry} message BatchEntry - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - BatchEntry.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (message.exist != null && message.hasOwnProperty("exist")) { - object.exist = $root.ics23.ExistenceProof.toObject(message.exist, options); - if (options.oneofs) - object.proof = "exist"; - } - if (message.nonexist != null && message.hasOwnProperty("nonexist")) { - object.nonexist = $root.ics23.NonExistenceProof.toObject(message.nonexist, options); - if (options.oneofs) - object.proof = "nonexist"; - } - return object; - }; + /** + * Creates a ClientState message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof ibc.lightclients.tendermint.v1.ClientState + * @static + * @param {Object.} object Plain object + * @returns {ibc.lightclients.tendermint.v1.ClientState} ClientState + */ + ClientState.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.lightclients.tendermint.v1.ClientState) + return object; + let message = new $root.ibc.lightclients.tendermint.v1.ClientState(); + if (object.chain_id != null) + message.chain_id = String(object.chain_id); + if (object.trust_level != null) { + if (typeof object.trust_level !== "object") + throw TypeError(".ibc.lightclients.tendermint.v1.ClientState.trust_level: object expected"); + message.trust_level = $root.ibc.lightclients.tendermint.v1.Fraction.fromObject(object.trust_level); + } + if (object.trusting_period != null) { + if (typeof object.trusting_period !== "object") + throw TypeError(".ibc.lightclients.tendermint.v1.ClientState.trusting_period: object expected"); + message.trusting_period = $root.google.protobuf.Duration.fromObject(object.trusting_period); + } + if (object.unbonding_period != null) { + if (typeof object.unbonding_period !== "object") + throw TypeError(".ibc.lightclients.tendermint.v1.ClientState.unbonding_period: object expected"); + message.unbonding_period = $root.google.protobuf.Duration.fromObject(object.unbonding_period); + } + if (object.max_clock_drift != null) { + if (typeof object.max_clock_drift !== "object") + throw TypeError(".ibc.lightclients.tendermint.v1.ClientState.max_clock_drift: object expected"); + message.max_clock_drift = $root.google.protobuf.Duration.fromObject(object.max_clock_drift); + } + if (object.frozen_height != null) { + if (typeof object.frozen_height !== "object") + throw TypeError(".ibc.lightclients.tendermint.v1.ClientState.frozen_height: object expected"); + message.frozen_height = $root.ibc.core.client.v1.Height.fromObject(object.frozen_height); + } + if (object.latest_height != null) { + if (typeof object.latest_height !== "object") + throw TypeError(".ibc.lightclients.tendermint.v1.ClientState.latest_height: object expected"); + message.latest_height = $root.ibc.core.client.v1.Height.fromObject(object.latest_height); + } + if (object.proof_specs) { + if (!Array.isArray(object.proof_specs)) + throw TypeError(".ibc.lightclients.tendermint.v1.ClientState.proof_specs: array expected"); + message.proof_specs = []; + for (let i = 0; i < object.proof_specs.length; ++i) { + if (typeof object.proof_specs[i] !== "object") + throw TypeError(".ibc.lightclients.tendermint.v1.ClientState.proof_specs: object expected"); + message.proof_specs[i] = $root.cosmos.ics23.v1.ProofSpec.fromObject(object.proof_specs[i]); + } + } + if (object.upgrade_path) { + if (!Array.isArray(object.upgrade_path)) + throw TypeError(".ibc.lightclients.tendermint.v1.ClientState.upgrade_path: array expected"); + message.upgrade_path = []; + for (let i = 0; i < object.upgrade_path.length; ++i) + message.upgrade_path[i] = String(object.upgrade_path[i]); + } + if (object.allow_update_after_expiry != null) + message.allow_update_after_expiry = Boolean(object.allow_update_after_expiry); + if (object.allow_update_after_misbehaviour != null) + message.allow_update_after_misbehaviour = Boolean(object.allow_update_after_misbehaviour); + return message; + }; - /** - * Converts this BatchEntry to JSON. - * @function toJSON - * @memberof ics23.BatchEntry - * @instance - * @returns {Object.} JSON object - */ - BatchEntry.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from a ClientState message. Also converts values to other types if specified. + * @function toObject + * @memberof ibc.lightclients.tendermint.v1.ClientState + * @static + * @param {ibc.lightclients.tendermint.v1.ClientState} message ClientState + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ClientState.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.arrays || options.defaults) { + object.proof_specs = []; + object.upgrade_path = []; + } + if (options.defaults) { + object.chain_id = ""; + object.trust_level = null; + object.trusting_period = null; + object.unbonding_period = null; + object.max_clock_drift = null; + object.frozen_height = null; + object.latest_height = null; + object.allow_update_after_expiry = false; + object.allow_update_after_misbehaviour = false; + } + if (message.chain_id != null && message.hasOwnProperty("chain_id")) + object.chain_id = message.chain_id; + if (message.trust_level != null && message.hasOwnProperty("trust_level")) + object.trust_level = $root.ibc.lightclients.tendermint.v1.Fraction.toObject(message.trust_level, options); + if (message.trusting_period != null && message.hasOwnProperty("trusting_period")) + object.trusting_period = $root.google.protobuf.Duration.toObject(message.trusting_period, options); + if (message.unbonding_period != null && message.hasOwnProperty("unbonding_period")) + object.unbonding_period = $root.google.protobuf.Duration.toObject(message.unbonding_period, options); + if (message.max_clock_drift != null && message.hasOwnProperty("max_clock_drift")) + object.max_clock_drift = $root.google.protobuf.Duration.toObject(message.max_clock_drift, options); + if (message.frozen_height != null && message.hasOwnProperty("frozen_height")) + object.frozen_height = $root.ibc.core.client.v1.Height.toObject(message.frozen_height, options); + if (message.latest_height != null && message.hasOwnProperty("latest_height")) + object.latest_height = $root.ibc.core.client.v1.Height.toObject(message.latest_height, options); + if (message.proof_specs && message.proof_specs.length) { + object.proof_specs = []; + for (let j = 0; j < message.proof_specs.length; ++j) + object.proof_specs[j] = $root.cosmos.ics23.v1.ProofSpec.toObject(message.proof_specs[j], options); + } + if (message.upgrade_path && message.upgrade_path.length) { + object.upgrade_path = []; + for (let j = 0; j < message.upgrade_path.length; ++j) + object.upgrade_path[j] = message.upgrade_path[j]; + } + if (message.allow_update_after_expiry != null && message.hasOwnProperty("allow_update_after_expiry")) + object.allow_update_after_expiry = message.allow_update_after_expiry; + if (message.allow_update_after_misbehaviour != null && message.hasOwnProperty("allow_update_after_misbehaviour")) + object.allow_update_after_misbehaviour = message.allow_update_after_misbehaviour; + return object; + }; - return BatchEntry; - })(); + /** + * Converts this ClientState to JSON. + * @function toJSON + * @memberof ibc.lightclients.tendermint.v1.ClientState + * @instance + * @returns {Object.} JSON object + */ + ClientState.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - ics23.CompressedBatchProof = (function() { + return ClientState; + })(); - /** - * Properties of a CompressedBatchProof. - * @memberof ics23 - * @interface ICompressedBatchProof - * @property {Array.|null} [entries] CompressedBatchProof entries - * @property {Array.|null} [lookup_inners] CompressedBatchProof lookup_inners - */ + v1.ConsensusState = (function() { - /** - * Constructs a new CompressedBatchProof. - * @memberof ics23 - * @classdesc Represents a CompressedBatchProof. - * @implements ICompressedBatchProof - * @constructor - * @param {ics23.ICompressedBatchProof=} [properties] Properties to set - */ - function CompressedBatchProof(properties) { - this.entries = []; - this.lookup_inners = []; - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Properties of a ConsensusState. + * @memberof ibc.lightclients.tendermint.v1 + * @interface IConsensusState + * @property {google.protobuf.ITimestamp|null} [timestamp] ConsensusState timestamp + * @property {ibc.core.commitment.v1.IMerkleRoot|null} [root] ConsensusState root + * @property {Uint8Array|null} [next_validators_hash] ConsensusState next_validators_hash + */ - /** - * CompressedBatchProof entries. - * @member {Array.} entries - * @memberof ics23.CompressedBatchProof - * @instance - */ - CompressedBatchProof.prototype.entries = $util.emptyArray; + /** + * Constructs a new ConsensusState. + * @memberof ibc.lightclients.tendermint.v1 + * @classdesc Represents a ConsensusState. + * @implements IConsensusState + * @constructor + * @param {ibc.lightclients.tendermint.v1.IConsensusState=} [properties] Properties to set + */ + function ConsensusState(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * CompressedBatchProof lookup_inners. - * @member {Array.} lookup_inners - * @memberof ics23.CompressedBatchProof - * @instance - */ - CompressedBatchProof.prototype.lookup_inners = $util.emptyArray; + /** + * ConsensusState timestamp. + * @member {google.protobuf.ITimestamp|null|undefined} timestamp + * @memberof ibc.lightclients.tendermint.v1.ConsensusState + * @instance + */ + ConsensusState.prototype.timestamp = null; - /** - * Encodes the specified CompressedBatchProof message. Does not implicitly {@link ics23.CompressedBatchProof.verify|verify} messages. - * @function encode - * @memberof ics23.CompressedBatchProof - * @static - * @param {ics23.ICompressedBatchProof} message CompressedBatchProof message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CompressedBatchProof.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.entries != null && message.entries.length) - for (let i = 0; i < message.entries.length; ++i) - $root.ics23.CompressedBatchEntry.encode(message.entries[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.lookup_inners != null && message.lookup_inners.length) - for (let i = 0; i < message.lookup_inners.length; ++i) - $root.ics23.InnerOp.encode(message.lookup_inners[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; + /** + * ConsensusState root. + * @member {ibc.core.commitment.v1.IMerkleRoot|null|undefined} root + * @memberof ibc.lightclients.tendermint.v1.ConsensusState + * @instance + */ + ConsensusState.prototype.root = null; - /** - * Encodes the specified CompressedBatchProof message, length delimited. Does not implicitly {@link ics23.CompressedBatchProof.verify|verify} messages. - * @function encodeDelimited - * @memberof ics23.CompressedBatchProof - * @static - * @param {ics23.ICompressedBatchProof} message CompressedBatchProof message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CompressedBatchProof.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * ConsensusState next_validators_hash. + * @member {Uint8Array} next_validators_hash + * @memberof ibc.lightclients.tendermint.v1.ConsensusState + * @instance + */ + ConsensusState.prototype.next_validators_hash = $util.newBuffer([]); - /** - * Decodes a CompressedBatchProof message from the specified reader or buffer. - * @function decode - * @memberof ics23.CompressedBatchProof - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {ics23.CompressedBatchProof} CompressedBatchProof - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CompressedBatchProof.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ics23.CompressedBatchProof(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.entries && message.entries.length)) - message.entries = []; - message.entries.push($root.ics23.CompressedBatchEntry.decode(reader, reader.uint32())); - break; - case 2: - if (!(message.lookup_inners && message.lookup_inners.length)) - message.lookup_inners = []; - message.lookup_inners.push($root.ics23.InnerOp.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Encodes the specified ConsensusState message. Does not implicitly {@link ibc.lightclients.tendermint.v1.ConsensusState.verify|verify} messages. + * @function encode + * @memberof ibc.lightclients.tendermint.v1.ConsensusState + * @static + * @param {ibc.lightclients.tendermint.v1.IConsensusState} message ConsensusState message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ConsensusState.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.timestamp != null && Object.hasOwnProperty.call(message, "timestamp")) + $root.google.protobuf.Timestamp.encode(message.timestamp, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.root != null && Object.hasOwnProperty.call(message, "root")) + $root.ibc.core.commitment.v1.MerkleRoot.encode(message.root, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.next_validators_hash != null && Object.hasOwnProperty.call(message, "next_validators_hash")) + writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.next_validators_hash); + return writer; + }; - /** - * Decodes a CompressedBatchProof message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ics23.CompressedBatchProof - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ics23.CompressedBatchProof} CompressedBatchProof - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CompressedBatchProof.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Encodes the specified ConsensusState message, length delimited. Does not implicitly {@link ibc.lightclients.tendermint.v1.ConsensusState.verify|verify} messages. + * @function encodeDelimited + * @memberof ibc.lightclients.tendermint.v1.ConsensusState + * @static + * @param {ibc.lightclients.tendermint.v1.IConsensusState} message ConsensusState message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ConsensusState.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Verifies a CompressedBatchProof message. - * @function verify - * @memberof ics23.CompressedBatchProof - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CompressedBatchProof.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.entries != null && message.hasOwnProperty("entries")) { - if (!Array.isArray(message.entries)) - return "entries: array expected"; - for (let i = 0; i < message.entries.length; ++i) { - let error = $root.ics23.CompressedBatchEntry.verify(message.entries[i]); - if (error) - return "entries." + error; - } - } - if (message.lookup_inners != null && message.hasOwnProperty("lookup_inners")) { - if (!Array.isArray(message.lookup_inners)) - return "lookup_inners: array expected"; - for (let i = 0; i < message.lookup_inners.length; ++i) { - let error = $root.ics23.InnerOp.verify(message.lookup_inners[i]); - if (error) - return "lookup_inners." + error; - } - } - return null; - }; + /** + * Decodes a ConsensusState message from the specified reader or buffer. + * @function decode + * @memberof ibc.lightclients.tendermint.v1.ConsensusState + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {ibc.lightclients.tendermint.v1.ConsensusState} ConsensusState + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ConsensusState.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.tendermint.v1.ConsensusState(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.timestamp = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 2: + message.root = $root.ibc.core.commitment.v1.MerkleRoot.decode(reader, reader.uint32()); + break; + case 3: + message.next_validators_hash = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Creates a CompressedBatchProof message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof ics23.CompressedBatchProof - * @static - * @param {Object.} object Plain object - * @returns {ics23.CompressedBatchProof} CompressedBatchProof - */ - CompressedBatchProof.fromObject = function fromObject(object) { - if (object instanceof $root.ics23.CompressedBatchProof) - return object; - let message = new $root.ics23.CompressedBatchProof(); - if (object.entries) { - if (!Array.isArray(object.entries)) - throw TypeError(".ics23.CompressedBatchProof.entries: array expected"); - message.entries = []; - for (let i = 0; i < object.entries.length; ++i) { - if (typeof object.entries[i] !== "object") - throw TypeError(".ics23.CompressedBatchProof.entries: object expected"); - message.entries[i] = $root.ics23.CompressedBatchEntry.fromObject(object.entries[i]); - } - } - if (object.lookup_inners) { - if (!Array.isArray(object.lookup_inners)) - throw TypeError(".ics23.CompressedBatchProof.lookup_inners: array expected"); - message.lookup_inners = []; - for (let i = 0; i < object.lookup_inners.length; ++i) { - if (typeof object.lookup_inners[i] !== "object") - throw TypeError(".ics23.CompressedBatchProof.lookup_inners: object expected"); - message.lookup_inners[i] = $root.ics23.InnerOp.fromObject(object.lookup_inners[i]); - } - } - return message; - }; + /** + * Decodes a ConsensusState message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof ibc.lightclients.tendermint.v1.ConsensusState + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {ibc.lightclients.tendermint.v1.ConsensusState} ConsensusState + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ConsensusState.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a plain object from a CompressedBatchProof message. Also converts values to other types if specified. - * @function toObject - * @memberof ics23.CompressedBatchProof - * @static - * @param {ics23.CompressedBatchProof} message CompressedBatchProof - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - CompressedBatchProof.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.arrays || options.defaults) { - object.entries = []; - object.lookup_inners = []; - } - if (message.entries && message.entries.length) { - object.entries = []; - for (let j = 0; j < message.entries.length; ++j) - object.entries[j] = $root.ics23.CompressedBatchEntry.toObject(message.entries[j], options); - } - if (message.lookup_inners && message.lookup_inners.length) { - object.lookup_inners = []; - for (let j = 0; j < message.lookup_inners.length; ++j) - object.lookup_inners[j] = $root.ics23.InnerOp.toObject(message.lookup_inners[j], options); - } - return object; - }; + /** + * Verifies a ConsensusState message. + * @function verify + * @memberof ibc.lightclients.tendermint.v1.ConsensusState + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ConsensusState.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.timestamp != null && message.hasOwnProperty("timestamp")) { + let error = $root.google.protobuf.Timestamp.verify(message.timestamp); + if (error) + return "timestamp." + error; + } + if (message.root != null && message.hasOwnProperty("root")) { + let error = $root.ibc.core.commitment.v1.MerkleRoot.verify(message.root); + if (error) + return "root." + error; + } + if (message.next_validators_hash != null && message.hasOwnProperty("next_validators_hash")) + if (!(message.next_validators_hash && typeof message.next_validators_hash.length === "number" || $util.isString(message.next_validators_hash))) + return "next_validators_hash: buffer expected"; + return null; + }; - /** - * Converts this CompressedBatchProof to JSON. - * @function toJSON - * @memberof ics23.CompressedBatchProof - * @instance - * @returns {Object.} JSON object - */ - CompressedBatchProof.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a ConsensusState message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof ibc.lightclients.tendermint.v1.ConsensusState + * @static + * @param {Object.} object Plain object + * @returns {ibc.lightclients.tendermint.v1.ConsensusState} ConsensusState + */ + ConsensusState.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.lightclients.tendermint.v1.ConsensusState) + return object; + let message = new $root.ibc.lightclients.tendermint.v1.ConsensusState(); + if (object.timestamp != null) { + if (typeof object.timestamp !== "object") + throw TypeError(".ibc.lightclients.tendermint.v1.ConsensusState.timestamp: object expected"); + message.timestamp = $root.google.protobuf.Timestamp.fromObject(object.timestamp); + } + if (object.root != null) { + if (typeof object.root !== "object") + throw TypeError(".ibc.lightclients.tendermint.v1.ConsensusState.root: object expected"); + message.root = $root.ibc.core.commitment.v1.MerkleRoot.fromObject(object.root); + } + if (object.next_validators_hash != null) + if (typeof object.next_validators_hash === "string") + $util.base64.decode(object.next_validators_hash, message.next_validators_hash = $util.newBuffer($util.base64.length(object.next_validators_hash)), 0); + else if (object.next_validators_hash.length) + message.next_validators_hash = object.next_validators_hash; + return message; + }; - return CompressedBatchProof; - })(); + /** + * Creates a plain object from a ConsensusState message. Also converts values to other types if specified. + * @function toObject + * @memberof ibc.lightclients.tendermint.v1.ConsensusState + * @static + * @param {ibc.lightclients.tendermint.v1.ConsensusState} message ConsensusState + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ConsensusState.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + object.timestamp = null; + object.root = null; + if (options.bytes === String) + object.next_validators_hash = ""; + else { + object.next_validators_hash = []; + if (options.bytes !== Array) + object.next_validators_hash = $util.newBuffer(object.next_validators_hash); + } + } + if (message.timestamp != null && message.hasOwnProperty("timestamp")) + object.timestamp = $root.google.protobuf.Timestamp.toObject(message.timestamp, options); + if (message.root != null && message.hasOwnProperty("root")) + object.root = $root.ibc.core.commitment.v1.MerkleRoot.toObject(message.root, options); + if (message.next_validators_hash != null && message.hasOwnProperty("next_validators_hash")) + object.next_validators_hash = options.bytes === String ? $util.base64.encode(message.next_validators_hash, 0, message.next_validators_hash.length) : options.bytes === Array ? Array.prototype.slice.call(message.next_validators_hash) : message.next_validators_hash; + return object; + }; - ics23.CompressedBatchEntry = (function() { + /** + * Converts this ConsensusState to JSON. + * @function toJSON + * @memberof ibc.lightclients.tendermint.v1.ConsensusState + * @instance + * @returns {Object.} JSON object + */ + ConsensusState.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Properties of a CompressedBatchEntry. - * @memberof ics23 - * @interface ICompressedBatchEntry - * @property {ics23.ICompressedExistenceProof|null} [exist] CompressedBatchEntry exist - * @property {ics23.ICompressedNonExistenceProof|null} [nonexist] CompressedBatchEntry nonexist - */ + return ConsensusState; + })(); - /** - * Constructs a new CompressedBatchEntry. - * @memberof ics23 - * @classdesc Represents a CompressedBatchEntry. - * @implements ICompressedBatchEntry - * @constructor - * @param {ics23.ICompressedBatchEntry=} [properties] Properties to set - */ - function CompressedBatchEntry(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + v1.Misbehaviour = (function() { - /** - * CompressedBatchEntry exist. - * @member {ics23.ICompressedExistenceProof|null|undefined} exist - * @memberof ics23.CompressedBatchEntry - * @instance - */ - CompressedBatchEntry.prototype.exist = null; + /** + * Properties of a Misbehaviour. + * @memberof ibc.lightclients.tendermint.v1 + * @interface IMisbehaviour + * @property {string|null} [client_id] Misbehaviour client_id + * @property {ibc.lightclients.tendermint.v1.IHeader|null} [header_1] Misbehaviour header_1 + * @property {ibc.lightclients.tendermint.v1.IHeader|null} [header_2] Misbehaviour header_2 + */ - /** - * CompressedBatchEntry nonexist. - * @member {ics23.ICompressedNonExistenceProof|null|undefined} nonexist - * @memberof ics23.CompressedBatchEntry - * @instance - */ - CompressedBatchEntry.prototype.nonexist = null; + /** + * Constructs a new Misbehaviour. + * @memberof ibc.lightclients.tendermint.v1 + * @classdesc Represents a Misbehaviour. + * @implements IMisbehaviour + * @constructor + * @param {ibc.lightclients.tendermint.v1.IMisbehaviour=} [properties] Properties to set + */ + function Misbehaviour(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - // OneOf field names bound to virtual getters and setters - let $oneOfFields; + /** + * Misbehaviour client_id. + * @member {string} client_id + * @memberof ibc.lightclients.tendermint.v1.Misbehaviour + * @instance + */ + Misbehaviour.prototype.client_id = ""; - /** - * CompressedBatchEntry proof. - * @member {"exist"|"nonexist"|undefined} proof - * @memberof ics23.CompressedBatchEntry - * @instance - */ - Object.defineProperty(CompressedBatchEntry.prototype, "proof", { - get: $util.oneOfGetter($oneOfFields = ["exist", "nonexist"]), - set: $util.oneOfSetter($oneOfFields) - }); + /** + * Misbehaviour header_1. + * @member {ibc.lightclients.tendermint.v1.IHeader|null|undefined} header_1 + * @memberof ibc.lightclients.tendermint.v1.Misbehaviour + * @instance + */ + Misbehaviour.prototype.header_1 = null; - /** - * Encodes the specified CompressedBatchEntry message. Does not implicitly {@link ics23.CompressedBatchEntry.verify|verify} messages. - * @function encode - * @memberof ics23.CompressedBatchEntry - * @static - * @param {ics23.ICompressedBatchEntry} message CompressedBatchEntry message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CompressedBatchEntry.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.exist != null && Object.hasOwnProperty.call(message, "exist")) - $root.ics23.CompressedExistenceProof.encode(message.exist, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nonexist != null && Object.hasOwnProperty.call(message, "nonexist")) - $root.ics23.CompressedNonExistenceProof.encode(message.nonexist, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; + /** + * Misbehaviour header_2. + * @member {ibc.lightclients.tendermint.v1.IHeader|null|undefined} header_2 + * @memberof ibc.lightclients.tendermint.v1.Misbehaviour + * @instance + */ + Misbehaviour.prototype.header_2 = null; - /** - * Encodes the specified CompressedBatchEntry message, length delimited. Does not implicitly {@link ics23.CompressedBatchEntry.verify|verify} messages. - * @function encodeDelimited - * @memberof ics23.CompressedBatchEntry - * @static - * @param {ics23.ICompressedBatchEntry} message CompressedBatchEntry message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CompressedBatchEntry.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified Misbehaviour message. Does not implicitly {@link ibc.lightclients.tendermint.v1.Misbehaviour.verify|verify} messages. + * @function encode + * @memberof ibc.lightclients.tendermint.v1.Misbehaviour + * @static + * @param {ibc.lightclients.tendermint.v1.IMisbehaviour} message Misbehaviour message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Misbehaviour.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.client_id != null && Object.hasOwnProperty.call(message, "client_id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.client_id); + if (message.header_1 != null && Object.hasOwnProperty.call(message, "header_1")) + $root.ibc.lightclients.tendermint.v1.Header.encode(message.header_1, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.header_2 != null && Object.hasOwnProperty.call(message, "header_2")) + $root.ibc.lightclients.tendermint.v1.Header.encode(message.header_2, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; - /** - * Decodes a CompressedBatchEntry message from the specified reader or buffer. - * @function decode - * @memberof ics23.CompressedBatchEntry - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {ics23.CompressedBatchEntry} CompressedBatchEntry - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CompressedBatchEntry.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ics23.CompressedBatchEntry(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.exist = $root.ics23.CompressedExistenceProof.decode(reader, reader.uint32()); - break; - case 2: - message.nonexist = $root.ics23.CompressedNonExistenceProof.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Encodes the specified Misbehaviour message, length delimited. Does not implicitly {@link ibc.lightclients.tendermint.v1.Misbehaviour.verify|verify} messages. + * @function encodeDelimited + * @memberof ibc.lightclients.tendermint.v1.Misbehaviour + * @static + * @param {ibc.lightclients.tendermint.v1.IMisbehaviour} message Misbehaviour message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Misbehaviour.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a CompressedBatchEntry message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ics23.CompressedBatchEntry - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ics23.CompressedBatchEntry} CompressedBatchEntry - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CompressedBatchEntry.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a Misbehaviour message from the specified reader or buffer. + * @function decode + * @memberof ibc.lightclients.tendermint.v1.Misbehaviour + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {ibc.lightclients.tendermint.v1.Misbehaviour} Misbehaviour + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Misbehaviour.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.tendermint.v1.Misbehaviour(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.client_id = reader.string(); + break; + case 2: + message.header_1 = $root.ibc.lightclients.tendermint.v1.Header.decode(reader, reader.uint32()); + break; + case 3: + message.header_2 = $root.ibc.lightclients.tendermint.v1.Header.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Misbehaviour message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof ibc.lightclients.tendermint.v1.Misbehaviour + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {ibc.lightclients.tendermint.v1.Misbehaviour} Misbehaviour + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Misbehaviour.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies a CompressedBatchEntry message. - * @function verify - * @memberof ics23.CompressedBatchEntry - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CompressedBatchEntry.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - let properties = {}; - if (message.exist != null && message.hasOwnProperty("exist")) { - properties.proof = 1; - { - let error = $root.ics23.CompressedExistenceProof.verify(message.exist); - if (error) - return "exist." + error; - } - } - if (message.nonexist != null && message.hasOwnProperty("nonexist")) { - if (properties.proof === 1) - return "proof: multiple values"; - properties.proof = 1; - { - let error = $root.ics23.CompressedNonExistenceProof.verify(message.nonexist); - if (error) - return "nonexist." + error; - } - } - return null; - }; + /** + * Verifies a Misbehaviour message. + * @function verify + * @memberof ibc.lightclients.tendermint.v1.Misbehaviour + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Misbehaviour.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.client_id != null && message.hasOwnProperty("client_id")) + if (!$util.isString(message.client_id)) + return "client_id: string expected"; + if (message.header_1 != null && message.hasOwnProperty("header_1")) { + let error = $root.ibc.lightclients.tendermint.v1.Header.verify(message.header_1); + if (error) + return "header_1." + error; + } + if (message.header_2 != null && message.hasOwnProperty("header_2")) { + let error = $root.ibc.lightclients.tendermint.v1.Header.verify(message.header_2); + if (error) + return "header_2." + error; + } + return null; + }; - /** - * Creates a CompressedBatchEntry message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof ics23.CompressedBatchEntry - * @static - * @param {Object.} object Plain object - * @returns {ics23.CompressedBatchEntry} CompressedBatchEntry - */ - CompressedBatchEntry.fromObject = function fromObject(object) { - if (object instanceof $root.ics23.CompressedBatchEntry) - return object; - let message = new $root.ics23.CompressedBatchEntry(); - if (object.exist != null) { - if (typeof object.exist !== "object") - throw TypeError(".ics23.CompressedBatchEntry.exist: object expected"); - message.exist = $root.ics23.CompressedExistenceProof.fromObject(object.exist); - } - if (object.nonexist != null) { - if (typeof object.nonexist !== "object") - throw TypeError(".ics23.CompressedBatchEntry.nonexist: object expected"); - message.nonexist = $root.ics23.CompressedNonExistenceProof.fromObject(object.nonexist); - } - return message; - }; + /** + * Creates a Misbehaviour message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof ibc.lightclients.tendermint.v1.Misbehaviour + * @static + * @param {Object.} object Plain object + * @returns {ibc.lightclients.tendermint.v1.Misbehaviour} Misbehaviour + */ + Misbehaviour.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.lightclients.tendermint.v1.Misbehaviour) + return object; + let message = new $root.ibc.lightclients.tendermint.v1.Misbehaviour(); + if (object.client_id != null) + message.client_id = String(object.client_id); + if (object.header_1 != null) { + if (typeof object.header_1 !== "object") + throw TypeError(".ibc.lightclients.tendermint.v1.Misbehaviour.header_1: object expected"); + message.header_1 = $root.ibc.lightclients.tendermint.v1.Header.fromObject(object.header_1); + } + if (object.header_2 != null) { + if (typeof object.header_2 !== "object") + throw TypeError(".ibc.lightclients.tendermint.v1.Misbehaviour.header_2: object expected"); + message.header_2 = $root.ibc.lightclients.tendermint.v1.Header.fromObject(object.header_2); + } + return message; + }; - /** - * Creates a plain object from a CompressedBatchEntry message. Also converts values to other types if specified. - * @function toObject - * @memberof ics23.CompressedBatchEntry - * @static - * @param {ics23.CompressedBatchEntry} message CompressedBatchEntry - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - CompressedBatchEntry.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (message.exist != null && message.hasOwnProperty("exist")) { - object.exist = $root.ics23.CompressedExistenceProof.toObject(message.exist, options); - if (options.oneofs) - object.proof = "exist"; - } - if (message.nonexist != null && message.hasOwnProperty("nonexist")) { - object.nonexist = $root.ics23.CompressedNonExistenceProof.toObject(message.nonexist, options); - if (options.oneofs) - object.proof = "nonexist"; - } - return object; - }; + /** + * Creates a plain object from a Misbehaviour message. Also converts values to other types if specified. + * @function toObject + * @memberof ibc.lightclients.tendermint.v1.Misbehaviour + * @static + * @param {ibc.lightclients.tendermint.v1.Misbehaviour} message Misbehaviour + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Misbehaviour.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + object.client_id = ""; + object.header_1 = null; + object.header_2 = null; + } + if (message.client_id != null && message.hasOwnProperty("client_id")) + object.client_id = message.client_id; + if (message.header_1 != null && message.hasOwnProperty("header_1")) + object.header_1 = $root.ibc.lightclients.tendermint.v1.Header.toObject(message.header_1, options); + if (message.header_2 != null && message.hasOwnProperty("header_2")) + object.header_2 = $root.ibc.lightclients.tendermint.v1.Header.toObject(message.header_2, options); + return object; + }; - /** - * Converts this CompressedBatchEntry to JSON. - * @function toJSON - * @memberof ics23.CompressedBatchEntry - * @instance - * @returns {Object.} JSON object - */ - CompressedBatchEntry.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Converts this Misbehaviour to JSON. + * @function toJSON + * @memberof ibc.lightclients.tendermint.v1.Misbehaviour + * @instance + * @returns {Object.} JSON object + */ + Misbehaviour.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return CompressedBatchEntry; - })(); + return Misbehaviour; + })(); - ics23.CompressedExistenceProof = (function() { + v1.Header = (function() { - /** - * Properties of a CompressedExistenceProof. - * @memberof ics23 - * @interface ICompressedExistenceProof - * @property {Uint8Array|null} [key] CompressedExistenceProof key - * @property {Uint8Array|null} [value] CompressedExistenceProof value - * @property {ics23.ILeafOp|null} [leaf] CompressedExistenceProof leaf - * @property {Array.|null} [path] CompressedExistenceProof path - */ + /** + * Properties of a Header. + * @memberof ibc.lightclients.tendermint.v1 + * @interface IHeader + * @property {tendermint.types.ISignedHeader|null} [signed_header] Header signed_header + * @property {tendermint.types.IValidatorSet|null} [validator_set] Header validator_set + * @property {ibc.core.client.v1.IHeight|null} [trusted_height] Header trusted_height + * @property {tendermint.types.IValidatorSet|null} [trusted_validators] Header trusted_validators + */ - /** - * Constructs a new CompressedExistenceProof. - * @memberof ics23 - * @classdesc Represents a CompressedExistenceProof. - * @implements ICompressedExistenceProof - * @constructor - * @param {ics23.ICompressedExistenceProof=} [properties] Properties to set - */ - function CompressedExistenceProof(properties) { - this.path = []; - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Constructs a new Header. + * @memberof ibc.lightclients.tendermint.v1 + * @classdesc Represents a Header. + * @implements IHeader + * @constructor + * @param {ibc.lightclients.tendermint.v1.IHeader=} [properties] Properties to set + */ + function Header(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * CompressedExistenceProof key. - * @member {Uint8Array} key - * @memberof ics23.CompressedExistenceProof - * @instance - */ - CompressedExistenceProof.prototype.key = $util.newBuffer([]); + /** + * Header signed_header. + * @member {tendermint.types.ISignedHeader|null|undefined} signed_header + * @memberof ibc.lightclients.tendermint.v1.Header + * @instance + */ + Header.prototype.signed_header = null; - /** - * CompressedExistenceProof value. - * @member {Uint8Array} value - * @memberof ics23.CompressedExistenceProof - * @instance - */ - CompressedExistenceProof.prototype.value = $util.newBuffer([]); + /** + * Header validator_set. + * @member {tendermint.types.IValidatorSet|null|undefined} validator_set + * @memberof ibc.lightclients.tendermint.v1.Header + * @instance + */ + Header.prototype.validator_set = null; - /** - * CompressedExistenceProof leaf. - * @member {ics23.ILeafOp|null|undefined} leaf - * @memberof ics23.CompressedExistenceProof - * @instance - */ - CompressedExistenceProof.prototype.leaf = null; + /** + * Header trusted_height. + * @member {ibc.core.client.v1.IHeight|null|undefined} trusted_height + * @memberof ibc.lightclients.tendermint.v1.Header + * @instance + */ + Header.prototype.trusted_height = null; - /** - * CompressedExistenceProof path. - * @member {Array.} path - * @memberof ics23.CompressedExistenceProof - * @instance - */ - CompressedExistenceProof.prototype.path = $util.emptyArray; + /** + * Header trusted_validators. + * @member {tendermint.types.IValidatorSet|null|undefined} trusted_validators + * @memberof ibc.lightclients.tendermint.v1.Header + * @instance + */ + Header.prototype.trusted_validators = null; - /** - * Encodes the specified CompressedExistenceProof message. Does not implicitly {@link ics23.CompressedExistenceProof.verify|verify} messages. - * @function encode - * @memberof ics23.CompressedExistenceProof - * @static - * @param {ics23.ICompressedExistenceProof} message CompressedExistenceProof message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CompressedExistenceProof.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.key != null && Object.hasOwnProperty.call(message, "key")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.key); - if (message.value != null && Object.hasOwnProperty.call(message, "value")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.value); - if (message.leaf != null && Object.hasOwnProperty.call(message, "leaf")) - $root.ics23.LeafOp.encode(message.leaf, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.path != null && message.path.length) { - writer.uint32(/* id 4, wireType 2 =*/34).fork(); - for (let i = 0; i < message.path.length; ++i) - writer.int32(message.path[i]); - writer.ldelim(); - } - return writer; - }; + /** + * Encodes the specified Header message. Does not implicitly {@link ibc.lightclients.tendermint.v1.Header.verify|verify} messages. + * @function encode + * @memberof ibc.lightclients.tendermint.v1.Header + * @static + * @param {ibc.lightclients.tendermint.v1.IHeader} message Header message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Header.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.signed_header != null && Object.hasOwnProperty.call(message, "signed_header")) + $root.tendermint.types.SignedHeader.encode(message.signed_header, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.validator_set != null && Object.hasOwnProperty.call(message, "validator_set")) + $root.tendermint.types.ValidatorSet.encode(message.validator_set, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.trusted_height != null && Object.hasOwnProperty.call(message, "trusted_height")) + $root.ibc.core.client.v1.Height.encode(message.trusted_height, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.trusted_validators != null && Object.hasOwnProperty.call(message, "trusted_validators")) + $root.tendermint.types.ValidatorSet.encode(message.trusted_validators, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + return writer; + }; - /** - * Encodes the specified CompressedExistenceProof message, length delimited. Does not implicitly {@link ics23.CompressedExistenceProof.verify|verify} messages. - * @function encodeDelimited - * @memberof ics23.CompressedExistenceProof - * @static - * @param {ics23.ICompressedExistenceProof} message CompressedExistenceProof message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CompressedExistenceProof.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified Header message, length delimited. Does not implicitly {@link ibc.lightclients.tendermint.v1.Header.verify|verify} messages. + * @function encodeDelimited + * @memberof ibc.lightclients.tendermint.v1.Header + * @static + * @param {ibc.lightclients.tendermint.v1.IHeader} message Header message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Header.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a CompressedExistenceProof message from the specified reader or buffer. - * @function decode - * @memberof ics23.CompressedExistenceProof - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {ics23.CompressedExistenceProof} CompressedExistenceProof - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CompressedExistenceProof.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ics23.CompressedExistenceProof(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.key = reader.bytes(); - break; - case 2: - message.value = reader.bytes(); - break; - case 3: - message.leaf = $root.ics23.LeafOp.decode(reader, reader.uint32()); - break; - case 4: - if (!(message.path && message.path.length)) - message.path = []; - if ((tag & 7) === 2) { - let end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.path.push(reader.int32()); - } else - message.path.push(reader.int32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Decodes a Header message from the specified reader or buffer. + * @function decode + * @memberof ibc.lightclients.tendermint.v1.Header + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {ibc.lightclients.tendermint.v1.Header} Header + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Header.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.tendermint.v1.Header(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.signed_header = $root.tendermint.types.SignedHeader.decode(reader, reader.uint32()); + break; + case 2: + message.validator_set = $root.tendermint.types.ValidatorSet.decode(reader, reader.uint32()); + break; + case 3: + message.trusted_height = $root.ibc.core.client.v1.Height.decode(reader, reader.uint32()); + break; + case 4: + message.trusted_validators = $root.tendermint.types.ValidatorSet.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Decodes a CompressedExistenceProof message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ics23.CompressedExistenceProof - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ics23.CompressedExistenceProof} CompressedExistenceProof - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CompressedExistenceProof.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a Header message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof ibc.lightclients.tendermint.v1.Header + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {ibc.lightclients.tendermint.v1.Header} Header + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Header.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies a CompressedExistenceProof message. - * @function verify - * @memberof ics23.CompressedExistenceProof - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CompressedExistenceProof.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.key != null && message.hasOwnProperty("key")) - if (!(message.key && typeof message.key.length === "number" || $util.isString(message.key))) - return "key: buffer expected"; - if (message.value != null && message.hasOwnProperty("value")) - if (!(message.value && typeof message.value.length === "number" || $util.isString(message.value))) - return "value: buffer expected"; - if (message.leaf != null && message.hasOwnProperty("leaf")) { - let error = $root.ics23.LeafOp.verify(message.leaf); - if (error) - return "leaf." + error; - } - if (message.path != null && message.hasOwnProperty("path")) { - if (!Array.isArray(message.path)) - return "path: array expected"; - for (let i = 0; i < message.path.length; ++i) - if (!$util.isInteger(message.path[i])) - return "path: integer[] expected"; - } - return null; - }; + /** + * Verifies a Header message. + * @function verify + * @memberof ibc.lightclients.tendermint.v1.Header + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Header.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.signed_header != null && message.hasOwnProperty("signed_header")) { + let error = $root.tendermint.types.SignedHeader.verify(message.signed_header); + if (error) + return "signed_header." + error; + } + if (message.validator_set != null && message.hasOwnProperty("validator_set")) { + let error = $root.tendermint.types.ValidatorSet.verify(message.validator_set); + if (error) + return "validator_set." + error; + } + if (message.trusted_height != null && message.hasOwnProperty("trusted_height")) { + let error = $root.ibc.core.client.v1.Height.verify(message.trusted_height); + if (error) + return "trusted_height." + error; + } + if (message.trusted_validators != null && message.hasOwnProperty("trusted_validators")) { + let error = $root.tendermint.types.ValidatorSet.verify(message.trusted_validators); + if (error) + return "trusted_validators." + error; + } + return null; + }; - /** - * Creates a CompressedExistenceProof message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof ics23.CompressedExistenceProof - * @static - * @param {Object.} object Plain object - * @returns {ics23.CompressedExistenceProof} CompressedExistenceProof - */ - CompressedExistenceProof.fromObject = function fromObject(object) { - if (object instanceof $root.ics23.CompressedExistenceProof) - return object; - let message = new $root.ics23.CompressedExistenceProof(); - if (object.key != null) - if (typeof object.key === "string") - $util.base64.decode(object.key, message.key = $util.newBuffer($util.base64.length(object.key)), 0); - else if (object.key.length) - message.key = object.key; - if (object.value != null) - if (typeof object.value === "string") - $util.base64.decode(object.value, message.value = $util.newBuffer($util.base64.length(object.value)), 0); - else if (object.value.length) - message.value = object.value; - if (object.leaf != null) { - if (typeof object.leaf !== "object") - throw TypeError(".ics23.CompressedExistenceProof.leaf: object expected"); - message.leaf = $root.ics23.LeafOp.fromObject(object.leaf); - } - if (object.path) { - if (!Array.isArray(object.path)) - throw TypeError(".ics23.CompressedExistenceProof.path: array expected"); - message.path = []; - for (let i = 0; i < object.path.length; ++i) - message.path[i] = object.path[i] | 0; - } - return message; - }; + /** + * Creates a Header message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof ibc.lightclients.tendermint.v1.Header + * @static + * @param {Object.} object Plain object + * @returns {ibc.lightclients.tendermint.v1.Header} Header + */ + Header.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.lightclients.tendermint.v1.Header) + return object; + let message = new $root.ibc.lightclients.tendermint.v1.Header(); + if (object.signed_header != null) { + if (typeof object.signed_header !== "object") + throw TypeError(".ibc.lightclients.tendermint.v1.Header.signed_header: object expected"); + message.signed_header = $root.tendermint.types.SignedHeader.fromObject(object.signed_header); + } + if (object.validator_set != null) { + if (typeof object.validator_set !== "object") + throw TypeError(".ibc.lightclients.tendermint.v1.Header.validator_set: object expected"); + message.validator_set = $root.tendermint.types.ValidatorSet.fromObject(object.validator_set); + } + if (object.trusted_height != null) { + if (typeof object.trusted_height !== "object") + throw TypeError(".ibc.lightclients.tendermint.v1.Header.trusted_height: object expected"); + message.trusted_height = $root.ibc.core.client.v1.Height.fromObject(object.trusted_height); + } + if (object.trusted_validators != null) { + if (typeof object.trusted_validators !== "object") + throw TypeError(".ibc.lightclients.tendermint.v1.Header.trusted_validators: object expected"); + message.trusted_validators = $root.tendermint.types.ValidatorSet.fromObject(object.trusted_validators); + } + return message; + }; - /** - * Creates a plain object from a CompressedExistenceProof message. Also converts values to other types if specified. - * @function toObject - * @memberof ics23.CompressedExistenceProof - * @static - * @param {ics23.CompressedExistenceProof} message CompressedExistenceProof - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - CompressedExistenceProof.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.arrays || options.defaults) - object.path = []; - if (options.defaults) { - if (options.bytes === String) - object.key = ""; - else { - object.key = []; - if (options.bytes !== Array) - object.key = $util.newBuffer(object.key); - } - if (options.bytes === String) - object.value = ""; - else { - object.value = []; - if (options.bytes !== Array) - object.value = $util.newBuffer(object.value); - } - object.leaf = null; - } - if (message.key != null && message.hasOwnProperty("key")) - object.key = options.bytes === String ? $util.base64.encode(message.key, 0, message.key.length) : options.bytes === Array ? Array.prototype.slice.call(message.key) : message.key; - if (message.value != null && message.hasOwnProperty("value")) - object.value = options.bytes === String ? $util.base64.encode(message.value, 0, message.value.length) : options.bytes === Array ? Array.prototype.slice.call(message.value) : message.value; - if (message.leaf != null && message.hasOwnProperty("leaf")) - object.leaf = $root.ics23.LeafOp.toObject(message.leaf, options); - if (message.path && message.path.length) { - object.path = []; - for (let j = 0; j < message.path.length; ++j) - object.path[j] = message.path[j]; - } - return object; - }; + /** + * Creates a plain object from a Header message. Also converts values to other types if specified. + * @function toObject + * @memberof ibc.lightclients.tendermint.v1.Header + * @static + * @param {ibc.lightclients.tendermint.v1.Header} message Header + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Header.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + object.signed_header = null; + object.validator_set = null; + object.trusted_height = null; + object.trusted_validators = null; + } + if (message.signed_header != null && message.hasOwnProperty("signed_header")) + object.signed_header = $root.tendermint.types.SignedHeader.toObject(message.signed_header, options); + if (message.validator_set != null && message.hasOwnProperty("validator_set")) + object.validator_set = $root.tendermint.types.ValidatorSet.toObject(message.validator_set, options); + if (message.trusted_height != null && message.hasOwnProperty("trusted_height")) + object.trusted_height = $root.ibc.core.client.v1.Height.toObject(message.trusted_height, options); + if (message.trusted_validators != null && message.hasOwnProperty("trusted_validators")) + object.trusted_validators = $root.tendermint.types.ValidatorSet.toObject(message.trusted_validators, options); + return object; + }; - /** - * Converts this CompressedExistenceProof to JSON. - * @function toJSON - * @memberof ics23.CompressedExistenceProof - * @instance - * @returns {Object.} JSON object - */ - CompressedExistenceProof.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Converts this Header to JSON. + * @function toJSON + * @memberof ibc.lightclients.tendermint.v1.Header + * @instance + * @returns {Object.} JSON object + */ + Header.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return CompressedExistenceProof; - })(); + return Header; + })(); - ics23.CompressedNonExistenceProof = (function() { + v1.Fraction = (function() { - /** - * Properties of a CompressedNonExistenceProof. - * @memberof ics23 - * @interface ICompressedNonExistenceProof - * @property {Uint8Array|null} [key] CompressedNonExistenceProof key - * @property {ics23.ICompressedExistenceProof|null} [left] CompressedNonExistenceProof left - * @property {ics23.ICompressedExistenceProof|null} [right] CompressedNonExistenceProof right - */ + /** + * Properties of a Fraction. + * @memberof ibc.lightclients.tendermint.v1 + * @interface IFraction + * @property {Long|null} [numerator] Fraction numerator + * @property {Long|null} [denominator] Fraction denominator + */ - /** - * Constructs a new CompressedNonExistenceProof. - * @memberof ics23 - * @classdesc Represents a CompressedNonExistenceProof. - * @implements ICompressedNonExistenceProof - * @constructor - * @param {ics23.ICompressedNonExistenceProof=} [properties] Properties to set - */ - function CompressedNonExistenceProof(properties) { - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Constructs a new Fraction. + * @memberof ibc.lightclients.tendermint.v1 + * @classdesc Represents a Fraction. + * @implements IFraction + * @constructor + * @param {ibc.lightclients.tendermint.v1.IFraction=} [properties] Properties to set + */ + function Fraction(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * CompressedNonExistenceProof key. - * @member {Uint8Array} key - * @memberof ics23.CompressedNonExistenceProof - * @instance - */ - CompressedNonExistenceProof.prototype.key = $util.newBuffer([]); + /** + * Fraction numerator. + * @member {Long} numerator + * @memberof ibc.lightclients.tendermint.v1.Fraction + * @instance + */ + Fraction.prototype.numerator = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - /** - * CompressedNonExistenceProof left. - * @member {ics23.ICompressedExistenceProof|null|undefined} left - * @memberof ics23.CompressedNonExistenceProof - * @instance - */ - CompressedNonExistenceProof.prototype.left = null; + /** + * Fraction denominator. + * @member {Long} denominator + * @memberof ibc.lightclients.tendermint.v1.Fraction + * @instance + */ + Fraction.prototype.denominator = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - /** - * CompressedNonExistenceProof right. - * @member {ics23.ICompressedExistenceProof|null|undefined} right - * @memberof ics23.CompressedNonExistenceProof - * @instance - */ - CompressedNonExistenceProof.prototype.right = null; + /** + * Encodes the specified Fraction message. Does not implicitly {@link ibc.lightclients.tendermint.v1.Fraction.verify|verify} messages. + * @function encode + * @memberof ibc.lightclients.tendermint.v1.Fraction + * @static + * @param {ibc.lightclients.tendermint.v1.IFraction} message Fraction message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Fraction.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.numerator != null && Object.hasOwnProperty.call(message, "numerator")) + writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.numerator); + if (message.denominator != null && Object.hasOwnProperty.call(message, "denominator")) + writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.denominator); + return writer; + }; - /** - * Encodes the specified CompressedNonExistenceProof message. Does not implicitly {@link ics23.CompressedNonExistenceProof.verify|verify} messages. - * @function encode - * @memberof ics23.CompressedNonExistenceProof - * @static - * @param {ics23.ICompressedNonExistenceProof} message CompressedNonExistenceProof message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CompressedNonExistenceProof.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.key != null && Object.hasOwnProperty.call(message, "key")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.key); - if (message.left != null && Object.hasOwnProperty.call(message, "left")) - $root.ics23.CompressedExistenceProof.encode(message.left, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.right != null && Object.hasOwnProperty.call(message, "right")) - $root.ics23.CompressedExistenceProof.encode(message.right, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; + /** + * Encodes the specified Fraction message, length delimited. Does not implicitly {@link ibc.lightclients.tendermint.v1.Fraction.verify|verify} messages. + * @function encodeDelimited + * @memberof ibc.lightclients.tendermint.v1.Fraction + * @static + * @param {ibc.lightclients.tendermint.v1.IFraction} message Fraction message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Fraction.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Encodes the specified CompressedNonExistenceProof message, length delimited. Does not implicitly {@link ics23.CompressedNonExistenceProof.verify|verify} messages. - * @function encodeDelimited - * @memberof ics23.CompressedNonExistenceProof - * @static - * @param {ics23.ICompressedNonExistenceProof} message CompressedNonExistenceProof message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CompressedNonExistenceProof.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Decodes a Fraction message from the specified reader or buffer. + * @function decode + * @memberof ibc.lightclients.tendermint.v1.Fraction + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {ibc.lightclients.tendermint.v1.Fraction} Fraction + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Fraction.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ibc.lightclients.tendermint.v1.Fraction(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.numerator = reader.uint64(); + break; + case 2: + message.denominator = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Decodes a CompressedNonExistenceProof message from the specified reader or buffer. - * @function decode - * @memberof ics23.CompressedNonExistenceProof - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {ics23.CompressedNonExistenceProof} CompressedNonExistenceProof - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CompressedNonExistenceProof.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ics23.CompressedNonExistenceProof(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.key = reader.bytes(); - break; - case 2: - message.left = $root.ics23.CompressedExistenceProof.decode(reader, reader.uint32()); - break; - case 3: - message.right = $root.ics23.CompressedExistenceProof.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Decodes a Fraction message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof ibc.lightclients.tendermint.v1.Fraction + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {ibc.lightclients.tendermint.v1.Fraction} Fraction + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Fraction.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Decodes a CompressedNonExistenceProof message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof ics23.CompressedNonExistenceProof - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {ics23.CompressedNonExistenceProof} CompressedNonExistenceProof - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CompressedNonExistenceProof.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Verifies a Fraction message. + * @function verify + * @memberof ibc.lightclients.tendermint.v1.Fraction + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Fraction.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.numerator != null && message.hasOwnProperty("numerator")) + if (!$util.isInteger(message.numerator) && !(message.numerator && $util.isInteger(message.numerator.low) && $util.isInteger(message.numerator.high))) + return "numerator: integer|Long expected"; + if (message.denominator != null && message.hasOwnProperty("denominator")) + if (!$util.isInteger(message.denominator) && !(message.denominator && $util.isInteger(message.denominator.low) && $util.isInteger(message.denominator.high))) + return "denominator: integer|Long expected"; + return null; + }; - /** - * Verifies a CompressedNonExistenceProof message. - * @function verify - * @memberof ics23.CompressedNonExistenceProof - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CompressedNonExistenceProof.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.key != null && message.hasOwnProperty("key")) - if (!(message.key && typeof message.key.length === "number" || $util.isString(message.key))) - return "key: buffer expected"; - if (message.left != null && message.hasOwnProperty("left")) { - let error = $root.ics23.CompressedExistenceProof.verify(message.left); - if (error) - return "left." + error; - } - if (message.right != null && message.hasOwnProperty("right")) { - let error = $root.ics23.CompressedExistenceProof.verify(message.right); - if (error) - return "right." + error; - } - return null; - }; + /** + * Creates a Fraction message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof ibc.lightclients.tendermint.v1.Fraction + * @static + * @param {Object.} object Plain object + * @returns {ibc.lightclients.tendermint.v1.Fraction} Fraction + */ + Fraction.fromObject = function fromObject(object) { + if (object instanceof $root.ibc.lightclients.tendermint.v1.Fraction) + return object; + let message = new $root.ibc.lightclients.tendermint.v1.Fraction(); + if (object.numerator != null) + if ($util.Long) + (message.numerator = $util.Long.fromValue(object.numerator)).unsigned = true; + else if (typeof object.numerator === "string") + message.numerator = parseInt(object.numerator, 10); + else if (typeof object.numerator === "number") + message.numerator = object.numerator; + else if (typeof object.numerator === "object") + message.numerator = new $util.LongBits(object.numerator.low >>> 0, object.numerator.high >>> 0).toNumber(true); + if (object.denominator != null) + if ($util.Long) + (message.denominator = $util.Long.fromValue(object.denominator)).unsigned = true; + else if (typeof object.denominator === "string") + message.denominator = parseInt(object.denominator, 10); + else if (typeof object.denominator === "number") + message.denominator = object.denominator; + else if (typeof object.denominator === "object") + message.denominator = new $util.LongBits(object.denominator.low >>> 0, object.denominator.high >>> 0).toNumber(true); + return message; + }; - /** - * Creates a CompressedNonExistenceProof message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof ics23.CompressedNonExistenceProof - * @static - * @param {Object.} object Plain object - * @returns {ics23.CompressedNonExistenceProof} CompressedNonExistenceProof - */ - CompressedNonExistenceProof.fromObject = function fromObject(object) { - if (object instanceof $root.ics23.CompressedNonExistenceProof) - return object; - let message = new $root.ics23.CompressedNonExistenceProof(); - if (object.key != null) - if (typeof object.key === "string") - $util.base64.decode(object.key, message.key = $util.newBuffer($util.base64.length(object.key)), 0); - else if (object.key.length) - message.key = object.key; - if (object.left != null) { - if (typeof object.left !== "object") - throw TypeError(".ics23.CompressedNonExistenceProof.left: object expected"); - message.left = $root.ics23.CompressedExistenceProof.fromObject(object.left); - } - if (object.right != null) { - if (typeof object.right !== "object") - throw TypeError(".ics23.CompressedNonExistenceProof.right: object expected"); - message.right = $root.ics23.CompressedExistenceProof.fromObject(object.right); - } - return message; - }; + /** + * Creates a plain object from a Fraction message. Also converts values to other types if specified. + * @function toObject + * @memberof ibc.lightclients.tendermint.v1.Fraction + * @static + * @param {ibc.lightclients.tendermint.v1.Fraction} message Fraction + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Fraction.toObject = function toObject(message, options) { + if (!options) + options = {}; + let object = {}; + if (options.defaults) { + if ($util.Long) { + let long = new $util.Long(0, 0, true); + object.numerator = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.numerator = options.longs === String ? "0" : 0; + if ($util.Long) { + let long = new $util.Long(0, 0, true); + object.denominator = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.denominator = options.longs === String ? "0" : 0; + } + if (message.numerator != null && message.hasOwnProperty("numerator")) + if (typeof message.numerator === "number") + object.numerator = options.longs === String ? String(message.numerator) : message.numerator; + else + object.numerator = options.longs === String ? $util.Long.prototype.toString.call(message.numerator) : options.longs === Number ? new $util.LongBits(message.numerator.low >>> 0, message.numerator.high >>> 0).toNumber(true) : message.numerator; + if (message.denominator != null && message.hasOwnProperty("denominator")) + if (typeof message.denominator === "number") + object.denominator = options.longs === String ? String(message.denominator) : message.denominator; + else + object.denominator = options.longs === String ? $util.Long.prototype.toString.call(message.denominator) : options.longs === Number ? new $util.LongBits(message.denominator.low >>> 0, message.denominator.high >>> 0).toNumber(true) : message.denominator; + return object; + }; - /** - * Creates a plain object from a CompressedNonExistenceProof message. Also converts values to other types if specified. - * @function toObject - * @memberof ics23.CompressedNonExistenceProof - * @static - * @param {ics23.CompressedNonExistenceProof} message CompressedNonExistenceProof - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - CompressedNonExistenceProof.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - if (options.bytes === String) - object.key = ""; - else { - object.key = []; - if (options.bytes !== Array) - object.key = $util.newBuffer(object.key); - } - object.left = null; - object.right = null; - } - if (message.key != null && message.hasOwnProperty("key")) - object.key = options.bytes === String ? $util.base64.encode(message.key, 0, message.key.length) : options.bytes === Array ? Array.prototype.slice.call(message.key) : message.key; - if (message.left != null && message.hasOwnProperty("left")) - object.left = $root.ics23.CompressedExistenceProof.toObject(message.left, options); - if (message.right != null && message.hasOwnProperty("right")) - object.right = $root.ics23.CompressedExistenceProof.toObject(message.right, options); - return object; - }; + /** + * Converts this Fraction to JSON. + * @function toJSON + * @memberof ibc.lightclients.tendermint.v1.Fraction + * @instance + * @returns {Object.} JSON object + */ + Fraction.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Converts this CompressedNonExistenceProof to JSON. - * @function toJSON - * @memberof ics23.CompressedNonExistenceProof - * @instance - * @returns {Object.} JSON object - */ - CompressedNonExistenceProof.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + return Fraction; + })(); + + return v1; + })(); + + return tendermint; + })(); - return CompressedNonExistenceProof; + return lightclients; })(); - return ics23; + return ibc; })(); export const tendermint = $root.tendermint = (() => { @@ -83678,276 +88992,6 @@ export const tendermint = $root.tendermint = (() => { return version; })(); - tendermint.libs = (function() { - - /** - * Namespace libs. - * @memberof tendermint - * @namespace - */ - const libs = {}; - - libs.bits = (function() { - - /** - * Namespace bits. - * @memberof tendermint.libs - * @namespace - */ - const bits = {}; - - bits.BitArray = (function() { - - /** - * Properties of a BitArray. - * @memberof tendermint.libs.bits - * @interface IBitArray - * @property {Long|null} [bits] BitArray bits - * @property {Array.|null} [elems] BitArray elems - */ - - /** - * Constructs a new BitArray. - * @memberof tendermint.libs.bits - * @classdesc Represents a BitArray. - * @implements IBitArray - * @constructor - * @param {tendermint.libs.bits.IBitArray=} [properties] Properties to set - */ - function BitArray(properties) { - this.elems = []; - if (properties) - for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * BitArray bits. - * @member {Long} bits - * @memberof tendermint.libs.bits.BitArray - * @instance - */ - BitArray.prototype.bits = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * BitArray elems. - * @member {Array.} elems - * @memberof tendermint.libs.bits.BitArray - * @instance - */ - BitArray.prototype.elems = $util.emptyArray; - - /** - * Encodes the specified BitArray message. Does not implicitly {@link tendermint.libs.bits.BitArray.verify|verify} messages. - * @function encode - * @memberof tendermint.libs.bits.BitArray - * @static - * @param {tendermint.libs.bits.IBitArray} message BitArray message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - BitArray.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.bits != null && Object.hasOwnProperty.call(message, "bits")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.bits); - if (message.elems != null && message.elems.length) { - writer.uint32(/* id 2, wireType 2 =*/18).fork(); - for (let i = 0; i < message.elems.length; ++i) - writer.uint64(message.elems[i]); - writer.ldelim(); - } - return writer; - }; - - /** - * Encodes the specified BitArray message, length delimited. Does not implicitly {@link tendermint.libs.bits.BitArray.verify|verify} messages. - * @function encodeDelimited - * @memberof tendermint.libs.bits.BitArray - * @static - * @param {tendermint.libs.bits.IBitArray} message BitArray message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - BitArray.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a BitArray message from the specified reader or buffer. - * @function decode - * @memberof tendermint.libs.bits.BitArray - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {tendermint.libs.bits.BitArray} BitArray - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - BitArray.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.tendermint.libs.bits.BitArray(); - while (reader.pos < end) { - let tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.bits = reader.int64(); - break; - case 2: - if (!(message.elems && message.elems.length)) - message.elems = []; - if ((tag & 7) === 2) { - let end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.elems.push(reader.uint64()); - } else - message.elems.push(reader.uint64()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a BitArray message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof tendermint.libs.bits.BitArray - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {tendermint.libs.bits.BitArray} BitArray - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - BitArray.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a BitArray message. - * @function verify - * @memberof tendermint.libs.bits.BitArray - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - BitArray.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.bits != null && message.hasOwnProperty("bits")) - if (!$util.isInteger(message.bits) && !(message.bits && $util.isInteger(message.bits.low) && $util.isInteger(message.bits.high))) - return "bits: integer|Long expected"; - if (message.elems != null && message.hasOwnProperty("elems")) { - if (!Array.isArray(message.elems)) - return "elems: array expected"; - for (let i = 0; i < message.elems.length; ++i) - if (!$util.isInteger(message.elems[i]) && !(message.elems[i] && $util.isInteger(message.elems[i].low) && $util.isInteger(message.elems[i].high))) - return "elems: integer|Long[] expected"; - } - return null; - }; - - /** - * Creates a BitArray message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof tendermint.libs.bits.BitArray - * @static - * @param {Object.} object Plain object - * @returns {tendermint.libs.bits.BitArray} BitArray - */ - BitArray.fromObject = function fromObject(object) { - if (object instanceof $root.tendermint.libs.bits.BitArray) - return object; - let message = new $root.tendermint.libs.bits.BitArray(); - if (object.bits != null) - if ($util.Long) - (message.bits = $util.Long.fromValue(object.bits)).unsigned = false; - else if (typeof object.bits === "string") - message.bits = parseInt(object.bits, 10); - else if (typeof object.bits === "number") - message.bits = object.bits; - else if (typeof object.bits === "object") - message.bits = new $util.LongBits(object.bits.low >>> 0, object.bits.high >>> 0).toNumber(); - if (object.elems) { - if (!Array.isArray(object.elems)) - throw TypeError(".tendermint.libs.bits.BitArray.elems: array expected"); - message.elems = []; - for (let i = 0; i < object.elems.length; ++i) - if ($util.Long) - (message.elems[i] = $util.Long.fromValue(object.elems[i])).unsigned = true; - else if (typeof object.elems[i] === "string") - message.elems[i] = parseInt(object.elems[i], 10); - else if (typeof object.elems[i] === "number") - message.elems[i] = object.elems[i]; - else if (typeof object.elems[i] === "object") - message.elems[i] = new $util.LongBits(object.elems[i].low >>> 0, object.elems[i].high >>> 0).toNumber(true); - } - return message; - }; - - /** - * Creates a plain object from a BitArray message. Also converts values to other types if specified. - * @function toObject - * @memberof tendermint.libs.bits.BitArray - * @static - * @param {tendermint.libs.bits.BitArray} message BitArray - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - BitArray.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.arrays || options.defaults) - object.elems = []; - if (options.defaults) - if ($util.Long) { - let long = new $util.Long(0, 0, false); - object.bits = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.bits = options.longs === String ? "0" : 0; - if (message.bits != null && message.hasOwnProperty("bits")) - if (typeof message.bits === "number") - object.bits = options.longs === String ? String(message.bits) : message.bits; - else - object.bits = options.longs === String ? $util.Long.prototype.toString.call(message.bits) : options.longs === Number ? new $util.LongBits(message.bits.low >>> 0, message.bits.high >>> 0).toNumber() : message.bits; - if (message.elems && message.elems.length) { - object.elems = []; - for (let j = 0; j < message.elems.length; ++j) - if (typeof message.elems[j] === "number") - object.elems[j] = options.longs === String ? String(message.elems[j]) : message.elems[j]; - else - object.elems[j] = options.longs === String ? $util.Long.prototype.toString.call(message.elems[j]) : options.longs === Number ? new $util.LongBits(message.elems[j].low >>> 0, message.elems[j].high >>> 0).toNumber(true) : message.elems[j]; - } - return object; - }; - - /** - * Converts this BitArray to JSON. - * @function toJSON - * @memberof tendermint.libs.bits.BitArray - * @instance - * @returns {Object.} JSON object - */ - BitArray.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return BitArray; - })(); - - return bits; - })(); - - return libs; - })(); - return tendermint; })(); diff --git a/src/helpers/cosmos.ts b/src/helpers/cosmos.ts index 1b5ed36b..20213722 100644 --- a/src/helpers/cosmos.ts +++ b/src/helpers/cosmos.ts @@ -38,6 +38,8 @@ export const IBC_USDC_DENOM = process.env.IBC_USDC_DENOM || 'uibcusdc'; export const COSMOS_DENOM = process.env.COSMOS_DENOM || 'uatom'; export const IBC_RELAYER_NEUTRON_ADDRESS = 'neutron1mjk79fjjgpplak5wq838w0yd982gzkyf8fxu8u'; +export const ADMIN_MODULE_ADDRESS = + 'neutron1hxskfdxpp5hqgtjj6am6nkjefhfzj359x0ar3z'; // BalancesResponse is the response model for the bank balances query. type BalancesResponse = { @@ -90,6 +92,10 @@ cosmosclient.codec.register( '/cosmos.adminmodule.adminmodule.MsgSubmitProposal', adminmodule.MsgSubmitProposal, ); +cosmosclient.codec.register( + '/cosmos.adminmodule.adminmodule.MsgSubmitProposalLegacy', + adminmodule.MsgSubmitProposalLegacy, +); cosmosclient.codec.register( '/ibc.lightclients.tendermint.v1.ClientState', ibcProto.lightclients.tendermint.v1.ClientState, @@ -700,7 +706,7 @@ export class WalletWrapper { mode: cosmosclient.rest.tx.BroadcastTxMode = cosmosclient.rest.tx .BroadcastTxMode.Sync, ): Promise { - const msg = new adminmodule.MsgSubmitProposal({ + const msg = new adminmodule.MsgSubmitProposalLegacy({ content: cosmosclient.codec.instanceToProtoAny( new cosmosclient.proto.cosmos.params.v1beta1.ParameterChangeProposal({ title: 'mock', diff --git a/src/helpers/dao.ts b/src/helpers/dao.ts index b4969a1a..962daf42 100644 --- a/src/helpers/dao.ts +++ b/src/helpers/dao.ts @@ -1,5 +1,6 @@ import axios from 'axios'; import { + ADMIN_MODULE_ADDRESS, CosmosWrapper, createBankMessage, getEventAttribute, @@ -22,6 +23,7 @@ import { clientUpdateProposal, paramChangeProposal, ParamChangeProposalInfo, + pinCodesCustomAutrhorityProposal, pinCodesProposal, removeSchedule, SendProposalInfo, @@ -828,14 +830,16 @@ export class DaoMember { custom: { submit_admin_proposal: { admin_proposal: { - software_upgrade_proposal: { - title, - description, - plan: { - name, - height, - info, - }, + proposal_execute_message: { + message: JSON.stringify({ + '@type': '/cosmos.upgrade.v1beta1.MsgSoftwareUpgrade', + authority: ADMIN_MODULE_ADDRESS, + plan: { + name, + height, + info, + }, + }), }, }, }, @@ -861,9 +865,41 @@ export class DaoMember { custom: { submit_admin_proposal: { admin_proposal: { - cancel_software_upgrade_proposal: { - title, - description, + proposal_execute_message: { + message: JSON.stringify({ + '@type': '/cosmos.upgrade.v1beta1.MsgCancelUpgrade', + authority: 'neutron1hxskfdxpp5hqgtjj6am6nkjefhfzj359x0ar3z', + }), + }, + }, + }, + }, + }; + return await this.submitSingleChoiceProposal( + title, + description, + [message], + deposit, + ); + } + /** + * submitCancelSoftwareUpgradeProposal creates proposal. + */ + async submitBankUpdateParamsProposal( + title: string, + description: string, + deposit: string, + ): Promise { + const message = { + custom: { + submit_admin_proposal: { + admin_proposal: { + proposal_execute_message: { + message: JSON.stringify({ + '@type': '/cosmos.bank.v1beta1.MsgUpdateParams', + authority: ADMIN_MODULE_ADDRESS, + params: { default_send_enabled: false }, + }), }, }, }, @@ -1123,6 +1159,32 @@ export class DaoMember { ); } + /** + * submitPinCodesCustomAuthorityProposal creates proposal which pins given code ids to wasmvm. + */ + async submitPinCodesCustomAuthorityProposal( + title: string, + description: string, + codesIds: number[], + amount: string, + authority: string, + ): Promise { + const message = pinCodesCustomAutrhorityProposal( + { + title, + description, + codes_ids: codesIds, + }, + authority, + ); + return await this.submitSingleChoiceProposal( + title, + description, + [message], + amount, + ); + } + /** * submitUnpinCodesProposal creates proposal which unpins given code ids to wasmvm. */ @@ -1205,13 +1267,13 @@ export class DaoMember { async submitUpdateAdminProposal( title: string, description: string, + sender: string, contract: string, newAdmin: string, amount: string, ): Promise { const message = updateAdminProposal({ - title, - description, + sender, contract, new_admin: newAdmin, }); @@ -1229,10 +1291,11 @@ export class DaoMember { async submitClearAdminProposal( title: string, description: string, + sender: string, contract: string, amount: string, ): Promise { - const message = clearAdminProposal({ title, description, contract }); + const message = clearAdminProposal({ sender, contract }); return await this.submitSingleChoiceProposal( title, description, diff --git a/src/helpers/proposal.ts b/src/helpers/proposal.ts index b6dd316f..b7f986cf 100644 --- a/src/helpers/proposal.ts +++ b/src/helpers/proposal.ts @@ -1,5 +1,6 @@ import { google } from '../generated/proto'; import Any = google.protobuf.Any; +import { ADMIN_MODULE_ADDRESS } from './cosmos'; export type ParamChangeProposalInfo = { title: string; @@ -16,15 +17,13 @@ export type PinCodesInfo = { }; export type UpdateAdmin = { - title: string; - description: string; + sender: string; contract: string; new_admin: string; }; export type ClearAdmin = { - title: string; - description: string; + sender: string; contract: string; }; @@ -146,10 +145,31 @@ export const pinCodesProposal = (info: PinCodesInfo): any => ({ custom: { submit_admin_proposal: { admin_proposal: { - pin_codes_proposal: { - title: info.title, - description: info.description, - code_ids: info.codes_ids, + proposal_execute_message: { + message: JSON.stringify({ + '@type': '/cosmwasm.wasm.v1.MsgPinCodes', + authority: ADMIN_MODULE_ADDRESS, + code_ids: info.codes_ids, + }), + }, + }, + }, + }, +}); + +export const pinCodesCustomAutrhorityProposal = ( + info: PinCodesInfo, + authority: string, +): any => ({ + custom: { + submit_admin_proposal: { + admin_proposal: { + proposal_execute_message: { + message: JSON.stringify({ + '@type': '/cosmwasm.wasm.v1.MsgPinCodes', + authority: authority, + code_ids: info.codes_ids, + }), }, }, }, @@ -160,10 +180,12 @@ export const unpinCodesProposal = (info: PinCodesInfo): any => ({ custom: { submit_admin_proposal: { admin_proposal: { - unpin_codes_proposal: { - title: info.title, - description: info.description, - code_ids: info.codes_ids, + proposal_execute_message: { + message: JSON.stringify({ + '@type': '/cosmwasm.wasm.v1.MsgUnpinCodes', + authority: ADMIN_MODULE_ADDRESS, + code_ids: info.codes_ids, + }), }, }, }, @@ -174,11 +196,13 @@ export const updateAdminProposal = (info: UpdateAdmin): any => ({ custom: { submit_admin_proposal: { admin_proposal: { - update_admin_proposal: { - title: info.title, - description: info.description, - contract: info.contract, - new_admin: info.new_admin, + proposal_execute_message: { + message: JSON.stringify({ + '@type': '/cosmwasm.wasm.v1.MsgUpdateAdmin', + sender: info.sender, + contract: info.contract, + new_admin: info.new_admin, + }), }, }, }, @@ -189,10 +213,12 @@ export const clearAdminProposal = (info: ClearAdmin): any => ({ custom: { submit_admin_proposal: { admin_proposal: { - clear_admin_proposal: { - title: info.title, - description: info.description, - contract: info.contract, + proposal_execute_message: { + message: JSON.stringify({ + '@type': '/cosmwasm.wasm.v1.MsgClearAdmin', + sender: info.sender, + contract: info.contract, + }), }, }, }, diff --git a/src/testcases/parallel/governance.test.ts b/src/testcases/parallel/governance.test.ts index 39544933..38dd0816 100644 --- a/src/testcases/parallel/governance.test.ts +++ b/src/testcases/parallel/governance.test.ts @@ -1,4 +1,5 @@ import { + ADMIN_MODULE_ADDRESS, CosmosWrapper, NEUTRON_DENOM, WalletWrapper, @@ -222,6 +223,7 @@ describe('Neutron / Governance', () => { await daoMember1.submitUpdateAdminProposal( 'Proposal #9', 'Update admin proposal. Will pass', + ADMIN_MODULE_ADDRESS, contractAddressForAdminMigration, daoMember1.user.wallet.address.toString(), '1000', @@ -232,6 +234,7 @@ describe('Neutron / Governance', () => { await daoMember1.submitClearAdminProposal( 'Proposal #10', 'Clear admin proposal. Will pass', + ADMIN_MODULE_ADDRESS, contractAddressForAdminMigration, '1000', ); @@ -344,6 +347,24 @@ describe('Neutron / Governance', () => { ); }); + test('create proposal #18, will pass', async () => { + await daoMember1.submitPinCodesCustomAuthorityProposal( + 'Proposal #18', + 'Pin codes proposal with wrong authority. This one will pass & fail on execution', + [1, 2], + '1000', + daoMember1.user.wallet.address.toString(), + ); + }); + + test('create proposal #19, will pass', async () => { + await daoMember1.submitBankUpdateParamsProposal( + 'Proposal #19', + 'Update params for bank module proposal. This one will pass & fail on execution due type is not whitelisted', + '1000', + ); + }); + test('create multi-choice proposal #1, will be picked choice 1', async () => { await daoMember1.submitMultiChoiceParameterChangeProposal( [ @@ -412,6 +433,8 @@ describe('Neutron / Governance', () => { await dao.checkPassedProposal(proposalId); }); test('execute passed proposal', async () => { + const host = await neutronChain.queryHostEnabled(); + expect(host).toEqual(true); await daoMember1.executeProposalWithAttempts(proposalId); }); test('check if host is not enabled after proposal execution', async () => { @@ -949,19 +972,77 @@ describe('Neutron / Governance', () => { expect(queryResult).toEqual(null); }); }); + + describe('vote for proposal #18 (no, yes, yes)', () => { + const proposalId = 18; + test('vote NO from wallet 1', async () => { + await daoMember1.voteNo(proposalId); + }); + test('vote YES from wallet 2', async () => { + await daoMember2.voteYes(proposalId); + }); + test('vote YES from wallet 3', async () => { + await daoMember3.voteYes(proposalId); + }); + }); + + describe('execute proposal #18', () => { + const proposalId = 18; + test('check if proposal is passed', async () => { + await dao.checkPassedProposal(proposalId); + }); + test('execute passed proposal, should fail', async () => { + let rawLog: any; + try { + rawLog = (await daoMember1.executeProposal(proposalId)).raw_log; + } catch (e) { + rawLog = e.message; + } + expect( + rawLog.includes( + 'authority in incoming msg is not equal to admin module', + ), + ); + }); + }); + + describe('vote for proposal #19 (no, yes, yes)', () => { + const proposalId = 19; + test('vote NO from wallet 1', async () => { + await daoMember1.voteNo(proposalId); + }); + test('vote YES from wallet 2', async () => { + await daoMember2.voteYes(proposalId); + }); + test('vote YES from wallet 3', async () => { + await daoMember3.voteYes(proposalId); + }); + }); + + describe('execute proposal #19', () => { + const proposalId = 19; + test('check if proposal is passed', async () => { + await dao.checkPassedProposal(proposalId); + }); + test('execute passed proposal, should fail', async () => { + let rawLog: any; + try { + rawLog = (await daoMember1.executeProposal(proposalId)).raw_log; + } catch (e) { + rawLog = e.message; + } + expect(rawLog.includes('sdk.Msg is not whitelisted')); + }); + }); + describe('check that only admin can create valid proposals', () => { test('submit admin proposal from non-admin addr, should fail', async () => { - console.log('1'); - const hostStatus = await neutronChain.queryHostEnabled(); - expect(hostStatus).toEqual(false); - console.log('2'); const res = await daoMember1.user.msgSendDirectProposal( 'icahost', 'HostEnabled', 'true', ); expect(res.code).toEqual(1); // must be admin to submit proposals to admin-module - console.log('3'); const afterProposalHostStatus = await neutronChain.queryHostEnabled(); expect(afterProposalHostStatus).toEqual(false); });